@progress/kendo-angular-gauges 4.1.0 → 4.1.1-dev.202111020831

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 (310) hide show
  1. package/dist/cdn/js/kendo-angular-gauges.js +3 -3
  2. package/dist/cdn/main.js +2 -2
  3. package/dist/es/arc-gauge/arc-center-template.directive.js +1 -1
  4. package/dist/es/arc-gauge/arc-gauge.component.js +1 -1
  5. package/dist/es/arc-gauge/arc-gauge.directives.js +1 -1
  6. package/dist/es/arc-gauge/arc-gauge.module.js +1 -1
  7. package/dist/es/arc-gauge/color.component.js +1 -1
  8. package/dist/es/arc-gauge/colors.component.js +1 -1
  9. package/dist/es/arc-gauge/gauge-area.component.js +1 -1
  10. package/dist/es/arc-gauge/labels.component.js +1 -1
  11. package/dist/es/arc-gauge/scale.component.js +1 -1
  12. package/dist/es/base-components/collection-item.component.js +1 -1
  13. package/dist/es/base-components/collection.component.js +1 -1
  14. package/dist/es/base-components/gauge-area.component.js +1 -1
  15. package/dist/es/base-components/gauge.component.js +1 -1
  16. package/dist/es/base-components/labels.component.js +1 -1
  17. package/dist/es/base-components/range.component.js +1 -1
  18. package/dist/es/base-components/scale.component.js +1 -1
  19. package/dist/es/base-components/settings.component.js +1 -1
  20. package/dist/es/base-components.js +1 -1
  21. package/dist/es/circular-gauge/center-template.directive.js +1 -1
  22. package/dist/es/circular-gauge/circular-gauge.component.js +1 -1
  23. package/dist/es/circular-gauge/circular-gauge.module.js +1 -1
  24. package/dist/es/circular-gauge/gauge-area.component.js +1 -1
  25. package/dist/es/circular-gauge/labels.component.js +1 -1
  26. package/dist/es/circular-gauge/scale.component.js +1 -1
  27. package/dist/es/gauges.module.js +1 -1
  28. package/dist/es/index.js +1 -1
  29. package/dist/es/linear-gauge/gauge-area.component.js +1 -1
  30. package/dist/es/linear-gauge/labels.component.js +1 -1
  31. package/dist/es/linear-gauge/linear-gauge.component.js +1 -1
  32. package/dist/es/linear-gauge/linear-gauge.directives.js +1 -1
  33. package/dist/es/linear-gauge/linear-gauge.module.js +1 -1
  34. package/dist/es/linear-gauge/pointer.component.js +1 -1
  35. package/dist/es/linear-gauge/pointers.component.js +1 -1
  36. package/dist/es/linear-gauge/range.component.js +1 -1
  37. package/dist/es/linear-gauge/ranges.component.js +1 -1
  38. package/dist/es/linear-gauge/scale.component.js +1 -1
  39. package/dist/es/main.js +1 -1
  40. package/dist/es/package-metadata.js +2 -2
  41. package/dist/es/radial-gauge/gauge-area.component.js +1 -1
  42. package/dist/es/radial-gauge/labels.component.js +1 -1
  43. package/dist/es/radial-gauge/pointer.component.js +1 -1
  44. package/dist/es/radial-gauge/pointers.component.js +1 -1
  45. package/dist/es/radial-gauge/radial-gauge.component.js +1 -1
  46. package/dist/es/radial-gauge/radial-gauge.directives.js +1 -1
  47. package/dist/es/radial-gauge/radial-gauge.module.js +1 -1
  48. package/dist/es/radial-gauge/range.component.js +1 -1
  49. package/dist/es/radial-gauge/ranges.component.js +1 -1
  50. package/dist/es/radial-gauge/scale.component.js +1 -1
  51. package/dist/es/services/collection-changes.service.js +1 -1
  52. package/dist/es/services/configuration.service.js +1 -1
  53. package/dist/es/services/theme.service.js +1 -1
  54. package/dist/es/services.js +1 -1
  55. package/dist/es/shared.module.js +1 -1
  56. package/dist/es/types/arc-scale.interface.js +1 -1
  57. package/dist/es/types/border.interface.js +1 -1
  58. package/dist/es/types/cap.interface.js +1 -1
  59. package/dist/es/types/circular-gauge-scale.interface.js +1 -1
  60. package/dist/es/types/color-range.interface.js +1 -1
  61. package/dist/es/types/dash-type.interface.js +1 -1
  62. package/dist/es/types/gauge-area.interface.js +1 -1
  63. package/dist/es/types/labels.interface.js +1 -1
  64. package/dist/es/types/line-cap.js +1 -1
  65. package/dist/es/types/line.interface.js +1 -1
  66. package/dist/es/types/linear-pointer-shape.js +1 -1
  67. package/dist/es/types/linear-pointer.interface.js +1 -1
  68. package/dist/es/types/linear-scale.interface.js +1 -1
  69. package/dist/es/types/margin.interface.js +1 -1
  70. package/dist/es/types/padding.interface.js +1 -1
  71. package/dist/es/types/radial-label-position.js +1 -1
  72. package/dist/es/types/radial-labels.interface.js +1 -1
  73. package/dist/es/types/radial-pointer.interface.js +1 -1
  74. package/dist/es/types/radial-scale.interface.js +1 -1
  75. package/dist/es/types/range.interface.js +1 -1
  76. package/dist/es/types/scale.interface.js +1 -1
  77. package/dist/es/types/ticks.interface.js +1 -1
  78. package/dist/es/types.js +1 -1
  79. package/dist/es2015/arc-gauge/arc-center-template.directive.d.ts +1 -1
  80. package/dist/es2015/arc-gauge/arc-center-template.directive.js +1 -1
  81. package/dist/es2015/arc-gauge/arc-gauge.component.d.ts +1 -1
  82. package/dist/es2015/arc-gauge/arc-gauge.component.js +1 -1
  83. package/dist/es2015/arc-gauge/arc-gauge.directives.d.ts +1 -1
  84. package/dist/es2015/arc-gauge/arc-gauge.directives.js +1 -1
  85. package/dist/es2015/arc-gauge/arc-gauge.module.d.ts +1 -1
  86. package/dist/es2015/arc-gauge/arc-gauge.module.js +1 -1
  87. package/dist/es2015/arc-gauge/color.component.d.ts +1 -1
  88. package/dist/es2015/arc-gauge/color.component.js +1 -1
  89. package/dist/es2015/arc-gauge/colors.component.d.ts +1 -1
  90. package/dist/es2015/arc-gauge/colors.component.js +1 -1
  91. package/dist/es2015/arc-gauge/gauge-area.component.d.ts +1 -1
  92. package/dist/es2015/arc-gauge/gauge-area.component.js +1 -1
  93. package/dist/es2015/arc-gauge/labels.component.d.ts +1 -1
  94. package/dist/es2015/arc-gauge/labels.component.js +1 -1
  95. package/dist/es2015/arc-gauge/scale.component.d.ts +1 -1
  96. package/dist/es2015/arc-gauge/scale.component.js +1 -1
  97. package/dist/es2015/base-components/collection-item.component.d.ts +1 -1
  98. package/dist/es2015/base-components/collection-item.component.js +1 -1
  99. package/dist/es2015/base-components/collection.component.d.ts +1 -1
  100. package/dist/es2015/base-components/collection.component.js +1 -1
  101. package/dist/es2015/base-components/gauge-area.component.d.ts +1 -1
  102. package/dist/es2015/base-components/gauge-area.component.js +1 -1
  103. package/dist/es2015/base-components/gauge.component.d.ts +1 -1
  104. package/dist/es2015/base-components/gauge.component.js +1 -1
  105. package/dist/es2015/base-components/labels.component.d.ts +1 -1
  106. package/dist/es2015/base-components/labels.component.js +1 -1
  107. package/dist/es2015/base-components/range.component.d.ts +1 -1
  108. package/dist/es2015/base-components/range.component.js +1 -1
  109. package/dist/es2015/base-components/scale.component.d.ts +1 -1
  110. package/dist/es2015/base-components/scale.component.js +1 -1
  111. package/dist/es2015/base-components/settings.component.d.ts +1 -1
  112. package/dist/es2015/base-components/settings.component.js +1 -1
  113. package/dist/es2015/base-components.d.ts +1 -1
  114. package/dist/es2015/base-components.js +1 -1
  115. package/dist/es2015/circular-gauge/center-template.directive.d.ts +1 -1
  116. package/dist/es2015/circular-gauge/center-template.directive.js +1 -1
  117. package/dist/es2015/circular-gauge/circular-gauge.component.d.ts +1 -1
  118. package/dist/es2015/circular-gauge/circular-gauge.component.js +1 -1
  119. package/dist/es2015/circular-gauge/circular-gauge.module.d.ts +1 -1
  120. package/dist/es2015/circular-gauge/circular-gauge.module.js +1 -1
  121. package/dist/es2015/circular-gauge/gauge-area.component.d.ts +1 -1
  122. package/dist/es2015/circular-gauge/gauge-area.component.js +1 -1
  123. package/dist/es2015/circular-gauge/labels.component.d.ts +1 -1
  124. package/dist/es2015/circular-gauge/labels.component.js +1 -1
  125. package/dist/es2015/circular-gauge/scale.component.d.ts +1 -1
  126. package/dist/es2015/circular-gauge/scale.component.js +1 -1
  127. package/dist/es2015/gauges.module.d.ts +1 -1
  128. package/dist/es2015/gauges.module.js +1 -1
  129. package/dist/es2015/index.d.ts +1 -1
  130. package/dist/es2015/index.js +1 -1
  131. package/dist/es2015/linear-gauge/gauge-area.component.d.ts +1 -1
  132. package/dist/es2015/linear-gauge/gauge-area.component.js +1 -1
  133. package/dist/es2015/linear-gauge/labels.component.d.ts +1 -1
  134. package/dist/es2015/linear-gauge/labels.component.js +1 -1
  135. package/dist/es2015/linear-gauge/linear-gauge.component.d.ts +1 -1
  136. package/dist/es2015/linear-gauge/linear-gauge.component.js +1 -1
  137. package/dist/es2015/linear-gauge/linear-gauge.directives.d.ts +1 -1
  138. package/dist/es2015/linear-gauge/linear-gauge.directives.js +1 -1
  139. package/dist/es2015/linear-gauge/linear-gauge.module.d.ts +1 -1
  140. package/dist/es2015/linear-gauge/linear-gauge.module.js +1 -1
  141. package/dist/es2015/linear-gauge/pointer.component.d.ts +1 -1
  142. package/dist/es2015/linear-gauge/pointer.component.js +1 -1
  143. package/dist/es2015/linear-gauge/pointers.component.d.ts +1 -1
  144. package/dist/es2015/linear-gauge/pointers.component.js +1 -1
  145. package/dist/es2015/linear-gauge/range.component.d.ts +1 -1
  146. package/dist/es2015/linear-gauge/range.component.js +1 -1
  147. package/dist/es2015/linear-gauge/ranges.component.d.ts +1 -1
  148. package/dist/es2015/linear-gauge/ranges.component.js +1 -1
  149. package/dist/es2015/linear-gauge/scale.component.d.ts +1 -1
  150. package/dist/es2015/linear-gauge/scale.component.js +1 -1
  151. package/dist/es2015/main.d.ts +1 -1
  152. package/dist/es2015/main.js +1 -1
  153. package/dist/es2015/package-metadata.d.ts +1 -1
  154. package/dist/es2015/package-metadata.js +2 -2
  155. package/dist/es2015/radial-gauge/gauge-area.component.d.ts +1 -1
  156. package/dist/es2015/radial-gauge/gauge-area.component.js +1 -1
  157. package/dist/es2015/radial-gauge/labels.component.d.ts +1 -1
  158. package/dist/es2015/radial-gauge/labels.component.js +1 -1
  159. package/dist/es2015/radial-gauge/pointer.component.d.ts +1 -1
  160. package/dist/es2015/radial-gauge/pointer.component.js +1 -1
  161. package/dist/es2015/radial-gauge/pointers.component.d.ts +1 -1
  162. package/dist/es2015/radial-gauge/pointers.component.js +1 -1
  163. package/dist/es2015/radial-gauge/radial-gauge.component.d.ts +1 -1
  164. package/dist/es2015/radial-gauge/radial-gauge.component.js +1 -1
  165. package/dist/es2015/radial-gauge/radial-gauge.directives.d.ts +1 -1
  166. package/dist/es2015/radial-gauge/radial-gauge.directives.js +1 -1
  167. package/dist/es2015/radial-gauge/radial-gauge.module.d.ts +1 -1
  168. package/dist/es2015/radial-gauge/radial-gauge.module.js +1 -1
  169. package/dist/es2015/radial-gauge/range.component.d.ts +1 -1
  170. package/dist/es2015/radial-gauge/range.component.js +1 -1
  171. package/dist/es2015/radial-gauge/ranges.component.d.ts +1 -1
  172. package/dist/es2015/radial-gauge/ranges.component.js +1 -1
  173. package/dist/es2015/radial-gauge/scale.component.d.ts +1 -1
  174. package/dist/es2015/radial-gauge/scale.component.js +1 -1
  175. package/dist/es2015/services/collection-changes.service.d.ts +1 -1
  176. package/dist/es2015/services/collection-changes.service.js +1 -1
  177. package/dist/es2015/services/configuration.service.d.ts +1 -1
  178. package/dist/es2015/services/configuration.service.js +1 -1
  179. package/dist/es2015/services/theme.service.d.ts +1 -1
  180. package/dist/es2015/services/theme.service.js +1 -1
  181. package/dist/es2015/services.d.ts +1 -1
  182. package/dist/es2015/services.js +1 -1
  183. package/dist/es2015/shared.module.d.ts +1 -1
  184. package/dist/es2015/shared.module.js +1 -1
  185. package/dist/es2015/types/arc-scale.interface.d.ts +1 -1
  186. package/dist/es2015/types/arc-scale.interface.js +1 -1
  187. package/dist/es2015/types/border.interface.d.ts +1 -1
  188. package/dist/es2015/types/border.interface.js +1 -1
  189. package/dist/es2015/types/cap.interface.d.ts +1 -1
  190. package/dist/es2015/types/cap.interface.js +1 -1
  191. package/dist/es2015/types/circular-gauge-scale.interface.d.ts +1 -1
  192. package/dist/es2015/types/circular-gauge-scale.interface.js +1 -1
  193. package/dist/es2015/types/color-range.interface.d.ts +1 -1
  194. package/dist/es2015/types/color-range.interface.js +1 -1
  195. package/dist/es2015/types/dash-type.interface.d.ts +1 -1
  196. package/dist/es2015/types/dash-type.interface.js +1 -1
  197. package/dist/es2015/types/gauge-area.interface.d.ts +1 -1
  198. package/dist/es2015/types/gauge-area.interface.js +1 -1
  199. package/dist/es2015/types/labels.interface.d.ts +1 -1
  200. package/dist/es2015/types/labels.interface.js +1 -1
  201. package/dist/es2015/types/line-cap.d.ts +1 -1
  202. package/dist/es2015/types/line-cap.js +1 -1
  203. package/dist/es2015/types/line.interface.d.ts +1 -1
  204. package/dist/es2015/types/line.interface.js +1 -1
  205. package/dist/es2015/types/linear-pointer-shape.d.ts +1 -1
  206. package/dist/es2015/types/linear-pointer-shape.js +1 -1
  207. package/dist/es2015/types/linear-pointer.interface.d.ts +1 -1
  208. package/dist/es2015/types/linear-pointer.interface.js +1 -1
  209. package/dist/es2015/types/linear-scale.interface.d.ts +1 -1
  210. package/dist/es2015/types/linear-scale.interface.js +1 -1
  211. package/dist/es2015/types/margin.interface.d.ts +1 -1
  212. package/dist/es2015/types/margin.interface.js +1 -1
  213. package/dist/es2015/types/padding.interface.d.ts +1 -1
  214. package/dist/es2015/types/padding.interface.js +1 -1
  215. package/dist/es2015/types/radial-label-position.d.ts +1 -1
  216. package/dist/es2015/types/radial-label-position.js +1 -1
  217. package/dist/es2015/types/radial-labels.interface.d.ts +1 -1
  218. package/dist/es2015/types/radial-labels.interface.js +1 -1
  219. package/dist/es2015/types/radial-pointer.interface.d.ts +1 -1
  220. package/dist/es2015/types/radial-pointer.interface.js +1 -1
  221. package/dist/es2015/types/radial-scale.interface.d.ts +1 -1
  222. package/dist/es2015/types/radial-scale.interface.js +1 -1
  223. package/dist/es2015/types/range.interface.d.ts +1 -1
  224. package/dist/es2015/types/range.interface.js +1 -1
  225. package/dist/es2015/types/scale.interface.d.ts +1 -1
  226. package/dist/es2015/types/scale.interface.js +1 -1
  227. package/dist/es2015/types/ticks.interface.d.ts +1 -1
  228. package/dist/es2015/types/ticks.interface.js +1 -1
  229. package/dist/es2015/types.d.ts +1 -1
  230. package/dist/es2015/types.js +1 -1
  231. package/dist/fesm2015/index.js +2 -2
  232. package/dist/fesm5/index.js +2 -2
  233. package/dist/npm/arc-gauge/arc-center-template.directive.js +1 -1
  234. package/dist/npm/arc-gauge/arc-gauge.component.js +1 -1
  235. package/dist/npm/arc-gauge/arc-gauge.directives.js +1 -1
  236. package/dist/npm/arc-gauge/arc-gauge.module.js +1 -1
  237. package/dist/npm/arc-gauge/color.component.js +1 -1
  238. package/dist/npm/arc-gauge/colors.component.js +1 -1
  239. package/dist/npm/arc-gauge/gauge-area.component.js +1 -1
  240. package/dist/npm/arc-gauge/labels.component.js +1 -1
  241. package/dist/npm/arc-gauge/scale.component.js +1 -1
  242. package/dist/npm/base-components/collection-item.component.js +1 -1
  243. package/dist/npm/base-components/collection.component.js +1 -1
  244. package/dist/npm/base-components/gauge-area.component.js +1 -1
  245. package/dist/npm/base-components/gauge.component.js +1 -1
  246. package/dist/npm/base-components/labels.component.js +1 -1
  247. package/dist/npm/base-components/range.component.js +1 -1
  248. package/dist/npm/base-components/scale.component.js +1 -1
  249. package/dist/npm/base-components/settings.component.js +1 -1
  250. package/dist/npm/base-components.js +1 -1
  251. package/dist/npm/circular-gauge/center-template.directive.js +1 -1
  252. package/dist/npm/circular-gauge/circular-gauge.component.js +1 -1
  253. package/dist/npm/circular-gauge/circular-gauge.module.js +1 -1
  254. package/dist/npm/circular-gauge/gauge-area.component.js +1 -1
  255. package/dist/npm/circular-gauge/labels.component.js +1 -1
  256. package/dist/npm/circular-gauge/scale.component.js +1 -1
  257. package/dist/npm/gauges.module.js +1 -1
  258. package/dist/npm/index.js +1 -1
  259. package/dist/npm/linear-gauge/gauge-area.component.js +1 -1
  260. package/dist/npm/linear-gauge/labels.component.js +1 -1
  261. package/dist/npm/linear-gauge/linear-gauge.component.js +1 -1
  262. package/dist/npm/linear-gauge/linear-gauge.directives.js +1 -1
  263. package/dist/npm/linear-gauge/linear-gauge.module.js +1 -1
  264. package/dist/npm/linear-gauge/pointer.component.js +1 -1
  265. package/dist/npm/linear-gauge/pointers.component.js +1 -1
  266. package/dist/npm/linear-gauge/range.component.js +1 -1
  267. package/dist/npm/linear-gauge/ranges.component.js +1 -1
  268. package/dist/npm/linear-gauge/scale.component.js +1 -1
  269. package/dist/npm/main.js +1 -1
  270. package/dist/npm/package-metadata.js +2 -2
  271. package/dist/npm/radial-gauge/gauge-area.component.js +1 -1
  272. package/dist/npm/radial-gauge/labels.component.js +1 -1
  273. package/dist/npm/radial-gauge/pointer.component.js +1 -1
  274. package/dist/npm/radial-gauge/pointers.component.js +1 -1
  275. package/dist/npm/radial-gauge/radial-gauge.component.js +1 -1
  276. package/dist/npm/radial-gauge/radial-gauge.directives.js +1 -1
  277. package/dist/npm/radial-gauge/radial-gauge.module.js +1 -1
  278. package/dist/npm/radial-gauge/range.component.js +1 -1
  279. package/dist/npm/radial-gauge/ranges.component.js +1 -1
  280. package/dist/npm/radial-gauge/scale.component.js +1 -1
  281. package/dist/npm/services/collection-changes.service.js +1 -1
  282. package/dist/npm/services/configuration.service.js +1 -1
  283. package/dist/npm/services/theme.service.js +1 -1
  284. package/dist/npm/services.js +1 -1
  285. package/dist/npm/shared.module.js +1 -1
  286. package/dist/npm/types/arc-scale.interface.js +1 -1
  287. package/dist/npm/types/border.interface.js +1 -1
  288. package/dist/npm/types/cap.interface.js +1 -1
  289. package/dist/npm/types/circular-gauge-scale.interface.js +1 -1
  290. package/dist/npm/types/color-range.interface.js +1 -1
  291. package/dist/npm/types/dash-type.interface.js +1 -1
  292. package/dist/npm/types/gauge-area.interface.js +1 -1
  293. package/dist/npm/types/labels.interface.js +1 -1
  294. package/dist/npm/types/line-cap.js +1 -1
  295. package/dist/npm/types/line.interface.js +1 -1
  296. package/dist/npm/types/linear-pointer-shape.js +1 -1
  297. package/dist/npm/types/linear-pointer.interface.js +1 -1
  298. package/dist/npm/types/linear-scale.interface.js +1 -1
  299. package/dist/npm/types/margin.interface.js +1 -1
  300. package/dist/npm/types/padding.interface.js +1 -1
  301. package/dist/npm/types/radial-label-position.js +1 -1
  302. package/dist/npm/types/radial-labels.interface.js +1 -1
  303. package/dist/npm/types/radial-pointer.interface.js +1 -1
  304. package/dist/npm/types/radial-scale.interface.js +1 -1
  305. package/dist/npm/types/range.interface.js +1 -1
  306. package/dist/npm/types/scale.interface.js +1 -1
  307. package/dist/npm/types/ticks.interface.js +1 -1
  308. package/dist/npm/types.js +1 -1
  309. package/dist/systemjs/kendo-angular-gauges.js +2 -2
  310. package/package.json +5 -4
@@ -1,8 +1,8 @@
1
1
  /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2020 Progress Software Corporation. All rights reserved.
2
+ * Copyright © 2021 Progress Software Corporation. All rights reserved.
3
3
  * Licensed under commercial license. See LICENSE.md in the project root for more information
4
4
  *-------------------------------------------------------------------------------------------*/
5
- !function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("@progress/kendo-drawing"),require("@angular/core"),require("rxjs"),require("@progress/kendo-angular-l10n"),require("@angular/common"),require("@progress/kendo-angular-intl"),require("rxjs/operators")):"function"==typeof define&&define.amd?define(["@progress/kendo-drawing","@angular/core","rxjs","@progress/kendo-angular-l10n","@angular/common","@progress/kendo-angular-intl","rxjs/operators"],e):"object"==typeof exports?exports.KendoAngularGauges=e(require("@progress/kendo-drawing"),require("@angular/core"),require("rxjs"),require("@progress/kendo-angular-l10n"),require("@angular/common"),require("@progress/kendo-angular-intl"),require("rxjs/operators")):t.KendoAngularGauges=e(t["@progress/kendo-drawing"],t["@angular/core"],t.rxjs,t["@progress/kendo-angular-l10n"],t["@angular/common"],t["@progress/kendo-angular-intl"],t["rxjs/operators"])}(window,(function(t,e,i,o,r,n,s){return function(t){var e={};function i(o){if(e[o])return e[o].exports;var r=e[o]={i:o,l:!1,exports:{}};return t[o].call(r.exports,r,r.exports,i),r.l=!0,r.exports}return i.m=t,i.c=e,i.d=function(t,e,o){i.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:o})},i.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},i.t=function(t,e){if(1&e&&(t=i(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var o=Object.create(null);if(i.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var r in t)i.d(o,r,function(e){return t[e]}.bind(null,r));return o},i.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return i.d(e,"a",e),e},i.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},i.p="",i(i.s=42)}([function(e,i){e.exports=t},function(t,i){t.exports=e},function(t,e,i){"use strict";i.r(e),i.d(e,"__extends",(function(){return r})),i.d(e,"__assign",(function(){return n})),i.d(e,"__rest",(function(){return s})),i.d(e,"__decorate",(function(){return a})),i.d(e,"__param",(function(){return p})),i.d(e,"__metadata",(function(){return l})),i.d(e,"__awaiter",(function(){return c})),i.d(e,"__generator",(function(){return h})),i.d(e,"__createBinding",(function(){return u})),i.d(e,"__exportStar",(function(){return d})),i.d(e,"__values",(function(){return f})),i.d(e,"__read",(function(){return g})),i.d(e,"__spread",(function(){return y})),i.d(e,"__spreadArrays",(function(){return v})),i.d(e,"__await",(function(){return m})),i.d(e,"__asyncGenerator",(function(){return x})),i.d(e,"__asyncDelegator",(function(){return _})),i.d(e,"__asyncValues",(function(){return b})),i.d(e,"__makeTemplateObject",(function(){return w})),i.d(e,"__importStar",(function(){return A})),i.d(e,"__importDefault",(function(){return C})),i.d(e,"__classPrivateFieldGet",(function(){return S})),i.d(e,"__classPrivateFieldSet",(function(){return k}));
5
+ !function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("@progress/kendo-drawing"),require("@angular/core"),require("rxjs"),require("@progress/kendo-angular-l10n"),require("@angular/common"),require("@progress/kendo-angular-intl"),require("rxjs/operators")):"function"==typeof define&&define.amd?define(["@progress/kendo-drawing","@angular/core","rxjs","@progress/kendo-angular-l10n","@angular/common","@progress/kendo-angular-intl","rxjs/operators"],e):"object"==typeof exports?exports.KendoAngularGauges=e(require("@progress/kendo-drawing"),require("@angular/core"),require("rxjs"),require("@progress/kendo-angular-l10n"),require("@angular/common"),require("@progress/kendo-angular-intl"),require("rxjs/operators")):t.KendoAngularGauges=e(t["@progress/kendo-drawing"],t["@angular/core"],t.rxjs,t["@progress/kendo-angular-l10n"],t["@angular/common"],t["@progress/kendo-angular-intl"],t["rxjs/operators"])}(window,(function(t,e,i,o,r,n,s){return function(t){var e={};function i(o){if(e[o])return e[o].exports;var r=e[o]={i:o,l:!1,exports:{}};return t[o].call(r.exports,r,r.exports,i),r.l=!0,r.exports}return i.m=t,i.c=e,i.d=function(t,e,o){i.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:o})},i.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},i.t=function(t,e){if(1&e&&(t=i(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var o=Object.create(null);if(i.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var r in t)i.d(o,r,function(e){return t[e]}.bind(null,r));return o},i.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return i.d(e,"a",e),e},i.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},i.p="",i(i.s=42)}([function(e,i){e.exports=t},function(t,i){t.exports=e},function(t,e,i){"use strict";i.r(e),i.d(e,"__extends",(function(){return r})),i.d(e,"__assign",(function(){return n})),i.d(e,"__rest",(function(){return s})),i.d(e,"__decorate",(function(){return a})),i.d(e,"__param",(function(){return p})),i.d(e,"__metadata",(function(){return h})),i.d(e,"__awaiter",(function(){return c})),i.d(e,"__generator",(function(){return l})),i.d(e,"__createBinding",(function(){return u})),i.d(e,"__exportStar",(function(){return d})),i.d(e,"__values",(function(){return f})),i.d(e,"__read",(function(){return g})),i.d(e,"__spread",(function(){return y})),i.d(e,"__spreadArrays",(function(){return v})),i.d(e,"__await",(function(){return m})),i.d(e,"__asyncGenerator",(function(){return x})),i.d(e,"__asyncDelegator",(function(){return _})),i.d(e,"__asyncValues",(function(){return b})),i.d(e,"__makeTemplateObject",(function(){return w})),i.d(e,"__importStar",(function(){return S})),i.d(e,"__importDefault",(function(){return A})),i.d(e,"__classPrivateFieldGet",(function(){return C})),i.d(e,"__classPrivateFieldSet",(function(){return k}));
6
6
  /*! *****************************************************************************
7
7
  Copyright (c) Microsoft Corporation.
8
8
 
@@ -17,4 +17,4 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
17
17
  OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
18
18
  PERFORMANCE OF THIS SOFTWARE.
19
19
  ***************************************************************************** */
20
- var o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)};function r(t,e){function i(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}var n=function(){return(n=Object.assign||function(t){for(var e,i=1,o=arguments.length;i<o;i++)for(var r in e=arguments[i])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t}).apply(this,arguments)};function s(t,e){var i={};for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&e.indexOf(o)<0&&(i[o]=t[o]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(t);r<o.length;r++)e.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(t,o[r])&&(i[o[r]]=t[o[r]])}return i}function a(t,e,i,o){var r,n=arguments.length,s=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,i,o);else for(var a=t.length-1;a>=0;a--)(r=t[a])&&(s=(n<3?r(s):n>3?r(e,i,s):r(e,i))||s);return n>3&&s&&Object.defineProperty(e,i,s),s}function p(t,e){return function(i,o){e(i,o,t)}}function l(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)}function c(t,e,i,o){return new(i||(i=Promise))((function(r,n){function s(t){try{p(o.next(t))}catch(t){n(t)}}function a(t){try{p(o.throw(t))}catch(t){n(t)}}function p(t){var e;t.done?r(t.value):(e=t.value,e instanceof i?e:new i((function(t){t(e)}))).then(s,a)}p((o=o.apply(t,e||[])).next())}))}function h(t,e){var i,o,r,n,s={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return n={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(n[Symbol.iterator]=function(){return this}),n;function a(n){return function(a){return function(n){if(i)throw new TypeError("Generator is already executing.");for(;s;)try{if(i=1,o&&(r=2&n[0]?o.return:n[0]?o.throw||((r=o.return)&&r.call(o),0):o.next)&&!(r=r.call(o,n[1])).done)return r;switch(o=0,r&&(n=[2&n[0],r.value]),n[0]){case 0:case 1:r=n;break;case 4:return s.label++,{value:n[1],done:!1};case 5:s.label++,o=n[1],n=[0];continue;case 7:n=s.ops.pop(),s.trys.pop();continue;default:if(!(r=s.trys,(r=r.length>0&&r[r.length-1])||6!==n[0]&&2!==n[0])){s=0;continue}if(3===n[0]&&(!r||n[1]>r[0]&&n[1]<r[3])){s.label=n[1];break}if(6===n[0]&&s.label<r[1]){s.label=r[1],r=n;break}if(r&&s.label<r[2]){s.label=r[2],s.ops.push(n);break}r[2]&&s.ops.pop(),s.trys.pop();continue}n=e.call(t,s)}catch(t){n=[6,t],o=0}finally{i=r=0}if(5&n[0])throw n[1];return{value:n[0]?n[1]:void 0,done:!0}}([n,a])}}}function u(t,e,i,o){void 0===o&&(o=i),t[o]=e[i]}function d(t,e){for(var i in t)"default"===i||e.hasOwnProperty(i)||(e[i]=t[i])}function f(t){var e="function"==typeof Symbol&&Symbol.iterator,i=e&&t[e],o=0;if(i)return i.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&o>=t.length&&(t=void 0),{value:t&&t[o++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function g(t,e){var i="function"==typeof Symbol&&t[Symbol.iterator];if(!i)return t;var o,r,n=i.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(o=n.next()).done;)s.push(o.value)}catch(t){r={error:t}}finally{try{o&&!o.done&&(i=n.return)&&i.call(n)}finally{if(r)throw r.error}}return s}function y(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(g(arguments[e]));return t}function v(){for(var t=0,e=0,i=arguments.length;e<i;e++)t+=arguments[e].length;var o=Array(t),r=0;for(e=0;e<i;e++)for(var n=arguments[e],s=0,a=n.length;s<a;s++,r++)o[r]=n[s];return o}function m(t){return this instanceof m?(this.v=t,this):new m(t)}function x(t,e,i){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var o,r=i.apply(t,e||[]),n=[];return o={},s("next"),s("throw"),s("return"),o[Symbol.asyncIterator]=function(){return this},o;function s(t){r[t]&&(o[t]=function(e){return new Promise((function(i,o){n.push([t,e,i,o])>1||a(t,e)}))})}function a(t,e){try{(i=r[t](e)).value instanceof m?Promise.resolve(i.value.v).then(p,l):c(n[0][2],i)}catch(t){c(n[0][3],t)}var i}function p(t){a("next",t)}function l(t){a("throw",t)}function c(t,e){t(e),n.shift(),n.length&&a(n[0][0],n[0][1])}}function _(t){var e,i;return e={},o("next"),o("throw",(function(t){throw t})),o("return"),e[Symbol.iterator]=function(){return this},e;function o(o,r){e[o]=t[o]?function(e){return(i=!i)?{value:m(t[o](e)),done:"return"===o}:r?r(e):e}:r}}function b(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e,i=t[Symbol.asyncIterator];return i?i.call(t):(t=f(t),e={},o("next"),o("throw"),o("return"),e[Symbol.asyncIterator]=function(){return this},e);function o(i){e[i]=t[i]&&function(e){return new Promise((function(o,r){(function(t,e,i,o){Promise.resolve(o).then((function(e){t({value:e,done:i})}),e)})(o,r,(e=t[i](e)).done,e.value)}))}}}function w(t,e){return Object.defineProperty?Object.defineProperty(t,"raw",{value:e}):t.raw=e,t}function A(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var i in t)Object.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e.default=t,e}function C(t){return t&&t.__esModule?t:{default:t}}function S(t,e){if(!e.has(t))throw new TypeError("attempted to get private field on non-instance");return e.get(t)}function k(t,e,i){if(!e.has(t))throw new TypeError("attempted to set private field on non-instance");return e.set(t,i),i}},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=i(43);e.ConfigurationService=o.ConfigurationService;var r=i(44);e.CollectionChangesService=r.CollectionChangesService;var n=i(45);e.ThemeService=n.ThemeService},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=i(46);e.CollectionComponent=o.CollectionComponent;var r=i(25);e.CollectionItemComponent=r.CollectionItemComponent;var n=i(47);e.GaugeComponent=n.GaugeComponent;var s=i(50);e.GaugeAreaComponent=s.GaugeAreaComponent;var a=i(51);e.LabelsComponent=a.LabelsComponent;var p=i(52);e.RangeComponent=p.RangeComponent;var l=i(53);e.ScaleComponent=l.ScaleComponent;var c=i(8);e.SettingsComponent=c.SettingsComponent},function(t,e){t.exports=i},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=i(2),r=i(1),n=i(23),s=i(3),a=function(){function t(){}return t=o.__decorate([r.NgModule({exports:[n.ResizeSensorModule],providers:[s.ThemeService]})],t)}();e.SharedModule=a},function(t,e){t.exports=o},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){this.key=t,this.configurationService=e}return t.prototype.ngOnChanges=function(t){this.configurationService.copyChanges(this.key,t)},t.prototype.ngOnDestroy=function(){this.configurationService.set(this.key,null)},t}();e.SettingsComponent=o},function(t,e,i){"use strict";i.r(e),i.d(e,"autoMajorUnit",(function(){return Ut})),i.d(e,"Point",(function(){return Ft})),i.d(e,"Box",(function(){return Nt})),i.d(e,"Ring",(function(){return Kt})),i.d(e,"Sector",(function(){return Xt})),i.d(e,"ShapeBuilder",(function(){return Wt})),i.d(e,"ShapeElement",(function(){return ee})),i.d(e,"ChartElement",(function(){return Jt})),i.d(e,"BoxElement",(function(){return $t})),i.d(e,"RootElement",(function(){return ne})),i.d(e,"FloatElement",(function(){return ae})),i.d(e,"Text",(function(){return ce})),i.d(e,"TextBox",(function(){return de})),i.d(e,"Title",(function(){return ge})),i.d(e,"AxisLabel",(function(){return ve})),i.d(e,"Axis",(function(){return Ae})),i.d(e,"Note",(function(){return xe})),i.d(e,"CategoryAxis",(function(){return qe})),i.d(e,"DateCategoryAxis",(function(){return ti})),i.d(e,"DateValueAxis",(function(){return li})),i.d(e,"NumericAxis",(function(){return ai})),i.d(e,"LogarithmicAxis",(function(){return di})),i.d(e,"PolarAxis",(function(){return mi})),i.d(e,"RadarCategoryAxis",(function(){return yi})),i.d(e,"RadarNumericAxis",(function(){return wi})),i.d(e,"RadarLogarithmicAxis",(function(){return Ci})),i.d(e,"CurveProcessor",(function(){return ki})),i.d(e,"Gradients",(function(){return ie})),i.d(e,"rectToBox",(function(){return he})),i.d(e,"ChartAxis",(function(){return Pi})),i.d(e,"ChartPane",(function(){return Mi})),i.d(e,"ChartPlotArea",(function(){return Ti})),i.d(e,"findAxisByName",(function(){return Ri})),i.d(e,"Aggregates",(function(){return Ii})),i.d(e,"AreaChart",(function(){return Po})),i.d(e,"AreaSegment",(function(){return Ao})),i.d(e,"AxisGroupRangeTracker",(function(){return Ro})),i.d(e,"Bar",(function(){return Lo})),i.d(e,"BarChart",(function(){return Uo})),i.d(e,"BarLabel",(function(){return Mo})),i.d(e,"BoxPlotChart",(function(){return Zo})),i.d(e,"BoxPlot",(function(){return Yo})),i.d(e,"BubbleChart",(function(){return rr})),i.d(e,"Bullet",(function(){return pr})),i.d(e,"BulletChart",(function(){return cr})),i.d(e,"CandlestickChart",(function(){return Ko})),i.d(e,"Candlestick",(function(){return Ho})),i.d(e,"CategoricalChart",(function(){return oo})),i.d(e,"CategoricalErrorBar",(function(){return $i})),i.d(e,"CategoricalPlotArea",(function(){return gn})),i.d(e,"Chart",(function(){return Zs})),i.d(e,"ChartContainer",(function(){return mr})),i.d(e,"ClipAnimation",(function(){return mo})),i.d(e,"ClusterLayout",(function(){return Vo})),i.d(e,"Crosshair",(function(){return yr})),i.d(e,"CrosshairTooltip",(function(){return fr})),i.d(e,"DefaultAggregates",(function(){return Nr})),i.d(e,"DonutChart",(function(){return as})),i.d(e,"DonutPlotArea",(function(){return ps})),i.d(e,"DonutSegment",(function(){return ns})),i.d(e,"ErrorBarBase",(function(){return Qi})),i.d(e,"ErrorRangeCalculator",(function(){return Gi})),i.d(e,"Highlight",(function(){return vn})),i.d(e,"SharedTooltip",(function(){return Vn})),i.d(e,"Legend",(function(){return Rn})),i.d(e,"LegendItem",(function(){return kn})),i.d(e,"LegendLayout",(function(){return Sn})),i.d(e,"LineChart",(function(){return wo})),i.d(e,"LinePoint",(function(){return ao})),i.d(e,"LineSegment",(function(){return lo})),i.d(e,"Pane",(function(){return br})),i.d(e,"PieAnimation",(function(){return Fn})),i.d(e,"PieChart",(function(){return is})),i.d(e,"PieChartMixin",(function(){return $n})),i.d(e,"PiePlotArea",(function(){return os})),i.d(e,"PieSegment",(function(){return Qn})),i.d(e,"PlotAreaBase",(function(){return Dr})),i.d(e,"PlotAreaEventsMixin",(function(){return Gr})),i.d(e,"PlotAreaFactory",(function(){return Mn})),i.d(e,"PointEventsMixin",(function(){return ro})),i.d(e,"RangeBar",(function(){return Kr})),i.d(e,"RangeBarChart",(function(){return Yr})),i.d(e,"RangeAreaPoint",(function(){return Jr})),i.d(e,"RangeAreaChart",(function(){return rn})),i.d(e,"ScatterChart",(function(){return tr})),i.d(e,"ScatterErrorBar",(function(){return Jo})),i.d(e,"ScatterLineChart",(function(){return Nn})),i.d(e,"Selection",(function(){return In})),i.d(e,"SeriesAggregator",(function(){return Fr})),i.d(e,"SeriesBinder",(function(){return Vi})),i.d(e,"SplineSegment",(function(){return go})),i.d(e,"SplineAreaSegment",(function(){return ko})),i.d(e,"StackWrap",(function(){return Do})),i.d(e,"Tooltip",(function(){return zn})),i.d(e,"OHLCChart",(function(){return sn})),i.d(e,"OHLCPoint",(function(){return nn})),i.d(e,"WaterfallChart",(function(){return ln})),i.d(e,"WaterfallSegment",(function(){return pn})),i.d(e,"XYPlotArea",(function(){return Xn})),i.d(e,"MousewheelZoom",(function(){return Cn})),i.d(e,"ZoomSelection",(function(){return An})),i.d(e,"Pannable",(function(){return bn})),i.d(e,"anyHasZIndex",(function(){return xo})),i.d(e,"appendIfNotNull",(function(){return wr})),i.d(e,"areNumbers",(function(){return No})),i.d(e,"bindSegments",(function(){return Cr})),i.d(e,"categoriesCount",(function(){return eo})),i.d(e,"countNumbers",(function(){return ji})),i.d(e,"equalsIgnoreCase",(function(){return Sr})),i.d(e,"evalOptions",(function(){return to})),i.d(e,"filterSeriesByType",(function(){return kr})),i.d(e,"getDateField",(function(){return Pr})),i.d(e,"getField",(function(){return zi})),i.d(e,"hasGradientOverlay",(function(){return To})),i.d(e,"hasValue",(function(){return Qo})),i.d(e,"isDateAxis",(function(){return Rr})),i.d(e,"segmentVisible",(function(){return Ar})),i.d(e,"singleItemOrArray",(function(){return Or})),i.d(e,"createOutOfRangePoints",(function(){return Lr})),i.d(e,"ChartService",(function(){return Z})),i.d(e,"DomEventsBuilder",(function(){return Q})),i.d(e,"FormatService",(function(){return K})),i.d(e,"IntlService",(function(){return F})),i.d(e,"TemplateService",(function(){return et})),i.d(e,"Sparkline",(function(){return oa})),i.d(e,"Navigator",(function(){return ha})),i.d(e,"NavigatorHint",(function(){return aa})),i.d(e,"StockChart",(function(){return da})),i.d(e,"constants",(function(){return o})),i.d(e,"Gauge",(function(){return Sa})),i.d(e,"LinearGauge",(function(){return Wa})),i.d(e,"LinearPointer",(function(){return Ba})),i.d(e,"ArrowLinearPointer",(function(){return Ua})),i.d(e,"BarLinearPointer",(function(){return Ka})),i.d(e,"LinearScale",(function(){return ja})),i.d(e,"RadialGauge",(function(){return up})),i.d(e,"RadialPointer",(function(){return lp})),i.d(e,"RadialScale",(function(){return ip})),i.d(e,"ArcGauge",(function(){return xp})),i.d(e,"RangePointer",(function(){return mp})),i.d(e,"ArcScale",(function(){return fp})),i.d(e,"CircularGauge",(function(){return _p})),i.d(e,"addClass",(function(){return b})),i.d(e,"removeClass",(function(){return A})),i.d(e,"alignPathToPixel",(function(){return S})),i.d(e,"clockwise",(function(){return k})),i.d(e,"convertableToNumber",(function(){return O})),i.d(e,"deepExtend",(function(){return j})),i.d(e,"elementStyles",(function(){return V})),i.d(e,"getSpacing",(function(){return E})),i.d(e,"getTemplate",(function(){return it})),i.d(e,"getter",(function(){return nt})),i.d(e,"grep",(function(){return st})),i.d(e,"hasClasses",(function(){return at})),i.d(e,"HashMap",(function(){return lt})),i.d(e,"inArray",(function(){return ct})),i.d(e,"interpolateValue",(function(){return ht})),i.d(e,"InstanceObserver",(function(){return dt})),i.d(e,"isArray",(function(){return _})),i.d(e,"isFunction",(function(){return M})),i.d(e,"isNumber",(function(){return P})),i.d(e,"isObject",(function(){return L})),i.d(e,"isString",(function(){return R})),i.d(e,"map",(function(){return ft})),i.d(e,"mousewheelDelta",(function(){return gt})),i.d(e,"FontLoader",(function(){return Lt})),i.d(e,"setDefaultOptions",(function(){return It})),i.d(e,"sparseArrayLimits",(function(){return zt})),i.d(e,"styleValue",(function(){return I})),i.d(e,"find",(function(){return Bt})),i.d(e,"elementScale",(function(){return Gt})),i.d(e,"append",(function(){return vt})),i.d(e,"bindEvents",(function(){return mt})),i.d(e,"Class",(function(){return C.Class})),i.d(e,"defined",(function(){return xt})),i.d(e,"deg",(function(){return _t})),i.d(e,"elementOffset",(function(){return bt})),i.d(e,"elementSize",(function(){return wt})),i.d(e,"eventElement",(function(){return At})),i.d(e,"eventCoordinates",(function(){return Ct})),i.d(e,"last",(function(){return St})),i.d(e,"limitValue",(function(){return kt})),i.d(e,"logToConsole",(function(){return C.logToConsole})),i.d(e,"objectKey",(function(){return Pt})),i.d(e,"rad",(function(){return Rt})),i.d(e,"round",(function(){return Ot})),i.d(e,"unbindEvents",(function(){return Mt})),i.d(e,"valueOrDefault",(function(){return Tt})),i.d(e,"chartBaseTheme",(function(){return kp}));var o={};i.r(o),i.d(o,"NAVIGATOR_AXIS",(function(){return la})),i.d(o,"NAVIGATOR_PANE",(function(){return pa}));var r="arc",n="#000",s="bottom",a="center",p="circle",l="date",c=/\{\d+:?/,h="left",u=Number.MAX_VALUE,d=-Number.MAX_VALUE,f="right",g="top",y="value",v="#fff",m="x",x="y";function _(t){return Array.isArray(t)}function b(t,e){for(var i=_(e)?e:[e],o=0;o<i.length;o++){var r=i[o];-1===t.className.indexOf(r)&&(t.className+=" "+r)}}var w=/\s+/g;function A(t,e){t&&t.className&&(t.className=t.className.replace(e,"").replace(w," "))}var C=i(0);function S(t){var e=.5;t.options.stroke&&C.drawing.util.defined(t.options.stroke.width)&&t.options.stroke.width%2==0&&(e=0);for(var i=0;i<t.segments.length;i++)t.segments[i].anchor().round(0).translate(e,e);return t}function k(t,e){return-t.x*e.y+t.y*e.x<0}function P(t){return"number"==typeof t&&!isNaN(t)}function R(t){return"string"==typeof t}function O(t){return P(t)||R(t)&&isFinite(t)}function M(t){return"function"==typeof t}function T(t,e){for(var i in e){var o=e[i],r=typeof o,n=void 0;if((n="object"===r&&null!==o?o.constructor:null)&&n!==Array)if(o instanceof Date)t[i]=new Date(o.getTime());else if(M(o.clone))t[i]=o.clone();else{var s=t[i];t[i]="object"==typeof s&&s||{},T(t[i],o)}else"undefined"!==r&&(t[i]=o)}return t}function j(t){for(var e=arguments,i=arguments.length,o=1;o<i;o++)T(t,e[o]);return t}function L(t){return"object"==typeof t}function I(t){return P(t)?t+"px":t}var z=/width|height|top|left|bottom|right/i;function B(t){return z.test(t)}function V(t,e){var i=R(e)?[e]:e;if(_(i)){for(var o={},r=window.getComputedStyle(t),n=0;n<i.length;n++){var s=i[n];o[s]=B(s)?parseFloat(r[s]):r[s]}return o}if(L(e))for(var a in e)t.style[a]=I(e[a])}function E(t,e){void 0===e&&(e=0);var i={top:0,right:0,bottom:0,left:0};return"number"==typeof t?i.top=i[f]=i[s]=i[h]=t:(i.top=t.top||e,i[f]=t[f]||e,i[s]=t[s]||e,i[h]=t[h]||e),i}var D={format:function(t,e){return e},toString:function(t){return t},parseDate:function(t){return new Date(t)},firstDay:function(){return 0}},G=function(){},U={implementation:{configurable:!0}};G.register=function(t){D=t},U.implementation.get=function(){return D},Object.defineProperties(G,U);var F=G,H=/\{(\d+)(:[^\}]+)?\}/g,N=function(t){this._intlService=t},q={intl:{configurable:!0}};q.intl.get=function(){return this._intlService||F.implementation},q.intl.set=function(t){this._intlService=t},N.prototype.auto=function(t){for(var e=[],i=arguments.length-1;i-- >0;)e[i]=arguments[i+1];var o=this.intl;return R(t)&&t.match(c)?o.format.apply(o,[t].concat(e)):o.toString(e[0],t)},N.prototype.localeAuto=function(t,e,i){var o=this.intl;return R(t)&&t.match(c)?t.replace(H,(function(t,r,n){var s=e[parseInt(r,10)];return o.toString(s,n?n.substring(1):"",i)})):o.toString(e[0],t,i)},Object.defineProperties(N.prototype,q);var K=N,X=function(t,e){void 0===e&&(e={}),this._intlService=e.intlService,this.sender=e.sender||t,this.format=new K(e.intlService),this.chart=t,this.rtl=Boolean(e.rtl)},Y={intl:{configurable:!0}};Y.intl.get=function(){return this._intlService||F.implementation},Y.intl.set=function(t){this._intlService=t,this.format.intl=t},X.prototype.notify=function(t,e){this.chart&&this.chart.trigger(t,e)},X.prototype.isPannable=function(t){var e=((this.chart||{}).options||{}).pannable;return e&&e.lock!==t},Object.defineProperties(X.prototype,Y);var W,Z=X,J=function(){};J.register=function(t){W=t},J.create=function(t,e){if(W)return W.create(t,e)};var Q=J,$={compile:function(t){return t}},tt=function(){};tt.register=function(t){$=t},tt.compile=function(t){return $.compile(t)};var et=tt;function it(t){var e;return void 0===t&&(t={}),t.template?t.template=e=et.compile(t.template):M(t.content)&&(e=t.content),e}var ot=/\[(?:(\d+)|['"](.*?)['"])\]|((?:(?!\[.*?\]|\.).)+)/g,rt={};function nt(t){if(rt[t])return rt[t];var e=[];return t.replace(ot,(function(t,i,o,r){e.push(C.drawing.util.defined(i)?i:o||r)})),rt[t]=function(t){for(var i=t,o=0;o<e.length&&i;o++)i=i[e[o]];return i},rt[t]}function st(t,e){for(var i=t.length,o=[],r=0;r<i;r++)e(t[r])&&o.push(t[r]);return o}function at(t,e){if(t.className)for(var i=e.split(" "),o=0;o<i.length;o++)if(-1!==t.className.indexOf(i[o]))return!0}rt[void 0]=function(t){return t};var pt=function(){this._map={}};pt.prototype.get=function(t){return this._map[this._key(t)]},pt.prototype.set=function(t,e){this._map[this._key(t)]=e},pt.prototype._key=function(t){return t instanceof Date?t.getTime():t};var lt=pt;function ct(t,e){if(e)return-1!==e.indexOf(t)}function ht(t,e,i){return C.drawing.util.round(t+(e-t)*i,3)}var ut=function(t,e){this.observer=t,this.handlerMap=j({},this.handlerMap,e)};ut.prototype.trigger=function(t,e){var i,o=this.observer,r=this.handlerMap;return r[t]?i=this.callObserver(r[t],e):o.trigger&&(i=this.callObserver("trigger",t,e)),i},ut.prototype.callObserver=function(t){for(var e=[],i=arguments.length-1;i-- >0;)e[i]=arguments[i+1];return this.observer[t].apply(this.observer,e)},ut.prototype.requiresHandlers=function(t){if(this.observer.requiresHandlers)return this.observer.requiresHandlers(t);for(var e=0;e<t.length;e++)if(this.handlerMap[t[e]])return!0};var dt=ut;function ft(t,e){for(var i=t.length,o=[],r=0;r<i;r++){var n=e(t[r]);C.drawing.util.defined(n)&&o.push(n)}return o}function gt(t){var e=0;return t.wheelDelta&&(e=(e=-t.wheelDelta/120)>0?Math.ceil(e):Math.floor(e)),t.detail&&(e=C.drawing.util.round(t.detail/3)),e}var yt=C.drawing.util,vt=yt.append,mt=yt.bindEvents,xt=yt.defined,_t=yt.deg,bt=yt.elementOffset,wt=yt.elementSize,At=yt.eventElement,Ct=yt.eventCoordinates,St=yt.last,kt=yt.limitValue,Pt=yt.objectKey,Rt=yt.rad,Ot=yt.round,Mt=yt.unbindEvents,Tt=yt.valueOrDefault,jt=function(){};jt.fetchFonts=function(t,e,i){void 0===i&&(i={depth:0});!t||i.depth>5||!document.fonts||Object.keys(t).forEach((function(o){var r=t[o];"dataSource"!==o&&"$"!==o[0]&&r&&("font"===o?e.push(r):"object"==typeof r&&(i.depth++,jt.fetchFonts(r,e,i),i.depth--))}))},jt.loadFonts=function(t,e){var i=[];if(t.length>0&&document.fonts){try{i=t.map((function(t){return document.fonts.load(t)}))}catch(t){Object(C.logToConsole)(t)}Promise.all(i).then(e,e)}else e()},jt.preloadFonts=function(t,e){var i=[];jt.fetchFonts(t,i),jt.loadFonts(i,e)};var Lt=jt;function It(t,e){var i=t.prototype;i.options?i.options=j({},i.options,e):i.options=e}function zt(t){for(var e=u,i=d,o=0,r=t.length;o<r;o++){var n=t[o];null!==n&&isFinite(n)&&(e=Math.min(e,n),i=Math.max(i,n))}return{min:e===u?void 0:e,max:i===d?void 0:i}}function Bt(t,e){for(var i=0;i<t.length;i++){var o=t[i];if(e(o,i,t))return o}}var Vt=C.geometry.Matrix,Et=/matrix\((.*)\)/;function Dt(t){var e=getComputedStyle(t).transform;return"none"===e?Vt.unit():function(t){var e=t.match(Et);if(null===e||2!==e.length)return Vt.unit();var i=e[1].split(",").map((function(t){return parseFloat(t)}));return new(Function.prototype.bind.apply(Vt,[null].concat(i)))}(e)}function Gt(t){if(!t)return Vt.unit();for(var e=Dt(t),i=t.parentElement;i;){var o=Dt(i);e=e.multiplyCopy(o),i=i.parentElement}return e.b=e.c=e.e=e.f=0,e}function Ut(t,e){var i=Ot(e-t,9);if(0===i){if(0===e)return.1;i=Math.abs(e)}var o=Math.pow(10,Math.floor(Math.log(i)/Math.log(10))),r=Ot(i/o,10);return Ot(o*(r<1.904762?.2:r<4.761904?.5:r<9.523809?1:2),10)}var Ft=function(t){function e(e,i){t.call(this),this.x=e||0,this.y=i||0}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.clone=function(){return new e(this.x,this.y)},e.prototype.equals=function(t){return t&&this.x===t.x&&this.y===t.y},e.prototype.rotate=function(t,e){var i=Rt(e),o=Math.cos(i),r=Math.sin(i),n=t.x,s=t.y,a=this.x,p=this.y;return this.x=Ot(n+(a-n)*o+(p-s)*r,3),this.y=Ot(s+(p-s)*o-(a-n)*r,3),this},e.prototype.multiply=function(t){return this.x*=t,this.y*=t,this},e.prototype.distanceTo=function(t){var e=this.x-t.x,i=this.y-t.y;return Math.sqrt(e*e+i*i)},e.onCircle=function(t,i,o){var r=Rt(i);return new e(t.x-o*Math.cos(r),t.y-o*Math.sin(r))},e}(C.Class);function Ht(t,e,i,o,r){var n=Rt(r);return new Ft(i+(t-i)*Math.cos(n)+(e-o)*Math.sin(n),o-(t-i)*Math.sin(n)+(e-o)*Math.cos(n))}var Nt=function(t){function e(e,i,o,r){t.call(this),this.x1=e||0,this.y1=i||0,this.x2=o||0,this.y2=r||0}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.equals=function(t){return this.x1===t.x1&&this.x2===t.x2&&this.y1===t.y1&&this.y2===t.y2},e.prototype.width=function(){return this.x2-this.x1},e.prototype.height=function(){return this.y2-this.y1},e.prototype.translate=function(t,e){return this.x1+=t,this.x2+=t,this.y1+=e,this.y2+=e,this},e.prototype.move=function(t,e){var i=this.height(),o=this.width();return xt(t)&&(this.x1=t,this.x2=this.x1+o),xt(e)&&(this.y1=e,this.y2=this.y1+i),this},e.prototype.wrap=function(t){return this.x1=Math.min(this.x1,t.x1),this.y1=Math.min(this.y1,t.y1),this.x2=Math.max(this.x2,t.x2),this.y2=Math.max(this.y2,t.y2),this},e.prototype.wrapPoint=function(t){var i=_(t),o=i?t[0]:t.x,r=i?t[1]:t.y;return this.wrap(new e(o,r,o,r)),this},e.prototype.snapTo=function(t,e){return e!==m&&e||(this.x1=t.x1,this.x2=t.x2),e!==x&&e||(this.y1=t.y1,this.y2=t.y2),this},e.prototype.alignTo=function(t,e){var i=this.height(),o=this.width(),r=e===g||e===s?x:m,n=r===x?i:o;if(e===a){var p=t.center(),l=this.center();this.x1+=p.x-l.x,this.y1+=p.y-l.y}else this[r+1]=e===g||e===h?t[r+1]-n:t[r+2];return this.x2=this.x1+o,this.y2=this.y1+i,this},e.prototype.shrink=function(t,e){return this.x2-=t,this.y2-=e,this},e.prototype.expand=function(t,e){return this.shrink(-t,-e),this},e.prototype.pad=function(t){var e=E(t);return this.x1-=e.left,this.x2+=e.right,this.y1-=e.top,this.y2+=e.bottom,this},e.prototype.unpad=function(t){var e=E(t);return e.left=-e.left,e.top=-e.top,e.right=-e.right,e.bottom=-e.bottom,this.pad(e)},e.prototype.clone=function(){return new e(this.x1,this.y1,this.x2,this.y2)},e.prototype.center=function(){return new Ft(this.x1+this.width()/2,this.y1+this.height()/2)},e.prototype.containsPoint=function(t){return t.x>=this.x1&&t.x<=this.x2&&t.y>=this.y1&&t.y<=this.y2},e.prototype.points=function(){return[new Ft(this.x1,this.y1),new Ft(this.x2,this.y1),new Ft(this.x2,this.y2),new Ft(this.x1,this.y2)]},e.prototype.getHash=function(){return[this.x1,this.y1,this.x2,this.y2].join(",")},e.prototype.overlaps=function(t){return!(t.y2<this.y1||this.y2<t.y1||t.x2<this.x1||this.x2<t.x1)},e.prototype.rotate=function(t){var e=this.width(),i=this.height(),o=this.center(),r=o.x,n=o.y,s=Ht(0,0,r,n,t),a=Ht(e,0,r,n,t),p=Ht(e,i,r,n,t),l=Ht(0,i,r,n,t);return e=Math.max(s.x,a.x,p.x,l.x)-Math.min(s.x,a.x,p.x,l.x),i=Math.max(s.y,a.y,p.y,l.y)-Math.min(s.y,a.y,p.y,l.y),this.x2=this.x1+e,this.y2=this.y1+i,this},e.prototype.toRect=function(){return new C.geometry.Rect([this.x1,this.y1],[this.width(),this.height()])},e.prototype.hasSize=function(){return 0!==this.width()&&0!==this.height()},e.prototype.align=function(t,e,i){var o=e+1,r=e+2,n=e===m?"width":"height",p=this[n]();ct(i,[h,g])?(this[o]=t[o],this[r]=this[o]+p):ct(i,[f,s])?(this[r]=t[r],this[o]=this[r]-p):i===a&&(this[o]=t[o]+(t[n]()-p)/2,this[r]=this[o]+p)},e}(C.Class);function qt(t,e){return t-e}var Kt=function(t){function e(e,i,o,r,n){t.call(this),this.center=e,this.innerRadius=i,this.radius=o,this.startAngle=r,this.angle=n}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.clone=function(){return new e(this.center,this.innerRadius,this.radius,this.startAngle,this.angle)},e.prototype.middle=function(){return this.startAngle+this.angle/2},e.prototype.setRadius=function(t,e){return e?this.innerRadius=t:this.radius=t,this},e.prototype.point=function(t,e){var i=Rt(t),o=Math.cos(i),r=Math.sin(i),n=e?this.innerRadius:this.radius,s=Ot(this.center.x-o*n,3),a=Ot(this.center.y-r*n,3);return new Ft(s,a)},e.prototype.adjacentBox=function(t,e,i){var o=this.clone().expand(t),r=o.middle(),n=o.point(r),s=e/2,a=i/2,p=Math.sin(Rt(r)),l=Math.cos(Rt(r)),c=n.x-s,h=n.y-a;return Math.abs(p)<.9&&(c+=s*-l/Math.abs(l)),Math.abs(l)<.9&&(h+=a*-p/Math.abs(p)),new Nt(c,h,c+e,h+i)},e.prototype.containsPoint=function(t){var e=this.center,i=this.innerRadius,o=this.radius,r=this.startAngle,n=this.startAngle+this.angle,s=t.x-e.x,a=t.y-e.y,p=new Ft(s,a),l=this.point(r),c=new Ft(l.x-e.x,l.y-e.y),h=this.point(n),u=new Ft(h.x-e.x,h.y-e.y),d=Ot(s*s+a*a,3);return(c.equals(p)||k(c,p))&&!k(u,p)&&d>=i*i&&d<=o*o},e.prototype.getBBox=function(){var t,e=new Nt(u,u,d,d),i=Ot(this.startAngle%360),o=Ot((i+this.angle)%360),r=this.innerRadius,n=[0,90,180,270,i,o].sort(qt),s=n.indexOf(i),a=n.indexOf(o);t=i===o?n:s<a?n.slice(s,a+1):[].concat(n.slice(0,a+1),n.slice(s,n.length));for(var p=0;p<t.length;p++){var l=this.point(t[p]);e.wrapPoint(l),e.wrapPoint(l,r)}return r||e.wrapPoint(this.center),e},e.prototype.expand=function(t){return this.radius+=t,this},e}(C.Class),Xt=function(t){function e(e,i,o,r){t.call(this,e,0,i,o,r)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.expand=function(e){return t.prototype.expand.call(this,e)},e.prototype.clone=function(){return new e(this.center,this.radius,this.startAngle,this.angle)},e.prototype.setRadius=function(t){return this.radius=t,this},e}(Kt),Yt=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.createRing=function(t,e){var i=t.startAngle+180,o=t.angle+i;t.angle>0&&i===o&&(o+=.001);var r=new C.geometry.Point(t.center.x,t.center.y),n=Math.max(t.radius,0),s=Math.max(t.innerRadius,0),a=new C.geometry.Arc(r,{startAngle:i,endAngle:o,radiusX:n,radiusY:n}),p=C.drawing.Path.fromArc(a,e).close();if(s){a.radiusX=a.radiusY=s;var l=a.pointAt(o);p.lineTo(l.x,l.y),p.arc(o,i,s,s,!0)}else p.lineTo(r.x,r.y);return p},e}(C.Class);Yt.current=new Yt;var Wt=Yt,Zt=function(t){function e(e){t.call(this),this.children=[],this.options=j({},this.options,this.initUserOptions(e))}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.initUserOptions=function(t){return t},e.prototype.reflow=function(t){for(var e,i=this.children,o=0;o<i.length;o++){var r=i[o];r.reflow(t),e=e?e.wrap(r.box):r.box.clone()}this.box=e||t},e.prototype.destroy=function(){var t=this.children;this.animation&&this.animation.destroy();for(var e=0;e<t.length;e++)t[e].destroy()},e.prototype.getRoot=function(){var t=this.parent;return t?t.getRoot():null},e.prototype.getSender=function(){var t=this.getService();if(t)return t.sender},e.prototype.getService=function(){for(var t=this;t;){if(t.chartService)return t.chartService;t=t.parent}},e.prototype.translateChildren=function(t,e){for(var i=this.children,o=i.length,r=0;r<o;r++)i[r].box.translate(t,e)},e.prototype.append=function(){for(var t=arguments,e=this,i=0;i<arguments.length;i++){var o=t[i];e.children.push(o),o.parent=e}},e.prototype.renderVisual=function(){!1!==this.options.visible&&(this.createVisual(),this.addVisual(),this.renderChildren(),this.createAnimation(),this.renderComplete())},e.prototype.addVisual=function(){this.visual&&(this.visual.chartElement=this,this.parent&&this.parent.appendVisual(this.visual))},e.prototype.renderChildren=function(){for(var t=this.children,e=t.length,i=0;i<e;i++)t[i].renderVisual()},e.prototype.createVisual=function(){this.visual=new C.drawing.Group({zIndex:this.options.zIndex,visible:Tt(this.options.visible,!0)})},e.prototype.createAnimation=function(){this.visual&&this.options.animation&&(this.animation=C.drawing.Animation.create(this.visual,this.options.animation))},e.prototype.appendVisual=function(t){t.chartElement||(t.chartElement=this),t.options.noclip?this.clipRoot().visual.append(t):xt(t.options.zIndex)?this.stackRoot().stackVisual(t):this.isStackRoot?this.stackVisual(t):this.visual?this.visual.append(t):this.parent.appendVisual(t)},e.prototype.clipRoot=function(){return this.parent?this.parent.clipRoot():this},e.prototype.stackRoot=function(){return this.parent?this.parent.stackRoot():this},e.prototype.stackVisual=function(t){var e,i=t.options.zIndex||0,o=this.visual.children,r=o.length;for(e=0;e<r;e++){var n=o[e];if(Tt(n.options.zIndex,0)>i)break}this.visual.insert(e,t)},e.prototype.traverse=function(t){for(var e=this.children,i=e.length,o=0;o<i;o++){var r=e[o];t(r),r.traverse&&r.traverse(t)}},e.prototype.closest=function(t){for(var e=this,i=!1;e&&!i;)(i=t(e))||(e=e.parent);if(i)return e},e.prototype.renderComplete=function(){},e.prototype.hasHighlight=function(){var t=(this.options||{}).highlight;return!(!this.createHighlight||t&&!1===t.visible)},e.prototype.toggleHighlight=function(t,e){var i=this,o=(this.options||{}).highlight||{},r=o.visual,n=this._highlight;if(!n){var s={fill:{color:v,opacity:e||.2},stroke:{color:v,width:1,opacity:e||.2}};if(r){if(!(n=this._highlight=r(Object.assign(this.highlightVisualArgs(),{createVisual:function(){return i.createHighlight(s)},sender:this.getSender(),series:this.series,dataItem:this.dataItem,category:this.category,value:this.value,percentage:this.percentage,runningTotal:this.runningTotal,total:this.total}))))return}else n=this._highlight=this.createHighlight(s);xt(n.options.zIndex)||(n.options.zIndex=Tt(o.zIndex,this.options.zIndex)),this.appendVisual(n)}n.visible(t)},e.prototype.createGradientOverlay=function(t,e,i){var o=new C.drawing.Path(Object.assign({stroke:{color:"none"},fill:this.createGradient(i),closed:t.options.closed},e));return o.segments.elements(t.segments.elements()),o},e.prototype.createGradient=function(t){if(this.parent)return this.parent.createGradient(t)},e.prototype.supportsPointInactiveOpacity=function(){return!0},e}(C.Class);Zt.prototype.options={};var Jt=Zt,Qt=function(t){function e(e){t.call(this,e),this.options.margin=E(this.options.margin),this.options.padding=E(this.options.padding)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.reflow=function(e){var i,o=this,r=this.options,n=r.width,s=r.height,a=r.shrinkToFit,p=n&&s,l=r.margin,c=r.padding,h=r.border.width,u=function(){o.align(e,m,r.align),o.align(e,x,r.vAlign),o.paddingBox=i.clone().unpad(l).unpad(h)},d=e.clone();p&&(d.x2=d.x1+n,d.y2=d.y1+s),a&&d.unpad(l).unpad(h).unpad(c),t.prototype.reflow.call(this,d),i=p?this.box=new Nt(0,0,n,s):this.box,a&&p?(u(),d=this.contentBox=this.paddingBox.clone().unpad(c)):(d=this.contentBox=i.clone(),i.pad(c).pad(h).pad(l),u()),this.translateChildren(i.x1-d.x1+l.left+h+c.left,i.y1-d.y1+l.top+h+c.top);for(var f=this.children,g=0;g<f.length;g++){var y=f[g];y.reflow(y.box)}},e.prototype.align=function(t,e,i){this.box.align(t,e,i)},e.prototype.hasBox=function(){var t=this.options;return t.border.width||t.background},e.prototype.createVisual=function(){t.prototype.createVisual.call(this),this.options.visible&&this.hasBox()&&this.visual.append(C.drawing.Path.fromRect(this.paddingBox.toRect(),this.visualStyle()))},e.prototype.visualStyle=function(){var t=this.options,e=t.border||{};return{stroke:{width:e.width,color:e.color,opacity:Tt(e.opacity,t.opacity),dashType:e.dashType},fill:{color:t.background,opacity:t.opacity},cursor:t.cursor}},e}(Jt);It(Qt,{align:h,vAlign:g,margin:{},padding:{},border:{color:n,width:0},background:"",shrinkToFit:!1,width:0,height:0,visible:!0});var $t=Qt,te=function(t){function e(e,i){t.call(this,e),this.pointData=i}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.getElement=function(){var t=this.options,e=this.paddingBox,i=t.type,o=t.rotation,r=e.center(),n=e.width()/2;if(!t.visible||!this.hasBox())return null;var s,a=this.visualStyle();return i===p?s=new C.drawing.Circle(new C.geometry.Circle([Ot(e.x1+n,3),Ot(e.y1+e.height()/2,3)],n),a):"triangle"===i?s=C.drawing.Path.fromPoints([[e.x1+n,e.y1],[e.x1,e.y2],[e.x2,e.y2]],a).close():"cross"===i?((s=new C.drawing.MultiPath(a)).moveTo(e.x1,e.y1).lineTo(e.x2,e.y2),s.moveTo(e.x1,e.y2).lineTo(e.x2,e.y1)):s=C.drawing.Path.fromRect(e.toRect(),a),o&&s.transform(C.geometry.transform().rotate(-o,[r.x,r.y])),s.options.zIndex=t.zIndex,s},e.prototype.createElement=function(){var t=this,e=this.options.visual,i=this.pointData||{};return e?e({value:i.value,dataItem:i.dataItem,sender:this.getSender(),series:i.series,category:i.category,rect:this.paddingBox.toRect(),options:this.visualOptions(),createVisual:function(){return t.getElement()}}):this.getElement()},e.prototype.visualOptions=function(){var t=this.options;return{background:t.background,border:t.border,margin:t.margin,padding:t.padding,type:t.type,size:t.width,visible:t.visible}},e.prototype.createVisual=function(){this.visual=this.createElement()},e}($t);It(te,{type:p,align:a,vAlign:a});var ee=te,ie={glass:{type:"linear",rotation:0,stops:[{offset:0,color:v,opacity:0},{offset:.25,color:v,opacity:.3},{offset:1,color:v,opacity:0}]},sharpBevel:{type:"radial",stops:[{offset:0,color:v,opacity:.55},{offset:.65,color:v,opacity:0},{offset:.95,color:v,opacity:.25}]},roundedBevel:{type:"radial",stops:[{offset:.33,color:v,opacity:.06},{offset:.83,color:v,opacity:.2},{offset:.95,color:v,opacity:0}]},roundedGlass:{type:"radial",supportVML:!1,stops:[{offset:0,color:v,opacity:0},{offset:.5,color:v,opacity:.3},{offset:.99,color:v,opacity:0}]},sharpGlass:{type:"radial",supportVML:!1,stops:[{offset:0,color:v,opacity:.2},{offset:.15,color:v,opacity:.15},{offset:.17,color:v,opacity:.35},{offset:.85,color:v,opacity:.05},{offset:.87,color:v,opacity:.15},{offset:.99,color:v,opacity:0}]},bubbleShadow:{type:"radial",center:[.5,.5],radius:.5}};function oe(t,e){if(t.x1===e.x1&&t.y1===e.y1&&t.x2===e.x2&&t.y2===e.y2)return e;var i=Math.min(t.x1,e.x1),o=Math.max(t.x1,e.x1),r=Math.min(t.x2,e.x2),n=Math.max(t.x2,e.x2),s=Math.min(t.y1,e.y1),a=Math.max(t.y1,e.y1),p=Math.min(t.y2,e.y2),l=Math.max(t.y2,e.y2),c=[];return c[0]=new Nt(o,s,r,a),c[1]=new Nt(i,a,o,p),c[2]=new Nt(r,a,n,p),c[3]=new Nt(o,p,r,l),t.x1===i&&t.y1===s||e.x1===i&&e.y1===s?(c[4]=new Nt(i,s,o,a),c[5]=new Nt(r,p,n,l)):(c[4]=new Nt(r,s,n,a),c[5]=new Nt(i,p,o,l)),st(c,(function(t){return t.height()>0&&t.width()>0}))[0]}var re=function(t){function e(e){t.call(this,e);var i=this.options;i.width=parseInt(i.width,10),i.height=parseInt(i.height,10),this.gradients={}}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.reflow=function(){var t=this.options,e=this.children,i=new Nt(0,0,t.width,t.height);this.box=i.unpad(t.margin);for(var o=0;o<e.length;o++)e[o].reflow(i),i=oe(i,e[o].box)||new Nt},e.prototype.createVisual=function(){this.visual=new C.drawing.Group,this.createBackground()},e.prototype.createBackground=function(){var t=this.options,e=t.border||{},i=this.box.clone().pad(t.margin).unpad(e.width),o=C.drawing.Path.fromRect(i.toRect(),{stroke:{color:e.width?e.color:"",width:e.width,dashType:e.dashType},fill:{color:t.background,opacity:t.opacity},zIndex:-10});this.visual.append(o)},e.prototype.getRoot=function(){return this},e.prototype.createGradient=function(t){var e,i=this.gradients,o=Pt(t),r=ie[t.gradient];if(i[o])e=i[o];else{var n=Object.assign({},r,t);"linear"===r.type?e=new C.drawing.LinearGradient(n):(t.innerRadius&&(n.stops=function(t){for(var e=t.stops,i=t.innerRadius/t.radius*100,o=e.length,r=[],n=0;n<o;n++){var s=Object.assign({},e[n]);s.offset=(s.offset*(100-i)+i)/100,r.push(s)}return r}(n)),(e=new C.drawing.RadialGradient(n)).supportVML=!1!==r.supportVML),i[o]=e}return e},e.prototype.cleanGradients=function(){var t=this.gradients;for(var e in t)t[e]._observers=[]},e.prototype.size=function(){var t=this.options;return new Nt(0,0,t.width,t.height)},e}(Jt);It(re,{width:600,height:400,background:v,border:{color:n,width:0},margin:E(5),zIndex:-2});var ne=re,se=function(t){function e(e){t.call(this,e),this._initDirection()}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype._initDirection=function(){var t=this.options;t.vertical?(this.groupAxis=m,this.elementAxis=x,this.groupSizeField="width",this.elementSizeField="height",this.groupSpacing=t.spacing,this.elementSpacing=t.vSpacing):(this.groupAxis=x,this.elementAxis=m,this.groupSizeField="height",this.elementSizeField="width",this.groupSpacing=t.vSpacing,this.elementSpacing=t.spacing)},e.prototype.reflow=function(t){this.box=t.clone(),this.reflowChildren()},e.prototype.reflowChildren=function(){var t=this.box,e=this.elementAxis,i=this.groupAxis,o=this.elementSizeField,r=this.groupSizeField,n=this.groupOptions(),s=n.groups,a=n.groupsSize,p=n.maxGroupElementsSize,l=s.length,c=t[i+1]+this.alignStart(a,t[r]());if(l){for(var h=c,u=0;u<l;u++){for(var d=s[u],f=d.groupElements,g=t[e+1],y=f.length,v=0;v<y;v++){var m=f[v],x=this.elementSize(m),_=h+this.alignStart(x[r],d.groupSize),b=new Nt;b[i+1]=_,b[i+2]=_+x[r],b[e+1]=g,b[e+2]=g+x[o],m.reflow(b),g+=x[o]+this.elementSpacing}h+=d.groupSize+this.groupSpacing}t[i+1]=c,t[i+2]=c+a,t[e+2]=t[e+1]+p}},e.prototype.alignStart=function(t,e){var i=0,o=this.options.align;return o===f||o===s?i=e-t:o===a&&(i=(e-t)/2),i},e.prototype.groupOptions=function(){for(var t=this.box,e=this.children,i=this.elementSizeField,o=this.groupSizeField,r=this.elementSpacing,n=this.groupSpacing,s=Ot(t[i]()),a=e.length,p=[],l=0,c=0,h=0,u=0,d=[],f=0;f<a;f++){var g=e[f];g.box||g.reflow(t);var y=this.elementSize(g);this.options.wrap&&Ot(c+r+y[i])>s&&(p.push({groupElements:d,groupSize:l,groupElementsSize:c}),u=Math.max(u,c),h+=n+l,l=0,c=0,d=[]),l=Math.max(l,y[o]),c>0&&(c+=r),c+=y[i],d.push(g)}return p.push({groupElements:d,groupSize:l,groupElementsSize:c}),{groups:p,groupsSize:h+=l,maxGroupElementsSize:u=Math.max(u,c)}},e.prototype.elementSize=function(t){return{width:t.box.width(),height:t.box.height()}},e.prototype.createVisual=function(){},e}(Jt);It(se,{vertical:!0,wrap:!0,vSpacing:0,spacing:0});var ae=se,pe=C.drawing.Text,le=function(t){function e(e,i){t.call(this,i),this.content=e,this.reflow(new Nt)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.reflow=function(t){var e=this.options,i=e.size=C.drawing.util.measureText(this.content,{font:e.font});this.baseline=i.baseline,this.box=new Nt(t.x1,t.y1,t.x1+i.width,t.y1+i.height)},e.prototype.createVisual=function(){var t=this.options,e=t.font,i=t.color,o=t.opacity,r=t.cursor;this.visual=new pe(this.content,this.box.toRect().topLeft(),{font:e,fill:{color:i,opacity:o},cursor:r})},e}(Jt);It(le,{font:"12px sans-serif",color:n});var ce=le;function he(t){var e=t.origin,i=t.bottomRight();return new Nt(e.x,e.y,i.x,i.y)}var ue=/\n/m,de=function(t){function e(e,i,o){t.call(this,i),this.content=e,this.data=o,this._initContainer(),!1!==this.options._autoReflow&&this.reflow(new Nt)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype._initContainer=function(){var t=this.options,e=String(this.content).split(ue),i=new ae({vertical:!0,align:t.align,wrap:!1}),o=j({},t,{opacity:1,animation:null});this.container=i,this.append(i);for(var r=0;r<e.length;r++){var n=new ce(e[r].trim(),o);i.append(n)}},e.prototype.reflow=function(e){var i=this.options,o=i.visual;if(this.container.options.align=i.align,o&&!this._boxReflow){var r=e;r.hasSize()||(this._boxReflow=!0,this.reflow(r),this._boxReflow=!1,r=this.box);var n=this.visual=o(this.visualContext(r));n&&(r=he(n.clippedBBox()||new C.geometry.Rect),n.options.zIndex=i.zIndex),this.box=this.contentBox=this.paddingBox=r}else if(t.prototype.reflow.call(this,e),i.rotation){var s=E(i.margin),a=this.box.unpad(s);this.targetBox=e,this.normalBox=a.clone(),(a=this.rotate()).translate(s.left-s.right,s.top-s.bottom),this.rotatedBox=a.clone(),a.pad(s)}},e.prototype.createVisual=function(){var t=this.options;if(this.visual=new C.drawing.Group({transform:this.rotationTransform(),zIndex:t.zIndex,noclip:t.noclip}),this.hasBox()){var e=C.drawing.Path.fromRect(this.paddingBox.toRect(),this.visualStyle());this.visual.append(e)}},e.prototype.renderVisual=function(){if(this.options.visible)if(this.options.visual){var e=this.visual;e&&!xt(e.options.noclip)&&(e.options.noclip=this.options.noclip),this.addVisual(),this.createAnimation()}else t.prototype.renderVisual.call(this)},e.prototype.visualContext=function(t){var e=this,i={text:this.content,rect:t.toRect(),sender:this.getSender(),options:this.options,createVisual:function(){return e._boxReflow=!0,e.reflow(t),e._boxReflow=!1,e.getDefaultVisual()}};return this.data&&Object.assign(i,this.data),i},e.prototype.getDefaultVisual=function(){this.createVisual(),this.renderChildren();var t=this.visual;return delete this.visual,t},e.prototype.rotate=function(){var t=this.options;return this.box.rotate(t.rotation),this.align(this.targetBox,m,t.align),this.align(this.targetBox,x,t.vAlign),this.box},e.prototype.rotationTransform=function(){var t=this.options.rotation;if(!t)return null;var e=this.normalBox.center(),i=e.x,o=e.y,r=this.rotatedBox.center();return C.geometry.transform().translate(r.x-i,r.y-o).rotate(t,[i,o])},e}($t),fe=function(t){function e(e){t.call(this,e),this.append(new de(this.options.text,Object.assign({},this.options,{vAlign:this.options.position})))}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.reflow=function(e){t.prototype.reflow.call(this,e),this.box.snapTo(e,m)},e.buildTitle=function(t,i,o){var r,n=t;return"string"==typeof t&&(n={text:t}),(n=Object.assign({visible:!0},o,n))&&n.visible&&n.text&&(r=new e(n),i.append(r)),r},e}(Jt);It(fe,{color:n,position:g,align:a,margin:E(5),padding:E(5)});var ge=fe,ye=function(t){function e(e,i,o,r,n){t.call(this,i,n),this.text=i,this.value=e,this.index=o,this.dataItem=r,this.reflow(new Nt)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.visualContext=function(e){var i=t.prototype.visualContext.call(this,e);return i.value=this.value,i.dataItem=this.dataItem,i.format=this.options.format,i.culture=this.options.culture,i},e.prototype.click=function(t,e){t.trigger("axisLabelClick",{element:At(e),value:this.value,text:this.text,index:this.index,dataItem:this.dataItem,axis:this.parent.options})},e.prototype.rotate=function(){if(this.options.alignRotation!==a){var e=this.normalBox.toRect(),i=this.rotationTransform();this.box=he(e.bbox(i.matrix()))}else t.prototype.rotate.call(this);return this.box},e.prototype.rotationTransform=function(){var e=this.options,i=e.rotation;if(!i)return null;if(e.alignRotation===a)return t.prototype.rotationTransform.call(this);var o=C.geometry.transform().rotate(i).matrix(),r=this.normalBox.toRect(),n=this.targetBox.toRect(),p=e.rotationOrigin||g,l=p===g||p===s?m:x,c=p===g||p===s?x:m,u=p===g||p===h?n.origin:n.bottomRight(),d=r.topLeft().transformCopy(o),f=r.topRight().transformCopy(o),y=r.bottomRight().transformCopy(o),v=r.bottomLeft().transformCopy(o),_=C.geometry.Rect.fromPoints(d,f,y,v),b={};b[c]=n.origin[c]-_.origin[c];var w,A,S=Math.abs(d[c]+b[c]-u[c]),k=Math.abs(f[c]+b[c]-u[c]);Ot(S,10)===Ot(k,10)?(w=d,A=f):k<S?(w=f,A=y):(w=d,A=v);var P=w[l]+(A[l]-w[l])/2;return b[l]=n.center()[l]-P,C.geometry.transform().translate(b.x,b.y).rotate(i)},e}(de);It(ye,{_autoReflow:!1});var ve=ye,me=function(t){function e(e,i,o){t.call(this,i),this.fields=e,this.chartService=o,this.render()}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.hide=function(){this.options.visible=!1},e.prototype.show=function(){this.options.visible=!0},e.prototype.render=function(){var t=this,e=this.options;if(e.visible){var i,o,r=e.label,n=e.icon,s=new Nt,a=function(){return t},l=n.size,c=this.fields.text;if(xt(r)&&r.visible){var h=it(r);h?c=h(this.fields):r.format&&(c=this.chartService.format.auto(r.format,c)),r.color||(r.color="inside"===r.position?"#fff":n.background),this.label=new de(c,j({},r)),this.label.aliasFor=a,"inside"!==r.position||xt(l)||(n.type===p?l=Math.max(this.label.box.width(),this.label.box.height()):(i=this.label.box.width(),o=this.label.box.height()),s.wrap(this.label.box))}n.width=i||l||7,n.height=o||l||7;var u=new ee(j({},n));u.aliasFor=a,this.marker=u,this.append(u),this.label&&this.append(this.label),u.reflow(new Nt),this.wrapperBox=s.wrap(u.box)}},e.prototype.reflow=function(t){var e,i,o,r=this.options,n=this.label,a=this.marker,p=this.wrapperBox,l=t.center(),c=r.line.length,u=r.position;r.visible&&(ct(u,[h,f])?u===h?(o=p.alignTo(t,u).translate(-c,t.center().y-p.center().y),r.line.visible&&(e=[t.x1,l.y],this.linePoints=[e,[o.x2,l.y]],i=o.clone().wrapPoint(e))):(o=p.alignTo(t,u).translate(c,t.center().y-p.center().y),r.line.visible&&(e=[t.x2,l.y],this.linePoints=[e,[o.x1,l.y]],i=o.clone().wrapPoint(e))):u===s?(o=p.alignTo(t,u).translate(t.center().x-p.center().x,c),r.line.visible&&(e=[l.x,t.y2],this.linePoints=[e,[l.x,o.y1]],i=o.clone().wrapPoint(e))):(o=p.alignTo(t,u).translate(t.center().x-p.center().x,-c),r.line.visible&&(e=[l.x,t.y1],this.linePoints=[e,[l.x,o.y2]],i=o.clone().wrapPoint(e))),a&&a.reflow(o),n&&(n.reflow(o),a&&("outside"===r.label.position&&n.box.alignTo(a.box,u),n.reflow(n.box))),this.contentBox=o,this.targetBox=t,this.box=i||o)},e.prototype.createVisual=function(){t.prototype.createVisual.call(this),this.visual.options.noclip=this.options.noclip,this.options.visible&&this.createLine()},e.prototype.renderVisual=function(){var e=this,i=this.options,o=i.visual;i.visible&&o?(this.visual=o(Object.assign(this.fields,{sender:this.getSender(),rect:this.targetBox.toRect(),options:{background:i.background,border:i.background,icon:i.icon,label:i.label,line:i.line,position:i.position,visible:i.visible},createVisual:function(){e.createVisual(),e.renderChildren();var t=e.visual;return delete e.visual,t}})),this.addVisual()):t.prototype.renderVisual.call(this)},e.prototype.createLine=function(){var t=this.options.line;if(this.linePoints){var e=C.drawing.Path.fromPoints(this.linePoints,{stroke:{color:t.color,width:t.width,dashType:t.dashType}});S(e),this.visual.append(e)}},e.prototype.click=function(t,e){var i=this.eventArgs(e);t.trigger("noteClick",i)||e.preventDefault()},e.prototype.over=function(t,e){var i=this.eventArgs(e);t.trigger("noteHover",i)||e.preventDefault()},e.prototype.out=function(t,e){var i=this.eventArgs(e);t.trigger("noteLeave",i)},e.prototype.eventArgs=function(t){var e=this.options;return Object.assign(this.fields,{element:At(t),text:xt(e.label)?e.label.text:"",visual:this.visual})},e}($t);It(me,{icon:{visible:!0,type:p},label:{position:"inside",visible:!0,align:a,vAlign:a},line:{visible:!0},visible:!0,position:g,zIndex:2});var xe=me;function _e(t,e){var i=t.tickX,o=t.tickY,r=t.position,n=new C.drawing.Path({stroke:{width:e.width,color:e.color}});return t.vertical?n.moveTo(i,r).lineTo(i+e.size,r):n.moveTo(r,o).lineTo(r,o+e.size),S(n),n}function be(t,e){var i=t.lineStart,o=t.lineEnd,r=t.position,n=new C.drawing.Path({stroke:{width:e.width,color:e.color,dashType:e.dashType}});return t.vertical?n.moveTo(i,r).lineTo(o,r):n.moveTo(r,i).lineTo(r,o),S(n),n}var we=function(t){function e(e,i){void 0===i&&(i=new Z),t.call(this,e),this.chartService=i,this.options.visible||(this.options=j({},this.options,{labels:{visible:!1},line:{visible:!1},margin:0,majorTickSize:0,minorTickSize:0})),this.options.minorTicks=j({},{color:this.options.line.color,width:this.options.line.width,visible:"none"!==this.options.minorTickType},this.options.minorTicks,{size:this.options.minorTickSize,align:this.options.minorTickType}),this.options.majorTicks=j({},{color:this.options.line.color,width:this.options.line.width,visible:"none"!==this.options.majorTickType},this.options.majorTicks,{size:this.options.majorTickSize,align:this.options.majorTickType}),this.initFields(),this.options._deferLabels||this.createLabels(),this.createTitle(),this.createNotes()}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.initFields=function(){},e.prototype.labelsRange=function(){return{min:this.options.labels.skip,max:this.labelsCount()}},e.prototype.normalizeLabelRotation=function(t){var e=t.rotation;L(e)&&(t.alignRotation=e.align,t.rotation=e.angle)},e.prototype.createLabels=function(){var t=this.options,e=t.vertical?f:a,i=j({},t.labels,{align:e,zIndex:t.zIndex}),o=Math.max(1,i.step);if(this.clearLabels(),i.visible){this.normalizeLabelRotation(i),"auto"===i.rotation&&(i.rotation=0,t.autoRotateLabels=!0);for(var r=this.labelsRange(),n=r.min;n<r.max;n+=o){var s={index:n,count:r.max},p=this.createAxisLabel(n,i,s);p&&(this.append(p),this.labels.push(p))}}},e.prototype.clearLabels=function(){this.children=st(this.children,(function(t){return!(t instanceof ve)})),this.labels=[]},e.prototype.clearTitle=function(){var t=this;this.title&&(this.children=st(this.children,(function(e){return e!==t.title})),this.title=void 0)},e.prototype.clear=function(){this.clearLabels(),this.clearTitle()},e.prototype.lineBox=function(){var t=this.options,e=this.box,i=t.vertical,o=t.labels.mirror,r=o?e.x1:e.x2,n=o?e.y2:e.y1,s=t.line.width||0;return i?new Nt(r,e.y1,r,e.y2-s):new Nt(e.x1,n,e.x2-s,n)},e.prototype.createTitle=function(){var t=this.options,e=j({rotation:t.vertical?-90:0,text:"",zIndex:1,visualSize:!0},t.title);if(e.visible&&e.text){var i=new de(e.text,e);this.append(i),this.title=i}},e.prototype.createNotes=function(){var t=this.options,e=t.notes,i=e.data||[];this.notes=[];for(var o=0;o<i.length;o++){var r=j({},e,i[o]);r.value=this.parseNoteValue(r.value);var n=new xe({value:r.value,text:r.label.text,dataItem:r},r,this.chartService);n.options.visible&&(xt(n.options.position)?t.vertical&&!ct(n.options.position,[h,f])?n.options.position=t.reverse?h:f:t.vertical||ct(n.options.position,[g,s])||(n.options.position=t.reverse?s:g):t.vertical?n.options.position=t.reverse?h:f:n.options.position=t.reverse?s:g,this.append(n),this.notes.push(n))}},e.prototype.parseNoteValue=function(t){return t},e.prototype.renderVisual=function(){t.prototype.renderVisual.call(this),this.createPlotBands()},e.prototype.createVisual=function(){t.prototype.createVisual.call(this),this.createBackground(),this.createLine()},e.prototype.gridLinesVisual=function(){var t=this._gridLines;return t||(t=this._gridLines=new C.drawing.Group({zIndex:-2}),this.appendVisual(this._gridLines)),t},e.prototype.createTicks=function(t){var e=this.options,i=this.lineBox(),o=e.labels.mirror,r=e.majorTicks.visible?e.majorUnit:0,n={vertical:e.vertical};function s(e,r,s){var a=e.length,p=Math.max(1,r.step);if(r.visible)for(var l=r.skip;l<a;l+=p)xt(s)&&l%s==0||(n.tickX=o?i.x2:i.x2-r.size,n.tickY=o?i.y1-r.size:i.y1,n.position=e[l],t.append(_e(n,r)))}s(this.getMajorTickPositions(),e.majorTicks),s(this.getMinorTickPositions(),e.minorTicks,r/e.minorUnit)},e.prototype.createLine=function(){var t=this.options,e=t.line,i=this.lineBox();if(e.width>0&&e.visible){var o=new C.drawing.Path({stroke:{width:e.width,color:e.color,dashType:e.dashType}});o.moveTo(i.x1,i.y1).lineTo(i.x2,i.y2),t._alignLines&&S(o);var r=this._lineGroup=new C.drawing.Group;r.append(o),this.visual.append(r),this.createTicks(r)}},e.prototype.getActualTickSize=function(){var t=this.options,e=0;return t.majorTicks.visible&&t.minorTicks.visible?e=Math.max(t.majorTicks.size,t.minorTicks.size):t.majorTicks.visible?e=t.majorTicks.size:t.minorTicks.visible&&(e=t.minorTicks.size),e},e.prototype.createBackground=function(){var t=this.options,e=this.box,i=t.background;i&&(this._backgroundPath=C.drawing.Path.fromRect(e.toRect(),{fill:{color:i},stroke:null}),this.visual.append(this._backgroundPath))},e.prototype.createPlotBands=function(){var t=this,e=this.options,i=e.plotBands||[],o=e.vertical,r=this.plotArea;if(0!==i.length){for(var n=this._plotbandGroup=new C.drawing.Group({zIndex:-1}),s=st(this.pane.axes,(function(e){return e.options.vertical!==t.options.vertical}))[0],a=0;a<i.length;a++){var p=i[a],l=void 0,c=void 0,u=p.label,d=void 0;if(o?(l=(s||r.axisX).lineBox(),c=t.getSlot(p.from,p.to,!0)):(l=t.getSlot(p.from,p.to,!0),c=(s||r.axisY).lineBox()),u&&(u.vAlign=u.position||h,d=t.createPlotBandLabel(u,p,new Nt(l.x1,c.y1,l.x2,c.y2))),0!==l.width()&&0!==c.height()){var f=new C.geometry.Rect([l.x1,c.y1],[l.width(),c.height()]),g=C.drawing.Path.fromRect(f,{fill:{color:p.color,opacity:p.opacity},stroke:null});n.append(g),d&&n.append(d)}}this.appendVisual(n)}},e.prototype.createPlotBandLabel=function(t,e,i){if(!1===t.visible)return null;var o,r=t.text;if(xt(t)&&t.visible){var n=it(t);n?r=n({text:r,item:e}):t.format&&(r=this.chartService.format.auto(t.format,r)),t.color||(t.color=this.options.labels.color)}return(o=new de(r,t)).reflow(i),o.renderVisual(),o.visual},e.prototype.createGridLines=function(t){var e=this.options,i=e.minorGridLines,o=e.majorGridLines,r=e.minorUnit,n=e.vertical,s=t.options.line.visible,a=o.visible?e.majorUnit:0,p=t.lineBox(),l=p[n?"y1":"x1"],c={lineStart:p[n?"x1":"y1"],lineEnd:p[n?"x2":"y2"],vertical:n},h=[],u=this.gridLinesVisual();function d(t,e,i){var o=t.length,r=Math.max(1,e.step);if(e.visible)for(var n=e.skip;n<o;n+=r){var a=Ot(t[n]);ct(a,h)||n%i==0||s&&l===a||(c.position=a,u.append(be(c,e)),h.push(a))}}return d(this.getMajorTickPositions(),o),d(this.getMinorTickPositions(),i,a/r),u.children},e.prototype.reflow=function(t){for(var e=this.options,i=this.labels,o=this.title,r=e.vertical,n=i.length,s=r?"width":"height",a=o?o.box[s]():0,p=this.getActualTickSize()+e.margin+a,l=((this.getRoot()||{}).box||t)[s](),c=0,h=0;h<n;h++){var u=i[h].box[s]();u+p<=l&&(c=Math.max(c,u))}this.box=r?new Nt(t.x1,t.y1,t.x1+c+p,t.y2):new Nt(t.x1,t.y1,t.x2,t.y1+c+p),this.arrangeTitle(),this.arrangeLabels(),this.arrangeNotes()},e.prototype.getLabelsTickPositions=function(){return this.getMajorTickPositions()},e.prototype.labelTickIndex=function(t){return t.index},e.prototype.arrangeLabels=function(){for(var t=this.options,e=this.labels,i=this.labelsBetweenTicks(),o=t.vertical,r=t.labels.mirror,n=this.getLabelsTickPositions(),s=0;s<e.length;s++){var a=e[s],p=this.labelTickIndex(a),l=o?a.box.height():a.box.width(),c=n[p],h=n[p+1],u=void 0,d=void 0;if(o){if(i)u=c+(h-c)/2-l/2;else u=c-l/2;d=u}else i?(u=c,d=h):d=(u=c-l/2)+l;this.positionLabel(a,r,u,d)}},e.prototype.positionLabel=function(t,e,i,o){void 0===o&&(o=i);var r,n=this.options,a=n.vertical,p=this.lineBox(),l=this.getActualTickSize()+n.margin;if(a){var c=p.x2;e?(c+=l,t.options.rotationOrigin=h):(c-=l+t.box.width(),t.options.rotationOrigin=f),r=t.box.move(c,i)}else{var u=p.y1;e?(u-=l+t.box.height(),t.options.rotationOrigin=s):(u+=l,t.options.rotationOrigin=g),r=new Nt(i,u,o,u+t.box.height())}t.reflow(r)},e.prototype.autoRotateLabelAngle=function(t,e){return t.width()<e?0:t.height()>e?-90:-45},e.prototype.autoRotateLabels=function(){if(!this.options.autoRotateLabels||this.options.vertical)return!1;for(var t=this.getMajorTickPositions(),e=this.labels,i=Math.min(e.length,t.length-1),o=0,r=0;r<i;r++){var n=Math.abs(t[r+1]-t[r]),s=e[r].box;if(-90===(o=this.autoRotateLabelAngle(s,n)))break}if(0!==o){for(var a=0;a<e.length;a++)e[a].options.rotation=o,e[a].reflow(new Nt);return!0}},e.prototype.arrangeTitle=function(){var t=this.options,e=this.title,i=t.labels.mirror,o=t.vertical;e&&(o?(e.options.align=i?f:h,e.options.vAlign=e.options.position):(e.options.align=e.options.position,e.options.vAlign=i?g:s),e.reflow(this.box))},e.prototype.arrangeNotes=function(){for(var t=0;t<this.notes.length;t++){var e=this.notes[t],i=e.options.value,o=void 0;xt(i)?(this.shouldRenderNote(i)?e.show():e.hide(),o=this.noteSlot(i)):e.hide(),e.reflow(o||this.lineBox())}},e.prototype.noteSlot=function(t){return this.getSlot(t)},e.prototype.alignTo=function(t){var e=t.lineBox(),i=this.options.vertical,o=i?x:m;this.box.snapTo(e,o),i?this.box.shrink(0,this.lineBox().height()-e.height()):this.box.shrink(this.lineBox().width()-e.width(),0),this.box[o+1]-=this.lineBox()[o+1]-e[o+1],this.box[o+2]-=this.lineBox()[o+2]-e[o+2]},e.prototype.axisLabelText=function(t,e,i){var o,r=this,n=it(e),s=function(){return e.format?r.chartService.format.localeAuto(e.format,[t],e.culture):t};n?o=n(Object.assign({},i,{get text(){return s()},value:t,format:e.format,culture:e.culture})):o=s();return o},e.prototype.slot=function(t,e,i){var o=this.getSlot(t,e,i);if(o)return o.toRect()},e.prototype.contentBox=function(){var t=this.box.clone(),e=this.labels;if(e.length){var i=this.options.vertical?x:m;if(this.chartService.isPannable(i)){var o=this.maxLabelOffset();t[i+1]-=o.start,t[i+2]+=o.end}else{e[0].options.visible&&t.wrap(e[0].box);var r=e[e.length-1];r.options.visible&&t.wrap(r.box)}}return t},e.prototype.maxLabelOffset=function(){for(var t=this.options,e=t.vertical,i=t.reverse,o=this.labelsBetweenTicks(),r=this.getLabelsTickPositions(),n=e?x:m,s=this.labels,a=i?1:0,p=i?0:1,l=0,c=0,h=0;h<s.length;h++){var u=s[h],d=this.labelTickIndex(u),f=void 0,g=void 0;o?(f=r[d+a],g=r[d+p]):f=g=r[d],l=Math.max(l,f-u.box[n+1]),c=Math.max(c,u.box[n+2]-g)}return{start:l,end:c}},e.prototype.limitRange=function(t,e,i,o,r){var n=this.options;if(t<i&&r<0&&(!xt(n.min)||n.min<=i)||o<e&&r>0&&(!xt(n.max)||o<=n.max))return null;if(e<i&&r>0||o<t&&r<0)return{min:t,max:e};var s=e-t,a=t,p=e;return t<i&&r<0?(a=kt(t,i,o),p=kt(t+s,i+s,o)):e>o&&r>0&&(p=kt(e,i,o),a=kt(e-s,i,o-s)),{min:a,max:p}},e.prototype.valueRange=function(){return{min:this.seriesMin,max:this.seriesMax}},e.prototype.labelsBetweenTicks=function(){return!this.options.justified},e.prototype.prepareUserOptions=function(){},e}(Jt);It(we,{labels:{visible:!0,rotation:0,mirror:!1,step:1,skip:0},line:{width:1,color:n,visible:!0},title:{visible:!0,position:a},majorTicks:{align:"outside",size:4,skip:0,step:1},minorTicks:{align:"outside",size:3,skip:0,step:1},axisCrossingValue:0,majorTickType:"outside",minorTickType:"none",majorGridLines:{skip:0,step:1},minorGridLines:{visible:!1,width:1,color:n,skip:0,step:1},margin:5,visible:!0,reverse:!1,justified:!0,notes:{label:{text:""}},_alignLines:!0,_deferLabels:!1});var Ae=we,Ce="days",Se="years",ke={years:31536e6,months:26784e5,weeks:6048e5,days:864e5,hours:36e5,minutes:6e4,seconds:1e3,milliseconds:1};function Pe(t,e){return t.getTime()-e-6e4*(t.getTimezoneOffset()-e.getTimezoneOffset())}function Re(t,e){return new Date(t.getTime()+e)}function Oe(t){var e;return t instanceof Date?e=t:t&&(e=new Date(t)),e}function Me(t,e){return 0===e&&23===t.getHours()&&(t.setHours(t.getHours()+2),!0)}function Te(t,e,i,o){var r=t;if(t){var n=Oe(t),s=n.getHours();i===Se?Me(r=new Date(n.getFullYear()+e,0,1),0):"months"===i?Me(r=new Date(n.getFullYear(),n.getMonth()+e,1),s):"weeks"===i?Me(r=Te(function(t,e){void 0===e&&(e=0);var i=0,o=t.getDay();if(!isNaN(o))for(;o!==e;)0===o?o=6:o--,i++;return Re(t,864e5*-i)}(n,o),7*e,Ce),s):i===Ce?Me(r=new Date(n.getFullYear(),n.getMonth(),n.getDate()+e),s):"hours"===i?r=function(t,e){var i=new Date(t);i.setMinutes(0,0,0);var o=6e4*(t.getTimezoneOffset()-i.getTimezoneOffset());return Re(i,o+36e5*e)}(n,e):"minutes"===i?(r=Re(n,6e4*e)).getSeconds()>0&&r.setSeconds(0):"seconds"===i?r=Re(n,1e3*e):"milliseconds"===i&&(r=Re(n,e)),"milliseconds"!==i&&r.getMilliseconds()>0&&r.setMilliseconds(0)}return r}function je(t,e,i){return Te(Oe(t),0,e,i)}function Le(t,e,i){var o=Oe(t);return o&&je(o,e,i).getTime()===o.getTime()?o:Te(o,1,e,i)}function Ie(t,e){return t&&e?t.getTime()-e.getTime():-1}function ze(t,e){return t.getTime()-e}function Be(t){if(_(t)){for(var e=[],i=0;i<t.length;i++)e.push(Be(t[i]));return e}if(t)return Oe(t).getTime()}function Ve(t,e){return t&&e?Be(t)===Be(e):t===e}function Ee(t,e,i){return Pe(t,e)/ke[i]}function De(t,e,i,o){var r=Oe(t),n=Oe(e);return("months"===i?r.getMonth()-n.getMonth()+12*(r.getFullYear()-n.getFullYear())+Ee(r,new Date(r.getFullYear(),r.getMonth()),Ce)/new Date(r.getFullYear(),r.getMonth()+1,0).getDate():i===Se?r.getFullYear()-n.getFullYear()+De(r,new Date(r.getFullYear(),0),"months",1)/12:i===Ce||"weeks"===i?Ee(r,n,i):ze(r,e)/ke[i])/o}function Ge(t,e,i){return i===Se?e.getFullYear()-t.getFullYear():"months"===i?12*Ge(t,e,Se)+e.getMonth()-t.getMonth():i===Ce?Math.floor(ze(e,t)/864e5):Math.floor(ze(e,t)/ke[i])}function Ue(t,e){return R(e)&&t.parseDate(e)||Oe(e)}function Fe(t,e){if(_(e)){for(var i=[],o=0;o<e.length;o++)i.push(Ue(t,e[o]));return i}return Ue(t,e)}function He(t,e){return P(t.weekStartDay)?t.weekStartDay:e&&e.firstDay?e.firstDay():0}var Ne=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.initFields=function(){this._ticks={}},e.prototype.categoriesHash=function(){return""},e.prototype.clone=function(){var t=new e(Object.assign({},this.options,{categories:this.options.srcCategories}),this.chartService);return t.createLabels(),t},e.prototype.initUserOptions=function(t){var e=t.categories||[],i=xt(t.min),o=xt(t.max);if(t.srcCategories=t.categories=e,(i||o)&&e.length){var r,n=i?Math.floor(t.min):0;r=o?t.justified?Math.floor(t.max)+1:Math.ceil(t.max):e.length,t.categories=t.categories.slice(n,r)}return t},e.prototype.rangeIndices=function(){var t=this.options,e=t.categories.length||1;return{min:P(t.min)?t.min%1:0,max:P(t.max)&&t.max%1!=0&&t.max<this.totalRange().max?e-(1-t.max%1):e-(t.justified?1:0)}},e.prototype.totalRangeIndices=function(t){var e,i=this.options,o=P(i.min)?i.min:0;if(e=P(i.max)?i.max:P(i.min)?o+i.categories.length:this.totalRange().max||1,t){var r=this.totalRange();o=kt(o,0,r.max),e=kt(e,0,r.max)}return{min:o,max:e}},e.prototype.range=function(){var t=this.options;return{min:P(t.min)?t.min:0,max:P(t.max)?t.max:this.totalRange().max}},e.prototype.roundedRange=function(){return this.range()},e.prototype.totalRange=function(){var t=this.options;return{min:0,max:Math.max(this._seriesMax||0,t.srcCategories.length)-(t.justified?1:0)}},e.prototype.scaleOptions=function(){var t=this.rangeIndices(),e=t.min,i=t.max,o=this.lineBox();return{scale:(this.options.vertical?o.height():o.width())/(i-e||1)*(this.options.reverse?-1:1),box:o,min:e,max:i}},e.prototype.arrangeLabels=function(){t.prototype.arrangeLabels.call(this),this.hideOutOfRangeLabels()},e.prototype.hideOutOfRangeLabels=function(){var t=this.box,e=this.labels;if(e.length>0){var i=this.options.vertical?x:m,o=t[i+1],r=t[i+2],n=e[0],s=St(e);(n.box[i+1]>r||n.box[i+2]<o)&&(n.options.visible=!1),(s.box[i+1]>r||s.box[i+2]<o)&&(s.options.visible=!1)}},e.prototype.getMajorTickPositions=function(){return this.getTicks().majorTicks},e.prototype.getMinorTickPositions=function(){return this.getTicks().minorTicks},e.prototype.getLabelsTickPositions=function(){return this.getTicks().labelTicks},e.prototype.tickIndices=function(t){for(var e=this.rangeIndices(),i=e.min,o=e.max,r=Math.ceil(o),n=Math.floor(i),s=[];n<=r;)s.push(n),n+=t;return s},e.prototype.getTickPositions=function(t){for(var e=this.options,i=e.vertical,o=e.reverse,r=this.scaleOptions(),n=r.scale,s=r.box,a=r.min,p=s[(i?x:m)+(o?2:1)],l=this.tickIndices(t),c=[],h=0;h<l.length;h++)c.push(p+Ot(n*(l[h]-a),3));return c},e.prototype.getTicks=function(){var t=this.options,e=this._ticks,i=this.rangeIndices(),o=this.lineBox(),r=o.getHash()+i.min+","+i.max+t.reverse+t.justified;if(e._hash!==r){var n=t.minorTicks.visible||t.minorGridLines.visible;e._hash=r,e.labelTicks=this.getTickPositions(1),e.majorTicks=this.filterOutOfRangePositions(e.labelTicks,o),e.minorTicks=n?this.filterOutOfRangePositions(this.getTickPositions(.5),o):[]}return e},e.prototype.filterOutOfRangePositions=function(t,e){if(!t.length)return t;for(var i=this.options.vertical?x:m,o=function(t){return e[i+1]<=t&&t<=e[i+2]},r=t.length-1,n=0;!o(t[n])&&n<=r;)n++;for(var s=r;!o(t[s])&&s>=0;)s--;return t.slice(n,s+1)},e.prototype.getSlot=function(t,e,i){var o=this.options,r=o.reverse,n=o.justified,s=o.vertical,a=this.scaleOptions(),p=a.scale,l=a.box,c=a.min,h=s?x:m,u=l[h+(r?2:1)],d=l.clone(),f=!xt(e),g=Tt(t,0),y=Tt(e,g);y=Math.max(y-1,g);var v=u+(g-c)*p,_=u+((y=Math.max(g,y))+1-c)*p;return f&&n&&(_=v),i&&(v=kt(v,l[h+1],l[h+2]),_=kt(_,l[h+1],l[h+2])),d[h+1]=r?_:v,d[h+2]=r?v:_,d},e.prototype.limitSlot=function(t){var e=this.options.vertical?x:m,i=this.lineBox(),o=t.clone();return o[e+1]=kt(t[e+1],i[e+1],i[e+2]),o[e+2]=kt(t[e+2],i[e+1],i[e+2]),o},e.prototype.slot=function(e,i,o){var r=Math.floor(this.options.min||0),n=e,s=i;return"string"==typeof n?n=this.categoryIndex(n):P(n)&&(n-=r),"string"==typeof s?s=this.categoryIndex(s):P(s)&&(s-=r),t.prototype.slot.call(this,n,s,o)},e.prototype.pointCategoryIndex=function(t){var e=this.options,i=e.reverse,o=e.justified,r=e.vertical?x:m,n=this.scaleOptions(),s=n.scale,a=n.box,p=n.min,l=n.max,c=i?l:p,h=a[r+1],u=a[r+2],d=t[r];if(d<h||d>u)return null;var f=c+(d-h)/s,g=f%1;return o?f=Math.round(f):0===g&&f>0&&f--,Math.floor(f)},e.prototype.getCategory=function(t){var e=this.pointCategoryIndex(t);return null===e?null:this.options.categories[e]},e.prototype.categoryIndex=function(t){return this.totalIndex(t)-Math.floor(this.options.min||0)},e.prototype.categoryAt=function(t,e){var i=this.options;return(e?i.srcCategories:i.categories)[t]},e.prototype.categoriesCount=function(){return(this.options.categories||[]).length},e.prototype.translateRange=function(t){var e=this.options,i=this.lineBox(),o=e.vertical?i.height():i.width(),r=e.categories.length,n=Ot(t/(o/r),10);return{min:n,max:r+n}},e.prototype.zoomRange=function(t){var e=this.totalRangeIndices(),i=this.totalRange(),o=i.min,r=i.max,n=kt(e.min+t,o,r),s=kt(e.max-t,o,r);if(s-n>0)return{min:n,max:s}},e.prototype.scaleRange=function(t){var e=this.options.categories.length,i=t*e;return{min:-i,max:e+i}},e.prototype.labelsCount=function(){var t=this.labelsRange();return t.max-t.min},e.prototype.labelsRange=function(){var t=this.options,e=t.justified,i=t.labels,o=this.totalRangeIndices(!0),r=o.min,n=o.max,s=Math.floor(r);return e?(r=Math.ceil(r),n=Math.floor(n)):(r=Math.floor(r),n=Math.ceil(n)),{min:(r>i.skip?i.skip+i.step*Math.ceil((r-i.skip)/i.step):i.skip)-s,max:(t.categories.length?n+(e?1:0):0)-s}},e.prototype.createAxisLabel=function(t,e,i){var o=this.options,r=o.dataItems?o.dataItems[t]:null,n=Tt(o.categories[t],"");i.dataItem=r;var s=this.axisLabelText(n,e,i);return new ve(n,s,t,r,e)},e.prototype.shouldRenderNote=function(t){var e=this.totalRangeIndices();return Math.floor(e.min)<=t&&t<=Math.ceil(e.max)},e.prototype.noteSlot=function(t){var e=this.options,i=t-Math.floor(e.min||0);return this.getSlot(i)},e.prototype.arrangeNotes=function(){t.prototype.arrangeNotes.call(this),this.hideOutOfRangeNotes()},e.prototype.hideOutOfRangeNotes=function(){var t=this.notes,e=this.box;if(t&&t.length)for(var i=this.options.vertical?x:m,o=e[i+1],r=e[i+2],n=0;n<t.length;n++){var s=t[n];s.box&&(r<s.box[i+1]||s.box[i+2]<o)&&s.hide()}},e.prototype.pan=function(t){var e=this.totalRangeIndices(!0),i=this.scaleOptions().scale,o=Ot(t/i,10),r=this.totalRange(),n=e.min+o,s=e.max+o;return this.limitRange(n,s,0,r.max,o)},e.prototype.pointsRange=function(t,e){var i=this.options,o=i.reverse,r=i.vertical?x:m,n=this.totalRangeIndices(!0),s=this.scaleOptions(),a=s.scale,p=s.box[r+(o?2:1)],l=t[r]-p,c=e[r]-p,h=n.min+l/a,u=n.min+c/a,d=Math.min(h,u),f=Math.max(h,u);if(f-d>=.01)return{min:d,max:f}},e.prototype.valueRange=function(){return this.range()},e.prototype.totalIndex=function(t){var e=this.options;return this._categoriesMap?this._categoriesMap.get(t):function(t,e){if(t instanceof Date){for(var i=e.length,o=0;o<i;o++)if(Ve(e[o],t))return o;return-1}return e.indexOf(t)}(t,e.srcCategories)},e.prototype.currentRangeIndices=function(){var t=this.options,e=0;return P(t.min)&&(e=Math.floor(t.min)),{min:e,max:P(t.max)?t.justified?Math.floor(t.max):Math.ceil(t.max)-1:this.totalCount()-1}},e.prototype.mapCategories=function(){if(!this._categoriesMap)for(var t=this._categoriesMap=new lt,e=this.options.srcCategories,i=0;i<e.length;i++)t.set(e[i],i)},e.prototype.totalCount=function(){return Math.max(this.options.srcCategories.length,this._seriesMax||0)},e}(Ae);It(Ne,{type:"category",vertical:!1,majorGridLines:{visible:!1,width:1,color:n},labels:{zIndex:1},justified:!1,_deferLabels:!0});var qe=Ne,Ke={milliseconds:"HH:mm:ss.fff",seconds:"HH:mm:ss",minutes:"HH:mm",hours:"HH:mm",days:"M/d",weeks:"M/d",months:"MMM 'yy",years:"yyyy"},Xe=["milliseconds","seconds","minutes","hours",Ce,"weeks","months",Se];function Ye(t){var e=t._range;return e||((e=t._range=zt(t)).min=Oe(e.min),e.max=Oe(e.max)),e}var We=function(t){this.options=t};We.prototype.displayIndices=function(){return{min:0,max:1}},We.prototype.displayRange=function(){return{}},We.prototype.total=function(){return{}},We.prototype.valueRange=function(){return{}},We.prototype.valueIndex=function(){return-1},We.prototype.values=function(){return[]},We.prototype.totalIndex=function(){return-1},We.prototype.valuesCount=function(){return 0},We.prototype.totalCount=function(){return 0},We.prototype.dateAt=function(){return null};var Ze=function(t,e,i){this.options=i,i.baseUnitStep=i.baseUnitStep||1;var o=i.roundToBaseUnit,r=i.justified;this.start=Te(t,0,i.baseUnit,i.weekStartDay);var n=this.roundToTotalStep(e),s=!r&&Ve(e,n)&&!i.justifyEnd;this.end=this.roundToTotalStep(e,!r,s?1:0);var a=i.min||t;this.valueStart=this.roundToTotalStep(a),this.displayStart=o?this.valueStart:a;var p=i.max;if(p){var l=!r&&Ve(p,this.roundToTotalStep(p))?-1:0;this.valueEnd=this.roundToTotalStep(p,!1,l),this.displayEnd=o?this.roundToTotalStep(p,!r):i.max}else this.valueEnd=n,this.displayEnd=o||s?this.end:e;this.valueEnd<this.valueStart&&(this.valueEnd=this.valueStart),this.displayEnd<=this.displayStart&&(this.displayEnd=this.roundToTotalStep(this.displayStart,!1,1))};function Je(t,e,i){for(var o,r,n,s=Ye(t.categories),a=(t.max||s.max)-(t.min||s.min),p=t.autoBaseUnitSteps,l=t.maxDateGroups,c="fit"===t.baseUnit,h=e?Xe.indexOf(e):0,u=c?Xe[h++]:t.baseUnit,d=a/ke[u],f=d;!r||d>=l;){o=o||p[u].slice(0);do{n=o.shift()}while(n&&e===u&&n<i);if(n)d=f/(r=n);else{if(u===St(Xe)){r=Math.ceil(f/l);break}if(!c){d>l&&(r=Math.ceil(f/l));break}u=Xe[h++]||St(Xe),f=a/ke[u],o=null}}t.baseUnitStep=r,t.baseUnit=u}function Qe(t){var e=(t.baseUnit||"").toLowerCase();return"fit"!==e&&!ct(e,Xe)&&function(t){for(var e,i,o=t.categories,r=xt(o)?o.length:0,n=u,s=0;s<r;s++){var a=o[s];if(a&&e){var p=Pe(a,e);p>0&&(i=(n=Math.min(n,p))>=31536e6?Se:n>=24192e5?"months":n>=6048e5?"weeks":n>=864e5?Ce:n>=36e5?"hours":n>=6e4?"minutes":"seconds")}e=a}t.baseUnit=i||Ce}(t),"fit"!==e&&"auto"!==t.baseUnitStep||Je(t),t}Ze.prototype.displayRange=function(){return{min:this.displayStart,max:this.displayEnd}},Ze.prototype.displayIndices=function(){if(!this._indices){var t=this.options,e=t.baseUnit,i=t.baseUnitStep,o=De(this.displayStart,this.valueStart,e,i),r=De(this.displayEnd,this.valueStart,e,i);this._indices={min:o,max:r}}return this._indices},Ze.prototype.total=function(){return{min:this.start,max:this.end}},Ze.prototype.totalCount=function(){return this.totalIndex(this.end)+(this.options.justified?1:0)},Ze.prototype.valueRange=function(){return{min:this.valueStart,max:this.valueEnd}},Ze.prototype.valueIndex=function(t){var e=this.options;return Math.floor(De(t,this.valueStart,e.baseUnit,e.baseUnitStep))},Ze.prototype.totalIndex=function(t){var e=this.options;return Math.floor(De(t,this.start,e.baseUnit,e.baseUnitStep))},Ze.prototype.dateIndex=function(t){var e=this.options;return De(t,this.valueStart,e.baseUnit,e.baseUnitStep)},Ze.prototype.valuesCount=function(){return this.valueIndex(this.valueEnd)+1},Ze.prototype.values=function(){var t=this._values;if(!t){var e=this.options,i=this.valueRange();this._values=t=[];for(var o=i.min;o<=i.max;)t.push(o),o=Te(o,e.baseUnitStep,e.baseUnit,e.weekStartDay)}return t},Ze.prototype.dateAt=function(t,e){var i=this.options;return Te(e?this.start:this.valueStart,i.baseUnitStep*t,i.baseUnit,i.weekStartDay)},Ze.prototype.roundToTotalStep=function(t,e,i){var o=this.options,r=o.baseUnit,n=o.baseUnitStep,s=o.weekStartDay,a=this.start,p=De(t,a,r,n),l=e?Math.ceil(p):Math.floor(p);return i&&(l+=i),Te(a,l*n,r,s)};var $e=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.clone=function(){var t=new e(Object.assign({},this.options),this.chartService);return t.createLabels(),t},e.prototype.categoriesHash=function(){var t=this.dataRange.total().min;return this.options.baseUnit+this.options.baseUnitStep+t},e.prototype.initUserOptions=function(t){return t},e.prototype.initFields=function(){t.prototype.initFields.call(this);var e=this.chartService,i=e.intl,o=this.options,r=o.categories||[];if(r._parsed||((r=Fe(i,r))._parsed=!0),o=j({roundToBaseUnit:!0},o,{categories:r,min:Ue(i,o.min),max:Ue(i,o.max),weekStartDay:He(o,i)}),e.panning&&e.isPannable(o.vertical?x:m)&&(o.roundToBaseUnit=!1),o.userSetBaseUnit=o.userSetBaseUnit||o.baseUnit,o.userSetBaseUnitStep=o.userSetBaseUnitStep||o.baseUnitStep,this.options=o,o.srcCategories=r,r.length>0){var n=Ye(r),s=o.maxDivisions;if(this.dataRange=new Ze(n.min,n.max,Qe(o)),s){var a=this.dataRange.displayRange(),p=Object.assign({},o,{justified:!0,roundToBaseUnit:!1,baseUnit:"fit",min:a.min,max:a.max,maxDateGroups:s}),l=this.dataRange.options;Je(p,l.baseUnit,l.baseUnitStep),this.divisionRange=new Ze(n.min,n.max,p)}else this.divisionRange=this.dataRange}else o.baseUnit=o.baseUnit||Ce,this.dataRange=this.divisionRange=new We(o);this.rangeLabels=[]},e.prototype.tickIndices=function(e){var i=this.dataRange,o=this.divisionRange,r=o.valuesCount();if(!this.options.maxDivisions||!r)return t.prototype.tickIndices.call(this,e);var n=[],s=o.values(),a=0;this.options.justified||(s=s.concat(o.dateAt(r)),a=.5);for(var p=0;p<s.length;p++)if(n.push(i.dateIndex(s[p])+a),1!==e&&p>=1){var l=n.length-1;n.splice(p,0,n[l-1]+(n[l]-n[l-1])*e)}return n},e.prototype.shouldRenderNote=function(t){var e=this.range(),i=this.options.categories||[];return Ie(t,e.min)>=0&&Ie(t,e.max)<=0&&i.length},e.prototype.parseNoteValue=function(t){return Ue(this.chartService.intl,t)},e.prototype.noteSlot=function(t){return this.getSlot(t)},e.prototype.translateRange=function(t){var e=this.options,i=e.baseUnit,o=e.weekStartDay,r=e.vertical,n=this.lineBox(),s=r?n.height():n.width(),a=this.range(),p=s/(a.max-a.min),l=Ot(t/p,10);if(a.min&&a.max){var c=Re(e.min||a.min,l),h=Re(e.max||a.max,l);a={min:Te(c,0,i,o),max:Te(h,0,i,o)}}return a},e.prototype.scaleRange=function(t){var e=Math.abs(t),i=this.range(),o=i.min,r=i.max;if(o&&r){for(;e--;){var n=ze(o,r),s=Math.round(.1*n);t<0?(o=Re(o,s),r=Re(r,-s)):(o=Re(o,-s),r=Re(r,s))}i={min:o,max:r}}return i},e.prototype.labelsRange=function(){return{min:this.options.labels.skip,max:this.divisionRange.valuesCount()}},e.prototype.pan=function(t){if(this.isEmpty())return null;var e=this.options,i=this.lineBox(),o=e.vertical?i.height():i.width(),r=this.dataRange.displayRange(),n=r.min,s=r.max,a=this.dataRange.total(),p=Ot(t/(o/(s-n)),10)*(e.reverse?-1:1),l=Re(n,p),c=Re(s,p),h=this.limitRange(Be(l),Be(c),Be(a.min),Be(a.max),p);return h?(h.min=Oe(h.min),h.max=Oe(h.max),h.baseUnit=e.baseUnit,h.baseUnitStep=e.baseUnitStep||1,h.userSetBaseUnit=e.userSetBaseUnit,h.userSetBaseUnitStep=e.userSetBaseUnitStep,h):void 0},e.prototype.pointsRange=function(e,i){if(this.isEmpty())return null;var o=t.prototype.pointsRange.call(this,e,i),r=this.dataRange.displayRange(),n=this.dataRange.displayIndices(),s=ze(r.max,r.min)/(n.max-n.min),a=this.options;return{min:Re(r.min,o.min*s),max:Re(r.min,o.max*s),baseUnit:a.userSetBaseUnit||a.baseUnit,baseUnitStep:a.userSetBaseUnitStep||a.baseUnitStep}},e.prototype.zoomRange=function(t){if(this.isEmpty())return null;var e=this.options,i="fit"===e.userSetBaseUnit,o=this.dataRange.total(),r=this.dataRange.displayRange(),n=r.min,s=r.max,a=this.dataRange.options,p=a.weekStartDay,l=a.baseUnit,c=a.baseUnitStep,h=Te(n,t*c,l,p),u=Te(s,-t*c,l,p);if(i){var d,f,g=e.autoBaseUnitSteps,y=e.maxDateGroups,v=St(g[l])*y*ke[l],m=ze(s,n),x=ze(u,h),_=Xe.indexOf(l);if(x<ke[l]&&"milliseconds"!==l)l=Xe[_-1],h=Re(n,f=(m-(y-1)*(d=St(g[l]))*ke[l])/2),u=Re(s,-f);else if(x>v&&l!==Se){var b=0;do{_++,l=Xe[_],b=0,f=2*ke[l];do{d=g[l][b],b++}while(b<g[l].length&&f*d<m)}while(l!==Se&&f*d<m);(f=(f*d-m)/2)>0&&(h=Re(n,-f),u=Re(s,f),h=Re(h,kt(u,o.min,o.max)-u),u=Re(u,kt(h,o.min,o.max)-h))}}return h<o.min&&(h=o.min),u>o.max&&(u=o.max),h&&u&&ze(u,h)>0?{min:h,max:u,baseUnit:e.userSetBaseUnit||e.baseUnit,baseUnitStep:e.userSetBaseUnitStep||e.baseUnitStep}:void 0},e.prototype.range=function(){return this.dataRange.displayRange()},e.prototype.createLabels=function(){t.prototype.createLabels.call(this),this.createRangeLabels()},e.prototype.clearLabels=function(){t.prototype.clearLabels.call(this),this.rangeLabels=[]},e.prototype.arrangeLabels=function(){this.arrangeRangeLabels(),t.prototype.arrangeLabels.call(this)},e.prototype.arrangeRangeLabels=function(){var t=this.options,e=this.rangeLabels;if(0!==e.length){var i=this.lineBox(),o=t.vertical,r=t.rangeLabels.mirror||t.labels.mirror,n=e[0];if(n){var s=o?i.y1-n.box.height()/2:i.x1;this.positionLabel(n,r,s)}var a=e[1];if(a){var p=o?i.y2-a.box.height()/2:i.x2;this.positionLabel(a,r,p)}}},e.prototype.autoRotateLabels=function(){t.prototype.autoRotateLabels.call(this),this.autoRotateRangeLabels()},e.prototype.hideOutOfRangeLabels=function(){t.prototype.hideOutOfRangeLabels.call(this),this.hideOverlappingLabels()},e.prototype.hideOverlappingLabels=function(){var t=this.rangeLabels,e=this.labels;if(0!==t.length){var i=t[0];if(i&&i.options.visible)for(var o=0;o<e.length;o++){if(!s(i,e[o]))break}var r=t[1];if(r&&r.options.visible)for(var n=e.length-1;n>0;--n){if(!s(r,e[n]))break}}function s(t,e){return!(e.options.visible&&!e.box.overlaps(t.box))&&(e.options.visible=!1,!0)}},e.prototype.contentBox=function(){for(var e=t.prototype.contentBox.call(this),i=this.rangeLabels,o=0;o<i.length;o++){var r=i[o];r.options.visible&&e.wrap(r.box)}return e},e.prototype.createAxisLabel=function(t,e,i){void 0===i&&(i={});var o=this.options,r=o.dataItems&&!o.maxDivisions?o.dataItems[t]:null,n=this.divisionRange.dateAt(t),s=e.dateFormats[this.divisionRange.options.baseUnit];e.format=e.format||s,i.dataItem=r;var a=this.axisLabelText(n,e,i);if(a)return new ve(n,a,t,r,e)},e.prototype.createRangeLabels=function(){var t=this,e=this.divisionRange,i=e.displayStart,o=e.displayEnd,r=this.options,n=Object.assign({},r.labels,r.rangeLabels,{align:a,zIndex:r.zIndex});if(!0===n.visible){this.normalizeLabelRotation(n),n.alignRotation=a,"auto"===n.rotation&&(n.rotation=0,r.autoRotateRangeLabels=!0);var s=n.dateFormats[this.divisionRange.options.baseUnit];n.format=n.format||s;var p=function(e,i,o){if(o){var r=new ve(i,o,e,null,n);t.append(r),t.rangeLabels.push(r)}};p(0,i,this.axisLabelText(i,n,{index:0,count:2})),p(1,o,this.axisLabelText(o,n,{index:1,count:2}))}},e.prototype.autoRotateRangeLabels=function(){var t=this,e=this.rangeLabels;if(this.options.autoRotateRangeLabels&&!this.options.vertical&&2===e.length){var i=function(e,i,o){var r=2*Math.abs(i[o+1]-i[o]),n=t.autoRotateLabelAngle(e.box,r);0!==n&&(e.options.rotation=n,e.reflow(new Nt))},o=this.getMajorTickPositions();i(e[0],o,0),i(e[1],o,o.length-2)}},e.prototype.categoryIndex=function(t){return this.dataRange.valueIndex(t)},e.prototype.slot=function(t,e,i){var o=this.dataRange,r=t,n=e;r instanceof Date&&(r=o.dateIndex(r)),n instanceof Date&&(n=o.dateIndex(n));var s=this.getSlot(r,n,i);if(s)return s.toRect()},e.prototype.getSlot=function(e,i,o){var r=e,n=i;return"object"==typeof r&&(r=this.categoryIndex(r)),"object"==typeof n&&(n=this.categoryIndex(n)),t.prototype.getSlot.call(this,r,n,o)},e.prototype.valueRange=function(){var t=Ye(this.options.srcCategories);return{min:Oe(t.min),max:Oe(t.max)}},e.prototype.categoryAt=function(t,e){return this.dataRange.dateAt(t,e)},e.prototype.categoriesCount=function(){return this.dataRange.valuesCount()},e.prototype.rangeIndices=function(){return this.dataRange.displayIndices()},e.prototype.labelsBetweenTicks=function(){return!this.divisionRange.options.justified},e.prototype.prepareUserOptions=function(){this.isEmpty()||(this.options.categories=this.dataRange.values())},e.prototype.getCategory=function(t){var e=this.pointCategoryIndex(t);return null===e?null:this.dataRange.dateAt(e)},e.prototype.totalIndex=function(t){return this.dataRange.totalIndex(t)},e.prototype.currentRangeIndices=function(){var t=this.dataRange.valueRange();return{min:this.dataRange.totalIndex(t.min),max:this.dataRange.totalIndex(t.max)}},e.prototype.totalRange=function(){return this.dataRange.total()},e.prototype.totalCount=function(){return this.dataRange.totalCount()},e.prototype.isEmpty=function(){return!this.options.srcCategories.length},e.prototype.roundedRange=function(){if(!1!==this.options.roundToBaseUnit||this.isEmpty())return this.range();var t=this.options,e=Ye(t.srcCategories);return new Ze(e.min,e.max,Object.assign({},t,{justified:!1,roundToBaseUnit:!0,justifyEnd:t.justified})).displayRange()},e}(qe);It($e,{type:l,labels:{dateFormats:Ke},rangeLabels:{visible:!1},autoBaseUnitSteps:{milliseconds:[1,10,100],seconds:[1,2,5,15,30],minutes:[1,2,5,15,30],hours:[1,2,3],days:[1,2,3],weeks:[1,2],months:[1,2,3,6],years:[1,2,3,5,10,25,50]},maxDateGroups:10});var ti=$e;function ei(t,e){return Ot(Math.floor(t/e)*e,10)}function ii(t,e){return Ot(Math.ceil(t/e)*e,10)}function oi(t){return Math.max(Math.min(t,3e5),-3e5)}var ri=Math.pow(10,-9),ni=function(t){function e(e,i,o,r){t.call(this,Object.assign({},o,{seriesMin:e,seriesMax:i}),r)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.initUserOptions=function(t){var e=function(t,e,i){var o=i.narrowRange,r=function(t,e,i){if(!t&&!e)return 0;var o;if(t>=0&&e>=0){var r=t===e?0:t;if(!1===i||!i&&(e-r)/e>.2)return 0;o=Math.max(0,r-(e-r)/2)}else o=t;return o}(t,e,o),n=function(t,e,i){if(!t&&!e)return 1;var o;if(t<=0&&e<=0){var r=t===e?0:e,n=Math.abs((r-t)/r);if(!1===i||!i&&n>.2)return 0;o=Math.min(0,r-(t-r)/2)}else o=e;return o}(t,e,o),s=Ut(r,n),a={majorUnit:s};!1!==i.roundToMajorUnit&&(r<0&&si(r,s,1/3)&&(r-=s),n>0&&si(n,s,1/3)&&(n+=s));return a.min=ei(r,s),a.max=ii(n,s),a}(t.seriesMin,t.seriesMax,t);return this.totalOptions=function(t,e){return{min:xt(e.min)?Math.min(t.min,e.min):t.min,max:xt(e.max)?Math.max(t.max,e.max):t.max,majorUnit:t.majorUnit}}(e,t),function(t,e){var i,o,r=e;if(e){!function(t,e){for(var i=0;i<e.length;i++){var o=e[i];null===t[o]&&(t[o]=void 0)}}(e,["min","max"]),i=xt(e.min),o=xt(e.max);var n=i||o;n&&e.min===e.max&&(e.min>0?e.min=0:e.max=1),e.majorUnit?(t.min=ei(t.min,e.majorUnit),t.max=ii(t.max,e.majorUnit)):n&&(r=j(t,e),t.majorUnit=Ut(r.min,r.max))}t.minorUnit=(r.majorUnit||t.majorUnit)/5;var s=j(t,r);s.min>=s.max&&(i&&!o?s.max=s.min+s.majorUnit:!i&&o&&(s.min=s.max-s.majorUnit));return s}(e,t)},e.prototype.initFields=function(){this.totalMin=this.totalOptions.min,this.totalMax=this.totalOptions.max,this.totalMajorUnit=this.totalOptions.majorUnit,this.seriesMin=this.options.seriesMin,this.seriesMax=this.options.seriesMax},e.prototype.clone=function(){return new e(this.seriesMin,this.seriesMax,Object.assign({},this.options),this.chartService)},e.prototype.startValue=function(){return 0},e.prototype.range=function(){var t=this.options;return{min:t.min,max:t.max}},e.prototype.getDivisions=function(t){if(0===t)return 1;var e=this.options,i=e.max-e.min;return Math.floor(Ot(i/t,3))+1},e.prototype.getTickPositions=function(t,e){var i=this.options,o=i.vertical,r=i.reverse,n=this.lineBox(),s=t*((o?n.height():n.width())/(i.max-i.min)),a=this.getDivisions(t),p=(o?-1:1)*(r?-1:1),l=[],c=n[(o?x:m)+(1===p?1:2)],h=0;e&&(h=e/t);for(var u=0;u<a;u++)u%h!=0&&l.push(Ot(c,3)),c+=s*p;return l},e.prototype.getMajorTickPositions=function(){return this.getTickPositions(this.options.majorUnit)},e.prototype.getMinorTickPositions=function(){return this.getTickPositions(this.options.minorUnit)},e.prototype.getSlot=function(t,e,i){void 0===i&&(i=!1);var o,r,n=this.options,s=n.vertical,a=n.reverse,p=s?x:m,l=this.lineBox(),c=l[p+(a?2:1)],h=(a?-1:1)*((s?l.height():l.width())/(n.max-n.min)),u=new Nt(l.x1,l.y1,l.x1,l.y1),d=t,f=e;return xt(d)||(d=f||0),xt(f)||(f=d||0),i&&(d=Math.max(Math.min(d,n.max),n.min),f=Math.max(Math.min(f,n.max),n.min)),s?(o=n.max-Math.max(d,f),r=n.max-Math.min(d,f)):(o=Math.min(d,f)-n.min,r=Math.max(d,f)-n.min),u[p+1]=oi(c+h*(a?r:o)),u[p+2]=oi(c+h*(a?o:r)),u},e.prototype.getValue=function(t){var e=this.options,i=e.vertical,o=e.reverse,r=Number(e.max),n=Number(e.min),s=i?x:m,a=this.lineBox(),p=a[s+(o?2:1)],l=i?a.height():a.width(),c=(o?-1:1)*(t[s]-p),h=c*((r-n)/l);return c<0||c>l?null:Ot(i?r-h:n+h,10)},e.prototype.translateRange=function(t){var e=this.options,i=e.vertical,o=e.reverse,r=e.max,n=e.min,s=this.lineBox(),a=i?s.height():s.width(),p=Ot(t/(a/(r-n)),10);return!i&&!o||i&&o||(p=-p),{min:n+p,max:r+p,offset:p}},e.prototype.scaleRange=function(t){var e=this.options,i=-t*e.majorUnit;return{min:e.min-i,max:e.max+i}},e.prototype.labelsCount=function(){return this.getDivisions(this.options.majorUnit)},e.prototype.createAxisLabel=function(t,e,i){var o=this.options,r=Ot(o.min+t*o.majorUnit,10),n=this.axisLabelText(r,e,i);return new ve(r,n,t,null,e)},e.prototype.shouldRenderNote=function(t){var e=this.range();return e.min<=t&&t<=e.max},e.prototype.pan=function(t){var e=this.translateRange(t);return this.limitRange(e.min,e.max,this.totalMin,this.totalMax,e.offset)},e.prototype.pointsRange=function(t,e){var i=this.getValue(t),o=this.getValue(e),r=Math.min(i,o),n=Math.max(i,o);if(this.isValidRange(r,n))return{min:r,max:n}},e.prototype.zoomRange=function(t){var e=this.totalMin,i=this.totalMax,o=this.scaleRange(t),r=kt(o.min,e,i),n=kt(o.max,e,i);if(this.isValidRange(r,n))return{min:r,max:n}},e.prototype.isValidRange=function(t,e){return e-t>ri},e}(Ae);function si(t,e,i){var o=Ot(Math.abs(t%e),10);return 0===o||o>e*(1-i)}It(ni,{type:"numeric",min:0,max:1,vertical:!0,majorGridLines:{visible:!0,width:1,color:n},labels:{format:"#.####################"},zIndex:1});var ai=ni,pi=function(t){function e(e,i,o,r){var n=Oe(e),s=Oe(i),a=r.intl,p=o||{};p=function(t,e,i){var o=i.min||t,r=i.max||e,n=i.baseUnit||(r&&o?function(t){var e="hours";t>=31536e6?e=Se:t>=26784e5?e="months":t>=6048e5?e="weeks":t>=864e5&&(e=Ce);return e}(Pe(r,o)):"hours"),s=ke[n],a=i.weekStartDay||0,p=je(Be(o)-1,n,a)||Oe(r),l=Le(Be(r)+1,n,a),c=(i.majorUnit?i.majorUnit:void 0)||ii(Ut(p.getTime(),l.getTime()),s)/s,h=Ge(p,l,n),u=ii(h,c)-h,d=Math.floor(u/2),f=u-d;i.baseUnit||delete i.baseUnit;return i.baseUnit=i.baseUnit||n,i.min=i.min||Te(p,-d,n,a),i.max=i.max||Te(l,f,n,a),i.minorUnit=i.minorUnit||c/5,i.majorUnit=c,i}(n,s,p=j(p||{},{min:Ue(a,p.min),max:Ue(a,p.max),axisCrossingValue:Fe(a,p.axisCrossingValues||p.axisCrossingValue),weekStartDay:He(p,a)})),t.call(this,p,r),this.intlService=a,this.seriesMin=n,this.seriesMax=s;var l=p.weekStartDay||0;this.totalMin=Be(je(Be(n)-1,p.baseUnit,l)),this.totalMax=Be(Le(Be(s)+1,p.baseUnit,l))}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.clone=function(){return new e(this.seriesMin,this.seriesMax,Object.assign({},this.options),this.chartService)},e.prototype.range=function(){var t=this.options;return{min:t.min,max:t.max}},e.prototype.getDivisions=function(t){var e=this.options;return Math.floor(Ge(e.min,e.max,e.baseUnit)/t+1)},e.prototype.getTickPositions=function(t){for(var e=this.options,i=e.vertical,o=this.lineBox(),r=(i?-1:1)*(e.reverse?-1:1),n=o[(i?x:m)+(1===r?1:2)],s=this.getDivisions(t),a=ze(e.max,e.min),p=(i?o.height():o.width())/a,l=e.weekStartDay||0,c=[n],h=1;h<s;h++){var u=n+ze(Te(e.min,h*t,e.baseUnit,l),e.min)*p*r;c.push(Ot(u,3))}return c},e.prototype.getMajorTickPositions=function(){return this.getTickPositions(this.options.majorUnit)},e.prototype.getMinorTickPositions=function(){return this.getTickPositions(this.options.minorUnit)},e.prototype.getSlot=function(t,e,i){return ai.prototype.getSlot.call(this,Ue(this.intlService,t),Ue(this.intlService,e),i)},e.prototype.getValue=function(t){var e=ai.prototype.getValue.call(this,t);return null!==e?Oe(e):null},e.prototype.labelsCount=function(){return this.getDivisions(this.options.majorUnit)},e.prototype.createAxisLabel=function(t,e,i){var o=this.options,r=t*o.majorUnit,n=o.weekStartDay||0,s=o.min;r>0&&(s=Te(s,r,o.baseUnit,n));var a=e.dateFormats[o.baseUnit];e.format=e.format||a;var p=this.axisLabelText(s,e,i);return new ve(s,p,t,null,e)},e.prototype.translateRange=function(t,e){var i=this.options,o=i.baseUnit,r=i.weekStartDay||0,n=this.lineBox(),s=i.vertical?n.height():n.width(),a=this.range(),p=s/ze(a.max,a.min),l=Ot(t/p,10)*(i.reverse?-1:1),c=Re(i.min,l),h=Re(i.max,l);return e||(c=Te(c,0,o,r),h=Te(h,0,o,r)),{min:c,max:h,offset:l}},e.prototype.scaleRange=function(t){for(var e=this.options,i=e.min,o=e.max,r=Math.abs(t);r--;){var n=ze(i,o),s=Math.round(.1*n);t<0?(i=Re(i,s),o=Re(o,-s)):(i=Re(i,-s),o=Re(o,s))}return{min:i,max:o}},e.prototype.shouldRenderNote=function(t){var e=this.range();return Ie(t,e.min)>=0&&Ie(t,e.max)<=0},e.prototype.pan=function(t){var e=this.translateRange(t,!0),i=this.limitRange(Be(e.min),Be(e.max),this.totalMin,this.totalMax,e.offset);if(i)return{min:Oe(i.min),max:Oe(i.max)}},e.prototype.pointsRange=function(t,e){var i=this.getValue(t),o=this.getValue(e),r=Math.min(i,o),n=Math.max(i,o);return{min:Oe(r),max:Oe(n)}},e.prototype.zoomRange=function(t){var e=this.scaleRange(t);return{min:Oe(kt(Be(e.min),this.totalMin,this.totalMax)),max:Oe(kt(Be(e.max),this.totalMin,this.totalMax))}},e}(Ae);It(pi,{type:l,majorGridLines:{visible:!0,width:1,color:n},labels:{dateFormats:Ke}});var li=pi,ci=function(t){function e(e,i,o,r){var n=j({majorUnit:10,min:e,max:i},o),s=n.majorUnit,a=function(t,e){var i,o=Ot(ui(t,e),10)%1;i=t<=0?e:0!==o&&(o<.3||o>.9)?Math.pow(e,ui(t,e)+.2):Math.pow(e,Math.ceil(ui(t,e)));return i}(i,s),p=function(t,e,i){var o=i.majorUnit,r=t;t<=0?r=e<=1?Math.pow(o,-2):1:i.narrowRange||(r=Math.pow(o,Math.floor(ui(t,o))));return r}(e,i,n),l=function(t,e,i,o){var r=i.min,n=i.max;xt(i.axisCrossingValue)&&i.axisCrossingValue<=0&&hi();xt(o.max)?o.max<=0&&hi():n=e;xt(o.min)?o.min<=0&&hi():r=t;return{min:r,max:n}}(p,a,n,o);n.max=l.max,n.min=l.min,n.minorUnit=o.minorUnit||Ot(s-1,10),t.call(this,n,r),this.totalMin=xt(o.min)?Math.min(p,o.min):p,this.totalMax=xt(o.max)?Math.max(a,o.max):a,this.logMin=Ot(ui(l.min,s),10),this.logMax=Ot(ui(l.max,s),10),this.seriesMin=e,this.seriesMax=i,this.createLabels()}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.clone=function(){return new e(this.seriesMin,this.seriesMax,Object.assign({},this.options),this.chartService)},e.prototype.startValue=function(){return this.options.min},e.prototype.getSlot=function(t,e,i){var o,r,n=this.options,s=this.logMin,a=this.logMax,p=n.reverse,l=n.vertical,c=n.majorUnit,h=l?x:m,u=this.lineBox(),d=u[h+(p?2:1)],f=(p?-1:1)*((l?u.height():u.width())/(a-s)),g=new Nt(u.x1,u.y1,u.x1,u.y1),y=t,v=e;return xt(y)||(y=v||1),xt(v)||(v=y||1),y<=0||v<=0?null:(i&&(y=Math.max(Math.min(y,n.max),n.min),v=Math.max(Math.min(v,n.max),n.min)),y=ui(y,c),v=ui(v,c),l?(o=a-Math.max(y,v),r=a-Math.min(y,v)):(o=Math.min(y,v)-s,r=Math.max(y,v)-s),g[h+1]=oi(d+f*(p?r:o)),g[h+2]=oi(d+f*(p?o:r)),g)},e.prototype.getValue=function(t){var e=this.options,i=this.logMin,o=this.logMax,r=e.reverse,n=e.vertical,s=e.majorUnit,a=this.lineBox(),p=n===r?1:-1,l=1===p?1:2,c=n?a.height():a.width(),h=(o-i)/c,u=n?x:m,d=a[u+l],f=p*(t[u]-d);if(f<0||f>c)return null;var g=i+f*h;return Ot(Math.pow(s,g),10)},e.prototype.range=function(){var t=this.options;return{min:t.min,max:t.max}},e.prototype.scaleRange=function(t){var e=this.options.majorUnit,i=-t;return{min:Math.pow(e,this.logMin-i),max:Math.pow(e,this.logMax+i)}},e.prototype.translateRange=function(t){var e=this.options,i=this.logMin,o=this.logMax,r=e.reverse,n=e.vertical,s=e.majorUnit,a=this.lineBox(),p=n?a.height():a.width(),l=Ot(t/(p/(o-i)),10);return!n&&!r||n&&r||(l=-l),{min:Math.pow(s,i+l),max:Math.pow(s,o+l),offset:l}},e.prototype.labelsCount=function(){var t=Math.floor(this.logMax);return Math.floor(t-this.logMin)+1},e.prototype.getMajorTickPositions=function(){var t=[];return this.traverseMajorTicksPositions((function(e){t.push(e)}),{step:1,skip:0}),t},e.prototype.createTicks=function(t){var e=this.options,i=e.majorTicks,o=e.minorTicks,r=e.vertical,n=e.labels.mirror,s=this.lineBox(),a={vertical:r};function p(e,i){a.tickX=n?s.x2:s.x2-i.size,a.tickY=n?s.y1-i.size:s.y1,a.position=e,t.append(_e(a,i))}return i.visible&&this.traverseMajorTicksPositions(p,i),o.visible&&this.traverseMinorTicksPositions(p,o),[]},e.prototype.createGridLines=function(t){var e=this.options,i=e.minorGridLines,o=e.majorGridLines,r=e.vertical,n=t.lineBox(),s={lineStart:n[r?"x1":"y1"],lineEnd:n[r?"x2":"y2"],vertical:r},a=[],p=this.gridLinesVisual();function l(t,e){ct(t,a)||(s.position=t,p.append(be(s,e)),a.push(t))}return o.visible&&this.traverseMajorTicksPositions(l,o),i.visible&&this.traverseMinorTicksPositions(l,i),p.children},e.prototype.traverseMajorTicksPositions=function(t,e){for(var i=this._lineOptions(),o=i.lineStart,r=i.step,n=this.logMin,s=this.logMax,a=Math.ceil(n)+e.skip;a<=s;a+=e.step){t(Ot(o+r*(a-n),10),e)}},e.prototype.traverseMinorTicksPositions=function(t,e){for(var i=this.options,o=i.min,r=i.max,n=i.minorUnit,s=i.majorUnit,a=this._lineOptions(),p=a.lineStart,l=a.step,c=this.logMin,h=this.logMax,u=Math.floor(c);u<h;u++)for(var d=this._minorIntervalOptions(u),f=e.skip;f<n;f+=e.step){var g=d.value+f*d.minorStep;if(g>r)break;if(g>=o)t(Ot(p+l*(ui(g,s)-c),10),e)}},e.prototype.createAxisLabel=function(t,e,i){var o=Math.ceil(this.logMin+t),r=Math.pow(this.options.majorUnit,o),n=this.axisLabelText(r,e,i);return new ve(r,n,t,null,e)},e.prototype.shouldRenderNote=function(t){var e=this.range();return e.min<=t&&t<=e.max},e.prototype.pan=function(t){var e=this.translateRange(t);return this.limitRange(e.min,e.max,this.totalMin,this.totalMax,e.offset)},e.prototype.pointsRange=function(t,e){var i=this.getValue(t),o=this.getValue(e);return{min:Math.min(i,o),max:Math.max(i,o)}},e.prototype.zoomRange=function(t){var e=this.options,i=this.totalMin,o=this.totalMax,r=this.scaleRange(t),n=kt(r.min,i,o),s=kt(r.max,i,o),a=e.majorUnit,p=s>n&&e.min&&e.max&&Ot(ui(e.max,a)-ui(e.min,a),10)<1,l=!(e.min===i&&e.max===o)&&Ot(ui(s,a)-ui(n,a),10)>=1;if(p||l)return{min:n,max:s}},e.prototype._minorIntervalOptions=function(t){var e=this.options,i=e.minorUnit,o=e.majorUnit,r=Math.pow(o,t);return{value:r,minorStep:(Math.pow(o,t+1)-r)/i}},e.prototype._lineOptions=function(){var t=this.options,e=t.reverse,i=t.vertical,o=i?x:m,r=this.lineBox(),n=i===e?1:-1,s=1===n?1:2;return{step:n*((i?r.height():r.width())/(this.logMax-this.logMin)),lineStart:r[o+s],lineBox:r}},e}(Ae);function hi(){throw new Error("Non positive values cannot be used for a logarithmic axis")}function ui(t,e){return Math.log(t)/Math.log(e)}It(ci,{type:"log",majorUnit:10,minorUnit:1,axisCrossingValue:1,vertical:!0,majorGridLines:{visible:!0,width:1,color:n},zIndex:1,_deferLabels:!0});var di=ci,fi={createGridLines:function(t){var e,i,o=this.options,r=Math.abs(this.box.center().y-t.lineBox().y1),n=[],s=!1;return o.majorGridLines.visible&&(e=this.majorGridLineAngles(t),s=!0,n=this.renderMajorGridLines(e,r,o.majorGridLines)),o.minorGridLines.visible&&(i=this.minorGridLineAngles(t,s),vt(n,this.renderMinorGridLines(i,r,o.minorGridLines,t,s))),n},renderMajorGridLines:function(t,e,i){return this.renderGridLines(t,e,i)},renderMinorGridLines:function(t,e,i,o,r){var n=this.radiusCallback&&this.radiusCallback(e,o,r);return this.renderGridLines(t,e,i,n)},renderGridLines:function(t,e,i,o){for(var r={stroke:{width:i.width,color:i.color,dashType:i.dashType}},n=this.box.center(),s=new C.geometry.Circle([n.x,n.y],e),a=this.gridLinesVisual(),p=0;p<t.length;p++){var l=new C.drawing.Path(r);o&&(s.radius=o(t[p])),l.moveTo(s.center).lineTo(s.pointAt(t[p]+180)),a.append(l)}return a.children},gridLineAngles:function(t,e,i,o,r){var n=this,s=this.intervals(e,i,o,r),a=t.options,p=a.visible&&!1!==(a.line||{}).visible;return ft(s,(function(t){var e=n.intervalAngle(t);if(!p||90!==e)return e}))}},gi=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.range=function(){return{min:0,max:this.options.categories.length}},e.prototype.reflow=function(t){this.box=t,this.reflowLabels()},e.prototype.lineBox=function(){return this.box},e.prototype.reflowLabels=function(){for(var t=this.labels,e=this.options.labels,i=e.skip||0,o=e.step||1,r=new Nt,n=0;n<t.length;n++){t[n].reflow(r);var s=t[n].box;t[n].reflow(this.getSlot(i+n*o).adjacentBox(0,s.width(),s.height()))}},e.prototype.intervals=function(t,e,i,o){void 0===o&&(o=!1);for(var r=this.options,n=r.categories.length/t||1,s=360/n,a=i||1,p=[],l=0,c=e||0;c<n;c+=a)l=r.reverse?360-c*s:c*s,l=Ot(l,3)%360,o&&ct(l,o)||p.push(l);return p},e.prototype.majorIntervals=function(){return this.intervals(1)},e.prototype.minorIntervals=function(){return this.intervals(.5)},e.prototype.intervalAngle=function(t){return(360+t+this.options.startAngle)%360},e.prototype.majorAngles=function(){var t=this;return ft(this.majorIntervals(),(function(e){return t.intervalAngle(e)}))},e.prototype.createLine=function(){return[]},e.prototype.majorGridLineAngles=function(t){var e=this.options.majorGridLines;return this.gridLineAngles(t,1,e.skip,e.step)},e.prototype.minorGridLineAngles=function(t,e){var i=this.options,o=i.minorGridLines,r=i.majorGridLines,n=e?this.intervals(1,r.skip,r.step):null;return this.gridLineAngles(t,.5,o.skip,o.step,n)},e.prototype.radiusCallback=function(t,e,i){if(e.options.type!==r){var o=Rt(360/(2*this.options.categories.length)),n=Math.cos(o)*t,s=this.majorAngles(),a=function(e){return!i&&ct(e,s)?t:n};return a}},e.prototype.createPlotBands=function(){for(var t=this.options.plotBands||[],e=this._plotbandGroup=new C.drawing.Group({zIndex:-1}),i=0;i<t.length;i++){var o=t[i],r=this.plotBandSlot(o),n=this.getSlot(o.from),s=o.from-Math.floor(o.from);r.startAngle+=s*n.angle;var a=Math.ceil(o.to)-o.to;r.angle-=(a+s)*n.angle;var p=Wt.current.createRing(r,{fill:{color:o.color,opacity:o.opacity},stroke:{opacity:o.opacity}});e.append(p)}this.appendVisual(e)},e.prototype.plotBandSlot=function(t){return this.getSlot(t.from,t.to-1)},e.prototype.getSlot=function(t,e){var i=this.options,o=i.justified,r=this.box,n=this.majorAngles(),s=n.length,a=360/s,p=t;i.reverse&&!o&&(p=(p+1)%s);var l=n[p=kt(Math.floor(p),0,s-1)];o&&(l-=a/2)<0&&(l+=360);var c=a*(kt(Math.ceil(e||p),p,s-1)-p+1);return new Kt(r.center(),0,r.height()/2,l,c)},e.prototype.slot=function(t,e){var i=this.getSlot(t,e),o=i.startAngle+180,r=o+i.angle;return new C.geometry.Arc([i.center.x,i.center.y],{startAngle:o,endAngle:r,radiusX:i.radius,radiusY:i.radius})},e.prototype.pointCategoryIndex=function(t){for(var e=this.options.categories.length,i=null,o=0;o<e;o++){if(this.getSlot(o).containsPoint(t)){i=o;break}}return i},e}(qe);It(gi,{startAngle:90,labels:{margin:E(10)},majorGridLines:{visible:!0},justified:!0}),j(gi.prototype,fi);var yi=gi,vi=function(t){function e(e,i){t.call(this,e,i);var o=this.options;o.minorUnit=o.minorUnit||o.majorUnit/2}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.getDivisions=function(t){return ai.prototype.getDivisions.call(this,t)-1},e.prototype.reflow=function(t){this.box=t,this.reflowLabels()},e.prototype.reflowLabels=function(){for(var t=this.options,e=this.labels,i=this.options.labels,o=i.skip||0,r=i.step||1,n=new Nt,s=this.intervals(t.majorUnit,o,r),a=0;a<e.length;a++){e[a].reflow(n);var p=e[a].box;e[a].reflow(this.getSlot(s[a]).adjacentBox(0,p.width(),p.height()))}},e.prototype.lineBox=function(){return this.box},e.prototype.intervals=function(t,e,i,o){void 0===o&&(o=!1);for(var r=this.options.min,n=this.getDivisions(t),s=[],a=i||1,p=e||0;p<n;p+=a){var l=(360+r+p*t)%360;o&&ct(l,o)||s.push(l)}return s},e.prototype.majorIntervals=function(){return this.intervals(this.options.majorUnit)},e.prototype.minorIntervals=function(){return this.intervals(this.options.minorUnit)},e.prototype.intervalAngle=function(t){return(540-t-this.options.startAngle)%360},e.prototype.createLine=function(){return[]},e.prototype.majorGridLineAngles=function(t){var e=this.options.majorGridLines;return this.gridLineAngles(t,this.options.majorUnit,e.skip,e.step)},e.prototype.minorGridLineAngles=function(t,e){var i=this.options,o=i.minorGridLines,r=i.majorGridLines,n=e?this.intervals(i.majorUnit,r.skip,r.step):null;return this.gridLineAngles(t,i.minorUnit,o.skip,o.step,n)},e.prototype.plotBandSlot=function(t){return this.getSlot(t.from,t.to)},e.prototype.getSlot=function(t,e){var i=this.options,o=this.box,r=i.startAngle,n=kt(t,i.min,i.max),s=kt(e||n,n,i.max);if(i.reverse&&(n*=-1,s*=-1),(s=(540-s-r)%360)<(n=(540-n-r)%360)){var a=n;n=s,s=a}return new Kt(o.center(),0,o.height()/2,n,s-n)},e.prototype.slot=function(t,e){void 0===e&&(e=t);var i,o,r=this.options,n=360-r.startAngle,s=this.getSlot(t,e),a=Math.min(t,e),p=Math.max(t,e);return r.reverse?(i=a,o=p):(i=360-p,o=360-a),i=(i+n)%360,o=(o+n)%360,new C.geometry.Arc([s.center.x,s.center.y],{startAngle:i,endAngle:o,radiusX:s.radius,radiusY:s.radius})},e.prototype.getValue=function(t){var e=this.options,i=this.box.center(),o=t.x-i.x,r=t.y-i.y,n=Math.round(_t(Math.atan2(r,o))),s=e.startAngle;return e.reverse||(n*=-1,s*=-1),(n+s+360)%360},e.prototype.valueRange=function(){return{min:0,max:2*Math.PI}},e}(Ae);It(vi,{type:"polar",startAngle:0,reverse:!1,majorUnit:60,min:0,max:360,labels:{margin:E(10)},majorGridLines:{color:n,visible:!0,width:1},minorGridLines:{color:"#aaa"}}),j(vi.prototype,fi,{createPlotBands:yi.prototype.createPlotBands,majorAngles:yi.prototype.majorAngles,range:ai.prototype.range,labelsCount:ai.prototype.labelsCount,createAxisLabel:ai.prototype.createAxisLabel});var mi=vi;function xi(t,e){return 180-Math.abs(Math.abs(t-e)-180)}var _i={options:{majorGridLines:{visible:!0}},createPlotBands:function(){var t=this.options,e=t.majorGridLines.type,i=t.plotBands;void 0===i&&(i=[]);for(var o=this.plotArea.polarAxis,n=o.majorAngles(),s=o.box.center(),a=this._plotbandGroup=new C.drawing.Group({zIndex:-1}),p=0;p<i.length;p++){var l=i[p],c={fill:{color:l.color,opacity:l.opacity},stroke:{opacity:l.opacity}},h=this.getSlot(l.from,l.to,!0),u=new Kt(s,s.y-h.y2,s.y-h.y1,0,360),d=void 0;d=e===r?Wt.current.createRing(u,c):C.drawing.Path.fromPoints(this.plotBandPoints(u,n),c).close(),a.append(d)}this.appendVisual(a)},plotBandPoints:function(t,e){for(var i=[],o=[],r=[t.center.x,t.center.y],n=new C.geometry.Circle(r,t.innerRadius),s=new C.geometry.Circle(r,t.radius),a=0;a<e.length;a++)i.push(n.pointAt(e[a]+180)),o.push(s.pointAt(e[a]+180));return i.reverse(),i.push(i[0]),o.push(o[0]),o.concat(i)},createGridLines:function(t){var e=this.options,i=this.radarMajorGridLinePositions(),o=t.majorAngles(),r=t.box.center(),n=[];if(e.majorGridLines.visible&&(n=this.renderGridLines(r,i,o,e.majorGridLines)),e.minorGridLines.visible){var s=this.radarMinorGridLinePositions();vt(n,this.renderGridLines(r,s,o,e.minorGridLines))}return n},renderGridLines:function(t,e,i,o){var n={stroke:{width:o.width,color:o.color,dashType:o.dashType}},s=o.skip;void 0===s&&(s=0);var a=o.step;void 0===a&&(a=0);for(var p=this.gridLinesVisual(),l=s;l<e.length;l+=a){var c=t.y-e[l];if(c>0){var h=new C.geometry.Circle([t.x,t.y],c);if(o.type===r)p.append(new C.drawing.Circle(h,n));else{for(var u=new C.drawing.Path(n),d=0;d<i.length;d++)u.lineTo(h.pointAt(i[d]+180));u.close(),p.append(u)}}}return p.children},getValue:function(t){var e=this.lineBox(),i=this.plotArea.polarAxis,o=i.majorAngles(),n=i.box.center(),s=t.distanceTo(n),a=s;if(this.options.majorGridLines.type!==r&&o.length>1){var p=t.x-n.x,l=t.y-n.y,c=(_t(Math.atan2(l,p))+540)%360;o.sort((function(t,e){return xi(t,c)-xi(e,c)}));var h=90-xi(o[0],o[1])/2,u=180-xi(c,o[0])-h;a=s*(Math.sin(Rt(u))/Math.sin(Rt(h)))}return this.axisType().prototype.getValue.call(this,new Ft(e.x1,e.y2-a))}},bi=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.radarMajorGridLinePositions=function(){return this.getTickPositions(this.options.majorUnit)},e.prototype.radarMinorGridLinePositions=function(){var t=this.options,e=0;return t.majorGridLines.visible&&(e=t.majorUnit),this.getTickPositions(t.minorUnit,e)},e.prototype.axisType=function(){return t},e}(ai);j(bi.prototype,_i);var wi=bi,Ai=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.radarMajorGridLinePositions=function(){var t=[];return this.traverseMajorTicksPositions((function(e){t.push(e)}),this.options.majorGridLines),t},e.prototype.radarMinorGridLinePositions=function(){var t=[];return this.traverseMinorTicksPositions((function(e){t.push(e)}),this.options.minorGridLines),t},e.prototype.axisType=function(){return t},e}(di);j(Ai.prototype,_i);var Ci=Ai;function Si(t){return t<=0?-1:1}var ki=function(t){function e(e){t.call(this),this.closed=e}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.process=function(t){var e=t.slice(0),i=[],o=this.closed,r=e.length;if(r>2&&(this.removeDuplicates(0,e),r=e.length),r<2||2===r&&e[0].equals(e[1]))return i;var n,s,a=e[0],p=e[1],l=e[2];for(i.push(new C.geometry.Segment(a));a.equals(e[r-1]);)o=!0,e.pop(),r--;if(2===r){var c=this.tangent(a,p,m,x);return St(i).controlOut(this.firstControlPoint(c,a,p,m,x)),i.push(new C.geometry.Segment(p,this.secondControlPoint(c,a,p,m,x))),i}if(o){a=e[r-1],p=e[0],l=e[1];var h=this.controlPoints(a,p,l);n=h[1],s=h[0]}else{var u=this.tangent(a,p,m,x);n=this.firstControlPoint(u,a,p,m,x)}for(var d=n,f=0;f<=r-3;f++)if(this.removeDuplicates(f,e),f+3<=(r=e.length)){a=e[f],p=e[f+1],l=e[f+2];var g=this.controlPoints(a,p,l);St(i).controlOut(d),d=g[1];var y=g[0];i.push(new C.geometry.Segment(p,y))}if(o){a=e[r-2],p=e[r-1],l=e[0];var v=this.controlPoints(a,p,l);St(i).controlOut(d),i.push(new C.geometry.Segment(p,v[0])),St(i).controlOut(v[1]),i.push(new C.geometry.Segment(l,s))}else{var _=this.tangent(p,l,m,x);St(i).controlOut(d),i.push(new C.geometry.Segment(l,this.secondControlPoint(_,p,l,m,x)))}return i},e.prototype.removeDuplicates=function(t,e){for(;e[t+1]&&(e[t].equals(e[t+1])||e[t+1].equals(e[t+2]));)e.splice(t+1,1)},e.prototype.invertAxis=function(t,e,i){var o=!1;if(t.x===e.x)o=!0;else if(e.x===i.x)(e.y<i.y&&t.y<=e.y||i.y<e.y&&e.y<=t.y)&&(o=!0);else{var r=this.lineFunction(t,e),n=this.calculateFunction(r,i.x);t.y<=e.y&&i.y<=n||e.y<=t.y&&i.y>=n||(o=!0)}return o},e.prototype.isLine=function(t,e,i){var o=this.lineFunction(t,e),r=this.calculateFunction(o,i.x);return t.x===e.x&&e.x===i.x||Ot(r,1)===Ot(i.y,1)},e.prototype.lineFunction=function(t,e){var i=(e.y-t.y)/(e.x-t.x);return[t.y-i*t.x,i]},e.prototype.controlPoints=function(t,e,i){var o,r=m,n=x,s=!1,a=!1;if(this.isLine(t,e,i))o=this.tangent(t,e,m,x);else{var p={x:this.isMonotonicByField(t,e,i,m),y:this.isMonotonicByField(t,e,i,x)};if(p.x&&p.y)o=this.tangent(t,i,m,x),s=!0;else if(this.invertAxis(t,e,i)&&(r=x,n=m),p[r])o=0;else o=.01*(i[n]<t[n]&&t[n]<=e[n]||t[n]<i[n]&&e[n]<=t[n]?Si((i[n]-t[n])*(e[r]-t[r])):-Si((i[r]-t[r])*(e[n]-t[n]))),a=!0}var l=this.secondControlPoint(o,t,e,r,n);if(a){var c=r;r=n,n=c}var h=this.firstControlPoint(o,e,i,r,n);return s&&(this.restrictControlPoint(t,e,l,o),this.restrictControlPoint(e,i,h,o)),[l,h]},e.prototype.restrictControlPoint=function(t,e,i,o){t.y<e.y?e.y<i.y?(i.x=t.x+(e.y-t.y)/o,i.y=e.y):i.y<t.y&&(i.x=e.x-(e.y-t.y)/o,i.y=t.y):i.y<e.y?(i.x=t.x-(t.y-e.y)/o,i.y=e.y):t.y<i.y&&(i.x=e.x+(t.y-e.y)/o,i.y=t.y)},e.prototype.tangent=function(t,e,i,o){var r,n=e[i]-t[i],s=e[o]-t[o];return r=0===n?0:s/n,r},e.prototype.isMonotonicByField=function(t,e,i,o){return i[o]>e[o]&&e[o]>t[o]||i[o]<e[o]&&e[o]<t[o]},e.prototype.firstControlPoint=function(t,e,i,o,r){var n=e[o],s=.333*(i[o]-n);return this.point(n+s,e[r]+s*t,o,r)},e.prototype.secondControlPoint=function(t,e,i,o,r){var n=e[o],s=i[o],a=.333*(s-n);return this.point(s-a,i[r]-a*t,o,r)},e.prototype.point=function(t,e,i,o){var r=new C.geometry.Point;return r[i]=t,r[o]=e,r},e.prototype.calculateFunction=function(t,e){for(var i=t.length,o=0,r=0;r<i;r++)o+=Math.pow(e,r)*t[r];return o},e}(C.Class),Pi=function(t){function e(e){t.call(this),this._axis=e,this.options=e.options}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.value=function(t){var e=this._axis,i=e.getCategory?e.getCategory(t):e.getValue(t);return i},e.prototype.slot=function(t,e,i){return void 0===i&&(i=!0),this._axis.slot(t,e,i)},e.prototype.range=function(){return this._axis.range()},e.prototype.valueRange=function(){return this._axis.valueRange()},e}(C.Class);function Ri(t,e){for(var i=0;i<e.length;i++)if(e[i].options.name===t)return e[i].prepareUserOptions(),new Pi(e[i])}var Oi=function(t){this.visual=t.visual,this.chartsVisual=t.chartContainer.visual,this._pane=t};Oi.prototype.findAxisByName=function(t){return Ri(t,this._pane.axes)};var Mi=Oi,Ti=function(t){function e(e){t.call(this),this._plotArea=e,this.visual=e.visual,this.backgroundVisual=e._bgVisual}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e}(C.Class);function ji(t){for(var e=t.length,i=0,o=0;o<e;o++){P(t[o])&&i++}return i}var Li={min:function(t){for(var e=t.length,i=u,o=0;o<e;o++){var r=t[o];P(r)&&(i=Math.min(i,r))}return i===u?t[0]:i},max:function(t){for(var e=t.length,i=d,o=0;o<e;o++){var r=t[o];P(r)&&(i=Math.max(i,r))}return i===d?t[0]:i},sum:function(t){for(var e=t.length,i=0,o=0;o<e;o++){var r=t[o];P(r)&&(i+=r)}return i},sumOrNull:function(t){var e=null;return ji(t)&&(e=Li.sum(t)),e},count:function(t){for(var e=t.length,i=0,o=0;o<e;o++){var r=t[o];null!==r&&xt(r)&&i++}return i},avg:function(t){var e=ji(t),i=t[0];return e>0&&(i=Li.sum(t)/e),i},first:function(t){for(var e=t.length,i=0;i<e;i++){var o=t[i];if(null!==o&&xt(o))return o}return t[0]}},Ii=Li;function zi(t,e){return null===e?e:nt(t)(e)}var Bi=function(t){function e(){t.call(this),this._valueFields={},this._otherFields={},this._nullValue={},this._undefinedValue={}}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.register=function(t,e,i){void 0===e&&(e=[y]),void 0===i&&(i={});for(var o=0;o<t.length;o++){var r=t[o];this._valueFields[r]=e,this._otherFields[r]=i,this._nullValue[r]=this._makeValue(e,null),this._undefinedValue[r]=this._makeValue(e,void 0)}},e.prototype.canonicalFields=function(t){return this.valueFields(t).concat(this.otherFields(t))},e.prototype.valueFields=function(t){return this._valueFields[t.type]||[y]},e.prototype.otherFields=function(t){return this._otherFields[t.type]||[y]},e.prototype.bindPoint=function(t,e,i){var o,r,n=t.data,s=xt(i)?i:n[e],a={valueFields:{value:s}},p=this.valueFields(t),l=this._otherFields[t.type];if(null===s)r=this._nullValue[t.type];else if(xt(s)){if(Array.isArray(s)){var c=s.slice(p.length);r=this._bindFromArray(s,p),o=this._bindFromArray(c,l)}else if("object"==typeof s){var h=this.sourceFields(t,p),u=this.sourceFields(t,l);r=this._bindFromObject(s,p,h),o=this._bindFromObject(s,l,u)}}else r=this._undefinedValue[t.type];return xt(r)&&(1===p.length?a.valueFields.value=r[p[0]]:a.valueFields=r),a.fields=o||{},a},e.prototype._makeValue=function(t,e){for(var i={},o=t.length,r=0;r<o;r++){i[t[r]]=e}return i},e.prototype._bindFromArray=function(t,e){var i={};if(e)for(var o=Math.min(e.length,t.length),r=0;r<o;r++)i[e[r]]=t[r];return i},e.prototype._bindFromObject=function(t,e,i){void 0===i&&(i=e);var o={};if(e)for(var r=e.length,n=0;n<r;n++){var s=e[n],a=i[n];null!==a&&(o[s]=zi(a,t))}return o},e.prototype.sourceFields=function(t,e){var i=[];if(e)for(var o=e.length,r=0;r<o;r++){var n=e[r],s=n===y?"field":n+"Field";i.push(null!==t[s]?t[s]||n:null)}return i},e}(C.Class);Bi.current=new Bi;var Vi=Bi,Ei=/percent(?:\w*)\((\d+)\)/,Di=new RegExp("^stddev(?:\\((\\d+(?:\\.\\d+)?)\\))?$"),Gi=function(t){function e(e,i,o){t.call(this),this.initGlobalRanges(e,i,o)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.initGlobalRanges=function(t,e,i){var o=e.data,r=Di.exec(t);if(r){this.valueGetter=this.createValueGetter(e,i);var n=this.getAverage(o),s=this.getStandardDeviation(o,n,!1),a=r[1]?parseFloat(r[1]):1,p={low:n.value-s*a,high:n.value+s*a};this.globalRange=function(){return p}}else if(t.indexOf&&t.indexOf("stderr")>=0){this.valueGetter=this.createValueGetter(e,i);var l=this.getStandardError(o,this.getAverage(o));this.globalRange=function(t){return{low:t-l,high:t+l}}}},e.prototype.createValueGetter=function(t,e){var i,o=t.data,r=Vi.current,n=r.valueFields(t),s=xt(o[0])?o[0]:{};if(_(s))i=nt("["+(e?n.indexOf(e):0)+"]");else if(P(s))i=nt();else if("object"==typeof s){i=nt(r.sourceFields(t,n)[n.indexOf(e)])}return i},e.prototype.getErrorRange=function(t,e){var i,o,r;if(!xt(e))return null;if(this.globalRange)return this.globalRange(t);if(_(e))i=t-e[0],o=t+e[1];else if(P(r=parseFloat(e)))i=t-r,o=t+r;else{if(!(r=Ei.exec(e)))throw new Error("Invalid ErrorBar value: "+e);var n=t*(parseFloat(r[1])/100);i=t-Math.abs(n),o=t+Math.abs(n)}return{low:i,high:o}},e.prototype.getStandardError=function(t,e){return this.getStandardDeviation(t,e,!0)/Math.sqrt(e.count)},e.prototype.getStandardDeviation=function(t,e,i){for(var o=t.length,r=i?e.count-1:e.count,n=0,s=0;s<o;s++){var a=this.valueGetter(t[s]);P(a)&&(n+=Math.pow(a-e.value,2))}return Math.sqrt(n/r)},e.prototype.getAverage=function(t){for(var e=t.length,i=0,o=0,r=0;r<e;r++){var n=this.valueGetter(t[r]);P(n)&&(i+=n,o++)}return{value:i/o,count:o}},e}(C.Class),Ui=C.support.browser||{},Fi=Ui.msie?.001:0,Hi="zero",Ni="bar",qi="column",Ki="line",Xi="pie",Yi="verticalLine",Wi=[Ni,qi,"ohlc","candlestick","boxPlot","verticalBoxPlot","bullet","rangeColumn","rangeBar","waterfall","horizontalWaterfall"],Zi="DOMMouseScroll mousewheel",Ji=function(t){function e(e,i,o,r,n,s){t.call(this,s),this.low=e,this.high=i,this.isVertical=o,this.chart=r,this.series=n}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.reflow=function(t){var e,i=this.options.endCaps,o=this.isVertical,r=this.getAxis().getSlot(this.low,this.high),n=t.center(),s=this.getCapsWidth(t,o),a=o?n.x:n.y,p=a-s,l=a+s;o?(e=[new Ft(n.x,r.y1),new Ft(n.x,r.y2)],i&&e.push(new Ft(p,r.y1),new Ft(l,r.y1),new Ft(p,r.y2),new Ft(l,r.y2)),this.box=new Nt(p,r.y1,l,r.y2)):(e=[new Ft(r.x1,n.y),new Ft(r.x2,n.y)],i&&e.push(new Ft(r.x1,p),new Ft(r.x1,l),new Ft(r.x2,p),new Ft(r.x2,l)),this.box=new Nt(r.x1,p,r.x2,l)),this.linePoints=e},e.prototype.getCapsWidth=function(t,e){var i=e?t.width():t.height();return Math.min(Math.floor(i/2),4)||4},e.prototype.createVisual=function(){var t=this,e=this.options,i=e.visual;i?this.visual=i({low:this.low,high:this.high,rect:this.box.toRect(),sender:this.getSender(),options:{endCaps:e.endCaps,color:e.color,line:e.line},createVisual:function(){t.createDefaultVisual();var e=t.visual;return delete t.visual,e}}):this.createDefaultVisual()},e.prototype.createDefaultVisual=function(){var e=this.options,i=this.linePoints,o={stroke:{color:e.color,width:e.line.width,dashType:e.line.dashType}};t.prototype.createVisual.call(this);for(var r=0;r<i.length;r+=2){var n=new C.drawing.Path(o).moveTo(i[r].x,i[r].y).lineTo(i[r+1].x,i[r+1].y);S(n),this.visual.append(n)}},e}(Jt);It(Ji,{animation:{type:"fadeIn",delay:600},endCaps:!0,line:{width:2},zIndex:1});var Qi=Ji,$i=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.getAxis=function(){return this.chart.seriesValueAxis(this.series)},e}(Qi);function to(t,e,i,o){void 0===i&&(i={}),void 0===o&&(o=!1);var r=i.defaults=i.defaults||{},n=i.depth=i.depth||0,s=!1;if(i.excluded=i.excluded||[],n>5)return null;for(var a in t)if(!ct(a,i.excluded)&&t.hasOwnProperty(a)){var p=t[a];M(p)?(s=!0,o||(t[a]=Tt(p(e),r[a]))):L(p)&&(o||(i.defaults=r[a]),i.depth++,s=to(p,e,i,o)||s,i.depth--)}return s}function eo(t){for(var e=t.length,i=0,o=0;o<e;o++)i=Math.max(i,t[o].data.length);return i}var io=function(t){function e(e,i){t.call(this,i),this.plotArea=e,this.chartService=e.chartService,this.categoryAxis=e.seriesCategoryAxis(i.series[0]),this.valueAxisRanges={},this.points=[],this.categoryPoints=[],this.seriesPoints=[],this.seriesOptions=[],this._evalSeries=[],this.render()}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.render=function(){this.traverseDataPoints(this.addValue.bind(this))},e.prototype.pointOptions=function(t,e){var i=this.seriesOptions[e];if(!i){var o=this.pointType().prototype.defaults;this.seriesOptions[e]=i=j({},o,{vertical:!this.options.invertAxes},t)}return i},e.prototype.plotValue=function(t){if(!t)return 0;if(this.options.isStacked100&&P(t.value)){for(var e=t.categoryIx,i=this.categoryPoints[e],o=[],r=0,n=0;n<i.length;n++){var s=i[n];if(s){var a=t.series.stack,p=s.series.stack;if(a&&p&&a.group!==p.group)continue;P(s.value)&&(r+=Math.abs(s.value),o.push(Math.abs(s.value)))}}if(r>0)return t.value/r}return t.value},e.prototype.plotRange=function(t,e){void 0===e&&(e=0);var i=this.categoryPoints[t.categoryIx];if(this.options.isStacked){for(var o=this.plotValue(t),r=o>=0,n=e,s=!1,a=0;a<i.length;a++){var p=i[a];if(t===p)break;var l=t.series.stack,c=p.series.stack;if(l&&c){if("string"==typeof l&&l!==c)continue;if(l.group&&l.group!==c.group)continue}var h=this.plotValue(p);(h>=0&&r||h<0&&!r)&&(n+=h,o+=h,s=!0,this.options.isStacked100&&(o=Math.min(o,1)))}return s&&(n-=e),[n,o]}var u=t.series,d=this.seriesValueAxis(u),f=this.categoryAxisCrossingValue(d);return[f,O(t.value)?t.value:f]},e.prototype.stackLimits=function(t,e){for(var i=u,o=d,r=0;r<this.categoryPoints.length;r++){var n=this.categoryPoints[r];if(n)for(var s=0;s<n.length;s++){var a=n[s];if(a&&(a.series.stack===e||a.series.axis===t)){var p=this.plotRange(a,0)[1];xt(p)&&isFinite(p)&&(o=Math.max(o,p),i=Math.min(i,p))}}}return{min:i,max:o}},e.prototype.updateStackRange=function(){var t=this.options,e=t.isStacked,i=t.series,o={};if(e)for(var r=0;r<i.length;r++){var n=i[r],s=n.axis,a=s+n.stack,p=o[a];if(!p){p=this.stackLimits(s,n.stack);var l=this.errorTotals;l&&(l.negative.length&&(p.min=Math.min(p.min,zt(l.negative).min)),l.positive.length&&(p.max=Math.max(p.max,zt(l.positive).max))),p.min!==u||p.max!==d?o[a]=p:p=null}p&&(this.valueAxisRanges[s]=p)}},e.prototype.addErrorBar=function(t,e,i){var o,r=t.value,n=t.series,s=t.seriesIx,a=t.options.errorBars,p=e.fields.errorLow,l=e.fields.errorHigh;P(p)&&P(l)?o={low:p,high:l}:a&&xt(a.value)&&(this.seriesErrorRanges=this.seriesErrorRanges||[],this.seriesErrorRanges[s]=this.seriesErrorRanges[s]||new Gi(a.value,n,y),o=this.seriesErrorRanges[s].getErrorRange(r,a.value)),o&&(t.low=o.low,t.high=o.high,this.addPointErrorBar(t,i))},e.prototype.addPointErrorBar=function(t,e){var i=!this.options.invertAxes,o=t.options.errorBars,r=t.series,n=t.low,s=t.high;if(this.options.isStacked){var a=this.stackedErrorRange(t,e);n=a.low,s=a.high}else{var p={categoryIx:e,series:r};this.updateRange({value:n},p),this.updateRange({value:s},p)}var l=new $i(n,s,i,this,r,o);t.errorBars=[l],t.append(l)},e.prototype.stackedErrorRange=function(t,e){var i=this.plotRange(t,0)[1]-t.value,o=t.low+i,r=t.high+i;return this.errorTotals=this.errorTotals||{positive:[],negative:[]},o<0&&(this.errorTotals.negative[e]=Math.min(this.errorTotals.negative[e]||0,o)),r>0&&(this.errorTotals.positive[e]=Math.max(this.errorTotals.positive[e]||0,r)),{low:o,high:r}},e.prototype.addValue=function(t,e){var i=e.categoryIx,o=e.series,r=e.seriesIx,n=this.categoryPoints[i];n||(this.categoryPoints[i]=n=[]);var s=this.seriesPoints[r];s||(this.seriesPoints[r]=s=[]);var a=this.createPoint(t,e);a&&(Object.assign(a,e),a.owner=this,a.noteText=t.fields.noteText,xt(a.dataItem)||(a.dataItem=o.data[i]),this.addErrorBar(a,t,i)),this.points.push(a),s.push(a),n.push(a),this.updateRange(t.valueFields,e)},e.prototype.evalPointOptions=function(t,e,i,o,r,n){var s={defaults:r._defaults,excluded:["data","aggregate","_events","tooltip","content","template","visual","toggle","_outOfRangeMinPoint","_outOfRangeMaxPoint"]},a=this._evalSeries[n];xt(a)||(this._evalSeries[n]=a=to(t,{},s,!0));var p=t;return a&&to(p=j({},p),{value:e,category:i,index:o,series:r,dataItem:r.data[o]},s),p},e.prototype.updateRange=function(t,e){var i=e.series.axis,o=t.value,r=this.valueAxisRanges[i];isFinite(o)&&null!==o&&((r=this.valueAxisRanges[i]=r||{min:u,max:d}).min=Math.min(r.min,o),r.max=Math.max(r.max,o))},e.prototype.seriesValueAxis=function(t){var e=this.plotArea,i=t.axis,o=i?e.namedValueAxes[i]:e.valueAxis;if(!o)throw new Error("Unable to locate value axis with name "+i);return o},e.prototype.reflow=function(t){var e=this,i=this.categorySlots=[],o=this.points,r=this.categoryAxis,n=0;this.traverseDataPoints((function(t,s){var a=s.categoryIx,p=s.series,l=e.seriesValueAxis(p),c=o[n++],h=i[a];if(h||(i[a]=h=e.categorySlot(r,a,l)),c){var u=e.plotRange(c,l.startValue()),d=e.valueSlot(l,u);if(d){var f=e.pointSlot(h,d);c.aboveAxis=e.aboveAxis(c,l),c.stackValue=u[1],e.options.isStacked100&&(c.percentage=e.plotValue(c)),e.reflowPoint(c,f)}else c.visible=!1}})),this.reflowCategories(i),!this.options.clip&&this.options.limitPoints&&this.points.length&&this.limitPoints(),this.box=t},e.prototype.valueSlot=function(t,e){return t.getSlot(e[0],e[1],!this.options.clip)},e.prototype.limitPoints=function(){for(var t=this.categoryPoints,e=t[0].concat(St(t)),i=0;i<e.length;i++)e[i]&&this.limitPoint(e[i])},e.prototype.limitPoint=function(t){var e=this.categoryAxis.limitSlot(t.box);e.equals(t.box)||t.reflow(e)},e.prototype.aboveAxis=function(t,e){var i=this.categoryAxisCrossingValue(e),o=t.value;return e.options.reverse?o<i:o>=i},e.prototype.categoryAxisCrossingValue=function(t){var e=this.categoryAxis,i=t.options;return[].concat(i.axisCrossingValues||i.axisCrossingValue)[e.axisIndex||0]||0},e.prototype.reflowPoint=function(t,e){t.reflow(e)},e.prototype.reflowCategories=function(){},e.prototype.pointSlot=function(t,e){var i=this.options.invertAxes,o=i?e:t,r=i?t:e;return new Nt(o.x1,r.y1,o.x2,r.y2)},e.prototype.categorySlot=function(t,e){return t.getSlot(e)},e.prototype.traverseDataPoints=function(t){for(var e=this.options.series,i=eo(e),o=e.length,r=0;r<o;r++)this._outOfRangeCallback(e[r],"_outOfRangeMinPoint",r,t);for(var n=0;n<i;n++)for(var s=0;s<o;s++){var a=e[s],p=this.categoryAxis.categoryAt(n);t(this._bindPoint(a,s,n),{category:p,categoryIx:n,categoriesCount:i,series:a,seriesIx:s})}for(var l=0;l<o;l++)this._outOfRangeCallback(e[l],"_outOfRangeMaxPoint",l,t)},e.prototype._outOfRangeCallback=function(t,e,i,o){var r=t[e];if(r){var n=r.categoryIx;o(this._bindPoint(t,i,n,r.item),{category:r.category,categoryIx:n,series:t,seriesIx:i,dataItem:r.item})}},e.prototype._bindPoint=function(t,e,i,o){this._bindCache||(this._bindCache=[]);var r=this._bindCache[e];r||(r=this._bindCache[e]=[]);var n=r[i];return n||(n=r[i]=Vi.current.bindPoint(t,i,o)),n},e.prototype.formatPointValue=function(t,e){return null===t.value?"":this.chartService.format.auto(e,t.value)},e.prototype.pointValue=function(t){return t.valueFields.value},e}(Jt);It(io,{series:[],invertAxes:!1,isStacked:!1,clip:!0,limitPoints:!0});var oo=io,ro={click:function(t,e){return t.trigger("seriesClick",this.eventArgs(e))},hover:function(t,e){return t.trigger("seriesHover",this.eventArgs(e))},over:function(t,e){return t.trigger("seriesOver",this.eventArgs(e))},out:function(t,e){return t.trigger("seriesLeave",this.eventArgs(e))},eventArgs:function(t){return{value:this.value,percentage:this.percentage,stackValue:this.stackValue,category:this.category,series:this.series,dataItem:this.dataItem,runningTotal:this.runningTotal,total:this.total,element:At(t),originalEvent:t,point:this}}},no={createNote:function(){var t=this.options.notes,e=this.noteText||t.label.text;!1!==t.visible&&xt(e)&&null!==e&&(this.note=new xe({value:this.value,text:e,dataItem:this.dataItem,category:this.category,series:this.series},this.options.notes,this.owner.chartService),this.append(this.note))}},so=function(t){function e(e,i){t.call(this),this.value=e,this.options=i,this.aboveAxis=Tt(this.options.aboveAxis,!0),this.tooltipTracking=!0}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.render=function(){var t=this.options,e=t.markers,i=t.labels;if(!this._rendered){if(this._rendered=!0,e.visible&&e.size&&(this.marker=this.createMarker(),this.append(this.marker)),i.visible){var o=it(i),r=this.pointData(),n=this.value;o?n=o(r):i.format&&(n=this.formatValue(i.format)),this.label=new de(n,j({align:a,vAlign:a,margin:{left:5,right:5},zIndex:Tt(i.zIndex,this.series.zIndex)},i),r),this.append(this.label)}this.createNote(),this.errorBar&&this.append(this.errorBar)}},e.prototype.markerBorder=function(){var t=this.options.markers,e=t.background,i=j({color:this.color},t.border);return xt(i.color)||(i.color=new C.Color(e).brightness(.8).toHex()),i},e.prototype.createVisual=function(){},e.prototype.createMarker=function(){var t=this.options.markers;return new ee({type:t.type,width:t.size,height:t.size,rotation:t.rotation,background:t.background,border:this.markerBorder(),opacity:this.series.opacity||t.opacity,zIndex:Tt(t.zIndex,this.series.zIndex),animation:t.animation,visual:t.visual},{dataItem:this.dataItem,value:this.value,series:this.series,category:this.category})},e.prototype.markerBox=function(){return this.marker||(this.marker=this.createMarker(),this.marker.reflow(this._childBox)),this.marker.box},e.prototype.reflow=function(t){var e=this.options,i=this.aboveAxis,o=e.vertical;this.render(),this.box=t;var r=t.clone();if(o?i?r.y1-=r.height():r.y2+=r.height():i?r.x1+=r.width():r.x2-=r.width(),this._childBox=r,this.marker&&this.marker.reflow(r),this.reflowLabel(r),this.errorBars)for(var n=0;n<this.errorBars.length;n++)this.errorBars[n].reflow(r);if(this.note){var s=this.markerBox();if(!e.markers.visible||!e.markers.size){var a=s.center();s=new Nt(a.x,a.y,a.x,a.y)}this.note.reflow(s)}},e.prototype.reflowLabel=function(t){var e=this.options,i=this.label,o=e.labels.position;i&&(o="below"===(o="above"===o?g:o)?s:o,i.reflow(t),i.box.alignTo(this.markerBox(),o),i.reflow(i.box))},e.prototype.createHighlight=function(){var t=this.options.highlight.markers,e=this.markerBorder().color,i=this.options.markers,o=i.size+(i.border.width||0)+(t.border.width||0),r=new ee({type:i.type,width:o,height:o,rotation:i.rotation,background:t.color||e,border:{color:t.border.color,width:t.border.width,opacity:Tt(t.border.opacity,1)},opacity:Tt(t.opacity,1)});return r.reflow(this._childBox),r.getElement()},e.prototype.highlightVisual=function(){return(this.marker||{}).visual},e.prototype.highlightVisualArgs=function(){var t,e,i=this.marker;if(i)e=i.paddingBox.toRect(),t=i.visual;else{var o=this.options.markers.size,r=o/2,n=this.box.center();e=new C.geometry.Rect([n.x-r,n.y-r],[o,o])}return{options:this.options,rect:e,visual:t}},e.prototype.tooltipAnchor=function(){var t=this.markerBox(),e=this.owner.pane.clipBox();if(!e||e.overlaps(t)){var i,o,r=t.x2+5;return this.aboveAxis?(i=t.y1,o=s):(i=t.y2,o=g),{point:new Ft(r,i),align:{horizontal:"left",vertical:o}}}},e.prototype.formatValue=function(t){return this.owner.formatPointValue(this,t)},e.prototype.overlapsBox=function(t){return this.markerBox().overlaps(t)},e.prototype.unclipElements=function(){this.label&&(this.label.options.noclip=!0),this.note&&(this.note.options.noclip=!0)},e.prototype.pointData=function(){return{dataItem:this.dataItem,category:this.category,value:this.value,percentage:this.percentage,stackValue:this.stackValue,series:this.series}},e}(Jt);so.prototype.defaults={vertical:!0,markers:{visible:!0,background:v,size:8,type:p,border:{width:2},opacity:1},labels:{visible:!1,position:"above",margin:E(3),padding:E(4),animation:{type:"fadeIn",delay:600}},notes:{label:{}},highlight:{markers:{border:{color:"#fff",width:2}},zIndex:100},errorBars:{line:{width:1}}},j(so.prototype,ro),j(so.prototype,no);var ao=so,po=function(t){function e(e,i,o){t.call(this),this.linePoints=e,this.series=i,this.seriesIx=o}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.points=function(){return this.toGeometryPoints(this.linePoints)},e.prototype.toGeometryPoints=function(t){for(var e=[],i=0,o=t.length;i<o;i++)t[i]&&!1!==t[i].visible&&e.push(t[i]._childBox.toRect().center());return e},e.prototype.createVisual=function(){var t=this,e=this.series.visual;e?(this.visual=e({points:this.toGeometryPoints(this.linePoints),series:this.series,sender:this.getSender(),createVisual:function(){return t.segmentVisual(),t.visual}}),this.visual&&!xt(this.visual.options.zIndex)&&(this.visual.options.zIndex=this.series.zIndex)):this.segmentVisual()},e.prototype.segmentVisual=function(){var t=this.options,e=this.series,i=e.color,o=e._defaults;M(i)&&o&&(i=o.color);var r=C.drawing.Path.fromPoints(this.points(),{stroke:{color:i,width:e.width,opacity:e.opacity,dashType:e.dashType},zIndex:e.zIndex});t.closed&&r.close(),this.visual=r},e.prototype.aliasFor=function(t,e){return this.parent.getNearestPoint(e.x,e.y,this.seriesIx)},e}(Jt);It(po,{closed:!1});var lo=po;function co(t,e,i,o,r){var n=t.box,s=new C.geometry.Point;return s[e]=n[e+i],s[o]=n[o+r],s}var ho={calculateStepPoints:function(t){for(var e=this.parent.plotArea.seriesCategoryAxis(this.series).options,i=e.justified,o=e.vertical,r=e.reverse,n=o?m:x,s=o?x:m,a=r?2:1,p=a,l=co(t[0],n,a,s,p),c=[l],h=1;h<t.length;h++){var u=co(t[h],n,a,s,p);if(l[n]!==u[n]){var d=new C.geometry.Point;d[n]=l[n],d[s]=u[s],c.push(d,u)}l=u}return i?l!==St(c)&&c.push(l):c.push(co(St(t),n,a,s,r?1:2)),c}},uo=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.points=function(){return this.calculateStepPoints(this.linePoints)},e}(lo);j(uo.prototype,ho);var fo=uo,go=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.segmentVisual=function(){var t=this.series,e=t._defaults,i=t.color;M(i)&&e&&(i=e.color);var o=new ki(this.options.closed).process(this.points()),r=new C.drawing.Path({stroke:{color:i,width:t.width,opacity:t.opacity,dashType:t.dashType},zIndex:t.zIndex});r.segments.push.apply(r.segments,o),this.visual=r},e}(lo),yo={renderSegments:function(){var t,e=this.options,i=this.seriesPoints,o=e.series,r=i.length;this._segments=[];for(var n=0;n<r;n++){for(var s=o[n],a=this.sortPoints(i[n]),p=a.length,l=[],c=0;c<p;c++){var h=a[c];h?l.push(h):"interpolate"!==this.seriesMissingValues(s)&&(l.length>1&&(t=this.createSegment(l,s,n,t),this._addSegment(t)),l=[])}l.length>1&&(t=this.createSegment(l,s,n,t),this._addSegment(t))}this.children.unshift.apply(this.children,this._segments)},_addSegment:function(t){this._segments.push(t),t.parent=this},sortPoints:function(t){return t},seriesMissingValues:function(t){var e=t.missingValues;return!e&&this.options.isStacked?Hi:e||"interpolate"},getNearestPoint:function(t,e,i){for(var o,r=new Ft(t,e),n=this.seriesPoints[i],s=u,a=0;a<n.length;a++){var p=n[a];if(p&&xt(p.value)&&null!==p.value&&!1!==p.visible){var l=p.box.center().distanceTo(r);l<s&&(o=p,s=l)}}return o}},vo=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.setup=function(){this._setEnd(this.options.box.x1)},e.prototype.step=function(t){var e=this.options.box;this._setEnd(ht(e.x1,e.x2,t))},e.prototype._setEnd=function(t){var e=this.element,i=e.segments,o=i[1].anchor(),r=i[2].anchor();e.suspend(),o.setX(t),e.resume(),r.setX(t)},e}(C.drawing.Animation);It(vo,{duration:600}),C.drawing.AnimationFactory.current.register("clip",vo);var mo=vo;function xo(t){for(var e=0;e<t.length;e++)if(xt(t[e].zIndex))return!0}var _o={createAnimation:function(){var t=this.getRoot();if(t&&!1!==(t.options||{}).transitions){var e=t.size(),i=C.drawing.Path.fromRect(e.toRect());this.visual.clip(i),this.animation=new mo(i,{box:e}),xo(this.options.series)&&this._setChildrenAnimation(i)}},_setChildrenAnimation:function(t){for(var e=this.animationPoints(),i=0;i<e.length;i++){var o=e[i];o&&o.visual&&xt(o.visual.options.zIndex)&&o.visual.clip(t)}}},bo=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.render=function(){t.prototype.render.call(this),this.updateStackRange(),this.renderSegments()},e.prototype.pointType=function(){return ao},e.prototype.createPoint=function(t,e){var i=e.categoryIx,o=e.category,r=e.series,n=e.seriesIx,s=this.seriesMissingValues(r),a=t.valueFields.value;if(!xt(a)||null===a){if(s!==Hi)return null;a=0}var p=this.pointOptions(r,n);p=this.evalPointOptions(p,a,o,i,r,n);var l=t.fields.color||r.color;M(r.color)&&(l=p.color);var c=new ao(a,p);return c.color=l,this.append(c),c},e.prototype.plotRange=function(t){var e=this.plotValue(t);if(this.options.isStacked)for(var i=t.categoryIx,o=this.categoryPoints[i],r=0;r<o.length;r++){var n=o[r];if(t===n)break;e+=this.plotValue(n),this.options.isStacked100&&(e=Math.min(e,1))}return[e,e]},e.prototype.createSegment=function(t,e,i){var o=e.style;return new("step"===o?fo:"smooth"===o?go:lo)(t,e,i)},e.prototype.animationPoints=function(){for(var t=this.points,e=[],i=0;i<t.length;i++)e.push((t[i]||{}).marker);return e.concat(this._segments)},e}(oo);j(bo.prototype,yo,_o);var wo=bo,Ao=function(t){function e(e,i,o,r,n){t.call(this,e,i,o),this.prevSegment=r,this.stackPoints=n}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.createVisual=function(){var t=this.series,e=t._defaults,i=t.line||{},o=t.color;M(o)&&e&&(o=e.color),this.visual=new C.drawing.Group({zIndex:t.zIndex}),this.createFill({fill:{color:o,opacity:t.opacity},stroke:null}),i.width>0&&!1!==i.visible&&this.createStroke({stroke:j({color:o,opacity:t.opacity,lineCap:"butt"},i)})},e.prototype.strokeSegments=function(){var t=this._strokeSegments;return t||(t=this._strokeSegments=this.createStrokeSegments()),t},e.prototype.createStrokeSegments=function(){return this.segmentsFromPoints(this.points())},e.prototype.stackSegments=function(){return this.prevSegment?this.prevSegment.createStackSegments(this.stackPoints):this.createStackSegments(this.stackPoints)},e.prototype.createStackSegments=function(t){return this.segmentsFromPoints(this.toGeometryPoints(t)).reverse()},e.prototype.segmentsFromPoints=function(t){return t.map((function(t){return new C.geometry.Segment(t)}))},e.prototype.createStroke=function(t){var e=new C.drawing.Path(t);e.segments.push.apply(e.segments,this.strokeSegments()),this.visual.append(e)},e.prototype.hasStackSegment=function(){return this.prevSegment||this.stackPoints&&this.stackPoints.length},e.prototype.createFill=function(t){var e=this.strokeSegments(),i=e.slice(0),o=this.hasStackSegment();if(o){var r=this.stackSegments();vt(i,r)}var n=new C.drawing.Path(t);n.segments.push.apply(n.segments,i),!o&&e.length>1&&this.fillToAxes(n),this.visual.append(n)},e.prototype.fillToAxes=function(t){var e=this.parent,i=e.options.invertAxes,o=e.seriesValueAxis(this.series),r=e.categoryAxisCrossingValue(o),n=o.getSlot(r,r,!0),s=this.strokeSegments(),a=s[0].anchor(),p=St(s).anchor(),l=i?n.x1:n.y1;i?t.lineTo(l,p.y).lineTo(l,a.y):t.lineTo(p.x,l).lineTo(a.x,l)},e}(lo),Co=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.createStrokeSegments=function(){return this.segmentsFromPoints(this.calculateStepPoints(this.linePoints))},e.prototype.createStackSegments=function(t){return this.segmentsFromPoints(this.calculateStepPoints(t)).reverse()},e}(Ao);j(Co.prototype,ho);var So=Co,ko=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.createStrokeSegments=function(){var t=new ki(this.options.closed),e=this.points();return t.process(e)},e.prototype.createStackSegments=function(){for(var t=this.strokeSegments(),e=[],i=t.length-1;i>=0;i--){var o=t[i];e.push(new C.geometry.Segment(o.anchor(),o.controlOut(),o.controlIn()))}return e},e}(Ao),Po=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.createSegment=function(t,e,i,o){var r,n,s=this.options.isStacked,a=(e.line||{}).style;s&&i>0&&o&&("gap"!==this.seriesMissingValues(e)?(n=o.linePoints,r=o):n=this._gapStackPoints(t,i,a));return new("step"===a?So:"smooth"===a?ko:Ao)(t,e,i,r,n)},e.prototype.reflow=function(e){t.prototype.reflow.call(this,e);var i=this._stackPoints;if(i)for(var o=0;o<i.length;o++){var r=i[o],n=this.categoryAxis.getSlot(r.categoryIx);r.reflow(n)}},e.prototype._gapStackPoints=function(t,e,i){var o=this.seriesPoints,r=t[0].categoryIx,n=t.length;r<0&&(r=0,n--);var s=r+n,a=this.seriesOptions[0]._outOfRangeMinPoint?1:0,p=[];this._stackPoints=this._stackPoints||[];for(var l=r;l<s;l++){var c=l+a,h=e,u=void 0;do{u=o[--h][c]}while(h>0&&!u);if(u)"step"!==i&&l>r&&!o[h][c-1]&&p.push(this._previousSegmentPoint(l,c,c-1,h)),p.push(u),"step"!==i&&l+1<s&&!o[h][c+1]&&p.push(this._previousSegmentPoint(l,c,c+1,h));else{var d=this._createGapStackPoint(l);this._stackPoints.push(d),p.push(d)}}return p},e.prototype._previousSegmentPoint=function(t,e,i,o){for(var r,n=this.seriesPoints,s=o;s>0&&!r;)r=n[--s][i];return r?r=n[s][e]:(r=this._createGapStackPoint(t),this._stackPoints.push(r)),r},e.prototype._createGapStackPoint=function(t){var e=this.pointOptions({},0),i=new ao(0,e);return i.categoryIx=t,i.series={},i},e.prototype.seriesMissingValues=function(t){return t.missingValues||Hi},e.prototype.supportsPointInactiveOpacity=function(){return!1},e}(wo),Ro=function(t){function e(){t.call(this),this.axisRanges={}}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.update=function(t){var e=this.axisRanges;for(var i in t){var o=t[i],r=e[i];e[i]=r=r||{min:u,max:d},r.min=Math.min(r.min,o.min),r.max=Math.max(r.max,o.max)}},e.prototype.reset=function(t){this.axisRanges[t]=void 0},e.prototype.query=function(t){return this.axisRanges[t]},e}(C.Class),Oo=function(t){function e(e,i,o){t.call(this,i),this.textBox=new de(e,this.options,o),this.append(this.textBox)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.createVisual=function(){this.textBox.options.noclip=this.options.noclip},e.prototype.reflow=function(t){var e=this.options,i=e.vertical,o=e.aboveAxis,r=this.children[0],n=r.options,p=r.box,l=r.options.padding,c=t;n.align=i?a:h,n.vAlign=i?g:a,"insideEnd"===e.position?i?(n.vAlign=g,!o&&p.height()<t.height()&&(n.vAlign=s)):n.align=o?f:h:e.position===a?(n.vAlign=a,n.align=a):"insideBase"===e.position?i?n.vAlign=o?s:g:n.align=o?h:f:"outsideEnd"===e.position&&(i?c=o?new Nt(t.x1,t.y1-p.height(),t.x2,t.y1):new Nt(t.x1,t.y2,t.x2,t.y2+p.height()):(n.align=a,c=o?new Nt(t.x2,t.y1,t.x2+p.width(),t.y2):new Nt(t.x1-p.width(),t.y1,t.x1,t.y2))),e.rotation||(i?l.left=l.right=(c.width()-r.contentBox.width())/2:l.top=l.bottom=(c.height()-r.contentBox.height())/2),r.reflow(c)},e.prototype.alignToClipBox=function(t){var e=this.options.vertical?x:m,i=e+"1",o=e+"2",r=this.children[0],n=this.parent.box;if(n[i]<t[i]||t[o]<n[o]){var s=r.paddingBox.clone();s[i]=Math.max(n[i],t[i]),s[o]=Math.min(n[o],t[o]),this.reflow(s)}},e}(Jt);It(Oo,{position:"outsideEnd",margin:E(3),padding:E(4),color:n,background:"",border:{width:1,color:""},aboveAxis:!0,vertical:!1,animation:{type:"fadeIn",delay:600},zIndex:2});var Mo=Oo;function To(t){var e=t.overlay;return e&&e.gradient&&"none"!==e.gradient}var jo=function(t){function e(e,i){t.call(this),this.options=i,this.color=i.color||v,this.aboveAxis=Tt(this.options.aboveAxis,!0),this.value=e}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.render=function(){this._rendered||(this._rendered=!0,this.createLabel(),this.createNote(),this.errorBar&&this.append(this.errorBar))},e.prototype.createLabel=function(){var t=this.options,e=t.labels;if(e.visible){var i,o=this.pointData(),r=it(e);i=r?r(o):this.formatValue(e.format),this.label=new Mo(i,j({vertical:t.vertical},e),o),this.append(this.label)}},e.prototype.formatValue=function(t){return this.owner.formatPointValue(this,t)},e.prototype.reflow=function(t){this.render();var e=this.label;if(this.box=t,e&&(e.options.aboveAxis=this.aboveAxis,e.reflow(t)),this.note&&this.note.reflow(t),this.errorBars)for(var i=0;i<this.errorBars.length;i++)this.errorBars[i].reflow(t)},e.prototype.createVisual=function(){var e=this,i=this.box,o=this.options,r=o.visual;if(!1!==this.visible)if(t.prototype.createVisual.call(this),r){var n=this.rectVisual=r({category:this.category,dataItem:this.dataItem,value:this.value,sender:this.getSender(),series:this.series,percentage:this.percentage,stackValue:this.stackValue,runningTotal:this.runningTotal,total:this.total,rect:i.toRect(),createVisual:function(){var t=new C.drawing.Group;return e.createRect(t),t},options:o});n&&this.visual.append(n)}else i.width()>0&&i.height()>0&&this.createRect(this.visual)},e.prototype.createRect=function(t){var e=this.options,i=e.border,o=xt(i.opacity)?i.opacity:e.opacity,r=this.box.toRect();r.size.width=Math.round(r.size.width);var n=this.rectVisual=C.drawing.Path.fromRect(r,{fill:{color:this.color,opacity:e.opacity},stroke:{color:this.getBorderColor(),width:i.width,opacity:o,dashType:i.dashType}}),s=this.box.width(),a=this.box.height();if((e.vertical?s:a)>6&&(S(n),(s<1||a<1)&&(n.options.stroke.lineJoin="round")),t.append(n),To(e)){var p=this.createGradientOverlay(n,{baseColor:this.color},j({end:e.vertical?void 0:[0,1]},e.overlay));t.append(p)}},e.prototype.createHighlight=function(t){return S(C.drawing.Path.fromRect(this.box.toRect(),t))},e.prototype.highlightVisual=function(){return this.rectVisual},e.prototype.highlightVisualArgs=function(){return{options:this.options,rect:this.box.toRect(),visual:this.rectVisual}},e.prototype.getBorderColor=function(){var t=this.color,e=this.options.border,i=e._brightness||.8,o=e.color;return xt(o)||(o=new C.Color(t).brightness(i).toHex()),o},e.prototype.tooltipAnchor=function(){var t,e,i=this.options,o=this.box,r=this.aboveAxis,n=this.owner.pane.clipBox()||o,a=h,p=g;if(i.vertical)t=Math.min(o.x2,n.x2)+5,r?e=Math.max(o.y1,n.y1):(e=Math.min(o.y2,n.y2),p=s);else{var l=Math.max(o.x1,n.x1),c=Math.min(o.x2,n.x2);i.isStacked?(p=s,r?(a=f,t=c):t=l,e=Math.max(o.y1,n.y1)-5):(r?t=c+5:(t=l-5,a=f),e=Math.max(o.y1,n.y1))}return{point:new Ft(t,e),align:{horizontal:a,vertical:p}}},e.prototype.overlapsBox=function(t){return this.box.overlaps(t)},e.prototype.pointData=function(){return{dataItem:this.dataItem,category:this.category,value:this.value,percentage:this.percentage,stackValue:this.stackValue,runningTotal:this.runningTotal,total:this.total,series:this.series}},e}(Jt);j(jo.prototype,ro),j(jo.prototype,no),jo.prototype.defaults={border:{width:1},vertical:!0,overlay:{gradient:"glass"},labels:{visible:!1,format:"{0}"},opacity:1,notes:{label:{}}};var Lo=jo;function Io(t,e){t.forEach(e)}function zo(t,e){for(var i=t.length,o=i-1;o>=0;o--)e(t[o],o-i-1)}var Bo=function(t){function e(e){t.call(this,e),this.forEach=e.rtl?zo:Io}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.reflow=function(t){var e=this.options,i=e.vertical,o=e.gap,r=e.spacing,n=this.children,s=n.length,a=i?x:m,p=s+o+r*(s-1),l=(i?t.height():t.width())/p,c=t[a+1]+l*(o/2);this.forEach(n,(function(e,i){var o=(e.box||t).clone();o[a+1]=c,o[a+2]=c+l,e.reflow(o),i<s-1&&(c+=l*r),c+=l}))},e}(Jt);It(Bo,{vertical:!1,gap:0,spacing:0});var Vo=Bo,Eo=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.reflow=function(t){for(var e=this.options.vertical?m:x,i=this.children,o=i.length,r=this.box=new Nt,n=0;n<o;n++){var s=i[n];if(!1!==s.visible){var a=s.box.clone();a.snapTo(t,e),0===n&&(r=this.box=a.clone()),s.reflow(a),r.wrap(a)}}},e}(Jt);It(Eo,{vertical:!0});var Do=Eo,Go=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.render=function(){t.prototype.render.call(this),this.updateStackRange()},e.prototype.pointType=function(){return Lo},e.prototype.clusterType=function(){return Vo},e.prototype.stackType=function(){return Do},e.prototype.stackLimits=function(e,i){return t.prototype.stackLimits.call(this,e,i)},e.prototype.createPoint=function(t,e){var i=e.categoryIx,o=e.category,r=e.series,n=e.seriesIx,s=this.options,a=this.children,p=s.isStacked,l=this.pointValue(t),c=this.pointOptions(r,n),h=c.labels;p&&"outsideEnd"===h.position&&(h.position="insideEnd"),c.isStacked=p;var u=t.fields.color||r.color;l<0&&c.negativeColor&&(u=c.negativeColor),c=this.evalPointOptions(c,l,o,i,r,n),M(r.color)&&(u=c.color);var d=new(this.pointType())(l,c);d.color=u;var f=a[i];f||(f=new(this.clusterType())({vertical:s.invertAxes,gap:s.gap,spacing:s.spacing,rtl:!s.invertAxes&&(this.chartService||{}).rtl}),this.append(f));p?this.getStackWrap(r,f).append(d):f.append(d);return d},e.prototype.getStackWrap=function(t,e){var i,o=t.stack,r=o&&o.group||o,n=e.children;if("string"==typeof r){for(var s=0;s<n.length;s++)if(n[s]._stackGroup===r){i=n[s];break}}else i=n[0];i||((i=new(this.stackType())({vertical:!this.options.invertAxes}))._stackGroup=r,e.append(i));return i},e.prototype.categorySlot=function(t,e,i){var o=this.options,r=t.getSlot(e),n=i.startValue();if(o.isStacked){var s=i.getSlot(n,n,!0),a=o.invertAxes?m:x;r[a+1]=r[a+2]=s[a+1]}return r},e.prototype.reflowCategories=function(t){for(var e=this.children,i=e.length,o=0;o<i;o++)e[o].reflow(t[o])},e.prototype.createAnimation=function(){this._setAnimationOptions(),t.prototype.createAnimation.call(this),xo(this.options.series)&&this._setChildrenAnimation()},e.prototype._setChildrenAnimation=function(){for(var t=this.points,e=0;e<t.length;e++){var i=t[e],o=i.visual;o&&xt(o.options.zIndex)&&(i.options.animation=this.options.animation,i.createAnimation())}},e.prototype._setAnimationOptions=function(){var t,e=this.options,i=e.animation||{};if(e.isStacked){var o=this.seriesValueAxis(e.series[0]);t=o.getSlot(o.startValue())}else t=this.categoryAxis.getSlot(0);i.origin=new C.geometry.Point(t.x1,t.y1),i.vertical=!e.invertAxes},e}(oo);It(Go,{animation:{type:Ni}});var Uo=Go,Fo=function(t){function e(e,i){t.call(this,i),this.value=e}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.reflow=function(t){var e=this.options,i=this.value,o=this.owner.seriesValueAxis(e),r=o.getSlot(i.open,i.close),n=o.getSlot(i.low,i.high);r.x1=n.x1=t.x1,r.x2=n.x2=t.x2,this.realBody=r;var s=n.center().x,a=[];a.push([[s,n.y1],[s,r.y1]]),a.push([[s,r.y2],[s,n.y2]]),this.lines=a,this.box=n.clone().wrap(r),this._rendered||(this._rendered=!0,this.createNote()),this.reflowNote()},e.prototype.reflowNote=function(){this.note&&this.note.reflow(this.box)},e.prototype.createVisual=function(){t.prototype.createVisual.call(this),this._mainVisual=this.mainVisual(this.options),this.visual.append(this._mainVisual),this.createOverlay()},e.prototype.mainVisual=function(t){var e=new C.drawing.Group;return this.createBody(e,t),this.createLines(e,t),e},e.prototype.createBody=function(t,e){var i=C.drawing.Path.fromRect(this.realBody.toRect(),{fill:{color:this.color,opacity:e.opacity},stroke:null});e.border.width>0&&i.options.set("stroke",{color:this.getBorderColor(),width:e.border.width,dashType:e.border.dashType,opacity:Tt(e.border.opacity,e.opacity)}),S(i),t.append(i),To(e)&&t.append(this.createGradientOverlay(i,{baseColor:this.color},j({end:e.vertical?void 0:[0,1]},e.overlay)))},e.prototype.createLines=function(t,e){this.drawLines(t,e,this.lines,e.line)},e.prototype.drawLines=function(t,e,i,o){if(i)for(var r={stroke:{color:o.color||this.color,opacity:Tt(o.opacity,e.opacity),width:o.width,dashType:o.dashType,lineCap:"butt"}},n=0;n<i.length;n++){var s=C.drawing.Path.fromPoints(i[n],r);S(s),t.append(s)}},e.prototype.getBorderColor=function(){var t=this.options.border,e=t.color;return xt(e)||(e=new C.Color(this.color).brightness(t._brightness).toHex()),e},e.prototype.createOverlay=function(){var t=C.drawing.Path.fromRect(this.box.toRect(),{fill:{color:v,opacity:0},stroke:null});this.visual.append(t)},e.prototype.createHighlight=function(){var t=this.options.highlight,e=this.color;this.color=t.color||this.color;var i=this.mainVisual(j({},this.options,{line:{color:this.getBorderColor()}},t));return this.color=e,i},e.prototype.highlightVisual=function(){return this._mainVisual},e.prototype.highlightVisualArgs=function(){return{options:this.options,rect:this.box.toRect(),visual:this._mainVisual}},e.prototype.tooltipAnchor=function(){var t=this.box,e=this.owner.pane.clipBox()||t;return{point:new Ft(t.x2+5,Math.max(t.y1,e.y1)+5),align:{horizontal:h,vertical:g}}},e.prototype.formatValue=function(t){return this.owner.formatPointValue(this,t)},e.prototype.overlapsBox=function(t){return this.box.overlaps(t)},e}(Jt);It(Fo,{vertical:!0,border:{_brightness:.8},line:{width:2},overlay:{gradient:"glass"},tooltip:{format:"<table><tr><th colspan='2'>{4:d}</th></tr><tr><td>Open:</td><td>{0:C}</td></tr><tr><td>High:</td><td>{1:C}</td></tr><tr><td>Low:</td><td>{2:C}</td></tr><tr><td>Close:</td><td>{3:C}</td></tr></table>"},highlight:{opacity:1,border:{width:1,opacity:1},line:{width:1,opacity:1}},notes:{visible:!0,label:{}}}),j(Fo.prototype,ro),j(Fo.prototype,no);var Ho=Fo;function No(t){return ji(t)===t.length}var qo=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.reflowCategories=function(t){for(var e=this.children,i=e.length,o=0;o<i;o++)e[o].reflow(t[o])},e.prototype.addValue=function(t,e){var i,o=e.categoryIx,r=e.category,n=e.series,s=e.seriesIx,a=this.children,p=this.options,l=t.valueFields,c=No(this.splitValue(l)),h=n.data[o],u=this.categoryPoints[o];u||(this.categoryPoints[o]=u=[]),c&&(i=this.createPoint(t,e));var d=a[o];d||(d=new Vo({vertical:p.invertAxes,gap:p.gap,spacing:p.spacing,rtl:!p.invertAxes&&(this.chartService||{}).rtl}),this.append(d)),i&&(this.updateRange(l,e),d.append(i),i.categoryIx=o,i.category=r,i.series=n,i.seriesIx=s,i.owner=this,i.dataItem=h,i.noteText=t.fields.noteText),this.points.push(i),u.push(i)},e.prototype.pointType=function(){return Ho},e.prototype.createPoint=function(t,e){var i=e.categoryIx,o=e.category,r=e.series,n=e.seriesIx,s=this.pointType(),a=t.valueFields,p=j({},r),l=t.fields.color||r.color;p=this.evalPointOptions(p,a,o,i,r,n),"candlestick"===r.type&&a.open>a.close&&(l=t.fields.downColor||r.downColor||r.color),M(r.color)&&(l=p.color),p.vertical=!this.options.invertAxes;var c=new s(a,p);return c.color=l,c},e.prototype.splitValue=function(t){return[t.low,t.open,t.close,t.high]},e.prototype.updateRange=function(t,e){var i=e.series.axis,o=this.splitValue(t),r=this.valueAxisRanges[i];r=this.valueAxisRanges[i]=r||{min:u,max:d},r=this.valueAxisRanges[i]={min:Math.min.apply(Math,o.concat([r.min])),max:Math.max.apply(Math,o.concat([r.max]))}},e.prototype.formatPointValue=function(t,e){var i=t.value;return this.chartService.format.auto(e,i.open,i.high,i.low,i.close,t.category)},e.prototype.animationPoints=function(){return this.points},e}(oo);j(qo.prototype,_o);var Ko=qo,Xo=function(t){function e(e,i){t.call(this,e,i),this.createNote()}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.reflow=function(t){var e,i,o=this.options,r=this.value,n=this.owner.seriesValueAxis(o);this.boxSlot=i=n.getSlot(r.q1,r.q3),this.realBody=i,this.reflowBoxSlot(t),this.whiskerSlot=e=n.getSlot(r.lower,r.upper),this.reflowWhiskerSlot(t);var s=n.getSlot(r.median);if(r.mean){var a=n.getSlot(r.mean);this.meanPoints=this.calcMeanPoints(t,a)}this.whiskerPoints=this.calcWhiskerPoints(i,e),this.medianPoints=this.calcMedianPoints(t,s),this.box=e.clone().wrap(i),this.reflowNote()},e.prototype.reflowBoxSlot=function(t){this.boxSlot.x1=t.x1,this.boxSlot.x2=t.x2},e.prototype.reflowWhiskerSlot=function(t){this.whiskerSlot.x1=t.x1,this.whiskerSlot.x2=t.x2},e.prototype.calcMeanPoints=function(t,e){return[[[t.x1,e.y1],[t.x2,e.y1]]]},e.prototype.calcWhiskerPoints=function(t,e){var i=e.center().x;return[[[i-5,e.y1],[i+5,e.y1],[i,e.y1],[i,t.y1]],[[i-5,e.y2],[i+5,e.y2],[i,e.y2],[i,t.y2]]]},e.prototype.calcMedianPoints=function(t,e){return[[[t.x1,e.y1],[t.x2,e.y1]]]},e.prototype.renderOutliers=function(t){for(var e=this.value,i=e.outliers||[],o=3*Math.abs(e.q3-e.q1),r=[],n=t.markers||{},s=0;s<i.length;s++){var a=i[s],p=j({},(n=a<e.q3+o&&a>e.q1-o?t.outliers:t.extremes).border);xt(p.color)||(xt(this.color)?p.color=this.color:p.color=new C.Color(n.background).brightness(.8).toHex());var l=new ee({type:n.type,width:n.size,height:n.size,rotation:n.rotation,background:n.background,border:p,opacity:n.opacity});l.value=a,r.push(l)}return this.reflowOutliers(r),r},e.prototype.reflowOutliers=function(t){for(var e=this.owner.seriesValueAxis(this.options),i=this.box.center(),o=0;o<t.length;o++){var r=t[o].value,n=e.getSlot(r);this.options.vertical?n.move(i.x):n.move(void 0,i.y),this.box=this.box.wrap(n),t[o].reflow(n)}},e.prototype.mainVisual=function(e){for(var i=t.prototype.mainVisual.call(this,e),o=this.renderOutliers(e),r=0;r<o.length;r++){var n=o[r].getElement();n&&i.append(n)}return i},e.prototype.createLines=function(t,e){this.drawLines(t,e,this.whiskerPoints,e.whiskers),this.drawLines(t,e,this.medianPoints,e.median),this.drawLines(t,e,this.meanPoints,e.mean)},e.prototype.getBorderColor=function(){return(this.options.border||{}).color?this.options.border.color:this.color?this.color:t.prototype.getBorderColor.call(this)},e}(Ho);It(Xo,{border:{_brightness:.8},line:{width:2},median:{color:"#f6f6f6"},mean:{width:2,dashType:"dash",color:"#f6f6f6"},overlay:{gradient:"glass"},tooltip:{format:"<table><tr><th colspan='2'>{6:d}</th></tr><tr><td>Lower:</td><td>{0:C}</td></tr><tr><td>Q1:</td><td>{1:C}</td></tr><tr><td>Median:</td><td>{2:C}</td></tr><tr><td>Mean:</td><td>{5:C}</td></tr><tr><td>Q3:</td><td>{3:C}</td></tr><tr><td>Upper:</td><td>{4:C}</td></tr></table>"},highlight:{opacity:1,border:{width:1,opacity:1},line:{width:1,opacity:1}},notes:{visible:!0,label:{}},outliers:{visible:!0,size:8,type:"cross",background:v,border:{width:2,opacity:1},opacity:0},extremes:{visible:!0,size:8,type:p,background:v,border:{width:2,opacity:1},opacity:0}}),j(Xo.prototype,ro);var Yo=Xo,Wo=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.reflowBoxSlot=function(t){this.boxSlot.y1=t.y1,this.boxSlot.y2=t.y2},e.prototype.reflowWhiskerSlot=function(t){this.whiskerSlot.y1=t.y1,this.whiskerSlot.y2=t.y2},e.prototype.calcMeanPoints=function(t,e){return[[[e.x1,t.y1],[e.x1,t.y2]]]},e.prototype.calcWhiskerPoints=function(t,e){var i=e.center().y;return[[[e.x1,i-5],[e.x1,i+5],[e.x1,i],[t.x1,i]],[[e.x2,i-5],[e.x2,i+5],[e.x2,i],[t.x2,i]]]},e.prototype.calcMedianPoints=function(t,e){return[[[e.x1,t.y1],[e.x1,t.y2]]]},e}(Yo),Zo=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.addValue=function(t,e){var i,o=e.categoryIx,r=e.category,n=e.series,s=e.seriesIx,a=this.children,p=this.options,l=t.valueFields,c=No(this.splitValue(l)),h=n.data[o],u=this.categoryPoints[o];u||(this.categoryPoints[o]=u=[]),c&&(i=this.createPoint(t,e));var d=a[o];d||(d=new Vo({vertical:p.invertAxes,gap:p.gap,spacing:p.spacing,rtl:!p.invertAxes&&(this.chartService||{}).rtl}),this.append(d)),i&&(this.updateRange(l,e),d.append(i),i.categoryIx=o,i.category=r,i.series=n,i.seriesIx=s,i.owner=this,i.dataItem=h),this.points.push(i),u.push(i)},e.prototype.pointType=function(){return this.options.invertAxes?Wo:Yo},e.prototype.splitValue=function(t){return[t.lower,t.q1,t.median,t.q3,t.upper]},e.prototype.updateRange=function(t,e){var i=e.series.axis,o=this.valueAxisRanges[i],r=this.splitValue(t).concat(this.filterOutliers(t.outliers));xt(t.mean)&&(r=r.concat(t.mean)),o=this.valueAxisRanges[i]=o||{min:u,max:d},o=this.valueAxisRanges[i]={min:Math.min.apply(Math,r.concat([o.min])),max:Math.max.apply(Math,r.concat([o.max]))}},e.prototype.formatPointValue=function(t,e){var i=t.value;return this.chartService.format.auto(e,i.lower,i.q1,i.median,i.q3,i.upper,i.mean,t.category)},e.prototype.filterOutliers=function(t){for(var e=(t||[]).length,i=[],o=0;o<e;o++){var r=t[o];xt(r)&&null!==r&&i.push(r)}return i},e.prototype.supportsPointInactiveOpacity=function(){return!1},e}(Ko),Jo=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.getAxis=function(){var t=this.chart.seriesAxes(this.series);return this.isVertical?t.y:t.x},e}(Qi);function Qo(t){return xt(t)&&null!==t}var $o=function(t){function e(e,i){t.call(this,i),this.plotArea=e,this.chartService=e.chartService,this._initFields(),this.render()}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype._initFields=function(){this.xAxisRanges={},this.yAxisRanges={},this.points=[],this.seriesPoints=[],this.seriesOptions=[],this._evalSeries=[]},e.prototype.render=function(){this.traverseDataPoints(this.addValue.bind(this))},e.prototype.addErrorBar=function(t,e,i){var o,r=t.value[e],n=e+"Value",s=e+"ErrorLow",a=e+"ErrorHigh",p=i.seriesIx,l=i.series,c=t.options.errorBars,h=i[s],u=i[a];P(r)&&(P(h)&&P(u)&&(o={low:h,high:u}),c&&xt(c[n])&&(this.seriesErrorRanges=this.seriesErrorRanges||{x:[],y:[]},this.seriesErrorRanges[e][p]=this.seriesErrorRanges[e][p]||new Gi(c[n],l,e),o=this.seriesErrorRanges[e][p].getErrorRange(r,c[n])),o&&this.addPointErrorBar(o,t,e))},e.prototype.addPointErrorBar=function(t,e,i){var o=t.low,r=t.high,n=e.series,s=e.options.errorBars,a=i===x,p={};e[i+"Low"]=o,e[i+"High"]=r,e.errorBars=e.errorBars||[];var l=new Jo(o,r,a,this,n,s);e.errorBars.push(l),e.append(l),p[i]=o,this.updateRange(p,n),p[i]=r,this.updateRange(p,n)},e.prototype.addValue=function(t,e){var i,o=t.x,r=t.y,n=e.seriesIx,s=this.options.series[n],a=this.seriesMissingValues(s),p=this.seriesPoints[n],l=t;Qo(o)&&Qo(r)||(l=this.createMissingValue(l,a)),l&&((i=this.createPoint(l,e))&&(Object.assign(i,e),this.addErrorBar(i,m,e),this.addErrorBar(i,x,e)),this.updateRange(l,e.series)),this.points.push(i),p.push(i)},e.prototype.seriesMissingValues=function(t){return t.missingValues},e.prototype.createMissingValue=function(){},e.prototype.updateRange=function(t,e){var i=this.chartService.intl,o=e.xAxis,r=e.yAxis,n=t.x,s=t.y,a=this.xAxisRanges[o],p=this.yAxisRanges[r];Qo(n)&&(a=this.xAxisRanges[o]=a||{min:u,max:d},R(n)&&(n=Ue(i,n)),a.min=Math.min(a.min,n),a.max=Math.max(a.max,n)),Qo(s)&&(p=this.yAxisRanges[r]=p||{min:u,max:d},R(s)&&(s=Ue(i,s)),p.min=Math.min(p.min,s),p.max=Math.max(p.max,s))},e.prototype.evalPointOptions=function(t,e,i){var o=i.series,r=i.seriesIx,n={defaults:o._defaults,excluded:["data","tooltip","content","template","visual","toggle","_outOfRangeMinPoint","_outOfRangeMaxPoint"]},s=this._evalSeries[r];xt(s)||(this._evalSeries[r]=s=to(t,{},n,!0));var a=t;return s&&to(a=j({},t),{value:e,series:o,dataItem:i.dataItem},n),a},e.prototype.pointType=function(){return ao},e.prototype.pointOptions=function(t,e){var i=this.seriesOptions[e];if(!i){var o=this.pointType().prototype.defaults;this.seriesOptions[e]=i=j({},o,{markers:{opacity:t.opacity},tooltip:{format:this.options.tooltip.format},labels:{format:this.options.labels.format}},t)}return i},e.prototype.createPoint=function(t,e){var i=e.series,o=this.pointOptions(i,e.seriesIx),r=e.color||i.color;o=this.evalPointOptions(o,t,e),M(i.color)&&(r=o.color);var n=new ao(t,o);return n.color=r,this.append(n),n},e.prototype.seriesAxes=function(t){var e=t.xAxis,i=t.yAxis,o=this.plotArea,r=e?o.namedXAxes[e]:o.axisX,n=i?o.namedYAxes[i]:o.axisY;if(!r)throw new Error("Unable to locate X axis with name "+e);if(!n)throw new Error("Unable to locate Y axis with name "+i);return{x:r,y:n}},e.prototype.reflow=function(t){var e=this,i=this.points,o=!this.options.clip,r=0;this.traverseDataPoints((function(t,n){var s=i[r++],a=e.seriesAxes(n.series),p=a.x.getSlot(t.x,t.x,o),l=a.y.getSlot(t.y,t.y,o);if(s)if(p&&l){var c=e.pointSlot(p,l);s.reflow(c)}else s.visible=!1})),this.box=t},e.prototype.pointSlot=function(t,e){return new Nt(t.x1,e.y1,t.x2,e.y2)},e.prototype.traverseDataPoints=function(t){for(var e=this.options.series,i=this.seriesPoints,o=0;o<e.length;o++){var r=e[o];i[o]||(i[o]=[]);for(var n=0;n<r.data.length;n++){var s=this._bindPoint(r,o,n),a=s.valueFields,p=s.fields;t(a,j({pointIx:n,series:r,seriesIx:o,dataItem:r.data[n],owner:this},p))}}},e.prototype.formatPointValue=function(t,e){var i=t.value;return this.chartService.format.auto(e,i.x,i.y)},e.prototype.animationPoints=function(){for(var t=this.points,e=[],i=0;i<t.length;i++)e.push((t[i]||{}).marker);return e},e}(Jt);It($o,{series:[],tooltip:{format:"{0}, {1}"},labels:{format:"{0}, {1}"},clip:!0}),j($o.prototype,_o,{_bindPoint:oo.prototype._bindPoint});var tr=$o,er=function(t){function e(e,i){t.call(this,e,i),this.category=e.category}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.createHighlight=function(){var t=this.options.highlight,e=t.border,i=this.options.markers,o=this.box.center(),r=(i.size+i.border.width+e.width)/2,n=new C.drawing.Group,s=new C.drawing.Circle(new C.geometry.Circle([o.x,o.y+r/5+e.width/2],r+e.width/2),{stroke:{color:"none"},fill:this.createGradient({gradient:"bubbleShadow",color:i.background,stops:[{offset:0,color:i.background,opacity:.3},{offset:1,color:i.background,opacity:0}]})}),a=new C.drawing.Circle(new C.geometry.Circle([o.x,o.y],r),{stroke:{color:e.color||new C.Color(i.background).brightness(.8).toHex(),width:e.width,opacity:e.opacity},fill:{color:i.background,opacity:t.opacity}});return n.append(s,a),n},e}(ao);er.prototype.defaults=j({},er.prototype.defaults,{labels:{position:a},highlight:{opacity:1,border:{color:"#fff",width:2,opacity:1}}}),er.prototype.defaults.highlight.zIndex=void 0;var ir=er,or=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype._initFields=function(){this._maxSize=d,t.prototype._initFields.call(this)},e.prototype.addValue=function(e,i){null!==e.size&&(e.size>0||e.size<0&&i.series.negativeValues.visible)?(this._maxSize=Math.max(this._maxSize,Math.abs(e.size)),t.prototype.addValue.call(this,e,i)):(this.points.push(null),this.seriesPoints[i.seriesIx].push(null))},e.prototype.reflow=function(e){this.updateBubblesSize(e),t.prototype.reflow.call(this,e)},e.prototype.pointType=function(){return ir},e.prototype.createPoint=function(t,e){var i=e.series,o=i.data.length,r=e.pointIx*(600/o),n={delay:r,duration:600-r,type:"bubble"},s=e.color||i.color;t.size<0&&i.negativeValues.visible&&(s=Tt(i.negativeValues.color,s));var a=j({labels:{animation:{delay:r,duration:600-r}}},this.pointOptions(i,e.seriesIx),{markers:{type:p,border:i.border,opacity:i.opacity,animation:n}});a=this.evalPointOptions(a,t,e),M(i.color)&&(s=a.color),a.markers.background=s;var l=new ir(t,a);return l.color=s,this.append(l),l},e.prototype.updateBubblesSize=function(t){for(var e=this.options.series,i=Math.min(t.width(),t.height()),o=0;o<e.length;o++)for(var r=e[o],n=this.seriesPoints[o],s=(r.minSize||Math.max(.02*i,10))/2,a=(r.maxSize||.2*i)/2,p=Math.PI*s*s,l=(Math.PI*a*a-p)/this._maxSize,c=0;c<n.length;c++){var h=n[c];if(h){var u=Math.abs(h.value.size)*l,d=Math.sqrt((p+u)/Math.PI),f=Tt(h.options.zIndex,0)+(1-d/a);j(h.options,{zIndex:f,markers:{size:2*d,zIndex:f},labels:{zIndex:f+1}})}}},e.prototype.formatPointValue=function(t,e){var i=t.value;return this.chartService.format.auto(e,i.x,i.y,i.size,t.category)},e.prototype.createAnimation=function(){},e.prototype.createVisual=function(){},e}(tr);It(or,{tooltip:{format:"{3}"},labels:{format:"{3}"}});var rr=or,nr=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e}(ee);j(nr.prototype,ro);var sr=nr,ar=function(t){function e(e,i){t.call(this,i),this.aboveAxis=this.options.aboveAxis,this.color=i.color||v,this.value=e}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.render=function(){var t=this.options;this._rendered||(this._rendered=!0,xt(this.value.target)&&(this.target=new sr({type:t.target.shape,background:t.target.color||this.color,opacity:t.opacity,zIndex:t.zIndex,border:t.target.border,vAlign:g,align:f}),this.target.value=this.value,this.target.dataItem=this.dataItem,this.target.series=this.series,this.append(this.target)),this.createNote())},e.prototype.reflow=function(t){this.render();var e=this.options,i=this.target,o=this.owner,r=e.invertAxes,n=o.seriesValueAxis(this.options),s=o.categorySlot(o.categoryAxis,e.categoryIx,n),a=n.getSlot(this.value.target),p=r?a:s,l=r?s:a;if(i){var c=new Nt(p.x1,l.y1,p.x2,l.y2);i.options.height=r?c.height():e.target.line.width,i.options.width=r?e.target.line.width:c.width(),i.reflow(c)}this.note&&this.note.reflow(t),this.box=t},e.prototype.createVisual=function(){t.prototype.createVisual.call(this);var e=this.options,i=C.drawing.Path.fromRect(this.box.toRect(),{fill:{color:this.color,opacity:e.opacity},stroke:null});e.border.width>0&&i.options.set("stroke",{color:e.border.color||this.color,width:e.border.width,dashType:e.border.dashType,opacity:Tt(e.border.opacity,e.opacity)}),this.bodyVisual=i,S(i),this.visual.append(i)},e.prototype.createAnimation=function(){this.bodyVisual&&(this.animation=C.drawing.Animation.create(this.bodyVisual,this.options.animation))},e.prototype.createHighlight=function(t){return C.drawing.Path.fromRect(this.box.toRect(),t)},e.prototype.highlightVisual=function(){return this.bodyVisual},e.prototype.highlightVisualArgs=function(){return{rect:this.box.toRect(),visual:this.bodyVisual,options:this.options}},e.prototype.formatValue=function(t){return this.owner.formatPointValue(this,t)},e}(Jt);ar.prototype.tooltipAnchor=Lo.prototype.tooltipAnchor,It(ar,{border:{width:1},vertical:!1,opacity:1,target:{shape:"",border:{width:0,color:"green"},line:{width:2}},tooltip:{format:"Current: {0}<br />Target: {1}"}}),j(ar.prototype,ro),j(ar.prototype,no);var pr=ar,lr=function(t){function e(e,i){!function(t){for(var e=t.series,i=0;i<e.length;i++){var o=e[i],r=o.data;!r||_(r[0])||L(r[0])||(o.data=[r])}}(i),t.call(this,e,i)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.reflowCategories=function(t){for(var e=this.children,i=e.length,o=0;o<i;o++)e[o].reflow(t[o])},e.prototype.plotRange=function(t){var e=t.series,i=this.seriesValueAxis(e),o=this.categoryAxisCrossingValue(i);return[o,t.value.current||o]},e.prototype.createPoint=function(t,e){var i=e.categoryIx,o=e.category,r=e.series,n=e.seriesIx,s=this.options,a=this.children,p=t.valueFields,l=j({vertical:!s.invertAxes,overlay:r.overlay,categoryIx:i,invertAxes:s.invertAxes},r),c=t.fields.color||r.color;l=this.evalPointOptions(l,p,o,i,r,n),M(r.color)&&(c=l.color);var h=new pr(p,l);h.color=c;var u=a[i];return u||(u=new Vo({vertical:s.invertAxes,gap:s.gap,spacing:s.spacing,rtl:!s.invertAxes&&(this.chartService||{}).rtl}),this.append(u)),u.append(h),h},e.prototype.updateRange=function(t,e){var i=t.current,o=t.target,r=e.series.axis,n=this.valueAxisRanges[r];xt(i)&&!isNaN(i)&&xt(o&&!isNaN(o))&&((n=this.valueAxisRanges[r]=n||{min:u,max:d}).min=Math.min(n.min,i,o),n.max=Math.max(n.max,i,o))},e.prototype.formatPointValue=function(t,e){return this.chartService.format.auto(e,t.value.current,t.value.target)},e.prototype.pointValue=function(t){return t.valueFields.current},e.prototype.aboveAxis=function(t){return t.value.current>0},e.prototype.createAnimation=function(){var t=this.points;this._setAnimationOptions();for(var e=0;e<t.length;e++){var i=t[e];i.options.animation=this.options.animation,i.createAnimation()}},e}(oo);lr.prototype._setAnimationOptions=Uo.prototype._setAnimationOptions,It(lr,{animation:{type:Ni}});var cr=lr,hr=function(t){function e(e,i){t.call(this),this.chartService=e,this.options=j({},this.options,i)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.getStyle=function(t,e){var i=t.background,o=t.border.color;if(e){var r=e.color||e.options.color;i=Tt(i,r),o=Tt(o,r)}var n=E(t.padding||{},"auto");return{backgroundColor:i,borderColor:o,font:t.font,color:t.color,opacity:t.opacity,borderWidth:I(t.border.width),paddingTop:I(n.top),paddingBottom:I(n.bottom),paddingLeft:I(n.left),paddingRight:I(n.right)}},e.prototype.show=function(t,e,i){t.format=e.format;var o=this.getStyle(e,i);t.style=o,!xt(e.color)&&new C.Color(o.backgroundColor).percBrightness()>180&&(t.className="k-chart-tooltip-inverse"),this.chartService.notify("showTooltip",t),this.visible=!0},e.prototype.hide=function(){this.chartService&&this.chartService.notify("hideTooltip"),this.visible=!1},e.prototype.destroy=function(){delete this.chartService},e}(C.Class);It(hr,{border:{width:1},opacity:1});var ur=hr,dr=function(t){function e(e,i,o){t.call(this,e,o),this.crosshair=i,this.formatService=e.format,this.initAxisName()}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.initAxisName=function(){var t,e=this.crosshair.axis;t=e.plotArea.categoryAxis?e.getCategory?"categoryAxis":"valueAxis":e.options.vertical?"yAxis":"xAxis",this.axisName=t},e.prototype.showAt=function(t){var e=this.crosshair.axis,i=this.options,o=e[i.stickyMode?"getCategory":"getValue"](t),r=o;i.format?r=this.formatService.auto(i.format,o):e.options.type===l&&(r=this.formatService.auto(e.options.labels.dateFormats[e.options.baseUnit],o)),this.show({point:t,anchor:this.getAnchor(),crosshair:this.crosshair,value:r,axisName:this.axisName,axisIndex:this.crosshair.axis.axisIndex},this.options)},e.prototype.hide=function(){this.chartService.notify("hideTooltip",{crosshair:this.crosshair,axisName:this.axisName,axisIndex:this.crosshair.axis.axisIndex})},e.prototype.getAnchor=function(){var t,e,i,o=this.crosshair,r=this.options,n=r.position,p=r.padding,l=!o.axis.options.vertical,c=o.line.bbox();return l?(t=a,n===s?(e=g,i=c.bottomLeft().translate(0,p)):(e=s,i=c.topLeft().translate(0,-p))):(e=a,n===h?(t=f,i=c.topLeft().translate(-p,0)):(t=h,i=c.topRight().translate(p,0))),{point:i,align:{horizontal:t,vertical:e}}},e}(ur);It(dr,{padding:10});var fr=dr,gr=function(t){function e(e,i,o){t.call(this,o),this.axis=i,this.stickyMode=i instanceof qe;var r=this.options.tooltip;r.visible&&(this.tooltip=new fr(e,this,j({},r,{stickyMode:this.stickyMode})))}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.showAt=function(t){this.point=t,this.moveLine(),this.line.visible(!0),this.tooltip&&this.tooltip.showAt(t)},e.prototype.hide=function(){this.line.visible(!1),this.tooltip&&this.tooltip.hide()},e.prototype.moveLine=function(){var t,e=this.axis,i=this.point,o=e.options.vertical,r=this.getBox(),n=o?x:m,s=new C.geometry.Point(r.x1,r.y1);if(t=o?new C.geometry.Point(r.x2,r.y1):new C.geometry.Point(r.x1,r.y2),i)if(this.stickyMode){var a=e.getSlot(e.pointCategoryIndex(i));s[n]=t[n]=a.center()[n]}else s[n]=t[n]=i[n];this.box=r,this.line.moveTo(s).lineTo(t)},e.prototype.getBox=function(){for(var t,e=this.axis,i=e.pane.axes,o=i.length,r=e.options.vertical,n=e.lineBox().clone(),s=r?m:x,a=0;a<o;a++){var p=i[a];p.options.vertical!==r&&(t?t.wrap(p.lineBox()):t=p.lineBox().clone())}return n[s+1]=t[s+1],n[s+2]=t[s+2],n},e.prototype.createVisual=function(){t.prototype.createVisual.call(this);var e=this.options;this.line=new C.drawing.Path({stroke:{color:e.color,width:e.width,opacity:e.opacity,dashType:e.dashType},visible:!1}),this.moveLine(),this.visual.append(this.line)},e.prototype.destroy=function(){this.tooltip&&this.tooltip.destroy(),t.prototype.destroy.call(this)},e}(Jt);It(gr,{color:n,width:2,zIndex:-1,tooltip:{visible:!1}});var yr=gr,vr=function(t){function e(e,i){t.call(this,e),this.pane=i}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.shouldClip=function(){for(var t=this.children,e=t.length,i=0;i<e;i++)if(!0===t[i].options.clip)return!0;return!1},e.prototype._clipBox=function(){return this.pane.chartsBox()},e.prototype.createVisual=function(){if(this.visual=new C.drawing.Group({zIndex:0}),this.shouldClip()){var t=(this.clipBox=this._clipBox()).toRect(),e=C.drawing.Path.fromRect(t);S(e),this.visual.clip(e),this.unclipLabels()}},e.prototype.stackRoot=function(){return this},e.prototype.unclipLabels=function(){for(var t=this.children,e=this.clipBox,i=0;i<t.length;i++)for(var o=t[i].points||{},r=o.length,n=0;n<r;n++){var s=o[n];if(s&&!1!==s.visible&&s.overlapsBox&&s.overlapsBox(e))if(s.unclipElements)s.unclipElements();else{var a=s.label,p=s.note;a&&a.options.visible&&(a.alignToClipBox&&a.alignToClipBox(e),a.options.noclip=!0),p&&p.options.visible&&(p.options.noclip=!0)}}},e.prototype.destroy=function(){t.prototype.destroy.call(this),delete this.parent},e}(Jt);vr.prototype.isStackRoot=!0;var mr=vr,xr=function(t){function e(e){t.call(this,e),this.id="pane"+_r++,this.createTitle(),this.content=new Jt,this.chartContainer=new mr({},this),this.append(this.content),this.axes=[],this.charts=[]}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.createTitle=function(){var t=this.options.title;L(t)&&(t=j({},t,{align:t.position,position:g})),this.title=ge.buildTitle(t,this,e.prototype.options.title)},e.prototype.appendAxis=function(t){this.content.append(t),this.axes.push(t),t.pane=this},e.prototype.appendAxisAt=function(t,e){this.content.append(t),this.axes.splice(e,0,t),t.pane=this},e.prototype.appendChart=function(t){this.chartContainer.parent!==this.content&&this.content.append(this.chartContainer),this.charts.push(t),this.chartContainer.append(t),t.pane=this},e.prototype.empty=function(){var t=this.parent;if(t){for(var e=0;e<this.axes.length;e++)t.removeAxis(this.axes[e]);for(var i=0;i<this.charts.length;i++)t.removeChart(this.charts[i])}this.axes=[],this.charts=[],this.content.destroy(),this.content.children=[],this.chartContainer.children=[]},e.prototype.reflow=function(e){var i;St(this.children)===this.content&&(i=this.children.pop()),t.prototype.reflow.call(this,e),i&&this.children.push(i),this.title&&(this.contentBox.y1+=this.title.box.height())},e.prototype.visualStyle=function(){var e=t.prototype.visualStyle.call(this);return e.zIndex=-10,e},e.prototype.renderComplete=function(){this.options.visible&&this.createGridLines()},e.prototype.stackRoot=function(){return this},e.prototype.clipRoot=function(){return this},e.prototype.createGridLines=function(){for(var t=this.axes,e=t.concat(this.parent.axes),i=[],o=[],r=0;r<t.length;r++)for(var n=t[r],s=n.options.vertical,a=s?i:o,p=0;p<e.length;p++)if(0===a.length){var l=e[p];s!==l.options.vertical&&vt(a,n.createGridLines(l))}},e.prototype.refresh=function(){this.visual.clear(),this.content.parent=null,this.content.createGradient=this.createGradient.bind(this),this.content.renderVisual(),this.content.parent=this,this.title&&this.visual.append(this.title.visual),this.visual.append(this.content.visual),this.renderComplete(),this.notifyRender()},e.prototype.chartsBox=function(){for(var t=this.axes,e=t.length,i=new Nt,o=0;o<e;o++){var r=t[o],n=r.options.vertical?x:m,s=r.lineBox();i[n+1]=s[n+1],i[n+2]=s[n+2]}if(0===i.x2)for(var a=this.parent.axes,p=a.length,l=0;l<p;l++){var c=a[l];if(!c.options.vertical){var h=c.lineBox();i.x1=h.x1,i.x2=h.x2}}return i},e.prototype.clipBox=function(){return this.chartContainer.clipBox},e.prototype.notifyRender=function(){var t=this.getService();t&&t.notify("paneRender",{pane:new Mi(this),index:this.paneIndex,name:this.options.name})},e}($t),_r=1;xr.prototype.isStackRoot=!0,It(xr,{zIndex:-1,shrinkToFit:!0,title:{align:h},visible:!0});var br=xr;function wr(t,e){null!==e&&t.push(e)}function Ar(t,e,i){var o=e.visible;if(xt(o))return o;var r=t.pointVisibility;return r?r[i]:void 0}function Cr(t){for(var e=t.data,i=[],o=0,r=0,n=0;n<e.length;n++){var s=Vi.current.bindPoint(t,n),a=s.valueFields.value;R(a)&&(a=parseFloat(a)),P(a)?(s.visible=!1!==Ar(t,s.fields,n),s.value=Math.abs(a),i.push(s),s.visible&&(o+=s.value),0!==a&&r++):i.push(null)}return{total:o,points:i,count:r}}function Sr(t,e){return t&&e?t.toLowerCase()===e.toLowerCase():t===e}function kr(t,e){for(var i=[],o=[].concat(e),r=0;r<t.length;r++){var n=t[r];ct(n.type,o)&&i.push(n)}return i}function Pr(t,e,i){if(null===e)return e;var o="_date_"+t,r=e[o];return r||(r=Ue(i,nt(t)(e)),e[o]=r),r}function Rr(t,e){var i=t.type,o=e instanceof Date;return!i&&o||Sr(i,l)}function Or(t){return 1===t.length?t[0]:t}var Mr=/area/i;function Tr(t,e){var i=Vi.current.bindPoint(t,null,e).valueFields;for(var o in i)if(O(i[o]))return!0}function jr(t){var e,i,o=t.start,r=t.dir,n=t.min,s=t.max,a=t.getter,p=t.hasItem,l=t.series,c=o;do{p(c+=r)&&(e=Tr(l,(i=a(c)).item))}while(n<=c&&c<=s&&!e);if(e)return i}function Lr(t,e,i,o,r){var n=e.min,s=e.max,a=n>0&&n<i,p=s+1<i;if(a||p){var l,c,h;if("interpolate"!==function(t){return t.missingValues?t.missingValues:Mr.test(t.type)||t.stack?Hi:"interpolate"}(t))a&&(l=o(n-1)),p&&(c=o(s+1));else a&&(l=Tr(t,(h=o(n-1)).item)?h:jr({start:n,dir:-1,min:0,max:i-1,getter:o,hasItem:r,series:t})),p&&(c=Tr(t,(h=o(s+1)).item)?h:jr({start:s,dir:1,min:0,max:i-1,getter:o,hasItem:r,series:t}));l&&(t._outOfRangeMinPoint=l),c&&(t._outOfRangeMaxPoint=c)}}var Ir=function(t){function e(e,i,o){t.call(this,i),this.initFields(e,i),this.series=e,this.initSeries(),this.charts=[],this.options.legend=this.options.legend||{},this.options.legend.items=[],this.axes=[],this.crosshairs=[],this.chartService=o,this.originalOptions=i,this.createPanes(),this.render(),this.createCrosshairs()}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.initFields=function(){},e.prototype.initSeries=function(){for(var t=this.series,e=0;e<t.length;e++)t[e].index=e},e.prototype.createPanes=function(){for(var t=this.options.title||{},e=this.options.paneDefaults,i=this.options.panes||[],o=Math.max(i.length,1),r=[],n=j({title:{color:t.color}},e),s=0;s<o;s++){var a=j({},n,i[s]);R(a.title)&&(a.title=j({text:a.title},n.title));var p=new br(a);p.paneIndex=s,r.push(p),this.append(p)}this.panes=r},e.prototype.createCrosshairs=function(t){void 0===t&&(t=this.panes);for(var e=0;e<t.length;e++)for(var i=t[e],o=0;o<i.axes.length;o++){var r=i.axes[o];if(r.options.crosshair&&r.options.crosshair.visible){var n=new yr(this.chartService,r,r.options.crosshair);this.crosshairs.push(n),i.content.append(n)}}},e.prototype.removeCrosshairs=function(t){for(var e=this.crosshairs,i=t.axes,o=e.length-1;o>=0;o--)for(var r=0;r<i.length;r++)if(e[o].axis===i[r]){e.splice(o,1);break}},e.prototype.hideCrosshairs=function(){for(var t=this.crosshairs,e=0;e<t.length;e++)t[e].hide()},e.prototype.findPane=function(t){for(var e,i=this.panes,o=0;o<i.length;o++)if(i[o].options.name===t){e=i[o];break}return e||i[0]},e.prototype.findPointPane=function(t){for(var e,i=this.panes,o=0;o<i.length;o++)if(i[o].box.containsPoint(t)){e=i[o];break}return e},e.prototype.appendAxis=function(t){this.findPane(t.options.pane).appendAxis(t),this.axes.push(t),t.plotArea=this},e.prototype.removeAxis=function(t){for(var e=[],i=0;i<this.axes.length;i++){var o=this.axes[i];t!==o?e.push(o):o.destroy()}this.axes=e},e.prototype.appendChart=function(t,e){this.charts.push(t),e?e.appendChart(t):this.append(t)},e.prototype.removeChart=function(t){for(var e=[],i=0;i<this.charts.length;i++){var o=this.charts[i];o!==t?e.push(o):o.destroy()}this.charts=e},e.prototype.addToLegend=function(t){for(var e=t.length,i=this.options.legend,o=i.labels||{},r=i.inactiveItems||{},n=r.labels||{},s=[],a=0;a<e;a++){var p=t[a],l=!1!==p.visible;if(!1!==p.visibleInLegend){var c=p.name,h=l?it(o):it(n)||it(o);h&&(c=h({text:Qo(c)?c:"",series:p}));var u=p._defaults,d=p.color;M(d)&&u&&(d=u.color);var f=void 0,g=void 0;l?(f={},g=d):(f={color:n.color,font:n.font},g=r.markers.color),Qo(c)&&""!==c&&s.push({text:c,labels:f,markerColor:g,series:p,active:l})}}vt(i.items,s)},e.prototype.groupAxes=function(t){for(var e=[],i=[],o=0;o<t.length;o++)for(var r=t[o].axes,n=0;n<r.length;n++){var s=r[n];s.options.vertical?i.push(s):e.push(s)}return{x:e,y:i,any:e.concat(i)}},e.prototype.groupSeriesByPane=function(){for(var t=this.series,e={},i=0;i<t.length;i++){var o=t[i],r=this.seriesPaneName(o);e[r]?e[r].push(o):e[r]=[o]}return e},e.prototype.filterVisibleSeries=function(t){for(var e=[],i=0;i<t.length;i++){var o=t[i];!1!==o.visible&&e.push(o)}return e},e.prototype.reflow=function(t){var e=this.options.plotArea,i=this.panes,o=E(e.margin);this.box=t.clone().unpad(o),this.reflowPanes(),this.detachLabels(),this.reflowAxes(i),this.reflowCharts(i)},e.prototype.redraw=function(t){var e=[].concat(t);this.initSeries();var i=this.getRoot();i&&i.cleanGradients();for(var o=0;o<e.length;o++)this.removeCrosshairs(e[o]),e[o].empty();this.render(e),this.detachLabels(),this.reflowAxes(this.panes),this.reflowCharts(e),this.createCrosshairs(e);for(var r=0;r<e.length;r++)e[r].refresh()},e.prototype.axisCrossingValues=function(t,e){for(var i=t.options,o=[].concat(i.axisCrossingValues||i.axisCrossingValue),r=e.length-o.length,n=o[0]||0,s=0;s<r;s++)o.push(n);return o},e.prototype.alignAxisTo=function(t,e,i,o){var r=t.getSlot(i,i,!0),n=t.options.reverse?2:1,s=e.getSlot(o,o,!0),a=e.options.reverse?2:1,p=t.box.translate(s[m+a]-r[m+n],s[x+a]-r[x+n]);t.pane!==e.pane&&p.translate(0,t.pane.box.y1-e.pane.box.y1),t.reflow(p)},e.prototype.alignAxes=function(t,e){for(var i=t[0],o=e[0],r=this.axisCrossingValues(i,e),n=this.axisCrossingValues(o,t),a={},p={},l={},c={},u=0;u<e.length;u++){var d=e[u],y=d.pane,v=y.id,m=!1!==d.options.visible,x=Vr(t,y)||i,_=r;x!==i&&(_=this.axisCrossingValues(x,e)),this.alignAxisTo(d,x,n[u],_[u]),d.options._overlap||(Ot(d.lineBox().x1)===Ot(x.lineBox().x1)&&(a[v]&&d.reflow(d.box.alignTo(a[v].box,h).translate(-d.options.margin,0)),m&&(a[v]=d)),Ot(d.lineBox().x2)===Ot(x.lineBox().x2)&&(d._mirrored||(d.options.labels.mirror=!d.options.labels.mirror,d._mirrored=!0),this.alignAxisTo(d,x,n[u],_[u]),p[v]&&d.reflow(d.box.alignTo(p[v].box,f).translate(d.options.margin,0)),m&&(p[v]=d)),0!==u&&o.pane===d.pane&&(d.alignTo(o),d.reflow(d.box)))}for(var b=0;b<t.length;b++){var w=t[b],A=w.pane,C=A.id,S=!1!==w.options.visible,k=Vr(e,A)||o,P=n;k!==o&&(P=this.axisCrossingValues(k,t)),this.alignAxisTo(w,k,r[b],P[b]),w.options._overlap||(Ot(w.lineBox().y1)===Ot(k.lineBox().y1)&&(w._mirrored||(w.options.labels.mirror=!w.options.labels.mirror,w._mirrored=!0),this.alignAxisTo(w,k,r[b],P[b]),l[C]&&w.reflow(w.box.alignTo(l[C].box,g).translate(0,-w.options.margin)),S&&(l[C]=w)),Ot(w.lineBox().y2,3)===Ot(k.lineBox().y2,3)&&(c[C]&&w.reflow(w.box.alignTo(c[C].box,s).translate(0,w.options.margin)),S&&(c[C]=w)),0!==b&&(w.alignTo(i),w.reflow(w.box)))}},e.prototype.shrinkAxisWidth=function(t){for(var e=this.groupAxes(t).any,i=Br(e),o=0,r=0;r<t.length;r++){var n=t[r];n.axes.length>0&&(o=Math.max(o,i.width()-n.contentBox.width()))}if(0!==o)for(var s=0;s<e.length;s++){var a=e[s];a.options.vertical||a.reflow(a.box.shrink(o,0))}},e.prototype.shrinkAxisHeight=function(t){for(var e,i=0;i<t.length;i++){var o=t[i],r=o.axes,n=Math.max(0,Br(r).height()-o.contentBox.height());if(0!==n){for(var s=0;s<r.length;s++){var a=r[s];a.options.vertical&&a.reflow(a.box.shrink(0,n))}e=!0}}return e},e.prototype.fitAxes=function(t){for(var e=this.groupAxes(t).any,i=0,o=0;o<t.length;o++){var r=t[o],n=r.axes,s=r.contentBox;if(n.length>0){var a=Br(n),p=Math.max(s.y1-a.y1,s.y2-a.y2);i=Math.max(i,s.x1-a.x1);for(var l=0;l<n.length;l++){var c=n[l];c.reflow(c.box.translate(0,p))}}}for(var h=0;h<e.length;h++){var u=e[h];u.reflow(u.box.translate(i,0))}},e.prototype.reflowAxes=function(t){for(var e=this.groupAxes(t),i=0;i<t.length;i++)this.reflowPaneAxes(t[i]);e.x.length>0&&e.y.length>0&&(this.alignAxes(e.x,e.y),this.shrinkAxisWidth(t),this.autoRotateAxisLabels(e),this.alignAxes(e.x,e.y),this.shrinkAxisWidth(t)&&this.alignAxes(e.x,e.y),this.shrinkAxisHeight(t),this.alignAxes(e.x,e.y),this.shrinkAxisHeight(t)&&this.alignAxes(e.x,e.y),this.fitAxes(t))},e.prototype.autoRotateAxisLabels=function(t){for(var e,i=this.panes,o=Er(i),r=0;r<o.length;r++){o[r].autoRotateLabels()&&(e=!0)}if(e){for(var n=0;n<i.length;n++)this.reflowPaneAxes(i[n]);t.x.length>0&&t.y.length>0&&(this.alignAxes(t.x,t.y),this.shrinkAxisWidth(i))}},e.prototype.reflowPaneAxes=function(t){var e=t.axes,i=e.length;if(i>0)for(var o=0;o<i;o++)e[o].reflow(t.contentBox)},e.prototype.reflowCharts=function(t){for(var e=this.charts,i=e.length,o=this.box,r=0;r<i;r++){var n=e[r].pane;n&&!ct(n,t)||e[r].reflow(o)}},e.prototype.reflowPanes=function(){for(var t=this.box,e=this.panes,i=e.length,o=t.height(),r=0,n=t.y1,s=0;s<i;s++){var a=e[s],p=a.options.height;if(a.options.width=t.width(),a.options.height){if(p.indexOf&&p.indexOf("%")){var l=parseInt(p,10)/100;a.options.height=l*t.height()}a.reflow(t.clone()),o-=a.options.height}else r++}for(var c=0;c<i;c++){var h=e[c];h.options.height||(h.options.height=o/r)}for(var u=0;u<i;u++){var d=e[u],f=t.clone().move(t.x1,n);d.reflow(f),n+=d.options.height}},e.prototype.backgroundBox=function(){for(var t,e=this.axes,i=e.length,o=0;o<i;o++)for(var r=e[o],n=0;n<i;n++){var s=e[n];if(r.options.vertical!==s.options.vertical){var a=r.lineBox().clone().wrap(s.lineBox());t=t?t.wrap(a):a}}return t||this.box},e.prototype.chartsBoxes=function(){for(var t=this.panes,e=[],i=0;i<t.length;i++)e.push(t[i].chartsBox());return e},e.prototype.addBackgroundPaths=function(t){for(var e=this.chartsBoxes(),i=0;i<e.length;i++)t.paths.push(C.drawing.Path.fromRect(e[i].toRect()))},e.prototype.backgroundContainsPoint=function(t){for(var e=this.chartsBoxes(),i=0;i<e.length;i++)if(e[i].containsPoint(t))return!0},e.prototype.createVisual=function(){t.prototype.createVisual.call(this);var e,i=this.options.plotArea,o=i.opacity,r=i.background,n=i.border;void 0===n&&(n={}),""!==(e=r)&&null!==e&&"none"!==e&&"transparent"!==e&&xt(e)||(r=v,o=0);var s=this._bgVisual=new C.drawing.MultiPath({fill:{color:r,opacity:o},stroke:{color:n.width?n.color:"",width:n.width,dashType:n.dashType},zIndex:-1});this.addBackgroundPaths(s),this.appendVisual(s)},e.prototype.pointsByCategoryIndex=function(t){var e=this.charts,i=[];if(null!==t)for(var o=0;o<e.length;o++){if("_navigator"!==e[o].pane.options.name){var r=e[o].categoryPoints[t];if(r&&r.length)for(var n=0;n<r.length;n++){var s=r[n];s&&xt(s.value)&&null!==s.value&&i.push(s)}}}return i},e.prototype.pointsBySeriesIndex=function(t){return this.filterPoints((function(e){return e.series.index===t}))},e.prototype.pointsBySeriesName=function(t){return this.filterPoints((function(e){return e.series.name===t}))},e.prototype.filterPoints=function(t){for(var e=this.charts,i=[],o=0;o<e.length;o++)for(var r=e[o].points,n=0;n<r.length;n++){var s=r[n];s&&!1!==s.visible&&t(s)&&i.push(s)}return i},e.prototype.findPoint=function(t){for(var e=this.charts,i=0;i<e.length;i++)for(var o=e[i].points,r=0;r<o.length;r++){var n=o[r];if(n&&!1!==n.visible&&t(n))return n}},e.prototype.paneByPoint=function(t){for(var e=this.panes,i=0;i<e.length;i++){var o=e[i];if(o.box.containsPoint(t))return o}},e.prototype.detachLabels=function(){var t=this.groupAxes(this.panes),e=t.x,i=t.y;this.detachAxisGroupLabels(i,e),this.detachAxisGroupLabels(e,i)},e.prototype.detachAxisGroupLabels=function(t,e){for(var i=0,o=0;o<t.length;o++){var r=t[o],n=r.pane,s=Vr(e,n)||e[0],a=o+i,p=this.createLabelAxis(r,a,s);if(p){i++;var l=n.axes.indexOf(r)+i;n.appendAxisAt(p,l)}}},e.prototype.createLabelAxis=function(t,e,i){var o=t.options.labels,r=o.position,n="end"!==r&&"start"!==r,s=o.visible;if(n||!1===s)return null;var a=this.groupAxes(this.panes),p=i.options.vertical?a.x:a.y,l=this.axisCrossingValues(i,p),c="end"===r,h=i.range(),u=c?h.max:h.min;if(kt(l[e],h.min,h.max)-u==0)return null;l.splice(e+1,0,u),i.options.axisCrossingValues=l;var d=t.clone();return t.clear(),d.options.name=void 0,d.options.line.visible=!1,d.options.crosshair=void 0,d.options.notes=void 0,d.options.plotBands=void 0,d},e}(Jt);function zr(t){return!t.pane.axes.some((function(e){return e.options.vertical===t.options.vertical&&e!==t&&!1!==e.options.visible}))}function Br(t){for(var e,i=t.length,o=0;o<i;o++){var r=t[o],n=!1!==r.options.visible;if(n||zr(r)){var s=n?r.contentBox():r.lineBox();e?e.wrap(s):e=s.clone()}}return e||new Nt}function Vr(t,e){for(var i=0;i<t.length;i++){var o=t[i];if(o&&o.pane===e)return o}}var Er=function(t){return t.reduce((function(t,e){return t.concat(e.axes)}),[])};It(Ir,{series:[],plotArea:{margin:{}},background:"",border:{color:n,width:0},paneDefaults:{title:{}},legend:{inactiveItems:{labels:{color:"#919191"},markers:{color:"#919191"}}}});var Dr=Ir,Gr={hover:function(t,e){this._dispatchEvent(t,e,"plotAreaHover")},click:function(t,e){this._dispatchEvent(t,e,"plotAreaClick")}};function Ur(t,e,i){var o=e,r=t;if(t.indexOf(".")>-1){for(var n=t.split(".");n.length>1;)r=n.shift(),xt(o[r])||(o[r]={}),o=o[r];r=n.shift()}o[r]=i}var Fr=function(t){function e(e,i,o){t.call(this);var r=i.canonicalFields(e),n=i.valueFields(e),s=i.sourceFields(e,r),a=this._seriesFields=[],p=o.query(e.type),l=e.aggregate||p;this._series=e,this._binder=i;for(var c=0;c<r.length;c++){var h=r[c],u=void 0;if(L(l))u=l[h];else{if(0!==c&&!ct(h,n))break;u=l}u&&a.push({canonicalName:h,name:s[c],transform:M(u)?u:Ii[u]})}}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.aggregatePoints=function(t,e){var i=this._series,o=this._seriesFields,r=this._bindPoints(t||[]),n=r.dataItems[0],s={};if(n&&!P(n)&&!_(n)){var a=function(){};a.prototype=n,s=new a}for(var p=0;p<o.length;p++){var l=o[p],c=this._bindField(r.values,l.canonicalName),h=l.transform(c,i,r.dataItems,e);if(!(null===h||!L(h)||xt(h.length)||h instanceof Date)){s=h;break}xt(h)&&Ur(l.name,s,h)}return s},e.prototype._bindPoints=function(t){for(var e=this._binder,i=this._series,o=[],r=[],n=0;n<t.length;n++){var s=t[n];o.push(e.bindPoint(i,s)),r.push(i.data[s])}return{values:o,dataItems:r}},e.prototype._bindField=function(t,e){for(var i=[],o=t.length,r=0;r<o;r++){var n=t[r],s=n.valueFields,a=void 0;a=xt(s[e])?s[e]:n.fields[e],i.push(a)}return i},e}(C.Class),Hr=function(t){function e(){t.call(this),this._defaults={}}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.register=function(t,e){for(var i=0;i<t.length;i++)this._defaults[t[i]]=e},e.prototype.query=function(t){return this._defaults[t]},e}(C.Class);Hr.current=new Hr;var Nr=Hr,qr=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.createLabel=function(){var t=this.options.labels,e=j({},t,t.from),i=j({},t,t.to);e.visible&&(this.labelFrom=this._createLabel(e),this.append(this.labelFrom)),i.visible&&(this.labelTo=this._createLabel(i),this.append(this.labelTo))},e.prototype._createLabel=function(t){var e,i=it(t),o=this.pointData();return e=i?i(o):this.formatValue(t.format),new Mo(e,j({vertical:this.options.vertical},t),o)},e.prototype.reflow=function(t){this.render();var e=this.labelFrom,i=this.labelTo,o=this.value;this.box=t,e&&(e.options.aboveAxis=o.from>o.to,e.reflow(t)),i&&(i.options.aboveAxis=o.to>o.from,i.reflow(t)),this.note&&this.note.reflow(t)},e}(Lo);qr.prototype.defaults=j({},qr.prototype.defaults,{labels:{format:"{0} - {1}"},tooltip:{format:"{1}"}});var Kr=qr,Xr=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.pointType=function(){return Kr},e.prototype.pointValue=function(t){return t.valueFields},e.prototype.formatPointValue=function(t,e){return null===t.value.from&&null===t.value.to?"":this.chartService.format.auto(e,t.value.from,t.value.to)},e.prototype.plotRange=function(t){return t?[t.value.from,t.value.to]:0},e.prototype.updateRange=function(t,e){var i=e.series.axis,o=t.from,r=t.to,n=this.valueAxisRanges[i];null!==t&&P(o)&&P(r)&&((n=this.valueAxisRanges[i]=n||{min:u,max:d}).min=Math.min(n.min,o),n.max=Math.max(n.max,o),n.min=Math.min(n.min,r),n.max=Math.max(n.max,r))},e.prototype.aboveAxis=function(t){var e=t.value;return e.from<e.to},e}(Uo);Xr.prototype.plotLimits=oo.prototype.plotLimits;var Yr=Xr,Wr=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.aliasFor=function(){return this.parent},e}(ao),Zr=function(t){function e(e,i){t.call(this),this.value=e,this.options=i,this.aboveAxis=Tt(this.options.aboveAxis,!0),this.tooltipTracking=!0,this.initLabelsFormat()}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.render=function(){if(!this._rendered){this._rendered=!0;var t=this.options,e=t.markers,i=t.labels,o=this.value,r=this.fromPoint=new Wr(o,j({},this.options,{labels:i.from,markers:e.from})),n=this.toPoint=new Wr(o,j({},this.options,{labels:i.to,markers:e.to}));this.copyFields(r),this.copyFields(n),this.append(r),this.append(n)}},e.prototype.reflow=function(t){this.render();var e=t.from,i=t.to;this.positionLabels(e,i),this.fromPoint.reflow(e),this.toPoint.reflow(i),this.box=this.fromPoint.markerBox().clone().wrap(this.toPoint.markerBox())},e.prototype.createHighlight=function(){var t=new C.drawing.Group;return t.append(this.fromPoint.createHighlight()),t.append(this.toPoint.createHighlight()),t},e.prototype.highlightVisual=function(){return this.visual},e.prototype.highlightVisualArgs=function(){return{options:this.options,from:this.fromPoint.highlightVisualArgs(),to:this.toPoint.highlightVisualArgs()}},e.prototype.tooltipAnchor=function(){var t=this.owner.pane.clipBox();if(!t||t.overlaps(this.box)){var e,i,o,r=this.box,n=r.center();return this.options.vertical?(e=n.x,i=r.y1-5,o=s):(e=r.x2+5,i=n.y,o=a),{point:new Ft(e,i),align:{horizontal:"left",vertical:o}}}},e.prototype.formatValue=function(t){return this.owner.formatPointValue(this,t)},e.prototype.overlapsBox=function(t){return this.box.overlaps(t)},e.prototype.unclipElements=function(){this.fromPoint.unclipElements(),this.toPoint.unclipElements()},e.prototype.initLabelsFormat=function(){var t=this.options.labels;t.format||(t.from&&t.from.format||(t.from=Object.assign({},t.from,{format:"{0}"})),t.to&&t.to.format||(t.to=Object.assign({},t.to,{format:"{1}"})))},e.prototype.positionLabels=function(t,e){var i,o,r=this.options,n=r.labels,s=r.vertical;"auto"===n.position&&(s?e.y1<=t.y1?(o="above",i="below"):(o="below",i="above"):e.x1<=t.x1?(o=h,i=f):(o=f,i=h),n.from&&n.from.position||(this.fromPoint.options.labels.position=i),n.to&&n.to.position||(this.toPoint.options.labels.position=o))},e.prototype.copyFields=function(t){t.dataItem=this.dataItem,t.category=this.category,t.series=this.series,t.color=this.color,t.owner=this.owner},e}(Jt);j(Zr.prototype,ro),j(Zr.prototype,no),Zr.prototype.defaults={markers:{visible:!1,background:v,size:8,type:p,border:{width:2},opacity:1},labels:{visible:!1,margin:E(3),padding:E(4),animation:{type:"fadeIn",delay:600},position:"auto"},notes:{label:{}},highlight:{markers:{border:{color:v,width:2}},zIndex:100},tooltip:{format:"{0} - {1}"}};var Jr=Zr,Qr=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.createStrokeSegments=function(){return this.segmentsFromPoints(this.toGeometryPoints(this.toPoints()))},e.prototype.stackSegments=function(){var t=this.fromSegments;return this.fromSegments||(t=this.fromSegments=this.segmentsFromPoints(this.toGeometryPoints(this.fromPoints().reverse()))),t},e.prototype.createStroke=function(t){var e=new C.drawing.Path(t),i=new C.drawing.Path(t);e.segments.push.apply(e.segments,this.strokeSegments()),i.segments.push.apply(i.segments,this.stackSegments()),this.visual.append(e),this.visual.append(i)},e.prototype.hasStackSegment=function(){return!0},e.prototype.fromPoints=function(){return this.linePoints.map((function(t){return t.fromPoint}))},e.prototype.toPoints=function(){return this.linePoints.map((function(t){return t.toPoint}))},e}(Ao),$r=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.createStrokeSegments=function(){return this.createCurveSegments(this.toPoints())},e.prototype.stackSegments=function(){var t=this.fromSegments;return this.fromSegments||(t=this.fromSegments=this.createCurveSegments(this.fromPoints().reverse())),t},e.prototype.createCurveSegments=function(t){return(new ki).process(this.toGeometryPoints(t))},e}(Qr),tn=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.createStrokeSegments=function(){return this.segmentsFromPoints(this.calculateStepPoints(this.toPoints()))},e.prototype.stackSegments=function(){var t=this.fromSegments;return this.fromSegments||(t=this.fromSegments=this.segmentsFromPoints(this.calculateStepPoints(this.fromPoints()))).reverse(),t},e}(Qr);j(tn.prototype,ho);var en=tn,on=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.render=function(){t.prototype.render.call(this),this.renderSegments()},e.prototype.pointType=function(){return Jr},e.prototype.createPoint=function(t,e){var i=e.categoryIx,o=e.category,r=e.series,n=e.seriesIx,s=t.valueFields;if(!Qo(s.from)&&!Qo(s.to)){if(this.seriesMissingValues(r)!==Hi)return null;s={from:0,to:0}}var a=this.pointOptions(r,n);a=this.evalPointOptions(a,s,o,i,r,n);var p=t.fields.color||r.color;M(r.color)&&(p=a.color);var l=new Jr(s,a);return l.color=p,this.append(l),l},e.prototype.createSegment=function(t,e,i){var o=(e.line||{}).style;return new("smooth"===o?$r:"step"===o?en:Qr)(t,e,i)},e.prototype.plotRange=function(t,e){return t?[t.value.from,t.value.to]:[e,e]},e.prototype.valueSlot=function(t,e){var i=t.getSlot(e[0],e[0],!this.options.clip),o=t.getSlot(e[1],e[1],!this.options.clip);if(i&&o)return{from:i,to:o}},e.prototype.pointSlot=function(t,e){var i,o,r=e.from,n=e.to;return this.options.invertAxes?(i=new Nt(r.x1,t.y1,r.x2,t.y2),o=new Nt(n.x1,t.y1,n.x2,t.y2)):(i=new Nt(t.x1,r.y1,t.x2,r.y2),o=new Nt(t.x1,n.y1,t.x2,n.y2)),{from:i,to:o}},e.prototype.addValue=function(e,i){var o=e.valueFields;P(o.from)||(o.from=o.to),P(o.to)||(o.to=o.from),t.prototype.addValue.call(this,e,i)},e.prototype.updateRange=function(t,e){if(null!==t&&P(t.from)&&P(t.to)){var i=e.series.axis,o=this.valueAxisRanges[i]=this.valueAxisRanges[i]||{min:u,max:d},r=t.from,n=t.to;o.min=Math.min(o.min,r,n),o.max=Math.max(o.max,r,n)}},e.prototype.formatPointValue=function(t,e){var i=t.value;return this.chartService.format.auto(e,i.from,i.to)},e.prototype.animationPoints=function(){for(var t=this.points,e=[],i=0;i<t.length;i++){var o=t[i];o&&(e.push((o.fromPoint||{}).marker),e.push((o.toPoint||{}).marker))}return e.concat(this._segments)},e}(oo);j(on.prototype,yo,_o);var rn=on,nn=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.reflow=function(t){var e=this.options,i=this.value,o=this.owner.seriesValueAxis(e),r=[],n=[],s=[],a=o.getSlot(i.low,i.high),p=o.getSlot(i.open,i.open),l=o.getSlot(i.close,i.close);p.x1=l.x1=a.x1=t.x1,p.x2=l.x2=a.x2=t.x2;var c=a.center().x;r.push([p.x1,p.y1]),r.push([c,p.y1]),n.push([c,l.y1]),n.push([l.x2,l.y1]),s.push([c,a.y1]),s.push([c,a.y2]),this.lines=[r,n,s],this.box=a.clone().wrap(p.clone().wrap(l)),this.reflowNote()},e.prototype.createBody=function(){},e}(Ho),sn=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.pointType=function(){return nn},e}(Ko),an=function(t){function e(e,i,o){t.call(this),this.from=e,this.to=i,this.series=o}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.linePoints=function(){var t=this.from,e=this.from.box,i=this.to.box,o=[];if(t.isVertical){var r=t.aboveAxis?e.y1:e.y2;o.push([e.x1,r],[i.x2,r])}else{var n=t.aboveAxis?e.x2:e.x1;o.push([n,e.y1],[n,i.y2])}return o},e.prototype.createVisual=function(){t.prototype.createVisual.call(this);var e=this.series.line||{},i=C.drawing.Path.fromPoints(this.linePoints(),{stroke:{color:e.color,width:e.width,opacity:e.opacity,dashType:e.dashType}});S(i),this.visual.append(i)},e}(Jt);It(an,{animation:{type:"fadeIn",delay:600}});var pn=an,ln=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.render=function(){t.prototype.render.call(this),this.createSegments()},e.prototype.traverseDataPoints=function(t){for(var e=this.options.series,i=eo(e),o=!this.options.invertAxes,r=0;r<e.length;r++)for(var n=e[r],s=0,a=0,p=0;p<i;p++){var l=Vi.current.bindPoint(n,p),c=l.valueFields.value,h=l.fields.summary,u=s,d=void 0;h?"total"===h.toLowerCase()?(l.valueFields.value=s,u=0,d=s):(l.valueFields.value=a,d=u-a,a=0):P(c)&&(a+=c,d=s+=c),t(l,{category:this.categoryAxis.categoryAt(p),categoryIx:p,series:n,seriesIx:r,total:s,runningTotal:a,from:u,to:d,isVertical:o})}},e.prototype.updateRange=function(e,i){t.prototype.updateRange.call(this,{value:i.to},i)},e.prototype.aboveAxis=function(t){return t.value>=0},e.prototype.plotRange=function(t){return[t.from,t.to]},e.prototype.createSegments=function(){for(var t=this.options.series,e=this.seriesPoints,i=this.segments=[],o=0;o<t.length;o++){var r=t[o],n=e[o];if(n)for(var s=void 0,a=0;a<n.length;a++){var p=n[a];if(p&&s){var l=new pn(s,p,r);i.push(l),this.append(l)}s=p}}},e}(Uo),cn=["area","verticalArea","rangeArea","verticalRangeArea"],hn=[Ki,Yi].concat(cn),un=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.initFields=function(t){if(this.namedCategoryAxes={},this.namedValueAxes={},this.valueAxisRangeTracker=new Ro,t.length>0){this.invertAxes=ct(t[0].type,[Ni,"bullet",Yi,"verticalArea","verticalRangeArea","rangeBar","horizontalWaterfall","verticalBoxPlot"]);for(var e=0;e<t.length;e++){var i=t[e].stack;if(i&&"100%"===i.type){this.stack100=!0;break}}}},e.prototype.render=function(t){void 0===t&&(t=this.panes),this.createCategoryAxes(t),this.aggregateCategories(t),this.createCategoryAxesLabels(t),this.createCharts(t),this.createValueAxes(t)},e.prototype.removeAxis=function(e){var i=e.options.name;t.prototype.removeAxis.call(this,e),e instanceof qe?delete this.namedCategoryAxes[i]:(this.valueAxisRangeTracker.reset(i),delete this.namedValueAxes[i]),e===this.categoryAxis&&delete this.categoryAxis,e===this.valueAxis&&delete this.valueAxis},e.prototype.createCharts=function(t){for(var e=this.groupSeriesByPane(),i=0;i<t.length;i++){var o=t[i],r=e[o.options.name||"default"]||[];this.addToLegend(r);var n=this.filterVisibleSeries(r);if(n)for(var s=this.groupSeriesByCategoryAxis(n),a=0;a<s.length;a++)this.createChartGroup(s[a],o)}},e.prototype.createChartGroup=function(t,e){this.createAreaChart(kr(t,["area","verticalArea"]),e),this.createRangeAreaChart(kr(t,["rangeArea","verticalRangeArea"]),e),this.createBarChart(kr(t,[qi,Ni]),e),this.createRangeBarChart(kr(t,["rangeColumn","rangeBar"]),e),this.createBulletChart(kr(t,["bullet","verticalBullet"]),e),this.createCandlestickChart(kr(t,"candlestick"),e),this.createBoxPlotChart(kr(t,["boxPlot","verticalBoxPlot"]),e),this.createOHLCChart(kr(t,"ohlc"),e),this.createWaterfallChart(kr(t,["waterfall","horizontalWaterfall"]),e),this.createLineChart(kr(t,[Ki,Yi]),e)},e.prototype.aggregateCategories=function(t){var e=this.srcSeries||this.series,i=[];this._currentPointsCache={},this._seriesPointsCache=this._seriesPointsCache||{};for(var o=0;o<e.length;o++){var r=e[o],n=this.seriesCategoryAxis(r),s=this.findPane(n.options.pane);r=(Sr(n.options.type,l)||r.categoryField)&&ct(s,t)?this.aggregateSeries(r,n):this.filterSeries(r,n),i.push(r)}this._seriesPointsCache=this._currentPointsCache,this._currentPointsCache=null,this.srcSeries=e,this.series=i},e.prototype.filterSeries=function(t,e){var i=(t.data||{}).length;if(e._seriesMax=Math.max(e._seriesMax||0,i),!P(e.options.min)&&!P(e.options.max))return t;var o=e.currentRangeIndices(),r=ct(t.type,hn),n=j({},t);return n.data=(n.data||[]).slice(o.min,o.max+1),r&&Lr(n,o,i,(function(i){return{item:t.data[i],category:e.categoryAt(i,!0),categoryIx:i-o.min}}),(function(e){return xt(t.data[e])})),n},e.prototype.clearSeriesPointsCache=function(){this._seriesPointsCache={}},e.prototype.seriesSourcePoints=function(t,e){var i=t.index+";"+e.categoriesHash();if(this._seriesPointsCache[i])return this._currentPointsCache[i]=this._seriesPointsCache[i],this._seriesPointsCache[i];var o=e.options,r=o.srcCategories,n=Sr(o.type,l),s=t.data,a=n?Pr:zi,p=[];n||e.mapCategories();for(var c=0;c<s.length;c++){var h=void 0;if(h=t.categoryField?a(t.categoryField,s[c],this.chartService.intl):r[c],xt(h)&&null!==h){var u=e.totalIndex(h);p[u]=p[u]||{items:[],category:h},p[u].items.push(c)}}return this._currentPointsCache[i]=p,p},e.prototype.aggregateSeries=function(t,e){if(!t.data.length)return t;for(var i=this.seriesSourcePoints(t,e),o=j({},t),r=new Fr(j({},t),Vi.current,Nr.current),n=o.data=[],s=e.options.dataItems||[],a=e.currentRangeIndices(),p=function(t){var o=t-a.min,n=i[t];if(n||(n=i[t]={}),n.categoryIx=o,!n.item){var s=e.categoryAt(t,!0);n.category=s,n.item=r.aggregatePoints(n.items,s)}return n},l=a.min;l<=a.max;l++){var c=p(l);n[c.categoryIx]=c.item,c.items&&c.items.length&&(s[c.categoryIx]=c.item)}return ct(o.type,hn)&&Lr(o,a,e.totalCount(),p,(function(t){return i[t]})),e.options.dataItems=s,o},e.prototype.appendChart=function(e,i){var o=e.options.series,r=this.seriesCategoryAxis(o[0]),n=r.options.categories,s=Math.max(0,eo(o)-n.length);if(s>0)for(n=r.options.categories=r.options.categories.slice(0);s--;)n.push("");this.valueAxisRangeTracker.update(e.valueAxisRanges),t.prototype.appendChart.call(this,e,i)},e.prototype.seriesPaneName=function(t){var e=this.options,i=t.axis,o=st([].concat(e.valueAxis),(function(t){return t.name===i}))[0],r=((e.panes||[{}])[0]||{}).name||"default";return(o||{}).pane||r},e.prototype.seriesCategoryAxis=function(t){var e=t.categoryAxis,i=e?this.namedCategoryAxes[e]:this.categoryAxis;if(!i)throw new Error("Unable to locate category axis with name "+e);return i},e.prototype.stackableChartOptions=function(t,e){var i=t.stack;return{isStacked:i,isStacked100:i&&"100%"===i.type,clip:e.options.clip}},e.prototype.groupSeriesByCategoryAxis=function(t){for(var e=[],i={},o=0;o<t.length;o++){var r=t[o].categoryAxis||"$$default$$";i.hasOwnProperty(r)||(i[r]=!0,e.push(r))}for(var n=[],s=0;s<e.length;s++){var a=fn(t,e[s],s);0!==a.length&&n.push(a)}return n},e.prototype.createBarChart=function(t,e){if(0!==t.length){var i=t[0],o=new Uo(this,Object.assign({series:t,invertAxes:this.invertAxes,gap:i.gap,spacing:i.spacing},this.stackableChartOptions(i,e)));this.appendChart(o,e)}},e.prototype.createRangeBarChart=function(t,e){if(0!==t.length){var i=t[0],o=new Yr(this,{series:t,invertAxes:this.invertAxes,gap:i.gap,spacing:i.spacing});this.appendChart(o,e)}},e.prototype.createBulletChart=function(t,e){if(0!==t.length){var i=t[0],o=new cr(this,{series:t,invertAxes:this.invertAxes,gap:i.gap,spacing:i.spacing,clip:e.options.clip});this.appendChart(o,e)}},e.prototype.createLineChart=function(t,e){if(0!==t.length){var i=t[0],o=new wo(this,Object.assign({invertAxes:this.invertAxes,series:t},this.stackableChartOptions(i,e)));this.appendChart(o,e)}},e.prototype.createAreaChart=function(t,e){if(0!==t.length){var i=t[0],o=new Po(this,Object.assign({invertAxes:this.invertAxes,series:t},this.stackableChartOptions(i,e)));this.appendChart(o,e)}},e.prototype.createRangeAreaChart=function(t,e){if(0!==t.length){var i=new rn(this,{invertAxes:this.invertAxes,series:t,clip:e.options.clip});this.appendChart(i,e)}},e.prototype.createOHLCChart=function(t,e){if(0!==t.length){var i=t[0],o=new sn(this,{invertAxes:this.invertAxes,gap:i.gap,series:t,spacing:i.spacing,clip:e.options.clip});this.appendChart(o,e)}},e.prototype.createCandlestickChart=function(t,e){if(0!==t.length){var i=t[0],o=new Ko(this,{invertAxes:this.invertAxes,gap:i.gap,series:t,spacing:i.spacing,clip:e.options.clip});this.appendChart(o,e)}},e.prototype.createBoxPlotChart=function(t,e){if(0!==t.length){var i=t[0],o=new Zo(this,{invertAxes:this.invertAxes,gap:i.gap,series:t,spacing:i.spacing,clip:e.options.clip});this.appendChart(o,e)}},e.prototype.createWaterfallChart=function(t,e){if(0!==t.length){var i=t[0],o=new ln(this,{series:t,invertAxes:this.invertAxes,gap:i.gap,spacing:i.spacing});this.appendChart(o,e)}},e.prototype.axisRequiresRounding=function(t,e){for(var i=kr(this.series,Wi),o=0;o<this.series.length;o++){var r=this.series[o];if(ct(r.type,cn)){var n=r.line;n&&"step"===n.style&&i.push(r)}}for(var s=0;s<i.length;s++){var a=i[s].categoryAxis||"";if(a===t||!a&&0===e)return!0}},e.prototype.aggregatedAxis=function(t,e){for(var i=this.series,o=0;o<i.length;o++){var r=i[o].categoryAxis||"";if((r===t||!r&&0===e)&&i[o].categoryField)return!0}},e.prototype.createCategoryAxesLabels=function(){for(var t=this.axes,e=0;e<t.length;e++)t[e]instanceof qe&&t[e].createLabels()},e.prototype.createCategoryAxes=function(t){for(var e=this.invertAxes,i=[].concat(this.options.categoryAxis),o=[],r=0;r<i.length;r++){var n=i[r];if(ct(this.findPane(n.pane),t)){var s=n.name,a=n.categories;void 0===a&&(a=[]),n=j({vertical:e,reverse:!e&&this.chartService.rtl,axisCrossingValue:e?u:0},n),xt(n.justified)||(n.justified=this.isJustified()),this.axisRequiresRounding(s,r)&&(n.justified=!1);var p=void 0;if(p=Rr(n,a[0])?new ti(n,this.chartService):new qe(n,this.chartService),i[r].categories=p.options.srcCategories,s){if(this.namedCategoryAxes[s])throw new Error("Category axis with name "+s+" is already defined");this.namedCategoryAxes[s]=p}p.axisIndex=r,o.push(p),this.appendAxis(p)}}var l=this.categoryAxis||o[0];this.categoryAxis=l,e?this.axisY=l:this.axisX=l},e.prototype.isJustified=function(){for(var t=this.series,e=0;e<t.length;e++){if(!ct(t[e].type,cn))return!1}return!0},e.prototype.createValueAxes=function(t){var e=this.valueAxisRangeTracker,i=e.query(),o=[].concat(this.options.valueAxis),r=this.invertAxes,n={vertical:!r,reverse:r&&this.chartService.rtl},s=[];this.stack100&&(n.roundToMajorUnit=!1,n.labels={format:"P0"});for(var a=0;a<o.length;a++){var p=o[a];if(ct(this.findPane(p.pane),t)){var l=p.name,c=Sr(p.type,"log")?{min:.1,max:1}:{min:0,max:1},h=e.query(l)||i||c;0===a&&h&&i&&(h.min=Math.min(h.min,i.min),h.max=Math.max(h.max,i.max));var u=new(Sr(p.type,"log")?di:ai)(h.min,h.max,j({},n,p),this.chartService);if(l){if(this.namedValueAxes[l])throw new Error("Value axis with name "+l+" is already defined");this.namedValueAxes[l]=u}u.axisIndex=a,s.push(u),this.appendAxis(u)}}var d=this.valueAxis||s[0];this.valueAxis=d,r?this.axisX=d:this.axisY=d},e.prototype._dispatchEvent=function(t,e,i){var o=t._eventCoordinates(e),r=new Ft(o.x,o.y),n=this.pointPane(r),s=[],a=[];if(n){for(var p=n.axes,l=0;l<p.length;l++){var c=p[l];c.getValue?wr(a,c.getValue(r)):wr(s,c.getCategory(r))}0===s.length&&wr(s,this.categoryAxis.getCategory(r)),s.length>0&&a.length>0&&t.trigger(i,{element:At(e),originalEvent:e,category:Or(s),value:Or(a)})}},e.prototype.pointPane=function(t){for(var e=this.panes,i=0;i<e.length;i++){var o=e[i];if(o.contentBox.containsPoint(t))return o}},e.prototype.updateAxisOptions=function(t,e){dn(this.options,t,e),dn(this.originalOptions,t,e)},e}(Dr);function dn(t,e,i){j([].concat(e instanceof qe?t.categoryAxis:t.valueAxis)[e.axisIndex],i)}function fn(t,e,i){return st(t,(function(t){return 0===i&&!t.categoryAxis||t.categoryAxis===e}))}It(un,{categoryAxis:{},valueAxis:{}}),j(un.prototype,Gr);var gn=un;function yn(){this._defaultPrevented=!0}var vn=function(t){function e(){t.call(this),this._points=[]}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.destroy=function(){this._points=[]},e.prototype.show=function(t,e){var i=[].concat(t);this.hide();for(var o=0;o<i.length;o++){var r=i[o];r&&r.toggleHighlight&&r.hasHighlight()&&(this.togglePointHighlight(r,!0,e),this._points.push(r))}},e.prototype.togglePointHighlight=function(t,e,i){var o=(t.options.highlight||{}).toggle;if(o){var r={category:t.category,series:t.series,dataItem:t.dataItem,value:t.value,stackValue:t.stackValue,preventDefault:yn,visual:t.highlightVisual(),show:e};o(r),r._defaultPrevented||t.toggleHighlight(e,i)}else t.toggleHighlight(e,i)},e.prototype.hide=function(){for(var t=this._points;t.length;)this.togglePointHighlight(t.pop(),!1)},e.prototype.isHighlighted=function(t){for(var e=this._points,i=0;i<e.length;i++){if(t===e[i])return!0}return!1},e}(C.Class);function mn(t,e){var i=(e||"").toLowerCase(),o=t.event;return"none"===i&&!(o.ctrlKey||o.shiftKey||o.altKey)||o[i+"Key"]}function xn(t){for(var e={},i=0;i<t.length;i++){var o=t[i];o.axis.options.name&&(e[o.axis.options.name]={min:o.range.min,max:o.range.max})}return e}var _n=function(t){function e(e,i){t.call(this),this.plotArea=e,this.options=j({},this.options,i)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.start=function(t){return this._active=mn(t,this.options.key),this._active},e.prototype.move=function(t){if(this._active){var e=this.axisRanges=this._panAxes(t,m).concat(this._panAxes(t,x));if(e.length)return this.axisRanges=e,xn(e)}},e.prototype.end=function(){var t=this._active;return this._active=!1,t},e.prototype.pan=function(){var t=this.plotArea,e=this.axisRanges;if(e.length){for(var i=0;i<e.length;i++){var o=e[i];t.updateAxisOptions(o.axis,o.range)}t.redraw(t.panes)}},e.prototype.destroy=function(){delete this.plotArea},e.prototype._panAxes=function(t,e){var i=this.plotArea,o=-t[e].delta,r=(this.options.lock||"").toLowerCase(),n=[];if(0!==o&&(r||"").toLowerCase()!==e)for(var s=i.axes,a=0;a<s.length;a++){var p=s[a];if(e===m&&!p.options.vertical||e===x&&p.options.vertical){var l=p.pan(o);l&&(l.limitRange=!0,n.push({axis:p,range:l}))}}return n},e}(C.Class);_n.prototype.options={key:"none",lock:"none"};var bn=_n,wn=function(t){function e(e,i){t.call(this),this.chart=e,this.options=j({},this.options,i),this.createElement()}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.createElement=function(){var t=this._marquee=document.createElement("div");t.className="k-marquee";var e=document.createElement("div");e.className="k-marquee-color",t.appendChild(e)},e.prototype.removeElement=function(){this._marquee.parentNode&&this._marquee.parentNode.removeChild(this._marquee)},e.prototype.setStyles=function(t){V(this._marquee,t)},e.prototype.start=function(t){if(mn(t,this.options.key)){var e=this.chart,i=e._eventCoordinates(t),o=this._zoomPane=e._plotArea.paneByPoint(i),r=o?o.chartsBox().clone():null;if(o&&r){var n=this._elementOffset();return r.translate(n.left,n.top),this._zoomPaneClipBox=r,document.body.appendChild(this._marquee),this.setStyles({left:t.pageX+1,top:t.pageY+1,width:0,height:0}),!0}}return!1},e.prototype._elementOffset=function(){var t=this.chart.element,e=V(t,["paddingLeft","paddingTop"]),i=e.paddingLeft,o=e.paddingTop,r=bt(t);return{left:i+r.left,top:o+r.top}},e.prototype.move=function(t){this._zoomPane&&this.setStyles(this._selectionPosition(t))},e.prototype.end=function(t){if(this._zoomPane){var e=this._elementOffset(),i=this._selectionPosition(t);i.left-=e.left,i.top-=e.top;var o={x:i.left,y:i.top},r={x:i.left+i.width,y:i.top+i.height};return this._updateAxisRanges(o,r),this.removeElement(),delete this._zoomPane,xn(this.axisRanges)}},e.prototype.zoom=function(){var t=this.axisRanges;if(t&&t.length){for(var e=this.chart._plotArea,i=0;i<t.length;i++){var o=t[i];e.updateAxisOptions(o.axis,o.range)}e.redraw(e.panes)}},e.prototype.destroy=function(){this.removeElement(),delete this._marquee,delete this.chart},e.prototype._updateAxisRanges=function(t,e){for(var i=(this.options.lock||"").toLowerCase(),o=[],r=this._zoomPane.axes,n=0;n<r.length;n++){var s=r[n],a=s.options.vertical;if((i!==m||a)&&(i!==x||!a)&&xt(s.axisIndex)){var p=s.pointsRange(t,e);p&&o.push({axis:s,range:p})}}this.axisRanges=o},e.prototype._selectionPosition=function(t){var e=this._zoomPaneClipBox,i={x:t.x.startLocation,y:t.y.startLocation},o=t.x.location,r=t.y.location,n=(this.options.lock||"").toLowerCase(),s=Math.min(i.x,o),a=Math.min(i.y,r),p=Math.abs(i.x-o),l=Math.abs(i.y-r);return n===m&&(s=e.x1,p=e.width()),n===x&&(a=e.y1,l=e.height()),o>e.x2&&(p=e.x2-i.x),o<e.x1&&(p=i.x-e.x1),r>e.y2&&(l=e.y2-i.y),r<e.y1&&(l=i.y-e.y1),{left:Math.max(s,e.x1),top:Math.max(a,e.y1),width:p,height:l}},e}(C.Class);wn.prototype.options={key:"shift",lock:"none"};var An=wn,Cn=function(t){function e(e,i){t.call(this),this.chart=e,this.options=j({},this.options,i)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.updateRanges=function(t){for(var e=(this.options.lock||"").toLowerCase(),i=[],o=this.chart._plotArea.axes,r=0;r<o.length;r++){var n=o[r],s=n.options.vertical;if((e!==m||s)&&(e!==x||!s)&&n.zoomRange){var a=n.zoomRange(-t);a&&i.push({axis:n,range:a})}}return this.axisRanges=i,xn(i)},e.prototype.zoom=function(){var t=this.axisRanges,e=this.chart._plotArea;if(t&&t.length&&e.updateAxisOptions){for(var i=0;i<t.length;i++){var o=t[i];e.updateAxisOptions(o.axis,o.range)}e.redraw(e.panes)}},e.prototype.destroy=function(){delete this.chart},e}(C.Class),Sn=function(t){function e(e,i){t.call(this,e),this.chartService=i}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.render=function(){var t=this.children,e=this.options,i=e.vertical;this.visual=new C.drawing.Layout(null,{spacing:i?0:e.spacing,lineSpacing:i?e.spacing:0,orientation:i?"vertical":"horizontal",reverse:e.rtl,alignItems:i?"start":"center"});for(var o=0;o<t.length;o++){var r=t[o];r.reflow(new Nt),r.renderVisual()}},e.prototype.reflow=function(t){this.visual.rect(t.toRect()),this.visual.reflow();var e=this.visual.clippedBBox();this.box=e?he(e):new Nt},e.prototype.renderVisual=function(){this.addVisual()},e.prototype.createVisual=function(){},e}(Jt),kn=function(t){function e(e){t.call(this,e),this.createContainer(),e.rtl?(this.createLabel(),this.createMarker()):(this.createMarker(),this.createLabel())}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.createContainer=function(){this.container=new ae({vertical:!1,wrap:!1,align:a,spacing:this.options.spacing}),this.append(this.container)},e.prototype.createMarker=function(){this.container.append(new ee(this.markerOptions()))},e.prototype.markerOptions=function(){var t=this.options,e=t.markerColor;return j({},t.markers,{background:e,border:{color:e}})},e.prototype.createLabel=function(){var t=this.options,e=j({},t.labels);this.container.append(new de(t.text,e))},e.prototype.renderComplete=function(){t.prototype.renderComplete.call(this);var e=this.options.cursor||{},i=this._itemOverlay=C.drawing.Path.fromRect(this.container.box.toRect(),{fill:{color:v,opacity:0},stroke:null,cursor:e.style||e});this.appendVisual(i)},e.prototype.click=function(t,e){var i=this.eventArgs(e);!t.trigger("legendItemClick",i)&&e&&"contextmenu"===e.type&&e.preventDefault()},e.prototype.over=function(t,e){var i=this.eventArgs(e);return t.trigger("legendItemHover",i)||t._legendItemHover(i.seriesIndex,i.pointIndex),!0},e.prototype.out=function(t,e){t._unsetActivePoint(),t.trigger("legendItemLeave",this.eventArgs(e))},e.prototype.eventArgs=function(t){var e=this.options;return{element:At(t),text:e.text,series:e.series,seriesIndex:e.series.index,pointIndex:e.pointIndex}},e.prototype.renderVisual=function(){var e=this,i=this.options,o=i.visual;o?(this.visual=o({active:i.active,series:i.series,sender:this.getSender(),pointIndex:i.pointIndex,options:{markers:this.markerOptions(),labels:i.labels},createVisual:function(){e.createVisual(),e.renderChildren(),e.renderComplete();var t=e.visual;return delete e.visual,t}}),this.addVisual()):t.prototype.renderVisual.call(this)},e}($t),Pn=function(t){function e(e,i){void 0===i&&(i={}),t.call(this,e),this.chartService=i,ct(this.options.position,[g,f,s,h,"custom"])||(this.options.position=f),this.createContainers(),this.createLegendTitle(e.title),this.createItems()}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.createContainers=function(){var t=this.options,e=t.position,i=t.align,o=e,r=a;"custom"===e?o=h:ct(e,[g,s])?(o="start"===i?h:"end"===i?f:a,r=e):i&&("start"===i?r=g:"end"===i&&(r=s)),this.container=new $t({margin:t.margin,padding:t.padding,background:t.background,border:t.border,vAlign:r,align:o,zIndex:t.zIndex,shrinkToFit:!0}),this.hasTitle()?this.itemsContainer=new $t({vAlign:r,align:o,zIndex:t.zIndex,shrinkToFit:!0}):this.itemsContainer=this.container,this.append(this.container)},e.prototype.createItems=function(){var t=this.getService(),e=this.options,i=this.isVertical(),o=new Sn({vertical:i,spacing:e.spacing,rtl:t.rtl},t),r=e.items;e.reverse&&(r=r.slice(0).reverse());for(var n=r.length,s=0;s<n;s++){var a=r[s];o.append(new kn(j({},{markers:e.markers,labels:e.labels,rtl:t.rtl},e.item,a)))}o.render(),this.itemsContainer.append(o)},e.prototype.isVertical=function(){var t=this.options,e=t.orientation,i=t.position;return"custom"===i&&"horizontal"!==e||(xt(e)?"horizontal"!==e:ct(i,[h,f]))},e.prototype.hasItems=function(){return this.container.children[0].children.length>0},e.prototype.reflow=function(t){var e=this.options,i=t.clone();this.hasItems()?("custom"===e.position?(this.containerCustomReflow(i),this.box=i):this.containerReflow(i),this.hasTitle()&&this.title.reflow(new Nt(this.container.box.x1,this.title.box.y1,this.container.box.x2,this.title.box.y2))):this.box=i},e.prototype.containerReflow=function(t){var e=this.options,i=this.container,o=e.position,r=e.width,n=e.height,a=o===g||o===s?m:x,p=this.isVertical(),l=t.clone(),c=t.clone();o!==h&&o!==f||(c.y1=l.y1=0),p&&n?(c.y2=c.y1+n,c.align(l,x,i.options.vAlign)):!p&&r&&(c.x2=c.x1+r,c.align(l,m,i.options.align)),i.reflow(c);var u=(c=i.box).clone();(e.offsetX||e.offsetY)&&(c.translate(e.offsetX,e.offsetY),i.reflow(c)),u[a+1]=t[a+1],u[a+2]=t[a+2],this.box=u},e.prototype.containerCustomReflow=function(t){var e=this.options,i=this.container,o=e.offsetX,r=e.offsetY,n=e.width,s=e.height,a=this.isVertical(),p=t.clone();a&&s?p.y2=p.y1+s:!a&&n&&(p.x2=p.x1+n),i.reflow(p),p=i.box,i.reflow(new Nt(o,r,o+p.width(),r+p.height()))},e.prototype.renderVisual=function(){this.hasItems()&&t.prototype.renderVisual.call(this)},e.prototype.createLegendTitle=function(t){var e=j({},{color:n,position:g,align:a},t),i=e.text;if(t&&!1!==t.visible){if(xt(e)&&e.visible){var o=it(e);o?i=o({text:i}):e.format&&(i=this.chartService.format.auto(e.format,i))}this.title=new de(i,e),this.createTitleLayout(),this.appendTitleLayoutContent()}},e.prototype.createTitleLayout=function(){this.layout=new ae({vertical:!0,wrap:!1}),this.container.append(this.layout)},e.prototype.hasTitle=function(){return Boolean(this.options.title&&!1!==this.options.title.visible)},e.prototype.appendTitleLayoutContent=function(){this.options.title.position===s?(this.layout.append(this.itemsContainer),this.layout.append(this.title)):(this.layout.append(this.title),this.layout.append(this.itemsContainer))},e}(Jt);It(Pn,{position:f,items:[],offsetX:0,offsetY:0,margin:E(5),padding:E(5),border:{color:n,width:0},item:{cursor:"pointer",spacing:6},spacing:6,background:"",zIndex:1,markers:{border:{width:0},width:15,height:3,type:"rect",align:h,vAlign:a}});var Rn=Pn,On=function(t){function e(){t.call(this),this._registry=[]}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.register=function(t,e){this._registry.push({type:t,seriesTypes:e})},e.prototype.create=function(t,e,i){for(var o,r=this._registry,n=r[0],s=0;s<r.length;s++){var a=r[s];if((o=kr(t,a.seriesTypes)).length>0){n=a;break}}return new n.type(o,e,i)},e}(C.Class);On.current=new On;var Mn=On;function Tn(t){var e=document.createElement("div");return t&&(e.className=t),e}function jn(t){for(var e=t;e&&!at(e,"k-handle");)e=e.parentNode;return e}var Ln=function(t){function e(e,i,o,r){t.call(this);var n=e.element;this.options=j({},this.options,o),this.chart=e,this.observer=r,this.chartElement=n,this.categoryAxis=i,this._dateAxis=this.categoryAxis instanceof ti,this.initOptions(),this.visible=this.options.visible&&n.offsetHeight,this.visible&&(this.createElements(),this.set(this._index(this.options.from),this._index(this.options.to)),this.bindEvents())}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.onPane=function(t){return this.categoryAxis.pane===t},e.prototype.createElements=function(){var t=this.options,e=this.wrapper=Tn("k-selector");V(e,{top:t.offset.top,left:t.offset.left,width:t.width,height:t.height,direction:"ltr"});var i=this.selection=Tn("k-selection");this.leftMask=Tn("k-mask"),this.rightMask=Tn("k-mask"),e.appendChild(this.leftMask),e.appendChild(this.rightMask),e.appendChild(i),i.appendChild(Tn("k-selection-bg"));var o=this.leftHandle=Tn("k-handle k-left-handle"),r=this.rightHandle=Tn("k-handle k-right-handle");o.appendChild(Tn()),r.appendChild(Tn()),i.appendChild(o),i.appendChild(r),this.chartElement.appendChild(e);var n=V(i,["borderLeftWidth","borderRightWidth","height"]),s=V(o,"height").height,a=V(r,"height").height;t.selection={border:{left:n.borderLeftWidth,right:n.borderRightWidth}},V(o,{top:(n.height-s)/2}),V(r,{top:(n.height-a)/2}),e.style.cssText=e.style.cssText},e.prototype.bindEvents=function(){var t;!1!==this.options.mousewheel&&(this._mousewheelHandler=this._mousewheel.bind(this),mt(this.wrapper,((t={})[Zi]=this._mousewheelHandler,t))),this._domEvents=Q.create(this.wrapper,{stopPropagation:!0,start:this._start.bind(this),move:this._move.bind(this),end:this._end.bind(this),tap:this._tap.bind(this),press:this._press.bind(this),gesturestart:this._gesturestart.bind(this),gesturechange:this._gesturechange.bind(this),gestureend:this._gestureend.bind(this)})},e.prototype.initOptions=function(){var t=this.options,e=this.categoryAxis.pane.chartsBox(),i=this.chart.chartService.intl;this._dateAxis&&j(t,{min:Ue(i,t.min),max:Ue(i,t.max),from:Ue(i,t.from),to:Ue(i,t.to)});var o=V(this.chartElement,["paddingLeft","paddingTop"]),r=o.paddingLeft,n=o.paddingTop;this.options=j({},{width:e.width(),height:e.height()+.1,padding:{left:r,top:n},offset:{left:e.x1+r,top:e.y1+n},from:t.min,to:t.max},t)},e.prototype.destroy=function(){var t;this._domEvents&&(this._domEvents.destroy(),delete this._domEvents),clearTimeout(this._mwTimeout),this._state=null,this.wrapper&&(this._mousewheelHandler&&(Mt(this.wrapper,((t={})[Zi]=this._mousewheelHandler,t)),this._mousewheelHandler=null),this.chartElement.removeChild(this.wrapper),this.wrapper=null)},e.prototype._rangeEventArgs=function(t){return{axis:this.categoryAxis.options,from:this._value(t.from),to:this._value(t.to)}},e.prototype._start=function(t){var e=this.options,i=At(t);if(!this._state&&i){this.chart._unsetActivePoint(),this._state={moveTarget:jn(i)||i,startLocation:t.x?t.x.location:0,range:{from:this._index(e.from),to:this._index(e.to)}};var o=this._rangeEventArgs({from:this._index(e.from),to:this._index(e.to)});this.trigger("selectStart",o)&&(this._state=null)}},e.prototype._press=function(t){var e;(e=this._state?this._state.moveTarget:jn(At(t)))&&b(e,"k-handle-active")},e.prototype._move=function(t){if(this._state){var e=this._state,i=this.options,o=this.categoryAxis,r=e.range,n=e.moveTarget,s=o.options.reverse,a=this._index(i.from),p=this._index(i.to),l=this._index(i.min),c=this._index(i.max),h=e.startLocation-t.x.location,u=r.from,d=r.to,f=r.to-r.from,g=V(this.wrapper,"width").width/(o.categoriesCount()-1),y=Math.round(h/g)*(s?-1:1);if(n){var v=at(n,"k-left-handle"),m=at(n,"k-right-handle");at(n,"k-selection k-selection-bg")?(r.from=Math.min(Math.max(l,a-y),c-f),r.to=Math.min(r.from+f,c)):v&&!s||m&&s?(r.from=Math.min(Math.max(l,a-y),c-1),r.to=Math.max(r.from+1,r.to)):(v&&s||m&&!s)&&(r.to=Math.min(Math.max(l+1,p-y),c),r.from=Math.min(r.to-1,r.from)),r.from===u&&r.to===d||(this.move(r.from,r.to),this.trigger("select",this._rangeEventArgs(r)))}}},e.prototype._end=function(){if(this._state){var t=this._state.moveTarget;t&&A(t,"k-handle-active");var e=this._state.range;this.set(e.from,e.to),this.trigger("selectEnd",this._rangeEventArgs(e)),delete this._state}},e.prototype._tap=function(t){var e=this.options,i=this.categoryAxis,o=this.chart._eventCoordinates(t),r=i.pointCategoryIndex(new Ft(o.x,i.box.y1)),n=this._index(e.from),s=this._index(e.to),a=this._index(e.min),p=this._index(e.max),l=s-n,c=n+l/2,h={},u=3===t.event.which,d=Math.round(c-r);this._state||u||(this.chart._unsetActivePoint(),i.options.justified||d--,h.from=Math.min(Math.max(a,n-d),p-l),h.to=Math.min(h.from+l,p),this._start(t),this._state&&(this._state.range=h,this.trigger("select",this._rangeEventArgs(h)),this._end()))},e.prototype._mousewheel=function(t){var e=this,i=gt(t);if(this._start({target:this.selection}),this._state){var o=this._state.range;t.preventDefault(),t.stopPropagation(),Math.abs(i)>1&&(i*=3),this.options.mousewheel.reverse&&(i*=-1),this.expand(i)&&this.trigger("select",{axis:this.categoryAxis.options,delta:i,originalEvent:t,from:this._value(o.from),to:this._value(o.to)}),this._mwTimeout&&clearTimeout(this._mwTimeout),this._mwTimeout=setTimeout((function(){e._end()}),150)}},e.prototype._gesturestart=function(t){var e=this.options;this._state={range:{from:this._index(e.from),to:this._index(e.to)}};var i=this._rangeEventArgs(this._state.range);this.trigger("selectStart",i)?this._state=null:t.preventDefault()},e.prototype._gestureend=function(){this._state&&(this.trigger("selectEnd",this._rangeEventArgs(this._state.range)),delete this._state)},e.prototype._gesturechange=function(t){var e=this.chart,i=this._state,o=this.options,r=this.categoryAxis,n=i.range,s=e._toModelCoordinates(t.touches[0].x.location).x,a=e._toModelCoordinates(t.touches[1].x.location).x,p=Math.min(s,a),l=Math.max(s,a);t.preventDefault(),n.from=r.pointCategoryIndex(new Ft(p))||o.min,n.to=r.pointCategoryIndex(new Ft(l))||o.max,this.move(n.from,n.to),this.trigger("select",this._rangeEventArgs(n))},e.prototype._index=function(t){var e=t;return t instanceof Date&&(e=this.categoryAxis.categoryIndex(t)),e},e.prototype._value=function(t){var e=t;return this._dateAxis&&(e=this.categoryAxis.categoryAt(t))>this.options.max&&(e=this.options.max),e},e.prototype._slot=function(t){var e=this.categoryAxis,i=this._index(t);return e.getSlot(i,i,!0)},e.prototype.move=function(t,e){var i=this.options,o=this.categoryAxis.options.reverse,r=i.offset,n=i.padding,s=i.selection.border,a=o?e:t,p=o?t:e,l="x"+(o?2:1),c=this._slot(a),h=Ot(c[l]-r.left+n.left);V(this.leftMask,{width:h}),V(this.selection,{left:h}),c=this._slot(p);var u=Ot(i.width-(c[l]-r.left+n.left));V(this.rightMask,{width:u});var d=i.width-u;d!==i.width&&(d+=s.right),V(this.rightMask,{left:d}),V(this.selection,{width:Math.max(i.width-(h+u)-s.right,0)})},e.prototype.set=function(t,e){var i=this.options,o=this._index(i.min),r=this._index(i.max),n=kt(this._index(t),o,r),s=kt(this._index(e),n+1,r);i.visible&&this.move(n,s),i.from=this._value(n),i.to=this._value(s)},e.prototype.expand=function(t){var e=this.options,i=this._index(e.min),o=this._index(e.max),r=e.mousewheel.zoom,n=this._index(e.from),s=this._index(e.to),a={from:n,to:s},p=j({},a);if(this._state&&(a=this._state.range),r!==f&&(a.from=kt(kt(n-t,0,s-1),i,o)),r!==h&&(a.to=kt(kt(s+t,a.from+1,o),i,o)),a.from!==p.from||a.to!==p.to)return this.set(a.from,a.to),!0},e.prototype.trigger=function(t,e){return(this.observer||this.chart).trigger(t,e)},e}(C.Class);It(Ln,{visible:!0,mousewheel:{zoom:"both"},min:d,max:u});var In=Ln,zn=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.show=function(e){if(e&&e.tooltipAnchor&&(!this._current||this._current!==e)){var i=j({},this.options,e.options.tooltip),o=e.tooltipAnchor();o?(this._current=e,t.prototype.show.call(this,{point:e,anchor:o},i,e)):this.hide()}},e.prototype.hide=function(){delete this._current,t.prototype.hide.call(this)},e}(ur),Bn=function(t){function e(e,i){t.call(this,e.chartService,i),this.plotArea=e,this.formatService=e.chartService.format}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.showAt=function(t,e){var i=st(t,(function(t){var e=t.series.tooltip;return!(e&&!1===e.visible)}));if(i.length>0){var o=i[0],r=this.plotArea.categoryAxis.getSlot(o.categoryIx),n=e?this._slotAnchor(e,r):this._defaultAnchor(o,r);this.show({anchor:n,shared:!0,points:t,category:o.category,categoryText:this.formatService.auto(this.options.categoryFormat,o.category),series:this.plotArea.series},this.options)}},e.prototype._slotAnchor=function(t,e){return this.plotArea.categoryAxis.options.vertical||(t.x=e.center().x),{point:t,align:{horizontal:"left",vertical:"center"}}},e.prototype._defaultAnchor=function(t,e){var i=t.owner.pane.chartsBox(),o=this.plotArea.categoryAxis.options.vertical,r=i.center(),n=e.center();return{point:o?new Ft(r.x,n.y):new Ft(n.x,r.y),align:{horizontal:"center",vertical:"center"}}},e}(ur);It(Bn,{categoryFormat:"{0:d}"});var Vn=Bn,En=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.setup=function(){var t=this.element,e=this.options;if(t.bbox()){this.origin=e.origin;var i=e.vertical?x:m,o=this.fromScale=new C.geometry.Point(1,1);o[i]=Fi,t.transform(C.geometry.transform().scale(o.x,o.y))}else this.abort()},e.prototype.step=function(t){var e=ht(this.fromScale.x,1,t),i=ht(this.fromScale.y,1,t);this.element.transform(C.geometry.transform().scale(e,i,this.origin))},e.prototype.abort=function(){t.prototype.abort.call(this),this.element.transform(null)},e}(C.drawing.Animation);It(En,{duration:600}),C.drawing.AnimationFactory.current.register(Ni,En);var Dn=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.setup=function(){var t=this.center=this.element.bbox().center();this.element.transform(C.geometry.transform().scale(Fi,Fi,t))},e.prototype.step=function(t){this.element.transform(C.geometry.transform().scale(t,t,this.center))},e}(C.drawing.Animation);It(Dn,{easing:"easeOutElastic"}),C.drawing.AnimationFactory.current.register("bubble",Dn);var Gn=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.setup=function(){this.fadeTo=this.element.opacity(),this.element.opacity(0)},e.prototype.step=function(t){this.element.opacity(t*this.fadeTo)},e}(C.drawing.Animation);It(Gn,{duration:200,easing:"linear"}),C.drawing.AnimationFactory.current.register("fadeIn",Gn);var Un=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.setup=function(){this.element.transform(C.geometry.transform().scale(Fi,Fi,this.options.center))},e.prototype.step=function(t){this.element.transform(C.geometry.transform().scale(t,t,this.options.center))},e}(C.drawing.Animation);It(Un,{easing:"easeOutElastic",duration:600}),C.drawing.AnimationFactory.current.register(Xi,Un);var Fn=Un,Hn=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.render=function(){t.prototype.render.call(this),this.renderSegments()},e.prototype.createSegment=function(t,e,i){return new("smooth"===e.style?go:lo)(t,e,i)},e.prototype.animationPoints=function(){return t.prototype.animationPoints.call(this).concat(this._segments)},e.prototype.createMissingValue=function(t,e){if(e===Hi){var i={x:t.x,y:t.y};return Qo(i.x)||(i.x=0),Qo(i.y)||(i.y=0),i}},e}(tr);j(Hn.prototype,yo);var Nn=Hn,qn=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.initFields=function(){this.namedXAxes={},this.namedYAxes={},this.xAxisRangeTracker=new Ro,this.yAxisRangeTracker=new Ro},e.prototype.render=function(t){void 0===t&&(t=this.panes);for(var e=this.groupSeriesByPane(),i=0;i<t.length;i++){var o=t[i],r=e[o.options.name||"default"]||[];this.addToLegend(r);var n=this.filterVisibleSeries(r);n&&(this.createScatterChart(kr(n,"scatter"),o),this.createScatterLineChart(kr(n,"scatterLine"),o),this.createBubbleChart(kr(n,"bubble"),o))}this.createAxes(t)},e.prototype.appendChart=function(e,i){this.xAxisRangeTracker.update(e.xAxisRanges),this.yAxisRangeTracker.update(e.yAxisRanges),t.prototype.appendChart.call(this,e,i)},e.prototype.removeAxis=function(e){var i=e.options.name;t.prototype.removeAxis.call(this,e),e.options.vertical?(this.yAxisRangeTracker.reset(i),delete this.namedYAxes[i]):(this.xAxisRangeTracker.reset(i),delete this.namedXAxes[i]),e===this.axisX&&delete this.axisX,e===this.axisY&&delete this.axisY},e.prototype.seriesPaneName=function(t){var e=this.options,i=t.xAxis,o=st([].concat(e.xAxis),(function(t){return t.name===i}))[0],r=t.yAxis,n=st([].concat(e.yAxis),(function(t){return t.name===r}))[0],s=(e.panes||[{}])[0].name||"default";return(o||{}).pane||(n||{}).pane||s},e.prototype.createScatterChart=function(t,e){t.length>0&&this.appendChart(new tr(this,{series:t,clip:e.options.clip}),e)},e.prototype.createScatterLineChart=function(t,e){t.length>0&&this.appendChart(new Nn(this,{series:t,clip:e.options.clip}),e)},e.prototype.createBubbleChart=function(t,e){t.length>0&&this.appendChart(new rr(this,{series:t,clip:e.options.clip}),e)},e.prototype.createXYAxis=function(t,e,i){for(var o,r=t.name,n=e?this.namedYAxes:this.namedXAxes,s=e?this.yAxisRangeTracker:this.xAxisRangeTracker,a=j({reverse:!e&&this.chartService.rtl},t,{vertical:e}),p=Sr(a.type,"log"),c=s.query(),h=p?{min:.1,max:1}:{min:0,max:1},u=s.query(r)||c||h,d=[a.min,a.max],f=this.series,g=0;g<f.length;g++){var y=f[g],v=y[e?"yAxis":"xAxis"];if(v===a.name||0===i&&!v){var m=Vi.current.bindPoint(y,0).valueFields;d.push(m[e?"y":"x"]);break}}0===i&&c&&(u.min=Math.min(u.min,c.min),u.max=Math.max(u.max,c.max));for(var x=0;x<d.length;x++)if(d[x]instanceof Date){o=!0;break}var _=new(Sr(a.type,l)||!a.type&&o?li:p?di:ai)(u.min,u.max,a,this.chartService);if(_.axisIndex=i,r){if(n[r])throw new Error((e?"Y":"X")+" axis with name "+r+" is already defined");n[r]=_}return this.appendAxis(_),_},e.prototype.createAxes=function(t){for(var e=this.options,i=[].concat(e.xAxis),o=[],r=[].concat(e.yAxis),n=[],s=0;s<i.length;s++){ct(this.findPane(i[s].pane),t)&&o.push(this.createXYAxis(i[s],!1,s))}for(var a=0;a<r.length;a++){ct(this.findPane(r[a].pane),t)&&n.push(this.createXYAxis(r[a],!0,a))}this.axisX=this.axisX||o[0],this.axisY=this.axisY||n[0]},e.prototype._dispatchEvent=function(t,e,i){for(var o=t._eventCoordinates(e),r=new Ft(o.x,o.y),n=this.axes,s=n.length,a=[],p=[],l=0;l<s;l++){var c=n[l],h=c.options.vertical?p:a,u=c.getValue(r);null!==u&&h.push(u)}a.length>0&&p.length>0&&t.trigger(i,{element:At(e),originalEvent:e,x:Or(a),y:Or(p)})},e.prototype.updateAxisOptions=function(t,e){var i=t.options.vertical,o=this.groupAxes(this.panes),r=(i?o.y:o.x).indexOf(t);Kn(this.options,r,i,e),Kn(this.originalOptions,r,i,e)},e}(Dr);function Kn(t,e,i,o){j([].concat(i?t.yAxis:t.xAxis)[e],o)}It(qn,{xAxis:{},yAxis:{}}),j(qn.prototype,Gr);var Xn=qn,Yn=function(t){function e(e,i,o){t.call(this,o),this.value=e,this.sector=i}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.render=function(){var t=this.options.labels,e=this.owner.chartService,i=this.value;if(!this._rendered&&!1!==this.visible){this._rendered=!0;var o=it(t),r=this.pointData();if(o?i=o(r):t.format&&(i=e.format.auto(t.format,i)),t.visible&&(i||0===i)){if(t.position===a||"insideEnd"===t.position){if(!t.color){var s=new C.Color(this.options.color).percBrightness();t.color=s>180?n:v}t.background||(t.background=this.options.color)}else{var p=e.theme.seriesDefaults.labels;t.color=t.color||p.color,t.background=t.background||p.background}this.label=new de(i,j({},t,{align:a,vAlign:"",animation:{type:"fadeIn",delay:this.animationDelay}}),r),this.append(this.label)}}},e.prototype.reflow=function(t){this.render(),this.box=t,this.reflowLabel()},e.prototype.reflowLabel=function(){var t=this.options.labels,e=this.label,i=this.sector.clone(),o=t.distance,r=i.middle();if(e){var n,s=e.box.height(),p=e.box.width();if(t.position===a)i.radius=Math.abs((i.radius-s)/2)+s,n=i.point(r),e.reflow(new Nt(n.x,n.y-s/2,n.x,n.y));else if("insideEnd"===t.position)i.radius=i.radius-s/2,n=i.point(r),e.reflow(new Nt(n.x,n.y-s/2,n.x,n.y));else{var l;(n=i.clone().expand(o).point(r)).x>=i.center.x?(l=n.x+p,e.orientation=f):(l=n.x-p,e.orientation=h),e.reflow(new Nt(l,n.y-s,n.x,n.y))}}},e.prototype.createVisual=function(){var e=this,i=this.sector,o=this.options;if(t.prototype.createVisual.call(this),this.value)if(o.visual){var r=(i.startAngle+180)%360,n=o.visual({category:this.category,dataItem:this.dataItem,value:this.value,series:this.series,percentage:this.percentage,center:new C.geometry.Point(i.center.x,i.center.y),radius:i.radius,innerRadius:i.innerRadius,startAngle:r,endAngle:r+i.angle,options:o,sender:this.getSender(),createVisual:function(){var t=new C.drawing.Group;return e.createSegmentVisual(t),t}});n&&this.visual.append(n)}else this.createSegmentVisual(this.visual)},e.prototype.createSegmentVisual=function(t){var e=this.sector,i=this.options,o=i.border||{},r=o.width>0?{stroke:{color:o.color,width:o.width,opacity:o.opacity,dashType:o.dashType}}:{},n=i.color,s={color:n,opacity:i.opacity},a=this.createSegment(e,j({fill:s,stroke:{opacity:i.opacity},zIndex:i.zIndex},r));t.append(a),To(i)&&t.append(this.createGradientOverlay(a,{baseColor:n,fallbackFill:s},j({center:[e.center.x,e.center.y],innerRadius:e.innerRadius,radius:e.radius,userSpace:!0},i.overlay)))},e.prototype.createSegment=function(t,e){return e.singleSegment?new C.drawing.Circle(new C.geometry.Circle(new C.geometry.Point(t.center.x,t.center.y),t.radius),e):Wt.current.createRing(t,e)},e.prototype.createAnimation=function(){var e=this.options,i=this.sector.center;j(e,{animation:{center:[i.x,i.y],delay:this.animationDelay}}),t.prototype.createAnimation.call(this)},e.prototype.createHighlight=function(t){var e=this.options.highlight||{},i=e.border||{};return this.createSegment(this.sector,j({},t,{fill:{color:e.color,opacity:e.opacity},stroke:{opacity:i.opacity,width:i.width,color:i.color}}))},e.prototype.highlightVisual=function(){return this.visual.children[0]},e.prototype.highlightVisualArgs=function(){var t=this.sector;return{options:this.options,radius:t.radius,innerRadius:t.innerRadius,center:new C.geometry.Point(t.center.x,t.center.y),startAngle:t.startAngle,endAngle:t.angle+t.startAngle,visual:this.visual}},e.prototype.tooltipAnchor=function(){var t=this.sector.clone().expand(5),e=t.middle();return{point:t.point(e),align:Jn(e+180)}},e.prototype.formatValue=function(t){return this.owner.formatPointValue(this,t)},e.prototype.pointData=function(){return{dataItem:this.dataItem,category:this.category,value:this.value,series:this.series,percentage:this.percentage}},e}(Jt),Wn=Ot(Rt(30),10),Zn=Ot(Rt(60),10);function Jn(t){var e=Rt(t),i=Ot(Math.sin(e),10),o=Ot(Math.cos(e),10);return{horizontal:Math.abs(i)>Zn?a:o<0?f:h,vertical:Math.abs(i)<Wn?a:i<0?s:g}}It(Yn,{color:v,overlay:{gradient:"roundedBevel"},border:{width:.5},labels:{visible:!1,distance:35,font:"12px sans-serif",margin:E(.5),align:p,zIndex:1,position:"outsideEnd"},animation:{type:Xi},highlight:{visible:!0,border:{width:1}},visible:!0}),j(Yn.prototype,ro);var Qn=Yn,$n={createLegendItem:function(t,e,i){var o=this.options.legend||{},r=o.labels||{},n=o.inactiveItems||{},s=n.labels||{};if(i&&!1!==i.visibleInLegend){var a,p,l=!1!==i.visible,c=l?it(r):it(s)||it(r),h=i.category;c&&(h=c({text:h,series:i.series,dataItem:i.dataItem,percentage:i.percentage,value:t})),l?(a={},p=e.color):(a={color:s.color,font:s.font},p=(n.markers||{}).color),Qo(h)&&""!==h&&this.legendItems.push({active:l,pointIndex:i.index,text:h,series:i.series,markerColor:p,labels:a})}}},ts=function(t){function e(e,i){t.call(this,i),this.plotArea=e,this.chartService=e.chartService,this.points=[],this.legendItems=[],this.render()}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.render=function(){this.traverseDataPoints(this.addValue.bind(this))},e.prototype.traverseDataPoints=function(t){var e=this.options,i=this.plotArea.options.seriesColors;void 0===i&&(i=[]);for(var o=i.length,r=e.series,n=r.length,s=0;s<n;s++){var p=r[s],l=p.data,c=Cr(p),h=c.total,u=c.points,d=c.count,f=360/h,g=void 0;isFinite(f)||(g=360/d);var y=void 0;y=xt(p.startAngle)?p.startAngle:e.startAngle,s!==n-1&&"outsideEnd"===p.labels.position&&(p.labels.position=a);for(var v=0;v<u.length;v++){var m=u[v];if(m){var x=m.fields,_=m.value,b=m.visible,w=0!==_?g||_*f:0,A=1!==l.length&&Boolean(x.explode);M(p.color)||(p.color=x.color||i[v%o]),t(m.valueFields.value,new Kt(null,0,0,y,w),{owner:this,category:xt(x.category)?x.category:"",index:v,series:p,seriesIx:s,dataItem:l[v],percentage:0!==h?_/h:0,explode:A,visibleInLegend:x.visibleInLegend,visible:b,zIndex:n-s,animationDelay:this.animationDelay(v,s,n)}),!1!==b&&(y+=w)}}}},e.prototype.evalSegmentOptions=function(t,e,i){var o=i.series;to(t,{value:e,series:o,dataItem:i.dataItem,category:i.category,percentage:i.percentage},{defaults:o._defaults,excluded:["data","content","template","visual","toggle"]})},e.prototype.addValue=function(t,e,i){var o=j({},i.series,{index:i.index});if(this.evalSegmentOptions(o,t,i),this.createLegendItem(t,o,i),!1!==i.visible){var r=new Qn(t,e,o);Object.assign(r,i),this.append(r),this.points.push(r)}},e.prototype.reflow=function(t){var e=this.options,i=this.points,o=this.seriesConfigs;void 0===o&&(o=[]);var r=i.length,n=t.clone(),s=Math.min(n.width(),n.height()),a=s/2,p=s-.85*s,l=new Nt(n.x1,n.y1,n.x1+s,n.y1+s),c=l.center(),h=n.center(),u=e.series.length,d=[],g=[],y=Tt(e.padding,p);this.targetBox=t,y=y>a-5?a-5:y,l.translate(h.x-c.x,h.y-c.y);for(var v=a-y,m=new Ft(v+l.x1+y,v+l.y1+y),x=0;x<r;x++){var _=i[x],b=_.sector,w=_.seriesIx;if(b.radius=v,b.center=m,o.length){var A=o[w];b.innerRadius=A.innerRadius,b.radius=A.radius}w===u-1&&_.explode&&(b.center=b.clone().setRadius(.15*b.radius).point(b.middle())),_.reflow(l);var C=_.label;C&&"outsideEnd"===C.options.position&&w===u-1&&(C.orientation===f?g.push(C):d.push(C))}d.length>0&&(d.sort(this.labelComparator(!0)),this.leftLabelsReflow(d)),g.length>0&&(g.sort(this.labelComparator(!1)),this.rightLabelsReflow(g)),this.box=l},e.prototype.leftLabelsReflow=function(t){var e=this.distanceBetweenLabels(t);this.distributeLabels(e,t)},e.prototype.rightLabelsReflow=function(t){var e=this.distanceBetweenLabels(t);this.distributeLabels(e,t)},e.prototype.distanceBetweenLabels=function(t){var e=St(this.points),i=e.sector,o=t.length-1,r=i.radius+e.options.labels.distance,n=[],s=t[0].box,a=Ot(s.y1-(i.center.y-r-s.height()-s.height()/2));n.push(a);for(var p=0;p<o;p++){var l=t[p+1].box;s=t[p].box,a=Ot(l.y1-s.y2),n.push(a)}return a=Ot(i.center.y+r-t[o].box.y2-t[o].box.height()/2),n.push(a),n},e.prototype.distributeLabels=function(t,e){for(var i,o,r,n=t.length,s=0;s<n;s++)for(r=-t[s],i=o=s;r>0&&(i>=0||o<n);)r=this._takeDistance(t,s,--i,r),r=this._takeDistance(t,s,++o,r);this.reflowLabels(t,e)},e.prototype._takeDistance=function(t,e,i,o){var r=o;if(t[i]>0){var n=Math.min(t[i],r);r-=n,t[i]-=n,t[e]+=n}return r},e.prototype.reflowLabels=function(t,e){var i,o=St(this.points),r=o.sector,n=o.options.labels,s=e.length,a=n.distance,l=r.center.y-(r.radius+a)-e[0].box.height();t[0]+=2;for(var c=0;c<s;c++){var h=e[c],u=h.box;l+=t[c],i=this.hAlignLabel(u.x2,r.clone().expand(a),l,l+u.height(),h.orientation===f),h.orientation===f?(n.align!==p&&(i=r.radius+r.center.x+a),h.reflow(new Nt(i+u.width(),l,i,l))):(n.align!==p&&(i=r.center.x-r.radius-a),h.reflow(new Nt(i-u.width(),l,i,l))),l+=u.height()}},e.prototype.createVisual=function(){var e=this.options.connectors,i=this.points,o=i.length;t.prototype.createVisual.call(this),this._connectorLines=[];for(var r=0;r<o;r++){var n=i[r],s=n.sector,a=n.label,p=s.middle(),l=(n.options.connectors||{}).color||e.color;if(a){var c=new C.drawing.Path({stroke:{color:l,width:e.width},animation:{type:"fadeIn",delay:n.animationDelay}});if("outsideEnd"===a.options.position){var h=a.box,u=s.center,d=s.point(p),g=new Ft(h.x1,h.center().y),y=void 0,v=void 0,m=void 0;d=s.clone().expand(e.padding).point(p),c.moveTo(d.x,d.y),a.orientation===f?(m=es(u,d,g,v=new Ft(h.x1-e.padding,h.center().y)),g=new Ft(v.x-4,v.y),(m=m||g).x=Math.min(m.x,g.x),this.pointInCircle(m,s.center,s.radius+4)||m.x<s.center.x?(y=s.center.x+s.radius+4,n.options.labels.align!==qi?y<g.x?c.lineTo(y,d.y):c.lineTo(d.x+8,d.y):c.lineTo(y,d.y),c.lineTo(g.x,v.y)):(m.y=v.y,c.lineTo(m.x,m.y))):(m=es(u,d,g,v=new Ft(h.x2+e.padding,h.center().y)),g=new Ft(v.x+4,v.y),(m=m||g).x=Math.max(m.x,g.x),this.pointInCircle(m,s.center,s.radius+4)||m.x>s.center.x?(y=s.center.x-s.radius-4,n.options.labels.align!==qi?y>g.x?c.lineTo(y,d.y):c.lineTo(d.x-8,d.y):c.lineTo(y,d.y),c.lineTo(g.x,v.y)):(m.y=v.y,c.lineTo(m.x,m.y))),c.lineTo(v.x,v.y),this._connectorLines.push(c),this.visual.append(c)}}}},e.prototype.renderVisual=function(){if(t.prototype.renderVisual.call(this),Bt(this.options.series,(function(t){return t.autoFit}))){var e=this.targetBox,i=this.box.center(),o=this.visual.bbox();if(!o)return;var r=o.bottomRight(),n=Math.min((i.y-e.y1)/(i.y-o.origin.y),(e.y2-i.y)/(r.y-i.y),(i.x-e.x1)/(i.x-o.origin.x),(e.x2-i.x)/(r.x-i.x));n<1&&this.visual.transform(C.geometry.transform().scale(n,n,[i.x,i.y]))}},e.prototype.labelComparator=function(t){var e=t?-1:1;return function(t,i){return((t.parent.sector.middle()+270)%360-(i.parent.sector.middle()+270)%360)*e}},e.prototype.hAlignLabel=function(t,e,i,o,r){var n=e.radius,s=e.center,a=s.x,p=s.y,l=Math.min(Math.abs(p-i),Math.abs(p-o));return l>n?t:a+Math.sqrt(n*n-l*l)*(r?1:-1)},e.prototype.pointInCircle=function(t,e,i){return Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2)<Math.pow(i,2)},e.prototype.formatPointValue=function(t,e){return this.chartService.format.auto(e,t.value)},e.prototype.animationDelay=function(t){return 70*t},e.prototype.stackRoot=function(){return this},e}(Jt);function es(t,e,i,o){var r,n=(o.x-i.x)*(t.y-i.y)-(o.y-i.y)*(t.x-i.x),s=(o.y-i.y)*(e.x-t.x)-(o.x-i.x)*(e.y-t.y);if(0!==s){var a=n/s;r=new Ft(t.x+a*(e.x-t.x),t.y+a*(e.y-t.y))}return r}It(ts,{startAngle:90,connectors:{width:2,color:"#939393",padding:8},inactiveItems:{markers:{},labels:{}}}),j(ts.prototype,$n),ts.prototype.isStackRoot=!0;var is=ts,os=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.render=function(){this.createPieChart(this.series)},e.prototype.createPieChart=function(t){var e=t[0],i=new is(this,{series:t,padding:e.padding,startAngle:e.startAngle,connectors:e.connectors,legend:this.options.legend});this.appendChart(i)},e.prototype.appendChart=function(e,i){t.prototype.appendChart.call(this,e,i),vt(this.options.legend.items,e.legendItems)},e}(Dr),rs=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.reflowLabel=function(){var e=this.options.labels,i=this.label,o=this.sector.clone(),r=o.middle();if(i){var n=i.box.height();if(e.position===a){o.radius-=(o.radius-o.innerRadius)/2;var s=o.point(r);i.reflow(new Nt(s.x,s.y-n/2,s.x,s.y))}else t.prototype.reflowLabel.call(this)}},e.prototype.createSegment=function(t,e){return Wt.current.createRing(t,e)},e}(Qn);It(rs,{overlay:{gradient:"roundedGlass"},labels:{position:a},animation:{type:Xi}}),j(rs.prototype,ro);var ns=rs,ss=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.addValue=function(t,e,i){var o=j({},i.series,{index:i.index});if(this.evalSegmentOptions(o,t,i),this.createLegendItem(t,o,i),t&&!1!==i.visible){var r=new ns(t,e,o);Object.assign(r,i),this.append(r),this.points.push(r)}},e.prototype.reflow=function(e){for(var i,o=this.options,r=e.clone(),n=Math.min(r.width(),r.height()),s=n/2,a=n-.85*n,p=o.series,l=p.length,c=Tt(o.padding,a),h=s-(c=c>s-5?s-5:c),u=0,d=0;d<l;d++){var f=p[d];0===d&&xt(f.holeSize)&&(i=f.holeSize,h-=f.holeSize),xt(f.size)?h-=f.size:u++,xt(f.margin)&&d!==l-1&&(h-=f.margin)}xt(i)||(h-=i=.75*((s-c)/(l+.75)));var g,y=i,v=0;this.seriesConfigs=[];for(var m=0;m<l;m++){var x=p[m];g=(y+=v)+Tt(x.size,h/u),this.seriesConfigs.push({innerRadius:y,radius:g}),v=x.margin||0,y=g}t.prototype.reflow.call(this,e)},e.prototype.animationDelay=function(t,e,i){return 50*t+600*(e+1)/(i+1)},e}(is);It(ss,{startAngle:90,connectors:{width:2,color:"#939393",padding:8}});var as=ss,ps=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.render=function(){this.createDonutChart(this.series)},e.prototype.createDonutChart=function(t){var e=t[0],i=new as(this,{series:t,padding:e.padding,connectors:e.connectors,legend:this.options.legend});this.appendChart(i)},e}(os),ls=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.initFields=function(){this.valueAxisRangeTracker=new Ro},e.prototype.render=function(){this.addToLegend(this.series),this.createPolarAxis(),this.createCharts(),this.createValueAxis()},e.prototype.alignAxes=function(){var t=this.valueAxis,e=t.range(),i=t.options.reverse?e.max:e.min,o=t.getSlot(i),r=this.polarAxis.getSlot(0).center,n=t.box.translate(r.x-o.x1,r.y-o.y1);t.reflow(n)},e.prototype.createValueAxis=function(){var t,e,i=this.valueAxisRangeTracker,o=i.query(),r=this.valueAxisOptions({roundToMajorUnit:!1,zIndex:-1});"log"===r.type?(t=Ci,e={min:.1,max:1}):(t=wi,e={min:0,max:1});var n=i.query(name)||o||e;n&&o&&(n.min=Math.min(n.min,o.min),n.max=Math.max(n.max,o.max));var s=new t(n.min,n.max,r,this.chartService);this.valueAxis=s,this.appendAxis(s)},e.prototype.reflowAxes=function(){var t=this.options.plotArea,e=this.valueAxis,i=this.polarAxis,o=this.box,r=.15*Math.min(o.width(),o.height()),n=E(t.padding||{},r),s=o.clone().unpad(n),p=s.clone();p.y2=p.y1+Math.min(p.width(),p.height()),p.align(s,x,a);var l=p.clone().shrink(0,p.height()/2);i.reflow(p),e.reflow(l);var c=e.lineBox().height()-e.box.height();e.reflow(e.box.unpad({top:c})),this.axisBox=p,this.alignAxes(p)},e.prototype.backgroundBox=function(){return this.box},e.prototype.detachLabels=function(){},e}(Dr),cs=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.pointSlot=function(t,e){var i=t.center.y-e.y1,o=Ft.onCircle(t.center,t.startAngle,i);return new Nt(o.x,o.y,o.x,o.y)},e}(tr);It(cs,{clip:!1});var hs=cs,us=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e}(Nn);us.prototype.pointSlot=hs.prototype.pointSlot,It(us,{clip:!1});var ds=us,fs=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.fillToAxes=function(t){var e=this._polarAxisCenter();t.lineTo(e.x,e.y)},e.prototype._polarAxisCenter=function(){return this.parent.plotArea.polarAxis.box.center()},e.prototype.strokeSegments=function(){var t=this._strokeSegments;if(!t){var e=this._polarAxisCenter(),i=new ki(!1),o=this.points();o.push(e),(t=this._strokeSegments=i.process(o)).pop()}return t},e}(ko),gs=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.fillToAxes=function(t){var e=this.parent.plotArea.polarAxis.box.center(),i=new C.geometry.Segment([e.x,e.y]);t.segments.unshift(i),t.segments.push(i)},e}(Ao);function ys(t,e){return t.value.x-e.value.x}var vs=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.createSegment=function(t,e,i){return"smooth"===(e.line||{}).style?new fs(t,e,i):new gs(t,e,i)},e.prototype.createMissingValue=function(t,e){var i;return Qo(t.x)&&"interpolate"!==e&&(i={x:t.x,y:t.y},e===Hi&&(i.y=0)),i},e.prototype.seriesMissingValues=function(t){return t.missingValues||Hi},e.prototype._hasMissingValuesGap=function(){for(var t=this.options.series,e=0;e<t.length;e++)if("gap"===this.seriesMissingValues(t[e]))return!0},e.prototype.sortPoints=function(t){if(t.sort(ys),this._hasMissingValuesGap())for(var e=0;e<t.length;e++){var i=t[e];if(i)Qo(i.value.y)||"gap"!==this.seriesMissingValues(i.series)||delete t[e]}return t},e}(ds),ms=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.createPolarAxis=function(){var t=new mi(this.options.xAxis,this.chartService);this.polarAxis=t,this.axisX=t,this.appendAxis(t)},e.prototype.valueAxisOptions=function(t){return j(t,{majorGridLines:{type:r},minorGridLines:{type:r}},this.options.yAxis)},e.prototype.createValueAxis=function(){t.prototype.createValueAxis.call(this),this.axisY=this.valueAxis},e.prototype.appendChart=function(t,e){this.valueAxisRangeTracker.update(t.yAxisRanges),Dr.prototype.appendChart.call(this,t,e)},e.prototype.createCharts=function(){var t=this.filterVisibleSeries(this.series),e=this.panes[0];this.createLineChart(kr(t,["polarLine"]),e),this.createScatterChart(kr(t,["polarScatter"]),e),this.createAreaChart(kr(t,["polarArea"]),e)},e.prototype.createLineChart=function(t,e){if(0!==t.length){var i=new ds(this,{series:t});this.appendChart(i,e)}},e.prototype.createScatterChart=function(t,e){if(0!==t.length){var i=new hs(this,{series:t});this.appendChart(i,e)}},e.prototype.createAreaChart=function(t,e){if(0!==t.length){var i=new vs(this,{series:t});this.appendChart(i,e)}},e.prototype._dispatchEvent=function(t,e,i){var o=t._eventCoordinates(e),r=new Ft(o.x,o.y),n=this.axisX.getValue(r),s=this.axisY.getValue(r);null!==n&&null!==s&&t.trigger(i,{element:At(e),x:n,y:s})},e.prototype.createCrosshairs=function(){},e}(ls);It(ms,{xAxis:{},yAxis:{}}),j(ms.prototype,Gr);var xs=ms;var _s=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.pointSlot=function(t,e){var i=t.center.y-e.y1,o=Ft.onCircle(t.center,t.middle(),i);return new Nt(o.x,o.y,o.x,o.y)},e.prototype.renderSegments=function(){if(t.prototype.renderSegments.call(this),this._segments&&this._segments.length>1)for(var e=function(t){for(var e=[],i=0;i<t.length;i++){var o=t[i];e[o.seriesIx]=e[o.seriesIx]||[],e[o.seriesIx].push(o)}return e}(this._segments),i=0;i<e.length;i++){var o=e[i];if(o&&o.length>1){var r=o[0].linePoints[0],n=St(o),s=St(n.linePoints),a=0===r.categoryIx,p=s.categoryIx===s.categoriesCount-1;a&&p&&St(o).linePoints.push(r)}}},e.prototype.createSegment=function(t,e,i){var o=new("smooth"===e.style?go:lo)(t,e,i),r=this.seriesMissingValues(e);return t.length!==e.data.length&&"interpolate"!==r||(o.options.closed=!0),o},e}(wo);It(_s,{clip:!1,limitPoints:!1});var bs=_s,ws=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.fillToAxes=function(){},e}(ko),As=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.fillToAxes=function(){},e}(Ao),Cs=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.createSegment=function(t,e,i,o){var r,n,s,a=this.options.isStacked,p=(e.line||{}).style;return a&&i>0&&o&&(n=o.linePoints.slice(0),r=o),"smooth"===p?(s=new ws(t,e,i,r,n)).options.closed=!0:(t.push(t[0]),s=new As(t,e,i,r,n)),s},e.prototype.seriesMissingValues=function(t){return t.missingValues||Hi},e}(bs),Ss=function(t){function e(e,i){t.call(this,e,null,i)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e}(ns);It(Ss,{overlay:{gradient:"none"},labels:{distance:10}});var ks=Ss,Ps=function(t){function e(e){t.call(this,e),this.forEach=e.rtl?zo:Io}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.reflow=function(t){var e=this.options,i=this.children,o=e.gap,r=e.spacing,n=i.length,s=n+o+r*(n-1),a=t.angle/s,p=t.startAngle+a*(o/2);this.forEach(i,(function(e){var i=t.clone();i.startAngle=p,i.angle=a,e.sector&&(i.radius=e.sector.radius),e.reflow(i),e.sector=i,p+=a+a*r}))},e}(Jt);It(Ps,{gap:1,spacing:0});var Rs=Ps,Os=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.reflow=function(t){var e=this.options.reverse,i=this.children,o=i.length,r=e?o-1:0,n=e?-1:1;this.box=new Nt;for(var s=r;s>=0&&s<o;s+=n){var a=i[s].sector;a.startAngle=t.startAngle,a.angle=t.angle}},e}(Jt),Ms=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.pointType=function(){return ks},e.prototype.clusterType=function(){return Rs},e.prototype.stackType=function(){return Os},e.prototype.categorySlot=function(t,e){return t.getSlot(e)},e.prototype.pointSlot=function(t,e){var i=t.clone(),o=t.center.y;return i.radius=o-e.y1,i.innerRadius=o-e.y2,i},e.prototype.reflowPoint=function(t,e){t.sector=e,t.reflow()},e.prototype.createAnimation=function(){this.options.animation.center=this.box.toRect().center(),t.prototype.createAnimation.call(this)},e}(Uo);Ms.prototype.reflow=oo.prototype.reflow,It(Ms,{clip:!1,limitPoints:!1,animation:{type:"pie"}});var Ts=Ms,js=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.createPolarAxis=function(){var t=new yi(this.options.categoryAxis,this.chartService);this.polarAxis=t,this.categoryAxis=t,this.appendAxis(t),this.aggregateCategories(),this.createCategoryAxesLabels()},e.prototype.valueAxisOptions=function(t){return this._hasBarCharts&&j(t,{majorGridLines:{type:r},minorGridLines:{type:r}}),this._isStacked100&&j(t,{roundToMajorUnit:!1,labels:{format:"P0"}}),j(t,this.options.valueAxis)},e.prototype.aggregateCategories=function(){gn.prototype.aggregateCategories.call(this,this.panes)},e.prototype.createCategoryAxesLabels=function(){gn.prototype.createCategoryAxesLabels.call(this,this.panes)},e.prototype.filterSeries=function(t){return t},e.prototype.createCharts=function(){var t=this.filterVisibleSeries(this.series),e=this.panes[0];this.createAreaChart(kr(t,["radarArea"]),e),this.createLineChart(kr(t,["radarLine"]),e),this.createBarChart(kr(t,["radarColumn"]),e)},e.prototype.chartOptions=function(t){var e={series:t},i=t[0];if(i){var o=this.filterVisibleSeries(t),r=i.stack;e.isStacked=r&&o.length>1,e.isStacked100=r&&"100%"===r.type&&o.length>1,e.isStacked100&&(this._isStacked100=!0)}return e},e.prototype.createAreaChart=function(t,e){if(0!==t.length){var i=new Cs(this,this.chartOptions(t));this.appendChart(i,e)}},e.prototype.createLineChart=function(t,e){if(0!==t.length){var i=new bs(this,this.chartOptions(t));this.appendChart(i,e)}},e.prototype.createBarChart=function(t,e){if(0!==t.length){var i=t[0],o=this.chartOptions(t);o.gap=i.gap,o.spacing=i.spacing;var r=new Ts(this,o);this.appendChart(r,e),this._hasBarCharts=!0}},e.prototype.seriesCategoryAxis=function(){return this.categoryAxis},e.prototype._dispatchEvent=function(t,e,i){var o=t._eventCoordinates(e),r=new Ft(o.x,o.y),n=this.categoryAxis.getCategory(r),s=this.valueAxis.getValue(r);null!==n&&null!==s&&t.trigger(i,{element:At(e),category:n,value:s})},e.prototype.createCrosshairs=function(){},e}(ls);j(js.prototype,Gr,{appendChart:gn.prototype.appendChart,aggregateSeries:gn.prototype.aggregateSeries,seriesSourcePoints:gn.prototype.seriesSourcePoints}),It(js,{categoryAxis:{categories:[]},valueAxis:{}});var Ls=js,Is=function(t){function e(e,i,o){t.call(this,i),this.value=e,this.options.index=o.index}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.reflow=function(t){var e=this.points,i=this.children[0];this.box=new Nt(e[0].x,e[0].y,e[1].x,e[2].y),i&&i.reflow(new Nt(t.x1,e[0].y,t.x2,e[2].y))},e.prototype.createVisual=function(){var e,i=this,o=this.options;t.prototype.createVisual.call(this),(e=o.visual?o.visual({category:this.category,dataItem:this.dataItem,value:this.value,series:this.series,percentage:this.percentage,points:this.points,options:o,sender:this.getSender(),createVisual:function(){return i.createPath()}}):this.createPath())&&this.visual.append(e)},e.prototype.createPath=function(){var t=this.options,e=t.border;return C.drawing.Path.fromPoints(this.points,{fill:{color:t.color,opacity:t.opacity},stroke:{color:e.color,opacity:e.opacity,width:e.width}}).close()},e.prototype.createHighlight=function(t){return C.drawing.Path.fromPoints(this.points,t)},e.prototype.highlightVisual=function(){return this.visual.children[0]},e.prototype.highlightVisualArgs=function(){var t=C.drawing.Path.fromPoints(this.points).close();return{options:this.options,path:t}},e.prototype.tooltipAnchor=function(){var t=this.box;return{point:new Ft(t.center().x,t.y1),align:{horizontal:"center",vertical:"top"}}},e.prototype.formatValue=function(t){return this.owner.formatPointValue(this,t)},e}(Jt);It(Is,{color:v,border:{width:1}}),j(Is.prototype,ro);var zs=Is,Bs=function(t){function e(e,i){t.call(this,i),this.plotArea=e,this.points=[],this.labels=[],this.legendItems=[],this.render()}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.formatPointValue=function(t,e){return this.chartService.format.auto(e,t.value)},e.prototype.render=function(){var t=this.options,e=this.plotArea.options.seriesColors;void 0===e&&(e=[]);var i=t.series[0],o=i.data;if(o)for(var r=Cr(i),n=r.total,s=r.points,a=0;a<s.length;a++){var p=s[a];if(p){var l=p.fields;M(i.color)||(i.color=l.color||e[a%e.length]),l=j({index:a,owner:this,series:i,dataItem:o[a],percentage:p.value/n},l,{visible:p.visible});var c=p.valueFields.value,h=this.createSegment(c,l),u=this.createLabel(c,l);h&&u&&h.append(u)}}},e.prototype.evalSegmentOptions=function(t,e,i){var o=i.series;to(t,{value:e,series:o,dataItem:i.dataItem,index:i.index},{defaults:o._defaults,excluded:["data","content","template","toggle","visual"]})},e.prototype.createSegment=function(t,e){var i=j({},e.series);if(this.evalSegmentOptions(i,t,e),this.createLegendItem(t,i,e),!1!==e.visible){var o=new zs(t,i,e);return Object.assign(o,e),this.append(o),this.points.push(o),o}},e.prototype.createLabel=function(t,e){var i=e.series,o=e.dataItem,r=j({},this.options.labels,i.labels),s=t;if(r.visible){var a=it(r),p={dataItem:o,value:t,percentage:e.percentage,category:e.category,series:i};if(a?s=a(p):r.format&&(s=this.plotArea.chartService.format.auto(r.format,s)),!r.color){var l=new C.Color(i.color).percBrightness();r.color=l>180?n:v,r.background||(r.background=i.color)}this.evalSegmentOptions(r,t,e);var c=new de(s,j({vAlign:r.position},r),p);return this.labels.push(c),c}},e.prototype.labelPadding=function(){for(var t=this.labels,e={left:0,right:0},i=0;i<t.length;i++){var o=t[i].options.align;if(o!==a){var r=t[i].box.width();o===h?e.left=Math.max(e.left,r):e.right=Math.max(e.right,r)}}return e},e.prototype.dynamicSlopeReflow=function(t,e,i){for(var o=this.options,r=this.points,n=r.length,s=r[0],a=s,p=0;p<r.length;p++)r[p].percentage>a.percentage&&(a=r[p]);for(var l=s.percentage/a.percentage*e,c=(e-l)/2,h=0,u=0;u<n;u++){var d=r[u].percentage,f=r[u+1],g=f?f.percentage:d,y=r[u].points=[],v=o.dynamicHeight?i*d:i/n,m=void 0;m=kt(m=d?(e-l*(g/d))/2:g?0:e/2,0,e),y.push(new C.geometry.Point(t.x1+c,t.y1+h)),y.push(new C.geometry.Point(t.x1+e-c,t.y1+h)),y.push(new C.geometry.Point(t.x1+e-m,t.y1+v+h)),y.push(new C.geometry.Point(t.x1+m,t.y1+v+h)),c=m,h+=v+o.segmentSpacing,l=kt(e-2*m,0,e)}},e.prototype.constantSlopeReflow=function(t,e,i){for(var o=this.options,r=this.points,n=r.length,s=o.neckRatio<=1,a=s?o.neckRatio*e:e,p=s?0:(e-e/o.neckRatio)/2,l=((s?e:e-2*p)-a)/2,c=0,h=0;h<n;h++){var u=r[h].points=[],d=r[h].percentage,f=o.dynamicHeight?l*d:l/n,g=o.dynamicHeight?i*d:i/n;u.push(new C.geometry.Point(t.x1+p,t.y1+c)),u.push(new C.geometry.Point(t.x1+e-p,t.y1+c)),u.push(new C.geometry.Point(t.x1+e-p-f,t.y1+g+c)),u.push(new C.geometry.Point(t.x1+p+f,t.y1+g+c)),p+=f,c+=g+o.segmentSpacing}},e.prototype.reflow=function(t){var e=this.points,i=e.length;if(i){var o=this.options,r=t.clone().unpad(this.labelPadding()),n=r.height()-o.segmentSpacing*(i-1),s=r.width();o.dynamicSlope?this.dynamicSlopeReflow(r,s,n):this.constantSlopeReflow(r,s,n);for(var a=0;a<i;a++)e[a].reflow(t)}},e}(Jt);It(Bs,{neckRatio:.3,width:300,dynamicSlope:!1,dynamicHeight:!0,segmentSpacing:0,labels:{visible:!1,align:a,position:a,zIndex:1}}),j(Bs.prototype,$n);var Vs=Bs,Es=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.render=function(){this.createFunnelChart(this.series)},e.prototype.createFunnelChart=function(t){var e=t[0],i=new Vs(this,{series:t,legend:this.options.legend,neckRatio:e.neckRatio,dynamicHeight:e.dynamicHeight,dynamicSlope:e.dynamicSlope,segmentSpacing:e.segmentSpacing,highlight:e.highlight});this.appendChart(i)},e.prototype.appendChart=function(e,i){t.prototype.appendChart.call(this,e,i),vt(this.options.legend.items,e.legendItems)},e}(Dr),Ds="color",Gs="first",Us="max";Mn.current.register(gn,[Ni,qi,Ki,Yi,"area","verticalArea","candlestick","ohlc","bullet","verticalBullet","boxPlot","verticalBoxPlot","rangeColumn","rangeBar","waterfall","horizontalWaterfall","rangeArea","verticalRangeArea"]),Mn.current.register(Xn,["scatter","scatterLine","bubble"]),Mn.current.register(os,[Xi]),Mn.current.register(ps,["donut"]),Mn.current.register(Es,["funnel"]),Mn.current.register(xs,["polarArea","polarLine","polarScatter"]),Mn.current.register(Ls,["radarArea","radarColumn","radarLine"]),Vi.current.register([Ni,qi,Ki,Yi,"area","verticalArea"],[y],["category",Ds,"noteText","errorLow","errorHigh"]),Vi.current.register(["rangeColumn","rangeBar","rangeArea","verticalRangeArea"],["from","to"],["category",Ds,"noteText"]),Vi.current.register(["waterfall","horizontalWaterfall"],[y],["category",Ds,"noteText","summary"]),Vi.current.register(["polarArea","polarLine","polarScatter"],[m,x],[Ds]),Vi.current.register(["radarArea","radarColumn","radarLine"],[y],[Ds]),Vi.current.register(["funnel"],[y],["category",Ds,"visibleInLegend","visible"]),Nr.current.register([Ni,qi,Ki,Yi,"area","verticalArea","waterfall","horizontalWaterfall"],{value:Us,color:Gs,noteText:Gs,errorLow:"min",errorHigh:Us}),Nr.current.register(["rangeColumn","rangeBar","rangeArea","verticalRangeArea"],{from:"min",to:Us,color:Gs,noteText:Gs}),Nr.current.register(["radarArea","radarColumn","radarLine"],{value:Us,color:Gs}),Vi.current.register(["scatter","scatterLine","bubble"],[m,x],[Ds,"noteText","xErrorLow","xErrorHigh","yErrorLow","yErrorHigh"]),Vi.current.register(["bubble"],[m,x,"size"],[Ds,"category","noteText"]),Vi.current.register(["candlestick","ohlc"],["open","high","low","close"],["category",Ds,"downColor","noteText"]),Nr.current.register(["candlestick","ohlc"],{open:Us,high:Us,low:"min",close:Us,color:Gs,downColor:Gs,noteText:Gs}),Vi.current.register(["boxPlot","verticalBoxPlot"],["lower","q1","median","q3","upper","mean","outliers"],["category",Ds,"noteText"]),Nr.current.register(["boxPlot","verticalBoxPlot"],{lower:Us,q1:Us,median:Us,q3:Us,upper:Us,mean:Us,outliers:Gs,color:Gs,noteText:Gs}),Vi.current.register(["bullet","verticalBullet"],["current","target"],["category",Ds,"visibleInLegend","noteText"]),Nr.current.register(["bullet","verticalBullet"],{current:Us,target:Us,color:Gs,noteText:Gs}),Vi.current.register([Xi,"donut"],[y],["category",Ds,"explode","visibleInLegend","visible"]);var Fs=["category",y,m,x],Hs=function(t){function e(e,i,o,r){var n=this;void 0===r&&(r={}),t.call(this),this.observers=[],this.addObserver(r.observer),this.chartService=new Z(this,r),this.chartService.theme=o,this._initElement(e);var s=j({},this.options,i);this._originalOptions=j({},s),this._theme=o,this._initTheme(s,o),this._initHandlers(),this._initSurface(),this.bindCategories(),Lt.preloadFonts(i,(function(){n.fontLoaded=!0,n._destroyed||(n.trigger("init"),n._redraw(),n._attachEvents())}))}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype._initElement=function(t){for(this._setElementClass(t),t.style.position="relative";t.firstChild;)t.removeChild(t.firstChild);this.element=t},e.prototype._setElementClass=function(t){b(t,"k-chart")},e.prototype._initTheme=function(t,e){for(var i=[],o=t.series||[],r=0;r<o.length;r++)i.push(Object.assign({},o[r]));t.series=i,function(t){for(var e=Fs,i=0;i<e.length;i++){var o=e[i]+"Axes";t[o]&&(t[e[i]+"Axis"]=t[o],delete t[o])}}(t),this.applyDefaults(t,e),null===t.seriesColors&&delete t.seriesColors,this.options=j({},e,t),this.applySeriesColors()},e.prototype.getSize=function(){var t=this.options.chartArea||{};return{width:t.width?parseInt(t.width,10):Math.floor(this.element.offsetWidth),height:t.height?parseInt(t.height,10):Math.floor(this.element.offsetHeight)}},e.prototype.resize=function(t){var e=this.getSize(),i=this._size,o=e.width>0||e.height>0;t||o&&(!i||e.width!==i.width||e.height!==i.height)?(this._size=e,this._resize(e,t),this.trigger("resize",e)):o&&this._selections&&Bt(this._selections,(function(t){return!t.visible}))&&(this._destroySelections(),this._setupSelection())},e.prototype._resize=function(){this._noTransitionsRedraw()},e.prototype.redraw=function(t){if(this.applyDefaults(this.options),this.applySeriesColors(),t){var e=this._model._plotArea,i=e.findPane(t);e.redraw(i)}else this._redraw()},e.prototype.getAxis=function(t){return Ri(t,this._plotArea.axes)},e.prototype.findAxisByName=function(t){return this.getAxis(t)},e.prototype.findPaneByName=function(t){for(var e=this._plotArea.panes,i=0;i<e.length;i++)if(e[i].options.name===t)return new Mi(e[i])},e.prototype.findPaneByIndex=function(t){var e=this._plotArea.panes;if(e[t])return new Mi(e[t])},e.prototype.plotArea=function(){return new Ti(this._plotArea)},e.prototype.toggleHighlight=function(t,e){var i,o,r,n=this._plotArea,s=(n.srcSeries||n.series||[])[0];M(e)?i=n.filterPoints(e):(L(e)?(o=e.series,r=e.category):o=r=e,i="donut"===s.type?Ns(n.pointsBySeriesName(o),r):s.type===Xi||"funnel"===s.type?Ns((n.charts[0]||{}).points,r):n.pointsBySeriesName(o));i&&this.togglePointsHighlight(t,i)},e.prototype.togglePointsHighlight=function(t,e){for(var i=this._highlight,o=0;o<e.length;o++)i.togglePointHighlight(e[o],t)},e.prototype.showTooltip=function(t){var e,i,o=this._sharedTooltip(),r=this._tooltip,n=this._plotArea;if(M(t)?(e=n.findPoint(t))&&o&&(i=e.categoryIx):o&&xt(t)&&(i=n.categoryAxis.categoryIndex(t)),o){if(i>=0){var s=this._plotArea.pointsByCategoryIndex(i);r.showAt(s)}}else e&&r.show(e)},e.prototype.hideTooltip=function(){this._tooltip.hide()},e.prototype._initSurface=function(){var t=this.surface,e=this._surfaceWrap(),i=this.options.chartArea||{};i.width&&wt(e,{width:i.width}),i.height&&wt(e,{height:i.height}),t&&t.options.type===this.options.renderAs?(this.surface.clear(),this.surface.resize()):(this._destroySurface(),this.surface=C.drawing.Surface.create(e,{type:this.options.renderAs}),this.surface.bind("mouseenter",this._surfaceMouseenterHandler),this.surface.bind("mouseleave",this._surfaceMouseleaveHandler))},e.prototype._surfaceWrap=function(){return this.element},e.prototype._redraw=function(){var t=this._getModel();this._size={width:t.options.width,height:t.options.height},this._destroyView(),this._model=t,this._plotArea=t._plotArea,t.renderVisual(),!1!==this.options.transitions&&t.traverse((function(t){t.animation&&t.animation.setup()})),this._initSurface(),this.surface.draw(t.visual),!1!==this.options.transitions&&t.traverse((function(t){t.animation&&t.animation.play()})),this._tooltip=this._createTooltip(),this._highlight=new vn,this._setupSelection(),this._createPannable(),this._createZoomSelection(),this._createMousewheelZoom(),this.trigger("render"),Ws(this._plotArea.panes),this._navState||this._cancelDomEvents()},e.prototype.exportVisual=function(t){var e;if(t&&(t.width||t.height||t.options)){var i=this.options,o=j({},t.options,{chartArea:{width:t.width,height:t.height}});Ys(this._originalOptions,o),this.options=j({},this._originalOptions,o),this._initTheme(this.options,this._theme),this.bindCategories();var r=this._getModel();r.renderVisual(),Ws(r._plotArea.panes),e=r.visual,this.options=i}else e=this.surface.exportVisual();return e},e.prototype._sharedTooltip=function(){return this._plotArea instanceof gn&&this.options.tooltip&&this.options.tooltip.shared},e.prototype._createPannable=function(){var t=this.options;!1!==t.pannable&&(this._pannable=new bn(this._plotArea,t.pannable))},e.prototype._createZoomSelection=function(){var t=this.options.zoomable,e=(t||{}).selection;!1!==t&&!1!==e&&(this._zoomSelection=new An(this,e))},e.prototype._createMousewheelZoom=function(){var t=this.options.zoomable,e=(t||{}).mousewheel;!1!==t&&!1!==e&&(this._mousewheelZoom=new Cn(this,e))},e.prototype._toggleDragZoomEvents=function(){var t=this.options.pannable,e=this.options.zoomable,i=(e||{}).selection,o=(e||{}).mousewheel,r=!(t||!1!==e&&!1!==i||this.requiresHandlers(["dragStart","drag","dragEnd"])),n=(!1===e||!1===o)&&!this.requiresHandlers(["zoomStart","zoom","zoomEnd"]),s=this.element;this._dragZoomEnabled&&r&&n?(s.style.touchAction=this._touchAction||"",this._dragZoomEnabled=!1):this._dragZoomEnabled||r&&n||(s.style.touchAction="none",this._dragZoomEnabled=!0),this._toggleDomEvents(!r,!n)},e.prototype._toggleDomEvents=function(t,e){var i=this.domEvents;i&&(i.toggleDrag&&i.toggleDrag(t),i.toggleZoom&&i.toggleZoom(e))},e.prototype._createTooltip=function(){var t=this.options.tooltip;return this._sharedTooltip()?this._createSharedTooltip(t):new zn(this.chartService,t)},e.prototype._createSharedTooltip=function(t){return new Vn(this._plotArea,t)},e.prototype.applyDefaults=function(t,e){!function(t,e){var i,o,r,n=(e||{}).axisDefaults||{};function s(t){var e=(t||{}).color||o.color,r=j({},n,n[i],o,o[i],{line:{color:e},labels:{color:e},title:{color:e}},t);return delete r[i],r}for(var a=0;a<Fs.length;a++)i=Fs[a]+"Axis",o=t.axisDefaults||{},r=(r=[].concat(t[i])).map(s),t[i]=r.length>1?r:r[0]}(t,e),function(t,e){var i=t.series,o=i.length,r=t.seriesDefaults,n=j({},t.seriesDefaults),s=e?j({},e.seriesDefaults):{},a=j({},s);qs(n),qs(a);for(var p=0;p<o;p++){var l=i[p].type||t.seriesDefaults.type,c=j({data:[]},a,s[l],{tooltip:t.tooltip},n,r[l]);i[p]._defaults=c,i[p]=j({},c,i[p]),i[p].data=i[p].data||[]}}(t,e)},e.prototype.applySeriesColors=function(){for(var t=this.options,e=t.series,i=t.seriesColors||[],o=0;o<e.length;o++){var r=e[o],n=i[o%i.length],s=r._defaults;r.color=r.color||n,s&&(s.color=s.color||n)}},e.prototype._getModel=function(){var t=this.options,e=this._createPlotArea(),i=new ne(this._modelOptions());return i.chart=this,i._plotArea=e,ge.buildTitle(t.title,i),t.legend&&t.legend.visible&&i.append(new Rn(e.options.legend,this.chartService)),i.append(e),i.reflow(),i},e.prototype._modelOptions=function(){var t=this.options,e=this.getSize();return j({transitions:t.transitions,width:e.width||600,height:e.height||400},t.chartArea)},e.prototype._createPlotArea=function(t){var e=this.options;return Mn.current.create(t?[]:e.series,e,this.chartService)},e.prototype._setupSelection=function(){for(var t=this._plotArea.axes,e=this._selections=[],i=0;i<t.length;i++){var o=t[i],r=o.options;if(o instanceof qe&&r.select&&!r.vertical){var n=o.range(),s=new In(this,o,j({min:n.min,max:n.max},r.select));e.push(s)}}},e.prototype._selectStart=function(t){return this.trigger("selectStart",t)},e.prototype._select=function(t){return this.trigger("select",t)},e.prototype._selectEnd=function(t){return this.trigger("selectEnd",t)},e.prototype._initHandlers=function(){this._clickHandler=this._click.bind(this),this._mousewheelHandler=this._mousewheel.bind(this),this._mouseleaveHandler=this._mouseleave.bind(this),this._surfaceMouseenterHandler=this._mouseover.bind(this),this._surfaceMouseleaveHandler=this._mouseout.bind(this),this._mousemove=Object(C.throttle)(this._mousemove.bind(this),20)},e.prototype.addObserver=function(t){t&&this.observers.push(t)},e.prototype.removeObserver=function(t){var e=this.observers.indexOf(t);e>=0&&this.observers.splice(e,1)},e.prototype.requiresHandlers=function(t){for(var e=this.observers,i=0;i<e.length;i++)if(e[i].requiresHandlers(t))return!0},e.prototype.trigger=function(t,e){void 0===e&&(e={}),"showTooltip"===t&&(e.anchor.point=this._toDocumentCoordinates(e.anchor.point)),e.sender=this;for(var i=this.observers,o=!1,r=0;r<i.length;r++)i[r].trigger(t,e)&&(o=!0);return o},e.prototype._attachEvents=function(){var t,e,i=this.element;this._touchAction=i.style.touchAction,mt(i,((t={}).contextmenu=this._clickHandler,t[Zi]=this._mousewheelHandler,t.mouseleave=this._mouseleaveHandler,t)),this._shouldAttachMouseMove()&&mt(i,((e={}).mousemove=this._mousemove,e)),this.domEvents=Q.create(this.element,{start:this._start.bind(this),move:this._move.bind(this),end:this._end.bind(this),tap:this._tap.bind(this),gesturestart:this._gesturestart.bind(this),gesturechange:this._gesturechange.bind(this),gestureend:this._gestureend.bind(this)}),this._toggleDragZoomEvents()},e.prototype._mouseleave=function(t){this._hoveredPoint&&(this._hoveredPoint.out(this,t),this._hoveredPoint=null),this._plotArea.hovered&&(this.trigger("plotAreaLeave"),this._plotArea.hovered=!1)},e.prototype._cancelDomEvents=function(){this.domEvents&&this.domEvents.cancel&&this.domEvents.cancel()},e.prototype._gesturestart=function(t){this._mousewheelZoom&&!this._stopChartHandlers(t)&&(this._gestureDistance=t.distance,this._unsetActivePoint(),this.surface.suspendTracking())},e.prototype._gestureend=function(t){this._zooming&&!this._stopChartHandlers(t)&&(this.surface&&this.surface.resumeTracking(),this._zooming=!1,this.trigger("zoomEnd",{}))},e.prototype._gesturechange=function(t){var e=this._mousewheelZoom;if(e&&!this._stopChartHandlers(t)){t.preventDefault();var i=this._gestureDistance,o=-t.distance/i+1;if(Math.abs(o)>=.1){o=Math.round(10*o),this._gestureDistance=t.distance;var r={delta:o,axisRanges:Ks(this._plotArea.axes),originalEvent:t};if(this._zooming||!this.trigger("zoomStart",r))this._zooming||(this._zooming=!0),(r.axisRanges=e.updateRanges(o))&&!this.trigger("zoom",r)&&e.zoom()}}},e.prototype._mouseout=function(t){if(t.element){var e=this._drawingChartElement(t.element,t);e&&e.leave&&e.leave(this,t.originalEvent)}},e.prototype._start=function(t){var e=this._eventCoordinates(t);!this._stopChartHandlers(t)&&this._plotArea.backgroundContainsPoint(e)&&(this.requiresHandlers(["dragStart","drag","dragEnd"])&&this._startNavigation(t,e,"dragStart"),this._pannable&&this._pannable.start(t)&&(this.surface.suspendTracking(),this._unsetActivePoint(),this._suppressHover=!0,this.chartService.panning=!0),this._zoomSelection&&this._zoomSelection.start(t)&&this.trigger("zoomStart",{axisRanges:Ks(this._plotArea.axes),originalEvent:t}))},e.prototype._move=function(t){var e=this._navState,i=this._pannable;if(!this._stopChartHandlers(t)){if(i){var o=i.move(t);o&&!this.trigger("drag",{axisRanges:o,originalEvent:t})&&i.pan()}else if(e){for(var r={},n=e.axes,s=0;s<n.length;s++){var a=n[s];if(a.options.name){var p=a.options.vertical?t.y:t.x,l=p.startLocation-p.location;0!==l&&(r[a.options.name]=a.translateRange(l))}}e.axisRanges=r,this.trigger("drag",{axisRanges:r,originalEvent:t})}this._zoomSelection&&this._zoomSelection.move(t)}},e.prototype._end=function(t){if(!this._stopChartHandlers(t)){var e=this._pannable;if(e&&e.end(t)?(this.surface.resumeTracking(),this.trigger("dragEnd",{axisRanges:Ks(this._plotArea.axes),originalEvent:t}),this._suppressHover=!1,this.chartService.panning=!1):this._endNavigation(t,"dragEnd"),this._zoomSelection){var i=this._zoomSelection.end(t);i&&!this.trigger("zoom",{axisRanges:i,originalEvent:t})&&(this._zoomSelection.zoom(),this.trigger("zoomEnd",{axisRanges:i,originalEvent:t}))}}},e.prototype._stopChartHandlers=function(t){var e=this._selections||[];if(!e.length)return!1;var i=this._eventCoordinates(t),o=this._plotArea.paneByPoint(i);if(o)for(var r=0;r<e.length;r++)if(e[r].onPane(o))return!0},e.prototype._mousewheel=function(t){var e=this,i=gt(t),o=this._mousewheelZoom,r=this._eventCoordinates(t);if(!this._stopChartHandlers(t)&&this._plotArea.backgroundContainsPoint(r))if(o){var n={delta:i,axisRanges:Ks(this._plotArea.axes),originalEvent:t};!this._zooming&&this.trigger("zoomStart",n)||(t.preventDefault(),this._zooming||(this._unsetActivePoint(),this.surface.suspendTracking(),this._zooming=!0),this._mwTimeout&&clearTimeout(this._mwTimeout),n.axisRanges=o.updateRanges(i),n.axisRanges&&!this.trigger("zoom",n)&&o.zoom(),this._mwTimeout=setTimeout((function(){e.trigger("zoomEnd",n),e._zooming=!1,e.surface&&e.surface.resumeTracking()}),150))}else{var s=this._navState;if(!s)this._startNavigation(t,r,"zoomStart")||(s=this._navState);if(s){var a=s.totalDelta||i;s.totalDelta=a+i;for(var p=this._navState.axes,l={},c=0;c<p.length;c++){var h=p[c],u=h.options.name;u&&(l[u]=h.scaleRange(-a))}this.trigger("zoom",{delta:i,axisRanges:l,originalEvent:t}),this._mwTimeout&&clearTimeout(this._mwTimeout),this._mwTimeout=setTimeout((function(){e._endNavigation(t,"zoomEnd")}),150)}}},e.prototype._startNavigation=function(t,e,i){var o=this._model._plotArea,r=o.findPointPane(e),n=o.axes.slice(0);if(r){var s=Ks(n);this.trigger(i,{axisRanges:s,originalEvent:t})?this._cancelDomEvents():(this._suppressHover=!0,this._unsetActivePoint(),this._navState={axisRanges:s,pane:r,axes:n})}},e.prototype._endNavigation=function(t,e){this._navState&&(this.trigger(e,{axisRanges:this._navState.axisRanges,originalEvent:t}),this._suppressHover=!1,this._navState=null)},e.prototype._getChartElement=function(t,e){var i=this.surface.eventTarget(t);if(i)return this._drawingChartElement(i,t,e)},e.prototype._drawingChartElement=function(t,e,i){for(var o,r=t;r&&!o;)o=r.chartElement,r=r.parent;if(o)return o.aliasFor&&(o=o.aliasFor(e,this._eventCoordinates(e))),i&&(o=o.closest(i))&&o.aliasFor&&(o=o.aliasFor()),o},e.prototype._eventCoordinates=function(t){var e=Ct(t);return this._toModelCoordinates(e.x,e.y)},e.prototype._elementPadding=function(){if(!this._padding){var t=V(this.element,["paddingLeft","paddingTop"]),e=t.paddingLeft,i=t.paddingTop;this._padding={top:i,left:e}}return this._padding},e.prototype._toDocumentCoordinates=function(t){var e=this._elementPadding(),i=bt(this.element);return{left:Ot(t.x+e.left+i.left),top:Ot(t.y+e.top+i.top)}},e.prototype._toModelCoordinates=function(t,e){var i=this.element,o=bt(i),r=this._elementPadding(),n=Gt(i).invert(),s=new C.geometry.Point(t-o.left-r.left,e-o.top-r.top).transform(n);return new Ft(s.x,s.y)},e.prototype._tap=function(t){var e=this,i=this.surface.eventTarget(t),o=this._drawingChartElement(i,t),r=this._sharedTooltip();this._startHover(i,t)||r||this._unsetActivePoint(),r&&this._trackSharedTooltip(this._eventCoordinates(t),t,!0),this._propagateClick(o,t),this.handlingTap=!0,setTimeout((function(){e.handlingTap=!1}),0)},e.prototype._click=function(t){var e=this._getChartElement(t);this._propagateClick(e,t)},e.prototype._propagateClick=function(t,e){for(var i=t;i;)i.click&&i.click(this,e),i=i.parent},e.prototype._startHover=function(t,e){if(this._suppressHover)return!1;var i=this._drawingChartElement(t,e,(function(t){return(t.hover||t.over)&&!(t instanceof Dr)})),o=this._activePoint,r=this._plotArea.series.length>1,n=this._hasInactiveOpacity();return this._updateHoveredPoint(i,e),i&&o!==i&&i.hover?(this._activePoint=i,this._sharedTooltip()||i.hover(this,e)||(this._displayTooltip(i),n?this._displayInactiveOpacity(i,r):this._highlight.show(i))):!i&&n&&(r&&this._activeChartInstance&&(this._updateSeriesOpacity(i,!0),this._applySeriesOpacity(this._activeChartInstance.children,null,!0),this._activeChartInstance=null),this._highlight&&this._highlight.hide(),this._activePoint=null),i},e.prototype._displayTooltip=function(t){j({},this.options.tooltip,t.options.tooltip).visible&&this._tooltip.show(t)},e.prototype._displayInactiveOpacity=function(t,e,i){var o=this._activeChartInstance=this._chartInstanceFromPoint(t);if(e)this._updateSeriesOpacity(t),this._applySeriesOpacity(o.children,null,!0),this._applySeriesOpacity(o.children,t.series),this._highlight.show(i||t);else{var r;if(!o.supportsPointInactiveOpacity())return void this._highlight.show(t);(r=this._getInactivePoints(t,o))&&r.length&&this._highlight.show(r,1-this._getInactiveOpacityForSeries(t.series))}},e.prototype._getInactivePoints=function(t,e){return this._getAllPointsOfType(e,t.constructor).filter((function(e){return e!==t}))},e.prototype._getAllPointsOfType=function(t,e){for(var i=[],o=0;o<t.children.length;o++){var r=t.children[o];r.constructor===e?i.push(r):r.children&&r.children.length&&(i=i.concat(this._getAllPointsOfType(r,e)))}return i},e.prototype._updateHoveredPoint=function(t,e){var i=this._hoveredPoint;i&&i!==t&&(i.out(this,e),this._hoveredPoint=null),t&&i!==t&&t.over&&(this._hoveredPoint=t,t.over(this,e))},e.prototype._updateSeriesOpacity=function(t,e){for(var i=this._plotArea,o=i.series.length,r=0;r<o;r++){var n=i.series[r],s=this._getDefaultOpacityForSeries(n),a=this._getInactiveOpacityForSeries(n);e||n===t.series?(n.opacity=s,n.line&&(n.line.opacity=s)):(n.defaultOpacity=s,n.opacity=a,n.line&&(n.line.opacity=a))}},e.prototype._applySeriesOpacity=function(t,e,i,o){for(var r=0;r<t.length;r++){var n=t[r],s=n.series||o;if(s&&n.visual){var a=o?o.opacity:n.series.opacity;(s!==e||i)&&n.visual.opacity(i?1:a)}n.children&&n.children.length&&this._applySeriesOpacity(n.children,e,i,n.series)}},e.prototype._chartInstanceFromPoint=function(t){for(var e=t.parent;e&&!e.plotArea;)e=e.parent;return e},e.prototype._hasInactiveOpacity=function(){var t=void 0!==this.options.seriesDefaults.highlight.inactiveOpacity,e=this.options.series.filter((function(t){return void 0!==t.highlight.inactiveOpacity})).length>0;return t||e},e.prototype._getInactiveOpacityForSeries=function(t){var e=this.options.seriesDefaults.highlight.inactiveOpacity;return t.highlight.inactiveOpacity||e||t.opacity||1},e.prototype._getDefaultOpacityForSeries=function(t){return t.defaultOpacity||t.opacity||1},e.prototype._mouseover=function(t){var e,i=this._startHover(t.element,t.originalEvent);i&&i.tooltipTracking&&!this._mouseMoveTrackHandler&&!this._sharedTooltip()&&(this._mouseMoveTrackHandler=this._mouseMoveTracking.bind(this),mt(document,((e={}).mousemove=this._mouseMoveTrackHandler,e)))},e.prototype._mouseMoveTracking=function(t){var e,i=this.options,o=this._tooltip,r=this._highlight,n=this._activePoint,s=this._eventCoordinates(t);if(this._plotArea.box.containsPoint(s)){if(n&&n.tooltipTracking&&n.series&&n.parent.getNearestPoint){var a=n.parent.getNearestPoint(s.x,s.y,n.seriesIx);if(a&&a!==n)if(this._activePoint=a,!a.hover(this,t))j({},i.tooltip,a.options.tooltip).visible&&o.show(a),r.show(a)}}else Mt(document,((e={}).mousemove=this._mouseMoveTrackHandler,e)),this._unsetActivePoint(),this._mouseMoveTrackHandler=null},e.prototype._mousemove=function(t){var e=this._eventCoordinates(t),i=this._plotArea;if(this._trackCrosshairs(e),i.hover){var o=i.backgroundContainsPoint(e);o?(i.hovered=!0,this._plotArea.hover(this,t)):i.hovered&&!o&&(this.trigger("plotAreaLeave"),i.hovered=!1)}this._sharedTooltip()&&this._trackSharedTooltip(e,t)},e.prototype._trackCrosshairs=function(t){for(var e=this._plotArea.crosshairs,i=0;i<e.length;i++){var o=e[i];o.box.containsPoint(t)?o.showAt(t):o.hide()}},e.prototype._trackSharedTooltip=function(t,e,i){if(!this._suppressHover){var o=this.options.tooltip,r=this._plotArea,n=this._plotArea.categoryAxis,s=this._tooltip,a=this._highlight;if(r.backgroundContainsPoint(t)){var p=n.pointCategoryIndex(t);if(p!==this._tooltipCategoryIx||!this._sharedHighlight&&i){var l=r.pointsByCategoryIndex(p),c=l.map((function(t){return t.eventArgs(e)})),h=c[0]||{};h.categoryPoints=c,l.length>0&&!this.trigger("seriesHover",h)?(o.visible&&s.showAt(l,t),a.show(l),this._sharedHighlight=!0):s.hide(),this._tooltipCategoryIx=p}else i&&this._sharedHighlight&&(a.hide(),s.hide(),this._sharedHighlight=!1)}else this._sharedHighlight&&(a.hide(),s.hide(),this._tooltipCategoryIx=null,this._sharedHighlight=!1)}},e.prototype.hideElements=function(t){var e=this._plotArea;this._mousemove.cancel(),e.hideCrosshairs(),this._unsetActivePoint(t)},e.prototype._unsetActivePoint=function(t){var e=this._tooltip,i=this._highlight;this._activePoint=null,this._hoveredPoint=null,!e||t&&t.keepTooltipOpen||e.hide(),this._tooltipCategoryIx=null,this._sharedHighlight=!1,i&&i.hide()},e.prototype._deferRedraw=function(){this._redraw()},e.prototype._clearRedrawTimeout=function(){this._redrawTimeout&&(clearInterval(this._redrawTimeout),this._redrawTimeout=null)},e.prototype.bindCategories=function(){for(var t=this.options,e=[].concat(t.categoryAxis),i=0;i<e.length;i++){var o=e[i];!1!==o.autoBind&&this.bindCategoryAxisFromSeries(o,i)}},e.prototype.bindCategoryAxisFromSeries=function(t,e){for(var i,o=this.options.series,r=o.length,n=new lt,s=[],a=!1,p=0;p<r;p++){var l=o[p],c=l.categoryAxis===t.name||!l.categoryAxis&&0===e,h=l.data,u=h.length,d=l.categoryField&&c;if(a=d||a,d&&u>0)for(var f=(i=Rr(t,zi(l.categoryField,h[0])))?Pr:zi,g=0;g<u;g++){var y=h[g],v=f(l.categoryField,y,this.chartService.intl);!i&&n.get(v)||(s.push([v,y]),i||n.set(v,!0))}}if(s.length>0){i&&(s=function(t,e){void 0===e&&(e=Ie);for(var i=function(t,e){void 0===e&&(e=Ie);for(var i=1,o=t.length;i<o;i++)if(e(t[i],t[i-1])<0){t.sort(e);break}return t}(t,e),o=i.length,r=o>0?[i[0]]:[],n=1;n<o;n++)0!==e(i[n],St(r))&&r.push(i[n]);return r}(s,(function(t,e){return Ie(t[0],e[0])})));var m=function(t){for(var e=t.length,i=[],o=0;o<e;o++)for(var r=t[o],n=r.length,s=0;s<n;s++)i[s]=i[s]||[],i[s].push(r[s]);return i}(s);t.categories=m[0]}else a&&(t.categories=[])},e.prototype._isBindable=function(t){for(var e=Vi.current.valueFields(t),i=!0,o=0;o<e.length;o++){var r=e[o];if(r===y?r="field":r+="Field",!xt(t[r])){i=!1;break}}return i},e.prototype._noTransitionsRedraw=function(){var t,e=this.options;!1!==e.transitions&&(e.transitions=!1,t=!0),this._redraw(),t&&(e.transitions=!0)},e.prototype._legendItemHover=function(t,e){var i,o=this._plotArea,r=this._highlight,n=(o.srcSeries||o.series)[t];if(i=ct(n.type,[Xi,"donut","funnel"])?o.findPoint((function(i){return i.series.index===t&&i.index===e})):o.pointsBySeriesIndex(t),this._hasInactiveOpacity()&&n.visible&&i){var s=o.series.length>1,a=i.length?i[0]:i;this._displayInactiveOpacity(a,s,i)}else r.show(i)},e.prototype._shouldAttachMouseMove=function(){return this._plotArea.crosshairs.length||this._tooltip&&this._sharedTooltip()||this.requiresHandlers(["plotAreaHover","plotAreaLeave"])},e.prototype.updateMouseMoveHandler=function(){var t,e;Mt(this.element,((t={}).mousemove=this._mousemove,t)),this._shouldAttachMouseMove()&&mt(this.element,((e={}).mousemove=this._mousemove,e))},e.prototype.applyOptions=function(t,e){Ys(this._originalOptions,t),this._originalOptions=j(this._originalOptions,t),this.options=j({},this._originalOptions),e&&(this._theme=e,this.chartService.theme=e),this._initTheme(this.options,this._theme),this._toggleDragZoomEvents()},e.prototype.setOptions=function(t,e){this.applyOptions(t,e),this.bindCategories(),this.redraw(),this.updateMouseMoveHandler()},e.prototype.setDirection=function(t){this.chartService.rtl=Boolean(t),this.surface&&"svg"===this.surface.type&&this._destroySurface()},e.prototype.setIntlService=function(t){this.chartService.intl=t},e.prototype.noTransitionsRedraw=function(){this._noTransitionsRedraw()},e.prototype.destroy=function(){var t,e;this._destroyed=!0,Mt(this.element,((t={}).contextmenu=this._clickHandler,t[Zi]=this._mousewheelHandler,t.mousemove=this._mousemove,t.mouseleave=this._mouseleaveHandler,t)),this.domEvents&&(this.domEvents.destroy(),delete this.domEvents),this._mouseMoveTrackHandler&&Mt(document,((e={}).mousemove=this._mouseMoveTrackHandler,e)),this._destroyView(),this._destroySurface(),this._clearRedrawTimeout()},e.prototype._destroySurface=function(){var t=this.surface;t&&(t.unbind("mouseenter",this._surfaceMouseenterHandler),t.unbind("mouseleave",this._surfaceMouseleaveHandler),t.destroy(),this.surface=null)},e.prototype._destroySelections=function(){var t=this._selections;if(t)for(;t.length>0;)t.shift().destroy()},e.prototype._destroyView=function(){var t=this._model;t&&(t.destroy(),this._model=null),this._unsetActivePoint(),this._destroySelections(),this._tooltip&&this._tooltip.destroy(),this._highlight&&this._highlight.destroy(),this._zoomSelection&&(this._zoomSelection.destroy(),delete this._zoomSelection),this._pannable&&(this._pannable.destroy(),delete this._pannable),this._mousewheelZoom&&(this._mousewheelZoom.destroy(),delete this._mousewheelZoom)},e}(C.Class);function Ns(t,e){if(t)for(var i=0;i<t.length;i++)if(t[i].category===e)return[t[i]]}function qs(t){delete t.bar,delete t.column,delete t.rangeColumn,delete t.line,delete t.verticalLine,delete t.pie,delete t.donut,delete t.area,delete t.verticalArea,delete t.scatter,delete t.scatterLine,delete t.bubble,delete t.candlestick,delete t.ohlc,delete t.boxPlot,delete t.bullet,delete t.verticalBullet,delete t.polarArea,delete t.polarLine,delete t.radarArea,delete t.radarLine,delete t.waterfall}function Ks(t){for(var e={},i=0;i<t.length;i++){var o=t[i],r=o.options.name;r&&(e[r]=o.range())}return e}var Xs=["data","categories"];function Ys(t,e){for(var i in e)if(!ct(i,Xs)&&e.hasOwnProperty(i)){var o=e[i],r=t[i];if(xt(r)){var n=null===o;n||!xt(o)?(delete t[i],n&&delete e[i]):r&&L(o)&&L(r)&&Ys(r,o)}}}function Ws(t){for(var e=0;e<t.length;e++)t[e].notifyRender()}It(Hs,{renderAs:"",chartArea:{},legend:{visible:!0,labels:{}},categoryAxis:{},seriesDefaults:{type:qi,data:[],highlight:{visible:!0},labels:{},negativeValues:{visible:!1}},series:[],seriesColors:null,tooltip:{visible:!1},transitions:!0,valueAxis:{},plotArea:{},title:{},xAxis:{},yAxis:{},panes:[{}],pannable:!1,zoomable:!1});var Zs=Hs,Js=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype._slotAnchor=function(t,e){var i=this.plotArea.categoryAxis.options.vertical,o=i?{horizontal:"left",vertical:"center"}:{horizontal:"center",vertical:"bottom"};return{point:i?new Ft(this.plotArea.box.x2,e.center().y):new Ft(e.center().x,-2),align:o}},e.prototype._defaultAnchor=function(t,e){return this._slotAnchor({},e)},e}(Vn),Qs=[Ni,"bullet"];function $s(t){for(var e=[],i=0;i<t.length;i++){var o=t[i];e[i]=o.style.display,o.style.display="none"}return e}function ta(t,e){for(var i=0;i<t.length;i++)t[i].style.display=e[i]}function ea(t){return P(t)?[t]:t}var ia=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype._setElementClass=function(t){b(t,"k-sparkline")},e.prototype._initElement=function(e){t.prototype._initElement.call(this,e),this._initialWidth=Math.floor(wt(e).width)},e.prototype._resize=function(){var e=this.element,i=$s(e.childNodes);this._initialWidth=Math.floor(wt(e).width),ta(e.childNodes,i),t.prototype._resize.call(this)},e.prototype._modelOptions=function(){var t=this.options,e=this._surfaceWrap(),i=$s(e.childNodes),o=document.createElement("span");o.innerHTML="&nbsp;",e.appendChild(o);var r=j({width:this._autoWidth,height:wt(e).height,transitions:t.transitions},t.chartArea,{inline:!0,align:!1});return wt(e,{width:r.width,height:r.height}),e.removeChild(o),ta(e.childNodes,i),this.surface&&this.surface.resize(),r},e.prototype._surfaceWrap=function(){if(!this.stage){var t=this.stage=document.createElement("span");this.element.appendChild(t)}return this.stage},e.prototype._createPlotArea=function(e){var i=t.prototype._createPlotArea.call(this,e);return this._autoWidth=this._initialWidth||this._calculateWidth(i),i},e.prototype._calculateWidth=function(t){for(var e=this.options,i=E(e.chartArea.margin),o=t.charts,r=this._surfaceWrap(),n=0,s=0;s<o.length;s++){var a=o[s],p=(a.options.series||[])[0];if(p){if(p.type===Ni)return 150;if("bullet"===p.type)return 150;if(p.type===Xi)return wt(r).height;var l=a.categoryAxis;if(l){var c=l.categoriesCount()*(!a.options.isStacked&&ct(p.type,[qi,"verticalBullet"])?a.seriesOptions.length:1);n=Math.max(n,c)}}}var h=n*e.pointWidth;return h>0&&(h+=i.left+i.right),h},e.prototype._createSharedTooltip=function(t){return new Js(this._plotArea,t)},e.normalizeOptions=function(t){var e=ea(t);return(e=_(e)?{seriesDefaults:{data:e}}:j({},e)).series||(e.series=[{data:ea(e.data)}]),j(e,{seriesDefaults:{type:e.type}}),(ct(e.series[0].type,Qs)||ct(e.seriesDefaults.type,Qs))&&(e=j({},{categoryAxis:{crosshair:{visible:!1}}},e)),e},e}(Zs);It(ia,{chartArea:{margin:2},axisDefaults:{visible:!1,majorGridLines:{visible:!1},valueAxis:{narrowRange:!0}},seriesDefaults:{type:"line",area:{line:{width:.5}},bar:{stack:!0},padding:2,width:.5,overlay:{gradient:null},highlight:{visible:!1},border:{width:0},markers:{size:2,visible:!1}},tooltip:{visible:!0,shared:!0},categoryAxis:{crosshair:{visible:!0,tooltip:{visible:!1}}},legend:{visible:!1},transitions:!1,pointWidth:5,panes:[{clip:!1}]});var oa=ia,ra=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.setup=function(){this._initialOpacity=parseFloat(V(this.element,"opacity").opacity)},e.prototype.step=function(t){V(this.element,{opacity:String(ht(this._initialOpacity,0,t))})},e.prototype.abort=function(){t.prototype.abort.call(this),V(this.element,{display:"none",opacity:String(this._initialOpacity)})},e.prototype.cancel=function(){t.prototype.abort.call(this),V(this.element,{opacity:String(this._initialOpacity)})},e}(C.drawing.Animation);function na(t,e){var i=document.createElement("div");return i.className=t,e&&(i.style.cssText=e),i}var sa=function(t){function e(e,i,o){t.call(this),this.options=j({},this.options,o),this.container=e,this.chartService=i;var r=V(e,["paddingLeft","paddingTop"]);this.chartPadding={top:r.paddingTop,left:r.paddingLeft},this.createElements(),e.appendChild(this.element)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.createElements=function(){var t=this.element=na("k-navigator-hint","display: none; position: absolute; top: 1px; left: 1px;"),e=this.tooltip=na("k-tooltip k-chart-tooltip"),i=this.scroll=na("k-scroll");e.innerHTML="&nbsp;",t.appendChild(e),t.appendChild(i)},e.prototype.show=function(t,e,i){var o=this.element,r=this.options,n=this.scroll,s=this.tooltip,a=Oe(Be(t)+Be(e-t)/2),p=.4*i.width(),l=i.center().x-p,c=(i.center().x-l)/(r.max-r.min),h=a-r.min,u=this.chartService.intl.format(r.format,t,e),d=it(r);this.clearHideTimeout(),this._visible||(V(o,{visibility:"hidden",display:"block"}),this._visible=!0),d&&(u=d({from:t,to:e})),s.innerHTML=u,V(s,{left:i.center().x-s.offsetWidth/2,top:i.y1});var f=V(s,["marginTop","borderTopWidth","height"]);V(n,{width:p,left:l+h*c,top:i.y1+f.marginTop+f.borderTopWidth+f.height/2}),V(o,{visibility:"visible"})},e.prototype.clearHideTimeout=function(){this._hideTimeout&&clearTimeout(this._hideTimeout),this._hideAnimation&&this._hideAnimation.cancel()},e.prototype.hide=function(){var t=this;this.clearHideTimeout(),this._hideTimeout=setTimeout((function(){t._visible=!1,t._hideAnimation=new ra(t.element),t._hideAnimation.setup(),t._hideAnimation.play()}),this.options.hideDelay)},e.prototype.destroy=function(){this.clearHideTimeout(),this.container&&this.container.removeChild(this.element),delete this.container,delete this.chartService,delete this.element,delete this.tooltip,delete this.scroll},e}(C.Class);It(sa,{format:"{0:d} - {1:d}",hideDelay:500});var aa=sa,pa="_navigator",la=pa;function ca(){}var ha=function(t){function e(e){var i;t.call(this),this.chart=e;var o=this.options=j({},this.options,e.options.navigator),r=o.select;r&&(r.from=this.parseDate(r.from),r.to=this.parseDate(r.to)),xt(o.hint.visible)||(o.hint.visible=o.visible),this.chartObserver=new dt(this,((i={}).drag="_drag",i.dragEnd="_dragEnd",i.zoom="_zoom",i.zoomEnd="_zoomEnd",i)),e.addObserver(this.chartObserver)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.parseDate=function(t){return Ue(this.chart.chartService.intl,t)},e.prototype.clean=function(){this.selection&&(this.selection.destroy(),this.selection=null),this.hint&&(this.hint.destroy(),this.hint=null)},e.prototype.destroy=function(){this.chart&&(this.chart.removeObserver(this.chartObserver),delete this.chart),this.clean()},e.prototype.redraw=function(){this._redrawSelf(),this.initSelection()},e.prototype.initSelection=function(){var t,e=this.chart,i=this.options,o=this.mainAxis(),r=o.roundedRange(),n=r.min,s=r.max,a=i.select,p=a.from,l=a.to,c=a.mousewheel,h=(t=o,ca.prototype=t,new ca);0!==o.categoriesCount()&&(this.clean(),h.box=o.box,this.selection=new In(e,h,{min:n,max:s,from:p||n,to:l||s,mousewheel:Tt(c,{zoom:"left"}),visible:i.visible},new dt(this,{selectStart:"_selectStart",select:"_select",selectEnd:"_selectEnd"})),i.hint.visible&&(this.hint=new aa(e.element,e.chartService,{min:n,max:s,template:it(i.hint),format:i.hint.format})))},e.prototype.setRange=function(){var t=this.chart._createPlotArea(!0).namedCategoryAxes[la].roundedRange(),e=t.min,i=t.max,o=this.options.select||{},r=o.from||e;r<e&&(r=e);var n=o.to||i;n>i&&(n=i),this.options.select=j({},o,{from:r,to:n}),this.filterAxes()},e.prototype._redrawSelf=function(t){var e=this.chart._plotArea;e&&e.redraw(St(e.panes),t)},e.prototype.redrawSlaves=function(){var t=this.chart,e=t._plotArea,i=e.panes.slice(0,-1);e.srcSeries=t.options.series,e.options.categoryAxis=t.options.categoryAxis,e.clearSeriesPointsCache(),e.redraw(i)},e.prototype._drag=function(t){var e,i=this.chart,o=this.selection,r=i._eventCoordinates(t.originalEvent),n=this.mainAxis(),s=n.roundedRange(),a=n.pane.box.containsPoint(r),p=i._plotArea.categoryAxis,l=t.axisRanges[p.options.name],c=this.options.select;if(l&&!a&&o){e=c.from&&c.to?Be(c.to)-Be(c.from):Be(o.options.to)-Be(o.options.from);var h=Oe(kt(Be(l.min),s.min,Be(s.max)-e)),u=Oe(kt(Be(h)+e,Be(s.min)+e,s.max));this.options.select={from:h,to:u},this.options.liveDrag&&(this.filterAxes(),this.redrawSlaves()),o.set(h,u),this.showHint(h,u)}},e.prototype._dragEnd=function(){this.filterAxes(),this.filter(),this.redrawSlaves(),this.hint&&this.hint.hide()},e.prototype.readSelection=function(){var t=this.selection.options,e=t.from,i=t.to,o=this.options.select;o.from=e,o.to=i},e.prototype.filterAxes=function(){var t=this.options.select;void 0===t&&(t={});for(var e=this.chart.options.categoryAxis,i=t.from,o=t.to,r=0;r<e.length;r++){var n=e[r];n.pane!==pa&&(n.min=i,n.max=o)}},e.prototype.filter=function(){var t=this.chart,e=this.options.select;if(t.requiresHandlers(["navigatorFilter"])){var i=this.mainAxis(),o={from:e.from,to:e.to};if("category"!==i.options.type){var r=new ti(j({baseUnit:"fit"},t.options.categoryAxis[0],{categories:[e.from,e.to]}),t.chartService).options;o.from=Te(r.min,-r.baseUnitStep,r.baseUnit),o.to=Te(r.max,r.baseUnitStep,r.baseUnit)}this.chart.trigger("navigatorFilter",o)}},e.prototype._zoom=function(t){var e=this.chart._plotArea.categoryAxis,i=this.selection,o=this.options,r=o.select,n=o.liveDrag,s=this.mainAxis(),a=t.delta;if(i){var p=s.categoryIndex(i.options.from),l=s.categoryIndex(i.options.to);t.originalEvent.preventDefault(),Math.abs(a)>1&&(a*=3),l-p>1?(i.expand(a),this.readSelection()):(e.options.min=r.from,r.from=e.scaleRange(-t.delta).min),n&&(this.filterAxes(),this.redrawSlaves()),i.set(r.from,r.to),this.showHint(this.options.select.from,this.options.select.to)}},e.prototype._zoomEnd=function(t){this._dragEnd(t)},e.prototype.showHint=function(t,e){var i=this.chart._plotArea;this.hint&&this.hint.show(t,e,i.backgroundBox())},e.prototype._selectStart=function(t){return this.chart._selectStart(t)},e.prototype._select=function(t){return this.showHint(t.from,t.to),this.chart._select(t)},e.prototype._selectEnd=function(t){return this.hint&&this.hint.hide(),this.readSelection(),this.filterAxes(),this.filter(),this.redrawSlaves(),this.chart._selectEnd(t)},e.prototype.mainAxis=function(){var t=this.chart._plotArea;if(t)return t.namedCategoryAxes[la]},e.prototype.select=function(t,e){var i=this.options.select;return t&&e&&(i.from=this.parseDate(t),i.to=this.parseDate(e),this.filterAxes(),this.filter(),this.redrawSlaves(),this.selection.set(t,e)),{from:i.from,to:i.to}},e.setup=function(t,i){if(void 0===t&&(t={}),void 0===i&&(i={}),!t.__navi){t.__navi=!0;var o=j({},i.navigator,t.navigator),r=t.panes=[].concat(t.panes),n=j({},o.pane,{name:pa});o.visible||(n.visible=!1,n.height=.1),r.push(n),e.attachAxes(t,o),e.attachSeries(t,o,i)}},e.attachAxes=function(t,e){var i=e.series||[],o=t.categoryAxis=[].concat(t.categoryAxis),r=t.valueAxis=[].concat(t.valueAxis),n=0===kr(i,Wi).length,s=j({type:"date",pane:pa,roundToBaseUnit:!n,justified:n,_collapse:!1,majorTicks:{visible:!0},tooltip:{visible:!1},labels:{step:1},autoBind:e.autoBindElements,autoBaseUnitSteps:{minutes:[1],hours:[1,2],days:[1,2],weeks:[],months:[1],years:[1]}}),a=e.categoryAxis;o.push(j({},s,{maxDateGroups:200},a,{name:la,title:null,baseUnit:"fit",baseUnitStep:"auto",labels:{visible:!1},majorTicks:{visible:!1}}),j({},s,a,{name:la+"_labels",maxDateGroups:20,baseUnitStep:"auto",labels:{position:""},plotBands:[],autoBaseUnitSteps:{minutes:[]},_overlap:!0}),j({},s,a,{name:la+"_ticks",maxDateGroups:200,majorTicks:{width:.5},plotBands:[],title:null,labels:{visible:!1,mirror:!0},_overlap:!0})),r.push(j({name:la,pane:pa,majorGridLines:{visible:!1},visible:!1},e.valueAxis))},e.attachSeries=function(t,e,i){for(var o=t.series=t.series||[],r=[].concat(e.series||[]),n=i.seriesColors,s=e.seriesDefaults,a=0;a<r.length;a++)o.push(j({color:n[a%n.length],categoryField:e.dateField,visibleInLegend:!1,tooltip:{visible:!1}},s,r[a],{axis:la,categoryAxis:la,autoBind:e.autoBindElements}))},e}(C.Class),ua=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.applyDefaults=function(e,i){var o=wt(this.element).width||600,r=i,n={seriesDefaults:{categoryField:e.dateField},axisDefaults:{categoryAxis:{name:"default",majorGridLines:{visible:!1},labels:{step:2},majorTicks:{visible:!1},maxDateGroups:Math.floor(o/28)}}};r&&(r=j({},r,n)),ha.setup(e,r),t.prototype.applyDefaults.call(this,e,r)},e.prototype._setElementClass=function(t){b(t,"k-chart k-stockchart")},e.prototype.setOptions=function(e){this.destroyNavigator(),t.prototype.setOptions.call(this,e)},e.prototype.noTransitionsRedraw=function(){var t=this.options.transitions;this.options.transitions=!1,this._fullRedraw(),this.options.transitions=t},e.prototype._resize=function(){this.noTransitionsRedraw()},e.prototype._redraw=function(){var t=this.navigator;!this._dirty()&&t&&t.options.partialRedraw?t.redrawSlaves():this._fullRedraw()},e.prototype._dirty=function(){var t=this.options,e=st([].concat(t.series,t.navigator.series),(function(t){return t&&t.visible})).length,i=this._seriesCount!==e;return this._seriesCount=e,i},e.prototype._fullRedraw=function(){var e=this.navigator;e||(e=this.navigator=new ha(this),this.trigger("navigatorCreated",{navigator:e})),e.clean(),e.setRange(),t.prototype._redraw.call(this),e.initSelection()},e.prototype._trackSharedTooltip=function(e){var i=this._plotArea.paneByPoint(e);i&&i.options.name===pa?this._unsetActivePoint():t.prototype._trackSharedTooltip.call(this,e)},e.prototype.bindCategories=function(){t.prototype.bindCategories.call(this),this.copyNavigatorCategories()},e.prototype.copyNavigatorCategories=function(){for(var t,e=[].concat(this.options.categoryAxis),i=0;i<e.length;i++){var o=e[i];o.name===la?t=o.categories:t&&o.pane===pa&&(o.categories=t)}},e.prototype.destroyNavigator=function(){this.navigator&&(this.navigator.destroy(),this.navigator=null)},e.prototype.destroy=function(){this.destroyNavigator(),t.prototype.destroy.call(this)},e.prototype._stopChartHandlers=function(e){var i=this._eventCoordinates(e),o=this._plotArea.paneByPoint(i);return t.prototype._stopChartHandlers.call(this,e)||o&&o.options.name===pa},e.prototype._toggleDragZoomEvents=function(){this._dragZoomEnabled||(this.element.style.touchAction="none",this._dragZoomEnabled=!0)},e}(Zs);It(ua,{dateField:"date",axisDefaults:{categoryAxis:{type:"date",baseUnit:"fit",justified:!0},valueAxis:{narrowRange:!0,labels:{format:"C"}}},navigator:{select:{},seriesDefaults:{markers:{visible:!1},tooltip:{visible:!0},line:{width:2}},hint:{},visible:!0},tooltip:{visible:!0},legend:{visible:!1}});var da=ua,fa=Math.PI/180;function ga(t,e){var i=t.getOrigin(),o=t.getSize(),r=E(e);return t.setOrigin([i.x-r.left,i.y-r.top]),t.setSize([o.width+(r.left+r.right),o.height+(r.top+r.bottom)]),t}var ya=C.drawing.Group,va=C.drawing.Path,ma=C.drawing.Text;function xa(t,e){var i=t.box,o=t.children[0].box,r=e.border||{},n=e.background||"",s=va.fromRect(new C.geometry.Rect([i.x1,i.y1],[i.width(),i.height()]),{stroke:{}}),a=new ma(t.text,new C.geometry.Point(o.x1,o.y1),{font:e.font,fill:{color:e.color}}),p=ga(a.bbox().clone(),e.padding),l=va.fromRect(p,{stroke:{color:r.width?r.color:"",width:r.width,opacity:r.opacity,dashType:r.dashType,lineJoin:"round",lineCap:"round"},fill:{color:n}}),c=new ya;return c.append(s),c.append(l),c.append(a),c}function _a(t,e,i){var o=xt(t.from)?t.from:d,r=xt(t.to)?t.to:u;return t.from=Math.max(Math.min(r,o),e),t.to=Math.min(Math.max(r,o),i),t}function ba(t,e){var i=E(e);return i.left=-i.left,i.top=-i.top,i.right=-i.right,i.bottom=-i.bottom,ga(t,i)}var wa=C.drawing.Path,Aa=C.drawing.Surface,Ca=function(t){function e(e,i,o,r){void 0===r&&(r={}),t.call(this),this.element=e,this.theme=o,this.contextService=new Z(this,r),this._originalOptions=j({},this.options,i),this.options=j({},this._originalOptions),this._initTheme(o),this.redraw()}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.destroy=function(){this.surface&&(this.surface.destroy(),this.surface=null),delete this.element,delete this.surfaceElement},e.prototype.value=function(t){var e=this.pointers[0];if(0===arguments.length)return e.value();e.value(t),this._setValueOptions(t)},e.prototype._draw=function(){var t=this.surface;t.clear(),t.draw(this._visuals)},e.prototype.exportVisual=function(){return this._visuals},e.prototype.allValues=function(t){var e=this.pointers,i=[];if(0===arguments.length){for(var o=0;o<e.length;o++)i.push(e[o].value());return i}if(_(t))for(var r=0;r<t.length;r++)P(t[r])&&e[r].value(t[r]);this._setValueOptions(t)},e.prototype._setValueOptions=function(t){for(var e=[].concat(this.options.pointer),i=[].concat(t),o=0;o<i.length;o++)e[o].value=i[o]},e.prototype.resize=function(){this.noTransitionsRedraw()},e.prototype.noTransitionsRedraw=function(){var t=this.options.transitions;this._toggleTransitions(!1),this.redraw(),this._toggleTransitions(t)},e.prototype.redraw=function(){var t=this._surfaceSize(),e=new C.geometry.Rect([0,0],[t.width,t.height]);this._initSurface(),this.gaugeArea=this._createGaugeArea(),this._createModel();var i=ba(e.bbox(),this._gaugeAreaMargin);this.reflow(i)},e.prototype.setOptions=function(t,e){this._originalOptions=j(this._originalOptions,t),this.options=j({},this._originalOptions),this._initTheme(e),this.redraw()},e.prototype.setDirection=function(t){this.contextService.rtl=Boolean(t),this.surface&&"svg"===this.surface.type&&(this.surface.destroy(),this.surface=null)},e.prototype.setIntlService=function(t){this.contextService.intl=t},e.prototype._initTheme=function(t){var e=t||this.theme||{};this.theme=e,this.options=j({},e,this.options);var i=this.options,o=i.pointer;if(_(o)){for(var r=[],n=0;n<o.length;n++)r.push(j({},e.pointer,o[n]));i.pointer=r}},e.prototype._createGaugeArea=function(){var t=this.options.gaugeArea,e=this.surface.size(),i=t.border||{},o=new C.geometry.Rect([0,0],[e.width,e.height]);return this._gaugeAreaMargin=t.margin||5,i.width>0&&(o=ba(o,i.width)),wa.fromRect(o,{stroke:{color:i.width?i.color:"",width:i.width,dashType:i.dashType,lineJoin:"round",lineCap:"round"},fill:{color:t.background}})},e.prototype._initSurface=function(){var t=this.options,e=this.surface,i=this._surfaceElement(),o=this._surfaceSize();wt(i,o),e&&e.options.type===t.renderAs?(this.surface.clear(),this.surface.resize()):(e&&e.destroy(),this.surface=Aa.create(i,{type:t.renderAs}))},e.prototype._surfaceSize=function(){var t=this.options,e=this._getSize();return t.gaugeArea&&j(e,t.gaugeArea),e},e.prototype._surfaceElement=function(){return this.surfaceElement||(this.surfaceElement=document.createElement("div"),this.element.appendChild(this.surfaceElement)),this.surfaceElement},e.prototype.getSize=function(){return this._getSize()},e.prototype._getSize=function(){var t=this.element,e=this._defaultSize(),i=t.offsetWidth,o=t.offsetHeight;return i||(i=e.width),o||(o=e.height),{width:i,height:o}},e.prototype._defaultSize=function(){return{width:200,height:200}},e.prototype._toggleTransitions=function(t){this.options.transitions=t;for(var e=0;e<this.pointers.length;e++)this.pointers[e].options.animation.transitions=t},e}(C.Class);It(Ca,{plotArea:{},theme:"default",renderAs:"",pointer:{},scale:{},gaugeArea:{}});var Sa=Ca,ka=C.drawing.Path,Pa=C.drawing.Group,Ra=C.geometry.Point;function Oa(t,e){var i,o,r=t.position,n=t.tickX,s=t.tickY;return t.vertical?(i=new Ra(n,r),o=new Ra(n+e.size,r)):(i=new Ra(r,s),o=new Ra(r,s+e.size)),new ka({stroke:{color:e.color,width:e.width}}).moveTo(i).lineTo(o)}function Ma(t,e,i,o){var r=e.length;if(o.visible)for(var n=i.mirror,s=i.lineBox,a=o.skip;a<r;a+=o.step)a%o.skipUnit!=0&&(i.tickX=n?s.x2:s.x2-o.size,i.tickY=n?s.y1-o.size:s.y1,i.position=e[a],t.append(Oa(i,o)))}var Ta=function(t){function e(e,i){var o=e||{};!xt(o.reverse)&&!1===o.vertical&&(i||{}).rtl&&(o=Object.assign({},o,{reverse:!0})),t.call(this,0,1,o,i),this.options.minorUnit=this.options.minorUnit||this.options.majorUnit/10}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.initUserOptions=function(t){var e=j({},this.options,t);return(e=j({},e,{labels:{mirror:e.mirror}})).majorUnit=e.majorUnit||Ut(e.min,e.max),e},e.prototype.initFields=function(){},e.prototype.render=function(){var t=this.elements=new Pa,e=this.renderLabels(),i=this.renderLine(),o=this.renderTicks(),r=this.renderRanges();return t.append(i,e,o,r),t},e.prototype.renderRanges=function(){for(var t=this.options,e=t.min,i=t.max,o=t.vertical,r=t.labels.mirror,n=t.ranges||[],s=new Pa,a=n.length,p=t.rangeSize||t.minorTicks.size/2,l=0;l<a;l++){var c=_a(n[l],e,i),h=this.getSlot(c.from,c.to),u=o?this.lineBox():h,d=o?h:this.lineBox();o?u.x1-=p*(r?-1:1):d.y2+=p*(r?-1:1),s.append(ka.fromRect(new C.geometry.Rect([u.x1,d.y1],[u.x2-u.x1,d.y2-d.y1]),{fill:{color:c.color,opacity:c.opacity},stroke:{}}))}return s},e.prototype.renderLabels=function(){for(var t=this.labels,e=this.options,i=new Pa,o=0;o<t.length;o++)i.append(xa(t[o],e.labels));return i},e.prototype.renderLine=function(){var t=this.options.line,e=this.lineBox(),i=new Pa;if(t.width>0&&t.visible){var o=new ka({stroke:{color:t.color,dashType:t.dashType,width:t.width}});o.moveTo(e.x1,e.y1).lineTo(e.x2,e.y2),i.append(o)}return i},e.prototype.renderTicks=function(){var t=new Pa,e=this.options,i=e.majorTicks.visible?e.majorUnit:0,o={vertical:e.vertical,mirror:e.labels.mirror,lineBox:this.lineBox()};return Ma(t,this.getMajorTickPositions(),o,e.majorTicks),Ma(t,this.getMinorTickPositions(),o,j({},{skipUnit:i/e.minorUnit},e.minorTicks)),t},e}(ai);It(Ta,{min:0,max:50,majorTicks:{size:15,align:"inside",color:n,width:.5,visible:!0},minorTicks:{size:10,align:"inside",color:n,width:.5,visible:!0},line:{width:.5},labels:{position:"inside",padding:2},mirror:!1,_alignLines:!1});var ja=Ta,La=function(t){function e(e,i){t.call(this);var o=e.options,r=o.min,n=o.max,s=this.options=j({},this.options,i);s.fill=s.color,this.scale=e,xt(s.value)?s.value=kt(s.value,r,n):s.value=r}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.value=function(t){var e=this.options,i=e.value;if(0===arguments.length)return i;var o=this.scale.options,r=o.min,n=o.max;e._oldValue=xt(e._oldValue)?e.value:r,e.value=kt(t,r,n),this.elements&&this.repaint()},e}(C.Class);It(La,{color:n});var Ia=La,za=function(t){function e(e,i){t.call(this,e,i),this.options=j({track:{visible:xt(i.track)}},this.options)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.reflow=function(){var t,e,i,o=this.options,r=this.scale,n=r.options,s=n.mirror,a=n.vertical,p=r.lineBox(),l=o.track.size||o.size,c=o.size/2,h=E(o.margin),u=a?h[s?"left":"right"]:h[s?"bottom":"top"];u=s?-u:u,a?(i=new Nt(p.x1+u,p.y1,p.x1+u,p.y2),s?i.x1-=l:i.x2+=l,"barPointer"!==o.shape&&(t=e=new Nt(p.x2+u,p.y1-c,p.x2+u,p.y2+c))):(i=new Nt(p.x1,p.y1-u,p.x2,p.y1-u),s?i.y2+=l:i.y1-=l,"barPointer"!==o.shape&&(t=e=new Nt(p.x1-c,p.y1-u,p.x2+c,p.y1-u))),this.trackBox=i,this.pointerRangeBox=e,this.box=t||i.clone().pad(o.border.width)},e.prototype.getElementOptions=function(){var t=this.options;return{fill:{color:t.color,opacity:t.opacity},stroke:xt(t.border)?{color:t.border.width?t.border.color||t.color:"",width:t.border.width,dashType:t.border.dashType,opacity:t.opacity}:null}},e.prototype._margin=function(){var t=this.scale,e=this.options,i=t.options,o=i.mirror,r=i.vertical,n=E(e.margin);return r?n[o?"left":"right"]:n[o?"bottom":"top"]},e}(Ia);It(za,{shape:"barPointer",track:{border:{width:1}},color:n,border:{width:1},opacity:1,margin:E(3),animation:{type:"barPointer"},visible:!0});var Ba=za,Va=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.setup=function(){var t=this.options,e=t.margin,i=t.from,o=t.to,r=t.vertical,n=r?"x1":"y1";t.mirror===r?(i[n]-=e,o[n]-=e):(i[n]+=e,o[n]+=e);var s=this.fromScale=new C.geometry.Point(i.x1,i.y1),a=this.toScale=new C.geometry.Point(o.x1,o.y1);0!==t.duration&&(t.duration=Math.max(s.distanceTo(a)/t.duration*1e3,1))},e.prototype.step=function(t){var e=ht(this.fromScale.x,this.toScale.x,t),i=ht(this.fromScale.y,this.toScale.y,t);this.element.transform(C.geometry.transform().translate(e,i))},e}(C.drawing.Animation);It(Va,{easing:"linear",duration:250}),C.drawing.AnimationFactory.current.register("arrowPointer",Va);var Ea=Va,Da=C.geometry.Point,Ga=C.drawing.Path,Ua=function(t){function e(e,i){t.call(this,e,i),xt(this.options.size)||(this.options.size=.6*this.scale.options.majorTicks.size)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.pointerShape=function(){var t=this.scale,e=this.options.size,i=e/2,o=t.options.mirror?-1:1;return t.options.vertical?[new Da(0,0-i),new Da(0-o*e,0),new Da(0,0+i)]:[new Da(0-i,0),new Da(0,0+o*e),new Da(0+i,0)]},e.prototype.repaint=function(){var t=this.scale,e=this.options,i=new Ea(this.elements,j(e.animation,{vertical:t.options.vertical,mirror:t.options.mirror,margin:this._margin(e.margin),from:t.getSlot(e._oldValue),to:t.getSlot(e.value)}));!1===e.animation.transitions&&(i.options.duration=0),i.setup(),i.play()},e.prototype.render=function(){var t=this.scale,e=this.options,i=this.getElementOptions(),o=this.pointerShape(e.value);e.animation.type="arrowPointer";var r=new Ga({stroke:i.stroke,fill:i.fill}).moveTo(o[0]).lineTo(o[1]).lineTo(o[2]).close(),n=t.getSlot(e.value);return r.transform(C.geometry.transform().translate(n.x1,n.y1)),this.elements=r,r},e}(Ba),Fa=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.setup=function(){var t=this.options,e=this.axis=t.vertical?x:m,i=this.to=t.newPoints[0][e],o=this.from=t.oldPoints[0][e];0!==t.duration&&(t.duration=Math.max(Math.abs(i-o)/t.speed*1e3,1)),this._set(o)},e.prototype.step=function(t){var e=ht(this.from,this.to,t);this._set(e)},e.prototype._set=function(t){var e="set"+this.axis.toUpperCase(),i=this.options.newPoints;i[0][e](t),i[1][e](t)},e}(C.drawing.Animation);It(Fa,{easing:"linear",speed:250}),C.drawing.AnimationFactory.current.register("barPointer",Fa);var Ha=Fa,Na=C.drawing.Group,qa=C.drawing.Path,Ka=function(t){function e(e,i){t.call(this,e,i),xt(this.options.size)||(this.options.size=.3*this.scale.options.majorTicks.size)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.pointerShape=function(t){var e=this.scale,i=this.options,o=e.options,r=o.mirror,n=o.vertical,s=r===n?-1:1,a=i.size*s,p=e.getSlot(e.options.min),l=e.getSlot(t),c=n?x:m,h=n?m:x,u=this._margin()*s,d=new C.geometry.Point;d[c]=p[c+"1"],d[h]=p[h+"1"];var f=new C.geometry.Point;f[c]=l[c+"1"],f[h]=l[h+"1"],n?(d.translate(u,0),f.translate(u,0)):(d.translate(0,u),f.translate(0,u));var g=f.clone(),y=d.clone();return n?(g.translate(a,0),y.translate(a,0)):(g.translate(0,a),y.translate(0,a)),[d,f,g,y]},e.prototype.repaint=function(){var t=this.scale,e=this.options,i=this.pointerShape(e.value),o=this.pointerPath,r=this.pointerShape(e._oldValue);o.moveTo(i[0]).lineTo(i[1]).lineTo(i[2]).lineTo(i[3]).close();var n=new Ha(o,j(e.animation,{reverse:t.options.reverse,vertical:t.options.vertical,oldPoints:[r[1],r[2]],newPoints:[i[1],i[2]]}));!1===e.animation.transitions&&(n.options.duration=0),n.setup(),n.play()},e.prototype.render=function(){var t=new Na,e=this.getElementOptions();this.options.track.visible&&t.append(this.renderTrack());var i=this.pointerPath=new qa({stroke:e.stroke,fill:e.fill});return t.append(i),this.elements=t,t},e.prototype.renderTrack=function(){var t=this.options.track,e=t.border||{},i=this.trackBox.clone().pad(e.width||0);return new qa.fromRect(i.toRect(),{fill:{color:t.color,opacity:t.opacity},stroke:{color:e.width?e.color||t.color:"",width:e.width,dashType:e.dashType}})},e}(Ba),Xa=C.drawing.Group,Ya=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.reflow=function(t){var e=this.pointers,i=t.origin.x,o=t.origin.y,r=new Nt(i,o,i+t.width(),o+t.height());this.scale.reflow(r),this._shrinkScaleWidth(r);for(var n=0;n<e.length;n++)e[n].reflow();this.bbox=this._getBox(r),this._alignElements(),this._shrinkElements(),this._buildVisual(),this._draw()},e.prototype._buildVisual=function(){var t=new Xa,e=this.scale.render(),i=this.pointers;t.append(this.gaugeArea),t.append(e);for(var o=0;o<i.length;o++){var r=i[o];t.append(r.render()),r.value(r.options.value)}this._visuals=t},e.prototype._createModel=function(){var t=this.options,e=this.scale=new ja(t.scale,this.contextService);this.pointers=[];var i=t.pointer;i=_(i)?i:[i];for(var o=0;o<i.length;o++){var r=j({},i[o],{animation:{transitions:t.transitions}}),n="arrow"===r.shape?Ua:Ka;this.pointers.push(new n(e,r))}},e.prototype._defaultSize=function(){var t=this.options.scale.vertical;return{width:t?60:200,height:t?200:60}},e.prototype._getBox=function(t){for(var e,i=this.scale,o=this.pointers,r=t.center(),n=o[0].box.clone().wrap(i.box),s=0;s<o.length;s++)n.wrap(o[s].box.clone());return i.options.vertical?(e=n.width()/2,n=new Nt(r.x-e,t.y1,r.x+e,t.y2)):(e=n.height()/2,n=new Nt(t.x1,r.y-e,t.x2,r.y+e)),n},e.prototype._alignElements=function(){for(var t,e=this.scale,i=this.pointers,o=e.box,r=i[0].box.clone().wrap(e.box),n=this.bbox,s=0;s<i.length;s++)r.wrap(i[s].box.clone());e.options.vertical?(t=n.center().x-r.center().x,e.reflow(new Nt(o.x1+t,n.y1,o.x2+t,n.y2))):(t=n.center().y-r.center().y,e.reflow(new Nt(o.x1,o.y1+t,o.x2,o.y2+t)));for(var a=0;a<i.length;a++)i[a].reflow(this.bbox)},e.prototype._shrinkScaleWidth=function(t){var e=this.scale;if(!e.options.vertical){var i=e.contentBox().width()-t.width();i>0&&(e.box.shrink(i,0),e.box.alignTo(t,"center"),e.reflow(e.box))}},e.prototype._shrinkElements=function(){for(var t=this.scale,e=this.pointers,i=t.box.clone(),o=t.options.vertical?"y":"x",r=e[0].box,n=0;n<e.length;n++)r.wrap(e[n].box.clone());i[o+1]+=Math.max(i[o+1]-r[o+1],0),i[o+2]-=Math.max(r[o+2]-i[o+2],0),t.reflow(i);for(var s=0;s<e.length;s++)e[s].reflow(this.bbox)},e}(Sa);It(Ya,{transitions:!0,gaugeArea:{background:""},scale:{vertical:!0}});var Wa=Ya,Za=C.drawing.Arc,Ja=C.drawing.Path,Qa=C.drawing.Group;function $a(t,e,i,o){var r=new Qa,n=t.center,s=t.getRadiusX();if(o.visible)for(var a=0;a<e.length;a++){var p=t.pointAt(e[a]),l=new C.geometry.Point(n.x+s-o.size,n.y).rotate(e[a],n);r.append(new Ja({stroke:{color:o.color,width:o.width}}).moveTo(p).lineTo(l))}return r}function tp(t,e,i,o){return{from:t,to:e,color:i,opacity:o}}var ep=function(t){function e(e,i){t.call(this,0,1,e,i)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.initUserOptions=function(t){var e=j({},this.options,t);return e.majorUnit=e.majorUnit||Ut(e.min,e.max),e.minorUnit=e.minorUnit||e.majorUnit/10,e},e.prototype.initFields=function(){},e.prototype.render=function(t,e){var i=this.renderArc(t,e);this.bbox=i.bbox(),this.labelElements=this.renderLabels(),this.ticks=this.renderTicks(),this.ranges=this.renderRanges()},e.prototype.reflow=function(t){var e=t.center(),i=Math.min(t.height(),t.width())/2;if(!xt(this.bbox))return this.render(e,i);this.bbox=this.arc.bbox(),this.radius(this.arc.getRadiusX()),this.repositionRanges(),this.renderLabels()},e.prototype.slotAngle=function(t){var e=this.options,i=e.min,o=e.max,r=e.reverse,n=e.startAngle,s=e.endAngle,a=s-n;return(r?s-(t-i)/(o-i)*a:(t-i)/(o-i)*a+n)+180},e.prototype.hasRanges=function(){var t=this.options.ranges;return t&&t.length},e.prototype.ticksSize=function(){var t=this.options,e=t.majorTicks,i=t.minorTicks,o=0;return e.visible&&(o=e.size),i.visible&&(o=Math.max(i.size,o)),o},e.prototype.labelsCount=function(){var e=t.prototype.labelsCount.call(this),i=this.options;return i.endAngle-i.startAngle>=360&&i.max%i.majorUnit==0&&(e-=1),e},e.prototype.renderLabels=function(){var t=this.options,e=this.arc.clone(),i=e.getRadiusX(),o=this.tickAngles(e,t.majorUnit),r=t.rangeSize=t.rangeSize||.1*i,n=new Qa,s=.05*i;xt(t.rangeDistance)?s=t.rangeDistance:t.rangeDistance=s;var a=t.labels,p="inside"===a.position,l=xt(this.labelElements);p&&(i-=this.ticksSize(),this.hasRanges()&&!l&&(i-=r+s),e.setRadiusX(i).setRadiusY(i));for(var c=this.labels,h=c.length,u=E(a.padding),d=(u.left+u.right)/2,f=(u.top+u.bottom)/2,g=0;g<h;g++){var y=c[g],v=y.box.width()/2,m=y.box.height()/2,x=o[g],_=(x-180)*fa,b=e.pointAt(x),w=b.x+Math.cos(_)*(v+d)*(p?1:-1),A=b.y+Math.sin(_)*(m+f)*(p?1:-1);y.reflow(new Nt(w-v,A-m,w+v,A+m));var S=new C.geometry.Point(y.box.x1,y.box.y1),k=void 0;if(l){var P=(k=this.labelElements.children[g]).bbox().origin,R=k.transform()||C.geometry.transform();R.translate(S.x-P.x,S.y-P.y),k.transform(R)}else k=xa(y,t.labels),n.append(k);this.bbox=C.geometry.Rect.union(this.bbox,k.bbox())}return n},e.prototype.repositionRanges=function(){var t=this.ranges.children;if(t.length>0){var e=this.options,i=e.rangeDistance,o=e.rangeSize,r=this.getRangeRadius();"inside"===this.options.labels.position&&(r+=o+i);for(var n=r+o/2,s=0;s<t.length;s++)t[s]._geometry.setRadiusX(n).setRadiusY(n);this.bbox=C.geometry.Rect.union(this.bbox,this.ranges.bbox())}},e.prototype.renderRanges=function(){var t=this.rangeSegments(),e=t.length,i=new Qa;if(e){var o=this.options,r=o.rangeSize,n=o.reverse,s=o.rangeDistance,a=this.getRangeRadius();this.radius(this.radius()-r-s);for(var p=0;p<e;p++){var l=t[p],c=this.slotAngle(l[n?"to":"from"]),h=this.slotAngle(l[n?"from":"to"]);h-c!=0&&i.append(this.createRange(c,h,a,l))}}return i},e.prototype.createRange=function(t,e,i,o){var r=this.options.rangeSize,n=new C.geometry.Arc(this.arc.center,{radiusX:i+r/2,radiusY:i+r/2,startAngle:t,endAngle:e});return new Za(n,{stroke:{width:r,color:o.color,opacity:o.opacity,lineCap:o.lineCap}})},e.prototype.rangeSegments=function(){var t=this.options,e=t.ranges||[],i=e.length,o=[];if(i){var r=t.min,n=t.max,s=t.rangePlaceholderColor;o.push(tp(r,n,s));for(var a=0;a<i;a++)for(var p=_a(e[a],r,n),l=o.length,c=0;c<l;c++){var h=o[c];if(h.from<=p.from&&p.from<=h.to){o.push(tp(p.from,p.to,p.color,p.opacity)),h.from<=p.to&&p.to<=h.to&&o.push(tp(p.to,h.to,s,p.opacity)),h.to=p.from;break}}}return o},e.prototype.getRangeRadius=function(){var t=this.arc,e=this.options,i=e.rangeSize,o=e.rangeDistance,r=e.majorTicks.size;return"outside"===e.labels.position?t.getRadiusX()-r-o-i:t.getRadiusX()-i},e.prototype.renderArc=function(t,e){var i=this.options;return this.arc=new C.geometry.Arc(t,{radiusX:e,radiusY:e,startAngle:i.startAngle+180,endAngle:i.endAngle+180})},e.prototype.renderTicks=function(){var t=this.arc,e=this.options,i=t.clone();this.majorTickAngles=this.tickAngles(t,e.majorUnit),this.majorTicks=$a(i,this.majorTickAngles,e.majorUnit,e.majorTicks);var o=new Qa;o.append(this.majorTicks);var r=e.majorTicks.size,n=e.minorTicks.size;if(this._tickDifference=r-n,"outside"===e.labels.position){var s=i.getRadiusX();i.setRadiusX(s-r+n).setRadiusY(s-r+n)}return this.minorTickAngles=this.normalizeTickAngles(this.tickAngles(t,e.minorUnit)),this.minorTicks=$a(i,this.minorTickAngles,e.minorUnit,e.minorTicks),o.append(this.minorTicks),o},e.prototype.normalizeTickAngles=function(t){for(var e=this.options,i=e.majorUnit/e.minorUnit,o=t.length-1;o>=0;o--)o%i==0&&t.splice(o,1);return t},e.prototype.tickAngles=function(t,e){var i=this.options,o=i.reverse,r=i.max-i.min,n=t.endAngle-t.startAngle,s=r/e,a=t.startAngle,p=n/s;o&&(a+=n,p=-p),n>=360&&i.max%e==0&&(s-=1);for(var l=[],c=0;c<s;c++)l.push(Ot(a,3)),a+=p;return Ot(a)<=t.endAngle&&l.push(a),l},e.prototype.radius=function(t){if(!t)return this.arc.getRadiusX();this.arc.setRadiusX(t).setRadiusY(t),this.repositionTicks(this.majorTicks.children,this.majorTickAngles),this.repositionTicks(this.minorTicks.children,this.minorTickAngles,!0)},e.prototype.repositionTicks=function(t,e,i){var o=i&&this._tickDifference||0,r=this.arc,n=r.getRadiusX();i&&"outside"===this.options.labels.position&&0!==o&&(r=this.arc.clone()).setRadiusX(n-o).setRadiusY(n-o);for(var s=0;s<t.length;s++){var a=r.pointAt(e[s]),p=t[s].segments,l=a.x-p[0].anchor().x,c=a.y-p[0].anchor().y;t[s].transform((new C.geometry.transform).translate(l,c))}},e}(ai);It(ep,{min:0,max:100,majorTicks:{size:15,align:"inside",color:n,width:.5,visible:!0},minorTicks:{size:10,align:"inside",color:n,width:.5,visible:!0},startAngle:-30,endAngle:210,labels:{position:"inside",padding:2}});var ip=ep,op=function(t){function e(e,i){t.call(this,e,i);var o=this.options;o.duration=Math.max(Math.abs(o.newAngle-o.oldAngle)/o.duration*1e3,1)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.step=function(t){var e=this.options,i=ht(e.oldAngle,e.newAngle,t);this.element.transform(C.geometry.transform().rotate(i,e.center))},e}(C.drawing.Animation);It(op,{easing:"linear",duration:150}),C.drawing.AnimationFactory.current.register("radialPointer",op);var rp=op,np=C.drawing.Circle,sp=C.drawing.Group,ap=C.drawing.Path,pp=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.setAngle=function(t){this.elements.transform(C.geometry.transform().rotate(t,this.center))},e.prototype.repaint=function(){var t=this.scale,e=this.options,i=t.slotAngle(e._oldValue),o=t.slotAngle(e.value);!1===e.animation.transitions?this.setAngle(o):new rp(this.elements,j(e.animation,{oldAngle:i,newAngle:o})).play()},e.prototype.render=function(){var t=this.scale,e=this.options,i=new sp;return!1!==e.animation&&j(e.animation,{startAngle:0,center:t.arc.center,reverse:t.options.reverse}),i.append(this._renderNeedle(),this._renderCap()),this.elements=i,this.setAngle(fa),i},e.prototype.reflow=function(t){var e=this.center=t.center,i=kt(this.options.length||1,.1,1.5),o=this.radius=t.getRadiusX()*i,r=this.capSize=Math.round(o*this.options.cap.size);this.bbox=C.geometry.Rect.fromPoints(new C.geometry.Point(e.x-r,e.y-r),new C.geometry.Point(e.x+r,e.y+r))},e.prototype._renderNeedle=function(){var t=this.scale.options.minorTicks.size,e=this.center,i=this.options.color,o=new ap({fill:{color:i},stroke:{color:i,width:.5}});return o.moveTo(e.x+this.radius-t,e.y).lineTo(e.x,e.y-this.capSize/2).lineTo(e.x,e.y+this.capSize/2).close(),o},e.prototype._renderCap=function(){var t=this.options,e=t.cap.color||t.color,i=new C.geometry.Circle(this.center,this.capSize);return new np(i,{fill:{color:e},stroke:{color:e}})},e}(Ia);It(pp,{cap:{size:.05},arrow:{width:16,height:14},animation:{type:"radialPointer",duration:150}});var lp=pp,cp=C.drawing.Group,hp=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.reflow=function(t){var e=this.pointers;this.scale.reflow(t),this._initialPlotArea=this.scale.bbox;for(var i=0;i<e.length;i++)e[i].reflow(this.scale.arc),this._initialPlotArea=C.geometry.Rect.union(this._initialPlotArea,e[i].bbox);this.fitScale(t),this.alignScale(t),this._buildVisual(this.gaugeArea,e,this.scale),this._draw()},e.prototype._buildVisual=function(t,e,i){var o=this._visuals=new cp;o.append(t),o.append(i.ticks),o.append(i.ranges),this._buildPointers(e),o.append(i.labelElements)},e.prototype._buildPointers=function(t){for(var e=0;e<t.length;e++){var i=t[e];i.render(),this._visuals.append(i.elements),i.value(i.options.value)}},e.prototype.fitScale=function(t){for(var e,i,o,r,n,s=this.scale.arc,a=this._initialPlotArea,p=Math.abs(this.getDiff(a,t)),l=Ot(p,3),c=Ot(-p,3),h=0,u=0;!(!(u++<100)||(h=n===o?h+1:0)>5||l!==r&&0<=(e=this.getPlotBox(l,t,s))&&e<=2||c!==r&&0<=(o=this.getPlotBox(c,t,s))&&o<=2||(r=e>0&&o>0?2*l:e<0&&o<0?2*c:Ot((l+c)/2||1,3),0<=(i=this.getPlotBox(r,t,s))&&i<=2));)n=o,i>0?(c=r,o=i):(l=r,e=i)},e.prototype.getPlotBox=function(t,e,i){var o=this.scale,r=this.pointers,n=i.getRadiusX(),s=i.clone();s.setRadiusX(n+t).setRadiusY(n+t),o.arc=s,o.reflow(e),this.plotBbox=o.bbox;for(var a=0;a<r.length;a++)r[a].reflow(s),this.plotBbox=C.geometry.Rect.union(this.plotBbox,r[a].bbox);return this.getDiff(this.plotBbox,e)},e.prototype.getDiff=function(t,e){return Math.min(e.width()-t.width(),e.height()-t.height())},e.prototype.alignScale=function(t){var e=this.plotBbox.center(),i=t.center(),o=e.x-i.x,r=e.y-i.y,n=this.scale,s=this.pointers;n.arc.center.x-=o,n.arc.center.y-=r,n.reflow(t);for(var a=0;a<s.length;a++)s[a].reflow(n.arc),this.plotBbox=C.geometry.Rect.union(n.bbox,s[a].bbox)},e.prototype._createModel=function(){var t=this.options,e=t.pointer,i=this.scale=new ip(t.scale,this.contextService);this.pointers=[];for(var o=_(e)?e:[e],r=0;r<o.length;r++){var n=new lp(i,j({},o[r],{animation:{transitions:t.transitions}}));this.pointers.push(n)}},e}(Sa);It(hp,{transitions:!0,gaugeArea:{background:""}});var up=hp,dp=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.rangeSegments=function(){var t=this.options;return[{from:t.min,to:t.max,color:t.rangePlaceholderColor,lineCap:t.rangeLineCap}]},e.prototype.hasRanges=function(){return!0},e.prototype.placeholderRangeAngle=function(t){var e=this.ranges.children[0].geometry();this.options.reverse?e.setEndAngle(t):e.setStartAngle(t)},e.prototype.addRange=function(t,e,i){var o=this.options.reverse,r=this.slotAngle(o?e:t),n=this.slotAngle(o?t:e),s=this.createRange(r,n,this.getRangeRadius(),i);return this.ranges.append(s),s},e}(ip);It(dp,{min:0,max:100,majorTicks:{visible:!1},minorTicks:{visible:!1},labels:{visible:!1},startAngle:0,endAngle:180,rangeLineCap:"round"});var fp=dp,gp=function(t){function e(e,i){t.call(this,e,i);var o=this.options,r=Math.abs(o.newAngle-o.oldAngle)/o.duration*1e3;o.duration=kt(r,150,800);var n=e.elements.options.get("stroke.color"),s=e.currentColor();n!==s&&(this.startColor=new C.Color(n),this.color=new C.Color(s))}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.step=function(t){var e=this.options,i=this.startColor,o=this.color,r=ht(e.oldAngle,e.newAngle,t);if(this.element.angle(r),o){var n=Ot(ht(i.r,o.r,t)),s=Ot(ht(i.g,o.g,t)),a=Ot(ht(i.b,o.b,t));this.element.stroke(new C.Color(n,s,a).toHex())}},e}(C.drawing.Animation);It(gp,{easing:"linear",duration:150}),C.drawing.AnimationFactory.current.register("radialRangePointer",gp);var yp=gp,vp=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.repaint=function(){var t=this.scale,e=this.options,i=t.slotAngle(e._oldValue),o=t.slotAngle(e.value);this.animation&&this.animation.abort(),!1===e.animation.transitions?(this.angle(o),this.stroke(this.currentColor())):(this.animation=new yp(this,j(e.animation,{oldAngle:i,newAngle:o})),this.animation.play())},e.prototype.angle=function(t){var e=this.elements.geometry();this.scale.options.reverse?e.setStartAngle(t):e.setEndAngle(t),this.scale.placeholderRangeAngle(t)},e.prototype.stroke=function(t){this.elements.stroke(t)},e.prototype.render=function(){if(!this.elements){var t=this.scale,e=this.options;!1!==e.animation&&j(e.animation,{startAngle:0,center:t.arc.center,reverse:t.options.reverse}),this.elements=t.addRange(t.options.min,this.options.value,{color:this.currentColor(),opacity:e.opacity,lineCap:t.options.rangeLineCap})}},e.prototype.currentColor=function(){var t=this.scale.options,e=t.min,i=t.max,o=this.options,r=o.colors,n=o.color,s=o.value,a=P(s)?s:e;if(r)for(var p=0;p<r.length;p++){var l=r[p],c=l.color,h=l.from;void 0===h&&(h=e);var u=l.to;if(void 0===u&&(u=i),h<=a&&a<=u)return c}return n},e.prototype.reflow=function(){this.render(),this.bbox=this.elements.bbox()},e}(Ia);It(vp,{animation:{type:"radialRangePointer",duration:150}});var mp=vp,xp=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype._initTheme=function(e){t.prototype._initTheme.call(this,e),this.options.color=this.options.color||(this.theme.pointer||{}).color},e.prototype._createModel=function(){var t=this.options,e=this.scale=new fp(t.scale,this.contextService),i=new mp(e,j({},{colors:t.colors,color:t.color,value:t.value,opacity:t.opacity,animation:{transitions:t.transitions}}));this.pointers=[i]},e.prototype._buildPointers=function(t){for(var e=0;e<t.length;e++){var i=t[e];i.render(),i.value(i.options.value)}},e.prototype._setValueOptions=function(t){this.options.value=t},e.prototype.currentColor=function(){var t=this.pointers[0];if(t)return t.currentColor()},e.prototype.centerLabelPosition=function(t,e){var i=this.getSize(),o=this.scale.arc.center,r=o.x-t/2,n=o.y-e/2;if(t<i.width){var s=r+t;r=Math.max(r,0),s>i.width&&(r-=s-i.width)}if(e<i.height){var a=this.scale.bbox,p=a.bottomRight().y,l=n+e;n=Math.max(n,a.origin.y),l>p&&(n-=l-p)}return{left:r,top:n}},e}(up),_p=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype._createModel=function(){var e=this.options.scale;"number"!=typeof e.startAngle&&(e.startAngle=90),e.endAngle=e.startAngle+360,t.prototype._createModel.call(this)},e}(xp),bp="Arial, Helvetica, sans-serif",wp="12px "+bp,Ap="16px "+bp,Cp=function(){return{icon:{border:{width:1}},label:{font:wp,padding:3},line:{length:10,width:2},visible:!0}},Sp=function(t){return{visible:!0,labels:{font:"11px Arial, Helvetica, sans-serif"},overlay:t.gradients?{}:{gradient:"none"},area:{highlight:{markers:{border:{}}},line:{opacity:1,width:0},markers:{size:6,visible:!1},opacity:.4},rangeArea:{highlight:{markers:{border:{}}},line:{opacity:1,width:0},markers:{size:6,visible:!1},opacity:.4},verticalRangeArea:{highlight:{markers:{border:{}}},line:{opacity:1,width:0},markers:{size:6,visible:!1},opacity:.4},bar:{gap:1.5,spacing:.4},boxPlot:{outliersField:"",meanField:"",border:{_brightness:.8,width:1},downColor:"#fff",gap:1,highlight:{border:{opacity:1,width:2},whiskers:{width:3},mean:{width:2},median:{width:2}},mean:{width:2},median:{width:2},spacing:.3,whiskers:{width:2}},bubble:{border:{width:0},labels:{background:"transparent"},opacity:.6},bullet:{gap:1.5,spacing:.4,target:{color:"#ff0000"}},candlestick:{border:{_brightness:.8,width:1},downColor:"#fff",gap:1,highlight:{border:{opacity:1,width:2},line:{width:2}},line:{color:"#000",width:1},spacing:.3},column:{gap:1.5,spacing:.4},pie:{labels:{background:"",color:"",padding:{top:5,bottom:5,left:7,right:7}}},donut:{margin:1},funnel:{labels:{background:"",color:"",padding:{top:5,bottom:5,left:7,right:7}}},horizontalWaterfall:{gap:.5,line:{color:"#000",width:1},spacing:.4},line:{width:2},notes:Cp(),ohlc:{gap:1,highlight:{line:{opacity:1,width:3}},line:{width:1},spacing:.3},radarArea:{line:{opacity:1,width:0},markers:{size:6,visible:!1},opacity:.5},radarLine:{markers:{visible:!1},width:2},polarArea:{line:{opacity:1,width:0},markers:{size:6,visible:!1},opacity:.5},polarLine:{markers:{visible:!1},width:2},rangeBar:{gap:1.5,spacing:.4},rangeColumn:{gap:1.5,spacing:.4},scatterLine:{width:1},verticalArea:{highlight:{markers:{border:{}}},line:{opacity:1,width:0},markers:{size:6,visible:!1},opacity:.4},verticalBoxPlot:{outliersField:"",meanField:"",border:{_brightness:.8,width:1},downColor:"#fff",gap:1,highlight:{border:{opacity:1,width:2},whiskers:{width:3},mean:{width:2},median:{width:2}},mean:{width:2},median:{width:2},spacing:.3,whiskers:{width:2}},verticalBullet:{gap:1.5,spacing:.4,target:{color:"#ff0000"}},verticalLine:{width:2},waterfall:{gap:.5,line:{color:"#000",width:1},spacing:.4}}},kp=function(t){return void 0===t&&(t={}),{axisDefaults:{labels:{font:wp},notes:Cp(),title:{font:Ap,margin:5}},categoryAxis:{majorGridLines:{visible:!0}},navigator:{pane:{height:90,margin:{top:10}}},seriesDefaults:Sp(t),title:{font:Ap},legend:{labels:{font:wp}}}}},function(t,e){t.exports=r},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=i(2),r=i(1),n=i(3),s=i(12),a=i(7),p=i(4),l=i(13),c=i(9),h=i(0),u=function(t){function e(e,i,o,r,n,s,a,p){var l=t.call(this,i,o,r,n,s,a,p)||this;return l.changeDetector=e,l.className=!0,l.centerTemplateContext={},l}return o.__extends(e,t),e.prototype.ngOnInit=function(){t.prototype.ngOnInit.call(this),this.element&&this.renderer.setStyle(this.element.nativeElement,"position","relative")},e.prototype.ngAfterViewChecked=function(){t.prototype.ngAfterViewChecked.call(this),this.labelElement&&!this.centerTemplate?this.changeDetector.detectChanges():!this.labelElement&&this.centerTemplate&&this.updateCenterTemplate()},e.prototype.exportVisual=function(){return h.drawDOM(this.element.nativeElement)},e.prototype.resize=function(){t.prototype.resize.call(this),this.updateCenterTemplate()},e.prototype.createInstance=function(t,e,i,o){this.instance=new c.ArcGauge(t,e,i,o),this.updateElements()},e.prototype.updateOptions=function(){t.prototype.updateOptions.call(this),this.updateElements()},e.prototype.setValues=function(){var t=this.configurationService.readValue();this.instance.value(t),this.updateCenterTemplate()},e.prototype.updateElements=function(){this.resizeSensor.acceptSize(),this.updateCenterTemplate()},e.prototype.updateCenterTemplate=function(){this.instance&&this.centerTemplate&&(this.centerTemplateContext.value=this.instance.value(),this.centerTemplateContext.color=this.instance.currentColor(),this.changeDetector.detectChanges(),this.positionLabel())},e.prototype.positionLabel=function(){if(this.labelElement){var t=this.labelElement.nativeElement,e=t.offsetWidth,i=t.offsetHeight,o=this.instance.centerLabelPosition(e,i);t.style.top=o.top+"px",t.style.left=o.left+"px"}},e.prototype.updateSize=function(){},o.__decorate([r.Input(),o.__metadata("design:type",Number)],e.prototype,"value",void 0),o.__decorate([r.Input(),o.__metadata("design:type",String)],e.prototype,"color",void 0),o.__decorate([r.Input(),o.__metadata("design:type",Array)],e.prototype,"colors",void 0),o.__decorate([r.Input(),o.__metadata("design:type",Number)],e.prototype,"opacity",void 0),o.__decorate([r.Input(),o.__metadata("design:type",Object)],e.prototype,"scale",void 0),o.__decorate([r.ContentChild(l.ArcCenterTemplateDirective,{static:!1}),o.__metadata("design:type",l.ArcCenterTemplateDirective)],e.prototype,"centerTemplate",void 0),o.__decorate([r.ViewChild("label",{static:!1}),o.__metadata("design:type",r.ElementRef)],e.prototype,"labelElement",void 0),o.__decorate([r.HostBinding("class.k-arcgauge"),o.__metadata("design:type",Boolean)],e.prototype,"className",void 0),e=o.__decorate([r.Component({changeDetection:r.ChangeDetectionStrategy.OnPush,exportAs:"kendoArcGauge",providers:[n.ConfigurationService,a.LocalizationService,{provide:a.L10N_PREFIX,useValue:"kendo.arcgauge"}],selector:"kendo-arcgauge",template:'\n <div #surface class=\'k-chart-surface\'></div>\n <div class="k-arcgauge-label" *ngIf="centerTemplate" #label>\n <ng-template [ngTemplateOutlet]="centerTemplate.templateRef" [ngTemplateOutletContext]="centerTemplateContext"></ng-template>\n </div>\n <kendo-resize-sensor (resize)="onResize($event)" [rateLimit]="resizeRateLimit"></kendo-resize-sensor>\n '}),o.__metadata("design:paramtypes",[r.ChangeDetectorRef,n.ConfigurationService,n.ThemeService,s.IntlService,a.LocalizationService,r.ElementRef,r.Renderer2,r.NgZone])],e)}(p.GaugeComponent);e.ArcGaugeComponent=u},function(t,e){t.exports=n},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=i(2),r=i(1),n=function(){function t(t){this.templateRef=t}return t=o.__decorate([r.Directive({selector:"[kendoArcGaugeCenterTemplate]"}),o.__param(0,r.Optional()),o.__metadata("design:paramtypes",[r.TemplateRef])],t)}();e.ArcCenterTemplateDirective=n},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=i(2),r=i(1),n=i(4),s=i(3),a=function(t){function e(e){var i=t.call(this,"gaugeArea",e)||this;return i.configurationService=e,i}return o.__extends(e,t),e=o.__decorate([r.Component({selector:"kendo-arcgauge-area",template:""}),o.__metadata("design:paramtypes",[s.ConfigurationService])],e)}(n.GaugeAreaComponent);e.ArcGaugeAreaComponent=a},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=i(2),r=i(1),n=i(4),s=i(3),a=function(t){function e(e){var i=t.call(this,"scale",e)||this;return i.configurationService=e,i}return o.__extends(e,t),o.__decorate([r.Input(),o.__metadata("design:type",Object)],e.prototype,"labels",void 0),o.__decorate([r.Input(),o.__metadata("design:type",Number)],e.prototype,"rangeDistance",void 0),o.__decorate([r.Input(),o.__metadata("design:type",String)],e.prototype,"rangeLineCap",void 0),o.__decorate([r.Input(),o.__metadata("design:type",Number)],e.prototype,"startAngle",void 0),o.__decorate([r.Input(),o.__metadata("design:type",Number)],e.prototype,"endAngle",void 0),e=o.__decorate([r.Component({selector:"kendo-arcgauge-scale",template:""}),o.__metadata("design:paramtypes",[s.ConfigurationService])],e)}(n.ScaleComponent);e.ArcScaleComponent=a},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=i(2),r=i(1),n=i(17),s=i(3),a=function(t){function e(e){var i=t.call(this,e)||this;return i.configurationService=e,e.set(i.key+".visible",!0),i}return o.__extends(e,t),e=o.__decorate([r.Component({selector:"kendo-arcgauge-scale-labels",template:""}),o.__metadata("design:paramtypes",[s.ConfigurationService])],e)}(n.RadialLabelsComponent);e.ArcLabelsComponent=a},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=i(2),r=i(1),n=i(4),s=i(3),a=function(t){function e(e){var i=t.call(this,"scale.labels",e)||this;return i.configurationService=e,i}return o.__extends(e,t),o.__decorate([r.Input(),o.__metadata("design:type",String)],e.prototype,"position",void 0),e=o.__decorate([r.Component({selector:"kendo-radialgauge-scale-labels",template:""}),o.__metadata("design:paramtypes",[s.ConfigurationService])],e)}(n.LabelsComponent);e.RadialLabelsComponent=a},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=i(2),r=i(1),n=i(3),s=function(t){function e(e,i){return t.call(this,e,i)||this}return o.__extends(e,t),o.__decorate([r.Input(),o.__metadata("design:type",String)],e.prototype,"color",void 0),o.__decorate([r.Input(),o.__metadata("design:type",Number)],e.prototype,"opacity",void 0),o.__decorate([r.Input(),o.__metadata("design:type",Number)],e.prototype,"from",void 0),o.__decorate([r.Input(),o.__metadata("design:type",Number)],e.prototype,"to",void 0),e=o.__decorate([r.Component({providers:[n.ConfigurationService],selector:"kendo-arcgauge-color",template:""}),o.__metadata("design:paramtypes",[n.ConfigurationService,n.CollectionChangesService])],e)}(i(4).CollectionItemComponent);e.ColorComponent=s},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=i(2),r=i(1),n=i(3),s=function(t){function e(e,i){return t.call(this,e,i)||this}return o.__extends(e,t),o.__decorate([r.Input(),o.__metadata("design:type",Object)],e.prototype,"border",void 0),o.__decorate([r.Input(),o.__metadata("design:type",String)],e.prototype,"color",void 0),o.__decorate([r.Input(),o.__metadata("design:type",Object)],e.prototype,"margin",void 0),o.__decorate([r.Input(),o.__metadata("design:type",Number)],e.prototype,"opacity",void 0),o.__decorate([r.Input(),o.__metadata("design:type",String)],e.prototype,"shape",void 0),o.__decorate([r.Input(),o.__metadata("design:type",Number)],e.prototype,"size",void 0),o.__decorate([r.Input(),o.__metadata("design:type",Number)],e.prototype,"value",void 0),e=o.__decorate([r.Component({providers:[n.ConfigurationService],selector:"kendo-lineargauge-pointer",template:""}),o.__metadata("design:paramtypes",[n.ConfigurationService,n.CollectionChangesService])],e)}(i(4).CollectionItemComponent);e.LinearPointerComponent=s},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=i(2),r=i(1),n=i(3),s=function(t){function e(e,i){return t.call(this,e,i)||this}return o.__extends(e,t),e=o.__decorate([r.Component({providers:[n.ConfigurationService],selector:"kendo-lineargauge-scale-range",template:""}),o.__metadata("design:paramtypes",[n.ConfigurationService,n.CollectionChangesService])],e)}(i(4).RangeComponent);e.LinearRangeComponent=s},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=i(2),r=i(1),n=i(3),s=function(t){function e(e,i){return t.call(this,e,i)||this}return o.__extends(e,t),o.__decorate([r.Input(),o.__metadata("design:type",Object)],e.prototype,"cap",void 0),o.__decorate([r.Input(),o.__metadata("design:type",String)],e.prototype,"color",void 0),o.__decorate([r.Input(),o.__metadata("design:type",Number)],e.prototype,"length",void 0),o.__decorate([r.Input(),o.__metadata("design:type",Number)],e.prototype,"value",void 0),e=o.__decorate([r.Component({providers:[n.ConfigurationService],selector:"kendo-radialgauge-pointer",template:""}),o.__metadata("design:paramtypes",[n.ConfigurationService,n.CollectionChangesService])],e)}(i(4).CollectionItemComponent);e.RadialPointerComponent=s},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=i(2),r=i(1),n=i(3),s=function(t){function e(e,i){return t.call(this,e,i)||this}return o.__extends(e,t),e=o.__decorate([r.Component({providers:[n.ConfigurationService],selector:"kendo-radialgauge-scale-range",template:""}),o.__metadata("design:paramtypes",[n.ConfigurationService,n.CollectionChangesService])],e)}(i(4).RangeComponent);e.RadialRangeComponent=s},function(t,e,i){"use strict";i.r(e),i.d(e,"ResizeService",(function(){return N})),i.d(e,"PreventableEvent",(function(){return et})),i.d(e,"DraggableDirective",(function(){return A})),i.d(e,"DraggableModule",(function(){return C})),i.d(e,"closestInScope",(function(){return S})),i.d(e,"closest",(function(){return k})),i.d(e,"contains",(function(){return P})),i.d(e,"findElement",(function(){return R})),i.d(e,"findFocusableChild",(function(){return L})),i.d(e,"findFocusable",(function(){return I})),i.d(e,"hasClasses",(function(){return B})),i.d(e,"isFocusableWithTabKey",(function(){return j})),i.d(e,"isFocusable",(function(){return M})),i.d(e,"isVisible",(function(){return T})),i.d(e,"matchesClasses",(function(){return V})),i.d(e,"matchesNodeName",(function(){return D})),i.d(e,"rtlScrollPosition",(function(){return G})),i.d(e,"EventsOutsideAngularDirective",(function(){return F})),i.d(e,"EventsModule",(function(){return H})),i.d(e,"ResizeSensorComponent",(function(){return J})),i.d(e,"ResizeBatchService",(function(){return Z})),i.d(e,"ResizeCompatService",(function(){return X})),i.d(e,"ResizeObserverService",(function(){return W})),i.d(e,"ResizeSensorModule",(function(){return $})),i.d(e,"KendoInput",(function(){return tt})),i.d(e,"isDocumentAvailable",(function(){return m})),i.d(e,"isChanged",(function(){return x})),i.d(e,"anyChanged",(function(){return _})),i.d(e,"hasObservers",(function(){return b})),i.d(e,"guid",(function(){return w})),i.d(e,"Keys",(function(){return U}));var o=i(2),r=i(1),n=function(t,e){return function(i){return e(t(i))}},s=function(t,e,i){return t.addEventListener&&t.addEventListener(e,i)},a=function(t,e,i){return t&&t.removeEventListener&&t.removeEventListener(e,i)},p=function(){},l=function(t){return t.preventDefault()},c=/touch/;function h(t){return t.type.match(c)?{pageX:t.changedTouches[0].pageX,pageY:t.changedTouches[0].pageY,clientX:t.changedTouches[0].clientX,clientY:t.changedTouches[0].clientY,type:t.type,originalEvent:t,isTouch:!0}:{pageX:t.pageX,pageY:t.pageY,clientX:t.clientX,clientY:t.clientY,offsetX:t.offsetX,offsetY:t.offsetY,type:t.type,ctrlKey:t.ctrlKey,shiftKey:t.shiftKey,altKey:t.altKey,originalEvent:t}}var u=function(t){var e=this,i=t.press;void 0===i&&(i=p);var o=t.drag;void 0===o&&(o=p);var r=t.release;void 0===r&&(r=p);var c=t.mouseOnly;void 0===c&&(c=!1),this._pressHandler=n(h,i),this._dragHandler=n(h,o),this._releaseHandler=n(h,r),this._ignoreMouse=!1,this._mouseOnly=c,this._touchstart=function(t){1===t.touches.length&&e._pressHandler(t)},this._touchmove=function(t){1===t.touches.length&&e._dragHandler(t)},this._touchend=function(t){0===t.touches.length&&1===t.changedTouches.length&&(e._releaseHandler(t),e._ignoreMouse=!0,setTimeout(e._restoreMouse,2e3))},this._restoreMouse=function(){e._ignoreMouse=!1},this._mousedown=function(t){var i=t.which;i&&i>1||e._ignoreMouse||(s(e.document,"mousemove",e._mousemove),s(e.document,"mouseup",e._mouseup),e._pressHandler(t))},this._mousemove=function(t){e._dragHandler(t)},this._mouseup=function(t){a(e.document,"mousemove",e._mousemove),a(e.document,"mouseup",e._mouseup),e._releaseHandler(t)},this._pointerdown=function(t){t.isPrimary&&0===t.button&&(s(e.document,"pointermove",e._pointermove),s(e.document,"pointerup",e._pointerup),s(e.document,"pointercancel",e._pointerup),s(e.document,"contextmenu",l),e._pressHandler(t))},this._pointermove=function(t){t.isPrimary&&e._dragHandler(t)},this._pointerup=function(t){t.isPrimary&&(a(e.document,"pointermove",e._pointermove),a(e.document,"pointerup",e._pointerup),a(e.document,"pointercancel",e._pointerup),a(e.document,"contextmenu",l),e._releaseHandler(t))}},d={document:{configurable:!0}};u.supportPointerEvent=function(){return"undefined"!=typeof window&&window.PointerEvent},d.document.get=function(){return this._element?this._element.ownerDocument:document},u.prototype.bindTo=function(t){t!==this._element&&(this._element&&this._unbindFromCurrent(),this._element=t,this._bindToCurrent())},u.prototype._bindToCurrent=function(){var t=this._element;this._usePointers()?s(t,"pointerdown",this._pointerdown):(s(t,"mousedown",this._mousedown),this._mouseOnly||(s(t,"touchstart",this._touchstart),s(t,"touchmove",this._touchmove),s(t,"touchend",this._touchend)))},u.prototype._unbindFromCurrent=function(){var t=this._element;if(this._usePointers())return a(t,"pointerdown",this._pointerdown),a(this.document,"pointermove",this._pointermove),a(this.document,"pointerup",this._pointerup),a(this.document,"contextmenu",l),void a(this.document,"pointercancel",this._pointerup);a(t,"mousedown",this._mousedown),this._mouseOnly||(a(t,"touchstart",this._touchstart),a(t,"touchmove",this._touchmove),a(t,"touchend",this._touchend))},u.prototype._usePointers=function(){return!this._mouseOnly&&u.supportPointerEvent()},u.prototype.update=function(t){var e=t.press;void 0===e&&(e=p);var i=t.drag;void 0===i&&(i=p);var o=t.release;void 0===o&&(o=p);var r=t.mouseOnly;void 0===r&&(r=!1),this._pressHandler=n(h,e),this._dragHandler=n(h,i),this._releaseHandler=n(h,o),this._mouseOnly=r},u.prototype.destroy=function(){this._unbindFromCurrent(),this._element=null},Object.defineProperties(u.prototype,d),u.default=u;var f=u,g=i(10),y=i(41),v=i(5),m=function(){return"undefined"!=typeof document},x=function(t,e,i){return void 0===i&&(i=!0),!(void 0===e[t]||e[t].isFirstChange()&&i||e[t].previousValue===e[t].currentValue)},_=function(t,e,i){return void 0===i&&(i=!0),t.some((function(t){return x(t,e,i)}))},b=function(t){return t&&t.observers.length>0},w=function(){for(var t="",e=0;e<32;e++){var i=16*Math.random()|0;8!==e&&12!==e&&16!==e&&20!==e||(t+="-"),t+=(12===e?4:16===e?3&i|8:i).toString(16)}return t},A=function(){function t(t,e){this.element=t,this.ngZone=e,this.enableDrag=!0,this.kendoPress=new r.EventEmitter,this.kendoDrag=new r.EventEmitter,this.kendoRelease=new r.EventEmitter}return t.prototype.ngOnInit=function(){this.toggleDraggable()},t.prototype.ngOnChanges=function(t){x("enableDrag",t)&&this.toggleDraggable()},t.prototype.ngOnDestroy=function(){this.destroyDraggable()},t.prototype.toggleDraggable=function(){var t=this;m()&&(this.destroyDraggable(),this.enableDrag&&(this.draggable=new f({drag:function(e){return t.kendoDrag.next(e)},press:function(e){return t.kendoPress.next(e)},release:function(e){return t.kendoRelease.next(e)}}),this.ngZone.runOutsideAngular((function(){return t.draggable.bindTo(t.element.nativeElement)}))))},t.prototype.destroyDraggable=function(){this.draggable&&(this.draggable.destroy(),this.draggable=null)},Object(o.__decorate)([Object(r.Input)(),Object(o.__metadata)("design:type",Boolean)],t.prototype,"enableDrag",void 0),Object(o.__decorate)([Object(r.Output)(),Object(o.__metadata)("design:type",r.EventEmitter)],t.prototype,"kendoPress",void 0),Object(o.__decorate)([Object(r.Output)(),Object(o.__metadata)("design:type",r.EventEmitter)],t.prototype,"kendoDrag",void 0),Object(o.__decorate)([Object(r.Output)(),Object(o.__metadata)("design:type",r.EventEmitter)],t.prototype,"kendoRelease",void 0),t=Object(o.__decorate)([Object(r.Directive)({selector:"[kendoDraggable]"}),Object(o.__metadata)("design:paramtypes",[r.ElementRef,r.NgZone])],t)}(),C=function(){function t(){}return t=Object(o.__decorate)([Object(r.NgModule)({declarations:[A],exports:[A],imports:[g.CommonModule]})],t)}(),S=function(t,e,i){for(;t&&t!==i&&!e(t);)t=t.parentNode;if(t!==i)return t},k=function(t,e){for(;t&&!e(t);)t=t.parentNode;return t},P=function(t,e,i){if(void 0===i&&(i=!1),!k(e,(function(e){return e===t})))return!1;var o=k(e,(function(t){return t===e}));return o&&(i||o!==t)},R=function(t,e,i){if(void 0===i&&(i=!0),t){if(i&&e(t))return t;for(t=t.firstChild;t;){if(1===t.nodeType){var o=R(t,e);if(o)return o}t=t.nextSibling}}},O=/^(?:a|input|select|option|textarea|button|object)$/i,M=function(t){if(!t.tagName)return!1;var e=t.tagName.toLowerCase(),i=Boolean(t.getAttribute("tabIndex"));return!t.disabled&&O.test(e)||i},T=function(t){var e=t.getBoundingClientRect(),i=e.width>0&&e.height>0,o=0!==e.x&&0!==e.y;return(i||o)&&"hidden"!==window.getComputedStyle(t).visibility},j=function(t,e){if(void 0===e&&(e=!0),!M(t))return!1;var i=t.getAttribute("tabIndex");return(!e||T(t))&&"-1"!==i},L=function(t,e){return void 0===e&&(e=!0),R(t,(function(t){return j(t,e)}),!1)},I=function(t,e){return void 0===e&&(e=!0),R(t,(function(t){return j(t,e)}))},z=function(t){return String(t).trim().split(" ")},B=function(t,e){var i=z(e);return Boolean(z(t.className).find((function(t){return i.indexOf(t)>=0})))},V=function(t){return function(e){return B(e,t)}},E={},D=function(t){return E[t]||(E[t]=function(e){return String(e.nodeName).toLowerCase()===t.toLowerCase()}),E[t]};function G(t,e,i){var o=t;return i<0?o=-t:i>0&&(o=e.scrollWidth-e.offsetWidth-t),o}var U,F=function(){function t(t,e,i){this.element=t,this.ngZone=e,this.renderer=i,this.events={}}return t.prototype.ngOnInit=function(){var t=this;if(this.element&&this.element.nativeElement){var e=this.events;this.subscriptions=[],this.ngZone.runOutsideAngular((function(){for(var i in e)e.hasOwnProperty(i)&&t.subscriptions.push(t.renderer.listen(t.element.nativeElement,i,t.scope?e[i].bind(t.scope):e[i]))}))}},t.prototype.ngOnDestroy=function(){if(this.subscriptions){for(var t=0;t<this.subscriptions.length;t++)this.subscriptions[t]();this.subscriptions=null}},Object(o.__decorate)([Object(r.Input)("kendoEventsOutsideAngular"),Object(o.__metadata)("design:type",Object)],t.prototype,"events",void 0),Object(o.__decorate)([Object(r.Input)(),Object(o.__metadata)("design:type",Object)],t.prototype,"scope",void 0),t=Object(o.__decorate)([Object(r.Directive)({selector:"[kendoEventsOutsideAngular]"}),Object(o.__metadata)("design:paramtypes",[r.ElementRef,r.NgZone,r.Renderer2])],t)}(),H=function(){function t(){}return t=Object(o.__decorate)([Object(r.NgModule)({declarations:[F],exports:[F]})],t)}(),N=function(){function t(t){this.resizeBatchService=t,this.resize=new r.EventEmitter,this.acceptedSize=!1,this.state=0}return t.prototype.acceptSize=function(t){void 0===t&&(t=this.measure()),this.lastWidth=t.width,this.lastHeight=t.height,this.acceptedSize=!0},t.prototype.checkChanges=function(){m()&&0===this.state&&(this.state=1,this.resizeBatchService.schedule(this,this.init))},t.prototype.destroy=function(){this.resizeBatchService.cancel(this)},t.prototype.checkSize=function(){if(this.parentElement){var t=this.measure(),e=t.width,i=t.height;if(!(e===this.lastWidth&&i===this.lastHeight))return this.lastWidth=e,this.lastHeight=i,this.acceptedSize=!1,this.resize.emit(),!0}},t.prototype.initSize=function(){var t=this.measure();this.lastWidth=t.width,this.lastHeight=t.height},t.prototype.measure=function(){var t=0,e=0;return this.parentElement&&(e=this.parentElement.offsetHeight,t=this.parentElement.offsetWidth),{height:e,width:t}},t}(),q=function(t){var e=document.createElement("div");return e.style.cssText=t,e},K="position: absolute; display: block; left: 0; top: 0; right: 0; bottom: 0; z-index: -1;overflow: hidden; visibility: hidden;",X=function(t){function e(e,i,o){var r=t.call(this,e)||this;return r.element=i,r.ngZone=o,r}return Object(o.__extends)(e,t),e.prototype.checkChanges=function(){2!==this.state?t.prototype.checkChanges.call(this):this.resizeBatchService.isScheduled(this)||this.resizeBatchService.schedule(this,this.checkSize)},e.prototype.destroy=function(){if(t.prototype.destroy.call(this),this.subscription&&this.subscription.unsubscribe(),this.expand){var e=this.element.nativeElement;e.removeChild(this.expand),e.removeChild(this.shrink),this.expand.removeChild(this.expandChild),this.expand=this.expandChild=this.shrink=this.element=null}},e.prototype.checkSize=function(){if(t.prototype.checkSize.call(this))return this.reset(),!0},e.prototype.init=function(){var t,e=this.parentElement=this.element.nativeElement.parentElement;"static"===(t="position",getComputedStyle(e,null).getPropertyValue(t))&&(e.style.position="relative"),this.state=2,this.render(),this.reset(),this.initSize(),this.subscribe()},e.prototype.render=function(){var t=this.element.nativeElement;t.style.cssText=K,t.setAttribute("dir","ltr"),this.expand=q(K),this.expandChild=q("position: absolute; left: 0; top: 0; transition: 0s;"),this.expand.appendChild(this.expandChild),t.appendChild(this.expand),this.shrink=q(K);var e=q("position: absolute; left: 0; top: 0; transition: 0s;width: 200%; height: 200%;");this.shrink.appendChild(e),t.appendChild(this.shrink)},e.prototype.reset=function(){var t=this.expandChild;t.style.width="100000px",t.style.height="100000px";var e=this.expand;e.scrollLeft=1e5,e.scrollTop=1e5;var i=this.shrink;i.scrollLeft=1e5,i.scrollTop=1e5},e.prototype.subscribe=function(){var t=this;this.ngZone.runOutsideAngular((function(){t.subscription=Object(v.merge)(Object(v.fromEvent)(t.shrink,"scroll"),Object(v.fromEvent)(t.expand,"scroll")).subscribe((function(){t.checkSize()}))}))},e}(N),Y="undefined"!=typeof ResizeObserver,W=function(t){function e(e,i,o){var r=t.call(this,e)||this;return r.element=i,r.ngZone=o,r}return Object(o.__extends)(e,t),e.supported=function(){return Y},e.prototype.destroy=function(){t.prototype.destroy.call(this),this.resizeObserver&&(this.resizeObserver.disconnect(),this.resizeObserver=null),this.parentElement=null},e.prototype.init=function(){var t=this;this.parentElement=this.element.nativeElement.parentElement,this.initSize(),this.state=2,this.ngZone.runOutsideAngular((function(){t.resizeObserver=new ResizeObserver((function(){t.checkSize()})),t.resizeObserver.observe(t.parentElement)}))},e}(N),Z=function(){function t(t){this.ngZone=t,this.scheduled=[],this.resolvedPromise=Promise.resolve(null),this.flush=this.flush.bind(this)}return t.prototype.schedule=function(t,e){var i=this;this.scheduled.push({instance:t,method:e}),this.subscription||this.ngZone.runOutsideAngular((function(){i.subscription=Object(v.from)(i.resolvedPromise).subscribe(i.flush)}))},t.prototype.isScheduled=function(t){return Boolean(this.scheduled.find((function(e){return e.instance===t})))},t.prototype.cancel=function(t){for(var e=this.scheduled,i=e.length,o=0;o<i;o++)if(e[o].instance===t)return e.splice(o,1),void(e.length||this.unsubscribe())},t.prototype.ngOnDestroy=function(){this.unsubscribe()},t.prototype.unsubscribe=function(){this.subscription&&(this.subscription.unsubscribe(),this.subscription=null)},t.prototype.flush=function(){this.scheduled.forEach((function(t){t.method.call(t.instance)})),this.scheduled=[],this.unsubscribe()},t=Object(o.__decorate)([Object(r.Injectable)(),Object(o.__metadata)("design:paramtypes",[r.NgZone])],t)}(),J=function(){function t(t,e,i){var o=this;this.rateLimit=10,this.resize=new r.EventEmitter;var n=W.supported()?W:X;this.resizeService=new n(t,e,i);var s=1e3/(this.rateLimit||10);this.subscription=this.resizeService.resize.pipe(Object(y.auditTime)(s)).subscribe((function(){o.resizeService.acceptedSize||o.resize.emit()}))}return t.prototype.ngAfterViewChecked=function(){this.resizeService.checkChanges()},t.prototype.ngOnDestroy=function(){this.subscription.unsubscribe(),this.resizeService.destroy()},t.prototype.acceptSize=function(t){this.resizeService.acceptSize(t)},Object(o.__decorate)([Object(r.Input)(),Object(o.__metadata)("design:type",Number)],t.prototype,"rateLimit",void 0),Object(o.__decorate)([Object(r.Output)(),Object(o.__metadata)("design:type",r.EventEmitter)],t.prototype,"resize",void 0),t=Object(o.__decorate)([Object(r.Component)({selector:"kendo-resize-sensor",template:""}),Object(o.__metadata)("design:paramtypes",[Z,r.ElementRef,r.NgZone])],t)}(),Q=[J],$=function(){function t(){}return t=Object(o.__decorate)([Object(r.NgModule)({declarations:[Q],exports:[Q],providers:[Z]})],t)}(),tt=function(){};!function(t){t[t.Alt=18]="Alt",t[t.ArrowDown=40]="ArrowDown",t[t.ArrowLeft=37]="ArrowLeft",t[t.ArrowRight=39]="ArrowRight",t[t.ArrowUp=38]="ArrowUp",t[t.Backspace=8]="Backspace",t[t.Control=17]="Control",t[t.Delete=46]="Delete",t[t.Digit0=48]="Digit0",t[t.Digit1=49]="Digit1",t[t.Digit2=50]="Digit2",t[t.Digit3=51]="Digit3",t[t.Digit4=52]="Digit4",t[t.Digit5=53]="Digit5",t[t.Digit6=54]="Digit6",t[t.Digit7=55]="Digit7",t[t.Digit8=56]="Digit8",t[t.Digit9=57]="Digit9",t[t.End=35]="End",t[t.Enter=13]="Enter",t[t.Escape=27]="Escape",t[t.F1=112]="F1",t[t.F2=113]="F2",t[t.F10=121]="F10",t[t.Home=36]="Home",t[t.Insert=45]="Insert",t[t.KeyA=65]="KeyA",t[t.KeyB=66]="KeyB",t[t.KeyC=67]="KeyC",t[t.KeyD=68]="KeyD",t[t.KeyE=69]="KeyE",t[t.KeyF=70]="KeyF",t[t.KeyG=71]="KeyG",t[t.KeyH=72]="KeyH",t[t.KeyI=73]="KeyI",t[t.KeyJ=74]="KeyJ",t[t.KeyK=75]="KeyK",t[t.KeyL=76]="KeyL",t[t.KeyM=77]="KeyM",t[t.KeyN=78]="KeyN",t[t.KeyO=79]="KeyO",t[t.KeyP=80]="KeyP",t[t.KeyQ=81]="KeyQ",t[t.KeyR=82]="KeyR",t[t.KeyS=83]="KeyS",t[t.KeyT=84]="KeyT",t[t.KeyU=85]="KeyU",t[t.KeyV=86]="KeyV",t[t.KeyW=87]="KeyW",t[t.KeyX=88]="KeyX",t[t.KeyY=89]="KeyY",t[t.KeyZ=90]="KeyZ",t[t.NumpadDecimal=110]="NumpadDecimal",t[t.PageDown=34]="PageDown",t[t.PageUp=33]="PageUp",t[t.Shift=16]="Shift",t[t.Space=32]="Space",t[t.Tab=9]="Tab"}(U||(U={}));var et=function(){function t(){this.prevented=!1}return t.prototype.preventDefault=function(){this.prevented=!0},t.prototype.isDefaultPrevented=function(){return this.prevented},t}()},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=i(2),r=i(1),n=i(10),s=i(6),a=i(11),p=i(14),l=i(15),c=i(16),h=i(13),u=i(26),d=i(18),f=[a.ArcGaugeComponent,h.ArcCenterTemplateDirective,p.ArcGaugeAreaComponent,l.ArcScaleComponent,c.ArcLabelsComponent,u.ColorsComponent,d.ColorComponent],g=function(){function t(){}return t=o.__decorate([r.NgModule({declarations:[f],exports:[f],imports:[s.SharedModule,n.CommonModule]})],t)}();e.ArcGaugeModule=g},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){this.configurationService=t,this.collectionChangesService=e}return t.prototype.ngOnChanges=function(t){this.configurationService.copyChanges("",t),this.collectionChangesService.hasChanges=!0},t}();e.CollectionItemComponent=o},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=i(2),r=i(1),n=i(4),s=i(18),a=i(3),p=function(t){function e(e,i){return t.call(this,"colors",e,i)||this}return o.__extends(e,t),o.__decorate([r.ContentChildren(s.ColorComponent),o.__metadata("design:type",r.QueryList)],e.prototype,"children",void 0),e=o.__decorate([r.Component({providers:[a.CollectionChangesService],selector:"kendo-arcgauge-colors",template:""}),o.__metadata("design:paramtypes",[a.ConfigurationService,a.CollectionChangesService])],e)}(n.CollectionComponent);e.ColorsComponent=p},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=i(2),r=i(1),n=i(6),s=i(28),a=i(29),p=i(30),l=i(31),c=i(32),h=i(19),u=i(20),d=i(33),f=[s.LinearGaugeComponent,a.LinearGaugeAreaComponent,p.LinearScaleComponent,l.LinearLabelsComponent,c.LinearPointersComponent,h.LinearPointerComponent,u.LinearRangeComponent,d.LinearRangesComponent],g=function(){function t(){}return t=o.__decorate([r.NgModule({declarations:[f],exports:[f],imports:[n.SharedModule]})],t)}();e.LinearGaugeModule=g},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=i(2),r=i(1),n=i(3),s=i(12),a=i(7),p=i(4),l=i(9),c=function(t){function e(e,i,o,r,n,s,a){return t.call(this,e,i,o,r,n,s,a)||this}return o.__extends(e,t),e.prototype.createInstance=function(t,e,i,o){this.instance=new l.LinearGauge(t,e,i,o)},o.__decorate([r.Input(),o.__metadata("design:type",Object)],e.prototype,"pointer",void 0),o.__decorate([r.Input(),o.__metadata("design:type",Object)],e.prototype,"scale",void 0),e=o.__decorate([r.Component({changeDetection:r.ChangeDetectionStrategy.OnPush,exportAs:"kendoLinearGauge",providers:[n.ConfigurationService,a.LocalizationService,{provide:a.L10N_PREFIX,useValue:"kendo.lineargauge"}],selector:"kendo-lineargauge",template:'\n <div #surface class=\'k-chart-surface\'></div>\n <kendo-resize-sensor (resize)="onResize($event)" [rateLimit]="resizeRateLimit"></kendo-resize-sensor>\n '}),o.__metadata("design:paramtypes",[n.ConfigurationService,n.ThemeService,s.IntlService,a.LocalizationService,r.ElementRef,r.Renderer2,r.NgZone])],e)}(p.GaugeComponent);e.LinearGaugeComponent=c},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=i(2),r=i(1),n=i(4),s=i(3),a=function(t){function e(e){var i=t.call(this,"gaugeArea",e)||this;return i.configurationService=e,i}return o.__extends(e,t),e=o.__decorate([r.Component({selector:"kendo-lineargauge-area",template:""}),o.__metadata("design:paramtypes",[s.ConfigurationService])],e)}(n.GaugeAreaComponent);e.LinearGaugeAreaComponent=a},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=i(2),r=i(1),n=i(4),s=i(3),a=function(t){function e(e){var i=t.call(this,"scale",e)||this;return i.configurationService=e,i}return o.__extends(e,t),o.__decorate([r.Input(),o.__metadata("design:type",Object)],e.prototype,"line",void 0),o.__decorate([r.Input(),o.__metadata("design:type",Array)],e.prototype,"ranges",void 0),o.__decorate([r.Input(),o.__metadata("design:type",Boolean)],e.prototype,"mirror",void 0),o.__decorate([r.Input(),o.__metadata("design:type",Boolean)],e.prototype,"vertical",void 0),e=o.__decorate([r.Component({selector:"kendo-lineargauge-scale",template:""}),o.__metadata("design:paramtypes",[s.ConfigurationService])],e)}(n.ScaleComponent);e.LinearScaleComponent=a},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=i(2),r=i(1),n=i(4),s=i(3),a=function(t){function e(e){var i=t.call(this,"scale.labels",e)||this;return i.configurationService=e,i}return o.__extends(e,t),e=o.__decorate([r.Component({selector:"kendo-lineargauge-scale-labels",template:""}),o.__metadata("design:paramtypes",[s.ConfigurationService])],e)}(n.LabelsComponent);e.LinearLabelsComponent=a},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=i(2),r=i(1),n=i(19),s=i(4),a=i(3),p=function(t){function e(e,i){return t.call(this,"pointer",e,i)||this}return o.__extends(e,t),o.__decorate([r.ContentChildren(n.LinearPointerComponent),o.__metadata("design:type",r.QueryList)],e.prototype,"children",void 0),e=o.__decorate([r.Component({providers:[a.CollectionChangesService],selector:"kendo-lineargauge-pointers",template:""}),o.__metadata("design:paramtypes",[a.ConfigurationService,a.CollectionChangesService])],e)}(s.CollectionComponent);e.LinearPointersComponent=p},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=i(2),r=i(1),n=i(4),s=i(20),a=i(3),p=function(t){function e(e,i){return t.call(this,"scale.ranges",e,i)||this}return o.__extends(e,t),o.__decorate([r.ContentChildren(s.LinearRangeComponent),o.__metadata("design:type",r.QueryList)],e.prototype,"children",void 0),e=o.__decorate([r.Component({providers:[a.CollectionChangesService],selector:"kendo-lineargauge-scale-ranges",template:""}),o.__metadata("design:paramtypes",[a.ConfigurationService,a.CollectionChangesService])],e)}(n.CollectionComponent);e.LinearRangesComponent=p},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=i(2),r=i(1),n=i(6),s=i(35),a=i(36),p=i(37),l=i(17),c=i(38),h=i(21),u=i(22),d=i(39),f=[s.RadialGaugeComponent,a.RadialGaugeAreaComponent,p.RadialScaleComponent,l.RadialLabelsComponent,c.RadialPointersComponent,h.RadialPointerComponent,u.RadialRangeComponent,d.RadialRangesComponent],g=function(){function t(){}return t=o.__decorate([r.NgModule({declarations:[f],exports:[f],imports:[n.SharedModule]})],t)}();e.RadialGaugeModule=g},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=i(2),r=i(1),n=i(3),s=i(12),a=i(7),p=i(4),l=i(9),c=function(t){function e(e,i,o,r,n,s,a){return t.call(this,e,i,o,r,n,s,a)||this}return o.__extends(e,t),e.prototype.createInstance=function(t,e,i,o){this.instance=new l.RadialGauge(t,e,i,o)},o.__decorate([r.Input(),o.__metadata("design:type",Object)],e.prototype,"pointer",void 0),o.__decorate([r.Input(),o.__metadata("design:type",Object)],e.prototype,"scale",void 0),e=o.__decorate([r.Component({changeDetection:r.ChangeDetectionStrategy.OnPush,exportAs:"kendoRadialGauge",providers:[n.ConfigurationService,a.LocalizationService,{provide:a.L10N_PREFIX,useValue:"kendo.radialgauge"}],selector:"kendo-radialgauge",template:'\n <div #surface class=\'k-chart-surface\'></div>\n <kendo-resize-sensor (resize)="onResize($event)" [rateLimit]="resizeRateLimit"></kendo-resize-sensor>\n '}),o.__metadata("design:paramtypes",[n.ConfigurationService,n.ThemeService,s.IntlService,a.LocalizationService,r.ElementRef,r.Renderer2,r.NgZone])],e)}(p.GaugeComponent);e.RadialGaugeComponent=c},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=i(2),r=i(1),n=i(4),s=i(3),a=function(t){function e(e){var i=t.call(this,"gaugeArea",e)||this;return i.configurationService=e,i}return o.__extends(e,t),e=o.__decorate([r.Component({selector:"kendo-radialgauge-area",template:""}),o.__metadata("design:paramtypes",[s.ConfigurationService])],e)}(n.GaugeAreaComponent);e.RadialGaugeAreaComponent=a},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=i(2),r=i(1),n=i(4),s=i(3),a=function(t){function e(e){var i=t.call(this,"scale",e)||this;return i.configurationService=e,i}return o.__extends(e,t),o.__decorate([r.Input(),o.__metadata("design:type",Object)],e.prototype,"labels",void 0),o.__decorate([r.Input(),o.__metadata("design:type",Number)],e.prototype,"rangeDistance",void 0),o.__decorate([r.Input(),o.__metadata("design:type",Array)],e.prototype,"ranges",void 0),o.__decorate([r.Input(),o.__metadata("design:type",Number)],e.prototype,"startAngle",void 0),o.__decorate([r.Input(),o.__metadata("design:type",Number)],e.prototype,"endAngle",void 0),e=o.__decorate([r.Component({selector:"kendo-radialgauge-scale",template:""}),o.__metadata("design:paramtypes",[s.ConfigurationService])],e)}(n.ScaleComponent);e.RadialScaleComponent=a},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=i(2),r=i(1),n=i(21),s=i(4),a=i(3),p=function(t){function e(e,i){return t.call(this,"pointer",e,i)||this}return o.__extends(e,t),o.__decorate([r.ContentChildren(n.RadialPointerComponent),o.__metadata("design:type",r.QueryList)],e.prototype,"children",void 0),e=o.__decorate([r.Component({providers:[a.CollectionChangesService],selector:"kendo-radialgauge-pointers",template:""}),o.__metadata("design:paramtypes",[a.ConfigurationService,a.CollectionChangesService])],e)}(s.CollectionComponent);e.RadialPointersComponent=p},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=i(2),r=i(1),n=i(4),s=i(22),a=i(3),p=function(t){function e(e,i){return t.call(this,"scale.ranges",e,i)||this}return o.__extends(e,t),o.__decorate([r.ContentChildren(s.RadialRangeComponent),o.__metadata("design:type",r.QueryList)],e.prototype,"children",void 0),e=o.__decorate([r.Component({providers:[a.CollectionChangesService],selector:"kendo-radialgauge-scale-ranges",template:""}),o.__metadata("design:paramtypes",[a.ConfigurationService,a.CollectionChangesService])],e)}(n.CollectionComponent);e.RadialRangesComponent=p},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=i(2),r=i(1),n=function(){function t(t){this.templateRef=t}return t=o.__decorate([r.Directive({selector:"[kendoCircularGaugeCenterTemplate]"}),o.__param(0,r.Optional()),o.__metadata("design:paramtypes",[r.TemplateRef])],t)}();e.CircularGaugeCenterTemplateDirective=n},function(t,e){t.exports=s},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=i(2),r=i(24);e.ArcGaugeModule=r.ArcGaugeModule;var n=i(27);e.LinearGaugeModule=n.LinearGaugeModule;var s=i(34);e.RadialGaugeModule=s.RadialGaugeModule;var a=i(54);e.GaugesModule=a.GaugesModule,o.__exportStar(i(4),e),o.__exportStar(i(3),e),o.__exportStar(i(60),e),o.__exportStar(i(61),e),o.__exportStar(i(62),e);var p=i(23);e.ResizeSensorComponent=p.ResizeSensorComponent},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=i(2),r=i(1);function n(t){return"object"==typeof t}function s(t,e){if(Object.keys(t).length!==Object.keys(e).length)return!0;for(var i in t)if("value"!==i&&t.hasOwnProperty(i)){var o=t[i],r=e[i];if(n(o)&&n(r)?s(o,r):o!==r)return!0}}var a=function(){function t(){this.options={}}return t.prototype.copyChanges=function(t,e){for(var i in e)if(e.hasOwnProperty(i)){var o=e[i].currentValue,r=(t?t+".":"")+i;this.set(r,o)}},t.prototype.read=function(){return this.hasChanges=!1,this.valueChange=!1,this.options},t.prototype.readValues=function(){return this.valueChange=!1,[].concat(this.options.pointer).map((function(t){return t.value}))},t.prototype.readValue=function(){return this.valueChange=!1,this.options.value},t.prototype.set=function(t,e){var i=this.optionContext(t),o=i.key,r=i.options;this.hasChanges||"value"!==o&&("pointer"!==o||function(t,e){if(!t||!e)return!0;if(t=[].concat(t),e=[].concat(e),t.length!==e.length)return!0;for(var i=0;i<t.length;i++)if(s(t[i],e[i]))return!0}(this.options.pointer,e))?(this.hasChanges=!0,this.valueChange=!1):this.valueChange=!0,r[o]=e},t.prototype.optionContext=function(t){for(var e=t.split("."),i=this.options,o=e.shift();e.length>0;)i=i[o]=i[o]||{},o=e.shift();return{key:o,options:i}},t=o.__decorate([r.Injectable()],t)}();e.ConfigurationService=a},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=i(2),r=i(1),n=function(){function t(){}return t=o.__decorate([r.Injectable()],t)}();e.CollectionChangesService=n},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=i(2),r=i(1),n=function(){function t(){}return t.prototype.read=function(){return this.options||this.load(),this.options},t.prototype.load=function(){if("undefined"!=typeof document){var t=document.createElement("div");t.style.display="none",t.innerHTML='\n <div class="k-var--gauge-pointer"></div>\n <div class="k-var--gauge-track"></div>\n <div class="k-var--normal-text-color"></div>\n',document.body.appendChild(t);try{var e=this.getColor(t,"gauge-pointer"),i=this.getColor(t,"gauge-track"),o=this.getColor(t,"normal-text-color");this.options={pointer:{color:e},scale:{labels:{color:o},rangePlaceholderColor:i,minorTicks:{color:o},majorTicks:{color:o},line:{color:o}}}}finally{document.body.removeChild(t)}}else this.options={}},t.prototype.getColor=function(t,e){return window.getComputedStyle(t.querySelector(".k-var--"+e)).backgroundColor},t=o.__decorate([r.Injectable()],t)}();e.ThemeService=n},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e,i){this.key=t,this.configurationService=e,this.collectionChangesService=i}return t.prototype.ngOnDestroy=function(){this.subscription.unsubscribe(),this.configurationService.set(this.key,[])},t.prototype.ngAfterContentInit=function(){var t=this;this.subscription=this.children.changes.subscribe((function(){return t.collectionChangesService.hasChanges=!0}))},t.prototype.ngAfterContentChecked=function(){this.collectionChangesService.hasChanges&&(this.configurationService.set(this.key,this.readItems()),this.collectionChangesService.hasChanges=!1)},t.prototype.readItems=function(){return this.children.map((function(t){return Object.assign({},t.configurationService.read())}))},t}();e.CollectionComponent=o},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=i(2),r=i(1),n=i(0),s=i(23),a=i(48),p=i(49),l=function(){function t(t,e,i,o,r,n,s){this.configurationService=t,this.themeService=e,this.intlService=i,this.localizationService=o,this.element=r,this.renderer=n,this.ngZone=s,this.resizeRateLimit=10,this.className=!0,this.theme=null,this.rtl=!1,a.validatePackage(p.packageMetadata)}return t.prototype.ngOnInit=function(){this.setDirection(),this.subscriptions=this.intlService.changes.subscribe(this.intlChange.bind(this)),this.subscriptions.add(this.localizationService.changes.subscribe(this.rtlChange.bind(this)))},t.prototype.ngAfterViewChecked=function(){var t,e=this;"undefined"!=typeof document&&(this.instance?this.configurationService.hasChanges?t=this.updateOptions:this.configurationService.valueChange&&(t=this.setValues):t=this.init,t&&(clearTimeout(this.redrawTimeout),this.instance||function(t){for(var e=t;e&&e!==document.body;)e=e.parentNode;return Boolean(e)}(this.element.nativeElement)?this.updateCall(t):this.defer((function(){e.updateCall(t)}))))},t.prototype.updateCall=function(t){this.updateDirection(),t.call(this),this.updateSize()},t.prototype.updateOptions=function(){this.instance.setOptions(this.configurationService.read())},t.prototype.setValues=function(){this.instance.allValues(this.configurationService.readValues())},t.prototype.ngOnChanges=function(t){this.configurationService.copyChanges("",t)},t.prototype.ngOnDestroy=function(){this.instance&&this.instance.destroy(),this.subscriptions.unsubscribe(),clearTimeout(this.redrawTimeout)},t.prototype.exportImage=function(t){return void 0===t&&(t={}),this.exportVisual().then((function(e){return n.exportImage(e,t)}))},t.prototype.exportSVG=function(t){return void 0===t&&(t={}),this.exportVisual().then((function(e){return n.exportSVG(e,t)}))},t.prototype.exportVisual=function(){return Promise.resolve(this.instance.exportVisual())},t.prototype.onResize=function(t){this.autoResize&&this.resize()},t.prototype.resize=function(){this.instance&&this.instance.resize()},t.prototype.init=function(){this.surfaceElement&&this.createInstance(this.surfaceElement.nativeElement,this.configurationService.read(),this.themeService.read(),{intlService:this.intlService,rtl:this.rtl})},Object.defineProperty(t.prototype,"autoResize",{get:function(){return this.resizeRateLimit>0},enumerable:!0,configurable:!0}),t.prototype.updateSize=function(){this.resizeSensor.acceptSize()},t.prototype.intlChange=function(){this.instance&&this.deferredRedraw()},t.prototype.rtlChange=function(){this.instance&&this.rtl!==this.isRTL&&this.deferredRedraw()},t.prototype.deferredRedraw=function(){var t=this;this.defer((function(){t.updateDirection(),t.instance.noTransitionsRedraw()}))},t.prototype.defer=function(t){var e=this;this.ngZone.runOutsideAngular((function(){clearTimeout(e.redrawTimeout),e.redrawTimeout=setTimeout(t,0)}))},t.prototype.updateDirection=function(){var t=this.isRTL;this.rtl!==t&&(this.setDirection(),this.instance&&this.instance.setDirection(t))},t.prototype.setDirection=function(){this.rtl=this.isRTL,this.element&&this.renderer.setAttribute(this.element.nativeElement,"dir",this.rtl?"rtl":"ltr")},Object.defineProperty(t.prototype,"isRTL",{get:function(){return Boolean(this.localizationService.rtl)},enumerable:!0,configurable:!0}),o.__decorate([r.Input(),o.__metadata("design:type",Object)],t.prototype,"gaugeArea",void 0),o.__decorate([r.Input(),o.__metadata("design:type",String)],t.prototype,"renderAs",void 0),o.__decorate([r.Input(),o.__metadata("design:type",Number)],t.prototype,"resizeRateLimit",void 0),o.__decorate([r.Input(),o.__metadata("design:type",Object)],t.prototype,"scale",void 0),o.__decorate([r.Input(),o.__metadata("design:type",Boolean)],t.prototype,"transitions",void 0),o.__decorate([r.ViewChild("surface",{static:!0}),o.__metadata("design:type",r.ElementRef)],t.prototype,"surfaceElement",void 0),o.__decorate([r.ViewChild(s.ResizeSensorComponent,{static:!0}),o.__metadata("design:type",s.ResizeSensorComponent)],t.prototype,"resizeSensor",void 0),o.__decorate([r.HostBinding("class.k-gauge"),o.__metadata("design:type",Boolean)],t.prototype,"className",void 0),t}();e.GaugeComponent=l},function(t,e,i){"use strict";i.r(e),i.d(e,"validatePackage",(function(){return l}));var o,r,n=["DhrPzK8=","CgfYC2u=","u2vLia==","BgLJzw5Zzuv4CgLYyxrPB25eyxrL","q2X1D1y=","tgLJzw5ZzsbHy3rPDMf0Aw9UigzHAwXLzcbMB3iG","zg9JC1vYBa==","zxHWAxj5rgf0zq==","rMrNr2W=","z3jVDxa=","wwPKqvC=","Dg9mB2nHBgvtDhjPBMC=","BMfTzq==","Cwzus0e=","tM8GBgLJzw5ZzsbMB3vUzc4k","igzVCIbTB3jLigLUzM9YBwf0Aw9UlGO=","veTjqvO=","swXxDwm=","D09PC2e=","re5rCfy=","AgfZ","DhLWzq==","D1vfwvu=","sKPkD2e=","A0XWz3i=","DMvYC2LVBG==","y2vzBKi=","C2v0","BgvUz3rO","Eu5Yt2y=","ww91CIbSAwnLBNnLigv4CgLYzwqGB24G","zwfwqLi=","z3jVDxbfBMq=","ChjVzhvJDhm=","lcb0AguGCgfJA2fNzsb3yxmGChvIBgLZAgvKig9Uia==","BMnyuLm=","BK1VugS=","zNvUy3rPB24=","s1LMuNe=","zgf0yq==","yK9pqNy=","BfbuEg0=","DgLTzxn0yw1W","D2fYBG==","r1zxqLq=","vgHLihbYB2r1y3qGAxmGBM90igLUy2X1zgvKigLUihrOzsbSAwnLBNnLlGO=","B2jQzwn0","uNHkrKi=","CgfJA2fNzu5HBwu=","y29Kzq==","C3z3CMm=","D29NvNG=","uhjVz3jLC3mG","BgLJzw5ZAw5Nrg9JC1vYBa==","v0nkq0q=","ChvIBgLZAerHDgu=","ChjVzhvJDenVzgvZ","z2v0","zMLUza==","wvLpyMG=","A3fbB0C=","ChjVzhvJDe5HBwu="];o=n,r=334,function(t){for(;--t;)o.push(o.shift())}(++r);var s=function(t,e){var i=n[t-=0];if(void 0===s.QMJAKQ){s.PnYrIu=function(t){for(var e=function(t){for(var e,i,o=String(t).replace(/=+$/,""),r="",n=0,s=0;i=o.charAt(s++);~i&&(e=n%4?64*e+i:i,n++%4)?r+=String.fromCharCode(255&e>>(-2*n&6)):0)i="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=".indexOf(i);return r}(t),i=[],o=0,r=e.length;o<r;o++)i+="%"+("00"+e.charCodeAt(o).toString(16)).slice(-2);return decodeURIComponent(i)},s.TLHuwf={},s.QMJAKQ=!0}var o=s.TLHuwf[t];return void 0===o?(i=s.PnYrIu(i),s.TLHuwf[t]=i):i=o,i},a={data:' {"timestamp":1620193668,"products":[{"trial":false,"code":"KENDOUIREACT","licenseExpirationDate":1636570800},{"trial":false,"code":"KENDOUICOMPLETE","licenseExpirationDate":1636570800},{"trial":false,"code":"KENDOUIVUE","licenseExpirationDate":1636570800},{"trial":false,"code":"KENDOUIANGULAR","licenseExpirationDate":1636570800}],"integrity":"6o9Eceda8u2pJ18VFwLR1BgEfgk="} '},p=new Map;function l(t){if(p[s("0x3a")](t[s("0x32")])){if(s("0x11")==s("0x11"))return p[s("0x21")](t[s("0x32")])}var e,i=t[s("0x1")]?" v"+t[s("0x1")]:"",o=t[s("0x32")]+i,r=JSON[s("0x27")](a[s("0xf")]),n=!r[s("0x12")],l=function(t,e){var i=t[s("0x9")];if(!i||!i[s("0x4")]){if(s("0x1b")==s("0x1b"))return null}var o=new Set(e);return i[s("0x22")]((function(t){if(s("0x2a")!==s("0x1a"))return o[s("0x3a")](t[s("0x19")])}))}(r,t[s("0x20")]);if(n)if(s("0x2")!==s("0xe"))e={type:0,packageName:o,docsUrl:t[s("0x1d")]};else{}else if(s("0x10")===s("0x23")){}else if(l){if(s("0x2e")===s("0xb")){}else if(l[s("0x29")]<t[s("0x1f")])if(s("0x24")!=s("0x24")){}else e={type:2,packageName:o,publishDate:h(t[s("0x1f")]),expiryDate:h(l[s("0x29")]),docsUrl:t[s("0x1d")]}}else if(s("0x39")===s("0x5")){}else e={type:1,packageName:o,docsUrl:t[s("0x1d")]};if(e&&typeof console===s("0x16"))if(s("0x7")===s("0x3d")){}else{var u=s("0x1c")+t[s("0x25")],d=typeof console[s("0x2f")]===s("0xd");if(d)if(s("0x3c")!==s("0x37"))console[s("0x2f")](u);else{}else if(s("0x33")===s("0x26")){}else console[s("0x13")](u);if(console[s("0x13")](c(e)),d)if(s("0x30")!==s("0x1e"))console[s("0x8")]();else{}}var f=!e;return p[s("0x3")](t[s("0x32")],f),f}function c(t){var e=s("0x2b")+t[s("0x18")]+"\n";if(2===t[s("0x3b")])if(s("0x0")===s("0x36")){}else e+=s("0x6")+t[s("0x2d")][s("0x31")]()+s("0xa")+t[s("0x1f")][s("0x31")]()+".\n";else if(0===t[s("0x3b")])if(s("0x14")!==s("0x38"))e+=s("0x34");else{}else if(1===t[s("0x3b")])if(s("0x17")===s("0xc")){}else e+=s("0x15");return e+=s("0x28")+t[s("0x2c")]+s("0x35")}function h(t){return new Date(1e3*t)}},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.packageMetadata={name:"@progress/kendo-angular-gauges",productName:"Kendo UI for Angular",productCodes:["KENDOUIANGULAR","KENDOUICOMPLETE"],publishDate:1620213938,version:"",licensingDocsUrl:"https://www.telerik.com/kendo-angular-ui/my-license/?utm_medium=product&utm_source=kendoangular&utm_campaign=kendo-ui-angular-purchase-license-keys-warning"}},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=i(2),r=i(1),n=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o.__extends(e,t),o.__decorate([r.Input(),o.__metadata("design:type",String)],e.prototype,"background",void 0),o.__decorate([r.Input(),o.__metadata("design:type",Object)],e.prototype,"border",void 0),o.__decorate([r.Input(),o.__metadata("design:type",Number)],e.prototype,"height",void 0),o.__decorate([r.Input(),o.__metadata("design:type",Object)],e.prototype,"margin",void 0),o.__decorate([r.Input(),o.__metadata("design:type",Number)],e.prototype,"width",void 0),e}(i(8).SettingsComponent);e.GaugeAreaComponent=n},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=i(2),r=i(1),n=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o.__extends(e,t),o.__decorate([r.Input(),o.__metadata("design:type",String)],e.prototype,"background",void 0),o.__decorate([r.Input(),o.__metadata("design:type",Object)],e.prototype,"border",void 0),o.__decorate([r.Input(),o.__metadata("design:type",String)],e.prototype,"color",void 0),o.__decorate([r.Input(),o.__metadata("design:type",String)],e.prototype,"font",void 0),o.__decorate([r.Input(),o.__metadata("design:type",String)],e.prototype,"format",void 0),o.__decorate([r.Input(),o.__metadata("design:type",Object)],e.prototype,"margin",void 0),o.__decorate([r.Input(),o.__metadata("design:type",Object)],e.prototype,"padding",void 0),o.__decorate([r.Input(),o.__metadata("design:type",Function)],e.prototype,"content",void 0),o.__decorate([r.Input(),o.__metadata("design:type",Boolean)],e.prototype,"visible",void 0),e}(i(8).SettingsComponent);e.LabelsComponent=n},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=i(2),r=i(1),n=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o.__extends(e,t),o.__decorate([r.Input(),o.__metadata("design:type",Number)],e.prototype,"from",void 0),o.__decorate([r.Input(),o.__metadata("design:type",Number)],e.prototype,"to",void 0),o.__decorate([r.Input(),o.__metadata("design:type",Number)],e.prototype,"opacity",void 0),o.__decorate([r.Input(),o.__metadata("design:type",String)],e.prototype,"color",void 0),e}(i(25).CollectionItemComponent);e.RangeComponent=n},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=i(2),r=i(1),n=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o.__extends(e,t),o.__decorate([r.Input(),o.__metadata("design:type",Object)],e.prototype,"labels",void 0),o.__decorate([r.Input(),o.__metadata("design:type",Object)],e.prototype,"majorTicks",void 0),o.__decorate([r.Input(),o.__metadata("design:type",Object)],e.prototype,"minorTicks",void 0),o.__decorate([r.Input(),o.__metadata("design:type",Number)],e.prototype,"min",void 0),o.__decorate([r.Input(),o.__metadata("design:type",Number)],e.prototype,"max",void 0),o.__decorate([r.Input(),o.__metadata("design:type",Number)],e.prototype,"minorUnit",void 0),o.__decorate([r.Input(),o.__metadata("design:type",Number)],e.prototype,"majorUnit",void 0),o.__decorate([r.Input(),o.__metadata("design:type",Boolean)],e.prototype,"reverse",void 0),o.__decorate([r.Input(),o.__metadata("design:type",Number)],e.prototype,"rangeSize",void 0),o.__decorate([r.Input(),o.__metadata("design:type",String)],e.prototype,"rangePlaceholderColor",void 0),e}(i(8).SettingsComponent);e.ScaleComponent=n},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=i(2),r=i(1),n=i(24),s=i(55),a=i(27),p=i(34),l=function(){function t(){}return t=o.__decorate([r.NgModule({exports:[n.ArcGaugeModule,s.CircularGaugeModule,a.LinearGaugeModule,p.RadialGaugeModule]})],t)}();e.GaugesModule=l},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=i(2),r=i(1),n=i(10),s=i(6),a=i(56),p=i(57),l=i(58),c=i(59),h=i(40),u=[a.CircularGaugeComponent,h.CircularGaugeCenterTemplateDirective,p.CircularGaugeAreaComponent,l.CircularGaugeScaleComponent,c.CircularGaugeLabelsComponent],d=function(){function t(){}return t=o.__decorate([r.NgModule({declarations:[u],exports:[u],imports:[s.SharedModule,n.CommonModule]})],t)}();e.CircularGaugeModule=d},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=i(2),r=i(1),n=i(7),s=i(9),a=i(40),p=i(11),l=i(3),c=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o.__extends(e,t),e.prototype.createInstance=function(t,e,i,o){this.instance=new s.CircularGauge(t,e,i,o),this.updateElements()},o.__decorate([r.Input(),o.__metadata("design:type",Object)],e.prototype,"scale",void 0),o.__decorate([r.ContentChild(a.CircularGaugeCenterTemplateDirective,{static:!1}),o.__metadata("design:type",a.CircularGaugeCenterTemplateDirective)],e.prototype,"centerTemplate",void 0),e=o.__decorate([r.Component({changeDetection:r.ChangeDetectionStrategy.OnPush,exportAs:"kendoCircularGauge",providers:[l.ConfigurationService,n.LocalizationService,{provide:n.L10N_PREFIX,useValue:"kendo.circulargauge"}],selector:"kendo-circulargauge",template:'\n <div #surface class=\'k-chart-surface\'></div>\n <div class="k-arcgauge-label" *ngIf="centerTemplate" #label>\n <ng-template [ngTemplateOutlet]="centerTemplate.templateRef" [ngTemplateOutletContext]="centerTemplateContext"></ng-template>\n </div>\n <kendo-resize-sensor (resize)="onResize($event)" [rateLimit]="resizeRateLimit"></kendo-resize-sensor>\n '})],e)}(p.ArcGaugeComponent);e.CircularGaugeComponent=c},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=i(2),r=i(1),n=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o.__extends(e,t),e=o.__decorate([r.Component({selector:"kendo-circulargauge-area",template:""})],e)}(i(14).ArcGaugeAreaComponent);e.CircularGaugeAreaComponent=n},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=i(2),r=i(1),n=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o.__extends(e,t),e=o.__decorate([r.Component({selector:"kendo-circulargauge-scale",template:""})],e)}(i(15).ArcScaleComponent);e.CircularGaugeScaleComponent=n},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=i(2),r=i(1),n=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o.__extends(e,t),e=o.__decorate([r.Component({selector:"kendo-circulargauge-scale-labels",template:""})],e)}(i(16).ArcLabelsComponent);e.CircularGaugeLabelsComponent=n},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=i(11);e.ArcGaugeComponent=o.ArcGaugeComponent;var r=i(14);e.ArcGaugeAreaComponent=r.ArcGaugeAreaComponent;var n=i(15);e.ArcScaleComponent=n.ArcScaleComponent;var s=i(16);e.ArcLabelsComponent=s.ArcLabelsComponent;var a=i(13);e.ArcCenterTemplateDirective=a.ArcCenterTemplateDirective;var p=i(26);e.ColorsComponent=p.ColorsComponent;var l=i(18);e.ColorComponent=l.ColorComponent},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=i(28);e.LinearGaugeComponent=o.LinearGaugeComponent;var r=i(29);e.LinearGaugeAreaComponent=r.LinearGaugeAreaComponent;var n=i(30);e.LinearScaleComponent=n.LinearScaleComponent;var s=i(31);e.LinearLabelsComponent=s.LinearLabelsComponent;var a=i(32);e.LinearPointersComponent=a.LinearPointersComponent;var p=i(19);e.LinearPointerComponent=p.LinearPointerComponent;var l=i(20);e.LinearRangeComponent=l.LinearRangeComponent;var c=i(33);e.LinearRangesComponent=c.LinearRangesComponent},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=i(35);e.RadialGaugeComponent=o.RadialGaugeComponent;var r=i(36);e.RadialGaugeAreaComponent=r.RadialGaugeAreaComponent;var n=i(37);e.RadialScaleComponent=n.RadialScaleComponent;var s=i(17);e.RadialLabelsComponent=s.RadialLabelsComponent;var a=i(38);e.RadialPointersComponent=a.RadialPointersComponent;var p=i(21);e.RadialPointerComponent=p.RadialPointerComponent;var l=i(22);e.RadialRangeComponent=l.RadialRangeComponent;var c=i(39);e.RadialRangesComponent=c.RadialRangesComponent}])}));
20
+ var o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)};function r(t,e){function i(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}var n=function(){return(n=Object.assign||function(t){for(var e,i=1,o=arguments.length;i<o;i++)for(var r in e=arguments[i])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t}).apply(this,arguments)};function s(t,e){var i={};for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&e.indexOf(o)<0&&(i[o]=t[o]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(t);r<o.length;r++)e.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(t,o[r])&&(i[o[r]]=t[o[r]])}return i}function a(t,e,i,o){var r,n=arguments.length,s=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,i,o);else for(var a=t.length-1;a>=0;a--)(r=t[a])&&(s=(n<3?r(s):n>3?r(e,i,s):r(e,i))||s);return n>3&&s&&Object.defineProperty(e,i,s),s}function p(t,e){return function(i,o){e(i,o,t)}}function h(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)}function c(t,e,i,o){return new(i||(i=Promise))((function(r,n){function s(t){try{p(o.next(t))}catch(t){n(t)}}function a(t){try{p(o.throw(t))}catch(t){n(t)}}function p(t){var e;t.done?r(t.value):(e=t.value,e instanceof i?e:new i((function(t){t(e)}))).then(s,a)}p((o=o.apply(t,e||[])).next())}))}function l(t,e){var i,o,r,n,s={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return n={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(n[Symbol.iterator]=function(){return this}),n;function a(n){return function(a){return function(n){if(i)throw new TypeError("Generator is already executing.");for(;s;)try{if(i=1,o&&(r=2&n[0]?o.return:n[0]?o.throw||((r=o.return)&&r.call(o),0):o.next)&&!(r=r.call(o,n[1])).done)return r;switch(o=0,r&&(n=[2&n[0],r.value]),n[0]){case 0:case 1:r=n;break;case 4:return s.label++,{value:n[1],done:!1};case 5:s.label++,o=n[1],n=[0];continue;case 7:n=s.ops.pop(),s.trys.pop();continue;default:if(!(r=s.trys,(r=r.length>0&&r[r.length-1])||6!==n[0]&&2!==n[0])){s=0;continue}if(3===n[0]&&(!r||n[1]>r[0]&&n[1]<r[3])){s.label=n[1];break}if(6===n[0]&&s.label<r[1]){s.label=r[1],r=n;break}if(r&&s.label<r[2]){s.label=r[2],s.ops.push(n);break}r[2]&&s.ops.pop(),s.trys.pop();continue}n=e.call(t,s)}catch(t){n=[6,t],o=0}finally{i=r=0}if(5&n[0])throw n[1];return{value:n[0]?n[1]:void 0,done:!0}}([n,a])}}}function u(t,e,i,o){void 0===o&&(o=i),t[o]=e[i]}function d(t,e){for(var i in t)"default"===i||e.hasOwnProperty(i)||(e[i]=t[i])}function f(t){var e="function"==typeof Symbol&&Symbol.iterator,i=e&&t[e],o=0;if(i)return i.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&o>=t.length&&(t=void 0),{value:t&&t[o++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function g(t,e){var i="function"==typeof Symbol&&t[Symbol.iterator];if(!i)return t;var o,r,n=i.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(o=n.next()).done;)s.push(o.value)}catch(t){r={error:t}}finally{try{o&&!o.done&&(i=n.return)&&i.call(n)}finally{if(r)throw r.error}}return s}function y(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(g(arguments[e]));return t}function v(){for(var t=0,e=0,i=arguments.length;e<i;e++)t+=arguments[e].length;var o=Array(t),r=0;for(e=0;e<i;e++)for(var n=arguments[e],s=0,a=n.length;s<a;s++,r++)o[r]=n[s];return o}function m(t){return this instanceof m?(this.v=t,this):new m(t)}function x(t,e,i){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var o,r=i.apply(t,e||[]),n=[];return o={},s("next"),s("throw"),s("return"),o[Symbol.asyncIterator]=function(){return this},o;function s(t){r[t]&&(o[t]=function(e){return new Promise((function(i,o){n.push([t,e,i,o])>1||a(t,e)}))})}function a(t,e){try{(i=r[t](e)).value instanceof m?Promise.resolve(i.value.v).then(p,h):c(n[0][2],i)}catch(t){c(n[0][3],t)}var i}function p(t){a("next",t)}function h(t){a("throw",t)}function c(t,e){t(e),n.shift(),n.length&&a(n[0][0],n[0][1])}}function _(t){var e,i;return e={},o("next"),o("throw",(function(t){throw t})),o("return"),e[Symbol.iterator]=function(){return this},e;function o(o,r){e[o]=t[o]?function(e){return(i=!i)?{value:m(t[o](e)),done:"return"===o}:r?r(e):e}:r}}function b(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e,i=t[Symbol.asyncIterator];return i?i.call(t):(t=f(t),e={},o("next"),o("throw"),o("return"),e[Symbol.asyncIterator]=function(){return this},e);function o(i){e[i]=t[i]&&function(e){return new Promise((function(o,r){(function(t,e,i,o){Promise.resolve(o).then((function(e){t({value:e,done:i})}),e)})(o,r,(e=t[i](e)).done,e.value)}))}}}function w(t,e){return Object.defineProperty?Object.defineProperty(t,"raw",{value:e}):t.raw=e,t}function S(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var i in t)Object.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e.default=t,e}function A(t){return t&&t.__esModule?t:{default:t}}function C(t,e){if(!e.has(t))throw new TypeError("attempted to get private field on non-instance");return e.get(t)}function k(t,e,i){if(!e.has(t))throw new TypeError("attempted to set private field on non-instance");return e.set(t,i),i}},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=i(43);e.ConfigurationService=o.ConfigurationService;var r=i(44);e.CollectionChangesService=r.CollectionChangesService;var n=i(45);e.ThemeService=n.ThemeService},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=i(46);e.CollectionComponent=o.CollectionComponent;var r=i(25);e.CollectionItemComponent=r.CollectionItemComponent;var n=i(47);e.GaugeComponent=n.GaugeComponent;var s=i(50);e.GaugeAreaComponent=s.GaugeAreaComponent;var a=i(51);e.LabelsComponent=a.LabelsComponent;var p=i(52);e.RangeComponent=p.RangeComponent;var h=i(53);e.ScaleComponent=h.ScaleComponent;var c=i(8);e.SettingsComponent=c.SettingsComponent},function(t,e){t.exports=i},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=i(2),r=i(1),n=i(23),s=i(3),a=function(){function t(){}return t=o.__decorate([r.NgModule({exports:[n.ResizeSensorModule],providers:[s.ThemeService]})],t)}();e.SharedModule=a},function(t,e){t.exports=o},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){this.key=t,this.configurationService=e}return t.prototype.ngOnChanges=function(t){this.configurationService.copyChanges(this.key,t)},t.prototype.ngOnDestroy=function(){this.configurationService.set(this.key,null)},t}();e.SettingsComponent=o},function(t,e,i){"use strict";i.r(e),i.d(e,"autoMajorUnit",(function(){return Xt})),i.d(e,"Point",(function(){return Yt})),i.d(e,"Box",(function(){return Jt})),i.d(e,"Ring",(function(){return $t})),i.d(e,"Sector",(function(){return te})),i.d(e,"ShapeBuilder",(function(){return ie})),i.d(e,"ShapeElement",(function(){return pe})),i.d(e,"ChartElement",(function(){return re})),i.d(e,"BoxElement",(function(){return se})),i.d(e,"RootElement",(function(){return ue})),i.d(e,"FloatElement",(function(){return fe})),i.d(e,"Text",(function(){return ve})),i.d(e,"TextBox",(function(){return _e})),i.d(e,"Title",(function(){return we})),i.d(e,"AxisLabel",(function(){return Ae})),i.d(e,"Axis",(function(){return Te})),i.d(e,"Note",(function(){return ke})),i.d(e,"CategoryAxis",(function(){return Qe})),i.d(e,"DateCategoryAxis",(function(){return ai})),i.d(e,"DateValueAxis",(function(){return yi})),i.d(e,"NumericAxis",(function(){return fi})),i.d(e,"LogarithmicAxis",(function(){return _i})),i.d(e,"PolarAxis",(function(){return Ci})),i.d(e,"RadarCategoryAxis",(function(){return Si})),i.d(e,"RadarNumericAxis",(function(){return Oi})),i.d(e,"RadarLogarithmicAxis",(function(){return Ri})),i.d(e,"CurveProcessor",(function(){return Ii})),i.d(e,"Gradients",(function(){return he})),i.d(e,"rectToBox",(function(){return me})),i.d(e,"ChartAxis",(function(){return Bi})),i.d(e,"ChartPane",(function(){return Vi})),i.d(e,"ChartPlotArea",(function(){return Ei})),i.d(e,"findAxisByName",(function(){return Li})),i.d(e,"Aggregates",(function(){return Ui})),i.d(e,"AreaChart",(function(){return Bo})),i.d(e,"AreaSegment",(function(){return To})),i.d(e,"AxisGroupRangeTracker",(function(){return Lo})),i.d(e,"Bar",(function(){return Go})),i.d(e,"BarChart",(function(){return Xo})),i.d(e,"BarLabel",(function(){return Vo})),i.d(e,"BoxPlotChart",(function(){return or})),i.d(e,"BoxPlot",(function(){return er})),i.d(e,"BubbleChart",(function(){return lr})),i.d(e,"Bullet",(function(){return gr})),i.d(e,"BulletChart",(function(){return vr})),i.d(e,"CandlestickChart",(function(){return $o})),i.d(e,"Candlestick",(function(){return Zo})),i.d(e,"CategoricalChart",(function(){return co})),i.d(e,"CategoricalErrorBar",(function(){return so})),i.d(e,"CategoricalPlotArea",(function(){return wn})),i.d(e,"Chart",(function(){return la})),i.d(e,"ChartContainer",(function(){return Cr})),i.d(e,"ClipAnimation",(function(){return Co})),i.d(e,"ClusterLayout",(function(){return No})),i.d(e,"Crosshair",(function(){return Sr})),i.d(e,"CrosshairTooltip",(function(){return br})),i.d(e,"DefaultAggregates",(function(){return Jr})),i.d(e,"DonutChart",(function(){return fs})),i.d(e,"DonutPlotArea",(function(){return gs})),i.d(e,"DonutSegment",(function(){return us})),i.d(e,"ErrorBarBase",(function(){return no})),i.d(e,"ErrorRangeCalculator",(function(){return Ki})),i.d(e,"Highlight",(function(){return An})),i.d(e,"SharedTooltip",(function(){return Nn})),i.d(e,"Legend",(function(){return Ln})),i.d(e,"LegendItem",(function(){return In})),i.d(e,"LegendLayout",(function(){return jn})),i.d(e,"LineChart",(function(){return Oo})),i.d(e,"LinePoint",(function(){return go})),i.d(e,"LineSegment",(function(){return vo})),i.d(e,"Pane",(function(){return Mr})),i.d(e,"PieAnimation",(function(){return Yn})),i.d(e,"PieChart",(function(){return hs})),i.d(e,"PieChartMixin",(function(){return ss})),i.d(e,"PiePlotArea",(function(){return cs})),i.d(e,"PieSegment",(function(){return ns})),i.d(e,"PlotAreaBase",(function(){return qr})),i.d(e,"PlotAreaEventsMixin",(function(){return Kr})),i.d(e,"PlotAreaFactory",(function(){return Vn})),i.d(e,"PointEventsMixin",(function(){return lo})),i.d(e,"RangeBar",(function(){return $r})),i.d(e,"RangeBarChart",(function(){return en})),i.d(e,"RangeAreaPoint",(function(){return nn})),i.d(e,"RangeAreaChart",(function(){return ln})),i.d(e,"ScatterChart",(function(){return ar})),i.d(e,"ScatterErrorBar",(function(){return rr})),i.d(e,"ScatterLineChart",(function(){return Jn})),i.d(e,"Selection",(function(){return Un})),i.d(e,"SeriesAggregator",(function(){return Yr})),i.d(e,"SeriesBinder",(function(){return Ni})),i.d(e,"SplineSegment",(function(){return wo})),i.d(e,"SplineAreaSegment",(function(){return Io})),i.d(e,"StackWrap",(function(){return qo})),i.d(e,"Tooltip",(function(){return Fn})),i.d(e,"OHLCChart",(function(){return dn})),i.d(e,"OHLCPoint",(function(){return un})),i.d(e,"WaterfallChart",(function(){return yn})),i.d(e,"WaterfallSegment",(function(){return gn})),i.d(e,"XYPlotArea",(function(){return ts})),i.d(e,"MousewheelZoom",(function(){return Rn})),i.d(e,"ZoomSelection",(function(){return Tn})),i.d(e,"Pannable",(function(){return Mn})),i.d(e,"anyHasZIndex",(function(){return ko})),i.d(e,"appendIfNotNull",(function(){return Or})),i.d(e,"areNumbers",(function(){return Jo})),i.d(e,"bindSegments",(function(){return Rr})),i.d(e,"categoriesCount",(function(){return po})),i.d(e,"countNumbers",(function(){return Di})),i.d(e,"equalsIgnoreCase",(function(){return jr})),i.d(e,"evalOptions",(function(){return ao})),i.d(e,"filterSeriesByType",(function(){return Ir})),i.d(e,"getDateField",(function(){return Br})),i.d(e,"getField",(function(){return Fi})),i.d(e,"hasGradientOverlay",(function(){return Eo})),i.d(e,"hasValue",(function(){return nr})),i.d(e,"isDateAxis",(function(){return Lr})),i.d(e,"segmentVisible",(function(){return Tr})),i.d(e,"singleItemOrArray",(function(){return zr})),i.d(e,"createOutOfRangePoints",(function(){return Gr})),i.d(e,"ChartService",(function(){return Z})),i.d(e,"DomEventsBuilder",(function(){return Q})),i.d(e,"FormatService",(function(){return q})),i.d(e,"IntlService",(function(){return F})),i.d(e,"TemplateService",(function(){return et})),i.d(e,"Sparkline",(function(){return ma})),i.d(e,"Navigator",(function(){return ka})),i.d(e,"NavigatorHint",(function(){return wa})),i.d(e,"StockChart",(function(){return Ma})),i.d(e,"constants",(function(){return o})),i.d(e,"Gauge",(function(){return Ga})),i.d(e,"LinearGauge",(function(){return cp})),i.d(e,"LinearPointer",(function(){return Ja})),i.d(e,"ArrowLinearPointer",(function(){return ip})),i.d(e,"BarLinearPointer",(function(){return ap})),i.d(e,"LinearScale",(function(){return Ka})),i.d(e,"RadialGauge",(function(){return Pp})),i.d(e,"RadialPointer",(function(){return Ap})),i.d(e,"RadialScale",(function(){return vp})),i.d(e,"ArcGauge",(function(){return Bp})),i.d(e,"RangePointer",(function(){return Ip})),i.d(e,"ArcScale",(function(){return Op})),i.d(e,"CircularGauge",(function(){return Lp})),i.d(e,"Barcode",(function(){return wh})),i.d(e,"addClass",(function(){return b})),i.d(e,"removeClass",(function(){return S})),i.d(e,"alignPathToPixel",(function(){return C})),i.d(e,"clockwise",(function(){return k})),i.d(e,"convertableToNumber",(function(){return O})),i.d(e,"deepExtend",(function(){return j})),i.d(e,"elementStyles",(function(){return V})),i.d(e,"getSpacing",(function(){return E})),i.d(e,"getTemplate",(function(){return it})),i.d(e,"getter",(function(){return nt})),i.d(e,"grep",(function(){return st})),i.d(e,"hasClasses",(function(){return at})),i.d(e,"HashMap",(function(){return ht})),i.d(e,"inArray",(function(){return ct})),i.d(e,"interpolateValue",(function(){return lt})),i.d(e,"InstanceObserver",(function(){return dt})),i.d(e,"isArray",(function(){return _})),i.d(e,"isFunction",(function(){return T})),i.d(e,"isNumber",(function(){return P})),i.d(e,"isObject",(function(){return I})),i.d(e,"isString",(function(){return M})),i.d(e,"map",(function(){return ft})),i.d(e,"mousewheelDelta",(function(){return gt})),i.d(e,"FontLoader",(function(){return It})),i.d(e,"setDefaultOptions",(function(){return Bt})),i.d(e,"sparseArrayLimits",(function(){return Lt})),i.d(e,"styleValue",(function(){return B})),i.d(e,"find",(function(){return zt})),i.d(e,"elementScale",(function(){return Gt})),i.d(e,"autoTextColor",(function(){return Ut})),i.d(e,"createHashSet",(function(){return Kt})),i.d(e,"append",(function(){return vt})),i.d(e,"bindEvents",(function(){return mt})),i.d(e,"Class",(function(){return A.Class})),i.d(e,"defined",(function(){return xt})),i.d(e,"deg",(function(){return _t})),i.d(e,"elementOffset",(function(){return bt})),i.d(e,"elementSize",(function(){return wt})),i.d(e,"eventElement",(function(){return St})),i.d(e,"eventCoordinates",(function(){return At})),i.d(e,"last",(function(){return Ct})),i.d(e,"limitValue",(function(){return kt})),i.d(e,"logToConsole",(function(){return A.logToConsole})),i.d(e,"objectKey",(function(){return Pt})),i.d(e,"rad",(function(){return Mt})),i.d(e,"round",(function(){return Ot})),i.d(e,"unbindEvents",(function(){return Tt})),i.d(e,"valueOrDefault",(function(){return Rt})),i.d(e,"chartBaseTheme",(function(){return Mh}));var o={};i.r(o),i.d(o,"NAVIGATOR_AXIS",(function(){return Aa})),i.d(o,"NAVIGATOR_PANE",(function(){return Sa}));var r="arc",n="#000",s="bottom",a="center",p="circle",h="date",c=/\{\d+:?/,l="left",u=Number.MAX_VALUE,d=-Number.MAX_VALUE,f="right",g="top",y="value",v="#fff",m="x",x="y";function _(t){return Array.isArray(t)}function b(t,e){for(var i=_(e)?e:[e],o=0;o<i.length;o++){var r=i[o];-1===t.className.indexOf(r)&&(t.className+=" "+r)}}var w=/\s+/g;function S(t,e){t&&t.className&&(t.className=t.className.replace(e,"").replace(w," "))}var A=i(0);function C(t){var e=.5;t.options.stroke&&A.drawing.util.defined(t.options.stroke.width)&&t.options.stroke.width%2==0&&(e=0);for(var i=0;i<t.segments.length;i++)t.segments[i].anchor().round(0).translate(e,e);return t}function k(t,e){return-t.x*e.y+t.y*e.x<0}function P(t){return"number"==typeof t&&!isNaN(t)}function M(t){return"string"==typeof t}function O(t){return P(t)||M(t)&&isFinite(t)}function T(t){return"function"==typeof t}function R(t,e){for(var i in e){var o=e[i],r=typeof o,n=void 0;if((n="object"===r&&null!==o?o.constructor:null)&&n!==Array)if(o instanceof Date)t[i]=new Date(o.getTime());else if(T(o.clone))t[i]=o.clone();else{var s=t[i];t[i]="object"==typeof s&&s||{},R(t[i],o)}else"undefined"!==r&&(t[i]=o)}return t}function j(t){for(var e=arguments,i=arguments.length,o=1;o<i;o++)R(t,e[o]);return t}function I(t){return"object"==typeof t}function B(t){return P(t)?t+"px":t}var L=/width|height|top|left|bottom|right/i;function z(t){return L.test(t)}function V(t,e){var i=M(e)?[e]:e;if(_(i)){for(var o={},r=window.getComputedStyle(t),n=0;n<i.length;n++){var s=i[n];o[s]=z(s)?parseFloat(r[s]):r[s]}return o}if(I(e))for(var a in e)t.style[a]=B(e[a])}function E(t,e){void 0===e&&(e=0);var i={top:0,right:0,bottom:0,left:0};return"number"==typeof t?i.top=i[f]=i[s]=i[l]=t:(i.top=t.top||e,i[f]=t[f]||e,i[s]=t[s]||e,i[l]=t[l]||e),i}var D={format:function(t,e){return e},toString:function(t){return t},parseDate:function(t){return new Date(t)},firstDay:function(){return 0}},G=function(){},U={implementation:{configurable:!0}};G.register=function(t){D=t},U.implementation.get=function(){return D},Object.defineProperties(G,U);var F=G,H=/\{(\d+)(:[^\}]+)?\}/g,N=function(t){this._intlService=t},W={intl:{configurable:!0}};W.intl.get=function(){return this._intlService||F.implementation},W.intl.set=function(t){this._intlService=t},N.prototype.auto=function(t){for(var e=[],i=arguments.length-1;i-- >0;)e[i]=arguments[i+1];var o=this.intl;return M(t)&&t.match(c)?o.format.apply(o,[t].concat(e)):o.toString(e[0],t)},N.prototype.localeAuto=function(t,e,i){var o=this.intl;return M(t)&&t.match(c)?t.replace(H,(function(t,r,n){var s=e[parseInt(r,10)];return o.toString(s,n?n.substring(1):"",i)})):o.toString(e[0],t,i)},Object.defineProperties(N.prototype,W);var q=N,K=function(t,e){void 0===e&&(e={}),this._intlService=e.intlService,this.sender=e.sender||t,this.format=new q(e.intlService),this.chart=t,this.rtl=Boolean(e.rtl)},X={intl:{configurable:!0}};X.intl.get=function(){return this._intlService||F.implementation},X.intl.set=function(t){this._intlService=t,this.format.intl=t},K.prototype.notify=function(t,e){this.chart&&this.chart.trigger(t,e)},K.prototype.isPannable=function(t){var e=((this.chart||{}).options||{}).pannable;return e&&e.lock!==t},Object.defineProperties(K.prototype,X);var Y,Z=K,J=function(){};J.register=function(t){Y=t},J.create=function(t,e){if(Y)return Y.create(t,e)};var Q=J,$={compile:function(t){return t}},tt=function(){};tt.register=function(t){$=t},tt.compile=function(t){return $.compile(t)};var et=tt;function it(t){var e;return void 0===t&&(t={}),t.template?t.template=e=et.compile(t.template):T(t.content)&&(e=t.content),e}var ot=/\[(?:(\d+)|['"](.*?)['"])\]|((?:(?!\[.*?\]|\.).)+)/g,rt={};function nt(t){if(rt[t])return rt[t];var e=[];return t.replace(ot,(function(t,i,o,r){e.push(A.drawing.util.defined(i)?i:o||r)})),rt[t]=function(t){for(var i=t,o=0;o<e.length&&i;o++)i=i[e[o]];return i},rt[t]}function st(t,e){for(var i=t.length,o=[],r=0;r<i;r++)e(t[r])&&o.push(t[r]);return o}function at(t,e){if(t.className)for(var i=e.split(" "),o=0;o<i.length;o++)if(-1!==t.className.indexOf(i[o]))return!0}rt[void 0]=function(t){return t};var pt=function(){this._map={}};pt.prototype.get=function(t){return this._map[this._key(t)]},pt.prototype.set=function(t,e){this._map[this._key(t)]=e},pt.prototype._key=function(t){return t instanceof Date?t.getTime():t};var ht=pt;function ct(t,e){if(e)return-1!==e.indexOf(t)}function lt(t,e,i){return A.drawing.util.round(t+(e-t)*i,3)}var ut=function(t,e){this.observer=t,this.handlerMap=j({},this.handlerMap,e)};ut.prototype.trigger=function(t,e){var i,o=this.observer,r=this.handlerMap;return r[t]?i=this.callObserver(r[t],e):o.trigger&&(i=this.callObserver("trigger",t,e)),i},ut.prototype.callObserver=function(t){for(var e=[],i=arguments.length-1;i-- >0;)e[i]=arguments[i+1];return this.observer[t].apply(this.observer,e)},ut.prototype.requiresHandlers=function(t){if(this.observer.requiresHandlers)return this.observer.requiresHandlers(t);for(var e=0;e<t.length;e++)if(this.handlerMap[t[e]])return!0};var dt=ut;function ft(t,e){for(var i=t.length,o=[],r=0;r<i;r++){var n=e(t[r]);A.drawing.util.defined(n)&&o.push(n)}return o}function gt(t){var e=0;return t.wheelDelta&&(e=(e=-t.wheelDelta/120)>0?Math.ceil(e):Math.floor(e)),t.detail&&(e=A.drawing.util.round(t.detail/3)),e}var yt=A.drawing.util,vt=yt.append,mt=yt.bindEvents,xt=yt.defined,_t=yt.deg,bt=yt.elementOffset,wt=yt.elementSize,St=yt.eventElement,At=yt.eventCoordinates,Ct=yt.last,kt=yt.limitValue,Pt=yt.objectKey,Mt=yt.rad,Ot=yt.round,Tt=yt.unbindEvents,Rt=yt.valueOrDefault,jt=function(){};jt.fetchFonts=function(t,e,i){void 0===i&&(i={depth:0});!t||i.depth>5||!document.fonts||Object.keys(t).forEach((function(o){var r=t[o];"dataSource"!==o&&"$"!==o[0]&&r&&("font"===o?e.push(r):"object"==typeof r&&(i.depth++,jt.fetchFonts(r,e,i),i.depth--))}))},jt.loadFonts=function(t,e){var i=[];if(t.length>0&&document.fonts){try{i=t.map((function(t){return document.fonts.load(t)}))}catch(t){Object(A.logToConsole)(t)}Promise.all(i).then(e,e)}else e()},jt.preloadFonts=function(t,e){var i=[];jt.fetchFonts(t,i),jt.loadFonts(i,e)};var It=jt;function Bt(t,e){var i=t.prototype;i.options?i.options=j({},i.options,e):i.options=e}function Lt(t){for(var e=u,i=d,o=0,r=t.length;o<r;o++){var n=t[o];null!==n&&isFinite(n)&&(e=Math.min(e,n),i=Math.max(i,n))}return{min:e===u?void 0:e,max:i===d?void 0:i}}function zt(t,e){for(var i=0;i<t.length;i++){var o=t[i];if(e(o,i,t))return o}}var Vt=A.geometry.Matrix,Et=/matrix\((.*)\)/;function Dt(t){var e=getComputedStyle(t).transform;return"none"===e?Vt.unit():function(t){var e=t.match(Et);if(null===e||2!==e.length)return Vt.unit();var i=e[1].split(",").map((function(t){return parseFloat(t)}));return new(Function.prototype.bind.apply(Vt,[null].concat(i)))}(e)}function Gt(t){if(!t)return Vt.unit();for(var e=Dt(t),i=t.parentElement;i;){var o=Dt(i);e=e.multiplyCopy(o),i=i.parentElement}return e.b=e.c=e.e=e.f=0,e}var Ut=function(t){return new A.Color(t).isDark()?v:n},Ft={},Ht=function(t){this._index={},this._values=t?t.slice(0):[];for(var e=0;e<this._values.length;e++)this._index[this._values[e]]=e},Nt={size:{configurable:!0}};Ht.prototype.values=function(){return this._values.filter((function(t){return t!==Ft}))},Ht.prototype.has=function(t){return void 0!==this._index[t]},Ht.prototype.add=function(t){this.has(t)||(this._index[t]=this._values.length,this._values.push(t))},Ht.prototype.delete=function(t){var e=this._index[t];void 0!==e&&(this._values[e]=Ft,delete this._index[t])},Ht.prototype.clear=function(){this._index={},this._values=[]},Nt.size.get=function(){return this._values.length},Object.defineProperties(Ht.prototype,Nt);var Wt=function(t){this._set=new Set(t)},qt={size:{configurable:!0}};function Kt(t){return"function"==typeof Set?new Wt(t):new Ht(t)}function Xt(t,e){var i=Ot(e-t,9);if(0===i){if(0===e)return.1;i=Math.abs(e)}var o=Math.pow(10,Math.floor(Math.log(i)/Math.log(10))),r=Ot(i/o,10);return Ot(o*(r<1.904762?.2:r<4.761904?.5:r<9.523809?1:2),10)}Wt.prototype.values=function(){return Array.from(this._set)},Wt.prototype.has=function(t){return this._set.has(t)},Wt.prototype.add=function(t){this._set.add(t)},Wt.prototype.delete=function(t){this._set.delete(t)},Wt.prototype.clear=function(){this._set.clear()},qt.size.get=function(){return this._set.size},Object.defineProperties(Wt.prototype,qt);var Yt=function(t){function e(e,i){t.call(this),this.x=e||0,this.y=i||0}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.clone=function(){return new e(this.x,this.y)},e.prototype.equals=function(t){return t&&this.x===t.x&&this.y===t.y},e.prototype.rotate=function(t,e){var i=Mt(e),o=Math.cos(i),r=Math.sin(i),n=t.x,s=t.y,a=this.x,p=this.y;return this.x=Ot(n+(a-n)*o+(p-s)*r,3),this.y=Ot(s+(p-s)*o-(a-n)*r,3),this},e.prototype.multiply=function(t){return this.x*=t,this.y*=t,this},e.prototype.distanceTo=function(t){var e=this.x-t.x,i=this.y-t.y;return Math.sqrt(e*e+i*i)},e.onCircle=function(t,i,o){var r=Mt(i);return new e(t.x-o*Math.cos(r),t.y-o*Math.sin(r))},e}(A.Class);function Zt(t,e,i,o,r){var n=Mt(r);return new Yt(i+(t-i)*Math.cos(n)+(e-o)*Math.sin(n),o-(t-i)*Math.sin(n)+(e-o)*Math.cos(n))}var Jt=function(t){function e(e,i,o,r){t.call(this),this.x1=e||0,this.y1=i||0,this.x2=o||0,this.y2=r||0}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.equals=function(t){return this.x1===t.x1&&this.x2===t.x2&&this.y1===t.y1&&this.y2===t.y2},e.prototype.width=function(){return this.x2-this.x1},e.prototype.height=function(){return this.y2-this.y1},e.prototype.translate=function(t,e){return this.x1+=t,this.x2+=t,this.y1+=e,this.y2+=e,this},e.prototype.move=function(t,e){var i=this.height(),o=this.width();return xt(t)&&(this.x1=t,this.x2=this.x1+o),xt(e)&&(this.y1=e,this.y2=this.y1+i),this},e.prototype.wrap=function(t){return this.x1=Math.min(this.x1,t.x1),this.y1=Math.min(this.y1,t.y1),this.x2=Math.max(this.x2,t.x2),this.y2=Math.max(this.y2,t.y2),this},e.prototype.wrapPoint=function(t){var i=_(t),o=i?t[0]:t.x,r=i?t[1]:t.y;return this.wrap(new e(o,r,o,r)),this},e.prototype.snapTo=function(t,e){return e!==m&&e||(this.x1=t.x1,this.x2=t.x2),e!==x&&e||(this.y1=t.y1,this.y2=t.y2),this},e.prototype.alignTo=function(t,e){var i=this.height(),o=this.width(),r=e===g||e===s?x:m,n=r===x?i:o;if(e===a){var p=t.center(),h=this.center();this.x1+=p.x-h.x,this.y1+=p.y-h.y}else this[r+1]=e===g||e===l?t[r+1]-n:t[r+2];return this.x2=this.x1+o,this.y2=this.y1+i,this},e.prototype.shrink=function(t,e){return this.x2-=t,this.y2-=e,this},e.prototype.expand=function(t,e){return this.shrink(-t,-e),this},e.prototype.pad=function(t){var e=E(t);return this.x1-=e.left,this.x2+=e.right,this.y1-=e.top,this.y2+=e.bottom,this},e.prototype.unpad=function(t){var e=E(t);return e.left=-e.left,e.top=-e.top,e.right=-e.right,e.bottom=-e.bottom,this.pad(e)},e.prototype.clone=function(){return new e(this.x1,this.y1,this.x2,this.y2)},e.prototype.center=function(){return new Yt(this.x1+this.width()/2,this.y1+this.height()/2)},e.prototype.containsPoint=function(t){return t.x>=this.x1&&t.x<=this.x2&&t.y>=this.y1&&t.y<=this.y2},e.prototype.points=function(){return[new Yt(this.x1,this.y1),new Yt(this.x2,this.y1),new Yt(this.x2,this.y2),new Yt(this.x1,this.y2)]},e.prototype.getHash=function(){return[this.x1,this.y1,this.x2,this.y2].join(",")},e.prototype.overlaps=function(t){return!(t.y2<this.y1||this.y2<t.y1||t.x2<this.x1||this.x2<t.x1)},e.prototype.rotate=function(t){var e=this.width(),i=this.height(),o=this.center(),r=o.x,n=o.y,s=Zt(0,0,r,n,t),a=Zt(e,0,r,n,t),p=Zt(e,i,r,n,t),h=Zt(0,i,r,n,t);return e=Math.max(s.x,a.x,p.x,h.x)-Math.min(s.x,a.x,p.x,h.x),i=Math.max(s.y,a.y,p.y,h.y)-Math.min(s.y,a.y,p.y,h.y),this.x2=this.x1+e,this.y2=this.y1+i,this},e.prototype.toRect=function(){return new A.geometry.Rect([this.x1,this.y1],[this.width(),this.height()])},e.prototype.hasSize=function(){return 0!==this.width()&&0!==this.height()},e.prototype.align=function(t,e,i){var o=e+1,r=e+2,n=e===m?"width":"height",p=this[n]();ct(i,[l,g])?(this[o]=t[o],this[r]=this[o]+p):ct(i,[f,s])?(this[r]=t[r],this[o]=this[r]-p):i===a&&(this[o]=t[o]+(t[n]()-p)/2,this[r]=this[o]+p)},e}(A.Class);function Qt(t,e){return t-e}var $t=function(t){function e(e,i,o,r,n){t.call(this),this.center=e,this.innerRadius=i,this.radius=o,this.startAngle=r,this.angle=n}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.clone=function(){return new e(this.center,this.innerRadius,this.radius,this.startAngle,this.angle)},e.prototype.middle=function(){return this.startAngle+this.angle/2},e.prototype.setRadius=function(t,e){return e?this.innerRadius=t:this.radius=t,this},e.prototype.point=function(t,e){var i=Mt(t),o=Math.cos(i),r=Math.sin(i),n=e?this.innerRadius:this.radius,s=Ot(this.center.x-o*n,3),a=Ot(this.center.y-r*n,3);return new Yt(s,a)},e.prototype.adjacentBox=function(t,e,i){var o=this.clone().expand(t),r=o.middle(),n=o.point(r),s=e/2,a=i/2,p=Math.sin(Mt(r)),h=Math.cos(Mt(r)),c=n.x-s,l=n.y-a;return Math.abs(p)<.9&&(c+=s*-h/Math.abs(h)),Math.abs(h)<.9&&(l+=a*-p/Math.abs(p)),new Jt(c,l,c+e,l+i)},e.prototype.containsPoint=function(t){var e=this.center,i=this.innerRadius,o=this.radius,r=this.startAngle,n=this.startAngle+this.angle,s=t.x-e.x,a=t.y-e.y,p=new Yt(s,a),h=this.point(r),c=new Yt(h.x-e.x,h.y-e.y),l=this.point(n),u=new Yt(l.x-e.x,l.y-e.y),d=Ot(s*s+a*a,3);return(c.equals(p)||k(c,p))&&!k(u,p)&&d>=i*i&&d<=o*o},e.prototype.getBBox=function(){var t,e=new Jt(u,u,d,d),i=Ot(this.startAngle%360),o=Ot((i+this.angle)%360),r=this.innerRadius,n=[0,90,180,270,i,o].sort(Qt),s=n.indexOf(i),a=n.indexOf(o);t=i===o?n:s<a?n.slice(s,a+1):[].concat(n.slice(0,a+1),n.slice(s,n.length));for(var p=0;p<t.length;p++){var h=this.point(t[p]);e.wrapPoint(h),e.wrapPoint(h,r)}return r||e.wrapPoint(this.center),e},e.prototype.expand=function(t){return this.radius+=t,this},e}(A.Class),te=function(t){function e(e,i,o,r){t.call(this,e,0,i,o,r)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.expand=function(e){return t.prototype.expand.call(this,e)},e.prototype.clone=function(){return new e(this.center,this.radius,this.startAngle,this.angle)},e.prototype.setRadius=function(t){return this.radius=t,this},e}($t),ee=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.createRing=function(t,e){var i=t.startAngle+180,o=t.angle+i;t.angle>0&&i===o&&(o+=.001);var r=new A.geometry.Point(t.center.x,t.center.y),n=Math.max(t.radius,0),s=Math.max(t.innerRadius,0),a=new A.geometry.Arc(r,{startAngle:i,endAngle:o,radiusX:n,radiusY:n}),p=A.drawing.Path.fromArc(a,e).close();if(s){a.radiusX=a.radiusY=s;var h=a.pointAt(o);p.lineTo(h.x,h.y),p.arc(o,i,s,s,!0)}else p.lineTo(r.x,r.y);return p},e}(A.Class);ee.current=new ee;var ie=ee,oe=function(t){function e(e){t.call(this),this.children=[],this.options=j({},this.options,this.initUserOptions(e))}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.initUserOptions=function(t){return t},e.prototype.reflow=function(t){for(var e,i=this.children,o=0;o<i.length;o++){var r=i[o];r.reflow(t),e=e?e.wrap(r.box):r.box.clone()}this.box=e||t},e.prototype.destroy=function(){var t=this.children;this.animation&&this.animation.destroy();for(var e=0;e<t.length;e++)t[e].destroy()},e.prototype.getRoot=function(){var t=this.parent;return t?t.getRoot():null},e.prototype.getSender=function(){var t=this.getService();if(t)return t.sender},e.prototype.getService=function(){for(var t=this;t;){if(t.chartService)return t.chartService;t=t.parent}},e.prototype.translateChildren=function(t,e){for(var i=this.children,o=i.length,r=0;r<o;r++)i[r].box.translate(t,e)},e.prototype.append=function(){for(var t=arguments,e=this,i=0;i<arguments.length;i++){var o=t[i];e.children.push(o),o.parent=e}},e.prototype.renderVisual=function(){!1!==this.options.visible&&(this.createVisual(),this.addVisual(),this.renderChildren(),this.createAnimation(),this.renderComplete())},e.prototype.addVisual=function(){this.visual&&(this.visual.chartElement=this,this.parent&&this.parent.appendVisual(this.visual))},e.prototype.renderChildren=function(){for(var t=this.children,e=t.length,i=0;i<e;i++)t[i].renderVisual()},e.prototype.createVisual=function(){this.visual=new A.drawing.Group({zIndex:this.options.zIndex,visible:Rt(this.options.visible,!0)})},e.prototype.createAnimation=function(){this.visual&&this.options.animation&&(this.animation=A.drawing.Animation.create(this.visual,this.options.animation))},e.prototype.appendVisual=function(t){t.chartElement||(t.chartElement=this),t.options.noclip?this.clipRoot().visual.append(t):xt(t.options.zIndex)?this.stackRoot().stackVisual(t):this.isStackRoot?this.stackVisual(t):this.visual?this.visual.append(t):this.parent.appendVisual(t)},e.prototype.clipRoot=function(){return this.parent?this.parent.clipRoot():this},e.prototype.stackRoot=function(){return this.parent?this.parent.stackRoot():this},e.prototype.stackVisual=function(t){var e,i=t.options.zIndex||0,o=this.visual.children,r=o.length;for(e=0;e<r;e++){var n=o[e];if(Rt(n.options.zIndex,0)>i)break}this.visual.insert(e,t)},e.prototype.traverse=function(t){for(var e=this.children,i=e.length,o=0;o<i;o++){var r=e[o];t(r),r.traverse&&r.traverse(t)}},e.prototype.closest=function(t){for(var e=this,i=!1;e&&!i;)(i=t(e))||(e=e.parent);if(i)return e},e.prototype.renderComplete=function(){},e.prototype.hasHighlight=function(){var t=(this.options||{}).highlight;return!(!this.createHighlight||t&&!1===t.visible)},e.prototype.toggleHighlight=function(t,e){var i=this,o=(this.options||{}).highlight||{},r=o.visual,n=this._highlight;if(!n){var s={fill:{color:v,opacity:e||.2},stroke:{color:v,width:1,opacity:e||.2}};if(r){if(!(n=this._highlight=r(Object.assign(this.highlightVisualArgs(),{createVisual:function(){return i.createHighlight(s)},sender:this.getSender(),series:this.series,dataItem:this.dataItem,category:this.category,value:this.value,percentage:this.percentage,runningTotal:this.runningTotal,total:this.total}))))return}else n=this._highlight=this.createHighlight(s);xt(n.options.zIndex)||(n.options.zIndex=Rt(o.zIndex,this.options.zIndex)),this.appendVisual(n)}n.visible(t)},e.prototype.createGradientOverlay=function(t,e,i){var o=new A.drawing.Path(Object.assign({stroke:{color:"none"},fill:this.createGradient(i),closed:t.options.closed},e));return o.segments.elements(t.segments.elements()),o},e.prototype.createGradient=function(t){if(this.parent)return this.parent.createGradient(t)},e.prototype.supportsPointInactiveOpacity=function(){return!0},e}(A.Class);oe.prototype.options={};var re=oe,ne=function(t){function e(e){t.call(this,e),this.options.margin=E(this.options.margin),this.options.padding=E(this.options.padding)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.reflow=function(e){var i,o=this,r=this.options,n=r.width,s=r.height,a=r.shrinkToFit,p=n&&s,h=r.margin,c=r.padding,l=r.border.width,u=function(){o.align(e,m,r.align),o.align(e,x,r.vAlign),o.paddingBox=i.clone().unpad(h).unpad(l)},d=e.clone();p&&(d.x2=d.x1+n,d.y2=d.y1+s),a&&d.unpad(h).unpad(l).unpad(c),t.prototype.reflow.call(this,d),i=p?this.box=new Jt(0,0,n,s):this.box,a&&p?(u(),d=this.contentBox=this.paddingBox.clone().unpad(c)):(d=this.contentBox=i.clone(),i.pad(c).pad(l).pad(h),u()),this.translateChildren(i.x1-d.x1+h.left+l+c.left,i.y1-d.y1+h.top+l+c.top);for(var f=this.children,g=0;g<f.length;g++){var y=f[g];y.reflow(y.box)}},e.prototype.align=function(t,e,i){this.box.align(t,e,i)},e.prototype.hasBox=function(){var t=this.options;return t.border.width||t.background},e.prototype.createVisual=function(){t.prototype.createVisual.call(this),this.options.visible&&this.hasBox()&&this.visual.append(A.drawing.Path.fromRect(this.paddingBox.toRect(),this.visualStyle()))},e.prototype.visualStyle=function(){var t=this.options,e=t.border||{};return{stroke:{width:e.width,color:e.color,opacity:Rt(e.opacity,t.opacity),dashType:e.dashType},fill:{color:t.background,opacity:t.opacity},cursor:t.cursor}},e}(re);Bt(ne,{align:l,vAlign:g,margin:{},padding:{},border:{color:n,width:0},background:"",shrinkToFit:!1,width:0,height:0,visible:!0});var se=ne,ae=function(t){function e(e,i){t.call(this,e),this.pointData=i}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.getElement=function(){var t=this.options,e=this.paddingBox,i=t.type,o=t.rotation,r=e.center(),n=e.width()/2,s=e.height()/2;if(!t.visible||!this.hasBox())return null;var a,h=this.visualStyle();if(i===p)a=new A.drawing.Circle(new A.geometry.Circle([Ot(e.x1+n,3),Ot(e.y1+s,3)],Math.min(n,s)),h);else if("triangle"===i)a=A.drawing.Path.fromPoints([[e.x1+n,e.y1],[e.x1,e.y2],[e.x2,e.y2]],h).close();else if("cross"===i)(a=new A.drawing.MultiPath(h)).moveTo(e.x1,e.y1).lineTo(e.x2,e.y2),a.moveTo(e.x1,e.y2).lineTo(e.x2,e.y1);else{var c=e.toRect();if("roundedRect"===i){var l=Rt(t.borderRadius,c.width()/5);c.setCornerRadius(l)}a=A.drawing.Path.fromRect(c,h)}return o&&a.transform(A.geometry.transform().rotate(-o,[r.x,r.y])),a.options.zIndex=t.zIndex,a},e.prototype.createElement=function(){var t=this,e=this.options.visual,i=this.pointData||{};return e?e({value:i.value,dataItem:i.dataItem,sender:this.getSender(),series:i.series,category:i.category,rect:this.paddingBox.toRect(),options:this.visualOptions(),createVisual:function(){return t.getElement()}}):this.getElement()},e.prototype.visualOptions=function(){var t=this.options;return{background:t.background,border:t.border,margin:t.margin,padding:t.padding,type:t.type,size:t.width,visible:t.visible}},e.prototype.createVisual=function(){this.visual=this.createElement()},e}(se);Bt(ae,{type:p,align:a,vAlign:a});var pe=ae,he={glass:{type:"linear",rotation:0,stops:[{offset:0,color:v,opacity:0},{offset:.25,color:v,opacity:.3},{offset:1,color:v,opacity:0}]},sharpBevel:{type:"radial",stops:[{offset:0,color:v,opacity:.55},{offset:.65,color:v,opacity:0},{offset:.95,color:v,opacity:.25}]},roundedBevel:{type:"radial",stops:[{offset:.33,color:v,opacity:.06},{offset:.83,color:v,opacity:.2},{offset:.95,color:v,opacity:0}]},roundedGlass:{type:"radial",supportVML:!1,stops:[{offset:0,color:v,opacity:0},{offset:.5,color:v,opacity:.3},{offset:.99,color:v,opacity:0}]},sharpGlass:{type:"radial",supportVML:!1,stops:[{offset:0,color:v,opacity:.2},{offset:.15,color:v,opacity:.15},{offset:.17,color:v,opacity:.35},{offset:.85,color:v,opacity:.05},{offset:.87,color:v,opacity:.15},{offset:.99,color:v,opacity:0}]},bubbleShadow:{type:"radial",center:[.5,.5],radius:.5}};function ce(t,e){if(t.x1===e.x1&&t.y1===e.y1&&t.x2===e.x2&&t.y2===e.y2)return e;var i=Math.min(t.x1,e.x1),o=Math.max(t.x1,e.x1),r=Math.min(t.x2,e.x2),n=Math.max(t.x2,e.x2),s=Math.min(t.y1,e.y1),a=Math.max(t.y1,e.y1),p=Math.min(t.y2,e.y2),h=Math.max(t.y2,e.y2),c=[];return c[0]=new Jt(o,s,r,a),c[1]=new Jt(i,a,o,p),c[2]=new Jt(r,a,n,p),c[3]=new Jt(o,p,r,h),t.x1===i&&t.y1===s||e.x1===i&&e.y1===s?(c[4]=new Jt(i,s,o,a),c[5]=new Jt(r,p,n,h)):(c[4]=new Jt(r,s,n,a),c[5]=new Jt(i,p,o,h)),st(c,(function(t){return t.height()>0&&t.width()>0}))[0]}var le=function(t){function e(e){t.call(this,e);var i=this.options;i.width=parseInt(i.width,10),i.height=parseInt(i.height,10),this.gradients={}}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.reflow=function(){var t=this.options,e=this.children,i=new Jt(0,0,t.width,t.height);this.box=i.unpad(t.margin);for(var o=0;o<e.length;o++)e[o].reflow(i),i=ce(i,e[o].box)||new Jt},e.prototype.createVisual=function(){this.visual=new A.drawing.Group,this.createBackground()},e.prototype.createBackground=function(){var t=this.options,e=t.border||{},i=this.box.clone().pad(t.margin).unpad(e.width),o=A.drawing.Path.fromRect(i.toRect(),{stroke:{color:e.width?e.color:"",width:e.width,dashType:e.dashType},fill:{color:t.background,opacity:t.opacity},zIndex:-10});this.visual.append(o)},e.prototype.getRoot=function(){return this},e.prototype.createGradient=function(t){var e,i=this.gradients,o=Pt(t),r=he[t.gradient];if(i[o])e=i[o];else{var n=Object.assign({},r,t);"linear"===r.type?e=new A.drawing.LinearGradient(n):(t.innerRadius&&(n.stops=function(t){for(var e=t.stops,i=t.innerRadius/t.radius*100,o=e.length,r=[],n=0;n<o;n++){var s=Object.assign({},e[n]);s.offset=(s.offset*(100-i)+i)/100,r.push(s)}return r}(n)),(e=new A.drawing.RadialGradient(n)).supportVML=!1!==r.supportVML),i[o]=e}return e},e.prototype.cleanGradients=function(){var t=this.gradients;for(var e in t)t[e]._observers=[]},e.prototype.size=function(){var t=this.options;return new Jt(0,0,t.width,t.height)},e}(re);Bt(le,{width:600,height:400,background:v,border:{color:n,width:0},margin:E(5),zIndex:-2});var ue=le,de=function(t){function e(e){t.call(this,e),this._initDirection()}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype._initDirection=function(){var t=this.options;t.vertical?(this.groupAxis=m,this.elementAxis=x,this.groupSizeField="width",this.elementSizeField="height",this.groupSpacing=t.spacing,this.elementSpacing=t.vSpacing):(this.groupAxis=x,this.elementAxis=m,this.groupSizeField="height",this.elementSizeField="width",this.groupSpacing=t.vSpacing,this.elementSpacing=t.spacing)},e.prototype.reflow=function(t){this.box=t.clone(),this.reflowChildren()},e.prototype.reflowChildren=function(){var t=this.box,e=this.elementAxis,i=this.groupAxis,o=this.elementSizeField,r=this.groupSizeField,n=this.groupOptions(),s=n.groups,a=n.groupsSize,p=n.maxGroupElementsSize,h=s.length,c=t[i+1]+this.alignStart(a,t[r]());if(h){for(var l=c,u=0;u<h;u++){for(var d=s[u],f=d.groupElements,g=t[e+1],y=f.length,v=0;v<y;v++){var m=f[v],x=this.elementSize(m),_=l+this.alignStart(x[r],d.groupSize),b=new Jt;b[i+1]=_,b[i+2]=_+x[r],b[e+1]=g,b[e+2]=g+x[o],m.reflow(b),g+=x[o]+this.elementSpacing}l+=d.groupSize+this.groupSpacing}t[i+1]=c,t[i+2]=c+a,t[e+2]=t[e+1]+p}},e.prototype.alignStart=function(t,e){var i=0,o=this.options.align;return o===f||o===s?i=e-t:o===a&&(i=(e-t)/2),i},e.prototype.groupOptions=function(){for(var t=this.box,e=this.children,i=this.elementSizeField,o=this.groupSizeField,r=this.elementSpacing,n=this.groupSpacing,s=Ot(t[i]()),a=e.length,p=[],h=0,c=0,l=0,u=0,d=[],f=0;f<a;f++){var g=e[f];g.box||g.reflow(t);var y=this.elementSize(g);this.options.wrap&&Ot(c+r+y[i])>s&&(p.push({groupElements:d,groupSize:h,groupElementsSize:c}),u=Math.max(u,c),l+=n+h,h=0,c=0,d=[]),h=Math.max(h,y[o]),c>0&&(c+=r),c+=y[i],d.push(g)}return p.push({groupElements:d,groupSize:h,groupElementsSize:c}),{groups:p,groupsSize:l+=h,maxGroupElementsSize:u=Math.max(u,c)}},e.prototype.elementSize=function(t){return{width:t.box.width(),height:t.box.height()}},e.prototype.createVisual=function(){},e}(re);Bt(de,{vertical:!0,wrap:!0,vSpacing:0,spacing:0});var fe=de,ge=A.drawing.Text,ye=function(t){function e(e,i){t.call(this,i),this.content=e,this.reflow(new Jt)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.reflow=function(t){var e=this.options,i=e.size=A.drawing.util.measureText(this.content,{font:e.font});this.baseline=i.baseline,this.box=new Jt(t.x1,t.y1,t.x1+i.width,t.y1+i.height)},e.prototype.createVisual=function(){var t=this.options,e=t.font,i=t.color,o=t.opacity,r=t.cursor;this.visual=new ge(this.content,this.box.toRect().topLeft(),{font:e,fill:{color:i,opacity:o},cursor:r})},e}(re);Bt(ye,{font:"12px sans-serif",color:n});var ve=ye;function me(t){var e=t.origin,i=t.bottomRight();return new Jt(e.x,e.y,i.x,i.y)}var xe=/\n/m,_e=function(t){function e(e,i,o){t.call(this,i),this.content=e,this.data=o,this._initContainer(),!1!==this.options._autoReflow&&this.reflow(new Jt)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype._initContainer=function(){var t=this.options,e=String(this.content).split(xe),i=new fe({vertical:!0,align:t.align,wrap:!1}),o=j({},t,{opacity:1,animation:null});this.container=i,this.append(i);for(var r=0;r<e.length;r++){var n=new ve(e[r].trim(),o);i.append(n)}},e.prototype.reflow=function(e){var i=this.options,o=i.visual;if(this.container.options.align=i.align,o&&!this._boxReflow){var r=e;r.hasSize()||(this._boxReflow=!0,this.reflow(r),this._boxReflow=!1,r=this.box);var n=this.visual=o(this.visualContext(r));n&&(r=me(n.clippedBBox()||new A.geometry.Rect),n.options.zIndex=i.zIndex),this.box=this.contentBox=this.paddingBox=r}else if(t.prototype.reflow.call(this,e),i.rotation){var s=E(i.margin),a=this.box.unpad(s);this.targetBox=e,this.normalBox=a.clone(),(a=this.rotate()).translate(s.left-s.right,s.top-s.bottom),this.rotatedBox=a.clone(),a.pad(s)}},e.prototype.createVisual=function(){var t=this.options;if(this.visual=new A.drawing.Group({transform:this.rotationTransform(),zIndex:t.zIndex,noclip:t.noclip}),this.hasBox()){var e=A.drawing.Path.fromRect(this.paddingBox.toRect(),this.visualStyle());this.visual.append(e)}},e.prototype.renderVisual=function(){if(this.options.visible)if(this.options.visual){var e=this.visual;e&&!xt(e.options.noclip)&&(e.options.noclip=this.options.noclip),this.addVisual(),this.createAnimation()}else t.prototype.renderVisual.call(this)},e.prototype.visualContext=function(t){var e=this,i={text:this.content,rect:t.toRect(),sender:this.getSender(),options:this.options,createVisual:function(){return e._boxReflow=!0,e.reflow(t),e._boxReflow=!1,e.getDefaultVisual()}};return this.data&&Object.assign(i,this.data),i},e.prototype.getDefaultVisual=function(){this.createVisual(),this.renderChildren();var t=this.visual;return delete this.visual,t},e.prototype.rotate=function(){var t=this.options;return this.box.rotate(t.rotation),this.align(this.targetBox,m,t.align),this.align(this.targetBox,x,t.vAlign),this.box},e.prototype.rotationTransform=function(){var t=this.options.rotation;if(!t)return null;var e=this.normalBox.center(),i=e.x,o=e.y,r=this.rotatedBox.center();return A.geometry.transform().translate(r.x-i,r.y-o).rotate(t,[i,o])},e}(se),be=function(t){function e(e){t.call(this,e),this.append(new _e(this.options.text,Object.assign({},this.options,{vAlign:this.options.position})))}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.reflow=function(e){t.prototype.reflow.call(this,e),this.box.snapTo(e,m)},e.buildTitle=function(t,i,o){var r,n=t;return"string"==typeof t&&(n={text:t}),(n=Object.assign({visible:!0},o,n))&&n.visible&&n.text&&(r=new e(n),i.append(r)),r},e}(re);Bt(be,{color:n,position:g,align:a,margin:E(5),padding:E(5)});var we=be,Se=function(t){function e(e,i,o,r,n){t.call(this,i,n),this.text=i,this.value=e,this.index=o,this.dataItem=r,this.reflow(new Jt)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.visualContext=function(e){var i=t.prototype.visualContext.call(this,e);return i.value=this.value,i.dataItem=this.dataItem,i.format=this.options.format,i.culture=this.options.culture,i},e.prototype.click=function(t,e){t.trigger("axisLabelClick",{element:St(e),value:this.value,text:this.text,index:this.index,dataItem:this.dataItem,axis:this.parent.options})},e.prototype.rotate=function(){if(this.options.alignRotation!==a){var e=this.normalBox.toRect(),i=this.rotationTransform();this.box=me(e.bbox(i.matrix()))}else t.prototype.rotate.call(this);return this.box},e.prototype.rotationTransform=function(){var e=this.options,i=e.rotation;if(!i)return null;if(e.alignRotation===a)return t.prototype.rotationTransform.call(this);var o=A.geometry.transform().rotate(i).matrix(),r=this.normalBox.toRect(),n=this.targetBox.toRect(),p=e.rotationOrigin||g,h=p===g||p===s?m:x,c=p===g||p===s?x:m,u=p===g||p===l?n.origin:n.bottomRight(),d=r.topLeft().transformCopy(o),f=r.topRight().transformCopy(o),y=r.bottomRight().transformCopy(o),v=r.bottomLeft().transformCopy(o),_=A.geometry.Rect.fromPoints(d,f,y,v),b={};b[c]=n.origin[c]-_.origin[c];var w,S,C=Math.abs(d[c]+b[c]-u[c]),k=Math.abs(f[c]+b[c]-u[c]);Ot(C,10)===Ot(k,10)?(w=d,S=f):k<C?(w=f,S=y):(w=d,S=v);var P=w[h]+(S[h]-w[h])/2;return b[h]=n.center()[h]-P,A.geometry.transform().translate(b.x,b.y).rotate(i)},e}(_e);Bt(Se,{_autoReflow:!1});var Ae=Se,Ce=function(t){function e(e,i,o){t.call(this,i),this.fields=e,this.chartService=o,this.render()}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.hide=function(){this.options.visible=!1},e.prototype.show=function(){this.options.visible=!0},e.prototype.render=function(){var t=this,e=this.options;if(e.visible){var i,o,r=e.label,n=e.icon,s=new Jt,a=function(){return t},h=n.size,c=this.fields.text;if(xt(r)&&r.visible){var l=it(r);l?c=l(this.fields):r.format&&(c=this.chartService.format.auto(r.format,c)),r.color||(r.color="inside"===r.position?"#fff":n.background),this.label=new _e(c,j({},r)),this.label.aliasFor=a,"inside"!==r.position||xt(h)||(n.type===p?h=Math.max(this.label.box.width(),this.label.box.height()):(i=this.label.box.width(),o=this.label.box.height()),s.wrap(this.label.box))}n.width=i||h||7,n.height=o||h||7;var u=new pe(j({},n));u.aliasFor=a,this.marker=u,this.append(u),this.label&&this.append(this.label),u.reflow(new Jt),this.wrapperBox=s.wrap(u.box)}},e.prototype.reflow=function(t){var e,i,o,r=this.options,n=this.label,a=this.marker,p=this.wrapperBox,h=t.center(),c=r.line.length,u=r.position;r.visible&&(ct(u,[l,f])?u===l?(o=p.alignTo(t,u).translate(-c,t.center().y-p.center().y),r.line.visible&&(e=[t.x1,h.y],this.linePoints=[e,[o.x2,h.y]],i=o.clone().wrapPoint(e))):(o=p.alignTo(t,u).translate(c,t.center().y-p.center().y),r.line.visible&&(e=[t.x2,h.y],this.linePoints=[e,[o.x1,h.y]],i=o.clone().wrapPoint(e))):u===s?(o=p.alignTo(t,u).translate(t.center().x-p.center().x,c),r.line.visible&&(e=[h.x,t.y2],this.linePoints=[e,[h.x,o.y1]],i=o.clone().wrapPoint(e))):(o=p.alignTo(t,u).translate(t.center().x-p.center().x,-c),r.line.visible&&(e=[h.x,t.y1],this.linePoints=[e,[h.x,o.y2]],i=o.clone().wrapPoint(e))),a&&a.reflow(o),n&&(n.reflow(o),a&&("outside"===r.label.position&&n.box.alignTo(a.box,u),n.reflow(n.box))),this.contentBox=o,this.targetBox=t,this.box=i||o)},e.prototype.createVisual=function(){t.prototype.createVisual.call(this),this.visual.options.noclip=this.options.noclip,this.options.visible&&this.createLine()},e.prototype.renderVisual=function(){var e=this,i=this.options,o=i.visual;i.visible&&o?(this.visual=o(Object.assign(this.fields,{sender:this.getSender(),rect:this.targetBox.toRect(),options:{background:i.background,border:i.background,icon:i.icon,label:i.label,line:i.line,position:i.position,visible:i.visible},createVisual:function(){e.createVisual(),e.renderChildren();var t=e.visual;return delete e.visual,t}})),this.addVisual()):t.prototype.renderVisual.call(this)},e.prototype.createLine=function(){var t=this.options.line;if(this.linePoints){var e=A.drawing.Path.fromPoints(this.linePoints,{stroke:{color:t.color,width:t.width,dashType:t.dashType}});C(e),this.visual.append(e)}},e.prototype.click=function(t,e){var i=this.eventArgs(e);t.trigger("noteClick",i)||e.preventDefault()},e.prototype.over=function(t,e){var i=this.eventArgs(e);t.trigger("noteHover",i)||e.preventDefault()},e.prototype.out=function(t,e){var i=this.eventArgs(e);t.trigger("noteLeave",i)},e.prototype.eventArgs=function(t){var e=this.options;return Object.assign(this.fields,{element:St(t),text:xt(e.label)?e.label.text:"",visual:this.visual})},e}(se);Bt(Ce,{icon:{visible:!0,type:p},label:{position:"inside",visible:!0,align:a,vAlign:a},line:{visible:!0},visible:!0,position:g,zIndex:2});var ke=Ce;function Pe(t,e){var i=t.tickX,o=t.tickY,r=t.position,n=new A.drawing.Path({stroke:{width:e.width,color:e.color}});return t.vertical?n.moveTo(i,r).lineTo(i+e.size,r):n.moveTo(r,o).lineTo(r,o+e.size),C(n),n}function Me(t,e){var i=t.lineStart,o=t.lineEnd,r=t.position,n=new A.drawing.Path({stroke:{width:e.width,color:e.color,dashType:e.dashType}});return t.vertical?n.moveTo(i,r).lineTo(o,r):n.moveTo(r,i).lineTo(r,o),C(n),n}var Oe=function(t){function e(e,i){void 0===i&&(i=new Z),t.call(this,e),this.chartService=i,this.options.visible||(this.options=j({},this.options,{labels:{visible:!1},line:{visible:!1},margin:0,majorTickSize:0,minorTickSize:0})),this.options.minorTicks=j({},{color:this.options.line.color,width:this.options.line.width,visible:"none"!==this.options.minorTickType},this.options.minorTicks,{size:this.options.minorTickSize,align:this.options.minorTickType}),this.options.majorTicks=j({},{color:this.options.line.color,width:this.options.line.width,visible:"none"!==this.options.majorTickType},this.options.majorTicks,{size:this.options.majorTickSize,align:this.options.majorTickType}),this.initFields(),this.options._deferLabels||this.createLabels(),this.createTitle(),this.createNotes()}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.initFields=function(){},e.prototype.labelsRange=function(){return{min:this.options.labels.skip,max:this.labelsCount()}},e.prototype.normalizeLabelRotation=function(t){var e=t.rotation;I(e)&&(t.alignRotation=e.align,t.rotation=e.angle)},e.prototype.createLabels=function(){var t=this.options,e=t.vertical?f:a,i=j({},t.labels,{align:e,zIndex:t.zIndex}),o=Math.max(1,i.step);if(this.clearLabels(),i.visible){this.normalizeLabelRotation(i),"auto"===i.rotation&&(i.rotation=0,t.autoRotateLabels=!0);for(var r=this.labelsRange(),n=r.min;n<r.max;n+=o){var s={index:n,count:r.max},p=this.createAxisLabel(n,i,s);p&&(this.append(p),this.labels.push(p))}}},e.prototype.clearLabels=function(){this.children=st(this.children,(function(t){return!(t instanceof Ae)})),this.labels=[]},e.prototype.clearTitle=function(){var t=this;this.title&&(this.children=st(this.children,(function(e){return e!==t.title})),this.title=void 0)},e.prototype.clear=function(){this.clearLabels(),this.clearTitle()},e.prototype.lineBox=function(){var t=this.options,e=this.box,i=t.vertical,o=t.labels.mirror,r=o?e.x1:e.x2,n=o?e.y2:e.y1,s=t.line.width||0;return i?new Jt(r,e.y1,r,e.y2-s):new Jt(e.x1,n,e.x2-s,n)},e.prototype.createTitle=function(){var t=this.options,e=j({rotation:t.vertical?-90:0,text:"",zIndex:1,visualSize:!0},t.title);if(e.visible&&e.text){var i=new _e(e.text,e);this.append(i),this.title=i}},e.prototype.createNotes=function(){var t=this.options,e=t.notes,i=e.data||[];this.notes=[];for(var o=0;o<i.length;o++){var r=j({},e,i[o]);r.value=this.parseNoteValue(r.value);var n=new ke({value:r.value,text:r.label.text,dataItem:r},r,this.chartService);n.options.visible&&(xt(n.options.position)?t.vertical&&!ct(n.options.position,[l,f])?n.options.position=t.reverse?l:f:t.vertical||ct(n.options.position,[g,s])||(n.options.position=t.reverse?s:g):t.vertical?n.options.position=t.reverse?l:f:n.options.position=t.reverse?s:g,this.append(n),this.notes.push(n))}},e.prototype.parseNoteValue=function(t){return t},e.prototype.renderVisual=function(){t.prototype.renderVisual.call(this),this.createPlotBands()},e.prototype.createVisual=function(){t.prototype.createVisual.call(this),this.createBackground(),this.createLine()},e.prototype.gridLinesVisual=function(){var t=this._gridLines;return t||(t=this._gridLines=new A.drawing.Group({zIndex:-2}),this.appendVisual(this._gridLines)),t},e.prototype.createTicks=function(t){var e=this.options,i=this.lineBox(),o=e.labels.mirror,r=e.majorTicks.visible?e.majorUnit:0,n={vertical:e.vertical};function s(e,r,s){var a=e.length,p=Math.max(1,r.step);if(r.visible)for(var h=r.skip;h<a;h+=p)xt(s)&&h%s==0||(n.tickX=o?i.x2:i.x2-r.size,n.tickY=o?i.y1-r.size:i.y1,n.position=e[h],t.append(Pe(n,r)))}s(this.getMajorTickPositions(),e.majorTicks),s(this.getMinorTickPositions(),e.minorTicks,r/e.minorUnit)},e.prototype.createLine=function(){var t=this.options,e=t.line,i=this.lineBox();if(e.width>0&&e.visible){var o=new A.drawing.Path({stroke:{width:e.width,color:e.color,dashType:e.dashType}});o.moveTo(i.x1,i.y1).lineTo(i.x2,i.y2),t._alignLines&&C(o);var r=this._lineGroup=new A.drawing.Group;r.append(o),this.visual.append(r),this.createTicks(r)}},e.prototype.getActualTickSize=function(){var t=this.options,e=0;return t.majorTicks.visible&&t.minorTicks.visible?e=Math.max(t.majorTicks.size,t.minorTicks.size):t.majorTicks.visible?e=t.majorTicks.size:t.minorTicks.visible&&(e=t.minorTicks.size),e},e.prototype.createBackground=function(){var t=this.options,e=this.box,i=t.background;i&&(this._backgroundPath=A.drawing.Path.fromRect(e.toRect(),{fill:{color:i},stroke:null}),this.visual.append(this._backgroundPath))},e.prototype.createPlotBands=function(){var t=this,e=this.options,i=e.plotBands||[],o=e.vertical,r=this.plotArea;if(0!==i.length){for(var n=this._plotbandGroup=new A.drawing.Group({zIndex:-1}),s=st(this.pane.axes,(function(e){return e.options.vertical!==t.options.vertical}))[0],a=0;a<i.length;a++){var p=i[a],h=void 0,c=void 0,u=p.label,d=void 0;if(o?(h=(s||r.axisX).lineBox(),c=t.getSlot(p.from,p.to,!0)):(h=t.getSlot(p.from,p.to,!0),c=(s||r.axisY).lineBox()),u&&(u.vAlign=u.position||l,d=t.createPlotBandLabel(u,p,new Jt(h.x1,c.y1,h.x2,c.y2))),0!==h.width()&&0!==c.height()){var f=new A.geometry.Rect([h.x1,c.y1],[h.width(),c.height()]),g=A.drawing.Path.fromRect(f,{fill:{color:p.color,opacity:p.opacity},stroke:null});n.append(g),d&&n.append(d)}}this.appendVisual(n)}},e.prototype.createPlotBandLabel=function(t,e,i){if(!1===t.visible)return null;var o,r=t.text;if(xt(t)&&t.visible){var n=it(t);n?r=n({text:r,item:e}):t.format&&(r=this.chartService.format.auto(t.format,r)),t.color||(t.color=this.options.labels.color)}return(o=new _e(r,t)).reflow(i),o.renderVisual(),o.visual},e.prototype.createGridLines=function(t){var e=this.options,i=e.minorGridLines,o=e.majorGridLines,r=e.minorUnit,n=e.vertical,s=t.options.line.visible,a=o.visible?e.majorUnit:0,p=t.lineBox(),h=p[n?"y1":"x1"],c={lineStart:p[n?"x1":"y1"],lineEnd:p[n?"x2":"y2"],vertical:n},l=[],u=this.gridLinesVisual();function d(t,e,i){var o=t.length,r=Math.max(1,e.step);if(e.visible)for(var n=e.skip;n<o;n+=r){var a=Ot(t[n]);ct(a,l)||n%i==0||s&&h===a||(c.position=a,u.append(Me(c,e)),l.push(a))}}return d(this.getMajorTickPositions(),o),d(this.getMinorTickPositions(),i,a/r),u.children},e.prototype.reflow=function(t){for(var e=this.options,i=this.labels,o=this.title,r=e.vertical,n=i.length,s=r?"width":"height",a=o?o.box[s]():0,p=this.getActualTickSize()+e.margin+a,h=((this.getRoot()||{}).box||t)[s](),c=0,l=0;l<n;l++){var u=i[l].box[s]();u+p<=h&&(c=Math.max(c,u))}this.box=r?new Jt(t.x1,t.y1,t.x1+c+p,t.y2):new Jt(t.x1,t.y1,t.x2,t.y1+c+p),this.arrangeTitle(),this.arrangeLabels(),this.arrangeNotes()},e.prototype.getLabelsTickPositions=function(){return this.getMajorTickPositions()},e.prototype.labelTickIndex=function(t){return t.index},e.prototype.arrangeLabels=function(){for(var t=this.options,e=this.labels,i=this.labelsBetweenTicks(),o=t.vertical,r=t.labels.mirror,n=this.getLabelsTickPositions(),s=0;s<e.length;s++){var a=e[s],p=this.labelTickIndex(a),h=o?a.box.height():a.box.width(),c=n[p],l=n[p+1],u=void 0,d=void 0;if(o){if(i)u=c+(l-c)/2-h/2;else u=c-h/2;d=u}else i?(u=c,d=l):d=(u=c-h/2)+h;this.positionLabel(a,r,u,d)}},e.prototype.positionLabel=function(t,e,i,o){void 0===o&&(o=i);var r,n=this.options,a=n.vertical,p=this.lineBox(),h=this.getActualTickSize()+n.margin;if(a){var c=p.x2;e?(c+=h,t.options.rotationOrigin=l):(c-=h+t.box.width(),t.options.rotationOrigin=f),r=t.box.move(c,i)}else{var u=p.y1;e?(u-=h+t.box.height(),t.options.rotationOrigin=s):(u+=h,t.options.rotationOrigin=g),r=new Jt(i,u,o,u+t.box.height())}t.reflow(r)},e.prototype.autoRotateLabelAngle=function(t,e){return t.width()<e?0:t.height()>e?-90:-45},e.prototype.autoRotateLabels=function(){if(!this.options.autoRotateLabels||this.options.vertical)return!1;for(var t=this.getMajorTickPositions(),e=this.labels,i=Math.min(e.length,t.length-1),o=0,r=0;r<i;r++){var n=Math.abs(t[r+1]-t[r]),s=e[r].box,a=this.autoRotateLabelAngle(s,n);if(0!==a&&(o=a),-90===o)break}if(0!==o){for(var p=0;p<e.length;p++)e[p].options.rotation=o,e[p].reflow(new Jt);return!0}},e.prototype.arrangeTitle=function(){var t=this.options,e=this.title,i=t.labels.mirror,o=t.vertical;e&&(o?(e.options.align=i?f:l,e.options.vAlign=e.options.position):(e.options.align=e.options.position,e.options.vAlign=i?g:s),e.reflow(this.box))},e.prototype.arrangeNotes=function(){for(var t=0;t<this.notes.length;t++){var e=this.notes[t],i=e.options.value,o=void 0;xt(i)?(this.shouldRenderNote(i)?e.show():e.hide(),o=this.noteSlot(i)):e.hide(),e.reflow(o||this.lineBox())}},e.prototype.noteSlot=function(t){return this.getSlot(t)},e.prototype.alignTo=function(t){var e=t.lineBox(),i=this.options.vertical,o=i?x:m;this.box.snapTo(e,o),i?this.box.shrink(0,this.lineBox().height()-e.height()):this.box.shrink(this.lineBox().width()-e.width(),0),this.box[o+1]-=this.lineBox()[o+1]-e[o+1],this.box[o+2]-=this.lineBox()[o+2]-e[o+2]},e.prototype.axisLabelText=function(t,e,i){var o,r=this,n=it(e),s=function(){return e.format?r.chartService.format.localeAuto(e.format,[t],e.culture):t};n?o=n(Object.assign({},i,{get text(){return s()},value:t,format:e.format,culture:e.culture})):o=s();return o},e.prototype.slot=function(t,e,i){var o=this.getSlot(t,e,i);if(o)return o.toRect()},e.prototype.contentBox=function(){var t=this.box.clone(),e=this.labels;if(e.length){var i=this.options.vertical?x:m;if(this.chartService.isPannable(i)){var o=this.maxLabelOffset();t[i+1]-=o.start,t[i+2]+=o.end}else{e[0].options.visible&&t.wrap(e[0].box);var r=e[e.length-1];r.options.visible&&t.wrap(r.box)}}return t},e.prototype.maxLabelOffset=function(){for(var t=this.options,e=t.vertical,i=t.reverse,o=this.labelsBetweenTicks(),r=this.getLabelsTickPositions(),n=e?x:m,s=this.labels,a=i?1:0,p=i?0:1,h=0,c=0,l=0;l<s.length;l++){var u=s[l],d=this.labelTickIndex(u),f=void 0,g=void 0;o?(f=r[d+a],g=r[d+p]):f=g=r[d],h=Math.max(h,f-u.box[n+1]),c=Math.max(c,u.box[n+2]-g)}return{start:h,end:c}},e.prototype.limitRange=function(t,e,i,o,r){var n=this.options;if(t<i&&r<0&&(!xt(n.min)||n.min<=i)||o<e&&r>0&&(!xt(n.max)||o<=n.max))return null;if(e<i&&r>0||o<t&&r<0)return{min:t,max:e};var s=e-t,a=t,p=e;return t<i&&r<0?(a=kt(t,i,o),p=kt(t+s,i+s,o)):e>o&&r>0&&(p=kt(e,i,o),a=kt(e-s,i,o-s)),{min:a,max:p}},e.prototype.valueRange=function(){return{min:this.seriesMin,max:this.seriesMax}},e.prototype.labelsBetweenTicks=function(){return!this.options.justified},e.prototype.prepareUserOptions=function(){},e}(re);Bt(Oe,{labels:{visible:!0,rotation:0,mirror:!1,step:1,skip:0},line:{width:1,color:n,visible:!0},title:{visible:!0,position:a},majorTicks:{align:"outside",size:4,skip:0,step:1},minorTicks:{align:"outside",size:3,skip:0,step:1},axisCrossingValue:0,majorTickType:"outside",minorTickType:"none",majorGridLines:{skip:0,step:1},minorGridLines:{visible:!1,width:1,color:n,skip:0,step:1},margin:5,visible:!0,reverse:!1,justified:!0,notes:{label:{text:""}},_alignLines:!0,_deferLabels:!1});var Te=Oe,Re="days",je="years",Ie={years:31536e6,months:26784e5,weeks:6048e5,days:864e5,hours:36e5,minutes:6e4,seconds:1e3,milliseconds:1};function Be(t,e){return t.getTime()-e-6e4*(t.getTimezoneOffset()-e.getTimezoneOffset())}function Le(t,e){return new Date(t.getTime()+e)}function ze(t){var e;return t instanceof Date?e=t:t&&(e=new Date(t)),e}function Ve(t,e){return 0===e&&23===t.getHours()&&(t.setHours(t.getHours()+2),!0)}function Ee(t,e,i,o){var r=t;if(t){var n=ze(t),s=n.getHours();i===je?Ve(r=new Date(n.getFullYear()+e,0,1),0):"months"===i?Ve(r=new Date(n.getFullYear(),n.getMonth()+e,1),s):"weeks"===i?Ve(r=Ee(function(t,e){void 0===e&&(e=0);var i=0,o=t.getDay();if(!isNaN(o))for(;o!==e;)0===o?o=6:o--,i++;return Le(t,864e5*-i)}(n,o),7*e,Re),s):i===Re?Ve(r=new Date(n.getFullYear(),n.getMonth(),n.getDate()+e),s):"hours"===i?r=function(t,e){var i=new Date(t);i.setMinutes(0,0,0);var o=6e4*(t.getTimezoneOffset()-i.getTimezoneOffset());return Le(i,o+36e5*e)}(n,e):"minutes"===i?(r=Le(n,6e4*e)).getSeconds()>0&&r.setSeconds(0):"seconds"===i?r=Le(n,1e3*e):"milliseconds"===i&&(r=Le(n,e)),"milliseconds"!==i&&r.getMilliseconds()>0&&r.setMilliseconds(0)}return r}function De(t,e,i){return Ee(ze(t),0,e,i)}function Ge(t,e,i){var o=ze(t);return o&&De(o,e,i).getTime()===o.getTime()?o:Ee(o,1,e,i)}function Ue(t,e){return t&&e?t.getTime()-e.getTime():-1}function Fe(t,e){return t.getTime()-e}function He(t){if(_(t)){for(var e=[],i=0;i<t.length;i++)e.push(He(t[i]));return e}if(t)return ze(t).getTime()}function Ne(t,e){return t&&e?He(t)===He(e):t===e}function We(t,e,i){return Be(t,e)/Ie[i]}function qe(t,e,i,o){var r=ze(t),n=ze(e);return("months"===i?r.getMonth()-n.getMonth()+12*(r.getFullYear()-n.getFullYear())+We(r,new Date(r.getFullYear(),r.getMonth()),Re)/new Date(r.getFullYear(),r.getMonth()+1,0).getDate():i===je?r.getFullYear()-n.getFullYear()+qe(r,new Date(r.getFullYear(),0),"months",1)/12:i===Re||"weeks"===i?We(r,n,i):Fe(r,e)/Ie[i])/o}function Ke(t,e,i){return i===je?e.getFullYear()-t.getFullYear():"months"===i?12*Ke(t,e,je)+e.getMonth()-t.getMonth():i===Re?Math.floor(Fe(e,t)/864e5):Math.floor(Fe(e,t)/Ie[i])}function Xe(t,e){return M(e)&&t.parseDate(e)||ze(e)}function Ye(t,e){if(_(e)){for(var i=[],o=0;o<e.length;o++)i.push(Xe(t,e[o]));return i}return Xe(t,e)}function Ze(t,e){return P(t.weekStartDay)?t.weekStartDay:e&&e.firstDay?e.firstDay():0}var Je=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.initFields=function(){this._ticks={}},e.prototype.categoriesHash=function(){return""},e.prototype.clone=function(){var t=new e(Object.assign({},this.options,{categories:this.options.srcCategories}),this.chartService);return t.createLabels(),t},e.prototype.initUserOptions=function(t){var e=t.categories||[],i=xt(t.min),o=xt(t.max);if(t.srcCategories=t.categories=e,(i||o)&&e.length){var r,n=i?Math.floor(t.min):0;r=o?t.justified?Math.floor(t.max)+1:Math.ceil(t.max):e.length,t.categories=t.categories.slice(n,r)}return t},e.prototype.rangeIndices=function(){var t=this.options,e=t.categories.length||1;return{min:P(t.min)?t.min%1:0,max:P(t.max)&&t.max%1!=0&&t.max<this.totalRange().max?e-(1-t.max%1):e-(t.justified?1:0)}},e.prototype.totalRangeIndices=function(t){var e,i=this.options,o=P(i.min)?i.min:0;if(e=P(i.max)?i.max:P(i.min)?o+i.categories.length:this.totalRange().max||1,t){var r=this.totalRange();o=kt(o,0,r.max),e=kt(e,0,r.max)}return{min:o,max:e}},e.prototype.range=function(){var t=this.options;return{min:P(t.min)?t.min:0,max:P(t.max)?t.max:this.totalRange().max}},e.prototype.roundedRange=function(){return this.range()},e.prototype.totalRange=function(){var t=this.options;return{min:0,max:Math.max(this._seriesMax||0,t.srcCategories.length)-(t.justified?1:0)}},e.prototype.scaleOptions=function(){var t=this.rangeIndices(),e=t.min,i=t.max,o=this.lineBox();return{scale:(this.options.vertical?o.height():o.width())/(i-e||1)*(this.options.reverse?-1:1),box:o,min:e,max:i}},e.prototype.arrangeLabels=function(){t.prototype.arrangeLabels.call(this),this.hideOutOfRangeLabels()},e.prototype.hideOutOfRangeLabels=function(){var t=this.box,e=this.labels;if(e.length>0){var i=this.options.vertical?x:m,o=t[i+1],r=t[i+2],n=e[0],s=Ct(e);(n.box[i+1]>r||n.box[i+2]<o)&&(n.options.visible=!1),(s.box[i+1]>r||s.box[i+2]<o)&&(s.options.visible=!1)}},e.prototype.getMajorTickPositions=function(){return this.getTicks().majorTicks},e.prototype.getMinorTickPositions=function(){return this.getTicks().minorTicks},e.prototype.getLabelsTickPositions=function(){return this.getTicks().labelTicks},e.prototype.tickIndices=function(t){for(var e=this.rangeIndices(),i=e.min,o=e.max,r=Math.ceil(o),n=Math.floor(i),s=[];n<=r;)s.push(n),n+=t;return s},e.prototype.getTickPositions=function(t){for(var e=this.options,i=e.vertical,o=e.reverse,r=this.scaleOptions(),n=r.scale,s=r.box,a=r.min,p=s[(i?x:m)+(o?2:1)],h=this.tickIndices(t),c=[],l=0;l<h.length;l++)c.push(p+Ot(n*(h[l]-a),3));return c},e.prototype.getTicks=function(){var t=this.options,e=this._ticks,i=this.rangeIndices(),o=this.lineBox(),r=o.getHash()+i.min+","+i.max+t.reverse+t.justified;if(e._hash!==r){var n=t.minorTicks.visible||t.minorGridLines.visible;e._hash=r,e.labelTicks=this.getTickPositions(1),e.majorTicks=this.filterOutOfRangePositions(e.labelTicks,o),e.minorTicks=n?this.filterOutOfRangePositions(this.getTickPositions(.5),o):[]}return e},e.prototype.filterOutOfRangePositions=function(t,e){if(!t.length)return t;for(var i=this.options.vertical?x:m,o=function(t){return e[i+1]<=t&&t<=e[i+2]},r=t.length-1,n=0;!o(t[n])&&n<=r;)n++;for(var s=r;!o(t[s])&&s>=0;)s--;return t.slice(n,s+1)},e.prototype.getSlot=function(t,e,i){var o=this.options,r=o.reverse,n=o.justified,s=o.vertical,a=this.scaleOptions(),p=a.scale,h=a.box,c=a.min,l=s?x:m,u=h[l+(r?2:1)],d=h.clone(),f=!xt(e),g=Rt(t,0),y=Rt(e,g);y=Math.max(y-1,g);var v=u+(g-c)*p,_=u+((y=Math.max(g,y))+1-c)*p;return f&&n&&(_=v),i&&(v=kt(v,h[l+1],h[l+2]),_=kt(_,h[l+1],h[l+2])),d[l+1]=r?_:v,d[l+2]=r?v:_,d},e.prototype.limitSlot=function(t){var e=this.options.vertical?x:m,i=this.lineBox(),o=t.clone();return o[e+1]=kt(t[e+1],i[e+1],i[e+2]),o[e+2]=kt(t[e+2],i[e+1],i[e+2]),o},e.prototype.slot=function(e,i,o){var r=Math.floor(this.options.min||0),n=e,s=i;return"string"==typeof n?n=this.categoryIndex(n):P(n)&&(n-=r),"string"==typeof s?s=this.categoryIndex(s):P(s)&&(s-=r),t.prototype.slot.call(this,n,s,o)},e.prototype.pointCategoryIndex=function(t){var e=this.options,i=e.reverse,o=e.justified,r=e.vertical?x:m,n=this.scaleOptions(),s=n.scale,a=n.box,p=n.min,h=n.max,c=i?h:p,l=a[r+1],u=a[r+2],d=t[r];if(d<l||d>u)return null;var f=c+(d-l)/s,g=f%1;return o?f=Math.round(f):0===g&&f>0&&f--,Math.floor(f)},e.prototype.getCategory=function(t){var e=this.pointCategoryIndex(t);return null===e?null:this.options.categories[e]},e.prototype.categoryIndex=function(t){return this.totalIndex(t)-Math.floor(this.options.min||0)},e.prototype.categoryAt=function(t,e){var i=this.options;return(e?i.srcCategories:i.categories)[t]},e.prototype.categoriesCount=function(){return(this.options.categories||[]).length},e.prototype.translateRange=function(t){var e=this.options,i=this.lineBox(),o=e.vertical?i.height():i.width(),r=e.categories.length,n=Ot(t/(o/r),10);return{min:n,max:r+n}},e.prototype.zoomRange=function(t){var e=this.totalRangeIndices(),i=this.totalRange(),o=i.min,r=i.max,n=kt(e.min+t,o,r),s=kt(e.max-t,o,r);if(s-n>0)return{min:n,max:s}},e.prototype.scaleRange=function(t){var e=this.options.categories.length,i=t*e;return{min:-i,max:e+i}},e.prototype.labelsCount=function(){var t=this.labelsRange();return t.max-t.min},e.prototype.labelsRange=function(){var t=this.options,e=t.justified,i=t.labels,o=this.totalRangeIndices(!0),r=o.min,n=o.max,s=Math.floor(r);return e?(r=Math.ceil(r),n=Math.floor(n)):(r=Math.floor(r),n=Math.ceil(n)),{min:(r>i.skip?i.skip+i.step*Math.ceil((r-i.skip)/i.step):i.skip)-s,max:(t.categories.length?n+(e?1:0):0)-s}},e.prototype.createAxisLabel=function(t,e,i){var o=this.options,r=o.dataItems?o.dataItems[t]:null,n=Rt(o.categories[t],"");i.dataItem=r;var s=this.axisLabelText(n,e,i);return new Ae(n,s,t,r,e)},e.prototype.shouldRenderNote=function(t){var e=this.totalRangeIndices();return Math.floor(e.min)<=t&&t<=Math.ceil(e.max)},e.prototype.noteSlot=function(t){var e=this.options,i=t-Math.floor(e.min||0);return this.getSlot(i)},e.prototype.arrangeNotes=function(){t.prototype.arrangeNotes.call(this),this.hideOutOfRangeNotes()},e.prototype.hideOutOfRangeNotes=function(){var t=this.notes,e=this.box;if(t&&t.length)for(var i=this.options.vertical?x:m,o=e[i+1],r=e[i+2],n=0;n<t.length;n++){var s=t[n];s.box&&(r<s.box[i+1]||s.box[i+2]<o)&&s.hide()}},e.prototype.pan=function(t){var e=this.totalRangeIndices(!0),i=this.scaleOptions().scale,o=Ot(t/i,10),r=this.totalRange(),n=e.min+o,s=e.max+o;return this.limitRange(n,s,0,r.max,o)},e.prototype.pointsRange=function(t,e){var i=this.options,o=i.reverse,r=i.vertical?x:m,n=this.totalRangeIndices(!0),s=this.scaleOptions(),a=s.scale,p=s.box[r+(o?2:1)],h=t[r]-p,c=e[r]-p,l=n.min+h/a,u=n.min+c/a,d=Math.min(l,u),f=Math.max(l,u);if(f-d>=.01)return{min:d,max:f}},e.prototype.valueRange=function(){return this.range()},e.prototype.totalIndex=function(t){var e=this.options;return this._categoriesMap?this._categoriesMap.get(t):function(t,e){if(t instanceof Date){for(var i=e.length,o=0;o<i;o++)if(Ne(e[o],t))return o;return-1}return e.indexOf(t)}(t,e.srcCategories)},e.prototype.currentRangeIndices=function(){var t=this.options,e=0;return P(t.min)&&(e=Math.floor(t.min)),{min:e,max:P(t.max)?t.justified?Math.floor(t.max):Math.ceil(t.max)-1:this.totalCount()-1}},e.prototype.mapCategories=function(){if(!this._categoriesMap)for(var t=this._categoriesMap=new ht,e=this.options.srcCategories,i=0;i<e.length;i++)t.set(e[i],i)},e.prototype.totalCount=function(){return Math.max(this.options.srcCategories.length,this._seriesMax||0)},e}(Te);Bt(Je,{type:"category",vertical:!1,majorGridLines:{visible:!1,width:1,color:n},labels:{zIndex:1},justified:!1,_deferLabels:!0});var Qe=Je,$e={milliseconds:"HH:mm:ss.fff",seconds:"HH:mm:ss",minutes:"HH:mm",hours:"HH:mm",days:"M/d",weeks:"M/d",months:"MMM 'yy",years:"yyyy"},ti=["milliseconds","seconds","minutes","hours",Re,"weeks","months",je];function ei(t){var e=t._range;return e||((e=t._range=Lt(t)).min=ze(e.min),e.max=ze(e.max)),e}var ii=function(t){this.options=t};ii.prototype.displayIndices=function(){return{min:0,max:1}},ii.prototype.displayRange=function(){return{}},ii.prototype.total=function(){return{}},ii.prototype.valueRange=function(){return{}},ii.prototype.valueIndex=function(){return-1},ii.prototype.values=function(){return[]},ii.prototype.totalIndex=function(){return-1},ii.prototype.valuesCount=function(){return 0},ii.prototype.totalCount=function(){return 0},ii.prototype.dateAt=function(){return null};var oi=function(t,e,i){this.options=i,i.baseUnitStep=i.baseUnitStep||1;var o=i.roundToBaseUnit,r=i.justified;this.start=Ee(t,0,i.baseUnit,i.weekStartDay);var n=this.roundToTotalStep(e),s=!r&&Ne(e,n)&&!i.justifyEnd;this.end=this.roundToTotalStep(e,!r,s?1:0);var a=i.min||t;this.valueStart=this.roundToTotalStep(a),this.displayStart=o?this.valueStart:a;var p=i.max;if(p){var h=!r&&Ne(p,this.roundToTotalStep(p))?-1:0;this.valueEnd=this.roundToTotalStep(p,!1,h),this.displayEnd=o?this.roundToTotalStep(p,!r):i.max}else this.valueEnd=n,this.displayEnd=o||s?this.end:e;this.valueEnd<this.valueStart&&(this.valueEnd=this.valueStart),this.displayEnd<=this.displayStart&&(this.displayEnd=this.roundToTotalStep(this.displayStart,!1,1))};function ri(t,e,i){for(var o,r,n,s=ei(t.categories),a=(t.max||s.max)-(t.min||s.min),p=t.autoBaseUnitSteps,h=t.maxDateGroups,c="fit"===t.baseUnit,l=e?ti.indexOf(e):0,u=c?ti[l++]:t.baseUnit,d=a/Ie[u],f=d;!r||d>=h;){o=o||p[u].slice(0);do{n=o.shift()}while(n&&e===u&&n<i);if(n)d=f/(r=n);else{if(u===Ct(ti)){r=Math.ceil(f/h);break}if(!c){d>h&&(r=Math.ceil(f/h));break}u=ti[l++]||Ct(ti),f=a/Ie[u],o=null}}t.baseUnitStep=r,t.baseUnit=u}function ni(t){var e=(t.baseUnit||"").toLowerCase();return"fit"!==e&&!ct(e,ti)&&function(t){for(var e,i,o=t.categories,r=xt(o)?o.length:0,n=u,s=0;s<r;s++){var a=o[s];if(a&&e){var p=Be(a,e);p>0&&(i=(n=Math.min(n,p))>=31536e6?je:n>=24192e5?"months":n>=6048e5?"weeks":n>=864e5?Re:n>=36e5?"hours":n>=6e4?"minutes":"seconds")}e=a}t.baseUnit=i||Re}(t),"fit"!==e&&"auto"!==t.baseUnitStep||ri(t),t}oi.prototype.displayRange=function(){return{min:this.displayStart,max:this.displayEnd}},oi.prototype.displayIndices=function(){if(!this._indices){var t=this.options,e=t.baseUnit,i=t.baseUnitStep,o=qe(this.displayStart,this.valueStart,e,i),r=qe(this.displayEnd,this.valueStart,e,i);this._indices={min:o,max:r}}return this._indices},oi.prototype.total=function(){return{min:this.start,max:this.end}},oi.prototype.totalCount=function(){return this.totalIndex(this.end)+(this.options.justified?1:0)},oi.prototype.valueRange=function(){return{min:this.valueStart,max:this.valueEnd}},oi.prototype.valueIndex=function(t){var e=this.options;return Math.floor(qe(t,this.valueStart,e.baseUnit,e.baseUnitStep))},oi.prototype.totalIndex=function(t){var e=this.options;return Math.floor(qe(t,this.start,e.baseUnit,e.baseUnitStep))},oi.prototype.dateIndex=function(t){var e=this.options;return qe(t,this.valueStart,e.baseUnit,e.baseUnitStep)},oi.prototype.valuesCount=function(){return this.valueIndex(this.valueEnd)+1},oi.prototype.values=function(){var t=this._values;if(!t){var e=this.options,i=this.valueRange();this._values=t=[];for(var o=i.min;o<=i.max;)t.push(o),o=Ee(o,e.baseUnitStep,e.baseUnit,e.weekStartDay)}return t},oi.prototype.dateAt=function(t,e){var i=this.options;return Ee(e?this.start:this.valueStart,i.baseUnitStep*t,i.baseUnit,i.weekStartDay)},oi.prototype.roundToTotalStep=function(t,e,i){var o=this.options,r=o.baseUnit,n=o.baseUnitStep,s=o.weekStartDay,a=this.start,p=qe(t,a,r,n),h=e?Math.ceil(p):Math.floor(p);return i&&(h+=i),Ee(a,h*n,r,s)};var si=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.clone=function(){var t=new e(Object.assign({},this.options),this.chartService);return t.createLabels(),t},e.prototype.categoriesHash=function(){var t=this.dataRange.total().min;return this.options.baseUnit+this.options.baseUnitStep+t},e.prototype.initUserOptions=function(t){return t},e.prototype.initFields=function(){t.prototype.initFields.call(this);var e=this.chartService,i=e.intl,o=this.options,r=o.categories||[];if(r._parsed||((r=Ye(i,r))._parsed=!0),o=j({roundToBaseUnit:!0},o,{categories:r,min:Xe(i,o.min),max:Xe(i,o.max),weekStartDay:Ze(o,i)}),e.panning&&e.isPannable(o.vertical?x:m)&&(o.roundToBaseUnit=!1),o.userSetBaseUnit=o.userSetBaseUnit||o.baseUnit,o.userSetBaseUnitStep=o.userSetBaseUnitStep||o.baseUnitStep,this.options=o,o.srcCategories=r,r.length>0){var n=ei(r),s=o.maxDivisions;if(this.dataRange=new oi(n.min,n.max,ni(o)),s){var a=this.dataRange.displayRange(),p=Object.assign({},o,{justified:!0,roundToBaseUnit:!1,baseUnit:"fit",min:a.min,max:a.max,maxDateGroups:s}),h=this.dataRange.options;ri(p,h.baseUnit,h.baseUnitStep),this.divisionRange=new oi(n.min,n.max,p)}else this.divisionRange=this.dataRange}else o.baseUnit=o.baseUnit||Re,this.dataRange=this.divisionRange=new ii(o);this.rangeLabels=[]},e.prototype.tickIndices=function(e){var i=this.dataRange,o=this.divisionRange,r=o.valuesCount();if(!this.options.maxDivisions||!r)return t.prototype.tickIndices.call(this,e);var n=[],s=o.values(),a=0;this.options.justified||(s=s.concat(o.dateAt(r)),a=.5);for(var p=0;p<s.length;p++)if(n.push(i.dateIndex(s[p])+a),1!==e&&p>=1){var h=n.length-1;n.splice(p,0,n[h-1]+(n[h]-n[h-1])*e)}return n},e.prototype.shouldRenderNote=function(t){var e=this.range(),i=this.options.categories||[];return Ue(t,e.min)>=0&&Ue(t,e.max)<=0&&i.length},e.prototype.parseNoteValue=function(t){return Xe(this.chartService.intl,t)},e.prototype.noteSlot=function(t){return this.getSlot(t)},e.prototype.translateRange=function(t){var e=this.options,i=e.baseUnit,o=e.weekStartDay,r=e.vertical,n=this.lineBox(),s=r?n.height():n.width(),a=this.range(),p=s/(a.max-a.min),h=Ot(t/p,10);if(a.min&&a.max){var c=Le(e.min||a.min,h),l=Le(e.max||a.max,h);a={min:Ee(c,0,i,o),max:Ee(l,0,i,o)}}return a},e.prototype.scaleRange=function(t){var e=Math.abs(t),i=this.range(),o=i.min,r=i.max;if(o&&r){for(;e--;){var n=Fe(o,r),s=Math.round(.1*n);t<0?(o=Le(o,s),r=Le(r,-s)):(o=Le(o,-s),r=Le(r,s))}i={min:o,max:r}}return i},e.prototype.labelsRange=function(){return{min:this.options.labels.skip,max:this.divisionRange.valuesCount()}},e.prototype.pan=function(t){if(this.isEmpty())return null;var e=this.options,i=this.lineBox(),o=e.vertical?i.height():i.width(),r=this.dataRange.displayRange(),n=r.min,s=r.max,a=this.dataRange.total(),p=Ot(t/(o/(s-n)),10)*(e.reverse?-1:1),h=Le(n,p),c=Le(s,p),l=this.limitRange(He(h),He(c),He(a.min),He(a.max),p);return l?(l.min=ze(l.min),l.max=ze(l.max),l.baseUnit=e.baseUnit,l.baseUnitStep=e.baseUnitStep||1,l.userSetBaseUnit=e.userSetBaseUnit,l.userSetBaseUnitStep=e.userSetBaseUnitStep,l):void 0},e.prototype.pointsRange=function(e,i){if(this.isEmpty())return null;var o=t.prototype.pointsRange.call(this,e,i),r=this.dataRange.displayRange(),n=this.dataRange.displayIndices(),s=Fe(r.max,r.min)/(n.max-n.min),a=this.options;return{min:Le(r.min,o.min*s),max:Le(r.min,o.max*s),baseUnit:a.userSetBaseUnit||a.baseUnit,baseUnitStep:a.userSetBaseUnitStep||a.baseUnitStep}},e.prototype.zoomRange=function(t){if(this.isEmpty())return null;var e=this.options,i="fit"===e.userSetBaseUnit,o=this.dataRange.total(),r=this.dataRange.displayRange(),n=r.min,s=r.max,a=this.dataRange.options,p=a.weekStartDay,h=a.baseUnit,c=a.baseUnitStep,l=Ee(n,t*c,h,p),u=Ee(s,-t*c,h,p);if(i){var d,f,g=e.autoBaseUnitSteps,y=e.maxDateGroups,v=Ct(g[h])*y*Ie[h],m=Fe(s,n),x=Fe(u,l),_=ti.indexOf(h);if(x<Ie[h]&&"milliseconds"!==h)h=ti[_-1],l=Le(n,f=(m-(y-1)*(d=Ct(g[h]))*Ie[h])/2),u=Le(s,-f);else if(x>v&&h!==je){var b=0;do{_++,h=ti[_],b=0,f=2*Ie[h];do{d=g[h][b],b++}while(b<g[h].length&&f*d<m)}while(h!==je&&f*d<m);(f=(f*d-m)/2)>0&&(l=Le(n,-f),u=Le(s,f),l=Le(l,kt(u,o.min,o.max)-u),u=Le(u,kt(l,o.min,o.max)-l))}}return l<o.min&&(l=o.min),u>o.max&&(u=o.max),l&&u&&Fe(u,l)>0?{min:l,max:u,baseUnit:e.userSetBaseUnit||e.baseUnit,baseUnitStep:e.userSetBaseUnitStep||e.baseUnitStep}:void 0},e.prototype.range=function(){return this.dataRange.displayRange()},e.prototype.createLabels=function(){t.prototype.createLabels.call(this),this.createRangeLabels()},e.prototype.clearLabels=function(){t.prototype.clearLabels.call(this),this.rangeLabels=[]},e.prototype.arrangeLabels=function(){this.arrangeRangeLabels(),t.prototype.arrangeLabels.call(this)},e.prototype.arrangeRangeLabels=function(){var t=this.options,e=this.rangeLabels;if(0!==e.length){var i=this.lineBox(),o=t.vertical,r=t.rangeLabels.mirror||t.labels.mirror,n=e[0];if(n){var s=o?i.y1-n.box.height()/2:i.x1;this.positionLabel(n,r,s)}var a=e[1];if(a){var p=o?i.y2-a.box.height()/2:i.x2;this.positionLabel(a,r,p)}}},e.prototype.autoRotateLabels=function(){t.prototype.autoRotateLabels.call(this),this.autoRotateRangeLabels()},e.prototype.hideOutOfRangeLabels=function(){t.prototype.hideOutOfRangeLabels.call(this),this.hideOverlappingLabels()},e.prototype.hideOverlappingLabels=function(){var t=this.rangeLabels,e=this.labels;if(0!==t.length){var i=t[0];if(i&&i.options.visible)for(var o=0;o<e.length;o++){if(!s(i,e[o]))break}var r=t[1];if(r&&r.options.visible)for(var n=e.length-1;n>0;--n){if(!s(r,e[n]))break}}function s(t,e){return!(e.options.visible&&!e.box.overlaps(t.box))&&(e.options.visible=!1,!0)}},e.prototype.contentBox=function(){for(var e=t.prototype.contentBox.call(this),i=this.rangeLabels,o=0;o<i.length;o++){var r=i[o];r.options.visible&&e.wrap(r.box)}return e},e.prototype.createAxisLabel=function(t,e,i){void 0===i&&(i={});var o=this.options,r=o.dataItems&&!o.maxDivisions?o.dataItems[t]:null,n=this.divisionRange.dateAt(t),s=e.dateFormats[this.divisionRange.options.baseUnit];e.format=e.format||s,i.dataItem=r;var a=this.axisLabelText(n,e,i);if(a)return new Ae(n,a,t,r,e)},e.prototype.createRangeLabels=function(){var t=this,e=this.divisionRange,i=e.displayStart,o=e.displayEnd,r=this.options,n=Object.assign({},r.labels,r.rangeLabels,{align:a,zIndex:r.zIndex});if(!0===n.visible){this.normalizeLabelRotation(n),n.alignRotation=a,"auto"===n.rotation&&(n.rotation=0,r.autoRotateRangeLabels=!0);var s=n.dateFormats[this.divisionRange.options.baseUnit];n.format=n.format||s;var p=function(e,i,o){if(o){var r=new Ae(i,o,e,null,n);t.append(r),t.rangeLabels.push(r)}};p(0,i,this.axisLabelText(i,n,{index:0,count:2})),p(1,o,this.axisLabelText(o,n,{index:1,count:2}))}},e.prototype.autoRotateRangeLabels=function(){var t=this,e=this.rangeLabels;if(this.options.autoRotateRangeLabels&&!this.options.vertical&&2===e.length){var i=function(e,i,o){var r=2*Math.abs(i[o+1]-i[o]),n=t.autoRotateLabelAngle(e.box,r);0!==n&&(e.options.rotation=n,e.reflow(new Jt))},o=this.getMajorTickPositions();i(e[0],o,0),i(e[1],o,o.length-2)}},e.prototype.categoryIndex=function(t){return this.dataRange.valueIndex(t)},e.prototype.slot=function(t,e,i){var o=this.dataRange,r=t,n=e;r instanceof Date&&(r=o.dateIndex(r)),n instanceof Date&&(n=o.dateIndex(n));var s=this.getSlot(r,n,i);if(s)return s.toRect()},e.prototype.getSlot=function(e,i,o){var r=e,n=i;return"object"==typeof r&&(r=this.categoryIndex(r)),"object"==typeof n&&(n=this.categoryIndex(n)),t.prototype.getSlot.call(this,r,n,o)},e.prototype.valueRange=function(){var t=ei(this.options.srcCategories);return{min:ze(t.min),max:ze(t.max)}},e.prototype.categoryAt=function(t,e){return this.dataRange.dateAt(t,e)},e.prototype.categoriesCount=function(){return this.dataRange.valuesCount()},e.prototype.rangeIndices=function(){return this.dataRange.displayIndices()},e.prototype.labelsBetweenTicks=function(){return!this.divisionRange.options.justified},e.prototype.prepareUserOptions=function(){this.isEmpty()||(this.options.categories=this.dataRange.values())},e.prototype.getCategory=function(t){var e=this.pointCategoryIndex(t);return null===e?null:this.dataRange.dateAt(e)},e.prototype.totalIndex=function(t){return this.dataRange.totalIndex(t)},e.prototype.currentRangeIndices=function(){var t=this.dataRange.valueRange();return{min:this.dataRange.totalIndex(t.min),max:this.dataRange.totalIndex(t.max)}},e.prototype.totalRange=function(){return this.dataRange.total()},e.prototype.totalCount=function(){return this.dataRange.totalCount()},e.prototype.isEmpty=function(){return!this.options.srcCategories.length},e.prototype.roundedRange=function(){if(!1!==this.options.roundToBaseUnit||this.isEmpty())return this.range();var t=this.options,e=ei(t.srcCategories);return new oi(e.min,e.max,Object.assign({},t,{justified:!1,roundToBaseUnit:!0,justifyEnd:t.justified})).displayRange()},e}(Qe);Bt(si,{type:h,labels:{dateFormats:$e},rangeLabels:{visible:!1},autoBaseUnitSteps:{milliseconds:[1,10,100],seconds:[1,2,5,15,30],minutes:[1,2,5,15,30],hours:[1,2,3],days:[1,2,3],weeks:[1,2],months:[1,2,3,6],years:[1,2,3,5,10,25,50]},maxDateGroups:10});var ai=si;function pi(t,e){return Ot(Math.floor(t/e)*e,10)}function hi(t,e){return Ot(Math.ceil(t/e)*e,10)}function ci(t){return Math.max(Math.min(t,3e5),-3e5)}var li=Math.pow(10,-9),ui=function(t){function e(e,i,o,r){t.call(this,Object.assign({},o,{seriesMin:e,seriesMax:i}),r)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.initUserOptions=function(t){var e=function(t,e,i){var o=i.narrowRange,r=function(t,e,i){if(!t&&!e)return 0;var o;if(t>=0&&e>=0){var r=t===e?0:t;if(!1===i||!i&&(e-r)/e>.2)return 0;o=Math.max(0,r-(e-r)/2)}else o=t;return o}(t,e,o),n=function(t,e,i){if(!t&&!e)return 1;var o;if(t<=0&&e<=0){var r=t===e?0:e,n=Math.abs((r-t)/r);if(!1===i||!i&&n>.2)return 0;o=Math.min(0,r-(t-r)/2)}else o=e;return o}(t,e,o),s=Xt(r,n),a={majorUnit:s};!1!==i.roundToMajorUnit&&(r<0&&di(r,s,1/3)&&(r-=s),n>0&&di(n,s,1/3)&&(n+=s));return a.min=pi(r,s),a.max=hi(n,s),a}(t.seriesMin,t.seriesMax,t);return this.totalOptions=function(t,e){return{min:xt(e.min)?Math.min(t.min,e.min):t.min,max:xt(e.max)?Math.max(t.max,e.max):t.max,majorUnit:t.majorUnit}}(e,t),function(t,e){var i,o,r=e;if(e){!function(t,e){for(var i=0;i<e.length;i++){var o=e[i];null===t[o]&&(t[o]=void 0)}}(e,["min","max"]),i=xt(e.min),o=xt(e.max);var n=i||o;n&&e.min===e.max&&(e.min>0?e.min=0:e.max=1),e.majorUnit?(t.min=pi(t.min,e.majorUnit),t.max=hi(t.max,e.majorUnit)):n&&(r=j(t,e),t.majorUnit=Xt(r.min,r.max))}t.minorUnit=(r.majorUnit||t.majorUnit)/5;var s=j(t,r);s.min>=s.max&&(i&&!o?s.max=s.min+s.majorUnit:!i&&o&&(s.min=s.max-s.majorUnit));return s}(e,t)},e.prototype.initFields=function(){this.totalMin=this.totalOptions.min,this.totalMax=this.totalOptions.max,this.totalMajorUnit=this.totalOptions.majorUnit,this.seriesMin=this.options.seriesMin,this.seriesMax=this.options.seriesMax},e.prototype.clone=function(){return new e(this.seriesMin,this.seriesMax,Object.assign({},this.options),this.chartService)},e.prototype.startValue=function(){return 0},e.prototype.range=function(){var t=this.options;return{min:t.min,max:t.max}},e.prototype.getDivisions=function(t){if(0===t)return 1;var e=this.options,i=e.max-e.min;return Math.floor(Ot(i/t,3))+1},e.prototype.getTickPositions=function(t,e){var i=this.options,o=i.vertical,r=i.reverse,n=this.lineBox(),s=t*((o?n.height():n.width())/(i.max-i.min)),a=this.getDivisions(t),p=(o?-1:1)*(r?-1:1),h=[],c=n[(o?x:m)+(1===p?1:2)],l=0;e&&(l=e/t);for(var u=0;u<a;u++)u%l!=0&&h.push(Ot(c,3)),c+=s*p;return h},e.prototype.getMajorTickPositions=function(){return this.getTickPositions(this.options.majorUnit)},e.prototype.getMinorTickPositions=function(){return this.getTickPositions(this.options.minorUnit)},e.prototype.getSlot=function(t,e,i){void 0===i&&(i=!1);var o,r,n=this.options,s=n.vertical,a=n.reverse,p=s?x:m,h=this.lineBox(),c=h[p+(a?2:1)],l=(a?-1:1)*((s?h.height():h.width())/(n.max-n.min)),u=new Jt(h.x1,h.y1,h.x1,h.y1),d=t,f=e;return xt(d)||(d=f||0),xt(f)||(f=d||0),i&&(d=Math.max(Math.min(d,n.max),n.min),f=Math.max(Math.min(f,n.max),n.min)),s?(o=n.max-Math.max(d,f),r=n.max-Math.min(d,f)):(o=Math.min(d,f)-n.min,r=Math.max(d,f)-n.min),u[p+1]=ci(c+l*(a?r:o)),u[p+2]=ci(c+l*(a?o:r)),u},e.prototype.getValue=function(t){var e=this.options,i=e.vertical,o=e.reverse,r=Number(e.max),n=Number(e.min),s=i?x:m,a=this.lineBox(),p=a[s+(o?2:1)],h=i?a.height():a.width(),c=(o?-1:1)*(t[s]-p),l=c*((r-n)/h);return c<0||c>h?null:Ot(i?r-l:n+l,10)},e.prototype.translateRange=function(t){var e=this.options,i=e.vertical,o=e.reverse,r=e.max,n=e.min,s=this.lineBox(),a=i?s.height():s.width(),p=Ot(t/(a/(r-n)),10);return!i&&!o||i&&o||(p=-p),{min:n+p,max:r+p,offset:p}},e.prototype.scaleRange=function(t){var e=this.options,i=-t*e.majorUnit;return{min:e.min-i,max:e.max+i}},e.prototype.labelsCount=function(){return this.getDivisions(this.options.majorUnit)},e.prototype.createAxisLabel=function(t,e,i){var o=this.options,r=Ot(o.min+t*o.majorUnit,10),n=this.axisLabelText(r,e,i);return new Ae(r,n,t,null,e)},e.prototype.shouldRenderNote=function(t){var e=this.range();return e.min<=t&&t<=e.max},e.prototype.pan=function(t){var e=this.translateRange(t);return this.limitRange(e.min,e.max,this.totalMin,this.totalMax,e.offset)},e.prototype.pointsRange=function(t,e){var i=this.getValue(t),o=this.getValue(e),r=Math.min(i,o),n=Math.max(i,o);if(this.isValidRange(r,n))return{min:r,max:n}},e.prototype.zoomRange=function(t){var e=this.totalMin,i=this.totalMax,o=this.scaleRange(t),r=kt(o.min,e,i),n=kt(o.max,e,i);if(this.isValidRange(r,n))return{min:r,max:n}},e.prototype.isValidRange=function(t,e){return e-t>li},e}(Te);function di(t,e,i){var o=Ot(Math.abs(t%e),10);return 0===o||o>e*(1-i)}Bt(ui,{type:"numeric",min:0,max:1,vertical:!0,majorGridLines:{visible:!0,width:1,color:n},labels:{format:"#.####################"},zIndex:1});var fi=ui,gi=function(t){function e(e,i,o,r){var n=ze(e),s=ze(i),a=r.intl,p=o||{};p=function(t,e,i){var o=i.min||t,r=i.max||e,n=i.baseUnit||(r&&o?function(t){var e="hours";t>=31536e6?e=je:t>=26784e5?e="months":t>=6048e5?e="weeks":t>=864e5&&(e=Re);return e}(Be(r,o)):"hours"),s=Ie[n],a=i.weekStartDay||0,p=De(He(o)-1,n,a)||ze(r),h=Ge(He(r)+1,n,a),c=(i.majorUnit?i.majorUnit:void 0)||hi(Xt(p.getTime(),h.getTime()),s)/s,l=Ke(p,h,n),u=hi(l,c)-l,d=Math.floor(u/2),f=u-d;i.baseUnit||delete i.baseUnit;return i.baseUnit=i.baseUnit||n,i.min=i.min||Ee(p,-d,n,a),i.max=i.max||Ee(h,f,n,a),i.minorUnit=i.minorUnit||c/5,i.majorUnit=c,i}(n,s,p=j(p||{},{min:Xe(a,p.min),max:Xe(a,p.max),axisCrossingValue:Ye(a,p.axisCrossingValues||p.axisCrossingValue),weekStartDay:Ze(p,a)})),t.call(this,p,r),this.intlService=a,this.seriesMin=n,this.seriesMax=s;var h=p.weekStartDay||0;this.totalMin=He(De(He(n)-1,p.baseUnit,h)),this.totalMax=He(Ge(He(s)+1,p.baseUnit,h))}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.clone=function(){return new e(this.seriesMin,this.seriesMax,Object.assign({},this.options),this.chartService)},e.prototype.range=function(){var t=this.options;return{min:t.min,max:t.max}},e.prototype.getDivisions=function(t){var e=this.options;return Math.floor(Ke(e.min,e.max,e.baseUnit)/t+1)},e.prototype.getTickPositions=function(t){for(var e=this.options,i=e.vertical,o=this.lineBox(),r=(i?-1:1)*(e.reverse?-1:1),n=o[(i?x:m)+(1===r?1:2)],s=this.getDivisions(t),a=Fe(e.max,e.min),p=(i?o.height():o.width())/a,h=e.weekStartDay||0,c=[n],l=1;l<s;l++){var u=n+Fe(Ee(e.min,l*t,e.baseUnit,h),e.min)*p*r;c.push(Ot(u,3))}return c},e.prototype.getMajorTickPositions=function(){return this.getTickPositions(this.options.majorUnit)},e.prototype.getMinorTickPositions=function(){return this.getTickPositions(this.options.minorUnit)},e.prototype.getSlot=function(t,e,i){return fi.prototype.getSlot.call(this,Xe(this.intlService,t),Xe(this.intlService,e),i)},e.prototype.getValue=function(t){var e=fi.prototype.getValue.call(this,t);return null!==e?ze(e):null},e.prototype.labelsCount=function(){return this.getDivisions(this.options.majorUnit)},e.prototype.createAxisLabel=function(t,e,i){var o=this.options,r=t*o.majorUnit,n=o.weekStartDay||0,s=o.min;r>0&&(s=Ee(s,r,o.baseUnit,n));var a=e.dateFormats[o.baseUnit];e.format=e.format||a;var p=this.axisLabelText(s,e,i);return new Ae(s,p,t,null,e)},e.prototype.translateRange=function(t,e){var i=this.options,o=i.baseUnit,r=i.weekStartDay||0,n=this.lineBox(),s=i.vertical?n.height():n.width(),a=this.range(),p=s/Fe(a.max,a.min),h=Ot(t/p,10)*(i.reverse?-1:1),c=Le(i.min,h),l=Le(i.max,h);return e||(c=Ee(c,0,o,r),l=Ee(l,0,o,r)),{min:c,max:l,offset:h}},e.prototype.scaleRange=function(t){for(var e=this.options,i=e.min,o=e.max,r=Math.abs(t);r--;){var n=Fe(i,o),s=Math.round(.1*n);t<0?(i=Le(i,s),o=Le(o,-s)):(i=Le(i,-s),o=Le(o,s))}return{min:i,max:o}},e.prototype.shouldRenderNote=function(t){var e=this.range();return Ue(t,e.min)>=0&&Ue(t,e.max)<=0},e.prototype.pan=function(t){var e=this.translateRange(t,!0),i=this.limitRange(He(e.min),He(e.max),this.totalMin,this.totalMax,e.offset);if(i)return{min:ze(i.min),max:ze(i.max)}},e.prototype.pointsRange=function(t,e){var i=this.getValue(t),o=this.getValue(e),r=Math.min(i,o),n=Math.max(i,o);return{min:ze(r),max:ze(n)}},e.prototype.zoomRange=function(t){var e=this.scaleRange(t);return{min:ze(kt(He(e.min),this.totalMin,this.totalMax)),max:ze(kt(He(e.max),this.totalMin,this.totalMax))}},e}(Te);Bt(gi,{type:h,majorGridLines:{visible:!0,width:1,color:n},labels:{dateFormats:$e}});var yi=gi,vi=function(t){function e(e,i,o,r){var n=j({majorUnit:10,min:e,max:i},o),s=n.majorUnit,a=function(t,e){var i,o=Ot(xi(t,e),10)%1;i=t<=0?e:0!==o&&(o<.3||o>.9)?Math.pow(e,xi(t,e)+.2):Math.pow(e,Math.ceil(xi(t,e)));return i}(i,s),p=function(t,e,i){var o=i.majorUnit,r=t;t<=0?r=e<=1?Math.pow(o,-2):1:i.narrowRange||(r=Math.pow(o,Math.floor(xi(t,o))));return r}(e,i,n),h=function(t,e,i,o){var r=i.min,n=i.max;xt(i.axisCrossingValue)&&i.axisCrossingValue<=0&&mi();xt(o.max)?o.max<=0&&mi():n=e;xt(o.min)?o.min<=0&&mi():r=t;return{min:r,max:n}}(p,a,n,o);n.max=h.max,n.min=h.min,n.minorUnit=o.minorUnit||Ot(s-1,10),t.call(this,n,r),this.totalMin=xt(o.min)?Math.min(p,o.min):p,this.totalMax=xt(o.max)?Math.max(a,o.max):a,this.logMin=Ot(xi(h.min,s),10),this.logMax=Ot(xi(h.max,s),10),this.seriesMin=e,this.seriesMax=i,this.createLabels()}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.clone=function(){return new e(this.seriesMin,this.seriesMax,Object.assign({},this.options),this.chartService)},e.prototype.startValue=function(){return this.options.min},e.prototype.getSlot=function(t,e,i){var o,r,n=this.options,s=this.logMin,a=this.logMax,p=n.reverse,h=n.vertical,c=n.majorUnit,l=h?x:m,u=this.lineBox(),d=u[l+(p?2:1)],f=(p?-1:1)*((h?u.height():u.width())/(a-s)),g=new Jt(u.x1,u.y1,u.x1,u.y1),y=t,v=e;return xt(y)||(y=v||1),xt(v)||(v=y||1),y<=0||v<=0?null:(i&&(y=Math.max(Math.min(y,n.max),n.min),v=Math.max(Math.min(v,n.max),n.min)),y=xi(y,c),v=xi(v,c),h?(o=a-Math.max(y,v),r=a-Math.min(y,v)):(o=Math.min(y,v)-s,r=Math.max(y,v)-s),g[l+1]=ci(d+f*(p?r:o)),g[l+2]=ci(d+f*(p?o:r)),g)},e.prototype.getValue=function(t){var e=this.options,i=this.logMin,o=this.logMax,r=e.reverse,n=e.vertical,s=e.majorUnit,a=this.lineBox(),p=n===r?1:-1,h=1===p?1:2,c=n?a.height():a.width(),l=(o-i)/c,u=n?x:m,d=a[u+h],f=p*(t[u]-d);if(f<0||f>c)return null;var g=i+f*l;return Ot(Math.pow(s,g),10)},e.prototype.range=function(){var t=this.options;return{min:t.min,max:t.max}},e.prototype.scaleRange=function(t){var e=this.options.majorUnit,i=-t;return{min:Math.pow(e,this.logMin-i),max:Math.pow(e,this.logMax+i)}},e.prototype.translateRange=function(t){var e=this.options,i=this.logMin,o=this.logMax,r=e.reverse,n=e.vertical,s=e.majorUnit,a=this.lineBox(),p=n?a.height():a.width(),h=Ot(t/(p/(o-i)),10);return!n&&!r||n&&r||(h=-h),{min:Math.pow(s,i+h),max:Math.pow(s,o+h),offset:h}},e.prototype.labelsCount=function(){var t=Math.floor(this.logMax);return Math.floor(t-this.logMin)+1},e.prototype.getMajorTickPositions=function(){var t=[];return this.traverseMajorTicksPositions((function(e){t.push(e)}),{step:1,skip:0}),t},e.prototype.createTicks=function(t){var e=this.options,i=e.majorTicks,o=e.minorTicks,r=e.vertical,n=e.labels.mirror,s=this.lineBox(),a={vertical:r};function p(e,i){a.tickX=n?s.x2:s.x2-i.size,a.tickY=n?s.y1-i.size:s.y1,a.position=e,t.append(Pe(a,i))}return i.visible&&this.traverseMajorTicksPositions(p,i),o.visible&&this.traverseMinorTicksPositions(p,o),[]},e.prototype.createGridLines=function(t){var e=this.options,i=e.minorGridLines,o=e.majorGridLines,r=e.vertical,n=t.lineBox(),s={lineStart:n[r?"x1":"y1"],lineEnd:n[r?"x2":"y2"],vertical:r},a=[],p=this.gridLinesVisual();function h(t,e){ct(t,a)||(s.position=t,p.append(Me(s,e)),a.push(t))}return o.visible&&this.traverseMajorTicksPositions(h,o),i.visible&&this.traverseMinorTicksPositions(h,i),p.children},e.prototype.traverseMajorTicksPositions=function(t,e){for(var i=this._lineOptions(),o=i.lineStart,r=i.step,n=this.logMin,s=this.logMax,a=Math.ceil(n)+e.skip;a<=s;a+=e.step){t(Ot(o+r*(a-n),10),e)}},e.prototype.traverseMinorTicksPositions=function(t,e){for(var i=this.options,o=i.min,r=i.max,n=i.minorUnit,s=i.majorUnit,a=this._lineOptions(),p=a.lineStart,h=a.step,c=this.logMin,l=this.logMax,u=Math.floor(c);u<l;u++)for(var d=this._minorIntervalOptions(u),f=e.skip;f<n;f+=e.step){var g=d.value+f*d.minorStep;if(g>r)break;if(g>=o)t(Ot(p+h*(xi(g,s)-c),10),e)}},e.prototype.createAxisLabel=function(t,e,i){var o=Math.ceil(this.logMin+t),r=Math.pow(this.options.majorUnit,o),n=this.axisLabelText(r,e,i);return new Ae(r,n,t,null,e)},e.prototype.shouldRenderNote=function(t){var e=this.range();return e.min<=t&&t<=e.max},e.prototype.pan=function(t){var e=this.translateRange(t);return this.limitRange(e.min,e.max,this.totalMin,this.totalMax,e.offset)},e.prototype.pointsRange=function(t,e){var i=this.getValue(t),o=this.getValue(e);return{min:Math.min(i,o),max:Math.max(i,o)}},e.prototype.zoomRange=function(t){var e=this.options,i=this.totalMin,o=this.totalMax,r=this.scaleRange(t),n=kt(r.min,i,o),s=kt(r.max,i,o),a=e.majorUnit,p=s>n&&e.min&&e.max&&Ot(xi(e.max,a)-xi(e.min,a),10)<1,h=!(e.min===i&&e.max===o)&&Ot(xi(s,a)-xi(n,a),10)>=1;if(p||h)return{min:n,max:s}},e.prototype._minorIntervalOptions=function(t){var e=this.options,i=e.minorUnit,o=e.majorUnit,r=Math.pow(o,t);return{value:r,minorStep:(Math.pow(o,t+1)-r)/i}},e.prototype._lineOptions=function(){var t=this.options,e=t.reverse,i=t.vertical,o=i?x:m,r=this.lineBox(),n=i===e?1:-1,s=1===n?1:2;return{step:n*((i?r.height():r.width())/(this.logMax-this.logMin)),lineStart:r[o+s],lineBox:r}},e}(Te);function mi(){throw new Error("Non positive values cannot be used for a logarithmic axis")}function xi(t,e){return Math.log(t)/Math.log(e)}Bt(vi,{type:"log",majorUnit:10,minorUnit:1,axisCrossingValue:1,vertical:!0,majorGridLines:{visible:!0,width:1,color:n},zIndex:1,_deferLabels:!0});var _i=vi,bi={createGridLines:function(t){var e,i,o=this.options,r=Math.abs(this.box.center().y-t.lineBox().y1),n=[],s=!1;return o.majorGridLines.visible&&(e=this.majorGridLineAngles(t),s=!0,n=this.renderMajorGridLines(e,r,o.majorGridLines)),o.minorGridLines.visible&&(i=this.minorGridLineAngles(t,s),vt(n,this.renderMinorGridLines(i,r,o.minorGridLines,t,s))),n},renderMajorGridLines:function(t,e,i){return this.renderGridLines(t,e,i)},renderMinorGridLines:function(t,e,i,o,r){var n=this.radiusCallback&&this.radiusCallback(e,o,r);return this.renderGridLines(t,e,i,n)},renderGridLines:function(t,e,i,o){for(var r={stroke:{width:i.width,color:i.color,dashType:i.dashType}},n=this.box.center(),s=new A.geometry.Circle([n.x,n.y],e),a=this.gridLinesVisual(),p=0;p<t.length;p++){var h=new A.drawing.Path(r);o&&(s.radius=o(t[p])),h.moveTo(s.center).lineTo(s.pointAt(t[p]+180)),a.append(h)}return a.children},gridLineAngles:function(t,e,i,o,r){var n=this,s=this.intervals(e,i,o,r),a=t.options,p=a.visible&&!1!==(a.line||{}).visible;return ft(s,(function(t){var e=n.intervalAngle(t);if(!p||90!==e)return e}))}},wi=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.range=function(){return{min:0,max:this.options.categories.length}},e.prototype.reflow=function(t){this.box=t,this.reflowLabels()},e.prototype.lineBox=function(){return this.box},e.prototype.reflowLabels=function(){for(var t=this.labels,e=this.options.labels,i=e.skip||0,o=e.step||1,r=new Jt,n=0;n<t.length;n++){t[n].reflow(r);var s=t[n].box;t[n].reflow(this.getSlot(i+n*o).adjacentBox(0,s.width(),s.height()))}},e.prototype.intervals=function(t,e,i,o){void 0===o&&(o=!1);for(var r=this.options,n=r.categories.length/t||1,s=360/n,a=i||1,p=[],h=0,c=e||0;c<n;c+=a)h=r.reverse?360-c*s:c*s,h=Ot(h,3)%360,o&&ct(h,o)||p.push(h);return p},e.prototype.majorIntervals=function(){return this.intervals(1)},e.prototype.minorIntervals=function(){return this.intervals(.5)},e.prototype.intervalAngle=function(t){return(360+t+this.options.startAngle)%360},e.prototype.majorAngles=function(){var t=this;return ft(this.majorIntervals(),(function(e){return t.intervalAngle(e)}))},e.prototype.createLine=function(){return[]},e.prototype.majorGridLineAngles=function(t){var e=this.options.majorGridLines;return this.gridLineAngles(t,1,e.skip,e.step)},e.prototype.minorGridLineAngles=function(t,e){var i=this.options,o=i.minorGridLines,r=i.majorGridLines,n=e?this.intervals(1,r.skip,r.step):null;return this.gridLineAngles(t,.5,o.skip,o.step,n)},e.prototype.radiusCallback=function(t,e,i){if(e.options.type!==r){var o=Mt(360/(2*this.options.categories.length)),n=Math.cos(o)*t,s=this.majorAngles(),a=function(e){return!i&&ct(e,s)?t:n};return a}},e.prototype.createPlotBands=function(){for(var t=this.options.plotBands||[],e=this._plotbandGroup=new A.drawing.Group({zIndex:-1}),i=0;i<t.length;i++){var o=t[i],r=this.plotBandSlot(o),n=this.getSlot(o.from),s=o.from-Math.floor(o.from);r.startAngle+=s*n.angle;var a=Math.ceil(o.to)-o.to;r.angle-=(a+s)*n.angle;var p=ie.current.createRing(r,{fill:{color:o.color,opacity:o.opacity},stroke:{opacity:o.opacity}});e.append(p)}this.appendVisual(e)},e.prototype.plotBandSlot=function(t){return this.getSlot(t.from,t.to-1)},e.prototype.getSlot=function(t,e){var i=this.options,o=i.justified,r=this.box,n=this.majorAngles(),s=n.length,a=360/s,p=t;i.reverse&&!o&&(p=(p+1)%s);var h=n[p=kt(Math.floor(p),0,s-1)];o&&(h-=a/2)<0&&(h+=360);var c=a*(kt(Math.ceil(e||p),p,s-1)-p+1);return new $t(r.center(),0,r.height()/2,h,c)},e.prototype.slot=function(t,e){var i=this.getSlot(t,e),o=i.startAngle+180,r=o+i.angle;return new A.geometry.Arc([i.center.x,i.center.y],{startAngle:o,endAngle:r,radiusX:i.radius,radiusY:i.radius})},e.prototype.pointCategoryIndex=function(t){for(var e=this.options.categories.length,i=null,o=0;o<e;o++){if(this.getSlot(o).containsPoint(t)){i=o;break}}return i},e}(Qe);Bt(wi,{startAngle:90,labels:{margin:E(10)},majorGridLines:{visible:!0},justified:!0}),j(wi.prototype,bi);var Si=wi,Ai=function(t){function e(e,i){t.call(this,e,i);var o=this.options;o.minorUnit=o.minorUnit||o.majorUnit/2}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.getDivisions=function(t){return fi.prototype.getDivisions.call(this,t)-1},e.prototype.reflow=function(t){this.box=t,this.reflowLabels()},e.prototype.reflowLabels=function(){for(var t=this.options,e=this.labels,i=this.options.labels,o=i.skip||0,r=i.step||1,n=new Jt,s=this.intervals(t.majorUnit,o,r),a=0;a<e.length;a++){e[a].reflow(n);var p=e[a].box;e[a].reflow(this.getSlot(s[a]).adjacentBox(0,p.width(),p.height()))}},e.prototype.lineBox=function(){return this.box},e.prototype.intervals=function(t,e,i,o){void 0===o&&(o=!1);for(var r=this.options.min,n=this.getDivisions(t),s=[],a=i||1,p=e||0;p<n;p+=a){var h=(360+r+p*t)%360;o&&ct(h,o)||s.push(h)}return s},e.prototype.majorIntervals=function(){return this.intervals(this.options.majorUnit)},e.prototype.minorIntervals=function(){return this.intervals(this.options.minorUnit)},e.prototype.intervalAngle=function(t){return(540-t-this.options.startAngle)%360},e.prototype.createLine=function(){return[]},e.prototype.majorGridLineAngles=function(t){var e=this.options.majorGridLines;return this.gridLineAngles(t,this.options.majorUnit,e.skip,e.step)},e.prototype.minorGridLineAngles=function(t,e){var i=this.options,o=i.minorGridLines,r=i.majorGridLines,n=e?this.intervals(i.majorUnit,r.skip,r.step):null;return this.gridLineAngles(t,i.minorUnit,o.skip,o.step,n)},e.prototype.plotBandSlot=function(t){return this.getSlot(t.from,t.to)},e.prototype.getSlot=function(t,e){var i=this.options,o=this.box,r=i.startAngle,n=kt(t,i.min,i.max),s=kt(e||n,n,i.max);if(i.reverse&&(n*=-1,s*=-1),(s=(540-s-r)%360)<(n=(540-n-r)%360)){var a=n;n=s,s=a}return new $t(o.center(),0,o.height()/2,n,s-n)},e.prototype.slot=function(t,e){void 0===e&&(e=t);var i,o,r=this.options,n=360-r.startAngle,s=this.getSlot(t,e),a=Math.min(t,e),p=Math.max(t,e);return r.reverse?(i=a,o=p):(i=360-p,o=360-a),i=(i+n)%360,o=(o+n)%360,new A.geometry.Arc([s.center.x,s.center.y],{startAngle:i,endAngle:o,radiusX:s.radius,radiusY:s.radius})},e.prototype.getValue=function(t){var e=this.options,i=this.box.center(),o=t.x-i.x,r=t.y-i.y,n=Math.round(_t(Math.atan2(r,o))),s=e.startAngle;return e.reverse||(n*=-1,s*=-1),(n+s+360)%360},e.prototype.valueRange=function(){return{min:0,max:2*Math.PI}},e}(Te);Bt(Ai,{type:"polar",startAngle:0,reverse:!1,majorUnit:60,min:0,max:360,labels:{margin:E(10)},majorGridLines:{color:n,visible:!0,width:1},minorGridLines:{color:"#aaa"}}),j(Ai.prototype,bi,{createPlotBands:Si.prototype.createPlotBands,majorAngles:Si.prototype.majorAngles,range:fi.prototype.range,labelsCount:fi.prototype.labelsCount,createAxisLabel:fi.prototype.createAxisLabel});var Ci=Ai;function ki(t,e){return 180-Math.abs(Math.abs(t-e)-180)}var Pi={options:{majorGridLines:{visible:!0}},createPlotBands:function(){var t=this.options,e=t.majorGridLines.type,i=t.plotBands;void 0===i&&(i=[]);for(var o=this.plotArea.polarAxis,n=o.majorAngles(),s=o.box.center(),a=this._plotbandGroup=new A.drawing.Group({zIndex:-1}),p=0;p<i.length;p++){var h=i[p],c={fill:{color:h.color,opacity:h.opacity},stroke:{opacity:h.opacity}},l=this.getSlot(h.from,h.to,!0),u=new $t(s,s.y-l.y2,s.y-l.y1,0,360),d=void 0;d=e===r?ie.current.createRing(u,c):A.drawing.Path.fromPoints(this.plotBandPoints(u,n),c).close(),a.append(d)}this.appendVisual(a)},plotBandPoints:function(t,e){for(var i=[],o=[],r=[t.center.x,t.center.y],n=new A.geometry.Circle(r,t.innerRadius),s=new A.geometry.Circle(r,t.radius),a=0;a<e.length;a++)i.push(n.pointAt(e[a]+180)),o.push(s.pointAt(e[a]+180));return i.reverse(),i.push(i[0]),o.push(o[0]),o.concat(i)},createGridLines:function(t){var e=this.options,i=this.radarMajorGridLinePositions(),o=t.majorAngles(),r=t.box.center(),n=[];if(e.majorGridLines.visible&&(n=this.renderGridLines(r,i,o,e.majorGridLines)),e.minorGridLines.visible){var s=this.radarMinorGridLinePositions();vt(n,this.renderGridLines(r,s,o,e.minorGridLines))}return n},renderGridLines:function(t,e,i,o){var n={stroke:{width:o.width,color:o.color,dashType:o.dashType}},s=o.skip;void 0===s&&(s=0);var a=o.step;void 0===a&&(a=0);for(var p=this.gridLinesVisual(),h=s;h<e.length;h+=a){var c=t.y-e[h];if(c>0){var l=new A.geometry.Circle([t.x,t.y],c);if(o.type===r)p.append(new A.drawing.Circle(l,n));else{for(var u=new A.drawing.Path(n),d=0;d<i.length;d++)u.lineTo(l.pointAt(i[d]+180));u.close(),p.append(u)}}}return p.children},getValue:function(t){var e=this.lineBox(),i=this.plotArea.polarAxis,o=i.majorAngles(),n=i.box.center(),s=t.distanceTo(n),a=s;if(this.options.majorGridLines.type!==r&&o.length>1){var p=t.x-n.x,h=t.y-n.y,c=(_t(Math.atan2(h,p))+540)%360;o.sort((function(t,e){return ki(t,c)-ki(e,c)}));var l=90-ki(o[0],o[1])/2,u=180-ki(c,o[0])-l;a=s*(Math.sin(Mt(u))/Math.sin(Mt(l)))}return this.axisType().prototype.getValue.call(this,new Yt(e.x1,e.y2-a))}},Mi=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.radarMajorGridLinePositions=function(){return this.getTickPositions(this.options.majorUnit)},e.prototype.radarMinorGridLinePositions=function(){var t=this.options,e=0;return t.majorGridLines.visible&&(e=t.majorUnit),this.getTickPositions(t.minorUnit,e)},e.prototype.axisType=function(){return t},e}(fi);j(Mi.prototype,Pi);var Oi=Mi,Ti=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.radarMajorGridLinePositions=function(){var t=[];return this.traverseMajorTicksPositions((function(e){t.push(e)}),this.options.majorGridLines),t},e.prototype.radarMinorGridLinePositions=function(){var t=[];return this.traverseMinorTicksPositions((function(e){t.push(e)}),this.options.minorGridLines),t},e.prototype.axisType=function(){return t},e}(_i);j(Ti.prototype,Pi);var Ri=Ti;function ji(t){return t<=0?-1:1}var Ii=function(t){function e(e){t.call(this),this.closed=e}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.process=function(t){var e=t.slice(0),i=[],o=this.closed,r=e.length;if(r>2&&(this.removeDuplicates(0,e),r=e.length),r<2||2===r&&e[0].equals(e[1]))return i;var n,s,a=e[0],p=e[1],h=e[2];for(i.push(new A.geometry.Segment(a));a.equals(e[r-1]);)o=!0,e.pop(),r--;if(2===r){var c=this.tangent(a,p,m,x);return Ct(i).controlOut(this.firstControlPoint(c,a,p,m,x)),i.push(new A.geometry.Segment(p,this.secondControlPoint(c,a,p,m,x))),i}if(o){a=e[r-1],p=e[0],h=e[1];var l=this.controlPoints(a,p,h);n=l[1],s=l[0]}else{var u=this.tangent(a,p,m,x);n=this.firstControlPoint(u,a,p,m,x)}for(var d=n,f=0;f<=r-3;f++)if(this.removeDuplicates(f,e),f+3<=(r=e.length)){a=e[f],p=e[f+1],h=e[f+2];var g=this.controlPoints(a,p,h);Ct(i).controlOut(d),d=g[1];var y=g[0];i.push(new A.geometry.Segment(p,y))}if(o){a=e[r-2],p=e[r-1],h=e[0];var v=this.controlPoints(a,p,h);Ct(i).controlOut(d),i.push(new A.geometry.Segment(p,v[0])),Ct(i).controlOut(v[1]),i.push(new A.geometry.Segment(h,s))}else{var _=this.tangent(p,h,m,x);Ct(i).controlOut(d),i.push(new A.geometry.Segment(h,this.secondControlPoint(_,p,h,m,x)))}return i},e.prototype.removeDuplicates=function(t,e){for(;e[t+1]&&(e[t].equals(e[t+1])||e[t+1].equals(e[t+2]));)e.splice(t+1,1)},e.prototype.invertAxis=function(t,e,i){var o=!1;if(t.x===e.x)o=!0;else if(e.x===i.x)(e.y<i.y&&t.y<=e.y||i.y<e.y&&e.y<=t.y)&&(o=!0);else{var r=this.lineFunction(t,e),n=this.calculateFunction(r,i.x);t.y<=e.y&&i.y<=n||e.y<=t.y&&i.y>=n||(o=!0)}return o},e.prototype.isLine=function(t,e,i){var o=this.lineFunction(t,e),r=this.calculateFunction(o,i.x);return t.x===e.x&&e.x===i.x||Ot(r,1)===Ot(i.y,1)},e.prototype.lineFunction=function(t,e){var i=(e.y-t.y)/(e.x-t.x);return[t.y-i*t.x,i]},e.prototype.controlPoints=function(t,e,i){var o,r=m,n=x,s=!1,a=!1;if(this.isLine(t,e,i))o=this.tangent(t,e,m,x);else{var p={x:this.isMonotonicByField(t,e,i,m),y:this.isMonotonicByField(t,e,i,x)};if(p.x&&p.y)o=this.tangent(t,i,m,x),s=!0;else if(this.invertAxis(t,e,i)&&(r=x,n=m),p[r])o=0;else o=.01*(i[n]<t[n]&&t[n]<=e[n]||t[n]<i[n]&&e[n]<=t[n]?ji((i[n]-t[n])*(e[r]-t[r])):-ji((i[r]-t[r])*(e[n]-t[n]))),a=!0}var h=this.secondControlPoint(o,t,e,r,n);if(a){var c=r;r=n,n=c}var l=this.firstControlPoint(o,e,i,r,n);return s&&(this.restrictControlPoint(t,e,h,o),this.restrictControlPoint(e,i,l,o)),[h,l]},e.prototype.restrictControlPoint=function(t,e,i,o){t.y<e.y?e.y<i.y?(i.x=t.x+(e.y-t.y)/o,i.y=e.y):i.y<t.y&&(i.x=e.x-(e.y-t.y)/o,i.y=t.y):i.y<e.y?(i.x=t.x-(t.y-e.y)/o,i.y=e.y):t.y<i.y&&(i.x=e.x+(t.y-e.y)/o,i.y=t.y)},e.prototype.tangent=function(t,e,i,o){var r,n=e[i]-t[i],s=e[o]-t[o];return r=0===n?0:s/n,r},e.prototype.isMonotonicByField=function(t,e,i,o){return i[o]>e[o]&&e[o]>t[o]||i[o]<e[o]&&e[o]<t[o]},e.prototype.firstControlPoint=function(t,e,i,o,r){var n=e[o],s=.333*(i[o]-n);return this.point(n+s,e[r]+s*t,o,r)},e.prototype.secondControlPoint=function(t,e,i,o,r){var n=e[o],s=i[o],a=.333*(s-n);return this.point(s-a,i[r]-a*t,o,r)},e.prototype.point=function(t,e,i,o){var r=new A.geometry.Point;return r[i]=t,r[o]=e,r},e.prototype.calculateFunction=function(t,e){for(var i=t.length,o=0,r=0;r<i;r++)o+=Math.pow(e,r)*t[r];return o},e}(A.Class),Bi=function(t){function e(e){t.call(this),this._axis=e,this.options=e.options}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.value=function(t){var e=this._axis,i=e.getCategory?e.getCategory(t):e.getValue(t);return i},e.prototype.slot=function(t,e,i){return void 0===i&&(i=!0),this._axis.slot(t,e,i)},e.prototype.range=function(){return this._axis.range()},e.prototype.valueRange=function(){return this._axis.valueRange()},e}(A.Class);function Li(t,e){for(var i=0;i<e.length;i++)if(e[i].options.name===t)return e[i].prepareUserOptions(),new Bi(e[i])}var zi=function(t){this.visual=t.visual,this.chartsVisual=t.chartContainer.visual,this._pane=t};zi.prototype.findAxisByName=function(t){return Li(t,this._pane.axes)};var Vi=zi,Ei=function(t){function e(e){t.call(this),this._plotArea=e,this.visual=e.visual,this.backgroundVisual=e._bgVisual}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e}(A.Class);function Di(t){for(var e=t.length,i=0,o=0;o<e;o++){P(t[o])&&i++}return i}var Gi={min:function(t){for(var e=t.length,i=u,o=0;o<e;o++){var r=t[o];P(r)&&(i=Math.min(i,r))}return i===u?t[0]:i},max:function(t){for(var e=t.length,i=d,o=0;o<e;o++){var r=t[o];P(r)&&(i=Math.max(i,r))}return i===d?t[0]:i},sum:function(t){for(var e=t.length,i=0,o=0;o<e;o++){var r=t[o];P(r)&&(i+=r)}return i},sumOrNull:function(t){var e=null;return Di(t)&&(e=Gi.sum(t)),e},count:function(t){for(var e=t.length,i=0,o=0;o<e;o++){var r=t[o];null!==r&&xt(r)&&i++}return i},avg:function(t){var e=Di(t),i=t[0];return e>0&&(i=Gi.sum(t)/e),i},first:function(t){for(var e=t.length,i=0;i<e;i++){var o=t[i];if(null!==o&&xt(o))return o}return t[0]}},Ui=Gi;function Fi(t,e){return null===e?e:nt(t)(e)}var Hi=function(t){function e(){t.call(this),this._valueFields={},this._otherFields={},this._nullValue={},this._undefinedValue={}}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.register=function(t,e,i){void 0===e&&(e=[y]),void 0===i&&(i={});for(var o=0;o<t.length;o++){var r=t[o];this._valueFields[r]=e,this._otherFields[r]=i,this._nullValue[r]=this._makeValue(e,null),this._undefinedValue[r]=this._makeValue(e,void 0)}},e.prototype.canonicalFields=function(t){return this.valueFields(t).concat(this.otherFields(t))},e.prototype.valueFields=function(t){return this._valueFields[t.type]||[y]},e.prototype.otherFields=function(t){return this._otherFields[t.type]||[y]},e.prototype.bindPoint=function(t,e,i){var o,r,n=t.data,s=xt(i)?i:n[e],a={valueFields:{value:s}},p=this.valueFields(t),h=this._otherFields[t.type];if(null===s)r=this._nullValue[t.type];else if(xt(s)){if(Array.isArray(s)){var c=s.slice(p.length);r=this._bindFromArray(s,p),o=this._bindFromArray(c,h)}else if("object"==typeof s){var l=this.sourceFields(t,p),u=this.sourceFields(t,h);r=this._bindFromObject(s,p,l),o=this._bindFromObject(s,h,u)}}else r=this._undefinedValue[t.type];return xt(r)&&(1===p.length?a.valueFields.value=r[p[0]]:a.valueFields=r),a.fields=o||{},a},e.prototype._makeValue=function(t,e){for(var i={},o=t.length,r=0;r<o;r++){i[t[r]]=e}return i},e.prototype._bindFromArray=function(t,e){var i={};if(e)for(var o=Math.min(e.length,t.length),r=0;r<o;r++)i[e[r]]=t[r];return i},e.prototype._bindFromObject=function(t,e,i){void 0===i&&(i=e);var o={};if(e)for(var r=e.length,n=0;n<r;n++){var s=e[n],a=i[n];null!==a&&(o[s]=Fi(a,t))}return o},e.prototype.sourceFields=function(t,e){var i=[];if(e)for(var o=e.length,r=0;r<o;r++){var n=e[r],s=n===y?"field":n+"Field";i.push(null!==t[s]?t[s]||n:null)}return i},e}(A.Class);Hi.current=new Hi;var Ni=Hi,Wi=/percent(?:\w*)\((\d+)\)/,qi=new RegExp("^stddev(?:\\((\\d+(?:\\.\\d+)?)\\))?$"),Ki=function(t){function e(e,i,o){t.call(this),this.initGlobalRanges(e,i,o)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.initGlobalRanges=function(t,e,i){var o=e.data,r=qi.exec(t);if(r){this.valueGetter=this.createValueGetter(e,i);var n=this.getAverage(o),s=this.getStandardDeviation(o,n,!1),a=r[1]?parseFloat(r[1]):1,p={low:n.value-s*a,high:n.value+s*a};this.globalRange=function(){return p}}else if(t.indexOf&&t.indexOf("stderr")>=0){this.valueGetter=this.createValueGetter(e,i);var h=this.getStandardError(o,this.getAverage(o));this.globalRange=function(t){return{low:t-h,high:t+h}}}},e.prototype.createValueGetter=function(t,e){var i,o=t.data,r=Ni.current,n=r.valueFields(t),s=xt(o[0])?o[0]:{};if(_(s))i=nt("["+(e?n.indexOf(e):0)+"]");else if(P(s))i=nt();else if("object"==typeof s){i=nt(r.sourceFields(t,n)[n.indexOf(e)])}return i},e.prototype.getErrorRange=function(t,e){var i,o,r;if(!xt(e))return null;if(this.globalRange)return this.globalRange(t);if(_(e))i=t-e[0],o=t+e[1];else if(P(r=parseFloat(e)))i=t-r,o=t+r;else{if(!(r=Wi.exec(e)))throw new Error("Invalid ErrorBar value: "+e);var n=t*(parseFloat(r[1])/100);i=t-Math.abs(n),o=t+Math.abs(n)}return{low:i,high:o}},e.prototype.getStandardError=function(t,e){return this.getStandardDeviation(t,e,!0)/Math.sqrt(e.count)},e.prototype.getStandardDeviation=function(t,e,i){for(var o=t.length,r=i?e.count-1:e.count,n=0,s=0;s<o;s++){var a=this.valueGetter(t[s]);P(a)&&(n+=Math.pow(a-e.value,2))}return Math.sqrt(n/r)},e.prototype.getAverage=function(t){for(var e=t.length,i=0,o=0,r=0;r<e;r++){var n=this.valueGetter(t[r]);P(n)&&(i+=n,o++)}return{value:i/o,count:o}},e}(A.Class),Xi=A.support.browser||{},Yi=Xi.msie?.001:0,Zi="zero",Ji="bar",Qi="column",$i="line",to="pie",eo="verticalLine",io=[Ji,Qi,"ohlc","candlestick","boxPlot","verticalBoxPlot","bullet","rangeColumn","rangeBar","waterfall","horizontalWaterfall"],oo="DOMMouseScroll mousewheel",ro=function(t){function e(e,i,o,r,n,s){t.call(this,s),this.low=e,this.high=i,this.isVertical=o,this.chart=r,this.series=n}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.reflow=function(t){var e,i=this.options.endCaps,o=this.isVertical,r=this.getAxis().getSlot(this.low,this.high),n=t.center(),s=this.getCapsWidth(t,o),a=o?n.x:n.y,p=a-s,h=a+s;o?(e=[new Yt(n.x,r.y1),new Yt(n.x,r.y2)],i&&e.push(new Yt(p,r.y1),new Yt(h,r.y1),new Yt(p,r.y2),new Yt(h,r.y2)),this.box=new Jt(p,r.y1,h,r.y2)):(e=[new Yt(r.x1,n.y),new Yt(r.x2,n.y)],i&&e.push(new Yt(r.x1,p),new Yt(r.x1,h),new Yt(r.x2,p),new Yt(r.x2,h)),this.box=new Jt(r.x1,p,r.x2,h)),this.linePoints=e},e.prototype.getCapsWidth=function(t,e){var i=e?t.width():t.height();return Math.min(Math.floor(i/2),4)||4},e.prototype.createVisual=function(){var t=this,e=this.options,i=e.visual;i?this.visual=i({low:this.low,high:this.high,rect:this.box.toRect(),sender:this.getSender(),options:{endCaps:e.endCaps,color:e.color,line:e.line},createVisual:function(){t.createDefaultVisual();var e=t.visual;return delete t.visual,e}}):this.createDefaultVisual()},e.prototype.createDefaultVisual=function(){var e=this.options,i=this.linePoints,o={stroke:{color:e.color,width:e.line.width,dashType:e.line.dashType}};t.prototype.createVisual.call(this);for(var r=0;r<i.length;r+=2){var n=new A.drawing.Path(o).moveTo(i[r].x,i[r].y).lineTo(i[r+1].x,i[r+1].y);C(n),this.visual.append(n)}},e}(re);Bt(ro,{animation:{type:"fadeIn",delay:600},endCaps:!0,line:{width:2},zIndex:1});var no=ro,so=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.getAxis=function(){return this.chart.seriesValueAxis(this.series)},e}(no);function ao(t,e,i,o){void 0===i&&(i={}),void 0===o&&(o=!1);var r=i.defaults=i.defaults||{},n=i.depth=i.depth||0,s=!1;if(i.excluded=i.excluded||[],n>5)return null;for(var a in t)if(!ct(a,i.excluded)&&t.hasOwnProperty(a)){var p=t[a];T(p)?(s=!0,o||(t[a]=Rt(p(e),r[a]))):I(p)&&(o||(i.defaults=r[a]),i.depth++,s=ao(p,e,i,o)||s,i.depth--)}return s}function po(t){for(var e=t.length,i=0,o=0;o<e;o++)i=Math.max(i,t[o].data.length);return i}var ho=function(t){function e(e,i){t.call(this,i),this.plotArea=e,this.chartService=e.chartService,this.categoryAxis=e.seriesCategoryAxis(i.series[0]),this.valueAxisRanges={},this.points=[],this.categoryPoints=[],this.seriesPoints=[],this.seriesOptions=[],this._evalSeries=[],this.render()}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.render=function(){this.traverseDataPoints(this.addValue.bind(this))},e.prototype.pointOptions=function(t,e){var i=this.seriesOptions[e];if(!i){var o=this.pointType().prototype.defaults;this.seriesOptions[e]=i=j({},o,{vertical:!this.options.invertAxes},t)}return i},e.prototype.plotValue=function(t){if(!t)return 0;if(this.options.isStacked100&&P(t.value)){for(var e=t.categoryIx,i=this.categoryPoints[e],o=[],r=0,n=0;n<i.length;n++){var s=i[n];if(s){var a=t.series.stack,p=s.series.stack;if(a&&p&&a.group!==p.group)continue;P(s.value)&&(r+=Math.abs(s.value),o.push(Math.abs(s.value)))}}if(r>0)return t.value/r}return t.value},e.prototype.plotRange=function(t,e){void 0===e&&(e=0);var i=this.categoryPoints[t.categoryIx];if(this.options.isStacked){for(var o=this.plotValue(t),r=o>=0,n=e,s=!1,a=0;a<i.length;a++){var p=i[a];if(t===p)break;var h=t.series.stack,c=p.series.stack;if(h&&c){if("string"==typeof h&&h!==c)continue;if(h.group&&h.group!==c.group)continue}var l=this.plotValue(p);(l>=0&&r||l<0&&!r)&&(n+=l,o+=l,s=!0,this.options.isStacked100&&(o=Math.min(o,1)))}return s&&(n-=e),[n,o]}var u=t.series,d=this.seriesValueAxis(u),f=this.categoryAxisCrossingValue(d);return[f,O(t.value)?t.value:f]},e.prototype.stackLimits=function(t,e){for(var i=u,o=d,r=0;r<this.categoryPoints.length;r++){var n=this.categoryPoints[r];if(n)for(var s=0;s<n.length;s++){var a=n[s];if(a&&(a.series.stack===e||a.series.axis===t)){var p=this.plotRange(a,0)[1];xt(p)&&isFinite(p)&&(o=Math.max(o,p),i=Math.min(i,p))}}}return{min:i,max:o}},e.prototype.updateStackRange=function(){var t=this.options,e=t.isStacked,i=t.series,o={};if(e)for(var r=0;r<i.length;r++){var n=i[r],s=n.axis,a=s+n.stack,p=o[a];if(!p){p=this.stackLimits(s,n.stack);var h=this.errorTotals;h&&(h.negative.length&&(p.min=Math.min(p.min,Lt(h.negative).min)),h.positive.length&&(p.max=Math.max(p.max,Lt(h.positive).max))),p.min!==u||p.max!==d?o[a]=p:p=null}p&&(this.valueAxisRanges[s]=p)}},e.prototype.addErrorBar=function(t,e,i){var o,r=t.value,n=t.series,s=t.seriesIx,a=t.options.errorBars,p=e.fields.errorLow,h=e.fields.errorHigh;P(p)&&P(h)?o={low:p,high:h}:a&&xt(a.value)&&(this.seriesErrorRanges=this.seriesErrorRanges||[],this.seriesErrorRanges[s]=this.seriesErrorRanges[s]||new Ki(a.value,n,y),o=this.seriesErrorRanges[s].getErrorRange(r,a.value)),o&&(t.low=o.low,t.high=o.high,this.addPointErrorBar(t,i))},e.prototype.addPointErrorBar=function(t,e){var i=!this.options.invertAxes,o=t.options.errorBars,r=t.series,n=t.low,s=t.high;if(this.options.isStacked){var a=this.stackedErrorRange(t,e);n=a.low,s=a.high}else{var p={categoryIx:e,series:r};this.updateRange({value:n},p),this.updateRange({value:s},p)}var h=new so(n,s,i,this,r,o);t.errorBars=[h],t.append(h)},e.prototype.stackedErrorRange=function(t,e){var i=this.plotRange(t,0)[1]-t.value,o=t.low+i,r=t.high+i;return this.errorTotals=this.errorTotals||{positive:[],negative:[]},o<0&&(this.errorTotals.negative[e]=Math.min(this.errorTotals.negative[e]||0,o)),r>0&&(this.errorTotals.positive[e]=Math.max(this.errorTotals.positive[e]||0,r)),{low:o,high:r}},e.prototype.addValue=function(t,e){var i=e.categoryIx,o=e.series,r=e.seriesIx,n=this.categoryPoints[i];n||(this.categoryPoints[i]=n=[]);var s=this.seriesPoints[r];s||(this.seriesPoints[r]=s=[]);var a=this.createPoint(t,e);a&&(Object.assign(a,e),a.owner=this,a.noteText=t.fields.noteText,xt(a.dataItem)||(a.dataItem=o.data[i]),this.addErrorBar(a,t,i)),this.points.push(a),s.push(a),n.push(a),this.updateRange(t.valueFields,e)},e.prototype.evalPointOptions=function(t,e,i,o,r,n){var s={defaults:r._defaults,excluded:["data","aggregate","_events","tooltip","content","template","visual","toggle","_outOfRangeMinPoint","_outOfRangeMaxPoint"]},a=this._evalSeries[n];xt(a)||(this._evalSeries[n]=a=ao(t,{},s,!0));var p=t;return a&&ao(p=j({},p),{value:e,category:i,index:o,series:r,dataItem:r.data[o]},s),p},e.prototype.updateRange=function(t,e){var i=e.series.axis,o=t.value,r=this.valueAxisRanges[i];isFinite(o)&&null!==o&&((r=this.valueAxisRanges[i]=r||{min:u,max:d}).min=Math.min(r.min,o),r.max=Math.max(r.max,o))},e.prototype.seriesValueAxis=function(t){var e=this.plotArea,i=t.axis,o=i?e.namedValueAxes[i]:e.valueAxis;if(!o)throw new Error("Unable to locate value axis with name "+i);return o},e.prototype.reflow=function(t){var e=this,i=this.categorySlots=[],o=this.points,r=this.categoryAxis,n=0;this.traverseDataPoints((function(t,s){var a=s.categoryIx,p=s.series,h=e.seriesValueAxis(p),c=o[n++],l=i[a];if(l||(i[a]=l=e.categorySlot(r,a,h)),c){var u=e.plotRange(c,h.startValue()),d=e.valueSlot(h,u);if(d){var f=e.pointSlot(l,d);c.aboveAxis=e.aboveAxis(c,h),c.stackValue=u[1],e.options.isStacked100&&(c.percentage=e.plotValue(c)),e.reflowPoint(c,f)}else c.visible=!1}})),this.reflowCategories(i),!this.options.clip&&this.options.limitPoints&&this.points.length&&this.limitPoints(),this.box=t},e.prototype.valueSlot=function(t,e){return t.getSlot(e[0],e[1],!this.options.clip)},e.prototype.limitPoints=function(){for(var t=this.categoryPoints,e=t[0].concat(Ct(t)),i=0;i<e.length;i++)e[i]&&this.limitPoint(e[i])},e.prototype.limitPoint=function(t){var e=this.categoryAxis.limitSlot(t.box);e.equals(t.box)||t.reflow(e)},e.prototype.aboveAxis=function(t,e){var i=this.categoryAxisCrossingValue(e),o=t.value;return e.options.reverse?o<i:o>=i},e.prototype.categoryAxisCrossingValue=function(t){var e=this.categoryAxis,i=t.options;return[].concat(i.axisCrossingValues||i.axisCrossingValue)[e.axisIndex||0]||0},e.prototype.reflowPoint=function(t,e){t.reflow(e)},e.prototype.reflowCategories=function(){},e.prototype.pointSlot=function(t,e){var i=this.options.invertAxes,o=i?e:t,r=i?t:e;return new Jt(o.x1,r.y1,o.x2,r.y2)},e.prototype.categorySlot=function(t,e){return t.getSlot(e)},e.prototype.traverseDataPoints=function(t){for(var e=this.options.series,i=po(e),o=e.length,r=0;r<o;r++)this._outOfRangeCallback(e[r],"_outOfRangeMinPoint",r,t);for(var n=0;n<i;n++)for(var s=0;s<o;s++){var a=e[s],p=this.categoryAxis.categoryAt(n);t(this._bindPoint(a,s,n),{category:p,categoryIx:n,categoriesCount:i,series:a,seriesIx:s})}for(var h=0;h<o;h++)this._outOfRangeCallback(e[h],"_outOfRangeMaxPoint",h,t)},e.prototype._outOfRangeCallback=function(t,e,i,o){var r=t[e];if(r){var n=r.categoryIx;o(this._bindPoint(t,i,n,r.item),{category:r.category,categoryIx:n,series:t,seriesIx:i,dataItem:r.item})}},e.prototype._bindPoint=function(t,e,i,o){this._bindCache||(this._bindCache=[]);var r=this._bindCache[e];r||(r=this._bindCache[e]=[]);var n=r[i];return n||(n=r[i]=Ni.current.bindPoint(t,i,o)),n},e.prototype.formatPointValue=function(t,e){return null===t.value?"":this.chartService.format.auto(e,t.value)},e.prototype.pointValue=function(t){return t.valueFields.value},e}(re);Bt(ho,{series:[],invertAxes:!1,isStacked:!1,clip:!0,limitPoints:!0});var co=ho,lo={click:function(t,e){return t.trigger("seriesClick",this.eventArgs(e))},hover:function(t,e){return t.trigger("seriesHover",this.eventArgs(e))},over:function(t,e){return t.trigger("seriesOver",this.eventArgs(e))},out:function(t,e){return t.trigger("seriesLeave",this.eventArgs(e))},eventArgs:function(t){return{value:this.value,percentage:this.percentage,stackValue:this.stackValue,category:this.category,series:this.series,dataItem:this.dataItem,runningTotal:this.runningTotal,total:this.total,element:St(t),originalEvent:t,point:this}}},uo={createNote:function(){var t=this.options.notes,e=this.noteText||t.label.text;!1!==t.visible&&xt(e)&&null!==e&&(this.note=new ke({value:this.value,text:e,dataItem:this.dataItem,category:this.category,series:this.series},this.options.notes,this.owner.chartService),this.append(this.note))}},fo=function(t){function e(e,i){t.call(this),this.value=e,this.options=i,this.aboveAxis=Rt(this.options.aboveAxis,!0),this.tooltipTracking=!0}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.render=function(){var t=this.options,e=t.markers,i=t.labels;if(!this._rendered){if(this._rendered=!0,e.visible&&e.size&&(this.marker=this.createMarker(),this.append(this.marker)),i.visible){var o=it(i),r=this.pointData(),n=this.value;o?n=o(r):i.format&&(n=this.formatValue(i.format)),this.label=new _e(n,j({align:a,vAlign:a,margin:{left:5,right:5},zIndex:Rt(i.zIndex,this.series.zIndex)},i),r),this.append(this.label)}this.createNote(),this.errorBar&&this.append(this.errorBar)}},e.prototype.markerBorder=function(){var t=this.options.markers,e=t.background,i=j({color:this.color},t.border);return xt(i.color)||(i.color=new A.Color(e).brightness(.8).toHex()),i},e.prototype.createVisual=function(){},e.prototype.createMarker=function(){var t=this.options.markers;return new pe({type:t.type,width:t.size,height:t.size,rotation:t.rotation,background:t.background,border:this.markerBorder(),opacity:this.series.opacity||t.opacity,zIndex:Rt(t.zIndex,this.series.zIndex),animation:t.animation,visual:t.visual},{dataItem:this.dataItem,value:this.value,series:this.series,category:this.category})},e.prototype.markerBox=function(){return this.marker||(this.marker=this.createMarker(),this.marker.reflow(this._childBox)),this.marker.box},e.prototype.reflow=function(t){var e=this.options,i=this.aboveAxis,o=e.vertical;this.render(),this.box=t;var r=t.clone();if(o?i?r.y1-=r.height():r.y2+=r.height():i?r.x1+=r.width():r.x2-=r.width(),this._childBox=r,this.marker&&this.marker.reflow(r),this.reflowLabel(r),this.errorBars)for(var n=0;n<this.errorBars.length;n++)this.errorBars[n].reflow(r);if(this.note){var s=this.markerBox();if(!e.markers.visible||!e.markers.size){var a=s.center();s=new Jt(a.x,a.y,a.x,a.y)}this.note.reflow(s)}},e.prototype.reflowLabel=function(t){var e=this.options,i=this.label,o=e.labels.position;i&&(o="below"===(o="above"===o?g:o)?s:o,i.reflow(t),i.box.alignTo(this.markerBox(),o),i.reflow(i.box))},e.prototype.createHighlight=function(){var t=this.options.highlight.markers,e=this.markerBorder().color,i=this.options.markers,o=i.size+(i.border.width||0)+(t.border.width||0),r=new pe({type:i.type,width:o,height:o,rotation:i.rotation,background:t.color||e,border:{color:t.border.color,width:t.border.width,opacity:Rt(t.border.opacity,1)},opacity:Rt(t.opacity,1)});return r.reflow(this._childBox),r.getElement()},e.prototype.highlightVisual=function(){return(this.marker||{}).visual},e.prototype.highlightVisualArgs=function(){var t,e,i=this.marker;if(i)e=i.paddingBox.toRect(),t=i.visual;else{var o=this.options.markers.size,r=o/2,n=this.box.center();e=new A.geometry.Rect([n.x-r,n.y-r],[o,o])}return{options:this.options,rect:e,visual:t}},e.prototype.tooltipAnchor=function(){var t=this.markerBox(),e=this.owner.pane.clipBox();if(!e||e.overlaps(t)){var i,o,r=t.x2+5;return this.aboveAxis?(i=t.y1,o=s):(i=t.y2,o=g),{point:new Yt(r,i),align:{horizontal:"left",vertical:o}}}},e.prototype.formatValue=function(t){return this.owner.formatPointValue(this,t)},e.prototype.overlapsBox=function(t){return this.markerBox().overlaps(t)},e.prototype.unclipElements=function(){this.label&&(this.label.options.noclip=!0),this.note&&(this.note.options.noclip=!0)},e.prototype.pointData=function(){return{dataItem:this.dataItem,category:this.category,value:this.value,percentage:this.percentage,stackValue:this.stackValue,series:this.series}},e}(re);fo.prototype.defaults={vertical:!0,markers:{visible:!0,background:v,size:8,type:p,border:{width:2},opacity:1},labels:{visible:!1,position:"above",margin:E(3),padding:E(4),animation:{type:"fadeIn",delay:600}},notes:{label:{}},highlight:{markers:{border:{color:"#fff",width:2}},zIndex:100},errorBars:{line:{width:1}}},j(fo.prototype,lo),j(fo.prototype,uo);var go=fo,yo=function(t){function e(e,i,o){t.call(this),this.linePoints=e,this.series=i,this.seriesIx=o}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.points=function(){return this.toGeometryPoints(this.linePoints)},e.prototype.toGeometryPoints=function(t){for(var e=[],i=0,o=t.length;i<o;i++)t[i]&&!1!==t[i].visible&&e.push(t[i]._childBox.toRect().center());return e},e.prototype.createVisual=function(){var t=this,e=this.series.visual;e?(this.visual=e({points:this.toGeometryPoints(this.linePoints),series:this.series,sender:this.getSender(),createVisual:function(){return t.segmentVisual(),t.visual}}),this.visual&&!xt(this.visual.options.zIndex)&&(this.visual.options.zIndex=this.series.zIndex)):this.segmentVisual()},e.prototype.segmentVisual=function(){var t=this.options,e=this.series,i=e.color,o=e._defaults;T(i)&&o&&(i=o.color);var r=A.drawing.Path.fromPoints(this.points(),{stroke:{color:i,width:e.width,opacity:e.opacity,dashType:e.dashType},zIndex:e.zIndex});t.closed&&r.close(),this.visual=r},e.prototype.aliasFor=function(t,e){return this.parent.getNearestPoint(e.x,e.y,this.seriesIx)},e}(re);Bt(yo,{closed:!1});var vo=yo;function mo(t,e,i,o,r){var n=t.box,s=new A.geometry.Point;return s[e]=n[e+i],s[o]=n[o+r],s}var xo={calculateStepPoints:function(t){for(var e=this.parent.plotArea.seriesCategoryAxis(this.series).options,i=e.justified,o=e.vertical,r=e.reverse,n=o?m:x,s=o?x:m,a=r?2:1,p=a,h=mo(t[0],n,a,s,p),c=[h],l=1;l<t.length;l++){var u=mo(t[l],n,a,s,p);if(h[n]!==u[n]){var d=new A.geometry.Point;d[n]=h[n],d[s]=u[s],c.push(d,u)}h=u}return i?h!==Ct(c)&&c.push(h):c.push(mo(Ct(t),n,a,s,r?1:2)),c}},_o=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.points=function(){return this.calculateStepPoints(this.linePoints)},e}(vo);j(_o.prototype,xo);var bo=_o,wo=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.segmentVisual=function(){var t=this.series,e=t._defaults,i=t.color;T(i)&&e&&(i=e.color);var o=new Ii(this.options.closed).process(this.points()),r=new A.drawing.Path({stroke:{color:i,width:t.width,opacity:t.opacity,dashType:t.dashType},zIndex:t.zIndex});r.segments.push.apply(r.segments,o),this.visual=r},e}(vo),So={renderSegments:function(){var t,e=this.options,i=this.seriesPoints,o=e.series,r=i.length;this._segments=[];for(var n=0;n<r;n++){for(var s=o[n],a=this.sortPoints(i[n]),p=a.length,h=[],c=0;c<p;c++){var l=a[c];l?h.push(l):"interpolate"!==this.seriesMissingValues(s)&&(h.length>1&&(t=this.createSegment(h,s,n,t),this._addSegment(t)),h=[])}h.length>1&&(t=this.createSegment(h,s,n,t),this._addSegment(t))}this.children.unshift.apply(this.children,this._segments)},_addSegment:function(t){this._segments.push(t),t.parent=this},sortPoints:function(t){return t},seriesMissingValues:function(t){var e=t.missingValues;return!e&&this.options.isStacked?Zi:e||"interpolate"},getNearestPoint:function(t,e,i){for(var o,r=new Yt(t,e),n=this.seriesPoints[i],s=u,a=0;a<n.length;a++){var p=n[a];if(p&&xt(p.value)&&null!==p.value&&!1!==p.visible){var h=p.box.center().distanceTo(r);h<s&&(o=p,s=h)}}return o}},Ao=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.setup=function(){this._setEnd(this.options.box.x1)},e.prototype.step=function(t){var e=this.options.box;this._setEnd(lt(e.x1,e.x2,t))},e.prototype._setEnd=function(t){var e=this.element,i=e.segments,o=i[1].anchor(),r=i[2].anchor();e.suspend(),o.setX(t),e.resume(),r.setX(t)},e}(A.drawing.Animation);Bt(Ao,{duration:600}),A.drawing.AnimationFactory.current.register("clip",Ao);var Co=Ao;function ko(t){for(var e=0;e<t.length;e++)if(xt(t[e].zIndex))return!0}var Po={createAnimation:function(){var t=this.getRoot();if(t&&!1!==(t.options||{}).transitions){var e=t.size(),i=A.drawing.Path.fromRect(e.toRect());this.visual.clip(i),this.animation=new Co(i,{box:e}),ko(this.options.series)&&this._setChildrenAnimation(i)}},_setChildrenAnimation:function(t){for(var e=this.animationPoints(),i=0;i<e.length;i++){var o=e[i];o&&o.visual&&xt(o.visual.options.zIndex)&&o.visual.clip(t)}}},Mo=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.render=function(){t.prototype.render.call(this),this.updateStackRange(),this.renderSegments()},e.prototype.pointType=function(){return go},e.prototype.createPoint=function(t,e){var i=e.categoryIx,o=e.category,r=e.series,n=e.seriesIx,s=this.seriesMissingValues(r),a=t.valueFields.value;if(!xt(a)||null===a){if(s!==Zi)return null;a=0}var p=this.pointOptions(r,n);p=this.evalPointOptions(p,a,o,i,r,n);var h=t.fields.color||r.color;T(r.color)&&(h=p.color);var c=new go(a,p);return c.color=h,this.append(c),c},e.prototype.plotRange=function(t){var e=this.plotValue(t);if(this.options.isStacked)for(var i=t.categoryIx,o=this.categoryPoints[i],r=0;r<o.length;r++){var n=o[r];if(t===n)break;e+=this.plotValue(n),this.options.isStacked100&&(e=Math.min(e,1))}return[e,e]},e.prototype.createSegment=function(t,e,i){var o=e.style;return new("step"===o?bo:"smooth"===o?wo:vo)(t,e,i)},e.prototype.animationPoints=function(){for(var t=this.points,e=[],i=0;i<t.length;i++)e.push((t[i]||{}).marker);return e.concat(this._segments)},e.prototype.supportsPointInactiveOpacity=function(){return!1},e}(co);j(Mo.prototype,So,Po);var Oo=Mo,To=function(t){function e(e,i,o,r,n){t.call(this,e,i,o),this.prevSegment=r,this.stackPoints=n}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.createVisual=function(){var t=this.series,e=t._defaults,i=t.line||{},o=t.color;T(o)&&e&&(o=e.color),this.visual=new A.drawing.Group({zIndex:t.zIndex}),this.createFill({fill:{color:o,opacity:t.opacity},stroke:null}),i.width>0&&!1!==i.visible&&this.createStroke({stroke:j({color:o,opacity:t.opacity,lineCap:"butt"},i)})},e.prototype.strokeSegments=function(){var t=this._strokeSegments;return t||(t=this._strokeSegments=this.createStrokeSegments()),t},e.prototype.createStrokeSegments=function(){return this.segmentsFromPoints(this.points())},e.prototype.stackSegments=function(){return this.prevSegment?this.prevSegment.createStackSegments(this.stackPoints):this.createStackSegments(this.stackPoints)},e.prototype.createStackSegments=function(t){return this.segmentsFromPoints(this.toGeometryPoints(t)).reverse()},e.prototype.segmentsFromPoints=function(t){return t.map((function(t){return new A.geometry.Segment(t)}))},e.prototype.createStroke=function(t){var e=new A.drawing.Path(t);e.segments.push.apply(e.segments,this.strokeSegments()),this.visual.append(e)},e.prototype.hasStackSegment=function(){return this.prevSegment||this.stackPoints&&this.stackPoints.length},e.prototype.createFill=function(t){var e=this.strokeSegments(),i=e.slice(0),o=this.hasStackSegment();if(o){var r=this.stackSegments();vt(i,r)}var n=new A.drawing.Path(t);n.segments.push.apply(n.segments,i),!o&&e.length>1&&this.fillToAxes(n),this.visual.append(n)},e.prototype.fillToAxes=function(t){var e=this.parent,i=e.options.invertAxes,o=e.seriesValueAxis(this.series),r=e.categoryAxisCrossingValue(o),n=o.getSlot(r,r,!0),s=this.strokeSegments(),a=s[0].anchor(),p=Ct(s).anchor(),h=i?n.x1:n.y1;i?t.lineTo(h,p.y).lineTo(h,a.y):t.lineTo(p.x,h).lineTo(a.x,h)},e}(vo),Ro=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.createStrokeSegments=function(){return this.segmentsFromPoints(this.calculateStepPoints(this.linePoints))},e.prototype.createStackSegments=function(t){return this.segmentsFromPoints(this.calculateStepPoints(t)).reverse()},e}(To);j(Ro.prototype,xo);var jo=Ro,Io=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.createStrokeSegments=function(){var t=new Ii(this.options.closed),e=this.points();return t.process(e)},e.prototype.createStackSegments=function(){for(var t=this.strokeSegments(),e=[],i=t.length-1;i>=0;i--){var o=t[i];e.push(new A.geometry.Segment(o.anchor(),o.controlOut(),o.controlIn()))}return e},e}(To),Bo=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.createSegment=function(t,e,i,o){var r,n,s=this.options.isStacked,a=(e.line||{}).style;s&&i>0&&o&&("gap"!==this.seriesMissingValues(e)?(n=o.linePoints,r=o):n=this._gapStackPoints(t,i,a));return new("step"===a?jo:"smooth"===a?Io:To)(t,e,i,r,n)},e.prototype.reflow=function(e){t.prototype.reflow.call(this,e);var i=this._stackPoints;if(i)for(var o=0;o<i.length;o++){var r=i[o],n=this.categoryAxis.getSlot(r.categoryIx);r.reflow(n)}},e.prototype._gapStackPoints=function(t,e,i){var o=this.seriesPoints,r=t[0].categoryIx,n=t.length;r<0&&(r=0,n--);var s=r+n,a=this.seriesOptions[0]._outOfRangeMinPoint?1:0,p=[];this._stackPoints=this._stackPoints||[];for(var h=r;h<s;h++){var c=h+a,l=e,u=void 0;do{u=o[--l][c]}while(l>0&&!u);if(u)"step"!==i&&h>r&&!o[l][c-1]&&p.push(this._previousSegmentPoint(h,c,c-1,l)),p.push(u),"step"!==i&&h+1<s&&!o[l][c+1]&&p.push(this._previousSegmentPoint(h,c,c+1,l));else{var d=this._createGapStackPoint(h);this._stackPoints.push(d),p.push(d)}}return p},e.prototype._previousSegmentPoint=function(t,e,i,o){for(var r,n=this.seriesPoints,s=o;s>0&&!r;)r=n[--s][i];return r?r=n[s][e]:(r=this._createGapStackPoint(t),this._stackPoints.push(r)),r},e.prototype._createGapStackPoint=function(t){var e=this.pointOptions({},0),i=new go(0,e);return i.categoryIx=t,i.series={},i},e.prototype.seriesMissingValues=function(t){return t.missingValues||Zi},e.prototype.supportsPointInactiveOpacity=function(){return!1},e}(Oo),Lo=function(t){function e(){t.call(this),this.axisRanges={}}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.update=function(t){var e=this.axisRanges;for(var i in t){var o=t[i],r=e[i];e[i]=r=r||{min:u,max:d},r.min=Math.min(r.min,o.min),r.max=Math.max(r.max,o.max)}},e.prototype.reset=function(t){this.axisRanges[t]=void 0},e.prototype.query=function(t){return this.axisRanges[t]},e}(A.Class),zo=function(t){function e(e,i,o){t.call(this,i),this.textBox=new _e(e,this.options,o),this.append(this.textBox)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.createVisual=function(){this.textBox.options.noclip=this.options.noclip},e.prototype.reflow=function(t){var e=this.options,i=e.vertical,o=e.aboveAxis,r=this.children[0],n=r.options,p=r.box,h=r.options.padding,c=t;n.align=i?a:l,n.vAlign=i?g:a,"insideEnd"===e.position?i?(n.vAlign=g,!o&&p.height()<t.height()&&(n.vAlign=s)):n.align=o?f:l:e.position===a?(n.vAlign=a,n.align=a):"insideBase"===e.position?i?n.vAlign=o?s:g:n.align=o?l:f:"outsideEnd"===e.position&&(i?c=o?new Jt(t.x1,t.y1-p.height(),t.x2,t.y1):new Jt(t.x1,t.y2,t.x2,t.y2+p.height()):(n.align=a,c=o?new Jt(t.x2,t.y1,t.x2+p.width(),t.y2):new Jt(t.x1-p.width(),t.y1,t.x1,t.y2))),e.rotation||(i?h.left=h.right=(c.width()-r.contentBox.width())/2:h.top=h.bottom=(c.height()-r.contentBox.height())/2),r.reflow(c)},e.prototype.alignToClipBox=function(t){var e=this.options.vertical?x:m,i=e+"1",o=e+"2",r=this.children[0],n=this.parent.box;if(n[i]<t[i]||t[o]<n[o]){var s=r.paddingBox.clone();s[i]=Math.max(n[i],t[i]),s[o]=Math.min(n[o],t[o]),this.reflow(s)}},e}(re);Bt(zo,{position:"outsideEnd",margin:E(3),padding:E(4),color:n,background:"",border:{width:1,color:""},aboveAxis:!0,vertical:!1,animation:{type:"fadeIn",delay:600},zIndex:2});var Vo=zo;function Eo(t){var e=t.overlay;return e&&e.gradient&&"none"!==e.gradient}var Do=function(t){function e(e,i){t.call(this),this.options=i,this.color=i.color||v,this.aboveAxis=Rt(this.options.aboveAxis,!0),this.value=e}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.render=function(){this._rendered||(this._rendered=!0,this.createLabel(),this.createNote(),this.errorBar&&this.append(this.errorBar))},e.prototype.createLabel=function(){var t=this.options,e=t.labels;if(e.visible){var i,o=this.pointData(),r=it(e);i=r?r(o):this.formatValue(e.format),this.label=new Vo(i,j({vertical:t.vertical},e),o),this.append(this.label)}},e.prototype.formatValue=function(t){return this.owner.formatPointValue(this,t)},e.prototype.reflow=function(t){this.render();var e=this.label;if(this.box=t,e&&(e.options.aboveAxis=this.aboveAxis,e.reflow(t)),this.note&&this.note.reflow(t),this.errorBars)for(var i=0;i<this.errorBars.length;i++)this.errorBars[i].reflow(t)},e.prototype.createVisual=function(){var e=this,i=this.box,o=this.options,r=o.visual;if(!1!==this.visible)if(t.prototype.createVisual.call(this),r){var n=this.rectVisual=r({category:this.category,dataItem:this.dataItem,value:this.value,sender:this.getSender(),series:this.series,percentage:this.percentage,stackValue:this.stackValue,runningTotal:this.runningTotal,total:this.total,rect:i.toRect(),createVisual:function(){var t=new A.drawing.Group;return e.createRect(t),t},options:o});n&&this.visual.append(n)}else i.width()>0&&i.height()>0&&this.createRect(this.visual)},e.prototype.createRect=function(t){var e=this.options,i=e.border,o=xt(i.opacity)?i.opacity:e.opacity,r=this.box.toRect();r.size.width=Math.round(r.size.width);var n=this.rectVisual=A.drawing.Path.fromRect(r,{fill:{color:this.color,opacity:e.opacity},stroke:{color:this.getBorderColor(),width:i.width,opacity:o,dashType:i.dashType}}),s=this.box.width(),a=this.box.height();if((e.vertical?s:a)>6&&(C(n),(s<1||a<1)&&(n.options.stroke.lineJoin="round")),t.append(n),Eo(e)){var p=this.createGradientOverlay(n,{baseColor:this.color},j({end:e.vertical?void 0:[0,1]},e.overlay));t.append(p)}},e.prototype.createHighlight=function(t){return C(A.drawing.Path.fromRect(this.box.toRect(),t))},e.prototype.highlightVisual=function(){return this.rectVisual},e.prototype.highlightVisualArgs=function(){return{options:this.options,rect:this.box.toRect(),visual:this.rectVisual}},e.prototype.getBorderColor=function(){var t=this.color,e=this.options.border,i=e._brightness||.8,o=e.color;return xt(o)||(o=new A.Color(t).brightness(i).toHex()),o},e.prototype.tooltipAnchor=function(){var t,e,i=this.options,o=this.box,r=this.aboveAxis,n=this.owner.pane.clipBox()||o,a=l,p=g;if(i.vertical)t=Math.min(o.x2,n.x2)+5,r?e=Math.max(o.y1,n.y1):(e=Math.min(o.y2,n.y2),p=s);else{var h=Math.max(o.x1,n.x1),c=Math.min(o.x2,n.x2);i.isStacked?(p=s,r?(a=f,t=c):t=h,e=Math.max(o.y1,n.y1)-5):(r?t=c+5:(t=h-5,a=f),e=Math.max(o.y1,n.y1))}return{point:new Yt(t,e),align:{horizontal:a,vertical:p}}},e.prototype.overlapsBox=function(t){return this.box.overlaps(t)},e.prototype.pointData=function(){return{dataItem:this.dataItem,category:this.category,value:this.value,percentage:this.percentage,stackValue:this.stackValue,runningTotal:this.runningTotal,total:this.total,series:this.series}},e}(re);j(Do.prototype,lo),j(Do.prototype,uo),Do.prototype.defaults={border:{width:1},vertical:!0,overlay:{gradient:"glass"},labels:{visible:!1,format:"{0}"},opacity:1,notes:{label:{}}};var Go=Do;function Uo(t,e){t.forEach(e)}function Fo(t,e){for(var i=t.length,o=i-1;o>=0;o--)e(t[o],o-i-1)}var Ho=function(t){function e(e){t.call(this,e),this.forEach=e.rtl?Fo:Uo}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.reflow=function(t){var e=this.options,i=e.vertical,o=e.gap,r=e.spacing,n=this.children,s=n.length,a=i?x:m,p=s+o+r*(s-1),h=(i?t.height():t.width())/p,c=t[a+1]+h*(o/2);this.forEach(n,(function(e,i){var o=(e.box||t).clone();o[a+1]=c,o[a+2]=c+h,e.reflow(o),i<s-1&&(c+=h*r),c+=h}))},e}(re);Bt(Ho,{vertical:!1,gap:0,spacing:0});var No=Ho,Wo=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.reflow=function(t){for(var e=this.options.vertical?m:x,i=this.children,o=i.length,r=this.box=new Jt,n=0;n<o;n++){var s=i[n];if(!1!==s.visible){var a=s.box.clone();a.snapTo(t,e),0===n&&(r=this.box=a.clone()),s.reflow(a),r.wrap(a)}}},e}(re);Bt(Wo,{vertical:!0});var qo=Wo,Ko=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.render=function(){t.prototype.render.call(this),this.updateStackRange()},e.prototype.pointType=function(){return Go},e.prototype.clusterType=function(){return No},e.prototype.stackType=function(){return qo},e.prototype.stackLimits=function(e,i){return t.prototype.stackLimits.call(this,e,i)},e.prototype.createPoint=function(t,e){var i=e.categoryIx,o=e.category,r=e.series,n=e.seriesIx,s=this.options,a=this.children,p=s.isStacked,h=this.pointValue(t),c=this.pointOptions(r,n),l=c.labels;p&&"outsideEnd"===l.position&&(l.position="insideEnd"),c.isStacked=p;var u=t.fields.color||r.color;h<0&&c.negativeColor&&(u=c.negativeColor),c=this.evalPointOptions(c,h,o,i,r,n),T(r.color)&&(u=c.color);var d=new(this.pointType())(h,c);d.color=u;var f=a[i];f||(f=new(this.clusterType())({vertical:s.invertAxes,gap:s.gap,spacing:s.spacing,rtl:!s.invertAxes&&(this.chartService||{}).rtl}),this.append(f));p?this.getStackWrap(r,f).append(d):f.append(d);return d},e.prototype.getStackWrap=function(t,e){var i,o=t.stack,r=o&&o.group||o,n=e.children;if("string"==typeof r){for(var s=0;s<n.length;s++)if(n[s]._stackGroup===r){i=n[s];break}}else i=n[0];i||((i=new(this.stackType())({vertical:!this.options.invertAxes}))._stackGroup=r,e.append(i));return i},e.prototype.categorySlot=function(t,e,i){var o=this.options,r=t.getSlot(e),n=i.startValue();if(o.isStacked){var s=i.getSlot(n,n,!0),a=o.invertAxes?m:x;r[a+1]=r[a+2]=s[a+1]}return r},e.prototype.reflowCategories=function(t){for(var e=this.children,i=e.length,o=0;o<i;o++)e[o].reflow(t[o])},e.prototype.createAnimation=function(){this._setAnimationOptions(),t.prototype.createAnimation.call(this),ko(this.options.series)&&this._setChildrenAnimation()},e.prototype._setChildrenAnimation=function(){for(var t=this.points,e=0;e<t.length;e++){var i=t[e],o=i.visual;o&&xt(o.options.zIndex)&&(i.options.animation=this.options.animation,i.createAnimation())}},e.prototype._setAnimationOptions=function(){var t,e=this.options,i=e.animation||{};if(e.isStacked){var o=this.seriesValueAxis(e.series[0]);t=o.getSlot(o.startValue())}else t=this.categoryAxis.getSlot(0);i.origin=new A.geometry.Point(t.x1,t.y1),i.vertical=!e.invertAxes},e}(co);Bt(Ko,{animation:{type:Ji}});var Xo=Ko,Yo=function(t){function e(e,i){t.call(this,i),this.value=e}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.reflow=function(t){var e=this.options,i=this.value,o=this.owner.seriesValueAxis(e),r=o.getSlot(i.open,i.close),n=o.getSlot(i.low,i.high);r.x1=n.x1=t.x1,r.x2=n.x2=t.x2,this.realBody=r;var s=n.center().x,a=[];a.push([[s,n.y1],[s,r.y1]]),a.push([[s,r.y2],[s,n.y2]]),this.lines=a,this.box=n.clone().wrap(r),this._rendered||(this._rendered=!0,this.createNote()),this.reflowNote()},e.prototype.reflowNote=function(){this.note&&this.note.reflow(this.box)},e.prototype.createVisual=function(){t.prototype.createVisual.call(this),this._mainVisual=this.mainVisual(this.options),this.visual.append(this._mainVisual),this.createOverlay()},e.prototype.mainVisual=function(t){var e=new A.drawing.Group;return this.createBody(e,t),this.createLines(e,t),e},e.prototype.createBody=function(t,e){var i=A.drawing.Path.fromRect(this.realBody.toRect(),{fill:{color:this.color,opacity:e.opacity},stroke:null});e.border.width>0&&i.options.set("stroke",{color:this.getBorderColor(),width:e.border.width,dashType:e.border.dashType,opacity:Rt(e.border.opacity,e.opacity)}),C(i),t.append(i),Eo(e)&&t.append(this.createGradientOverlay(i,{baseColor:this.color},j({end:e.vertical?void 0:[0,1]},e.overlay)))},e.prototype.createLines=function(t,e){this.drawLines(t,e,this.lines,e.line)},e.prototype.drawLines=function(t,e,i,o){if(i)for(var r={stroke:{color:o.color||this.color,opacity:Rt(o.opacity,e.opacity),width:o.width,dashType:o.dashType,lineCap:"butt"}},n=0;n<i.length;n++){var s=A.drawing.Path.fromPoints(i[n],r);C(s),t.append(s)}},e.prototype.getBorderColor=function(){var t=this.options.border,e=t.color;return xt(e)||(e=new A.Color(this.color).brightness(t._brightness).toHex()),e},e.prototype.createOverlay=function(){var t=A.drawing.Path.fromRect(this.box.toRect(),{fill:{color:v,opacity:0},stroke:null});this.visual.append(t)},e.prototype.createHighlight=function(){var t=this.options.highlight,e=this.color;this.color=t.color||this.color;var i=this.mainVisual(j({},this.options,{line:{color:this.getBorderColor()}},t));return this.color=e,i},e.prototype.highlightVisual=function(){return this._mainVisual},e.prototype.highlightVisualArgs=function(){return{options:this.options,rect:this.box.toRect(),visual:this._mainVisual}},e.prototype.tooltipAnchor=function(){var t=this.box,e=this.owner.pane.clipBox()||t;return{point:new Yt(t.x2+5,Math.max(t.y1,e.y1)+5),align:{horizontal:l,vertical:g}}},e.prototype.formatValue=function(t){return this.owner.formatPointValue(this,t)},e.prototype.overlapsBox=function(t){return this.box.overlaps(t)},e}(re);Bt(Yo,{vertical:!0,border:{_brightness:.8},line:{width:2},overlay:{gradient:"glass"},tooltip:{format:"<table><tr><th colspan='2'>{4:d}</th></tr><tr><td>Open:</td><td>{0:C}</td></tr><tr><td>High:</td><td>{1:C}</td></tr><tr><td>Low:</td><td>{2:C}</td></tr><tr><td>Close:</td><td>{3:C}</td></tr></table>"},highlight:{opacity:1,border:{width:1,opacity:1},line:{width:1,opacity:1}},notes:{visible:!0,label:{}}}),j(Yo.prototype,lo),j(Yo.prototype,uo);var Zo=Yo;function Jo(t){return Di(t)===t.length}var Qo=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.reflowCategories=function(t){for(var e=this.children,i=e.length,o=0;o<i;o++)e[o].reflow(t[o])},e.prototype.addValue=function(t,e){var i,o=e.categoryIx,r=e.category,n=e.series,s=e.seriesIx,a=this.children,p=this.options,h=t.valueFields,c=Jo(this.splitValue(h)),l=n.data[o],u=this.categoryPoints[o];u||(this.categoryPoints[o]=u=[]),c&&(i=this.createPoint(t,e));var d=a[o];d||(d=new No({vertical:p.invertAxes,gap:p.gap,spacing:p.spacing,rtl:!p.invertAxes&&(this.chartService||{}).rtl}),this.append(d)),i&&(this.updateRange(h,e),d.append(i),i.categoryIx=o,i.category=r,i.series=n,i.seriesIx=s,i.owner=this,i.dataItem=l,i.noteText=t.fields.noteText),this.points.push(i),u.push(i)},e.prototype.pointType=function(){return Zo},e.prototype.createPoint=function(t,e){var i=e.categoryIx,o=e.category,r=e.series,n=e.seriesIx,s=this.pointType(),a=t.valueFields,p=j({},r),h=t.fields.color||r.color;p=this.evalPointOptions(p,a,o,i,r,n),"candlestick"===r.type&&a.open>a.close&&(h=t.fields.downColor||r.downColor||r.color),T(r.color)&&(h=p.color),p.vertical=!this.options.invertAxes;var c=new s(a,p);return c.color=h,c},e.prototype.splitValue=function(t){return[t.low,t.open,t.close,t.high]},e.prototype.updateRange=function(t,e){var i=e.series.axis,o=this.splitValue(t),r=this.valueAxisRanges[i];r=this.valueAxisRanges[i]=r||{min:u,max:d},r=this.valueAxisRanges[i]={min:Math.min.apply(Math,o.concat([r.min])),max:Math.max.apply(Math,o.concat([r.max]))}},e.prototype.formatPointValue=function(t,e){var i=t.value;return this.chartService.format.auto(e,i.open,i.high,i.low,i.close,t.category)},e.prototype.animationPoints=function(){return this.points},e}(co);j(Qo.prototype,Po);var $o=Qo,tr=function(t){function e(e,i){t.call(this,e,i),this.createNote()}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.reflow=function(t){var e,i,o=this.options,r=this.value,n=this.owner.seriesValueAxis(o);this.boxSlot=i=n.getSlot(r.q1,r.q3),this.realBody=i,this.reflowBoxSlot(t),this.whiskerSlot=e=n.getSlot(r.lower,r.upper),this.reflowWhiskerSlot(t);var s=n.getSlot(r.median);if(r.mean){var a=n.getSlot(r.mean);this.meanPoints=this.calcMeanPoints(t,a)}this.whiskerPoints=this.calcWhiskerPoints(i,e),this.medianPoints=this.calcMedianPoints(t,s),this.box=e.clone().wrap(i),this.reflowNote()},e.prototype.reflowBoxSlot=function(t){this.boxSlot.x1=t.x1,this.boxSlot.x2=t.x2},e.prototype.reflowWhiskerSlot=function(t){this.whiskerSlot.x1=t.x1,this.whiskerSlot.x2=t.x2},e.prototype.calcMeanPoints=function(t,e){return[[[t.x1,e.y1],[t.x2,e.y1]]]},e.prototype.calcWhiskerPoints=function(t,e){var i=e.center().x;return[[[i-5,e.y1],[i+5,e.y1],[i,e.y1],[i,t.y1]],[[i-5,e.y2],[i+5,e.y2],[i,e.y2],[i,t.y2]]]},e.prototype.calcMedianPoints=function(t,e){return[[[t.x1,e.y1],[t.x2,e.y1]]]},e.prototype.renderOutliers=function(t){for(var e=this.value,i=e.outliers||[],o=3*Math.abs(e.q3-e.q1),r=[],n=t.markers||{},s=0;s<i.length;s++){var a=i[s],p=j({},(n=a<e.q3+o&&a>e.q1-o?t.outliers:t.extremes).border);xt(p.color)||(xt(this.color)?p.color=this.color:p.color=new A.Color(n.background).brightness(.8).toHex());var h=new pe({type:n.type,width:n.size,height:n.size,rotation:n.rotation,background:n.background,border:p,opacity:n.opacity});h.value=a,r.push(h)}return this.reflowOutliers(r),r},e.prototype.reflowOutliers=function(t){for(var e=this.owner.seriesValueAxis(this.options),i=this.box.center(),o=0;o<t.length;o++){var r=t[o].value,n=e.getSlot(r);this.options.vertical?n.move(i.x):n.move(void 0,i.y),this.box=this.box.wrap(n),t[o].reflow(n)}},e.prototype.mainVisual=function(e){for(var i=t.prototype.mainVisual.call(this,e),o=this.renderOutliers(e),r=0;r<o.length;r++){var n=o[r].getElement();n&&i.append(n)}return i},e.prototype.createLines=function(t,e){this.drawLines(t,e,this.whiskerPoints,e.whiskers),this.drawLines(t,e,this.medianPoints,e.median),this.drawLines(t,e,this.meanPoints,e.mean)},e.prototype.getBorderColor=function(){return(this.options.border||{}).color?this.options.border.color:this.color?this.color:t.prototype.getBorderColor.call(this)},e}(Zo);Bt(tr,{border:{_brightness:.8},line:{width:2},median:{color:"#f6f6f6"},mean:{width:2,dashType:"dash",color:"#f6f6f6"},overlay:{gradient:"glass"},tooltip:{format:"<table><tr><th colspan='2'>{6:d}</th></tr><tr><td>Lower:</td><td>{0:C}</td></tr><tr><td>Q1:</td><td>{1:C}</td></tr><tr><td>Median:</td><td>{2:C}</td></tr><tr><td>Mean:</td><td>{5:C}</td></tr><tr><td>Q3:</td><td>{3:C}</td></tr><tr><td>Upper:</td><td>{4:C}</td></tr></table>"},highlight:{opacity:1,border:{width:1,opacity:1},line:{width:1,opacity:1}},notes:{visible:!0,label:{}},outliers:{visible:!0,size:8,type:"cross",background:v,border:{width:2,opacity:1},opacity:0},extremes:{visible:!0,size:8,type:p,background:v,border:{width:2,opacity:1},opacity:0}}),j(tr.prototype,lo);var er=tr,ir=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.reflowBoxSlot=function(t){this.boxSlot.y1=t.y1,this.boxSlot.y2=t.y2},e.prototype.reflowWhiskerSlot=function(t){this.whiskerSlot.y1=t.y1,this.whiskerSlot.y2=t.y2},e.prototype.calcMeanPoints=function(t,e){return[[[e.x1,t.y1],[e.x1,t.y2]]]},e.prototype.calcWhiskerPoints=function(t,e){var i=e.center().y;return[[[e.x1,i-5],[e.x1,i+5],[e.x1,i],[t.x1,i]],[[e.x2,i-5],[e.x2,i+5],[e.x2,i],[t.x2,i]]]},e.prototype.calcMedianPoints=function(t,e){return[[[e.x1,t.y1],[e.x1,t.y2]]]},e}(er),or=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.addValue=function(t,e){var i,o=e.categoryIx,r=e.category,n=e.series,s=e.seriesIx,a=this.children,p=this.options,h=t.valueFields,c=Jo(this.splitValue(h)),l=n.data[o],u=this.categoryPoints[o];u||(this.categoryPoints[o]=u=[]),c&&(i=this.createPoint(t,e));var d=a[o];d||(d=new No({vertical:p.invertAxes,gap:p.gap,spacing:p.spacing,rtl:!p.invertAxes&&(this.chartService||{}).rtl}),this.append(d)),i&&(this.updateRange(h,e),d.append(i),i.categoryIx=o,i.category=r,i.series=n,i.seriesIx=s,i.owner=this,i.dataItem=l),this.points.push(i),u.push(i)},e.prototype.pointType=function(){return this.options.invertAxes?ir:er},e.prototype.splitValue=function(t){return[t.lower,t.q1,t.median,t.q3,t.upper]},e.prototype.updateRange=function(t,e){var i=e.series.axis,o=this.valueAxisRanges[i],r=this.splitValue(t).concat(this.filterOutliers(t.outliers));xt(t.mean)&&(r=r.concat(t.mean)),o=this.valueAxisRanges[i]=o||{min:u,max:d},o=this.valueAxisRanges[i]={min:Math.min.apply(Math,r.concat([o.min])),max:Math.max.apply(Math,r.concat([o.max]))}},e.prototype.formatPointValue=function(t,e){var i=t.value;return this.chartService.format.auto(e,i.lower,i.q1,i.median,i.q3,i.upper,i.mean,t.category)},e.prototype.filterOutliers=function(t){for(var e=(t||[]).length,i=[],o=0;o<e;o++){var r=t[o];xt(r)&&null!==r&&i.push(r)}return i},e.prototype.supportsPointInactiveOpacity=function(){return!1},e}($o),rr=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.getAxis=function(){var t=this.chart.seriesAxes(this.series);return this.isVertical?t.y:t.x},e}(no);function nr(t){return xt(t)&&null!==t}var sr=function(t){function e(e,i){t.call(this,i),this.plotArea=e,this.chartService=e.chartService,this._initFields(),this.render()}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype._initFields=function(){this.xAxisRanges={},this.yAxisRanges={},this.points=[],this.seriesPoints=[],this.seriesOptions=[],this._evalSeries=[]},e.prototype.render=function(){this.traverseDataPoints(this.addValue.bind(this))},e.prototype.addErrorBar=function(t,e,i){var o,r=t.value[e],n=e+"Value",s=e+"ErrorLow",a=e+"ErrorHigh",p=i.seriesIx,h=i.series,c=t.options.errorBars,l=i[s],u=i[a];P(r)&&(P(l)&&P(u)&&(o={low:l,high:u}),c&&xt(c[n])&&(this.seriesErrorRanges=this.seriesErrorRanges||{x:[],y:[]},this.seriesErrorRanges[e][p]=this.seriesErrorRanges[e][p]||new Ki(c[n],h,e),o=this.seriesErrorRanges[e][p].getErrorRange(r,c[n])),o&&this.addPointErrorBar(o,t,e))},e.prototype.addPointErrorBar=function(t,e,i){var o=t.low,r=t.high,n=e.series,s=e.options.errorBars,a=i===x,p={};e[i+"Low"]=o,e[i+"High"]=r,e.errorBars=e.errorBars||[];var h=new rr(o,r,a,this,n,s);e.errorBars.push(h),e.append(h),p[i]=o,this.updateRange(p,n),p[i]=r,this.updateRange(p,n)},e.prototype.addValue=function(t,e){var i,o=t.x,r=t.y,n=e.seriesIx,s=this.options.series[n],a=this.seriesMissingValues(s),p=this.seriesPoints[n],h=t;nr(o)&&nr(r)||(h=this.createMissingValue(h,a)),h&&((i=this.createPoint(h,e))&&(Object.assign(i,e),this.addErrorBar(i,m,e),this.addErrorBar(i,x,e)),this.updateRange(h,e.series)),this.points.push(i),p.push(i)},e.prototype.seriesMissingValues=function(t){return t.missingValues},e.prototype.createMissingValue=function(){},e.prototype.updateRange=function(t,e){var i=this.chartService.intl,o=e.xAxis,r=e.yAxis,n=t.x,s=t.y,a=this.xAxisRanges[o],p=this.yAxisRanges[r];nr(n)&&(a=this.xAxisRanges[o]=a||{min:u,max:d},M(n)&&(n=Xe(i,n)),a.min=Math.min(a.min,n),a.max=Math.max(a.max,n)),nr(s)&&(p=this.yAxisRanges[r]=p||{min:u,max:d},M(s)&&(s=Xe(i,s)),p.min=Math.min(p.min,s),p.max=Math.max(p.max,s))},e.prototype.evalPointOptions=function(t,e,i){var o=i.series,r=i.seriesIx,n={defaults:o._defaults,excluded:["data","tooltip","content","template","visual","toggle","_outOfRangeMinPoint","_outOfRangeMaxPoint"]},s=this._evalSeries[r];xt(s)||(this._evalSeries[r]=s=ao(t,{},n,!0));var a=t;return s&&ao(a=j({},t),{value:e,series:o,dataItem:i.dataItem},n),a},e.prototype.pointType=function(){return go},e.prototype.pointOptions=function(t,e){var i=this.seriesOptions[e];if(!i){var o=this.pointType().prototype.defaults;this.seriesOptions[e]=i=j({},o,{markers:{opacity:t.opacity},tooltip:{format:this.options.tooltip.format},labels:{format:this.options.labels.format}},t)}return i},e.prototype.createPoint=function(t,e){var i=e.series,o=this.pointOptions(i,e.seriesIx),r=e.color||i.color;o=this.evalPointOptions(o,t,e),T(i.color)&&(r=o.color);var n=new go(t,o);return n.color=r,this.append(n),n},e.prototype.seriesAxes=function(t){var e=t.xAxis,i=t.yAxis,o=this.plotArea,r=e?o.namedXAxes[e]:o.axisX,n=i?o.namedYAxes[i]:o.axisY;if(!r)throw new Error("Unable to locate X axis with name "+e);if(!n)throw new Error("Unable to locate Y axis with name "+i);return{x:r,y:n}},e.prototype.reflow=function(t){var e=this,i=this.points,o=!this.options.clip,r=0;this.traverseDataPoints((function(t,n){var s=i[r++],a=e.seriesAxes(n.series),p=a.x.getSlot(t.x,t.x,o),h=a.y.getSlot(t.y,t.y,o);if(s)if(p&&h){var c=e.pointSlot(p,h);s.reflow(c)}else s.visible=!1})),this.box=t},e.prototype.pointSlot=function(t,e){return new Jt(t.x1,e.y1,t.x2,e.y2)},e.prototype.traverseDataPoints=function(t){for(var e=this.options.series,i=this.seriesPoints,o=0;o<e.length;o++){var r=e[o];i[o]||(i[o]=[]);for(var n=0;n<r.data.length;n++){var s=this._bindPoint(r,o,n),a=s.valueFields,p=s.fields;t(a,j({pointIx:n,series:r,seriesIx:o,dataItem:r.data[n],owner:this},p))}}},e.prototype.formatPointValue=function(t,e){var i=t.value;return this.chartService.format.auto(e,i.x,i.y)},e.prototype.animationPoints=function(){for(var t=this.points,e=[],i=0;i<t.length;i++)e.push((t[i]||{}).marker);return e},e}(re);Bt(sr,{series:[],tooltip:{format:"{0}, {1}"},labels:{format:"{0}, {1}"},clip:!0}),j(sr.prototype,Po,{_bindPoint:co.prototype._bindPoint});var ar=sr,pr=function(t){function e(e,i){t.call(this,e,i),this.category=e.category}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.createHighlight=function(){var t=this.options.highlight,e=t.border,i=this.options.markers,o=this.box.center(),r=(i.size+i.border.width+e.width)/2,n=new A.drawing.Group,s=new A.drawing.Circle(new A.geometry.Circle([o.x,o.y+r/5+e.width/2],r+e.width/2),{stroke:{color:"none"},fill:this.createGradient({gradient:"bubbleShadow",color:i.background,stops:[{offset:0,color:i.background,opacity:.3},{offset:1,color:i.background,opacity:0}]})}),a=new A.drawing.Circle(new A.geometry.Circle([o.x,o.y],r),{stroke:{color:e.color||new A.Color(i.background).brightness(.8).toHex(),width:e.width,opacity:e.opacity},fill:{color:i.background,opacity:t.opacity}});return n.append(s,a),n},e}(go);pr.prototype.defaults=j({},pr.prototype.defaults,{labels:{position:a},highlight:{opacity:1,border:{color:"#fff",width:2,opacity:1}}}),pr.prototype.defaults.highlight.zIndex=void 0;var hr=pr,cr=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype._initFields=function(){this._maxSize=d,t.prototype._initFields.call(this)},e.prototype.addValue=function(e,i){null!==e.size&&(e.size>0||e.size<0&&i.series.negativeValues.visible)?(this._maxSize=Math.max(this._maxSize,Math.abs(e.size)),t.prototype.addValue.call(this,e,i)):(this.points.push(null),this.seriesPoints[i.seriesIx].push(null))},e.prototype.reflow=function(e){this.updateBubblesSize(e),t.prototype.reflow.call(this,e)},e.prototype.pointType=function(){return hr},e.prototype.createPoint=function(t,e){var i=e.series,o=i.data.length,r=e.pointIx*(600/o),n={delay:r,duration:600-r,type:"bubble"},s=e.color||i.color;t.size<0&&i.negativeValues.visible&&(s=Rt(i.negativeValues.color,s));var a=j({labels:{animation:{delay:r,duration:600-r}}},this.pointOptions(i,e.seriesIx),{markers:{type:p,border:i.border,opacity:i.opacity,animation:n}});a=this.evalPointOptions(a,t,e),T(i.color)&&(s=a.color),a.markers.background=s;var h=new hr(t,a);return h.color=s,this.append(h),h},e.prototype.updateBubblesSize=function(t){for(var e=this.options.series,i=Math.min(t.width(),t.height()),o=0;o<e.length;o++)for(var r=e[o],n=this.seriesPoints[o],s=(r.minSize||Math.max(.02*i,10))/2,a=(r.maxSize||.2*i)/2,p=Math.PI*s*s,h=(Math.PI*a*a-p)/this._maxSize,c=0;c<n.length;c++){var l=n[c];if(l){var u=Math.abs(l.value.size)*h,d=Math.sqrt((p+u)/Math.PI),f=Rt(l.options.zIndex,0)+(1-d/a);j(l.options,{zIndex:f,markers:{size:2*d,zIndex:f},labels:{zIndex:f+1}})}}},e.prototype.formatPointValue=function(t,e){var i=t.value;return this.chartService.format.auto(e,i.x,i.y,i.size,t.category)},e.prototype.createAnimation=function(){},e.prototype.createVisual=function(){},e}(ar);Bt(cr,{tooltip:{format:"{3}"},labels:{format:"{3}"}});var lr=cr,ur=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e}(pe);j(ur.prototype,lo);var dr=ur,fr=function(t){function e(e,i){t.call(this,i),this.aboveAxis=this.options.aboveAxis,this.color=i.color||v,this.value=e}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.render=function(){var t=this.options;this._rendered||(this._rendered=!0,xt(this.value.target)&&(this.target=new dr({type:t.target.shape,background:t.target.color||this.color,opacity:t.opacity,zIndex:t.zIndex,border:t.target.border,vAlign:g,align:f}),this.target.value=this.value,this.target.dataItem=this.dataItem,this.target.series=this.series,this.append(this.target)),this.createNote())},e.prototype.reflow=function(t){this.render();var e=this.options,i=this.target,o=this.owner,r=e.invertAxes,n=o.seriesValueAxis(this.options),s=o.categorySlot(o.categoryAxis,e.categoryIx,n),a=n.getSlot(this.value.target),p=r?a:s,h=r?s:a;if(i){var c=new Jt(p.x1,h.y1,p.x2,h.y2);i.options.height=r?c.height():e.target.line.width,i.options.width=r?e.target.line.width:c.width(),i.reflow(c)}this.note&&this.note.reflow(t),this.box=t},e.prototype.createVisual=function(){t.prototype.createVisual.call(this);var e=this.options,i=A.drawing.Path.fromRect(this.box.toRect(),{fill:{color:this.color,opacity:e.opacity},stroke:null});e.border.width>0&&i.options.set("stroke",{color:e.border.color||this.color,width:e.border.width,dashType:e.border.dashType,opacity:Rt(e.border.opacity,e.opacity)}),this.bodyVisual=i,C(i),this.visual.append(i)},e.prototype.createAnimation=function(){this.bodyVisual&&(this.animation=A.drawing.Animation.create(this.bodyVisual,this.options.animation))},e.prototype.createHighlight=function(t){return A.drawing.Path.fromRect(this.box.toRect(),t)},e.prototype.highlightVisual=function(){return this.bodyVisual},e.prototype.highlightVisualArgs=function(){return{rect:this.box.toRect(),visual:this.bodyVisual,options:this.options}},e.prototype.formatValue=function(t){return this.owner.formatPointValue(this,t)},e}(re);fr.prototype.tooltipAnchor=Go.prototype.tooltipAnchor,Bt(fr,{border:{width:1},vertical:!1,opacity:1,target:{shape:"",border:{width:0,color:"green"},line:{width:2}},tooltip:{format:"Current: {0}<br />Target: {1}"}}),j(fr.prototype,lo),j(fr.prototype,uo);var gr=fr,yr=function(t){function e(e,i){!function(t){for(var e=t.series,i=0;i<e.length;i++){var o=e[i],r=o.data;!r||_(r[0])||I(r[0])||(o.data=[r])}}(i),t.call(this,e,i)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.reflowCategories=function(t){for(var e=this.children,i=e.length,o=0;o<i;o++)e[o].reflow(t[o])},e.prototype.plotRange=function(t){var e=t.series,i=this.seriesValueAxis(e),o=this.categoryAxisCrossingValue(i);return[o,t.value.current||o]},e.prototype.createPoint=function(t,e){var i=e.categoryIx,o=e.category,r=e.series,n=e.seriesIx,s=this.options,a=this.children,p=t.valueFields,h=j({vertical:!s.invertAxes,overlay:r.overlay,categoryIx:i,invertAxes:s.invertAxes},r),c=t.fields.color||r.color;h=this.evalPointOptions(h,p,o,i,r,n),T(r.color)&&(c=h.color);var l=new gr(p,h);l.color=c;var u=a[i];return u||(u=new No({vertical:s.invertAxes,gap:s.gap,spacing:s.spacing,rtl:!s.invertAxes&&(this.chartService||{}).rtl}),this.append(u)),u.append(l),l},e.prototype.updateRange=function(t,e){var i=t.current,o=t.target,r=e.series.axis,n=this.valueAxisRanges[r];xt(i)&&!isNaN(i)&&xt(o&&!isNaN(o))&&((n=this.valueAxisRanges[r]=n||{min:u,max:d}).min=Math.min(n.min,i,o),n.max=Math.max(n.max,i,o))},e.prototype.formatPointValue=function(t,e){return this.chartService.format.auto(e,t.value.current,t.value.target)},e.prototype.pointValue=function(t){return t.valueFields.current},e.prototype.aboveAxis=function(t){return t.value.current>0},e.prototype.createAnimation=function(){var t=this.points;this._setAnimationOptions();for(var e=0;e<t.length;e++){var i=t[e];i.options.animation=this.options.animation,i.createAnimation()}},e}(co);yr.prototype._setAnimationOptions=Xo.prototype._setAnimationOptions,Bt(yr,{animation:{type:Ji}});var vr=yr,mr=function(t){function e(e,i){t.call(this),this.chartService=e,this.options=j({},this.options,i)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.getStyle=function(t,e){var i=t.background,o=t.border.color;if(e){var r=e.color||e.options.color;i=Rt(i,r),o=Rt(o,r)}var n=E(t.padding||{},"auto");return{backgroundColor:i,borderColor:o,font:t.font,color:t.color,opacity:t.opacity,borderWidth:B(t.border.width),paddingTop:B(n.top),paddingBottom:B(n.bottom),paddingLeft:B(n.left),paddingRight:B(n.right)}},e.prototype.show=function(t,e,i){t.format=e.format;var o=this.getStyle(e,i);t.style=o;var r=new A.Color(o.backgroundColor);xt(e.color)||r.isDark()||(t.className="k-chart-tooltip-inverse"),this.chartService.notify("showTooltip",t),this.visible=!0},e.prototype.hide=function(){this.chartService&&this.chartService.notify("hideTooltip"),this.visible=!1},e.prototype.destroy=function(){delete this.chartService},e}(A.Class);Bt(mr,{border:{width:1},opacity:1});var xr=mr,_r=function(t){function e(e,i,o){t.call(this,e,o),this.crosshair=i,this.formatService=e.format,this.initAxisName()}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.initAxisName=function(){var t,e=this.crosshair.axis;t=e.plotArea.categoryAxis?e.getCategory?"categoryAxis":"valueAxis":e.options.vertical?"yAxis":"xAxis",this.axisName=t},e.prototype.showAt=function(t){var e=this.crosshair.axis,i=this.options,o=e[i.stickyMode?"getCategory":"getValue"](t),r=o;i.format?r=this.formatService.auto(i.format,o):e.options.type===h&&(r=this.formatService.auto(e.options.labels.dateFormats[e.options.baseUnit],o)),this.show({point:t,anchor:this.getAnchor(),crosshair:this.crosshair,value:r,axisName:this.axisName,axisIndex:this.crosshair.axis.axisIndex},this.options)},e.prototype.hide=function(){this.chartService.notify("hideTooltip",{crosshair:this.crosshair,axisName:this.axisName,axisIndex:this.crosshair.axis.axisIndex})},e.prototype.getAnchor=function(){var t,e,i,o=this.crosshair,r=this.options,n=r.position,p=r.padding,h=!o.axis.options.vertical,c=o.line.bbox();return h?(t=a,n===s?(e=g,i=c.bottomLeft().translate(0,p)):(e=s,i=c.topLeft().translate(0,-p))):(e=a,n===l?(t=f,i=c.topLeft().translate(-p,0)):(t=l,i=c.topRight().translate(p,0))),{point:i,align:{horizontal:t,vertical:e}}},e}(xr);Bt(_r,{padding:10});var br=_r,wr=function(t){function e(e,i,o){t.call(this,o),this.axis=i,this.stickyMode=i instanceof Qe;var r=this.options.tooltip;r.visible&&(this.tooltip=new br(e,this,j({},r,{stickyMode:this.stickyMode})))}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.showAt=function(t){this.point=t,this.moveLine(),this.line.visible(!0),this.tooltip&&this.tooltip.showAt(t)},e.prototype.hide=function(){this.line.visible(!1),this.tooltip&&this.tooltip.hide()},e.prototype.moveLine=function(){var t,e=this.axis,i=this.point,o=e.options.vertical,r=this.getBox(),n=o?x:m,s=new A.geometry.Point(r.x1,r.y1);if(t=o?new A.geometry.Point(r.x2,r.y1):new A.geometry.Point(r.x1,r.y2),i)if(this.stickyMode){var a=e.getSlot(e.pointCategoryIndex(i));s[n]=t[n]=a.center()[n]}else s[n]=t[n]=i[n];this.box=r,this.line.moveTo(s).lineTo(t)},e.prototype.getBox=function(){for(var t,e=this.axis,i=e.pane.axes,o=i.length,r=e.options.vertical,n=e.lineBox().clone(),s=r?m:x,a=0;a<o;a++){var p=i[a];p.options.vertical!==r&&(t?t.wrap(p.lineBox()):t=p.lineBox().clone())}return n[s+1]=t[s+1],n[s+2]=t[s+2],n},e.prototype.createVisual=function(){t.prototype.createVisual.call(this);var e=this.options;this.line=new A.drawing.Path({stroke:{color:e.color,width:e.width,opacity:e.opacity,dashType:e.dashType},visible:!1}),this.moveLine(),this.visual.append(this.line)},e.prototype.destroy=function(){this.tooltip&&this.tooltip.destroy(),t.prototype.destroy.call(this)},e}(re);Bt(wr,{color:n,width:2,zIndex:-1,tooltip:{visible:!1}});var Sr=wr,Ar=function(t){function e(e,i){t.call(this,e),this.pane=i}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.shouldClip=function(){for(var t=this.children,e=t.length,i=0;i<e;i++)if(!0===t[i].options.clip)return!0;return!1},e.prototype._clipBox=function(){return this.pane.chartsBox()},e.prototype.createVisual=function(){if(this.visual=new A.drawing.Group({zIndex:0}),this.shouldClip()){var t=(this.clipBox=this._clipBox()).toRect(),e=A.drawing.Path.fromRect(t);C(e),this.visual.clip(e),this.unclipLabels()}},e.prototype.stackRoot=function(){return this},e.prototype.unclipLabels=function(){for(var t=this.children,e=this.clipBox,i=0;i<t.length;i++)for(var o=t[i].points||{},r=o.length,n=0;n<r;n++){var s=o[n];if(s&&!1!==s.visible&&s.overlapsBox&&s.overlapsBox(e))if(s.unclipElements)s.unclipElements();else{var a=s.label,p=s.note;a&&a.options.visible&&(a.alignToClipBox&&a.alignToClipBox(e),a.options.noclip=!0),p&&p.options.visible&&(p.options.noclip=!0)}}},e.prototype.destroy=function(){t.prototype.destroy.call(this),delete this.parent},e}(re);Ar.prototype.isStackRoot=!0;var Cr=Ar,kr=function(t){function e(e){t.call(this,e),this.id="pane"+Pr++,this.createTitle(),this.content=new re,this.chartContainer=new Cr({},this),this.append(this.content),this.axes=[],this.charts=[]}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.createTitle=function(){var t=this.options.title;I(t)&&(t=j({},t,{align:t.position,position:g})),this.title=we.buildTitle(t,this,e.prototype.options.title)},e.prototype.appendAxis=function(t){this.content.append(t),this.axes.push(t),t.pane=this},e.prototype.appendAxisAt=function(t,e){this.content.append(t),this.axes.splice(e,0,t),t.pane=this},e.prototype.appendChart=function(t){this.chartContainer.parent!==this.content&&this.content.append(this.chartContainer),this.charts.push(t),this.chartContainer.append(t),t.pane=this},e.prototype.empty=function(){var t=this.parent;if(t){for(var e=0;e<this.axes.length;e++)t.removeAxis(this.axes[e]);for(var i=0;i<this.charts.length;i++)t.removeChart(this.charts[i])}this.axes=[],this.charts=[],this.content.destroy(),this.content.children=[],this.chartContainer.children=[]},e.prototype.reflow=function(e){var i;Ct(this.children)===this.content&&(i=this.children.pop()),t.prototype.reflow.call(this,e),i&&this.children.push(i),this.title&&(this.contentBox.y1+=this.title.box.height())},e.prototype.visualStyle=function(){var e=t.prototype.visualStyle.call(this);return e.zIndex=-10,e},e.prototype.renderComplete=function(){this.options.visible&&this.createGridLines()},e.prototype.stackRoot=function(){return this},e.prototype.clipRoot=function(){return this},e.prototype.createGridLines=function(){for(var t=this.axes,e=t.concat(this.parent.axes),i=[],o=[],r=0;r<t.length;r++)for(var n=t[r],s=n.options.vertical,a=s?i:o,p=0;p<e.length;p++)if(0===a.length){var h=e[p];s!==h.options.vertical&&vt(a,n.createGridLines(h))}},e.prototype.refresh=function(){this.visual.clear(),this.content.parent=null,this.content.createGradient=this.createGradient.bind(this),this.content.renderVisual(),this.content.parent=this,this.title&&this.visual.append(this.title.visual),this.visual.append(this.content.visual),this.renderComplete(),this.notifyRender()},e.prototype.chartsBox=function(){for(var t=this.axes,e=t.length,i=new Jt,o=0;o<e;o++){var r=t[o],n=r.options.vertical?x:m,s=r.lineBox();i[n+1]=s[n+1],i[n+2]=s[n+2]}if(0===i.x2)for(var a=this.parent.axes,p=a.length,h=0;h<p;h++){var c=a[h];if(!c.options.vertical){var l=c.lineBox();i.x1=l.x1,i.x2=l.x2}}return i},e.prototype.clipBox=function(){return this.chartContainer.clipBox},e.prototype.notifyRender=function(){var t=this.getService();t&&t.notify("paneRender",{pane:new Vi(this),index:this.paneIndex,name:this.options.name})},e}(se),Pr=1;kr.prototype.isStackRoot=!0,Bt(kr,{zIndex:-1,shrinkToFit:!0,title:{align:l},visible:!0});var Mr=kr;function Or(t,e){null!==e&&t.push(e)}function Tr(t,e,i){var o=e.visible;if(xt(o))return o;var r=t.pointVisibility;return r?r[i]:void 0}function Rr(t){for(var e=t.data,i=[],o=0,r=0,n=0;n<e.length;n++){var s=Ni.current.bindPoint(t,n),a=s.valueFields.value;M(a)&&(a=parseFloat(a)),P(a)?(s.visible=!1!==Tr(t,s.fields,n),s.value=Math.abs(a),i.push(s),s.visible&&(o+=s.value),0!==a&&r++):i.push(null)}return{total:o,points:i,count:r}}function jr(t,e){return t&&e?t.toLowerCase()===e.toLowerCase():t===e}function Ir(t,e){for(var i=[],o=[].concat(e),r=0;r<t.length;r++){var n=t[r];ct(n.type,o)&&i.push(n)}return i}function Br(t,e,i){if(null===e)return e;var o="_date_"+t,r=e[o];return r||(r=Xe(i,nt(t)(e)),e[o]=r),r}function Lr(t,e){var i=t.type,o=e instanceof Date;return!i&&o||jr(i,h)}function zr(t){return 1===t.length?t[0]:t}var Vr=/area/i;function Er(t,e){var i=Ni.current.bindPoint(t,null,e).valueFields;for(var o in i)if(O(i[o]))return!0}function Dr(t){var e,i,o=t.start,r=t.dir,n=t.min,s=t.max,a=t.getter,p=t.hasItem,h=t.series,c=o;do{p(c+=r)&&(e=Er(h,(i=a(c)).item))}while(n<=c&&c<=s&&!e);if(e)return i}function Gr(t,e,i,o,r){var n=e.min,s=e.max,a=n>0&&n<i,p=s+1<i;if(a||p){var h,c,l;if("interpolate"!==function(t){return t.missingValues?t.missingValues:Vr.test(t.type)||t.stack?Zi:"interpolate"}(t))a&&(h=o(n-1)),p&&(c=o(s+1));else a&&(h=Er(t,(l=o(n-1)).item)?l:Dr({start:n,dir:-1,min:0,max:i-1,getter:o,hasItem:r,series:t})),p&&(c=Er(t,(l=o(s+1)).item)?l:Dr({start:s,dir:1,min:0,max:i-1,getter:o,hasItem:r,series:t}));h&&(t._outOfRangeMinPoint=h),c&&(t._outOfRangeMaxPoint=c)}}var Ur=function(t){function e(e,i,o){t.call(this,i),this.initFields(e,i),this.series=e,this.initSeries(),this.charts=[],this.options.legend=this.options.legend||{},this.options.legend.items=[],this.axes=[],this.crosshairs=[],this.chartService=o,this.originalOptions=i,this.createPanes(),this.render(),this.createCrosshairs()}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.initFields=function(){},e.prototype.initSeries=function(){for(var t=this.series,e=0;e<t.length;e++)t[e].index=e},e.prototype.createPanes=function(){for(var t=this.options.title||{},e=this.options.paneDefaults,i=this.options.panes||[],o=Math.max(i.length,1),r=[],n=j({title:{color:t.color}},e),s=0;s<o;s++){var a=j({},n,i[s]);M(a.title)&&(a.title=j({text:a.title},n.title));var p=new Mr(a);p.paneIndex=s,r.push(p),this.append(p)}this.panes=r},e.prototype.crosshairOptions=function(t){return t.options.crosshair},e.prototype.createCrosshairs=function(t){void 0===t&&(t=this.panes);for(var e=0;e<t.length;e++)for(var i=t[e],o=0;o<i.axes.length;o++){var r=i.axes[o],n=this.crosshairOptions(r);if(n&&n.visible){var s=new Sr(this.chartService,r,n);this.crosshairs.push(s),i.content.append(s)}}},e.prototype.removeCrosshairs=function(t){for(var e=this.crosshairs,i=t.axes,o=e.length-1;o>=0;o--)for(var r=0;r<i.length;r++)if(e[o].axis===i[r]){e.splice(o,1);break}},e.prototype.hideCrosshairs=function(){for(var t=this.crosshairs,e=0;e<t.length;e++)t[e].hide()},e.prototype.findPane=function(t){for(var e,i=this.panes,o=0;o<i.length;o++)if(i[o].options.name===t){e=i[o];break}return e||i[0]},e.prototype.findPointPane=function(t){for(var e,i=this.panes,o=0;o<i.length;o++)if(i[o].box.containsPoint(t)){e=i[o];break}return e},e.prototype.appendAxis=function(t){this.findPane(t.options.pane).appendAxis(t),this.axes.push(t),t.plotArea=this},e.prototype.removeAxis=function(t){for(var e=[],i=0;i<this.axes.length;i++){var o=this.axes[i];t!==o?e.push(o):o.destroy()}this.axes=e},e.prototype.appendChart=function(t,e){this.charts.push(t),e?e.appendChart(t):this.append(t)},e.prototype.removeChart=function(t){for(var e=[],i=0;i<this.charts.length;i++){var o=this.charts[i];o!==t?e.push(o):o.destroy()}this.charts=e},e.prototype.addToLegend=function(t){for(var e=t.length,i=this.options.legend,o=i.labels||{},r=i.inactiveItems||{},n=r.labels||{},s=[],a=0;a<e;a++){var p=t[a],h=!1!==p.visible;if(!1!==p.visibleInLegend){var c=p.name,l=h?it(o):it(n)||it(o);l&&(c=l({text:nr(c)?c:"",series:p}));var u=p._defaults,d=p.color;T(d)&&u&&(d=u.color);var f=void 0,g=void 0;h?(f={},g=d):(f={color:n.color,font:n.font},g=r.markers.color),nr(c)&&""!==c&&s.push({text:c,labels:f,markerColor:g,series:p,active:h})}}vt(i.items,s)},e.prototype.groupAxes=function(t){for(var e=[],i=[],o=0;o<t.length;o++)for(var r=t[o].axes,n=0;n<r.length;n++){var s=r[n];s.options.vertical?i.push(s):e.push(s)}return{x:e,y:i,any:e.concat(i)}},e.prototype.groupSeriesByPane=function(){for(var t=this.series,e={},i=0;i<t.length;i++){var o=t[i],r=this.seriesPaneName(o);e[r]?e[r].push(o):e[r]=[o]}return e},e.prototype.filterVisibleSeries=function(t){for(var e=[],i=0;i<t.length;i++){var o=t[i];!1!==o.visible&&e.push(o)}return e},e.prototype.reflow=function(t){var e=this.options.plotArea,i=this.panes,o=E(e.margin);this.box=t.clone().unpad(o),this.reflowPanes(),this.detachLabels(),this.reflowAxes(i),this.reflowCharts(i)},e.prototype.redraw=function(t){var e=[].concat(t);this.initSeries();var i=this.getRoot();i&&i.cleanGradients();for(var o=0;o<e.length;o++)this.removeCrosshairs(e[o]),e[o].empty();this.render(e),this.detachLabels(),this.reflowAxes(this.panes),this.reflowCharts(e),this.createCrosshairs(e);for(var r=0;r<e.length;r++)e[r].refresh()},e.prototype.axisCrossingValues=function(t,e){for(var i=t.options,o=[].concat(i.axisCrossingValues||i.axisCrossingValue),r=e.length-o.length,n=o[0]||0,s=0;s<r;s++)o.push(n);return o},e.prototype.alignAxisTo=function(t,e,i,o){var r=t.getSlot(i,i,!0),n=t.options.reverse?2:1,s=e.getSlot(o,o,!0),a=e.options.reverse?2:1,p=t.box.translate(s[m+a]-r[m+n],s[x+a]-r[x+n]);t.pane!==e.pane&&p.translate(0,t.pane.box.y1-e.pane.box.y1),t.reflow(p)},e.prototype.alignAxes=function(t,e){for(var i=t[0],o=e[0],r=this.axisCrossingValues(i,e),n=this.axisCrossingValues(o,t),a={},p={},h={},c={},u=0;u<e.length;u++){var d=e[u],y=d.pane,v=y.id,m=!1!==d.options.visible,x=Nr(t,y)||i,_=r;x!==i&&(_=this.axisCrossingValues(x,e)),this.alignAxisTo(d,x,n[u],_[u]),d.options._overlap||(Ot(d.lineBox().x1)===Ot(x.lineBox().x1)&&(a[v]&&d.reflow(d.box.alignTo(a[v].box,l).translate(-d.options.margin,0)),m&&(a[v]=d)),Ot(d.lineBox().x2)===Ot(x.lineBox().x2)&&(d._mirrored||(d.options.labels.mirror=!d.options.labels.mirror,d._mirrored=!0),this.alignAxisTo(d,x,n[u],_[u]),p[v]&&d.reflow(d.box.alignTo(p[v].box,f).translate(d.options.margin,0)),m&&(p[v]=d)),0!==u&&o.pane===d.pane&&(d.alignTo(o),d.reflow(d.box)))}for(var b=0;b<t.length;b++){var w=t[b],S=w.pane,A=S.id,C=!1!==w.options.visible,k=Nr(e,S)||o,P=n;k!==o&&(P=this.axisCrossingValues(k,t)),this.alignAxisTo(w,k,r[b],P[b]),w.options._overlap||(Ot(w.lineBox().y1)===Ot(k.lineBox().y1)&&(w._mirrored||(w.options.labels.mirror=!w.options.labels.mirror,w._mirrored=!0),this.alignAxisTo(w,k,r[b],P[b]),h[A]&&w.reflow(w.box.alignTo(h[A].box,g).translate(0,-w.options.margin)),C&&(h[A]=w)),Ot(w.lineBox().y2,3)===Ot(k.lineBox().y2,3)&&(c[A]&&w.reflow(w.box.alignTo(c[A].box,s).translate(0,w.options.margin)),C&&(c[A]=w)),0!==b&&(w.alignTo(i),w.reflow(w.box)))}},e.prototype.shrinkAxisWidth=function(t){for(var e=this.groupAxes(t).any,i=Hr(e),o=0,r=0;r<t.length;r++){var n=t[r];n.axes.length>0&&(o=Math.max(o,i.width()-n.contentBox.width()))}if(0!==o)for(var s=0;s<e.length;s++){var a=e[s];a.options.vertical||a.reflow(a.box.shrink(o,0))}},e.prototype.shrinkAxisHeight=function(t){for(var e,i=0;i<t.length;i++){var o=t[i],r=o.axes,n=Math.max(0,Hr(r).height()-o.contentBox.height());if(0!==n){for(var s=0;s<r.length;s++){var a=r[s];a.options.vertical&&a.reflow(a.box.shrink(0,n))}e=!0}}return e},e.prototype.fitAxes=function(t){for(var e=this.groupAxes(t).any,i=0,o=0;o<t.length;o++){var r=t[o],n=r.axes,s=r.contentBox;if(n.length>0){var a=Hr(n),p=Math.max(s.y1-a.y1,s.y2-a.y2);i=Math.max(i,s.x1-a.x1);for(var h=0;h<n.length;h++){var c=n[h];c.reflow(c.box.translate(0,p))}}}for(var l=0;l<e.length;l++){var u=e[l];u.reflow(u.box.translate(i,0))}},e.prototype.reflowAxes=function(t){for(var e=this.groupAxes(t),i=0;i<t.length;i++)this.reflowPaneAxes(t[i]);e.x.length>0&&e.y.length>0&&(this.alignAxes(e.x,e.y),this.shrinkAxisWidth(t),this.autoRotateAxisLabels(e),this.alignAxes(e.x,e.y),this.shrinkAxisWidth(t)&&this.alignAxes(e.x,e.y),this.shrinkAxisHeight(t),this.alignAxes(e.x,e.y),this.shrinkAxisHeight(t)&&this.alignAxes(e.x,e.y),this.fitAxes(t))},e.prototype.autoRotateAxisLabels=function(t){for(var e,i=this.panes,o=Wr(i),r=0;r<o.length;r++){o[r].autoRotateLabels()&&(e=!0)}if(e){for(var n=0;n<i.length;n++)this.reflowPaneAxes(i[n]);t.x.length>0&&t.y.length>0&&(this.alignAxes(t.x,t.y),this.shrinkAxisWidth(i))}},e.prototype.reflowPaneAxes=function(t){var e=t.axes,i=e.length;if(i>0)for(var o=0;o<i;o++)e[o].reflow(t.contentBox)},e.prototype.reflowCharts=function(t){for(var e=this.charts,i=e.length,o=this.box,r=0;r<i;r++){var n=e[r].pane;n&&!ct(n,t)||e[r].reflow(o)}},e.prototype.reflowPanes=function(){for(var t=this.box,e=this.panes,i=e.length,o=t.height(),r=0,n=t.y1,s=0;s<i;s++){var a=e[s],p=a.options.height;if(a.options.width=t.width(),a.options.height){if(p.indexOf&&p.indexOf("%")){var h=parseInt(p,10)/100;a.options.height=h*t.height()}a.reflow(t.clone()),o-=a.options.height}else r++}for(var c=0;c<i;c++){var l=e[c];l.options.height||(l.options.height=o/r)}for(var u=0;u<i;u++){var d=e[u],f=t.clone().move(t.x1,n);d.reflow(f),n+=d.options.height}},e.prototype.backgroundBox=function(){for(var t,e=this.axes,i=e.length,o=0;o<i;o++)for(var r=e[o],n=0;n<i;n++){var s=e[n];if(r.options.vertical!==s.options.vertical){var a=r.lineBox().clone().wrap(s.lineBox());t=t?t.wrap(a):a}}return t||this.box},e.prototype.chartsBoxes=function(){for(var t=this.panes,e=[],i=0;i<t.length;i++)e.push(t[i].chartsBox());return e},e.prototype.addBackgroundPaths=function(t){for(var e=this.chartsBoxes(),i=0;i<e.length;i++)t.paths.push(A.drawing.Path.fromRect(e[i].toRect()))},e.prototype.backgroundContainsPoint=function(t){for(var e=this.chartsBoxes(),i=0;i<e.length;i++)if(e[i].containsPoint(t))return!0},e.prototype.createVisual=function(){t.prototype.createVisual.call(this);var e,i=this.options.plotArea,o=i.opacity,r=i.background,n=i.border;void 0===n&&(n={}),""!==(e=r)&&null!==e&&"none"!==e&&"transparent"!==e&&xt(e)||(r=v,o=0);var s=this._bgVisual=new A.drawing.MultiPath({fill:{color:r,opacity:o},stroke:{color:n.width?n.color:"",width:n.width,dashType:n.dashType},zIndex:-1});this.addBackgroundPaths(s),this.appendVisual(s)},e.prototype.pointsByCategoryIndex=function(t){var e=this.charts,i=[];if(null!==t)for(var o=0;o<e.length;o++){if("_navigator"!==e[o].pane.options.name){var r=e[o].categoryPoints[t];if(r&&r.length)for(var n=0;n<r.length;n++){var s=r[n];s&&xt(s.value)&&null!==s.value&&i.push(s)}}}return i},e.prototype.pointsBySeriesIndex=function(t){return this.filterPoints((function(e){return e.series.index===t}))},e.prototype.pointsBySeriesName=function(t){return this.filterPoints((function(e){return e.series.name===t}))},e.prototype.filterPoints=function(t){for(var e=this.charts,i=[],o=0;o<e.length;o++)for(var r=e[o].points,n=0;n<r.length;n++){var s=r[n];s&&!1!==s.visible&&t(s)&&i.push(s)}return i},e.prototype.findPoint=function(t){for(var e=this.charts,i=0;i<e.length;i++)for(var o=e[i].points,r=0;r<o.length;r++){var n=o[r];if(n&&!1!==n.visible&&t(n))return n}},e.prototype.paneByPoint=function(t){for(var e=this.panes,i=0;i<e.length;i++){var o=e[i];if(o.box.containsPoint(t))return o}},e.prototype.detachLabels=function(){var t=this.groupAxes(this.panes),e=t.x,i=t.y;this.detachAxisGroupLabels(i,e),this.detachAxisGroupLabels(e,i)},e.prototype.detachAxisGroupLabels=function(t,e){for(var i=0,o=0;o<t.length;o++){var r=t[o],n=r.pane,s=Nr(e,n)||e[0],a=o+i,p=this.createLabelAxis(r,a,s);if(p){i++;var h=n.axes.indexOf(r)+i;n.appendAxisAt(p,h)}}},e.prototype.createLabelAxis=function(t,e,i){var o=t.options.labels,r=o.position,n="end"!==r&&"start"!==r,s=o.visible;if(n||!1===s)return null;var a=this.groupAxes(this.panes),p=i.options.vertical?a.x:a.y,h=this.axisCrossingValues(i,p),c="end"===r,l=i.range(),u=c?l.max:l.min;if(kt(h[e],l.min,l.max)-u==0)return null;h.splice(e+1,0,u),i.options.axisCrossingValues=h;var d=t.clone();return t.clear(),d.options.name=void 0,d.options.line.visible=!1,d.options.crosshair=void 0,d.options.notes=void 0,d.options.plotBands=void 0,d},e}(re);function Fr(t){return!t.pane.axes.some((function(e){return e.options.vertical===t.options.vertical&&e!==t&&!1!==e.options.visible}))}function Hr(t){for(var e,i=t.length,o=0;o<i;o++){var r=t[o],n=!1!==r.options.visible;if(n||Fr(r)){var s=n?r.contentBox():r.lineBox();e?e.wrap(s):e=s.clone()}}return e||new Jt}function Nr(t,e){for(var i=0;i<t.length;i++){var o=t[i];if(o&&o.pane===e)return o}}var Wr=function(t){return t.reduce((function(t,e){return t.concat(e.axes)}),[])};Bt(Ur,{series:[],plotArea:{margin:{}},background:"",border:{color:n,width:0},paneDefaults:{title:{}},legend:{inactiveItems:{labels:{color:"#919191"},markers:{color:"#919191"}}}});var qr=Ur,Kr={hover:function(t,e){this._dispatchEvent(t,e,"plotAreaHover")},click:function(t,e){this._dispatchEvent(t,e,"plotAreaClick")}};function Xr(t,e,i){var o=e,r=t;if(t.indexOf(".")>-1){for(var n=t.split(".");n.length>1;)r=n.shift(),xt(o[r])||(o[r]={}),o=o[r];r=n.shift()}o[r]=i}var Yr=function(t){function e(e,i,o){t.call(this);var r=i.canonicalFields(e),n=i.valueFields(e),s=i.sourceFields(e,r),a=this._seriesFields=[],p=o.query(e.type),h=e.aggregate||p;this._series=e,this._binder=i;for(var c=0;c<r.length;c++){var l=r[c],u=void 0;if(I(h))u=h[l];else{if(0!==c&&!ct(l,n))break;u=h}u&&a.push({canonicalName:l,name:s[c],transform:T(u)?u:Ui[u]})}}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.aggregatePoints=function(t,e){var i=this._series,o=this._seriesFields,r=this._bindPoints(t||[]),n=r.dataItems[0],s={};if(n&&!P(n)&&!_(n)){var a=function(){};a.prototype=n,s=new a}for(var p=0;p<o.length;p++){var h=o[p],c=this._bindField(r.values,h.canonicalName),l=h.transform(c,i,r.dataItems,e);if(!(null===l||!I(l)||xt(l.length)||l instanceof Date)){s=l;break}xt(l)&&Xr(h.name,s,l)}return s},e.prototype._bindPoints=function(t){for(var e=this._binder,i=this._series,o=[],r=[],n=0;n<t.length;n++){var s=t[n];o.push(e.bindPoint(i,s)),r.push(i.data[s])}return{values:o,dataItems:r}},e.prototype._bindField=function(t,e){for(var i=[],o=t.length,r=0;r<o;r++){var n=t[r],s=n.valueFields,a=void 0;a=xt(s[e])?s[e]:n.fields[e],i.push(a)}return i},e}(A.Class),Zr=function(t){function e(){t.call(this),this._defaults={}}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.register=function(t,e){for(var i=0;i<t.length;i++)this._defaults[t[i]]=e},e.prototype.query=function(t){return this._defaults[t]},e}(A.Class);Zr.current=new Zr;var Jr=Zr,Qr=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.createLabel=function(){var t=this.options.labels,e=j({},t,t.from),i=j({},t,t.to);e.visible&&(this.labelFrom=this._createLabel(e),this.append(this.labelFrom)),i.visible&&(this.labelTo=this._createLabel(i),this.append(this.labelTo))},e.prototype._createLabel=function(t){var e,i=it(t),o=this.pointData();return e=i?i(o):this.formatValue(t.format),new Vo(e,j({vertical:this.options.vertical},t),o)},e.prototype.reflow=function(t){this.render();var e=this.labelFrom,i=this.labelTo,o=this.value;this.box=t,e&&(e.options.aboveAxis=o.from>o.to,e.reflow(t)),i&&(i.options.aboveAxis=o.to>o.from,i.reflow(t)),this.note&&this.note.reflow(t)},e}(Go);Qr.prototype.defaults=j({},Qr.prototype.defaults,{labels:{format:"{0} - {1}"},tooltip:{format:"{1}"}});var $r=Qr,tn=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.pointType=function(){return $r},e.prototype.pointValue=function(t){return t.valueFields},e.prototype.formatPointValue=function(t,e){return null===t.value.from&&null===t.value.to?"":this.chartService.format.auto(e,t.value.from,t.value.to)},e.prototype.plotRange=function(t){return t?[t.value.from,t.value.to]:0},e.prototype.updateRange=function(t,e){var i=e.series.axis,o=t.from,r=t.to,n=this.valueAxisRanges[i];null!==t&&P(o)&&P(r)&&((n=this.valueAxisRanges[i]=n||{min:u,max:d}).min=Math.min(n.min,o),n.max=Math.max(n.max,o),n.min=Math.min(n.min,r),n.max=Math.max(n.max,r))},e.prototype.aboveAxis=function(t){var e=t.value;return e.from<e.to},e}(Xo);tn.prototype.plotLimits=co.prototype.plotLimits;var en=tn,on=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.aliasFor=function(){return this.parent},e}(go),rn=function(t){function e(e,i){t.call(this),this.value=e,this.options=i,this.aboveAxis=Rt(this.options.aboveAxis,!0),this.tooltipTracking=!0,this.initLabelsFormat()}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.render=function(){if(!this._rendered){this._rendered=!0;var t=this.options,e=t.markers,i=t.labels,o=this.value,r=this.fromPoint=new on(o,j({},this.options,{labels:i.from,markers:e.from})),n=this.toPoint=new on(o,j({},this.options,{labels:i.to,markers:e.to}));this.copyFields(r),this.copyFields(n),this.append(r),this.append(n)}},e.prototype.reflow=function(t){this.render();var e=t.from,i=t.to;this.positionLabels(e,i),this.fromPoint.reflow(e),this.toPoint.reflow(i),this.box=this.fromPoint.markerBox().clone().wrap(this.toPoint.markerBox())},e.prototype.createHighlight=function(){var t=new A.drawing.Group;return t.append(this.fromPoint.createHighlight()),t.append(this.toPoint.createHighlight()),t},e.prototype.highlightVisual=function(){return this.visual},e.prototype.highlightVisualArgs=function(){return{options:this.options,from:this.fromPoint.highlightVisualArgs(),to:this.toPoint.highlightVisualArgs()}},e.prototype.tooltipAnchor=function(){var t=this.owner.pane.clipBox();if(!t||t.overlaps(this.box)){var e,i,o,r=this.box,n=r.center();return this.options.vertical?(e=n.x,i=r.y1-5,o=s):(e=r.x2+5,i=n.y,o=a),{point:new Yt(e,i),align:{horizontal:"left",vertical:o}}}},e.prototype.formatValue=function(t){return this.owner.formatPointValue(this,t)},e.prototype.overlapsBox=function(t){return this.box.overlaps(t)},e.prototype.unclipElements=function(){this.fromPoint.unclipElements(),this.toPoint.unclipElements()},e.prototype.initLabelsFormat=function(){var t=this.options.labels;t.format||(t.from&&t.from.format||(t.from=Object.assign({},t.from,{format:"{0}"})),t.to&&t.to.format||(t.to=Object.assign({},t.to,{format:"{1}"})))},e.prototype.positionLabels=function(t,e){var i,o,r=this.options,n=r.labels,s=r.vertical;"auto"===n.position&&(s?e.y1<=t.y1?(o="above",i="below"):(o="below",i="above"):e.x1<=t.x1?(o=l,i=f):(o=f,i=l),n.from&&n.from.position||(this.fromPoint.options.labels.position=i),n.to&&n.to.position||(this.toPoint.options.labels.position=o))},e.prototype.copyFields=function(t){t.dataItem=this.dataItem,t.category=this.category,t.series=this.series,t.color=this.color,t.owner=this.owner},e}(re);j(rn.prototype,lo),j(rn.prototype,uo),rn.prototype.defaults={markers:{visible:!1,background:v,size:8,type:p,border:{width:2},opacity:1},labels:{visible:!1,margin:E(3),padding:E(4),animation:{type:"fadeIn",delay:600},position:"auto"},notes:{label:{}},highlight:{markers:{border:{color:v,width:2}},zIndex:100},tooltip:{format:"{0} - {1}"}};var nn=rn,sn=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.createStrokeSegments=function(){return this.segmentsFromPoints(this.toGeometryPoints(this.toPoints()))},e.prototype.stackSegments=function(){var t=this.fromSegments;return this.fromSegments||(t=this.fromSegments=this.segmentsFromPoints(this.toGeometryPoints(this.fromPoints().reverse()))),t},e.prototype.createStroke=function(t){var e=new A.drawing.Path(t),i=new A.drawing.Path(t);e.segments.push.apply(e.segments,this.strokeSegments()),i.segments.push.apply(i.segments,this.stackSegments()),this.visual.append(e),this.visual.append(i)},e.prototype.hasStackSegment=function(){return!0},e.prototype.fromPoints=function(){return this.linePoints.map((function(t){return t.fromPoint}))},e.prototype.toPoints=function(){return this.linePoints.map((function(t){return t.toPoint}))},e}(To),an=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.createStrokeSegments=function(){return this.createCurveSegments(this.toPoints())},e.prototype.stackSegments=function(){var t=this.fromSegments;return this.fromSegments||(t=this.fromSegments=this.createCurveSegments(this.fromPoints().reverse())),t},e.prototype.createCurveSegments=function(t){return(new Ii).process(this.toGeometryPoints(t))},e}(sn),pn=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.createStrokeSegments=function(){return this.segmentsFromPoints(this.calculateStepPoints(this.toPoints()))},e.prototype.stackSegments=function(){var t=this.fromSegments;return this.fromSegments||(t=this.fromSegments=this.segmentsFromPoints(this.calculateStepPoints(this.fromPoints()))).reverse(),t},e}(sn);j(pn.prototype,xo);var hn=pn,cn=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.render=function(){t.prototype.render.call(this),this.renderSegments()},e.prototype.pointType=function(){return nn},e.prototype.createPoint=function(t,e){var i=e.categoryIx,o=e.category,r=e.series,n=e.seriesIx,s=t.valueFields;if(!nr(s.from)&&!nr(s.to)){if(this.seriesMissingValues(r)!==Zi)return null;s={from:0,to:0}}var a=this.pointOptions(r,n);a=this.evalPointOptions(a,s,o,i,r,n);var p=t.fields.color||r.color;T(r.color)&&(p=a.color);var h=new nn(s,a);return h.color=p,this.append(h),h},e.prototype.createSegment=function(t,e,i){var o=(e.line||{}).style;return new("smooth"===o?an:"step"===o?hn:sn)(t,e,i)},e.prototype.plotRange=function(t,e){return t?[t.value.from,t.value.to]:[e,e]},e.prototype.valueSlot=function(t,e){var i=t.getSlot(e[0],e[0],!this.options.clip),o=t.getSlot(e[1],e[1],!this.options.clip);if(i&&o)return{from:i,to:o}},e.prototype.pointSlot=function(t,e){var i,o,r=e.from,n=e.to;return this.options.invertAxes?(i=new Jt(r.x1,t.y1,r.x2,t.y2),o=new Jt(n.x1,t.y1,n.x2,t.y2)):(i=new Jt(t.x1,r.y1,t.x2,r.y2),o=new Jt(t.x1,n.y1,t.x2,n.y2)),{from:i,to:o}},e.prototype.addValue=function(e,i){var o=e.valueFields;P(o.from)||(o.from=o.to),P(o.to)||(o.to=o.from),t.prototype.addValue.call(this,e,i)},e.prototype.updateRange=function(t,e){if(null!==t&&P(t.from)&&P(t.to)){var i=e.series.axis,o=this.valueAxisRanges[i]=this.valueAxisRanges[i]||{min:u,max:d},r=t.from,n=t.to;o.min=Math.min(o.min,r,n),o.max=Math.max(o.max,r,n)}},e.prototype.formatPointValue=function(t,e){var i=t.value;return this.chartService.format.auto(e,i.from,i.to)},e.prototype.animationPoints=function(){for(var t=this.points,e=[],i=0;i<t.length;i++){var o=t[i];o&&(e.push((o.fromPoint||{}).marker),e.push((o.toPoint||{}).marker))}return e.concat(this._segments)},e}(co);j(cn.prototype,So,Po);var ln=cn,un=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.reflow=function(t){var e=this.options,i=this.value,o=this.owner.seriesValueAxis(e),r=[],n=[],s=[],a=o.getSlot(i.low,i.high),p=o.getSlot(i.open,i.open),h=o.getSlot(i.close,i.close);p.x1=h.x1=a.x1=t.x1,p.x2=h.x2=a.x2=t.x2;var c=a.center().x;r.push([p.x1,p.y1]),r.push([c,p.y1]),n.push([c,h.y1]),n.push([h.x2,h.y1]),s.push([c,a.y1]),s.push([c,a.y2]),this.lines=[r,n,s],this.box=a.clone().wrap(p.clone().wrap(h)),this.reflowNote()},e.prototype.createBody=function(){},e}(Zo),dn=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.pointType=function(){return un},e}($o),fn=function(t){function e(e,i,o){t.call(this),this.from=e,this.to=i,this.series=o}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.linePoints=function(){var t=this.from,e=this.from.box,i=this.to.box,o=[];if(t.isVertical){var r=t.aboveAxis?e.y1:e.y2;o.push([e.x1,r],[i.x2,r])}else{var n=t.aboveAxis?e.x2:e.x1;o.push([n,e.y1],[n,i.y2])}return o},e.prototype.createVisual=function(){t.prototype.createVisual.call(this);var e=this.series.line||{},i=A.drawing.Path.fromPoints(this.linePoints(),{stroke:{color:e.color,width:e.width,opacity:e.opacity,dashType:e.dashType}});C(i),this.visual.append(i)},e}(re);Bt(fn,{animation:{type:"fadeIn",delay:600}});var gn=fn,yn=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.render=function(){t.prototype.render.call(this),this.createSegments()},e.prototype.traverseDataPoints=function(t){for(var e=this.options.series,i=po(e),o=!this.options.invertAxes,r=0;r<e.length;r++)for(var n=e[r],s=0,a=0,p=0;p<i;p++){var h=Ni.current.bindPoint(n,p),c=h.valueFields.value,l=h.fields.summary,u=s,d=void 0;l?"total"===l.toLowerCase()?(h.valueFields.value=s,u=0,d=s):(h.valueFields.value=a,d=u-a,a=0):P(c)&&(a+=c,d=s+=c),t(h,{category:this.categoryAxis.categoryAt(p),categoryIx:p,series:n,seriesIx:r,total:s,runningTotal:a,from:u,to:d,isVertical:o})}},e.prototype.updateRange=function(e,i){t.prototype.updateRange.call(this,{value:i.to},i)},e.prototype.aboveAxis=function(t){return t.value>=0},e.prototype.plotRange=function(t){return[t.from,t.to]},e.prototype.createSegments=function(){for(var t=this.options.series,e=this.seriesPoints,i=this.segments=[],o=0;o<t.length;o++){var r=t[o],n=e[o];if(n)for(var s=void 0,a=0;a<n.length;a++){var p=n[a];if(p&&s){var h=new gn(s,p,r);i.push(h),this.append(h)}s=p}}},e}(Xo),vn=["area","verticalArea","rangeArea","verticalRangeArea"],mn=[$i,eo].concat(vn),xn=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.initFields=function(t){if(this.namedCategoryAxes={},this.namedValueAxes={},this.valueAxisRangeTracker=new Lo,t.length>0){this.invertAxes=ct(t[0].type,[Ji,"bullet",eo,"verticalArea","verticalRangeArea","rangeBar","horizontalWaterfall","verticalBoxPlot"]);for(var e=0;e<t.length;e++){var i=t[e].stack;if(i&&"100%"===i.type){this.stack100=!0;break}}}},e.prototype.render=function(t){void 0===t&&(t=this.panes),this.createCategoryAxes(t),this.aggregateCategories(t),this.createCategoryAxesLabels(t),this.createCharts(t),this.createValueAxes(t)},e.prototype.removeAxis=function(e){var i=e.options.name;t.prototype.removeAxis.call(this,e),e instanceof Qe?delete this.namedCategoryAxes[i]:(this.valueAxisRangeTracker.reset(i),delete this.namedValueAxes[i]),e===this.categoryAxis&&delete this.categoryAxis,e===this.valueAxis&&delete this.valueAxis},e.prototype.createCharts=function(t){for(var e=this.groupSeriesByPane(),i=0;i<t.length;i++){var o=t[i],r=e[o.options.name||"default"]||[];this.addToLegend(r);var n=this.filterVisibleSeries(r);if(n)for(var s=this.groupSeriesByCategoryAxis(n),a=0;a<s.length;a++)this.createChartGroup(s[a],o)}},e.prototype.createChartGroup=function(t,e){this.createAreaChart(Ir(t,["area","verticalArea"]),e),this.createRangeAreaChart(Ir(t,["rangeArea","verticalRangeArea"]),e),this.createBarChart(Ir(t,[Qi,Ji]),e),this.createRangeBarChart(Ir(t,["rangeColumn","rangeBar"]),e),this.createBulletChart(Ir(t,["bullet","verticalBullet"]),e),this.createCandlestickChart(Ir(t,"candlestick"),e),this.createBoxPlotChart(Ir(t,["boxPlot","verticalBoxPlot"]),e),this.createOHLCChart(Ir(t,"ohlc"),e),this.createWaterfallChart(Ir(t,["waterfall","horizontalWaterfall"]),e),this.createLineChart(Ir(t,[$i,eo]),e)},e.prototype.aggregateCategories=function(t){var e=this.srcSeries||this.series,i=[];this._currentPointsCache={},this._seriesPointsCache=this._seriesPointsCache||{};for(var o=0;o<e.length;o++){var r=e[o],n=this.seriesCategoryAxis(r),s=this.findPane(n.options.pane);r=(jr(n.options.type,h)||r.categoryField)&&ct(s,t)?this.aggregateSeries(r,n):this.filterSeries(r,n),i.push(r)}this._seriesPointsCache=this._currentPointsCache,this._currentPointsCache=null,this.srcSeries=e,this.series=i},e.prototype.filterSeries=function(t,e){var i=(t.data||{}).length;if(e._seriesMax=Math.max(e._seriesMax||0,i),!P(e.options.min)&&!P(e.options.max))return t;var o=e.currentRangeIndices(),r=ct(t.type,mn),n=j({},t);return n.data=(n.data||[]).slice(o.min,o.max+1),r&&Gr(n,o,i,(function(i){return{item:t.data[i],category:e.categoryAt(i,!0),categoryIx:i-o.min}}),(function(e){return xt(t.data[e])})),n},e.prototype.clearSeriesPointsCache=function(){this._seriesPointsCache={}},e.prototype.seriesSourcePoints=function(t,e){var i=t.index+";"+e.categoriesHash();if(this._seriesPointsCache[i])return this._currentPointsCache[i]=this._seriesPointsCache[i],this._seriesPointsCache[i];var o=e.options,r=o.srcCategories,n=jr(o.type,h),s=t.data,a=n?Br:Fi,p=[];n||e.mapCategories();for(var c=0;c<s.length;c++){var l=void 0;if(l=t.categoryField?a(t.categoryField,s[c],this.chartService.intl):r[c],xt(l)&&null!==l){var u=e.totalIndex(l);p[u]=p[u]||{items:[],category:l},p[u].items.push(c)}}return this._currentPointsCache[i]=p,p},e.prototype.aggregateSeries=function(t,e){if(!t.data.length)return t;for(var i=this.seriesSourcePoints(t,e),o=j({},t),r=new Yr(j({},t),Ni.current,Jr.current),n=o.data=[],s=e.options.dataItems||[],a=e.currentRangeIndices(),p=function(t){var o=t-a.min,n=i[t];if(n||(n=i[t]={}),n.categoryIx=o,!n.item){var s=e.categoryAt(t,!0);n.category=s,n.item=r.aggregatePoints(n.items,s)}return n},h=a.min;h<=a.max;h++){var c=p(h);n[c.categoryIx]=c.item,c.items&&c.items.length&&(s[c.categoryIx]=c.item)}return ct(o.type,mn)&&Gr(o,a,e.totalCount(),p,(function(t){return i[t]})),e.options.dataItems=s,o},e.prototype.appendChart=function(e,i){var o=e.options.series,r=this.seriesCategoryAxis(o[0]),n=r.options.categories,s=Math.max(0,po(o)-n.length);if(s>0)for(n=r.options.categories=r.options.categories.slice(0);s--;)n.push("");this.valueAxisRangeTracker.update(e.valueAxisRanges),t.prototype.appendChart.call(this,e,i)},e.prototype.seriesPaneName=function(t){var e=this.options,i=t.axis,o=st([].concat(e.valueAxis),(function(t){return t.name===i}))[0],r=((e.panes||[{}])[0]||{}).name||"default";return(o||{}).pane||r},e.prototype.seriesCategoryAxis=function(t){var e=t.categoryAxis,i=e?this.namedCategoryAxes[e]:this.categoryAxis;if(!i)throw new Error("Unable to locate category axis with name "+e);return i},e.prototype.stackableChartOptions=function(t,e){var i=t.stack;return{isStacked:i,isStacked100:i&&"100%"===i.type,clip:e.options.clip}},e.prototype.groupSeriesByCategoryAxis=function(t){for(var e=[],i={},o=0;o<t.length;o++){var r=t[o].categoryAxis||"$$default$$";i.hasOwnProperty(r)||(i[r]=!0,e.push(r))}for(var n=[],s=0;s<e.length;s++){var a=bn(t,e[s],s);0!==a.length&&n.push(a)}return n},e.prototype.createBarChart=function(t,e){if(0!==t.length){var i=t[0],o=new Xo(this,Object.assign({series:t,invertAxes:this.invertAxes,gap:i.gap,spacing:i.spacing},this.stackableChartOptions(i,e)));this.appendChart(o,e)}},e.prototype.createRangeBarChart=function(t,e){if(0!==t.length){var i=t[0],o=new en(this,{series:t,invertAxes:this.invertAxes,gap:i.gap,spacing:i.spacing});this.appendChart(o,e)}},e.prototype.createBulletChart=function(t,e){if(0!==t.length){var i=t[0],o=new vr(this,{series:t,invertAxes:this.invertAxes,gap:i.gap,spacing:i.spacing,clip:e.options.clip});this.appendChart(o,e)}},e.prototype.createLineChart=function(t,e){if(0!==t.length){var i=t[0],o=new Oo(this,Object.assign({invertAxes:this.invertAxes,series:t},this.stackableChartOptions(i,e)));this.appendChart(o,e)}},e.prototype.createAreaChart=function(t,e){if(0!==t.length){var i=t[0],o=new Bo(this,Object.assign({invertAxes:this.invertAxes,series:t},this.stackableChartOptions(i,e)));this.appendChart(o,e)}},e.prototype.createRangeAreaChart=function(t,e){if(0!==t.length){var i=new ln(this,{invertAxes:this.invertAxes,series:t,clip:e.options.clip});this.appendChart(i,e)}},e.prototype.createOHLCChart=function(t,e){if(0!==t.length){var i=t[0],o=new dn(this,{invertAxes:this.invertAxes,gap:i.gap,series:t,spacing:i.spacing,clip:e.options.clip});this.appendChart(o,e)}},e.prototype.createCandlestickChart=function(t,e){if(0!==t.length){var i=t[0],o=new $o(this,{invertAxes:this.invertAxes,gap:i.gap,series:t,spacing:i.spacing,clip:e.options.clip});this.appendChart(o,e)}},e.prototype.createBoxPlotChart=function(t,e){if(0!==t.length){var i=t[0],o=new or(this,{invertAxes:this.invertAxes,gap:i.gap,series:t,spacing:i.spacing,clip:e.options.clip});this.appendChart(o,e)}},e.prototype.createWaterfallChart=function(t,e){if(0!==t.length){var i=t[0],o=new yn(this,{series:t,invertAxes:this.invertAxes,gap:i.gap,spacing:i.spacing});this.appendChart(o,e)}},e.prototype.axisRequiresRounding=function(t,e){for(var i=Ir(this.series,io),o=0;o<this.series.length;o++){var r=this.series[o];if(ct(r.type,vn)){var n=r.line;n&&"step"===n.style&&i.push(r)}}for(var s=0;s<i.length;s++){var a=i[s].categoryAxis||"";if(a===t||!a&&0===e)return!0}},e.prototype.aggregatedAxis=function(t,e){for(var i=this.series,o=0;o<i.length;o++){var r=i[o].categoryAxis||"";if((r===t||!r&&0===e)&&i[o].categoryField)return!0}},e.prototype.createCategoryAxesLabels=function(){for(var t=this.axes,e=0;e<t.length;e++)t[e]instanceof Qe&&t[e].createLabels()},e.prototype.createCategoryAxes=function(t){for(var e=this.invertAxes,i=[].concat(this.options.categoryAxis),o=[],r=0;r<i.length;r++){var n=i[r];if(ct(this.findPane(n.pane),t)){var s=n.name,a=n.categories;void 0===a&&(a=[]),n=j({vertical:e,reverse:!e&&this.chartService.rtl,axisCrossingValue:e?u:0},n),xt(n.justified)||(n.justified=this.isJustified()),this.axisRequiresRounding(s,r)&&(n.justified=!1);var p=void 0;if(p=Lr(n,a[0])?new ai(n,this.chartService):new Qe(n,this.chartService),i[r].categories=p.options.srcCategories,s){if(this.namedCategoryAxes[s])throw new Error("Category axis with name "+s+" is already defined");this.namedCategoryAxes[s]=p}p.axisIndex=r,o.push(p),this.appendAxis(p)}}var h=this.categoryAxis||o[0];this.categoryAxis=h,e?this.axisY=h:this.axisX=h},e.prototype.isJustified=function(){for(var t=this.series,e=0;e<t.length;e++){if(!ct(t[e].type,vn))return!1}return!0},e.prototype.createValueAxes=function(t){var e=this.valueAxisRangeTracker,i=e.query(),o=[].concat(this.options.valueAxis),r=this.invertAxes,n={vertical:!r,reverse:r&&this.chartService.rtl},s=[];this.stack100&&(n.roundToMajorUnit=!1,n.labels={format:"P0"});for(var a=0;a<o.length;a++){var p=o[a];if(ct(this.findPane(p.pane),t)){var h=p.name,c=jr(p.type,"log")?{min:.1,max:1}:{min:0,max:1},l=e.query(h)||i||c;0===a&&l&&i&&(l.min=Math.min(l.min,i.min),l.max=Math.max(l.max,i.max));var u=new(jr(p.type,"log")?_i:fi)(l.min,l.max,j({},n,p),this.chartService);if(h){if(this.namedValueAxes[h])throw new Error("Value axis with name "+h+" is already defined");this.namedValueAxes[h]=u}u.axisIndex=a,s.push(u),this.appendAxis(u)}}var d=this.valueAxis||s[0];this.valueAxis=d,r?this.axisX=d:this.axisY=d},e.prototype._dispatchEvent=function(t,e,i){var o=t._eventCoordinates(e),r=new Yt(o.x,o.y),n=this.pointPane(r),s=[],a=[];if(n){for(var p=n.axes,h=0;h<p.length;h++){var c=p[h];c.getValue?Or(a,c.getValue(r)):Or(s,c.getCategory(r))}0===s.length&&Or(s,this.categoryAxis.getCategory(r)),s.length>0&&a.length>0&&t.trigger(i,{element:St(e),originalEvent:e,category:zr(s),value:zr(a)})}},e.prototype.pointPane=function(t){for(var e=this.panes,i=0;i<e.length;i++){var o=e[i];if(o.contentBox.containsPoint(t))return o}},e.prototype.updateAxisOptions=function(t,e){_n(this.options,t,e),_n(this.originalOptions,t,e)},e}(qr);function _n(t,e,i){j([].concat(e instanceof Qe?t.categoryAxis:t.valueAxis)[e.axisIndex],i)}function bn(t,e,i){return st(t,(function(t){return 0===i&&!t.categoryAxis||t.categoryAxis===e}))}Bt(xn,{categoryAxis:{},valueAxis:{}}),j(xn.prototype,Kr);var wn=xn;function Sn(){this._defaultPrevented=!0}var An=function(t){function e(){t.call(this),this._points=[]}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.destroy=function(){this._points=[]},e.prototype.show=function(t,e){var i=[].concat(t);this.hide();for(var o=0;o<i.length;o++){var r=i[o];r&&r.toggleHighlight&&r.hasHighlight()&&(this.togglePointHighlight(r,!0,e),this._points.push(r))}},e.prototype.togglePointHighlight=function(t,e,i){var o=(t.options.highlight||{}).toggle;if(o){var r={category:t.category,series:t.series,dataItem:t.dataItem,value:t.value,stackValue:t.stackValue,preventDefault:Sn,visual:t.highlightVisual(),show:e};o(r),r._defaultPrevented||t.toggleHighlight(e,i)}else t.toggleHighlight(e,i)},e.prototype.hide=function(){for(var t=this._points;t.length;)this.togglePointHighlight(t.pop(),!1)},e.prototype.isHighlighted=function(t){for(var e=this._points,i=0;i<e.length;i++){if(t===e[i])return!0}return!1},e}(A.Class);function Cn(t,e){var i=(e||"").toLowerCase(),o=t.event;return"none"===i&&!(o.ctrlKey||o.shiftKey||o.altKey)||o[i+"Key"]}function kn(t){for(var e={},i=0;i<t.length;i++){var o=t[i];o.axis.options.name&&(e[o.axis.options.name]={min:o.range.min,max:o.range.max})}return e}var Pn=function(t){function e(e,i){t.call(this),this.plotArea=e,this.options=j({},this.options,i)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.start=function(t){return this._active=Cn(t,this.options.key),this._active},e.prototype.move=function(t){if(this._active){var e=this.axisRanges=this._panAxes(t,m).concat(this._panAxes(t,x));if(e.length)return this.axisRanges=e,kn(e)}},e.prototype.end=function(){var t=this._active;return this._active=!1,t},e.prototype.pan=function(){var t=this.plotArea,e=this.axisRanges;if(e.length){for(var i=0;i<e.length;i++){var o=e[i];t.updateAxisOptions(o.axis,o.range)}t.redraw(t.panes)}},e.prototype.destroy=function(){delete this.plotArea},e.prototype._panAxes=function(t,e){var i=this.plotArea,o=-t[e].delta,r=(this.options.lock||"").toLowerCase(),n=[];if(0!==o&&(r||"").toLowerCase()!==e)for(var s=i.axes,a=0;a<s.length;a++){var p=s[a];if(e===m&&!p.options.vertical||e===x&&p.options.vertical){var h=p.pan(o);h&&(h.limitRange=!0,n.push({axis:p,range:h}))}}return n},e}(A.Class);Pn.prototype.options={key:"none",lock:"none"};var Mn=Pn,On=function(t){function e(e,i){t.call(this),this.chart=e,this.options=j({},this.options,i),this.createElement()}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.createElement=function(){var t=this._marquee=document.createElement("div");t.className="k-marquee";var e=document.createElement("div");e.className="k-marquee-color",t.appendChild(e)},e.prototype.removeElement=function(){this._marquee.parentNode&&this._marquee.parentNode.removeChild(this._marquee)},e.prototype.setStyles=function(t){V(this._marquee,t)},e.prototype.start=function(t){if(Cn(t,this.options.key)){var e=this.chart,i=e._eventCoordinates(t),o=this._zoomPane=e._plotArea.paneByPoint(i),r=o?o.chartsBox().clone():null;if(o&&r){var n=this._elementOffset();return r.translate(n.left,n.top),this._zoomPaneClipBox=r,document.body.appendChild(this._marquee),this.setStyles({left:t.pageX+1,top:t.pageY+1,width:0,height:0}),!0}}return!1},e.prototype._elementOffset=function(){var t=this.chart.element,e=V(t,["paddingLeft","paddingTop"]),i=e.paddingLeft,o=e.paddingTop,r=bt(t);return{left:i+r.left,top:o+r.top}},e.prototype.move=function(t){this._zoomPane&&this.setStyles(this._selectionPosition(t))},e.prototype.end=function(t){if(this._zoomPane){var e=this._elementOffset(),i=this._selectionPosition(t);i.left-=e.left,i.top-=e.top;var o={x:i.left,y:i.top},r={x:i.left+i.width,y:i.top+i.height};return this._updateAxisRanges(o,r),this.removeElement(),delete this._zoomPane,kn(this.axisRanges)}},e.prototype.zoom=function(){var t=this.axisRanges;if(t&&t.length){for(var e=this.chart._plotArea,i=0;i<t.length;i++){var o=t[i];e.updateAxisOptions(o.axis,o.range)}e.redraw(e.panes)}},e.prototype.destroy=function(){this.removeElement(),delete this._marquee,delete this.chart},e.prototype._updateAxisRanges=function(t,e){for(var i=(this.options.lock||"").toLowerCase(),o=[],r=this._zoomPane.axes,n=0;n<r.length;n++){var s=r[n],a=s.options.vertical;if((i!==m||a)&&(i!==x||!a)&&xt(s.axisIndex)){var p=s.pointsRange(t,e);p&&o.push({axis:s,range:p})}}this.axisRanges=o},e.prototype._selectionPosition=function(t){var e=this._zoomPaneClipBox,i={x:t.x.startLocation,y:t.y.startLocation},o=t.x.location,r=t.y.location,n=(this.options.lock||"").toLowerCase(),s=Math.min(i.x,o),a=Math.min(i.y,r),p=Math.abs(i.x-o),h=Math.abs(i.y-r);return n===m&&(s=e.x1,p=e.width()),n===x&&(a=e.y1,h=e.height()),o>e.x2&&(p=e.x2-i.x),o<e.x1&&(p=i.x-e.x1),r>e.y2&&(h=e.y2-i.y),r<e.y1&&(h=i.y-e.y1),{left:Math.max(s,e.x1),top:Math.max(a,e.y1),width:p,height:h}},e}(A.Class);On.prototype.options={key:"shift",lock:"none"};var Tn=On,Rn=function(t){function e(e,i){t.call(this),this.chart=e,this.options=j({},this.options,i)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.updateRanges=function(t){for(var e=(this.options.lock||"").toLowerCase(),i=[],o=this.chart._plotArea.axes,r=0;r<o.length;r++){var n=o[r],s=n.options.vertical;if((e!==m||s)&&(e!==x||!s)&&n.zoomRange){var a=n.zoomRange(-t);a&&i.push({axis:n,range:a})}}return this.axisRanges=i,kn(i)},e.prototype.zoom=function(){var t=this.axisRanges,e=this.chart._plotArea;if(t&&t.length&&e.updateAxisOptions){for(var i=0;i<t.length;i++){var o=t[i];e.updateAxisOptions(o.axis,o.range)}e.redraw(e.panes)}},e.prototype.destroy=function(){delete this.chart},e}(A.Class),jn=function(t){function e(e,i){t.call(this,e),this.chartService=i}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.render=function(){var t=this.children,e=this.options,i=e.vertical;this.visual=new A.drawing.Layout(null,{spacing:i?0:e.spacing,lineSpacing:i?e.spacing:0,orientation:i?"vertical":"horizontal",reverse:e.rtl,alignItems:i?"start":"center"});for(var o=0;o<t.length;o++){var r=t[o];r.reflow(new Jt),r.renderVisual()}},e.prototype.reflow=function(t){this.visual.rect(t.toRect()),this.visual.reflow();var e=this.visual.clippedBBox();this.box=e?me(e):new Jt},e.prototype.renderVisual=function(){this.addVisual()},e.prototype.createVisual=function(){},e}(re),In=function(t){function e(e){t.call(this,e),this.createContainer(),e.rtl?(this.createLabel(),this.createMarker()):(this.createMarker(),this.createLabel())}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.createContainer=function(){this.container=new fe({vertical:!1,wrap:!1,align:a,spacing:this.options.spacing}),this.append(this.container)},e.prototype.createMarker=function(){this.container.append(new pe(this.markerOptions()))},e.prototype.markerOptions=function(){var t=this.options,e=t.markerColor;return j({},t.markers,{background:e,border:{color:e}})},e.prototype.createLabel=function(){var t=this.options,e=j({},t.labels);this.container.append(new _e(t.text,e))},e.prototype.renderComplete=function(){t.prototype.renderComplete.call(this);var e=this.options.cursor||{},i=this._itemOverlay=A.drawing.Path.fromRect(this.container.box.toRect(),{fill:{color:v,opacity:0},stroke:null,cursor:e.style||e});this.appendVisual(i)},e.prototype.click=function(t,e){var i=this.eventArgs(e);!t.trigger("legendItemClick",i)&&e&&"contextmenu"===e.type&&e.preventDefault()},e.prototype.over=function(t,e){var i=this.eventArgs(e);return t.trigger("legendItemHover",i)||t._legendItemHover(i.seriesIndex,i.pointIndex),!0},e.prototype.out=function(t,e){t._unsetActivePoint(),t.trigger("legendItemLeave",this.eventArgs(e))},e.prototype.eventArgs=function(t){var e=this.options;return{element:St(t),text:e.text,series:e.series,seriesIndex:e.series.index,pointIndex:e.pointIndex}},e.prototype.renderVisual=function(){var e=this,i=this.options,o=i.visual;o?(this.visual=o({active:i.active,series:i.series,sender:this.getSender(),pointIndex:i.pointIndex,options:{markers:this.markerOptions(),labels:i.labels},createVisual:function(){e.createVisual(),e.renderChildren(),e.renderComplete();var t=e.visual;return delete e.visual,t}}),this.addVisual()):t.prototype.renderVisual.call(this)},e}(se),Bn=function(t){function e(e,i){void 0===i&&(i={}),t.call(this,e),this.chartService=i,ct(this.options.position,[g,f,s,l,"custom"])||(this.options.position=f),this.createContainers(),this.createLegendTitle(e.title),this.createItems()}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.createContainers=function(){var t=this.options,e=t.position,i=t.align,o=e,r=a;"custom"===e?o=l:ct(e,[g,s])?(o="start"===i?l:"end"===i?f:a,r=e):i&&("start"===i?r=g:"end"===i&&(r=s)),this.container=new se({margin:t.margin,padding:t.padding,background:t.background,border:t.border,vAlign:r,align:o,zIndex:t.zIndex,shrinkToFit:!0}),this.hasTitle()?this.itemsContainer=new se({vAlign:r,align:o,zIndex:t.zIndex,shrinkToFit:!0}):this.itemsContainer=this.container,this.append(this.container)},e.prototype.createItems=function(){var t=this.getService(),e=this.options,i=this.isVertical(),o=new jn({vertical:i,spacing:e.spacing,rtl:t.rtl},t),r=e.items;e.reverse&&(r=r.slice(0).reverse());for(var n=r.length,s=0;s<n;s++){var a=r[s];o.append(new In(j({},{markers:e.markers,labels:e.labels,rtl:t.rtl},e.item,a)))}o.render(),this.itemsContainer.append(o)},e.prototype.isVertical=function(){var t=this.options,e=t.orientation,i=t.position;return"custom"===i&&"horizontal"!==e||(xt(e)?"horizontal"!==e:ct(i,[l,f]))},e.prototype.hasItems=function(){return this.container.children[0].children.length>0},e.prototype.reflow=function(t){var e=this.options,i=t.clone();this.hasItems()?("custom"===e.position?(this.containerCustomReflow(i),this.box=i):this.containerReflow(i),this.hasTitle()&&this.title.reflow(new Jt(this.container.box.x1,this.title.box.y1,this.container.box.x2,this.title.box.y2))):this.box=i},e.prototype.containerReflow=function(t){var e=this.options,i=this.container,o=e.position,r=e.width,n=e.height,a=o===g||o===s?m:x,p=this.isVertical(),h=t.clone(),c=t.clone();o!==l&&o!==f||(c.y1=h.y1=0),p&&n?(c.y2=c.y1+n,c.align(h,x,i.options.vAlign)):!p&&r&&(c.x2=c.x1+r,c.align(h,m,i.options.align)),i.reflow(c);var u=(c=i.box).clone();(e.offsetX||e.offsetY)&&(c.translate(e.offsetX,e.offsetY),i.reflow(c)),u[a+1]=t[a+1],u[a+2]=t[a+2],this.box=u},e.prototype.containerCustomReflow=function(t){var e=this.options,i=this.container,o=e.offsetX,r=e.offsetY,n=e.width,s=e.height,a=this.isVertical(),p=t.clone();a&&s?p.y2=p.y1+s:!a&&n&&(p.x2=p.x1+n),i.reflow(p),p=i.box,i.reflow(new Jt(o,r,o+p.width(),r+p.height()))},e.prototype.renderVisual=function(){this.hasItems()&&t.prototype.renderVisual.call(this)},e.prototype.createLegendTitle=function(t){var e=j({},{color:n,position:g,align:a},t),i=e.text;if(t&&!1!==t.visible){if(xt(e)&&e.visible){var o=it(e);o?i=o({text:i}):e.format&&(i=this.chartService.format.auto(e.format,i))}this.title=new _e(i,e),this.createTitleLayout(),this.appendTitleLayoutContent()}},e.prototype.createTitleLayout=function(){this.layout=new fe({vertical:!0,wrap:!1}),this.container.append(this.layout)},e.prototype.hasTitle=function(){return Boolean(this.options.title&&!1!==this.options.title.visible)},e.prototype.appendTitleLayoutContent=function(){this.options.title.position===s?(this.layout.append(this.itemsContainer),this.layout.append(this.title)):(this.layout.append(this.title),this.layout.append(this.itemsContainer))},e}(re);Bt(Bn,{position:f,items:[],offsetX:0,offsetY:0,margin:E(5),padding:E(5),border:{color:n,width:0},item:{cursor:"pointer",spacing:6},spacing:6,background:"",zIndex:1,markers:{border:{width:0},width:15,height:3,type:"rect",align:l,vAlign:a}});var Ln=Bn,zn=function(t){function e(){t.call(this),this._registry=[]}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.register=function(t,e){this._registry.push({type:t,seriesTypes:e})},e.prototype.create=function(t,e,i){for(var o,r=this._registry,n=r[0],s=0;s<r.length;s++){var a=r[s];if((o=Ir(t,a.seriesTypes)).length>0){n=a;break}}return new n.type(o,e,i)},e}(A.Class);zn.current=new zn;var Vn=zn;function En(t){var e=document.createElement("div");return t&&(e.className=t),e}function Dn(t){for(var e=t;e&&!at(e,"k-handle");)e=e.parentNode;return e}var Gn=function(t){function e(e,i,o,r){t.call(this);var n=e.element;this.options=j({},this.options,o),this.chart=e,this.observer=r,this.chartElement=n,this.categoryAxis=i,this._dateAxis=this.categoryAxis instanceof ai,this.initOptions(),this.visible=this.options.visible&&n.offsetHeight,this.visible&&(this.createElements(),this.set(this._index(this.options.from),this._index(this.options.to)),this.bindEvents())}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.onPane=function(t){return this.categoryAxis.pane===t},e.prototype.createElements=function(){var t=this.options,e=this.wrapper=En("k-selector");V(e,{top:t.offset.top,left:t.offset.left,width:t.width,height:t.height,direction:"ltr"});var i=this.selection=En("k-selection");this.leftMask=En("k-mask"),this.rightMask=En("k-mask"),e.appendChild(this.leftMask),e.appendChild(this.rightMask),e.appendChild(i),i.appendChild(En("k-selection-bg"));var o=this.leftHandle=En("k-handle k-left-handle"),r=this.rightHandle=En("k-handle k-right-handle");o.appendChild(En()),r.appendChild(En()),i.appendChild(o),i.appendChild(r),this.chartElement.appendChild(e);var n=V(i,["borderLeftWidth","borderRightWidth","height"]),s=V(o,"height").height,a=V(r,"height").height;t.selection={border:{left:n.borderLeftWidth,right:n.borderRightWidth}},V(o,{top:(n.height-s)/2}),V(r,{top:(n.height-a)/2}),e.style.cssText=e.style.cssText},e.prototype.bindEvents=function(){var t;!1!==this.options.mousewheel&&(this._mousewheelHandler=this._mousewheel.bind(this),mt(this.wrapper,((t={})[oo]=this._mousewheelHandler,t))),this._domEvents=Q.create(this.wrapper,{stopPropagation:!0,start:this._start.bind(this),move:this._move.bind(this),end:this._end.bind(this),tap:this._tap.bind(this),press:this._press.bind(this),gesturestart:this._gesturestart.bind(this),gesturechange:this._gesturechange.bind(this),gestureend:this._gestureend.bind(this)})},e.prototype.initOptions=function(){var t=this.options,e=this.categoryAxis.pane.chartsBox(),i=this.chart.chartService.intl;this._dateAxis&&j(t,{min:Xe(i,t.min),max:Xe(i,t.max),from:Xe(i,t.from),to:Xe(i,t.to)});var o=V(this.chartElement,["paddingLeft","paddingTop"]),r=o.paddingLeft,n=o.paddingTop;this.options=j({},{width:e.width(),height:e.height()+.1,padding:{left:r,top:n},offset:{left:e.x1+r,top:e.y1+n},from:t.min,to:t.max},t)},e.prototype.destroy=function(){var t;this._domEvents&&(this._domEvents.destroy(),delete this._domEvents),clearTimeout(this._mwTimeout),this._state=null,this.wrapper&&(this._mousewheelHandler&&(Tt(this.wrapper,((t={})[oo]=this._mousewheelHandler,t)),this._mousewheelHandler=null),this.chartElement.removeChild(this.wrapper),this.wrapper=null)},e.prototype._rangeEventArgs=function(t){return{axis:this.categoryAxis.options,from:this._value(t.from),to:this._value(t.to)}},e.prototype._start=function(t){var e=this.options,i=St(t);if(!this._state&&i){this.chart._unsetActivePoint(),this._state={moveTarget:Dn(i)||i,startLocation:t.x?t.x.location:0,range:{from:this._index(e.from),to:this._index(e.to)}};var o=this._rangeEventArgs({from:this._index(e.from),to:this._index(e.to)});this.trigger("selectStart",o)&&(this._state=null)}},e.prototype._press=function(t){var e;(e=this._state?this._state.moveTarget:Dn(St(t)))&&b(e,"k-handle-active")},e.prototype._move=function(t){if(this._state){var e=this._state,i=this.options,o=this.categoryAxis,r=e.range,n=e.moveTarget,s=o.options.reverse,a=this._index(i.from),p=this._index(i.to),h=this._index(i.min),c=this._index(i.max),l=e.startLocation-t.x.location,u=r.from,d=r.to,f=r.to-r.from,g=V(this.wrapper,"width").width/(o.categoriesCount()-1),y=Math.round(l/g)*(s?-1:1);if(n){var v=at(n,"k-left-handle"),m=at(n,"k-right-handle");at(n,"k-selection k-selection-bg")?(r.from=Math.min(Math.max(h,a-y),c-f),r.to=Math.min(r.from+f,c)):v&&!s||m&&s?(r.from=Math.min(Math.max(h,a-y),c-1),r.to=Math.max(r.from+1,r.to)):(v&&s||m&&!s)&&(r.to=Math.min(Math.max(h+1,p-y),c),r.from=Math.min(r.to-1,r.from)),r.from===u&&r.to===d||(this.move(r.from,r.to),this.trigger("select",this._rangeEventArgs(r)))}}},e.prototype._end=function(){if(this._state){var t=this._state.moveTarget;t&&S(t,"k-handle-active");var e=this._state.range;this.set(e.from,e.to),this.trigger("selectEnd",this._rangeEventArgs(e)),delete this._state}},e.prototype._tap=function(t){var e=this.options,i=this.categoryAxis,o=this.chart._eventCoordinates(t),r=i.pointCategoryIndex(new Yt(o.x,i.box.y1)),n=this._index(e.from),s=this._index(e.to),a=this._index(e.min),p=this._index(e.max),h=s-n,c=n+h/2,l={},u=3===t.event.which,d=Math.round(c-r);this._state||u||(this.chart._unsetActivePoint(),i.options.justified||d--,l.from=Math.min(Math.max(a,n-d),p-h),l.to=Math.min(l.from+h,p),this._start(t),this._state&&(this._state.range=l,this.trigger("select",this._rangeEventArgs(l)),this._end()))},e.prototype._mousewheel=function(t){var e=this,i=gt(t);if(this._start({target:this.selection}),this._state){var o=this._state.range;t.preventDefault(),t.stopPropagation(),Math.abs(i)>1&&(i*=3),this.options.mousewheel.reverse&&(i*=-1),this.expand(i)&&this.trigger("select",{axis:this.categoryAxis.options,delta:i,originalEvent:t,from:this._value(o.from),to:this._value(o.to)}),this._mwTimeout&&clearTimeout(this._mwTimeout),this._mwTimeout=setTimeout((function(){e._end()}),150)}},e.prototype._gesturestart=function(t){var e=this.options;this._state={range:{from:this._index(e.from),to:this._index(e.to)}};var i=this._rangeEventArgs(this._state.range);this.trigger("selectStart",i)?this._state=null:t.preventDefault()},e.prototype._gestureend=function(){this._state&&(this.trigger("selectEnd",this._rangeEventArgs(this._state.range)),delete this._state)},e.prototype._gesturechange=function(t){var e=this.chart,i=this._state,o=this.options,r=this.categoryAxis,n=i.range,s=e._toModelCoordinates(t.touches[0].x.location).x,a=e._toModelCoordinates(t.touches[1].x.location).x,p=Math.min(s,a),h=Math.max(s,a);t.preventDefault(),n.from=r.pointCategoryIndex(new Yt(p))||o.min,n.to=r.pointCategoryIndex(new Yt(h))||o.max,this.move(n.from,n.to),this.trigger("select",this._rangeEventArgs(n))},e.prototype._index=function(t){var e=t;return t instanceof Date&&(e=this.categoryAxis.categoryIndex(t)),e},e.prototype._value=function(t){var e=t;return this._dateAxis&&(e=this.categoryAxis.categoryAt(t))>this.options.max&&(e=this.options.max),e},e.prototype._slot=function(t){var e=this.categoryAxis,i=this._index(t);return e.getSlot(i,i,!0)},e.prototype.move=function(t,e){var i=this.options,o=this.categoryAxis.options.reverse,r=i.offset,n=i.padding,s=i.selection.border,a=o?e:t,p=o?t:e,h="x"+(o?2:1),c=this._slot(a),l=Ot(c[h]-r.left+n.left);V(this.leftMask,{width:l}),V(this.selection,{left:l}),c=this._slot(p);var u=Ot(i.width-(c[h]-r.left+n.left));V(this.rightMask,{width:u});var d=i.width-u;d!==i.width&&(d+=s.right),V(this.rightMask,{left:d}),V(this.selection,{width:Math.max(i.width-(l+u)-s.right,0)})},e.prototype.set=function(t,e){var i=this.options,o=this._index(i.min),r=this._index(i.max),n=kt(this._index(t),o,r),s=kt(this._index(e),n+1,r);i.visible&&this.move(n,s),i.from=this._value(n),i.to=this._value(s)},e.prototype.expand=function(t){var e=this.options,i=this._index(e.min),o=this._index(e.max),r=e.mousewheel.zoom,n=this._index(e.from),s=this._index(e.to),a={from:n,to:s},p=j({},a);if(this._state&&(a=this._state.range),r!==f&&(a.from=kt(kt(n-t,0,s-1),i,o)),r!==l&&(a.to=kt(kt(s+t,a.from+1,o),i,o)),a.from!==p.from||a.to!==p.to)return this.set(a.from,a.to),!0},e.prototype.trigger=function(t,e){return(this.observer||this.chart).trigger(t,e)},e}(A.Class);Bt(Gn,{visible:!0,mousewheel:{zoom:"both"},min:d,max:u});var Un=Gn,Fn=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.show=function(e){if(e&&e.tooltipAnchor&&(!this._current||this._current!==e)){var i=j({},this.options,e.options.tooltip),o=e.tooltipAnchor();o?(this._current=e,t.prototype.show.call(this,{point:e,anchor:o},i,e)):this.hide()}},e.prototype.hide=function(){delete this._current,t.prototype.hide.call(this)},e}(xr),Hn=function(t){function e(e,i){t.call(this,e.chartService,i),this.plotArea=e,this.formatService=e.chartService.format}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.showAt=function(t,e){var i=st(t,(function(t){var e=t.series.tooltip;return!(e&&!1===e.visible)}));if(i.length>0){var o=i[0],r=this.plotArea.categoryAxis.getSlot(o.categoryIx),n=e?this._slotAnchor(e,r):this._defaultAnchor(o,r);this.show({anchor:n,shared:!0,points:t,category:o.category,categoryText:this.formatService.auto(this.options.categoryFormat,o.category),series:this.plotArea.series},this.options)}},e.prototype._slotAnchor=function(t,e){return this.plotArea.categoryAxis.options.vertical||(t.x=e.center().x),{point:t,align:{horizontal:"left",vertical:"center"}}},e.prototype._defaultAnchor=function(t,e){var i=t.owner.pane.chartsBox(),o=this.plotArea.categoryAxis.options.vertical,r=i.center(),n=e.center();return{point:o?new Yt(r.x,n.y):new Yt(n.x,r.y),align:{horizontal:"center",vertical:"center"}}},e}(xr);Bt(Hn,{categoryFormat:"{0:d}"});var Nn=Hn,Wn=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.setup=function(){var t=this.element,e=this.options;if(t.bbox()){this.origin=e.origin;var i=e.vertical?x:m,o=this.fromScale=new A.geometry.Point(1,1);o[i]=Yi,t.transform(A.geometry.transform().scale(o.x,o.y))}else this.abort()},e.prototype.step=function(t){var e=lt(this.fromScale.x,1,t),i=lt(this.fromScale.y,1,t);this.element.transform(A.geometry.transform().scale(e,i,this.origin))},e.prototype.abort=function(){t.prototype.abort.call(this),this.element.transform(null)},e}(A.drawing.Animation);Bt(Wn,{duration:600}),A.drawing.AnimationFactory.current.register(Ji,Wn);var qn=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.setup=function(){var t=this.center=this.element.bbox().center();this.element.transform(A.geometry.transform().scale(Yi,Yi,t))},e.prototype.step=function(t){this.element.transform(A.geometry.transform().scale(t,t,this.center))},e}(A.drawing.Animation);Bt(qn,{easing:"easeOutElastic"}),A.drawing.AnimationFactory.current.register("bubble",qn);var Kn=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.setup=function(){this.fadeTo=this.element.opacity(),this.element.opacity(0)},e.prototype.step=function(t){this.element.opacity(t*this.fadeTo)},e}(A.drawing.Animation);Bt(Kn,{duration:200,easing:"linear"}),A.drawing.AnimationFactory.current.register("fadeIn",Kn);var Xn=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.setup=function(){this.element.transform(A.geometry.transform().scale(Yi,Yi,this.options.center))},e.prototype.step=function(t){this.element.transform(A.geometry.transform().scale(t,t,this.options.center))},e}(A.drawing.Animation);Bt(Xn,{easing:"easeOutElastic",duration:600}),A.drawing.AnimationFactory.current.register(to,Xn);var Yn=Xn,Zn=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.render=function(){t.prototype.render.call(this),this.renderSegments()},e.prototype.createSegment=function(t,e,i){return new("smooth"===e.style?wo:vo)(t,e,i)},e.prototype.animationPoints=function(){return t.prototype.animationPoints.call(this).concat(this._segments)},e.prototype.createMissingValue=function(t,e){if(e===Zi){var i={x:t.x,y:t.y};return nr(i.x)||(i.x=0),nr(i.y)||(i.y=0),i}},e}(ar);j(Zn.prototype,So);var Jn=Zn,Qn=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.initFields=function(){this.namedXAxes={},this.namedYAxes={},this.xAxisRangeTracker=new Lo,this.yAxisRangeTracker=new Lo},e.prototype.render=function(t){void 0===t&&(t=this.panes);for(var e=this.groupSeriesByPane(),i=0;i<t.length;i++){var o=t[i],r=e[o.options.name||"default"]||[];this.addToLegend(r);var n=this.filterVisibleSeries(r);n&&(this.createScatterChart(Ir(n,"scatter"),o),this.createScatterLineChart(Ir(n,"scatterLine"),o),this.createBubbleChart(Ir(n,"bubble"),o))}this.createAxes(t)},e.prototype.appendChart=function(e,i){this.xAxisRangeTracker.update(e.xAxisRanges),this.yAxisRangeTracker.update(e.yAxisRanges),t.prototype.appendChart.call(this,e,i)},e.prototype.removeAxis=function(e){var i=e.options.name;t.prototype.removeAxis.call(this,e),e.options.vertical?(this.yAxisRangeTracker.reset(i),delete this.namedYAxes[i]):(this.xAxisRangeTracker.reset(i),delete this.namedXAxes[i]),e===this.axisX&&delete this.axisX,e===this.axisY&&delete this.axisY},e.prototype.seriesPaneName=function(t){var e=this.options,i=t.xAxis,o=st([].concat(e.xAxis),(function(t){return t.name===i}))[0],r=t.yAxis,n=st([].concat(e.yAxis),(function(t){return t.name===r}))[0],s=(e.panes||[{}])[0].name||"default";return(o||{}).pane||(n||{}).pane||s},e.prototype.createScatterChart=function(t,e){t.length>0&&this.appendChart(new ar(this,{series:t,clip:e.options.clip}),e)},e.prototype.createScatterLineChart=function(t,e){t.length>0&&this.appendChart(new Jn(this,{series:t,clip:e.options.clip}),e)},e.prototype.createBubbleChart=function(t,e){t.length>0&&this.appendChart(new lr(this,{series:t,clip:e.options.clip}),e)},e.prototype.createXYAxis=function(t,e,i){for(var o,r=t.name,n=e?this.namedYAxes:this.namedXAxes,s=e?this.yAxisRangeTracker:this.xAxisRangeTracker,a=j({reverse:!e&&this.chartService.rtl},t,{vertical:e}),p=jr(a.type,"log"),c=s.query(),l=p?{min:.1,max:1}:{min:0,max:1},u=s.query(r)||c||l,d=[a.min,a.max],f=this.series,g=0;g<f.length;g++){var y=f[g],v=y[e?"yAxis":"xAxis"];if(v===a.name||0===i&&!v){var m=Ni.current.bindPoint(y,0).valueFields;d.push(m[e?"y":"x"]);break}}0===i&&c&&(u.min=Math.min(u.min,c.min),u.max=Math.max(u.max,c.max));for(var x=0;x<d.length;x++)if(d[x]instanceof Date){o=!0;break}var _=new(jr(a.type,h)||!a.type&&o?yi:p?_i:fi)(u.min,u.max,a,this.chartService);if(_.axisIndex=i,r){if(n[r])throw new Error((e?"Y":"X")+" axis with name "+r+" is already defined");n[r]=_}return this.appendAxis(_),_},e.prototype.createAxes=function(t){for(var e=this.options,i=[].concat(e.xAxis),o=[],r=[].concat(e.yAxis),n=[],s=0;s<i.length;s++){ct(this.findPane(i[s].pane),t)&&o.push(this.createXYAxis(i[s],!1,s))}for(var a=0;a<r.length;a++){ct(this.findPane(r[a].pane),t)&&n.push(this.createXYAxis(r[a],!0,a))}this.axisX=this.axisX||o[0],this.axisY=this.axisY||n[0]},e.prototype._dispatchEvent=function(t,e,i){for(var o=t._eventCoordinates(e),r=new Yt(o.x,o.y),n=this.axes,s=n.length,a=[],p=[],h=0;h<s;h++){var c=n[h],l=c.options.vertical?p:a,u=c.getValue(r);null!==u&&l.push(u)}a.length>0&&p.length>0&&t.trigger(i,{element:St(e),originalEvent:e,x:zr(a),y:zr(p)})},e.prototype.updateAxisOptions=function(t,e){var i=t.options.vertical,o=this.groupAxes(this.panes),r=(i?o.y:o.x).indexOf(t);$n(this.options,r,i,e),$n(this.originalOptions,r,i,e)},e}(qr);function $n(t,e,i,o){j([].concat(i?t.yAxis:t.xAxis)[e],o)}Bt(Qn,{xAxis:{},yAxis:{}}),j(Qn.prototype,Kr);var ts=Qn,es=function(t){function e(e,i,o){t.call(this,o),this.value=e,this.sector=i}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.render=function(){var t=this.options.labels,e=this.owner.chartService,i=this.value;if(!this._rendered&&!1!==this.visible){this._rendered=!0;var o=it(t),r=this.pointData();if(o?i=o(r):t.format&&(i=e.format.auto(t.format,i)),t.visible&&(i||0===i)){if(t.position===a||"insideEnd"===t.position)t.color||(t.color=Ut(this.options.color)),t.background||(t.background=this.options.color);else{var n=e.theme.seriesDefaults.labels;t.color=t.color||n.color,t.background=t.background||n.background}this.label=new _e(i,j({},t,{align:a,vAlign:"",animation:{type:"fadeIn",delay:this.animationDelay}}),r),this.append(this.label)}}},e.prototype.reflow=function(t){this.render(),this.box=t,this.reflowLabel()},e.prototype.reflowLabel=function(){var t=this.options.labels,e=this.label,i=this.sector.clone(),o=t.distance,r=i.middle();if(e){var n,s=e.box.height(),p=e.box.width();if(t.position===a)i.radius=Math.abs((i.radius-s)/2)+s,n=i.point(r),e.reflow(new Jt(n.x,n.y-s/2,n.x,n.y));else if("insideEnd"===t.position)i.radius=i.radius-s/2,n=i.point(r),e.reflow(new Jt(n.x,n.y-s/2,n.x,n.y));else{var h;(n=i.clone().expand(o).point(r)).x>=i.center.x?(h=n.x+p,e.orientation=f):(h=n.x-p,e.orientation=l),e.reflow(new Jt(h,n.y-s,n.x,n.y))}}},e.prototype.createVisual=function(){var e=this,i=this.sector,o=this.options;if(t.prototype.createVisual.call(this),this.value)if(o.visual){var r=(i.startAngle+180)%360,n=o.visual({category:this.category,dataItem:this.dataItem,value:this.value,series:this.series,percentage:this.percentage,center:new A.geometry.Point(i.center.x,i.center.y),radius:i.radius,innerRadius:i.innerRadius,startAngle:r,endAngle:r+i.angle,options:o,sender:this.getSender(),createVisual:function(){var t=new A.drawing.Group;return e.createSegmentVisual(t),t}});n&&this.visual.append(n)}else this.createSegmentVisual(this.visual)},e.prototype.createSegmentVisual=function(t){var e=this.sector,i=this.options,o=i.border||{},r=o.width>0?{stroke:{color:o.color,width:o.width,opacity:o.opacity,dashType:o.dashType}}:{},n=i.color,s={color:n,opacity:i.opacity},a=this.createSegment(e,j({fill:s,stroke:{opacity:i.opacity},zIndex:i.zIndex},r));t.append(a),Eo(i)&&t.append(this.createGradientOverlay(a,{baseColor:n,fallbackFill:s},j({center:[e.center.x,e.center.y],innerRadius:e.innerRadius,radius:e.radius,userSpace:!0},i.overlay)))},e.prototype.createSegment=function(t,e){return e.singleSegment?new A.drawing.Circle(new A.geometry.Circle(new A.geometry.Point(t.center.x,t.center.y),t.radius),e):ie.current.createRing(t,e)},e.prototype.createAnimation=function(){var e=this.options,i=this.sector.center;j(e,{animation:{center:[i.x,i.y],delay:this.animationDelay}}),t.prototype.createAnimation.call(this)},e.prototype.createHighlight=function(t){var e=this.options.highlight||{},i=e.border||{};return this.createSegment(this.sector,j({},t,{fill:{color:e.color,opacity:e.opacity},stroke:{opacity:i.opacity,width:i.width,color:i.color}}))},e.prototype.highlightVisual=function(){return this.visual.children[0]},e.prototype.highlightVisualArgs=function(){var t=this.sector;return{options:this.options,radius:t.radius,innerRadius:t.innerRadius,center:new A.geometry.Point(t.center.x,t.center.y),startAngle:t.startAngle,endAngle:t.angle+t.startAngle,visual:this.visual}},e.prototype.tooltipAnchor=function(){var t=this.sector.clone().expand(5),e=t.middle();return{point:t.point(e),align:rs(e+180)}},e.prototype.formatValue=function(t){return this.owner.formatPointValue(this,t)},e.prototype.pointData=function(){return{dataItem:this.dataItem,category:this.category,value:this.value,series:this.series,percentage:this.percentage}},e}(re),is=Ot(Mt(30),10),os=Ot(Mt(60),10);function rs(t){var e=Mt(t),i=Ot(Math.sin(e),10),o=Ot(Math.cos(e),10);return{horizontal:Math.abs(i)>os?a:o<0?f:l,vertical:Math.abs(i)<is?a:i<0?s:g}}Bt(es,{color:v,overlay:{gradient:"roundedBevel"},border:{width:.5},labels:{visible:!1,distance:35,font:"12px sans-serif",margin:E(.5),align:p,zIndex:1,position:"outsideEnd"},animation:{type:to},highlight:{visible:!0,border:{width:1}},visible:!0}),j(es.prototype,lo);var ns=es,ss={createLegendItem:function(t,e,i){var o=this.options.legend||{},r=o.labels||{},n=o.inactiveItems||{},s=n.labels||{};if(i&&!1!==i.visibleInLegend){var a,p,h=!1!==i.visible,c=h?it(r):it(s)||it(r),l=i.category;c&&(l=c({text:l,series:i.series,dataItem:i.dataItem,percentage:i.percentage,value:t})),h?(a={},p=e.color):(a={color:s.color,font:s.font},p=(n.markers||{}).color),nr(l)&&""!==l&&this.legendItems.push({active:h,pointIndex:i.index,text:l,series:i.series,markerColor:p,labels:a})}}},as=function(t){function e(e,i){t.call(this,i),this.plotArea=e,this.chartService=e.chartService,this.points=[],this.legendItems=[],this.render()}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.render=function(){this.traverseDataPoints(this.addValue.bind(this))},e.prototype.traverseDataPoints=function(t){var e=this.options,i=this.plotArea.options.seriesColors;void 0===i&&(i=[]);for(var o=i.length,r=e.series,n=r.length,s=0;s<n;s++){var p=r[s],h=p.data,c=Rr(p),l=c.total,u=c.points,d=c.count,f=360/l,g=void 0;isFinite(f)||(g=360/d);var y=void 0;y=xt(p.startAngle)?p.startAngle:e.startAngle,s!==n-1&&"outsideEnd"===p.labels.position&&(p.labels.position=a);for(var v=0;v<u.length;v++){var m=u[v];if(m){var x=m.fields,_=m.value,b=m.visible,w=0!==_?g||_*f:0,S=1!==h.length&&Boolean(x.explode);T(p.color)||(p.color=x.color||i[v%o]),t(m.valueFields.value,new $t(null,0,0,y,w),{owner:this,category:xt(x.category)?x.category:"",index:v,series:p,seriesIx:s,dataItem:h[v],percentage:0!==l?_/l:0,explode:S,visibleInLegend:x.visibleInLegend,visible:b,zIndex:n-s,animationDelay:this.animationDelay(v,s,n)}),!1!==b&&(y+=w)}}}},e.prototype.evalSegmentOptions=function(t,e,i){var o=i.series;ao(t,{value:e,series:o,dataItem:i.dataItem,category:i.category,percentage:i.percentage},{defaults:o._defaults,excluded:["data","content","template","visual","toggle"]})},e.prototype.addValue=function(t,e,i){var o=j({},i.series,{index:i.index});if(this.evalSegmentOptions(o,t,i),this.createLegendItem(t,o,i),!1!==i.visible){var r=new ns(t,e,o);Object.assign(r,i),this.append(r),this.points.push(r)}},e.prototype.reflow=function(t){var e=this.options,i=this.points,o=this.seriesConfigs;void 0===o&&(o=[]);var r=i.length,n=t.clone(),s=Math.min(n.width(),n.height()),a=s/2,p=s-.85*s,h=new Jt(n.x1,n.y1,n.x1+s,n.y1+s),c=h.center(),l=n.center(),u=e.series.length,d=[],g=[],y=Rt(e.padding,p);this.targetBox=t,y=y>a-5?a-5:y,h.translate(l.x-c.x,l.y-c.y);for(var v=a-y,m=new Yt(v+h.x1+y,v+h.y1+y),x=0;x<r;x++){var _=i[x],b=_.sector,w=_.seriesIx;if(b.radius=v,b.center=m,o.length){var S=o[w];b.innerRadius=S.innerRadius,b.radius=S.radius}w===u-1&&_.explode&&(b.center=b.clone().setRadius(.15*b.radius).point(b.middle())),_.reflow(h);var A=_.label;A&&"outsideEnd"===A.options.position&&w===u-1&&(A.orientation===f?g.push(A):d.push(A))}d.length>0&&(d.sort(this.labelComparator(!0)),this.leftLabelsReflow(d)),g.length>0&&(g.sort(this.labelComparator(!1)),this.rightLabelsReflow(g)),this.box=h},e.prototype.leftLabelsReflow=function(t){var e=this.distanceBetweenLabels(t);this.distributeLabels(e,t)},e.prototype.rightLabelsReflow=function(t){var e=this.distanceBetweenLabels(t);this.distributeLabels(e,t)},e.prototype.distanceBetweenLabels=function(t){var e=Ct(this.points),i=e.sector,o=t.length-1,r=i.radius+e.options.labels.distance,n=[],s=t[0].box,a=Ot(s.y1-(i.center.y-r-s.height()-s.height()/2));n.push(a);for(var p=0;p<o;p++){var h=t[p+1].box;s=t[p].box,a=Ot(h.y1-s.y2),n.push(a)}return a=Ot(i.center.y+r-t[o].box.y2-t[o].box.height()/2),n.push(a),n},e.prototype.distributeLabels=function(t,e){for(var i,o,r,n=t.length,s=0;s<n;s++)for(r=-t[s],i=o=s;r>0&&(i>=0||o<n);)r=this._takeDistance(t,s,--i,r),r=this._takeDistance(t,s,++o,r);this.reflowLabels(t,e)},e.prototype._takeDistance=function(t,e,i,o){var r=o;if(t[i]>0){var n=Math.min(t[i],r);r-=n,t[i]-=n,t[e]+=n}return r},e.prototype.reflowLabels=function(t,e){var i,o=Ct(this.points),r=o.sector,n=o.options.labels,s=e.length,a=n.distance,h=r.center.y-(r.radius+a)-e[0].box.height();t[0]+=2;for(var c=0;c<s;c++){var l=e[c],u=l.box;h+=t[c],i=this.hAlignLabel(u.x2,r.clone().expand(a),h,h+u.height(),l.orientation===f),l.orientation===f?(n.align!==p&&(i=r.radius+r.center.x+a),l.reflow(new Jt(i+u.width(),h,i,h))):(n.align!==p&&(i=r.center.x-r.radius-a),l.reflow(new Jt(i-u.width(),h,i,h))),h+=u.height()}},e.prototype.createVisual=function(){var e=this.options.connectors,i=this.points,o=i.length;t.prototype.createVisual.call(this),this._connectorLines=[];for(var r=0;r<o;r++){var n=i[r],s=n.sector,a=n.label,p=s.middle(),h=(n.options.connectors||{}).color||e.color;if(a){var c=new A.drawing.Path({stroke:{color:h,width:e.width},animation:{type:"fadeIn",delay:n.animationDelay}});if("outsideEnd"===a.options.position){var l=a.box,u=s.center,d=s.point(p),g=new Yt(l.x1,l.center().y),y=void 0,v=void 0,m=void 0;d=s.clone().expand(e.padding).point(p),c.moveTo(d.x,d.y),a.orientation===f?(m=ps(u,d,g,v=new Yt(l.x1-e.padding,l.center().y)),g=new Yt(v.x-4,v.y),(m=m||g).x=Math.min(m.x,g.x),this.pointInCircle(m,s.center,s.radius+4)||m.x<s.center.x?(y=s.center.x+s.radius+4,n.options.labels.align!==Qi?y<g.x?c.lineTo(y,d.y):c.lineTo(d.x+8,d.y):c.lineTo(y,d.y),c.lineTo(g.x,v.y)):(m.y=v.y,c.lineTo(m.x,m.y))):(m=ps(u,d,g,v=new Yt(l.x2+e.padding,l.center().y)),g=new Yt(v.x+4,v.y),(m=m||g).x=Math.max(m.x,g.x),this.pointInCircle(m,s.center,s.radius+4)||m.x>s.center.x?(y=s.center.x-s.radius-4,n.options.labels.align!==Qi?y>g.x?c.lineTo(y,d.y):c.lineTo(d.x-8,d.y):c.lineTo(y,d.y),c.lineTo(g.x,v.y)):(m.y=v.y,c.lineTo(m.x,m.y))),c.lineTo(v.x,v.y),this._connectorLines.push(c),this.visual.append(c)}}}},e.prototype.renderVisual=function(){if(t.prototype.renderVisual.call(this),zt(this.options.series,(function(t){return t.autoFit}))){var e=this.targetBox,i=this.box.center(),o=this.visual.bbox();if(!o)return;var r=o.bottomRight(),n=Math.min((i.y-e.y1)/(i.y-o.origin.y),(e.y2-i.y)/(r.y-i.y),(i.x-e.x1)/(i.x-o.origin.x),(e.x2-i.x)/(r.x-i.x));n<1&&this.visual.transform(A.geometry.transform().scale(n,n,[i.x,i.y]))}},e.prototype.labelComparator=function(t){var e=t?-1:1;return function(t,i){return((t.parent.sector.middle()+270)%360-(i.parent.sector.middle()+270)%360)*e}},e.prototype.hAlignLabel=function(t,e,i,o,r){var n=e.radius,s=e.center,a=s.x,p=s.y,h=Math.min(Math.abs(p-i),Math.abs(p-o));return h>n?t:a+Math.sqrt(n*n-h*h)*(r?1:-1)},e.prototype.pointInCircle=function(t,e,i){return Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2)<Math.pow(i,2)},e.prototype.formatPointValue=function(t,e){return this.chartService.format.auto(e,t.value)},e.prototype.animationDelay=function(t){return 70*t},e.prototype.stackRoot=function(){return this},e}(re);function ps(t,e,i,o){var r,n=(o.x-i.x)*(t.y-i.y)-(o.y-i.y)*(t.x-i.x),s=(o.y-i.y)*(e.x-t.x)-(o.x-i.x)*(e.y-t.y);if(0!==s){var a=n/s;r=new Yt(t.x+a*(e.x-t.x),t.y+a*(e.y-t.y))}return r}Bt(as,{startAngle:90,connectors:{width:2,color:"#939393",padding:8},inactiveItems:{markers:{},labels:{}}}),j(as.prototype,ss),as.prototype.isStackRoot=!0;var hs=as,cs=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.render=function(){this.createPieChart(this.series)},e.prototype.createPieChart=function(t){var e=t[0],i=new hs(this,{series:t,padding:e.padding,startAngle:e.startAngle,connectors:e.connectors,legend:this.options.legend});this.appendChart(i)},e.prototype.appendChart=function(e,i){t.prototype.appendChart.call(this,e,i),vt(this.options.legend.items,e.legendItems)},e}(qr),ls=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.reflowLabel=function(){var e=this.options.labels,i=this.label,o=this.sector.clone(),r=o.middle();if(i){var n=i.box.height();if(e.position===a){o.radius-=(o.radius-o.innerRadius)/2;var s=o.point(r);i.reflow(new Jt(s.x,s.y-n/2,s.x,s.y))}else t.prototype.reflowLabel.call(this)}},e.prototype.createSegment=function(t,e){return ie.current.createRing(t,e)},e}(ns);Bt(ls,{overlay:{gradient:"roundedGlass"},labels:{position:a},animation:{type:to}}),j(ls.prototype,lo);var us=ls,ds=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.addValue=function(t,e,i){var o=j({},i.series,{index:i.index});if(this.evalSegmentOptions(o,t,i),this.createLegendItem(t,o,i),t&&!1!==i.visible){var r=new us(t,e,o);Object.assign(r,i),this.append(r),this.points.push(r)}},e.prototype.reflow=function(e){for(var i,o=this.options,r=e.clone(),n=Math.min(r.width(),r.height()),s=n/2,a=n-.85*n,p=o.series,h=p.length,c=Rt(o.padding,a),l=s-(c=c>s-5?s-5:c),u=0,d=0;d<h;d++){var f=p[d];0===d&&xt(f.holeSize)&&(i=f.holeSize,l-=f.holeSize),xt(f.size)?l-=f.size:u++,xt(f.margin)&&d!==h-1&&(l-=f.margin)}xt(i)||(l-=i=.75*((s-c)/(h+.75)));var g,y=i,v=0;this.seriesConfigs=[];for(var m=0;m<h;m++){var x=p[m];g=(y+=v)+Rt(x.size,l/u),this.seriesConfigs.push({innerRadius:y,radius:g}),v=x.margin||0,y=g}t.prototype.reflow.call(this,e)},e.prototype.animationDelay=function(t,e,i){return 50*t+600*(e+1)/(i+1)},e}(hs);Bt(ds,{startAngle:90,connectors:{width:2,color:"#939393",padding:8}});var fs=ds,gs=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.render=function(){this.createDonutChart(this.series)},e.prototype.createDonutChart=function(t){var e=t[0],i=new fs(this,{series:t,padding:e.padding,connectors:e.connectors,legend:this.options.legend});this.appendChart(i)},e}(cs),ys=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.initFields=function(){this.valueAxisRangeTracker=new Lo},e.prototype.render=function(){this.addToLegend(this.series),this.createPolarAxis(),this.createCharts(),this.createValueAxis()},e.prototype.alignAxes=function(){var t=this.valueAxis,e=t.range(),i=t.options.reverse?e.max:e.min,o=t.getSlot(i),r=this.polarAxis.getSlot(0).center,n=t.box.translate(r.x-o.x1,r.y-o.y1);t.reflow(n)},e.prototype.createValueAxis=function(){var t,e,i=this.valueAxisRangeTracker,o=i.query(),r=this.valueAxisOptions({roundToMajorUnit:!1,zIndex:-1});"log"===r.type?(t=Ri,e={min:.1,max:1}):(t=Oi,e={min:0,max:1});var n=i.query(name)||o||e;n&&o&&(n.min=Math.min(n.min,o.min),n.max=Math.max(n.max,o.max));var s=new t(n.min,n.max,r,this.chartService);this.valueAxis=s,this.appendAxis(s)},e.prototype.reflowAxes=function(){var t=this.options.plotArea,e=this.valueAxis,i=this.polarAxis,o=this.box,r=.15*Math.min(o.width(),o.height()),n=E(t.padding||{},r),s=o.clone().unpad(n),p=s.clone();p.y2=p.y1+Math.min(p.width(),p.height()),p.align(s,x,a);var h=p.clone().shrink(0,p.height()/2);i.reflow(p),e.reflow(h);var c=e.lineBox().height()-e.box.height();e.reflow(e.box.unpad({top:c})),this.axisBox=p,this.alignAxes(p)},e.prototype.backgroundBox=function(){return this.box},e.prototype.detachLabels=function(){},e}(qr),vs=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.pointSlot=function(t,e){var i=t.center.y-e.y1,o=Yt.onCircle(t.center,t.startAngle,i);return new Jt(o.x,o.y,o.x,o.y)},e}(ar);Bt(vs,{clip:!1});var ms=vs,xs=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e}(Jn);xs.prototype.pointSlot=ms.prototype.pointSlot,Bt(xs,{clip:!1});var _s=xs,bs=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.fillToAxes=function(t){var e=this._polarAxisCenter();t.lineTo(e.x,e.y)},e.prototype._polarAxisCenter=function(){return this.parent.plotArea.polarAxis.box.center()},e.prototype.strokeSegments=function(){var t=this._strokeSegments;if(!t){var e=this._polarAxisCenter(),i=new Ii(!1),o=this.points();o.push(e),(t=this._strokeSegments=i.process(o)).pop()}return t},e}(Io),ws=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.fillToAxes=function(t){var e=this.parent.plotArea.polarAxis.box.center(),i=new A.geometry.Segment([e.x,e.y]);t.segments.unshift(i),t.segments.push(i)},e}(To);function Ss(t,e){return t.value.x-e.value.x}var As=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.createSegment=function(t,e,i){return"smooth"===(e.line||{}).style?new bs(t,e,i):new ws(t,e,i)},e.prototype.createMissingValue=function(t,e){var i;return nr(t.x)&&"interpolate"!==e&&(i={x:t.x,y:t.y},e===Zi&&(i.y=0)),i},e.prototype.seriesMissingValues=function(t){return t.missingValues||Zi},e.prototype._hasMissingValuesGap=function(){for(var t=this.options.series,e=0;e<t.length;e++)if("gap"===this.seriesMissingValues(t[e]))return!0},e.prototype.sortPoints=function(t){if(t.sort(Ss),this._hasMissingValuesGap())for(var e=0;e<t.length;e++){var i=t[e];if(i)nr(i.value.y)||"gap"!==this.seriesMissingValues(i.series)||delete t[e]}return t},e}(_s),Cs=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.createPolarAxis=function(){var t=new Ci(this.options.xAxis,this.chartService);this.polarAxis=t,this.axisX=t,this.appendAxis(t)},e.prototype.valueAxisOptions=function(t){return j(t,{majorGridLines:{type:r},minorGridLines:{type:r}},this.options.yAxis)},e.prototype.createValueAxis=function(){t.prototype.createValueAxis.call(this),this.axisY=this.valueAxis},e.prototype.appendChart=function(t,e){this.valueAxisRangeTracker.update(t.yAxisRanges),qr.prototype.appendChart.call(this,t,e)},e.prototype.createCharts=function(){var t=this.filterVisibleSeries(this.series),e=this.panes[0];this.createLineChart(Ir(t,["polarLine"]),e),this.createScatterChart(Ir(t,["polarScatter"]),e),this.createAreaChart(Ir(t,["polarArea"]),e)},e.prototype.createLineChart=function(t,e){if(0!==t.length){var i=new _s(this,{series:t});this.appendChart(i,e)}},e.prototype.createScatterChart=function(t,e){if(0!==t.length){var i=new ms(this,{series:t});this.appendChart(i,e)}},e.prototype.createAreaChart=function(t,e){if(0!==t.length){var i=new As(this,{series:t});this.appendChart(i,e)}},e.prototype._dispatchEvent=function(t,e,i){var o=t._eventCoordinates(e),r=new Yt(o.x,o.y),n=this.axisX.getValue(r),s=this.axisY.getValue(r);null!==n&&null!==s&&t.trigger(i,{element:St(e),x:n,y:s})},e.prototype.createCrosshairs=function(){},e}(ys);Bt(Cs,{xAxis:{},yAxis:{}}),j(Cs.prototype,Kr);var ks=Cs;var Ps=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.pointSlot=function(t,e){var i=t.center.y-e.y1,o=Yt.onCircle(t.center,t.middle(),i);return new Jt(o.x,o.y,o.x,o.y)},e.prototype.renderSegments=function(){if(t.prototype.renderSegments.call(this),this._segments&&this._segments.length>1)for(var e=function(t){for(var e=[],i=0;i<t.length;i++){var o=t[i];e[o.seriesIx]=e[o.seriesIx]||[],e[o.seriesIx].push(o)}return e}(this._segments),i=0;i<e.length;i++){var o=e[i];if(o&&o.length>1){var r=o[0].linePoints[0],n=Ct(o),s=Ct(n.linePoints),a=0===r.categoryIx,p=s.categoryIx===s.categoriesCount-1;a&&p&&Ct(o).linePoints.push(r)}}},e.prototype.createSegment=function(t,e,i){var o=new("smooth"===e.style?wo:vo)(t,e,i),r=this.seriesMissingValues(e);return t.length!==e.data.length&&"interpolate"!==r||(o.options.closed=!0),o},e}(Oo);Bt(Ps,{clip:!1,limitPoints:!1});var Ms=Ps,Os=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.fillToAxes=function(){},e}(Io),Ts=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.fillToAxes=function(){},e}(To),Rs=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.createSegment=function(t,e,i,o){var r,n,s,a=this.options.isStacked,p=(e.line||{}).style;return a&&i>0&&o&&(n=o.linePoints.slice(0),r=o),"smooth"===p?(s=new Os(t,e,i,r,n)).options.closed=!0:(t.push(t[0]),s=new Ts(t,e,i,r,n)),s},e.prototype.seriesMissingValues=function(t){return t.missingValues||Zi},e}(Ms),js=function(t){function e(e,i){t.call(this,e,null,i)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e}(us);Bt(js,{overlay:{gradient:"none"},labels:{distance:10}});var Is=js,Bs=function(t){function e(e){t.call(this,e),this.forEach=e.rtl?Fo:Uo}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.reflow=function(t){var e=this.options,i=this.children,o=e.gap,r=e.spacing,n=i.length,s=n+o+r*(n-1),a=t.angle/s,p=t.startAngle+a*(o/2);this.forEach(i,(function(e){var i=t.clone();i.startAngle=p,i.angle=a,e.sector&&(i.radius=e.sector.radius),e.reflow(i),e.sector=i,p+=a+a*r}))},e}(re);Bt(Bs,{gap:1,spacing:0});var Ls=Bs,zs=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.reflow=function(t){var e=this.options.reverse,i=this.children,o=i.length,r=e?o-1:0,n=e?-1:1;this.box=new Jt;for(var s=r;s>=0&&s<o;s+=n){var a=i[s].sector;a.startAngle=t.startAngle,a.angle=t.angle}},e}(re),Vs=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.pointType=function(){return Is},e.prototype.clusterType=function(){return Ls},e.prototype.stackType=function(){return zs},e.prototype.categorySlot=function(t,e){return t.getSlot(e)},e.prototype.pointSlot=function(t,e){var i=t.clone(),o=t.center.y;return i.radius=o-e.y1,i.innerRadius=o-e.y2,i},e.prototype.reflowPoint=function(t,e){t.sector=e,t.reflow()},e.prototype.createAnimation=function(){this.options.animation.center=this.box.toRect().center(),t.prototype.createAnimation.call(this)},e}(Xo);Vs.prototype.reflow=co.prototype.reflow,Bt(Vs,{clip:!1,limitPoints:!1,animation:{type:"pie"}});var Es=Vs,Ds=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.createPolarAxis=function(){var t=new Si(this.options.categoryAxis,this.chartService);this.polarAxis=t,this.categoryAxis=t,this.appendAxis(t),this.aggregateCategories(),this.createCategoryAxesLabels()},e.prototype.valueAxisOptions=function(t){return this._hasBarCharts&&j(t,{majorGridLines:{type:r},minorGridLines:{type:r}}),this._isStacked100&&j(t,{roundToMajorUnit:!1,labels:{format:"P0"}}),j(t,this.options.valueAxis)},e.prototype.aggregateCategories=function(){wn.prototype.aggregateCategories.call(this,this.panes)},e.prototype.createCategoryAxesLabels=function(){wn.prototype.createCategoryAxesLabels.call(this,this.panes)},e.prototype.filterSeries=function(t){return t},e.prototype.createCharts=function(){var t=this.filterVisibleSeries(this.series),e=this.panes[0];this.createAreaChart(Ir(t,["radarArea"]),e),this.createLineChart(Ir(t,["radarLine"]),e),this.createBarChart(Ir(t,["radarColumn"]),e)},e.prototype.chartOptions=function(t){var e={series:t},i=t[0];if(i){var o=this.filterVisibleSeries(t),r=i.stack;e.isStacked=r&&o.length>1,e.isStacked100=r&&"100%"===r.type&&o.length>1,e.isStacked100&&(this._isStacked100=!0)}return e},e.prototype.createAreaChart=function(t,e){if(0!==t.length){var i=new Rs(this,this.chartOptions(t));this.appendChart(i,e)}},e.prototype.createLineChart=function(t,e){if(0!==t.length){var i=new Ms(this,this.chartOptions(t));this.appendChart(i,e)}},e.prototype.createBarChart=function(t,e){if(0!==t.length){var i=t[0],o=this.chartOptions(t);o.gap=i.gap,o.spacing=i.spacing;var r=new Es(this,o);this.appendChart(r,e),this._hasBarCharts=!0}},e.prototype.seriesCategoryAxis=function(){return this.categoryAxis},e.prototype._dispatchEvent=function(t,e,i){var o=t._eventCoordinates(e),r=new Yt(o.x,o.y),n=this.categoryAxis.getCategory(r),s=this.valueAxis.getValue(r);null!==n&&null!==s&&t.trigger(i,{element:St(e),category:n,value:s})},e.prototype.createCrosshairs=function(){},e}(ys);j(Ds.prototype,Kr,{appendChart:wn.prototype.appendChart,aggregateSeries:wn.prototype.aggregateSeries,seriesSourcePoints:wn.prototype.seriesSourcePoints}),Bt(Ds,{categoryAxis:{categories:[]},valueAxis:{}});var Gs=Ds,Us=function(t){function e(e,i,o){t.call(this,i),this.value=e,this.options.index=o.index}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.reflow=function(t){var e=this.points,i=this.children[0];this.box=new Jt(e[0].x,e[0].y,e[1].x,e[2].y),i&&i.reflow(new Jt(t.x1,e[0].y,t.x2,e[2].y))},e.prototype.createVisual=function(){var e,i=this,o=this.options;t.prototype.createVisual.call(this),(e=o.visual?o.visual({category:this.category,dataItem:this.dataItem,value:this.value,series:this.series,percentage:this.percentage,points:this.points,options:o,sender:this.getSender(),createVisual:function(){return i.createPath()}}):this.createPath())&&this.visual.append(e)},e.prototype.createPath=function(){var t=this.options,e=t.border;return A.drawing.Path.fromPoints(this.points,{fill:{color:t.color,opacity:t.opacity},stroke:{color:e.color,opacity:e.opacity,width:e.width}}).close()},e.prototype.createHighlight=function(t){return A.drawing.Path.fromPoints(this.points,t)},e.prototype.highlightVisual=function(){return this.visual.children[0]},e.prototype.highlightVisualArgs=function(){var t=A.drawing.Path.fromPoints(this.points).close();return{options:this.options,path:t}},e.prototype.tooltipAnchor=function(){var t=this.box;return{point:new Yt(t.center().x,t.y1),align:{horizontal:"center",vertical:"top"}}},e.prototype.formatValue=function(t){return this.owner.formatPointValue(this,t)},e}(re);Bt(Us,{color:v,border:{width:1}}),j(Us.prototype,lo);var Fs=Us,Hs=function(t){function e(e,i){t.call(this,i),this.plotArea=e,this.points=[],this.labels=[],this.legendItems=[],this.render()}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.formatPointValue=function(t,e){return this.chartService.format.auto(e,t.value)},e.prototype.render=function(){var t=this.options,e=this.plotArea.options.seriesColors;void 0===e&&(e=[]);var i=t.series[0],o=i.data;if(o)for(var r=Rr(i),n=r.total,s=r.points,a=0;a<s.length;a++){var p=s[a];if(p){var h=p.fields;T(i.color)||(i.color=h.color||e[a%e.length]),h=j({index:a,owner:this,series:i,dataItem:o[a],percentage:p.value/n},h,{visible:p.visible});var c=p.valueFields.value,l=this.createSegment(c,h),u=this.createLabel(c,h);l&&u&&l.append(u)}}},e.prototype.evalSegmentOptions=function(t,e,i){var o=i.series;ao(t,{value:e,series:o,dataItem:i.dataItem,index:i.index},{defaults:o._defaults,excluded:["data","content","template","toggle","visual"]})},e.prototype.createSegment=function(t,e){var i=j({},e.series);if(this.evalSegmentOptions(i,t,e),this.createLegendItem(t,i,e),!1!==e.visible){var o=new Fs(t,i,e);return Object.assign(o,e),this.append(o),this.points.push(o),o}},e.prototype.createLabel=function(t,e){var i=e.series,o=e.dataItem,r=j({},this.options.labels,i.labels),n=t;if(r.visible){var s=it(r),a={dataItem:o,value:t,percentage:e.percentage,category:e.category,series:i};s?n=s(a):r.format&&(n=this.plotArea.chartService.format.auto(r.format,n)),r.color||(r.color=Ut(i.color),r.background||(r.background=i.color)),this.evalSegmentOptions(r,t,e);var p=new _e(n,j({vAlign:r.position},r),a);return this.labels.push(p),p}},e.prototype.labelPadding=function(){for(var t=this.labels,e={left:0,right:0},i=0;i<t.length;i++){var o=t[i].options.align;if(o!==a){var r=t[i].box.width();o===l?e.left=Math.max(e.left,r):e.right=Math.max(e.right,r)}}return e},e.prototype.dynamicSlopeReflow=function(t,e,i){for(var o=this.options,r=this.points,n=r.length,s=r[0],a=s,p=0;p<r.length;p++)r[p].percentage>a.percentage&&(a=r[p]);for(var h=s.percentage/a.percentage*e,c=(e-h)/2,l=0,u=0;u<n;u++){var d=r[u].percentage,f=r[u+1],g=f?f.percentage:d,y=r[u].points=[],v=o.dynamicHeight?i*d:i/n,m=void 0;m=kt(m=d?(e-h*(g/d))/2:g?0:e/2,0,e),y.push(new A.geometry.Point(t.x1+c,t.y1+l)),y.push(new A.geometry.Point(t.x1+e-c,t.y1+l)),y.push(new A.geometry.Point(t.x1+e-m,t.y1+v+l)),y.push(new A.geometry.Point(t.x1+m,t.y1+v+l)),c=m,l+=v+o.segmentSpacing,h=kt(e-2*m,0,e)}},e.prototype.constantSlopeReflow=function(t,e,i){for(var o=this.options,r=this.points,n=r.length,s=o.neckRatio<=1,a=s?o.neckRatio*e:e,p=s?0:(e-e/o.neckRatio)/2,h=((s?e:e-2*p)-a)/2,c=0,l=0;l<n;l++){var u=r[l].points=[],d=r[l].percentage,f=o.dynamicHeight?h*d:h/n,g=o.dynamicHeight?i*d:i/n;u.push(new A.geometry.Point(t.x1+p,t.y1+c)),u.push(new A.geometry.Point(t.x1+e-p,t.y1+c)),u.push(new A.geometry.Point(t.x1+e-p-f,t.y1+g+c)),u.push(new A.geometry.Point(t.x1+p+f,t.y1+g+c)),p+=f,c+=g+o.segmentSpacing}},e.prototype.reflow=function(t){var e=this.points,i=e.length;if(i){var o=this.options,r=t.clone().unpad(this.labelPadding()),n=r.height()-o.segmentSpacing*(i-1),s=r.width();o.dynamicSlope?this.dynamicSlopeReflow(r,s,n):this.constantSlopeReflow(r,s,n);for(var a=0;a<i;a++)e[a].reflow(t)}},e}(re);Bt(Hs,{neckRatio:.3,width:300,dynamicSlope:!1,dynamicHeight:!0,segmentSpacing:0,labels:{visible:!1,align:a,position:a,zIndex:1}}),j(Hs.prototype,ss);var Ns=Hs,Ws=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.render=function(){this.createFunnelChart(this.series)},e.prototype.createFunnelChart=function(t){var e=t[0],i=new Ns(this,{series:t,legend:this.options.legend,neckRatio:e.neckRatio,dynamicHeight:e.dynamicHeight,dynamicSlope:e.dynamicSlope,segmentSpacing:e.segmentSpacing,highlight:e.highlight});this.appendChart(i)},e.prototype.appendChart=function(e,i){t.prototype.appendChart.call(this,e,i),vt(this.options.legend.items,e.legendItems)},e}(qr),qs=function(t,e){void 0===e&&(e=.05);var i=Object(A.parseColor)(t),o=1-e;return function(t){var e=i.toHSL(),r=100-e.l,n=o-t;return e.l+=Math.min(n*r,r),e.toCss()}},Ks=function(t){function e(e,i){t.call(this),this.options=i,this.color=i.color||v,this.value=e}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.render=function(){this._rendered||(this._rendered=!0,this.createMarker(),this.createLabel(),this.createNote())},e.prototype.createLabel=function(){var t=this.options.labels;if(t.visible){var e,i=this.pointData(),o=it(t),r=t.color;e=o?o(i):this.formatValue(t.format),r||(r=Ut(this.color)),this.label=new _e(e,j({align:a,vAlign:a,margin:{left:5,right:5},zIndex:Rt(t.zIndex,this.series.zIndex)},t,{color:r}),i),this.append(this.label)}},e.prototype.formatValue=function(t){return this.owner.formatPointValue(this,t)},e.prototype.reflow=function(t){this.render();var e=this.label;this.box=t,e&&e.reflow(this.markerBox()),this.note&&this.note.reflow(t),this.marker.reflow(this.markerBox())},e.prototype.markerBox=function(){var t=this.options.markers,e=t.border,i=this.box.toRect(),o="roundedRect"===Rt(t.type,"rect"),r=Rt(e.width,o?1:0),n=Math.round(r/2);if(t.size){var s=i.center();i.size.width=i.size.height=t.size,i.origin.x=Math.round(s.x-i.size.width/2),i.origin.y=Math.round(s.y-i.size.height/2)}return i.size.width-=r,i.size.height-=r,i.origin.y+=n+.5,i.origin.x+=n+.5,me(i)},e.prototype.markerBorder=function(){var t=this.options,e=t.markers.border,i=Rt(e.opacity,t.opacity);return{color:e.color||this.color,width:e.width,opacity:i,dashType:e.dashType}},e.prototype.createMarker=function(){var t=this.options,e=t.markers,i=new pe({type:Rt(e.type,"rect"),width:e.size,height:e.size,rotation:e.rotation,background:this.color,border:this.markerBorder(),borderRadius:e.borderRadius,opacity:this.series.opacity||t.opacity,zIndex:Rt(t.zIndex,this.series.zIndex),animation:t.animation,visual:t.visual},{dataItem:this.dataItem,value:this.value,series:this.series,category:this.category});this.marker=i,this.append(i)},e.prototype.createHighlight=function(t){var e=this.options,i=this.options.highlight.markers||this.options.markers,o=new pe({type:Rt(i.type,"rect"),width:i.size,height:i.size,rotation:i.rotation,background:i.color||this.color,border:this.markerBorder(),borderRadius:i.borderRadius,opacity:this.series.opacity||e.opacity,zIndex:Rt(e.zIndex,this.series.zIndex)});o.reflow(this.markerBox());var r=o.getElement();return r.options.fill=t.fill,r.options.stroke=t.stroke,r},e.prototype.highlightVisual=function(){return this.rectVisual},e.prototype.highlightVisualArgs=function(){return{options:this.options,rect:this.box.toRect(),visual:this.rectVisual}},e.prototype.tooltipAnchor=function(){var t=this.box.center().x,e=this.box.y1-5;return{point:new Yt(t,e),align:{horizontal:a,vertical:s}}},e.prototype.overlapsBox=function(t){return this.box.overlaps(t)},e.prototype.unclipElements=function(){},e.prototype.pointData=function(){return{x:this.value.x,y:this.value.y,value:this.value.value,dataItem:this.dataItem,series:this.series}},e}(re);j(Ks.prototype,lo),j(Ks.prototype,uo),Ks.prototype.defaults={markers:{type:"rect",borderRadius:4,border:{color:"transparent"}},padding:{top:1},labels:{visible:!1,padding:3},opacity:1,notes:{label:{}}};var Xs=Ks,Ys=function(t){function e(e,i){t.call(this,i),this.plotArea=e,this.chartService=e.chartService,this._initFields(),this.render()}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype._initFields=function(){this.points=[],this.seriesOptions=[],this.valueRange={min:u,max:d},this._evalSeries=[]},e.prototype.render=function(){this.setRange(),this.traverseDataPoints(this.addValue.bind(this))},e.prototype.setRange=function(){for(var t=this.options.series,e=0;e<t.length;e++)for(var i=t[e],o=0;o<i.data.length;o++){var r=this._bindPoint(i,e,o).valueFields;this.valueRange.min=Math.min(this.valueRange.min,r.value),this.valueRange.max=Math.max(this.valueRange.max,r.value)}},e.prototype.addValue=function(t,e){var i;t&&(i=this.createPoint(t,e))&&Object.assign(i,e),this.points.push(i)},e.prototype.evalPointOptions=function(t,e,i){var o=i.series,r=i.seriesIx,n={defaults:o._defaults,excluded:["data","tooltip","content","template","visual","toggle"]},s=this._evalSeries[r];xt(s)||(this._evalSeries[r]=s=ao(t,{},n,!0));var a=t;return s&&ao(a=j({},t),{value:e,series:o,dataItem:i.dataItem,min:this.valueRange.min,max:this.valueRange.max},n),a},e.prototype.pointType=function(){return Xs},e.prototype.pointOptions=function(t,e){var i=this.seriesOptions[e];if(!i){var o=this.pointType().prototype.defaults;this.seriesOptions[e]=i=j({},o,{markers:{opacity:t.opacity},tooltip:{format:this.options.tooltip.format},labels:{format:this.options.labels.format}},t)}return i},e.prototype.createPoint=function(t,e){var i=e.series,o=this.pointOptions(i,e.seriesIx),r=e.color||i.color;(o=this.evalPointOptions(o,t,e),T(i.color))?r=o.color:r=qs(r)(t.value/this.valueRange.max);var n=new Xs(t,o);return n.color=r,this.append(n),n},e.prototype.seriesAxes=function(t){var e=t.xAxis,i=t.yAxis,o=this.plotArea,r=e?o.namedXAxes[e]:o.axisX,n=i?o.namedYAxes[i]:o.axisY;if(!r)throw new Error("Unable to locate X axis with name "+e);if(!n)throw new Error("Unable to locate Y axis with name "+i);return{xAxis:r,yAxis:n}},e.prototype.reflow=function(t){var e=this,i=this.points,o=!this.options.clip,r=0;this.traverseDataPoints((function(t,n){var s=i[r++],a=e.seriesAxes(n.series),p=a.xAxis,h=a.yAxis,c=p.categoryIndex(t.x),l=h.categoryIndex(t.y),u=p.getSlot(c,c,o),d=h.getSlot(l,l,o);if(s)if(u&&d){var f=e.pointSlot(u,d);s.reflow(f)}else s.visible=!1})),this.box=t},e.prototype.pointSlot=function(t,e){return new Jt(t.x1,e.y1,t.x2,e.y2)},e.prototype.traverseDataPoints=function(t){for(var e=this.options.series,i=0;i<e.length;i++)for(var o=e[i],r=this.seriesAxes(o),n=r.xAxis,s=r.yAxis,a=n.currentRangeIndices(),p=s.currentRangeIndices(),h=0;h<o.data.length;h++){var c=this._bindPoint(o,i,h),l=c.valueFields,u=c.fields,d=n.totalIndex(l.x),f=s.totalIndex(l.y),g=a.min<=d&&d<=a.max,y=p.min<=f&&f<=p.max;g&&y&&t(l,j({pointIx:h,series:o,seriesIx:i,dataItem:o.data[h],owner:this},u))}},e.prototype.formatPointValue=function(t,e){var i=t.value;return this.chartService.format.auto(e,i.x,i.y,i.value)},e.prototype.animationPoints=function(){for(var t=this.points,e=[],i=0;i<t.length;i++)e.push((t[i]||{}).marker);return e},e}(re);Bt(Ys,{series:[],tooltip:{format:"{0}, {1}: {2}"},labels:{format:"{2}"},clip:!0}),j(Ys.prototype,{_bindPoint:co.prototype._bindPoint});var Zs=Ys,Js=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.initFields=function(){this.namedXAxes={},this.namedYAxes={}},e.prototype.render=function(t){void 0===t&&(t=this.panes),this.bindCategories(),this.createAxes(t),this.createCharts(t),this.createAxisLabels()},e.prototype.bindCategories=function(){for(var t=this.srcSeries||this.series,e=0;e<t.length;e++){for(var i=t[e],o=i.data||[],r=this.seriesAxes(i),n=r.xAxis,s=r.yAxis,a=Kt(n.categories||[]),p=Kt(s.categories||[]),h=0;h<o.length;h++){var c=Ni.current.bindPoint(i,h).valueFields,l=c.x,u=c.y;a.has(l)||a.add(l),p.has(u)||p.add(u)}n.categories=a.values(),s.categories=p.values()}},e.prototype.createCharts=function(t){for(var e=this.groupSeriesByPane(),i=0;i<t.length;i++){var o=t[i],r=e[o.options.name||"default"]||[];this.addToLegend(r);var n=this.filterVisibleSeries(r);n&&this.createHeatmapChart(Ir(n,["heatmap"]),o)}},e.prototype.createHeatmapChart=function(t,e){var i=new Zs(this,{series:t});this.appendChart(i,e)},e.prototype.seriesPaneName=function(t){var e=this.options,i=t.xAxis,o=st([].concat(e.xAxis),(function(t){return t.name===i}))[0],r=t.yAxis,n=st([].concat(e.yAxis),(function(t){return t.name===r}))[0],s=(e.panes||[{}])[0].name||"default";return(o||{}).pane||(n||{}).pane||s},e.prototype.seriesAxes=function(t){var e,i,o=this.options,r=[].concat(o.xAxis),n=t.xAxis;e=n?r.find((function(t){return t.name===n})):r[0];var s=[].concat(o.yAxis),a=t.yAxis;if(i=a?s.find((function(t){return t.name===a})):s[0],!e)throw new Error("Unable to locate X axis with name "+n);if(!i)throw new Error("Unable to locate Y axis with name "+a);return{xAxis:e,yAxis:i}},e.prototype.createAxisLabels=function(){for(var t=this.axes,e=0;e<t.length;e++)t[e].createLabels()},e.prototype.createXYAxis=function(t,e,i){for(var o,r=t.name,n=e?this.namedYAxes:this.namedXAxes,s=Object.assign({axisCrossingValue:0},t,{vertical:e,reverse:e||this.chartService.rtl?!t.reverse:t.reverse,justified:!1}),a=s.categories?s.categories[0]:null,p=[s.min,s.max,a],c=this.series,l=0;l<c.length;l++){var u=c[l],d=u[e?"yAxis":"xAxis"];if(d===s.name||0===i&&!d){var f=Ni.current.bindPoint(u,0).valueFields;p.push(f[e?"y":"x"]);break}}for(var g=0;g<p.length;g++)if(p[g]instanceof Date){o=!0;break}var y=new(jr(s.type,h)||!s.type&&o?ai:Qe)(s,this.chartService);if(y.axisIndex=i,r){if(n[r])throw new Error((e?"Y":"X")+" axis with name "+r+" is already defined");n[r]=y}return this.appendAxis(y),y.mapCategories(),y},e.prototype.createAxes=function(t){for(var e=this.options,i=[].concat(e.xAxis),o=[],r=[].concat(e.yAxis),n=[],s=0;s<i.length;s++){ct(this.findPane(i[s].pane),t)&&o.push(this.createXYAxis(i[s],!1,s))}for(var a=0;a<r.length;a++){ct(this.findPane(r[a].pane),t)&&n.push(this.createXYAxis(r[a],!0,a))}this.axisX=this.axisX||o[0],this.axisY=this.axisY||n[0]},e.prototype.removeAxis=function(e){var i=e.options.name;t.prototype.removeAxis.call(this,e),e.options.vertical?delete this.namedYAxes[i]:delete this.namedXAxes[i],e===this.axisX&&delete this.axisX,e===this.axisY&&delete this.axisY},e.prototype._dispatchEvent=function(t,e,i){for(var o=t._eventCoordinates(e),r=new Yt(o.x,o.y),n=this.axes,s=n.length,a=[],p=[],h=0;h<s;h++){var c=n[h];Or(c.options.vertical?p:a,c.getCategory(r))}a.length>0&&p.length>0&&t.trigger(i,{element:St(e),originalEvent:e,x:zr(a),y:zr(p)})},e.prototype.updateAxisOptions=function(t,e){var i=t.options.vertical,o=this.groupAxes(this.panes),r=(i?o.y:o.x).indexOf(t);Qs(this.options,r,i,e),Qs(this.originalOptions,r,i,e)},e.prototype.crosshairOptions=function(t){return Object.assign({},t.options.crosshair,{zIndex:0})},e}(qr);function Qs(t,e,i,o){j([].concat(i?t.yAxis:t.xAxis)[e],o)}Bt(Js,{xAxis:{},yAxis:{}}),j(Js.prototype,Kr);var $s=Js,ta="color",ea="first",ia="max";Vn.current.register(wn,[Ji,Qi,$i,eo,"area","verticalArea","candlestick","ohlc","bullet","verticalBullet","boxPlot","verticalBoxPlot","rangeColumn","rangeBar","waterfall","horizontalWaterfall","rangeArea","verticalRangeArea"]),Vn.current.register(ts,["scatter","scatterLine","bubble"]),Vn.current.register(cs,[to]),Vn.current.register(gs,["donut"]),Vn.current.register(Ws,["funnel"]),Vn.current.register(ks,["polarArea","polarLine","polarScatter"]),Vn.current.register(Gs,["radarArea","radarColumn","radarLine"]),Vn.current.register($s,["heatmap"]),Ni.current.register([Ji,Qi,$i,eo,"area","verticalArea"],[y],["category",ta,"noteText","errorLow","errorHigh"]),Ni.current.register(["rangeColumn","rangeBar","rangeArea","verticalRangeArea"],["from","to"],["category",ta,"noteText"]),Ni.current.register(["waterfall","horizontalWaterfall"],[y],["category",ta,"noteText","summary"]),Ni.current.register(["polarArea","polarLine","polarScatter"],[m,x],[ta]),Ni.current.register(["radarArea","radarColumn","radarLine"],[y],[ta]),Ni.current.register(["funnel"],[y],["category",ta,"visibleInLegend","visible"]),Jr.current.register([Ji,Qi,$i,eo,"area","verticalArea","waterfall","horizontalWaterfall"],{value:ia,color:ea,noteText:ea,errorLow:"min",errorHigh:ia}),Jr.current.register(["rangeColumn","rangeBar","rangeArea","verticalRangeArea"],{from:"min",to:ia,color:ea,noteText:ea}),Jr.current.register(["radarArea","radarColumn","radarLine"],{value:ia,color:ea}),Ni.current.register(["scatter","scatterLine","bubble"],[m,x],[ta,"noteText","xErrorLow","xErrorHigh","yErrorLow","yErrorHigh"]),Ni.current.register(["bubble"],[m,x,"size"],[ta,"category","noteText"]),Ni.current.register(["heatmap"],[m,x,y],[ta,"noteText"]),Ni.current.register(["candlestick","ohlc"],["open","high","low","close"],["category",ta,"downColor","noteText"]),Jr.current.register(["candlestick","ohlc"],{open:ia,high:ia,low:"min",close:ia,color:ea,downColor:ea,noteText:ea}),Ni.current.register(["boxPlot","verticalBoxPlot"],["lower","q1","median","q3","upper","mean","outliers"],["category",ta,"noteText"]),Jr.current.register(["boxPlot","verticalBoxPlot"],{lower:ia,q1:ia,median:ia,q3:ia,upper:ia,mean:ia,outliers:ea,color:ea,noteText:ea}),Ni.current.register(["bullet","verticalBullet"],["current","target"],["category",ta,"visibleInLegend","noteText"]),Jr.current.register(["bullet","verticalBullet"],{current:ia,target:ia,color:ea,noteText:ea}),Ni.current.register([to,"donut"],[y],["category",ta,"explode","visibleInLegend","visible"]);var oa=["category",y,m,x],ra=function(t){function e(e,i,o,r){var n=this;void 0===r&&(r={}),t.call(this),this.observers=[],this.addObserver(r.observer),this.chartService=new Z(this,r),this.chartService.theme=o,this._initElement(e);var s=j({},this.options,i);this._originalOptions=j({},s),this._theme=o,this._initTheme(s,o),this._initHandlers(),this._initSurface(),this.bindCategories(),It.preloadFonts(i,(function(){n.fontLoaded=!0,n._destroyed||(n.trigger("init"),n._redraw(),n._attachEvents())}))}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype._initElement=function(t){for(this._setElementClass(t),t.style.position="relative";t.firstChild;)t.removeChild(t.firstChild);this.element=t},e.prototype._setElementClass=function(t){b(t,"k-chart")},e.prototype._initTheme=function(t,e){for(var i=[],o=t.series||[],r=0;r<o.length;r++)i.push(Object.assign({},o[r]));t.series=i,function(t){for(var e=oa,i=0;i<e.length;i++){var o=e[i]+"Axes";t[o]&&(t[e[i]+"Axis"]=t[o],delete t[o])}}(t),this.applyDefaults(t,e),null===t.seriesColors&&delete t.seriesColors,this.options=j({},e,t),this.applySeriesColors()},e.prototype.getSize=function(){var t=this.options.chartArea||{};return{width:t.width?parseInt(t.width,10):Math.floor(this.element.offsetWidth),height:t.height?parseInt(t.height,10):Math.floor(this.element.offsetHeight)}},e.prototype.resize=function(t){var e=this.getSize(),i=this._size,o=e.width>0||e.height>0;t||o&&(!i||e.width!==i.width||e.height!==i.height)?(this._size=e,this._resize(e,t),this.trigger("resize",e)):o&&this._selections&&zt(this._selections,(function(t){return!t.visible}))&&(this._destroySelections(),this._setupSelection())},e.prototype._resize=function(){this._noTransitionsRedraw()},e.prototype.redraw=function(t){if(this.applyDefaults(this.options),this.applySeriesColors(),t){var e=this._model._plotArea,i=e.findPane(t);e.redraw(i)}else this._redraw()},e.prototype.getAxis=function(t){return Li(t,this._plotArea.axes)},e.prototype.findAxisByName=function(t){return this.getAxis(t)},e.prototype.findPaneByName=function(t){for(var e=this._plotArea.panes,i=0;i<e.length;i++)if(e[i].options.name===t)return new Vi(e[i])},e.prototype.findPaneByIndex=function(t){var e=this._plotArea.panes;if(e[t])return new Vi(e[t])},e.prototype.plotArea=function(){return new Ei(this._plotArea)},e.prototype.toggleHighlight=function(t,e){var i,o,r,n=this._plotArea,s=(n.srcSeries||n.series||[])[0];T(e)?i=n.filterPoints(e):(I(e)?(o=e.series,r=e.category):o=r=e,i="donut"===s.type?na(n.pointsBySeriesName(o),r):s.type===to||"funnel"===s.type?na((n.charts[0]||{}).points,r):n.pointsBySeriesName(o));i&&this.togglePointsHighlight(t,i)},e.prototype.togglePointsHighlight=function(t,e){for(var i=this._highlight,o=0;o<e.length;o++)i.togglePointHighlight(e[o],t)},e.prototype.showTooltip=function(t){var e,i,o=this._sharedTooltip(),r=this._tooltip,n=this._plotArea;if(T(t)?(e=n.findPoint(t))&&o&&(i=e.categoryIx):o&&xt(t)&&(i=n.categoryAxis.categoryIndex(t)),o){if(i>=0){var s=this._plotArea.pointsByCategoryIndex(i);r.showAt(s)}}else e&&r.show(e)},e.prototype.hideTooltip=function(){this._tooltip.hide()},e.prototype._initSurface=function(){var t=this.surface,e=this._surfaceWrap(),i=this.options.chartArea||{};i.width&&wt(e,{width:i.width}),i.height&&wt(e,{height:i.height}),t&&t.options.type===this.options.renderAs?(this.surface.clear(),this.surface.resize()):(this._destroySurface(),this.surface=A.drawing.Surface.create(e,{type:this.options.renderAs}),this.surface.bind("mouseenter",this._surfaceMouseenterHandler),this.surface.bind("mouseleave",this._surfaceMouseleaveHandler))},e.prototype._surfaceWrap=function(){return this.element},e.prototype._redraw=function(){var t=this._getModel();this._size={width:t.options.width,height:t.options.height},this._destroyView(),this._model=t,this._plotArea=t._plotArea,t.renderVisual(),!1!==this.options.transitions&&t.traverse((function(t){t.animation&&t.animation.setup()})),this._initSurface(),this.surface.draw(t.visual),!1!==this.options.transitions&&t.traverse((function(t){t.animation&&t.animation.play()})),this._tooltip=this._createTooltip(),this._highlight=new An,this._setupSelection(),this._createPannable(),this._createZoomSelection(),this._createMousewheelZoom(),this.trigger("render"),ca(this._plotArea.panes),this._navState||this._cancelDomEvents()},e.prototype.exportVisual=function(t){var e;if(t&&(t.width||t.height||t.options)){var i=this.options,o=j({},t.options,{chartArea:{width:t.width,height:t.height}});ha(this._originalOptions,o),this.options=j({},this._originalOptions,o),this._initTheme(this.options,this._theme),this.bindCategories();var r=this._getModel();r.renderVisual(),ca(r._plotArea.panes),e=r.visual,this.options=i}else e=this.surface.exportVisual();return e},e.prototype._sharedTooltip=function(){return this._plotArea instanceof wn&&this.options.tooltip&&this.options.tooltip.shared},e.prototype._createPannable=function(){var t=this.options;!1!==t.pannable&&(this._pannable=new Mn(this._plotArea,t.pannable))},e.prototype._createZoomSelection=function(){var t=this.options.zoomable,e=(t||{}).selection;!1!==t&&!1!==e&&(this._zoomSelection=new Tn(this,e))},e.prototype._createMousewheelZoom=function(){var t=this.options.zoomable,e=(t||{}).mousewheel;!1!==t&&!1!==e&&(this._mousewheelZoom=new Rn(this,e))},e.prototype._toggleDragZoomEvents=function(){var t=this.options.pannable,e=this.options.zoomable,i=(e||{}).selection,o=(e||{}).mousewheel,r=!(t||!1!==e&&!1!==i||this.requiresHandlers(["dragStart","drag","dragEnd"])),n=(!1===e||!1===o)&&!this.requiresHandlers(["zoomStart","zoom","zoomEnd"]),s=this.element;this._dragZoomEnabled&&r&&n?(s.style.touchAction=this._touchAction||"",this._dragZoomEnabled=!1):this._dragZoomEnabled||r&&n||(s.style.touchAction="none",this._dragZoomEnabled=!0),this._toggleDomEvents(!r,!n)},e.prototype._toggleDomEvents=function(t,e){var i=this.domEvents;i&&(i.toggleDrag&&i.toggleDrag(t),i.toggleZoom&&i.toggleZoom(e))},e.prototype._createTooltip=function(){var t=this.options.tooltip;return this._sharedTooltip()?this._createSharedTooltip(t):new Fn(this.chartService,t)},e.prototype._createSharedTooltip=function(t){return new Nn(this._plotArea,t)},e.prototype.applyDefaults=function(t,e){!function(t,e){var i,o,r,n=(e||{}).axisDefaults||{};function s(t){var e=(t||{}).color||o.color,r=j({},n,n[i],o,o[i],{line:{color:e},labels:{color:e},title:{color:e}},t);return delete r[i],r}for(var a=0;a<oa.length;a++)i=oa[a]+"Axis",o=t.axisDefaults||{},r=(r=[].concat(t[i])).map(s),t[i]=r.length>1?r:r[0]}(t,e),function(t,e){var i=t.series,o=i.length,r=t.seriesDefaults,n=j({},t.seriesDefaults),s=e?j({},e.seriesDefaults):{},a=j({},s);sa(n),sa(a);for(var p=0;p<o;p++){var h=i[p].type||t.seriesDefaults.type,c=j({data:[]},a,s[h],{tooltip:t.tooltip},n,r[h]);i[p]._defaults=c,i[p]=j({},c,i[p]),i[p].data=i[p].data||[]}}(t,e)},e.prototype.applySeriesColors=function(){for(var t=this.options,e=t.series,i=t.seriesColors||[],o=0;o<e.length;o++){var r=e[o],n=i[o%i.length],s=r._defaults;r.color=r.color||n,s&&(s.color=s.color||n)}},e.prototype._getModel=function(){var t=this.options,e=this._createPlotArea(),i=new ue(this._modelOptions());return i.chart=this,i._plotArea=e,we.buildTitle(t.title,i),t.legend&&t.legend.visible&&i.append(new Ln(e.options.legend,this.chartService)),i.append(e),i.reflow(),i},e.prototype._modelOptions=function(){var t=this.options,e=this.getSize();return j({transitions:t.transitions,width:e.width||600,height:e.height||400},t.chartArea)},e.prototype._createPlotArea=function(t){var e=this.options;return Vn.current.create(t?[]:e.series,e,this.chartService)},e.prototype._setupSelection=function(){for(var t=this._plotArea.axes,e=this._selections=[],i=0;i<t.length;i++){var o=t[i],r=o.options;if(o instanceof Qe&&r.select&&!r.vertical){var n=o.range(),s=new Un(this,o,j({min:n.min,max:n.max},r.select));e.push(s)}}},e.prototype._selectStart=function(t){return this.trigger("selectStart",t)},e.prototype._select=function(t){return this.trigger("select",t)},e.prototype._selectEnd=function(t){return this.trigger("selectEnd",t)},e.prototype._initHandlers=function(){this._clickHandler=this._click.bind(this),this._mousewheelHandler=this._mousewheel.bind(this),this._mouseleaveHandler=this._mouseleave.bind(this),this._surfaceMouseenterHandler=this._mouseover.bind(this),this._surfaceMouseleaveHandler=this._mouseout.bind(this),this._mousemove=Object(A.throttle)(this._mousemove.bind(this),20)},e.prototype.addObserver=function(t){t&&this.observers.push(t)},e.prototype.removeObserver=function(t){var e=this.observers.indexOf(t);e>=0&&this.observers.splice(e,1)},e.prototype.requiresHandlers=function(t){for(var e=this.observers,i=0;i<e.length;i++)if(e[i].requiresHandlers(t))return!0},e.prototype.trigger=function(t,e){void 0===e&&(e={}),"showTooltip"===t&&(e.anchor.point=this._toDocumentCoordinates(e.anchor.point)),e.sender=this;for(var i=this.observers,o=!1,r=0;r<i.length;r++)i[r].trigger(t,e)&&(o=!0);return o},e.prototype._attachEvents=function(){var t,e,i=this.element;this._touchAction=i.style.touchAction,mt(i,((t={}).contextmenu=this._clickHandler,t[oo]=this._mousewheelHandler,t.mouseleave=this._mouseleaveHandler,t)),this._shouldAttachMouseMove()&&mt(i,((e={}).mousemove=this._mousemove,e)),this.domEvents=Q.create(this.element,{start:this._start.bind(this),move:this._move.bind(this),end:this._end.bind(this),tap:this._tap.bind(this),gesturestart:this._gesturestart.bind(this),gesturechange:this._gesturechange.bind(this),gestureend:this._gestureend.bind(this)}),this._toggleDragZoomEvents()},e.prototype._mouseleave=function(t){this._hoveredPoint&&(this._hoveredPoint.out(this,t),this._hoveredPoint=null),this._plotArea.hovered&&(this.trigger("plotAreaLeave"),this._plotArea.hovered=!1)},e.prototype._cancelDomEvents=function(){this.domEvents&&this.domEvents.cancel&&this.domEvents.cancel()},e.prototype._gesturestart=function(t){this._mousewheelZoom&&!this._stopChartHandlers(t)&&(this._gestureDistance=t.distance,this._unsetActivePoint(),this.surface.suspendTracking())},e.prototype._gestureend=function(t){this._zooming&&!this._stopChartHandlers(t)&&(this.surface&&this.surface.resumeTracking(),this._zooming=!1,this.trigger("zoomEnd",{}))},e.prototype._gesturechange=function(t){var e=this._mousewheelZoom;if(e&&!this._stopChartHandlers(t)){t.preventDefault();var i=this._gestureDistance,o=-t.distance/i+1;if(Math.abs(o)>=.1){o=Math.round(10*o),this._gestureDistance=t.distance;var r={delta:o,axisRanges:aa(this._plotArea.axes),originalEvent:t};if(this._zooming||!this.trigger("zoomStart",r))this._zooming||(this._zooming=!0),(r.axisRanges=e.updateRanges(o))&&!this.trigger("zoom",r)&&e.zoom()}}},e.prototype._mouseout=function(t){if(t.element){var e=this._drawingChartElement(t.element,t);e&&e.leave&&e.leave(this,t.originalEvent)}},e.prototype._start=function(t){var e=this._eventCoordinates(t);!this._stopChartHandlers(t)&&this._plotArea.backgroundContainsPoint(e)&&(this.requiresHandlers(["dragStart","drag","dragEnd"])&&this._startNavigation(t,e,"dragStart"),this._pannable&&this._pannable.start(t)&&(this.surface.suspendTracking(),this._unsetActivePoint(),this._suppressHover=!0,this.chartService.panning=!0),this._zoomSelection&&this._zoomSelection.start(t)&&this.trigger("zoomStart",{axisRanges:aa(this._plotArea.axes),originalEvent:t}))},e.prototype._move=function(t){var e=this._navState,i=this._pannable;if(!this._stopChartHandlers(t)){if(i){var o=i.move(t);o&&!this.trigger("drag",{axisRanges:o,originalEvent:t})&&i.pan()}else if(e){for(var r={},n=e.axes,s=0;s<n.length;s++){var a=n[s];if(a.options.name){var p=a.options.vertical?t.y:t.x,h=p.startLocation-p.location;0!==h&&(r[a.options.name]=a.translateRange(h))}}e.axisRanges=r,this.trigger("drag",{axisRanges:r,originalEvent:t})}this._zoomSelection&&this._zoomSelection.move(t)}},e.prototype._end=function(t){if(!this._stopChartHandlers(t)){var e=this._pannable;if(e&&e.end(t)?(this.surface.resumeTracking(),this.trigger("dragEnd",{axisRanges:aa(this._plotArea.axes),originalEvent:t}),this._suppressHover=!1,this.chartService.panning=!1):this._endNavigation(t,"dragEnd"),this._zoomSelection){var i=this._zoomSelection.end(t);i&&!this.trigger("zoom",{axisRanges:i,originalEvent:t})&&(this._zoomSelection.zoom(),this.trigger("zoomEnd",{axisRanges:i,originalEvent:t}))}}},e.prototype._stopChartHandlers=function(t){var e=this._selections||[];if(!e.length)return!1;var i=this._eventCoordinates(t),o=this._plotArea.paneByPoint(i);if(o)for(var r=0;r<e.length;r++)if(e[r].onPane(o))return!0},e.prototype._mousewheel=function(t){var e=this,i=gt(t),o=this._mousewheelZoom,r=this._eventCoordinates(t);if(!this._stopChartHandlers(t)&&this._plotArea.backgroundContainsPoint(r))if(o){var n={delta:i,axisRanges:aa(this._plotArea.axes),originalEvent:t};!this._zooming&&this.trigger("zoomStart",n)||(t.preventDefault(),this._zooming||(this._unsetActivePoint(),this.surface.suspendTracking(),this._zooming=!0),this._mwTimeout&&clearTimeout(this._mwTimeout),n.axisRanges=o.updateRanges(i),n.axisRanges&&!this.trigger("zoom",n)&&o.zoom(),this._mwTimeout=setTimeout((function(){e.trigger("zoomEnd",n),e._zooming=!1,e.surface&&e.surface.resumeTracking()}),150))}else{var s=this._navState;if(!s)this._startNavigation(t,r,"zoomStart")||(s=this._navState);if(s){var a=s.totalDelta||i;s.totalDelta=a+i;for(var p=this._navState.axes,h={},c=0;c<p.length;c++){var l=p[c],u=l.options.name;u&&(h[u]=l.scaleRange(-a))}this.trigger("zoom",{delta:i,axisRanges:h,originalEvent:t}),this._mwTimeout&&clearTimeout(this._mwTimeout),this._mwTimeout=setTimeout((function(){e._endNavigation(t,"zoomEnd")}),150)}}},e.prototype._startNavigation=function(t,e,i){var o=this._model._plotArea,r=o.findPointPane(e),n=o.axes.slice(0);if(r){var s=aa(n);this.trigger(i,{axisRanges:s,originalEvent:t})?this._cancelDomEvents():(this._suppressHover=!0,this._unsetActivePoint(),this._navState={axisRanges:s,pane:r,axes:n})}},e.prototype._endNavigation=function(t,e){this._navState&&(this.trigger(e,{axisRanges:this._navState.axisRanges,originalEvent:t}),this._suppressHover=!1,this._navState=null)},e.prototype._getChartElement=function(t,e){var i=this.surface.eventTarget(t);if(i)return this._drawingChartElement(i,t,e)},e.prototype._drawingChartElement=function(t,e,i){for(var o,r=t;r&&!o;)o=r.chartElement,r=r.parent;if(o)return o.aliasFor&&(o=o.aliasFor(e,this._eventCoordinates(e))),i&&(o=o.closest(i))&&o.aliasFor&&(o=o.aliasFor()),o},e.prototype._eventCoordinates=function(t){var e=At(t);return this._toModelCoordinates(e.x,e.y)},e.prototype._elementPadding=function(){if(!this._padding){var t=V(this.element,["paddingLeft","paddingTop"]),e=t.paddingLeft,i=t.paddingTop;this._padding={top:i,left:e}}return this._padding},e.prototype._toDocumentCoordinates=function(t){var e=this._elementPadding(),i=bt(this.element);return{left:Ot(t.x+e.left+i.left),top:Ot(t.y+e.top+i.top)}},e.prototype._toModelCoordinates=function(t,e){var i=this.element,o=bt(i),r=this._elementPadding(),n=Gt(i).invert(),s=new A.geometry.Point(t-o.left-r.left,e-o.top-r.top).transform(n);return new Yt(s.x,s.y)},e.prototype._tap=function(t){var e=this,i=this.surface.eventTarget(t),o=this._drawingChartElement(i,t),r=this._sharedTooltip();this._startHover(i,t)||r||this._unsetActivePoint(),r&&this._trackSharedTooltip(this._eventCoordinates(t),t,!0),this._propagateClick(o,t),this.handlingTap=!0,setTimeout((function(){e.handlingTap=!1}),0)},e.prototype._click=function(t){var e=this._getChartElement(t);this._propagateClick(e,t)},e.prototype._propagateClick=function(t,e){for(var i=t;i;)i.click&&i.click(this,e),i=i.parent},e.prototype._startHover=function(t,e){if(this._suppressHover)return!1;var i=this._drawingChartElement(t,e,(function(t){return(t.hover||t.over)&&!(t instanceof qr)})),o=this._activePoint,r=this._plotArea.series.length>1,n=this._hasInactiveOpacity();return this._updateHoveredPoint(i,e),i&&o!==i&&i.hover?(this._activePoint=i,this._sharedTooltip()||i.hover(this,e)||(this._displayTooltip(i),n?this._displayInactiveOpacity(i,r):this._highlight.show(i))):!i&&n&&(r&&this._activeChartInstance&&(this._updateSeriesOpacity(i,!0),this._applySeriesOpacity(this._activeChartInstance.children,null,!0),this._activeChartInstance=null),this._highlight&&this._highlight.hide(),this._activePoint=null),i},e.prototype._displayTooltip=function(t){j({},this.options.tooltip,t.options.tooltip).visible&&this._tooltip.show(t)},e.prototype._displayInactiveOpacity=function(t,e,i){var o=this._activeChartInstance=this._chartInstanceFromPoint(t);if(o)if(e)this._updateSeriesOpacity(t),this._applySeriesOpacity(o.children,null,!0),this._applySeriesOpacity(o.children,t.series),this._highlight.show(i||t);else{var r;if(!o.supportsPointInactiveOpacity())return void this._highlight.show(t);(r=this._getInactivePoints(t,o))&&r.length&&this._highlight.show(r,1-this._getInactiveOpacityForSeries(t.series))}},e.prototype._getInactivePoints=function(t,e){return this._getAllPointsOfType(e,t.constructor).filter((function(e){return e!==t}))},e.prototype._getAllPointsOfType=function(t,e){for(var i=[],o=0;o<t.children.length;o++){var r=t.children[o];r.constructor===e?i.push(r):r.children&&r.children.length&&(i=i.concat(this._getAllPointsOfType(r,e)))}return i},e.prototype._updateHoveredPoint=function(t,e){var i=this._hoveredPoint;i&&i!==t&&(i.out(this,e),this._hoveredPoint=null),t&&i!==t&&t.over&&(this._hoveredPoint=t,t.over(this,e))},e.prototype._updateSeriesOpacity=function(t,e){for(var i=this._plotArea,o=i.series.length,r=0;r<o;r++){var n=i.series[r],s=this._getDefaultOpacityForSeries(n),a=this._getInactiveOpacityForSeries(n);e||n===t.series?(n.opacity=s,n.line&&(n.line.opacity=s)):(n.defaultOpacity=s,n.opacity=a,n.line&&(n.line.opacity=a))}},e.prototype._applySeriesOpacity=function(t,e,i,o){for(var r=0;r<t.length;r++){var n=t[r],s=n.series||o;if(s&&n.visual){var a=o?o.opacity:n.series.opacity;(s!==e||i)&&n.visual.opacity(i?1:a)}n.children&&n.children.length&&this._applySeriesOpacity(n.children,e,i,n.series)}},e.prototype._chartInstanceFromPoint=function(t){for(var e=t.parent;e&&!e.plotArea;)e=e.parent;return e},e.prototype._hasInactiveOpacity=function(){var t=void 0!==this.options.seriesDefaults.highlight.inactiveOpacity,e=this.options.series.filter((function(t){return void 0!==t.highlight.inactiveOpacity})).length>0;return t||e},e.prototype._getInactiveOpacityForSeries=function(t){var e=this.options.seriesDefaults.highlight.inactiveOpacity;return t.highlight.inactiveOpacity||e||t.opacity||1},e.prototype._getDefaultOpacityForSeries=function(t){return t.defaultOpacity||t.opacity||1},e.prototype._mouseover=function(t){var e,i=this._startHover(t.element,t.originalEvent);i&&i.tooltipTracking&&!this._mouseMoveTrackHandler&&!this._sharedTooltip()&&(this._mouseMoveTrackHandler=this._mouseMoveTracking.bind(this),mt(document,((e={}).mousemove=this._mouseMoveTrackHandler,e)))},e.prototype._mouseMoveTracking=function(t){var e,i=this.options,o=this._tooltip,r=this._highlight,n=this._activePoint,s=this._eventCoordinates(t);if(this._plotArea.box.containsPoint(s)){if(n&&n.tooltipTracking&&n.series&&n.parent.getNearestPoint){var a=n.parent.getNearestPoint(s.x,s.y,n.seriesIx);if(a&&a!==n)if(this._activePoint=a,!a.hover(this,t))j({},i.tooltip,a.options.tooltip).visible&&o.show(a),r.show(a)}}else Tt(document,((e={}).mousemove=this._mouseMoveTrackHandler,e)),this._unsetActivePoint(),this._mouseMoveTrackHandler=null},e.prototype._mousemove=function(t){var e=this._eventCoordinates(t),i=this._plotArea;if(this._trackCrosshairs(e),i.hover){var o=i.backgroundContainsPoint(e);o?(i.hovered=!0,this._plotArea.hover(this,t)):i.hovered&&!o&&(this.trigger("plotAreaLeave"),i.hovered=!1)}this._sharedTooltip()&&this._trackSharedTooltip(e,t)},e.prototype._trackCrosshairs=function(t){for(var e=this._plotArea.crosshairs,i=0;i<e.length;i++){var o=e[i];o.box.containsPoint(t)?o.showAt(t):o.hide()}},e.prototype._trackSharedTooltip=function(t,e,i){if(!this._suppressHover){var o=this.options.tooltip,r=this._plotArea,n=this._plotArea.categoryAxis,s=this._tooltip,a=this._highlight;if(r.backgroundContainsPoint(t)){var p=n.pointCategoryIndex(t);if(p!==this._tooltipCategoryIx||!this._sharedHighlight&&i){var h=r.pointsByCategoryIndex(p),c=h.map((function(t){return t.eventArgs(e)})),l=c[0]||{};l.categoryPoints=c,h.length>0&&!this.trigger("seriesHover",l)?(o.visible&&s.showAt(h,t),a.show(h),this._sharedHighlight=!0):s.hide(),this._tooltipCategoryIx=p}else i&&this._sharedHighlight&&(a.hide(),s.hide(),this._sharedHighlight=!1)}else this._sharedHighlight&&(a.hide(),s.hide(),this._tooltipCategoryIx=null,this._sharedHighlight=!1)}},e.prototype.hideElements=function(t){var e=this._plotArea;this._mousemove.cancel(),e.hideCrosshairs(),this._unsetActivePoint(t)},e.prototype._unsetActivePoint=function(t){var e=this._tooltip,i=this._highlight;this._activePoint=null,this._hoveredPoint=null,!e||t&&t.keepTooltipOpen||e.hide(),this._tooltipCategoryIx=null,this._sharedHighlight=!1,i&&i.hide()},e.prototype._deferRedraw=function(){this._redraw()},e.prototype._clearRedrawTimeout=function(){this._redrawTimeout&&(clearInterval(this._redrawTimeout),this._redrawTimeout=null)},e.prototype.bindCategories=function(){for(var t=this.options,e=[].concat(t.categoryAxis),i=0;i<e.length;i++){var o=e[i];!1!==o.autoBind&&this.bindCategoryAxisFromSeries(o,i)}},e.prototype.bindCategoryAxisFromSeries=function(t,e){for(var i,o=this.options.series,r=o.length,n=new ht,s=[],a=!1,p=0;p<r;p++){var h=o[p],c=h.categoryAxis===t.name||!h.categoryAxis&&0===e,l=h.data,u=l.length,d=h.categoryField&&c;if(a=d||a,d&&u>0)for(var f=(i=Lr(t,Fi(h.categoryField,l[0])))?Br:Fi,g=0;g<u;g++){var y=l[g],v=f(h.categoryField,y,this.chartService.intl);!i&&n.get(v)||(s.push([v,y]),i||n.set(v,!0))}}if(s.length>0){i&&(s=function(t,e){void 0===e&&(e=Ue);for(var i=function(t,e){void 0===e&&(e=Ue);for(var i=1,o=t.length;i<o;i++)if(e(t[i],t[i-1])<0){t.sort(e);break}return t}(t,e),o=i.length,r=o>0?[i[0]]:[],n=1;n<o;n++)0!==e(i[n],Ct(r))&&r.push(i[n]);return r}(s,(function(t,e){return Ue(t[0],e[0])})));var m=function(t){for(var e=t.length,i=[],o=0;o<e;o++)for(var r=t[o],n=r.length,s=0;s<n;s++)i[s]=i[s]||[],i[s].push(r[s]);return i}(s);t.categories=m[0]}else a&&(t.categories=[])},e.prototype._isBindable=function(t){for(var e=Ni.current.valueFields(t),i=!0,o=0;o<e.length;o++){var r=e[o];if(r===y?r="field":r+="Field",!xt(t[r])){i=!1;break}}return i},e.prototype._noTransitionsRedraw=function(){var t,e=this.options;!1!==e.transitions&&(e.transitions=!1,t=!0),this._redraw(),t&&(e.transitions=!0)},e.prototype._legendItemHover=function(t,e){var i,o=this._plotArea,r=this._highlight,n=(o.srcSeries||o.series)[t];if(i=ct(n.type,[to,"donut","funnel"])?o.findPoint((function(i){return i.series.index===t&&i.index===e})):o.pointsBySeriesIndex(t),this._hasInactiveOpacity()&&n.visible&&i){var s=o.series.length>1,a=i.length?i[0]:i;this._displayInactiveOpacity(a,s,i)}else r.show(i)},e.prototype._shouldAttachMouseMove=function(){return this._plotArea.crosshairs.length||this._tooltip&&this._sharedTooltip()||this.requiresHandlers(["plotAreaHover","plotAreaLeave"])},e.prototype.updateMouseMoveHandler=function(){var t,e;Tt(this.element,((t={}).mousemove=this._mousemove,t)),this._shouldAttachMouseMove()&&mt(this.element,((e={}).mousemove=this._mousemove,e))},e.prototype.applyOptions=function(t,e){ha(this._originalOptions,t),this._originalOptions=j(this._originalOptions,t),this.options=j({},this._originalOptions),e&&(this._theme=e,this.chartService.theme=e),this._initTheme(this.options,this._theme),this._toggleDragZoomEvents()},e.prototype.setOptions=function(t,e){this.applyOptions(t,e),this.bindCategories(),this.redraw(),this.updateMouseMoveHandler()},e.prototype.setDirection=function(t){this.chartService.rtl=Boolean(t),this.surface&&"svg"===this.surface.type&&this._destroySurface()},e.prototype.setIntlService=function(t){this.chartService.intl=t},e.prototype.noTransitionsRedraw=function(){this._noTransitionsRedraw()},e.prototype.destroy=function(){var t,e;this._destroyed=!0,Tt(this.element,((t={}).contextmenu=this._clickHandler,t[oo]=this._mousewheelHandler,t.mousemove=this._mousemove,t.mouseleave=this._mouseleaveHandler,t)),this.domEvents&&(this.domEvents.destroy(),delete this.domEvents),this._mouseMoveTrackHandler&&Tt(document,((e={}).mousemove=this._mouseMoveTrackHandler,e)),this._destroyView(),this._destroySurface(),this._clearRedrawTimeout()},e.prototype._destroySurface=function(){var t=this.surface;t&&(t.unbind("mouseenter",this._surfaceMouseenterHandler),t.unbind("mouseleave",this._surfaceMouseleaveHandler),t.destroy(),this.surface=null)},e.prototype._destroySelections=function(){var t=this._selections;if(t)for(;t.length>0;)t.shift().destroy()},e.prototype._destroyView=function(){var t=this._model;t&&(t.destroy(),this._model=null),this._unsetActivePoint(),this._destroySelections(),this._tooltip&&this._tooltip.destroy(),this._highlight&&this._highlight.destroy(),this._zoomSelection&&(this._zoomSelection.destroy(),delete this._zoomSelection),this._pannable&&(this._pannable.destroy(),delete this._pannable),this._mousewheelZoom&&(this._mousewheelZoom.destroy(),delete this._mousewheelZoom)},e}(A.Class);function na(t,e){if(t)for(var i=0;i<t.length;i++)if(t[i].category===e)return[t[i]]}function sa(t){delete t.bar,delete t.column,delete t.rangeColumn,delete t.line,delete t.verticalLine,delete t.pie,delete t.donut,delete t.area,delete t.verticalArea,delete t.scatter,delete t.scatterLine,delete t.bubble,delete t.candlestick,delete t.ohlc,delete t.boxPlot,delete t.bullet,delete t.verticalBullet,delete t.polarArea,delete t.polarLine,delete t.radarArea,delete t.radarLine,delete t.waterfall}function aa(t){for(var e={},i=0;i<t.length;i++){var o=t[i],r=o.options.name;r&&(e[r]=o.range())}return e}var pa=["data","categories"];function ha(t,e){for(var i in e)if(!ct(i,pa)&&e.hasOwnProperty(i)){var o=e[i],r=t[i];if(xt(r)){var n=null===o;n||!xt(o)?(delete t[i],n&&delete e[i]):r&&I(o)&&I(r)&&ha(r,o)}}}function ca(t){for(var e=0;e<t.length;e++)t[e].notifyRender()}Bt(ra,{renderAs:"",chartArea:{},legend:{visible:!0,labels:{}},categoryAxis:{},seriesDefaults:{type:Qi,data:[],highlight:{visible:!0},labels:{},negativeValues:{visible:!1}},series:[],seriesColors:null,tooltip:{visible:!1},transitions:!0,valueAxis:{},plotArea:{},title:{},xAxis:{},yAxis:{},panes:[{}],pannable:!1,zoomable:!1});var la=ra,ua=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype._slotAnchor=function(t,e){var i=this.plotArea.categoryAxis.options.vertical,o=i?{horizontal:"left",vertical:"center"}:{horizontal:"center",vertical:"bottom"};return{point:i?new Yt(this.plotArea.box.x2,e.center().y):new Yt(e.center().x,-2),align:o}},e.prototype._defaultAnchor=function(t,e){return this._slotAnchor({},e)},e}(Nn),da=[Ji,"bullet"];function fa(t){for(var e=[],i=0;i<t.length;i++){var o=t[i];e[i]=o.style.display,o.style.display="none"}return e}function ga(t,e){for(var i=0;i<t.length;i++)t[i].style.display=e[i]}function ya(t){return P(t)?[t]:t}var va=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype._setElementClass=function(t){b(t,"k-sparkline")},e.prototype._initElement=function(e){t.prototype._initElement.call(this,e),this._initialWidth=Math.floor(wt(e).width)},e.prototype._resize=function(){var e=this.element,i=fa(e.childNodes);this._initialWidth=Math.floor(wt(e).width),ga(e.childNodes,i),t.prototype._resize.call(this)},e.prototype._modelOptions=function(){var t=this.options,e=this._surfaceWrap(),i=fa(e.childNodes),o=document.createElement("span");o.innerHTML="&nbsp;",e.appendChild(o);var r=j({width:this._autoWidth,height:wt(e).height,transitions:t.transitions},t.chartArea,{inline:!0,align:!1});return wt(e,{width:r.width,height:r.height}),e.removeChild(o),ga(e.childNodes,i),this.surface&&this.surface.resize(),r},e.prototype._surfaceWrap=function(){if(!this.stage){var t=this.stage=document.createElement("span");this.element.appendChild(t)}return this.stage},e.prototype._createPlotArea=function(e){var i=t.prototype._createPlotArea.call(this,e);return this._autoWidth=this._initialWidth||this._calculateWidth(i),i},e.prototype._calculateWidth=function(t){for(var e=this.options,i=E(e.chartArea.margin),o=t.charts,r=this._surfaceWrap(),n=0,s=0;s<o.length;s++){var a=o[s],p=(a.options.series||[])[0];if(p){if(p.type===Ji)return 150;if("bullet"===p.type)return 150;if(p.type===to)return wt(r).height;var h=a.categoryAxis;if(h){var c=h.categoriesCount()*(!a.options.isStacked&&ct(p.type,[Qi,"verticalBullet"])?a.seriesOptions.length:1);n=Math.max(n,c)}}}var l=n*e.pointWidth;return l>0&&(l+=i.left+i.right),l},e.prototype._createSharedTooltip=function(t){return new ua(this._plotArea,t)},e.normalizeOptions=function(t){var e=ya(t);return(e=_(e)?{seriesDefaults:{data:e}}:j({},e)).series||(e.series=[{data:ya(e.data)}]),j(e,{seriesDefaults:{type:e.type}}),(ct(e.series[0].type,da)||ct(e.seriesDefaults.type,da))&&(e=j({},{categoryAxis:{crosshair:{visible:!1}}},e)),e},e}(la);Bt(va,{chartArea:{margin:2},axisDefaults:{visible:!1,majorGridLines:{visible:!1},valueAxis:{narrowRange:!0}},seriesDefaults:{type:"line",area:{line:{width:.5}},bar:{stack:!0},padding:2,width:.5,overlay:{gradient:null},highlight:{visible:!1},border:{width:0},markers:{size:2,visible:!1}},tooltip:{visible:!0,shared:!0},categoryAxis:{crosshair:{visible:!0,tooltip:{visible:!1}}},legend:{visible:!1},transitions:!1,pointWidth:5,panes:[{clip:!1}]});var ma=va,xa=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.setup=function(){this._initialOpacity=parseFloat(V(this.element,"opacity").opacity)},e.prototype.step=function(t){V(this.element,{opacity:String(lt(this._initialOpacity,0,t))})},e.prototype.abort=function(){t.prototype.abort.call(this),V(this.element,{display:"none",opacity:String(this._initialOpacity)})},e.prototype.cancel=function(){t.prototype.abort.call(this),V(this.element,{opacity:String(this._initialOpacity)})},e}(A.drawing.Animation);function _a(t,e){var i=document.createElement("div");return i.className=t,e&&(i.style.cssText=e),i}var ba=function(t){function e(e,i,o){t.call(this),this.options=j({},this.options,o),this.container=e,this.chartService=i;var r=V(e,["paddingLeft","paddingTop"]);this.chartPadding={top:r.paddingTop,left:r.paddingLeft},this.createElements(),e.appendChild(this.element)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.createElements=function(){var t=this.element=_a("k-navigator-hint","display: none; position: absolute; top: 1px; left: 1px;"),e=this.tooltip=_a("k-tooltip k-chart-tooltip"),i=this.scroll=_a("k-scroll");e.innerHTML="&nbsp;",t.appendChild(e),t.appendChild(i)},e.prototype.show=function(t,e,i){var o=this.element,r=this.options,n=this.scroll,s=this.tooltip,a=ze(He(t)+He(e-t)/2),p=.4*i.width(),h=i.center().x-p,c=(i.center().x-h)/(r.max-r.min),l=a-r.min,u=this.chartService.intl.format(r.format,t,e),d=it(r);this.clearHideTimeout(),this._visible||(V(o,{visibility:"hidden",display:"block"}),this._visible=!0),d&&(u=d({from:t,to:e})),s.innerHTML=u,V(s,{left:i.center().x-s.offsetWidth/2,top:i.y1});var f=V(s,["marginTop","borderTopWidth","height"]);V(n,{width:p,left:h+l*c,top:i.y1+f.marginTop+f.borderTopWidth+f.height/2}),V(o,{visibility:"visible"})},e.prototype.clearHideTimeout=function(){this._hideTimeout&&clearTimeout(this._hideTimeout),this._hideAnimation&&this._hideAnimation.cancel()},e.prototype.hide=function(){var t=this;this.clearHideTimeout(),this._hideTimeout=setTimeout((function(){t._visible=!1,t._hideAnimation=new xa(t.element),t._hideAnimation.setup(),t._hideAnimation.play()}),this.options.hideDelay)},e.prototype.destroy=function(){this.clearHideTimeout(),this.container&&this.container.removeChild(this.element),delete this.container,delete this.chartService,delete this.element,delete this.tooltip,delete this.scroll},e}(A.Class);Bt(ba,{format:"{0:d} - {1:d}",hideDelay:500});var wa=ba,Sa="_navigator",Aa=Sa;function Ca(){}var ka=function(t){function e(e){var i;t.call(this),this.chart=e;var o=this.options=j({},this.options,e.options.navigator),r=o.select;r&&(r.from=this.parseDate(r.from),r.to=this.parseDate(r.to)),xt(o.hint.visible)||(o.hint.visible=o.visible),this.chartObserver=new dt(this,((i={}).drag="_drag",i.dragEnd="_dragEnd",i.zoom="_zoom",i.zoomEnd="_zoomEnd",i)),e.addObserver(this.chartObserver)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.parseDate=function(t){return Xe(this.chart.chartService.intl,t)},e.prototype.clean=function(){this.selection&&(this.selection.destroy(),this.selection=null),this.hint&&(this.hint.destroy(),this.hint=null)},e.prototype.destroy=function(){this.chart&&(this.chart.removeObserver(this.chartObserver),delete this.chart),this.clean()},e.prototype.redraw=function(){this._redrawSelf(),this.initSelection()},e.prototype.initSelection=function(){var t,e=this.chart,i=this.options,o=this.mainAxis(),r=o.roundedRange(),n=r.min,s=r.max,a=i.select,p=a.from,h=a.to,c=a.mousewheel,l=(t=o,Ca.prototype=t,new Ca);0!==o.categoriesCount()&&(this.clean(),l.box=o.box,this.selection=new Un(e,l,{min:n,max:s,from:p||n,to:h||s,mousewheel:Rt(c,{zoom:"left"}),visible:i.visible},new dt(this,{selectStart:"_selectStart",select:"_select",selectEnd:"_selectEnd"})),i.hint.visible&&(this.hint=new wa(e.element,e.chartService,{min:n,max:s,template:it(i.hint),format:i.hint.format})))},e.prototype.setRange=function(){var t=this.chart._createPlotArea(!0).namedCategoryAxes[Aa].roundedRange(),e=t.min,i=t.max,o=this.options.select||{},r=o.from||e;r<e&&(r=e);var n=o.to||i;n>i&&(n=i),this.options.select=j({},o,{from:r,to:n}),this.filterAxes()},e.prototype._redrawSelf=function(t){var e=this.chart._plotArea;e&&e.redraw(Ct(e.panes),t)},e.prototype.redrawSlaves=function(){var t=this.chart,e=t._plotArea,i=e.panes.slice(0,-1);e.srcSeries=t.options.series,e.options.categoryAxis=t.options.categoryAxis,e.clearSeriesPointsCache(),e.redraw(i)},e.prototype._drag=function(t){var e,i=this.chart,o=this.selection,r=i._eventCoordinates(t.originalEvent),n=this.mainAxis(),s=n.roundedRange(),a=n.pane.box.containsPoint(r),p=i._plotArea.categoryAxis,h=t.axisRanges[p.options.name],c=this.options.select;if(h&&!a&&o){e=c.from&&c.to?He(c.to)-He(c.from):He(o.options.to)-He(o.options.from);var l=ze(kt(He(h.min),s.min,He(s.max)-e)),u=ze(kt(He(l)+e,He(s.min)+e,s.max));this.options.select={from:l,to:u},this.options.liveDrag&&(this.filterAxes(),this.redrawSlaves()),o.set(l,u),this.showHint(l,u)}},e.prototype._dragEnd=function(){this.filterAxes(),this.filter(),this.redrawSlaves(),this.hint&&this.hint.hide()},e.prototype.readSelection=function(){var t=this.selection.options,e=t.from,i=t.to,o=this.options.select;o.from=e,o.to=i},e.prototype.filterAxes=function(){var t=this.options.select;void 0===t&&(t={});for(var e=this.chart.options.categoryAxis,i=t.from,o=t.to,r=0;r<e.length;r++){var n=e[r];n.pane!==Sa&&(n.min=i,n.max=o)}},e.prototype.filter=function(){var t=this.chart,e=this.options.select;if(t.requiresHandlers(["navigatorFilter"])){var i=this.mainAxis(),o={from:e.from,to:e.to};if("category"!==i.options.type){var r=new ai(j({baseUnit:"fit"},t.options.categoryAxis[0],{categories:[e.from,e.to]}),t.chartService).options;o.from=Ee(r.min,-r.baseUnitStep,r.baseUnit),o.to=Ee(r.max,r.baseUnitStep,r.baseUnit)}this.chart.trigger("navigatorFilter",o)}},e.prototype._zoom=function(t){var e=this.chart._plotArea.categoryAxis,i=this.selection,o=this.options,r=o.select,n=o.liveDrag,s=this.mainAxis(),a=t.delta;if(i){var p=s.categoryIndex(i.options.from),h=s.categoryIndex(i.options.to);t.originalEvent.preventDefault(),Math.abs(a)>1&&(a*=3),h-p>1?(i.expand(a),this.readSelection()):(e.options.min=r.from,r.from=e.scaleRange(-t.delta).min),n&&(this.filterAxes(),this.redrawSlaves()),i.set(r.from,r.to),this.showHint(this.options.select.from,this.options.select.to)}},e.prototype._zoomEnd=function(t){this._dragEnd(t)},e.prototype.showHint=function(t,e){var i=this.chart._plotArea;this.hint&&this.hint.show(t,e,i.backgroundBox())},e.prototype._selectStart=function(t){return this.chart._selectStart(t)},e.prototype._select=function(t){return this.showHint(t.from,t.to),this.chart._select(t)},e.prototype._selectEnd=function(t){return this.hint&&this.hint.hide(),this.readSelection(),this.filterAxes(),this.filter(),this.redrawSlaves(),this.chart._selectEnd(t)},e.prototype.mainAxis=function(){var t=this.chart._plotArea;if(t)return t.namedCategoryAxes[Aa]},e.prototype.select=function(t,e){var i=this.options.select;return t&&e&&(i.from=this.parseDate(t),i.to=this.parseDate(e),this.filterAxes(),this.filter(),this.redrawSlaves(),this.selection.set(t,e)),{from:i.from,to:i.to}},e.setup=function(t,i){if(void 0===t&&(t={}),void 0===i&&(i={}),!t.__navi){t.__navi=!0;var o=j({},i.navigator,t.navigator),r=t.panes=[].concat(t.panes),n=j({},o.pane,{name:Sa});o.visible||(n.visible=!1,n.height=.1),r.push(n),e.attachAxes(t,o),e.attachSeries(t,o,i)}},e.attachAxes=function(t,e){var i=e.series||[],o=t.categoryAxis=[].concat(t.categoryAxis),r=t.valueAxis=[].concat(t.valueAxis),n=0===Ir(i,io).length,s=j({type:"date",pane:Sa,roundToBaseUnit:!n,justified:n,_collapse:!1,majorTicks:{visible:!0},tooltip:{visible:!1},labels:{step:1},autoBind:e.autoBindElements,autoBaseUnitSteps:{minutes:[1],hours:[1,2],days:[1,2],weeks:[],months:[1],years:[1]}}),a=e.categoryAxis;o.push(j({},s,{maxDateGroups:200},a,{name:Aa,title:null,baseUnit:"fit",baseUnitStep:"auto",labels:{visible:!1},majorTicks:{visible:!1}}),j({},s,a,{name:Aa+"_labels",maxDateGroups:20,baseUnitStep:"auto",labels:{position:""},plotBands:[],autoBaseUnitSteps:{minutes:[]},_overlap:!0}),j({},s,a,{name:Aa+"_ticks",maxDateGroups:200,majorTicks:{width:.5},plotBands:[],title:null,labels:{visible:!1,mirror:!0},_overlap:!0})),r.push(j({name:Aa,pane:Sa,majorGridLines:{visible:!1},visible:!1},e.valueAxis))},e.attachSeries=function(t,e,i){for(var o=t.series=t.series||[],r=[].concat(e.series||[]),n=i.seriesColors,s=e.seriesDefaults,a=0;a<r.length;a++)o.push(j({color:n[a%n.length],categoryField:e.dateField,visibleInLegend:!1,tooltip:{visible:!1}},s,r[a],{axis:Aa,categoryAxis:Aa,autoBind:e.autoBindElements}))},e}(A.Class),Pa=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.applyDefaults=function(e,i){var o=wt(this.element).width||600,r=i,n={seriesDefaults:{categoryField:e.dateField},axisDefaults:{categoryAxis:{name:"default",majorGridLines:{visible:!1},labels:{step:2},majorTicks:{visible:!1},maxDateGroups:Math.floor(o/28)}}};r&&(r=j({},r,n)),ka.setup(e,r),t.prototype.applyDefaults.call(this,e,r)},e.prototype._setElementClass=function(t){b(t,"k-chart k-stockchart")},e.prototype.setOptions=function(e){this.destroyNavigator(),t.prototype.setOptions.call(this,e)},e.prototype.noTransitionsRedraw=function(){var t=this.options.transitions;this.options.transitions=!1,this._fullRedraw(),this.options.transitions=t},e.prototype._resize=function(){this.noTransitionsRedraw()},e.prototype._redraw=function(){var t=this.navigator;!this._dirty()&&t&&t.options.partialRedraw?t.redrawSlaves():this._fullRedraw()},e.prototype._dirty=function(){var t=this.options,e=st([].concat(t.series,t.navigator.series),(function(t){return t&&t.visible})).length,i=this._seriesCount!==e;return this._seriesCount=e,i},e.prototype._fullRedraw=function(){var e=this.navigator;e||(e=this.navigator=new ka(this),this.trigger("navigatorCreated",{navigator:e})),e.clean(),e.setRange(),t.prototype._redraw.call(this),e.initSelection()},e.prototype._trackSharedTooltip=function(e){var i=this._plotArea.paneByPoint(e);i&&i.options.name===Sa?this._unsetActivePoint():t.prototype._trackSharedTooltip.call(this,e)},e.prototype.bindCategories=function(){t.prototype.bindCategories.call(this),this.copyNavigatorCategories()},e.prototype.copyNavigatorCategories=function(){for(var t,e=[].concat(this.options.categoryAxis),i=0;i<e.length;i++){var o=e[i];o.name===Aa?t=o.categories:t&&o.pane===Sa&&(o.categories=t)}},e.prototype.destroyNavigator=function(){this.navigator&&(this.navigator.destroy(),this.navigator=null)},e.prototype.destroy=function(){this.destroyNavigator(),t.prototype.destroy.call(this)},e.prototype._stopChartHandlers=function(e){var i=this._eventCoordinates(e),o=this._plotArea.paneByPoint(i);return t.prototype._stopChartHandlers.call(this,e)||o&&o.options.name===Sa},e.prototype._toggleDragZoomEvents=function(){this._dragZoomEnabled||(this.element.style.touchAction="none",this._dragZoomEnabled=!0)},e}(la);Bt(Pa,{dateField:"date",axisDefaults:{categoryAxis:{type:"date",baseUnit:"fit",justified:!0},valueAxis:{narrowRange:!0,labels:{format:"C"}}},navigator:{select:{},seriesDefaults:{markers:{visible:!1},tooltip:{visible:!0},line:{width:2}},hint:{},visible:!0},tooltip:{visible:!0},legend:{visible:!1}});var Ma=Pa,Oa=Math.PI/180;function Ta(t,e){var i=t.getOrigin(),o=t.getSize(),r=E(e);return t.setOrigin([i.x-r.left,i.y-r.top]),t.setSize([o.width+(r.left+r.right),o.height+(r.top+r.bottom)]),t}var Ra=A.drawing.Group,ja=A.drawing.Path,Ia=A.drawing.Text;function Ba(t,e){var i=t.box,o=t.children[0].box,r=e.border||{},n=e.background||"",s=ja.fromRect(new A.geometry.Rect([i.x1,i.y1],[i.width(),i.height()]),{stroke:{}}),a=new Ia(t.text,new A.geometry.Point(o.x1,o.y1),{font:e.font,fill:{color:e.color}}),p=Ta(a.bbox().clone(),e.padding),h=ja.fromRect(p,{stroke:{color:r.width?r.color:"",width:r.width,opacity:r.opacity,dashType:r.dashType,lineJoin:"round",lineCap:"round"},fill:{color:n}}),c=new Ra;return c.append(s),c.append(h),c.append(a),c}function La(t,e,i){var o=xt(t.from)?t.from:d,r=xt(t.to)?t.to:u;return t.from=Math.max(Math.min(r,o),e),t.to=Math.min(Math.max(r,o),i),t}function za(t,e){var i=E(e);return i.left=-i.left,i.top=-i.top,i.right=-i.right,i.bottom=-i.bottom,Ta(t,i)}var Va=A.drawing.Path,Ea=A.drawing.Surface,Da=function(t){function e(e,i,o,r){void 0===r&&(r={}),t.call(this),this.element=e,this.theme=o,this.contextService=new Z(this,r),this._originalOptions=j({},this.options,i),this.options=j({},this._originalOptions),this._initTheme(o),this.redraw()}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.destroy=function(){this.surface&&(this.surface.destroy(),this.surface=null),delete this.element,delete this.surfaceElement},e.prototype.value=function(t){var e=this.pointers[0];if(0===arguments.length)return e.value();e.value(t),this._setValueOptions(t)},e.prototype._draw=function(){var t=this.surface;t.clear(),t.draw(this._visuals)},e.prototype.exportVisual=function(){return this._visuals},e.prototype.allValues=function(t){var e=this.pointers,i=[];if(0===arguments.length){for(var o=0;o<e.length;o++)i.push(e[o].value());return i}if(_(t))for(var r=0;r<t.length;r++)P(t[r])&&e[r].value(t[r]);this._setValueOptions(t)},e.prototype._setValueOptions=function(t){for(var e=[].concat(this.options.pointer),i=[].concat(t),o=0;o<i.length;o++)e[o].value=i[o]},e.prototype.resize=function(){this.noTransitionsRedraw()},e.prototype.noTransitionsRedraw=function(){var t=this.options.transitions;this._toggleTransitions(!1),this.redraw(),this._toggleTransitions(t)},e.prototype.redraw=function(){var t=this._surfaceSize(),e=new A.geometry.Rect([0,0],[t.width,t.height]);this._initSurface(),this.gaugeArea=this._createGaugeArea(),this._createModel();var i=za(e.bbox(),this._gaugeAreaMargin);this.reflow(i)},e.prototype.setOptions=function(t,e){this._originalOptions=j(this._originalOptions,t),this.options=j({},this._originalOptions),this._initTheme(e),this.redraw()},e.prototype.setDirection=function(t){this.contextService.rtl=Boolean(t),this.surface&&"svg"===this.surface.type&&(this.surface.destroy(),this.surface=null)},e.prototype.setIntlService=function(t){this.contextService.intl=t},e.prototype._initTheme=function(t){var e=t||this.theme||{};this.theme=e,this.options=j({},e,this.options);var i=this.options,o=i.pointer;if(_(o)){for(var r=[],n=0;n<o.length;n++)r.push(j({},e.pointer,o[n]));i.pointer=r}},e.prototype._createGaugeArea=function(){var t=this.options.gaugeArea,e=this.surface.size(),i=t.border||{},o=new A.geometry.Rect([0,0],[e.width,e.height]);return this._gaugeAreaMargin=t.margin||5,i.width>0&&(o=za(o,i.width)),Va.fromRect(o,{stroke:{color:i.width?i.color:"",width:i.width,dashType:i.dashType,lineJoin:"round",lineCap:"round"},fill:{color:t.background}})},e.prototype._initSurface=function(){var t=this.options,e=this.surface,i=this._surfaceElement(),o=this._surfaceSize();wt(i,o),e&&e.options.type===t.renderAs?(this.surface.clear(),this.surface.resize()):(e&&e.destroy(),this.surface=Ea.create(i,{type:t.renderAs}))},e.prototype._surfaceSize=function(){var t=this.options,e=this._getSize();return t.gaugeArea&&j(e,t.gaugeArea),e},e.prototype._surfaceElement=function(){return this.surfaceElement||(this.surfaceElement=document.createElement("div"),this.element.appendChild(this.surfaceElement)),this.surfaceElement},e.prototype.getSize=function(){return this._getSize()},e.prototype._getSize=function(){var t=this.element,e=this._defaultSize(),i=t.offsetWidth,o=t.offsetHeight;return i||(i=e.width),o||(o=e.height),{width:i,height:o}},e.prototype._defaultSize=function(){return{width:200,height:200}},e.prototype._toggleTransitions=function(t){this.options.transitions=t;for(var e=0;e<this.pointers.length;e++)this.pointers[e].options.animation.transitions=t},e}(A.Class);Bt(Da,{plotArea:{},theme:"default",renderAs:"",pointer:{},scale:{},gaugeArea:{}});var Ga=Da,Ua=A.drawing.Path,Fa=A.drawing.Group,Ha=A.geometry.Point;function Na(t,e){var i,o,r=t.position,n=t.tickX,s=t.tickY;return t.vertical?(i=new Ha(n,r),o=new Ha(n+e.size,r)):(i=new Ha(r,s),o=new Ha(r,s+e.size)),new Ua({stroke:{color:e.color,width:e.width}}).moveTo(i).lineTo(o)}function Wa(t,e,i,o){var r=e.length;if(o.visible)for(var n=i.mirror,s=i.lineBox,a=o.skip;a<r;a+=o.step)a%o.skipUnit!=0&&(i.tickX=n?s.x2:s.x2-o.size,i.tickY=n?s.y1-o.size:s.y1,i.position=e[a],t.append(Na(i,o)))}var qa=function(t){function e(e,i){var o=e||{};!xt(o.reverse)&&!1===o.vertical&&(i||{}).rtl&&(o=Object.assign({},o,{reverse:!0})),t.call(this,0,1,o,i),this.options.minorUnit=this.options.minorUnit||this.options.majorUnit/10}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.initUserOptions=function(t){var e=j({},this.options,t);return(e=j({},e,{labels:{mirror:e.mirror}})).majorUnit=e.majorUnit||Xt(e.min,e.max),e},e.prototype.initFields=function(){},e.prototype.render=function(){var t=this.elements=new Fa,e=this.renderLabels(),i=this.renderLine(),o=this.renderTicks(),r=this.renderRanges();return t.append(i,e,o,r),t},e.prototype.renderRanges=function(){for(var t=this.options,e=t.min,i=t.max,o=t.vertical,r=t.labels.mirror,n=t.ranges||[],s=new Fa,a=n.length,p=t.rangeSize||t.minorTicks.size/2,h=0;h<a;h++){var c=La(n[h],e,i),l=this.getSlot(c.from,c.to),u=o?this.lineBox():l,d=o?l:this.lineBox();o?u.x1-=p*(r?-1:1):d.y2+=p*(r?-1:1),s.append(Ua.fromRect(new A.geometry.Rect([u.x1,d.y1],[u.x2-u.x1,d.y2-d.y1]),{fill:{color:c.color,opacity:c.opacity},stroke:{}}))}return s},e.prototype.renderLabels=function(){for(var t=this.labels,e=this.options,i=new Fa,o=0;o<t.length;o++)i.append(Ba(t[o],e.labels));return i},e.prototype.renderLine=function(){var t=this.options.line,e=this.lineBox(),i=new Fa;if(t.width>0&&t.visible){var o=new Ua({stroke:{color:t.color,dashType:t.dashType,width:t.width}});o.moveTo(e.x1,e.y1).lineTo(e.x2,e.y2),i.append(o)}return i},e.prototype.renderTicks=function(){var t=new Fa,e=this.options,i=e.majorTicks.visible?e.majorUnit:0,o={vertical:e.vertical,mirror:e.labels.mirror,lineBox:this.lineBox()};return Wa(t,this.getMajorTickPositions(),o,e.majorTicks),Wa(t,this.getMinorTickPositions(),o,j({},{skipUnit:i/e.minorUnit},e.minorTicks)),t},e}(fi);Bt(qa,{min:0,max:50,majorTicks:{size:15,align:"inside",color:n,width:.5,visible:!0},minorTicks:{size:10,align:"inside",color:n,width:.5,visible:!0},line:{width:.5},labels:{position:"inside",padding:2},mirror:!1,_alignLines:!1});var Ka=qa,Xa=function(t){function e(e,i){t.call(this);var o=e.options,r=o.min,n=o.max,s=this.options=j({},this.options,i);s.fill=s.color,this.scale=e,xt(s.value)?s.value=kt(s.value,r,n):s.value=r}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.value=function(t){var e=this.options,i=e.value;if(0===arguments.length)return i;var o=this.scale.options,r=o.min,n=o.max;e._oldValue=xt(e._oldValue)?e.value:r,e.value=kt(t,r,n),this.elements&&this.repaint()},e}(A.Class);Bt(Xa,{color:n});var Ya=Xa,Za=function(t){function e(e,i){t.call(this,e,i),this.options=j({track:{visible:xt(i.track)}},this.options)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.reflow=function(){var t,e,i,o=this.options,r=this.scale,n=r.options,s=n.mirror,a=n.vertical,p=r.lineBox(),h=o.track.size||o.size,c=o.size/2,l=E(o.margin),u=a?l[s?"left":"right"]:l[s?"bottom":"top"];u=s?-u:u,a?(i=new Jt(p.x1+u,p.y1,p.x1+u,p.y2),s?i.x1-=h:i.x2+=h,"barPointer"!==o.shape&&(t=e=new Jt(p.x2+u,p.y1-c,p.x2+u,p.y2+c))):(i=new Jt(p.x1,p.y1-u,p.x2,p.y1-u),s?i.y2+=h:i.y1-=h,"barPointer"!==o.shape&&(t=e=new Jt(p.x1-c,p.y1-u,p.x2+c,p.y1-u))),this.trackBox=i,this.pointerRangeBox=e,this.box=t||i.clone().pad(o.border.width)},e.prototype.getElementOptions=function(){var t=this.options;return{fill:{color:t.color,opacity:t.opacity},stroke:xt(t.border)?{color:t.border.width?t.border.color||t.color:"",width:t.border.width,dashType:t.border.dashType,opacity:t.opacity}:null}},e.prototype._margin=function(){var t=this.scale,e=this.options,i=t.options,o=i.mirror,r=i.vertical,n=E(e.margin);return r?n[o?"left":"right"]:n[o?"bottom":"top"]},e}(Ya);Bt(Za,{shape:"barPointer",track:{border:{width:1}},color:n,border:{width:1},opacity:1,margin:E(3),animation:{type:"barPointer"},visible:!0});var Ja=Za,Qa=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.setup=function(){var t=this.options,e=t.margin,i=t.from,o=t.to,r=t.vertical,n=r?"x1":"y1";t.mirror===r?(i[n]-=e,o[n]-=e):(i[n]+=e,o[n]+=e);var s=this.fromScale=new A.geometry.Point(i.x1,i.y1),a=this.toScale=new A.geometry.Point(o.x1,o.y1);0!==t.duration&&(t.duration=Math.max(s.distanceTo(a)/t.duration*1e3,1))},e.prototype.step=function(t){var e=lt(this.fromScale.x,this.toScale.x,t),i=lt(this.fromScale.y,this.toScale.y,t);this.element.transform(A.geometry.transform().translate(e,i))},e}(A.drawing.Animation);Bt(Qa,{easing:"linear",duration:250}),A.drawing.AnimationFactory.current.register("arrowPointer",Qa);var $a=Qa,tp=A.geometry.Point,ep=A.drawing.Path,ip=function(t){function e(e,i){t.call(this,e,i),xt(this.options.size)||(this.options.size=.6*this.scale.options.majorTicks.size)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.pointerShape=function(){var t=this.scale,e=this.options.size,i=e/2,o=t.options.mirror?-1:1;return t.options.vertical?[new tp(0,0-i),new tp(0-o*e,0),new tp(0,0+i)]:[new tp(0-i,0),new tp(0,0+o*e),new tp(0+i,0)]},e.prototype.repaint=function(){var t=this.scale,e=this.options,i=new $a(this.elements,j(e.animation,{vertical:t.options.vertical,mirror:t.options.mirror,margin:this._margin(e.margin),from:t.getSlot(e._oldValue),to:t.getSlot(e.value)}));!1===e.animation.transitions&&(i.options.duration=0),i.setup(),i.play()},e.prototype.render=function(){var t=this.scale,e=this.options,i=this.getElementOptions(),o=this.pointerShape(e.value);e.animation.type="arrowPointer";var r=new ep({stroke:i.stroke,fill:i.fill}).moveTo(o[0]).lineTo(o[1]).lineTo(o[2]).close(),n=t.getSlot(e.value);return r.transform(A.geometry.transform().translate(n.x1,n.y1)),this.elements=r,r},e}(Ja),op=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.setup=function(){var t=this.options,e=this.axis=t.vertical?x:m,i=this.to=t.newPoints[0][e],o=this.from=t.oldPoints[0][e];0!==t.duration&&(t.duration=Math.max(Math.abs(i-o)/t.speed*1e3,1)),this._set(o)},e.prototype.step=function(t){var e=lt(this.from,this.to,t);this._set(e)},e.prototype._set=function(t){var e="set"+this.axis.toUpperCase(),i=this.options.newPoints;i[0][e](t),i[1][e](t)},e}(A.drawing.Animation);Bt(op,{easing:"linear",speed:250}),A.drawing.AnimationFactory.current.register("barPointer",op);var rp=op,np=A.drawing.Group,sp=A.drawing.Path,ap=function(t){function e(e,i){t.call(this,e,i),xt(this.options.size)||(this.options.size=.3*this.scale.options.majorTicks.size)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.pointerShape=function(t){var e=this.scale,i=this.options,o=e.options,r=o.mirror,n=o.vertical,s=r===n?-1:1,a=i.size*s,p=e.getSlot(e.options.min),h=e.getSlot(t),c=n?x:m,l=n?m:x,u=this._margin()*s,d=new A.geometry.Point;d[c]=p[c+"1"],d[l]=p[l+"1"];var f=new A.geometry.Point;f[c]=h[c+"1"],f[l]=h[l+"1"],n?(d.translate(u,0),f.translate(u,0)):(d.translate(0,u),f.translate(0,u));var g=f.clone(),y=d.clone();return n?(g.translate(a,0),y.translate(a,0)):(g.translate(0,a),y.translate(0,a)),[d,f,g,y]},e.prototype.repaint=function(){var t=this.scale,e=this.options,i=this.pointerShape(e.value),o=this.pointerPath,r=this.pointerShape(e._oldValue);o.moveTo(i[0]).lineTo(i[1]).lineTo(i[2]).lineTo(i[3]).close();var n=new rp(o,j(e.animation,{reverse:t.options.reverse,vertical:t.options.vertical,oldPoints:[r[1],r[2]],newPoints:[i[1],i[2]]}));!1===e.animation.transitions&&(n.options.duration=0),n.setup(),n.play()},e.prototype.render=function(){var t=new np,e=this.getElementOptions();this.options.track.visible&&t.append(this.renderTrack());var i=this.pointerPath=new sp({stroke:e.stroke,fill:e.fill});return t.append(i),this.elements=t,t},e.prototype.renderTrack=function(){var t=this.options.track,e=t.border||{},i=this.trackBox.clone().pad(e.width||0);return new sp.fromRect(i.toRect(),{fill:{color:t.color,opacity:t.opacity},stroke:{color:e.width?e.color||t.color:"",width:e.width,dashType:e.dashType}})},e}(Ja),pp=A.drawing.Group,hp=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.reflow=function(t){var e=this.pointers,i=t.origin.x,o=t.origin.y,r=new Jt(i,o,i+t.width(),o+t.height());this.scale.reflow(r),this._shrinkScaleWidth(r);for(var n=0;n<e.length;n++)e[n].reflow();this.bbox=this._getBox(r),this._alignElements(),this._shrinkElements(),this._buildVisual(),this._draw()},e.prototype._buildVisual=function(){var t=new pp,e=this.scale.render(),i=this.pointers;t.append(this.gaugeArea),t.append(e);for(var o=0;o<i.length;o++){var r=i[o];t.append(r.render()),r.value(r.options.value)}this._visuals=t},e.prototype._createModel=function(){var t=this.options,e=this.scale=new Ka(t.scale,this.contextService);this.pointers=[];var i=t.pointer;i=_(i)?i:[i];for(var o=0;o<i.length;o++){var r=j({},i[o],{animation:{transitions:t.transitions}}),n="arrow"===r.shape?ip:ap;this.pointers.push(new n(e,r))}},e.prototype._defaultSize=function(){var t=this.options.scale.vertical;return{width:t?60:200,height:t?200:60}},e.prototype._getBox=function(t){for(var e,i=this.scale,o=this.pointers,r=t.center(),n=o[0].box.clone().wrap(i.box),s=0;s<o.length;s++)n.wrap(o[s].box.clone());return i.options.vertical?(e=n.width()/2,n=new Jt(r.x-e,t.y1,r.x+e,t.y2)):(e=n.height()/2,n=new Jt(t.x1,r.y-e,t.x2,r.y+e)),n},e.prototype._alignElements=function(){for(var t,e=this.scale,i=this.pointers,o=e.box,r=i[0].box.clone().wrap(e.box),n=this.bbox,s=0;s<i.length;s++)r.wrap(i[s].box.clone());e.options.vertical?(t=n.center().x-r.center().x,e.reflow(new Jt(o.x1+t,n.y1,o.x2+t,n.y2))):(t=n.center().y-r.center().y,e.reflow(new Jt(o.x1,o.y1+t,o.x2,o.y2+t)));for(var a=0;a<i.length;a++)i[a].reflow(this.bbox)},e.prototype._shrinkScaleWidth=function(t){var e=this.scale;if(!e.options.vertical){var i=e.contentBox().width()-t.width();i>0&&(e.box.shrink(i,0),e.box.alignTo(t,"center"),e.reflow(e.box))}},e.prototype._shrinkElements=function(){for(var t=this.scale,e=this.pointers,i=t.box.clone(),o=t.options.vertical?"y":"x",r=e[0].box,n=0;n<e.length;n++)r.wrap(e[n].box.clone());i[o+1]+=Math.max(i[o+1]-r[o+1],0),i[o+2]-=Math.max(r[o+2]-i[o+2],0),t.reflow(i);for(var s=0;s<e.length;s++)e[s].reflow(this.bbox)},e}(Ga);Bt(hp,{transitions:!0,gaugeArea:{background:""},scale:{vertical:!0}});var cp=hp,lp=A.drawing.Arc,up=A.drawing.Path,dp=A.drawing.Group;function fp(t,e,i,o){var r=new dp,n=t.center,s=t.getRadiusX();if(o.visible)for(var a=0;a<e.length;a++){var p=t.pointAt(e[a]),h=new A.geometry.Point(n.x+s-o.size,n.y).rotate(e[a],n);r.append(new up({stroke:{color:o.color,width:o.width}}).moveTo(p).lineTo(h))}return r}function gp(t,e,i,o){return{from:t,to:e,color:i,opacity:o}}var yp=function(t){function e(e,i){t.call(this,0,1,e,i)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.initUserOptions=function(t){var e=j({},this.options,t);return e.majorUnit=e.majorUnit||Xt(e.min,e.max),e.minorUnit=e.minorUnit||e.majorUnit/10,e},e.prototype.initFields=function(){},e.prototype.render=function(t,e){var i=this.renderArc(t,e);this.bbox=i.bbox(),this.labelElements=this.renderLabels(),this.ticks=this.renderTicks(),this.ranges=this.renderRanges()},e.prototype.reflow=function(t){var e=t.center(),i=Math.min(t.height(),t.width())/2;if(!xt(this.bbox))return this.render(e,i);this.bbox=this.arc.bbox(),this.radius(this.arc.getRadiusX()),this.repositionRanges(),this.renderLabels()},e.prototype.slotAngle=function(t){var e=this.options,i=e.min,o=e.max,r=e.reverse,n=e.startAngle,s=e.endAngle,a=s-n;return(r?s-(t-i)/(o-i)*a:(t-i)/(o-i)*a+n)+180},e.prototype.hasRanges=function(){var t=this.options.ranges;return t&&t.length},e.prototype.ticksSize=function(){var t=this.options,e=t.majorTicks,i=t.minorTicks,o=0;return e.visible&&(o=e.size),i.visible&&(o=Math.max(i.size,o)),o},e.prototype.labelsCount=function(){var e=t.prototype.labelsCount.call(this),i=this.options;return i.endAngle-i.startAngle>=360&&i.max%i.majorUnit==0&&(e-=1),e},e.prototype.renderLabels=function(){var t=this.options,e=this.arc.clone(),i=e.getRadiusX(),o=this.tickAngles(e,t.majorUnit),r=t.rangeSize=t.rangeSize||.1*i,n=new dp,s=.05*i;xt(t.rangeDistance)?s=t.rangeDistance:t.rangeDistance=s;var a=t.labels,p="inside"===a.position,h=xt(this.labelElements);p&&(i-=this.ticksSize(),this.hasRanges()&&!h&&(i-=r+s),e.setRadiusX(i).setRadiusY(i));for(var c=this.labels,l=c.length,u=E(a.padding),d=(u.left+u.right)/2,f=(u.top+u.bottom)/2,g=0;g<l;g++){var y=c[g],v=y.box.width()/2,m=y.box.height()/2,x=o[g],_=(x-180)*Oa,b=e.pointAt(x),w=b.x+Math.cos(_)*(v+d)*(p?1:-1),S=b.y+Math.sin(_)*(m+f)*(p?1:-1);y.reflow(new Jt(w-v,S-m,w+v,S+m));var C=new A.geometry.Point(y.box.x1,y.box.y1),k=void 0;if(h){var P=(k=this.labelElements.children[g]).bbox().origin,M=k.transform()||A.geometry.transform();M.translate(C.x-P.x,C.y-P.y),k.transform(M)}else k=Ba(y,t.labels),n.append(k);this.bbox=A.geometry.Rect.union(this.bbox,k.bbox())}return n},e.prototype.repositionRanges=function(){var t=this.ranges.children;if(t.length>0){var e=this.options,i=e.rangeDistance,o=e.rangeSize,r=this.getRangeRadius();"inside"===this.options.labels.position&&(r+=o+i);for(var n=r+o/2,s=0;s<t.length;s++)t[s]._geometry.setRadiusX(n).setRadiusY(n);this.bbox=A.geometry.Rect.union(this.bbox,this.ranges.bbox())}},e.prototype.renderRanges=function(){var t=this.rangeSegments(),e=t.length,i=new dp;if(e){var o=this.options,r=o.rangeSize,n=o.reverse,s=o.rangeDistance,a=this.getRangeRadius();this.radius(this.radius()-r-s);for(var p=0;p<e;p++){var h=t[p],c=this.slotAngle(h[n?"to":"from"]),l=this.slotAngle(h[n?"from":"to"]);l-c!=0&&i.append(this.createRange(c,l,a,h))}}return i},e.prototype.createRange=function(t,e,i,o){var r=this.options.rangeSize,n=new A.geometry.Arc(this.arc.center,{radiusX:i+r/2,radiusY:i+r/2,startAngle:t,endAngle:e});return new lp(n,{stroke:{width:r,color:o.color,opacity:o.opacity,lineCap:o.lineCap}})},e.prototype.rangeSegments=function(){var t=this.options,e=t.ranges||[],i=e.length,o=[];if(i){var r=t.min,n=t.max,s=t.rangePlaceholderColor;o.push(gp(r,n,s));for(var a=0;a<i;a++)for(var p=La(e[a],r,n),h=o.length,c=0;c<h;c++){var l=o[c];if(l.from<=p.from&&p.from<=l.to){o.push(gp(p.from,p.to,p.color,p.opacity)),l.from<=p.to&&p.to<=l.to&&o.push(gp(p.to,l.to,s,p.opacity)),l.to=p.from;break}}}return o},e.prototype.getRangeRadius=function(){var t=this.arc,e=this.options,i=e.rangeSize,o=e.rangeDistance,r=e.majorTicks.size;return"outside"===e.labels.position?t.getRadiusX()-r-o-i:t.getRadiusX()-i},e.prototype.renderArc=function(t,e){var i=this.options;return this.arc=new A.geometry.Arc(t,{radiusX:e,radiusY:e,startAngle:i.startAngle+180,endAngle:i.endAngle+180})},e.prototype.renderTicks=function(){var t=this.arc,e=this.options,i=t.clone();this.majorTickAngles=this.tickAngles(t,e.majorUnit),this.majorTicks=fp(i,this.majorTickAngles,e.majorUnit,e.majorTicks);var o=new dp;o.append(this.majorTicks);var r=e.majorTicks.size,n=e.minorTicks.size;if(this._tickDifference=r-n,"outside"===e.labels.position){var s=i.getRadiusX();i.setRadiusX(s-r+n).setRadiusY(s-r+n)}return this.minorTickAngles=this.normalizeTickAngles(this.tickAngles(t,e.minorUnit)),this.minorTicks=fp(i,this.minorTickAngles,e.minorUnit,e.minorTicks),o.append(this.minorTicks),o},e.prototype.normalizeTickAngles=function(t){for(var e=this.options,i=e.majorUnit/e.minorUnit,o=t.length-1;o>=0;o--)o%i==0&&t.splice(o,1);return t},e.prototype.tickAngles=function(t,e){var i=this.options,o=i.reverse,r=i.max-i.min,n=t.endAngle-t.startAngle,s=r/e,a=t.startAngle,p=n/s;o&&(a+=n,p=-p),n>=360&&i.max%e==0&&(s-=1);for(var h=[],c=0;c<s;c++)h.push(Ot(a,3)),a+=p;return Ot(a)<=t.endAngle&&h.push(a),h},e.prototype.radius=function(t){if(!t)return this.arc.getRadiusX();this.arc.setRadiusX(t).setRadiusY(t),this.repositionTicks(this.majorTicks.children,this.majorTickAngles),this.repositionTicks(this.minorTicks.children,this.minorTickAngles,!0)},e.prototype.repositionTicks=function(t,e,i){var o=i&&this._tickDifference||0,r=this.arc,n=r.getRadiusX();i&&"outside"===this.options.labels.position&&0!==o&&(r=this.arc.clone()).setRadiusX(n-o).setRadiusY(n-o);for(var s=0;s<t.length;s++){var a=r.pointAt(e[s]),p=t[s].segments,h=a.x-p[0].anchor().x,c=a.y-p[0].anchor().y;t[s].transform((new A.geometry.transform).translate(h,c))}},e}(fi);Bt(yp,{min:0,max:100,majorTicks:{size:15,align:"inside",color:n,width:.5,visible:!0},minorTicks:{size:10,align:"inside",color:n,width:.5,visible:!0},startAngle:-30,endAngle:210,labels:{position:"inside",padding:2}});var vp=yp,mp=function(t){function e(e,i){t.call(this,e,i);var o=this.options;o.duration=Math.max(Math.abs(o.newAngle-o.oldAngle)/o.duration*1e3,1)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.step=function(t){var e=this.options,i=lt(e.oldAngle,e.newAngle,t);this.element.transform(A.geometry.transform().rotate(i,e.center))},e}(A.drawing.Animation);Bt(mp,{easing:"linear",duration:150}),A.drawing.AnimationFactory.current.register("radialPointer",mp);var xp=mp,_p=A.drawing.Circle,bp=A.drawing.Group,wp=A.drawing.Path,Sp=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.setAngle=function(t){this.elements.transform(A.geometry.transform().rotate(t,this.center))},e.prototype.repaint=function(){var t=this.scale,e=this.options,i=t.slotAngle(e._oldValue),o=t.slotAngle(e.value);!1===e.animation.transitions?this.setAngle(o):new xp(this.elements,j(e.animation,{oldAngle:i,newAngle:o})).play()},e.prototype.render=function(){var t=this.scale,e=this.options,i=new bp;return!1!==e.animation&&j(e.animation,{startAngle:0,center:t.arc.center,reverse:t.options.reverse}),i.append(this._renderNeedle(),this._renderCap()),this.elements=i,this.setAngle(Oa),i},e.prototype.reflow=function(t){var e=this.center=t.center,i=kt(this.options.length||1,.1,1.5),o=this.radius=t.getRadiusX()*i,r=this.capSize=Math.round(o*this.options.cap.size);this.bbox=A.geometry.Rect.fromPoints(new A.geometry.Point(e.x-r,e.y-r),new A.geometry.Point(e.x+r,e.y+r))},e.prototype._renderNeedle=function(){var t=this.scale.options.minorTicks.size,e=this.center,i=this.options.color,o=new wp({fill:{color:i},stroke:{color:i,width:.5}});return o.moveTo(e.x+this.radius-t,e.y).lineTo(e.x,e.y-this.capSize/2).lineTo(e.x,e.y+this.capSize/2).close(),o},e.prototype._renderCap=function(){var t=this.options,e=t.cap.color||t.color,i=new A.geometry.Circle(this.center,this.capSize);return new _p(i,{fill:{color:e},stroke:{color:e}})},e}(Ya);Bt(Sp,{cap:{size:.05},arrow:{width:16,height:14},animation:{type:"radialPointer",duration:150}});var Ap=Sp,Cp=A.drawing.Group,kp=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.reflow=function(t){var e=this.pointers;this.scale.reflow(t),this._initialPlotArea=this.scale.bbox;for(var i=0;i<e.length;i++)e[i].reflow(this.scale.arc),this._initialPlotArea=A.geometry.Rect.union(this._initialPlotArea,e[i].bbox);this.fitScale(t),this.alignScale(t),this._buildVisual(this.gaugeArea,e,this.scale),this._draw()},e.prototype._buildVisual=function(t,e,i){var o=this._visuals=new Cp;o.append(t),o.append(i.ticks),o.append(i.ranges),this._buildPointers(e),o.append(i.labelElements)},e.prototype._buildPointers=function(t){for(var e=0;e<t.length;e++){var i=t[e];i.render(),this._visuals.append(i.elements),i.value(i.options.value)}},e.prototype.fitScale=function(t){for(var e,i,o,r,n,s=this.scale.arc,a=this._initialPlotArea,p=Math.abs(this.getDiff(a,t)),h=Ot(p,3),c=Ot(-p,3),l=0,u=0;!(!(u++<100)||(l=n===o?l+1:0)>5||h!==r&&0<=(e=this.getPlotBox(h,t,s))&&e<=2||c!==r&&0<=(o=this.getPlotBox(c,t,s))&&o<=2||(r=e>0&&o>0?2*h:e<0&&o<0?2*c:Ot((h+c)/2||1,3),0<=(i=this.getPlotBox(r,t,s))&&i<=2));)n=o,i>0?(c=r,o=i):(h=r,e=i)},e.prototype.getPlotBox=function(t,e,i){var o=this.scale,r=this.pointers,n=i.getRadiusX(),s=i.clone();s.setRadiusX(n+t).setRadiusY(n+t),o.arc=s,o.reflow(e),this.plotBbox=o.bbox;for(var a=0;a<r.length;a++)r[a].reflow(s),this.plotBbox=A.geometry.Rect.union(this.plotBbox,r[a].bbox);return this.getDiff(this.plotBbox,e)},e.prototype.getDiff=function(t,e){return Math.min(e.width()-t.width(),e.height()-t.height())},e.prototype.alignScale=function(t){var e=this.plotBbox.center(),i=t.center(),o=e.x-i.x,r=e.y-i.y,n=this.scale,s=this.pointers;n.arc.center.x-=o,n.arc.center.y-=r,n.reflow(t);for(var a=0;a<s.length;a++)s[a].reflow(n.arc),this.plotBbox=A.geometry.Rect.union(n.bbox,s[a].bbox)},e.prototype._createModel=function(){var t=this.options,e=t.pointer,i=this.scale=new vp(t.scale,this.contextService);this.pointers=[];for(var o=_(e)?e:[e],r=0;r<o.length;r++){var n=new Ap(i,j({},o[r],{animation:{transitions:t.transitions}}));this.pointers.push(n)}},e}(Ga);Bt(kp,{transitions:!0,gaugeArea:{background:""}});var Pp=kp,Mp=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.rangeSegments=function(){var t=this.options;return[{from:t.min,to:t.max,color:t.rangePlaceholderColor,lineCap:t.rangeLineCap}]},e.prototype.hasRanges=function(){return!0},e.prototype.placeholderRangeAngle=function(t){var e=this.ranges.children[0].geometry();this.options.reverse?e.setEndAngle(t):e.setStartAngle(t)},e.prototype.addRange=function(t,e,i){var o=this.options.reverse,r=this.slotAngle(o?e:t),n=this.slotAngle(o?t:e),s=this.createRange(r,n,this.getRangeRadius(),i);return this.ranges.append(s),s},e}(vp);Bt(Mp,{min:0,max:100,majorTicks:{visible:!1},minorTicks:{visible:!1},labels:{visible:!1},startAngle:0,endAngle:180,rangeLineCap:"round"});var Op=Mp,Tp=function(t){function e(e,i){t.call(this,e,i);var o=this.options,r=Math.abs(o.newAngle-o.oldAngle)/o.duration*1e3;o.duration=kt(r,150,800);var n=e.elements.options.get("stroke.color"),s=e.currentColor();n!==s&&(this.startColor=new A.Color(n),this.color=new A.Color(s))}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.step=function(t){var e=this.options,i=this.startColor,o=this.color,r=lt(e.oldAngle,e.newAngle,t);if(this.element.angle(r),o){var n=Ot(lt(i.r,o.r,t)),s=Ot(lt(i.g,o.g,t)),a=Ot(lt(i.b,o.b,t));this.element.stroke(new A.Color(n,s,a).toHex())}},e}(A.drawing.Animation);Bt(Tp,{easing:"linear",duration:150}),A.drawing.AnimationFactory.current.register("radialRangePointer",Tp);var Rp=Tp,jp=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.repaint=function(){var t=this.scale,e=this.options,i=t.slotAngle(e._oldValue),o=t.slotAngle(e.value);this.animation&&this.animation.abort(),!1===e.animation.transitions?(this.angle(o),this.stroke(this.currentColor())):(this.animation=new Rp(this,j(e.animation,{oldAngle:i,newAngle:o})),this.animation.play())},e.prototype.angle=function(t){var e=this.elements.geometry();this.scale.options.reverse?e.setStartAngle(t):e.setEndAngle(t),this.scale.placeholderRangeAngle(t)},e.prototype.stroke=function(t){this.elements.stroke(t)},e.prototype.render=function(){if(!this.elements){var t=this.scale,e=this.options;!1!==e.animation&&j(e.animation,{startAngle:0,center:t.arc.center,reverse:t.options.reverse}),this.elements=t.addRange(t.options.min,this.options.value,{color:this.currentColor(),opacity:e.opacity,lineCap:t.options.rangeLineCap})}},e.prototype.currentColor=function(){var t=this.scale.options,e=t.min,i=t.max,o=this.options,r=o.colors,n=o.color,s=o.value,a=P(s)?s:e;if(r)for(var p=0;p<r.length;p++){var h=r[p],c=h.color,l=h.from;void 0===l&&(l=e);var u=h.to;if(void 0===u&&(u=i),l<=a&&a<=u)return c}return n},e.prototype.reflow=function(){this.render(),this.bbox=this.elements.bbox()},e}(Ya);Bt(jp,{animation:{type:"radialRangePointer",duration:150}});var Ip=jp,Bp=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype._initTheme=function(e){t.prototype._initTheme.call(this,e),this.options.color=this.options.color||(this.theme.pointer||{}).color},e.prototype._createModel=function(){var t=this.options,e=this.scale=new Op(t.scale,this.contextService),i=new Ip(e,j({},{colors:t.colors,color:t.color,value:t.value,opacity:t.opacity,animation:{transitions:t.transitions}}));this.pointers=[i]},e.prototype._buildPointers=function(t){for(var e=0;e<t.length;e++){var i=t[e];i.render(),i.value(i.options.value)}},e.prototype._setValueOptions=function(t){this.options.value=t},e.prototype.currentColor=function(){var t=this.pointers[0];if(t)return t.currentColor()},e.prototype.centerLabelPosition=function(t,e){var i=this.getSize(),o=this.scale.arc.center,r=o.x-t/2,n=o.y-e/2;if(t<i.width){var s=r+t;r=Math.max(r,0),s>i.width&&(r-=s-i.width)}if(e<i.height){var a=this.scale.bbox,p=a.bottomRight().y,h=n+e;n=Math.max(n,a.origin.y),h>p&&(n-=h-p)}return{left:r,top:n}},e}(Pp),Lp=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype._createModel=function(){var e=this.options.scale;"number"!=typeof e.startAngle&&(e.startAngle=90),e.endAngle=e.startAngle+360,t.prototype._createModel.call(this)},e}(Bp),zp=function(t){function e(e){t.call(this),this.setOptions(e),this.initProperties()}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.initProperties=function(){},e.prototype.setOptions=function(t){this.options=Object.assign({},this.options,t),this.quietZoneLength=this.options.addQuietZone?2*this.options.quietZoneLength:0},e.prototype.encode=function(t,e,i){var o=xt(t)?String(t):t;return this.initValue(o,e,i),this.options.addQuietZone&&this.addQuietZone(),this.addData(),this.options.addQuietZone&&this.addQuietZone(),{baseUnit:this.baseUnit,pattern:this.pattern}},e.prototype.initValue=function(){},e.prototype.addQuietZone=function(){this.pattern.push(this.options.quietZoneLength||10)},e.prototype.addData=function(){},e.prototype.invalidCharacterError=function(t){throw new Error("Character '"+t+"' is not valid for symbology "+this.name)},e}(A.Class);Bt(zp,{quietZoneLength:10,addQuietZone:!0,addCheckSum:!0});var Vp=Object.assign,Ep=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.initProperties=function(){t.prototype.initProperties.call(this),Vp(this,{name:"Code 11",characterMap:["111121","211121","121121","221111","112121","212111","122111","111221","211211","211111","112111"],cCheckSumTotal:10,kCheckSumTotal:9,kCheckSumMinLength:10,checkSumMod:11,DASH_VALUE:10,DASH:"-",START:"112211",STOP:"11221"})},e.prototype.initValue=function(t,e){this.pattern=[],this.value=t,this.width=e,this.totalUnits=0},e.prototype.addData=function(){var t=this.value;this.addPattern(this.START);for(var e=0;e<t.length;e++)this.addCharacter(t.charAt(e));this.options.addCheckSum&&this.addCheckSum(),this.addPattern(this.STOP),this.setBaseUnit()},e.prototype.setBaseUnit=function(){this.baseUnit=this.width/(this.totalUnits+this.quietZoneLength)},e.prototype.addCheckSum=function(){var t=this.value,e=t.length,i=this.getWeightedSum(t,e,this.cCheckSumTotal)%this.checkSumMod;if(this.checksum=String(i),this.addPattern(this.characterMap[i]),++e>=this.kCheckSumMinLength){var o=(i+this.getWeightedSum(t,e,this.kCheckSumTotal))%this.checkSumMod;this.checksum+=o,this.addPattern(this.characterMap[o])}},e.prototype.getWeightedSum=function(t,e,i){for(var o=0,r=0;r<t.length;r++)o+=this.weightedValue(this.getValue(t.charAt(r)),e,r,i);return o},e.prototype.weightedValue=function(t,e,i,o){return((e-i)%o||o)*t},e.prototype.getValue=function(t){return isNaN(t)?(t!==this.DASH&&this.invalidCharacterError(t),this.DASH_VALUE):parseInt(t,10)},e.prototype.addCharacter=function(t){var e=this.getValue(t),i=this.characterMap[e];this.addPattern(i)},e.prototype.addPattern=function(t){for(var e,i=0;i<t.length;i++)e=parseInt(t.charAt(i),10),this.pattern.push(e),this.totalUnits+=e},e}(zp);Bt(Ep,{addCheckSum:!0});var Dp=Object.assign,Gp=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.initProperties=function(){t.prototype.initProperties.call(this),Dp(this,{minBaseUnitLength:.7})},e.prototype.addData=function(){var t=this.value;this.addStart();for(var e=0;e<t.length;e++)this.addCharacter(t.charAt(e));this.options.addCheckSum&&this.pushCheckSum(),this.addStop(),this.prepareValues()},e.prototype.addCharacter=function(t){var e=this.characterMap[t];e||this.invalidCharacterError(t),this.addBase(e)},e.prototype.addBase=function(){},e}(zp),Up=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.initProperties=function(){t.prototype.initProperties.call(this),Dp(this,{name:"Code 39",checkSumMod:43,minRatio:2.5,maxRatio:3,gapWidth:1,splitCharacter:"|",patternMappings:{b:"1|",w:"1|",B:"ratio|",W:"ratio|"},characterMap:{0:{pattern:"bwbWBwBwb",value:0},1:{pattern:"BwbWbwbwB",value:1},2:{pattern:"bwBWbwbwB",value:2},3:{pattern:"BwBWbwbwb",value:3},4:{pattern:"bwbWBwbwB",value:4},5:{pattern:"BwbWBwbwb",value:5},6:{pattern:"bwBWBwbwb",value:6},7:{pattern:"bwbWbwBwB",value:7},8:{pattern:"BwbWbwBwb",value:8},9:{pattern:"bwBWbwBwb",value:9},A:{pattern:"BwbwbWbwB",value:10},B:{pattern:"bwBwbWbwB",value:11},C:{pattern:"BwBwbWbwb",value:12},D:{pattern:"bwbwBWbwB",value:13},E:{pattern:"BwbwBWbwb",value:14},F:{pattern:"bwBwBWbwb",value:15},G:{pattern:"bwbwbWBwB",value:16},H:{pattern:"BwbwbWBwb",value:17},I:{pattern:"bwBwbWBwb",value:18},J:{pattern:"bwbwBWBwb",value:19},K:{pattern:"BwbwbwbWB",value:20},L:{pattern:"bwBwbwbWB",value:21},M:{pattern:"BwBwbwbWb",value:22},N:{pattern:"bwbwBwbWB",value:23},O:{pattern:"BwbwBwbWb",value:24},P:{pattern:"bwBwBwbWb",value:25},Q:{pattern:"bwbwbwBWB",value:26},R:{pattern:"BwbwbwBWb",value:27},S:{pattern:"bwBwbwBWb",value:28},T:{pattern:"bwbwBwBWb",value:29},U:{pattern:"BWbwbwbwB",value:30},V:{pattern:"bWBwbwbwB",value:31},W:{pattern:"BWBwbwbwb",value:32},X:{pattern:"bWbwBwbwB",value:33},Y:{pattern:"BWbwBwbwb",value:34},Z:{pattern:"bWBwBwbwb",value:35},"-":{pattern:"bWbwbwBwB",value:36},".":{pattern:"BWbwbwBwb",value:37}," ":{pattern:"bWBwbwBwb",value:38},$:{pattern:"bWbWbWbwb",value:39},"/":{pattern:"bWbWbwbWb",value:40},"+":{pattern:"bWbwbWbWb",value:41},"%":{pattern:"bwbWbWbWb",value:42},START:{pattern:"bWbwBwBwb"}}})},e.prototype.initValue=function(t,e,i){this.width=e,this.height=i,this.value=t,this.dataLength=t.length,this.pattern=[],this.patternString=""},e.prototype.prepareValues=function(){var t,e=this.minBaseUnitLength,i=this.minRatio,o=Math.max(.15*this.width,24),r=this.maxRatio;if(this.height<o)throw new Error("Insufficient Height. The minimum height for value: "+this.value+" is: "+o);for(t=this.getBaseUnit(r);t<e&&r>i;)r=parseFloat((r-.1).toFixed(1)),t=this.getBaseUnit(r);if(t<e){var n=Math.ceil(this.getBaseWidth(i)*e);throw new Error("Insufficient width. The minimum width for value: "+this.value+" is: "+n)}this.ratio=r,this.baseUnit=t,this.patternString=this.patternString.substring(0,this.patternString.length-1),this.pattern=this.pattern.concat(this.patternString.replace(/ratio/g,r).split(this.splitCharacter))},e.prototype.getBaseUnit=function(t){return this.width/this.getBaseWidth(t)},e.prototype.getBaseWidth=function(t){var e=3*(t+2);return this.quietZoneLength+e*(this.dataLength+2)+this.gapWidth*(this.dataLength+1)},e.prototype.addStart=function(){this.addPattern(this.characterMap.START.pattern),this.addCharacterGap()},e.prototype.addBase=function(t){this.addPattern(t.pattern),this.addCharacterGap()},e.prototype.addStop=function(){this.addPattern(this.characterMap.START.pattern)},e.prototype.addPattern=function(t){for(var e=0;e<t.length;e++)this.patternString+=this.patternMappings[t.charAt(e)]},e.prototype.addCharacterGap=function(){this.patternString+=this.gapWidth+this.splitCharacter},e}(Gp);Bt(Up,{addCheckSum:!1});var Fp={addCharacter:function(t){this.characterMap[t]?this.addBase(this.characterMap[t]):t.charCodeAt(0)>127?this.invalidCharacterError(t):this.addExtended(t.charCodeAt(0))},addExtended:function(t){for(var e,i=0;i<this.extendedMappings.length;i++)if(e=this.extendedMappings[i].call(this,t)){for(var o=0;o<e.length;o++){var r=e[o];this.addBase(r)}return void(this.dataLength+=e.length-1)}},extendedMappings:[function(t){if(97<=t&&t<=122)return[this.characterMap[this.shiftCharacters[0]],this.characterMap[String.fromCharCode(t-32)]]},function(t){if(33<=t&&t<=58)return[this.characterMap[this.shiftCharacters[1]],this.characterMap[String.fromCharCode(t+32)]]},function(t){if(1<=t&&t<=26)return[this.characterMap[this.shiftCharacters[2]],this.characterMap[String.fromCharCode(t+64)]]},function(t){var e,i;if(this.specialAsciiCodes[t]){e=[];for(var o=0;o<this.specialAsciiCodes[t].length;o++)e.push(this.characterMap[this.shiftCharacters[3]]),e.push(this.characterMap[this.specialAsciiCodes[t][o]])}else i=6*Math.floor(t/32)+(t-27)%32+64,e=[this.characterMap[this.shiftCharacters[3]],this.characterMap[String.fromCharCode(i)]];return e}],specialAsciiCodes:{0:["U"],64:["V"],96:["W"],127:["T","X","Y","Z"]},shiftValuesAsciiCodes:{39:36,40:47,41:43,42:37},characterMap:{"+":!1,"/":!1,$:!1,"%":!1},shiftCharacters:["SHIFT0","SHIFT1","SHIFT2","SHIFT3"]},Hp=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.initProperties=function(){t.prototype.initProperties.call(this),j(this,Fp,{name:"Code 39 extended",characterMap:{SHIFT0:{pattern:"bWbwbWbWb",value:41},SHIFT1:{pattern:"bWbWbwbWb",value:40},SHIFT2:{pattern:"bWbWbWbwb",value:39},SHIFT3:{pattern:"bwbWbWbWb",value:42}}})},e}(Up),Np=Object.assign,Wp=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.initProperties=function(){t.prototype.initProperties.call(this),Np(this,{name:"Code 93",cCheckSumTotal:20,kCheckSumTotal:15,checkSumMod:47,characterMap:{0:{pattern:"131112",value:0},1:{pattern:"111213",value:1},2:{pattern:"111312",value:2},3:{pattern:"111411",value:3},4:{pattern:"121113",value:4},5:{pattern:"121212",value:5},6:{pattern:"121311",value:6},7:{pattern:"111114",value:7},8:{pattern:"131211",value:8},9:{pattern:"141111",value:9},A:{pattern:"211113",value:10},B:{pattern:"211212",value:11},C:{pattern:"211311",value:12},D:{pattern:"221112",value:13},E:{pattern:"221211",value:14},F:{pattern:"231111",value:15},G:{pattern:"112113",value:16},H:{pattern:"112212",value:17},I:{pattern:"112311",value:18},J:{pattern:"122112",value:19},K:{pattern:"132111",value:20},L:{pattern:"111123",value:21},M:{pattern:"111222",value:22},N:{pattern:"111321",value:23},O:{pattern:"121122",value:24},P:{pattern:"131121",value:25},Q:{pattern:"212112",value:26},R:{pattern:"212211",value:27},S:{pattern:"211122",value:28},T:{pattern:"211221",value:29},U:{pattern:"221121",value:30},V:{pattern:"222111",value:31},W:{pattern:"112122",value:32},X:{pattern:"112221",value:33},Y:{pattern:"122121",value:34},Z:{pattern:"123111",value:35},"-":{pattern:"121131",value:36},".":{pattern:"311112",value:37}," ":{pattern:"311211",value:38},$:{pattern:"321111",value:39},"/":{pattern:"112131",value:40},"+":{pattern:"113121",value:41},"%":{pattern:"211131",value:42},SHIFT0:{pattern:"122211",value:46},SHIFT1:{pattern:"311121",value:45},SHIFT2:{pattern:"121221",value:43},SHIFT3:{pattern:"312111",value:44},START:{pattern:"111141"},TERMINATION_BAR:"1"}})},e.prototype.initValue=function(t,e,i){this.value=t,this.width=e,this.height=i,this.pattern=[],this.values=[],this.dataLength=t.length},e.prototype.prepareValues=function(){var t=Math.max(.15*this.width,24);if(this.height<t)throw new Error("Insufficient Height");if(this.setBaseUnit(),this.baseUnit<this.minBaseUnitLength)throw new Error("Insufficient Width")},e.prototype.setBaseUnit=function(){this.baseUnit=this.width/(9*(this.dataLength+2+2)+this.quietZoneLength+1)},e.prototype.addStart=function(){var t=this.characterMap.START.pattern;this.addPattern(t)},e.prototype.addStop=function(){this.addStart(),this.pattern.push(this.characterMap.TERMINATION_BAR)},e.prototype.addBase=function(t){this.addPattern(t.pattern),this.values.push(t.value)},e.prototype.pushCheckSum=function(){var t,e=this._getCheckValues();this.checksum=e.join("");for(var i=0;i<e.length;i++)t=this.characterMap[this._findCharacterByValue(e[i])],this.addPattern(t.pattern)},e.prototype._getCheckValues=function(){var t,e,i=this.values,o=i.length,r=0;for(e=o-1;e>=0;e--)r+=this.weightedValue(i[e],o-e,this.cCheckSumTotal);for(t=r%this.checkSumMod,r=this.weightedValue(t,1,this.kCheckSumTotal),e=o-1;e>=0;e--)r+=this.weightedValue(i[e],o-e+1,this.kCheckSumTotal);return[t,r%this.checkSumMod]},e.prototype._findCharacterByValue=function(t){for(var e in this.characterMap)if(this.characterMap[e].value===t)return e},e.prototype.weightedValue=function(t,e,i){return(e%i||i)*t},e.prototype.addPattern=function(t){for(var e,i=0;i<t.length;i++)e=parseInt(t.charAt(i),10),this.pattern.push(e)},e}(Gp),qp=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.initProperties=function(){t.prototype.initProperties.call(this),j(this,Fp,{name:"Code 93 extended",pushCheckSum:function(){var t,e=this._getCheckValues();this.checksum=e.join("");for(var i=0;i<e.length;i++)if(t=e[i],this.shiftValuesAsciiCodes[t])this.addExtended(this.shiftValuesAsciiCodes[t]);else{var o=this._findCharacterByValue(t);this.addPattern(this.characterMap[o].pattern)}}})},e}(Wp),Kp=/^\d+$/,Xp=Object.assign,Yp=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.initProperties=function(){t.prototype.initProperties.call(this),Xp(this,{name:"Postnet",START:"2",VALID_CODE_LENGTHS:[5,9,11],DIGIT_SEPARATOR:"-",characterMap:["22111","11122","11212","11221","12112","12121","12211","21112","21121","21211"]})},e.prototype.initValue=function(t,e,i){this.height=i,this.width=e,this.baseHeight=i/2,this.value=t.replace(new RegExp(this.DIGIT_SEPARATOR,"g"),""),this.pattern=[],this.validate(this.value),this.checkSum=0,this.setBaseUnit()},e.prototype.addData=function(){var t=this.value;this.addPattern(this.START);for(var e=0;e<t.length;e++)this.addCharacter(t.charAt(e));this.options.addCheckSum&&this.addCheckSum(),this.addPattern(this.START),this.pattern.pop()},e.prototype.addCharacter=function(t){var e=this.characterMap[t];this.checkSum+=parseInt(t,10),this.addPattern(e)},e.prototype.addCheckSum=function(){this.checksum=(10-this.checkSum%10)%10,this.addCharacter(this.checksum)},e.prototype.setBaseUnit=function(){this.baseUnit=this.width/(10*(this.value.length+1)+3+this.quietZoneLength)},e.prototype.validate=function(t){if(Kp.test(t)||this.invalidCharacterError(t.match(/[^0-9]/)[0]),!ct(t.length,this.VALID_CODE_LENGTHS))throw new Error("Invalid value length. Valid lengths for the Postnet symbology are "+this.VALID_CODE_LENGTHS.join(","))},e.prototype.addPattern=function(t){for(var e,i=0;i<t.length;i++)e=this.height-this.baseHeight*t.charAt(i),this.pattern.push({width:1,y1:e,y2:this.height}),this.pattern.push(1)},e}(zp),Zp=/^\d+$/,Jp=/^[a-z0-9]+$/i,Qp=Object.assign,$p=function(t){function e(e){t.call(this),this.encoding=e,this.initProperties()}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.initProperties=function(){},e.prototype.addStart=function(){},e.prototype.is=function(){},e.prototype.isCode=function(){return!1},e.prototype.move=function(){},e.prototype.pushState=function(){},e}(A.Class),th=function(t){function e(e,i){t.call(this,e),this.states=i,this._initMoves(i)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.initProperties=function(){t.prototype.initProperties.call(this),j(this,{FNC4:"FNC4",SHIFT:98})},e.prototype.addStart=function(){this.encoding.addPattern(this.START)},e.prototype.is=function(t,e){var i=t.charCodeAt(e);return this.isCode(i)},e.prototype.move=function(t){for(var e=0;!this._moves[e].call(this,t)&&e<this._moves.length;)e++},e.prototype.pushState=function(t){var e,i=this.states,o=t.value,r=o.length;if(ct("C",i)){var n=o.substr(t.index).match(/\d{4,}/g);n&&(r=o.indexOf(n[0],t.index))}for(;(e=t.value.charCodeAt(t.index))>=0&&this.isCode(e)&&t.index<r;)this.encoding.addPattern(this.getValue(e)),t.index++},e.prototype._initMoves=function(t){this._moves=[],ct(this.FNC4,t)&&this._moves.push(this._moveFNC),ct(this.shiftKey,t)&&this._moves.push(this._shiftState),this._moves.push(this._moveState)},e.prototype._moveFNC=function(t){if(t.fnc)return t.fnc=!1,t.previousState===this.key},e.prototype._shiftState=function(t){if(t.previousState===this.shiftKey&&(t.index+1>=t.value.length||this.encoding[this.shiftKey].is(t.value,t.index+1)))return this.encoding.addPattern(this.SHIFT),t.shifted=!0,!0},e.prototype._moveState=function(){return this.encoding.addPattern(this.MOVE),!0},e}($p),eh={};eh.A=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.initProperties=function(){t.prototype.initProperties.call(this),Qp(this,{key:"A",shiftKey:"B",MOVE:101,START:103})},e.prototype.isCode=function(t){return 0<=t&&t<96},e.prototype.getValue=function(t){return t<32?t+64:t-32},e}(th),eh.B=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.initProperties=function(){t.prototype.initProperties.call(this),Qp(this,{key:"B",shiftKey:"A",MOVE:100,START:104})},e.prototype.isCode=function(t){return 32<=t&&t<128},e.prototype.getValue=function(t){return t-32},e}(th),eh.C=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.initProperties=function(){t.prototype.initProperties.call(this),Qp(this,{key:"C",MOVE:99,START:105})},e.prototype.addStart=function(){this.encoding.addPattern(this.START)},e.prototype.is=function(t,e){var i=ph(t,e,4);return(e+4<=t.length||2===t.length)&&Zp.test(i)},e.prototype.move=function(){this.encoding.addPattern(this.MOVE)},e.prototype.pushState=function(t){for(var e;(e=ph(t.value,t.index,2))&&Zp.test(e)&&2===e.length;)this.encoding.addPattern(parseInt(e,10)),t.index+=2},e.prototype.getValue=function(t){return t},e}($p),eh.FNC4=function(t){function e(e,i){t.call(this,e),this._initSubStates(i)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.initProperties=function(){t.prototype.initProperties.call(this),Qp(this,{key:"FNC4",dependentStates:["A","B"]})},e.prototype.addStart=function(t){var e=t.value.charCodeAt(0)-128,i=this._getSubState(e);this.encoding[i].addStart()},e.prototype.is=function(t,e){var i=t.charCodeAt(e);return this.isCode(i)},e.prototype.isCode=function(t){return 128<=t&&t<256},e.prototype.pushState=function(t){var e,i=this._initSubState(t),o=this.encoding,r=i.value.length;if(t.index+=r,r<3)for(;i.index<r;i.index++)e=i.value.charCodeAt(i.index),i.state=this._getSubState(e),i.previousState!==i.state&&(i.previousState=i.state,o[i.state].move(i)),o.addPattern(o[i.state].MOVE),o.addPattern(o[i.state].getValue(e));else i.state!==i.previousState&&o[i.state].move(i),this._pushStart(i),o.pushData(i,this.subStates),t.index<t.value.length&&this._pushStart(i);t.fnc=!0,t.state=i.state},e.prototype._pushStart=function(t){this.encoding.addPattern(this.encoding[t.state].MOVE),this.encoding.addPattern(this.encoding[t.state].MOVE)},e.prototype._initSubState=function(t){var e={value:this._getAll(t.value,t.index),index:0};return e.state=this._getSubState(e.value.charCodeAt(0)),e.previousState=t.previousState===this.key?e.state:t.previousState,e},e.prototype._initSubStates=function(t){this.subStates=[];for(var e=0;e<t.length;e++)ct(t[e],this.dependentStates)&&this.subStates.push(t[e])},e.prototype._getSubState=function(t){for(var e=0;e<this.subStates.length;e++)if(this.encoding[this.subStates[e]].isCode(t))return this.subStates[e]},e.prototype._getAll=function(t,e){for(var i,o="",r=e;(i=t.charCodeAt(r++))&&this.isCode(i);)o+=String.fromCharCode(i-128);return o},e}($p),eh.FNC1=function(t){function e(e,i){t.call(this,e),this.states=i}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.initProperties=function(){t.prototype.initProperties.call(this),Qp(this,{key:"FNC1",startState:"C",startAI:"(",endAI:")",dependentStates:["C","B"],applicationIdentifiers:{22:{max:29,type:"alphanumeric"},402:{length:17},7004:{max:4,type:"alphanumeric"},242:{max:6,type:"alphanumeric"},8020:{max:25,type:"alphanumeric"},703:{min:3,max:30,type:"alphanumeric"},8008:{min:8,max:12,type:"alphanumeric"},253:{min:13,max:17,type:"alphanumeric"},8003:{min:14,max:30,type:"alphanumeric"},multiKey:[{ids:["15","17","8005","8100"],ranges:[[11,13],[310,316],[320,336],[340,369]],type:{length:6}},{ids:["240","241","250","251","400","401","403","7002","8004","8007","8110"],ranges:[[-9]],type:{max:30,type:"alphanumeric"}},{ids:["7001"],ranges:[[410,414]],type:{length:13}},{ids:["10","21","254","420","8002"],type:{max:20,type:"alphanumeric"}},{ids:["00","8006","8017","8018"],type:{length:18}},{ids:["01","02","8001"],type:{length:14}},{ids:["422"],ranges:[[424,426]],type:{length:3}},{ids:["20","8102"],type:{length:2}},{ids:["30","37"],type:{max:8,type:"alphanumeric"}},{ids:["390","392"],type:{max:15,type:"alphanumeric"}},{ids:["421","423"],type:{min:3,max:15,type:"alphanumeric"}},{ids:["391","393"],type:{min:3,max:18,type:"alphanumeric"}},{ids:["7003","8101"],type:{length:10}}]},START:102})},e.prototype.addStart=function(){this.encoding[this.startState].addStart()},e.prototype.is=function(){return ct(this.key,this.states)},e.prototype.pushState=function(t){var e,i,o,r=this.encoding,n=t.value.replace(/\s/g,""),s=new RegExp("["+this.startAI+this.endAI+"]","g"),a=t.index,p={state:this.startState};r.addPattern(this.START);for(;;){if(p.index=0,(e=(o=n.charAt(a)===this.startAI?2:0)>0?this.getBySeparator(n,a):this.getByLength(n,a)).ai.length)i=a+o+e.id.length+e.ai.length;else if((i=n.indexOf(this.startAI,a+1))<0){if(a+e.ai.max+e.id.length+o<n.length)throw new Error("Separators are required after variable length identifiers");i=n.length}if(p.value=n.substring(a,i).replace(s,""),this.validate(e,p.value),r.pushData(p,this.dependentStates),i>=n.length)break;a=i,p.state!==this.startState&&(r[this.startState].move(p),p.state=this.startState),e.ai.length||r.addPattern(this.START)}t.index=t.value.length},e.prototype.validate=function(t,e){var i=e.substr(t.id.length),o=t.ai;if(!o.type&&!Zp.test(i))throw new Error("Application identifier "+t.id+" is numeric only but contains non numeric character(s).");if("alphanumeric"===o.type&&!Jp.test(i))throw new Error("Application identifier "+t.id+" is alphanumeric only but contains non alphanumeric character(s).");if(o.length&&o.length!==i.length)throw new Error("Application identifier "+t.id+" must be "+o.length+" characters long.");if(o.min&&o.min>i.length)throw new Error("Application identifier "+t.id+" must be at least "+o.min+" characters long.");if(o.max&&o.max<i.length)throw new Error("Application identifier "+t.id+" must be at most "+o.max+" characters long.")},e.prototype.getByLength=function(t,e){for(var i,o,r=2;r<=4;r++)if(i=ph(t,e,r),o=this.getApplicationIdentifier(i)||this.getApplicationIdentifier(i.substring(0,i.length-1)))return{id:i,ai:o};this.unsupportedAIError(i)},e.prototype.unsupportedAIError=function(t){throw new Error("'"+t+"' is not a supported Application Identifier")},e.prototype.getBySeparator=function(t,e){var i=t.indexOf(this.startAI,e),o=t.indexOf(this.endAI,i),r=t.substring(i+1,o),n=this.getApplicationIdentifier(r)||this.getApplicationIdentifier(r.substr(r.length-1));return n||this.unsupportedAIError(r),{ai:n,id:r}},e.prototype.getApplicationIdentifier=function(t){var e=this.applicationIdentifiers,i=e.multiKey;if(e[t])return e[t];for(var o=0;o<i.length;o++){if(i[o].ids&&ct(t,i[o].ids))return i[o].type;if(i[o].ranges)for(var r=i[o].ranges,n=0;n<r.length;n++)if(r[n][0]<=t&&t<=r[n][1])return i[o].type}},e}($p);var ih=function(t){function e(e){t.call(this,e),this._initStates()}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.initProperties=function(){t.prototype.initProperties.call(this),Qp(this,{characterMap:[212222,222122,222221,121223,121322,131222,122213,122312,132212,221213,221312,231212,112232,122132,122231,113222,123122,123221,223211,221132,221231,213212,223112,312131,311222,321122,321221,312212,322112,322211,212123,212321,232121,111323,131123,131321,112313,132113,132311,211313,231113,231311,112133,112331,132131,113123,113321,133121,313121,211331,231131,213113,213311,213131,311123,311321,331121,312113,312311,332111,314111,221411,431111,111224,111422,121124,121421,141122,141221,112214,112412,122114,122411,142112,142211,241211,221114,413111,241112,134111,111242,121142,121241,114212,124112,124211,411212,421112,421211,212141,214121,412121,111143,111341,131141,114113,114311,411113,411311,113141,114131,311141,411131,211412,211214,211232,2331112],STOP:106})},e.prototype._initStates=function(){for(var t=0;t<this.states.length;t++)this[this.states[t]]=new eh[this.states[t]](this,this.states)},e.prototype.initValue=function(t,e,i){this.pattern=[],this.value=t,this.width=e,this.height=i,this.checkSum=0,this.totalUnits=0,this.index=0,this.position=1},e.prototype.addData=function(){var t={value:this.value,index:0,state:""};0!==this.value.length&&(t.state=t.previousState=this.getNextState(t,this.states),this.addStart(t),this.pushData(t,this.states),this.addCheckSum(),this.addStop(),this.setBaseUnit())},e.prototype.pushData=function(t,e){for(;this[t.state].pushState(t),!(t.index>=t.value.length);)if(t.shifted){var i=t.state;t.state=t.previousState,t.previousState=i,t.shifted=!1}else t.previousState=t.state,t.state=this.getNextState(t,e),this[t.state].move(t)},e.prototype.addStart=function(t){this[t.state].addStart(t),this.position=1},e.prototype.addCheckSum=function(){this.checksum=this.checkSum%103,this.addPattern(this.checksum)},e.prototype.addStop=function(){this.addPattern(this.STOP)},e.prototype.setBaseUnit=function(){this.baseUnit=this.width/(this.totalUnits+this.quietZoneLength)},e.prototype.addPattern=function(t){for(var e,i=this.characterMap[t].toString(),o=0;o<i.length;o++)e=parseInt(i.charAt(o),10),this.pattern.push(e),this.totalUnits+=e;this.checkSum+=t*this.position++},e.prototype.getNextState=function(t,e){for(var i=0;i<e.length;i++)if(this[e[i]].is(t.value,t.index))return e[i];this.invalidCharacterError(t.value.charAt(t.index))},e}(zp),oh=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.initProperties=function(){t.prototype.initProperties.call(this),Qp(this,{name:"Code 128 A",states:["A"]})},e}(ih),rh=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.initProperties=function(){t.prototype.initProperties.call(this),Qp(this,{name:"Code 128 B",states:["B"]})},e}(ih),nh=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.initProperties=function(){t.prototype.initProperties.call(this),Qp(this,{name:"Code 128 C",states:["C"]})},e}(ih),sh=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.initProperties=function(){t.prototype.initProperties.call(this),Qp(this,{name:"Code 128",states:["C","B","A","FNC4"]})},e}(ih),ah=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.initProperties=function(){t.prototype.initProperties.call(this),Qp(this,{name:"Code GS1-128",states:["FNC1","C","B"]})},e}(ih);function ph(t,e,i){return t.substring(e,e+i)}var hh=Object.assign,ch=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.initProperties=function(){t.prototype.initProperties.call(this),hh(this,{characterMap:["12121212","12121221","12122112","12122121","12211212","12211221","12212112","12212121","21121212","21121221"],START:"21",STOP:"121",checkSumType:"",checkSums:gh})},e.prototype.initValue=function(t,e){this.pattern=[],this.value=t,this.checkSumLength=0,this.width=e},e.prototype.setBaseUnit=function(){this.baseUnit=this.width/(12*(this.value.length+this.checkSumLength)+this.quietZoneLength+7)},e.prototype.addData=function(){var t=this.value;this.addPattern(this.START);for(var e=0;e<t.length;e++)this.addCharacter(t.charAt(e));this.options.addCheckSum&&this.addCheckSum(),this.addPattern(this.STOP),this.setBaseUnit()},e.prototype.addCharacter=function(t){var e=this.characterMap[t];e||this.invalidCharacterError(t),this.addPattern(e)},e.prototype.addPattern=function(t){for(var e=0;e<t.length;e++)this.pattern.push(parseInt(t.charAt(e),10))},e.prototype.addCheckSum=function(){var t=this.checkSums[this.checkSumType].call(this.checkSums,this.value);this.checksum=t.join("");for(var e=0;e<t.length;e++)this.checkSumLength++,this.addPattern(this.characterMap[t[e]])},e}(zp),lh=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.initProperties=function(){t.prototype.initProperties.call(this),hh(this,{name:"MSI Modulo10",checkSumType:"Modulo10"})},e}(ch),uh=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.initProperties=function(){t.prototype.initProperties.call(this),hh(this,{name:"MSI Modulo11",checkSumType:"Modulo11"})},e}(ch),dh=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.initProperties=function(){t.prototype.initProperties.call(this),hh(this,{name:"MSI Modulo10 Modulo10",checkSumType:"Modulo10Modulo10"})},e}(ch),fh=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.initProperties=function(){t.prototype.initProperties.call(this),hh(this,{name:"MSI Modulo11 Modulo10",checkSumType:"Modulo11Modulo10"})},e}(ch),gh={Modulo10:function(t){var e,i,o,r=[0,""],n=t.length%2;for(e=0;e<t.length;e++)r[(e+n)%2]+=parseInt(t.charAt(e),10);for(o=r[0],i=(2*r[1]).toString(),e=0;e<i.length;e++)o+=parseInt(i.charAt(e),10);return[(10-o%10)%10]},Modulo11:function(t){for(var e,i=0,o=t.length,r=0;r<o;r++)i+=(((o-r)%6||6)+1)*t.charAt(r);return 10!==(e=(11-i%11)%11)?[e]:[1,0]},Modulo11Modulo10:function(t){var e,i=this.Modulo11(t);return e=t+i[0],i.concat(this.Modulo10(e))},Modulo10Modulo10:function(t){var e,i=this.Modulo10(t);return e=t+i[0],i.concat(this.Modulo10(e))}},yh=Object.assign,vh=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.initProperties=function(){t.prototype.initProperties.call(this),yh(this,{name:"EAN 13",keyTable:["000000","001011","001101","001110","010011","011001","011100","010101","010110","011010"],characterMap:{digits:[[3,2,1,1],[2,2,2,1],[2,1,2,2],[1,4,1,1],[1,1,3,2],[1,2,3,1],[1,1,1,4],[1,3,1,2],[1,2,1,3],[3,1,1,2]],start:[1,1,1],middle:[1,1,1,1,1]}})},e.prototype.initValue=function(t,e,i){var o=String(t);if(12!==o.length||/\D/.test(o))throw new Error('The value of the "EAN13" encoding should be 12 symbols');this.pattern=[],this.options.height=i,this.baseUnit=e/(95+this.quietZoneLength),this.value=o,this.checksum=this.calculateChecksum(),this.leftKey=o[0],this.leftPart=o.substr(1,6),this.rightPart=o.substr(7)+this.checksum},e.prototype.addData=function(){this.addPieces(this.characterMap.start),this.addSide(this.leftPart,this.leftKey),this.addPieces(this.characterMap.middle),this.addSide(this.rightPart),this.addPieces(this.characterMap.start)},e.prototype.addSide=function(t,e){for(var i=0;i<t.length;i++)e&&parseInt(this.keyTable[e].charAt(i),10)?this.addPieces(Array.prototype.slice.call(this.characterMap.digits[t.charAt(i)]).reverse(),!0):this.addPieces(this.characterMap.digits[t.charAt(i)],!0)},e.prototype.addPieces=function(t,e){for(var i=0;i<t.length;i++)e?this.pattern.push({y1:0,y2:.95*this.options.height,width:t[i]}):this.pattern.push(t[i])},e.prototype.calculateChecksum=function(){for(var t=0,e=0,i=this.value.split("").reverse().join(""),o=0;o<i.length;o++)o%2?e+=parseInt(i.charAt(o),10):t+=parseInt(i.charAt(o),10);return(10-(3*t+e)%10)%10},e}(zp),mh=Object.assign,xh=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.initProperties=function(){t.prototype.initProperties.call(this),mh(this,{name:"EAN 8"})},e.prototype.initValue=function(t,e,i){if(7!==t.length||/\D/.test(t))throw new Error("Invalid value provided");this.value=t,this.options.height=i,this.checksum=this.calculateChecksum(this.value),this.leftPart=this.value.substr(0,4),this.rightPart=this.value.substr(4)+this.checksum,this.pattern=[],this.baseUnit=e/(67+this.quietZoneLength)},e}(vh),_h={code11:Ep,code39:Up,code39extended:Hp,code93:Wp,code93extended:qp,code128:sh,code128a:oh,code128b:rh,code128c:nh};_h["gs1-128"]=ah,_h.msimod10=lh,_h.msimod11=uh,_h.msimod1010=dh,_h.msimod1110=fh,_h.postnet=Yp,_h.ean8=xh,_h.ean13=vh;var bh=function(t){function e(e,i){t.call(this),this.options=j({},this.options,i),this.element=e,this._initElement(),this._initSurface(),this._setOptions(i),i&&xt(i.value)&&this.redraw()}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.destroy=function(){this._destroySurface()},e.prototype._initElement=function(){b(this.element,"k-barcode"),this.element.style.display="block"},e.prototype._initSurface=function(){var t=this.options,e=this.surface;e&&e.options.type===t.renderAs||(this._destroySurface(),this._initSurfaceElement(),this.surface=this._createSurface())},e.prototype._createSurface=function(){return A.drawing.Surface.create(this.surfaceElement,{type:this.options.renderAs})},e.prototype._destroySurface=function(){this.surface&&(this.surface.destroy(),this.surface=null,this._destroySurfaceElement())},e.prototype._initSurfaceElement=function(){this.surfaceElement||(this.surfaceElement=document.createElement("div"),this.surfaceElement.style.position="relative",this.element.appendChild(this.surfaceElement))},e.prototype._destroySurfaceElement=function(){this.surfaceElement&&this.surfaceElement.parentNode&&(this.surfaceElement.parentNode.removeChild(this.surfaceElement),this.surfaceElement=null)},e.prototype.setOptions=function(t){this._setOptions(t),this.redraw()},e.prototype.redraw=function(){var t=this._getSize();this.surface.clear(),this.surface.setSize({width:t.width,height:t.height}),this.createVisual(),this.surface.draw(this.visual)},e.prototype.getSize=function(){return{width:this.element.offsetWidth,height:this.element.offsetHeight}},e.prototype._resize=function(){this.redraw()},e.prototype.createVisual=function(){this.visual=this._render()},e.prototype._render=function(){var t,e,i=this.options,o=i.value,r=i.text,n=E(r.margin),s=this._getSize(),a=i.border||{},p=this.encoding,h=new Jt(0,0,s.width,s.height).unpad(a.width).unpad(i.padding),c=h.height(),l=new A.drawing.Group;return this.contentBox=h,l.append(this._getBackground(s)),r.visible&&(c-=A.drawing.util.measureText(o,{font:r.font}).height+n.top+n.bottom),t=p.encode(o,h.width(),c),r.visible&&(e=o,i.checksum&&xt(p.checksum)&&(e+=" "+p.checksum),l.append(this._getText(e))),this.barHeight=c,this._bandsGroup=this._getBands(t.pattern,t.baseUnit),l.append(this._bandsGroup),l},e.prototype.exportVisual=function(){return this._render()},e.prototype._getSize=function(){var t=this.element,e=t.clientWidth,i=t.clientHeight,o=new A.geometry.Size(300,100);return e>0&&(o.width=e),i&&(o.height=i),this.options.width&&(o.width=this.options.width),this.options.height&&(o.height=this.options.height),o},e.prototype.value=function(t){if(!xt(t))return this.options.value;this.options.value=String(t),this.redraw()},e.prototype._getBands=function(t,e){for(var i,o,r=this.contentBox,n=r.x1,s=new A.drawing.Group,a=0;a<t.length;a++){if(i=(o=I(t[a])?t[a]:{width:t[a],y1:0,y2:this.barHeight}).width*e,a%2){var p=A.geometry.Rect.fromPoints(new A.geometry.Point(n,o.y1+r.y1),new A.geometry.Point(n+i,o.y2+r.y1)),h=A.drawing.Path.fromRect(p,{fill:{color:this.options.color},stroke:null});s.append(h)}n+=i}return s},e.prototype._getBackground=function(t){var e=this.options,i=e.border||{},o=new Jt(0,0,t.width,t.height).unpad(i.width/2);return A.drawing.Path.fromRect(o.toRect(),{fill:{color:e.background},stroke:{color:i.width?i.color:"",width:i.width,dashType:i.dashType}})},e.prototype._getText=function(t){var e=this.options.text,i=this._textbox=new _e(t,{font:e.font,color:e.color,align:"center",vAlign:"bottom",margin:e.margin});return i.reflow(this.contentBox),i.renderVisual(),i.visual},e.prototype._setOptions=function(t){if(this.type=(t.type||this.options.type).toLowerCase(),"upca"===this.type&&(this.type="ean13",t.value="0"+t.value),"upce"===this.type&&(this.type="ean8",t.value="0"+t.value),!_h[this.type])throw new Error("Encoding "+this.type+" is not supported.");this.encoding=new _h[this.type],this.options=j({},this.options,t)},e}(A.Class);Bt(bh,{name:"Barcode",renderAs:"svg",value:"",type:"code39",checksum:!1,width:0,height:0,color:"black",background:"white",text:{visible:!0,font:"16px Consolas, Monaco, Sans Mono, monospace, sans-serif",color:"black",margin:{top:0,bottom:0,left:0,right:0}},border:{width:0,dashType:"solid",color:"black"},padding:{top:0,bottom:0,left:0,right:0}});var wh=bh,Sh="Arial, Helvetica, sans-serif",Ah="12px "+Sh,Ch="16px "+Sh,kh=function(){return{icon:{border:{width:1}},label:{font:Ah,padding:3},line:{length:10,width:2},visible:!0}},Ph=function(t){return{visible:!0,labels:{font:"11px Arial, Helvetica, sans-serif"},overlay:t.gradients?{}:{gradient:"none"},area:{highlight:{markers:{border:{}}},line:{opacity:1,width:0},markers:{size:6,visible:!1},opacity:.4},rangeArea:{highlight:{markers:{border:{}}},line:{opacity:1,width:0},markers:{size:6,visible:!1},opacity:.4},verticalRangeArea:{highlight:{markers:{border:{}}},line:{opacity:1,width:0},markers:{size:6,visible:!1},opacity:.4},bar:{gap:1.5,spacing:.4},boxPlot:{outliersField:"",meanField:"",border:{_brightness:.8,width:1},downColor:"#fff",gap:1,highlight:{border:{opacity:1,width:2},whiskers:{width:3},mean:{width:2},median:{width:2}},mean:{width:2},median:{width:2},spacing:.3,whiskers:{width:2}},bubble:{border:{width:0},labels:{background:"transparent"},opacity:.6},bullet:{gap:1.5,spacing:.4,target:{color:"#ff0000"}},candlestick:{border:{_brightness:.8,width:1},downColor:"#fff",gap:1,highlight:{border:{opacity:1,width:2},line:{width:2}},line:{color:"#000",width:1},spacing:.3},column:{gap:1.5,spacing:.4},heatmap:{labels:{color:"",background:"transparent",visible:!0},highlight:{border:{width:0}}},pie:{labels:{background:"",color:"",padding:{top:5,bottom:5,left:7,right:7}}},donut:{margin:1},funnel:{labels:{background:"",color:"",padding:{top:5,bottom:5,left:7,right:7}}},horizontalWaterfall:{gap:.5,line:{color:"#000",width:1},spacing:.4},line:{width:2},notes:kh(),ohlc:{gap:1,highlight:{line:{opacity:1,width:3}},line:{width:1},spacing:.3},radarArea:{line:{opacity:1,width:0},markers:{size:6,visible:!1},opacity:.5},radarLine:{markers:{visible:!1},width:2},polarArea:{line:{opacity:1,width:0},markers:{size:6,visible:!1},opacity:.5},polarLine:{markers:{visible:!1},width:2},rangeBar:{gap:1.5,spacing:.4},rangeColumn:{gap:1.5,spacing:.4},scatterLine:{width:1},verticalArea:{highlight:{markers:{border:{}}},line:{opacity:1,width:0},markers:{size:6,visible:!1},opacity:.4},verticalBoxPlot:{outliersField:"",meanField:"",border:{_brightness:.8,width:1},downColor:"#fff",gap:1,highlight:{border:{opacity:1,width:2},whiskers:{width:3},mean:{width:2},median:{width:2}},mean:{width:2},median:{width:2},spacing:.3,whiskers:{width:2}},verticalBullet:{gap:1.5,spacing:.4,target:{color:"#ff0000"}},verticalLine:{width:2},waterfall:{gap:.5,line:{color:"#000",width:1},spacing:.4}}},Mh=function(t){return void 0===t&&(t={}),{axisDefaults:{labels:{font:Ah},notes:kh(),title:{font:Ch,margin:5}},categoryAxis:{majorGridLines:{visible:!0}},navigator:{pane:{height:90,margin:{top:10}}},seriesDefaults:Ph(t),title:{font:Ch},legend:{labels:{font:Ah}}}}},function(t,e){t.exports=r},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=i(2),r=i(1),n=i(3),s=i(12),a=i(7),p=i(4),h=i(13),c=i(9),l=i(0),u=function(t){function e(e,i,o,r,n,s,a,p){var h=t.call(this,i,o,r,n,s,a,p)||this;return h.changeDetector=e,h.className=!0,h.centerTemplateContext={},h}return o.__extends(e,t),e.prototype.ngOnInit=function(){t.prototype.ngOnInit.call(this),this.element&&this.renderer.setStyle(this.element.nativeElement,"position","relative")},e.prototype.ngAfterViewChecked=function(){t.prototype.ngAfterViewChecked.call(this),this.labelElement&&!this.centerTemplate?this.changeDetector.detectChanges():!this.labelElement&&this.centerTemplate&&this.updateCenterTemplate()},e.prototype.exportVisual=function(){return l.drawDOM(this.element.nativeElement)},e.prototype.resize=function(){t.prototype.resize.call(this),this.updateCenterTemplate()},e.prototype.createInstance=function(t,e,i,o){this.instance=new c.ArcGauge(t,e,i,o),this.updateElements()},e.prototype.updateOptions=function(){t.prototype.updateOptions.call(this),this.updateElements()},e.prototype.setValues=function(){var t=this.configurationService.readValue();this.instance.value(t),this.updateCenterTemplate()},e.prototype.updateElements=function(){this.resizeSensor.acceptSize(),this.updateCenterTemplate()},e.prototype.updateCenterTemplate=function(){this.instance&&this.centerTemplate&&(this.centerTemplateContext.value=this.instance.value(),this.centerTemplateContext.color=this.instance.currentColor(),this.changeDetector.detectChanges(),this.positionLabel())},e.prototype.positionLabel=function(){if(this.labelElement){var t=this.labelElement.nativeElement,e=t.offsetWidth,i=t.offsetHeight,o=this.instance.centerLabelPosition(e,i);t.style.top=o.top+"px",t.style.left=o.left+"px"}},e.prototype.updateSize=function(){},o.__decorate([r.Input(),o.__metadata("design:type",Number)],e.prototype,"value",void 0),o.__decorate([r.Input(),o.__metadata("design:type",String)],e.prototype,"color",void 0),o.__decorate([r.Input(),o.__metadata("design:type",Array)],e.prototype,"colors",void 0),o.__decorate([r.Input(),o.__metadata("design:type",Number)],e.prototype,"opacity",void 0),o.__decorate([r.Input(),o.__metadata("design:type",Object)],e.prototype,"scale",void 0),o.__decorate([r.ContentChild(h.ArcCenterTemplateDirective,{static:!1}),o.__metadata("design:type",h.ArcCenterTemplateDirective)],e.prototype,"centerTemplate",void 0),o.__decorate([r.ViewChild("label",{static:!1}),o.__metadata("design:type",r.ElementRef)],e.prototype,"labelElement",void 0),o.__decorate([r.HostBinding("class.k-arcgauge"),o.__metadata("design:type",Boolean)],e.prototype,"className",void 0),e=o.__decorate([r.Component({changeDetection:r.ChangeDetectionStrategy.OnPush,exportAs:"kendoArcGauge",providers:[n.ConfigurationService,a.LocalizationService,{provide:a.L10N_PREFIX,useValue:"kendo.arcgauge"}],selector:"kendo-arcgauge",template:'\n <div #surface class=\'k-chart-surface\'></div>\n <div class="k-arcgauge-label" *ngIf="centerTemplate" #label>\n <ng-template [ngTemplateOutlet]="centerTemplate.templateRef" [ngTemplateOutletContext]="centerTemplateContext"></ng-template>\n </div>\n <kendo-resize-sensor (resize)="onResize($event)" [rateLimit]="resizeRateLimit"></kendo-resize-sensor>\n '}),o.__metadata("design:paramtypes",[r.ChangeDetectorRef,n.ConfigurationService,n.ThemeService,s.IntlService,a.LocalizationService,r.ElementRef,r.Renderer2,r.NgZone])],e)}(p.GaugeComponent);e.ArcGaugeComponent=u},function(t,e){t.exports=n},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=i(2),r=i(1),n=function(){function t(t){this.templateRef=t}return t=o.__decorate([r.Directive({selector:"[kendoArcGaugeCenterTemplate]"}),o.__param(0,r.Optional()),o.__metadata("design:paramtypes",[r.TemplateRef])],t)}();e.ArcCenterTemplateDirective=n},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=i(2),r=i(1),n=i(4),s=i(3),a=function(t){function e(e){var i=t.call(this,"gaugeArea",e)||this;return i.configurationService=e,i}return o.__extends(e,t),e=o.__decorate([r.Component({selector:"kendo-arcgauge-area",template:""}),o.__metadata("design:paramtypes",[s.ConfigurationService])],e)}(n.GaugeAreaComponent);e.ArcGaugeAreaComponent=a},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=i(2),r=i(1),n=i(4),s=i(3),a=function(t){function e(e){var i=t.call(this,"scale",e)||this;return i.configurationService=e,i}return o.__extends(e,t),o.__decorate([r.Input(),o.__metadata("design:type",Object)],e.prototype,"labels",void 0),o.__decorate([r.Input(),o.__metadata("design:type",Number)],e.prototype,"rangeDistance",void 0),o.__decorate([r.Input(),o.__metadata("design:type",String)],e.prototype,"rangeLineCap",void 0),o.__decorate([r.Input(),o.__metadata("design:type",Number)],e.prototype,"startAngle",void 0),o.__decorate([r.Input(),o.__metadata("design:type",Number)],e.prototype,"endAngle",void 0),e=o.__decorate([r.Component({selector:"kendo-arcgauge-scale",template:""}),o.__metadata("design:paramtypes",[s.ConfigurationService])],e)}(n.ScaleComponent);e.ArcScaleComponent=a},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=i(2),r=i(1),n=i(17),s=i(3),a=function(t){function e(e){var i=t.call(this,e)||this;return i.configurationService=e,e.set(i.key+".visible",!0),i}return o.__extends(e,t),e=o.__decorate([r.Component({selector:"kendo-arcgauge-scale-labels",template:""}),o.__metadata("design:paramtypes",[s.ConfigurationService])],e)}(n.RadialLabelsComponent);e.ArcLabelsComponent=a},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=i(2),r=i(1),n=i(4),s=i(3),a=function(t){function e(e){var i=t.call(this,"scale.labels",e)||this;return i.configurationService=e,i}return o.__extends(e,t),o.__decorate([r.Input(),o.__metadata("design:type",String)],e.prototype,"position",void 0),e=o.__decorate([r.Component({selector:"kendo-radialgauge-scale-labels",template:""}),o.__metadata("design:paramtypes",[s.ConfigurationService])],e)}(n.LabelsComponent);e.RadialLabelsComponent=a},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=i(2),r=i(1),n=i(3),s=function(t){function e(e,i){return t.call(this,e,i)||this}return o.__extends(e,t),o.__decorate([r.Input(),o.__metadata("design:type",String)],e.prototype,"color",void 0),o.__decorate([r.Input(),o.__metadata("design:type",Number)],e.prototype,"opacity",void 0),o.__decorate([r.Input(),o.__metadata("design:type",Number)],e.prototype,"from",void 0),o.__decorate([r.Input(),o.__metadata("design:type",Number)],e.prototype,"to",void 0),e=o.__decorate([r.Component({providers:[n.ConfigurationService],selector:"kendo-arcgauge-color",template:""}),o.__metadata("design:paramtypes",[n.ConfigurationService,n.CollectionChangesService])],e)}(i(4).CollectionItemComponent);e.ColorComponent=s},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=i(2),r=i(1),n=i(3),s=function(t){function e(e,i){return t.call(this,e,i)||this}return o.__extends(e,t),o.__decorate([r.Input(),o.__metadata("design:type",Object)],e.prototype,"border",void 0),o.__decorate([r.Input(),o.__metadata("design:type",String)],e.prototype,"color",void 0),o.__decorate([r.Input(),o.__metadata("design:type",Object)],e.prototype,"margin",void 0),o.__decorate([r.Input(),o.__metadata("design:type",Number)],e.prototype,"opacity",void 0),o.__decorate([r.Input(),o.__metadata("design:type",String)],e.prototype,"shape",void 0),o.__decorate([r.Input(),o.__metadata("design:type",Number)],e.prototype,"size",void 0),o.__decorate([r.Input(),o.__metadata("design:type",Number)],e.prototype,"value",void 0),e=o.__decorate([r.Component({providers:[n.ConfigurationService],selector:"kendo-lineargauge-pointer",template:""}),o.__metadata("design:paramtypes",[n.ConfigurationService,n.CollectionChangesService])],e)}(i(4).CollectionItemComponent);e.LinearPointerComponent=s},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=i(2),r=i(1),n=i(3),s=function(t){function e(e,i){return t.call(this,e,i)||this}return o.__extends(e,t),e=o.__decorate([r.Component({providers:[n.ConfigurationService],selector:"kendo-lineargauge-scale-range",template:""}),o.__metadata("design:paramtypes",[n.ConfigurationService,n.CollectionChangesService])],e)}(i(4).RangeComponent);e.LinearRangeComponent=s},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=i(2),r=i(1),n=i(3),s=function(t){function e(e,i){return t.call(this,e,i)||this}return o.__extends(e,t),o.__decorate([r.Input(),o.__metadata("design:type",Object)],e.prototype,"cap",void 0),o.__decorate([r.Input(),o.__metadata("design:type",String)],e.prototype,"color",void 0),o.__decorate([r.Input(),o.__metadata("design:type",Number)],e.prototype,"length",void 0),o.__decorate([r.Input(),o.__metadata("design:type",Number)],e.prototype,"value",void 0),e=o.__decorate([r.Component({providers:[n.ConfigurationService],selector:"kendo-radialgauge-pointer",template:""}),o.__metadata("design:paramtypes",[n.ConfigurationService,n.CollectionChangesService])],e)}(i(4).CollectionItemComponent);e.RadialPointerComponent=s},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=i(2),r=i(1),n=i(3),s=function(t){function e(e,i){return t.call(this,e,i)||this}return o.__extends(e,t),e=o.__decorate([r.Component({providers:[n.ConfigurationService],selector:"kendo-radialgauge-scale-range",template:""}),o.__metadata("design:paramtypes",[n.ConfigurationService,n.CollectionChangesService])],e)}(i(4).RangeComponent);e.RadialRangeComponent=s},function(t,e,i){"use strict";i.r(e),i.d(e,"ResizeService",(function(){return N})),i.d(e,"PreventableEvent",(function(){return et})),i.d(e,"DraggableDirective",(function(){return S})),i.d(e,"DraggableModule",(function(){return A})),i.d(e,"closestInScope",(function(){return C})),i.d(e,"closest",(function(){return k})),i.d(e,"contains",(function(){return P})),i.d(e,"findElement",(function(){return M})),i.d(e,"findFocusableChild",(function(){return I})),i.d(e,"findFocusable",(function(){return B})),i.d(e,"hasClasses",(function(){return z})),i.d(e,"isFocusableWithTabKey",(function(){return j})),i.d(e,"isFocusable",(function(){return T})),i.d(e,"isVisible",(function(){return R})),i.d(e,"matchesClasses",(function(){return V})),i.d(e,"matchesNodeName",(function(){return D})),i.d(e,"rtlScrollPosition",(function(){return G})),i.d(e,"EventsOutsideAngularDirective",(function(){return F})),i.d(e,"EventsModule",(function(){return H})),i.d(e,"ResizeSensorComponent",(function(){return J})),i.d(e,"ResizeBatchService",(function(){return Z})),i.d(e,"ResizeCompatService",(function(){return K})),i.d(e,"ResizeObserverService",(function(){return Y})),i.d(e,"ResizeSensorModule",(function(){return $})),i.d(e,"KendoInput",(function(){return tt})),i.d(e,"isDocumentAvailable",(function(){return m})),i.d(e,"isChanged",(function(){return x})),i.d(e,"anyChanged",(function(){return _})),i.d(e,"hasObservers",(function(){return b})),i.d(e,"guid",(function(){return w})),i.d(e,"Keys",(function(){return U}));var o=i(2),r=i(1),n=function(t,e){return function(i){return e(t(i))}},s=function(t,e,i){return t.addEventListener&&t.addEventListener(e,i)},a=function(t,e,i){return t&&t.removeEventListener&&t.removeEventListener(e,i)},p=function(){},h=function(t){return t.preventDefault()},c=/touch/;function l(t){return t.type.match(c)?{pageX:t.changedTouches[0].pageX,pageY:t.changedTouches[0].pageY,clientX:t.changedTouches[0].clientX,clientY:t.changedTouches[0].clientY,type:t.type,originalEvent:t,isTouch:!0}:{pageX:t.pageX,pageY:t.pageY,clientX:t.clientX,clientY:t.clientY,offsetX:t.offsetX,offsetY:t.offsetY,type:t.type,ctrlKey:t.ctrlKey,shiftKey:t.shiftKey,altKey:t.altKey,originalEvent:t}}var u=function(t){var e=this,i=t.press;void 0===i&&(i=p);var o=t.drag;void 0===o&&(o=p);var r=t.release;void 0===r&&(r=p);var c=t.mouseOnly;void 0===c&&(c=!1),this._pressHandler=n(l,i),this._dragHandler=n(l,o),this._releaseHandler=n(l,r),this._ignoreMouse=!1,this._mouseOnly=c,this._touchstart=function(t){1===t.touches.length&&e._pressHandler(t)},this._touchmove=function(t){1===t.touches.length&&e._dragHandler(t)},this._touchend=function(t){0===t.touches.length&&1===t.changedTouches.length&&(e._releaseHandler(t),e._ignoreMouse=!0,setTimeout(e._restoreMouse,2e3))},this._restoreMouse=function(){e._ignoreMouse=!1},this._mousedown=function(t){var i=t.which;i&&i>1||e._ignoreMouse||(s(e.document,"mousemove",e._mousemove),s(e.document,"mouseup",e._mouseup),e._pressHandler(t))},this._mousemove=function(t){e._dragHandler(t)},this._mouseup=function(t){a(e.document,"mousemove",e._mousemove),a(e.document,"mouseup",e._mouseup),e._releaseHandler(t)},this._pointerdown=function(t){t.isPrimary&&0===t.button&&(s(e.document,"pointermove",e._pointermove),s(e.document,"pointerup",e._pointerup),s(e.document,"pointercancel",e._pointerup),s(e.document,"contextmenu",h),e._pressHandler(t))},this._pointermove=function(t){t.isPrimary&&e._dragHandler(t)},this._pointerup=function(t){t.isPrimary&&(a(e.document,"pointermove",e._pointermove),a(e.document,"pointerup",e._pointerup),a(e.document,"pointercancel",e._pointerup),a(e.document,"contextmenu",h),e._releaseHandler(t))}},d={document:{configurable:!0}};u.supportPointerEvent=function(){return"undefined"!=typeof window&&window.PointerEvent},d.document.get=function(){return this._element?this._element.ownerDocument:document},u.prototype.bindTo=function(t){t!==this._element&&(this._element&&this._unbindFromCurrent(),this._element=t,this._bindToCurrent())},u.prototype._bindToCurrent=function(){var t=this._element;this._usePointers()?s(t,"pointerdown",this._pointerdown):(s(t,"mousedown",this._mousedown),this._mouseOnly||(s(t,"touchstart",this._touchstart),s(t,"touchmove",this._touchmove),s(t,"touchend",this._touchend)))},u.prototype._unbindFromCurrent=function(){var t=this._element;if(this._usePointers())return a(t,"pointerdown",this._pointerdown),a(this.document,"pointermove",this._pointermove),a(this.document,"pointerup",this._pointerup),a(this.document,"contextmenu",h),void a(this.document,"pointercancel",this._pointerup);a(t,"mousedown",this._mousedown),this._mouseOnly||(a(t,"touchstart",this._touchstart),a(t,"touchmove",this._touchmove),a(t,"touchend",this._touchend))},u.prototype._usePointers=function(){return!this._mouseOnly&&u.supportPointerEvent()},u.prototype.update=function(t){var e=t.press;void 0===e&&(e=p);var i=t.drag;void 0===i&&(i=p);var o=t.release;void 0===o&&(o=p);var r=t.mouseOnly;void 0===r&&(r=!1),this._pressHandler=n(l,e),this._dragHandler=n(l,i),this._releaseHandler=n(l,o),this._mouseOnly=r},u.prototype.destroy=function(){this._unbindFromCurrent(),this._element=null},Object.defineProperties(u.prototype,d),u.default=u;var f=u,g=i(10),y=i(41),v=i(5),m=function(){return"undefined"!=typeof document},x=function(t,e,i){return void 0===i&&(i=!0),!(void 0===e[t]||e[t].isFirstChange()&&i||e[t].previousValue===e[t].currentValue)},_=function(t,e,i){return void 0===i&&(i=!0),t.some((function(t){return x(t,e,i)}))},b=function(t){return t&&t.observers.length>0},w=function(){for(var t="",e=0;e<32;e++){var i=16*Math.random()|0;8!==e&&12!==e&&16!==e&&20!==e||(t+="-"),t+=(12===e?4:16===e?3&i|8:i).toString(16)}return t},S=function(){function t(t,e){this.element=t,this.ngZone=e,this.enableDrag=!0,this.kendoPress=new r.EventEmitter,this.kendoDrag=new r.EventEmitter,this.kendoRelease=new r.EventEmitter}return t.prototype.ngOnInit=function(){this.toggleDraggable()},t.prototype.ngOnChanges=function(t){x("enableDrag",t)&&this.toggleDraggable()},t.prototype.ngOnDestroy=function(){this.destroyDraggable()},t.prototype.toggleDraggable=function(){var t=this;m()&&(this.destroyDraggable(),this.enableDrag&&(this.draggable=new f({drag:function(e){return t.kendoDrag.next(e)},press:function(e){return t.kendoPress.next(e)},release:function(e){return t.kendoRelease.next(e)}}),this.ngZone.runOutsideAngular((function(){return t.draggable.bindTo(t.element.nativeElement)}))))},t.prototype.destroyDraggable=function(){this.draggable&&(this.draggable.destroy(),this.draggable=null)},Object(o.__decorate)([Object(r.Input)(),Object(o.__metadata)("design:type",Boolean)],t.prototype,"enableDrag",void 0),Object(o.__decorate)([Object(r.Output)(),Object(o.__metadata)("design:type",r.EventEmitter)],t.prototype,"kendoPress",void 0),Object(o.__decorate)([Object(r.Output)(),Object(o.__metadata)("design:type",r.EventEmitter)],t.prototype,"kendoDrag",void 0),Object(o.__decorate)([Object(r.Output)(),Object(o.__metadata)("design:type",r.EventEmitter)],t.prototype,"kendoRelease",void 0),t=Object(o.__decorate)([Object(r.Directive)({selector:"[kendoDraggable]"}),Object(o.__metadata)("design:paramtypes",[r.ElementRef,r.NgZone])],t)}(),A=function(){function t(){}return t=Object(o.__decorate)([Object(r.NgModule)({declarations:[S],exports:[S],imports:[g.CommonModule]})],t)}(),C=function(t,e,i){for(;t&&t!==i&&!e(t);)t=t.parentNode;if(t!==i)return t},k=function(t,e){for(;t&&!e(t);)t=t.parentNode;return t},P=function(t,e,i){if(void 0===i&&(i=!1),!k(e,(function(e){return e===t})))return!1;var o=k(e,(function(t){return t===e}));return o&&(i||o!==t)},M=function(t,e,i){if(void 0===i&&(i=!0),t){if(i&&e(t))return t;for(t=t.firstChild;t;){if(1===t.nodeType){var o=M(t,e);if(o)return o}t=t.nextSibling}}},O=/^(?:a|input|select|option|textarea|button|object)$/i,T=function(t){if(!t.tagName)return!1;var e=t.tagName.toLowerCase(),i=Boolean(t.getAttribute("tabIndex"));return!t.disabled&&O.test(e)||i},R=function(t){var e=t.getBoundingClientRect(),i=e.width>0&&e.height>0,o=0!==e.x&&0!==e.y;return(i||o)&&"hidden"!==window.getComputedStyle(t).visibility},j=function(t,e){if(void 0===e&&(e=!0),!T(t))return!1;var i=t.getAttribute("tabIndex");return(!e||R(t))&&"-1"!==i},I=function(t,e){return void 0===e&&(e=!0),M(t,(function(t){return j(t,e)}),!1)},B=function(t,e){return void 0===e&&(e=!0),M(t,(function(t){return j(t,e)}))},L=function(t){return String(t).trim().split(" ")},z=function(t,e){var i=L(e);return Boolean(L(t.className).find((function(t){return i.indexOf(t)>=0})))},V=function(t){return function(e){return z(e,t)}},E={},D=function(t){return E[t]||(E[t]=function(e){return String(e.nodeName).toLowerCase()===t.toLowerCase()}),E[t]};function G(t,e,i){var o=t;return i<0?o=-t:i>0&&(o=e.scrollWidth-e.offsetWidth-t),o}var U,F=function(){function t(t,e,i){this.element=t,this.ngZone=e,this.renderer=i,this.events={}}return t.prototype.ngOnInit=function(){var t=this;if(this.element&&this.element.nativeElement){var e=this.events;this.subscriptions=[],this.ngZone.runOutsideAngular((function(){for(var i in e)e.hasOwnProperty(i)&&t.subscriptions.push(t.renderer.listen(t.element.nativeElement,i,t.scope?e[i].bind(t.scope):e[i]))}))}},t.prototype.ngOnDestroy=function(){if(this.subscriptions){for(var t=0;t<this.subscriptions.length;t++)this.subscriptions[t]();this.subscriptions=null}},Object(o.__decorate)([Object(r.Input)("kendoEventsOutsideAngular"),Object(o.__metadata)("design:type",Object)],t.prototype,"events",void 0),Object(o.__decorate)([Object(r.Input)(),Object(o.__metadata)("design:type",Object)],t.prototype,"scope",void 0),t=Object(o.__decorate)([Object(r.Directive)({selector:"[kendoEventsOutsideAngular]"}),Object(o.__metadata)("design:paramtypes",[r.ElementRef,r.NgZone,r.Renderer2])],t)}(),H=function(){function t(){}return t=Object(o.__decorate)([Object(r.NgModule)({declarations:[F],exports:[F]})],t)}(),N=function(){function t(t){this.resizeBatchService=t,this.resize=new r.EventEmitter,this.acceptedSize=!1,this.state=0}return t.prototype.acceptSize=function(t){void 0===t&&(t=this.measure()),this.lastWidth=t.width,this.lastHeight=t.height,this.acceptedSize=!0},t.prototype.checkChanges=function(){m()&&0===this.state&&(this.state=1,this.resizeBatchService.schedule(this,this.init))},t.prototype.destroy=function(){this.resizeBatchService.cancel(this)},t.prototype.checkSize=function(){if(this.parentElement){var t=this.measure(),e=t.width,i=t.height;if(!(e===this.lastWidth&&i===this.lastHeight))return this.lastWidth=e,this.lastHeight=i,this.acceptedSize=!1,this.resize.emit(),!0}},t.prototype.initSize=function(){var t=this.measure();this.lastWidth=t.width,this.lastHeight=t.height},t.prototype.measure=function(){var t=0,e=0;return this.parentElement&&(e=this.parentElement.offsetHeight,t=this.parentElement.offsetWidth),{height:e,width:t}},t}(),W=function(t){var e=document.createElement("div");return e.style.cssText=t,e},q="position: absolute; display: block; left: 0; top: 0; right: 0; bottom: 0; z-index: -1;overflow: hidden; visibility: hidden;",K=function(t){function e(e,i,o){var r=t.call(this,e)||this;return r.element=i,r.ngZone=o,r}return Object(o.__extends)(e,t),e.prototype.checkChanges=function(){2!==this.state?t.prototype.checkChanges.call(this):this.resizeBatchService.isScheduled(this)||this.resizeBatchService.schedule(this,this.checkSize)},e.prototype.destroy=function(){if(t.prototype.destroy.call(this),this.subscription&&this.subscription.unsubscribe(),this.expand){var e=this.element.nativeElement;e.removeChild(this.expand),e.removeChild(this.shrink),this.expand.removeChild(this.expandChild),this.expand=this.expandChild=this.shrink=this.element=null}},e.prototype.checkSize=function(){if(t.prototype.checkSize.call(this))return this.reset(),!0},e.prototype.init=function(){var t,e=this.parentElement=this.element.nativeElement.parentElement;"static"===(t="position",getComputedStyle(e,null).getPropertyValue(t))&&(e.style.position="relative"),this.state=2,this.render(),this.reset(),this.initSize(),this.subscribe()},e.prototype.render=function(){var t=this.element.nativeElement;t.style.cssText=q,t.setAttribute("dir","ltr"),this.expand=W(q),this.expandChild=W("position: absolute; left: 0; top: 0; transition: 0s;"),this.expand.appendChild(this.expandChild),t.appendChild(this.expand),this.shrink=W(q);var e=W("position: absolute; left: 0; top: 0; transition: 0s;width: 200%; height: 200%;");this.shrink.appendChild(e),t.appendChild(this.shrink)},e.prototype.reset=function(){var t=this.expandChild;t.style.width="100000px",t.style.height="100000px";var e=this.expand;e.scrollLeft=1e5,e.scrollTop=1e5;var i=this.shrink;i.scrollLeft=1e5,i.scrollTop=1e5},e.prototype.subscribe=function(){var t=this;this.ngZone.runOutsideAngular((function(){t.subscription=Object(v.merge)(Object(v.fromEvent)(t.shrink,"scroll"),Object(v.fromEvent)(t.expand,"scroll")).subscribe((function(){t.checkSize()}))}))},e}(N),X="undefined"!=typeof ResizeObserver,Y=function(t){function e(e,i,o){var r=t.call(this,e)||this;return r.element=i,r.ngZone=o,r}return Object(o.__extends)(e,t),e.supported=function(){return X},e.prototype.destroy=function(){t.prototype.destroy.call(this),this.resizeObserver&&(this.resizeObserver.disconnect(),this.resizeObserver=null),this.parentElement=null},e.prototype.init=function(){var t=this;this.parentElement=this.element.nativeElement.parentElement,this.initSize(),this.state=2,this.ngZone.runOutsideAngular((function(){t.resizeObserver=new ResizeObserver((function(){t.checkSize()})),t.resizeObserver.observe(t.parentElement)}))},e}(N),Z=function(){function t(t){this.ngZone=t,this.scheduled=[],this.resolvedPromise=Promise.resolve(null),this.flush=this.flush.bind(this)}return t.prototype.schedule=function(t,e){var i=this;this.scheduled.push({instance:t,method:e}),this.subscription||this.ngZone.runOutsideAngular((function(){i.subscription=Object(v.from)(i.resolvedPromise).subscribe(i.flush)}))},t.prototype.isScheduled=function(t){return Boolean(this.scheduled.find((function(e){return e.instance===t})))},t.prototype.cancel=function(t){for(var e=this.scheduled,i=e.length,o=0;o<i;o++)if(e[o].instance===t)return e.splice(o,1),void(e.length||this.unsubscribe())},t.prototype.ngOnDestroy=function(){this.unsubscribe()},t.prototype.unsubscribe=function(){this.subscription&&(this.subscription.unsubscribe(),this.subscription=null)},t.prototype.flush=function(){this.scheduled.forEach((function(t){t.method.call(t.instance)})),this.scheduled=[],this.unsubscribe()},t=Object(o.__decorate)([Object(r.Injectable)(),Object(o.__metadata)("design:paramtypes",[r.NgZone])],t)}(),J=function(){function t(t,e,i){var o=this;this.rateLimit=10,this.resize=new r.EventEmitter;var n=Y.supported()?Y:K;this.resizeService=new n(t,e,i);var s=1e3/(this.rateLimit||10);this.subscription=this.resizeService.resize.pipe(Object(y.auditTime)(s)).subscribe((function(){o.resizeService.acceptedSize||o.resize.emit()}))}return t.prototype.ngAfterViewChecked=function(){this.resizeService.checkChanges()},t.prototype.ngOnDestroy=function(){this.subscription.unsubscribe(),this.resizeService.destroy()},t.prototype.acceptSize=function(t){this.resizeService.acceptSize(t)},Object(o.__decorate)([Object(r.Input)(),Object(o.__metadata)("design:type",Number)],t.prototype,"rateLimit",void 0),Object(o.__decorate)([Object(r.Output)(),Object(o.__metadata)("design:type",r.EventEmitter)],t.prototype,"resize",void 0),t=Object(o.__decorate)([Object(r.Component)({selector:"kendo-resize-sensor",template:""}),Object(o.__metadata)("design:paramtypes",[Z,r.ElementRef,r.NgZone])],t)}(),Q=[J],$=function(){function t(){}return t=Object(o.__decorate)([Object(r.NgModule)({declarations:[Q],exports:[Q],providers:[Z]})],t)}(),tt=function(){};!function(t){t[t.Alt=18]="Alt",t[t.ArrowDown=40]="ArrowDown",t[t.ArrowLeft=37]="ArrowLeft",t[t.ArrowRight=39]="ArrowRight",t[t.ArrowUp=38]="ArrowUp",t[t.Backspace=8]="Backspace",t[t.Control=17]="Control",t[t.Delete=46]="Delete",t[t.Digit0=48]="Digit0",t[t.Digit1=49]="Digit1",t[t.Digit2=50]="Digit2",t[t.Digit3=51]="Digit3",t[t.Digit4=52]="Digit4",t[t.Digit5=53]="Digit5",t[t.Digit6=54]="Digit6",t[t.Digit7=55]="Digit7",t[t.Digit8=56]="Digit8",t[t.Digit9=57]="Digit9",t[t.End=35]="End",t[t.Enter=13]="Enter",t[t.Escape=27]="Escape",t[t.F1=112]="F1",t[t.F2=113]="F2",t[t.F10=121]="F10",t[t.Home=36]="Home",t[t.Insert=45]="Insert",t[t.KeyA=65]="KeyA",t[t.KeyB=66]="KeyB",t[t.KeyC=67]="KeyC",t[t.KeyD=68]="KeyD",t[t.KeyE=69]="KeyE",t[t.KeyF=70]="KeyF",t[t.KeyG=71]="KeyG",t[t.KeyH=72]="KeyH",t[t.KeyI=73]="KeyI",t[t.KeyJ=74]="KeyJ",t[t.KeyK=75]="KeyK",t[t.KeyL=76]="KeyL",t[t.KeyM=77]="KeyM",t[t.KeyN=78]="KeyN",t[t.KeyO=79]="KeyO",t[t.KeyP=80]="KeyP",t[t.KeyQ=81]="KeyQ",t[t.KeyR=82]="KeyR",t[t.KeyS=83]="KeyS",t[t.KeyT=84]="KeyT",t[t.KeyU=85]="KeyU",t[t.KeyV=86]="KeyV",t[t.KeyW=87]="KeyW",t[t.KeyX=88]="KeyX",t[t.KeyY=89]="KeyY",t[t.KeyZ=90]="KeyZ",t[t.NumpadDecimal=110]="NumpadDecimal",t[t.PageDown=34]="PageDown",t[t.PageUp=33]="PageUp",t[t.Shift=16]="Shift",t[t.Space=32]="Space",t[t.Tab=9]="Tab"}(U||(U={}));var et=function(){function t(){this.prevented=!1}return t.prototype.preventDefault=function(){this.prevented=!0},t.prototype.isDefaultPrevented=function(){return this.prevented},t}()},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=i(2),r=i(1),n=i(10),s=i(6),a=i(11),p=i(14),h=i(15),c=i(16),l=i(13),u=i(26),d=i(18),f=[a.ArcGaugeComponent,l.ArcCenterTemplateDirective,p.ArcGaugeAreaComponent,h.ArcScaleComponent,c.ArcLabelsComponent,u.ColorsComponent,d.ColorComponent],g=function(){function t(){}return t=o.__decorate([r.NgModule({declarations:[f],exports:[f],imports:[s.SharedModule,n.CommonModule]})],t)}();e.ArcGaugeModule=g},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){this.configurationService=t,this.collectionChangesService=e}return t.prototype.ngOnChanges=function(t){this.configurationService.copyChanges("",t),this.collectionChangesService.hasChanges=!0},t}();e.CollectionItemComponent=o},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=i(2),r=i(1),n=i(4),s=i(18),a=i(3),p=function(t){function e(e,i){return t.call(this,"colors",e,i)||this}return o.__extends(e,t),o.__decorate([r.ContentChildren(s.ColorComponent),o.__metadata("design:type",r.QueryList)],e.prototype,"children",void 0),e=o.__decorate([r.Component({providers:[a.CollectionChangesService],selector:"kendo-arcgauge-colors",template:""}),o.__metadata("design:paramtypes",[a.ConfigurationService,a.CollectionChangesService])],e)}(n.CollectionComponent);e.ColorsComponent=p},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=i(2),r=i(1),n=i(6),s=i(28),a=i(29),p=i(30),h=i(31),c=i(32),l=i(19),u=i(20),d=i(33),f=[s.LinearGaugeComponent,a.LinearGaugeAreaComponent,p.LinearScaleComponent,h.LinearLabelsComponent,c.LinearPointersComponent,l.LinearPointerComponent,u.LinearRangeComponent,d.LinearRangesComponent],g=function(){function t(){}return t=o.__decorate([r.NgModule({declarations:[f],exports:[f],imports:[n.SharedModule]})],t)}();e.LinearGaugeModule=g},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=i(2),r=i(1),n=i(3),s=i(12),a=i(7),p=i(4),h=i(9),c=function(t){function e(e,i,o,r,n,s,a){return t.call(this,e,i,o,r,n,s,a)||this}return o.__extends(e,t),e.prototype.createInstance=function(t,e,i,o){this.instance=new h.LinearGauge(t,e,i,o)},o.__decorate([r.Input(),o.__metadata("design:type",Object)],e.prototype,"pointer",void 0),o.__decorate([r.Input(),o.__metadata("design:type",Object)],e.prototype,"scale",void 0),e=o.__decorate([r.Component({changeDetection:r.ChangeDetectionStrategy.OnPush,exportAs:"kendoLinearGauge",providers:[n.ConfigurationService,a.LocalizationService,{provide:a.L10N_PREFIX,useValue:"kendo.lineargauge"}],selector:"kendo-lineargauge",template:'\n <div #surface class=\'k-chart-surface\'></div>\n <kendo-resize-sensor (resize)="onResize($event)" [rateLimit]="resizeRateLimit"></kendo-resize-sensor>\n '}),o.__metadata("design:paramtypes",[n.ConfigurationService,n.ThemeService,s.IntlService,a.LocalizationService,r.ElementRef,r.Renderer2,r.NgZone])],e)}(p.GaugeComponent);e.LinearGaugeComponent=c},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=i(2),r=i(1),n=i(4),s=i(3),a=function(t){function e(e){var i=t.call(this,"gaugeArea",e)||this;return i.configurationService=e,i}return o.__extends(e,t),e=o.__decorate([r.Component({selector:"kendo-lineargauge-area",template:""}),o.__metadata("design:paramtypes",[s.ConfigurationService])],e)}(n.GaugeAreaComponent);e.LinearGaugeAreaComponent=a},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=i(2),r=i(1),n=i(4),s=i(3),a=function(t){function e(e){var i=t.call(this,"scale",e)||this;return i.configurationService=e,i}return o.__extends(e,t),o.__decorate([r.Input(),o.__metadata("design:type",Object)],e.prototype,"line",void 0),o.__decorate([r.Input(),o.__metadata("design:type",Array)],e.prototype,"ranges",void 0),o.__decorate([r.Input(),o.__metadata("design:type",Boolean)],e.prototype,"mirror",void 0),o.__decorate([r.Input(),o.__metadata("design:type",Boolean)],e.prototype,"vertical",void 0),e=o.__decorate([r.Component({selector:"kendo-lineargauge-scale",template:""}),o.__metadata("design:paramtypes",[s.ConfigurationService])],e)}(n.ScaleComponent);e.LinearScaleComponent=a},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=i(2),r=i(1),n=i(4),s=i(3),a=function(t){function e(e){var i=t.call(this,"scale.labels",e)||this;return i.configurationService=e,i}return o.__extends(e,t),e=o.__decorate([r.Component({selector:"kendo-lineargauge-scale-labels",template:""}),o.__metadata("design:paramtypes",[s.ConfigurationService])],e)}(n.LabelsComponent);e.LinearLabelsComponent=a},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=i(2),r=i(1),n=i(19),s=i(4),a=i(3),p=function(t){function e(e,i){return t.call(this,"pointer",e,i)||this}return o.__extends(e,t),o.__decorate([r.ContentChildren(n.LinearPointerComponent),o.__metadata("design:type",r.QueryList)],e.prototype,"children",void 0),e=o.__decorate([r.Component({providers:[a.CollectionChangesService],selector:"kendo-lineargauge-pointers",template:""}),o.__metadata("design:paramtypes",[a.ConfigurationService,a.CollectionChangesService])],e)}(s.CollectionComponent);e.LinearPointersComponent=p},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=i(2),r=i(1),n=i(4),s=i(20),a=i(3),p=function(t){function e(e,i){return t.call(this,"scale.ranges",e,i)||this}return o.__extends(e,t),o.__decorate([r.ContentChildren(s.LinearRangeComponent),o.__metadata("design:type",r.QueryList)],e.prototype,"children",void 0),e=o.__decorate([r.Component({providers:[a.CollectionChangesService],selector:"kendo-lineargauge-scale-ranges",template:""}),o.__metadata("design:paramtypes",[a.ConfigurationService,a.CollectionChangesService])],e)}(n.CollectionComponent);e.LinearRangesComponent=p},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=i(2),r=i(1),n=i(6),s=i(35),a=i(36),p=i(37),h=i(17),c=i(38),l=i(21),u=i(22),d=i(39),f=[s.RadialGaugeComponent,a.RadialGaugeAreaComponent,p.RadialScaleComponent,h.RadialLabelsComponent,c.RadialPointersComponent,l.RadialPointerComponent,u.RadialRangeComponent,d.RadialRangesComponent],g=function(){function t(){}return t=o.__decorate([r.NgModule({declarations:[f],exports:[f],imports:[n.SharedModule]})],t)}();e.RadialGaugeModule=g},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=i(2),r=i(1),n=i(3),s=i(12),a=i(7),p=i(4),h=i(9),c=function(t){function e(e,i,o,r,n,s,a){return t.call(this,e,i,o,r,n,s,a)||this}return o.__extends(e,t),e.prototype.createInstance=function(t,e,i,o){this.instance=new h.RadialGauge(t,e,i,o)},o.__decorate([r.Input(),o.__metadata("design:type",Object)],e.prototype,"pointer",void 0),o.__decorate([r.Input(),o.__metadata("design:type",Object)],e.prototype,"scale",void 0),e=o.__decorate([r.Component({changeDetection:r.ChangeDetectionStrategy.OnPush,exportAs:"kendoRadialGauge",providers:[n.ConfigurationService,a.LocalizationService,{provide:a.L10N_PREFIX,useValue:"kendo.radialgauge"}],selector:"kendo-radialgauge",template:'\n <div #surface class=\'k-chart-surface\'></div>\n <kendo-resize-sensor (resize)="onResize($event)" [rateLimit]="resizeRateLimit"></kendo-resize-sensor>\n '}),o.__metadata("design:paramtypes",[n.ConfigurationService,n.ThemeService,s.IntlService,a.LocalizationService,r.ElementRef,r.Renderer2,r.NgZone])],e)}(p.GaugeComponent);e.RadialGaugeComponent=c},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=i(2),r=i(1),n=i(4),s=i(3),a=function(t){function e(e){var i=t.call(this,"gaugeArea",e)||this;return i.configurationService=e,i}return o.__extends(e,t),e=o.__decorate([r.Component({selector:"kendo-radialgauge-area",template:""}),o.__metadata("design:paramtypes",[s.ConfigurationService])],e)}(n.GaugeAreaComponent);e.RadialGaugeAreaComponent=a},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=i(2),r=i(1),n=i(4),s=i(3),a=function(t){function e(e){var i=t.call(this,"scale",e)||this;return i.configurationService=e,i}return o.__extends(e,t),o.__decorate([r.Input(),o.__metadata("design:type",Object)],e.prototype,"labels",void 0),o.__decorate([r.Input(),o.__metadata("design:type",Number)],e.prototype,"rangeDistance",void 0),o.__decorate([r.Input(),o.__metadata("design:type",Array)],e.prototype,"ranges",void 0),o.__decorate([r.Input(),o.__metadata("design:type",Number)],e.prototype,"startAngle",void 0),o.__decorate([r.Input(),o.__metadata("design:type",Number)],e.prototype,"endAngle",void 0),e=o.__decorate([r.Component({selector:"kendo-radialgauge-scale",template:""}),o.__metadata("design:paramtypes",[s.ConfigurationService])],e)}(n.ScaleComponent);e.RadialScaleComponent=a},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=i(2),r=i(1),n=i(21),s=i(4),a=i(3),p=function(t){function e(e,i){return t.call(this,"pointer",e,i)||this}return o.__extends(e,t),o.__decorate([r.ContentChildren(n.RadialPointerComponent),o.__metadata("design:type",r.QueryList)],e.prototype,"children",void 0),e=o.__decorate([r.Component({providers:[a.CollectionChangesService],selector:"kendo-radialgauge-pointers",template:""}),o.__metadata("design:paramtypes",[a.ConfigurationService,a.CollectionChangesService])],e)}(s.CollectionComponent);e.RadialPointersComponent=p},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=i(2),r=i(1),n=i(4),s=i(22),a=i(3),p=function(t){function e(e,i){return t.call(this,"scale.ranges",e,i)||this}return o.__extends(e,t),o.__decorate([r.ContentChildren(s.RadialRangeComponent),o.__metadata("design:type",r.QueryList)],e.prototype,"children",void 0),e=o.__decorate([r.Component({providers:[a.CollectionChangesService],selector:"kendo-radialgauge-scale-ranges",template:""}),o.__metadata("design:paramtypes",[a.ConfigurationService,a.CollectionChangesService])],e)}(n.CollectionComponent);e.RadialRangesComponent=p},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=i(2),r=i(1),n=function(){function t(t){this.templateRef=t}return t=o.__decorate([r.Directive({selector:"[kendoCircularGaugeCenterTemplate]"}),o.__param(0,r.Optional()),o.__metadata("design:paramtypes",[r.TemplateRef])],t)}();e.CircularGaugeCenterTemplateDirective=n},function(t,e){t.exports=s},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=i(2),r=i(24);e.ArcGaugeModule=r.ArcGaugeModule;var n=i(27);e.LinearGaugeModule=n.LinearGaugeModule;var s=i(34);e.RadialGaugeModule=s.RadialGaugeModule;var a=i(54);e.GaugesModule=a.GaugesModule,o.__exportStar(i(4),e),o.__exportStar(i(3),e),o.__exportStar(i(60),e),o.__exportStar(i(61),e),o.__exportStar(i(62),e);var p=i(23);e.ResizeSensorComponent=p.ResizeSensorComponent},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=i(2),r=i(1);function n(t){return"object"==typeof t}function s(t,e){if(Object.keys(t).length!==Object.keys(e).length)return!0;for(var i in t)if("value"!==i&&t.hasOwnProperty(i)){var o=t[i],r=e[i];if(n(o)&&n(r)?s(o,r):o!==r)return!0}}var a=function(){function t(){this.options={}}return t.prototype.copyChanges=function(t,e){for(var i in e)if(e.hasOwnProperty(i)){var o=e[i].currentValue,r=(t?t+".":"")+i;this.set(r,o)}},t.prototype.read=function(){return this.hasChanges=!1,this.valueChange=!1,this.options},t.prototype.readValues=function(){return this.valueChange=!1,[].concat(this.options.pointer).map((function(t){return t.value}))},t.prototype.readValue=function(){return this.valueChange=!1,this.options.value},t.prototype.set=function(t,e){var i=this.optionContext(t),o=i.key,r=i.options;this.hasChanges||"value"!==o&&("pointer"!==o||function(t,e){if(!t||!e)return!0;if(t=[].concat(t),e=[].concat(e),t.length!==e.length)return!0;for(var i=0;i<t.length;i++)if(s(t[i],e[i]))return!0}(this.options.pointer,e))?(this.hasChanges=!0,this.valueChange=!1):this.valueChange=!0,r[o]=e},t.prototype.optionContext=function(t){for(var e=t.split("."),i=this.options,o=e.shift();e.length>0;)i=i[o]=i[o]||{},o=e.shift();return{key:o,options:i}},t=o.__decorate([r.Injectable()],t)}();e.ConfigurationService=a},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=i(2),r=i(1),n=function(){function t(){}return t=o.__decorate([r.Injectable()],t)}();e.CollectionChangesService=n},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=i(2),r=i(1),n=function(){function t(){}return t.prototype.read=function(){return this.options||this.load(),this.options},t.prototype.load=function(){if("undefined"!=typeof document){var t=document.createElement("div");t.style.display="none",t.innerHTML='\n <div class="k-var--gauge-pointer"></div>\n <div class="k-var--gauge-track"></div>\n <div class="k-var--normal-text-color"></div>\n',document.body.appendChild(t);try{var e=this.getColor(t,"gauge-pointer"),i=this.getColor(t,"gauge-track"),o=this.getColor(t,"normal-text-color");this.options={pointer:{color:e},scale:{labels:{color:o},rangePlaceholderColor:i,minorTicks:{color:o},majorTicks:{color:o},line:{color:o}}}}finally{document.body.removeChild(t)}}else this.options={}},t.prototype.getColor=function(t,e){return window.getComputedStyle(t.querySelector(".k-var--"+e)).backgroundColor},t=o.__decorate([r.Injectable()],t)}();e.ThemeService=n},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e,i){this.key=t,this.configurationService=e,this.collectionChangesService=i}return t.prototype.ngOnDestroy=function(){this.subscription.unsubscribe(),this.configurationService.set(this.key,[])},t.prototype.ngAfterContentInit=function(){var t=this;this.subscription=this.children.changes.subscribe((function(){return t.collectionChangesService.hasChanges=!0}))},t.prototype.ngAfterContentChecked=function(){this.collectionChangesService.hasChanges&&(this.configurationService.set(this.key,this.readItems()),this.collectionChangesService.hasChanges=!1)},t.prototype.readItems=function(){return this.children.map((function(t){return Object.assign({},t.configurationService.read())}))},t}();e.CollectionComponent=o},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=i(2),r=i(1),n=i(0),s=i(23),a=i(48),p=i(49),h=function(){function t(t,e,i,o,r,n,s){this.configurationService=t,this.themeService=e,this.intlService=i,this.localizationService=o,this.element=r,this.renderer=n,this.ngZone=s,this.resizeRateLimit=10,this.className=!0,this.theme=null,this.rtl=!1,a.validatePackage(p.packageMetadata)}return t.prototype.ngOnInit=function(){this.setDirection(),this.subscriptions=this.intlService.changes.subscribe(this.intlChange.bind(this)),this.subscriptions.add(this.localizationService.changes.subscribe(this.rtlChange.bind(this)))},t.prototype.ngAfterViewChecked=function(){var t,e=this;"undefined"!=typeof document&&(this.instance?this.configurationService.hasChanges?t=this.updateOptions:this.configurationService.valueChange&&(t=this.setValues):t=this.init,t&&(clearTimeout(this.redrawTimeout),this.instance||function(t){for(var e=t;e&&e!==document.body;)e=e.parentNode;return Boolean(e)}(this.element.nativeElement)?this.updateCall(t):this.defer((function(){e.updateCall(t)}))))},t.prototype.updateCall=function(t){this.updateDirection(),t.call(this),this.updateSize()},t.prototype.updateOptions=function(){this.instance.setOptions(this.configurationService.read())},t.prototype.setValues=function(){this.instance.allValues(this.configurationService.readValues())},t.prototype.ngOnChanges=function(t){this.configurationService.copyChanges("",t)},t.prototype.ngOnDestroy=function(){this.instance&&this.instance.destroy(),this.subscriptions.unsubscribe(),clearTimeout(this.redrawTimeout)},t.prototype.exportImage=function(t){return void 0===t&&(t={}),this.exportVisual().then((function(e){return n.exportImage(e,t)}))},t.prototype.exportSVG=function(t){return void 0===t&&(t={}),this.exportVisual().then((function(e){return n.exportSVG(e,t)}))},t.prototype.exportVisual=function(){return Promise.resolve(this.instance.exportVisual())},t.prototype.onResize=function(t){this.autoResize&&this.resize()},t.prototype.resize=function(){this.instance&&this.instance.resize()},t.prototype.init=function(){this.surfaceElement&&this.createInstance(this.surfaceElement.nativeElement,this.configurationService.read(),this.themeService.read(),{intlService:this.intlService,rtl:this.rtl})},Object.defineProperty(t.prototype,"autoResize",{get:function(){return this.resizeRateLimit>0},enumerable:!0,configurable:!0}),t.prototype.updateSize=function(){this.resizeSensor.acceptSize()},t.prototype.intlChange=function(){this.instance&&this.deferredRedraw()},t.prototype.rtlChange=function(){this.instance&&this.rtl!==this.isRTL&&this.deferredRedraw()},t.prototype.deferredRedraw=function(){var t=this;this.defer((function(){t.updateDirection(),t.instance.noTransitionsRedraw()}))},t.prototype.defer=function(t){var e=this;this.ngZone.runOutsideAngular((function(){clearTimeout(e.redrawTimeout),e.redrawTimeout=setTimeout(t,0)}))},t.prototype.updateDirection=function(){var t=this.isRTL;this.rtl!==t&&(this.setDirection(),this.instance&&this.instance.setDirection(t))},t.prototype.setDirection=function(){this.rtl=this.isRTL,this.element&&this.renderer.setAttribute(this.element.nativeElement,"dir",this.rtl?"rtl":"ltr")},Object.defineProperty(t.prototype,"isRTL",{get:function(){return Boolean(this.localizationService.rtl)},enumerable:!0,configurable:!0}),o.__decorate([r.Input(),o.__metadata("design:type",Object)],t.prototype,"gaugeArea",void 0),o.__decorate([r.Input(),o.__metadata("design:type",String)],t.prototype,"renderAs",void 0),o.__decorate([r.Input(),o.__metadata("design:type",Number)],t.prototype,"resizeRateLimit",void 0),o.__decorate([r.Input(),o.__metadata("design:type",Object)],t.prototype,"scale",void 0),o.__decorate([r.Input(),o.__metadata("design:type",Boolean)],t.prototype,"transitions",void 0),o.__decorate([r.ViewChild("surface",{static:!0}),o.__metadata("design:type",r.ElementRef)],t.prototype,"surfaceElement",void 0),o.__decorate([r.ViewChild(s.ResizeSensorComponent,{static:!0}),o.__metadata("design:type",s.ResizeSensorComponent)],t.prototype,"resizeSensor",void 0),o.__decorate([r.HostBinding("class.k-gauge"),o.__metadata("design:type",Boolean)],t.prototype,"className",void 0),t}();e.GaugeComponent=h},function(t,e,i){"use strict";i.r(e),i.d(e,"setScriptKey",(function(){return h})),i.d(e,"validatePackage",(function(){return c}));var o,r,n=["EMfOwhq=","z3jVDxbfBMq=","B2jQzwn0","u2vLia==","BKDQzKK=","zNvUy3rPB24=","zgf0yq==","D1rPsKq=","z2v0","BgLJzw5Zzuv4CgLYyxrPB25eyxrL","DgLTzxn0yw1W","y29Kzq==","DhLWzq==","C2v0","DMvYC2LVBG==","ChjVzhvJDenVzgvZ","u3PgAeu=","BMfTzq==","sg94tgG=","zun0Beq=","z3jVDxa=","ChjVzhvJDhm=","CgfYC2u=","BfP2zKS=","lcb0AguGCgfJA2fNzsb3yxmGChvIBgLZAgvKig9Uia==","Cfj6wKC=","tM8GBgLJzw5ZzsbMB3vUzc4k","ChjVzhvJDe5HBwu=","uwrAy0q=","BefHr0m=","t3jquwq=","s1Ldrvi=","CNvlCgC=","AgfZ","zxHWAxj5rgf0zq==","CgfJA2fNzu5HBwu=","y3LqC08=","CMr1Aui=","CNvHzve=","zg9JC1vYBa==","uhjVz3jLC3mG","ChvIBgLZAerHDgu=","vgHLihbYB2r1y3qGAxmGBM90igLUy2X1zgvKigLUihrOzsbSAwnLBNnLlGO=","D2fYBG==","B3nTvxa=","swTrwfO=","CLfMrLm=","igzVCIbTB3jLigLUzM9YBwf0Aw9UlGO=","whv2wMO=","rLbJyLa=","ww91CIbSAwnLBNnLigv4CgLYzwqGB24G","C2nYAxb0s2v5","BgLJzw5ZAw5Nrg9JC1vYBa==","tgLJzw5ZzsbHy3rPDMf0Aw9UigzHAwXLzcbMB3iG","EfbArNi=","zMLUza==","Dw5KzwzPBMvK","Dg9mB2nHBgvtDhjPBMC=","BgvUz3rO"];o=n,r=131,function(t){for(;--t;)o.push(o.shift())}(++r);var s=function(t,e){var i=n[t-=0];if(void 0===s.eVebMg){s.JsjtEd=function(t){for(var e=function(t){for(var e,i,o=String(t).replace(/=+$/,""),r="",n=0,s=0;i=o.charAt(s++);~i&&(e=n%4?64*e+i:i,n++%4)?r+=String.fromCharCode(255&e>>(-2*n&6)):0)i="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=".indexOf(i);return r}(t),i=[],o=0,r=e.length;o<r;o++)i+="%"+("00"+e.charCodeAt(o).toString(16)).slice(-2);return decodeURIComponent(i)},s.rqrXoU={},s.eVebMg=!0}var o=s.rqrXoU[t];return void 0===o?(i=s.JsjtEd(i),s.rqrXoU[t]=i):i=o,i},a={data:' {"timestamp":1635163540,"products":[{"trial":false,"code":"KENDOUIREACT","licenseExpirationDate":1642770000},{"trial":false,"code":"KENDOUICOMPLETE","licenseExpirationDate":1642770000},{"trial":false,"code":"KENDOUIVUE","licenseExpirationDate":1642770000},{"trial":false,"code":"KENDOUIANGULAR","licenseExpirationDate":1642770000}],"integrity":"Iq+/hmrfWBiuOSBY/c3zb/zGgBg="} '},p=new Map;function h(t){}function c(t){if(p[s("0x14")](t[s("0x4")])){if(s("0x35")==s("0x35"))return p[s("0x36")](t[s("0x4")])}var e,i=t[s("0x1")]?" v"+t[s("0x1")]:"",o=t[s("0x4")]+i,r=JSON[s("0x9")](a[s("0x34")]),n=!r[s("0x26")]&&!r[s("0x38")],h=r[s("0x26")]&&typeof KendoLicensing===s("0x2b"),c=function(t,e){var i=t[s("0x8")];if(!i||!i[s("0x2d")]){if(s("0x11")==s("0x11"))return null}var o=new Set(e);return i[s("0x2a")]((function(t){if(s("0xa")!==s("0x18"))return o[s("0x14")](t[s("0x39")])}))}(r,t[s("0x2")]);if(n||h)if(s("0x29")!=s("0x29")){}else e={type:0,packageName:o,docsUrl:t[s("0x27")]};else if(s("0xf")===s("0x24")){}else if(c){if(s("0x12")!=s("0x12")){}else if(c[s("0x37")]<t[s("0x1c")])if(s("0x21")===s("0x32")){}else e={type:2,packageName:o,publishDate:l(t[s("0x1c")]),expiryDate:l(c[s("0x37")]),docsUrl:t[s("0x27")]}}else if(s("0x6")!=s("0x6")){}else e={type:1,packageName:o,docsUrl:t[s("0x27")]};if(e&&typeof console===s("0x30"))if(s("0x5")===s("0x3")){}else{var u=s("0x1b")+t[s("0xe")],d=typeof console[s("0x7")]===s("0x33");if(d)if(s("0xc")!=s("0xc")){}else console[s("0x7")](u);else if(s("0x17")!=s("0x17")){}else console[s("0x1e")](u);if(console[s("0x1e")](function(t){var e=s("0x28")+t[s("0x16")]+"\n";if(2===t[s("0x3a")])if(s("0x20")!=s("0x20")){}else e+=s("0x25")+t[s("0x15")][s("0x2c")]()+s("0xb")+t[s("0x1c")][s("0x2c")]()+".\n";else if(0===t[s("0x3a")])if(s("0x13")!==s("0x10"))e+=s("0xd");else{}else if(1===t[s("0x3a")])if(s("0x2e")===s("0x23")){}else e+=s("0x1d");return e+=s("0x31")+t[s("0x1a")]+s("0x22")}(e)),d)if(s("0x1f")!==s("0x19"))console[s("0x2f")]();else{}}var f=!e;return p[s("0x0")](t[s("0x4")],f),f}function l(t){return new Date(1e3*t)}},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.packageMetadata={name:"@progress/kendo-angular-gauges",productName:"Kendo UI for Angular",productCodes:["KENDOUIANGULAR","KENDOUICOMPLETE"],publishDate:1635841844,version:"",licensingDocsUrl:"https://www.telerik.com/kendo-angular-ui/my-license/?utm_medium=product&utm_source=kendoangular&utm_campaign=kendo-ui-angular-purchase-license-keys-warning"}},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=i(2),r=i(1),n=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o.__extends(e,t),o.__decorate([r.Input(),o.__metadata("design:type",String)],e.prototype,"background",void 0),o.__decorate([r.Input(),o.__metadata("design:type",Object)],e.prototype,"border",void 0),o.__decorate([r.Input(),o.__metadata("design:type",Number)],e.prototype,"height",void 0),o.__decorate([r.Input(),o.__metadata("design:type",Object)],e.prototype,"margin",void 0),o.__decorate([r.Input(),o.__metadata("design:type",Number)],e.prototype,"width",void 0),e}(i(8).SettingsComponent);e.GaugeAreaComponent=n},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=i(2),r=i(1),n=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o.__extends(e,t),o.__decorate([r.Input(),o.__metadata("design:type",String)],e.prototype,"background",void 0),o.__decorate([r.Input(),o.__metadata("design:type",Object)],e.prototype,"border",void 0),o.__decorate([r.Input(),o.__metadata("design:type",String)],e.prototype,"color",void 0),o.__decorate([r.Input(),o.__metadata("design:type",String)],e.prototype,"font",void 0),o.__decorate([r.Input(),o.__metadata("design:type",String)],e.prototype,"format",void 0),o.__decorate([r.Input(),o.__metadata("design:type",Object)],e.prototype,"margin",void 0),o.__decorate([r.Input(),o.__metadata("design:type",Object)],e.prototype,"padding",void 0),o.__decorate([r.Input(),o.__metadata("design:type",Function)],e.prototype,"content",void 0),o.__decorate([r.Input(),o.__metadata("design:type",Boolean)],e.prototype,"visible",void 0),e}(i(8).SettingsComponent);e.LabelsComponent=n},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=i(2),r=i(1),n=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o.__extends(e,t),o.__decorate([r.Input(),o.__metadata("design:type",Number)],e.prototype,"from",void 0),o.__decorate([r.Input(),o.__metadata("design:type",Number)],e.prototype,"to",void 0),o.__decorate([r.Input(),o.__metadata("design:type",Number)],e.prototype,"opacity",void 0),o.__decorate([r.Input(),o.__metadata("design:type",String)],e.prototype,"color",void 0),e}(i(25).CollectionItemComponent);e.RangeComponent=n},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=i(2),r=i(1),n=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o.__extends(e,t),o.__decorate([r.Input(),o.__metadata("design:type",Object)],e.prototype,"labels",void 0),o.__decorate([r.Input(),o.__metadata("design:type",Object)],e.prototype,"majorTicks",void 0),o.__decorate([r.Input(),o.__metadata("design:type",Object)],e.prototype,"minorTicks",void 0),o.__decorate([r.Input(),o.__metadata("design:type",Number)],e.prototype,"min",void 0),o.__decorate([r.Input(),o.__metadata("design:type",Number)],e.prototype,"max",void 0),o.__decorate([r.Input(),o.__metadata("design:type",Number)],e.prototype,"minorUnit",void 0),o.__decorate([r.Input(),o.__metadata("design:type",Number)],e.prototype,"majorUnit",void 0),o.__decorate([r.Input(),o.__metadata("design:type",Boolean)],e.prototype,"reverse",void 0),o.__decorate([r.Input(),o.__metadata("design:type",Number)],e.prototype,"rangeSize",void 0),o.__decorate([r.Input(),o.__metadata("design:type",String)],e.prototype,"rangePlaceholderColor",void 0),e}(i(8).SettingsComponent);e.ScaleComponent=n},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=i(2),r=i(1),n=i(24),s=i(55),a=i(27),p=i(34),h=function(){function t(){}return t=o.__decorate([r.NgModule({exports:[n.ArcGaugeModule,s.CircularGaugeModule,a.LinearGaugeModule,p.RadialGaugeModule]})],t)}();e.GaugesModule=h},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=i(2),r=i(1),n=i(10),s=i(6),a=i(56),p=i(57),h=i(58),c=i(59),l=i(40),u=[a.CircularGaugeComponent,l.CircularGaugeCenterTemplateDirective,p.CircularGaugeAreaComponent,h.CircularGaugeScaleComponent,c.CircularGaugeLabelsComponent],d=function(){function t(){}return t=o.__decorate([r.NgModule({declarations:[u],exports:[u],imports:[s.SharedModule,n.CommonModule]})],t)}();e.CircularGaugeModule=d},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=i(2),r=i(1),n=i(7),s=i(9),a=i(40),p=i(11),h=i(3),c=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o.__extends(e,t),e.prototype.createInstance=function(t,e,i,o){this.instance=new s.CircularGauge(t,e,i,o),this.updateElements()},o.__decorate([r.Input(),o.__metadata("design:type",Object)],e.prototype,"scale",void 0),o.__decorate([r.ContentChild(a.CircularGaugeCenterTemplateDirective,{static:!1}),o.__metadata("design:type",a.CircularGaugeCenterTemplateDirective)],e.prototype,"centerTemplate",void 0),e=o.__decorate([r.Component({changeDetection:r.ChangeDetectionStrategy.OnPush,exportAs:"kendoCircularGauge",providers:[h.ConfigurationService,n.LocalizationService,{provide:n.L10N_PREFIX,useValue:"kendo.circulargauge"}],selector:"kendo-circulargauge",template:'\n <div #surface class=\'k-chart-surface\'></div>\n <div class="k-arcgauge-label" *ngIf="centerTemplate" #label>\n <ng-template [ngTemplateOutlet]="centerTemplate.templateRef" [ngTemplateOutletContext]="centerTemplateContext"></ng-template>\n </div>\n <kendo-resize-sensor (resize)="onResize($event)" [rateLimit]="resizeRateLimit"></kendo-resize-sensor>\n '})],e)}(p.ArcGaugeComponent);e.CircularGaugeComponent=c},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=i(2),r=i(1),n=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o.__extends(e,t),e=o.__decorate([r.Component({selector:"kendo-circulargauge-area",template:""})],e)}(i(14).ArcGaugeAreaComponent);e.CircularGaugeAreaComponent=n},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=i(2),r=i(1),n=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o.__extends(e,t),e=o.__decorate([r.Component({selector:"kendo-circulargauge-scale",template:""})],e)}(i(15).ArcScaleComponent);e.CircularGaugeScaleComponent=n},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=i(2),r=i(1),n=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o.__extends(e,t),e=o.__decorate([r.Component({selector:"kendo-circulargauge-scale-labels",template:""})],e)}(i(16).ArcLabelsComponent);e.CircularGaugeLabelsComponent=n},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=i(11);e.ArcGaugeComponent=o.ArcGaugeComponent;var r=i(14);e.ArcGaugeAreaComponent=r.ArcGaugeAreaComponent;var n=i(15);e.ArcScaleComponent=n.ArcScaleComponent;var s=i(16);e.ArcLabelsComponent=s.ArcLabelsComponent;var a=i(13);e.ArcCenterTemplateDirective=a.ArcCenterTemplateDirective;var p=i(26);e.ColorsComponent=p.ColorsComponent;var h=i(18);e.ColorComponent=h.ColorComponent},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=i(28);e.LinearGaugeComponent=o.LinearGaugeComponent;var r=i(29);e.LinearGaugeAreaComponent=r.LinearGaugeAreaComponent;var n=i(30);e.LinearScaleComponent=n.LinearScaleComponent;var s=i(31);e.LinearLabelsComponent=s.LinearLabelsComponent;var a=i(32);e.LinearPointersComponent=a.LinearPointersComponent;var p=i(19);e.LinearPointerComponent=p.LinearPointerComponent;var h=i(20);e.LinearRangeComponent=h.LinearRangeComponent;var c=i(33);e.LinearRangesComponent=c.LinearRangesComponent},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=i(35);e.RadialGaugeComponent=o.RadialGaugeComponent;var r=i(36);e.RadialGaugeAreaComponent=r.RadialGaugeAreaComponent;var n=i(37);e.RadialScaleComponent=n.RadialScaleComponent;var s=i(17);e.RadialLabelsComponent=s.RadialLabelsComponent;var a=i(38);e.RadialPointersComponent=a.RadialPointersComponent;var p=i(21);e.RadialPointerComponent=p.RadialPointerComponent;var h=i(22);e.RadialRangeComponent=h.RadialRangeComponent;var c=i(39);e.RadialRangesComponent=c.RadialRangesComponent}])}));