@antv/g2 4.2.6 → 5.0.0-alpha.1

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 (3665) hide show
  1. package/LICENSE +3 -3
  2. package/README.en-US.md +47 -74
  3. package/README.md +47 -72
  4. package/dist/g2.min.js +10 -16
  5. package/esm/adjust/index.d.ts +1 -0
  6. package/esm/adjust/index.js +2 -0
  7. package/esm/adjust/index.js.map +1 -0
  8. package/esm/adjust/pack.d.ts +8 -0
  9. package/esm/adjust/pack.js +55 -0
  10. package/esm/adjust/pack.js.map +1 -0
  11. package/esm/animation/fadeIn.d.ts +7 -0
  12. package/esm/animation/fadeIn.js +21 -0
  13. package/esm/animation/fadeIn.js.map +1 -0
  14. package/esm/animation/fadeOut.d.ts +7 -0
  15. package/esm/animation/fadeOut.js +21 -0
  16. package/esm/animation/fadeOut.js.map +1 -0
  17. package/esm/animation/index.d.ts +7 -0
  18. package/esm/animation/index.js +8 -0
  19. package/esm/animation/index.js.map +1 -0
  20. package/esm/animation/morphing.d.ts +13 -0
  21. package/esm/animation/morphing.js +160 -0
  22. package/esm/animation/morphing.js.map +1 -0
  23. package/esm/animation/scaleInX.d.ts +7 -0
  24. package/esm/animation/scaleInX.js +45 -0
  25. package/esm/animation/scaleInX.js.map +1 -0
  26. package/esm/animation/scaleInY.d.ts +7 -0
  27. package/esm/animation/scaleInY.js +45 -0
  28. package/esm/animation/scaleInY.js.map +1 -0
  29. package/esm/animation/scaleOutX.d.ts +7 -0
  30. package/esm/animation/scaleOutX.js +45 -0
  31. package/esm/animation/scaleOutX.js.map +1 -0
  32. package/esm/animation/scaleOutY.d.ts +7 -0
  33. package/esm/animation/scaleOutY.js +45 -0
  34. package/esm/animation/scaleOutY.js.map +1 -0
  35. package/esm/animation/utils.d.ts +2 -0
  36. package/esm/animation/utils.js +17 -0
  37. package/esm/animation/utils.js.map +1 -0
  38. package/esm/api/chart.d.ts +33 -0
  39. package/esm/api/chart.js +110 -0
  40. package/esm/api/chart.js.map +1 -0
  41. package/esm/api/composition/circle.d.ts +21 -0
  42. package/esm/api/composition/circle.js +30 -0
  43. package/esm/api/composition/circle.js.map +1 -0
  44. package/esm/api/composition/flex.d.ts +17 -0
  45. package/esm/api/composition/flex.js +26 -0
  46. package/esm/api/composition/flex.js.map +1 -0
  47. package/esm/api/composition/index.d.ts +26 -0
  48. package/esm/api/composition/index.js +27 -0
  49. package/esm/api/composition/index.js.map +1 -0
  50. package/esm/api/composition/keyframe.d.ts +17 -0
  51. package/esm/api/composition/keyframe.js +26 -0
  52. package/esm/api/composition/keyframe.js.map +1 -0
  53. package/esm/api/composition/layer.d.ts +14 -0
  54. package/esm/api/composition/layer.js +23 -0
  55. package/esm/api/composition/layer.js.map +1 -0
  56. package/esm/api/composition/matrix.d.ts +21 -0
  57. package/esm/api/composition/matrix.js +30 -0
  58. package/esm/api/composition/matrix.js.map +1 -0
  59. package/esm/api/composition/rect.d.ts +23 -0
  60. package/esm/api/composition/rect.js +32 -0
  61. package/esm/api/composition/rect.js.map +1 -0
  62. package/esm/api/composition/view.d.ts +20 -0
  63. package/esm/api/composition/view.js +30 -0
  64. package/esm/api/composition/view.js.map +1 -0
  65. package/esm/api/index.d.ts +2 -0
  66. package/esm/api/index.js +3 -0
  67. package/esm/api/index.js.map +1 -0
  68. package/esm/api/library.d.ts +3 -0
  69. package/esm/api/library.js +7 -0
  70. package/esm/api/library.js.map +1 -0
  71. package/esm/api/mark/index.d.ts +41 -0
  72. package/esm/api/mark/index.js +22 -0
  73. package/esm/api/mark/index.js.map +1 -0
  74. package/esm/api/mark/mark.d.ts +114 -0
  75. package/esm/api/mark/mark.js +190 -0
  76. package/esm/api/mark/mark.js.map +1 -0
  77. package/esm/api/mark/types.d.ts +21 -0
  78. package/esm/{util → api/mark}/types.js +0 -0
  79. package/esm/api/mark/types.js.map +1 -0
  80. package/esm/api/node.d.ts +31 -0
  81. package/esm/api/node.js +55 -0
  82. package/esm/api/node.js.map +1 -0
  83. package/esm/api/props.d.ts +12 -0
  84. package/esm/api/props.js +75 -0
  85. package/esm/api/props.js.map +1 -0
  86. package/esm/api/types.d.ts +10 -0
  87. package/esm/api/types.js +2 -0
  88. package/esm/api/types.js.map +1 -0
  89. package/esm/component/axis.d.ts +13 -0
  90. package/esm/component/axis.js +294 -0
  91. package/esm/component/axis.js.map +1 -0
  92. package/esm/component/axisX.d.ts +7 -0
  93. package/esm/component/axisX.js +9 -0
  94. package/esm/component/axisX.js.map +1 -0
  95. package/esm/component/axisY.d.ts +7 -0
  96. package/esm/component/axisY.js +9 -0
  97. package/esm/component/axisY.js.map +1 -0
  98. package/esm/component/index.d.ts +5 -0
  99. package/esm/component/index.js +6 -0
  100. package/esm/component/index.js.map +1 -0
  101. package/esm/component/legendCategory.d.ts +10 -0
  102. package/esm/component/legendCategory.js +84 -0
  103. package/esm/component/legendCategory.js.map +1 -0
  104. package/esm/component/legendContinuous.d.ts +9 -0
  105. package/esm/component/legendContinuous.js +38 -0
  106. package/esm/component/legendContinuous.js.map +1 -0
  107. package/esm/component/title.d.ts +6 -0
  108. package/esm/component/title.js +54 -0
  109. package/esm/component/title.js.map +1 -0
  110. package/esm/component/utils.d.ts +8 -0
  111. package/esm/component/utils.js +27 -0
  112. package/esm/component/utils.js.map +1 -0
  113. package/esm/composition/circle.d.ts +7 -0
  114. package/esm/composition/circle.js +85 -0
  115. package/esm/composition/circle.js.map +1 -0
  116. package/esm/composition/flex.d.ts +7 -0
  117. package/esm/composition/flex.js +40 -0
  118. package/esm/composition/flex.js.map +1 -0
  119. package/esm/composition/index.d.ts +8 -0
  120. package/esm/composition/index.js +9 -0
  121. package/esm/composition/index.js.map +1 -0
  122. package/esm/composition/keyframe.d.ts +7 -0
  123. package/esm/composition/keyframe.js +75 -0
  124. package/esm/composition/keyframe.js.map +1 -0
  125. package/esm/composition/layer.d.ts +7 -0
  126. package/esm/composition/layer.js +32 -0
  127. package/esm/composition/layer.js.map +1 -0
  128. package/esm/composition/mark.d.ts +4 -0
  129. package/esm/composition/mark.js +41 -0
  130. package/esm/composition/mark.js.map +1 -0
  131. package/esm/composition/matrix.d.ts +8 -0
  132. package/esm/composition/matrix.js +151 -0
  133. package/esm/composition/matrix.js.map +1 -0
  134. package/esm/composition/rect.d.ts +30 -0
  135. package/esm/composition/rect.js +286 -0
  136. package/esm/composition/rect.js.map +1 -0
  137. package/esm/composition/utils.d.ts +16 -0
  138. package/esm/composition/utils.js +33 -0
  139. package/esm/composition/utils.js.map +1 -0
  140. package/esm/composition/view.d.ts +9 -0
  141. package/esm/composition/view.js +33 -0
  142. package/esm/composition/view.js.map +1 -0
  143. package/esm/coordinate/cartesian.d.ts +7 -0
  144. package/esm/coordinate/cartesian.js +6 -0
  145. package/esm/coordinate/cartesian.js.map +1 -0
  146. package/esm/coordinate/fisheye.d.ts +7 -0
  147. package/esm/coordinate/fisheye.js +6 -0
  148. package/esm/coordinate/fisheye.js.map +1 -0
  149. package/esm/coordinate/fisheyeX.d.ts +7 -0
  150. package/esm/coordinate/fisheyeX.js +6 -0
  151. package/esm/coordinate/fisheyeX.js.map +1 -0
  152. package/esm/coordinate/fisheyeY.d.ts +7 -0
  153. package/esm/coordinate/fisheyeY.js +6 -0
  154. package/esm/coordinate/fisheyeY.js.map +1 -0
  155. package/esm/coordinate/helix.d.ts +7 -0
  156. package/esm/coordinate/helix.js +11 -0
  157. package/esm/coordinate/helix.js.map +1 -0
  158. package/esm/coordinate/index.d.ts +12 -0
  159. package/esm/coordinate/index.js +13 -0
  160. package/esm/coordinate/index.js.map +1 -0
  161. package/esm/coordinate/parallel.d.ts +7 -0
  162. package/esm/coordinate/parallel.js +6 -0
  163. package/esm/coordinate/parallel.js.map +1 -0
  164. package/esm/coordinate/polar.d.ts +8 -0
  165. package/esm/coordinate/polar.js +12 -0
  166. package/esm/coordinate/polar.js.map +1 -0
  167. package/esm/coordinate/reflect.d.ts +7 -0
  168. package/esm/coordinate/reflect.js +10 -0
  169. package/esm/coordinate/reflect.js.map +1 -0
  170. package/esm/coordinate/reflectX.d.ts +7 -0
  171. package/esm/coordinate/reflectX.js +10 -0
  172. package/esm/coordinate/reflectX.js.map +1 -0
  173. package/esm/coordinate/reflectY.d.ts +7 -0
  174. package/esm/coordinate/reflectY.js +10 -0
  175. package/esm/coordinate/reflectY.js.map +1 -0
  176. package/esm/coordinate/theta.d.ts +7 -0
  177. package/esm/coordinate/theta.js +11 -0
  178. package/esm/coordinate/theta.js.map +1 -0
  179. package/esm/coordinate/transpose.d.ts +7 -0
  180. package/esm/coordinate/transpose.js +11 -0
  181. package/esm/coordinate/transpose.js.map +1 -0
  182. package/esm/data/arc.d.ts +0 -0
  183. package/esm/data/arc.js +19 -0
  184. package/esm/data/arc.js.map +1 -0
  185. package/esm/data/cluster.d.ts +0 -0
  186. package/esm/data/cluster.js +47 -0
  187. package/esm/data/cluster.js.map +1 -0
  188. package/esm/data/connector.d.ts +7 -0
  189. package/esm/data/connector.js +9 -0
  190. package/esm/data/connector.js.map +1 -0
  191. package/esm/data/fetch.d.ts +4 -0
  192. package/esm/data/fetch.js +27 -0
  193. package/esm/data/fetch.js.map +1 -0
  194. package/esm/data/filterBy.d.ts +8 -0
  195. package/esm/data/filterBy.js +13 -0
  196. package/esm/data/filterBy.js.map +1 -0
  197. package/esm/data/fold.d.ts +10 -0
  198. package/esm/data/fold.js +24 -0
  199. package/esm/data/fold.js.map +1 -0
  200. package/esm/data/index.d.ts +9 -0
  201. package/esm/data/index.js +10 -0
  202. package/esm/data/index.js.map +1 -0
  203. package/esm/data/inline.d.ts +4 -0
  204. package/esm/data/inline.js +6 -0
  205. package/esm/data/inline.js.map +1 -0
  206. package/esm/data/pick.d.ts +7 -0
  207. package/esm/data/pick.js +10 -0
  208. package/esm/data/pick.js.map +1 -0
  209. package/esm/data/rename.d.ts +8 -0
  210. package/esm/data/rename.js +17 -0
  211. package/esm/data/rename.js.map +1 -0
  212. package/esm/data/sankey.d.ts +0 -0
  213. package/esm/data/sankey.js +96 -0
  214. package/esm/data/sankey.js.map +1 -0
  215. package/esm/data/sortBy.d.ts +7 -0
  216. package/esm/data/sortBy.js +14 -0
  217. package/esm/data/sortBy.js.map +1 -0
  218. package/esm/data/subset.d.ts +7 -0
  219. package/esm/data/subset.js +26 -0
  220. package/esm/data/subset.js.map +1 -0
  221. package/esm/data/tree.d.ts +0 -0
  222. package/esm/data/tree.js +10 -0
  223. package/esm/data/tree.js.map +1 -0
  224. package/esm/data/utils/arc/arc.d.ts +8 -0
  225. package/esm/data/utils/arc/arc.js +161 -0
  226. package/esm/data/utils/arc/arc.js.map +1 -0
  227. package/esm/data/utils/arc/index.d.ts +2 -0
  228. package/esm/data/utils/arc/index.js +2 -0
  229. package/esm/data/utils/arc/index.js.map +1 -0
  230. package/esm/data/utils/arc/sort.d.ts +4 -0
  231. package/esm/data/utils/arc/sort.js +13 -0
  232. package/esm/data/utils/arc/sort.js.map +1 -0
  233. package/esm/data/utils/arc/types.d.ts +26 -0
  234. package/esm/data/utils/arc/types.js +2 -0
  235. package/esm/data/utils/arc/types.js.map +1 -0
  236. package/esm/data/utils/d3-cloud/index.d.ts +1 -0
  237. package/esm/data/utils/d3-cloud/index.js +395 -0
  238. package/esm/data/utils/d3-cloud/index.js.map +1 -0
  239. package/esm/data/utils/d3-sankey/align.d.ts +4 -0
  240. package/esm/data/utils/d3-sankey/align.js +21 -0
  241. package/esm/data/utils/d3-sankey/align.js.map +1 -0
  242. package/esm/data/utils/d3-sankey/constant.d.ts +1 -0
  243. package/esm/data/utils/d3-sankey/constant.js +6 -0
  244. package/esm/data/utils/d3-sankey/constant.js.map +1 -0
  245. package/esm/data/utils/d3-sankey/index.d.ts +12 -0
  246. package/esm/data/utils/d3-sankey/index.js +13 -0
  247. package/esm/data/utils/d3-sankey/index.js.map +1 -0
  248. package/esm/data/utils/d3-sankey/sankey.d.ts +24 -0
  249. package/esm/data/utils/d3-sankey/sankey.js +388 -0
  250. package/esm/data/utils/d3-sankey/sankey.js.map +1 -0
  251. package/esm/data/utils/flow.d.ts +9 -0
  252. package/esm/data/utils/flow.js +45 -0
  253. package/esm/data/utils/flow.js.map +1 -0
  254. package/esm/data/utils/memo.d.ts +17 -0
  255. package/esm/data/utils/memo.js +79 -0
  256. package/esm/data/utils/memo.js.map +1 -0
  257. package/esm/data/voronoi.d.ts +0 -0
  258. package/esm/data/voronoi.js +27 -0
  259. package/esm/data/voronoi.js.map +1 -0
  260. package/esm/data/wordCloud.d.ts +0 -0
  261. package/esm/data/wordCloud.js +100 -0
  262. package/esm/data/wordCloud.js.map +1 -0
  263. package/esm/encode/column.d.ts +7 -0
  264. package/esm/encode/column.js +8 -0
  265. package/esm/encode/column.js.map +1 -0
  266. package/esm/encode/constant.d.ts +7 -0
  267. package/esm/encode/constant.js +8 -0
  268. package/esm/encode/constant.js.map +1 -0
  269. package/esm/encode/field.d.ts +7 -0
  270. package/esm/encode/field.js +8 -0
  271. package/esm/encode/field.js.map +1 -0
  272. package/esm/encode/index.d.ts +4 -0
  273. package/esm/encode/index.js +5 -0
  274. package/esm/encode/index.js.map +1 -0
  275. package/esm/encode/transform.d.ts +9 -0
  276. package/esm/encode/transform.js +10 -0
  277. package/esm/encode/transform.js.map +1 -0
  278. package/esm/index.d.ts +4 -107
  279. package/esm/index.js +3 -588
  280. package/esm/index.js.map +1 -1
  281. package/esm/interaction/action/index.d.ts +23 -2
  282. package/esm/interaction/action/index.js +23 -2
  283. package/esm/interaction/action/index.js.map +1 -1
  284. package/esm/interaction/action/service/elementSelection.d.ts +4 -0
  285. package/esm/interaction/action/service/elementSelection.js +90 -0
  286. package/esm/interaction/action/service/elementSelection.js.map +1 -0
  287. package/esm/interaction/action/service/fisheyeFocus.d.ts +4 -0
  288. package/esm/interaction/action/service/fisheyeFocus.js +51 -0
  289. package/esm/interaction/action/service/fisheyeFocus.js.map +1 -0
  290. package/esm/interaction/action/service/legendItemSelection.d.ts +4 -0
  291. package/esm/interaction/action/service/legendItemSelection.js +17 -0
  292. package/esm/interaction/action/service/legendItemSelection.js.map +1 -0
  293. package/esm/interaction/action/service/recordCurrentPoint.d.ts +4 -0
  294. package/esm/interaction/action/service/recordCurrentPoint.js +16 -0
  295. package/esm/interaction/action/service/recordCurrentPoint.js.map +1 -0
  296. package/esm/interaction/action/service/recordPoint.d.ts +4 -0
  297. package/esm/interaction/action/service/recordPoint.js +28 -0
  298. package/esm/interaction/action/service/recordPoint.js.map +1 -0
  299. package/esm/interaction/action/service/recordRegion.d.ts +4 -0
  300. package/esm/interaction/action/service/recordRegion.js +30 -0
  301. package/esm/interaction/action/service/recordRegion.js.map +1 -0
  302. package/esm/interaction/action/service/recordState.d.ts +4 -0
  303. package/esm/interaction/action/service/recordState.js +10 -0
  304. package/esm/interaction/action/service/recordState.js.map +1 -0
  305. package/esm/interaction/action/service/recordTip.d.ts +8 -0
  306. package/esm/interaction/action/service/recordTip.js +15 -0
  307. package/esm/interaction/action/service/recordTip.js.map +1 -0
  308. package/esm/interaction/action/service/surfacePointSelection.d.ts +4 -0
  309. package/esm/interaction/action/service/surfacePointSelection.js +19 -0
  310. package/esm/interaction/action/service/surfacePointSelection.js.map +1 -0
  311. package/esm/interaction/action/service/triggerInfoSelection.d.ts +4 -0
  312. package/esm/interaction/action/service/triggerInfoSelection.js +18 -0
  313. package/esm/interaction/action/service/triggerInfoSelection.js.map +1 -0
  314. package/esm/interaction/action/transformer/activeElement.d.ts +4 -0
  315. package/esm/interaction/action/transformer/activeElement.js +23 -0
  316. package/esm/interaction/action/transformer/activeElement.js.map +1 -0
  317. package/esm/interaction/action/transformer/activeRegion.d.ts +4 -0
  318. package/esm/interaction/action/transformer/activeRegion.js +52 -0
  319. package/esm/interaction/action/transformer/activeRegion.js.map +1 -0
  320. package/esm/interaction/action/transformer/button.d.ts +4 -0
  321. package/esm/interaction/action/transformer/button.js +76 -0
  322. package/esm/interaction/action/transformer/button.js.map +1 -0
  323. package/esm/interaction/action/transformer/cursor.d.ts +4 -0
  324. package/esm/interaction/action/transformer/cursor.js +15 -0
  325. package/esm/interaction/action/transformer/cursor.js.map +1 -0
  326. package/esm/interaction/action/transformer/filter.d.ts +7 -0
  327. package/esm/interaction/action/transformer/filter.js +45 -0
  328. package/esm/interaction/action/transformer/filter.js.map +1 -0
  329. package/esm/interaction/action/transformer/filterElement.d.ts +4 -0
  330. package/esm/interaction/action/transformer/filterElement.js +41 -0
  331. package/esm/interaction/action/transformer/filterElement.js.map +1 -0
  332. package/esm/interaction/action/transformer/highlightElement.d.ts +4 -0
  333. package/esm/interaction/action/transformer/highlightElement.js +48 -0
  334. package/esm/interaction/action/transformer/highlightElement.js.map +1 -0
  335. package/esm/interaction/action/transformer/mask.d.ts +7 -0
  336. package/esm/interaction/action/transformer/mask.js +106 -0
  337. package/esm/interaction/action/transformer/mask.js.map +1 -0
  338. package/esm/interaction/action/transformer/move.d.ts +7 -0
  339. package/esm/interaction/action/transformer/move.js +70 -0
  340. package/esm/interaction/action/transformer/move.js.map +1 -0
  341. package/esm/interaction/action/transformer/plot.d.ts +4 -0
  342. package/esm/interaction/action/transformer/plot.js +10 -0
  343. package/esm/interaction/action/transformer/plot.js.map +1 -0
  344. package/esm/interaction/action/transformer/poptip.d.ts +4 -0
  345. package/esm/interaction/action/transformer/poptip.js +39 -0
  346. package/esm/interaction/action/transformer/poptip.js.map +1 -0
  347. package/esm/interaction/action/transformer/setItemState.d.ts +4 -0
  348. package/esm/interaction/action/transformer/setItemState.js +31 -0
  349. package/esm/interaction/action/transformer/setItemState.js.map +1 -0
  350. package/esm/interaction/action/transformer/tooltip.d.ts +9 -0
  351. package/esm/interaction/action/transformer/tooltip.js +289 -0
  352. package/esm/interaction/action/transformer/tooltip.js.map +1 -0
  353. package/esm/interaction/builtin/activeRegion.d.ts +19 -0
  354. package/esm/interaction/builtin/activeRegion.js +18 -0
  355. package/esm/interaction/builtin/activeRegion.js.map +1 -0
  356. package/esm/interaction/builtin/brush.d.ts +132 -0
  357. package/esm/interaction/builtin/brush.js +93 -0
  358. package/esm/interaction/builtin/brush.js.map +1 -0
  359. package/esm/interaction/builtin/brushHighlight.d.ts +98 -0
  360. package/esm/interaction/builtin/brushHighlight.js +111 -0
  361. package/esm/interaction/builtin/brushHighlight.js.map +1 -0
  362. package/esm/interaction/builtin/brushVisible.d.ts +88 -0
  363. package/esm/interaction/builtin/brushVisible.js +62 -0
  364. package/esm/interaction/builtin/brushVisible.js.map +1 -0
  365. package/esm/interaction/builtin/elementActive.d.ts +22 -0
  366. package/esm/interaction/builtin/elementActive.js +25 -0
  367. package/esm/interaction/builtin/elementActive.js.map +1 -0
  368. package/esm/interaction/builtin/elementHighlight.d.ts +19 -0
  369. package/esm/interaction/builtin/elementHighlight.js +24 -0
  370. package/esm/interaction/builtin/elementHighlight.js.map +1 -0
  371. package/esm/interaction/builtin/elementHighlightByColor.d.ts +23 -0
  372. package/esm/interaction/builtin/elementHighlightByColor.js +24 -0
  373. package/esm/interaction/builtin/elementHighlightByColor.js.map +1 -0
  374. package/esm/interaction/builtin/elementHighlightByX.d.ts +23 -0
  375. package/esm/interaction/builtin/elementHighlightByX.js +24 -0
  376. package/esm/interaction/builtin/elementHighlightByX.js.map +1 -0
  377. package/esm/interaction/builtin/elementListHighlight.d.ts +43 -0
  378. package/esm/interaction/builtin/elementListHighlight.js +28 -0
  379. package/esm/interaction/builtin/elementListHighlight.js.map +1 -0
  380. package/esm/interaction/builtin/elementSelected.d.ts +20 -0
  381. package/esm/interaction/builtin/elementSelected.js +18 -0
  382. package/esm/interaction/builtin/elementSelected.js.map +1 -0
  383. package/esm/interaction/builtin/ellipsisText.d.ts +19 -0
  384. package/esm/interaction/builtin/ellipsisText.js +17 -0
  385. package/esm/interaction/builtin/ellipsisText.js.map +1 -0
  386. package/esm/interaction/builtin/fisheye.d.ts +35 -0
  387. package/esm/interaction/builtin/fisheye.js +20 -0
  388. package/esm/interaction/builtin/fisheye.js.map +1 -0
  389. package/esm/interaction/builtin/legendActive.d.ts +43 -0
  390. package/esm/interaction/builtin/legendActive.js +30 -0
  391. package/esm/interaction/builtin/legendActive.js.map +1 -0
  392. package/esm/interaction/builtin/legendHighlight.d.ts +43 -0
  393. package/esm/interaction/builtin/legendHighlight.js +30 -0
  394. package/esm/interaction/builtin/legendHighlight.js.map +1 -0
  395. package/esm/interaction/builtin/tooltip.d.ts +44 -0
  396. package/esm/interaction/builtin/tooltip.js +28 -0
  397. package/esm/interaction/builtin/tooltip.js.map +1 -0
  398. package/esm/interaction/create.d.ts +3 -0
  399. package/esm/interaction/create.js +96 -0
  400. package/esm/interaction/create.js.map +1 -0
  401. package/esm/interaction/index.d.ts +18 -25
  402. package/esm/interaction/index.js +18 -42
  403. package/esm/interaction/index.js.map +1 -1
  404. package/esm/interaction/interactor/index.d.ts +2 -0
  405. package/esm/interaction/interactor/index.js +3 -0
  406. package/esm/interaction/interactor/index.js.map +1 -0
  407. package/esm/interaction/interactor/mousePosition.d.ts +3 -0
  408. package/esm/interaction/interactor/mousePosition.js +10 -0
  409. package/esm/interaction/interactor/mousePosition.js.map +1 -0
  410. package/esm/interaction/interactor/touchPosition.d.ts +3 -0
  411. package/esm/interaction/interactor/touchPosition.js +10 -0
  412. package/esm/interaction/interactor/touchPosition.js.map +1 -0
  413. package/esm/interaction/stdlib.d.ts +2 -0
  414. package/esm/interaction/stdlib.js +32 -0
  415. package/esm/interaction/stdlib.js.map +1 -0
  416. package/esm/interaction/types.d.ts +57 -0
  417. package/esm/interaction/types.js +2 -0
  418. package/esm/interaction/types.js.map +1 -0
  419. package/esm/interaction/utils.d.ts +3 -0
  420. package/esm/interaction/utils.js +40 -0
  421. package/esm/interaction/utils.js.map +1 -0
  422. package/esm/labelLayout/hideOverlap.d.ts +2 -0
  423. package/esm/labelLayout/hideOverlap.js +38 -0
  424. package/esm/labelLayout/hideOverlap.js.map +1 -0
  425. package/esm/labelLayout/index.d.ts +1 -0
  426. package/esm/labelLayout/index.js +2 -0
  427. package/esm/labelLayout/index.js.map +1 -0
  428. package/esm/mark/annotation/connector.d.ts +4 -0
  429. package/esm/mark/annotation/connector.js +18 -0
  430. package/esm/mark/annotation/connector.js.map +1 -0
  431. package/esm/mark/annotation/index.d.ts +7 -0
  432. package/esm/mark/annotation/index.js +8 -0
  433. package/esm/mark/annotation/index.js.map +1 -0
  434. package/esm/mark/annotation/lineX.d.ts +4 -0
  435. package/esm/mark/annotation/lineX.js +21 -0
  436. package/esm/mark/annotation/lineX.js.map +1 -0
  437. package/esm/mark/annotation/lineY.d.ts +4 -0
  438. package/esm/mark/annotation/lineY.js +21 -0
  439. package/esm/mark/annotation/lineY.js.map +1 -0
  440. package/esm/mark/annotation/range.d.ts +8 -0
  441. package/esm/mark/annotation/range.js +44 -0
  442. package/esm/mark/annotation/range.js.map +1 -0
  443. package/esm/mark/annotation/rangeX.d.ts +4 -0
  444. package/esm/mark/annotation/rangeX.js +14 -0
  445. package/esm/mark/annotation/rangeX.js.map +1 -0
  446. package/esm/mark/annotation/rangeY.d.ts +4 -0
  447. package/esm/mark/annotation/rangeY.js +14 -0
  448. package/esm/mark/annotation/rangeY.js.map +1 -0
  449. package/esm/mark/annotation/text.d.ts +4 -0
  450. package/esm/mark/annotation/text.js +21 -0
  451. package/esm/mark/annotation/text.js.map +1 -0
  452. package/esm/mark/geometry/area.d.ts +4 -0
  453. package/esm/mark/geometry/area.js +70 -0
  454. package/esm/mark/geometry/area.js.map +1 -0
  455. package/esm/mark/geometry/edge.d.ts +13 -0
  456. package/esm/mark/geometry/edge.js +31 -0
  457. package/esm/mark/geometry/edge.js.map +1 -0
  458. package/esm/mark/geometry/grid.d.ts +9 -0
  459. package/esm/mark/geometry/grid.js +46 -0
  460. package/esm/mark/geometry/grid.js.map +1 -0
  461. package/esm/mark/geometry/image.d.ts +4 -0
  462. package/esm/mark/geometry/image.js +34 -0
  463. package/esm/mark/geometry/image.js.map +1 -0
  464. package/esm/mark/geometry/index.d.ts +13 -0
  465. package/esm/mark/geometry/index.js +14 -0
  466. package/esm/mark/geometry/index.js.map +1 -0
  467. package/esm/mark/geometry/interval.d.ts +12 -0
  468. package/esm/mark/geometry/interval.js +59 -0
  469. package/esm/mark/geometry/interval.js.map +1 -0
  470. package/esm/mark/geometry/line.d.ts +7 -0
  471. package/esm/mark/geometry/line.js +76 -0
  472. package/esm/mark/geometry/line.js.map +1 -0
  473. package/esm/mark/geometry/link.d.ts +7 -0
  474. package/esm/mark/geometry/link.js +33 -0
  475. package/esm/mark/geometry/link.js.map +1 -0
  476. package/esm/mark/geometry/node.d.ts +8 -0
  477. package/esm/mark/geometry/node.js +27 -0
  478. package/esm/mark/geometry/node.js.map +1 -0
  479. package/esm/mark/geometry/point.d.ts +10 -0
  480. package/esm/mark/geometry/point.js +71 -0
  481. package/esm/mark/geometry/point.js.map +1 -0
  482. package/esm/mark/geometry/polygon.d.ts +7 -0
  483. package/esm/mark/geometry/polygon.js +43 -0
  484. package/esm/mark/geometry/polygon.js.map +1 -0
  485. package/esm/mark/geometry/schema.d.ts +34 -0
  486. package/esm/mark/geometry/schema.js +90 -0
  487. package/esm/mark/geometry/schema.js.map +1 -0
  488. package/esm/mark/geometry/text.d.ts +4 -0
  489. package/esm/mark/geometry/text.js +35 -0
  490. package/esm/mark/geometry/text.js.map +1 -0
  491. package/esm/mark/geometry/vector.d.ts +8 -0
  492. package/esm/mark/geometry/vector.js +43 -0
  493. package/esm/mark/geometry/vector.js.map +1 -0
  494. package/esm/mark/utils.d.ts +8 -0
  495. package/esm/mark/utils.js +30 -0
  496. package/esm/mark/utils.js.map +1 -0
  497. package/esm/palette/category10.d.ts +7 -0
  498. package/esm/palette/category10.js +19 -0
  499. package/esm/palette/category10.js.map +1 -0
  500. package/esm/palette/category20.d.ts +7 -0
  501. package/esm/palette/category20.js +29 -0
  502. package/esm/palette/category20.js.map +1 -0
  503. package/esm/palette/index.d.ts +2 -0
  504. package/esm/palette/index.js +3 -0
  505. package/esm/palette/index.js.map +1 -0
  506. package/esm/renderer/canvas.d.ts +10 -0
  507. package/esm/renderer/canvas.js +18 -0
  508. package/esm/renderer/canvas.js.map +1 -0
  509. package/esm/renderer/index.d.ts +1 -0
  510. package/esm/renderer/index.js +2 -0
  511. package/esm/renderer/index.js.map +1 -0
  512. package/esm/runtime/component.d.ts +5 -0
  513. package/esm/runtime/component.js +140 -0
  514. package/esm/runtime/component.js.map +1 -0
  515. package/esm/runtime/coordinate.d.ts +11 -0
  516. package/esm/runtime/coordinate.js +50 -0
  517. package/esm/runtime/coordinate.js.map +1 -0
  518. package/esm/runtime/index.d.ts +8 -0
  519. package/esm/runtime/index.js +9 -0
  520. package/esm/runtime/index.js.map +1 -0
  521. package/esm/runtime/layout.d.ts +5 -0
  522. package/esm/runtime/layout.js +115 -0
  523. package/esm/runtime/layout.js.map +1 -0
  524. package/esm/runtime/library.d.ts +3 -0
  525. package/esm/runtime/library.js +26 -0
  526. package/esm/runtime/library.js.map +1 -0
  527. package/esm/runtime/mark.d.ts +6 -0
  528. package/esm/runtime/mark.js +127 -0
  529. package/esm/runtime/mark.js.map +1 -0
  530. package/esm/runtime/plot.d.ts +3 -0
  531. package/esm/runtime/plot.js +560 -0
  532. package/esm/runtime/plot.js.map +1 -0
  533. package/esm/runtime/render.d.ts +2 -0
  534. package/esm/runtime/render.js +67 -0
  535. package/esm/runtime/render.js.map +1 -0
  536. package/esm/runtime/scale.d.ts +8 -0
  537. package/esm/runtime/scale.js +335 -0
  538. package/esm/runtime/scale.js.map +1 -0
  539. package/esm/runtime/transform.d.ts +9 -0
  540. package/esm/runtime/transform.js +144 -0
  541. package/esm/runtime/transform.js.map +1 -0
  542. package/esm/runtime/types/common.d.ts +127 -0
  543. package/esm/runtime/types/common.js +2 -0
  544. package/esm/runtime/types/common.js.map +1 -0
  545. package/esm/runtime/types/component.d.ts +76 -0
  546. package/esm/runtime/types/component.js +2 -0
  547. package/esm/runtime/types/component.js.map +1 -0
  548. package/esm/runtime/types/data.d.ts +7 -0
  549. package/esm/runtime/types/data.js +2 -0
  550. package/esm/runtime/types/data.js.map +1 -0
  551. package/esm/runtime/types/encode.d.ts +23 -0
  552. package/esm/runtime/types/encode.js +2 -0
  553. package/esm/runtime/types/encode.js.map +1 -0
  554. package/esm/runtime/types/mark.d.ts +20 -0
  555. package/esm/runtime/types/mark.js +2 -0
  556. package/esm/runtime/types/mark.js.map +1 -0
  557. package/esm/runtime/types/options.d.ts +109 -0
  558. package/esm/runtime/types/options.js +2 -0
  559. package/esm/runtime/types/options.js.map +1 -0
  560. package/esm/runtime/types/transform.d.ts +17 -0
  561. package/esm/runtime/types/transform.js +2 -0
  562. package/esm/runtime/types/transform.js.map +1 -0
  563. package/esm/scale/band.d.ts +4 -0
  564. package/esm/scale/band.js +6 -0
  565. package/esm/scale/band.js.map +1 -0
  566. package/esm/scale/identity.d.ts +4 -0
  567. package/esm/scale/identity.js +6 -0
  568. package/esm/scale/identity.js.map +1 -0
  569. package/esm/scale/index.d.ts +11 -0
  570. package/esm/scale/index.js +12 -0
  571. package/esm/scale/index.js.map +1 -0
  572. package/esm/scale/linear.d.ts +4 -0
  573. package/esm/scale/linear.js +6 -0
  574. package/esm/scale/linear.js.map +1 -0
  575. package/esm/scale/log.d.ts +4 -0
  576. package/esm/scale/log.js +6 -0
  577. package/esm/scale/log.js.map +1 -0
  578. package/esm/scale/ordinal.d.ts +4 -0
  579. package/esm/scale/ordinal.js +6 -0
  580. package/esm/scale/ordinal.js.map +1 -0
  581. package/esm/scale/point.d.ts +4 -0
  582. package/esm/scale/point.js +6 -0
  583. package/esm/scale/point.js.map +1 -0
  584. package/esm/scale/pow.d.ts +4 -0
  585. package/esm/scale/pow.js +6 -0
  586. package/esm/scale/pow.js.map +1 -0
  587. package/esm/scale/quantile.d.ts +4 -0
  588. package/esm/scale/quantile.js +6 -0
  589. package/esm/scale/quantile.js.map +1 -0
  590. package/esm/scale/quantize.d.ts +4 -0
  591. package/esm/scale/quantize.js +6 -0
  592. package/esm/scale/quantize.js.map +1 -0
  593. package/esm/scale/threshold.d.ts +4 -0
  594. package/esm/scale/threshold.js +6 -0
  595. package/esm/scale/threshold.js.map +1 -0
  596. package/esm/scale/time.d.ts +4 -0
  597. package/esm/scale/time.js +6 -0
  598. package/esm/scale/time.js.map +1 -0
  599. package/esm/shape/annotation/badge.d.ts +14 -0
  600. package/esm/shape/annotation/badge.js +93 -0
  601. package/esm/shape/annotation/badge.js.map +1 -0
  602. package/esm/shape/annotation/connector.d.ts +15 -0
  603. package/esm/shape/annotation/connector.js +101 -0
  604. package/esm/shape/annotation/connector.js.map +1 -0
  605. package/esm/shape/annotation/line.d.ts +3 -0
  606. package/esm/shape/annotation/line.js +56 -0
  607. package/esm/shape/annotation/line.js.map +1 -0
  608. package/esm/shape/annotation/text.d.ts +20 -0
  609. package/esm/shape/annotation/text.js +162 -0
  610. package/esm/shape/annotation/text.js.map +1 -0
  611. package/esm/shape/area/area.d.ts +3 -0
  612. package/esm/shape/area/area.js +11 -0
  613. package/esm/shape/area/area.js.map +1 -0
  614. package/esm/shape/area/curveArea.d.ts +8 -0
  615. package/esm/shape/area/curveArea.js +60 -0
  616. package/esm/shape/area/curveArea.js.map +1 -0
  617. package/esm/shape/area/smoothArea.d.ts +5 -0
  618. package/esm/shape/area/smoothArea.js +23 -0
  619. package/esm/shape/area/smoothArea.js.map +1 -0
  620. package/esm/shape/edge/arc.d.ts +8 -0
  621. package/esm/shape/edge/arc.js +51 -0
  622. package/esm/shape/edge/arc.js.map +1 -0
  623. package/esm/shape/edge/edge.d.ts +6 -0
  624. package/esm/shape/edge/edge.js +11 -0
  625. package/esm/shape/edge/edge.js.map +1 -0
  626. package/esm/shape/edge/ribbon.d.ts +15 -0
  627. package/esm/shape/edge/ribbon.js +69 -0
  628. package/esm/shape/edge/ribbon.js.map +1 -0
  629. package/esm/shape/edge/smoothEdge.d.ts +6 -0
  630. package/esm/shape/edge/smoothEdge.js +39 -0
  631. package/esm/shape/edge/smoothEdge.js.map +1 -0
  632. package/esm/shape/edge/vhv.d.ts +12 -0
  633. package/esm/shape/edge/vhv.js +69 -0
  634. package/esm/shape/edge/vhv.js.map +1 -0
  635. package/esm/shape/image/image.d.ts +3 -0
  636. package/esm/shape/image/image.js +38 -0
  637. package/esm/shape/image/image.js.map +1 -0
  638. package/esm/shape/index.d.ts +48 -0
  639. package/esm/shape/index.js +50 -0
  640. package/esm/shape/index.js.map +1 -0
  641. package/esm/shape/interval/colorRect.d.ts +14 -0
  642. package/esm/shape/interval/colorRect.js +62 -0
  643. package/esm/shape/interval/colorRect.js.map +1 -0
  644. package/esm/shape/interval/funnel.d.ts +10 -0
  645. package/esm/shape/interval/funnel.js +43 -0
  646. package/esm/shape/interval/funnel.js.map +1 -0
  647. package/esm/shape/interval/hollowRect.d.ts +6 -0
  648. package/esm/shape/interval/hollowRect.js +9 -0
  649. package/esm/shape/interval/hollowRect.js.map +1 -0
  650. package/esm/shape/interval/pyramid.d.ts +6 -0
  651. package/esm/shape/interval/pyramid.js +38 -0
  652. package/esm/shape/interval/pyramid.js.map +1 -0
  653. package/esm/shape/interval/rect.d.ts +7 -0
  654. package/esm/shape/interval/rect.js +10 -0
  655. package/esm/shape/interval/rect.js.map +1 -0
  656. package/esm/shape/label/label.d.ts +7 -0
  657. package/esm/shape/label/label.js +100 -0
  658. package/esm/shape/label/label.js.map +1 -0
  659. package/esm/shape/line/curveLine.d.ts +8 -0
  660. package/esm/shape/line/curveLine.js +41 -0
  661. package/esm/shape/line/curveLine.js.map +1 -0
  662. package/esm/shape/line/hv.d.ts +3 -0
  663. package/esm/shape/line/hv.js +7 -0
  664. package/esm/shape/line/hv.js.map +1 -0
  665. package/esm/shape/line/hvh.d.ts +3 -0
  666. package/esm/shape/line/hvh.js +7 -0
  667. package/esm/shape/line/hvh.js.map +1 -0
  668. package/esm/shape/line/line.d.ts +3 -0
  669. package/esm/shape/line/line.js +7 -0
  670. package/esm/shape/line/line.js.map +1 -0
  671. package/esm/shape/line/smooth.d.ts +5 -0
  672. package/esm/shape/line/smooth.js +19 -0
  673. package/esm/shape/line/smooth.js.map +1 -0
  674. package/esm/shape/line/vh.d.ts +3 -0
  675. package/esm/shape/line/vh.js +7 -0
  676. package/esm/shape/line/vh.js.map +1 -0
  677. package/esm/shape/link/link.d.ts +13 -0
  678. package/esm/shape/link/link.js +49 -0
  679. package/esm/shape/link/link.js.map +1 -0
  680. package/esm/shape/node/point.d.ts +6 -0
  681. package/esm/shape/node/point.js +27 -0
  682. package/esm/shape/node/point.js.map +1 -0
  683. package/esm/shape/node/polygon.d.ts +3 -0
  684. package/esm/shape/node/polygon.js +8 -0
  685. package/esm/shape/node/polygon.js.map +1 -0
  686. package/esm/shape/point/bowtie.d.ts +6 -0
  687. package/esm/shape/point/bowtie.js +9 -0
  688. package/esm/shape/point/bowtie.js.map +1 -0
  689. package/esm/shape/point/colorPoint.d.ts +11 -0
  690. package/esm/shape/point/colorPoint.js +59 -0
  691. package/esm/shape/point/colorPoint.js.map +1 -0
  692. package/esm/shape/point/cross.d.ts +6 -0
  693. package/esm/shape/point/cross.js +9 -0
  694. package/esm/shape/point/cross.js.map +1 -0
  695. package/esm/shape/point/diamond.d.ts +6 -0
  696. package/esm/shape/point/diamond.js +9 -0
  697. package/esm/shape/point/diamond.js.map +1 -0
  698. package/esm/shape/point/hexagon.d.ts +6 -0
  699. package/esm/shape/point/hexagon.js +9 -0
  700. package/esm/shape/point/hexagon.js.map +1 -0
  701. package/esm/shape/point/hollowBowtie.d.ts +6 -0
  702. package/esm/shape/point/hollowBowtie.js +9 -0
  703. package/esm/shape/point/hollowBowtie.js.map +1 -0
  704. package/esm/shape/point/hollowDiamond.d.ts +6 -0
  705. package/esm/shape/point/hollowDiamond.js +9 -0
  706. package/esm/shape/point/hollowDiamond.js.map +1 -0
  707. package/esm/shape/point/hollowHexagon.d.ts +6 -0
  708. package/esm/shape/point/hollowHexagon.js +9 -0
  709. package/esm/shape/point/hollowHexagon.js.map +1 -0
  710. package/esm/shape/point/hollowPoint.d.ts +6 -0
  711. package/esm/shape/point/hollowPoint.js +9 -0
  712. package/esm/shape/point/hollowPoint.js.map +1 -0
  713. package/esm/shape/point/hollowSquare.d.ts +6 -0
  714. package/esm/shape/point/hollowSquare.js +9 -0
  715. package/esm/shape/point/hollowSquare.js.map +1 -0
  716. package/esm/shape/point/hollowTriangle.d.ts +6 -0
  717. package/esm/shape/point/hollowTriangle.js +9 -0
  718. package/esm/shape/point/hollowTriangle.js.map +1 -0
  719. package/esm/shape/point/hollowTriangleDown.d.ts +6 -0
  720. package/esm/shape/point/hollowTriangleDown.js +9 -0
  721. package/esm/shape/point/hollowTriangleDown.js.map +1 -0
  722. package/esm/shape/point/hyphen.d.ts +6 -0
  723. package/esm/shape/point/hyphen.js +9 -0
  724. package/esm/shape/point/hyphen.js.map +1 -0
  725. package/esm/shape/point/line.d.ts +6 -0
  726. package/esm/shape/point/line.js +9 -0
  727. package/esm/shape/point/line.js.map +1 -0
  728. package/esm/shape/point/plus.d.ts +6 -0
  729. package/esm/shape/point/plus.js +9 -0
  730. package/esm/shape/point/plus.js.map +1 -0
  731. package/esm/shape/point/point.d.ts +6 -0
  732. package/esm/shape/point/point.js +9 -0
  733. package/esm/shape/point/point.js.map +1 -0
  734. package/esm/shape/point/square.d.ts +6 -0
  735. package/esm/shape/point/square.js +9 -0
  736. package/esm/shape/point/square.js.map +1 -0
  737. package/esm/shape/point/symbol.d.ts +49 -0
  738. package/esm/shape/point/symbol.js +142 -0
  739. package/esm/shape/point/symbol.js.map +1 -0
  740. package/esm/shape/point/tick.d.ts +6 -0
  741. package/esm/shape/point/tick.js +9 -0
  742. package/esm/shape/point/tick.js.map +1 -0
  743. package/esm/shape/point/triangle.d.ts +6 -0
  744. package/esm/shape/point/triangle.js +9 -0
  745. package/esm/shape/point/triangle.js.map +1 -0
  746. package/esm/shape/point/triangleDown.d.ts +6 -0
  747. package/esm/shape/point/triangleDown.js +9 -0
  748. package/esm/shape/point/triangleDown.js.map +1 -0
  749. package/esm/shape/polygon/polygon.d.ts +3 -0
  750. package/esm/shape/polygon/polygon.js +67 -0
  751. package/esm/shape/polygon/polygon.js.map +1 -0
  752. package/esm/shape/schema/box.d.ts +3 -0
  753. package/esm/shape/schema/box.js +87 -0
  754. package/esm/shape/schema/box.js.map +1 -0
  755. package/esm/shape/text/text.d.ts +6 -0
  756. package/esm/shape/text/text.js +41 -0
  757. package/esm/shape/text/text.js.map +1 -0
  758. package/esm/shape/utils.d.ts +59 -0
  759. package/esm/shape/utils.js +90 -0
  760. package/esm/shape/utils.js.map +1 -0
  761. package/esm/shape/vector/vector.d.ts +13 -0
  762. package/esm/shape/vector/vector.js +48 -0
  763. package/esm/shape/vector/vector.js.map +1 -0
  764. package/esm/spec/action.d.ts +122 -0
  765. package/esm/spec/action.js +2 -0
  766. package/esm/spec/action.js.map +1 -0
  767. package/esm/spec/animate.d.ts +8 -0
  768. package/esm/spec/animate.js +2 -0
  769. package/esm/spec/animate.js.map +1 -0
  770. package/esm/spec/composition.d.ts +127 -0
  771. package/esm/spec/composition.js +2 -0
  772. package/esm/spec/composition.js.map +1 -0
  773. package/esm/spec/coordinate.d.ts +74 -0
  774. package/esm/spec/coordinate.js +2 -0
  775. package/esm/spec/coordinate.js.map +1 -0
  776. package/esm/spec/data.d.ts +54 -0
  777. package/esm/spec/data.js +2 -0
  778. package/esm/spec/data.js.map +1 -0
  779. package/esm/spec/encode.d.ts +23 -0
  780. package/esm/spec/encode.js +2 -0
  781. package/esm/spec/encode.js.map +1 -0
  782. package/esm/spec/geometry.d.ts +61 -0
  783. package/esm/spec/geometry.js +2 -0
  784. package/esm/spec/geometry.js.map +1 -0
  785. package/esm/spec/index.d.ts +17 -0
  786. package/esm/spec/index.js +13 -0
  787. package/esm/spec/index.js.map +1 -0
  788. package/esm/spec/interaction.d.ts +66 -0
  789. package/esm/spec/interaction.js +2 -0
  790. package/esm/spec/interaction.js.map +1 -0
  791. package/esm/spec/labelLayout.d.ts +4 -0
  792. package/esm/spec/labelLayout.js +2 -0
  793. package/esm/spec/labelLayout.js.map +1 -0
  794. package/esm/spec/palette.d.ts +13 -0
  795. package/esm/spec/palette.js +2 -0
  796. package/esm/spec/palette.js.map +1 -0
  797. package/esm/spec/scale.d.ts +27 -0
  798. package/esm/spec/scale.js +2 -0
  799. package/esm/spec/scale.js.map +1 -0
  800. package/esm/spec/theme.d.ts +12 -0
  801. package/esm/spec/theme.js +2 -0
  802. package/esm/spec/theme.js.map +1 -0
  803. package/esm/spec/title.d.ts +2 -0
  804. package/esm/spec/title.js +2 -0
  805. package/esm/spec/title.js.map +1 -0
  806. package/esm/spec/transform.d.ts +69 -0
  807. package/esm/spec/transform.js +135 -0
  808. package/esm/spec/transform.js.map +1 -0
  809. package/esm/stdlib/index.d.ts +2 -0
  810. package/esm/stdlib/index.js +196 -0
  811. package/esm/stdlib/index.js.map +1 -0
  812. package/esm/theme/index.d.ts +1 -12
  813. package/esm/theme/index.js +1 -22
  814. package/esm/theme/index.js.map +1 -1
  815. package/esm/theme/light.d.ts +7 -0
  816. package/esm/theme/light.js +31 -0
  817. package/esm/theme/light.js.map +1 -0
  818. package/esm/transform/Select.d.ts +9 -0
  819. package/esm/transform/Select.js +53 -0
  820. package/esm/transform/Select.js.map +1 -0
  821. package/esm/transform/SelectX.d.ts +7 -0
  822. package/esm/transform/SelectX.js +21 -0
  823. package/esm/transform/SelectX.js.map +1 -0
  824. package/esm/transform/SelectY.d.ts +7 -0
  825. package/esm/transform/SelectY.js +21 -0
  826. package/esm/transform/SelectY.js.map +1 -0
  827. package/esm/transform/dodgeX.d.ts +9 -0
  828. package/esm/transform/dodgeX.js +56 -0
  829. package/esm/transform/dodgeX.js.map +1 -0
  830. package/esm/transform/groupX.d.ts +9 -0
  831. package/esm/transform/groupX.js +89 -0
  832. package/esm/transform/groupX.js.map +1 -0
  833. package/esm/transform/index.d.ts +21 -0
  834. package/esm/transform/index.js +22 -0
  835. package/esm/transform/index.js.map +1 -0
  836. package/esm/transform/jitter.d.ts +9 -0
  837. package/esm/transform/jitter.js +36 -0
  838. package/esm/transform/jitter.js.map +1 -0
  839. package/esm/transform/jitterY.d.ts +8 -0
  840. package/esm/transform/jitterY.js +21 -0
  841. package/esm/transform/jitterY.js.map +1 -0
  842. package/esm/transform/maybeKey.d.ts +6 -0
  843. package/esm/transform/maybeKey.js +32 -0
  844. package/esm/transform/maybeKey.js.map +1 -0
  845. package/esm/transform/maybeSeries.d.ts +6 -0
  846. package/esm/transform/maybeSeries.js +17 -0
  847. package/esm/transform/maybeSeries.js.map +1 -0
  848. package/esm/transform/maybeSize.d.ts +7 -0
  849. package/esm/transform/maybeSize.js +20 -0
  850. package/esm/transform/maybeSize.js.map +1 -0
  851. package/esm/transform/maybeStackY.d.ts +9 -0
  852. package/esm/transform/maybeStackY.js +30 -0
  853. package/esm/transform/maybeStackY.js.map +1 -0
  854. package/esm/transform/maybeTitleX.d.ts +6 -0
  855. package/esm/transform/maybeTitleX.js +17 -0
  856. package/esm/transform/maybeTitleX.js.map +1 -0
  857. package/esm/transform/maybeTooltip.d.ts +8 -0
  858. package/esm/transform/maybeTooltip.js +29 -0
  859. package/esm/transform/maybeTooltip.js.map +1 -0
  860. package/esm/transform/maybeTooltipPosition.d.ts +7 -0
  861. package/esm/transform/maybeTooltipPosition.js +10 -0
  862. package/esm/transform/maybeTooltipPosition.js.map +1 -0
  863. package/esm/transform/maybeTooltipY.d.ts +6 -0
  864. package/esm/transform/maybeTooltipY.js +9 -0
  865. package/esm/transform/maybeTooltipY.js.map +1 -0
  866. package/esm/transform/maybeZeroX.d.ts +7 -0
  867. package/esm/transform/maybeZeroX.js +22 -0
  868. package/esm/transform/maybeZeroX.js.map +1 -0
  869. package/esm/transform/maybeZeroY.d.ts +6 -0
  870. package/esm/transform/maybeZeroY.js +21 -0
  871. package/esm/transform/maybeZeroY.js.map +1 -0
  872. package/esm/transform/maybeZeroY1.d.ts +6 -0
  873. package/esm/transform/maybeZeroY1.js +21 -0
  874. package/esm/transform/maybeZeroY1.js.map +1 -0
  875. package/esm/transform/normalizeY.d.ts +9 -0
  876. package/esm/transform/normalizeY.js +69 -0
  877. package/esm/transform/normalizeY.js.map +1 -0
  878. package/esm/transform/stackEnter.d.ts +13 -0
  879. package/esm/transform/stackEnter.js +62 -0
  880. package/esm/transform/stackEnter.js.map +1 -0
  881. package/esm/transform/stackY.d.ts +9 -0
  882. package/esm/transform/stackY.js +56 -0
  883. package/esm/transform/stackY.js.map +1 -0
  884. package/esm/transform/symmetryY.d.ts +8 -0
  885. package/esm/transform/symmetryY.js +60 -0
  886. package/esm/transform/symmetryY.js.map +1 -0
  887. package/esm/transform/utils/helper.d.ts +15 -0
  888. package/esm/transform/utils/helper.js +34 -0
  889. package/esm/transform/utils/helper.js.map +1 -0
  890. package/esm/transform/utils/order.d.ts +9 -0
  891. package/esm/transform/utils/order.js +72 -0
  892. package/esm/transform/utils/order.js.map +1 -0
  893. package/esm/utils/array.d.ts +14 -0
  894. package/esm/utils/array.js +42 -0
  895. package/esm/utils/array.js.map +1 -0
  896. package/esm/utils/container.d.ts +8 -0
  897. package/esm/utils/container.js +16 -0
  898. package/esm/utils/container.js.map +1 -0
  899. package/esm/utils/coordinate.d.ts +6 -0
  900. package/esm/utils/coordinate.js +24 -0
  901. package/esm/utils/coordinate.js.map +1 -0
  902. package/esm/utils/helper.d.ts +17 -0
  903. package/esm/utils/helper.js +63 -0
  904. package/esm/utils/helper.js.map +1 -0
  905. package/esm/utils/selection.d.ts +64 -0
  906. package/esm/utils/selection.js +285 -0
  907. package/esm/utils/selection.js.map +1 -0
  908. package/esm/utils/vector.d.ts +13 -0
  909. package/esm/utils/vector.js +42 -0
  910. package/esm/utils/vector.js.map +1 -0
  911. package/lib/adjust/index.d.ts +1 -0
  912. package/lib/adjust/index.js +6 -0
  913. package/lib/adjust/index.js.map +1 -0
  914. package/lib/adjust/pack.d.ts +8 -0
  915. package/lib/adjust/pack.js +59 -0
  916. package/lib/adjust/pack.js.map +1 -0
  917. package/lib/animation/fadeIn.d.ts +7 -0
  918. package/lib/animation/fadeIn.js +25 -0
  919. package/lib/animation/fadeIn.js.map +1 -0
  920. package/lib/animation/fadeOut.d.ts +7 -0
  921. package/lib/animation/fadeOut.js +25 -0
  922. package/lib/animation/fadeOut.js.map +1 -0
  923. package/lib/animation/index.d.ts +7 -0
  924. package/lib/animation/index.js +18 -0
  925. package/lib/animation/index.js.map +1 -0
  926. package/lib/animation/morphing.d.ts +13 -0
  927. package/lib/animation/morphing.js +164 -0
  928. package/lib/animation/morphing.js.map +1 -0
  929. package/lib/animation/scaleInX.d.ts +7 -0
  930. package/lib/animation/scaleInX.js +49 -0
  931. package/lib/animation/scaleInX.js.map +1 -0
  932. package/lib/animation/scaleInY.d.ts +7 -0
  933. package/lib/animation/scaleInY.js +49 -0
  934. package/lib/animation/scaleInY.js.map +1 -0
  935. package/lib/animation/scaleOutX.d.ts +7 -0
  936. package/lib/animation/scaleOutX.js +49 -0
  937. package/lib/animation/scaleOutX.js.map +1 -0
  938. package/lib/animation/scaleOutY.d.ts +7 -0
  939. package/lib/animation/scaleOutY.js +49 -0
  940. package/lib/animation/scaleOutY.js.map +1 -0
  941. package/lib/animation/utils.d.ts +2 -0
  942. package/lib/animation/utils.js +21 -0
  943. package/lib/animation/utils.js.map +1 -0
  944. package/lib/api/chart.d.ts +33 -0
  945. package/lib/api/chart.js +114 -0
  946. package/lib/api/chart.js.map +1 -0
  947. package/lib/api/composition/circle.d.ts +21 -0
  948. package/lib/api/composition/circle.js +33 -0
  949. package/lib/api/composition/circle.js.map +1 -0
  950. package/lib/api/composition/flex.d.ts +17 -0
  951. package/lib/api/composition/flex.js +29 -0
  952. package/lib/api/composition/flex.js.map +1 -0
  953. package/lib/api/composition/index.d.ts +26 -0
  954. package/lib/api/composition/index.js +36 -0
  955. package/lib/api/composition/index.js.map +1 -0
  956. package/lib/api/composition/keyframe.d.ts +17 -0
  957. package/lib/api/composition/keyframe.js +29 -0
  958. package/lib/api/composition/keyframe.js.map +1 -0
  959. package/lib/api/composition/layer.d.ts +14 -0
  960. package/lib/api/composition/layer.js +26 -0
  961. package/lib/api/composition/layer.js.map +1 -0
  962. package/lib/api/composition/matrix.d.ts +21 -0
  963. package/lib/api/composition/matrix.js +33 -0
  964. package/lib/api/composition/matrix.js.map +1 -0
  965. package/lib/api/composition/rect.d.ts +23 -0
  966. package/lib/api/composition/rect.js +35 -0
  967. package/lib/api/composition/rect.js.map +1 -0
  968. package/lib/api/composition/view.d.ts +20 -0
  969. package/lib/api/composition/view.js +33 -0
  970. package/lib/api/composition/view.js.map +1 -0
  971. package/lib/api/index.d.ts +2 -0
  972. package/lib/api/index.js +8 -0
  973. package/lib/api/index.js.map +1 -0
  974. package/lib/api/library.d.ts +3 -0
  975. package/lib/api/library.js +11 -0
  976. package/lib/api/library.js.map +1 -0
  977. package/lib/api/mark/index.d.ts +41 -0
  978. package/lib/api/mark/index.js +25 -0
  979. package/lib/api/mark/index.js.map +1 -0
  980. package/lib/api/mark/mark.d.ts +114 -0
  981. package/lib/api/mark/mark.js +193 -0
  982. package/lib/api/mark/mark.js.map +1 -0
  983. package/lib/api/mark/types.d.ts +21 -0
  984. package/lib/{util → api/mark}/types.js +0 -0
  985. package/lib/api/mark/types.js.map +1 -0
  986. package/lib/api/node.d.ts +31 -0
  987. package/lib/api/node.js +59 -0
  988. package/lib/api/node.js.map +1 -0
  989. package/lib/api/props.d.ts +12 -0
  990. package/lib/api/props.js +81 -0
  991. package/lib/api/props.js.map +1 -0
  992. package/lib/api/types.d.ts +10 -0
  993. package/lib/api/types.js +3 -0
  994. package/lib/api/types.js.map +1 -0
  995. package/lib/component/axis.d.ts +13 -0
  996. package/lib/component/axis.js +298 -0
  997. package/lib/component/axis.js.map +1 -0
  998. package/lib/component/axisX.d.ts +7 -0
  999. package/lib/component/axisX.js +13 -0
  1000. package/lib/component/axisX.js.map +1 -0
  1001. package/lib/component/axisY.d.ts +7 -0
  1002. package/lib/component/axisY.js +13 -0
  1003. package/lib/component/axisY.js.map +1 -0
  1004. package/lib/component/index.d.ts +5 -0
  1005. package/lib/component/index.js +14 -0
  1006. package/lib/component/index.js.map +1 -0
  1007. package/lib/component/legendCategory.d.ts +10 -0
  1008. package/lib/component/legendCategory.js +88 -0
  1009. package/lib/component/legendCategory.js.map +1 -0
  1010. package/lib/component/legendContinuous.d.ts +9 -0
  1011. package/lib/component/legendContinuous.js +42 -0
  1012. package/lib/component/legendContinuous.js.map +1 -0
  1013. package/lib/component/title.d.ts +6 -0
  1014. package/lib/component/title.js +58 -0
  1015. package/lib/component/title.js.map +1 -0
  1016. package/lib/component/utils.d.ts +8 -0
  1017. package/lib/component/utils.js +32 -0
  1018. package/lib/component/utils.js.map +1 -0
  1019. package/lib/composition/circle.d.ts +7 -0
  1020. package/lib/composition/circle.js +89 -0
  1021. package/lib/composition/circle.js.map +1 -0
  1022. package/lib/composition/flex.d.ts +7 -0
  1023. package/lib/composition/flex.js +44 -0
  1024. package/lib/composition/flex.js.map +1 -0
  1025. package/lib/composition/index.d.ts +8 -0
  1026. package/lib/composition/index.js +20 -0
  1027. package/lib/composition/index.js.map +1 -0
  1028. package/lib/composition/keyframe.d.ts +7 -0
  1029. package/lib/composition/keyframe.js +79 -0
  1030. package/lib/composition/keyframe.js.map +1 -0
  1031. package/lib/composition/layer.d.ts +7 -0
  1032. package/lib/composition/layer.js +36 -0
  1033. package/lib/composition/layer.js.map +1 -0
  1034. package/lib/composition/mark.d.ts +4 -0
  1035. package/lib/composition/mark.js +45 -0
  1036. package/lib/composition/mark.js.map +1 -0
  1037. package/lib/composition/matrix.d.ts +8 -0
  1038. package/lib/composition/matrix.js +155 -0
  1039. package/lib/composition/matrix.js.map +1 -0
  1040. package/lib/composition/rect.d.ts +30 -0
  1041. package/lib/composition/rect.js +291 -0
  1042. package/lib/composition/rect.js.map +1 -0
  1043. package/lib/composition/utils.d.ts +16 -0
  1044. package/lib/composition/utils.js +39 -0
  1045. package/lib/composition/utils.js.map +1 -0
  1046. package/lib/composition/view.d.ts +9 -0
  1047. package/lib/composition/view.js +37 -0
  1048. package/lib/composition/view.js.map +1 -0
  1049. package/lib/coordinate/cartesian.d.ts +7 -0
  1050. package/lib/coordinate/cartesian.js +10 -0
  1051. package/lib/coordinate/cartesian.js.map +1 -0
  1052. package/lib/coordinate/fisheye.d.ts +7 -0
  1053. package/lib/coordinate/fisheye.js +10 -0
  1054. package/lib/coordinate/fisheye.js.map +1 -0
  1055. package/lib/coordinate/fisheyeX.d.ts +7 -0
  1056. package/lib/coordinate/fisheyeX.js +10 -0
  1057. package/lib/coordinate/fisheyeX.js.map +1 -0
  1058. package/lib/coordinate/fisheyeY.d.ts +7 -0
  1059. package/lib/coordinate/fisheyeY.js +10 -0
  1060. package/lib/coordinate/fisheyeY.js.map +1 -0
  1061. package/lib/coordinate/helix.d.ts +7 -0
  1062. package/lib/coordinate/helix.js +15 -0
  1063. package/lib/coordinate/helix.js.map +1 -0
  1064. package/lib/coordinate/index.d.ts +12 -0
  1065. package/lib/coordinate/index.js +28 -0
  1066. package/lib/coordinate/index.js.map +1 -0
  1067. package/lib/coordinate/parallel.d.ts +7 -0
  1068. package/lib/coordinate/parallel.js +10 -0
  1069. package/lib/coordinate/parallel.js.map +1 -0
  1070. package/lib/coordinate/polar.d.ts +8 -0
  1071. package/lib/coordinate/polar.js +16 -0
  1072. package/lib/coordinate/polar.js.map +1 -0
  1073. package/lib/coordinate/reflect.d.ts +7 -0
  1074. package/lib/coordinate/reflect.js +14 -0
  1075. package/lib/coordinate/reflect.js.map +1 -0
  1076. package/lib/coordinate/reflectX.d.ts +7 -0
  1077. package/lib/coordinate/reflectX.js +14 -0
  1078. package/lib/coordinate/reflectX.js.map +1 -0
  1079. package/lib/coordinate/reflectY.d.ts +7 -0
  1080. package/lib/coordinate/reflectY.js +14 -0
  1081. package/lib/coordinate/reflectY.js.map +1 -0
  1082. package/lib/coordinate/theta.d.ts +7 -0
  1083. package/lib/coordinate/theta.js +15 -0
  1084. package/lib/coordinate/theta.js.map +1 -0
  1085. package/lib/coordinate/transpose.d.ts +7 -0
  1086. package/lib/coordinate/transpose.js +15 -0
  1087. package/lib/coordinate/transpose.js.map +1 -0
  1088. package/lib/data/arc.d.ts +0 -0
  1089. package/lib/data/arc.js +19 -0
  1090. package/lib/data/arc.js.map +1 -0
  1091. package/lib/data/cluster.d.ts +0 -0
  1092. package/lib/data/cluster.js +47 -0
  1093. package/lib/data/cluster.js.map +1 -0
  1094. package/lib/data/connector.d.ts +7 -0
  1095. package/lib/data/connector.js +13 -0
  1096. package/lib/data/connector.js.map +1 -0
  1097. package/lib/data/fetch.d.ts +4 -0
  1098. package/lib/data/fetch.js +31 -0
  1099. package/lib/data/fetch.js.map +1 -0
  1100. package/lib/data/filterBy.d.ts +8 -0
  1101. package/lib/data/filterBy.js +17 -0
  1102. package/lib/data/filterBy.js.map +1 -0
  1103. package/lib/data/fold.d.ts +10 -0
  1104. package/lib/data/fold.js +29 -0
  1105. package/lib/data/fold.js.map +1 -0
  1106. package/lib/data/index.d.ts +9 -0
  1107. package/lib/data/index.js +22 -0
  1108. package/lib/data/index.js.map +1 -0
  1109. package/lib/data/inline.d.ts +4 -0
  1110. package/lib/data/inline.js +10 -0
  1111. package/lib/data/inline.js.map +1 -0
  1112. package/lib/data/pick.d.ts +7 -0
  1113. package/lib/data/pick.js +14 -0
  1114. package/lib/data/pick.js.map +1 -0
  1115. package/lib/data/rename.d.ts +8 -0
  1116. package/lib/data/rename.js +22 -0
  1117. package/lib/data/rename.js.map +1 -0
  1118. package/lib/data/sankey.d.ts +0 -0
  1119. package/lib/data/sankey.js +96 -0
  1120. package/lib/data/sankey.js.map +1 -0
  1121. package/lib/data/sortBy.d.ts +7 -0
  1122. package/lib/data/sortBy.js +18 -0
  1123. package/lib/data/sortBy.js.map +1 -0
  1124. package/lib/data/subset.d.ts +7 -0
  1125. package/lib/data/subset.js +30 -0
  1126. package/lib/data/subset.js.map +1 -0
  1127. package/lib/data/tree.d.ts +0 -0
  1128. package/lib/data/tree.js +10 -0
  1129. package/lib/data/tree.js.map +1 -0
  1130. package/lib/data/utils/arc/arc.d.ts +8 -0
  1131. package/lib/data/utils/arc/arc.js +188 -0
  1132. package/lib/data/utils/arc/arc.js.map +1 -0
  1133. package/lib/data/utils/arc/index.d.ts +2 -0
  1134. package/lib/data/utils/arc/index.js +6 -0
  1135. package/lib/data/utils/arc/index.js.map +1 -0
  1136. package/lib/data/utils/arc/sort.d.ts +4 -0
  1137. package/lib/data/utils/arc/sort.js +20 -0
  1138. package/lib/data/utils/arc/sort.js.map +1 -0
  1139. package/lib/data/utils/arc/types.d.ts +26 -0
  1140. package/lib/data/utils/arc/types.js +3 -0
  1141. package/lib/data/utils/arc/types.js.map +1 -0
  1142. package/lib/data/utils/d3-cloud/index.d.ts +1 -0
  1143. package/lib/data/utils/d3-cloud/index.js +399 -0
  1144. package/lib/data/utils/d3-cloud/index.js.map +1 -0
  1145. package/lib/data/utils/d3-sankey/align.d.ts +4 -0
  1146. package/lib/data/utils/d3-sankey/align.js +28 -0
  1147. package/lib/data/utils/d3-sankey/align.js.map +1 -0
  1148. package/lib/data/utils/d3-sankey/constant.d.ts +1 -0
  1149. package/lib/data/utils/d3-sankey/constant.js +10 -0
  1150. package/lib/data/utils/d3-sankey/constant.js.map +1 -0
  1151. package/lib/data/utils/d3-sankey/index.d.ts +12 -0
  1152. package/lib/data/utils/d3-sankey/index.js +20 -0
  1153. package/lib/data/utils/d3-sankey/index.js.map +1 -0
  1154. package/lib/data/utils/d3-sankey/sankey.d.ts +24 -0
  1155. package/lib/data/utils/d3-sankey/sankey.js +392 -0
  1156. package/lib/data/utils/d3-sankey/sankey.js.map +1 -0
  1157. package/lib/data/utils/flow.d.ts +9 -0
  1158. package/lib/data/utils/flow.js +49 -0
  1159. package/lib/data/utils/flow.js.map +1 -0
  1160. package/lib/data/utils/memo.d.ts +17 -0
  1161. package/lib/data/utils/memo.js +85 -0
  1162. package/lib/data/utils/memo.js.map +1 -0
  1163. package/lib/data/voronoi.d.ts +0 -0
  1164. package/lib/data/voronoi.js +27 -0
  1165. package/lib/data/voronoi.js.map +1 -0
  1166. package/lib/data/wordCloud.d.ts +0 -0
  1167. package/lib/data/wordCloud.js +100 -0
  1168. package/lib/data/wordCloud.js.map +1 -0
  1169. package/lib/encode/column.d.ts +7 -0
  1170. package/lib/encode/column.js +12 -0
  1171. package/lib/encode/column.js.map +1 -0
  1172. package/lib/encode/constant.d.ts +7 -0
  1173. package/lib/encode/constant.js +12 -0
  1174. package/lib/encode/constant.js.map +1 -0
  1175. package/lib/encode/field.d.ts +7 -0
  1176. package/lib/encode/field.js +12 -0
  1177. package/lib/encode/field.js.map +1 -0
  1178. package/lib/encode/index.d.ts +4 -0
  1179. package/lib/encode/index.js +12 -0
  1180. package/lib/encode/index.js.map +1 -0
  1181. package/lib/encode/transform.d.ts +9 -0
  1182. package/lib/encode/transform.js +14 -0
  1183. package/lib/encode/transform.js.map +1 -0
  1184. package/lib/index.d.ts +4 -107
  1185. package/lib/index.js +21 -591
  1186. package/lib/index.js.map +1 -1
  1187. package/lib/interaction/action/index.d.ts +23 -2
  1188. package/lib/interaction/action/index.js +47 -10
  1189. package/lib/interaction/action/index.js.map +1 -1
  1190. package/lib/interaction/action/service/elementSelection.d.ts +4 -0
  1191. package/lib/interaction/action/service/elementSelection.js +94 -0
  1192. package/lib/interaction/action/service/elementSelection.js.map +1 -0
  1193. package/lib/interaction/action/service/fisheyeFocus.d.ts +4 -0
  1194. package/lib/interaction/action/service/fisheyeFocus.js +55 -0
  1195. package/lib/interaction/action/service/fisheyeFocus.js.map +1 -0
  1196. package/lib/interaction/action/service/legendItemSelection.d.ts +4 -0
  1197. package/lib/interaction/action/service/legendItemSelection.js +21 -0
  1198. package/lib/interaction/action/service/legendItemSelection.js.map +1 -0
  1199. package/lib/interaction/action/service/recordCurrentPoint.d.ts +4 -0
  1200. package/lib/interaction/action/service/recordCurrentPoint.js +20 -0
  1201. package/lib/interaction/action/service/recordCurrentPoint.js.map +1 -0
  1202. package/lib/interaction/action/service/recordPoint.d.ts +4 -0
  1203. package/lib/interaction/action/service/recordPoint.js +32 -0
  1204. package/lib/interaction/action/service/recordPoint.js.map +1 -0
  1205. package/lib/interaction/action/service/recordRegion.d.ts +4 -0
  1206. package/lib/interaction/action/service/recordRegion.js +34 -0
  1207. package/lib/interaction/action/service/recordRegion.js.map +1 -0
  1208. package/lib/interaction/action/service/recordState.d.ts +4 -0
  1209. package/lib/interaction/action/service/recordState.js +14 -0
  1210. package/lib/interaction/action/service/recordState.js.map +1 -0
  1211. package/lib/interaction/action/service/recordTip.d.ts +8 -0
  1212. package/lib/interaction/action/service/recordTip.js +19 -0
  1213. package/lib/interaction/action/service/recordTip.js.map +1 -0
  1214. package/lib/interaction/action/service/surfacePointSelection.d.ts +4 -0
  1215. package/lib/interaction/action/service/surfacePointSelection.js +23 -0
  1216. package/lib/interaction/action/service/surfacePointSelection.js.map +1 -0
  1217. package/lib/interaction/action/service/triggerInfoSelection.d.ts +4 -0
  1218. package/lib/interaction/action/service/triggerInfoSelection.js +22 -0
  1219. package/lib/interaction/action/service/triggerInfoSelection.js.map +1 -0
  1220. package/lib/interaction/action/transformer/activeElement.d.ts +4 -0
  1221. package/lib/interaction/action/transformer/activeElement.js +27 -0
  1222. package/lib/interaction/action/transformer/activeElement.js.map +1 -0
  1223. package/lib/interaction/action/transformer/activeRegion.d.ts +4 -0
  1224. package/lib/interaction/action/transformer/activeRegion.js +56 -0
  1225. package/lib/interaction/action/transformer/activeRegion.js.map +1 -0
  1226. package/lib/interaction/action/transformer/button.d.ts +4 -0
  1227. package/lib/interaction/action/transformer/button.js +80 -0
  1228. package/lib/interaction/action/transformer/button.js.map +1 -0
  1229. package/lib/interaction/action/transformer/cursor.d.ts +4 -0
  1230. package/lib/interaction/action/transformer/cursor.js +19 -0
  1231. package/lib/interaction/action/transformer/cursor.js.map +1 -0
  1232. package/lib/interaction/action/transformer/filter.d.ts +7 -0
  1233. package/lib/interaction/action/transformer/filter.js +49 -0
  1234. package/lib/interaction/action/transformer/filter.js.map +1 -0
  1235. package/lib/interaction/action/transformer/filterElement.d.ts +4 -0
  1236. package/lib/interaction/action/transformer/filterElement.js +45 -0
  1237. package/lib/interaction/action/transformer/filterElement.js.map +1 -0
  1238. package/lib/interaction/action/transformer/highlightElement.d.ts +4 -0
  1239. package/lib/interaction/action/transformer/highlightElement.js +52 -0
  1240. package/lib/interaction/action/transformer/highlightElement.js.map +1 -0
  1241. package/lib/interaction/action/transformer/mask.d.ts +7 -0
  1242. package/lib/interaction/action/transformer/mask.js +110 -0
  1243. package/lib/interaction/action/transformer/mask.js.map +1 -0
  1244. package/lib/interaction/action/transformer/move.d.ts +7 -0
  1245. package/lib/interaction/action/transformer/move.js +74 -0
  1246. package/lib/interaction/action/transformer/move.js.map +1 -0
  1247. package/lib/interaction/action/transformer/plot.d.ts +4 -0
  1248. package/lib/interaction/action/transformer/plot.js +14 -0
  1249. package/lib/interaction/action/transformer/plot.js.map +1 -0
  1250. package/lib/interaction/action/transformer/poptip.d.ts +4 -0
  1251. package/lib/interaction/action/transformer/poptip.js +43 -0
  1252. package/lib/interaction/action/transformer/poptip.js.map +1 -0
  1253. package/lib/interaction/action/transformer/setItemState.d.ts +4 -0
  1254. package/lib/interaction/action/transformer/setItemState.js +35 -0
  1255. package/lib/interaction/action/transformer/setItemState.js.map +1 -0
  1256. package/lib/interaction/action/transformer/tooltip.d.ts +9 -0
  1257. package/lib/interaction/action/transformer/tooltip.js +293 -0
  1258. package/lib/interaction/action/transformer/tooltip.js.map +1 -0
  1259. package/lib/interaction/builtin/activeRegion.d.ts +19 -0
  1260. package/lib/interaction/builtin/activeRegion.js +22 -0
  1261. package/lib/interaction/builtin/activeRegion.js.map +1 -0
  1262. package/lib/interaction/builtin/brush.d.ts +132 -0
  1263. package/lib/interaction/builtin/brush.js +97 -0
  1264. package/lib/interaction/builtin/brush.js.map +1 -0
  1265. package/lib/interaction/builtin/brushHighlight.d.ts +98 -0
  1266. package/lib/interaction/builtin/brushHighlight.js +115 -0
  1267. package/lib/interaction/builtin/brushHighlight.js.map +1 -0
  1268. package/lib/interaction/builtin/brushVisible.d.ts +88 -0
  1269. package/lib/interaction/builtin/brushVisible.js +66 -0
  1270. package/lib/interaction/builtin/brushVisible.js.map +1 -0
  1271. package/lib/interaction/builtin/elementActive.d.ts +22 -0
  1272. package/lib/interaction/builtin/elementActive.js +29 -0
  1273. package/lib/interaction/builtin/elementActive.js.map +1 -0
  1274. package/lib/interaction/builtin/elementHighlight.d.ts +19 -0
  1275. package/lib/interaction/builtin/elementHighlight.js +28 -0
  1276. package/lib/interaction/builtin/elementHighlight.js.map +1 -0
  1277. package/lib/interaction/builtin/elementHighlightByColor.d.ts +23 -0
  1278. package/lib/interaction/builtin/elementHighlightByColor.js +28 -0
  1279. package/lib/interaction/builtin/elementHighlightByColor.js.map +1 -0
  1280. package/lib/interaction/builtin/elementHighlightByX.d.ts +23 -0
  1281. package/lib/interaction/builtin/elementHighlightByX.js +28 -0
  1282. package/lib/interaction/builtin/elementHighlightByX.js.map +1 -0
  1283. package/lib/interaction/builtin/elementListHighlight.d.ts +43 -0
  1284. package/lib/interaction/builtin/elementListHighlight.js +32 -0
  1285. package/lib/interaction/builtin/elementListHighlight.js.map +1 -0
  1286. package/lib/interaction/builtin/elementSelected.d.ts +20 -0
  1287. package/lib/interaction/builtin/elementSelected.js +22 -0
  1288. package/lib/interaction/builtin/elementSelected.js.map +1 -0
  1289. package/lib/interaction/builtin/ellipsisText.d.ts +19 -0
  1290. package/lib/interaction/builtin/ellipsisText.js +21 -0
  1291. package/lib/interaction/builtin/ellipsisText.js.map +1 -0
  1292. package/lib/interaction/builtin/fisheye.d.ts +35 -0
  1293. package/lib/interaction/builtin/fisheye.js +24 -0
  1294. package/lib/interaction/builtin/fisheye.js.map +1 -0
  1295. package/lib/interaction/builtin/legendActive.d.ts +43 -0
  1296. package/lib/interaction/builtin/legendActive.js +34 -0
  1297. package/lib/interaction/builtin/legendActive.js.map +1 -0
  1298. package/lib/interaction/builtin/legendHighlight.d.ts +43 -0
  1299. package/lib/interaction/builtin/legendHighlight.js +34 -0
  1300. package/lib/interaction/builtin/legendHighlight.js.map +1 -0
  1301. package/lib/interaction/builtin/tooltip.d.ts +44 -0
  1302. package/lib/interaction/builtin/tooltip.js +32 -0
  1303. package/lib/interaction/builtin/tooltip.js.map +1 -0
  1304. package/lib/interaction/create.d.ts +3 -0
  1305. package/lib/interaction/create.js +100 -0
  1306. package/lib/interaction/create.js.map +1 -0
  1307. package/lib/interaction/index.d.ts +18 -25
  1308. package/lib/interaction/index.js +50 -51
  1309. package/lib/interaction/index.js.map +1 -1
  1310. package/lib/interaction/interactor/index.d.ts +2 -0
  1311. package/lib/interaction/interactor/index.js +8 -0
  1312. package/lib/interaction/interactor/index.js.map +1 -0
  1313. package/lib/interaction/interactor/mousePosition.d.ts +3 -0
  1314. package/lib/interaction/interactor/mousePosition.js +14 -0
  1315. package/lib/interaction/interactor/mousePosition.js.map +1 -0
  1316. package/lib/interaction/interactor/touchPosition.d.ts +3 -0
  1317. package/lib/interaction/interactor/touchPosition.js +14 -0
  1318. package/lib/interaction/interactor/touchPosition.js.map +1 -0
  1319. package/lib/interaction/stdlib.d.ts +2 -0
  1320. package/lib/interaction/stdlib.js +36 -0
  1321. package/lib/interaction/stdlib.js.map +1 -0
  1322. package/lib/interaction/types.d.ts +57 -0
  1323. package/lib/interaction/types.js +3 -0
  1324. package/lib/interaction/types.js.map +1 -0
  1325. package/lib/interaction/utils.d.ts +3 -0
  1326. package/lib/interaction/utils.js +45 -0
  1327. package/lib/interaction/utils.js.map +1 -0
  1328. package/lib/labelLayout/hideOverlap.d.ts +2 -0
  1329. package/lib/labelLayout/hideOverlap.js +42 -0
  1330. package/lib/labelLayout/hideOverlap.js.map +1 -0
  1331. package/lib/labelLayout/index.d.ts +1 -0
  1332. package/lib/labelLayout/index.js +6 -0
  1333. package/lib/labelLayout/index.js.map +1 -0
  1334. package/lib/mark/annotation/connector.d.ts +4 -0
  1335. package/lib/mark/annotation/connector.js +22 -0
  1336. package/lib/mark/annotation/connector.js.map +1 -0
  1337. package/lib/mark/annotation/index.d.ts +7 -0
  1338. package/lib/mark/annotation/index.js +18 -0
  1339. package/lib/mark/annotation/index.js.map +1 -0
  1340. package/lib/mark/annotation/lineX.d.ts +4 -0
  1341. package/lib/mark/annotation/lineX.js +25 -0
  1342. package/lib/mark/annotation/lineX.js.map +1 -0
  1343. package/lib/mark/annotation/lineY.d.ts +4 -0
  1344. package/lib/mark/annotation/lineY.js +25 -0
  1345. package/lib/mark/annotation/lineY.js.map +1 -0
  1346. package/lib/mark/annotation/range.d.ts +8 -0
  1347. package/lib/mark/annotation/range.js +49 -0
  1348. package/lib/mark/annotation/range.js.map +1 -0
  1349. package/lib/mark/annotation/rangeX.d.ts +4 -0
  1350. package/lib/mark/annotation/rangeX.js +18 -0
  1351. package/lib/mark/annotation/rangeX.js.map +1 -0
  1352. package/lib/mark/annotation/rangeY.d.ts +4 -0
  1353. package/lib/mark/annotation/rangeY.js +18 -0
  1354. package/lib/mark/annotation/rangeY.js.map +1 -0
  1355. package/lib/mark/annotation/text.d.ts +4 -0
  1356. package/lib/mark/annotation/text.js +25 -0
  1357. package/lib/mark/annotation/text.js.map +1 -0
  1358. package/lib/mark/geometry/area.d.ts +4 -0
  1359. package/lib/mark/geometry/area.js +74 -0
  1360. package/lib/mark/geometry/area.js.map +1 -0
  1361. package/lib/mark/geometry/edge.d.ts +13 -0
  1362. package/lib/mark/geometry/edge.js +35 -0
  1363. package/lib/mark/geometry/edge.js.map +1 -0
  1364. package/lib/mark/geometry/grid.d.ts +9 -0
  1365. package/lib/mark/geometry/grid.js +50 -0
  1366. package/lib/mark/geometry/grid.js.map +1 -0
  1367. package/lib/mark/geometry/image.d.ts +4 -0
  1368. package/lib/mark/geometry/image.js +38 -0
  1369. package/lib/mark/geometry/image.js.map +1 -0
  1370. package/lib/mark/geometry/index.d.ts +13 -0
  1371. package/lib/mark/geometry/index.js +30 -0
  1372. package/lib/mark/geometry/index.js.map +1 -0
  1373. package/lib/mark/geometry/interval.d.ts +12 -0
  1374. package/lib/mark/geometry/interval.js +63 -0
  1375. package/lib/mark/geometry/interval.js.map +1 -0
  1376. package/lib/mark/geometry/line.d.ts +7 -0
  1377. package/lib/mark/geometry/line.js +80 -0
  1378. package/lib/mark/geometry/line.js.map +1 -0
  1379. package/lib/mark/geometry/link.d.ts +7 -0
  1380. package/lib/mark/geometry/link.js +37 -0
  1381. package/lib/mark/geometry/link.js.map +1 -0
  1382. package/lib/mark/geometry/node.d.ts +8 -0
  1383. package/lib/mark/geometry/node.js +31 -0
  1384. package/lib/mark/geometry/node.js.map +1 -0
  1385. package/lib/mark/geometry/point.d.ts +10 -0
  1386. package/lib/mark/geometry/point.js +75 -0
  1387. package/lib/mark/geometry/point.js.map +1 -0
  1388. package/lib/mark/geometry/polygon.d.ts +7 -0
  1389. package/lib/mark/geometry/polygon.js +47 -0
  1390. package/lib/mark/geometry/polygon.js.map +1 -0
  1391. package/lib/mark/geometry/schema.d.ts +34 -0
  1392. package/lib/mark/geometry/schema.js +94 -0
  1393. package/lib/mark/geometry/schema.js.map +1 -0
  1394. package/lib/mark/geometry/text.d.ts +4 -0
  1395. package/lib/mark/geometry/text.js +39 -0
  1396. package/lib/mark/geometry/text.js.map +1 -0
  1397. package/lib/mark/geometry/vector.d.ts +8 -0
  1398. package/lib/mark/geometry/vector.js +47 -0
  1399. package/lib/mark/geometry/vector.js.map +1 -0
  1400. package/lib/mark/utils.d.ts +8 -0
  1401. package/lib/mark/utils.js +38 -0
  1402. package/lib/mark/utils.js.map +1 -0
  1403. package/lib/palette/category10.d.ts +7 -0
  1404. package/lib/palette/category10.js +23 -0
  1405. package/lib/palette/category10.js.map +1 -0
  1406. package/lib/palette/category20.d.ts +7 -0
  1407. package/lib/palette/category20.js +33 -0
  1408. package/lib/palette/category20.js.map +1 -0
  1409. package/lib/palette/index.d.ts +2 -0
  1410. package/lib/palette/index.js +8 -0
  1411. package/lib/palette/index.js.map +1 -0
  1412. package/lib/renderer/canvas.d.ts +10 -0
  1413. package/lib/renderer/canvas.js +22 -0
  1414. package/lib/renderer/canvas.js.map +1 -0
  1415. package/lib/renderer/index.d.ts +1 -0
  1416. package/lib/renderer/index.js +6 -0
  1417. package/lib/renderer/index.js.map +1 -0
  1418. package/lib/runtime/component.d.ts +5 -0
  1419. package/lib/runtime/component.js +145 -0
  1420. package/lib/runtime/component.js.map +1 -0
  1421. package/lib/runtime/coordinate.d.ts +11 -0
  1422. package/lib/runtime/coordinate.js +61 -0
  1423. package/lib/runtime/coordinate.js.map +1 -0
  1424. package/lib/runtime/index.d.ts +8 -0
  1425. package/lib/runtime/index.js +27 -0
  1426. package/lib/runtime/index.js.map +1 -0
  1427. package/lib/runtime/layout.d.ts +5 -0
  1428. package/lib/runtime/layout.js +120 -0
  1429. package/lib/runtime/layout.js.map +1 -0
  1430. package/lib/runtime/library.d.ts +3 -0
  1431. package/lib/runtime/library.js +30 -0
  1432. package/lib/runtime/library.js.map +1 -0
  1433. package/lib/runtime/mark.d.ts +6 -0
  1434. package/lib/runtime/mark.js +132 -0
  1435. package/lib/runtime/mark.js.map +1 -0
  1436. package/lib/runtime/plot.d.ts +3 -0
  1437. package/lib/runtime/plot.js +564 -0
  1438. package/lib/runtime/plot.js.map +1 -0
  1439. package/lib/runtime/render.d.ts +2 -0
  1440. package/lib/runtime/render.js +71 -0
  1441. package/lib/runtime/render.js.map +1 -0
  1442. package/lib/runtime/scale.d.ts +8 -0
  1443. package/lib/runtime/scale.js +342 -0
  1444. package/lib/runtime/scale.js.map +1 -0
  1445. package/lib/runtime/transform.d.ts +9 -0
  1446. package/lib/runtime/transform.js +154 -0
  1447. package/lib/runtime/transform.js.map +1 -0
  1448. package/lib/runtime/types/common.d.ts +127 -0
  1449. package/lib/runtime/types/common.js +3 -0
  1450. package/lib/runtime/types/common.js.map +1 -0
  1451. package/lib/runtime/types/component.d.ts +76 -0
  1452. package/lib/runtime/types/component.js +3 -0
  1453. package/lib/runtime/types/component.js.map +1 -0
  1454. package/lib/runtime/types/data.d.ts +7 -0
  1455. package/lib/runtime/types/data.js +3 -0
  1456. package/lib/runtime/types/data.js.map +1 -0
  1457. package/lib/runtime/types/encode.d.ts +23 -0
  1458. package/lib/runtime/types/encode.js +3 -0
  1459. package/lib/runtime/types/encode.js.map +1 -0
  1460. package/lib/runtime/types/mark.d.ts +20 -0
  1461. package/lib/runtime/types/mark.js +3 -0
  1462. package/lib/runtime/types/mark.js.map +1 -0
  1463. package/lib/runtime/types/options.d.ts +109 -0
  1464. package/lib/runtime/types/options.js +3 -0
  1465. package/lib/runtime/types/options.js.map +1 -0
  1466. package/lib/runtime/types/transform.d.ts +17 -0
  1467. package/lib/runtime/types/transform.js +3 -0
  1468. package/lib/runtime/types/transform.js.map +1 -0
  1469. package/lib/scale/band.d.ts +4 -0
  1470. package/lib/scale/band.js +10 -0
  1471. package/lib/scale/band.js.map +1 -0
  1472. package/lib/scale/identity.d.ts +4 -0
  1473. package/lib/scale/identity.js +10 -0
  1474. package/lib/scale/identity.js.map +1 -0
  1475. package/lib/scale/index.d.ts +11 -0
  1476. package/lib/scale/index.js +26 -0
  1477. package/lib/scale/index.js.map +1 -0
  1478. package/lib/scale/linear.d.ts +4 -0
  1479. package/lib/scale/linear.js +10 -0
  1480. package/lib/scale/linear.js.map +1 -0
  1481. package/lib/scale/log.d.ts +4 -0
  1482. package/lib/scale/log.js +10 -0
  1483. package/lib/scale/log.js.map +1 -0
  1484. package/lib/scale/ordinal.d.ts +4 -0
  1485. package/lib/scale/ordinal.js +10 -0
  1486. package/lib/scale/ordinal.js.map +1 -0
  1487. package/lib/scale/point.d.ts +4 -0
  1488. package/lib/scale/point.js +10 -0
  1489. package/lib/scale/point.js.map +1 -0
  1490. package/lib/scale/pow.d.ts +4 -0
  1491. package/lib/scale/pow.js +10 -0
  1492. package/lib/scale/pow.js.map +1 -0
  1493. package/lib/scale/quantile.d.ts +4 -0
  1494. package/lib/scale/quantile.js +10 -0
  1495. package/lib/scale/quantile.js.map +1 -0
  1496. package/lib/scale/quantize.d.ts +4 -0
  1497. package/lib/scale/quantize.js +10 -0
  1498. package/lib/scale/quantize.js.map +1 -0
  1499. package/lib/scale/threshold.d.ts +4 -0
  1500. package/lib/scale/threshold.js +10 -0
  1501. package/lib/scale/threshold.js.map +1 -0
  1502. package/lib/scale/time.d.ts +4 -0
  1503. package/lib/scale/time.js +10 -0
  1504. package/lib/scale/time.js.map +1 -0
  1505. package/lib/shape/annotation/badge.d.ts +14 -0
  1506. package/lib/shape/annotation/badge.js +97 -0
  1507. package/lib/shape/annotation/badge.js.map +1 -0
  1508. package/lib/shape/annotation/connector.d.ts +15 -0
  1509. package/lib/shape/annotation/connector.js +105 -0
  1510. package/lib/shape/annotation/connector.js.map +1 -0
  1511. package/lib/shape/annotation/line.d.ts +3 -0
  1512. package/lib/shape/annotation/line.js +60 -0
  1513. package/lib/shape/annotation/line.js.map +1 -0
  1514. package/lib/shape/annotation/text.d.ts +20 -0
  1515. package/lib/shape/annotation/text.js +166 -0
  1516. package/lib/shape/annotation/text.js.map +1 -0
  1517. package/lib/shape/area/area.d.ts +3 -0
  1518. package/lib/shape/area/area.js +15 -0
  1519. package/lib/shape/area/area.js.map +1 -0
  1520. package/lib/shape/area/curveArea.d.ts +8 -0
  1521. package/lib/shape/area/curveArea.js +64 -0
  1522. package/lib/shape/area/curveArea.js.map +1 -0
  1523. package/lib/shape/area/smoothArea.d.ts +5 -0
  1524. package/lib/shape/area/smoothArea.js +27 -0
  1525. package/lib/shape/area/smoothArea.js.map +1 -0
  1526. package/lib/shape/edge/arc.d.ts +8 -0
  1527. package/lib/shape/edge/arc.js +55 -0
  1528. package/lib/shape/edge/arc.js.map +1 -0
  1529. package/lib/shape/edge/edge.d.ts +6 -0
  1530. package/lib/shape/edge/edge.js +15 -0
  1531. package/lib/shape/edge/edge.js.map +1 -0
  1532. package/lib/shape/edge/ribbon.d.ts +15 -0
  1533. package/lib/shape/edge/ribbon.js +73 -0
  1534. package/lib/shape/edge/ribbon.js.map +1 -0
  1535. package/lib/shape/edge/smoothEdge.d.ts +6 -0
  1536. package/lib/shape/edge/smoothEdge.js +43 -0
  1537. package/lib/shape/edge/smoothEdge.js.map +1 -0
  1538. package/lib/shape/edge/vhv.d.ts +12 -0
  1539. package/lib/shape/edge/vhv.js +73 -0
  1540. package/lib/shape/edge/vhv.js.map +1 -0
  1541. package/lib/shape/image/image.d.ts +3 -0
  1542. package/lib/shape/image/image.js +42 -0
  1543. package/lib/shape/image/image.js.map +1 -0
  1544. package/lib/shape/index.d.ts +48 -0
  1545. package/lib/shape/index.js +101 -0
  1546. package/lib/shape/index.js.map +1 -0
  1547. package/lib/shape/interval/colorRect.d.ts +14 -0
  1548. package/lib/shape/interval/colorRect.js +66 -0
  1549. package/lib/shape/interval/colorRect.js.map +1 -0
  1550. package/lib/shape/interval/funnel.d.ts +10 -0
  1551. package/lib/shape/interval/funnel.js +47 -0
  1552. package/lib/shape/interval/funnel.js.map +1 -0
  1553. package/lib/shape/interval/hollowRect.d.ts +6 -0
  1554. package/lib/shape/interval/hollowRect.js +13 -0
  1555. package/lib/shape/interval/hollowRect.js.map +1 -0
  1556. package/lib/shape/interval/pyramid.d.ts +6 -0
  1557. package/lib/shape/interval/pyramid.js +42 -0
  1558. package/lib/shape/interval/pyramid.js.map +1 -0
  1559. package/lib/shape/interval/rect.d.ts +7 -0
  1560. package/lib/shape/interval/rect.js +14 -0
  1561. package/lib/shape/interval/rect.js.map +1 -0
  1562. package/lib/shape/label/label.d.ts +7 -0
  1563. package/lib/shape/label/label.js +104 -0
  1564. package/lib/shape/label/label.js.map +1 -0
  1565. package/lib/shape/line/curveLine.d.ts +8 -0
  1566. package/lib/shape/line/curveLine.js +45 -0
  1567. package/lib/shape/line/curveLine.js.map +1 -0
  1568. package/lib/shape/line/hv.d.ts +3 -0
  1569. package/lib/shape/line/hv.js +11 -0
  1570. package/lib/shape/line/hv.js.map +1 -0
  1571. package/lib/shape/line/hvh.d.ts +3 -0
  1572. package/lib/shape/line/hvh.js +11 -0
  1573. package/lib/shape/line/hvh.js.map +1 -0
  1574. package/lib/shape/line/line.d.ts +3 -0
  1575. package/lib/shape/line/line.js +11 -0
  1576. package/lib/shape/line/line.js.map +1 -0
  1577. package/lib/shape/line/smooth.d.ts +5 -0
  1578. package/lib/shape/line/smooth.js +23 -0
  1579. package/lib/shape/line/smooth.js.map +1 -0
  1580. package/lib/shape/line/vh.d.ts +3 -0
  1581. package/lib/shape/line/vh.js +11 -0
  1582. package/lib/shape/line/vh.js.map +1 -0
  1583. package/lib/shape/link/link.d.ts +13 -0
  1584. package/lib/shape/link/link.js +53 -0
  1585. package/lib/shape/link/link.js.map +1 -0
  1586. package/lib/shape/node/point.d.ts +6 -0
  1587. package/lib/shape/node/point.js +31 -0
  1588. package/lib/shape/node/point.js.map +1 -0
  1589. package/lib/shape/node/polygon.d.ts +3 -0
  1590. package/lib/shape/node/polygon.js +12 -0
  1591. package/lib/shape/node/polygon.js.map +1 -0
  1592. package/lib/shape/point/bowtie.d.ts +6 -0
  1593. package/lib/shape/point/bowtie.js +13 -0
  1594. package/lib/shape/point/bowtie.js.map +1 -0
  1595. package/lib/shape/point/colorPoint.d.ts +11 -0
  1596. package/lib/shape/point/colorPoint.js +86 -0
  1597. package/lib/shape/point/colorPoint.js.map +1 -0
  1598. package/lib/shape/point/cross.d.ts +6 -0
  1599. package/lib/shape/point/cross.js +13 -0
  1600. package/lib/shape/point/cross.js.map +1 -0
  1601. package/lib/shape/point/diamond.d.ts +6 -0
  1602. package/lib/shape/point/diamond.js +13 -0
  1603. package/lib/shape/point/diamond.js.map +1 -0
  1604. package/lib/shape/point/hexagon.d.ts +6 -0
  1605. package/lib/shape/point/hexagon.js +13 -0
  1606. package/lib/shape/point/hexagon.js.map +1 -0
  1607. package/lib/shape/point/hollowBowtie.d.ts +6 -0
  1608. package/lib/shape/point/hollowBowtie.js +13 -0
  1609. package/lib/shape/point/hollowBowtie.js.map +1 -0
  1610. package/lib/shape/point/hollowDiamond.d.ts +6 -0
  1611. package/lib/shape/point/hollowDiamond.js +13 -0
  1612. package/lib/shape/point/hollowDiamond.js.map +1 -0
  1613. package/lib/shape/point/hollowHexagon.d.ts +6 -0
  1614. package/lib/shape/point/hollowHexagon.js +13 -0
  1615. package/lib/shape/point/hollowHexagon.js.map +1 -0
  1616. package/lib/shape/point/hollowPoint.d.ts +6 -0
  1617. package/lib/shape/point/hollowPoint.js +13 -0
  1618. package/lib/shape/point/hollowPoint.js.map +1 -0
  1619. package/lib/shape/point/hollowSquare.d.ts +6 -0
  1620. package/lib/shape/point/hollowSquare.js +13 -0
  1621. package/lib/shape/point/hollowSquare.js.map +1 -0
  1622. package/lib/shape/point/hollowTriangle.d.ts +6 -0
  1623. package/lib/shape/point/hollowTriangle.js +13 -0
  1624. package/lib/shape/point/hollowTriangle.js.map +1 -0
  1625. package/lib/shape/point/hollowTriangleDown.d.ts +6 -0
  1626. package/lib/shape/point/hollowTriangleDown.js +13 -0
  1627. package/lib/shape/point/hollowTriangleDown.js.map +1 -0
  1628. package/lib/shape/point/hyphen.d.ts +6 -0
  1629. package/lib/shape/point/hyphen.js +13 -0
  1630. package/lib/shape/point/hyphen.js.map +1 -0
  1631. package/lib/shape/point/line.d.ts +6 -0
  1632. package/lib/shape/point/line.js +13 -0
  1633. package/lib/shape/point/line.js.map +1 -0
  1634. package/lib/shape/point/plus.d.ts +6 -0
  1635. package/lib/shape/point/plus.js +13 -0
  1636. package/lib/shape/point/plus.js.map +1 -0
  1637. package/lib/shape/point/point.d.ts +6 -0
  1638. package/lib/shape/point/point.js +13 -0
  1639. package/lib/shape/point/point.js.map +1 -0
  1640. package/lib/shape/point/square.d.ts +6 -0
  1641. package/lib/shape/point/square.js +13 -0
  1642. package/lib/shape/point/square.js.map +1 -0
  1643. package/lib/shape/point/symbol.d.ts +49 -0
  1644. package/lib/shape/point/symbol.js +157 -0
  1645. package/lib/shape/point/symbol.js.map +1 -0
  1646. package/lib/shape/point/tick.d.ts +6 -0
  1647. package/lib/shape/point/tick.js +13 -0
  1648. package/lib/shape/point/tick.js.map +1 -0
  1649. package/lib/shape/point/triangle.d.ts +6 -0
  1650. package/lib/shape/point/triangle.js +13 -0
  1651. package/lib/shape/point/triangle.js.map +1 -0
  1652. package/lib/shape/point/triangleDown.d.ts +6 -0
  1653. package/lib/shape/point/triangleDown.js +13 -0
  1654. package/lib/shape/point/triangleDown.js.map +1 -0
  1655. package/lib/shape/polygon/polygon.d.ts +3 -0
  1656. package/lib/shape/polygon/polygon.js +71 -0
  1657. package/lib/shape/polygon/polygon.js.map +1 -0
  1658. package/lib/shape/schema/box.d.ts +3 -0
  1659. package/lib/shape/schema/box.js +91 -0
  1660. package/lib/shape/schema/box.js.map +1 -0
  1661. package/lib/shape/text/text.d.ts +6 -0
  1662. package/lib/shape/text/text.js +45 -0
  1663. package/lib/shape/text/text.js.map +1 -0
  1664. package/lib/shape/utils.d.ts +59 -0
  1665. package/lib/shape/utils.js +99 -0
  1666. package/lib/shape/utils.js.map +1 -0
  1667. package/lib/shape/vector/vector.d.ts +13 -0
  1668. package/lib/shape/vector/vector.js +52 -0
  1669. package/lib/shape/vector/vector.js.map +1 -0
  1670. package/lib/spec/action.d.ts +122 -0
  1671. package/lib/spec/action.js +3 -0
  1672. package/lib/spec/action.js.map +1 -0
  1673. package/lib/spec/animate.d.ts +8 -0
  1674. package/lib/spec/animate.js +3 -0
  1675. package/lib/spec/animate.js.map +1 -0
  1676. package/lib/spec/composition.d.ts +127 -0
  1677. package/lib/spec/composition.js +3 -0
  1678. package/lib/spec/composition.js.map +1 -0
  1679. package/lib/spec/coordinate.d.ts +74 -0
  1680. package/lib/spec/coordinate.js +3 -0
  1681. package/lib/spec/coordinate.js.map +1 -0
  1682. package/lib/spec/data.d.ts +54 -0
  1683. package/lib/spec/data.js +3 -0
  1684. package/lib/spec/data.js.map +1 -0
  1685. package/lib/spec/encode.d.ts +23 -0
  1686. package/lib/spec/encode.js +3 -0
  1687. package/lib/spec/encode.js.map +1 -0
  1688. package/lib/spec/geometry.d.ts +61 -0
  1689. package/lib/spec/geometry.js +3 -0
  1690. package/lib/spec/geometry.js.map +1 -0
  1691. package/lib/spec/index.d.ts +17 -0
  1692. package/lib/spec/index.js +29 -0
  1693. package/lib/spec/index.js.map +1 -0
  1694. package/lib/spec/interaction.d.ts +66 -0
  1695. package/lib/spec/interaction.js +3 -0
  1696. package/lib/spec/interaction.js.map +1 -0
  1697. package/lib/spec/labelLayout.d.ts +4 -0
  1698. package/lib/spec/labelLayout.js +3 -0
  1699. package/lib/spec/labelLayout.js.map +1 -0
  1700. package/lib/spec/palette.d.ts +13 -0
  1701. package/lib/spec/palette.js +3 -0
  1702. package/lib/spec/palette.js.map +1 -0
  1703. package/lib/spec/scale.d.ts +27 -0
  1704. package/lib/spec/scale.js +3 -0
  1705. package/lib/spec/scale.js.map +1 -0
  1706. package/lib/spec/theme.d.ts +12 -0
  1707. package/lib/spec/theme.js +3 -0
  1708. package/lib/spec/theme.js.map +1 -0
  1709. package/lib/spec/title.d.ts +2 -0
  1710. package/lib/spec/title.js +3 -0
  1711. package/lib/spec/title.js.map +1 -0
  1712. package/lib/spec/transform.d.ts +69 -0
  1713. package/lib/spec/transform.js +136 -0
  1714. package/lib/spec/transform.js.map +1 -0
  1715. package/lib/stdlib/index.d.ts +2 -0
  1716. package/lib/stdlib/index.js +200 -0
  1717. package/lib/stdlib/index.js.map +1 -0
  1718. package/lib/theme/index.d.ts +1 -12
  1719. package/lib/theme/index.js +3 -25
  1720. package/lib/theme/index.js.map +1 -1
  1721. package/lib/theme/light.d.ts +7 -0
  1722. package/lib/theme/light.js +35 -0
  1723. package/lib/theme/light.js.map +1 -0
  1724. package/lib/transform/Select.d.ts +9 -0
  1725. package/lib/transform/Select.js +57 -0
  1726. package/lib/transform/Select.js.map +1 -0
  1727. package/lib/transform/SelectX.d.ts +7 -0
  1728. package/lib/transform/SelectX.js +25 -0
  1729. package/lib/transform/SelectX.js.map +1 -0
  1730. package/lib/transform/SelectY.d.ts +7 -0
  1731. package/lib/transform/SelectY.js +25 -0
  1732. package/lib/transform/SelectY.js.map +1 -0
  1733. package/lib/transform/dodgeX.d.ts +9 -0
  1734. package/lib/transform/dodgeX.js +60 -0
  1735. package/lib/transform/dodgeX.js.map +1 -0
  1736. package/lib/transform/groupX.d.ts +9 -0
  1737. package/lib/transform/groupX.js +93 -0
  1738. package/lib/transform/groupX.js.map +1 -0
  1739. package/lib/transform/index.d.ts +21 -0
  1740. package/lib/transform/index.js +46 -0
  1741. package/lib/transform/index.js.map +1 -0
  1742. package/lib/transform/jitter.d.ts +9 -0
  1743. package/lib/transform/jitter.js +41 -0
  1744. package/lib/transform/jitter.js.map +1 -0
  1745. package/lib/transform/jitterY.d.ts +8 -0
  1746. package/lib/transform/jitterY.js +25 -0
  1747. package/lib/transform/jitterY.js.map +1 -0
  1748. package/lib/transform/maybeKey.d.ts +6 -0
  1749. package/lib/transform/maybeKey.js +36 -0
  1750. package/lib/transform/maybeKey.js.map +1 -0
  1751. package/lib/transform/maybeSeries.d.ts +6 -0
  1752. package/lib/transform/maybeSeries.js +21 -0
  1753. package/lib/transform/maybeSeries.js.map +1 -0
  1754. package/lib/transform/maybeSize.d.ts +7 -0
  1755. package/lib/transform/maybeSize.js +24 -0
  1756. package/lib/transform/maybeSize.js.map +1 -0
  1757. package/lib/transform/maybeStackY.d.ts +9 -0
  1758. package/lib/transform/maybeStackY.js +34 -0
  1759. package/lib/transform/maybeStackY.js.map +1 -0
  1760. package/lib/transform/maybeTitleX.d.ts +6 -0
  1761. package/lib/transform/maybeTitleX.js +21 -0
  1762. package/lib/transform/maybeTitleX.js.map +1 -0
  1763. package/lib/transform/maybeTooltip.d.ts +8 -0
  1764. package/lib/transform/maybeTooltip.js +33 -0
  1765. package/lib/transform/maybeTooltip.js.map +1 -0
  1766. package/lib/transform/maybeTooltipPosition.d.ts +7 -0
  1767. package/lib/transform/maybeTooltipPosition.js +14 -0
  1768. package/lib/transform/maybeTooltipPosition.js.map +1 -0
  1769. package/lib/transform/maybeTooltipY.d.ts +6 -0
  1770. package/lib/transform/maybeTooltipY.js +13 -0
  1771. package/lib/transform/maybeTooltipY.js.map +1 -0
  1772. package/lib/transform/maybeZeroX.d.ts +7 -0
  1773. package/lib/transform/maybeZeroX.js +26 -0
  1774. package/lib/transform/maybeZeroX.js.map +1 -0
  1775. package/lib/transform/maybeZeroY.d.ts +6 -0
  1776. package/lib/transform/maybeZeroY.js +25 -0
  1777. package/lib/transform/maybeZeroY.js.map +1 -0
  1778. package/lib/transform/maybeZeroY1.d.ts +6 -0
  1779. package/lib/transform/maybeZeroY1.js +25 -0
  1780. package/lib/transform/maybeZeroY1.js.map +1 -0
  1781. package/lib/transform/normalizeY.d.ts +9 -0
  1782. package/lib/transform/normalizeY.js +73 -0
  1783. package/lib/transform/normalizeY.js.map +1 -0
  1784. package/lib/transform/stackEnter.d.ts +13 -0
  1785. package/lib/transform/stackEnter.js +66 -0
  1786. package/lib/transform/stackEnter.js.map +1 -0
  1787. package/lib/transform/stackY.d.ts +9 -0
  1788. package/lib/transform/stackY.js +60 -0
  1789. package/lib/transform/stackY.js.map +1 -0
  1790. package/lib/transform/symmetryY.d.ts +8 -0
  1791. package/lib/transform/symmetryY.js +64 -0
  1792. package/lib/transform/symmetryY.js.map +1 -0
  1793. package/lib/transform/utils/helper.d.ts +15 -0
  1794. package/lib/transform/utils/helper.js +42 -0
  1795. package/lib/transform/utils/helper.js.map +1 -0
  1796. package/lib/transform/utils/order.d.ts +9 -0
  1797. package/lib/transform/utils/order.js +79 -0
  1798. package/lib/transform/utils/order.js.map +1 -0
  1799. package/lib/utils/array.d.ts +14 -0
  1800. package/lib/utils/array.js +52 -0
  1801. package/lib/utils/array.js.map +1 -0
  1802. package/lib/utils/container.d.ts +8 -0
  1803. package/lib/utils/container.js +19 -0
  1804. package/lib/utils/container.js.map +1 -0
  1805. package/lib/utils/coordinate.d.ts +6 -0
  1806. package/lib/utils/coordinate.js +32 -0
  1807. package/lib/utils/coordinate.js.map +1 -0
  1808. package/lib/utils/helper.d.ts +17 -0
  1809. package/lib/utils/helper.js +76 -0
  1810. package/lib/utils/helper.js.map +1 -0
  1811. package/lib/utils/selection.d.ts +64 -0
  1812. package/lib/utils/selection.js +290 -0
  1813. package/lib/utils/selection.js.map +1 -0
  1814. package/lib/utils/vector.d.ts +13 -0
  1815. package/lib/utils/vector.js +51 -0
  1816. package/lib/utils/vector.js.map +1 -0
  1817. package/package.json +86 -120
  1818. package/src/adjust/index.ts +1 -0
  1819. package/src/adjust/pack.ts +67 -0
  1820. package/src/animation/fadeIn.ts +28 -0
  1821. package/src/animation/fadeOut.ts +26 -0
  1822. package/src/animation/index.ts +7 -0
  1823. package/src/animation/morphing.ts +211 -0
  1824. package/src/animation/scaleInX.ts +64 -0
  1825. package/src/animation/scaleInY.ts +64 -0
  1826. package/src/animation/scaleOutX.ts +64 -0
  1827. package/src/animation/scaleOutY.ts +64 -0
  1828. package/src/animation/utils.ts +26 -0
  1829. package/src/api/chart.ts +135 -0
  1830. package/src/api/composition/circle.ts +43 -0
  1831. package/src/api/composition/flex.ts +30 -0
  1832. package/src/api/composition/index.ts +39 -0
  1833. package/src/api/composition/keyframe.ts +30 -0
  1834. package/src/api/composition/layer.ts +24 -0
  1835. package/src/api/composition/matrix.ts +43 -0
  1836. package/src/api/composition/rect.ts +47 -0
  1837. package/src/api/composition/view.ts +42 -0
  1838. package/src/api/index.ts +2 -0
  1839. package/src/api/library.ts +12 -0
  1840. package/src/api/mark/index.ts +62 -0
  1841. package/src/api/mark/mark.ts +249 -0
  1842. package/src/api/mark/types.ts +22 -0
  1843. package/src/api/node.ts +79 -0
  1844. package/src/api/props.ts +86 -0
  1845. package/src/api/types.ts +20 -0
  1846. package/src/component/axis.ts +391 -0
  1847. package/src/component/axisX.ts +16 -0
  1848. package/src/component/axisY.ts +16 -0
  1849. package/src/component/index.ts +5 -0
  1850. package/src/component/legendCategory.ts +99 -0
  1851. package/src/component/legendContinuous.ts +54 -0
  1852. package/src/component/title.ts +76 -0
  1853. package/src/component/utils.ts +38 -0
  1854. package/src/composition/circle.ts +102 -0
  1855. package/src/composition/flex.ts +49 -0
  1856. package/src/composition/index.ts +8 -0
  1857. package/src/composition/keyframe.ts +90 -0
  1858. package/src/composition/layer.ts +26 -0
  1859. package/src/composition/mark.ts +55 -0
  1860. package/src/composition/matrix.ts +170 -0
  1861. package/src/composition/rect.ts +339 -0
  1862. package/src/composition/utils.ts +27 -0
  1863. package/src/composition/view.ts +28 -0
  1864. package/src/coordinate/cartesian.ts +11 -0
  1865. package/src/coordinate/fisheye.ts +17 -0
  1866. package/src/coordinate/fisheyeX.ts +15 -0
  1867. package/src/coordinate/fisheyeY.ts +15 -0
  1868. package/src/coordinate/helix.ts +21 -0
  1869. package/src/coordinate/index.ts +12 -0
  1870. package/src/coordinate/parallel.ts +11 -0
  1871. package/src/coordinate/polar.ts +22 -0
  1872. package/src/coordinate/reflect.ts +15 -0
  1873. package/src/coordinate/reflectX.ts +15 -0
  1874. package/src/coordinate/reflectY.ts +15 -0
  1875. package/src/coordinate/theta.ts +21 -0
  1876. package/src/coordinate/transpose.ts +16 -0
  1877. package/src/data/arc.ts +21 -0
  1878. package/src/data/cluster.ts +56 -0
  1879. package/src/data/connector.ts +14 -0
  1880. package/src/data/fetch.ts +23 -0
  1881. package/src/data/filterBy.ts +19 -0
  1882. package/src/data/fold.ts +29 -0
  1883. package/src/data/index.ts +9 -0
  1884. package/src/data/inline.ts +11 -0
  1885. package/src/data/pick.ts +15 -0
  1886. package/src/data/rename.ts +26 -0
  1887. package/src/data/sankey.ts +105 -0
  1888. package/src/data/sortBy.ts +23 -0
  1889. package/src/data/subset.ts +35 -0
  1890. package/src/data/tree.ts +12 -0
  1891. package/src/data/utils/arc/arc.ts +210 -0
  1892. package/src/data/utils/arc/index.ts +2 -0
  1893. package/src/data/utils/arc/sort.ts +15 -0
  1894. package/src/data/utils/arc/types.ts +27 -0
  1895. package/src/data/utils/d3-cloud/index.ts +499 -0
  1896. package/src/data/utils/d3-sankey/align.ts +25 -0
  1897. package/src/data/utils/d3-sankey/constant.ts +5 -0
  1898. package/src/data/utils/d3-sankey/index.ts +12 -0
  1899. package/src/data/utils/d3-sankey/sankey.ts +436 -0
  1900. package/src/data/utils/flow.ts +36 -0
  1901. package/src/data/utils/memo.ts +80 -0
  1902. package/src/data/voronoi.ts +30 -0
  1903. package/src/data/wordCloud.ts +115 -0
  1904. package/src/encode/column.ts +13 -0
  1905. package/src/encode/constant.ts +13 -0
  1906. package/src/encode/field.ts +13 -0
  1907. package/src/encode/index.ts +4 -0
  1908. package/src/encode/transform.ts +15 -0
  1909. package/src/index.ts +4 -738
  1910. package/src/interaction/action/index.ts +47 -2
  1911. package/src/interaction/action/service/elementSelection.ts +125 -0
  1912. package/src/interaction/action/service/fisheyeFocus.ts +75 -0
  1913. package/src/interaction/action/service/legendItemSelection.ts +34 -0
  1914. package/src/interaction/action/service/recordCurrentPoint.ts +22 -0
  1915. package/src/interaction/action/service/recordPoint.ts +35 -0
  1916. package/src/interaction/action/service/recordRegion.ts +41 -0
  1917. package/src/interaction/action/service/recordState.ts +15 -0
  1918. package/src/interaction/action/service/recordTip.ts +20 -0
  1919. package/src/interaction/action/service/surfacePointSelection.ts +28 -0
  1920. package/src/interaction/action/service/triggerInfoSelection.ts +33 -0
  1921. package/src/interaction/action/transformer/activeElement.ts +32 -0
  1922. package/src/interaction/action/transformer/activeRegion.ts +73 -0
  1923. package/src/interaction/action/transformer/button.ts +113 -0
  1924. package/src/interaction/action/transformer/cursor.ts +21 -0
  1925. package/src/interaction/action/transformer/filter.ts +57 -0
  1926. package/src/interaction/action/transformer/filterElement.ts +54 -0
  1927. package/src/interaction/action/transformer/highlightElement.ts +61 -0
  1928. package/src/interaction/action/transformer/mask.ts +115 -0
  1929. package/src/interaction/action/transformer/move.ts +76 -0
  1930. package/src/interaction/action/transformer/plot.ts +15 -0
  1931. package/src/interaction/action/transformer/poptip.ts +51 -0
  1932. package/src/interaction/action/transformer/setItemState.ts +39 -0
  1933. package/src/interaction/action/transformer/tooltip.ts +404 -0
  1934. package/src/interaction/builtin/activeRegion.ts +25 -0
  1935. package/src/interaction/builtin/brush.ts +99 -0
  1936. package/src/interaction/builtin/brushHighlight.ts +122 -0
  1937. package/src/interaction/builtin/brushVisible.ts +69 -0
  1938. package/src/interaction/builtin/elementActive.ts +32 -0
  1939. package/src/interaction/builtin/elementHighlight.ts +31 -0
  1940. package/src/interaction/builtin/elementHighlightByColor.ts +35 -0
  1941. package/src/interaction/builtin/elementHighlightByX.ts +35 -0
  1942. package/src/interaction/builtin/elementListHighlight.ts +39 -0
  1943. package/src/interaction/builtin/elementSelected.ts +25 -0
  1944. package/src/interaction/builtin/ellipsisText.ts +24 -0
  1945. package/src/interaction/builtin/fisheye.ts +25 -0
  1946. package/src/interaction/builtin/legendActive.ts +37 -0
  1947. package/src/interaction/builtin/legendHighlight.ts +37 -0
  1948. package/src/interaction/builtin/tooltip.ts +33 -0
  1949. package/src/interaction/create.ts +153 -0
  1950. package/src/interaction/index.ts +18 -48
  1951. package/src/interaction/interactor/index.ts +2 -0
  1952. package/src/interaction/interactor/mousePosition.ts +13 -0
  1953. package/src/interaction/interactor/touchPosition.ts +13 -0
  1954. package/src/interaction/stdlib.ts +57 -0
  1955. package/src/interaction/types.ts +80 -0
  1956. package/src/interaction/utils.ts +65 -0
  1957. package/src/labelLayout/hideOverlap.ts +47 -0
  1958. package/src/labelLayout/index.ts +1 -0
  1959. package/src/mark/annotation/connector.ts +27 -0
  1960. package/src/mark/annotation/index.ts +25 -0
  1961. package/src/mark/annotation/lineX.ts +31 -0
  1962. package/src/mark/annotation/lineY.ts +31 -0
  1963. package/src/mark/annotation/range.ts +55 -0
  1964. package/src/mark/annotation/rangeX.ts +23 -0
  1965. package/src/mark/annotation/rangeY.ts +23 -0
  1966. package/src/mark/annotation/text.ts +30 -0
  1967. package/src/mark/geometry/area.ts +85 -0
  1968. package/src/mark/geometry/edge.ts +40 -0
  1969. package/src/mark/geometry/grid.ts +56 -0
  1970. package/src/mark/geometry/image.ts +41 -0
  1971. package/src/mark/geometry/index.ts +13 -0
  1972. package/src/mark/geometry/interval.ts +71 -0
  1973. package/src/mark/geometry/line.ts +94 -0
  1974. package/src/mark/geometry/link.ts +44 -0
  1975. package/src/mark/geometry/node.ts +36 -0
  1976. package/src/mark/geometry/point.ts +80 -0
  1977. package/src/mark/geometry/polygon.ts +54 -0
  1978. package/src/mark/geometry/schema.ts +105 -0
  1979. package/src/mark/geometry/text.ts +43 -0
  1980. package/src/mark/geometry/vector.ts +56 -0
  1981. package/src/mark/utils.ts +35 -0
  1982. package/src/palette/category10.ts +24 -0
  1983. package/src/palette/category20.ts +34 -0
  1984. package/src/palette/index.ts +2 -0
  1985. package/src/renderer/canvas.ts +27 -0
  1986. package/src/renderer/index.ts +1 -0
  1987. package/src/runtime/component.ts +209 -0
  1988. package/src/runtime/coordinate.ts +71 -0
  1989. package/src/runtime/index.ts +8 -0
  1990. package/src/runtime/layout.ts +180 -0
  1991. package/src/runtime/library.ts +27 -0
  1992. package/src/runtime/mark.ts +183 -0
  1993. package/src/runtime/plot.ts +839 -0
  1994. package/src/runtime/render.ts +80 -0
  1995. package/src/runtime/scale.ts +453 -0
  1996. package/src/runtime/transform.ts +159 -0
  1997. package/src/runtime/types/common.ts +158 -0
  1998. package/src/runtime/types/component.ts +223 -0
  1999. package/src/runtime/types/data.ts +10 -0
  2000. package/src/runtime/types/encode.ts +36 -0
  2001. package/src/runtime/types/mark.ts +31 -0
  2002. package/src/runtime/types/options.ts +164 -0
  2003. package/src/runtime/types/transform.ts +29 -0
  2004. package/src/scale/band.ts +11 -0
  2005. package/src/scale/identity.ts +11 -0
  2006. package/src/scale/index.ts +11 -0
  2007. package/src/scale/linear.ts +11 -0
  2008. package/src/scale/log.ts +11 -0
  2009. package/src/scale/ordinal.ts +11 -0
  2010. package/src/scale/point.ts +12 -0
  2011. package/src/scale/pow.ts +11 -0
  2012. package/src/scale/quantile.ts +11 -0
  2013. package/src/scale/quantize.ts +11 -0
  2014. package/src/scale/threshold.ts +11 -0
  2015. package/src/scale/time.ts +11 -0
  2016. package/src/shape/annotation/badge.ts +114 -0
  2017. package/src/shape/annotation/connector.ts +138 -0
  2018. package/src/shape/annotation/line.ts +55 -0
  2019. package/src/shape/annotation/text.ts +224 -0
  2020. package/src/shape/area/area.ts +17 -0
  2021. package/src/shape/area/curveArea.ts +61 -0
  2022. package/src/shape/area/smoothArea.ts +25 -0
  2023. package/src/shape/edge/arc.ts +46 -0
  2024. package/src/shape/edge/edge.ts +15 -0
  2025. package/src/shape/edge/ribbon.ts +93 -0
  2026. package/src/shape/edge/smoothEdge.ts +41 -0
  2027. package/src/shape/edge/vhv.ts +85 -0
  2028. package/src/shape/image/image.ts +33 -0
  2029. package/src/shape/index.ts +66 -0
  2030. package/src/shape/interval/colorRect.ts +62 -0
  2031. package/src/shape/interval/funnel.ts +58 -0
  2032. package/src/shape/interval/hollowRect.ts +15 -0
  2033. package/src/shape/interval/pyramid.ts +50 -0
  2034. package/src/shape/interval/rect.ts +16 -0
  2035. package/src/shape/label/label.ts +116 -0
  2036. package/src/shape/line/curveLine.ts +44 -0
  2037. package/src/shape/line/hv.ts +13 -0
  2038. package/src/shape/line/hvh.ts +13 -0
  2039. package/src/shape/line/line.ts +13 -0
  2040. package/src/shape/line/smooth.ts +16 -0
  2041. package/src/shape/line/vh.ts +13 -0
  2042. package/src/shape/link/link.ts +51 -0
  2043. package/src/shape/node/point.ts +32 -0
  2044. package/src/shape/node/polygon.ts +12 -0
  2045. package/src/shape/point/bowtie.ts +15 -0
  2046. package/src/shape/point/colorPoint.ts +65 -0
  2047. package/src/shape/point/cross.ts +15 -0
  2048. package/src/shape/point/diamond.ts +15 -0
  2049. package/src/shape/point/hexagon.ts +15 -0
  2050. package/src/shape/point/hollowBowtie.ts +15 -0
  2051. package/src/shape/point/hollowDiamond.ts +19 -0
  2052. package/src/shape/point/hollowHexagon.ts +19 -0
  2053. package/src/shape/point/hollowPoint.ts +15 -0
  2054. package/src/shape/point/hollowSquare.ts +15 -0
  2055. package/src/shape/point/hollowTriangle.ts +19 -0
  2056. package/src/shape/point/hollowTriangleDown.ts +19 -0
  2057. package/src/shape/point/hyphen.ts +15 -0
  2058. package/src/shape/point/line.ts +15 -0
  2059. package/src/shape/point/plus.ts +15 -0
  2060. package/src/shape/point/point.ts +15 -0
  2061. package/src/shape/point/square.ts +15 -0
  2062. package/src/shape/point/symbol.ts +153 -0
  2063. package/src/shape/point/tick.ts +15 -0
  2064. package/src/shape/point/triangle.ts +15 -0
  2065. package/src/shape/point/triangleDown.ts +19 -0
  2066. package/src/shape/polygon/polygon.ts +67 -0
  2067. package/src/shape/schema/box.ts +96 -0
  2068. package/src/shape/text/text.ts +43 -0
  2069. package/src/shape/utils.ts +160 -0
  2070. package/src/shape/vector/vector.ts +51 -0
  2071. package/src/spec/action.ts +196 -0
  2072. package/src/spec/animate.ts +16 -0
  2073. package/src/spec/composition.ts +145 -0
  2074. package/src/spec/coordinate.ts +113 -0
  2075. package/src/spec/data.ts +81 -0
  2076. package/src/spec/encode.ts +46 -0
  2077. package/src/spec/geometry.ts +168 -0
  2078. package/src/spec/index.ts +19 -0
  2079. package/src/spec/interaction.ts +115 -0
  2080. package/src/spec/labelLayout.ts +5 -0
  2081. package/src/spec/palette.ts +18 -0
  2082. package/src/spec/scale.ts +78 -0
  2083. package/src/spec/theme.ts +20 -0
  2084. package/src/spec/title.ts +3 -0
  2085. package/src/spec/transform.ts +274 -0
  2086. package/src/stdlib/index.ts +364 -0
  2087. package/src/theme/index.ts +1 -28
  2088. package/src/theme/light.ts +35 -0
  2089. package/src/transform/dodgeX.ts +59 -0
  2090. package/src/transform/groupX.ts +92 -0
  2091. package/src/transform/index.ts +24 -0
  2092. package/src/transform/jitter.ts +45 -0
  2093. package/src/transform/jitterY.ts +26 -0
  2094. package/src/transform/maybeKey.ts +26 -0
  2095. package/src/transform/maybeSeries.ts +20 -0
  2096. package/src/transform/maybeSize.ts +23 -0
  2097. package/src/transform/maybeStackY.ts +37 -0
  2098. package/src/transform/maybeTitleX.ts +20 -0
  2099. package/src/transform/maybeTooltip.ts +34 -0
  2100. package/src/transform/maybeTooltipPosition.ts +14 -0
  2101. package/src/transform/maybeTooltipY.ts +13 -0
  2102. package/src/transform/maybeZeroX.ts +25 -0
  2103. package/src/transform/maybeZeroY.ts +24 -0
  2104. package/src/transform/maybeZeroY1.ts +24 -0
  2105. package/src/transform/normalizeY.ts +70 -0
  2106. package/src/transform/select.ts +53 -0
  2107. package/src/transform/selectX.ts +15 -0
  2108. package/src/transform/selectY.ts +15 -0
  2109. package/src/transform/stackEnter.ts +73 -0
  2110. package/src/transform/stackY.ts +59 -0
  2111. package/src/transform/symmetryY.ts +60 -0
  2112. package/src/transform/utils/helper.ts +37 -0
  2113. package/src/transform/utils/order.ts +123 -0
  2114. package/src/utils/array.ts +50 -0
  2115. package/src/utils/container.ts +21 -0
  2116. package/src/utils/coordinate.ts +29 -0
  2117. package/src/utils/helper.ts +69 -0
  2118. package/src/utils/selection.ts +403 -0
  2119. package/src/utils/vector.ts +47 -0
  2120. package/dist/g2.min.js.map +0 -1
  2121. package/esm/animate/animation/fade.d.ts +0 -21
  2122. package/esm/animate/animation/fade.js +0 -42
  2123. package/esm/animate/animation/fade.js.map +0 -1
  2124. package/esm/animate/animation/grow-in.d.ts +0 -30
  2125. package/esm/animate/animation/grow-in.js +0 -38
  2126. package/esm/animate/animation/grow-in.js.map +0 -1
  2127. package/esm/animate/animation/index.d.ts +0 -16
  2128. package/esm/animate/animation/index.js +0 -17
  2129. package/esm/animate/animation/index.js.map +0 -1
  2130. package/esm/animate/animation/path-in.d.ts +0 -12
  2131. package/esm/animate/animation/path-in.js +0 -21
  2132. package/esm/animate/animation/path-in.js.map +0 -1
  2133. package/esm/animate/animation/position-update.d.ts +0 -11
  2134. package/esm/animate/animation/position-update.js +0 -24
  2135. package/esm/animate/animation/position-update.js.map +0 -1
  2136. package/esm/animate/animation/scale-in.d.ts +0 -19
  2137. package/esm/animate/animation/scale-in.js +0 -60
  2138. package/esm/animate/animation/scale-in.js.map +0 -1
  2139. package/esm/animate/animation/sector-path-update.d.ts +0 -27
  2140. package/esm/animate/animation/sector-path-update.js +0 -132
  2141. package/esm/animate/animation/sector-path-update.js.map +0 -1
  2142. package/esm/animate/animation/util.d.ts +0 -19
  2143. package/esm/animate/animation/util.js +0 -89
  2144. package/esm/animate/animation/util.js.map +0 -1
  2145. package/esm/animate/animation/wave-in.d.ts +0 -13
  2146. package/esm/animate/animation/wave-in.js +0 -30
  2147. package/esm/animate/animation/wave-in.js.map +0 -1
  2148. package/esm/animate/animation/zoom.d.ts +0 -21
  2149. package/esm/animate/animation/zoom.js +0 -66
  2150. package/esm/animate/animation/zoom.js.map +0 -1
  2151. package/esm/animate/index.d.ts +0 -48
  2152. package/esm/animate/index.js +0 -249
  2153. package/esm/animate/index.js.map +0 -1
  2154. package/esm/animate/interface.d.ts +0 -18
  2155. package/esm/animate/interface.js +0 -2
  2156. package/esm/animate/interface.js.map +0 -1
  2157. package/esm/api.d.ts +0 -2
  2158. package/esm/api.js +0 -3
  2159. package/esm/api.js.map +0 -1
  2160. package/esm/base.d.ts +0 -33
  2161. package/esm/base.js +0 -55
  2162. package/esm/base.js.map +0 -1
  2163. package/esm/chart/chart.d.ts +0 -61
  2164. package/esm/chart/chart.js +0 -157
  2165. package/esm/chart/chart.js.map +0 -1
  2166. package/esm/chart/controller/annotation.d.ts +0 -162
  2167. package/esm/chart/controller/annotation.js +0 -592
  2168. package/esm/chart/controller/annotation.js.map +0 -1
  2169. package/esm/chart/controller/axis.d.ts +0 -93
  2170. package/esm/chart/controller/axis.js +0 -578
  2171. package/esm/chart/controller/axis.js.map +0 -1
  2172. package/esm/chart/controller/base.d.ts +0 -64
  2173. package/esm/chart/controller/base.js +0 -62
  2174. package/esm/chart/controller/base.js.map +0 -1
  2175. package/esm/chart/controller/coordinate.d.ts +0 -74
  2176. package/esm/chart/controller/coordinate.js +0 -145
  2177. package/esm/chart/controller/coordinate.js.map +0 -1
  2178. package/esm/chart/controller/gesture.d.ts +0 -37
  2179. package/esm/chart/controller/gesture.js +0 -258
  2180. package/esm/chart/controller/gesture.js.map +0 -1
  2181. package/esm/chart/controller/index.d.ts +0 -25
  2182. package/esm/chart/controller/index.js +0 -34
  2183. package/esm/chart/controller/index.js.map +0 -1
  2184. package/esm/chart/controller/legend.d.ts +0 -106
  2185. package/esm/chart/controller/legend.js +0 -484
  2186. package/esm/chart/controller/legend.js.map +0 -1
  2187. package/esm/chart/controller/scrollbar.d.ts +0 -64
  2188. package/esm/chart/controller/scrollbar.js +0 -316
  2189. package/esm/chart/controller/scrollbar.js.map +0 -1
  2190. package/esm/chart/controller/slider.d.ts +0 -88
  2191. package/esm/chart/controller/slider.js +0 -296
  2192. package/esm/chart/controller/slider.js.map +0 -1
  2193. package/esm/chart/controller/tooltip.d.ts +0 -68
  2194. package/esm/chart/controller/tooltip.js +0 -696
  2195. package/esm/chart/controller/tooltip.js.map +0 -1
  2196. package/esm/chart/event.d.ts +0 -47
  2197. package/esm/chart/event.js +0 -91
  2198. package/esm/chart/event.js.map +0 -1
  2199. package/esm/chart/index.d.ts +0 -4
  2200. package/esm/chart/index.js +0 -5
  2201. package/esm/chart/index.js.map +0 -1
  2202. package/esm/chart/layout/auto.d.ts +0 -8
  2203. package/esm/chart/layout/auto.js +0 -64
  2204. package/esm/chart/layout/auto.js.map +0 -1
  2205. package/esm/chart/layout/constraint/bounds.d.ts +0 -32
  2206. package/esm/chart/layout/constraint/bounds.js +0 -30
  2207. package/esm/chart/layout/constraint/bounds.js.map +0 -1
  2208. package/esm/chart/layout/constraint/constraint.d.ts +0 -31
  2209. package/esm/chart/layout/constraint/constraint.js +0 -82
  2210. package/esm/chart/layout/constraint/constraint.js.map +0 -1
  2211. package/esm/chart/layout/constraint/gauss.d.ts +0 -11
  2212. package/esm/chart/layout/constraint/gauss.js +0 -63
  2213. package/esm/chart/layout/constraint/gauss.js.map +0 -1
  2214. package/esm/chart/layout/constraint/index.d.ts +0 -5
  2215. package/esm/chart/layout/constraint/index.js +0 -30
  2216. package/esm/chart/layout/constraint/index.js.map +0 -1
  2217. package/esm/chart/layout/constraint/solver.d.ts +0 -40
  2218. package/esm/chart/layout/constraint/solver.js +0 -78
  2219. package/esm/chart/layout/constraint/solver.js.map +0 -1
  2220. package/esm/chart/layout/constraint/types.d.ts +0 -21
  2221. package/esm/chart/layout/constraint/types.js +0 -13
  2222. package/esm/chart/layout/constraint/types.js.map +0 -1
  2223. package/esm/chart/layout/constraint/variable.d.ts +0 -24
  2224. package/esm/chart/layout/constraint/variable.js +0 -28
  2225. package/esm/chart/layout/constraint/variable.js.map +0 -1
  2226. package/esm/chart/layout/index.d.ts +0 -15
  2227. package/esm/chart/layout/index.js +0 -26
  2228. package/esm/chart/layout/index.js.map +0 -1
  2229. package/esm/chart/layout/padding-cal.d.ts +0 -53
  2230. package/esm/chart/layout/padding-cal.js +0 -108
  2231. package/esm/chart/layout/padding-cal.js.map +0 -1
  2232. package/esm/chart/util/scale-pool.d.ts +0 -57
  2233. package/esm/chart/util/scale-pool.js +0 -212
  2234. package/esm/chart/util/scale-pool.js.map +0 -1
  2235. package/esm/chart/util/sync-view-padding.d.ts +0 -9
  2236. package/esm/chart/util/sync-view-padding.js +0 -14
  2237. package/esm/chart/util/sync-view-padding.js.map +0 -1
  2238. package/esm/chart/view.d.ts +0 -747
  2239. package/esm/chart/view.js +0 -1636
  2240. package/esm/chart/view.js.map +0 -1
  2241. package/esm/component/labels.d.ts +0 -46
  2242. package/esm/component/labels.js +0 -306
  2243. package/esm/component/labels.js.map +0 -1
  2244. package/esm/component/update-label.d.ts +0 -21
  2245. package/esm/component/update-label.js +0 -57
  2246. package/esm/component/update-label.js.map +0 -1
  2247. package/esm/constant.d.ts +0 -124
  2248. package/esm/constant.js +0 -136
  2249. package/esm/constant.js.map +0 -1
  2250. package/esm/core.d.ts +0 -46
  2251. package/esm/core.js +0 -60
  2252. package/esm/core.js.map +0 -1
  2253. package/esm/dependents.d.ts +0 -21
  2254. package/esm/dependents.js +0 -33
  2255. package/esm/dependents.js.map +0 -1
  2256. package/esm/engine/index.d.ts +0 -13
  2257. package/esm/engine/index.js +0 -22
  2258. package/esm/engine/index.js.map +0 -1
  2259. package/esm/facet/circle.d.ts +0 -36
  2260. package/esm/facet/circle.js +0 -119
  2261. package/esm/facet/circle.js.map +0 -1
  2262. package/esm/facet/facet.d.ts +0 -165
  2263. package/esm/facet/facet.js +0 -292
  2264. package/esm/facet/facet.js.map +0 -1
  2265. package/esm/facet/index.d.ts +0 -13
  2266. package/esm/facet/index.js +0 -22
  2267. package/esm/facet/index.js.map +0 -1
  2268. package/esm/facet/list.d.ts +0 -46
  2269. package/esm/facet/list.js +0 -134
  2270. package/esm/facet/list.js.map +0 -1
  2271. package/esm/facet/matrix.d.ts +0 -34
  2272. package/esm/facet/matrix.js +0 -119
  2273. package/esm/facet/matrix.js.map +0 -1
  2274. package/esm/facet/mirror.d.ts +0 -31
  2275. package/esm/facet/mirror.js +0 -144
  2276. package/esm/facet/mirror.js.map +0 -1
  2277. package/esm/facet/rect.d.ts +0 -35
  2278. package/esm/facet/rect.js +0 -141
  2279. package/esm/facet/rect.js.map +0 -1
  2280. package/esm/facet/tree.d.ts +0 -40
  2281. package/esm/facet/tree.js +0 -298
  2282. package/esm/facet/tree.js.map +0 -1
  2283. package/esm/geometry/area.d.ts +0 -46
  2284. package/esm/geometry/area.js +0 -62
  2285. package/esm/geometry/area.js.map +0 -1
  2286. package/esm/geometry/base.d.ts +0 -796
  2287. package/esm/geometry/base.js +0 -1556
  2288. package/esm/geometry/base.js.map +0 -1
  2289. package/esm/geometry/edge.d.ts +0 -15
  2290. package/esm/geometry/edge.js +0 -24
  2291. package/esm/geometry/edge.js.map +0 -1
  2292. package/esm/geometry/element/index.d.ts +0 -127
  2293. package/esm/geometry/element/index.js +0 -438
  2294. package/esm/geometry/element/index.js.map +0 -1
  2295. package/esm/geometry/heatmap.d.ts +0 -31
  2296. package/esm/geometry/heatmap.js +0 -200
  2297. package/esm/geometry/heatmap.js.map +0 -1
  2298. package/esm/geometry/interval.d.ts +0 -41
  2299. package/esm/geometry/interval.js +0 -98
  2300. package/esm/geometry/interval.js.map +0 -1
  2301. package/esm/geometry/label/base.d.ts +0 -76
  2302. package/esm/geometry/label/base.js +0 -416
  2303. package/esm/geometry/label/base.js.map +0 -1
  2304. package/esm/geometry/label/index.d.ts +0 -38
  2305. package/esm/geometry/label/index.js +0 -35
  2306. package/esm/geometry/label/index.js.map +0 -1
  2307. package/esm/geometry/label/interface.d.ts +0 -66
  2308. package/esm/geometry/label/interface.js +0 -2
  2309. package/esm/geometry/label/interface.js.map +0 -1
  2310. package/esm/geometry/label/interval.d.ts +0 -27
  2311. package/esm/geometry/label/interval.js +0 -146
  2312. package/esm/geometry/label/interval.js.map +0 -1
  2313. package/esm/geometry/label/layout/adjust-color.d.ts +0 -3
  2314. package/esm/geometry/label/layout/adjust-color.js +0 -36
  2315. package/esm/geometry/label/layout/adjust-color.js.map +0 -1
  2316. package/esm/geometry/label/layout/hide-overlap.d.ts +0 -8
  2317. package/esm/geometry/label/layout/hide-overlap.js +0 -75
  2318. package/esm/geometry/label/layout/hide-overlap.js.map +0 -1
  2319. package/esm/geometry/label/layout/interval/adjust-position.d.ts +0 -9
  2320. package/esm/geometry/label/layout/interval/adjust-position.js +0 -61
  2321. package/esm/geometry/label/layout/interval/adjust-position.js.map +0 -1
  2322. package/esm/geometry/label/layout/interval/hide-overlap.d.ts +0 -9
  2323. package/esm/geometry/label/layout/interval/hide-overlap.js +0 -79
  2324. package/esm/geometry/label/layout/interval/hide-overlap.js.map +0 -1
  2325. package/esm/geometry/label/layout/limit-in-canvas.d.ts +0 -9
  2326. package/esm/geometry/label/layout/limit-in-canvas.js +0 -44
  2327. package/esm/geometry/label/layout/limit-in-canvas.js.map +0 -1
  2328. package/esm/geometry/label/layout/limit-in-plot.d.ts +0 -18
  2329. package/esm/geometry/label/layout/limit-in-plot.js +0 -75
  2330. package/esm/geometry/label/layout/limit-in-plot.js.map +0 -1
  2331. package/esm/geometry/label/layout/limit-in-shape.d.ts +0 -7
  2332. package/esm/geometry/label/layout/limit-in-shape.js +0 -18
  2333. package/esm/geometry/label/layout/limit-in-shape.js.map +0 -1
  2334. package/esm/geometry/label/layout/overlap.d.ts +0 -15
  2335. package/esm/geometry/label/layout/overlap.js +0 -223
  2336. package/esm/geometry/label/layout/overlap.js.map +0 -1
  2337. package/esm/geometry/label/layout/path/adjust-position.d.ts +0 -17
  2338. package/esm/geometry/label/layout/path/adjust-position.js +0 -95
  2339. package/esm/geometry/label/layout/path/adjust-position.js.map +0 -1
  2340. package/esm/geometry/label/layout/pie/distribute.d.ts +0 -3
  2341. package/esm/geometry/label/layout/pie/distribute.js +0 -196
  2342. package/esm/geometry/label/layout/pie/distribute.js.map +0 -1
  2343. package/esm/geometry/label/layout/pie/outer.d.ts +0 -6
  2344. package/esm/geometry/label/layout/pie/outer.js +0 -218
  2345. package/esm/geometry/label/layout/pie/outer.js.map +0 -1
  2346. package/esm/geometry/label/layout/pie/spider.d.ts +0 -7
  2347. package/esm/geometry/label/layout/pie/spider.js +0 -193
  2348. package/esm/geometry/label/layout/pie/spider.js.map +0 -1
  2349. package/esm/geometry/label/layout/pie/util.d.ts +0 -10
  2350. package/esm/geometry/label/layout/pie/util.js +0 -73
  2351. package/esm/geometry/label/layout/pie/util.js.map +0 -1
  2352. package/esm/geometry/label/layout/point/adjust-position.d.ts +0 -17
  2353. package/esm/geometry/label/layout/point/adjust-position.js +0 -95
  2354. package/esm/geometry/label/layout/point/adjust-position.js.map +0 -1
  2355. package/esm/geometry/label/layout/worker/hide-overlap.d.ts +0 -2
  2356. package/esm/geometry/label/layout/worker/hide-overlap.js +0 -155
  2357. package/esm/geometry/label/layout/worker/hide-overlap.js.map +0 -1
  2358. package/esm/geometry/label/pie.d.ts +0 -22
  2359. package/esm/geometry/label/pie.js +0 -95
  2360. package/esm/geometry/label/pie.js.map +0 -1
  2361. package/esm/geometry/label/polar.d.ts +0 -64
  2362. package/esm/geometry/label/polar.js +0 -221
  2363. package/esm/geometry/label/polar.js.map +0 -1
  2364. package/esm/geometry/label/util/createWorker.d.ts +0 -1
  2365. package/esm/geometry/label/util/createWorker.js +0 -16
  2366. package/esm/geometry/label/util/createWorker.js.map +0 -1
  2367. package/esm/geometry/label/util/index.d.ts +0 -28
  2368. package/esm/geometry/label/util/index.js +0 -62
  2369. package/esm/geometry/label/util/index.js.map +0 -1
  2370. package/esm/geometry/line.d.ts +0 -11
  2371. package/esm/geometry/line.js +0 -21
  2372. package/esm/geometry/line.js.map +0 -1
  2373. package/esm/geometry/path.d.ts +0 -40
  2374. package/esm/geometry/path.js +0 -150
  2375. package/esm/geometry/path.js.map +0 -1
  2376. package/esm/geometry/point.d.ts +0 -19
  2377. package/esm/geometry/point.js +0 -30
  2378. package/esm/geometry/point.js.map +0 -1
  2379. package/esm/geometry/polygon.d.ts +0 -19
  2380. package/esm/geometry/polygon.js +0 -62
  2381. package/esm/geometry/polygon.js.map +0 -1
  2382. package/esm/geometry/schema.d.ts +0 -18
  2383. package/esm/geometry/schema.js +0 -48
  2384. package/esm/geometry/schema.js.map +0 -1
  2385. package/esm/geometry/shape/area/index.d.ts +0 -2
  2386. package/esm/geometry/shape/area/index.js +0 -45
  2387. package/esm/geometry/shape/area/index.js.map +0 -1
  2388. package/esm/geometry/shape/area/line.d.ts +0 -1
  2389. package/esm/geometry/shape/area/line.js +0 -31
  2390. package/esm/geometry/shape/area/line.js.map +0 -1
  2391. package/esm/geometry/shape/area/smooth-line.d.ts +0 -1
  2392. package/esm/geometry/shape/area/smooth-line.js +0 -30
  2393. package/esm/geometry/shape/area/smooth-line.js.map +0 -1
  2394. package/esm/geometry/shape/area/smooth.d.ts +0 -1
  2395. package/esm/geometry/shape/area/smooth.js +0 -32
  2396. package/esm/geometry/shape/area/smooth.js.map +0 -1
  2397. package/esm/geometry/shape/area/util.d.ts +0 -22
  2398. package/esm/geometry/shape/area/util.js +0 -88
  2399. package/esm/geometry/shape/area/util.js.map +0 -1
  2400. package/esm/geometry/shape/base.d.ts +0 -22
  2401. package/esm/geometry/shape/base.js +0 -162
  2402. package/esm/geometry/shape/base.js.map +0 -1
  2403. package/esm/geometry/shape/constant.d.ts +0 -4
  2404. package/esm/geometry/shape/constant.js +0 -5
  2405. package/esm/geometry/shape/constant.js.map +0 -1
  2406. package/esm/geometry/shape/edge/arc.d.ts +0 -1
  2407. package/esm/geometry/shape/edge/arc.js +0 -84
  2408. package/esm/geometry/shape/edge/arc.js.map +0 -1
  2409. package/esm/geometry/shape/edge/index.d.ts +0 -2
  2410. package/esm/geometry/shape/edge/index.js +0 -31
  2411. package/esm/geometry/shape/edge/index.js.map +0 -1
  2412. package/esm/geometry/shape/edge/smooth.d.ts +0 -1
  2413. package/esm/geometry/shape/edge/smooth.js +0 -30
  2414. package/esm/geometry/shape/edge/smooth.js.map +0 -1
  2415. package/esm/geometry/shape/edge/util.d.ts +0 -17
  2416. package/esm/geometry/shape/edge/util.js +0 -32
  2417. package/esm/geometry/shape/edge/util.js.map +0 -1
  2418. package/esm/geometry/shape/edge/vhv.d.ts +0 -1
  2419. package/esm/geometry/shape/edge/vhv.js +0 -42
  2420. package/esm/geometry/shape/edge/vhv.js.map +0 -1
  2421. package/esm/geometry/shape/interval/funnel.d.ts +0 -1
  2422. package/esm/geometry/shape/interval/funnel.js +0 -31
  2423. package/esm/geometry/shape/interval/funnel.js.map +0 -1
  2424. package/esm/geometry/shape/interval/hollow-rect.d.ts +0 -1
  2425. package/esm/geometry/shape/interval/hollow-rect.js +0 -51
  2426. package/esm/geometry/shape/interval/hollow-rect.js.map +0 -1
  2427. package/esm/geometry/shape/interval/index.d.ts +0 -3
  2428. package/esm/geometry/shape/interval/index.js +0 -65
  2429. package/esm/geometry/shape/interval/index.js.map +0 -1
  2430. package/esm/geometry/shape/interval/line.d.ts +0 -1
  2431. package/esm/geometry/shape/interval/line.js +0 -54
  2432. package/esm/geometry/shape/interval/line.js.map +0 -1
  2433. package/esm/geometry/shape/interval/pyramid.d.ts +0 -1
  2434. package/esm/geometry/shape/interval/pyramid.js +0 -31
  2435. package/esm/geometry/shape/interval/pyramid.js.map +0 -1
  2436. package/esm/geometry/shape/interval/tick.d.ts +0 -1
  2437. package/esm/geometry/shape/interval/tick.js +0 -78
  2438. package/esm/geometry/shape/interval/tick.js.map +0 -1
  2439. package/esm/geometry/shape/interval/util.d.ts +0 -55
  2440. package/esm/geometry/shape/interval/util.js +0 -318
  2441. package/esm/geometry/shape/interval/util.js.map +0 -1
  2442. package/esm/geometry/shape/line/index.d.ts +0 -8
  2443. package/esm/geometry/shape/line/index.js +0 -105
  2444. package/esm/geometry/shape/line/index.js.map +0 -1
  2445. package/esm/geometry/shape/line/step.d.ts +0 -1
  2446. package/esm/geometry/shape/line/step.js +0 -84
  2447. package/esm/geometry/shape/line/step.js.map +0 -1
  2448. package/esm/geometry/shape/line/util.d.ts +0 -16
  2449. package/esm/geometry/shape/line/util.js +0 -83
  2450. package/esm/geometry/shape/line/util.js.map +0 -1
  2451. package/esm/geometry/shape/point/hollow.d.ts +0 -1
  2452. package/esm/geometry/shape/point/hollow.js +0 -24
  2453. package/esm/geometry/shape/point/hollow.js.map +0 -1
  2454. package/esm/geometry/shape/point/image.d.ts +0 -1
  2455. package/esm/geometry/shape/point/image.js +0 -59
  2456. package/esm/geometry/shape/point/image.js.map +0 -1
  2457. package/esm/geometry/shape/point/index.d.ts +0 -2
  2458. package/esm/geometry/shape/point/index.js +0 -32
  2459. package/esm/geometry/shape/point/index.js.map +0 -1
  2460. package/esm/geometry/shape/point/solid.d.ts +0 -1
  2461. package/esm/geometry/shape/point/solid.js +0 -23
  2462. package/esm/geometry/shape/point/solid.js.map +0 -1
  2463. package/esm/geometry/shape/point/util.d.ts +0 -15
  2464. package/esm/geometry/shape/point/util.js +0 -49
  2465. package/esm/geometry/shape/point/util.js.map +0 -1
  2466. package/esm/geometry/shape/polygon/index.d.ts +0 -2
  2467. package/esm/geometry/shape/polygon/index.js +0 -65
  2468. package/esm/geometry/shape/polygon/index.js.map +0 -1
  2469. package/esm/geometry/shape/polygon/square.d.ts +0 -1
  2470. package/esm/geometry/shape/polygon/square.js +0 -44
  2471. package/esm/geometry/shape/polygon/square.js.map +0 -1
  2472. package/esm/geometry/shape/schema/box.d.ts +0 -1
  2473. package/esm/geometry/shape/schema/box.js +0 -142
  2474. package/esm/geometry/shape/schema/box.js.map +0 -1
  2475. package/esm/geometry/shape/schema/candle.d.ts +0 -1
  2476. package/esm/geometry/shape/schema/candle.js +0 -80
  2477. package/esm/geometry/shape/schema/candle.js.map +0 -1
  2478. package/esm/geometry/shape/schema/index.d.ts +0 -2
  2479. package/esm/geometry/shape/schema/index.js +0 -6
  2480. package/esm/geometry/shape/schema/index.js.map +0 -1
  2481. package/esm/geometry/shape/util/get-path-points.d.ts +0 -38
  2482. package/esm/geometry/shape/util/get-path-points.js +0 -131
  2483. package/esm/geometry/shape/util/get-path-points.js.map +0 -1
  2484. package/esm/geometry/shape/util/get-style.d.ts +0 -18
  2485. package/esm/geometry/shape/util/get-style.js +0 -47
  2486. package/esm/geometry/shape/util/get-style.js.map +0 -1
  2487. package/esm/geometry/shape/util/path.d.ts +0 -32
  2488. package/esm/geometry/shape/util/path.js +0 -313
  2489. package/esm/geometry/shape/util/path.js.map +0 -1
  2490. package/esm/geometry/shape/util/split-points.d.ts +0 -13
  2491. package/esm/geometry/shape/util/split-points.js +0 -24
  2492. package/esm/geometry/shape/util/split-points.js.map +0 -1
  2493. package/esm/geometry/shape/violin/hollow.d.ts +0 -1
  2494. package/esm/geometry/shape/violin/hollow.js +0 -51
  2495. package/esm/geometry/shape/violin/hollow.js.map +0 -1
  2496. package/esm/geometry/shape/violin/index.d.ts +0 -2
  2497. package/esm/geometry/shape/violin/index.js +0 -60
  2498. package/esm/geometry/shape/violin/index.js.map +0 -1
  2499. package/esm/geometry/shape/violin/smooth.d.ts +0 -1
  2500. package/esm/geometry/shape/violin/smooth.js +0 -28
  2501. package/esm/geometry/shape/violin/smooth.js.map +0 -1
  2502. package/esm/geometry/util/diff.d.ts +0 -11
  2503. package/esm/geometry/util/diff.js +0 -30
  2504. package/esm/geometry/util/diff.js.map +0 -1
  2505. package/esm/geometry/util/get-shape-type.d.ts +0 -8
  2506. package/esm/geometry/util/get-shape-type.js +0 -16
  2507. package/esm/geometry/util/get-shape-type.js.map +0 -1
  2508. package/esm/geometry/util/group-data.d.ts +0 -3
  2509. package/esm/geometry/util/group-data.js +0 -42
  2510. package/esm/geometry/util/group-data.js.map +0 -1
  2511. package/esm/geometry/util/is-model-change.d.ts +0 -9
  2512. package/esm/geometry/util/is-model-change.js +0 -14
  2513. package/esm/geometry/util/is-model-change.js.map +0 -1
  2514. package/esm/geometry/util/parse-fields.d.ts +0 -2
  2515. package/esm/geometry/util/parse-fields.js +0 -9
  2516. package/esm/geometry/util/parse-fields.js.map +0 -1
  2517. package/esm/geometry/util/shape-size.d.ts +0 -2
  2518. package/esm/geometry/util/shape-size.js +0 -124
  2519. package/esm/geometry/util/shape-size.js.map +0 -1
  2520. package/esm/geometry/violin.d.ts +0 -25
  2521. package/esm/geometry/violin.js +0 -67
  2522. package/esm/geometry/violin.js.map +0 -1
  2523. package/esm/interaction/action/active-region.d.ts +0 -33
  2524. package/esm/interaction/action/active-region.js +0 -226
  2525. package/esm/interaction/action/active-region.js.map +0 -1
  2526. package/esm/interaction/action/base.d.ts +0 -29
  2527. package/esm/interaction/action/base.js +0 -36
  2528. package/esm/interaction/action/base.js.map +0 -1
  2529. package/esm/interaction/action/callback.d.ts +0 -17
  2530. package/esm/interaction/action/callback.js +0 -27
  2531. package/esm/interaction/action/callback.js.map +0 -1
  2532. package/esm/interaction/action/component/axis/axis-description.d.ts +0 -9
  2533. package/esm/interaction/action/component/axis/axis-description.js +0 -73
  2534. package/esm/interaction/action/component/axis/axis-description.js.map +0 -1
  2535. package/esm/interaction/action/component/list-active.d.ts +0 -14
  2536. package/esm/interaction/action/component/list-active.js +0 -24
  2537. package/esm/interaction/action/component/list-active.js.map +0 -1
  2538. package/esm/interaction/action/component/list-checked.d.ts +0 -30
  2539. package/esm/interaction/action/component/list-checked.js +0 -82
  2540. package/esm/interaction/action/component/list-checked.js.map +0 -1
  2541. package/esm/interaction/action/component/list-focus.d.ts +0 -5
  2542. package/esm/interaction/action/component/list-focus.js +0 -92
  2543. package/esm/interaction/action/component/list-focus.js.map +0 -1
  2544. package/esm/interaction/action/component/list-highlight-util.d.ts +0 -7
  2545. package/esm/interaction/action/component/list-highlight-util.js +0 -20
  2546. package/esm/interaction/action/component/list-highlight-util.js.map +0 -1
  2547. package/esm/interaction/action/component/list-highlight.d.ts +0 -20
  2548. package/esm/interaction/action/component/list-highlight.js +0 -97
  2549. package/esm/interaction/action/component/list-highlight.js.map +0 -1
  2550. package/esm/interaction/action/component/list-radio.d.ts +0 -24
  2551. package/esm/interaction/action/component/list-radio.js +0 -116
  2552. package/esm/interaction/action/component/list-radio.js.map +0 -1
  2553. package/esm/interaction/action/component/list-selected.d.ts +0 -10
  2554. package/esm/interaction/action/component/list-selected.js +0 -20
  2555. package/esm/interaction/action/component/list-selected.js.map +0 -1
  2556. package/esm/interaction/action/component/list-state.d.ts +0 -46
  2557. package/esm/interaction/action/component/list-state.js +0 -167
  2558. package/esm/interaction/action/component/list-state.js.map +0 -1
  2559. package/esm/interaction/action/component/list-unchecked.d.ts +0 -13
  2560. package/esm/interaction/action/component/list-unchecked.js +0 -23
  2561. package/esm/interaction/action/component/list-unchecked.js.map +0 -1
  2562. package/esm/interaction/action/component/tooltip/ellipsis-text.d.ts +0 -25
  2563. package/esm/interaction/action/component/tooltip/ellipsis-text.js +0 -93
  2564. package/esm/interaction/action/component/tooltip/ellipsis-text.js.map +0 -1
  2565. package/esm/interaction/action/component/tooltip/geometry.d.ts +0 -24
  2566. package/esm/interaction/action/component/tooltip/geometry.js +0 -71
  2567. package/esm/interaction/action/component/tooltip/geometry.js.map +0 -1
  2568. package/esm/interaction/action/component/tooltip/sibling.d.ts +0 -21
  2569. package/esm/interaction/action/component/tooltip/sibling.js +0 -39
  2570. package/esm/interaction/action/component/tooltip/sibling.js.map +0 -1
  2571. package/esm/interaction/action/cursor.d.ts +0 -77
  2572. package/esm/interaction/action/cursor.js +0 -125
  2573. package/esm/interaction/action/cursor.js.map +0 -1
  2574. package/esm/interaction/action/data/filter.d.ts +0 -13
  2575. package/esm/interaction/action/data/filter.js +0 -66
  2576. package/esm/interaction/action/data/filter.js.map +0 -1
  2577. package/esm/interaction/action/data/range-filter.d.ts +0 -56
  2578. package/esm/interaction/action/data/range-filter.js +0 -163
  2579. package/esm/interaction/action/data/range-filter.js.map +0 -1
  2580. package/esm/interaction/action/data/sibling-filter.d.ts +0 -22
  2581. package/esm/interaction/action/data/sibling-filter.js +0 -39
  2582. package/esm/interaction/action/data/sibling-filter.js.map +0 -1
  2583. package/esm/interaction/action/element/active.d.ts +0 -14
  2584. package/esm/interaction/action/element/active.js +0 -24
  2585. package/esm/interaction/action/element/active.js.map +0 -1
  2586. package/esm/interaction/action/element/filter.d.ts +0 -20
  2587. package/esm/interaction/action/element/filter.js +0 -89
  2588. package/esm/interaction/action/element/filter.js.map +0 -1
  2589. package/esm/interaction/action/element/highlight-by-color.d.ts +0 -10
  2590. package/esm/interaction/action/element/highlight-by-color.js +0 -30
  2591. package/esm/interaction/action/element/highlight-by-color.js.map +0 -1
  2592. package/esm/interaction/action/element/highlight-by-x.d.ts +0 -15
  2593. package/esm/interaction/action/element/highlight-by-x.js +0 -51
  2594. package/esm/interaction/action/element/highlight-by-x.js.map +0 -1
  2595. package/esm/interaction/action/element/highlight-util.d.ts +0 -18
  2596. package/esm/interaction/action/element/highlight-util.js +0 -45
  2597. package/esm/interaction/action/element/highlight-util.js.map +0 -1
  2598. package/esm/interaction/action/element/highlight.d.ts +0 -21
  2599. package/esm/interaction/action/element/highlight.js +0 -93
  2600. package/esm/interaction/action/element/highlight.js.map +0 -1
  2601. package/esm/interaction/action/element/link-by-color.d.ts +0 -51
  2602. package/esm/interaction/action/element/link-by-color.js +0 -156
  2603. package/esm/interaction/action/element/link-by-color.js.map +0 -1
  2604. package/esm/interaction/action/element/range-active.d.ts +0 -13
  2605. package/esm/interaction/action/element/range-active.js +0 -23
  2606. package/esm/interaction/action/element/range-active.js.map +0 -1
  2607. package/esm/interaction/action/element/range-highlight.d.ts +0 -27
  2608. package/esm/interaction/action/element/range-highlight.js +0 -54
  2609. package/esm/interaction/action/element/range-highlight.js.map +0 -1
  2610. package/esm/interaction/action/element/range-selected.d.ts +0 -13
  2611. package/esm/interaction/action/element/range-selected.js +0 -23
  2612. package/esm/interaction/action/element/range-selected.js.map +0 -1
  2613. package/esm/interaction/action/element/range-state.d.ts +0 -38
  2614. package/esm/interaction/action/element/range-state.js +0 -164
  2615. package/esm/interaction/action/element/range-state.js.map +0 -1
  2616. package/esm/interaction/action/element/selected.d.ts +0 -14
  2617. package/esm/interaction/action/element/selected.js +0 -24
  2618. package/esm/interaction/action/element/selected.js.map +0 -1
  2619. package/esm/interaction/action/element/sibling-filter.d.ts +0 -19
  2620. package/esm/interaction/action/element/sibling-filter.js +0 -93
  2621. package/esm/interaction/action/element/sibling-filter.js.map +0 -1
  2622. package/esm/interaction/action/element/single-active.d.ts +0 -13
  2623. package/esm/interaction/action/element/single-active.js +0 -23
  2624. package/esm/interaction/action/element/single-active.js.map +0 -1
  2625. package/esm/interaction/action/element/single-highlight.d.ts +0 -16
  2626. package/esm/interaction/action/element/single-highlight.js +0 -35
  2627. package/esm/interaction/action/element/single-highlight.js.map +0 -1
  2628. package/esm/interaction/action/element/single-selected.d.ts +0 -13
  2629. package/esm/interaction/action/element/single-selected.js +0 -23
  2630. package/esm/interaction/action/element/single-selected.js.map +0 -1
  2631. package/esm/interaction/action/element/single-state.d.ts +0 -18
  2632. package/esm/interaction/action/element/single-state.js +0 -53
  2633. package/esm/interaction/action/element/single-state.js.map +0 -1
  2634. package/esm/interaction/action/element/state-base.d.ts +0 -39
  2635. package/esm/interaction/action/element/state-base.js +0 -59
  2636. package/esm/interaction/action/element/state-base.js.map +0 -1
  2637. package/esm/interaction/action/element/state.d.ts +0 -28
  2638. package/esm/interaction/action/element/state.js +0 -99
  2639. package/esm/interaction/action/element/state.js.map +0 -1
  2640. package/esm/interaction/action/mask/base.d.ts +0 -62
  2641. package/esm/interaction/action/mask/base.js +0 -169
  2642. package/esm/interaction/action/mask/base.js.map +0 -1
  2643. package/esm/interaction/action/mask/circle.d.ts +0 -14
  2644. package/esm/interaction/action/mask/circle.js +0 -37
  2645. package/esm/interaction/action/mask/circle.js.map +0 -1
  2646. package/esm/interaction/action/mask/dim-rect.d.ts +0 -11
  2647. package/esm/interaction/action/mask/dim-rect.js +0 -62
  2648. package/esm/interaction/action/mask/dim-rect.js.map +0 -1
  2649. package/esm/interaction/action/mask/path.d.ts +0 -16
  2650. package/esm/interaction/action/mask/path.js +0 -44
  2651. package/esm/interaction/action/mask/path.js.map +0 -1
  2652. package/esm/interaction/action/mask/rect.d.ts +0 -17
  2653. package/esm/interaction/action/mask/rect.js +0 -39
  2654. package/esm/interaction/action/mask/rect.js.map +0 -1
  2655. package/esm/interaction/action/mask/smooth-path.d.ts +0 -9
  2656. package/esm/interaction/action/mask/smooth-path.js +0 -21
  2657. package/esm/interaction/action/mask/smooth-path.js.map +0 -1
  2658. package/esm/interaction/action/register.d.ts +0 -36
  2659. package/esm/interaction/action/register.js +0 -60
  2660. package/esm/interaction/action/register.js.map +0 -1
  2661. package/esm/interaction/action/util.d.ts +0 -140
  2662. package/esm/interaction/action/util.js +0 -361
  2663. package/esm/interaction/action/util.js.map +0 -1
  2664. package/esm/interaction/action/view/button.d.ts +0 -25
  2665. package/esm/interaction/action/view/button.js +0 -116
  2666. package/esm/interaction/action/view/button.js.map +0 -1
  2667. package/esm/interaction/action/view/drag.d.ts +0 -24
  2668. package/esm/interaction/action/view/drag.js +0 -73
  2669. package/esm/interaction/action/view/drag.js.map +0 -1
  2670. package/esm/interaction/action/view/mousewheel-scroll.d.ts +0 -5
  2671. package/esm/interaction/action/view/mousewheel-scroll.js +0 -35
  2672. package/esm/interaction/action/view/mousewheel-scroll.js.map +0 -1
  2673. package/esm/interaction/action/view/move.d.ts +0 -28
  2674. package/esm/interaction/action/view/move.js +0 -80
  2675. package/esm/interaction/action/view/move.js.map +0 -1
  2676. package/esm/interaction/action/view/scale-transform.d.ts +0 -18
  2677. package/esm/interaction/action/view/scale-transform.js +0 -51
  2678. package/esm/interaction/action/view/scale-transform.js.map +0 -1
  2679. package/esm/interaction/action/view/scale-translate.d.ts +0 -30
  2680. package/esm/interaction/action/view/scale-translate.js +0 -112
  2681. package/esm/interaction/action/view/scale-translate.js.map +0 -1
  2682. package/esm/interaction/action/view/scale-zoom.d.ts +0 -20
  2683. package/esm/interaction/action/view/scale-zoom.js +0 -83
  2684. package/esm/interaction/action/view/scale-zoom.js.map +0 -1
  2685. package/esm/interaction/context.d.ts +0 -65
  2686. package/esm/interaction/context.js +0 -142
  2687. package/esm/interaction/context.js.map +0 -1
  2688. package/esm/interaction/grammar-interaction.d.ts +0 -158
  2689. package/esm/interaction/grammar-interaction.js +0 -285
  2690. package/esm/interaction/grammar-interaction.js.map +0 -1
  2691. package/esm/interaction/interaction.d.ts +0 -29
  2692. package/esm/interaction/interaction.js +0 -32
  2693. package/esm/interaction/interaction.js.map +0 -1
  2694. package/esm/interface.d.ts +0 -3686
  2695. package/esm/interface.js +0 -2
  2696. package/esm/interface.js.map +0 -1
  2697. package/esm/theme/style-sheet/dark.d.ts +0 -545
  2698. package/esm/theme/style-sheet/dark.js +0 -500
  2699. package/esm/theme/style-sheet/dark.js.map +0 -1
  2700. package/esm/theme/style-sheet/light.d.ts +0 -541
  2701. package/esm/theme/style-sheet/light.js +0 -496
  2702. package/esm/theme/style-sheet/light.js.map +0 -1
  2703. package/esm/theme/util/create-by-style-sheet.d.ts +0 -6
  2704. package/esm/theme/util/create-by-style-sheet.js +0 -1425
  2705. package/esm/theme/util/create-by-style-sheet.js.map +0 -1
  2706. package/esm/theme/util/create-theme.d.ts +0 -6
  2707. package/esm/theme/util/create-theme.js +0 -12
  2708. package/esm/theme/util/create-theme.js.map +0 -1
  2709. package/esm/theme/util/index.d.ts +0 -1
  2710. package/esm/theme/util/index.js +0 -2
  2711. package/esm/theme/util/index.js.map +0 -1
  2712. package/esm/util/annotation.d.ts +0 -7
  2713. package/esm/util/annotation.js +0 -39
  2714. package/esm/util/annotation.js.map +0 -1
  2715. package/esm/util/attr.d.ts +0 -10
  2716. package/esm/util/attr.js +0 -25
  2717. package/esm/util/attr.js.map +0 -1
  2718. package/esm/util/axis.d.ts +0 -100
  2719. package/esm/util/axis.js +0 -236
  2720. package/esm/util/axis.js.map +0 -1
  2721. package/esm/util/bbox.d.ts +0 -105
  2722. package/esm/util/bbox.js +0 -283
  2723. package/esm/util/bbox.js.map +0 -1
  2724. package/esm/util/collision-detect.d.ts +0 -20
  2725. package/esm/util/collision-detect.js +0 -129
  2726. package/esm/util/collision-detect.js.map +0 -1
  2727. package/esm/util/color.d.ts +0 -1
  2728. package/esm/util/color.js +0 -19
  2729. package/esm/util/color.js.map +0 -1
  2730. package/esm/util/context.d.ts +0 -4
  2731. package/esm/util/context.js +0 -11
  2732. package/esm/util/context.js.map +0 -1
  2733. package/esm/util/coordinate.d.ts +0 -86
  2734. package/esm/util/coordinate.js +0 -147
  2735. package/esm/util/coordinate.js.map +0 -1
  2736. package/esm/util/direction.d.ts +0 -19
  2737. package/esm/util/direction.js +0 -120
  2738. package/esm/util/direction.js.map +0 -1
  2739. package/esm/util/dom.d.ts +0 -19
  2740. package/esm/util/dom.js +0 -61
  2741. package/esm/util/dom.js.map +0 -1
  2742. package/esm/util/event.d.ts +0 -8
  2743. package/esm/util/event.js +0 -14
  2744. package/esm/util/event.js.map +0 -1
  2745. package/esm/util/facet.d.ts +0 -16
  2746. package/esm/util/facet.js +0 -43
  2747. package/esm/util/facet.js.map +0 -1
  2748. package/esm/util/graphics.d.ts +0 -58
  2749. package/esm/util/graphics.js +0 -203
  2750. package/esm/util/graphics.js.map +0 -1
  2751. package/esm/util/grid.d.ts +0 -36
  2752. package/esm/util/grid.js +0 -118
  2753. package/esm/util/grid.js.map +0 -1
  2754. package/esm/util/helper.d.ts +0 -34
  2755. package/esm/util/helper.js +0 -83
  2756. package/esm/util/helper.js.map +0 -1
  2757. package/esm/util/legend.d.ts +0 -45
  2758. package/esm/util/legend.js +0 -145
  2759. package/esm/util/legend.js.map +0 -1
  2760. package/esm/util/marker.d.ts +0 -10
  2761. package/esm/util/marker.js +0 -58
  2762. package/esm/util/marker.js.map +0 -1
  2763. package/esm/util/padding.d.ts +0 -14
  2764. package/esm/util/padding.js +0 -40
  2765. package/esm/util/padding.js.map +0 -1
  2766. package/esm/util/scale.d.ts +0 -42
  2767. package/esm/util/scale.js +0 -129
  2768. package/esm/util/scale.js.map +0 -1
  2769. package/esm/util/stat.d.ts +0 -10
  2770. package/esm/util/stat.js +0 -36
  2771. package/esm/util/stat.js.map +0 -1
  2772. package/esm/util/text.d.ts +0 -23
  2773. package/esm/util/text.js +0 -84
  2774. package/esm/util/text.js.map +0 -1
  2775. package/esm/util/tooltip.d.ts +0 -26
  2776. package/esm/util/tooltip.js +0 -469
  2777. package/esm/util/tooltip.js.map +0 -1
  2778. package/esm/util/transform.d.ts +0 -33
  2779. package/esm/util/transform.js +0 -61
  2780. package/esm/util/transform.js.map +0 -1
  2781. package/esm/util/types.d.ts +0 -6
  2782. package/esm/util/types.js.map +0 -1
  2783. package/lib/animate/animation/fade.d.ts +0 -21
  2784. package/lib/animate/animation/fade.js +0 -47
  2785. package/lib/animate/animation/fade.js.map +0 -1
  2786. package/lib/animate/animation/grow-in.d.ts +0 -30
  2787. package/lib/animate/animation/grow-in.js +0 -44
  2788. package/lib/animate/animation/grow-in.js.map +0 -1
  2789. package/lib/animate/animation/index.d.ts +0 -16
  2790. package/lib/animate/animation/index.js +0 -22
  2791. package/lib/animate/animation/index.js.map +0 -1
  2792. package/lib/animate/animation/path-in.d.ts +0 -12
  2793. package/lib/animate/animation/path-in.js +0 -25
  2794. package/lib/animate/animation/path-in.js.map +0 -1
  2795. package/lib/animate/animation/position-update.d.ts +0 -11
  2796. package/lib/animate/animation/position-update.js +0 -28
  2797. package/lib/animate/animation/position-update.js.map +0 -1
  2798. package/lib/animate/animation/scale-in.d.ts +0 -19
  2799. package/lib/animate/animation/scale-in.js +0 -65
  2800. package/lib/animate/animation/scale-in.js.map +0 -1
  2801. package/lib/animate/animation/sector-path-update.d.ts +0 -27
  2802. package/lib/animate/animation/sector-path-update.js +0 -137
  2803. package/lib/animate/animation/sector-path-update.js.map +0 -1
  2804. package/lib/animate/animation/util.d.ts +0 -19
  2805. package/lib/animate/animation/util.js +0 -94
  2806. package/lib/animate/animation/util.js.map +0 -1
  2807. package/lib/animate/animation/wave-in.d.ts +0 -13
  2808. package/lib/animate/animation/wave-in.js +0 -34
  2809. package/lib/animate/animation/wave-in.js.map +0 -1
  2810. package/lib/animate/animation/zoom.d.ts +0 -21
  2811. package/lib/animate/animation/zoom.js +0 -71
  2812. package/lib/animate/animation/zoom.js.map +0 -1
  2813. package/lib/animate/index.d.ts +0 -48
  2814. package/lib/animate/index.js +0 -255
  2815. package/lib/animate/index.js.map +0 -1
  2816. package/lib/animate/interface.d.ts +0 -18
  2817. package/lib/animate/interface.js +0 -3
  2818. package/lib/animate/interface.js.map +0 -1
  2819. package/lib/api.d.ts +0 -2
  2820. package/lib/api.js +0 -7
  2821. package/lib/api.js.map +0 -1
  2822. package/lib/base.d.ts +0 -33
  2823. package/lib/base.js +0 -57
  2824. package/lib/base.js.map +0 -1
  2825. package/lib/chart/chart.d.ts +0 -61
  2826. package/lib/chart/chart.js +0 -159
  2827. package/lib/chart/chart.js.map +0 -1
  2828. package/lib/chart/controller/annotation.d.ts +0 -162
  2829. package/lib/chart/controller/annotation.js +0 -594
  2830. package/lib/chart/controller/annotation.js.map +0 -1
  2831. package/lib/chart/controller/axis.d.ts +0 -93
  2832. package/lib/chart/controller/axis.js +0 -580
  2833. package/lib/chart/controller/axis.js.map +0 -1
  2834. package/lib/chart/controller/base.d.ts +0 -64
  2835. package/lib/chart/controller/base.js +0 -65
  2836. package/lib/chart/controller/base.js.map +0 -1
  2837. package/lib/chart/controller/coordinate.d.ts +0 -74
  2838. package/lib/chart/controller/coordinate.js +0 -147
  2839. package/lib/chart/controller/coordinate.js.map +0 -1
  2840. package/lib/chart/controller/gesture.d.ts +0 -37
  2841. package/lib/chart/controller/gesture.js +0 -260
  2842. package/lib/chart/controller/gesture.js.map +0 -1
  2843. package/lib/chart/controller/index.d.ts +0 -25
  2844. package/lib/chart/controller/index.js +0 -41
  2845. package/lib/chart/controller/index.js.map +0 -1
  2846. package/lib/chart/controller/legend.d.ts +0 -106
  2847. package/lib/chart/controller/legend.js +0 -486
  2848. package/lib/chart/controller/legend.js.map +0 -1
  2849. package/lib/chart/controller/scrollbar.d.ts +0 -64
  2850. package/lib/chart/controller/scrollbar.js +0 -318
  2851. package/lib/chart/controller/scrollbar.js.map +0 -1
  2852. package/lib/chart/controller/slider.d.ts +0 -88
  2853. package/lib/chart/controller/slider.js +0 -298
  2854. package/lib/chart/controller/slider.js.map +0 -1
  2855. package/lib/chart/controller/tooltip.d.ts +0 -68
  2856. package/lib/chart/controller/tooltip.js +0 -698
  2857. package/lib/chart/controller/tooltip.js.map +0 -1
  2858. package/lib/chart/event.d.ts +0 -47
  2859. package/lib/chart/event.js +0 -93
  2860. package/lib/chart/event.js.map +0 -1
  2861. package/lib/chart/index.d.ts +0 -4
  2862. package/lib/chart/index.js +0 -16
  2863. package/lib/chart/index.js.map +0 -1
  2864. package/lib/chart/layout/auto.d.ts +0 -8
  2865. package/lib/chart/layout/auto.js +0 -68
  2866. package/lib/chart/layout/auto.js.map +0 -1
  2867. package/lib/chart/layout/constraint/bounds.d.ts +0 -32
  2868. package/lib/chart/layout/constraint/bounds.js +0 -33
  2869. package/lib/chart/layout/constraint/bounds.js.map +0 -1
  2870. package/lib/chart/layout/constraint/constraint.d.ts +0 -31
  2871. package/lib/chart/layout/constraint/constraint.js +0 -85
  2872. package/lib/chart/layout/constraint/constraint.js.map +0 -1
  2873. package/lib/chart/layout/constraint/gauss.d.ts +0 -11
  2874. package/lib/chart/layout/constraint/gauss.js +0 -68
  2875. package/lib/chart/layout/constraint/gauss.js.map +0 -1
  2876. package/lib/chart/layout/constraint/index.d.ts +0 -5
  2877. package/lib/chart/layout/constraint/index.js +0 -38
  2878. package/lib/chart/layout/constraint/index.js.map +0 -1
  2879. package/lib/chart/layout/constraint/solver.d.ts +0 -40
  2880. package/lib/chart/layout/constraint/solver.js +0 -81
  2881. package/lib/chart/layout/constraint/solver.js.map +0 -1
  2882. package/lib/chart/layout/constraint/types.d.ts +0 -21
  2883. package/lib/chart/layout/constraint/types.js +0 -16
  2884. package/lib/chart/layout/constraint/types.js.map +0 -1
  2885. package/lib/chart/layout/constraint/variable.d.ts +0 -24
  2886. package/lib/chart/layout/constraint/variable.js +0 -31
  2887. package/lib/chart/layout/constraint/variable.js.map +0 -1
  2888. package/lib/chart/layout/index.d.ts +0 -15
  2889. package/lib/chart/layout/index.js +0 -29
  2890. package/lib/chart/layout/index.js.map +0 -1
  2891. package/lib/chart/layout/padding-cal.d.ts +0 -53
  2892. package/lib/chart/layout/padding-cal.js +0 -111
  2893. package/lib/chart/layout/padding-cal.js.map +0 -1
  2894. package/lib/chart/util/scale-pool.d.ts +0 -57
  2895. package/lib/chart/util/scale-pool.js +0 -215
  2896. package/lib/chart/util/scale-pool.js.map +0 -1
  2897. package/lib/chart/util/sync-view-padding.d.ts +0 -9
  2898. package/lib/chart/util/sync-view-padding.js +0 -18
  2899. package/lib/chart/util/sync-view-padding.js.map +0 -1
  2900. package/lib/chart/view.d.ts +0 -747
  2901. package/lib/chart/view.js +0 -1640
  2902. package/lib/chart/view.js.map +0 -1
  2903. package/lib/component/labels.d.ts +0 -46
  2904. package/lib/component/labels.js +0 -308
  2905. package/lib/component/labels.js.map +0 -1
  2906. package/lib/component/update-label.d.ts +0 -21
  2907. package/lib/component/update-label.js +0 -61
  2908. package/lib/component/update-label.js.map +0 -1
  2909. package/lib/constant.d.ts +0 -124
  2910. package/lib/constant.js +0 -139
  2911. package/lib/constant.js.map +0 -1
  2912. package/lib/core.d.ts +0 -46
  2913. package/lib/core.js +0 -101
  2914. package/lib/core.js.map +0 -1
  2915. package/lib/dependents.d.ts +0 -21
  2916. package/lib/dependents.js +0 -55
  2917. package/lib/dependents.js.map +0 -1
  2918. package/lib/engine/index.d.ts +0 -13
  2919. package/lib/engine/index.js +0 -27
  2920. package/lib/engine/index.js.map +0 -1
  2921. package/lib/facet/circle.d.ts +0 -36
  2922. package/lib/facet/circle.js +0 -121
  2923. package/lib/facet/circle.js.map +0 -1
  2924. package/lib/facet/facet.d.ts +0 -165
  2925. package/lib/facet/facet.js +0 -295
  2926. package/lib/facet/facet.js.map +0 -1
  2927. package/lib/facet/index.d.ts +0 -13
  2928. package/lib/facet/index.js +0 -28
  2929. package/lib/facet/index.js.map +0 -1
  2930. package/lib/facet/list.d.ts +0 -46
  2931. package/lib/facet/list.js +0 -136
  2932. package/lib/facet/list.js.map +0 -1
  2933. package/lib/facet/matrix.d.ts +0 -34
  2934. package/lib/facet/matrix.js +0 -121
  2935. package/lib/facet/matrix.js.map +0 -1
  2936. package/lib/facet/mirror.d.ts +0 -31
  2937. package/lib/facet/mirror.js +0 -146
  2938. package/lib/facet/mirror.js.map +0 -1
  2939. package/lib/facet/rect.d.ts +0 -35
  2940. package/lib/facet/rect.js +0 -143
  2941. package/lib/facet/rect.js.map +0 -1
  2942. package/lib/facet/tree.d.ts +0 -40
  2943. package/lib/facet/tree.js +0 -300
  2944. package/lib/facet/tree.js.map +0 -1
  2945. package/lib/geometry/area.d.ts +0 -46
  2946. package/lib/geometry/area.js +0 -64
  2947. package/lib/geometry/area.js.map +0 -1
  2948. package/lib/geometry/base.d.ts +0 -796
  2949. package/lib/geometry/base.js +0 -1558
  2950. package/lib/geometry/base.js.map +0 -1
  2951. package/lib/geometry/edge.d.ts +0 -15
  2952. package/lib/geometry/edge.js +0 -26
  2953. package/lib/geometry/edge.js.map +0 -1
  2954. package/lib/geometry/element/index.d.ts +0 -127
  2955. package/lib/geometry/element/index.js +0 -440
  2956. package/lib/geometry/element/index.js.map +0 -1
  2957. package/lib/geometry/heatmap.d.ts +0 -31
  2958. package/lib/geometry/heatmap.js +0 -202
  2959. package/lib/geometry/heatmap.js.map +0 -1
  2960. package/lib/geometry/interval.d.ts +0 -41
  2961. package/lib/geometry/interval.js +0 -100
  2962. package/lib/geometry/interval.js.map +0 -1
  2963. package/lib/geometry/label/base.d.ts +0 -76
  2964. package/lib/geometry/label/base.js +0 -418
  2965. package/lib/geometry/label/base.js.map +0 -1
  2966. package/lib/geometry/label/index.d.ts +0 -38
  2967. package/lib/geometry/label/index.js +0 -42
  2968. package/lib/geometry/label/index.js.map +0 -1
  2969. package/lib/geometry/label/interface.d.ts +0 -66
  2970. package/lib/geometry/label/interface.js +0 -3
  2971. package/lib/geometry/label/interface.js.map +0 -1
  2972. package/lib/geometry/label/interval.d.ts +0 -27
  2973. package/lib/geometry/label/interval.js +0 -148
  2974. package/lib/geometry/label/interval.js.map +0 -1
  2975. package/lib/geometry/label/layout/adjust-color.d.ts +0 -3
  2976. package/lib/geometry/label/layout/adjust-color.js +0 -40
  2977. package/lib/geometry/label/layout/adjust-color.js.map +0 -1
  2978. package/lib/geometry/label/layout/hide-overlap.d.ts +0 -8
  2979. package/lib/geometry/label/layout/hide-overlap.js +0 -79
  2980. package/lib/geometry/label/layout/hide-overlap.js.map +0 -1
  2981. package/lib/geometry/label/layout/interval/adjust-position.d.ts +0 -9
  2982. package/lib/geometry/label/layout/interval/adjust-position.js +0 -65
  2983. package/lib/geometry/label/layout/interval/adjust-position.js.map +0 -1
  2984. package/lib/geometry/label/layout/interval/hide-overlap.d.ts +0 -9
  2985. package/lib/geometry/label/layout/interval/hide-overlap.js +0 -83
  2986. package/lib/geometry/label/layout/interval/hide-overlap.js.map +0 -1
  2987. package/lib/geometry/label/layout/limit-in-canvas.d.ts +0 -9
  2988. package/lib/geometry/label/layout/limit-in-canvas.js +0 -48
  2989. package/lib/geometry/label/layout/limit-in-canvas.js.map +0 -1
  2990. package/lib/geometry/label/layout/limit-in-plot.d.ts +0 -18
  2991. package/lib/geometry/label/layout/limit-in-plot.js +0 -79
  2992. package/lib/geometry/label/layout/limit-in-plot.js.map +0 -1
  2993. package/lib/geometry/label/layout/limit-in-shape.d.ts +0 -7
  2994. package/lib/geometry/label/layout/limit-in-shape.js +0 -22
  2995. package/lib/geometry/label/layout/limit-in-shape.js.map +0 -1
  2996. package/lib/geometry/label/layout/overlap.d.ts +0 -15
  2997. package/lib/geometry/label/layout/overlap.js +0 -228
  2998. package/lib/geometry/label/layout/overlap.js.map +0 -1
  2999. package/lib/geometry/label/layout/path/adjust-position.d.ts +0 -17
  3000. package/lib/geometry/label/layout/path/adjust-position.js +0 -99
  3001. package/lib/geometry/label/layout/path/adjust-position.js.map +0 -1
  3002. package/lib/geometry/label/layout/pie/distribute.d.ts +0 -3
  3003. package/lib/geometry/label/layout/pie/distribute.js +0 -200
  3004. package/lib/geometry/label/layout/pie/distribute.js.map +0 -1
  3005. package/lib/geometry/label/layout/pie/outer.d.ts +0 -6
  3006. package/lib/geometry/label/layout/pie/outer.js +0 -222
  3007. package/lib/geometry/label/layout/pie/outer.js.map +0 -1
  3008. package/lib/geometry/label/layout/pie/spider.d.ts +0 -7
  3009. package/lib/geometry/label/layout/pie/spider.js +0 -197
  3010. package/lib/geometry/label/layout/pie/spider.js.map +0 -1
  3011. package/lib/geometry/label/layout/pie/util.d.ts +0 -10
  3012. package/lib/geometry/label/layout/pie/util.js +0 -77
  3013. package/lib/geometry/label/layout/pie/util.js.map +0 -1
  3014. package/lib/geometry/label/layout/point/adjust-position.d.ts +0 -17
  3015. package/lib/geometry/label/layout/point/adjust-position.js +0 -99
  3016. package/lib/geometry/label/layout/point/adjust-position.js.map +0 -1
  3017. package/lib/geometry/label/layout/worker/hide-overlap.d.ts +0 -2
  3018. package/lib/geometry/label/layout/worker/hide-overlap.js +0 -158
  3019. package/lib/geometry/label/layout/worker/hide-overlap.js.map +0 -1
  3020. package/lib/geometry/label/pie.d.ts +0 -22
  3021. package/lib/geometry/label/pie.js +0 -97
  3022. package/lib/geometry/label/pie.js.map +0 -1
  3023. package/lib/geometry/label/polar.d.ts +0 -64
  3024. package/lib/geometry/label/polar.js +0 -223
  3025. package/lib/geometry/label/polar.js.map +0 -1
  3026. package/lib/geometry/label/util/createWorker.d.ts +0 -1
  3027. package/lib/geometry/label/util/createWorker.js +0 -20
  3028. package/lib/geometry/label/util/createWorker.js.map +0 -1
  3029. package/lib/geometry/label/util/index.d.ts +0 -28
  3030. package/lib/geometry/label/util/index.js +0 -69
  3031. package/lib/geometry/label/util/index.js.map +0 -1
  3032. package/lib/geometry/line.d.ts +0 -11
  3033. package/lib/geometry/line.js +0 -23
  3034. package/lib/geometry/line.js.map +0 -1
  3035. package/lib/geometry/path.d.ts +0 -40
  3036. package/lib/geometry/path.js +0 -152
  3037. package/lib/geometry/path.js.map +0 -1
  3038. package/lib/geometry/point.d.ts +0 -19
  3039. package/lib/geometry/point.js +0 -32
  3040. package/lib/geometry/point.js.map +0 -1
  3041. package/lib/geometry/polygon.d.ts +0 -19
  3042. package/lib/geometry/polygon.js +0 -64
  3043. package/lib/geometry/polygon.js.map +0 -1
  3044. package/lib/geometry/schema.d.ts +0 -18
  3045. package/lib/geometry/schema.js +0 -50
  3046. package/lib/geometry/schema.js.map +0 -1
  3047. package/lib/geometry/shape/area/index.d.ts +0 -2
  3048. package/lib/geometry/shape/area/index.js +0 -47
  3049. package/lib/geometry/shape/area/index.js.map +0 -1
  3050. package/lib/geometry/shape/area/line.d.ts +0 -1
  3051. package/lib/geometry/shape/area/line.js +0 -33
  3052. package/lib/geometry/shape/area/line.js.map +0 -1
  3053. package/lib/geometry/shape/area/smooth-line.d.ts +0 -1
  3054. package/lib/geometry/shape/area/smooth-line.js +0 -32
  3055. package/lib/geometry/shape/area/smooth-line.js.map +0 -1
  3056. package/lib/geometry/shape/area/smooth.d.ts +0 -1
  3057. package/lib/geometry/shape/area/smooth.js +0 -34
  3058. package/lib/geometry/shape/area/smooth.js.map +0 -1
  3059. package/lib/geometry/shape/area/util.d.ts +0 -22
  3060. package/lib/geometry/shape/area/util.js +0 -93
  3061. package/lib/geometry/shape/area/util.js.map +0 -1
  3062. package/lib/geometry/shape/base.d.ts +0 -22
  3063. package/lib/geometry/shape/base.js +0 -168
  3064. package/lib/geometry/shape/base.js.map +0 -1
  3065. package/lib/geometry/shape/constant.d.ts +0 -4
  3066. package/lib/geometry/shape/constant.js +0 -8
  3067. package/lib/geometry/shape/constant.js.map +0 -1
  3068. package/lib/geometry/shape/edge/arc.d.ts +0 -1
  3069. package/lib/geometry/shape/edge/arc.js +0 -86
  3070. package/lib/geometry/shape/edge/arc.js.map +0 -1
  3071. package/lib/geometry/shape/edge/index.d.ts +0 -2
  3072. package/lib/geometry/shape/edge/index.js +0 -33
  3073. package/lib/geometry/shape/edge/index.js.map +0 -1
  3074. package/lib/geometry/shape/edge/smooth.d.ts +0 -1
  3075. package/lib/geometry/shape/edge/smooth.js +0 -32
  3076. package/lib/geometry/shape/edge/smooth.js.map +0 -1
  3077. package/lib/geometry/shape/edge/util.d.ts +0 -17
  3078. package/lib/geometry/shape/edge/util.js +0 -37
  3079. package/lib/geometry/shape/edge/util.js.map +0 -1
  3080. package/lib/geometry/shape/edge/vhv.d.ts +0 -1
  3081. package/lib/geometry/shape/edge/vhv.js +0 -44
  3082. package/lib/geometry/shape/edge/vhv.js.map +0 -1
  3083. package/lib/geometry/shape/interval/funnel.d.ts +0 -1
  3084. package/lib/geometry/shape/interval/funnel.js +0 -33
  3085. package/lib/geometry/shape/interval/funnel.js.map +0 -1
  3086. package/lib/geometry/shape/interval/hollow-rect.d.ts +0 -1
  3087. package/lib/geometry/shape/interval/hollow-rect.js +0 -53
  3088. package/lib/geometry/shape/interval/hollow-rect.js.map +0 -1
  3089. package/lib/geometry/shape/interval/index.d.ts +0 -3
  3090. package/lib/geometry/shape/interval/index.js +0 -67
  3091. package/lib/geometry/shape/interval/index.js.map +0 -1
  3092. package/lib/geometry/shape/interval/line.d.ts +0 -1
  3093. package/lib/geometry/shape/interval/line.js +0 -56
  3094. package/lib/geometry/shape/interval/line.js.map +0 -1
  3095. package/lib/geometry/shape/interval/pyramid.d.ts +0 -1
  3096. package/lib/geometry/shape/interval/pyramid.js +0 -33
  3097. package/lib/geometry/shape/interval/pyramid.js.map +0 -1
  3098. package/lib/geometry/shape/interval/tick.d.ts +0 -1
  3099. package/lib/geometry/shape/interval/tick.js +0 -80
  3100. package/lib/geometry/shape/interval/tick.js.map +0 -1
  3101. package/lib/geometry/shape/interval/util.d.ts +0 -55
  3102. package/lib/geometry/shape/interval/util.js +0 -328
  3103. package/lib/geometry/shape/interval/util.js.map +0 -1
  3104. package/lib/geometry/shape/line/index.d.ts +0 -8
  3105. package/lib/geometry/shape/line/index.js +0 -109
  3106. package/lib/geometry/shape/line/index.js.map +0 -1
  3107. package/lib/geometry/shape/line/step.d.ts +0 -1
  3108. package/lib/geometry/shape/line/step.js +0 -86
  3109. package/lib/geometry/shape/line/step.js.map +0 -1
  3110. package/lib/geometry/shape/line/util.d.ts +0 -16
  3111. package/lib/geometry/shape/line/util.js +0 -87
  3112. package/lib/geometry/shape/line/util.js.map +0 -1
  3113. package/lib/geometry/shape/point/hollow.d.ts +0 -1
  3114. package/lib/geometry/shape/point/hollow.js +0 -26
  3115. package/lib/geometry/shape/point/hollow.js.map +0 -1
  3116. package/lib/geometry/shape/point/image.d.ts +0 -1
  3117. package/lib/geometry/shape/point/image.js +0 -61
  3118. package/lib/geometry/shape/point/image.js.map +0 -1
  3119. package/lib/geometry/shape/point/index.d.ts +0 -2
  3120. package/lib/geometry/shape/point/index.js +0 -34
  3121. package/lib/geometry/shape/point/index.js.map +0 -1
  3122. package/lib/geometry/shape/point/solid.d.ts +0 -1
  3123. package/lib/geometry/shape/point/solid.js +0 -25
  3124. package/lib/geometry/shape/point/solid.js.map +0 -1
  3125. package/lib/geometry/shape/point/util.d.ts +0 -15
  3126. package/lib/geometry/shape/point/util.js +0 -53
  3127. package/lib/geometry/shape/point/util.js.map +0 -1
  3128. package/lib/geometry/shape/polygon/index.d.ts +0 -2
  3129. package/lib/geometry/shape/polygon/index.js +0 -67
  3130. package/lib/geometry/shape/polygon/index.js.map +0 -1
  3131. package/lib/geometry/shape/polygon/square.d.ts +0 -1
  3132. package/lib/geometry/shape/polygon/square.js +0 -46
  3133. package/lib/geometry/shape/polygon/square.js.map +0 -1
  3134. package/lib/geometry/shape/schema/box.d.ts +0 -1
  3135. package/lib/geometry/shape/schema/box.js +0 -144
  3136. package/lib/geometry/shape/schema/box.js.map +0 -1
  3137. package/lib/geometry/shape/schema/candle.d.ts +0 -1
  3138. package/lib/geometry/shape/schema/candle.js +0 -82
  3139. package/lib/geometry/shape/schema/candle.js.map +0 -1
  3140. package/lib/geometry/shape/schema/index.d.ts +0 -2
  3141. package/lib/geometry/shape/schema/index.js +0 -8
  3142. package/lib/geometry/shape/schema/index.js.map +0 -1
  3143. package/lib/geometry/shape/util/get-path-points.d.ts +0 -38
  3144. package/lib/geometry/shape/util/get-path-points.js +0 -137
  3145. package/lib/geometry/shape/util/get-path-points.js.map +0 -1
  3146. package/lib/geometry/shape/util/get-style.d.ts +0 -18
  3147. package/lib/geometry/shape/util/get-style.js +0 -52
  3148. package/lib/geometry/shape/util/get-style.js.map +0 -1
  3149. package/lib/geometry/shape/util/path.d.ts +0 -32
  3150. package/lib/geometry/shape/util/path.js +0 -322
  3151. package/lib/geometry/shape/util/path.js.map +0 -1
  3152. package/lib/geometry/shape/util/split-points.d.ts +0 -13
  3153. package/lib/geometry/shape/util/split-points.js +0 -28
  3154. package/lib/geometry/shape/util/split-points.js.map +0 -1
  3155. package/lib/geometry/shape/violin/hollow.d.ts +0 -1
  3156. package/lib/geometry/shape/violin/hollow.js +0 -53
  3157. package/lib/geometry/shape/violin/hollow.js.map +0 -1
  3158. package/lib/geometry/shape/violin/index.d.ts +0 -2
  3159. package/lib/geometry/shape/violin/index.js +0 -62
  3160. package/lib/geometry/shape/violin/index.js.map +0 -1
  3161. package/lib/geometry/shape/violin/smooth.d.ts +0 -1
  3162. package/lib/geometry/shape/violin/smooth.js +0 -30
  3163. package/lib/geometry/shape/violin/smooth.js.map +0 -1
  3164. package/lib/geometry/util/diff.d.ts +0 -11
  3165. package/lib/geometry/util/diff.js +0 -34
  3166. package/lib/geometry/util/diff.js.map +0 -1
  3167. package/lib/geometry/util/get-shape-type.d.ts +0 -8
  3168. package/lib/geometry/util/get-shape-type.js +0 -20
  3169. package/lib/geometry/util/get-shape-type.js.map +0 -1
  3170. package/lib/geometry/util/group-data.d.ts +0 -3
  3171. package/lib/geometry/util/group-data.js +0 -46
  3172. package/lib/geometry/util/group-data.js.map +0 -1
  3173. package/lib/geometry/util/is-model-change.d.ts +0 -9
  3174. package/lib/geometry/util/is-model-change.js +0 -18
  3175. package/lib/geometry/util/is-model-change.js.map +0 -1
  3176. package/lib/geometry/util/parse-fields.d.ts +0 -2
  3177. package/lib/geometry/util/parse-fields.js +0 -13
  3178. package/lib/geometry/util/parse-fields.js.map +0 -1
  3179. package/lib/geometry/util/shape-size.d.ts +0 -2
  3180. package/lib/geometry/util/shape-size.js +0 -128
  3181. package/lib/geometry/util/shape-size.js.map +0 -1
  3182. package/lib/geometry/violin.d.ts +0 -25
  3183. package/lib/geometry/violin.js +0 -69
  3184. package/lib/geometry/violin.js.map +0 -1
  3185. package/lib/interaction/action/active-region.d.ts +0 -33
  3186. package/lib/interaction/action/active-region.js +0 -230
  3187. package/lib/interaction/action/active-region.js.map +0 -1
  3188. package/lib/interaction/action/base.d.ts +0 -29
  3189. package/lib/interaction/action/base.js +0 -38
  3190. package/lib/interaction/action/base.js.map +0 -1
  3191. package/lib/interaction/action/callback.d.ts +0 -17
  3192. package/lib/interaction/action/callback.js +0 -29
  3193. package/lib/interaction/action/callback.js.map +0 -1
  3194. package/lib/interaction/action/component/axis/axis-description.d.ts +0 -9
  3195. package/lib/interaction/action/component/axis/axis-description.js +0 -75
  3196. package/lib/interaction/action/component/axis/axis-description.js.map +0 -1
  3197. package/lib/interaction/action/component/list-active.d.ts +0 -14
  3198. package/lib/interaction/action/component/list-active.js +0 -26
  3199. package/lib/interaction/action/component/list-active.js.map +0 -1
  3200. package/lib/interaction/action/component/list-checked.d.ts +0 -30
  3201. package/lib/interaction/action/component/list-checked.js +0 -84
  3202. package/lib/interaction/action/component/list-checked.js.map +0 -1
  3203. package/lib/interaction/action/component/list-focus.d.ts +0 -5
  3204. package/lib/interaction/action/component/list-focus.js +0 -94
  3205. package/lib/interaction/action/component/list-focus.js.map +0 -1
  3206. package/lib/interaction/action/component/list-highlight-util.d.ts +0 -7
  3207. package/lib/interaction/action/component/list-highlight-util.js +0 -24
  3208. package/lib/interaction/action/component/list-highlight-util.js.map +0 -1
  3209. package/lib/interaction/action/component/list-highlight.d.ts +0 -20
  3210. package/lib/interaction/action/component/list-highlight.js +0 -99
  3211. package/lib/interaction/action/component/list-highlight.js.map +0 -1
  3212. package/lib/interaction/action/component/list-radio.d.ts +0 -24
  3213. package/lib/interaction/action/component/list-radio.js +0 -118
  3214. package/lib/interaction/action/component/list-radio.js.map +0 -1
  3215. package/lib/interaction/action/component/list-selected.d.ts +0 -10
  3216. package/lib/interaction/action/component/list-selected.js +0 -22
  3217. package/lib/interaction/action/component/list-selected.js.map +0 -1
  3218. package/lib/interaction/action/component/list-state.d.ts +0 -46
  3219. package/lib/interaction/action/component/list-state.js +0 -169
  3220. package/lib/interaction/action/component/list-state.js.map +0 -1
  3221. package/lib/interaction/action/component/list-unchecked.d.ts +0 -13
  3222. package/lib/interaction/action/component/list-unchecked.js +0 -25
  3223. package/lib/interaction/action/component/list-unchecked.js.map +0 -1
  3224. package/lib/interaction/action/component/tooltip/ellipsis-text.d.ts +0 -25
  3225. package/lib/interaction/action/component/tooltip/ellipsis-text.js +0 -95
  3226. package/lib/interaction/action/component/tooltip/ellipsis-text.js.map +0 -1
  3227. package/lib/interaction/action/component/tooltip/geometry.d.ts +0 -24
  3228. package/lib/interaction/action/component/tooltip/geometry.js +0 -73
  3229. package/lib/interaction/action/component/tooltip/geometry.js.map +0 -1
  3230. package/lib/interaction/action/component/tooltip/sibling.d.ts +0 -21
  3231. package/lib/interaction/action/component/tooltip/sibling.js +0 -41
  3232. package/lib/interaction/action/component/tooltip/sibling.js.map +0 -1
  3233. package/lib/interaction/action/cursor.d.ts +0 -77
  3234. package/lib/interaction/action/cursor.js +0 -127
  3235. package/lib/interaction/action/cursor.js.map +0 -1
  3236. package/lib/interaction/action/data/filter.d.ts +0 -13
  3237. package/lib/interaction/action/data/filter.js +0 -68
  3238. package/lib/interaction/action/data/filter.js.map +0 -1
  3239. package/lib/interaction/action/data/range-filter.d.ts +0 -56
  3240. package/lib/interaction/action/data/range-filter.js +0 -166
  3241. package/lib/interaction/action/data/range-filter.js.map +0 -1
  3242. package/lib/interaction/action/data/sibling-filter.d.ts +0 -22
  3243. package/lib/interaction/action/data/sibling-filter.js +0 -41
  3244. package/lib/interaction/action/data/sibling-filter.js.map +0 -1
  3245. package/lib/interaction/action/element/active.d.ts +0 -14
  3246. package/lib/interaction/action/element/active.js +0 -26
  3247. package/lib/interaction/action/element/active.js.map +0 -1
  3248. package/lib/interaction/action/element/filter.d.ts +0 -20
  3249. package/lib/interaction/action/element/filter.js +0 -91
  3250. package/lib/interaction/action/element/filter.js.map +0 -1
  3251. package/lib/interaction/action/element/highlight-by-color.d.ts +0 -10
  3252. package/lib/interaction/action/element/highlight-by-color.js +0 -32
  3253. package/lib/interaction/action/element/highlight-by-color.js.map +0 -1
  3254. package/lib/interaction/action/element/highlight-by-x.d.ts +0 -15
  3255. package/lib/interaction/action/element/highlight-by-x.js +0 -53
  3256. package/lib/interaction/action/element/highlight-by-x.js.map +0 -1
  3257. package/lib/interaction/action/element/highlight-util.d.ts +0 -18
  3258. package/lib/interaction/action/element/highlight-util.js +0 -50
  3259. package/lib/interaction/action/element/highlight-util.js.map +0 -1
  3260. package/lib/interaction/action/element/highlight.d.ts +0 -21
  3261. package/lib/interaction/action/element/highlight.js +0 -96
  3262. package/lib/interaction/action/element/highlight.js.map +0 -1
  3263. package/lib/interaction/action/element/link-by-color.d.ts +0 -51
  3264. package/lib/interaction/action/element/link-by-color.js +0 -158
  3265. package/lib/interaction/action/element/link-by-color.js.map +0 -1
  3266. package/lib/interaction/action/element/range-active.d.ts +0 -13
  3267. package/lib/interaction/action/element/range-active.js +0 -25
  3268. package/lib/interaction/action/element/range-active.js.map +0 -1
  3269. package/lib/interaction/action/element/range-highlight.d.ts +0 -27
  3270. package/lib/interaction/action/element/range-highlight.js +0 -57
  3271. package/lib/interaction/action/element/range-highlight.js.map +0 -1
  3272. package/lib/interaction/action/element/range-selected.d.ts +0 -13
  3273. package/lib/interaction/action/element/range-selected.js +0 -25
  3274. package/lib/interaction/action/element/range-selected.js.map +0 -1
  3275. package/lib/interaction/action/element/range-state.d.ts +0 -38
  3276. package/lib/interaction/action/element/range-state.js +0 -166
  3277. package/lib/interaction/action/element/range-state.js.map +0 -1
  3278. package/lib/interaction/action/element/selected.d.ts +0 -14
  3279. package/lib/interaction/action/element/selected.js +0 -26
  3280. package/lib/interaction/action/element/selected.js.map +0 -1
  3281. package/lib/interaction/action/element/sibling-filter.d.ts +0 -19
  3282. package/lib/interaction/action/element/sibling-filter.js +0 -95
  3283. package/lib/interaction/action/element/sibling-filter.js.map +0 -1
  3284. package/lib/interaction/action/element/single-active.d.ts +0 -13
  3285. package/lib/interaction/action/element/single-active.js +0 -25
  3286. package/lib/interaction/action/element/single-active.js.map +0 -1
  3287. package/lib/interaction/action/element/single-highlight.d.ts +0 -16
  3288. package/lib/interaction/action/element/single-highlight.js +0 -37
  3289. package/lib/interaction/action/element/single-highlight.js.map +0 -1
  3290. package/lib/interaction/action/element/single-selected.d.ts +0 -13
  3291. package/lib/interaction/action/element/single-selected.js +0 -25
  3292. package/lib/interaction/action/element/single-selected.js.map +0 -1
  3293. package/lib/interaction/action/element/single-state.d.ts +0 -18
  3294. package/lib/interaction/action/element/single-state.js +0 -55
  3295. package/lib/interaction/action/element/single-state.js.map +0 -1
  3296. package/lib/interaction/action/element/state-base.d.ts +0 -39
  3297. package/lib/interaction/action/element/state-base.js +0 -61
  3298. package/lib/interaction/action/element/state-base.js.map +0 -1
  3299. package/lib/interaction/action/element/state.d.ts +0 -28
  3300. package/lib/interaction/action/element/state.js +0 -101
  3301. package/lib/interaction/action/element/state.js.map +0 -1
  3302. package/lib/interaction/action/mask/base.d.ts +0 -62
  3303. package/lib/interaction/action/mask/base.js +0 -171
  3304. package/lib/interaction/action/mask/base.js.map +0 -1
  3305. package/lib/interaction/action/mask/circle.d.ts +0 -14
  3306. package/lib/interaction/action/mask/circle.js +0 -39
  3307. package/lib/interaction/action/mask/circle.js.map +0 -1
  3308. package/lib/interaction/action/mask/dim-rect.d.ts +0 -11
  3309. package/lib/interaction/action/mask/dim-rect.js +0 -64
  3310. package/lib/interaction/action/mask/dim-rect.js.map +0 -1
  3311. package/lib/interaction/action/mask/path.d.ts +0 -16
  3312. package/lib/interaction/action/mask/path.js +0 -46
  3313. package/lib/interaction/action/mask/path.js.map +0 -1
  3314. package/lib/interaction/action/mask/rect.d.ts +0 -17
  3315. package/lib/interaction/action/mask/rect.js +0 -41
  3316. package/lib/interaction/action/mask/rect.js.map +0 -1
  3317. package/lib/interaction/action/mask/smooth-path.d.ts +0 -9
  3318. package/lib/interaction/action/mask/smooth-path.js +0 -23
  3319. package/lib/interaction/action/mask/smooth-path.js.map +0 -1
  3320. package/lib/interaction/action/register.d.ts +0 -36
  3321. package/lib/interaction/action/register.js +0 -69
  3322. package/lib/interaction/action/register.js.map +0 -1
  3323. package/lib/interaction/action/util.d.ts +0 -140
  3324. package/lib/interaction/action/util.js +0 -387
  3325. package/lib/interaction/action/util.js.map +0 -1
  3326. package/lib/interaction/action/view/button.d.ts +0 -25
  3327. package/lib/interaction/action/view/button.js +0 -118
  3328. package/lib/interaction/action/view/button.js.map +0 -1
  3329. package/lib/interaction/action/view/drag.d.ts +0 -24
  3330. package/lib/interaction/action/view/drag.js +0 -75
  3331. package/lib/interaction/action/view/drag.js.map +0 -1
  3332. package/lib/interaction/action/view/mousewheel-scroll.d.ts +0 -5
  3333. package/lib/interaction/action/view/mousewheel-scroll.js +0 -37
  3334. package/lib/interaction/action/view/mousewheel-scroll.js.map +0 -1
  3335. package/lib/interaction/action/view/move.d.ts +0 -28
  3336. package/lib/interaction/action/view/move.js +0 -82
  3337. package/lib/interaction/action/view/move.js.map +0 -1
  3338. package/lib/interaction/action/view/scale-transform.d.ts +0 -18
  3339. package/lib/interaction/action/view/scale-transform.js +0 -53
  3340. package/lib/interaction/action/view/scale-transform.js.map +0 -1
  3341. package/lib/interaction/action/view/scale-translate.d.ts +0 -30
  3342. package/lib/interaction/action/view/scale-translate.js +0 -114
  3343. package/lib/interaction/action/view/scale-translate.js.map +0 -1
  3344. package/lib/interaction/action/view/scale-zoom.d.ts +0 -20
  3345. package/lib/interaction/action/view/scale-zoom.js +0 -85
  3346. package/lib/interaction/action/view/scale-zoom.js.map +0 -1
  3347. package/lib/interaction/context.d.ts +0 -65
  3348. package/lib/interaction/context.js +0 -144
  3349. package/lib/interaction/context.js.map +0 -1
  3350. package/lib/interaction/grammar-interaction.d.ts +0 -158
  3351. package/lib/interaction/grammar-interaction.js +0 -289
  3352. package/lib/interaction/grammar-interaction.js.map +0 -1
  3353. package/lib/interaction/interaction.d.ts +0 -29
  3354. package/lib/interaction/interaction.js +0 -34
  3355. package/lib/interaction/interaction.js.map +0 -1
  3356. package/lib/interface.d.ts +0 -3686
  3357. package/lib/interface.js +0 -3
  3358. package/lib/interface.js.map +0 -1
  3359. package/lib/theme/style-sheet/dark.d.ts +0 -545
  3360. package/lib/theme/style-sheet/dark.js +0 -504
  3361. package/lib/theme/style-sheet/dark.js.map +0 -1
  3362. package/lib/theme/style-sheet/light.d.ts +0 -541
  3363. package/lib/theme/style-sheet/light.js +0 -500
  3364. package/lib/theme/style-sheet/light.js.map +0 -1
  3365. package/lib/theme/util/create-by-style-sheet.d.ts +0 -6
  3366. package/lib/theme/util/create-by-style-sheet.js +0 -1429
  3367. package/lib/theme/util/create-by-style-sheet.js.map +0 -1
  3368. package/lib/theme/util/create-theme.d.ts +0 -6
  3369. package/lib/theme/util/create-theme.js +0 -16
  3370. package/lib/theme/util/create-theme.js.map +0 -1
  3371. package/lib/theme/util/index.d.ts +0 -1
  3372. package/lib/theme/util/index.js +0 -6
  3373. package/lib/theme/util/index.js.map +0 -1
  3374. package/lib/util/annotation.d.ts +0 -7
  3375. package/lib/util/annotation.js +0 -43
  3376. package/lib/util/annotation.js.map +0 -1
  3377. package/lib/util/attr.d.ts +0 -10
  3378. package/lib/util/attr.js +0 -29
  3379. package/lib/util/attr.js.map +0 -1
  3380. package/lib/util/axis.d.ts +0 -100
  3381. package/lib/util/axis.js +0 -251
  3382. package/lib/util/axis.js.map +0 -1
  3383. package/lib/util/bbox.d.ts +0 -105
  3384. package/lib/util/bbox.js +0 -288
  3385. package/lib/util/bbox.js.map +0 -1
  3386. package/lib/util/collision-detect.d.ts +0 -20
  3387. package/lib/util/collision-detect.js +0 -134
  3388. package/lib/util/collision-detect.js.map +0 -1
  3389. package/lib/util/color.d.ts +0 -1
  3390. package/lib/util/color.js +0 -23
  3391. package/lib/util/color.js.map +0 -1
  3392. package/lib/util/context.d.ts +0 -4
  3393. package/lib/util/context.js +0 -15
  3394. package/lib/util/context.js.map +0 -1
  3395. package/lib/util/coordinate.d.ts +0 -86
  3396. package/lib/util/coordinate.js +0 -157
  3397. package/lib/util/coordinate.js.map +0 -1
  3398. package/lib/util/direction.d.ts +0 -19
  3399. package/lib/util/direction.js +0 -125
  3400. package/lib/util/direction.js.map +0 -1
  3401. package/lib/util/dom.d.ts +0 -19
  3402. package/lib/util/dom.js +0 -68
  3403. package/lib/util/dom.js.map +0 -1
  3404. package/lib/util/event.d.ts +0 -8
  3405. package/lib/util/event.js +0 -18
  3406. package/lib/util/event.js.map +0 -1
  3407. package/lib/util/facet.d.ts +0 -16
  3408. package/lib/util/facet.js +0 -48
  3409. package/lib/util/facet.js.map +0 -1
  3410. package/lib/util/graphics.d.ts +0 -58
  3411. package/lib/util/graphics.js +0 -212
  3412. package/lib/util/graphics.js.map +0 -1
  3413. package/lib/util/grid.d.ts +0 -36
  3414. package/lib/util/grid.js +0 -125
  3415. package/lib/util/grid.js.map +0 -1
  3416. package/lib/util/helper.d.ts +0 -34
  3417. package/lib/util/helper.js +0 -90
  3418. package/lib/util/helper.js.map +0 -1
  3419. package/lib/util/legend.d.ts +0 -45
  3420. package/lib/util/legend.js +0 -152
  3421. package/lib/util/legend.js.map +0 -1
  3422. package/lib/util/marker.d.ts +0 -10
  3423. package/lib/util/marker.js +0 -61
  3424. package/lib/util/marker.js.map +0 -1
  3425. package/lib/util/padding.d.ts +0 -14
  3426. package/lib/util/padding.js +0 -45
  3427. package/lib/util/padding.js.map +0 -1
  3428. package/lib/util/scale.d.ts +0 -42
  3429. package/lib/util/scale.js +0 -138
  3430. package/lib/util/scale.js.map +0 -1
  3431. package/lib/util/stat.d.ts +0 -10
  3432. package/lib/util/stat.js +0 -41
  3433. package/lib/util/stat.js.map +0 -1
  3434. package/lib/util/text.d.ts +0 -23
  3435. package/lib/util/text.js +0 -88
  3436. package/lib/util/text.js.map +0 -1
  3437. package/lib/util/tooltip.d.ts +0 -26
  3438. package/lib/util/tooltip.js +0 -476
  3439. package/lib/util/tooltip.js.map +0 -1
  3440. package/lib/util/transform.d.ts +0 -33
  3441. package/lib/util/transform.js +0 -69
  3442. package/lib/util/transform.js.map +0 -1
  3443. package/lib/util/types.d.ts +0 -6
  3444. package/lib/util/types.js.map +0 -1
  3445. package/src/animate/animation/fade.ts +0 -52
  3446. package/src/animate/animation/grow-in.ts +0 -44
  3447. package/src/animate/animation/index.ts +0 -29
  3448. package/src/animate/animation/path-in.ts +0 -24
  3449. package/src/animate/animation/position-update.ts +0 -33
  3450. package/src/animate/animation/scale-in.ts +0 -75
  3451. package/src/animate/animation/sector-path-update.ts +0 -159
  3452. package/src/animate/animation/util.ts +0 -104
  3453. package/src/animate/animation/wave-in.ts +0 -37
  3454. package/src/animate/animation/zoom.ts +0 -78
  3455. package/src/animate/index.ts +0 -268
  3456. package/src/animate/interface.ts +0 -19
  3457. package/src/api.ts +0 -3
  3458. package/src/base.ts +0 -61
  3459. package/src/chart/chart.ts +0 -218
  3460. package/src/chart/controller/annotation.ts +0 -763
  3461. package/src/chart/controller/axis.ts +0 -699
  3462. package/src/chart/controller/base.ts +0 -105
  3463. package/src/chart/controller/coordinate.ts +0 -177
  3464. package/src/chart/controller/gesture.ts +0 -293
  3465. package/src/chart/controller/index.ts +0 -39
  3466. package/src/chart/controller/legend.ts +0 -566
  3467. package/src/chart/controller/scrollbar.ts +0 -392
  3468. package/src/chart/controller/slider.ts +0 -360
  3469. package/src/chart/controller/tooltip.ts +0 -751
  3470. package/src/chart/event.ts +0 -86
  3471. package/src/chart/index.ts +0 -5
  3472. package/src/chart/layout/auto.ts +0 -76
  3473. package/src/chart/layout/constraint/bounds.ts +0 -51
  3474. package/src/chart/layout/constraint/constraint.ts +0 -97
  3475. package/src/chart/layout/constraint/gauss.ts +0 -71
  3476. package/src/chart/layout/constraint/index.ts +0 -30
  3477. package/src/chart/layout/constraint/solver.ts +0 -97
  3478. package/src/chart/layout/constraint/types.ts +0 -29
  3479. package/src/chart/layout/constraint/variable.ts +0 -33
  3480. package/src/chart/layout/index.ts +0 -33
  3481. package/src/chart/layout/padding-cal.ts +0 -123
  3482. package/src/chart/util/scale-pool.ts +0 -250
  3483. package/src/chart/util/sync-view-padding.ts +0 -17
  3484. package/src/chart/view.ts +0 -2112
  3485. package/src/component/labels.ts +0 -331
  3486. package/src/component/update-label.ts +0 -69
  3487. package/src/constant.ts +0 -143
  3488. package/src/core.ts +0 -81
  3489. package/src/dependents.ts +0 -99
  3490. package/src/engine/index.ts +0 -27
  3491. package/src/facet/circle.ts +0 -135
  3492. package/src/facet/facet.ts +0 -373
  3493. package/src/facet/index.ts +0 -25
  3494. package/src/facet/list.ts +0 -167
  3495. package/src/facet/matrix.ts +0 -149
  3496. package/src/facet/mirror.ts +0 -167
  3497. package/src/facet/rect.ts +0 -177
  3498. package/src/facet/tree.ts +0 -317
  3499. package/src/geometry/area.ts +0 -76
  3500. package/src/geometry/base.ts +0 -2145
  3501. package/src/geometry/edge.ts +0 -16
  3502. package/src/geometry/element/index.ts +0 -519
  3503. package/src/geometry/heatmap.ts +0 -223
  3504. package/src/geometry/interval.ts +0 -109
  3505. package/src/geometry/label/base.ts +0 -458
  3506. package/src/geometry/label/index.ts +0 -59
  3507. package/src/geometry/label/interface.ts +0 -65
  3508. package/src/geometry/label/interval.ts +0 -160
  3509. package/src/geometry/label/layout/adjust-color.ts +0 -40
  3510. package/src/geometry/label/layout/hide-overlap.ts +0 -85
  3511. package/src/geometry/label/layout/interval/adjust-position.ts +0 -72
  3512. package/src/geometry/label/layout/interval/hide-overlap.ts +0 -86
  3513. package/src/geometry/label/layout/limit-in-canvas.ts +0 -48
  3514. package/src/geometry/label/layout/limit-in-plot.ts +0 -99
  3515. package/src/geometry/label/layout/limit-in-shape.ts +0 -22
  3516. package/src/geometry/label/layout/overlap.ts +0 -251
  3517. package/src/geometry/label/layout/path/adjust-position.ts +0 -129
  3518. package/src/geometry/label/layout/pie/distribute.ts +0 -203
  3519. package/src/geometry/label/layout/pie/outer.ts +0 -247
  3520. package/src/geometry/label/layout/pie/spider.ts +0 -201
  3521. package/src/geometry/label/layout/pie/util.ts +0 -85
  3522. package/src/geometry/label/layout/point/adjust-position.ts +0 -129
  3523. package/src/geometry/label/layout/worker/hide-overlap.ts +0 -192
  3524. package/src/geometry/label/pie.ts +0 -97
  3525. package/src/geometry/label/polar.ts +0 -225
  3526. package/src/geometry/label/util/createWorker.ts +0 -15
  3527. package/src/geometry/label/util/index.ts +0 -81
  3528. package/src/geometry/line.ts +0 -18
  3529. package/src/geometry/path.ts +0 -140
  3530. package/src/geometry/point.ts +0 -28
  3531. package/src/geometry/polygon.ts +0 -55
  3532. package/src/geometry/schema.ts +0 -43
  3533. package/src/geometry/shape/area/index.ts +0 -50
  3534. package/src/geometry/shape/area/line.ts +0 -33
  3535. package/src/geometry/shape/area/smooth-line.ts +0 -33
  3536. package/src/geometry/shape/area/smooth.ts +0 -35
  3537. package/src/geometry/shape/area/util.ts +0 -111
  3538. package/src/geometry/shape/base.ts +0 -191
  3539. package/src/geometry/shape/constant.ts +0 -4
  3540. package/src/geometry/shape/edge/arc.ts +0 -104
  3541. package/src/geometry/shape/edge/index.ts +0 -38
  3542. package/src/geometry/shape/edge/smooth.ts +0 -37
  3543. package/src/geometry/shape/edge/util.ts +0 -36
  3544. package/src/geometry/shape/edge/vhv.ts +0 -51
  3545. package/src/geometry/shape/interval/funnel.ts +0 -36
  3546. package/src/geometry/shape/interval/hollow-rect.ts +0 -62
  3547. package/src/geometry/shape/interval/index.ts +0 -79
  3548. package/src/geometry/shape/interval/line.ts +0 -63
  3549. package/src/geometry/shape/interval/pyramid.ts +0 -37
  3550. package/src/geometry/shape/interval/tick.ts +0 -86
  3551. package/src/geometry/shape/interval/util.ts +0 -348
  3552. package/src/geometry/shape/line/index.ts +0 -141
  3553. package/src/geometry/shape/line/step.ts +0 -97
  3554. package/src/geometry/shape/line/util.ts +0 -85
  3555. package/src/geometry/shape/point/hollow.ts +0 -27
  3556. package/src/geometry/shape/point/image.ts +0 -51
  3557. package/src/geometry/shape/point/index.ts +0 -37
  3558. package/src/geometry/shape/point/solid.ts +0 -26
  3559. package/src/geometry/shape/point/util.ts +0 -54
  3560. package/src/geometry/shape/polygon/index.ts +0 -78
  3561. package/src/geometry/shape/polygon/square.ts +0 -52
  3562. package/src/geometry/shape/schema/box.ts +0 -154
  3563. package/src/geometry/shape/schema/candle.ts +0 -90
  3564. package/src/geometry/shape/schema/index.ts +0 -7
  3565. package/src/geometry/shape/util/get-path-points.ts +0 -136
  3566. package/src/geometry/shape/util/get-style.ts +0 -56
  3567. package/src/geometry/shape/util/path.ts +0 -348
  3568. package/src/geometry/shape/util/split-points.ts +0 -26
  3569. package/src/geometry/shape/violin/hollow.ts +0 -59
  3570. package/src/geometry/shape/violin/index.ts +0 -69
  3571. package/src/geometry/shape/violin/smooth.ts +0 -32
  3572. package/src/geometry/util/diff.ts +0 -29
  3573. package/src/geometry/util/get-shape-type.ts +0 -17
  3574. package/src/geometry/util/group-data.ts +0 -30
  3575. package/src/geometry/util/is-model-change.ts +0 -18
  3576. package/src/geometry/util/parse-fields.ts +0 -10
  3577. package/src/geometry/util/shape-size.ts +0 -128
  3578. package/src/geometry/violin.ts +0 -64
  3579. package/src/interaction/action/active-region.ts +0 -216
  3580. package/src/interaction/action/base.ts +0 -49
  3581. package/src/interaction/action/callback.ts +0 -25
  3582. package/src/interaction/action/component/axis/axis-description.ts +0 -84
  3583. package/src/interaction/action/component/list-active.ts +0 -18
  3584. package/src/interaction/action/component/list-checked.ts +0 -84
  3585. package/src/interaction/action/component/list-focus.ts +0 -36
  3586. package/src/interaction/action/component/list-highlight-util.ts +0 -22
  3587. package/src/interaction/action/component/list-highlight.ts +0 -93
  3588. package/src/interaction/action/component/list-radio.ts +0 -128
  3589. package/src/interaction/action/component/list-selected.ts +0 -14
  3590. package/src/interaction/action/component/list-state.ts +0 -175
  3591. package/src/interaction/action/component/list-unchecked.ts +0 -17
  3592. package/src/interaction/action/component/tooltip/ellipsis-text.ts +0 -102
  3593. package/src/interaction/action/component/tooltip/geometry.ts +0 -77
  3594. package/src/interaction/action/component/tooltip/sibling.ts +0 -36
  3595. package/src/interaction/action/cursor.ts +0 -129
  3596. package/src/interaction/action/data/filter.ts +0 -59
  3597. package/src/interaction/action/data/range-filter.ts +0 -173
  3598. package/src/interaction/action/data/sibling-filter.ts +0 -38
  3599. package/src/interaction/action/element/active.ts +0 -18
  3600. package/src/interaction/action/element/filter.ts +0 -88
  3601. package/src/interaction/action/element/highlight-by-color.ts +0 -26
  3602. package/src/interaction/action/element/highlight-by-x.ts +0 -48
  3603. package/src/interaction/action/element/highlight-util.ts +0 -50
  3604. package/src/interaction/action/element/highlight.ts +0 -93
  3605. package/src/interaction/action/element/link-by-color.ts +0 -161
  3606. package/src/interaction/action/element/range-active.ts +0 -17
  3607. package/src/interaction/action/element/range-highlight.ts +0 -54
  3608. package/src/interaction/action/element/range-selected.ts +0 -17
  3609. package/src/interaction/action/element/range-state.ts +0 -162
  3610. package/src/interaction/action/element/selected.ts +0 -18
  3611. package/src/interaction/action/element/sibling-filter.ts +0 -85
  3612. package/src/interaction/action/element/single-active.ts +0 -17
  3613. package/src/interaction/action/element/single-highlight.ts +0 -33
  3614. package/src/interaction/action/element/single-selected.ts +0 -17
  3615. package/src/interaction/action/element/single-state.ts +0 -49
  3616. package/src/interaction/action/element/state-base.ts +0 -63
  3617. package/src/interaction/action/element/state.ts +0 -110
  3618. package/src/interaction/action/mask/base.ts +0 -182
  3619. package/src/interaction/action/mask/circle.ts +0 -31
  3620. package/src/interaction/action/mask/dim-rect.ts +0 -57
  3621. package/src/interaction/action/mask/path.ts +0 -40
  3622. package/src/interaction/action/mask/rect.ts +0 -34
  3623. package/src/interaction/action/mask/smooth-path.ts +0 -16
  3624. package/src/interaction/action/register.ts +0 -76
  3625. package/src/interaction/action/util.ts +0 -386
  3626. package/src/interaction/action/view/button.ts +0 -125
  3627. package/src/interaction/action/view/drag.ts +0 -73
  3628. package/src/interaction/action/view/mousewheel-scroll.ts +0 -38
  3629. package/src/interaction/action/view/move.ts +0 -79
  3630. package/src/interaction/action/view/scale-transform.ts +0 -49
  3631. package/src/interaction/action/view/scale-translate.ts +0 -111
  3632. package/src/interaction/action/view/scale-zoom.ts +0 -80
  3633. package/src/interaction/context.ts +0 -150
  3634. package/src/interaction/grammar-interaction.ts +0 -417
  3635. package/src/interaction/interaction.ts +0 -43
  3636. package/src/interface.ts +0 -3956
  3637. package/src/theme/style-sheet/dark.ts +0 -564
  3638. package/src/theme/style-sheet/light.ts +0 -560
  3639. package/src/theme/util/create-by-style-sheet.ts +0 -1461
  3640. package/src/theme/util/create-theme.ts +0 -17
  3641. package/src/theme/util/index.ts +0 -1
  3642. package/src/util/annotation.ts +0 -42
  3643. package/src/util/attr.ts +0 -26
  3644. package/src/util/axis.ts +0 -261
  3645. package/src/util/bbox.ts +0 -271
  3646. package/src/util/collision-detect.ts +0 -163
  3647. package/src/util/color.ts +0 -21
  3648. package/src/util/context.ts +0 -12
  3649. package/src/util/coordinate.ts +0 -160
  3650. package/src/util/direction.ts +0 -138
  3651. package/src/util/dom.ts +0 -73
  3652. package/src/util/event.ts +0 -14
  3653. package/src/util/facet.ts +0 -48
  3654. package/src/util/graphics.ts +0 -236
  3655. package/src/util/grid.ts +0 -135
  3656. package/src/util/helper.ts +0 -74
  3657. package/src/util/legend.ts +0 -174
  3658. package/src/util/marker.ts +0 -57
  3659. package/src/util/padding.ts +0 -42
  3660. package/src/util/scale.ts +0 -146
  3661. package/src/util/stat.ts +0 -45
  3662. package/src/util/text.ts +0 -106
  3663. package/src/util/tooltip.ts +0 -482
  3664. package/src/util/transform.ts +0 -69
  3665. package/src/util/types.ts +0 -4
package/dist/g2.min.js CHANGED
@@ -1,16 +1,10 @@
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=232)}([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.__classPrivateFieldIn=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 l=t.length-1;l>=0;l--)(a=t[l])&&(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{l(r.next(t))}catch(t){a(t)}}function s(t){try{l(r.throw(t))}catch(t){a(t)}}function l(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(o,s)}l((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);var i=Object.getOwnPropertyDescriptor(e,n);i&&!("get"in i?!e.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,r,i)}: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||l(t,e)}))})}function l(t,e){try{(n=i[t](e)).value instanceof s?Promise.resolve(n.value.v).then(u,c):f(a[0][2],n)}catch(t){f(a[0][3],t)}var n}function u(t){l("next",t)}function c(t){l("throw",t)}function f(t,e){t(e),a.shift(),a.length&&l(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 l=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 l(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},e.__classPrivateFieldIn=function(t,e){if(null===e||"object"!==r(e)&&"function"!=typeof e)throw new TypeError("Cannot use 'in' operator on non-object");return"function"==typeof t?e===t:t.has(e)}},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(234);Object.defineProperty(e,"difference",{enumerable:!0,get:function(){return r(a).default}});var o=n(235);Object.defineProperty(e,"find",{enumerable:!0,get:function(){return r(o).default}});var s=n(236);Object.defineProperty(e,"findIndex",{enumerable:!0,get:function(){return r(s).default}});var l=n(237);Object.defineProperty(e,"firstValue",{enumerable:!0,get:function(){return r(l).default}});var u=n(238);Object.defineProperty(e,"flatten",{enumerable:!0,get:function(){return r(u).default}});var c=n(239);Object.defineProperty(e,"flattenDeep",{enumerable:!0,get:function(){return r(c).default}});var f=n(240);Object.defineProperty(e,"getRange",{enumerable:!0,get:function(){return r(f).default}});var h=n(241);Object.defineProperty(e,"pull",{enumerable:!0,get:function(){return r(h).default}});var p=n(139);Object.defineProperty(e,"pullAt",{enumerable:!0,get:function(){return r(p).default}});var d=n(140);Object.defineProperty(e,"reduce",{enumerable:!0,get:function(){return r(d).default}});var g=n(242);Object.defineProperty(e,"remove",{enumerable:!0,get:function(){return r(g).default}});var y=n(243);Object.defineProperty(e,"sortBy",{enumerable:!0,get:function(){return r(y).default}});var v=n(244);Object.defineProperty(e,"union",{enumerable:!0,get:function(){return r(v).default}});var m=n(141);Object.defineProperty(e,"uniq",{enumerable:!0,get:function(){return r(m).default}});var _=n(245);Object.defineProperty(e,"valuesOfKey",{enumerable:!0,get:function(){return r(_).default}});var x=n(246);Object.defineProperty(e,"head",{enumerable:!0,get:function(){return r(x).default}});var b=n(247);Object.defineProperty(e,"last",{enumerable:!0,get:function(){return r(b).default}});var M=n(248);Object.defineProperty(e,"startsWith",{enumerable:!0,get:function(){return r(M).default}});var C=n(249);Object.defineProperty(e,"endsWith",{enumerable:!0,get:function(){return r(C).default}});var P=n(134);Object.defineProperty(e,"filter",{enumerable:!0,get:function(){return r(P).default}});var S=n(250);Object.defineProperty(e,"every",{enumerable:!0,get:function(){return r(S).default}});var O=n(251);Object.defineProperty(e,"some",{enumerable:!0,get:function(){return r(O).default}});var w=n(252);Object.defineProperty(e,"group",{enumerable:!0,get:function(){return r(w).default}});var A=n(143);Object.defineProperty(e,"groupBy",{enumerable:!0,get:function(){return r(A).default}});var T=n(142);Object.defineProperty(e,"groupToMap",{enumerable:!0,get:function(){return r(T).default}});var E=n(253);Object.defineProperty(e,"getWrapBehavior",{enumerable:!0,get:function(){return r(E).default}});var I=n(254);Object.defineProperty(e,"wrapBehavior",{enumerable:!0,get:function(){return r(I).default}});var L=n(255);Object.defineProperty(e,"number2color",{enumerable:!0,get:function(){return r(L).default}});var D=n(256);Object.defineProperty(e,"parseRadius",{enumerable:!0,get:function(){return r(D).default}});var B=n(257);Object.defineProperty(e,"clamp",{enumerable:!0,get:function(){return r(B).default}});var j=n(258);Object.defineProperty(e,"fixedBase",{enumerable:!0,get:function(){return r(j).default}});var R=n(259);Object.defineProperty(e,"isDecimal",{enumerable:!0,get:function(){return r(R).default}});var k=n(260);Object.defineProperty(e,"isEven",{enumerable:!0,get:function(){return r(k).default}});var F=n(261);Object.defineProperty(e,"isInteger",{enumerable:!0,get:function(){return r(F).default}});var N=n(262);Object.defineProperty(e,"isNegative",{enumerable:!0,get:function(){return r(N).default}});var G=n(263);Object.defineProperty(e,"isNumberEqual",{enumerable:!0,get:function(){return r(G).default}});var Y=n(264);Object.defineProperty(e,"isOdd",{enumerable:!0,get:function(){return r(Y).default}});var V=n(265);Object.defineProperty(e,"isPositive",{enumerable:!0,get:function(){return r(V).default}});var H=n(137);Object.defineProperty(e,"max",{enumerable:!0,get:function(){return r(H).default}});var z=n(266);Object.defineProperty(e,"maxBy",{enumerable:!0,get:function(){return r(z).default}});var X=n(138);Object.defineProperty(e,"min",{enumerable:!0,get:function(){return r(X).default}});var W=n(267);Object.defineProperty(e,"minBy",{enumerable:!0,get:function(){return r(W).default}});var q=n(268);Object.defineProperty(e,"mod",{enumerable:!0,get:function(){return r(q).default}});var U=n(269);Object.defineProperty(e,"toDegree",{enumerable:!0,get:function(){return r(U).default}});var Z=n(270);Object.defineProperty(e,"toInteger",{enumerable:!0,get:function(){return r(Z).default}});var Q=n(271);Object.defineProperty(e,"toRadian",{enumerable:!0,get:function(){return r(Q).default}});var K=n(272);Object.defineProperty(e,"forIn",{enumerable:!0,get:function(){return r(K).default}});var $=n(144);Object.defineProperty(e,"has",{enumerable:!0,get:function(){return r($).default}});var J=n(273);Object.defineProperty(e,"hasKey",{enumerable:!0,get:function(){return r(J).default}});var tt=n(274);Object.defineProperty(e,"hasValue",{enumerable:!0,get:function(){return r(tt).default}});var et=n(136);Object.defineProperty(e,"keys",{enumerable:!0,get:function(){return r(et).default}});var nt=n(135);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(275);Object.defineProperty(e,"lowerCase",{enumerable:!0,get:function(){return r(it).default}});var at=n(276);Object.defineProperty(e,"lowerFirst",{enumerable:!0,get:function(){return r(at).default}});var ot=n(277);Object.defineProperty(e,"substitute",{enumerable:!0,get:function(){return r(ot).default}});var st=n(278);Object.defineProperty(e,"upperCase",{enumerable:!0,get:function(){return r(st).default}});var lt=n(279);Object.defineProperty(e,"upperFirst",{enumerable:!0,get:function(){return r(lt).default}});var ut=n(145);Object.defineProperty(e,"getType",{enumerable:!0,get:function(){return r(ut).default}});var ct=n(280);Object.defineProperty(e,"isArguments",{enumerable:!0,get:function(){return r(ct).default}});var ft=n(7);Object.defineProperty(e,"isArray",{enumerable:!0,get:function(){return r(ft).default}});var ht=n(17);Object.defineProperty(e,"isArrayLike",{enumerable:!0,get:function(){return r(ht).default}});var pt=n(281);Object.defineProperty(e,"isBoolean",{enumerable:!0,get:function(){return r(pt).default}});var dt=n(282);Object.defineProperty(e,"isDate",{enumerable:!0,get:function(){return r(dt).default}});var gt=n(283);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(284);Object.defineProperty(e,"isFinite",{enumerable:!0,get:function(){return r(vt).default}});var mt=n(35);Object.defineProperty(e,"isNil",{enumerable:!0,get:function(){return r(mt).default}});var _t=n(285);Object.defineProperty(e,"isNull",{enumerable:!0,get:function(){return r(_t).default}});var xt=n(31);Object.defineProperty(e,"isNumber",{enumerable:!0,get:function(){return r(xt).default}});var bt=n(66);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(146);Object.defineProperty(e,"isPrototype",{enumerable:!0,get:function(){return r(Pt).default}});var St=n(286);Object.defineProperty(e,"isRegExp",{enumerable:!0,get:function(){return r(St).default}});var Ot=n(30);Object.defineProperty(e,"isString",{enumerable:!0,get:function(){return r(Ot).default}});var wt=n(24);Object.defineProperty(e,"isType",{enumerable:!0,get:function(){return r(wt).default}});var At=n(287);Object.defineProperty(e,"isUndefined",{enumerable:!0,get:function(){return r(At).default}});var Tt=n(288);Object.defineProperty(e,"isElement",{enumerable:!0,get:function(){return r(Tt).default}});var Et=n(289);Object.defineProperty(e,"requestAnimationFrame",{enumerable:!0,get:function(){return r(Et).default}});var It=n(290);Object.defineProperty(e,"clearAnimationFrame",{enumerable:!0,get:function(){return r(It).default}});var Lt=n(291);Object.defineProperty(e,"augment",{enumerable:!0,get:function(){return r(Lt).default}});var Dt=n(292);Object.defineProperty(e,"clone",{enumerable:!0,get:function(){return r(Dt).default}});var Bt=n(293);Object.defineProperty(e,"debounce",{enumerable:!0,get:function(){return r(Bt).default}});var jt=n(147);Object.defineProperty(e,"memoize",{enumerable:!0,get:function(){return r(jt).default}});var Rt=n(294);Object.defineProperty(e,"deepMix",{enumerable:!0,get:function(){return r(Rt).default}});var kt=n(45);Object.defineProperty(e,"each",{enumerable:!0,get:function(){return r(kt).default}});var Ft=n(295);Object.defineProperty(e,"extend",{enumerable:!0,get:function(){return r(Ft).default}});var Nt=n(296);Object.defineProperty(e,"indexOf",{enumerable:!0,get:function(){return r(Nt).default}});var Gt=n(297);Object.defineProperty(e,"isEmpty",{enumerable:!0,get:function(){return r(Gt).default}});var Yt=n(148);Object.defineProperty(e,"isEqual",{enumerable:!0,get:function(){return r(Yt).default}});var Vt=n(298);Object.defineProperty(e,"isEqualWith",{enumerable:!0,get:function(){return r(Vt).default}});var Ht=n(299);Object.defineProperty(e,"map",{enumerable:!0,get:function(){return r(Ht).default}});var zt=n(300);Object.defineProperty(e,"mapValues",{enumerable:!0,get:function(){return r(zt).default}});var Xt=n(87);Object.defineProperty(e,"mix",{enumerable:!0,get:function(){return r(Xt).default}}),Object.defineProperty(e,"assign",{enumerable:!0,get:function(){return r(Xt).default}});var Wt=n(301);Object.defineProperty(e,"get",{enumerable:!0,get:function(){return r(Wt).default}});var qt=n(302);Object.defineProperty(e,"set",{enumerable:!0,get:function(){return r(qt).default}});var Ut=n(303);Object.defineProperty(e,"pick",{enumerable:!0,get:function(){return r(Ut).default}});var Zt=n(304);Object.defineProperty(e,"omit",{enumerable:!0,get:function(){return r(Zt).default}});var Qt=n(305);Object.defineProperty(e,"throttle",{enumerable:!0,get:function(){return r(Qt).default}});var Kt=n(306);Object.defineProperty(e,"toArray",{enumerable:!0,get:function(){return r(Kt).default}});var $t=n(46);Object.defineProperty(e,"toString",{enumerable:!0,get:function(){return r($t).default}});var Jt=n(307);Object.defineProperty(e,"uniqueId",{enumerable:!0,get:function(){return r(Jt).default}});var te=n(308);Object.defineProperty(e,"noop",{enumerable:!0,get:function(){return r(te).default}});var ee=n(309);Object.defineProperty(e,"identity",{enumerable:!0,get:function(){return r(ee).default}});var ne=n(310);Object.defineProperty(e,"size",{enumerable:!0,get:function(){return r(ne).default}});var re=n(149);Object.defineProperty(e,"measureTextWidth",{enumerable:!0,get:function(){return r(re).default}});var ie=n(311);Object.defineProperty(e,"getEllipsisText",{enumerable:!0,get:function(){return r(ie).default}});var ae=n(312);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",t.BEFORE_RENDER_LABEL="beforerenderlabel",t.AFTER_RENDER_LABEL="afterrenderlabel"}(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(50),a=n(1),o=n(52),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)}},l={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){}},u={};e.registerShapeFactory=function(t,e){var n=(0,a.upperFirst)(t),i=r.__assign(r.__assign(r.__assign({},s),e),{geometryType:t});return u[n]=i,i},e.registerShape=function(t,e,n){var i=(0,a.upperFirst)(t),o=u[i],s=r.__assign(r.__assign({},l),n);return o[e]=s,s},e.getShapeFactory=function(t){var e=(0,a.upperFirst)(t);return u[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(52),a=n(29),o=n(50);function s(t,e){var n=t.event.target.getCanvasBBox();return n.width>=e||n.height>=e?n:null}function l(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(l(t))})),n}function u(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 f(t,e){var n=l(t),i=[];return(0,r.each)(n,(function(t){var n=t.shape.getCanvasBBox();c(e,n)&&i.push(t)})),i}function h(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=l(t),r=h(e);return n.filter((function(t){var e,n=t.shape;if("path"===n.get("type"))e=h(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?f(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 f(e,{minX:a.x,minY:a.y,maxX:o.x,maxY:o.y})},e.getElements=l,e.getElementsByField=function(t,e,n){return l(t).filter((function(t){return u(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=u,e.intersectRect=c,e.getIntersectElements=f,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";
2
- /*! *****************************************************************************
3
- Copyright (c) Microsoft Corporation.
4
-
5
- Permission to use, copy, modify, and/or distribute this software for any
6
- purpose with or without fee is hereby granted.
7
-
8
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
9
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
10
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
11
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
12
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
13
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
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.__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 l=t.length-1;l>=0;l--)(a=t[l])&&(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{l(r.next(t))}catch(t){a(t)}}function s(t){try{l(r.throw(t))}catch(t){a(t)}}function l(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(o,s)}l((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||l(t,e)}))})}function l(t,e){try{(n=i[t](e)).value instanceof s?Promise.resolve(n.value.v).then(u,c):f(a[0][2],n)}catch(t){f(a[0][3],t)}var n}function u(t){l("next",t)}function c(t){l("throw",t)}function f(t,e){t(e),a.shift(),a.length&&l(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.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,l=t.defaultStyle,u=t.color,c=t.size,f=r.__assign(r.__assign({},l),s);return u&&(e&&(s.stroke||(f.stroke=u)),n&&(s.fill||(f.fill=u))),a&&(0,i.isNil)(s[a])&&!(0,i.isNil)(c)&&(f[a]=c),f},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=n(0).__importDefault(n(24));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(0),i=n(67);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(327));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(199),s=n(33),l=n(10),u=r.__importDefault(n(106)),c=["visible","tip","delegateObject"],f=["container","group","shapesMap","isRegister","isUpdating","destroyed"],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),{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,l.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"),u=r.getElementById(s),h=t.get("name");if(u)if(t.get("isComponent")){var p=t.get("component"),d=u.get("component"),g=(0,a.pick)(p.cfg,(0,a.difference)((0,a.keys)(p.cfg),f));d.update(g),u.set("update_status","update")}else{var y=r.getReplaceAttrs(u,t);i&&o.update?r.updateAnimation(h,u,y,o.update):u.attr(y),t.isGroup()&&r.updateElements(t,u),(0,a.each)(c,(function(e){u.set(e,t.get(e))})),(0,l.updateClip)(u,t),n=u,u.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(h,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 l=s.get("name");if(r&&i.leave){var u=(0,a.mix)({callback:function(){t.removeElement(s)}},i.leave);t.removeAnimation(l,s,u)}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}(u.default);e.default=h},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 l=1/0,u=-1/0,c=1/0,f=-1/0,h=e.getChildren();h.length>0?(0,r.each)(h,(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]),h=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<l&&(l=s),h>u&&(u=h),p<c&&(c=p),d>f&&(f=d)}})):(l=0,u=0,c=0,f=0),n=i(l,c,u-l,f-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.version=e.registerEasing=e.getOffScreenContext=e.invert=e.multiplyVec2=e.isAllowCapture=e.assembleFont=e.getTextHeight=e.registerBBox=e.getBBoxMethod=e.PathUtil=e.AbstractShape=e.AbstractGroup=e.AbstractCanvas=e.Base=e.Event=void 0;var r=n(0),i=r.__importStar(n(155));e.PathUtil=i,r.__exportStar(n(320),e),r.__exportStar(n(321),e);var a=n(156);Object.defineProperty(e,"Event",{enumerable:!0,get:function(){return r.__importDefault(a).default}});var o=n(157);Object.defineProperty(e,"Base",{enumerable:!0,get:function(){return r.__importDefault(o).default}});var s=n(322);Object.defineProperty(e,"AbstractCanvas",{enumerable:!0,get:function(){return r.__importDefault(s).default}});var l=n(361);Object.defineProperty(e,"AbstractGroup",{enumerable:!0,get:function(){return r.__importDefault(l).default}});var u=n(362);Object.defineProperty(e,"AbstractShape",{enumerable:!0,get:function(){return r.__importDefault(u).default}});var c=n(363);Object.defineProperty(e,"getBBoxMethod",{enumerable:!0,get:function(){return c.getBBoxMethod}}),Object.defineProperty(e,"registerBBox",{enumerable:!0,get:function(){return c.registerBBox}});var f=n(179);Object.defineProperty(e,"getTextHeight",{enumerable:!0,get:function(){return f.getTextHeight}}),Object.defineProperty(e,"assembleFont",{enumerable:!0,get:function(){return f.assembleFont}});var h=n(39);Object.defineProperty(e,"isAllowCapture",{enumerable:!0,get:function(){return h.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(180);Object.defineProperty(e,"getOffScreenContext",{enumerable:!0,get:function(){return d.getOffScreenContext}});var g=n(174);Object.defineProperty(e,"registerEasing",{enumerable:!0,get:function(){return g.registerEasing}}),e.version="0.5.11"},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){return 1===Array.from(new Set(t)).length}function a(t){return((0,r.min)(t)+(0,r.max)(t))/2}function o(t,e,n,r){return{x:t+n*Math.cos(r),y:e+n*Math.sin(r)}}e.polarToCartesian=o,e.getSectorPath=function(t,e,n,r,i,a){void 0===a&&(a=0);var s=o(t,e,n,r),l=o(t,e,n,i),u=o(t,e,a,r),c=o(t,e,a,i);if(i-r==2*Math.PI){var f=o(t,e,n,r+Math.PI),h=o(t,e,a,r+Math.PI),p=[["M",s.x,s.y],["A",n,n,0,1,1,f.x,f.y],["A",n,n,0,1,1,l.x,l.y],["M",u.x,u.y]];return a&&(p.push(["A",a,a,0,1,0,h.x,h.y]),p.push(["A",a,a,0,1,0,c.x,c.y])),p.push(["M",s.x,s.y]),p.push(["Z"]),p}var d=i-r<=Math.PI?0:1,g=[["M",s.x,s.y],["A",n,n,0,d,1,l.x,l.y],["L",c.x,c.y]];return a&&g.push(["A",a,a,0,d,0,u.x,u.y]),g.push(["L",s.x,s.y]),g.push(["Z"]),g},e.getArcPath=function(t,e,n,i,a){var s=o(t,e,n,i),l=o(t,e,n,a);if((0,r.isNumberEqual)(a-i,2*Math.PI)){var u=o(t,e,n,i+Math.PI);return[["M",s.x,s.y],["A",n,n,0,1,1,u.x,u.y],["A",n,n,0,1,1,s.x,s.y],["A",n,n,0,1,0,u.x,u.y],["A",n,n,0,1,0,s.x,s.y],["Z"]]}var c=a-i<=Math.PI?0:1;return[["M",s.x,s.y],["A",n,n,0,c,1,l.x,l.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];if(e=e,i(t=t)||i(e))return[a(t),a(e)];for(var n,o,s=-1,l=0,u=0,c=t.length-1,f=0;++s<t.length;)n=c,c=s,f+=o=t[n]*e[c]-t[c]*e[n],l+=(t[n]+t[c])*o,u+=(e[n]+e[c])*o;return[l/(f*=3),u/f]},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.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=(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 l=t.startAngle,u=t.endAngle,c=t.getCenter(),f=t.getRadius();return{type:"path",startState:{path:(0,r.getSectorPath)(c.x,c.y,f+e,l,l)},endState:function(t){var n=(u-l)*t+l;return{path:(0,r.getSectorPath)(c.x,c.y,f+e,l,n)}},attrs:{path:(0,r.getSectorPath)(c.x,c.y,f+e,l,u)}}}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),l=Math.min(n.y,r.y);return a.BBox.fromRange(s-e,l-e,s+i+e,l+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=n(0).__importDefault(n(24));e.default=function(t){return(0,r.default)(t,"Function")}},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(12);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(188);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(423);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 l=n(103);Object.defineProperty(e,"getScale",{enumerable:!0,get:function(){return l.getScale}}),Object.defineProperty(e,"registerScale",{enumerable:!0,get:function(){return l.registerScale}}),Object.defineProperty(e,"Scale",{enumerable:!0,get:function(){return l.Scale}}),Object.defineProperty(e,"ScaleConfig",{enumerable:!0,get:function(){return l.ScaleConfig}}),Object.defineProperty(e,"Tick",{enumerable:!0,get:function(){return l.Tick}});var u=n(41);Object.defineProperty(e,"Annotation",{enumerable:!0,get:function(){return u.Annotation}}),Object.defineProperty(e,"Component",{enumerable:!0,get:function(){return u.Component}}),Object.defineProperty(e,"Crosshair",{enumerable:!0,get:function(){return u.Crosshair}}),Object.defineProperty(e,"GroupComponent",{enumerable:!0,get:function(){return u.GroupComponent}}),Object.defineProperty(e,"HtmlComponent",{enumerable:!0,get:function(){return u.HtmlComponent}}),Object.defineProperty(e,"Slider",{enumerable:!0,get:function(){return u.Slider}}),Object.defineProperty(e,"Scrollbar",{enumerable:!0,get:function(){return u.Scrollbar}});var c=n(41);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 f=u.Axis.Line,h=u.Axis.Circle;e.LineAxis=f,e.CircleAxis=h;var p=u.Grid.Line,d=u.Grid.Circle;e.LineGrid=p,e.CircleGrid=d;var g=u.Legend.Category,y=u.Legend.Continuous;e.CategoryLegend=g,e.ContinuousLegend=y;var v=u.Tooltip.Html;e.HtmlTooltip=v},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(368));e.Quad=i.default;var a=r.__importDefault(n(369));e.Cubic=a.default;var o=r.__importDefault(n(370));e.Arc=o.default;var s=r.__importDefault(n(69));e.Line=s.default;var l=r.__importDefault(n(372));e.Polygon=l.default;var u=r.__importDefault(n(178));e.Polyline=u.default;var c=r.__importStar(n(32));e.Util=c},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={fontFamily:'\n 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,descriptionIconStroke:"#fff",descriptionIconFill:"rgba(58, 73, 101, .25)"}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(0),a=n(12),o=n(64),s=n(27),l=n(121),u=n(16),c=r.__importStar(n(82)),f=r.__importDefault(n(122)),h=n(12),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 f.default},e.prototype.onCanvasChange=function(t){(0,l.refreshElement)(this,t)},e.prototype.calculateBBox=function(){var t=this.get("el"),e=null;if(t)e=t.getBBox();else{var n=(0,h.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(),l=s/2,u=r-l,c=i-l;return{x:u,y:c,minX:u,minY:c,maxX:r+a+l,maxY:i+o+l,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,l=n.strokeOpacity,c=n.lineWidth,f=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&&f.setAttribute(u.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),l&&f.setAttribute(u.SVG_ATTR_MAP.strokeOpacity,l),c&&f.setAttribute(u.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(u.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(u.SVG_ATTR_MAP[e],"url(#"+i+")")}else r.setAttribute(u.SVG_ATTR_MAP[e],n);else r.setAttribute(u.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,l=r.shadowColor;(i||a||s||l)&&(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.2.6";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(42);Object.defineProperty(e,"ComponentController",{enumerable:!0,get:function(){return a.Controller}});var o=n(210);Object.defineProperty(e,"TooltipController",{enumerable:!0,get:function(){return r.__importDefault(o).default}});var s=n(34);Object.defineProperty(e,"Geometry",{enumerable:!0,get:function(){return r.__importDefault(s).default}});var l=n(115);Object.defineProperty(e,"Element",{enumerable:!0,get:function(){return r.__importDefault(l).default}});var u=n(79);Object.defineProperty(e,"GeometryLabel",{enumerable:!0,get:function(){return r.__importDefault(u).default}});var c=n(112);Object.defineProperty(e,"Interaction",{enumerable:!0,get:function(){return c.Interaction}}),Object.defineProperty(e,"Action",{enumerable:!0,get:function(){return c.Action}});var f=n(89);Object.defineProperty(e,"Facet",{enumerable:!0,get:function(){return f.Facet}});var h=n(11);Object.defineProperty(e,"InteractionAction",{enumerable:!0,get:function(){return r.__importDefault(h).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(117);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(112);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(89);Object.defineProperty(e,"getFacet",{enumerable:!0,get:function(){return m.getFacet}}),Object.defineProperty(e,"registerFacet",{enumerable:!0,get:function(){return m.registerFacet}});var _=n(205);Object.defineProperty(e,"getTheme",{enumerable:!0,get:function(){return _.getTheme}}),Object.defineProperty(e,"registerTheme",{enumerable:!0,get:function(){return _.registerTheme}});var x=n(150);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(211);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(487));var C=n(19);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(214),S=n(215),O=n(13),w=n(54),A=n(78),T=n(4),E=n(43),I=n(118);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,getPath:I.getPath,getPathPoints:E.getPathPoints}},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";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(0),a=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,a.isString)(t))return t.padEnd(e,n);if((0,a.isArray)(t)){var r=t.length;if(r<e)for(var i=e-r,o=0;o<i;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){var r,a;void 0===e&&(e=[]),void 0===n&&(n=new Map);try{for(var o=i.__values(t),s=o.next();!s.done;s=o.next()){var l=s.value;n.has(l)||(e.push(l),n.set(l,!0))}}catch(t){r={error:t}}finally{try{s&&!s.done&&(a=o.return)&&a.call(o)}finally{if(r)throw r.error}}return e}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(0),a=n(12),o=n(15),s=n(63),l=n(12),u=r.__importStar(n(62)),c=r.__importDefault(n(120)),f=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 u},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,l.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=f},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(0),i=n(1),a=n(2),o=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,i.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,i.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,i=e.height;switch(n){case a.DIRECTION.TOP:case a.DIRECTION.TOP_LEFT:case a.DIRECTION.TOP_RIGHT:return t.fromRange(this.minX,this.minY+i,this.maxX,this.maxY);case a.DIRECTION.RIGHT:case a.DIRECTION.RIGHT_TOP:case a.DIRECTION.RIGHT_BOTTOM:return t.fromRange(this.minX,this.minY,this.maxX-r,this.maxY);case a.DIRECTION.BOTTOM:case a.DIRECTION.BOTTOM_LEFT:case a.DIRECTION.BOTTOM_RIGHT:return t.fromRange(this.minX,this.minY,this.maxX,this.maxY-i);case a.DIRECTION.LEFT:case a.DIRECTION.LEFT_TOP:case a.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=r.__read(e,4),i=n[0],a=n[1],o=n[2],s=n[3];return new t(this.x+s,this.y+i,this.width-s-a,this.height-i-o)},t.prototype.expand=function(e){var n=r.__read(e,4),i=n[0],a=n[1],o=n[2],s=n[3];return new t(this.x-s,this.y-i,this.width+s+a,this.height+i+o)},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=o;e.getRegionBBox=function(t,e){var n=e.start,r=e.end;return new o(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(24));e.default=function(t){return(0,r.default)(t,"String")}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0).__importDefault(n(24));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(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]),l=Math.max(n[0],r[0],i[0],a[0]),u=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:u,minX:o,minY:u,maxX:l,maxY:c,width:l-o,height:c-u}},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(188),o=n(102),s=n(1),l=n(36),u=i.__importDefault(n(88)),c=n(2),f=n(25),h=i.__importDefault(n(115)),p=n(117),d=n(3),g=n(483),y=n(212),v=n(484),m=n(213),_=n(38),x=n(14),b=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,l=void 0!==s&&s,u=e.visible,c=void 0===u||u,f=e.theme,h=e.scales,p=void 0===h?{}:h,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,P=e.sortZIndex,S=e.useDeferredLabel;return n.container=r,n.labelsContainer=i,n.coordinate=a,n.data=o,n.sortable=l,n.visible=c,n.userTheme=f,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.sortZIndex=P,n.useDeferredLabel=S?"number"==typeof S?S:1/0:null,n}return 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){var e=this;void 0===t&&(t=!1),this.animateOption&&(this.animateOption=(0,s.deepMix)({},(0,l.getDefaultAnimateCfg)(this.type,this.coordinate),this.animateOption)),this.defaultSize=void 0,this.elementsMap={},this.elements=[],this.getOffscreenGroup().clear();var n=this.beforeMappingData,r=this.beforeMapping(n);this.dataArray=new Array(r.length);for(var a=0;a<r.length;a++){var o=r[a];this.dataArray[a]=this.mapping(o)}if(this.updateElements(this.dataArray,t),this.lastElementsMap=this.elementsMap,this.canDoGroupAnimation(t)){var u=this.container,c=this.type,f=this.coordinate,h=(0,s.get)(this.animateOption,"appear"),p=this.getYScale(),d=f.convert({x:0,y:p.scale(this.getYMinValue())});(0,l.doGroupAppearAnimate)(u,h,c,f,d)}if(this.labelOption){var g=this.useDeferredLabel,y=function(){return e.renderLabels((0,s.flatten)(e.dataArray),t)}.bind(this);if("number"==typeof g){var v="number"==typeof g&&g!==1/0?g:0;if(window.requestIdleCallback){var m=v&&v!==1/0?{timeout:v}:void 0;window.requestIdleCallback(y,m)}else setTimeout(y,v)}else y()}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(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,a=0,o=r.length;a<o;a++){var s=r[a],l=s.field;s.isIdentity?n.push(s.values):n.push(e[l])}return t.mapping.apply(t,i.__spreadArray([],i.__read(n),!1))},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,l=this.getXScale(),u=this.getYScale(),f=l.field||"x",h=e[u.field||"y"];i="identity"===l.type?l.values[0]:e[f],a="interval"===o||"schema"===o?"".concat(i):"line"===o||"area"===o||"path"===o?o:"".concat(i,"-").concat(h);for(var p=this.groupScales,d=(r=0,p.length);r<d;r++){var g=p[r].field;a="".concat(a,"-").concat(e[g])}var y=this.getAdjust("dodge");if(y){var v=y.dodgeBy;v&&(a="".concat(a,"-").concat(e[v]))}return this.getAdjust("jitter")&&(a="".concat(a,"-").concat(t.x,"-").concat(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,f.uniq)(o.fields,t,e):o.values&&(0,f.uniq)(o.values,t,e)}return r&&r.fields&&(0,f.uniq)(r.fields,t,e),(0,s.isObject)(i)&&i.fields&&(0,f.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,f.uniq)(a.fields,t,e)}return t},e.prototype.getXYFields=function(){var t=i.__read(this.attributeOption.position.fields,2);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,n){void 0===n&&(n=!1);var r=this.container,i=this.getDrawCfg(t),a=this.getShapeFactory(),o=new h.default({shapeFactory:a,container:r,offscreenGroup:this.getOffscreenGroup(),elementIndex:e});return o.animate=this.animateOption,o.geometry=this,o.draw(i,n),o},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){var n,r,a,o,s,l;void 0===e&&(e=!1);for(var u=new Map,c=[],f=new Map,h=0,p=0;p<t.length;p++)for(var d=t[p],g=0;g<d.length;g++){var v=d[g],_=this.getElementId(v),x=u.has(_)?"".concat(_,"-").concat(p,"-").concat(g):_;c.push(x),u.set(x,v),f.set(x,h),h++}this.elements=new Array(h);var b=(0,m.diff)(this.lastElementsMap,c),M=b.added,C=b.updated,P=b.removed;try{for(var S=i.__values(M),O=S.next();!O.done;O=S.next()){_=O.value,v=u.get(_),p=f.get(_);var w=this.createElement(v,p,e);this.elements[p]=w,this.elementsMap[_]=w,w.shape&&w.shape.set("zIndex",this.zIndexReversed?this.elements.length-p:p)}}catch(t){n={error:t}}finally{try{O&&!O.done&&(r=S.return)&&r.call(S)}finally{if(n)throw n.error}}try{for(var A=i.__values(C),T=A.next();!T.done;T=A.next()){_=T.value,w=this.lastElementsMap[_],v=u.get(_);var E=this.getDrawCfg(v),I=w.getModel();p=f.get(_);(this.isCoordinateChanged||(0,y.isModelChange)(E,I))&&(w.animate=this.animateOption,w.update(E)),this.elements[p]=w,this.elementsMap[_]=w,w.shape&&w.shape.set("zIndex",this.zIndexReversed?this.elements.length-p:p)}}catch(t){a={error:t}}finally{try{T&&!T.done&&(o=A.return)&&o.call(A)}finally{if(a)throw a.error}}this.container&&this.container.sort();try{for(var L=i.__values(P),D=L.next();!D.done;D=L.next()){_=D.value;(w=this.lastElementsMap[_]).animate=this.animateOption,w.destroy()}}catch(t){s={error:t}}finally{try{D&&!D.done&&(l=L.return)&&l.call(L)}finally{if(s)throw s.error}}},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,l=this.shapeType;this.groupScales=[];var u={},f=function(r){if(n.hasOwnProperty(r)){var f=n[r];if(!f)return{value:void 0};var h=i.__assign({},f),p=h.callback,d=h.values,g=h.fields,y=(void 0===g?[]:g).map((function(e){var n=t.scales[e];!u[e]&&c.GROUP_ATTRS.includes(r)&&("cat"===(0,_.inferScaleType)(n,(0,s.get)(t.scaleDefs,e),r,t.type)&&(t.groupScales.push(n),u[e]=!0));return n}));h.scales=y,"position"!==r&&1===y.length&&"identity"===y[0].type?h.values=y[0].values:p||d||("size"===r?h.values=a.sizes:"shape"===r?h.values=a.shapes[l]||[]:"color"===r&&(y.length?h.values=y[0].values.length<=10?a.colors10:a.colors20:h.values=a.colors10));var v=(0,o.getAttribute)(r);e[r]=new v(h)}};for(var h in n){var p=f(h);if("object"===r(p))return p.value}},e.prototype.processData=function(t){var e,n;this.hasSorted=!1;for(var r=this.getAttribute("position").scales.filter((function(t){return t.isCategory})),a=this.groupData(t),o=[],s=0,l=a.length;s<l;s++){for(var u=a[s],f=[],h=0,p=u.length;h<p;h++){var d=u[h],g={};for(var y in d)g[y]=d[y];g[c.FIELD_ORIGIN]=d;try{for(var v=(e=void 0,i.__values(r)),m=v.next();!m.done;m=v.next()){var _=m.value,x=_.field;g[x]=_.translate(g[x])}}catch(t){e={error:t}}finally{try{m&&!m.done&&(n=v.return)&&n.call(v)}finally{if(e)throw e.error}}f.push(g)}o.push(f)}var b=this.adjustData(o);return this.beforeMappingData=b,b},e.prototype.adjustData=function(t){var e=this.adjustOption,n=this.intervalPadding,r=this.dodgePadding,o=this.theme,l=this.maxColumnWidth||o.maxColumnWidth,u=this.minColumnWidth||o.minColumnWidth,c=this.columnWidthRatio||o.columnWidthRatio,f=t;if(e){var h=this.getXScale(),p=this.getYScale(),d=h.field,g=p?p.field:null,y=(0,x.getXDimensionLength)(this.coordinate),v=h.values.length,m=this.getAttribute("size"),_=void 0;m&&(_=m.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:l,minColumnWidth:u,columnWidthRatio:c},C),S=C.type;if("dodge"===S){var O=[];if(h.isCategory||"identity"===h.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=(0,a.getAdjust)(S);P.dimValuesMap={},h&&h.values&&(P.dimValuesMap[h.field]=h.values.map((function(t){return h.translate(t)})));var E=new T(P);f=E.process(f),this.adjusts[S]=E}}return f},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 l=n[o],u=Math.min.apply(null,l[r]),c=Math.max.apply(null,l[r]);u<i&&(i=u),c>a&&(a=c)}var f=this.scaleDefs,h={};i<t.min&&!(0,s.get)(f,[r,"min"])&&(h.min=i),a>t.max&&!(0,s.get)(f,[r,"max"])&&(h.max=a),t.change(h)},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 l=e[o],u=l.names,f=this.getAttributeValues(l,i);if(u.length>1)for(var h=0;h<f.length;h+=1){var p=f[h];a[u[h]]=(0,s.isArray)(p)&&1===p.length?p[0]:p}else a[u[0]]=1===f.length?f[0]:f}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 l=0,u=0,c=i.length,f=a.length;l<c&&u<f;l+=1,u+=1)r=o.convert({x:i[l],y:a[u]}),e.push(r.x),n.push(r.y)}else if((0,s.isArray)(a)){n=[];for(var h=0;h<a.length;h++){var p=a[h];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(h=0;h<i.length;h++){var d=i[h];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,a=t.callback,o=t.cfg;if(o)return o;var s=r.map((function(t){return e[t]}));return a.apply(void 0,i.__spreadArray([],i.__read(s),!1))},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){return void 0===e&&(e=!1),i.__awaiter(this,void 0,void 0,(function(){var n,r,a,o,l,u,f,h,d,g,y,v,m=this;return i.__generator(this,(function(_){switch(_.label){case 0:return n=this.geometryLabel,this.emit(c.GEOMETRY_LIFE_CIRCLE.BEFORE_RENDER_LABEL),n||(r=this.getLabelType(),a=(0,p.getGeometryLabel)(r),n=new a(this),this.geometryLabel=n),[4,n.render(t,e)];case 1:_.sent(),o=n.labelsRenderer.shapesMap,l=new Map,(0,s.each)(o,(function(t,e){for(var n=t.getChildren()||[],r=0;r<n.length;r++){var i=n[r],a=m.elementsMap[i.get("elementId")||e.split(" ")[0]];if(a){i.cfg.name=["element","label"],i.cfg.element=a;var o=l.get(a)||new Set;o.add(t),l.set(a,o)}}}));try{for(u=i.__values(l.entries()),f=u.next();!f.done;f=u.next())h=i.__read(f.value,2),d=h[0],g=h[1],d.labelShape=i.__spreadArray([],i.__read(g),!1)}catch(t){y={error:t}}finally{try{f&&!f.done&&(v=u.return)&&v.call(u)}finally{if(y)throw y.error}}return this.emit(c.GEOMETRY_LIFE_CIRCLE.AFTER_RENDER_LABEL),[2]}}))}))},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}(u.default);e.default=b},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(211);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"}}},l={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,l=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 u=(0,o.getAnimation)(s);u&&u(t,l,n)}else t.animate(n.toAttrs,l)},e.doGroupAppearAnimate=function(t,n,a,s,u){if(l[a]){var c=l[a](s),f=(0,o.getAnimation)((0,i.get)(c,"animation",""));if(f){var h=r.__assign(r.__assign(r.__assign({},e.DEFAULT_ANIMATE_CFG.appear),c),n);t.stopAnimate(),f(t,h,{coordinate:s,minYPoint:u,toAttrs:null})}}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Facet=void 0;var r=n(0),i=n(1),a=n(2),o=n(90),s=function(){function t(t,e){this.destroyed=!1,this.facets=[],this.view=t,this.cfg=(0,i.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(a.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,i.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,r){return(0,i.isNumber)(t)?t/(0===r?e:n):parseFloat(t)/100}))},t.prototype.getFieldValues=function(t,e){var n=[],r={};return(0,i.each)(t,(function(t){var a=t[e];(0,i.isNil)(a)||r[a]||(n.push(a),r[a]=!0)})),n},t.prototype.getRegion=function(t,e,n,i){var a=r.__read(this.parseSpacing(),2),o=a[0],s=a[1],l=(1+o)/(0===e?1:e)-o,u=(1+s)/(0===t?1:t)-s,c={x:(l+o)*n,y:(u+s)*i};return{start:c,end:{x:c.x+l,y:c.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(),a=n.coordinate,s=t.geometries;if("rect"===(0,i.get)(a,"type","rect")&&s.length){(0,i.isNil)(n.axes)&&(n.axes={});var l=n.axes,u=r.__read(s[0].getXYFields(),2),c=u[0],f=u[1],h=(0,o.getAxisOption)(l,c),p=(0,o.getAxisOption)(l,f);!1!==h&&(n.axes[c]=this.getXAxisOption(c,l,h,e)),!1!==p&&(n.axes[f]=this.getYAxisOption(f,l,p,e))}},t.prototype.getFacetDataFilter=function(t){return function(e){return(0,i.every)(t,(function(t){var n=t.field,r=t.value;return!(!(0,i.isNil)(r)&&n)||e[n]===r}))}},t}();e.Facet=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getMaxScale=e.getDefaultCategoryScaleRange=e.getName=e.syncScale=e.createScaleByField=e.inferScaleType=void 0;var r=n(0),i=n(1),a=n(2),o=n(19),s=n(14),l=/^(?:(?!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.inferScaleType=function(t,e,n,r){return void 0===e&&(e={}),e.type?e.type:"identity"!==t.type&&a.GROUP_ATTRS.includes(n)&&["interval"].includes(r)||t.isCategory?"cat":t.type},e.createScaleByField=function(t,e,n){var a=e||[];if((0,i.isNumber)(t)||(0,i.isNil)((0,i.firstValue)(a,t))&&(0,i.isEmpty)(n))return new((0,o.getScale)("identity"))({field:t.toString(),values:[t]});var s=(0,i.valuesOfKey)(a,t),u=(0,i.get)(n,"type",function(t){var e="linear";return l.test(t)?e="timeCat":(0,i.isString)(t)&&(e="cat"),e}(s[0]));return new((0,o.getScale)(u))(r.__assign({field:t,values:s},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 o=0;r=(0,s.isFullCircle)(e)?e.isTransposed?[(o=1/a*(0,i.get)(n,"widthRatio.multiplePie",1/1.3))/2,1-o/2]:[0,1-1/a]:[o=1/a/2,1-o]}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,r.__spreadArray(r.__spreadArray([],r.__read(e),!1),[(0,i.isNil)(t.max)?-1/0:t.max],!1))}},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});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,l=void 0===s?[]:s,u=t.values,c=void 0===u?[]:u,f=t.callback;this.type=i,this.scales=l,this.values=c,this.names=o,this.callback=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];if(f){var i=f.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.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=r.__importStar(n(429));e.Annotation=i;var a=r.__importStar(n(441));e.Axis=a;var o=r.__importStar(n(447));e.Crosshair=o;var s=r.__importStar(n(452));e.Grid=s;var l=r.__importStar(n(455));e.Legend=l;var u=r.__importStar(n(458));e.Tooltip=u;var c=n(106);Object.defineProperty(e,"Component",{enumerable:!0,get:function(){return r.__importDefault(c).default}});var f=n(9);Object.defineProperty(e,"GroupComponent",{enumerable:!0,get:function(){return r.__importDefault(f).default}});var h=n(76);Object.defineProperty(e,"HtmlComponent",{enumerable:!0,get:function(){return r.__importDefault(h).default}});var p=n(462);Object.defineProperty(e,"Slider",{enumerable:!0,get:function(){return p.Slider}});var d=n(469);Object.defineProperty(e,"Scrollbar",{enumerable:!0,get:function(){return d.Scrollbar}}),r.__exportStar(n(471),e),r.__exportStar(n(472),e);var g=n(199);Object.defineProperty(e,"propagationDelegate",{enumerable:!0,get:function(){return g.propagationDelegate}});var y=r.__importStar(n(111));e.TOOLTIP_CSS_CONST=y},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}),e.getSmoothViolinPath=e.getViolinPath=e.getPathPoints=void 0;var r=n(1),i=n(52);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(u=t[i])||r.push(u)}return[r]}var s=[],l=[];for(i=0,a=t.length;i<a;i++){var u;o(u=t[i])?l.length&&((1!==l.length||n)&&s.push(l),l=[]):l.push(u)}return l.length&&s.push(l),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 l=o.concat(s);return n.length&&l.push(["L",n[0].x,n[0].y]),l.push(["z"]),l}},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(4),s=n(4),l=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=(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),l=a.getText(o);this.setItemsState(t,l,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,l=a.component;this.allowSetStateByElement(l)&&this.allowSetStateByItem(o,l)&&this.setItemState(l,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=l},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(66));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=n(0).__importDefault(n(35));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(314);Object.defineProperty(e,"addEventListener",{enumerable:!0,get:function(){return r(i).default}});var a=n(315);Object.defineProperty(e,"createDom",{enumerable:!0,get:function(){return r(a).default}});var o=n(151);Object.defineProperty(e,"getHeight",{enumerable:!0,get:function(){return r(o).default}});var s=n(316);Object.defineProperty(e,"getOuterHeight",{enumerable:!0,get:function(){return r(s).default}});var l=n(317);Object.defineProperty(e,"getOuterWidth",{enumerable:!0,get:function(){return r(l).default}});var u=n(318);Object.defineProperty(e,"getRatio",{enumerable:!0,get:function(){return r(u).default}});var c=n(58);Object.defineProperty(e,"getStyle",{enumerable:!0,get:function(){return r(c).default}});var f=n(152);Object.defineProperty(e,"getWidth",{enumerable:!0,get:function(){return r(f).default}});var h=n(319);Object.defineProperty(e,"modifyCSS",{enumerable:!0,get:function(){return r(h).default}})},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(95);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(333);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(334);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=n(0).__importDefault(n(169));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";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(181);Object.defineProperty(e,"parsePath",{enumerable:!0,get:function(){return r(i).default}});var a=n(376);Object.defineProperty(e,"catmullRom2Bezier",{enumerable:!0,get:function(){return r(a).default}});var o=n(379);Object.defineProperty(e,"fillPath",{enumerable:!0,get:function(){return r(o).default}});var s=n(380);Object.defineProperty(e,"fillPathByDiff",{enumerable:!0,get:function(){return r(s).default}});var l=n(381);Object.defineProperty(e,"formatPath",{enumerable:!0,get:function(){return r(l).default}});var u=n(382);Object.defineProperty(e,"pathIntersection",{enumerable:!0,get:function(){return r(u).default}});var c=n(387);Object.defineProperty(e,"parsePathArray",{enumerable:!0,get:function(){return r(c).default}});var f=n(185);Object.defineProperty(e,"parsePathString",{enumerable:!0,get:function(){return r(f).default}});var h=n(183);Object.defineProperty(e,"path2Curve",{enumerable:!0,get:function(){return r(h).default}});var p=n(184);Object.defineProperty(e,"path2Absolute",{enumerable:!0,get:function(){return r(p).default}});var d=n(182);Object.defineProperty(e,"reactPath",{enumerable:!0,get:function(){return r(d).default}});var g=n(100);Object.defineProperty(e,"getArcParams",{enumerable:!0,get:function(){return r(g).default}});var y=n(388);Object.defineProperty(e,"path2Segments",{enumerable:!0,get:function(){return r(y).default}});var v=n(186);Object.defineProperty(e,"getLineIntersect",{enumerable:!0,get:function(){return r(v).default}});var m=n(389);Object.defineProperty(e,"isPolygonsIntersect",{enumerable:!0,get:function(){return r(m).default}});var _=n(187);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(5).__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,a=t.dimValuesMap;this.adjustNames=i,this.xField=e,this.yField=n,this.dimValuesMap=a}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=r.assign({},this.dimValuesMap),o=[];if(e&&this.isAdjust("x")&&o.push(e),n&&this.isAdjust("y")&&o.push(n),o.forEach((function(e){a&&a[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(0),i=n(8),a=n(1),o=n(14);function s(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 l(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 l,u,c,f=(0,e.smoothBezier)(a,.4,i,r),h=a.length,p=[];for(o=0;o<h-1;o++)l=f[2*o],u=f[2*o+1],c=a[o+1],p.push(["C",l[0],l[1],u[0],u[1],c[0],c[1]]);return i&&(l=f[h],u=f[h+1],c=a[0],p.push(["C",l[0],l[1],u[0],u[1],c[0],c[1]])),p}function c(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,a){var o,s,l,u,c,f,h,p,d=[],g=!!a;if(g){u=(o=r.__read(a,2))[0],c=o[1];for(var y=0,v=t.length;y<v;y++){var m=t[y];u=i.vec2.min([0,0],u,m),c=i.vec2.max([0,0],c,m)}}y=0;for(var _=t.length;y<_;y++){m=t[y];if(0!==y||n)if(y!==_-1||n){s=t[n?y?y-1:_-1:y-1],l=t[n?(y+1)%_:y+1];var x=[0,0];x=i.vec2.sub(x,l,s),x=i.vec2.scale(x,x,e);var b=i.vec2.distance(m,s),M=i.vec2.distance(m,l),C=b+M;0!==C&&(b/=C,M/=C);var P=i.vec2.scale([0,0],x,-b),S=i.vec2.scale([0,0],x,M);h=i.vec2.add([0,0],m,P),f=i.vec2.add([0,0],m,S),f=i.vec2.min([0,0],f,i.vec2.max([0,0],l,m)),f=i.vec2.max([0,0],f,i.vec2.min([0,0],l,m)),P=i.vec2.sub([0,0],f,m),P=i.vec2.scale([0,0],P,-b/M),h=i.vec2.add([0,0],m,P),h=i.vec2.min([0,0],h,i.vec2.max([0,0],s,m)),h=i.vec2.max([0,0],h,i.vec2.min([0,0],s,m)),S=i.vec2.sub([0,0],m,h),S=i.vec2.scale([0,0],S,M/b),f=i.vec2.add([0,0],m,S),g&&(h=i.vec2.max([0,0],h,u),h=i.vec2.min([0,0],h,c),f=i.vec2.max([0,0],f,u),f=i.vec2.min([0,0],f,c)),d.push(p),d.push(h),p=f}else h=m,d.push(p),d.push(h);else p=m}return n&&d.push(d.shift()),d},e.catmullRom2bezier=u,e.getLinePath=c,e.getSplinePath=function(t,e,n){var r=[],i=t[0],a=null;if(t.length<=2)return c(t,e);for(var o=0,s=t.length;o<s;o++){var l=t[o];a&&a.x===l.x&&a.y===l.y||(r.push(l.x),r.push(l.y),a=l)}var f=u(r,e,n||[[0,0],[1,1]]);return f.unshift(["M",i.x,i.y]),f},e.convertNormalPath=function(t,e){var n=[];return(0,a.each)(e,(function(e){switch(e[0].toLowerCase()){case"m":case"l":case"c":n.push(s(e,t));break;case"a":n.push(l(e,t));break;case"z":default:n.push(e)}})),n},e.convertPolarPath=function(t,e){var n,r,i,u=[];return(0,a.each)(e,(function(a,c){switch(a[0].toLowerCase()){case"m":case"c":case"q":u.push(s(a,t));break;case"l":n=e[c-1],r=a,i=t.isTransposed,(i?n[n.length-2]===r[1]:n[n.length-1]===r[2])?u=u.concat(function(t,e,n){var r=n.isTransposed,i=n.startAngle,a=n.endAngle,s="a"===t[0].toLowerCase()?{x:t[6],y:t[7]}:{x:t[1],y:t[2]},l={x:e[1],y:e[2]},u=[],c=r?"y":"x",f=Math.abs(l[c]-s[c])*(a-i),h=l[c]>=s[c]?1:0,p=f>Math.PI?1:0,d=n.convert(l),g=(0,o.getDistanceToCenter)(n,d);if(g>=.5)if(f===2*Math.PI){var y={x:(l.x+s.x)/2,y:(l.y+s.y)/2},v=n.convert(y);u.push(["A",g,g,0,p,h,v.x,v.y]),u.push(["A",g,g,0,p,h,d.x,d.y])}else u.push(["A",g,g,0,p,h,d.x,d.y]);return u}(n,r,t)):u.push(s(a,t));break;case"a":u.push(l(a,t));break;case"z":default:u.push(a)}})),function(t){(0,a.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")}}))}(u),u}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.checkShapeOverlap=e.getOverlapArea=e.getLabelBackgroundInfo=e.findLabelTextShape=void 0;var r=n(1),i=n(54);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.getLabelBackgroundInfo=function(t,e,n){void 0===n&&(n=[0,0,0,0]);var a=t&&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(),l=s.x,u=s.y,c=s.width,f=s.height;o.destroy();var h=n;return(0,r.isNil)(h)?h=[2,2,2,2]:(0,r.isNumber)(h)&&(h=new Array(4).fill(h)),{x:l-h[3],y:u-h[0],width:c+h[1]+h[3],height:f+h[0]+h[2],rotation:(null==e?void 0:e.rotate)||0}}return{x:0,y:0,width:0,height:0,rotation: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(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.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(233);Object.defineProperty(e,"Chart",{enumerable:!0,get:function(){return r(i).default}});var a=n(153);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(114);Object.defineProperty(e,"Event",{enumerable:!0,get:function(){return r(o).default}});var s=n(208);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=r.__importDefault(n(85)),a=r.__importDefault(n(24));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(191),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.ellipsisLabel=e.testLabel=e.getLabelLength=e.getMaxLabelWidth=void 0;var r=n(1),i=n(431);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 l=e[a].charCodeAt(s);o+=l>=19968&&l<=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,o){var s;void 0===o&&(o="tail");var l=null!==(s=e.attr("text"))&&void 0!==s?s:"";if("tail"===o){var u=(0,r.pick)(e.attr(),["fontSize","fontFamily","fontWeight","fontStyle","fontVariant"]),c=(0,r.getEllipsisText)(l,n,u,"…");return l!==c?(e.attr("text",c),e.set("tip",l),!0):(e.set("tip",null),!1)}var f=a(t,e),h=(0,i.strLen)(l),p=!1;if(n<f){var d=Math.floor(n/f*h)-2,g=void 0;(g=d>=0?(0,i.ellipsisString)(l,d,o):"…")&&(e.attr("text",g),p=!0)}return p?e.set("tip",l):e.set("tip",null),p}},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(26);Object.defineProperty(e,"Base",{enumerable:!0,get:function(){return r(i).default}});var a=n(489);Object.defineProperty(e,"Circle",{enumerable:!0,get:function(){return r(a).default}});var o=n(490);Object.defineProperty(e,"Ellipse",{enumerable:!0,get:function(){return r(o).default}});var s=n(491);Object.defineProperty(e,"Image",{enumerable:!0,get:function(){return r(s).default}});var l=n(492);Object.defineProperty(e,"Line",{enumerable:!0,get:function(){return r(l).default}});var u=n(493);Object.defineProperty(e,"Marker",{enumerable:!0,get:function(){return r(u).default}});var c=n(494);Object.defineProperty(e,"Path",{enumerable:!0,get:function(){return r(c).default}});var f=n(496);Object.defineProperty(e,"Polygon",{enumerable:!0,get:function(){return r(f).default}});var h=n(497);Object.defineProperty(e,"Polyline",{enumerable:!0,get:function(){return r(h).default}});var p=n(498);Object.defineProperty(e,"Rect",{enumerable:!0,get:function(){return r(p).default}});var d=n(501);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(218),o=r.__importDefault(n(219)),s=n(15),l=r.__importStar(n(80)),u={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()&&f(r.cfg.children,e);else if(r.cfg.refresh)r.isGroup()&&c(r.cfg.children,e);else{var i=h(r,e);r.cfg.refresh=i,i&&r.isGroup()&&c(r.cfg.children,e)}}}function f(t,e){for(var n=0;n<t.length;n++){var r=t[n];r.cfg.refresh=!0,r.isGroup()&&f(r.get("children"),e)}}function h(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=u[r]?u[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?f(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 u=[0,0],c=[0,0],f={dx:0,dy:0};e.beginPath();for(var h=0;h<i.length;h++){var p=i[h],d=p[0];if(0===h&&a&&a.d){var g=t.getStartTangent();f=l.getShortenOffset(g[0][0],g[0][1],g[1][0],g[1][1],a.d)}else if(h===i.length-2&&"Z"===i[h+1][0]&&s&&s.d){if("Z"===i[h+1][0]){g=t.getEndTangent();f=l.getShortenOffset(g[0][0],g[0][1],g[1][0],g[1][1],s.d)}}else if(h===i.length-1&&s&&s.d&&"Z"!==i[0]){g=t.getEndTangent();f=l.getShortenOffset(g[0][0],g[0][1],g[1][0],g[1][1],s.d)}var y=f.dx,v=f.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[h])||(m=(0,o.default)(u,p),r[h]=m):m=(0,o.default)(u,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)u=c;else{var E=p.length;u=[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(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")){(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(0),i=n(1),a=n(13);function o(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 s(t,e){var n=0,r=0,a=0,o=0;return(0,i.isArray)(t)?1===t.length?n=r=a=o=t[0]:2===t.length?(n=a=t[0],r=o=t[1]):3===t.length?(n=t[0],r=o=t[1],a=t[2]):(n=t[0],r=t[1],a=t[2],o=t[3]):n=r=a=o=t,n+r>e&&(r=e-(n=n?e/(1+r/n):0)),a+o>e&&(o=e-(a=a?e/(1+o/a):0)),[n||0,r||0,a||0,o||0]}function l(t,e){return[e,t]}e.getRectPoints=function(t){var e,n,a,o,s,l,u=t.x,c=t.y,f=t.y0,h=t.size;(0,i.isArray)(c)?(a=(e=r.__read(c,2))[0],o=e[1]):(a=f,o=c),(0,i.isArray)(u)?(s=(n=r.__read(u,2))[0],l=n[1]):(s=u-h/2,l=u+h/2);var p=[{x:s,y:a},{x:s,y:o}];return p.push({x:l,y:o},{x:l,y:a}),p},e.getRectPath=o,e.parseRadius=s,e.getBackgroundRectPath=function(t,e,n){var o=[];if(n.isRect){var l=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},c=(0,i.get)(t,["background","style","radius"]);if(c){var f=n.isTransposed?Math.abs(e[0].y-e[2].y):e[2].x-e[1].x,h=n.isTransposed?n.getWidth():n.getHeight(),p=r.__read(s(c,Math.min(f,h)),4),d=p[0],g=p[1],y=p[2],v=p[3],m=n.isTransposed&&n.isReflect("y"),_=m?0:1,x=function(t){return m?-t:t};o.push(["M",l.x,u.y+x(d)]),0!==d&&o.push(["A",d,d,0,0,_,l.x+d,u.y]),o.push(["L",u.x-g,u.y]),0!==g&&o.push(["A",g,g,0,0,_,u.x,u.y+x(g)]),o.push(["L",u.x,l.y-x(y)]),0!==y&&o.push(["A",y,y,0,0,_,u.x-y,l.y]),o.push(["L",l.x+v,l.y]),0!==v&&o.push(["A",v,v,0,0,_,l.x,l.y-x(v)])}else o.push(["M",l.x,l.y]),o.push(["L",u.x,l.y]),o.push(["L",u.x,u.y]),o.push(["L",l.x,u.y]),o.push(["L",l.x,l.y]);o.push(["z"])}if(n.isPolar){var b=n.getCenter(),M=(0,a.getAngle)(t,n),C=M.startAngle,P=M.endAngle;if("theta"===n.type||n.isTransposed){var S=function(t){return Math.pow(t,2)};d=Math.sqrt(S(b.x-e[0].x)+S(b.y-e[0].y)),g=Math.sqrt(S(b.x-e[2].x)+S(b.y-e[2].y));o=(0,a.getSectorPath)(b.x,b.y,d,n.startAngle,n.endAngle,g)}else o=(0,a.getSectorPath)(b.x,b.y,n.getRadius(),C,P)}return o},e.getIntervalRectPath=function(t,e,n){var r=n.getWidth(),i=n.getHeight(),a="rect"===n.type,s=[],l=(t[2].x-t[1].x)/2,u=n.isTransposed?l*i/r:l*r/i;return"round"===e?(a?(s.push(["M",t[0].x,t[0].y+u]),s.push(["L",t[1].x,t[1].y-u]),s.push(["A",l,l,0,0,1,t[2].x,t[2].y-u]),s.push(["L",t[3].x,t[3].y+u]),s.push(["A",l,l,0,0,1,t[0].x,t[0].y+u])):(s.push(["M",t[0].x,t[0].y]),s.push(["L",t[1].x,t[1].y]),s.push(["A",l,l,0,0,1,t[2].x,t[2].y]),s.push(["L",t[3].x,t[3].y]),s.push(["A",l,l,0,0,1,t[0].x,t[0].y])),s.push(["z"])):s=o(t),s},e.getFunnelPath=function(t,e,n){var r=[];return(0,i.isNil)(e)?n?r.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"]):r.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"]):r.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"]),r},e.getRectWithCornerRadius=function(t,e,n){var i,a,o,u,c,f,h,p=r.__read(r.__spreadArray([],r.__read(t),!1),4),d=p[0],g=p[1],y=p[2],v=p[3],m=r.__read("number"==typeof n?Array(4).fill(n):n,4),_=m[0],x=m[1],b=m[2],M=m[3];e.isTransposed&&(g=(i=r.__read(l(g,v),2))[0],v=i[1]),e.isReflect("y")&&(d=(a=r.__read(l(d,g),2))[0],g=a[1],y=(o=r.__read(l(y,v),2))[0],v=o[1]),e.isReflect("x")&&(d=(u=r.__read(l(d,v),2))[0],v=u[1],g=(c=r.__read(l(g,y),2))[0],y=c[1]);var C=[],P=function(t){return Math.abs(t)};return _=(f=r.__read(s([_,x,b,M],Math.min(P(v.x-d.x),P(g.y-d.y))).map((function(t){return P(t)})),4))[0],x=f[1],b=f[2],M=f[3],e.isTransposed&&(_=(h=r.__read([M,_,x,b],4))[0],x=h[1],b=h[2],M=h[3]),d.y<g.y?(C.push(["M",v.x,v.y+b]),0!==b&&C.push(["A",b,b,0,0,0,v.x-b,v.y]),C.push(["L",d.x+M,d.y]),0!==M&&C.push(["A",M,M,0,0,0,d.x,d.y+M]),C.push(["L",g.x,g.y-_]),0!==_&&C.push(["A",_,_,0,0,0,g.x+_,g.y]),C.push(["L",y.x-x,y.y]),0!==x&&C.push(["A",x,x,0,0,0,y.x,y.y-x]),C.push(["L",v.x,v.y+b]),C.push(["z"])):v.x<d.x?(C.push(["M",y.x+x,y.y]),0!==x&&C.push(["A",x,x,0,0,0,y.x,y.y+x]),C.push(["L",v.x,v.y-b]),0!==b&&C.push(["A",b,b,0,0,0,v.x+b,v.y]),C.push(["L",d.x-M,d.y]),0!==M&&C.push(["A",M,M,0,0,0,d.x,d.y-M]),C.push(["L",g.x,g.y+_]),0!==_&&C.push(["A",_,_,0,0,0,g.x-_,g.y]),C.push(["L",y.x+x,y.y]),C.push(["z"])):(C.push(["M",g.x,g.y+_]),0!==_&&C.push(["A",_,_,0,0,1,g.x+_,g.y]),C.push(["L",y.x-x,y.y]),0!==x&&C.push(["A",x,x,0,0,1,y.x,y.y+x]),C.push(["L",v.x,v.y-b]),0!==b&&C.push(["A",b,b,0,0,1,v.x-b,v.y]),C.push(["L",d.x+M,d.y]),0!==M&&C.push(["A",M,M,0,0,1,d.x,d.y-M]),C.push(["L",g.x,g.y+_]),C.push(["z"])),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.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.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(324));e.mat2=a;var o=r.__importStar(n(325));e.mat2d=o;var s=r.__importStar(n(161));e.mat3=s;var l=r.__importStar(n(162));e.mat4=l;var u=r.__importStar(n(163));e.quat=u;var c=r.__importStar(n(326));e.quat2=c;var f=r.__importStar(n(165));e.vec2=f;var h=r.__importStar(n(91));e.vec3=h;var p=r.__importStar(n(164));e.vec4=p},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(32),a=r.__importStar(n(165));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 l=[-s[1],s[0]];a.normalize(l,l);var u=[i-t,o-e];return Math.abs(a.dot(u,l))},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,l=function(t,e,n,r){return t[r]+(e[r]-t[r])*n};function u(t){return"#"+h(t[0])+h(t[1])+h(t[2])}var c,f=function(t){return[parseInt(t.substr(1,2),16),parseInt(t.substr(3,2),16),parseInt(t.substr(5,2),16)]},h=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=u(i.exec(n)[1].split(/\s*,\s*/).map((function(t){return Number(t)})))};e.default={rgb2arr:f,gradient:function(t){var e=(0,r.isString)(t)?t.split("-"):t,n=(0,r.map)(e,(function(t){return f(-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 u([l(o,s,a,0),l(o,s,a,1),l(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=+(l=a.exec(t))[1]+90;n=l[2],e="linear-gradient("+i+"deg, "}else if("r"===t[0]){var l;e="radial-gradient(",n=(l=o.exec(t))[4]}var u=n.match(s);return(0,r.each)(u,(function(t,n){var r=t.split(":");e+=r[1]+" "+100*r[0]+"%",n!==u.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(193)),o=r.__importStar(n(193)),s=r.__importDefault(n(404));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 l=36e5;e.HOUR=l;var u=24*l;e.DAY=u;var c=31*u;e.MONTH=c;e.YEAR=31536e6;var f=[["HH:mm:ss",1e3],["HH:mm:ss",1e4],["HH:mm:ss",3e4],["HH:mm",6e4],["HH:mm",6e5],["HH:mm",18e5],["HH",l],["HH",6*l],["HH",12*l],["YYYY-MM-DD",u],["YYYY-MM-DD",4*u],["YYYY-WW",7*u],["YYYY-MM",c],["YYYY-MM",4*c],["YYYY-MM",6*c],["YYYY",380*u]];e.getTickInterval=function(t,e,n){var r=(e-t)/n,a=(0,s.default)((function(t){return t[1]}))(f,r)-1,o=f[a];return a<0?o=f[0]:a>=f.length&&(o=(0,i.last)(f)),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}(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(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=(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(60),o=n(33),s=n(10);e.renderTag=function(t,e){var n=e.x,l=e.y,u=e.content,c=e.style,f=e.id,h=e.name,p=e.rotate,d=e.maxLength,g=e.autoEllipsis,y=e.isVertical,v=e.ellipsisPosition,m=e.background,_=t.addGroup({id:f+"-group",name:h+"-group",attrs:{x:n,y:l}}),x=_.addShape({type:"text",id:f,name:h,attrs:(0,r.__assign)({x:0,y:0,text:u},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:f+"-bg",name:f+"-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,l),(0,o.applyRotate)(_,p,n,l)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(0),a=n(47),o=n(1),s=n(10),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),{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.get("containerId")&&t.setAttribute("id",this.get("containerId")),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}(r.__importDefault(n(106)).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.getActionClass=e.registerAction=e.createAction=e.Action=void 0;var i=n(11);Object.defineProperty(e,"Action",{enumerable:!0,get:function(){return r(i).default}});var a=n(203);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.findItemsFromViewRecurisive=e.findItemsFromView=e.getTooltipItems=e.findDataByPoint=void 0;var r=n(0),i=n(1),a=n(2),o=n(38);function s(t,e,n){var r=n.translate(t),a=n.translate(e);return(0,i.isNumberEqual)(r,a)}function l(t,e,n){var r=n.coordinate,o=n.getYScale(),s=o.field,l=r.invert(e),u=o.invert(l.y);return(0,i.find)(t,(function(t){var e=t[a.FIELD_ORIGIN];return e[s][0]<=u&&e[s][1]>=u}))||t[t.length-1]}var u=(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){var e,n,s,l=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);try{for(var u=r.__values(l),c=u.next();!c.done;c=u.next()){var f=c.value,h=f.getScale(f.type);if(h&&h.isLinear){var p=(0,i.get)(t.scaleDefs,h.field);if("cat"!==(0,o.inferScaleType)(h,p,f.type,t.type)){s=h;break}}}}catch(t){e={error:t}}finally{try{c&&!c.done&&(n=u.return)&&n.call(u)}finally{if(e)throw e.error}}var d=t.getXScale(),g=t.getYScale();return s||g||d}function f(t,e,n){if(0===e.length)return null;var r=n.type,o=n.getXScale(),c=n.getYScale(),f=o.field,h=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[f]-g,2)+Math.pow(x[h]-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][f],O=M[a.FIELD_ORIGIN][h],w=C[a.FIELD_ORIGIN][f],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[f][0])<=P&&o.translate(x[f][1])>=P){if(!A){p=B;break}(0,i.isArray)(p)||(p=[]),p.push(B)}}(0,i.isArray)(p)&&(p=l(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][f];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])[f],P,o)){if(!A){p=B;break}(0,i.isArray)(p)||(p=[]),p.push(B)}else o.translate(x[f])<=P&&(C=B,T=e[m+1])}(0,i.isArray)(p)&&(p=l(p,t,n))}C&&T&&Math.abs(o.translate(C[a.FIELD_ORIGIN][f])-P)>Math.abs(o.translate(T[a.FIELD_ORIGIN][f])-P)&&(C=T)}var j=u(n.getXScale());return!p&&Math.abs(o.translate(C[a.FIELD_ORIGIN][f])-P)<=j/2&&(p=C),p}function h(t,e,n,s){var l,u;void 0===n&&(n=""),void 0===s&&(s=!1);var f,h=t[a.FIELD_ORIGIN],p=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],l=s?s.getText(t[o]):t[o]||o;return(0,i.isFunction)(n)?n(l,t):l}(h,e,n),d=e.tooltipOption,g=e.theme.defaultColor,y=[];function v(e,n){if(s||!(0,i.isNil)(n)&&""!==n){var r={title:p,data:h,mappingData:t,name:e,value:n,color:t.color||g,marker:!0};y.push(r)}}if((0,i.isObject)(d)){var m=d.fields,_=d.callback;if(_){var x=m.map((function(e){return t[a.FIELD_ORIGIN][e]})),b=_.apply(void 0,r.__spreadArray([],r.__read(x),!1)),M=r.__assign({data:t[a.FIELD_ORIGIN],mappingData:t,title:p,color:t.color||g,marker:!0},b);y.push(M)}else{var C=e.scales;try{for(var P=r.__values(m),S=P.next();!S.done;S=P.next()){var O=S.value;if(!(0,i.isNil)(h[O])){var w=C[O];v((0,o.getName)(w),f=w.getText(h[O]))}}}catch(t){l={error:t}}finally{try{S&&!S.done&&(u=P.return)&&u.call(P)}finally{if(l)throw l.error}}}}else{var A=c(e);f=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)}(h,A),v(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)}(h,e),f)}return y}function p(t,e,n,a){var o,s,l=a.showNil,u=[],c=t.dataArray;if(!(0,i.isEmpty)(c)){t.sort(c);try{for(var p=r.__values(c),d=p.next();!d.done;d=p.next()){var g=f(e,d.value,t);if(g){var y=t.getElementId(g),v=t.elementsMap[y];if("heatmap"===t.type||v.visible){var m=h(g,t,n,l);m.length&&u.push(m)}}}}catch(t){o={error:t}}finally{try{d&&!d.done&&(s=p.return)&&s.call(p)}finally{if(o)throw o.error}}}return u}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=h(o.get("origin").mappingData,t,n,i);s.length&&a.push(s)}return a}function g(t,e,n){var i,a,o=[],s=t.geometries,l=n.shared,u=n.title,c=n.reversed;try{for(var f=r.__values(s),h=f.next();!h.done;h=f.next()){var g=h.value;if(g.visible&&!1!==g.tooltipOption){var y=g.type,v=void 0;(v=["point","edge","polygon"].includes(y)?d(g,e,u,n):["area","line","path","heatmap"].includes(y)||!1!==l?p(g,e,u,n):d(g,e,u,n)).length&&(c&&v.reverse(),o.push(v))}}}catch(t){i={error:t}}finally{try{h&&!h.done&&(a=f.return)&&a.call(f)}finally{if(i)throw i.error}}return o}e.findDataByPoint=f,e.getTooltipItems=h,e.findItemsFromView=g,e.findItemsFromViewRecurisive=function(t,e,n){var i,a,o=g(t,e,n);try{for(var s=r.__values(t.views),l=s.next();!l.done;l=s.next()){var u=l.value;o=o.concat(g(u,e,n))}}catch(t){i={error:t}}finally{try{l&&!l.done&&(a=s.return)&&a.call(s)}finally{if(i)throw i.error}}return o}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(1),a=n(2),o=n(36),s=n(13),l=r.__importDefault(n(485));function u(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 l=(0,i.isArray)(s.content)?s.content:[s.content];s.content=l;var u=l.length;(0,i.each)(l,(function(a,o){if((0,i.isNil)(a)||""===a)n.push(null);else{var l=r.__assign(r.__assign({},s),e.getLabelPoint(s,t,o));l.textAlign||(l.textAlign=e.getLabelAlign(l,o,u)),l.offset<=0&&(l.labelLine=null),n.push(l)}}))}})),n},t.prototype.render=function(t,e){return void 0===e&&(e=!1),r.__awaiter(this,void 0,void 0,(function(){var n,i,a;return r.__generator(this,(function(r){switch(r.label){case 0:return n=this.getLabelItems(t),i=this.getLabelsRenderer(),a=this.getGeometryShapes(),[4,i.render(n,a,e)];case 1:return r.sent(),[2]}}))}))},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?u(a):a.length<=2?a[e.length-1]:u(a):a[n]),a}var l={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,f="funnel"===c||"pyramid"===c;if("polygon"===this.geometry.type){var h=(0,s.getPolygonCentroid)(e.x,e.y);l.x=h[0],l.y=h[1]}else"interval"!==this.geometry.type||f?(l.x=o(e.x,n),l.y=o(e.y,n)):(l.x=o(e.x,n,!0),l.y=o(e.y,n));if(f){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]);l.x=(g.x+y.x)/2,l.y=(g.y+y.y)/2}else if("pyramid"===c){g=r.convert(d[1]),y=r.convert(d[2]);l.x=(g.x+y.x)/2,l.y=(g.y+y.y)/2}}t.position&&this.setLabelPosition(l,e,n,t.position);var v=this.getLabelOffsetPoint(t,n,a);return l.start={x:l.x,y:l.y},l.x+=v.x,l.y+=v.y,l.color=e.color,l},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+=" ".concat(o[r.field]):"path"===n&&(s+=" ".concat(o[r.field],"-").concat(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,u=this.labelsRenderer;return u||(u=new l.default({container:e,layout:(0,i.get)(n,["cfg","layout"],{type:this.defaultLayout})}),this.labelsRenderer=u),u.region=r,u.animate=!!a&&(0,o.getDefaultAnimateCfg)("label",s),u},t.prototype.getLabelCfgs=function(t){var e=this,n=this.geometry,o=n.labelOption,s=n.scales,l=n.coordinate,u=o,c=u.fields,f=u.callback,h=u.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],u=e.getLabelText(s,p);if(f){var g=c.map((function(t){return s[t]}));if(o=f.apply(void 0,r.__spreadArray([],r.__read(g),!1)),(0,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:l},h),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=u[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(62),o=Math.sin,s=Math.cos,l=Math.atan2,u=Math.PI;function c(t,e,n,r,i,c,f){var h=e.stroke,p=e.lineWidth,d=l(r-c,n-i),g=new a.Path({type:"path",canvas:t.get("canvas"),isArrowShape:!0,attrs:{path:"M"+10*s(u/6)+","+10*o(u/6)+" L0,0 L"+10*s(u/6)+",-"+10*o(u/6),stroke:h,lineWidth:p}});g.translate(i,c),g.rotateAtPoint(i,c,d),t.set(f?"startArrowShape":"endArrowShape",g)}function f(t,e,n,r,u,c,f){var h=e.startArrow,p=e.endArrow,d=e.stroke,g=e.lineWidth,y=f?h:p,v=y.d,m=y.fill,_=y.stroke,x=y.lineWidth,b=(0,i.__rest)(y,["d","fill","stroke","lineWidth"]),M=l(r-c,n-u);v&&(u-=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(u,c),C.rotateAtPoint(u,c,M),t.set(f?"startArrowShape":"endArrowShape",C)}e.getShortenOffset=function(t,e,n,r,i){var a=l(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)?f(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)?f(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(20);e.default=function(t,e,n,i,a,o,s){var l=Math.min(t,n),u=Math.max(t,n),c=Math.min(e,i),f=Math.max(e,i),h=a/2;return o>=l-h&&o<=u+h&&s>=c-h&&s<=f+h&&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(22);Object.defineProperty(e,"Base",{enumerable:!0,get:function(){return r(i).default}});var a=n(505);Object.defineProperty(e,"Circle",{enumerable:!0,get:function(){return r(a).default}});var o=n(506);Object.defineProperty(e,"Dom",{enumerable:!0,get:function(){return r(o).default}});var s=n(507);Object.defineProperty(e,"Ellipse",{enumerable:!0,get:function(){return r(s).default}});var l=n(508);Object.defineProperty(e,"Image",{enumerable:!0,get:function(){return r(l).default}});var u=n(509);Object.defineProperty(e,"Line",{enumerable:!0,get:function(){return r(u).default}});var c=n(510);Object.defineProperty(e,"Marker",{enumerable:!0,get:function(){return r(c).default}});var f=n(512);Object.defineProperty(e,"Path",{enumerable:!0,get:function(){return r(f).default}});var h=n(513);Object.defineProperty(e,"Polygon",{enumerable:!0,get:function(){return r(h).default}});var p=n(514);Object.defineProperty(e,"Polyline",{enumerable:!0,get:function(){return r(p).default}});var d=n(515);Object.defineProperty(e,"Rect",{enumerable:!0,get:function(){return r(d).default}});var g=n(517);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(43),a=n(6),o=n(52);function s(t,e,n,i,a){var s=[];if(t.length){for(var l=[],u=[],c=0,f=t.length;c<f;c++){var h=t[c];l.push(h[1]),u.push(h[0])}u=u.reverse(),(0,r.each)([l,u],(function(t,r){var c=[],f=i.parsePoints(t),h=f[0];1===l.length&&1===u.length?c=0===r?[["M",h.x-.5,h.y],["L",h.x+.5,h.y]]:[["L",h.x+.5,h.y],["L",h.x-.5,h.y]]:(e&&f.push({x:h.x,y:h.y}),c=n?(0,o.getSplinePath)(f,!1,a):(0,o.getLinePath)(f,!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 l=(0,a.getStyle)(t,e,!e,"lineWidth"),u=t.connectNulls,c=t.isInCircle,f=t.points,h=t.showSinglePoint,p=(0,i.getPathPoints)(f,u,h),d=[],g=0,y=p.length;g<y;g++){var v=p[g];d=d.concat(s(v,c,n,r,o))}return l.path=d,l},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(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=r.__importDefault(n(45)),a=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 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(154)).default);e.default=i},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(37);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(38),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 l(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 u(t){var e=t.start,n=t.end;return e.x===n.x}e.getLineAxisRelativeRegion=s,e.getCircleAxisRelativeRegion=l,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=l(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=u,e.getAxisFactorByRegion=function(t,e){var n=t.start,r=t.end;return u(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],l=[1,0],u=a.y>r.y?o.vec2.angle(s,l):-1*o.vec2.angle(s,l),c=u+(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:u,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";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 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 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 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 f(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 h(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=l,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},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=f,e.squaredLength=h,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],l=n[2];return t[0]=i*l-a*s,t[1]=a*o-r*l,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,l=o*(a-2)+a,u=o*(a-1),c=o*(3-2*a);return t[0]=e[0]*s+n[0]*l+r[0]*u+i[0]*c,t[1]=e[1]*s+n[1]*l+r[1]*u+i[1]*c,t[2]=e[2]*s+n[2]*l+r[2]*u+i[2]*c,t},e.bezier=function(t,e,n,r,i,a){var o=1-a,s=o*o,l=a*a,u=s*o,c=3*a*s,f=3*l*o,h=l*a;return t[0]=e[0]*u+n[0]*c+r[0]*f+i[0]*h,t[1]=e[1]*u+n[1]*c+r[1]*f+i[1]*h,t[2]=e[2]*u+n[2]*c+r[2]*f+i[2]*h,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],l=e[1],u=e[2],c=i*u-a*l,f=a*s-r*u,h=r*l-i*s,p=i*h-a*f,d=a*c-r*h,g=r*f-i*c,y=2*o;return c*=y,f*=y,h*=y,p*=2,d*=2,g*=2,t[0]=s+c+p,t[1]=l+f+d,t[2]=u+h+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],l=Math.sqrt(n*n+r*r+i*i)*Math.sqrt(a*a+o*o+s*s),u=l&&p(t,e)/l;return Math.acos(Math.min(Math.max(u,-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],l=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-l)<=i.EPSILON*Math.max(1,Math.abs(a),Math.abs(l))},e.sub=s,e.mul=l,e.div=u,e.dist=c,e.sqrDist=f,e.len=o,e.sqrLen=h,e.forEach=(r=a(),function(t,e,n,i,a,o){var s,l;for(e||(e=3),n||(n=0),l=i?Math.min(i*e+n,t.length):t.length,s=n;s<l;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],l=t[5],u=t[6],c=t[7],f=t[8],h=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]=h*r+p*o+d*u,n[1]=h*i+p*s+d*c,n[2]=h*a+p*l+d*f,n[3]=g*r+y*o+v*u,n[4]=g*i+y*s+v*c,n[5]=g*a+y*l+v*f,n[6]=m*r+_*o+x*u,n[7]=m*i+_*s+x*c,n[8]=m*a+_*l+x*f,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],l=t[6],u=t[7],c=t[8],f=c*o-s*u,h=-c*a+s*l,p=u*a-o*l,d=n*f+r*h+i*p;return d?(d=1/d,e[0]=f*d,e[1]=(-c*r+i*u)*d,e[2]=(s*r-i*o)*d,e[3]=h*d,e[4]=(c*n-i*l)*d,e[5]=(-s*n+i*a)*d,e[6]=p*d,e[7]=(-u*n+r*l)*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,l=0,u=0,c=0,f=0,h="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=h.now()+f)}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=(u=h.now())+f,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=h.now(),e=t-u;e>1e3&&(f-=e,u=t)}function b(t){o||(s&&(s=clearTimeout(s)),t-c>24?(t<1/0&&(s=setTimeout(_,t-h.now()-f)),l&&(l=clearInterval(l))):(l||(u=h.now(),l=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=i.__importDefault(n(167)),s=n(170),l=i.__importDefault(n(171)),u=i.__importDefault(n(68)),c=i.__importDefault(n(172)),f=i.__importDefault(n(173)),h=i.__importDefault(n(169)),p=i.__importStar(n(98));e.default=function(t,e){var n,i=r(e);return null==e||"boolean"===i?(0,h.default)(e):("number"===i?u.default:"string"===i?(n=(0,a.color)(e))?(e=n,o.default):f.default:e instanceof a.color?o.default:e instanceof Date?l.default:(0,p.isNumberArray)(e)?p.default:Array.isArray(e)?s.genericArray:"function"!=typeof e.valueOf&&"function"!=typeof e.toString||isNaN(e)?c.default:u.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*",l=/^#([0-9a-f]{3,8})$/,u=new RegExp("^rgb\\("+[a,a,a]+"\\)$"),c=new RegExp("^rgb\\("+[s,s,s]+"\\)$"),f=new RegExp("^rgba\\("+[a,a,a,o]+"\\)$"),h=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=l.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=u.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=f.exec(t))?x(e[1],e[2],e[3],e[4]):(e=h.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,l=o-a,u=(o+a)/2;return l?(s=e===o?(n-r)/l+6*(n<r):n===o?(r-e)/l+2:(e-n)/l+4,l/=u<.5?o+a:2-o-a,s*=60):l=u>0&&u<1?0:s,new E(s,l,u,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,l=i<e-1?t[i+2]:2*o-a;return r((n-i/e)*e,s,a,o,l)}}},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],l=(0,r.mod)((0,r.toRadian)(e[3]),2*Math.PI),u=e[4],c=e[5],f=t[0],h=t[1],p=e[6],d=e[7],g=Math.cos(l)*(f-p)/2+Math.sin(l)*(h-d)/2,y=-1*Math.sin(l)*(f-p)/2+Math.cos(l)*(h-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;u===c&&(_*=-1),isNaN(_)&&(_=0);var x=i?_*n*y/i:0,b=n?_*-i*g/n:0,M=(f+p)/2+Math.cos(l)*x-Math.sin(l)*b,C=(h+d)/2+Math.sin(l)*x+Math.cos(l)*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:l,arcFlag:u,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(5),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 l=r.__importDefault(n(400));e.Shape=l.default;var u=r.__importDefault(n(401));e.Size=u.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}}),(0,c.registerAttribute)("Color",a.default),(0,c.registerAttribute)("Opacity",o.default),(0,c.registerAttribute)("Position",s.default),(0,c.registerAttribute)("Shape",l.default),(0,c.registerAttribute)("Size",u.default),r.__exportStar(n(190),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(59));e.Scale=i.default;var a=r.__importDefault(n(192));e.Category=a.default;var o=r.__importDefault(n(403));e.TimeCat=o.default;var s=r.__importDefault(n(194));e.Linear=s.default;var l=r.__importDefault(n(405));e.Log=l.default;var u=r.__importDefault(n(406));e.Pow=u.default;var c=r.__importDefault(n(407));e.Time=c.default;var f=r.__importDefault(n(195));e.Quantize=f.default;var h=r.__importDefault(n(408));e.Quantile=h.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}}),(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",l.default),(0,p.registerScale)("pow",u.default),(0,p.registerScale)("time",c.default),(0,p.registerScale)("timeCat",o.default),(0,p.registerScale)("quantize",f.default),(0,p.registerScale)("quantile",h.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=[],l=Math.max((o-a)/(Math.pow(2,12)-1),n),u=a;u<=o;u+=l){var c=(0,r.fixedBase)(u,l);s.push(c)}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,l=t.max,u=t.tickCount,c=void 0===u?5:u,f=(0,r.isNil)(a)?(0,r.isNil)(e)?s:e:a,h=(0,r.isNil)(o)?(0,r.isNil)(n)?l:n:o;if(f>h&&(h=(i=[f,h])[0],f=i[1]),c<=2)return[f,h];for(var p=(h-f)/(c-1),d=[],g=0;g<c;g++)d.push(f+p*g);return d}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(12),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(8),o=n(1),s=r.__importDefault(n(9)),l=n(33),u=n(200),c=r.__importDefault(n(21)),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),{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,offsetX:0,offsetY:0},title:{autoRotate:!0,spacing:5,position:"center",style:{fontSize:12,fill:c.default.textColor,textBaseline:"middle",fontFamily:c.default.fontFamily,textAlign:"center"},iconStyle:{fill:c.default.descriptionIconFill,stroke:c.default.descriptionIconStroke},description:""},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],l=0;l<r;l++){var u=(l+1)/(r+1),c=(1-u)*o.tickValue+u*s.tickValue,f=this.getTickPoint(c),h=this.getSidePoint(f,n.length);e.push({startPoint:f,endPoint:h,tickValue:c,id:"sub-"+o.id+"-"+l})}return e},e.prototype.getTickLineAttrs=function(t,e,n,r){var a=this.get(e).style,s={points:[t.startPoint,t.endPoint]},l=(0,o.get)(this.get("theme"),["tickLine","style"],{});a=(0,o.isFunction)(a)?(0,o.mix)({},l,a(s,n,r)):a;var u=t.startPoint,c=t.endPoint;return(0,i.__assign)({x1:u.x,y1:u.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 l=this.getSubTickLineItems(i);(0,o.each)(l,(function(t,n){e.drawTick(t,a,"subTickLine",n,l)}))}},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.offsetX,s=r.offsetY,u=r.rotate,c=r.formatter,f=this.getSidePoint(t.point,i),h=this.getSideVector(i,f),p=c?c(t.name,t,e):t.name,d=r.style;d=(0,o.isFunction)(d)?(0,o.get)(this.get("theme"),["label","style"],{}):d;var g=(0,o.mix)({x:f.x+a,y:f.y+s,text:p,textAlign:this.getTextAnchor(h),textBaseline:this.getTextBaseline(h)},d);return u&&(g.matrix=(0,l.getMatrixByAngle)(f,u)),g},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"),l=s.style,u=s.formatter;if((0,o.isFunction)(l)){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=u?u(n.name,n,e):n.name,i=(0,o.mix)({},a,l(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,u=t.autoRotate,c=e.fontSize,f=.5;"start"===n?f=0:"end"===n&&(f=1);var h=this.getTickPoint(f),p=this.getSidePoint(h,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)&&u){var v=this.getAxisVector(h);y=a.ext.angleTo(v,[1,0],!0)}if(y){var m=(0,l.getMatrixByAngle)(p,y);d.matrix=m}return d},e.prototype.drawTitle=function(t){var e,n=this.getTitleAttrs(),r=this.addShape(t,{type:"text",id:this.getElementId("title"),name:"axis-title",attrs:n});(null===(e=this.get("title"))||void 0===e?void 0:e.description)&&this.drawDescriptionIcon(t,r,n.matrix)},e.prototype.drawDescriptionIcon=function(t,e,n){var r=this.addGroup(t,{name:"axis-description",id:this.getElementById("description")}),a=e.getBBox(),o=a.maxX,s=a.maxY,l=a.height,u=this.get("title").iconStyle,c=l/2,f=c/6,h=o+4,p=s-l/2,d=[h+c,p-c],g=d[0],y=d[1],v=[g+c,y+c],m=v[0],_=v[1],x=[g,_+c],b=x[0],M=x[1],C=[h,y+c],P=C[0],S=C[1],O=[h+c,p-l/4],w=O[0],A=O[1],T=[w,A+f],E=T[0],I=T[1],L=[E,I+f],D=L[0],B=L[1],j=[D,B+3*c/4],R=j[0],k=j[1];this.addShape(r,{type:"path",id:this.getElementId("title-description-icon"),name:"axis-title-description-icon",attrs:(0,i.__assign)({path:[["M",g,y],["A",c,c,0,0,1,m,_],["A",c,c,0,0,1,b,M],["A",c,c,0,0,1,P,S],["A",c,c,0,0,1,g,y],["M",w,A],["L",E,I],["M",D,B],["L",R,k]],lineWidth:f,matrix:n},u)}),this.addShape(r,{type:"rect",id:this.getElementId("title-description-rect"),name:"axis-title-description-rect",attrs:{x:h,y:p-l/2,width:l,height:l,stroke:"#000",fill:"#000",opacity:0,matrix:n,cursor:"pointer"}})},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,u.getStatesStyle)(t,"label",n);a&&i.attr(a)}var o=this.getElementId("tickline-"+t.id),s=e.findById(o);if(s){var l=(0,u.getStatesStyle)(t,"tickLine",n);l&&s.attr(l)}}},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,u.getStatesStyle)(t,"label",n);s&&i.attr(s)}if(o){var l=(0,u.getStatesStyle)(t,"tickLine",n);l&&o.attr(l)}}else i&&i.attr(r.style),o&&o.attr(a.style)},e}(s.default);e.default=f},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(33),l=r.__importDefault(n(21)),u=n(10),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:l.default.lineColor}},text:{position:"start",offset:10,autoRotate:!1,content:null,style:{fill:l.default.textColor,textAlign:"center",textBaseline:"middle",fontFamily:l.default.fontFamily}},textBackground:{padding:5,style:{stroke:l.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 l=this.getTextPoint(),u=null;if(r){var c=this.getRotateAngle();u=(0,s.getMatrixByAngle)(l,c)}this.addShape(t,{type:"text",name:"crosshair-text",id:this.getElementId("text"),attrs:(0,i.__assign)((0,i.__assign)((0,i.__assign)({},l),{text:o,matrix:u}),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,u.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=r.__importDefault(n(9)),s=r.__importDefault(n(21)),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:"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,l){var u=s.id||l;if(n){var c=e.getPathStyle();c=(0,a.isFunction)(c)?c(s,l,r):c;var f=e.getElementId("line-"+u),h=e.getGridPath(s.points);e.addShape(t,{type:"path",name:"grid-line",id:f,attrs:(0,a.mix)({path:h},c)})}if(i&&l>0){var p=e.getElementId("region-"+u),d=l%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=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(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=r.__importDefault(n(473)),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 l=n(204);Object.defineProperty(e,"Interaction",{enumerable:!0,get:function(){return r.__importDefault(l).default}});var u=n(77);Object.defineProperty(e,"Action",{enumerable:!0,get:function(){return u.Action}}),Object.defineProperty(e,"registerAction",{enumerable:!0,get:function(){return u.registerAction}}),Object.defineProperty(e,"getActionClass",{enumerable:!0,get:function(){return u.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=r.__spreadArray(r.__spreadArray([],r.__read(e),!1),r.__read(e),!1);break;case 3:e=r.__spreadArray(r.__spreadArray([],r.__read(e),!1),[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(19),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=".concat(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(41),o=n(36),s=r.__importDefault(n(88)),l=n(13),u=n(2),c=n(116),f=function(t){function e(e){var n=t.call(this,e)||this;n.labelShape=[],n.states=[];var r=e.shapeFactory,i=e.container,a=e.offscreenGroup,o=e.elementIndex,s=e.visible,l=void 0===s||s;return n.shapeFactory=r,n.container=i,n.offscreenGroup=a,n.visible=l,n.elementIndex=o,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?(0,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=[],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,l=n.shapeType,u=r.indexOf(t);if(e){if(u>-1)return;r.push(t),"active"!==t&&"selected"!==t||null==s||s.toFront()}else{if(-1===u)return;if(r.splice(u,1),"active"===t||"selected"===t){var c=this.geometry,f=c.sortZIndex,h=c.zIndexReversed?this.geometry.elements.length-this.elementIndex:this.elementIndex;f?s.setZIndex(h):s.set("zIndex",h)}}var p=i.drawShape(l,o,this.getOffscreenGroup());r.length?this.syncShapeStyle(s,p,r,null):this.syncShapeStyle(s,p,["reset"],null),p.remove(!0);var d={state:t,stateStatus:e,element:this,target:this.container};this.container.emit("statechange",d),(0,a.propagationDelegate)(this.shape,"statechange",d)},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?r.__assign(r.__assign({},a),{callback:function(){var t;(0,i.isFunction)(a.callback)&&a.callback(),null===(t=e.geometry)||void 0===t||t.emit(u.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,l=this.shapeType;if(this.shape=a.drawShape(l,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 f=e?"enter":"appear",h=this.getAnimateCfg(f);h&&(null===(n=this.geometry)||void 0===n||n.emit(u.GEOMETRY_LIFE_CIRCLE.BEFORE_DRAW_ANIMATE),(0,o.doAnimate)(this.shape,h,{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,f=this;if(void 0===n&&(n=[]),void 0===a&&(a=0),t&&e){var h=t.get("clipShape"),p=e.get("clipShape");if(this.syncShapeStyle(h,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=f.getStateStyle(t,v||a);e.attr(n)}}))}var m=(0,l.getReplaceAttrs)(t,e);this.animate?r?(null===(s=this.geometry)||void 0===s||s.emit(u.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.attr(m):(t.stopAnimate(),t.animate(m,{duration:300})):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=f},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}),e.getPath=void 0;var r=n(1),i=n(3),a=n(43),o=n(6),s=n(52),l=n(119),u=n(216);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 f(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=[],u=[];(0,r.each)(t,(function(t){var e=(0,l.splitPoints)(t);s.push(e[1]),u.push(e[0])}));var f=c(s,e,i,a,o),h=c(u,e,i,a,o);return n?f:f.concat(h)}(t,e,n,i,a,o):c(t,e,i,a,o)}return[]}e.getPath=f;var h=(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,l=s.start,u=s.end;r=[[l.x,u.y],[u.x,l.y]]}var c=function(t,e,n){for(var r=t.isStack,i=t.connectNulls,s=t.isInCircle,l=t.showSinglePoint,u=(0,o.getStyle)(t,!0,!1,"lineWidth"),c=(0,a.getPathPoints)(t.points,i,l),h=[],p=0,d=c.length;p<d;p++){var g=c[p];h=h.concat(f(g,s,r,e,n,u))}return u.path=h,u}(e,i,r);return n.addShape({type:"path",attrs:c,name:"line",capture:!i})},getMarker:function(e){return(0,u.getLineMarker)(e,t)}})})),e.default=h},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});var r=n(0),i=n(0),a=n(12),o=r.__importStar(n(62)),s=n(63),l=n(1),u=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,l.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,l.min)(e),a=(0,l.max)(e),o=(0,l.min)(n),s=(0,l.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 f=c.getViewRange();this.set("isInView",(0,u.intersectRect)(r,f))}}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(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],l=t.get("el");if("remove"===e)if(t.get("isClipShape")){var u=l&&l.parentNode,c=u&&u.parentNode;u&&c&&c.removeChild(u)}else l&&l.parentNode&&l.parentNode.removeChild(l);else if("show"===e)l.setAttribute("visibility","visible");else if("hide"===e)l.setAttribute("visibility","hidden");else if("zIndex"===e)(0,i.moveTo)(l,s.indexOf(t));else if("sort"===e){var f=t.get("children");f&&f.length&&(0,i.sortDom)(t,(function(t,e){return f.indexOf(t)-f.indexOf(e)?1:0}))}else"clear"===e?l&&(l.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(12),o=n(1),s=r.__importStar(n(82)),l=n(121),u=n(64),c=n(16),f=n(27),h=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,f.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,l.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,u.setClip)(this,t),this.createPath(t),e.length&&(0,l.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,u.setTransform)(this)},e}(a.AbstractGroup);e.default=h},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(2),a=r.__importDefault(n(34)),o=r.__importDefault(n(115));n(118);var s=n(212),l=n(213),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.updateElements=function(t,e){var n,i,a,u,c,f;void 0===e&&(e=!1);for(var h=new Map,p=new Map,d=[],g=0,y=0;y<t.length;y++){var v=t[y],m=this.getElementId(v);d.push(m),h.set(m,v),p.set(m,g),g++}this.elements=new Array(g);var _=(0,l.diff)(this.lastElementsMap,d),x=_.added,b=_.updated,M=_.removed;try{for(var C=r.__values(x),P=C.next();!P.done;P=C.next()){m=P.value,v=h.get(m);var S=this.getShapeFactory(),O=this.getShapeInfo(v);y=p.get(m);(T=new o.default({shapeFactory:S,container:this.container,offscreenGroup:this.getOffscreenGroup(),elementIndex:y})).geometry=this,T.animate=this.animateOption,T.draw(O,e),this.elementsMap[m]=T,this.elements[y]=T}}catch(t){n={error:t}}finally{try{P&&!P.done&&(i=C.return)&&i.call(C)}finally{if(n)throw n.error}}try{for(var w=r.__values(b),A=w.next();!A.done;A=w.next()){m=A.value,v=h.get(m);var T=this.lastElementsMap[m],E=(y=p.get(m),O=this.getShapeInfo(v),T.getModel());(this.isCoordinateChanged||(0,s.isModelChange)(E,O))&&(T.animate=this.animateOption,T.update(O)),this.elementsMap[m]=T,this.elements[y]=T}}catch(t){a={error:t}}finally{try{A&&!A.done&&(u=w.return)&&u.call(w)}finally{if(a)throw a.error}}try{for(var I=r.__values(M),L=I.next();!L.done;L=I.next()){m=L.value;(T=this.lastElementsMap[m]).animate=this.animateOption,T.destroy()}}catch(t){c={error:t}}finally{try{L&&!L.done&&(f=I.return)&&f.call(I)}finally{if(c)throw c.error}}},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.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,l=o.length,u=(0,i.getXDimensionLength)(t.coordinate),c=t.intervalPadding,f=t.dodgePadding,h=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);l=(a.max-a.min)/v,o.length>l&&(l=o.length)}var m=a.range,_=1/l,x=1;if(n.isPolar?x=n.isTransposed&&l>1?g:y:(a.isLinear&&(_*=m[1]-m[0]),x=d),!(0,r.isNil)(c)&&c>=0?_=(1-(l-1)*(c/u))/l:_*=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)(f)&&f>=0)_=(_-f/u*(b-1))/b;else!(0,r.isNil)(c)&&c>=0?(_*=x,_/=b):_/=b;_=_>=0?_:0}if(!(0,r.isNil)(h)&&h>=0){var M=h/u;_>M&&(_=M)}if(!(0,r.isNil)(p)&&p>=0){var C=p/u;_<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(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 l,u,c=(0,a.getStyle)(e,s,!s,"r"),f=t.parsePoints(e.points),h=f[0];if(e.isStack)h=f[1];else if(f.length>1){var p=n.addGroup();try{for(var d=r.__values(f),g=d.next();!g.done;g=d.next()){var y=g.value;p.addShape({type:"marker",attrs:r.__assign(r.__assign(r.__assign({},c),{symbol:i.MarkerSymbols[o]||o}),y)})}}catch(t){l={error:t}}finally{try{g&&!g.done&&(u=d.return)&&u.call(d)}finally{if(l)throw l.error}}return p}return n.addShape({type:"marker",attrs:r.__assign(r.__assign(r.__assign({},c),{symbol:i.MarkerSymbols[o]||o}),h)})}},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 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}(r.__importDefault(n(128)).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(4),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=(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 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})),l=r.getXScale().field,u=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,l,u)}));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}(r.__importDefault(n(128)).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 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}(r.__importDefault(n(128)).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(132),s=r.__importDefault(n(127)),l=n(2);e.STATUS_UNACTIVE=l.ELEMENT_STATE.INACTIVE,e.STATUS_ACTIVE=l.ELEMENT_STATE.ACTIVE;var u=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)(0,i.each)(t,(function(t){o.setElementHighlight(t,n)}));else{var s=(0,a.getElementsByState)(this.context.view,e.STATUS_ACTIVE),l=!0;(0,i.each)(s,(function(t){if(!n(t))return l=!1,!1})),l?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=u},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 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:".concat(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;(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}(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(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=r.__importDefault(n(35)),a=r.__importDefault(n(136));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=r.__importDefault(n(45)),a=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=n(0).__importDefault(n(7));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=n(0).__importDefault(n(7));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=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=r.__importDefault(n(45)),a=r.__importDefault(n(7)),o=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=r.__importDefault(n(7)),a=r.__importDefault(n(18)),o=r.__importDefault(n(143));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=r.__importDefault(n(7)),a=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]},l=0;l<t.length;l++){var u=t[l];n=s(u),o.call(r,n)?r[n].push(u):r[n]=[u]}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=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=r.__importDefault(n(85)),a=r.__importDefault(n(17)),o=r.__importDefault(n(30));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 l=Object.keys(e),u=Object.keys(n);if(l.length!==u.length)return!1;for(r=!0,s=0;s<l.length&&(r=t(e[l[s]],n[l[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=i.__importDefault(n(86)),s=i.__importDefault(n(147)),l=i.__importDefault(n(30));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,l.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 '".concat(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(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=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=r.__importDefault(n(88)),s=n(89),l=n(112),u=n(205),c=n(29),f=n(14),h=n(25),p=n(78),d=n(113),g=n(38),y=n(206),v=n(208),m=r.__importDefault(n(478)),_=r.__importDefault(n(114)),x=r.__importDefault(n(479)),b=n(480),M=n(209),C=n(481),P=n(482),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,l=e.canvas,c=e.backgroundGroup,f=e.middleGroup,h=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=l,n.backgroundGroup=c,n.middleGroup=f,n.foregroundGroup=h,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=(0,i.isObject)(_)?(0,i.deepMix)({},(0,u.getTheme)("default"),(0,y.createTheme)(_)):(0,u.getTheme)(_),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,_.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 '".concat(t,"' is not exist!"));return this.facetInstance=new n(this,r.__assign(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 \"".concat(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,u.getTheme)(t),this},e.prototype.interaction=function(t,e){var n=this.interactions[t];n&&n.destroy();var r=(0,l.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(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),(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,f.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,h.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,l=0,u=o.length;l<u;l++){var c=o[l];(s=(0,p.findDataByPoint)(t,c,a))&&n.push(s)}}var f=this.views;for(r=0,i=f.length;r<i;r++){var h=f[r].getSnapRecords(t);n=n.concat(h)}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(),this.controllers.find((function(t){return"tooltip"===t.name})).update();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,f.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=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,l=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(l)||(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:".concat(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 l={coordinate:e,scaleDefs:n,data:this.filteredData,theme:this.themeObject,isDataChanged:this.isDataChanged,isCoordinateChanged:this.isCoordinateChanged};t?s.update(l):s.init(l)}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,l=t.length;s<l;s++){var u=t[s],c=a[u],f=this.getScaleKey(u);this.createScale(u,e.includes(u)?r:o,c,f),this.createdScaleKeys.set(f,!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,h.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,h.uniq)(i,t,e)}return t},e.prototype.adjustScales=function(){this.adjustCategoryScaleRange()},e.prototype.adjustCategoryScaleRange=function(){var t=this,e=r.__spreadArray([this.getXScale()],r.__read(this.getYScales()),!1).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,l=e.isIdentity;(s||l)&&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,l=e.views,u=void 0===l?[]:l,c=e.annotations,f=void 0===c?[]:c,h=e.coordinate,p=e.events,d=e.facets;this.coordinateController?h&&this.coordinateController.update(h):this.coordinateController=new m.default(h);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<u.length;M++){var C=u[M];this.createView(C)}for(var P=this.getController("annotation"),S=0;S<f.length;S++){var O=f[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=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"".concat(this.id,"-").concat(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});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)},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.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=[],l=i.toLowerCase();if(a.replace(o,(function(t,e){e&&s.push(+e)})),"m"===l&&s.length>2&&(n.push([i].concat(s.splice(0,2))),l="l",i="m"===i?"l":"L"),"o"===l&&1===s.length&&n.push([i,s[0]]),"r"===l)n.push([i].concat(s));else for(;s.length>=e[l]&&(n.push([i].concat(s.splice(0,e[l]))),e[l]););return t})),n};e.parsePathString=s;var l=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=l;var u=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),l=t+n*Math.cos(-i*o);a=[["M",s,e+n*Math.sin(-r*o)],["A",n,n,0,+(i-r>180),0,l,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,f=0;"M"===t[0][0]&&(o=i=+t[0][1],c=a=+t[0][2],f++,r[0]=["M",i,a]);for(var h=3===t.length&&"M"===t[0][0]&&"R"===t[1][0].toUpperCase()&&"Z"===t[2][0].toUpperCase(),p=void 0,d=void 0,g=f,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(l(n,h));break;case"O":r.pop(),(n=u(i,a,d[1],d[2])).push(n[0]),r=r.concat(n);break;case"U":r.pop(),r=r.concat(u(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(l(n,h)),p=["R"].concat(d.slice(-2));else if("O"===e)r.pop(),(n=u(i,a,d[1],d[2])).push(n[0]),r=r.concat(n);else if("U"===e)r.pop(),r=r.concat(u(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 f=function(t,e,n,r){return[t,e,n,r,n,r]},h=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,l,u,c){r===i&&(r+=1);var f,h,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)h=c[0],p=c[1],d=c[2],g=c[3];else{e=(f=_(e,n,-v)).x,n=f.y,l=(f=_(l,u,-v)).x,u=f.y,e===l&&n===u&&(l+=1,u+=1);var x=(e-l)/2,b=(n-u)/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+l)/2,g=S*-i*x/r+(n+u)/2,h=Math.asin(((n-g)/i).toFixed(9)),p=Math.asin(((u-g)/i).toFixed(9)),h=e<d?Math.PI-h:h,p=l<d?Math.PI-p:p,h<0&&(h=2*Math.PI+h),p<0&&(p=2*Math.PI+p),s&&h>p&&(h-=2*Math.PI),!s&&p>h&&(p-=2*Math.PI)}var O=p-h;if(Math.abs(O)>y){var w=p,A=l,T=u;p=h+y*(s&&p>h?1:-1),m=t(l=d+r*Math.cos(p),u=g+i*Math.sin(p),r,i,a,0,s,A,T,[p,w,d,g])}O=p-h;var E=Math.cos(h),I=Math.sin(h),L=Math.cos(p),D=Math.sin(p),B=Math.tan(O/4),j=4/3*r*B,R=4/3*i*B,k=[e,n],F=[e+j*I,n-R*E],N=[l+j*D,u-R*L],G=[l,u];if(F[0]=2*k[0]-F[0],F[1]=2*k[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=[],l=[],u="",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(h(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(h(e.x,e.y,t[1],t[2],t[3],t[4]));break;case"L":t=["C"].concat(f(e.x,e.y,t[1],t[2]));break;case"H":t=["C"].concat(f(e.x,e.y,t[1],e.y));break;case"V":t=["C"].concat(f(e.x,e.y,e.x,t[1]));break;case"Z":t=["C"].concat(f(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&&(l[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]&&(u=r[m][0]),"C"!==u&&(s[m]=u,m&&(d=s[m-1])),r[m]=g(r[m],a,d),"A"!==s[m]&&"C"===u&&(s[m]="C"),y(r,m),i&&(i[m]&&(u=i[m][0]),"C"!==u&&(l[m]=u,m&&(d=l[m-1])),i[m]=g(i[m],o,d),"A"!==l[m]&&"C"===u&&(l[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,l){null===l&&(l=1);for(var u=(l=l>1?1:l<0?0:l)/2,c=[-.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],h=0,p=0;p<12;p++){var d=u*c[p]+u,g=v(d,t,n,i,o),y=v(d,e,r,a,s),m=g*g+y*y;h+=f[p]*Math.sqrt(m)}return u*h},_=function(t,e,n,r,i,a,o,s){for(var l,u,c,f,h=[],p=[[],[]],d=0;d<2;++d)if(0===d?(u=6*t-12*n+6*i,l=-3*t+9*n-9*i+3*o,c=3*n-3*t):(u=6*e-12*r+6*a,l=-3*e+9*r-9*a+3*s,c=3*r-3*e),Math.abs(l)<1e-12){if(Math.abs(u)<1e-12)continue;(f=-c/u)>0&&f<1&&h.push(f)}else{var g=u*u-4*c*l,y=Math.sqrt(g);if(!(g<0)){var v=(-u+y)/(2*l);v>0&&v<1&&h.push(v);var m=(-u-y)/(2*l);m>0&&m<1&&h.push(m)}}for(var _,x=h.length,b=x;x--;)_=1-(f=h[x]),p[0][x]=_*_*_*t+3*_*_*f*n+3*_*f*f*i+f*f*f*o,p[1][x]=_*_*_*e+3*_*_*f*r+3*_*f*f*a+f*f*f*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 l=(t-n)*(a-s)-(e-r)*(i-o);if(l){var u=((t*r-e*n)*(i-o)-(t-n)*(i*s-a*o))/l,c=((t*r-e*n)*(a-s)-(e-r)*(i*s-a*o))/l,f=+u.toFixed(2),h=+c.toFixed(2);if(!(f<+Math.min(t,n).toFixed(2)||f>+Math.max(t,n).toFixed(2)||f<+Math.min(i,o).toFixed(2)||f>+Math.max(i,o).toFixed(2)||h<+Math.min(e,r).toFixed(2)||h>+Math.max(e,r).toFixed(2)||h<+Math.min(a,s).toFixed(2)||h>+Math.max(a,s).toFixed(2)))return{x:u,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,l){(0,r.isArray)(t)||(t=[t,e,n,i,a,o,s,l]);var u=_.apply(null,t);return C(u.min.x,u.min.y,u.max.x-u.min.x,u.max.y-u.min.y)},S=function(t,e,n,r,i,a,o,s,l){var u=1-l,c=Math.pow(u,3),f=Math.pow(u,2),h=l*l,p=h*l,d=t+2*l*(n-t)+h*(i-2*n+t),g=e+2*l*(r-e)+h*(a-2*r+e),y=n+2*l*(i-n)+h*(o-2*i+n),v=r+2*l*(a-r)+h*(s-2*a+r);return{x:c*t+3*f*l*n+3*u*l*l*i+p*o,y:c*e+3*f*l*r+3*u*l*l*a+p*s,m:{x:d,y:g},n:{x:y,y:v},start:{x:u*t+l*n,y:u*e+l*r},end:{x:u*i+l*o,y:u*a+l*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={},l=n?0:[],u=0;u<r+1;u++){var c=S.apply(0,t.concat(u/r));a.push({x:c.x,y:c.y,t:u/r})}for(u=0;u<i+1;u++){c=S.apply(0,e.concat(u/i));o.push({x:c.x,y:c.y,t:u/i})}for(u=0;u<r;u++)for(var f=0;f<i;f++){var h=a[u],p=a[u+1],d=o[f],g=o[f+1],y=Math.abs(p.x-h.x)<.001?"y":"x",v=Math.abs(g.x-d.x)<.001?"y":"x",_=x(h.x,h.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=h.t+Math.abs((_[y]-h[y])/(p[y]-h[y]))*(p.t-h.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?l+=1:l.push({x:_.x,y:_.y,t1:M,t2:O}))}}return l};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,l,u,c,f,h;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=l=v[2];else{"C"===v[0]?(f=[r,i].concat(v.slice(1)),r=f[6],i=f[7]):(f=[r,i,r,i,s,l,s,l],r=s,i=l);for(var m=0,_=e.length;m<_;m++){var x=e[m];if("M"===x[0])a=u=x[1],o=c=x[2];else{"C"===x[0]?(h=[a,o].concat(x.slice(1)),a=h[6],o=h[7]):(h=[a,o,a,o,u,c,u,c],a=u,o=c);var b=O(f,h,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=f,b[M].bez2=h;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 l=w(a,o/(1-o*s));i.push(l.left),a=l.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 l=a.reduce((function(e,r,i){return i===n?e.concat(t[n]):e.concat(A(t[i],t[i+1],r))}),[]);return l.unshift(t[0]),"Z"!==e[r]&&"z"!==e[r]||l.push("Z"),l};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=[],l=0;l<=i;l++)s[l]=[],s[l][0]={min:l};for(var u=0;u<=a;u++)s[0][u]={min:u};for(l=1;l<=i;l++){n=t[l-1];for(u=1;u<=a;u++){r=e[u-1],o=T(n,r)?0:1;var c=s[l-1][u].min+1,f=s[l][u-1].min+1,h=s[l-1][u-1].min+o;s[l][u]=E(c,f,h)}}return s}(t,e),r=t.length,i=e.length,a=[],o=1,s=1;if(n[r][i].min!==r){for(var l=1;l<=r;l++){var u=n[l][l].min;s=l;for(var c=o;c<=i;c++)n[l][c].min<u&&(u=n[l][c].min,s=c);o=s,n[l][o].type&&a.push({index:l-1,type:n[l][o].type})}for(l=a.length-1;l>=0;l--)o=a[l].index,"add"===a[l].type?t.splice(o,0,[].concat(t[o])):t.splice(o,1)}var f=i-(r=t.length);if(r<i)for(l=0;l<f;l++)"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(154)),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";(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 l=/(nuhk|curl|Googlebot|Yammybot|Openbot|Slurp|MSNBot|Ask\ Jeeves\/Teoma|ia_archiver)/,u=[["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|$)/],["pie",/^Microsoft Pocket Internet Explorer\/(\d+\.\d+)$/],["pie",/^Mozilla\/\d\.\d+\s\(compatible;\s(?:MSP?IE|MSInternet Explorer) (\d+\.\d+);.*Windows CE.*\)$/],["netfront",/^Mozilla\/\d\.\d+.*NetFront\/(\d.\d)/],["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/],["Windows CE",/Windows CE|WinCE|Microsoft Pocket Internet Explorer/],["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 f(t){return""!==t&&u.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 h(t){var e=f(t);if(!e)return null;var i=e[0],s=e[1];if("searchbot"===i)return new o;var u=s[1]&&s[1].split(".").join("_").split("_").slice(0,3);u?u.length<3&&(u=n(n([],u,!0),function(t){for(var e=[],n=0;n<t;n++)e.push("0");return e}(3-u.length),!0)):u=[];var c=u.join("."),h=p(t),d=l.exec(t);return d&&d[1]?new a(i,c,h,d[1]):new r(i,c,h)}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?h(t):"undefined"==typeof document&&"undefined"!=typeof navigator&&"ReactNative"===navigator.product?new s:"undefined"!=typeof navigator?h(navigator.userAgent):d()},e.browserName=function(t){var e=f(t);return e?e[0]:null},e.parseUserAgent=h,e.detectOS=p,e.getNodeVersion=d}).call(this,n(323))},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(160)),s=n(39),l={};var u=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=[],l=this.getChildren().filter((function(t){return t.get("visible")&&(!t.isGroup()||t.isGroup()&&t.getChildren().length>0)}));return l.length>0?((0,s.each)(l,(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=[],l=this.getChildren().filter((function(t){return t.get("visible")&&(!t.isGroup()||t.isGroup()&&t.getChildren().length>0)}));return l.length>0?((0,s.each)(l,(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=l[r.type];i||(i=(0,s.upperFirst)(r.type),l[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=u},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(39),l=n(92),u=r.__importDefault(n(157)),c=o.ext.transform,f=["zIndex","capture","visible","type"],h=["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!==h.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,l.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,l.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,l.multiplyVec2)(e,t):t},e.prototype.invertFromMatrix=function(t){var e=this.attr("matrix");if(e){var n=(0,l.invert)(e);if(n)return(0,l.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)(f,(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,l,u,c=t[0],f=t[1],h=t[2],y=void 0===h?"easeLinear":h,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)(f)?(f=(u=f).duration,y=u.easing||"easeLinear",x=u.delay||0,o=u.repeat||o||!1,m=u.callback||a.noop,s=u.pauseCallback||a.noop,l=u.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:f,easing:y,repeat:o,callback:m,pauseCallback:s,resumeCallback:l,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],u=o.get("name");if(u){if((o.isGroup()||o.isCanvas&&o.isCanvas())&&n&&(0,s.isParent)(o,n))return"break";(0,a.isArray)(u)?(0,a.each)(u,(function(t){r.emitDelegateEvent(o,t,e)})):l.emitDelegateEvent(o,u,e)}},l=this,u=0;u<i.length;u++){if("break"===o(u))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}(u.default);e.default=y},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],l=e[5],u=e[6],c=e[7],f=e[8],h=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]=h*r+p*o+d*u,t[1]=h*i+p*s+d*c,t[2]=h*a+p*l+d*f,t[3]=g*r+y*o+v*u,t[4]=g*i+y*s+v*c,t[5]=g*a+y*l+v*f,t[6]=m*r+_*o+x*u,t[7]=m*i+_*s+x*c,t[8]=m*a+_*l+x*f,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,l,u){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]=l,c[8]=u,c},e.set=function(t,e,n,r,i,a,o,s,l,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]=l,t[8]=u,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],l=e[6],u=e[7],c=e[8],f=c*o-s*u,h=-c*a+s*l,p=u*a-o*l,d=n*f+r*h+i*p;return d?(d=1/d,t[0]=f*d,t[1]=(-c*r+i*u)*d,t[2]=(s*r-i*o)*d,t[3]=h*d,t[4]=(c*n-i*l)*d,t[5]=(-s*n+i*a)*d,t[6]=p*d,t[7]=(-u*n+r*l)*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],l=e[6],u=e[7],c=e[8];return t[0]=o*c-s*u,t[1]=i*u-r*c,t[2]=r*s-i*o,t[3]=s*l-a*c,t[4]=n*c-i*l,t[5]=i*a-n*s,t[6]=a*u-o*l,t[7]=r*l-n*u,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],l=t[7],u=t[8];return e*(u*a-o*l)+n*(-u*i+o*s)+r*(l*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],l=e[5],u=e[6],c=e[7],f=e[8],h=n[0],p=n[1];return t[0]=r,t[1]=i,t[2]=a,t[3]=o,t[4]=s,t[5]=l,t[6]=h*r+p*o+u,t[7]=h*i+p*s+c,t[8]=h*a+p*l+f,t},e.rotate=function(t,e,n){var r=e[0],i=e[1],a=e[2],o=e[3],s=e[4],l=e[5],u=e[6],c=e[7],f=e[8],h=Math.sin(n),p=Math.cos(n);return t[0]=p*r+h*o,t[1]=p*i+h*s,t[2]=p*a+h*l,t[3]=p*o-h*r,t[4]=p*s-h*i,t[5]=p*l-h*a,t[6]=u,t[7]=c,t[8]=f,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,l=i+i,u=n*o,c=r*o,f=r*s,h=i*o,p=i*s,d=i*l,g=a*o,y=a*s,v=a*l;return t[0]=1-f-d,t[3]=c-v,t[6]=h+y,t[1]=c+v,t[4]=1-u-d,t[7]=p-g,t[2]=h-y,t[5]=p+g,t[8]=1-u-f,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],l=e[6],u=e[7],c=e[8],f=e[9],h=e[10],p=e[11],d=e[12],g=e[13],y=e[14],v=e[15],m=n*s-r*o,_=n*l-i*o,x=n*u-a*o,b=r*l-i*s,M=r*u-a*s,C=i*u-a*l,P=c*g-f*d,S=c*y-h*d,O=c*v-p*d,w=f*y-h*g,A=f*v-p*g,T=h*v-p*y,E=m*T-_*A+x*w+b*O-M*S+C*P;return E?(E=1/E,t[0]=(s*T-l*A+u*w)*E,t[1]=(l*O-o*T-u*S)*E,t[2]=(o*A-s*O+u*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],l=t[5],u=t[6],c=t[7],f=t[8],h=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-h)<=r.EPSILON*Math.max(1,Math.abs(n),Math.abs(h))&&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(l-v)<=r.EPSILON*Math.max(1,Math.abs(l),Math.abs(v))&&Math.abs(u-m)<=r.EPSILON*Math.max(1,Math.abs(u),Math.abs(m))&&Math.abs(c-_)<=r.EPSILON*Math.max(1,Math.abs(c),Math.abs(_))&&Math.abs(f-x)<=r.EPSILON*Math.max(1,Math.abs(f),Math.abs(x))},e.mul=i,e.sub=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.mul=e.equals=e.exactEquals=e.multiplyScalarAndAdd=e.multiplyScalar=e.subtract=e.add=e.frob=e.str=e.targetTo=e.lookAt=e.orthoZO=e.ortho=e.orthoNO=e.perspectiveFromFieldOfView=e.perspectiveZO=e.perspective=e.perspectiveNO=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,e.sub=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],l=e[5],u=e[6],c=e[7],f=e[8],h=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*f+M*g,t[1]=_*i+x*l+b*h+M*y,t[2]=_*a+x*u+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*f+M*g,t[5]=_*i+x*l+b*h+M*y,t[6]=_*a+x*u+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*f+M*g,t[9]=_*i+x*l+b*h+M*y,t[10]=_*a+x*u+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*f+M*g,t[13]=_*i+x*l+b*h+M*y,t[14]=_*a+x*u+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,l=i+i,u=a+a,c=r*s,f=r*l,h=r*u,p=i*l,d=i*u,g=a*u,y=o*s,v=o*l,m=o*u;return t[0]=1-(p+g),t[1]=f+m,t[2]=h-v,t[3]=0,t[4]=f-m,t[5]=1-(c+g),t[6]=d+y,t[7]=0,t[8]=h+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],l=e[8],u=e[9],c=e[10];return t[0]=Math.hypot(n,r,i),t[1]=Math.hypot(a,o,s),t[2]=Math.hypot(l,u,c),t}function l(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}function u(t,e,n,r,i,a,o){var s=1/(e-n),l=1/(r-i),u=1/(a-o);return t[0]=-2*s,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=-2*l,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=2*u,t[11]=0,t[12]=(e+n)*s,t[13]=(i+r)*l,t[14]=(o+a)*u,t[15]=1,t}function c(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,l,u,c,f,h,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]=l,v[8]=u,v[9]=c,v[10]=f,v[11]=h,v[12]=p,v[13]=d,v[14]=g,v[15]=y,v},e.set=function(t,e,n,r,i,a,o,s,l,u,c,f,h,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]=l,t[8]=u,t[9]=c,t[10]=f,t[11]=h,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],l=e[6],u=e[7],c=e[8],f=e[9],h=e[10],p=e[11],d=e[12],g=e[13],y=e[14],v=e[15],m=n*s-r*o,_=n*l-i*o,x=n*u-a*o,b=r*l-i*s,M=r*u-a*s,C=i*u-a*l,P=c*g-f*d,S=c*y-h*d,O=c*v-p*d,w=f*y-h*g,A=f*v-p*g,T=h*v-p*y,E=m*T-_*A+x*w+b*O-M*S+C*P;return E?(E=1/E,t[0]=(s*T-l*A+u*w)*E,t[1]=(i*A-r*T-a*w)*E,t[2]=(g*C-y*M+v*b)*E,t[3]=(h*M-f*C-p*b)*E,t[4]=(l*O-o*T-u*S)*E,t[5]=(n*T-i*O+a*S)*E,t[6]=(y*x-d*C-v*_)*E,t[7]=(c*C-h*x+p*_)*E,t[8]=(o*A-s*O+u*P)*E,t[9]=(r*O-n*A-a*P)*E,t[10]=(d*M-g*x+v*m)*E,t[11]=(f*x-c*M-p*m)*E,t[12]=(s*S-o*w-l*P)*E,t[13]=(n*w-r*S+i*P)*E,t[14]=(g*_-d*b-y*m)*E,t[15]=(c*b-f*_+h*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],l=e[6],u=e[7],c=e[8],f=e[9],h=e[10],p=e[11],d=e[12],g=e[13],y=e[14],v=e[15];return t[0]=s*(h*v-p*y)-f*(l*v-u*y)+g*(l*p-u*h),t[1]=-(r*(h*v-p*y)-f*(i*v-a*y)+g*(i*p-a*h)),t[2]=r*(l*v-u*y)-s*(i*v-a*y)+g*(i*u-a*l),t[3]=-(r*(l*p-u*h)-s*(i*p-a*h)+f*(i*u-a*l)),t[4]=-(o*(h*v-p*y)-c*(l*v-u*y)+d*(l*p-u*h)),t[5]=n*(h*v-p*y)-c*(i*v-a*y)+d*(i*p-a*h),t[6]=-(n*(l*v-u*y)-o*(i*v-a*y)+d*(i*u-a*l)),t[7]=n*(l*p-u*h)-o*(i*p-a*h)+c*(i*u-a*l),t[8]=o*(f*v-p*g)-c*(s*v-u*g)+d*(s*p-u*f),t[9]=-(n*(f*v-p*g)-c*(r*v-a*g)+d*(r*p-a*f)),t[10]=n*(s*v-u*g)-o*(r*v-a*g)+d*(r*u-a*s),t[11]=-(n*(s*p-u*f)-o*(r*p-a*f)+c*(r*u-a*s)),t[12]=-(o*(f*y-h*g)-c*(s*y-l*g)+d*(s*h-l*f)),t[13]=n*(f*y-h*g)-c*(r*y-i*g)+d*(r*h-i*f),t[14]=-(n*(s*y-l*g)-o*(r*y-i*g)+d*(r*l-i*s)),t[15]=n*(s*h-l*f)-o*(r*h-i*f)+c*(r*l-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],l=t[7],u=t[8],c=t[9],f=t[10],h=t[11],p=t[12],d=t[13],g=t[14],y=t[15];return(e*o-n*a)*(f*y-h*g)-(e*s-r*a)*(c*y-h*d)+(e*l-i*a)*(c*g-f*d)+(n*s-r*o)*(u*y-h*p)-(n*l-i*o)*(u*g-f*p)+(r*l-i*s)*(u*d-c*p)},e.multiply=a,e.translate=function(t,e,n){var r,i,a,o,s,l,u,c,f,h,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],l=e[5],u=e[6],c=e[7],f=e[8],h=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]=l,t[6]=u,t[7]=c,t[8]=f,t[9]=h,t[10]=p,t[11]=d,t[12]=r*g+s*y+f*v+e[12],t[13]=i*g+l*y+h*v+e[13],t[14]=a*g+u*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,l,u,c,f,h,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)),l=e[0],u=e[1],c=e[2],f=e[3],h=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]=l*x+h*b+y*M,t[1]=u*x+p*b+v*M,t[2]=c*x+d*b+m*M,t[3]=f*x+g*b+_*M,t[4]=l*C+h*P+y*S,t[5]=u*C+p*P+v*S,t[6]=c*C+d*P+m*S,t[7]=f*C+g*P+_*S,t[8]=l*O+h*w+y*A,t[9]=u*O+p*w+v*A,t[10]=c*O+d*w+m*A,t[11]=f*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],l=e[7],u=e[8],c=e[9],f=e[10],h=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+u*r,t[5]=o*i+c*r,t[6]=s*i+f*r,t[7]=l*i+h*r,t[8]=u*i-a*r,t[9]=c*i-o*r,t[10]=f*i-s*r,t[11]=h*i-l*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],l=e[3],u=e[8],c=e[9],f=e[10],h=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-u*r,t[1]=o*i-c*r,t[2]=s*i-f*r,t[3]=l*i-h*r,t[8]=a*r+u*i,t[9]=o*r+c*i,t[10]=s*r+f*i,t[11]=l*r+h*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],l=e[3],u=e[4],c=e[5],f=e[6],h=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+u*r,t[1]=o*i+c*r,t[2]=s*i+f*r,t[3]=l*i+h*r,t[4]=u*i-a*r,t[5]=c*i-o*r,t[6]=f*i-s*r,t[7]=h*i-l*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],l=n[1],u=n[2],c=Math.hypot(s,l,u);return c<r.EPSILON?null:(s*=c=1/c,l*=c,u*=c,i=Math.sin(e),o=1-(a=Math.cos(e)),t[0]=s*s*o+a,t[1]=l*s*o+u*i,t[2]=u*s*o-l*i,t[3]=0,t[4]=s*l*o-u*i,t[5]=l*l*o+a,t[6]=u*l*o+s*i,t[7]=0,t[8]=s*u*o+l*i,t[9]=l*u*o-s*i,t[10]=u*u*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],l=e[3],u=e[4],c=e[5],f=e[6],h=e[7],p=i*i+a*a+s*s+l*l;return p>0?(n[0]=2*(u*l+h*i+c*s-f*a)/p,n[1]=2*(c*l+h*a+f*i-u*s)/p,n[2]=2*(f*l+h*s+u*a-c*i)/p):(n[0]=2*(u*l+h*i+c*s-f*a),n[1]=2*(c*l+h*a+f*i-u*s),n[2]=2*(f*l+h*s+u*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],l=e[0]*i,u=e[1]*a,c=e[2]*o,f=e[4]*i,h=e[5]*a,p=e[6]*o,d=e[8]*i,g=e[9]*a,y=e[10]*o,v=l+h+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]=(u-f)/m):l>h&&l>y?(m=2*Math.sqrt(1+l-h-y),t[3]=(p-g)/m,t[0]=.25*m,t[1]=(u+f)/m,t[2]=(d+c)/m):h>y?(m=2*Math.sqrt(1+h-l-y),t[3]=(d-c)/m,t[0]=(u+f)/m,t[1]=.25*m,t[2]=(p+g)/m):(m=2*Math.sqrt(1+y-l-h),t[3]=(u-f)/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],l=i+i,u=a+a,c=o+o,f=i*l,h=i*u,p=i*c,d=a*u,g=a*c,y=o*c,v=s*l,m=s*u,_=s*c,x=r[0],b=r[1],M=r[2];return t[0]=(1-(d+y))*x,t[1]=(h+_)*x,t[2]=(p-m)*x,t[3]=0,t[4]=(h-_)*b,t[5]=(1-(f+y))*b,t[6]=(g+v)*b,t[7]=0,t[8]=(p+m)*M,t[9]=(g-v)*M,t[10]=(1-(f+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],l=e[3],u=a+a,c=o+o,f=s+s,h=a*u,p=a*c,d=a*f,g=o*c,y=o*f,v=s*f,m=l*u,_=l*c,x=l*f,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-(h+v))*M,L=(y+m)*M,D=(d+_)*C,B=(y-m)*C,j=(1-(h+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,l=i+i,u=n*o,c=r*o,f=r*s,h=i*o,p=i*s,d=i*l,g=a*o,y=a*s,v=a*l;return t[0]=1-f-d,t[1]=c+v,t[2]=h-y,t[3]=0,t[4]=c-v,t[5]=1-u-d,t[6]=p+g,t[7]=0,t[8]=h+y,t[9]=p-g,t[10]=1-u-f,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),l=1/(i-r),u=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*l,t[6]=0,t[7]=0,t[8]=(n+e)*s,t[9]=(i+r)*l,t[10]=(o+a)*u,t[11]=-1,t[12]=0,t[13]=0,t[14]=o*a*2*u,t[15]=0,t},e.perspectiveNO=l,e.perspective=l,e.perspectiveZO=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*a,t[14]=i*r*a):(t[10]=-1,t[14]=-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),l=2/(o+s),u=2/(i+a);return t[0]=l,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=u,t[6]=0,t[7]=0,t[8]=-(o-s)*l*.5,t[9]=(i-a)*u*.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.orthoNO=u,e.ortho=u,e.orthoZO=function(t,e,n,r,i,a,o){var s=1/(e-n),l=1/(r-i),u=1/(a-o);return t[0]=-2*s,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=-2*l,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=u,t[11]=0,t[12]=(e+n)*s,t[13]=(i+r)*l,t[14]=a*u,t[15]=1,t},e.lookAt=function(t,e,n,a){var o,s,l,u,c,f,h,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):(h=y-M,p=v-C,d=m-P,o=x*(d*=g=1/Math.hypot(h,p,d))-b*(p*=g),s=b*(h*=g)-_*d,l=_*p-x*h,(g=Math.hypot(o,s,l))?(o*=g=1/g,s*=g,l*=g):(o=0,s=0,l=0),u=p*l-d*s,c=d*o-h*l,f=h*s-p*o,(g=Math.hypot(u,c,f))?(u*=g=1/g,c*=g,f*=g):(u=0,c=0,f=0),t[0]=o,t[1]=u,t[2]=h,t[3]=0,t[4]=s,t[5]=c,t[6]=p,t[7]=0,t[8]=l,t[9]=f,t[10]=d,t[11]=0,t[12]=-(o*y+s*v+l*m),t[13]=-(u*y+c*v+f*m),t[14]=-(h*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],l=r[1],u=r[2],c=i-n[0],f=a-n[1],h=o-n[2],p=c*c+f*f+h*h;p>0&&(c*=p=1/Math.sqrt(p),f*=p,h*=p);var d=l*h-u*f,g=u*c-s*h,y=s*f-l*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]=f*y-h*g,t[5]=h*d-c*y,t[6]=c*g-f*d,t[7]=0,t[8]=c,t[9]=f,t[10]=h,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=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[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],l=t[5],u=t[6],c=t[7],f=t[8],h=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(l-P)<=r.EPSILON*Math.max(1,Math.abs(l),Math.abs(P))&&Math.abs(u-S)<=r.EPSILON*Math.max(1,Math.abs(u),Math.abs(S))&&Math.abs(c-O)<=r.EPSILON*Math.max(1,Math.abs(c),Math.abs(O))&&Math.abs(f-w)<=r.EPSILON*Math.max(1,Math.abs(f),Math.abs(w))&&Math.abs(h-A)<=r.EPSILON*Math.max(1,Math.abs(h),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=c},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,l,u=n(0),c=u.__importStar(n(28)),f=u.__importStar(n(161)),h=u.__importStar(n(91)),p=u.__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],l=n[1],u=n[2],c=n[3];return t[0]=r*c+o*s+i*u-a*l,t[1]=i*c+o*l+a*s-r*u,t[2]=a*c+o*u+r*l-i*s,t[3]=o*c-r*s-i*l-a*u,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),l=o>0?s*Math.sin(o)/o:0;return t[0]=n*l,t[1]=r*l,t[2]=i*l,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,l,u=e[0],f=e[1],h=e[2],p=e[3],d=n[0],g=n[1],y=n[2],v=n[3];return(a=u*d+f*g+h*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,l=Math.sin(r*i)/o):(s=1-r,l=r),t[0]=s*u+l*d,t[1]=s*f+l*g,t[2]=s*h+l*y,t[3]=s*p+l*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),l=Math.cos(n);return t[0]=r*l+o*s,t[1]=i*l+a*s,t[2]=a*l-i*s,t[3]=o*l-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),l=Math.cos(n);return t[0]=r*l-a*s,t[1]=i*l+o*s,t[2]=a*l+r*s,t[3]=o*l-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),l=Math.cos(n);return t[0]=r*l+i*s,t[1]=i*l-r*s,t[2]=a*l+o*s,t[3]=o*l-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),l=Math.cos(n),u=Math.sin(r),c=Math.cos(r);return t[0]=a*l*c-o*s*u,t[1]=o*s*c+a*l*u,t[2]=o*l*u-a*s*c,t[3]=o*l*c+a*s*u,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=h.create(),i=h.fromValues(1,0,0),a=h.fromValues(0,1,0),function(t,n,o){var s=h.dot(n,o);return s<-.999999?(h.cross(r,i,n),h.len(r)<1e-6&&h.cross(r,a,n),h.normalize(r,r),g(t,r,Math.PI),t):s>.999999?(t[0]=0,t[1]=0,t[2]=0,t[3]=1,t):(h.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=(l=f.create(),function(t,n,r,i){return l[0]=r[0],l[3]=r[1],l[6]=r[2],l[1]=i[0],l[4]=i[1],l[7]=i[2],l[2]=-n[0],l[5]=-n[1],l[8]=-n[2],(0,e.normalize)(t,x(t,l))})},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 l(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){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 f(t){var e=t[0],n=t[1],r=t[2],i=t[3];return Math.hypot(e,n,r,i)}function h(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=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[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=u,e.squaredDistance=c,e.length=f,e.squaredLength=h,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],l=n[1]*r[3]-n[3]*r[1],u=n[2]*r[3]-n[3]*r[2],c=e[0],f=e[1],h=e[2],p=e[3];return t[0]=f*u-h*l+p*s,t[1]=-c*u+h*o-p*a,t[2]=c*l-f*o+p*i,t[3]=-c*s+f*a-h*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,l;e=e||1;do{s=(n=2*i.RANDOM()-1)*n+(r=2*i.RANDOM()-1)*r}while(s>=1);do{l=(a=2*i.RANDOM()-1)*a+(o=2*i.RANDOM()-1)*o}while(l>=1);var u=Math.sqrt((1-s)/l);return t[0]=e*n,t[1]=e*r,t[2]=e*a*u,t[3]=e*o*u,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],l=n[2],u=n[3],c=u*r+s*a-l*i,f=u*i+l*r-o*a,h=u*a+o*i-s*r,p=-o*r-s*i-l*a;return t[0]=c*u+p*-o+f*-l-h*-s,t[1]=f*u+p*-s+h*-o-c*-l,t[2]=h*u+p*-l+c*-s-f*-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],l=e[1],u=e[2],c=e[3];return Math.abs(n-s)<=i.EPSILON*Math.max(1,Math.abs(n),Math.abs(s))&&Math.abs(r-l)<=i.EPSILON*Math.max(1,Math.abs(r),Math.abs(l))&&Math.abs(a-u)<=i.EPSILON*Math.max(1,Math.abs(a),Math.abs(u))&&Math.abs(o-c)<=i.EPSILON*Math.max(1,Math.abs(o),Math.abs(c))},e.sub=o,e.mul=s,e.div=l,e.dist=u,e.sqrDist=c,e.len=f,e.sqrLen=h,e.forEach=(r=a(),function(t,e,n,i,a,o){var s,l;for(e||(e=4),n||(n=0),l=i?Math.min(i*e+n,t.length):t.length,s=n;s<l;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 l(t,e,n){return t[0]=e[0]/n[0],t[1]=e[1]/n[1],t}function u(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 f(t){var e=t[0],n=t[1];return Math.hypot(e,n)}function h(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=l,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=u,e.squaredDistance=c,e.length=f,e.squaredLength=h,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=f,e.sub=o,e.mul=s,e.div=l,e.dist=u,e.sqrDist=c,e.sqrLen=h,e.forEach=(r=a(),function(t,e,n,i,a,o){var s,l;for(e||(e=2),n||(n=0),l=i?Math.min(i*e+n,t.length):t.length,s=n;s<l;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}),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=r.__importDefault(n(97)),o=r.__importDefault(n(168)),s=r.__importStar(n(49));function l(t){return function(e){var n,r,a=e.length,o=new Array(a),s=new Array(a),l=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,l[n]=r.b||0;return o=t(o),s=t(s),l=t(l),r.opacity=1,function(t){return r.r=o(t),r.g=s(t),r.b=l(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),l=(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=l(e),t+""}}return r.gamma=t,r}(1),e.rgbBasis=l(a.default),e.rgbBasisClosed=l(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],l=t[(i+2)%e];return(0,r.basis)((n-i/e)*e,a,o,s,l)}}},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]=(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=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]=(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=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,l=i.lastIndex=a.lastIndex=0,u=-1,c=[],f=[];for(t+="",e+="";(n=i.exec(t))&&(o=a.exec(e));)(s=o.index)>l&&(s=e.slice(l,s),c[u]?c[u]+=s:c[++u]=s),(n=n[0])===(o=o[0])?c[u]?c[u]+=o:c[++u]=o:(c[++u]=null,f.push({i:u,x:(0,r.default)(n,o)})),l=a.lastIndex;return l<e.length&&(s=e.slice(l),c[u]?c[u]+=s:c[++u]=s),c.length<2?f[0]?function(t){return function(e){return t(e)+""}}(f[0].x):function(t){return function(){return t}}(e):(e=f.length,function(t){for(var n,r=0;r<e;++r)c[(n=f[r]).i]=n.x(t);return c.join("")})}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.registerEasing=e.getEasing=void 0;var r=n(0).__importStar(n(348)),i={};e.getEasing=function(t){return i[t.toLowerCase()]||r[t]},e.registerEasing=function(t,e){i[t.toLowerCase()]=e}},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}),e.snapLength=e.nearestPoint=void 0;var r=n(32);e.nearestPoint=function(t,e,n,i,a,o){var s,l=1/0,u=[n,i],c=20;o&&o>200&&(c=o/10);for(var f=1/c,h=f/10,p=0;p<=c;p++){var d=p*f,g=[a.apply(null,t.concat([d])),a.apply(null,e.concat([d]))];(_=(0,r.distance)(u[0],u[1],g[0],g[1]))<l&&(s=d,l=_)}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(l=1/0,p=0;p<32&&!(h<1e-4);p++){var v=s-h,m=s+h,_=(g=[a.apply(null,t.concat([v])),a.apply(null,e.concat([v]))],(0,r.distance)(u[0],u[1],g[0],g[1]));if(v>=0&&_<l)s=v,l=_;else{var x=[a.apply(null,t.concat([m])),a.apply(null,e.concat([m]))],b=(0,r.distance)(u[0],u[1],x[0],x[1]);m<=1&&b<l?(s=m,l=b):h*=.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],l=t[(a+1)%i],u=e[(a+1)%i];n+=(0,r.distance)(o,s,l,u)}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(32);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]),l={from:a,to:o,length:s};n.push(l),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,l=null,u=0;u<i.length;u++){var c=i[u],f=c.from,h=c.to,p=c.length/o;if(e>=s&&e<=s+p){var d=(e-s)/p;l=r.default.pointAt(f[0],f[1],h[0],h[1],d);break}s+=p}return l},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,l=0;l<r.length;l++){var u=r[l],c=u.from,f=u.to,h=u.length/i;if(e>=o&&e<=o+h){s=Math.atan2(f[1]-c[1],f[0]-c[0]);break}o+=h}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],l=r.default.pointDistance(o[0],o[1],s[0],s[1],e,n);l<i&&(i=l)}return i}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(177),i=n(32);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(180);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=n(0).__importDefault(n(184)),i=n(383);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),l={x1:0,y1:0,x2:0,y2:0,x:0,y:0,qx:null,qy:null},u=[],c="",f=s.length,h=[],p=0;p<f;p+=1)s[p]&&(c=s[p][0]),u[p]=c,s[p]=(0,i.segmentToCubic)(s[p],l),a(s,u,p),f=s.length,"Z"===c&&h.push(p),o=(n=s[p]).length,l.x1=+n[o-2],l.y1=+n[o-1],l.x2=+n[o-4]||l.x1,l.y2=+n[o-3]||l.y1;return e?[s,h]:s}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0).__importDefault(n(185)),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 l=[],u=0,c=0,f=0,h=0,p=0,d=e[0];"M"!==d[0]&&"m"!==d[0]||(f=u=+d[1],h=c=+d[2],p++,l[0]=["M",u,c]),o=p;for(var g=e.length;o<g;o++){var y=e[o],v=l[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]+u,m[7]=+y[7]+c;break;case"V":m[1]=+y[1]+c;break;case"H":m[1]=+y[1]+u;break;case"M":f=+y[1]+u,h=+y[2]+c,m[1]=f,m[2]=h;break;default:for(var x=1,b=y.length;x<b;x++)m[x]=+y[x]+(x%2?u:c)}else m=e[o];switch(_){case"Z":u=+f,c=+h;break;case"H":m=["L",u=m[1],c];break;case"V":m=["L",u,c=m[1]];break;case"T":u=m[1],c=m[2];var M=a([v[1],v[2]],[v[3],v[4]]);m=["Q",M[0],M[1],u,c];break;case"S":u=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],u,c];break;case"M":f=m[m.length-2],h=m[m.length-1];break;default:u=m[m.length-2],c=m[m.length-1]}l.push(m)}return l}},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,l=e.y-t.y,u=i.x-n.x,c=i.y-n.y,f=s*c-l*u,h=null;if(f*f>.001*(s*s+l*l)*(u*u+c*c)){var p=(a*c-o*u)/f,d=(a*l-o*s)/f;r(p,0,1)&&r(d,0,1)&&(h={x:t.x+p*s,y:t.y+p*l})}return h}},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 l=t[s],u=t[(s+1)%o];if(i(l,u,[e,n]))return!0;r(l[1]-n)>0!=r(u[1]-n)>0&&r(e-(n-l[1])*(l[0]-u[0])/(l[1]-u[1])-l[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(5),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(51));e.Adjust=a.default;var o=r.__importDefault(n(393)),s=r.__importDefault(n(394)),l=r.__importDefault(n(395)),u=r.__importDefault(n(396));(0,i.registerAdjust)("Dodge",o.default),(0,i.registerAdjust)("Jitter",s.default),(0,i.registerAdjust)("Stack",l.default),(0,i.registerAdjust)("Symmetric",u.default),r.__exportStar(n(189),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(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}(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 l(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=l;var u=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],c=["January","February","March","April","May","June","July","August","September","October","November","December"],f=o(c,3),h={dayNamesShort:o(u,3),dayNames:u,monthNamesShort:f,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=h;var p=l({},h),d=function(t){return p=l(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,"\\d\\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","\\d\\d?"],DD:["day","\\d\\d"],Do:["day","\\d\\d?"+i,function(t){return parseInt(t,10)}],M:["month","\\d\\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","\\d\\d?",void 0,"isPm"],hh:["hour","\\d\\d",void 0,"isPm"],H:["hour","\\d\\d?"],HH:["hour","\\d\\d"],m:["minute","\\d\\d?"],mm:["minute","\\d\\d"],s:["second","\\d\\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 l(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=l(l({},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=[],u=e.replace(a,(function(t,e){return s.push(g(e)),"@@@"})),c={},f={};u=g(u).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&&(f[i]=!0),o.push(e),"("+r+")"})),Object.keys(f).forEach((function(t){if(!c[t])throw new Error("Invalid format. "+t+" is required in specified format")})),u=u.replace(/@@@/g,(function(){return s.shift()}));var h=t.match(new RegExp(u,"i"));if(!h)return null;for(var d,y=l(l({},p),n),v=1;v<h.length;v++){var m=o[v-1],_=m[0],x=m[2],b=x?x(h[v],y):+h[v];if(null==b)return null;i[_]=b}if(1===i.isPm&&null!=i.hour&&12!=+i.hour?i.hour=+i.hour+12:0===i.isPm&&12==+i.hour&&(i.hour=0),null==i.timezoneOffset){d=new Date(i.year,i.month,i.day,i.hour,i.minute,i.second,i.millisecond);for(var M=[["month","getMonth"],["day","getDate"],["hour","getHours"],["minute","getMinutes"],["second","getSeconds"]],S=(v=0,M.length);v<S;v++)if(c[M[v][0]]&&i[M[v][0]]!==d[M[v][1]]())return null}else if(d=new Date(Date.UTC(i.year,i.month,i.day,i.hour,i.minute-i.timezoneOffset,i.second,i.millisecond)),i.month>11||i.month<0||i.day>31||i.day<1||i.hour>23||i.hour<0||i.minute>59||i.minute<0||i.second>59||i.second<0)return null;return d}e.format=O,e.parse=w;var A={format:O,parse:w,defaultI18n:h,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}(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(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}(r.__importDefault(n(72)).default);e.default=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1);e.default=function(t){var e=t.values,n=t.tickInterval,i=t.tickCount,a=t.showLast;if((0,r.isNumber)(n)){var o=(0,r.filter)(e,(function(t,e){return e%n==0})),s=(0,r.last)(e);return a&&(0,r.last)(o)!==s&&o.push(s),o}var l=e.length,u=t.min,c=t.max;if((0,r.isNil)(u)&&(u=0),(0,r.isNil)(c)&&(c=e.length-1),!(0,r.isNumber)(i)||i>=l)return e.slice(u,c+1);if(i<=0||c<=0)return[];for(var f=1===i?l:Math.floor(l/(i-1)),h=[],p=u,d=0;d<i&&!(p>=c);d++)p=Math.min(u+d*f,c),d===i-1&&a?h.push(e[c]):h.push(e[p]);return h}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.prettyNumber=void 0,e.prettyNumber=function(t){return Math.abs(t)<1e-15?t:parseFloat(t.toFixed(15))}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(197);e.default=function(t,e,n){if(void 0===n&&(n=5),t===e)return{max:e,min:t,ticks:[t]};var i=n<0?0:Math.round(n);if(0===i)return{max:e,min:t,ticks:[]};var a=(e-t)/i,o=Math.pow(10,Math.floor(Math.log10(a))),s=o;2*o-a<1.5*(a-s)&&5*o-a<2.75*(a-(s=2*o))&&10*o-a<1.5*(a-(s=5*o))&&(s=10*o);for(var l=Math.ceil(e/s),u=Math.floor(t/s),c=Math.max(l*s,e),f=Math.min(u*s,t),h=Math.floor((c-f)/s)+1,p=new Array(h),d=0;d<h;d++)p[d]=(0,r.prettyNumber)(f+d*s);return{min:f,max:c,ticks:p}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.propagationDelegate=void 0;var r=n(12);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.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.autoEllipsis=e.autoRotate=e.autoHide=void 0;var r=n(0),i=r.__importStar(n(443));e.autoEllipsis=i;var a=r.__importStar(n(444));e.autoHide=a;var o=r.__importStar(n(445));e.autoRotate=o},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(474)),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(206),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(476);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(41),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}}},l=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},iconStyle:{fill:t.axisDescriptionIconFillColor}},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),u=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),l=7.5*Math.sin(i);return{matrix:a.ext.transform(null,[["t",o,l]])}}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:l,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)({},l.grid,{line:{type:"line"}})},radius:{title:null,grid:(0,o.deepMix)({},l.grid,{line:{type:"circle"}})}},legend:{common:u,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:u.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["".concat(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:"".concat(t.tooltipContainerBorderRadius,"px"),color:t.tooltipTextFillColor,fontSize:"".concat(t.tooltipTextFontSize,"px"),fontFamily:t.fontFamily,lineHeight:"".concat(t.tooltipTextLineHeight,"px"),padding:"0 12px 0 12px"},e["".concat(i.TOOLTIP_CSS_CONST.TITLE_CLASS)]={marginBottom:"12px",marginTop:"12px"},e["".concat(i.TOOLTIP_CSS_CONST.LIST_CLASS)]={margin:0,listStyleType:"none",padding:0},e["".concat(i.TOOLTIP_CSS_CONST.LIST_ITEM_CLASS)]={listStyleType:"none",padding:0,marginBottom:"12px",marginTop:"12px",marginLeft:0,marginRight:0},e["".concat(i.TOOLTIP_CSS_CONST.MARKER_CLASS)]={width:"8px",height:"8px",borderRadius:"50%",display:"inline-block",marginRight:"8px"},e["".concat(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=r.__read(t,4),n=e[0],i=e[1],a=e[2],o=e[3];return this.top=Math.max(this.top,n),this.right=Math.max(this.right,i),this.bottom=Math.max(this.bottom,a),this.left=Math.max(this.left,o),this},t.prototype.shrink=function(t){var e=r.__read(t,4),n=e[0],i=e[1],a=e[2],o=e[3];return this.top+=n,this.right+=i,this.bottom+=a,this.left+=o,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.__spreadArray([void 0],r.__read(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(19),o=n(14),s=n(13),l=n(78),u=n(29),c=n(42),f=r.__importDefault(n(114));var h=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",f.default.fromData(e,"tooltip:show",r.__assign({items:n,title:a},t)));var s=this.getTooltipCfg(),l=s.follow,u=s.showMarkers,c=s.showCrosshairs,h=s.showContent,p=s.marker,d=this.items,g=this.title;if((0,i.isEqual)(g,a)&&(0,i.isEqual)(d,n)?(this.tooltip&&l&&(this.tooltip.update(t),this.tooltip.show()),this.tooltipMarkersGroup&&this.tooltipMarkersGroup.show()):(e.emit("tooltip:change",f.default.fromData(e,"tooltip:change",r.__assign({items:n,title:a},t))),((0,i.isFunction)(h)?h(n):h)&&(this.tooltip||this.renderTooltip(),this.tooltip.update((0,i.mix)({},s,{items:this.getItemsAfterProcess(n),title:a},l?t:{})),this.tooltip.show()),u&&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",f.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,n,a,o,s,l,u=this.findItemsFromView(this.view,t);if(u.length){u=(0,i.flatten)(u);try{for(var c=r.__values(u),f=c.next();!f.done;f=c.next()){var h=f.value;try{for(var p=(a=void 0,r.__values(h)),d=p.next();!d.done;d=p.next()){var g=d.value,y=g.mappingData,v=y.x,m=y.y;g.x=(0,i.isArray)(v)?v[v.length-1]:v,g.y=(0,i.isArray)(m)?m[m.length-1]:m}}catch(t){a={error:t}}finally{try{d&&!d.done&&(o=p.return)&&o.call(p)}finally{if(a)throw a.error}}}}catch(t){e={error:t}}finally{try{f&&!f.done&&(n=c.return)&&n.call(c)}finally{if(e)throw e.error}}if(!1===this.getTooltipCfg().shared&&u.length>1){var _=u[0],x=Math.abs(t.y-_[0].y);try{for(var b=r.__values(u),M=b.next();!M.done;M=b.next()){var C=M.value,P=Math.abs(t.y-C[0].y);P<=x&&(_=C,x=P)}}catch(t){s={error:t}}finally{try{M&&!M.done&&(l=b.return)&&l.call(b)}finally{if(s)throw s.error}}u=[_]}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)(u))}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 u.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 r.__assign(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,e=this.view.getCanvas(),n={start:{x:0,y:0},end:{x:e.get("width"),y:e.get("height")}},i=this.getTooltipCfg(),o=new a.HtmlTooltip(r.__assign(r.__assign({parent:e.get("el").parentNode,region:n},i),{visible:!1,crosshairs:null}));o.init(),i.enterable&&(o.get("container").onmouseleave=function(){t.isTooltipLocked()||t.hideTooltip()}),this.tooltip=o},e.prototype.renderTooltipMarkers=function(t,e){var n,a,s=this.getTooltipMarkersGroup(),l=this.view.getRootView(),u=l.limitInPlot;try{for(var c=r.__values(t),f=c.next();!f.done;f=c.next()){var h=f.value,p=h.x,d=h.y;if(u||(null==s?void 0:s.getClip())){var g=(0,o.getCoordinateClipCfg)(l.getCoordinate()),y=g.type,v=g.attrs;null==s||s.setClip({type:y,attrs:v})}else null==s||s.setClip(void 0);var m=this.view.getTheme(),_=(0,i.get)(m,["components","tooltip","marker"],{}),x=r.__assign(r.__assign({fill:h.color,symbol:"circle",shadowColor:h.color},(0,i.isFunction)(e)?r.__assign(r.__assign({},_),e(h)):e),{x:p,y:d});s.addShape("marker",{attrs:x})}}catch(t){n={error:t}}finally{try{f&&!f.done&&(a=c.return)&&a.call(c)}finally{if(n)throw n.error}}},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,r,l=this.getViewWithGeometry(this.view).getCoordinate();if(l.isRect)l.isTransposed?(n={x:l.start.x,y:t.y},r={x:l.end.x,y:t.y}):(n={x:t.x,y:l.end.y},r={x:t.x,y:l.start.y});else{var u=(0,o.getAngleByPoint)(l,t),c=l.getCenter(),f=l.getRadius();r=(0,s.polarToCartesian)(c.x,c.y,f,u),n=c}var h=(0,i.deepMix)({start:n,end:r,container:this.getTooltipCrosshairsGroup()},(0,i.get)(e,"crosshairs",{}),this.getCrosshairsText("x",t,e));delete h.type;var p=this.xCrosshair;p?p.update(h):(p=new a.Crosshair.Line(h)).init(),p.render(),p.show(),this.xCrosshair=p},e.prototype.renderYCrosshairs=function(t,e){var n,r,s=this.getViewWithGeometry(this.view).getCoordinate();if(s.isRect){var l=void 0,u=void 0;s.isTransposed?(l={x:t.x,y:s.end.y},u={x:t.x,y:s.start.y}):(l={x:s.start.x,y:t.y},u={x:s.end.x,y:t.y}),n={start:l,end:u},r="Line"}else n={center:s.getCenter(),radius:(0,o.getDistanceToCenter)(s,t),startAngle:s.startAngle,endAngle:s.endAngle},r="Circle";delete(n=(0,i.deepMix)({container:this.getTooltipCrosshairsGroup()},n,(0,i.get)(e,"crosshairs",{}),this.getCrosshairsText("y",t,e))).type;var c=this.yCrosshair;c?s.isRect&&"circle"===c.get("type")||!s.isRect&&"line"===c.get("type")?(c=new a.Crosshair[r](n)).init():c.update(n):(c=new a.Crosshair[r](n)).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),l=o[0],u=s.getXScale(),c=s.getYScales()[0],f=void 0,h=void 0;if(a){var p=this.view.getCoordinate().invert(e);f=u.invert(p.x),h=c.invert(p.y)}else f=l.data[u.field],h=l.data[c.field];var d="x"===t?f:h;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){var n,i;if(!1===t.getOptions().tooltip)return[];var a=this.getTooltipCfg(),o=(0,l.findItemsFromView)(t,e,a);try{for(var s=r.__values(t.views),u=s.next();!u.done;u=s.next()){var c=u.value;o=o.concat(this.findItemsFromView(c,e))}}catch(t){n={error:t}}finally{try{u&&!u.done&&(i=s.return)&&i.call(s)}finally{if(n)throw n.error}}return o},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=h},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,r.__spreadArray([e],r.__read(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(214),s=n(25),l=n(61),u=["line","cross","tick","plus","hyphen"];function c(t){var e=t.symbol;(0,i.isString)(e)&&l.MarkerSymbols[e]&&(t.symbol=l.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,l){var f=n.getScale(n.type);if(f.isCategory){var h=f.field,p=e.getAttribute("color"),d=e.getAttribute("shape"),g=t.getTheme().defaultColor,y=e.coordinate.isPolar;return f.getTicks().map((function(n,v){var m,_=n.text,x=n.value,b=_,M=f.invert(x),C=0===t.filterFieldData(h,[(m={},m[h]=M,m)]).length;(0,i.each)(t.views,(function(t){var e;t.filterFieldData(h,[(e={},e[h]=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=l;return(0,i.isFunction)(T)&&(T=T(b,v,r.__assign({name:b,value:M},(0,i.deepMix)({},a,A)))),function(t,e){var n=t.symbol;if((0,i.isString)(n)&&-1!==u.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)(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.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.version=e.getArcParams=e.Shape=e.Group=e.Canvas=void 0;var r=n(0),i=r.__importStar(n(62));e.Shape=i,r.__exportStar(n(12),e);var a=n(502);Object.defineProperty(e,"Canvas",{enumerable:!0,get:function(){return r.__importDefault(a).default}});var o=n(120);Object.defineProperty(e,"Group",{enumerable:!0,get:function(){return r.__importDefault(o).default}});var s=n(219);Object.defineProperty(e,"getArcParams",{enumerable:!0,get:function(){return 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 l(t,e){var n=t.match(s);(0,r.each)(n,(function(t){var n=t.split(":");e.addColorStop(n[0],n[1])}))}function u(t,e,n){var r,a,o=i.exec(n),s=parseFloat(o[1])%360*(Math.PI/180),u=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 f=Math.tan(s),h=f*f,p=(a.x-r.x+f*(a.y-r.y))/(h+1)+r.x,d=f*(a.x-r.x+f*(a.y-r.y))/(h+1)+r.y,g=t.createLinearGradient(r.x,r.y,p,d);return l(u,g),g}function c(t,e,n){var r=a.exec(n),i=parseFloat(r[1]),o=parseFloat(r[2]),u=parseFloat(r[3]),c=r[4];if(0===u){var f=c.match(s);return f[f.length-1].split(":")[1]}var h=e.getBBox(),p=h.maxX-h.minX,d=h.maxY-h.minY,g=Math.sqrt(p*p+d*d)/2,y=t.createRadialGradient(h.minX+p*i,h.minY+d*o,0,h.minX+p/2,h.minY+d/2,u*g);return l(c,y),y}function f(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],l=a[2];function u(){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,l.match(/^data:/i)||(i.crossOrigin="Anonymous"),i.src=l,i.complete?u():(i.onload=u,i.src=i.src),r}e.parseLineGradient=u,e.parseRadialGradient=c,e.parsePattern=f,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 u(t,e,n);if("r"===n[0])return c(t,e,n);if("p"===n[0])return f(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),l=e[4],u=e[5],c=t[0],f=t[1],h=e[6],p=e[7],d=Math.cos(s)*(c-h)/2+Math.sin(s)*(f-p)/2,g=-1*Math.sin(s)*(c-h)/2+Math.cos(s)*(f-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;l===u&&(m*=-1),isNaN(m)&&(m=0);var _=i?m*n*g/i:0,x=n?m*-i*d/n:0,b=(c+h)/2+Math.cos(s)*_-Math.sin(s)*x,M=(f+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===u&&O>0&&(O-=2*Math.PI),1===u&&O<0&&(O+=2*Math.PI),{cx:b,cy:M,rx:(0,r.isSamePoint)(t,[h,p])?0:n,ry:(0,r.isSamePoint)(t,[h,p])?0:i,startAngle:S,endAngle:S+O,xRotation:s,arcFlag:l,sweepFlag:u}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(12);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 l=t[s],u=t[(s+1)%o];if(i(l,u,[e,n]))return!0;r(l[1]-n)>0!=r(u[1]-n)>0&&r(e-(n-l[1])*(l[0]-u[0])/(l[1]-u[1])-l[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,l){var u=(Math.atan2(l-e,s-t)+2*Math.PI)%(2*Math.PI);if(u<i||u>a)return!1;var c={x:t+n*Math.cos(u),y:e+n*Math.sin(u)};return(0,r.distance)(c.x,c.y,s,l)<=o/2}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=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 l=t[s][0],u=t[s][1],c=t[s+1][0],f=t[s+1][1];if((0,r.default)(l,u,c,f,e,n,i))return!0}if(a){var h=t[0],p=t[o-1];if((0,r.default)(h[0],h[1],p[0],p[1],e,n,i))return!0}return!1}},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=r.__importDefault(n(79)),l=Math.PI/2,u=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((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 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),l=t.labelEmit,u=this.getCirclePoint(s,o,r,l);return 0===u.r?u.content="":(u.content=a,u.angle=s,u.color=e.color),u.rotate=t.autoRotate?this.getLabelRotate(s,o,l):t.rotate,u.start={x:r.x,y:r.y},u},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(),l=(0,a.getDistanceToCenter)(o,n);if(0===l)return r.__assign(r.__assign({},s),{r:l});var u=t;o.isTransposed&&l>e&&!i?u=t+2*Math.asin(e/(2*l)):l+=e;return{x:s.x+l*Math.cos(u),y:s.y+l*Math.sin(u),r:l}},e.prototype.getLabelRotate=function(t,e,n){var r=t+l;return n&&(r-=l),r&&(r>l?r-=Math.PI:r<-l&&(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=u},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,l=Math.abs(o-s),u=0,c=Number.MIN_VALUE,f=r.map((function(t){return t.y>u&&(u=t.y),t.y<c&&(c=t.y),{content:t.content,size:e,targets:[t.y-o],pos:null}}));for(c-=o,u-o>l&&(l=u-o);a;)for(f.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),l-t.size),t.pos=Math.max(0,t.pos)})),a=!1,i=f.length;i--;)if(i>0){var h=f[i-1],p=f[i];h.pos+h.size>p.pos&&(h.size+=p.size,h.targets=h.targets.concat(p.targets),h.pos+h.size>l&&(h.pos=l-h.size),f.splice(i,1),a=!0)}i=0,f.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>(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}(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:(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}(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(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&&((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}(r.__importDefault(n(133)).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=i.__importDefault(n(11)),s=n(4);function l(t,e,n,r){var a=Math.min(n[e],r[e]),o=Math.max(n[e],r[e]),s=i.__read(t.range,2),l=s[0],u=s[1];if(a<l&&(a=l),o>u&&(o=u),a===u&&o===u)return null;var c=t.invert(a),f=t.invert(o);if(t.isCategory){var h=t.values.indexOf(c),p=t.values.indexOf(f),d=t.values.slice(h,p+1);return function(t){return d.includes(t)}}return function(t){return t>=c&&t<=f}}!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 u=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((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,u={view:o,event:i.event,dims:this.dims};o.emit(r.BEFORE_FILTER,a.Event.fromData(o,r.BEFORE_FILTER,u));var c=o.getCoordinate(),f=c.invert(e),h=c.invert(t);if(this.hasDim("x")){var p=o.getXScale(),d=l(p,"x",f,h);this.filterView(o,p.field,d)}if(this.hasDim("y")){var g=o.getYScales()[0];d=l(g,"y",f,h);this.filterView(o,g.field,d)}this.reRender(o,{source:r.FILTER}),o.emit(r.AFTER_FILTER,a.Event.fromData(o,r.AFTER_FILTER,u))}},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=u},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(77),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=e.VIEW_LIFE_CIRCLE=void 0;var r=n(0),i=n(23),a=n(488),o=n(207);(0,i.registerTheme)("dark",(0,o.createThemeByStyleSheet)(a.antvDark));var s=r.__importStar(n(217)),l=r.__importStar(n(504)),u=n(23);(0,u.registerEngine)("canvas",s),(0,u.registerEngine)("svg",l);var c=n(23),f=r.__importDefault(n(525)),h=r.__importDefault(n(527)),p=r.__importDefault(n(529)),d=r.__importDefault(n(530)),g=r.__importDefault(n(532)),y=r.__importDefault(n(123)),v=r.__importDefault(n(533)),m=r.__importDefault(n(535)),_=r.__importDefault(n(537)),x=r.__importDefault(n(539));(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",f.default),(0,c.registerGeometry)("Edge",h.default),(0,c.registerGeometry)("Heatmap",p.default),(0,c.registerGeometry)("Violin",x.default),n(541),n(542),n(543),n(544),n(545),n(546),n(547),n(548),n(549),n(550),n(551),n(552),n(553),n(554),n(555),n(556),n(557),n(558),n(559),n(560);var b=n(23),M=r.__importDefault(n(79)),C=r.__importDefault(n(561)),P=r.__importDefault(n(562)),S=r.__importDefault(n(225));(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(23),w=n(563),A=n(564),T=n(565),E=n(566),I=n(567),L=n(568),D=n(569),B=n(573),j=n(575),R=n(576),k=n(577),F=n(578),N=n(579);(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",R.intervalHideOverlap),(0,O.registerGeometryLabelLayout)("point-adjust-position",k.pointAdjustPosition),(0,O.registerGeometryLabelLayout)("pie-spider",T.pieSpiderLabelLayout),(0,O.registerGeometryLabelLayout)("path-adjust-position",F.pathAdjustPosition);var G=n(582),Y=n(583),V=n(585),H=n(586),z=n(587),X=n(588),W=n(589),q=n(590),U=n(23);(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",z.scaleInX),(0,U.registerAnimation)("scale-in-y",z.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",X.sectorPathUpdate),(0,U.registerAnimation)("path-in",V.pathIn);var Z=n(23),Q=r.__importDefault(n(591)),K=r.__importDefault(n(592)),$=r.__importDefault(n(593)),J=r.__importDefault(n(594)),tt=r.__importDefault(n(595)),et=r.__importDefault(n(596));(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(23),rt=r.__importDefault(n(597)),it=r.__importDefault(n(600)),at=r.__importDefault(n(602)),ot=r.__importDefault(n(603)),st=r.__importDefault(n(210)),lt=r.__importDefault(n(604));(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",lt.default);var ut=n(23),ct=r.__importDefault(n(605)),ft=r.__importDefault(n(606)),ht=r.__importDefault(n(227)),pt=r.__importDefault(n(607)),dt=r.__importDefault(n(608)),gt=r.__importDefault(n(609)),yt=r.__importDefault(n(610)),vt=r.__importDefault(n(611)),mt=r.__importDefault(n(131)),_t=r.__importDefault(n(612)),xt=r.__importDefault(n(613)),bt=r.__importStar(n(614));Object.defineProperty(e,"ELEMENT_RANGE_HIGHLIGHT_EVENTS",{enumerable:!0,get:function(){return bt.ELEMENT_RANGE_HIGHLIGHT_EVENTS}});var Mt=r.__importDefault(n(615)),Ct=r.__importDefault(n(616)),Pt=r.__importDefault(n(617)),St=r.__importDefault(n(618)),Ot=r.__importDefault(n(619)),wt=r.__importDefault(n(620)),At=r.__importDefault(n(622)),Tt=r.__importDefault(n(623)),Et=r.__importDefault(n(624)),It=r.__importDefault(n(625)),Lt=r.__importDefault(n(626)),Dt=r.__importDefault(n(627)),Bt=r.__importDefault(n(628)),jt=r.__importDefault(n(229)),Rt=r.__importDefault(n(228)),kt=r.__importDefault(n(629)),Ft=r.__importDefault(n(630)),Nt=r.__importDefault(n(631)),Gt=r.__importStar(n(230));Object.defineProperty(e,"BRUSH_FILTER_EVENTS",{enumerable:!0,get:function(){return Gt.BRUSH_FILTER_EVENTS}});var Yt=r.__importDefault(n(632)),Vt=r.__importDefault(n(633)),Ht=r.__importDefault(n(634)),zt=r.__importDefault(n(635)),Xt=r.__importDefault(n(636)),Wt=r.__importDefault(n(637)),qt=r.__importDefault(n(638)),Ut=r.__importDefault(n(639)),Zt=r.__importDefault(n(640)),Qt=r.__importDefault(n(641));(0,ut.registerAction)("tooltip",ht.default),(0,ut.registerAction)("sibling-tooltip",ft.default),(0,ut.registerAction)("ellipsis-text",pt.default),(0,ut.registerAction)("element-active",dt.default),(0,ut.registerAction)("element-single-active",vt.default),(0,ut.registerAction)("element-range-active",yt.default),(0,ut.registerAction)("element-highlight",mt.default),(0,ut.registerAction)("element-highlight-by-x",xt.default),(0,ut.registerAction)("element-highlight-by-color",_t.default),(0,ut.registerAction)("element-single-highlight",Mt.default),(0,ut.registerAction)("element-range-highlight",bt.default),(0,ut.registerAction)("element-sibling-highlight",bt.default,{effectSiblings:!0,effectByRecord:!0}),(0,ut.registerAction)("element-selected",Pt.default),(0,ut.registerAction)("element-single-selected",St.default),(0,ut.registerAction)("element-range-selected",Ct.default),(0,ut.registerAction)("element-link-by-color",gt.default),(0,ut.registerAction)("active-region",ct.default),(0,ut.registerAction)("list-active",Ot.default),(0,ut.registerAction)("list-selected",At.default),(0,ut.registerAction)("list-highlight",wt.default),(0,ut.registerAction)("list-unchecked",Tt.default),(0,ut.registerAction)("list-checked",Et.default),(0,ut.registerAction)("list-focus",It.default),(0,ut.registerAction)("list-radio",Lt.default),(0,ut.registerAction)("legend-item-highlight",wt.default,{componentNames:["legend"]}),(0,ut.registerAction)("axis-label-highlight",wt.default,{componentNames:["axis"]}),(0,ut.registerAction)("axis-description",Qt.default),(0,ut.registerAction)("rect-mask",Rt.default),(0,ut.registerAction)("x-rect-mask",Bt.default,{dim:"x"}),(0,ut.registerAction)("y-rect-mask",Bt.default,{dim:"y"}),(0,ut.registerAction)("circle-mask",Dt.default),(0,ut.registerAction)("path-mask",jt.default),(0,ut.registerAction)("smooth-path-mask",kt.default),(0,ut.registerAction)("cursor",Ft.default),(0,ut.registerAction)("data-filter",Nt.default),(0,ut.registerAction)("brush",Gt.default),(0,ut.registerAction)("brush-x",Gt.default,{dims:["x"]}),(0,ut.registerAction)("brush-y",Gt.default,{dims:["y"]}),(0,ut.registerAction)("sibling-filter",Yt.default),(0,ut.registerAction)("sibling-x-filter",Yt.default),(0,ut.registerAction)("sibling-y-filter",Yt.default),(0,ut.registerAction)("element-filter",Vt.default),(0,ut.registerAction)("element-sibling-filter",Ht.default),(0,ut.registerAction)("element-sibling-filter-record",Ht.default,{byRecord:!0}),(0,ut.registerAction)("view-drag",Xt.default),(0,ut.registerAction)("view-move",Wt.default),(0,ut.registerAction)("scale-translate",qt.default),(0,ut.registerAction)("scale-zoom",Ut.default),(0,ut.registerAction)("reset-button",zt.default,{name:"reset-button",text:"reset"}),(0,ut.registerAction)("mousewheel-scroll",Zt.default);var Kt=n(23);function $t(t){return t.isInPlot()}function Jt(t){return t.gEvent.preventDefault(),t.gEvent.originalEvent.deltaY>0}(0,Kt.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,Kt.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:mouseout",action:"ellipsis-text:hide"},{trigger:"axis-label:touchend",action:"ellipsis-text:hide"}]}),(0,Kt.registerInteraction)("element-active",{start:[{trigger:"element:mouseenter",action:"element-active:active"}],end:[{trigger:"element:mouseleave",action:"element-active:reset"}]}),(0,Kt.registerInteraction)("element-selected",{start:[{trigger:"element:click",action:"element-selected:toggle"}]}),(0,Kt.registerInteraction)("element-highlight",{start:[{trigger:"element:mouseenter",action:"element-highlight:highlight"}],end:[{trigger:"element:mouseleave",action:"element-highlight:reset"}]}),(0,Kt.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,Kt.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,Kt.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,Kt.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,Kt.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,Kt.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,Kt.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,Kt.registerInteraction)("brush",{showEnable:[{trigger:"plot:mouseenter",action:"cursor:crosshair"},{trigger:"plot:mouseleave",action:"cursor:default"}],start:[{trigger:"mousedown",isEnable:$t,action:["brush:start","rect-mask:start","rect-mask:show"]}],processing:[{trigger:"mousemove",isEnable:$t,action:["rect-mask:resize"]}],end:[{trigger:"mouseup",isEnable:$t,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,Kt.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,Kt.registerInteraction)("brush-x",{showEnable:[{trigger:"plot:mouseenter",action:"cursor:crosshair"},{trigger:"plot:mouseleave",action:"cursor:default"}],start:[{trigger:"mousedown",isEnable:$t,action:["brush-x:start","x-rect-mask:start","x-rect-mask:show"]}],processing:[{trigger:"mousemove",isEnable:$t,action:["x-rect-mask:resize"]}],end:[{trigger:"mouseup",isEnable:$t,action:["brush-x:filter","brush-x:end","x-rect-mask:end","x-rect-mask:hide"]}],rollback:[{trigger:"dblclick",action:["brush-x:reset"]}]}),(0,Kt.registerInteraction)("element-path-highlight",{showEnable:[{trigger:"plot:mouseenter",action:"cursor:crosshair"},{trigger:"plot:mouseleave",action:"cursor:default"}],start:[{trigger:"mousedown",isEnable:$t,action:"path-mask:start"},{trigger:"mousedown",isEnable:$t,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,Kt.registerInteraction)("element-single-selected",{start:[{trigger:"element:click",action:"element-single-selected:toggle"}]}),(0,Kt.registerInteraction)("legend-filter",{showEnable:[{trigger:"legend-item:mouseenter",action:["cursor:pointer","list-radio:show"]},{trigger:"legend-item:mouseleave",action:["cursor:default","list-radio:hide"]}],start:[{trigger:"legend-item:click",isEnable:function(t){return!t.isInShape("legend-item-radio")},action:["legend-item-highlight:reset","element-highlight:reset","list-unchecked:toggle","data-filter:filter","list-radio:show"]},{trigger:"legend-item-radio:mouseenter",action:["list-radio:showTip"]},{trigger:"legend-item-radio:mouseleave",action:["list-radio:hideTip"]},{trigger:"legend-item-radio:click",action:["list-focus:toggle","data-filter:filter","list-radio:show"]}]}),(0,Kt.registerInteraction)("continuous-filter",{start:[{trigger:"legend:valuechanged",action:"data-filter:filter"}]}),(0,Kt.registerInteraction)("continuous-visible-filter",{start:[{trigger:"legend:valuechanged",action:"element-filter:filter"}]}),(0,Kt.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:["legend-item-highlight:reset","element-highlight:reset","list-unchecked:toggle","element-filter:filter"]}]}),(0,Kt.registerInteraction)("active-region",{start:[{trigger:"plot:mousemove",action:"active-region:show"}],end:[{trigger:"plot:mouseleave",action:"active-region:hide"}]}),(0,Kt.registerInteraction)("axis-description",{start:[{trigger:"axis-description:mousemove",action:"axis-description:show"}],end:[{trigger:"axis-description:mouseleave",action:"axis-description:hide"}]}),(0,Kt.registerInteraction)("view-zoom",{start:[{trigger:"plot:mousewheel",isEnable:function(t){return Jt(t.event)},action:"scale-zoom:zoomOut",throttle:{wait:100,leading:!0,trailing:!1}},{trigger:"plot:mousewheel",isEnable:function(t){return!Jt(t.event)},action:"scale-zoom:zoomIn",throttle:{wait:100,leading:!0,trailing:!1}}]}),(0,Kt.registerInteraction)("sibling-tooltip",{start:[{trigger:"plot:mousemove",action:"sibling-tooltip:show"}],end:[{trigger:"plot:mouseleave",action:"sibling-tooltip:hide"}]}),(0,Kt.registerInteraction)("plot-mousewheel-scroll",{start:[{trigger:"plot:mousewheel",action:"mousewheel-scroll:scroll"}]});var te=n(2);Object.defineProperty(e,"VIEW_LIFE_CIRCLE",{enumerable:!0,get:function(){return te.VIEW_LIFE_CIRCLE}}),r.__exportStar(n(23),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(150),s=n(313),l=function(t){function e(e){var n=this,l=e.container,u=e.width,c=e.height,f=e.autoFit,h=void 0!==f&&f,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","axis-description"]:P,O=e.options,w=e.limitInPlot,A=e.theme,T=e.syncViewPadding,E=(0,i.isString)(l)?document.getElementById(l):l,I=(0,s.createDom)('<div style="position:relative;"></div>');E.appendChild(I);var L=(0,s.getChartSize)(E,h,u,c),D=new((0,o.getEngine)(y).Canvas)(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=h,n.localRefresh=_,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;(0,i.each)(t,(function(t){e.interaction(t)}))},e.prototype.aria=function(t){!1===t?this.ele.removeAttribute("aria-label"):this.ele.setAttribute("aria-label",t.label)},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.clear=function(){t.prototype.clear.call(this),this.aria(!1)},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}(r.__importDefault(n(153)).default);e.default=l},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=r.__importDefault(n(134)),a=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=r.__importDefault(n(18)),a=r.__importDefault(n(135)),o=r.__importDefault(n(7)),s=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=r.__importDefault(n(35)),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(!(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=n(0).__importDefault(n(7));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=n(0).__importDefault(n(7));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=r.__importDefault(n(7)),a=r.__importDefault(n(137)),o=r.__importDefault(n(138));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=r.__importDefault(n(17)),a=r.__importDefault(n(139));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 l=t[r];e(l,r,t)&&(n.push(l),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=r.__importDefault(n(7)),a=r.__importDefault(n(30)),o=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=n(0).__importDefault(n(141));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=r.__importDefault(n(7)),a=r.__importDefault(n(35));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 l=0;l<s.length;l++){var u=s[l];r[u]||(n.push(u),r[u]=!0)}}}return n}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=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=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=r.__importDefault(n(7)),a=r.__importDefault(n(30));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=r.__importDefault(n(7)),a=r.__importDefault(n(30));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=n(0).__importDefault(n(142));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=n(0).__importDefault(n(7));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=n(0).__importDefault(n(31));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=n(0).__importDefault(n(31));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=n(0).__importDefault(n(31)),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=n(0).__importDefault(n(31));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=n(0).__importDefault(n(31));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=n(0).__importDefault(n(31));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=r.__importDefault(n(7)),a=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],l=(0,a.default)(e)?e(s):s[e];l>r&&(n=s,r=l)}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(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],l=(0,a.default)(e)?e(s):s[e];l<r&&(n=s,r=l)}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(45));e.default=r.default},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0).__importDefault(n(144));e.default=r.default},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(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=n(0).__importDefault(n(46));e.default=function(t){return(0,r.default)(t).toLowerCase()}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0).__importDefault(n(46));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=n(0).__importDefault(n(46));e.default=function(t){return(0,r.default)(t).toUpperCase()}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0).__importDefault(n(46));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=n(0).__importDefault(n(24));e.default=function(t){return(0,r.default)(t,"Arguments")}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0).__importDefault(n(24));e.default=function(t){return(0,r.default)(t,"Boolean")}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0).__importDefault(n(24));e.default=function(t){return(0,r.default)(t,"Date")}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0).__importDefault(n(24));e.default=function(t){return(0,r.default)(t,"Error")}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0).__importDefault(n(31));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=n(0).__importDefault(n(24));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=r.__importDefault(n(87)),a=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=n(0).__importDefault(n(7));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=r.__importDefault(n(7)),a=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 l=e[s];null!==l&&(0,a.default)(l)?((0,a.default)(t[s])||(t[s]={}),n<r?o(t[s],l,n+1,r):t[s]=e[s]):(0,i.default)(l)?(t[s]=[],t[s]=t[s].concat(l)):void 0!==l&&(t[s]=l)}}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(87)),a=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=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=r.__importDefault(n(35)),a=r.__importDefault(n(17)),o=r.__importDefault(n(145)),s=r.__importDefault(n(146)),l=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(l.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(18)),a=r.__importDefault(n(148));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=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=r.__importDefault(n(35)),a=r.__importDefault(n(66)),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=n(0).__importDefault(n(30));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=r.__importDefault(n(66)),a=r.__importDefault(n(30)),o=r.__importDefault(n(31));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=r.__importDefault(n(45)),a=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=n(0).__importDefault(n(140));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 l=function(){s=!1===n.leading?0:Date.now(),r=null,o=t.apply(i,a),r||(i=a=null)},u=function(){var u=Date.now();s||!1!==n.leading||(s=u);var c=e-(u-s);return i=this,a=arguments,c<=0||c>e?(r&&(clearTimeout(r),r=null),s=u,o=t.apply(i,a),r||(i=a=null)):r||!1===n.trailing||(r=setTimeout(l,c)),o};return u.cancel=function(){clearTimeout(r),s=0,r=i=a=null},u}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=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=r.__importDefault(n(35)),a=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=r.__importDefault(n(30)),a=r.__importDefault(n(46)),o=r.__importDefault(n(149));e.default=function(t,e,n,r){void 0===r&&(r="...");var s,l,u=(0,o.default)(r,n),c=(0,i.default)(t)?t:(0,a.default)(t),f=e,h=[];if((0,o.default)(t,n)<=e)return t;for(;s=c.substr(0,16),!((l=(0,o.default)(s,n))+u>f&&l>f);)if(h.push(s),f-=l,!(c=c.substr(16)))return h.join("");for(;s=c.substr(0,1),!((l=(0,o.default)(s,n))+u>f);)if(h.push(s),f-=l,!(c=c.substr(1)))return h.join("");return""+h.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 l=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=l.width?l.width:o,s=l.height?l.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(47);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="string"==typeof t?t.replace(/(^\s*)|(\s*$)/g,""):t,n.innerHTML=""+t;var s=n.childNodes[0];return s&&n.contains(s)&&n.removeChild(s),s}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=r.__importDefault(n(58)),a=r.__importDefault(n(151));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=r.__importDefault(n(58)),a=r.__importDefault(n(152));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,l=parseFloat((0,i.default)(t,"borderRightWidth"))||0,u=parseFloat((0,i.default)(t,"marginRight"))||0;return n+r+l+o+s+(parseFloat((0,i.default)(t,"marginLeft"))||0)+u}},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,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0})},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(0),i=n(0),a=n(158),o=r.__importDefault(n(159)),s=n(39),l=r.__importDefault(n(328)),u=r.__importDefault(n(360)),c=(0,a.detect)(),f=c&&"firefox"===c.name,h=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 u.default({canvas:this});t.init(),this.set("eventController",t)},e.prototype.initTimeline=function(){var t=new l.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(f&&!(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=h},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 l,u=[],c=!1,f=-1;function h(){c&&l&&(c=!1,l.length?u=l.concat(u):f=-1,u.length&&p())}function p(){if(!c){var t=s(h);c=!0;for(var e=u.length;e;){for(l=u,u=[];++f<e;)l&&l[f].run();f=-1,e=u.length}l=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];u.push(new d(t,e)),1!==u.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],l=n[1],u=n[2],c=n[3];return t[0]=r*s+a*l,t[1]=i*s+o*l,t[2]=r*u+a*c,t[3]=i*u+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),l=Math.cos(n);return t[0]=r*l+a*s,t[1]=i*l+o*s,t[2]=r*-s+a*l,t[3]=i*-s+o*l,t},e.scale=function(t,e,n){var r=e[0],i=e[1],a=e[2],o=e[3],s=n[0],l=n[1];return t[0]=r*s,t[1]=i*s,t[2]=a*l,t[3]=o*l,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],l=e[1],u=e[2],c=e[3];return Math.abs(n-s)<=r.EPSILON*Math.max(1,Math.abs(n),Math.abs(s))&&Math.abs(i-l)<=r.EPSILON*Math.max(1,Math.abs(i),Math.abs(l))&&Math.abs(a-u)<=r.EPSILON*Math.max(1,Math.abs(a),Math.abs(u))&&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],l=e[5],u=n[0],c=n[1],f=n[2],h=n[3],p=n[4],d=n[5];return t[0]=r*u+a*c,t[1]=i*u+o*c,t[2]=r*f+a*h,t[3]=i*f+o*h,t[4]=r*p+a*d+s,t[5]=i*p+o*d+l,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],l=n*a-r*i;return l?(l=1/l,t[0]=a*l,t[1]=-r*l,t[2]=-i*l,t[3]=n*l,t[4]=(i*s-a*o)*l,t[5]=(r*o-n*s)*l,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],l=e[5],u=Math.sin(n),c=Math.cos(n);return t[0]=r*c+a*u,t[1]=i*c+o*u,t[2]=r*-u+a*c,t[3]=i*-u+o*c,t[4]=s,t[5]=l,t},e.scale=function(t,e,n){var r=e[0],i=e[1],a=e[2],o=e[3],s=e[4],l=e[5],u=n[0],c=n[1];return t[0]=r*u,t[1]=i*u,t[2]=a*c,t[3]=o*c,t[4]=s,t[5]=l,t},e.translate=function(t,e,n){var r=e[0],i=e[1],a=e[2],o=e[3],s=e[4],l=e[5],u=n[0],c=n[1];return t[0]=r,t[1]=i,t[2]=a,t[3]=o,t[4]=r*u+a*c+s,t[5]=i*u+o*c+l,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],l=t[5],u=e[0],c=e[1],f=e[2],h=e[3],p=e[4],d=e[5];return Math.abs(n-u)<=r.EPSILON*Math.max(1,Math.abs(n),Math.abs(u))&&Math.abs(i-c)<=r.EPSILON*Math.max(1,Math.abs(i),Math.abs(c))&&Math.abs(a-f)<=r.EPSILON*Math.max(1,Math.abs(a),Math.abs(f))&&Math.abs(o-h)<=r.EPSILON*Math.max(1,Math.abs(o),Math.abs(h))&&Math.abs(s-p)<=r.EPSILON*Math.max(1,Math.abs(s),Math.abs(p))&&Math.abs(l-d)<=r.EPSILON*Math.max(1,Math.abs(l),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],l=e[2],u=e[3];return t[0]=o,t[1]=s,t[2]=l,t[3]=u,t[4]=r*u+i*l-a*s,t[5]=i*u+a*o-r*l,t[6]=a*u+r*s-i*o,t[7]=-r*o-i*s-a*l,t}function l(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 u(t,e,n){var r=e[0],i=e[1],a=e[2],o=e[3],s=n[4],l=n[5],u=n[6],c=n[7],f=e[4],h=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*u-a*l+f*m+d*g+h*v-p*y,t[5]=i*c+o*l+a*s-r*u+h*m+d*y+p*g-f*v,t[6]=a*c+o*u+r*l-i*s+p*m+d*v+f*y-h*g,t[7]=o*c-r*s-i*l-a*u+d*m-f*g-h*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,l){var u=new i.ARRAY_TYPE(8);return u[0]=t,u[1]=e,u[2]=n,u[3]=r,u[4]=a,u[5]=o,u[6]=s,u[7]=l,u},e.fromRotationTranslationValues=function(t,e,n,r,a,o,s){var l=new i.ARRAY_TYPE(8);l[0]=t,l[1]=e,l[2]=n,l[3]=r;var u=.5*a,c=.5*o,f=.5*s;return l[4]=u*r+c*n-f*e,l[5]=c*r+f*t-u*n,l[6]=f*r+u*e-c*t,l[7]=-u*t-c*e-f*n,l},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=l,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,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]=l,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],l=-e[2],u=e[3];return t[0]=2*(n*u+a*o+r*l-i*s),t[1]=2*(r*u+a*s+i*o-n*l),t[2]=2*(i*u+a*l+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],l=.5*n[1],u=.5*n[2],c=e[4],f=e[5],h=e[6],p=e[7];return t[0]=r,t[1]=i,t[2]=a,t[3]=o,t[4]=o*s+i*u-a*l+c,t[5]=o*l+a*s-r*u+f,t[6]=o*u+r*l-i*s+h,t[7]=-r*s-i*l-a*u+p,t},e.rotateX=function(t,e,n){var r=-e[0],i=-e[1],o=-e[2],s=e[3],l=e[4],u=e[5],c=e[6],f=e[7],h=l*s+f*r+u*o-c*i,p=u*s+f*i+c*r-l*o,d=c*s+f*o+l*i-u*r,g=f*s-l*r-u*i-c*o;return a.rotateX(t,e,n),r=t[0],i=t[1],o=t[2],s=t[3],t[4]=h*s+g*r+p*o-d*i,t[5]=p*s+g*i+d*r-h*o,t[6]=d*s+g*o+h*i-p*r,t[7]=g*s-h*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],l=e[4],u=e[5],c=e[6],f=e[7],h=l*s+f*r+u*o-c*i,p=u*s+f*i+c*r-l*o,d=c*s+f*o+l*i-u*r,g=f*s-l*r-u*i-c*o;return a.rotateY(t,e,n),r=t[0],i=t[1],o=t[2],s=t[3],t[4]=h*s+g*r+p*o-d*i,t[5]=p*s+g*i+d*r-h*o,t[6]=d*s+g*o+h*i-p*r,t[7]=g*s-h*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],l=e[4],u=e[5],c=e[6],f=e[7],h=l*s+f*r+u*o-c*i,p=u*s+f*i+c*r-l*o,d=c*s+f*o+l*i-u*r,g=f*s-l*r-u*i-c*o;return a.rotateZ(t,e,n),r=t[0],i=t[1],o=t[2],s=t[3],t[4]=h*s+g*r+p*o-d*i,t[5]=p*s+g*i+d*r-h*o,t[6]=d*s+g*o+h*i-p*r,t[7]=g*s-h*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],l=e[1],u=e[2],c=e[3];return t[0]=s*o+c*r+l*a-u*i,t[1]=l*o+c*i+u*r-s*a,t[2]=u*o+c*a+s*i-l*r,t[3]=c*o-s*r-l*i-u*a,s=e[4],l=e[5],u=e[6],c=e[7],t[4]=s*o+c*r+l*a-u*i,t[5]=l*o+c*i+u*r-s*a,t[6]=u*o+c*a+s*i-l*r,t[7]=c*o-s*r-l*i-u*a,t},e.rotateByQuatPrepend=function(t,e,n){var r=e[0],i=e[1],a=e[2],o=e[3],s=n[0],l=n[1],u=n[2],c=n[3];return t[0]=r*c+o*s+i*u-a*l,t[1]=i*c+o*l+a*s-r*u,t[2]=a*c+o*u+r*l-i*s,t[3]=o*c-r*s-i*l-a*u,s=n[4],l=n[5],u=n[6],c=n[7],t[4]=r*c+o*s+i*u-a*l,t[5]=i*c+o*l+a*s-r*u,t[6]=a*c+o*u+r*l-i*s,t[7]=o*c-r*s-i*l-a*u,t},e.rotateAroundAxis=function(t,e,n,r){if(Math.abs(r)<i.EPSILON)return l(t,e);var a=Math.hypot(n[0],n[1],n[2]);r*=.5;var o=Math.sin(r),s=o*n[0]/a,u=o*n[1]/a,c=o*n[2]/a,f=Math.cos(r),h=e[0],p=e[1],d=e[2],g=e[3];t[0]=h*f+g*s+p*c-d*u,t[1]=p*f+g*u+d*s-h*c,t[2]=d*f+g*c+h*u-p*s,t[3]=g*f-h*s-p*u-d*c;var y=e[4],v=e[5],m=e[6],_=e[7];return t[4]=y*f+_*s+v*c-m*u,t[5]=v*f+_*u+m*s-y*c,t[6]=m*f+_*c+y*u-v*s,t[7]=_*f-y*s-v*u-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=u,e.mul=u,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,l=n[4],u=n[5],c=n[6],f=n[7],h=i*l+a*u+o*c+s*f;t[0]=i,t[1]=a,t[2]=o,t[3]=s,t[4]=(l-i*h)/r,t[5]=(u-a*h)/r,t[6]=(c-o*h)/r,t[7]=(f-s*h)/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],l=t[5],u=t[6],c=t[7],f=e[0],h=e[1],p=e[2],d=e[3],g=e[4],y=e[5],v=e[6],m=e[7];return Math.abs(n-f)<=i.EPSILON*Math.max(1,Math.abs(n),Math.abs(f))&&Math.abs(r-h)<=i.EPSILON*Math.max(1,Math.abs(r),Math.abs(h))&&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(l-y)<=i.EPSILON*Math.max(1,Math.abs(l),Math.abs(y))&&Math.abs(u-v)<=i.EPSILON*Math.max(1,Math.abs(u),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(67);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,l,u=t?[].concat(t):[1,0,0,0,1,0,0,0,1],c=0,f=e.length;c<f;c++){var h=e[c];switch(h[0]){case"t":i(u,u,[h[1],h[2]]);break;case"s":o(u,u,[h[1],h[2]]);break;case"r":a(u,u,h[1]);break;case"m":n=u,s=u,l=h[1],r.mat3.multiply(n,l,s)}}return u},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(329)),o=n(332),s=n(174),l=r.__importStar(n(155)),u=n(359),c=[1,0,0,0,1,0,0,0,1];function f(t,e,n){var r,a=e.startTime;if(n<a+e.delay||e._paused)return!1;var f=e.duration,h=e.easing,p=(0,s.getEasing)(h);if(n=n-a-e.delay,e.repeat)r=p(r=n%f/f);else{if(!((r=n/f)<1))return e.onFrame?t.attr(e.onFrame(1)):t.attr(e.toAttrs),!0;r=p(r)}if(e.onFrame){var d=e.onFrame(r);t.attr(d)}else!function(t,e,n){var r={},a=e.fromAttrs,s=e.toAttrs;if(!t.destroyed){var f;for(var h in s)if(!(0,i.isEqual)(a[h],s[h]))if("path"===h){var p=s[h],d=a[h];p.length>d.length?(p=l.parsePathString(s[h]),d=l.parsePathString(a[h]),d=l.fillPathByDiff(d,p),d=l.formatPath(d,p),e.fromAttrs.path=d,e.toAttrs.path=p):e.pathFormatted||(p=l.parsePathString(s[h]),d=l.parsePathString(a[h]),d=l.formatPath(d,p),e.fromAttrs.path=d,e.toAttrs.path=p,e.pathFormatted=!0),r[h]=[];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[_])?(f=(0,o.interpolate)(v[_],y[_]),m.push(f(n))):m.push(y[_]);r[h].push(m)}}else if("matrix"===h){var x=(0,o.interpolateArray)(a[h]||c,s[h]||c)(n);r[h]=x}else(0,u.isColorProp)(h)&&(0,u.isGradientColor)(s[h])?r[h]=s[h]:(0,i.isFunction)(s[h])||(f=(0,o.interpolate)(a[h],s[h]),r[h]=f(n));t.attr(r)}}(t,e,r);return!1}var h=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],f(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=h},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(93);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(330);Object.defineProperty(e,"timeout",{enumerable:!0,get:function(){return r(a).default}});var o=n(331);Object.defineProperty(e,"interval",{enumerable:!0,get:function(){return r(o).default}})},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?(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";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(94);Object.defineProperty(e,"interpolate",{enumerable:!0,get:function(){return r(i).default}});var a=n(170);Object.defineProperty(e,"interpolateArray",{enumerable:!0,get:function(){return r(a).default}});var o=n(97);Object.defineProperty(e,"interpolateBasis",{enumerable:!0,get:function(){return r(o).default}});var s=n(168);Object.defineProperty(e,"interpolateBasisClosed",{enumerable:!0,get:function(){return r(s).default}});var l=n(171);Object.defineProperty(e,"interpolateDate",{enumerable:!0,get:function(){return r(l).default}});var u=n(335);Object.defineProperty(e,"interpolateDiscrete",{enumerable:!0,get:function(){return r(u).default}});var c=n(336);Object.defineProperty(e,"interpolateHue",{enumerable:!0,get:function(){return r(c).default}});var f=n(68);Object.defineProperty(e,"interpolateNumber",{enumerable:!0,get:function(){return r(f).default}});var h=n(98);Object.defineProperty(e,"interpolateNumberArray",{enumerable:!0,get:function(){return r(h).default}});var p=n(172);Object.defineProperty(e,"interpolateObject",{enumerable:!0,get:function(){return r(p).default}});var d=n(337);Object.defineProperty(e,"interpolateRound",{enumerable:!0,get:function(){return r(d).default}});var g=n(173);Object.defineProperty(e,"interpolateString",{enumerable:!0,get:function(){return r(g).default}});var y=n(338);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(341);Object.defineProperty(e,"interpolateZoom",{enumerable:!0,get:function(){return r(v).default}});var m=n(167);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(342);Object.defineProperty(e,"interpolateHsl",{enumerable:!0,get:function(){return r(_).default}}),Object.defineProperty(e,"interpolateHslLong",{enumerable:!0,get:function(){return _.hslLong}});var x=n(343);Object.defineProperty(e,"interpolateLab",{enumerable:!0,get:function(){return r(x).default}});var b=n(344);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(345);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(346);Object.defineProperty(e,"piecewise",{enumerable:!0,get:function(){return r(C).default}});var P=n(347);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.Hcl=e.hcl=e.lch=e.Lab=e.gray=void 0;var r=n(0).__importStar(n(96)),i=n(95),a=n(166),o=6/29,s=3*o*o;function l(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=f((.2225045*r+.7168786*a+.0606169*o)/1);return r===a&&a===o?e=n=s:(e=f((.4360747*r+.3850649*a+.1430804*o)/.96422),n=f((.0139322*r+.0971045*a+.7141733*o)/.82521)),new c(116*s-16,500*(e-s),200*(s-n),t.opacity)}function u(t,e,n,r){return 1===arguments.length?l(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 f(t){return t>.008856451679035631?Math.pow(t,1/3):t/s+4/29}function h(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=l(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=u,e.Lab=c,(0,r.default)(c,u,(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*h(e),t=1*h(t),n=.82521*h(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=n(0).__importStar(n(96)),i=n(95),a=n(166),o=-.14861,s=1.78277,l=-.29227,u=-.90649,c=1.97294,f=c*u,h=c*s,p=s*l-u*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+f*e-h*n)/(p+f-h),s=r-o,d=(c*(n-o)-l*s)/u,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),f=Math.sin(t);return new i.Rgb(255*(e+n*(o*r+s*f)),255*(e+n*(l*r+u*f)),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=n(0).__importDefault(n(68)),i=n(339);function a(t,e,n,i){function a(t){return t.length?t.pop()+" ":""}return function(o,s){var l=[],u=[];return o=t(o),s=t(s),function(t,i,a,o,s,l){if(t!==a||i!==o){var u=s.push("translate(",null,e,null,n);l.push({i:u-4,x:(0,r.default)(t,a)},{i:u-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,l,u),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,l,u),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,l,u),function(t,e,n,i,o,s){if(t!==n||e!==i){var l=o.push(a(o)+"scale(",null,",",null,")");s.push({i:l-4,x:(0,r.default)(t,n)},{i:l-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,l,u),o=s=null,function(t){for(var e,n=-1,r=u.length;++n<r;)l[(e=u[n]).i]=e.x(t);return l.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(340));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,l,u;return(s=Math.sqrt(t*t+e*e))&&(t/=s,e/=s),(u=t*n+e*i)&&(n-=t*u,i-=e*u),(l=Math.sqrt(n*n+i*i))&&(n/=l,i/=l,u/=l),t*i<e*n&&(t=-t,e=-e,u=-u,s=-s),{translateX:a,translateY:o,rotate:Math.atan2(e,t)*r,skewX:Math.atan(u)*r,scaleX:s,scaleY:l}}},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],l=t[2],u=e[0],c=e[1],f=e[2],h=u-o,p=c-s,d=h*h+p*p;if(d<1e-12)a=Math.log(f/l)/r,n=function(t){return[o+t*h,s+t*p,l*Math.exp(r*t*a)]};else{var g=Math.sqrt(d),y=(f*f-l*l+4*d)/(2*l*2*g),v=(f*f-l*l-4*d)/(2*f*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,u=i(m),c=l/(2*g)*(u*(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*h,s+c*p,l*u/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=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),l=(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=l(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=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=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),l=(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=l(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=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),l=(0,a.default)(e.l,r.l),u=(0,a.default)(e.opacity,r.opacity);return function(t){return e.h=o(t),e.s=s(t),e.l=l(Math.pow(t,n)),e.opacity=u(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.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(349);Object.defineProperty(e,"easeLinear",{enumerable:!0,get:function(){return r.linear}});var i=n(350);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(351);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(352);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(353);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 l=n(354);Object.defineProperty(e,"easeExp",{enumerable:!0,get:function(){return l.expInOut}}),Object.defineProperty(e,"easeExpIn",{enumerable:!0,get:function(){return l.expIn}}),Object.defineProperty(e,"easeExpOut",{enumerable:!0,get:function(){return l.expOut}}),Object.defineProperty(e,"easeExpInOut",{enumerable:!0,get:function(){return l.expInOut}});var u=n(355);Object.defineProperty(e,"easeCircle",{enumerable:!0,get:function(){return u.circleInOut}}),Object.defineProperty(e,"easeCircleIn",{enumerable:!0,get:function(){return u.circleIn}}),Object.defineProperty(e,"easeCircleOut",{enumerable:!0,get:function(){return u.circleOut}}),Object.defineProperty(e,"easeCircleInOut",{enumerable:!0,get:function(){return u.circleInOut}});var c=n(356);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 f=n(357);Object.defineProperty(e,"easeBack",{enumerable:!0,get:function(){return f.backInOut}}),Object.defineProperty(e,"easeBackIn",{enumerable:!0,get:function(){return f.backIn}}),Object.defineProperty(e,"easeBackOut",{enumerable:!0,get:function(){return f.backOut}}),Object.defineProperty(e,"easeBackInOut",{enumerable:!0,get:function(){return f.backInOut}});var h=n(358);Object.defineProperty(e,"easeElastic",{enumerable:!0,get:function(){return h.elasticOut}}),Object.defineProperty(e,"easeElasticIn",{enumerable:!0,get:function(){return h.elasticIn}}),Object.defineProperty(e,"easeElasticOut",{enumerable:!0,get:function(){return h.elasticOut}}),Object.defineProperty(e,"easeElasticInOut",{enumerable:!0,get:function(){return h.elasticInOut}})},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(175);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(175),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.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(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 l=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,l=n.timeStamp-this.mousedownTimeStamp,u=o.clientX-t.clientX,c=o.clientY-t.clientY;l>120||u*u+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 l=this._getEventObj(t,e,n,r,i,a);if(r){l.shape=r,o(r,t,l);for(var u=r.getParent();u;)u.emitDelegation(t,l),l.propagationStopped||s(u,t,l),l.propagationPath.push(u),u=u.getParent()}else{o(this.canvas,t,l)}},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=l},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}(r.__importDefault(n(159)).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(160)),o=n(92),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]),l=(0,o.multiplyVec2)(e,[t.maxX,t.minY]),u=(0,o.multiplyVec2)(e,[t.minX,t.maxY]),c=(0,o.multiplyVec2)(e,[t.maxX,t.maxY]);n=Math.min(s[0],l[0],u[0],c[0]),i=Math.max(s[0],l[0],u[0],c[0]),r=Math.min(s[1],l[1],u[1],c[1]),a=Math.max(s[1],l[1],u[1],c[1])}var f=this.attrs;if(f.shadowColor){var h=f.shadowBlur,p=void 0===h?0:h,d=f.shadowOffsetX,g=void 0===d?0:d,y=f.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.registerBBox=e.getBBoxMethod=void 0;var r=n(0),i=n(364);Object.defineProperty(e,"registerBBox",{enumerable:!0,get:function(){return i.register}}),Object.defineProperty(e,"getBBoxMethod",{enumerable:!0,get:function(){return i.getMethod}});var a=r.__importDefault(n(365)),o=r.__importDefault(n(366)),s=r.__importDefault(n(367)),l=r.__importDefault(n(373)),u=r.__importDefault(n(374)),c=r.__importDefault(n(375)),f=r.__importDefault(n(390)),h=r.__importDefault(n(391));(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",l.default),(0,i.register)("text",u.default),(0,i.register)("path",c.default),(0,i.register)("line",f.default),(0,i.register)("ellipse",h.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(20),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 l=r.Util.getBBoxByArray(n,a),u=l.x,c=l.y,f={minX:u,minY:c,maxX:u+l.width,maxY:c+l.height};return{x:(f=(0,i.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(0).__importDefault(n(69)),i=n(32),a=n(176);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 l(t,e,n,r){return 2*(1-r)*(e-t)+2*r*(n-e)}function u(t,e,n,i,a,s,l){var u=o(t,n,a,l),c=o(e,i,s,l),f=r.default.pointAt(t,e,n,i,l),h=r.default.pointAt(n,i,a,s,l);return[[t,e,f.x,f.y,u,c],[u,c,h.x,h.y,a,s]]}e.default={box:function(t,e,n,r,a,l){var u=s(t,n,a)[0],c=s(e,r,l)[0],f=[t,a],h=[e,l];return void 0!==u&&f.push(o(t,n,a,u)),void 0!==c&&h.push(o(e,r,l,c)),(0,i.getBBoxByArray)(f,h)},length:function(t,e,n,r,a,o){return function t(e,n,r,a,o,s,l){if(0===l)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=u(e,n,r,a,o,s,.5),f=c[0],h=c[1];return f.push(l-1),h.push(l-1),t.apply(null,f)+t.apply(null,h)}(t,e,n,r,a,o,3)},nearestPoint:function(t,e,n,r,i,s,l,u){return(0,a.nearestPoint)([t,n,i],[e,r,s],l,u,o)},pointDistance:function(t,e,n,r,a,o,s,l){var u=this.nearestPoint(t,e,n,r,a,o,s,l);return(0,i.distance)(u.x,u.y,s,l)},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 u(t,e,n,r,i,a,o)},tangentAngle:function(t,e,n,r,a,o,s){var u=l(t,n,a,s),c=l(e,r,o,s),f=Math.atan2(c,u);return(0,i.piMod)(f)}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(32),a=r.__importDefault(n(69)),o=n(176);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 l(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 u(t,e,n,r){var a,o,s,l=-3*t+9*e-9*n+3*r,u=6*t-12*e+6*n,c=3*e-3*t,f=[];if((0,i.isNumberEqual)(l,0))(0,i.isNumberEqual)(u,0)||(a=-c/u)>=0&&a<=1&&f.push(a);else{var h=u*u-4*l*c;(0,i.isNumberEqual)(h,0)?f.push(-u/(2*l)):h>0&&(o=(-u-(s=Math.sqrt(h)))/(2*l),(a=(-u+s)/(2*l))>=0&&a<=1&&f.push(a),o>=0&&o<=1&&f.push(o))}return f}function c(t,e,n,r,i,o,l,u,c){var f=s(t,n,i,l,c),h=s(e,r,o,u,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,l,u,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,f,h],[f,h,v.x,v.y,g.x,g.y,l,u]]}e.default={extrema:u,box:function(t,e,n,r,a,o,l,c){for(var f=[t,l],h=[e,c],p=u(t,n,a,l),d=u(e,r,o,c),g=0;g<p.length;g++)f.push(s(t,n,a,l,p[g]));for(g=0;g<d.length;g++)h.push(s(e,r,o,c,d[g]));return(0,i.getBBoxByArray)(f,h)},length:function(t,e,n,r,i,a,s,l){return function t(e,n,r,i,a,s,l,u,f){if(0===f)return(0,o.snapLength)([e,r,a,l],[n,i,s,u]);var h=c(e,n,r,i,a,s,l,u,.5),p=h[0],d=h[1];return p.push(f-1),d.push(f-1),t.apply(null,p)+t.apply(null,d)}(t,e,n,r,i,a,s,l,3)},nearestPoint:function(t,e,n,r,i,a,l,u,c,f,h){return(0,o.nearestPoint)([t,n,i,l],[e,r,a,u],c,f,s,h)},pointDistance:function(t,e,n,r,a,o,s,l,u,c,f){var h=this.nearestPoint(t,e,n,r,a,o,s,l,u,c,f);return(0,i.distance)(h.x,h.y,u,c)},interpolationAt:s,pointAt:function(t,e,n,r,i,a,o,l,u){return{x:s(t,n,i,o,u),y:s(e,r,a,l,u)}},divide:function(t,e,n,r,i,a,o,s,l){return c(t,e,n,r,i,a,o,s,l)},tangentAngle:function(t,e,n,r,a,o,s,u,c){var f=l(t,n,a,s,c),h=l(e,r,o,u,c);return(0,i.piMod)(Math.atan2(h,f))}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(32),a=r.__importDefault(n(371));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 l(t,e,n){return{x:t*Math.cos(n),y:e*Math.sin(n)}}function u(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,l){for(var u=function(t,e,n){return Math.atan(-e/t*Math.tan(n))}(n,r,i),c=1/0,f=-1/0,h=[a,l],p=2*-Math.PI;p<=2*Math.PI;p+=Math.PI){var d=u+p;a<l?a<d&&d<l&&h.push(d):l<d&&d<a&&h.push(d)}for(p=0;p<h.length;p++){var g=o(t,0,n,r,i,h[p]);g<c&&(c=g),g>f&&(f=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,l];for(p=2*-Math.PI;p<=2*Math.PI;p+=Math.PI){var x=y+p;a<l?a<x&&x<l&&_.push(x):l<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:f-c,height:m-v}},length:function(t,e,n,r,i,a,o){},nearestPoint:function(t,e,n,r,i,o,s,c,f){var h=u(c-t,f-e,-i),p=h[0],d=h[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=l(n,r,o):y>s&&(g=l(n,r,s));var v=u(g.x,g.y,i);return{x:v[0]+t,y:v[1]+e}},pointDistance:function(t,e,n,r,a,o,s,l,u){var c=this.nearestPoint(t,e,n,r,l,u);return(0,i.distance)(c.x,c.y,l,u)},pointAt:function(t,e,n,r,i,a,l,u){var c=(l-a)*u+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,l){var u=(s-o)*l+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,u),f=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,u);return(0,i.piMod)(Math.atan2(f,c))}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(32);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,l=r;if(0===s||0===l)return{x:t,y:e};for(var u,c,f=a-t,h=o-e,p=Math.abs(f),d=Math.abs(h),g=s*s,y=l*l,v=Math.PI/4,m=0;m<4;m++){u=s*Math.cos(v),c=l*Math.sin(v);var _=(g-y)*Math.pow(Math.cos(v),3)/s,x=(y-g)*Math.pow(Math.sin(v),3)/l,b=u-_,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-u*u-c*c),v=Math.min(Math.PI/2,Math.max(0,v))}return{x:t+i(u,f),y:e+i(c,h)}},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(177),a=r.__importDefault(n(178));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(20);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(179);e.default=function(t){var e=t.attr(),n=e.x,i=e.y,a=e.text,o=e.fontSize,s=e.lineHeight,l=e.font;l||(l=(0,r.assembleFont)(e));var u,c=(0,r.getTextWidth)(a,l);if(c){var f=e.textAlign,h=e.textBaseline,p=(0,r.getTextHeight)(a,o,s),d={x:n,y:i-p};f&&("end"===f||"right"===f?d.x-=c:"center"===f&&(d.x-=c/2)),h&&("top"===h?d.y+=p:"middle"===h&&(d.y+=p/2)),u={x:d.x,y:d.y,width:c,height:p}}else u={x:n,y:i,width:0,height:0};return u}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(20),i=n(50),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),l=Math.pow(n[0]-i[0],2)+Math.pow(n[1]-i[1],2),u=Math.acos((o+s-l)/(2*Math.sqrt(o)*Math.sqrt(s)));if(!u||0===Math.sin(u)||(0,a.isNumberEqual)(u,0))return{xExtra:0,yExtra:0};var c=Math.abs(Math.atan2(i[1]-r[1],i[0]-r[0])),f=Math.abs(Math.atan2(i[0]-r[0],i[1]-r[1]));return c=c>Math.PI/2?Math.PI-c:c,f=f>Math.PI/2?Math.PI-f:f,{xExtra:Math.cos(u/2-c)*(e/2*(1/Math.sin(u/2)))-e/2||0,yExtra:Math.cos(f-u/2)*(e/2*(1/Math.sin(u/2)))-e/2||0}}e.default=function(t){var e=t.attr(),n=e.path,l=e.stroke?e.lineWidth:0,u=function(t,e){for(var n=[],i=[],o=[],l=0;l<t.length;l++){var u=(m=t[l]).currentPoint,c=m.params,f=m.prePoint,h=void 0;switch(m.command){case"Q":h=r.Quad.box(f[0],f[1],c[1],c[2],c[3],c[4]);break;case"C":h=r.Cubic.box(f[0],f[1],c[1],c[2],c[3],c[4],c[5],c[6]);break;case"A":var p=m.arcParams;h=r.Arc.box(p.cx,p.cy,p.rx,p.ry,p.xRotation,p.startAngle,p.endAngle);break;default:n.push(u[0]),i.push(u[1])}h&&(m.box=h,n.push(h.x,h.x+h.width),i.push(h.y,h.y+h.height)),e&&("L"===m.command||"M"===m.command)&&m.prePoint&&m.nextPoint&&o.push(m)}n=n.filter((function(t){return!Number.isNaN(t)&&t!==1/0&&t!==-1/0})),i=i.filter((function(t){return!Number.isNaN(t)&&t!==1/0&&t!==-1/0}));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(l=0;l<o.length;l++){var m;(u=(m=o[l]).currentPoint)[0]===d?d-=s(m,e).xExtra:u[0]===y&&(y+=s(m,e).xExtra),u[1]===g?g-=s(m,e).yExtra:u[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),l),c=u.x,f=u.y,h={minX:c,minY:f,maxX:c+u.width,maxY:f+u.height};return{x:(h=(0,o.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(377);e.default=function(t,e,n){void 0===e&&(e=!1),void 0===n&&(n=[[0,0],[1,1]]);for(var i=!!e,a=[],o=0,s=t.length;o<s;o+=2)a.push([t[o],t[o+1]]);var l,u,c,f=function(t,e,n,i){var a,o,s,l,u,c,f,h=[],p=!!i;if(p){s=i[0],l=i[1];for(var d=0,g=t.length;d<g;d+=1){var y=t[d];s=r.vec2.min([0,0],s,y),l=r.vec2.max([0,0],l,y)}}d=0;for(var v=t.length;d<v;d+=1){y=t[d];if(0!==d||n)if(d!==v-1||n){a=t[[d?d-1:v-1,d-1][n?0: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),u=r.vec2.add([0,0],y,C),u=r.vec2.min([0,0],u,r.vec2.max([0,0],o,y)),u=r.vec2.max([0,0],u,r.vec2.min([0,0],o,y)),M=r.vec2.sub([0,0],u,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/_),u=r.vec2.add([0,0],y,C),p&&(c=r.vec2.max([0,0],c,s),c=r.vec2.min([0,0],c,l),u=r.vec2.max([0,0],u,s),u=r.vec2.min([0,0],u,l)),h.push(f),h.push(c),f=u}else c=y,h.push(f),h.push(c);else f=y}return n&&h.push(h.shift()),h}(a,.4,i,n),h=a.length,p=[];for(o=0;o<h-1;o+=1)l=f[2*o],u=f[2*o+1],c=a[o+1],p.push(["C",l[0],l[1],u[0],u[1],c[0],c[1]]);return i&&(l=f[h],u=f[h+1],c=a[0],p.push(["C",l[0],l[1],u[0],u[1],c[0],c[1]])),p}},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(0),i=n(67);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(378));e.ext=a},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(67);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,l,u=t?[].concat(t):[1,0,0,0,1,0,0,0,1],c=0,f=e.length;c<f;c++){var h=e[c];switch(h[0]){case"t":i(u,u,[h[1],h[2]]);break;case"s":o(u,u,[h[1],h[2]]);break;case"r":a(u,u,h[1]);break;case"m":n=u,s=u,l=h[1],r.mat3.multiply(n,l,s)}}return u},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";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,l=0;l<n-1;l++){var u=r(o,s/(1-s*l));a.push(u.left),o=u.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 l=Math.floor(a*s);o[l]=(o[l]||0)+1}var u=o.reduce((function(e,r,a){return a===n?e.concat(t[n]):e.concat(i(t[a],t[a+1],r))}),[]);return u.unshift(t[0]),"Z"!==e[r]&&"z"!==e[r]||u.push("Z"),u}},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,l=0;if(0===o||0===s)return null;for(var u=[],c=0;c<=o;c++)u[c]=[],u[c][0]={min:c};for(var f=0;f<=s;f++)u[0][f]={min:f};for(c=1;c<=o;c++){n=t[c-1];for(f=1;f<=s;f++){a=e[f-1],l=(0,r.isEqual)(n,a)?0:1;var h=u[c-1][f].min+1,p=u[c][f-1].min+1,d=u[c-1][f-1].min+l;u[c][f]=i(h,p,d)}}return u}(t,e),a=t.length,o=e.length,s=[],l=1,u=1;if(n[a][o]!==a){for(var c=1;c<=a;c++){var f=n[c][c].min;u=c;for(var h=l;h<=o;h++)n[c][h].min<f&&(f=n[c][h].min,u=h);l=u,n[c][l].type&&s.push({index:c-1,type:n[c][l].type})}for(c=s.length-1;c>=0;c--)l=s[c].index,"add"===s[c].type?t.splice(l,0,[].concat(t[l])):t.splice(l,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],l=1;l<=n;l++)o*=l,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(182)),o=r.__importDefault(n(183)),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},l=function(t,e,n,r,i,a,o,l,u){null===u&&(u=1);for(var c=(u=u>1?1:u<0?0:u)/2,f=[-.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],p=0,d=0;d<12;d++){var g=c*f[d]+c,y=s(g,t,n,i,o),v=s(g,e,r,a,l),m=y*y+v*v;p+=h[d]*Math.sqrt(m)}return c*p},u=function(t,e,n,r,i,a,o,s){for(var l,u,c,f,h=[],p=[[],[]],d=0;d<2;++d)if(0===d?(u=6*t-12*n+6*i,l=-3*t+9*n-9*i+3*o,c=3*n-3*t):(u=6*e-12*r+6*a,l=-3*e+9*r-9*a+3*s,c=3*r-3*e),Math.abs(l)<1e-12){if(Math.abs(u)<1e-12)continue;(f=-c/u)>0&&f<1&&h.push(f)}else{var g=u*u-4*c*l,y=Math.sqrt(g);if(!(g<0)){var v=(-u+y)/(2*l);v>0&&v<1&&h.push(v);var m=(-u-y)/(2*l);m>0&&m<1&&h.push(m)}}for(var _,x=h.length,b=x;x--;)_=1-(f=h[x]),p[0][x]=_*_*_*t+3*_*_*f*n+3*_*f*f*i+f*f*f*o,p[1][x]=_*_*_*e+3*_*_*f*r+3*_*f*f*a+f*f*f*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 l=(t-n)*(a-s)-(e-r)*(i-o);if(l){var u=((t*r-e*n)*(i-o)-(t-n)*(i*s-a*o))/l,c=((t*r-e*n)*(a-s)-(e-r)*(i*s-a*o))/l,f=+u.toFixed(2),h=+c.toFixed(2);if(!(f<+Math.min(t,n).toFixed(2)||f>+Math.max(t,n).toFixed(2)||f<+Math.min(i,o).toFixed(2)||f>+Math.max(i,o).toFixed(2)||h<+Math.min(e,r).toFixed(2)||h>+Math.max(e,r).toFixed(2)||h<+Math.min(a,s).toFixed(2)||h>+Math.max(a,s).toFixed(2)))return{x:u,y:c}}}},f=function(t,e,n){return e>=t.x&&e<=t.x+t.width&&n>=t.y&&n<=t.y+t.height},h=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,l){(0,i.isArray)(t)||(t=[t,e,n,r,a,o,s,l]);var c=u.apply(null,t);return h(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,l){var u=1-l,c=Math.pow(u,3),f=Math.pow(u,2),h=l*l,p=h*l,d=t+2*l*(n-t)+h*(i-2*n+t),g=e+2*l*(r-e)+h*(a-2*r+e),y=n+2*l*(i-n)+h*(o-2*i+n),v=r+2*l*(a-r)+h*(s-2*a+r);return{x:c*t+3*f*l*n+3*u*l*l*i+p*o,y:c*e+3*f*l*r+3*u*l*l*a+p*s,m:{x:d,y:g},n:{x:y,y:v},start:{x:u*t+l*n,y:u*e+l*r},end:{x:u*i+l*o,y:u*a+l*s},alpha:90-180*Math.atan2(d-y,g-v)/Math.PI}},g=function(t,e,n){if(!function(t,e){return t=h(t),e=h(e),f(e,t.x,t.y)||f(e,t.x2,t.y)||f(e,t.x,t.y2)||f(e,t.x2,t.y2)||f(t,e.x,e.y)||f(t,e.x2,e.y)||f(t,e.x,e.y2)||f(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=~~(l.apply(0,t)/8),i=~~(l.apply(0,e)/8),a=[],o=[],s={},u=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?u++:u.push({x:P.x,y:P.y,t1:S,t2:O}))}}return u};e.default=function(t,e){return function(t,e,n){var r,i,a,s,l,u,c,f,h,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=l=m[1],i=u=m[2];else{"C"===m[0]?(h=[r,i].concat(m.slice(1)),r=h[6],i=h[7]):(h=[r,i,r,i,l,u,l,u],r=l,i=u);for(var _=0,x=e.length;_<x;_++){var b=e[_];if("M"===b[0])a=c=b[1],s=f=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,f,c,f],a=c,s=f);var M=g(h,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=h,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(384),i=n(385),a=n(386);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,l=t.y;return{x:r*(s*=e)-i*(l*=n)+a,y:i*s+r*l+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,l=t.cy,u=t.rx,c=t.ry,f=t.xAxisRotation,h=void 0===f?0:f,p=t.largeArcFlag,d=void 0===p?0:p,g=t.sweepFlag,y=void 0===g?0:g,v=[];if(0===u||0===c)return[{x1:0,y1:0,x2:0,y2:0,x:s,y:l}];var m=Math.sin(h*r/360),_=Math.cos(h*r/360),x=_*(e-s)/2+m*(n-l)/2,b=-m*(e-s)/2+_*(n-l)/2;if(0===x&&0===b)return[{x1:0,y1:0,x2:0,y2:0,x:s,y:l}];u=Math.abs(u),c=Math.abs(c);var M=Math.pow(x,2)/Math.pow(u,2)+Math.pow(b,2)/Math.pow(c,2);M>1&&(u*=Math.sqrt(M),c*=Math.sqrt(M));var C=function(t,e,n,i,a,s,l,u,c,f,h,p){var d=Math.pow(a,2),g=Math.pow(s,2),y=Math.pow(h,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)*(l===u?-1:1))*a/s*p,x=m*-s/a*h,b=f*_-c*x+(t+n)/2,M=c*_+f*x+(e+i)/2,C=(h-_)/a,P=(p-x)/s,S=(-h-_)/a,O=(-p-x)/s,w=o(1,0,C,P),A=o(C,P,S,O);return 0===u&&A>0&&(A-=r),1===u&&A<0&&(A+=r),[b,M,w,A]}(e,n,s,l,u,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],u,c,_,m,P,S),n=e.x,r=e.y,a=i(t[1],u,c,_,m,P,S),o=a.x,s=a.y,l=i(t[2],u,c,_,m,P,S);return{x1:n,y1:r,x2:o,y2:s,x:l.x,y:l.y}}))};e.arcToCubic=function(t,e,n,r,i,a,o,l,u){return s({px:t,py:e,cx:l,cy:u,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=r.__importDefault(n(100)),a=n(100),o=r.__importDefault(n(181));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,l=null,u=0,c=(t=(0,o.default)(t)).length,f=0;f<c;f++){var h=t[f];r=t[f+1];var p=h[0],d={command:p,prePoint:n,params:h,startTangent:null,endTangent:null};switch(p){case"M":l=[h[1],h[2]],u=f;break;case"A":var g=(0,i.default)(n,h);d.arcParams=g}if("Z"===p)n=l,r=t[u+1];else{var y=h.length;n=[h[y-2],h[y-1]]}r&&"Z"===r[0]&&(r=t[u],e[u]&&(e[u].prePoint=n)),d.currentPoint=n,e[u]&&(0,a.isSamePoint)(n,e[u].currentPoint)&&(e[u].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 _=[h[1],h[2]];d.startTangent=[m[0]-_[0],m[1]-_[1]],d.endTangent=[n[0]-_[0],n[1]-_[1]]}else if("T"===p){_=s((M=e[f-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=[h[1],h[2]],b=[h[3],h[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[f-1]).currentPoint,m),b=[h[1],h[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,R=void 0===j?0:j,k=P.endAngle,F=void 0===k?0:k;0===B&&(C*=-1);var N=E*Math.cos(R-C)+O,G=L*Math.sin(R-C)+A;d.startTangent=[N-l[0],G-l[1]];var Y=E*Math.cos(R+F+C)+O,V=L*Math.sin(R+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=r.__importDefault(n(187)),a=r.__importDefault(n(186)),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 l(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,u=l(t),c=l(e);if(n=u,(r=c).minX>n.maxX||r.maxX<n.minX||r.minY>n.maxY||r.maxY<n.minY)return!1;var f=!1;if((0,o.each)(e,(function(e){if((0,i.default)(t,e[0],e[1]))return f=!0,!1})),f)return!0;if((0,o.each)(t,(function(t){if((0,i.default)(e,t[0],t[1]))return f=!0,!1})),f)return!0;var h=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}(h,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=(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(5),i=r.__importDefault(n(51));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(189),e)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(5),i=n(5),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,l=e.dodgeBy,u=e.intervalPadding,c=e.dodgePadding,f=e.xDimensionLength,h=e.groupNum,p=e.defaultSize,d=e.maxColumnWidth,g=e.minColumnWidth,y=e.columnWidthRatio,v=e.customOffset;return n.marginRatio=i,n.dodgeRatio=s,n.dodgeBy=l,n.intervalPadding=u,n.dodgePadding=c,n.xDimensionLegenth=f,n.groupNum=h,n.defaultSize=p,n.maxColumnWidth=d,n.minColumnWidth=g,n.columnWidthRatio=y,n.customOffset=v,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.customOffset,s=this.getDistribution(t),l=this.groupData(n,t);return a.each(l,(function(n,l){var u;u=1===e.length?{pre:e[0]-1,next:e[0]+1}:i.getAdjustRange(t,parseFloat(l),e),a.each(n,(function(e){var n=e[t],l=s[n],c=l.indexOf(r);if(a.isNil(o))e[t]=i.getDodgeOffset(u,c,l.length);else{var f=u.pre,h=u.next;e[t]=a.isFunction(o)?o(e,u):(f+h)/2+o}}))})),[]},e.prototype.getDodgeOffset=function(t,e,n){var r,i=this.dodgeRatio,o=this.marginRatio,s=this.intervalPadding,l=this.dodgePadding,u=t.pre,c=t.next,f=c-u;if(!a.isNil(s)&&a.isNil(l)&&s>=0)r=u+this.getIntervalOnlyOffset(n,e);else if(!a.isNil(l)&&a.isNil(s)&&l>=0){r=u+this.getDodgeOnlyOffset(n,e)}else if(!a.isNil(s)&&!a.isNil(l)&&s>=0&&l>=0){r=u+this.getIntervalAndDodgeOffset(n,e)}else{var h=f*i/n,p=o*h;r=(u+c)/2+(.5*(f-n*h-(n-1)*p)+((e+1)*h+e*p)-.5*h-.5*f)}return r},e.prototype.getIntervalOnlyOffset=function(t,e){var n=this,r=n.defaultSize,i=n.intervalPadding,o=n.xDimensionLegenth,s=n.groupNum,l=n.dodgeRatio,u=n.maxColumnWidth,c=n.minColumnWidth,f=n.columnWidthRatio,h=i/o,p=(1-(s-1)*h)/s*l/(t-1),d=((1-h*(s-1))/s-p*(t-1))/t;if(d=a.isNil(f)?d:1/s/t*f,!a.isNil(u)){var g=u/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)*h)/s-t*d)/(t-1))+.5*h)*s-h/2},e.prototype.getDodgeOnlyOffset=function(t,e){var n=this,r=n.defaultSize,i=n.dodgePadding,o=n.xDimensionLegenth,s=n.groupNum,l=n.marginRatio,u=n.maxColumnWidth,c=n.minColumnWidth,f=n.columnWidthRatio,h=i/o,p=1*l/(s-1),d=((1-p*(s-1))/s-h*(t-1))/t;if(d=f?1/s/t*f:d,!a.isNil(u)){var g=u/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*h+.5*(p=(1-(d*t+h*(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(51)).default);e.default=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(5),i=n(5),a=r.__importStar(n(1)),o=n(101);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}(r.__importDefault(n(51)).default);e.default=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(5),i=n(5),a=r.__importStar(n(1)),o=r.__importDefault(n(51)),s=a.Cache,l=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,l=void 0===s?10:s,u=e.reverseOrder,c=void 0!==u&&u;return n.adjustNames=i,n.height=o,n.size=l,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,l=new s;return r.map((function(t){return t.map((function(t){var r,s=a.get(t,e,0),u=a.get(t,[n]),c=s.toString();if(u=a.isArray(u)?u[1]:u,!a.isNil(u)){var f=u>=0?o:l;f.has(c)||f.set(c,0);var h=f.get(c),p=u+h;return f.set(c,p),(0,i.__assign)((0,i.__assign)({},t),((r={})[n]=[h,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,l=new s;return o.map((function(t){return t.map((function(t){var a,o=e.size,s=t[n],u=2*o/r;l.has(s)||l.set(s,u/2);var c=l.get(s);return l.set(s,c+u),(0,i.__assign)((0,i.__assign)({},t),((a={}).y=c,a))}))}))},e}(o.default);e.default=l},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(5),i=n(5),a=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,l,u=t[r],c=t[n];if(a.isArray(u)){var f=(s-o[c])/2;return(0,i.__assign)((0,i.__assign)({},t),((e={})[r]=a.map(u,(function(t){return f+t})),e))}var h=(s-u)/2;return(0,i.__assign)((0,i.__assign)({},t),((l={})[r]=[h,u+h],l))}))}))},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(51)).default);e.default=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(5),i=n(5),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"],(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}(r.__importDefault(n(40)).default);e.default=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(5),i=n(5),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}(r.__importDefault(n(40)).default);e.default=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(5),i=n(5),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}(r.__importDefault(n(40)).default);e.default=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(5),i=n(5),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}(r.__importDefault(n(40)).default);e.default=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(5),i=n(5),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}(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(5),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(190),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(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}(r.__importDefault(n(192)).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 l=o+s>>>1;t(e[l])>n?s=l:o=l+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(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 l=1/(r-(e=(0,a.log)(n,s/n)))*o;if(t<l)return t/l*s}else e=(0,a.log)(n,this.min);var u=(t-i)/o*(r-e)+e;return Math.pow(n,u)},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}(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(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}(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(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,l=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),l<e&&(l=e),r.push(e)})),t.length>1&&(this.minTickInterval=s-i),(0,a.isNil)(e)&&(this.min=i),(0,a.isNil)(n)&&(this.max=l)}},e}(r.__importDefault(n(194)).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}(r.__importDefault(n(195)).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(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}(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=r.__importDefault(n(196)),a=r.__importDefault(n(412)),o=r.__importDefault(n(414)),s=r.__importDefault(n(416)),l=r.__importDefault(n(417)),u=r.__importDefault(n(418)),c=r.__importDefault(n(419)),f=n(191);Object.defineProperty(e,"getTickMethod",{enumerable:!0,get:function(){return f.getTickMethod}}),Object.defineProperty(e,"registerTickMethod",{enumerable:!0,get:function(){return f.registerTickMethod}});var h=r.__importDefault(n(420)),p=r.__importDefault(n(421)),d=r.__importDefault(n(422));(0,f.registerTickMethod)("cat",i.default),(0,f.registerTickMethod)("time-cat",p.default),(0,f.registerTickMethod)("wilkinson-extended",o.default),(0,f.registerTickMethod)("r-pretty",c.default),(0,f.registerTickMethod)("time",h.default),(0,f.registerTickMethod)("time-pretty",d.default),(0,f.registerTickMethod)("log",s.default),(0,f.registerTickMethod)("pow",l.default),(0,f.registerTickMethod)("quantile",u.default),(0,f.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,l=t.minLimit,u=t.maxLimit,c=(0,a.default)(t);return(0,i.isNil)(l)&&(0,i.isNil)(u)?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,l=this._domain[a],u=this._domain[o];return u<l&&(l=(e=[u,l])[0],u=e[1],a=(n=[o,a])[0],o=n[1]),(r=s(l,u,t))>0?r=s(l=Math.floor(l/r)*r,u=Math.ceil(u/r)*r,t):r<0&&(r=s(l=Math.ceil(l*r)/r,u=Math.floor(u*r)/r,t)),r>0?(i[a]=Math.floor(l/r)*r,i[o]=Math.ceil(u/r)*r,this.domain(i)):r<0&&(i[a]=Math.ceil(l*r)/r,i[o]=Math.floor(u*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,l=-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));++l<i;)a[l]=(t+l)*o;else for(t=Math.floor(t*o),e=Math.ceil(e*o),a=new Array(i=Math.ceil(t-e+1));++l<i;)a[l]=(t-l)/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),l=o/Math.pow(10,s);return s>=0?(l>=r?10:l>=i?5:l>=a?2:1)*Math.pow(10,s):-Math.pow(10,-s)/(l>=r?10:l>=i?5:l>=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(415)),o=r.__importDefault(n(104)),s=r.__importDefault(n(105));e.default=function(t){var e=t.min,n=t.max,r=t.tickCount,l=t.nice,u=t.tickInterval,c=t.minLimit,f=t.maxLimit,h=(0,a.default)(e,n,r,l).ticks;return(0,i.isNil)(c)&&(0,i.isNil)(f)?u?(0,o.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}),e.ALL_Q=e.DEFAULT_Q=void 0;var r=n(1),i=n(197);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 a=100*Number.EPSILON;function o(t,e,n,i,o,s){var l=(0,r.size)(e),u=(0,r.indexOf)(e,t),c=0,f=function(t,e){return(t%e+e)%e}(i,s);return(f<a||s-f<a)&&i<=0&&o>=0&&(c=1),1-u/(l-1)-n+c}function s(t,e,n){var i=(0,r.size)(e);return 1-(0,r.indexOf)(e,t)/(i-1)-n+1}function l(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 c(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 f(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,a,h,p,d){void 0===a&&(a=5),void 0===h&&(h=!0),void 0===p&&(p=e.DEFAULT_Q),void 0===d&&(d=[.25,.2,.5,.05]);var g=a<0?0:Math.round(a);if(Number.isNaN(t)||Number.isNaN(n)||"number"!=typeof t||"number"!=typeof n||!g)return{min:0,max:0,ticks:[]};if(n-t<1e-15||1===g)return{min:t,max:n,ticks:[t]};if(n-t>1e148){var y=(n-t)/(E=a||5);return{min:t,max:n,ticks:Array(E).fill(null).map((function(e,n){return(0,i.prettyNumber)(t+y*n)}))}}for(var v={score:-2,lmin:0,lmax:0,lstep:0},m=1;m<1/0;){for(var _=0;_<p.length;_+=1){var x=p[_],b=s(x,p,m);if(d[0]*b+d[1]+d[2]+d[3]<v.score){m=1/0;break}for(var M=2;M<1/0;){var C=u(M,g);if(d[0]*b+d[1]+d[2]*C+d[3]<v.score)break;for(var P=(n-t)/(M+1)/m/x,S=Math.ceil(Math.log10(P));S<1/0;){var O=m*x*Math.pow(10,S),w=f(t,n,O*(M-1));if(d[0]*b+d[1]*w+d[2]*C+d[3]<v.score)break;var A=Math.floor(n/O)*m-(M-1)*m,T=Math.ceil(t/O)*m;if(A<=T)for(var E=T-A,I=0;I<=E;I+=1){var L=(A+I)*(O/m),D=L+O*(M-1),B=O,j=o(x,p,m,L,D,B),R=c(t,n,L,D),k=l(M,g,t,n,L,D),F=d[0]*j+d[1]*R+d[2]*k+1*d[3];F>v.score&&(!h||L<=t&&D>=n)&&(v.lmin=L,v.lmax=D,v.lstep=B,v.score=F)}S+=1}M+=1}}m+=1}var N=(0,i.prettyNumber)(v.lmax),G=(0,i.prettyNumber)(v.lmin),Y=(0,i.prettyNumber)(v.lstep),V=Math.floor(function(t){return Math.round(1e12*t)/1e12}((N-G)/Y))+1,H=new Array(V);for(H[0]=(0,i.prettyNumber)(G),_=1;_<V;_++)H[_]=(0,i.prettyNumber)(H[_-1]+Y);return{min:Math.min(t,(0,r.head)(H)),max:Math.max(n,(0,r.last)(H)),ticks:H}}},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,l=(0,r.log)(n,o);if(a>0)e=Math.floor((0,r.log)(n,a));else{var u=(0,r.getLogPositiveMin)(s,n,o);e=Math.floor((0,r.log)(n,u))}for(var c=l-e,f=Math.ceil(c/i),h=[],p=e;p<l+f;p+=f)h.push(Math.pow(n,p));return a<=0&&h.unshift(0),h}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(73),a=r.__importDefault(n(198));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=r.__importDefault(n(104)),o=r.__importDefault(n(198)),s=r.__importDefault(n(105));e.default=function(t){var e=t.min,n=t.max,r=t.tickCount,l=t.tickInterval,u=t.minLimit,c=t.maxLimit,f=(0,o.default)(e,n,r).ticks;return(0,i.isNil)(u)&&(0,i.isNil)(c)?l?(0,a.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(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=(0,r.getTickInterval)(e,n,o)[1])/o;s>1&&(a*=Math.ceil(s)),i&&a<i&&(a=i)}a=Math.max(Math.floor((n-e)/(Math.pow(2,12)-1)),a);for(var l=[],u=e;u<n+a;u+=a)l.push(u);return l}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(0),a=r.__importDefault(n(196));e.default=function(t){return(0,a.default)((0,i.__assign)({showLast:!0},t))}},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,l=t.minTickInterval,u=t.tickCount,c=t.tickInterval,f=[];c||(c=(n-e)/u,l&&c<l&&(c=l)),c=Math.max(Math.floor((n-e)/(Math.pow(2,12)-1)),c);var h=i(e);if(c>r.YEAR)for(var p=i(n),d=Math.ceil(c/r.YEAR),g=h;g<=p+d;g+=d)f.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)f.push(s(h,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)f.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)f.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)f.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)f.push(I+g*r.SECOND)}return f.length>=512&&console.warn("Notice: current ticks length("+f.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!"),f}},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(424)),o=r.__importDefault(n(425)),s=r.__importDefault(n(426)),l=n(427);Object.defineProperty(e,"getCoordinate",{enumerable:!0,get:function(){return l.getCoordinate}}),Object.defineProperty(e,"registerCoordinate",{enumerable:!0,get:function(){return l.registerCoordinate}}),(0,l.registerCoordinate)("rect",a.default),(0,l.registerCoordinate)("cartesian",a.default),(0,l.registerCoordinate)("polar",s.default),(0,l.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}(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,l=void 0===s?0:s,u=e.radius;return n.startAngle=i,n.endAngle=o,n.innerRadius=l,n.radius=u,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 l=this.a*i,u=a.vec2.length(r)-l;u=(0,o.isNumberEqual)(u,0)?0:u;var c=this.invertDim(i,"x"),f=this.invertDim(u,"y");return c=(0,o.isNumberEqual)(c,0)?0:c,f=(0,o.isNumberEqual)(f,0)?0:f,this.isTransposed&&(c=(e=[f,c])[0],f=e[1]),{x:c,y:f}},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,l=void 0===s?0:s,u=e.radius;return n.startAngle=i,n.endAngle=o,n.innerRadius=l,n.radius=u,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 l=[1,0,0,0,1,0,0,0,1];a.ext.leftRotate(l,l,i);var u=[1,0,0];a.vec3.transformMat3(u,u,l);var c=[u[0],u[1]],f=a.ext.angleTo(c,r,s<i);(0,o.isNumberEqual)(f,2*Math.PI)&&(f=0);var h=a.vec2.length(r),p=f/(s-i);p=s-i>0?p:-p;var d=this.invertDim(h,"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(428),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(430);Object.defineProperty(e,"Line",{enumerable:!0,get:function(){return r(i).default}});var a=n(432);Object.defineProperty(e,"Text",{enumerable:!0,get:function(){return r(a).default}});var o=n(433);Object.defineProperty(e,"Arc",{enumerable:!0,get:function(){return r(o).default}});var s=n(434);Object.defineProperty(e,"Region",{enumerable:!0,get:function(){return r(s).default}});var l=n(435);Object.defineProperty(e,"Image",{enumerable:!0,get:function(){return r(l).default}});var u=n(436);Object.defineProperty(e,"DataMarker",{enumerable:!0,get:function(){return r(u).default}});var c=n(437);Object.defineProperty(e,"DataRegion",{enumerable:!0,get:function(){return r(c).default}});var f=n(438);Object.defineProperty(e,"RegionFilter",{enumerable:!0,get:function(){return r(f).default}});var h=n(439);Object.defineProperty(e,"Shape",{enumerable:!0,get:function(){return r(h).default}});var p=n(440);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=r.__importDefault(n(9)),s=n(75),l=r.__importDefault(n(21)),u=n(10),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:l.default.textColor,fontSize:12,textAlign:"center",textBaseline:"bottom",fontFamily:l.default.fontFamily},text:{position:"center",autoRotate:!0,content:null,offsetX:0,offsetY:0,style:{stroke:l.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,u.getValueByPercent)(t.x,e.x,r),y:(0,u.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,l=e.offsetX,u=e.offsetY,c=e.autoRotate,f=e.maxLength,h=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+l,_=v.y+u,x={id:this.getElementId("line-text"),name:"annotation-line-text",x:m,y:_,content:a,style:o,maxLength:f,autoEllipsis:h,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,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 l="",u="",c=(o=0,0),f=i-1;o<e;){var h=r(t,c),p=!1;h+o<=e&&(l+=t[c],c++,o+=h,p=!0);var d=r(t,f);if(d+o<=e&&(u=t[f]+u,o+=d,f--,p=!0),!p)break}a=l+"…"+u}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(33),l=r.__importDefault(n(21)),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:"text",locationType:"point",x:0,y:0,content:"",rotate:null,style:{},background:null,maxLength:null,autoEllipsis:!0,isVertical:!1,ellipsisPosition:"tail",defaultCfg:{style:{fill:l.default.textColor,fontSize:12,textAlign:"center",textBaseline:"middle",fontFamily:l.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=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(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),l=i-r>Math.PI?1:0,u=[["M",a.x,a.y]];if(i-r==2*Math.PI){var c=(0,o.getCirclePoint)(e,n,r+Math.PI);u.push(["A",n,n,0,l,1,c.x,c.y]),u.push(["A",n,n,0,l,1,s.x,s.y])}else u.push(["A",n,n,0,l,1,s.x,s.y]);return u},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=r.__importDefault(n(9)),o=r.__importDefault(n(21)),s=n(10),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:"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=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(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=r.__importDefault(n(9)),s=n(75),l=n(33),u=r.__importDefault(n(21)),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:u.default.lineColor,lineWidth:1}},text:{content:"",display:!0,style:{fill:u.default.textColor,opacity:.65,fontSize:12,textAlign:"start",fontFamily:u.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"]),l=this.get("text"),u=l.background,c=l.maxLength,f=l.autoEllipsis,h=l.isVertival,p=l.ellipsisPosition,d={x:n,y:r,id:this.getElementId("text"),name:"annotation-text",content:a,style:o,background:u,maxLength:c,autoEllipsis:f,isVertival:h,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(),u=s.minX,c=s.maxX,f=s.minY,h=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+u<=o.minX){var y=o.minX-(n+u);(0,l.applyTranslate)(p,p.attr("x")+y,p.attr("y"))}if(n+c>=o.maxX){y=n+c-o.maxX;(0,l.applyTranslate)(p,p.attr("x")-y,p.attr("y"))}}if("upward"===e&&r+f<=o.minY||"upward"!==e&&r+h>=o.maxY){var v=void 0,m=void 0;"upward"===e&&r+f<=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,l.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,l="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*l]]},n),text:(0,i.__assign)({x:0,y:(s+2)*l,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=r.__importDefault(n(9)),s=r.__importDefault(n(21)),l=n(10),u=n(75),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,l.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,u.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),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:"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=l},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}(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(47),o=n(1),s=r.__importDefault(n(76)),l=n(10),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:"html",locationType:"point",x:0,y:0,containerTpl:'<div class="g2-html-annotation" style="position:absolute"></div>',alignX:"left",alignY:"top",html:"",zIndex:7})},e.prototype.render=function(){var t=this.getContainer(),e=this.get("html");(0,l.clearDom)(t);var n=(0,o.isFunction)(e)?e(t):e;if((0,o.isElement)(n))t.appendChild(n);else if((0,o.isString)(n)||(0,o.isNumber)(n)){var r=(0,a.createDom)(""+n);r&&t.appendChild(r)}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"),l=this.get("offsetY"),u=(0,a.getOuterWidth)(t),c=(0,a.getOuterHeight)(t),f={x:n,y:r};"middle"===i?f.x-=Math.round(u/2):"right"===i&&(f.x-=Math.round(u)),"middle"===o?f.y-=Math.round(c/2):"bottom"===o&&(f.y-=Math.round(c)),s&&(f.x+=s),l&&(f.y+=l),(0,a.modifyCSS)(t,{position:"absolute",left:f.x+"px",top:f.y+"px",zIndex:this.get("zIndex")})},e}(s.default);e.default=u},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(442);Object.defineProperty(e,"Line",{enumerable:!0,get:function(){return r(i).default}});var a=n(446);Object.defineProperty(e,"Circle",{enumerable:!0,get:function(){return r(a).default}});var o=n(107);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(8),o=n(1),s=r.__importDefault(n(107)),l=r.__importStar(n(201)),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),{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"),l=i.offset,u=s,c=0,f=0;a&&(c=a.style.fontSize,f=a.spacing),u&&(u=u-l-f-c);var h=this.get("overlapOrder");if((0,o.each)(h,(function(n){i[n]&&e.canProcessOverlap(n)&&e.autoProcessOverlap(n,i[n],t,u)})),a&&(0,o.isNil)(a.offset)){var p=t.getCanvasBBox(),d=n?p.width:p.height;a.offset=l+d+f+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,u=l[t];if(!0===e){this.get("label");s=u.getDefault()(a,n,r)}else if((0,o.isFunction)(e))s=e(a,n,r);else if((0,o.isObject)(e)){var c=e;u[c.type]&&(s=u[c.type](a,n,r,c.cfg))}else u[e]&&(s=u[e](a,n,r));if("autoRotate"===t){if(s){var f=n.getChildren(),h=this.get("verticalFactor");(0,o.each)(f,(function(t){if("center"===t.attr("textAlign")){var e=h>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=u},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(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(60),i=n(33),a=n(10);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),l=t?Math.abs(n.attr("y")-e.attr("y")):Math.abs(n.attr("x")-e.attr("x")),u=(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)?u.width+r>l:u.height/c+r>l}else{c=Math.abs(Math.sin(s));i=(0,a.near)(c,0,Math.PI/180)?u.width+r>l:u.height/c+r>l}return i}function l(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 l=a.length,u=a[0],c=1;c<l;c++){var f=a[c];f.getBBox();s(t,u,f,i)?(f.hide(),o=!0):u=f}return o}function u(t,e,n){var i=(null==n?void 0:n.minGap)||0,s=e.getChildren().slice();if(s.length<2)return!1;var l=!1,u=s[0],c=u.getBBox(),f=s[1],h=s.length,p=o(u),d=t?Math.abs(f.attr("y")-u.attr("y")):Math.abs(f.attr("x")-u.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<h;v++)v%g!=0&&(s[v].hide(),l=!0)}return l}function c(t,e,n,r){var i=u(t,e,r);return l(t,e,!1)&&(i=!0),i}e.getDefault=function(){return c},e.reserveFirst=function(t,e,n,r){return l(t,e,!1,r)},e.reserveLast=function(t,e,n,r){return l(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,l=a.length,u=a[0],c=a[l-1],f=u,h=1;h<l-1;h++){var p=a[h];p.getBBox();s(t,f,p,i)?(p.hide(),o=!0):f=p}return s(t,f,c,i)&&(f.hide(),o=!0),o},e.equidistance=c,e.equidistanceWithReverseBoth=function(t,e,n,r){var i=e.getChildren().slice(),a=u(t,e,r);if(i.length>2){var o=i[0],s=i[i.length-1];o.get("visible")||(o.show(),l(t,e,!1,r)&&(a=!0)),s.get("visible")||(s.show(),l(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(33),s=r.__importDefault(n(21));function l(t,e,n,r){var s=e.getChildren();if(!s.length)return!1;if(!t&&s.length<2)return!1;var l=(0,a.getMaxLabelWidth)(s),u=!1;t?u=!!n&&l>n:u=l>Math.abs(s[1].attr("x")-s[0].attr("x"));u&&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,l));return u}function u(t,e,n,r){return l(t,e,n,(function(){return(0,i.isNumber)(r)?r:t?s.default.verticalAxisRotate:s.default.horizontalAxisRotate}))}e.getDefault=function(){return u},e.fixedAngle=u,e.unfixedAngle=function(t,e,n){return l(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(1),o=n(8),s=r.__importDefault(n(107)),l=r.__importStar(n(201)),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),{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 l=this.getCirclePoint(a),u=this.getCirclePoint(o),c=Math.abs(o-a)>Math.PI?1:0,f=a>o?0:1;s=[["M",e,n],["L",l.x,l.y],["A",r,i,0,c,f,u.x,u.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"),a=o.vec2.length(r);return o.vec2.scale(r,r,i*t/a),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.prototype.canProcessOverlap=function(t){var e=this.get("label");return"autoRotate"!==t||(0,a.isNil)(e.rotate)},e.prototype.processOverlap=function(t){var e=this,n=this.get("label"),r=this.get("title"),i=this.get("verticalLimitLength"),o=n.offset,s=i,l=0,u=0;r&&(l=r.style.fontSize,u=r.spacing),s&&(s=s-o-u-l);var c=this.get("overlapOrder");if((0,a.each)(c,(function(r){n[r]&&e.canProcessOverlap(r)&&e.autoProcessOverlap(r,n[r],t,s)})),r&&(0,a.isNil)(r.offset)){var f=t.getCanvasBBox().height;r.offset=o+f+u+l/2}},e.prototype.autoProcessOverlap=function(t,e,n,r){var i=this,o=!1,s=l[t];if(r>0)if(!0===e)o=s.getDefault()(!1,n,r);else if((0,a.isFunction)(e))o=e(!1,n,r);else if((0,a.isObject)(e)){var u=e;s[u.type]&&(o=s[u.type](!1,n,r,u.cfg))}else s[e]&&(o=s[e](!1,n,r));if("autoRotate"===t){if(o){var c=n.getChildren(),f=this.get("verticalFactor");(0,a.each)(c,(function(t){if("center"===t.attr("textAlign")){var e=f>0?"end":"start";t.attr("textAlign",e)}}))}}else if("autoHide"===t){var h=n.getChildren().slice(0);(0,a.each)(h,(function(t){t.get("visible")||(i.get("isRegister")&&i.unregisterElement(t),t.remove())}))}},e}(s.default);e.default=u},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(448);Object.defineProperty(e,"Line",{enumerable:!0,get:function(){return r(i).default}});var a=n(449);Object.defineProperty(e,"Circle",{enumerable:!0,get:function(){return r(a).default}});var o=n(108);Object.defineProperty(e,"Base",{enumerable:!0,get:function(){return r(o).default}});var s=n(450);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(10),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}(r.__importDefault(n(108)).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(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,l=r.endAngle,u="start"===e?s:l,c=this.getRotateAngle()-Math.PI,f=(0,a.getCirclePoint)(i,o,u),h=Math.cos(c)*n,p=Math.sin(c)*n;return{x:f.x+h,y:f.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,l=e.y;o=[["M",s,l-n],["A",n,n,0,1,1,s,l+n],["A",n,n,0,1,1,s,l-n],["Z"]]}else{var u=(0,a.getCirclePoint)(e,n,r),c=(0,a.getCirclePoint)(e,n,i),f=Math.abs(i-r)>Math.PI?1:0,h=r>i?0:1;o=[["M",u.x,u.y],["A",n,n,0,f,h,c.x,c.y]]}return o},e}(r.__importDefault(n(108)).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(47),o=n(1),s=n(10),l=r.__importDefault(n(76)),u=r.__importStar(n(202)),c=r.__importDefault(n(451)),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),{name:"crosshair",type:"html",locationType:"region",start:{x:0,y:0},end:{x:0,y:0},capture:!1,text:null,containerTpl:'<div class="'+u.CONTAINER_CLASS+'"></div>',crosshairTpl:'<div class="'+u.CROSSHAIR_LINE+'"></div>',textTpl:'<span class="'+u.CROSSHAIR_TEXT+'">{content}</span>',domStyles:null,containerClassName:u.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(u.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(u.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}(l.default);e.default=f},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r,i=n(0),a=i.__importDefault(n(21)),o=i.__importStar(n(202));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(109);Object.defineProperty(e,"Base",{enumerable:!0,get:function(){return r(i).default}});var a=n(453);Object.defineProperty(e,"Circle",{enumerable:!0,get:function(){return r(a).default}});var o=n(454);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,l,u=this.getLineType(),c=this.get("closed"),f=[];if(t.length)if("circle"===u){var h=this.get("center"),p=t[0],d=(n=h.x,r=h.y,i=p.x,o=p.y,s=i-n,l=o-r,Math.sqrt(s*s+l*l)),g=e?0:1;c?(f.push(["M",h.x,h.y-d]),f.push(["A",d,d,0,0,g,h.x,h.y+d]),f.push(["A",d,d,0,0,g,h.x,h.y-d]),f.push(["Z"])):(0,a.each)(t,(function(t,e){0===e?f.push(["M",t.x,t.y]):f.push(["A",d,d,0,0,g,t.x,t.y])}))}else(0,a.each)(t,(function(t,e){0===e?f.push(["M",t.x,t.y]):f.push(["L",t.x,t.y])})),c&&f.push(["Z"]);return f},e}(r.__importDefault(n(109)).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}(r.__importDefault(n(109)).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(456);Object.defineProperty(e,"Category",{enumerable:!0,get:function(){return r(i).default}});var a=n(457);Object.defineProperty(e,"Continuous",{enumerable:!0,get:function(){return r(a).default}});var o=n(110);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(60),s=n(33),l=n(200),u=r.__importDefault(n(21)),c=r.__importDefault(n(110)),f={marker:{style:{inactiveFill:"#000",inactiveOpacity:.45,fill:"#000",opacity:1,size:12}},text:{style:{fill:"#ccc",fontSize:12}}},h={fill:u.default.textColor,fontSize:12,textAlign:"start",textBaseline:"middle",fontFamily:u.default.fontFamily,fontWeight:"normal",lineHeight:12},p={right:90*Math.PI/180,left:270*Math.PI/180,up:0,down:180*Math.PI/180},d=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:{},radio:null,items:[],itemStates:{},itemBackground:{},pageNavigator:{},defaultCfg:{title:{spacing:5,style:{fill:u.default.textColor,fontSize:12,textAlign:"start",textBaseline:"top"}},background:{padding:5,style:{stroke:u.default.lineColor}},itemBackground:{style:{opacity:0,fill:"#fff"}},pageNavigator:f,itemName:{spacing:16,style:h},marker:{spacing:8,style:{r:6,symbol:"circle"}},itemValue:{alignRight:!1,formatter:null,style:h,spacing:6},itemStates:{active:{nameStyle:{opacity:.8}},unchecked:{nameStyle:{fill:u.default.uncheckedColor},markerStyle:{fill:u.default.uncheckedColor,stroke:u.default.uncheckedColor}},inactive:{nameStyle:{fill:u.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"),l=this.get("itemMarginBottom"),u=this.get("currentPoint"),c=u.x,f=u.y,h=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"===h?(y&&y<u.x+m-c&&(d=!0,u.x=c,u.y+=i+l),e.moveElementTo(a,u),u.x+=m+s):(v&&v<u.y+i+l-f&&(d=!0,u.x+=g+s,u.y=f,g=0),e.moveElementTo(a,u),u.y+=i+l)})),d&&this.get("flipPage")&&(this.pageHeight=0,this.pageWidth=0,this.totalPagesCnt=1,this.startX=c,this.startY=f,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)({},h),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}),l=s.getBBox();s.attr("x",l.width/2);var u=s.attr(),c=u.stroke,f=u.fill;return c&&s.set("isStroke",!0),f&&s.set("isFill",!0),s},e.prototype.drawItemText=function(t,e,n,r,o,s,l){var u=n.formatter,c=n.style,f=(0,i.__assign)((0,i.__assign)({x:s,y:o/2,text:u?u(r[e],r,l):r[e]},h),(0,a.isFunction)(c)?c(r,l,this.getItems()):c);return this.addShape(t,{type:"text",id:this.getElementId("item-"+r.id+"-"+e),name:"legend-item-"+e,attrs:f})},e.prototype.drawRadio=function(t,e,n,r,a){var o,s,l=e.style||{},u=null!==(o=l.r)&&void 0!==o?o:r/2,c=3.6*u/8,f=[a+u,r/2-u],h=f[0],p=f[1],d=[h+u,p+u],g=d[0],y=d[1],v=[h,y+u],m=v[0],_=v[1],x=[a,p+u],b=x[0],M=x[1],C=n.showRadio,P=(0,i.__assign)((0,i.__assign)({path:[["M",h,p],["A",u,u,0,0,1,g,y],["L",g-c,y],["L",g,y],["A",u,u,0,0,1,m,_],["L",m,_-c],["L",m,_],["A",u,u,0,0,1,b,M],["L",b+c,M],["L",b,M],["A",u,u,0,0,1,h,p],["L",h,p+c]],stroke:"#000000",fill:"#ffffff"},l),{opacity:C?null!==(s=null==l?void 0:l.opacity)&&void 0!==s?s:.45:0}),S=this.addShape(t,{type:"path",id:this.getElementId("item-"+n.id+"-radio"),name:"legend-item-radio",attrs:P});return S.set("tip",e.tip),S},e.prototype.drawItem=function(t,e,n,r){var s="item-"+t.id,l=this.addGroup(r,{name:"legend-item-container",id:this.getElementId("item-container-"+s),delegateObject:{item:t,index:e}}),u=this.addGroup(l,{name:"legend-item",id:this.getElementId(s),delegateObject:{item:t,index:e}}),c=this.get("marker"),f=this.get("itemName"),h=this.get("itemValue"),p=this.get("itemBackground"),d=this.get("radio"),g=this.getLimitItemWidth(),y=0;if(c){var v=this.drawMarker(u,c,t,n),m=c.spacing,_=(0,a.get)(t,["marker","spacing"]);(0,a.isNumber)(_)&&(m=_),y=v.getBBox().maxX+m}if(f){var x=this.drawItemText(u,"name",f,t,n,y,e);g&&(0,o.ellipsisLabel)(!0,x,(0,a.clamp)(g-y,0,g)),y=x.getBBox().maxX+f.spacing}if(h){var b=this.drawItemText(u,"value",h,t,n,y,e);g&&(h.alignRight?(b.attr({textAlign:"right",x:g}),(0,o.ellipsisLabel)(!0,b,(0,a.clamp)(g-y,0,g),"head")):(0,o.ellipsisLabel)(!0,b,(0,a.clamp)(g-y,0,g))),y=b.getBBox().maxX+h.spacing}if(d&&this.drawRadio(u,d,t,n,y),p){var M=u.getBBox();this.addShape(u,{type:"rect",name:"legend-item-background",id:this.getElementId(s+"-background"),attrs:(0,i.__assign)({x:0,y:0,width:M.width,height:n},p.style)}).toBack()}return this.applyItemStates(t,u),u},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")})),l=this.get("maxWidth"),u=this.get("maxHeight"),c=this.get("itemWidth"),h=this.get("itemSpacing"),p=this.getItemHeight(),d=(0,a.deepMix)({},f,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+h||l<v.x+i+h+y.width)&&(1===m&&(_=v.x+h,n.pageWidth=_,n.moveElementTo(g,{x:l-h-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+h,height:p}}),v.x+=i+h}))}else{(0,a.each)(s,(function(t){var e=t.getBBox();e.width>x&&(x=e.width)})),b=x,x+=h,l&&(x=Math.min(l,x),b=Math.min(l,b)),this.pageWidth=x,this.pageHeight=u-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:u-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"}),l=(0,a.get)(r.marker,"style",{}),u=l.size,c=void 0===u?12:u,f=(0,i.__rest)(l,["size"]),h=this.drawArrow(s,o,"navigation-arrow-left","horizontal"===e?"up":"left",c,f);h.on("click",this.onNavigationBack);var p=h.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,f).on("click",this.onNavigationAfter),s},e.prototype.updateNavigation=function(t){var e=(0,a.deepMix)({},f,this.get("pageNavigator")).marker.style,n=e.fill,r=e.opacity,i=e.inactiveFill,o=e.inactiveOpacity,s=this.currentPageIndex+"/"+this.totalPagesCnt,l=t?t.getChildren()[1]:this.getElementByLocalId("navigation-text"),u=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");l.attr("text",s),u.attr("opacity",1===this.currentPageIndex?o:r),u.attr("fill",1===this.currentPageIndex?i:n),u.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");var h=u.getBBox().maxX+2;l.attr("x",h),h+=l.getBBox().width+2,this.updateArrowPath(c,{x:h,y:0})},e.prototype.drawArrow=function(t,e,n,r,a,o){var l=e.x,u=e.y,c=this.addShape(t,{type:"path",id:this.getElementId(n),name:n,attrs:(0,i.__assign)({size:a,direction:r,path:[["M",l+a/2,u],["L",l,u+a],["L",l+a,u+a],["Z"]],cursor:"pointer"},o)});return c.attr("matrix",(0,s.getMatrixByAngle)({x:l+a/2,y:u+a/2},p[r])),c},e.prototype.updateArrowPath=function(t,e){var n=e.x,r=e.y,i=t.attr(),a=i.size,o=i.direction,l=(0,s.getMatrixByAngle)({x:n+a/2,y:r+a/2},p[o]);t.attr("path",[["M",n+a/2,r],["L",n,r+a],["L",n+a,r+a],["Z"]]),t.attr("matrix",l)},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,l.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=d},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(10),l=r.__importDefault(n(110)),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),{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(),l=i-r;l<0?a[0]+l>s.min?e.setValue([a[0]+l,a[1]+l]):e.setValue([s.min,s.min+o]):l>0&&(l>0&&a[1]+l<s.max?e.setValue([a[0]+l,a[1]+l]):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,l=this.get(t),u=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(l):l},r),u)})},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,l=this.isVertical(),u=n,c=r;u||(u=l?a:o),c||(c=l?o:a);var f=[];return"color"===s?(f.push(["M",t,e]),f.push(["L",t+u,e]),f.push(["L",t+u,e+c]),f.push(["L",t,e+c]),f.push(["Z"])):(f.push(["M",t+u,e]),f.push(["L",t+u,e+c]),f.push(["L",t,e+c]),f.push(["Z"])),f},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],l=this.getRailBBox(t),u=this.getPointByValue(o,t),c=this.getPointByValue(s,t);return this.isVertical()?(e=l.minX,n=u.y,r=l.width,i=c.y-u.y):(e=u.x,n=l.minY,r=c.x-u.x,i=l.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(),l=this.isVertical(),u=this.get("step");n=l?(e-o.minY)/o.height:(t-o.minX)/o.width;var c=(0,s.getValueByPercent)(i,a,n);u&&(c=i+Math.round((c-i)/u)*u);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,l=i/2,u=i/6;if(n){var c=a+.4*s;r.push(["M",a,o]),r.push(["L",c,o+l]),r.push(["L",a+s,o+l]),r.push(["L",a+s,o-l]),r.push(["L",c,o-l]),r.push(["Z"]),r.push(["M",c,o+u]),r.push(["L",a+s-2,o+u]),r.push(["M",c,o-u]),r.push(["L",a+s-2,o-u])}else{var f=o+.4*s;r.push(["M",a,o]),r.push(["L",a-l,f]),r.push(["L",a-l,o+s]),r.push(["L",a+l,o+s]),r.push(["L",a+l,f]),r.push(["Z"]),r.push(["M",a-u,f]),r.push(["L",a-u,o+s-2]),r.push(["M",a+u,f]),r.push(["L",a+u,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),l=t.findById(s),u=this.isVertical();l?l.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:u?"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,l=o.spacing,u=this.get("max"+(0,a.upperFirst)(i));if(u){var c=("rail"===s?n[i]+t[i]+e[i]+2*l:n[i])-u;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(),l=t.getBBox(),u=e.getBBox(),c=s.height;this.fitRailLength(l,u,s,n),s=n.getBBox(),"rail"===a?(t.attr({x:r.x,y:r.y+c/2}),this.changeRailPosition(n,r.x+l.width+o,r.y),e.attr({x:r.x+l.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+l.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(),l=t.getBBox(),u=e.getBBox();if(this.fitRailLength(l,u,s,n),s=n.getBBox(),"rail"===a)t.attr({x:r.x,y:r.y}),this.changeRailPosition(n,r.x,r.y+l.height+o),e.attr({x:r.x,y:r.y+l.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(l.width,u.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}(l.default);e.default=u},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(459);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=r.__importDefault(n(70)),o=n(47),s=n(1),l=r.__importDefault(n(76)),u=n(10),c=r.__importStar(n(111)),f=r.__importDefault(n(460)),h=n(461);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:f.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,l=this.get("position"),c=this.get("region"),f=this.getContainer(),p=this.getBBox(),d=p.width,g=p.height;c&&(t=(0,u.regionToBBox)(c));var y=(0,h.getAlignPoint)(e,n,r,d,g,l,t);(0,o.modifyCSS)(f,{left:(0,u.toPx)(y.x+a),top:(0,u.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,u.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,u.toPx)(r),top:(0,u.toPx)(e.y),height:(0,u.toPx)(e.height)}):(0,o.modifyCSS)(n,{top:(0,u.toPx)(r),left:(0,u.toPx)(e.x),width:(0,u.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),l=(0,i.__assign)((0,i.__assign)({},t),{color:r}),u=(0,s.substitute)(e,l),c=(0,o.createDom)(u);n.appendChild(c)})),this.applyChildrenStyles(n,this.get("domStyles")))},e.prototype.clearItemDoms=function(){this.get("listDom")&&(0,u.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}(l.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(21)),o=i.__importStar(n(111));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,l){var u=i(t,e,n,a,o,s);if(l){var c=r(u.x,u.y,a,o,l);"auto"===s?(c.right&&(u.x=Math.max(0,t-a-n)),c.top&&(u.y=Math.max(0,e-o-n))):"top"===s||"bottom"===s?(c.left&&(u.x=l.x),c.right&&(u.x=l.x+l.width-a),"top"===s&&c.top&&(u.y=e+n),"bottom"===s&&c.bottom&&(u.y=e-o-n)):(c.top&&(u.y=l.y),c.bottom&&(u.y=l.y+l.height-o),"left"===s&&c.left&&(u.x=t+n),"right"===s&&c.right&&(u.x=t-a-n))}return u}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Slider=void 0;var r=n(463);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(464),l=n(467),u=n(468),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,l=e.adjustOffsetRange(s/n);e.updateStartEnd(l),e.updateUI(e.getElementByLocalId("foreground"),e.getElementByLocalId("minText"),e.getElementByLocalId("maxText")),e.prevX=i,e.prevY=o,e.draw(),e.emit(u.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:u.BACKGROUND_STYLE,foregroundStyle:u.FOREGROUND_STYLE,handlerStyle:u.HANDLER_STYLE,textStyle:u.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,f=e.minText,h=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)({},l.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:f,silent:!1},m)}),this.addShape(t,{id:this.getElementId("maxText"),type:"text",attrs:(0,i.__assign)({y:r/2,textAlign:"left",text:h,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",u.DEFAULT_HANDLER_WIDTH),b=(0,a.get)(_,"height",24);this.minHandler=this.addComponent(t,{component:l.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:l.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,l=r.minText,c=r.maxText,f=r.handlerStyle,h=r.height,p=i*s,d=o*s;this.trend&&(this.trend.update({width:s,height:h}),this.get("updateAutoRender")||this.trend.render()),t.attr("x",p),t.attr("width",d-p);var g=(0,a.get)(f,"width",u.DEFAULT_HANDLER_WIDTH);e.attr("text",l),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,l=o.width,c=(0,a.get)(s,"width",u.DEFAULT_HANDLER_WIDTH),f=t[0],h=t[1],p=!1;f>h&&(f=(r=[h,f])[0],h=r[1],e=(i=[n,e])[0],n=i[1],p=!0);var d=e.getBBox(),g=n.getBBox(),y=d.width>f-2?{x:f+c/2+2,textAlign:"left"}:{x:f-c/2-2,textAlign:"right"},v=g.width>l-h-2?{x:h-c/2-2,textAlign:"right"}:{x:h+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(465),s=n(466),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:"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,l=e.isArea,u=e.backgroundStyle,c=e.lineStyle,f=e.areaStyle;this.addShape(t,{id:this.getElementId("background"),type:"rect",attrs:(0,i.__assign)({x:0,y:0,width:n,height:r},u)});var h=(0,s.dataToPath)(a,n,r,o);if(this.addShape(t,{id:this.getElementId("line"),type:"path",attrs:(0,i.__assign)({path:h},c)}),l){var p=(0,s.linePathToAreaPath)(h,n,r,a);this.addShape(t,{id:this.getElementId("area"),type:"path",attrs:(0,i.__assign)({path:p},f)})}},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=l,e.default=l},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(50),a=n(103),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 l(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],l=r[1];return n.unshift(["M",a,l]),n}function u(t,e){var n=new a.Linear({values:t}),r=n.max<0?n.max:Math.max(0,n.min);return e-n.scale(r)*e}e.getLinePath=s,e.getSmoothLinePath=l,e.dataToPath=function(t,e,n,r){void 0===r&&(r=!0);var i=new a.Linear({values:t}),u=new a.Category({values:(0,o.map)(t,(function(t,e){return e}))}),c=(0,o.map)(t,(function(t,r){return[u.scale(r)*e,n-i.scale(t)*n]}));return r?l(c):s(c)},e.getAreaLineY=u,e.linePathToAreaPath=function(t,e,n,i){var a=(0,r.__spreadArrays)(t),o=u(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(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,l=i.opacity,u=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:l,cursor:u}});var c=1/3*n,f=2/3*n,h=1/4*r,p=3/4*r;this.addShape(t,{id:this.getElementId("line-left"),type:"line",attrs:{x1:c,y1:h,x2:c,y2:p,stroke:o,cursor:u}}),this.addShape(t,{id:this.getElementId("line-right"),type:"line",attrs:{x1:f,y1:h,x2:f,y2:p,stroke:o,cursor:u}})},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(470),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(47),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 l=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,l=r?a:s,u=l-e.startPos;e.startPos=l,e.updateThumbOffset(i+u)},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(),l=t.clientX,u=t.clientY,c=r?l-s.left-i-o/2:u-s.top-a-o/2,f=e.validateRange(c);e.updateThumbOffset(f)},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,l=s.lineCap,u=s.trackColor,c=s.size,f=(0,o.get)(this.cfg,"size",c),h=this.get("isHorizontal")?{x1:0+f/2,y1:f/2,x2:r-f/2,y2:f/2,lineWidth:f,stroke:u,lineCap:l}:{x1:f/2,y1:0+f/2,x2:f/2,y2:r-f/2,lineWidth:f,stroke:u,lineCap:l};return this.addShape(t,{id:this.getElementId("track"),name:"track",type:"line",attrs:h})},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,l=s.size,u=s.lineCap,c=s.thumbColor,f=(0,o.get)(this.cfg,"size",l),h=this.get("isHorizontal")?{x1:r+f/2,y1:f/2,x2:r+i-f/2,y2:f/2,lineWidth:f,stroke:c,lineCap:u,cursor:"default"}:{x1:f/2,y1:r+f/2,x2:f/2,y2:r+i-f/2,lineWidth:f,stroke:c,lineCap:u,cursor:"default"};return this.addShape(t,{id:this.getElementId("thumb"),name:"thumb",type:"line",attrs:h})},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=l},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(203),o=r.__importDefault(n(475)),s=r.__importDefault(n(204));function l(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 ".concat(i));return{action:o,methodName:r[1],arg:n}}function u(t){var e=t.action,n=t.methodName,r=t.arg;if(!e[n])throw new Error("Action(".concat(e.name,") doesn't have a method called ").concat(n));e[n](r)}e.parseAction=l;var c="start",f="showEnable",h="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;(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=l(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(l(n,e,r[i]))}))}}))}))},e.prototype.isAllowStep=function(t){var e=this.currentStepName,n=this.steps;if(e===t)return!0;if(t===f)return!0;if(t===d)return e===c;if(t===c)return e!==d;if(t===h)return e===d||e===c;if(t===p){if(n[h])return e===h;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!==f&&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 l=function(a){r.event=a,n.isAllowExecute(t,e)?((0,i.isArray)(o)?(0,i.each)(o,(function(t){r.event=a,u(t)})):(r.event=a,u(o)),n.afterExecute(t,e),e.callback&&(r.event=a,e.callback(r))):r.event=null};e.debounce?a[s]=(0,i.debounce)(l,e.debounce.wait,e.debounce.immediate):e.throttle?a[s]=(0,i.throttle)(l,e.throttle.wait,{leading:e.throttle.leading,trailing:e.throttle.trailing}):a[s]=l}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(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(){(0,r.each)(this.actions.slice(),(function(t){t.destroy()})),this.view=null,this.event=null,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(207),o=n(477);e.createTheme=function(t){var e=t.styleSheet,n=void 0===e?{}:e,s=r.__rest(t,["styleSheet"]),l=(0,o.createLightStyleSheet)(n);return(0,i.deepMix)({},(0,a.createThemeByStyleSheet)(l),s)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.antvLight=e.createLightStyleSheet=void 0;var r=n(0),i="#000",a="#595959",o="#8C8C8C",s="#BFBFBF",l="#D9D9D9",u="#F0F0F0",c="#FFFFFF",f="#D9D9D9",h=["#5B8FF9","#5AD8A6","#5D7092","#F6BD16","#6F5EF9","#6DC8EC","#945FB9","#FF9845","#1E9493","#FF99C3"],p=["#5B8FF9","#CDDDFD","#5AD8A6","#CDF3E4","#5D7092","#CED4DE","#F6BD16","#FCEBB9","#6F5EF9","#D3CEFD","#6DC8EC","#D3EEF9","#945FB9","#DECFEA","#FF9845","#FFE0C7","#1E9493","#BBDEDE","#FF99C3","#FFE0ED"],d=["#B8E1FF","#9AC5FF","#7DAAFF","#5B8FF9","#3D76DD","#085EC0","#0047A5","#00318A","#001D70"];e.createLightStyleSheet=function(t){void 0===t&&(t={});var e=t.paletteQualitative10,n=void 0===e?h:e,g=t.paletteQualitative20,y=void 0===g?p:g,v=t.brandColor,m=void 0===v?n[0]:v,_={backgroundColor:"transparent",brandColor:m,subColor:"rgba(0,0,0,0.05)",paletteQualitative10:n,paletteQualitative20:y,paletteSemanticRed:"#F4664A",paletteSemanticGreen:"#30BF78",paletteSemanticYellow:"#FAAD14",paletteSequence:d,fontFamily:'"Segoe UI", Roboto, "Helvetica Neue", Arial,\n "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol",\n "Noto Color Emoji"',axisLineBorderColor:s,axisLineBorder:1,axisLineDash:null,axisTitleTextFillColor:a,axisTitleTextFontSize:12,axisTitleTextLineHeight:12,axisTitleTextFontWeight:"normal",axisTitleSpacing:12,axisDescriptionIconFillColor:f,axisTickLineBorderColor:s,axisTickLineLength:4,axisTickLineBorder:1,axisSubTickLineBorderColor:l,axisSubTickLineLength:2,axisSubTickLineBorder:1,axisLabelFillColor:o,axisLabelFontSize:12,axisLabelLineHeight:12,axisLabelFontWeight:"normal",axisLabelOffset:8,axisGridBorderColor:l,axisGridBorder:1,axisGridLineDash:null,legendTitleTextFillColor:o,legendTitleTextFontSize:12,legendTitleTextLineHeight:21,legendTitleTextFontWeight:"normal",legendMarkerColor:m,legendMarkerSpacing:8,legendMarkerSize:4,legendCircleMarkerSize:4,legendSquareMarkerSize:4,legendLineMarkerSize:5,legendItemNameFillColor:a,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:i,legendPageNavigatorMarkerInactiveFillOpacity:.45,legendPageNavigatorMarkerFillColor:i,legendPageNavigatorMarkerFillOpacity:1,legendPageNavigatorTextFillColor:o,legendPageNavigatorTextFontSize:12,sliderRailFillColor:l,sliderRailBorder:0,sliderRailBorderColor:null,sliderRailWidth:100,sliderRailHeight:12,sliderLabelTextFillColor:o,sliderLabelTextFontSize:12,sliderLabelTextLineHeight:12,sliderLabelTextFontWeight:"normal",sliderHandlerFillColor:u,sliderHandlerWidth:10,sliderHandlerHeight:14,sliderHandlerBorder:1,sliderHandlerBorderColor:s,annotationArcBorderColor:l,annotationArcBorder:1,annotationLineBorderColor:s,annotationLineBorder:1,annotationLineDash:null,annotationTextFillColor:a,annotationTextFontSize:12,annotationTextLineHeight:12,annotationTextFontWeight:"normal",annotationTextBorderColor:null,annotationTextBorder:0,annotationRegionFillColor:i,annotationRegionFillOpacity:.06,annotationRegionBorder:0,annotationRegionBorderColor:null,annotationDataMarkerLineLength:16,tooltipCrosshairsBorderColor:s,tooltipCrosshairsBorder:1,tooltipCrosshairsLineDash:null,tooltipContainerFillColor:"rgb(255, 255, 255)",tooltipContainerFillOpacity:.95,tooltipContainerShadow:"0px 0px 10px #aeaeae",tooltipContainerBorderRadius:3,tooltipTextFillColor:a,tooltipTextFontSize:12,tooltipTextLineHeight:12,tooltipTextFontWeight:"bold",labelFillColor:a,labelFillColorDark:"#2c3542",labelFillColorLight:"#ffffff",labelFontSize:12,labelLineHeight:12,labelFontWeight:"normal",labelBorderColor:null,labelBorder:0,innerLabelFillColor:c,innerLabelFontSize:12,innerLabelLineHeight:12,innerLabelFontWeight:"normal",innerLabelBorderColor:null,innerLabelBorder:0,overflowLabelFillColor:a,overflowLabelFontSize:12,overflowLabelLineHeight:12,overflowLabelFontWeight:"normal",overflowLabelBorderColor:c,overflowLabelBorder:1,labelLineBorder:1,labelLineBorderColor:s,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:m,pointFillOpacity:.95,pointSize:4,pointBorder:1,pointBorderColor:c,pointBorderOpacity:1,pointActiveBorderColor:i,pointSelectedBorder:2,pointSelectedBorderColor:i,pointInactiveFillOpacity:.3,pointInactiveBorderOpacity:.3,hollowPointSize:4,hollowPointBorder:1,hollowPointBorderColor:m,hollowPointBorderOpacity:.95,hollowPointFillColor:c,hollowPointActiveBorder:1,hollowPointActiveBorderColor:i,hollowPointActiveBorderOpacity:1,hollowPointSelectedBorder:2,hollowPointSelectedBorderColor:i,hollowPointSelectedBorderOpacity:1,hollowPointInactiveBorderOpacity:.3,lineBorder:2,lineBorderColor:m,lineBorderOpacity:1,lineActiveBorder:3,lineSelectedBorder:3,lineInactiveBorderOpacity:.3,areaFillColor:m,areaFillOpacity:.25,areaActiveFillColor:m,areaActiveFillOpacity:.5,areaSelectedFillColor:m,areaSelectedFillOpacity:.5,areaInactiveFillOpacity:.3,hollowAreaBorderColor:m,hollowAreaBorder:2,hollowAreaBorderOpacity:1,hollowAreaActiveBorder:3,hollowAreaActiveBorderColor:i,hollowAreaSelectedBorder:3,hollowAreaSelectedBorderColor:i,hollowAreaInactiveBorderOpacity:.3,intervalFillColor:m,intervalFillOpacity:.95,intervalActiveBorder:1,intervalActiveBorderColor:i,intervalActiveBorderOpacity:1,intervalSelectedBorder:2,intervalSelectedBorderColor:i,intervalSelectedBorderOpacity:1,intervalInactiveBorderOpacity:.3,intervalInactiveFillOpacity:.3,hollowIntervalBorder:2,hollowIntervalBorderColor:m,hollowIntervalBorderOpacity:1,hollowIntervalFillColor:c,hollowIntervalActiveBorder:2,hollowIntervalActiveBorderColor:i,hollowIntervalSelectedBorder:3,hollowIntervalSelectedBorderColor:i,hollowIntervalSelectedBorderOpacity:1,hollowIntervalInactiveBorderOpacity:.3};return r.__assign(r.__assign({},_),t)},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(19),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,l=r.__assign({start:t,end:e},o),u=(0,a.getCoordinate)(s?"polar":i);return this.coordinate=new u(l),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;(0,i.each)(n,(function(n){var a,o=r.__read(n),s=o[0],l=o.slice(1);(!!(0,i.isNil)(t)||t.includes(s))&&(a=e.coordinate)[s].apply(a,r.__spreadArray([],r.__read(l),!1))}))},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(38),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 l=s.scale,u={type:l.type};l.isCategory&&(u.values=l.values),o=(0,r.deepMix)(u,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,l=Number.MIN_SAFE_INTEGER,u=[];(0,r.each)(a,(function(t){var e=n.getScale(t);l=(0,r.isNumber)(e.max)?Math.max(l,e.max):l,s=(0,r.isNumber)(e.min)?Math.min(s,e.min):s,(0,r.each)(e.values,(function(t){u.includes(t)||u.push(t)}))})),(0,r.each)(a,(function(a){var o=n.getScale(a);if(o.isContinuous)o.change({min:s,max:l,values:u});else if(o.isCategory){var c=o.range,f=n.getScaleMeta(a);u&&!(0,r.get)(f,["scaleDef","range"])&&(c=(0,i.getDefaultCategoryScaleRange)((0,r.deepMix)({},o,{values:u}),t,e)),o.change({values:u,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(29),s=n(113),l=n(209);e.calculatePadding=function(t){var e=t.padding;if(!(0,s.isAutoPadding)(e))return new(l.PaddingCal.bind.apply(l.PaddingCal,r.__spreadArray([void 0],r.__read((0,s.parsePadding)(e)),!1)));var n=t.viewBBox,u=new l.PaddingCal,c=[],f=[],h=[];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)?f.push(t):e!==a.COMPONENT_TYPE.GRID&&e!==a.COMPONENT_TYPE.TOOLTIP&&h.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);u.max(r)})),(0,i.each)(f,(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);u.inc(a,n)})),(0,i.each)(h,(function(t){var e=t.component,n=t.direction,r=e.getLayoutBBox(),i=new o.BBox(r.x,r.y,r.width,r.height);u.inc(i,n)})),u}},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(0),i=n(1);e.group=function(t,e,n){var a,o;if(void 0===n&&(n={}),!e)return[t];var s=(0,i.groupToMap)(t,e),l=[];if(1===e.length&&n[e[0]]){var u=n[e[0]];try{for(var c=r.__values(u),f=c.next();!f.done;f=c.next()){var h=f.value,p=s["_".concat(h)];p&&l.push(p)}}catch(t){a={error:t}}finally{try{f&&!f.done&&(o=c.return)&&o.call(c)}finally{if(a)throw a.error}}}else for(var d in s)if(s.hasOwnProperty(d)){var g=s[d];l.push(g)}return l}},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(36),o=n(117),s=n(53),l=n(13),u=n(54),c=n(2),f=n(486),h=function(){function t(t){this.shapesMap={};var e=t.layout,n=t.container;this.layout=e,this.container=n}return t.prototype.render=function(t,e,n){return void 0===n&&(n=!1),r.__awaiter(this,void 0,void 0,(function(){var o,s,l,u,c,h,p,d,g=this;return r.__generator(this,(function(y){switch(y.label){case 0:if(o={},s=this.createOffscreenGroup(),!t.length)return[3,2];try{for(l=r.__values(t),u=l.next();!u.done;u=l.next())(c=u.value)&&(o[c.id]=this.renderLabel(c,s))}catch(t){p={error:t}}finally{try{u&&!u.done&&(d=l.return)&&d.call(l)}finally{if(p)throw p.error}}return[4,this.doLayout(t,e,o)];case 1:y.sent(),this.renderLabelLine(t,o),this.renderLabelBackground(t,o),this.adjustLabel(t,o),y.label=2;case 2:return h=this.shapesMap,(0,i.each)(o,(function(t,e){if(t.destroyed)delete o[e];else{if(h[e]){var s=t.get("data"),l=t.get("origin"),u=t.get("coordinate"),c=t.get("animateCfg"),p=h[e];(0,f.updateLabel)(p,o[e],{data:s,origin:l,animateCfg:c,coordinate:u}),o[e]=p}else{if(g.container.destroyed)return;g.container.add(t);var d=(0,i.get)(t.get("animateCfg"),n?"enter":"appear");d&&(0,a.doAnimate)(t,d,{toAttrs:r.__assign({},t.attr()),coordinate:t.get("coordinate")})}delete h[e]}})),(0,i.each)(h,(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.shapesMap=o,s.destroy(),[2]}}))}))},t.prototype.clear=function(){this.container.clear(),this.shapesMap={}},t.prototype.destroy=function(){this.container.destroy(),this.shapesMap=null},t.prototype.renderLabel=function(t,e){var n,a=t.id,o=t.elementId,s=t.data,l=t.mappingData,f=t.coordinate,h=t.animate,p=t.content,d={id:a,elementId:o,capture:t.capture,data:s,origin:r.__assign(r.__assign({},l),{data:l[c.FIELD_ORIGIN]}),coordinate:f},g=e.addGroup(r.__assign({name:"label",animateCfg:!1!==this.animate&&null!==h&&!1!==h&&(0,i.deepMix)({},this.animate,h)},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,u.translate)(p,x,b),n=p,g.add(p)}else{var M=(0,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:(0,i.get)(t,"textBaseline","middle"),text:t.content},t.style),{fill:(0,i.isNull)(M)?t.color:M})},d))}return t.rotate&&(0,u.rotate)(n,t.rotate),g},t.prototype.doLayout=function(t,e,n){return r.__awaiter(this,void 0,void 0,(function(){var a,s=this;return r.__generator(this,(function(r){switch(r.label){case 0:return this.layout?(a=(0,i.isArray)(this.layout)?this.layout:[this.layout],[4,Promise.all(a.map((function(r){var a=(0,o.getGeometryLabelLayout)((0,i.get)(r,"type",""));if(a){var l=[],u=[];return(0,i.each)(n,(function(t,n){l.push(t),u.push(e[t.get("elementId")])})),a(t,l,u,s.region,r.cfg)}})))]):[3,2];case 1:r.sent(),r.label=2;case 2:return[2]}}))}))},t.prototype.renderLabelLine=function(t,e){(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",{}),u=t.id,c=s.path;if(!c){var f=(0,l.polarToCartesian)(a.x,a.y,o,t.angle);c=[["M",f.x,f.y],["L",t.x,t.y]]}var h=e[u];h.destroyed||h.addShape("path",{capture:!1,attrs:r.__assign({path:c,stroke:t.color?t.color:(0,i.get)(t,["style","fill"],"#000"),fill:null},s.style),id:u,origin:t.mappingData,data:t.data,coordinate:t.coordinate})}}}))},t.prototype.renderLabelBackground=function(t,e){(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,l=e[o];if(!l.destroyed){var u=l.getChildren()[0];if(u){var c=(0,s.getLabelBackgroundInfo)(l,t,a.padding),f=c.rotation,h=r.__rest(c,["rotation"]),p=l.addShape("rect",{attrs:r.__assign(r.__assign({},h),a.style||{}),id:o,origin:t.mappingData,data:t.data,coordinate:t.coordinate});if(p.setZIndex(-1),f){var d=u.getMatrix();p.setMatrix(d)}}}}}))},t.prototype.createOffscreenGroup=function(){return new(this.container.getGroupBase())({})},t.prototype.adjustLabel=function(t,e){(0,i.each)(t,(function(t){if(t){var n=t.id,r=e[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=h},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.updateLabel=void 0;var r=n(1),i=n(36),a=n(13);e.updateLabel=function t(e,n,o){var s=o.data,l=o.origin,u=o.animateCfg,c=o.coordinate,f=(0,r.get)(u,"update");e.set("data",s),e.set("origin",l),e.set("animateCfg",u),e.set("coordinate",c),e.set("visible",n.get("visible")),(e.getChildren()||[]).forEach((function(r,h){var p=n.getChildByIndex(h);if(p){r.set("data",s),r.set("origin",l),r.set("animateCfg",u),r.set("coordinate",c);var d=(0,a.getReplaceAttrs)(r,p);f?(0,i.doAnimate)(r,f,{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=n(0),i="#000",a="#262626",o="#BFBFBF",s="#F0F0F0",l="#FFFFFF",u="#A6A6A6",c="#737373",f="#404040",h="#262626",p=["#5B8FF9","#5AD8A6","#5D7092","#F6BD16","#E86452","#6DC8EC","#945FB9","#FF9845","#1E9493","#FF99C3"],d=["#5B8FF9","#CDDDFD","#5AD8A6","#CDF3E4","#5D7092","#CED4DE","#F6BD16","#FCEBB9","#E86452","#F8D0CB","#6DC8EC","#D3EEF9","#945FB9","#DECFEA","#FF9845","#FFE0C7","#1E9493","#BBDEDE","#FF99C3","#FFE0ED"],g=["#B8E1FF","#9AC5FF","#7DAAFF","#5B8FF9","#3D76DD","#085EC0","#0047A5","#00318A","#001D70"];e.createDarkStyleSheet=function(t){void 0===t&&(t={});var e=t.paletteQualitative10,n=void 0===e?p:e,y=t.paletteQualitative20,v=void 0===y?d:y,m=t.brandColor,_={backgroundColor:"#141414",brandColor:void 0===m?n[0]:m,subColor:"rgba(255,255,255,0.05)",paletteQualitative10:n,paletteQualitative20:v,paletteSemanticRed:"#F4664A",paletteSemanticGreen:"#30BF78",paletteSemanticYellow:"#FAAD14",paletteSequence:g,fontFamily:'"Segoe UI", Roboto, "Helvetica Neue", Arial,\n "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol",\n "Noto Color Emoji"',axisLineBorderColor:f,axisLineBorder:1,axisLineDash:null,axisTitleTextFillColor:u,axisTitleTextFontSize:12,axisTitleTextLineHeight:12,axisTitleTextFontWeight:"normal",axisTitleSpacing:12,axisDescriptionIconFillColor:a,axisTickLineBorderColor:f,axisTickLineLength:4,axisTickLineBorder:1,axisSubTickLineBorderColor:h,axisSubTickLineLength:2,axisSubTickLineBorder:1,axisLabelFillColor:c,axisLabelFontSize:12,axisLabelLineHeight:12,axisLabelFontWeight:"normal",axisLabelOffset:8,axisGridBorderColor:h,axisGridBorder:1,axisGridLineDash:null,legendTitleTextFillColor:c,legendTitleTextFontSize:12,legendTitleTextLineHeight:21,legendTitleTextFontWeight:"normal",legendMarkerColor:p[0],legendMarkerSpacing:8,legendMarkerSize:4,legendCircleMarkerSize:4,legendSquareMarkerSize:4,legendLineMarkerSize:5,legendItemNameFillColor:u,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:c,legendPageNavigatorMarkerInactiveFillOpacity:.45,legendPageNavigatorMarkerFillColor:c,legendPageNavigatorMarkerFillOpacity:1,legendPageNavigatorTextFillColor:u,legendPageNavigatorTextFontSize:12,sliderRailFillColor:h,sliderRailBorder:0,sliderRailBorderColor:null,sliderRailWidth:100,sliderRailHeight:12,sliderLabelTextFillColor:c,sliderLabelTextFontSize:12,sliderLabelTextLineHeight:12,sliderLabelTextFontWeight:"normal",sliderHandlerFillColor:s,sliderHandlerWidth:10,sliderHandlerHeight:14,sliderHandlerBorder:1,sliderHandlerBorderColor:o,annotationArcBorderColor:h,annotationArcBorder:1,annotationLineBorderColor:f,annotationLineBorder:1,annotationLineDash:null,annotationTextFillColor:u,annotationTextFontSize:12,annotationTextLineHeight:12,annotationTextFontWeight:"normal",annotationTextBorderColor:null,annotationTextBorder:0,annotationRegionFillColor:l,annotationRegionFillOpacity:.06,annotationRegionBorder:0,annotationRegionBorderColor:null,annotationDataMarkerLineLength:16,tooltipCrosshairsBorderColor:f,tooltipCrosshairsBorder:1,tooltipCrosshairsLineDash:null,tooltipContainerFillColor:"#1f1f1f",tooltipContainerFillOpacity:.95,tooltipContainerShadow:"0px 2px 4px rgba(0,0,0,.5)",tooltipContainerBorderRadius:3,tooltipTextFillColor:u,tooltipTextFontSize:12,tooltipTextLineHeight:12,tooltipTextFontWeight:"bold",labelFillColor:u,labelFillColorDark:"#2c3542",labelFillColorLight:"#ffffff",labelFontSize:12,labelLineHeight:12,labelFontWeight:"normal",labelBorderColor:null,labelBorder:0,innerLabelFillColor:i,innerLabelFontSize:12,innerLabelLineHeight:12,innerLabelFontWeight:"normal",innerLabelBorderColor:null,innerLabelBorder:0,overflowLabelFillColor:u,overflowLabelFillColorDark:"#2c3542",overflowLabelFillColorLight:"#ffffff",overflowLabelFontSize:12,overflowLabelLineHeight:12,overflowLabelFontWeight:"normal",overflowLabelBorderColor:i,overflowLabelBorder:1,labelLineBorder:1,labelLineBorderColor:f,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:p[0],pointFillOpacity:.95,pointSize:4,pointBorder:1,pointBorderColor:i,pointBorderOpacity:1,pointActiveBorderColor:l,pointSelectedBorder:2,pointSelectedBorderColor:l,pointInactiveFillOpacity:.3,pointInactiveBorderOpacity:.3,hollowPointSize:4,hollowPointBorder:1,hollowPointBorderColor:p[0],hollowPointBorderOpacity:.95,hollowPointFillColor:i,hollowPointActiveBorder:1,hollowPointActiveBorderColor:l,hollowPointActiveBorderOpacity:1,hollowPointSelectedBorder:2,hollowPointSelectedBorderColor:l,hollowPointSelectedBorderOpacity:1,hollowPointInactiveBorderOpacity:.3,lineBorder:2,lineBorderColor:p[0],lineBorderOpacity:1,lineActiveBorder:3,lineSelectedBorder:3,lineInactiveBorderOpacity:.3,areaFillColor:p[0],areaFillOpacity:.25,areaActiveFillColor:p[0],areaActiveFillOpacity:.5,areaSelectedFillColor:p[0],areaSelectedFillOpacity:.5,areaInactiveFillOpacity:.3,hollowAreaBorderColor:p[0],hollowAreaBorder:2,hollowAreaBorderOpacity:1,hollowAreaActiveBorder:3,hollowAreaActiveBorderColor:l,hollowAreaSelectedBorder:3,hollowAreaSelectedBorderColor:l,hollowAreaInactiveBorderOpacity:.3,intervalFillColor:p[0],intervalFillOpacity:.95,intervalActiveBorder:1,intervalActiveBorderColor:l,intervalActiveBorderOpacity:1,intervalSelectedBorder:2,intervalSelectedBorderColor:l,intervalSelectedBorderOpacity:1,intervalInactiveBorderOpacity:.3,intervalInactiveFillOpacity:.3,hollowIntervalBorder:2,hollowIntervalBorderColor:p[0],hollowIntervalBorderOpacity:1,hollowIntervalFillColor:i,hollowIntervalActiveBorder:2,hollowIntervalActiveBorderColor:l,hollowIntervalSelectedBorder:3,hollowIntervalSelectedBorderColor:l,hollowIntervalSelectedBorderOpacity:1,hollowIntervalInactiveBorderOpacity:.3};return r.__assign(r.__assign({},_),t)},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=r.__importDefault(n(26)),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,l=a.y,u=a.r,c=i/2,f=(0,o.distance)(s,l,t,e);return r&&n?f<=u+c:r?f<=u:!!n&&(f>=u-c&&f<=u+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,l=o.x,u=o.y,c=o.rx,f=o.ry,h=(t-l)*(t-l),p=(e-u)*(e-u);return r&&n?a(h,p,c+s,f+s)<=1:r?a(h,p,c,f)<=1:!!n&&(a(h,p,c-s,f-s)>=1&&a(h,p,c+s,f+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,l=i>a?a/i:1;t.save(),t.translate(n,r),t.scale(s,l),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(15);function s(t){return t instanceof HTMLElement&&(0,o.isString)(t.nodeName)&&"CANVAS"===t.nodeName.toUpperCase()}var 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),{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,l=e.sx,u=e.sy,c=e.swidth,f=e.sheight,h=e.img;(h instanceof Image||s(h))&&((0,o.isNil)(l)||(0,o.isNil)(u)||(0,o.isNil)(c)||(0,o.isNil)(f)?t.drawImage(h,n,r,i,a):t.drawImage(h,l,u,c,f,n,r,i,a))},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=n(20),o=r.__importDefault(n(26)),s=r.__importDefault(n(81)),l=r.__importStar(n(80)),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),{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&&l.addStartArrow(this,t,r,i,e,n),o&&l.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,l=a.y1,u=a.x2,c=a.y2;return(0,s.default)(o,l,u,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,u={dx:0,dy:0},c={dx:0,dy:0};o&&o.d&&(u=l.getShortenOffset(n,r,i,a,e.startArrow.d)),s&&s.d&&(c=l.getShortenOffset(n,r,i,a,e.endArrow.d)),t.beginPath(),t.moveTo(n+u.dx,r+u.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=u},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(0),a=n(1),o=n(50),s=r.__importDefault(n(26)),l=n(15),u=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"]]}},f=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",u=this._getR(r);if((0,l.isFunction)(s))n=(t=s)(i,a,u),n=(0,o.path2Absolute)(n);else{if(!(t=e.Symbols[s]))return console.warn(s+" marker is not supported."),null;n=t(i,a,u)}return n},e.prototype.createPath=function(t){var e=this._getPath(),n=this.get("paramsCache");(0,u.drawPath)(this,t,{path:e},n)},e.Symbols=c,e}(s.default);e.default=f},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(0),a=n(20),o=n(1),s=r.__importDefault(n(26)),l=n(50),u=n(63),c=r.__importDefault(n(220)),f=r.__importDefault(n(221)),h=r.__importDefault(n(495)),p=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,f.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,l.path2Absolute)(t);var e=h.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,l.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 l=this.getTotalLength();s=h.default.isPointInStroke(a,i,t,e,l)}if(!s&&r)if(o)s=(0,c.default)(this,t,e);else{var u=this.attr("path"),f=h.default.extractPolygons(u);s=d(f.polygons,t,e)||d(f.polylines,t,e)}return s},e.prototype.createPath=function(t){var e=this.attr(),n=this.get("paramsCache");(0,u.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 l=s.length,u=i[n+1];return a.Cubic.pointAt(s[l-2],s[l-1],u[1],u[2],u[3],u[4],u[5],u[6],e)},e.prototype._calculateCurve=function(){var t=this.attr().path;this.set("curve",h.default.pathToCurve(t))},e.prototype._setTcache=function(){var t,e,n,r,i=0,s=0,l=[],u=this.get("curve");u&&((0,o.each)(u,(function(t,e){n=u[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)(u,(function(o,c){n=u[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,l.push(t))})),this.set("tCache",l)):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(12),o=n(20),s=n(20),l=n(8),u=r.__importStar(n(91)),c=n(15),f=r.__importDefault(n(81)),h=r.__importDefault(n(222)),p=l.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,l=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-l,_.y-l,_.width+e,_.height+e,n,r)){switch(g.command){case"L":case"Z":a=(0,f.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)]]);u.transformMat3(A,A,E),a=(0,h.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(223)),s=r.__importDefault(n(221)),l=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,l=!1;return n&&(l=(0,o.default)(a,i,t,e,!0)),!l&&r&&(l=(0,s.default)(a,t,e)),l},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=l},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(0),a=n(20),o=n(20),s=n(1),l=r.__importDefault(n(26)),u=r.__importDefault(n(223)),c=r.__importStar(n(80)),f=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],l=n[a-1][0],u=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],l,u)},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,u.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],l=n[0][1],u=n[a-1][0],f=n[a-1][1];if(r&&r.d)s+=(o=c.getShortenOffset(s,l,n[1][0],n[1][1],r.d)).dx,l+=o.dy;if(i&&i.d)u-=(o=c.getShortenOffset(n[a-2][0],n[a-2][1],u,f,i.d)).dx,f-=o.dy;t.beginPath(),t.moveTo(s,l);for(var h=0;h<a-1;h++){var p=n[h];t.lineTo(p[0],p[1])}t.lineTo(u,f)}},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,l){t[l+1]&&((n=[])[0]=i/e,r=a.Line.length(s[0],s[1],t[l+1][0],t[l+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}(l.default);e.default=f},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(218),s=n(15),l=r.__importDefault(n(499)),u=r.__importDefault(n(500)),c=r.__importDefault(n(220)),f=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,f=a.y,h=a.width,p=a.height,d=a.radius;if(d){var g=!1;return n&&(g=(0,u.default)(o,f,h,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,f-y,h+y,p+y,t,e):r?(0,s.inBox)(o,f,h,p,t,e):n?(0,l.default)(o,f,h,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 l=(0,o.parseRadius)(s),u=l[0],c=l[1],f=l[2],h=l[3];t.moveTo(n+u,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-f),0!==f&&t.arc(n+i-f,r+a-f,f,0,Math.PI/2),t.lineTo(n+h,r+a),0!==h&&t.arc(n+h,r+a-h,h,Math.PI/2,Math.PI),t.lineTo(n,r+u),0!==u&&t.arc(n+u,r+u,u,Math.PI,1.5*Math.PI),t.closePath()}},e}(a.default);e.default=f},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 l=a/2;return(0,r.inBox)(t-l,e-l,n,a,o,s)||(0,r.inBox)(t+n-l,e-l,a,i,o,s)||(0,r.inBox)(t+l,e+i-l,n,a,o,s)||(0,r.inBox)(t-l,e+l,a,i,o,s)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=r.__importDefault(n(81)),a=r.__importDefault(n(222));e.default=function(t,e,n,r,o,s,l,u){return(0,i.default)(t+o,e,t+n-o,e,s,l,u)||(0,i.default)(t+n,e+o,t+n,e+r-o,s,l,u)||(0,i.default)(t+n-o,e+r,t+o,e+r,s,l,u)||(0,i.default)(t,e+r-o,t,e+o,s,l,u)||(0,a.default)(t+n-o,e+o,o,1.5*Math.PI,2*Math.PI,s,l,u)||(0,a.default)(t+n-o,e+r-o,o,0,.5*Math.PI,s,l,u)||(0,a.default)(t+o,e+r-o,o,.5*Math.PI,Math.PI,s,l,u)||(0,a.default)(t+o,e+o,o,Math.PI,1.5*Math.PI,s,l,u)}},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(15),s=n(12),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),{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,l=i.x,u=i.y,c=1*i.fontSize,f=this._getSpaceingY(),h=(0,s.getTextHeight)(i.text,i.fontSize,i.lineHeight);(0,o.each)(e,(function(e,i){r=u+i*(f+c)-h+c,"middle"===a&&(r+=h-c-(h-c)/2),"top"===a&&(r+=h-c),(0,o.isNil)(e)||(n?t.fillText(e,l,r):t.strokeText(e,l,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=l},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(0),a=n(12),o=n(503),s=r.__importStar(n(62)),l=r.__importDefault(n(120)),u=n(15),c=n(63),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 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 l.default},e.prototype.getPixelRatio=function(){var t=this.get("pixelRatio")||(0,u.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,u.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,u.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,u.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=f},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getShape=void 0;var r=n(12);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 l=t.cfg.cacheCanvasBBox||t.getCanvasBBox();return e>=l.minX&&e<=l.maxX&&n>=l.minY&&n<=l.maxY}e.getShape=function t(e,n,r){if(!a(e,n,r))return null;for(var o=null,s=e.getChildren(),l=s.length-1;l>=0;l--){var u=s[l];if(u.isGroup())o=t(u,n,r);else if(a(u,n,r)){var c=u,f=i(u,n,r),h=f[0],p=f[1];c.isInShape(h,p)&&(o=u)}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=r.__importStar(n(82));e.Shape=i,r.__exportStar(n(12),e);var a=n(518);Object.defineProperty(e,"Canvas",{enumerable:!0,get:function(){return r.__importDefault(a).default}});var o=n(122);Object.defineProperty(e,"Group",{enumerable:!0,get:function(){return 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}(r.__importDefault(n(22)).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,l=s.length-1;l>=0;l--)r.removeChild(s[l]);r.appendChild(i)}else r.innerHTML=i}else r.innerHTML=n.html},e}(r.__importDefault(n(22)).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}(r.__importDefault(n(22)).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}(r.__importDefault(n(22)).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(20),o=n(1),s=n(16),l=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}(r.__importDefault(n(22)).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(22)),s=r.__importDefault(n(511)),l=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=l},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 l=(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(#"+l+")")}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(22)).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}(r.__importDefault(n(22)).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(20),o=n(20),s=n(1),l=n(16),u=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(" ")):l.SVG_ATTR_MAP[e]&&r.setAttribute(l.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,l){t[l+1]&&((n=[])[0]=i/e,r=o.Line.length(s[0],s[1],t[l+1][0],t[l+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(22)).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(22)),s=n(16),l=n(516),u=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,l=["x","y","width","height","radius"];(0,a.each)(e||r,(function(t,e){-1===l.indexOf(e)||o?-1===l.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,l.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=u},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(158),s=n(64),l=n(16),u=r.__importDefault(n(22)),c={top:"before-edge",middle:"central",bottom:"after-edge",alphabetic:"baseline",hanging:"hanging"},f={top:"text-before-edge",middle:"central",bottom:"text-after-edge",alphabetic:"alphabetic",hanging:"hanging"},h={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):l.SVG_ATTR_MAP[e]&&i.setAttribute(l.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",f[n]||"alphabetic"):t.setAttribute("alignment-baseline",c[n]||"baseline"),t.setAttribute("text-anchor",h[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"),l=s.length-1,u="";(0,a.each)(s,(function(t,e){0===e?"alphabetic"===o?u+='<tspan x="'+r+'" dy="'+-l+'em">'+t+"</tspan>":"top"===o?u+='<tspan x="'+r+'" dy="0.9em">'+t+"</tspan>":"middle"===o?u+='<tspan x="'+r+'" dy="'+-(l-1)/2+'em">'+t+"</tspan>":"bottom"===o?u+='<tspan x="'+r+'" dy="-'+(l+.3)+'em">'+t+"</tspan>":"hanging"===o&&(u+='<tspan x="'+r+'" dy="'+(-(l-1)-.3)+'em">'+t+"</tspan>"):u+='<tspan x="'+r+'" dy="1em">'+t+"</tspan>"})),e.innerHTML=u}else e.innerHTML=t;else e.innerHTML=""},e}(u.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(12),o=n(16),s=n(121),l=n(64),u=n(27),c=r.__importStar(n(82)),f=r.__importDefault(n(122)),h=r.__importDefault(n(519)),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 f.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,u.createSVGElement)("svg"),e=new h.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,u.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,l.setTransform)(this):"clip"===t?(0,l.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,l.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=r.__importDefault(n(520)),o=r.__importDefault(n(521)),s=r.__importDefault(n(522)),l=r.__importDefault(n(523)),u=r.__importDefault(n(524)),c=n(27),f=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 u.default(t);return this.el.appendChild(e.el),this.add(e),e.id},t.prototype.addClip=function(t){var e=new l.default(t);return this.el.appendChild(e.el),this.add(e),e.id},t}();e.default=f},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 l(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 u=function(){function t(t){this.cfg={};var e=null,n=(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),u=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),f=c*c,h=(i.x-n.x+c*(i.y-n.y))/(f+1)+n.x,p=c*(i.x-n.x+c*(i.y-n.y))/(f+1)+n.y;e.setAttribute("x1",n.x),e.setAttribute("y1",n.y),e.setAttribute("x2",h),e.setAttribute("y2",p),e.innerHTML=l(u)}(t,e=(0,i.createSVGElement)("linearGradient")):function(t,e){var n=o.exec(t),r=parseFloat(n[1]),i=parseFloat(n[2]),a=parseFloat(n[3]),s=n[4];e.setAttribute("cx",r),e.setAttribute("cy",i),e.setAttribute("r",a),e.innerHTML=l(s)}(t,e=(0,i.createSVGElement)("radialGradient")),e.setAttribute("id",n),this.el=e,this.id=n,this.cfg=t,this}return t.prototype.match=function(t,e){return this.cfg===e},t}();e.default=u},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=(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(27),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(27),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(27),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 l=new Image;function u(){e.setAttribute("width",""+l.width),e.setAttribute("height",""+l.height)}return s.match(/^data:/i)||(l.crossOrigin="Anonymous"),l.src=s,l.complete?u():(l.onload=u,l.src=l.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(123));n(526);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,l=void 0!==s&&s;return n.startOnZero=i,n.sortable=o,n.showSinglePoint=l,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(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,fillOpacity:1}}}}),e.default=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=r.__importDefault(n(34));n(528);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(52),s=n(119),l=(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:r.__assign(r.__assign({},n),{path:i})})},getMarker:function(t){return{symbol:"circle",style:{r:4.5,fill:t.color}}}}),e.default=l},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.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,i){var a,s,l=this.coordinate,u=l.start,c=l.end,f=this.coordinate.getWidth(),h=this.coordinate.getHeight(),p=this.getAttribute("color").getFields()[0];this.clearShadowCanvasCtx();var d=this.getShadowCanvasCtx();e&&(t=t.filter((function(t){return t[o.FIELD_ORIGIN][p]<=e[1]&&t[o.FIELD_ORIGIN][p]>=e[0]})));var g=this.scales[p];try{for(var y=r.__values(t),v=y.next();!v.done;v=y.next()){var m=v.value,_=this.getDrawCfg(m),x=_.x,b=_.y,M=g.scale(m[o.FIELD_ORIGIN][p]);this.drawGrayScaleBlurredCircle(x-u.x,b-c.y,n+i,M,d)}}catch(t){a={error:t}}finally{try{v&&!v.done&&(s=y.return)&&s.call(y)}finally{if(a)throw a.error}}var C=d.getImageData(0,0,f,h);this.clearShadowCanvasCtx(),this.colorize(C),d.putImageData(C,0,0);var P=this.getImageShape();P.attr("x",u.x),P.attr("y",c.y),P.attr("width",f),P.attr("height",h),P.attr("img",d.canvas),P.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 l=r[s]?r[s]:i.default.rgb2arr(e.gradient(s/256));n[o-3]=l[0],n[o-2]=l[1],n[o-1]=l[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 r.__assign(r.__assign({},e),{mappingData:t,data:n})},e}(r.__importDefault(n(34)).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=r.__importDefault(n(34));n(531);var s=n(124),l=n(38),u=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/=(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,l.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=u},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(3),a=n(116),o=n(6),s=n(65),l=(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),l=e,u=null==t?void 0:t.background;if(u){l=e.addGroup({name:"interval-group"});var c=(0,o.getBackgroundRectStyle)(t),f=(0,s.getBackgroundRectPath)(t,this.parsePoints(t.points),this.coordinate);l.addShape("path",{attrs:r.__assign(r.__assign({},c),{path:f}),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 h=l.addShape("path",{attrs:r.__assign(r.__assign({},i),{path:n}),name:"interval"});return u?l:h},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=l},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=r.__importDefault(n(123));n(118);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(34));n(534);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(119),s=n(125),l=(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-".concat(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=l},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(1),a=r.__importDefault(n(34));n(536);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(!(0,i.isArray)(a)||!(0,i.isArray)(o)){var s=this.getXScale(),l=this.getYScale(),u=.5/s.values.length,c=.5/l.values.length;s.isCategory&&l.isCategory?(a=[a-u,a-u,a+u,a+u],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-u/2,a-u/2,a+u/2,a+u/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=(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: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(14),a=r.__importDefault(n(34));n(538);var o=n(124),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/=(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(124),l=r.__importDefault(n(34));n(540);var u=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),l=this.getAttribute("size");if(l){n=this.getAttributeValues(l,e)[0];var u=this.coordinate;n/=(0,o.getXDimensionLength)(u)}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}(l.default);e.default=u},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(1),a=n(3),o=n(43),s=n(6);var l=(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,l=a===t.y.length-1;n.push({isMin:s,isMax:l,x:t.x-o,y:i}),n.unshift({isMin:s,isMax:l,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:r.__assign(r.__assign({},n),{path:i}),name:"violin"})},getMarker:function(t){return{symbol:"circle",style:{r:4,fill:t.color}}}}),e.default=l},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,fillOpacity:1}}}})},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(13),a=n(3),o=n(6),s=n(224);(0,a.registerShape)("edge","arc",{draw:function(t,e){var n,a=(0,o.getStyle)(t,!0,!1,"lineWidth"),l=t.points,u=l.length>2?"weight":"normal";if(t.isInCircle){var c={x:0,y:1};return"normal"===u?n=function(t,e,n){var r=(0,s.getQPath)(e,n),i=[["M",t.x,t.y]];return i.push(r),i}(l[0],l[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}(l,c)),n=this.parsePath(n),e.addShape("path",{attrs:r.__assign(r.__assign({},a),{path:n})})}if("normal"===u)return l=this.parsePoints(l),n=(0,i.getArcPath)((l[1].x+l[0].x)/2,l[0].y,Math.abs(l[1].x-l[0].x)/2,Math.PI,2*Math.PI),e.addShape("path",{attrs:r.__assign(r.__assign({},a),{path:n})});var f=(0,s.getCPath)(l[1],l[3]),h=(0,s.getCPath)(l[2],l[0]);return n=[["M",l[0].x,l[0].y],["L",l[1].x,l[1].y],f,["L",l[3].x,l[3].y],["L",l[2].x,l[2].y],h,["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(224);(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: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);(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: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);(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: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(116),o=n(6),s=n(65);(0,i.registerShape)("interval","hollow-rect",{draw:function(t,e){var n=(0,o.getStyle)(t,!0,!1),i=e,l=null==t?void 0:t.background;if(l){i=e.addGroup();var u=(0,o.getBackgroundRectStyle)(t),c=(0,s.getBackgroundRectPath)(t,this.parsePoints(t.points),this.coordinate);i.addShape("path",{attrs:r.__assign(r.__assign({},u),{path:c}),zIndex:-1,name:a.BACKGROUND_SHAPE})}var f=this.parsePath((0,s.getRectPath)(t.points)),h=i.addShape("path",{attrs:r.__assign(r.__assign({},n),{path:f}),name:"interval"});return l?i:h},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),l=n(25);(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,l.omit)(r.__assign({},n),["fill"]),a=this.parsePath((0,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);(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: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);(0,a.registerShape)("interval","tick",{getPoints:function(t){return function(t){var e,n,a,o=t.x,s=t.y,l=t.y0,u=t.size;(0,i.isArray)(s)?(n=(e=r.__read(s,2))[0],a=e[1]):(n=l,a=s);var c=o+u/2,f=o-u/2;return[{x:o,y:n},{x:o,y:a},{x:f,y:n},{x:c,y:n},{x:f,y:a},{x:c,y:a}]}(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: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(43),s=n(6),l=n(216);function u(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 l=(o+i)/2;r=[{x:l,y:a},{x:l,y:s}];break;case"vhv":var u=(a+s)/2;r=[{x:i,y:u},{x:o,y:u}]}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({},(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=u(e,t);return n.addShape({type:"path",attrs:r,name:"line"})},getMarker:function(e){return(0,l.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(125);(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(0),i=n(3),a=n(6);(0,i.registerShape)("point","image",{draw:function(t,e){var n,i,o=(0,a.getStyle)(t,!1,!1,"r").r,s=this.parsePoints(t.points),l=s[0];if(t.isStack)l=s[1];else if(s.length>1){var u=e.addGroup();try{for(var c=r.__values(s),f=c.next();!f.done;f=c.next()){var h=f.value;u.addShape("image",{attrs:{x:h.x-o/2,y:h.y-o,width:o,height:o,img:t.shape[1]}})}}catch(t){n={error:t}}finally{try{f&&!f.done&&(i=c.return)&&i.call(c)}finally{if(n)throw n.error}}return u}return e.addShape("image",{attrs:{x:l.x-o/2,y:l.y-o,width:o,height:o,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(125);(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(6);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 l(t,e,n){var r,a=n/2;if((0,i.isArray)(e)){var o=s(e),l=o.min,u=o.max,c=o.median,f=o.min1,h=t-a,p=t+a;r=[[h,u],[p,u],[t,u],[t,d=o.max1],[h,f],[h,d],[p,d],[p,f],[t,f],[t,l],[h,l],[p,l],[h,c],[p,c]]}else{e=(0,i.isNil)(e)?.5:e;var d,g=s(t),y=(l=g.min,u=g.max,c=g.median,e-a),v=e+a;r=[[l,y],[l,v],[l,e],[f=g.min1,e],[f,y],[f,v],[d=g.max1,v],[d,y],[d,e],[u,e],[u,y],[u,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 l(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:r.__assign(r.__assign({},i),{path:a,name:"schema"})})},getMarker:function(t){return{symbol:function(t,e,n){var r=l(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 l(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 l(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:r.__assign(r.__assign({},i),{path:a,name:"schema"})})},getMarker:function(t){var e=t.color;return{symbol:function(t,e,n){var r=l(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=(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: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(43),o=n(6);(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: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(43),o=n(6);(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:r.__assign(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: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,a){var o,s=t.prototype.getLabelOffsetPoint.call(this,e,n,i),l=this.getCoordinate(),u=l.isTransposed?"x":"y",c=this.getLabelValueDir(e.mappingData);return s=r.__assign(r.__assign({},s),((o={})[u]=s[u]*c,o)),l.isReflect("x")&&(s=r.__assign(r.__assign({},s),{x:-1*s.x})),l.isReflect("y")&&(s=r.__assign(r.__assign({},s),{y:-1*s.y})),s},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,l,u=this.getCoordinate(),c=u.isTransposed,f=e.points,h=u.convert(f[0]),p=u.convert(f[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=u.convert(v[0]),_=u.convert(v[1]),x=u.convert(y[0]),b=u.convert(y[1]);c?(a=Math.min(x.y,m.y),s=Math.max(x.y,m.y),o=(_.x+b.x)/2,l=(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,l=m.x)}else a=Math.min(p.y,h.y),s=Math.max(p.y,h.y),o=p.x,l=h.x}else a=Math.min(p.y,h.y),s=Math.max(p.y,h.y),o=p.x,l=h.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=l,t.y=(a+s)/2,t.textAlign=(0,i.get)(t,"textAlign",d>0?"left":"right");break;case"bottom":c&&(t.x=(o+l)/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+l)/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+l)/2),t.y=a,t.textAlign=(0,i.get)(t,"textAlign","center"),t.textBaseline=(0,i.get)(t,"textBaseline",d>0?"bottom":"top")}},e}(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(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(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 l=(0,a.getAngleByPoint)(n,o);s>=l&&(l+=2*Math.PI),e=s+(l-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({},(0,o.polarToCartesian)(i.x,i.y,a,t)),{angle:t,r:a})},e}(r.__importDefault(n(225)).default);e.default=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.distribute=void 0;var r=n(0),i=n(1),a=n(13);e.distribute=function(t,e,n,o){if(t.length&&e.length){var s=t[0]?t[0].offset:0,l=e[0].get("coordinate"),u=l.getRadius(),c=l.getCenter();if(s>0){var f=2*(u+s)+28,h={start:l.start,end:l.end},p=[[],[]];t.forEach((function(t){t&&("right"===t.textAlign?p[0].push(t):p[1].push(t))})),p.forEach((function(t,n){var a=f/14;t.length>a&&(t.sort((function(t,e){return e["..percent"]-t["..percent"]})),t.splice(a,t.length-a)),t.sort((function(t,e){return t.y-e.y})),function(t,e,n,a,o,s){var l,u,c,f=!0,h=a.start,p=a.end,d=Math.min(h.y,p.y),g=Math.abs(h.y-p.y),y=0,v=Number.MIN_VALUE,m=e.map((function(t){return t.y>y&&(y=t.y),t.y<v&&(v=t.y),{size:n,targets:[t.y-d]}}));for(v-=d,y-d>g&&(g=y-d);f;)for(m.forEach((function(t){var e=(Math.min.apply(v,t.targets)+Math.max.apply(v,t.targets))/2;t.pos=Math.min(Math.max(v,e-t.size/2),g-t.size)})),f=!1,c=m.length;c--;)if(c>0){var _=m[c-1],x=m[c];_.pos+_.size>x.pos&&(_.size+=x.size,_.targets=_.targets.concat(x.targets),_.pos+_.size>g&&(_.pos=g-_.size),m.splice(c,1),f=!0)}c=0,m.forEach((function(t){var r=d+n/2;t.targets.forEach((function(){e[c].y=t.pos+r,r+=n,c++}))}));var b={};try{for(var M=r.__values(t),C=M.next();!C.done;C=M.next()){var P=C.value;b[P.get("id")]=P}}catch(t){l={error:t}}finally{try{C&&!C.done&&(u=M.return)&&u.call(M)}finally{if(l)throw l.error}}e.forEach((function(t){var e=t.r*t.r,n=Math.pow(Math.abs(t.y-o.y),2);if(e<n)t.x=o.x;else{var r=Math.sqrt(e-n);t.x=s?o.x+r:o.x-r}var a=b[t.id];a.attr("x",t.x),a.attr("y",t.y);var l=(0,i.find)(a.getChildren(),(function(t){return"text"===t.get("type")}));l&&(l.attr("y",t.y),l.attr("x",t.x))}))}(e,t,14,h,c,n)}))}(0,i.each)(t,(function(t){if(t&&t.labelLine){var e=t.offset,n=t.angle,r=(0,a.polarToCartesian)(c.x,c.y,u,n),o=(0,a.polarToCartesian)(c.x,c.y,u+e/2,n),s=t.x+(0,i.get)(t,"offsetX",0),l=t.y+(0,i.get)(t,"offsetY",0),f={x:s-4*Math.cos(n),y:l-4*Math.sin(n)};(0,i.isObject)(t.labelLine)||(t.labelLine={}),t.labelLine.path=["M ".concat(r.x),"".concat(r.y," Q").concat(o.x),"".concat(o.y," ").concat(f.x),f.y].join(",")}}))}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.pieOuterLabelLayout=void 0;var r=n(0),i=n(1),a=n(13),o=n(226);e.pieOuterLabelLayout=function(t,e,n,s){var l,u,c=(0,i.filter)(t,(function(t){return!(0,i.isNil)(t)})),f=e[0]&&e[0].get("coordinate");if(f){var h=f.getCenter(),p=f.getRadius(),d={};try{for(var g=r.__values(e),y=g.next();!y.done;y=g.next()){var v=y.value;d[v.get("id")]=v}}catch(t){l={error:t}}finally{try{y&&!y.done&&(u=g.return)&&u.call(g)}finally{if(l)throw l.error}}var m=(0,i.get)(c[0],"labelHeight",14),_=(0,i.get)(c[0],"offset",0);if(!(_<=0)){var x=(0,i.groupBy)(c,(function(t){return t.x<h.x?"left":"right"})),b=f.start,M=f.end,C=Math.min(2*(p+_+m),f.getHeight()),P=C/2,S={minX:b.x,maxX:M.x,minY:h.y-P,maxY:h.y+P};(0,i.each)(x,(function(t,e){var n=Math.floor(C/m);t.length>n&&(t.sort((function(t,e){return e.percent-t.percent})),(0,i.each)(t,(function(t,e){e+1>n&&(d[t.id].set("visible",!1),t.invisible=!0)}))),(0,o.antiCollision)(t,m,S)})),(0,i.each)(x,(function(t,e){(0,i.each)(t,(function(t){var n="right"===e,r=d[t.id].getChildByIndex(0);if(r){var o=p+_,s=t.y-h.y,l=Math.pow(o,2),u=Math.pow(s,2),c=l-u>0?l-u:0,g=Math.sqrt(c),y=Math.abs(Math.cos(t.angle)*o);t.x=n?h.x+Math.max(g,y):h.x-Math.max(g,y)}r&&(r.attr("y",t.y),r.attr("x",t.x)),function(t,e){var n=e.getCenter(),r=e.getRadius();if(t&&t.labelLine){var o=t.angle,s=t.offset,l=(0,a.polarToCartesian)(n.x,n.y,r,o),u=t.x+(0,i.get)(t,"offsetX",0)*(Math.cos(o)>0?1:-1),c=t.y+(0,i.get)(t,"offsetY",0)*(Math.sin(o)>0?1:-1),f={x:u-4*Math.cos(o),y:c-4*Math.sin(o)},h=t.labelLine.smooth,p=[],d=f.x-n.x,g=f.y-n.y,y=Math.atan(g/d);if(d<0&&(y+=Math.PI),!1===h){(0,i.isObject)(t.labelLine)||(t.labelLine={});var v=0;(o<0&&o>-Math.PI/2||o>1.5*Math.PI)&&f.y>l.y&&(v=1),o>=0&&o<Math.PI/2&&f.y>l.y&&(v=1),o>=Math.PI/2&&o<Math.PI&&l.y>f.y&&(v=1),(o<-Math.PI/2||o>=Math.PI&&o<1.5*Math.PI)&&l.y>f.y&&(v=1);var m=s/2>4?4:Math.max(s/2-1,0),_=(0,a.polarToCartesian)(n.x,n.y,r+m,o),x=(0,a.polarToCartesian)(n.x,n.y,r+s/2,y);p.push("M ".concat(l.x," ").concat(l.y)),p.push("L ".concat(_.x," ").concat(_.y)),p.push("A ".concat(n.x," ").concat(n.y," 0 ").concat(0," ").concat(v," ").concat(x.x," ").concat(x.y)),p.push("L ".concat(f.x," ").concat(f.y))}else{_=(0,a.polarToCartesian)(n.x,n.y,r+(s/2>4?4:Math.max(s/2-1,0)),o);var b=l.x<n.x?1:-1;p.push("M ".concat(f.x," ").concat(f.y));var M=(l.y-n.y)/(l.x-n.x),C=(f.y-n.y)/(f.x-n.x);Math.abs(M-C)>Math.pow(Math.E,-16)&&p.push.apply(p,["C",f.x+4*b,f.y,2*_.x-l.x,2*_.y-l.y,l.x,l.y]),p.push("L ".concat(l.x," ").concat(l.y))}t.labelLine.path=p.join(" ")}}(t,f)}))}))}}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.pieSpiderLabelLayout=void 0;var r=n(0),i=n(1),a=n(13),o=n(226),s=n(54);e.pieSpiderLabelLayout=function(t,e,n,l){var u,c,f=e[0]&&e[0].get("coordinate");if(f){var h=f.getCenter(),p=f.getRadius(),d={};try{for(var g=r.__values(e),y=g.next();!y.done;y=g.next()){var v=y.value;d[v.get("id")]=v}}catch(t){u={error:t}}finally{try{y&&!y.done&&(c=g.return)&&c.call(g)}finally{if(u)throw u.error}}var m=(0,i.get)(t[0],"labelHeight",14),_=Math.max((0,i.get)(t[0],"offset",0),4);(0,i.each)(t,(function(t){if(t&&(0,i.get)(d,[t.id])){var e=t.x>h.x||t.x===h.x&&t.y>h.y,n=(0,i.isNil)(t.offsetX)?4:t.offsetX,r=(0,a.polarToCartesian)(h.x,h.y,p+4,t.angle),o=_+n;t.x=h.x+(e?1:-1)*(p+o),t.y=r.y}}));var x=f.start,b=f.end,M=(0,i.groupBy)(t,(function(t){return t.x<h.x?"left":"right"})),C=2*(p+_)+m;(0,i.each)(M,(function(t){var e=t.length*m;e>C&&(C=Math.min(e,Math.abs(x.y-b.y)))}));var P={minX:x.x,maxX:b.x,minY:h.y-C/2,maxY:h.y+C/2};(0,i.each)(M,(function(t,e){var n=C/m;t.length>n&&(t.sort((function(t,e){return e.percent-t.percent})),(0,i.each)(t,(function(t,e){e>n&&(d[t.id].set("visible",!1),t.invisible=!0)}))),(0,o.antiCollision)(t,m,P)}));var S=P.minY,O=P.maxY;(0,i.each)(M,(function(t,e){var n="right"===e;(0,i.each)(t,(function(t){var e=(0,i.get)(d,t&&[t.id]);if(e)if(t.y<S||t.y>O)e.set("visible",!1);else{var r=e.getChildByIndex(0),o=r.getCanvasBBox(),l=n?o.x:o.maxX,u=o.y+o.height/2;(0,s.translate)(r,t.x-l,t.y-u),t.labelLine&&function(t,e,n){var r,o=e.getCenter(),s=e.getRadius(),l={x:t.x-(n?4:-4),y:t.y},u=(0,a.polarToCartesian)(o.x,o.y,s+4,t.angle),c={x:l.x,y:l.y},f={x:u.x,y:u.y},h=(0,a.polarToCartesian)(o.x,o.y,s,t.angle);if(l.y!==u.y){var p=n?4:-4;c.y=l.y,t.angle<0&&t.angle>=-Math.PI/2&&(c.x=Math.max(u.x,l.x-p),l.y<u.y?f.y=c.y:(f.y=u.y,f.x=Math.max(f.x,c.x-p))),t.angle>0&&t.angle<Math.PI/2&&(c.x=Math.max(u.x,l.x-p),l.y>u.y?f.y=c.y:(f.y=u.y,f.x=Math.max(f.x,c.x-p))),t.angle>Math.PI/2&&(c.x=Math.min(u.x,l.x-p),l.y>u.y?f.y=c.y:(f.y=u.y,f.x=Math.min(f.x,c.x-p))),t.angle<-Math.PI/2&&(c.x=Math.min(u.x,l.x-p),l.y<u.y?f.y=c.y:(f.y=u.y,f.x=Math.min(f.x,c.x-p)))}r=["M ".concat(l.x,",").concat(l.y),"L ".concat(c.x,",").concat(c.y),"L ".concat(f.x,",").concat(f.y),"L ".concat(u.x,",").concat(u.y),"L ".concat(h.x,",").concat(h.y)].join(" "),t.labelLine=(0,i.deepMix)({},t.labelLine,{path:r})}(t,f,n)}}))}))}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.limitInCanvas=void 0;var r=n(1),i=n(54);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(),l=s.minX,u=s.minY,c=s.maxX,f=s.maxY,h=s.x,p=s.y,d=s.width,g=s.height,y=h,v=p;(l<e||c<e)&&(y=e),(u<n||f<n)&&(v=n),l>r?y=r-d:c>r&&(y-=c-r),u>o?v=o-g:f>o&&(v-=f-o),y===h&&v===p||(0,i.translate)(t,y-h,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 l=a;l<=o;l++)if(n[s][l]){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(),l=Math.sqrt(s.width*s.width+s.height*s.height),u=1,c=0,f=0;if(e.hasGap(s))return e.fillGap(s),!0;for(var h,p,d=!1,g=0,y={};Math.min(Math.abs(c),Math.abs(f))<l&&g<n;)if(h=u+=-1,p=void 0,f=~~(r=[(p=.1*h)*Math.cos(p),p*Math.sin(p)])[1],((c=~~r[0])||f)&&!y["".concat(c,"-").concat(f)]&&(t.attr({x:a+c,y:o+f}),c+f<0&&t.attr("textAlign","right"),g++,e.hasGap(t.getCanvasBBox()))){e.fillGap(t.getCanvasBBox()),d=!0,y["".concat(c,"-").concat(f)]=!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,l=0;l<=8;l++){var u=a(e,r,i,l);if(s.hasGap(u)){s.fillGap(u),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(0),i=n(1),a=n(570),o=n(53),s=n(571),l=n(572),u=function(t){for(var e=t.slice(),n=0;n<e.length;n++){var r=e[n];if(r.visible)for(var i=n+1;i<e.length;i++){var o=e[i];r!==o&&o.visible&&(0,a.intersect)(r,o)&&(o.visible=!1)}}return e},c=new Map,f=(0,s.createWorker)(l.code);e.hideOverlap=function(t,e,n,a){return new Promise((function(n){var a=e.map((function(e,n){return r.__assign(r.__assign({},(0,o.getLabelBackgroundInfo)(e,t[n],(0,i.get)(t[n],"background.padding"))),{visible:!0})})),s=JSON.stringify(a),l=function(t){return c.set(s,t),(0,i.each)(t,(function(t,n){var r=t.visible,i=e[n];r?null==i||i.show():null==i||i.hide()})),n(t)};if(c.get(s))l(c.get(s));else if(f)try{f.postMessage(JSON.stringify({type:"hide-overlap",items:a})),f.onmessage=function(t){return l(Array.isArray(t.data)?t.data:[])},f.onmessageerror=function(t){console.warn("[AntV G2] Web worker is not available"),l(u(a))}}catch(t){console.error(t),l(u(a))}else l(u(a))}))}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.intersect=e.isIntersectRect=void 0;var r=n(0);function i(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 a(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 o(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?[a(e[0],n,e[0]),a(e[1],n,e[0]),a(e[2],n,e[0]),a(e[3],n,e[0])]:e}function s(t,e){if(t.length>4)return{min:0,max:0};var n=[];return t.forEach((function(t){var r,i;n.push((r=[t.x,t.y],i=e,(r[0]||0)*(i[0]||0)+(r[1]||0)*(i[1]||0)+(r[2]||0)*(i[2]||0)))})),{min:Math.min.apply(Math,r.__spreadArray([],r.__read(n),!1)),max:Math.max.apply(Math,r.__spreadArray([],r.__read(n),!1))}}function l(t,e){return t.max>e.min&&t.min<e.max}function u(t){return["x","y","width","height"].every((function(e){return"number"==typeof(n=t[e])&&!Number.isNaN(n)&&n!==1/0&&n!==-1/0;var n}))}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.intersect=function(t,e,n){if(void 0===n&&(n=0),!u(t)||!u(e))return!1;if(!t.rotation&&!e.rotation)return c(t,e,n);for(var r=o(t),a=o(e),f=i(r).concat(i(a)),h=0;h<f.length;h++){var p=f[h];if(!l(s(r,p),s(a,p)))return!1}return!0}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.createWorker=void 0,e.createWorker=function(t){if("undefined"!=typeof window){var e;try{e=new Blob([t.toString()],{type:"application/javascript"})}catch(n){(e=new window.BlobBuilder).append(t.toString()),e=e.getBlob()}return new Worker(URL.createObjectURL(e))}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.code=void 0;var r="\n self.onmessage = ".concat(function(t){var e=function(){function t(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 e(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 n(t){var n=[{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}],r=t.rotation;return r?[e(n[0],r,n[0]),e(n[1],r,n[0]),e(n[2],r,n[0]),e(n[3],r,n[0])]:n}function r(t,e){if(t.length>4)return{min:0,max:0};var n=[];return t.forEach((function(t){var r,i;n.push((r=[t.x,t.y],i=e,(r[0]||0)*(i[0]||0)+(r[1]||0)*(i[1]||0)+(r[2]||0)*(i[2]||0)))})),{min:Math.min.apply(null,n),max:Math.max.apply(null,n)}}function i(t,e){return t.max>e.min&&t.min<e.max}function a(t){return["x","y","width","height"].every((function(e){return"number"==typeof(n=t[e])&&!Number.isNaN(n)&&n!==1/0&&n!==-1/0;var n}))}return{intersect:function(e,o,s){if(void 0===s&&(s=0),!a(e)||!a(o))return!1;if(!e.rotation&&!o.rotation)return function(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,o,s);for(var l=n(e),u=n(o),c=t(l).concat(t(u)),f=0;f<c.length;f++){var h=c[f];if(!i(r(l,h),r(u,h)))return!1}return!0}}}().intersect;var n={"hide-overlap":function(t){for(var n=t.slice(),r=0;r<n.length;r++){var i=n[r];if(i.visible)for(var a=r+1;a<n.length;a++){var o=n[a];i!==o&&o.visible&&e(i,o)&&(o.visible=!1)}}return n}};try{var r=JSON.parse(t.data);if(!r||!r.type||!n[r.type])return;var i=r.type,a=r.items,o=n[i](a);self.postMessage(o)}catch(t){throw t}}.toString(),"\n");e.code=r},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.adjustColor=void 0;var r=n(29),i=n(574);e.adjustColor=function(t,e,n){if(0!==n.length){var a=n[0].get("element").geometry.theme,o=a.labels||{},s=o.fillColorLight,l=o.fillColorDark;n.forEach((function(t,n){var o=e[n].find((function(t){return"text"===t.get("type")})),u=r.BBox.fromObject(t.getBBox()),c=r.BBox.fromObject(o.getCanvasBBox()),f=!u.contains(c),h=t.attr("fill"),p=(0,i.isContrastColorWhite)(h);f?o.attr(a.overflowLabels.style):p?s&&o.attr("fill",s):l&&o.attr("fill",l)}))}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.isContrastColorWhite=void 0;var r=n(0),i=r.__importDefault(n(70)),a={"#5B8FF9":!0};e.isContrastColorWhite=function(t){var e=i.default.toRGB(t).toUpperCase();if(a[e])return a[e];var n=r.__read(i.default.rgb2arr(e),3);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(53);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()),l=r.BBox.fromObject(n.getBBox());return a.isTransposed?l.height>=s.height:l.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"),l=null==s?void 0:s.geometry;if(l&&"interval"===l.type)a(l,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"})}(l,a,t)}))}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.intervalHideOverlap=void 0;var r=n(0),i=n(1),a=n(53);e.intervalHideOverlap=function(t,e,n){var o;if(0!==n.length){var s=null===(o=n[0])||void 0===o?void 0:o.get("element"),l=null==s?void 0:s.geometry;if(l&&"interval"===l.type){var u,c=function(t){var e=[],n=Math.max(Math.floor(t.length/500),1);return(0,i.each)(t,(function(t,r){r%n==0?e.push(t):t.set("visible",!1)})),e}(e),f=r.__read(l.getXYFields(),1)[0],h=[],p=[],d=(0,i.groupBy)(c,(function(t){return t.get("data")[f]})),g=(0,i.uniq)((0,i.map)(c,(function(t){return t.get("data")[f]})));c.forEach((function(t){t.set("visible",!0)}));var y=function(t){t&&(t.length&&p.push(t.pop()),p.push.apply(p,r.__spreadArray([],r.__read(t),!1)))};for((0,i.size)(g)>0&&(u=g.shift(),y(d[u])),(0,i.size)(g)>0&&(u=g.pop(),y(d[u])),(0,i.each)(g.reverse(),(function(t){y(d[t])}));p.length>0;){var v=p.shift();v.get("visible")&&((0,a.checkShapeOverlap)(v,h)?v.set("visible",!1):h.push(v))}}}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.pointAdjustPosition=void 0;var r=n(0),i=n(1),a=n(53);function o(t,e,n){return t.some((function(t){return n(t,e)}))}function s(t,e){return o(t,e,(function(t,e){var n,r,i,o=(0,a.findLabelTextShape)(t),s=(0,a.findLabelTextShape)(e);return n=o.getCanvasBBox(),r=s.getCanvasBBox(),void 0===(i=2)&&(i=0),Math.max(0,Math.min(n.x+n.width+i,r.x+r.width+i)-Math.max(n.x-i,r.x-i))*Math.max(0,Math.min(n.y+n.height+i,r.y+r.height+i)-Math.max(n.y-i,r.y-i))>0}))}e.pointAdjustPosition=function(t,e,n,l,u){var c,f;if(0!==n.length){var h=null===(c=n[0])||void 0===c?void 0:c.get("element"),p=null==h?void 0:h.geometry;if(p&&"point"===p.type){var d=r.__read(p.getXYFields(),2),g=d[0],y=d[1],v=(0,i.groupBy)(e,(function(t){return t.get("data")[g]})),m=[],_=u&&u.offset||(null===(f=t[0])||void 0===f?void 0:f.offset)||12;(0,i.map)((0,i.keys)(v).reverse(),(function(t){for(var e=function(t,e){var n=t.getXYFields()[1],i=[],a=e.sort((function(t,e){return t.get("data")[n]-t.get("data")[n]}));return a.length>0&&i.push(a.shift()),a.length>0&&i.push(a.pop()),i.push.apply(i,r.__spreadArray([],r.__read(a),!1)),i}(p,v[t]);e.length;){var n=e.shift(),i=(0,a.findLabelTextShape)(n);if(o(m,n,(function(t,e){return t.get("data")[g]===e.get("data")[g]&&t.get("data")[y]===e.get("data")[y]})))i.set("visible",!1);else{var l=!1;s(m,n)&&(i.attr("y",i.attr("y")+2*_),l=s(m,n)),l?i.set("visible",!1):m.push(n)}}}))}}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.pathAdjustPosition=void 0;var r=n(0),i=n(1),a=n(53);function o(t,e,n){return t.some((function(t){return n(t,e)}))}function s(t,e){return o(t,e,(function(t,e){var n,r,i,o=(0,a.findLabelTextShape)(t),s=(0,a.findLabelTextShape)(e);return n=o.getCanvasBBox(),r=s.getCanvasBBox(),void 0===(i=2)&&(i=0),Math.max(0,Math.min(n.x+n.width+i,r.x+r.width+i)-Math.max(n.x-i,r.x-i))*Math.max(0,Math.min(n.y+n.height+i,r.y+r.height+i)-Math.max(n.y-i,r.y-i))>0}))}e.pathAdjustPosition=function(t,e,n,l,u){var c,f;if(0!==n.length){var h=null===(c=n[0])||void 0===c?void 0:c.get("element"),p=null==h?void 0:h.geometry;if(p&&!(["path","line","area"].indexOf(p.type)<0)){var d=r.__read(p.getXYFields(),2),g=d[0],y=d[1],v=(0,i.groupBy)(e,(function(t){return t.get("data")[g]})),m=[],_=u&&u.offset||(null===(f=t[0])||void 0===f?void 0:f.offset)||12;(0,i.map)((0,i.keys)(v).reverse(),(function(t){for(var e=function(t,e){var n=t.getXYFields()[1],i=[],a=e.sort((function(t,e){return t.get("data")[n]-t.get("data")[n]}));return a.length>0&&i.push(a.shift()),a.length>0&&i.push(a.pop()),i.push.apply(i,r.__spreadArray([],r.__read(a),!1)),i}(p,v[t]);e.length;){var n=e.shift(),i=(0,a.findLabelTextShape)(n);if(o(m,n,(function(t,e){return t.get("data")[g]===e.get("data")[g]&&t.get("data")[y]===e.get("data")[y]})))i.set("visible",!1);else{var l=!1;s(m,n)&&(i.attr("y",i.attr("y")+2*_),l=s(m,n)),l?i.set("visible",!1):m.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(580),o=n(54);e.limitInPlot=function(t,e,n,s,l){if(!(e.length<=0)){var u=(null==l?void 0:l.direction)||["top","right","bottom","left"],c=(null==l?void 0:l.action)||"translate",f=(null==l?void 0:l.margin)||0,h=e[0].get("coordinate");if(h){var p=(0,i.getCoordinateBBox)(h,f),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,l=e.maxY,f=e.x,h=e.y,p=e.width,m=e.height,_=f,x=h;if(u.indexOf("left")>=0&&(n<d||s<d)&&(_=d),u.indexOf("top")>=0&&(i<g||l<g)&&(x=g),u.indexOf("right")>=0&&(n>y?_=y-p:s>y&&(_-=s-y)),u.indexOf("bottom")>=0&&(i>v?x=v-m:l>v&&(x-=l-v)),_!==f||x!==h){var b=_-f;if("translate"===c)(0,o.translate)(t,b,x-h);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(581);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,l=e.fontVariant,u=(0,a.getCanvasContext)();return u.font=[s,l,o,"".concat(n,"px"),r].join(" "),u.measureText((0,i.isString)(t)?t:"").width}),(function(t,e){return void 0===e&&(e={}),r.__spreadArray([t],r.__read((0,i.values)(e)),!1).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,l,u=n,c=[];if((0,e.measureTextWidth)(t,r)<=n)return t;for(;s=a.substr(0,16),!((l=(0,e.measureTextWidth)(s,r))+o>u&&l>u);)if(c.push(s),u-=l,!(a=a.substr(16)))return c.join("");for(;s=a.substr(0,1),!((l=(0,e.measureTextWidth)(s,r))+o>u);)if(c.push(s),u-=l,!(a=a.substr(1)))return c.join("");return"".concat(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(584);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(0),i=n(8);function a(t,e,n){var a,o=r.__read(e,2),s=o[0],l=o[1];return t.applyToMatrix([s,l,1]),"x"===n?(t.setMatrix(i.ext.transform(t.getMatrix(),[["t",-s,-l],["s",.01,1],["t",s,l]])),a=i.ext.transform(t.getMatrix(),[["t",-s,-l],["s",100,1],["t",s,l]])):"y"===n?(t.setMatrix(i.ext.transform(t.getMatrix(),[["t",-s,-l],["s",1,.01],["t",s,l]])),a=i.ext.transform(t.getMatrix(),[["t",-s,-l],["s",1,100],["t",s,l]])):"xy"===n&&(t.setMatrix(i.ext.transform(t.getMatrix(),[["t",-s,-l],["s",.01,.01],["t",s,l]])),a=i.ext.transform(t.getMatrix(),[["t",-s,-l],["s",100,100],["t",s,l]])),a}e.transformShape=a,e.doScaleAnimate=function(t,e,n,r,i){var o,s,l=n.start,u=n.end,c=n.getWidth(),f=n.getHeight();"y"===i?(o=l.x+c/2,s=r.y<l.y?r.y:l.y):"x"===i?(o=r.x>l.x?r.x:l.x,s=l.y+f/2):"xy"===i&&(n.isPolar?(o=n.getCenter().x,s=n.getCenter().y):(o=(l.x+u.x)/2,s=(l.y+u.y)/2));var h=a(t,[o,s],i);t.animate({matrix:h},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 l=r.ext.transform(t.getMatrix(),[["t",-o,-s],["s",.01,1],["t",o,s]]);t.setMatrix(l),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,l=s[0].y-s[1].y<=0?i.maxY:i.minY;t.applyToMatrix([o,l,1]);var u=r.ext.transform(t.getMatrix(),[["t",-o,-l],["s",1,.01],["t",o,l]]);t.setMatrix(u),t.animate({matrix:r.ext.transform(t.getMatrix(),[["t",-o,-l],["s",1,100],["t",o,l]])},e)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.sectorPathUpdate=e.getArcInfo=void 0;var r=n(0),i=n(217),a=n(1),o=n(13);function s(t,e){var n,o=(0,i.getArcParams)(t,e),s=o.startAngle,l=o.endAngle;return!(0,a.isNumberEqual)(s,.5*-Math.PI)&&s<.5*-Math.PI&&(s+=2*Math.PI),!(0,a.isNumberEqual)(l,.5*-Math.PI)&&l<.5*-Math.PI&&(l+=2*Math.PI),0===e[5]&&(s=(n=r.__read([l,s],2))[0],l=n[1]),(0,a.isNumberEqual)(s,1.5*Math.PI)&&(s=-.5*Math.PI),(0,a.isNumberEqual)(l,-.5*Math.PI)&&!(0,a.isNumberEqual)(s,l)&&(l=1.5*Math.PI),{startAngle:s,endAngle:l}}function l(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 u(t){var e,n,i,o=t.filter((function(t){return"A"===t[0]||"a"===t[0]}));if(0===o.length)return{startAngle:0,endAngle:0,radius:0,innerRadius:0};var u=o[0],c=o.length>1?o[1]:o[0],f=t.indexOf(u),h=t.indexOf(c),p=l(t[f-1]),d=l(t[h-1]),g=s(p,u),y=g.startAngle,v=g.endAngle,m=s(d,c),_=m.startAngle,x=m.endAngle;(0,a.isNumberEqual)(y,_)&&(0,a.isNumberEqual)(v,x)?(n=y,i=v):(n=Math.min(y,_),i=Math.max(v,x));var b=u[1],M=o[o.length-1][1];return b<M?(b=(e=r.__read([M,b],2))[0],M=e[1]):b===M&&(M=0),{startAngle:n,endAngle:i,radius:b,innerRadius:M}}e.getArcInfo=u,e.sectorPathUpdate=function(t,e,n){var i=n.toAttrs,s=n.coordinate,l=i.path||[],c=l.map((function(t){return t[0]}));if(!(l.length<1)){var f=u(l),h=f.startAngle,p=f.endAngle,d=f.radius,g=f.innerRadius,y=u(t.attr("path")),v=y.startAngle,m=y.endAngle,_=s.getCenter(),x=h-v,b=p-m;0!==x||0!==b?t.animate((function(t){var e=v+t*x,n=m+t*b;return r.__assign(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)})}),r.__assign(r.__assign({},e),{callback:function(){t.attr("path",l)}})):t.attr("path",l)}}},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,l=a.endState,u=t.setClip({type:o,attrs:s});n.toAttrs&&t.attr(n.toAttrs),u.animate(l,r.__assign(r.__assign({},e),{callback:function(){t&&!t.get("destroyed")&&t.set("clipShape",null),u.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())(0,a.each)(t.getChildren(),(function(t){o(t,e,n)}));else{var s=t.getBBox(),l=(s.minX+s.maxX)/2,u=(s.minY+s.maxY)/2;if(t.applyToMatrix([l,u,1]),"zoomIn"===n){var c=i.ext.transform(t.getMatrix(),[["t",-l,-u],["s",.01,.01],["t",l,u]]);t.setMatrix(c),t.animate({matrix:i.ext.transform(t.getMatrix(),[["t",-l,-u],["s",100,100],["t",l,u]])},e)}else t.animate({matrix:i.ext.transform(t.getMatrix(),[["t",-l,-u],["s",.01,.01],["t",l,u]])},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(55),s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return 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,l=1*Math.PI/4;return{start:(0,o.getAnglePoint)(a,i,s),end:(0,o.getAnglePoint)(a,i,l)}},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,a=n.fields,o=n.type,s=r.__read(a,1)[0];if(!s)throw new Error("No `fields` specified!");var l=this.getFieldValues(t,s),u=l.length,c=[];return l.forEach((function(n,r){var a=[{field:s,value:n,values:l}],f=(0,i.filter)(t,e.getFacetDataFilter(a)),h={type:o,data:f,region:e.getRegion(u,r),columnValue:n,columnField:s,columnIndex:r,columnValuesLength:u,rowValue:null,rowField:null,rowIndex:0,rowValuesLength:1};c.push(h)})),c},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"),l=(0,i.deepMix)({position:["50%","0%"],content:s?s(n):n},(0,o.getFactTitleConfig)(a.DIRECTION.TOP),t.cfg.title);r.annotation().text(l)}))},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(55),s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return 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,a=this.cfg.cols,o=r.__read(n,1)[0];if(!o)throw new Error("No `fields` specified!");var s=this.getFieldValues(t,o),l=s.length;a=a||l;var u=this.getPageCount(l,a),c=[];return s.forEach((function(n,r){var f=e.getRowCol(r,a),h=f.row,p=f.col,d=[{field:o,value:n,values:s}],g=(0,i.filter)(t,e.getFacetDataFilter(d)),y={type:e.cfg.type,data:g,region:e.getRegion(u,a,p,h),columnValue:n,rowValue:n,columnField:o,rowField:null,columnIndex:p,rowIndex:h,columnValuesLength:a,rowValuesLength:u,total:l};c.push(y)})),c},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;(0,i.each)(this.facets,(function(e){var n=e.columnValue,r=e.view,s=(0,i.get)(t.cfg.title,"formatter"),l=(0,i.deepMix)({position:["50%","0%"],content:s?s(n):n},(0,o.getFactTitleConfig)(a.DIRECTION.TOP),t.cfg.title);r.annotation().text(l)}))},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(55),s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r.__extends(e,t),e.prototype.getDefaultCfg=function(){return(0,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 l=n[s],u=0;u<i;u++){var c=n[u],f={type:r,data:t,region:this.getRegion(i,a,s,u),columnValue:l,rowValue:c,columnField:l,rowField:c,columnIndex:s,rowIndex:u,columnValuesLength:a,rowValuesLength:i};o.push(f)}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;(0,i.each)(this.facets,(function(e,n){var r=e.columnIndex,s=e.rowIndex,l=e.columnValuesLength,u=(e.rowValuesLength,e.columnValue),c=e.rowValue,f=e.view;if(0===s){var h=(0,i.get)(t.cfg.columnTitle,"formatter"),p=(0,i.deepMix)({position:["50%","0%"],content:h?h(u):u},(0,o.getFactTitleConfig)(a.DIRECTION.TOP),t.cfg.columnTitle);f.annotation().text(p)}if(r===l-1){h=(0,i.get)(t.cfg.rowTitle,"formatter"),p=(0,i.deepMix)({position:["100%","50%"],content:h?h(c):c},(0,o.getFactTitleConfig)(a.DIRECTION.RIGHT),t.cfg.rowTitle);f.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(55),s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return 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,a=this,o=r.__read(this.cfg.fields,1)[0],s=[],l=1,u=1,c=[""],f=[""];return this.cfg.transpose?(e=o,c=this.getFieldValues(t,e).slice(0,2),l=c.length):(n=o,f=this.getFieldValues(t,n).slice(0,2),u=f.length),c.forEach((function(r,o){f.forEach((function(h,p){var d=[{field:e,value:r,values:c},{field:n,value:h,values:f}],g=(0,i.filter)(t,a.getFacetDataFilter(d)),y={type:a.cfg.type,data:g,region:a.getRegion(u,l,o,p),columnValue:r,rowValue:h,columnField:e,rowField:n,columnIndex:o,rowIndex:p,columnValuesLength:l,rowValuesLength:u};s.push(y)}))})),s},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;(0,i.each)(this.facets,(function(e,n){var r=e.columnValue,s=e.rowValue,l=e.view,u=(0,i.get)(t.cfg.title,"formatter");if(t.cfg.transpose){var c=(0,i.deepMix)({position:["50%","0%"],content:u?u(r):r},(0,o.getFactTitleConfig)(a.DIRECTION.TOP),t.cfg.title);l.annotation().text(c)}else{c=(0,i.deepMix)({position:["100%","50%"],content:u?u(s):s},(0,o.getFactTitleConfig)(a.DIRECTION.RIGHT),t.cfg.title);l.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(55),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(0,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=r.__read(this.cfg.fields,2),a=n[0],o=n[1],s=[],l=1,u=1,c=[""],f=[""];return a&&(c=this.getFieldValues(t,a),l=c.length),o&&(f=this.getFieldValues(t,o),u=f.length),c.forEach((function(n,r){f.forEach((function(h,p){var d=[{field:a,value:n,values:c},{field:o,value:h,values:f}],g=(0,i.filter)(t,e.getFacetDataFilter(d)),y={type:e.cfg.type,data:g,region:e.getRegion(u,l,r,p),columnValue:n,rowValue:h,columnField:a,rowField:o,columnIndex:r,rowIndex:p,columnValuesLength:l,rowValuesLength:u};s.push(y)}))})),s},e.prototype.renderTitle=function(){var t=this;(0,i.each)(this.facets,(function(e,n){var r=e.columnIndex,s=e.rowIndex,l=e.columnValuesLength,u=e.columnValue,c=e.rowValue,f=e.view;if(0===s){var h=(0,i.get)(t.cfg.columnTitle,"formatter"),p=(0,i.deepMix)({position:["50%","0%"],content:h?h(u):u},(0,o.getFactTitleConfig)(a.DIRECTION.TOP),t.cfg.columnTitle);f.annotation().text(p)}if(r===l-1){h=(0,i.get)(t.cfg.rowTitle,"formatter"),p=(0,i.deepMix)({position:["100%","50%"],content:h?h(c):c},(0,o.getFactTitleConfig)(a.DIRECTION.RIGHT),t.cfg.rowTitle);f.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(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 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,n,i=this,a=[],o=0;t.forEach((function(t){i.isLeaf(t)&&(a.push(t),t.columnIndex=o,o++)})),a.forEach((function(t){t.columnValuesLength=a.length}));for(var s=this.cfg.fields.length-1;s>=0;s--){var l=this.getFacetsByLevel(t,s);try{for(var u=(e=void 0,r.__values(l)),c=u.next();!c.done;c=u.next()){var f=c.value;this.isLeaf(f)||(f.originColIndex=f.columnIndex,f.columnIndex=this.getRegionIndex(f.children),f.columnValuesLength=a.length)}}catch(t){e={error:t}}finally{try{c&&!c.done&&(n=u.return)&&n.call(u)}finally{if(e)throw e.error}}}},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,l){var u=[{field:o,value:i,values:s}],c=t.filter(r.getFacetDataFilter(u));if(c.length){var f={type:r.cfg.type,data:c,region:null,columnValue:i,rowValue:"",columnField:o,rowField:"",columnIndex:l,rowValuesLength:r.getRows(),columnValuesLength:1,rowIndex:e,children:r.getChildFacets(c,e+1,n)};a.push(f),n.push(f)}})),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"),l=(0,i.deepMix)({position:["50%","0%"],content:s?s(n):n},(0,o.getFactTitleConfig)(a.DIRECTION.TOP),t.cfg.title);r.annotation().text(l)}))},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?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(19),o=n(36),s=n(2),l=n(14),u=n(25),c=n(598),f=n(42),h=["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;(0,i.each)(t.option,(function(n){if((0,i.includes)(h,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)(h,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){var e=!1;this.view.getOptions().animate&&this.view.geometries.forEach((function(n){n.animateOption&&(n.once(s.GEOMETRY_LIFE_CIRCLE.AFTER_DRAW_ANIMATE,(function(){t()})),e=!0)})),e||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 o?{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}:null}},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,n,a=this.view.getXScale(),o=this.view.getScalesByDim("y"),s=(0,i.isFunction)(t)?t.call(null,a,o):t,l=0,u=0;if((0,i.isArray)(s)){var f=r.__read(s,2),h=f[0],p=f[1];if((0,i.isString)(h)&&-1!==h.indexOf("%")&&!isNaN(h.slice(0,-1)))return this.parsePercentPosition(s);l=(0,c.getNormalizedValue)(h,a),u=(0,c.getNormalizedValue)(p,Object.values(o)[0])}else if(!(0,i.isNil)(s))try{for(var d=r.__values((0,i.keys)(s)),g=d.next();!g.done;g=d.next()){var y=g.value,v=s[y];y===a.field&&(l=(0,c.getNormalizedValue)(v,a)),o[y]&&(u=(0,c.getNormalizedValue)(v,o[y]))}}catch(t){e={error:t}}finally{try{g&&!g.done&&(n=d.return)&&n.call(d)}finally{if(e)throw e.error}}return isNaN(l)||isNaN(u)?null:this.view.getCoordinate().convert({x:l,y:u})},e.prototype.getRegionPoints=function(t,e){var n,r=this,a=this.view.getXScale(),o=this.view.getScalesByDim("y"),s=Object.values(o)[0],l=a.field,u=this.view.getData(),c=(0,i.isArray)(t)?t[0]:t[l],f=(0,i.isArray)(e)?e[0]:e[l],h=[];return(0,i.each)(u,(function(t,e){if(t[l]===c&&(n=e),e>=n){var i=r.parsePosition([t[l],t[s.field]]);i&&h.push(i)}if(t[l]===f)return!1})),h},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(),u=this.view.getCanvas(),c={};if((0,i.isNil)(e))return null;var f=e.start,h=e.end,p=e.position,d=this.parsePosition(f),g=this.parsePosition(h),y=this.parsePosition(p);if(!(!["arc","image","line","region","regionFilter"].includes(t)||d&&g))return null;if(["text","dataMarker","html"].includes(t)&&!y)return null;if("arc"===t){var v=e,m=(v.start,v.end,r.__rest(v,["start","end"])),_=(0,l.getAngleByPoint)(s,d),x=(0,l.getAngleByPoint)(s,g);_>x&&(x=2*Math.PI+x),c=r.__assign(r.__assign({},m),{center:s.getCenter(),radius:(0,l.getDistanceToCenter)(s,d),startAngle:_,endAngle:x})}else if("image"===t){var b=e;b.start,b.end,m=r.__rest(b,["start","end"]);c=r.__assign(r.__assign({},m),{start:d,end:g,src:e.src})}else if("line"===t){var M=e;M.start,M.end,m=r.__rest(M,["start","end"]);c=r.__assign(r.__assign({},m),{start:d,end:g,text:(0,i.get)(e,"text",null)})}else if("region"===t){var C=e;C.start,C.end,m=r.__rest(C,["start","end"]);c=r.__assign(r.__assign({},m),{start:d,end:g})}else if("text"===t){var P=this.view.getData(),S=e,O=(S.position,S.content),w=(m=r.__rest(S,["position","content"]),O);(0,i.isFunction)(O)&&(w=O(P)),c=r.__assign(r.__assign(r.__assign({},y),m),{content:w})}else if("dataMarker"===t){var A=e,T=(A.position,A.point),E=A.line,I=A.text,L=A.autoAdjust,D=A.direction;m=r.__rest(A,["position","point","line","text","autoAdjust","direction"]);c=r.__assign(r.__assign(r.__assign({},m),y),{coordinateBBox:this.getCoordinateBBox(),point:T,line:E,text:I,autoAdjust:L,direction:D})}else if("dataRegion"===t){var B=e,j=B.start,R=B.end,k=B.region,F=(I=B.text,B.lineLength);m=r.__rest(B,["start","end","region","text","lineLength"]);c=r.__assign(r.__assign({},m),{points:this.getRegionPoints(j,R),region:k,text:I,lineLength:F})}else if("regionFilter"===t){var N=e,G=(N.start,N.end,N.apply),Y=N.color,V=(m=r.__rest(N,["start","end","apply","color"]),this.view.geometries),H=[],z=function t(e){e&&(e.isGroup()?e.getChildren().forEach((function(e){return t(e)})):H.push(e))};(0,i.each)(V,(function(t){G?(0,i.contains)(G,t.type)&&(0,i.each)(t.elements,(function(t){z(t.shape)})):(0,i.each)(t.elements,(function(t){z(t.shape)}))})),c=r.__assign(r.__assign({},m),{color:Y,shapes:H,start:d,end:g})}else if("shape"===t){var X=e,W=X.render,q=r.__rest(X,["render"]);c=r.__assign(r.__assign({},q),{render:function(t){if((0,i.isFunction)(e.render))return W(t,a.view,{parsePosition:a.parsePosition.bind(a)})}})}else if("html"===t){var U=e,Z=U.html;U.position,q=r.__rest(U,["html","position"]);c=r.__assign(r.__assign(r.__assign({},q),y),{parent:u.get("el").parentNode,html:function(t){return(0,i.isFunction)(Z)?Z(t,a.view):Z}})}var Q=(0,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&&(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,a=this.getAnnotationTheme(n),o=this.getAnnotationCfg(n,t,a);o&&(0,u.omit)(o,["container"]),e.component.update(r.__assign(r.__assign({},o||{}),{visible:!!o})),(0,i.includes)(h,t.type)&&e.component.render()}else(e=this.createAnnotation(t))&&(e.component.init(),(0,i.includes)(h,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}(f.Controller);e.default=p},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getNormalizedValue=void 0;var r=n(599);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=r.__spreadArray([],r.__read(t),!1);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(19),s=n(36),l=n(90),u=n(90),c=n(601),f=n(25),h=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();(0,i.each)(this.getComponents(),(function(n){var r,i=n.component,o=n.direction,s=n.type,u=n.extra,f=u.dim,h=u.scale,p=u.alignTick;if(s===a.COMPONENT_TYPE.AXIS)e.isPolar?"x"===f?r=e.isTransposed?(0,l.getAxisRegion)(e,o):(0,l.getCircleAxisCenterRadius)(e):"y"===f&&(r=e.isTransposed?(0,l.getCircleAxisCenterRadius)(e):(0,l.getAxisRegion)(e,o)):r=(0,l.getAxisRegion)(e,o);else if(s===a.COMPONENT_TYPE.GRID)if(e.isPolar){r={items:e.isTransposed?"x"===f?(0,c.getCircleGridItems)(e,t.view.getYScales()[0],h,p,f):(0,c.getLineGridItems)(e,h,f,p):"x"===f?(0,c.getLineGridItems)(e,h,f,p):(0,c.getCircleGridItems)(e,t.view.getXScale(),h,p,f),center:t.view.getCoordinate().getCenter()}}else r={items:(0,c.getLineGridItems)(e,h,f,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,u.getAxisOption)(this.option,e.field);if(!1!==n){var r=(0,l.getAxisDirection)(n,a.DIRECTION.BOTTOM),o=a.LAYER.BG,s=this.view.getCoordinate(),c=this.getId("axis",e.field),h=this.getId("grid",e.field);if(s.isRect){if(g=this.cache.get(c)){var d=this.getLineAxisCfg(e,n,r);(0,f.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(h)){d=this.getLineGridCfg(e,n,r,"x");(0,f.omit)(d,p),y.component.update(d),t.set(h,y)}else(y=this.createLineGrid(e,n,o,r,"x"))&&(this.cache.set(h,y),t.set(h,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,f.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(h)){d=s.isTransposed?this.getCircleGridCfg(e,n,a.DIRECTION.RADIUS,"x"):this.getLineGridCfg(e,n,a.DIRECTION.CIRCLE,"x");(0,f.omit)(d,p),y.component.update(d),t.set(h,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(h,y),t.set(h,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,u.getAxisOption)(e.option,o);if(!1!==s){var c=a.LAYER.BG,h=e.getId("axis",o),d=e.getId("grid",o),g=e.view.getCoordinate();if(g.isRect){var y=(0,l.getAxisDirection)(s,0===r?a.DIRECTION.LEFT:a.DIRECTION.RIGHT);if(m=e.cache.get(h)){var v=e.getLineAxisCfg(n,s,y);(0,f.omit)(v,p),m.component.update(v),t.set(h,m)}else m=e.createLineAxis(n,s,c,y,"y"),e.cache.set(h,m),t.set(h,m);if(_=e.cache.get(d)){v=e.getLineGridCfg(n,s,y,"y");(0,f.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(h)){v=g.isTransposed?e.getCircleAxisCfg(n,s,a.DIRECTION.CIRCLE):e.getLineAxisCfg(n,s,a.DIRECTION.RADIUS);(0,f.omit)(v,p),m.component.update(v),t.set(h,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(h,m),t.set(h,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,f.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 l=this.getLineGridCfg(t,e,r,s);if(l){var u={component:new o.LineGrid(l),layer:n,direction:a.DIRECTION.NONE,type:a.COMPONENT_TYPE.GRID,extra:{dim:s,scale:t,alignTick:(0,i.get)(l,"alignTick",!0)}};return u.component.init(),u}},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 l=this.getCircleGridCfg(t,e,r,s);if(l){var u={component:new o.CircleGrid(l),layer:n,direction:a.DIRECTION.NONE,type:a.COMPONENT_TYPE.GRID,extra:{dim:s,scale:t,alignTick:(0,i.get)(l,"alignTick",!0)}};return u.component.init(),u}},e.prototype.getLineAxisCfg=function(t,e,n){var a=(0,i.get)(e,["top"])?this.axisForeContainer:this.axisContainer,o=this.view.getCoordinate(),s=(0,l.getAxisRegion)(o,n),u=(0,l.getAxisTitleText)(t,e),c=(0,l.getAxisThemeCfg)(this.view.getTheme(),n),f=(0,i.get)(e,["title"])?(0,i.deepMix)({title:{style:{text:u}}},{title:(0,l.getAxisTitleOptions)(this.view.getTheme(),n,e.title)},e):e,h=(0,i.deepMix)(r.__assign(r.__assign({container:a},s),{ticks:t.getTicks().map((function(t){return{id:"".concat(t.tickValue),name:t.text,value:t.value}})),verticalFactor:o.isPolar?-1*(0,l.getAxisFactorByRegion)(s,o.getCenter()):(0,l.getAxisFactorByRegion)(s,o.getCenter()),theme:c}),c,f),p=this.getAnimateCfg(h),d=p.animate,g=p.animateOption;h.animateOption=g,h.animate=d;var y=(0,l.isVertical)(s),v=(0,i.get)(h,"verticalLimitLength",y?1/3:.5);if(v<=1){var m=this.view.getCanvas().get("width"),_=this.view.getCanvas().get("height");h.verticalLimitLength=v*(y?m:_)}return h},e.prototype.getLineGridCfg=function(t,e,n,r){if((0,c.showGrid)((0,l.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(),u=t.getTicks().map((function(t){return{id:"".concat(t.tickValue),name:t.text,value:t.value}}));t.isCategory||Math.abs(s.endAngle-s.startAngle)!==2*Math.PI||u.pop();var c=(0,l.getAxisTitleText)(t,e),f=(0,l.getAxisThemeCfg)(this.view.getTheme(),a.DIRECTION.CIRCLE),h=(0,i.get)(e,["title"])?(0,i.deepMix)({title:{style:{text:c}}},{title:(0,l.getAxisTitleOptions)(this.view.getTheme(),n,e.title)},e):e,p=(0,i.deepMix)(r.__assign(r.__assign({container:o},(0,l.getCircleAxisCenterRadius)(this.view.getCoordinate())),{ticks:u,verticalFactor:1,theme:f}),f,h),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,l.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)),u=(0,i.get)(s,"alignTick",!0),f="x"===r?this.view.getYScales()[0]:this.view.getXScale();return s.items=(0,c.getCircleGridItems)(this.view.getCoordinate(),f,t,u,r),s}},e.prototype.getId=function(t,e){var n=this.view.getCoordinate();return"".concat(t,"-").concat(e,"-").concat(n.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}(h.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 l=(e.value+s)/2;i.push({points:[t.convert("y"===n?{x:0,y:l}:{x:l,y:0}),t.convert("y"===n?{x:1,y:l}:{x:l,y:1})]})}return a}),a[0]),i},e.getCircleGridItems=function(t,e,n,i,a){var o=e.values.length,s=[],l=n.getTicks();return l.reduce((function(e,n){var l=e?e.value:n.value,u=n.value,c=(l+u)/2;return"x"===a?s.push({points:[t.convert({x:i?u:c,y:0}),t.convert({x:i?u:c,y:1})]}):s.push({points:(0,r.map)(Array(o+1),(function(e,n){return t.convert({x:n/o,y:i?u:c})}))}),n}),l[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(19),s=n(36),l=n(29),u=n(126),c=n(25),f=n(215),h=n(38);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 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,i=e.direction,a=(0,f.getLegendLayout)(i),o=n.get("maxWidthRatio"),s=n.get("maxHeightRatio"),c=t.getCategoryLegendSizeCfg(a,o,s),h=n.get("maxWidth"),p=n.get("maxHeight");n.update({maxWidth:Math.min(c.maxWidth,h||0),maxHeight:Math.min(c.maxHeight,p||0)});var d=n.get("padding"),g=n.getLayoutBBox(),y=new l.BBox(g.x,g.y,g.width,g.height).expand(d),v=r.__read((0,u.directionToPosition)(t.view.viewBBox,y,i),2),m=v[0],_=v[1],x=r.__read((0,u.directionToPosition)(t.layoutBBox,y,i),2),b=x[0],M=x[1],C=0,P=0;i.startsWith("top")||i.startsWith("bottom")?(C=m,P=M):(C=b,P=_),n.setLocation({x:C+d[3],y:P+d[0]}),t.layoutBBox=t.layoutBBox.cut(y,i)}))},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 l=a.LAYER.FORE,u=d(this.option);this.components.push({id:n,component:s,layer:l,direction:u,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 l=void 0,u=p(t.option,a.field);!1!==u&&((0,i.get)(u,"custom")?l=t.getCategoryCfg(n,r,a,u,!0):a.isLinear?l=t.getContinuousCfg(n,r,a,u):a.isCategory&&(l=t.getCategoryCfg(n,r,a,u))),l&&((0,c.omit)(l,["container"]),s.direction=d(u),s.component.update(l),e[o]=!0)}else{var f=t.createFieldLegend(n,r,a);f&&(f.component.init(),t.components.push(f),e[o]=!0)}}));var f=[];(0,i.each)(this.getComponents(),(function(t){e[t.id]?f.push(t):t.component.destroy()})),this.components=f},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,l=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:l,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})),l=(0,i.find)(a,(function(t){return 1===t.value})),u=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||u.push({value:n.min,attrValue:e.mapping(n.invert(0)).join(""),color:e.mapping(n.invert(0)).join(""),scaleValue:0}),l||u.push({value:n.max,attrValue:e.mapping(n.invert(1)).join(""),color:e.mapping(n.invert(1)).join(""),scaleValue:1}),u.sort((function(t,e){return t.value-e.value}));var c={min:(0,i.head)(u).value,max:(0,i.last)(u).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=u.map((function(t){return t.attrValue})));var p=this.container,g=d(r),y=(0,f.getLegendLayout)(g),v=(0,i.get)(r,"title");return v&&(v=(0,i.deepMix)({text:(0,h.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 l=this.container,u=(0,i.get)(r,"position",a.DIRECTION.BOTTOM),c=(0,f.getLegendThemeCfg)(this.view.getTheme(),u),p=(0,i.get)(c,["marker"]),d=(0,i.get)(r,"marker"),g=(0,f.getLegendLayout)(u),y=(0,i.get)(c,["pageNavigator"]),v=(0,i.get)(r,"pageNavigator"),m=o?(0,f.getCustomLegendItems)(p,d,r.items):(0,f.getLegendItems)(this.view,t,e,p,d),_=(0,i.get)(r,"title");_&&(_=(0,i.deepMix)({text:n?(0,h.getName)(n):""},_));var x=(0,i.get)(r,"maxWidthRatio"),b=(0,i.get)(r,"maxHeightRatio"),M=this.getCategoryLegendSizeCfg(g,x,b);M.container=l,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,u);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,f.getLegendThemeCfg)(this.view.getTheme(),r);return(0,i.deepMix)({},a,t,e)},e.prototype.getId=function(t){return"".concat(this.name,"-").concat(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(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(19),s=n(29),l=n(126),u=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=r.__read(t,2),i=e[0],a=e[1];n.start=i,n.end=a,n.changeViewData(i,a)},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 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=r.__read(n,4),o=i[0],u=(i[1],i[2],i[3]),c=this.slider.component.getLayoutBBox(),f=new s.BBox(c.x,c.y,Math.min(c.width,e),c.height).expand(n),h=this.getMinMaxText(this.start,this.end),p=h.minText,d=h.maxText,g=r.__read((0,l.directionToPosition)(this.view.viewBBox,f,a.DIRECTION.BOTTOM),2),y=(g[0],g[1]),v=r.__read((0,l.directionToPosition)(this.view.coordinateBBox,f,a.DIRECTION.BOTTOM),2),m=v[0];v[1];this.slider.component.update(r.__assign(r.__assign({},this.getSliderCfg()),{x:m+u,y:y+o,width:this.width,start:this.start,end:this.end,minText:p,maxText:d})),this.view.viewBBox=this.view.viewBBox.cut(f,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((0,i.isObject)(this.option)){var e=r.__assign({data:this.getData()},(0,i.get)(this.option,"trendCfg",{}));t=(0,i.deepMix)({},t,this.getThemeOptions(),this.option),t=r.__assign(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=r.__read(this.view.getYScales(),1)[0],n=this.view.getGroupScales();if(n.length){var i=n[0],a=i.field,o=i.ticks;return t.reduce((function(t,n){return n[a]===o[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);r.isLinear&&(a=a.sort());var o=a,s=(0,i.size)(n);if(!r||!s)return{};var l=(0,i.size)(o),u=Math.round(t*(l-1)),c=Math.round(e*(l-1)),f=(0,i.get)(o,[u]),h=(0,i.get)(o,[c]),p=this.getSliderCfg().formatter;return p&&(f=p(f,n[u],u),h=p(h,n[c],c)),{minText:f,maxText:h}},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=this.view.getXScale().isLinear?o.sort((function(t,e){return Number(t)-Number(e)})):o,l=s,c=(0,i.size)(l),f=Math.round(t*(c-1)),h=Math.round(e*(c-1));this.view.filter(r.field,(function(t,e){var n=l.indexOf(t);return!(n>-1)||(0,u.isBetween)(n,f,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(19),o=n(29),s=n(126),l=n(2),u=n(1),c=n(25),f=function(t){function e(e){var n=t.call(this,e)||this;return n.onChangeFn=u.noop,n.resetMeasure=function(){n.clear()},n.onValueChange=function(t){var e=t.ratio,r=n.getValidScrollbarCfg().animate;n.ratio=(0,u.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(l.LAYER.FORE).addGroup(),n.onChangeFn=(0,u.throttle)(n.onValueChange,20,{leading:!0}),n.trackLen=0,n.thumbLen=0,n.ratio=0,n.view.on(l.VIEW_LIFE_CIRCLE.BEFORE_CHANGE_DATA,n.resetMeasure),n.view.on(l.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(l.VIEW_LIFE_CIRCLE.BEFORE_CHANGE_DATA,this.resetMeasure),this.view.off(l.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),u=this.getScrollbarComponentCfg(),c=void 0,f=void 0;if(u.isHorizontal){var h=r.__read((0,s.directionToPosition)(this.view.viewBBox,a,l.DIRECTION.BOTTOM),2),p=(h[0],h[1]),d=r.__read((0,s.directionToPosition)(this.view.coordinateBBox,a,l.DIRECTION.BOTTOM),2),g=d[0];d[1];c=g,f=p}else{var y=r.__read((0,s.directionToPosition)(this.view.viewBBox,a,l.DIRECTION.RIGHT),2),v=(y[0],p=y[1],r.__read((0,s.directionToPosition)(this.view.viewBBox,a,l.DIRECTION.RIGHT),2));g=v[0],v[1];c=g,f=p}c+=n[3],f+=n[0],this.trackLen?this.scrollbar.component.update(r.__assign(r.__assign({},u),{x:c,y:f,trackLen:this.trackLen,thumbLen:this.thumbLen,thumbOffset:(this.trackLen-this.thumbLen)*this.ratio})):this.scrollbar.component.update(r.__assign(r.__assign({},u),{x:c,y:f})),this.view.viewBBox=this.view.viewBBox.cut(a,u.isHorizontal?l.DIRECTION.BOTTOM:l.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.setValue=function(t){this.onValueChange({ratio:t})},e.prototype.getValue=function(){return this.ratio},e.prototype.getThemeOptions=function(){var t=this.view.getTheme();return(0,u.get)(t,["components","scrollbar","common"],{})},e.prototype.getScrollbarTheme=function(t){var e=(0,u.get)(this.view.getTheme(),["components","scrollbar"]),n=t||{},i=n.thumbHighlightColor,a=r.__rest(n,["thumbHighlightColor"]);return{default:(0,u.deepMix)({},(0,u.get)(e,["default","style"],{}),a),hover:(0,u.deepMix)({},(0,u.get)(e,["hover","style"],{}),{thumbColor:i})}},e.prototype.measureScrollbar=function(){var t=this.view.getXScale(),e=this.view.getYScales().slice();this.data=this.getScrollbarData(),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,u.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,i=r.__read(t,2),a=i[0],o=i[1],s="vertical"!==this.getValidScrollbarCfg().type,l=(0,u.valuesOfKey)(this.data,this.xScaleCfg.field),f=this.view.getXScale().isLinear?l.sort((function(t,e){return Number(t)-Number(e)})):l,h=s?f:f.reverse();this.yScalesCfg.forEach((function(t){n.view.scale(t.field,{formatter:t.formatter,type:t.type,min:t.min,max:t.max,tickMethod:t.tickMethod})})),this.view.filter(this.xScaleCfg.field,(function(t){var e=h.indexOf(t);return!(e>-1)||(0,c.isBetween)(e,a,o)})),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:l.LAYER.FORE,direction:t?l.DIRECTION.BOTTOM:l.DIRECTION.RIGHT,type:l.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.getScrollbarData(),n=(0,u.valuesOfKey)(e,t.field);return(0,u.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,l=i.height,c=i.style,f="vertical"!==a,h=r.__read(o,4),p=h[0],d=h[1],g=h[2],y=h[3],v=f?{x:e.minX+y,y:n.maxY-l-g}:{x:n.maxX-s-d,y:e.minY+p},m=this.getStep(),_=this.getCnt(),x=f?e.width-y-d:e.height-p-g,b=Math.max(x*(0,u.clamp)(m/_,0,1),20);return r.__assign(r.__assign({},this.getThemeOptions()),{x:v.x,y:v.y,size:f?l:s,isHorizontal:f,trackLen:x,thumbLen:b,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,u.isObject)(this.option)&&(t=r.__assign(r.__assign({},t),this.option)),(0,u.isObject)(this.option)&&this.option.padding||(t.padding=(t.type,[0,0,0,0])),t},e.prototype.getScrollbarData=function(){var t=this.view.getCoordinate(),e=this.getValidScrollbarCfg(),n=this.view.getOptions().data||[];return t.isReflect("y")&&"vertical"===e.type&&(n=r.__spreadArray([],r.__read(n),!1).reverse()),n},e}(i.Controller);e.default=f},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(13),s=r.__importDefault(n(11)),l={fill:"#CCD6EC",opacity:.3};function u(t,e,n){var o,s,l,u,c,f,h=(0,a.findItemsFromViewRecurisive)(t,e,n);if(h.length){h=(0,i.flatten)(h);try{for(var p=r.__values(h),d=p.next();!d.done;d=p.next()){var g=d.value;try{for(var y=(l=void 0,r.__values(g)),v=y.next();!v.done;v=y.next()){var m=v.value,_=m.mappingData,x=_.x,b=_.y;m.x=(0,i.isArray)(x)?x[x.length-1]:x,m.y=(0,i.isArray)(b)?b[b.length-1]:b}}catch(t){l={error:t}}finally{try{v&&!v.done&&(u=y.return)&&u.call(y)}finally{if(l)throw l.error}}}}catch(t){o={error:t}}finally{try{d&&!d.done&&(s=p.return)&&s.call(p)}finally{if(o)throw o.error}}if(!1===n.shared&&h.length>1){var M=h[0],C=Math.abs(e.y-M[0].y);try{for(var P=r.__values(h),S=P.next();!S.done;S=P.next()){var O=S.value,w=Math.abs(e.y-O[0].y);w<=C&&(M=O,C=w)}}catch(t){c={error:t}}finally{try{S&&!S.done&&(f=P.return)&&f.call(P)}finally{if(c)throw c.error}}h=[M]}return(0,i.uniq)((0,i.flatten)(h))}return[]}e.getItemsOfView=u;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=u(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,f=s[0].data[c],h=[],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]===f}));h=h.concat(e)}})),h.length){var d=e.getCoordinate(),g=h[0].shape.getCanvasBBox(),y=h[0].shape.getCanvasBBox(),v=g;(0,i.each)(h,(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)(h),E=(0,i.last)(h),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 R=(0,i.get)(t,"style",l);this.regionPath=m.addShape({type:"path",name:"active-region",capture:!1,attrs:r.__assign(r.__assign({},R),{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 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}(r.__importDefault(n(227)).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(41),o=r.__importDefault(n(11)),s=n(19),l=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&&(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(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")}},l=e.getTheme(),u=(0,i.get)(l,["components","tooltip","domStyles"],{}),c=new s.HtmlTooltip({parent:n.get("el").parentNode,region:o,visible:!1,crosshairs:null,domStyles:r.__assign({},(0,i.deepMix)({},u,(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=l},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(127)).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(4),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({},(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 l=(0,a.getElementsByField)(r,i.field,s),u=this.linkGroup.addGroup();this.cache[s]=u;var c=l.length;(0,o.each)(l,(function(t,r){if(r<c-1){var i=l[r+1];n.addLinkShape(u,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 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=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(130)).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 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),l=s.filter((function(t){return(0,i.getElementValue)(t,a.field)===o}));this.setHighlightBy(s,(function(t){return l.includes(t)}),e)}},e}(r.__importDefault(n(131)).default);e.default=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(4),a=r.__importStar(n(131)),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=(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(132),s=i.__importDefault(n(129));!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 l=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){(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=l},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(4),a=n(132),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=(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}(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=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(127)).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(130)).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(44)).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(621),o=r.__importDefault(n(44)),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)(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 r.__extends(e,t),e.prototype.selected=function(){this.setState()},e}(r.__importDefault(n(44)).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(44)).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(44)),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&&(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=r.__importDefault(n(44)),a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r.__extends(e,t),e.prototype.toggle=function(){var t,e,n,i,a,o,s,l,u=this.getTriggerListInfo();if(null==u?void 0:u.item){var c=u.list,f=u.item,h=c.getItems(),p=h.filter((function(t){return!c.hasState(t,"unchecked")})),d=h.filter((function(t){return c.hasState(t,"unchecked")})),g=p[0];if(h.length===p.length)try{for(var y=r.__values(h),v=y.next();!v.done;v=y.next()){var m=v.value;c.setItemState(m,"unchecked",m.id!==f.id)}}catch(e){t={error:e}}finally{try{v&&!v.done&&(e=y.return)&&e.call(y)}finally{if(t)throw t.error}}else if(h.length-d.length==1)if(g.id===f.id)try{for(var _=r.__values(h),x=_.next();!x.done;x=_.next()){m=x.value;c.setItemState(m,"unchecked",!1)}}catch(t){n={error:t}}finally{try{x&&!x.done&&(i=_.return)&&i.call(_)}finally{if(n)throw n.error}}else try{for(var b=r.__values(h),M=b.next();!M.done;M=b.next()){m=M.value;c.setItemState(m,"unchecked",m.id!==f.id)}}catch(t){a={error:t}}finally{try{M&&!M.done&&(o=b.return)&&o.call(b)}finally{if(a)throw a.error}}else try{for(var C=r.__values(h),P=C.next();!P.done;P=C.next()){m=P.value;c.setItemState(m,"unchecked",m.id!==f.id)}}catch(t){s={error:t}}finally{try{P&&!P.done&&(l=C.return)&&l.call(C)}finally{if(s)throw s.error}}}},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(44)),a=n(1),o=n(41),s=n(19),l="legend-radio-tip",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.show=function(){var t=this.getTriggerListInfo();if(null==t?void 0:t.item){var e=t.list,n=t.item;e.setItemState(n,"showRadio",!0)}},e.prototype.hide=function(){var t=this.getTriggerListInfo();if(null==t?void 0:t.item){var e=t.list,n=t.item;e.setItemState(n,"showRadio",!1)}},e.prototype.destroy=function(){t.prototype.destroy.call(this),this.tooltip&&this.tooltip.destroy()},e.prototype.showTip=function(){var t=this.context.event,e=this.timeStamp,n=+new Date,r=this.context.event.target;if(n-e>16&&"legend-item-radio"===r.get("name")){var i=this.location,o={x:t.x,y:t.y};this.timeStamp=n,this.location=o,i&&(0,a.isEqual)(i,o)||this.showTooltip(o)}},e.prototype.hideTip=function(){this.hideTooltip(),this.location=null},e.prototype.showTooltip=function(t){var e=this.context,n=e.event.target;if(n&&n.get("tip")){this.tooltip||this.renderTooltip();var i=e.view.getCanvas().get("el").getBoundingClientRect(),a=i.x,o=i.y;this.tooltip.update(r.__assign(r.__assign({title:n.get("tip")},t),{x:t.x+a,y:t.y+o})),this.tooltip.show()}},e.prototype.hideTooltip=function(){this.tooltip&&this.tooltip.hide()},e.prototype.renderTooltip=function(){var t,e=((t={})[o.TOOLTIP_CSS_CONST.CONTAINER_CLASS]={padding:"6px 8px",transform:"translate(-50%, -80%)",background:"rgba(0,0,0,0.75)",color:"#fff","border-radius":"2px","z-index":100},t[o.TOOLTIP_CSS_CONST.TITLE_CLASS]={"font-size":"12px","line-height":"14px","margin-bottom":0,"word-break":"break-all"},t);document.getElementById(l)&&document.body.removeChild(document.getElementById(l));var n=new s.HtmlTooltip({parent:document.body,region:null,visible:!1,crosshairs:null,domStyles:e,containerId:l});n.init(),n.setCapture(!1),this.tooltip=n},e}(i.default);e.default=u},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 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}(r.__importDefault(n(133)).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 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)),l=o.invert((0,i.last)(n));return this.inPlot&&(a(s),a(l)),"x"===r?(t=o.convert({x:s.x,y:0}),e=o.convert({x:l.x,y:1})):(t=o.convert({x:0,y:s.y}),e=o.convert({x:1,y:l.y})),{start:t,end:e}},e}(r.__importDefault(n(228)).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 r.__extends(e,t),e.prototype.getMaskPath=function(){var t=this.points;return(0,i.getSpline)(t,!0)},e}(r.__importDefault(n(229)).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.prototype.zoomIn=function(){this.setCursor("zoom-in")},e.prototype.zoomOut=function(){this.setCursor("zoom-out")},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(4),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&&(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,i=n.get("field");if((0,o.isList)(t)){if(i){var a=n.getItemsByState("unchecked"),s=(0,o.getScaleByField)(e,i),l=a.map((function(t){return t.name}));l.length?this.filterView(e,i,(function(t){var e=s.getText(t);return!l.includes(e)})):this.filterView(e,i,null),e.render(!0)}}else if((0,o.isSlider)(t)){var u=n.getValue(),c=r.__read(u,2),f=c[0],h=c[1];this.filterView(e,i,(function(t){return t>=f&&t<=h})),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(230)),o=n(4),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=(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=r.__importDefault(n(11)),o=n(4),s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return 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 a=(0,o.getMaskedElements)(this.context,10);a&&(0,i.each)(n,(function(t){a.includes(t)?t.show():t.hide()}))}else if(t){var s=t.component,l=s.get("field");if((0,o.isList)(t)){if(l){var u=s.getItemsByState("unchecked"),c=(0,o.getScaleByField)(e,l),f=u.map((function(t){return t.name}));(0,i.each)(n,(function(t){var e=(0,o.getElementValue)(t,l),n=c.getText(e);f.indexOf(n)>=0?t.hide():t.show()}))}}else if((0,o.isSlider)(t)){var h=s.getValue(),p=r.__read(h,2),d=p[0],g=p[1];(0,i.each)(n,(function(t){var e=(0,o.getElementValue)(t,l);e>=d&&e<=g?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=r.__importDefault(n(11)),o=n(4),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(){(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(8),a=n(1),o=n(113),s=r.__importDefault(n(11)),l=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(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:r.__assign({text:t.text},t.textStyle)}).getBBox(),i=(0,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=l},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=r.__importDefault(n(11)),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 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(8),a=n(77),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 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 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,l=o.y-a.y,u=this.context.view,c=this.dims;(0,i.each)(c,(function(e){t.translateDim(e,{x:-1*s,y:-1*l})})),u.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,l=n[t]*s;this.cacheScaleDefs[t]||(this.cacheScaleDefs[t]={nice:e.nice,min:a,max:o}),r.scale(e.field,{nice:!1,min:a+l,max:o+l})},e.prototype.reset=function(){t.prototype.reset.call(this),this.startPoint=null,this.starting=!1},e}(r.__importDefault(n(231)).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;(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,l=n*a,u=o-l,c=s+l,f=(c-u)/a;c>u&&f<100&&f>.01&&r.scale(e.field,{nice:!1,min:o-l,max:s+l})},e}(r.__importDefault(n(231)).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(77);var o=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r.__extends(e,t),e.prototype.scroll=function(t){var e=this.context,n=e.view,r=e.event;if(n.getOptions().scrollbar){var a=(null==t?void 0:t.wheelDelta)||1,o=n.getController("scrollbar"),s=n.getXScale(),l=n.getOptions().data,u=(0,i.size)((0,i.valuesOfKey)(l,s.field)),c=(0,i.size)(s.values),f=o.getValue(),h=Math.floor((u-c)*f)+(function(t){return t.gEvent.originalEvent.deltaY>0}(r)?a:-a),p=a/(u-c)/1e4,d=(0,i.clamp)(h/(u-c)+p,0,1);o.setValue(d)}},e}(a.Action);e.default=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(41),a=n(1),o=n(19),s=r.__importDefault(n(11)),l=n(4),u=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r.__extends(e,t),e.prototype.show=function(){var t=this.context,e=(0,l.getDelegationObject)(t).axis.cfg.title,n=e.description,r=e.text,a=e.descriptionTooltipStyle,o=t.event,s=o.x,u=o.y;this.tooltip||this.renderTooltip(),this.tooltip.update({title:r||"",customContent:function(){return'\n <div class="'.concat(i.TOOLTIP_CSS_CONST.CONTAINER_CLASS,'" style={').concat(a,'}>\n <div class="').concat(i.TOOLTIP_CSS_CONST.TITLE_CLASS,'">\n 字段说明:').concat(n,"\n </div>\n </div>\n ")},x:s,y:u}),this.tooltip.show()},e.prototype.destroy=function(){t.prototype.destroy.call(this),this.tooltip&&this.tooltip.destroy()},e.prototype.hide=function(){this.tooltip&&this.tooltip.hide()},e.prototype.renderTooltip=function(){var t,e=this.context.view.canvas,n={start:{x:0,y:0},end:{x:e.get("width"),y:e.get("height")}},s=new o.HtmlTooltip({parent:e.get("el").parentNode,region:n,visible:!1,containerId:"aixs-description-tooltip",domStyles:r.__assign({},(0,a.deepMix)({},(t={},t[i.TOOLTIP_CSS_CONST.CONTAINER_CLASS]={"max-width":"50%",padding:"10px","line-height":"15px","font-size":"12px",color:"rgba(0, 0, 0, .65)"},t[i.TOOLTIP_CSS_CONST.TITLE_CLASS]={"word-break":"break-all","margin-bottom":"3px"},t)))});s.init(),s.setCapture(!1),this.tooltip=s},e}(s.default);e.default=u}])}));
16
- //# sourceMappingURL=g2.min.js.map
1
+ !function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e((t="undefined"!=typeof globalThis?globalThis:t||self).G2={})}(this,function(L){"use strict";var j=function(t){return null!==t&&"function"!=typeof t&&isFinite(t.length)},R={}.toString,F=function(t,e){return R.call(t)==="[object "+e+"]"},z=function(t){return F(t,"Function")},V=function(t){return null==t},G=function(t){return Array.isArray?Array.isArray(t):F(t,"Array")},H=function(t){var e=typeof t;return null!==t&&"object"==e||"function"==e};function W(t,e){if(t)if(G(t))for(var n=0,r=t.length;n<r&&!1!==e(t[n],n);n++);else if(H(t))for(var i in t)if(t.hasOwnProperty(i)&&!1===e(t[i],i))break}function Y(t){return"object"==typeof t&&null!==t}function U(t){if(G(t))return t.reduce(function(t,e){return Math.max(t,e)},t[0])}function q(t){if(G(t))return t.reduce(function(t,e){return Math.min(t,e)},t[0])}var X=function(t){if(!Y(t)||!F(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},Z=function(t){return F(t,"String")};function K(t){if(j(t))return t[0]}function $(t){if(j(t))return t[t.length-1]}function J(t,e,n){return t<e?e:n<t?n:t}function Q(t){return F(t,"Number")}var tt=1e-5;function et(t,e,n){return void 0===n&&(n=tt),Math.abs(t-e)<n}var nt=function(t,e){if(G(t)){for(var n,r=-1/0,i=0;i<t.length;i++){var o=t[i],a=z(e)?e(o):o[e];r<a&&(n=o,r=a)}return n}},rt=function(t,e){if(G(t)){for(var n,r=1/0,i=0;i<t.length;i++){var o=t[i],a=z(e)?e(o):o[e];a<r&&(n=o,r=a)}return n}},it=Object.values?function(t){return Object.values(t)}:function(n){var r=[];return W(n,function(t,e){z(n)&&"prototype"===e||r.push(t)}),r},ot=function(t){return V(t)?"":t.toString()};function at(t){return null===t}function st(t){return void 0===t}function lt(t){return t instanceof Element||t instanceof HTMLDocument}var ut=function(t){t=ot(t);return t.charAt(0).toUpperCase()+t.substring(1)};function ct(t,e){for(var n in e)e.hasOwnProperty(n)&&"constructor"!==n&&void 0!==e[n]&&(t[n]=e[n])}function ht(t,e,n,r){return e&&ct(t,e),n&&ct(t,n),r&&ct(t,r),t}function dt(o,a){var s;if(z(o))return(s=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n,r=a?a.apply(this,t):t[0],i=s.cache;return i.has(r)?i.get(r):(n=o.apply(this,t),i.set(r,n),n)}).cache=new Map,s;throw new TypeError("Expected a function")}var pt=function(t){if("object"!=typeof t||null===t)return t;if(G(t))for(var e=[],n=0,r=t.length;n<r;n++)"object"==typeof t[n]&&null!=t[n]?e[n]=pt(t[n]):e[n]=t[n];else for(var i in e={},t)"object"==typeof t[i]&&null!=t[i]?e[i]=pt(t[i]):e[i]=t[i];return e},ft=5;function yt(t,e,n){for(var r=0,i=Z(e)?e.split("."):e;t&&r<i.length;)t=t[i[r++]];return void 0===t||r<i.length?n:t}function gt(e,t){var n;return null!==e&&X(e)?(n={},W(t,function(t){_t.call(e,t)&&(n[t]=e[t])}),n):{}}function mt(t,r){return n=function(t,e,n){return r.includes(n)||(t[n]=e),t},e={},G(t=t)||X(t)?(i=e,W(t,function(t,e){i=n(i,t,e)}),i):t;var n,e,i}function vt(n,r,i){function o(){c=!1===i.leading?0:Date.now(),a=null,u=n.apply(s,l),a||(s=l=null)}function t(){var t=Date.now(),e=(c||!1!==i.leading||(c=t),r-(t-c));return s=this,l=arguments,e<=0||r<e?(a&&(clearTimeout(a),a=null),c=t,u=n.apply(s,l),a||(s=l=null)):a||!1===i.trailing||(a=setTimeout(o,e)),u}var a,s,l,u,c=0;return i=i||{},t.cancel=function(){clearTimeout(a),c=0,a=s=l=null},t}function bt(){}function xt(t){return t}var N=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)!function t(e,n,r,i){for(var o in r=r||0,i=i||ft,n){var a;n.hasOwnProperty(o)&&(null!==(a=n[o])&&X(a)?(X(e[o])||(e[o]={}),r<i?t(e[o],a,r+1,i):e[o]=n[o]):G(a)?(e[o]=[],e[o]=e[o].concat(a)):void 0!==a&&(e[o]=a))}}(t,e[r]);return t},wt=function(t,e){if(!j(t))return-1;var n=Array.prototype.indexOf;if(n)return n.call(t,e);for(var r=-1,i=0;i<t.length;i++)if(t[i]===e){r=i;break}return r},Et=function(t,e){if(t===e)return!0;if(t&&e&&!Z(t)&&!Z(e)){if(j(t)||j(e)){if(t.length!==e.length)return!1;for(var n=!0,r=0;r<t.length&&(n=Et(t[r],e[r]));r++);return n}if(Y(t)||Y(e)){var i=Object.keys(t),o=Object.keys(e);if(i.length!==o.length)return!1;for(n=!0,r=0;r<i.length&&(n=Et(t[i[r]],e[i[r]]));r++);return n}}return!1},_t=Object.prototype.hasOwnProperty;function kt(t){return V(t)?0:(j(t)?t:Object.keys(t)).length}var Tt=function(t,e){return(Tt=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 i(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}Tt(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}var Mt,T=function(){return(T=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}).apply(this,arguments)};function I(t,e){var n={};for(i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.indexOf(i)<0&&(n[i]=t[i]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var r=0,i=Object.getOwnPropertySymbols(t);r<i.length;r++)e.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(t,i[r])&&(n[i[r]]=t[i[r]]);return n}function t(t,e,n,r){var i,o=arguments.length,a=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;0<=s;s--)(i=t[s])&&(a=(o<3?i(a):3<o?i(e,n,a):i(e,n))||a);return 3<o&&a&&Object.defineProperty(e,n,a),a}function St(n,r){return function(t,e){r(t,e,n)}}function e(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)}function Ot(t,a,s,l){return new(s=s||Promise)(function(n,e){function r(t){try{o(l.next(t))}catch(t){e(t)}}function i(t){try{o(l.throw(t))}catch(t){e(t)}}function o(t){var e;t.done?n(t.value):((e=t.value)instanceof s?e:new s(function(t){t(e)})).then(r,i)}o((l=l.apply(t,a||[])).next())})}function D(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,i,o=n.call(t),a=[];try{for(;(void 0===e||0<e--)&&!(r=o.next()).done;)a.push(r.value)}catch(t){i={error:t}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a}function Pt(t,e,n){if(n||2===arguments.length)for(var r,i=0,o=e.length;i<o;i++)!r&&i in e||((r=r||Array.prototype.slice.call(e,0,i))[i]=e[i]);return t.concat(r||Array.prototype.slice.call(e))}var At=dt(function(t,e){var n=(e=void 0===e?{}:e).fontSize,r=e.fontFamily,i=e.fontWeight,o=e.fontStyle,e=e.fontVariant;return(Mt=Mt||document.createElement("canvas").getContext("2d")).font=[o,e,i,n+"px",r].join(" "),Mt.measureText(Z(t)?t:"").width},function(t,e){return function(){for(var t=0,e=0,n=arguments.length;e<n;e++)t+=arguments[e].length;for(var r=Array(t),i=0,e=0;e<n;e++)for(var o=arguments[e],a=0,s=o.length;a<s;a++,i++)r[i]=o[a];return r}([t],it(e=void 0===e?{}:e)).join("")}),Nt="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},Ct={},n={},r=(r=n,Object.defineProperty(r,"__esModule",{value:!0}),r.NON_CUSTOM_TAG_KEYS=r.POST_CONSTRUCT=r.DESIGN_PARAM_TYPES=r.PARAM_TYPES=r.TAGGED_PROP=r.TAGGED=r.MULTI_INJECT_TAG=r.INJECT_TAG=r.OPTIONAL_TAG=r.UNMANAGED_TAG=r.NAME_TAG=r.NAMED_TAG=void 0,r.NAMED_TAG="named",r.NAME_TAG="name",r.UNMANAGED_TAG="unmanaged",r.OPTIONAL_TAG="optional",r.INJECT_TAG="inject",r.MULTI_INJECT_TAG="multi_inject",r.TAGGED="inversify:tagged",r.TAGGED_PROP="inversify:tagged_props",r.PARAM_TYPES="inversify:paramtypes",r.DESIGN_PARAM_TYPES="design:paramtypes",r.POST_CONSTRUCT="post_construct",r.NON_CUSTOM_TAG_KEYS=[r.INJECT_TAG,r.MULTI_INJECT_TAG,r.NAME_TAG,r.UNMANAGED_TAG,r.NAMED_TAG,r.OPTIONAL_TAG],{}),Lt={},It={},jt=(Object.defineProperty(It,"__esModule",{value:!0}),It.TargetTypeEnum=It.BindingTypeEnum=It.BindingScopeEnum=void 0,It.BindingScopeEnum={Request:"Request",Singleton:"Singleton",Transient:"Transient"},It.BindingTypeEnum={ConstantValue:"ConstantValue",Constructor:"Constructor",DynamicValue:"DynamicValue",Factory:"Factory",Function:"Function",Instance:"Instance",Invalid:"Invalid",Provider:"Provider"},It.TargetTypeEnum={ClassProperty:"ClassProperty",ConstructorArgument:"ConstructorArgument",Variable:"Variable"},{}),Rt=(Object.defineProperty(jt,"__esModule",{value:!0}),jt.id=void 0,0);jt.id=function(){return Rt++},Object.defineProperty(Lt,"__esModule",{value:!0}),Lt.Binding=void 0;var Dt=It,Bt=jt;function Ft(t,e){this.id=Bt.id(),this.activated=!1,this.serviceIdentifier=t,this.scope=e,this.type=Dt.BindingTypeEnum.Invalid,this.constraint=function(t){return!0},this.implementationType=null,this.cache=null,this.factory=null,this.provider=null,this.onActivation=null,this.dynamicValue=null}Ft.prototype.clone=function(){var t=new Ft(this.serviceIdentifier,this.scope);return t.activated=t.scope===Dt.BindingScopeEnum.Singleton&&this.activated,t.implementationType=this.implementationType,t.dynamicValue=this.dynamicValue,t.scope=this.scope,t.type=this.type,t.factory=this.factory,t.provider=this.provider,t.constraint=this.constraint,t.onActivation=this.onActivation,t.cache=this.cache,t},Lt.Binding=Ft;var o={},zt=(Object.defineProperty(o,"__esModule",{value:!0}),o.STACK_OVERFLOW=o.CIRCULAR_DEPENDENCY_IN_FACTORY=o.POST_CONSTRUCT_ERROR=o.MULTIPLE_POST_CONSTRUCT_METHODS=o.CONTAINER_OPTIONS_INVALID_SKIP_BASE_CHECK=o.CONTAINER_OPTIONS_INVALID_AUTO_BIND_INJECTABLE=o.CONTAINER_OPTIONS_INVALID_DEFAULT_SCOPE=o.CONTAINER_OPTIONS_MUST_BE_AN_OBJECT=o.ARGUMENTS_LENGTH_MISMATCH=o.INVALID_DECORATOR_OPERATION=o.INVALID_TO_SELF_VALUE=o.INVALID_FUNCTION_BINDING=o.INVALID_MIDDLEWARE_RETURN=o.NO_MORE_SNAPSHOTS_AVAILABLE=o.INVALID_BINDING_TYPE=o.NOT_IMPLEMENTED=o.CIRCULAR_DEPENDENCY=o.UNDEFINED_INJECT_ANNOTATION=o.MISSING_INJECT_ANNOTATION=o.MISSING_INJECTABLE_ANNOTATION=o.NOT_REGISTERED=o.CANNOT_UNBIND=o.AMBIGUOUS_MATCH=o.KEY_NOT_FOUND=o.NULL_ARGUMENT=o.DUPLICATED_METADATA=o.DUPLICATED_INJECTABLE_DECORATOR=void 0,o.DUPLICATED_INJECTABLE_DECORATOR="Cannot apply @injectable decorator multiple times.",o.DUPLICATED_METADATA="Metadata key was used more than once in a parameter:",o.NULL_ARGUMENT="NULL argument",o.KEY_NOT_FOUND="Key Not Found",o.AMBIGUOUS_MATCH="Ambiguous match found for serviceIdentifier:",o.CANNOT_UNBIND="Could not unbind serviceIdentifier:",o.NOT_REGISTERED="No matching bindings found for serviceIdentifier:",o.MISSING_INJECTABLE_ANNOTATION="Missing required @injectable annotation in:",o.MISSING_INJECT_ANNOTATION="Missing required @inject or @multiInject annotation in:",o.UNDEFINED_INJECT_ANNOTATION=function(t){return"@inject called with undefined this could mean that the class "+t+" has a circular dependency problem. You can use a LazyServiceIdentifer to overcome this limitation."},o.CIRCULAR_DEPENDENCY="Circular dependency found:",o.NOT_IMPLEMENTED="Sorry, this feature is not fully implemented yet.",o.INVALID_BINDING_TYPE="Invalid binding type:",o.NO_MORE_SNAPSHOTS_AVAILABLE="No snapshot available to restore.",o.INVALID_MIDDLEWARE_RETURN="Invalid return type in middleware. Middleware must return!",o.INVALID_FUNCTION_BINDING="Value provided to function binding must be a function!",o.INVALID_TO_SELF_VALUE="The toSelf function can only be applied when a constructor is used as service identifier",o.INVALID_DECORATOR_OPERATION="The @inject @multiInject @tagged and @named decorators must be applied to the parameters of a class constructor or a class property.",o.ARGUMENTS_LENGTH_MISMATCH=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return"The number of constructor arguments in the derived class "+t[0]+" must be >= than the number of constructor arguments of its base class."},o.CONTAINER_OPTIONS_MUST_BE_AN_OBJECT="Invalid Container constructor argument. Container options must be an object.",o.CONTAINER_OPTIONS_INVALID_DEFAULT_SCOPE="Invalid Container option. Default scope must be a string ('singleton' or 'transient').",o.CONTAINER_OPTIONS_INVALID_AUTO_BIND_INJECTABLE="Invalid Container option. Auto bind injectable must be a boolean",o.CONTAINER_OPTIONS_INVALID_SKIP_BASE_CHECK="Invalid Container option. Skip base check must be a boolean",o.MULTIPLE_POST_CONSTRUCT_METHODS="Cannot apply @postConstruct decorator multiple times in the same class",o.POST_CONSTRUCT_ERROR=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return"@postConstruct error in class "+t[0]+": "+t[1]},o.CIRCULAR_DEPENDENCY_IN_FACTORY=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return"It looks like there is a circular dependency in one of the '"+t[0]+"' bindings. Please investigate bindings withservice identifier '"+t[1]+"'."},o.STACK_OVERFLOW="Maximum call stack size exceeded",{}),Vt=(Object.defineProperty(zt,"__esModule",{value:!0}),zt.MetadataReader=void 0,n);function Gt(){}Gt.prototype.getConstructorMetadata=function(t){return{compilerGeneratedMetadata:Reflect.getMetadata(Vt.PARAM_TYPES,t),userGeneratedMetadata:Reflect.getMetadata(Vt.TAGGED,t)||{}}},Gt.prototype.getPropertiesMetadata=function(t){return Reflect.getMetadata(Vt.TAGGED_PROP,t)||[]},zt.MetadataReader=Gt;var Ht={},a={},s=(Object.defineProperty(a,"__esModule",{value:!0}),a.BindingCount=void 0,a.BindingCount={MultipleBindingsAvailable:2,NoBindingsAvailable:0,OnlyOneBindingAvailable:1},{}),Wt=(Object.defineProperty(s,"__esModule",{value:!0}),s.isStackOverflowExeption=void 0,o);s.isStackOverflowExeption=function(t){return t instanceof RangeError||t.message===Wt.STACK_OVERFLOW};var Yt={},Ut=(Object.defineProperty(Yt,"__esModule",{value:!0}),Yt.circularDependencyToException=Yt.listMetadataForTarget=Yt.listRegisteredBindingsForServiceIdentifier=Yt.getServiceIdentifierAsString=Yt.getFunctionName=void 0,o);function qt(t){return"function"==typeof t?t.name:"symbol"==typeof t?t.toString():t}function Xt(t){return function t(e,n){void 0===n&&(n=[]);var r=qt(e.serviceIdentifier);return n.push(r),null!==e.parentRequest?t(e.parentRequest,n):n}(t).reverse().join(" --\x3e ")}function Zt(t){var e;return t.name||((e=(t=t.toString()).match(/^function\s*([^\s(]+)/))?e[1]:"Anonymous function: "+t)}Yt.getServiceIdentifierAsString=qt,Yt.listRegisteredBindingsForServiceIdentifier=function(t,e,n){var r="";return 0!==(n=n(t,e)).length&&(r="\nRegistered bindings:",n.forEach(function(t){var e="Object";null!==t.implementationType&&(e=Zt(t.implementationType)),r=r+"\n "+e,t.constraint.metaData&&(r=r+" - "+t.constraint.metaData)})),r},Yt.circularDependencyToException=function n(t){t.childRequests.forEach(function(t){var e;if(function t(e,n){return null!==e.parentRequest&&(e.parentRequest.serviceIdentifier===n||t(e.parentRequest,n))}(t,t.serviceIdentifier))throw e=Xt(t),new Error(Ut.CIRCULAR_DEPENDENCY+" "+e);n(t)})},Yt.listMetadataForTarget=function(t,e){var n,r;return e.isTagged()||e.isNamed()?(n="",r=e.getNamedTag(),e=e.getCustomTags(),null!==r&&(n+=r.toString()+"\n"),null!==e&&e.forEach(function(t){n+=t.toString()+"\n"})," "+t+"\n "+t+" - "+n):" "+t},Yt.getFunctionName=Zt;var Kt={},$t=(Object.defineProperty(Kt,"__esModule",{value:!0}),Kt.Context=void 0,jt);function Jt(t){this.id=$t.id(),this.container=t}Jt.prototype.addPlan=function(t){this.plan=t},Jt.prototype.setCurrentRequest=function(t){this.currentRequest=t},Kt.Context=Jt;var Qt={},te=(Object.defineProperty(Qt,"__esModule",{value:!0}),Qt.Metadata=void 0,n);function ee(t,e){this.key=t,this.value=e}ee.prototype.toString=function(){return this.key===te.NAMED_TAG?"named: "+this.value.toString()+" ":"tagged: { key:"+this.key.toString()+", value: "+this.value+" }"},Qt.Metadata=ee;function ne(t,e){this.parentContext=t,this.rootRequest=e}var re={},l=(Object.defineProperty(re,"__esModule",{value:!0}),re.Plan=void 0,re.Plan=ne,{}),ie={},oe={},ae=(Object.defineProperty(oe,"__esModule",{value:!0}),oe.tagProperty=oe.tagParameter=oe.decorate=void 0,o),se=n;function le(t,e,n,r,i){var o={},a="number"==typeof i,i=void 0!==i&&a?i.toString():n;if(a&&void 0!==n)throw new Error(ae.INVALID_DECORATOR_OPERATION);a=(o=Reflect.hasOwnMetadata(t,e)?Reflect.getMetadata(t,e):o)[i];if(Array.isArray(a))for(var s=0,l=a;s<l.length;s++){var u=l[s];if(u.key===r.key)throw new Error(ae.DUPLICATED_METADATA+" "+u.key.toString())}else a=[];a.push(r),o[i]=a,Reflect.defineMetadata(t,o,e)}function ue(t,e){Reflect.decorate(t,e)}oe.tagParameter=function(t,e,n,r){le(se.TAGGED,t,e,r,n)},oe.tagProperty=function(t,e,n){le(se.TAGGED_PROP,t.constructor,e,n)},oe.decorate=function(t,e,n){var r,i;"number"==typeof n?ue([(r=n,i=t,function(t,e){i(t,e,r)})],e):"string"==typeof n?Reflect.decorate([t],e,n):ue([t],e)},Object.defineProperty(ie,"__esModule",{value:!0}),ie.inject=ie.LazyServiceIdentifer=void 0;var ce=o,he=n,de=Qt,pe=oe;function fe(t){this._cb=t}fe.prototype.unwrap=function(){return this._cb()},ie.LazyServiceIdentifer=fe,ie.inject=function(i){return function(t,e,n){if(void 0===i)throw new Error(ce.UNDEFINED_INJECT_ANNOTATION(t.name));var r=new de.Metadata(he.INJECT_TAG,i);"number"==typeof n?pe.tagParameter(t,e,n,r):pe.tagProperty(t,e,r)}};var u={},c={},h=(Object.defineProperty(c,"__esModule",{value:!0}),c.QueryableString=void 0,ye.prototype.startsWith=function(t){return 0===this.str.indexOf(t)},ye.prototype.endsWith=function(t){var t=t.split("").reverse().join(""),e=this.str.split("").reverse().join("");return this.startsWith.call({str:e},t)},ye.prototype.contains=function(t){return-1!==this.str.indexOf(t)},ye.prototype.equals=function(t){return this.str===t},ye.prototype.value=function(){return this.str},ye);function ye(t){this.str=t}c.QueryableString=h,Object.defineProperty(u,"__esModule",{value:!0}),u.Target=void 0;var ge,me,ve,be,xe,we,Ee,_e=n,ke=jt,Te=Qt,Me=c;function Se(t,e,n,r){this.id=ke.id(),this.type=t,this.serviceIdentifier=n,this.name=new Me.QueryableString(e||""),this.metadata=new Array;t=null;"string"==typeof r?t=new Te.Metadata(_e.NAMED_TAG,r):r instanceof Te.Metadata&&(t=r),null!==t&&this.metadata.push(t)}function Oe(t,e,n,r){var i=t.getConstructorMetadata(n),o=i.compilerGeneratedMetadata;if(void 0===o)throw a=ve.MISSING_INJECTABLE_ANNOTATION+" "+e+".",new Error(a);var a=i.userGeneratedMetadata,i=Object.keys(a),s=0===n.length&&0<i.length,l=i.length>n.length,r=function(t,e,n,r,i){for(var o=[],a=0;a<i;a++){var s=function(t,e,n,r,i){var i=i[t.toString()]||[],o=Pe(i),a=!0!==o.unmanaged,r=r[t],s=o.inject||o.multiInject;(r=s||r)instanceof me.LazyServiceIdentifer&&(r=r.unwrap());if(a){var s=r===Object,a=r===Function,l=void 0===r,s=s||a||l;if(!e&&s)throw a=ve.MISSING_INJECT_ANNOTATION+" argument "+t+" in class "+n+".",new Error(a);l=new Ee.Target(be.TargetTypeEnum.ConstructorArgument,o.targetName,r);return l.metadata=i,l}return null}(a,t,e,n,r);null!==s&&o.push(s)}return o}(r,e,o,a,(s||l?i:n).length),e=function t(e,n){var r=e.getPropertiesMetadata(n);var i=[];var o=Object.keys(r);for(var a=0,s=o;a<s.length;a++){var l=s[a],u=r[l],c=Pe(r[l]),l=c.targetName||l,c=c.inject||c.multiInject,l=new Ee.Target(be.TargetTypeEnum.ClassProperty,l,c);l.metadata=u,i.push(l)}o=Object.getPrototypeOf(n.prototype).constructor;o!==Object&&(n=t(e,o),i=ge(ge([],i),n));return i}(t,n);return ge(ge([],r),e)}function Pe(t){var e={};return t.forEach(function(t){e[t.key.toString()]=t.value}),{inject:e[xe.INJECT_TAG],multiInject:e[xe.MULTI_INJECT_TAG],targetName:e[xe.NAME_TAG],unmanaged:e[xe.UNMANAGED_TAG]}}Se.prototype.hasTag=function(t){for(var e=0,n=this.metadata;e<n.length;e++)if(n[e].key===t)return!0;return!1},Se.prototype.isArray=function(){return this.hasTag(_e.MULTI_INJECT_TAG)},Se.prototype.matchesArray=function(t){return this.matchesTag(_e.MULTI_INJECT_TAG)(t)},Se.prototype.isNamed=function(){return this.hasTag(_e.NAMED_TAG)},Se.prototype.isTagged=function(){return this.metadata.some(function(e){return _e.NON_CUSTOM_TAG_KEYS.every(function(t){return e.key!==t})})},Se.prototype.isOptional=function(){return this.matchesTag(_e.OPTIONAL_TAG)(!0)},Se.prototype.getNamedTag=function(){return this.isNamed()?this.metadata.filter(function(t){return t.key===_e.NAMED_TAG})[0]:null},Se.prototype.getCustomTags=function(){return this.isTagged()?this.metadata.filter(function(e){return _e.NON_CUSTOM_TAG_KEYS.every(function(t){return e.key!==t})}):null},Se.prototype.matchesNamedTag=function(t){return this.matchesTag(_e.NAMED_TAG)(t)},Se.prototype.matchesTag=function(i){var o=this;return function(t){for(var e=0,n=o.metadata;e<n.length;e++){var r=n[e];if(r.key===i&&r.value===t)return!0}return!1}},u.Target=Se,h=l,ge=Nt&&Nt.__spreadArray||function(t,e){for(var n=0,r=e.length,i=t.length;n<r;n++,i++)t[i]=e[n];return t},Object.defineProperty(h,"__esModule",{value:!0}),h.getFunctionName=h.getBaseClassDependencyCount=h.getDependencies=void 0,me=ie,ve=o,be=It,xe=n,we=Yt,Object.defineProperty(h,"getFunctionName",{enumerable:!0,get:function(){return we.getFunctionName}}),Ee=u,h.getDependencies=function(t,e){return Oe(t,we.getFunctionName(e),e,!1)},h.getBaseClassDependencyCount=function t(e,n){var r,i,n=Object.getPrototypeOf(n.prototype).constructor;return n!==Object?(r=(i=Oe(e,we.getFunctionName(n),n,!0)).map(function(t){return t.metadata.filter(function(t){return t.key===xe.UNMANAGED_TAG})}),r=[].concat.apply([],r).length,0<(i=i.length-r)?i:t(e,n)):0};var c={},Ae=(Object.defineProperty(c,"__esModule",{value:!0}),c.Request=void 0,jt);function Ne(t,e,n,r,i){this.id=Ae.id(),this.serviceIdentifier=t,this.parentContext=e,this.parentRequest=n,this.target=i,this.childRequests=[],this.bindings=Array.isArray(r)?r:[r],this.requestScope=null===n?new Map:null}Ne.prototype.addChildRequest=function(t,e,n){t=new Ne(t,this.parentContext,this,e,n);return this.childRequests.push(t),t},c.Request=Ne,Object.defineProperty(Ht,"__esModule",{value:!0}),Ht.getBindingDictionary=Ht.createMockRequest=Ht.plan=void 0;var Ce=a,Le=o,Ie=It,je=n,Re=s,De=Yt,Be=Kt,Fe=Qt,ze=re,Ve=l,Ge=c,He=u;function We(t){return t._bindingDictionary}function Ye(t,e,n,r,i){var o=Ue(n.container,i.serviceIdentifier),a=[];return o.length===Ce.BindingCount.NoBindingsAvailable&&n.container.options.autoBindInjectable&&"function"==typeof i.serviceIdentifier&&t.getConstructorMetadata(i.serviceIdentifier).compilerGeneratedMetadata&&(n.container.bind(i.serviceIdentifier).toSelf(),o=Ue(n.container,i.serviceIdentifier)),a=e?o:o.filter(function(t){var e=new Ge.Request(t.serviceIdentifier,n,r,t,i);return t.constraint(e)}),function(t,e,n,r){switch(e.length){case Ce.BindingCount.NoBindingsAvailable:if(n.isOptional())return;throw i=De.getServiceIdentifierAsString(t),o=Le.NOT_REGISTERED,o=(o+=De.listMetadataForTarget(i,n))+De.listRegisteredBindingsForServiceIdentifier(r,i,Ue),new Error(o);case Ce.BindingCount.OnlyOneBindingAvailable:if(!n.isArray())return;case Ce.BindingCount.MultipleBindingsAvailable:default:var i,o;if(n.isArray())return;throw i=De.getServiceIdentifierAsString(t),o=Le.AMBIGUOUS_MATCH+" "+i,o+=De.listRegisteredBindingsForServiceIdentifier(r,i,Ue),new Error(o)}}(i.serviceIdentifier,a,i,n.container),a}function Ue(t,e){var n=[],r=We(t);return r.hasKey(e)?n=r.get(e):null!==t.parent&&(n=Ue(t.parent,e)),n}Ht.getBindingDictionary=We,Ht.plan=function(t,e,n,r,i,o,a,s){void 0===s&&(s=!1);var l,e=new Be.Context(e),u=(r=r,u=i,l="",o=o,a=a,n=(n=n)?je.MULTI_INJECT_TAG:je.INJECT_TAG,n=new Fe.Metadata(n,u),r=new He.Target(r,l,u,n),void 0!==o&&(l=new Fe.Metadata(o,a),r.metadata.push(l)),r);try{return function i(o,t,e,a,n,s){var r,l;null===n?(r=Ye(o,t,a,null,s),l=new Ge.Request(e,a,null,r,s),e=new ze.Plan(a,l),a.addPlan(e)):(r=Ye(o,t,a,n,s),l=n.addChildRequest(s.serviceIdentifier,r,s)),r.forEach(function(t){var e=null;if(s.isArray())e=l.addChildRequest(t.serviceIdentifier,t,s);else{if(t.cache)return;e=l}if(t.type===Ie.BindingTypeEnum.Instance&&null!==t.implementationType){var n=Ve.getDependencies(o,t.implementationType);if(!a.container.options.skipBaseClassChecks){var r=Ve.getBaseClassDependencyCount(o,t.implementationType);if(n.length<r)throw r=Le.ARGUMENTS_LENGTH_MISMATCH(Ve.getFunctionName(t.implementationType)),new Error(r)}n.forEach(function(t){i(o,!1,t.serviceIdentifier,a,e,t)})}})}(t,s,i,e,null,u),e}catch(t){throw Re.isStackOverflowExeption(t)&&e.plan&&De.circularDependencyToException(e.plan.rootRequest),t}},Ht.createMockRequest=function(t,e,n,r){return n=new He.Target(Ie.TargetTypeEnum.Variable,"",e,new Fe.Metadata(n,r)),r=new Be.Context(t),new Ge.Request(e,r,null,[],n)};var h={},a={},qe=Nt&&Nt.__spreadArray||function(t,e){for(var n=0,r=e.length,i=t.length;n<r;n++,i++)t[i]=e[n];return t},Xe=(Object.defineProperty(a,"__esModule",{value:!0}),a.resolveInstance=void 0,o),Ze=It,Ke=n;a.resolveInstance=function(t,e,n){var r,i,o=null,e=(o=0<e.length?(a=e.filter(function(t){return null!==t.target&&t.target.type===Ze.TargetTypeEnum.ConstructorArgument}).map(n),o=new(t.bind.apply(t,qe([void 0],a))),r=o,a=n,i=(n=(n=e).filter(function(t){return null!==t.target&&t.target.type===Ze.TargetTypeEnum.ClassProperty})).map(a),n.forEach(function(t,e){t=t.target.name.value(),e=i[e];r[t]=e}),r):new t,t),a=o;if(Reflect.hasMetadata(Ke.POST_CONSTRUCT,e)){n=Reflect.getMetadata(Ke.POST_CONSTRUCT,e);try{a[n.value]()}catch(t){throw new Error(Xe.POST_CONSTRUCT_ERROR(e.name,t.message))}}return o},Object.defineProperty(h,"__esModule",{value:!0}),h.resolve=void 0;var $e=o,Je=It,Qe=s,tn=Yt,en=a,nn=function(e,n,t){try{return t()}catch(t){throw Qe.isStackOverflowExeption(t)?new Error($e.CIRCULAR_DEPENDENCY_IN_FACTORY(e,n.toString())):t}},rn=function(s){return function(t){t.parentContext.setCurrentRequest(t);var e=t.bindings,n=t.childRequests,r=t.target&&t.target.isArray(),i=!(t.parentRequest&&t.parentRequest.target&&t.target&&t.parentRequest.target.matchesArray(t.target.serviceIdentifier));if(r&&i)return n.map(function(t){return rn(s)(t)});r=null;if(!t.target.isOptional()||0!==e.length){var o,a=e[0],i=a.scope===Je.BindingScopeEnum.Singleton,e=a.scope===Je.BindingScopeEnum.Request;if(i&&a.activated)return a.cache;if(e&&null!==s&&s.has(a.id))return s.get(a.id);if(a.type===Je.BindingTypeEnum.ConstantValue)r=a.cache,a.activated=!0;else if(a.type===Je.BindingTypeEnum.Function)r=a.cache,a.activated=!0;else if(a.type===Je.BindingTypeEnum.Constructor)r=a.implementationType;else if(a.type===Je.BindingTypeEnum.DynamicValue&&null!==a.dynamicValue)r=nn("toDynamicValue",a.serviceIdentifier,function(){return a.dynamicValue(t.parentContext)});else if(a.type===Je.BindingTypeEnum.Factory&&null!==a.factory)r=nn("toFactory",a.serviceIdentifier,function(){return a.factory(t.parentContext)});else if(a.type===Je.BindingTypeEnum.Provider&&null!==a.provider)r=nn("toProvider",a.serviceIdentifier,function(){return a.provider(t.parentContext)});else{if(a.type!==Je.BindingTypeEnum.Instance||null===a.implementationType)throw o=tn.getServiceIdentifierAsString(t.serviceIdentifier),new Error($e.INVALID_BINDING_TYPE+" "+o);r=en.resolveInstance(a.implementationType,n,rn(s))}return"function"==typeof a.onActivation&&(r=a.onActivation(t.parentContext,r)),i&&(a.cache=r,a.activated=!0),e&&null!==s&&!s.has(a.id)&&s.set(a.id,r),r}}};h.resolve=function(t){return rn(t.plan.rootRequest.requestScope)(t.plan.rootRequest)};function on(t,e){return null!==(t=t.parentRequest)&&(!!e(t)||on(t,e))}function an(n){return function(e){function t(t){return null!==t&&null!==t.target&&t.target.matchesTag(n)(e)}return t.metaData=new sn.Metadata(n,e),t}}var Kt={},re={},l={},c={},u={},s={},a={},d=(Object.defineProperty(a,"__esModule",{value:!0}),a.typeConstraint=a.namedConstraint=a.taggedConstraint=a.traverseAncerstors=void 0,n),sn=Qt,d=(a.traverseAncerstors=on,(a.taggedConstraint=an)(d.NAMED_TAG)),ln=(a.namedConstraint=d,a.typeConstraint=function(n){return function(t){var e=null;return null!==t&&(e=t.bindings[0],"string"==typeof n?e.serviceIdentifier===n:(e=t.bindings[0].implementationType,n===e))}},Object.defineProperty(s,"__esModule",{value:!0}),s.BindingWhenSyntax=void 0,u),un=a;function cn(t){this._binding=t}cn.prototype.when=function(t){return this._binding.constraint=t,new ln.BindingOnSyntax(this._binding)},cn.prototype.whenTargetNamed=function(t){return this._binding.constraint=un.namedConstraint(t),new ln.BindingOnSyntax(this._binding)},cn.prototype.whenTargetIsDefault=function(){return this._binding.constraint=function(t){return null!==t.target&&!t.target.isNamed()&&!t.target.isTagged()},new ln.BindingOnSyntax(this._binding)},cn.prototype.whenTargetTagged=function(t,e){return this._binding.constraint=un.taggedConstraint(t)(e),new ln.BindingOnSyntax(this._binding)},cn.prototype.whenInjectedInto=function(e){return this._binding.constraint=function(t){return un.typeConstraint(e)(t.parentRequest)},new ln.BindingOnSyntax(this._binding)},cn.prototype.whenParentNamed=function(e){return this._binding.constraint=function(t){return un.namedConstraint(e)(t.parentRequest)},new ln.BindingOnSyntax(this._binding)},cn.prototype.whenParentTagged=function(e,n){return this._binding.constraint=function(t){return un.taggedConstraint(e)(n)(t.parentRequest)},new ln.BindingOnSyntax(this._binding)},cn.prototype.whenAnyAncestorIs=function(e){return this._binding.constraint=function(t){return un.traverseAncerstors(t,un.typeConstraint(e))},new ln.BindingOnSyntax(this._binding)},cn.prototype.whenNoAncestorIs=function(e){return this._binding.constraint=function(t){return!un.traverseAncerstors(t,un.typeConstraint(e))},new ln.BindingOnSyntax(this._binding)},cn.prototype.whenAnyAncestorNamed=function(e){return this._binding.constraint=function(t){return un.traverseAncerstors(t,un.namedConstraint(e))},new ln.BindingOnSyntax(this._binding)},cn.prototype.whenNoAncestorNamed=function(e){return this._binding.constraint=function(t){return!un.traverseAncerstors(t,un.namedConstraint(e))},new ln.BindingOnSyntax(this._binding)},cn.prototype.whenAnyAncestorTagged=function(e,n){return this._binding.constraint=function(t){return un.traverseAncerstors(t,un.taggedConstraint(e)(n))},new ln.BindingOnSyntax(this._binding)},cn.prototype.whenNoAncestorTagged=function(e,n){return this._binding.constraint=function(t){return!un.traverseAncerstors(t,un.taggedConstraint(e)(n))},new ln.BindingOnSyntax(this._binding)},cn.prototype.whenAnyAncestorMatches=function(e){return this._binding.constraint=function(t){return un.traverseAncerstors(t,e)},new ln.BindingOnSyntax(this._binding)},cn.prototype.whenNoAncestorMatches=function(e){return this._binding.constraint=function(t){return!un.traverseAncerstors(t,e)},new ln.BindingOnSyntax(this._binding)},s.BindingWhenSyntax=cn,Object.defineProperty(u,"__esModule",{value:!0}),u.BindingOnSyntax=void 0;var hn=s;function dn(t){this._binding=t}dn.prototype.onActivation=function(t){return this._binding.onActivation=t,new hn.BindingWhenSyntax(this._binding)},u.BindingOnSyntax=dn,Object.defineProperty(c,"__esModule",{value:!0}),c.BindingWhenOnSyntax=void 0;var pn=u,fn=s;function yn(t){this._binding=t,this._bindingWhenSyntax=new fn.BindingWhenSyntax(this._binding),this._bindingOnSyntax=new pn.BindingOnSyntax(this._binding)}yn.prototype.when=function(t){return this._bindingWhenSyntax.when(t)},yn.prototype.whenTargetNamed=function(t){return this._bindingWhenSyntax.whenTargetNamed(t)},yn.prototype.whenTargetIsDefault=function(){return this._bindingWhenSyntax.whenTargetIsDefault()},yn.prototype.whenTargetTagged=function(t,e){return this._bindingWhenSyntax.whenTargetTagged(t,e)},yn.prototype.whenInjectedInto=function(t){return this._bindingWhenSyntax.whenInjectedInto(t)},yn.prototype.whenParentNamed=function(t){return this._bindingWhenSyntax.whenParentNamed(t)},yn.prototype.whenParentTagged=function(t,e){return this._bindingWhenSyntax.whenParentTagged(t,e)},yn.prototype.whenAnyAncestorIs=function(t){return this._bindingWhenSyntax.whenAnyAncestorIs(t)},yn.prototype.whenNoAncestorIs=function(t){return this._bindingWhenSyntax.whenNoAncestorIs(t)},yn.prototype.whenAnyAncestorNamed=function(t){return this._bindingWhenSyntax.whenAnyAncestorNamed(t)},yn.prototype.whenAnyAncestorTagged=function(t,e){return this._bindingWhenSyntax.whenAnyAncestorTagged(t,e)},yn.prototype.whenNoAncestorNamed=function(t){return this._bindingWhenSyntax.whenNoAncestorNamed(t)},yn.prototype.whenNoAncestorTagged=function(t,e){return this._bindingWhenSyntax.whenNoAncestorTagged(t,e)},yn.prototype.whenAnyAncestorMatches=function(t){return this._bindingWhenSyntax.whenAnyAncestorMatches(t)},yn.prototype.whenNoAncestorMatches=function(t){return this._bindingWhenSyntax.whenNoAncestorMatches(t)},yn.prototype.onActivation=function(t){return this._bindingOnSyntax.onActivation(t)},c.BindingWhenOnSyntax=yn,Object.defineProperty(l,"__esModule",{value:!0}),l.BindingInSyntax=void 0;var gn=It,mn=c;function vn(t){this._binding=t}vn.prototype.inRequestScope=function(){return this._binding.scope=gn.BindingScopeEnum.Request,new mn.BindingWhenOnSyntax(this._binding)},vn.prototype.inSingletonScope=function(){return this._binding.scope=gn.BindingScopeEnum.Singleton,new mn.BindingWhenOnSyntax(this._binding)},vn.prototype.inTransientScope=function(){return this._binding.scope=gn.BindingScopeEnum.Transient,new mn.BindingWhenOnSyntax(this._binding)},l.BindingInSyntax=vn,Object.defineProperty(re,"__esModule",{value:!0}),re.BindingInWhenOnSyntax=void 0;var bn=l,xn=u,wn=s;function En(t){this._binding=t,this._bindingWhenSyntax=new wn.BindingWhenSyntax(this._binding),this._bindingOnSyntax=new xn.BindingOnSyntax(this._binding),this._bindingInSyntax=new bn.BindingInSyntax(t)}En.prototype.inRequestScope=function(){return this._bindingInSyntax.inRequestScope()},En.prototype.inSingletonScope=function(){return this._bindingInSyntax.inSingletonScope()},En.prototype.inTransientScope=function(){return this._bindingInSyntax.inTransientScope()},En.prototype.when=function(t){return this._bindingWhenSyntax.when(t)},En.prototype.whenTargetNamed=function(t){return this._bindingWhenSyntax.whenTargetNamed(t)},En.prototype.whenTargetIsDefault=function(){return this._bindingWhenSyntax.whenTargetIsDefault()},En.prototype.whenTargetTagged=function(t,e){return this._bindingWhenSyntax.whenTargetTagged(t,e)},En.prototype.whenInjectedInto=function(t){return this._bindingWhenSyntax.whenInjectedInto(t)},En.prototype.whenParentNamed=function(t){return this._bindingWhenSyntax.whenParentNamed(t)},En.prototype.whenParentTagged=function(t,e){return this._bindingWhenSyntax.whenParentTagged(t,e)},En.prototype.whenAnyAncestorIs=function(t){return this._bindingWhenSyntax.whenAnyAncestorIs(t)},En.prototype.whenNoAncestorIs=function(t){return this._bindingWhenSyntax.whenNoAncestorIs(t)},En.prototype.whenAnyAncestorNamed=function(t){return this._bindingWhenSyntax.whenAnyAncestorNamed(t)},En.prototype.whenAnyAncestorTagged=function(t,e){return this._bindingWhenSyntax.whenAnyAncestorTagged(t,e)},En.prototype.whenNoAncestorNamed=function(t){return this._bindingWhenSyntax.whenNoAncestorNamed(t)},En.prototype.whenNoAncestorTagged=function(t,e){return this._bindingWhenSyntax.whenNoAncestorTagged(t,e)},En.prototype.whenAnyAncestorMatches=function(t){return this._bindingWhenSyntax.whenAnyAncestorMatches(t)},En.prototype.whenNoAncestorMatches=function(t){return this._bindingWhenSyntax.whenNoAncestorMatches(t)},En.prototype.onActivation=function(t){return this._bindingOnSyntax.onActivation(t)},re.BindingInWhenOnSyntax=En,Object.defineProperty(Kt,"__esModule",{value:!0}),Kt.BindingToSyntax=void 0;var _n=o,kn=It,Tn=re,Mn=c;function Sn(t){this._binding=t}Sn.prototype.to=function(t){return this._binding.type=kn.BindingTypeEnum.Instance,this._binding.implementationType=t,new Tn.BindingInWhenOnSyntax(this._binding)},Sn.prototype.toSelf=function(){if("function"!=typeof this._binding.serviceIdentifier)throw new Error(""+_n.INVALID_TO_SELF_VALUE);var t=this._binding.serviceIdentifier;return this.to(t)},Sn.prototype.toConstantValue=function(t){return this._binding.type=kn.BindingTypeEnum.ConstantValue,this._binding.cache=t,this._binding.dynamicValue=null,this._binding.implementationType=null,this._binding.scope=kn.BindingScopeEnum.Singleton,new Mn.BindingWhenOnSyntax(this._binding)},Sn.prototype.toDynamicValue=function(t){return this._binding.type=kn.BindingTypeEnum.DynamicValue,this._binding.cache=null,this._binding.dynamicValue=t,this._binding.implementationType=null,new Tn.BindingInWhenOnSyntax(this._binding)},Sn.prototype.toConstructor=function(t){return this._binding.type=kn.BindingTypeEnum.Constructor,this._binding.implementationType=t,this._binding.scope=kn.BindingScopeEnum.Singleton,new Mn.BindingWhenOnSyntax(this._binding)},Sn.prototype.toFactory=function(t){return this._binding.type=kn.BindingTypeEnum.Factory,this._binding.factory=t,this._binding.scope=kn.BindingScopeEnum.Singleton,new Mn.BindingWhenOnSyntax(this._binding)},Sn.prototype.toFunction=function(t){if("function"!=typeof t)throw new Error(_n.INVALID_FUNCTION_BINDING);t=this.toConstantValue(t);return this._binding.type=kn.BindingTypeEnum.Function,this._binding.scope=kn.BindingScopeEnum.Singleton,t},Sn.prototype.toAutoFactory=function(e){return this._binding.type=kn.BindingTypeEnum.Factory,this._binding.factory=function(t){return function(){return t.container.get(e)}},this._binding.scope=kn.BindingScopeEnum.Singleton,new Mn.BindingWhenOnSyntax(this._binding)},Sn.prototype.toProvider=function(t){return this._binding.type=kn.BindingTypeEnum.Provider,this._binding.provider=t,this._binding.scope=kn.BindingScopeEnum.Singleton,new Mn.BindingWhenOnSyntax(this._binding)},Sn.prototype.toService=function(e){this.toDynamicValue(function(t){return t.container.get(e)})},Kt.BindingToSyntax=Sn;d={},Object.defineProperty(d,"__esModule",{value:!0}),d.ContainerSnapshot=void 0,On.of=function(t,e){var n=new On;return n.bindings=t,n.middleware=e,n},l=On;function On(){}d.ContainerSnapshot=l;var u={},Pn=(Object.defineProperty(u,"__esModule",{value:!0}),u.Lookup=void 0,o);function An(){this._map=new Map}An.prototype.getMap=function(){return this._map},An.prototype.add=function(t,e){if(null==t)throw new Error(Pn.NULL_ARGUMENT);if(null==e)throw new Error(Pn.NULL_ARGUMENT);var n=this._map.get(t);void 0!==n?(n.push(e),this._map.set(t,n)):this._map.set(t,[e])},An.prototype.get=function(t){if(null==t)throw new Error(Pn.NULL_ARGUMENT);t=this._map.get(t);if(void 0!==t)return t;throw new Error(Pn.KEY_NOT_FOUND)},An.prototype.remove=function(t){if(null==t)throw new Error(Pn.NULL_ARGUMENT);if(!this._map.delete(t))throw new Error(Pn.KEY_NOT_FOUND)},An.prototype.removeByCondition=function(n){var r=this;this._map.forEach(function(t,e){t=t.filter(function(t){return!n(t)});0<t.length?r._map.set(e,t):r._map.delete(e)})},An.prototype.hasKey=function(t){if(null==t)throw new Error(Pn.NULL_ARGUMENT);return this._map.has(t)},An.prototype.clone=function(){var n=new An;return this._map.forEach(function(t,e){t.forEach(function(t){return n.add(e,t.clone())})}),n},An.prototype.traverse=function(n){this._map.forEach(function(t,e){n(e,t)})},u.Lookup=An;var Nn=Nt&&Nt.__awaiter||function(t,a,s,l){return new(s=s||Promise)(function(n,e){function r(t){try{o(l.next(t))}catch(t){e(t)}}function i(t){try{o(l.throw(t))}catch(t){e(t)}}function o(t){var e;t.done?n(t.value):((e=t.value)instanceof s?e:new s(function(t){t(e)})).then(r,i)}o((l=l.apply(t,a||[])).next())})},Cn=Nt&&Nt.__generator||function(r,i){var o,a,s,l={label:0,sent:function(){if(1&s[0])throw s[1];return s[1]},trys:[],ops:[]},t={next:e(0),throw:e(1),return:e(2)};return"function"==typeof Symbol&&(t[Symbol.iterator]=function(){return this}),t;function e(n){return function(t){var e=[n,t];if(o)throw new TypeError("Generator is already executing.");for(;l;)try{if(o=1,a&&(s=2&e[0]?a.return:e[0]?a.throw||((s=a.return)&&s.call(a),0):a.next)&&!(s=s.call(a,e[1])).done)return s;switch(a=0,(e=s?[2&e[0],s.value]:e)[0]){case 0:case 1:s=e;break;case 4:return l.label++,{value:e[1],done:!1};case 5:l.label++,a=e[1],e=[0];continue;case 7:e=l.ops.pop(),l.trys.pop();continue;default:if(!(s=0<(s=l.trys).length&&s[s.length-1])&&(6===e[0]||2===e[0])){l=0;continue}if(3===e[0]&&(!s||e[1]>s[0]&&e[1]<s[3]))l.label=e[1];else if(6===e[0]&&l.label<s[1])l.label=s[1],s=e;else{if(!(s&&l.label<s[2])){s[2]&&l.ops.pop(),l.trys.pop();continue}l.label=s[2],l.ops.push(e)}}e=i.call(r,l)}catch(t){e=[6,t],a=0}finally{o=s=0}if(5&e[0])throw e[1];return{value:e[0]?e[1]:void 0,done:!0}}}},Ln=Nt&&Nt.__spreadArray||function(t,e){for(var n=0,r=e.length,i=t.length;n<r;n++,i++)t[i]=e[n];return t},In=(Object.defineProperty(r,"__esModule",{value:!0}),r.Container=void 0,Lt),jn=o,Rn=It,Dn=n,Bn=zt,Fn=Ht,zn=h,Vn=Kt,Gn=jt,Hn=Yt,Wn=d,Yn=u;function Un(t){this._appliedMiddleware=[];t=t||{};if("object"!=typeof t)throw new Error(""+jn.CONTAINER_OPTIONS_MUST_BE_AN_OBJECT);if(void 0===t.defaultScope)t.defaultScope=Rn.BindingScopeEnum.Transient;else if(t.defaultScope!==Rn.BindingScopeEnum.Singleton&&t.defaultScope!==Rn.BindingScopeEnum.Transient&&t.defaultScope!==Rn.BindingScopeEnum.Request)throw new Error(""+jn.CONTAINER_OPTIONS_INVALID_DEFAULT_SCOPE);if(void 0===t.autoBindInjectable)t.autoBindInjectable=!1;else if("boolean"!=typeof t.autoBindInjectable)throw new Error(""+jn.CONTAINER_OPTIONS_INVALID_AUTO_BIND_INJECTABLE);if(void 0===t.skipBaseClassChecks)t.skipBaseClassChecks=!1;else if("boolean"!=typeof t.skipBaseClassChecks)throw new Error(""+jn.CONTAINER_OPTIONS_INVALID_SKIP_BASE_CHECK);this.options={autoBindInjectable:t.autoBindInjectable,defaultScope:t.defaultScope,skipBaseClassChecks:t.skipBaseClassChecks},this.id=Gn.id(),this._bindingDictionary=new Yn.Lookup,this._snapshots=[],this._middleware=null,this.parent=null,this._metadataReader=new Bn.MetadataReader}Un.merge=function(t,e){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var i=new Un,t=Ln([t,e],n).map(function(t){return Fn.getBindingDictionary(t)}),o=Fn.getBindingDictionary(i);return t.forEach(function(t){var n;n=o,t.traverse(function(t,e){e.forEach(function(t){n.add(t.serviceIdentifier,t.clone())})})}),i},Un.prototype.load=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var n=this._getContainerModuleHelpersFactory(),r=0,i=t;r<i.length;r++){var o=i[r],a=n(o.id);o.registry(a.bindFunction,a.unbindFunction,a.isboundFunction,a.rebindFunction)}},Un.prototype.loadAsync=function(){for(var a=[],t=0;t<arguments.length;t++)a[t]=arguments[t];return Nn(this,void 0,void 0,function(){var e,n,r,i,o;return Cn(this,function(t){switch(t.label){case 0:e=this._getContainerModuleHelpersFactory(),n=0,r=a,t.label=1;case 1:return n<r.length?(i=r[n],o=e(i.id),[4,i.registry(o.bindFunction,o.unbindFunction,o.isboundFunction,o.rebindFunction)]):[3,4];case 2:t.sent(),t.label=3;case 3:return n++,[3,1];case 4:return[2]}})})},Un.prototype.unload=function(){for(var r=this,t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];t.forEach(function(t){function e(t){return t.moduleId===n}var n;n=t.id;r._bindingDictionary.removeByCondition(e)})},Un.prototype.bind=function(t){var e=this.options.defaultScope||Rn.BindingScopeEnum.Transient,e=new In.Binding(t,e);return this._bindingDictionary.add(t,e),new Vn.BindingToSyntax(e)},Un.prototype.rebind=function(t){return this.unbind(t),this.bind(t)},Un.prototype.unbind=function(e){try{this._bindingDictionary.remove(e)}catch(t){throw new Error(jn.CANNOT_UNBIND+" "+Hn.getServiceIdentifierAsString(e))}},Un.prototype.unbindAll=function(){this._bindingDictionary=new Yn.Lookup},Un.prototype.isBound=function(t){var e=this._bindingDictionary.hasKey(t);return e=!e&&this.parent?this.parent.isBound(t):e},Un.prototype.isBoundNamed=function(t,e){return this.isBoundTagged(t,Dn.NAMED_TAG,e)},Un.prototype.isBoundTagged=function(t,e,n){var r,i,o=!1;return this._bindingDictionary.hasKey(t)&&(r=this._bindingDictionary.get(t),i=Fn.createMockRequest(this,t,e,n),o=r.some(function(t){return t.constraint(i)})),o=!o&&this.parent?this.parent.isBoundTagged(t,e,n):o},Un.prototype.snapshot=function(){this._snapshots.push(Wn.ContainerSnapshot.of(this._bindingDictionary.clone(),this._middleware))},Un.prototype.restore=function(){var t=this._snapshots.pop();if(void 0===t)throw new Error(jn.NO_MORE_SNAPSHOTS_AVAILABLE);this._bindingDictionary=t.bindings,this._middleware=t.middleware},Un.prototype.createChild=function(t){t=new Un(t||this.options);return t.parent=this,t},Un.prototype.applyMiddleware=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];this._appliedMiddleware=this._appliedMiddleware.concat(t);var n=this._middleware||this._planAndResolve();this._middleware=t.reduce(function(t,e){return e(t)},n)},Un.prototype.applyCustomMetadataReader=function(t){this._metadataReader=t},Un.prototype.get=function(t){return this._get(!1,!1,Rn.TargetTypeEnum.Variable,t)},Un.prototype.getTagged=function(t,e,n){return this._get(!1,!1,Rn.TargetTypeEnum.Variable,t,e,n)},Un.prototype.getNamed=function(t,e){return this.getTagged(t,Dn.NAMED_TAG,e)},Un.prototype.getAll=function(t){return this._get(!0,!0,Rn.TargetTypeEnum.Variable,t)},Un.prototype.getAllTagged=function(t,e,n){return this._get(!1,!0,Rn.TargetTypeEnum.Variable,t,e,n)},Un.prototype.getAllNamed=function(t,e){return this.getAllTagged(t,Dn.NAMED_TAG,e)},Un.prototype.resolve=function(t){var e=this.createChild();return e.bind(t).toSelf(),this._appliedMiddleware.forEach(function(t){e.applyMiddleware(t)}),e.get(t)},Un.prototype._getContainerModuleHelpersFactory=function(){function r(t,e){t._binding.moduleId=e}var i=this;return function(t){return{bindFunction:function(t){t=i.bind.bind(i)(t);return r(t,n),t},isboundFunction:function(t){return i.isBound.bind(i)(t)},rebindFunction:(e=n=t,function(t){t=i.rebind.bind(i)(t);return r(t,e),t}),unbindFunction:function(t){i.unbind.bind(i)(t)}};var e,n}},Un.prototype._get=function(t,e,n,r,i,o){var a=null,t={avoidConstraints:t,contextInterceptor:function(t){return t},isMultiInject:e,key:i,serviceIdentifier:r,targetType:n,value:o};if(this._middleware){if(null==(a=this._middleware(t)))throw new Error(jn.INVALID_MIDDLEWARE_RETURN)}else a=this._planAndResolve()(t);return a},Un.prototype._planAndResolve=function(){var n=this;return function(t){var e=Fn.plan(n._metadataReader,n,t.isMultiInject,t.targetType,t.serviceIdentifier,t.key,t.value,t.avoidConstraints),e=t.contextInterceptor(e);return zn.resolve(e)}},r.Container=Un;function qn(t){this.id=Xn.id(),this.registry=t}var s={},Xn=(Object.defineProperty(s,"__esModule",{value:!0}),s.AsyncContainerModule=s.ContainerModule=void 0,jt),re=(s.ContainerModule=function(t){this.id=Xn.id(),this.registry=t},s.AsyncContainerModule=qn,{}),Zn=(Object.defineProperty(re,"__esModule",{value:!0}),re.injectable=void 0,o),Kn=n;re.injectable=function(){return function(t){if(Reflect.hasOwnMetadata(Kn.PARAM_TYPES,t))throw new Error(Zn.DUPLICATED_INJECTABLE_DECORATOR);var e=Reflect.getMetadata(Kn.DESIGN_PARAM_TYPES,t)||[];return Reflect.defineMetadata(Kn.PARAM_TYPES,e,t),t}};var c={},$n=(Object.defineProperty(c,"__esModule",{value:!0}),c.tagged=void 0,Qt),Jn=oe;c.tagged=function(i,o){return function(t,e,n){var r=new $n.Metadata(i,o);"number"==typeof n?Jn.tagParameter(t,e,n,r):Jn.tagProperty(t,e,r)}};var l={},Qn=(Object.defineProperty(l,"__esModule",{value:!0}),l.named=void 0,n),tr=Qt,er=oe;l.named=function(i){return function(t,e,n){var r=new tr.Metadata(Qn.NAMED_TAG,i);"number"==typeof n?er.tagParameter(t,e,n,r):er.tagProperty(t,e,r)}};var Nt={},nr=(Object.defineProperty(Nt,"__esModule",{value:!0}),Nt.optional=void 0,n),rr=Qt,ir=oe;Nt.optional=function(){return function(t,e,n){var r=new rr.Metadata(nr.OPTIONAL_TAG,!0);"number"==typeof n?ir.tagParameter(t,e,n,r):ir.tagProperty(t,e,r)}};var Lt={},or=(Object.defineProperty(Lt,"__esModule",{value:!0}),Lt.unmanaged=void 0,n),ar=Qt,sr=oe;Lt.unmanaged=function(){return function(t,e,n){var r=new ar.Metadata(or.UNMANAGED_TAG,!0);sr.tagParameter(t,e,n,r)}};var Ht={},lr=(Object.defineProperty(Ht,"__esModule",{value:!0}),Ht.multiInject=void 0,n),ur=Qt,cr=oe;Ht.multiInject=function(i){return function(t,e,n){var r=new ur.Metadata(lr.MULTI_INJECT_TAG,i);"number"==typeof n?cr.tagParameter(t,e,n,r):cr.tagProperty(t,e,r)}};var h={},hr=(Object.defineProperty(h,"__esModule",{value:!0}),h.targetName=void 0,n),dr=Qt,pr=oe;h.targetName=function(i){return function(t,e,n){var r=new dr.Metadata(hr.NAME_TAG,i);pr.tagParameter(t,e,n,r)}};var Kt={},fr=(Object.defineProperty(Kt,"__esModule",{value:!0}),Kt.postConstruct=void 0,o),yr=n,gr=Qt;Kt.postConstruct=function(){return function(t,e,n){e=new gr.Metadata(yr.POST_CONSTRUCT,e);if(Reflect.hasOwnMetadata(yr.POST_CONSTRUCT,t.constructor))throw new Error(fr.MULTIPLE_POST_CONSTRUCT_METHODS);Reflect.defineMetadata(yr.POST_CONSTRUCT,e,t.constructor)}};var d={},u=(Object.defineProperty(d,"__esModule",{value:!0}),d.multiBindToService=void 0,d.multiBindToService=function(r){return function(n){return function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return t.forEach(function(t){return r.bind(t).toService(n)})}}},Ct),mr=(Object.defineProperty(u,"__esModule",{value:!0}),u.multiBindToService=u.getServiceIdentifierAsString=u.typeConstraint=u.namedConstraint=u.taggedConstraint=u.traverseAncerstors=u.decorate=u.id=u.MetadataReader=u.postConstruct=u.targetName=u.multiInject=u.unmanaged=u.optional=u.LazyServiceIdentifer=u.inject=u.named=u.tagged=u.injectable=u.ContainerModule=u.AsyncContainerModule=u.TargetTypeEnum=u.BindingTypeEnum=u.BindingScopeEnum=u.Container=u.METADATA_KEY=void 0,u.METADATA_KEY=n,r),vr=(Object.defineProperty(u,"Container",{enumerable:!0,get:function(){return mr.Container}}),It),br=(Object.defineProperty(u,"BindingScopeEnum",{enumerable:!0,get:function(){return vr.BindingScopeEnum}}),Object.defineProperty(u,"BindingTypeEnum",{enumerable:!0,get:function(){return vr.BindingTypeEnum}}),Object.defineProperty(u,"TargetTypeEnum",{enumerable:!0,get:function(){return vr.TargetTypeEnum}}),s),xr=(Object.defineProperty(u,"AsyncContainerModule",{enumerable:!0,get:function(){return br.AsyncContainerModule}}),Object.defineProperty(u,"ContainerModule",{enumerable:!0,get:function(){return br.ContainerModule}}),re),wr=(Object.defineProperty(u,"injectable",{enumerable:!0,get:function(){return xr.injectable}}),c),Er=(Object.defineProperty(u,"tagged",{enumerable:!0,get:function(){return wr.tagged}}),l),_r=(Object.defineProperty(u,"named",{enumerable:!0,get:function(){return Er.named}}),ie),kr=(Object.defineProperty(u,"inject",{enumerable:!0,get:function(){return _r.inject}}),Object.defineProperty(u,"LazyServiceIdentifer",{enumerable:!0,get:function(){return _r.LazyServiceIdentifer}}),Nt),Tr=(Object.defineProperty(u,"optional",{enumerable:!0,get:function(){return kr.optional}}),Lt),Mr=(Object.defineProperty(u,"unmanaged",{enumerable:!0,get:function(){return Tr.unmanaged}}),Ht),Sr=(Object.defineProperty(u,"multiInject",{enumerable:!0,get:function(){return Mr.multiInject}}),h),Or=(Object.defineProperty(u,"targetName",{enumerable:!0,get:function(){return Sr.targetName}}),Kt),Pr=(Object.defineProperty(u,"postConstruct",{enumerable:!0,get:function(){return Or.postConstruct}}),zt),Ar=(Object.defineProperty(u,"MetadataReader",{enumerable:!0,get:function(){return Pr.MetadataReader}}),jt),Nr=(Object.defineProperty(u,"id",{enumerable:!0,get:function(){return Ar.id}}),oe),Cr=(Object.defineProperty(u,"decorate",{enumerable:!0,get:function(){return Nr.decorate}}),a),Lr=(Object.defineProperty(u,"traverseAncerstors",{enumerable:!0,get:function(){return Cr.traverseAncerstors}}),Object.defineProperty(u,"taggedConstraint",{enumerable:!0,get:function(){return Cr.taggedConstraint}}),Object.defineProperty(u,"namedConstraint",{enumerable:!0,get:function(){return Cr.namedConstraint}}),Object.defineProperty(u,"typeConstraint",{enumerable:!0,get:function(){return Cr.typeConstraint}}),Yt),Ir=(Object.defineProperty(u,"getServiceIdentifierAsString",{enumerable:!0,get:function(){return Lr.getServiceIdentifierAsString}}),d),jr=(Object.defineProperty(u,"multiBindToService",{enumerable:!0,get:function(){return Ir.multiBindToService}}),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{});function Rr(){throw new Error("setTimeout has not been defined")}function Dr(){throw new Error("clearTimeout has not been defined")}var Br=Rr,Fr=Dr;function zr(e){if(Br===setTimeout)return setTimeout(e,0);if((Br===Rr||!Br)&&setTimeout)return(Br=setTimeout)(e,0);try{return Br(e,0)}catch(t){try{return Br.call(null,e,0)}catch(t){return Br.call(this,e,0)}}}"function"==typeof jr.setTimeout&&(Br=setTimeout),"function"==typeof jr.clearTimeout&&(Fr=clearTimeout);var Vr,Gr=[],Hr=!1,Wr=-1;function Yr(){Hr&&Vr&&(Hr=!1,Vr.length?Gr=Vr.concat(Gr):Wr=-1,Gr.length&&Ur())}function Ur(){if(!Hr){for(var t=zr(Yr),e=(Hr=!0,Gr.length);e;){for(Vr=Gr,Gr=[];++Wr<e;)Vr&&Vr[Wr].run();Wr=-1,e=Gr.length}Vr=null,Hr=!1,!function(e){if(Fr===clearTimeout)return clearTimeout(e);if((Fr===Dr||!Fr)&&clearTimeout)return(Fr=clearTimeout)(e);try{Fr(e)}catch(t){try{return Fr.call(null,e)}catch(t){return Fr.call(this,e)}}}(t)}}function qr(t,e){this.fun=t,this.array=e}qr.prototype.run=function(){this.fun.apply(null,this.array)};function Xr(){}o=Xr,Qt=Xr,n=Xr,r=Xr,It=Xr,s=Xr,re=Xr;var Zr=jr.performance||{},Kr=Zr.now||Zr.mozNow||Zr.msNow||Zr.oNow||Zr.webkitNow||function(){return(new Date).getTime()};var $r=new Date;var Jr,p,Qr,ti,ei,ni={nextTick:function(t){var e=new Array(arguments.length-1);if(1<arguments.length)for(var n=1;n<arguments.length;n++)e[n-1]=arguments[n];Gr.push(new qr(t,e)),1!==Gr.length||Hr||zr(Ur)},title:"browser",browser:!0,env:{},argv:[],version:"",versions:{},on:o,addListener:Qt,once:n,off:r,removeListener:It,removeAllListeners:s,emit:re,binding:function(t){throw new Error("process.binding is not supported")},cwd:function(){return"/"},chdir:function(t){throw new Error("process.chdir is not supported")},umask:function(){return 0},hrtime:function(t){var e=.001*Kr.call(Zr),n=Math.floor(e),e=Math.floor(e%1*1e9);return t&&(n-=t[0],(e-=t[1])<0&&(n--,e+=1e9)),[n,e]},platform:"browser",release:{},config:{},uptime:function(){return(new Date-$r)/1e3}};function ri(t){return(ri="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)}function ii(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function oi(t,e,n){return e&&ii(t.prototype,e),n&&ii(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function ai(t){return(ai="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)}function si(t,e){return e.lifecycle===p.Lifecycle.singleton?t.inSingletonScope():t.inTransientScope()}function li(t,e){t.whenTargetNamed(hi(e))}function ui(t,e){return e.bind(di(t))}function ci(t,e){if(e.isBound(di(t)))try{return e.rebind(di(t))}catch(t){}return e.bind(di(t))}function hi(t){return ti.isDefinedToken(t)?t.symbol:t}function di(t){return ti.isDefinedToken(t)?t.symbol:t}Jr={},function(){var s,l,u,c,r,t,i,h,o,e="object"==typeof jr?jr:"object"==typeof self?self:"object"==typeof this?this:Function("return this;")(),n=O(Jr);function d(t,e,n){var r=o.get(t);if(m(r)){if(!n)return;r=new i,o.set(t,r)}t=r.get(e);if(m(t)){if(!n)return;t=new i,r.set(e,t)}return t}function a(t,e,n){e=d(e,n,!1);return!m(e)&&!!e.has(t)}function p(t,e,n){e=d(e,n,!1);if(!m(e))return e.get(t)}function f(t,e,n,r){d(n,r,!0).set(t,e)}function y(t,e){var n=[],t=d(t,e,!1);if(m(t))return n;for(var r,i,o=function(t){var e=T(t,u);if(_(e)){e=e.call(t);if(b(e))return e}throw new TypeError}(t.keys()),a=0;;){var s=function(t){t=t.next();return!t.done&&t}(o);if(!s)return n.length=a,n;s=s.value;try{n[a]=s}catch(t){try{i=void 0,(i=(r=o).return)&&i.call(r)}finally{throw t}}a++}}function g(t){if(null===t)return 1;switch(typeof t){case"undefined":return 0;case"boolean":return 2;case"string":return 3;case"symbol":return 4;case"number":return 5;case"object":return null===t?1:6;default:return 6}}function m(t){return void 0===t}function v(t){return null===t}function b(t){return"object"==typeof t?null!==t:"function"==typeof t}function x(t,e){switch(g(t)){case 0:case 1:case 2:case 3:case 4:case 5:return t}var e=3===e?"string":5===e?"number":"default",n=T(t,l);if(void 0===n){var r=t;if("string"===(a="default"==e?"number":e)){a=r.toString;if(_(a))if(!b(o=a.call(r)))return o;var i=r.valueOf;if(_(i))if(!b(o=i.call(r)))return o}else{i=r.valueOf;if(_(i))if(!b(o=i.call(r)))return o;var o,a=r.toString;if(_(a))if(!b(o=a.call(r)))return o}throw new TypeError}i=n.call(t,e);if(b(i))throw new TypeError;return i}function w(t){t=x(t,3);return"symbol"==typeof t?t:""+t}function E(t){return Array.isArray?Array.isArray(t):t instanceof Object?t instanceof Array:"[object Array]"===Object.prototype.toString.call(t)}function _(t){return"function"==typeof t}function k(t){return"function"==typeof t}function T(t,e){t=t[e];if(null!=t){if(_(t))return t;throw new TypeError}}function M(t){var e,n=Object.getPrototypeOf(t);return"function"!=typeof t||t===r||n!==r||null==(e=(e=t.prototype)&&Object.getPrototypeOf(e))||e===Object.prototype||"function"!=typeof(e=e.constructor)||e===t?n:e}function S(t){return t.__=void 0,delete t.__,t}function O(n,r){return function(t,e){"function"!=typeof n[t]&&Object.defineProperty(n,t,{configurable:!0,writable:!0,value:e}),r&&r(t,e)}}void 0===e.Reflect?e.Reflect=Jr:n=O(e.Reflect,n),e=n,s=Object.prototype.hasOwnProperty,n="function"==typeof Symbol,l=n&&void 0!==Symbol.toPrimitive?Symbol.toPrimitive:"@@toPrimitive",u=n&&void 0!==Symbol.iterator?Symbol.iterator:"@@iterator",n="function"==typeof Object.create,t={__proto__:[]}instanceof Array,c={create:n?function(){return S(Object.create(null))}:t?function(){return S({__proto__:null})}:function(){return S({})},has:(n=!n&&!t)?function(t,e){return s.call(t,e)}:function(t,e){return e in t},get:n?function(t,e){return s.call(t,e)?t[e]:void 0}:function(t,e){return t[e]}},r=Object.getPrototypeOf(Function),t="object"==typeof ni&&ni.env&&"true"===ni.env.REFLECT_METADATA_USE_MAP_POLYFILL,i=t||"function"!=typeof Map||"function"!=typeof Map.prototype.entries?function(){var i={},n=[],t=function(){function t(t,e,n){this._index=0,this._keys=t,this._values=e,this._selector=n}return t.prototype["@@iterator"]=function(){return this},t.prototype[u]=function(){return this},t.prototype.next=function(){var t,e=this._index;return 0<=e&&e<this._keys.length?(t=this._selector(this._keys[e],this._values[e]),e+1>=this._keys.length?(this._index=-1,this._keys=n,this._values=n):this._index++,{value:t,done:!1}):{value:void 0,done:!0}},t.prototype.throw=function(t){throw 0<=this._index&&(this._index=-1,this._keys=n,this._values=n),t},t.prototype.return=function(t){return 0<=this._index&&(this._index=-1,this._keys=n,this._values=n),{value:t,done:!0}},t}();function e(){this._keys=[],this._values=[],this._cacheKey=i,this._cacheIndex=-2}return Object.defineProperty(e.prototype,"size",{get:function(){return this._keys.length},enumerable:!0,configurable:!0}),e.prototype.has=function(t){return 0<=this._find(t,!1)},e.prototype.get=function(t){t=this._find(t,!1);return 0<=t?this._values[t]:void 0},e.prototype.set=function(t,e){t=this._find(t,!0);return this._values[t]=e,this},e.prototype.delete=function(t){var e=this._find(t,!1);if(0<=e){for(var n=this._keys.length,r=e+1;r<n;r++)this._keys[r-1]=this._keys[r],this._values[r-1]=this._values[r];return this._keys.length--,this._values.length--,t===this._cacheKey&&(this._cacheKey=i,this._cacheIndex=-2),!0}return!1},e.prototype.clear=function(){this._keys.length=0,this._values.length=0,this._cacheKey=i,this._cacheIndex=-2},e.prototype.keys=function(){return new t(this._keys,this._values,r)},e.prototype.values=function(){return new t(this._keys,this._values,o)},e.prototype.entries=function(){return new t(this._keys,this._values,a)},e.prototype["@@iterator"]=function(){return this.entries()},e.prototype[u]=function(){return this.entries()},e.prototype._find=function(t,e){return this._cacheKey!==t&&(this._cacheIndex=this._keys.indexOf(this._cacheKey=t)),this._cacheIndex<0&&e&&(this._cacheIndex=this._keys.length,this._keys.push(t),this._values.push(void 0)),this._cacheIndex},e;function r(t,e){return t}function o(t,e){return e}function a(t,e){return[t,e]}}():Map,h=t||"function"!=typeof Set||"function"!=typeof Set.prototype.entries?function(){function t(){this._map=new i}return Object.defineProperty(t.prototype,"size",{get:function(){return this._map.size},enumerable:!0,configurable:!0}),t.prototype.has=function(t){return this._map.has(t)},t.prototype.add=function(t){return this._map.set(t,t),this},t.prototype.delete=function(t){return this._map.delete(t)},t.prototype.clear=function(){this._map.clear()},t.prototype.keys=function(){return this._map.keys()},t.prototype.values=function(){return this._map.values()},t.prototype.entries=function(){return this._map.entries()},t.prototype["@@iterator"]=function(){return this.keys()},t.prototype[u]=function(){return this.keys()},t}():Set,o=new(t||"function"!=typeof WeakMap?function(){var i=16,e=c.create(),n=r();function t(){this._key=r()}return t.prototype.has=function(t){t=o(t,!1);return void 0!==t&&c.has(t,this._key)},t.prototype.get=function(t){t=o(t,!1);return void 0!==t?c.get(t,this._key):void 0},t.prototype.set=function(t,e){return o(t,!0)[this._key]=e,this},t.prototype.delete=function(t){t=o(t,!1);return void 0!==t&&delete t[this._key]},t.prototype.clear=function(){this._key=r()},t;function r(){for(var t;t="@@WeakMap@@"+function(){for(var t=function(t){return"function"!=typeof Uint8Array?a(new Array(t),t):"undefined"!=typeof crypto?crypto.getRandomValues(new Uint8Array(t)):"undefined"!=typeof msCrypto?msCrypto.getRandomValues(new Uint8Array(t)):a(new Uint8Array(t),t)}(i),e=(t[6]=79&t[6]|64,t[8]=191&t[8]|128,""),n=0;n<i;++n){var r=t[n];4!==n&&6!==n&&8!==n||(e+="-"),r<16&&(e+="0"),e+=r.toString(16).toLowerCase()}return e}(),c.has(e,t););return e[t]=!0,t}function o(t,e){if(!s.call(t,n)){if(!e)return;Object.defineProperty(t,n,{value:c.create()})}return t[n]}function a(t,e){for(var n=0;n<e;++n)t[n]=255*Math.random()|0;return t}}():WeakMap),e("decorate",function(t,e,n,r){{if(m(n)){if(E(t)&&k(e))return function(t,e){for(var n=t.length-1;0<=n;--n){var r=(0,t[n])(e);if(!m(r)&&!v(r)){if(!k(r))throw new TypeError;e=r}}return e}(t,e)}else if(E(t)&&b(e)&&(b(r)||m(r)||v(r)))return v(r)&&(r=void 0),n=w(n),function(t,e,n,r){for(var i=t.length-1;0<=i;--i){var o=(0,t[i])(e,n,r);if(!m(o)&&!v(o)){if(!b(o))throw new TypeError;r=o}}return r}(t,e,n,r);throw new TypeError}}),e("metadata",function(n,r){return function(t,e){if(!b(t))throw new TypeError;if(!m(e)&&!function(t){switch(g(t)){case 3:case 4:return 1;default:return}}(e))throw new TypeError;f(n,r,t,e)}}),e("defineMetadata",function(t,e,n,r){if(!b(n))throw new TypeError;m(r)||(r=w(r));return f(t,e,n,r)}),e("hasMetadata",function(t,e,n){if(!b(e))throw new TypeError;m(n)||(n=w(n));return function t(e,n,r){var i=a(e,n,r);if(i)return!0;i=M(n);if(!v(i))return t(e,i,r);return!1}(t,e,n)}),e("hasOwnMetadata",function(t,e,n){if(!b(e))throw new TypeError;m(n)||(n=w(n));return a(t,e,n)}),e("getMetadata",function(t,e,n){if(!b(e))throw new TypeError;m(n)||(n=w(n));return function t(e,n,r){var i=a(e,n,r);if(i)return p(e,n,r);i=M(n);if(!v(i))return t(e,i,r);return}(t,e,n)}),e("getOwnMetadata",function(t,e,n){if(!b(e))throw new TypeError;m(n)||(n=w(n));return p(t,e,n)}),e("getMetadataKeys",function(t,e){if(!b(t))throw new TypeError;m(e)||(e=w(e));return function t(e,n){var r=y(e,n);e=M(e);if(null===e)return r;e=t(e,n);if(e.length<=0)return r;if(r.length<=0)return e;var i=new h;var o=[];for(var a=0,s=r;a<s.length;a++){var l=s[a];i.has(l)||(i.add(l),o.push(l))}for(var u=0,c=e;u<c.length;u++){l=c[u];i.has(l)||(i.add(l),o.push(l))}return o}(t,e)}),e("getOwnMetadataKeys",function(t,e){if(!b(t))throw new TypeError;m(e)||(e=w(e));return y(t,e)}),e("deleteMetadata",function(t,e,n){if(!b(e))throw new TypeError;m(n)||(n=w(n));var r=d(e,n,!1);return!m(r)&&(!!r.delete(t)&&(0<r.size||((t=o.get(e)).delete(n),0<t.size||o.delete(e)),!0))})}(),(Qr=p=p||{}).defineToken=function(t){return new Qr.DefinedToken(t,1<arguments.length&&void 0!==arguments[1]?arguments[1]:{multiple:!0})},c=oi(function t(e){var n=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},r=this,i=t;if(!(r instanceof i))throw new TypeError("Cannot call a class as a function");this.prototype={},this.name=void 0,this.multiple=void 0,this.symbol=void 0;r=n.multiple,i=void 0!==r&&r;this.name=e,this.symbol=Symbol(this.name),this.multiple=i}),Qr.DefinedToken=c,Qr.isModule=function(t){return!!t&&"object"===ri(t)&&"id"in t},(l=c=Qr.Lifecycle||(Qr.Lifecycle={})).singleton="singleton",l.transient="transient",Qr.ClassOptionSymbol=Symbol("SyringeClassOptionSymbol"),Qr.DefaultOption={lifecycle:c.transient},(ei=ti=ti||{}).toArray=function(t){return Array.isArray(t)?t:void 0===t?[]:[t]},ei.isClass=function(t){return!!(t&&"function"==typeof t&&"prototype"in t)},ei.isDefinedToken=function(t){return!!(t&&"object"===ri(t)&&"symbol"in t&&"multiple"in t)},ei.isInjectOption=function(t){return!!(t&&"object"===ri(t)&&"token"in t)},ei.isNamedToken=function(t){return!!(t&&"object"===ri(t)&&"token"in t&&"named"in t)},ei.isMultipleEnabled=function(t){return ei.isDefinedToken(t)&&t.multiple};ie=new Ct.Container;function pi(e,t){var n,r=Object.keys(e);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(e),t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)),r}function fi(r){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?pi(Object(i),!0).forEach(function(t){var e,n;e=r,n=i[t=t],t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(i)):pi(Object(i)).forEach(function(t){Object.defineProperty(r,t,Object.getOwnPropertyDescriptor(i,t))})}return r}function yi(t){var e=0<arguments.length&&void 0!==t?t:{},n=Ct.injectable();return function(t){Reflect.defineMetadata(p.ClassOptionSymbol,fi(fi({},e),{},{target:t}),t),n(t)}}function f(t){return yi(fi(fi({},0<arguments.length&&void 0!==t?t:{}),{},{lifecycle:p.Lifecycle.singleton}))}function y(t){return Ct.inject(di(t))}var gi=Symbol("SyringeOptionSymbol");function mi(e,t){var n,r=Object.keys(e);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(e),t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)),r}function vi(r){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?mi(Object(i),!0).forEach(function(t){var e,n;e=r,n=i[t=t],t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(i)):mi(Object(i)).forEach(function(t){Object.defineProperty(r,t,Object.getOwnPropertyDescriptor(i,t))})}return r}function bi(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var xi=function(){function u(t,e,n){if(!(this instanceof u))throw new TypeError("Cannot call a class as a function");this.token=void 0,this.rawToken=void 0,this.named=void 0,this.generalToken=void 0,this.option=void 0,this.register=void 0,this.mutiple=void 0,this.register=t,this.token=e,this.option=n,this.rawToken=ti.isNamedToken(e)?e.token:e,this.named=ti.isNamedToken(e)?e.named:void 0,this.mutiple=!!this.named||ti.isMultipleEnabled(this.rawToken),this.generalToken=this.rawToken}var t,e,n;return t=u,n=[{key:"resolveTarget",value:function(t,e){var n,r,i,o=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{};try{try{var a=Reflect.getMetadata(gi,e);a&&u.resolveOption(t,a)}catch(t){}ti.isClass(e)&&(o.useClass?((n=ti.toArray(o.useClass)).unshift(e),o.useClass=n):o.useClass=[e]);try{r=Reflect.getMetadata(p.ClassOptionSymbol,e)}catch(t){}(r=vi(vi({},r||{}),o)).token?((i=ti.toArray(r.token)).unshift(e),r.token=i):r.token=[e],u.resolveOption(t,r)}catch(t){}}},{key:"resolveOption",value:function(e,t){t=vi(vi({},u.globalConfig),t),n=ti.toArray(t.token),r=ti.toArray(t.useClass),i=ti.toArray(t.useDynamic),o=ti.toArray(t.useFactory),a=ti.toArray(t.contrib),s=t.lifecycle||p.Lifecycle.transient,n={token:n,useClass:r,lifecycle:0<a.length?p.Lifecycle.singleton:s,contrib:a,useDynamic:i,useFactory:o},"useValue"in t&&(n.useValue=t.useValue);var n,r,i,o,a,s,l=n;(0!==l.useClass.length||0!==l.useDynamic.length||0!==l.useFactory.length||"useValue"in l)&&l.token.forEach(function(t){new u(e,t,vi({},l)).resolve()})}}],(e=[{key:"resolve",value:function(){var t,e=this,n=this.register;(t=n)&&"object"===ai(t)&&"bind"in t&&"unbind"in t&&"rebind"in t&&"isBound"in t&&(this.mutiple?this.resolveMutilple(n):(this.resolveMono(n),!this.named&&0<this.option.contrib.length&&this.option.contrib.forEach(function(t){(ti.isMultipleEnabled(t)?ui:ci)(t,n).toService(e.generalToken)})))}},{key:"resolveMono",value:function(t){var e,n,r;return"useValue"in this.option?ci(this.generalToken,t).toConstantValue(this.option.useValue):0<this.option.useDynamic.length?(e=this.option.useDynamic[this.option.useDynamic.length-1],si(ci(this.generalToken,t).toDynamicValue(function(t){t=Di.getContainer(t.container);return e({container:t})}),this.option)):0<this.option.useFactory.length?(n=this.option.useFactory[this.option.useFactory.length-1],ci(this.generalToken,t).toFactory(function(t){t=Di.getContainer(t.container);return n({container:t})})):0<this.option.useClass.length?(r=this.option.useClass[this.option.useClass.length-1],si(ci(this.generalToken,t).to(r),this.option)):void 0}},{key:"resolveMutilple",value:function(n){var r=this,t=this.option.useClass.map(function(t){return si(ui(r.generalToken,n).to(t),r.option)}),e=this.option.useDynamic.map(function(e){return si(ui(r.generalToken,n).toDynamicValue(function(t){t=Di.getContainer(t.container);return e({container:t})}),r.option)}),i=this.option.useFactory.map(function(e){return ui(r.generalToken,n).toFactory(function(t){t=Di.getContainer(t.container);return e({container:t})})}),o="useValue"in this.option?ui(this.generalToken,n).toConstantValue(this.option.useValue):void 0;this.named&&(t.forEach(function(t){return r.named&&li(t,r.named)}),e.forEach(function(t){return r.named&&li(t,r.named)}),i.forEach(function(t){return r.named&&li(t,r.named)}),o&&li(o,this.named))}}])&&bi(t.prototype,e),n&&bi(t,n),Object.defineProperty(t,"prototype",{writable:!1}),u}(),wi=(xi.globalConfig=p.DefaultOption,p.defineToken("ContributionProvider"));function Ei(t){return function(t){if(Array.isArray(t))return _i(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){var n;if(t)return"string"==typeof t?_i(t,e):"Map"===(n="Object"===(n=Object.prototype.toString.call(t).slice(8,-1))&&t.constructor?t.constructor.name:n)||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?_i(t,e):void 0}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _i(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function ki(e,t){var n,r=Object.keys(e);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(e),t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)),r}function Ti(r){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?ki(Object(i),!0).forEach(function(t){var e,n;e=r,n=i[t=t],t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(i)):ki(Object(i)).forEach(function(t){Object.defineProperty(r,t,Object.getOwnPropertyDescriptor(i,t))})}return r}function Mi(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var Si=function(){function r(t,e,n){if(!(this instanceof r))throw new TypeError("Cannot call a class as a function");this.option={recursive:!1,cache:!0},this.services=void 0,this.serviceIdentifier=void 0,this.container=void 0,this.container=e,this.serviceIdentifier=t,n&&(this.option=Ti(Ti({},this.option),n))}var t,e,n;return t=r,(e=[{key:"setServices",value:function(t){for(var e,n=[],r=this.container;r;)r.isBound(this.serviceIdentifier)&&(e=r.getAll(this.serviceIdentifier),n.push.apply(n,Ei(e))),r=t?r.parent:void 0;return n}},{key:"getContributions",value:function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},t=Ti(Ti({},this.option),t),e=t.cache,t=t.recursive;return e&&void 0!==this.services||(this.services=this.setServices(!!t)),this.services}}])&&Mi(t.prototype,e),n&&Mi(t,n),Object.defineProperty(t,"prototype",{writable:!1}),r}();function Oi(t,e,n){t({token:{token:wi,named:e},useDynamic:function(t){return new Si(e,t.container,n)},lifecycle:p.Lifecycle.singleton})}function Pi(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var Ai=function(){function e(t){var a=this;if(!(this instanceof e))throw new TypeError("Cannot call a class as a function");this.id=void 0,this.inversifyModule=void 0,this.baseRegistry=void 0,this.optionCollection=void 0,this.inversifyRegister=function(t,e,n,r){function i(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};ti.isInjectOption(t)?xi.resolveOption(o,t):xi.resolveTarget(o,t,e)}var o={bind:t,unbind:e,isBound:n,rebind:r};a.baseRegistry&&a.baseRegistry(i),a.optionCollection&&a.optionCollection.forEach(function(t){return i(t)})},this.baseRegistry=t,this.inversifyModule=new Ct.ContainerModule(this.inversifyRegister),this.id=this.inversifyModule.id}var t,n,r;return t=e,(n=[{key:"options",get:function(){return this.optionCollection||(this.optionCollection=[]),this.optionCollection}},{key:"register",value:function(){for(var e=this,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return n.forEach(function(t){return e.options.push(t)}),this}},{key:"contribution",value:function(){for(var r=this,t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return e.forEach(function(t){return r.options.push({token:{token:wi,named:e=t},useDynamic:function(t){return new Si(e,t.container,n)},lifecycle:p.Lifecycle.singleton});var e,n}),this}}])&&Pi(t.prototype,n),r&&Pi(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();function Ni(t){return t&&"inversifyModule"in t}function Ci(t){return new Ai(t)}function Li(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Ii(r){return function(t,e,n){Ct.named(hi(r))(t,e,n),y(wi)(t,e,n)}}var ji,Ri=new Map,Di=function(){function n(t){if(!(this instanceof n))throw new TypeError("Cannot call a class as a function");this.loadedModules=[],this.container=void 0,this.inversify=!0,this.parent=void 0,this.container=t||new Ct.Container,n.setContainer(this.container,this)}var t,e,r;return t=n,r=[{key:"setContainer",value:function(t,e){return Ri.set(t.id,e)}},{key:"getContainer",value:function(t){var e=Ri.get(t.id);return e||(e=new n(t),n.setContainer(t,e),e)}},{key:"config",value:function(t){xi.globalConfig=t}}],(e=[{key:"load",value:function(t,e){var n=this;return e||!this.loadedModules.includes(t.id)?(Ni(t)&&this.container.load(t.inversifyModule),this.loadedModules.push(t.id),{dispose:function(){n.unload(t)}}):(console.warn("Unsupported module."),{dispose:function(){}})}},{key:"unload",value:function(e){Ni(e)&&(this.container.unload(e.inversifyModule),this.loadedModules=this.loadedModules.filter(function(t){return t!==e.id}))}},{key:"remove",value:function(t){return this.container.unbind(di(t))}},{key:"get",value:function(t){return this.container.get(di(t))}},{key:"getNamed",value:function(t,e){return this.container.getNamed(di(t),hi(e))}},{key:"getAll",value:function(t){return this.container.getAll(di(t))}},{key:"getAllNamed",value:function(t,e){return this.container.getAllNamed(di(t),hi(e))}},{key:"isBound",value:function(t){return this.container.isBound(di(t))}},{key:"isBoundNamed",value:function(t,e){return this.container.isBoundNamed(di(t),hi(e))}},{key:"createChild",value:function(){var t=new n(this.container.createChild());return t.parent=this,t}},{key:"register",value:function(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};ti.isInjectOption(t)?xi.resolveOption(this.container,t):xi.resolveTarget(this.container,t,e)}}])&&Li(t.prototype,e),r&&Li(t,r),Object.defineProperty(t,"prototype",{writable:!1}),n}(),Bi=new Di(ie);Bi.register.bind(Bi);function Fi(t,e,n,r,i){!function t(e,n,r,i,o){for(;r<i;){600<i-r&&(a=i-r+1,c=n-r+1,l=Math.log(a),s=.5*Math.exp(2*l/3),l=.5*Math.sqrt(l*s*(a-s)/a)*(c-a/2<0?-1:1),u=Math.max(r,Math.floor(n-c*s/a+l)),c=Math.min(i,Math.floor(n+(a-c)*s/a+l)),t(e,n,u,c,o));var a,s,l,u,c,h=e[n],d=r,p=i;for(zi(e,r,n),0<o(e[i],h)&&zi(e,r,i);d<p;){for(zi(e,d,p),d++,p--;o(e[d],h)<0;)d++;for(;0<o(e[p],h);)p--}0===o(e[r],h)?zi(e,r,p):zi(e,++p,i),p<=n&&(r=p+1),n<=p&&(i=p-1)}}(t,e,n||0,r||t.length-1,i||Vi)}function zi(t,e,n){var r=t[e];t[e]=t[n],t[n]=r}function Vi(t,e){return t<e?-1:e<t?1:0}(Nt=ji=ji||{}).Provider=wi,Nt.register=Oi;class Gi{constructor(t=9){this._maxEntries=Math.max(4,t),this._minEntries=Math.max(2,Math.ceil(.4*this._maxEntries)),this.clear()}all(){return this._all(this.data,[])}search(e){let n=this.data;const r=[];if($i(e,n)){const a=this.toBBox,s=[];for(;n;){for(let t=0;t<n.children.length;t++){var i=n.children[t],o=n.leaf?a(i):i;$i(e,o)&&(n.leaf?r.push(i):Ki(e,o)?this._all(i,r):s.push(i))}n=s.pop()}}return r}collides(e){let n=this.data;if($i(e,n)){const o=[];for(;n;){for(let t=0;t<n.children.length;t++){var r=n.children[t],i=n.leaf?this.toBBox(r):r;if($i(e,i)){if(n.leaf||Ki(e,i))return!0;o.push(r)}}n=o.pop()}}return!1}load(e){if(e&&e.length)if(e.length<this._minEntries)for(let t=0;t<e.length;t++)this.insert(e[t]);else{let t=this._build(e.slice(),0,e.length-1,0);var n;this.data.children.length?this.data.height===t.height?this._splitRoot(this.data,t):(this.data.height<t.height&&(n=this.data,this.data=t,t=n),this._insert(t,this.data.height-t.height-1,!0)):this.data=t}return this}insert(t){return t&&this._insert(t,this.data.height-1),this}clear(){return this.data=Ji([]),this}remove(i,o){if(i){let t=this.data;var a=this.toBBox(i);const l=[],u=[];let e,n,r;for(;t||l.length;){if(t||(t=l.pop(),n=l[l.length-1],e=u.pop(),r=!0),t.leaf){var s=function(e,n,r){if(!r)return n.indexOf(e);for(let t=0;t<n.length;t++)if(r(e,n[t]))return t;return-1}(i,t.children,o);if(-1!==s)return t.children.splice(s,1),l.push(t),this._condense(l),this}r||t.leaf||!Ki(t,a)?n?(e++,t=n.children[e],r=!1):t=null:(l.push(t),u.push(e),e=0,t=(n=t).children[0])}}return this}toBBox(t){return t}compareMinX(t,e){return t.minX-e.minX}compareMinY(t,e){return t.minY-e.minY}toJSON(){return this.data}fromJSON(t){return this.data=t,this}_all(t,e){const n=[];for(;t;)(t.leaf?e:n).push(...t.children),t=n.pop();return e}_build(n,t,r,i){var e=r-t+1;let o=this._maxEntries,a;if(e<=o)Hi(a=Ji(n.slice(t,r+1)),this.toBBox);else{i||(i=Math.ceil(Math.log(e)/Math.log(o)),o=Math.ceil(e/Math.pow(o,i-1))),(a=Ji([])).leaf=!1,a.height=i;var s=Math.ceil(e/o),l=s*Math.ceil(Math.sqrt(o));Qi(n,t,r,l,this.compareMinX);for(let e=t;e<=r;e+=l){var u=Math.min(e+l-1,r);Qi(n,e,u,s,this.compareMinY);for(let t=e;t<=u;t+=s){var c=Math.min(t+s-1,u);a.children.push(this._build(n,t,c,i-1))}}Hi(a,this.toBBox)}return a}_chooseSubtree(i,o,t,a){for(;;){if(a.push(o),o.leaf||a.length-1===t)break;let e=1/0,n=1/0,r;for(let t=0;t<o.children.length;t++){var s=o.children[t],l=Xi(s),u=(c=i,u=s,(Math.max(u.maxX,c.maxX)-Math.min(u.minX,c.minX))*(Math.max(u.maxY,c.maxY)-Math.min(u.minY,c.minY))-l);u<n?(n=u,e=l<e?l:e,r=s):u===n&&l<e&&(e=l,r=s)}o=r||o.children[0]}var c,u;return o}_insert(t,e,n){var n=n?t:this.toBBox(t),r=[];const i=this._chooseSubtree(n,this.data,e,r);for(i.children.push(t),Yi(i,n);0<=e&&r[e].children.length>this._maxEntries;)this._split(r,e),e--;this._adjustParentBBoxes(n,r,e)}_split(t,e){const n=t[e];var r=n.children.length,i=this._minEntries,i=(this._chooseSplitAxis(n,i,r),this._chooseSplitIndex(n,i,r));const o=Ji(n.children.splice(i,n.children.length-i));o.height=n.height,o.leaf=n.leaf,Hi(n,this.toBBox),Hi(o,this.toBBox),e?t[e-1].children.push(o):this._splitRoot(n,o)}_splitRoot(t,e){this.data=Ji([t,e]),this.data.height=t.height+1,this.data.leaf=!1,Hi(this.data,this.toBBox)}_chooseSplitIndex(e,n,r){let i,o=1/0,a=1/0;for(let t=n;t<=r-n;t++){var s=Wi(e,0,t,this.toBBox),l=Wi(e,t,r,this.toBBox),u=(h=s,u=l,c=p=d=void 0,d=Math.max(h.minX,u.minX),p=Math.max(h.minY,u.minY),c=Math.min(h.maxX,u.maxX),h=Math.min(h.maxY,u.maxY),Math.max(0,c-d)*Math.max(0,h-p)),c=Xi(s)+Xi(l);u<o?(o=u,i=t,a=c<a?c:a):u===o&&c<a&&(a=c,i=t)}var h,u,d,p,c;return i||r-n}_chooseSplitAxis(t,e,n){var r=t.leaf?this.compareMinX:Ui,i=t.leaf?this.compareMinY:qi;this._allDistMargin(t,e,n,r)<this._allDistMargin(t,e,n,i)&&t.children.sort(r)}_allDistMargin(e,n,r,t){e.children.sort(t);const i=this.toBBox;var o=Wi(e,0,n,i),a=Wi(e,r-n,r,i);let s=Zi(o)+Zi(a);for(let t=n;t<r-n;t++){var l=e.children[t];Yi(o,e.leaf?i(l):l),s+=Zi(o)}for(let t=r-n-1;t>=n;t--){var u=e.children[t];Yi(a,e.leaf?i(u):u),s+=Zi(a)}return s}_adjustParentBBoxes(e,n,r){for(let t=r;0<=t;t--)Yi(n[t],e)}_condense(n){for(let t=n.length-1,e;0<=t;t--)0===n[t].children.length?0<t?(e=n[t-1].children).splice(e.indexOf(n[t]),1):this.clear():Hi(n[t],this.toBBox)}}function Hi(t,e){Wi(t,0,t.children.length,e,t)}function Wi(e,n,r,i,o){(o=o||Ji(null)).minX=1/0,o.minY=1/0,o.maxX=-1/0,o.maxY=-1/0;for(let t=n;t<r;t++){var a=e.children[t];Yi(o,e.leaf?i(a):a)}return o}function Yi(t,e){t.minX=Math.min(t.minX,e.minX),t.minY=Math.min(t.minY,e.minY),t.maxX=Math.max(t.maxX,e.maxX),t.maxY=Math.max(t.maxY,e.maxY)}function Ui(t,e){return t.minX-e.minX}function qi(t,e){return t.minY-e.minY}function Xi(t){return(t.maxX-t.minX)*(t.maxY-t.minY)}function Zi(t){return t.maxX-t.minX+(t.maxY-t.minY)}function Ki(t,e){return t.minX<=e.minX&&t.minY<=e.minY&&e.maxX<=t.maxX&&e.maxY<=t.maxY}function $i(t,e){return e.minX<=t.maxX&&e.minY<=t.maxY&&e.maxX>=t.minX&&e.maxY>=t.minY}function Ji(t){return{children:t,height:1,leaf:!0,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0}}function Qi(t,e,n,r,i){const o=[e,n];for(;o.length;){var a;(n=o.pop())-(e=o.pop())<=r||(Fi(t,a=e+Math.ceil((n-e)/r/2)*r,e,n,i),o.push(e,a,a,n))}}var to=1e-6,eo="undefined"!=typeof Float32Array?Float32Array:Array;function no(){var t=new eo(9);return eo!=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}Math.hypot||(Math.hypot=function(){for(var t=0,e=arguments.length;e--;)t+=arguments[e]*arguments[e];return Math.sqrt(t)});var ro=function(t,e,n){var r=e[0],i=e[1],o=e[2],a=e[3],s=e[4],l=e[5],u=e[6],c=e[7],e=e[8],h=n[0],d=n[1],p=n[2],f=n[3],y=n[4],g=n[5],m=n[6],v=n[7],n=n[8];return t[0]=h*r+d*a+p*u,t[1]=h*i+d*s+p*c,t[2]=h*o+d*l+p*e,t[3]=f*r+y*a+g*u,t[4]=f*i+y*s+g*c,t[5]=f*o+y*l+g*e,t[6]=m*r+v*a+n*u,t[7]=m*i+v*s+n*c,t[8]=m*o+v*l+n*e,t};function io(){var t=new eo(16);return eo!=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}function oo(t){var e=new eo(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}function ao(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}function so(t,e,n,r,i,o,a,s,l,u,c,h,d,p,f,y,g){return t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=o,t[5]=a,t[6]=s,t[7]=l,t[8]=u,t[9]=c,t[10]=h,t[11]=d,t[12]=p,t[13]=f,t[14]=y,t[15]=g,t}function lo(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 uo(t,e){var n=e[0],r=e[1],i=e[2],o=e[3],a=e[4],s=e[5],l=e[6],u=e[7],c=e[8],h=e[9],d=e[10],p=e[11],f=e[12],y=e[13],g=e[14],e=e[15],m=n*s-r*a,v=n*l-i*a,b=n*u-o*a,x=r*l-i*s,w=r*u-o*s,E=i*u-o*l,_=c*y-h*f,k=c*g-d*f,T=c*e-p*f,M=h*g-d*y,S=h*e-p*y,O=d*e-p*g,P=m*O-v*S+b*M+x*T-w*k+E*_;return P?(t[0]=(s*O-l*S+u*M)*(P=1/P),t[1]=(i*S-r*O-o*M)*P,t[2]=(y*E-g*w+e*x)*P,t[3]=(d*w-h*E-p*x)*P,t[4]=(l*T-a*O-u*k)*P,t[5]=(n*O-i*T+o*k)*P,t[6]=(g*b-f*E-e*v)*P,t[7]=(c*E-d*b+p*v)*P,t[8]=(a*S-s*T+u*_)*P,t[9]=(r*T-n*S-o*_)*P,t[10]=(f*w-y*b+e*m)*P,t[11]=(h*b-c*w-p*m)*P,t[12]=(s*k-a*M-l*_)*P,t[13]=(n*M-r*k+i*_)*P,t[14]=(y*v-f*x-g*m)*P,t[15]=(c*x-h*v+d*m)*P,t):null}function co(t,e,n){var r=e[0],i=e[1],o=e[2],a=e[3],s=e[4],l=e[5],u=e[6],c=e[7],h=e[8],d=e[9],p=e[10],f=e[11],y=e[12],g=e[13],m=e[14],e=e[15],v=n[0],b=n[1],x=n[2],w=n[3];return t[0]=v*r+b*s+x*h+w*y,t[1]=v*i+b*l+x*d+w*g,t[2]=v*o+b*u+x*p+w*m,t[3]=v*a+b*c+x*f+w*e,v=n[4],b=n[5],x=n[6],w=n[7],t[4]=v*r+b*s+x*h+w*y,t[5]=v*i+b*l+x*d+w*g,t[6]=v*o+b*u+x*p+w*m,t[7]=v*a+b*c+x*f+w*e,v=n[8],b=n[9],x=n[10],w=n[11],t[8]=v*r+b*s+x*h+w*y,t[9]=v*i+b*l+x*d+w*g,t[10]=v*o+b*u+x*p+w*m,t[11]=v*a+b*c+x*f+w*e,v=n[12],b=n[13],x=n[14],w=n[15],t[12]=v*r+b*s+x*h+w*y,t[13]=v*i+b*l+x*d+w*g,t[14]=v*o+b*u+x*p+w*m,t[15]=v*a+b*c+x*f+w*e,t}function ho(t,e,n){var r,i,o,a,s,l,u,c,h,d,p,f,y=n[0],g=n[1],n=n[2];return e===t?(t[12]=e[0]*y+e[4]*g+e[8]*n+e[12],t[13]=e[1]*y+e[5]*g+e[9]*n+e[13],t[14]=e[2]*y+e[6]*g+e[10]*n+e[14],t[15]=e[3]*y+e[7]*g+e[11]*n+e[15]):(r=e[0],i=e[1],o=e[2],a=e[3],s=e[4],l=e[5],u=e[6],c=e[7],h=e[8],d=e[9],p=e[10],f=e[11],t[0]=r,t[1]=i,t[2]=o,t[3]=a,t[4]=s,t[5]=l,t[6]=u,t[7]=c,t[8]=h,t[9]=d,t[10]=p,t[11]=f,t[12]=r*y+s*g+h*n+e[12],t[13]=i*y+l*g+d*n+e[13],t[14]=o*y+u*g+p*n+e[14],t[15]=a*y+c*g+f*n+e[15]),t}function po(t,e,n){var r=n[0],i=n[1],n=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]*n,t[9]=e[9]*n,t[10]=e[10]*n,t[11]=e[11]*n,t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15],t}function fo(t,e,n){var r=Math.sin(n),n=Math.cos(n),i=e[4],o=e[5],a=e[6],s=e[7],l=e[8],u=e[9],c=e[10],h=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]=i*n+l*r,t[5]=o*n+u*r,t[6]=a*n+c*r,t[7]=s*n+h*r,t[8]=l*n-i*r,t[9]=u*n-o*r,t[10]=c*n-a*r,t[11]=h*n-s*r,t}function yo(t,e,n){var r=Math.sin(n),n=Math.cos(n),i=e[0],o=e[1],a=e[2],s=e[3],l=e[8],u=e[9],c=e[10],h=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]=i*n-l*r,t[1]=o*n-u*r,t[2]=a*n-c*r,t[3]=s*n-h*r,t[8]=i*r+l*n,t[9]=o*r+u*n,t[10]=a*r+c*n,t[11]=s*r+h*n,t}function go(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}function mo(t,e,n){var r=e[0],i=e[1],o=e[2],e=e[3],a=r+r,s=i+i,l=o+o,u=r*a,c=r*s,r=r*l,h=i*s,i=i*l,o=o*l,a=e*a,s=e*s,e=e*l;return t[0]=1-(h+o),t[1]=c+e,t[2]=r-s,t[3]=0,t[4]=c-e,t[5]=1-(u+o),t[6]=i+a,t[7]=0,t[8]=r+s,t[9]=i-a,t[10]=1-(u+h),t[11]=0,t[12]=n[0],t[13]=n[1],t[14]=n[2],t[15]=1,t}function vo(t,e){return t[0]=e[12],t[1]=e[13],t[2]=e[14],t}function bo(t,e){var n=e[0],r=e[1],i=e[2],o=e[4],a=e[5],s=e[6],l=e[8],u=e[9],e=e[10];return t[0]=Math.hypot(n,r,i),t[1]=Math.hypot(o,a,s),t[2]=Math.hypot(l,u,e),t}function xo(t,e){var n=new eo(3),r=(bo(n,e),1/n[0]),i=1/n[1],n=1/n[2],o=e[0]*r,a=e[1]*i,s=e[2]*n,l=e[4]*r,u=e[5]*i,c=e[6]*n,r=e[8]*r,i=e[9]*i,e=e[10]*n,n=o+u+e,h=0;return 0<n?(h=2*Math.sqrt(1+n),t[3]=.25*h,t[0]=(c-i)/h,t[1]=(r-s)/h,t[2]=(a-l)/h):u<o&&e<o?(h=2*Math.sqrt(1+o-u-e),t[3]=(c-i)/h,t[0]=.25*h,t[1]=(a+l)/h,t[2]=(r+s)/h):e<u?(h=2*Math.sqrt(1+u-o-e),t[3]=(r-s)/h,t[0]=(a+l)/h,t[1]=.25*h,t[2]=(c+i)/h):(h=2*Math.sqrt(1+e-o-u),t[3]=(a-l)/h,t[0]=(r+s)/h,t[1]=(c+i)/h,t[2]=.25*h),t}function wo(t,e,n,r,i){var o=e[0],a=e[1],s=e[2],e=e[3],l=o+o,u=a+a,c=s+s,h=o*l,d=o*u,o=o*c,p=a*u,a=a*c,s=s*c,l=e*l,u=e*u,e=e*c,c=r[0],f=r[1],r=r[2],y=i[0],g=i[1],i=i[2],m=(1-(p+s))*c,v=(d+e)*c,c=(o-u)*c,d=(d-e)*f,e=(1-(h+s))*f,s=(a+l)*f,f=(o+u)*r,o=(a-l)*r,u=(1-(h+p))*r;return t[0]=m,t[1]=v,t[2]=c,t[3]=0,t[4]=d,t[5]=e,t[6]=s,t[7]=0,t[8]=f,t[9]=o,t[10]=u,t[11]=0,t[12]=n[0]+y-(m*y+d*g+f*i),t[13]=n[1]+g-(v*y+e*g+o*i),t[14]=n[2]+i-(c*y+s*g+u*i),t[15]=1,t}function Eo(t,e){var n=e[0],r=e[1],i=e[2],e=e[3],o=n+n,a=r+r,s=i+i,n=n*o,l=r*o,r=r*a,u=i*o,c=i*a,i=i*s,o=e*o,a=e*a,e=e*s;return t[0]=1-r-i,t[1]=l+e,t[2]=u-a,t[3]=0,t[4]=l-e,t[5]=1-n-i,t[6]=c+o,t[7]=0,t[8]=u+a,t[9]=c-o,t[10]=1-n-r,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}function _o(t,e,n,r,i){e=1/Math.tan(e/2);return t[0]=e/n,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=e,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?(t[10]=(i+r)*(n=1/(r-i)),t[14]=2*i*r*n):(t[10]=-1,t[14]=-2*r),t}function ko(t,e,n,r,i,o,a){var s=1/(e-n),l=1/(r-i),u=1/(o-a);return t[0]=-2*s,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=-2*l,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=2*u,t[11]=0,t[12]=(e+n)*s,t[13]=(i+r)*l,t[14]=(a+o)*u,t[15]=1,t}var To=ko;function Mo(t,e,n,r){var i,o,a,s,l=e[0],u=e[1],e=e[2],c=r[0],h=r[1],r=r[2],d=n[0],p=n[1],n=n[2];return Math.abs(l-d)<to&&Math.abs(u-p)<to&&Math.abs(e-n)<to?lo(t):(n=e-n,i=h*(n*=s=1/Math.hypot(d=l-d,p=u-p,n))-r*(p*=s),r=r*(d*=s)-c*n,c=c*p-h*d,(s=Math.hypot(i,r,c))?(i*=s=1/s,r*=s,c*=s):c=r=i=0,h=p*c-n*r,o=n*i-d*c,a=d*r-p*i,(s=Math.hypot(h,o,a))?(h*=s=1/s,o*=s,a*=s):a=o=h=0,t[0]=i,t[1]=h,t[2]=d,t[3]=0,t[4]=r,t[5]=o,t[6]=p,t[7]=0,t[8]=c,t[9]=a,t[10]=n,t[11]=0,t[12]=-(i*l+r*u+c*e),t[13]=-(h*l+o*u+a*e),t[14]=-(d*l+p*u+n*e),t[15]=1,t)}function So(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}var Oo=Object.freeze({__proto__:null,create:io,clone:oo,copy:ao,fromValues:function(t,e,n,r,i,o,a,s,l,u,c,h,d,p,f,y){var g=new eo(16);return g[0]=t,g[1]=e,g[2]=n,g[3]=r,g[4]=i,g[5]=o,g[6]=a,g[7]=s,g[8]=l,g[9]=u,g[10]=c,g[11]=h,g[12]=d,g[13]=p,g[14]=f,g[15]=y,g},set:so,identity:lo,transpose:function(t,e){var n,r,i,o,a,s;return t===e?(n=e[1],r=e[2],i=e[3],o=e[6],a=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]=o,t[11]=e[14],t[12]=i,t[13]=a,t[14]=s):(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]),t},invert:uo,adjoint:function(t,e){var n=e[0],r=e[1],i=e[2],o=e[3],a=e[4],s=e[5],l=e[6],u=e[7],c=e[8],h=e[9],d=e[10],p=e[11],f=e[12],y=e[13],g=e[14],e=e[15];return t[0]=s*(d*e-p*g)-h*(l*e-u*g)+y*(l*p-u*d),t[1]=-(r*(d*e-p*g)-h*(i*e-o*g)+y*(i*p-o*d)),t[2]=r*(l*e-u*g)-s*(i*e-o*g)+y*(i*u-o*l),t[3]=-(r*(l*p-u*d)-s*(i*p-o*d)+h*(i*u-o*l)),t[4]=-(a*(d*e-p*g)-c*(l*e-u*g)+f*(l*p-u*d)),t[5]=n*(d*e-p*g)-c*(i*e-o*g)+f*(i*p-o*d),t[6]=-(n*(l*e-u*g)-a*(i*e-o*g)+f*(i*u-o*l)),t[7]=n*(l*p-u*d)-a*(i*p-o*d)+c*(i*u-o*l),t[8]=a*(h*e-p*y)-c*(s*e-u*y)+f*(s*p-u*h),t[9]=-(n*(h*e-p*y)-c*(r*e-o*y)+f*(r*p-o*h)),t[10]=n*(s*e-u*y)-a*(r*e-o*y)+f*(r*u-o*s),t[11]=-(n*(s*p-u*h)-a*(r*p-o*h)+c*(r*u-o*s)),t[12]=-(a*(h*g-d*y)-c*(s*g-l*y)+f*(s*d-l*h)),t[13]=n*(h*g-d*y)-c*(r*g-i*y)+f*(r*d-i*h),t[14]=-(n*(s*g-l*y)-a*(r*g-i*y)+f*(r*l-i*s)),t[15]=n*(s*d-l*h)-a*(r*d-i*h)+c*(r*l-i*s),t},determinant:function(t){var e=t[0],n=t[1],r=t[2],i=t[3],o=t[4],a=t[5],s=t[6],l=t[7],u=t[8],c=t[9],h=t[10],d=t[11],p=t[12],f=t[13],y=t[14],t=t[15];return(e*a-n*o)*(h*t-d*y)-(e*s-r*o)*(c*t-d*f)+(e*l-i*o)*(c*y-h*f)+(n*s-r*a)*(u*t-d*p)-(n*l-i*a)*(u*y-h*p)+(r*l-i*s)*(u*f-c*p)},multiply:co,translate:ho,scale:po,rotate:function(t,e,n,r){var i,o,a,s,l,u,c,h,d,p,f,y,g,m,v,b,x,w,E,_,k=r[0],T=r[1],r=r[2],M=Math.hypot(k,T,r);return M<to?null:(k*=M=1/M,T*=M,r*=M,M=Math.sin(n),n=Math.cos(n),o=e[0],a=e[1],s=e[2],l=e[3],u=e[4],c=e[5],h=e[6],d=e[7],p=e[8],f=e[9],y=e[10],g=e[11],v=k*T*(i=1-n)-r*M,b=T*T*i+n,x=r*T*i+k*M,w=k*r*i+T*M,E=T*r*i-k*M,_=r*r*i+n,t[0]=o*(n=k*k*i+n)+u*(m=T*k*i+r*M)+p*(r=r*k*i-T*M),t[1]=a*n+c*m+f*r,t[2]=s*n+h*m+y*r,t[3]=l*n+d*m+g*r,t[4]=o*v+u*b+p*x,t[5]=a*v+c*b+f*x,t[6]=s*v+h*b+y*x,t[7]=l*v+d*b+g*x,t[8]=o*w+u*E+p*_,t[9]=a*w+c*E+f*_,t[10]=s*w+h*E+y*_,t[11]=l*w+d*E+g*_,e!==t&&(t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]),t)},rotateX:fo,rotateY:yo,rotateZ:function(t,e,n){var r=Math.sin(n),n=Math.cos(n),i=e[0],o=e[1],a=e[2],s=e[3],l=e[4],u=e[5],c=e[6],h=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]=i*n+l*r,t[1]=o*n+u*r,t[2]=a*n+c*r,t[3]=s*n+h*r,t[4]=l*n-i*r,t[5]=u*n-o*r,t[6]=c*n-a*r,t[7]=h*n-s*r,t},fromTranslation:go,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},fromRotation:function(t,e,n){var r,i=n[0],o=n[1],n=n[2],a=Math.hypot(i,o,n);return a<to?null:(i*=a=1/a,o*=a,n*=a,a=Math.sin(e),e=Math.cos(e),t[0]=i*i*(r=1-e)+e,t[1]=o*i*r+n*a,t[2]=n*i*r-o*a,t[3]=0,t[4]=i*o*r-n*a,t[5]=o*o*r+e,t[6]=n*o*r+i*a,t[7]=0,t[8]=i*n*r+o*a,t[9]=o*n*r-i*a,t[10]=n*n*r+e,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t)},fromXRotation:function(t,e){var n=Math.sin(e),e=Math.cos(e);return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=e,t[6]=n,t[7]=0,t[8]=0,t[9]=-n,t[10]=e,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t},fromYRotation:function(t,e){var n=Math.sin(e),e=Math.cos(e);return t[0]=e,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]=e,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t},fromZRotation:function(t,e){var n=Math.sin(e),e=Math.cos(e);return t[0]=e,t[1]=n,t[2]=0,t[3]=0,t[4]=-n,t[5]=e,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},fromRotationTranslation:mo,fromQuat2:function(t,e){var n=new eo(3),r=-e[0],i=-e[1],o=-e[2],a=e[3],s=e[4],l=e[5],u=e[6],c=e[7],h=r*r+i*i+o*o+a*a;return 0<h?(n[0]=2*(s*a+c*r+l*o-u*i)/h,n[1]=2*(l*a+c*i+u*r-s*o)/h,n[2]=2*(u*a+c*o+s*i-l*r)/h):(n[0]=2*(s*a+c*r+l*o-u*i),n[1]=2*(l*a+c*i+u*r-s*o),n[2]=2*(u*a+c*o+s*i-l*r)),mo(t,e,n),t},getTranslation:vo,getScaling:bo,getRotation:xo,fromRotationTranslationScale:function(t,e,n,r){var i=e[0],o=e[1],a=e[2],e=e[3],s=i*(c=i+i),l=i*(h=o+o),i=i*(d=a+a),u=o*h,o=o*d,a=a*d,c=e*c,h=e*h,e=e*d,d=r[0],p=r[1],r=r[2];return t[0]=(1-(u+a))*d,t[1]=(l+e)*d,t[2]=(i-h)*d,t[3]=0,t[4]=(l-e)*p,t[5]=(1-(s+a))*p,t[6]=(o+c)*p,t[7]=0,t[8]=(i+h)*r,t[9]=(o-c)*r,t[10]=(1-(s+u))*r,t[11]=0,t[12]=n[0],t[13]=n[1],t[14]=n[2],t[15]=1,t},fromRotationTranslationScaleOrigin:wo,fromQuat:Eo,frustum:function(t,e,n,r,i,o,a){var s=1/(n-e),l=1/(i-r),u=1/(o-a);return t[0]=2*o*s,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=2*o*l,t[6]=0,t[7]=0,t[8]=(n+e)*s,t[9]=(i+r)*l,t[10]=(a+o)*u,t[11]=-1,t[12]=0,t[13]=0,t[14]=a*o*2*u,t[15]=0,t},perspectiveNO:_o,perspective:_o,perspectiveZO:function(t,e,n,r,i){return e=1/Math.tan(e/2),t[0]=e/n,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=e,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?(t[10]=i*(n=1/(r-i)),t[14]=i*r*n):(t[10]=-1,t[14]=-r),t},perspectiveFromFieldOfView:function(t,e,n,r){var i=Math.tan(e.upDegrees*Math.PI/180),o=Math.tan(e.downDegrees*Math.PI/180),a=Math.tan(e.leftDegrees*Math.PI/180),e=Math.tan(e.rightDegrees*Math.PI/180),s=2/(a+e),l=2/(i+o);return t[0]=s,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=l,t[6]=0,t[7]=0,t[8]=-(a-e)*s*.5,t[9]=(i-o)*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},orthoNO:ko,ortho:To,orthoZO:function(t,e,n,r,i,o,a){var s=1/(e-n),l=1/(r-i),a=1/(o-a);return t[0]=-2*s,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=-2*l,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=a,t[11]=0,t[12]=(e+n)*s,t[13]=(i+r)*l,t[14]=o*a,t[15]=1,t},lookAt:Mo,targetTo:function(t,e,n,r){var i=e[0],o=e[1],e=e[2],a=r[0],s=r[1],r=r[2],l=i-n[0],u=o-n[1],n=e-n[2],c=l*l+u*u+n*n,h=(0<c&&(l*=c=1/Math.sqrt(c),u*=c,n*=c),s*n-r*u);return 0<(c=h*h+(r=r*l-a*n)*r+(a=a*u-s*l)*a)&&(h*=c=1/Math.sqrt(c),r*=c,a*=c),t[0]=h,t[1]=r,t[2]=a,t[3]=0,t[4]=u*a-n*r,t[5]=n*h-l*a,t[6]=l*r-u*h,t[7]=0,t[8]=l,t[9]=u,t[10]=n,t[11]=0,t[12]=i,t[13]=o,t[14]=e,t[15]=1,t},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]+")"},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])},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},subtract:So,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},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},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]},equals:function(t,e){var n=t[0],r=t[1],i=t[2],o=t[3],a=t[4],s=t[5],l=t[6],u=t[7],c=t[8],h=t[9],d=t[10],p=t[11],f=t[12],y=t[13],g=t[14],t=t[15],m=e[0],v=e[1],b=e[2],x=e[3],w=e[4],E=e[5],_=e[6],k=e[7],T=e[8],M=e[9],S=e[10],O=e[11],P=e[12],A=e[13],N=e[14],e=e[15];return Math.abs(n-m)<=to*Math.max(1,Math.abs(n),Math.abs(m))&&Math.abs(r-v)<=to*Math.max(1,Math.abs(r),Math.abs(v))&&Math.abs(i-b)<=to*Math.max(1,Math.abs(i),Math.abs(b))&&Math.abs(o-x)<=to*Math.max(1,Math.abs(o),Math.abs(x))&&Math.abs(a-w)<=to*Math.max(1,Math.abs(a),Math.abs(w))&&Math.abs(s-E)<=to*Math.max(1,Math.abs(s),Math.abs(E))&&Math.abs(l-_)<=to*Math.max(1,Math.abs(l),Math.abs(_))&&Math.abs(u-k)<=to*Math.max(1,Math.abs(u),Math.abs(k))&&Math.abs(c-T)<=to*Math.max(1,Math.abs(c),Math.abs(T))&&Math.abs(h-M)<=to*Math.max(1,Math.abs(h),Math.abs(M))&&Math.abs(d-S)<=to*Math.max(1,Math.abs(d),Math.abs(S))&&Math.abs(p-O)<=to*Math.max(1,Math.abs(p),Math.abs(O))&&Math.abs(f-P)<=to*Math.max(1,Math.abs(f),Math.abs(P))&&Math.abs(y-A)<=to*Math.max(1,Math.abs(y),Math.abs(A))&&Math.abs(g-N)<=to*Math.max(1,Math.abs(g),Math.abs(N))&&Math.abs(t-e)<=to*Math.max(1,Math.abs(t),Math.abs(e))},mul:co,sub:So});function m(){var t=new eo(3);return eo!=Float32Array&&(t[0]=0,t[1]=0,t[2]=0),t}function Po(t){var e=new eo(3);return e[0]=t[0],e[1]=t[1],e[2]=t[2],e}function Ao(t){var e=t[0],n=t[1],t=t[2];return Math.hypot(e,n,t)}function _(t,e,n){var r=new eo(3);return r[0]=t,r[1]=e,r[2]=n,r}function No(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t}function Co(t,e,n,r){return t[0]=e,t[1]=n,t[2]=r,t}function Lo(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t[2]=e[2]+n[2],t}function Io(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t[2]=e[2]-n[2],t}function jo(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t[2]=e[2]*n,t}function Ro(t,e){var n=e[0],r=e[1],i=e[2],n=n*n+r*r+i*i;0<n&&(n=1/Math.sqrt(n)),t[0]=e[0]*n,t[1]=e[1]*n,t[2]=e[2]*n}function Do(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]}function Bo(t,e,n,r){var i=e[0],o=e[1],e=e[2];t[0]=i+r*(n[0]-i),t[1]=o+r*(n[1]-o),t[2]=e+r*(n[2]-e)}function Fo(t,e,n){var r=e[0],i=e[1],e=e[2],o=n[3]*r+n[7]*i+n[11]*e+n[15];return t[0]=(n[0]*r+n[4]*i+n[8]*e+n[12])/(o=o||1),t[1]=(n[1]*r+n[5]*i+n[9]*e+n[13])/o,t[2]=(n[2]*r+n[6]*i+n[10]*e+n[14])/o,t}function zo(t,e,n){var r=e[0],i=e[1],e=e[2];t[0]=r*n[0]+i*n[3]+e*n[6],t[1]=r*n[1]+i*n[4]+e*n[7],t[2]=r*n[2]+i*n[5]+e*n[8]}function Vo(t,e){var n=t[0],r=t[1],t=t[2],i=e[0],o=e[1],e=e[2];return Math.abs(n-i)<=to*Math.max(1,Math.abs(n),Math.abs(i))&&Math.abs(r-o)<=to*Math.max(1,Math.abs(r),Math.abs(o))&&Math.abs(t-e)<=to*Math.max(1,Math.abs(t),Math.abs(e))}var Go=Io,Ho=function(t,e){var n=e[0]-t[0],r=e[1]-t[1],e=e[2]-t[2];return Math.hypot(n,r,e)},Wo=Ao;function Yo(){var t=new eo(4);return eo!=Float32Array&&(t[0]=0,t[1]=0,t[2]=0,t[3]=0),t}function Uo(t,e,n){var r=e[0],i=e[1],o=e[2],e=e[3];return t[0]=n[0]*r+n[4]*i+n[8]*o+n[12]*e,t[1]=n[1]*r+n[5]*i+n[9]*o+n[13]*e,t[2]=n[2]*r+n[6]*i+n[10]*o+n[14]*e,t[3]=n[3]*r+n[7]*i+n[11]*o+n[15]*e,t}function qo(){var t=new eo(4);return eo!=Float32Array&&(t[0]=0,t[1]=0,t[2]=0),t[3]=1,t}function Xo(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 Zo(t,e,n){var r=e[0],i=e[1],o=e[2],e=e[3],a=n[0],s=n[1],l=n[2],n=n[3];return t[0]=r*n+e*a+i*l-o*s,t[1]=i*n+e*s+o*a-r*l,t[2]=o*n+e*l+r*s-i*a,t[3]=e*n-r*a-i*s-o*l,t}function Ko(t,e){var n=e[0],r=e[1],i=e[2],e=e[3],o=n*n+r*r+i*i+e*e,o=o?1/o:0;return t[0]=-n*o,t[1]=-r*o,t[2]=-i*o,t[3]=e*o,t}function $o(t,e,n,r){var i=.5*Math.PI/180,i=(e*=i,n*=i,r*=i,Math.sin(e)),e=Math.cos(e),o=Math.sin(n),n=Math.cos(n),a=Math.sin(r),r=Math.cos(r);t[0]=i*n*r-e*o*a,t[1]=e*o*r+i*n*a,t[2]=e*n*a-i*o*r,t[3]=e*n*r+i*o*a}m(),Yo();var Jo=function(t,e,n,r){var i=new eo(4);return i[0]=t,i[1]=e,i[2]=n,i[3]=r,i},Qo=function(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t},ta=Zo,ea=function(t,e){var n=e[0],r=e[1],i=e[2],e=e[3],o=n*n+r*r+i*i+e*e;return 0<o&&(o=1/Math.sqrt(o)),t[0]=n*o,t[1]=r*o,t[2]=i*o,t[3]=e*o,t};function na(t,e){var n=new eo(2);return n[0]=t,n[1]=e,n}function ra(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t}function ia(t,e,n){return t[0]=Math.min(e[0],n[0]),t[1]=Math.min(e[1],n[1]),t}function oa(t,e,n){return t[0]=Math.max(e[0],n[0]),t[1]=Math.max(e[1],n[1]),t}function aa(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t}function sa(t,e){var n=e[0]-t[0],e=e[1]-t[1];return Math.hypot(n,e)}function la(t,e){var n=e[0],r=e[1],n=n*n+r*r;return 0<n&&(n=1/Math.sqrt(n)),t[0]=e[0]*n,t[1]=e[1]*n,t}m(),_(1,0,0),_(0,1,0),qo(),qo(),no();var ua=function(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t};function ca(t){return t.map(function(t){return Array.isArray(t)?[].concat(t):t})}Lt=new eo(2),eo!=Float32Array&&(Lt[0]=0,Lt[1]=0);var ha={x1:0,y1:0,x2:0,y2:0,x:0,y:0,qx:null,qy:null};var da={a:7,c:6,h:1,l:2,m:2,r:4,q:4,s:4,t:2,v:1,z:0};function pa(t){return Array.isArray(t)&&t.every(function(t){var e=t[0].toLowerCase();return da[e]===t.length-1&&"achlmqstvz".includes(e)})}function fa(t){return pa(t)&&t.every(function(t){t=t[0];return t===t.toUpperCase()})}function ya(t){return fa(t)&&t.every(function(t){t=t[0];return"ACLMQZ".includes(t)})}function ga(t){for(var e=t.pathValue[t.segmentStart],n=e.toLowerCase(),r=t.data;r.length>=da[n]&&("m"===n&&2<r.length?(t.segments.push([e].concat(r.splice(0,2))),n="l",e="m"===e?"l":"L"):t.segments.push([e].concat(r.splice(0,da[n]))),da[n]););}function ma(t){return 48<=t&&t<=57}function va(t){for(var e,n=t.pathValue,r=t.max;t.index<r&&(10===(e=n.charCodeAt(t.index))||13===e||8232===e||8233===e||32===e||9===e||11===e||12===e||160===e||5760<=e&&[5760,6158,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8239,8287,12288,65279].includes(e));)t.index+=1}function ba(t){var e,n,r,i,o,a=t.max,s=t.pathValue,l=t.index,u=s.charCodeAt(l),c=da[s[l].toLowerCase()];if(t.segmentStart=l,function(t){switch(32|t){case 109:case 122:case 108:case 104:case 118:case 99:case 115:case 113:case 116:case 97:return 1;default:return}}(u)){if(t.index+=1,va(t),t.data=[],c)for(;;){for(var h=c;0<h;--h){if(97!=(32|u)||3!==h&&4!==h?function(t){var e,n,r=t.max,i=t.pathValue,o=t.index,a=o,s=!1,l=!1,u=!1;if(r<=a)t.err="[path-util]: Invalid path value at index "+a+', "pathValue" is missing param';else if(ma(n=43!==(n=i.charCodeAt(a))&&45!==n?n:i.charCodeAt(a+=1))||46===n){if(46!==n){if(e=48===n,n=i.charCodeAt(a+=1),e&&a<r&&n&&ma(n))return t.err="[path-util]: Invalid path value at index "+o+', "'+i[o]+'" illegal number';for(;a<r&&ma(i.charCodeAt(a));)a+=1,s=!0;n=i.charCodeAt(a)}if(46===n){for(u=!0,a+=1;ma(i.charCodeAt(a));)a+=1,l=!0;n=i.charCodeAt(a)}if(101===n||69===n){if(u&&!s&&!l)return t.err="[path-util]: Invalid path value at index "+a+', "'+i[a]+'" invalid float exponent';if(43!==(n=i.charCodeAt(a+=1))&&45!==n||(a+=1),!(a<r&&ma(i.charCodeAt(a))))return t.err="[path-util]: Invalid path value at index "+a+', "'+i[a]+'" invalid integer exponent';for(;a<r&&ma(i.charCodeAt(a));)a+=1}t.index=a,t.param=+t.pathValue.slice(o,a)}else t.err="[path-util]: Invalid path value at index "+a+', "'+i[a]+'" is not a number'}(t):(o=i=r=void 0,r=(n=t).index,i=n.pathValue,48===(o=i.charCodeAt(r))?(n.param=0,n.index+=1):49===o?(n.param=1,n.index+=1):n.err='[path-util]: invalid Arc flag "'+i[r]+'", expecting 0 or 1 at index '+r),t.err.length)return;t.data.push(t.param),va(t),t.index<a&&44===s.charCodeAt(t.index)&&(t.index+=1,va(t))}if(t.index>=t.max)break;if(!(48<=(e=s.charCodeAt(t.index))&&e<=57||43===e||45===e||46===e))break}ga(t)}else t.err='[path-util]: Invalid path value "'+s[l]+'" is not a path command'}var xa=function(t){this.pathValue=t,this.segments=[],this.max=t.length,this.index=0,this.param=0,this.segmentStart=0,this.data=[],this.err=""};function wa(t){var a,s,l,u;return fa(t)?ca(t):(t=function(t){if(pa(t))return ca(t);var e=new xa(t);for(va(e);e.index<e.max&&!e.err.length;)ba(e);return e.err||e.segments}(t),u=l=s=a=0,t.map(function(t){var e=t.slice(1).map(Number),t=t[0],n=t.toUpperCase();if("M"===t)return a=e[0],s=e[1],["M",l=a,u=s];if(t!==n)switch(n){case"A":i=[n,e[0],e[1],e[2],e[3],e[4],e[5]+a,e[6]+s];break;case"V":i=[n,e[0]+s];break;case"H":i=[n,e[0]+a];break;default:var r=e.map(function(t,e){return t+(e%2?s:a)}),i=[n].concat(r)}else i=[n].concat(e);var o=i.length;switch(n){case"Z":a=l,s=u;break;case"H":a=i[1];break;case"V":s=i[1];break;default:a=i[o-2],s=i[o-1],"M"===n&&(l=a,u=s)}return i}))}function Ea(t){if(ya(t))return ca(t);for(var e,n,r,i,o,a,s,l=wa(t),u=T({},ha),c=0;c<l.length;c+=1){l[c]=(e=l[c],n=u,s=a=d=o=h=i=r=void 0,r=e[0],i=n.x1,h=n.y1,o=n.x2,d=n.y2,a=e.slice(1).map(Number),s=e,"TQ".includes(r)||(n.qx=null,n.qy=null),"H"===r?s=["L",e[1],h]:"V"===r?s=["L",i,e[1]]:"S"===r?(e=2*h-d,s=["C",n.x1=2*i-o,n.y1=e].concat(a)):"T"===r?(d=2*i-n.qx,o=2*h-n.qy,s=["Q",n.qx=d,n.qy=o].concat(a)):"Q"===r&&(e=a[0],i=a[1],n.qx=e,n.qy=i),s);var h=l[c],d=h.length;u.x1=+h[d-2],u.y1=+h[d-1],u.x2=+h[d-4]||u.x1,u.y2=+h[d-3]||u.y1}return l}function _a(t,e,n){return{x:t*Math.cos(n)-e*Math.sin(n),y:t*Math.sin(n)+e*Math.cos(n)}}function ka(t,e,n){var r=t[0],t=t[1];return[r+(e[0]-r)*n,t+(e[1]-t)*n]}function Ta(t,e){return Math.sqrt((t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1]))}function Ma(t,e,n,r,i){var o=Ta([t,e],[n,r]),a={x:0,y:0};return{length:o,point:a="number"==typeof i?i<=0?{x:t,y:e}:o<=i?{x:n,y:r}:{x:(i=ka([t,e],[n,r],i/o))[0],y:i[1]}:a,min:{x:Math.min(t,n),y:Math.min(e,r)},max:{x:Math.max(t,n),y:Math.max(e,r)}}}function Sa(t,e,n,r){var t=[t,e],e=[n,r],i=ka(t,e,.5),e=ka(e,i,.5),o=ka(i,e,.5),a=ka(e,o,.5),s=ka(o,a,.5),t=Ma(t[0],t[1],i[0],i[1],o[0]).point,i=Ma(s[0],s[1],a[0],a[1],e[0]).point;return[t.x,t.y,i.x,i.y,n,r]}function Oa(t,e){var n,r,i,o,a,s,l=t[0],u=t.slice(1).map(Number),c=u[0],h=u[1],d=e.x1,p=e.y1,f=e.x,y=e.y;switch("TQ".includes(l)||(e.qx=null,e.qy=null),l){case"M":return e.x=c,e.y=h,t;case"A":return s=[d,p].concat(u),["C"].concat(function t(e,n,r,i,o,a,s,l,u,c){var h=120*Math.PI/180,d=Math.PI/180*(+o||0),p=[],f=(c?(x=c[0],w=c[1],v=c[2],b=c[3]):(e=(g=_a(e,n,-d)).x,n=g.y,1<(f=(y=(e-(l=(g=_a(l,u,-d)).x))/2)*y/(r*r)+(g=(n-(u=g.y))/2)*g/(i*i))&&(r*=f=Math.sqrt(f),i*=f),f=r*r,m=i*i,v=(a=(a===s?-1:1)*Math.sqrt(Math.abs((f*m-f*g*g-m*y*y)/(f*g*g+m*y*y))))*r*g/i+(e+l)/2,b=a*-i*y/r+(n+u)/2,x=Math.asin(((n-b)/i*Math.pow(10,9)>>0)/Math.pow(10,9)),w=Math.asin(((u-b)/i*Math.pow(10,9)>>0)/Math.pow(10,9)),x=e<v?Math.PI-x:x,w=l<v?Math.PI-w:w,x<0&&(x=2*Math.PI+x),w<0&&(w=2*Math.PI+w),s&&w<x&&(x-=2*Math.PI),!s&&x<w&&(w-=2*Math.PI)),w-x),y=(Math.abs(f)>h&&(m=w,g=l,a=u,w=x+h*(s&&x<w?1:-1),p=t(l=v+r*Math.cos(w),u=b+i*Math.sin(w),r,i,o,0,s,g,a,[w,m,v,b])),f=w-x,Math.cos(x)),h=Math.sin(x),o=Math.cos(w),s=Math.sin(w),g=Math.tan(f/4),a=4/3*r*g,m=4/3*i*g,v=[e,n],b=[e+a*h,n-m*y],x=[l+a*s,u-m*o],w=[l,u];if(b[0]=2*v[0]-b[0],b[1]=2*v[1]-b[1],c)return b.concat(x,w,p);for(var E=[],_=0,k=(p=b.concat(x,w,p)).length;_<k;_+=1)E[_]=_%2?_a(p[_-1],p[_],d).y:_a(p[_],p[_+1],d).x;return E}(s[0],s[1],s[2],s[3],s[4],s[5],s[6],s[7],s[8],s[9]));case"Q":return e.qx=c,e.qy=h,s=[d,p].concat(u),["C"].concat((n=s[0],r=s[1],i=s[2],o=s[3],a=s[4],s=s[5],[1/3*n+2/3*i,1/3*r+2/3*o,1/3*a+2/3*i,1/3*s+2/3*o,a,s]));case"L":return["C"].concat(Sa(d,p,c,h));case"Z":return d===f&&p===y?["C",d,p,f,y,f,y]:["C"].concat(Sa(d,p,f,y))}return t}function Pa(t,e){var n;if(void 0===e&&(e=!1),ya(n=t)&&n.every(function(t){t=t[0];return"MC".includes(t)}))return n=ca(t),e?[n,[]]:n;for(var r,i=Ea(t),o=T({},ha),a=[],s="",l=i.length,u=[],c=0;c<l;c+=1){i[c]&&(s=i[c][0]),a[c]=s;var h=Oa(i[c],o),d=(i[c]=h,g=y=f=p=d=void 0,i),p=a,f=c;if(7<d[f].length){d[f].shift();for(var y=d[f],g=f;y.length;)p[f]="A",d.splice(g+=1,0,["C"].concat(y.splice(0,6)));d.splice(f,1)}l=i.length,"Z"===s&&u.push(c),r=(h=i[c]).length,o.x1=+h[r-2],o.y1=+h[r-1],o.x2=+h[r-4]||o.x1,o.y2=+h[r-3]||o.y1}return e?[i,u]:i}function Aa(t,e){var n=t.x,t=t.y,r=e.x,e=e.y,i=n*r+t*e,o=Math.sqrt((Math.pow(n,2)+Math.pow(t,2))*(Math.pow(r,2)+Math.pow(e,2)));return(n*e-t*r<0?-1:1)*Math.acos(i/o)}function Na(t,e,n,r,i,R,D,o,a,s,l){var u=l.bbox,B=void 0===u||u,u=l.length,F=void 0===u||u,u=l.sampleSize,c=void 0===u?30:u,h="number"==typeof s,d=t,p=e,f=0,y=[d,p,f],g=[d,p],m={x:0,y:0},v=[{x:d,y:p}];h&&s<=0&&(m={x:d,y:p});for(var b,x,w,E,_,k,T,M,S,O,P,A,N,C,L,I,j=0;j<=c;j+=1)b=t,x=e,w=n,E=r,_=i,k=R,T=D,M=o,S=a,O=j/c,A=I=L=C=N=A=P=void 0,A=Math.abs,N=Math.sin,C=Math.cos,L=Math.sqrt,I=Math.PI,w=A(w),A=A(E),E=I/180*((_%360+360)%360),d=(P=b===M&&x===S?{x:b,y:x}:0===w||0===A?Ma(b,x,M,S,O).point:(_=(b-M)/2,P=(x-S)/2,_={x:C(E)*_+N(E)*P,y:-N(E)*_+C(E)*P},1<(P=Math.pow(_.x,2)/Math.pow(w,2)+Math.pow(_.y,2)/Math.pow(A,2))&&(w*=L(P),A*=L(P)),P=(Math.pow(w,2)*Math.pow(A,2)-Math.pow(w,2)*Math.pow(_.y,2)-Math.pow(A,2)*Math.pow(_.x,2))/(Math.pow(w,2)*Math.pow(_.y,2)+Math.pow(A,2)*Math.pow(_.x,2)),k=(k!==T?1:-1)*L(P=P<0?0:P),L=w*_.y/A*k,P=-A*_.x/w*k,k=C(E)*L-N(E)*P+(b+M)/2,b=N(E)*L+C(E)*P+(x+S)/2,x=Aa({x:1,y:0},M={x:(_.x-L)/w,y:(_.y-P)/A}),S=Aa(M,{x:(-_.x-L)/w,y:(-_.y-P)/A}),!T&&0<S?S-=2*I:T&&S<0&&(S+=2*I),M=x+(S%=2*I)*O,L=w*C(M),_=A*N(M),{x:C(E)*L-N(E)*_+k,y:N(E)*L+C(E)*_+b})).x,p=P.y,B&&v.push({x:d,y:p}),F&&(f+=Ta(g,[d,p])),g=[d,p],h&&s<=f&&s>y[2]&&(T=(f-s)/(f-y[2]),m={x:g[0]*(1-T)+y[0]*T,y:g[1]*(1-T)+y[1]*T}),y=[d,p,f];return{length:f,point:m=h&&f<=s?{x:o,y:a}:m,min:{x:Math.min.apply(null,v.map(function(t){return t.x})),y:Math.min.apply(null,v.map(function(t){return t.y}))},max:{x:Math.max.apply(null,v.map(function(t){return t.x})),y:Math.max.apply(null,v.map(function(t){return t.y}))}}}function Ca(t,e,n,r,i,o,a,s,l,u){var c=u.bbox,h=void 0===c||c,c=u.length,d=void 0===c||c,c=u.sampleSize,p=void 0===c?10:c,f="number"==typeof l,y=t,g=e,m=0,v=[y,g,m],b=[y,g],x={x:0,y:0},w=[{x:y,y:g}];f&&l<=0&&(x={x:y,y:g});for(var E,_,k,T,M,S,O,P,A,N,C=0;C<=p;C+=1)E=t,_=e,k=n,T=r,M=i,S=o,O=a,P=s,N=void 0,N=1-(A=C/p),y=(E={x:Math.pow(N,3)*E+3*Math.pow(N,2)*A*k+3*N*Math.pow(A,2)*M+Math.pow(A,3)*O,y:Math.pow(N,3)*_+3*Math.pow(N,2)*A*T+3*N*Math.pow(A,2)*S+Math.pow(A,3)*P}).x,g=E.y,h&&w.push({x:y,y:g}),d&&(m+=Ta(b,[y,g])),b=[y,g],f&&l<=m&&l>v[2]&&(k=(m-l)/(m-v[2]),x={x:b[0]*(1-k)+v[0]*k,y:b[1]*(1-k)+v[1]*k}),v=[y,g,m];return{length:m,point:x=f&&m<=l?{x:a,y:s}:x,min:{x:Math.min.apply(null,w.map(function(t){return t.x})),y:Math.min.apply(null,w.map(function(t){return t.y}))},max:{x:Math.max.apply(null,w.map(function(t){return t.x})),y:Math.max.apply(null,w.map(function(t){return t.y}))}}}function La(t,e,n,r,i,o,a,s){var l=s.bbox,u=void 0===l||l,l=s.length,c=void 0===l||l,l=s.sampleSize,h=void 0===l?10:l,d="number"==typeof a,p=t,f=e,y=0,g=[p,f,y],m=[p,f],v={x:0,y:0},b=[{x:p,y:f}];d&&a<=0&&(v={x:p,y:f});for(var x,w,E,_,k,T,M,S,O=0;O<=h;O+=1)x=t,w=e,E=n,_=r,k=i,T=o,S=void 0,S=1-(M=O/h),p=(x={x:Math.pow(S,2)*x+2*S*M*E+Math.pow(M,2)*k,y:Math.pow(S,2)*w+2*S*M*_+Math.pow(M,2)*T}).x,f=x.y,u&&b.push({x:p,y:f}),c&&(y+=Ta(m,[p,f])),m=[p,f],d&&a<=y&&a>g[2]&&(E=(y-a)/(y-g[2]),v={x:m[0]*(1-E)+g[0]*E,y:m[1]*(1-E)+g[1]*E}),g=[p,f,y];return{length:y,point:v=d&&y<=a?{x:i,y:o}:v,min:{x:Math.min.apply(null,b.map(function(t){return t.x})),y:Math.min.apply(null,b.map(function(t){return t.y}))},max:{x:Math.max.apply(null,b.map(function(t){return t.x})),y:Math.max.apply(null,b.map(function(t){return t.y}))}}}function Ia(t,e,n){for(var r,i,o,a=Ea(t),s="number"==typeof e,l=[],u=0,c=0,h=0,d=0,p=[],f=[],y=0,g={x:0,y:0},m=g,v=g,b=g,x=0,w=0,E=a.length;w<E;w+=1)l=(r="M"===(i=(o=a[w])[0]))?l:[u,c].concat(o.slice(1)),r?(m=g={x:h=o[1],y:d=o[2]},y=0,s&&e<.001&&(b=g)):"L"===i?(y=(r=Ma(l[0],l[1],l[2],l[3],(e||0)-x)).length,g=r.min,m=r.max,v=r.point):"A"===i?(y=(r=Na(l[0],l[1],l[2],l[3],l[4],l[5],l[6],l[7],l[8],(e||0)-x,n||{})).length,g=r.min,m=r.max,v=r.point):"C"===i?(y=(r=Ca(l[0],l[1],l[2],l[3],l[4],l[5],l[6],l[7],(e||0)-x,n||{})).length,g=r.min,m=r.max,v=r.point):"Q"===i?(y=(r=La(l[0],l[1],l[2],l[3],l[4],l[5],(e||0)-x,n||{})).length,g=r.min,m=r.max,v=r.point):"Z"===i&&(y=(r=Ma((l=[u,c,h,d])[0],l[1],l[2],l[3],(e||0)-x)).length,g=r.min,m=r.max,v=r.point),s&&x<e&&e<=x+y&&(b=v),f.push(m),p.push(g),x+=y,u=(r="Z"!==i?o.slice(-2):[h,d])[0],c=r[1];return{length:x,point:b=s&&x<=e?{x:u,y:c}:b,min:{x:Math.min.apply(null,p.map(function(t){return t.x})),y:Math.min.apply(null,p.map(function(t){return t.y}))},max:{x:Math.max.apply(null,f.map(function(t){return t.x})),y:Math.max.apply(null,f.map(function(t){return t.y}))}}}function ja(t){return(u=l=s=0)<=Pa(t).map(function(t){var e,n,r,i,o,a;return"M"===t[0]?(s=t[1],l=t[2],0):(a=t.slice(1),e=a[0],n=a[1],r=a[2],i=a[3],o=a[4],a=a[5],u=3*((a-l)*(e+r)-(o-s)*(n+i)+n*(s-r)-e*(l-i)+a*(r+s/3)-o*(i+l/3))/20,n=t.slice(-2),s=n[0],l=n[1],u)}).reduce(function(t,e){return t+e},0);var s,l,u}function Ra(t){return t.map(function(t,e,n){var r,i,o,a,n=e&&n[e-1].slice(-2).concat(t.slice(1)),s=e?Ca(n[0],n[1],n[2],n[3],n[4],n[5],n[6],n[7],n[8],{bbox:!1}).length:0,n=e?s?(void 0===r&&(r=.5),n=(e=n).slice(0,2),i=e.slice(2,4),o=e.slice(4,6),e=e.slice(6,8),n=ka(n,i,r),i=ka(i,o,r),o=ka(o,e,r),a=ka(n,i,r),i=ka(i,o,r),r=ka(a,i,r),[["C"].concat(n,a,r),["C"].concat(i,o,e)]):[t,t]:[t];return{s:t,ss:n,l:s}})}function Da(o,a){var s;if(Fa(o,"Function"))return(s=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n,r=a?a.apply(this,t):t[0],i=s.cache;return i.has(r)?i.get(r):(n=o.apply(this,t),i.set(r,n),n)}).cache=new Map,s;throw new TypeError("Expected a function")}var Ba={}.toString,Fa=function(t,e){return Ba.call(t)==="[object "+e+"]"};function za(t,e,n){(t.prototype=e.prototype=n).constructor=t}function Va(t,e){var n,r=Object.create(t.prototype);for(n in e)r[n]=e[n];return r}function Ga(){}var Ht="\\s*([+-]?\\d+)\\s*",h="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",Kt="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Ha=/^#([0-9a-f]{3,8})$/,Wa=new RegExp("^rgb\\("+[Ht,Ht,Ht]+"\\)$"),Ya=new RegExp("^rgb\\("+[Kt,Kt,Kt]+"\\)$"),Ua=new RegExp("^rgba\\("+[Ht,Ht,Ht,h]+"\\)$"),qa=new RegExp("^rgba\\("+[Kt,Kt,Kt,h]+"\\)$"),Xa=new RegExp("^hsl\\("+[h,Kt,Kt]+"\\)$"),Za=new RegExp("^hsla\\("+[h,Kt,Kt,h]+"\\)$"),Ka={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 $a(){return this.rgb().formatHex()}function Ja(){return this.rgb().formatRgb()}function Qa(t){var e,n;return t=(t+"").trim().toLowerCase(),(e=Ha.exec(t))?(n=e[1].length,e=parseInt(e[1],16),6===n?ts(e):3===n?new ns(e>>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):8===n?es(e>>24&255,e>>16&255,e>>8&255,(255&e)/255):4===n?es(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=Wa.exec(t))?new ns(e[1],e[2],e[3],1):(e=Ya.exec(t))?new ns(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=Ua.exec(t))?es(e[1],e[2],e[3],e[4]):(e=qa.exec(t))?es(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=Xa.exec(t))?as(e[1],e[2]/100,e[3]/100,1):(e=Za.exec(t))?as(e[1],e[2]/100,e[3]/100,e[4]):Ka.hasOwnProperty(t)?ts(Ka[t]):"transparent"===t?new ns(NaN,NaN,NaN,0):null}function ts(t){return new ns(t>>16&255,t>>8&255,255&t,1)}function es(t,e,n,r){return new ns(t=r<=0?e=n=NaN:t,e,n,r)}function ns(t,e,n,r){this.r=+t,this.g=+e,this.b=+n,this.opacity=+r}function rs(){return"#"+os(this.r)+os(this.g)+os(this.b)}function is(){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 os(t){return((t=Math.max(0,Math.min(255,Math.round(t)||0)))<16?"0":"")+t.toString(16)}function as(t,e,n,r){return r<=0?t=e=n=NaN:n<=0||1<=n?t=e=NaN:e<=0&&(t=NaN),new ls(t,e,n,r)}function ss(t){var e,n,r,i,o,a,s,l;return t instanceof ls?new ls(t.h,t.s,t.l,t.opacity):(t=t instanceof Ga?t:Qa(t))?t instanceof ls?t:(e=(t=t.rgb()).r/255,n=t.g/255,r=t.b/255,i=Math.min(e,n,r),a=NaN,l=((o=Math.max(e,n,r))+i)/2,(s=o-i)?(a=e===o?(n-r)/s+6*(n<r):n===o?(r-e)/s+2:(e-n)/s+4,s/=l<.5?o+i:2-o-i,a*=60):s=0<l&&l<1?0:a,new ls(a,s,l,t.opacity)):new ls}function ls(t,e,n,r){this.h=+t,this.s=+e,this.l=+n,this.opacity=+r}function us(t,e,n){return 255*(t<60?e+(n-e)*t/60:t<180?n:t<240?e+(n-e)*(240-t)/60:e)}function cs(t,e,n,r){t-=n,n=e-r;return Math.sqrt(t*t+n*n)}function hs(t,e){var n=Math.min.apply(Math,t),r=Math.min.apply(Math,e);return{x:n,y:r,width:Math.max.apply(Math,t)-n,height:Math.max.apply(Math,e)-r}}za(Ga,Qa,{copy:function(t){return Object.assign(new this.constructor,this,t)},displayable:function(){return this.rgb().displayable()},hex:$a,formatHex:$a,formatHsl:function(){return ss(this).formatHsl()},formatRgb:Ja,toString:Ja}),za(ns,function(t,e,n,r){return 1===arguments.length?(i=(i=t)instanceof Ga?i:Qa(i))?new ns((i=i.rgb()).r,i.g,i.b,i.opacity):new ns:new ns(t,e,n,null==r?1:r);var i},Va(Ga,{brighter:function(t){return t=null==t?1/.7:Math.pow(1/.7,t),new ns(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function(t){return t=null==t?.7:Math.pow(.7,t),new ns(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:rs,formatHex:rs,formatRgb:is,toString:is})),za(ls,function(t,e,n,r){return 1===arguments.length?ss(t):new ls(t,e,n,null==r?1:r)},Va(Ga,{brighter:function(t){return t=null==t?1/.7:Math.pow(1/.7,t),new ls(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?.7:Math.pow(.7,t),new ls(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,e=n+(n<.5?n:1-n)*e,n=2*n-e;return new ns(us(240<=t?t-240:120+t,n,e),us(t,n,e),us(t<120?240+t:t-120,n,e),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+")")}}));var ds={box:function(t,e,n,r){return hs([t,n],[e,r])},length:cs,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,i,o){var a=(n-t)*(i-t)+(r-e)*(o-e);return a<0?cs(t,e,i,o):(n-t)*(n-t)+(r-e)*(r-e)<a?cs(n,r,i,o):this.pointToLine(t,e,n,r,i,o)},pointToLine:function(t,e,n,r,i,o){var a,n=[n-t,r-e];return(r=n)[0]===(a=[0,0])[0]&&r[1]===a[1]?Math.sqrt((i-t)*(i-t)+(o-e)*(o-e)):(la(r=[-n[1],n[0]],r),a=[i-t,o-e],Math.abs(a[0]*r[0]+a[1]*r[1]))},tangentAngle:function(t,e,n,r){return Math.atan2(r-e,n-t)}};function ps(t){for(var e=0,n=[],r=0;r<t.length-1;r++){var i=t[r],o=t[r+1],a=cs(i[0],i[1],o[0],o[1]);n.push({from:i,to:o,length:a}),e+=a}return{segments:n,totalLength:e}}var fs={box:function(t){for(var e=[],n=[],r=0;r<t.length;r++){var i=t[r];e.push(i[0]),n.push(i[1])}return hs(e,n)},length:function(t){var e=t;if(e.length<2)return 0;for(var n=0,r=0;r<e.length-1;r++){var i=e[r],o=e[r+1];n+=cs(i[0],i[1],o[0],o[1])}return n},pointAt:function(t,e){var n=e;if(1<n||n<0||t.length<2)return null;var e=ps(t),r=e.segments,i=e.totalLength;if(0===i)return{x:t[0][0],y:t[0][1]};for(var o=0,a=null,s=0;s<r.length;s++){var l=r[s],u=l.from,c=l.to,l=l.length/i;if(o<=n&&n<=o+l){a=ds.pointAt(u[0],u[1],c[0],c[1],(n-o)/l);break}o+=l}return a},pointDistance:function(t,e,n){for(var r=t,i=e,o=n,a=1/0,s=0;s<r.length-1;s++){var l=r[s],u=r[s+1],l=ds.pointDistance(l[0],l[1],u[0],u[1],i,o);l<a&&(a=l)}return a},tangentAngle:function(t,e){var n=e;if(1<n||n<0||t.length<2)return 0;for(var r=(t=ps(t)).segments,i=t.totalLength,o=0,a=0,s=0;s<r.length;s++){var l=r[s],u=l.from,c=l.to,l=l.length/i;if(o<=n&&n<=o+l){a=Math.atan2(c[1]-u[1],c[0]-u[0]);break}o+=l}return a}};var ys=function(t,e){var n=e[15];if(0===n)return!1;for(var r=1/n,i=0;i<16;i++)t[i]=e[i]*r;return!0},zt=function(){var t=new Float32Array(16);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},gs=function(t){var e=new Float32Array(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},ms=function(t){var e=t[0],n=t[1],r=t[2],i=t[3],o=t[4],a=t[5],s=t[6],l=t[7],u=t[8],c=t[9],h=t[10],d=t[11],p=t[12],f=t[13],y=t[14],t=t[15];return(e*a-n*o)*(h*t-d*y)-(e*s-r*o)*(c*t-d*f)+(e*l-i*o)*(c*y-h*f)+(n*s-r*a)*(u*t-d*p)-(n*l-i*a)*(u*y-h*p)+(r*l-i*s)*(u*f-c*p)},vs=function(t,e){var n=e[0],r=e[1],i=e[2],o=e[3],a=e[4],s=e[5],l=e[6],u=e[7],c=e[8],h=e[9],d=e[10],p=e[11],f=e[12],y=e[13],g=e[14],e=e[15],m=n*s-r*a,v=n*l-i*a,b=n*u-o*a,x=r*l-i*s,w=r*u-o*s,E=i*u-o*l,_=c*y-h*f,k=c*g-d*f,T=c*e-p*f,M=h*g-d*y,S=h*e-p*y,O=d*e-p*g,P=m*O-v*S+b*M+x*T-w*k+E*_;return P?(P=1/P,t[0]=(s*O-l*S+u*M)*P,t[1]=(i*S-r*O-o*M)*P,t[2]=(y*E-g*w+e*x)*P,t[3]=(d*w-h*E-p*x)*P,t[4]=(l*T-a*O-u*k)*P,t[5]=(n*O-i*T+o*k)*P,t[6]=(g*b-f*E-e*v)*P,t[7]=(c*E-d*b+p*v)*P,t[8]=(a*S-s*T+u*_)*P,t[9]=(r*T-n*S-o*_)*P,t[10]=(f*w-y*b+e*m)*P,t[11]=(h*b-c*w-p*m)*P,t[12]=(s*k-a*M-l*_)*P,t[13]=(n*M-r*k+i*_)*P,t[14]=(y*v-f*x-g*m)*P,t[15]=(c*x-h*v+d*m)*P,t):null},bs=function(t,e){{var n,r,i,o,a,s;t===e?(n=e[1],r=e[2],i=e[3],o=e[6],a=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]=o,t[11]=e[14],t[12]=i,t[13]=a,t[14]=s):(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},xs={length:function(t){var e=t[0],n=t[1],t=t[2];return Math.sqrt(e*e+n*n+t*t)},normalize:function(t,e){var n=e[0],r=e[1],i=e[2],n=n*n+r*r+i*i;0<n&&(n=1/Math.sqrt(n),t[0]=e[0]*n,t[1]=e[1]*n,t[2]=e[2]*n);return t},dot:function(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]},cross:function(t,e,n){var r=e[0],i=e[1],e=e[2],o=n[0],a=n[1],n=n[2];return t[0]=i*n-e*a,t[1]=e*o-r*n,t[2]=r*a-i*o,t}},ws=zt(),Es=zt(),_s=[0,0,0,0],g=[[0,0,0],[0,0,0],[0,0,0]],ks=[0,0,0];function Ts(t,e,n,r,i){t[0]=e[0]*r+n[0]*i,t[1]=e[1]*r+n[1]*i,t[2]=e[2]*r+n[2]*i}var Ms,Ss,Os={exports:{}};function Ps(){}function As(t,e,n){this.fn=t,this.context=e,this.once=n||!1}function Ns(t,e,n,r,i){if("function"!=typeof n)throw new TypeError("The listener must be a function");n=new As(n,r||t,i),r=Ss?Ss+e:e;return t._events[r]?t._events[r].fn?t._events[r]=[t._events[r],n]:t._events[r].push(n):(t._events[r]=n,t._eventsCount++),t}function Cs(t,e){0==--t._eventsCount?t._events=new Ps:delete t._events[e]}function Ls(){this._events=new Ps,this._eventsCount=0}jt=Os,Ms=Object.prototype.hasOwnProperty,Ss="~",Object.create&&(Ps.prototype=Object.create(null),(new Ps).__proto__||(Ss=!1)),Ls.prototype.eventNames=function(){var t,e,n=[];if(0===this._eventsCount)return n;for(e in t=this._events)Ms.call(t,e)&&n.push(Ss?e.slice(1):e);return Object.getOwnPropertySymbols?n.concat(Object.getOwnPropertySymbols(t)):n},Ls.prototype.listeners=function(t){var t=Ss?Ss+t:t,e=this._events[t];if(!e)return[];if(e.fn)return[e.fn];for(var n=0,r=e.length,i=new Array(r);n<r;n++)i[n]=e[n].fn;return i},Ls.prototype.listenerCount=function(t){t=Ss?Ss+t:t,t=this._events[t];return t?t.fn?1:t.length:0},Ls.prototype.emit=function(t,e,n,r,i,o){var a=Ss?Ss+t:t;if(!this._events[a])return!1;var s,l=this._events[a],u=arguments.length;if(l.fn){switch(l.once&&this.removeListener(t,l.fn,void 0,!0),u){case 1:return l.fn.call(l.context),!0;case 2:return l.fn.call(l.context,e),!0;case 3:return l.fn.call(l.context,e,n),!0;case 4:return l.fn.call(l.context,e,n,r),!0;case 5:return l.fn.call(l.context,e,n,r,i),!0;case 6:return l.fn.call(l.context,e,n,r,i,o),!0}for(d=1,s=new Array(u-1);d<u;d++)s[d-1]=arguments[d];l.fn.apply(l.context,s)}else for(var c,h=l.length,d=0;d<h;d++)switch(l[d].once&&this.removeListener(t,l[d].fn,void 0,!0),u){case 1:l[d].fn.call(l[d].context);break;case 2:l[d].fn.call(l[d].context,e);break;case 3:l[d].fn.call(l[d].context,e,n);break;case 4:l[d].fn.call(l[d].context,e,n,r);break;default:if(!s)for(c=1,s=new Array(u-1);c<u;c++)s[c-1]=arguments[c];l[d].fn.apply(l[d].context,s)}return!0},Ls.prototype.on=function(t,e,n){return Ns(this,t,e,n,!1)},Ls.prototype.once=function(t,e,n){return Ns(this,t,e,n,!0)},Ls.prototype.removeListener=function(t,e,n,r){t=Ss?Ss+t:t;if(this._events[t])if(e){var i=this._events[t];if(i.fn)i.fn!==e||r&&!i.once||n&&i.context!==n||Cs(this,t);else{for(var o=0,a=[],s=i.length;o<s;o++)(i[o].fn!==e||r&&!i[o].once||n&&i[o].context!==n)&&a.push(i[o]);a.length?this._events[t]=1===a.length?a[0]:a:Cs(this,t)}}else Cs(this,t);return this},Ls.prototype.removeAllListeners=function(t){return t?(t=Ss?Ss+t:t,this._events[t]&&Cs(this,t)):(this._events=new Ps,this._eventsCount=0),this},Ls.prototype.off=Ls.prototype.removeListener,Ls.prototype.addListener=Ls.prototype.on,Ls.prefixed=Ss,jt.exports=Ls.EventEmitter=Ls;let Is=1;const js="object"==typeof self&&self.self==self?self:"object"==typeof jr&&jr.global==jr?jr:{},Rs=Date.now();let Ds={},Bs=Date.now();const Fs=t=>"string"!=typeof t?t=>{if("function"!=typeof t)throw new TypeError(t+" is not a function");const n=Date.now(),e=n-Bs,r=16<e?0:16-e,i=Is++;return Ds[i]=t,1<Object.keys(Ds).length||setTimeout(()=>{Bs=n;const e=Ds;Ds={},Object.keys(e).forEach(t=>e[t](js.performance&&"function"==typeof js.performance.now?js.performance.now():Date.now()-Rs))},r),i}:""===t?js.requestAnimationFrame:js[t+"RequestAnimationFrame"],zs=((t,e)=>{let n=0;for(;void 0!==t[n];){if(e(t[n]))return t[n];n+=1}})(["","webkit","moz","ms","o"],t=>!!Fs(t)),Vs=Fs(zs),Gs="string"!=typeof(oe=zs)?t=>{delete Ds[t]}:""===oe?js.cancelAnimationFrame:js[oe+"CancelAnimationFrame"]||js[oe+"CancelRequestAnimationFrame"];js.requestAnimationFrame=Vs,js.cancelAnimationFrame=Gs,"undefined"!=typeof module&&module.exports&&(module.exports={requestAnimationFrame:Vs,cancelAnimationFrame:Gs}),(a=w=w||{}).COORDINATE="<coordinate>",a.COLOR="<color>",a.PAINT="<paint>",a.NUMBER="<number>",a.ANGLE="<angle>",a.OPACITY_VALUE="<opacity-value>",a.SHADOW_BLUR="<shadow-blur>",a.LENGTH="<length>",a.PERCENTAGE="<percentage>",a.LENGTH_PERCENTAGE="<length> | <percentage>",a.LENGTH_PERCENTAGE_12="[<length> | <percentage>]{1,2}",a.LENGTH_PERCENTAGE_14="[<length> | <percentage>]{1,4}",a.LIST_OF_POINTS="<list-of-points>",a.PATH="<path>",a.FILTER="<filter>",a.Z_INDEX="<z-index>",a.OFFSET_PATH="<offset-path>",a.OFFSET_DISTANCE="<offset-distance>",a.CLIP_PATH="<clip-path>",a.MARKER="<marker>",a.TRANSFORM="<transform>",a.TRANSFORM_ORIGIN="<transform-origin>",a.TEXT="<text>",a.TEXT_TRANSFORM="<text-transform>";var v,Hs,Ws,Ys,Yt=p.defineToken("");function k(){k=function(){return a};var a={},t=Object.prototype,l=t.hasOwnProperty,e="function"==typeof Symbol?Symbol:{},r=e.iterator||"@@iterator",n=e.asyncIterator||"@@asyncIterator",i=e.toStringTag||"@@toStringTag";function o(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{o({},"")}catch(t){o=function(t,e,n){return t[e]=n}}function s(t,e,n,r){var i,o,a,s,e=e&&e.prototype instanceof h?e:h,e=Object.create(e.prototype),r=new x(r||[]);return e._invoke=(i=t,o=n,a=r,s="suspendedStart",function(t,e){if("executing"===s)throw new Error("Generator is already running");if("completed"===s){if("throw"===t)throw e;return E()}for(a.method=t,a.arg=e;;){var n=a.delegate;if(n){n=function t(e,n){var r=e.iterator[n.method];if(void 0===r){if(n.delegate=null,"throw"===n.method){if(e.iterator.return&&(n.method="return",n.arg=void 0,t(e,n),"throw"===n.method))return c;n.method="throw",n.arg=new TypeError("The iterator does not provide a 'throw' method")}return c}r=u(r,e.iterator,n.arg);if("throw"===r.type)return n.method="throw",n.arg=r.arg,n.delegate=null,c;r=r.arg;return r?r.done?(n[e.resultName]=r.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=void 0),n.delegate=null,c):r:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,c)}(n,a);if(n){if(n===c)continue;return n}}if("next"===a.method)a.sent=a._sent=a.arg;else if("throw"===a.method){if("suspendedStart"===s)throw s="completed",a.arg;a.dispatchException(a.arg)}else"return"===a.method&&a.abrupt("return",a.arg);s="executing";n=u(i,o,a);if("normal"===n.type){if(s=a.done?"completed":"suspendedYield",n.arg===c)continue;return{value:n.arg,done:a.done}}"throw"===n.type&&(s="completed",a.method="throw",a.arg=n.arg)}}),e}function u(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}a.wrap=s;var c={};function h(){}function d(){}function p(){}var e={},f=(o(e,r,function(){return this}),Object.getPrototypeOf),f=f&&f(f(w([]))),y=(f&&f!==t&&l.call(f,r)&&(e=f),p.prototype=h.prototype=Object.create(e));function g(t){["next","throw","return"].forEach(function(e){o(t,e,function(t){return this._invoke(e,t)})})}function m(a,s){var e;this._invoke=function(n,r){function t(){return new s(function(t,e){!function e(t,n,r,i){var o,t=u(a[t],a,n);if("throw"!==t.type)return(n=(o=t.arg).value)&&"object"==typeof n&&l.call(n,"__await")?s.resolve(n.__await).then(function(t){e("next",t,r,i)},function(t){e("throw",t,r,i)}):s.resolve(n).then(function(t){o.value=t,r(o)},function(t){return e("throw",t,r,i)});i(t.arg)}(n,r,t,e)})}return e=e?e.then(t,t):t()}}function v(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function b(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function x(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(v,this),this.reset(!0)}function w(e){if(e){var n,t=e[r];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length))return n=-1,(t=function t(){for(;++n<e.length;)if(l.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t}).next=t}return{next:E}}function E(){return{value:void 0,done:!0}}return o(y,"constructor",d.prototype=p),o(p,"constructor",d),d.displayName=o(p,i,"GeneratorFunction"),a.isGeneratorFunction=function(t){t="function"==typeof t&&t.constructor;return!!t&&(t===d||"GeneratorFunction"===(t.displayName||t.name))},a.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,p):(t.__proto__=p,o(t,i,"GeneratorFunction")),t.prototype=Object.create(y),t},a.awrap=function(t){return{__await:t}},g(m.prototype),o(m.prototype,n,function(){return this}),a.AsyncIterator=m,a.async=function(t,e,n,r,i){void 0===i&&(i=Promise);var o=new m(s(t,e,n,r),i);return a.isGeneratorFunction(e)?o:o.next().then(function(t){return t.done?t.value:o.next()})},g(y),o(y,i,"Generator"),o(y,r,function(){return this}),o(y,"toString",function(){return"[object Generator]"}),a.keys=function(n){var t,r=[];for(t in n)r.push(t);return r.reverse(),function t(){for(;r.length;){var e=r.pop();if(e in n)return t.value=e,t.done=!1,t}return t.done=!0,t}},a.values=w,x.prototype={constructor:x,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(b),!t)for(var e in this)"t"===e.charAt(0)&&l.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(n){if(this.done)throw n;var r=this;function t(t,e){return o.type="throw",o.arg=n,r.next=t,e&&(r.method="next",r.arg=void 0),!!e}for(var e=this.tryEntries.length-1;0<=e;--e){var i=this.tryEntries[e],o=i.completion;if("root"===i.tryLoc)return t("end");if(i.tryLoc<=this.prev){var a=l.call(i,"catchLoc"),s=l.call(i,"finallyLoc");if(a&&s){if(this.prev<i.catchLoc)return t(i.catchLoc,!0);if(this.prev<i.finallyLoc)return t(i.finallyLoc)}else if(a){if(this.prev<i.catchLoc)return t(i.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return t(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;0<=n;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&l.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var i=r;break}}var o=(i=i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc?null:i)?i.completion:{};return o.type=t,o.arg=e,i?(this.method="next",this.next=i.finallyLoc,c):this.complete(o)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),c},finish:function(t){for(var e=this.tryEntries.length-1;0<=e;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),b(n),c}},catch:function(t){for(var e=this.tryEntries.length-1;0<=e;--e){var n,r,i=this.tryEntries[e];if(i.tryLoc===t)return"throw"===(n=i.completion).type&&(r=n.arg,b(i)),r}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:w(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=void 0),c}},a}function Us(t,e,n,r,i,o,a){try{var s=t[o](a),l=s.value}catch(t){return void n(t)}s.done?e(l):Promise.resolve(l).then(r,i)}function qs(s){return function(){var t=this,a=arguments;return new Promise(function(e,n){var r=s.apply(t,a);function i(t){Us(r,e,n,i,o,"next",t)}function o(t){Us(r,e,n,i,o,"throw",t)}i(void 0)})}}function Xs(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Zs(t,e,n){e&&Xs(t.prototype,e),n&&Xs(t,n),Object.defineProperty(t,"prototype",{writable:!1})}function Ks(){return(Ks=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n,r=arguments[e];for(n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t}).apply(this,arguments)}function b(t,e){t.prototype=Object.create(e.prototype),$s(t.prototype.constructor=t,e)}function $s(t,e){return($s=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function Js(t,e){if(null==t)return{};for(var n,r={},i=Object.keys(t),o=0;o<i.length;o++)n=i[o],0<=e.indexOf(n)||(r[n]=t[n]);return r}function Qs(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function tl(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function el(t,e){var n,r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(r)return(r=r.call(t)).next.bind(r);if(Array.isArray(t)||(r=function(t,e){var n;if(t)return"string"==typeof t?tl(t,e):"Map"===(n="Object"===(n=Object.prototype.toString.call(t).slice(8,-1))&&t.constructor?t.constructor.name:n)||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?tl(t,e):void 0}(t))||e&&t&&"number"==typeof t.length)return r&&(t=r),n=0,function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}};throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(d=v=v||{})[d.kUnknown=0]="kUnknown",d[d.kNumber=1]="kNumber",d[d.kPercentage=2]="kPercentage",d[d.kEms=3]="kEms",d[d.kPixels=4]="kPixels",d[d.kRems=5]="kRems",d[d.kDegrees=6]="kDegrees",d[d.kRadians=7]="kRadians",d[d.kGradians=8]="kGradians",d[d.kTurns=9]="kTurns",d[d.kMilliseconds=10]="kMilliseconds",d[d.kSeconds=11]="kSeconds",d[d.kInteger=12]="kInteger",(u=Hs=Hs||{})[u.kUNumber=0]="kUNumber",u[u.kUPercent=1]="kUPercent",u[u.kULength=2]="kULength",u[u.kUAngle=3]="kUAngle",u[u.kUTime=4]="kUTime",u[u.kUOther=5]="kUOther",(o=Ws=Ws||{})[o.kYes=0]="kYes",o[o.kNo=1]="kNo",(Qt=Ys=Ys||{})[Qt.kYes=0]="kYes",Qt[Qt.kNo=1]="kNo";var nl,rl=[{name:"em",unit_type:v.kEms},{name:"px",unit_type:v.kPixels},{name:"deg",unit_type:v.kDegrees},{name:"rad",unit_type:v.kRadians},{name:"grad",unit_type:v.kGradians},{name:"ms",unit_type:v.kMilliseconds},{name:"s",unit_type:v.kSeconds},{name:"rem",unit_type:v.kRems},{name:"turn",unit_type:v.kTurns}];(n=nl=nl||{})[n.kUnknownType=0]="kUnknownType",n[n.kUnparsedType=1]="kUnparsedType",n[n.kKeywordType=2]="kKeywordType",n[n.kUnitType=3]="kUnitType",n[n.kSumType=4]="kSumType",n[n.kProductType=5]="kProductType",n[n.kNegateType=6]="kNegateType",n[n.kInvertType=7]="kInvertType",n[n.kMinType=8]="kMinType",n[n.kMaxType=9]="kMaxType",n[n.kClampType=10]="kClampType",n[n.kTransformType=11]="kTransformType",n[n.kPositionType=12]="kPositionType",n[n.kURLImageType=13]="kURLImageType",n[n.kColorType=14]="kColorType",n[n.kUnsupportedColorType=15]="kUnsupportedColorType";var il,ol,al=function(){function t(){}t.parse=function(t,e){return[][0]},t.parseAll=function(t,e){return[]},t.unitFromName=function(t){return t?"number"===t?v.kNumber:"percent"===t||"%"===t?v.kPercentage:this.stringToUnitType(t):v.kUnknown},t.unitTypeToUnitCategory=function(t){switch(t){case v.kNumber:case v.kInteger:return Hs.kUNumber;case v.kPercentage:return Hs.kUPercent;case v.kPixels:return Hs.kULength;case v.kMilliseconds:case v.kSeconds:return Hs.kUTime;case v.kDegrees:case v.kRadians:case v.kGradians:case v.kTurns:return Hs.kUAngle;default:return Hs.kUOther}},t.unitTypeToString=function(t){switch(t){case v.kNumber:case v.kInteger:return"";case v.kPercentage:return"%";case v.kEms:return"em";case v.kRems:return"rem";case v.kPixels:return"px";case v.kDegrees:return"deg";case v.kRadians:return"rad";case v.kGradians:return"grad";case v.kMilliseconds:return"ms";case v.kSeconds:return"s";case v.kTurns:return"turn"}return""},t.stringToUnitType=function(e){return rl.find(function(t){return t.name===e}).unit_type},t.canonicalUnitTypeForCategory=function(t){switch(t){case Hs.kUNumber:return v.kNumber;case Hs.kULength:return v.kPixels;case Hs.kUPercent:return v.kPercentage;case Hs.kUTime:return v.kSeconds;case Hs.kUAngle:return v.kDegrees;default:return v.kUnknown}},t.conversionToCanonicalUnitsScaleFactor=function(t){var e=1;switch(t){case v.kPixels:case v.kDegrees:case v.kSeconds:break;case v.kMilliseconds:e=.001;break;case v.kRadians:e=180/Math.PI;break;case v.kGradians:e=.9;break;case v.kTurns:e=360}return e},t.isAngle=function(t){return t===v.kDegrees||t===v.kRadians||t===v.kGradians||t===v.kTurns},t.isLength=function(t){return t>=v.kEms&&t<v.kDegrees},t.isRelativeUnit=function(t){return t===v.kPercentage||t===v.kEms||t===v.kRems},t.isTime=function(t){return t===v.kSeconds||t===v.kMilliseconds};var e=t.prototype;return e.toString=function(){return this.buildCSSText(Ws.kNo,Ys.kNo,"")},e.isNumericValue=function(){return this.getType()>=nl.kUnitType&&this.getType()<=nl.kClampType},t}(),r=function(n){function t(t){var e=n.call(this)||this;return e.colorSpace=void 0,e.colorSpace=t,e}b(t,n);var e=t.prototype;return e.getType=function(){return nl.kColorType},e.to=function(t){return this},t}(al),sl=function(n){function t(t){var e=n.call(this)||this;return e.value=void 0,e.value=t,e}b(t,n);var e=t.prototype;return e.clone=function(){return new t(this.value)},e.getType=function(){return nl.kKeywordType},e.buildCSSText=function(t,e,n){return n+this.value},t}(al);function ll(t){if(!t)throw new Error}function ul(t,e){if(t===e)throw new Error}function cl(t){return void 0===t}function S(t){return null==t}function hl(t){return"number"==typeof t}function dl(t){return"function"==typeof t}function pl(t){return"boolean"==typeof t}function fl(t){return"[object Object]"===Object.prototype.toString.call(t)}(It=il=il||{}).kAdd="+",It.kSubtract="-",It.kMultiply="*",It.kDivide="/",It.kMin="min",It.kMax="max",It.kClamp="clamp",It.kInvalid="",(s=ol=ol||{})[s.kLength=0]="kLength",s[s.kAngle=1]="kAngle",s[s.kTime=2]="kTime",s[s.kFrequency=3]="kFrequency",s[s.kResolution=4]="kResolution",s[s.kFlex=5]="kFlex",s[s.kPercent=6]="kPercent",s[s.kNumBaseTypes=7]="kNumBaseTypes";var yl=function(){function t(t,e){void 0===t&&(t=v.kNumber),void 0===e&&(e=1),this.exponents=[],this.numNonZeroEntries=0,this.percentHint=ol.kPercent,this.hasPercentHint=!1,this.exponents=new Array(ol.kNumBaseTypes).fill(0),t!==v.kNumber&&this.setExponent(function(t){switch(ul(t,v.kNumber),t){case v.kEms:case v.kPixels:case v.kRems:return ol.kLength;case v.kMilliseconds:case v.kSeconds:return ol.kTime;case v.kDegrees:case v.kRadians:case v.kGradians:case v.kTurns:return ol.kAngle;case v.kPercentage:return ol.kPercent;default:return ol.kLength}}(t),e)}var e=t.prototype;return e.applyPercentHint=function(t){ul(t,ol.kPercent),this.setExponent(t,this.exponent(t)+this.exponent(ol.kPercent)),this.setExponent(ol.kPercent,0),this.percentHint=t,this.hasPercentHint=!0},e.hasNonZeroEntries=function(){return 0<this.numNonZeroEntries},e.isOnlyNonZeroEntry=function(t,e){return ul(e,0),1===this.numNonZeroEntries&&this.exponent(t)===e},e.exponent=function(t){return this.exponents[t]},e.setExponent=function(t,e){var n=this.exponents[t];0==n&&0!==e?this.numNonZeroEntries++:0!==n&&0==e&&this.numNonZeroEntries--,this.exponents[t]=e},t.negateExponents=function(t){return t.exponents.forEach(function(t){return-1*t}),t},e.matchesBaseType=function(t){return ul(t,ol.kPercent),this.isOnlyNonZeroEntry(t,1)&&!this.hasPercentHint},e.matchesPercentage=function(){return this.isOnlyNonZeroEntry(ol.kPercent,1)},e.matchesBaseTypePercentage=function(t){return ul(t,ol.kPercent),this.isOnlyNonZeroEntry(t,1)||this.isOnlyNonZeroEntry(ol.kPercent,1)},e.matchesNumber=function(){return!this.hasNonZeroEntries()&&!this.hasPercentHint},e.matchesNumberPercentage=function(){return!this.hasNonZeroEntries()||this.isOnlyNonZeroEntry(ol.kPercent,1)},t.add=function(t,e,n){if(!t.hasPercentHint||!e.hasPercentHint||t.percentHint==e.percentHint){t.hasPercentHint?e.applyPercentHint(t.percentHint):e.hasPercentHint&&t.applyPercentHint(e.percentHint);var r=t.percentHint,i=e.percentHint;if(r!==i)throw new Error;for(var o=0;o<ol.kNumBaseTypes;++o){var a=o;if(t.exponents[o]!==e.exponents[o]&&(a!==ol.kPercent&&(t.applyPercentHint(a),e.applyPercentHint(a)),t.exponents[o]!==e.exponents[o]))return t}}return t},t.multiply=function(t,e,n){if(!t.hasPercentHint||!e.hasPercentHint||t.percentHint==e.percentHint){t.hasPercentHint?e.applyPercentHint(t.percentHint):e.hasPercentHint&&t.applyPercentHint(e.percentHint);for(var r=0;r<ol.kNumBaseTypes;++r){var i=r;t.setExponent(i,t.exponent(i)+e.exponent(i))}}return t},t}(),gl=function(n){function p(t){var e=n.call(this)||this;return e.type_=void 0,e.type_=t,e}b(p,n),p.fromNumberish=function(t){return"number"==typeof t?new El(t,v.kNumber):t},p.fromPercentish=function(t){return"number"==typeof t?new El(100*t,v.kPercentage):t};var t=p.prototype;return t.getType=function(){return nl.kUnknownType},t.equals=function(){for(var e=this,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return ml(n).every(function(t){return e.equals(t)})},t.add=function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];var r=ml(e),i=(vl(nl.kSumType,r,this),xl(r,il.kAdd));return i||Pl.create(r)},t.sub=function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];var r=(r=ml(e)).map(function(t){return t.negate()}),i=(vl(nl.kSumType,r,this),xl(r,il.kAdd));return i||Pl.create(r)},t.mul=function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];var r=ml(e),i=(vl(nl.kProductType,r,this),wl(r));return i||Al.create(r)},t.div=function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];var r=(r=ml(e)).map(function(t){return t.invert()}),i=(vl(nl.kProductType,r,this),wl(r));return i||Al.create(r)},t.min=function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];var r=ml(e),i=(vl(nl.kMinType,r,this),xl(r,il.kMin));return i||Sl.create(r)},t.max=function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];var r=ml(e),i=(vl(nl.kMaxType,r,this),xl(r,il.kMax));return i||Ol.create(r)},t.to=function(t){var e=this.sumValue();return 0!==e.length&&1===e.length&&(e=bl(e[0]))?(t="string"==typeof t?El.unitFromName(t):t,e.convertTo(t)):null},t.toSum=function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];for(var r=0,i=e;r<i.length;r++){var o=i[r];if(!p.isValidUnit(p.unitFromName(o)))return null}var a=this.sumValue();if(!a.length)return null;for(var s=[],l=el(a);!(u=l()).done;){var u=bl(u.value);if(!u)return null;s.push(u)}if(0===e.length)return s.sort(function(t,e){return t.unit-e.unit}),ll(!!(a=Pl.create(s))),a;for(var c=[],h=0,d=e;h<d.length;h++)!function(){var t=d[h],r=p.unitFromName(t),t=(ll(p.isValidUnit(r)),s.reduce(function(t,e,n){return e&&(e=e.convertTo(r))&&(t+=e.value,s[n]=null),t},0));c.push(new El(t,r))}();if(s.some(function(t){return!!t}))throw new Error("There were leftover terms that were not converted");return Pl.create(c)},t.type=function(){var t={length:0,angle:0,time:0,frequency:0,resolution:0,flex:0,percent:0,percentHint:"length"},e=this.type_.exponent(ol.kLength);return e&&(t.length=e),(e=this.type_.exponent(ol.kAngle))&&(t.angle=e),(e=this.type_.exponent(ol.kTime))&&(t.time=e),(e=this.type_.exponent(ol.kFrequency))&&(t.frequency=e),(e=this.type_.exponent(ol.kResolution))&&(t.resolution=e),(e=this.type_.exponent(ol.kFlex))&&(t.flex=e),(e=this.type_.exponent(ol.kPercent))&&(t.percent=e),this.type_.hasPercentHint&&(t.percentHint=function(t){switch(t){case ol.kLength:return"length";case ol.kAngle:return"angle";case ol.kTime:return"time";case ol.kFrequency:return"frequency";case ol.kResolution:return"resolution";case ol.kFlex:return"flex";case ol.kPercent:return"percent"}return""}(this.type_.percentHint)),t},p.isValidUnit=function(t){return!!(t===v.kNumber||t==v.kPercentage||this.isLength(t)||this.isAngle(t)||this.isTime(t))},t.negate=function(){return kl.create(this)},t.invert=function(){return _l.create(this)},p}(al);function ml(t){return t.map(gl.fromNumberish)}function vl(t,e,n){ll(!!n),n.getType()===t?e.unshift.apply(e,n.numericValues()):e.unshift(n)}function bl(t){return 0===Object.keys(t.units).length?new El(t.value):1===Object.keys(t.units).length&&1===t.units[Object.keys(t.units)[0]]?new El(t.value,Number(Object.keys(t.units)[0])):null}function xl(t,e){ll(!!t.length);var n=t[0]instanceof El?t[0]:null;if(!n)return null;for(var r=n.value,i=1;i<t.length;i++){var o=t[i]instanceof El?t[i]:null;if(!o||o.unit!==n.unit)return null;e===il.kAdd?r+=o.value:e===il.kMax?r=Math.max(r,o.value):e===il.kMin&&(r=Math.min(r,o.value))}return new El(r,n.unit)}function wl(t){ll(!!t.length);for(var e=v.kNumber,n=1,r=0;r<t.length;r++){var i=t[r]instanceof El?t[r]:null;if(!i)return null;if(i.unit!==v.kNumber){if(e!==v.kNumber)return null;e=i.unit}n*=i.value}return new El(n,e)}var El=function(r){function s(t,e){var n,e="string"==typeof(e=void 0===e?v.kNumber:e)?s.unitFromName(e):e;return ll(s.isValidUnit(e)),(n=r.call(this,new yl(e))||this).unit=void 0,n.value=void 0,n.unit=e,n.value=t,n}b(s,r),s.toCanonicalUnit=function(t){return this.canonicalUnitTypeForCategory(this.unitTypeToUnitCategory(t))},s.toCanonicalUnitIfPossible=function(t){var e=this.toCanonicalUnit(t);return e===v.kUnknown?t:e},s.formatInfinityOrNaN=function(t,e){void 0===e&&(e="");return(Number.isFinite(t)?(ll(Number.isNaN(t)),"NaN"):0<t?"infinity":"-infinity")+e},s.formatNumber=function(t,e){return t+(e=void 0===e?"":e)};var t=s.prototype;return t.clone=function(){return new s(this.value,this.unit)},t.convertTo=function(t){var e;return this.unit===t?new s(this.value,this.unit):(e=s.toCanonicalUnit(this.unit))!==s.toCanonicalUnit(t)||e===v.kUnknown?null:(e=al.conversionToCanonicalUnitsScaleFactor(this.unit)/al.conversionToCanonicalUnitsScaleFactor(t),new s(this.value*e,t))},t.equals=function(t){return this.value===t.value&&this.unit===t.unit},t.getType=function(){return nl.kUnitType},t.sumValue=function(){var t=[],e={};return this.unit!==v.kNumber&&(e[s.toCanonicalUnitIfPossible(this.unit)]=1),t.push({value:this.value*al.conversionToCanonicalUnitsScaleFactor(this.unit),units:e}),t},t.negate=function(){return new s(-this.value,this.unit)},t.invert=function(){return this.unit===v.kNumber?0===this.value?null:new s(1/this.value,this.unit):_l.create(this)},t.buildCSSText=function(t,e,n){switch(this.unit){case v.kUnknown:break;case v.kInteger:i=Number(this.value).toFixed(0);break;case v.kNumber:case v.kPercentage:case v.kEms:case v.kRems:case v.kPixels:case v.kDegrees:case v.kRadians:case v.kGradians:case v.kMilliseconds:case v.kSeconds:case v.kTurns:var r,i,o=this.value,a=s.unitTypeToString(this.unit);i=o<-999999||999999<o?(r=s.unitTypeToString(this.unit),!Number.isFinite(o)||Number.isNaN(o)?s.formatInfinityOrNaN(o,r):s.formatNumber(o,r)):""+o+a}return n+=i},s}(gl),re=function(t){function e(){return t.apply(this,arguments)||this}return b(e,t),e.prototype.isUnitValue=function(){return!1},e}(gl),_l=function(n){function e(t,e){e=n.call(this,e)||this;return e.value=void 0,e.operator="invert",e.value=t,e}b(e,n),e.create=function(t){return new e(t,yl.negateExponents(t.type_))};var t=e.prototype;return t.clone=function(){return new e(this.value,this.type_)},t.getType=function(){return nl.kInvertType},t.equals=function(t){return t.getType()===nl.kInvertType&&this.value.equals(t.value)},t.sumValue=function(){var e=this.value.sumValue();return 0===e.length||1!==e.length||0===e[0].value?null:(Object.keys(e[0].units).forEach(function(t){e[0].units[t]*=-1}),e[0].value=1/e[0].value,e)},t.buildCSSText=function(t,e,n){return e==Ys.kNo&&(n+=t===Ws.kYes?"(":"calc("),n=this.value.buildCSSText(Ws.kYes,Ys.kNo,n+="1 / "),e===Ys.kNo&&(n+=")"),n},e}(re),kl=function(n){function e(t,e){e=n.call(this,e)||this;return e.value=void 0,e.operator="negate",e.value=t,e}b(e,n),e.create=function(t){return new e(t,t.type_)};var t=e.prototype;return t.clone=function(){return new e(this.value,this.type_)},t.getType=function(){return nl.kNegateType},t.equals=function(t){return t.getType()===nl.kNegateType&&this.value.equals(t.value)},t.sumValue=function(){var t=this.value.sumValue();return 0===t.length?null:(t.forEach(function(t){t.value*=-1}),t)},t.buildCSSText=function(t,e,n){return e==Ys.kNo&&(n+=t===Ws.kYes?"(":"calc("),n=this.value.buildCSSText(Ws.kYes,Ys.kNo,n+="-"),e===Ys.kNo&&(n+=")"),n},e}(re);function Tl(t,e){for(var n=t[0].type_,r=1;r<t.length;r++)n=e(n,t[r].type_,!1);return n}var Ml,l=function(n){function t(t,e){e=n.call(this,e)||this;return e.values=void 0,e.values=t,e}b(t,n);var e=t.prototype;return e.numericValues=function(){return this.values},e.equals=function(n){return this.getType()===n.getType()&&this.values.every(function(t,e){return t.equals(n.values[e])})},t}(re),Sl=function(i){function e(){for(var t,e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return(t=i.call.apply(i,[this].concat(n))||this).operator="min",t}b(e,i),e.create=function(t){return new e(t,Tl(t,yl.add))};var t=e.prototype;return t.clone=function(){return new e(this.values,this.type_)},t.getType=function(){return nl.kMinType},t.sumValue=function(){var t=this.numericValues()[0].sumValue();if(!t.length)return null;for(var e=el(this.numericValues());!(n=e()).done;){var n=n.value.sumValue();if(!n.length||JSON.stringify(n[0].units)!==JSON.stringify(t[0].units))return null;n[0].value<t[0].value&&(t=n)}return t},t.buildCSSText=function(t,e,n){n+="min(";for(var r,i=!0,o=el(this.numericValues());!(r=o()).done;)i||(n+=", "),i=!1,n=r.value.buildCSSText(Ws.kYes,Ys.kYes,n);return n+=")"},e}(l),Ol=function(i){function e(){for(var t,e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return(t=i.call.apply(i,[this].concat(n))||this).operator="max",t}b(e,i),e.create=function(t){return new e(t,Tl(t,yl.add))};var t=e.prototype;return t.clone=function(){return new e(this.values,this.type_)},t.getType=function(){return nl.kMaxType},t.sumValue=function(){var t=this.numericValues()[0].sumValue();if(!t.length)return null;for(var e=el(this.numericValues());!(n=e()).done;){var n=n.value.sumValue();if(!n.length||JSON.stringify(n[0].units)!==JSON.stringify(t[0].units))return null;n[0].value<t[0].value&&(t=n)}return t},t.buildCSSText=function(t,e,n){n+="max(";for(var r,i=!0,o=el(this.numericValues());!(r=o()).done;)i||(n+=", "),i=!1,n=r.value.buildCSSText(Ws.kYes,Ys.kYes,n);return n+=")"},e}(l),Pl=function(i){function e(){for(var t,e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return(t=i.call.apply(i,[this].concat(n))||this).operator="sum",t}b(e,i),e.create=function(t){return new e(t,Tl(t,yl.add))},e.numericTypeFromUnitMap=function(n){var r=new yl;return Object.keys(n).forEach(function(t){var e=n[t];r=yl.multiply(r,new yl(Number(t),e),!1),ll(!0)}),r},e.canCreateNumericTypeFromSumValue=function(t){var e=this,n=(ll(!!t.length),this.numericTypeFromUnitMap(t[0].units));return t.every(function(t){return yl.add(n,e.numericTypeFromUnitMap(t.units),!1),!0})};var t=e.prototype;return t.clone=function(){return new e(this.values,this.type_)},t.getType=function(){return nl.kSumType},t.sumValue=function(){var n=[];return this.numericValues().forEach(function(t){t=t.sumValue();if(!t.length)return null;t.forEach(function(e){var t=n.findIndex(function(t){return JSON.stringify(t.units)===JSON.stringify(e.units)});-1===t?n.push(Ks({},e)):n[t].value+=e.value})}),e.canCreateNumericTypeFromSumValue(n)?n:null},t.buildCSSText=function(t,e,n){e==Ys.kNo&&(n+=t===Ws.kYes?"(":"calc(");var r=this.numericValues();n=r[0].buildCSSText(Ws.kYes,Ys.kNo,n);for(var i=1;i<r.length;i++){var o=r[i];n=(o.getType()===nl.kNegateType?(n+=" - ",o.value):(n+=" + ",o)).buildCSSText(Ws.kYes,Ys.kNo,n)}return e===Ys.kNo&&(n+=")"),n},e}(l),Al=function(i){function o(){for(var t,e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return(t=i.call.apply(i,[this].concat(n))||this).operator="product",t}b(o,i),o.create=function(t){return new o(t,Tl(t,yl.multiply))},o.multiplyUnitMaps=function(n,r){return Object.keys(r).forEach(function(t){ul(r[t].value,0);var e=t in n?n[t].value:0;e+r[t].value===0?delete n[t]:n[t]=e+r[t].value}),n};var t=o.prototype;return t.clone=function(){return new o(this.values,this.type_)},t.getType=function(){return nl.kProductType},t.sumValue=function(){var e=[{value:1,units:{}}];return this.numericValues().forEach(function(t){var n=t.sumValue();if(!n.length)return null;var r=[];e.forEach(function(e){n.forEach(function(t){r.push({value:e.value*t.value,units:o.multiplyUnitMaps(e.units,t.units)})})}),e=r}),e},t.buildCSSText=function(t,e,n){e==Ys.kNo&&(n+=t===Ws.kYes?"(":"calc(");var r=this.numericValues();n=r[0].buildCSSText(Ws.kYes,Ys.kNo,n);for(var i=1;i<r.length;i++){var o=r[i];n=(o.getType()===nl.kInvertType?(n+=" / ",o.value):(n+=" * ",o)).buildCSSText(Ws.kYes,Ys.kNo,n)}return e===Ys.kNo&&(n+=")"),n},o}(l),Nl=new El(0,"px"),Cl=new El(0,"deg"),Ll=function(a){function t(t,e,n,r,i){var o;return void 0===r&&(r=1),void 0===i&&(i=!1),(o=a.call(this,"rgb")||this).r=void 0,o.g=void 0,o.b=void 0,o.alpha=void 0,o.isNone=void 0,o.r=t,o.g=e,o.b=n,o.alpha=r,o.isNone=i,o}b(t,a);var e=t.prototype;return e.clone=function(){return new t(this.r,this.g,this.b,this.alpha)},e.buildCSSText=function(t,e,n){return n+("rgba("+this.r+","+this.g+","+this.b+","+this.alpha)+")"},t}(r),Il=((c=Ml=Ml||{})[c.Constant=0]="Constant",c[c.LinearGradient=1]="LinearGradient",c[c.RadialGradient=2]="RadialGradient",function(r){function t(t,e){var n=r.call(this)||this;return n.type=void 0,n.value=void 0,n.type=t,n.value=e,n}b(t,r);var e=t.prototype;return e.clone=function(){return new t(this.type,this.value)},e.buildCSSText=function(t,e,n){return n},e.getType=function(){return nl.kColorType},t}(al)),jl={},Rl=0;function Dl(b,e,x,n){if(!(0<=b&&b<=1&&0<=x&&x<=1))throw new Error("bezier x values must be in [0, 1] range");if(b===e&&x===n)return function(t){return t};for(var w=new(Gl?Float32Array:Array)(11),t=0;t<11;++t)w[t]=Ul(.1*t,b,x);function r(t){for(var e=0,n=1;10!==n&&w[n]<=t;++n)e+=.1;var r=e+.1*((t-w[--n])/(w[n+1]-w[n])),i=ql(r,b,x);if(.001<=i){for(var o=t,a=r,s=b,l=x,u=0;u<Fl;++u){var c=ql(a,s,l);if(0===c)return a;a-=(Ul(a,s,l)-o)/c}return a}if(0===i)return r;for(var h,d,p=t,f=e,y=e+.1,g=b,m=x,v=0;0<(h=Ul(d=f+(y-f)/2,g,m)-p)?y=d:f=d,Math.abs(h)>zl&&++v<Vl;);return d}return function(t){return 0===t||1===t?t:Ul(r(t),e,n)}}var Bl="undefined"!=typeof window&&void 0!==window.document,Fl=4,zl=1e-7,Vl=10,Gl="function"==typeof Float32Array,Hl=function(t,e){return 1-3*e+3*t},Wl=function(t,e){return 3*e-6*t},Yl=function(t){return 3*t},Ul=function(t,e,n){return((Hl(e,n)*t+Wl(e,n))*t+Yl(e))*t},ql=function(t,e,n){return 3*Hl(e,n)*t*t+2*Wl(e,n)*t+Yl(e)};function Xl(t,e,n){return n?Math.min(t,e)===t?e:Math.max(t,n)===t?n:t:Math.max(t,e)===e?t:e}function Zl(t){return void 0===t?0:360<t||t<-360?t%360:t}function Kl(t,e,n){return void 0===e&&(e=0),void 0===n&&(n=0),hl(t)?_(t,e,n):Array.isArray(t)&&3===t.length?Po(t):_(t[0],t[1]||e,t[2]||n)}function $l(t){return t*(Math.PI/180)}function Jl(t){return t*(180/Math.PI)}function Ql(t,e){return 16===e.length?(n=t,r=e,a=.5*Math.PI,s=(u=bo(m(),r))[0],l=u[1],u=u[2],(c=Math.asin(-r[2]/s))<a?-a<c?(i=Math.atan2(r[6]/l,r[10]/u),o=Math.atan2(r[1]/s,r[0]/s)):(o=0,i=-Math.atan2(r[4]/l,r[5]/l)):(o=0,i=Math.atan2(r[4]/l,r[5]/l)),n[0]=i,n[1]=c,n[2]=o,n):(a=t,s=(u=e)[0],r=u[1],l=u[2],u=u[3],.499995*(n=s*s+(i=r*r)+(c=l*l)+(o=u*u))<(t=s*u-r*l)?(a[0]=Math.PI/2,a[1]=2*Math.atan2(r,s),a[2]=0):t<-.499995*n?(a[0]=-Math.PI/2,a[1]=2*Math.atan2(r,s),a[2]=0):(a[0]=Math.asin(2*(s*l-u*r)),a[1]=Math.atan2(2*(s*u+r*l),1-2*(c+o)),a[2]=Math.atan2(2*(s*r+l*u),1-2*(i+c))),a);var n,r,i,o,a,s,l,u,c}function tu(t,e,n,r,i){var o,a,s,l,u=Math.cos(t),t=Math.sin(t);return o=r*u,a=i*t,r=-r*t,t=i*u,u=i=0,e=e,n=n,s=1,(l=new eo(9))[0]=o,l[1]=a,l[2]=i,l[3]=r,l[4]=t,l[5]=u,l[6]=e,l[7]=n,l[8]=s,l}function eu(t){var e=t[0],n=t[1],r=t[3],i=t[4],o=Math.sqrt(e*e+n*n),a=Math.sqrt(r*r+i*i);e*i-n*r<0&&(e<i?o=-o:a=-a),o&&(e*=1/o,n*=1/o),a&&(i*=1/a);r=Jl(Math.atan2(n,e));return[t[6],t[7],o,a,r]}function nu(t){return Math.pow(t,2)}function ru(t){return Math.pow(t,3)}function iu(t){return Math.pow(t,4)}function ou(t){return Math.pow(t,5)}function au(t){return Math.pow(t,6)}function su(t){return 1-Math.cos(t*Math.PI/2)}function lu(t){return 1-Math.sqrt(1-t*t)}function uu(t){return t*t*(3*t-2)}function cu(t){for(var e,n=4;t<((e=Math.pow(2,--n))-1)/11;);return 1/Math.pow(4,3-n)-7.5625*Math.pow((3*e-2)/22-t,2)}function hu(t,e){var n=(e=e=void 0===e?[]:e)[0],e=void 0===(e=e[1])?.5:e,n=Xl(Number(void 0===n?1:n),1,10),e=Xl(Number(e),.1,2);return 0===t||1===t?t:-n*Math.pow(2,10*(t-1))*Math.sin((t-1-e/(2*Math.PI)*Math.asin(1/n))*(2*Math.PI)/e)}function du(t,e,n){var r=(e=e=void 0===e?[]:e)[0],i=void 0===(i=e[1])?100:i,o=void 0===(o=e[2])?10:o,e=void 0===(e=e[3])?0:e,r=Xl(void 0===r?1:r,.1,1e3),i=Xl(i,.1,1e3),o=Xl(o,.1,1e3),e=Xl(e,.1,1e3),a=Math.sqrt(i/r),i=(o=o/(2*Math.sqrt(i*r)))<1?a*Math.sqrt(1-o*o):0,r=o<1?(o*a-e)/i:-e+a,e=n?n*t/1e3:t,e=o<1?Math.exp(-e*o*a)*(+Math.cos(i*e)+r*Math.sin(i*e)):(1+r*e)*Math.exp(-e*a);return 0===t||1===t?t:1-e}function pu(t,e){var e=e=void 0===e?[]:e,n=void 0===(n=e[0])?10:n;return("start"==e[1]?Math.ceil:Math.floor)(Xl(t,0,1)*n)/n}function fu(t,e){var n=(e=e=void 0===e?[]:e)[0],r=e[1],i=e[2],e=e[3];return Dl(n,r,i,e)(t)}function yu(r){return function(t,e,n){return 1-r(1-t,e=void 0===e?[]:e,n)}}function gu(r){return function(t,e,n){return void 0===e&&(e=[]),t<.5?r(2*t,e,n)/2:1-r(-2*t+2,e,n)/2}}function mu(r){return function(t,e,n){return void 0===e&&(e=[]),t<.5?(1-r(1-2*t,e,n))/2:(r(2*t-1,e,n)+1)/2}}function vu(){var n=this;this.resolve=void 0,this.reject=void 0,this.promise=new Promise(function(t,e){n.resolve=t,n.reject=e})}var ie=Dl(.42,0,1,1),bu={steps:pu,"step-start":function(t){return pu(t,[1,"start"])},"step-end":function(t){return pu(t,[1,"end"])},linear:function(t){return t},"cubic-bezier":fu,ease:function(t){return fu(t,[.25,.1,.25,1])},in:ie,out:yu(ie),"in-out":gu(ie),"out-in":mu(ie),"in-quad":nu,"out-quad":yu(nu),"in-out-quad":gu(nu),"out-in-quad":mu(nu),"in-cubic":ru,"out-cubic":yu(ru),"in-out-cubic":gu(ru),"out-in-cubic":mu(ru),"in-quart":iu,"out-quart":yu(iu),"in-out-quart":gu(iu),"out-in-quart":mu(iu),"in-quint":ou,"out-quint":yu(ou),"in-out-quint":gu(ou),"out-in-quint":mu(ou),"in-expo":au,"out-expo":yu(au),"in-out-expo":gu(au),"out-in-expo":mu(au),"in-sine":su,"out-sine":yu(su),"in-out-sine":gu(su),"out-in-sine":mu(su),"in-circ":lu,"out-circ":yu(lu),"in-out-circ":gu(lu),"out-in-circ":mu(lu),"in-back":uu,"out-back":yu(uu),"in-out-back":gu(uu),"out-in-back":mu(uu),"in-bounce":cu,"out-bounce":yu(cu),"in-out-bounce":gu(cu),"out-in-bounce":mu(cu),"in-elastic":hu,"out-elastic":yu(hu),"in-out-elastic":gu(hu),"out-in-elastic":mu(hu),spring:du,"spring-in":du,"spring-out":yu(du),"spring-in-out":gu(du),"spring-out-in":mu(du)},xu=function(t){return("-"===(t=(t=t).replace(/([A-Z])/g,function(t){return"-"+t.toLowerCase()})).charAt(0)?t.substring(1):t).replace(/^ease-/,"").replace(/(\(|\s).+/,"").toLowerCase().trim()};function wu(t,e){if(Bl)return document.defaultView.getComputedStyle(t,null).getPropertyValue(e)}var Eu={touchstart:"pointerdown",touchend:"pointerup",touchendoutside:"pointerupoutside",touchmove:"pointermove",touchcancel:"pointercancel"};_u={linearGradient:/^(linear\-gradient)/i,repeatingLinearGradient:/^(repeating\-linear\-gradient)/i,radialGradient:/^(radial\-gradient)/i,repeatingRadialGradient:/^(repeating\-radial\-gradient)/i,conicGradient:/^(conic\-gradient)/i,sideOrCorner:/^to (left (top|bottom)|right (top|bottom)|top (left|right)|bottom (left|right)|left|right|top|bottom)/i,extentKeywords:/^(closest\-side|closest\-corner|farthest\-side|farthest\-corner|contain|cover)/,positionKeywords:/^(left|center|right|top|bottom)/i,pixelValue:/^(-?(([0-9]*\.[0-9]+)|([0-9]+\.?)))px/,percentageValue:/^(-?(([0-9]*\.[0-9]+)|([0-9]+\.?)))\%/,emValue:/^(-?(([0-9]*\.[0-9]+)|([0-9]+\.?)))em/,angleValue:/^(-?(([0-9]*\.[0-9]+)|([0-9]+\.?)))deg/,startCall:/^\(/,endCall:/^\)/,comma:/^,/,hexColor:/^\#([0-9a-fA-F]+)/,literalColor:/^([a-zA-Z]+)/,rgbColor:/^rgb/i,rgbaColor:/^rgba/i,number:/^(([0-9]*\.[0-9]+)|([0-9]+\.?))/},ku="";var _u,ku,Tu=function(t){return ku=t,Su()};function Mu(t){throw new Error(ku+": "+t)}function Su(){var t=Du(Ou);return 0<ku.length&&Mu("Invalid input not EOF"),t}function Ou(){return Pu("linear-gradient",_u.linearGradient,Nu)||Pu("repeating-linear-gradient",_u.repeatingLinearGradient,Nu)||Pu("radial-gradient",_u.radialGradient,Cu)||Pu("repeating-radial-gradient",_u.repeatingRadialGradient,Cu)||Pu("conic-gradient",_u.conicGradient,Cu)}function Pu(n,t,r){return Au(t,function(t){var e=r();return e&&!Hu(_u.comma)&&Mu("Missing comma before color stops"),{type:n,orientation:e,colorStops:Du(Bu)}})}function Au(t,e){t=Hu(t);if(t)return Hu(_u.startCall)||Mu("Missing ("),e=e(t),Hu(_u.endCall)||Mu("Missing )"),e}function Nu(){return Gu("directional",_u.sideOrCorner,1)||Gu("angular",_u.angleValue,1)}function Cu(){var t,e,n=Lu();return n&&((t=[]).push(n),e=ku,Hu(_u.comma)&&((n=Lu())?t.push(n):ku=e)),t}function Lu(){var t,e=function(){var t=Gu("shape",/^(circle)/i,0);t&&(t.style=Vu()||Iu());return t}()||function(){var t=Gu("shape",/^(ellipse)/i,0);t&&(t.style=zu()||Iu());return t}();return e?e.at=ju():(t=Iu())?(e=t,(t=ju())&&(e.at=t)):(t=Ru())&&(e={type:"default-radial",at:t}),e}function Iu(){return Gu("extent-keyword",_u.extentKeywords,1)}function ju(){var t;if(Gu("position",/^at/,0))return(t=Ru())||Mu("Missing positioning value"),t}function Ru(){var t={x:zu(),y:zu()};if(t.x||t.y)return{type:"position",value:t}}function Du(t){var e=t(),n=[];if(e)for(n.push(e);Hu(_u.comma);)(e=t())?n.push(e):Mu("One extra comma");return n}function Bu(){var t=Gu("hex",_u.hexColor,1)||Au(_u.rgbaColor,function(){return{type:"rgba",value:Du(Fu)}})||Au(_u.rgbColor,function(){return{type:"rgb",value:Du(Fu)}})||Gu("literal",_u.literalColor,0);return t||Mu("Expected color definition"),t.length=zu(),t}function Fu(){return Hu(_u.number)[1]}function zu(){return Gu("%",_u.percentageValue,1)||Gu("position-keyword",_u.positionKeywords,1)||Vu()}function Vu(){return Gu("px",_u.pixelValue,1)||Gu("em",_u.emValue,1)}function Gu(t,e,n){e=Hu(e);if(e)return{type:t,value:e[n]}}function Hu(t){var e=/^[\n\r\t\s]+/.exec(ku),e=(e&&Wu(e[0].length),t.exec(ku));return e&&Wu(e[0].length),e}function Wu(t){ku=ku.substring(t)}function Yu(t){return t}function Uu(n,r){return function(t){var e;return 1<=t?1:(t+=r*(e=1/n))-t%e}}var Nt="\\s*(-?\\d+\\.?\\d*|-?\\.\\d+)\\s*",qu=new RegExp("cubic-bezier\\("+Nt+","+Nt+","+Nt+","+Nt+"\\)"),Xu=/steps\(\s*(\d+)\s*\)/,Zu=/steps\(\s*(\d+)\s*,\s*(start|middle|end)\s*\)/;function Ku(t){var e=qu.exec(t);return e?Dl.apply(void 0,e.slice(1).map(Number)):(e=Xu.exec(t))?Uu(Number(e[1]),0):(e=Zu.exec(t))?Uu(Number(e[1]),{start:1,middle:.5,end:0}[e[2]]):bu[xu(t)]||bu.linear}function $u(t){return Math.abs((0!==(e=t).duration&&0!==e.iterations?("auto"===e.duration?0:Number(e.duration))*(null!=(e=e.iterations)?e:1):0)/(t.playbackRate||1));var e}var Ju=0,Qu=1,tc=2,ec=3;function nc(t,e,n){u=t,i=n;var r,i,o,a,s,l=null===(l=e)?Ju:(r=i.endTime,l<Math.min(i.delay,r)?Qu:l>=Math.min(i.delay+u+i.endDelay,r)?tc:ec),u=function(t,e,n,r,i){switch(r){case Qu:return"backwards"===e||"both"===e?0:null;case ec:return n-i;case tc:return"forwards"===e||"both"===e?t:null;case Ju:return null}}(t,n.fill,e,l,n.delay);return null===u?null:(i="auto"===n.duration?0:n.duration,r=i,t=l,e=n.iterations,a=u,s=n.iterationStart,0===r?t!==Qu&&(s+=e):s+=a/r,e=t=s,a=n.iterationStart,s=l,o=n.iterations,u=u,i=i,e=a=0!==(a=e===1/0?a%1:e%1)||s!==tc||0===o||0===u&&0!==i?a:1,s=n.iterations,o=e,u=t,i=l===tc&&s===1/0?1/0:1===o?Math.floor(u)-1:Math.floor(u),a=n.direction,t=i,l=e,"normal"!==(s=a)&&"reverse"!==a&&(t=t,"alternate-reverse"===a&&(t+=1),s=t!==1/0&&t%2!=0?"reverse":"normal"),o="normal"===s?l:1-l,n.currentIteration=i,n.progress=o,n.easingFunction(o))}var rc=Da(function(t){return(t=void 0===t?"":t).replace(/-([a-z])/g,function(t){return t[1].toUpperCase()})});function ic(t){return!S(t)&&"string"==typeof t}function oc(t,e,n){var o=function(t,e){for(var n={},r=0;r<t.length;r++)for(var i in t[r]){var o;ac(i)&&(o={offset:t[r].offset,computedOffset:t[r].computedOffset,easing:t[r].easing,easingFunction:Ku(t[r].easing)||e.easingFunction,value:t[r][i]},n[i]=n[i]||[],n[i].push(o))}return n}(t,e),a=function(t,e){var n,r=[];for(n in t)for(var i=t[n],o=0;o<i.length-1;o++){var a=o,s=o+1,l=i[a].computedOffset,u=i[s].computedOffset,c=l,h=u;0===o&&(c=-1/0,0===u&&(s=a)),o===i.length-2&&(h=1/0,1===l&&(a=s)),r.push({applyFrom:c,applyTo:h,startOffset:i[a].computedOffset,endOffset:i[s].computedOffset,easingFunction:i[a].easingFunction,property:n,interpolation:function(t,e,n,r){var i=qc[t];if(i&&i.syntax&&i.interpolable){i=Jf.getPropertySyntax(i.syntax);if(i){var o,a=Jf.parseProperty(t,e,r),s=Jf.parseProperty(t,n,r),a=Jf.computeProperty(t,a,r),t=Jf.computeProperty(t,s,r),s=i.mixer(a,t,r);if(s)return o=sc.apply(void 0,s),function(t){return 0===t?e:1===t?n:o(t)}}}return sc(!1,!0,function(t){return t?n:e})}(n,i[a].value,i[s].value,e)})}return r.sort(function(t,e){return t.startOffset-e.startOffset}),r}(o,n);return function(r,i){if(null!==i)a.filter(function(t){return i>=t.applyFrom&&i<t.applyTo}).forEach(function(t){var e=i-t.startOffset,n=t.endOffset-t.startOffset,e=0==n?0:t.easingFunction(e/n);r.style[t.property]=t.interpolation(e)});else for(var t in o)ac(t)&&(r.style[t]=null)}}function ac(t){return"offset"!==t&&"easing"!==t&&"composite"!==t&&"computedOffset"!==t}var sc=function(e,n,r){return function(t){return r(function t(e,n,r){if("number"==typeof e&&"number"==typeof n)return e*(1-r)+n*r;if("boolean"==typeof e&&"boolean"==typeof n||"string"==typeof e&&"string"==typeof n)return r<.5?e:n;if(Array.isArray(e)&&Array.isArray(n)&&e.length===n.length){for(var i=[],o=0;o<e.length;o++)i.push(t(e[o],n[o],r));return i}throw new Error("Mismatched interpolation arguments "+e+":"+n)}(e,n,t))}};var M,lc={d:{alias:"path"},strokeDasharray:{alias:"lineDash"},strokeWidth:{alias:"lineWidth"},textAnchor:{alias:"textAlign",values:{middle:"center"}},src:{alias:"img"}},uc=Da(function(t){var t=rc(t),e=lc[t];return[t=(null==e?void 0:e.alias)||t,e]});function cc(t,e){var t=uc(t),n=t[0],t=t[1];return[n,ic(e)&&(null==t||null==(n=t.values)?void 0:n[e])||e]}(Lt=M=M||{}).GROUP="g",Lt.CIRCLE="circle",Lt.ELLIPSE="ellipse",Lt.IMAGE="image",Lt.RECT="rect",Lt.LINE="line",Lt.POLYLINE="polyline",Lt.POLYGON="polygon",Lt.TEXT="text",Lt.PATH="path",Lt.HTML="html",Lt.MESH="mesh";var hc=p.defineToken("");function dc(t,e,n,r){var i=(-1+Math.sqrt(2))/3*4,o=t*i,i=e*i,a=n-t,t=n+t,s=r-e,e=r+e;return[["M",a,r],["C",a,r-i,n-o,s,n,s],["C",n+o,s,t,r-i,t,r],["C",t,r+i,n+o,e,n,e],["C",n-o,e,a,r+i,a,r],["Z"]]}function pc(t,e){void 0===e&&(e=!0);var n,r,i,o,a,s,l,u,c,h,d=[];switch(t.nodeName){case M.LINE:var p=t.parsedStyle,d=[["M",p.x1,p.y1],["L",p.x2,p.y2]];break;case M.CIRCLE:var p=t.parsedStyle,f=p.r,y=p.cx,p=p.cy;d=dc(f,f,y,p);break;case M.ELLIPSE:var f=t.parsedStyle,y=f.rx,p=f.ry,g=f.cx,f=f.cy;d=dc(y,p,g,f);break;case M.POLYLINE:case M.POLYGON:y=t.parsedStyle.points;p=y.points,g=t.nodeName===M.POLYGON,p=p.map(function(t,e){return[0===e?"M":"L",t[0],t[1]]}),g&&p.push(["Z"]),d=p;break;case M.RECT:var f=t.parsedStyle,m=f.width,v=f.height,y=f.x,b=f.y,f=f.radius,x=f&&f.some(function(t){return 0!==t});n=m,r=v,y=y,b=b,x=x&&f.map(function(t){return Xl(t,0,Math.min(Math.abs(m)/2,Math.abs(v)/2))}),d=x?(o=(f=0<n?1:-1)+(E=0<r?1:-1)!=0?1:0,[["M",f*(i=x[0])+y,b],["L",n-f*(w=x[1])+y,b],w?["A",w,w,0,0,o,n+y,E*w+b]:null,["L",n+y,r-E*(w=x[2])+b],w?["A",w,w,0,0,o,n+y-f*w,r+b]:null,["L",y+f*(w=x[3]),r+b],w?["A",w,w,0,0,o,y,r+b-E*w]:null,["L",y,E*i+b],i?["A",i,i,0,0,o,f*i+y,b]:null,["Z"]].filter(function(t){return t})):[["M",y,b],["L",y+n,b],["L",y+n,b+r],["L",y,b+r],["Z"]];break;case M.PATH:var x=t.parsedStyle.path,w=x.curve,E=x.zCommandIndexes;d=[].concat(w),E.forEach(function(t,e){d.splice(t+e,1,["Z"])})}if(d.length)return a=d,s=t,(l=void 0===(l=e)?!0:l)&&(u=s.getLocalTransform()),e=(s=s.parsedStyle).defX,c=void 0===e?0:e,h=void 0===(e=s.defY)?0:e,a.reduce(function(t,e){var n,r,i,o="";return"M"===e[0]||"L"===e[0]?(i=_(e[1]-c,e[2]-h,0),l&&Fo(i,i,u),o=""+e[0]+i[0]+","+i[1]):"Z"===e[0]?o=e[0]:"C"===e[0]?(i=_(e[1]-c,e[2]-h,0),n=_(e[3]-c,e[4]-h,0),r=_(e[5]-c,e[6]-h,0),l&&(Fo(i,i,u),Fo(n,n,u),Fo(r,r,u)),o=""+e[0]+i[0]+","+i[1]+","+n[0]+","+n[1]+","+r[0]+","+r[1]):"A"===e[0]&&(i=_(e[6]-c,e[7]-h,0),l&&Fo(i,i,u),o=""+e[0]+e[1]+","+e[2]+","+e[3]+","+e[4]+","+e[5]+","+i[0]+","+i[1]),t+o},"")}function fc(t,e,n){var r=!1,i=!1,e=!!e&&!e.isNone,n=!!n&&!n.isNone;return"visiblepainted"===t||"painted"===t||"auto"===t?(r=e,i=n):"visiblefill"===t||"fill"===t?r=!0:"visiblestroke"===t||"stroke"===t?i=!0:"visible"!==t&&"all"!==t||(i=r=!0),[r,i]}function yc(){return this.call=this._createCall("sync"),this.call.apply(this,arguments)}function gc(){return this.callAsync=this._createCall("async"),this.callAsync.apply(this,arguments)}function mc(){return this.promise=this._createCall("promise"),this.promise.apply(this,arguments)}function vc(t){return Mc.setup(this,t),Mc.create(t)}function bc(t){return Oc.setup(this,t),Oc.create(t)}function xc(){throw new Error("tapAsync is not supported on a SyncHook")}function wc(){throw new Error("tapPromise is not supported on a SyncHook")}function Ec(t){return Ac.setup(this,t),Ac.create(t)}function _c(){throw new Error("tapAsync is not supported on a SyncWaterfallHook")}function kc(){throw new Error("tapPromise is not supported on a SyncWaterfallHook")}function Tc(t){return Cc.setup(this,t),Cc.create(t)}var Ht=function(){function t(t,e){void 0===t&&(t=[]),void 0===e&&(e=void 0),this.name=void 0,this.taps=void 0,this.promise=void 0,this._promise=void 0,this._args=t,this.name=e,this.taps=[],this.interceptors=[],this._call=yc,this.call=yc,this._callAsync=gc,this.callAsync=gc,this._promise=mc,this.promise=mc,this._x=void 0}var e=t.prototype;return e.compile=function(t){throw new Error("Abstract: should be overridden")},e._createCall=function(t){return this.compile({taps:this.taps,interceptors:this.interceptors,args:this._args,type:t})},e._tap=function(t,e,n){if("string"==typeof e)e={name:e.trim()};else if("object"!=typeof e||null===e)throw new Error("Invalid tap options");if("string"!=typeof e.name||""===e.name)throw new Error("Missing name for tap");e=Object.assign({type:t,fn:n},e),e=this._runRegisterInterceptors(e),this._insert(e)},e.tap=function(t,e){this._tap("sync",t,e)},e.tapAsync=function(t,e){this._tap("async",t,e)},e.tapPromise=function(t,e){this._tap("promise",t,e)},e._runRegisterInterceptors=function(t){for(var e=el(this.interceptors);!(n=e()).done;){var n=n.value;!n.register||void 0!==(n=n.register(t))&&(t=n)}return t},e.withOptions=function(e){function n(t){return Object.assign({},e,"string"==typeof t?{name:t}:t)}var r=this;return{name:this.name,tap:function(t,e){return r.tap(n(t),e)},tapAsync:function(t,e){return r.tapAsync(n(t),e)},tapPromise:function(t,e){return r.tapPromise(n(t),e)},isUsed:function(){return r.isUsed()},withOptions:function(t){return r.withOptions(n(t))}}},e.isUsed=function(){return 0<this.taps.length||0<this.interceptors.length},e._resetCompilation=function(){this.call=this._call,this.callAsync=this._callAsync,this.promise=this._promise},e._insert=function(t){this._resetCompilation(),"string"==typeof t.before?e=new Set([t.before]):Array.isArray(t.before)&&(e=new Set(t.before));for(var e,n=0,r=("number"==typeof t.stage&&(n=t.stage),this.taps.length);0<r;){r--;var i=this.taps[r],o=(this.taps[r+1]=i).stage||0;if(e){if(e.has(i.name)){e.delete(i.name);continue}if(0<e.size)continue}if(!(n<o)){r++;break}}this.taps[r]=t},t}(),Kt=function(){function t(t){this.config=t,this.options=void 0,this._args=void 0}var e=t.prototype;return e.create=function(t){var e;switch(this.init(t),this.options.type){case"sync":e=new Function(this.args(),'"use strict";\n'+this.header()+this.contentWithInterceptors({onError:function(t){return"throw "+t+";\n"},onResult:function(t){return"return "+t+";\n"},resultReturns:!0,onDone:function(){return""},rethrowIfPossible:!0}));break;case"async":e=new Function(this.args({after:"_callback"}),'"use strict";\n'+this.header()+this.contentWithInterceptors({onError:function(t){return"_callback("+t+");\n"},onResult:function(t){return"_callback(null, "+t+");\n"},onDone:function(){return"_callback();\n"}}));break;case"promise":var n=!1,r=this.contentWithInterceptors({onError:function(t){return n=!0,"_error("+t+");\n"},onResult:function(t){return"_resolve("+t+");\n"},onDone:function(){return"_resolve();\n"}}),i="",i=(i+='"use strict";\n')+this.header()+"return new Promise((function(_resolve, _reject) {\n";n&&(i+="var _sync = true;\nfunction _error(_err) {\nif(_sync)\n_resolve(Promise.resolve().then((function() { throw _err; })));\nelse\n_reject(_err);\n};\n"),i+=r,n&&(i+="_sync = false;\n"),i+="}));\n",e=new Function(this.args(),i)}return this.deinit(),e},e.setup=function(t,e){t._x=e.taps.map(function(t){return t.fn})},e.init=function(t){this.options=t,this._args=t.args.slice()},e.deinit=function(){this.options=void 0,this._args=void 0},e.contentWithInterceptors=function(t){var r=this;if(0<this.options.interceptors.length){for(var i=t.onError,o=t.onResult,n=t.onDone,e="",a=0;a<this.options.interceptors.length;a++){var s=this.options.interceptors[a];s.call&&(e+=this.getInterceptor(a)+".call("+this.args({before:s.context?"_context":void 0})+");\n")}return e+=this.content(Object.assign(t,{onError:i&&function(t){for(var e="",n=0;n<r.options.interceptors.length;n++)r.options.interceptors[n].error&&(e+=r.getInterceptor(n)+".error("+t+");\n");return e+=i(t)},onResult:o&&function(t){for(var e="",n=0;n<r.options.interceptors.length;n++)r.options.interceptors[n].result&&(e+=r.getInterceptor(n)+".result("+t+");\n");return e+=o(t)},onDone:n&&function(){for(var t="",e=0;e<r.options.interceptors.length;e++)r.options.interceptors[e].done&&(t+=r.getInterceptor(e)+".done();\n");return t+=n()}}))}return this.content(t)},e.header=function(){var t="";return this.needContext()?t+="var _context = {};\n":t+="var _context;\n",t+="var _x = this._x;\n",0<this.options.interceptors.length&&(t+="var _taps = this.taps;\nvar _interceptors = this.interceptors;\n"),t},e.needContext=function(){for(var t,e=el(this.options.taps);!(t=e()).done;)if(t.value.context)return!0;return!1},e.callTap=function(t,e){for(var n=e.onError,r=e.onResult,i=e.onDone,o=e.rethrowIfPossible,a="",s=!1,l=0;l<this.options.interceptors.length;l++){var u=this.options.interceptors[l];u.tap&&(s||(a+="var _tap"+t+" = "+this.getTap(t)+";\n",s=!0),a+=this.getInterceptor(l)+".tap("+(u.context?"_context, ":"")+"_tap"+t+");\n")}a+="var _fn"+t+" = "+this.getTapFn(t)+";\n";var c=this.options.taps[t];switch(c.type){case"sync":o||(a=a+"var _hasError"+t+" = false;\ntry {\n"),a+=r?"var _result"+t+" = _fn"+t+"("+this.args({before:c.context?"_context":void 0})+");\n":"_fn"+t+"("+this.args({before:c.context?"_context":void 0})+");\n",o||(a=(a=(a=a+"} catch(_err) {\n_hasError"+t+" = true;\n")+n("_err"))+"}\nif(!_hasError"+t+") {\n"),r&&(a+=r("_result"+t)),i&&(a+=i()),o||(a+="}\n");break;case"async":var h=(h=(h="")+(r?"(function(_err"+t+", _result"+t+") {\n":"(function(_err"+t+") {\n")+("if(_err"+t+") {\n"))+n("_err"+t)+"} else {\n";r&&(h+=r("_result"+t)),i&&(h+=i()),a+="_fn"+t+"("+this.args({before:c.context?"_context":void 0,after:h=h+"}\n"+"})"})+");\n";break;case"promise":a=(a=(a=(a+="var _hasResult"+t+" = false;\n")+("var _promise"+t+" = _fn"+t+"("+this.args({before:c.context?"_context":void 0})+");\n"))+("if (!_promise"+t+" || !_promise"+t+".then)\n")+(" throw new Error('Tap function (tapPromise) did not return promise (returned ' + _promise"+t+" + ')');\n"))+("_promise"+t+".then((function(_result"+t+") {\n")+("_hasResult"+t+" = true;\n"),r&&(a+=r("_result"+t)),i&&(a+=i()),a=(a=a+("}), function(_err"+t+") {\n")+("if(_hasResult"+t+") throw _err"+t+";\n"))+n("_err"+t)+"});\n"}return a},e.callTapsSeries=function(t){var o=this,a=t.onError,s=t.onResult,e=t.resultReturns,l=t.onDone,n=t.doneReturns,u=t.rethrowIfPossible;if(0===this.options.taps.length)return l();for(var c=this.options.taps.findIndex(function(t){return"sync"!==t.type}),h=e||n,d="",p=l,f=0,r=function(t){function e(t){return t?"":l()}var n=t,r=(p!==l&&("sync"!==o.options.taps[n].type||20<f++)&&(f=0,d=(d+="function _next"+n+"() {\n")+p()+"}\n",p=function(){return(h?"return ":"")+"_next"+n+"();\n"}),p),i=o.callTap(n,{onError:function(t){return a(n,t,r,e)},onResult:s&&function(t){return s(n,t,r,e)},onDone:!s&&r,rethrowIfPossible:u&&(c<0||n<c)});p=function(){return i}},i=this.options.taps.length-1;0<=i;i--)r(i);return d+=p()},e.callTapsLooping=function(t){var e=t.onError,n=t.onDone,t=t.rethrowIfPossible;if(0===this.options.taps.length)return n();var o=this.options.taps.every(function(t){return"sync"===t.type}),r="";o||(r+="var _looper = (function() {\nvar _loopAsync = false;\n");for(var r=(r+="var _loop;\n")+"do {\n"+"_loop = false;\n",i=0;i<this.options.interceptors.length;i++){var a=this.options.interceptors[i];a.loop&&(r+=this.getInterceptor(i)+".loop("+this.args({before:a.context?"_context":void 0})+");\n")}return r=r+this.callTapsSeries({onError:e,onResult:function(t,e,n,r){var i=(i="")+("if("+e+" !== undefined) {\n")+"_loop = true;\n";return o||(i+="if(_loopAsync) _looper();\n"),i=(i=i+r(!0)+"} else {\n")+n()+"}\n"},onDone:n&&function(){var t="";return(t+="if(!_loop) {\n")+n()+"}\n"},rethrowIfPossible:t&&o})+"} while(_loop);\n",o||(r+="_loopAsync = true;\n});\n_looper();\n"),r},e.callTapsParallel=function(t){var e=this,o=t.onError,a=t.onResult,s=t.onDone,l=t.rethrowIfPossible,t=t.onTap,u=void 0===t?function(t,e){return e()}:t;if(this.options.taps.length<=1)return this.callTapsSeries({onError:o,onResult:a,onDone:s,rethrowIfPossible:l});for(var c="",n=(c=(c+="do {\n")+("var _counter = "+this.options.taps.length+";\n"),s&&(c=(c+="var _done = (function() {\n")+s()+"});\n"),function(n){function r(){return s?"if(--_counter === 0) _done();\n":"--_counter;"}function i(t){return t||!s?"_counter = 0;\n":"_counter = 0;\n_done();\n"}c=(c+="if(_counter <= 0) break;\n")+u(n,function(){return e.callTap(n,{onError:function(t){var e="";return(e+="if(_counter > 0) {\n")+o(n,t,r,i)+"}\n"},onResult:a&&function(t){var e="";return(e+="if(_counter > 0) {\n")+a(n,t,r,i)+"}\n"},onDone:!a&&r,rethrowIfPossible:l})},r,i)}),r=0;r<this.options.taps.length;r++)n(r);return c+="} while(false);\n"},e.args=function(t){var t=void 0===t?{}:t,e=t.before,t=t.after,n=this._args;return e&&(n=[e].concat(n)),0===(n=t?n.concat(t):n).length?"":n.join(", ")},e.getTapFn=function(t){return"_x["+t+"]"},e.getTap=function(t){return"_taps["+t+"]"},e.getInterceptor=function(t){return"_interceptors["+t+"]"},t}(),Mc=new(function(t){function e(){return t.apply(this,arguments)||this}return b(e,t),e.prototype.content=function(t){var i=t.onError,t=t.onDone;return this.callTapsParallel({onError:function(t,e,n,r){return i(e)+r(!0)},onDone:t})},e}(Kt)),Sc=function(n){function t(t,e){return(t=n.call(this,t=void 0===t?[]:t,e=void 0===e?void 0:e)||this).compile=vc,t._call=void 0,t.call=void 0,t}return b(t,n),t}(Ht),Oc=new(function(t){function e(){return t.apply(this,arguments)||this}return b(e,t),e.prototype.content=function(t){var i=this,o=t.onError,e=t.onResult;return t.onDone,this.callTapsSeries({onError:function(t,e,n,r){return o(e)+r(!0)},onResult:function(t,e,n){var r="";return(r+="if("+e+" !== undefined) {\n")+(i._args[0]+" = "+e+";\n")+"}\n"+n()},onDone:function(){return e(i._args[0])}})},e}(Kt)),Pc=function(n){function t(t,e){return(t=n.call(this,t=void 0===t?[]:t,e=void 0===e?void 0:e)||this).compile=bc,t._call=void 0,t.call=void 0,t}return b(t,n),t}(Ht),Ac=new(function(t){function e(){return t.apply(this,arguments)||this}return b(e,t),e.prototype.content=function(t){var n=t.onError,e=t.onDone,t=t.rethrowIfPossible;return this.callTapsSeries({onError:function(t,e){return n(e)},onDone:e,rethrowIfPossible:t})},e}(Kt)),Nc=function(n){function t(t,e){return(t=n.call(this,t=void 0===t?[]:t,e=void 0===e?void 0:e)||this).tapAsync=xc,t.tapPromise=wc,t.compile=Ec,t}return b(t,n),t}(Ht),Cc=new(function(t){function e(){return t.apply(this,arguments)||this}return b(e,t),e.prototype.content=function(t){var i=this,n=t.onError,e=t.onResult,r=t.resultReturns,t=t.rethrowIfPossible;return this.callTapsSeries({onError:function(t,e){return n(e)},onResult:function(t,e,n){var r="";return(r+="if("+e+" !== undefined) {\n")+(i._args[0]+" = "+e+";\n")+"}\n"+n()},onDone:function(){return e(i._args[0])},doneReturns:r,rethrowIfPossible:t})},e}(Kt)),Lc=function(n){function t(t,e){return(t=n.call(this,t=void 0===t?[]:t,e=void 0===e?void 0:e)||this).tapAsync=_c,t.tapPromise=kc,t.compile=Tc,t}return b(t,n),t}(Nc),Ic=["serif","sans-serif","monospace","cursive","fantasy","system-ui"];function jc(t){return ih[t]||(ih[t]=new sl(t)),ih[t]}var Rc,Dc=p.defineToken(""),Bc=p.defineToken(""),Fc=function(){function g(t,e){this.center=m(),this.halfExtents=m(),this.min=m(),this.max=m(),this.update(t,e)}g.isEmpty=function(t){return!t||0===t.halfExtents[0]&&0===t.halfExtents[1]&&0===t.halfExtents[2]};var t=g.prototype;return t.update=function(t,e){t&&No(this.center,t),e&&No(this.halfExtents,e||_(0,0,0)),this.min=Go(this.min,this.center,this.halfExtents),this.max=Lo(this.max,this.center,this.halfExtents)},t.setMinMax=function(t,e){Lo(this.center,e,t),jo(this.center,this.center,.5),Go(this.halfExtents,e,t),jo(this.halfExtents,this.halfExtents,.5),No(this.min,t),No(this.max,e)},t.getMin=function(){return this.min},t.getMax=function(){return this.max},t.add=function(t){var e,n,r,i,o,a,s,l,u,c,h,d,p,f,y;g.isEmpty(t)||(g.isEmpty(this)?this.setMinMax(t.getMin(),t.getMax()):(n=(e=this.center)[0],f=e[1],o=e[2],i=(r=this.halfExtents)[0],h=r[1],a=r[2],l=(d=t.center)[0],y=d[1],d=d[2],u=(t=t.halfExtents)[0],(p=y-(c=t[1]))<(s=f-h)&&(s=p),(p=f+h)<(f=y+c)&&(p=f),(y=d-(h=t[2]))<(c=o-a)&&(c=y),(f=o+a)<(t=d+h)&&(f=t),e[0]=.5*((o=(y=l-u)<(o=n-i)?y:o)+(a=(a=n+i)<(d=l+u)?d:a)),e[1]=.5*(s+p),e[2]=.5*(c+f),r[0]=.5*(a-o),r[1]=.5*(p-s),r[2]=.5*(f-c),this.min[0]=o,this.min[1]=s,this.min[2]=c,this.max[0]=a,this.max[1]=p,this.max[2]=f))},t.setFromTransformedAABB=function(t,e){var n=this.center,r=this.halfExtents,i=t.center,t=t.halfExtents,o=e[0],a=e[4],s=e[8],l=e[1],u=e[5],c=e[9],h=e[2],d=e[6],p=e[10],f=Math.abs(o),y=Math.abs(a),g=Math.abs(s),m=Math.abs(l),v=Math.abs(u),b=Math.abs(c),x=Math.abs(h),w=Math.abs(d),E=Math.abs(p);Co(n,e[12]+o*i[0]+a*i[1]+s*i[2],e[13]+l*i[0]+u*i[1]+c*i[2],e[14]+h*i[0]+d*i[1]+p*i[2]),Co(r,f*t[0]+y*t[1]+g*t[2],m*t[0]+v*t[1]+b*t[2],x*t[0]+w*t[1]+E*t[2]),this.min=Go(this.min,n,r),this.max=Lo(this.max,n,r)},t.intersects=function(t){var e=this.getMax(),n=this.getMin(),r=t.getMax(),t=t.getMin();return n[0]<=r[0]&&e[0]>=t[0]&&n[1]<=r[1]&&e[1]>=t[1]&&n[2]<=r[2]&&e[2]>=t[2]},t.intersection=function(t){var e,n,r,i;return this.intersects(t)?(e=new g,i=m(),n=this.getMin(),r=t.getMin(),i[0]=Math.max(n[0],r[0]),i[1]=Math.max(n[1],r[1]),i[2]=Math.max(n[2],r[2]),n=i,r=m(),i=this.getMax(),t=t.getMax(),r[0]=Math.min(i[0],t[0]),r[1]=Math.min(i[1],t[1]),r[2]=Math.min(i[2],t[2]),e.setMinMax(n,r),e):null},t.containsPoint=function(t){var e=this.getMin(),n=this.getMax();return!(t[0]<e[0]||t[0]>n[0]||t[1]<e[1]||t[1]>n[1]||t[2]<e[2]||t[2]>n[2])},t.getNegativeFarPoint=function(t){return 273===t.pnVertexFlag?No(m(),this.min):272===t.pnVertexFlag?_(this.min[0],this.min[1],this.max[2]):257===t.pnVertexFlag?_(this.min[0],this.max[1],this.min[2]):256===t.pnVertexFlag?_(this.min[0],this.max[1],this.max[2]):17===t.pnVertexFlag?_(this.max[0],this.min[1],this.min[2]):16===t.pnVertexFlag?_(this.max[0],this.min[1],this.max[2]):1===t.pnVertexFlag?_(this.max[0],this.max[1],this.min[2]):_(this.max[0],this.max[1],this.max[2])},t.getPositiveFarPoint=function(t){return 273===t.pnVertexFlag?No(m(),this.max):272===t.pnVertexFlag?_(this.max[0],this.max[1],this.min[2]):257===t.pnVertexFlag?_(this.max[0],this.min[1],this.max[2]):256===t.pnVertexFlag?_(this.max[0],this.min[1],this.min[2]):17===t.pnVertexFlag?_(this.min[0],this.max[1],this.max[2]):16===t.pnVertexFlag?_(this.min[0],this.max[1],this.min[2]):1===t.pnVertexFlag?_(this.min[0],this.min[1],this.max[2]):_(this.min[0],this.min[1],this.min[2])},g}(),zc=(m(),function(){function t(t,e){this.distance=void 0,this.normal=void 0,this.pnVertexFlag=void 0,this.distance=t||0,this.normal=e||_(0,1,0),this.updatePNVertexFlag()}var e=t.prototype;return e.updatePNVertexFlag=function(){this.pnVertexFlag=(Number(0<=this.normal[0])<<8)+(Number(0<=this.normal[1])<<4)+Number(0<=this.normal[2])},e.distanceToPoint=function(t){return Do(t,this.normal)-this.distance},e.normalize=function(){var t=1/Wo(this.normal);jo(this.normal,this.normal,t),this.distance*=t},e.intersectsLine=function(t,e,n){var r=this.distanceToPoint(t),r=r/(r-this.distanceToPoint(e)),i=0<=r&&r<=1;return i&&n&&Bo(n,t,e,r),i},t}()),Vc=((h=Rc=Rc||{})[h.OUTSIDE=4294967295]="OUTSIDE",h[h.INSIDE=0]="INSIDE",h[h.INDETERMINATE=2147483647]="INDETERMINATE",function(){function t(t){if(this.planes=[],t)this.planes=t;else for(var e=0;e<6;e++)this.planes.push(new zc)}return t.prototype.extractFromVPMatrix=function(t){var e=t[0],n=t[1],r=t[2],i=t[3],o=t[4],a=t[5],s=t[6],l=t[7],u=t[8],c=t[9],h=t[10],d=t[11],p=t[12],f=t[13],y=t[14],t=t[15];Co(this.planes[0].normal,i-e,l-o,d-u),this.planes[0].distance=t-p,Co(this.planes[1].normal,i+e,l+o,d+u),this.planes[1].distance=t+p,Co(this.planes[2].normal,i+n,l+a,d+c),this.planes[2].distance=t+f,Co(this.planes[3].normal,i-n,l-a,d-c),this.planes[3].distance=t-f,Co(this.planes[4].normal,i-r,l-s,d-h),this.planes[4].distance=t-y,Co(this.planes[5].normal,i+r,l+s,d+h),this.planes[5].distance=t+y,this.planes.forEach(function(t){t.normalize(),t.updatePNVertexFlag()})},t}()),Gc=(m(),m(),m(),m(),m(),function(){function t(t,e){void 0===t&&(t=0),void 0===e&&(e=0),this.x=0,this.y=0,this.x=t,this.y=e}var e=t.prototype;return e.clone=function(){return new t(this.x,this.y)},e.copyFrom=function(t){this.x=t.x,this.y=t.y},t}()),Hc=function(){function t(t,e,n,r){this.x=void 0,this.y=void 0,this.width=void 0,this.height=void 0,this.left=void 0,this.right=void 0,this.top=void 0,this.bottom=void 0,this.x=t,this.y=e,this.width=n,this.height=r,this.left=t,this.right=t+n,this.top=e,this.bottom=e+r}return t.prototype.toJSON=function(){},t}(),Wc=p.defineToken(""),Yc=p.defineToken(""),Uc=[{name:"display",keywords:["none"]},{name:"opacity",interpolable:!0,inherited:!0,defaultValue:"1",syntax:w.OPACITY_VALUE},{name:"fillOpacity",interpolable:!0,inherited:!0,defaultValue:"1",syntax:w.OPACITY_VALUE},{name:"strokeOpacity",interpolable:!0,inherited:!0,defaultValue:"1",syntax:w.OPACITY_VALUE},{name:"fill",interpolable:!0,keywords:["none"],defaultValue:"none",syntax:w.PAINT},{name:"stroke",interpolable:!0,keywords:["none"],defaultValue:"none",syntax:w.PAINT},{name:"shadowType",keywords:["inner","outer","both"],defaultValue:"outer",layoutDependent:!0},{name:"shadowColor",interpolable:!0,syntax:w.COLOR},{name:"shadowOffsetX",interpolable:!0,layoutDependent:!0,defaultValue:"0",syntax:w.LENGTH_PERCENTAGE},{name:"shadowOffsetY",interpolable:!0,layoutDependent:!0,defaultValue:"0",syntax:w.LENGTH_PERCENTAGE},{name:"shadowBlur",interpolable:!0,layoutDependent:!0,defaultValue:"0",syntax:w.SHADOW_BLUR},{name:"lineWidth",interpolable:!0,inherited:!0,defaultValue:"1",layoutDependent:!0,alias:["strokeWidth"],syntax:w.LENGTH_PERCENTAGE},{name:"increasedLineWidthForHitTesting",inherited:!0,defaultValue:"0",layoutDependent:!0,syntax:w.LENGTH_PERCENTAGE},{name:"lineJoin",inherited:!0,layoutDependent:!0,alias:["strokeLinejoin"],keywords:["miter","bevel","round"],defaultValue:"miter"},{name:"lineCap",inherited:!0,layoutDependent:!0,alias:["strokeLinecap"],keywords:["butt","round","square"],defaultValue:"butt"},{name:"lineDash",interpolable:!0,inherited:!0,keywords:["none"],alias:["strokeDasharray"],syntax:w.LENGTH_PERCENTAGE_12},{name:"lineDashOffset",interpolable:!0,inherited:!0,defaultValue:"0",alias:["strokeDashoffset"],syntax:w.LENGTH_PERCENTAGE},{name:"offsetPath",syntax:w.OFFSET_PATH},{name:"offsetDistance",interpolable:!0,syntax:w.OFFSET_DISTANCE},{name:"dx",interpolable:!0,layoutDependent:!0,defaultValue:"0",syntax:w.LENGTH_PERCENTAGE},{name:"dy",interpolable:!0,layoutDependent:!0,defaultValue:"0",syntax:w.LENGTH_PERCENTAGE},{name:"zIndex",independent:!0,interpolable:!0,defaultValue:"0",keywords:["auto"],syntax:w.Z_INDEX},{name:"visibility",keywords:["visible","hidden"],independent:!0,inherited:!0,defaultValue:"visible"},{name:"pointerEvents",inherited:!0,keywords:["none","auto","stroke","fill","painted","visible","visiblestroke","visiblefill","visiblepainted","all"],defaultValue:"auto"},{name:"filter",independent:!0,layoutDependent:!0,keywords:["none"],defaultValue:"none",syntax:w.FILTER},{name:"clipPath",syntax:w.CLIP_PATH},{name:"transform",parsePriority:100,interpolable:!0,keywords:["none"],defaultValue:"none",syntax:w.TRANSFORM},{name:"transformOrigin",parsePriority:100,defaultValue:function(t){return t===M.CIRCLE||t===M.ELLIPSE?"center":t===M.TEXT?"text-anchor":"left top"},layoutDependent:!0,syntax:w.TRANSFORM_ORIGIN},{name:"anchor",parsePriority:99,defaultValue:function(t){return t===M.CIRCLE||t===M.ELLIPSE?"0.5 0.5":"0 0"},layoutDependent:!0,syntax:w.LENGTH_PERCENTAGE_12},{name:"cx",interpolable:!0,defaultValue:"0",syntax:w.COORDINATE},{name:"cy",interpolable:!0,defaultValue:"0",syntax:w.COORDINATE},{name:"r",interpolable:!0,layoutDependent:!0,defaultValue:"0",syntax:w.LENGTH_PERCENTAGE},{name:"rx",interpolable:!0,layoutDependent:!0,defaultValue:"0",syntax:w.LENGTH_PERCENTAGE},{name:"ry",interpolable:!0,layoutDependent:!0,defaultValue:"0",syntax:w.LENGTH_PERCENTAGE},{name:"x",interpolable:!0,defaultValue:"0",syntax:w.COORDINATE},{name:"y",interpolable:!0,defaultValue:"0",syntax:w.COORDINATE},{name:"z",interpolable:!0,defaultValue:"0",syntax:w.COORDINATE},{name:"width",interpolable:!0,layoutDependent:!0,keywords:["auto","fit-content","min-content","max-content"],defaultValue:"0",syntax:w.LENGTH_PERCENTAGE},{name:"height",interpolable:!0,layoutDependent:!0,keywords:["auto","fit-content","min-content","max-content"],defaultValue:"0",syntax:w.LENGTH_PERCENTAGE},{name:"radius",interpolable:!0,layoutDependent:!0,defaultValue:"0",syntax:w.LENGTH_PERCENTAGE_14},{name:"x1",interpolable:!0,layoutDependent:!0,syntax:w.COORDINATE},{name:"y1",interpolable:!0,layoutDependent:!0,syntax:w.COORDINATE},{name:"z1",interpolable:!0,layoutDependent:!0,syntax:w.COORDINATE},{name:"x2",interpolable:!0,layoutDependent:!0,syntax:w.COORDINATE},{name:"y2",interpolable:!0,layoutDependent:!0,syntax:w.COORDINATE},{name:"z2",interpolable:!0,layoutDependent:!0,syntax:w.COORDINATE},{name:"path",interpolable:!0,layoutDependent:!0,defaultValue:"",alias:["d"],syntax:w.PATH,parsePriority:50},{name:"points",layoutDependent:!0,syntax:w.LIST_OF_POINTS,parsePriority:50},{name:"text",layoutDependent:!0,defaultValue:"",syntax:w.TEXT,parsePriority:50},{name:"textTransform",layoutDependent:!0,inherited:!0,keywords:["capitalize","uppercase","lowercase","none"],defaultValue:"none",syntax:w.TEXT_TRANSFORM,parsePriority:51},{name:"font",layoutDependent:!0},{name:"fontSize",interpolable:!0,inherited:!0,defaultValue:"16px",layoutDependent:!0,syntax:w.LENGTH_PERCENTAGE},{name:"fontFamily",layoutDependent:!0,inherited:!0,defaultValue:"sans-serif"},{name:"fontStyle",layoutDependent:!0,inherited:!0,keywords:["normal","italic","oblique"],defaultValue:"normal"},{name:"fontWeight",layoutDependent:!0,inherited:!0,keywords:["normal","bold","bolder","lighter"],defaultValue:"normal"},{name:"fontVariant",layoutDependent:!0,inherited:!0,keywords:["normal","small-caps"],defaultValue:"normal"},{name:"lineHeight",layoutDependent:!0,syntax:w.LENGTH,interpolable:!0,defaultValue:"0"},{name:"letterSpacing",layoutDependent:!0,syntax:w.LENGTH,interpolable:!0,defaultValue:"0"},{name:"miterLimit",layoutDependent:!0,syntax:w.NUMBER,defaultValue:function(t){return t===M.PATH||t===M.POLYGON||t===M.POLYLINE?"4":"10"}},{name:"wordWrap",layoutDependent:!0},{name:"wordWrapWidth",layoutDependent:!0},{name:"leading",layoutDependent:!0},{name:"textBaseline",layoutDependent:!0,inherited:!0,keywords:["top","hanging","middle","alphabetic","ideographic","bottom"],defaultValue:"alphabetic"},{name:"textAlign",layoutDependent:!0,inherited:!0,keywords:["start","center","end","left","right"],defaultValue:"start"},{name:"whiteSpace",layoutDependent:!0},{name:"markerStart",syntax:w.MARKER},{name:"markerEnd",syntax:w.MARKER},{name:"markerMid",syntax:w.MARKER},{name:"markerStartOffset",syntax:w.LENGTH,layoutDependent:!0,interpolable:!0,defaultValue:"0"},{name:"markerEndOffset",syntax:w.LENGTH,layoutDependent:!0,interpolable:!0,defaultValue:"0"}],qc={},Xc={},Zc={},Kc=Da(function(t){return t.sort(function(t,e){return Zc[t]-Zc[e]})}),$c=m(),Jc=m(),Qc=m(),th=new sl("unset"),zt=new sl("initial"),jt=new sl("inherit"),eh=new Ll(0,0,0,0,!0),nh=new Ll(0,0,0,0),rh=Da(function(t,e,n,r){return new Ll(t,e,n,r)},function(t,e,n,r){return"rgba("+t+","+e+","+n+","+r+")"}),ih={"":th,unset:th,initial:zt,inherit:jt},oh=function(){function t(){this.propertySyntaxFactory=void 0,this.geometryUpdaterFactory=void 0}var e=t.prototype;return e.init=function(){var e=this;Uc.forEach(function(t){e.registerMetadata(t)})},e.registerMetadata=function(e){[e.name].concat(e.alias||[]).forEach(function(t){qc[t]=e,Zc[t]=e.parsePriority||0})},e.unregisterMetadata=function(t){delete qc[t]},e.getPropertySyntax=function(t){return this.propertySyntaxFactory(t)},e.processProperties=function(n,r,t){var i=this,t=t=void 0===t?{skipUpdateAttribute:!1,skipParse:!1,forceUpdateGeometry:!1,usedAttributes:[]}:t,o=t.skipUpdateAttribute,e=t.skipParse,a=t.forceUpdateGeometry,t=t.usedAttributes,s=a,a=Object.keys(r);a.forEach(function(t){var t=cc(t,r[t]),e=t[0],t=t[1];o||(n.attributes[e]=t),!s&&null!=(t=qc[e])&&t.layoutDependent&&(s=!0)}),e||a.forEach(function(t){n.computedStyle[t]=i.parseProperty(t,n.attributes[t],n)}),(a=Kc(null!=t&&t.length?Array.from(new Set(a.concat(t))):a)).forEach(function(t){t in n.computedStyle&&(n.parsedStyle[t]=i.computeProperty(t,n.computedStyle[t],n))}),s&&this.updateGeometry(n),a.forEach(function(t){t in n.parsedStyle&&i.postProcessProperty(t,n)}),n.children.length&&a.forEach(function(e){e in n.parsedStyle&&i.isPropertyInheritable(e)&&n.children.forEach(function(t){t.internalSetAttribute(e,null,{skipUpdateAttribute:!0,skipParse:!0})})})},e.parseProperty=function(t,e,n){var r,t=qc[t],i=e;return"unset"===(e=""!==e&&!S(e)?e:"unset")||"initial"===e||"inherit"===e?i=jc(e):t&&(r=t.keywords,t=(t=t.syntax)&&this.getPropertySyntax(t),r&&-1<r.indexOf(e)?i=jc(e):t&&t.parser&&(i=t.parser(e,n))),i},e.computeProperty=function(t,e,n){var r=qc[t],i="g-root"===n.id,o=e;if(r){var a=r.syntax,s=r.inherited,r=r.defaultValue;if(e instanceof sl){var l=e.value;if("initial"===(l="unset"===l?s&&!i?"inherit":"initial":l))S(r)||(e=this.parseProperty(t,dl(r)?r(n.nodeName):r,n));else if("inherit"===l)return S(s=this.tryToResolveProperty(n,t,{inherited:!0}))?void this.addUnresolveProperty(n,t):s}i=a&&this.getPropertySyntax(a);o=i&&i.calculator?(r=n.parsedStyle[t],i.calculator(t,r,e,n,this)):e instanceof sl?e.value:e}return o},e.postProcessProperty=function(t,e){var t=qc[t];t&&t.syntax&&((t=t.syntax&&this.getPropertySyntax(t.syntax))&&t.postProcessor&&t.postProcessor(e))},e.isPropertyResolved=function(t,e){return!Xc[t.entity]||0===Xc[t.entity].length||Xc[t.entity].includes(e)},e.addUnresolveProperty=function(t,e){Xc[t.entity]||(Xc[t.entity]=[]),-1===Xc[t.entity].indexOf(e)&&Xc[t.entity].push(e)},e.tryToResolveProperty=function(t,e,n){var n=(n=void 0===n?{}:n).inherited;if(n&&(t.parentElement&&this.isPropertyResolved(t.parentElement,e)))return"unset"===(n=t.parentElement.parsedStyle[e])||"initial"===n||"inherit"===n?void 0:n},e.recalc=function(e){var n,t=Xc[e.entity];t&&t.length&&(n={},t.forEach(function(t){n[t]=e.attributes[t]}),this.processProperties(e,n),delete Xc[e.entity])},e.updateGeometry=function(t){var s,e,n,r,i,o,a,l,u,c,h,d,p,f,y,g,m,v=this.geometryUpdaterFactory(t.nodeName);v&&((s=t.geometry).contentBounds||(s.contentBounds=new Fc),s.renderBounds||(s.renderBounds=new Fc),e=t.parsedStyle,p=(v=v.update(e,t)).width,d=v.height,f=void 0===(f=v.depth)?0:f,h=void 0===(h=v.offsetX)?0:h,m=void 0===(m=v.offsetY)?0:m,v=void 0===(v=v.offsetZ)?0:v,n=p<0,r=d<0,f=Co($c,Math.abs(p)/2,Math.abs(d)/2,f/2),l=e.stroke,u=e.lineWidth,c=e.increasedLineWidthForHitTesting,g=e.shadowType,y=e.shadowColor,i=void 0===(i=e.filter)?[]:i,o=e.transformOrigin,a=e.anchor,t.nodeName===M.TEXT&&delete e.anchor,p=Co(Jc,(1-2*(a&&a[0]||0))*p/2+h,(1-2*(a&&a[1]||0))*d/2+m,(1-2*(a&&a[2]||0))*f[2]+v),s.contentBounds.update(p,f),h=t.nodeName===M.POLYLINE||t.nodeName===M.POLYGON||t.nodeName===M.PATH?Math.SQRT2:.5,l&&!l.isNone&&Lo(f,f,Co(Qc,d=((u||0)+(c||0))*h,d,0)),s.renderBounds.update(p,f),y&&g&&"inner"!==g&&(v=(m=s.renderBounds).min,l=m.max,u=e.shadowBlur||0,c=e.shadowOffsetX||0,h=e.shadowOffsetY||0,d=v[0]-u+c,p=l[0]+u+c,f=v[1]-u+h,y=l[1]+u+h,v[0]=Math.min(v[0],d),l[0]=Math.max(l[0],p),v[1]=Math.min(v[1],f),l[1]=Math.max(l[1],y),s.renderBounds.setMinMax(v,l)),i.forEach(function(t){var e,n,r,i,o,a=t.name,t=t.params;"blur"===a?(i=t[0].value,s.renderBounds.update(s.renderBounds.center,Lo(s.renderBounds.halfExtents,s.renderBounds.halfExtents,_(i,i,0)))):"drop-shadow"===a&&(i=t[0].value,a=t[1].value,t=t[2].value,e=(n=s.renderBounds).min,n=n.max,r=e[0]-t+i,i=n[0]+t+i,o=e[1]-t+a,t=n[1]+t+a,e[0]=Math.min(e[0],r),n[0]=Math.max(n[0],i),e[1]=Math.min(e[1],o),n[1]=Math.max(n[1],t),s.renderBounds.setMinMax(e,n))}),a=e.anchor,g=(n?-1:1)*_h(o[0],0,t),m=(r?-1:1)*_h(o[1],1,t),g-=(n?-1:1)*(a&&a[0]||0)*s.contentBounds.halfExtents[0]*2,m-=(r?-1:1)*(a&&a[1]||0)*s.contentBounds.halfExtents[1]*2,t.setOrigin(g,m),x.dirtifyToRoot(t))},e.isPropertyInheritable=function(t){t=qc[t];return!!t&&t.inherited},t}(),ah=(t([y(Wc),e("design:type",Function)],oh.prototype,"propertySyntaxFactory",void 0),t([y(Dc),e("design:type",Function)],oh.prototype,"geometryUpdaterFactory",void 0),t([Ct.postConstruct(),e("design:type",Function),e("design:paramtypes",[]),e("design:returntype",void 0)],oh.prototype,"init",null),oh=t([f({token:Yt})],oh),/^l\s*\(\s*([\d.]+)\s*\)\s*(.*)/i),sh=/^r\s*\(\s*([\d.]+)\s*,\s*([\d.]+)\s*,\s*([\d.]+)\s*\)\s*(.*)/i,lh=/^p\s*\(\s*([axyn])\s*\)\s*(.*)/i,uh=/[\d.]+:(#[^\s]+|[^\)]+\))/gi;var ch={left:180,top:-90,bottom:90,right:0,"left top":225,"top left":225,"left bottom":135,"bottom left":135,"right top":-45,"top right":-45,"right bottom":45,"bottom right":45},hh=Da(function(t){t="angular"===t.type?Number(t.value):ch[t.value]||0;return t}),dh=Da(function(t){var e,n=.5,r=.5;return"position"===(null==t?void 0:t.type)&&(e=(t=t.value).x,t=t.y,"position-keyword"===(null==e?void 0:e.type)&&("left"===e.value?n=0:"center"===e.value?n=.5:"right"===e.value?n=1:"top"===e.value?r=0:"bottom"===e.value&&(r=1)),"position-keyword"===(null==t?void 0:t.type)&&("left"===t.value?n=0:"center"===t.value?r=.5:"right"===t.value?n=1:"top"===t.value?r=0:"bottom"===t.value&&(r=1)),"%"===(null==e?void 0:e.type)&&(n=Number(e.value)/100),"%"===(null==t?void 0:t.type)&&(r=Number(e.value)/100)),{cx:n,cy:r}}),ph=Da(function(d){if(-1<d.indexOf("linear")||-1<d.indexOf("radial"))return Tu(d).map(function(t){for(var e=t.type,n=t.orientation,t=t.colorStops,r=t,i=r.length,o=(r[i-1].length=null!=(h=r[i-1].length)?h:{type:"%",value:"100"},1<i&&(r[0].length=null!=(h=r[0].length)?h:{type:"%",value:"0"}),0),a=Number(r[0].length.value),s=1;s<i;s++){var l,u=null==(l=r[s].length)?void 0:l.value;if(!S(u)&&!S(a)){for(var c=1;c<s-o;c++)r[o+c].length={type:"%",value:""+(a+(Number(u)-a)*c/(s-o))};o=s,a=Number(u)}}var h=t.map(function(t){return[Number(t.length.value)/100,(e=(t=t).type,t=t.value,"hex"===e?"#"+t:"literal"===e?t:"rgb"===e?"rgb("+t.join(",")+")":"rgba("+t.join(",")+")")];var e});return"linear-gradient"===e?new Il(Ml.LinearGradient,{angle:n?hh(n):0,steps:h,hash:d}):"radial-gradient"===e&&"shape"===(n=n||[{type:"shape",value:"circle"}])[0].type&&"circle"===n[0].value?(e=(t=dh(n[0].at)).cx,n=t.cy,new Il(Ml.RadialGradient,{cx:e,cy:n,steps:h,hash:d})):void 0});var t=d[0];if("("===d[1]||"("===d[2])if("l"===t){var e=ah.exec(d);if(e)return n=(null==(n=e[2].match(uh))?void 0:n.map(function(t){return t.split(":")}))||[],[new Il(Ml.LinearGradient,{angle:parseFloat(e[1]),steps:n.map(function(t){var e=t[0],t=t[1];return[Number(e),t]}),hash:d})]}else if("r"===t){e=function(t){var e=sh.exec(t);if(e)return{cx:.5,cy:.5,steps:((null==(e=e[4].match(uh))?void 0:e.map(function(t){return t.split(":")}))||[]).map(function(t){var e=t[0],t=t[1];return[Number(e),t]}),hash:t};return null}(d);if(e){if(!ic(e))return[new Il(Ml.RadialGradient,e)];d=e}}else if("p"===t){var n=d;if(n=lh.exec(n)){var r=n[1],n=n[2];switch(r){case"a":r="repeat";break;case"x":r="repeat-x";break;case"y":r="repeat-y";break;default:r="no-repeat"}return{image:n,repetition:r}}return null}});function fh(t){return fl(t)&&t.image}var yh=Da(function(t){var e;return fh(t)?Ks({repetition:"repeat"},t):"transparent"===(t=S(t)?"":t)?nh:ph(t="currentColor"===t?"black":t)||(e=[0,0,0,0],null!==(t=Qa(t))&&(e[0]=t.r||0,e[1]=t.g||0,e[2]=t.b||0,e[3]=t.opacity),rh.apply(void 0,e))});function gh(t,e){if(t instanceof Ll&&e instanceof Ll)return[[Number(t.r),Number(t.g),Number(t.b),Number(t.alpha)],[Number(e.r),Number(e.g),Number(e.b),Number(e.alpha)],function(t){var e=t.slice();if(e[3])for(var n=0;n<3;n++)e[n]=Math.round(Xl(e[n],0,255));return e[3]=Xl(e[3],0,1),"rgba("+e.join(",")+")"}]}function mh(t,e){if(S(e))return new El(0,"px");if(e=(""+e).trim().toLowerCase(),isFinite(Number(e))){if(0<="px".search(t))return new El(Number(e),"px");if(0<="deg".search(t))return new El(Number(e),"deg")}var n=[],r=(e=e.replace(t,function(t){return n.push(t),"U"+t}),"U("+t.source+")");return n.map(function(t){return new El(Number(e.replace(new RegExp("U"+t,"g"),"").replace(new RegExp(r,"g"),"*0")),t)})[0]}var vh=Da(function(t){return mh(new RegExp("px","g"),t)}),bh=(Da(function(t){return mh(new RegExp("%","g"),t)}),Da(function(t){return hl(t)||isFinite(Number(t))?new El(Number(t),"px"):mh(new RegExp("px|%|em|rem","g"),t)})),xh=Da(function(t){return mh(new RegExp("deg|rad|grad|turn","g"),t)});function wh(t){var e=0;return t.unit===v.kDegrees?e=t.value:t.unit===v.kRadians?e=Jl(Number(t.value)):t.unit===v.kTurns&&(e=360*Number(t.value)),e}function Eh(t){return ic(t)?t.split(" ").map(function(t){return bh(t)}):t.map(function(t){return bh(t.toString())})}function _h(t,e,n){var r;return t.unit===v.kPixels?Number(t.value):t.unit===v.kPercentage&&n?(n=n.nodeName===M.GROUP?n.getLocalBounds():n.getGeometryBounds(),r=0,Fc.isEmpty(n)||(r=2*n.halfExtents[e]),Number(t.value)/100*r):0}function kh(t){return t.toString()}var Th=Da(function(t){return"number"==typeof t?new El(t):/^\s*[-+]?(\d*\.)?\d+\s*$/.test(t)?new El(Number(t)):new El(0)});function Mh(t,e){return[t,e,kh]}function Sh(n,r){return function(t,e){return[t,e,function(t){return kh(Xl(t,n,r))}]}}function Oh(t,e){if(t.length===e.length)return[t,e,function(t){return t}]}Da(function(t){return(ic(t)?t.split(" "):t).map(Th)});var Ph=function(e){if(""===e||Array.isArray(e)&&0===e.length)return{absolutePath:[],hasArc:!1,segments:[],polygons:[],polylines:[],curve:[],totalLength:0,zCommandIndexes:[],rect:{x:0,y:0,width:0,height:0}};var n;try{n=Ea(e)}catch(t){n=Ea(""),console.error("[g]: Invalid SVG Path definition: "+e)}var t,e=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}(n),r=function(t){for(var e=[],n=[],r=[],i=0;i<t.length;i++){var o=t[i],a=o[0];"M"===a?(r.length&&(n.push(r),r=[]),r.push([o[1],o[2]])):"Z"===a?r.length&&(e.push(r),r=[]):r.push([o[1],o[2]])}return 0<r.length&&n.push(r),{polygons:e,polylines:n}}(n),i=r.polygons,r=r.polylines,o=Pa(n,!0),a=o[0],o=o[1],s=function(t){for(var e=[],n=null,r=0,i=t.length,o=0;o<i;o++){var a=t[o],s=t[o+1],l=a[0],u={command:l,prePoint:n,params:a,startTangent:null,endTangent:null},c=("M"===l&&(r=o),a.length),n=[a[c-2],a[c-1]],c=(u.currentPoint=n,e[r]&&(c=n,h=e[r].currentPoint,c[0]===h[0]&&c[1]===h[1])&&(e[r].prePoint=u.prePoint),s?[s[s.length-2],s[s.length-1]]:null),h=(u.nextPoint=c,u.prePoint);"C"===l&&(s=[a[1],a[2]],c=[a[3],a[4]],u.startTangent=[h[0]-s[0],h[1]-s[1]],u.endTangent=[n[0]-c[0],n[1]-c[1]],0===u.startTangent[0]&&0===u.startTangent[1]&&(u.startTangent=[s[0]-c[0],s[1]-c[1]]),0===u.endTangent[0]&&0===u.endTangent[1]&&(u.endTangent=[c[0]-s[0],c[1]-s[1]])),e.push(u)}return e}(a),l=(l=n)?(u=(l=Ia(l,void 0,T(T({},u),{bbox:!0,length:!0}))).length,c=(h=l.min).x,h=h.y,{length:u,width:d=(l=(u=l.max).x)-c,height:t=(u=u.y)-h,x:c,y:h,x2:l,y2:u,cx:c+d/2,cy:h+t/2,cz:Math.max(d,t)+Math.min(d,t)/2}):{length:0,x:0,y:0,width:0,height:0,x2:0,y2:0,cx:0,cy:0,cz:0},u=l.x,c=l.y,h=l.width,d=l.height;return{absolutePath:n,hasArc:e,segments:s,polygons:i,polylines:r,curve:a,totalLength:l.length,zCommandIndexes:o,rect:{x:Number.isFinite(u)?u:0,y:Number.isFinite(c)?c:0,width:Number.isFinite(h)?h:0,height:Number.isFinite(d)?d:0}}},Ah=Da(Ph);function Nh(t,e){t=(ic(t)?Ah:Ph)(t);return e&&(e.parsedStyle.defX=t.rect.x,e.parsedStyle.defY=t.rect.y),t}function Ch(t,e,n){var r,i,o,a,s,l,u,c,h,t=t.curve,e=e.curve,d=[t,e],e=ja((d=t.length!==e.length?function t(e,n,r){var i,e=Ra(e),n=Ra(n),o=e.length,a=n.length,s=e.filter(function(t){return t.l}).length,l=n.filter(function(t){return t.l}).length,s=e.filter(function(t){return t.l}).reduce(function(t,e){return t+e.l},0)/s||0,l=n.filter(function(t){return t.l}).reduce(function(t,e){return t+e.l},0)/l||0,u=r||Math.max(o,a),c=[s,l],h=[u-o,u-a],r=[e,n].map(function(t,n){return t.l===u?t.map(function(t){return t.s}):t.map(function(t,e){return i=e&&h[n]&&t.l>=c[n],h[n]-=i?1:0,i?t.ss:[t.s]}).flat()});return r[0].length===r[1].length?r:t(r[0],r[1],u)}(t,e):d)[0])!==ja(d[1])?(r=d[0],t=r.slice(1).map(function(t,e,n){return(e?n[e-1].slice(-2):r[0].slice(1)).concat(t.slice(1))}).map(function(n){return n.map(function(t,e){return n[n.length-e-2*(1-e%2)]})}).reverse(),[["M"].concat(t[0].slice(0,2))].concat(t.map(function(t){return["C"].concat(t.slice(2))}))):ca(d[0]);return[e,(i=d[1],o=e,u=i.length-1,c=[],h=0,s=(a=i).length,l=s-1,(t=a.map(function(t,r){return a.map(function(t,e){var n=r+e;return 0===e||a[n]&&"M"===a[n][0]?(e=a[n],["M"].concat(e.slice(-2))):(s<=n&&(n-=l),a[n])})})).forEach(function(t,n){i.slice(1).forEach(function(t,e){h+=Ta(i[(n+e)%u].slice(-2),o[e%u].slice(-2))}),c[n]=h,h=0}),t[c.indexOf(Math.min.apply(null,c))]),function(t){return t}]}function Lh(t,e){var n,r,i=ic(t)?t.split(" ").map(function(t){var t=t.split(","),e=t[0],t=t[1];return[Number(e),Number(t)]}):t,o=[],a=0,s=fs.length(i),t=(i.forEach(function(t,e){i[e+1]&&((n=[0,0])[0]=a/s,r=ds.length(t[0],t[1],i[e+1][0],i[e+1][1]),a+=r,n[1]=a/s,o.push(n))}),Math.min.apply(Math,i.map(function(t){return t[0]}))),l=Math.min.apply(Math,i.map(function(t){return t[1]}));return e&&(e.parsedStyle.defX=t,e.parsedStyle.defY=l),{points:i,totalLength:s,segments:o}}var Ih=function(t){return mh(/deg|rad|grad|turn|px|%/g,t)},jh=["blur","brightness","drop-shadow","contrast","grayscale","sepia","saturate","hue-rotate","invert"];function Rh(t){if("none"!==(t=(t=void 0===t?"":t).toLowerCase().trim()))for(var e,n=/\s*([\w-]+)\(([^)]*)\)/g,r=[],i=0;e=n.exec(t);){if(e.index!==i)return[];if(i=e.index+e[0].length,-1<jh.indexOf(e[1])&&r.push({name:e[1],params:e[2].split(" ").map(function(t){return Ih(t)||yh(t)})}),n.lastIndex===t.length)return r}return[]}function Dh(e){return void 0===e&&(e=0),new Promise(function(t){setTimeout(function(){t()},e)})}var Bh,Fh,zh,Vh=p.defineToken(""),Gh=p.defineToken(""),Hh=0,Wh=function(){function t(t){this.options=void 0,this.contextId=void 0,this.workQueue=[],this.mode=void 0,this.layoutChildrenFactory=void 0,this.fragmentResultFactory=void 0,this.layoutFragmentFactory=void 0,this.options=t,this.contextId=""+Hh++,this.mode=t.mode,this.layoutChildrenFactory=t.layoutChildrenFactory,this.fragmentResultFactory=t.fragmentResultFactory,this.layoutFragmentFactory=t.layoutFragmentFactory}var e=t.prototype;return e.appendWorkTask=function(t){this.workQueue.push(t)},e.clearWorkQueue=function(){this.workQueue=[]},t}(),Wh=t([f(),St(0,y(Gh)),e("design:paramtypes",[Object])],Wh),Yh=((oe=Bh=Bh||{}).Layout="layout",oe.IntrinsicSizes="intrinsic-sizes",0,0,(a=Fh=Fh||{}).LAYOUT="display",a.LEFT="left",a.TOP="top",a.BOTTOM="bottom",a.RIGHT="right",a.WIDTH="width",a.HEIGHT="height",a.MIN_WIDTH="minWidth",a.MAX_WIDTH="maxWidth",a.MIN_HEIGHT="minHeight",a.MAX_HEIGHT="maxHeight",a.BOX_SIZING="boxSizing",a.PADDING="padding",a.PADDING_TOP="paddingTop",a.PADDING_BOTTOM="paddingBottom",a.PADDING_START="paddingLeft",a.PADDING_END="paddingRight",a.MARGIN="margin",a.MARGIN_TOP="marginTop",a.MARGIN_BOTTOM="marginBottom",a.MARGIN_START="marginLeft",a.MARGIN_END="marginRight",a.BORDER="border",a.BORDER_TOP="borderTop",a.BORDER_BOTTOM="borderBottom",a.BORDER_START="borderLeft",a.BORDER_END="borderRight",a.FLEX_DIRECTION="flexDirection",a.FLEX_WRAP="flexWrap",a.FLEX_FLOW="flexFlow",a.ALIGN_ITEMS="alignItems",a.ALIGN_CONTENT="alignContent",a.JUSTIFY_CONTENT="justifyContent",a.FLEX="flex",a.ALIGN_SELF="alignSelf",a.FLEX_SHRINK="flexShrink",a.FLEX_BASIS="flexBasis",a.FLEX_GROW="flexGrow",a.OFFSET_WIDTH="offsetWidth",a.OFFSET_HEIGHT="offsetHeight",a.ORDER="order",1),d=function(){function t(t){void 0===t&&(t=new Map),this.id=void 0,this.style=void 0,this.dirty=void 0,this.parent=void 0,this.children=void 0,this.internalIntrisicSizes=void 0,this.computedLayout=void 0,this.measureFn=void 0,this.id=Yh++,this.style=t,this.parent=void 0,this.children=[],this.dirty=!1}var e=t.prototype;return e.setMeasure=function(t){this.measureFn=t},e.setIntrisicSizes=function(t){this.internalIntrisicSizes=t},e.addChild=function(t){var e;null!=(e=this.children)&&e.push(t)},e.insertChild=function(t,e){this.children.splice(t,0,e)},e.removeChild=function(e){var t=null==(t=this.children)?void 0:t.findIndex(function(t){return t.id===e.id});this.removeChildAtIndex(t)},e.removeChildAtIndex=function(t){this.children.splice(t,1)},e.replaceChildAtIndex=function(t,e){this.children.splice(t,1,e)},e.setStyle=function(t,e){this.style.set(t,e)},e.getStyle=function(){for(var n=this,r=new Map,t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];return e.forEach(function(t){var e=n.style.get(t);e&&r.set(t,e)}),r},e.getAllStyle=function(){return this.style},e.markDirty=function(){this.dirty=!0},e.idDirty=function(){return this.dirty},e.getSize=function(){var t;return{width:null!=(t=null==(t=this.style.get(Fh.WIDTH))?void 0:t.value)?t:0,height:null!=(t=null==(t=this.style.get(Fh.HEIGHT))?void 0:t.value)?t:0}},e.computeLayout=function(){var t=qs(k().mark(function t(){var e;return k().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return e=this.getSize(),t.next=3,Qf.computeLayout(this,{availableInlineSize:e.width,availableBlockSize:e.height,fixedInlineSize:e.width,fixedBlockSize:e.height,percentageInlineSize:e.width,percentageBlockSize:e.height,data:void 0});case 3:case"end":return t.stop()}},t,this)}));return function(){return t.apply(this,arguments)}}(),e.setComputedLayout=function(t){this.computedLayout=t},e.getComputedLayout=function(){return this.computedLayout},e.getAllComputedLayout=function(){},e.toString=function(){return"LayoutObject "+this.id},Zs(t,[{key:"intrisicSizes",get:function(){return this.internalIntrisicSizes}},{key:"childCount",get:function(){return this.children.length}}]),t}(),Uh=p.defineToken(""),qh=p.defineToken(""),Xh=p.defineToken(""),Zh=function(t,e,n){this._layoutContext=void 0,this._node=void 0,this.options=void 0,this.layoutContext=void 0,this.inlineSize=void 0,this.blockSize=void 0,this.node=void 0,this.childFragments=void 0,this.data=void 0,this._layoutContext=t,this._node=e,this.options=n,this.layoutContext=t,this.inlineSize=null==n?void 0:n.inlineSize,this.blockSize=null==n?void 0:n.blockSize,this.childFragments=null==n?void 0:n.childFragments,this.data=n.data,this.node=e},Zh=t([yi(),St(0,y(Wh)),St(1,y(Xh)),St(2,y(qh)),e("design:paramtypes",[Wh,d,Object])],Zh),Kh=p.defineToken(""),$h=p.defineToken(""),Jh=function(){function t(t,e){this._layoutContext=void 0,this.options=void 0,this.node=void 0,this.styleMap=void 0,this.layoutContext=void 0,this._layoutContext=t,this.options=e,this.layoutContext=t,this.node=e.node,this.styleMap=e.node.getAllStyle()}var e=t.prototype;return e.intrinsicSizes=function(){var t=new vu;return this.layoutContext.appendWorkTask({layoutChild:this,taskType:Bh.IntrinsicSizes,deferred:t}),t.promise},e.layoutNextFragment=function(t){if(this.layoutContext.mode===Bh.IntrinsicSizes)throw new Error("Not Supported: cant call layoutNextFragment in intrinsicSizes");var e=new vu;return this.layoutContext.appendWorkTask({layoutConstraints:t,layoutChild:this,taskType:Bh.Layout,deferred:e}),e.promise},t}(),Jh=t([yi(),St(0,y(Wh)),St(1,y($h)),e("design:paramtypes",[Wh,Object])],Jh),Qh=p.defineToken(""),td=p.defineToken(""),ed=[0,0,0,0],nd=function(t){this.options=void 0,this.inlineStart=void 0,this.inlineEnd=void 0,this.blockStart=void 0,this.blockEnd=void 0,this.inline=void 0,this.block=void 0;var t=(this.options=t).node.getAllStyle(),e=null!=(e=null==(e=t.get(Fh.PADDING_TOP))?void 0:e.value)?e:0,n=null!=(n=null==(n=t.get(Fh.PADDING_END))?void 0:n.value)?n:0,r=null!=(r=null==(r=t.get(Fh.PADDING_BOTTOM))?void 0:r.value)?r:0,i=null!=(i=null==(i=t.get(Fh.PADDING_START))?void 0:i.value)?i:0,o=null!=(o=null==(o=t.get(Fh.PADDING_TOP))?void 0:o.value)?o:0,a=null!=(a=null==(a=t.get(Fh.PADDING_END))?void 0:a.value)?a:0,s=null!=(s=null==(s=t.get(Fh.PADDING_BOTTOM))?void 0:s.value)?s:0,t=null!=(t=null==(t=t.get(Fh.PADDING_START))?void 0:t.value)?t:0;this.blockStart=e+ed[0]+o,this.inlineStart=n+ed[1]+a,this.blockEnd=r+ed[2]+s,this.inlineEnd=i+ed[3]+t,this.block=this.blockStart+this.blockEnd,this.inline=this.inlineStart+this.inlineEnd},nd=t([yi(),St(0,y(td)),e("design:paramtypes",[Object])],nd),rd=((u=function(){function t(){this.registry=new Map}var e=t.prototype;return e.hasLayout=function(t){return this.registry.has(t)},e.getLayout=function(t){if(this.hasLayout(t=void 0===t?"absolute":t))return this.registry.get(t);throw new Error("invalid layout property: "+t)},e.updateLayout=function(t,e){this.registry.set(t,e)},e.registerLayout=function(t,e){if(""===t)throw new TypeError("layout name cant't be empty");if(zh.reservedLayout.includes(t))throw new Error("layout name '"+t+"' is a system reserved layout name, please use another name");if(this.hasLayout(t))throw new Error("layout '"+t+"' already exist.");this.registry.set(t,e)},e.deleteLayout=function(t){this.registry.delete(t)},Zs(t,[{key:"size",get:function(){return this.registry.size}}]),t}()).reservedLayout=[],zh=u),rd=zh=t([f()],rd),id=function(){function t(t,e,n){this._layoutRegistry=void 0,this._layoutContextFactory=void 0,this._layoutEdgesFactory=void 0,this.layoutRegistry=void 0,this.layoutContextFactory=void 0,this.layoutEdgesFactory=void 0,this._layoutRegistry=t,this._layoutContextFactory=e,this._layoutEdgesFactory=n,this.layoutRegistry=t,this.layoutContextFactory=e,this.layoutEdgesFactory=n}var e=t.prototype;return e.computeLayout=function(){var n=qs(k().mark(function t(e,n){return k().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.determineIntrinsicSizes(e,e.children);case 2:return t.next=4,this.calculateLayout(e,e.children,n);case 4:case"end":return t.stop()}},t,this)}));return function(t,e){return n.apply(this,arguments)}}(),e.determineAllIntrinsicSizes=function(){var e=qs(k().mark(function t(e){return k().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:case"end":return t.stop()}},t)}));return function(t){return e.apply(this,arguments)}}(),e.getLayoutDefinitionName=function(t){t=t.getAllStyle().get(Fh.LAYOUT);if(t)return t.value;throw new Error("layout property not found")},e.determineIntrinsicSizes=function(){var n=qs(k().mark(function t(e,n){var r;return k().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return r=this.getLayoutDefinitionName(e),t.next=3,this.invokeIntrinsicSizesCallback(r,e,n);case 3:case"end":return t.stop()}},t,this)}));return function(t,e){return n.apply(this,arguments)}}(),e.invokeIntrinsicSizesCallback=function(){var r=qs(k().mark(function t(e,n,r){var i,o,a,s,l;return k().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return l=this.layoutRegistry.getLayout(e),a=new l,i=this.layoutContextFactory({mode:Bh.IntrinsicSizes}),l=l.inputProperties,l=void 0===l?[]:l,o=[],r.forEach(function(t){t=i.layoutChildrenFactory({node:t});o.push(t)}),s=this.layoutEdgesFactory({node:n}),l=n.getStyle.apply(n,l),a=a.intrinsicSizes(o,s,l),(s=this.runWorkQueue(a,i.workQueue)).next(),t.next=13,Dh();case 13:l=s.next().value,i.clearWorkQueue(),n.setIntrisicSizes(l);case 16:case"end":return t.stop()}},t,this)}));return function(t,e,n){return r.apply(this,arguments)}}(),e.calculateLayout=function(){var r=qs(k().mark(function t(e,n,r){var i;return k().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return i=this.getLayoutDefinitionName(e),t.next=3,this.invokeLayoutCallback(i,e,n,r);case 3:case"end":return t.stop()}},t,this)}));return function(t,e,n){return r.apply(this,arguments)}}(),e.invokeLayoutCallback=function(){var i=qs(k().mark(function t(e,n,r,i){var o,a,s,l,u,c;return k().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return l=this.layoutRegistry.getLayout(e),c=new l,o=this.layoutContextFactory({mode:Bh.Layout}),l=l.inputProperties,l=void 0===l?[]:l,a=[],r.forEach(function(t){t=o.layoutChildrenFactory({node:t});a.push(t)}),s=this.layoutEdgesFactory({node:n}),l=n.getStyle.apply(n,l),c=c.layout(a,s,i,l),(s=this.runWorkQueue(c,o.workQueue)).next(),t.next=13,Dh();case 13:l=s.next().value,o.clearWorkQueue(),u=l instanceof Zh?l:o.fragmentResultFactory(l),c=o.layoutFragmentFactory({inlineSize:u.inlineSize,blockSize:u.blockSize,data:u.data}),n.setComputedLayout(c),r.forEach(function(t,e){t.setComputedLayout(u.childFragments[e])});case 19:case"end":return t.stop()}},t,this)}));return function(t,e,n,r){return i.apply(this,arguments)}}(),e.runWorkQueue=k().mark(function t(e,n){var r,i=this;return k().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return r=function(t){var e,n,r,i;return t.isRejected||t.isFulfilled||(r=n=!(e=!0),(t=t.then(function(t){return e=!(r=!0),i=t},function(t){throw e=!(n=!0),t})).isFulfilled=function(){return r},t.isPending=function(){return e},t.isRejected=function(){return n},t.getFullFilledValue=function(){return i}),t}(e),0<n.length&&r.isPending()&&n.forEach(function(t){var e,n,r;t.taskType===Bh.IntrinsicSizes&&(e=t.layoutChild,n=t.deferred,e=e.node,n.resolve(i.getNodeIntrisicSizes(e))),t.taskType===Bh.Layout&&(n=t.layoutChild,e=t.deferred,t=t.layoutConstraints,r=n.node,n=n.layoutContext,r=i.getNodeFragment(r,t),e.resolve(n.layoutFragmentFactory(r)))}),void(t.next=4);case 4:if(r.isFulfilled()){t.next=6;break}throw new Error("promise not fullfilled!");case 6:return t.abrupt("return",r.getFullFilledValue());case 7:case"end":return t.stop()}},t)}),e.getNodeIntrisicSizes=function(t){var e,n=t.getAllStyle();return{minContentInlineSize:(null==(e=n.get(Fh.MIN_WIDTH))?void 0:e.value)||(null==(e=t.intrisicSizes)?void 0:e.minContentInlineSize)||(null==(e=n.get(Fh.WIDTH))?void 0:e.value)||0,maxContentInlineSize:(null==(e=n.get(Fh.MAX_WIDTH))?void 0:e.value)||(null==(e=t.intrisicSizes)?void 0:e.maxContentInlineSize)||(null==(e=n.get(Fh.WIDTH))?void 0:e.value)||0,minContentBlockSize:(null==(e=n.get(Fh.MIN_HEIGHT))?void 0:e.value)||(null==(e=t.intrisicSizes)?void 0:e.minContentBlockSize)||(null==(e=n.get(Fh.HEIGHT))?void 0:e.value)||0,maxContentBlockSize:(null==(e=n.get(Fh.MAX_HEIGHT))?void 0:e.value)||(null==(e=t.intrisicSizes)?void 0:e.maxContentBlockSize)||(null==(t=n.get(Fh.HEIGHT))?void 0:t.value)||0}},e.getNodeFragment=function(t,e){var n;return{inlineSize:(null==(n=t.getComputedLayout())?void 0:n.inlineSize)||(null==(n=t.getAllStyle().get(Fh.MIN_WIDTH))?void 0:n.value)||(null==(n=t.getAllStyle().get(Fh.WIDTH))?void 0:n.value)||0,blockSize:(null==(n=t.getComputedLayout())?void 0:n.blockSize)||(null==(n=t.getAllStyle().get(Fh.MIN_HEIGHT))?void 0:n.value)||(null==(n=t.getAllStyle().get(Fh.HEIGHT))?void 0:n.value)||0,data:e.data}},t}(),id=t([f(),St(0,y(rd)),St(1,y(Vh)),St(2,y(Qh)),e("design:paramtypes",[rd,Function,Function])],id),od=p.defineToken(""),ad=p.defineToken(""),sd=function(t,e){this._layoutContext=void 0,this.options=void 0,this.layoutContext=void 0,this.inlineSize=void 0,this.blockSize=void 0,this.inlineOffset=void 0,this.blockOffset=void 0,this.data=void 0,this._layoutContext=t,this.options=e,this.layoutContext=t,this.inlineSize=e.inlineSize,this.blockSize=e.blockSize,this.inlineOffset=0,this.blockOffset=0,this.data=e.data},sd=t([yi(),St(0,y(Wh)),St(1,y(ad)),e("design:paramtypes",[Wh,Object])],sd),o=function(t){return new El(t)},ld=null;function ud(t){return function(e){var n=0;return t.map(function(t){return t===ld?e[n++]:t})}}function cd(t){return t}var hd={matrix:["NNNNNN",[ld,ld,0,0,ld,ld,0,0,0,0,1,0,ld,ld,0,1],cd],matrix3d:["NNNNNNNNNNNNNNNN",cd],rotate:["A"],rotatex:["A"],rotatey:["A"],rotatez:["A"],rotate3d:["NNNA"],perspective:["L"],scale:["Nn",ud([ld,ld,o(1)]),cd],scalex:["N",ud([ld,o(1),o(1)]),ud([ld,o(1)])],scaley:["N",ud([o(1),ld,o(1)]),ud([o(1),ld])],scalez:["N",ud([o(1),o(1),ld])],scale3d:["NNN",cd],skew:["Aa",null,cd],skewx:["A",null,ud([ld,Cl])],skewy:["A",null,ud([Cl,ld])],translate:["Tt",ud([ld,ld,Nl]),cd],translatex:["T",ud([ld,Nl,Nl]),ud([ld,Nl])],translatey:["T",ud([Nl,ld,Nl]),ud([Nl,ld])],translatez:["L",ud([Nl,Nl,ld])],translate3d:["TTL",cd]};function dd(t){if("none"!==(t=(t||"none").toLowerCase().trim()))for(var e,n=/\s*(\w+)\(([^)]*)\)/g,r=[],i=0;e=n.exec(t);){if(e.index!==i)return[];var i=e.index+e[0].length,o=e[1],a=hd[o];if(!a)return[];var s=e[2].split(","),l=a[0];if(l.length<s.length)return[];for(var u=[],c=0;c<l.length;c++){var h=s[c],d=l[c],p=void 0;if(void 0===(p=h?{A:function(t){return"0"===t.trim()?Cl:xh(t)},N:Th,T:bh,L:vh}[d.toUpperCase()](h):{a:Cl,n:u[0],t:Nl}[d]))return[];u.push(p)}if(r.push({t:o,d:u}),n.lastIndex===t.length)return r}return[]}function pd(t){switch(t.t){case"rotatex":return i=$l(wh(t.d[0])),[1,0,0,0,0,Math.cos(i),Math.sin(i),0,0,-Math.sin(i),Math.cos(i),0,0,0,0,1];case"rotatey":return i=$l(wh(t.d[0])),[Math.cos(i),0,-Math.sin(i),0,0,1,0,0,Math.sin(i),0,Math.cos(i),0,0,0,0,1];case"rotate":case"rotatez":return i=$l(wh(t.d[0])),[Math.cos(i),Math.sin(i),0,0,-Math.sin(i),Math.cos(i),0,0,0,0,1,0,0,0,0,1];case"rotate3d":var e=t.d[0].value,n=t.d[1].value,r=t.d[2].value,i=$l(wh(t.d[3])),o=e*e+n*n+r*r,o=(0==o?(e=1,r=n=0):1!=o&&(e/=o=Math.sqrt(o),n/=o,r/=o),Math.sin(i/2)),a=o*Math.cos(i/2),o=o*o;return[1-2*(n*n+r*r)*o,2*(e*n*o+r*a),2*(e*r*o-n*a),0,2*(e*n*o-r*a),1-2*(e*e+r*r)*o,2*(n*r*o+e*a),0,2*(e*r*o+n*a),2*(n*r*o-e*a),1-2*(e*e+n*n)*o,0,0,0,0,1];case"scale":return[t.d[0].value,0,0,0,0,t.d[1].value,0,0,0,0,1,0,0,0,0,1];case"scalex":return[t.d[0].value,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];case"scaley":return[1,0,0,0,0,t.d[0].value,0,0,0,0,1,0,0,0,0,1];case"scalez":return[1,0,0,0,0,1,0,0,0,0,t.d[0].value,0,0,0,0,1];case"scale3d":return[t.d[0].value,0,0,0,0,t.d[1].value,0,0,0,0,t.d[2].value,0,0,0,0,1];case"skew":a=$l(wh(t.d[0])),o=$l(wh(t.d[1]));return[1,Math.tan(o),0,0,Math.tan(a),1,0,0,0,0,1,0,0,0,0,1];case"skewx":return i=$l(wh(t.d[0])),[1,0,0,0,Math.tan(i),1,0,0,0,0,1,0,0,0,0,1];case"skewy":return i=$l(wh(t.d[0])),[1,Math.tan(i),0,0,0,1,0,0,0,0,1,0,0,0,0,1];case"translate":return[1,0,0,0,0,1,0,0,0,0,1,0,e=_h(t.d[0],0,null)||0,n=_h(t.d[1],0,null)||0,0,1];case"translatex":return[1,0,0,0,0,1,0,0,0,0,1,0,e=_h(t.d[0],0,null)||0,0,0,1];case"translatey":return[1,0,0,0,0,1,0,0,0,0,1,0,0,n=_h(t.d[0],0,null)||0,0,1];case"translatez":return[1,0,0,0,0,1,0,0,0,0,1,0,0,0,r=_h(t.d[0],0,null)||0,1];case"translate3d":return[1,0,0,0,0,1,0,0,0,0,1,0,e=_h(t.d[0],0,null)||0,n=_h(t.d[1],0,null)||0,r=_h(t.d[2],0,null)||0,1];case"perspective":o=_h(t.d[0],0,null)||0;return[1,0,0,0,0,1,0,0,0,0,1,o?-1/o:0,0,0,0,1];case"matrix":return[t.d[0].value,t.d[1].value,0,0,t.d[2].value,t.d[3].value,0,0,0,0,1,0,t.d[4].value,t.d[5].value,0,1];case"matrix3d":return t.d.map(function(t){return t.value})}}function fd(t,e){return[t[0]*e[0]+t[4]*e[1]+t[8]*e[2]+t[12]*e[3],t[1]*e[0]+t[5]*e[1]+t[9]*e[2]+t[13]*e[3],t[2]*e[0]+t[6]*e[1]+t[10]*e[2]+t[14]*e[3],t[3]*e[0]+t[7]*e[1]+t[11]*e[2]+t[15]*e[3],t[0]*e[4]+t[4]*e[5]+t[8]*e[6]+t[12]*e[7],t[1]*e[4]+t[5]*e[5]+t[9]*e[6]+t[13]*e[7],t[2]*e[4]+t[6]*e[5]+t[10]*e[6]+t[14]*e[7],t[3]*e[4]+t[7]*e[5]+t[11]*e[6]+t[15]*e[7],t[0]*e[8]+t[4]*e[9]+t[8]*e[10]+t[12]*e[11],t[1]*e[8]+t[5]*e[9]+t[9]*e[10]+t[13]*e[11],t[2]*e[8]+t[6]*e[9]+t[10]*e[10]+t[14]*e[11],t[3]*e[8]+t[7]*e[9]+t[11]*e[10]+t[15]*e[11],t[0]*e[12]+t[4]*e[13]+t[8]*e[14]+t[12]*e[15],t[1]*e[12]+t[5]*e[13]+t[9]*e[14]+t[13]*e[15],t[2]*e[12]+t[6]*e[13]+t[10]*e[14]+t[14]*e[15],t[3]*e[12]+t[7]*e[13]+t[11]*e[14]+t[15]*e[15]]}function yd(t){var e=[0,0,0],n=[1,1,1],r=[0,0,0],i=[0,0,0,1],o=[0,0,0,1];return function(t,e,n,r,i,o){if(e=e||[0,0,0],n=n||[0,0,0],r=r||[0,0,0],i=i||[0,0,0,1],o=o||[0,0,0,1],!ys(ws,t))return;if(gs(Es),Es[3]=0,Es[7]=0,Es[11]=0,Es[15]=1,Math.abs(ms(Es)<1e-8))return;var a,s,t=ws[3],l=ws[7],u=ws[11],c=ws[12],h=ws[13],d=ws[14],p=ws[15];if(0!==t||0!==l||0!==u){if(_s[0]=t,_s[1]=l,_s[2]=u,_s[3]=p,!vs(Es,Es))return;bs(Es,Es),t=i,l=Es,p=(u=_s)[0],a=u[1],s=u[2],u=u[3],t[0]=l[0]*p+l[4]*a+l[8]*s+l[12]*u,t[1]=l[1]*p+l[5]*a+l[9]*s+l[13]*u,t[2]=l[2]*p+l[6]*a+l[10]*s+l[14]*u,t[3]=l[3]*p+l[7]*a+l[11]*s+l[15]*u}else i[0]=i[1]=i[2]=0,i[3]=1;if(e[0]=c,e[1]=h,e[2]=d,t=ws,(p=g)[0][0]=t[0],p[0][1]=t[1],p[0][2]=t[2],p[1][0]=t[4],p[1][1]=t[5],p[1][2]=t[6],p[2][0]=t[8],p[2][1]=t[9],p[2][2]=t[10],n[0]=xs.length(g[0]),xs.normalize(g[0],g[0]),r[0]=xs.dot(g[0],g[1]),Ts(g[1],g[1],g[0],1,-r[0]),n[1]=xs.length(g[1]),xs.normalize(g[1],g[1]),r[0]/=n[1],r[1]=xs.dot(g[0],g[2]),Ts(g[2],g[2],g[0],1,-r[1]),r[2]=xs.dot(g[1],g[2]),Ts(g[2],g[2],g[1],1,-r[2]),n[2]=xs.length(g[2]),xs.normalize(g[2],g[2]),r[1]/=n[2],r[2]/=n[2],xs.cross(ks,g[1],g[2]),xs.dot(g[0],ks)<0)for(var f=0;f<3;f++)n[f]*=-1,g[f][0]*=-1,g[f][1]*=-1,g[f][2]*=-1;o[0]=.5*Math.sqrt(Math.max(1+g[0][0]-g[1][1]-g[2][2],0)),o[1]=.5*Math.sqrt(Math.max(1-g[0][0]+g[1][1]-g[2][2],0)),o[2]=.5*Math.sqrt(Math.max(1-g[0][0]-g[1][1]+g[2][2],0)),o[3]=.5*Math.sqrt(Math.max(1+g[0][0]+g[1][1]+g[2][2],0)),g[2][1]>g[1][2]&&(o[0]=-o[0]),g[0][2]>g[2][0]&&(o[1]=-o[1]),g[1][0]>g[0][1]&&(o[2]=-o[2])}(0===(t=t).length?[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]:t.map(pd).reduce(fd),e,n,r,i,o),[[e,n,r,o,i]]}var gd=function(t,e,n,r,i){for(var o=[[1,0,0,0],[0,1,0,0],[0,0,1,0],[0,0,0,1]],a=0;a<4;a++)o[a][3]=i[a];for(var s=0;s<3;s++)for(var l=0;l<3;l++)o[3][s]+=t[l]*o[l][s];var u=r[0],c=r[1],h=r[2],r=r[3],d=[[1,0,0,0],[0,1,0,0],[0,0,1,0],[0,0,0,1]],h=(d[0][0]=1-2*(c*c+h*h),d[0][1]=2*(u*c-h*r),d[0][2]=2*(u*h+c*r),d[1][0]=2*(u*c+h*r),d[1][1]=1-2*(u*u+h*h),d[1][2]=2*(c*h-u*r),d[2][0]=2*(u*h-c*r),d[2][1]=2*(c*h+u*r),d[2][2]=1-2*(u*u+c*c),o=md(o,d),[[1,0,0,0],[0,1,0,0],[0,0,1,0],[0,0,0,1]]);n[2]&&(h[2][1]=n[2],o=md(o,h)),n[1]&&(h[2][1]=0,h[2][0]=n[0],o=md(o,h)),n[0]&&(h[2][0]=0,h[1][0]=n[0],o=md(o,h));for(var p=0;p<3;p++)for(var f=0;f<3;f++)o[p][f]*=e[p];return 0==(r=o)[0][2]&&0==r[0][3]&&0==r[1][2]&&0==r[1][3]&&0==r[2][0]&&0==r[2][1]&&1==r[2][2]&&0==r[2][3]&&0==r[3][2]&&1==r[3][3]?[o[0][0],o[0][1],o[1][0],o[1][1],o[3][0],o[3][1]]:o[0].concat(o[1],o[2],o[3])};function md(t,e){for(var n=[[0,0,0,0],[0,0,0,0],[0,0,0,0],[0,0,0,0]],r=0;r<4;r++)for(var i=0;i<4;i++)for(var o=0;o<4;o++)n[r][i]+=e[r][o]*t[o][i];return n}function vd(t){return t.toFixed(6).replace(".000000","")}function bd(e,n){var r,i;return e.decompositionPair!==n&&(e.decompositionPair=n,r=yd(e)),n.decompositionPair!==e&&(n.decompositionPair=e,i=yd(n)),null===r[0]||null===i[0]?[[!1],[!0],function(t){return(t?n:e)[0].d}]:(r[0].push(0),i[0].push(1),[r,i,function(t){var e=function(t,e,n){r=Xl(r=function(t,e){for(var n=0,r=0;r<t.length;r++)n+=t[r]*e[r];return n}(t,e),-1,1);var r,i=[];if(1===r)i=t;else for(var o=Math.acos(r),a=+Math.sin(n*o)/Math.sqrt(1-r*r),s=0;s<4;s++)i.push(t[s]*(Math.cos(n*o)-r*a)+e[s]*a);return i}(r[0][3],i[0][3],t[5]);return gd(t[0],t[1],t[2],e,t[4]).map(vd).join(",")}])}function xd(t){return t.replace(/[xy]/,"")}function wd(t){return t.replace(/(x|y|z|3d)?$/,"3d")}var Ed=function(t,e){return"perspective"===t&&"perspective"===e||("matrix"===t||"matrix3d"===t)&&("matrix"===e||"matrix3d"===e)};function _d(r,i,t){var e=!1;if(!r.length||!i.length){r.length||(e=!0,r=i,i=[]);for(var n=0;n<r.length;n++)!function(t){var t=r[t],e=t.t,t=t.d,n="scale"===e.substring(0,5)?1:0;i.push({t:e,d:t.map(function(t){return"number"==typeof t?new El(n):new El(n,t.unit)})})}(n)}var o=[],a=[],s=[];if(r.length!==i.length)var l=bd(r,i),o=[l[0]],a=[l[1]],s=[["matrix",[l[2]]]];else for(var u=0;u<r.length;u++){var c=r[u].t,h=i[u].t,d=r[u].d,p=i[u].d,f=hd[c],y=hd[h],g=void 0;if(Ed(c,h)){var m=bd([r[u]],[i[u]]);o.push(m[0]),a.push(m[1]),s.push(["matrix",[m[2]]])}else{if(c===h)g=c;else if(f[2]&&y[2]&&xd(c)===xd(h))g=xd(c),d=f[2](d),p=y[2](p);else{if(!f[1]||!y[1]||wd(c)!==wd(h)){m=bd(r,i);o=[m[0]],a=[m[1]],s=[["matrix",[m[2]]]];break}g=wd(c),d=f[1](d),p=y[1](p)}for(var v=[],b=[],x=[],w=0;w<d.length;w++){var E=function(t,e,n,r,i){void 0===i&&(i=0);var o="",a=t.value||0,s=e.value||0,l=El.toCanonicalUnit(t.unit),u=t.convertTo(l),l=e.convertTo(l);return u&&l?(a=u.value,s=l.value,o=El.unitTypeToString(t.unit)):(El.isLength(t.unit)||El.isLength(e.unit))&&(a=_h(t,i,n),s=_h(e,i,n),o="px"),[a,s,function(t){return(t=r?Math.max(t,0):t)+o}]}(d[w],p[w],t,!1,w);v[w]=E[0],b[w]=E[1],x.push(E[2])}o.push(v),a.push(b),s.push([g,x])}}return e&&(l=o,o=a,a=l),[o,a,function(t){return t.map(function(t,n){t=t.map(function(t,e){return s[n][1][e](t)}).join(",");return"matrix"===s[n][0]&&16===t.split(",").length&&(s[n][0]="matrix3d"),"matrix3d"===s[n][0]&&6===t.split(",").length&&(s[n][0]="matrix"),s[n][0]+"("+t+")"}).join(" ")}]}var kd=Da(function(t){var e;return ic(t)?"text-anchor"===t?[new El(0,"px"),new El(0,"px")]:(1===(e=t.split(" ")).length&&("top"===e[0]||"bottom"===e[0]?(e[1]=e[0],e[0]="center"):e[1]="center"),2!==e.length?null:[bh(Td(e[0])),bh(Td(e[1]))]):[new El(t[0]||0,"px"),new El(t[1]||0,"px")]});function Td(t){return"center"===t?"50%":"left"===t||"top"===t?"0":"right"===t||"bottom"===t?"100%":t}function Md(){this.contentBounds=void 0,this.renderBounds=void 0}function Sd(){this.aabb=void 0}function Od(){this.bounds=void 0,this.boundsDirty=!0,this.renderBounds=void 0,this.renderBoundsDirty=!0,this.dirtyRenderBounds=void 0,this.dirty=!1,this.proxyNodeName=void 0}function Pd(){this.dirty=!1,this.sorted=void 0,this.lastSortedIndex=void 0,this.renderOrder=0}function Ad(){this.dirtyFlag=!1,this.localDirtyFlag=!1,this.frozen=!1,this.localPosition=_(0,0,0),this.localRotation=Jo(0,0,0,1),this.localScale=_(1,1,1),this.localTransform=io(),this.localSkew=na(0,0),this.position=_(0,0,0),this.rotation=Jo(0,0,0,1),this.scaling=_(1,1,1),this.worldTransform=io(),this.origin=_(0,0,0)}var E,Nd,Cd,Ld=function(){function t(){this.parser=xh,this.mixer=Mh}return t.prototype.calculator=function(t,e,n,r){return wh(n)},t}(),Ld=t([f({token:{token:Yc,named:w.ANGLE}})],Ld),Id=((Qt=E=E||{}).DESTROY="destroy",Qt.ATTR_MODIFIED="DOMAttrModified",Qt.INSERTED="DOMNodeInserted",Qt.CHILD_INSERTED="child-inserted",Qt.REMOVED="removed",Qt.CHILD_REMOVED="child-removed",Qt.MOUNTED="DOMNodeInsertedIntoDocument",Qt.UNMOUNTED="DOMNodeRemovedFromDocument",Qt.BOUNDS_CHANGED="bounds-changed",Qt.RENDER_ORDER_CHANGED="render-order-changed",Qt.CULLED="culled",function(){function e(t){this.type=void 0,this.eventPhase=e.prototype.NONE,this.target=void 0,this.bubbles=!0,this.cancelBubble=!0,this.cancelable=!1,this.currentTarget=void 0,this.defaultPrevented=!1,this.timeStamp=void 0,this.nativeEvent=void 0,this.originalEvent=void 0,this.propagationStopped=!1,this.propagationImmediatelyStopped=!1,this.manager=void 0,this.detail=void 0,this.layer=new Gc,this.page=new Gc,this.canvas=new Gc,this.viewport=new Gc,this.path=void 0,this.view=void 0,this.which=void 0,this.returnValue=void 0,this.srcElement=void 0,this.composed=!1,this.isTrusted=void 0,this.NONE=0,this.CAPTURING_PHASE=1,this.AT_TARGET=2,this.BUBBLING_PHASE=3,this.manager=t}var t=e.prototype;return t.composedPath=function(){return!this.manager||this.path&&this.path[0]===this.target||(this.path=this.target?this.manager.propagationPath(this.target):[]),this.path},t.preventDefault=function(){this.nativeEvent instanceof Event&&this.nativeEvent.cancelable&&this.nativeEvent.preventDefault(),this.defaultPrevented=!0},t.stopImmediatePropagation=function(){this.propagationImmediatelyStopped=!0},t.stopPropagation=function(){this.propagationStopped=!0},t.initEvent=function(){},t.initUIEvent=function(){},t.clone=function(){throw new Error("Method not implemented.")},Zs(e,[{key:"name",get:function(){return this.type}},{key:"layerX",get:function(){return this.layer.x}},{key:"layerY",get:function(){return this.layer.y}},{key:"pageX",get:function(){return this.page.x}},{key:"pageY",get:function(){return this.page.y}},{key:"x",get:function(){return this.canvas.x}},{key:"y",get:function(){return this.canvas.y}},{key:"canvasX",get:function(){return this.canvas.x}},{key:"canvasY",get:function(){return this.canvas.y}},{key:"viewportX",get:function(){return this.viewport.x}},{key:"viewportY",get:function(){return this.viewport.y}},{key:"propagationPath",get:function(){return this.composedPath()}}]),e}()),jd=function(r){function t(t,e){var n=r.call(this,null)||this;return n.type=t,n.detail=e,Object.assign(Qs(n),e),n}return b(t,r),t}(Id),n=function(){function t(){this.emitter=new Os.exports.EventEmitter}var e=t.prototype;return e.on=function(t,e,n){return this.addEventListener(t,e,n),this},e.addEventListener=function(t,e,n){var r,i,o,a=pl(n)&&n||fl(n)&&n.capture,n=fl(n)&&n.once,s=dl(e)?void 0:e,l=!1,u="";return-1<t.indexOf(":")&&(i=(r=t.split(":"))[0],t=r[1],u=i,l=!0),t=a?t+"capture":t,e=dl(e)?e:e.handleEvent,l&&(o=e,e=function(){for(var t,e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];(null==(t=n[0].target)?void 0:t.name)===u&&o.apply(void 0,n)}),n?this.emitter.once(t,e,s):this.emitter.on(t,e,s),this},e.off=function(t,e,n){return t?this.removeEventListener(t,e,n):this.removeAllEventListeners(),this},e.removeAllEventListeners=function(){this.emitter.removeAllListeners()},e.removeEventListener=function(t,e,n){var r,n=pl(n)&&n||fl(n)&&n.capture,i=dl(e)?void 0:e;return e=dl(e)?e:null==(r=e)?void 0:r.handleEvent,this.emitter.off(t=n?t+"capture":t,e,i),this},e.emit=function(t,e){this.dispatchEvent(new jd(t,e))},e.dispatchEvent=function(t){if(!(t instanceof Id))throw new Error("DisplayObject cannot propagate events outside of the Federated Events API");var e;if(e=this.document?this:this.defaultView||(null==(e=this.ownerDocument)?void 0:e.defaultView)){if(t.manager=e.getEventService()||null,!t.manager)return!1;t.defaultPrevented=!1,t.path=[],t.target=this,null!=(e=t.manager)&&e.dispatchEvent(t)}return!t.defaultPrevented},t}(),Rd=function(i){function p(){for(var t,e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return(t=i.call.apply(i,[this].concat(n))||this).shadow=!1,t.ownerDocument=null,t.isConnected=!1,t.baseURI="",t.childNodes=[],t.nodeType=0,t.nodeName="",t.nodeValue=null,t.parentNode=null,t}b(p,i),p.isNode=function(t){return!!t.childNodes};var t=p.prototype;return t.getRootNode=function(t){return void 0===t&&(t={}),this.parentNode?this.parentNode.getRootNode(t):t.composed&&this.host?this.host.getRootNode(t):this},t.hasChildNodes=function(){return 0<this.childNodes.length},t.isDefaultNamespace=function(t){throw new Error("Method not implemented.")},t.lookupNamespaceURI=function(t){throw new Error("Method not implemented.")},t.lookupPrefix=function(t){throw new Error("Method not implemented.")},t.normalize=function(){throw new Error("Method not implemented.")},t.isEqualNode=function(t){return this===t},t.isSameNode=function(t){return this.isEqualNode(t)},t.compareDocumentPosition=function(t){if(t===this)return 0;if(!(t instanceof p))throw new TypeError("Node.compareDocumentPosition: Argument 1 does not implement interface Node.");for(var e=[i=t],n=[o=this];null!=(r=i.parentNode)?r:o.parentNode;)var r,i=i.parentNode?(e.push(i.parentNode),i.parentNode):i,o=o.parentNode?(n.push(o.parentNode),o.parentNode):o;if(i!==o)return p.DOCUMENT_POSITION_DISCONNECTED|p.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC|p.DOCUMENT_POSITION_PRECEDING;var a=e.length>n.length?e:n,s=a===e?n:e;if(a[a.length-s.length]===s[0])return a===e?p.DOCUMENT_POSITION_CONTAINED_BY|p.DOCUMENT_POSITION_FOLLOWING:p.DOCUMENT_POSITION_CONTAINS|p.DOCUMENT_POSITION_PRECEDING;for(var l=a.length-s.length,u=s.length-1;0<=u;u--){var c,h=s[u],d=a[l+u];if(d!==h)return(c=h.parentNode.childNodes).indexOf(h)<c.indexOf(d)?s===e?p.DOCUMENT_POSITION_PRECEDING:p.DOCUMENT_POSITION_FOLLOWING:a===e?p.DOCUMENT_POSITION_PRECEDING:p.DOCUMENT_POSITION_FOLLOWING}return p.DOCUMENT_POSITION_FOLLOWING},t.contain=function(t){return this.contains(t)},t.contains=function(t){for(var e=t;e&&this!==e;)e=e.parentNode;return!!e},t.getAncestor=function(t){for(var e=this;0<t&&e;)e=e.parentNode,t--;return e},t.forEach=function(e){e(this)||this.childNodes.forEach(function(t){t.forEach(e)})},Zs(p,[{key:"textContent",get:function(){var t="";this.nodeName===M.TEXT&&(t+=this.style.text);for(var e=el(this.childNodes);!(n=e()).done;){var n=n.value;n.nodeName===M.TEXT?t+=n.nodeValue:t+=n.textContent}return t},set:function(t){var e=this;this.childNodes.slice().forEach(function(t){e.removeChild(t,!0)}),this.nodeName===M.TEXT&&(this.style.text=""+t)}},{key:"parent",get:function(){return this.parentNode}},{key:"parentElement",get:function(){return null}},{key:"nextSibling",get:function(){return null}},{key:"previousSibling",get:function(){return null}},{key:"firstChild",get:function(){return 0<this.childNodes.length?this.childNodes[0]:null}},{key:"lastChild",get:function(){return 0<this.childNodes.length?this.childNodes[this.childNodes.length-1]:null}}]),p}(n),Dd=(Rd.DOCUMENT_POSITION_DISCONNECTED=1,Rd.DOCUMENT_POSITION_PRECEDING=2,Rd.DOCUMENT_POSITION_FOLLOWING=4,Rd.DOCUMENT_POSITION_CONTAINS=8,Rd.DOCUMENT_POSITION_CONTAINED_BY=16,Rd.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC=32,Nd=Nd||{},Nd[Nd.Standard=0]="Standard",function(){function t(){this.strategy=Nd.Standard,this.visibilityPlaneMask=-1,this.visible=!0,this.enable=!0}return t.prototype.isCulled=function(){return this.enable&&!this.visible},t}()),Bd=(Dd.tag="c-cullable",Md.tag="c-geometry",Sd.tag="c-rbush-node",p.defineToken("")),Fd=(Od.tag="c-renderable",Pd.tag="c-sortable",Ad.tag="c-transform",function(u){function t(t,e,n,r,i,o,a,s){var l=u.call(this,null)||this;return l.relatedNode=void 0,l.prevValue=void 0,l.newValue=void 0,l.attrName=void 0,l.attrChange=void 0,l.prevParsedValue=void 0,l.newParsedValue=void 0,l.relatedNode=e,l.prevValue=n,l.newValue=r,l.attrName=i,l.attrChange=o,l.prevParsedValue=a,l.newParsedValue=s,l.type=t,l}return b(t,u),t}(Id)),zd=(Fd.ADDITION=2,Fd.MODIFICATION=1,Fd.REMOVAL=3,0),Vd=new jd(E.CHILD_INSERTED,{child:null}),Gd=new Fd(E.INSERTED,null,"","","",0,"",""),Hd=new Fd(E.REMOVED,null,"","","",0,"",""),Wd=new jd(E.DESTROY),Yd=new jd(E.CHILD_REMOVED,{child:null}),Ud=function(i){function t(){for(var t,e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return(t=i.call.apply(i,[this].concat(n))||this).entity=zd++,t.renderable=new Od,t.cullable=new Dd,t.transformable=new Ad,t.sortable=new Pd,t.geometry=new Md,t.rBushNode=new Sd,t.id=void 0,t.name=void 0,t.namespaceURI="g",t.scrollLeft=0,t.scrollTop=0,t.clientTop=0,t.clientLeft=0,t.destroyed=!1,t.style={},t.computedStyle={anchor:th,opacity:th,fillOpacity:th,strokeOpacity:th,fill:th,stroke:th,transform:th,transformOrigin:th,visibility:th,pointerEvents:th,lineWidth:th,lineCap:th,lineJoin:th,increasedLineWidthForHitTesting:th,fontSize:th,fontFamily:th,fontStyle:th,fontWeight:th,fontVariant:th,textAlign:th,textBaseline:th,textTransform:th,zIndex:th,filter:th,shadowType:th},t.parsedStyle={},t.attributes={},t}b(t,i),t.isElement=function(t){return!!t.getAttribute};var e=t.prototype;return e.cloneNode=function(t){throw new Error("Method not implemented.")},e.appendChild=function(t,e){return x.attach(t,this,e),Vd.detail.child=t,this.dispatchEvent(Vd),Gd.relatedNode=this,t.dispatchEvent(Gd),t},e.insertBefore=function(t,e){return e?(e=this.childNodes.indexOf(e),this.appendChild(t,e-1)):this.appendChild(t),t},e.replaceChild=function(t,e,n){var r=this.childNodes.indexOf(e);return this.removeChild(e,n),this.appendChild(t,r),e},e.removeChild=function(t,e){return void 0===e&&(e=!0),Hd.relatedNode=this,t.dispatchEvent(Hd),e&&(t.dispatchEvent(Wd),t.destroyed=!0),Yd.detail.child=t,this.dispatchEvent(Yd),x.detach(t),e&&(t.emitter.removeAllListeners(),ty.remove(t.entity)),t},e.removeChildren=function(e){var n=this;void 0===e&&(e=!0),this.childNodes.slice().forEach(function(t){n.removeChild(t,e)})},e.matches=function(t){return x.matches(t,this)},e.getElementById=function(t){return x.querySelector("#"+t,this)},e.getElementsByName=function(t){return x.querySelectorAll('[name="'+t+'"]',this)},e.getElementsByClassName=function(t){return x.querySelectorAll("."+t,this)},e.getElementsByTagName=function(t){return x.querySelectorAll(t,this)},e.querySelector=function(t){return x.querySelector(t,this)},e.querySelectorAll=function(t){return x.querySelectorAll(t,this)},e.closest=function(t){var e=this;do{if(x.matches(t,e))return e}while(null!==(e=e.parentElement));return null},e.find=function(e){var n=this,r=null;return this.forEach(function(t){return!(t===n||!e(t))&&(r=t,!0)}),r},e.findAll=function(e){var n=this,r=[];return this.forEach(function(t){t!==n&&e(t)&&r.push(t)}),r},e.after=function(){var r=this;if(this.parentNode){for(var i=this.parentNode.childNodes.indexOf(this),t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];e.forEach(function(t,e){var n;return null==(n=r.parentNode)?void 0:n.appendChild(t,i+e+1)})}},e.before=function(){if(this.parentNode){for(var t=this.parentNode.childNodes.indexOf(this),e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];var i=n[0],o=n.slice(1);this.parentNode.appendChild(i,t),i.after.apply(i,o)}},e.replaceWith=function(){this.after.apply(this,arguments),this.remove()},e.append=function(){for(var e=this,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];n.forEach(function(t){return e.appendChild(t)})},e.prepend=function(){for(var n=this,t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];e.forEach(function(t,e){return n.appendChild(t,e)})},e.replaceChildren=function(){for(;this.childNodes.length&&this.firstChild;)this.removeChild(this.firstChild);this.append.apply(this,arguments)},e.remove=function(t){return void 0===t&&(t=!0),this.parentNode?this.parentNode.removeChild(this,t):this},e.destroy=function(){this.dispatchEvent(Wd),this.remove(!1),this.emitter.removeAllListeners(),this.destroyed=!0},e.getGeometryBounds=function(){return x.getGeometryBounds(this)},e.getRenderBounds=function(){return x.getBounds(this,!0)},e.getBounds=function(){return x.getBounds(this)},e.getLocalBounds=function(){return x.getLocalBounds(this)},e.getBoundingClientRect=function(){return x.getBoundingClientRect(this)},e.getClientRects=function(){return[this.getBoundingClientRect()]},e.computedStyleMap=function(){return new Map(Object.entries(this.computedStyle))},e.getAttributeNames=function(){return Object.keys(this.attributes)},e.getAttribute=function(t){var e=this.attributes[t];return void 0===e&&(t=cc(t.toString(),"")[0],e=this.attributes[t]),S(e)?null:e},e.hasAttribute=function(t){return this.getAttributeNames().includes(t)},e.hasAttributes=function(){return!!this.getAttributeNames().length},e.removeAttribute=function(t){this.setAttribute(t,null),delete this.attributes[t]},e.setAttribute=function(t,e,n){this.attributes[t]=e},e.getAttributeNS=function(t,e){throw new Error("Method not implemented.")},e.getAttributeNode=function(t){throw new Error("Method not implemented.")},e.getAttributeNodeNS=function(t,e){throw new Error("Method not implemented.")},e.hasAttributeNS=function(t,e){throw new Error("Method not implemented.")},e.removeAttributeNS=function(t,e){throw new Error("Method not implemented.")},e.removeAttributeNode=function(t){throw new Error("Method not implemented.")},e.setAttributeNS=function(t,e,n){throw new Error("Method not implemented.")},e.setAttributeNode=function(t){throw new Error("Method not implemented.")},e.setAttributeNodeNS=function(t){throw new Error("Method not implemented.")},e.toggleAttribute=function(t,e){throw new Error("Method not implemented.")},Zs(t,[{key:"className",get:function(){return this.getAttribute("class")||""},set:function(t){this.setAttribute("class",t)}},{key:"classList",get:function(){return this.className.split(" ").filter(function(t){return""!==t})}},{key:"tagName",get:function(){return this.nodeName}},{key:"children",get:function(){return this.childNodes}},{key:"childElementCount",get:function(){return this.childNodes.length}},{key:"firstElementChild",get:function(){return this.firstChild}},{key:"lastElementChild",get:function(){return this.lastChild}},{key:"parentElement",get:function(){return this.parentNode}},{key:"nextSibling",get:function(){var t;return this.parentNode&&(t=this.parentNode.childNodes.indexOf(this),this.parentNode.childNodes[t+1])||null}},{key:"previousSibling",get:function(){var t;return this.parentNode&&(t=this.parentNode.childNodes.indexOf(this),this.parentNode.childNodes[t-1])||null}}]),t}(Rd),O=function(i){function a(t){var r=i.call(this)||this;return r.config=void 0,r.isCustomElement=!1,r.activeAnimations=[],r.config=t,r.config.interactive=null!=(t=r.config.capture)?t:r.config.interactive,r.id=r.config.id||"",r.name=r.config.name||"",(r.config.className||r.config.class)&&(r.className=r.config.className||r.config.class),r.nodeName=r.config.type||M.GROUP,r.config.style=Ks({},r.config.style,r.config.attrs),null!=r.config.visible&&(r.config.style.visibility=!1===r.config.visible?"hidden":"visible"),null!=r.config.interactive&&(r.config.style.pointerEvents=!1===r.config.interactive?"none":"auto"),Object.assign(r.parsedStyle,{anchor:[0,0],fill:eh,stroke:eh,transform:[],zIndex:0,filter:[],shadowType:"outer"},r.config.initialParsedStyle),Object.assign(r.attributes,{anchor:"",opacity:"",fillOpacity:"",strokeOpacity:"",fill:"",stroke:"",transform:"",transformOrigin:"",visibility:"",pointerEvents:"",lineWidth:"",lineCap:"",lineJoin:"",increasedLineWidthForHitTesting:"",fontSize:"",fontFamily:"",fontStyle:"",fontWeight:"",fontVariant:"",textAlign:"",textBaseline:"",textTransform:"",zIndex:"",filter:"",shadowType:""}),r.initAttributes(r.config.style),r.style=new Proxy({setProperty:function(t,e){r.setAttribute(t,e)},getPropertyValue:function(t){return r.getAttribute(t)},removeProperty:function(t){r.removeAttribute(t)},item:function(){return""}},{get:function(t,e){return void 0!==t[e]?t[e]:r.getAttribute(e)},set:function(t,e,n){return r.setAttribute(e,n),!0}}),ty.add(r.entity,Qs(r)),r}b(a,i);var t=a.prototype;return t.destroy=function(){i.prototype.destroy.call(this),ty.remove(this.entity),this.getAnimations().forEach(function(t){t.cancel()})},t.cloneNode=function(e,t){var n,r=Ks({},this.attributes);for(n in r){var i=r[n];i instanceof a&&(r[n]=i.cloneNode(e)),t&&(r[n]=t(n,i))}var o=new this.constructor({id:this.id,name:this.name,className:this.name,interactive:this.interactive,style:r});return o.setLocalTransform(this.getLocalTransform()),e&&this.children.forEach(function(t){t.style.isMarker||(t=t.cloneNode(e),o.appendChild(t))}),o},t.initAttributes=function(t){var e=this.renderable;Jf.processProperties(this,t=void 0===t?{}:t,{forceUpdateGeometry:!0,usedAttributes:["opacity","fillOpacity","strokeOpacity","transformOrigin","visibility","pointerEvents","lineWidth","lineCap","lineJoin","increasedLineWidthForHitTesting","fontSize","fontFamily","fontStyle","fontWeight","fontVariant","textAlign","textBaseline","textTransform"]}),e.dirty=!0},t.setAttribute=function(t,e,n){void 0===n&&(n=!1);var t=cc(t,e),r=t[0],t=t[1];cl(e)||!n&&t===this.attributes[r]||(this.internalSetAttribute(r,t),i.prototype.setAttribute.call(this,r,t))},t.internalSetAttribute=function(t,e,n){var r=this,i=(void 0===n&&(n={}),this.renderable),o=this.attributes[t],a=this.parsedStyle[t],s=(Jf.processProperties(this,((s={})[t]=e,s),n),this.parsedStyle.clipPathTargets&&this.parsedStyle.clipPathTargets.length&&this.parsedStyle.clipPathTargets.forEach(function(t){x.dirtifyToRoot(t),t.dispatchEvent(new Fd(E.ATTR_MODIFIED,t,r,r,"clipPath",Fd.MODIFICATION,r,r)),t.isCustomElement&&t.isConnected&&t.attributeChangedCallback&&t.attributeChangedCallback("clipPath",r,r)}),i.dirty=!0,this.parsedStyle[t]);this.isConnected&&((Cd=Cd||new Fd(E.ATTR_MODIFIED,null,null,null,null,Fd.MODIFICATION,null,null)).relatedNode=this,Cd.prevValue=o,Cd.newValue=e,Cd.attrName=t,Cd.prevParsedValue=a,Cd.newParsedValue=s,this.dispatchEvent(Cd)),(this.isCustomElement&&this.isConnected||!this.isCustomElement)&&this.attributeChangedCallback&&this.attributeChangedCallback(t,o,e,a,s)},t.getBBox=function(){var t=this.getBounds(),e=t.getMin(),n=e[0],e=e[1],t=t.getMax(),r=t[0],t=t[1];return new Hc(n,e,r-n,t-e)},t.setOrigin=function(t,e,n){return x.setOrigin(this,Kl(t,e=void 0===e?0:e,n=void 0===n?0:n)),this},t.getOrigin=function(){return x.getOrigin(this)},t.setPosition=function(t,e,n){return x.setPosition(this,Kl(t,e=void 0===e?0:e,n=void 0===n?0:n)),this},t.setLocalPosition=function(t,e,n){return x.setLocalPosition(this,Kl(t,e=void 0===e?0:e,n=void 0===n?0:n)),this},t.translate=function(t,e,n){return x.translate(this,Kl(t,e=void 0===e?0:e,n=void 0===n?0:n)),this},t.translateLocal=function(t,e,n){return x.translateLocal(this,Kl(t,e=void 0===e?0:e,n=void 0===n?0:n)),this},t.getPosition=function(){return x.getPosition(this)},t.getLocalPosition=function(){return x.getLocalPosition(this)},t.scale=function(t,e,n){return this.scaleLocal(t,e,n)},t.scaleLocal=function(t,e,n){return"number"==typeof t&&(t=Kl(t,e=e||t,n=n||t)),x.scaleLocal(this,t),this},t.setLocalScale=function(t,e,n){return"number"==typeof t&&(t=Kl(t,e=e||t,n=n||t)),x.setLocalScale(this,t),this},t.getLocalScale=function(){return x.getLocalScale(this)},t.getScale=function(){return x.getScale(this)},t.getEulerAngles=function(){var t=Ql(m(),x.getWorldTransform(this));return t[0],t[1],Jl(t[2])},t.getLocalEulerAngles=function(){var t=Ql(m(),x.getLocalRotation(this));return t[0],t[1],Jl(t[2])},t.setEulerAngles=function(t){return x.setEulerAngles(this,0,0,t),this},t.setLocalEulerAngles=function(t){return x.setLocalEulerAngles(this,0,0,t),this},t.rotateLocal=function(t,e,n){return S(e)&&S(n)?x.rotateLocal(this,0,0,t):x.rotateLocal(this,t,e,n),this},t.rotate=function(t,e,n){return S(e)&&S(n)?x.rotate(this,0,0,t):x.rotate(this,t,e,n),this},t.setRotation=function(t,e,n,r){return x.setRotation(this,t,e,n,r),this},t.setLocalRotation=function(t,e,n,r){return x.setLocalRotation(this,t,e,n,r),this},t.setLocalSkew=function(t,e){return x.setLocalSkew(this,t,e),this},t.getRotation=function(){return x.getRotation(this)},t.getLocalRotation=function(){return x.getLocalRotation(this)},t.getLocalSkew=function(){return x.getLocalSkew(this)},t.getLocalTransform=function(){return x.getLocalTransform(this)},t.getWorldTransform=function(){return x.getWorldTransform(this)},t.setLocalTransform=function(t){return x.setLocalTransform(this,t),this},t.resetLocalTransform=function(){x.resetLocalTransform(this)},t.getAnimations=function(){return this.activeAnimations},t.animate=function(t,e){var n,r=null==(r=this.ownerDocument)?void 0:r.timeline;return this.parsedStyle.clipPathTargets&&this.parsedStyle.clipPathTargets.length&&(r=null==(n=this.parsedStyle.clipPathTargets[0].ownerDocument)?void 0:n.timeline),delete this.parsedStyle.transform,r?r.play(new Np(this,t,e)):null},t.show=function(){this.style.visibility="visible"},t.hide=function(){this.style.visibility="hidden"},t.isVisible=function(){var t;return"visible"===(null==(t=this.parsedStyle)?void 0:t.visibility)},t.isInteractive=function(){var t;return"none"!==(null==(t=this.parsedStyle)?void 0:t.pointerEvents)},t.isCulled=function(){return!(!this.cullable||!this.cullable.isCulled())},t.toFront=function(){return this.parentNode&&(this.style.zIndex=Math.max.apply(Math,this.parentNode.children.map(function(t){return Number(t.style.zIndex)}))+1),this},t.toBack=function(){return this.parentNode&&(this.style.zIndex=Math.min.apply(Math,this.parentNode.children.map(function(t){return Number(t.style.zIndex)}))-1),this},t.getCount=function(){return this.childElementCount},t.getParent=function(){return this.parentElement},t.getChildren=function(){return this.children},t.getFirst=function(){return this.firstElementChild},t.getLast=function(){return this.lastElementChild},t.getChildByIndex=function(t){return this.children[t]||null},t.add=function(t,e){return this.appendChild(t,e)},t.setClip=function(t){this.style.clipPath=t},t.getClip=function(){return this.style.clipPath||null},t.set=function(t,e){this.config[t]=e},t.get=function(t){return this.config[t]},t.getConfig=function(){return this.config},t.attr=function(){for(var e=this,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var i=n[0],o=n[1];return i?fl(i)?(Object.keys(i).forEach(function(t){e.setAttribute(t,i[t])}),this):2===n.length?(this.setAttribute(i,o),this):this.attributes[i]:this.attributes},t.moveTo=function(t,e,n){return this.setPosition(t,e=void 0===e?0:e,n=void 0===n?0:n),this},t.move=function(t,e,n){return this.setPosition(t,e=void 0===e?0:e,n=void 0===n?0:n),this},t.setZIndex=function(t){return this.style.zIndex=t,this},t.getMatrix=function(t){var t=t||this.getWorldTransform(),e=vo(m(),t),n=e[0],e=e[1],r=bo(m(),t),i=r[0],r=r[1],t=xo(qo(),t),t=Ql(m(),t),o=t[0],t=(t[1],t[2]);return tu(o||t,n,e,i,r)},t.getLocalMatrix=function(){return this.getMatrix(this.getLocalTransform())},t.setMatrix=function(t){var t=eu(t),e=t[0],n=t[1],r=t[2],i=t[3],t=t[4];this.setEulerAngles(t).setPosition(e,n).setLocalScale(r,i)},t.setLocalMatrix=function(t){var t=eu(t),e=t[0],n=t[1],r=t[2],i=t[3],t=t[4];this.setLocalEulerAngles(t).setLocalPosition(e,n).setLocalScale(r,i)},Zs(a,[{key:"interactive",get:function(){return this.isInteractive()},set:function(t){this.style.pointerEvents=t?"auto":"none"}}]),a}(Ud),qd=["style"],Xd=function(n){function t(t){var t=void 0===t?{}:t,e=t.style,t=Js(t,qd),e=n.call(this,Ks({style:Ks({x:"",y:""},e)},t))||this;return e.isCustomElement=!0,e}return b(t,n),t}(O),Zd=["style"],Kd=function(n){function t(t){var t=void 0===t?{}:t,e=t.style,t=Js(t,Zd);return n.call(this,Ks({type:M.CIRCLE,style:Ks({cx:"",cy:"",r:""},e),initialParsedStyle:{anchor:[.5,.5]}},t))||this}return b(t,n),t}(O),$d=["style"],Jd=function(n){function t(t){var t=void 0===t?{}:t,e=t.style,t=Js(t,$d);return n.call(this,Ks({type:M.ELLIPSE,style:Ks({cx:"",cy:"",rx:"",ry:""},e),initialParsedStyle:{anchor:[.5,.5]}},t))||this}return b(t,n),t}(O),Qd=["style"],tp=function(n){function t(t){var t=void 0===t?{}:t,e=t.style,t=Js(t,Qd);return n.call(this,Ks({type:M.GROUP,style:Ks({x:"",y:"",width:"",height:""},e)},t))||this}return b(t,n),t}(O),ep=["style"],np=function(n){function t(t){var t=void 0===t?{}:t,e=t.style,t=Js(t,ep);return n.call(this,Ks({type:M.IMAGE,style:Ks({x:"",y:"",img:"",width:"",height:""},e)},t))||this}return b(t,n),t}(O),rp=["style"],ip=function(r){function t(t){var t=void 0===t?{}:t,e=t.style,t=Js(t,rp),e=r.call(this,Ks({type:M.LINE,style:Ks({x1:0,y1:0,x2:0,y2:0,z1:0,z2:0,isBillboard:!1},e)},t))||this,t=(e.markerStartAngle=0,e.markerEndAngle=0,e.parsedStyle),n=t.markerStart,t=t.markerEnd;return n&&n instanceof O&&(e.markerStartAngle=n.getLocalEulerAngles(),e.appendChild(n)),t&&t instanceof O&&(e.markerEndAngle=t.getLocalEulerAngles(),e.appendChild(t)),e.transformMarker(!0),e.transformMarker(!1),e}b(t,r);var e=t.prototype;return e.attributeChangedCallback=function(t,e,n,r,i){"x1"===t||"y1"===t||"x2"===t||"y2"===t||"markerStartOffset"===t||"markerEndOffset"===t?(this.transformMarker(!0),this.transformMarker(!1)):"markerStart"===t?(r&&r instanceof O&&(this.markerStartAngle=0,r.remove()),i&&i instanceof O&&(this.markerStartAngle=i.getLocalEulerAngles(),this.appendChild(i),this.transformMarker(!0))):"markerEnd"===t&&(r&&r instanceof O&&(this.markerEndAngle=0,r.remove()),i&&i instanceof O&&(this.markerEndAngle=i.getLocalEulerAngles(),this.appendChild(i),this.transformMarker(!1)))},e.transformMarker=function(t){var e,n,r,i,o,a=this.parsedStyle,s=a.markerStart,l=a.markerEnd,u=a.markerStartOffset,c=a.markerEndOffset,h=a.x1,d=a.x2,p=a.y1,f=a.y2,y=a.defX,a=a.defY,s=t?s:l;s&&s instanceof O&&(l=0,t=t?(r=h-y,i=p-a,e=d-h,n=f-p,o=u||0,this.markerStartAngle):(r=d-y,i=f-a,e=h-d,n=p-f,o=c||0,this.markerEndAngle),l=Math.atan2(n,e),s.setLocalEulerAngles(180*l/Math.PI+t),s.setLocalPosition(r+Math.cos(l)*o,i+Math.sin(l)*o))},e.getPoint=function(t){var e=this.parsedStyle,n=e.x1,r=e.y1,i=e.x2,o=e.y2,a=e.defX,e=e.defY,n=ds.pointAt(n,r,i,o,t),r=n.x,i=n.y,o=Fo(m(),_(r-a,i-e,0),this.getLocalTransform());return new Gc(o[0],o[1])},e.getTotalLength=function(){var t=this.parsedStyle,e=t.x1,n=t.y1,r=t.x2,t=t.y2;return ds.length(e,n,r,t)},t}(O),op=["style"],ap=function(i){function t(t){var t=void 0===t?{}:t,e=t.style,t=Js(t,op),e=i.call(this,Ks({type:M.PATH,style:Ks({path:"",miterLimit:""},e)},t))||this,t=(e.markerStartAngle=0,e.markerEndAngle=0,e.markerMidList=[],e.parsedStyle),n=t.markerStart,r=t.markerEnd,t=t.markerMid;return n&&n instanceof O&&(e.markerStartAngle=n.getLocalEulerAngles(),e.appendChild(n)),t&&t instanceof O&&e.placeMarkerMid(t),r&&r instanceof O&&(e.markerEndAngle=r.getLocalEulerAngles(),e.appendChild(r)),e.transformMarker(!0),e.transformMarker(!1),e}b(t,i);var e=t.prototype;return e.attributeChangedCallback=function(t,e,n,r,i){"path"===t?(this.transformMarker(!0),this.transformMarker(!1),this.placeMarkerMid(this.parsedStyle.markerMid)):"markerStartOffset"===t||"markerEndOffset"===t?(this.transformMarker(!0),this.transformMarker(!1)):"markerStart"===t?(r&&r instanceof O&&(this.markerStartAngle=0,r.remove()),i&&i instanceof O&&(this.markerStartAngle=i.getLocalEulerAngles(),this.appendChild(i),this.transformMarker(!0))):"markerEnd"===t?(r&&r instanceof O&&(this.markerEndAngle=0,r.remove()),i&&i instanceof O&&(this.markerEndAngle=i.getLocalEulerAngles(),this.appendChild(i),this.transformMarker(!1))):"markerMid"===t&&this.placeMarkerMid(i)},e.transformMarker=function(t){var e,n,r,i,o,a=this.parsedStyle,s=a.markerStart,l=a.markerEnd,u=a.markerStartOffset,c=a.markerEndOffset,h=a.defX,a=a.defY,s=t?s:l;s&&s instanceof O&&(l=0,h=t?(i=(t=this.getStartTangent())[0],e=(t=t[1])[0]-h,n=t[1]-a,r=i[0]-t[0],i=i[1]-t[1],o=u||0,this.markerStartAngle):(u=(t=this.getEndTangent())[0],e=(t=t[1])[0]-h,n=t[1]-a,r=u[0]-t[0],i=u[1]-t[1],o=c||0,this.markerEndAngle),l=Math.atan2(i,r),s.setLocalEulerAngles(180*l/Math.PI+h),s.setLocalPosition(e+Math.cos(l)*o,n+Math.sin(l)*o))},e.placeMarkerMid=function(t){var e=this.parsedStyle,n=e.path.segments,r=e.defX,i=e.defY;if(this.markerMidList.forEach(function(t){t.remove()}),t&&t instanceof O)for(var o=1;o<n.length-1;o++){var a=n[o].currentPoint,s=a[0],a=a[1],l=1===o?t:t.cloneNode(!0);this.markerMidList.push(l),this.appendChild(l),l.setLocalPosition(s-r,a-i)}},e.getTotalLength=function(){return this.parsedStyle.path.totalLength},e.getPoint=function(t){var e=this.parsedStyle,n=e.defX,r=e.defY,e=e.path,i=e.totalLength,e=Ia(e.absolutePath,t*i,T(T({},o),{bbox:!1,length:!0})).point,t=e.x,i=e.y,o=Fo(m(),_(t-n,i-r,0),this.getLocalTransform());return new Gc(o[0],o[1])},e.getStartTangent=function(){var t,e,n=this.parsedStyle.path.segments,r=[];return 1<n.length&&(t=n[0].currentPoint,e=n[1].currentPoint,r=[],(n=n[1].startTangent)?r.push([t[0]-n[0],t[1]-n[1]]):r.push([e[0],e[1]]),r.push([t[0],t[1]])),r},e.getEndTangent=function(){var t,e,n=this.parsedStyle.path.segments,r=n.length,i=[];return 1<r&&(t=n[r-2].currentPoint,e=n[r-1].currentPoint,i=[],(n=n[r-1].endTangent)?i.push([e[0]-n[0],e[1]-n[1]]):i.push([t[0],t[1]]),i.push([e[0],e[1]])),i},t}(O),sp=["style"],lp=function(i){function t(t){var t=void 0===t?{}:t,e=t.style,t=Js(t,sp),e=i.call(this,Ks({type:M.POLYGON,style:Ks({points:"",miterLimit:"",isClosed:!0},e)},t))||this,t=(e.markerStartAngle=0,e.markerEndAngle=0,e.markerMidList=[],e.parsedStyle),n=t.markerStart,r=t.markerEnd,t=t.markerMid;return n&&n instanceof O&&(e.markerStartAngle=n.getLocalEulerAngles(),e.appendChild(n)),t&&t instanceof O&&e.placeMarkerMid(t),r&&r instanceof O&&(e.markerEndAngle=r.getLocalEulerAngles(),e.appendChild(r)),e.transformMarker(!0),e.transformMarker(!1),e}b(t,i);var e=t.prototype;return e.attributeChangedCallback=function(t,e,n,r,i){"points"===t?(this.transformMarker(!0),this.transformMarker(!1),this.placeMarkerMid(this.parsedStyle.markerMid)):"markerStartOffset"===t||"markerEndOffset"===t?(this.transformMarker(!0),this.transformMarker(!1)):"markerStart"===t?(r&&r instanceof O&&(this.markerStartAngle=0,r.remove()),i&&i instanceof O&&(this.markerStartAngle=i.getLocalEulerAngles(),this.appendChild(i),this.transformMarker(!0))):"markerEnd"===t?(r&&r instanceof O&&(this.markerEndAngle=0,r.remove()),i&&i instanceof O&&(this.markerEndAngle=i.getLocalEulerAngles(),this.appendChild(i),this.transformMarker(!1))):"markerMid"===t&&this.placeMarkerMid(i)},e.transformMarker=function(t){var e,n,r,i,o,a=this.parsedStyle,s=a.markerStart,l=a.markerEnd,u=a.markerStartOffset,c=a.markerEndOffset,h=a.points.points,d=a.defX,a=a.defY,s=t?s:l;s&&s instanceof O&&(i=h[l=0][0]-d,o=h[0][1]-a,u=t?(e=h[1][0]-h[0][0],n=h[1][1]-h[0][1],r=u||0,this.markerStartAngle):(t=h.length,n=this.style.isClosed?(e=h[t-1][0]-h[0][0],h[t-1][1]-h[0][1]):(i=h[t-1][0]-d,o=h[t-1][1]-a,e=h[t-2][0]-h[t-1][0],h[t-2][1]-h[t-1][1]),r=c||0,this.markerEndAngle),l=Math.atan2(n,e),s.setLocalEulerAngles(180*l/Math.PI+u),s.setLocalPosition(i+Math.cos(l)*r,o+Math.sin(l)*r))},e.placeMarkerMid=function(t){var e=this.parsedStyle,n=e.points.points,r=e.defX,i=e.defY;if(this.markerMidList.forEach(function(t){t.remove()}),this.markerMidList=[],t&&t instanceof O)for(var o=1;o<(this.style.isClosed?n.length:n.length-1);o++){var a=n[o][0]-r,s=n[o][1]-i,l=1===o?t:t.cloneNode(!0);this.markerMidList.push(l),this.appendChild(l),l.setLocalPosition(a,s)}},t}(O),up=["style"],cp=function(n){function t(t){var t=void 0===t?{}:t,e=t.style,t=Js(t,up);return n.call(this,Ks({type:M.POLYLINE,style:Ks({points:"",miterLimit:"",isClosed:!1},e)},t))||this}b(t,n);var e=t.prototype;return e.getTotalLength=function(){return this.parsedStyle.points.totalLength},e.getPoint=function(n){var t=this.parsedStyle,e=t.defX,r=t.defY,t=t.points,i=t.points,t=t.segments,o=0,a=0,t=(t.forEach(function(t,e){n>=t[0]&&n<=t[1]&&(o=(n-t[0])/(t[1]-t[0]),a=e)}),ds.pointAt(i[a][0],i[a][1],i[a+1][0],i[a+1][1],o)),i=t.x,t=t.y,i=Fo(m(),_(i-e,t-r,0),this.getLocalTransform());return new Gc(i[0],i[1])},e.getStartTangent=function(){var t=this.parsedStyle.points.points,e=[];return e.push([t[1][0],t[1][1]]),e.push([t[0][0],t[0][1]]),e},e.getEndTangent=function(){var t=this.parsedStyle.points.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},t}(lp),hp=["style"],dp=function(n){function t(t){var t=void 0===t?{}:t,e=t.style,t=Js(t,hp);return n.call(this,Ks({type:M.RECT,style:Ks({x:"",y:"",width:"",height:"",radius:""},e)},t))||this}return b(t,n),t}(O),pp=["style"],fp=function(n){function t(t){var t=void 0===t?{}:t,e=t.style,t=Js(t,pp);return n.call(this,Ks({type:M.TEXT,style:Ks({x:"",y:"",text:"",fontSize:"",fontFamily:"",fontStyle:"",fontWeight:"",fontVariant:"",textAlign:"",textBaseline:"",textTransform:"",fill:"black",letterSpacing:"",lineHeight:"",miterLimit:"",whiteSpace:"pre",wordWrap:!1,wordWrapWidth:0,leading:0,dx:"",dy:""},e)},t))||this}b(t,n);var e=t.prototype;return e.getComputedTextLength=function(){var t;return(null==(t=this.parsedStyle.metrics)?void 0:t.maxLineWidth)||0},e.getLineBoundingRects=function(){var t;return(null==(t=this.parsedStyle.metrics)?void 0:t.lineMetrics)||[]},t}(O),yp=["style"],gp=function(n){function t(t){var t=void 0===t?{}:t,e=t.style,t=Js(t,yp),e=n.call(this,Ks({type:M.HTML,style:Ks({x:"",y:"",width:"auto",height:"auto",innerHTML:""},e)},t))||this;return e.cullable.enable=!1,e}b(t,n);var e=t.prototype;return e.getDomElement=function(){return this.parsedStyle.$el},e.getBoundingClientRect=function(){return this.parsedStyle.$el.getBoundingClientRect()},e.getClientRects=function(){return[this.getBoundingClientRect()]},e.getBounds=function(){var t,e,n=this.getBoundingClientRect(),r=null==(r=this.ownerDocument)||null==(r=r.defaultView)?void 0:r.getContextService().getBoundingClientRect();return r?(t=n.left-r.left,r=n.top-r.top,(e=new Fc).setMinMax(_(t,r,0),_(t+n.width,r+n.height,0)),e):null},e.getLocalBounds=function(){if(this.parentNode){var t,e=uo(io(),this.parentNode.getWorldTransform()),n=this.getBounds();if(!Fc.isEmpty(n))return(t=new Fc).setFromTransformedAABB(n,e),t}return this.getBounds()},t}(O),mp=function(i){function t(t,e,n,r){t=i.call(this,t)||this;return t.currentTime=void 0,t.timelineTime=void 0,t.currentTime=n,t.timelineTime=r,t.target=e,t.type="finish",t.bubbles=!1,t.currentTarget=e,t.defaultPrevented=!1,t.eventPhase=t.AT_TARGET,t.timeStamp=Date.now(),t.currentTime=n,t.timelineTime=r,t}return b(t,i),t}(Id),vp=0,bp=function(){function t(t,e){this.effect=void 0,this.timeline=void 0,this.id=void 0,this.currentTimePending=!1,this._idle=!0,this._paused=!1,this._finishedFlag=!0,this.oldPlayState=void 0,this._holdTime=void 0,this.readyPromise=void 0,this.finishedPromise=void 0,this.resolveReadyPromise=void 0,this.rejectReadyPromise=void 0,this.resolveFinishedPromise=void 0,this.rejectFinishedPromise=void 0,this.onfinish=void 0,this.oncancel=void 0,this.onframe=void 0,this._currentTime=0,this._startTime=void 0,this._playbackRate=1,this._totalDuration=void 0,this._inEffect=void 0,this._inTimeline=!0,this.onremove=void 0,((this.effect=t).animation=this).timeline=e,this.id=""+vp++,this._inEffect=!!this.effect.update(0),this._totalDuration=Number(null==(t=this.effect)?void 0:t.getComputedTiming().endTime),this._holdTime=0,this._paused=!1,this.oldPlayState="idle",this.updatePromises()}var e=t.prototype;return e.updatePromises=function(){var t=this.oldPlayState,e=this.pending?"pending":this.playState;return this.readyPromise&&e!==t&&("idle"===e?(this.rejectReadyPromise(),this.readyPromise=void 0):"pending"===t?this.resolveReadyPromise():"pending"===e&&(this.readyPromise=void 0)),this.finishedPromise&&e!==t&&("idle"===e?(this.rejectFinishedPromise(),this.finishedPromise=void 0):"finished"===e?this.resolveFinishedPromise():"finished"===t&&(this.finishedPromise=void 0)),this.oldPlayState=e,this.readyPromise||this.finishedPromise},e.play=function(){this.updatePromises(),this._paused=!1,(this._isFinished||this._idle)&&(this.rewind(),this._startTime=null),this._finishedFlag=!1,this._idle=!1,this.ensureAlive(),this.timeline.applyDirtiedAnimation(this),-1===this.timeline.animations.indexOf(this)&&this.timeline.animations.push(this),this.updatePromises()},e.pause=function(){this.updatePromises(),this.currentTime&&(this._holdTime=this.currentTime),this._isFinished||this._paused||this._idle?this._idle&&(this.rewind(),this._idle=!1):this.currentTimePending=!0,this._startTime=null,this._paused=!0,this.updatePromises()},e.finish=function(){this.updatePromises(),this._idle||(this.currentTime=0<this._playbackRate?this._totalDuration:0,this._startTime=this._totalDuration-this.currentTime,this.currentTimePending=!1,this.timeline.applyDirtiedAnimation(this),this.updatePromises())},e.cancel=function(){this.updatePromises(),this._inEffect&&(this._inEffect=!1,this._idle=!0,this._paused=!1,this._finishedFlag=!0,this._currentTime=0,this._startTime=null,this.effect.update(null),this.timeline.applyDirtiedAnimation(this),this.updatePromises())},e.reverse=function(){this.updatePromises();var t=this.currentTime;this.playbackRate*=-1,this.play(),null!==t&&(this.currentTime=t),this.updatePromises()},e.updatePlaybackRate=function(t){this.playbackRate=t},e.targetAnimations=function(){var t;return(null==(t=this.effect)?void 0:t.target).getAnimations()},e.markTarget=function(){var t=this.targetAnimations();-1===t.indexOf(this)&&t.push(this)},e.unmarkTarget=function(){var t=this.targetAnimations(),e=t.indexOf(this);-1!==e&&t.splice(e,1)},e.tick=function(t,e){this._idle||this._paused||(null===this._startTime?e&&(this.startTime=t-this._currentTime/this.playbackRate):this._isFinished||this.tickCurrentTime((t-this._startTime)*this.playbackRate)),e&&(this.currentTimePending=!1,this.fireEvents(t))},e.rewind=function(){if(0<=this.playbackRate)this.currentTime=0;else{if(!(this._totalDuration<1/0))throw new Error("Unable to rewind negative playback rate animation with infinite duration");this.currentTime=this._totalDuration}},e.persist=function(){throw new Error("Method not implemented.")},e.addEventListener=function(t,e,n){throw new Error("Method not implemented.")},e.removeEventListener=function(t,e,n){throw new Error("Method not implemented.")},e.dispatchEvent=function(t){throw new Error("Method not implemented.")},e.commitStyles=function(){throw new Error("Method not implemented.")},e.ensureAlive=function(){var t;this.playbackRate<0&&0===this.currentTime?this._inEffect=!(null==(t=this.effect)||!t.update(-1)):this._inEffect=!(null==(t=this.effect)||!t.update(this.currentTime)),this._inTimeline||!this._inEffect&&this._finishedFlag||(this._inTimeline=!0,this.timeline.animations.push(this))},e.tickCurrentTime=function(t,e){t!==this._currentTime&&(this._currentTime=t,this._isFinished&&!e&&(this._currentTime=0<this._playbackRate?this._totalDuration:0),this.ensureAlive())},e.fireEvents=function(t){var e,n=this;this._isFinished?this._finishedFlag||(this.onfinish&&(e=new mp(null,this,this.currentTime,t),setTimeout(function(){n.onfinish&&n.onfinish(e)})),this._finishedFlag=!0):(this.onframe&&"running"===this.playState&&(t=new mp(null,this,this.currentTime,t),this.onframe(t)),this._finishedFlag=!1)},Zs(t,[{key:"pending",get:function(){return null===this._startTime&&!this._paused&&0!==this.playbackRate||this.currentTimePending}},{key:"playState",get:function(){return this._idle?"idle":this._isFinished?"finished":this._paused?"paused":"running"}},{key:"ready",get:function(){var n=this;return this.readyPromise||(-1===this.timeline.animationsWithPromises.indexOf(this)&&this.timeline.animationsWithPromises.push(this),this.readyPromise=new Promise(function(t,e){n.resolveReadyPromise=function(){t(n)},n.rejectReadyPromise=function(){e(new Error)}}),this.pending||this.resolveReadyPromise()),this.readyPromise}},{key:"finished",get:function(){var n=this;return this.finishedPromise||(-1===this.timeline.animationsWithPromises.indexOf(this)&&this.timeline.animationsWithPromises.push(this),this.finishedPromise=new Promise(function(t,e){n.resolveFinishedPromise=function(){t(n)},n.rejectFinishedPromise=function(){e(new Error)}}),"finished"===this.playState&&this.resolveFinishedPromise()),this.finishedPromise}},{key:"currentTime",get:function(){return this.updatePromises(),this._idle||this.currentTimePending?null:this._currentTime},set:function(t){var e;t=Number(t),isNaN(t)||(this.timeline.restart(),this._paused||null===this._startTime||(this._startTime=Number(null==(e=this.timeline)?void 0:e.currentTime)-t/this.playbackRate),this.currentTimePending=!1,this._currentTime!==t&&(this._idle&&(this._idle=!1,this._paused=!0),this.tickCurrentTime(t,!0),this.timeline.applyDirtiedAnimation(this)))}},{key:"startTime",get:function(){return this._startTime},set:function(t){null!==t&&(this.updatePromises(),t=Number(t),isNaN(t)||this._paused||this._idle||(this._startTime=t,this.tickCurrentTime((Number(this.timeline.currentTime)-this._startTime)*this.playbackRate),this.timeline.applyDirtiedAnimation(this),this.updatePromises()))}},{key:"playbackRate",get:function(){return this._playbackRate},set:function(t){var e;t!==this._playbackRate&&(this.updatePromises(),e=this.currentTime,this._playbackRate=t,this.startTime=null,"paused"!==this.playState&&"idle"!==this.playState&&(this._finishedFlag=!1,this._idle=!1,this.ensureAlive(),this.timeline.applyDirtiedAnimation(this)),null!==e&&(this.currentTime=e),this.updatePromises())}},{key:"_isFinished",get:function(){return!this._idle&&(0<this._playbackRate&&Number(this._currentTime)>=this._totalDuration||this._playbackRate<0&&Number(this._currentTime)<=0)}},{key:"totalDuration",get:function(){return this._totalDuration}},{key:"_needsTick",get:function(){return this.pending||"running"===this.playState||!this._finishedFlag}}]),t}();function xp(t,e){return Number(t.id)-Number(e.id)}var wp=function(){function t(t){var n=this;this.document=void 0,this.animations=[],this.ticking=!1,this.timelineTicking=!1,this.hasRestartedThisFrame=!1,this.animationsWithPromises=[],this.inTick=!1,this.pendingEffects=[],this.currentTime=null,this.rafId=0,this.rafCallbacks=[],this.frameId=void 0,this.webAnimationsNextTick=function(t){n.currentTime=t,n.discardAnimations(),0===n.animations.length?n.timelineTicking=!1:n.requestAnimationFrame(n.webAnimationsNextTick)},this.processRafCallbacks=function(e){var t=n.rafCallbacks;n.rafCallbacks=[],e<Number(n.currentTime)&&(e=Number(n.currentTime)),n.animations.sort(xp),n.animations=n.tick(e,!0,n.animations)[0],t.forEach(function(t){t[1](e)}),n.applyPendingEffects()},this.document=t}var e=t.prototype;return e.getAnimations=function(){return this.discardAnimations(),this.animations.slice()},e.isTicking=function(){return this.inTick},e.play=function(t){t=new bp(t,this);return this.animations.push(t),this.restartWebAnimationsNextTick(),t.updatePromises(),t.play(),t.updatePromises(),t},e.applyDirtiedAnimation=function(t){var e=this;this.inTick||(t.markTarget(),(t=t.targetAnimations()).sort(xp),this.tick(Number(this.currentTime),!1,t.slice())[1].forEach(function(t){t=e.animations.indexOf(t);-1!==t&&e.animations.splice(t,1)}),this.applyPendingEffects())},e.restart=function(){return this.ticking||(this.ticking=!0,this.requestAnimationFrame(function(){}),this.hasRestartedThisFrame=!0),this.hasRestartedThisFrame},e.destroy=function(){this.document.defaultView.cancelAnimationFrame(this.frameId)},e.applyPendingEffects=function(){this.pendingEffects.forEach(function(t){null!=t&&t.applyInterpolations()}),this.pendingEffects=[]},e.updateAnimationsPromises=function(){this.animationsWithPromises=this.animationsWithPromises.filter(function(t){return t.updatePromises()})},e.discardAnimations=function(){this.updateAnimationsPromises(),this.animations=this.animations.filter(function(t){return"finished"!==t.playState&&"idle"!==t.playState})},e.restartWebAnimationsNextTick=function(){this.timelineTicking||(this.timelineTicking=!0,this.requestAnimationFrame(this.webAnimationsNextTick))},e.rAF=function(t){var e=this.rafId++;return 0===this.rafCallbacks.length&&(this.frameId=this.document.defaultView.requestAnimationFrame(this.processRafCallbacks)),this.rafCallbacks.push([e,t]),e},e.requestAnimationFrame=function(e){var n=this;return this.rAF(function(t){n.updateAnimationsPromises(),e(t),n.updateAnimationsPromises()})},e.tick=function(n,r,t){var i=this,o=(this.inTick=!0,this.hasRestartedThisFrame=!1,this.currentTime=n,this.ticking=!1,[]),a=[],s=[],l=[];return t.forEach(function(t){t.tick(n,r),t._inEffect?(a.push(t.effect),t.markTarget()):(o.push(t.effect),t.unmarkTarget()),t._needsTick&&(i.ticking=!0);var e=t._inEffect||t._needsTick;((t._inTimeline=e)?s:l).push(t)}),(t=this.pendingEffects).push.apply(t,o),(t=this.pendingEffects).push.apply(t,a),this.ticking&&this.requestAnimationFrame(function(){}),this.inTick=!1,[s,l]},t}(),Ep=function(e){function t(){var t=e.call(this)||this,r=(t.defaultView=null,t.documentElement=void 0,t.timeline=void 0,t.ownerDocument=null,t.nodeName="document",t.timeline=new wp(Qs(t)),{});return Uc.forEach(function(t){var e=t.name,n=t.inherited,t=t.defaultValue;n&&t&&(r[e]=dl(t)?t(M.GROUP):t)}),t.documentElement=new tp({id:"g-root",style:r}),t.documentElement.ownerDocument=Qs(t),t.documentElement.parentNode=Qs(t),t.childNodes=[t.documentElement],t}b(t,e);var n=t.prototype;return n.createElement=function(t,e){var n;return"svg"===t?this.documentElement:((n=this.defaultView.customElements.get(t))||(console.warn("Unsupported tagName: ",t),n="tspan"===t?fp:tp),(t=new n(e)).ownerDocument=this,t)},n.createElementNS=function(t,e,n){return this.createElement(e,n)},n.cloneNode=function(t){throw new Error("Method not implemented.")},n.destroy=function(){try{this.documentElement.destroy()}catch(t){}this.timeline.destroy()},n.elementFromPoint=function(){var n=qs(k().mark(function t(e,n){var r,i,o,a,s,l;return k().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(i=this.defaultView.canvas2Viewport({x:e,y:n}),r=i.x,i=i.y,a=this.defaultView.getConfig(),o=a.width,a=a.height,r<0||i<0||o<r||a<i)return t.abrupt("return",null);t.next=4;break;case 4:return o=this.defaultView.viewport2Client({x:r,y:i}),a=o.x,s=o.y,t.next=7,this.defaultView.getRenderingService().hooks.pick.promise({topmost:!0,position:{x:e,y:n,viewportX:r,viewportY:i,clientX:a,clientY:s},picked:[]});case 7:return s=t.sent,l=s.picked,t.abrupt("return",l&&l[0]||this.documentElement);case 10:case"end":return t.stop()}},t,this)}));return function(t,e){return n.apply(this,arguments)}}(),n.elementsFromPoint=function(){var n=qs(k().mark(function t(e,n){var r,i,o,a,s,l;return k().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(i=this.defaultView.canvas2Viewport({x:e,y:n}),r=i.x,i=i.y,a=this.defaultView.getConfig(),o=a.width,a=a.height,r<0||i<0||o<r||a<i)return t.abrupt("return",[]);t.next=4;break;case 4:return o=this.defaultView.viewport2Client({x:r,y:i}),a=o.x,s=o.y,t.next=7,this.defaultView.getRenderingService().hooks.pick.promise({topmost:!1,position:{x:e,y:n,viewportX:r,viewportY:i,clientX:a,clientY:s},picked:[]});case 7:return s=t.sent,(l=s.picked)[l.length-1]!==this.documentElement&&l.push(this.documentElement),t.abrupt("return",l);case 11:case"end":return t.stop()}},t,this)}));return function(t,e){return n.apply(this,arguments)}}(),n.appendChild=function(t,e){throw new Error("Use document.documentElement instead.")},n.insertBefore=function(t,e){throw new Error("Use document.documentElement instead.")},n.removeChild=function(t,e){throw new Error("Use document.documentElement instead.")},n.replaceChild=function(t,e,n){throw new Error("Use document.documentElement instead.")},n.append=function(){throw new Error("Use document.documentElement instead.")},n.prepend=function(){throw new Error("Use document.documentElement instead.")},n.getElementById=function(t){return this.documentElement.getElementById(t)},n.getElementsByName=function(t){return this.documentElement.getElementsByName(t)},n.getElementsByTagName=function(t){return this.documentElement.getElementsByTagName(t)},n.getElementsByClassName=function(t){return this.documentElement.getElementsByClassName(t)},n.querySelector=function(t){return this.documentElement.querySelector(t)},n.querySelectorAll=function(t){return this.documentElement.querySelectorAll(t)},n.find=function(t){return this.documentElement.find(t)},n.findAll=function(t){return this.documentElement.findAll(t)},Zs(t,[{key:"children",get:function(){return this.childNodes}},{key:"childElementCount",get:function(){return this.childNodes.length}},{key:"firstElementChild",get:function(){return this.firstChild}},{key:"lastElementChild",get:function(){return this.lastChild}}]),t}(Rd),_p=function(i){function t(){for(var t,e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return(t=i.call.apply(i,[this].concat(n))||this).altKey=void 0,t.button=void 0,t.buttons=void 0,t.ctrlKey=void 0,t.metaKey=void 0,t.relatedTarget=void 0,t.shiftKey=void 0,t.client=new Gc,t.movement=new Gc,t.offset=new Gc,t.global=new Gc,t.screen=new Gc,t}b(t,i);var e=t.prototype;return e.getModifierState=function(t){return"getModifierState"in this.nativeEvent&&this.nativeEvent.getModifierState(t)},e.initMouseEvent=function(){throw new Error("Method not implemented.")},Zs(t,[{key:"clientX",get:function(){return this.client.x}},{key:"clientY",get:function(){return this.client.y}},{key:"movementX",get:function(){return this.movement.x}},{key:"movementY",get:function(){return this.movement.y}},{key:"offsetX",get:function(){return this.offset.x}},{key:"offsetY",get:function(){return this.offset.y}},{key:"globalX",get:function(){return this.global.x}},{key:"globalY",get:function(){return this.global.y}},{key:"screenX",get:function(){return this.screen.x}},{key:"screenY",get:function(){return this.screen.y}}]),t}(Id),kp=function(i){function t(){for(var t,e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return(t=i.call.apply(i,[this].concat(n))||this).pointerId=void 0,t.width=0,t.height=0,t.isPrimary=!1,t.pointerType=void 0,t.pressure=void 0,t.tangentialPressure=void 0,t.tiltX=void 0,t.tiltY=void 0,t.twist=void 0,t}b(t,i);var e=t.prototype;return e.getCoalescedEvents=function(){return"pointermove"===this.type||"mousemove"===this.type||"touchmove"===this.type?[this]:[]},e.getPredictedEvents=function(){throw new Error("getPredictedEvents is not supported!")},e.clone=function(){return this.manager.clonePointerEvent(this)},t}(_p),Tp=function(i){function t(){for(var t,e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return(t=i.call.apply(i,[this].concat(n))||this).deltaMode=void 0,t.deltaX=void 0,t.deltaY=void 0,t.deltaZ=void 0,t.DOM_DELTA_LINE=0,t.DOM_DELTA_PAGE=1,t.DOM_DELTA_PIXEL=2,t}return b(t,i),t.prototype.clone=function(){return this.manager.cloneWheelEvent(this)},t}(_p),Mp=function(){function t(){this.delay=0,this.direction="normal",this.duration="auto",this._easing="linear",this.easingFunction=Yu,this.endDelay=0,this.fill="auto",this.iterationStart=0,this.iterations=1,this.playbackRate=void 0,this.effect=void 0,this.composite=void 0,this.activeDuration=void 0,this.endTime=void 0,this.currentIteration=null,this.progress=null}return Zs(t,[{key:"easing",get:function(){return this._easing},set:function(t){this.easingFunction=Ku(t),this._easing=t}}]),t}();function Sp(t,i){if(null===t)return[];for(var e=(t=Array.isArray(t)?t:function(t){var e,n=[];for(e in t)if(!(e in["easing","offset","composite"]))for(var r,i=t[e],o=(i=Array.isArray(i)?i:[i]).length,a=0;a<o;a++)n[a]||(r={},"offset"in t&&(r.offset=Number(t.offset)),"easing"in t&&(r.easing=t.easing),"composite"in t&&(r.composite=t.composite),n[a]=r),void 0!==i[a]&&null!==i[a]&&(n[a][e]=i[a]);return n.sort(function(t,e){return(t.computedOffset||0)-(e.computedOffset||0)}),n}(t)).map(function(t){var e,n={};for(e in null!=i&&i.composite&&(n.composite="auto"),t){var r=t[e];if("offset"===e){if(null!==r){if(r=Number(r),!isFinite(r))throw new Error("Keyframe offsets must be numbers.");if(r<0||1<r)throw new Error("Keyframe offsets must be between 0 and 1.");n.computedOffset=r}}else if("composite"===e&&-1===["replace","add","accumulate","auto"].indexOf(r))throw new Error(r+" compositing is not supported");n[e]=r}return void 0===n.offset&&(n.offset=null),void 0===n.easing&&(n.easing=(null==i?void 0:i.easing)||"linear"),void 0===n.composite&&(n.composite="auto"),n}),n=!0,r=-1/0,o=0;o<e.length;o++){var a=e[o].offset;if(S(a))n=!1;else{if(a<r)throw new TypeError("Keyframes are not loosely sorted by offset. Sort or specify offsets.");r=a}}if(e=e.filter(function(t){return 0<=Number(t.offset)&&Number(t.offset)<=1}),!n)for(var s=e.length,l=(e[s-1].computedOffset=Number(null!=(t=e[s-1].offset)?t:1),1<s&&(e[0].computedOffset=Number(null!=(t=e[0].offset)?t:0)),0),u=Number(e[0].computedOffset),c=1;c<s;c++){var h=e[c].computedOffset;if(!S(h)&&!S(u)){for(var d=1;d<c-l;d++)e[l+d].computedOffset=u+(Number(h)-u)*d/(c-l);l=c,u=Number(h)}}return e}var Op="backwards|forwards|both|none".split("|"),Pp="reverse|alternate|alternate-reverse".split("|");function Ap(t,e){var n,r,i;return t=function(t){"number"==typeof t&&(t=isNaN(t)?{duration:"auto"}:{duration:t});return t}(null!=(r=t)?r:{duration:"auto"}),n=t,r=e,i=new Mp,r&&(i.fill="both",i.duration="auto"),"number"!=typeof n||isNaN(n)?void 0!==n&&Object.keys(n).forEach(function(t){void 0===n[t]||null===n[t]||"auto"===n[t]||!("number"!=typeof i[t]&&"duration"!==t||"number"==typeof n[t]&&!isNaN(n[t]))||"fill"===t&&-1===Op.indexOf(n[t])||"direction"===t&&-1===Pp.indexOf(n[t])||(i[t]=n[t])}):i.duration=n,i}var Np=function(){function t(t,e,n){var r=this;this.composite="replace",this.iterationComposite="replace",this.target=void 0,this.animation=void 0,this.timing=void 0,this.computedTiming=void 0,this.normalizedKeyframes=void 0,this.timeFraction=void 0,this.interpolations=void 0,this.target=t,this.timing=Ap(n,!1),(this.timing.effect=this).timing.activeDuration=$u(this.timing),this.timing.endTime=Math.max(0,this.timing.delay+this.timing.activeDuration+this.timing.endDelay),this.normalizedKeyframes=Sp(e,this.timing),this.interpolations=oc(this.normalizedKeyframes,this.timing,this.target),this.computedTiming=new Proxy(this.timing,{get:function(t,e){return"duration"===e?"auto"===t.duration?0:t.duration:"fill"===e?"auto"===t.fill?"none":t.fill:"localTime"===e?r.animation&&r.animation.currentTime||null:"currentIteration"===e?r.animation&&"running"===r.animation.playState?t.currentIteration||0:null:"progress"===e?r.animation&&"running"===r.animation.playState?t.progress||0:null:t[e]},set:function(){return!0}})}var e=t.prototype;return e.applyInterpolations=function(){this.interpolations(this.target,Number(this.timeFraction))},e.update=function(t){return null!==t&&(this.timeFraction=nc(this.timing.activeDuration,t,this.timing),null!==this.timeFraction)},e.getKeyframes=function(){return this.normalizedKeyframes},e.setKeyframes=function(t){this.normalizedKeyframes=Sp(t)},e.getComputedTiming=function(){return this.computedTiming},e.getTiming=function(){return this.timing},e.updateTiming=function(e){var n=this;Object.keys(e||{}).forEach(function(t){n.timing=e[t]})},t}(),Cp=function(){function t(){this.registry={},this.define(M.CIRCLE,Kd),this.define(M.ELLIPSE,Jd),this.define(M.RECT,dp),this.define(M.IMAGE,np),this.define(M.LINE,ip),this.define(M.GROUP,tp),this.define(M.PATH,ap),this.define(M.POLYGON,lp),this.define(M.POLYLINE,cp),this.define(M.TEXT,fp),this.define(M.HTML,gp)}var e=t.prototype;return e.define=function(t,e){this.registry[t]=e},e.get=function(t){return this.registry[t]},t}(),Lp=p.defineToken(""),Ip=p.defineToken("",{multiple:!1}),jp=/\[\s*(.*)=(.*)\s*\]/,Rp=function(){function t(){}var e=t.prototype;return e.selectOne=function(e,n){var t,r,i,o=this;return e.startsWith(".")?n.find(function(t){return-1<((null==t?void 0:t.classList)||[]).indexOf(o.getIdOrClassname(e))}):e.startsWith("#")?n.find(function(t){return t.id===o.getIdOrClassname(e)}):e.startsWith("[")?(t=this.getAttribute(e),r=t.name,i=t.value,r?n.find(function(t){return n!==t&&("name"===r?t.name===i:o.attributeToString(t,r)===i)}):null):n.find(function(t){return n!==t&&t.nodeName===e})},e.selectAll=function(e,n){var t,r,i,o=this;return e.startsWith(".")?n.findAll(function(t){return n!==t&&-1<((null==t?void 0:t.classList)||[]).indexOf(o.getIdOrClassname(e))}):e.startsWith("#")?n.findAll(function(t){return n!==t&&t.id===o.getIdOrClassname(e)}):e.startsWith("[")?(t=this.getAttribute(e),r=t.name,i=t.value,r?n.findAll(function(t){return n!==t&&("name"===r?t.name===i:o.attributeToString(t,r)===i)}):[]):n.findAll(function(t){return n!==t&&t.nodeName===e})},e.is=function(t,e){var n,r;return t.startsWith(".")?e.className===this.getIdOrClassname(t):t.startsWith("#")?e.id===this.getIdOrClassname(t):t.startsWith("[")?(n=(r=this.getAttribute(t)).name,r=r.value,"name"===n?e.name===r:this.attributeToString(e,n)===r):e.nodeName===t},e.getIdOrClassname=function(t){return t.substring(1)},e.getAttribute=function(t){var t=t.match(jp),e="",n="";return t&&2<t.length&&(e=t[1].replace(/"/g,""),n=t[2].replace(/"/g,"")),{name:e,value:n}},e.attributeToString=function(t,e){return t.getAttribute&&!S(t=t.getAttribute(e))&&t.toString?t.toString():""},t}();function Dp(t,e){var n=Number(t.style.zIndex),r=Number(e.style.zIndex);if(n===r){var i=t.parentNode;if(i)return(i=i.childNodes||[]).indexOf(t)-i.indexOf(e)}return n-r}var Bp,Fp,zp,Vp,Rp=t([f({token:Ip})],Rp),It=p.defineToken(""),Gp=function(){function t(){var a,i,o,r,s,l,u,c,h,n,d,p,y=this;this.sceneGraphSelectorFactory=void 0,this.pendingEvents=[],this.boundsChangedEvent=new jd(E.BOUNDS_CHANGED),this.rotate=(a=qo(),function(t,e,n,r){void 0===n&&(n=0),void 0===r&&(r=0),"number"==typeof e&&(e=_(e,n,r));var i,o,n=t.transformable;null!==t.parentNode&&t.parentNode.transformable?($o(r=qo(),e[0],e[1],e[2]),i=y.getRotation(t),o=y.getRotation(t.parentNode),Qo(a,o),Ko(a,a),Zo(r,a,r),Zo(n.localRotation,r,i),ea(n.localRotation,n.localRotation),y.dirtifyLocal(t,n)):y.rotateLocal(t,e)}),this.rotateLocal=(i=qo(),function(t,e,n,r){void 0===n&&(n=0),void 0===r&&(r=0),"number"==typeof e&&(e=_(e,n,r));n=t.transformable;$o(i,e[0],e[1],e[2]),ta(n.localRotation,n.localRotation,i),y.dirtifyLocal(t,n)}),this.setEulerAngles=(o=qo(),function(t,e,n,r){void 0===n&&(n=0),void 0===r&&(r=0),"number"==typeof e&&(e=_(e,n,r));n=t.transformable;null!==t.parentNode&&t.parentNode.transformable?($o(n.localRotation,e[0],e[1],e[2]),r=y.getRotation(t.parentNode),Qo(o,Ko(qo(),r)),ta(n.localRotation,n.localRotation,o),y.dirtifyLocal(t,n)):y.setLocalEulerAngles(t,e)}),this.translateLocal=function(t,e,n,r){void 0===n&&(n=0),void 0===r&&(r=0),"number"==typeof e&&(e=_(e,n,r));var i,o,a,s,l,u,c,h,d,p,f,n=t.transformable;Vo(e,m())||(i=r=e,o=n.localRotation,a=o[0],s=o[1],l=o[2],o=o[3],u=i[0],c=i[1],i=i[2],f=s*(p=a*c-s*u)-l*(d=l*u-a*i),l=l*(h=s*i-l*c)-a*p,a=a*d-s*h,d*=s=2*o,p*=s,l*=2,a*=2,r[0]=u+(h*=s)+(f*=2),r[1]=c+d+l,r[2]=i+p+a,Lo(n.localPosition,n.localPosition,e),y.dirtifyLocal(t,n))},this.setPosition=(r=io(),s=m(),function(t,e){var n=t.transformable;s[0]=e[0],s[1]=e[1],s[2]=e[2]||0,Vo(y.getPosition(t),s)||(No(n.position,s),null!==t.parentNode&&t.parentNode.transformable?(e=t.parentNode.transformable,ao(r,e.worldTransform),uo(r,r),Fo(n.localPosition,s,r)):No(n.localPosition,s),y.dirtifyLocal(t,n))}),this.setLocalPosition=(l=m(),function(t,e){var n=t.transformable;l[0]=e[0],l[1]=e[1],l[2]=e[2]||0,Vo(n.localPosition,l)||(No(n.localPosition,l),y.dirtifyLocal(t,n))}),this.translate=(u=m(),c=m(),h=m(),function(t,e,n,r){void 0===n&&(n=0),void 0===r&&(r=0),Vo(e="number"==typeof e?Co(c,e,n,r):e,u)||(Lo(h,y.getPosition(t),e),y.setPosition(t,h))}),this.setRotation=function(){var a=qo();return function(t,e,n,r,i){var o=t.transformable;"number"==typeof e&&(e=Jo(e,n,r,i)),null!==t.parentNode&&t.parentNode.transformable?(n=y.getRotation(t.parentNode),Qo(a,n),Ko(a,a),Zo(o.localRotation,a,e),ea(o.localRotation,o.localRotation),y.dirtifyLocal(t,o)):y.setLocalRotation(t,e)}},this.calcLocalTransform=(n=io(),d=m(),p=Jo(0,0,0,1),function(t){wo(t.localTransform,t.localRotation,t.localPosition,_(1,1,1),t.origin),0===t.localSkew[0]&&0===t.localSkew[1]||((e=lo(n))[4]=Math.tan(t.localSkew[0]),e[1]=Math.tan(t.localSkew[1]),co(t.localTransform,t.localTransform,e));var e=wo(n,p,d,t.localScale,t.origin);co(t.localTransform,t.localTransform,e)})}var e=t.prototype;return e.matches=function(t,e){return this.sceneGraphSelectorFactory().is(t,e)},e.querySelector=function(t,e){return this.sceneGraphSelectorFactory().selectOne(t,e)},e.querySelectorAll=function(t,e){return this.sceneGraphSelectorFactory().selectAll(t,e)},e.attach=function(t,e,n){t.parentNode&&this.detach(t),t.parentNode=e,S(n)?t.parentNode.childNodes.push(t):t.parentNode.childNodes.splice(n,0,t);n=e.sortable,(null!=n&&(null!=(e=n.sorted)&&e.length)||null!=(e=t.style)&&e.zIndex)&&(n.dirty=!0),e=t.transformable;e&&this.dirtifyWorld(t,e),e.frozen&&this.unfreezeParentToRoot(t)},e.detach=function(t){var e,n,r;t.parentNode&&(e=t.transformable,(null!=(n=t.parentNode.sortable)&&(null!=(r=n.sorted)&&r.length)||null!=(r=t.style)&&r.zIndex)&&(n.dirty=!0),-1<(r=t.parentNode.childNodes.indexOf(t))&&t.parentNode.childNodes.splice(r,1),e&&this.dirtifyWorld(t,e),t.parentNode=null)},e.getOrigin=function(t){return t.transformable.origin},e.setOrigin=function(t,e,n,r){void 0===n&&(n=0),void 0===r&&(r=0),"number"==typeof e&&(e=_(e,n,r));n=t.transformable;Vo(e,n.origin)||((r=n.origin)[0]=e[0],r[1]=e[1],r[2]=e[2]||0,this.dirtifyLocal(t,n))},e.setLocalEulerAngles=function(t,e,n,r){void 0===n&&(n=0),void 0===r&&(r=0),"number"==typeof e&&(e=_(e,n,r));n=t.transformable;$o(n.localRotation,e[0],e[1],e[2]),this.dirtifyLocal(t,n)},e.scaleLocal=function(t,e){var n,r,i=t.transformable;n=i.localScale,r=i.localScale,e=_(e[0],e[1],e[2]||1),n[0]=r[0]*e[0],n[1]=r[1]*e[1],n[2]=r[2]*e[2],this.dirtifyLocal(t,i)},e.setLocalScale=function(t,e){var n=t.transformable,e=_(e[0],e[1],e[2]||n.localScale[2]);Vo(e,n.localScale)||(No(n.localScale,e),this.dirtifyLocal(t,n))},e.setLocalRotation=function(t,e,n,r,i){"number"==typeof e&&(e=Jo(e,n,r,i));n=t.transformable;Qo(n.localRotation,e),this.dirtifyLocal(t,n)},e.setLocalSkew=function(t,e,n){"number"==typeof e&&(e=na(e,n));var r,n=t.transformable;r=n.localSkew,e=e,r[0]=e[0],r[1]=e[1],this.dirtifyLocal(t,n)},e.dirtifyLocal=function(t,e){e.localDirtyFlag||(e.localDirtyFlag=!0,e.dirtyFlag||this.dirtifyWorld(t,e))},e.dirtifyWorld=function(t,e){e.dirtyFlag||this.unfreezeParentToRoot(t),this.dirtifyWorldInternal(t,e),this.dirtifyToRoot(t,!0)},e.triggerPendingEvents=function(){function r(t,e){i.has(t.entity)||(n.boundsChangedEvent.detail=e,t.dispatchEvent(n.boundsChangedEvent),i.add(t.entity))}var n=this,i=new Set;this.pendingEvents.forEach(function(t){var e=t[0],n=t[1];n.affectChildren?e.forEach(function(t){r(t,n)}):r(e,n)}),this.pendingEvents=[]},e.dirtifyToRoot=function(t,e){void 0===e&&(e=!1);var n=t;for(n.renderable&&(n.renderable.dirty=!0);n;){var r=n.renderable;r&&(r.renderBoundsDirty=!0,r.boundsDirty=!0),n=n.parentNode}this.pendingEvents.push([t,{affectChildren:e}])},e.getPosition=function(t){var e=t.transformable;return vo(e.position,this.getWorldTransform(t,e))},e.getRotation=function(t){var e=t.transformable;return xo(e.rotation,this.getWorldTransform(t,e))},e.getScale=function(t){var e=t.transformable;return bo(e.scaling,this.getWorldTransform(t,e))},e.getWorldTransform=function(t,e){return((e=void 0===e?t.transformable:e).localDirtyFlag||e.dirtyFlag)&&(t.parentNode&&t.parentNode.transformable&&this.getWorldTransform(t.parentNode),this.sync(t,e)),e.worldTransform},e.getLocalPosition=function(t){return t.transformable.localPosition},e.getLocalRotation=function(t){return t.transformable.localRotation},e.getLocalScale=function(t){return t.transformable.localScale},e.getLocalSkew=function(t){return t.transformable.localSkew},e.getLocalTransform=function(t){t=t.transformable;return t.localDirtyFlag&&(this.calcLocalTransform(t),t.localDirtyFlag=!1),t.localTransform},e.setLocalTransform=function(t,e){var n=vo(m(),e),r=xo(qo(),e),e=bo(m(),e);this.setLocalScale(t,e),this.setLocalPosition(t,n),this.setLocalRotation(t,r)},e.resetLocalTransform=function(t){this.setLocalScale(t,[1,1,1]),this.setLocalPosition(t,[0,0,0]),this.setLocalEulerAngles(t,[0,0,0]),this.setLocalSkew(t,[0,0])},e.getTransformedGeometryBounds=function(t,e,n){e=this.getGeometryBounds(t,e=void 0===e?!1:e);return Fc.isEmpty(e)?null:((n=n||new Fc).setFromTransformedAABB(e,this.getWorldTransform(t)),n)},e.getGeometryBounds=function(t,e){t=t.geometry;return((e=void 0===e?!1:e)?t.renderBounds:t.contentBounds||null)||new Fc},e.getBounds=function(t,e){var n,r,i,o,a=this,s=(void 0===e&&(e=!1),t.renderable);return s.boundsDirty||e||!s.bounds?!s.renderBoundsDirty&&e&&s.renderBounds?s.renderBounds:(n=e?s.renderBounds:s.bounds,r=this.getTransformedGeometryBounds(t,e,n),t.childNodes.forEach(function(t){t=a.getBounds(t,e);t&&(r?r.add(t):(r=n||new Fc).update(t.center,t.halfExtents))}),(i=t.parsedStyle.clipPath)&&((i=this.getTransformedGeometryBounds(i,!0))&&(o=new Fc).setFromTransformedAABB(i,this.getWorldTransform(t)),r?o&&(r=o.intersection(r)):r=o),(r=r||new Fc)&&(e?s.renderBounds=r:s.bounds=r),e?s.renderBoundsDirty=!1:s.boundsDirty=!1,r):s.bounds},e.getLocalBounds=function(t){if(t.parentNode){var e,n=io(),r=(t.parentNode.transformable&&(n=uo(io(),this.getWorldTransform(t.parentNode))),this.getBounds(t));if(!Fc.isEmpty(r))return(e=new Fc).setFromTransformedAABB(r,n),e}return this.getBounds(t)},e.getBoundingClientRect=function(t){var e,n,r,i=this.getGeometryBounds(t),i=(Fc.isEmpty(i)||(r=new Fc).setFromTransformedAABB(i,this.getWorldTransform(t)),null==(i=t.ownerDocument)||null==(t=i.defaultView)?void 0:t.getContextService().getBoundingClientRect());return r?(e=(t=r.getMin())[0],t=t[1],n=(r=r.getMax())[0],r=r[1],new Hc(e+((null==i?void 0:i.left)||0),t+((null==i?void 0:i.top)||0),n-e,r-t)):new Hc((null==i?void 0:i.left)||0,(null==i?void 0:i.top)||0,0,0)},e.dirtifyWorldInternal=function(t,e){var n=this;e.dirtyFlag||(e.dirtyFlag=!0,e.frozen=!1,t.childNodes.forEach(function(t){var e=t.transformable;e.dirtyFlag||n.dirtifyWorldInternal(t,e)}),(e=t.renderable)&&(e.renderBoundsDirty=!0,e.boundsDirty=!0,e.dirty=!0))},e.syncHierarchy=function(t){var e=t.transformable;if(!e.frozen){e.frozen=!0,(e.localDirtyFlag||e.dirtyFlag)&&this.sync(t,e);for(var n=t.childNodes,r=0;r<n.length;r++)this.syncHierarchy(n[r])}},e.sync=function(t,e){var n;e.localDirtyFlag&&(this.calcLocalTransform(e),e.localDirtyFlag=!1),e.dirtyFlag&&(n=(t=t.parentNode)&&t.transformable,null!==t&&n?co(e.worldTransform,n.worldTransform,e.localTransform):ao(e.worldTransform,e.localTransform),e.dirtyFlag=!1)},e.unfreezeParentToRoot=function(t){for(var e=t.parentNode;e;){var n=e.transformable;n&&(n.frozen=!1),e=e.parentNode}},t}(),Hp=(t([y(Lp),e("design:type",Function)],Gp.prototype,"sceneGraphSelectorFactory",void 0),Gp=t([f({token:It})],Gp),p.defineToken("",{multiple:!1})),Wp=((s=Bp=Bp||{})[s.CAMERA_CHANGED=0]="CAMERA_CHANGED",s[s.DISPLAY_OBJECT_CHANGED=1]="DISPLAY_OBJECT_CHANGED",s[s.NONE=2]="NONE",p.defineToken("")),Yp=p.defineToken("");(re=Fp=Fp||{})[re.ORBITING=0]="ORBITING",re[re.EXPLORING=1]="EXPLORING",re[re.TRACKING=2]="TRACKING",(l=zp=zp||{})[l.DEFAULT=0]="DEFAULT",l[l.ROTATIONAL=1]="ROTATIONAL",l[l.TRANSLATIONAL=2]="TRANSLATIONAL",l[l.CINEMATIC=3]="CINEMATIC",(r=Vp=Vp||{})[r.ORTHOGRAPHIC=0]="ORTHOGRAPHIC",r[r.PERSPECTIVE=1]="PERSPECTIVE";var Up="updated",qp=Math.PI/180,Xp=180/Math.PI,Zp=function(r){function a(t,e){var n;return void 0===t&&(t=Fp.EXPLORING),void 0===e&&(e=zp.DEFAULT),(n=r.call(this)||this).canvas=void 0,n.matrix=io(),n.right=_(1,0,0),n.up=_(0,1,0),n.forward=_(0,0,1),n.position=_(0,0,1),n.focalPoint=_(0,0,0),n.distanceVector=_(0,0,-1),n.distance=1,n.azimuth=0,n.elevation=0,n.roll=0,n.relAzimuth=0,n.relElevation=0,n.relRoll=0,n.dollyingStep=0,n.maxDistance=1/0,n.minDistance=-1/0,n.zoom=1,n.rotateWorld=!1,n.fov=30,n.near=.1,n.far=1e3,n.aspect=1,n.left=void 0,n.rright=void 0,n.top=void 0,n.bottom=void 0,n.projectionMatrix=io(),n.projectionMatrixInverse=io(),n.jitteredProjectionMatrix=void 0,n.view=void 0,n.enableUpdate=!0,n.type=Fp.EXPLORING,n.trackingMode=zp.DEFAULT,n.projectionMode=Vp.PERSPECTIVE,n.frustum=new Vc,n.landmarks=[],n.landmarkAnimationID=void 0,n.orthoMatrix=io(),n.setType(t,e),n}b(a,r);var t=a.prototype;return t.isOrtho=function(){return this.projectionMode===Vp.ORTHOGRAPHIC},t.getProjectionMode=function(){return this.projectionMode},t.getPerspective=function(){return this.jitteredProjectionMatrix||this.projectionMatrix},t.getPerspectiveInverse=function(){return this.projectionMatrixInverse},t.getFrustum=function(){return this.frustum},t.getPosition=function(){return this.position},t.getFocalPoint=function(){return this.focalPoint},t.getDollyingStep=function(){return this.dollyingStep},t.getNear=function(){return this.near},t.getFar=function(){return this.far},t.getZoom=function(){return this.zoom},t.getOrthoMatrix=function(){return this.orthoMatrix},t.getView=function(){return this.view},t.setEnableUpdate=function(t){this.enableUpdate=t},t.setType=function(t,e){return this.type=t,this.type===Fp.EXPLORING?this.setWorldRotation(!0):this.setWorldRotation(!1),this._getAngles(),this.type===Fp.TRACKING&&void 0!==e&&this.setTrackingMode(e),this},t.setProjectionMode=function(t){return this.projectionMode=t,this},t.setTrackingMode=function(t){if(this.type!==Fp.TRACKING)throw new Error("Impossible to set a tracking mode if the camera is not of tracking type");return this.trackingMode=t,this},t.setWorldRotation=function(t){return this.rotateWorld=t,this._getAngles(),this},t.getViewTransform=function(){return uo(io(),this.matrix)},t.getWorldTransform=function(){return this.matrix},t.jitterProjectionMatrix=function(t,e){t=go(io(),[t,e,0]);this.jitteredProjectionMatrix=co(io(),t,this.projectionMatrix)},t.clearJitterProjectionMatrix=function(){this.jitteredProjectionMatrix=void 0},t.setMatrix=function(t){return this.matrix=t,this._update(),this},t.setFov=function(t){return this.setPerspective(this.near,this.far,t,this.aspect),this},t.setAspect=function(t){return this.setPerspective(this.near,this.far,this.fov,t),this},t.setNear=function(t){return this.projectionMode===Vp.PERSPECTIVE?this.setPerspective(t,this.far,this.fov,this.aspect):this.setOrthographic(this.left,this.rright,this.top,this.bottom,t,this.far),this},t.setFar=function(t){return this.projectionMode===Vp.PERSPECTIVE?this.setPerspective(this.near,t,this.fov,this.aspect):this.setOrthographic(this.left,this.rright,this.top,this.bottom,this.near,t),this},t.setViewOffset=function(t,e,n,r,i,o){return this.aspect=t/e,void 0===this.view&&(this.view={enabled:!0,fullWidth:1,fullHeight:1,offsetX:0,offsetY:0,width:1,height:1}),this.view.enabled=!0,this.view.fullWidth=t,this.view.fullHeight=e,this.view.offsetX=n,this.view.offsetY=r,this.view.width=i,this.view.height=o,this.projectionMode===Vp.PERSPECTIVE?this.setPerspective(this.near,this.far,this.fov,this.aspect):this.setOrthographic(this.left,this.rright,this.top,this.bottom,this.near,this.far),this},t.clearViewOffset=function(){return void 0!==this.view&&(this.view.enabled=!1),this.projectionMode===Vp.PERSPECTIVE?this.setPerspective(this.near,this.far,this.fov,this.aspect):this.setOrthographic(this.left,this.rright,this.top,this.bottom,this.near,this.far),this},t.setZoom=function(t){return this.zoom=t,this.projectionMode===Vp.ORTHOGRAPHIC?this.setOrthographic(this.left,this.rright,this.top,this.bottom,this.near,this.far):this.projectionMode===Vp.PERSPECTIVE&&this.setPerspective(this.near,this.far,this.fov,this.aspect),this},t.setPerspective=function(t,e,n,r){this.projectionMode=Vp.PERSPECTIVE,this.fov=n,this.near=t,this.far=e,this.aspect=r;var i,o,a,s,n=this.near*Math.tan(.5*qp*this.fov)/this.zoom,e=2*n,r=this.aspect*e,l=-.5*r;return null!=(i=this.view)&&i.enabled&&(i=this.view.fullWidth,o=this.view.fullHeight,l+=this.view.offsetX*r/i,n-=this.view.offsetY*e/o,r*=this.view.width/i,e*=this.view.height/o),i=this.projectionMatrix,l=(o=l)+r,n=(r=n)-e,e=this.far,a=2*t/(r-n),s=(l+o)/(l-o),r=(r+n)/(r-n),n=-(e+t)/(e-t),e=-2*e*t/(e-t),i[0]=2*t/(l-o),i[1]=0,i[2]=0,i[3]=0,i[4]=0,i[5]=a,i[6]=0,i[7]=0,i[8]=s,i[9]=r,i[10]=n,i[11]=-1,i[12]=0,i[13]=0,i[14]=e,i[15]=0,po(this.projectionMatrix,this.projectionMatrix,_(1,-1,1)),uo(this.projectionMatrixInverse,this.projectionMatrix),this.triggerUpdate(),this},t.setOrthographic=function(t,e,n,r,i,o){this.projectionMode=Vp.ORTHOGRAPHIC,this.rright=e,this.left=t,this.top=n,this.bottom=r,this.near=i,this.far=o;var a,e=(this.rright-this.left)/(2*this.zoom),t=(this.top-this.bottom)/(2*this.zoom),n=(this.rright+this.left)/2,r=(this.top+this.bottom)/2,s=n-e,n=n+e,e=r+t,r=r-t;return null!=(t=this.view)&&t.enabled&&(t=(this.rright-this.left)/this.view.fullWidth/this.zoom,a=(this.top-this.bottom)/this.view.fullHeight/this.zoom,n=(s+=t*this.view.offsetX)+t*this.view.width,r=(e-=a*this.view.offsetY)-a*this.view.height),To(this.projectionMatrix,s,n,r,e,i,o),po(this.projectionMatrix,this.projectionMatrix,_(1,-1,1)),uo(this.projectionMatrixInverse,this.projectionMatrix),this._getOrthoMatrix(),this.triggerUpdate(),this},t.setPosition=function(t,e,n){t=Kl(t,e=void 0===e?this.position[1]:e,n=void 0===n?this.position[2]:n);return this._setPosition(t),this.setFocalPoint(this.focalPoint),this.triggerUpdate(),this},t.setFocalPoint=function(t,e,n){void 0===e&&(e=this.focalPoint[1]),void 0===n&&(n=this.focalPoint[2]);var r,i=_(0,1,0);return this.focalPoint=Kl(t,e,n),this.trackingMode===zp.CINEMATIC&&(t=(r=Io(m(),this.focalPoint,this.position))[0],e=r[1],n=r[2],r=Ao(r),e=Math.asin(e/r)*Xp,r=90+Math.atan2(n,t)*Xp,yo(n=io(),n,r*qp),fo(n,n,e*qp),i=Fo(m(),[0,1,0],n)),uo(this.matrix,Mo(io(),this.position,this.focalPoint,i)),this._getAxes(),this._getDistance(),this._getAngles(),this.triggerUpdate(),this},t.getDistance=function(){return this.distance},t.setDistance=function(t){var e,n,r;return this.distance===t||t<0||(this.distance=t,this.distance<2e-4&&(this.distance=2e-4),this.dollyingStep=this.distance/100,e=m(),t=this.distance,n=this.forward,r=this.focalPoint,e[0]=t*n[0]+r[0],e[1]=t*n[1]+r[1],e[2]=t*n[2]+r[2],this._setPosition(e),this.triggerUpdate()),this},t.setMaxDistance=function(t){return this.maxDistance=t,this},t.setMinDistance=function(t){return this.minDistance=t,this},t.setAzimuth=function(t){return this.azimuth=Zl(t),this.computeMatrix(),this._getAxes(),this.type===Fp.ORBITING||this.type===Fp.EXPLORING?this._getPosition():this.type===Fp.TRACKING&&this._getFocalPoint(),this.triggerUpdate(),this},t.getAzimuth=function(){return this.azimuth},t.setElevation=function(t){return this.elevation=Zl(t),this.computeMatrix(),this._getAxes(),this.type===Fp.ORBITING||this.type===Fp.EXPLORING?this._getPosition():this.type===Fp.TRACKING&&this._getFocalPoint(),this.triggerUpdate(),this},t.getElevation=function(){return this.elevation},t.setRoll=function(t){return this.roll=Zl(t),this.computeMatrix(),this._getAxes(),this.type===Fp.ORBITING||this.type===Fp.EXPLORING?this._getPosition():this.type===Fp.TRACKING&&this._getFocalPoint(),this.triggerUpdate(),this},t.getRoll=function(){return this.roll},t.rotate=function(t,e,n){if(this.relElevation=Zl(e),this.relAzimuth=Zl(t),this.relRoll=Zl(n),this.elevation+=this.relElevation,this.azimuth+=this.relAzimuth,this.roll+=this.relRoll,this.type===Fp.EXPLORING){e=Xo(qo(),[1,0,0],(this.rotateWorld?1:-1)*this.relElevation*qp),t=Xo(qo(),[0,1,0],(this.rotateWorld?1:-1)*this.relAzimuth*qp),n=Xo(qo(),[0,0,1],this.relRoll*qp),t=Zo(qo(),t,e),t=Zo(qo(),t,n),e=Eo(io(),t);ho(this.matrix,this.matrix,[0,0,-this.distance]),co(this.matrix,this.matrix,e),ho(this.matrix,this.matrix,[0,0,this.distance])}else{if(90<Math.abs(this.elevation))return this;this.computeMatrix()}return this._getAxes(),this.type===Fp.ORBITING||this.type===Fp.EXPLORING?this._getPosition():this.type===Fp.TRACKING&&this._getFocalPoint(),this._update(),this},t.pan=function(t,e){t=Kl(t,e,0),e=Po(this.position);return Lo(e,e,jo(m(),this.right,t[0])),Lo(e,e,jo(m(),this.up,t[1])),this._setPosition(e),this.triggerUpdate(),this},t.dolly=function(t){var e=this.forward,n=Po(this.position),t=(this.dollyingStep,this.distance+t*this.dollyingStep),t=Math.max(Math.min(t,this.maxDistance),this.minDistance)-this.distance;return n[0]+=t*e[0],n[1]+=t*e[1],n[2]+=t*e[2],this._setPosition(n),this.type===Fp.ORBITING||this.type===Fp.EXPLORING?this._getDistance():this.type===Fp.TRACKING&&Lo(this.focalPoint,n,this.distanceVector),this.triggerUpdate(),this},t.createLandmark=function(t,e){var e=e=void 0===e?{}:e,n=e.position,n=void 0===n?this.position:n,r=e.focalPoint,r=void 0===r?this.focalPoint:r,i=e.roll,e=e.zoom,o=new a,n=(o.setType(this.type,void 0),o.setPosition(n[0],n[1]||this.position[1],n[2]||this.position[2]),o.setFocalPoint(r[0],r[1]||this.focalPoint[1],r[2]||this.focalPoint[2]),o.setRoll(i||this.roll),o.setZoom(e||this.zoom),{name:t,matrix:oo(o.matrix),right:Po(o.right),up:Po(o.up),forward:Po(o.forward),position:Po(o.position),focalPoint:Po(o.focalPoint),distanceVector:Po(o.distanceVector),distance:o.distance,dollyingStep:o.dollyingStep,azimuth:o.azimuth,elevation:o.elevation,roll:o.roll,relAzimuth:o.relAzimuth,relElevation:o.relElevation,relRoll:o.relRoll,zoom:o.zoom});return this.landmarks.push(n),n},t.gotoLandmark=function(e,t){var n,s,r,i,l,u,c,h,d,p,f,y,g=this,o=(void 0===t&&(t={}),ic(e)?this.landmarks.find(function(t){return t.name===e}):e);o&&(n=void 0===(n=(t=hl(t)?{duration:t}:t).easing)?"linear":n,r=t.duration,s=void 0===r?100:r,r=void 0===(r=t.easingFunction)?void 0:r,t=t.onfinish,i=void 0===t?void 0:t,l=.01,0===s?(this.syncFromLandmark(o),i&&i()):(void 0!==this.landmarkAnimationID&&this.canvas.cancelAnimationFrame(this.landmarkAnimationID),u=o.position,c=o.focalPoint,h=o.zoom,d=o.roll,p=r||Ku(n),y=function(){g.setFocalPoint(c),g.setPosition(u),g.setRoll(d),g.setZoom(h),g.computeMatrix(),g.triggerUpdate(),i&&i()},this.canvas.requestAnimationFrame(function t(e){var n,r,i,o,a,e=e-(f=void 0===f?e:f);s<e||(n=p(e/s),r=m(),i=m(),o=1,a=0,Bo(r,g.focalPoint,c,n),Bo(i,g.position,u,n),a=g.roll*(1-n)+d*n,o=g.zoom*(1-n)+h*n,g.setFocalPoint(r),g.setPosition(i),g.setRoll(a),g.setZoom(o),Ho(r,c)+Ho(i,u)<=l)?y():(g.computeMatrix(),g.triggerUpdate(),e<s&&(g.landmarkAnimationID=g.canvas.requestAnimationFrame(t)))})))},t._update=function(){this._getAxes(),this._getPosition(),this._getDistance(),this._getAngles(),this._getOrthoMatrix(),this.triggerUpdate()},t.computeMatrix=function(){var t=Xo(qo(),[0,0,1],this.roll*qp),e=(lo(this.matrix),Xo(qo(),[1,0,0],(this.rotateWorld&&this.type!==Fp.TRACKING||this.type===Fp.TRACKING?1:-1)*this.elevation*qp)),n=Xo(qo(),[0,1,0],(this.rotateWorld&&this.type!==Fp.TRACKING||this.type===Fp.TRACKING?1:-1)*this.azimuth*qp),n=Zo(qo(),n,e),n=Zo(qo(),n,t),e=Eo(io(),n);this.type===Fp.ORBITING||this.type===Fp.EXPLORING?(ho(this.matrix,this.matrix,this.focalPoint),co(this.matrix,this.matrix,e),ho(this.matrix,this.matrix,[0,0,this.distance])):this.type===Fp.TRACKING&&(ho(this.matrix,this.matrix,this.position),co(this.matrix,this.matrix,e))},t._setPosition=function(t,e,n){this.position=Kl(t,e,n);t=this.matrix;t[12]=this.position[0],t[13]=this.position[1],t[14]=this.position[2],t[15]=1,this._getOrthoMatrix()},t._getAxes=function(){No(this.right,Kl(Uo(Yo(),[1,0,0,0],this.matrix))),No(this.up,Kl(Uo(Yo(),[0,1,0,0],this.matrix))),No(this.forward,Kl(Uo(Yo(),[0,0,1,0],this.matrix))),Ro(this.right,this.right),Ro(this.up,this.up),Ro(this.forward,this.forward)},t._getAngles=function(){var t=this.distanceVector[0],e=this.distanceVector[1],n=this.distanceVector[2],r=Ao(this.distanceVector);0===r?(this.elevation=0,this.azimuth=0):this.type===Fp.TRACKING||this.rotateWorld?(this.elevation=Math.asin(e/r)*Xp,this.azimuth=Math.atan2(-t,-n)*Xp):(this.elevation=-Math.asin(e/r)*Xp,this.azimuth=-Math.atan2(-t,-n)*Xp)},t._getPosition=function(){No(this.position,Kl(Uo(Yo(),[0,0,0,1],this.matrix))),this._getDistance()},t._getFocalPoint=function(){var t,e;zo(this.distanceVector,[0,0,-this.distance],(t=no(),e=this.matrix,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)),Lo(this.focalPoint,this.position,this.distanceVector),this._getDistance()},t._getDistance=function(){this.distanceVector=Io(m(),this.focalPoint,this.position),this.distance=Ao(this.distanceVector),this.dollyingStep=this.distance/100},t._getOrthoMatrix=function(){var t,e;this.projectionMode===Vp.ORTHOGRAPHIC&&(t=this.position,e=Xo(qo(),[0,0,1],-this.roll*Math.PI/180),wo(this.orthoMatrix,e,_((this.rright-this.left)/2-t[0],(this.top-this.bottom)/2-t[1],0),_(this.zoom,this.zoom,1),t))},t.triggerUpdate=function(){var t;this.enableUpdate&&(t=this.getViewTransform(),t=co(io(),this.getPerspective(),t),this.getFrustum().extractFromVPMatrix(t),this.emit(Up))},t.syncFromLandmark=function(t){this.matrix=ao(this.matrix,t.matrix),this.right=No(this.right,t.right),this.up=No(this.up,t.up),this.forward=No(this.forward,t.forward),this.position=No(this.position,t.position),this.focalPoint=No(this.focalPoint,t.focalPoint),this.distanceVector=No(this.distanceVector,t.distanceVector),this.azimuth=t.azimuth,this.elevation=t.elevation,this.roll=t.roll,this.relAzimuth=t.relAzimuth,this.relElevation=t.relElevation,this.relRoll=t.relRoll,this.dollyingStep=t.dollyingStep,this.distance=t.distance,this.zoom=t.zoom},a}(Os.exports.EventEmitter),Kp=p.defineToken(""),$p=function(){function t(){this.renderingPluginProvider=void 0,this.canvasConfig=void 0,this.renderingContext=void 0,this.sceneGraphService=void 0,this.styleValueRegistry=void 0,this.camera=void 0,this.inited=!1,this.stats={total:0,rendered:0},this.zIndexCounter=0,this.renderOrderChangedEvent=new jd(E.RENDER_ORDER_CHANGED),this.hooks={init:new Sc,dirtycheck:new Lc(["object"]),cull:new Lc(["object","camera"]),beginFrame:new Nc([]),beforeRender:new Nc(["objectToRender"]),render:new Nc(["objectToRender"]),afterRender:new Nc(["objectToRender"]),endFrame:new Nc([]),destroy:new Nc([]),pick:new Pc(["result"]),pointerDown:new Nc(["event"]),pointerUp:new Nc(["event"]),pointerMove:new Nc(["event"]),pointerOut:new Nc(["event"]),pointerOver:new Nc(["event"]),pointerWheel:new Nc(["event"]),pointerCancel:new Nc(["event"])}}var e=t.prototype;return e.init=function(){var t=qs(k().mark(function t(){var e=this;return k().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return this.renderingPluginProvider.getContributions({cache:!1}).forEach(function(t){t.apply(e)}),t.next=3,this.hooks.init.promise();case 3:this.inited=!0;case 4:case"end":return t.stop()}},t,this)}));return function(){return t.apply(this,arguments)}}(),e.getStats=function(){return this.stats},e.disableDirtyRectangleRendering=function(){return!this.canvasConfig.renderer.getConfig().enableDirtyRectangleRendering||this.renderingContext.renderReasons.has(Bp.CAMERA_CHANGED)},e.render=function(t){var e=this;this.stats.total=0,this.stats.rendered=0,this.zIndexCounter=0,this.sceneGraphService.syncHierarchy(this.renderingContext.root),this.sceneGraphService.triggerPendingEvents(),this.renderingContext.renderReasons.size&&this.inited&&(this.renderDisplayObject(this.renderingContext.root,t),this.hooks.beginFrame.call(),this.renderingContext.renderListCurrentFrame.forEach(function(t){e.hooks.beforeRender.call(t),e.hooks.render.call(t),e.hooks.afterRender.call(t)}),this.hooks.endFrame.call(),this.renderingContext.renderListCurrentFrame=[],this.renderingContext.renderReasons.clear())},e.renderDisplayObject=function(t,e){var n=this,r=e.renderer.getConfig(),i=r.enableDirtyCheck,r=r.enableCulling,i=(this.styleValueRegistry.recalc(t),i?this.hooks.dirtycheck.call(t):t),i=(!i||(r=r?this.hooks.cull.call(i,this.camera):i)&&(this.stats.rendered++,this.renderingContext.renderListCurrentFrame.push(r)),t.renderable.dirty=!1,t.sortable.renderOrder=this.zIndexCounter++,this.stats.total++,t.sortable),r=!1;i.dirty&&(i.sorted=t.childNodes.slice().sort(Dp),i.dirty=!(r=!0)),(i.sorted||t.childNodes).forEach(function(t){n.renderDisplayObject(t,e)}),r&&t.forEach(function(t){n.renderOrderChangedEvent.detail={renderOrder:t.sortable.renderOrder},t.dispatchEvent(n.renderOrderChangedEvent)})},e.destroy=function(){this.inited=!1,this.hooks.destroy.call()},e.dirtify=function(){this.renderingContext.renderReasons.add(Bp.DISPLAY_OBJECT_CHANGED)},t}(),Jp=(t([Ii(Kp),e("design:type",Object)],$p.prototype,"renderingPluginProvider",void 0),t([y(hc),e("design:type",Object)],$p.prototype,"canvasConfig",void 0),t([y(Wp),e("design:type",Object)],$p.prototype,"renderingContext",void 0),t([y(It),e("design:type",Object)],$p.prototype,"sceneGraphService",void 0),t([y(Yt),e("design:type",Object)],$p.prototype,"styleValueRegistry",void 0),t([y(Yp),e("design:type",Zp)],$p.prototype,"camera",void 0),$p=t([f()],$p),function(r){function t(){for(var d,t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return(d=r.call.apply(r,[this].concat(e))||this).renderingContext=void 0,d.contextService=void 0,d.canvasConfig=void 0,d.rootTarget=void 0,d.cursor="default",d.mappingTable={},d.mappingState={trackingData:{}},d.eventPool=new Map,d.pickHandler=void 0,d.tmpMatrix=io(),d.tmpVec3=m(),d.onPointerDown=function(){var e=qs(k().mark(function t(e){var n,r;return k().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(e instanceof kp){t.next=2;break}return t.abrupt("return");case 2:return t.next=4,d.createPointerEvent(e);case 4:n=t.sent,d.dispatchEvent(n,"pointerdown"),"touch"===n.pointerType?d.dispatchEvent(n,"touchstart"):"mouse"!==n.pointerType&&"pen"!==n.pointerType||(r=2===n.button,d.dispatchEvent(n,r?"rightdown":"mousedown")),d.trackingData(e.pointerId).pressTargetsByButton[e.button]=n.composedPath(),d.freeEvent(n);case 10:case"end":return t.stop()}},t)}));return function(t){return e.apply(this,arguments)}}(),d.onPointerUp=function(){var e=qs(k().mark(function t(e){var n,r,i,o,a,s,l;return k().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(e instanceof kp){t.next=2;break}return t.abrupt("return");case 2:return n=performance.now(),t.next=5,d.createPointerEvent(e);case 5:if(r=t.sent,d.dispatchEvent(r,"pointerup"),"touch"===r.pointerType?d.dispatchEvent(r,"touchend"):"mouse"!==r.pointerType&&"pen"!==r.pointerType||(i=2===r.button,d.dispatchEvent(r,i?"rightup":"mouseup")),i=d.trackingData(e.pointerId),s=d.findMountedTarget(i.pressTargetsByButton[e.button]),(l=s)&&!r.composedPath().includes(s)){for(o=s;o&&!r.composedPath().includes(o);)r.currentTarget=o,d.notifyTarget(r,"pointerupoutside"),"touch"===r.pointerType?d.notifyTarget(r,"touchendoutside"):"mouse"!==r.pointerType&&"pen"!==r.pointerType||(a=2===r.button,d.notifyTarget(r,a?"rightupoutside":"mouseupoutside")),Rd.isNode(o)&&(o=o.parentNode);delete i.pressTargetsByButton[e.button],l=o}l&&((s=d.clonePointerEvent(r,"click")).target=l,s.path=[],i.clicksByButton[e.button]||(i.clicksByButton[e.button]={clickCount:0,target:s.target,timeStamp:n}),(l=i.clicksByButton[e.button]).target===s.target&&n-l.timeStamp<200?++l.clickCount:l.clickCount=1,l.target=s.target,l.timeStamp=n,s.detail=l.clickCount,null!=(l=r.detail)&&l.preventClick||("mouse"===s.pointerType||"touch"===s.pointerType?d.dispatchEvent(s,"click"):d.dispatchEvent(s,"pointertap")),d.freeEvent(s)),d.freeEvent(r);case 14:case"end":return t.stop()}},t)}));return function(t){return e.apply(this,arguments)}}(),d.onPointerMove=function(){var e=qs(k().mark(function t(e){var n,r,i,o,a,s,l,u,c,h;return k().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(e instanceof kp){t.next=2;break}return t.abrupt("return");case 2:return t.next=4,d.createPointerEvent(e);case 4:if(n=t.sent,r="mouse"===n.pointerType||"pen"===n.pointerType,i=d.trackingData(e.pointerId),o=d.findMountedTarget(i.overTargets),i.overTargets&&o!==n.target)return l="mousemove"===e.type?"mouseout":"pointerout",t.next=12,d.createPointerEvent(e,l,o||void 0);t.next=23;break;case 12:if(a=t.sent,d.dispatchEvent(a,"pointerout"),r&&d.dispatchEvent(a,"mouseout"),n.composedPath().includes(o)){t.next=22;break}return t.next=18,d.createPointerEvent(e,"pointerleave",o||void 0);case 18:for((s=t.sent).eventPhase=s.AT_TARGET;s.target&&!n.composedPath().includes(s.target);)s.currentTarget=s.target,d.notifyTarget(s),r&&d.notifyTarget(s,"mouseleave"),Rd.isNode(s.target)&&(s.target=s.target.parentNode);d.freeEvent(s);case 22:d.freeEvent(a);case 23:if(o===n.target){t.next=38;break}l="mousemove"===e.type?"mouseover":"pointerover",u=d.clonePointerEvent(n,l),d.dispatchEvent(u,"pointerover"),r&&d.dispatchEvent(u,"mouseover"),c=o&&Rd.isNode(o)&&o.parentNode;case 29:if(c&&c!==(Rd.isNode(d.rootTarget)&&d.rootTarget.parentNode)){if(c===n.target)return t.abrupt("break",35);t.next=32}else t.next=35;break;case 32:c=c.parentNode,t.next=29;break;case 35:if(!c||c===(Rd.isNode(d.rootTarget)&&d.rootTarget.parentNode)){for((h=d.clonePointerEvent(n,"pointerenter")).eventPhase=h.AT_TARGET;h.target&&h.target!==o&&h.target!==(Rd.isNode(d.rootTarget)&&d.rootTarget.parentNode);)h.currentTarget=h.target,d.notifyTarget(h),r&&d.notifyTarget(h,"mouseenter"),Rd.isNode(h.target)&&(h.target=h.target.parentNode);d.freeEvent(h)}d.freeEvent(u);case 38:d.dispatchEvent(n,"pointermove"),"touch"===n.pointerType&&d.dispatchEvent(n,"touchmove"),r&&(d.dispatchEvent(n,"mousemove"),d.cursor=d.getCursor(n.target)),i.overTargets=n.composedPath(),d.freeEvent(n);case 43:case"end":return t.stop()}},t)}));return function(t){return e.apply(this,arguments)}}(),d.onPointerOut=function(){var e=qs(k().mark(function t(e){var n,r,i,o,a;return k().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(e instanceof kp){t.next=2;break}return t.abrupt("return");case 2:if((n=d.trackingData(e.pointerId)).overTargets)return r="mouse"===e.pointerType||"pen"===e.pointerType,i=d.findMountedTarget(n.overTargets),t.next=8,d.createPointerEvent(e,"pointerout",i||void 0);t.next=19;break;case 8:return o=t.sent,d.dispatchEvent(o),r&&d.dispatchEvent(o,"mouseout"),t.next=13,d.createPointerEvent(e,"pointerleave",i||void 0);case 13:for((a=t.sent).eventPhase=a.AT_TARGET;a.target&&a.target!==(Rd.isNode(d.rootTarget)&&d.rootTarget.parentNode);)a.currentTarget=a.target,d.notifyTarget(a),r&&d.notifyTarget(a,"mouseleave"),Rd.isNode(a.target)&&(a.target=a.target.parentNode);n.overTargets=null,d.freeEvent(o),d.freeEvent(a);case 19:d.cursor=null;case 20:case"end":return t.stop()}},t)}));return function(t){return e.apply(this,arguments)}}(),d.onPointerOver=function(){var e=qs(k().mark(function t(e){var n,r,i,o;return k().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(e instanceof kp){t.next=2;break}return t.abrupt("return");case 2:return n=d.trackingData(e.pointerId),t.next=5,d.createPointerEvent(e);case 5:for(r=t.sent,i="mouse"===r.pointerType||"pen"===r.pointerType,d.dispatchEvent(r,"pointerover"),i&&d.dispatchEvent(r,"mouseover"),"mouse"===r.pointerType&&(d.cursor=d.getCursor(r.target)),(o=d.clonePointerEvent(r,"pointerenter")).eventPhase=o.AT_TARGET;o.target&&o.target!==(Rd.isNode(d.rootTarget)&&d.rootTarget.parentNode);)o.currentTarget=o.target,d.notifyTarget(o),i&&d.notifyTarget(o,"mouseenter"),Rd.isNode(o.target)&&(o.target=o.target.parentNode);n.overTargets=r.composedPath(),d.freeEvent(r),d.freeEvent(o);case 16:case"end":return t.stop()}},t)}));return function(t){return e.apply(this,arguments)}}(),d.onPointerUpOutside=function(){var e=qs(k().mark(function t(e){var n,r,i,o;return k().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(e instanceof kp){t.next=2;break}return t.abrupt("return");case 2:return n=d.trackingData(e.pointerId),r=d.findMountedTarget(n.pressTargetsByButton[e.button]),t.next=6,d.createPointerEvent(e);case 6:if(i=t.sent,r){for(o=r;o;)i.currentTarget=o,d.notifyTarget(i,"pointerupoutside"),"touch"===i.pointerType||"mouse"!==i.pointerType&&"pen"!==i.pointerType||d.notifyTarget(i,2===i.button?"rightupoutside":"mouseupoutside"),Rd.isNode(o)&&(o=o.parentNode);delete n.pressTargetsByButton[e.button]}d.freeEvent(i);case 9:case"end":return t.stop()}},t)}));return function(t){return e.apply(this,arguments)}}(),d.onWheel=function(){var e=qs(k().mark(function t(e){var n;return k().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(e instanceof Tp){t.next=2;break}return t.abrupt("return");case 2:return t.next=4,d.createWheelEvent(e);case 4:n=t.sent,d.dispatchEvent(n),d.freeEvent(n);case 7:case"end":return t.stop()}},t)}));return function(t){return e.apply(this,arguments)}}(),d}b(t,r);var e=t.prototype;return e.init=function(){this.rootTarget=this.renderingContext.root.parentNode,this.addEventMapping("pointerdown",this.onPointerDown),this.addEventMapping("pointerup",this.onPointerUp),this.addEventMapping("pointermove",this.onPointerMove),this.addEventMapping("pointerout",this.onPointerOut),this.addEventMapping("pointerleave",this.onPointerOut),this.addEventMapping("pointerover",this.onPointerOver),this.addEventMapping("pointerupoutside",this.onPointerUpOutside),this.addEventMapping("wheel",this.onWheel)},e.client2Viewport=function(t){var e=this.contextService.getBoundingClientRect();return new Gc(t.x-((null==e?void 0:e.left)||0),t.y-((null==e?void 0:e.top)||0))},e.viewport2Client=function(t){var e=this.contextService.getBoundingClientRect();return new Gc(t.x+((null==e?void 0:e.left)||0),t.y+((null==e?void 0:e.top)||0))},e.viewport2Canvas=function(t){var e=t.x,t=t.y,n=this.rootTarget.defaultView.getCamera(),r=this.canvasConfig,i=r.width,r=r.height,o=n.getPerspectiveInverse(),n=n.getWorldTransform(),n=co(this.tmpMatrix,n,o),o=Co(this.tmpVec3,e/i*2-1,2*(1-t/r)-1,0);return Fo(o,o,n),new Gc(o[0],o[1])},e.canvas2Viewport=function(t){var e=this.rootTarget.defaultView.getCamera(),n=e.getPerspective(),e=e.getViewTransform(),n=co(this.tmpMatrix,n,e),e=Co(this.tmpVec3,t.x,t.y,0),t=(Fo(this.tmpVec3,this.tmpVec3,n),this.canvasConfig),n=t.width,t=t.height;return new Gc((e[0]+1)/2*n,(1-(e[1]+1)/2)*t)},e.setPickHandler=function(t){this.pickHandler=t},e.addEventMapping=function(t,e){this.mappingTable[t]||(this.mappingTable[t]=[]),this.mappingTable[t].push({fn:e,priority:0}),this.mappingTable[t].sort(function(t,e){return t.priority-e.priority})},e.mapEvent=function(t){if(this.rootTarget){var e=this.mappingTable[t.type];if(e)for(var n=0,r=e.length;n<r;n++)e[n].fn(t);else console.warn("[EventService]: Event mapping not defined for "+t.type)}},e.dispatchEvent=function(t,e){t.propagationStopped=!1,t.propagationImmediatelyStopped=!1,this.propagate(t,e),this.emit(e||t.type,t)},e.propagate=function(t,e){if(t.target){var n=t.composedPath();t.eventPhase=t.CAPTURING_PHASE;for(var r=n.length-1;1<=r;r--)if(t.currentTarget=n[r],this.notifyTarget(t,e),t.propagationStopped||t.propagationImmediatelyStopped)return;if(t.eventPhase=t.AT_TARGET,t.currentTarget=t.target,this.notifyTarget(t,e),!t.propagationStopped&&!t.propagationImmediatelyStopped){var i=n.indexOf(t.currentTarget);t.eventPhase=t.BUBBLING_PHASE;for(var o=i+1;o<n.length;o++)if(t.currentTarget=n[o],this.notifyTarget(t,e),t.propagationStopped||t.propagationImmediatelyStopped)return}}},e.propagationPath=function(t){var e=[t],n=this.rootTarget.defaultView||null;if(n&&n===t)e.unshift(n.document);else{for(var r=0;r<2048&&t!==this.rootTarget;r++)Rd.isNode(t)&&t.parentNode&&(e.push(t.parentNode),t=t.parentNode);n&&e.push(n)}return e},e.hitTest=function(){var e=qs(k().mark(function t(e){var n,r,i,o;return k().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(n=e.viewportX,r=e.viewportY,o=this.canvasConfig,i=o.width,o=o.height,n<0||r<0||i<n||o<r)return t.abrupt("return",null);t.next=4;break;case 4:return t.next=6,this.pickHandler(e);case 6:if(t.t1=t.sent,t.t1){t.next=9;break}t.t1=this.rootTarget;case 9:if(t.t0=t.t1,t.t0){t.next=12;break}t.t0=null;case 12:return t.abrupt("return",t.t0);case 13:case"end":return t.stop()}},t,this)}));return function(t){return e.apply(this,arguments)}}(),e.isNativeEventFromCanvas=function(t){var e=this.contextService.getDomElement(),n=null==(n=t.nativeEvent)?void 0:n.target;if(n){if(n===e)return!0;if(e&&e.contains)return e.contains(n)}return!!t.nativeEvent.composedPath&&-1<t.nativeEvent.composedPath().indexOf(e)},e.getExistedHTML=function(t){if(t.nativeEvent.composedPath)for(var e=el(ty.getHTMLs());!(n=e()).done;){var n=n.value;if(-1<t.nativeEvent.composedPath().indexOf(n))return n}return null},e.pickTarget=function(){var e=qs(k().mark(function t(e){return k().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.hitTest({clientX:e.clientX,clientY:e.clientY,viewportX:e.viewportX,viewportY:e.viewportY,x:e.canvasX,y:e.canvasY}));case 1:case"end":return t.stop()}},t,this)}));return function(t){return e.apply(this,arguments)}}(),e.createPointerEvent=function(){var r=qs(k().mark(function t(e,n,r){var i,o;return k().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:i=this.allocateEvent(kp),this.copyPointerData(e,i),this.copyMouseData(e,i),this.copyData(e,i),i.nativeEvent=e.nativeEvent,i.originalEvent=e,o=this.getExistedHTML(i),null==r?t.next=11:(t.t0=r,t.next=20);break;case 11:if(t.t1=o,t.t1)t.next=19;else{if(t.t2=this.isNativeEventFromCanvas(i),t.t2)return t.next=17,this.pickTarget(i);t.next=18}break;case 17:t.t2=t.sent;case 18:t.t1=t.t2;case 19:t.t0=t.t1;case 20:return i.target=t.t0,"string"==typeof n&&(i.type=n),t.abrupt("return",i);case 23:case"end":return t.stop()}},t,this)}));return function(t,e,n){return r.apply(this,arguments)}}(),e.createWheelEvent=function(){var e=qs(k().mark(function t(e){var n,r;return k().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(n=this.allocateEvent(Tp),this.copyWheelData(e,n),this.copyMouseData(e,n),this.copyData(e,n),n.nativeEvent=e.nativeEvent,n.originalEvent=e,r=this.getExistedHTML(n),t.t0=r,t.t0)t.next=15;else{if(t.t1=this.isNativeEventFromCanvas(n),t.t1)return t.next=13,this.pickTarget(n);t.next=14}break;case 13:t.t1=t.sent;case 14:t.t0=t.t1;case 15:return n.target=t.t0,t.abrupt("return",n);case 17:case"end":return t.stop()}},t,this)}));return function(t){return e.apply(this,arguments)}}(),e.trackingData=function(t){return this.mappingState.trackingData[t]||(this.mappingState.trackingData[t]={pressTargetsByButton:{},clicksByButton:{},overTarget:null}),this.mappingState.trackingData[t]},e.cloneWheelEvent=function(t){var e=this.allocateEvent(Tp);return e.nativeEvent=t.nativeEvent,e.originalEvent=t.originalEvent,this.copyWheelData(t,e),this.copyMouseData(t,e),this.copyData(t,e),e.target=t.target,e.path=t.composedPath().slice(),e.type=e.type,e},e.clonePointerEvent=function(t,e){var n=this.allocateEvent(kp);return n.nativeEvent=t.nativeEvent,n.originalEvent=t.originalEvent,this.copyPointerData(t,n),this.copyMouseData(t,n),this.copyData(t,n),n.target=t.target,n.path=t.composedPath().slice(),n.type=null!=e?e:n.type,n},e.copyPointerData=function(t,e){t instanceof kp&&e instanceof kp&&(e.pointerId=t.pointerId,e.width=t.width,e.height=t.height,e.isPrimary=t.isPrimary,e.pointerType=t.pointerType,e.pressure=t.pressure,e.tangentialPressure=t.tangentialPressure,e.tiltX=t.tiltX,e.tiltY=t.tiltY,e.twist=t.twist)},e.copyMouseData=function(t,e){t instanceof _p&&e instanceof _p&&(e.altKey=t.altKey,e.button=t.button,e.buttons=t.buttons,e.ctrlKey=t.ctrlKey,e.metaKey=t.metaKey,e.shiftKey=t.shiftKey,e.client.copyFrom(t.client),e.movement.copyFrom(t.movement),e.canvas.copyFrom(t.canvas),e.screen.copyFrom(t.screen),e.global.copyFrom(t.global),e.offset.copyFrom(t.offset))},e.copyWheelData=function(t,e){e.deltaMode=t.deltaMode,e.deltaX=t.deltaX,e.deltaY=t.deltaY,e.deltaZ=t.deltaZ},e.copyData=function(t,e){e.isTrusted=t.isTrusted,e.timeStamp=performance.now(),e.type=t.type,e.detail=t.detail,e.view=t.view,e.page.copyFrom(t.page),e.viewport.copyFrom(t.viewport)},e.allocateEvent=function(t){this.eventPool.has(t)||this.eventPool.set(t,[]);t=this.eventPool.get(t).pop()||new t(this);return t.eventPhase=t.NONE,t.currentTarget=null,t.path=[],t.target=null,t},e.freeEvent=function(t){if(t.manager!==this)throw new Error("It is illegal to free an event not managed by this EventBoundary!");var e=t.constructor;this.eventPool.has(e)||this.eventPool.set(e,[]),this.eventPool.get(e).push(t)},e.notifyTarget=function(t,e){e=null!=(n=e)?n:t.type;var n=t.eventPhase===t.CAPTURING_PHASE||t.eventPhase===t.AT_TARGET?e+"capture":e;this.notifyListeners(t,n),t.eventPhase===t.AT_TARGET&&this.notifyListeners(t,e)},e.notifyListeners=function(t,e){var n=t.currentTarget.emitter,r=n._events[e];if(r)if("fn"in r)r.once&&n.removeListener(e,r.fn,void 0,!0),r.fn.call(t.currentTarget||r.context,t);else for(var i=0;i<r.length&&!t.propagationImmediatelyStopped;i++)r[i].once&&n.removeListener(e,r[i].fn,void 0,!0),r[i].fn.call(t.currentTarget||r[i].context,t)},e.findMountedTarget=function(t){if(!t)return null;for(var e=t[t.length-1],n=t.length-2;0<=n;n--){var r=t[n];if(!(r===this.rootTarget||Rd.isNode(r)&&r.parentNode===e))break;e=t[n]}return e},e.getCursor=function(t){for(var e=t;e;){var n=Ud.isElement(e)&&e.getAttribute("cursor");if(n)return n;e=Rd.isNode(e)&&e.parentNode}},t}(Os.exports.EventEmitter)),Qp=(t([y(Wp),e("design:type",Object)],Jp.prototype,"renderingContext",void 0),t([y(Hp),e("design:type",Object)],Jp.prototype,"contextService",void 0),t([y(hc),e("design:type",Object)],Jp.prototype,"canvasConfig",void 0),t([Ct.postConstruct(),e("design:type",Function),e("design:paramtypes",[]),e("design:returntype",void 0)],Jp.prototype,"init",null),Jp=t([f()],Jp),function(){function t(){this.canvas=void 0,this.context=void 0}var e=t.prototype;return e.getOrCreateCanvas=function(t){if(!this.canvas){if(t)this.canvas=t,this.context=this.canvas.getContext("2d");else try{this.canvas=new window.OffscreenCanvas(0,0),this.context=this.canvas.getContext("2d"),this.context&&this.context.measureText||(this.canvas=document.createElement("canvas"),this.context=this.canvas.getContext("2d"))}catch(t){this.canvas=document.createElement("canvas"),this.context=this.canvas.getContext("2d")}this.canvas.width=10,this.canvas.height=10}return this.canvas},e.getOrCreateContext=function(t){return this.context||this.getOrCreateCanvas(t),this.context},t}()),Qp=t([f()],Qp),tf={MetricsString:"|ÉqÅ",BaselineSymbol:"M",BaselineMultiplier:1.4,HeightMultiplier:2,Newlines:[10,13],BreakingSpaces:[9,32,8192,8193,8194,8195,8196,8197,8198,8200,8201,8202,8287,12288]},ef=/[a-zA-Z0-9\u00C0-\u00D6\u00D8-\u00f6\u00f8-\u00ff!"#$%&'()*+,-./:;]/,nf=new RegExp(/[!%),.:;?\]}¢°·'""†‡›℃∶、。〃〆〕〗〞﹚﹜!"%'),.:;?!]}~]/.source+"|"+/[!),.:;?\]}¢·–—'"•"、。〆〞〕〉》」︰︱︲︳﹐﹑﹒﹓﹔﹕﹖﹘﹚﹜!),.:;?︶︸︺︼︾﹀﹂﹗]|}、]/.source+"|"+/[)\]}〕〉》」』】〙〗〟'"⦆»ヽヾーァィゥェォッャュョヮヵヶぁぃぅぇぉっゃゅょゎゕゖㇰㇱㇲㇳㇴㇵㇶㇷㇸㇹㇺㇻㇼㇽㇾㇿ々〻‐゠–〜?!‼⁇⁈⁉・、:;,。.]/.source+"|"+/[!%),.:;?\]}¢°'"†‡℃〆〈《「『〕!%),.:;?]}]/.source),rf=new RegExp(/[$(£¥·'"〈《「『【〔〖〝﹙﹛$(.[{£¥]/.source+"|"+/[([{£¥'"‵〈《「『〔〝︴﹙﹛({︵︷︹︻︽︿﹁﹃﹏]/.source+"|"+/[([{〔〈《「『【〘〖〝'"⦅«—...‥〳〴〵]/.source+"|"+/[$([{£¥'"々〇〉》」〔$([{⦆¥₩#]/.source),of=function(){function t(){var n=this;this.cache={},this.offscreenCanvas=void 0,this.shouldBreakByKinsokuShorui=function(t,e){return!n.isBreakingSpace(e)&&!(!t||!rf.exec(e)&&!nf.exec(t))},this.trimByKinsokuShorui=function(t){var e,n=[].concat(t),r=n[n.length-2];return r?(e=r[r.length-1],n[n.length-2]=r.slice(0,-1),n[n.length-1]=e+n[n.length-1],n):t}}var e=t.prototype;return e.measureFont=function(t,e){if(this.cache[t])return this.cache[t];for(var n={ascent:0,descent:0,fontSize:0},r=this.offscreenCanvas.getOrCreateCanvas(e),e=this.offscreenCanvas.getOrCreateContext(e),i=(e.font=t,tf.MetricsString+tf.BaselineSymbol),o=Math.ceil(e.measureText(i).width),a=Math.ceil(e.measureText(tf.BaselineSymbol).width),s=tf.HeightMultiplier*a,a=a*tf.BaselineMultiplier|0,l=(r.width=o,r.height=s,e.fillStyle="#f00",e.fillRect(0,0,o,s),e.font=t,e.textBaseline="alphabetic",e.fillStyle="#000",e.fillText(i,0,a),e.getImageData(0,0,o||1,s||1).data),r=l.length,u=4*o,c=0,h=0,d=!1,c=0;c<a;++c){for(var p=0;p<u;p+=4)if(255!==l[h+p]){d=!0;break}if(d)break;h+=u}for(n.ascent=a-c,h=r-u,d=!1,c=s;a<c;--c){for(var f=0;f<u;f+=4)if(255!==l[h+f]){d=!0;break}if(d)break;h-=u}return n.descent=c-a,n.fontSize=n.ascent+n.descent,this.cache[t]=n},e.measureText=function(t,e,n){var r=e.fontSize,i=e.wordWrap,o=e.lineHeight,a=e.lineWidth,s=e.textBaseline,l=e.textAlign,u=e.letterSpacing,c=e.leading,c=void 0===c?0:c,h=function(t){for(var e=t.fontSize,n=t.fontFamily,r=t.fontStyle,i=t.fontVariant,t=t.fontWeight,e=hl(e)&&e+"px"||"16px",o=ic(n)?n.split(","):[n],a=o.length-1;0<=a;a--){var s=o[a].trim();!/([\"\'])[^\'\"]+\1/.test(s)&&Ic.indexOf(s)<0&&(s='"'+s+'"'),o[a]=s}return r+" "+i+" "+t+" "+e+" "+o.join(",")}(e),d=this.measureFont(h,n),p=(0===d.fontSize&&(d.fontSize=r,d.ascent=r),this.offscreenCanvas.getOrCreateContext(n));p.font=h;for(var f=(i?this.wordWrap(t,e,n):t).split(/(?:\r\n|\r|\n)/),y=new Array(f.length),g=0,m=0;m<f.length;m++){var v=p.measureText(f[m]).width+(f[m].length-1)*u;y[m]=v,g=Math.max(g,v)}var r=g+a,b=o||d.fontSize+a,i=Math.max(b,d.fontSize+a)+(f.length-1)*(b+c),x=0;return"middle"===s?x=-i/2:"bottom"===s||"alphabetic"===s||"ideographic"===s?x=-i:"top"!==s&&"hanging"!==s||(x=0),{font:h,width:r,height:i,lines:f,lineWidths:y,lineHeight:b+=c,maxLineWidth:g,fontProperties:d,lineMetrics:y.map(function(t,e){var n=0;return"center"===l?n-=t/2:"right"!==l&&"end"!==l||(n-=t),new Hc(n-a/2,x+e*b,t+a,b)})}},e.wordWrap=function(i,t,e){function o(t){return a.getFromCache(t,r,d,s)}var a=this,n=t.wordWrapWidth,n=void 0===n?0:n,r=t.letterSpacing,s=this.offscreenCanvas.getOrCreateContext(e),l=n+r,u=[],c=0,h=0,d={};return Array.from(i).forEach(function(t,e){var n=i[e-1],e=i[e+1],r=o(t);if(a.isNewline(t))h=0,u[++c]="";else{if(0<h&&l<h+r){if(h=0,u[++c]="",a.isBreakingSpace(t))return;a.canBreakInLastChar(t)||(u=a.trimToBreakable(u),h=a.sumTextWidthByCache(u[c]||"",d)),a.shouldBreakByKinsokuShorui(t,e)&&(u=a.trimByKinsokuShorui(u),h+=o(n||""))}h+=r,u[c]=(u[c]||"")+t}}),u.join("\n")},e.isBreakingSpace=function(t){return"string"==typeof t&&0<=tf.BreakingSpaces.indexOf(t.charCodeAt(0))},e.isNewline=function(t){return"string"==typeof t&&0<=tf.Newlines.indexOf(t.charCodeAt(0))},e.trimToBreakable=function(t){var e,t=[].concat(t),n=t[t.length-2],r=this.findBreakableIndex(n);return-1!==r&&n&&(e=n.slice(r,r+1),e=r+(this.isBreakingSpace(e)?0:1),t[t.length-1]+=n.slice(r+1,n.length),t[t.length-2]=n.slice(0,e)),t},e.canBreakInLastChar=function(t){return!t||!ef.test(t)},e.sumTextWidthByCache=function(t,n){return t.split("").reduce(function(t,e){if(n[e])return t+n[e];throw Error("cannot count the word without cache")},0)},e.findBreakableIndex=function(t){for(var e=t.length-1;0<=e;e--)if(!ef.test(t[e]))return e;return-1},e.getFromCache=function(t,e,n,r){var i=n[t];return"number"!=typeof i&&(e=t.length*e,i=r.measureText(t).width+e,n[t]=i),i},t}(),af=(t([y(Qp),e("design:type",Qp)],of.prototype,"offscreenCanvas",void 0),of=t([f()],of),function(){function t(){}return t.prototype.update=function(t,e){t=t.r;return{width:2*t,height:2*t}},t}()),af=t([f({token:{token:Bc,named:M.CIRCLE}})],af),sf=function(){function t(){}return t.prototype.update=function(t,e){return{width:2*t.rx,height:2*t.ry}},t}(),sf=t([f({token:{token:Bc,named:M.ELLIPSE}})],sf),lf=function(){function t(){}return t.prototype.update=function(t,e){var n=t.img,r=t.width,i=t.height,r=void 0===r?0:r,i=void 0===i?0:i;return n&&!ic(n)&&(r||(r=n.width,t.width=r),i||(i=n.height,t.height=i)),{width:r,height:i}},t}(),lf=t([f({token:[{token:Bc,named:M.RECT},{token:Bc,named:M.IMAGE},{token:Bc,named:M.GROUP}]})],lf),uf=function(){function t(){this.textService=void 0}var e=t.prototype;return e.isReadyToMeasure=function(t,e){var n=t.text,r=t.textAlign,i=t.textBaseline,o=t.fontSize,a=t.fontStyle,s=t.fontWeight,l=t.fontVariant,t=t.lineWidth;return n&&o&&a&&s&&l&&r&&i&&!S(t)},e.update=function(t,e){var n,r,i=t.text,o=t.textAlign,a=t.lineWidth,s=t.textBaseline,l=t.dx,u=t.dy,c=((null==e||null==(c=e.ownerDocument)||null==(c=c.defaultView)?void 0:c.getConfig())||{}).offscreenCanvas;return this.isReadyToMeasure(t,e)?(e=this.textService.measureText(i,t,c),i=(t.metrics=e).width,c=e.height,n=e.lineHeight,e=e.fontProperties,i=[i/2,c/2,0],c=[0,1],r=0,"center"===o?(r=a/2,c=[.5,1]):"right"!==o&&"end"!==o||(r=a,c=[1,1]),o=0,"middle"===s?o=i[1]:"top"===s||"hanging"===s?o=2*i[1]:"alphabetic"===s?o=n-e.ascent:"bottom"!==s&&"ideographic"!==s||(o=0),l&&(r+=l),u&&(o+=u),t.anchor=[c[0],c[1],0],{width:2*i[0],height:2*i[1],offsetX:r,offsetY:o}):(t.metrics={font:"",width:0,height:0,lines:[],lineWidths:[],lineHeight:0,maxLineWidth:0,fontProperties:{ascent:0,descent:0,fontSize:0},lineMetrics:[]},{width:0,height:0,x:0,y:0,offsetX:0,offsetY:0})},t}(),cf=(t([y(of),e("design:type",of)],uf.prototype,"textService",void 0),uf=t([f({token:{token:Bc,named:M.TEXT}})],uf),function(){function t(){}return t.prototype.update=function(t){var e=t.x1,n=t.y1,r=t.x2,t=t.y2,i=Math.min(e,r),e=Math.max(e,r),r=Math.min(n,t);return{width:e-i,height:Math.max(n,t)-r}},t}()),cf=t([f({token:{token:Bc,named:M.LINE}})],cf),hf=function(){function t(){}return t.prototype.update=function(t){var t=t.points.points,e=Math.min.apply(Math,t.map(function(t){return t[0]})),n=Math.max.apply(Math,t.map(function(t){return t[0]})),r=Math.min.apply(Math,t.map(function(t){return t[1]}));return{width:n-e,height:Math.max.apply(Math,t.map(function(t){return t[1]}))-r}},t}(),hf=t([f({token:[{token:Bc,named:M.POLYLINE},{token:Bc,named:M.POLYGON}]})],hf),df=function(){function t(){}return t.prototype.update=function(t){t=t.path.rect;return{width:t.width,height:t.height}},t}(),df=t([f({token:{token:Bc,named:M.PATH}})],df),pf=function(){function t(){this.sceneGraphService=void 0}return t.prototype.calculator=function(t,e,n,r){var i;return n instanceof sl&&(n=null),e&&e!==n&&e.parsedStyle.clipPathTargets&&(i=e.parsedStyle.clipPathTargets.indexOf(r),e.parsedStyle.clipPathTargets.splice(i,1)),n&&(n.parsedStyle.clipPathTargets||(n.parsedStyle.clipPathTargets=[]),n.parsedStyle.clipPathTargets.push(r)),this.sceneGraphService.dirtifyToRoot(r),n},t}(),ff=(t([y(It),e("design:type",Object)],pf.prototype,"sceneGraphService",void 0),pf=t([f({token:{token:Yc,named:w.CLIP_PATH}})],pf),function(){function t(){this.parser=yh,this.mixer=gh}return t.prototype.calculator=function(t,e,n,r){return n instanceof sl?"none"===n.value?eh:nh:n},t}()),ff=t([f({token:[{token:Yc,named:w.PAINT},{token:Yc,named:w.COLOR}]})],ff),yf=function(){function t(){this.parser=Rh}return t.prototype.calculator=function(t,e,n){return n instanceof sl?[]:n},t}();function gf(t){t=t.parsedStyle.fontSize;return S(t)?null:t}function mf(){this.container=void 0}var vf,bf,xf,wf,Ef,yf=t([f({token:{token:Yc,named:w.FILTER}})],yf),_f=function(){function t(){this.parser=bh,this.mixer=Mh}return t.prototype.calculator=function(t,e,n,r,i){if(!El.isRelativeUnit(n.unit))return n.value;if(n.unit===v.kPercentage)return 0;if(n.unit===v.kEms){if(r.parentNode){var o=gf(r.parentNode);if(o)return o*=n.value}return i.addUnresolveProperty(r,t),0}if(n.unit===v.kRems){if(null!=r&&(null!=(o=r.ownerDocument)&&o.documentElement)){o=gf(r.ownerDocument.documentElement);if(o)return o*=n.value}return i.addUnresolveProperty(r,t),0}},t}(),_f=t([f({token:[{token:Yc,named:w.LENGTH_PERCENTAGE},{token:Yc,named:w.LENGTH}]})],_f),kf=function(){function t(){this.mixer=Oh}var e=t.prototype;return e.parser=function(t){t=Eh(hl(t)?[t]:t),t=1===t.length?[t[0],t[0]]:[t[0],t[1]];return t},e.calculator=function(t,e,n){return n.map(function(t){return t.value})},t}(),kf=t([f({token:{token:Yc,named:w.LENGTH_PERCENTAGE_12}})],kf),Tf=function(){function t(){this.mixer=Oh}var e=t.prototype;return e.parser=function(t){t=Eh(hl(t)?[t]:t),t=1===t.length?[t[0],t[0],t[0],t[0]]:2===t.length?[t[0],t[1],t[0],t[1]]:3===t.length?[t[0],t[1],t[2],t[1]]:[t[0],t[1],t[2],t[3]];return t},e.calculator=function(t,e,n){return n.map(function(t){return t.value})},t}(),Tf=t([f({token:{token:Yc,named:w.LENGTH_PERCENTAGE_14}})],Tf),Mf=function(t){function e(){return t.apply(this,arguments)||this}return b(e,t),e.prototype.postProcessor=function(t){var e,n,r;switch(t.nodeName){case M.CIRCLE:case M.ELLIPSE:var i=t.parsedStyle,o=i.cx,i=i.cy;S(o)||(l=o),S(i)||(u=i);break;case M.LINE:var o=t.parsedStyle,i=o.x1,a=o.x2,s=o.y1,o=o.y2,l=Math.min(i,a),u=Math.min(s,o),c=0;break;case M.RECT:case M.IMAGE:case M.GROUP:case M.HTML:case M.TEXT:case M.MESH:S(t.parsedStyle.x)||(l=t.parsedStyle.x),S(t.parsedStyle.y)||(u=t.parsedStyle.y)}t.nodeName!==M.PATH&&t.nodeName!==M.POLYLINE&&t.nodeName!==M.POLYGON&&(t.parsedStyle.defX=l||0,t.parsedStyle.defY=u||0),S(l)&&S(u)&&S(c)||(e=(r=t.getLocalPosition())[0],n=r[1],r=r[2],t.setLocalPosition(S(l)?e:l,S(u)?n:u,S(c)?r:c))},e}(_f),Mf=t([f({token:{token:Yc,named:w.COORDINATE}})],Mf),Sf=function(){function t(){}return t.prototype.calculator=function(t,e,n,r){n=null==(n=n=n instanceof sl?null:n)?void 0:n.cloneNode(!0);return n&&(n.style.isMarker=!0),n},t}(),Sf=t([f({token:{token:Yc,named:w.MARKER}})],Sf),Of=function(){function t(){this.mixer=Mh,this.parser=Th}return t.prototype.calculator=function(t,e,n){return n.value},t}(),Of=t([f({token:{token:Yc,named:w.NUMBER}})],Of),Pf=function(){function t(){this.parser=Th,this.mixer=Sh(0,1)}var e=t.prototype;return e.calculator=function(t,e,n){return n.value},e.postProcessor=function(t){var e;!t.attributes.offsetPath||(e=t.attributes.offsetPath.nodeName)!==M.LINE&&e!==M.PATH&&e!==M.POLYLINE||(e=t.attributes.offsetPath.getPoint(t.parsedStyle.offsetDistance))&&t.setLocalPosition(e.x,e.y)},t}(),Pf=t([f({token:{token:Yc,named:w.OFFSET_DISTANCE}})],Pf),Af=function(){function t(){}return t.prototype.calculator=function(t,e,n,r){var i;return e&&e!==n&&e.style.offsetPathTargets&&(i=e.style.offsetPathTargets.indexOf(r),e.style.offsetPathTargets.splice(i,1)),n&&(n.style.offsetPathTargets||(n.style.offsetPathTargets=[]),n.style.offsetPathTargets.push(r)),n},t}(),Af=t([f({token:{token:Yc,named:w.OFFSET_PATH}})],Af),Nf=function(){function t(){this.parser=Th,this.mixer=Sh(0,1)}return t.prototype.calculator=function(t,e,n){return n.value},t}(),Nf=t([f({token:{token:Yc,named:w.OPACITY_VALUE}})],Nf),Cf=function(){function t(){this.parser=Nh,this.mixer=Ch}var e=t.prototype;return e.calculator=function(t,e,n){return n instanceof sl&&"unset"===n.value?{absolutePath:[],hasArc:!1,segments:[],polygons:[],polylines:[],curve:[],totalLength:0,zCommandIndexes:[],rect:new Hc(0,0,0,0)}:n},e.postProcessor=function(t){var e,n;t.nodeName===M.PATH&&(e=(n=t.parsedStyle).defX,n=n.defY,t.setLocalPosition(void 0===e?0:e,void 0===n?0:n))},t}(),Cf=t([f({token:{token:Yc,named:w.PATH}})],Cf),Lf=function(){function t(){this.parser=Lh}return t.prototype.postProcessor=function(t){var e,n;t.nodeName!==M.POLYGON&&t.nodeName!==M.POLYLINE||(e=(n=t.parsedStyle).defX,n=n.defY,t.setLocalPosition(e,n))},t}(),Lf=t([f({token:{token:Yc,named:w.LIST_OF_POINTS}})],Lf),If=function(i){function t(){for(var t,e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return(t=i.call.apply(i,[this].concat(n))||this).mixer=Sh(0,1/0),t}return b(t,i),t}(_f),If=t([f({token:{token:Yc,named:w.SHADOW_BLUR}})],If),jf=function(){function t(){}var e=t.prototype;return e.calculator=function(t,e,n,r){return n instanceof sl?"unset"===n.value?"":n.value:n},e.postProcessor=function(t){t.nodeValue=""+t.parsedStyle.text||""},t}(),jf=t([f({token:{token:Yc,named:w.TEXT}})],jf),Rf=function(){function t(){}return t.prototype.calculator=function(t,e,n,r){var i,o=r.getAttribute("text");return o&&(i=o,"capitalize"===n.value?i=o.charAt(0).toUpperCase()+o.slice(1):"lowercase"===n.value?i=o.toLowerCase():"uppercase"===n.value&&(i=o.toUpperCase()),r.parsedStyle.text=i),n.value},t}(),Rf=t([f({token:{token:Yc,named:w.TEXT_TRANSFORM}})],Rf),Df=function(){function t(){this.tmpMat4=io(),this.parser=dd,this.mixer=_d}var e=t.prototype;return e.calculator=function(t,e,n,r){return n instanceof sl?[]:n},e.postProcessor=function(l){var u=this,t=l.parsedStyle,e=t.transform,c=t.defX,h=t.defY;e&&e.length&&(l.resetLocalTransform(),l.setLocalPosition(c,h),e.forEach(function(t){var e,n,r,i,o,a,s=t.t,t=t.d;"scale"===s?(a=(null==t?void 0:t.map(function(t){return t.value}))||[1,1],l.scaleLocal(a[0],a[1],1)):"scalex"===s?(a=(null==t?void 0:t.map(function(t){return t.value}))||[1],l.scaleLocal(a[0],1,1)):"scaley"===s?(a=(null==t?void 0:t.map(function(t){return t.value}))||[1],l.scaleLocal(1,a[0],1)):"scalez"===s?(a=(null==t?void 0:t.map(function(t){return t.value}))||[1],l.scaleLocal(1,1,a[0])):"scale3d"===s?(a=(null==t?void 0:t.map(function(t){return t.value}))||[1,1,1],l.scaleLocal(a[0],a[1],a[2])):"translate"===s?(a=t||[Nl,Nl],l.translateLocal(a[0].value,a[1].value,0)):"translatex"===s?(a=t||[Nl],l.translateLocal(a[0].value,0,0)):"translatey"===s?(a=t||[Nl],l.translateLocal(0,a[0].value,0)):"translatez"===s?(a=t||[Nl],l.translateLocal(0,0,a[0].value)):"translate3d"===s?(a=t||[Nl,Nl,Nl],l.translateLocal(a[0].value,a[1].value,a[2].value)):"rotate"===s?(a=t||[Cl],l.rotateLocal(0,0,a[0].value)):"rotatex"===s?(a=t||[Cl],l.rotateLocal(a[0].value,0,0)):"rotatey"===s?(a=t||[Cl],l.rotateLocal(0,a[0].value,0)):"rotatez"===s?(a=t||[Cl],l.rotateLocal(0,0,a[0].value)):"rotate3d"!==s&&("skew"===s?(a=(null==t?void 0:t.map(function(t){return t.value}))||[0,0],l.setLocalSkew($l(a[0]),$l(a[1]))):"skewx"===s?(a=(null==t?void 0:t.map(function(t){return t.value}))||[0],l.setLocalSkew($l(a[0]),l.getLocalSkew()[1])):"skewy"===s?(a=(null==t?void 0:t.map(function(t){return t.value}))||[0],l.setLocalSkew(l.getLocalSkew()[0],$l(a[0]))):"matrix"===s?(e=(a=t.map(function(t){return t.value}))[0],n=a[1],r=a[2],i=a[3],o=a[4],a=a[5],l.setLocalTransform(so(u.tmpMat4,e,n,0,0,r,i,0,0,0,0,1,0,o+c,a+h,0,1))):"matrix3d"===s&&(so.apply(Oo,[u.tmpMat4].concat(t.map(function(t){return t.value}))),u.tmpMat4[12]+=c,u.tmpMat4[13]+=h,l.setLocalTransform(u.tmpMat4)))}))},t}(),Df=t([f({token:{token:Yc,named:w.TRANSFORM}})],Df),Bf=function(){this.parser=kd},Bf=t([f({token:{token:Yc,named:w.TRANSFORM_ORIGIN}})],Bf),Ff=function(){function t(){this.parser=Th}var e=t.prototype;return e.calculator=function(t,e,n,r){return n.value},e.postProcessor=function(t){var e;t.parentNode&&(e=(t=t.parentNode).renderable,t=t.sortable,e&&(e.dirty=!0),t&&(t.dirty=!0))},t}(),Ff=t([f({token:{token:Yc,named:w.Z_INDEX}})],Ff),zf={},Vf=[],Gf=function(){function t(){}var e=t.prototype;return e.getByEntity=function(t){return zf[t]},e.getAll=function(){return Object.keys(zf).map(function(t){return zf[t]})},e.add=function(t,e){(zf[t]=e).nodeName===M.HTML&&Vf.push(e)},e.remove=function(t){var e=zf[t];e&&(delete zf[t],e.nodeName===M.HTML&&(t=Vf.indexOf(e),Vf.splice(t,1)))},e.getHTMLs=function(){return Vf},t}(),Gf=t([f()],Gf),c=Ci(function(t){Ct.decorate(yi(),Os.exports.EventEmitter),t(Gf),t(Rp),t({token:Lp,useFactory:function(t){return function(){return t.container.get(Ip)}}}),t(Gp),t(Qp),t(of),t(af),t(sf),t(lf),t(uf),t(cf),t(hf),t(df),t({token:Dc,useFactory:function(e){var n={};return function(t){return n[t]||e.container.isBoundNamed(Bc,t)&&(n[t]=e.container.getNamed(Bc,t)),n[t]}}}),t(Of),t(Ld),t(pf),t(ff),t(yf),t(_f),t(kf),t(Tf),t(Mf),t(Pf),t(Af),t(Nf),t(Cf),t(Lf),t(If),t(jf),t(Rf),t(Df),t(Bf),t(Ff),t(Sf),t({token:Wc,useFactory:function(e){var n={};return function(t){return n[t]||e.container.isBoundNamed(Yc,t)&&(n[t]=e.container.getNamed(Yc,t)),n[t]}}}),t(oh),t(rd),t(id),t(nd),t({token:Qh,useFactory:function(n){return function(t){var e=n.container.createChild();return e.register({token:td,useValue:t}),e.get(nd)}}}),t({token:Vh,useFactory:function(o){return function(t){var e=o.container.createChild(),n=(e.register(Wh),e.register(Jh),e.register({token:Kh,useFactory:function(n){return function(t){var e=n.container.createChild();return e.register({token:$h,useValue:t}),e.get(Jh)}}}),e.register(Zh),e.register({token:Uh,useFactory:function(r){return function(t,e){var n=r.container.createChild();return n.register({token:qh,useValue:t}),n.register({token:Xh,useValue:e}),n.get(Zh)}}}),e.register(sd),e.register({token:od,useFactory:function(n){return function(t){var e=n.container.createChild();return e.register({token:ad,useValue:t}),e.get(sd)}}}),e.get(Kh)),r=e.get(od),i=e.get(Uh);return e.register({token:Gh,useValue:Ks({},t,{layoutChildrenFactory:n,layoutFragmentFactory:r,fragmentResultFactory:i})}),e.get(Wh)}}})}),ie=function(){function t(t){this.plugins=[],this.config=void 0,this.config=Ks({enableDirtyCheck:!0,enableCulling:!1,enableAutoRendering:!0,enableDirtyRectangleRendering:!0,enableDirtyRectangleRenderingDebug:!1},t)}var e=t.prototype;return e.registerPlugin=function(t){this.plugins.push(t)},e.unregisterPlugin=function(e){var t=this.plugins.findIndex(function(t){return t===e});-1<t&&this.plugins.splice(t,1)},e.getPlugins=function(){return this.plugins},e.getPlugin=function(e){return this.plugins.find(function(t){return t.name===e})},e.getConfig=function(){return this.config},e.setConfig=function(t){Object.assign(this.config,t)},t}(),Hf=p.defineToken(""),Wf=((Nt=function(){function t(){this.strategyProvider=void 0,this.renderingContext=void 0}return t.prototype.apply=function(t){var n=this,r=this.strategyProvider.getContributions();t.hooks.cull.tap(vf.tag,function(e){var t;return e&&(t=e.cullable,0===r.length?t.visible=-1<n.renderingContext.unculledEntities.indexOf(e.entity):t.visible=r.every(function(t){return t.isVisible(e)}),!t.isCulled()&&e.isVisible()?e:(e.dispatchEvent(new jd(E.CULLED)),null))}),t.hooks.afterRender.tap(vf.tag,function(t){t.cullable.visibilityPlaneMask=-1})},t}()).tag="Culling",vf=Nt),Yf=(t([Ii(Hf),e("design:type",Object)],Wf.prototype,"strategyProvider",void 0),t([y(Wp),e("design:type",Object)],Wf.prototype,"renderingContext",void 0),Wf=vf=t([f({contrib:Kp})],Wf),(Lt=function(){function t(){}return t.prototype.apply=function(e){e.hooks.dirtycheck.tap(bf.tag,function(t){return t&&(t.renderable.dirty||e.disableDirtyRectangleRendering()?t:null)})},t}()).tag="DirtyCheck",bf=Lt),Yf=bf=t([f({contrib:Kp})],Yf),Uf=((Ht=function(){function t(){var o=this;this.canvasConfig=void 0,this.contextService=void 0,this.renderingService=void 0,this.renderingContext=void 0,this.eventService=void 0,this.autoPreventDefault=!1,this.rootPointerEvent=new kp(null),this.rootWheelEvent=new Tp(null),this.onPointerMove=function(t){var e,n=null==(e=o.renderingContext.root)||null==(e=e.ownerDocument)?void 0:e.defaultView;if(!n.supportsTouchEvents||"touch"!==t.pointerType){for(var r=el(o.normalizeToPointerEvent(t,n));!(i=r()).done;){var i=i.value,i=o.bootstrapEvent(o.rootPointerEvent,i,n);o.eventService.mapEvent(i)}o.setCursor(o.eventService.cursor)}}}var e=t.prototype;return e.apply=function(t){var o=this,a=this.renderingContext.root.ownerDocument.defaultView;this.eventService.setPickHandler(function(){var e=qs(k().mark(function t(e){var n;return k().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,o.renderingService.hooks.pick.promise({position:e,picked:[],topmost:!0});case 2:return n=t.sent,n=n.picked,t.abrupt("return",n[0]||null);case 5:case"end":return t.stop()}},t)}));return function(t){return e.apply(this,arguments)}}()),t.hooks.pointerWheel.tap(xf.tag,function(t){t=o.normalizeWheelEvent(t);o.eventService.mapEvent(t)}),t.hooks.pointerDown.tap(xf.tag,function(t){if(!a.supportsTouchEvents||"touch"!==t.pointerType){var e=o.normalizeToPointerEvent(t,a);!o.autoPreventDefault||!e[0].isNormalized||!t.cancelable&&"cancelable"in t||t.preventDefault();for(var n=el(e);!(r=n()).done;){var r=r.value,r=o.bootstrapEvent(o.rootPointerEvent,r,a);o.eventService.mapEvent(r)}o.setCursor(o.eventService.cursor)}}),t.hooks.pointerUp.tap(xf.tag,function(t){if(!a.supportsTouchEvents||"touch"!==t.pointerType){for(var e=o.contextService.getDomElement(),n=e&&t.target&&t.target!==e&&e.contains&&!e.contains(t.target)?"outside":"",r=el(o.normalizeToPointerEvent(t,a));!(i=r()).done;){var i=i.value,i=o.bootstrapEvent(o.rootPointerEvent,i,a);i.type+=n,o.eventService.mapEvent(i)}o.setCursor(o.eventService.cursor)}}),t.hooks.pointerMove.tap(xf.tag,this.onPointerMove),t.hooks.pointerOver.tap(xf.tag,this.onPointerMove),t.hooks.pointerOut.tap(xf.tag,this.onPointerMove)},e.bootstrapEvent=function(t,e,n){t.view=n,t.originalEvent=null,t.nativeEvent=e,t.pointerId=e.pointerId,t.width=e.width,t.height=e.height,t.isPrimary=e.isPrimary,t.pointerType=e.pointerType,t.pressure=e.pressure,t.tangentialPressure=e.tangentialPressure,t.tiltX=e.tiltX,t.tiltY=e.tiltY,t.twist=e.twist,this.transferMouseData(t,e);var n=this.eventService.client2Viewport(new Gc(e.clientX,e.clientY)),r=n.x,n=n.y,r=(t.viewport.x=r,t.viewport.y=n,this.eventService.viewport2Canvas(t.viewport)),n=r.x,r=r.y;return t.canvas.x=n,t.canvas.y=r,t.global.copyFrom(t.canvas),t.offset.copyFrom(t.canvas),t.isTrusted=e.isTrusted,"pointerleave"===t.type&&(t.type="pointerout"),t.type.startsWith("mouse")&&(t.type=t.type.replace("mouse","pointer")),t.type.startsWith("touch")&&(t.type=Eu[t.type]||t.type),t},e.normalizeWheelEvent=function(t){var e=this.rootWheelEvent,n=(this.transferMouseData(e,t),e.deltaMode=t.deltaMode,e.deltaX=t.deltaX,e.deltaY=t.deltaY,e.deltaZ=t.deltaZ,this.eventService.client2Viewport(new Gc(t.clientX,t.clientY))),r=n.x,n=n.y,r=(e.viewport.x=r,e.viewport.y=n,this.eventService.viewport2Canvas(e.viewport)),n=r.x,r=r.y;return e.canvas.x=n,e.canvas.y=r,e.global.copyFrom(e.canvas),e.offset.copyFrom(e.canvas),e.nativeEvent=t,e.type=t.type,e},e.transferMouseData=function(t,e){t.isTrusted=e.isTrusted,t.srcElement=e.srcElement,t.timeStamp=performance.now(),t.type=e.type,t.altKey=e.altKey,t.metaKey=e.metaKey,t.shiftKey=e.shiftKey,t.ctrlKey=e.ctrlKey,t.button=e.button,t.buttons=e.buttons,t.client.x=e.clientX,t.client.y=e.clientY,t.movement.x=e.movementX,t.movement.y=e.movementY,t.page.x=e.pageX,t.page.y=e.pageY,t.screen.x=e.screenX,t.screen.y=e.screenY,t.relatedTarget=null},e.setCursor=function(t){this.contextService.applyCursorStyle(t||this.canvasConfig.cursor||"default")},e.normalizeToPointerEvent=function(t,e){var n=[];if(e.isTouchEvent(t))for(var r=0;r<t.changedTouches.length;r++){var i=t.changedTouches[r];cl(i.button)&&(i.button=0),cl(i.buttons)&&(i.buttons=1),cl(i.isPrimary)&&(i.isPrimary=1===t.touches.length&&"touchstart"===t.type),cl(i.width)&&(i.width=i.radiusX||1),cl(i.height)&&(i.height=i.radiusY||1),cl(i.tiltX)&&(i.tiltX=0),cl(i.tiltY)&&(i.tiltY=0),cl(i.pointerType)&&(i.pointerType="touch"),cl(i.pointerId)&&(i.pointerId=i.identifier||0),cl(i.pressure)&&(i.pressure=i.force||.5),cl(i.twist)&&(i.twist=0),cl(i.tangentialPressure)&&(i.tangentialPressure=0),i.isNormalized=!0,i.type=t.type,n.push(i)}else e.isMouseEvent(t)?(cl((e=t).isPrimary)&&(e.isPrimary=!0),cl(e.width)&&(e.width=1),cl(e.height)&&(e.height=1),cl(e.tiltX)&&(e.tiltX=0),cl(e.tiltY)&&(e.tiltY=0),cl(e.pointerType)&&(e.pointerType="mouse"),cl(e.pointerId)&&(e.pointerId=1),cl(e.pressure)&&(e.pressure=.5),cl(e.twist)&&(e.twist=0),cl(e.tangentialPressure)&&(e.tangentialPressure=0),e.isNormalized=!0,n.push(e)):n.push(t);return n},t}()).tag="Event",xf=Ht),qf=(t([y(hc),e("design:type",Object)],Uf.prototype,"canvasConfig",void 0),t([y(Hp),e("design:type",Object)],Uf.prototype,"contextService",void 0),t([y($p),e("design:type",$p)],Uf.prototype,"renderingService",void 0),t([y(Wp),e("design:type",Object)],Uf.prototype,"renderingContext",void 0),t([y(Jp),e("design:type",Jp)],Uf.prototype,"eventService",void 0),Uf=xf=t([f({contrib:Kp})],Uf),[M.CIRCLE,M.ELLIPSE,M.IMAGE,M.RECT,M.LINE,M.POLYLINE,M.POLYGON,M.TEXT,M.PATH,M.HTML]),Xf=function(){function t(){this.camera=void 0}var e=t.prototype;return e.isVisible=function(t){var e,n,r,i=t.cullable;return!i.enable||(e=t.getRenderBounds(),!Fc.isEmpty(e)&&(n=this.camera.getFrustum(),r=null==(r=t.parentNode)||null==(r=r.cullable)?void 0:r.visibilityPlaneMask,i.visibilityPlaneMask=this.computeVisibilityWithPlaneMask(t,e,r||Rc.INDETERMINATE,n.planes),i.visible=i.visibilityPlaneMask!==Rc.OUTSIDE,i.visible))},e.computeVisibilityWithPlaneMask=function(t,e,n,r){if(n===Rc.OUTSIDE||n===Rc.INSIDE)return n;for(var i=Rc.INSIDE,o=-1<qf.indexOf(t.nodeName),a=0,s=r.length;a<s;++a){var l=1<<a;if(0!=(n&l)&&(!o||4!==a&&5!==a)){var u=r[a],c=u.normal,u=u.distance;if(Do(c,e.getPositiveFarPoint(r[a]))+u<0)return Rc.OUTSIDE;Do(c,e.getNegativeFarPoint(r[a]))+u<0&&(i|=l)}}return i},t}(),Zf=(t([y(Yp),e("design:type",Zp)],Xf.prototype,"camera",void 0),Xf=t([f({contrib:Hf})],Xf),(Kt=function(){function t(){this.renderingContext=void 0,this.styleValueRegistry=void 0,this.sceneGraphService=void 0,this.rBush=void 0,this.toSync=new Set}var e=t.prototype;return e.pushToSync=function(t){var e=this;t.forEach(function(t){e.toSync.add(t)})},e.apply=function(r){function e(t){t.target.renderable.dirty=!0,r.dirtify()}function n(t){var e=t.detail.affectChildren,n=t.target;e&&n.forEach(function(t){a.pushToSync([t])}),a.pushToSync(t.composedPath().slice(0,-2)),r.dirtify()}function i(t){var e=t.target;a.pushToSync(t.composedPath().slice(0,-2)),a.styleValueRegistry.recalc(e),a.sceneGraphService.dirtifyToRoot(e),r.dirtify()}function o(t){var e=t.target,n=e.rBushNode;n.aabb&&a.rBush.remove(n.aabb),a.toSync.delete(e),a.sceneGraphService.dirtifyToRoot(t.target),r.dirtify()}var a=this;r.hooks.init.tapPromise(wf.tag,qs(k().mark(function t(){return k().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:a.renderingContext.root.addEventListener(E.MOUNTED,i),a.renderingContext.root.addEventListener(E.UNMOUNTED,o),a.renderingContext.root.addEventListener(E.ATTR_MODIFIED,e),a.renderingContext.root.addEventListener(E.BOUNDS_CHANGED,n);case 4:case"end":return t.stop()}},t)}))),r.hooks.destroy.tap(wf.tag,function(){a.renderingContext.root.removeEventListener(E.MOUNTED,i),a.renderingContext.root.removeEventListener(E.UNMOUNTED,o),a.renderingContext.root.removeEventListener(E.ATTR_MODIFIED,e),a.renderingContext.root.removeEventListener(E.BOUNDS_CHANGED,n)}),r.hooks.endFrame.tap(wf.tag,function(){a.syncRTree()})},e.syncRTree=function(){var a=this,s=[];Array.from(this.toSync).filter(function(t){return t.isConnected}).forEach(function(t){var e,n,r,i=t.rBushNode,o=(i&&i.aabb&&a.rBush.remove(i.aabb),t.getRenderBounds());o&&(e=(n=o.getMin())[0],n=n[1],r=(o=o.getMax())[0],o=o[1],i.aabb||(i.aabb={}),i.aabb.id=t.entity,i.aabb.minX=e,i.aabb.minY=n,i.aabb.maxX=r,i.aabb.maxY=o),!i.aabb||isNaN(i.aabb.maxX)||isNaN(i.aabb.maxX)||isNaN(i.aabb.minX)||isNaN(i.aabb.minY)||s.push(i.aabb)}),this.rBush.load(s),s.length=0,this.toSync.clear()},t}()).tag="Prepare",wf=Kt),Kf=(t([y(Wp),e("design:type",Object)],Zf.prototype,"renderingContext",void 0),t([y(Yt),e("design:type",Object)],Zf.prototype,"styleValueRegistry",void 0),t([y(It),e("design:type",Object)],Zf.prototype,"sceneGraphService",void 0),t([y(Bd),e("design:type",Gi)],Zf.prototype,"rBush",void 0),Zf=wf=t([f({contrib:Kp})],Zf),Ci(function(t){ji.register(t,Kp,{cache:!1}),ji.register(t,Hf,{cache:!1}),t({token:Bd,useValue:new Gi}),t($p),t(Jp),t(Uf),t(Zf),t(Yf),t(Wf),t(Xf)})),$f=((h=Ef=Ef||{}).READY="ready",h.BEFORE_RENDER="beforerender",h.AFTER_RENDER="afterrender",h.BEFORE_DESTROY="beforedestroy",h.AFTER_DESTROY="afterdestroy",h.RESIZE="resize",h.DIRTY_RECTANGLE="dirtyrectangle",function(w){function t(t){var e=w.call(this)||this,n=(e.container=Bi.createChild(),e.document=void 0,e.customElements=void 0,e.requestAnimationFrame=void 0,e.cancelAnimationFrame=void 0,e.devicePixelRatio=void 0,e.supportsPointerEvents=void 0,e.supportsTouchEvents=void 0,e.isTouchEvent=void 0,e.isMouseEvent=void 0,e.Element=O,e.frameId=void 0,e.eventService=void 0,e.renderingService=void 0,e.inited=!1,e.readyPromise=void 0,e.resolveReadyPromise=void 0,e.mountEvent=new jd(E.MOUNTED),e.unmountEvent=new jd(E.UNMOUNTED),e.beforeRenderEvent=new jd(Ef.BEFORE_RENDER),e.afterRenderEvent=new jd(Ef.AFTER_RENDER),e.document=new Ep,e.document.defaultView=Qs(e),e.customElements=new Cp,t.container),r=t.canvas,i=t.offscreenCanvas,o=t.width,a=t.height,s=t.devicePixelRatio,l=t.renderer,u=t.background,c=t.cursor,h=t.document,d=t.requestAnimationFrame,p=t.cancelAnimationFrame,f=t.createImage,y=t.supportsPointerEvents,g=t.supportsTouchEvents,m=t.isTouchEvent,t=t.isMouseEvent,v=(v=n,b=Qs(e),v&&(v="string"==typeof v?v:v.id||Rl++,jl[v]&&jl[v].destroy(),jl[v]=b),o),b=a,x=s;return r&&(x=1<=(x=s||Bl&&window.devicePixelRatio||1)?Math.ceil(x):1,v=o||("auto"===(o=wu(s=r,"width"))?s.offsetWidth:parseFloat(o))||r.width/x,b=a||("auto"===(o=wu(s=r,"height"))?s.offsetHeight:parseFloat(o))||r.height/x),e.devicePixelRatio=x,e.requestAnimationFrame=null!=d?d:Vs.bind(globalThis),e.cancelAnimationFrame=null!=p?p:Gs.bind(globalThis),e.supportsTouchEvents=null!=g?g:"ontouchstart"in globalThis,e.supportsPointerEvents=null!=y?y:!!globalThis.PointerEvent,e.isTouchEvent=null!=m?m:function(t){return e.supportsTouchEvents&&t instanceof globalThis.TouchEvent},e.isMouseEvent=null!=t?t:function(t){return!globalThis.MouseEvent||t instanceof globalThis.MouseEvent&&(!e.supportsPointerEvents||!(t instanceof globalThis.PointerEvent))},e.initRenderingContext({container:n,canvas:r,width:v,height:b,renderer:l,offscreenCanvas:i,devicePixelRatio:x,cursor:c||"default",background:u||"transparent",createImage:f,document:h}),e.initDefaultCamera(v,b),qs(k().mark(function t(){return k().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.initRenderer(l);case 2:e.dispatchEvent(new jd(Ef.READY)),e.readyPromise&&e.resolveReadyPromise();case 4:case"end":return t.stop()}},t)}))(),e}b(t,w);var e=t.prototype;return e.initRenderingContext=function(t){var e=this;this.container.register({token:hc,useValue:t}),this.container.register({token:Wp,useValue:{root:this.document.documentElement,renderListCurrentFrame:[],unculledEntities:[],renderReasons:new Set,force:!1,dirty:!1}}),this.document.documentElement.addEventListener(E.CHILD_INSERTED,function(t){e.mountChildren(t.detail.child)}),this.document.documentElement.addEventListener(E.CHILD_REMOVED,function(t){e.unmountChildren(t.detail.child)})},e.initDefaultCamera=function(t,e){var t=(new Zp).setPosition(t/2,e/2,500).setFocalPoint(t/2,e/2,0).setOrthographic(t/-2,t/2,e/2,e/-2,.1,1e3),n=(t.canvas=this).container.get(Wp);t.on(Up,function(){n.renderReasons.add(Bp.CAMERA_CHANGED)}),this.container.register({token:Yp,useValue:t})},e.getConfig=function(){return this.container.get(hc)},e.getContainer=function(){return this.container},e.getRoot=function(){return this.document.documentElement},e.getCamera=function(){return this.container.get(Yp)},e.getContextService=function(){return this.container.get(Hp)},e.getEventService=function(){return this.eventService},e.getRenderingService=function(){return this.renderingService},e.getRenderingContext=function(){return this.container.get(Wp)},e.getStats=function(){return this.getRenderingService().getStats()},e.destroy=function(t,e){void 0===t&&(t=!0),(e=void 0===e?!1:e)||this.dispatchEvent(new jd(Ef.BEFORE_DESTROY)),this.frameId&&(this.getConfig().cancelAnimationFrame||cancelAnimationFrame)(this.frameId);var n=this.getRoot();this.unmountChildren(n),t&&this.document.destroy(),this.getContextService().destroy(),this.getRenderingService().destroy(),e||this.dispatchEvent(new jd(Ef.AFTER_DESTROY))},e.changeSize=function(t,e){this.resize(t,e)},e.resize=function(t,e){var n=this.container.get(hc),n=(n.width=t,n.height=e,this.getContextService().resize(t,e),this.container.get(Yp)),r=n.getProjectionMode();n.setPosition(t/2,e/2,500).setFocalPoint(t/2,e/2,0),r===Vp.ORTHOGRAPHIC?n.setOrthographic(t/-2,t/2,e/2,e/-2,n.getNear(),n.getFar()):n.setAspect(t/e),this.dispatchEvent(new jd(Ef.RESIZE,{width:t,height:e}))},e.appendChild=function(t,e){return this.document.documentElement.appendChild(t,e)},e.insertBefore=function(t,e){return this.document.documentElement.insertBefore(t,e)},e.removeChild=function(t,e){return this.document.documentElement.removeChild(t,e=void 0===e?!0:e)},e.removeChildren=function(t){this.document.documentElement.removeChildren(t=void 0===t?!0:t)},e.render=function(){this.dispatchEvent(this.beforeRenderEvent),this.container.isBound($p)&&this.container.get($p).render(this.getConfig()),this.dispatchEvent(this.afterRenderEvent)},e.run=function(){var e=this;(function t(){e.render(),e.frameId=requestAnimationFrame(t)})()},e.initRenderer=function(){var e=qs(k().mark(function t(e){var n;return k().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(e){t.next=2;break}throw new Error("Renderer is required.");case 2:return this.inited=!1,this.readyPromise=void 0,this.loadCommonContainerModule(),this.loadRendererContainerModule(e),n=this.container.get(Hp),this.renderingService=this.container.get($p),this.eventService=this.container.get(Jp),t.next=11,n.init();case 11:return t.next=13,this.renderingService.init();case 13:this.inited=!0,this.getRoot().forEach(function(t){t=t.renderable;t&&(t.renderBoundsDirty=!0,t.boundsDirty=!0,t.dirty=!0)}),this.mountChildren(this.getRoot()),e.getConfig().enableAutoRendering&&this.run();case 17:case"end":return t.stop()}},t,this)}));return function(t){return e.apply(this,arguments)}}(),e.loadCommonContainerModule=function(){this.container.unload(Kf),this.container.load(Kf,!0)},e.loadRendererContainerModule=function(t){var e=this;t.getPlugins().forEach(function(t){t.container=e.container,t.init()})},e.setRenderer=function(){var e=qs(k().mark(function t(e){var n,r;return k().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if((n=this.getConfig()).renderer===e)return t.abrupt("return");t.next=3;break;case 3:return r=n.renderer,n.renderer=e,this.destroy(!1,!0),[].concat(null==r?void 0:r.getPlugins()).reverse().forEach(function(t){t.destroy()}),t.next=9,this.initRenderer(e);case 9:case"end":return t.stop()}},t,this)}));return function(t){return e.apply(this,arguments)}}(),e.setCursor=function(t){this.container.get(hc).cursor=t,this.getContextService().applyCursorStyle(t)},e.unmountChildren=function(t){var e,n=this;this.inited&&(e=[],t.forEach(function(t){t.isConnected&&e.push(t)}),e.reverse().forEach(function(t){t instanceof Xd&&t.disconnectedCallback&&t.disconnectedCallback(),t.dispatchEvent(n.unmountEvent),t!==n.document.documentElement&&(t.ownerDocument=null),t.isConnected=!1}))},e.mountChildren=function(t){var e=this;this.inited?t.forEach(function(t){t.isConnected||(t.ownerDocument=e.document,t.isConnected=!0,t.dispatchEvent(e.mountEvent),t instanceof Xd&&t.connectedCallback&&t.connectedCallback())}):console.warn("[g]: You are trying to call `canvas.appendChild` before canvas' initialization finished. You can either await `canvas.ready` or listen to `CanvasEvent.READY` manually.","appended child: ",t.nodeName)},e.client2Viewport=function(t){return this.getEventService().client2Viewport(t)},e.viewport2Client=function(t){return this.getEventService().viewport2Client(t)},e.viewport2Canvas=function(t){return this.getEventService().viewport2Canvas(t)},e.canvas2Viewport=function(t){return this.getEventService().canvas2Viewport(t)},e.getPointByClient=function(t,e){return this.client2Viewport({x:t,y:e})},e.getClientByPoint=function(t,e){return this.viewport2Client({x:t,y:e})},Zs(t,[{key:"ready",get:function(){var e=this;return this.readyPromise||(this.readyPromise=new Promise(function(t){e.resolveReadyPromise=function(){t(e)}}),this.inited&&this.resolveReadyPromise()),this.readyPromise}}]),t}(n)),x=(Bi.load(c),Bi.get(It)),Jf=Bi.get(Yt),Qf=Bi.get(id),ty=Bi.get(Gf);function ey(t,e){return(ey=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}var ny=p.defineToken(""),ry=p.defineToken("");function iy(t,e){e=e.r;t.arc(e,e,e,0,2*Math.PI,!1)}function oy(t,e){var n,r,i=e.rx,e=e.ry;t.ellipse?t.ellipse(i,e,i,e,0,0,2*Math.PI,!1):(n=e<i?i:e,r=e<i?1:i/e,e=e<i?e/i:1,t.save(),t.scale(r,e),t.arc(0,0,n,0,2*Math.PI))}function ay(t,e){var n,r,i=e.x1,o=e.y1,a=e.x2,s=e.y2,l=e.defX,l=void 0===l?0:l,u=e.defY,u=void 0===u?0:u,c=e.markerStart,h=e.markerEnd,d=e.markerStartOffset,e=e.markerEndOffset,p=0,f=0,y=0,g=0,m=0;c&&c instanceof O&&d&&(n=a-i,r=s-o,m=Math.atan2(r,n),p=Math.cos(m)*(d||0),f=Math.sin(m)*(d||0)),h&&h instanceof O&&e&&(n=i-a,r=o-s,m=Math.atan2(r,n),y=Math.cos(m)*(e||0),g=Math.sin(m)*(e||0)),t.moveTo(i-l+p,o-u+f),t.lineTo(a-l+y,s-u+g)}function sy(t,e){var n,r,i=e.defX,o=void 0===i?0:i,i=e.defY,a=void 0===i?0:i,i=e.markerStart,s=e.markerEnd,l=e.markerStartOffset,u=e.markerEndOffset,e=e.path,c=e.curve,e=e.zCommandIndexes,h=[].concat(c),d=(e.forEach(function(t,e){h.splice(t+e,1,["Z"])}),h.length&&"Z"===h[h.length-1][0]),p=0,f=0,y=0,g=0,c=0;i&&i instanceof O&&l&&(i=(e=i.parentNode.getStartTangent())[0],e=e[1],n=i[0]-e[0],r=i[1]-e[1],c=Math.atan2(r,n),p=Math.cos(c)*(l||0),f=Math.sin(c)*(l||0)),s&&s instanceof O&&u&&(e=(i=s.parentNode.getEndTangent())[0],l=i[1],n=e[0]-l[0],r=e[1]-l[1],c=Math.atan2(r,n),y=Math.cos(c)*(u||0),g=Math.sin(c)*(u||0));for(var m=0;m<h.length;m++){var v=h[m];switch(v[0]){case"M":t.moveTo(v[1]-o+p,v[2]-a+f);break;case"C":var b=m===h.length-(d?2:1)?y:0,x=m===h.length-(d?2:1)?g:0;t.bezierCurveTo(v[1]-o,v[2]-a,v[3]-o,v[4]-a,v[5]-o+b,v[6]-a+x);break;case"Z":t.closePath()}}}function ly(t,e){var n,r,i=e.defX,o=void 0===i?0:i,i=e.defY,a=void 0===i?0:i,i=e.markerStart,s=e.markerEnd,l=e.markerStartOffset,u=e.markerEndOffset,c=e.points.points,h=c.length,e=c[0][0]-o,d=c[0][1]-a,p=c[h-1][0]-o,f=c[h-1][1]-a,y=0,g=0,m=0,v=0,b=0;i&&i instanceof O&&l&&(n=c[1][0]-c[0][0],r=c[1][1]-c[0][1],b=Math.atan2(r,n),y=Math.cos(b)*(l||0),g=Math.sin(b)*(l||0)),s&&s instanceof O&&u&&(n=c[h-1][0]-c[0][0],r=c[h-1][1]-c[0][1],b=Math.atan2(r,n),m=Math.cos(b)*(u||0),v=Math.sin(b)*(u||0)),t.moveTo(e+(y||m),d+(g||v));for(var x=1;x<h-1;x++){var w=c[x];t.lineTo(w[0]-o,w[1]-a)}t.lineTo(p,f)}function uy(t,e){var n,r,i=e.defX,o=void 0===i?0:i,i=e.defY,a=void 0===i?0:i,i=e.markerStart,s=e.markerEnd,l=e.markerStartOffset,u=e.markerEndOffset,c=e.points.points,h=c.length,e=c[0][0]-o,d=c[0][1]-a,p=c[h-1][0]-o,f=c[h-1][1]-a,y=0,g=0,m=0,v=0,b=0;i&&i instanceof O&&l&&(n=c[1][0]-c[0][0],r=c[1][1]-c[0][1],b=Math.atan2(r,n),y=Math.cos(b)*(l||0),g=Math.sin(b)*(l||0)),s&&s instanceof O&&u&&(n=c[h-2][0]-c[h-1][0],r=c[h-2][1]-c[h-1][1],b=Math.atan2(r,n),m=Math.cos(b)*(u||0),v=Math.sin(b)*(u||0)),t.moveTo(e+y,d+g);for(var x=1;x<h-1;x++){var w=c[x];t.lineTo(w[0]-o,w[1]-a)}t.lineTo(p+m,f+v)}function cy(t,e){var n,r,i,o,a=e.radius,s=e.width,e=e.height,l=s,u=e;a&&a.some(function(t){return 0!==t})?(n=(s=0<s?1:-1)+(e=0<e?1:-1)==0,r=(a=a.map(function(t){return Xl(t,0,Math.min(Math.abs(l)/2,Math.abs(u)/2))}))[0],i=a[1],o=a[2],a=a[3],t.moveTo(s*r,0),t.lineTo(l-s*i,0),0!==i&&t.arc(l-s*i,e*i,i,-e*Math.PI/2,0<s?0:Math.PI,n),t.lineTo(l,u-e*o),0!==o&&t.arc(l-s*o,u-e*o,o,0<s?0:Math.PI,0<e?Math.PI/2:1.5*Math.PI,n),t.lineTo(s*a,u),0!==a&&t.arc(s*a,u-e*a,a,0<e?Math.PI/2:-Math.PI/2,0<s?Math.PI:0,n),t.lineTo(0,e*r),0!==r&&t.arc(s*r,e*r,r,0<s?Math.PI:0,0<e?1.5*Math.PI:Math.PI/2,n)):t.rect(0,0,l,u)}var hy=Ci(function(t){t({token:{token:ry,named:M.CIRCLE},useValue:iy}),t({token:{token:ry,named:M.ELLIPSE},useValue:oy}),t({token:{token:ry,named:M.RECT},useValue:cy}),t({token:{token:ry,named:M.LINE},useValue:ay}),t({token:{token:ry,named:M.POLYLINE},useValue:uy}),t({token:{token:ry,named:M.POLYGON},useValue:ly}),t({token:{token:ry,named:M.PATH},useValue:sy}),t({token:ny,useFactory:function(e){return function(t){return e.container.isBoundNamed(ry,t)?e.container.getNamed(ry,t):null}}})}),dy=function(i){var t;function e(){for(var t,e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return(t=i.call.apply(i,[this].concat(n))||this).name="canvas-path-generator",t}t=i,(n=e).prototype=Object.create(t.prototype),ey(n.prototype.constructor=n,t);var n=e.prototype;return n.init=function(){this.container.load(hy,!0)},n.destroy=function(){this.container.unload(hy)},e}(mf);function py(){py=function(){return a};var a={},t=Object.prototype,l=t.hasOwnProperty,e="function"==typeof Symbol?Symbol:{},r=e.iterator||"@@iterator",n=e.asyncIterator||"@@asyncIterator",i=e.toStringTag||"@@toStringTag";function o(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{o({},"")}catch(t){o=function(t,e,n){return t[e]=n}}function s(t,e,n,r){var i,o,a,s,e=e&&e.prototype instanceof h?e:h,e=Object.create(e.prototype),r=new x(r||[]);return e._invoke=(i=t,o=n,a=r,s="suspendedStart",function(t,e){if("executing"===s)throw new Error("Generator is already running");if("completed"===s){if("throw"===t)throw e;return E()}for(a.method=t,a.arg=e;;){var n=a.delegate;if(n){n=function t(e,n){var r=e.iterator[n.method];if(void 0===r){if(n.delegate=null,"throw"===n.method){if(e.iterator.return&&(n.method="return",n.arg=void 0,t(e,n),"throw"===n.method))return c;n.method="throw",n.arg=new TypeError("The iterator does not provide a 'throw' method")}return c}r=u(r,e.iterator,n.arg);if("throw"===r.type)return n.method="throw",n.arg=r.arg,n.delegate=null,c;r=r.arg;return r?r.done?(n[e.resultName]=r.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=void 0),n.delegate=null,c):r:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,c)}(n,a);if(n){if(n===c)continue;return n}}if("next"===a.method)a.sent=a._sent=a.arg;else if("throw"===a.method){if("suspendedStart"===s)throw s="completed",a.arg;a.dispatchException(a.arg)}else"return"===a.method&&a.abrupt("return",a.arg);s="executing";n=u(i,o,a);if("normal"===n.type){if(s=a.done?"completed":"suspendedYield",n.arg===c)continue;return{value:n.arg,done:a.done}}"throw"===n.type&&(s="completed",a.method="throw",a.arg=n.arg)}}),e}function u(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}a.wrap=s;var c={};function h(){}function d(){}function p(){}var e={},f=(o(e,r,function(){return this}),Object.getPrototypeOf),f=f&&f(f(w([]))),y=(f&&f!==t&&l.call(f,r)&&(e=f),p.prototype=h.prototype=Object.create(e));function g(t){["next","throw","return"].forEach(function(e){o(t,e,function(t){return this._invoke(e,t)})})}function m(a,s){var e;this._invoke=function(n,r){function t(){return new s(function(t,e){!function e(t,n,r,i){var o,t=u(a[t],a,n);if("throw"!==t.type)return(n=(o=t.arg).value)&&"object"==typeof n&&l.call(n,"__await")?s.resolve(n.__await).then(function(t){e("next",t,r,i)},function(t){e("throw",t,r,i)}):s.resolve(n).then(function(t){o.value=t,r(o)},function(t){return e("throw",t,r,i)});i(t.arg)}(n,r,t,e)})}return e=e?e.then(t,t):t()}}function v(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function b(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function x(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(v,this),this.reset(!0)}function w(e){if(e){var n,t=e[r];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length))return n=-1,(t=function t(){for(;++n<e.length;)if(l.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t}).next=t}return{next:E}}function E(){return{value:void 0,done:!0}}return o(y,"constructor",d.prototype=p),o(p,"constructor",d),d.displayName=o(p,i,"GeneratorFunction"),a.isGeneratorFunction=function(t){t="function"==typeof t&&t.constructor;return!!t&&(t===d||"GeneratorFunction"===(t.displayName||t.name))},a.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,p):(t.__proto__=p,o(t,i,"GeneratorFunction")),t.prototype=Object.create(y),t},a.awrap=function(t){return{__await:t}},g(m.prototype),o(m.prototype,n,function(){return this}),a.AsyncIterator=m,a.async=function(t,e,n,r,i){void 0===i&&(i=Promise);var o=new m(s(t,e,n,r),i);return a.isGeneratorFunction(e)?o:o.next().then(function(t){return t.done?t.value:o.next()})},g(y),o(y,i,"Generator"),o(y,r,function(){return this}),o(y,"toString",function(){return"[object Generator]"}),a.keys=function(n){var t,r=[];for(t in n)r.push(t);return r.reverse(),function t(){for(;r.length;){var e=r.pop();if(e in n)return t.value=e,t.done=!1,t}return t.done=!0,t}},a.values=w,x.prototype={constructor:x,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(b),!t)for(var e in this)"t"===e.charAt(0)&&l.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(n){if(this.done)throw n;var r=this;function t(t,e){return o.type="throw",o.arg=n,r.next=t,e&&(r.method="next",r.arg=void 0),!!e}for(var e=this.tryEntries.length-1;0<=e;--e){var i=this.tryEntries[e],o=i.completion;if("root"===i.tryLoc)return t("end");if(i.tryLoc<=this.prev){var a=l.call(i,"catchLoc"),s=l.call(i,"finallyLoc");if(a&&s){if(this.prev<i.catchLoc)return t(i.catchLoc,!0);if(this.prev<i.finallyLoc)return t(i.finallyLoc)}else if(a){if(this.prev<i.catchLoc)return t(i.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return t(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;0<=n;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&l.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var i=r;break}}var o=(i=i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc?null:i)?i.completion:{};return o.type=t,o.arg=e,i?(this.method="next",this.next=i.finallyLoc,c):this.complete(o)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),c},finish:function(t){for(var e=this.tryEntries.length-1;0<=e;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),b(n),c}},catch:function(t){for(var e=this.tryEntries.length-1;0<=e;--e){var n,r,i=this.tryEntries[e];if(i.tryLoc===t)return"throw"===(n=i.completion).type&&(r=n.arg,b(i)),r}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:w(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=void 0),c}},a}function fy(t,e,n,r,i,o,a){try{var s=t[o](a),l=s.value}catch(t){return void n(t)}s.done?e(l):Promise.resolve(l).then(r,i)}function yy(t,e){return(yy=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}var gy,my="undefined"!=typeof Float32Array?Float32Array:Array;function vy(){var t=new my(16);return my!=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}function by(){var t=new my(3);return my!=Float32Array&&(t[0]=0,t[1]=0,t[2]=0),t}function xy(t,e,n,r){return t[0]=e,t[1]=n,t[2]=r,t}Math.hypot||(Math.hypot=function(){for(var t=0,e=arguments.length;e--;)t+=arguments[e]*arguments[e];return Math.sqrt(t)}),by(),zt=new my(2),my!=Float32Array&&(zt[0]=0,zt[1]=0);var wy=p.defineToken(""),Ey=((jt=function(){function t(){var L=this;this.displayObjectPool=void 0,this.canvasConfig=void 0,this.offscreenCanvas=void 0,this.rBush=void 0,this.pathGeneratorFactory=void 0,this.pathGeneratorFactoryCache={},this.pointInPathPickerFactory=void 0,this.tmpVec3a=by(),this.tmpVec3b=by(),this.tmpVec3c=by(),this.isHit=function(t,e,n){var r,i,o,a,s,l,u,c,h,d,p,f,y,g,m,v,b,x,w,E,_,k,T,M,S,O=L.pointInPathPickerFactory(t.nodeName);if(O){r=vy(),i=(n=n)[0],o=n[1],a=n[2],s=n[3],l=n[4],u=n[5],c=n[6],h=n[7],d=n[8],p=n[9],f=n[10],C=n[11],y=n[12],g=n[13],m=n[14],n=n[15];var P=(S=(v=i*u-o*l)*(P=f*n-C*m)-(b=i*c-a*l)*(M=p*n-C*g)+(A=i*h-s*l)*(T=p*m-f*g)+(x=o*c-a*u)*(k=d*n-C*y)-(N=o*h-s*u)*(_=d*m-f*y)+(w=a*h-s*c)*(E=d*g-p*y))?(r[0]=(u*P-c*M+h*T)*(S=1/S),r[1]=(a*M-o*P-s*T)*S,r[2]=(g*w-m*N+n*x)*S,r[3]=(f*N-p*w-C*x)*S,r[4]=(c*k-l*P-h*_)*S,r[5]=(i*P-a*k+s*_)*S,r[6]=(m*A-y*w-n*b)*S,r[7]=(d*w-f*A+C*b)*S,r[8]=(l*M-u*k+h*E)*S,r[9]=(o*k-i*M-s*E)*S,r[10]=(y*N-g*A+n*v)*S,r[11]=(p*A-d*N-C*v)*S,r[12]=(u*_-l*T-c*E)*S,r[13]=(i*T-o*_+a*E)*S,r[14]=(g*b-y*x-m*v)*S,r[15]=(d*x-p*b+f*v)*S,r):null,A=(w=L.tmpVec3b,h=xy(L.tmpVec3c,e[0],e[1],0),k=P,M=h[0],s=h[1],h=h[2],n=k[3]*M+k[7]*s+k[11]*h+k[15],w[0]=(k[0]*M+k[4]*s+k[8]*h+k[12])/(n=n||1),w[1]=(k[1]*M+k[5]*s+k[9]*h+k[13])/n,w[2]=(k[2]*M+k[6]*s+k[10]*h+k[14])/n,w),N=t.getGeometryBounds().halfExtents,C=t.parsedStyle.anchor;if(A[0]+=(C&&C[0]||0)*N[0]*2,A[1]+=(C&&C[1]||0)*N[1]*2,O(t,new Gc(A[0],A[1]),L.isPointInPath))return!0}return!1},this.isPointInPath=function(t,e){var n=L.offscreenCanvas.getOrCreateContext(L.canvasConfig.offscreenCanvas),r=(void 0===L.pathGeneratorFactoryCache[t.nodeName]&&(L.pathGeneratorFactoryCache[t.nodeName]=L.pathGeneratorFactory(t.nodeName)),L.pathGeneratorFactoryCache[t.nodeName]);return r&&(n.beginPath(),r(n,t.parsedStyle),n.closePath()),n.isPointInPath(e.x,e.y)}}var e=t.prototype;return e.apply=function(t){var j=this;t.hooks.pick.tapPromise(gy.tag,function(){s=py().mark(function t(_){var k,T,M,S,O,P,A,N,C,L,I;return py().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:k=_.topmost,O=_.position,T=O.x,O=O.y,T=xy(j.tmpVec3a,T,O,0),O=j.rBush.search({minX:T[0],minY:T[1],maxX:T[0],maxY:T[1]}),M=O.map(function(t){return t.id}),S=[],O.forEach(function(t){var t=t.id,t=j.displayObjectPool.getByEntity(t),e=t.parsedStyle.pointerEvents,e=["auto","visiblepainted","visiblefill","visiblestroke","visible"].includes(e);e&&!t.isVisible()||t.isCulled()||!t.isInteractive()||t.parentNode&&-1===M.indexOf(t.parentNode.entity)||S.push(t)}),S.sort(function(t,e){return e.sortable.renderOrder-t.sortable.renderOrder}),O=[],P=0,A=S;case 9:if(P<A.length)if(N=A[P],C=N.getWorldTransform(),j.isHit(N,T,C))if(L=j.findClosestClipPath(N))if(I=L.style.clipPath,e=vy(),n=L===N?C:L.getWorldTransform(),r=I.getLocalTransform(),E=w=x=b=v=m=g=y=f=p=d=h=c=u=l=s=a=o=i=void 0,i=n[0],o=n[1],a=n[2],s=n[3],l=n[4],u=n[5],c=n[6],h=n[7],d=n[8],p=n[9],f=n[10],y=n[11],g=n[12],m=n[13],v=n[14],n=n[15],b=r[0],x=r[1],w=r[2],E=r[3],e[0]=b*i+x*l+w*d+E*g,e[1]=b*o+x*u+w*p+E*m,e[2]=b*a+x*c+w*f+E*v,e[3]=b*s+x*h+w*y+E*n,b=r[4],x=r[5],w=r[6],E=r[7],e[4]=b*i+x*l+w*d+E*g,e[5]=b*o+x*u+w*p+E*m,e[6]=b*a+x*c+w*f+E*v,e[7]=b*s+x*h+w*y+E*n,b=r[8],x=r[9],w=r[10],E=r[11],e[8]=b*i+x*l+w*d+E*g,e[9]=b*o+x*u+w*p+E*m,e[10]=b*a+x*c+w*f+E*v,e[11]=b*s+x*h+w*y+E*n,b=r[12],x=r[13],w=r[14],E=r[15],e[12]=b*i+x*l+w*d+E*g,e[13]=b*o+x*u+w*p+E*m,e[14]=b*a+x*c+w*f+E*v,e[15]=b*s+x*h+w*y+E*n,C=e,j.isHit(I,T,C)){if(k)return _.picked=[N],t.abrupt("return",_);t.next=25}else t.next=26;else t.next=28;else t.next=34;else t.next=37;break;case 25:O.push(N);case 26:t.next=34;break;case 28:if(k)return _.picked=[N],t.abrupt("return",_);t.next=33;break;case 33:O.push(N);case 34:P++,t.next=9;break;case 37:return _.picked=O,t.abrupt("return",_);case 39:case"end":return t.stop()}var e,n,r,i,o,a,s,l,u,c,h,d,p,f,y,g,m,v,b,x,w,E},t)});var s,e=function(){var t=this,a=arguments;return new Promise(function(e,n){var r=s.apply(t,a);function i(t){fy(r,e,n,i,o,"next",t)}function o(t){fy(r,e,n,i,o,"throw",t)}i(void 0)})};return function(t){return e.apply(this,arguments)}}())},e.findClosestClipPath=function(t){var e,n=t;do{if(null==(e=n.style)?void 0:e.clipPath)return n}while(null!==(n=n.parentElement));return null},t}()).tag="CanvasPicker",gy=jt);function _y(t,e,n,r){t-=n,n=e-r;return Math.sqrt(t*t+n*n)}function ky(t,e){return Math.abs(t-e)<.001}function Ty(t,e){var n=Math.min.apply(Math,t),r=Math.min.apply(Math,e);return{x:n,y:r,width:Math.max.apply(Math,t)-n,height:Math.max.apply(Math,e)-r}}t([y(Gf),e("design:type",Gf)],Ey.prototype,"displayObjectPool",void 0),t([y(hc),e("design:type",Object)],Ey.prototype,"canvasConfig",void 0),t([y(Qp),e("design:type",Qp)],Ey.prototype,"offscreenCanvas",void 0),t([y(Bd),e("design:type",Gi)],Ey.prototype,"rBush",void 0),t([y(ny),e("design:type",Function)],Ey.prototype,"pathGeneratorFactory",void 0),t([y(wy),e("design:type",Function)],Ey.prototype,"pointInPathPickerFactory",void 0);var Ey=gy=t([f({contrib:Kp})],Ey),My={box:function(t,e,n,r){return Ty([t,n],[e,r])},length:_y,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,i,o){var a=(n-t)*(i-t)+(r-e)*(o-e);return a<0?_y(t,e,i,o):(n-t)*(n-t)+(r-e)*(r-e)<a?_y(n,r,i,o):this.pointToLine(t,e,n,r,i,o)},pointToLine:function(t,e,n,r,i,o){var a,s,l,n=[n-t,r-e];return(r=n)[0]===(a=[0,0])[0]&&r[1]===a[1]?Math.sqrt((i-t)*(i-t)+(o-e)*(o-e)):(s=(n=a=r=[-n[1],n[0]])[0],l=n[1],0<(s=s*s+l*l)&&(s=1/Math.sqrt(s)),a[0]=n[0]*s,a[1]=n[1]*s,l=[i-t,o-e],Math.abs(l[0]*r[0]+l[1]*r[1]))},tangentAngle:function(t,e,n,r){return Math.atan2(r-e,n-t)}};function Sy(t,e,n,r,i){var o=1-i;return o*o*o*t+3*e*i*o*o+3*n*i*i*o+r*i*i*i}function Oy(t,e,n,r,i){var o=1-i;return 3*(o*o*(e-t)+2*o*i*(n-e)+i*i*(r-n))}function Py(t,e,n,r){var i,o,r=-3*t+9*e-9*n+3*r,n=6*t-12*e+6*n,e=3*e-3*t,t=[];return ky(r,0)?ky(n,0)||0<=(i=-e/n)&&i<=1&&t.push(i):ky(e=n*n-4*r*e,0)?t.push(-n/(2*r)):0<e&&(o=(-n-(e=Math.sqrt(e)))/(2*r),0<=(i=(-n+e)/(2*r))&&i<=1&&t.push(i),0<=o&&o<=1&&t.push(o)),t}function Ay(t,e,n,r,i,o,a,s,l){var u=Sy(t,n,i,a,l),c=Sy(e,r,o,s,l),h=My.pointAt(t,e,n,r,l),n=My.pointAt(n,r,i,o,l),r=My.pointAt(i,o,a,s,l),i=My.pointAt(h.x,h.y,n.x,n.y,l),o=My.pointAt(n.x,n.y,r.x,r.y,l);return[[t,e,h.x,h.y,i.x,i.y,u,c],[u,c,o.x,o.y,r.x,r.y,a,s]]}function Ny(t,e,n,r,i,o,a,s,l){if(0===l){for(var u=[t,n,i,a],c=[e,r,o,s],h=0,d=u.length,p=0;p<d;p++)h+=_y(u[p],c[p],u[(p+1)%d],c[(p+1)%d]);return h/2}t=Ay(t,e,n,r,i,o,a,s,.5),e=[].concat(t[0],[l-1]),n=[].concat(t[1],[l-1]);return Ny.apply(void 0,e)+Ny.apply(void 0,n)}var Cy={extrema:Py,box:function(t,e,n,r,i,o,a,s){for(var l=[t,a],u=[e,s],c=Py(t,n,i,a),h=Py(e,r,o,s),d=0;d<c.length;d++)l.push(Sy(t,n,i,a,c[d]));for(var p=0;p<h.length;p++)u.push(Sy(e,r,o,s,h[p]));return Ty(l,u)},length:function(t,e,n,r,i,o,a,s){return Ny(t,e,n,r,i,o,a,s,3)},nearestPoint:function(t,e,n,r,i,o,a,s,l,u,c){for(var h=[t,n,i,a],d=[e,r,o,s],t=l,p=Sy,n=c,f=-1,y=1/0,g=[t,u],m=20,v=1/(m=n&&200<n?n/10:m),b=v/10,x=0;x<=m;x++){var w=x*v,E=[p.apply(void 0,h.concat([w])),p.apply(void 0,d.concat([w]))],E=_y(g[0],g[1],E[0],E[1]);E<y&&(f=w,y=E)}if(0===f)return{x:h[0],y:d[0]};if(1===f)return{x:h[(t=h.length)-1],y:d[t-1]};for(var y=1/0,_=0;_<32&&!(b<1e-4);_++){var k=f-b,T=f+b,M=[p.apply(void 0,h.concat([k])),p.apply(void 0,d.concat([k]))],M=_y(g[0],g[1],M[0],M[1]);0<=k&&M<y?(f=k,y=M):(k=[p.apply(void 0,h.concat([T])),p.apply(void 0,d.concat([T]))],M=_y(g[0],g[1],k[0],k[1]),T<=1&&M<y?(f=T,y=M):b*=.5)}return{x:p.apply(void 0,h.concat([f])),y:p.apply(void 0,d.concat([f]))}},pointDistance:function(t,e,n,r,i,o,a,s,l,u,c){t=this.nearestPoint(t,e,n,r,i,o,a,s,l,u,c);return _y(t.x,t.y,l,u)},interpolationAt:Sy,pointAt:function(t,e,n,r,i,o,a,s,l){return{x:Sy(t,n,i,a,l),y:Sy(e,r,o,s,l)}},divide:Ay,tangentAngle:function(t,e,n,r,i,o,a,s,l){t=Oy(t,n,i,a,l),n=Oy(e,r,o,s,l);return(Math.atan2(n,t)+2*Math.PI)%(2*Math.PI)}};function Ly(t,e,n,r){t-=n,n=e-r;return Math.sqrt(t*t+n*n)}function Iy(t,e,n,r,i,o){return t<=i&&i<=t+n&&e<=o&&o<=e+r}function jy(t,e,n,r,i,o,a,s){var l=(Math.atan2(s-e,a-t)+2*Math.PI)%(2*Math.PI);return!(l<r||i<l)&&Ly((r={x:t+n*Math.cos(l),y:e+n*Math.sin(l)}).x,r.y,a,s)<=o/2}function Ry(t,e,n,r,i,o,a){var s=Math.min(t,n),l=Math.max(t,n),u=Math.min(e,r),c=Math.max(e,r),h=i/2;return s-h<=o&&o<=l+h&&u-h<=a&&a<=c+h&&My.pointToLine(t,e,n,r,o,a)<=i/2}function Dy(t,e,n,r,i){var o=t.length;if(!(o<2)){for(var a=0;a<o-1;a++)if(Ry(t[a][0],t[a][1],t[a+1][0],t[a+1][1],e,n,r))return!0;if(i){var i=t[0],s=t[o-1];if(Ry(i[0],i[1],s[0],s[1],e,n,r))return!0}}return!1}var By=1e-6;function Fy(t){return Math.abs(t)<By?0:t<0?-1:1}function zy(t,e,n){var r=!1,i=t.length;if(i<=2)return!1;for(var o,a,s,l=0;l<i;l++){var u=t[l],c=t[(l+1)%i];if(a=c,((s=[e,n])[0]-(o=u)[0])*(a[1]-o[1])==(a[0]-o[0])*(s[1]-o[1])&&Math.min(o[0],a[0])<=s[0]&&s[0]<=Math.max(o[0],a[0])&&Math.min(o[1],a[1])<=s[1]&&s[1]<=Math.max(o[1],a[1]))return!0;0<Fy(u[1]-n)!=0<Fy(c[1]-n)&&Fy(e-(n-u[1])*(u[0]-c[0])/(u[1]-c[1])-u[0])<0&&(r=!r)}return r}function Vy(t,e,n){for(var r=!1,i=0;i<t.length&&!(r=zy(t[i],e,n));i++);return r}function Gy(t,e){var t=t.parsedStyle,n=t.r,r=t.fill,i=t.stroke,o=t.lineWidth,a=t.increasedLineWidthForHitTesting,s=t.clipPathTargets,t=t.pointerEvents,o=((o||0)+(a||0))/2,a=Ly(n,n,e.x,e.y),e=!(null==s||!s.length),s=fc(t,r,i),t=s[0],r=s[1];return t&&r||e?a<=n+o:t?a<=n:!!r&&(n-o<=a&&a<=n+o)}function Hy(t,e,n,r){return t/(n*n)+e/(r*r)}function Wy(t,e){var n=e.x,e=e.y,t=t.parsedStyle,r=t.rx,i=t.ry,o=t.fill,a=t.stroke,s=t.lineWidth,l=t.increasedLineWidthForHitTesting,u=t.clipPathTargets,t=t.pointerEvents,u=!(null==u||!u.length),t=fc(t,o,a),o=t[0],a=t[1],t=((s||0)+(l||0))/2,s=(n-r)*(n-r),l=(e-i)*(e-i);return o&&a||u?Hy(s,l,r+t,i+t)<=1:o?Hy(s,l,r,i)<=1:!!a&&(1<=Hy(s,l,r-t,i-t)&&Hy(s,l,r+t,i+t)<=1)}function Yy(t,e){var t=t.parsedStyle,n=t.x1,r=t.y1,i=t.x2,o=t.y2,a=t.lineWidth,s=t.increasedLineWidthForHitTesting,l=t.defX,u=t.defY,c=t.clipPathTargets,h=t.pointerEvents,d=t.fill,t=t.stroke,c=!(null==c||!c.length);return!(!fc(h,d,t)[1]&&!c||!a)&&Ry(n,r,i,o,(a||0)+(s||0),e.x+(void 0===l?0:l),e.y+(void 0===u?0:u))}function Uy(t,e,n){var r=t.parsedStyle,i=r.lineWidth,o=r.increasedLineWidthForHitTesting,a=r.stroke,s=r.fill,l=r.defX,l=void 0===l?0:l,u=r.defY,u=void 0===u?0:u,c=r.clipPathTargets,h=r.path,r=fc(r.pointerEvents,s,a),s=r[0],a=r[1],r=h.segments,d=h.hasArc,p=h.polylines,f=h.polygons,h=h.totalLength,c=!(null==c||!c.length),y=!1;return s||c?d?n(t,e):Vy(f,e.x+l,e.y+u)||Vy(p,e.x+l,e.y+u):a||c?function(t,e,n,r,i){for(var o=!1,a=0;a<t.length;a++){var s=t[a],l=s.currentPoint,u=s.params,c=s.prePoint;switch(s.command){case"L":case"Z":o=Ry(c[0],c[1],l[0],l[1],e,n,r);break;case"C":o=Cy.pointDistance(c[0],c[1],u[1],u[2],u[3],u[4],u[5],u[6],n,r,i)<=e/2}if(o)break}return o}(r,(i||0)+(o||0),e.x+l,e.y+u,h):y}function qy(t,e){var t=t.parsedStyle,n=t.stroke,r=t.fill,i=t.lineWidth,o=t.increasedLineWidthForHitTesting,a=t.points,s=t.defX,s=void 0===s?0:s,l=t.defY,l=void 0===l?0:l,u=t.clipPathTargets,t=t.pointerEvents,u=!(null==u||!u.length),t=fc(t,r,n),r=t[0],n=!1;return n=(n=t[1]||u?Dy(a.points,(i||0)+(o||0),e.x+s,e.y+l,!0):n)||!r&&!u?n:zy(a.points,e.x+s,e.y+l)}function Xy(t,e){var t=t.parsedStyle,n=t.lineWidth,r=t.increasedLineWidthForHitTesting,i=t.points,o=t.defX,a=t.defY,s=t.clipPathTargets,l=t.pointerEvents,u=t.fill,t=t.stroke,s=!(null==s||!s.length);return!(!fc(l,u,t)[1]&&!s||!n)&&Dy(i.points,(n||0)+(r||0),e.x+(void 0===o?0:o),e.y+(void 0===a?0:a),!1)}function Zy(t,e,n){var r,i,o,a,s,l,u,c,h,d=t.parsedStyle,p=d.radius,f=d.fill,y=d.stroke,g=d.lineWidth,m=d.increasedLineWidthForHitTesting,v=d.width,b=d.height,x=d.clipPathTargets,d=d.pointerEvents,x=!(null==x||!x.length),d=fc(d,f,y),f=d[0],y=d[1],d=(g||0)+(m||0);return p&&p.some(function(t){return 0!==t})?(g=!1,(y||x)&&(u=m=0,a=v,l=b,p=p.map(function(t){return Xl(t,0,Math.min(Math.abs(v)/2,Math.abs(b)/2))}),h=d,r=e.x,i=e.y,c=p[0],o=p[1],s=p[2],p=p[3],g=Ry(m+c,u,m+a-o,u,h,r,i)||Ry(m+a,u+o,m+a,u+l-s,h,r,i)||Ry(m+a-s,u+l,m+p,u+l,h,r,i)||Ry(m,u+l-p,m,u+c,h,r,i)||jy(m+a-o,u+o,o,1.5*Math.PI,2*Math.PI,h,r,i)||jy(m+a-s,u+l-s,s,0,.5*Math.PI,h,r,i)||jy(m+p,u+l-p,p,.5*Math.PI,Math.PI,h,r,i)||jy(m+c,u+c,c,Math.PI,1.5*Math.PI,h,r,i)),g||!f&&!x?g:n(t,e)):(o=d/2,f&&y||x?Iy(0-o,0-o,v+o,b+o,e.x,e.y):f?Iy(0,0,v,b,e.x,e.y):!!y&&(s=a=0,l=v,p=b,m=d,u=e.x,c=e.y,Iy(a-(h=m/2),s-h,l,m,u,c)||Iy(a+l-h,s-h,m,p,u,c)||Iy(a+h,s+p-h,l,m,u,c)||Iy(a-h,s+h,m,p,u,c)))}var Ky=Ci(function(t){t({token:wy,useFactory:function(t){return function(t){return t===M.CIRCLE?Gy:t===M.ELLIPSE?Wy:t===M.RECT?Zy:t===M.LINE?Yy:t===M.POLYLINE?Xy:t===M.POLYGON?qy:t===M.PATH?Uy:t===M.IMAGE||t===M.TEXT?function(){return!0}:null}}}),t(Ey)}),$y=function(i){var t;function e(){for(var t,e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return(t=i.call.apply(i,[this].concat(n))||this).name="canvas-picker",t}t=i,(n=e).prototype=Object.create(t.prototype),yy(n.prototype.constructor=n,t);var n=e.prototype;return n.init=function(){this.container.load(Ky,!0)},n.destroy=function(){this.container.unload(Ky)},e}(mf);function Jy(){Jy=function(){return a};var a={},t=Object.prototype,l=t.hasOwnProperty,e="function"==typeof Symbol?Symbol:{},r=e.iterator||"@@iterator",n=e.asyncIterator||"@@asyncIterator",i=e.toStringTag||"@@toStringTag";function o(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{o({},"")}catch(t){o=function(t,e,n){return t[e]=n}}function s(t,e,n,r){var i,o,a,s,e=e&&e.prototype instanceof h?e:h,e=Object.create(e.prototype),r=new x(r||[]);return e._invoke=(i=t,o=n,a=r,s="suspendedStart",function(t,e){if("executing"===s)throw new Error("Generator is already running");if("completed"===s){if("throw"===t)throw e;return E()}for(a.method=t,a.arg=e;;){var n=a.delegate;if(n){n=function t(e,n){var r=e.iterator[n.method];if(void 0===r){if(n.delegate=null,"throw"===n.method){if(e.iterator.return&&(n.method="return",n.arg=void 0,t(e,n),"throw"===n.method))return c;n.method="throw",n.arg=new TypeError("The iterator does not provide a 'throw' method")}return c}r=u(r,e.iterator,n.arg);if("throw"===r.type)return n.method="throw",n.arg=r.arg,n.delegate=null,c;r=r.arg;return r?r.done?(n[e.resultName]=r.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=void 0),n.delegate=null,c):r:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,c)}(n,a);if(n){if(n===c)continue;return n}}if("next"===a.method)a.sent=a._sent=a.arg;else if("throw"===a.method){if("suspendedStart"===s)throw s="completed",a.arg;a.dispatchException(a.arg)}else"return"===a.method&&a.abrupt("return",a.arg);s="executing";n=u(i,o,a);if("normal"===n.type){if(s=a.done?"completed":"suspendedYield",n.arg===c)continue;return{value:n.arg,done:a.done}}"throw"===n.type&&(s="completed",a.method="throw",a.arg=n.arg)}}),e}function u(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}a.wrap=s;var c={};function h(){}function d(){}function p(){}var e={},f=(o(e,r,function(){return this}),Object.getPrototypeOf),f=f&&f(f(w([]))),y=(f&&f!==t&&l.call(f,r)&&(e=f),p.prototype=h.prototype=Object.create(e));function g(t){["next","throw","return"].forEach(function(e){o(t,e,function(t){return this._invoke(e,t)})})}function m(a,s){var e;this._invoke=function(n,r){function t(){return new s(function(t,e){!function e(t,n,r,i){var o,t=u(a[t],a,n);if("throw"!==t.type)return(n=(o=t.arg).value)&&"object"==typeof n&&l.call(n,"__await")?s.resolve(n.__await).then(function(t){e("next",t,r,i)},function(t){e("throw",t,r,i)}):s.resolve(n).then(function(t){o.value=t,r(o)},function(t){return e("throw",t,r,i)});i(t.arg)}(n,r,t,e)})}return e=e?e.then(t,t):t()}}function v(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function b(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function x(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(v,this),this.reset(!0)}function w(e){if(e){var n,t=e[r];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length))return n=-1,(t=function t(){for(;++n<e.length;)if(l.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t}).next=t}return{next:E}}function E(){return{value:void 0,done:!0}}return o(y,"constructor",d.prototype=p),o(p,"constructor",d),d.displayName=o(p,i,"GeneratorFunction"),a.isGeneratorFunction=function(t){t="function"==typeof t&&t.constructor;return!!t&&(t===d||"GeneratorFunction"===(t.displayName||t.name))},a.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,p):(t.__proto__=p,o(t,i,"GeneratorFunction")),t.prototype=Object.create(y),t},a.awrap=function(t){return{__await:t}},g(m.prototype),o(m.prototype,n,function(){return this}),a.AsyncIterator=m,a.async=function(t,e,n,r,i){void 0===i&&(i=Promise);var o=new m(s(t,e,n,r),i);return a.isGeneratorFunction(e)?o:o.next().then(function(t){return t.done?t.value:o.next()})},g(y),o(y,i,"Generator"),o(y,r,function(){return this}),o(y,"toString",function(){return"[object Generator]"}),a.keys=function(n){var t,r=[];for(t in n)r.push(t);return r.reverse(),function t(){for(;r.length;){var e=r.pop();if(e in n)return t.value=e,t.done=!1,t}return t.done=!0,t}},a.values=w,x.prototype={constructor:x,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(b),!t)for(var e in this)"t"===e.charAt(0)&&l.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(n){if(this.done)throw n;var r=this;function t(t,e){return o.type="throw",o.arg=n,r.next=t,e&&(r.method="next",r.arg=void 0),!!e}for(var e=this.tryEntries.length-1;0<=e;--e){var i=this.tryEntries[e],o=i.completion;if("root"===i.tryLoc)return t("end");if(i.tryLoc<=this.prev){var a=l.call(i,"catchLoc"),s=l.call(i,"finallyLoc");if(a&&s){if(this.prev<i.catchLoc)return t(i.catchLoc,!0);if(this.prev<i.finallyLoc)return t(i.finallyLoc)}else if(a){if(this.prev<i.catchLoc)return t(i.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return t(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;0<=n;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&l.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var i=r;break}}var o=(i=i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc?null:i)?i.completion:{};return o.type=t,o.arg=e,i?(this.method="next",this.next=i.finallyLoc,c):this.complete(o)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),c},finish:function(t){for(var e=this.tryEntries.length-1;0<=e;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),b(n),c}},catch:function(t){for(var e=this.tryEntries.length-1;0<=e;--e){var n,r,i=this.tryEntries[e];if(i.tryLoc===t)return"throw"===(n=i.completion).type&&(r=n.arg,b(i)),r}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:w(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=void 0),c}},a}function Qy(t,e,n,r,i,o,a){try{var s=t[o](a),l=s.value}catch(t){return void n(t)}s.done?e(l):Promise.resolve(l).then(r,i)}function t0(s){return function(){var t=this,a=arguments;return new Promise(function(e,n){var r=s.apply(t,a);function i(t){Qy(r,e,n,i,o,"next",t)}function o(t){Qy(r,e,n,i,o,"throw",t)}i(void 0)})}}function e0(t,e){return(e0=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}var n0,r0=function(){function t(){this.imageCache={},this.gradientCache={},this.patternCache={},this.canvasConfig=void 0}var e=t.prototype;return e.getImageSync=function(t,e){return this.imageCache[t]?e&&e():this.getOrCreateImage(t).then(function(){e&&e()}),this.imageCache[t]},e.getOrCreateImage=function(r){var i,o=this;return this.imageCache[r]?Promise.resolve(this.imageCache[r]):(i=this.canvasConfig.createImage,new Promise(function(t,e){var n;i?n=i(r):Bl&&(n=new window.Image),n&&(n.onload=function(){t(n)},n.onerror=function(t){e(t)},n.crossOrigin="Anonymous",n.src=r,o.imageCache[r]=n)}))},e.getOrCreatePatternSync=function(t,e,n){var r,i=this.generatePatternKey(t);return i&&this.patternCache[i]?this.patternCache[i]:(r=t.image,t=t.repetition,r=(n=ic(r)?this.getImageSync(r,n):r)&&e.createPattern(n,t),i&&r&&(this.patternCache[i]=r),r)},e.getOrCreateGradient=function(t,e){var r,n,i,o,a,s=this.generateGradientKey(t),l=t.type,u=t.steps,c=t.width,h=t.height,d=t.angle,p=t.cx,t=t.cy;return this.gradientCache[s]||(r=null,l===Ml.LinearGradient?(n=c,i=h,d=(d=d)*Math.PI/180,o=0+n/2,a=0+i/2,n=Math.abs(n*Math.cos(d))+Math.abs(i*Math.sin(d)),i={x1:o-Math.cos(d)*n/2,y1:a-Math.sin(d)*n/2,x2:o+Math.cos(d)*n/2,y2:a+Math.sin(d)*n/2},r=e.createLinearGradient(i.x1,i.y1,i.x2,i.y2)):l===Ml.RadialGradient&&(o={x:p*c,y:t*h,r:Math.sqrt(c*c+h*h)/2},r=e.createRadialGradient(a=o.x,d=o.y,0,a,d,o.r)),r&&(u.forEach(function(t){var e,n=t[0],t=t[1];null!=(e=r)&&e.addColorStop(n,t)}),this.gradientCache[s]=r)),this.gradientCache[s]},e.generateGradientKey=function(t){var e=t.type,n=t.width,r=t.height,i=t.steps;return"gradient-"+e+"-"+(t.angle||0)+"-"+(t.cx||0)+"-"+(t.cy||0)+"-"+n+"-"+r+"-"+i.map(function(t){return t.join("")}).join("-")},e.generatePatternKey=function(t){var e=t.image,t=t.repetition;if(ic(e))return"pattern-"+e+"-"+t},t}(),i0=(t([y(hc),e("design:type",Object)],r0.prototype,"canvasConfig",void 0),r0=t([f()],r0),(oe=function(){function t(){this.imagePool=void 0,this.renderingContext=void 0}return t.prototype.apply=function(r){function e(t){var e=t.target,t=e.nodeName,n=e.attributes;t===M.IMAGE&&ic(t=n.img)&&i.imagePool.getImageSync(t,function(){e.renderable.dirty=!0,r.dirtify()})}function n(t){var e=t.target,n=t.attrName,t=t.newValue;e.nodeName===M.IMAGE&&"img"===n&&ic(t)&&i.imagePool.getOrCreateImage(t).then(function(){e.renderable.dirty=!0,r.dirtify()})}var i=this;r.hooks.init.tapPromise(n0.tag,t0(Jy().mark(function t(){return Jy().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:i.renderingContext.root.addEventListener(E.MOUNTED,e),i.renderingContext.root.addEventListener(E.ATTR_MODIFIED,n);case 2:case"end":return t.stop()}},t)}))),r.hooks.destroy.tap(n0.tag,function(){i.renderingContext.root.removeEventListener(E.MOUNTED,e),i.renderingContext.root.removeEventListener(E.ATTR_MODIFIED,n)})},t}()).tag="LoadImage",n0=oe),o0=(t([y(r0),e("design:type",r0)],i0.prototype,"imagePool",void 0),t([y(Wp),e("design:type",Object)],i0.prototype,"renderingContext",void 0),i0=n0=t([f({contrib:Kp})],i0),Ci(function(t){t(r0),t(i0)})),a0=function(i){var t;function e(){for(var t,e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return(t=i.call.apply(i,[this].concat(n))||this).name="image-loader",t}t=i,(n=e).prototype=Object.create(t.prototype),e0(n.prototype.constructor=n,t);var n=e.prototype;return n.init=function(){this.container.load(o0,!0)},n.destroy=function(){this.container.unload(o0)},e}(mf);function s0(){s0=function(){return a};var a={},t=Object.prototype,l=t.hasOwnProperty,e="function"==typeof Symbol?Symbol:{},r=e.iterator||"@@iterator",n=e.asyncIterator||"@@asyncIterator",i=e.toStringTag||"@@toStringTag";function o(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{o({},"")}catch(t){o=function(t,e,n){return t[e]=n}}function s(t,e,n,r){var i,o,a,s,e=e&&e.prototype instanceof h?e:h,e=Object.create(e.prototype),r=new x(r||[]);return e._invoke=(i=t,o=n,a=r,s="suspendedStart",function(t,e){if("executing"===s)throw new Error("Generator is already running");if("completed"===s){if("throw"===t)throw e;return E()}for(a.method=t,a.arg=e;;){var n=a.delegate;if(n){n=function t(e,n){var r=e.iterator[n.method];if(void 0===r){if(n.delegate=null,"throw"===n.method){if(e.iterator.return&&(n.method="return",n.arg=void 0,t(e,n),"throw"===n.method))return c;n.method="throw",n.arg=new TypeError("The iterator does not provide a 'throw' method")}return c}r=u(r,e.iterator,n.arg);if("throw"===r.type)return n.method="throw",n.arg=r.arg,n.delegate=null,c;r=r.arg;return r?r.done?(n[e.resultName]=r.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=void 0),n.delegate=null,c):r:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,c)}(n,a);if(n){if(n===c)continue;return n}}if("next"===a.method)a.sent=a._sent=a.arg;else if("throw"===a.method){if("suspendedStart"===s)throw s="completed",a.arg;a.dispatchException(a.arg)}else"return"===a.method&&a.abrupt("return",a.arg);s="executing";n=u(i,o,a);if("normal"===n.type){if(s=a.done?"completed":"suspendedYield",n.arg===c)continue;return{value:n.arg,done:a.done}}"throw"===n.type&&(s="completed",a.method="throw",a.arg=n.arg)}}),e}function u(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}a.wrap=s;var c={};function h(){}function d(){}function p(){}var e={},f=(o(e,r,function(){return this}),Object.getPrototypeOf),f=f&&f(f(w([]))),y=(f&&f!==t&&l.call(f,r)&&(e=f),p.prototype=h.prototype=Object.create(e));function g(t){["next","throw","return"].forEach(function(e){o(t,e,function(t){return this._invoke(e,t)})})}function m(a,s){var e;this._invoke=function(n,r){function t(){return new s(function(t,e){!function e(t,n,r,i){var o,t=u(a[t],a,n);if("throw"!==t.type)return(n=(o=t.arg).value)&&"object"==typeof n&&l.call(n,"__await")?s.resolve(n.__await).then(function(t){e("next",t,r,i)},function(t){e("throw",t,r,i)}):s.resolve(n).then(function(t){o.value=t,r(o)},function(t){return e("throw",t,r,i)});i(t.arg)}(n,r,t,e)})}return e=e?e.then(t,t):t()}}function v(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function b(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function x(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(v,this),this.reset(!0)}function w(e){if(e){var n,t=e[r];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length))return n=-1,(t=function t(){for(;++n<e.length;)if(l.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t}).next=t}return{next:E}}function E(){return{value:void 0,done:!0}}return o(y,"constructor",d.prototype=p),o(p,"constructor",d),d.displayName=o(p,i,"GeneratorFunction"),a.isGeneratorFunction=function(t){t="function"==typeof t&&t.constructor;return!!t&&(t===d||"GeneratorFunction"===(t.displayName||t.name))},a.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,p):(t.__proto__=p,o(t,i,"GeneratorFunction")),t.prototype=Object.create(y),t},a.awrap=function(t){return{__await:t}},g(m.prototype),o(m.prototype,n,function(){return this}),a.AsyncIterator=m,a.async=function(t,e,n,r,i){void 0===i&&(i=Promise);var o=new m(s(t,e,n,r),i);return a.isGeneratorFunction(e)?o:o.next().then(function(t){return t.done?t.value:o.next()})},g(y),o(y,i,"Generator"),o(y,r,function(){return this}),o(y,"toString",function(){return"[object Generator]"}),a.keys=function(n){var t,r=[];for(t in n)r.push(t);return r.reverse(),function t(){for(;r.length;){var e=r.pop();if(e in n)return t.value=e,t.done=!1,t}return t.done=!0,t}},a.values=w,x.prototype={constructor:x,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(b),!t)for(var e in this)"t"===e.charAt(0)&&l.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(n){if(this.done)throw n;var r=this;function t(t,e){return o.type="throw",o.arg=n,r.next=t,e&&(r.method="next",r.arg=void 0),!!e}for(var e=this.tryEntries.length-1;0<=e;--e){var i=this.tryEntries[e],o=i.completion;if("root"===i.tryLoc)return t("end");if(i.tryLoc<=this.prev){var a=l.call(i,"catchLoc"),s=l.call(i,"finallyLoc");if(a&&s){if(this.prev<i.catchLoc)return t(i.catchLoc,!0);if(this.prev<i.finallyLoc)return t(i.finallyLoc)}else if(a){if(this.prev<i.catchLoc)return t(i.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return t(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;0<=n;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&l.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var i=r;break}}var o=(i=i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc?null:i)?i.completion:{};return o.type=t,o.arg=e,i?(this.method="next",this.next=i.finallyLoc,c):this.complete(o)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),c},finish:function(t){for(var e=this.tryEntries.length-1;0<=e;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),b(n),c}},catch:function(t){for(var e=this.tryEntries.length-1;0<=e;--e){var n,r,i=this.tryEntries[e];if(i.tryLoc===t)return"throw"===(n=i.completion).type&&(r=n.arg,b(i)),r}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:w(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=void 0),c}},a}function l0(t,e,n,r,i,o,a){try{var s=t[o](a),l=s.value}catch(t){return void n(t)}s.done?e(l):Promise.resolve(l).then(r,i)}function u0(s){return function(){var t=this,a=arguments;return new Promise(function(e,n){var r=s.apply(t,a);function i(t){l0(r,e,n,i,o,"next",t)}function o(t){l0(r,e,n,i,o,"throw",t)}i(void 0)})}}function c0(){return(c0=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n,r=arguments[e];for(n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t}).apply(this,arguments)}function h0(t,e){t.prototype=Object.create(e.prototype),d0(t.prototype.constructor=t,e)}function d0(t,e){return(d0=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}var p0="undefined"!=typeof Float32Array?Float32Array:Array;function f0(){var t=new p0(16);return p0!=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}function y0(t,e){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]}function g0(t,e,n){var r=e[0],i=e[1],o=e[2],a=e[3],s=e[4],l=e[5],u=e[6],c=e[7],h=e[8],d=e[9],p=e[10],f=e[11],y=e[12],g=e[13],m=e[14],e=e[15],v=n[0],b=n[1],x=n[2],w=n[3];t[0]=v*r+b*s+x*h+w*y,t[1]=v*i+b*l+x*d+w*g,t[2]=v*o+b*u+x*p+w*m,t[3]=v*a+b*c+x*f+w*e,v=n[4],b=n[5],x=n[6],w=n[7],t[4]=v*r+b*s+x*h+w*y,t[5]=v*i+b*l+x*d+w*g,t[6]=v*o+b*u+x*p+w*m,t[7]=v*a+b*c+x*f+w*e,v=n[8],b=n[9],x=n[10],w=n[11],t[8]=v*r+b*s+x*h+w*y,t[9]=v*i+b*l+x*d+w*g,t[10]=v*o+b*u+x*p+w*m,t[11]=v*a+b*c+x*f+w*e,v=n[12],b=n[13],x=n[14],w=n[15],t[12]=v*r+b*s+x*h+w*y,t[13]=v*i+b*l+x*d+w*g,t[14]=v*o+b*u+x*p+w*m,t[15]=v*a+b*c+x*f+w*e}function m0(t,e,n){var r,i,o,a,s,l,u,c,h,d,p,f,y=n[0],g=n[1],n=n[2];e===t?(t[12]=e[0]*y+e[4]*g+e[8]*n+e[12],t[13]=e[1]*y+e[5]*g+e[9]*n+e[13],t[14]=e[2]*y+e[6]*g+e[10]*n+e[14],t[15]=e[3]*y+e[7]*g+e[11]*n+e[15]):(r=e[0],i=e[1],o=e[2],a=e[3],s=e[4],l=e[5],u=e[6],c=e[7],h=e[8],d=e[9],p=e[10],f=e[11],t[0]=r,t[1]=i,t[2]=o,t[3]=a,t[4]=s,t[5]=l,t[6]=u,t[7]=c,t[8]=h,t[9]=d,t[10]=p,t[11]=f,t[12]=r*y+s*g+h*n+e[12],t[13]=i*y+l*g+d*n+e[13],t[14]=o*y+u*g+p*n+e[14],t[15]=a*y+c*g+f*n+e[15])}function v0(){var t=new p0(3);return p0!=Float32Array&&(t[0]=0,t[1]=0,t[2]=0),t}function b0(t,e,n){var r=new p0(3);return r[0]=t,r[1]=e,r[2]=n,r}function x0(t,e,n){var r=e[0],i=e[1],e=e[2],o=n[3]*r+n[7]*i+n[11]*e+n[15];return t[0]=(n[0]*r+n[4]*i+n[8]*e+n[12])/(o=o||1),t[1]=(n[1]*r+n[5]*i+n[9]*e+n[13])/o,t[2]=(n[2]*r+n[6]*i+n[10]*e+n[14])/o,t}Math.hypot||(Math.hypot=function(){for(var t=0,e=arguments.length;e--;)t+=arguments[e]*arguments[e];return Math.sqrt(t)}),v0();var w0=p.defineToken(""),E0=p.defineToken("",{multiple:!1}),_0=p.defineToken("",{multiple:!1}),k0=p.defineToken("",{multiple:!1}),T0=p.defineToken("",{multiple:!1}),M0=p.defineToken("",{multiple:!1}),S0=p.defineToken("",{multiple:!1}),O0=p.defineToken("",{multiple:!1}),P0=p.defineToken("",{multiple:!1}),A0=p.defineToken("",{multiple:!1}),a=function(){function t(){this.imagePool=void 0}var e=t.prototype;return e.render=function(t,e,n,r){var i=e.fill,o=e.opacity,a=e.fillOpacity,s=e.stroke,l=e.strokeOpacity,u=e.lineWidth,c=e.lineCap,h=e.lineJoin,d=e.shadowType,p=e.shadowColor,f=e.shadowBlur,y=e.filter,e=e.miterLimit,g=!S(i)&&!i.isNone,m=!S(s)&&!s.isNone&&0<u,v=0===i.alpha,y=!(!y||!y.length),p=!S(p)&&0<f,f=n.nodeName,d="inner"===d,f=m&&p&&(f===M.PATH||f===M.LINE||f===M.POLYLINE||v||d);g&&(t.globalAlpha=o*a,f||N0(n,t,p),this.fill(t,n,i,r),f||this.clearShadowAndFilter(t,y,p)),m&&(t.globalAlpha=o*l,t.lineWidth=u,S(e)||(t.miterLimit=e),S(c)||(t.lineCap=c),S(h)||(t.lineJoin=h),f&&(d&&(t.globalCompositeOperation="source-atop"),N0(n,t,!0),d&&(this.stroke(t,n,s,r),t.globalCompositeOperation="source-over",this.clearShadowAndFilter(t,y,!0))),this.stroke(t,n,s,r))},e.clearShadowAndFilter=function(t,e,n){n&&(t.shadowColor="transparent",t.shadowBlur=0),e&&!S(n=t.filter)&&-1<n.indexOf("drop-shadow")&&(t.filter=n.replace(/drop-shadow\([^)]*\)/,"").trim()||"none")},e.fill=function(e,n,t,r){var i=this;Array.isArray(t)?t.forEach(function(t){e.fillStyle=i.getColor(t,n,e),e.fill()}):(fh(t)&&(e.fillStyle=this.getPattern(t,n,e,r)),e.fill())},e.stroke=function(e,n,t,r){var i=this;Array.isArray(t)?t.forEach(function(t){e.strokeStyle=i.getColor(t,n,e),e.stroke()}):(fh(t)&&(e.strokeStyle=this.getPattern(t,n,e,r)),e.stroke())},e.getPattern=function(t,e,n,r){return this.imagePool.getOrCreatePatternSync(t,n,function(){e.renderable.dirty=!0,r.dirtify()})},e.getColor=function(t,e,n){var r;return t.type!==Ml.LinearGradient&&t.type!==Ml.RadialGradient||(r=(e=e.getGeometryBounds())&&2*e.halfExtents[0]||1,e=e&&2*e.halfExtents[1]||1,r=this.imagePool.getOrCreateGradient(c0({type:t.type},t.value,{width:r,height:e}),n)),r},t}();function N0(t,e,n){var r=t.parsedStyle,i=r.filter,o=r.shadowColor,a=r.shadowBlur,s=r.shadowOffsetX,r=r.shadowOffsetY;i&&i.length&&(e.filter=t.style.filter),n&&(e.shadowColor=o.toString(),e.shadowBlur=a||0,e.shadowOffsetX=s||0,e.shadowOffsetY=r||0)}t([y(r0),e("design:type",r0)],a.prototype,"imagePool",void 0);var C0,L0,a=t([f()],a),I0=function(){function t(){this.imagePool=void 0}return t.prototype.render=function(t,e,n){var r=e.width,i=e.height,o=e.img,a=e.shadowColor,e=e.shadowBlur,o=ic(o)?this.imagePool.getImageSync(o):(r=r||o.width,i=i||o.height,o);if(o){N0(n,t,!S(a)&&0<e);try{t.drawImage(o,0,0,r,i)}catch(t){}}},t}(),j0=(t([y(r0),e("design:type",r0)],I0.prototype,"imagePool",void 0),I0=t([f({token:A0})],I0),function(){function t(){}var e=t.prototype;return e.render=function(t,e,n){var r=e.lineWidth,i=e.textAlign,o=e.textBaseline,a=e.lineJoin,s=e.miterLimit,l=e.letterSpacing,u=e.stroke,c=e.fill,h=e.fillOpacity,d=e.strokeOpacity,p=e.opacity,f=e.metrics,y=e.dx,g=e.dy,m=e.shadowColor,e=e.shadowBlur,v=f.font,b=f.lines,x=f.height,w=f.lineHeight,E=f.lineMetrics,_=(t.font=v,t.lineWidth=r,t.textAlign=i,t.textBaseline=o,t.lineJoin=a,S(s)||(t.miterLimit=s),0),k=("middle"===o?_=-x/2-w/2:"bottom"===o||"alphabetic"===o||"ideographic"===o?_=-x:"top"!==o&&"hanging"!==o||(_=-w),y||0);_+=g||0,N0(n,t,!S(m)&&0<e);for(var T=0;T<b.length;T++){var M=r/2+k;_+=w,S(u)||u.isNone||!r||this.drawLetterSpacing(t,b[T],E[T],i,M,_,l,h,d,p,!0),S(c)||this.drawLetterSpacing(t,b[T],E[T],i,M,_,l,h,d,p)}},e.drawLetterSpacing=function(t,e,n,r,i,o,a,s,l,u,c){if(void 0===c&&(c=!1),0===a)c?this.strokeText(t,e,i,o,l):this.fillText(t,e,i,o,s,u);else{for(var h=t.textAlign,d=(t.textAlign="left",i),p=("center"===r?d=i-n.width/2:"right"!==r&&"end"!==r||(d=i-n.width),Array.from(e)),f=t.measureText(e).width,y=0;y<p.length;++y){var g=p[y];c?this.strokeText(t,g,d,o,l):this.fillText(t,g,d,o,s,u),d+=f-(g=t.measureText(e.substring(y+1)).width)+a,f=g}t.textAlign=h}},e.fillText=function(t,e,n,r,i,o){var a,s=!S(i)&&1!==i;s&&(a=t.globalAlpha,t.globalAlpha=i*o),t.fillText(e,n,r),s&&(t.globalAlpha=a)},e.strokeText=function(t,e,n,r,i){var o,a=!S(i)&&1!==i;a&&(o=t.globalAlpha,t.globalAlpha=i),t.strokeText(e,n,r),a&&(t.globalAlpha=o)},t}()),j0=t([f({token:P0})],j0),R0=function(t){function e(){return t.apply(this,arguments)||this}return h0(e,t),e}(a),R0=t([f({token:k0})],R0),D0=function(t){function e(){return t.apply(this,arguments)||this}return h0(e,t),e}(a),D0=t([f({token:E0})],D0),B0=function(t){function e(){return t.apply(this,arguments)||this}return h0(e,t),e}(a),B0=t([f({token:_0})],B0),F0=function(t){function e(){return t.apply(this,arguments)||this}return h0(e,t),e}(a),F0=t([f({token:T0})],F0),z0=function(t){function e(){return t.apply(this,arguments)||this}return h0(e,t),e}(a),z0=t([f({token:M0})],z0),V0=function(t){function e(){return t.apply(this,arguments)||this}return h0(e,t),e}(a),V0=t([f({token:S0})],V0),G0=function(t){function e(){return t.apply(this,arguments)||this}return h0(e,t),e}(a),G0=t([f({token:O0})],G0),H0=p.defineToken(""),W0=((d=function(){function t(){this.canvasConfig=void 0,this.camera=void 0,this.contextService=void 0,this.renderingContext=void 0,this.pathGeneratorFactory=void 0,this.pathGeneratorFactoryCache={},this.styleRendererFactory=void 0,this.styleRendererFactoryCache={},this.displayObjectPool=void 0,this.canvasRendererPluginOptions=void 0,this.rBush=void 0,this.removedRBushNodeAABBs=[],this.renderQueue=[],this.restoreStack=[],this.clearFullScreen=!1,this.vpMatrix=f0(),this.dprMatrix=f0(),this.tmpMat4=f0(),this.vec3a=v0(),this.vec3b=v0(),this.vec3c=v0(),this.vec3d=v0()}var e=t.prototype;return e.apply=function(u){function s(t){(t=t.target.rBushNode).aabb&&h.removedRBushNodeAABBs.push(t.aabb)}function l(t){(t=t.target.rBushNode).aabb&&h.removedRBushNodeAABBs.push(t.aabb)}function c(t){t.isVisible()&&!t.isCulled()&&(h.renderDisplayObject(t,u),h.saveDirtyAABB(t)),(t.sortable.sorted||t.childNodes).forEach(function(t){c(t)})}var h=this,d=this.renderingContext.root.ownerDocument.defaultView;u.hooks.init.tapPromise(C0.tag,u0(s0().mark(function t(){var r,i,o,a;return s0().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:h.renderingContext.root.addEventListener(E.UNMOUNTED,s),h.renderingContext.root.addEventListener(E.CULLED,l),r=h.contextService.getDPR(),o=h.canvasConfig,i=o.width,o=o.height,a=h.contextService.getContext(),h.clearRect(a,0,0,i*r,o*r),e=h.dprMatrix,n=b0(r,r,1),e[0]=n[0],e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=n[1],e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=n[2],e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1;case 7:case"end":return t.stop()}var e,n},t)}))),u.hooks.destroy.tap(C0.tag,function(){h.renderingContext.root.removeEventListener(E.UNMOUNTED,s),h.renderingContext.root.removeEventListener(E.CULLED,l)}),u.hooks.beginFrame.tap(C0.tag,function(){var t=h.contextService.getContext(),e=h.contextService.getDPR(),n=h.canvasConfig,r=n.width,n=n.height,i=h.canvasRendererPluginOptions,o=i.dirtyObjectNumThreshold,i=i.dirtyObjectRatioThreshold,a=u.getStats(),s=a.total,a=a.rendered,s=a/s;h.clearFullScreen=u.disableDirtyRectangleRendering()||o<a&&i<s,t&&(t.resetTransform(),h.clearFullScreen&&h.clearRect(t,0,0,r*e,n*e))});u.hooks.endFrame.tap(C0.tag,function(){var t=h.contextService.getContext();if(g0(h.vpMatrix,h.dprMatrix,h.camera.getOrthoMatrix()),h.clearFullScreen)c(h.renderingContext.root);else{var e=h.safeMergeAABB.apply(h,[h.mergeDirtyAABBs(h.renderQueue)].concat(h.removedRBushNodeAABBs.map(function(t){var e=t.minX,n=t.minY,r=t.maxX,t=t.maxY,i=new Fc;return i.setMinMax(b0(e,n,0),b0(r,t,0)),i})));if(h.removedRBushNodeAABBs=[],Fc.isEmpty(e))return void(h.renderQueue=[]);var n=h.convertAABB2Rect(e),r=n.x,i=n.y,o=n.width,n=n.height,a=x0(h.vec3a,b0(r,i,0),h.vpMatrix),s=x0(h.vec3b,b0(r+o,i,0),h.vpMatrix),l=x0(h.vec3c,b0(r,i+n,0),h.vpMatrix),r=x0(h.vec3d,b0(r+o,i+n,0),h.vpMatrix),o=Math.min(a[0],s[0],r[0],l[0]),i=Math.min(a[1],s[1],r[1],l[1]),n=Math.max(a[0],s[0],r[0],l[0]),a=Math.max(a[1],s[1],r[1],l[1]),s=Math.floor(o),r=Math.floor(i),l=Math.ceil(n-o),n=Math.ceil(a-i);t.save(),h.clearRect(t,s,r,l,n),t.beginPath(),t.rect(s,r,l,n),t.clip(),t.setTransform(h.vpMatrix[0],h.vpMatrix[1],h.vpMatrix[4],h.vpMatrix[5],h.vpMatrix[12],h.vpMatrix[13]),h.canvasConfig.renderer.getConfig().enableDirtyRectangleRenderingDebug&&d.dispatchEvent(new jd(Ef.DIRTY_RECTANGLE,{dirtyRect:{x:s,y:r,width:l,height:n}})),h.searchDirtyObjects(e).sort(function(t,e){return t.sortable.renderOrder-e.sortable.renderOrder}).forEach(function(t){t&&t.isVisible()&&!t.isCulled()&&h.renderDisplayObject(t,u)}),t.restore(),h.renderQueue.forEach(function(t){h.saveDirtyAABB(t)}),h.renderQueue=[]}h.restoreStack.forEach(function(){t.restore()}),h.restoreStack=[]}),u.hooks.render.tap(C0.tag,function(t){h.clearFullScreen||h.renderQueue.push(t)})},e.clearRect=function(t,e,n,r,i){t.clearRect(e,n,r,i);var o=this.canvasConfig.background;o&&(t.fillStyle=o,t.fillRect(e,n,r,i))},e.renderDisplayObject=function(t,e){var n,r=this.contextService.getContext(),i=t.nodeName,o=this.restoreStack[this.restoreStack.length-1],o=(!o||t.compareDocumentPosition(o)&Node.DOCUMENT_POSITION_CONTAINS||(r.restore(),this.restoreStack.pop()),void 0===this.styleRendererFactoryCache[i]&&(this.styleRendererFactoryCache[i]=this.styleRendererFactory(i)),this.styleRendererFactoryCache[i]),i=(void 0===this.pathGeneratorFactoryCache[i]&&(this.pathGeneratorFactoryCache[i]=this.pathGeneratorFactory(i)),this.pathGeneratorFactoryCache[i]),a=t.parsedStyle.clipPath;a&&(this.applyWorldTransform(r,a,t.getWorldTransform()),void 0===this.pathGeneratorFactoryCache[a.nodeName]&&(this.pathGeneratorFactoryCache[a.nodeName]=this.pathGeneratorFactory(a.nodeName)),(n=this.pathGeneratorFactoryCache[a.nodeName])&&(r.save(),this.restoreStack.push(t),r.beginPath(),n(r,a.parsedStyle),r.closePath(),r.clip())),o&&(this.applyWorldTransform(r,t),r.save(),this.applyAttributesToContext(r,t)),i&&(r.beginPath(),i(r,t.parsedStyle),t.nodeName!==M.LINE&&t.nodeName!==M.PATH&&t.nodeName!==M.POLYLINE&&r.closePath()),o&&(o.render(r,t.parsedStyle,t,e),r.restore()),t.renderable.dirty=!1},e.convertAABB2Rect=function(t){var e=t.getMin(),t=t.getMax(),n=Math.floor(e[0]),e=Math.floor(e[1]);return{x:n,y:e,width:Math.ceil(t[0])-n,height:Math.ceil(t[1])-e}},e.mergeDirtyAABBs=function(t){var n=new Fc;return t.forEach(function(t){var e=t.getRenderBounds(),e=(n.add(e),t.renderable.dirtyRenderBounds);e&&n.add(e)}),n},e.searchDirtyObjects=function(t){var e=this,n=t.getMin(),r=n[0],n=n[1],t=t.getMax(),i=t[0],t=t[1];return this.rBush.search({minX:r,minY:n,maxX:i,maxY:t}).map(function(t){t=t.id;return e.displayObjectPool.getByEntity(t)})},e.saveDirtyAABB=function(t){var e=t.renderable,t=(e.dirtyRenderBounds||(e.dirtyRenderBounds=new Fc),t.getRenderBounds());t&&e.dirtyRenderBounds.update(t.center,t.halfExtents)},e.applyAttributesToContext=function(t,e){var n=e.parsedStyle,r=n.stroke,i=n.fill,o=n.opacity,a=n.lineDash,n=n.lineDashOffset;a&&t.setLineDash(a),S(n)||(t.lineDashOffset=n),S(o)||(t.globalAlpha*=o),S(r)||Array.isArray(r)||r.isNone||(t.strokeStyle=e.attributes.stroke),S(i)||Array.isArray(i)||i.isNone||(t.fillStyle=e.attributes.fill)},e.applyWorldTransform=function(t,e,n){var r=0,i=0,o=(e.parsedStyle||{}).anchor,a=o&&o[0]||0,o=o&&o[1]||0;0===a&&0===o||(r=-a*((a=e.getGeometryBounds())&&2*a.halfExtents[0]||0),i=-o*(a&&2*a.halfExtents[1]||0)),n?(y0(this.tmpMat4,e.getLocalTransform()),this.vec3a[0]=r,this.vec3a[1]=i,this.vec3a[2]=0,m0(this.tmpMat4,this.tmpMat4,this.vec3a),g0(this.tmpMat4,n,this.tmpMat4)):(y0(this.tmpMat4,e.getWorldTransform()),this.vec3a[0]=r,this.vec3a[1]=i,this.vec3a[2]=0,m0(this.tmpMat4,this.tmpMat4,this.vec3a)),g0(this.tmpMat4,this.vpMatrix,this.tmpMat4),t.setTransform(this.tmpMat4[0],this.tmpMat4[1],this.tmpMat4[4],this.tmpMat4[5],this.tmpMat4[12],this.tmpMat4[13])},e.safeMergeAABB=function(){for(var e=new Fc,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return n.forEach(function(t){e.add(t)}),e},t}()).tag="CanvasRenderer",C0=d),Y0=(t([y(hc),e("design:type",Object)],W0.prototype,"canvasConfig",void 0),t([y(Yp),e("design:type",Zp)],W0.prototype,"camera",void 0),t([y(Hp),e("design:type",Object)],W0.prototype,"contextService",void 0),t([y(Wp),e("design:type",Object)],W0.prototype,"renderingContext",void 0),t([y(ny),e("design:type",Function)],W0.prototype,"pathGeneratorFactory",void 0),t([y(w0),e("design:type",Function)],W0.prototype,"styleRendererFactory",void 0),t([y(Gf),e("design:type",Gf)],W0.prototype,"displayObjectPool",void 0),t([y(H0),e("design:type",Object)],W0.prototype,"canvasRendererPluginOptions",void 0),t([y(Bd),e("design:type",Gi)],W0.prototype,"rBush",void 0),W0=C0=t([f({contrib:Kp})],W0),Ci(function(t){t(D0),t(B0),t(R0),t(I0),t(j0),t(F0),t(z0),t(V0),t(G0),(e={})[M.CIRCLE]=E0,e[M.ELLIPSE]=_0,e[M.RECT]=k0,e[M.IMAGE]=A0,e[M.TEXT]=P0,e[M.LINE]=T0,e[M.POLYLINE]=M0,e[M.POLYGON]=S0,e[M.PATH]=O0;var e,n=e;t({token:w0,useFactory:function(e){return function(t){t=n[t];return t&&e.container.isBound(t)?e.container.get(t):null}}}),t(W0)})),U0=function(n){function t(t){var e;return void 0===t&&(t={}),(e=n.call(this)||this).options=void 0,e.name="canvas-renderer",e.options=t,e}h0(t,n);var e=t.prototype;return e.init=function(){this.container.register(H0,{useValue:c0({dirtyObjectNumThreshold:500,dirtyObjectRatioThreshold:.8},this.options)}),this.container.load(Y0,!0)},e.destroy=function(){this.container.unload(Y0),this.container.remove(H0)},t}(mf);function q0(){q0=function(){return a};var a={},t=Object.prototype,l=t.hasOwnProperty,e="function"==typeof Symbol?Symbol:{},r=e.iterator||"@@iterator",n=e.asyncIterator||"@@asyncIterator",i=e.toStringTag||"@@toStringTag";function o(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{o({},"")}catch(t){o=function(t,e,n){return t[e]=n}}function s(t,e,n,r){var i,o,a,s,e=e&&e.prototype instanceof h?e:h,e=Object.create(e.prototype),r=new x(r||[]);return e._invoke=(i=t,o=n,a=r,s="suspendedStart",function(t,e){if("executing"===s)throw new Error("Generator is already running");if("completed"===s){if("throw"===t)throw e;return E()}for(a.method=t,a.arg=e;;){var n=a.delegate;if(n){n=function t(e,n){var r=e.iterator[n.method];if(void 0===r){if(n.delegate=null,"throw"===n.method){if(e.iterator.return&&(n.method="return",n.arg=void 0,t(e,n),"throw"===n.method))return c;n.method="throw",n.arg=new TypeError("The iterator does not provide a 'throw' method")}return c}r=u(r,e.iterator,n.arg);if("throw"===r.type)return n.method="throw",n.arg=r.arg,n.delegate=null,c;r=r.arg;return r?r.done?(n[e.resultName]=r.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=void 0),n.delegate=null,c):r:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,c)}(n,a);if(n){if(n===c)continue;return n}}if("next"===a.method)a.sent=a._sent=a.arg;else if("throw"===a.method){if("suspendedStart"===s)throw s="completed",a.arg;a.dispatchException(a.arg)}else"return"===a.method&&a.abrupt("return",a.arg);s="executing";n=u(i,o,a);if("normal"===n.type){if(s=a.done?"completed":"suspendedYield",n.arg===c)continue;return{value:n.arg,done:a.done}}"throw"===n.type&&(s="completed",a.method="throw",a.arg=n.arg)}}),e}function u(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}a.wrap=s;var c={};function h(){}function d(){}function p(){}var e={},f=(o(e,r,function(){return this}),Object.getPrototypeOf),f=f&&f(f(w([]))),y=(f&&f!==t&&l.call(f,r)&&(e=f),p.prototype=h.prototype=Object.create(e));function g(t){["next","throw","return"].forEach(function(e){o(t,e,function(t){return this._invoke(e,t)})})}function m(a,s){var e;this._invoke=function(n,r){function t(){return new s(function(t,e){!function e(t,n,r,i){var o,t=u(a[t],a,n);if("throw"!==t.type)return(n=(o=t.arg).value)&&"object"==typeof n&&l.call(n,"__await")?s.resolve(n.__await).then(function(t){e("next",t,r,i)},function(t){e("throw",t,r,i)}):s.resolve(n).then(function(t){o.value=t,r(o)},function(t){return e("throw",t,r,i)});i(t.arg)}(n,r,t,e)})}return e=e?e.then(t,t):t()}}function v(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function b(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function x(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(v,this),this.reset(!0)}function w(e){if(e){var n,t=e[r];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length))return n=-1,(t=function t(){for(;++n<e.length;)if(l.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t}).next=t}return{next:E}}function E(){return{value:void 0,done:!0}}return o(y,"constructor",d.prototype=p),o(p,"constructor",d),d.displayName=o(p,i,"GeneratorFunction"),a.isGeneratorFunction=function(t){t="function"==typeof t&&t.constructor;return!!t&&(t===d||"GeneratorFunction"===(t.displayName||t.name))},a.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,p):(t.__proto__=p,o(t,i,"GeneratorFunction")),t.prototype=Object.create(y),t},a.awrap=function(t){return{__await:t}},g(m.prototype),o(m.prototype,n,function(){return this}),a.AsyncIterator=m,a.async=function(t,e,n,r,i){void 0===i&&(i=Promise);var o=new m(s(t,e,n,r),i);return a.isGeneratorFunction(e)?o:o.next().then(function(t){return t.done?t.value:o.next()})},g(y),o(y,i,"Generator"),o(y,r,function(){return this}),o(y,"toString",function(){return"[object Generator]"}),a.keys=function(n){var t,r=[];for(t in n)r.push(t);return r.reverse(),function t(){for(;r.length;){var e=r.pop();if(e in n)return t.value=e,t.done=!1,t}return t.done=!0,t}},a.values=w,x.prototype={constructor:x,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(b),!t)for(var e in this)"t"===e.charAt(0)&&l.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(n){if(this.done)throw n;var r=this;function t(t,e){return o.type="throw",o.arg=n,r.next=t,e&&(r.method="next",r.arg=void 0),!!e}for(var e=this.tryEntries.length-1;0<=e;--e){var i=this.tryEntries[e],o=i.completion;if("root"===i.tryLoc)return t("end");if(i.tryLoc<=this.prev){var a=l.call(i,"catchLoc"),s=l.call(i,"finallyLoc");if(a&&s){if(this.prev<i.catchLoc)return t(i.catchLoc,!0);if(this.prev<i.finallyLoc)return t(i.finallyLoc)}else if(a){if(this.prev<i.catchLoc)return t(i.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return t(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;0<=n;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&l.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var i=r;break}}var o=(i=i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc?null:i)?i.completion:{};return o.type=t,o.arg=e,i?(this.method="next",this.next=i.finallyLoc,c):this.complete(o)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),c},finish:function(t){for(var e=this.tryEntries.length-1;0<=e;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),b(n),c}},catch:function(t){for(var e=this.tryEntries.length-1;0<=e;--e){var n,r,i=this.tryEntries[e];if(i.tryLoc===t)return"throw"===(n=i.completion).type&&(r=n.arg,b(i)),r}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:w(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=void 0),c}},a}function X0(t,e,n,r,i,o,a){try{var s=t[o](a),l=s.value}catch(t){return void n(t)}s.done?e(l):Promise.resolve(l).then(r,i)}function Z0(s){return function(){var t=this,a=arguments;return new Promise(function(e,n){var r=s.apply(t,a);function i(t){X0(r,e,n,i,o,"next",t)}function o(t){X0(r,e,n,i,o,"throw",t)}i(void 0)})}}function K0(t,e){return(K0=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}(u=function(){function t(){this.contextService=void 0,this.renderingContext=void 0}return t.prototype.apply=function(e){function i(t){e.hooks.pointerWheel.call(t)}var o=this,a=this.renderingContext.root.ownerDocument.defaultView,s=function(t){e.hooks.pointerMove.call(t)},l=function(t){e.hooks.pointerUp.call(t)},u=function(t){e.hooks.pointerDown.call(t)},c=function(t){e.hooks.pointerOver.call(t)},h=function(t){e.hooks.pointerOut.call(t)},d=function(t){e.hooks.pointerCancel.call(t)};e.hooks.init.tapPromise(L0.tag,Z0(q0().mark(function t(){var r;return q0().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:r=o.contextService.getDomElement(),globalThis.navigator.msPointerEnabled?(r.style.msContentZooming="none",r.style.msTouchAction="none"):a.supportsPointerEvents&&(r.style.touchAction="none"),a.supportsPointerEvents?(n=r,globalThis.document.addEventListener("pointermove",s,!0),n.addEventListener("pointerdown",u,!0),n.addEventListener("pointerleave",h,!0),n.addEventListener("pointerover",c,!0),globalThis.addEventListener("pointerup",l,!0)):(n=r,globalThis.document.addEventListener("mousemove",s,!0),n.addEventListener("mousedown",u,!0),n.addEventListener("mouseout",h,!0),n.addEventListener("mouseover",c,!0),globalThis.addEventListener("mouseup",l,!0)),a.supportsTouchEvents&&((e=r).addEventListener("touchstart",u,!0),e.addEventListener("touchend",l,!0),e.addEventListener("touchmove",s,!0),e.addEventListener("touchcancel",d,!0)),r.addEventListener("wheel",i,{passive:!0,capture:!0});case 5:case"end":return t.stop()}var e,n},t)}))),e.hooks.destroy.tap(L0.tag,function(){var t,e,n=o.contextService.getDomElement();globalThis.navigator.msPointerEnabled?(n.style.msContentZooming="",n.style.msTouchAction=""):a.supportsPointerEvents&&(n.style.touchAction=""),a.supportsPointerEvents?(t=n,globalThis.document.removeEventListener("pointermove",s,!0),t.removeEventListener("pointerdown",u,!0),t.removeEventListener("pointerleave",h,!0),t.removeEventListener("pointerover",c,!0),globalThis.removeEventListener("pointerup",l,!0)):(t=n,globalThis.document.removeEventListener("mousemove",s,!0),t.removeEventListener("mousedown",u,!0),t.removeEventListener("mouseout",h,!0),t.removeEventListener("mouseover",c,!0),globalThis.removeEventListener("mouseup",l,!0)),a.supportsTouchEvents&&((e=n).removeEventListener("touchstart",u,!0),e.removeEventListener("touchend",l,!0),e.removeEventListener("touchmove",s,!0),e.removeEventListener("touchcancel",d,!0)),n.removeEventListener("wheel",i,!0)})},t}()).tag="DOMInteraction";var $0,J0=L0=u,Q0=(t([y(Hp),e("design:type",Object)],J0.prototype,"contextService",void 0),t([y(Wp),e("design:type",Object)],J0.prototype,"renderingContext",void 0),J0=L0=t([f({contrib:Kp})],J0),Ci(function(t){t(J0)})),tg=function(i){var t;function e(){for(var t,e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return(t=i.call.apply(i,[this].concat(n))||this).name="dom-interaction",t}t=i,(n=e).prototype=Object.create(t.prototype),K0(n.prototype.constructor=n,t);var n=e.prototype;return n.init=function(){this.container.load(Q0,!0)},n.destroy=function(){this.container.unload(Q0)},e}(mf);function eg(){eg=function(){return a};var a={},t=Object.prototype,l=t.hasOwnProperty,e="function"==typeof Symbol?Symbol:{},r=e.iterator||"@@iterator",n=e.asyncIterator||"@@asyncIterator",i=e.toStringTag||"@@toStringTag";function o(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{o({},"")}catch(t){o=function(t,e,n){return t[e]=n}}function s(t,e,n,r){var i,o,a,s,e=e&&e.prototype instanceof h?e:h,e=Object.create(e.prototype),r=new x(r||[]);return e._invoke=(i=t,o=n,a=r,s="suspendedStart",function(t,e){if("executing"===s)throw new Error("Generator is already running");if("completed"===s){if("throw"===t)throw e;return E()}for(a.method=t,a.arg=e;;){var n=a.delegate;if(n){n=function t(e,n){var r=e.iterator[n.method];if(void 0===r){if(n.delegate=null,"throw"===n.method){if(e.iterator.return&&(n.method="return",n.arg=void 0,t(e,n),"throw"===n.method))return c;n.method="throw",n.arg=new TypeError("The iterator does not provide a 'throw' method")}return c}r=u(r,e.iterator,n.arg);if("throw"===r.type)return n.method="throw",n.arg=r.arg,n.delegate=null,c;r=r.arg;return r?r.done?(n[e.resultName]=r.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=void 0),n.delegate=null,c):r:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,c)}(n,a);if(n){if(n===c)continue;return n}}if("next"===a.method)a.sent=a._sent=a.arg;else if("throw"===a.method){if("suspendedStart"===s)throw s="completed",a.arg;a.dispatchException(a.arg)}else"return"===a.method&&a.abrupt("return",a.arg);s="executing";n=u(i,o,a);if("normal"===n.type){if(s=a.done?"completed":"suspendedYield",n.arg===c)continue;return{value:n.arg,done:a.done}}"throw"===n.type&&(s="completed",a.method="throw",a.arg=n.arg)}}),e}function u(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}a.wrap=s;var c={};function h(){}function d(){}function p(){}var e={},f=(o(e,r,function(){return this}),Object.getPrototypeOf),f=f&&f(f(w([]))),y=(f&&f!==t&&l.call(f,r)&&(e=f),p.prototype=h.prototype=Object.create(e));function g(t){["next","throw","return"].forEach(function(e){o(t,e,function(t){return this._invoke(e,t)})})}function m(a,s){var e;this._invoke=function(n,r){function t(){return new s(function(t,e){!function e(t,n,r,i){var o,t=u(a[t],a,n);if("throw"!==t.type)return(n=(o=t.arg).value)&&"object"==typeof n&&l.call(n,"__await")?s.resolve(n.__await).then(function(t){e("next",t,r,i)},function(t){e("throw",t,r,i)}):s.resolve(n).then(function(t){o.value=t,r(o)},function(t){return e("throw",t,r,i)});i(t.arg)}(n,r,t,e)})}return e=e?e.then(t,t):t()}}function v(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function b(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function x(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(v,this),this.reset(!0)}function w(e){if(e){var n,t=e[r];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length))return n=-1,(t=function t(){for(;++n<e.length;)if(l.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t}).next=t}return{next:E}}function E(){return{value:void 0,done:!0}}return o(y,"constructor",d.prototype=p),o(p,"constructor",d),d.displayName=o(p,i,"GeneratorFunction"),a.isGeneratorFunction=function(t){t="function"==typeof t&&t.constructor;return!!t&&(t===d||"GeneratorFunction"===(t.displayName||t.name))},a.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,p):(t.__proto__=p,o(t,i,"GeneratorFunction")),t.prototype=Object.create(y),t},a.awrap=function(t){return{__await:t}},g(m.prototype),o(m.prototype,n,function(){return this}),a.AsyncIterator=m,a.async=function(t,e,n,r,i){void 0===i&&(i=Promise);var o=new m(s(t,e,n,r),i);return a.isGeneratorFunction(e)?o:o.next().then(function(t){return t.done?t.value:o.next()})},g(y),o(y,i,"Generator"),o(y,r,function(){return this}),o(y,"toString",function(){return"[object Generator]"}),a.keys=function(n){var t,r=[];for(t in n)r.push(t);return r.reverse(),function t(){for(;r.length;){var e=r.pop();if(e in n)return t.value=e,t.done=!1,t}return t.done=!0,t}},a.values=w,x.prototype={constructor:x,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(b),!t)for(var e in this)"t"===e.charAt(0)&&l.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(n){if(this.done)throw n;var r=this;function t(t,e){return o.type="throw",o.arg=n,r.next=t,e&&(r.method="next",r.arg=void 0),!!e}for(var e=this.tryEntries.length-1;0<=e;--e){var i=this.tryEntries[e],o=i.completion;if("root"===i.tryLoc)return t("end");if(i.tryLoc<=this.prev){var a=l.call(i,"catchLoc"),s=l.call(i,"finallyLoc");if(a&&s){if(this.prev<i.catchLoc)return t(i.catchLoc,!0);if(this.prev<i.finallyLoc)return t(i.finallyLoc)}else if(a){if(this.prev<i.catchLoc)return t(i.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return t(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;0<=n;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&l.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var i=r;break}}var o=(i=i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc?null:i)?i.completion:{};return o.type=t,o.arg=e,i?(this.method="next",this.next=i.finallyLoc,c):this.complete(o)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),c},finish:function(t){for(var e=this.tryEntries.length-1;0<=e;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),b(n),c}},catch:function(t){for(var e=this.tryEntries.length-1;0<=e;--e){var n,r,i=this.tryEntries[e];if(i.tryLoc===t)return"throw"===(n=i.completion).type&&(r=n.arg,b(i)),r}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:w(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=void 0),c}},a}function ng(t,e,n,r,i,o,a){try{var s=t[o](a),l=s.value}catch(t){return void n(t)}s.done?e(l):Promise.resolve(l).then(r,i)}function rg(s){return function(){var t=this,a=arguments;return new Promise(function(e,n){var r=s.apply(t,a);function i(t){ng(r,e,n,i,o,"next",t)}function o(t){ng(r,e,n,i,o,"throw",t)}i(void 0)})}}function ig(t,e){return(ig=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}(o=function(){function t(){this.contextService=void 0,this.renderingContext=void 0,this.canvasConfig=void 0,this.$camera=void 0}var e=t.prototype;return e.apply=function(t){function i(t,e){t=t.getWorldTransform(),e.style.transform="matrix("+[t[0],t[1],t[4],t[5],t[12],t[13]].join(",")+")"}function e(t){var e,n,r=t.target;r.nodeName===M.HTML&&(e=a.getOrCreateEl(r),n=r.ownerDocument.documentElement.attributes,Object.keys(n).forEach(function(t){e.style[t]=n[t]}),Object.keys(r.attributes).forEach(function(t){a.updateAttribute(t,r)}),i(r,e))}function n(t){var e;(t=t.target).nodeName===M.HTML&&(t=a.getId(t),(e=a.contextService.getDomElement().parentNode)&&(t=e.querySelector("#"+t))&&e.removeChild(t))}function r(t){var e=t.target;e.nodeName===M.HTML&&(t=t.attrName,a.updateAttribute(t,e))}function o(t){var e;(t=t.target).nodeName===M.HTML&&(e=a.getOrCreateEl(t),i(t,e))}var a=this;t.hooks.init.tapPromise($0.tag,rg(eg().mark(function t(){return eg().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:a.renderingContext.root.addEventListener(E.MOUNTED,e),a.renderingContext.root.addEventListener(E.UNMOUNTED,n),a.renderingContext.root.addEventListener(E.ATTR_MODIFIED,r),a.renderingContext.root.addEventListener(E.BOUNDS_CHANGED,o);case 4:case"end":return t.stop()}},t)}))),t.hooks.destroy.tap($0.tag,function(){a.renderingContext.root.removeEventListener(E.MOUNTED,e),a.renderingContext.root.removeEventListener(E.UNMOUNTED,n),a.renderingContext.root.removeEventListener(E.ATTR_MODIFIED,r),a.renderingContext.root.removeEventListener(E.BOUNDS_CHANGED,o)})},e.getId=function(t){return t.id||"g-html-"+t.entity},e.getOrCreateEl=function(t){var e,n=this.canvasConfig.document,r=this.getId(t),i=this.contextService.getDomElement().parentNode;return i?((e=i.querySelector("#"+r))||(e=(n||document).createElement("div"),(t.parsedStyle.$el=e).id=r,t.name&&e.setAttribute("name",t.name),t.className&&(e.className=t.className),i.appendChild(e),e.style.position="absolute",e.style.left="0",e.style.top="0",e.style["will-change"]="transform",n=t.getWorldTransform(),e.style.transform="matrix("+[n[0],n[1],n[4],n[5],n[12],n[13]].join(",")+")"),e):null},e.updateAttribute=function(t,e){var n=this.getOrCreateEl(e);switch(t){case"innerHTML":var r=e.parsedStyle.innerHTML;ic(r)?n.innerHTML=r:(n.innerHTML="",n.appendChild(r));break;case"transformOrigin":r=e.parsedStyle.transformOrigin;n.style["transform-origin"]=r[0].value+" "+r[1].value;break;case"width":r=e.computedStyleMap().get("width");n.style.width=r.toString();break;case"height":r=e.computedStyleMap().get("height");n.style.height=r.toString();break;case"zIndex":r=e.parsedStyle.zIndex;n.style["z-index"]=""+r;break;case"visibility":r=e.parsedStyle.visibility;n.style.visibility=r;break;case"pointerEvents":r=e.parsedStyle.pointerEvents;n.style.pointerEvents=r;break;case"opacity":r=e.parsedStyle.opacity;n.style.opacity=""+r;break;case"fill":var r=e.parsedStyle.fill,i="";r instanceof Ll?i=r.isNone?"transparent":e.getAttribute("fill"):Array.isArray(r)?i=e.getAttribute("fill"):fh(r),n.style.background=i;break;case"stroke":r=e.parsedStyle.stroke,i="";r instanceof Ll?i=r.isNone?"transparent":e.getAttribute("stroke"):Array.isArray(r)?i=e.getAttribute("stroke"):fh(r),n.style["border-color"]=i,n.style["border-style"]="solid";break;case"lineWidth":r=e.parsedStyle.lineWidth;n.style["border-width"]=(r||0)+"px";break;case"lineDash":n.style["border-style"]="dashed";break;case"filter":i=e.style.filter;n.style.filter=i}},t}()).tag="HTMLRendering";var og=$0=o,ag=(t([y(Hp),e("design:type",Object)],og.prototype,"contextService",void 0),t([y(Wp),e("design:type",Object)],og.prototype,"renderingContext",void 0),t([y(hc),e("design:type",Object)],og.prototype,"canvasConfig",void 0),og=$0=t([f({contrib:Kp})],og),Ci(function(t){t(og)})),sg=function(i){var t;function e(){for(var t,e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return(t=i.call.apply(i,[this].concat(n))||this).name="html-renderer",t}t=i,(n=e).prototype=Object.create(t.prototype),ig(n.prototype.constructor=n,t);var n=e.prototype;return n.init=function(){this.container.load(ag,!0)},n.destroy=function(){this.container.unload(ag)},e}(mf);function lg(){lg=function(){return a};var a={},t=Object.prototype,l=t.hasOwnProperty,e="function"==typeof Symbol?Symbol:{},r=e.iterator||"@@iterator",n=e.asyncIterator||"@@asyncIterator",i=e.toStringTag||"@@toStringTag";function o(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{o({},"")}catch(t){o=function(t,e,n){return t[e]=n}}function s(t,e,n,r){var i,o,a,s,e=e&&e.prototype instanceof h?e:h,e=Object.create(e.prototype),r=new x(r||[]);return e._invoke=(i=t,o=n,a=r,s="suspendedStart",function(t,e){if("executing"===s)throw new Error("Generator is already running");if("completed"===s){if("throw"===t)throw e;return E()}for(a.method=t,a.arg=e;;){var n=a.delegate;if(n){n=function t(e,n){var r=e.iterator[n.method];if(void 0===r){if(n.delegate=null,"throw"===n.method){if(e.iterator.return&&(n.method="return",n.arg=void 0,t(e,n),"throw"===n.method))return c;n.method="throw",n.arg=new TypeError("The iterator does not provide a 'throw' method")}return c}r=u(r,e.iterator,n.arg);if("throw"===r.type)return n.method="throw",n.arg=r.arg,n.delegate=null,c;r=r.arg;return r?r.done?(n[e.resultName]=r.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=void 0),n.delegate=null,c):r:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,c)}(n,a);if(n){if(n===c)continue;return n}}if("next"===a.method)a.sent=a._sent=a.arg;else if("throw"===a.method){if("suspendedStart"===s)throw s="completed",a.arg;a.dispatchException(a.arg)}else"return"===a.method&&a.abrupt("return",a.arg);s="executing";n=u(i,o,a);if("normal"===n.type){if(s=a.done?"completed":"suspendedYield",n.arg===c)continue;return{value:n.arg,done:a.done}}"throw"===n.type&&(s="completed",a.method="throw",a.arg=n.arg)}}),e}function u(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}a.wrap=s;var c={};function h(){}function d(){}function p(){}var e={},f=(o(e,r,function(){return this}),Object.getPrototypeOf),f=f&&f(f(w([]))),y=(f&&f!==t&&l.call(f,r)&&(e=f),p.prototype=h.prototype=Object.create(e));function g(t){["next","throw","return"].forEach(function(e){o(t,e,function(t){return this._invoke(e,t)})})}function m(a,s){var e;this._invoke=function(n,r){function t(){return new s(function(t,e){!function e(t,n,r,i){var o,t=u(a[t],a,n);if("throw"!==t.type)return(n=(o=t.arg).value)&&"object"==typeof n&&l.call(n,"__await")?s.resolve(n.__await).then(function(t){e("next",t,r,i)},function(t){e("throw",t,r,i)}):s.resolve(n).then(function(t){o.value=t,r(o)},function(t){return e("throw",t,r,i)});i(t.arg)}(n,r,t,e)})}return e=e?e.then(t,t):t()}}function v(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function b(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function x(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(v,this),this.reset(!0)}function w(e){if(e){var n,t=e[r];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length))return n=-1,(t=function t(){for(;++n<e.length;)if(l.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t}).next=t}return{next:E}}function E(){return{value:void 0,done:!0}}return o(y,"constructor",d.prototype=p),o(p,"constructor",d),d.displayName=o(p,i,"GeneratorFunction"),a.isGeneratorFunction=function(t){t="function"==typeof t&&t.constructor;return!!t&&(t===d||"GeneratorFunction"===(t.displayName||t.name))},a.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,p):(t.__proto__=p,o(t,i,"GeneratorFunction")),t.prototype=Object.create(y),t},a.awrap=function(t){return{__await:t}},g(m.prototype),o(m.prototype,n,function(){return this}),a.AsyncIterator=m,a.async=function(t,e,n,r,i){void 0===i&&(i=Promise);var o=new m(s(t,e,n,r),i);return a.isGeneratorFunction(e)?o:o.next().then(function(t){return t.done?t.value:o.next()})},g(y),o(y,i,"Generator"),o(y,r,function(){return this}),o(y,"toString",function(){return"[object Generator]"}),a.keys=function(n){var t,r=[];for(t in n)r.push(t);return r.reverse(),function t(){for(;r.length;){var e=r.pop();if(e in n)return t.value=e,t.done=!1,t}return t.done=!0,t}},a.values=w,x.prototype={constructor:x,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(b),!t)for(var e in this)"t"===e.charAt(0)&&l.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(n){if(this.done)throw n;var r=this;function t(t,e){return o.type="throw",o.arg=n,r.next=t,e&&(r.method="next",r.arg=void 0),!!e}for(var e=this.tryEntries.length-1;0<=e;--e){var i=this.tryEntries[e],o=i.completion;if("root"===i.tryLoc)return t("end");if(i.tryLoc<=this.prev){var a=l.call(i,"catchLoc"),s=l.call(i,"finallyLoc");if(a&&s){if(this.prev<i.catchLoc)return t(i.catchLoc,!0);if(this.prev<i.finallyLoc)return t(i.finallyLoc)}else if(a){if(this.prev<i.catchLoc)return t(i.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return t(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;0<=n;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&l.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var i=r;break}}var o=(i=i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc?null:i)?i.completion:{};return o.type=t,o.arg=e,i?(this.method="next",this.next=i.finallyLoc,c):this.complete(o)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),c},finish:function(t){for(var e=this.tryEntries.length-1;0<=e;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),b(n),c}},catch:function(t){for(var e=this.tryEntries.length-1;0<=e;--e){var n,r,i=this.tryEntries[e];if(i.tryLoc===t)return"throw"===(n=i.completion).type&&(r=n.arg,b(i)),r}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:w(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=void 0),c}},a}function ug(t,e,n,r,i,o,a){try{var s=t[o](a),l=s.value}catch(t){return void n(t)}s.done?e(l):Promise.resolve(l).then(r,i)}function cg(s){return function(){var t=this,a=arguments;return new Promise(function(e,n){var r=s.apply(t,a);function i(t){ug(r,e,n,i,o,"next",t)}function o(t){ug(r,e,n,i,o,"throw",t)}i(void 0)})}}function hg(t,e){t.prototype=Object.create(e.prototype),dg(t.prototype.constructor=t,e)}function dg(t,e){return(dg=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}var pg=function(){function t(){this.$container=void 0,this.$canvas=void 0,this.dpr=void 0,this.context=void 0,this.canvasConfig=void 0}var e=t.prototype;return e.init=function(){var t=cg(lg().mark(function t(){var e,n,r;return lg().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:e=this.canvasConfig,r=e.container,n=e.canvas,e=e.devicePixelRatio,n?(this.$canvas=n,r&&n.parentElement!==r&&r.appendChild(n),this.$container=n.parentElement,this.canvasConfig.container=this.$container):r&&(this.$container=ic(r)?document.getElementById(r):r,this.$container&&(n=document.createElement("canvas"),this.$container.appendChild(n),this.$container.style.position||(this.$container.style.position="relative"),this.$canvas=n)),this.context=this.$canvas.getContext("2d"),r=1<=(r=e||Bl&&window.devicePixelRatio||1)?Math.ceil(r):1,this.dpr=r,this.resize(this.canvasConfig.width,this.canvasConfig.height);case 7:case"end":return t.stop()}},t,this)}));return function(){return t.apply(this,arguments)}}(),e.getContext=function(){return this.context},e.getDomElement=function(){return this.$canvas},e.getDPR=function(){return this.dpr},e.getBoundingClientRect=function(){if(this.$canvas.getBoundingClientRect)return this.$canvas.getBoundingClientRect()},e.destroy=function(){this.$container&&this.$canvas&&this.$canvas.parentNode&&this.$container.removeChild(this.$canvas)},e.resize=function(t,e){var n;this.$canvas&&(this.$canvas.width=this.dpr*t,this.$canvas.height=this.dpr*e,n=this.$canvas,t=t,e=e,Bl&&n.style&&(n.style.width=t+"px",n.style.height=e+"px"))},e.applyCursorStyle=function(t){this.$container&&this.$container.style&&(this.$container.style.cursor=t)},e.toDataURL=function(){var e=cg(lg().mark(function t(e){var n,r;return lg().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return n=(r=e=void 0===e?{}:e).type,r=r.encoderOptions,t.abrupt("return",this.context.canvas.toDataURL(n,r));case 3:case"end":return t.stop()}},t,this)}));return function(t){return e.apply(this,arguments)}}(),t}(),fg=(t([y(hc),e("design:type",Object)],pg.prototype,"canvasConfig",void 0),pg=t([f({token:Hp})],pg),Ci(function(t){t(pg)})),yg=function(i){function t(){for(var t,e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return(t=i.call.apply(i,[this].concat(n))||this).name="canvas-context-register",t}hg(t,i);var e=t.prototype;return e.init=function(){this.container.load(fg,!0)},e.destroy=function(){this.container.unload(fg)},t}(mf),gg=function(e){function t(t){t=e.call(this,t)||this;return t.registerPlugin(new yg),t.registerPlugin(new a0),t.registerPlugin(new dy),t.registerPlugin(new U0),t.registerPlugin(new tg),t.registerPlugin(new $y),t.registerPlugin(new sg),t}return hg(t,e),t}(ie);function mg(){mg=function(){return a};var a={},t=Object.prototype,l=t.hasOwnProperty,e="function"==typeof Symbol?Symbol:{},r=e.iterator||"@@iterator",n=e.asyncIterator||"@@asyncIterator",i=e.toStringTag||"@@toStringTag";function o(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{o({},"")}catch(t){o=function(t,e,n){return t[e]=n}}function s(t,e,n,r){var i,o,a,s,e=e&&e.prototype instanceof h?e:h,e=Object.create(e.prototype),r=new x(r||[]);return e._invoke=(i=t,o=n,a=r,s="suspendedStart",function(t,e){if("executing"===s)throw new Error("Generator is already running");if("completed"===s){if("throw"===t)throw e;return E()}for(a.method=t,a.arg=e;;){var n=a.delegate;if(n){n=function t(e,n){var r=e.iterator[n.method];if(void 0===r){if(n.delegate=null,"throw"===n.method){if(e.iterator.return&&(n.method="return",n.arg=void 0,t(e,n),"throw"===n.method))return c;n.method="throw",n.arg=new TypeError("The iterator does not provide a 'throw' method")}return c}r=u(r,e.iterator,n.arg);if("throw"===r.type)return n.method="throw",n.arg=r.arg,n.delegate=null,c;r=r.arg;return r?r.done?(n[e.resultName]=r.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=void 0),n.delegate=null,c):r:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,c)}(n,a);if(n){if(n===c)continue;return n}}if("next"===a.method)a.sent=a._sent=a.arg;else if("throw"===a.method){if("suspendedStart"===s)throw s="completed",a.arg;a.dispatchException(a.arg)}else"return"===a.method&&a.abrupt("return",a.arg);s="executing";n=u(i,o,a);if("normal"===n.type){if(s=a.done?"completed":"suspendedYield",n.arg===c)continue;return{value:n.arg,done:a.done}}"throw"===n.type&&(s="completed",a.method="throw",a.arg=n.arg)}}),e}function u(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}a.wrap=s;var c={};function h(){}function d(){}function p(){}var e={},f=(o(e,r,function(){return this}),Object.getPrototypeOf),f=f&&f(f(w([]))),y=(f&&f!==t&&l.call(f,r)&&(e=f),p.prototype=h.prototype=Object.create(e));function g(t){["next","throw","return"].forEach(function(e){o(t,e,function(t){return this._invoke(e,t)})})}function m(a,s){var e;this._invoke=function(n,r){function t(){return new s(function(t,e){!function e(t,n,r,i){var o,t=u(a[t],a,n);if("throw"!==t.type)return(n=(o=t.arg).value)&&"object"==typeof n&&l.call(n,"__await")?s.resolve(n.__await).then(function(t){e("next",t,r,i)},function(t){e("throw",t,r,i)}):s.resolve(n).then(function(t){o.value=t,r(o)},function(t){return e("throw",t,r,i)});i(t.arg)}(n,r,t,e)})}return e=e?e.then(t,t):t()}}function v(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function b(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function x(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(v,this),this.reset(!0)}function w(e){if(e){var n,t=e[r];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length))return n=-1,(t=function t(){for(;++n<e.length;)if(l.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t}).next=t}return{next:E}}function E(){return{value:void 0,done:!0}}return o(y,"constructor",d.prototype=p),o(p,"constructor",d),d.displayName=o(p,i,"GeneratorFunction"),a.isGeneratorFunction=function(t){t="function"==typeof t&&t.constructor;return!!t&&(t===d||"GeneratorFunction"===(t.displayName||t.name))},a.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,p):(t.__proto__=p,o(t,i,"GeneratorFunction")),t.prototype=Object.create(y),t},a.awrap=function(t){return{__await:t}},g(m.prototype),o(m.prototype,n,function(){return this}),a.AsyncIterator=m,a.async=function(t,e,n,r,i){void 0===i&&(i=Promise);var o=new m(s(t,e,n,r),i);return a.isGeneratorFunction(e)?o:o.next().then(function(t){return t.done?t.value:o.next()})},g(y),o(y,i,"Generator"),o(y,r,function(){return this}),o(y,"toString",function(){return"[object Generator]"}),a.keys=function(n){var t,r=[];for(t in n)r.push(t);return r.reverse(),function t(){for(;r.length;){var e=r.pop();if(e in n)return t.value=e,t.done=!1,t}return t.done=!0,t}},a.values=w,x.prototype={constructor:x,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(b),!t)for(var e in this)"t"===e.charAt(0)&&l.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(n){if(this.done)throw n;var r=this;function t(t,e){return o.type="throw",o.arg=n,r.next=t,e&&(r.method="next",r.arg=void 0),!!e}for(var e=this.tryEntries.length-1;0<=e;--e){var i=this.tryEntries[e],o=i.completion;if("root"===i.tryLoc)return t("end");if(i.tryLoc<=this.prev){var a=l.call(i,"catchLoc"),s=l.call(i,"finallyLoc");if(a&&s){if(this.prev<i.catchLoc)return t(i.catchLoc,!0);if(this.prev<i.finallyLoc)return t(i.finallyLoc)}else if(a){if(this.prev<i.catchLoc)return t(i.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return t(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;0<=n;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&l.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var i=r;break}}var o=(i=i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc?null:i)?i.completion:{};return o.type=t,o.arg=e,i?(this.method="next",this.next=i.finallyLoc,c):this.complete(o)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),c},finish:function(t){for(var e=this.tryEntries.length-1;0<=e;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),b(n),c}},catch:function(t){for(var e=this.tryEntries.length-1;0<=e;--e){var n,r,i=this.tryEntries[e];if(i.tryLoc===t)return"throw"===(n=i.completion).type&&(r=n.arg,b(i)),r}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:w(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=void 0),c}},a}function vg(t,e,n,r,i,o,a){try{var s=t[o](a),l=s.value}catch(t){return void n(t)}s.done?e(l):Promise.resolve(l).then(r,i)}function bg(s){return function(){var t=this,a=arguments;return new Promise(function(e,n){var r=s.apply(t,a);function i(t){vg(r,e,n,i,o,"next",t)}function o(t){vg(r,e,n,i,o,"throw",t)}i(void 0)})}}function xg(){return(xg=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n,r=arguments[e];for(n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t}).apply(this,arguments)}function wg(t,e){return(wg=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}var Eg,_g=p.defineToken(""),kg=((Qt=function(){function t(){this.sceneGraphService=void 0,this.renderingContext=void 0,this.dragndropPluginOptions=void 0}return t.prototype.apply=function(t){function e(t){var e,o,a,s,l,u,n,c=t.target,h=c===p,d=h&&i?p:c.closest&&c.closest("[draggable=true]");d&&(e=function(){var e=bg(mg().mark(function t(e){var n,r,i;return mg().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(o)t.next=8;else{if(n=e.timeStamp-a,r=Ta([e.clientX,e.clientY],s),n<=m||r<=g)return t.abrupt("return");t.next=5}break;case 5:e.type="dragstart",d.dispatchEvent(e),o=!0;case 8:if(e.type="drag",e.dx=e.clientX-u[0],e.dy=e.clientY-u[1],d.dispatchEvent(e),u=[e.clientX,e.clientY],h){t.next=21;break}return n="pointer"===f?[e.canvasX,e.canvasY]:c.getBounds().center,t.next=17,p.elementsFromPoint(n[0],n[1]);case 17:r=t.sent,i=r[r.indexOf(c)+1],i=(null==i?void 0:i.closest("[droppable=true]"))||(y?p:null),l!==i&&(l&&(e.type="dragleave",(e.target=l).dispatchEvent(e)),i&&(e.type="dragenter",(e.target=i).dispatchEvent(e)),(l=i)&&(e.type="dragover",(e.target=l).dispatchEvent(e)));case 21:case"end":return t.stop()}},t)}));return function(t){return e.apply(this,arguments)}}(),o=!1,a=t.timeStamp,s=[t.clientX,t.clientY],l=null,u=[t.clientX,t.clientY],r.addEventListener("pointermove",e),c.addEventListener("pointerup",n=function(){o&&(l&&(t.type="drop",(t.target=l).dispatchEvent(t)),t.type="dragend",t.detail={preventClick:!0},d.dispatchEvent(t),o=!1),r.removeEventListener("pointermove",e)},{once:!0}),c.addEventListener("pointerupoutside",n,{once:!0}))}var p=this.renderingContext.root.ownerDocument,r=p.defaultView,n=this.dragndropPluginOptions,f=n.overlap,i=n.isDocumentDraggable,y=n.isDocumentDroppable,g=n.dragstartDistanceThreshold,m=n.dragstartTimeThreshold;t.hooks.init.tapPromise(Eg.tag,bg(mg().mark(function t(){return mg().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:r.addEventListener("pointerdown",e);case 1:case"end":return t.stop()}},t)}))),t.hooks.destroy.tap(Eg.tag,function(){r.removeEventListener("pointerdown",e)})},t}()).tag="Dragndrop",Eg=Qt),Tg=(t([y(It),e("design:type",Object)],kg.prototype,"sceneGraphService",void 0),t([y(Wp),e("design:type",Object)],kg.prototype,"renderingContext",void 0),t([y(_g),e("design:type",Object)],kg.prototype,"dragndropPluginOptions",void 0),kg=Eg=t([f({contrib:Kp})],kg),Ci(function(t){t(kg)})),Mg=function(n){var t;function e(t){var e;return void 0===t&&(t={}),(e=n.call(this)||this).options=void 0,e.name="dragndrop",e.options=t,e}t=n,(r=e).prototype=Object.create(t.prototype),wg(r.prototype.constructor=r,t);var r=e.prototype;return r.init=function(){this.container.register(_g,{useValue:xg({overlap:"pointer",isDocumentDraggable:!1,isDocumentDroppable:!1,dragstartDistanceThreshold:0,dragstartTimeThreshold:0},this.options)}),this.container.load(Tg,!0)},r.destroy=function(){this.container.remove(_g),this.container.unload(Tg)},e}(mf);const Sg=({width:t,height:e,container:n})=>{const r=new gg;return r.registerPlugin(new Mg),new $f({container:n,width:t,height:e,renderer:r})},Og=(Sg.props={},()=>[["cartesian"]]),Pg=(Og.props={},({startAngle:t=-Math.PI/2,endAngle:e=3*Math.PI/2,innerRadius:n=0,outerRadius:r=1})=>[["translate",0,.5],["reflect.y"],["translate",0,-.5],["polar",t,e,n,r]]),Ag=(Pg.props={},({startAngle:t=0,endAngle:e=6*Math.PI,innerRadius:n=0,outerRadius:r=1})=>[["translate",.5,.5],["reflect.y"],["translate",-.5,-.5],["helix",t,e,n,r]]),Ng=(Ag.props={},()=>[["transpose"],["translate",.5,.5],["reflect.x"],["translate",-.5,-.5]]),Cg=(Ng.props={},()=>[["translate",.5,.5],["reflect"],["translate",-.5,-.5]]),Lg=(Cg.props={},()=>[["translate",.5,.5],["reflect.x"],["translate",-.5,-.5]]),Ig=(Lg.props={},()=>[["translate",.5,.5],["reflect.y"],["translate",-.5,-.5]]),jg=(Ig.props={},({startAngle:t=-Math.PI/2,endAngle:e=3*Math.PI/2,innerRadius:n=0,outerRadius:r=1})=>[...Ng(),...Pg({startAngle:t,endAngle:e,innerRadius:n,outerRadius:r})]),Rg=(jg.props={},()=>[["parallel",0,1,0,1]]),Dg=(Rg.props={},({focusX:t=0,focusY:e=0,distortionX:n=2,distortionY:r=2,isVisual:i=!1})=>[["fisheye",t,e,n,r,i]]),Bg=(Dg.props={},({focusX:t=0,distortionX:e=2,isVisual:n=!1})=>[["fisheye.x",t,e,n]]),Fg=(Bg.props={},({focusY:t=0,distortionY:e=2,isVisual:n=!1})=>[["fisheye.x",t,e,n]]),zg=(Fg.props={},({value:e})=>t=>t.map(()=>e)),Vg=(zg.props={},({value:e})=>t=>t.map(e)),Gg=(Vg.props={},({value:e})=>t=>t.map(t=>t[e])),Hg=(Gg.props={},({value:t})=>()=>t);function Wg(){return[{name:"color"},{name:"shape"},{name:"enterType"},{name:"enterDelay",scaleName:"enter"},{name:"enterDuration",scaleName:"enter"},{name:"enterEasing"},{name:"key",scale:"identity"},{name:"groupKey",scale:"identity"},{name:"label",scale:"identity"}]}function Yg(){return[...Wg(),{name:"title",scale:"identity"},{name:"tooltip",scale:"identity",independent:!0}]}function Ug(){return[{type:"maybeKey"}]}Hg.props={};const qg=()=>(t,e,n,l)=>{const{x:u,y:c,y1:h,series:d}=n,p=e.x,f=e.series;return[t,Array.from(t,t=>{var e=p.getBandWidth(p.invert(+u[t])),n=e*(f?f.getBandWidth(f.invert(+(null===d||void 0===d?void 0:d[t]))):1),e=(+(null===d||void 0===d?void 0:d[t])||0)*e,e=+u[t]+e,n=e+n,r=+c[t],t=+h[t];const i=[e,r],o=[n,r],a=[n,t],s=[e,t];return[i,o,a,s].map(t=>l.map(t))})]};function Xg(t,e){return null==t||null==e?NaN:t<e?-1:e<t?1:e<=t?0:NaN}function Zg(t,e){t=function(e,n){let r=0,i,o=0,a=0;if(void 0===n)for(var t of e)null!=t&&(t=+t)>=t&&(i=t-o,o+=i/++r,a+=i*(t-o));else{let t=-1;for(var s of e)null!=(s=n(s,++t,e))&&(s=+s)>=s&&(i=s-o,o+=i/++r,a+=i*(s-o))}if(1<r)return a/(r-1)}(t,e);return t&&Math.sqrt(t)}function Kg(e,n){let r,i;if(void 0===n)for(const t of e)null!=t&&(void 0===r?t>=t&&(r=i=t):(r>t&&(r=t),i<t&&(i=t)));else{let t=-1;for(var o of e)null!=(o=n(o,++t,e))&&(void 0===r?o>=o&&(r=i=o):(r>o&&(r=o),i<o&&(i=o)))}return[r,i]}qg.props={defaultShape:"rect",defaultLabelShape:"label",channels:[...Yg(),{name:"x",scale:"band",required:!0},{name:"y",required:!0},{name:"series",scale:"band"}],preInference:[{type:"maybeZeroY1"},{type:"maybeZeroX"},{type:"maybeStackY",series:!0}],postInference:[...Ug(),{type:"maybeTitleX"},{type:"maybeTooltipY"}],shapes:["rect","hollowRect","funnel","pyramid"]};class $g extends Map{constructor(t,e=function(t){return null!==t&&"object"==typeof t?t.valueOf():t}){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:e}}),null!=t)for(const[e,n]of t)this.set(e,n)}get(t){return super.get(Jg(this,t))}has(t){return super.has(Jg(this,t))}set(t,e){return super.set(function({_intern:t,_key:e},n){e=e(n);return t.has(e)?t.get(e):(t.set(e,n),n)}(this,t),e)}delete(t){return super.delete(function({_intern:t,_key:e},n){e=e(n);t.has(e)&&(n=t.get(e),t.delete(e));return n}(this,t))}}function Jg({_intern:t,_key:e},n){e=e(n);return t.has(e)?t.get(e):n}function Qg(t){return t}function tm(t,...e){return h=c=Qg,d=e,function t(e,n){if(n>=d.length)return h(e);const r=new $g,i=d[n++];let o=-1;for(const s of e){var a=i(s,++o,e);const l=r.get(a);l?l.push(s):r.set(a,[s])}for(const[u,e]of r)r.set(u,t(e,n));return c(r)}(t,0);var c,h,d}function em(t,e){return(null==t||!(t<=t))-(null==e||!(e<=e))||(t<e?-1:e<t?1:0)}function nm(e,n){let r;if(void 0===n)for(const t of e)null!=t&&(r<t||void 0===r&&t>=t)&&(r=t);else{let t=-1;for(var i of e)null!=(i=n(i,++t,e))&&(r<i||void 0===r&&i>=i)&&(r=i)}return r}function rm(t,e){let n,r=-1,i=-1;if(void 0===e)for(const a of t)++i,null!=a&&(n<a||void 0===n&&a>=a)&&(n=a,r=i);else for(var o of t)null!=(o=e(o,++i,t))&&(n<o||void 0===n&&o>=o)&&(n=o,r=i);return r}function im(e,n){let r;if(void 0===n)for(const t of e)null!=t&&(r>t||void 0===r&&t>=t)&&(r=t);else{let t=-1;for(var i of e)null!=(i=n(i,++t,e))&&(r>i||void 0===r&&i>=i)&&(r=i)}return r}function om(n,r,i=0,o=n.length-1,a){for(a=void 0===a?em:function(r=Xg){if(r===Xg)return em;if("function"!=typeof r)throw new TypeError("compare is not a function");return(t,e)=>{var n=r(t,e);return n||0===n?n:(0===r(e,e))-(0===r(t,t))}}(a);i<o;){600<o-i&&(s=o-i+1,l=r-i+1,c=Math.log(s),u=.5*Math.exp(2*c/3),c=.5*Math.sqrt(c*u*(s-u)/s)*(l-s/2<0?-1:1),om(n,r,Math.max(i,Math.floor(r-l*u/s+c)),Math.min(o,Math.floor(r+(s-l)*u/s+c)),a));var s,l,u,c,h=n[r];let t=i,e=o;for(am(n,i,r),0<a(n[o],h)&&am(n,i,o);t<e;){for(am(n,t,e),++t,--e;a(n[t],h)<0;)++t;for(;0<a(n[e],h);)--e}0===a(n[i],h)?am(n,i,e):am(n,++e,o),e<=r&&(i=e+1),r<=e&&(o=e-1)}return n}function am(t,e,n){var r=t[e];t[e]=t[n],t[n]=r}function sm(t,e,n){var r;if(n=(t=Float64Array.from(function*(e,n){if(void 0===n)for(var t of e)null!=t&&(t=+t)>=t&&(yield t);else{let t=-1;for(var r of e)null!=(r=n(r,++t,e))&&(r=+r)>=r&&(yield r)}}(t,n))).length)return(e=+e)<=0||n<2?im(t):1<=e?nm(t):(n=(n-1)*e,(r=nm(om(t,e=Math.floor(n)).subarray(0,e+1)))+(im(t.subarray(e+1))-r)*(n-e))}function lm(e,n){let r=0,i=0;if(void 0===n)for(var t of e)null!=t&&(t=+t)>=t&&(++r,i+=t);else{let t=-1;for(var o of e)null!=(o=n(o,++t,e))&&(o=+o)>=o&&(++r,i+=o)}if(r)return i/r}function um(t,e){return sm(t,.5,e)}function cm(e,n=Xg){let r,i=!1;if(1===n.length){let t;for(const a of e){var o=n(a);(i?Xg(o,t)<0:0===Xg(o,o))&&(r=a,t=o,i=!0)}}else for(const t of e)(i?n(t,r)<0:0===n(t,t))&&(r=t,i=!0);return r}function hm(e,n){let r=0;if(void 0===n)for(var t of e)(t=+t)&&(r+=t);else{let t=-1;for(var i of e)(i=+n(i,++t,e))&&(r+=i)}return r}function dm(t){const e=t.getOptions()["transformations"];return e.map(([t])=>t).filter(t=>"transpose"===t).length%2!=0}function pm(t){const e=t.getOptions()["transformations"];return e.some(([t])=>"polar"===t)}function fm(t){const e=t.getOptions()["transformations"];return e.some(([t])=>"helix"===t)}function ym(t){const e=t.getOptions()["transformations"];return e.some(([t])=>"parallel"===t)}const gm=(t,e,n,r)=>{const{series:i,x:o,y:a}=n;if(void 0===o||void 0===a)throw new Error("Missing encode for x or y channel.");const s=i?Array.from(tm(t,t=>i[t]).values()):[t];return[s.map(t=>t[0]),Array.from(s,t=>t.map(t=>r.map([+o[t],+a[t]]))),s]},mm=(t,e,n,i)=>{const o=Object.entries(n).filter(([t])=>t.startsWith("position")).map(([,t])=>t);if(0===o.length)throw new Error("Missing encode for position channel.");return[t,Array.from(t,e=>{var t=o.map(t=>+t[e]),n=i.map(t);const r=[];for(let t=0;t<n.length;t+=2)r.push([n[t],n[t+1]]);return r})]},vm=()=>(t,e,n,r)=>{const i=ym(r)?mm:gm;return i(t,e,n,r)},bm=(vm.props={defaultShape:"line",defaultLabelShape:"label",channels:[...Yg(),{name:"x"},{name:"y"},{name:"position",independent:!0},{name:"size"},{name:"series",scale:"identity"}],preInference:[{type:"maybeSeries"}],postInference:[...Ug(),{type:"maybeTitleX"},{type:"maybeTooltipY"},{type:"maybeTooltipPosition"}],shapes:["line","smooth"]},()=>(t,e,n,o)=>{const{x:a,y:s,size:l,dx:u,dy:c}=n,[h,d]=o.getSize();return[t,Array.from(t,t=>{var e=+((null===u||void 0===u?void 0:u[t])||0),n=+((null===c||void 0===c?void 0:c[t])||0),e=+a[t]+e,n=+s[t]+n,t=+l[t],r=t/h,t=t/d,i=[e+r,n+t];return[o.map([e-r,n-t]),o.map(i)]})]}),xm=(bm.props={defaultShape:"point",defaultLabelShape:"label",channels:[...Yg(),{name:"x",required:!0},{name:"y",required:!0},{name:"size",required:!0},{name:"dx",scale:"identity"},{name:"dy",scale:"identity"}],preInference:[{type:"maybeZeroY"},{type:"maybeZeroX"},{type:"maybeSize"}],postInference:[...Ug(),{type:"maybeTitleX"},{type:"maybeTooltipY"}],shapes:["bowtie","cross","diamond","hexagon","hollowBowtie","hollowDiamond","hollowHexagon","hollowPoint","hollowSquare","hollowTriangle","hollowTriangleDown","hyphen","linePoint","plus","point","square","tick","triangle","triangleDown"]},()=>(t,e,n,r)=>{const{x:i,y:o}=n,a=e["x"];return[t,Array.from(t,t=>{var e=+i[t],t=+o[t],n=(null==(n=null===a||void 0===a?void 0:a.getBandWidth)?void 0:n.call(a))||0;return[r.map([e+n/2,t])]})]}),wm=(xm.props={defaultShape:"text",defaultLabelShape:"label",channels:[...Yg(),{name:"x",required:!0},{name:"y",required:!0},{name:"text",required:!0,scale:"identity"},{name:"fontSize"},{name:"rotate"}],preInference:[],postInference:[...Ug(),{type:"maybeTitleX"},{type:"maybeTooltipY"}],shapes:["text"]},()=>(t,e,n,l)=>{const{x:u,y:c}=n,h=e.x,d=e.y;return[t,Array.from(t,t=>{var e=h.getBandWidth(h.invert(+u[t])),n=d.getBandWidth(d.invert(+c[t])),r=+u[t],t=+c[t];const i=[r,t],o=[r+e,t],a=[r+e,t+n],s=[r,t+n];return[i,o,a,s].map(t=>l.map(t))})]}),Em=(wm.props={defaultShape:"rect",defaultLabelShape:"label",channels:[...Yg(),{name:"x",required:!0,scale:"band"},{name:"y",required:!0,scale:"band"}],preInference:[{type:"maybeZeroX"},{type:"maybeZeroY"}],postInference:[...Ug(),{type:"maybeTitleX"},{type:"maybeTooltipY"}],shapes:["rect","hollowRect"]},()=>(t,e,n,o)=>{const{x:a,y:s,y1:l,series:r}=n,i=r?Array.from(tm(t,t=>r[t]).values()):[t];return[i.map(t=>t[0]),Array.from(i,e=>{var n=e.length;const r=new Array(2*n);for(let t=0;t<e.length;t++){var i=e[t];r[t]=o.map([+a[i],+s[i]]),r[n+t]=o.map([+a[i],+l[i]])}return r}),i]}),_m=(Em.props={defaultShape:"area",defaultLabelShape:"label",channels:[...Yg(),{name:"x",required:!0},{name:"y",required:!0},{name:"size"},{name:"series",scale:"identity"}],preInference:[{type:"maybeSeries"},{type:"maybeZeroY1"}],postInference:[...Ug(),{type:"maybeTitleX"},{type:"maybeTooltipY"}],shapes:["area","smooth"]},()=>(t,e,n,o)=>{const a=Object.entries(n).filter(([t])=>t.startsWith("x")).map(([,t])=>t),s=Object.entries(n).filter(([t])=>t.startsWith("y")).map(([,t])=>t);n=t.map(e=>{const n=[];for(let t=0;t<a.length;t++){var r=a[t][e];if(void 0===r)break;var i=s[t][e];n.push(o.map([+r,+i]))}return n});return[t,n]}),km=(_m.props={defaultShape:"polygon",defaultLabelShape:"label",channels:[...Yg(),{name:"x",required:!0},{name:"y",required:!0}],preInference:[],postInference:[...Ug(),{type:"maybeTitleX"},{type:"maybeTooltipY"}],shapes:["polygon"]},(...t)=>_m(...t)),Tm=(km.props={defaultShape:"edge",defaultLabelShape:"label",channels:[...Yg(),{name:"x",required:!0},{name:"y",required:!0}],preInference:[],postInference:[...Ug(),{type:"maybeTitleX"},{type:"maybeTooltipY"}],shapes:["edge","arc","vhv","smoothEdge","ribbon"]},(...t)=>_m(...t)),Mm=(Tm.props={defaultShape:"pointNode",defaultLabelShape:"label",channels:[...Yg(),{name:"x",required:!0},{name:"y",required:!0},{name:"size",required:!0}],preInference:[],postInference:[...Ug(),{type:"maybeTitleX"},{type:"maybeTooltipY"}],shapes:["pointNode","polygonNode"]},()=>(t,e,n,r)=>{const{x:i,y:o,x1:a,y1:s}=n,l=(null==(e=null==(n=e.x)?void 0:n.getBandWidth)?void 0:e.call(n))||0;e=t.map(t=>[r.map([+i[t]+l/2,+o[t]]),r.map([+a[t]+l/2,+s[t]])]);return[t,e]}),Sm=(Mm.props={defaultShape:"link",defaultLabelShape:"label",channels:[...Yg(),{name:"x",required:!0},{name:"y",required:!0}],preInference:[],postInference:[...Ug(),{type:"maybeTitleX"},{type:"maybeTooltipY"}],shapes:["link"]},()=>(t,e,n,r)=>{const{x:i,y:o}=n,a=e["x"];return[t,Array.from(t,t=>{var e=+i[t],t=+o[t],n=(null==(n=null===a||void 0===a?void 0:a.getBandWidth)?void 0:n.call(a))||0;return[r.map([e+n/2,t])]})]}),Om=(Sm.props={defaultShape:"image",defaultLabelShape:"label",channels:[...Yg(),{name:"x",required:!0},{name:"y",required:!0},{name:"src",required:!0,scale:"identity"},{name:"size"}],preInference:[],postInference:[...Ug(),{type:"maybeTitleX"},{type:"maybeTooltipY"}],shapes:["image"]},()=>(t,e,n,l)=>{const{x:u,y:c,y1:h,y2:d,y3:p,y4:f,series:y}=n,g=e.x,m=e.series;return[t,Array.from(t,t=>{var e=g.getBandWidth(g.invert(+u[t])),n=e*(m?m.getBandWidth(m.invert(+(null===y||void 0===y?void 0:y[t]))):1),e=(+(null===y||void 0===y?void 0:y[t])||0)*e,e=+u[t]+e+n/2,[t,r,i,o,a]=[+c[t],+h[t],+d[t],+p[t],+f[t]];const s=[[e-n/2,a],[e+n/2,a],[e,a],[e,o],[e-n/2,o],[e+n/2,o],[e+n/2,r],[e-n/2,r],[e-n/2,i],[e+n/2,i],[e,r],[e,t],[e-n/2,t],[e+n/2,t]];return s.map(t=>l.map(t))})]}),Pm=(Om.props={defaultShape:"box",defaultLabelShape:"label",channels:[...Yg(),{name:"x",scale:"band",required:!0},{name:"y",required:!0},{name:"series",scale:"band"}],preInference:[],postInference:[...Ug(),{type:"maybeTitleX"},{type:"maybeTooltipY"}],shapes:["box"]},()=>(t,e,n,i)=>{const{x:o,y:a,size:s,rotate:l}=n,[u,c]=i.getSize();n=t.map(t=>{var e=+l[t]/180*Math.PI,n=+s[t],r=n/u,n=n/c,r=r*Math.cos(e),n=-n*Math.sin(e);return[i.map([+o[t]-r/2,+a[t]-n/2]),i.map([+o[t]+r/2,+a[t]+n/2])]});return[t,n]}),Am=(Pm.props={defaultShape:"vector",defaultLabelShape:"label",channels:[...Yg(),{name:"x",required:!0},{name:"y",required:!0},{name:"rotate",required:!0,scale:"identity"},{name:"size",required:!0}],preInference:[],postInference:[...Ug(),{type:"maybeTitleX"},{type:"maybeTooltipY"}],shapes:["vector"]},()=>xm()),Nm=(Am.props={defaultShape:"annotation.text",defaultLabelShape:"label",channels:[...Wg(),{name:"x",required:!0},{name:"y",required:!0},{name:"text",required:!0,scale:"identity"},{name:"fontSize"},{name:"rotate"}],preInference:[],postInference:[...Ug()],shapes:["annotation.text","annotation.badge"]},()=>(t,e,n,r)=>{const i=n["y"];return[t,Array.from(t,t=>{const e=[0,i[t]],n=[1,i[t]];return[e,n].map(t=>r.map(t))})]}),Cm=(Nm.props={defaultShape:"annotation.line",defaultLabelShape:"label",channels:[...Wg(),{name:"y",required:!0}],preInference:[],postInference:[...Ug()],shapes:["annotation.line"]},()=>(t,e,n,r)=>{const i=n["x"];return[t,Array.from(t,t=>{const e=[i[t],1],n=[i[t],0];return[e,n].map(t=>r.map(t))})]}),Lm=(Cm.props={defaultShape:"annotation.line",defaultLabelShape:"label",channels:[...Wg(),{name:"x",required:!0}],preInference:[],postInference:[...Ug()],shapes:["annotation.line"]},(...t)=>Mm(...t));function Im(t,e,n,r){if(e)return()=>[0,1];const{[t]:i,[t+"1"]:o}=n;return t=>{var e=(null==(e=r.getBandWidth)?void 0:e.call(r,r.invert(+o[t])))||0;return[i[t],o[t]+e]}}function jm(t={}){const{extendX:r=!1,extendY:i=!1}=t;return(t,e,n,l)=>{const u=Im("x",r,n,e.x),c=Im("y",i,n,e.y);return[t,Array.from(t,t=>{var[e,n]=u(t),[t,r]=c(t);const i=[e,t],o=[n,t],a=[n,r],s=[e,r];return[i,o,a,s].map(t=>l.map(t))})]}}Lm.props={defaultShape:"annotation.connector",defaultLabelShape:"label",channels:[...Wg(),{name:"x",required:!0},{name:"y",required:!0}],preInference:[],postInference:[...Ug()],shapes:["annotation.connector"]};const Rm=()=>jm(),Dm=(Rm.props={defaultShape:"annotation.range",defaultLabelShape:"label",channels:[...Wg(),{name:"x",required:!0},{name:"y",required:!0}],preInference:[],postInference:[...Ug()],shapes:["annotation.range"]},()=>jm({extendY:!0})),Bm=(Dm.props={defaultShape:"annotation.range",defaultLabelShape:"label",channels:[...Wg(),{name:"x",required:!0}],preInference:[],postInference:[...Ug()],shapes:["annotation.range"]},()=>jm({extendX:!0})),Fm=(Bm.props={defaultShape:"annotation.range",defaultLabelShape:"label",channels:[...Wg(),{name:"y",required:!0}],preInference:[],postInference:[...Ug()],shapes:["annotation.range"]},()=>["#5B8FF9","#5AD8A6","#5D7092","#F6BD16","#6F5EF9","#6DC8EC","#945FB9","#FF9845","#1E9493","#FF99C3"]),zm=(Fm.props={},()=>["#5B8FF9","#CDDDFD","#5AD8A6","#CDF3E4","#5D7092","#CED4DE","#F6BD16","#FCEBB9","#6F5EF9","#D3CEFD","#6DC8EC","#D3EEF9","#945FB9","#DECFEA","#FF9845","#FFE0C7","#1E9493","#BBDEDE","#FF99C3","#FFE0ED"]);zm.props={};class Vm{constructor(t){this.options=N({},this.getDefaultOptions()),this.update(t)}getOptions(){return this.options}update(t={}){this.options=N({},this.options,t),this.rescale(t)}rescale(t){}}function Gm(e,n,r){for(let t=0;t<n.length;t+=1)e.has(n[t])||e.set(r(n[t]),t)}function Hm(t){const{value:e,from:n,to:r,mapper:i,notFoundReturn:o}=t;let a=i.get(e);if(void 0===a){if(o)return o;a=n.push(e)-1,i.set(e,a)}return r[a%r.length]}function Wm(t){return t instanceof Date?t=>""+t:"object"==typeof t?t=>JSON.stringify(t):t=>t}class Ym extends Vm{constructor(t){super(t)}getDefaultOptions(){return{domain:[],range:[]}}map(t){return 0===this.domainIndexMap.size&&Gm(this.domainIndexMap,this.getDomain(),this.domainKey),Hm({value:this.domainKey(t),mapper:this.domainIndexMap,from:this.getDomain(),to:this.getRange(),notFoundReturn:this.options.unknown})}invert(t){return 0===this.rangeIndexMap.size&&Gm(this.rangeIndexMap,this.getRange(),this.rangeKey),Hm({value:this.rangeKey(t),mapper:this.rangeIndexMap,from:this.getRange(),to:this.getDomain(),notFoundReturn:this.options.unknown})}rescale(t){var[e]=this.options.domain,[n]=this.options.range;this.domainKey=Wm(e),this.rangeKey=Wm(n),this.rangeIndexMap?(t&&!t.range||this.rangeIndexMap.clear(),t&&!t.domain&&!t.compare||(this.domainIndexMap.clear(),this.sortedDomain=void 0)):(this.rangeIndexMap=new Map,this.domainIndexMap=new Map)}clone(){return new Ym(this.options)}getRange(){return this.options.range}getDomain(){var t,e;return this.sortedDomain||({domain:t,compare:e}=this.options,this.sortedDomain=e?[...t].sort(e):t),this.sortedDomain}}function Um(t){const e=t["domain"];var n=e.length;if(0===n)return{valueBandWidth:void 0,valueStep:void 0,adjustedRange:[]};const{range:r,paddingOuter:i,paddingInner:o,flex:a=[],round:s,align:l}=t;t=a,c=e.length;var u=0<(u=c-t.length)?[...t,...new Array(u).fill(1)]:u<0?t.slice(0,c):t,[c,t]=r,t=t-c,h=t/(2/n*i+1-1/n*o);const d=h*o/n;h-=n*d;const p=function(t){const e=Math.min(...t);return t.map(t=>t/e)}(u),f=h/p.reduce((t,e)=>t+e);u=new Map(e.map((t,e)=>{e=p[e]*f;return[t,s?Math.floor(e):e]}));const y=new Map(e.map((t,e)=>{e=p[e]*f+d;return[t,s?Math.floor(e):e]}));h=Array.from(y.values()).reduce((t,e)=>t+e),c+=(t-(h-h/n*o))*l;let g=s?Math.round(c):c;const m=new Array(n);for(let t=0;t<n;t+=1){m[t]=(v=g,Math.round(1e12*v)/1e12);var v=e[t];g+=y.get(v)}return{valueBandWidth:u,valueStep:y,adjustedRange:m}}class qm extends Ym{constructor(t){super(t)}getDefaultOptions(){return{domain:[],range:[0,1],align:.5,round:!1,paddingInner:0,paddingOuter:0,padding:0,unknown:void 0,flex:[]}}clone(){return new qm(this.options)}getStep(t){return void 0===this.valueStep?1:void 0===t?Array.from(this.valueStep.values())[0]:this.valueStep.get(t)}getBandWidth(t){return void 0===this.valueBandWidth?1:void 0===t?Array.from(this.valueBandWidth.values())[0]:this.valueBandWidth.get(t)}getRange(){return this.adjustedRange}getPaddingInner(){var{padding:t,paddingInner:e}=this.options;return 0<t?t:e}getPaddingOuter(){var{padding:t,paddingOuter:e}=this.options;return 0<t?t:e}rescale(){super.rescale();var{align:t,domain:e,range:n,round:r,flex:i}=this.options,{adjustedRange:t,valueBandWidth:n,valueStep:r}=Um({align:t,range:n,round:r,flex:i,paddingInner:this.getPaddingInner(),paddingOuter:this.getPaddingOuter(),domain:e});this.valueStep=r,this.valueBandWidth=n,this.adjustedRange=t}}function Xm(t,...e){return e.reduce((e,n)=>t=>e(n(t)),t)}function Zm(e,n){return n-e?t=>(t-e)/(n-e):t=>.5}function Km(t,e,n,r,i){let o=n||0,a=r||t.length;const s=i||(t=>t);for(;o<a;){var l=Math.floor((o+a)/2);s(t[l])>e?a=l:o=l+1}return o}const $m=Math.sqrt(50),Jm=Math.sqrt(10),Qm=Math.sqrt(2);function tv(t,e,n){e=(e-t)/Math.max(0,n),t=Math.floor(Math.log(e)/Math.LN10),n=e/10**t;return 0<=t?(n>=$m?10:n>=Jm?5:n>=Qm?2:1)*10**t:-(10**-t)/(n>=$m?10:n>=Jm?5:n>=Qm?2:1)}function ev(t,e,n){n=Math.abs(e-t)/Math.max(0,n);let r=10**Math.floor(Math.log(n)/Math.LN10);n/=r;return n>=$m?r*=10:n>=Jm?r*=5:n>=Qm&&(r*=2),e<t?-r:r}const nv=(t,e,n=5)=>{const r=[t,e];let i=0,o=r.length-1,a=r[i],s=r[o],l;return s<a&&([a,s]=[s,a],[i,o]=[o,i]),0<(l=tv(a,s,n))?(a=Math.floor(a/l)*l,s=Math.ceil(s/l)*l,l=tv(a,s,n)):l<0&&(a=Math.ceil(a*l)/l,s=Math.floor(s*l)/l,l=tv(a,s,n)),0<l?(r[i]=Math.floor(a/l)*l,r[o]=Math.ceil(s/l)*l):l<0&&(r[i]=Math.ceil(a*l)/l,r[o]=Math.floor(s*l)/l),r},rv=36e5,iv=864e5,ov=7*iv;iv,iv;function av(t,n,s,r){const i=(t,e)=>{let n=e;for(;n&&r(t)%e!=0;)s(t,-1),--n;return t},l=(t,e)=>{e&&i(t,e),n(t)};const u=(t,e)=>{t=new Date(+t-1);return l(t,e),s(t,e),l(t),t};return{ceil:u,floor:(t,e)=>{t=new Date(+t);return l(t,e),t},range:(t,e,n,r)=>{const i=[];for(var o=Math.floor(n),a=r?u(t,n):u(t);+a<+e;s(a,o),l(a))i.push(new Date(+a));return i},duration:t}}var s=av(1,t=>t,(t,e=1)=>{t.setTime(+t+e)},t=>t.getTime()),re=av(1e3,t=>{t.setMilliseconds(0)},(t,e=1)=>{t.setTime(+t+1e3*e)},t=>t.getSeconds()),l=av(6e4,t=>{t.setSeconds(0,0)},(t,e=1)=>{t.setTime(+t+6e4*e)},t=>t.getMinutes()),r=av(rv,t=>{t.setMinutes(0,0,0)},(t,e=1)=>{t.setTime(+t+rv*e)},t=>t.getHours()),w=av(iv,t=>{t.setHours(0,0,0,0)},(t,e=1)=>{t.setTime(+t+iv*e)},t=>t.getDate()-1);const sv=av(2592e6,t=>{t.setDate(1),t.setHours(0,0,0,0)},(t,e=1)=>{var n=t.getMonth();t.setMonth(n+e)},t=>t.getMonth());Nt=av(ov,t=>{t.setDate(t.getDate()-t.getDay()%7),t.setHours(0,0,0,0)},(t,e=1)=>{t.setTime(+t+ov*e)},t=>{var e=sv.floor(t),t=new Date(+t);return Math.floor((+t-+e)/ov)}),Lt=av(31536e6,t=>{t.setMonth(0,1),t.setHours(0,0,0,0)},(t,e=1)=>{var n=t.getFullYear();t.setFullYear(n+e)},t=>t.getFullYear());const lv={millisecond:s,second:re,minute:l,hour:r,day:w,week:Nt,month:sv,year:Lt};Ht=av(1,t=>t,(t,e=1)=>{t.setTime(+t+e)},t=>t.getTime()),Kt=av(1e3,t=>{t.setUTCMilliseconds(0)},(t,e=1)=>{t.setTime(+t+1e3*e)},t=>t.getUTCSeconds()),h=av(6e4,t=>{t.setUTCSeconds(0,0)},(t,e=1)=>{t.setTime(+t+6e4*e)},t=>t.getUTCMinutes()),n=av(rv,t=>{t.setUTCMinutes(0,0,0)},(t,e=1)=>{t.setTime(+t+rv*e)},t=>t.getUTCHours()),c=av(iv,t=>{t.setUTCHours(0,0,0,0)},(t,e=1)=>{t.setTime(+t+iv*e)},t=>t.getUTCDate()-1);const uv=av(2592e6,t=>{t.setUTCDate(1),t.setUTCHours(0,0,0,0)},(t,e=1)=>{var n=t.getUTCMonth();t.setUTCMonth(n+e)},t=>t.getUTCMonth());Yt=av(ov,t=>{t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7)%7),t.setUTCHours(0,0,0,0)},(t,e=1)=>{t.setTime(+t+ov*e)},t=>{var e=uv.floor(t),t=new Date(+t);return Math.floor((+t-+e)/ov)}),zt=av(31536e6,t=>{t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,e=1)=>{var n=t.getUTCFullYear();t.setUTCFullYear(n+e)},t=>t.getUTCFullYear());const cv={millisecond:Ht,second:Kt,minute:h,hour:n,day:c,week:Yt,month:uv,year:zt};function hv(t,e,n,r,i){var t=+t,e=+e,{tickIntervals:i,year:o,millisecond:a}=function(t){var{year:t,month:e,week:n,day:r,hour:i,minute:o,second:a,millisecond:s}=t?cv:lv;return{tickIntervals:[[a,1],[a,5],[a,15],[a,30],[o,1],[o,5],[o,15],[o,30],[i,1],[i,3],[i,6],[i,12],[r,1],[r,2],[n,1],[e,1],[e,3],[t,1]],year:t,millisecond:s}}(i),s=([t,e])=>t.duration*e,n=r?(e-t)/r:n||5,l=r||(e-t)/n,u=i.length,c=Km(i,l,0,u,s);let h;return h=c===u?[o,ev(t/o.duration,e/o.duration,n)]:c?([u,o]=l/s(i[c-1])<s(i[c])/l?i[c-1]:i[c],[u,r?Math.ceil(r/u.duration):o]):[a,Math.max(ev(t,e,n),1)]}const dv=(t,e,n,r,i)=>{var o=e<t,a=o?e:t,t=o?t:e;const[s,l]=hv(a,t,n,r,i),u=[s.floor(a,l),s.ceil(t,l)];return o?u.reverse():u};function pv(t){return!st(t)&&!at(t)&&!Number.isNaN(t)}const fv=e=>t=>-e(-t),yv=(t,e)=>{const n=Math.log(t);t=t===Math.E?Math.log:t=>Math.log(t)/n;return e?fv(t):t},gv=(e,t)=>{var n=e===Math.E?Math.exp:t=>e**t;return t?fv(n):n},mv=(t,e,n,r)=>{var i=t<0;const o=yv(r,i),a=gv(r,i);r=e<t,i=r?t:e;const s=[a(Math.floor(o(r?e:t))),a(Math.ceil(o(i)))];return r?s.reverse():s};var vv,jt={exports:{}},oe={exports:{}},bv=function(t){return!(!t||"string"==typeof t)&&(t instanceof Array||Array.isArray(t)||0<=t.length&&(t.splice instanceof Function||Object.getOwnPropertyDescriptor(t,t.length-1)&&"String"!==t.constructor.name))},xv=Array.prototype.concat,wv=Array.prototype.slice,Ev=oe.exports=function(t){for(var e=[],n=0,r=t.length;n<r;n++){var i=t[n];bv(i)?e=xv.call(e,wv.call(i)):e.push(i)}return e},_v=(Ev.wrap=function(t){return function(){return t(Ev(arguments))}},{aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}),kv=oe.exports,Tv=Object.hasOwnProperty,Mv=Object.create(null);for(vv in _v)Tv.call(_v,vv)&&(Mv[_v[vv]]=vv);var Sv=jt.exports={to:{},get:{}};function Ov(t,e,n){return Math.min(Math.max(e,t),n)}function Pv(t){t=Math.round(t).toString(16).toUpperCase();return t.length<2?"0"+t:t}Sv.get=function(t){var e,n;switch(t.substring(0,3).toLowerCase()){case"hsl":e=Sv.get.hsl(t),n="hsl";break;case"hwb":e=Sv.get.hwb(t),n="hwb";break;default:e=Sv.get.rgb(t),n="rgb"}return e?{model:n,value:e}:null},Sv.get.rgb=function(t){if(!t)return null;var e,n,r,i=[0,0,0,1];if(e=t.match(/^#([a-f0-9]{6})([a-f0-9]{2})?$/i)){for(r=e[2],e=e[1],n=0;n<3;n++){var o=2*n;i[n]=parseInt(e.slice(o,2+o),16)}r&&(i[3]=parseInt(r,16)/255)}else if(e=t.match(/^#([a-f0-9]{3,4})$/i)){for(r=(e=e[1])[3],n=0;n<3;n++)i[n]=parseInt(e[n]+e[n],16);r&&(i[3]=parseInt(r+r,16)/255)}else{if(e=t.match(/^rgba?\(\s*([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/))for(n=0;n<3;n++)i[n]=parseInt(e[n+1],0);else{if(!(e=t.match(/^rgba?\(\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/)))return(e=t.match(/^(\w+)$/))?"transparent"===e[1]?[0,0,0,0]:Tv.call(_v,e[1])?((i=_v[e[1]])[3]=1,i):null:null;for(n=0;n<3;n++)i[n]=Math.round(2.55*parseFloat(e[n+1]))}e[4]&&(e[5]?i[3]=.01*parseFloat(e[4]):i[3]=parseFloat(e[4]))}for(n=0;n<3;n++)i[n]=Ov(i[n],0,255);return i[3]=Ov(i[3],0,1),i},Sv.get.hsl=function(t){var e;return(t=t&&t.match(/^hsla?\(\s*([+-]?(?:\d{0,3}\.)?\d+)(?:deg)?\s*,?\s*([+-]?[\d\.]+)%\s*,?\s*([+-]?[\d\.]+)%\s*(?:[,|\/]\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:[eE][+-]?\d+)?)\s*)?\)$/))?(e=parseFloat(t[4]),[(parseFloat(t[1])%360+360)%360,Ov(parseFloat(t[2]),0,100),Ov(parseFloat(t[3]),0,100),Ov(isNaN(e)?1:e,0,1)]):null},Sv.get.hwb=function(t){var e;return(t=t&&t.match(/^hwb\(\s*([+-]?\d{0,3}(?:\.\d+)?)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:[eE][+-]?\d+)?)\s*)?\)$/))?(e=parseFloat(t[4]),[(parseFloat(t[1])%360+360)%360,Ov(parseFloat(t[2]),0,100),Ov(parseFloat(t[3]),0,100),Ov(isNaN(e)?1:e,0,1)]):null},Sv.to.hex=function(){var t=kv(arguments);return"#"+Pv(t[0])+Pv(t[1])+Pv(t[2])+(t[3]<1?Pv(Math.round(255*t[3])):"")},Sv.to.rgb=function(){var t=kv(arguments);return t.length<4||1===t[3]?"rgb("+Math.round(t[0])+", "+Math.round(t[1])+", "+Math.round(t[2])+")":"rgba("+Math.round(t[0])+", "+Math.round(t[1])+", "+Math.round(t[2])+", "+t[3]+")"},Sv.to.rgb.percent=function(){var t=kv(arguments),e=Math.round(t[0]/255*100),n=Math.round(t[1]/255*100),r=Math.round(t[2]/255*100);return t.length<4||1===t[3]?"rgb("+e+"%, "+n+"%, "+r+"%)":"rgba("+e+"%, "+n+"%, "+r+"%, "+t[3]+")"},Sv.to.hsl=function(){var t=kv(arguments);return t.length<4||1===t[3]?"hsl("+t[0]+", "+t[1]+"%, "+t[2]+"%)":"hsla("+t[0]+", "+t[1]+"%, "+t[2]+"%, "+t[3]+")"},Sv.to.hwb=function(){var t=kv(arguments),e="";return 4<=t.length&&1!==t[3]&&(e=", "+t[3]),"hwb("+t[0]+", "+t[1]+"%, "+t[2]+"%"+e+")"},Sv.to.keyword=function(t){return Mv[t.slice(0,3)]};var Av=jt.exports;function Nv(t,e,n){let r=n;return r<0&&(r+=1),1<r&&--r,r<1/6?t+6*(e-t)*r:r<.5?e:r<2/3?t+(e-t)*(2/3-r)*6:t}function Cv(t){var e,n,r,t=Av.get(t);return t?({model:t,value:e}=t,"rgb"===t?e:"hsl"===t?(e=(t=e)[0]/360,n=t[1]/100,r=t[2]/100,t=t[3],0==n?[255*r,255*r,255*r,t]:[255*Nv(n=2*r-(r=r<.5?r*(1+n):r+n-r*n),r,e+1/3),255*Nv(n,r,e),255*Nv(n,r,e-1/3),t]):null):null}const Lv=(e,n)=>t=>e*(1-t)+n*t,Iv=(t,e)=>{if("number"==typeof t&&"number"==typeof e)return Lv(t,e);if("string"!=typeof t||"string"!=typeof e)return()=>t;{var n=t,r=e;const l=Cv(n),u=Cv(r);return null===l||null===u?l?()=>n:()=>r:e=>{const n=new Array(4);for(let t=0;t<4;t+=1){var r=l[t],i=u[t];n[t]=r*(1-e)+i*e}var[t,o,a,s]=n;return`rgba(${Math.round(t)}, ${Math.round(o)}, ${Math.round(a)}, ${s})`}}},jv=(t,e)=>{const n=Lv(t,e);return t=>Math.round(n(t))};const Rv=(t,e,n)=>{let r,i,o=t,a=e;if(o===a&&0<n)return[o];let s=tv(o,a,n);if(0===s||!Number.isFinite(s))return[];if(0<s){o=Math.ceil(o/s),a=Math.floor(a/s),i=new Array(r=Math.ceil(a-o+1));for(let t=0;t<r;t+=1)i[t]=(o+t)*s}else{s=-s,o=Math.ceil(o*s),a=Math.floor(a*s),i=new Array(r=Math.ceil(a-o+1));for(let t=0;t<r;t+=1)i[t]=(o+t)/s}return i};function Dv(t){return Math.abs(t)<1e-15?t:parseFloat(t.toFixed(15))}const Bv=[1,5,2,2.5,4,3],Fv=100*Number.EPSILON;const zv=(n,r,t=5,i=!0,o=Bv,a=[.25,.2,.5,.05])=>{var s,l,u,c,h,d,p,f=t<0?0:Math.round(t);if(Number.isNaN(n)||Number.isNaN(r)||"number"!=typeof n||"number"!=typeof r||!f)return[];if(r-n<1e-15||1===f)return[n];const y={score:-2,lmin:0,lmax:0,lstep:0};let g=1;for(;g<1/0;){for(let t=0;t<o.length;t+=1){var m=o[t],v=(c=m,h=o,d=g,p=void 0,p=kt(h),1-wt(h,c)/(p-1)-d+1);if(a[0]*v+a[1]+a[2]+a[3]<y.score){g=1/0;break}let e=2;for(;e<1/0;){x=e;var b=(u=f)<=x?2-(x-1)/(u-1):1;if(a[0]*v+a[1]+a[2]*b+a[3]<y.score)break;var x=(r-n)/(e+1)/g/m;let t=Math.ceil(Math.log10(x));for(;t<1/0;){var w=g*m*10**t,E=(k=r,E=w*(e-1),(k-=n)<E?1-((E-k)/2)**2/(.1*k)**2:1);if(a[0]*v+a[1]*E+a[2]*b+a[3]<y.score)break;var _=Math.floor(r/w)*g-(e-1)*g,k=Math.ceil(n/w)*g;if(_<=k){var T=k-_;for(let t=0;t<=T;t+=1){var M=(_+t)*(w/g),S=M+w*(e-1),O=w,P=function(t,e,n,r,i,o){var a=kt(e),e=wt(e,t);let s=0;return t=(r%o+o)%o,1-e/(a-1)-n+(s=(t<Fv||o-t<Fv)&&r<=0&&0<=i?1:s)}(m,o,g,M,S,O),A=1-.5*((r-S)**2+(n-M)**2)/(.1*(r-n))**2,N=(s=e,N=n,s=(s-1)/(S-(C=M)),l=((l=f)-1)/(Math.max(S,r)-Math.min(N,C)),2-Math.max(s/l,l/s)),C=a[0]*P+a[1]*A+a[2]*N+ +a[3];C>y.score&&(!i||M<=n&&r<=S)&&(y.lmin=M,y.lmax=S,y.lstep=O,y.score=C)}}t+=1}e+=1}}g+=1}var t=Dv(y.lmax),e=Dv(y.lmin),L=Dv(y.lstep),I=Math.floor((t=(t-e)/L,Math.round(1e12*t)/1e12))+1;const j=new Array(I);j[0]=Dv(e);for(let t=1;t<I;t+=1)j[t]=Dv(j[t-1]+L);return j};class Vv extends Vm{getDefaultOptions(){return{domain:[0,1],range:[0,1],tickCount:5,unknown:void 0,tickMethod:zv}}map(t){return pv(t)?t:this.options.unknown}invert(t){return this.map(t)}clone(){return new Vv(this.options)}getTicks(){const{domain:t,tickCount:e,tickMethod:n}=this.options;var[r,i]=t;return Q(r)&&Q(i)?n(r,i,e):[]}}const Gv=(t,e,n)=>{var[t,r]=t,[e,i]=e;let o,a;return Xm(a=t<r?(o=Zm(t,r),n(e,i)):(o=Zm(r,t),n(i,e)),o)},Hv=(r,t,e)=>{const i=Math.min(r.length,t.length)-1,o=new Array(i),a=new Array(i);var n=r[0]>r[i],s=n?[...r].reverse():r,l=n?[...t].reverse():t;for(let t=0;t<i;t+=1)o[t]=Zm(s[t],s[t+1]),a[t]=e(l[t],l[t+1]);return t=>{var e=Km(r,t,1,i)-1,n=o[e];return Xm(a[e],n)(t)}},Wv=(t,e,n,r)=>{const i=2<Math.min(t.length,e.length)?Hv:Gv;r=r?jv:n;return i(t,e,r)};class Yv extends Vm{getDefaultOptions(){return{domain:[0,1],range:[0,1],nice:!1,clamp:!1,round:!1,interpolate:Lv,tickCount:5}}map(t){return pv(t)?this.output(t):this.options.unknown}invert(t){return pv(t)?this.input(t):this.options.unknown}nice(){var t,e,n,r;this.options.nice&&([t,e,n,...r]=this.getTickMethodOptions(),this.options.domain=this.chooseNice()(t,e,n,...r))}getTicks(){const t=this.options["tickMethod"];var[e,n,r,...i]=this.getTickMethodOptions();return t(e,n,r,...i)}getTickMethodOptions(){var{domain:t,tickCount:e}=this.options;return[t[0],t[t.length-1],e]}chooseNice(){return nv}rescale(){this.nice();var[t,e]=this.chooseTransforms();this.composeOutput(t,this.chooseClamp(t)),this.composeInput(t,e,this.chooseClamp(e))}chooseClamp(t){var{clamp:e,range:n}=this.options,t=this.options.domain.map(t),n=Math.min(t.length,n.length);if(e){e=t[0],t=t[n-1];const r=t<e?t:e,i=t<e?e:t;return t=>Math.min(Math.max(r,t),i)}return xt}composeOutput(t,e){const{domain:n,range:r,round:i,interpolate:o}=this.options;var a=Wv(n.map(t),r,o,i);this.output=Xm(a,e,t)}composeInput(t,e,n){const{domain:r,range:i}=this.options;t=Wv(i,r.map(t),Lv);this.input=Xm(e,n,t)}}class Uv extends Yv{getDefaultOptions(){return{domain:[0,1],range:[0,1],unknown:void 0,nice:!1,clamp:!1,round:!1,interpolate:Iv,tickMethod:Rv,tickCount:5}}chooseTransforms(){return[xt,xt]}clone(){return new Uv(this.options)}}class qv extends qm{getDefaultOptions(){return{domain:[],range:[0,1],align:.5,round:!1,padding:0,unknown:void 0,paddingInner:1,paddingOuter:0}}constructor(t){super(t)}getPaddingInner(){return 1}clone(){return new qv(this.options)}update(t){super.update(t)}getPaddingOuter(){return this.options.padding}}const Xv=t=>t<0?-Math.sqrt(-t):Math.sqrt(t);class Zv extends Yv{getDefaultOptions(){return{domain:[0,1],range:[0,1],nice:!1,clamp:!1,round:!1,exponent:2,interpolate:Iv,tickMethod:Rv,tickCount:5}}constructor(t){super(t)}chooseTransforms(){var t,e,n,r=this.options["exponent"];return 1===r?[xt,xt]:(t=.5===r?Xv:(e=r,t=>t<0?-((-t)**e):t**e),n=r,[t,t=>t<0?-((-t)**(1/n)):t**(1/n)])}clone(){return new Zv(this.options)}}class Kv extends Vm{constructor(t){super(t)}getDefaultOptions(){return{domain:[.5],range:[0,1]}}map(t){return pv(t)?(t=Km(this.thresholds,t,0,this.n),this.options.range[t]):this.options.unknown}invert(t){const e=this.options["range"];var t=e.indexOf(t),n=this.thresholds;return[n[t-1],n[t]]}clone(){return new Kv(this.options)}rescale(){var{domain:t,range:e}=this.options;this.n=Math.min(t.length,e.length-1),this.thresholds=t}}const $v=(t,e,n,r=10)=>{var i=t<0;const o=gv(r,i),a=yv(r,i);var s=e<t,l=s?e:t,u=s?t:e;let c=a(l),h=a(u),d=[];if(!(r%1)&&h-c<n){if(c=Math.floor(c),h=Math.ceil(h),i)for(;c<=h;c+=1){var p=o(c);for(let t=r-1;1<=t;--t){var f=p*t;if(u<f)break;l<=f&&d.push(f)}}else for(;c<=h;c+=1){var y=o(c);for(let t=1;t<r;t+=1){var g=y*t;if(u<g)break;l<=g&&d.push(g)}}2*d.length<n&&(d=Rv(l,u,n))}else d=Rv(c,h,Math.min(h-c,n)).map(o);return s?d.reverse():d};class Jv extends Yv{getDefaultOptions(){return{domain:[1,10],range:[0,1],base:10,interpolate:Iv,tickMethod:$v,tickCount:5}}chooseNice(){return mv}getTickMethodOptions(){var{domain:t,tickCount:e,base:n}=this.options;return[t[0],t[t.length-1],e,n]}chooseTransforms(){var{base:t,domain:e}=this.options,e=e[0]<0;return[yv(t,e),gv(t,e)]}clone(){return new Jv(this.options)}}class Qv extends Kv{getDefaultOptions(){return{domain:[0,1],range:[.5],nice:!1,tickCount:5,tickMethod:zv}}constructor(t){super(t)}nice(){var t,e,n=this.options["nice"];n&&([n,t,e]=this.getTickMethodOptions(),this.options.domain=nv(n,t,e))}getTicks(){const t=this.options["tickMethod"];var[e,n,r]=this.getTickMethodOptions();return t(e,n,r)}getTickMethodOptions(){var{domain:t,tickCount:e}=this.options;return[t[0],t[t.length-1],e]}rescale(){this.nice();var{range:t,domain:e}=this.options,[n,r]=e;this.n=t.length-1,this.thresholds=new Array(this.n);for(let t=0;t<this.n;t+=1)this.thresholds[t]=((t+1)*r-(t-this.n)*n)/(this.n+1)}invert(t){var[t,e]=super.invert(t),[n,r]=this.options.domain;return void 0===t&&void 0===e?[t,e]:[t||n,e||r]}getThresholds(){return this.thresholds}clone(){return new Qv(this.options)}}function t1(t,e,n=!1){const r=t,i=(n||r.sort((t,e)=>t-e),[]);for(let t=1;t<e;t+=1)i.push(function(t,e){var n,r=t.length;if(r)return r<2?t[r-1]:(r=(r-1)*e,(n=t[e=Math.floor(r)])+(t[e+1]-n)*(r-e))}(r,t/e));return i}class e1 extends Kv{getDefaultOptions(){return{domain:[],range:[],tickCount:5,unknown:void 0,tickMethod:zv}}constructor(t){super(t)}rescale(){var{domain:t,range:e}=this.options;this.n=e.length-1,this.thresholds=t1(t,this.n+1,!1)}invert(t){var[t,e]=super.invert(t),n=this.options["domain"],r=n[0],n=n[n.length-1];return void 0===t&&void 0===e?[t,e]:[t||r,e||n]}getThresholds(){return this.thresholds}clone(){return new e1(this.options)}getTicks(){const{tickCount:t,domain:e,tickMethod:n}=this.options;var r=e.length-1,i=e[0],r=e[r];return n(i,r,t)}}var n1=/d{1,4}|M{1,4}|YY(?:YY)?|S{1,3}|Do|ZZ|Z|([HhMsDm])\1?|[aA]|"[^"]*"|'[^']*'/g,r1=/\[([^]*?)\]/gm;function i1(t,e){for(var n=[],r=0,i=t.length;r<i;r++)n.push(t[r].substr(0,e));return n}function o1(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 o,a=i[r];for(o in a)t[o]=a[o]}return t}function a1(t,e){for(void 0===e&&(e=2),t=String(t);t.length<e;)t="0"+t;return t}var a=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],d=["January","February","March","April","May","June","July","August","September","October","November","December"],u=i1(d,3),s1=o1({},{dayNamesShort:i1(a,3),dayNames:a,monthNamesShort:u,monthNames:d,amPm:["am","pm"],DoFn:function(t){return t+["th","st","nd","rd"][3<t%10?0:(t-t%10!=10?1:0)*t%10]}}),l1={D:function(t){return String(t.getDate())},DD:function(t){return a1(t.getDate())},Do:function(t,e){return e.DoFn(t.getDate())},d:function(t){return String(t.getDay())},dd:function(t){return a1(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 a1(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 a1(String(t.getFullYear()),4).substr(2)},YYYY:function(t){return a1(t.getFullYear(),4)},h:function(t){return String(t.getHours()%12||12)},hh:function(t){return a1(t.getHours()%12||12)},H:function(t){return String(t.getHours())},HH:function(t){return a1(t.getHours())},m:function(t){return String(t.getMinutes())},mm:function(t){return a1(t.getMinutes())},s:function(t){return String(t.getSeconds())},ss:function(t){return a1(t.getSeconds())},S:function(t){return String(Math.round(t.getMilliseconds()/100))},SS:function(t){return a1(Math.round(t.getMilliseconds()/10),2)},SSS:function(t){return a1(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]:e.amPm[1]).toUpperCase()},ZZ:function(t){t=t.getTimezoneOffset();return(0<t?"-":"+")+a1(100*Math.floor(Math.abs(t)/60)+Math.abs(t)%60,4)},Z:function(t){t=t.getTimezoneOffset();return(0<t?"-":"+")+a1(Math.floor(Math.abs(t)/60),2)+":"+a1(Math.abs(t)%60,2)}},u1={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"};const c1=(t,e,n,r,i)=>{var o=e<t,a=o?e:t,t=o?t:e;const[s,l]=hv(a,t,n,r,i),u=s.range(a,new Date(+t+1),l,!0);return o?u.reverse():u};function h1(t){var e=t.getTimezoneOffset();const n=new Date(t);return n.setMinutes(n.getMinutes()+e,n.getSeconds(),n.getMilliseconds()),n}class d1 extends Yv{getDefaultOptions(){return{domain:[new Date(2e3,0,1),new Date(2e3,0,2)],range:[0,1],nice:!1,tickCount:5,tickInterval:void 0,unknown:void 0,clamp:!1,tickMethod:c1,interpolate:Lv,mask:void 0,utc:!1}}chooseTransforms(){return[t=>+t,t=>new Date(t)]}chooseNice(){return dv}getTickMethodOptions(){var{domain:t,tickCount:e,tickInterval:n,utc:r}=this.options;return[t[0],t[t.length-1],e,n,r]}getFormatter(){const{mask:o,utc:t}=this.options,a=t?cv:lv,s=t?h1:xt;return t=>{var e=s(t),t=o||function(t,e){const{second:n,minute:r,hour:i,day:o,week:a,month:s,year:l}=e;return n.floor(t)<t?".SSS":r.floor(t)<t?":ss":i.floor(t)<t?"hh:mm":o.floor(t)<t?"hh A":s.floor(t)<t?a.floor(t)<t?"MMM DD":"ddd DD":l.floor(t)<t?"MMMM":"YYYY"}(t,a),n=void 0;if(void 0===t&&(t=u1.default),void 0===n&&(n={}),"number"==typeof e&&(e=new Date(e)),"[object Date]"!==Object.prototype.toString.call(e)||isNaN(e.getTime()))throw new Error("Invalid Date pass to format");var r=[],i=(t=(t=u1[t]||t).replace(r1,function(t,e){return r.push(e),"@@@"}),o1(o1({},s1),n));return(t=t.replace(n1,function(t){return l1[t](e,i)})).replace(/@@@/g,function(){return r.shift()})}}clone(){return new d1(this.options)}}const p1=t=>new qm(t),f1=(p1.props={},t=>new Uv(t)),y1=(f1.props={},t=>new Ym(t)),g1=(y1.props={},t=>new Vv(t)),m1=(g1.props={},t=>new qv(t)),v1=(m1.props={},t=>new d1(t)),b1=(v1.props={},t=>new Jv(t)),x1=(b1.props={},t=>new Zv(t)),w1=(x1.props={},t=>new Kv(t)),E1=(w1.props={},t=>new e1(t)),_1=(E1.props={},t=>new Qv(t)),k1=(_1.props={},Math.PI),T1=2*k1,M1=1e-6,S1=T1-M1;function O1(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function P1(){return new O1}function A1(t){return function(){return t}}O1.prototype=P1.prototype={constructor:O1,moveTo:function(t,e){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+e)},closePath:function(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(t,e){this._+="L"+(this._x1=+t)+","+(this._y1=+e)},quadraticCurveTo:function(t,e,n,r){this._+="Q"+ +t+","+ +e+","+(this._x1=+n)+","+(this._y1=+r)},bezierCurveTo:function(t,e,n,r,i,o){this._+="C"+ +t+","+ +e+","+ +n+","+ +r+","+(this._x1=+i)+","+(this._y1=+o)},arcTo:function(t,e,n,r,i){var o,a,s=this._x1,l=this._y1,u=(n=+n)-(t=+t),c=(r=+r)-(e=+e),h=s-t,d=l-e,p=h*h+d*d;if((i=+i)<0)throw new Error("negative radius: "+i);null===this._x1?this._+="M"+(this._x1=t)+","+(this._y1=e):p>M1&&(Math.abs(d*u-c*h)>M1&&i?(a=u*u+c*c,r=(n=n-s)*n+(s=r-l)*s,l=Math.sqrt(a),o=Math.sqrt(p),p=(a=i*Math.tan((k1-Math.acos((a+p-r)/(2*l*o)))/2))/o,r=a/l,Math.abs(p-1)>M1&&(this._+="L"+(t+p*h)+","+(e+p*d)),this._+="A"+i+","+i+",0,0,"+ +(h*s<d*n)+","+(this._x1=t+r*u)+","+(this._y1=e+r*c)):this._+="L"+(this._x1=t)+","+(this._y1=e))},arc:function(t,e,n,r,i,o){t=+t,e=+e,o=!!o;var a=(n=+n)*Math.cos(r),s=n*Math.sin(r),l=t+a,u=e+s,c=1^o,o=o?r-i:i-r;if(n<0)throw new Error("negative radius: "+n);null===this._x1?this._+="M"+l+","+u:(Math.abs(this._x1-l)>M1||Math.abs(this._y1-u)>M1)&&(this._+="L"+l+","+u),n&&((o=o<0?o%T1+T1:o)>S1?this._+="A"+n+","+n+",0,1,"+c+","+(t-a)+","+(e-s)+"A"+n+","+n+",0,1,"+c+","+(this._x1=l)+","+(this._y1=u):o>M1&&(this._+="A"+n+","+n+",0,"+ +(o>=k1)+","+c+","+(this._x1=t+n*Math.cos(i))+","+(this._y1=e+n*Math.sin(i))))},rect:function(t,e,n,r){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+e)+"h"+ +n+"v"+ +r+"h"+-n+"Z"},toString:function(){return this._}};const N1=Math.abs,C1=Math.atan2,L1=Math.cos,I1=Math.max,j1=Math.min,R1=Math.sin,D1=Math.sqrt,B1=1e-12,F1=Math.PI,z1=F1/2,V1=2*F1;function G1(t){return 1<=t?z1:t<=-1?-z1:Math.asin(t)}function H1(t){return t.innerRadius}function W1(t){return t.outerRadius}function Y1(t){return t.startAngle}function U1(t){return t.endAngle}function q1(t){return t&&t.padAngle}function X1(t,e,n,r,i,o,a){var s=t-n,l=e-r,a=(a?o:-o)/D1(s*s+l*l),l=a*l,a=-a*s,s=t+l,t=e+a,e=n+l,n=r+a,r=(s+e)/2,u=(t+n)/2,c=e-s,h=n-t,d=c*c+h*h,o=i-o,s=s*n-e*t,n=(h<0?-1:1)*D1(I1(0,o*o*d-s*s)),e=(s*h-c*n)/d,t=(-s*c-h*n)/d,p=(s*h+c*n)/d,s=(-s*c+h*n)/d,c=e-r,h=t-u,n=p-r,d=s-u;return n*n+d*d<c*c+h*h&&(e=p,t=s),{cx:e,cy:t,x01:-l,y01:-a,x11:e*(i/o-1),y11:t*(i/o-1)}}function Z1(){var O=H1,P=W1,A=A1(0),N=null,C=Y1,L=U1,I=q1,j=null;function e(){var t,e,n,r,i,o,a,s,l,u,c,h,d,p,f,y,g,m,v,b,x,w,E=+O.apply(this,arguments),_=+P.apply(this,arguments),k=C.apply(this,arguments)-z1,T=L.apply(this,arguments)-z1,M=N1(T-k),S=k<T;if(j=j||(t=P1()),_<E&&(e=_,_=E,E=e),_>B1?M>V1-B1?(j.moveTo(_*L1(k),_*R1(k)),j.arc(0,0,_,k,T,!S),E>B1&&(j.moveTo(E*L1(T),E*R1(T)),j.arc(0,0,E,T,k,S))):(r=e=k,i=n=T,a=o=M,d=(c=I.apply(this,arguments)/2)>B1&&(N?+N.apply(this,arguments):D1(E*E+_*_)),w=x=s=j1(N1(_-E)/2,+A.apply(this,arguments)),d>B1&&(h=G1(d/E*R1(c)),d=G1(d/_*R1(c)),(o-=2*h)>B1?(r+=h*=S?1:-1,i-=h):(o=0,r=i=(k+T)/2),(a-=2*d)>B1?(e+=d*=S?1:-1,n-=d):(a=0,e=n=(k+T)/2)),c=_*L1(e),h=_*R1(e),d=E*L1(i),k=E*R1(i),s>B1&&(p=_*L1(n),f=_*R1(n),y=E*L1(r),g=E*R1(r),M<F1&&(T=function(t,e,n,r,i,o,a,s){var l=(s=s-o)*(n=n-t)-(a=a-i)*(r=r-e);if(!(l*l<B1))return[t+(l=(a*(e-o)-s*(t-i))/l)*n,e+l*r]}(c,h,y,g,p,f,d,k))&&(M=c-T[0],v=h-T[1],b=p-T[0],m=f-T[1],v=1/R1((1<(M=(M*b+v*m)/(D1(M*M+v*v)*D1(b*b+m*m)))?0:M<-1?F1:Math.acos(M))/2),b=D1(T[0]*T[0]+T[1]*T[1]),x=j1(s,(E-b)/(v-1)),w=j1(s,(_-b)/(1+v)))),a>B1?w>B1?(l=X1(y,g,c,h,_,w,S),u=X1(p,f,d,k,_,w,S),j.moveTo(l.cx+l.x01,l.cy+l.y01),w<s?j.arc(l.cx,l.cy,w,C1(l.y01,l.x01),C1(u.y01,u.x01),!S):(j.arc(l.cx,l.cy,w,C1(l.y01,l.x01),C1(l.y11,l.x11),!S),j.arc(0,0,_,C1(l.cy+l.y11,l.cx+l.x11),C1(u.cy+u.y11,u.cx+u.x11),!S),j.arc(u.cx,u.cy,w,C1(u.y11,u.x11),C1(u.y01,u.x01),!S))):(j.moveTo(c,h),j.arc(0,0,_,e,n,!S)):j.moveTo(c,h),E>B1&&o>B1?x>B1?(l=X1(d,k,p,f,E,-x,S),u=X1(c,h,y,g,E,-x,S),j.lineTo(l.cx+l.x01,l.cy+l.y01),x<s?j.arc(l.cx,l.cy,x,C1(l.y01,l.x01),C1(u.y01,u.x01),!S):(j.arc(l.cx,l.cy,x,C1(l.y01,l.x01),C1(l.y11,l.x11),!S),j.arc(0,0,E,C1(l.cy+l.y11,l.cx+l.x11),C1(u.cy+u.y11,u.cx+u.x11),S),j.arc(u.cx,u.cy,x,C1(u.y11,u.x11),C1(u.y01,u.x01),!S))):j.arc(0,0,E,i,r,S):j.lineTo(d,k)):j.moveTo(0,0),j.closePath(),t)return j=null,t+""||null}return e.centroid=function(){var t=(+O.apply(this,arguments)+ +P.apply(this,arguments))/2,e=(+C.apply(this,arguments)+ +L.apply(this,arguments))/2-F1/2;return[L1(e)*t,R1(e)*t]},e.innerRadius=function(t){return arguments.length?(O="function"==typeof t?t:A1(+t),e):O},e.outerRadius=function(t){return arguments.length?(P="function"==typeof t?t:A1(+t),e):P},e.cornerRadius=function(t){return arguments.length?(A="function"==typeof t?t:A1(+t),e):A},e.padRadius=function(t){return arguments.length?(N=null==t?null:"function"==typeof t?t:A1(+t),e):N},e.startAngle=function(t){return arguments.length?(C="function"==typeof t?t:A1(+t),e):C},e.endAngle=function(t){return arguments.length?(L="function"==typeof t?t:A1(+t),e):L},e.padAngle=function(t){return arguments.length?(I="function"==typeof t?t:A1(+t),e):I},e.context=function(t){return arguments.length?(j=null==t?null:t,e):j},e}function K1(t){return"object"==typeof t&&"length"in t?t:Array.from(t)}function $1(t){this._context=t}function J1(t){return new $1(t)}function Q1(t){return t[0]}function tb(t){return t[1]}function eb(a,s){var l=A1(!0),u=null,c=J1,h=null;function e(t){var e,n,r,i=(t=K1(t)).length,o=!1;for(null==u&&(h=c(r=P1())),e=0;e<=i;++e)!(e<i&&l(n=t[e],e,t))===o&&((o=!o)?h.lineStart():h.lineEnd()),o&&h.point(+a(n,e,t),+s(n,e,t));if(r)return h=null,r+""||null}return a="function"==typeof a?a:void 0===a?Q1:A1(a),s="function"==typeof s?s:void 0===s?tb:A1(s),e.x=function(t){return arguments.length?(a="function"==typeof t?t:A1(+t),e):a},e.y=function(t){return arguments.length?(s="function"==typeof t?t:A1(+t),e):s},e.defined=function(t){return arguments.length?(l="function"==typeof t?t:A1(!!t),e):l},e.curve=function(t){return arguments.length?(c=t,null!=u&&(h=c(u)),e):c},e.context=function(t){return arguments.length?(null==t?u=h=null:h=c(u=t),e):u},e}function nb(c,h,d){var p=null,f=A1(!0),y=null,g=J1,m=null;function e(t){var e,n,r,i,o,a=(t=K1(t)).length,s=!1,l=new Array(a),u=new Array(a);for(null==y&&(m=g(o=P1())),e=0;e<=a;++e){if(!(e<a&&f(i=t[e],e,t))===s)if(s=!s)n=e,m.areaStart(),m.lineStart();else{for(m.lineEnd(),m.lineStart(),r=e-1;n<=r;--r)m.point(l[r],u[r]);m.lineEnd(),m.areaEnd()}s&&(l[e]=+c(i,e,t),u[e]=+h(i,e,t),m.point(p?+p(i,e,t):l[e],d?+d(i,e,t):u[e]))}if(o)return m=null,o+""||null}function t(){return eb().defined(f).curve(g).context(y)}return c="function"==typeof c?c:void 0===c?Q1:A1(+c),h="function"==typeof h?h:A1(void 0===h?0:+h),d="function"==typeof d?d:void 0===d?tb:A1(+d),e.x=function(t){return arguments.length?(c="function"==typeof t?t:A1(+t),p=null,e):c},e.x0=function(t){return arguments.length?(c="function"==typeof t?t:A1(+t),e):c},e.x1=function(t){return arguments.length?(p=null==t?null:"function"==typeof t?t:A1(+t),e):p},e.y=function(t){return arguments.length?(h="function"==typeof t?t:A1(+t),d=null,e):h},e.y0=function(t){return arguments.length?(h="function"==typeof t?t:A1(+t),e):h},e.y1=function(t){return arguments.length?(d=null==t?null:"function"==typeof t?t:A1(+t),e):d},e.lineX0=e.lineY0=function(){return t().x(c).y(h)},e.lineY1=function(){return t().x(c).y(d)},e.lineX1=function(){return t().x(p).y(h)},e.defined=function(t){return arguments.length?(f="function"==typeof t?t:A1(!!t),e):f},e.curve=function(t){return arguments.length?(g=t,null!=y&&(m=g(y)),e):g},e.context=function(t){return arguments.length?(null==t?y=m=null:m=g(y=t),e):y},e}$1.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:this._context.lineTo(t,e)}}};var rb=ob(J1);function ib(t){this._curve=t}function ob(e){function t(t){return new ib(e(t))}return t._curve=e,t}function ab(t){var e=t.curve;return t.angle=t.x,delete t.x,t.radius=t.y,delete t.y,t.curve=function(t){return arguments.length?e(ob(t)):e()._curve},t}function sb(){}function lb(t,e,n){t._context.bezierCurveTo(t._x1+t._k*(t._x2-t._x0),t._y1+t._k*(t._y2-t._y0),t._x2+t._k*(t._x1-e),t._y2+t._k*(t._y1-n),t._x2,t._y2)}function ub(t,e){this._context=t,this._k=(1-e)/6}function cb(t,e){this._context=t,this._k=(1-e)/6}function hb(t,e,n){var r,i,o=t._x1,a=t._y1,s=t._x2,l=t._y2;t._l01_a>B1&&(r=2*t._l01_2a+3*t._l01_a*t._l12_a+t._l12_2a,i=3*t._l01_a*(t._l01_a+t._l12_a),o=(o*r-t._x0*t._l12_2a+t._x2*t._l01_2a)/i,a=(a*r-t._y0*t._l12_2a+t._y2*t._l01_2a)/i),t._l23_a>B1&&(r=2*t._l23_2a+3*t._l23_a*t._l12_a+t._l12_2a,i=3*t._l23_a*(t._l23_a+t._l12_a),s=(s*r+t._x1*t._l23_2a-e*t._l12_2a)/i,l=(l*r+t._y1*t._l23_2a-n*t._l12_2a)/i),t._context.bezierCurveTo(o,a,s,l,t._x2,t._y2)}function db(t,e){this._context=t,this._alpha=e}ib.prototype={areaStart:function(){this._curve.areaStart()},areaEnd:function(){this._curve.areaEnd()},lineStart:function(){this._curve.lineStart()},lineEnd:function(){this._curve.lineEnd()},point:function(t,e){this._curve.point(e*Math.sin(t),e*-Math.cos(t))}},ub.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:lb(this,this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2,this._x1=t,this._y1=e;break;case 2:this._point=3;default:lb(this,t,e)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}},function e(n){function t(t){return new ub(t,n)}return t.tension=function(t){return e(+t)},t}(0),cb.prototype={areaStart:sb,areaEnd:sb,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._x3=t,this._y3=e;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=e);break;case 2:this._point=3,this._x5=t,this._y5=e;break;default:lb(this,t,e)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}},function e(n){function t(t){return new cb(t,n)}return t.tension=function(t){return e(+t)},t}(0),db.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){var n,r;switch(t=+t,e=+e,this._point&&(n=this._x2-t,r=this._y2-e,this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))),this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3;default:hb(this,t,e)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var pb=function e(n){function t(t){return n?new db(t,n):new ub(t,0)}return t.alpha=function(t){return e(+t)},t}(.5);function fb(t,e){this._context=t,this._alpha=e}fb.prototype={areaStart:sb,areaEnd:sb,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(t,e){var n,r;switch(t=+t,e=+e,this._point&&(n=this._x2-t,r=this._y2-e,this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))),this._point){case 0:this._point=1,this._x3=t,this._y3=e;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=e);break;case 2:this._point=3,this._x5=t,this._y5=e;break;default:hb(this,t,e)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var yb=function e(n){function t(t){return n?new fb(t,n):new cb(t,0)}return t.alpha=function(t){return e(+t)},t}(.5);function gb(t){this._context=t}function mb(t){return new gb(t)}function vb(t,e){this._context=t,this._t=e}function bb(t){return new vb(t,.5)}function xb(t){return new vb(t,0)}function wb(t){return new vb(t,1)}function Eb(t){return t}function _b(t){return t.reduce((n,r)=>e=>Ot(this,void 0,void 0,function*(){var t=yield n(e);return r(t)}),Eb)}function kb(t=""){throw new Error(t)}function Tb(t,e){var n,r,e=e["attributes"];const i=new Set(["id","className"]);for([n,r]of Object.entries(e))i.has(n)||t.attr(n,r)}function Mb(t){return null!=t&&!Number.isNaN(t)}function Sb(t,e){return t+(e-t)*Math.random()}function Ob(t){return new Pb([t],null,t,t.ownerDocument)}gb.prototype={areaStart:sb,areaEnd:sb,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(t,e){t=+t,e=+e,this._point?this._context.lineTo(t,e):(this._point=1,this._context.moveTo(t,e))}},vb.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&2===this._point&&this._context.lineTo(this._x,this._y),(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),0<=this._line&&(this._t=1-this._t,this._line=1-this._line)},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:var n;this._t<=0?(this._context.lineTo(this._x,e),this._context.lineTo(t,e)):(n=this._x*(1-this._t)+t*this._t,this._context.lineTo(n,this._y),this._context.lineTo(n,e))}this._x=t,this._y=e}};class Pb{constructor(t=null,e=null,n=null,r=null,i=[null,null,null,null,null],o=[],a=[]){this._elements=Array.from(t),this._data=e,this._parent=n,this._document=r,this._enter=i[0],this._update=i[1],this._exit=i[2],this._merge=i[3],this._split=i[4],this._transitions=o,this._facetElements=a}selectAll(t){t="string"==typeof t?this._parent.querySelectorAll(t):t;return new Pb(t,null,this._elements[0],this._document)}selectFacetAll(t){t="string"==typeof t?this._parent.querySelectorAll(t):t;return new Pb(this._elements,null,this._parent,this._document,void 0,void 0,t)}select(t){t="string"==typeof t?this._parent.querySelectorAll(t)[0]||null:t;return new Pb([t],null,t,this._document)}append(t){const e=t=>{if(this._document)return this._document.createElement(t,{});const e=Pb.registry[t];return e?new e:kb("Unknown node type: "+t)},n="function"==typeof t?t:()=>e(t),r=[];if(null!==this._data){for(let t=0;t<this._data.length;t++){var i=this._data[t],[i,o]=Array.isArray(i)?i:[i,null];const s=n(i,t);s.__data__=i,null!==o&&(s.__fromElements__=o),this._parent.appendChild(s),r.push(s)}return new Pb(r,null,this._parent,this._document)}for(let t=0;t<this._elements.length;t++){const l=this._elements[t];var a=l.__data__,a=n(a,t);l.appendChild(a),r.push(a)}return new Pb(r,null,r[0],this._document)}data(e,n=t=>t,r=()=>null){const i=[],o=[],a=new Set(this._elements),s=[],l=new Set,u=new Map(this._elements.map((t,e)=>[n(t.__data__,e),t])),c=new Map(this._facetElements.map((t,e)=>[n(t.__data__,e),t])),h=tm(this._elements,t=>r(t.__data__));for(let t=0;t<e.length;t++){var d=e[t],p=n(d,t),f=r(d,t);if(u.has(p)){const y=u.get(p);y.__data__=d,y.__facet__=!1,o.push(y),a.delete(y),u.delete(p)}else if(c.has(p)){const g=c.get(p);g.__data__=d,g.__facet__=!0,o.push(g),c.delete(p)}else if(h.has(p)){const tm=h.get(p);s.push([d,tm]);for(const m of tm)a.delete(m);h.delete(p)}else if(u.has(f)){const v=u.get(f);v.__toData__?v.__toData__.push(d):v.__toData__=[d],l.add(v),a.delete(v)}else i.push(d)}var t=[new Pb([],i,this._parent,this._document),new Pb(o,null,this._parent,this._document),new Pb(a,null,this._parent,this._document),new Pb([],s,this._parent,this._document),new Pb(l,null,this._parent,this._document)];return new Pb(this._elements,null,this._parent,this._document,t)}merge(t){var e=[...this._elements,...t._elements],t=[...this._transitions,...t._transitions];return new Pb(e,null,this._parent,this._document,void 0,t)}join(t=t=>t,e=t=>t,n=t=>t.remove(),r=t=>t,i=t=>t.remove()){t=t(this._enter);const o=e(this._update);e=n(this._exit),n=r(this._merge),r=i(this._split);return o.merge(t).merge(e).merge(n).merge(r)}remove(){for(let t=0;t<this._elements.length;t++){const e=this._elements[t],n=this._transitions[t];n?n.then(()=>e.remove()):e.remove()}return new Pb([],null,this._parent,this._document,void 0,this._transitions)}each(e){for(let t=0;t<this._elements.length;t++){var n=this._elements[t],r=n.__data__;e.call(n,r,t)}return this}attr(n,r){const i="function"!=typeof r?()=>r:r;return this.each(function(t,e){void 0!==r&&(this[n]=i.call(this,t,e))})}style(n,r){const i="function"!=typeof r?()=>r:r;return this.each(function(t,e){void 0!==r&&(this.style[n]=i.call(this,t,e))})}transition(t){const n="function"!=typeof t?()=>t:t,r=this["_transitions"];return this.each(function(t,e){r[e]=n.call(this,t,e)})}on(t,e){return this.each(function(){this.addEventListener(t,e)}),this}call(t,...e){return t.call(this._parent,this,...e),this}node(){return this._elements[0]}nodes(){return this._elements}transitions(){return this._transitions}parent(){return this._parent}}function Ab([t,e],[n,r]){return[t-n,e-r]}function Nb([t,e],[n,r]){return Math.sqrt(Math.pow(t-n,2)+Math.pow(e-r,2))}function Cb([t,e]){return Math.atan2(e,t)+Math.PI/2}function Lb(t){let e=1/0,n=-1/0,r=1/0,i=-1/0;for(var[o,a]of t)e=Math.min(o,e),n=Math.max(o,n),r=Math.min(a,r),i=Math.max(a,i);var t=n-e,s=i-r;return[e,r,t,s]}function Ib(t,e){for(var[n,r]of Object.entries(e))t.style(n,r)}function jb(n,t){return t.forEach((t,e)=>0===e?n.moveTo(t[0],t[1]):n.lineTo(t[0],t[1])),n.closePath(),n}function Rb(t,e,n){var n=Object.assign({size:8},n)["size"],n="string"==typeof n?+parseFloat(n)/100*Nb(t,e):n,r=Math.PI/6,t=Math.atan2(e[1]-t[1],e[0]-t[0]),i=Math.PI/2-t-r,t=t-r;return[[e[0]-n*Math.sin(i),e[1]-n*Math.cos(i)],[e[0]-n*Math.cos(t),e[1]-n*Math.sin(t)]]}function Db(t,e,n,r,i){e=Cb(Ab(r,e))+Math.PI/2,n=Cb(Ab(r,n))+Math.PI/2;t.arc(r[0],r[1],i,e,n,n-e<0)}function Bb(t,n){const r=new Uv({domain:[n[0],n[n.length-1]],range:[0,100]});return`linear-gradient(${t.map((t,e)=>`${t} ${r.map(n[e])}%`).join(",")})`}function Fb(t,e,n){var[e,r,,i]=dm(t)?function(t){var[t,e,n,r]=t;return[r,t,e,n]}(e):e,[n,o]=n,t=t.getCenter(),a=Cb(Ab(e,t)),r=Cb(Ab(r,t)),n=r===a&&n!==o?r+2*Math.PI:r;return{startAngle:a,endAngle:0<=n-a?n:2*Math.PI+n,innerRadius:Nb(i,t),outerRadius:Nb(e,t)}}Pb.registry={g:tp,rect:dp,circle:Kd,path:ap,text:fp,ellipse:Jd,image:np,line:ip,polygon:lp,polyline:cp,html:gp};const zb=t=>{const l=t["colorAttribute"],u=I(t,["colorAttribute"]),c="stroke"===l?1:0;return(t,e,n,r)=>{var{radius:i=0}=u,r=r["defaultColor"],{color:r=r}=e;if(!pm(n)&&!fm(n))return Ob(new ap).style("lineWidth",c).style("d",jb(P1(),t).toString()).style("stroke",r).style(l,r).call(Ib,u).node();var{y:e,y1:o}=e,a=n.getCenter(),n=Fb(n,t,[e,o]);const s=Z1().cornerRadius(i);return Ob(new ap({})).style("path",s(n)).style("transform",`translate(${a[0]}, ${a[1]})`).style("stroke",r).style(l,r).call(Ib,u).node()}},Vb=(zb.props={defaultEnterAnimation:"scaleInY"},t=>zb(Object.assign({colorAttribute:"fill"},t))),Gb=(Vb.props=Object.assign({},zb.props),t=>zb(Object.assign({colorAttribute:"stroke"},t)));Gb.props=Object.assign({},zb.props);const Hb=t=>{const{adjustPoints:s=function(t,e,n){var[t,r,i,o]=t;if(dm(n)){const a=[(e?e[0]:r)[0],r[1]],s=[(e?e[3]:i)[0],i[1]];return[t,a,s,o]}const a=[r[0],(e?e[0]:r)[1]],s=[i[0],(e?e[3]:i)[1]];return[t,a,s,o]}}=t,l=I(t,["adjustPoints"]);return(t,e,n,r,i,...o)=>{var a=e["index"],a=i[a+1],t=s(t,a,n);return zb(Object.assign({colorAttribute:"fill"},l))(t,e,n,r,i,...o)}};function Wb(t,e,n){var[t,r,i,o]=t;if(dm(n)){const a=[e?e[0][0]:(r[0]+i[0])/2,r[1]],s=[e?e[3][0]:(r[0]+i[0])/2,i[1]];return[t,a,s,o]}const a=[r[0],e?e[0][1]:(r[1]+i[1])/2],s=[i[0],e?e[3][1]:(r[1]+i[1])/2];return[t,a,s,o]}Hb.props={defaultEnterAnimation:"fadeIn"};const Yb=t=>Hb(Object.assign({adjustPoints:Wb},t)),Ub=(Yb.props={defaultEnterAnimation:"fadeIn"},t=>{const{curve:l,gradient:u=!1}=t,c=I(t,["curve","gradient"]);return(t,e,n,r)=>{var{defaultColor:r,defaultSize:i}=r,{color:e=r,size:r=i,transform:i,seriesColor:o,seriesX:a}=e,n=pm(n)?[...t,t[0]]:t;const s=eb().x(t=>t[0]).y(t=>t[1]).curve(l);t=u&&o?Bb(o,a):e;return Ob(new ap({})).style("d",s(n)).style("stroke",t).style("lineWidth",r).style("transform",i).call(Ib,c).node()}}),qb=(Ub.props={defaultEnterAnimation:"fadeIn"},t=>Ub(Object.assign({curve:J1},t))),Xb=(qb.props=Object.assign({},Ub.props),t=>{var{alpha:e=.5}=t,t=I(t,["alpha"]);return Ub(Object.assign({curve:pb.alpha(e)},t))}),Zb=(Xb.props=Object.assign({},Ub.props),t=>Ub(Object.assign({curve:wb},t))),Kb=(Zb.props=Object.assign({},Ub.props),t=>Ub(Object.assign({curve:xb},t))),$b=(Kb.props=Object.assign({},Ub.props),t=>Ub(Object.assign({curve:bb},t)));function Jb(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],["Z"]]}$b.props=Object.assign({},Ub.props);var Qb=Object.freeze({__proto__:null,point:Jb,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"]]},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"]]},line:function(t,e,n){return[["M",t,e+n],["L",t,e-n]]},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]]}});function tx(t,e,n,r){var i,n=n["size"];return"fixed"!==t&&("normal"===t||function(t){const e=t.getOptions()["transformations"];return e.some(([t])=>"fisheye"===t)}(r))?([[t,r],[e,i]]=e,e=Math.abs((e-t)/2),t=Math.abs((i-r)/2),Math.max(0,(e+t)/2)):n}const P=t=>{const{colorAttribute:s,symbol:e,mode:l="auto"}=t,u=I(t,["colorAttribute","symbol","mode"]),c="stroke"===s?1:0,h=Qb[e]||Jb;return(t,e,n,r)=>{var r=r["defaultColor"],{color:r=r,transform:i}=e,[o,a]=function(t){var[[t,e],[n,r]]=t;return[(t+n)/2,(e+r)/2]}(t),t=tx(l,t,e,n);return Ob(new ap).style("d",h(o,a,t)).style("lineWidth",c).style("stroke",r).style("transform",i).style(s,r).call(Ib,u).node()}},ex=(P.props={defaultEnterAnimation:"fadeIn"},t=>P(Object.assign({colorAttribute:"fill",symbol:"bowtie"},t))),nx=(ex.props=Object.assign({},P.props),t=>P(Object.assign({colorAttribute:"stroke",symbol:"cross"},t))),rx=(nx.props=Object.assign({},P.props),t=>P(Object.assign({colorAttribute:"fill",symbol:"diamond"},t))),ix=(rx.props=Object.assign({},P.props),t=>P(Object.assign({colorAttribute:"fill",symbol:"hexagon"},t))),ox=(ix.props=Object.assign({},P.props),t=>P(Object.assign({colorAttribute:"stroke",symbol:"bowtie"},t))),ax=(ox.props=Object.assign({},P.props),t=>P(Object.assign({colorAttribute:"stroke",symbol:"diamond"},t))),sx=(ax.props=Object.assign({},P.props),t=>P(Object.assign({colorAttribute:"stroke",symbol:"hexagon"},t))),lx=(sx.props=Object.assign({},P.props),t=>P(Object.assign({colorAttribute:"stroke",symbol:"point"},t))),ux=(lx.props=Object.assign({},P.props),t=>P(Object.assign({colorAttribute:"stroke",symbol:"square"},t))),cx=(ux.props=Object.assign({},P.props),t=>P(Object.assign({colorAttribute:"stroke",symbol:"triangle"},t))),hx=(cx.props=Object.assign({},P.props),t=>P(Object.assign({colorAttribute:"stroke",symbol:"triangle-down"},t))),dx=(hx.props=Object.assign({},P.props),t=>P(Object.assign({colorAttribute:"stroke",symbol:"hyphen"},t))),px=(dx.props=Object.assign({},P.props),t=>P(Object.assign({colorAttribute:"stroke",symbol:"line"},t))),fx=(px.props=Object.assign({},P.props),t=>P(Object.assign({colorAttribute:"stroke",symbol:"plus"},t))),yx=(fx.props=Object.assign({},P.props),t=>P(Object.assign({colorAttribute:"fill",symbol:"point"},t))),gx=(yx.props=Object.assign({},P.props),t=>P(Object.assign({colorAttribute:"fill",symbol:"square"},t))),mx=(gx.props=Object.assign({},P.props),t=>P(Object.assign({colorAttribute:"stroke",symbol:"tick"},t))),vx=(mx.props=Object.assign({},P.props),t=>P(Object.assign({colorAttribute:"fill",symbol:"triangle"},t))),bx=(vx.props=Object.assign({},P.props),t=>P(Object.assign({colorAttribute:"fill",symbol:"triangle-down"},t))),xx=(bx.props=Object.assign({},P.props),t=>{const l=t["arrow"],u=I(t,["arrow"]);return(t,e,n,r)=>{var r=r["defaultColor"],{color:e=r,transform:r}=e,[t,i]=t,[o,a]=Rb(t,i,l);const s=P1();return s.moveTo(...t),s.lineTo(...i),s.moveTo(...i),s.lineTo(...o),s.moveTo(...i),s.lineTo(...a),Ob(new ap).style("d",s.toString()).style("stroke",e).style("fill",e).style("transform",r).call(Ib,u).node()}}),wx=(xx.props={defaultEnterAnimation:"fadeIn"},t=>{const l=I(t,[]);return(t,e,n,r)=>{var r=r["defaultColor"],{color:e=r,text:r="",fontSize:i=14,rotate:o=0,transform:a=""}=e,[[t,s]]=t;return Ob(new fp).style("x",t).style("y",s).style("text",String(r)).style("stroke",e).style("fill",e).style("fontSize",i).style("transform",a+`rotate(${+o}deg)`).style("lineWidth",0).call(Ib,l).node()}});wx.props={defaultEnterAnimation:"fadeIn"};i(kx,Ex=Xd),kx.prototype.connectedCallback=function(){var t=this.style,e=t.x,t=t.y;this.setLocalPosition([e||0,t||0]),this.update(),this.bindEvents(this.attributes,this)},kx.prototype.update=function(t){this.attr(N({},this.attributes,t=void 0===t?{}:t)),null!=(t=this.render)&&t.call(this,this.attributes,this)},kx.prototype.clear=function(){this.removeChildren(!0)},kx.prototype.destroy=function(){this.removeAllEventListeners(),this.removeChildren(!0),this.remove()},kx.prototype.bindEvents=function(t,e){};var Ex,_x,o=kx;function kx(t){return Ex.call(this,t)||this}function Tx(t,e,n,r){this.message=t,this.expected=e,this.found=n,this.location=r,this.name="SyntaxError","function"==typeof Error.captureStackTrace&&Error.captureStackTrace(this,Tx)}function Mx(){this.constructor=_x}_x=Tx,ie=Error,Mx.prototype=ie.prototype,_x.prototype=new Mx,Tx.buildMessage=function(t,e){var o={literal:function(t){return'"'+r(t.text)+'"'},class:function(t){for(var e="",n=0;n<t.parts.length;n++)e+=t.parts[n]instanceof Array?i(t.parts[n][0])+"-"+i(t.parts[n][1]):i(t.parts[n]);return"["+(t.inverted?"^":"")+e+"]"},any:function(t){return"any character"},end:function(t){return"end of input"},other:function(t){return t.description}};function n(t){return t.charCodeAt(0).toString(16).toUpperCase()}function r(t){return t.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,function(t){return"\\x0"+n(t)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(t){return"\\x"+n(t)})}function i(t){return t.replace(/\\/g,"\\\\").replace(/\]/g,"\\]").replace(/\^/g,"\\^").replace(/-/g,"\\-").replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,function(t){return"\\x0"+n(t)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(t){return"\\x"+n(t)})}return"Expected "+function(t){for(var e,n,r=new Array(t.length),i=0;i<t.length;i++)r[i]=(n=t[i],o[n.type](n));if(r.sort(),0<r.length){for(e=i=1;i<r.length;i++)r[i-1]!==r[i]&&(r[e]=r[i],e++);r.length=e}switch(r.length){case 1:return r[0];case 2:return r[0]+" or "+r[1];default:return r.slice(0,-1).join(", ")+", or "+r[r.length-1]}}(t)+" but "+((t=e)?'"'+r(t)+'"':"end of input")+" found."};var Sx,Qt=function(s,t){function R(){return j("Z")}function D(t,e){return j(t,e.map(function(t){return{x:t}}))}function B(t,e){return j(t,e.map(function(t){return{y:t}}))}function F(t,e,n){return{x1:t.x,y1:t.y,x2:e.x,y2:e.y,x:n.x,y:n.y}}function z(t,e){return{x2:t.x,y2:t.y,x:e.x,y:e.y}}function V(t,e){return{x1:t.x,y1:t.y,x:e.x,y:e.y}}function G(t,e,n,r,i,o){return{rx:t,ry:e,xAxisRotation:n,largeArc:r,sweep:i,x:o.x,y:o.y}}var l={},e={svg_path:Mt},n=Mt,H=function(t){if(!t)return[];for(var e=[],n=0;n<t.length;n++)e=e.concat.apply(e,t[n]);var r=e[0];return r&&"m"==r.code&&(delete r.relative,r.code="M"),e},a=function(t,e){var n=e;if(!n)return[t];for(var r=[t],i=0,o=n.length;i<o;i++)r[i+1]=n[i][1];return r},W=/^[Mm]/,Y=v(["M","m"],!1,!1),U=function(t,e,n){e=j(t,[e]);return e=n?e.concat(j("M"==t?"L":"l",n[1])):e},q=/^[Zz]/,X=v(["Z","z"],!1,!1),Z=/^[Ll]/,K=v(["L","l"],!1,!1),i=j,$=/^[Hh]/,J=v(["H","h"],!1,!1),Q=/^[Vv]/,tt=v(["V","v"],!1,!1),et=/^[Cc]/,nt=v(["C","c"],!1,!1),rt=/^[Ss]/,it=v(["S","s"],!1,!1),ot=/^[Qq]/,at=v(["Q","q"],!1,!1),st=/^[Tt]/,lt=v(["T","t"],!1,!1),ut=/^[Aa]/,ct=v(["A","a"],!1,!1),ht=function(t,e){return{x:t,y:e}},dt=function(t){return+t},pt=function(t){return+t.join("")},ft=/^[01]/,yt=v(["0","1"],!1,!1),gt=function(t){return"1"==t},o=function(){return""},mt=",",vt=m(",",!1),u=function(t){return t.join("")},c=".",h=m(".",!1),bt=/^[eE]/,xt=v(["e","E"],!1,!1),wt=/^[+\-]/,Et=v(["+","-"],!1,!1),r=/^[0-9]/,d=v([["0","9"]],!1,!1),_t=function(t){return t.join("")},kt=/^[ \t\n\r]/,Tt=v([" ","\t","\n","\r"],!1,!1),p=0,f=[{line:1,column:1}],y=0,g=[];if("startRule"in(t=void 0!==t?t:{})){if(!(t.startRule in e))throw new Error("Can't start parsing from rule \""+t.startRule+'".');n=e[t.startRule]}function m(t,e){return{type:"literal",text:t,ignoreCase:e}}function v(t,e,n){return{type:"class",parts:t,inverted:e,ignoreCase:n}}function b(t){var e,n=f[t];if(n)return n;for(e=t-1;!f[e];)e--;for(n={line:(n=f[e]).line,column:n.column};e<t;)10===s.charCodeAt(e)?(n.line++,n.column=1):n.column++,e++;return f[t]=n}function x(t,e){var n=b(t),r=b(e);return{start:{offset:t,line:n.line,column:n.column},end:{offset:e,line:r.line,column:r.column}}}function w(t){p<y||(y<p&&(y=p,g=[]),g.push(t))}function Mt(){for(var t,e,n=p,r=[],i=C();i!==l;)r.push(i),i=C();if(r!==l)if((i=(i=function(){var t,e,n,r,i,o;if(t=p,(e=E())!==l){for(n=[],r=p,i=[],o=C();o!==l;)i.push(o),o=C();for(r=i!==l&&(o=E())!==l?i=[i,o]:(p=r,l);r!==l;){for(n.push(r),r=p,i=[],o=C();o!==l;)i.push(o),o=C();r=i!==l&&(o=E())!==l?i=[i,o]:(p=r,l)}t=n!==l?e=a(e,n):(p=t,l)}else p=t,t=l;return t}())===l?null:i)!==l){for(t=[],e=C();e!==l;)t.push(e),e=C();n=t!==l?r=H(i):(p=n,l)}else p=n,n=l;else p=n,n=l;return n}function E(){var t,e,n,r,i=p,o=function(){var t,e,n,r,i,o,a;t=p,W.test(s.charAt(p))?(e=s.charAt(p),p++):(e=l,w(Y));if(e!==l){for(n=[],r=C();r!==l;)n.push(r),r=C();t=n!==l&&((r=S())!==l&&(i=p,o=P(),(i=(i=(o=o===l?null:o)!==l&&(a=Ot())!==l?o=[o,a]:(p=i,l))===l?null:i)!==l))?e=U(e,r,i):(p=t,l)}else p=t,t=l;return t}();if(o!==l){for(t=[],e=p,n=[],r=C();r!==l;)n.push(r),r=C();for(e=n!==l&&(r=St())!==l?n=[n,r]:(p=e,l);e!==l;){for(t.push(e),e=p,n=[],r=C();r!==l;)n.push(r),r=C();e=n!==l&&(r=St())!==l?n=[n,r]:(p=e,l)}i=t!==l?a(o,t):(p=i,l)}else p=i,i=l;return i}function St(){var t=function(){var t;q.test(s.charAt(p))?(t=s.charAt(p),p++):(t=l,w(X));t!==l&&(t=R());return t}();return t=t===l&&(t=function(){var t,e,n,r;t=p,Z.test(s.charAt(p))?(e=s.charAt(p),p++):(e=l,w(K));if(e!==l){for(n=[],r=C();r!==l;)n.push(r),r=C();t=n!==l&&(r=Ot())!==l?e=i(e,r):(p=t,l)}else p=t,t=l;return t}())===l&&(t=function(){var t,e,n,r;t=p,$.test(s.charAt(p))?(e=s.charAt(p),p++):(e=l,w(J));if(e!==l){for(n=[],r=C();r!==l;)n.push(r),r=C();t=n!==l&&(r=Pt())!==l?e=D(e,r):(p=t,l)}else p=t,t=l;return t}())===l&&(t=function(){var t,e,n,r;t=p,Q.test(s.charAt(p))?(e=s.charAt(p),p++):(e=l,w(tt));if(e!==l){for(n=[],r=C();r!==l;)n.push(r),r=C();t=n!==l&&(r=Pt())!==l?e=B(e,r):(p=t,l)}else p=t,t=l;return t}())===l&&(t=function(){var t,e,n,r;t=p,et.test(s.charAt(p))?(e=s.charAt(p),p++):(e=l,w(nt));if(e!==l){for(n=[],r=C();r!==l;)n.push(r),r=C();t=n!==l&&(r=function(){var t,e,n,r,i,o;if(t=p,(e=_())!==l){for(n=[],r=p,i=P(),r=(i=i===l?null:i)!==l&&(o=_())!==l?i=[i,o]:(p=r,l);r!==l;)n.push(r),r=p,i=P(),r=(i=i===l?null:i)!==l&&(o=_())!==l?i=[i,o]:(p=r,l);t=n!==l?e=a(e,n):(p=t,l)}else p=t,t=l;return t}())!==l?e=i(e,r):(p=t,l)}else p=t,t=l;return t}())===l&&(t=function(){var t,e,n,r;t=p,rt.test(s.charAt(p))?(e=s.charAt(p),p++):(e=l,w(it));if(e!==l){for(n=[],r=C();r!==l;)n.push(r),r=C();t=n!==l&&(r=function(){var t,e,n,r,i,o;if(t=p,(e=k())!==l){for(n=[],r=p,i=P(),r=(i=i===l?null:i)!==l&&(o=k())!==l?i=[i,o]:(p=r,l);r!==l;)n.push(r),r=p,i=P(),r=(i=i===l?null:i)!==l&&(o=k())!==l?i=[i,o]:(p=r,l);t=n!==l?e=a(e,n):(p=t,l)}else p=t,t=l;return t}())!==l?e=i(e,r):(p=t,l)}else p=t,t=l;return t}())===l&&(t=function(){var t,e,n,r;t=p,ot.test(s.charAt(p))?(e=s.charAt(p),p++):(e=l,w(at));if(e!==l){for(n=[],r=C();r!==l;)n.push(r),r=C();t=n!==l&&(r=function(){var t,e,n,r,i,o;if(t=p,(e=T())!==l){for(n=[],r=p,i=P(),r=(i=i===l?null:i)!==l&&(o=T())!==l?i=[i,o]:(p=r,l);r!==l;)n.push(r),r=p,i=P(),r=(i=i===l?null:i)!==l&&(o=T())!==l?i=[i,o]:(p=r,l);t=n!==l?e=a(e,n):(p=t,l)}else p=t,t=l;return t}())!==l?e=i(e,r):(p=t,l)}else p=t,t=l;return t}())===l&&(t=function(){var t,e,n,r;t=p,st.test(s.charAt(p))?(e=s.charAt(p),p++):(e=l,w(lt));if(e!==l){for(n=[],r=C();r!==l;)n.push(r),r=C();t=n!==l&&(r=function(){var t,e,n,r,i,o;if(t=p,(e=S())!==l){for(n=[],r=p,i=P(),r=(i=i===l?null:i)!==l&&(o=S())!==l?i=[i,o]:(p=r,l);r!==l;)n.push(r),r=p,i=P(),r=(i=i===l?null:i)!==l&&(o=S())!==l?i=[i,o]:(p=r,l);t=n!==l?e=a(e,n):(p=t,l)}else p=t,t=l;return t}())!==l?e=i(e,r):(p=t,l)}else p=t,t=l;return t}())===l?function(){var t,e,n,r;t=p,ut.test(s.charAt(p))?(e=s.charAt(p),p++):(e=l,w(ct));if(e!==l){for(n=[],r=C();r!==l;)n.push(r),r=C();t=n!==l&&(r=function(){var t,e,n,r,i,o;if(t=p,(e=M())!==l){for(n=[],r=p,i=P(),r=(i=i===l?null:i)!==l&&(o=M())!==l?i=[i,o]:(p=r,l);r!==l;)n.push(r),r=p,i=P(),r=(i=i===l?null:i)!==l&&(o=M())!==l?i=[i,o]:(p=r,l);t=n!==l?e=a(e,n):(p=t,l)}else p=t,t=l;return t}())!==l?e=i(e,r):(p=t,l)}else p=t,t=l;return t}():t}function Ot(){var t,e,n,r,i=p,o=S();if(o!==l){for(t=[],e=p,e=(n=(n=P())===l?null:n)!==l&&(r=S())!==l?n=[n,r]:(p=e,l);e!==l;)t.push(e),e=p,e=(n=(n=P())===l?null:n)!==l&&(r=S())!==l?n=[n,r]:(p=e,l);i=t!==l?a(o,t):(p=i,l)}else p=i,i=l;return i}function Pt(){var t,e,n,r,i=p,o=O();if(o!==l){for(t=[],e=p,e=(n=(n=P())===l?null:n)!==l&&(r=O())!==l?n=[n,r]:(p=e,l);e!==l;)t.push(e),e=p,e=(n=(n=P())===l?null:n)!==l&&(r=O())!==l?n=[n,r]:(p=e,l);i=t!==l?a(o,t):(p=i,l)}else p=i,i=l;return i}function _(){var t,e,n=p,r=S();return n=r!==l&&(t=(t=P())===l?null:t)!==l&&(t=S())!==l&&(e=(e=P())===l?null:e)!==l&&(e=S())!==l?F(r,t,e):(p=n,l)}function k(){var t,e=p,n=S();return e=n!==l&&(t=(t=P())===l?null:t)!==l&&(t=S())!==l?z(n,t):(p=e,l)}function T(){var t,e=p,n=S();return e=n!==l&&(t=(t=P())===l?null:t)!==l&&(t=S())!==l?V(n,t):(p=e,l)}function M(){var t,e,n,r,i,o=p,a=At();return o=a!==l&&(t=(t=P())===l?null:t)!==l&&(t=At())!==l&&(e=(e=P())===l?null:e)!==l&&(e=O())!==l&&P()!==l&&(n=Nt())!==l&&(r=(r=P())===l?null:r)!==l&&(r=Nt())!==l&&(i=(i=P())===l?null:i)!==l&&(i=S())!==l?G(a,t,e,n,r,i):(p=o,l)}function S(){var t,e=p,n=O();return e=n!==l&&(t=(t=P())===l?null:t)!==l&&(t=O())!==l?ht(n,t):(p=e,l)}function At(){var t=Lt();return t=(t=t===l?N():t)!==l?dt(t):t}function O(){var t,e=p,n=A();return(e=(n=n===l?null:n)!==l&&(t=Lt())!==l?n=[n,t]:(p=e,l))===l&&(e=p,e=(n=(n=A())===l?null:n)!==l&&(t=N())!==l?n=[n,t]:(p=e,l)),e=e!==l?pt(e):e}function Nt(){var t;return ft.test(s.charAt(p))?(t=s.charAt(p),p++):(t=l,w(yt)),t=t!==l?gt(t):t}function P(){var t,e,n=p,r=[],i=C();if(i!==l)for(;i!==l;)r.push(i),i=C();else r=l;if(r!==l)if((i=(i=Ct())===l?null:i)!==l){for(t=[],e=C();e!==l;)t.push(e),e=C();n=t!==l?r=[r,i,t]:(p=n,l)}else p=n,n=l;else p=n,n=l;if(n===l){if(r=n=p,(i=Ct())!==l){for(t=[],e=C();e!==l;)t.push(e),e=C();r=t!==l?i=[i,t]:(p=r,l)}else p=r,r=l;n=r=r!==l?o():r}return n}function Ct(){var t;return 44===s.charCodeAt(p)?(t=mt,p++):(t=l,w(vt)),t}function Lt(){var t,e=p,n=function(){var t,e,n,r;t=p,(e=N())===l&&(e=null);t=e!==l&&(46===s.charCodeAt(p)?(n=c,p++):(n=l,w(h)),n!==l&&(r=N())!==l)?e=[e,n,r]:(p=t,l);t===l&&(t=p,e=N(),t=e!==l&&(46===s.charCodeAt(p)?(n=c,p++):(n=l,w(h)),n!==l)?e=[e,n]:(p=t,l));t!==l&&(t=u(t));return t}();return(e=n!==l&&(t=(t=It())===l?null:t)!==l?n=[n,t]:(p=e,l))===l&&(e=p,e=(n=N())!==l&&(t=It())!==l?n=[n,t]:(p=e,l)),e=e!==l?u(e):e}function It(){var t,e,n,r=p;return bt.test(s.charAt(p))?(t=s.charAt(p),p++):(t=l,w(xt)),r=(r=t!==l&&(e=(e=A())===l?null:e)!==l&&(n=N())!==l?t=[t,e,n]:(p=r,l))!==l?u(r):r}function A(){var t;return wt.test(s.charAt(p))?(t=s.charAt(p),p++):(t=l,w(Et)),t}function N(){var t,e=[];if(r.test(s.charAt(p))?(t=s.charAt(p),p++):(t=l,w(d)),t!==l)for(;t!==l;)e.push(t),r.test(s.charAt(p))?(t=s.charAt(p),p++):(t=l,w(d));else e=l;return e=e!==l?_t(e):e}function C(){var t;return kt.test(s.charAt(p))?(t=s.charAt(p),p++):(t=l,w(Tt)),t=t!==l?o():t}var L,I={m:"moveto",l:"lineto",h:"horizontal lineto",v:"vertical lineto",c:"curveto",s:"smooth curveto",q:"quadratic curveto",t:"smooth quadratic curveto",a:"elliptical arc",z:"closepath"};for(L in I)I[L.toUpperCase()]=I[L];function j(t,e){for(var n=(e=e||[{}]).length;n--;){var r,i={code:t,command:I[t]};for(r in t==t.toLowerCase()&&(i.relative=!0),e[n])i[r]=e[n][r];e[n]=i}return e}if((e=n())!==l&&p===s.length)return e;throw e!==l&&p<s.length&&w({type:"end"}),t=g,n=y<s.length?s.charAt(y):null,e=y<s.length?x(y,y+1):x(y,y),new Tx(Tx.buildMessage(t,n),t,n,e)};(Qt.parseSVG=Qt).makeAbsolute=function(t){var n,r={x:0,y:0},i={x:"x0",y:"y0",x1:"x0",y1:"y0",x2:"x0",y2:"y0"};return t.forEach(function(t){for(var e in"moveto"===t.command&&(n=t),t.x0=r.x,t.y0=r.y,i)e in t&&(t[e]+=t.relative?t[i[e]]:0);"x"in t||(t.x=r.x),"y"in t||(t.y=r.y),t.relative=!1,t.code=t.code.toUpperCase(),"closepath"==t.command&&(t.x=n.x,t.y=n.y),r=t}),t};function Ox(t,e,n,r){var i,o,a=Px(r=void 0===r?"...":r,n),s=Z(t)?t:ot(t),l=e,u=[];if(Px(t,n)<=e)return t;for(;;){if(i=s.substr(0,16),l<(o=Px(i,n))+a)break;if(u.push(i),l-=o,!(s=s.substr(16)))return u.join("")}for(;;){if(i=s.substr(0,1),l<(o=Px(i,n))+a)break;if(u.push(i),l-=o,!(s=s.substr(1)))return u.join("")}return"".concat(u.join("")).concat(r)}var Px=dt(function(t,e){var n=(e=void 0===e?{}:e).fontSize,r=e.fontFamily,i=e.fontWeight,o=e.fontStyle,e=e.fontVariant;return(Sx=Sx||document.createElement("canvas").getContext("2d")).font=[o,e,i,"".concat(n,"px"),r].join(" "),Sx.measureText(Z(t)?t:"").width},function(t,e){return Pt([t],D(it(e=void 0===e?{}:e)),!1).join("")});function Ax(t,e){return"string"==typeof t?Px(t,e):t}var Nx=function(t){var e=t.style.fontFamily||"sans-serif",n=t.style.fontWeight||"normal",r=t.style.fontStyle||"normal",i=t.style.fontVariant,t=t.style.fontSize;return{fontSize:t="object"==typeof t?t.value:t,fontFamily:e,fontWeight:n,fontStyle:r,fontVariant:i}};function Cx(t,e){return"capitalize"===e?t.toLowerCase().replace(/( |^)[a-z]/g,function(t){return t.toUpperCase()}):"lowercase"===e?t.toLowerCase():"uppercase"===e?t.toUpperCase():t}function Lx(t,e){e=Math.pow(10,e);return~~(t*e)/e}function Ix(t){return t.toLocaleString()}function jx(t,e){return void 0===e&&(e=0),Math.abs(t)<1e3?String(t):"".concat(Lx(t/1e3,e).toLocaleString(),"K")}var Rx=function(t,e,n){return t<0&&Number.isFinite(t)?e:n},Dx=function(t,e,n){return 0<t&&Number.isFinite(t)?e:n},Bx=function(t,e){return t*e},Fx=Math.PI/180;function zx(t){if(Q(t))return[t,t,t,t];if(G(t)){var e=t.length;if(1===e)return[t[0],t[0],t[0],t[0]];if(2===e)return[t[0],t[1],t[0],t[1]];if(3===e)return[t[0],t[1],t[2],t[1]];if(4===e)return t}return[0,0,0,0]}var Vx=["default","active","selected","disabled","inactive"],Gx={fontSize:"16px",fontFamily:"sans-serif",fontWeight:"normal",fontVariant:"normal",fontStyle:"normal",textAlign:"start",textBaseline:"alphabetic"};function Hx(t){var e;return t?null==t?void 0:t.default:(e=pt(t)||{},Vx.forEach(function(t){t in e&&delete e[t]}),e)}function Wx(t,e,n){return void 0===n&&(n=!1),e?(e=yt(t,e),n?N({},Hx(t),e):e):Hx(t)||{}}function Yx(t){var e=t.canvas,n=t.touches,r=t.offsetX,t=t.offsetY;return e?[e.x,e.y]:n?[(e=n[0]).clientX,e.clientY]:r&&t?[r,t]:[0,0]}qx.prototype.selectAll=function(t){return new qx("string"==typeof t?this.__parent__.querySelectorAll(t):t,null,this.__elements__[0],this.__document__)},qx.prototype.select=function(t){t="string"==typeof t?this.__parent__.querySelectorAll(t)[0]||null:t;return new qx([t],null,t,this.__document__)},qx.prototype.append=function(n){var r=this,t="function"==typeof n?n:function(){return t=n,r.__document__?r.__document__.createElement(t,{}):(e=qx.registry[t])?new e:new Error("Unknown node type: ".concat(t));var t,e},e=[];if(null!==this.__data__){for(var i=0;i<this.__data__.length;i++)(s=t(o=this.__data__[i],i)).__data__=o,this.__parent__.appendChild(s),e.push(s);return new qx(e,null,this.__parent__,this.__document__)}for(i=0;i<this.__elements__.length;i++){var o,a=this.__elements__[i],s=t(o=a.__data__,i);a.appendChild(s),e.push(s)}return new qx(e,null,e[0],this.__document__)},qx.prototype.data=function(t,n){void 0===n&&(n=function(t){return t});for(var e=[],r=[],i=new Map(this.__elements__.map(function(t,e){return[n(t.__data__,e),t]})),o=0;o<t.length;o++){var a,s=t[o],l=n(s,o);i.has(l)?((a=i.get(l)).__data__=s,r.push(a),i.delete(l)):e.push(s)}var u=Array.from(i.values()),u=[new qx([],e,this.__parent__,this.__document__),new qx(r,null,this.__parent__,this.__document__),new qx(u,null,this.__parent__,this.__document__)];return new qx(this.__elements__,null,this.__parent__,this.__document__,u)},qx.prototype.merge=function(t){return new qx(Pt(Pt([],D(this.__elements__),!1),D(t.__elements__),!1),null,this.__parent__,this.__document__)},qx.prototype.join=function(t,e,n){void 0===e&&(e=function(t){return t}),void 0===n&&(n=function(t){return t.remove()});t=(t=void 0===t?function(t){return t}:t)(this.__enter__),e=e(this.__update__),n=n(this.__exit__);return e.merge(t).merge(n)},qx.prototype.remove=function(){var n=Pt([],D(this.__elements__),!1);return this.__elements__.forEach(function(t){var e;t.parentNode&&(t.parentNode.removeChild(t),e=n.indexOf(t),n.splice(e,1),null!=(e=t.parentNode)&&e.removeChild(t),t.remove())}),new qx(n,null,this.__parent__,this.__document__)},qx.prototype.each=function(t){for(var e=0;e<this.__elements__.length;e++){var n,r=this.__elements__[e];r&&(n=r.__data__,t.call(r,n,e))}return this},qx.prototype.attr=function(n,r){var i="function"!=typeof r?function(){return r}:r;return this.each(function(t,e){void 0!==r&&(this[n]=i.call(this,t,e))}),this},qx.prototype.style=function(n,r){var i="function"!=typeof r?function(){return r}:r;return this.each(function(t,e){void 0!==r&&(this.style[n]=i.call(this,t,e))}),this},qx.prototype.on=function(t,e){return this.each(function(){this.addEventListener(t,e)}),this},qx.prototype.call=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return t.call.apply(t,Pt([this.__parent__,this],D(e),!1)),this},qx.prototype.node=function(){return this.__elements__[0]},qx.prototype.nodes=function(){return this.__elements__},qx.registry={g:tp,rect:dp,circle:Kd,path:ap,text:fp,ellipse:Jd,image:np,line:ip,polygon:lp,polyline:cp,html:gp};var Ux=qx;function qx(t,e,n,r,i){void 0===e&&(e=null),void 0===n&&(n=null),void 0===r&&(r=null),void 0===i&&(i=[null,null,null]),this.__elements__=t=void 0===t?null:t,this.__data__=e,this.__parent__=n,this.__document__=r,this.__enter__=i[0],this.__update__=i[1],this.__exit__=i[2]}function A(t){return new Ux([t],null,t,t.ownerDocument)}function C(t,e){var n,r;if(e)try{for(var i=function(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{value:(t=t&&r>=t.length?void 0:t)&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}(Object.entries(e)),o=i.next();!o.done;o=i.next()){var a=D(o.value,2),s=a[0],l=a[1];t.style(s,l)}}catch(t){n={error:t}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}}function B(t,e,n){return t.querySelector(e)?A(t).select(e):A(t).append(n)}function Xx(t){var e,t=t&&t.getRenderBounds();return t?(e=t.getMax(),t=t.getMin(),{width:e[0]-t[0],height:e[1]-t[1]}):{width:0,height:0}}function Zx(t){var t=t.getLocalBounds(),t=D([t.min,t.max],2),e=D(t[0],2),n=e[0],e=e[1],t=D(t[1],2),r=t[0],t=t[1];return{x:n,y:e,width:r-n,height:t-e,left:n,bottom:t,top:e,right:r}}function Kx(t){var e,n;return"string"==typeof t?(e=t,(n=document.createElement("div")).innerHTML=e,n.firstChild):t}var $x=["year","month","day","hour","minute","second"],Jx=["YYYY","MM","DD","hh","mm","ss"];function Qx(t){return t instanceof Date?t:new Date(t)}function tw(t){for(var e,t=D(t,2),n=t[0],t=t[1],n=$x.indexOf(n),r=$x.indexOf(t),i="",o=n;o<=r;o+=1)i+=Jx[o],o<r&&(e="-",2===o?e=" ":2<o&&(e=":"),i+=e);return i}function ew(t,e){var n={YYYY:t.getFullYear(),MM:t.getMonth()+1,DD:t.getDate(),hh:t.getHours(),mm:t.getMinutes(),ss:t.getSeconds()},r=e;return Object.keys(n).forEach(function(t){var e=n[t];r=r.replace(t,"YYYY"===t?"".concat(e):"0".concat(e).slice(-2))}),r}function nw(t,e){t=new Date(t);return{year:function(t){t.setMonth(0),t.setHours(0,0,0,0)},month:function(t){t.setDate(1),t.setHours(0,0,0,0)},day:function(t){return t.setHours(0,0,0,0)},hour:function(t){return t.setMinutes(0,0,0)},minute:function(t){return t.setSeconds(0,0)},second:function(t){return t.setMilliseconds(0)}}[e](t),ew(t,tw(["year",e]))}function rw(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];for(var r=0;r<e.length;r+=1)iw(t,e[r]);return t}var iw=function(r,i,o,a){void 0===o&&(o=0),void 0===a&&(a=5),Object.entries(i).forEach(function(t){var t=D(t,2),e=t[0],t=t[1],n=r;Object.prototype.hasOwnProperty.call(i,e)&&(t?X(t)?(X(r[e])||(n[e]={}),o<a?iw(r[e],t,o+1,a):n[e]=i[e]):G(t)?(n[e]=[],n[e]=n[e].concat(t)):n[e]=t:n[e]=t)})};function ow(t,e,n,r,i,o){return(t===e||Math.min(t,e)<=i&&i<=Math.max(t,e))&&(n===r||Math.min(n,r)<=o&&o<=Math.max(n,r))}function aw(t,e,n){var r=t;(!t.length||e<t[0]||e===t[0]&&n<t[1])&&(r[0]=e,r[1]=n)}function sw(t,e){var t=D(t,2),n=t[0],t=t[1],e=D(e,2),r=e[0],e=e[1];return Math.pow(Math.pow(n-r,2)+Math.pow(t-e,2),.5)}function lw(o){return void 0===o&&(o=0),function(t,e,n){var r,i=n.value;"function"==typeof i&&(n.value=function(){for(var t,e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];r||(t=this,r=window.setTimeout(function(){i.apply(t,e),r=null},o))})}}var uw=function(t){return void 0!==t&&null!=t&&!Number.isNaN(t)};function cw(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],["Z"]]}It=cw;function hw(t,e,n){return[["M",t,e+n],["L",t,e-n]]}function dw(t,e,n){return[["M",t-n,e],["L",t+n,e]]}s=dw;function pw(t){n="default",H(e=t)&&e instanceof Image?n="image":z(e)?n="symbol":Z(e)&&(r=new RegExp("data:(image|text)"),n=e.match(r)?"base64":/^(https?:\/\/(([a-zA-Z0-9]+-?)+[a-zA-Z0-9]+\.)+[a-zA-Z]+)(:\d+)?(\/.*)?(\?.*)?(#.*)?$/.test(e)?"url":"symbol");var e,n,r=n;return["base64","url","image"].includes(r)?"image":t&&"symbol"===r?"path":null}i(gw,fw=o),gw.prototype.render=function(t,e){t.x,t.y;var r=t.symbol,n=t.size,i=void 0===n?16:n,o=I(t,["x","y","symbol","size"]),a=pw(r);a?B(e,".".concat(a,"-marker"),a).attr("className","marker ".concat(a,"-marker")).call(function(t){var e,n;"image"===a?(e=2*i,t.style("img",r).style("width",e).style("height",e).style("x",-i).style("y",-i)):(e=i/2,n=z(r)?r:gw.getSymbol(r),t.style("path",null==n?void 0:n(0,0,e)).call(C,o))}):(null!=(n=this.querySelector(".marker"))&&n.remove(),this.removeChildren())},gw.MARKER_SYMBOL_MAP=new Map,gw.registerSymbol=function(t,e){gw.MARKER_SYMBOL_MAP.set(t,e)},gw.getSymbol=function(t){return gw.MARKER_SYMBOL_MAP.get(t)};var fw,yw=gw;function gw(){return null!==fw&&fw.apply(this,arguments)||this}yw.registerSymbol("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]]}),yw.registerSymbol("hyphen",function(t,e,n){return[["M",t-n,e],["L",t+n,e]]}),yw.registerSymbol("line",hw),yw.registerSymbol("plus",function(t,e,n){return[["M",t-n,e],["L",t+n,e],["M",t,e-n],["L",t,e+n]]}),yw.registerSymbol("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]]}),yw.registerSymbol("circle",cw),yw.registerSymbol("point",It),yw.registerSymbol("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"]]}),yw.registerSymbol("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"]]}),yw.registerSymbol("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"]]}),yw.registerSymbol("diamond",function(t,e,n){return[["M",t-n,e],["L",t,e-n],["L",t+n,e],["L",t,e+n],["Z"]]}),yw.registerSymbol("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"]]}),yw.registerSymbol("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"]]}),yw.registerSymbol("line",hw),yw.registerSymbol("dot",dw),yw.registerSymbol("dash",s),yw.registerSymbol("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]]}),yw.registerSymbol("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]]}),yw.registerSymbol("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]]}),yw.registerSymbol("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]]}),yw.registerSymbol("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]]});i(bw,mw=o),bw.prototype.render=function(t,e){var n,r,i=t.padding,o=t.marker,a=t.text,s=t.textStyle,l=t.radius,u=t.backgroundStyle,c=t.spacing,h=t.align,t=t.verticalAlign,i=D(zx(i),4),d=i[0],p=i[1],f=i[2],i=i[3],y=B(e,".tag-content","g").attr("className","tag-content").node(),g=B(y,".tag-marker",function(){return new yw({})}).attr("className","tag-marker").call(function(t){t.node().clear(),t.node().update(o||{symbol:"triangle",size:0,x:0})}).node(),c=(c=c,{x:(m=(g=g).getLocalBounds()).halfExtents[0]?m.max[0]+(c||0):g.style.x,y:m.halfExtents[1]?(m.min[1]+m.max[1])/2:g.style.y}),m=c.x,g=c.y,g=(B(y,".tag-text","text").attr("className","tag-text").style("fontFamily","sans-serif").style("fontSize",12).style("x",m).style("y",g).style("text",S(a)?"":"".concat(a)).call(C,s).style("textBaseline","middle").call(function(t){a||t.remove()}),c=i,m=d,g=h||"start",s=t||"top",t=(h=y).getLocalBounds(),r=n=0,"start"===g&&(n=c),"center"===g&&(n=-t.halfExtents[0]),"end"===g&&(n=-c-2*t.halfExtents[0]),"top"===s&&(r=m+t.halfExtents[1]),"middle"===s&&(r=0),"bottom"===s&&(r=m-2*t.halfExtents[1]),h.setLocalPosition([n,r]),y.getLocalBounds());B(e,".tag-background","rect").attr("className","tag-background").style("zIndex",(y.style.zIndex||0)-1).style("x",g.min[0]-i).style("y",g.min[1]-d).style("width",null!==u?i+p+2*g.halfExtents[0]:0).style("height",null!==u?d+f+2*g.halfExtents[1]:0).style("radius",null!=l?l:2).style("fill","#fafafa").style("stroke","#d9d9d9").style("lineWidth",1).call(C,u)},bw.defaultOptions={type:bw.tag="tag",style:{padding:4,spacing:4}};var mw,vw=bw;function bw(t){return mw.call(this,N({},bw.defaultOptions,t))||this}var xw,ww,Ew={small:{textStyle:{fontSize:10},buttonStyle:{width:40,height:20},markerStyle:{size:8}},middle:{textStyle:{fontSize:12},buttonStyle:{width:60,height:30},markerStyle:{size:12}},large:{textStyle:{fontSize:16},buttonStyle:{width:80,height:40},markerStyle:{size:16}}},_w={primary:{textStyle:{default:{fill:"#fff"},active:{}},buttonStyle:{default:{fill:"#1890ff",lineWidth:0},active:{fill:"#40a9ff"}},markerStyle:{default:{fill:"#1890ff"},active:{fill:"#40a9ff"}}},dashed:{textStyle:{default:{},active:{}},buttonStyle:{default:{fill:"transparent",stroke:"#bbb",lineDash:[5,5]},active:{}},markerStyle:{}},link:{textStyle:{default:{fill:"#1890ff"},active:{}},buttonStyle:{default:{fill:"transparent",lineWidth:0},active:{}},markerStyle:{default:{fill:"#1890ff"}}},text:{textStyle:{default:{fill:"#000"},active:{}},buttonStyle:{default:{fill:"transparent",lineWidth:0},active:{}},markerStyle:{default:{stroke:"#000"}}},default:{textStyle:{default:{fill:"#000"},active:{fill:"#1890ff"}},buttonStyle:{default:{fill:"transparent",stroke:"#bbb"},active:{stroke:"#1890ff"}},markerStyle:{default:{stroke:"#bbb",lineWidth:1},active:{stroke:"#1890ff"}}}},kw={strict:{textStyle:{fill:"#b8b8b8"},buttonStyle:{},markerStyle:{}},textStyle:{},buttonStyle:{stroke:"#d9d9d9",fill:"#f5f5f5"},markerStyle:{stroke:"#d9d9d9"}},Tw=(i(Mw,xw=o),Object.defineProperty(Mw.prototype,"markerSize",{get:function(){var t=this.attributes.marker,e=this.getStyle("markerStyle");return t?(null==e?void 0:e.size)||2:0},enumerable:!1,configurable:!0}),Object.defineProperty(Mw.prototype,"text",{get:function(){var t,e=this.attributes.text;return""===e?e:(t=this.textAvailableWidth,Ox(e,t))},enumerable:!1,configurable:!0}),Object.defineProperty(Mw.prototype,"textAvailableWidth",{get:function(){var t=this.attributes,e=t.marker,n=t.padding,r=t.ellipsis,i=t.width,t=t.markerSpacing;return r?(r=st(i)?this.getStyle("buttonStyle").width:i,e?r-2*n-t-this.markerSize:r-2*n):1/0},enumerable:!1,configurable:!0}),Object.defineProperty(Mw.prototype,"buttonHeight",{get:function(){var t=this.attributes.height;return t||this.getStyle("buttonStyle").height},enumerable:!1,configurable:!0}),Mw.prototype.getStyle=function(e){var t=this.attributes,n=t.size,t=t.type,r=this.state,i=N({},yt(Ew,[n,e]),Wx(yt(_w,[t,e]),r),Wx(yt(this.attributes,e),r,!0));return"disabled"===r&&(Object.keys(i).forEach(function(t){t in kw[e]&&(i[t]=yt(kw,[e,t]))}),Object.keys(kw.strict[e]).forEach(function(t){i[t]=yt(kw,["strict",e,t])}),N(i,Wx(yt(this.attributes,e),"disabled"))),i},Mw.prototype.render=function(t,e){var n=t.padding,r=t.marker,t=t.markerSpacing,t=void 0===t?0:t,n=(e.attr("cursor","disabled"===this.state?"not-allowed":"pointer"),D(zx(n),4)),i=(n[0],n[1]),o=(n[2],n[3]),a=this.buttonHeight,s=this.getStyle("markerStyle"),l=this.markerSize,n=B(e,".marker",function(){return new yw({className:"marker",style:{symbol:"circle"}})}).call(function(t){t.node().update(T(T({},s),{symbol:r,x:o+l/2,y:a/2,size:l}))}).node().getLocalBounds(),u=this.text,u=void 0===u?"":u,c=this.getStyle("textStyle"),n=(this.textShape=B(e,".text","text").attr("className","text").style("x",l?n.max[0]+t:o).style("y",a/2).style("text",u).style("textAlign","left").style("textBaseline","middle").call(C,c).node(),this.textShape.getLocalBounds()),u=this.getStyle("buttonStyle");B(e,".background","rect").attr("className","background").style("zIndex",-1).call(C,u).style("height",a).style("width",o+(l?l+t:0)+2*n.halfExtents[0]+i).node()},Mw.prototype.update=function(t){this.attr(N({},this.attributes,t=void 0===t?{}:t));t=this.attributes.state;this.state=void 0===t?"default":t,this.render(this.attributes,this)},Mw.prototype.setState=function(t){this.update({state:t})},Mw.prototype.hide=function(){this.style.visibility="hidden"},Mw.prototype.show=function(){this.style.visibility="visible"},Mw.prototype.bindEvents=function(){this.addEventListener("click",this.clickEvents),this.addEventListener("mouseenter",this.mouseenterEvent),this.addEventListener("mouseleave",this.mouseleaveEvent)},Mw.defaultOptions={type:Mw.tag="button",style:{cursor:"pointer",padding:10,size:"middle",type:"default",text:"",markerAlign:"left",markerSpacing:5,textStyle:{default:{},active:{}},buttonStyle:{default:{lineWidth:1,radius:5},active:{}},markerStyle:{default:{}}}},Mw);function Mw(t){var n=xw.call(this,rw({},Mw.defaultOptions,t))||this;return n.state="default",n.clickEvents=function(){var t=n.attributes,e=t.onClick;"disabled"!==t.state&&null!=e&&e.call(n,n)},n.mouseenterEvent=function(){"disabled"!==n.attributes.state&&(n.state="active",n.render(n.attributes,n))},n.mouseleaveEvent=function(){var t=n.attributes.state;n.state=void 0===t?"default":t,n.render(n.attributes,n)},n}function Sw(t){return ww.call(this,N({},Sw.defaultOptions,t))||this}i(Sw,ww=o),Sw.prototype.render=function(t,e){for(var n=t.x,r=t.y,s=t.items,l=t.textStyle,i=t.padding,u=t.width,c=t.separator,t=D(zx(i),3),i=t[0],h=t[1],t=t[2],d=B(e,".container","g").attr("className","container").style("x",n+t).style("y",r+i),p=0,f=0,y=(d.node().removeChildren(!0),this),o=0;o<s.length;o++)!function(t){var e,n=s[t],r=new vw({className:"breadcrumb-item",style:T(T({x:p,y:f,text:V(n.text)?n.id:n.text,textStyle:l},gt(n,["marker"])),{padding:0,backgroundStyle:null})}),i=(d.append(function(){return r}),r.getLocalBounds()),o=2*i.halfExtents[0],i=2*i.halfExtents[1],o=(p+=o,V(u)||u-h<p&&(r.attr({x:0,y:f+i}),p=o,f+=i),y.bindInnerEvents(r,n),c||{}),n=o.spacing,n=void 0===n?0:n,a=o.text,a=void 0===a?"/":a,o=o.style;t!==s.length-1&&(e=new fp({className:"".concat(Sw.tag,"-separator"),id:"".concat(Sw.tag,"-separator-").concat(t),style:T(T(T(T({},Gx),{x:p+n,y:f+i/2}),o),{text:a,textAlign:"end",textBaseline:"middle"})}),d.append(function(){return e}),t=e.getLocalBounds(),p+=2*t.halfExtents[0]+n)}(o)},Sw.prototype.update=function(t){this.attr(N({},this.attributes,t)),this.render(this.attributes,this)},Sw.prototype.bindInnerEvents=function(t,e){var n=this.attributes,r=n.items,i=n.onClick;i&&t.addEventListener("click",function(){i.call(t,e.id,e,r)})},Sw.defaultOptions={type:Sw.tag="breadcrumb",style:{separator:{text:"/",style:{fontSize:14,fill:"rgba(0, 0, 0, 0.45)"},spacing:8},textStyle:{default:T(T({},Gx),{fontSize:14,fill:"rgba(0, 0, 0, 0.45)"}),active:{fill:"#5468ff",cursor:"pointer"}},padding:[8,8,8,8]}};i(Aw,Ow=O),Aw.prototype.render=function(){var t=this.attributes,e=t.lines,t=t.areas;e&&this.createLines(e),t&&this.createAreas(t)},Aw.prototype.clear=function(){this.linesGroup.removeChildren(!0),this.areasGroup.removeChildren(!0)},Aw.prototype.update=function(t){var e=t.lines,t=t.areas;this.clear(),e&&this.setAttribute("lines",e),t&&this.setAttribute("areas",t),this.render()},Aw.prototype.createLines=function(t){var e=this;t.forEach(function(t){e.linesGroup.appendChild(new ap({name:"line",style:t}))})},Aw.prototype.createAreas=function(t){var e=this;t.forEach(function(t){e.areasGroup.appendChild(new ap({name:"area",style:t}))})};var Ow,Pw=Aw;function Aw(t){var e=this,n=t.style,t=I(t,["style"]);return(e=Ow.call(this,N({},{type:"lines",style:{width:0,height:0}},T({style:n},t)))||this).linesGroup=new tp({name:"lines"}),e.appendChild(e.linesGroup),e.areasGroup=new tp({name:"areas"}),e.appendChild(e.areasGroup),e.render(),e}i(Lw,Nw=O),Lw.prototype.render=function(){var e=this;this.attributes.columns.forEach(function(t){t.forEach(function(t){e.columnsGroup.appendChild(new dp({name:"column",style:t}))})})},Lw.prototype.update=function(t){this.attr(N({},this.attributes,t)),t.columns&&(this.clear(),this.render())},Lw.prototype.clear=function(){this.removeChildren(!0)};var Nw,Cw=Lw;function Lw(t){var e=this,n=t.style,t=I(t,["style"]);return(e=Nw.call(this,N({},{type:"column",style:{width:0,height:0}},T({style:n},t)))||this).columnsGroup=new tp({name:"columns"}),e.appendChild(e.columnsGroup),e.render(),e}function Iw(t){return 0===t.length?[0,0]:[q(rt(t,function(t){return q(t)||0})),U(nt(t,function(t){return U(t)||0}))]}function jw(t){for(var e=pt(t),n=e[0].length,t=D([Array(n).fill(0),Array(n).fill(0)],2),r=t[0],i=t[1],o=0;o<e.length;o+=1)for(var a=e[o],s=0;s<n;s+=1)0<=a[s]?(a[s]+=r[s],r[s]=a[s]):(a[s]+=i[s],i[s]=a[s]);return e}function Rw(t,e,n){void 0===n&&(n=[[0,0],[1,1]]);for(var e=!!(e=void 0===e?!1:e),r=[],i=0,o=t.length;i<o;i+=2)r.push([t[i],t[i+1]]);for(var a,s,l,u=function(t,e,n,r){var i,o=[],a=!!r;if(a){u=r[0],c=r[1];for(var s=0,l=t.length;s<l;s+=1)var u=ia([0,0],u,x=t[s]),c=oa([0,0],c,x)}for(var s=0,h=t.length;s<h;s+=1){var d,p,f,y,g,m,v,b,x=t[s];0!==s||n?s!==h-1||n?(d=t[[s?s-1:h-1,s-1][n?0:1]],p=t[n?(s+1)%h:s+1],m=aa(m=ua([0,0],p,d),m,e),0!==(g=(f=sa(x,d))+(y=sa(x,p)))&&(f/=g,y/=g),g=aa([0,0],m,-f),m=aa([0,0],m,y),v=ra([0,0],x,g),b=ia([0,0],b=ra([0,0],x,m),oa([0,0],p,x)),b=oa([0,0],b,ia([0,0],p,x)),v=ia([0,0],v=ra([0,0],x,g=aa([0,0],g=ua([0,0],b,x),-f/y)),oa([0,0],d,x)),v=oa([0,0],v,ia([0,0],d,x)),b=ra([0,0],x,m=aa([0,0],m=ua([0,0],x,v),y/f)),a&&(v=ia([0,0],v=oa([0,0],v,u),c),b=ia([0,0],b=oa([0,0],b,u),c)),o.push(i),o.push(v),i=b):(v=x,o.push(i),o.push(v)):i=x}return n&&o.push(o.shift()),o}(r,.4,e,n),c=r.length,h=[],i=0;i<c-1;i+=1)a=u[2*i],s=u[2*i+1],l=r[i+1],h.push(["C",a[0],a[1],s[0],s[1],l[0],l[1]]);return e&&(a=u[c],s=u[c+1],l=r[0],h.push(["C",a[0],a[1],s[0],s[1],l[0],l[1]])),h}function Dw(t,e){var n=(e=void 0===e?!1:e)?t.length-1:0,t=t.map(function(t,e){return Pt([e===n?"M":"L"],D(t),!1)});return e?t.reverse():t}function Bw(t,e){if(void 0===e&&(e=!1),t.length<=2)return Dw(t);for(var n=[],r=t.length,i=0;i<r;i+=1){var o=e?t[r-i-1]:t[i];Et(o,n.slice(-2))||n.push.apply(n,Pt([],D(o),!1))}var a=Rw(n,!1);return e?a.unshift(Pt(["M"],D(t[r-1]),!1)):a.unshift(Pt(["M"],D(t[0]),!1)),a}function Fw(t,e,n){t=pt(t);return t.push(["L",e,n],["L",0,n],["Z"]),t}i(Hw,zw=o),Object.defineProperty(Hw.prototype,"rawData",{get:function(){var t=this.attributes.data;return t&&0!==(null==t?void 0:t.length)?(t=pt(t),Q(t[0])?[t]:t):[[]]},enumerable:!1,configurable:!0}),Object.defineProperty(Hw.prototype,"data",{get:function(){return this.attributes.isStack?jw(this.rawData):this.rawData},enumerable:!1,configurable:!0}),Object.defineProperty(Hw.prototype,"scales",{get:function(){return this.createScales(this.data)},enumerable:!1,configurable:!0}),Object.defineProperty(Hw.prototype,"baseline",{get:function(){var t=this.scales.y,e=D(t.getOptions().domain||[0,0],2),n=e[0],e=e[1];return e<0?t.map(e):t.map(n<0?0:n)},enumerable:!1,configurable:!0}),Object.defineProperty(Hw.prototype,"containerCfg",{get:function(){var t=this.attributes;return{width:t.width,height:t.height}},enumerable:!1,configurable:!0}),Object.defineProperty(Hw.prototype,"linesCfg",{get:function(){var t,n,r,i,o,e,a,s,l,u=this,c=this.attributes,h=c.areaStyle,d=c.isStack,p=c.lineStyle,f=c.smooth,c=this.containerCfg.width,y=this.data;return 0===y[0].length?{lines:[],areas:[]}:(t=this.scales,e=t.x,t=t.y,y=y,n=(e={type:"line",x:e,y:t}).x,r=e.y,i=(e=D(r.getOptions().range||[0,0],2))[0],o=e[1],i<o&&(e=D([i,o],2),o=e[0],i=e[1]),t=y.map(function(t){return t.map(function(t,e){return[n.map(e),J(r.map(t),o,i)]})}),e=[],h&&(y=this.baseline,e=d?(f?function(t,e,n){for(var r=[],i=t.length-1;0<=i;--i){var o,a=t[i],s=Bw(a),l=void 0,l=0===i?Fw(s,e,n):(o=Bw(t[i-1],!0),a=a[0],o[0][0]="L",Pt(Pt(Pt([],D(s),!1),D(o),!1),[Pt(["M"],D(a),!1),["Z"]],!1));r.push(l)}return r}:function(t,e,n){for(var r=[],i=t.length-1;0<=i;--i){var o,a=Dw(t[i]),s=void 0,s=0===i?Fw(a,e,n):((o=Dw(t[i-1],!0))[0][0]="L",Pt(Pt(Pt([],D(a),!1),D(o),!1),[["Z"]],!1));r.push(s)}return r})(t,c,y):(a=f,s=c,l=y,t.map(function(t){return Fw((a?Bw:Dw)(t),s,l)}))),{lines:t.map(function(t,e){return T({stroke:u.getColor(e),path:(f?Bw:Dw)(t)},p)}),areas:e.map(function(t,e){return T({path:t,fill:u.getColor(e)},h)})})},enumerable:!1,configurable:!0}),Object.defineProperty(Hw.prototype,"columnsCfg",{get:function(){var i=this,t=this.attributes,o=t.isStack,a=t.columnStyle,t=this.containerCfg.height,s=this.rawData;if(!s)return{columns:[]};o&&(s=jw(s));var e=this.createScales(s),l=e.x,u=e.y,e=D(Iw(s),2),n=e[0],e=e[1],c=new Uv({domain:[0,e-(0<n?0:n)],range:[0,t]}),h=l.getBandWidth(),d=this.rawData;return{columns:s.map(function(t,r){return t.map(function(t,e){var n=h/s.length;return T(T({fill:i.getColor(r)},a),o?{x:l.map(e),y:u.map(t),width:h,height:c.map(d[r][e])}:{x:l.map(e)+n*r,y:0<=t?u.map(t):u.map(0),width:n,height:c.map(Math.abs(t))})})})}},enumerable:!1,configurable:!0}),Hw.prototype.render=function(t,e){this.containerShape=B(e,".container","rect").attr("className","container").node();var n=this.attributes.type,r="spark".concat(n),i="line"===n?this.linesCfg:this.columnsCfg;this.sparkShape=B(e,".".concat(r),function(){return new("line"===n?Pw:Cw)({className:r,style:i})}).call(C,i).node()},Hw.prototype.update=function(t){this.attr(N({},this.attributes,t)),this.render(this.attributes,this)},Hw.prototype.clear=function(){this.removeChild(this.sparkShape),this.sparkShape.clear(),this.sparkShape.destroy()},Hw.prototype.getColor=function(t){var e=this.attributes.color;return G(e)?e[t%e.length]:z(e)?e.call(null,t):e},Hw.prototype.createScales=function(t){var e=this.attributes,n=e.type,r=e.isGroup,i=e.barPadding,o=e.nice,o=void 0===o||o,a=e.minValue,e=e.maxValue,s=this.containerCfg,l=s.width,s=s.height,u=D(Iw(t),2),c=u[0],u=u[1];return{type:n,x:"line"===n?new Uv({domain:[0,t[0].length-1],range:[0,l]}):new qm({domain:t[0].map(function(t,e){return e}),range:[0,l],paddingInner:r?i:0}),y:new Uv({domain:[null!=a?a:c,null!=e?e:u],range:[s,0],nice:o})}},Hw.tag="sparkline",Hw.defaultOptions={style:{type:"line",width:200,height:20,isStack:!1,color:["#83daad","#edbf45","#d2cef9","#e290b3","#6f63f4"],smooth:!0,lineStyle:{lineWidth:1},isGroup:!1,columnStyle:{lineWidth:1,stroke:"#fff",padding:.1}}};var zw,Vw,Gw=Hw;function Hw(t){return zw.call(this,N({},Hw.defaultOptions,t))||this}function Ww(){return null!==Vw&&Vw.apply(this,arguments)||this}function Yw(e,n){return i(t,r=Xd),t.prototype.connectedCallback=function(){var t,e;null!=(t=(e=this.descriptor).render)&&t.call(e,this.attributes,this),null!=(e=(t=this.descriptor).bindEvents)&&e.call(t,this.attributes,this)},t.prototype.update=function(t){var e;this.attr(N({},this.attributes,t=void 0===t?{}:t)),null!=(e=(t=this.descriptor).render)&&e.call(t,this.attributes,this)},t;function t(t){t=r.call(this,rw({},{style:n},t))||this;return t.descriptor=e,t}var r}i(Ww,Vw=Xd);var Uw=Yw({render:function(t,e){function n(t,e,n,r,i){B(h,"line-".concat(t),"line").attr("className","line-".concat(t)).style("x1",e).style("y1",n).style("x2",r).style("y2",i).style("stroke",h.style.stroke).style("strokeOpacity",h.style.strokeOpacity).style("lineWidth",h.style.lineWidth)}var r=t.size,i=t.radius,o=t.stroke,a=t.fill,s=t.lineWidth,l=t.orient,u=t.fillOpacity,t=t.strokeOpacity,r=void 0===r?10:r,c=2.4*r,h=B(e,".rect","rect").attr("className","rect").style("x",-r/2).style("y",-c/2).style("width",r).style("height",c).style("fill",a||"#fff").style("fillOpacity",u||1).style("stroke",o||"#bfbfbf").style("lineWidth","number"!=typeof s?1:s).style("strokeOpacity",t).style("radius","number"!=typeof i?r/4:null!=i?i:2).node(),a=1/3*r,u=2/3*r,o=.25*c,s=.75*c;n(0,a,o,a,s),n(0,u,o,u,s),h.setOrigin(r/2,c/2),"vertical"===l?e.setLocalEulerAngles(90):e.setLocalEulerAngles(0)}});i($w,qw=o),$w.prototype.render=function(t,e){var n,r,i,o=t.iconCfg,t=t.textCfg;i=e,o=((n=o)||{}).type,r="handle-icon ".concat(o,"-handle"),A(i).selectAll(".handle-icon").data(o?[o]:[],function(t){return t}).join(function(t){return t.append(function(t){return"symbol"===t?new yw({className:r,name:"icon",style:n}):new Uw({name:"icon",className:r,style:n})})},function(t){return t.each(function(){this.update(n)})},function(t){return t.remove()}),void 0===(i=t)&&(i={}),B(e,".".concat(o="handle-text"),"text").attr("className",o).style("fontSize",12).style("fill","#000").style("fillOpacity",.45).style("textAlign","center").style("textBaseline","middle").call(C,i)};var qw,Xw,Zw,Kw=$w;function $w(){return null!==qw&&qw.apply(this,arguments)||this}function Jw(t){var o=Xw.call(this,N({},Jw.defaultOptions,t))||this;return o.onSelectionMouseenter=function(){o.selectionShape.attr(o.getStyle("selectionStyle"))},o.onSelectionMouseleave=function(){o.selectionShape.attr(o.getStyle("selectionStyle"))},o.onDragStart=function(i){return function(t){t.stopPropagation(),o.target=i,o.prevPos=o.getOrientVal(Yx(t));var t=o.availableSpace,e=t.x,t=t.y,n=o.attributes,r=n.x,n=n.y;o.selectionStartPos=o.getRatio(o.prevPos-o.getOrientVal([e,t])-o.getOrientVal([r,n])),o.selectionWidth=0,o.addEventListener("mousemove",o.onDragging),o.addEventListener("touchmove",o.onDragging),document.addEventListener("mouseup",o.onDragEnd),document.addEventListener("touchend",o.onDragEnd)}},o.onDragging=function(t){t.stopPropagation();var t=o.getOrientVal(Yx(t)),e=t-o.prevPos;if(e){var n=o.getRatio(e);switch(o.target){case"start":o.setValuesOffset(n);break;case"end":o.setValuesOffset(0,n);break;case"selection":o.setValuesOffset(n,n);break;case"background":o.selectionWidth+=n,o.setValues([o.selectionStartPos,o.selectionStartPos+o.selectionWidth].sort())}o.prevPos=t}},o.onDragEnd=function(){o.removeEventListener("mousemove",o.onDragging),o.removeEventListener("mousemove",o.onDragging),document.removeEventListener("mouseup",o.onDragEnd),document.removeEventListener("touchend",o.onDragEnd)},o.onValueChanged=function(t){t=new jd("valueChanged",{detail:{oldValue:t,value:o.getValues()}});o.dispatchEvent(t)},o.selectionStartPos=0,o.selectionWidth=0,o.prevPos=0,o.target="",o}function Qw(t){var a=Zw.call(this,N({},Qw.defaultOptions,t))||this;return a.onValueChanged=function(t){var e=a.style.value;t!==e&&(e=new jd("scroll",t={detail:{oldValue:t,value:e}}),a.dispatchEvent(e),e=new jd("valueChanged",t),a.dispatchEvent(e))},a.onTrackClick=function(t){var e=a.attributes.thumbLen,n=D(a.getLocalPosition(),2),r=n[0],n=n[1],i=D(a.padding,4),o=i[0],i=i[3],r=a.getOrientVal([r+i,n+o]),i=a.getOrientVal(Yx(t))-e/2,n=a.valueOffset(i-r,!0);a.setValue(n)},a.onThumbMouseenter=function(){a.thumbShape.attr(a.getStyle("thumbStyle","active"))},a.onTrackMouseenter=function(){a.trackShape.attr(a.getStyle("trackStyle","active"))},a.onThumbMouseleave=function(){a.thumbShape.attr(a.getStyle("thumbStyle"))},a.onTrackMouseleave=function(){a.trackShape.attr(a.getStyle("trackStyle"))},a.onDragStart=function(t){t.stopPropagation(),a.prevPos=a.getOrientVal(Yx(t)),document.addEventListener("mousemove",a.onDragging),document.addEventListener("mouseup",a.onDragEnd),document.addEventListener("touchmove",a.onDragging),document.addEventListener("touchcancel",a.onDragEnd)},a.onDragging=function(t){t.stopPropagation();var t=a.getOrientVal(Yx(t)),e=t-a.prevPos;a.setOffset(e),a.prevPos=t},a.onDragEnd=function(t){t.preventDefault(),document.removeEventListener("mousemove",a.onDragging),document.removeEventListener("mouseup",a.onDragEnd),document.removeEventListener("touchmove",a.onDragging),document.removeEventListener("touchcancel",a.onDragEnd)},a}i(Jw,Xw=o),Object.defineProperty(Jw.prototype,"values",{get:function(){return this.getAttribute("values")},set:function(t){this.setAttribute("values",this.getSafetyValues(t))},enumerable:!1,configurable:!0}),Object.defineProperty(Jw.prototype,"names",{get:function(){return this.getAttribute("names")},set:function(t){this.setAttribute("names",t)},enumerable:!1,configurable:!0}),Object.defineProperty(Jw.prototype,"backgroundShapeCfg",{get:function(){return T(T({cursor:"crosshair",zIndex:0},this.availableSpace),this.getStyle("backgroundStyle"))},enumerable:!1,configurable:!0}),Object.defineProperty(Jw.prototype,"sparklineShapeCfg",{get:function(){var t=this.attributes,t=(t.orient,t.sparkline),e=t.padding,t=I(t,["padding"]),e=D(zx(e),4),n=e[0],r=e[1],i=e[2],e=e[3],o=this.availableSpace,a=o.width,o=o.height,s=this.getStyle("backgroundStyle").lineWidth,s=void 0===s?0:s;return T(T({x:s/2+e,y:s/2+n},t),{zIndex:0,width:a-s-e-r,height:o-s-n-i})},enumerable:!1,configurable:!0}),Object.defineProperty(Jw.prototype,"availableSpace",{get:function(){var t=this.attributes,e=t.padding,n=t.width,t=t.height,e=D(zx(e),4),r=e[0],i=e[1],o=e[2],e=e[3];return{x:e,y:r,width:n-(e+i),height:t-(r+o)}},enumerable:!1,configurable:!0}),Jw.prototype.getValues=function(){return this.values},Jw.prototype.setValues=function(t){this.values=t,this.update({values:t})},Jw.prototype.getNames=function(){return this.names},Jw.prototype.setNames=function(t){this.names=t},Jw.prototype.render=function(t,e){function n(e){var t="slider-".concat(e,"-handle");return B(o,".".concat(t),function(){return new Kw({className:t})}).call(function(t){t.node().update(r.getHandleShapeCfg(e))}).node()}var r=this,i=t.backgroundStyle,t=t.selectionStyle,e=B(e,".slider-background","rect").attr("className","slider-background").style("cursor","crosshair").style("fill","#416180").style("fillOpacity",.05).call(C,this.availableSpace).call(C,Wx(i)).node(),o=(B(this.backgroundShape=e,".slider-sparkline",function(){return new Gw({})}).attr("className","slider-sparkline").call(function(t){t.node().update(r.sparklineShapeCfg)}),B(e,".slider-foreground","g").attr("className","slider-foreground").node());this.selectionShape=B(o,".slider-selection","rect").attr("className","slider-selection").style("cursor","move").style("zIndex",2).style("fill","#5B8FF9").style("fillOpacity",.15).call(C,this.calcMask()).call(C,Wx(t)||{}).node();this.startHandle=n("start"),this.endHandle=n("end")},Jw.prototype.getSafetyValues=function(t,e){void 0===t&&(t=this.getValues()),void 0===e&&(e=4);var n,r=this.attributes,i=r.min,r=r.max,o=D(this.getValues(),2),a=o[0],o=o[1],t=D(t||[a,o],2),s=t[0],t=t[1],l=t-s;return t<s&&(s=(n=D([t,s],2))[0],t=n[1]),r-i<l?[i,r]:s<i?a===i&&o===t?[i,t]:[i,l+i]:r<t?o===r&&a===s?[s,r]:[r-l,r]:[Lx(s,e),Lx(t,e)]},Jw.prototype.getStyle=function(t,e,n){return void 0===e&&(e="default"),n?this.getHandleCfg(n):Wx(yt(this.attributes,t),e,!0)},Jw.prototype.calcMask=function(t){var t=D(this.getSafetyValues(t),2),e=t[0],t=t[1],n=this.availableSpace,r=n.width,n=n.height;return this.getOrientVal([{y:0,height:n,x:e*r,width:(t-e)*r},{x:0,width:r,y:e*n,height:(t-e)*n}])},Jw.prototype.calcHandlePosition=function(t){var e=this.availableSpace,n=e.width,e=e.height,r=D(this.getSafetyValues(),2),i=r[0],r=r[1],t=("start"===t?i:r)*this.getOrientVal([n,e]);return{x:this.getOrientVal([t,n/2]),y:this.getOrientVal([e/2,t])}},Jw.prototype.calcHandleText=function(t){var e,n,r=this.attributes,i=r.orient,r=r.names,o=this.getHandleCfg(t),a=o.spacing,s=o.formatter,o=o.textStyle,l=this.getHandleSize(t),u=this.getSafetyValues(),c=this.availableSpace,h=c.width,c=c.height,d=this.calcMask(),p=d.x,f=d.y,y=d.width,d=d.height,r=D("start"===t?[r[0],u[0]]:[r[1],u[1]],2),u=s(r[0],r[1]),s=new fp({style:T(T({},o),{text:u})}),r=Xx(s),o=r.width,r=r.height,s=(s.destroy(),0),g=0,l=l/2,m="center";return"horizontal"===i?(e=(i=a+l)+o/2,m="start"===t?(s=0<(n=p-i-o)?-e:e,0<n?"end":"start"):(s=(n=o<h-p-y-i)?e:-e,n?"start":"end")):(o=a+l,g="start"===t?r<f-l?-o:o:r<c-f-d-l?o:-o),{x:s,y:g,text:u,textAlign:m}},Jw.prototype.getHandleTextShapeCfg=function(t){var e=this.getHandleCfg(t).textStyle;return T(T({},e),this.calcHandleText(t))},Jw.prototype.getHandleIconShapeCfg=function(t){var e,n=this.attributes.orient,r=this.getHandleCfg(t),i=r.handleIcon,r=r.handleStyle,o=this.getOrientVal(["ew-resize","ns-resize"]),t=this.getHandleSize(t),i=i?(e="symbol",T(T({},r),{cursor:o,size:t,symbol:i})):(e="default",T(T({},r),{cursor:o,size:t}));return T({orient:n,type:e},i)},Jw.prototype.getHandleShapeCfg=function(t){var e=this.getHandleCfg(t),n=this.calcHandlePosition(t),r=n.x,n=n.y,i=this.calcHandleText(t);return{x:r,y:n,handleType:t,zIndex:3,visibility:null!=e&&e.show?"visible":"hidden",iconCfg:this.getHandleIconShapeCfg(t),textCfg:T(T({},this.getHandleTextShapeCfg(t)),i)}},Jw.prototype.getHandleCfg=function(t){var e=yt(this.attributes,"handle"),n=e.start,r=e.end,e=I(e,["start","end"]),i={};return"start"===t?i=n:"end"===t&&(i=r),N({},e,i)},Jw.prototype.getHandleSize=function(t){var e,t=this.getHandleCfg(t).size;return t||(e=(t=this.attributes).width,t=t.height,Math.floor((this.getOrientVal([t,e])+4)/2.4))},Jw.prototype.getOrientVal=function(t){var t=D(t,2),e=t[0],t=t[1];return"horizontal"===this.attributes.orient?e:t},Jw.prototype.setValuesOffset=function(t,e){void 0===e&&(e=0);var n=D(this.getValues(),2),r=n[0],n=n[1],t=[r+t,n+e].sort();this.setValues(t),this.onValueChanged([r,n])},Jw.prototype.getRatio=function(t){var e=this.availableSpace,n=e.width,e=e.height;return t/this.getOrientVal([n,e])},Jw.prototype.bindEvents=function(){function r(t){return t&&".handle-text"!==t.className}var i=this,t=this.selectionShape;t.addEventListener("mousedown",this.onDragStart("selection")),t.addEventListener("touchstart",this.onDragStart("selection")),t.addEventListener("mouseenter",this.onSelectionMouseenter),t.addEventListener("mouseleave",this.onSelectionMouseleave);[this.startHandle,this.endHandle].forEach(function(t){var n=t.style.handleType;t.addEventListener("mousedown",function(t){var e=t.target;r(e)&&i.onDragStart(n)(t)}),t.addEventListener("touchstart",function(t){var e=t.target;r(e)&&i.onDragStart(n)(t)})}),this.backgroundShape.addEventListener("mousedown",this.onDragStart("background")),this.backgroundShape.addEventListener("touchstart",this.onDragStart("background"))},Jw.defaultOptions={type:Jw.tag="slider",style:{orient:"horizontal",values:[0,1],names:["",""],min:0,max:1,width:200,height:20,sparkline:{padding:[1,1,1,1]},padding:[0,0,0,0],selectionStyle:{active:{fill:"#ccdaf5"}},handle:{show:!0,formatter:function(t,e){return t},spacing:10}}},i(Qw,Zw=o),Object.defineProperty(Qw.prototype,"padding",{get:function(){return zx(this.attributes.padding)},enumerable:!1,configurable:!0}),Object.defineProperty(Qw.prototype,"availableSpace",{get:function(){var t=this.attributes,e=t.width,t=t.height,n=D(this.padding,4),r=n[0],i=n[1],o=n[2],n=n[3];return{x:n,y:r,width:e-(n+i),height:t-(r+o)}},enumerable:!1,configurable:!0}),Object.defineProperty(Qw.prototype,"trackLen",{get:function(){var t=this.availableSpace,e=t.width,t=t.height;return this.getOrientVal([e,t])},enumerable:!1,configurable:!0}),Object.defineProperty(Qw.prototype,"thumbRadius",{get:function(){var t=this.attributes.isRound,e=this.availableSpace,n=e.width,e=e.height,r=yt(this.attributes,["thumbStyle","default","radius"]);return t?r||this.getOrientVal([e,n])/2:0},enumerable:!1,configurable:!0}),Qw.prototype.render=function(t,e){var n=t.width,r=t.height,i=t.trackStyle,o=t.thumbStyle,a=t.value,s=t.thumbLen,t=t.orient,e=B(e,".track","rect").attr("className","track").style("width",null!=n?n:10).style("height",null!=r?r:200).call(C,Wx(i)).node(),n=this.valueOffset(a||0),r=this.availableSpace;this.thumbShape=B(e,".thumb","rect").attr("className","thumb").style("x","vertical"===t?r.x:r.x+n).style("y","vertical"===t?r.y+n:r.y).style("width","vertical"===t?r.width:s).style("height","vertical"===t?s:r.height).style("radius",this.thumbRadius).call(C,Wx(o)).node(),this.trackShape=e},Qw.prototype.getValue=function(){return this.style.value},Qw.prototype.setValue=function(t){var e=this.style,n=e.value,r=e.min,e=e.max;this.update({value:J(t,r,e)}),this.onValueChanged(n)},Qw.prototype.setOffset=function(t){var e=this.getValue();this.setValue(this.valueOffset(t,!0)+e)},Qw.prototype.valueOffset=function(t,e){var n=this.attributes,r=n.thumbLen,i=n.min,n=n.max,r=this.trackLen-r;return(e=void 0!==e&&e)?t/r:r*J(t,i,n)},Qw.prototype.getStyle=function(t,e){return void 0===e&&(e="default"),Wx(yt(this.attributes,t),e)},Qw.prototype.bindEvents=function(){this.trackShape.addEventListener("click",this.onTrackClick),this.thumbShape.addEventListener("mousedown",this.onDragStart),this.thumbShape.addEventListener("touchstart",this.onDragStart),this.onHover()},Qw.prototype.getOrientVal=function(t){return"horizontal"===this.attributes.orient?t[0]:t[1]},Qw.prototype.onHover=function(){this.thumbShape.addEventListener("mouseenter",this.onThumbMouseenter),this.trackShape.addEventListener("mouseenter",this.onTrackMouseenter),this.thumbShape.addEventListener("mouseleave",this.onThumbMouseleave),this.trackShape.addEventListener("mouseleave",this.onTrackMouseleave)},Qw.defaultOptions={type:Qw.tag="scrollbar",style:{orient:"vertical",min:0,max:1,isRound:!0,thumbLen:20,padding:[2,2,2,2],trackStyle:{default:{fill:"#fafafa",lineWidth:1,stroke:"#e8e8e8"},active:{}},thumbStyle:{default:{fill:"#c1c1c1"},active:{opacity:.8}}}};Object.defineProperty(e2.prototype,"left",{get:function(){return this.x1},enumerable:!1,configurable:!0}),Object.defineProperty(e2.prototype,"top",{get:function(){return this.y1},enumerable:!1,configurable:!0}),Object.defineProperty(e2.prototype,"right",{get:function(){return this.x2},enumerable:!1,configurable:!0}),Object.defineProperty(e2.prototype,"bottom",{get:function(){return this.y2},enumerable:!1,configurable:!0}),Object.defineProperty(e2.prototype,"width",{get:function(){return this.defined("x2")&&this.defined("x1")?this.x2-this.x1:void 0},enumerable:!1,configurable:!0}),Object.defineProperty(e2.prototype,"height",{get:function(){return this.defined("y2")&&this.defined("y1")?this.y2-this.y1:void 0},enumerable:!1,configurable:!0}),e2.prototype.clear=function(){return this.x1=+Number.MAX_VALUE,this.y1=+Number.MAX_VALUE,this.x2=-Number.MAX_VALUE,this.y2=-Number.MAX_VALUE,this},e2.prototype.empty=function(){return this.x1===+Number.MAX_VALUE&&this.y1===+Number.MAX_VALUE&&this.x2===-Number.MAX_VALUE&&this.y2===-Number.MAX_VALUE},e2.prototype.add=function(t,e){return t<this.x1&&(this.x1=t),e<this.y1&&(this.y1=e),t>this.x2&&(this.x2=t),e>this.y2&&(this.y2=e),this},e2.prototype.rotate=function(t,e,n){t=this.rotatedPoints(t,e,n);return this.clear().add(t[0],t[1]).add(t[2],t[3]).add(t[4],t[5]).add(t[6],t[7])},e2.prototype.rotatedPoints=function(t,e,n){var r=this.x1,i=this.y1,o=this.x2,a=this.y2,s=Math.cos(t),t=Math.sin(t),l=e-e*s+n*t,e=n-e*t-n*s;return[[s*r-t*i+l,t*r+s*i+e],[s*r-t*a+l,t*r+s*a+e],[s*o-t*a+l,t*o+s*a+e],[s*o-t*i+l,t*o+s*i+e]].flat(1)},e2.prototype.set=function(t,e,n,r){return n<t?(this.x2=t,this.x1=n):(this.x1=t,this.x2=n),r<e?(this.y2=e,this.y1=r):(this.y1=e,this.y2=r),this},e2.prototype.intersects=function(t){return t&&!(this.x2<t.x1||this.x1>t.x2||this.y2<t.y1||this.y1>t.y2)},e2.prototype.defined=function(t){return this[t]!==Number.MAX_VALUE&&this[t]!==-Number.MAX_VALUE};var t2=e2;function e2(t){var t=t||{},e=t.left,n=t.top,r=t.right,t=t.bottom;this.x1=null!=e?e:+Number.MAX_VALUE,this.x2=null!=r?r:-Number.MAX_VALUE,this.y1=null!=n?n:+Number.MAX_VALUE,this.y2=null!=t?t:-Number.MAX_VALUE}function n2(t,u){return[[t[0],t[1],t[2],t[3]],[t[2],t[3],t[4],t[5]],[t[4],t[5],t[6],t[7]],[t[6],t[7],t[0],t[1]]].some(function(t){return t=t,n=(e=D(e=u,4))[0],r=e[1],i=e[2],e=e[3],o=(t=D(t,4))[0],a=t[1],i-=n,e-=r,s=t[2]-o,t=t[3]-a,0!=(l=i*t-s*e)&&((a=i*(i=r-a)-e*(r=n-o))<0!=(e=0<l)&&((n=s*i-t*r)<0!=e&&(l<a!=e&&l<n!=e)));var e,n,r,i,o,a,s,l})}function r2(t,e,n){void 0===n&&(n=[0,0,0,0]);var r=e.getEulerAngles()||0,i=(e.setEulerAngles(0),e.getLocalBounds()),o=i.min,a=i.max,i=i.halfExtents,s=o[0],l=2*i[0],i=2*i[1],o=o[1],u=a[0],a=a[1],c=0,h=0,d=s,p=o,f=("text"===e.tagName&&(i-=1.5,f=e.style.textAlign,y=e.style.textBaseline,c=+e.style.dx,h=+e.style.dy,"center"===f?d=(s+u)/2:"right"!==f&&"end"!==f||(d=u),"middle"===y?p=(o+a)/2:"bottom"!==y&&"baseline"!==y||(p=a)),D(n,4)),u=f[0],y=void 0===u?0:u,a=f[1],n=void 0===a?0:a,u=f[2],a=f[3];return t.set((c+=s)-(void 0===a?n:a),(h+=o)-y,c+l+n,h+i+(void 0===u?y:u)),e.setEulerAngles(r),t.rotatedPoints(r*Fx,d,p)}function i2(t,e,n){var r,t=r2(new t2,t,n),e=r2(new t2,e,n),n=n2(e,[t[0],t[1],t[2],t[3]])||n2(e,[t[0],t[1],t[4],t[5]])||n2(e,[t[4],t[5],t[6],t[7]])||n2(e,[t[2],t[3],t[6],t[7]]);return localStorage.getItem("__debug__")&&window.canvas&&((r=function(t,e){return void 0===e&&(e="red"),window.canvas.appendChild(new ap({style:{lineWidth:1,stroke:e,path:[["M",t[0],t[1]],["L",t[2],t[3]],["L",t[4],t[5]],["L",t[6],t[7]],["Z"]]}}))})(t),r(e,"blue")),n}function o2(t,e,n){return"top"===t||"bottom"===t?e:n}function a2(t,e,n){return"left"===t||"right"===t?e:n}function s2(t,e,n){return"outside"===t?e:n}var l2=function(t,e,n){return"left"===t?e:n},u2=function(t,e,n){return"right"===t?e:n},c2=function(t,e,n){return"left"===t||"top"===t||"inside"===t?e:n};function h2(t,r){var i;return Pt([],D(t.reduce(function(t,e,n){return n&&i&&i2(i,e,r)?(t.add(i),t.add(e)):i=e,t},new Set)),!1)}var re={style:{title:{content:"",rotate:void 0,maxLength:260},ticks:[],ticksThreshold:100,tickLine:{len:6},subTickLine:{len:4,count:0},label:{type:"text",alignTick:!0,tickPadding:2,margin:[0,0,0,0],overlapOrder:["autoRotate","autoEllipsis","autoHide"],autoRotate:!1,autoEllipsis:!1,autoHide:!1,autoHideTickLine:!0,showLast:!0,showFirst:!0,optionalAngles:[0,45,90],minLabel:0,minLength:14,maxLength:160,ellipsisStep:" "},verticalFactor:1}},d2=(N({},re,{style:{type:"arc"}}),N({},re,{style:{}}),{year:[["year","second"],["year","day"],["month","day"],["day","day"]],month:[["month","day"],["day","day"]],day:[["month","day"],["day","day"]],hour:[["hour","second"],["hour","minute"],["hour","hour"]],minute:[["minute","second"],["second","second"]],second:[["second","second"]]});function p2(t,r){for(var i,o=t.map(function(t,e){return[t.id,{text:t.style.text,value:t.style.tip||t.style.text,idx:e}]}),a=new Map(o),e=rt(o,function(t){t=D(t,2),t[0],t=t[1].value;return new Date(t).getTime()}).text,n=nt(o,function(t){t=D(t,2),t[0],t=t[1].value;return new Date(t).getTime()}).text,s=(n=n,e=D([Qx(e=e),Qx(n)],2),n=e[0],e=e[1],n.getFullYear()!==e.getFullYear()?"year":n.getMonth()!==e.getMonth()?"month":n.getDay()!==e.getDay()?"day":n.getHours()!==e.getHours()?"hour":n.getMinutes()!==e.getMinutes()?"minute":"second"),l=new Date("1970-01-01 00:00:00"),u=Nx(t[0]),c=0;c<d2[s].length;c+=1){var h=d2[s][c];if(At(ew(l,tw(h)),u)<r){i=h;break}i=h}return function(t,e){var n,e=a.get(e.id).idx;return 0===e?t:(e=null==(e=o[e-1])?void 0:e[1].text,t=new Date(t),n=i,nw(new Date(e),s)!==nw(t,s)&&(n=function(t,e,n,r){for(var i=[],o=D(t,2)[1],a=$x.indexOf(o),s=0;s<=a;s+=1){var l=[$x[s],o];if(At(ew(e,tw(l)),r)<n){i=l;break}}return i}(i,t,r,u)),ew(t,tw(n)))}}function f2(a,s,t){if(!(s.length<=1))for(var e=t.ellipsisStep,n=t.minLength,r=t.maxLength,i=t.margin,l=void 0===i?[]:i,u=t.labelType,c=Nx(s[0]),o=Ax(e,c)||1,h=Ax(n,c)||1,i=Ax(r,c),d=(!V(i)&&i!==1/0||(i=Math.max.apply(null,s.map(function(t){return t.getBBox().width}))),Date.now()),p=s.slice(),t=D(l,4),e=(t[0],t[1]),f=void 0===e?0:e,n=(t[2],t[3]),y=void 0===n?f:n,g=function(e){var t,n,r,i,o;return(p=h2(s,l)).length<1||300<Date.now()-d?{value:void 0}:(o=function(t,e){return""},n=o2(a,e-y-f,e),o="time"===u?p2(s,n):"number"===u?(n=n,r=(t=s).map(function(t,e){return{text:t.style.text,value:Number(t.style.tip||t.style.text)}}),r=Number(nt(r,function(t){t=t.text;return(null==t?void 0:t.length)||0}).value),t=Nx(t[0]),i=Ix(r),At(i,t)<=n?function(t,e){return Ix(Number(t))}:(i=jx(r),At(i,t)<=n?function(t,e){return jx(Number(t),1)}:function(t,e){return Number(t).toExponential()})):function(t){return Ox(t,e,c)},void p.forEach(function(t,e){var n=t.style.tip||t.style.text,n=(t.style.tip=n,o.call(null,n,t));t.attr("text",n)}))},m=i;h+o<m;m-=o){var v=g(m);if("object"==typeof v)return v.value}}var y2=function(t,e){var e=e.seq,n=void 0===e?2:e;return t.filter(function(t,e){return!(e%n)||!(t.style.visibility="hidden")})};function g2(t,e,n){var r=e.length;if(!(r<=1||2===r&&null!=n&&n.showFirst&&null!=n&&n.showLast)){var i,o,a,s=y2,l=2,u=e.slice(),c=e.slice(),h=Date.now(),d=Math.min.apply(null,e.map(function(t){return t.getBBox().width}))||1;for("top"!==t&&"bottom"!==t||(t=Zx(e[0]).left,e=Zx(e[r-1]).right,e=Math.abs(e-t)||1,l=Math.max(Math.floor(r*d/e),l)),null!=n&&n.showFirst&&(i=u.splice(0,1)[0]),null!=n&&n.showLast&&(o=u.splice(-1,1)[0],u.reverse());h2((o?Pt(Pt([o],D(c),!1),[i],!1):Pt([i],D(c),!1)).filter(function(t){return uw(t)}),null==n?void 0:n.margin).length;)if(o&&!i&&l%2==0?u.splice(0,1).forEach(function(t){return t.style.visibility="hidden"}):o&&i&&u.splice(0,1).forEach(function(t){return t.style.visibility="hidden"}),c=s(((a=u).forEach(function(t){return t.style.visibility="visible"}),a),{seq:l}),l++,200<Date.now()-h)return}}function m2(o,t,e){for(var n=e.optionalAngles,a=void 0===n?[0,45,90]:n,r=e.margin,i=function(i){if(t.forEach(function(t){return e=o,t=t,n=a[i],t.setEulerAngles(n),void(n&&(r=c2(e,-1,1),e=l2(e,"end",u2(e,"start",Dx(Bx(r,n),"left",Rx(Bx(r,n),"right")))),t.style.textAlign=e));var e,n,r}),h2(t,r).length<1)return"break"},s=0;s<a.length&&"break"!==i(s);s++);}var v2=new Map([["autoHide",{getDefault:function(){return g2},equidistance:g2,greedy:function(t,e,n){var r,i=e.length;i<=1||2===i&&null!=n&&n.showFirst&&null!=n&&n.showLast||e.slice().forEach(function(t,e){e&&r&&i2(r,t,null==n?void 0:n.margin)?e===i-1&&null!=n&&n.showLast?r.style.visibility="hidden":t.style.visibility="hidden":r=t})}}],["autoRotate",{getDefault:function(){return m2}}],["autoEllipsis",{getDefault:function(){return f2},ellipsis:f2}]]);function b2(t,e,n){var r,t=Array.from(t||[]).map(function(t,e){return T({id:"".concat(e)},t)}),i=t.length,o=t;return"number"==typeof e&&e<i&&(r=Math.ceil(i/e),o=t.filter(function(t,e){return e%r==0||e===i-1})),n&&1!==o[o.length-1].value&&o.push({value:1,id:"append"}),o}function x2(a,s){return function(i){var t,o;a&&(t=void 0===(t=a.overlapOrder)?[]:t,o=T({labelType:a.type},gt(a,["optionalAngles","minLength","maxLength","ellipsisStep","showFirst","showLast","margin"])),t.forEach(function(t){var e,n=v2.get(t),r=a[t];n&&r&&(t=t,(e=a)&&("autoRotate"!==t||V(e.rotate)))&&(t=n.getDefault(),"function"==typeof r?t=r:"object"==typeof r?(t=n[r.type]||bt,o=T(T({},o),r.cfg)):"string"==typeof r&&(t=n[r]||bt),t(s,i,o))}))}}function w2(t,n,e){e&&t.forEach(function(t,e){e=n[e];e&&(e.style.visibility=t.style.visibility)})}function E2(t,e,n,r,i,o){B(t,".axis-title","text").attr("className","axis-title").style("text",(null==o?void 0:o.content)||"").style("x",e).style("y",n).style("fill","black").style("fontSize",12).style("fontWeight","lighter").style("textAlign",r).style("textBaseline",i).style("transform","rotate(".concat((null==o?void 0:o.rotate)||0,"deg)")).style("visibility",o?"visible":"hidden").call(C,(null==o?void 0:o.style)||{})}function _2(t,e,n,r){var i=n[e].data,n=n.map(function(t){return t.data}),i="function"==typeof r?r.call(null,i,e,n):r;t.attr(i||{})}function k2(t,n,r,e){void 0===e&&(e=""),A(t).selectAll(".axis-".concat(e,"tick")).data(r?n:[],function(t){return t.id}).join(function(t){return t.append(function(t){return new ip({className:"axis-".concat(e,"tick"),style:t})}).style("stroke","#416180").style("lineWidth",.5).style("strokeOpacity","sub"===e?.45:.65).style("visibility","visible").each(function(t,e){this.attr(t),_2(this,e,n,null==r?void 0:r.style)})},function(t){return t.each(function(t,e){this.attr(t),_2(this,e,n,null==r?void 0:r.style)}).style("visibility","visible")},function(t){return t.remove()})}function T2(t,e,n,r){var i=n[e].data,n=n.map(function(t){return t.data}),i="function"==typeof r?r.call(null,i,e,n):r;t.attr(i||{})}function M2(t,e){var n=Nx(t),e=Ax(e,n);t.attr("tip",null),uw(e)&&e<2*t.getBounds().halfExtents[0]&&(e=Ox(t.style.text||"",e,n,"..."),t.attr("tip",t.style.text),t.attr("text",e))}function S2(t,e,n,r,i){A(t).selectAll(".".concat(e)).data(n,function(t){return t.id}).join(function(t){return t.append("text").attr("className",e).style("fontFamily","sans-serif").style("fontSize",12).style("fontWeight","normal").call(C,i||{}).each(function(t,e){this.attr(t),M2(this,(null==r?void 0:r.maxLength)||Number.MAX_SAFE_INTEGER),T2(this,e,n,null==r?void 0:r.style)})},function(t){return t.each(function(t,e){this.attr(t),M2(this,(null==r?void 0:r.maxLength)||Number.MAX_SAFE_INTEGER),T2(this,e,n,null==r?void 0:r.style)})},function(t){return t.remove()})}function O2(t,e,n){S2(t,"axis-label",(n=void 0===n?{}:n)?e:[],n,{fill:"#000",fontWeight:"lighter"})}function P2(t,e,n,r,i,o){B(t,".axis-".concat(e,"-arrow"),function(){return new yw({})}).attr("className","axis-arrow$$ axis-".concat(e,"-arrow")).style("visibility",o?"visible":"hidden").style("symbol","axis-arrow").style("x",n).style("y",r).style("size",8).style("lineWidth",.5).style("fill","grey").style("stroke","grey").style("fillOpacity",.85).style("strokeOpacity",.85).style("transformOrigin","left").style("transform","rotate(".concat(i,"deg)")).call(C,o||{})}function A2(t,e,n,r){var i,o,a,s;void 0===r&&(r={}),B(t,".axis-line","path").attr("className","axis-line").style("visibility",r?"visible":"hidden").style("stroke","grey").style("lineWidth",.5).style("strokeOpacity",.85).style("path",e).call(C,(null==r?void 0:r.style)||{}),n&&(r=(e=(null==r?void 0:r.arrow)||{}).start,e=e.end,n=D(n,2),i=(o=D(n[0],2))[0],o=o[1],a=(n=D(n[1],2))[0],n=n[1],s=Math.atan((n-o)/(a-i))/Math.PI*180/2,i===a?s=n<o?45:-45:o===n&&(s=a<i?0:90),P2(t,"start",i,o,s,r),P2(t,"end",a,n,s+90,e))}function N2(t,e,n,r){var i,o,a,s,l;return e?(o=t[0],a=e,s=(o=D(o,2))[0],o=o[1],s=(a=D(a,2))[0]-s,a=a[1]-o,i=Math.sqrt(s*s+a*a),l=r?0:1,n?"M".concat(e[0],",").concat(e[1]-i," A").concat(i,",").concat(i,",0,0,").concat(l,",").concat(e[0],",").concat(e[1]+i," A").concat(i,",").concat(i,",0,0,").concat(l,",").concat(e[0],",").concat(e[1]-i," Z"):t.reduce(function(t,e,n){return(0===n?"M":"".concat(t,"A").concat(i,",").concat(i,",0,0,").concat(l,",")).concat(e[0],",").concat(e[1])},"")):""}function C2(t,e,n,r,i){return"circle"===e?N2(t,n,r,i):(e=t.reduce(function(t,e,n){return"".concat(t).concat(0===n?"M":" L").concat(e[0],",").concat(e[1])},""),"".concat(e).concat(r?"Z":""))}i(j2,L2=o),j2.prototype.render=function(t,e){var n,r,i,o,a=t.items,s=void 0===a?[]:a,l=t.type,u=t.center,a=t.lineStyle,c=t.alternateColor,h=t.closed,t=s.map(function(t,e){return{id:t.id||"grid-line-".concat(e),path:C2(t.points,l,u,h)}}),d=(n=t,r={style:a},A(e).selectAll(".grid-line").data(n,function(t){return t.id}).join(function(t){return t.append("path").attr("className","grid-line").style("stroke","#D9D9D9").style("lineWidth",1).style("lineDash",[4,4]).each(function(t,e){this.attr(t),_2(this,e,n,null==r?void 0:r.style)})},function(t){return t.each(function(t,e){this.attr(t),_2(this,e,n,null==r?void 0:r.style)})},function(t){return t.remove()}),[]);if(c)for(var p=Array.isArray(c)?c:[c,"transparent"],f=0;f<s.length-1;f++){0===f&&2<s[0].points.length&&(y=C2(s[0].points,l,u),d.push({path:y,fill:p[d.length%2]}));var y=C2(s[f].points,l,u,h),g=C2(s[f+1].points.slice().reverse(),l,u,h,!0),m=void 0,m=h?"".concat(y," ").concat(g):"".concat(y," L").concat(g.slice(1)," Z");d.push({path:m,fill:p[d.length%2]})}i=d,A(e).selectAll(".grid-region").data(i,function(t,e){return e}).join(function(t){return t.append("path").attr("className","grid-region").each(function(t,e){this.attr(t),_2(this,e,i,null==o?void 0:o.style)})},function(t){return t.each(function(t,e){this.attr(t),_2(this,e,i,null==o?void 0:o.style)})},function(t){return t.remove()})};var L2,I2=j2;function j2(){return null!==L2&&L2.apply(this,arguments)||this}function R2(t,e){e?B(t,".axis-grid",function(){return new I2({})}).attr("className","axis-grid").call(function(t){return t.node().update(e)}):(t=t.querySelector(".axis-grid"))&&t.remove()}function D2(t,e,n,r){void 0===r&&(r=0);var t=D(t,2),i=D(t[0],2),o=i[0],i=i[1],t=D(t[1],2),a=t[0],t=t[1],e=D([e*(a-o)+o,e*(t-i)+i],2),s=e[0],e=e[1],a=la([0,0],[Math.abs(a-o),-Math.abs(t-i)]),o=c2(n,-1,1),n=D(aa([0,0],(t=a,!(i=[])?(i[0]=t[1],i[1]=-1*t[0]):(i[0]=-1*t[1],i[1]=t[0]),i),r),2),a=n[0],t=n[1];return[[s,e],[s+Bx(o,a),e+Bx(o,t)]]}function B2(a,s,t,e,n){var l=(null==n?void 0:n.len)||0,u=t,n=e||{},c=n.formatter,t=n.tickPadding,h=void 0===t?0:t,e=n.offset,d=void 0===e?0:e,t=n.alignTick,p=void 0===t||t,e=n.rotate,f=void 0===e?0:e,y=c2(u,-1,1);return Array.from(a).map(function(t,e){var n=t.value,r=(p||(n=((e===a.length-1?1:null==(r=a[e+1])?void 0:r.value)+n)/2+(i||0)/2),D(D2(s,n,u,l+h),2)),i=D(r[1],2),n=i[0],i=i[1],e=c?c(t,e):t.text,o=o2(u,"center",l2(u,"end","start"));return f&&(o=l2(u,"end",u2(u,"start",Dx(Bx(y,f),"left",Rx(Bx(y,f),"right"))))),{id:"label-".concat(t.id),data:t,x:n+o2(u,d,0),y:i+a2(u,d,0),text:e,textAlign:o,textBaseline:a2(u,"middle","top"===u?"bottom":"top"),transform:"rotate(".concat(f||0,"deg)")}})}yw.registerSymbol("axis-arrow",function(t,e,n){var r=t+2*n;return[["M",t,e],["L",r,e],["L",r-n,e-n],["L",r+n,e],["L",r-n,e+n],["L",r,e]]});var F2=Yw({render:function(t,e){var n=t.startPos,r=t.endPos,i=t.verticalFactor,o=t.ticksThreshold,a=t.appendTick,s=t.axisLine,l=t.ticks,l=void 0===l?[]:l,u=t.label,u=void 0===u?{}:u,c=t.tickLine,h=t.subTickLine,d=t.title,t=t.grid,n=[n||[0,0],r||[0,0]],r=D(n,2),p=D(r[0],2),f=p[0],p=p[1],r=D(r[1],2),y=r[0],r=r[1],g=la([0,0],[y-f,r-p]),g=(void 0===(g=g)&&(g=[0,0]),void 0===(i=i||1)&&(i=1),Math.abs(g[0])>Math.abs(g[1])?1===i?"bottom":"top":-1===i?"left":"right"),i=b2(l,o,a);R2(e,t);A2(B(e,".axis-line-group","g").attr("className","axis-line-group").node(),"M".concat(f,",").concat(p," L").concat(y,",").concat(r),n,s);l=B(e,".axis-tick-group","g").attr("className","axis-tick-group").node();m=n,v=g,b=(null==c?void 0:c.len)||0;k2(l,Array.from(i).map(function(t){var e=D(D2(m,t.value,v,b),2),n=D(e[0],2),r=n[0],n=n[1],e=D(e[1],2);return{x1:r,y1:n,x2:e[0],y2:e[1],id:"tick-".concat(t.id),data:t}}),c);var m,v,b,o="axis-subtick-group",a=B(e,".".concat(o),"g").attr("className",o).node();x=i,w=n,E=g,_=null==h?void 0:h.count,k=null==h?void 0:h.len,void 0===_&&(_=0),void 0===k&&(k=0);k2(a,Array.from(x).map(function(a,s){return s===x.length-1?[]:Array(_).fill(null).map(function(t,e){var n=(((null==(n=x[s+1])?void 0:n.value)||1)-a.value)/(_+1),n=a.value+n*(e+1),n=D(D2(w,n,E,k),2),r=D(n[0],2),i=r[0],r=r[1],n=D(n[1],2),o=n[0],n=n[1];return{id:"sub-".concat(a.id,"-").concat(e),x1:i,y1:r,x2:o,y2:n}})}).flat(),h,"sub");var x,w,E,_,k,T,M,S,t="axis-label-group",f=B(e,".".concat(t),"g").attr("className",t).node(),p=(O2(f,B2(i,n,g,u,c),u),f.querySelectorAll(".axis-label")),y=f.querySelectorAll(".axis-tick"),r=(x2(u,g)(p),w2(p,y,null==u?void 0:u.autoHideTickLine),D(l.getBounds().halfExtents,2)),o=r[0],a=r[1],h=D(f.getBounds().halfExtents,2),t=h[0],i=h[1],p=+((null==(c=null==s?void 0:s.style)?void 0:c.lineWidth)||0),u=(y=g,u=2*(o+t)+p,l=2*(a+i)+p,r=d,h=(f=D(f=n,2))[0],f=f[1],s=(h=D(h,2))[0],h=h[1],c=(f=D(f,2))[0],f=f[1],g=Math.min(s,c),o=Math.max(s,c),t=Math.min(h,f),a=Math.max(h,f),i=g,p=t,T=n=0,M="bottom",S="start","left"===y||"right"===y?(n=u+((null==r?void 0:r.titlePadding)||0),"center"===(null==r?void 0:r.titleAnchor)&&(p=(h+f)/2),"end"===(null==r?void 0:r.titleAnchor)&&(p=a,M="top"),"left"===y&&(S="end",n*=-1)):(T=l+((null==r?void 0:r.titlePadding)||0),"center"===(null==r?void 0:r.titleAnchor)&&(i=(s+c)/2,S="center"),"end"===(null==r?void 0:r.titleAnchor)&&(i=o,S="end"),"top"===y&&(T*=-1),"bottom"===y&&(M="top")),void 0!==(null==r?void 0:r.positionX)&&(i=g+r.positionX,S="start"),void 0!==(null==r?void 0:r.positionY)&&(p=t+r.positionY,M="bottom"),{x:i+n,y:p+T,textAlign:S,textBaseline:M});E2(e,u.x,u.y,u.textAlign,u.textBaseline,d)}},re.style),z2=Math.PI,V2=Math.abs,G2=Math.cos,H2=Math.sin,W2=D([2*z2],1)[0];function Y2(t,e,n,r,i){void 0===i&&(i=0);var t=D(t,2),o=t[0],t=t[1],n=n*Fx,a=e*G2(n),s=e*H2(n),r=c2(r,-1,1);return[[o+a,t+s],[o+(e+Bx(r,i))*G2(n),t+(e+Bx(r,i))*H2(n)]]}function U2(t){var e;return et(t[0],0)?e="center":0<t[0]?e="start":t[0]<0&&(e="end"),e}function q2(t,d,p,f,y,e,g,m){void 0===m&&(m=0);var v=e,b=c2(v,-1,1),e=g.tickPadding,x=void 0===e?0:e,w=g.formatter,E=g.align,_=g.rotate;return Array.from(t).map(function(t,e){var n,r=(p-d)*t.value+d,i=m+x,o=270<=(o=r)?(o-360)%360:o,a=D(Y2(y,f,r,v,i),2),a=D(a[1],2),s=a[0],a=a[1],l=w?w(t,e):t.text,u="center",c="baseline",h=[Bx(b,s-y[0]),Bx(b,a-y[1])];return"radial"===E?(c="middle",(90<=o||o<-90)&&(o+=180),u=U2(h),et(o,-90)&&(u=s2(v,"start","end")),et(o,270)&&(u=s2(v,"end","start"))):"tangential"===E?(u="center",c="bottom",0<=o&&o<180?(o+=270,e="function"==typeof(null==g?void 0:g.style)?g.style(t,e):null!=(e=null==(e=null==g?void 0:g.style)?void 0:e.fontSize)?e:14,r=D(Y2(y,f,r,v,i+e),2),s=(i=D(r[1],2))[0],a=i[1]):o+=90):(o=null!=_?_:0,u=U2(h),et((e=h)[1],0)?n="middle":0<e[1]?n="top":e[1]<0&&(n="bottom"),c=n),{id:"label-".concat(t.id),x:s,y:a,text:l,textAlign:u,textBaseline:c,transform:"rotate(".concat((o||0).toFixed(0),"deg)"),data:t}})}var X2,Z2=Yw({render:function(t,e){var n=t.startAngle,n=void 0===n?0:n,r=t.endAngle,r=void 0===r?0:r,i=t.center,o=t.radius,a=t.axisLine,s=t.tickLine,l=t.subTickLine,u=t.label,u=void 0===u?{}:u,c=t.ticks,R=t.title,h=t.grid,d=t.ticksThreshold,p=t.appendTick,t=t.verticalFactor,c=b2(void 0===c?[]:c,d,p),d=-1===t?"inside":"outside",p=(R2(e,h),B(e,".axis-line-group","g").attr("className","axis-line-group").node());t=i,h=o,g=n/180*Math.PI,j=r/180*Math.PI,void 0===h&&(h=0),void 0===g&&(g=0),void 0===j&&(j=0),f=(t=D(t=void 0===t?[0,0]:t,2))[0],t=t[1],L=(I=D([h,h],2))[0],I=I[1],_=(k=D([f+h*G2(g),t+h*H2(g)],2))[0],k=k[1],y=(h=D([f+h*G2(j),t+h*H2(j)],2))[0],h=h[1];A2(p,(p=V2(j-g))===W2?"M".concat(f,",").concat(t-I,", A").concat(L,",").concat(I,",0,1,1,").concat(f,",").concat(t+I,", A").concat(L,",").concat(I,",0,1,1,").concat(f,",").concat(t-I):(p=z2<p?1:0,j=j<g?0:1,"M".concat(f,",").concat(t,",L").concat(_,",").concat(k,",A").concat(L,",").concat(I,",0,").concat(p,",").concat(j,",").concat(y,",").concat(h,",L").concat(f,",").concat(t)),void 0,a);var f,y,g=B(e,".axis-tick-group","g").attr("className","axis-tick-group").node();m=n,v=r,b=o,x=i,w=d,void 0===(E=null==s?void 0:s.len)&&(E=0);k2(g,Array.from(c).map(function(t){var e=(v-m)*t.value+m,e=D(Y2(x,b,e,w,E),2),n=D(e[0],2),r=n[0],n=n[1],e=D(e[1],2);return{x1:r,y1:n,x2:e[0],y2:e[1],id:"tick-".concat(t.id),data:t}}),s);var m,v,b,x,w,E,_="axis-subtick-group",k=B(e,".".concat(_),"g").attr("className",_).node();T=c,M=n,S=r,O=o,P=i,A=d,N=null==l?void 0:l.count,C=null==l?void 0:l.len,void 0===N&&(N=0),void 0===C&&(C=0);k2(k,Array.from(T).map(function(a,s){return Array(N).fill(null).map(function(t,e){var n=(((null==(n=T[s+1])?void 0:n.value)||1+T[0].value)-a.value)/(N+1),n=a.value+n*(e+1),n=D(Y2(P,O,(S-M)*n+M,A,C),2),r=D(n[0],2),i=r[0],r=r[1],n=D(n[1],2),o=n[0],n=n[1];return{id:"sub-".concat(a.id,"-").concat(e),x1:i,y1:r,x2:o,y2:n}})}).flat(),l,"sub");var T,M,S,O,P,A,N,C,L="axis-label-group",I=B(e,".".concat(L),"g").attr("className",L).node(),p=(O2(I,q2(c,n,r,o,i,d,u,null==s?void 0:s.len),u),I.querySelectorAll(".axis-label")),j=I.querySelectorAll(".axis-tick");x2(u,d)(p),w2(p,j,null==u?void 0:u.autoHideTickLine),E2(e,i[0],i[1],"center","middle",R)}},rw({startAngle:-90,endAngle:270,center:[0,0],label:{tickPadding:2,style:{},align:"normal"}},re.style||{})),K2=(i($2,X2=Xd),$2.prototype.connectedCallback=function(){this.render(),this.bindEvents()},$2.prototype.update=function(t){this.attr(N({},this.attributes,t=void 0===t?{}:t)),t.disabled&&(this.active=!1,this.disabled=!0),this.render()},$2.prototype.setState=function(t){"disabled"===t?(this.active=!1,this.disabled=!0):this.disabled=!1,this.render()},$2.prototype.render=function(){var t=this.style,e=t.size,e=void 0===e?8:e,n=t.symbol,r=t.markerStyle,t=t.backgroundStyle,i=D(zx(this.style.margin),4),o=i[0],a=i[1],s=i[2],i=i[3],l=D(zx(this.style.padding),4),u=l[0],c=l[1],h=l[2],l=l[3],c=(e-c-l)/2,h=(e-u-h)/2,a=(B(this,".container","rect").attr("className","container").style("x",-(c+l+i)).style("y",-(h+u+o)).style("width",e+a+i).style("height",e+o+s).style("fill","transparent").style("cursor",this.disabled?"not-allowed":"pointer").style("zIndex",1),t||{}),i=a.active,o=a.disabled,s=I(a,["active","disabled"]),t=(B(this,".background","rect").attr("className","background").style("x",-(c+l)).style("y",-(h+u)).style("width",e).style("height",e).call(C,s).call(C,this.active?i:{}).call(C,this.disabled?o:{}),"function"==typeof n?n:$2.getSymbol(n||"")),a=r||{},l=a.active,u=a.disabled,e=I(a,["active","disabled"]);B(this,".marker","path").attr("className","marker").style("x",0).style("y",0).style("path",null==t?void 0:t(0,0,Math.min(c,h))).call(C,e).call(C,this.active?l:{}).call(C,this.disabled?u:{})},$2.prototype.bindEvents=function(){var e=this,n=A(this).select(".marker"),r=A(this).select(".background");A(this).on("pointerup",function(){e.disabled||(e.active=!0)}),A(this).on("pointermove",function(){var t;e.disabled||(e.active=!0,C(n,null==(t=e.style.markerStyle)?void 0:t.active),C(r,null==(t=e.style.backgroundStyle)?void 0:t.active))}),A(this).on("pointerout",function(){e.disabled||(e.active=!1,C(n,mt(e.style.markerStyle||{},["active"])),C(r,mt(e.style.backgroundStyle||{},["active"])))})},$2.MARKER_SYMBOL_MAP=new Map,$2.registerSymbol=function(t,e){$2.MARKER_SYMBOL_MAP.set(t,e)},$2.getSymbol=function(t){return $2.MARKER_SYMBOL_MAP.get(t)},$2);function $2(t){t=X2.call(this,t)||this;return t.active=!1,t.disabled=!1,t.disabled=t.style.disabled||!1,t}K2.registerSymbol("timeline-prev-button",function(t,e,n){return[["M",t+n,e+n],["L",t,e],["L",t+n,e-n],["M",t,e+n],["L",t-n,e],["L",t,e-n]]}),K2.registerSymbol("timeline-next-button",function(t,e,n){return[["M",t,e+n],["L",t+n,e],["L",t,e-n],["M",t-n,e+n],["L",t,e],["L",t-n,e-n]]}),K2.registerSymbol("timeline-play-button",function(t,e,n){return[["M",t+2,e+3],["L",t+2,e-3],["M",t-2,e+3],["L",t-2,e-3]]}),K2.registerSymbol("timeline-stop-button",function(t,e,n){return[["M",t+3,e],["L",t-1.5,e-1.5*Math.sqrt(3)],["L",t-1.5,e+1.5*Math.sqrt(3)],["Z"]]});var l={margin:[2,4],markerStyle:{stroke:"#bfbfbf",active:{stroke:"#3471F9"}},backgroundStyle:{fill:"transparent"}},J2={x:0,y:0,data:[],width:500,height:40,selection:[0,0],orient:"horizontal",singleModeControl:{width:56,size:12,labelStyle:{text:"单一时间",fontSize:10,dx:4}},speedControl:{width:32,markerSize:4,speeds:[1,2,3,4,5],labelStyle:{fontFamily:"sans-serif",fill:"rgba(0,0,0,0.45)",fontStyle:"normal",fontWeight:500,fontSize:10,textBaseline:"top"},formatter:function(t){return"".concat(t.toFixed(1),"x")}},controlPosition:"bottom",controlButton:{spacing:14,prevBtn:T(T({},l),{symbol:"timeline-prev-btn",padding:0,size:8}),nextBtn:T(T({},l),{symbol:"timeline-next-btn",padding:0,size:8}),playBtn:{margin:4,padding:0,size:20,symbol:"",markerStyle:{stroke:"#bfbfbf",fill:"#bfbfbf",active:{stroke:"#3471F9",fill:"#3471F9"}},backgroundStyle:{stroke:"#bfbfbf",lineWidth:1,fill:"#F7F7F7",active:{fill:"rgba(52, 113, 249, 0.1)",stroke:"#3471F9"}}}},padding:[0,8],playAxis:{appendPadding:[4,0],handleStyle:{r:3,lineWidth:1},label:{position:1,tickPadding:2,tickLine:{len:4,style:{stroke:"rgba(0,0,0,0.25)",lineWidth:1}},style:{fontSize:10,fillOpacity:1,fill:"rgba(0,0,0,0.45)"}},loop:!1},playInterval:2e3,autoPlay:!1},Q2=N({},{x:0,y:0,data:[],length:120,orient:"horizontal",selection:0,selectionStyle:{fill:"#5B8FF9",fillOpacity:.15},loop:!1,playInterval:1e3},J2.playAxis),tE={axisLine:null,label:{autoRotate:!1,rotate:0,autoHide:!0,autoHideTickLine:!1,autoEllipsis:!0,minLength:50,alignTick:!0}};function eE(t,e){void 0===t&&(t=[]);var t=D(Array.of(t).flat(),2),n=t[0],n=void 0===n?0:n,t=t[1];return e?[n,n]:[n,void 0===t?n:t]}i(rE,nE=Xd),rE.prototype.update=function(t){var e=N({},this.attributes,t=void 0===t?{}:t),t=(t.selection&&(this.selection=eE(t.selection,e.singleMode)),t.singleMode&&(this.selection=eE(e.selection,t.singleMode)),this.playTimer);t&&this.stop(),this.attr(e),this.render(),t&&this.play()},rE.prototype.play=function(){var r=this,t=this.style,e=t.data,i=t.loop,o=t.singleMode,a=t.playMode,s=e.length,t=this.style.playInterval;V(t)&&(t=Q2.playInterval),this.playTimer&&clearInterval(this.playTimer),this.playTimer=setInterval(function(){var t,e,n;!i&&r.selection[1]>=s-1?r.stop(!0):o?(t=(r.selection[0]+1)%s,r.setSelection({start:t,end:t})):(t=r.selection[0],n=r.selection[1],e=r.selection[1]-r.selection[0],n=s-1<=n?"increase"===a?t:(t=0,e):("increase"!==a&&(t=(t+1)%s),(n+1)%s),r.setSelection({start:t,end:n}))},t)},rE.prototype.stop=function(t){clearInterval(this.playTimer),this.playTimer=void 0,t&&this.dispatchEvent(new jd("timelineStopped",{selection:this.selection}))},rE.prototype.prev=function(){var t,e=D(this.selection,2),n=e[0],e=e[1],r=this.style.data.length,r=r&&this.style.singleMode?t=(n-1+r)%r:0===n?(t=r-(e-n)-1,r-1):(t=n-1,e-1);this.setSelection({start:null!=t?t:this.selection[0],end:null!=r?r:this.selection[1]})},rE.prototype.next=function(){var t,e=D(this.selection,2),n=e[0],e=e[1],r=this.style.data.length,r=r&&this.style.singleMode?t=(n+1)%r:e===r-1?(t=0,e-n):(t=n+1,e+1);this.setSelection({start:null!=t?t:this.selection[0],end:null!=r?r:this.selection[1]})},rE.prototype.getSelection=function(){return this.selection},Object.defineProperty(rE.prototype,"orient",{get:function(){return this.style.orient||"horizontal"},enumerable:!1,configurable:!0}),rE.prototype.ifH=function(t,e){return"horizontal"===this.orient?"function"==typeof t?t():t:"function"==typeof e?e():e},rE.prototype.destroy=function(){nE.prototype.destroy.call(this),this.playTimer&&clearInterval(this.playTimer),this.playTimer=void 0};var nE,r=rE;function rE(){var t=null!==nE&&nE.apply(this,arguments)||this;return t.selection=[0,0],t}function iE(t,e){return new qv({domain:t.map(function(t,e){return e}),range:e,padding:.1})}function oE(t,e,n){n=iE(n,[0,e]).getStep(),e=0<t?Math.ceil:Math.floor;return 0<n?e(t/n):0}function aE(t,e,n){return iE(n,[0,e]).map(t)}i(uE,sE=r),uE.prototype.connectedCallback=function(){this.render(),this.bindEvents()},Object.defineProperty(uE.prototype,"styles",{get:function(){return N({},uE.defaultOptions.style,this.attributes)},enumerable:!1,configurable:!0}),uE.prototype.setSelection=function(t){var e,n,r=t.start,t=t.end,i=this.styles,o=i.data,o=void 0===o?[]:o,i={duration:i.playInterval/2,easing:"cubic-bezier(0.250, 0.460, 0.450, 0.940)",fill:"both"},a=this.ifH("cx","cy"),s=A(this).select(".slider-start-handle").node();void 0!==r&&(n=aE(r,this.style.length,o),this.startHandleAnimation=s.animate([((e={})[a]=s.style[a],e),((s={})[a]=n,s)],i)),void 0!==t&&(e=A(this).select(".slider-end-handle").node(),n=aE(t,this.style.length,o),this.endHandleAnimation=e.animate([((s={})[a]=e.style[a],s),((o={})[a]=n,o)],i)),this.selection=[null!=r?r:this.selection[0],null!=t?t:this.selection[1]],this.dispatchEvent(new jd("selectionChanged",{detail:{selection:this.selection}}))},uE.prototype.render=function(){var e=this,n=this.styles,t=D(this.ifH([n.length,n.size],[n.size,n.length]),2),r=t[0],i=t[1],t=B(this,".slider-background","line").attr("className","slider-background").style("x1",0).style("y1",0).style("x2",this.ifH(r,0)).style("y2",this.ifH(0,i)).style("lineWidth",n.size).style("lineCap","round").style("stroke",null==(t=n.backgroundStyle)?void 0:t.fill).style("strokeOpacity",null==(t=n.backgroundStyle)?void 0:t.fillOpacity).node(),o=iE(n.data,[0,1]),a=D(this.selection.map(function(t){return o.map(t)}),2),s=a[0],s=void 0===s?0:s,a=a[1],a=void 0===a?s:a,l=this.ifH(s*r,0),u=this.ifH(a*r,0),s=this.ifH(0,s*i),a=this.ifH(0,a*i),c=(B(t,".slider-selection","line").attr("className","slider-selection").style("x1",l).style("y1",s).style("x2",u).style("y2",a).style("lineWidth",n.size).style("lineCap","round").style("stroke",null==(h=n.selectionStyle)?void 0:h.fill).style("strokeOpacity",null==(h=n.selectionStyle)?void 0:h.fillOpacity).style("visibility",n.singleMode?"hidden":"visible").call(C,n.selectionStyle),"running"===(null==(h=this.startHandleAnimation)?void 0:h.playState)&&this.startHandleAnimation.pause(),B(t,".slider-start-handle","circle").attr("className","slider-start-handle").style("cx",l).style("cy",s).call(C,n.handleStyle),"paused"===(null==(h=this.startHandleAnimation)?void 0:h.playState)&&this.startHandleAnimation.play(),"running"===(null==(l=this.endHandleAnimation)?void 0:l.playState)&&this.endHandleAnimation.pause(),B(t,".slider-end-handle","circle").attr("className","slider-end-handle").style("cx",u).style("cy",a).style("visibility",n.singleMode?"hidden":"visible").call(C,n.handleStyle),"paused"===(null==(s=this.endHandleAnimation)?void 0:s.playState)&&this.endHandleAnimation.play(),n.data.map(function(t,e){return{value:o.map(e),text:t.date}})),h=n.label||{},l=h.position,d=void 0===l?-1:l,p=h.tickLine,f=I(h,["position","tickLine"]);B(t,".slider-axis",function(){return new F2({className:"slider-axis"})}).call(function(t){return t.node().update(N({},tE,{startPos:[d*e.ifH(0,r+2),d*e.ifH(i+2,0)],endPos:[e.ifH(r,0)+d*e.ifH(0,r+2),e.ifH(0,i)+d*e.ifH(i+2,0)],ticks:c,verticalFactor:d,tickLine:null===n.label?null:p,label:null===n.label?null:f}))})},uE.prototype.bindEvents=function(){var t=A(this).select(".slider-background"),r=(this.dragHandle(t,"start"),this.dragHandle(t,"end"),this.dragSelection(t),t.select(".slider-selection").node()),e=t.select(".slider-start-handle").node(),t=t.select(".slider-end-handle").node();e.addEventListener(E.ATTR_MODIFIED,function(t){var e=t.attrName,n=t.newValue;t.prevValue,"cx"!==e&&"cy"!==e||(t=parseFloat(n)||0,r.style["cx"===e?"x1":"y1"]=t)}),t.addEventListener(E.ATTR_MODIFIED,function(t){var e=t.attrName,n=t.newValue;t.prevValue,"cx"!==e&&"cy"!==e||(t=parseFloat(n)||0,r.style["cx"===e?"x2":"y2"]=t)})},uE.prototype.dragHandle=function(n,o){function t(t){var e,n,r,i;u&&(u=!1,t=oE(s?l.ifH(t.x-s[0],t.y-s[1]):0,l.style.length,l.style.data),s=void 0,e=(n=D(l.selection,2))[0],n=n[1],r=l.style.data.length-1,"start"===o?e===n&&0<t?(i=J(0,e+t,r),l.setSelection({start:i,end:i})):l.setSelection({start:J(e+t,0,n)}):e===n&&t<0?(i=J(0,n+t,r),l.setSelection({start:i,end:i})):l.setSelection({end:J(n+t,e,r)}),l.playTimer&&l.play())}var a,s,l=this,u=!1;n.on("pointerdown",function(t){l.playTimer&&clearInterval(l.playTimer);var e=n.select(".slider-".concat(o,"-handle")).node();t.target===e&&(u=!0,s=[t.x,t.y],a=[t.x,t.y])}.bind(this)).on("pointerup",t).on("mouseupoutside",t).on("touchendoutside",t).on("pointermove",function(t){var e,n,r,i;u&&(e=l.styles.length,n=A(l).select(".slider-".concat(o,"-handle")).node(),r=l.ifH(t.x-a[0],t.y-a[1]),i=n.getLocalPosition(),"vertical"===l.orient?n.style.cy=J(i[1]+r,0,e):n.style.cx=J(i[0]+r,0,e),a=[t.x,t.y])})},uE.prototype.dragSelection=function(t){function e(t){l.playTimer&&clearInterval(l.playTimer),t.target===o&&(h=!0,i=[t.x,t.y],s=[t.x,t.y])}function n(t){var e;h&&(h=!1,t=oE(i?l.ifH(t.x-i[0],t.y-i[1]):0,l.style.length,l.style.data),i=void 0,e=l.selection[1]-l.selection[0],t=J(l.selection[1]+t,e,l.style.data.length-1),l.setSelection({start:t-e,end:t}),l.playTimer&&l.play())}function r(t){var e,n,r,i,o,a;h&&(e=l.styles.length,n=l.ifH(t.x-s[0],t.y-s[1]),r=(a=D(u.getLocalPosition(),2))[0],a=a[1],i=(o=D(c.getLocalPosition(),2))[0],o=o[1],"vertical"===l.orient?(u.style.cy=J(a+n,0,e-(o=o-a)),c.style.cy=u.style.cy+o):(a=i-r,u.style.cx=J(r+n,0,e),c.style.cx=u.style.cx+a),s=[t.x,t.y])}var s,i,l=this,o=t.select(".slider-selection").node(),u=t.select(".slider-start-handle").node(),c=t.select(".slider-end-handle").node(),h=!1;t.on("mousedown",e.bind(this)).on("touchstart",e.bind(this)).on("mouseup",n.bind(this)).on("mouseupoutside",n.bind(this)).on("touchend",n.bind(this)).on("touchendoutside",n.bind(this)).on("mousemove",r.bind(this)).on("touchmove",r.bind(this))},uE.defaultOptions={style:N({},Q2,{tag:"slider-axis",size:3,handleStyle:{r:3,stroke:"#8AADF3",strokeOpacity:.75,lineWidth:1,fill:"#fff",fillOpacity:1},backgroundStyle:{fill:"#416180",fillOpacity:.1},selectionStyle:{cursor:"grabbing"}})};var sE,lE=uE;function uE(t){t=sE.call(this,N({},uE.defaultOptions,t))||this;return t.startHandleAnimation=null,t.endHandleAnimation=null,t.selection=eE(t.style.selection,t.style.singleMode),t}function cE(t,e){return new qm({domain:t.map(function(t,e){return e}),range:e,paddingOuter:0,paddingInner:0})}i(pE,hE=r),pE.prototype.connectedCallback=function(){this.render(),this.bindEvents()},Object.defineProperty(pE.prototype,"styles",{get:function(){return N({},pE.defaultOptions.style,this.attributes)},enumerable:!1,configurable:!0}),pE.prototype.setSelection=function(t){var e,n=D(this.selection,2),r=n[0],n=n[1];this.selection=eE([null!=(e=t.start)?e:r,null!=(e=t.end)?e:n],this.style.singleMode),this.dispatchEvent(new jd("selectionChanged",{detail:{selection:this.selection}})),this.render()},pE.prototype.render=function(){var i=this,r=this.styles,o=r.size,a=r.spacing,t=D(this.ifH(["x","y","width","height"],["y","x","height","width"]),4),s=t[0],l=t[1],u=t[2],c=t[3],t=B(this,".slider-background","rect").attr("className","slider-background").style("x",0).style("y",0).style(u,r.length).style(c,o+a).call(C,r.backgroundStyle).node(),h=this.getCellScale(),d=h.getBandWidth(),e=r.data.map(function(t,e){var n;return T(((n={})[s]=h.map(e),n[l]=a/2,n[u]=d-r.cellGap,n[c]=o,n),r.cellStyle)}),e=(A(t).selectAll(".cell").data(e).join(function(t){return t.append("rect").attr("className","cell").each(function(t){this.attr(t)})},function(t){return t.each(function(t){this.attr(t)})},function(t){return t.remove()}),e.filter(function(t,e){var n=D(i.selection,2),r=n[0],n=n[1];return r<=e&&e<=n}).map(function(t){return T(T({},t),r.selectionStyle)})),n={duration:this.style.playInterval/2,easing:"cubic-bezier(0.250, 0.460, 0.450, 0.940)",fill:"both"},p=(A(t).selectAll(".selected-cell").data(e).join(function(t){return t.append("rect").attr("className","selected-cell").each(function(t){this.attr(t)})},function(t){return t.each(function(t){this.animate([t],n)})},function(t){return t.remove()}),r.length-2*r.spacing+r.cellGap),f=cE(r.data,[0,p]),y=r.data.map(function(t,e){return{value:(f.map(e)+(d-r.cellGap)/2)/p,text:t.date}}),e=r.label||{},g=e.position,m=void 0===g?-1:g,v=e.tickLine,b=I(e,["position","tickLine"]),g=-1===m?-2:r.spacing+o+2,x=[r.spacing,g],w=[a+p,g];"vertical"===this.orient&&(x=[x[1],x[0]],w=[w[1],w[0]]),B(t,".slider-axis",function(){return new F2({className:"slider-axis",style:tE})}).call(function(t){return t.node().update({startPos:x,endPos:w,ticks:y,verticalFactor:m,tickLine:null===r.label?null:v,label:null===r.label?null:b})})},pE.prototype.bindEvents=function(){this.dragSelection()},pE.prototype.getCellScale=function(){var t=this.styles.cellGap,e=this.styles.length,n=this.styles.spacing;return cE(this.style.data,[n,e-n+t])},pE.prototype.dragSelection=function(){function t(){r=!1,i.playTimer&&i.play()}var n,i=this,o=A(this).select(".slider-background"),r=!1,a=this.styles.spacing,s=function(t){var e=D(o.node().getPosition(),2),n=e[0],e=e[1],n=i.ifH(n+4,e+a),e=i.styles.cellGap,r=i.getCellScale().getStep();return Math.floor((t-n+e)/r)};o.on("pointerdown",function(t){i.playTimer&&clearInterval(i.playTimer),r=!0,n=i.ifH(t.x,t.y);t=s(n);i.setSelection({start:t,end:t})}).on("pointerup",t).on("mouseupoutside",t).on("touchendoutside",t).on("pointermove",function(t){var e;r&&(t=s(i.ifH(t.x,t.y)),e=(t=D((e=n?s(n):t)<t?[e,t]:[t,e],2))[0],t=t[1],i.setSelection({start:e,end:t}))})},pE.defaultOptions={style:N({},Q2,{tag:"cell-axis",backgroundStyle:{fill:"#416180",fillOpacity:.05},size:16,spacing:4,cellGap:2,cellStyle:{fill:"#416180",fillOpacity:.1},selectionStyle:{fillOpacity:.45},label:{autoHideTickLine:!0}})};var hE,dE=pE;function pE(t){t=hE.call(this,N({},pE.defaultOptions,t))||this;return t.selection=eE(t.style.selection,t.style.singleMode),t}function fE(t,e){return[1.43,2.79,4.89,7.57,11.66][t]/11.66*e}var yE,w=N({},J2.speedControl,{markerFill:"#8c8c8c",spacing:1,lineStyle:{stroke:"#bfbfbf",lineWidth:1}}),gE=(i(mE,yE=Xd),mE.prototype.connectedCallback=function(){this.render(),this.bindEvents()},mE.prototype.update=function(t){this.attr(N({},this.attributes,t=void 0===t?{}:t)),this.render()},Object.defineProperty(mE.prototype,"styles",{get:function(){return N({},mE.defaultOptions.style,this.attributes)},enumerable:!1,configurable:!0}),mE.prototype.render=function(){var t=this.styles,e=t.initialSpeed,n=t.markerSize,r=t.markerFill,i=t.lineStyle,o=t.speeds,a=t.labelStyle,s=t.spacing,t=t.formatter,t=void 0===t?function(t){return"".concat(t)}:t,e=o.indexOf(e),l=2*n,u=fE(e=-1===e?0:e,2*l),c=n*Math.tan(Math.PI/6)*2,r=(B(this,".speed-marker","path").attr("className","speed-marker").style("fill",r).style("path",[["M",0,u-c/2],["L",n,u],["L",0,u+c/2],["Z"]]),n-.5),u=B(this,".line-group","rect").attr("className","line-group").style("x",r).style("y",0).style("width",l).style("height",2*l).style("cursor","pointer").style("fill","transparent").node(),c=o.reduce(function(t,e,n){n=fE(n,2*l);return t.push(["M",0,n],["L",l,n]),t},[]);B(u,".speed-path","path").attr("className","speed-path").style("path",c).call(C,i),B(this,".speed-label","text").attr("className","speed-label").style("x",r+l+s).style("y",2).style("text",t(o[e])).call(C,a)},mE.prototype.bindEvents=function(){var e=this,t=this.querySelector(".line-group");t.addEventListener("pointerdown",function(t){return e.onClick(t)}),t.addEventListener("touchmove",function(t){return e.onClick(t)})},mE.prototype.onClick=function(t){var o,e=this.styles,a=e.speeds,n=e.markerSize,e=e.formatter,e=void 0===e?function(t){return"".concat(t)}:e,s=2*n*2,n=this.querySelector(".line-group"),r=A(this).select(".speed-label").node(),i=A(this).select(".speed-marker").node();t.currentTarget===n&&(o=t.y-n.getBBox().y,-1!==(t=a.findIndex(function(t,e){var n=fE(e,s),r=fE(e-1,s),i=fE(e+1,s);return 0===e?o<n+(fE(1,s)-n)/2:e===a.length-1?n-(n-r)/2<o:(e=[n-(n-r)/2,n+(i-n)/2])[0]<=o&&o<e[1]}))&&(r.setAttribute("text",e(a[t])),i.setLocalPosition(0,fE(t,s)-s/8),this.dispatchEvent(new jd("speedChanged",{detail:{speed:a[t]}}))))},mE.tag="speed-control",mE.defaultOptions={style:w},mE);function mE(t){return yE.call(this,N({},mE.defaultOptions,t))||this}i(wE,vE=Xd),wE.prototype.connectedCallback=function(){this.render(),this.bindEvents()},Object.defineProperty(wE.prototype,"styles",{get:function(){return N({},wE.defaultOptions.style,this.attributes)},enumerable:!1,configurable:!0}),wE.prototype.update=function(t){this.attr(N({},this.attributes,t=void 0===t?{}:t)),V(t.active)||(this.active=t.active),this.render()},wE.prototype.render=function(){var t,e=this.styles,n=e.size,r=e.buttonStyle,i=e.labelStyle,e=e.symbol,o=r.active,r=I(r,["active"]),r=B(this,".button","rect").attr("className","button").style("x",0).style("y",0).style("width",n).style("height",n).call(C,r).call(C,this.active?o:{}).node();B(r,".symbol","path").attr("className","symbol").style("x",n/2).style("y",n/2).style("path",[["M",(o=n/2)-(t=r=n/2)/7*4,r-t/14],["L",o-t/7,r+t/7*3],["L",o+t/7*4,r-t/7*3]]).style("lineWidth",1).style("lineCap","round").style("stroke","transparent").style("cursor","pointer").call(C,this.active?null==e?void 0:e.active:{}),B(this,".label","text").attr("className","label").style("x",n).style("y",n/2).call(C,i)},wE.prototype.bindEvents=function(){var t=this;A(this).select(".button").on("pointerdown",function(){t.dispatchEvent(new jd("singleModeChanged",{detail:{active:!t.active}}))})},wE.defaultOptions={style:{size:12,buttonStyle:{fill:"transparent",stroke:"#000",strokeOpacity:.15,cursor:"pointer",lineWidth:1,radius:2,active:{stroke:"#3471F9",fill:"#3471F9",strokeOpacity:1}},symbol:{active:{stroke:"#fff"}},labelStyle:{text:"",textAlign:"left",textBaseline:"middle",fill:"#000",fillOpacity:.65},cursor:"pointer"}};var vE,bE,xE=wE;function wE(t){t=vE.call(this,N({},wE.defaultOptions,t))||this;return t.active=!1,t.active=t.style.active||!1,t}function EE(t,e,n){var r,i,o,a,s,n=N({},J2,n),l=n.type,u=n.playAxis,c=n.controlButton,h=n.speedControl,d=n.singleModeControl,p=(null==(p=null==u?void 0:u.label)?void 0:p.position)||-1,f=null!=(f=null==u?void 0:u.spacing)?f:(null==(f=null==(f=dE.defaultOptions)?void 0:f.style)?void 0:f.spacing)||0,y=(null==u?void 0:u.size)||("cell"===l?null==(y=null==(y=dE.defaultOptions)?void 0:y.style)?void 0:y.size:null==(y=null==(y=lE.defaultOptions)?void 0:y.style)?void 0:y.size)||4,f=(y+="cell"===l?f:0,D(zx(null==u?void 0:u.appendPadding),4)),g=f[0],m=f[1],v=f[2],f=f[3],b=(null==c?void 0:c.spacing)||0,x=at(c)||at(null==c?void 0:c.playBtn)?0:null==(x=null==c?void 0:c.playBtn)?void 0:x.size,w=at(c)||at(null==c?void 0:c.prevBtn)?0:null==(w=null==c?void 0:c.prevBtn)?void 0:w.size,c=at(c)||at(null==c?void 0:c.nextBtn)?0:null==(c=null==c?void 0:c.nextBtn)?void 0:c.size,E=x/2+w/2+b,_=x/2+c/2+b,k=null===h?0:null==h?void 0:h.markerSize,T=2*k,h=null===h?0:null==h?void 0:h.width,M=2*T+k/2,S=null===d?0:null==d?void 0:d.width,d=null===d?0:(null==d?void 0:d.size)+2;return"vertical"===n.orient?{axis:{x:(n=f+(-1===p?30:0))+("cell"===l?0:y/2),y:i=(r=w+b+x/2)+x/2+b+g,length:(o=(s=(a=e-d)-4-M)-b-c/2)-b-c/2-v-i},prevBtn:{x:i=n+y/2,y:w/2,size:w},playBtn:{x:i,y:r,size:x},nextBtn:{x:i,y:o,size:c},speedControl:{x:n-h/2,y:s,size:h},singleModeControl:{x:0,y:a}}:(i=(r=e-S)-8-h,o=u,s=(o=N({},J2.playAxis,o).label)?((null==(n=o.tickLine)?void 0:n.len)||0)+(o.tickPadding||0)+(Number(o.style.fontSize)||0)+2:0,a=(-1===p?s:0)+("cell"===l?0:y/2)+g,"bottom"===t?{axis:{x:f,y:a,length:e-(f+m)},playBtn:{x:S=e/2,y:u=a+(1===p?s:0)+y+x/2+v,size:x},prevBtn:{x:S-E,y:u,size:w},nextBtn:{x:S+_,y:u,size:c},speedControl:{x:i,y:n=a+(1===p?s:0)+y+v,size:h},singleModeControl:{x:r,y:n+T-d/2}}:(g="cell"===l?a+y/2:a,e="cell"===l&&-1===p?s+y-M:1===p?a+k/2:a-M,"left"===t?{axis:{x:n=(v=(u=(S=w/2)+E)+_)+c/2+f,y:a,length:i-m-n},prevBtn:{x:S,y:g,size:w},playBtn:{x:u,y:g,size:x},nextBtn:{x:v,y:g,size:c},speedControl:{x:i,y:e,size:h},singleModeControl:{x:r,y:e+T-d/2}}:{axis:{x:f,y:a,length:(y=(s=(l=i-(c/2+b))-_)-E)-w/2-m-f},playBtn:{x:s,y:g,size:x},prevBtn:{x:y,y:g,size:w},nextBtn:{x:l,y:g,size:c},speedControl:{x:i,y:e,size:h},singleModeControl:{x:r,y:e+T-d/2}}))}function _E(t){t=bE.call(this,N({},{style:J2},t))||this;return t.speed=1,t.singleMode=!1,t.playing=!1,t.selection=[0,0],t.singleMode=t.style.singleMode||!1,t.selection=eE(t.style.selection,t.singleMode),t}function kE(t){var e,n={left:0,top:0,width:0,height:0};return"html"===(null==t?void 0:t.tagName)?n={left:0,top:0,width:(e=t.style).width,height:e.height}:t&&(t=(e=t.getLocalBounds()).min,e=e.halfExtents,n={left:t[0],top:t[1],width:2*e[0],height:2*e[1]}),{left:0,top:0,right:n.width,bottom:n.height}}function TE(t,n){var r,e,i,o;return n?(r=n.useHTML,e=n.style,i="legend-title ".concat(r?"html":"text","-title"),o="<span>".concat((null==n?void 0:n.content)||"","</span>"),B(t,".".concat(i),function(){return r?new gp({className:i,style:{innerHTML:o}}):new fp({className:i,style:e})}).call(function(t){var e;r?t.style("width",null!=(e=n.width)?e:80).style("height",null!=(e=n.height)?e:20).style("innerHTML",o):t.style("fontSize",12).style("textBaseline","top").style("text",n.content||"")}).call(C,e).node()):((t=t.querySelector(".legend-title"))&&t.remove(),null)}function ME(t,e,n,r){return B(t,".".concat(e),"g").attr("className",e).style("x",n).style("y",r).node()}function SE(t,e,n,r,i){B(t,".".concat(e),"rect").attr("className",e).style("zIndex",-1).style("width",n).style("height",r).call(C,i||{}).node()}i(_E,bE=Xd),_E.prototype.connectedCallback=function(){this.render(),this.bindEvents()},_E.prototype.update=function(t){this.attr(N({},this.attributes,t=void 0===t?{}:t)),void 0!==t.singleMode&&(this.singleMode=t.singleMode),t.selection&&(this.selection=eE(t.selection,this.singleMode)),this.render()},Object.defineProperty(_E.prototype,"styles",{get:function(){return N({},J2,this.attributes)},enumerable:!1,configurable:!0}),_E.prototype.render=function(){var e=this,t=this.styles,n=t.width,r=t.height,i=t.controlPosition,o=t.speedControl,a=t.singleModeControl,t=D(zx(this.styles.padding),4),s=t[0],s=void 0===s?0:s,l=t[1],l=void 0===l?0:l,u=t[2],t=t[3],t=void 0===t?l:t,c=B(this,".container","g").attr("className","container").style("x",t).style("y",s).node(),h=EE(i,"vertical"===this.style.orient?r-(s+u):n-(t+l),this.styles);this.renderAxis(c,h),this.renderControlButton(c,h),B(c,".timeline-speed-control",function(){return new gE({})}).attr("className","timeline-speed-control").call(function(t){null===o?t.remove():t.node().update(T(T({x:h.speedControl.x,y:h.speedControl.y},o),{initialSpeed:e.speed}))}),B(c,".timeline-single-control",function(){return new xE({})}).attr("className","timeline-single-control").call(function(t){null===a?t.remove():t.node().update(T(T({x:h.singleModeControl.x,y:h.singleModeControl.y},a),{active:e.singleMode}))})},_E.prototype.renderAxis=function(t,e){var n=this,r=this.styles.data,i=this.styles.type||"slider",o=A(t).select(".timeline-axis").node(),a="cell"===i?dE:lE;o&&o.style.tag!=="".concat(i,"-axis")&&(o.remove(),this.removeChild(o)),B(t,".timeline-axis",function(){return new a({})}).attr("className","timeline-axis").call(function(t){t.node().update(T({x:e.axis.x,y:e.axis.y,length:e.axis.length,data:r,selection:n.selection,orient:n.style.orient,playInterval:n.style.playInterval/n.speed,singleMode:n.singleMode},n.style.playAxis||{})),t.node().update({handleStyle:{cursor:"vertical"===n.style.orient?"ns-resize":"ew-resize"}})}).node()},_E.prototype.renderControlButton=function(t,n){var e,r=this,i=n.playBtn.size||0,o=n.prevBtn.size||0,a=(null==(e=n.nextBtn)?void 0:e.size)||0;B(t,".timeline-prev-btn",function(){return new K2({})}).attr("className","timeline-prev-btn").call(function(t){var e;o?(t.node().update(T(T({},(null==(e=r.style.controlButton)?void 0:e.prevBtn)||{}),{x:n.prevBtn.x,y:n.prevBtn.y,size:o,symbol:"timeline-prev-button"})),t.node().update({markerStyle:{transformOrigin:"center",transform:"vertical"===r.style.orient?"rotate(90deg)":""}})):t.remove()}),B(t,".timeline-play-btn",function(){return new K2({})}).attr("className","timeline-play-btn").call(function(t){var e;i?(t.node().update({backgroundStyle:{radius:(n.playBtn.size||0)/2}}),t.node().update(T(T({},(null==(e=r.style.controlButton)?void 0:e.playBtn)||{}),{x:n.playBtn.x,y:n.playBtn.y,size:i,symbol:r.playing?"timeline-play-button":"timeline-stop-button"}))):t.remove()}),B(t,".timeline-next-btn",function(){return new K2({})}).attr("className","timeline-next-btn").call(function(t){var e;a?(t.node().update(T(T({},(null==(e=r.style.controlButton)?void 0:e.nextBtn)||{}),{x:n.nextBtn.x,y:n.nextBtn.y,size:a,symbol:"timeline-next-button"})),t.node().update({markerStyle:{transformOrigin:"center",transform:"vertical"===r.style.orient?"rotate(90deg)":""}})):t.remove()}),this.style.autoPlay&&!this.playing&&(this.playing=!0,A(this).select(".timeline-axis").call(function(t){return null==(t=t.node())?void 0:t.play()}),A(this).select(".timeline-play-btn").call(function(t){return null==(t=t.node())?void 0:t.update({symbol:"timeline-play-button"})})),!this.style.autoPlay&&this.playing&&(this.playing=!1,A(this).select(".timeline-axis").call(function(t){return null==(t=t.node())?void 0:t.stop()}),A(this).select(".timeline-play-btn").call(function(t){return null==(t=t.node())?void 0:t.update({symbol:"timeline-stop-button"})}))};var Nt={style:{x:0,y:0,padding:0,orient:"horizontal",backgroundStyle:{fill:"transparent",lineWidth:0},title:{content:"",spacing:4,align:"left",style:{fontWeight:"bold",fontFamily:"sans-serif",fontSize:12,textAlign:"top",textBaseline:"top",fill:"#2C3542"}},label:{style:{fill:"#2C3542",fillOpacity:.65,fontSize:12}}}},OE={symbol:"circle",size:8},PE={style:{inactive:{fill:"#d3d2d3",opacity:.5}}},AE={style:{inactive:{fill:"#d3d2d3",opacity:.5}}},NE=N({},Nt,{style:{type:"category",items:[],maxWidth:void 0,maxHeight:void 0,maxCols:void 0,maxRows:void 0,spacing:[8,2],itemBackground:{padding:0,style:{fill:"transparent",active:{cursor:"pointer"}}},reverse:!(_E.prototype.bindEvents=function(){var e=this,n=A(this).select(".timeline-axis").node(),r=A(this).select(".timeline-play-btn").node();r&&A(r).on("pointerdown",function(t){e.playing?(e.playing=!1,n.stop(),r.update({symbol:"timeline-stop-button"})):(e.playing=!0,n.play(),r.update({symbol:"timeline-play-button"}))}),A(this).on("timelineStopped",function(){e.playing=!1,null!=r&&r.update({symbol:"timeline-stop-button"})}),A(this).on("speedChanged",function(t){e.speed=t.detail.speed,n.update({playInterval:e.style.playInterval/e.speed})}),A(this).select(".timeline-prev-btn").on("pointerdown",function(){return n.prev()}),A(this).select(".timeline-next-btn").on("pointerdown",function(){return n.next()}),A(this).on("singleModeChanged",function(t){e.singleMode=t.detail.active,e.selection=eE(e.selection,e.singleMode),e.render()}),A(this).on("selectionChanged",function(t){e.selection=t.detail.selection})}),pageNavigator:{loop:!1}}}),CE={width:100,height:20,type:"color",chunked:!1,ticks:[],isGradient:"auto",backgroundColor:"#c5c5c5"},LE={spacing:4,formatter:function(t){return String(t)},align:"rail",flush:!0,maxLength:30},IE={size:25,stroke:"#c5c5c5",fill:"#fff",lineWidth:1},jE=N({},Nt,{style:{type:"continuous",color:["#d0e3fa","#acc7f6","#8daaf2","#6d8eea","#4d73cd","#325bb1","#5a3e75","#8c3c79","#e23455","#e7655b"],label:LE,rail:CE,slidable:!0,indicator:{size:8,spacing:10,padding:5,backgroundStyle:{fill:"#262626","background-color":"#262626","border-radius":"5px"},text:{style:{color:"white","font-size":"12px"}}}}}),RE="legend-item-";function DE(t,e){t&&(t.setAttribute("tip",t.style.text),null!=t&&t.attr("text",e||""))}function BE(n,t){return void 0===n&&(n={}),(t=void 0===t?"":t).split("-").reduce(function(t,e){return T(T({},t),yt(n,e,{}))},{})}i(VE,FE=o),VE.prototype.setState=function(t,e){void 0===t&&(t=""),void 0===e&&(e=!0);var n=new Set((this.state||"").split("-"));e?n.add(t):n.delete(t),this.state=Pt([],D(n),!1).join("-"),this.update()},VE.prototype.getState=function(){return this.state},VE.prototype.update=function(t){FE.prototype.update.call(this,t=void 0===t?{}:t),t.state&&(this.state=t.state)},Object.defineProperty(VE.prototype,"styles",{get:function(){return N({},VE.defaultOptions.style,this.attributes)},enumerable:!1,configurable:!0}),VE.prototype.render=function(t,e){var n,r,i,o,a,s,l=this,u=this.styles,c=u.backgroundStyle,h=u.itemMarker,d=u.padding,p=u.itemName,f=u.itemValue,u=u.maxItemWidth,y=this.styles.itemHeight,d=D(zx(d),4),g=d[0],m=d[1],v=d[2],d=d[3],b=Number((null==h?void 0:h.size)||0),x=(V(y)&&(y=Math.max.call(null,b,Number((null==(x=null==p?void 0:p.style)?void 0:x.fontSize)||0),Number((null==(x=null==f?void 0:f.style)?void 0:x.fontSize)||0))+(g+v)),B(this,".".concat(RE,"container"),"g").attr("className","".concat(RE,"container")).style("x",d).style("y",y/2).node()),w=(B(x,".".concat(RE,"marker"),function(){return new yw({})}).attr("className","".concat(RE,"marker")).call(function(t){h?t.node().update(T(T({x:b/2,y:0,size:b,symbol:h.symbol},h.style||{}),BE(h.style,l.state))):t.remove()}),b?b+((null==p?void 0:p.spacing)||0):0),g=B(x,".".concat(RE,"name"),"text").attr("className","".concat(RE,"name")).call(function(t){p?t.node().attr(T(T({x:w,y:0,tip:"",text:(null==p?void 0:p.content)||"",textBaseline:"middle",textAlign:"left"},p.style||{}),BE(p.style,l.state))):t.remove()}).node(),E=w,v=(g&&!g.destroyed&&(E=g.getLocalBounds().max[0]),B(x,".".concat(RE,"value"),"text").attr("className","".concat(RE,"value")).call(function(t){f?t.node().attr(T(T(T({x:E+(f.spacing||0),y:0,tip:"",text:(null==f?void 0:f.content)||"",textAlign:"left"},f.style||{}),BE(f.style,l.state)),{textBaseline:"middle"})):t.remove()}).node()),_=(V(u)||(g=null!=g&&g.destroyed?null:g,v=null!=v&&v.destroyed?null:v,n=u-w-(d+m),(g||v)&&"number"==typeof n&&(Number(n)<=0?(DE(g,""),DE(v,"")):g&&v?(a=g.getLocalBounds(),i=v.getLocalBounds(),n<(r=2*a.halfExtents[0])+(_=2*i.halfExtents[0])+(i=r&&_?i.min[0]-a.max[0]:0)&&(o=(a=D([.5*n,.5*n],2))[0],a=a[1],s=k=!0,r<=o?(a=n-(r+i),k=!1):_<=a&&(o=n-(_+i),s=!1),k&&(DE(g,Ox(g.style.text,o,Nx(g))),v.attr("x",Number(g.style.x)+o+i)),s&&DE(v,Ox(v.style.text,a,Nx(v))))):n<2*(r=g||v).getLocalBounds().halfExtents[0]&&DE(r,Ox(r.style.text,n,Nx(r))))),x.getLocalBounds()),k=Math.max(2*_.halfExtents[0]+m+d,this.styles.itemWidth||0);V(u)||(k=Math.min(u,k)),B(this,".".concat(RE,"background"),"rect").attr("className","".concat(RE,"background")).style("x",_.min[0]-d).style("y",0).style("width",k).style("height",y).style("zIndex",-1).call(C,c).call(C,BE(c,this.state))},VE.defaultOptions={style:{id:"",value:{},itemMarker:{size:8,symbol:"circle",style:{fill:"#d3d2d3",fillOpacity:1,lineWidth:0,active:{cursor:"pointer"}}},itemName:{spacing:4,style:{fontFamily:"sans-serif",fill:"#646464",fontSize:12,opacity:1,active:{cursor:"pointer"}}},itemValue:{spacing:4,style:{fontFamily:"sans-serif",fill:"#646464",opacity:1,fontSize:12,active:{cursor:"pointer"}}}}};var FE,zE=VE;function VE(t){t=FE.call(this,N({},VE.defaultOptions,t))||this;return t.state="default",t.state=t.style.state||"selected",t}function GE(t,o,a){void 0===a&&(a=0);var s=0,l=0,u=0;return t.reduce(function(t,e){var n=D(e.getLocalBounds().halfExtents,2),r=n[0],n=n[1],i="horizontal"===o?[t,0]:[0,t];return e.setLocalPosition(i[0],i[1]),l=Math.max(l,2*n),u=Math.max(u,2*r),(s="horizontal"===o?t+2*r:t+2*n)+a},0),{totalSize:s,maxItemWidth:u,maxItemHeight:l}}K2.registerSymbol("left",function(t,e,n){return[["M",t-n*Math.sin(Math.PI/3),e],["L",t+n,e-n],["L",t+n,e+n],["Z"]]}),K2.registerSymbol("right",function(t,e,n){return[["M",t-n,e-n],["L",t+n*Math.sin(Math.PI/3),e],["L",t-n,e+n],["Z"]]}),K2.registerSymbol("up",function(t,e,n){return[["M",t-n,e+n],["L",t,e-n*Math.sin(Math.PI/3)],["L",t+n,e+n],["Z"]]}),K2.registerSymbol("down",function(t,e,n){return[["M",t-n,e-n],["L",t+n,e-n],["L",t,e+n*Math.sin(Math.PI/3)],["Z"]]});i(YE,HE=Xd),YE.prototype.connectedCallback=function(){this.container=this.appendChild(new tp),this.clipView=new ap({style:{path:[]}}),this.render(),this.bindEvents()},YE.prototype.update=function(t){this.attr(N({},this.attributes,t=void 0===t?{}:t)),this.render()},Object.defineProperty(YE.prototype,"styles",{get:function(){return N({},YE.defaultOptions.style,this.attributes)},enumerable:!1,configurable:!0}),YE.prototype.render=function(){this.renderButtonGroup();var t=this.style.items,t=void 0===t?[]:t;this.items=A(this.container).selectAll(".legend-item").data(t||[],function(t,e){return t.id||e}).join(function(t){return t.append(function(t){return new zE({id:t.id,className:"legend-item",style:t})})},function(t){return t.each(function(t){this.update(t)})},function(t){return t.remove()}).nodes(),this.adjustLayout()},YE.prototype.bindEvents=function(){this.prevButton.addEventListener("pointerdown",this.prev.bind(this)),this.nextButton.addEventListener("pointerdown",this.next.bind(this))},YE.prototype.ifHorizontal=function(t,e){return"vertical"===this.style.orient?"function"==typeof e?e():e:"function"==typeof t?t():t},YE.prototype.renderButtonGroup=function(){var t=this.styles,e=t.pageButtonStyle,n=void 0===e?{}:e,e=t.pageTextStyle,t=B(this,".page-button-group",function(){return new tp({className:"page-button-group"})}).node(),r="page-prev-button",i="page-next-button";this.prevButton=B(t,"#".concat(r),function(){return new K2({})}).attr("id",r).attr("className","page-button").attr("zIndex",2).call(function(t){t.node().update(n)}).node(),B(t,".page-info","text").attr("className","page-info").call(C,e),this.nextButton=B(t,"#".concat(i),function(){return new K2({})}).attr("id",i).attr("className","page-button").attr("zIndex",2).call(function(t){t.node().update(n)}).node(),this.updatePageButtonSymbol()},Object.defineProperty(YE.prototype,"pageInfoBounds",{get:function(){var t,e,n,r,i=this.querySelector(".page-info");return i?(r=(t=this.styles).pageFormatter,t=t.pageInfoSpacing,e=i.style.visibility,i.style.visibility="hidden",i.style.text=r(1,this.styles.items.length),n=(r=D(i.getLocalBounds().halfExtents,2))[0],r=r[1],i.style.visibility=e,{width:2*(n+t),height:2*(r+t)}):{width:0,height:0}},enumerable:!1,configurable:!0}),YE.prototype.layoutButton=function(t){var e,n=this.style.pageInfoSpacing,r=this.pageInfoBounds.height,n=this.pageInfoBounds.width+2*(void 0===n?0:n),i=D(this.querySelector(".page-button-group").childNodes,3),o=i[0],a=i[1],i=i[2];"horizontal"===t?(t=2*o.getLocalBounds().halfExtents[0],e=2*i.getLocalBounds().halfExtents[0],o.style.x=t/2,i.style.x=t+n+e/2,a.style.x=(Number(o.style.x)+Number(i.style.x))/2,o.style.y=0,i.style.y=0,a.style.y=0):(t=2*o.getLocalBounds().halfExtents[1],n=2*i.getLocalBounds().halfExtents[1],o.style.y=-(r+t)/2,i.style.y=(r+n)/2,a.style.y=0,e=this.pageInfoBounds.width/2,o.style.x=e,i.style.x=e,a.style.x=e)},YE.prototype.showButtonGroup=function(){this.querySelector(".page-button-group").style.visibility="visible"},YE.prototype.resetPageCfg=function(){this.querySelector(".page-button-group").style.visibility="hidden",this.container.style.clipPath=null,this.currPage=void 0,this.maxPages=void 0,this.pageOffsets=[],this.container.style.transform="translate(0,0)",this.clipView&&(this.clipView.style.transform="translate(0,0)")},YE.prototype.adjustLayout=function(){var t,e,n,r;this.resetPageCfg(),this.items.length<=1||(t=(n=D(zx(this.style.spacing),2))[0],n=n[1],t=this.ifHorizontal(t,n),t=(n=GE(this.items,this.style.orient||"horizontal",t)).totalSize,e=n.maxItemWidth,n=n.maxItemHeight,r=this.ifHorizontal(this.style.maxWidth,this.style.maxHeight),!V(r)&&r!==1/0&&r<t&&(this.style.autoWrap&&"vertical"!==this.style.orient?(this.layoutButton("vertical"),this.adjustHorizontalWrap(e,n,r)):(this.layoutButton("horizontal"),this.adjustFlip(e,n,r))))},YE.prototype.adjustFlip=function(t,e,n){this.showButtonGroup();var r=this.querySelector(".page-button-group"),i=this.style.pageSpacing,o=this.prevButton.style.size||YE.defaultOptions.style.pageButtonSize,a=r.getLocalBounds(),s=2*a.halfExtents[0],a=2*a.halfExtents[1],e=D(this.ifHorizontal([n-(s+i),e],[t,n-(a+i)]),2),l=e[0],u=e[1];this.clipView.style.path="M-1,0 L".concat(l,",0 L").concat(l,",").concat(u," L-1,").concat(u," Z"),this.container.style.clipPath=this.clipView,r.style.x=this.ifHorizontal(n-s,0),r.style.y=this.ifHorizontal(u/2-1,u+o+i);for(var c="x"===this.ifHorizontal("x","y")?0:1,h=[0],d=1,p=0;p<this.items.length;p++){var f=this.items[p].getLocalBounds(),y=f.min;f.max[c]-$(h)>this.ifHorizontal(l,u)+4&&(0!==y[c]&&h.push(y[c]),d+=1)}this.maxPages=d,this.currPage=1,this.pageOffsets=h,this.updatePageNavigatorState()},YE.prototype.adjustHorizontalWrap=function(t,u,e){this.showButtonGroup();var n,r=this.querySelector(".page-button-group"),i=this.style,o=i.pageSpacing,o=void 0===o?0:o,a=i.cols,i=this.pageInfoBounds.width,c=this.style.maxRows||2,s=r.getLocalBounds(),s=Math.max(2*s.halfExtents[0],i),i=e-(s+o),l=u*c;function h(t,e){for(var n=1,r=0,i=[0],o=0;o<e.length;o++){var a=e[o],s=a.getLocalBounds(),l=s.min;s.max[0]-r>t&&(n+=1,r=l[0],n%c==1&&i.push((n-1)*u)),a.setLocalPosition(l[0]-r,(n-1)*u)}return i}a&&c&&(a*c<=this.items.length&&(i=e),n=e/a),this.clipView.style.path="M-1,0 L".concat(i,",0 L").concat(i,",").concat(l," L-1,").concat(l," Z"),this.container.style.clipPath=this.clipView;var d=[];if(a&&n)for(var p=D(zx(this.style.spacing),1)[0],f=0,y=0,g=0;g<this.items.length;g+=a){y=0,(f+=1)%c==1&&d.push(Math.floor(f/c)*l);for(var m=0;m<a&&g+m<this.items.length;m++)this.items[g+m].update({x:y,y:(f-1)*u,maxItemWidth:n-p}),y+=n}else 1===(d=h(i,this.items)).length&&(p=(o=D(zx(this.style.spacing),2))[0],i=o[1],y=this.ifHorizontal(p,i),GE(this.items,this.style.orient||"horizontal",y),h(e,this.items));this.maxPages=d.length,this.currPage=1,this.pageOffsets=d,this.maxPages<=1?this.resetPageCfg():(r.style.x=e-s,r.style.y=l/2-2,this.updatePageNavigatorState())},YE.prototype.updatePageNavigatorState=function(){this.updatePageInfo(),this.currPage===this.maxPages?this.nextButton.setState("disabled"):this.nextButton.setState("default"),1===this.currPage?this.prevButton.setState("disabled"):this.prevButton.setState("default")},YE.prototype.updatePageButtonSymbol=function(){var t=this.style.autoWrap,t=this.ifHorizontal(t?1:0,1);this.prevButton.update({symbol:["left","up"][t]}),this.nextButton.update({symbol:["right","down"][t]})},YE.prototype.updatePageInfo=function(){var t=this.styles.pageFormatter;A(this).select(".page-info").style("text",this.currPage&&this.maxPages?t(this.currPage,this.maxPages):"")},YE.prototype.finished=function(){var e=this;return this.finishedPromise||(this.finishedPromise=new Promise(function(t){e.resolveFinishedPromise=function(){e.finishedPromise=null,t(e.currPage)}})),"idle"===this.playState&&this.resolveFinishedPromise(),this.finishedPromise},YE.prototype.prev=function(){var t,e;this.maxPages&&this.currPage&&(t=this.style.loop,(e=this.currPage-1)<1&&(e=t?this.maxPages:1),this.goTo(e))},YE.prototype.next=function(){var t,e,n;this.maxPages&&this.currPage&&(t=this.style.loop,e=this.maxPages,n=this.currPage+1,this.goTo(n=e<n?t?1:e:n))},YE.prototype.goTo=function(t){var e,n,r,i,o=this;t!==this.currPage&&"idle"===this.playState&&(e=(i=this.style).effect,n=i.duration,i=i.autoWrap,r=(i=D(this.ifHorizontal(i?[0,-this.pageOffsets[t-1]]:[-this.pageOffsets[t-1],0],[0,-this.pageOffsets[t-1]]),2))[0],i=i[1],this.playState="running",this.clipView.animate([{transform:this.clipView.style.transform},{transform:"translate(".concat(-r,"px,").concat(-i,"px)")}],{duration:n,easing:e,fill:"both"}),this.container.animate([{transform:this.container.style.transform},{transform:"translate(".concat(r,"px,").concat(i,"px)")}],{duration:n,easing:e,fill:"both"}),Promise.all(this.clipView.getAnimations().map(function(t){return t.finished})).then(function(){o.currPage=t,o.updatePageNavigatorState(),o.resolveFinishedPromise(),o.playState="idle"}),this.finished())},YE.defaultOptions={style:{spacing:[4,0],effect:"easeQuadInOut",duration:320,maxRows:2,maxCols:2,pageButtonSize:10,pageInfoSpacing:2,pageFormatter:function(t,e){return"".concat(t,"/").concat(e)},pageButtonStyle:{size:10,margin:0,padding:0,markerStyle:{fill:"black",cursor:"pointer",disabled:{fill:"#d9d9d9",cursor:"not-allowed"}},backgroundStyle:{cursor:"pointer",fill:"transparent",disabled:{cursor:"not-allowed"}}},pageTextStyle:{fontSize:12,textBaseline:"middle",textAlign:"center"}}};var HE,WE=YE;function YE(t){t=HE.call(this,N({},YE.defaultOptions,t))||this;return t.items=[],t.maxPages=void 0,t.currPage=void 0,t.pageOffsets=[],t.playState="idle",t}function UE(t){var e=t.items,i=t.maxWidth,o=t.maxItemWidth,a=t.itemMarker,s=t.itemName,l=t.itemValue,n=t.reverse,u=t.itemWidth,c=t.itemHeight,h=t.itemPadding,d=t.itemBackgroundStyle,p=e.slice();return n&&p.reverse(),p.map(function(t,e){return{id:t.id||"legend-item-".concat(e),state:t.state||"default",value:t,maxItemWidth:q([null!=o?o:Number.MAX_VALUE,null!=i?i:Number.MAX_VALUE]),itemMarker:(r=z(a)?a(t,e,p):a,N({},OE,{symbol:t.marker,style:{fill:t.color,stroke:t.color}},r)),itemName:(r=N({},{formatter:function(){return t.name}},s),n=r.formatter,r=I(r,["formatter"]),N({},PE,{content:n(t,e,p)},r)),itemValue:(n=N({},{formatter:function(){return t.value}},l),r=n.formatter,n=I(n,["formatter"]),N({},AE,{content:r(t,e,p)},n)),itemWidth:u,itemHeight:c,padding:h,backgroundStyle:d};var n,r})}i(ZE,qE=o),ZE.prototype.render=function(e,t){var n=e.padding,r=e.title,i=e.inset,o=e.orient,a=void 0===o?"horizontal":o,s=e.spacing,l=e.autoWrap,u=e.maxRows,c=e.maxWidth,h=e.maxHeight,d=e.cols,p=e.pageNavigator,o=e.backgroundStyle,o=void 0===o?{}:o,n=D(zx(n),4),f=n[0],y=n[1],g=n[2],n=n[3],m=ME(t,"legend-container",n,f),v=TE(m,r),r=(null==r?void 0:r.spacing)||0,i=D(zx(i),4),b=i[0],i=i[3],v=kE(v),i=(B(ME(m,"legend-inner-group",v.left+i,v.bottom+b+r),".category-items",function(){return new WE({})}).attr("className","category-items").call(function(t){t.node().update(T({orient:a,items:UE(e),spacing:s,autoWrap:l,maxRows:u,maxWidth:c,maxHeight:h,cols:d},p||{}))}).node(),m.getLocalBounds()),v=i.min,b=i.max,r=b[0]-v[0],m=b[1]-v[1];SE(t,"legend-background",Math.min(r+y+n,c||Number.MAX_VALUE),Math.min(m+f+g,h||Number.MAX_VALUE),o)},ZE.prototype.getItem=function(t){return this.querySelector("[id=".concat(t,"]"))},ZE.prototype.setItemState=function(t,e,n){void 0===n&&(n=!0),null!=(t=this.getItem(t))&&t.setState(e,n)},ZE.prototype.getItemsStates=function(){return this.querySelectorAll(".legend-item").map(function(t){return{id:t.id,state:t.getState()}})};var qE,XE=ZE;function ZE(t){return qE.call(this,N({},NE,t))||this}function KE(t,e,n){return"horizontal"===(t=void 0===t?"horizontal":t)?e:n}yw.registerSymbol("hiddenHandle",function(t,e,n){var r=1.4*n;return[["M",t-n,e-r],["L",t+n,e-r],["L",t+n,e+r],["L",t-n,e+r],["Z"]]}),yw.registerSymbol("verticalHandle",function(t,e,n){var r=1.4*n,i=n/2,o=t+.4*r;return[["M",t,e],["L",o,e+i],["L",t+r,e+i],["L",t+r,e-i],["L",o,e-i],["Z"],["M",o,e+(n=n/6)],["L",t+r-2,e+n],["M",o,e-n],["L",t+r-2,e-n]]}),yw.registerSymbol("horizontalHandle",function(t,e,n){var r=1.4*n,i=n/2,o=e+.4*r;return[["M",t,e],["L",t-i,o],["L",t-i,e+r],["L",t+i,e+r],["L",t+i,o],["Z"],["M",t-(n=n/6),o],["L",t-n,e+r-2],["M",t+n,o],["L",t+n,e+r-2]]});i(QE,$E=Xd),QE.prototype.connectedCallback=function(){this.draw()},QE.prototype.attributeChangedCallback=function(){this.draw()},QE.prototype.draw=function(){this.updateBackground(),this.updateTrack()},QE.prototype.updateBackground=function(){var t=this.style.backgroundColor;this.path.style.path=this.getRailPath(),this.path.attr({fill:t,fillOpacity:.45})},QE.prototype.updateTrack=function(){var t=this.style.fill;this.track.style.path=this.getRailPath(),this.track.style.clipPath=this.getClipPath(),this.track.style.fill=t},Object.defineProperty(QE.prototype,"box",{get:function(){var t=this.style,e=t.orient,n=t.size,t=t.length;return KE(e,[t,n],[n,t])},enumerable:!1,configurable:!0}),QE.prototype.getRailPath=function(){var t=this.style.type,e=D(this.box,2),n=e[0],e=e[1];return"size"===t?[["M",0,e],["L",0+n,0],["L",0+n,e]]:[["M",0,e],["L",0,0],["L",0+n,0],["L",0+n,e]]},QE.prototype.getClipPath=function(){var t,e,n,r,i=this.style,o=i.orient,i=i.selection;return i?(r=(t=D(this.box,2))[0],t=t[1],n=(i=D(i,2))[0],i=i[1],e=KE(o,n*r,0),n=KE(o,0,n*t),r=KE(o,i*r,r),o=KE(o,t,i*t),new ap({style:{path:[["M",e,n],["L",e,o],["L",r,o],["L",r,n]]}})):null};var $E,JE=QE;function QE(t){t=$E.call(this,rw({},{style:CE},t=void 0===t?{}:t))||this;return t.path=t.appendChild(new ap({className:"rail-path"})),t.track=t.appendChild(new ap({className:"rail-path"})),t}i(n_,t_=o),n_.prototype.render=function(t,e){var n=t.textStyle,r=t.visibility,i=t.symbol,o=t.size,a=t.fill,s=t.stroke,l=t.lineWidth;i&&"hidden"!==r?(B(e,".handle",function(){return new yw({})}).attr("className","handle").call(function(t){t.node().update({symbol:i,size:o,fill:a,stroke:s,lineWidth:l})}),B(e,".handle-text","text").attr("className","handle-text").call(C,n)):(null!=(t=e.querySelector(".handle"))&&t.remove(),null!=(r=e.querySelector(".handle-text"))&&r.remove())};var t_,e_=n_;function n_(){return null!==t_&&t_.apply(this,arguments)||this}i(o_,r_=Xd),o_.prototype.connectedCallback=function(){this.init(),this.bindEvents()},o_.prototype.attributeChangedCallback=function(t,e,n){"textStyle"!==t&&"padding"!==t&&"position"!==t||this.init()},o_.prototype.hide=function(){this.style.visibility="hidden"},o_.prototype.show=function(){this.style.visibility="visible"},o_.prototype.init=function(){var t=this.style,e=t.textStyle;"top"===t.position?this.text.attr(T({textAlign:"center"},e)):this.text.attr(T({textAlign:"left"},e))},o_.prototype.updateBackground=function(){var t,e,n=this.text.getLocalBounds(),r=n.min,n=n.max,i=Math.min(n[0]-r[0],40),r=[r[0]-4,r[1]-2,r[0]+i+4,n[1]+2],o=(i=this.style.position,r=(n=D(n=r,4))[0],e=n[1],o=n[2],n=n[3],"top"===i?[["M",r,n],["L",r,e],["L",o,e],["L",o,n],["L",r+(i=o-r)/2+(t=J(10,i/3,i/2))/2,n],["L",r+i/2,n+4],["L",r+i/2-t/2,n],["L",r,n]]:[["M",r,e],["L",o,e],["L",o,n],["L",r,n],["L",r,e+(i=n-e)/2+(t=J(6,i/3,i/2))/2],["L",r-4,e+i/2],["L",r,e+i/2-t/2],["L",r,e]]);this.background.style.path=o},o_.prototype.bindEvents=function(){var t=this;this.text.addEventListener(E.BOUNDS_CHANGED,function(){t.updateBackground()})};var r_,i_=o_;function o_(t){t=r_.call(this,rw({},{style:{visibility:"hidden"}},t=void 0===t?{}:t))||this;return t.background=t.appendChild(new ap({style:{lineCap:"round",fill:"#262626",lineWidth:1,stroke:"#333"}})),t.text=t.appendChild(new fp({style:{text:"",fill:"#fff",fontSize:10,textBaseline:"middle"}})),t}function a_(t,e){var t=D(function(t,e){for(var n=1;n<t.length;n+=1){var r=t[n-1],i=t[n];if(r<=e&&e<=i)return[r,i]}return[e,e]}(t,e),2),n=t[0],t=t[1];return{tick:(n+t)/2<e?t:n,range:[n,t]}}function s_(t,e,n,r,i){var o=D(KE(t,["dx","dy"],["dy","dx"]),2),a=o[0],o=o[1],s={};return s[a]=e,s[o]="start"===n?-i:r+i,s.textAlign=KE(t,"center","start"===n?"right":"left"),s.textBaseline=KE(t,"start"===n?"bottom":"top","middle"),s}function l_(t,e){var n,s,l,u,r,i,o,c=t.min,h=t.max,a=t.handle,d=t.orient,p=void 0===d?"horizontal":d;return null===t.label||a?[]:(s=rw({size:24,length:200},CE,t.rail||{}),d=rw({},LE,t.label||{}),l=d.align,u=d.spacing,"rail"===l?(t=(a=D(KE(p,["dx","dy"],["dy","dx"]),2))[0],d=a[1],r=(a=D(KE(p,["right","left"],["center","center"]),2))[0],a=a[1],i=(o=D(KE(p,["middle","middle"],["bottom","top"]),2))[0],o=o[1],[((n={id:"legend-label-0",text:"".concat(c)})[t]=-u,n[d]=s.size/2,n.textAlign=r,n.textBaseline=i,n),((r={id:"legend-label-1",text:"".concat(h)})[t]=s.length+u,r[d]=s.size/2,r.textAlign=a,r.textBaseline=o,r)]):e.map(function(t,e){a=t,n=c,r=h,i=s;var n,r,i,o=(o=void 0!==o&&o)?a*(r-n)/i.length:Lx((a-n)*(n<r?i.length/(r-n):0),2),a=s_(p,o,l,s.size,u);return T({id:"legend-label-".concat(e),text:"".concat(t)},a)}))}var u_=dt(function(t){return t.sort(function(t,e){return t-e})},function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return JSON.stringify(t)});i(y_,c_=o),y_.prototype.render=function(t,e){var n=t.padding,r=t.title,i=t.inset,o=(t.orient,t.backgroundStyle),o=void 0===o?{}:o,a=t.maxWidth,s=t.maxHeight,l=t.label,n=D(zx(n),4),u=n[0],c=n[1],h=n[2],n=n[3],d=ME(e,"legend-container",n,u),p=TE(d,r),r=(null==r?void 0:r.spacing)||0,i=D(zx(i),4),f=i[0],i=i[3],p=kE(p),i=ME(d,"legend-inner-group",p.left+i,p.bottom+f+r),p=l_(t,this.ticks),f=(S2(i,"legend-label",p,l,{fill:"#2C3542",fillOpacity:.65,fontWeight:"normal"}),this.drawInner(),d.getLocalBounds()),r=f.min,t=f.max,i=t[0]-r[0],p=t[1]-r[1];SE(e,"legend-background",Math.min(i+c+n,a||Number.MAX_VALUE),Math.min(p+u+h,s||Number.MAX_VALUE),o)},y_.prototype.drawInner=function(){this.drawRail(),this.drawHandles(),this.createIndicator()},Object.defineProperty(y_.prototype,"orient",{get:function(){return this.style.orient||"horizontal"},enumerable:!1,configurable:!0}),Object.defineProperty(y_.prototype,"selection",{get:function(){var t=this.style,e=t.min,n=t.max;return[t.start||e,t.end||n]},enumerable:!1,configurable:!0}),Object.defineProperty(y_.prototype,"labelsCfg",{get:function(){var t=this.style.label;return rw({},LE,t||{})},enumerable:!1,configurable:!0}),Object.defineProperty(y_.prototype,"railCfg",{get:function(){var t=this.style.rail;return rw({size:24,length:200},CE,t||{})},enumerable:!1,configurable:!0}),Object.defineProperty(y_.prototype,"handleCfg",{get:function(){var t=this.style,e=t.handle,t=t.label;return rw({},IE,e||{},{textStyle:this.labelsCfg.style,spacing:this.labelsCfg.spacing,visibility:e&&null!==t?"visible":"hidden"})},enumerable:!1,configurable:!0}),y_.prototype.ifHorizontal=function(t,e){return KE(this.orient,"function"==typeof t?t():t,"function"==typeof e?e():e)},Object.defineProperty(y_.prototype,"color",{get:function(){var t,e,i,o,a,n=this.style.color,n=Array.from(void 0===n?[]:n),r=n.length;return r?this.railCfg.chunked?(t=this.ticks,e=this.orient,i=Array.from(n),o=i.length,a=t.length,t.reduce(function(t,e,n){var r=i[n%o];return t+" ".concat(n/(a-1),":").concat(r).concat(n<a-1?" ".concat((n+1)/(a-1),":").concat(r):"")},"l(".concat("horizontal"===e?"0":"270",")"))):n.reduce(function(t,e,n){return t+" ".concat(n/(r-1),":").concat(e)},"l(".concat(this.ifHorizontal("0","270"),")")):""},enumerable:!1,configurable:!0}),Object.defineProperty(y_.prototype,"slidable",{get:function(){return!!this.style.handle},enumerable:!1,configurable:!0}),Object.defineProperty(y_.prototype,"ticks",{get:function(){var t=this.style,e=t.min,t=t.max;return u_(Pt(Pt([e],D(this.railCfg.ticks||[]),!1),[t],!1))},enumerable:!1,configurable:!0}),y_.prototype.drawRail=function(){var t=this.style,e=t.orient,n=t.min,t=t.max,r=D(this.selection,2),i=r[0],r=r[1],o=this.querySelector(".legend-inner-group");this.rail=A(this.rail||o.appendChild(new JE)).attr("className","legend-rail").call(C,T(T({},this.railCfg),{fill:this.color,orient:e})).style("selection",this.slidable?[(i-n)/(t-n),(r-n)/(t-n)]:void 0).node()},y_.prototype.drawHandles=function(){var t=D(this.selection,2),e=t[0],t=t[1];this.startHandle=this.drawHandle("start",e),this.endHandle=this.drawHandle("end",t)},y_.prototype.drawHandle=function(t,e){var n=this,r=this.labelsCfg,i=r.align,r=r.spacing,o=this.railCfg.size,a=this.handleCfg.size,s=this.getOffset(e),l=s_(this.orient,s,i,o,-a/3),u=l.dx,c=l.dy,h=s_(this.orient,s,i,o,"start"===i?r:a/3+r),l="start"===t?this.startHandle:this.endHandle,s=this.querySelector(".legend-inner-group");return A(l||s.appendChild(new e_({}))).attr("className","legend-handle-".concat(t)).call(function(t){return t.node().update(T(T({},n.handleCfg),{x:u,y:c,symbol:n.ifHorizontal("horizontalHandle","verticalHandle"),textStyle:T({text:"".concat(null!=e?e:""),x:+h.dx-+u,y:+h.dy-+c,textAlign:h.textAlign,textBaseline:h.textBaseline},n.handleCfg.textStyle)}))}).node()},y_.prototype.createIndicator=function(){this.indicator=this.appendChild(new i_({zIndex:2,className:"legend-indicator",style:{position:this.ifHorizontal("top","right")}}))},y_.prototype.bindEvents=function(){var n=this,t=new Map;t.set("rail",this.rail),t.set("start",this.startHandle),t.set("end",this.endHandle),t.forEach(function(t,e){t.addEventListener("mousedown",n.onDragStart(e)),t.addEventListener("touchstart",n.onDragStart(e))}),this.startHandle.addEventListener("mouseover",function(){return n.updateMouse()}),this.endHandle.addEventListener("mouseover",function(){return n.updateMouse()}),this.rail.addEventListener("mousemove",this.onHovering),this.addEventListener("mouseout",this.hideIndicator)},y_.prototype.showIndicator=function(t,e){var n,r,i,o,a,s,l;void 0===e&&(e="".concat(t)),"number"!=typeof t?this.hideIndicator():(this.indicator.show(),l=this.querySelector(".legend-container"),t=Xl(t,(t=this.style).min,t.max),n=this.ifHorizontal(this.getOffset(t),this.railCfg.size+12),t=this.ifHorizontal(-14,this.getOffset(t)),r=(i=this.rail.getBBox()).x,i=i.y,o=(a=l.getBBox()).x,a=a.y,s=(l=D(l.getLocalPosition(),2))[0],l=l[1],this.indicator.style.x=r-o+s+n,this.indicator.style.y=i-a+l+t,this.indicator.style.textStyle={text:e})},y_.prototype.hideIndicator=function(){var t;null!=(t=this.indicator)&&t.hide()},y_.prototype.onDragEnd=function(){this.style.cursor="default",this.removeEventListener("mousemove",this.onDragging),this.removeEventListener("touchmove",this.onDragging),document.removeEventListener("mouseup",this.onDragEnd),document.removeEventListener("touchend",this.onDragEnd)},y_.prototype.updateMouse=function(){this.style.slidable&&(this.style.cursor="grabbing")},y_.prototype.setSelection=function(t,e){this.updateSelection(t,e)},y_.prototype.updateSelection=function(t,e,n){void 0===n&&(n=!1);var r,i,o,a,s,l=D(this.selection,2),u=l[0],l=l[1],t=D([t,e],2),e=t[0],t=t[1],n=(n&&(e+=u,t+=l),this.style),u=n.min,l=n.max,c=D((n=[u,l],u=[e,t],l=this.selection,void 0===r&&(r=4),i=(n=D(n,2))[0],n=n[1],o=(u=D(u,2))[0],u=u[1],a=(l=D(l,2))[0],l=l[1],u=(o=D([o,u],2))[0],s=(o=o[1])-u,o<u&&(u=(c=D([o,u],2))[0],o=c[1]),n-i<s?[i,n]:u<i?a===i&&l===o?[i,o]:[i,s+i]:n<o?l===n&&a===u?[u,n]:[n-s,n]:[Lx(u,r),Lx(o,r)]),2),e=c[0],t=c[1];this.update({start:e,end:t}),this.dispatchSelection()},Object.defineProperty(y_.prototype,"step",{get:function(){var t=this.attributes,e=t.step,n=t.min,t=t.max;return st(e)?Lx(.01*(t-n),0):e},enumerable:!1,configurable:!0}),y_.prototype.getTickValue=function(t){return this.railCfg.chunked?a_(this.ticks,t).tick:(e=this.step,(n=this.style.min)+Math.round((t-n)/e)*e);var e,n},y_.prototype.getValueByCanvasPoint=function(t,e){var n=this.style,r=n.min,n=n.max,i=D(this.rail.getPosition(),2),o=i[0],i=i[1],o=this.ifHorizontal(o,i),i=this.ifHorizontal.apply(this,Pt([],D(Yx(t)),!1));return Xl(this.getOffset(i-o,!0)+r,r,n)},y_.prototype.getOffset=function(t,e){var n=this.style,r=n.min,n=n.max;return(e=void 0!==e&&e)?t*(n-r)/this.railCfg.length:Lx((t-r)*(r<n?this.railCfg.length/(n-r):0),2)},y_.prototype.dispatchSelection=function(){var t=new jd("valueChanged",{detail:{value:this.selection}});this.dispatchEvent(t)},y_.prototype.dispatchIndicated=function(t,e){t=new jd("onIndicated",{detail:{value:t,range:e}});this.dispatchEvent(t)},t([lw(20)],y_.prototype,"dispatchSelection",null),t([lw(20)],y_.prototype,"dispatchIndicated",null);var c_,h_,d_,p_,f_=y_;function y_(t){var o=c_.call(this,rw({type:"continuous-legend"},jE,t))||this;return o.onHovering=function(t){t.stopPropagation();var e,t=o.getValueByCanvasPoint(t);yt(o.attributes,["rail","chunked"])?(e=a_(o.ticks,t).range,o.showIndicator((e[0]+e[1])/2,"".concat(e[0],"-").concat(e[1])),o.dispatchIndicated(t,e)):(e=o.getTickValue(t),o.showIndicator(e),o.dispatchIndicated(e))},o.onDragStart=function(e){return function(t){t.stopPropagation(),o.slidable&&(o.target=e,o.prevValue=o.getTickValue(o.getValueByCanvasPoint(t)),o.addEventListener("mousemove",o.onDragging),o.addEventListener("touchmove",o.onDragging),o.addEventListener("mouseleave",o.onDragEnd),o.addEventListener("mouseup",o.onDragEnd),document.addEventListener("mouseup",o.onDragEnd),document.addEventListener("touchend",o.onDragEnd))}},o.onDragging=function(t){var e=o.target,n=(o.updateMouse(),D(o.selection,2)),r=n[0],n=n[1],t=o.getTickValue(o.getValueByCanvasPoint(t)),i=t-o.prevValue;"start"===e?r!==t&&o.updateSelection(t,n):"end"===e?n!==t&&o.updateSelection(r,t):"rail"===e&&0!=i&&(o.prevValue=t,o.updateSelection(i,i,!0))},o}function g_(t){h_||(h_=document.createElement("table"),p_=document.createElement("tr"),d_=/^\s*<(\w+|!)[^>]*>/,p_={tr:document.createElement("tbody"),tbody:h_,thead:h_,tfoot:h_,td:p_,th:p_,"*":document.createElement("div")});var e=d_.test(t)&&RegExp.$1,e=(e&&e in p_||(e="*"),p_[e]),t=(t="string"==typeof t?t.replace(/(^\s*)|(\s*$)/g,""):t,e.innerHTML=""+t,e.childNodes[0]);return t&&e.contains(t)&&e.removeChild(t),t}var m_,Lt="tooltip",v_="tooltip-title",b_="tooltip-list",Ht="tooltip-list-item",Kt="tooltip-list-item-name",h="tooltip-list-item-marker",n="tooltip-list-item-name-label",c="tooltip-list-item-value",Yt="tooltip-crosshair-x",zt="tooltip-crosshair-y",oe={overflow:"hidden","white-space":"nowrap","text-overflow":"ellipsis"},a=((jt={})[".".concat(Lt)]={position:"absolute",visibility:"visible","z-index":8,transition:"visibility 0.2s cubic-bezier(0.23, 1, 0.32, 1), left 0.4s cubic-bezier(0.23, 1, 0.32, 1), top 0.4s cubic-bezier(0.23, 1, 0.32, 1)","background-color":"rgba(255, 255, 255, 0.96)","box-shadow":"0 6px 12px 0 rgba(0, 0, 0, 0.12)","border-radius":"4px",color:"rgba(0, 0, 0, 0.65)","font-size":"12px","line-height":"20px",padding:"12px","min-width":"120px","max-width":"360px","font-family":"Roboto-Regular"},jt[".".concat(v_)]={color:"rgba(0, 0, 0, 0.45)"},jt[".".concat(b_)]={margin:"0px","list-style-type":"none",padding:"0px"},jt[".".concat(Ht)]={"list-style-type":"none","margin-top":"12px",display:"flex","line-height":"1em","align-items":"center","justify-content":"space-between","white-space":"nowrap"},jt[".".concat(h)]={width:"8px",height:"8px","border-radius":"50%",display:"inline-block","margin-right":"4px"},jt[".".concat(Kt)]={display:"flex","align-items":"center","max-width":"216px"},jt[".".concat(n)]=T({flex:1},oe),jt[".".concat(c)]=T({display:"inline-block",float:"right",flex:1,"text-align":"right","min-width":"28px","margin-left":"30px",color:"rgba(0, 0, 0, 0.85)"},oe),jt[".".concat(Yt)]={position:"absolute",width:"1px","background-color":"rgba(0, 0, 0, 0.25)"},jt[".".concat(zt)]={position:"absolute",height:"1px","background-color":"rgba(0, 0, 0, 0.25)"},jt),x_=(i(w_,m_=o),Object.defineProperty(w_.prototype,"HTMLTooltipElement",{get:function(){return this.element},enumerable:!1,configurable:!0}),Object.defineProperty(w_.prototype,"position",{set:function(t){var t=D(t,2),e=t[0],t=t[1];this.attr({x:e,y:t}),this.updatePosition()},enumerable:!1,configurable:!0}),Object.defineProperty(w_.prototype,"elementSize",{get:function(){return{width:this.element.offsetWidth,height:this.element.offsetHeight}},enumerable:!1,configurable:!0}),Object.defineProperty(w_.prototype,"items",{get:function(){var t=this.attributes.items;return this.sort(this.filter(t.map(function(t,e){var n=t.name,n=void 0===n?"":n,r=t.value,i=t.color,i=void 0===i?"black":i,o=t.index,t=I(t,["name","value","color","index"]);return T({name:n,value:r,color:i,index:void 0===o?e:o},t)})))},enumerable:!1,configurable:!0}),Object.defineProperty(w_.prototype,"HTMLTooltipItemsElements",{get:function(){var e=this.attributes.template.item,r=[];return this.items.forEach(function(t){var n;r.push(g_((n=t,(t=e)&&n?t.replace(/\\?\{([^{}]+)\}/g,function(t,e){return"\\"===t.charAt(0)?t.slice(1):void 0===n[e]?"":n[e]}):t)))}),r},enumerable:!1,configurable:!0}),Object.defineProperty(w_.prototype,"customContent",{get:function(){var t=this.attributes.customContent;return Z(t)?Kx(t):lt(t)?t:z(t)?Kx(t(this.attributes.items)):void 0},enumerable:!1,configurable:!0}),w_.prototype.render=function(t,e){this.updateHTMLTooltipElement(),this.updatePosition()},w_.prototype.update=function(t){this.attr(N({},this.attributes,t)),this.render(this.attributes,this)},w_.prototype.clear=function(){this.element.innerHTML=""},w_.prototype.destroy=function(){var t;null!=(t=this.element)&&t.remove(),null!=(t=this.customContent)&&t.remove()},w_.prototype.show=function(){this.visibility="visible",this.element.style.visibility="visible"},w_.prototype.hide=function(){this.visibility="hidden",this.element.style.visibility="hidden"},w_.prototype.initShape=function(){var t=this.attributes.template.container;this.element=g_(t),!this.id&&""===this.id||this.element.setAttribute("id",this.id)},w_.prototype.updateHTMLTooltipElement=function(){var e,r,t=this.attributes.title,n=this.element,i=this.customContent,t=(this.clear(),i?n.appendChild(i):(i=this.attributes.template.title,n.innerHTML=i,n.getElementsByClassName(v_)[0].innerHTML=t,i=this.HTMLTooltipItemsElements,(e=document.createElement("ul")).className=b_,i.forEach(function(t){e.appendChild(t)}),this.element.appendChild(e)),this.attributes.style);r=n,Object.entries(t).forEach(function(t){var t=D(t,2),e=t[0],n=t[1];Pt([r],D(r.querySelectorAll(e)),!1).filter(function(t){return t.matches(e)}).forEach(function(t){t&&(t.style.cssText+=Object.entries(n).reduce(function(t,e){return"".concat(t).concat(e.join(":"),";")},""))})}),this.element.style.visibility=this.visibility},w_.prototype.getRelativeOffsetFromCursor=function(t){var e=this.attributes,n=e.position,e=D(e.offset,2),i=e[0],o=e[1],e=(t||n).split("-"),a={left:[-1,0],right:[1,0],top:[0,-1],bottom:[0,1]},t=this.elementSize,s=t.width,l=t.height,u=[-s/2,-l/2];return e.forEach(function(t){var e=D(u,2),n=e[0],e=e[1],t=D(a[t],2),r=t[0],t=t[1];u=[n+(s/2+i)*r,e+(l/2+o)*t]}),u},w_.prototype.setOffsetPosition=function(t){var t=D(t,2),e=t[0],t=t[1],n=this.attributes,r=n.x,i=n.y,n=n.container,o=n.x,n=n.y;this.element.style.left="".concat(r+o+e,"px"),this.element.style.top="".concat(i+n+t,"px")},w_.prototype.updatePosition=function(){this.throttleUpdatePosition()},w_.prototype.autoPosition=function(t){var e,n,r,i,o,a,s,t=D(t,2),l=t[0],t=t[1],u=this.attributes,c=u.x,h=u.y,d=u.autoPosition,u=u.bounding;return d?(e=(d=this.element).offsetWidth,d=d.offsetHeight,h=(c=D([c+l,h+t],2))[0],c=c[1],n=this.attributes.position,r={left:"right",right:"left",top:"bottom",bottom:"top"},s=u.x,i=u.y,o={left:h<s,right:s+u.width<h+e,top:c<i,bottom:i+u.height<c+d},a=[],n.split("-").forEach(function(t){o[t]?a.push(r[t]):a.push(t)}),s=a.join("-"),this.getRelativeOffsetFromCursor(s)):[l,t]},w_.prototype.filter=function(t){var e=this.attributes.filterBy;return e?t.filter(e):t},w_.prototype.sort=function(t){var e=this.attributes.sortBy;return e?t.sort(e):t},w_.tag="tooltip",w_.defaultOptions={style:{x:0,y:0,visibility:"visible",title:"",position:"bottom-right",offset:[5,5],follow:!0,enterable:!1,autoPosition:!0,items:[],throttleFrequency:50,container:{x:0,y:0},bounding:{x:0,y:0,width:0,height:0},template:{container:'<div class="'.concat(Lt,'"></div>'),title:'<div class="'.concat(v_,'"></div>'),item:'<li class="'.concat(Ht,'" data-index={index}>\n <span class="').concat(Kt,'">\n <span class="').concat(h,'" style="background:{color}"></span>\n <span class="').concat(n,'" title="{name}">{name}</span>\n </span>\n <span class="').concat(c,'" title="{value}">{value}</span>\n </li>')},style:a}},w_);function w_(t){var e=m_.call(this,N({},w_.defaultOptions,t))||this;return e.visibility="visible",e.throttleUpdatePosition=vt(function(){e.setOffsetPosition(e.autoPosition(e.getRelativeOffsetFromCursor()))},e.attributes.throttleFrequency,{}),e.visibility=e.attributes.visibility,e.initShape(),e.render(e.attributes,e),e}var E_,__={default:{sizeStyle:{width:44,height:22,radius:11},tagStyle:{textStyle:{fontSize:12,lineHeight:16,fill:"#fff"},padding:0},markerStyle:{size:11}},small:{sizeStyle:{width:28,height:16,radius:8},tagStyle:{textStyle:{fontSize:10,lineHeight:14,fill:"#fff"},padding:0},markerStyle:{size:8}},mini:{sizeStyle:{width:20,height:14,radius:7},tagStyle:{textStyle:{fontSize:7,lineHeight:10,fill:"#fff"},padding:0},markerStyle:{size:7}}};function k_(t,e,n){void 0===e&&(e=0),void 0===n&&(n=!0);var r=Number(t.style.height)-2*e;return{x:n?Number(t.style.width)+Number(t.style.x)-e-r:Number(t.style.x)+e,y:Number(t.style.y)+e,width:r,height:r,radius:r/2}}function T_(t){return E_.call(this,N({},T_.defaultOptions,t))||this}i(T_,E_=o),T_.prototype.render=function(t,e){var i=this,n=t.size,n=void 0===n?"default":n,o=t.spacing,r=t.disabled,a=t.checked,s=t.unCheckedChildren,t=t.checkedChildren,e=B(e,".switch-content","g").attr("className","switch-content").node(),l=e.getLocalBounds(),n=yt(__,n,__.default),u=n.sizeStyle,c=n.tagStyle,h=r?"no-drop":"pointer",n=a?"#1890FF":"#00000040",d=u,p=a?t:s,f=((t||s)&&B(e,".switch-tag",function(){return new vw({})}).attr("className","switch-tag").call(function(t){var e,t=t.node(),n=(t.update(N({cursor:h,backgroundStyle:null,text:!1,marker:!1},c,p)),null==t?void 0:t.getLocalBounds()),r=n.max,n=n.min,i=r[0]-n[0]+u.radius,r=r[1]-n[1],n=Math.max(i+u.height+2,u.width);d=T(T({},u),{width:n}),t.update((t={x:l.min[0],y:l.min[1],width:n,height:d.height},n={width:i,height:r},i=d.radius,r=a,e=n.width,n=n.height,void 0===i&&(i=0),{x:(r=void 0===a?!0:r)?Number(t.x)+i:Number(t.width)+Number(t.x)-e,y:Number(t.y)+(Number(t.height)-n)/2}))}),B(e,".switch-background","rect").attr("className","switch-background").style("zIndex",(e.style.zIndex||0)-1).style("x",l.min[0]).style("y",l.min[1]).style("fill",n).style("cursor",h).style("fillOpacity",r?.4:1).call(C,d).node()),y=B(e,".switch-background-stroke","rect").attr("className","switch-background-stroke").style("zIndex",(e.style.zIndex||0)-2).style("x",l.min[0]).style("y",l.min[1]).style("stroke",n).style("lineWidth",0).call(C,d).node();B(e,".switch-handle","rect").attr("className","switch-handle").style("fill","#fff").style("cursor",h).call(function(t){var e,t=t.node(),n=k_(f,o,a),r=k_(f,o,!a);t.attr("x")&&!Et(n,r)&&i.checked!==a?(t.attr(r),null!=(e=t.getAnimations()[0])&&e.cancel(),null!=(e=y.getAnimations()[0])&&e.cancel(),t.animate([{x:r.x},{x:n.x}],{duration:120,fill:"both"}),y.animate([{lineWidth:0,strokeOpacity:.5},{lineWidth:14,strokeOpacity:0}],{duration:400,easing:"ease-on"})):t.attr(n)}),this.checked=!!a},T_.defaultOptions={type:T_.tag="switch",style:{x:0,y:0,spacing:2,checked:!0,disabled:!1}};var M_,u={text:"",type:"primary",height:20,width:20,buttonStyle:{default:{lineWidth:0,fill:"#fff"},active:{fill:"#fff"},disabled:{fill:"#fff"}},markerStyle:{default:{fill:"black",size:10},disabled:{fill:"#8c8c8c"}}};function S_(t){var t=M_.call(this,N({},S_.defaultOptions,t))||this,e=(t.playState="idle",t.attributes),n=e.view,e=e.initPageNum;return t.currPage=e,t.view=n,t.init(),t}i(S_,M_=o),Object.defineProperty(S_.prototype,"finished",{get:function(){var e=this;return this.finishedPromise||(this.finishedPromise=new Promise(function(t){e.resolveFinishedPromise=function(){e.finishedPromise=null,t(e.currPage)}})),"idle"===this.playState&&this.resolveFinishedPromise(),this.finishedPromise},enumerable:!1,configurable:!0}),Object.defineProperty(S_.prototype,"maxPages",{get:function(){var t=this.attributes,e=t.pageWidth,n=t.pageHeight,r=t.orient,i=t.pageLimit;return t.pageCallback||i!==1/0?i:"horizontal"===r?Math.ceil(this.width/e):Math.ceil(this.height/n)},enumerable:!1,configurable:!0}),Object.defineProperty(S_.prototype,"view",{get:function(){return this.fullView},set:function(t){var e=this.attributes,n=e.width,e=e.height;t.setLocalPosition(0,0),this.fullView=t,n&&e||(e=(n=Xx(t)).width,t=n.height,this.width=e,this.height=t)},enumerable:!1,configurable:!0}),Object.defineProperty(S_.prototype,"width",{get:function(){var t=this.attributes.width;return t||this.viewWidth},set:function(t){this.viewWidth=t},enumerable:!1,configurable:!0}),Object.defineProperty(S_.prototype,"height",{get:function(){var t=this.attributes.height;return t||this.viewHeight},set:function(t){this.viewHeight=t},enumerable:!1,configurable:!0}),Object.defineProperty(S_.prototype,"btnPosition",{get:function(){var t;return null!=(t=this.style.button)&&t.position?this.style.button.position:"horizontal"===this.style.orient?"right":"bottom"},enumerable:!1,configurable:!0}),Object.defineProperty(S_.prototype,"defaultShape",{get:function(){return["left","right","left-right"].includes(this.btnPosition)?["left","right"]:["up","down"]},enumerable:!1,configurable:!0}),Object.defineProperty(S_.prototype,"buttonCfg",{get:function(){var t=D(this.defaultShape,2),e=t[0],t=t[1],n=this.attributes.button,r=n.prev,n=n.next;return{prev:T({marker:e},r),next:T({marker:t},n)}},enumerable:!1,configurable:!0}),S_.prototype.render=function(t,e){},S_.prototype.init=function(){this.initShape(),this.updateView(),this.updateButton(),this.updateButtonState(),this.adjustLayout()},S_.prototype.update=function(t){var e=t.view;e&&(this.view&&(this.view.style.clipPath=null,this.removeChild(this.view,!1)),this.currPage=this.attributes.initPageNum,this.view=e,this.view.style.clipPath=this.clipView,this.appendChild(this.view),this.view.toBack()),this.attr(N({},this.attributes,t)),this.updateView(),this.updateButton(),this.updateButtonState(),this.adjustLayout()},S_.prototype.clear=function(){this.view&&(this.view.style.clipPath=null,this.removeChild(this.view,!1)),this.fullView=void 0,this.removeChildren(!0)},S_.prototype.destroy=function(){this.removeChildren(!0),M_.prototype.destroy.call(this)},S_.prototype.goTo=function(t){var e,n,r,i,o,a,s,l,u,c,h=this;return"idle"===this.playState&&(e=(n=this.attributes).effect,n=n.duration,r=(u=this.calcRelativePagingOffset(t)).viewFromX,i=u.viewFromY,o=u.viewToX,a=u.viewToY,c=u.clipFromX,s=u.clipFromY,l=u.clipToX,u=u.clipToY,this.playState="running",this.clipView.animate([{transform:"translate(".concat(c,"px, ").concat(s,"px)")},{transform:"translate(".concat(l,"px, ").concat(u,"px)")}],{duration:n,easing:e,fill:"both"}),null!=(c=this.view.animate([{transform:"translate(".concat(r,"px, ").concat(i,"px)")},{transform:"translate(".concat(o,"px, ").concat(a,"px)")}],{duration:n,easing:e,fill:"both"}))&&c.finished.then(function(){h.currPage=t,h.updateButtonState(),h.resolveFinishedPromise(),h.playState="idle"})),this.finished},S_.prototype.prev=function(){var t=this.attributes.loop,e=this.currPage-1;return e<1&&(e=t?this.maxPages:1),this.goTo(e)},S_.prototype.next=function(){var t=this.attributes.loop,e=this.maxPages,n=this.currPage+1;return this.goTo(n=e<n?t?1:e:n)},S_.prototype.initShape=function(){this.clipView=new dp({name:"clipView",style:{x:0,y:0,width:0,height:0}}),this.view.style.clipPath=this.clipView,this.appendChild(this.view),this.view.toBack();var t=D(this.defaultShape,2),e=t[0],t=t[1];this.prevButton=new Tw({name:"prevButton",style:T(T({},S_.defaultOptions.style.button.prev),{marker:e,onClick:this.prev.bind(this)})}),this.appendChild(this.prevButton),this.nextButton=new Tw({name:"nextButton",style:T(T({},S_.defaultOptions.style.button.next),{marker:t,onClick:this.next.bind(this)})}),this.appendChild(this.nextButton),this.paginationGroup=new tp({name:"paginationGroup"}),this.appendChild(this.paginationGroup)},S_.prototype.updateView=function(){var t=this.getClipViewSpace(this.currPage),e=t.width,t=t.height;this.clipView.attr({width:e,height:t}),this.view.setLocalPosition(0,0),this.clipView.setLocalPosition(0,0)},S_.prototype.updateButton=function(){var t=this.buttonCfg,e=t.prev,t=t.next;e&&this.prevButton.update(e),t&&this.nextButton.update(t)},S_.prototype.updateButtonState=function(){this.attributes.loop?(this.nextButton.setState("default"),this.prevButton.setState("default")):(this.nextButton.setState(this.currPage===this.maxPages?"disabled":"default"),this.prevButton.setState(1===this.currPage?"disabled":"default"))},S_.prototype.getClipViewSpace=function(t){var e=this.attributes,n=e.orient,r=e.pageWidth,i=e.pageHeight,e=e.pageCallback,o={x:0,y:0,width:r,height:i},a=this.maxPages;return e?T(T({},o),e(t)):(a<t||t<1||("vertical"===n?o.y=(t-1)*i:"horizontal"===n&&(o.x=(t-1)*r)),o)},S_.prototype.absolute2Relative=function(t,e){var n=this.currPage,n=this.getClipViewSpace(n);return[t+n.x,e+n.y]},S_.prototype.getViewPosition=function(t){var e=this.getClipViewSpace(1),n=e.x,e=e.y,t=this.getClipViewSpace(t),n=D([-t.x+n,-t.y+e],2);return{x:n[0],y:n[1]}},S_.prototype.getRelativeViewPosition=function(t){var t=this.getViewPosition(t),e=t.x,t=t.y,e=D(this.absolute2Relative(e,t),2);return{x:e[0],y:e[1]}},S_.prototype.calcRelativePagingOffset=function(t){var e=D(this.absolute2Relative.apply(this,Pt([],D(this.view.getLocalPosition().slice(0,2)),!1)),2),n=e[0],e=e[1],t=this.getRelativeViewPosition(t),r=t.x,t=t.y,i=D([-n,-e],2),o=i[0],i=i[1],a=D([-r,-t],2);return{viewFromX:n,viewFromY:e,viewToX:r,viewToY:t,clipFromX:o,clipFromY:i,clipToX:a[0],clipToY:a[1]}},S_.prototype.adjustLayout=function(){this.adjustButton()},S_.prototype.adjustButton=function(){var t,e=this.attributes,n=e.button,r=e.pageWidth,e=e.pageHeight,i=this.btnPosition,n=(null==n?void 0:n.spacing)||0,o=Xx(this.prevButton),a=o.width,o=o.height,s=Xx(this.nextButton),l=s.width,s=s.height,u=0,c=0,h=0,d=0;"left-right"===i?(u=-(n+a),c=(e-o)/2,h=n+r,d=(e-s)/2):"top-bottom"===i?(u=(r-a)/2,c=-(n+o),h=(r-l)/2,d=n+e):"top"===i?(u=(r-n)/2-a,c=-(n+(t=U([o,s]))),h=(r+n)/2,d=-(n+t)):"bottom"===i?(u=(r-n)/2-a,h=(r+n)/2,d=c=n+e):"left"===i?(u=(h=-(n+l))-(n+a),d=c=(e-(t=U([o,s])))/2):"right"===i&&(h=(u=n+r)+a,d=c=(e-(t=U([o,s])))/2),this.prevButton.setLocalPosition(u,c),this.nextButton.setLocalPosition(h,d)},S_.defaultOptions={type:S_.tag="page-navigator",style:{x:0,y:0,effect:"linear",duration:200,orient:"horizontal",initPageNum:1,pageLimit:1/0,loop:!1,button:{prev:T({spacing:0},u),next:T({spacing:0},u),style:{default:{},active:{},disabled:{}},spacing:5},pagination:{type:"currTotal",style:{default:{},active:{}},separator:"/",spacing:5}}},yw.registerSymbol("left",function(t,e,n){return[["M",t-n,e],["L",t+n,e-n],["L",t+n,e+n],["Z"]]}),yw.registerSymbol("right",function(t,e,n){return[["M",t-n,e-n],["L",t+n,e],["L",t-n,e+n],["Z"]]}),yw.registerSymbol("up",function(t,e,n){return[["M",t-n,e+n],["L",t,e-n],["L",t+n,e+n],["Z"]]}),yw.registerSymbol("down",function(t,e,n){return[["M",t-n,e-n],["L",t+n,e-n],["L",t,e+n],["Z"]]});var O_,d={text:{text:""},lineStyle:{stroke:"#416180",strokeOpacity:.45,lineWidth:1,lineDash:[5,5]}},ie=rw({},d,{type:"line",text:{position:"start",align:"center",verticalAlign:"bottom"}}),Qt=rw({},d,{type:"circle",defaultRadius:0}),It=rw({},d,{type:"polygon",defaultRadius:0,startAngle:0}),s=(i(P_,O_=o),Object.defineProperty(P_.prototype,"localPointer",{get:function(){var t=D(this.getPosition(),2),e=t[0],t=t[1],n=D(this.pointer,2);return[n[0]-e,n[1]-t]},enumerable:!1,configurable:!0}),Object.defineProperty(P_.prototype,"tagCfg",{get:function(){var t=this.attributes.text;return t.position,I(t,["position"])},enumerable:!1,configurable:!0}),Object.defineProperty(P_.prototype,"crosshairCfg",{get:function(){var t=this.attributes.lineStyle;return T(T({},t),{path:this.crosshairPath})},enumerable:!1,configurable:!0}),P_.prototype.render=function(t,e){var n=this,e=B(e,".crosshair-group","g").attr("className","crosshair-group").node();this.shapesGroup=e,this.tagShape=B(e,".crosshair-tag",function(){return new vw({className:"crosshair-tag",style:n.tagCfg})}).node(),this.crosshairShape=B(e,".crosshair-path","path").attr("className","crosshair-path").call(C,this.crosshairCfg).node(),this.adjustLayout()},P_.prototype.update=function(t){this.attr(N({},this.attributes,t=void 0===t?{}:t)),this.render(this.attributes,this)},P_.prototype.setPointer=function(t){this.pointer=t},P_.defaultOptions={type:P_.tag="crosshair-base",style:d},P_);function P_(t){return O_.call(this,N({},P_.defaultOptions,t))||this}i(C_,A_=s),Object.defineProperty(C_.prototype,"crosshairPath",{get:function(){var t=this.attributes,e=D(t.startPos,2),n=e[0],e=e[1],t=D(t.endPos,2);return[["M",0,0],["L",t[0]-n,t[1]-e],["Z"]]},enumerable:!1,configurable:!0}),Object.defineProperty(C_.prototype,"localPointer",{get:function(){var t,e,n;return this.pointer?(t=(e=D(this.getPosition(),2))[0],e=e[1],[(n=D(this.pointer,2))[0]-t,n[1]-e]):this.attributes.startPos},enumerable:!1,configurable:!0}),Object.defineProperty(C_.prototype,"isVertical",{get:function(){var t=this.attributes,e=D(t.startPos,2),n=e[0],e=e[1],t=D(t.endPos,2),r=t[0],t=t[1];return n===r&&e!==t},enumerable:!1,configurable:!0}),Object.defineProperty(C_.prototype,"tagShapeSpace",{get:function(){var t=Xx(this.tagShape);return{width:t.width,height:t.height}},enumerable:!1,configurable:!0}),C_.prototype.update=function(t){A_.prototype.update.call(this,t)},C_.prototype.setPointer=function(t){A_.prototype.setPointer.call(this,t),this.adjustPosition()},C_.prototype.setText=function(t){this.tagShape.update({text:t}),this.adjustTag()},C_.prototype.adjustLayout=function(){this.adjustPosition(),this.adjustTag()},C_.prototype.adjustPosition=function(){var t=D(this.localPointer,2),e=t[0],t=t[1],n=D(this.attributes.startPos,2),r=n[0],n=n[1],r=this.getOrientVal([r,t],[e,n]);this.shapesGroup.setLocalPosition(r)},C_.prototype.adjustTag=function(){var t,e,n=this.attributes,r=n.text,i=D(n.startPos,2),o=i[0],i=i[1],n=D(n.endPos,2),a=n[0],n=n[1];r&&""!==r?(this.tagShape.show(),r=r.position,e=(t=this.tagShapeSpace).width,t=t.height,o=(a=D(this.getOrientVal({start:[-e/2,t/2],end:[a-o+e/2,t/2]},{start:[0,0],end:[0,n-i+t]})[r],2))[0],e=a[1],this.tagShape.setLocalPosition(o,e)):this.tagShape.hide()},C_.prototype.getOrientVal=function(t,e){return this.isVertical?e:t},C_.defaultOptions={type:C_.tag="line-crosshair",style:ie},t([lw(20)],C_.prototype,"setPointer",null);var A_,N_=C_;function C_(t){return A_.call(this,rw({},C_.defaultOptions,t))||this}i(R_,L_=s),Object.defineProperty(R_.prototype,"crosshairPath",{get:function(){return this.createCirclePath()},enumerable:!1,configurable:!0}),R_.prototype.update=function(t){L_.prototype.update.call(this,t)},R_.prototype.setPointer=function(t){var t=D(t,2),e=t[0],t=t[1],e=(L_.prototype.setPointer.call(this,[e,t]),D(this.localPointer,2)),t=e[0],e=e[1],n=D(this.attributes.center,2),r=n[0],n=n[1],t=this.createCirclePath(Math.pow(Math.pow(t-r,2)+Math.pow(e-n,2),.5));this.crosshairShape.attr({path:t})},R_.prototype.adjustLayout=function(){this.tagShape.hide()},R_.prototype.createCirclePath=function(t){var e=this.attributes,n=D(e.center,2),r=n[0],n=n[1],e=e.defaultRadius;return cw(r,n,t||e)},R_.defaultOptions={type:R_.tag="circle-crosshair",style:Qt},t([lw(20)],R_.prototype,"setPointer",null);var L_,I_,j_=R_;function R_(t){return L_.call(this,rw({},R_.defaultOptions,t))||this}function D_(t){return I_.call(this,rw({},D_.defaultOptions,t))||this}i(D_,I_=s),Object.defineProperty(D_.prototype,"crosshairPath",{get:function(){return this.createPolygonPath()},enumerable:!1,configurable:!0}),D_.prototype.update=function(t){I_.prototype.update.call(this,t)},Object.defineProperty(D_.prototype,"points",{get:function(){for(var t,e,n,r,i,o,a=this.attributes,s=a.startAngle,l=a.sides,u=2*Math.PI/l,c=[1,0],h=[],d=0;d<l;d+=1)h.push((t=[0,0],e=c,n=[0,0],r=s/180*Math.PI+u*d,o=i=void 0,i=e[0]-n[0],e=e[1]-n[1],o=Math.sin(r),r=Math.cos(r),t[0]=i*r-e*o+n[0],t[1]=i*o+e*r+n[1],t));return h},enumerable:!1,configurable:!0}),D_.prototype.setPointer=function(t){var t=D(t,2),e=t[0],t=t[1],e=(I_.prototype.setPointer.call(this,[e,t]),D(this.localPointer,2)),t=e[0],e=e[1],n=this.attributes.center,r=D(this.intersection([t,e]),2),i=r[0],r=r[1];i&&r&&(t=sw(n,[t,e])/sw(n,[i,r]),e=this.createPolygonPath(t),this.crosshairShape.attr({path:e}))},D_.prototype.adjustLayout=function(){this.tagShape.hide()},D_.prototype.createPolygonPath=function(r){var t=this.attributes,i=t.defaultRadius,t=D(t.center,2),o=t[0],a=t[1],t=this.points.map(function(t,e){var t=D(t,2),t=D(aa([0,0],[t[0],t[1]],r||i),2),n=t[0],t=t[1];return[0===e?"M":"L",o+n,a+t]});return t.push(["Z"]),t},D_.prototype.intersection=function(t){for(var e,n,r,i,o,a,s,l,t=D(t,2),u=t[0],c=t[1],h=this.points,t=D(this.attributes.center,2),d=t[0],p=t[1],f=1;f<=h.length;f+=1){var y=D(h[f-1],2),g=y[0],y=y[1],m=D(h[f%h.length],2),v=m[0],m=m[1],g=(i=[d,p],g=[g+d,y+p],y=[v+d,m+p],l=s=a=o=m=v=void 0,m=(r=D(r=[u,c],2))[0],r=r[1],o=(i=D(i,2))[0],i=i[1],a=(g=D(g,2))[0],g=g[1],s=(y=D(y,2))[0],y=y[1],l=[],(y-g)*(o-m)==(i-r)*(s-a)?(i-r)*(a-m)==(g-r)*(o-m)&&(ow(m,o,r,i,a,g)&&aw(l,a,g),ow(m,o,r,i,s,y)&&aw(l,s,y),ow(a,s,g,y,m,r)&&aw(l,m,r),ow(a,s,g,y,o,i)&&aw(l,o,i)):(v=(m*(i-r)+g*(o-m)-r*(o-m)-a*(i-r))/((s-a)*(i-r)-(o-m)*(y-g)),0<=(y=(a*(y-g)+r*(s-a)-g*(s-a)-m*(y-g))/((o-m)*(y-g)-(s-a)*(i-r)))&&y<=1&&0<=v&&v<=1&&(l[0]=m+y*(o-m),l[1]=r+y*(i-r))),l);0!==g.length&&(e=(s=D(g,2))[0],n=s[1])}return[e,n]},D_.defaultOptions={type:D_.tag="polygon-crosshair",style:It},t([lw(20)],D_.prototype,"setPointer",null);i(V_,B_=O),Object.defineProperty(V_.prototype,"decorationType",{get:function(){var t=this.attributes.type;return t&&"none"!==t&&G(t)?t.map(function(t){return G(t)?t:[t,"solid"]}):"none"},enumerable:!1,configurable:!0}),Object.defineProperty(V_.prototype,"doubleSpacing",{get:function(){return 2*this.attributes.style.lineWidth},enumerable:!1,configurable:!0}),Object.defineProperty(V_.prototype,"hangingRate",{get:function(){return this.attributes.hangingRate},enumerable:!1,configurable:!0}),Object.defineProperty(V_.prototype,"dashedCfg",{get:function(){var t=this.attributes.style.lineWidth;return{lineDash:[2*t,t]}},enumerable:!1,configurable:!0}),Object.defineProperty(V_.prototype,"dottedCfg",{get:function(){var t=this.attributes.style.lineWidth;return{lineDash:[t,t]}},enumerable:!1,configurable:!0}),Object.defineProperty(V_.prototype,"solidCfg",{get:function(){return{lineDash:[0,0]}},enumerable:!1,configurable:!0}),Object.defineProperty(V_.prototype,"decorationCfg",{get:function(){var r=this,i=this.attributes.style,t=this.decorationType;return"none"===t?[]:t.map(function(t){var e,t=D(t,2),n=t[0],t=t[1];return"wavy"===t?T({path:r.getWavyPath(n)},i):"double"===t?T({path:r.getDoubleLinePath(n)},i):(e={solid:r.solidCfg,dashed:r.dashedCfg,dotted:r.dottedCfg},T(T({path:r.getLinePath(n)},i),e[t]))})},enumerable:!1,configurable:!0}),V_.prototype.update=function(t){var e=this;this.attr(rw({},this.attributes,t)),this.clear(),this.decorationCfg.forEach(function(t){e.appendChild(new ap({style:t}))})},V_.prototype.clear=function(){this.removeChildren(!0)},V_.prototype.getLinePos=function(t){var e=D(this.hangingRate,3),n=e[0],r=e[1],e=e[2],i=this.attributes,o=i.height,i=i.fontSize,a=D([0,0],2),s=a[0],a=a[1],a=("overline"===t?(s=(n=D([0,o*n-i/2],2))[0],n):"line-through"===t?(s=(n=D([0,o*r],2))[0],n):(s=(t=D([0,o*e+i/2],2))[0],t))[1];return[s,a]},V_.prototype.getLinePath=function(t){var e=this.attributes.width,t=D(this.getLinePos(t),2),n=t[0],t=t[1];return[["M",n,t],["L",n+e,t]]},V_.prototype.getDoubleLinePath=function(t){var e,n=this.doubleSpacing,r=this.attributes.width,i=D(this.getLinePos(t),2),o=i[0],i=i[1],a=D([0,0],2),s=a[0],a=a[1];return"line-through"===t&&(s=(e=D([-.5,.5],2))[0],a=e[1]),"underline"===t?(s=(e=D([0,1],2))[0],a=e[1]):"overline"===t&&(s=(e=D([1,0],2))[0],a=e[1]),[["M",o,i+n*s],["L",o+r,i+n*s],["M",o,i+n*a],["L",o+r,i+n*a]]},V_.prototype.getWavyPath=function(t){return[]},V_.tag="decoration",V_.defaultOptions={style:{width:0,height:0,type:"none",hangingRate:[.5,.55,.5],style:{lineWidth:1,stroke:"#000"}}};var B_,F_,z_=V_;function V_(t){t=B_.call(this,rw({},V_.defaultOptions,t))||this;return t.update({}),t}function G_(t){t=F_.call(this,rw({},G_.defaultOptions,t))||this;return t.init(),t}i(G_,F_=o),Object.defineProperty(G_.prototype,"textWidth",{get:function(){var e=this;return U(this.renderText.split("\n").map(function(t){return Px(t,e.font)}))||0},enumerable:!1,configurable:!0}),Object.defineProperty(G_.prototype,"textHeight",{get:function(){return Xx(this.textShape).height},enumerable:!1,configurable:!0}),Object.defineProperty(G_.prototype,"width",{get:function(){var t=this.attributes.width;return"auto"===t||void 0===t||0===t?this.textWidth:t},enumerable:!1,configurable:!0}),Object.defineProperty(G_.prototype,"height",{get:function(){var t=this.attributes.height;return Q(t)&&0!==t?t:Xx(this.textShape).height},enumerable:!1,configurable:!0}),Object.defineProperty(G_.prototype,"lineHeight",{get:function(){var t=this.attributes,e=t.lineHeight,t=t.fontSize;return e&&0!==e?e:t},enumerable:!1,configurable:!0}),Object.defineProperty(G_.prototype,"capitalizeWord",{get:function(){return this.attributes.text.split("\n").map(function(t){return t.split(" ").map(function(t){return Cx(t,"capitalize")}).join(" ")}).join("\n")},enumerable:!1,configurable:!0}),Object.defineProperty(G_.prototype,"text",{get:function(){var t=this.attributes,e=t.transform,t=t.text;return"capitalize"===e?this.capitalizeWord:Cx(t,e)},enumerable:!1,configurable:!0}),Object.defineProperty(G_.prototype,"ellipsisText",{get:function(){var e=this,t=this.text,n=this.attributes,r=n.width,n=n.overflow,i="ellipsis"===n?"...":n;return t.split("\n").map(function(t){return Ox(t,Q(r)?r:1/0,e.font,i)}).join("\n")},enumerable:!1,configurable:!0}),Object.defineProperty(G_.prototype,"renderText",{get:function(){var t=this.attributes.width,e=this.attributes.overflow;return e&&!["none","clip","wrap"].includes(e)&&Q(t)?this.ellipsisText:this.text},enumerable:!1,configurable:!0}),Object.defineProperty(G_.prototype,"verticalAlign",{get:function(){return this.attributes.verticalAlign},enumerable:!1,configurable:!0}),Object.defineProperty(G_.prototype,"font",{get:function(){return gt(this.attributes,["fontSize","fontFamily","fontWeight","fontStyle","fontVariant","letterSpacing","leading"])},enumerable:!1,configurable:!0}),Object.defineProperty(G_.prototype,"fontColor",{get:function(){return this.attributes.fontColor},enumerable:!1,configurable:!0}),Object.defineProperty(G_.prototype,"wordWrap",{get:function(){return"wrap"===this.attributes.overflow},enumerable:!1,configurable:!0}),Object.defineProperty(G_.prototype,"wordWrapWidth",{get:function(){var t=this.width;return this.wordWrap?t:1/0},enumerable:!1,configurable:!0}),Object.defineProperty(G_.prototype,"textCfg",{get:function(){var t=this.renderText,e=this.lineHeight,n=this.wordWrap,r=this.wordWrapWidth,i=this.fontColor;return T(T(T({},Gx),this.font),{fill:i,wordWrap:n,lineHeight:e,wordWrapWidth:r,text:t,textAlign:"start",textBaseline:"middle"})},enumerable:!1,configurable:!0}),Object.defineProperty(G_.prototype,"backgroundCfg",{get:function(){var t=this.width,e=this.height,n=this.attributes.backgroundStyle;return T({x:0,y:0,width:t,height:e},n)},enumerable:!1,configurable:!0}),Object.defineProperty(G_.prototype,"decorationLineWidth",{get:function(){var t=this.attributes.fontSize;return Math.floor(2*Math.log10(t))},enumerable:!1,configurable:!0}),Object.defineProperty(G_.prototype,"decorationCfg",{get:function(){var t=this.attributes,e=t.decoration,n=t.fontSize,r=this.decorationLineWidth,i=this.fontColor;return this.textShape.getLineBoundingRects().map(function(t){return rw({},{fontSize:n,style:{stroke:i,lineWidth:r}},e,t)})},enumerable:!1,configurable:!0}),Object.defineProperty(G_.prototype,"clipRectCfg",{get:function(){var t=this.height;return{width:this.attributes.width,height:t}},enumerable:!1,configurable:!0}),G_.prototype.init=function(){this.initShape(),this.update({})},G_.prototype.update=function(t){this.attr(rw({},this.attributes,t)),this.render()},G_.prototype.render=function(){var e=this;this.clear(),this.backgroundShape.attr(this.backgroundCfg),this.textShape.attr(this.textCfg),this.layout(),this.decorationGroup.removeChildren(!0),this.decorationCfg.forEach(function(t){e.decorationGroup.appendChild(new z_({style:t}))})},G_.prototype.clear=function(){var t;(this.backgroundShape.style.clipPath=null)!=(t=this.clipRect)&&t.destroy()},G_.prototype.initShape=function(){this.backgroundShape=new dp({name:"background",style:{width:0,height:0}}),this.decorationGroup=new tp({name:"decoration-group"}),this.textShape=new fp({name:"text",style:this.textCfg}),this.textShape.appendChild(this.decorationGroup),this.backgroundShape.appendChild(this.textShape),this.appendChild(this.backgroundShape)},G_.prototype.overflow=function(){var t=this.wordWrap,e=this.attributes,n=e.width,e=e.overflow;e&&"none"!==e&&!t&&Q(n)&&"clip"===e&&(this.clipRect=new dp({name:"clip-rect",style:this.clipRectCfg}),this.backgroundShape.style.clipPath=this.clipRect)},G_.prototype.adjustTextAlign=function(){var t=this.textWidth,e=this.attributes,n=e.width,e=e.textAlign;Q(n)&&(n=0,n="start"===e?0:"center"===e?(this.width-t)/2:this.width-t,this.textShape.attr({x:n}))},G_.prototype.adjustVerticalAlign=function(){var t=this.verticalAlign,e=this.textHeight,n=0,n="top"===t?e/2:"middle"===t?this.height/2:this.height-e/2;this.textShape.attr({y:n})},G_.prototype.layout=function(){this.adjustTextAlign(),this.adjustVerticalAlign(),this.overflow()},G_.defaultOptions={type:G_.tag="paragraph",style:{text:"",fontColor:"#000",fontFamily:"sans-serif",fontSize:12,fontWeight:"normal",fontVariant:"normal",letterSpacing:0,leading:0,fontStyle:"normal",decoration:{type:"none",style:{}},overflow:"none",backgroundStyle:{},transform:"none",tooltip:!1,tooltipWait:300}};var H_,re=T(T({},Gx),{fill:"rgba(0,0,0,0.45)",fontSize:10,textAlign:"start",textBaseline:"middle",overflow:"clip"}),W_={default:{width:12,height:12,radius:2,stroke:"#dadada",lineWidth:1,fill:"#ffffff",cursor:"pointer"},selected:{width:12,height:12,radius:2,stroke:"#3471F9",lineWidth:1,fill:"#3471F9",cursor:"pointer"}},Y_={path:[["M",3,6],["L","5","8.5"],["L","8.5","4"]],lineWidth:1,cursor:"pointer"};function U_(t){return H_.call(this,N({},U_.defaultOptions,t))||this}i(U_,H_=o),U_.prototype.render=function(t,e){var n=t.label,r=t.boxStyle,i=t.checkedStyle,o=t.checked,t=t.spacing,o=(this.checked=!!o,B(e,".checkbox-content","g").attr("className","checkbox-content").node()),e=ht({},this.checked?W_.selected:W_.default,r),r=ht({},Y_,i),t=(this.checkboxBoxShape=B(o,".checkbox-box","rect").attr("className","checkbox-box").style("zIndex",(o.style.zIndex||0)-1).call(C,e).node(),B(this.checkboxBoxShape,".checkbox-checked","path").attr("className","checkbox-box-checked").style("stroke","#ffffff").call(C,r),i=this.checkboxBoxShape,e=Number(t),{x:(r=i.getLocalBounds()).halfExtents[0]?r.max[0]+(e||0):i.style.x,y:r.halfExtents[1]?(r.min[1]+r.max[1])/2:i.style.y}),e=t.x,r=t.y;B(o,".checkbox-label","text").attr("className","checkbox-label").style("x",e).style("y",r).call(C,n)},U_.defaultOptions={type:U_.tag="checkbox",style:{x:0,y:0,label:T({text:""},re),spacing:4,checked:!1}};var q_="gui-poptip",X_="gui-poptip-arrow",Z_="gui-poptip-text",K_=((l={})[".".concat(q_)]={visibility:"visible",position:"absolute","background-color":"rgba(0, 0, 0)","box-shadow":"0px 0px 10px #aeaeae","border-radius":"3px",color:"#fff",opacity:.8,"font-size":"12px",padding:"4px 6px",display:"flex","justify-content":"center","align-items":"center","z-index":8,transition:"visibility 50ms"},l[".".concat(Z_)]={"text-align":"center"},l[".".concat(q_,"[data-position='top']")]={transform:"translate(-50%, -100%)"},l[".".concat(q_,"[data-position='left']")]={transform:"translate(-100%, -50%)"},l[".".concat(q_,"[data-position='right']")]={transform:"translate(0, -50%)"},l[".".concat(q_,"[data-position='bottom']")]={transform:"translate(-50%, 0)"},l[".".concat(q_,"[data-position='top-left']")]={transform:"translate(0,-100%)"},l[".".concat(q_,"[data-position='top-right']")]={transform:"translate(-100%,-100%)"},l[".".concat(q_,"[data-position='left-top']")]={transform:"translate(-100%, 0)"},l[".".concat(q_,"[data-position='left-bottom']")]={transform:"translate(-100%, -100%)"},l[".".concat(q_,"[data-position='right-top']")]={transform:"translate(0, 0)"},l[".".concat(q_,"[data-position='right-bottom']")]={transform:"translate(0, -100%)"},l[".".concat(q_,"[data-position='bottom-left']")]={transform:"translate(0, 0)"},l[".".concat(q_,"[data-position='bottom-right']")]={transform:"translate(-100%, 0)"},l[".".concat(X_)]={width:"4px",height:"4px",transform:"rotate(45deg)","background-color":"rgba(0, 0, 0)",position:"absolute","z-index":-1},l[".".concat(q_,"[data-position='top']")]={transform:"translate(-50%, calc(-100% - 5px))"},l["[data-position='top'] .".concat(X_)]={bottom:"-2px"},l[".".concat(q_,"[data-position='left']")]={transform:"translate(calc(-100% - 5px), -50%)"},l["[data-position='left'] .".concat(X_)]={right:"-2px"},l[".".concat(q_,"[data-position='right']")]={transform:"translate(5px, -50%)"},l["[data-position='right'] .".concat(X_)]={left:"-2px"},l[".".concat(q_,"[data-position='bottom']")]={transform:"translate(-50%, 5px)"},l["[data-position='bottom'] .".concat(X_)]={top:"-2px"},l[".".concat(q_,"[data-position='top-left']")]={transform:"translate(0, calc(-100% - 5px))"},l["[data-position='top-left'] .".concat(X_)]={left:"10px",bottom:"-2px"},l[".".concat(q_,"[data-position='top-right']")]={transform:"translate(-100%, calc(-100% - 5px))"},l["[data-position='top-right'] .".concat(X_)]={right:"10px",bottom:"-2px"},l[".".concat(q_,"[data-position='left-top']")]={transform:"translate(calc(-100% - 5px), 0)"},l["[data-position='left-top'] .".concat(X_)]={right:"-2px",top:"8px"},l[".".concat(q_,"[data-position='left-bottom']")]={transform:"translate(calc(-100% - 5px), -100%)"},l["[data-position='left-bottom'] .".concat(X_)]={right:"-2px",bottom:"8px"},l[".".concat(q_,"[data-position='right-top']")]={transform:"translate(5px, 0)"},l["[data-position='right-top'] .".concat(X_)]={left:"-2px",top:"8px"},l[".".concat(q_,"[data-position='right-bottom']")]={transform:"translate(5px, -100%)"},l["[data-position='right-bottom'] .".concat(X_)]={left:"-2px",bottom:"8px"},l[".".concat(q_,"[data-position='bottom-left']")]={transform:"translate(0, 5px)"},l["[data-position='bottom-left'] .".concat(X_)]={top:"-2px",left:"8px"},l[".".concat(q_,"[data-position='bottom-right']")]={transform:"translate(-100%, 5px)"},l["[data-position='bottom-right'] .".concat(X_)]={top:"-2px",right:"8px"},l),$_=void 0;var J_;function Q_(t){var e=t&&document.getElementById(t);return e||((e=document.createElement("div")).setAttribute("id",t),document.body.appendChild(e)),e}function tk(t){var n,r;return n=Q_,function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return r=r||n.apply($_,t)}(t)}function ek(t){t=J_.call(this,N({style:{id:"gui-poptip"}},ek.defaultOptions,t))||this;return t.visibility="visible",t.map=new Map,t.domStyles="",t.initShape(),t.render(t.attributes,t),t}i(ek,J_=o),Object.defineProperty(ek.prototype,"visible",{get:function(){return"visible"===this.visibility},enumerable:!1,configurable:!0}),ek.prototype.render=function(t,e){this.visibility=this.style.visibility,this.updatePoptipElement()},ek.prototype.update=function(t){this.attr(N({},this.style,t)),this.render(this.attributes,this)},ek.prototype.bind=function(s,l){var u,t,e,c=this;s&&(u=this.style.text,e=function(){c.hideTip()},s.addEventListener("mousemove",t=function(t){var e=s,n=c.style,r=u,i=(l&&(a=(i="function"==typeof l?l.call(null,t):l).html,o=i.target,i=I(i,["html","target"]),n=ht({},c.style,i),!o&&!1!==o||(e=o),"string"==typeof a&&(r=a)),n.position),o=n.arrowPointAtCenter,a=n.follow,n=n.offset;e?(e=(t=D(function(t,e,n,r,i,o){if(void 0===i&&(i=!1),o=void 0===o?!1:o)return[t,e];var a=(o=n.getBoundingClientRect()).x,s=o.y,l=o.width,u=o.height;switch(r){case"top":return i?[a+l/2,s]:[t,s];case"left":return i?[a,s+u/2]:[a,e];case"bottom":return i?[a+l/2,s+u]:[t,s+u];case"right":return i?[a+l,s+u/2]:[a+l,e];case"top-right":case"right-top":return[a+l,s];case"left-bottom":case"bottom-left":return[a,s+u];case"right-bottom":case"bottom-right":return[a+l,s+u];default:return[a,s]}}(t.clientX,t.clientY,e,i,o,a),2))[0],o=t[1],c.showTip(e,o,{text:r,position:i,offset:n})):c.hideTip()}),s.addEventListener("mouseleave",e),this.map.set(s,[t,e]))},ek.prototype.unbind=function(t){var e,n;this.map.has(t)&&(e=(n=D(this.map.get(t)||[],2))[0],n=n[1],e&&t.removeEventListener("mousemove",e),n&&t.removeEventListener("mouseleave",n),this.map.delete(t))},ek.prototype.clear=function(){this.container.innerHTML=""},ek.prototype.destroy=function(){var t,e=this;Pt([],D(this.map.keys()),!1).forEach(function(t){return e.unbind(t)}),null!=(t=this.container)&&t.remove()},ek.prototype.showTip=function(t,e,n){var r,i=yt(n,"text");i&&"string"!=typeof i||(this.applyStyles(),t&&e&&n&&(r=n.offset,(n=n.position)&&this.container.setAttribute("data-position",n),this.setOffsetPosition(t,e,r),"string"==typeof i&&(n=this.container.querySelector(".".concat(Z_)))&&(n.innerHTML=i),this.visibility="visible",this.container.style.visibility="visible"))},ek.prototype.hideTip=function(){this.visibility="hidden",this.container.style.visibility="hidden"},ek.prototype.getContainer=function(){return this.container},ek.prototype.getClassName=function(){var t=this.style.containerClassName;return"".concat(q_).concat(t?" ".concat(t):"")},ek.prototype.initShape=function(){var t=this,e=this.style.id;this.container=tk(e),this.container.setAttribute("class",this.getClassName()),this.container.addEventListener("mousemove",function(){return t.showTip()}),this.container.addEventListener("mouseleave",function(){return t.hideTip()})},ek.prototype.updatePoptipElement=function(){var t=this.container,e=(this.clear(),this.style),n=e.id,r=e.template,e=e.text,n=(this.container.setAttribute("id",n),this.container.setAttribute("class",this.getClassName()),'<span class="'.concat(X_,'"></span>'));t.innerHTML=n,Z(r)?t.innerHTML+=r:r&&lt(r)&&t.appendChild(r),e&&(t.getElementsByClassName(Z_)[0].textContent=e),this.applyStyles(),this.container.style.visibility=this.visibility},ek.prototype.applyStyles=function(){var t,e=rw({},K_,this.style.domStyles),e=Object.entries(e).reduce(function(t,e){var e=D(e,2),n=e[0],e=e[1],e=Object.entries(e).reduce(function(t,e){var e=D(e,2),n=e[0],e=e[1];return"".concat(t).concat(n,": ").concat(e,";")},"");return"".concat(t).concat(n,"{").concat(e,"}")},"");this.domStyles!==e&&(this.domStyles=e,(t=this.container.querySelector("style"))&&this.container.removeChild(t),(t=document.createElement("style")).innerHTML=e,this.container.appendChild(t))},ek.prototype.setOffsetPosition=function(t,e,n){var n=D(n=void 0===n?this.style.offset:n,2),r=n[0],n=n[1],n=void 0===n?0:n;this.container.style.left="".concat(t+(void 0===r?0:r),"px"),this.container.style.top="".concat(e+n,"px")},ek.tag="poptip",ek.defaultOptions={style:{x:0,y:0,width:0,height:0,target:null,visibility:"hidden",text:"",position:"top",follow:!1,offset:[0,0],domStyles:K_,template:'<div class="'.concat(Z_,'"></div>')}};class nk extends Xd{constructor(t){super(t)}connectedCallback(){this.draw()}attributeChangedCallback(){this.draw()}draw(){this.drawText(),this.drawBackground(),this.drawConnector(),this.drawPoints()}get endPoint(){const t=this.style["connector"];var e,n;return Array.isArray(null===t||void 0===t?void 0:t.path)&&t.path.length?([[,e,n]]=t.path.slice(-1),{x:e,y:n}):{x:0,y:0}}drawText(){var t=this.attributes,e=t["textAlign"],t=I(t,["class","connector","startMarker","endMarker","background","transform","textAlign"]),{x:n,y:r}=this.endPoint;this.textShape=Ob(this.textShape||this.appendChild(new fp({}))).call(Ib,t).style("x",+n).style("y",+r).style("textAlign",e||(n<0?"right":0<n?"left":"center")).node()}drawBackground(){var t,e,n,r,i,o,a,s,l,u=this.style["background"];u?(t=u.padding,u=I(u,["padding"]),[t=0,e=0,n=t,r=e]=t||[],i=this.getEulerAngles(),{min:[o,a],halfExtents:[s,l]}=(this.setEulerAngles(0),this.textShape.getLocalBounds()),this.setEulerAngles(i),this.background=Ob(this.background||this.appendChild(new dp({}))).style("zIndex",-1).style("x",o-r).style("y",a-t).style("width",2*s+r+e).style("height",2*l+t+n).call(Ib,u).node()):(this.background&&this.removeChild(this.background,!0),this.background=void 0)}drawConnector(){var t,e=this.style["connector"];e?(t=e.path||function(t){var{min:[t,e],max:[n,r]}=t.getLocalBounds();let i=0,o=0;return 0<t&&(i=t),n<0&&(i=n),0<e&&(o=e),r<0&&(o=r),[["M",0,0],["L",i,o]]}(this.background||this.textShape),this.connector=Ob(this.connector||this.appendChild(new ap({}))).style("zIndex",-1).style("stroke","black").style("lineWidth",1).call(Ib,e).style("path",t).node()):(this.connector&&this.removeChild(this.connector,!0),this.connector=void 0)}drawPoints(){var{startMarker:t,endMarker:e}=this.style;this.drawStartMarker(t),this.drawEndMarker(e&&Object.assign(Object.assign({},e),this.endPoint))}drawStartMarker(t){var e=this.startMarkerPoint;t?(e||(this.startMarkerPoint=this.appendChild(new yw({style:{symbol:"circle",size:4}}))),this.startMarkerPoint.update(t)):(e&&this.removeChild(e,!0),this.startMarkerPoint=void 0)}drawEndMarker(t){var e=this.endMarkerPoint;t?(e||(this.endMarkerPoint=this.appendChild(new yw({style:{symbol:"circle",size:4}}))),this.endMarkerPoint.update(t)):(e&&this.removeChild(e,!0),this.endMarkerPoint=void 0)}}const rk=t=>{const l=I(t,[]);return(t,e,n,r)=>{var r=r["defaultColor"],{color:e=r,text:r="",fontSize:i=12,rotate:o=0,transform:a=""}=e,[[t,s]]=t;return Ob(new nk({})).style("x",t).style("y",s).style("text",String(r)).style("stroke",e).style("fill",e).style("fontSize",i).style("transform",a+`rotate(${+o}deg)`).call(Ib,l).node()}};rk.props={defaultEnterAnimation:"fadeIn"};class ik extends Xd{constructor(t){super(t)}connectedCallback(){this.draw()}attributeChangedCallback(){this.draw()}draw(){this.drawMarker(),this.drawText()}drawMarker(){const t=this.attributes,{size:s=24}=t,e=I(t,["class","size"]);this.badgeMarker=this.badgeMarker||this.appendChild(new yw({})),this.badgeMarker.className="badge-marker",this.badgeMarker.update(Object.assign(Object.assign({symbol:()=>{var t=s/2,e=t/Math.sqrt(2),n=t*Math.sqrt(2),[r,i]=[-e,e-n],[o,a]=[0,0],[e,n]=[e,e-n];return[["M",r,i],["A",t,t,0,1,1,e,n],["L",o,a],["Z"]]},size:s},e),{x:0,y:0}))}drawText(){var t=function(t){var{min:t,max:e}=t.getLocalBounds();return{x:(t[0]+e[0])/2,y:(t[1]+e[1])/2}}(this.badgeMarker),{content:e="",textStyle:n}=this.style,{fontSize:n=10,fill:r="#333"}=n||{};this.badgeText=this.badgeText||this.appendChild(new fp({})),Ob(this.badgeText).attr("className","badge-text").style("x",t.x).style("y",t.y).style("textAlign","center").style("textBaseline","middle").call(Ib,{fill:r,fontSize:n,text:e}).node()}}const ok=t=>{const o=I(t,[]);return(t,e,n,r)=>{var r=r["defaultColor"],{color:e=r,text:r=""}=e,[[t,i]]=t;return Ob(new ik({})).style("x",t).style("y",i).style("text",String(r)).style("stroke",e).style("fill",e).call(Ib,o).node()}};function ak(t,e,n,r){const i=t.slice(0,t.length/2),o=t.slice(t.length/2);var a,s,l,u,c;if(pm(r)){const h=r.getCenter();t=e["transform"];return r=nb().curve(rb),a=r.curve,s=r.lineX0,l=r.lineX1,u=r.lineY0,c=r.lineY1,r.angle=r.x,delete r.x,r.startAngle=r.x0,delete r.x0,r.endAngle=r.x1,delete r.x1,r.radius=r.y,delete r.y,r.innerRadius=r.y0,delete r.y0,r.outerRadius=r.y1,delete r.y1,r.lineStartAngle=function(){return ab(s())},delete r.lineX0,r.lineEndAngle=function(){return ab(l())},delete r.lineX1,r.lineInnerRadius=function(){return ab(u())},delete r.lineY0,r.lineOuterRadius=function(){return ab(c())},delete r.lineY1,r.curve=function(t){return arguments.length?a(ob(t)):a()._curve},[r.angle((t,e)=>Cb(Ab(i[e],h))).outerRadius((t,e)=>Nb(i[e],h)).innerRadius((t,e)=>Nb(o[e],h)).curve(n)(o),`translate(${h[0]}, ${h[1]}) `+(t||"")]}return[nb().x((t,e)=>i[e][0]).y1((t,e)=>i[e][1]).y0((t,e)=>o[e][1]).curve(n)(i),""]}ok.props={defaultEnterAnimation:"fadeIn"};const sk=t=>{const{curve:a,gradient:s=!1}=t,l=I(t,["curve","gradient"]);return(t,e,n,r)=>{var r=r["defaultColor"],{color:r=r,seriesColor:i,seriesX:o}=e,[t,e]=ak(t,e,a,n),n=s&&i?Bb(i,o):r;return Ob(new ap({})).style("d",t).style("fill",n).style("stroke",n).style("transform",e).call(Ib,l).node()}},lk=(sk.props={defaultEnterAnimation:"fadeIn"},o=>(t,e,n,r)=>{var i=pm(n)?mb:J1;return sk(Object.assign({curve:i},o))(t,e,n,r)}),uk=(lk.props=Object.assign({},sk.props),t=>{const{alpha:o=.5}=t,a=I(t,["alpha"]);return(t,e,n,r)=>{const i=pm(n)?yb:pb;return sk(Object.assign({curve:i.alpha(o)},a))(t,e,n,r)}}),ck=(uk.props=Object.assign({},sk.props),t=>{const s=t["arrow"],l=I(t,["arrow"]);return(t,e,n,r)=>{var i,r=r["defaultColor"],{color:e=r,transform:r}=e,[t,o]=t;const a=P1();return a.moveTo(...t),a.lineTo(...o),s&&([t,i]=Rb(t,o,s),a.moveTo(...o),a.lineTo(...t),a.moveTo(...o),a.lineTo(...i)),Ob(new ap).style("d",a.toString()).style("stroke",e).style("transform",r).call(Ib,l).node()}}),hk=(ck.props={defaultEnterAnimation:"fadeIn"},t=>{const s=I(t,[]);return(t,e,n,r)=>{var r=r["defaultColor"],{color:e=r,src:r="",size:i=32,transform:o=""}=e,[[t,a]]=t,t=t-Number(i)/2,a=a-Number(i)/2;return Ob(new np).style("x",t).style("y",a).style("width",i).style("height",i).style("img",r).style("stroke",e).style("transform",o).call(Ib,s).node()}});hk.props={defaultEnterAnimation:"fadeIn"};const dk=t=>{const o=I(t,[]);return(t,e,n,r)=>{var r=r["defaultColor"],{color:e=r,transform:r}=e;const i=function(i,t){const o=P1();if(pm(t)){const a=t.getCenter(),e=[...i,i[0]],s=e.map(t=>Nb(t,a));return e.forEach((t,e)=>{var n,r;0===e?o.moveTo(t[0],t[1]):(n=s[e],r=i[e-1],void 0!==(e=s[e-1])&&Math.abs(n-e)<1e-10?Db(o,r,t,a,n):o.lineTo(t[0],t[1]))}),o.closePath(),o}return jb(o,i)}(t,n);return Ob(new ap).style("d",i.toString()).style("stroke",e).style("fill",e).style("transform",r).call(Ib,o).node()}};dk.props={defaultEnterAnimation:"fadeIn"};const pk=t=>{const o=I(t,[]);return(t,e,n,r)=>{var r=r["defaultColor"],{color:e=r,transform:r}=e;const i=function(t,e){const n=P1();var r,i,o,a,s,l,u,c;return pm(e)?([r,i]=e=e.getCenter(),o=Cb(Ab(t[0],e)),a=Cb(Ab(t[1],e)),s=Nb(e,t[2]),l=Nb(e,t[3]),u=Nb(e,t[8]),c=Nb(e,t[10]),e=Nb(e,t[11]),n.moveTo(...t[0]),n.arc(r,i,s,o,a),n.arc(r,i,s,a,o,!0),n.moveTo(...t[2]),n.lineTo(...t[3]),n.moveTo(...t[4]),n.arc(r,i,l,o,a),n.lineTo(...t[6]),n.arc(r,i,c,a,o,!0),n.closePath(),n.moveTo(...t[8]),n.arc(r,i,u,o,a),n.arc(r,i,u,a,o,!0),n.moveTo(...t[10]),n.lineTo(...t[11]),n.moveTo(...t[12]),n.arc(r,i,e,o,a),n.arc(r,i,e,a,o,!0)):(n.moveTo(...t[0]),n.lineTo(...t[1]),n.moveTo(...t[2]),n.lineTo(...t[3]),n.moveTo(...t[4]),n.lineTo(...t[5]),n.lineTo(...t[6]),n.lineTo(...t[7]),n.closePath(),n.moveTo(...t[8]),n.lineTo(...t[9]),n.moveTo(...t[10]),n.lineTo(...t[11]),n.moveTo(...t[12]),n.lineTo(...t[13])),n}(t,n);return Ob(new ap).style("d",i.toString()).style("stroke",e).style("fill",e).style("transform",r).call(Ib,o).node()}},fk=(pk.props={defaultEnterAnimation:"fadeIn"},a=>(t,e,n,r)=>{var r=r["defaultColor"],{color:e=r,transform:r,size:i}=e,[t,o]=t[0];return Ob(new ap).style("d",Jb(t,o,+i)).style("lineWidth",0).style("stroke",e).style("transform",r).style("fill",e).call(Ib,a).node()}),yk=(fk.props={defaultEnterAnimation:"fadeIn"},(...t)=>dk(...t)),gk=(yk.props={defaultEnterAnimation:"fadeIn"},(...t)=>ck(...t)),mk=(gk.props={defaultEnterAnimation:"fadeIn"},t=>{const a=I(t,[]);return(t,e,n,r)=>{var r=r["defaultColor"],{color:e=r,transform:r}=e,[t,i]=t;const o=P1();return o.moveTo(t[0],t[1]),o.bezierCurveTo(t[0]/2+i[0]/2,t[1],t[0]/2+i[0]/2,i[1],i[0],i[1]),Ob(new ap).style("d",o.toString()).style("stroke",e).style("transform",r).call(Ib,a).node()}});mk.props={defaultEnterAnimation:"fadeIn"};const vk=t=>{const{cornerRatio:a=1/3}=t,s=I(t,["cornerRatio"]);return(t,e,n,r)=>{var r=r["defaultColor"],{color:e=r,transform:r}=e,[t,i]=t;const o=function(t,e,n,r){const i=P1();var o,a;return pm(n)?(a=Nb(t,o=n.getCenter()),a=(Nb(e,o)-a)*r+a,i.moveTo(t[0],t[1]),Db(i,t,e,o,a),i.lineTo(e[0],e[1])):(dm(n)?(i.moveTo(t[0],t[1]),i.lineTo(t[0]+(e[0]-t[0])*r,t[1]),i.lineTo(t[0]+(e[0]-t[0])*r,e[1])):(i.moveTo(t[0],t[1]),i.lineTo(t[0],t[1]+(e[1]-t[1])*r),i.lineTo(e[0],t[1]+(e[1]-t[1])*r)),i.lineTo(e[0],e[1])),i}(t,i,n,a);return Ob(new ap).style("d",o.toString()).style("stroke",e).style("transform",r).call(Ib,s).node()}},bk=(vk.props={defaultEnterAnimation:"fadeIn"},t=>{const u=I(t,[]);return(t,e,n,r)=>{var i,o,a,r=r["defaultColor"],{color:e=r,transform:r}=e,[t,s]=t;const l=P1();return l.moveTo(t[0],t[1]),pm(n)?(n=n.getCenter(),l.quadraticCurveTo(n[0],n[1],s[0],s[1])):([[n,i],[o,a]]=[t,s],n=[(n+o)/2,(i+a)/2],o=Nb(t,s)/2,Db(l,t,s,n,o)),Ob(new ap).style("d",l.toString()).style("stroke",e).style("transform",r).call(Ib,u).node()}});bk.props={defaultEnterAnimation:"fadeIn"};const xk=t=>{const o=I(t,[]);return(t,e,n,r)=>{var r=r["defaultColor"],{color:e=r,transform:r}=e;const i=function(t,e){var n,[t,r,i,o]=t;const a=P1();return pm(e)?(n=Nb(e=e.getCenter(),t),a.moveTo(t[0],t[1]),a.quadraticCurveTo(e[0],e[1],i[0],i[1]),Db(a,i,o,e,n),a.quadraticCurveTo(e[0],e[1],r[0],r[1]),Db(a,r,t,e,n),a.closePath()):(a.moveTo(t[0],t[1]),a.bezierCurveTo(t[0]/2+i[0]/2,t[1],t[0]/2+i[0]/2,i[1],i[0],i[1]),a.lineTo(o[0],o[1]),a.bezierCurveTo(o[0]/2+r[0]/2,o[1],o[0]/2+r[0]/2,r[1],r[0],r[1]),a.lineTo(t[0],t[1]),a.closePath()),a}(t,n);return Ob(new ap).style("d",i.toString()).style("fill",e).style("stroke",e).style("transform",r).call(Ib,o).node()}};xk.props={defaultEnterAnimation:"fadeIn"};const wk=t=>{const a=I(t,[]);return(t,e,n,r)=>{var{defaultColor:r,defaultSize:i}=r,{color:r=r,size:i=i}=e,o=(t=t,pm(o=n)?(o=o.getCenter(),Z1()({startAngle:0,endAngle:2*Math.PI,outerRadius:Nb(t[0],o),innerRadius:Nb(t[1],o)})):eb().x(t=>t[0]).y(t=>t[1])(t)),t=(t=n,n=e.transform,pm(t)?([t,e]=t.getCenter(),`translate(${t}, ${e}) `+(n||"")):n);return Ob(new ap({})).style("d",o).style("stroke",r).style("lineWidth",i).style("transform",t).call(Ib,a).node()}};wk.props={defaultEnterAnimation:"fadeIn"};class Ek extends Xd{constructor(t){super(t)}connectedCallback(){this.draw()}attributeChangedCallback(){this.draw()}draw(){this.drawPath(),this.drawEndMarker()}drawPath(){var t=this.attributes,e=t["connectorPath"],t=I(t,["connectorPath","class"]);this.connector=Ob(this.connector||this.appendChild(new ap({}))).style("path",e).call(Ib,t).node()}drawEndMarker(){var{stroke:t,endMarker:e}=this.style;this.endMarker=this.endMarker||this.appendChild(new yw({})),this.endMarker.update(Object.assign({size:8,fill:t},e))}}function _k(t,e,n){return[["M",t-n,e+2*n],["L",t,e],["L",t+n,e+2*n],["Z"]]}function kk(t,e,n){return[["M",t,e],["L",t-n,e-2*n],["L",t+n,e-2*n],["Z"]]}function Tk(t,e,n){return[["M",t,e],["L",t+2*n,e-n],["L",t+2*n,e+n],["Z"]]}const Mk=t=>{const{direction:o="upward",offset:a=12,endMarker:s}=t,l=I(t,["direction","offset","endMarker"]);return(t,e,n,r)=>{var r=r["defaultColor"],{color:e=r,transform:r}=e,n=function(t,e,n,r){var[e,i]=e;return dm(t)?[e,[t="downward"===n?Math.min(e[0],i[0])-r:Math.max(e[0],i[0])+r,e[1]],[t,i[1]],i]:(t="downward"===n?Math.max(e[1],i[1])+r:Math.min(e[1],i[1])-r,[e,[e[0],t],[i[0],t],i])}(n,t,o,a),t=(t=n,eb().x(t=>t[0]).y(t=>t[1])(t)),[,,,i]=n;return Ob(new Ek({})).style("connectorPath",t).style("stroke",e).style("transform",r).style("endMarker",Object.assign({x:i[0],y:i[1],symbol:function(t){var[,,t,e]=t;return e[0]<t[0]?Tk:t[1]>e[1]?_k:kk}(n)},s)).call(Ib,l).node()}};function Sk(t,e,n,r){var i,o,{min:a,halfExtents:s}=function(t){const e=t.cloneNode(),n=t.getAnimations();return e.style.visibility="hidden",n.forEach(t=>{t=t.effect.getKeyframes();e.attr(t[t.length-1])}),t.parentNode.appendChild(e),t=e.getLocalBounds(),e.destroy(),t}(e.element),[a,l]=a;return pm(n)||fm(n)?({y:e,y1:o}=e,{startAngle:t,endAngle:e,innerRadius:o,outerRadius:i}=Fb(n,t,[e,o]),t=(t+e)/2,e=("inside"===r?(o+i)/2:i)+("inside"===r?0:12),{x:(o=n.getCenter())[0]+Math.sin(t)*e-a,y:o[1]-Math.cos(t)*e-l}):(i=2*s[0],n=2*s[1],"left"===r?{x:0,y:n/2}:"right"===r?{x:i,y:n/2}:"bottom"===r?{x:i/2,y:n}:"inside"===r?{x:i/2,y:n/2}:{x:i/2,y:0})}Mk.props={defaultEnterAnimation:"fadeIn"};const Ok=t=>{const{label:a={}}=t;return(t,e,n,r)=>{var i=a["position"],o=I(a,["position"]),r=r["labelFill"],{x:t,y:n}=Sk(t,e,n,i),e=e["label"],i="left"===(i=i)||"right"===i||"inside"===i||"outside"===i?{textBaseline:"middle"}:{dy:"-2px"};return Ob(new fp).style("x",t).style("y",n).style("text",""+e).style("fontSize",12).style("textAlign","center").style("fill",r).call(Ib,i).call(Ib,o).node()}},Pk=(Ok.props={},t=>{return Object.assign({},{defaultColor:"#5B8FF9",defaultCategory10:"category10",defaultCategory20:"category20",defaultSize:1,elementActiveStroke:"black",labelFill:"#595959",enter:{duration:300,fill:"both",delay:0},title:{fill:"rgba(0,0,0,0.85)",fontSize:14,fontWeight:"bold"},subtitle:{fill:"rgba(0,0,0,0.65)",fontSize:10}},t)});function Ak(r,t,e,i,o){var n;const a=(null==(n=r.getTicks)?void 0:n.call(r))||t,s=(null==(n=r.getFormatter)?void 0:n.call(r))||e;return pm(o)||dm(o)?a.map(t=>{var e,n=(null==(n=r.getBandWidth)?void 0:n.call(r,t))/2||0,n=r.map(t)+n;return{value:dm(o)&&null!=(e=r.getTicks)&&e.call(r)?1-n:n,text:s(t)}}):a.map(t=>{var e=(null==(e=r.getBandWidth)?void 0:e.call(r,t))/2||0,e=r.map(t)+e;n=e;var n=function(t,e,n){var{width:n,height:r}=n.getOptions();if("bottom"===e){const i=t[0],o=new Uv({domain:[0,n],range:[0,1]});return o.map(i)}const i=t[1],o=new Uv({domain:[0,r],range:[0,1]});return o.map(i)}(o.map("bottom"===i?[n,1]:[0,n]),i,o);return{value:ym(o)?e:n,text:s(t)}})}function Nk(t,e,n,r,i){return pm(n)||ym(n)?[]:t.map(t=>{return{points:function(t,e,n,r,i){var[r,o]=r,[i,a]=i,[n,s]=n.getSize();let l,u,c,h;return"bottom"===e||"top"===e?(l=u=r+(i-r)*t,c=o,h="bottom"===e?o-s:o+s):(c=h=o+(a-o)*t,l=r,u="left"===e?r+n:r-n),[[l,c],[u,h]]}(t.value,e,n,r,i)}})}Pk.props={};const Ck=t=>{const{position:s,formatter:l=t=>""+t}=t;return(t,e,n,r)=>{var[i,o]=n.getCenter(),{domain:e,bbox:a}=e,i=[i+a.x,o+a.y],o=Ak(t,e,l,s,n),e=Math.min(a.width,a.height)/2,n=t.getOptions().guide||{},a=n["grid"],t=a?function(t,e,n,r,i){const[o,a]=e;return t.map(({value:t})=>{t=(r-n)*t+n;return{points:[[o,a],[o+i*Math.cos(t*Math.PI/180),a+i*Math.sin(t*Math.PI/180)]]}})}(o,i,-90,270,e):[];return new Z2({style:N({},{center:i,radius:e,startAngle:-90,endAngle:270,ticks:o,axisLine:{style:{lineWidth:0,strokeOpacity:0}},grid:{items:t,lineStyle:{stroke:"#1b1e23",strokeOpacity:.1,lineDash:[0,0]}},tickLine:{len:4,style:{lineWidth:1,stroke:"#BFBFBF"}},label:{align:"tangential",tickPadding:2}},n)})}},Lk=t=>{const{position:m,title:v=!0,formatter:b=t=>""+t}=t;return(t,e,n,r)=>{var{domain:e,field:i,bbox:o}=e,{startPos:o,endPos:a,labelOffset:s,titlePosition:l,titlePadding:u,titleRotate:c,verticalFactor:h,titleOffsetY:d,label:p=!0,axisLine:f,tickLine:y=!0}=function(t,e,n){var r,{x:i,y:o,width:a,height:s}=e;return"bottom"===t?{startPos:[i,o],endPos:[i+a,o],labelOffset:8,titlePosition:"end",titlePadding:2,titleRotate:0,verticalFactor:1}:"left"===t||"centerHorizontal"===t?{startPos:[i+a,o],endPos:[i+a,o+s],titlePosition:"center",titlePadding:6,titleRotate:-90,labelAlign:"end",labelOffset:4,verticalFactor:-1}:"right"===t?{startPos:[i,o],endPos:[i,o+s],titlePosition:"center",titlePadding:16,titleRotate:-90,labelAlign:"start",labelOffset:4,verticalFactor:1}:"arcY"===t?([t,n]=n.getCenter(),r=Math.min(e.width,e.height)/2,{startPos:[t+e.x,n+e.y-r],endPos:[t+e.x,n+e.y],titlePosition:"start",titlePadding:4,titleOffsetY:0,titleRotate:-90,labelOffset:4,verticalFactor:-1,axisLine:!1}):{startPos:[i,o+s],endPos:[i+a,o+s],titlePosition:"end",titlePadding:2,titleRotate:0,labelOffset:4,verticalFactor:-1}}(m,o,n),e=Ak(t,e,b,m,n),l=t.getTicks?l:"center",g=t.getOptions().guide||{},{grid:t=!!t.getTicks}=g,t=t?Nk(e,m,n,o,a):[];return new F2({style:N(Object.assign({startPos:o,endPos:a,verticalFactor:h,ticks:e,label:p?{tickPadding:s,autoHide:!1,style:{}}:null,axisLine:f?{stroke:"#BFBFBF"}:null,grid:{items:t,lineStyle:{stroke:"#1b1e23",strokeOpacity:.05,lineDash:[0,0]}},tickLine:y?{len:4,style:{lineWidth:1,stroke:"#BFBFBF"}}:null},i&&v&&{title:{content:Array.isArray(i)?i[0]:i,titleAnchor:l,style:{fontWeight:"bold",fillOpacity:1,dy:d,textAnchor:l},titlePadding:u,rotate:c}}),g)})}},Ik=i=>{const o=i["position"];return(t,e,n,r)=>("arc"===o?Ck:Lk)(i)(t,e,n,r)},jk=(Ik.props={defaultPosition:"left",defaultSize:45,defaultOrder:0},t=>Ik(t)),Rk=(jk.props=Object.assign(Object.assign({},Ik.props),{defaultPosition:"bottom"}),t=>Ik(t)),Dk=(Rk.props=Object.assign(Object.assign({},Ik.props),{defaultPosition:"left"}),t=>{const{position:f,formatter:y=t=>""+t}=t;return(e,t,n,r)=>{const{domain:i,field:o,bbox:a}=t;var{x:t,y:s,width:l,height:u}=a,c=i.map(t=>({id:t,name:y(t),color:e.map(t)})),h=e.getOptions().guide||{},{cols:d,autoWrap:p}=h,h=I(h,["cols","autoWrap"]),d=p&&d?l/d:void 0,c=N({},Object.assign(Object.assign({items:c,x:t,y:s,orient:["right","left"].includes(f)?"vertical":"horizontal",maxWidth:l,maxHeight:u,autoWrap:p,maxItemWidth:d,itemWidth:d,spacing:[8,0],itemName:{style:{fontSize:12,fillOpacity:1,fill:"#000",fontWeight:"lighter",active:{fillOpacity:.8},inactive:{fill:"#d8d8d8"},unchecked:{fill:"#d8d8d8"}}}},o&&{title:{content:Array.isArray(o)?o[0]:o,style:{fontSize:12,fontWeight:"bold",fillOpacity:1}}}),{itemMarker:{size:8,symbol:"circle",style:{fillOpacity:1,inactive:{fillOpacity:.2},unchecked:{fill:"#d8d8d8",stroke:"#d8d8d8"}}},itemBackgroundStyle:{fill:"transparent"}}),h);return new XE({className:"category-legend",style:c})}}),Bk=(Dk.props={defaultPosition:"top",defaultOrder:1,defaultSize:40},t=>(e,t,n,r)=>{const{field:i,domain:o,bbox:a}=t;var{x:t,y:s}=a,l=(null==(l=e.getTicks)?void 0:l.call(e))||[],[u,c]=o;return new f_({style:Object.assign(Object.assign({x:t,y:s,rail:{length:120,size:12,ticks:l},min:u,max:c,indicator:null,handle:null},i&&{title:{content:Array.isArray(i)?i[0]:i,style:{fontSize:12}}}),{color:o.map(t=>e.map(t))})})});function Fk(e){return class extends Xd{constructor(t){super(t),this.descriptor=e}connectedCallback(){var t,e;null!=(e=(t=this.descriptor).render)&&e.call(t,this.attributes,this)}update(t={}){var e;this.attr(N({},this.attributes,t)),null!=(e=(t=this.descriptor).render)&&e.call(t,this.attributes,this)}}}function zk(t,e,n){return t.querySelector(e)?Ob(t).select(e):Ob(t).append(n)}Bk.props={defaultPosition:"top",defaultOrder:1,defaultSize:40};const Vk=Fk({render(t,e){const{text:n,style:r,subtitle:i,subtitleStyle:o}=t,a=zk(e,".title","text").attr("className","title").style("fontSize",14).style("textBaseline","top").style("text",n).call(Ib,r||{}).node();t=a.getLocalBounds();zk(e,".sub-title","text").attr("className","sub-title").style("y",t.max[1]+((null===o||void 0===o?void 0:o.spacing)||0)).style("fontSize",12).style("textBaseline","top").call(t=>{if(!i)return t.node().remove();t.node().attr(Object.assign({text:i},o))})}}),Gk=t=>{const{text:o,style:a,subtitle:s,subtitleStyle:l}=t;return(t,e,n,r)=>{var{x:e,y:i}=e.bbox;return new Vk({style:N({},{style:r.title,subtitleStyle:r.subtitle},{x:e,y:i,style:a,text:o,subtitle:s,subtitleStyle:l})})}};Gk.props={defaultPosition:"top",defaultOrder:2,defaultSize:30};class Hk{constructor(t){this.$value=t}static of(t){return new Hk(t)}call(t,...e){return this.$value=t(this.$value,...e),this}value(){return this.$value}}function Wk(t,e,n){return Hk.of({}).call(Yk,t).call(Yk,e).call(Yk,n).value()}function Yk(t,e){for(var[n,r]of Object.entries(e))void 0!==r&&(t[n]=e[n]);return t}const Uk=h=>{return(t,e,n,r,i)=>{const[o]=t;var t=o.getBoundingClientRect()["height"],{transform:a,fillOpacity:s,strokeOpacity:l,opacity:u}=o.style,[r,t]=dm(r)?[[0,t],"scale(1, 0.0001)"]:[[0,0],"scale(0.0001, 1)"],t=[{transform:(a+" "+t).trimStart(),fillOpacity:0,strokeOpacity:0,opacity:0},{transform:(a+" "+t).trimStart(),fillOpacity:s,strokeOpacity:l,opacity:u,offset:.01},{transform:(a+" scale(1, 1)").trimStart()}];o.setOrigin(r);const c=o.animate(t,Wk(i,n,h));return c.finished.then(()=>o.setOrigin(0,0)),c}},qk=h=>{return(t,e,n,r,i)=>{const[o]=t;var t=o.getBoundingClientRect()["height"],{transform:a,fillOpacity:s,strokeOpacity:l,opacity:u}=o.style,[r,t]=dm(r)?[[0,t],"scale(1, 0.0001)"]:[[0,0],"scale(0.0001, 1)"],s=[{transform:(a+" scale(1, 1)").trimStart()},{transform:(a+" "+t).trimStart(),fillOpacity:s,strokeOpacity:l,opacity:u,offset:.99},{transform:(a+" "+t).trimStart(),fillOpacity:0,strokeOpacity:0,opacity:0}];o.setOrigin(r);const c=o.animate(s,Wk(i,n,h));return c.finished.then(()=>o.setOrigin(0,0)),c}},Xk=h=>{return(t,e,n,r,i)=>{const[o]=t;var t=o.getBoundingClientRect()["height"],{transform:a,fillOpacity:s,strokeOpacity:l,opacity:u}=o.style,[r,t]=dm(r)?[[0,0],"scale(0.0001, 1)"]:[[0,t],"scale(1, 0.0001)"],t=[{transform:(a+" "+t).trimStart(),fillOpacity:0,strokeOpacity:0,opacity:0},{transform:(a+" "+t).trimStart(),fillOpacity:s,strokeOpacity:l,opacity:u,offset:.01},{transform:(a+" scale(1, 1)").trimStart()}];o.setOrigin(r);const c=o.animate(t,Wk(i,n,h));return c.finished.then(()=>o.setOrigin(0,0)),c}},Zk=h=>{return(t,e,n,r,i)=>{const[o]=t;var t=o.getBoundingClientRect()["height"],{transform:a,fillOpacity:s,strokeOpacity:l,opacity:u}=o.style,[r,t]=dm(r)?[[0,0],"scale(0.0001, 1)"]:[[0,t],"scale(1, 0.0001)"],s=[{transform:(a+" scale(1, 1)").trimStart()},{transform:(a+" "+t).trimStart(),fillOpacity:s,strokeOpacity:l,opacity:u,offset:.99},{transform:(a+" "+t).trimStart(),fillOpacity:0,strokeOpacity:0,opacity:0}];o.setOrigin(r);const c=o.animate(s,Wk(i,n,h));return c.finished.then(()=>o.setOrigin(0,0)),c}},Kk=l=>(t,e,n,r,i)=>{const[o]=t;var{fillOpacity:t,strokeOpacity:a,opacity:s}=o.style;return o.animate([{fillOpacity:0,strokeOpacity:0,opacity:0},{fillOpacity:t,strokeOpacity:a,opacity:s}],Wk(i,n,l))},$k=(Kk.props={},l=>(t,e,n,r,i)=>{const[o]=t;var{fillOpacity:t,strokeOpacity:a,opacity:s}=o.style;return o.animate([{fillOpacity:t,strokeOpacity:a,opacity:s},{fillOpacity:0,strokeOpacity:0,opacity:0}],Wk(i,n,l))});function Jk(t,e){const n={};for(const i of e){var r=t.style[i];r&&(n[i]=r)}return n}function Qk(t,e){var[n,r,i,t]=function(t){var{min:t,max:e}=t.getLocalBounds(),[t,n]=t,[e,r]=e;return[t,n,e-t,r-n]}(t),o=Math.ceil(Math.sqrt(e/(t/i)));const a=[];var s=t/Math.ceil(e/o);let l=0,u=e;for(;0<u;){var c=Math.min(u,o),h=i/c;for(let t=0;t<c;t++){var d=n+t*h,p=r+l*s;a.push(function(t){var[t,e,n,r]=t;return`
2
+ M ${t} ${e}
3
+ L ${t+n} ${e}
4
+ L ${t+n} ${e+r}
5
+ L ${t} ${e+r}
6
+ Z
7
+ `}([d,p,h,s]))}u-=c,l+=1}return a}function tT(t,e,n,r){var i,o=pc(e),a=pc(n);return void 0===o||void 0===a?null:(i=["fill","stroke","fillOpacity","strokeOpacity","opacity","lineWidth"],o=[Object.assign({path:o},Jk(e,i)),Object.assign({path:a},Jk(n,i))],e=t.animate(o,r),t.style.transform="scale(1, 1)",t.style.transform="none",e)}$k.props={};const eT=y=>(t,e,n,r,i)=>{[o="pack"]=[y.split];var o="function"==typeof o?o:Qk,i=Wk(i,n,y),n=t["length"],a=e["length"];if(1===n&&1===a||1<n&&1<a)return[s]=t,[u]=e,tT(s,s,u,i);if(1===n&&1<a){var[s]=t;{var l=s,u=e,c=i,s=o;l.style.visibility="hidden";const p=s(l,u.length);return u.map((t,e)=>{return tT(t,new ap({style:{path:p[e],fill:l.style.fill}}),t,c)})}}if(1<n&&1===a){var[n]=e;{var a=t,h=n,d=i;const f=(e=o)(h,a.length);var{fillOpacity:e,strokeOpacity:t,opacity:n}=h.style,e=h.animate([{fillOpacity:0,strokeOpacity:0,opacity:0},{fillOpacity:0,strokeOpacity:0,opacity:0,offset:.99},{fillOpacity:e,strokeOpacity:t,opacity:n}],d);return[...a.map((t,e)=>{return tT(t,t,new ap({style:{path:f[e],fill:h.style.fill}}),d)}),e]}}return null},nT=(eT.props={},()=>t=>{const{event:e,shared:n}=t;var{target:r,offsetX:i,offsetY:o}=e;const a=(r||{})["className"];return n.mouseX=i,n.mouseY=o,a&&a.includes("element")?n.selectedElements=[r]:n.selectedElements=[],t}),rT=(nT.props={},t=>{const a=t["multiple"];return t=>{const{event:e,shared:n}=t,r=e.composedPath();var i=r.find(t=>"legend-item"===t.className);const o=a&&n.triggerInfo||[];return i&&o.push({id:i.id,scaleType:"color"}),n.triggerInfo=o,t}});rT.props={};var r="object"==typeof jr&&jr&&jr.Object===Object&&jr,w="object"==typeof self&&self&&self.Object===Object&&self,Nt=r||w||Function("return this")(),oe=Nt.Symbol,Yt=Object.prototype,iT=Yt.hasOwnProperty,oT=Yt.toString,aT=oe?oe.toStringTag:void 0;var sT=Object.prototype.toString;var lT="[object Null]",uT="[object Undefined]",cT=oe?oe.toStringTag:void 0;function hT(t){if(null==t)return void 0===t?uT:lT;if(cT&&cT in Object(t)){var e=t,n=iT.call(e,aT),r=e[aT];try{var i=!(e[aT]=void 0)}catch(t){}var o=oT.call(e);return i&&(n?e[aT]=r:delete e[aT]),o}return sT.call(t)}function dT(t){return null!=t&&"object"==typeof t}var pT=Array.isArray;function fT(t){return t}var yT="[object AsyncFunction]",gT="[object Function]",mT="[object GeneratorFunction]",vT="[object Proxy]";function bT(t,e){for(var n=-1,r=null==t?0:t.length;++n<r&&!1!==e(t[n],n,t););return t}var xT=/^(?:0|[1-9]\d*)$/;var wT=9007199254740991;function ET(t){return"number"==typeof t&&-1<t&&t%1==0&&t<=wT}function _T(t){return null!=t&&ET(t.length)&&!function(t){var e;if(e=typeof t,null!=t&&("object"==e||"function"==e))return(e=hT(t))==gT||e==mT||e==yT||e==vT}(t)}var kT=Object.prototype;function TT(t){return dT(t)&&"[object Arguments]"==hT(t)}var zt=Object.prototype,MT=zt.hasOwnProperty,ST=zt.propertyIsEnumerable,OT=TT(function(){return arguments}())?TT:function(t){return dT(t)&&MT.call(t,"callee")&&!ST.call(t,"callee")};var jt="object"==typeof L&&L&&!L.nodeType&&L,Lt=jt&&"object"==typeof module&&module&&!module.nodeType&&module,Ht=Lt&&Lt.exports===jt?Nt.Buffer:void 0,PT=(Ht?Ht.isBuffer:void 0)||function(){return!1},AT={};AT["[object Float32Array]"]=AT["[object Float64Array]"]=AT["[object Int8Array]"]=AT["[object Int16Array]"]=AT["[object Int32Array]"]=AT["[object Uint8Array]"]=AT["[object Uint8ClampedArray]"]=AT["[object Uint16Array]"]=AT["[object Uint32Array]"]=!0,AT["[object Arguments]"]=AT["[object Array]"]=AT["[object ArrayBuffer]"]=AT["[object Boolean]"]=AT["[object DataView]"]=AT["[object Date]"]=AT["[object Error]"]=AT["[object Function]"]=AT["[object Map]"]=AT["[object Number]"]=AT["[object Object]"]=AT["[object RegExp]"]=AT["[object Set]"]=AT["[object String]"]=AT["[object WeakMap]"]=!1;var NT,Kt="object"==typeof L&&L&&!L.nodeType&&L,CT=Kt&&"object"==typeof module&&module&&!module.nodeType&&module,LT=CT&&CT.exports===Kt&&r.process,h=function(){try{var t=CT&&CT.require&&CT.require("util").types;return t?t:LT&&LT.binding&&LT.binding("util")}catch(t){}}(),n=h&&h.isTypedArray,IT=n?(NT=n,function(t){return NT(t)}):function(t){return dT(t)&&ET(t.length)&&!!AT[hT(t)]},jT=Object.prototype.hasOwnProperty;function RT(t,e){var n,r,i,o,a=pT(t),s=!a&&OT(t),l=!a&&!s&&PT(t),u=!a&&!s&&!l&&IT(t),c=a||s||l||u,h=c?function(t,e){for(var n=-1,r=Array(t);++n<t;)r[n]=e(n);return r}(t.length,String):[],d=h.length;for(n in t)!e&&!jT.call(t,n)||c&&("length"==n||l&&("offset"==n||"parent"==n)||u&&("buffer"==n||"byteLength"==n||"byteOffset"==n)||(o=void 0,o=typeof(r=n),(i=null==(i=d)?9007199254740991:i)&&("number"==o||"symbol"!=o&&xT.test(r))&&-1<r&&r%1==0&&r<i))||h.push(n);return h}DT=Object.keys,BT=Object;var DT,BT,FT=function(t){return DT(BT(t))},zT=Object.prototype.hasOwnProperty;function VT(t){if(n=(e=t)&&e.constructor,e!==("function"==typeof n&&n.prototype||kT))return FT(t);var e,n,r,i=[];for(r in Object(t))zT.call(t,r)&&"constructor"!=r&&i.push(r);return i}function GT(t){return(_T(t)?RT:VT)(t)}var HT,WT=function(t,e,n){for(var r=-1,i=Object(t),o=n(t),a=o.length;a--;){var s=o[HT?a:++r];if(!1===e(i[s],s,i))break}return t};YT=function(t,e){return t&&WT(t,e,GT)};var YT,UT,qT=function(t,e){if(null!=t){if(!_T(t))return YT(t,e);for(var n=t.length,r=UT?n:-1,i=Object(t);(UT?r--:++r<n)&&!1!==e(i[r],r,i););}return t};function XT(t,e){(pT(t)?bT:qT)(t,"function"==typeof(t=e)?t:fT)}function ZT(t,e,n){return e<=t&&t<=n}function KT(t){return Math.abs(t)<1e-6?0:t<0?-1:1}function $T(t,e,n){var r=!1,i=t.length;if(!(i<=2)){for(var o,a,s,l=0;l<i;l++){var u=t[l],c=t[(l+1)%i];if(a=c,((s=[e,n])[0]-(o=u)[0])*(a[1]-o[1])==(a[0]-o[0])*(s[1]-o[1])&&Math.min(o[0],a[0])<=s[0]&&s[0]<=Math.max(o[0],a[0])&&Math.min(o[1],a[1])<=s[1]&&s[1]<=Math.max(o[1],a[1]))return 1;0<KT(u[1]-n)!=0<KT(c[1]-n)&&KT(e-(n-u[1])*(u[0]-c[0])/(u[1]-c[1])-u[0])<0&&(r=!r)}return r}}function JT(t){for(var e,n,r=[],i=t.length,o=0;o<i-1;o++){var a=t[o],s=t[o+1];r.push({from:{x:a[0],y:a[1]},to:{x:s[0],y:s[1]}})}return 1<r.length&&(e=t[0],n=t[i-1],r.push({from:{x:n[0],y:n[1]},to:{x:e[0],y:e[1]}})),r}function QT(t,u){var c=!1;return XT(t,function(t){if(e=t.from,t=t.to,n=u.from,r=u.to,i=n.x-e.x,o=n.y-e.y,a=t.x-e.x,t=t.y-e.y,s=r.x-n.x,r=r.y-n.y,l=null,.001*(a*a+t*t)*(s*s+r*r)<(n=a*r-t*s)*n&&(ZT(r=(i*r-o*s)/n,0,1)&&ZT((i*t-o*a)/n,0,1)&&(l={x:e.x+r*a,y:e.y+r*t})),l)return!(c=!0);var e,n,r,i,o,a,s,l}),c}function tM(t){var e=t.map(function(t){return t[0]}),t=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,t),maxY:Math.max.apply(null,t)}}function eM(e,n){var t,r,i,o,a;return!(e.length<2||n.length<2)&&(t=tM(e),o=tM(n),t=t,!((o=o).minX>t.maxX||o.maxX<t.minX||o.minY>t.maxY||o.maxY<t.minY)&&(r=!1,XT(n,function(t){if($T(e,t[0],t[1]))return!(r=!0)}),!!r||(XT(e,function(t){if($T(n,t[0],t[1]))return!(r=!0)}),!!r||(i=JT(e),o=JT(n),a=!1,XT(o,function(t){if(QT(i,t))return!(a=!0)}),a))))}function nM(t){return t.selectAll(".element").nodes().map(n=>{const r=n["__data__"],{seriesX:i=[],seriesY:o=[],seriesTooltip:a=[],seriesTitle:s=[]}=r;return i.length?i.map((t,e)=>Object.assign(Object.assign({},n),{__data__:Object.assign(Object.assign({},r),{x:i[e],y:o[e],title:s[e],tooltip:a[e]})})):n}).flat()}function rM(t,e,n,r="x"){let i=n;if(e.getRange){var o=e.getRange();for(let t=0;t<o.length;t++){var a=o[t],s=e.invert(a),l=e.getBandWidth(s),s=(e.getStep(s)-l)/2;if(a-s<=n&&n<a+l+s){i=a;break}}}return i?cm(t,({__data__:t})=>Math.pow(t[r]-i,2)):null}const iM=t=>{const{trigger:_,filterBy:k,multiple:T,toggle:M}=t;return t=>{const{event:e,shared:n,selection:r,scale:i,transientLayer:o,coordinate:a}=t,s=nM(r),{selectedElements:l=[]}=n;n.selectedElements=[];let u=[];if("axis"===_){const v=r.select(".plot").node();var[c,h]=v.getBounds().min,{offsetX:d,offsetY:p}=e,[d]=a.invert([d-c,p-h]);const b=rM(s,i.x,d);u=b?s.filter(({__data__:{x:t}})=>t===b.__data__.x):[]}else if("triggerInfo"===_){var{triggerInfo:c=[]}=n;u=(p=s,f=i,y=c,p.filter(t=>{var e=t["__data__"];for(const n of y){const r=f[n.scaleType];if(r&&r.invert(e[n.scaleType])===n.id)return!0}}))}else if("rect-mask"===_){const x=o.selectAll(".mask").nodes();u=s.filter(n=>x.some(t=>{var e=n.getRenderBounds(),t=t.getRenderBounds();return!(t.min[0]>e.max[0]||t.max[0]<e.min[0]||t.min[1]>e.max[1]||t.max[1]<e.min[1])}))}else if("polygon-mask"===_){const w=o.selectAll(".mask").nodes();u=s.filter(r=>w.some(({__data__:{points:t}})=>{var{min:e,max:n}=r.getLocalBounds();return eM(t,[e,[e[0],n[1]],n,[n[0],e[1]]])}))}else{h=e["target"];const E=(h||{})["className"];E&&E.includes("element")&&(d=Ob(h).node()["__data__"],u=k?((e,n)=>{const t=r.selectAll(".element").nodes();return t.filter(({__data__:t})=>t[e]===n)})(k,d[k]):[h])}var f,y,g;[g,c=[]]=[u,l];const m=c.filter(e=>g.find(({__data__:{key:t}})=>t===e.__data__.key)).map(t=>t.__data__.key);return n.selectedElements=u,T&&l.forEach(t=>{m.includes(t.__data__.key)||n.selectedElements.push(t)}),M&&(n.selectedElements=n.selectedElements.filter(t=>!m.includes(t.__data__.key))),t}},oM=(iM.props={},t=>{const a=t["from"];return t=>{const{shared:e,selection:n,scale:r}=t,i=n.select(".category-legend").node();if("triggerInfo"===a)e.selectedLegendItems=e.triggerInfo.map(({id:t})=>i.getItem(t));else if("selectedElements"===a){const o=e.selectedElements.map(({__data__:{color:t}})=>r.color.invert(t));e.selectedLegendItems=o.map(t=>i.getItem(t))}return t}}),aM=(oM.props={},t=>{const n=t["state"];return t=>{const e=t["shared"];return e.currentState=n,t}}),sM=(aM.props={},t=>{const{clear:d,start:p}=t;return t=>{const{shared:e,selection:n,event:r}=t,i=n.select(".plot").node();var[o,a]=i.getBounds().min,{offsetX:s,offsetY:l}=r;if(d)e.points=[];else{var{points:u=[]}=e;const c=[...u];u=[s-o,l-a];if(p)e.points=[...c,[u]];else{const h=c.splice(-1,1)[0]||[];h.push(u),e.points=[...c,h]}}return t}}),lM=(sM.props={},t=>{const o=t["clear"];return t=>{const{shared:e,event:n}=t;var{offsetX:r,offsetY:i}=n;return o?e.currentPoint=null:e.currentPoint=[r,i],t}});lM.props={};const uM=t=>{const u=t["dim"];return t=>{const{shared:e,coordinate:l}=t,{points:n=[]}=e;return e.regions=n.map(i=>{{var o=l,a=u,o=o.getOptions(),s=K(i),i=$(i);let t=Math.min(s[0],i[0]),e=Math.min(s[1],i[1]),n=Math.abs(i[0]-s[0]),r=Math.abs(i[1]-s[1]);return"x"===a?(e=o.y,r=o.height):"y"===a&&(t=o.x,n=o.width),{x1:t,y1:e,x2:t+n,y2:e+r}}}),t}},cM=(uM.props={},l=>t=>{const{shared:e,theme:n,selectionLayer:r}=t,{selectedElements:i=[]}=e;var o=n["elementActiveStroke"];const{color:a=o,border:s}=l;o=i.map(t=>t.__data__);return r.selectAll(".highlight-element").remove(),r.selectAll(".highlight-element").data(o,t=>t.key).join(t=>t.append((t,e)=>i[e].cloneNode()).style("lineWidth",function(){return void 0!==s?s:+this.style.lineWidth||1}).style("stroke",a).attr("className","highlight-element")),t});function hM(t,e,n,r){n.includes(e)?(t.style.fillOpacity=1,t.style.lineWidth=+t.style.lineWidth||1,t.style.stroke=r):(t.style.fillOpacity=.45,t.style.stroke="transparent")}cM.props={};const dM=c=>{const h=c["clear"];return t=>{const{shared:e,selection:n,theme:r,selectionLayer:i}=t,{selectedElements:o=[]}=e;var a=r["elementActiveStroke"];const{color:s=a}=c,l=o.map(t=>t.__data__),u=n.selectAll(".element").each(function(){this.style.originVisibility||(this.style.originVisibility=this.style.visibility||"visible"),this.style.visibility=l.length?"hidden":this.style.originVisibility}).nodes();a=l.length?u.map(t=>t.__data__):[];return i.selectAll(".highlight-element").data(h?[]:a,(t,e)=>e).join(t=>t.append((t,e)=>u[e].cloneNode(!0)).attr("className","highlight-element").style("visibility","visible").each(function(t){hM(this,t,l,s)}),t=>t.each(function(t){hM(this,t,l,s)}),t=>t.remove()),t}};function pM(t){t.selectAll(".tooltip-crosshairs").each(function(){this.hide()})}function fM(t){t.selectAll(".tooltip-markers").each(function(){this.hide()})}function yM(t){t.selectAll(".tooltip").each(function(){this.hide()}),pM(t),fM(t)}function gM(t,e,n={}){const{transientLayer:r,coordinate:i}=t;var o,a;e?(t=n.follow,n=I(n,["follow"]),{x:e,y:o,items:a}=e,t=function(t,e,n){let r,i;var o,a,s,{type:n="y",line:l={lineDash:[4,4],lineWidth:1},text:u=!1}=n;return pm(t)?(o=Nb(a=t.getCenter(),e),i={id:"circle-y",center:a,defaultRadius:o,type:"circle",text:u,lineStyle:l},r={id:"line-x",startPos:[a[0],a[1]],endPos:e,text:u,lineStyle:l}):({x:o,y:a,width:t,height:s}=t.getOptions(),r={id:"line-x",startPos:[o,e[1]],endPos:[o+t,e[1]],text:u,lineStyle:l},i={id:"line-y",startPos:[e[0],a],endPos:[e[0],a+s],text:u,lineStyle:l}),"x"===n?[r]:"xy"===n?[r,i]:[i]}(i,t?[e,o]:[a[0].x,a[0].y],n),r.selectAll(".tooltip-crosshairs").data(t,(t,e)=>e).join(t=>t.append(t=>{var e=t["type"],t=I(t,["type"]);const n="circle"===e?j_:N_;return new n({className:"tooltip-crosshairs",style:t})}),t=>t.each(function(t){this.update(t),this.show()}),t=>t.remove())):pM(r)}function mM(t,e){return Object.entries(t).filter(([t])=>t.startsWith(e)).map(([,t])=>t)}function vM(t,e){var n;return(null==(n=null==t?void 0:t.getBandWidth)?void 0:n.call(t,t.invert(e)))||0}function bM(t,e,n,r){const{shared:i,scale:u,coordinate:c}=t;var{mouseX:t,mouseY:o,selectedElements:a}=i;const s=r["defaultColor"],l=u["x"],h=a,d=h.map(t=>{const i=t["__data__"],{seriesX:o=[],seriesY:a=[],seriesTooltip:s=[],seriesTitle:l=[]}=i;var e;return o.length?o.map((t,e)=>{var[n,r]=c.map([o[e],a[e]]);return{x:n,y:r,datum:Object.assign(Object.assign({},i),{x:o[e],title:l[e],tooltip:s[e]})}}):([t,e]=function(t,e,n){const r=mM(t,"x"),i=(t=mM(t,"y"),e["x"]);return e=r.reduce((t,e)=>t+e+vM(i,e)/2,0),n.map([e/r.length,Math.min.apply(null,t)])}(i,u,c),{x:t,y:e,datum:i})}).flat(),p=c.invert([e,n])[0],f=cm(d,({datum:{x:t}})=>Math.pow(t+vM(l,t)/2-p,2));return f&&(r=d.filter(({datum:{x:t}})=>t===f.datum.x).map(t=>{const{datum:e,x:r,y:i}=t,{color:o=s,title:a}=e;return Object.entries(e).filter(([t])=>t.startsWith("tooltip")).map(([t,e])=>{var{field:t,title:t=t}=u[t].getOptions(),n="object"==typeof e&&!(e instanceof Date);return{x:r,y:i,title:a,color:o,name:t,value:n?e.value:void 0===e?e:""+e}}).filter(({value:t})=>void 0!==t)}).flat()).length?{x:t,y:o,title:r[0].title,items:r}:null}dM.props={};const xM=t=>{const{showCrosshairs:w,showMarkers:E}=t,_=I(t,["showCrosshairs","showMarkers"]);return t=>{const{scale:e,coordinate:n,theme:r,selection:i,shared:o,transientLayer:a}=t;var s=e["tooltip"];if(void 0===s)yM(a);else{var{mouseX:s,mouseY:l}=o;const m=i.select(".plot").node();var u=m.getRootNode().defaultView.getConfig().container,{x:c,y:h,width:d,height:p}=n.getOptions(),[f,y]=m.getBounds().min;const v=function(t,e,n){let r=t.select(".tooltip").node();return r||(r=new x_({className:"tooltip",style:{container:{x:0,y:0},items:[],bounding:n,position:"bottom-right",offset:[10,10],style:{".tooltip":{"max-width":"170px"},".tooltip-title":{overflow:"hidden","white-space":"nowrap","text-overflow":"ellipsis"}}}}),t.append(()=>r),e.appendChild(r.HTMLTooltipElement)),r}(a,u,{x:f+c,y:y+h,width:d,height:p});u=bM(t,s-f,l-y,r);u?({title:c,items:h}=u,v.update({x:s,y:l,title:c,position:"bottom-right",offset:[14,10],items:h}),v.show()):yM(a);{var[d,p,g={}]=[t,E?u:null,_.markers];const b=d["transientLayer"];if(p){const x=p["items"];d=x.map(t=>{var{x:t,y:e,color:n}=t;return Object.assign({cx:t,cy:e,fill:n,r:3,stroke:"#fff",lineWidth:1.5,zIndex:1},g)});b.selectAll(".tooltip-markers").data(d,(t,e)=>e).join(t=>t.append(t=>new Kd({className:"tooltip-markers",style:t})),t=>t.each(function(t){this.attr(t),this.show()}),t=>t.remove())}else fM(b)}gM(t,w?u:null,_.crosshairs)}return t}},wM=(xM.props={},()=>t=>{const{shared:e,update:n}=t;var r=e["updatedOptions"];return n(r),t}),EM=(wM.props={},t=>{const c=t["reset"];return t=>{const{shared:n,scale:e,options:r}=t,i=n["selectedElements"],o=(n.originTransform||(n.originTransform=r.marks[0].data.transform||[]),e)["x"],a=!!o.getBandWidth,s=i.map(t=>t.__data__.title),l=Math.min.apply(null,s),u=Math.max.apply(null,s);return n.updatedOptions=(()=>{if(c)r.marks[0].data.transform=n.originTransform;else if(0<s.length){const e=[...n.originTransform];var t=o.getOptions()["field"];e.push({type:"filterBy",fields:[t],callback:t=>a?s.includes(t):t>=l&&t<=u});const s=r.marks[0]["data"];Array.isArray(s)?r.marks[0].data={value:s,transform:e}:r.marks[0].data.transform=e}return r})(),t}});function _M(t,e,n){n.includes(e)?t.style.visibility=t.style.originVisibility:t.style.visibility="hidden"}EM.props={};const kM=()=>t=>{const{shared:e,selection:n,selectionLayer:r}=t,{selectedElements:i=[]}=e,o=i.map(t=>t.__data__),a=n.selectAll(".element").each(function(){this.style.originVisibility||(this.style.originVisibility=this.style.visibility||"visible"),this.style.visibility=o.length?"hidden":this.style.originVisibility}).nodes();var s=o.length?a.map(t=>t.__data__):[];return r.selectAll(".filtered-element").data(s,(t,e)=>e).join(t=>t.append((t,e)=>a[e].cloneNode(!0)).attr("className","filtered-element").each(function(t){_M(this,t,o)}),t=>t.each(function(t){_M(this,t,o)}),t=>t.remove()),t};kM.props={};const TM=t=>{const{items:u,state:c="active"}=t;return t=>{const{shared:e,selection:n}=t;if(u.includes("legendItem")){const{selectedLegendItems:o=[]}=e,a=n.select(".category-legend").node();if("highlight"===c){var r=a;var i=o;const s=(null==r?void 0:r.getItemsStates())||[];i.length?(s.forEach(({id:t})=>r.setItemState(t,"inactive",!0)),i.forEach(t=>t.setState("inactive",!1))):s.forEach(({id:t})=>r.setItemState(t,"inactive",!1))}else{const l=(null===a||void 0===a?void 0:a.getItemsStates())||[];l.forEach(({id:t})=>a.setItemState(t,c,!1)),o.forEach(t=>t.setState(c,!0))}}return t}},MM=(TM.props={},y=>t=>{const{event:e,selection:n,shared:r,options:i}=t;var{updatedOptions:o={}}=r,{offsetX:a,offsetY:s}=e;const l=n.select(".main").node();var{min:[u,c],max:[h,d]}=l.getBounds();if(a<u||h<a||(s<c||d<s))r.updatedOptions=N({},i);else{const p=a-u,f=s-c;r.updatedOptions=N(o,(()=>{const{coordinate:t=[]}=i;var e=t.findIndex(t=>t.type.startsWith("fisheye"));if(-1===e)return Object.assign(Object.assign({},i),{coordinate:[...t,Object.assign(Object.assign({type:"fisheye"},y),{focusX:p,focusY:f,isVisual:!0}),{type:"cartesian"}]});{var n=t[e],n=Object.assign(Object.assign(Object.assign({},n),y),{type:"fisheye",focusX:p,focusY:f,isVisual:!0});const r=[...t];return r.splice(e,1,n),t[e]=n,Object.assign(Object.assign({},i),{coordinate:r})}})())}return t}),SM=(MM.props={},t=>{const a=t["cursor"];return t=>{const{selection:e,event:n}=t;var r=n["target"];const i=e.node().getRootNode().defaultView,o=i.getContextService().getDomElement();return o.style.cursor=a||(null==(r=r.style)?void 0:r.cursor),t}});SM.props={};const OM={n:"ns-resize",e:"ew-resize",s:"ns-resize",w:"ew-resize",nw:"nwse-resize",se:"nwse-resize",ne:"nesw-resize",sw:"nesw-resize"};const PM=t=>{const{maskType:l,fill:u="#C5D4EB",fillOpacity:c=.3}=t;return t=>{const{shared:e,transientLayer:n}=t,{regions:r=[],points:i=[]}=e,o="polygon"===l?i:r.map(t=>{var{x1:t,y1:e,x2:n,y2:r}=t;return[[t,e],[n,e],[n,r],[t,r]]});var a=o.map((t,e)=>({draggable:!0,d:jb(P1(),t).toString(),fill:u,fillOpacity:c,stroke:u,lineWidth:.5,points:t,cursor:"move",index:e}));n.selectAll(".mask").data(a,(t,e)=>e).join(t=>t.append(t=>new ap({className:"mask",style:t})),t=>t.each(function(t){this.attr(t),this.dispatchEvent(new jd("maskChange"))}),t=>t.remove());const s="polygon"===(a=l)?[]:"rectX"===a?["w","e"]:"rectY"===a?["n","s"]:["n","e","s","w","ne","se","sw","nw"];a=r.map((t,e)=>{const{x1:n,y1:r,x2:i,y2:o}=t;return s.map(t=>({draggable:!0,x:t.includes("e")?i-3:n-3,y:t.includes("s")?o-3:r-3,width:"n"===t||"s"===t?i-n+6:6,height:"e"===t||"w"===t?o-r+6:6,className:"handle handle-"+t,fill:"transparent",type:t,cursor:OM[t],index:e}))}).flat();return n.selectAll(".handle").data(a,(t,e)=>e).join(t=>t.append(t=>{var e=t["className"],t=I(t,["className"]);return new dp({className:e,style:t})}),t=>t.each(function(t){this.attr(t)}),t=>t.remove()),t}},AM=(PM.props={},Fk({render(t,e){var{text:t,textStyle:n,fill:r,stroke:i,padding:o=[],radius:a}=t,[o,s=o,l=o,u=s]=o;const c=zk(e,".button-text","text").attr("className","button-text").style("x",u).style("y",o+(n.fontSize||12)/2).style("fontSize",12).style("textAlign","end").style("textBaseline","middle").style("fill","#3080d0").style("text",t).style("z-index",1).call(Ib,n).node();var{min:t,halfExtents:n}=c.getLocalBounds(),h=2*n[0],n=2*n[1];zk(e,".button-rect","rect").attr("className","button-rect").style("x",t[0]-u).style("y",t[1]-o).style("width",h+u+s).style("height",n+o+l).style("radius",a).style("fill",r).style("stroke",i).style("z-index",0)}}));const NM=t=>{const{hide:o,fill:a="#f7f7f7",stroke:s="#ccc",padding:l=[4,5,4,5],text:u="Reset",radius:c=4,textStyle:h={},position:d}=t;return t=>{const{transientLayer:e,coordinate:n}=t;var r={text:u,fill:a,stroke:s,textStyle:h,padding:l,radius:c},i=function(t,e,n){var{x:e,y:r,width:i}=e.getOptions(),[n,n=n]=n,o=[8,4];return"top-left"===t?{x:e+o[0],y:r+o[1],textStyle:{textAlign:"start"}}:{x:e+i-o[0]-n,y:r+o[1],textStyle:{textAlign:"end"}}}(d,n,l),r=N({},r,i);return e.selectAll(".button").data(o?[]:[r],(t,e)=>e).join(t=>t.append(t=>new AM({className:"button",style:t})),t=>t.each(function(t){this.update(t)}),t=>t.remove()),t}},CM=(NM.props={},{selection:1,n:0,e:1,s:0,w:-1,nw:-1,ne:1,se:1,sw:-1}),LM={selection:1,n:-1,e:0,s:1,w:0,nw:-1,ne:-1,se:1,sw:1},IM=()=>t=>{const{shared:i,event:e}=t,{target:o,offsetX:n,offsetY:r}=e;var[a=n,s=r]=i.currentPoint||[];if(o){const u=n-a,c=r-s;a=o.style["index"];if(2<=(null==(s=i.points[a])?void 0:s.length)&&0<=a){const h=i.points[a];if(o.className.includes("handle")){var s=o.style["type"],l=CM[s],s=LM[s];let[t,e]=K(h),[n,r]=$(h);l<0&&(n=Math.max(t+=u,n)),0<l&&(t=Math.min(t,n+=u)),s<0&&(r=Math.max(e+=c,r)),0<s&&(e=Math.min(e,r+=c)),i.points[a]=[[t,e],[n,r]]}else i.points[a]=h.map(([t,e])=>[t+u,e+c])}}return t},jM=(IM.props={},t=>{const{clear:p,fill:f="#CCD6EC",fillOpacity:y=.3}=t;return t=>{const{coordinate:n,event:e,scale:r,selection:i,transientLayer:o}=t;if(!pm(n)){const c=r.x,h=i.select(".plot").node();var[a,s]=h.getBounds().min,{offsetX:l,offsetY:u}=e,[l]=n.invert([l-a,u-s]);const d=[];a=rM(nM(i),c,l);if(!p&&a){u=a.__data__["x"],s=c.invert(u);let t=.01,e=.01;c.getBandWidth&&(l=c.getBandWidth(s),a=(c.getStep(s)-l)/2,t=a,e=l+a);var[s,l]=n.map([u-t,0]),[a,u]=n.map([u+e,1]);d.push({x:s,y:l,width:a-s,height:u-l})}return o.style("zIndex",-1).selectAll(".active-region").data(d,(t,e)=>e).join(t=>t.append("rect").attr("className","active-region").style("fill",f).style("fillOpacity",y).each(function(t){this.attr(t)}),t=>t.each(function(t){this.attr(t)}),t=>t.remove()),t}}}),RM=(jM.props={},t=>{const i=t["tip"];return t=>{const{shared:e,event:n}=t;var r=n["target"];return e.tip=null!==i&&void 0!==i?i:r.style.tip,t}}),DM=(RM.props={},(t="",e="")=>`<div style="
8
+ background-color:rgba(0,0,0,0.75);color:#fff;width:max-content;padding:4px;font-size:12px;border-radius:2.5px;
9
+ box-shadow:0 3px 6px -4px rgba(0,0,0,0.12), 0 6px 16px 0 rgba(0,0,0,0.08), 0 9px 28px 8px rgba(0,0,0,0.05);${e||""}
10
+ ">${t||""}</div>`),BM=(y={})=>{const g=y["htmlStyle"];return t=>{const{transientLayer:e,selection:n,shared:r}=t;var{mouseX:i,mouseY:o,tip:a}=r;const s=n.select(".plot").node();var[l,u]=s.getBounds().min,[c,h]=[8,8];let d=i-l+c,p=o-u+h;void 0!==y.x&&(d=y.x-l),void 0!==y.y&&(p=y.y-u);const f=e.node();return a?zk(f,".tip-popover",()=>new gp({className:"tip-popover",style:{innerHTML:DM("",g)}})).style("x",d).style("y",p).style("innerHTML",DM(a,g)):null!=(i=f.querySelector(".tip-popover"))&&i.remove(),t}},FM=(BM.props={},()=>({actions:[{action:"enter",events:["plot:mouseenter"]},{action:"hover",events:["plot:mousemove"]},{action:"leave",events:["plot:mouseleave"]}]})),zM=()=>({actions:[{action:"enter",events:["plot:touchstart"]},{action:"hover",events:["plot:touchmove"]},{action:"leave",events:["plot:touchend"]}]});function VM(o,t={"action.surfacePointSelection":nT,"action.elementSelection":iM,"action.recordState":aM,"action.recordPoint":sM,"action.recordCurrentPoint":lM,"action.recordRegion":uM,"action.activeElement":cM,"action.highlightElement":dM,"action.filterElement":kM,"action.legendItemSelection":oM,"action.triggerInfoSelection":rT,"action.setItemState":TM,"action.tooltip":xM,"action.fisheyeFocus":MM,"action.plot":wM,"action.filter":EM,"action.cursor":SM,"action.mask":PM,"action.button":NM,"action.move":IM,"action.activeRegion":jM,"action.recordTip":RM,"action.poptip":BM,"interactor.mousePosition":FM,"interactor.touchPosition":zM}){const[a]=GM("interactor",t),[g]=GM("action",t);return t=>{const{start:e=[],end:n=[],interactors:r=[]}=o(t),f=[...e,...n],i=r.map(a),y=tm(i.flatMap(({actions:t})=>t.flatMap(({action:e,events:t})=>t.map(t=>[t,e]))),t=>t[1]);return(t,e)=>{const n=function(t,e){const{view:n,update:r,container:i,options:o}=t,a=Ob(i),s=a.select(".plot").append("g").attr("className","selection").style("fill","transparent"),l=a.select(".plot").append("g").attr("className","transient").style("fill","transparent");return Object.assign(Object.assign({},n),{update:r,options:o,selection:a,selectionLayer:s,transientLayer:l,viewInstances:e,shared:{}})}(t,e),r=n["selection"];for(const{trigger:l,isEnable:u=()=>!0,action:c,throttle:h}of f){var i,o=[c].flat(1).map(t=>"object"==typeof t?t:{type:t}).map(g);const d=h?t=>vt(t,h.wait,h):t=>t,p=d(_b(o));for([i]of y.get(l)||[[l]]){var[a,s]=i.includes(":")?i.split(":"):[null,i];(a?r.selectAll("."+a):r).on(s,t=>{t=Object.assign({event:t},n);u(t)&&p(t)})}}}}}function GM(e,n){const r=t=>{return"string"!=typeof t?t:n[t=e+"."+t]||kb("Unknown Component: "+t)};return[t=>{var e=t["type"],t=I(t,["type"]);return r(e)(Object.assign({},t))},r]}const HM=VM(t=>({interactors:[{type:"mousePosition"},{type:"touchPosition"}],start:[{trigger:"hover",action:[{type:"elementSelection"},Object.assign({type:"activeElement"},t)]}],end:[{trigger:"leave",action:[{type:"elementSelection"},Object.assign({type:"activeElement"},t)]}]}));HM.props={};const WM=VM((t={})=>{var{singleMode:e=!1}=t;return{start:[{trigger:"plot:pointerdown",action:[{type:"elementSelection",multiple:!e,toggle:!0},Object.assign({type:"activeElement",border:2},t)]}]}});WM.props={};const YM=VM(t=>({interactors:[{type:"mousePosition"},{type:"touchPosition"}],start:[{trigger:"hover",action:[{type:"surfacePointSelection"},{type:"elementSelection",trigger:null!=t&&t.shared?"axis":"item"},Object.assign({type:"tooltip"},t)],throttle:{wait:50,leading:!0,trailing:!1}},{trigger:"leave",action:[{type:"elementSelection",clear:!0},Object.assign({type:"tooltip",hide:!0},t)]}]}));YM.props={};const UM=VM(t=>({interactors:[{type:"mousePosition"},{type:"touchPosition"}],start:[{trigger:"hover",throttle:{wait:50,leading:!0,trailing:!1},action:[Object.assign({type:"fisheyeFocus"},t),{type:"plot"}]}],end:[{trigger:"leave",action:[Object.assign({type:"fisheyeFocus"},t),{type:"plot"}]}]}));UM.props={};const qM=VM(t=>({start:[{trigger:"plot:pointermove",action:[{type:"elementSelection"},Object.assign({type:"highlightElement"},t)]}],end:[{trigger:"plot:pointerleave",action:[{type:"elementSelection"},Object.assign({type:"highlightElement"},t)]}]}));qM.props={};const XM=VM(t=>({start:[{trigger:"plot:pointermove",action:[{type:"elementSelection"},Object.assign({type:"highlightElement"},t),{type:"legendItemSelection",from:"selectedElements"},{type:"setItemState",items:["legendItem"],state:"highlight"}]}],end:[{trigger:"plot:pointerleave",action:[{type:"elementSelection"},Object.assign({type:"highlightElement"},t),{type:"legendItemSelection",from:"selectedElements"},{type:"setItemState",items:["legendItem"],state:"highlight"}]}]}));XM.props={};const ZM=VM(t=>({start:[{trigger:"plot:pointermove",action:[{type:"elementSelection",filterBy:"x"},Object.assign({type:"highlightElement"},t)]}],end:[{trigger:"plot:pointerleave",action:[{type:"elementSelection"},Object.assign({type:"highlightElement"},t)]}]}));ZM.props={};const KM=VM(t=>({start:[{trigger:"plot:pointermove",action:[{type:"elementSelection",filterBy:"color"},Object.assign({type:"highlightElement"},t)]}],end:[{trigger:"plot:pointerleave",action:[{type:"elementSelection"},Object.assign({type:"highlightElement"},t)]}]}));KM.props={};const $M=VM(t=>({start:[{trigger:"legend-item:pointermove",action:[{type:"triggerInfoSelection"},{type:"legendItemSelection",trigger:"triggerInfo"},{type:"setItemState",items:"legendItem",state:"active"},{type:"elementSelection",trigger:"triggerInfo"},{type:"activeElement"}]}],end:[{trigger:"legend-item:pointerleave",action:[{type:"triggerInfoSelection"},{type:"legendItemSelection",trigger:"triggerInfo"},{type:"setItemState",items:"legendItem",state:"active"},{type:"elementSelection",trigger:"triggerInfo"},{type:"activeElement"}]}]}));$M.props={};const JM=VM(t=>({start:[{trigger:"legend-item:pointermove",action:[{type:"triggerInfoSelection"},{type:"legendItemSelection",trigger:"triggerInfo"},{type:"setItemState",items:"legendItem",state:"highlight"},{type:"elementSelection",trigger:"triggerInfo"},{type:"highlightElement"}]}],end:[{trigger:"legend-item:pointerleave",action:[{type:"triggerInfoSelection"},{type:"legendItemSelection",trigger:"triggerInfo"},{type:"setItemState",items:"legendItem",state:"highlight"},{type:"elementSelection",trigger:"triggerInfo"},{type:"highlightElement"}]}]}));function QM(t){var t=t["event"],t=t["target"];return t&&(null==(t=t.className)?void 0:t.includes("button"))}JM.props={};const tS=VM(t=>{var t=t["brushType"],e="polygon"===t?"polygon":"rect",n="rectX"===t?"x":"rectY"===t?"y":"";return{start:[{trigger:"plot:pointermove",isEnable:t=>!QM(t),action:[{type:"cursor",cursor:"crosshair"}]},{trigger:"plot:pointermove",isEnable:t=>QM(t),action:[{type:"cursor",cursor:"pointer"},{type:"button"}]},{trigger:"plot:pointermove",isEnable:t=>"filtered"===t.shared.currentState&&!QM(t),action:[{type:"button",fill:"#f7f7f7"}]},{trigger:"plot:pointerdown",isEnable:t=>!QM(t),action:[{type:"recordPoint",clear:!0},{type:"recordPoint",start:!0},{type:"recordRegion",dim:n},{type:"recordState",state:"brushing"}]},{trigger:"plot:pointermove",isEnable:t=>"brushing"===t.shared.currentState,action:[{type:"recordPoint"},{type:"recordRegion",dim:n},{type:"mask",maskType:t}]},{trigger:"plot:maskChange",action:[{type:"elementSelection",trigger:e+"-mask"},{type:"highlightElement"}]},{trigger:"plot:pointerup",isEnable:t=>!QM(t),action:[{type:"recordState",state:null},{type:"elementSelection",trigger:e+"-mask"},{type:"filter"},{type:"plot"},{type:"recordState",state:"filtered"},{type:"recordPoint",clear:!0},{type:"recordRegion"},{type:"mask"},{type:"elementSelection",trigger:e+"-mask"},{type:"highlightElement"},{type:"button"}]},{trigger:"plot:click",isEnable:t=>QM(t),action:[{type:"button",hide:!0},{type:"filter",reset:!0},{type:"plot"},{type:"recordState",state:null}]}],end:[{trigger:"plot:pointerleave",action:[{type:"cursor",cursor:"default"}]}]}});function eS(t){var t=t["event"],t=t["target"];return t&&(null==(t=t.className)?void 0:t.includes("mask"))}function nS(t){var t=t["event"],t=t["target"];return t&&(null==(t=t.className)?void 0:t.includes("handle"))}function rS(t){return!eS(t)&&!nS(t)}function iS(t){return eS(t)||nS(t)}tS.props={};const oS=VM(t=>{var{brushType:t,multiple:e}=t,n="polygon"===t?"polygon":"rect";const r="rectX"===t?"x":"rectY"===t?"y":"";return{start:[{trigger:"plot:pointermove",isEnable:t=>rS(t),action:[{type:"cursor",cursor:"crosshair"}]},{trigger:"plot:pointermove",isEnable:t=>!rS(t),action:[{type:"cursor"}]},{trigger:"plot:pointerdown",isEnable:t=>rS(t),action:[e?null:{type:"recordPoint",clear:!0},{type:"recordPoint",start:!0},{type:"recordRegion",dim:r},{type:"recordState",state:"brushing"}].filter(t=>!!t)},{trigger:"plot:pointermove",isEnable:t=>"brushing"===t.shared.currentState&&!eS(t),action:[{type:"recordPoint"},{type:"recordRegion",dim:r},{type:"mask",maskType:t}]},{trigger:"plot:maskChange",action:[{type:"elementSelection",trigger:n+"-mask"},{type:"highlightElement"}]},{trigger:"plot:pointerup",isEnable:t=>"brushing"===t.shared.currentState,action:[{type:"recordState",state:null}]},{trigger:"plot:dragstart",isEnable:t=>iS(t),action:[{type:"recordCurrentPoint"}]},{trigger:"plot:drag",isEnable:t=>iS(t)&&t.shared.currentPoint,action:[{type:"move"},{type:"recordRegion",dim:r},{type:"mask",maskType:t},{type:"recordCurrentPoint"}]},{trigger:"plot:dragend",isEnable:t=>iS(t),action:[{type:"recordCurrentPoint",clear:!0}]}],end:[{trigger:"plot:pointerleave",action:[{type:"cursor",cursor:"default"}]},{trigger:"plot:click",isEnable:t=>2===t.event.detail&&!eS(t),action:[{type:"recordPoint",clear:!0},{type:"recordRegion"},{type:"mask"},{type:"elementSelection",trigger:n+"-mask"},{type:"highlightElement"}]}]}});oS.props={};const aS=VM(t=>{var t=t["brushType"],e="polygon"===t?"polygon":"rect",n="rectX"===t?"x":"rectY"===t?"y":"";return{start:[{trigger:"plot:pointerenter",action:[{type:"cursor",cursor:"crosshair"}]},{trigger:"plot:pointerdown",action:[{type:"recordPoint",clear:!0},{type:"recordPoint",start:!0},{type:"recordRegion",dim:n},{type:"recordState",state:"brushing"}]},{trigger:"plot:pointermove",isEnable:t=>"brushing"===t.shared.currentState,action:[{type:"recordPoint"},{type:"recordRegion",dim:n},{type:"mask",maskType:t}]},{trigger:"plot:maskChange",action:[{type:"elementSelection",trigger:e+"-mask"},{type:"highlightElement"}]},{trigger:"plot:pointerup",action:[{type:"recordState",state:null},{type:"elementSelection",trigger:e+"-mask"},{type:"filterElement"},{type:"highlightElement",clear:!0},{type:"recordPoint",clear:!0},{type:"recordRegion"},{type:"mask"}]}],end:[{trigger:"plot:pointerleave",action:[{type:"cursor",cursor:"default"}]}]}});aS.props={};const sS=VM((t={})=>({start:[{trigger:"plot:mousemove",action:[Object.assign({type:"activeRegion"},t)]},{trigger:"plot:mouseleave",action:[{type:"activeRegion",clear:!0}]}]}));sS.props={};const lS=VM(t=>({start:[{trigger:"mousemove",throttle:{wait:50,leading:!0,trailing:!1},action:[{type:"surfacePointSelection"},{type:"recordTip"},Object.assign({type:"poptip"},t)]}]}));function uS(n){return(t,...e)=>N({},n(t,...e),t)}function cS(n){return(t,...e)=>N({},t,n(t,...e))}function hS(t,e){var n;return t?Array.isArray(t)?t:({value:n=e}=t,t=I(t,["value"]),Object.assign(Object.assign({},t),{value:n})):e}lS.props={};const dS=()=>t=>{const e=t["children"];if(!Array.isArray(e))return[];const{x:n=0,y:r=0,width:i,height:o,data:a}=t;return e.map(t=>{var e=t["data"],t=I(t,["data"]);return Object.assign(Object.assign({},t),{data:hS(e,a),x:n,y:r,width:i,height:o})})},pS=(dS.props={},()=>e=>{const n=e["children"];if(!Array.isArray(n))return[];const{direction:t="row",ratio:r=n.map(()=>1),padding:i=0,data:o}=e;var[a,s,l,u]="col"===t?["y","height","width","x"]:["x","width","height","y"];const c=r.reduce((t,e)=>t+e),h=e[s]-i*(n.length-1);var d=r.map(t=>h*(t/c));const p=[];let f=e[a]||0;for(let t=0;t<d.length;t+=1){var y=n[t],g=y["data"],y=I(y,["data"]),g=hS(g,o);p.push(Object.assign({[a]:f,[s]:d[t],[u]:e[u]||0,[l]:e[l],data:g},y)),f+=d[t]+i}return p}),fS=(pS.props={},()=>t=>{const e=t["children"],n=I(t,["children"]);if(!Array.isArray(e))return[];const{data:r,scale:i={}}=n,o=I(n,["data","scale"]);t=e.map(t=>{var{data:e,scale:n}=t,t=I(t,["data","scale"]);return Object.assign({data:hS(e,r),scale:N({},i,n)},t)});return[Object.assign(Object.assign({},o),{marks:t,type:"standardView"})]}),yS=(fS.props={},()=>t=>{var{width:e,height:n,paddingLeft:r,paddingRight:i,paddingTop:o,paddingBottom:a,data:s,coordinate:l,theme:u,component:c,interaction:h,x:d,y:p,key:f,frame:y,title:g,labelLayout:m}=t,t=I(t,["width","height","paddingLeft","paddingRight","paddingTop","paddingBottom","data","coordinate","theme","component","interaction","x","y","key","frame","title","labelLayout"]);return[{type:"standardView",x:d,y:p,key:f,width:e,height:n,paddingLeft:r,paddingRight:i,paddingTop:o,paddingBottom:a,theme:u,coordinate:l,component:c,interaction:h,frame:y,title:g,labelLayout:m,marks:[Object.assign(Object.assign({},t),{key:f+"-0",data:s})]}]});function gS(r,i){return Object.entries(r).reduce((t,[e,n])=>(t[e]=i(n,e,r),t),{})}function mS(t){return t.map((t,e)=>e)}yS.props={};const vS=uS(t=>{const{encode:e,data:i,scale:o,shareSize:a=!1}=t;var{x:t,y:n}=e,r=(e,t)=>{if(void 0===e||!a)return{};const n=tm(i,t=>t[e]),r=(null==(t=null===o||void 0===o?void 0:o[t])?void 0:t.domain)||Array.from(n.keys());t=r.map(t=>n.has(t)?n.get(t).length:1);return{domain:r,flex:t}};return{scale:{x:Object.assign(Object.assign({paddingOuter:0,guide:void 0===t?null:{position:"top"}},void 0===t&&{paddingInner:0}),r(t,"x")),y:Object.assign(Object.assign({range:[0,1],paddingOuter:0,guide:void 0===n?null:{position:"right"}},void 0===n&&{paddingInner:0}),r(n,"y"))}}}),bS=uS(t=>{const{data:e,scale:n}=t,r=[t];let i,o;for(;r.length;){const{children:l,encode:u={},scale:n={}}=r.shift();var a=u["color"],s=n["color"];void 0!==a&&(i=a),void 0!==s&&(o=s),Array.isArray(l)&&r.push(...l)}var t=Object.assign({},o);o&&(o.guide=null);return{encode:{color:i},scale:{color:N({},t,{domain:void 0!==(t=null==(t=null===n||void 0===n?void 0:n.color)?void 0:t.domain)?t:void 0!==i?Array.from(new Set(e.map(t=>t[i]))):void 0,field:i,type:"ordinal"})}}}),xS=uS(()=>({animate:{enter:{type:"fadeIn"}}})),wS=cS(()=>({frame:!1,encode:{shape:"hollowRect"},style:{lineWidth:0}})),ES=cS(()=>({type:"grid"})),_S=cS(u=>{var t=u["data"];return{data:{type:"inline",value:t,transform:[{type:"connector",callback:()=>{const{data:t,encode:e}=u,{x:n,y:r}=e,i=n?Array.from(new Set(t.map(t=>t[n]))):[],o=r?Array.from(new Set(t.map(t=>t[r]))):[];if(i.length&&o.length){const a=[];for(const s of i)for(const l of o)a.push({[n]:s,[r]:l});return a}return i.length?i.map(t=>({[n]:t})):o.length?o.map(t=>({[r]:t})):void 0}}]}}}),kS=cS((t,d=function(t){t=t.points;return Lb(t)},w=function(o){return(t,e)=>{var{rowIndex:t,rowValuesLength:n,columnIndex:r,columnValuesLength:i}=t;return t!==n-1?TS(o,e):(t=e.length?void 0:null,N({title:r===i-1&&void 0,grid:t},o))}},E=function(r){return(t,e)=>{var{rowIndex:t,columnIndex:n}=t;return 0!==n?TS(r,e):(n=e.length?void 0:null,N({title:0===t&&void 0,grid:n},r))}},_={})=>{const{data:e,encode:n,children:p,scale:r,x:k=0,y:T=0,shareData:M=!1}=t,S=e["value"],{x:O,y:P}=n;t=r.color;const A=t["domain"];return{children:(t,e,n)=>{const{x:r,y:i}=e,{paddingLeft:f,paddingTop:y}=n,{domain:o,field:a}=r.getOptions(),{domain:s,field:l}=i.getOptions(),u=mS(t),g=t.map(d),c=t.map(({x:t,y:e})=>[r.invert(t),i.invert(e)]),h=c.map(([n,r])=>t=>{var{[a]:t,[l]:e}=t,t=void 0===O||t===n,e=void 0===P||e===r;return t&&e}),m=h.map(t=>S.filter(t)),v=M?nm(m,t=>t.length):void 0,b=c.map(([t,e])=>({columnField:a,columnIndex:o.indexOf(t),columnValue:t,columnValuesLength:o.length,rowField:l,rowIndex:s.indexOf(e),rowValue:e,rowValuesLength:s.length})),x=b.map(t=>Array.isArray(p)?p:[p(t)].flat(1));return u.flatMap(s=>{const[l,u,c,h]=g[s],d=b[s],p=m[s],t=x[s];return t.map(t=>{var{scale:e,key:n,facet:r=!0}=t,t=I(t,["scale","key","facet"]),i=null==(i=null==e?void 0:e.y)?void 0:i.guide,o=null==(o=null==e?void 0:e.x)?void 0:o.guide,a={x:{tickCount:O?5:void 0},y:{tickCount:P?5:void 0}},r=r?p:S,o={x:{guide:MS(o,w)(d,r)},y:{guide:MS(i,E)(d,r)},color:{guide:null,domain:A}};return Object.assign(Object.assign({key:n+"-"+s,data:r,x:l+f+k,y:u+y+T,width:c,height:h,paddingLeft:0,paddingRight:0,paddingTop:0,paddingBottom:0,frame:!!r.length,dataDomain:v,scale:N(a,e,o)},t),_)})})}}});function TS(t,e){return e.length?N({title:!1,tickLine:null,label:null,subTickLine:null},t):null}function MS(t,e){return"function"==typeof t?t:null===t?()=>null:e(t)}const SS=()=>t=>{return[Hk.of(t).call(ES).call(bS).call(xS).call(vS).call(wS).call(_S).call(kS).value()]},OS=(SS.props={},uS(t=>({scale:{x:{guide:null,paddingOuter:0,paddingInner:.1},y:{guide:null,range:[0,1],paddingOuter:0,paddingInner:.1}}}))),PS=cS(t=>{const{data:E,children:c,x:_=0,y:k=0}=t;return{children:(t,e,n)=>{const{x:r,y:i}=e,{paddingLeft:g,paddingTop:m}=n,{domain:o,field:a}=r.getOptions(),{domain:s,field:l}=i.getOptions(),u=mS(t),v=t.map(({points:t})=>Lb(t)),b=t.map(({x:t,y:e})=>[r.invert(t),i.invert(e)]),x=b.map(([t,e])=>({columnField:a,columnIndex:o.indexOf(t),columnValue:t,columnValuesLength:o.length,rowField:l,rowIndex:s.indexOf(e),rowValue:e,rowValuesLength:s.length})),w=x.map(t=>Array.isArray(c)?c:[c(t)].flat(1));return u.flatMap(l=>{const[u,c,h,d]=v[l],[p,f]=b[l],y=x[l],t=w[l];return t.map(t=>{var n,r,{scale:e,key:i,encode:o}=t,t=I(t,["scale","key","encode"]),a=null==(a=null==e?void 0:e.y)?void 0:a.guide,s=null==(s=null==e?void 0:e.x)?void 0:s.guide,s={x:{guide:("function"==typeof(r=s)?r:null===r?()=>null:(t,e)=>{var{rowIndex:t,rowValuesLength:n}=t;if(t!==n-1)return TS(r,e)})(y,E)},y:{guide:("function"==typeof(n=a)?n:null===n?()=>null:(t,e)=>{t=t.columnIndex;if(0!==t)return TS(n,e)})(y,E)}};return Object.assign({data:E,key:i+"-"+l,x:u+g+_,y:c+m+k,width:h,height:d,paddingLeft:0,paddingRight:0,paddingTop:0,paddingBottom:0,frame:!0,scale:N({color:{guide:null},x:{guide:{title:{titleAnchor:"center"}},tickCount:5,facet:!1},y:{guide:{title:{titleAnchor:"center"}},tickCount:5,facet:!1}},e,s),encode:N({},o,{x:p,y:f})},t)})})}}}),AS=t=>{var e=t["encode"],t=I(t,["encode"]);const{position:n=[],x:r=n,y:i=[...n].reverse()}=e,o=I(e,["position","x","y"]),a=[];for(const s of[r].flat(1))for(const l of[i].flat(1))a.push({$x:s,$y:l});return Object.assign(Object.assign({},t),{data:a,encode:Object.assign(Object.assign({},o),{x:"$x",y:"$y"})})};const NS=()=>t=>{return[Hk.of(t).call(ES).call(bS).call(PS).call(AS).call(xS).call(wS).call(OS).value()]},CS=uS(t=>({scale:{x:{guide:{type:"axisX"},paddingOuter:0,paddingInner:.1},y:{guide:null,range:[0,1],paddingOuter:0,paddingInner:.1}}})),LS=uS(t=>({coordinate:[{type:"polar"}]})),IS=t=>{var e=t["encode"],t=I(t,["encode"]),e=e["position"];return Object.assign(Object.assign({},t),{encode:{x:e}})};function jS(t){return t=>null}function RS(t){var t=t["points"],[t,e,n,r]=t,i=Nb(t,r),t=Ab(t,r),r=Ab(e,n),r=(e=r,r=Cb(r=t),e=Cb(e),r<e?e-r:2*Math.PI-(r-e)),e=1/Math.sin(r/2),i=i/(1+e),o=i*Math.sqrt(2),[n,a]=n,t=Cb(t)+r/2,r=i*e;return[n+r*Math.sin(t)-o/2,a+r*Math.cos(t)-o/2,o,o]}const DS=()=>t=>{return[Hk.of(t).call(ES).call(IS).call(bS).call(LS).call(_S).call(kS,RS,jS,jS,{frame:!1}).call(xS).call(wS).call(CS).value()]};const BS=()=>t=>{const{children:e=[],duration:a=1e3,iterationCount:l=1,direction:u="normal",easing:s="ease-in-out-sine"}=t,c=e.length;if(!Array.isArray(e)||0===c)return[];const n=e[0]["key"],h=e.map(t=>Object.assign(Object.assign({},t),{key:n})).map(t=>{{var e=a,n=s;const i=[t];for(;i.length;){const o=i.pop();o.animate=N({enter:{duration:e},update:{duration:e,type:"morphing",easing:n,fill:"both"},exit:{duration:e}},o.animate||{});var r=o["children"];Array.isArray(r)&&i.push(...r)}return t}});return function*(){let t=0,e;for(;"infinite"===l||t<l;){n=u,o=t,a=c,s=void 0,s=[0,a],a=[1-a,1];var[n,r]="normal"===n?s:"reverse"===n?a:"alternate"===n?o%2==0?s:a:"reverse-alternate"===n?o%2==0?a:s:void 0;for(let t=n;t<r;t+=1){var i=Math.abs(t);e!==i&&(yield h[i]),e=i}t++}var o,a,s}},FS=(BS.props={},()=>(t,e,n)=>{var r=t.length;if(0===r)return[];var{innerWidth:i,innerHeight:o}=n;let l=Math.ceil(Math.sqrt(e/(o/i))),u=i/l,c=Math.ceil(e/l),a=c*u;for(;a>o;)l+=1,u=i/l,c=Math.ceil(e/l),a=c*u;const h=o-c*u,d=c<=1?0:h/(c-1),[p,f]=c<=1?[(i-r*u)/(r-1),(o-u)/2]:[0,0];return t.map((t,e)=>{var[t,n,r,i]=Lb(t),o=e%l,e=Math.floor(e/l),a=o*u,s=(c-e-1)*u+h,r=u/r,i=u/i;return`translate(${a-t+p*o}, ${s-n-d*e-f}) scale(${r}, ${i})`})});function zS(t,e){if(null!==t)return{type:"column",value:t,field:e}}function VS(t,e){if(null!==t)return{type:"column",value:t,field:e,visual:!0}}function GS(t,e){return new Array(t.length).fill(e)}function HS(t,e){var t=t[e];return t?({value:e,field:t=null}=t,[e,t]):[null,null]}function WS(t,...e){for(const i of e){if("string"!=typeof i)return[i,null];var[n,r]=HS(t,i);if(null!==n)return[n,r]}return[null,null]}FS.props={};const YS=()=>(t,e)=>{var n=e["encode"],n=n["y1"];return void 0!==n?[t,e]:[t,N({},e,{encode:{y1:zS(GS(t,0))}})]};function US(t,e,n){const r=n["encode"],i=(n=t,(Array.isArray(n)?n:[n]).map(t=>{return[t,null==(t=HS(r,t))?void 0:t[0]]}).filter(([,t])=>Mb(t)));return Array.from(tm(e,e=>i.map(([,t])=>t[e]).join("-")).values())}function qS(t){var o,r;return Array.isArray(t)?(o=t,(i,t,e)=>(n,r)=>o.reduce((t,e)=>0!==t?t:Xg(i[n][e],i[r][e]),0)):"function"==typeof t?(r=t,(e,t,n)=>tO(t=>r(e[t]))):"series"===t?KS:"value"===t?$S:"sum"===t?JS:"maxIndex"===t?QS:()=>null}function XS(t,e){for(const n of t)n.sort(e)}function ZS(t,e){return(null==e?void 0:e.domain)||Array.from(new Set(t))}function KS(t,e,n){return tO(t=>n[t])}function $S(t,e,n){return tO(t=>e[t])}function JS(t,n,e){t=mS(t);const r=Array.from(tm(t,t=>e[+t]).entries()),i=new Map(r.map(([t,e])=>[t,e.reduce((t,e)=>t+ +n[e])]));return tO(t=>i.get(e[t]))}function QS(t,n,e){t=mS(t);const r=Array.from(tm(t,t=>e[+t]).entries()),i=new Map(r.map(([t,e])=>[t,rm(e,t=>n[t])]));return tO(t=>i.get(e[t]))}function tO(n){return(t,e)=>Xg(n(t),n(e))}YS.props={};const eO=(t={})=>{const{groupBy:m="x",orderBy:v,reverse:b=!1,y:x="y"}=t;return(t,e,n)=>{var{data:r,encode:i}=e,[o,a]=HS(i,"y"),[s,l]=HS(i,"y1"),[i]=WS(i,"series","color"),u=US(m,t,e);const c=qS(v);r=c(r,o,i);r&&XS(u,r);const h=new Array(t.length),d=new Array(t.length);for(const y of u){b&&y.reverse();var p=s?+s[y[0]]:0;let t=p,e=p;for(const g of y){var f=+o[g]-p;f<0?e=h[g]=(d[g]=e)+f:0<f?t=h[g]=(d[g]=t)+f:h[g]=d[g]=t}}i="y"===x?h:d;return[t,N({},e,{encode:{y:zS(i,a),y1:zS(d,l)}})]}};function nO(t){t=t.type;return"string"==typeof t&&["stackY","dodgeX","groupX"].includes(t)}eO.props={};const rO=s=>(t,e,n)=>{const{encode:r,transform:i=[]}=e;var o,a;return i.some(nO)||({x:o,y:a}=r,void 0===o||void 0===a)?[t,e]:(o=s["series"],a=o?["x","series"]:"x",eO({groupBy:a})(t,e,n))},iO=(rO.props={},()=>(t,e)=>{var n=e["encode"],r=n["title"];return void 0!==r?[t,e]:([r,n]=HS(n,"x"),[t,N({},e,{encode:{title:zS(r,n)}})])}),oO=(iO.props={},t=>{const a=t["channel"];return(t,e)=>{const o=e["encode"];var n=o["tooltip"];return void 0!==n?[t,e]:(n=Object.entries(o).filter(([t])=>t.startsWith(a)).flatMap(([t])=>{var e=new RegExp(a+"(\\d*)").exec(t)[1],[n,r]=HS(o,t);const i=[[t,zS(n)]];return n&&null!==r&&i.push(["tooltip"+e,zS(n,r)]),i}),[t,N({},e,{encode:Object.fromEntries(n)})])}}),aO=(oO.props={},()=>oO({channel:"position"})),sO=(aO.props={},()=>oO({channel:"y"})),lO=(sO.props={},()=>(t,e)=>{var n=e["encode"],n=n["x"];return void 0!==n?[t,e]:[t,N({},e,{encode:{x:zS(GS(t,0))}})]}),uO=(lO.props={},()=>(t,e)=>{var n=e["encode"],n=n["y"];return void 0!==n?[t,e]:[t,N({},e,{encode:{y:zS(GS(t,0))}})]}),cO=(uO.props={},()=>(t,e)=>{var n=e["encode"],n=n["size"];return void 0!==n?[t,e]:[t,N({},e,{encode:{size:VS(GS(t,3))}})]}),hO=(cO.props={},()=>(t,e)=>{var n=e["encode"],r=n["key"],n=I(n,["key"]);if(void 0!==r)return[t,e];const i=Object.values(n).map(({value:t})=>t);r=t.map(e=>i.filter(Array.isArray).map(t=>t[e]).join("-"));return[t,N({},e,{encode:{key:zS(r)}})]}),dO=(hO.props={},()=>(t,e)=>{var n=e["encode"],{series:r,color:i}=n;return void 0!==r||void 0===i?[t,e]:([r,i]=HS(n,"color"),[t,N({},e,{encode:{series:zS(r,i)}})])}),pO=(dO.props={},(t={})=>{const{groupBy:c="x",reverse:h=!1,orderBy:d}=t,p=I(t,["groupBy","reverse","orderBy"]);return(t,e)=>{var{data:n,encode:r,scale:i}=e,i=i["series"],[o]=HS(r,"y"),[r]=WS(r,"series","color"),a=ZS(r,i),i=US(c,t,e);const s=qS(d);n=s(n,o,r);n&&XS(i,n);const l=new Array(t.length);for(const u of i){h&&u.reverse();for(let t=0;t<u.length;t++)l[u[t]]=a[t]}return[t,N({},e,{scale:Object.assign({domain:a},p),encode:{series:zS(l)}})]}}),fO=(pO.props={},t=>{const{by:p=["x"]}=t;return(n,t)=>{const e=t["encode"];var r=e["enterDuration"];if(void 0===r)return[n,t];r=p.map(t=>[t,HS(e,t)[0]]);if(0===r.length)return[n,t];let i=[n];for(const[,c]of r){const h=[];for(const n of i){var o=Array.from(tm(n,t=>c[t]).values());h.push(...o)}i=h}const[a]=HS(e,"enterDuration");var[s]=WS(e,"enterDelay",GS(n,0));const l=new Array(n.length);for(let t=0,e=0;t<i.length;t++){const n=i[t];var u=nm(n,t=>+a[t]);for(const d of n)l[d]=+s[d]+e;e+=u}return[n,N({},t,{encode:{enterDuration:VS(a),enterDelay:VS(l)}})]}});fO.props={};const yO=(t={})=>{const{groupBy:d="x",basis:p="max"}=t;return(e,t)=>{const n=t["encode"];var r=I(n,["x"]);const i=Object.entries(r).filter(([t])=>t.startsWith("y")).map(([t])=>[t,HS(n,t)[0]]),o=i.map(([t])=>[t,new Array(e.length)]);r=US(d,e,t);const a={min:im,max:nm,first:t=>t[0],last:t=>t[t.length-1],mean:lm,extent:Kg,median:um,sum:hm,deviation:Zg}[p]||nm;for(const e of r){var s=e.flatMap(e=>i.map(([,t])=>+t[e])),l=a(s);for(const c of e)for(let t=0;t<i.length;t++){var[,u]=i[t];const[,h]=o[t];h[c]=+u[c]/l}}return[e,N({},t,{encode:Object.fromEntries(o.map(([t,e])=>[t,zS(e,HS(n,t)[1])]))})]}};function gO(t,e,n){if(null===t)return[-.5,.5];t=ZS(t,e);const r=new qm({domain:t,range:[0,1],padding:n});e=r.getBandWidth();return[-e/2,e/2]}yO.props={};const mO=(t={})=>{const{paddingX:l=0,paddingY:u=0}=t;return(t,e)=>{var{encode:n,scale:r}=e,{x:r,y:i}=r,[o]=HS(n,"x"),[n]=HS(n,"y");const a=gO(o,r,l),s=gO(n,i,u);o=t.map(()=>Sb(...s)),r=t.map(()=>Sb(...a));return[t,N({},e,{encode:{dy:zS(o),dx:zS(r)}})]}},vO=(mO.props={},(t={})=>{const{padding:o=0}=t;return(t,e)=>{var{encode:n,scale:r}=e,r=r["y"],[n]=HS(n,"y");const i=gO(n,r,o);n=t.map(()=>Sb(...i));return[t,N({},e,{encode:{dy:zS(n)}})]}}),bO=(vO.props={},(t={})=>{const{groupBy:y="x"}=t;return(e,t)=>{const n=t["encode"];var r=I(n,["x"]);const i=Object.entries(r).filter(([t])=>t.startsWith("y")).map(([t])=>[t,HS(n,t)[0]]),o=i.map(([t])=>[t,new Array(e.length)]);var a=US(y,e,t);const s=new Array(a.length);for(let t=0;t<a.length;t++){const e=a[t];var[l,u]=Kg(e.flatMap(e=>i.map(([,t])=>+t[e])));s[t]=(l+u)/2}var c=Math.max(...s);for(let t=0;t<a.length;t++){var h=c-s[t];const e=a[t];for(const p of e)for(let t=0;t<i.length;t++){var[,d]=i[t];const[,f]=o[t];f[p]=+d[p]+h}}return[e,N({},t,{encode:Object.fromEntries(o.map(([t,e])=>[t,zS(e,HS(n,t)[1])]))})]}});function xO(t,e){return[t[0]]}function wO(t,e){return[t[t.length-1]]}function EO(t,e){return[t[rm(t,t=>e[t])]]}function _O(t,e){return[t[function(t,e){let n,r=-1,i=-1;if(void 0===e)for(const a of t)++i,null!=a&&(n>a||void 0===n&&a>=a)&&(n=a,r=i);else for(var o of t)null!=(o=e(o,++i,t))&&(n>o||void 0===n&&o>=o)&&(n=o,r=i);return r}(t,t=>e[t])]]}bO.props={};const kO=(t={})=>{const{groupBy:s="series"}=t,l=I(t,["groupBy"]);return(t,e)=>{var n=e["encode"];const r=US(s,t,e);var[t,i]=Object.entries(l)[0];const[o]=HS(n,t),a="function"==typeof(n=i)?n:{first:xO,last:wO,max:EO,min:_O}[n]||xO;return[r.flatMap(t=>a(t,o)),e]}},TO=(kO.props={},(t={})=>{var e=t["selector"],t=I(t,["selector"]);return kO(Object.assign({x:e},t))}),MO=(TO.props={},(t={})=>{var e=t["selector"],t=I(t,["selector"]);return kO(Object.assign({y:e},t))});function SO(){return[(t,e)=>lm(t,t=>+e[t]),t=>"mean of "+t]}function OO(){return[(t,e)=>nm(t,t=>+e[t]),t=>"max of "+t]}function PO(){return[(t,e)=>t.length,t=>"count of "+t]}function AO(){return[(t,e)=>hm(t,t=>+e[t]),t=>"sum of "+t]}function NO(){return[(t,e)=>e[0],t=>"first of "+t]}function CO(){return[(t,e)=>e[t[t.length-1]],t=>"last of "+t]}MO.props={};const LO=(t={})=>{const o=I(t,["orderBy","reverse"]);return(t,e)=>{const{data:a,encode:s}=e,[n]=HS(s,"x"),l=n?Array.from(tm(t,t=>n[t]).values()):[t];var t=Object.entries(o).map(([t,e])=>{const[n,r]=function(t){if("function"==typeof t)return[t,null];const e={mean:SO,max:OO,count:PO,first:NO,last:CO,sum:AO}[t];if(e)return e();throw new Error(`Unknown reducer: ${t}.`)}(e),[i,o]=HS(s,t);return[t,zS(l.map(t=>n(t,null!==i&&void 0!==i?i:a)),(null===r||void 0===r?void 0:r(o))||o)]}),r=Object.keys(s).map(t=>{const[e,n]=HS(s,t);return[t,zS(l.map(t=>e[t[0]]),n)]}),i=l.map(t=>a[t[0]]);return[mS(l),N({},e,{data:i,encode:Object.fromEntries([...r,...t])})]}};LO.props={};var IO={},jO={},RO=34,DO=10,BO=13;function FO(t){return new Function("d","return {"+t.map(function(t,e){return JSON.stringify(t)+": d["+e+'] || ""'}).join(",")+"}")}function zO(t){var n=Object.create(null),r=[];return t.forEach(function(t){for(var e in t)e in n||r.push(n[e]=e)}),r}function VO(t,e){var t=t+"",n=t.length;return n<e?new Array(e-n+1).join(0)+t:t}function GO(t){var e,n=t.getUTCHours(),r=t.getUTCMinutes(),i=t.getUTCSeconds(),o=t.getUTCMilliseconds();return isNaN(t)?"Invalid Date":((e=t.getUTCFullYear())<0?"-"+VO(-e,6):9999<e?"+"+VO(e,6):VO(e,4))+"-"+VO(t.getUTCMonth()+1,2)+"-"+VO(t.getUTCDate(),2)+(o?"T"+VO(n,2)+":"+VO(r,2)+":"+VO(i,2)+"."+VO(o,3)+"Z":i?"T"+VO(n,2)+":"+VO(r,2)+":"+VO(i,2)+"Z":r||n?"T"+VO(n,2)+":"+VO(r,2)+"Z":"")}function HO(r){var e=new RegExp('["'+r+"\n\r]"),h=r.charCodeAt(0);function n(r,t){var e,n=[],i=r.length,o=0,a=0,s=i<=0,l=!1;function u(){if(s)return jO;if(l)return l=!1,IO;var t,e,n=o;if(r.charCodeAt(n)===RO){for(;o++<i&&r.charCodeAt(o)!==RO||r.charCodeAt(++o)===RO;);return(t=o)>=i?s=!0:(e=r.charCodeAt(o++))===DO?l=!0:e===BO&&(l=!0,r.charCodeAt(o)===DO&&++o),r.slice(n+1,t-1).replace(/""/g,'"')}for(;o<i;){if((e=r.charCodeAt(t=o++))===DO)l=!0;else if(e===BO)l=!0,r.charCodeAt(o)===DO&&++o;else if(e!==h)continue;return r.slice(n,t)}return s=!0,r.slice(n,i)}for(r.charCodeAt(i-1)===DO&&--i,r.charCodeAt(i-1)===BO&&--i;(e=u())!==jO;){for(var c=[];e!==IO&&e!==jO;)c.push(e),e=u();t&&null==(c=t(c,a++))||n.push(c)}return n}function i(t,n){return t.map(function(e){return n.map(function(t){return a(e[t])}).join(r)})}function o(t){return t.map(a).join(r)}function a(t){return null==t?"":t instanceof Date?GO(t):e.test(t+="")?'"'+t.replace(/"/g,'""')+'"':t}return{parse:function(t,o){var a,s;return(t=n(t,function(t,e){if(a)return a(t,e-1);var n,r,i;s=t,a=o?(r=o,i=FO(n=t),function(t,e){return r(i(t),e,n)}):FO(t)})).columns=s||[],t},parseRows:n,format:function(t,e){return[(e=null==e?zO(t):e).map(a).join(r)].concat(i(t,e)).join("\n")},formatBody:function(t,e){return i(t,e=null==e?zO(t):e).join("\n")},formatRows:function(t){return t.map(o).join("\n")},formatRow:o,formatValue:a}}const WO=t=>{const{value:r,callback:i=Eb,format:o,delimiter:a=","}=t;return()=>Ot(void 0,void 0,void 0,function*(){const t=yield fetch(r);var e;if("csv"===o)return e=yield t.text(),HO(a).parse(e,i);const n=yield t.json();return Array.isArray(n)?n.map(i):n})};WO.props={};const YO=t=>{const{fields:o,as:n=[]}=t;return t=>{if(!o||(e=o,0===Object.keys(e).length))return t;var e;const[r="key",i="value"]=n;return t.reduce((e,n)=>{for(let t=0;t<o.length;t++)e.push(Object.assign(Object.assign({},n),{[r]:o[t],[i]:n[o[t]]}));return e},[])}};YO.props={};const UO=t=>{const{fields:n=[],callback:r=function(t){return null!=t&&!Number.isNaN(t)}}=t;return t=>t.filter(e=>n.every(t=>r(e[t])))};function qO(t,e,n){return Math.min(n,Math.max(e,t))}UO.props={};const XO=i=>t=>{const{fields:e=[]}=i;let{start:n=0,end:r=t.length}=i;n=qO(n,0,t.length-1),r=qO(r,1,t.length),n>r&&([n,r]=[r,n]);return t.filter((t,e)=>e>=n&&e<r).map(n=>e.reduce((t,e)=>(e in n&&(t[e]=n[e]),t),{}))},ZO=(XO.props={},t=>{t=t.fields;return XO({fields:t})});ZO.props={};const KO=t=>{const r=t["map"];return t=>{var e;return r&&(e=r,0!==Object.keys(e).length)?t.map(t=>Object.entries(t).reduce((t,[e,n])=>(t[r[e]||e]=n,t),{})):t}},$O=(KO.props={},t=>{const{fields:i=[],order:r="ASC"}=t;return t=>{const n=(n,r)=>i.reduce((t,e)=>0!==t?t:n[e]<r[e]?-1:+(n[e]!==r[e]),0);var e="ASC"===r?n:(t,e)=>n(e,t);return[...t].sort(e)}}),JO=($O.props={},t=>{const e=t["value"];return()=>e}),QO=(JO.props={},t=>{const e=t["callback"];return t=>e?e(t):t});function tP(t){var{min:t,max:e}=t.getRenderBounds(),[t,n]=t,[e,r]=e;return[[t,n],[t,r],[e,r],[e,n]]}QO.props={};const eP=()=>n=>{const r=[];n.sort((t,e)=>t.style.priority-e.style.priority);for(let t=0;t<n.length;t++){const o=n[t];let e=!(o.style.visibility="visible");for(let t=0;t<r.length;t++){var i=r[t];if(eM(tP(o),tP(i))){o.style.visibility="hidden",e=!0;break}}e||r.push(o)}return n};function nP(){return{"data.fetch":WO,"data.inline":JO,"data.sortBy":$O,"data.filterBy":UO,"data.pick":ZO,"data.rename":KO,"data.subset":XO,"data.fold":YO,"data.connector":QO,"transform.maybeZeroY1":YS,"transform.maybeZeroX":lO,"transform.maybeStackY":rO,"transform.maybeTitleX":iO,"transform.maybeTooltipY":sO,"transform.maybeTooltipPosition":aO,"transform.maybeSeries":dO,"transform.stackY":eO,"transform.dodgeX":pO,"transform.jitter":mO,"transform.jitterY":vO,"transform.symmetryY":bO,"transform.stackEnter":fO,"transform.normalizeY":yO,"transform.select":kO,"transform.selectX":TO,"transform.selectY":MO,"transform.groupX":LO,"transform.maybeSize":cO,"transform.maybeZeroY":uO,"transform.maybeKey":hO,"renderer.canvas":Sg,"coordinate.cartesian":Og,"coordinate.polar":Pg,"coordinate.helix":Ag,"coordinate.transpose":Ng,"coordinate.theta":jg,"coordinate.reflect":Cg,"coordinate.reflectX":Lg,"coordinate.reflectY":Ig,"coordinate.parallel":Rg,"coordinate.fisheye":Dg,"coordinate.fisheyeX":Bg,"coordinate.fisheyeY":Fg,"encode.constant":zg,"encode.field":Gg,"encode.transform":Vg,"encode.column":Hg,"mark.interval":qg,"mark.line":vm,"mark.point":bm,"mark.text":xm,"mark.grid":wm,"mark.area":Em,"mark.link":Mm,"mark.node":Tm,"mark.edge":km,"mark.image":Sm,"mark.polygon":_m,"mark.schema":Om,"mark.vector":Pm,"mark.annotation.text":Am,"mark.annotation.lineX":Cm,"mark.annotation.lineY":Nm,"mark.annotation.connector":Lm,"mark.annotation.range":Rm,"mark.annotation.rangeX":Dm,"mark.annotation.rangeY":Bm,"palette.category10":Fm,"palette.category20":zm,"scale.linear":f1,"scale.ordinal":y1,"scale.band":p1,"scale.identity":g1,"scale.point":m1,"scale.time":v1,"scale.log":b1,"scale.pow":x1,"scale.threshold":w1,"scale.quantile":E1,"scale.quantize":_1,"shape.rect":Vb,"shape.hollowRect":Gb,"shape.funnel":Hb,"shape.pyramid":Yb,"shape.line":qb,"shape.hv":Zb,"shape.vh":Kb,"shape.hvh":$b,"shape.smooth":Xb,"shape.bowtie":ex,"shape.cross":nx,"shape.diamond":rx,"shape.hexagon":ix,"shape.hollowBowtie":ox,"shape.hollowDiamond":ax,"shape.hollowHexagon":sx,"shape.hollowPoint":lx,"shape.hollowSquare":ux,"shape.hollowTriangle":cx,"shape.hollowTriangleDown":hx,"shape.hyphen":dx,"shape.linePoint":px,"shape.plus":fx,"shape.point":yx,"shape.square":gx,"shape.tick":mx,"shape.triangle":vx,"shape.triangleDown":bx,"shape.text":wx,"shape.area":lk,"shape.smoothArea":uk,"shape.edge":gk,"shape.smoothEdge":mk,"shape.vhvEdge":vk,"shape.arc":bk,"shape.link":ck,"shape.pointNode":fk,"shape.polygonNode":yk,"shape.image":hk,"shape.polygon":dk,"shape.ribbon":xk,"shape.box":pk,"shape.vector":xx,"shape.label":Ok,"shape.annotation.text":rk,"shape.annotation.badge":ok,"shape.annotation.line":wk,"shape.annotation.connector":Mk,"shape.annotation.range":Vb,"theme.light":Pk,"component.axisX":jk,"component.axisY":Rk,"component.legendCategory":Dk,"component.legendContinuous":Bk,"component.title":Gk,"animation.scaleInX":Uk,"animation.scaleOutX":qk,"animation.scaleInY":Xk,"animation.scaleOutY":Zk,"animation.fadeIn":Kk,"animation.fadeOut":$k,"animation.morphing":eT,"interaction.elementActive":HM,"interaction.elementSelected":WM,"interaction.elementHighlight":qM,"interaction.elementHighlightByX":ZM,"interaction.elementHighlightByColor":KM,"interaction.elementListHighlight":XM,"interaction.legendActive":$M,"interaction.legendHighlight":JM,"interaction.tooltip":YM,"interaction.fisheye":UM,"interaction.brush":tS,"interaction.brushHighlight":oS,"interaction.brushVisible":aS,"interaction.activeRegion":sS,"interaction.ellipsisText":lS,"composition.layer":dS,"composition.flex":pS,"composition.mark":yS,"composition.view":fS,"composition.rect":SS,"composition.matrix":NS,"composition.circle":DS,"composition.keyframe":BS,"adjust.pack":FS,"labelLayout.hideOverlap":eP}}function rP(e,n){const r=t=>{return"string"!=typeof t?t:n[t=e+"."+t]||kb("Unknown Component: "+t)};return[t=>{var e=t["type"],t=I(t,["type"]);return r(e)(Object.assign({},t))},r]}function iP(t,e,n){for(;t<e;)t+=2*Math.PI;for(;n<t;)t-=2*Math.PI;return t}function oP(t,e,n,r,i){var o=t[0],t=t[1],a=no();return o=[o,t],(t=a)[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=1,t[5]=0,t[6]=o[0],t[7]=o[1],t[8]=1,t}function aP(t,e,n,r,i){var o=new Uv({range:[e,e+r]}),a=new Uv({range:[n,n+i]});return{transform:function(t){var e=t[0],t=t[1];return[o.map(e),a.map(t)]},untransform:function(t){var e=t[0],t=t[1];return[o.invert(e),a.invert(t)]}}}function sP(t,e,n,r,i){return(0,t[0])(e,n,r,i)}function lP(t,e,n,r,i){return t[0]}function uP(t,e,n,r,i){var o=t[0],a=t[1],s=t[2],t=t[3],l=new Uv({range:[s,t]}),u=new Uv({range:[o,a]}),c=1<(s=i/r)?1:s,h=1<s?1/s:1;return{transform:function(t){var e=t[0],t=t[1],e=u.map(e),t=l.map(t);return[.5*(t*Math.cos(e)*c)+.5,.5*(t*Math.sin(e)*h)+.5]},untransform:function(t){var e=t[0],t=t[1],e=2*(e-.5)/c,t=2*(t-.5)/h,n=Math.sqrt(Math.pow(e,2)+Math.pow(t,2)),t=iP(Math.atan2(t,e),o,a);return[u.invert(t),l.invert(n)]}}}function cP(t,e,n,r,i){return{transform:function(t){var e=t[0];return[t[1],e]},untransform:function(t){var e=t[0];return[t[1],e]}}}function hP(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return mP.apply(void 0,vP([[-1,-1]],e,!1))}function dP(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return mP.apply(void 0,vP([[-1,1]],e,!1))}function pP(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return mP.apply(void 0,vP([[1,-1]],e,!1))}function fP(t,e,n,r,i){var o,t=t[0],a=no();return a=a,t=t,o=Math.sin(t),t=Math.cos(t),a[0]=t,a[1]=o,a[2]=0,a[3]=-o,a[4]=t,a[5]=0,a[6]=0,a[7]=0,a[8]=1,a}function yP(t,e,n,r,i){var o=t[0],a=t[1],s=t[2],l=(t[3]-s)/(+a/(2*Math.PI)+1),u=l/(2*Math.PI),c=new Uv({range:[s,s+.99*l]}),h=new Uv({range:[o,a]}),d=1<(t=i/r)?1:t,p=1<t?1/t:1;return{transform:function(t){var e=t[0],t=t[1],e=h.map(e),t=c.map(t);return[.5*(Math.cos(e)*(u*e+t)*d)+.5,.5*(Math.sin(e)*(u*e+t)*p)+.5]},untransform:function(t){var e=t[0],t=t[1],e=2*(e-.5)/d,t=2*(t-.5)/p,n=Math.sqrt(Math.pow(e,2)+Math.pow(t,2)),t=iP(Math.atan2(t,e)+Math.floor(n/l)*Math.PI*2,o,a),e=n-u*t;return[h.invert(t),c.invert(e)]}}}function gP(t,e,n,r,i){var s=t[0],l=t[1],o=t[2],t=t[3],u=new Uv({range:[o,t]});return{transform:function(t){for(var e=[],n=t.length,r=new qv({domain:new Array(n).fill(0).map(function(t,e){return e}),range:[s,l]}),i=0;i<n;i++){var o=t[i],a=r.map(i),o=u.map(o);e.push(a,o)}return e},untransform:function(t){for(var e=[],n=0;n<t.length;n+=2){var r=t[n+1];e.push(u.invert(r))}return e}}}var mP=function(t,e,n,r,i){var o=t[0],t=t[1],a=no();return o=[o,t],(t=a)[0]=o[0],t[1]=0,t[2]=0,t[3]=0,t[4]=o[1],t[5]=0,t[6]=0,t[7]=0,t[8]=1,t},vP=function(t,e,n){if(n||2===arguments.length)for(var r,i=0,o=e.length;i<o;i++)!r&&i in e||((r=r||Array.prototype.slice.call(e,0,i))[i]=e[i]);return t.concat(r||Array.prototype.slice.call(e))};function bP(t){return 1/Math.tan(t)}function xP(t,e,n,r,i){var o=bP(t[0]);return{transform:function(t){var e=t[0],t=t[1];return[e+t*o,t]},untransform:function(t){var e=t[0],t=t[1];return[e-t*o,t]}}}function wP(t,e,n,r,i){var o=bP(t[0]);return{transform:function(t){var e=t[0];return[e,t[1]+e*o]},untransform:function(t){var e=t[0];return[e,t[1]-e*o]}}}function EP(t,e,n,r,i){var o=t<e,i=(o?e-r:i-e)||i-r,r=o?-1:1;return r*i*(n+1)/(n+i/((t-e)*r))+e}function _P(t,e,n,r,i){var o=t<e,i=(o?e-r:i-e)||i-r;return i/(i*(n+1)/(t-e)-n*(o?-1:1))+e}function kP(t,e,n){return n?new Uv({range:[0,1],domain:[0,e]}).map(t):t}function TP(t,e,n,r,i){var o=t[0],a=t[1],t=t[2],s=kP(o,r,void 0!==t&&t);return{transform:function(t){var e=t[0],t=t[1];return[EP(e,s,a,0,1),t]},untransform:function(t){var e=t[0],t=t[1];return[_P(e,s,a,0,1),t]}}}function MP(t,e,n,r,i){var o=t[0],a=t[1],t=t[2],s=kP(o,i,void 0!==t&&t);return{transform:function(t){return[t[0],EP(t[1],s,a,0,1)]},untransform:function(t){return[t[0],_P(t[1],s,a,0,1)]}}}function SP(t,e,n,r,i){var o=t[0],a=t[1],s=t[2],l=t[3],t=t[4],u=kP(o,r,t=void 0!==t&&t),c=kP(a,i,t);return{transform:function(t){var e=t[0],t=t[1];return[EP(e,u,s,0,1),EP(t,c,l,0,1)]},untransform:function(t){var e=t[0],t=t[1];return[_P(e,u,s,0,1),_P(t,c,l,0,1)]}}}function OP(t,e,n,r,i){var o=t[0],a=t[1],s=t[2],l=t[3],t=void 0!==(t=t[4])&&t,u=new Uv({range:[0,r]}),c=new Uv({range:[0,i]}),h=t?o:u.map(o),d=t?a:c.map(a);return{transform:function(t){var e=t[0],t=t[1],n=u.map(e)-h,r=c.map(t)-d,i=Math.sqrt(n*n+r*r);return s<i?[e,t]:(e=EP(i,0,l,0,s),t=Math.atan2(r,n),i=h+e*Math.cos(t),r=d+e*Math.sin(t),[u.invert(i),c.invert(r)])},untransform:function(t){var e=t[0],t=t[1],n=u.map(e)-h,r=c.map(t)-d,i=Math.sqrt(n*n+r*r);return s<i?[e,t]:(e=_P(i,0,l,0,s),t=Math.atan2(r,n),i=h+e*Math.cos(t),r=d+e*Math.sin(t),[u.invert(i),c.invert(r)])}}}var PP=function(t,e,n){if(n||2===arguments.length)for(var r,i=0,o=e.length;i<o;i++)!r&&i in e||((r=r||Array.prototype.slice.call(e,0,i))[i]=e[i]);return t.concat(r||Array.prototype.slice.call(e))},AP=(NP.prototype.update=function(t){this.options=N({},this.options,t),this.recoordinate()},NP.prototype.clone=function(){return new NP(this.options)},NP.prototype.getOptions=function(){return this.options},NP.prototype.clear=function(){this.update({transformations:[]})},NP.prototype.getSize=function(){var t=this.options;return[t.width,t.height]},NP.prototype.getCenter=function(){var t=this.options,e=t.x,n=t.y;return[(2*e+t.width)/2,(2*n+t.height)/2]},NP.prototype.transform=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=this.options.transformations;return this.update({transformations:PP(PP([],n,!0),[PP([],t,!0)],!1)}),this},NP.prototype.map=function(t){return this.output(t)},NP.prototype.invert=function(t){return this.input(t)},NP.prototype.recoordinate=function(){this.output=this.compose(),this.input=this.compose(!0)},NP.prototype.compose=function(t){for(var e=(t=void 0===t?!1:t)?PP([],this.options.transformations,!0).reverse():this.options.transformations,n=t?function(t){return t.untransform}:function(t){return t.transform},r=[],o=[],i=function(t,e){return o.push((e=void 0===e?!0:e)?(i=t,function(t){for(var e=[],n=0;n<t.length-1;n+=2){var r=[t[n],t[n+1]],r=i(r);e.push.apply(e,r)}return e}):t);var i},a=0,s=e;a<s.length;a++){var l,u,c,h,d=s[a],p=d[0],d=d.slice(1),f=this.transformers[p];f&&(l=(h=this.options).x,u=h.y,c=h.width,h=h.height,f=f(PP([],d,!0),l,u,c,h),(d=f)instanceof Float32Array||d instanceof Array?r.push(f):(r.length&&(i(this.createMatrixTransform(r,t)),r.splice(0,r.length)),i(n(f)||xt,"parallel"!==p)))}return r.length&&i(this.createMatrixTransform(r,t)),function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return t?e.reduce(function(e,n){return function(t){return n(e(t))}},t):xt}.apply(void 0,o)},NP.prototype.createMatrixTransform=function(t,e){var n,r,i,o,a,s,l,u,c,h,d,p,f=no();return e&&t.reverse(),t.forEach(function(t){return ro(f,f,t)}),e&&(e=t=f,(p=new eo(9))[0]=e[0],p[1]=e[1],p[2]=e[2],p[3]=e[3],p[4]=e[4],p[5]=e[5],p[6]=e[6],p[7]=e[7],p[8]=e[8],p=(e=p)[0],n=e[1],r=e[2],i=e[3],o=e[4],a=e[5],s=e[6],l=e[7],u=(e=e[8])*o-a*l,(d=p*u+n*(c=-e*i+a*s)+r*(h=l*i-o*s))&&(t[0]=u*(d=1/d),t[1]=(-e*n+r*l)*d,t[2]=(a*n-r*o)*d,t[3]=c*d,t[4]=(e*p-r*s)*d,t[5]=(-a*p+r*i)*d,t[6]=h*d,t[7]=(-l*p+n*s)*d,t[8]=(o*p-n*i)*d)),function(t){t=[t[0],t[1],1];return zo(t,t,f),[t[0],t[1]]}},NP);function NP(t){this.options={x:0,y:0,width:300,height:150,transformations:[]},this.transformers={cartesian:aP,translate:oP,custom:sP,matrix:lP,polar:uP,transpose:cP,scale:mP,"shear.x":xP,"shear.y":wP,reflect:hP,"reflect.x":dP,"reflect.y":pP,rotate:fP,helix:yP,parallel:gP,fisheye:SP,"fisheye.x":TP,"fisheye.y":MP,"fisheye.circular":OP},this.update(t)}function CP(t){return void 0!==t.find(t=>"polar"===t.type)}function LP(t){return void 0!==t.find(t=>"helix"===t.type)}function IP(t){return t.filter(({type:t})=>"transpose"===t).length%2==1}function jP(t){return void 0!==t.find(t=>"theta"===t.type)}function RP(t,e,n,r,i,o,a){var s,l,u,c,h=t["scaleName"],t=function(t,e,n,r,i,o){var{name:a,field:s}=t,{field:s=s,guide:l={}}=e,u=function(t,e){var{scale:t,name:n,value:r,visual:i}=t,{type:e,domain:o,range:a}=e;return void 0!==t?t:void 0!==e?e:i||function(t){return t.some(t=>"object"==typeof t&&!(t instanceof Date)&&null!==t)}(r)?"identity":2<(o||a||[]).length?zP(n):void 0===o?GP(r)?zP(n):HP(r)?"time":"linear":GP(o)?zP(n):HP(r)?"time":"linear"}(t,e);return"string"!=typeof u?e:Object.assign(Object.assign(Object.assign({},e),function(t,e,n,r){var i=e["name"];switch(t){case"linear":case"time":case"log":case"pow":return function(t){var{interpolate:e=Iv,nice:n=!1,tickCount:r=10}=t;return Object.assign(Object.assign({},t),{interpolate:e,nice:n,tickCount:r})}(n);case"band":case"point":return function(t,e,n,r){if(void 0!==r.padding)return r;var t=function(t,e,n){return"enterDelay"===e||"enterDuration"===e?0:"band"===t?CP(n)||jP(n)?0:.1:"point"===t&&CP(n)?.5:0}(t,e,n),{paddingInner:e=t,paddingOuter:n=t}=r;return Object.assign(Object.assign({},r),{paddingInner:e,paddingOuter:n})}(t,i,r,n);default:return n}}(u,t,e,n)),{domain:function(t,e,n){var r=e["value"],e=n["domain"];if(void 0!==e)return e;switch(t){case"linear":case"time":case"log":case"pow":case"threshold":return function(t,e){var{zero:e=!1}=e;if(0===t.length)return[];let n=1/0,r=-1/0;for(const i of t)Mb(i)&&(n=Math.min(n,+i),r=Math.max(r,+i));return e?[Math.min(0,n),r]:[n,r]}(r,n);case"band":case"ordinal":case"point":return VP(r);case"quantile":return function(t){return VP(t).sort()}(r);default:return[]}}(u,t,e),range:function(t,e,n,r,i,o){var a=n["range"];if(void 0!==a)return a;const[s]=rP("palette",o),{name:l,value:u}=e,{defaultCategory10:c,defaultCategory20:h}=i,d={type:function(t){return Array.from(new Set(t))}(u).length<=10?c:h},{palette:p=d}=n,f=s(p);switch(t){case"linear":case"band":case"point":case"time":case"log":return function(t,e){return"enterDelay"===t?[0,1e3]:"enterDuration"==t?[300,1e3]:t.startsWith("y")||t.startsWith("position")?[1,0]:"color"===t?[e[0],function(t){return t[t.length-1]}(e)]:"size"===t?[1,10]:[0,1]}(l,f);case"ordinal":return"color"===l?f:r;default:return[]}}(u,t,e,r,i,o),guide:l,name:a,field:s,type:u})}(t,e,n,r,i,a),e=t["independent"];return e?t:o.has(h)?(n=o.get(h),r=h,i=t,{type:e,domain:s,range:l}=a=n,{type:i,domain:u,range:c}=i,"string"==typeof e&&"string"==typeof i&&(a.type=function(t,e,n){{if(YP(t,e,"linear","identity"))return"identity";if(YP(t,e,"band","point"))return"band";if(t!==e)throw new Error(`Incompatible scale type: ${t} !== ${e} for channel: `+n);return t}}(e,i,r),a.domain=function(t,e,n){switch(t){case"linear":case"pow":case"log":return UP(e,n);case"band":case"ordinal":return qP(e,n);default:return e}}(e,s,u),a.range=function(t,e,n){switch(t){case"linear":case"band":case"pow":case"log":return UP(e,n);case"ordinal":return qP(e,n);default:return e}}(e,l,c)),n):(o.set(h,t),t)}function DP(t,e){const n=t.map(t=>t[e]).filter(({facet:t=!0})=>t);var t=n.flatMap(t=>t.domain),r=n.every(BP)?Kg(t):n.every(FP)?Array.from(new Set(t)):null;if(null!==r)for(const i of n)i.domain=r}function BP(t){t=t.type;return"string"==typeof t&&["linear","log","pow","time"].includes(t)}function FP(t){t=t.type;return"string"==typeof t&&["band","point","ordinal"].includes(t)}function zP(t){return(t=t).startsWith("x")||t.startsWith("y")||t.startsWith("position")||t.startsWith("size")?"point":"ordinal"}function VP(t){return Array.from(new Set(t))}function GP(t){return t.some(t=>{t=typeof t;return"string"==t||"boolean"==t})}function HP(t){return t.some(t=>t instanceof Date)}function WP(t){return t.startsWith("x")||t.startsWith("y")||t.startsWith("position")||"enterDelay"===t||"enterDuration"===t||"updateDelay"===t||"updateDuration"===t||"exitDelay"===t||"exitDuration"===t}function YP(t,e,n,r){return t===n&&e===r||t===r&&e===n}function UP(t,e){var[t,n]=t,[e,r]=e;return[Math.min(+t,+e),Math.max(+n,+r)]}function qP(t,e){return Array.from(new Set([...t,...e]))}function XP(t,e,n){var{scale:r={},transform:i=[]}=e,e=I(e,["scale","transform"]);return[t,Object.assign(Object.assign({},e),{scale:r,transform:i})]}function ZP(t,o,a){return Ot(this,void 0,void 0,function*(){var t=a["library"],e=o["data"],[t]=rP("data",t),n=function(t){if(Array.isArray(t))return{type:"inline",value:t};var{type:e="inline"}=t,t=I(t,["type"]);return Object.assign(Object.assign({},t),{type:e})}(e),{transform:r=[]}=n;const i=[I(n,["transform"]),...r];n=yield _b(i.map(t))(e);return[Array.isArray(n)?mS(n):[],Object.assign(Object.assign({},o),{data:n})]})}function KP(t,e,n){var r,i,o=e["encode"];const a={};for([r,i]of Object.entries(o))if(Array.isArray(i))for(let t=0;t<i.length;t++){var s=""+r+(0===t?"":t);a[s]=i[t]}else a[r]=i;return[t,Object.assign(Object.assign({},e),{encode:a})]}function $P(t,e,n){const{encode:r,data:i}=e;var o=gS(r,t=>{var e,n;return function(t){if("object"!=typeof t||t instanceof Date)return;t=t.type;return Mb(t)}(t)?t:(e=i,{type:"function"==typeof(n=t)?"transform":"string"!=typeof n||void 0===(null==(e=null==e?void 0:e[0])?void 0:e[n])?"constant":"field",value:t})});return[t,Object.assign(Object.assign({},e),{encode:o})]}function JP(t,e,n){var r=e["encode"],r=gS(r,(t,e)=>{var n=t["type"];return"constant"!==n||WP(e)?t:Object.assign(Object.assign({},t),{visual:!0})});return[t,Object.assign(Object.assign({},e),{encode:r})]}function QP(t,e,n){const{encode:r,data:i}=e;n=n.library;const o=function(t){const[n]=rP("encode",t);return(t,e)=>void 0===e||void 0===t?null:Object.assign(Object.assign({},e),{type:"column",value:n(e)(t),field:function(t){var{type:t,value:e}=t;return"field"===t&&"string"==typeof e?e:null}(e)})}(n);n=gS(r,t=>o(i,t));return[t,Object.assign(Object.assign({},e),{encode:n})]}function tA(l,t,e){var n=t["encode"],t=I(t,["encode"]);const r=Object.entries(n);n=r.filter(([,t])=>{t=t.value;return Array.isArray(t[0])}).flatMap(([n,t])=>{const r=[[n,new Array(l.length).fill(void 0)]],i=t["value"],o=I(t,["value"]);for(let e=0;e<i.length;e++){var a=i[e];if(Array.isArray(a))for(let t=0;t<a.length;t++){const s=r[t]||[""+n+t,new Array(l).fill(void 0)];s[1][e]=a[t],r[t]=s}}return r.map(([t,e])=>[t,Object.assign({type:"column",value:e},o)])}),n=Object.fromEntries([...r,...n]);return[l,Object.assign(Object.assign({},t),{encode:n})]}function eA(y,g,m,v,b,x){return Ot(this,void 0,void 0,function*(){var[t,e]=yield function(s,l,u){return Ot(this,void 0,void 0,function*(){var t=u["library"],[t]=rP("transform",t);const{preInference:e=[],postInference:n=[]}=l,{transform:r=[]}=s;t=[XP,ZP,KP,$P,JP,QP,tA,...e.map(t),...r.map(t),...n.map(t)];let i=[],o=s;for(const a of t)[i,o]=yield a(i,o,u);return[i,o]})}(y,g,{library:x}),{data:n,encode:r,scale:i={}}=e;if(!1===Array.isArray(n))return null;const o=g["channels"],s=tm(Object.entries(r).filter(([,t])=>Mb(t)),([t])=>{return null==(t=/([^\d]+)\d*$/.exec(t))?void 0:t[1]}),a=o.filter(t=>{var{name:t,required:e}=t;if(s.has(t))return!0;if(e)throw new Error(`Missing encoding for channel: ${t}.`);return!1}).flatMap(a=>{var t=a["name"];const e=s.get(t);return e.map(t=>{var{independent:e=!1,name:n,scaleName:r}=i=a,i=I(i,["independent","name","scaleName"]),[t,o]=t;return Object.assign(Object.assign(Object.assign({},i),o),{name:t,scaleName:null!=r?r:e?t:n})})}),l={};var{coordinate:u=[]}=b;const c=tm(a,t=>t.scaleName);for(const[f,a]of c.entries()){var h=g["shapes"],d=function(t){const e={};for(const a of t){var{value:n=[],field:r}=e,{value:i=[],field:o}=a;Object.assign(e,a),e.value=[...n,...i],e.field=null==o?r:o}return e}(a),{[f]:p={}}=i;l[f]=RP(d,p,u,h,v,m,x)}return[Object.assign(Object.assign({},e),{scale:l}),Object.assign(Object.assign({},g),{channels:a,index:t})]})}function nA(t,n,e){var{component:r=[],coordinate:i=[],title:o,theme:a}=n;const[,s]=rP("component",e);var l,e=t.filter(({guide:t,name:e})=>null!==t&&(!function(t){const{marks:e=[]}=t;return e.some(t=>"object"==typeof t.adjust)}(n)||!WP(e)));const u=[...r];o&&(t=s("title")["props"],{defaultPosition:r,defaultOrder:t,defaultSize:l}=t,a=function(t){var{size:t,text:e,subtitle:n,style:r,subtitleStyle:i}=t;if(t)return t;r=null!=(t=null==r?void 0:r.fontSize)?t:14,t=null!=(t=null==i?void 0:i.fontSize)?t:12,i=(null==i?void 0:i.spacing)||0;return(e?r+4:0)+(n?t+i:0)}(N({size:l},a,l="string"==typeof o?{text:o}:o)),u.push(Object.assign({type:"title",position:r,order:t,size:a},l)));for(const g of e){var c,h,d,p,f,y=function(t,e){const{name:n,guide:r,type:i}=t,o=r["type"];if(void 0!==o)return o;if("color"===n)switch(i){case"ordinal":return"legendCategory";case"linear":return"legendContinuous";default:return null}return IP(e)&&CP(e)||LP(e)||jP(e)?null:n.startsWith("x")?IP(e)?"axisY":"axisX":n.startsWith("y")?IP(e)?"axisX":"axisY":n.startsWith("position")&&!CP(e)?"axisY":null}(g,i);null!==y&&(p=s(y)["props"],{defaultPosition:p,defaultSize:f,defaultOrder:c}=p,{guide:h,name:d}=g,{position:d=function(t,e,n,r,i){r=["left","right","top","bottom","centerHorizontal"].includes(r.position)?r.position:n;{if("axisY"===e&&function(t){return void 0!==t.find(t=>"parallel"===t.type)}(i))return null===(n=/position(\d*)/g.exec(t))||0==+n[1]?r:"centerHorizontal";if("axisX"===e&&CP(i)&&!IP(i)||"axisY"===e&&CP(i)&&IP(i)||"axisY"===e&&jP(i)||"axisY"===e&&LP(i))return"arc";if(CP(i)&&("axisX"===e||"axisY"===e))return"arcY";if("axisX"===e&&function(t){return void 0!==t.find(t=>"reflect"===t.type)}(i)||"axisX"===e&&function(t){return void 0!==t.find(t=>"reflectY"===t.type)}(i))return"top"}return r}(d,y,p,h,i),size:p=f,order:f=c}=h,u.push(Object.assign(Object.assign({},h),{position:d,order:f,size:p,type:y,scale:g})))}return u}function rA(t,e,n,r){const[i]=rP("scale",r),[o]=rP("component",r);var{scale:r,bbox:a}=t,t=I(t,["scale","bbox"]),s=r?i(r):null,{field:r,domain:l}=r||{},r={field:r,domain:l,bbox:a};const u=o(t);return u(s,r,e,n)}function iA(t,e){var t=function(t,e){const n=tm(t,t=>t.position),{paddingLeft:r,paddingRight:i,paddingBottom:o,paddingTop:a}=e,s={paddingBottom:o,paddingLeft:r,paddingTop:a,paddingRight:i};for(const c of["left","right","top","bottom"]){var l="padding"+function(t){return t.replace(/( |^)[a-z]/g,t=>t.toUpperCase())}(c);if(void 0===s[l])if(n.has(c)){const t=n.get(c);var u=t.reduce((t,{size:e})=>t+e,0);s[l]=u}else s[l]=30}return s}(t,e),{paddingLeft:n,paddingRight:r,paddingTop:i,paddingBottom:o}=t,{width:e,height:a,x:s=0,y:l=0}=e;return Object.assign(Object.assign({},t),{width:e,height:a,innerWidth:e-n-r,innerHeight:a-i-o,x:s,y:l})}function oA(t,e,n){const r=tm(t,t=>t.position);var{paddingLeft:t,paddingRight:i,paddingTop:o,paddingBottom:a,innerHeight:s,innerWidth:l,height:u,width:c}=n,h={top:[t,0,l,o,0,!0,Xg],right:[c-i,o,i,s,1,!1,Xg],bottom:[t,u-a,l,a,0,!1,Xg],left:[0,o,t,s,1,!0,Xg],centerHorizontal:[t,o,l,s,-1,null,null],arc:[t,o,c-t-i,u-o-a,-1,null,null],arcY:[t,o,c-t-i,u-o-a,-1,null,null]};for(const[b,t]of r.entries()){var d=h[b];if("centerHorizontal"===b)!function(e,t,n,r){const[,i,,o]=r,a=t["paddingLeft"],s=new Array(e.length+1).fill(0),l=n.map(s),u=l.filter((t,e)=>e%2==0).map(t=>t+a);for(let t=0;t<e.length;t++){const d=e[t];var c=u[t],h=u[t+1]-c;d.bbox={x:c,y:i,width:h,height:o}}}(t,n,e,d);else if("arc"===b||"arcY"===b){v=m=g=y=f=p=void 0;var p=t,f=d,[y,g,m,v]=f;for(let t=0;t<p.length;t++){const x=p[t];x.bbox={x:y,y:g,width:m,height:v}}}else!function(n,t){const[e,r,i,o,a,s,l]=t,[u,c,h,d,p,f,y,g]=0===a?["y",r,"x",e,"height",o,"width",i]:["x",e,"y",r,"width",i,"height",o],m=(n.sort((t,e)=>l(t.order,e.order)),s?c+f:c);for(let t=0,e=m;t<n.length;t++){const b=n[t];var v=b["size"];b.bbox={[u]:s?e-v:e,[h]:d,[p]:v,[y]:g},e+=v*(s?-1:1)}}(t,d)}}function aA(N,C,L){return Ot(this,void 0,void 0,function*(){const[r]=rP("composition",L),[t]=rP("interaction",L),e=new Set(Object.keys(L).map(t=>{return null==(t=/mark\.(.*)/.exec(t))?void 0:t[1]}).filter(Mb)),i=t=>{t=t.type;return"string"==typeof t&&e.has(t)?"mark":t};const o=t=>"standardView"===i(t);var n=t=>{if(o(t))return[t];var e=i(t);const n=r({type:e});return n(t)};const a=[],s=new Map,l=new Map,u=[N],c=[];for(;u.length;){var h=u.shift();if(o(h)){var d=l.get(h);const[_,k]=d?cA(d,h,L):yield lA(h,L),T=(s.set(_,h),a.push(_),k.flatMap(n));if(u.push(...T),T.every(o)){var p=yield Promise.all(T.map(t=>uA(t,L)));DP(d=(d=p).flatMap(t=>Array.from(t.keys())).map(t=>t.scale),"x"),DP(d,"y");for(let t=0;t<T.length;t++){var f=T[t],y=p[t];l.set(f,y)}}}else{d="mark"===i(h)?h:yield function(r,i){return Ot(this,void 0,void 0,function*(){var t={library:i},e=r["data"],n=I(r,["data"]);return null==e?r:([,{data:e}]=yield ZP(0,{data:e},t),Object.assign({data:e},n))})}(h,L);const M=n(d);Array.isArray(M)?u.push(...M):"function"==typeof M&&c.push(M())}}const g=new Map,m=[];C.selectAll(".view").data(a,t=>t.key).join(t=>t.append("g").attr("className","view").attr("id",t=>t.key).call(sA).each(function(t){hA(t,Ob(this),m,L),g.set(t,this)}),t=>t.call(sA).each(function(t){hA(t,Ob(this),m,L)}),t=>t.remove()),C.selectAll(".view").each(function(t){{var e=t,n=Ob(this),r=(m,L),i,o;const{markState:s,labelLayout:l}=e,u=[];for([i,o]of s.entries()){var a=i["key"];const c=n.select("#"+a),h=function(t,e,n,r){return dA("labelShape",t,e,n,r)}(i,o,e,r);c.selectAll(".element").each(function(t,e){if(void 0!==(null==t?void 0:t.label)){const n=h(t,e,this);t=this.getElementById(".label");t?(u.push(t),Tb(t,n)):(n.id="label",this.appendChild(n),u.push(n))}})}l&&l(u)}});var v=Array.from(g.entries()).map(([t,e])=>({view:t,container:e,options:s.get(t),update:function(i,o){return r=>Ot(this,void 0,void 0,function*(){var[t,e]=yield lA(r,o);hA(t,i,[],o);for(const n of e)aA(n,i,o)})}(Ob(e),L)}));for(const S of v){const N=S["options"];var b=N["interaction"];for(const O of function(t=[]){const n=[...t];return["tooltip","ellipsisText"].forEach(e=>{t.find(t=>t.type===e)||n.push({type:e})}),n}(b)){const P=t(O);P(S,v)}}const{width:x,height:w}=N;for(const A of c){var E=new Promise(e=>Ot(this,void 0,void 0,function*(){for(const t of A)yield aA(Object.assign({width:x,height:w},t),C,L);e()}));m.push(E)}return Promise.all(m)})}function sA(t){t.style("transform",t=>`translate(${t.layout.x}, ${t.layout.y})`)}function lA(t,e){return Ot(this,void 0,void 0,function*(){return cA(yield uA(t,e),t,e)})}function uA(c,h){return Ot(this,void 0,void 0,function*(){const[t]=rP("theme",h),[,e]=rP("mark",h);var{theme:n,marks:r}=c,i=t(yA(n));const o=new Map;var a=new Map;for(const u of r){var s,{type:l=kb("G2Mark type is required.")}=u,l=e(l)["props"],l=yield eA(u,l,a,i,c,h);l&&([l,s]=l,o.set(l,s))}return o})}function cA(t,e,n){const[r]=rP("mark",n);var[i]=rP("scale",n);const[o]=rP("adjust",n),[a]=rP("theme",n);var[s]=rP("labelLayout",n);const{key:l,frame:u,theme:c,labelLayout:h=[]}=e;var d=a(yA(c)),s=h.map(s).reduce((e,n)=>t=>n(e(t)),Eb);const R=Array.from(t.keys());var p,f,y=new Set(R.flatMap(t=>Object.values(t.scale))),y=nA(Array.from(y),e,n),g=iA(y,e),m=function(t,e,n){var[n]=rP("coordinate",n),{innerHeight:t,innerWidth:r}=t,{coordinate:e=[]}=e;const i=(e=e).find(t=>"cartesian"===t.type)?e:[...e,{type:"cartesian"}];return new AP({x:0,y:0,width:r,height:t,transformations:i.map(n).flat()})}(g,e,n),v=(oA(y,m,g),{});const b=[];for([p,f]of t.entries()){const{scale:_,children:k,dataDomain:T,adjust:M}=p;var{index:x,channels:w}=f,E=gS(_,i);Object.assign(v,E);const S=function(t,e){const n={};for(var{scaleName:r,value:i,name:o}of t){const a=e[r];n[o]=i.map(t=>a.map(t))}return n}(w,E),O=r(p),[P,A,N]=O(x,E,S,m),C=[],L=[];for(let t=0;t<P.length;t++){var D=P[t];const j=A[t];j.every(([t,e])=>Mb(t)&&Mb(e))&&(C.push(D),L.push(j))}w=T||C.length;const I=M?o(M)(A,w,g):[];x=C.map((t,e)=>{const n={points:L[e],transform:I[e]};for(const[r,i]of Object.entries(S))n[r]=i[t],N&&(n["series"+ut(r)]=N[e].map(t=>i[t]));return n}),w=(f.data=x,f.index=C,null===k||void 0===k?void 0:k(x,E,g));b.push(...w||[])}return[{layout:g,theme:d,coordinate:m,components:y,markState:t,key:l,frame:u,labelLayout:s,scale:v},b]}function hA(m,v,b,x){Ot(this,void 0,void 0,function*(){const{components:t,theme:n,layout:e,markState:r,coordinate:i,key:o,frame:a=!1}=m;v.selectAll(".component").data(t,(t,e)=>t.type+"-"+e).join(t=>t.append("g").style("zIndex",({zIndex:t})=>t||-1).attr("className","component").append(t=>rA(t,i,n,x)),t=>t.each(function(t){t=rA(t,i,n,x).attributes;const[e]=this.childNodes;e.update(Object.assign({},t))})),v.selectAll(".plot").data([e],()=>o).join(t=>t.append("rect").attr("className","plot").style("fill","transparent").call(mA,a).call(gA).call(vA,Array.from(r.keys())),t=>t.call(gA).call(vA,Array.from(r.keys())));for(var[s,l]of r.entries()){var u=l["data"];const{key:o,class:d}=s,p=(c=s,h=l,dA("shape",c,h,m,x)),f=(c=s,h=l,pA("enter",c,h,m,x)),y=(c=s,h=l,pA("update",c,h,m,x)),g=(c=s,h=l,pA("exit",c,h,m,x));s=function(t,e,n){const r=t.node().parentElement;return r.findAll(t=>t.style.facet===e).flatMap(t=>t.getElementsByClassName(n))}(v,d,"element"),l=v.select("#"+o).selectAll(".element").selectFacetAll(s).data(u,t=>t.key,t=>t.groupKey).join(t=>t.append(p).attr("className","element").transition(function(t){return f(t,[this])}),e=>e.call(t=>{const l=t.parent(),u=function(n){const r=new Map;return t=>{var e;return r.has(t)?r.get(t):(e=n(t),r.set(t,e),e)}}(t=>{var[t,e]=t.getBounds().min;return[t,e]});e.transition(function(t,e){n=this,r=l,i=u,n.__facet__&&(o=n.parentNode.parentNode,s=r.parentNode,[o,a]=i(o),[i,s]=i(s),o=`translate(${o-i}, ${a-s})`,i=n.style.transform,n.style.transform=(("none"===i?"":i)+" "+o).trimStart(),r.append(n));var n,r,i,o,a=p(t,e),s=y(t,[this],[a]);return null===s&&Tb(this,a),s})}),t=>t.transition(function(t){return g(t,[this])}).remove(),t=>t.append(p).attr("className","element").transition(function(t){var e=this["__fromElements__"],t=y(t,e,[this]);const n=new Pb(e,null,this.parentNode);return n.transition(t).remove(),t}),t=>t.transition(function(t){const e=new Pb([],this.__toData__,this.parentNode);var n=e.append(p).attr("className","element").nodes();return y(t,[this],n)}).remove()).transitions();b.push(...l)}var c,h})}function dA(a,t,e,n,r){const[s]=rP("shape",r);r="default"+ut(a);const{[r]:l,data:i}=e,u=i.map(t=>t.points),{theme:c,coordinate:h}=n,d=t["style"];return(t,e,n)=>{var r=t[a],i=t["points"],t=I(t,["symbol"==typeof a?a:a+"","points"]),t=Object.assign(Object.assign({},t),{index:e,element:n}),n="object"==typeof(e=r||l)?e:{type:e};const o=s(Object.assign(Object.assign({},n),d));return o(i,t,h,c,u)}}function pA(l,t,e,n,r){const[,i]=rP("shape",r),[u]=rP("animation",r);r=e.defaultShape;const{theme:o,coordinate:c}=n;e=`default${ut(l)}Animation`;const{[e]:h}=i(r).props,{[l]:d={}}=t.animate||{},{[l]:p={}}=o;return(t,e,n)=>{var{[l+"Type"]:t,[l+"Delay"]:r,[l+"Duration"]:i,[l+"Easing"]:o}=t,t=Object.assign({type:t||h},d);if(!t.type)return null;const a=u(t),s=a(e,n,{delay:r,duration:i,easing:o},c,p);return Array.isArray(s)?Promise.all(s.map(fA)):fA(s)}}function fA(t){return t.finished.then(()=>{t.cancel()})}function yA(t={type:"light"}){var{type:e="light"}=t;return Object.assign(Object.assign({},t),{type:e})}function gA(t){t.style("x",t=>t.paddingLeft).style("y",t=>t.paddingTop).style("width",t=>t.innerWidth).style("height",t=>t.innerHeight)}function mA(t,e){e&&t.style("lineWidth",1).style("stroke","black")}function vA(t,e){const n=t=>void 0!==t.class?""+t.class:"";t.each(function(){Ob(this).selectAll(".main").data(e,t=>t.key).join(t=>t.append("g").attr("className","main").attr("id",t=>t.key).style("facet",n).style("fill","transparent"),t=>t.style("facet",n),t=>t.remove())})}function bA(t,e={},n){const{width:r=640,height:i=480}=t,o=function(t){t=N({},t);const e=new Map([[t,null]]),n=new Map([[null,-1]]),r=[t];for(;r.length;){const l=r.shift();void 0===l.key&&(o=e.get(l),i=n.get(l),o=null===o?"0":o.key+"-"+i,l.key=o);var i,o,{children:a=[]}=l;if(Array.isArray(a))for(let t=0;t<a.length;t++){var s=a[t];e.set(s,l),n.set(s,t),r.push(s)}}return t}(t),{canvas:a=Sg({width:r,height:i,container:document.createElement("div")}),library:s=nP()}=e,l=(e.canvas=a,e.library=s,Ob(a.document.documentElement));return a.ready.then(()=>aA(Object.assign(Object.assign({},o),{width:r,height:i}),l,s)).then(n),"string"==typeof(t=a.getConfig().container)?document.getElementById(t):t}class xA{constructor(t={},e){this.parentNode=null,this.children=[],this.index=0,this.type=e,this.value=t}map(t=t=>t){t=t(pt(this.value));return this.value=t,this}attr(e,n){return void 0===n?this.value[e]:this.map(t=>(t[e]=n,t))}append(t){const e=new t({});return e.children=[],e.parentNode=this,e.index=this.children.length,this.children.push(e),e}call(t,...e){return t(this.map(),...e),this}}function wA(r){return t=>{for(const n of r){var e=n["type"];"value"===e?function(t,{name:e}){t.prototype[e]=function(t){return this.attr(e,t)}}(t,n):"array"===e?function(t,{name:r}){t.prototype[r]=function(t){if(Array.isArray(t)||void 0===t)return this.attr(r,t);var e=this.attr(r);const n=[...Array.isArray(e)?e:[]];return n.push(t),this.attr(r,n)}}(t,n):"object"===e?function(t,{name:r}){t.prototype[r]=function(t,e){if(H(t)||void 0===t)return this.attr(r,t);const n=pt(this.attr(r)||{});return n[t]=e,this.attr(r,n)}}(t,n):"node"===e?function(t,{name:e,ctor:n}){t.prototype[e]=function(){return this.append(n)}}(t,n):"container"===e&&function(t,{name:e,ctor:n}){t.prototype[e]=function(){return this.type=null,this.append(n)}}(t,n)}return t}}function EA(t){return Object.entries(t).map(([t,e])=>({type:"node",name:t,ctor:e}))}c=[{name:"encode",type:"object"},{name:"scale",type:"object"},{name:"data",type:"value"},{name:"key",type:"value"},{name:"class",type:"value"},{name:"transform",type:"array"},{name:"style",type:"object"},{name:"animate",type:"object"},{name:"frame",type:"value"},{name:"facet",type:"value"},{name:"adjust",type:"value"},{name:"coordinate",type:"array"},{name:"interaction",type:"array"},{name:"paddingLeft",type:"value"},{name:"paddingRight",type:"value"},{name:"paddingBottom",type:"value"},{name:"paddingTop",type:"value"}];let _A=class extends xA{constructor(){super({},"interval")}},kA=(_A=t([wA(c)],_A),class extends xA{constructor(){super({},"point")}}),TA=(kA=t([wA(c)],kA),class extends xA{constructor(){super({},"area")}}),MA=(TA=t([wA(c)],TA),class extends xA{constructor(){super({},"line")}}),SA=(MA=t([wA(c)],MA),class extends xA{constructor(){super({},"grid")}}),OA=(SA=t([wA(c)],SA),class extends xA{constructor(){super({},"vector")}}),PA=(OA=t([wA(c)],OA),class extends xA{constructor(){super({},"link")}}),AA=(PA=t([wA(c)],PA),class extends xA{constructor(){super({},"polygon")}});AA=t([wA(c)],AA);a=t([wA(c)],class extends xA{constructor(){super({},"image")}});let NA=class extends xA{constructor(){super({},"text")}},CA=(NA=t([wA(c)],NA),class extends xA{constructor(){super({},"schema")}}),LA=(CA=t([wA(c)],CA),class extends xA{constructor(){super({},"annotation.text")}}),IA=(LA=t([wA(c)],LA),class extends xA{constructor(){super({},"annotation.lineX")}}),jA=(IA=t([wA(c)],IA),class extends xA{constructor(){super({},"annotation.lineY")}}),RA=(jA=t([wA(c)],jA),class extends xA{constructor(){super({},"annotation.range")}}),DA=(RA=t([wA(c)],RA),class extends xA{constructor(){super({},"annotation.rangeX")}}),BA=(DA=t([wA(c)],DA),class extends xA{constructor(){super({},"annotation.rangeY")}}),FA=(BA=t([wA(c)],BA),class extends xA{constructor(){super({},"annotation.connector")}});FA=t([wA(c)],FA);u={interval:_A,point:kA,area:TA,line:MA,grid:SA,vector:OA,link:PA,polygon:AA,image:a,text:NA,schema:CA,annotationText:LA,annotationLineX:IA,annotationLineY:jA,annotationRange:RA,annotationRangeX:DA,annotationRangeY:BA,annotationConnector:FA};let zA=class extends xA{constructor(){super({},"view")}},VA=(zA=t([wA([{type:"value",name:"paddingLeft"},{type:"value",name:"paddingRight"},{type:"value",name:"paddingBottom"},{type:"value",name:"paddingTop"},{type:"value",name:"data"},{type:"value",name:"key"},{type:"array",name:"coordinate"},{type:"array",name:"interaction"},{type:"object",name:"theme"},...EA(u)])],zA),class extends xA{constructor(){super({},"layer")}}),GA=(VA=t([wA([{type:"value",name:"data"},{type:"value",name:"key"},...EA(u)])],VA),class extends xA{constructor(){super({},"flex")}}),HA=(GA=t([wA([{type:"value",name:"data"},{type:"value",name:"key"},{type:"value",name:"padding"},{type:"value",name:"ratio"},{type:"value",name:"direction"},...EA(u)])],GA),class extends xA{constructor(){super({},"rect")}}),WA=(HA=t([wA([{type:"value",name:"data"},{type:"value",name:"key"},{type:"array",name:"transform"},{type:"object",name:"scale"},{type:"object",name:"encode"},{type:"value",name:"paddingLeft"},{type:"value",name:"paddingRight"},{type:"value",name:"paddingBottom"},{type:"value",name:"paddingTop"},{type:"value",name:"shareData"},{type:"value",name:"shareSize"},...EA(u)])],HA),class extends xA{constructor(){super({},"circle")}}),YA=(WA=t([wA([{type:"value",name:"data"},{type:"value",name:"key"},{type:"array",name:"transform"},{type:"object",name:"scale"},{type:"object",name:"encode"},{type:"value",name:"paddingLeft"},{type:"value",name:"paddingRight"},{type:"value",name:"paddingBottom"},{type:"value",name:"paddingTop"},...EA(u)])],WA),class extends xA{constructor(){super({},"matrix")}}),UA=(YA=t([wA([{type:"value",name:"data"},{type:"value",name:"key"},{type:"array",name:"transform"},{type:"object",name:"scale"},{type:"object",name:"encode"},{type:"value",name:"paddingLeft"},{type:"value",name:"paddingRight"},{type:"value",name:"paddingBottom"},{type:"value",name:"paddingTop"},...EA(u)])],YA),class extends xA{constructor(){super({},"keyframe")}});UA=t([wA([{type:"value",name:"key"},{type:"value",name:"direction"},{type:"value",name:"easing"},{type:"value",name:"iterationCount"},{type:"value",name:"duration"},...EA(u)])],UA);var qA={view:zA,layer:VA,flex:GA,rect:HA,circle:WA,matrix:YA,keyframe:UA};for(const $A of Object.values(qA))wA(EA(qA))($A);const XA=nP();function ZA(t){var e=pt(t.value);return Object.assign(Object.assign({},e),{type:t.type})}function KA(t){t=function(t){if(null!==t.type)return t;const e=t.children[t.children.length-1];return e.attr("width",t.attr("width")),e.attr("height",t.attr("height")),e.attr("paddingLeft",t.attr("paddingLeft")),e.attr("paddingTop",t.attr("paddingTop")),e.attr("paddingBottom",t.attr("paddingBottom")),e.attr("paddingRight",t.attr("paddingRight")),e}(t);const e=[t],n=new Map;for(n.set(t,ZA(t));e.length;){const t=e.pop(),i=n.get(t);for(const o of t.children){var r=ZA(o);const{children:a=[]}=i;a.push(r),e.push(o),n.set(o,r),i.children=a}}return n.get(t)}d=[{name:"data",type:"value"},{name:"coordinate",type:"array"},{name:"interaction",type:"array"},{name:"theme",type:"object"},{name:"title",type:"object"},{name:"key",type:"value"},{name:"transform",type:"array"},{name:"theme",type:"object"},...EA(u),...Object.entries(qA).map(([t,e])=>({type:"container",name:t,ctor:e}))];L.Chart=class extends xA{constructor(t={}){var e=t["container"];super(I(t,["container"]),"view"),this._container=void 0===(t=e)?document.createElement("div"):"string"==typeof t?document.getElementById(t):t,this._context={library:XA}}render(){var t=bA(KA(this),this._context);return t.parentNode!==this._container&&this._container.append(t),this}options(){return KA(this)}node(){return this._container}context(){return this._context}},L.Chart=t([wA(d)],L.Chart),L.createLibrary=nP,L.register=function(t,e){Object.assign(XA,{[t]:e})},L.render=bA,Object.defineProperty(L,"__esModule",{value:!0})});