@sisense/sdk-ui 2.11.0 → 2.13.0

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 (335) hide show
  1. package/dist/ai.cjs +19 -19
  2. package/dist/ai.js +854 -842
  3. package/dist/analytics-composer/node.cjs +1 -3
  4. package/dist/analytics-composer/node.js +2304 -653
  5. package/dist/analytics-composer.cjs +18 -18
  6. package/dist/analytics-composer.js +18 -9
  7. package/dist/{derive-chart-family-BhAFg8OE.js → derive-chart-family-BcASqlOf.js} +13145 -12937
  8. package/dist/derive-chart-family-Ca1NT5US.cjs +166 -0
  9. package/dist/{dimensions-DCxjxuyH.cjs → dimensions-DCT9XInO.cjs} +1 -1
  10. package/dist/{dimensions-Bk74slQe.js → dimensions-DOxD1XtL.js} +1 -1
  11. package/dist/execute-query-CvH_36GC.cjs +1 -0
  12. package/dist/{execute-query-CxMSGp-J.js → execute-query-JhI9RXe_.js} +1613 -1539
  13. package/dist/index.cjs +29 -25
  14. package/dist/index.js +24789 -24450
  15. package/dist/index.umd.js +437 -443
  16. package/dist/packages/sdk-ui/src/ai/api/chat-rest-api.d.ts +1 -1
  17. package/dist/packages/sdk-ui/src/ai/api/hooks.d.ts +1 -1
  18. package/dist/packages/sdk-ui/src/ai/chart/nlq-chart-widget.d.ts +1 -1
  19. package/dist/packages/sdk-ui/src/ai/chat-config.d.ts +1 -1
  20. package/dist/packages/sdk-ui/src/ai/chat-frame.d.ts +1 -1
  21. package/dist/packages/sdk-ui/src/ai/custom-ai-context-provider.d.ts +1 -1
  22. package/dist/packages/sdk-ui/src/ai/index.d.ts +1 -1
  23. package/dist/packages/sdk-ui/src/ai/messages/text-message.d.ts +1 -1
  24. package/dist/packages/sdk-ui/src/ai/use-chat-session.d.ts +1 -1
  25. package/dist/packages/sdk-ui/src/ai/use-final-nlq-response.d.ts +1 -1
  26. package/dist/packages/sdk-ui/src/ai/use-get-nlq-result.d.ts +23 -2
  27. package/dist/packages/sdk-ui/src/ai/use-get-query-recommendations.d.ts +1 -1
  28. package/dist/packages/sdk-ui/src/ai/use-last-nlq-response-from-history.d.ts +1 -1
  29. package/dist/packages/sdk-ui/src/ai/use-last-nlq-response.d.ts +1 -1
  30. package/dist/packages/sdk-ui/src/analytics-composer/code/default-options/data-options.d.ts +4 -0
  31. package/dist/packages/sdk-ui/src/analytics-composer/code/default-options/style-options.d.ts +89 -0
  32. package/dist/packages/sdk-ui/src/analytics-composer/code/stringify-props.d.ts +5 -1
  33. package/dist/packages/sdk-ui/src/analytics-composer/common/utils.d.ts +2 -2
  34. package/dist/packages/sdk-ui/src/analytics-composer/execute-query/execute-query-composer.d.ts +1 -1
  35. package/dist/packages/sdk-ui/src/analytics-composer/execute-query/to-execute-query-code.d.ts +1 -1
  36. package/dist/packages/sdk-ui/src/analytics-composer/index-node.d.ts +1 -1
  37. package/dist/packages/sdk-ui/src/analytics-composer/index.d.ts +1 -1
  38. package/dist/packages/sdk-ui/src/analytics-composer/nlq-v3-translator/common.d.ts +49 -0
  39. package/dist/packages/sdk-ui/src/analytics-composer/nlq-v3-translator/index.d.ts +2 -0
  40. package/dist/packages/sdk-ui/src/analytics-composer/nlq-v3-translator/process-function/custom-formula/process-custom-formula.d.ts +14 -0
  41. package/dist/packages/sdk-ui/src/analytics-composer/nlq-v3-translator/process-function/custom-formula/validate-custom-formula.d.ts +54 -0
  42. package/dist/packages/sdk-ui/src/analytics-composer/nlq-v3-translator/process-function/execute-function.d.ts +5 -0
  43. package/dist/packages/sdk-ui/src/analytics-composer/nlq-v3-translator/process-function/factory-function-processors.d.ts +39 -0
  44. package/dist/packages/sdk-ui/src/analytics-composer/nlq-v3-translator/process-function/factory-function-schemas.d.ts +20 -0
  45. package/dist/packages/sdk-ui/src/analytics-composer/nlq-v3-translator/process-function/filter-processors.d.ts +37 -0
  46. package/dist/packages/sdk-ui/src/analytics-composer/nlq-v3-translator/process-function/process-arg.d.ts +8 -0
  47. package/dist/packages/sdk-ui/src/analytics-composer/nlq-v3-translator/process-function/process-node.d.ts +9 -0
  48. package/dist/packages/sdk-ui/src/analytics-composer/nlq-v3-translator/translate-dimensions.d.ts +10 -0
  49. package/dist/packages/sdk-ui/src/analytics-composer/{new-nlq-translator → nlq-v3-translator}/translate-filters.d.ts +19 -7
  50. package/dist/packages/sdk-ui/src/analytics-composer/{new-nlq-translator → nlq-v3-translator}/translate-measures.d.ts +13 -7
  51. package/dist/packages/sdk-ui/src/analytics-composer/{new-nlq-translator → nlq-v3-translator}/translate-query.d.ts +7 -9
  52. package/dist/packages/sdk-ui/src/analytics-composer/nlq-v3-translator/types.d.ts +46 -0
  53. package/dist/packages/sdk-ui/src/analytics-composer/query/query-translator.d.ts +2 -2
  54. package/dist/packages/sdk-ui/src/analytics-composer/types.d.ts +71 -10
  55. package/dist/packages/sdk-ui/src/analytics-composer/widget/chart-options/get-widget-options.d.ts +1 -1
  56. package/dist/packages/sdk-ui/src/analytics-composer/widget/to-widget-code.d.ts +3 -3
  57. package/dist/packages/sdk-ui/src/analytics-composer/widget/to-widget-props.d.ts +1 -1
  58. package/dist/packages/sdk-ui/src/api/rest-api.d.ts +9 -4
  59. package/dist/packages/sdk-ui/src/api/types/dashboard-dto.d.ts +2 -1
  60. package/dist/packages/sdk-ui/src/app/client-application.d.ts +7 -6
  61. package/dist/packages/sdk-ui/src/app/settings/settings.d.ts +49 -0
  62. package/dist/packages/sdk-ui/src/boxplot-utils.d.ts +2 -2
  63. package/dist/packages/sdk-ui/src/chart/helpers/get-load-data-function.d.ts +2 -2
  64. package/dist/packages/sdk-ui/src/chart/helpers/use-chart-renderer-props.d.ts +1 -1
  65. package/dist/packages/sdk-ui/src/chart/helpers/use-synced-data.d.ts +2 -2
  66. package/dist/packages/sdk-ui/src/chart/restructured-charts/areamap-chart/renderer/areamap.d.ts +1 -1
  67. package/dist/packages/sdk-ui/src/chart/restructured-charts/helpers/data-loading.d.ts +2 -2
  68. package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/calendar-heatmap-chart/constants.d.ts +2 -0
  69. package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/calendar-heatmap-chart/data-options/data-options.d.ts +1 -1
  70. package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/calendar-heatmap-chart/data.d.ts +1 -1
  71. package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/calendar-heatmap-chart/design-options.d.ts +1 -1
  72. package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/calendar-heatmap-chart/highchart-options-builder/options/series-options/calendar-data-generator.d.ts +2 -2
  73. package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/calendar-heatmap-chart/highchart-options-builder/options/tooltip-options.d.ts +1 -1
  74. package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/calendar-heatmap-chart/renderer/calendar-heatmap-charts-grid.d.ts +3 -3
  75. package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/calendar-heatmap-chart/renderer/calendar-heatmap.d.ts +1 -1
  76. package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/calendar-heatmap-chart/renderer/calendar-pagination/calendar-pagination.d.ts +5 -9
  77. package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/calendar-heatmap-chart/renderer/calendar-pagination/helpers.d.ts +2 -2
  78. package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/calendar-heatmap-chart/renderer/helpers/data-helpers.d.ts +0 -2
  79. package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/calendar-heatmap-chart/renderer/helpers/sizing-helpers.d.ts +1 -1
  80. package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/calendar-heatmap-chart/renderer/helpers/view-helpers.d.ts +21 -4
  81. package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/calendar-heatmap-chart/renderer/hooks/index.d.ts +1 -2
  82. package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/calendar-heatmap-chart/renderer/hooks/use-calendar-heatmap-chart-options.d.ts +8 -8
  83. package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/calendar-heatmap-chart/renderer/hooks/use-calendar-heatmap-pagination.d.ts +23 -0
  84. package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/cartesians/helpers/data-options.d.ts +1 -1
  85. package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/cartesians/helpers/highchart-options/axis.d.ts +2 -2
  86. package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/cartesians/helpers/highchart-options/tooltip.d.ts +1 -1
  87. package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/cartesians/helpers/highchart-options/y-axis.d.ts +1 -1
  88. package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/categoricals/funnel-chart/data/index.d.ts +1 -1
  89. package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/categoricals/funnel-chart/design-options/index.d.ts +1 -1
  90. package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/categoricals/funnel-chart/types.d.ts +2 -2
  91. package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/categoricals/helpers/data-options.d.ts +1 -1
  92. package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/categoricals/helpers/data.d.ts +2 -2
  93. package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/categoricals/pie-chart/design-options/index.d.ts +3 -1
  94. package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/categoricals/pie-chart/types.d.ts +2 -2
  95. package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/categoricals/sunburst-chart/data/index.d.ts +1 -1
  96. package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/categoricals/sunburst-chart/data-options/index.d.ts +1 -1
  97. package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/categoricals/sunburst-chart/design-options/index.d.ts +1 -1
  98. package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/categoricals/sunburst-chart/types.d.ts +2 -2
  99. package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/categoricals/treemap-chart/data/index.d.ts +1 -1
  100. package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/categoricals/treemap-chart/data-options/index.d.ts +1 -1
  101. package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/categoricals/treemap-chart/design-options/index.d.ts +1 -1
  102. package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/categoricals/treemap-chart/types.d.ts +2 -2
  103. package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/highcharts-based-chart-renderer/build-highchart-options.d.ts +4 -4
  104. package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/highcharts-based-chart-renderer/highcharts-based-chart-renderer.d.ts +4 -4
  105. package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/types.d.ts +2 -2
  106. package/dist/packages/sdk-ui/src/chart/restructured-charts/types.d.ts +10 -6
  107. package/dist/packages/sdk-ui/src/chart/restructured-charts/utils.d.ts +1 -1
  108. package/dist/packages/sdk-ui/src/chart/types.d.ts +1 -1
  109. package/dist/packages/sdk-ui/src/chart-data/advanced-analytics-data.d.ts +1 -1
  110. package/dist/packages/sdk-ui/src/chart-data/boxplot-data.d.ts +1 -1
  111. package/dist/packages/sdk-ui/src/chart-data/cartesian-data.d.ts +2 -2
  112. package/dist/packages/sdk-ui/src/chart-data/indicator-data.d.ts +1 -1
  113. package/dist/packages/sdk-ui/src/chart-data/range-data.d.ts +1 -1
  114. package/dist/packages/sdk-ui/src/chart-data/scatter-data.d.ts +1 -1
  115. package/dist/packages/sdk-ui/src/chart-data/table-data.d.ts +1 -1
  116. package/dist/packages/sdk-ui/src/chart-data/types.d.ts +3 -3
  117. package/dist/packages/sdk-ui/src/chart-data-options/translate-boxplot-data-options.d.ts +1 -1
  118. package/dist/packages/sdk-ui/src/chart-data-options/translate-data-options.d.ts +1 -1
  119. package/dist/packages/sdk-ui/src/chart-data-options/types.d.ts +2 -2
  120. package/dist/packages/sdk-ui/src/chart-data-options/utils.d.ts +1 -1
  121. package/dist/packages/sdk-ui/src/chart-data-options/validate-data-options/validate-data-options.d.ts +2 -2
  122. package/dist/packages/sdk-ui/src/chart-data-processor/row-comparator.d.ts +1 -1
  123. package/dist/packages/sdk-ui/src/chart-options-processor/advanced-chart-options.d.ts +1 -1
  124. package/dist/packages/sdk-ui/src/chart-options-processor/apply-event-handlers.d.ts +2 -2
  125. package/dist/packages/sdk-ui/src/chart-options-processor/boxplot-chart-options.d.ts +2 -2
  126. package/dist/packages/sdk-ui/src/chart-options-processor/cartesian/cartesian-chart-options.d.ts +4 -4
  127. package/dist/packages/sdk-ui/src/chart-options-processor/cartesian/utils/axis/axis-builders.d.ts +8 -8
  128. package/dist/packages/sdk-ui/src/chart-options-processor/cartesian/utils/axis/axis-settings.d.ts +1 -1
  129. package/dist/packages/sdk-ui/src/chart-options-processor/cartesian/utils/axis/axis-transformers.d.ts +5 -6
  130. package/dist/packages/sdk-ui/src/chart-options-processor/cartesian/utils/chart-spacing-calculator.d.ts +2 -2
  131. package/dist/packages/sdk-ui/src/chart-options-processor/cartesian/utils/series-processor.d.ts +16 -16
  132. package/dist/packages/sdk-ui/src/chart-options-processor/category-chart-options/category-chart-options.d.ts +4 -4
  133. package/dist/packages/sdk-ui/src/chart-options-processor/category-chart-options/funnel-chart-options.d.ts +3 -3
  134. package/dist/packages/sdk-ui/src/chart-options-processor/category-chart-options/pie-chart-options.d.ts +3 -3
  135. package/dist/packages/sdk-ui/src/chart-options-processor/category-chart-options/sunburst-chart-options.d.ts +4 -4
  136. package/dist/packages/sdk-ui/src/chart-options-processor/category-chart-options/treemap-chart-options.d.ts +4 -4
  137. package/dist/packages/sdk-ui/src/chart-options-processor/chart-options-service.d.ts +9 -9
  138. package/dist/packages/sdk-ui/src/chart-options-processor/data-points.d.ts +2 -2
  139. package/dist/packages/sdk-ui/src/chart-options-processor/defaults/cartesian.d.ts +3 -3
  140. package/dist/packages/sdk-ui/src/chart-options-processor/range-chart-options.d.ts +3 -3
  141. package/dist/packages/sdk-ui/src/chart-options-processor/scatter-chart-options.d.ts +3 -3
  142. package/dist/packages/sdk-ui/src/chart-options-processor/series-labels.d.ts +20 -17
  143. package/dist/packages/sdk-ui/src/chart-options-processor/stack-labels.d.ts +21 -0
  144. package/dist/packages/sdk-ui/src/chart-options-processor/style-to-design-options-translator/translate-style-to-design-options.d.ts +2 -2
  145. package/dist/packages/sdk-ui/src/chart-options-processor/style-to-design-options-translator/translate-to-highcharts-options.d.ts +3 -3
  146. package/dist/packages/sdk-ui/src/chart-options-processor/subtype-to-design-options.d.ts +2 -2
  147. package/dist/packages/sdk-ui/src/chart-options-processor/tooltip.d.ts +1 -1
  148. package/dist/packages/sdk-ui/src/chart-options-processor/translations/axis-section.d.ts +18 -7
  149. package/dist/packages/sdk-ui/src/chart-options-processor/translations/base-design-options.d.ts +1 -1
  150. package/dist/packages/sdk-ui/src/chart-options-processor/translations/boxplot/boxplot-axis.d.ts +1 -1
  151. package/dist/packages/sdk-ui/src/chart-options-processor/translations/boxplot/boxplot-plot-options.d.ts +1 -1
  152. package/dist/packages/sdk-ui/src/chart-options-processor/translations/boxplot/boxplot-series.d.ts +1 -1
  153. package/dist/packages/sdk-ui/src/chart-options-processor/translations/design-options.d.ts +13 -8
  154. package/dist/packages/sdk-ui/src/chart-options-processor/translations/funnel-plot-options.d.ts +3 -3
  155. package/dist/packages/sdk-ui/src/chart-options-processor/translations/funnel-series.d.ts +3 -3
  156. package/dist/packages/sdk-ui/src/chart-options-processor/translations/legend-section.d.ts +3 -2
  157. package/dist/packages/sdk-ui/src/chart-options-processor/translations/pie-plot-options.d.ts +4 -4
  158. package/dist/packages/sdk-ui/src/chart-options-processor/translations/pie-series.d.ts +3 -3
  159. package/dist/packages/sdk-ui/src/chart-options-processor/translations/range/tooltip-range.d.ts +1 -1
  160. package/dist/packages/sdk-ui/src/chart-options-processor/translations/scatter-plot-options.d.ts +1 -1
  161. package/dist/packages/sdk-ui/src/chart-options-processor/translations/scatter-series.d.ts +3 -3
  162. package/dist/packages/sdk-ui/src/chart-options-processor/translations/scatter-tooltip.d.ts +1 -1
  163. package/dist/packages/sdk-ui/src/chart-options-processor/translations/sunburst/sunburst-levels.d.ts +2 -2
  164. package/dist/packages/sdk-ui/src/chart-options-processor/translations/sunburst/sunburst-options.d.ts +3 -3
  165. package/dist/packages/sdk-ui/src/chart-options-processor/translations/sunburst/sunburst-series.d.ts +1 -1
  166. package/dist/packages/sdk-ui/src/chart-options-processor/translations/tooltip-utils.d.ts +2 -2
  167. package/dist/packages/sdk-ui/src/chart-options-processor/translations/tooltip.d.ts +1 -1
  168. package/dist/packages/sdk-ui/src/chart-options-processor/translations/translations-to-highcharts.d.ts +7 -7
  169. package/dist/packages/sdk-ui/src/chart-options-processor/translations/treemap/treemap-labels.d.ts +2 -2
  170. package/dist/packages/sdk-ui/src/chart-options-processor/translations/treemap/treemap-options.d.ts +3 -3
  171. package/dist/packages/sdk-ui/src/chart-options-processor/translations/treemap/treemap-series.d.ts +2 -2
  172. package/dist/packages/sdk-ui/src/chart-options-processor/translations/treemap/treemap-tooltip.d.ts +1 -1
  173. package/dist/packages/sdk-ui/src/chart-options-processor/translations/types.d.ts +1 -1
  174. package/dist/packages/sdk-ui/src/chart-options-processor/translations/value-label-section.d.ts +12 -5
  175. package/dist/packages/sdk-ui/src/charts/indicator/chart/indicator.d.ts +4 -4
  176. package/dist/packages/sdk-ui/src/charts/indicator/indicator-legacy-chart-data-options.d.ts +1 -1
  177. package/dist/packages/sdk-ui/src/charts/indicator/indicator-legacy-chart-options/default-options.d.ts +1 -1
  178. package/dist/packages/sdk-ui/src/charts/indicator/indicator-legacy-chart-options/indicator-legacy-chart-options.d.ts +1 -1
  179. package/dist/packages/sdk-ui/src/charts/indicator/indicator-legacy-chart-options/override-with-value-color.d.ts +1 -1
  180. package/dist/packages/sdk-ui/src/charts/indicator/indicator-render-options.d.ts +1 -1
  181. package/dist/packages/sdk-ui/src/charts/map-charts/scattermap/hooks/use-tooltip-handler.d.ts +2 -2
  182. package/dist/packages/sdk-ui/src/charts/map-charts/scattermap/scattermap.d.ts +4 -4
  183. package/dist/packages/sdk-ui/src/charts/map-charts/scattermap/utils/location.d.ts +2 -2
  184. package/dist/packages/sdk-ui/src/charts/map-charts/scattermap/utils/map.d.ts +1 -1
  185. package/dist/packages/sdk-ui/src/charts/map-charts/scattermap/utils/tooltip.d.ts +1 -1
  186. package/dist/packages/sdk-ui/src/charts/table/types.d.ts +1 -1
  187. package/dist/packages/sdk-ui/src/common/components/grouped-items-browser/group-header.d.ts +1 -1
  188. package/dist/packages/sdk-ui/src/common/components/grouped-items-browser/group.d.ts +1 -1
  189. package/dist/packages/sdk-ui/src/common/components/menu/context-menu/menu.d.ts +1 -1
  190. package/dist/packages/sdk-ui/src/common/components/menu/types.d.ts +1 -1
  191. package/dist/packages/sdk-ui/src/common/hooks/decorators/with-lazy-loading/helpers/hooks/use-load-data-from-internal-hook.d.ts +1 -1
  192. package/dist/packages/sdk-ui/src/common/hooks/decorators/with-lazy-loading/with-lazy-loading.d.ts +1 -1
  193. package/dist/packages/sdk-ui/src/common/hooks/fusion-endpoints/use-get-data-source-fields.d.ts +1 -1
  194. package/dist/packages/sdk-ui/src/common/hooks/use-tracking.d.ts +1 -1
  195. package/dist/packages/sdk-ui/src/common/icons/arrow-collapse-icon.d.ts +5 -0
  196. package/dist/packages/sdk-ui/src/common/icons/double-arrow-end-icon.d.ts +1 -1
  197. package/dist/packages/sdk-ui/src/common-filters/common-filters-connector.d.ts +6 -4
  198. package/dist/packages/sdk-ui/src/common-filters/selection-utils.d.ts +2 -1
  199. package/dist/packages/sdk-ui/src/common-filters/use-common-filters.d.ts +3 -3
  200. package/dist/packages/sdk-ui/src/common-filters/utils.d.ts +1 -1
  201. package/dist/packages/sdk-ui/src/custom-widgets-provider/custom-widgets-provider-adapter.d.ts +1 -1
  202. package/dist/packages/sdk-ui/src/custom-widgets-provider/use-execute-custom-widget-query.d.ts +2 -2
  203. package/dist/packages/sdk-ui/src/dashboard/components/editable-layout/components/draggable-line.d.ts +5 -1
  204. package/dist/packages/sdk-ui/src/dashboard/components/editable-layout/components/draggable-widget-wrapper.d.ts +1 -1
  205. package/dist/packages/sdk-ui/src/dashboard/components/editable-layout/components/resizable-columns.d.ts +5 -1
  206. package/dist/packages/sdk-ui/src/dashboard/components/editable-layout/helpers.d.ts +2 -2
  207. package/dist/packages/sdk-ui/src/dashboard/components/editable-layout/utils.d.ts +1 -1
  208. package/dist/packages/sdk-ui/src/dashboard/components/horizontal-collapse.d.ts +2 -1
  209. package/dist/packages/sdk-ui/src/dashboard/components/toolbar/edit-toggle.d.ts +25 -0
  210. package/dist/packages/sdk-ui/src/dashboard/components/toolbar/filter-toggle.d.ts +16 -0
  211. package/dist/packages/sdk-ui/src/dashboard/constants.d.ts +2 -2
  212. package/dist/packages/sdk-ui/src/dashboard/dashboard-helpers.d.ts +1 -1
  213. package/dist/packages/sdk-ui/src/dashboard/dashboard.d.ts +1 -1
  214. package/dist/packages/sdk-ui/src/dashboard/hooks/jtd/jtd-config-transformers.d.ts +3 -3
  215. package/dist/packages/sdk-ui/src/dashboard/hooks/jtd/jtd-formatters.d.ts +1 -1
  216. package/dist/packages/sdk-ui/src/dashboard/hooks/jtd/jtd-handlers.d.ts +2 -2
  217. package/dist/packages/sdk-ui/src/dashboard/hooks/jtd/jtd-menu.d.ts +1 -1
  218. package/dist/packages/sdk-ui/src/dashboard/hooks/jtd/jtd-types.d.ts +4 -4
  219. package/dist/packages/sdk-ui/src/dashboard/hooks/use-dashboard-header-toolbar.d.ts +2 -1
  220. package/dist/packages/sdk-ui/src/dashboard/hooks/use-jtd.d.ts +3 -2
  221. package/dist/packages/sdk-ui/src/dashboard/hooks/use-tabber.d.ts +25 -10
  222. package/dist/packages/sdk-ui/src/dashboard/index.d.ts +2 -2
  223. package/dist/packages/sdk-ui/src/dashboard/types.d.ts +19 -11
  224. package/dist/packages/sdk-ui/src/dashboard/use-composed-dashboard.d.ts +55 -12
  225. package/dist/packages/sdk-ui/src/decorators/component-decorators/with-tracking/error-tracker.d.ts +2 -2
  226. package/dist/packages/sdk-ui/src/filters/components/common/basic-input.d.ts +1 -1
  227. package/dist/packages/sdk-ui/src/filters/components/common/date-range-field-button.d.ts +1 -1
  228. package/dist/packages/sdk-ui/src/filters/components/criteria-filter-tile/criteria-filter-display.d.ts +1 -1
  229. package/dist/packages/sdk-ui/src/filters/components/criteria-filter-tile/criteria-filter-menu.d.ts +1 -1
  230. package/dist/packages/sdk-ui/src/filters/components/criteria-filter-tile/criteria-filter-operations.d.ts +1 -1
  231. package/dist/packages/sdk-ui/src/filters/components/criteria-filter-tile/criteria-filter-tile.d.ts +1 -1
  232. package/dist/packages/sdk-ui/src/filters/components/date-filter/date-range-filter-tile/date-range-filter-tile.d.ts +1 -1
  233. package/dist/packages/sdk-ui/src/filters/components/date-filter/relative-date-filter-tile/relative-date-filter-display.d.ts +1 -1
  234. package/dist/packages/sdk-ui/src/filters/components/date-filter/relative-date-filter-tile/relative-date-filter.d.ts +1 -1
  235. package/dist/packages/sdk-ui/src/filters/components/filter-editor-popover/common/select/base.d.ts +1 -1
  236. package/dist/packages/sdk-ui/src/filters/components/filter-editor-popover/common/select/calendar-select/utils.d.ts +1 -1
  237. package/dist/packages/sdk-ui/src/filters/components/filter-editor-popover/common/select/multi-select-item.d.ts +1 -1
  238. package/dist/packages/sdk-ui/src/filters/components/filter-editor-popover/common/select/searchable-multi-select.d.ts +1 -1
  239. package/dist/packages/sdk-ui/src/filters/components/filter-editor-popover/common/select/searchable-single-select.d.ts +1 -1
  240. package/dist/packages/sdk-ui/src/filters/components/filter-editor-popover/common/select/single-select-item.d.ts +1 -1
  241. package/dist/packages/sdk-ui/src/filters/components/filter-editor-popover/sections/numeric-condition-section/utils.d.ts +1 -1
  242. package/dist/packages/sdk-ui/src/filters/components/filter-tile-container.d.ts +1 -1
  243. package/dist/packages/sdk-ui/src/filters/components/filters-panel/filter-relations-tile/filter-relations-tile.d.ts +1 -1
  244. package/dist/packages/sdk-ui/src/filters/components/filters-panel/filter-relations-tile/filter-relations-tooltip.d.ts +1 -1
  245. package/dist/packages/sdk-ui/src/filters/components/filters-panel/filter-relations-tile/tooltip-utils.d.ts +2 -2
  246. package/dist/packages/sdk-ui/src/filters/components/filters-panel/hooks/use-existing-filter-editing.d.ts +1 -1
  247. package/dist/packages/sdk-ui/src/filters/components/filters-panel/hooks/use-new-filter-adding.d.ts +1 -1
  248. package/dist/packages/sdk-ui/src/filters/components/icons/arrow-icon.d.ts +1 -1
  249. package/dist/packages/sdk-ui/src/filters/components/icons/double-arrow-icon.d.ts +1 -1
  250. package/dist/packages/sdk-ui/src/filters/components/member-filter-tile/member-filter-tile.d.ts +1 -1
  251. package/dist/packages/sdk-ui/src/filters/components/unsupported-filter-tile.d.ts +1 -1
  252. package/dist/packages/sdk-ui/src/filters/hooks/use-get-filter-members.d.ts +15 -2
  253. package/dist/packages/sdk-ui/src/formulas/fetch-formula.d.ts +1 -1
  254. package/dist/packages/sdk-ui/src/formulas/use-get-shared-formula.d.ts +2 -2
  255. package/dist/packages/sdk-ui/src/index.d.ts +2 -0
  256. package/dist/packages/sdk-ui/src/indicator-canvas.d.ts +2 -2
  257. package/dist/packages/sdk-ui/src/models/dashboard/dashboard-model-translator.d.ts +3 -3
  258. package/dist/packages/sdk-ui/src/models/dashboard/dashboard-model.d.ts +24 -6
  259. package/dist/packages/sdk-ui/src/models/dashboard/get-dashboard-model.d.ts +9 -1
  260. package/dist/packages/sdk-ui/src/models/dashboard/translate-dashboard-utils.d.ts +7 -6
  261. package/dist/packages/sdk-ui/src/models/dashboard/types.d.ts +6 -10
  262. package/dist/packages/sdk-ui/src/models/dashboard/use-dashboard-model/use-dasboard-model-utils.d.ts +2 -2
  263. package/dist/packages/sdk-ui/src/models/dashboard/use-dashboard-model/use-dashboard-model-reducer.d.ts +1 -1
  264. package/dist/packages/sdk-ui/src/models/dashboard/use-dashboard-model/use-dashboard-persistence.d.ts +1 -1
  265. package/dist/packages/sdk-ui/src/models/dashboard/use-get-dashboard-model.d.ts +1 -1
  266. package/dist/packages/sdk-ui/src/models/dashboard/use-get-dashboard-models.d.ts +1 -1
  267. package/dist/packages/sdk-ui/src/models/hierarchy/get-hierarchy-models.d.ts +1 -1
  268. package/dist/packages/sdk-ui/src/models/hierarchy/use-get-hierarchy-models.d.ts +1 -1
  269. package/dist/packages/sdk-ui/src/models/widget/get-widget-model.d.ts +2 -2
  270. package/dist/packages/sdk-ui/src/models/widget/widget-model-translator/index.d.ts +1 -0
  271. package/dist/packages/sdk-ui/src/models/widget/widget-model-translator/tabber.d.ts +21 -0
  272. package/dist/packages/sdk-ui/src/models/widget/{widget-model-translator.d.ts → widget-model-translator/widget-model-translator.d.ts} +15 -15
  273. package/dist/packages/sdk-ui/src/models/widget/widget-model.d.ts +7 -1
  274. package/dist/packages/sdk-ui/src/no-results-overlay/images/index.d.ts +1 -1
  275. package/dist/packages/sdk-ui/src/pivot-table/formatters/data-cell-formatters/data-cell-color-formatter.d.ts +1 -1
  276. package/dist/packages/sdk-ui/src/pivot-table/formatters/formatter-utils.d.ts +1 -1
  277. package/dist/packages/sdk-ui/src/pivot-table/formatters/header-cell-formatters/header-cell-value-formatter.d.ts +1 -1
  278. package/dist/packages/sdk-ui/src/pivot-table/formatters/utils.d.ts +1 -1
  279. package/dist/packages/sdk-ui/src/pivot-table/hooks/use-apply-pivot-table-cell-events/use-apply-pivot-table-cell-events.d.ts +1 -1
  280. package/dist/packages/sdk-ui/src/pivot-table/hooks/use-get-pivot-table-query.d.ts +2 -2
  281. package/dist/packages/sdk-ui/src/pivot-table/hooks/use-render-pivot.d.ts +7 -3
  282. package/dist/packages/sdk-ui/src/pivot-table/sorting-utils.d.ts +1 -1
  283. package/dist/packages/sdk-ui/src/props.d.ts +16 -28
  284. package/dist/packages/sdk-ui/src/query/execute-query.d.ts +2 -2
  285. package/dist/packages/sdk-ui/src/query/query-result-date-formatting.d.ts +1 -1
  286. package/dist/packages/sdk-ui/src/query-execution/query-params-comparator.d.ts +1 -1
  287. package/dist/packages/sdk-ui/src/query-execution/use-execute-query-by-widget-id.d.ts +2 -2
  288. package/dist/packages/sdk-ui/src/sisense-chart/sisense-chart.d.ts +1 -1
  289. package/dist/packages/sdk-ui/src/sisense-context/custom-sisense-context-provider.d.ts +2 -2
  290. package/dist/packages/sdk-ui/src/sisense-context/sisense-context-provider.d.ts +1 -1
  291. package/dist/packages/sdk-ui/src/sisense-context/sisense-context.d.ts +1 -1
  292. package/dist/packages/sdk-ui/src/sisense-context/sisense-query-client-provider.d.ts +1 -1
  293. package/dist/packages/sdk-ui/src/table/translations/design-options.d.ts +1 -1
  294. package/dist/packages/sdk-ui/src/themes/legacy-design-settings.d.ts +1 -1
  295. package/dist/packages/sdk-ui/src/themes/theme-loader.d.ts +1 -1
  296. package/dist/packages/sdk-ui/src/translation/resources/en.d.ts +2 -0
  297. package/dist/packages/sdk-ui/src/translation/resources/index.d.ts +4 -0
  298. package/dist/packages/sdk-ui/src/types.d.ts +185 -81
  299. package/dist/packages/sdk-ui/src/utils/gradient.d.ts +396 -0
  300. package/dist/packages/sdk-ui/src/utils/omit-undefined.d.ts +21 -0
  301. package/dist/packages/sdk-ui/src/widget-by-id/translate-dashboard-filters.d.ts +2 -2
  302. package/dist/packages/sdk-ui/src/widget-by-id/translate-panel-color-format.d.ts +1 -1
  303. package/dist/packages/sdk-ui/src/widget-by-id/translate-widget-data-options.d.ts +2 -2
  304. package/dist/packages/sdk-ui/src/widget-by-id/translate-widget-drilldown-options.d.ts +1 -1
  305. package/dist/packages/sdk-ui/src/widget-by-id/translate-widget-style-options/index.d.ts +1 -0
  306. package/dist/packages/sdk-ui/src/widget-by-id/translate-widget-style-options/tabber.d.ts +23 -0
  307. package/dist/packages/sdk-ui/src/widget-by-id/{translate-widget-style-options.d.ts → translate-widget-style-options/translate-widget-style-options.d.ts} +4 -4
  308. package/dist/packages/sdk-ui/src/widget-by-id/types.d.ts +44 -5
  309. package/dist/packages/sdk-ui/src/widget-by-id/utils.d.ts +33 -5
  310. package/dist/packages/sdk-ui/src/widgets/common/drilldown-breadcrumbs/use-buttons.d.ts +1 -1
  311. package/dist/packages/sdk-ui/src/widgets/common/drilldown-utils.d.ts +1 -1
  312. package/dist/packages/sdk-ui/src/widgets/common/use-drilldown-core.d.ts +1 -1
  313. package/dist/packages/sdk-ui/src/widgets/hooks/use-drilldown.d.ts +3 -3
  314. package/dist/packages/sdk-ui/src/widgets/hooks/use-with-drilldown.d.ts +1 -1
  315. package/dist/packages/sdk-ui/src/widgets/tabber/tabber-buttons-widget.d.ts +8 -0
  316. package/dist/packages/sdk-ui/src/widgets/tabber/types.d.ts +110 -0
  317. package/dist/{types-DhvOgfXa.cjs → types-Cl0_Tfey.cjs} +1 -1
  318. package/dist/{types-Dxieyr4A.js → types-CnFd03Ga.js} +1 -1
  319. package/dist/use-common-filters-WTVrWfsY.cjs +845 -0
  320. package/dist/{use-common-filters-DJyYvdev.js → use-common-filters-qFWk1Ia5.js} +70052 -69867
  321. package/dist/widget-composer-C7ZAcFHK.cjs +424 -0
  322. package/dist/widget-composer-ovIwmgin.js +1426 -0
  323. package/package.json +9 -9
  324. package/dist/derive-chart-family-BauaWEEc.cjs +0 -170
  325. package/dist/execute-query-uQ2s1ZNz.cjs +0 -1
  326. package/dist/packages/sdk-ui/src/analytics-composer/new-nlq-translator/common.d.ts +0 -40
  327. package/dist/packages/sdk-ui/src/analytics-composer/new-nlq-translator/index.d.ts +0 -2
  328. package/dist/packages/sdk-ui/src/analytics-composer/new-nlq-translator/translate-dimensions.d.ts +0 -3
  329. package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/calendar-heatmap-chart/renderer/hooks/use-calendar-heatmap-navigation.d.ts +0 -33
  330. package/dist/packages/sdk-ui/src/index-typedoc.d.ts +0 -31
  331. package/dist/packages/sdk-ui/src/widgets/tabber-widget.d.ts +0 -41
  332. package/dist/use-common-filters-Qj9249s0.cjs +0 -845
  333. package/dist/widget-composer-azihIMsw.js +0 -949
  334. package/dist/widget-composer-omIEhWNL.cjs +0 -428
  335. /package/dist/packages/sdk-ui/src/analytics-composer/{new-nlq-translator → nlq-v3-translator}/translate-query-to-jaql.d.ts +0 -0
@@ -0,0 +1,166 @@
1
+ "use strict";var Tc=Object.defineProperty,kc=Object.defineProperties;var Pc=Object.getOwnPropertyDescriptors;var po=Object.getOwnPropertySymbols;var Xn=Object.prototype.hasOwnProperty,Hn=Object.prototype.propertyIsEnumerable;var Ft=Math.pow,hr=(d,T,F)=>T in d?Tc(d,T,{enumerable:!0,configurable:!0,writable:!0,value:F}):d[T]=F,kt=(d,T)=>{for(var F in T||(T={}))Xn.call(T,F)&&hr(d,F,T[F]);if(po)for(var F of po(T))Hn.call(T,F)&&hr(d,F,T[F]);return d},Nt=(d,T)=>kc(d,Pc(T));var Te=(d,T)=>{var F={};for(var K in d)Xn.call(d,K)&&T.indexOf(K)<0&&(F[K]=d[K]);if(d!=null&&po)for(var K of po(d))T.indexOf(K)<0&&Hn.call(d,K)&&(F[K]=d[K]);return F};var cr=(d,T,F)=>hr(d,typeof T!="symbol"?T+"":T,F);const Rt=require("./execute-query-CvH_36GC.cjs"),Lc=require("react/jsx-runtime"),Ne=require("react"),ua=require("react-dom/server");function fa(d){const T=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(d){for(const F in d)if(F!=="default"){const K=Object.getOwnPropertyDescriptor(d,F);Object.defineProperty(T,F,K.get?K:{enumerable:!0,get:()=>d[F]})}}return T.default=d,Object.freeze(T)}const Yi=fa(Lc),Qe=fa(Ne);var Wi=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function Jr(d){return d&&d.__esModule&&Object.prototype.hasOwnProperty.call(d,"default")?d.default:d}function Ec(d){if(d.__esModule)return d;var T=d.default;if(typeof T=="function"){var F=function K(){return this instanceof K?Reflect.construct(T,arguments,this.constructor):T.apply(this,arguments)};F.prototype=T.prototype}else F={};return Object.defineProperty(F,"__esModule",{value:!0}),Object.keys(d).forEach(function(K){var tt=Object.getOwnPropertyDescriptor(d,K);Object.defineProperty(F,K,tt.get?tt:{enumerable:!0,get:function(){return d[K]}})}),F}function Oc(){if(console&&console.warn){for(var d=arguments.length,T=new Array(d),F=0;F<d;F++)T[F]=arguments[F];typeof T[0]=="string"&&(T[0]=`react-i18next:: ${T[0]}`),console.warn(...T)}}const Yn={};function Tr(){for(var d=arguments.length,T=new Array(d),F=0;F<d;F++)T[F]=arguments[F];typeof T[0]=="string"&&Yn[T[0]]||(typeof T[0]=="string"&&(Yn[T[0]]=new Date),Oc(...T))}const ga=(d,T)=>()=>{if(d.isInitialized)T();else{const F=()=>{setTimeout(()=>{d.off("initialized",F)},0),T()};d.on("initialized",F)}};function Un(d,T,F){d.loadNamespaces(T,ga(d,F))}function Vn(d,T,F,K){typeof F=="string"&&(F=[F]),F.forEach(tt=>{d.options.ns.indexOf(tt)<0&&d.options.ns.push(tt)}),d.loadLanguages(T,ga(d,K))}function Dc(d,T){let F=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const K=T.languages[0],tt=T.options?T.options.fallbackLng:!1,ot=T.languages[T.languages.length-1];if(K.toLowerCase()==="cimode")return!0;const nt=(st,pt)=>{const ht=T.services.backendConnector.state[`${st}|${pt}`];return ht===-1||ht===2};return F.bindI18n&&F.bindI18n.indexOf("languageChanging")>-1&&T.services.backendConnector.backend&&T.isLanguageChangingTo&&!nt(T.isLanguageChangingTo,d)?!1:!!(T.hasResourceBundle(K,d)||!T.services.backendConnector.backend||T.options.resources&&!T.options.partialBundledLanguages||nt(K,d)&&(!tt||nt(ot,d)))}function jc(d,T){let F=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return!T.languages||!T.languages.length?(Tr("i18n.languages were undefined or empty",T.languages),!0):T.options.ignoreJSONStructure!==void 0?T.hasLoadedNamespace(d,{lng:F.lng,precheck:(tt,ot)=>{if(F.bindI18n&&F.bindI18n.indexOf("languageChanging")>-1&&tt.services.backendConnector.backend&&tt.isLanguageChangingTo&&!ot(tt.isLanguageChangingTo,d))return!1}}):Dc(d,T,F)}const ma=Ne.createContext();class Ic{constructor(){this.usedNamespaces={}}addUsedNamespaces(T){T.forEach(F=>{this.usedNamespaces[F]||(this.usedNamespaces[F]=!0)})}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}}const Nc=(d,T)=>{const F=Ne.useRef();return Ne.useEffect(()=>{F.current=d},[d,T]),F.current};function Qr(d){let T=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{i18n:F}=T,{i18n:K,defaultNS:tt}=Ne.useContext(ma)||{},ot=F||K||Rt.getI18n();if(ot&&!ot.reportNamespaces&&(ot.reportNamespaces=new Ic),!ot){Tr("You will need to pass in an i18next instance by using initReactI18next");const Z=(z,I)=>typeof I=="string"?I:I&&typeof I=="object"&&typeof I.defaultValue=="string"?I.defaultValue:Array.isArray(z)?z[z.length-1]:z,U=[Z,{},!1];return U.t=Z,U.i18n={},U.ready=!1,U}ot.options.react&&ot.options.react.wait!==void 0&&Tr("It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");const nt=kt(kt(kt({},Rt.getDefaults()),ot.options.react),T),{useSuspense:st,keyPrefix:pt}=nt;let ht=tt||ot.options&&ot.options.defaultNS;ht=typeof ht=="string"?[ht]:ht||["translation"],ot.reportNamespaces.addUsedNamespaces&&ot.reportNamespaces.addUsedNamespaces(ht);const ut=(ot.isInitialized||ot.initializedStoreOnce)&&ht.every(Z=>jc(Z,ot,nt));function ft(){return ot.getFixedT(T.lng||null,nt.nsMode==="fallback"?ht:ht[0],pt)}const[B,it]=Ne.useState(ft);let W=ht.join();T.lng&&(W=`${T.lng}${W}`);const R=Nc(W),H=Ne.useRef(!0);Ne.useEffect(()=>{const{bindI18n:Z,bindI18nStore:U}=nt;H.current=!0,!ut&&!st&&(T.lng?Vn(ot,T.lng,ht,()=>{H.current&&it(ft)}):Un(ot,ht,()=>{H.current&&it(ft)})),ut&&R&&R!==W&&H.current&&it(ft);function z(){H.current&&it(ft)}return Z&&ot&&ot.on(Z,z),U&&ot&&ot.store.on(U,z),()=>{H.current=!1,Z&&ot&&Z.split(" ").forEach(I=>ot.off(I,z)),U&&ot&&U.split(" ").forEach(I=>ot.store.off(I,z))}},[ot,W]);const V=Ne.useRef(!0);Ne.useEffect(()=>{H.current&&!V.current&&it(ft),V.current=!1},[ot,pt]);const $=[B,ot,ut];if($.t=B,$.i18n=ot,$.ready=ut,ut||!ut&&!st)return $;throw new Promise(Z=>{T.lng?Vn(ot,T.lng,ht,()=>Z()):Un(ot,ht,()=>Z())})}var Bc=!1;function _c(d){if(d.sheet)return d.sheet;for(var T=0;T<document.styleSheets.length;T++)if(document.styleSheets[T].ownerNode===d)return document.styleSheets[T]}function Rc(d){var T=document.createElement("style");return T.setAttribute("data-emotion",d.key),d.nonce!==void 0&&T.setAttribute("nonce",d.nonce),T.appendChild(document.createTextNode("")),T.setAttribute("data-s",""),T}var zc=function(){function d(F){var K=this;this._insertTag=function(tt){var ot;K.tags.length===0?K.insertionPoint?ot=K.insertionPoint.nextSibling:K.prepend?ot=K.container.firstChild:ot=K.before:ot=K.tags[K.tags.length-1].nextSibling,K.container.insertBefore(tt,ot),K.tags.push(tt)},this.isSpeedy=F.speedy===void 0?!Bc:F.speedy,this.tags=[],this.ctr=0,this.nonce=F.nonce,this.key=F.key,this.container=F.container,this.prepend=F.prepend,this.insertionPoint=F.insertionPoint,this.before=null}var T=d.prototype;return T.hydrate=function(K){K.forEach(this._insertTag)},T.insert=function(K){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(Rc(this));var tt=this.tags[this.tags.length-1];if(this.isSpeedy){var ot=_c(tt);try{ot.insertRule(K,ot.cssRules.length)}catch(nt){}}else tt.appendChild(document.createTextNode(K));this.ctr++},T.flush=function(){this.tags.forEach(function(K){var tt;return(tt=K.parentNode)==null?void 0:tt.removeChild(K)}),this.tags=[],this.ctr=0},d}(),Se="-ms-",No="-moz-",ie="-webkit-",ya="comm",tn="rule",en="decl",Fc="@import",va="@keyframes",Gc="@layer",Wc=Math.abs,Jo=String.fromCharCode,Xc=Object.assign;function Hc(d,T){return be(d,0)^45?(((T<<2^be(d,0))<<2^be(d,1))<<2^be(d,2))<<2^be(d,3):0}function ba(d){return d.trim()}function Yc(d,T){return(d=T.exec(d))?d[0]:d}function oe(d,T,F){return d.replace(T,F)}function kr(d,T){return d.indexOf(T)}function be(d,T){return d.charCodeAt(T)|0}function Ui(d,T,F){return d.slice(T,F)}function Ye(d){return d.length}function on(d){return d.length}function uo(d,T){return T.push(d),d}function Uc(d,T){return d.map(T).join("")}var Qo=1,Ti=1,xa=0,Le=0,fe=0,Ei="";function tr(d,T,F,K,tt,ot,nt){return{value:d,root:T,parent:F,type:K,props:tt,children:ot,line:Qo,column:Ti,length:nt,return:""}}function ji(d,T){return Xc(tr("",null,null,"",null,null,0),d,{length:-d.length},T)}function Vc(){return fe}function $c(){return fe=Le>0?be(Ei,--Le):0,Ti--,fe===10&&(Ti=1,Qo--),fe}function je(){return fe=Le<xa?be(Ei,Le++):0,Ti++,fe===10&&(Ti=1,Qo++),fe}function Ke(){return be(Ei,Le)}function Po(){return Le}function oo(d,T){return Ui(Ei,d,T)}function Vi(d){switch(d){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function Ca(d){return Qo=Ti=1,xa=Ye(Ei=d),Le=0,[]}function wa(d){return Ei="",d}function Lo(d){return ba(oo(Le-1,Pr(d===91?d+2:d===40?d+1:d)))}function Zc(d){for(;(fe=Ke())&&fe<33;)je();return Vi(d)>2||Vi(fe)>3?"":" "}function Kc(d,T){for(;--T&&je()&&!(fe<48||fe>102||fe>57&&fe<65||fe>70&&fe<97););return oo(d,Po()+(T<6&&Ke()==32&&je()==32))}function Pr(d){for(;je();)switch(fe){case d:return Le;case 34:case 39:d!==34&&d!==39&&Pr(fe);break;case 40:d===41&&Pr(d);break;case 92:je();break}return Le}function qc(d,T){for(;je()&&d+fe!==57;)if(d+fe===84&&Ke()===47)break;return"/*"+oo(T,Le-1)+"*"+Jo(d===47?d:je())}function Jc(d){for(;!Vi(Ke());)je();return oo(d,Le)}function Qc(d){return wa(Eo("",null,null,null,[""],d=Ca(d),0,[0],d))}function Eo(d,T,F,K,tt,ot,nt,st,pt){for(var ht=0,ut=0,ft=nt,B=0,it=0,W=0,R=1,H=1,V=1,$=0,Z="",U=tt,z=ot,I=K,E=Z;H;)switch(W=$,$=je()){case 40:if(W!=108&&be(E,ft-1)==58){kr(E+=oe(Lo($),"&","&\f"),"&\f")!=-1&&(V=-1);break}case 34:case 39:case 91:E+=Lo($);break;case 9:case 10:case 13:case 32:E+=Zc(W);break;case 92:E+=Kc(Po()-1,7);continue;case 47:switch(Ke()){case 42:case 47:uo(tp(qc(je(),Po()),T,F),pt);break;default:E+="/"}break;case 123*R:st[ht++]=Ye(E)*V;case 125*R:case 59:case 0:switch($){case 0:case 125:H=0;case 59+ut:V==-1&&(E=oe(E,/\f/g,"")),it>0&&Ye(E)-ft&&uo(it>32?Zn(E+";",K,F,ft-1):Zn(oe(E," ","")+";",K,F,ft-2),pt);break;case 59:E+=";";default:if(uo(I=$n(E,T,F,ht,ut,tt,st,Z,U=[],z=[],ft),ot),$===123)if(ut===0)Eo(E,T,I,I,U,ot,ft,st,z);else switch(B===99&&be(E,3)===110?100:B){case 100:case 108:case 109:case 115:Eo(d,I,I,K&&uo($n(d,I,I,0,0,tt,st,Z,tt,U=[],ft),z),tt,z,ft,st,K?U:z);break;default:Eo(E,I,I,I,[""],z,0,st,z)}}ht=ut=it=0,R=V=1,Z=E="",ft=nt;break;case 58:ft=1+Ye(E),it=W;default:if(R<1){if($==123)--R;else if($==125&&R++==0&&$c()==125)continue}switch(E+=Jo($),$*R){case 38:V=ut>0?1:(E+="\f",-1);break;case 44:st[ht++]=(Ye(E)-1)*V,V=1;break;case 64:Ke()===45&&(E+=Lo(je())),B=Ke(),ut=ft=Ye(Z=E+=Jc(Po())),$++;break;case 45:W===45&&Ye(E)==2&&(R=0)}}return ot}function $n(d,T,F,K,tt,ot,nt,st,pt,ht,ut){for(var ft=tt-1,B=tt===0?ot:[""],it=on(B),W=0,R=0,H=0;W<K;++W)for(var V=0,$=Ui(d,ft+1,ft=Wc(R=nt[W])),Z=d;V<it;++V)(Z=ba(R>0?B[V]+" "+$:oe($,/&\f/g,B[V])))&&(pt[H++]=Z);return tr(d,T,F,tt===0?tn:st,pt,ht,ut)}function tp(d,T,F){return tr(d,T,F,ya,Jo(Vc()),Ui(d,2,-2),0)}function Zn(d,T,F,K){return tr(d,T,F,en,Ui(d,0,K),Ui(d,K+1,-1),K)}function Mi(d,T){for(var F="",K=on(d),tt=0;tt<K;tt++)F+=T(d[tt],tt,d,T)||"";return F}function ep(d,T,F,K){switch(d.type){case Gc:if(d.children.length)break;case Fc:case en:return d.return=d.return||d.value;case ya:return"";case va:return d.return=d.value+"{"+Mi(d.children,K)+"}";case tn:d.value=d.props.join(",")}return Ye(F=Mi(d.children,K))?d.return=d.value+"{"+F+"}":""}function ip(d){var T=on(d);return function(F,K,tt,ot){for(var nt="",st=0;st<T;st++)nt+=d[st](F,K,tt,ot)||"";return nt}}function op(d){return function(T){T.root||(T=T.return)&&d(T)}}function Sa(d){var T=Object.create(null);return function(F){return T[F]===void 0&&(T[F]=d(F)),T[F]}}var rp=function(T,F,K){for(var tt=0,ot=0;tt=ot,ot=Ke(),tt===38&&ot===12&&(F[K]=1),!Vi(ot);)je();return oo(T,Le)},np=function(T,F){var K=-1,tt=44;do switch(Vi(tt)){case 0:tt===38&&Ke()===12&&(F[K]=1),T[K]+=rp(Le-1,F,K);break;case 2:T[K]+=Lo(tt);break;case 4:if(tt===44){T[++K]=Ke()===58?"&\f":"",F[K]=T[K].length;break}default:T[K]+=Jo(tt)}while(tt=je());return T},sp=function(T,F){return wa(np(Ca(T),F))},Kn=new WeakMap,ap=function(T){if(!(T.type!=="rule"||!T.parent||T.length<1)){for(var F=T.value,K=T.parent,tt=T.column===K.column&&T.line===K.line;K.type!=="rule";)if(K=K.parent,!K)return;if(!(T.props.length===1&&F.charCodeAt(0)!==58&&!Kn.get(K))&&!tt){Kn.set(T,!0);for(var ot=[],nt=sp(F,ot),st=K.props,pt=0,ht=0;pt<nt.length;pt++)for(var ut=0;ut<st.length;ut++,ht++)T.props[ht]=ot[pt]?nt[pt].replace(/&\f/g,st[ut]):st[ut]+" "+nt[pt]}}},lp=function(T){if(T.type==="decl"){var F=T.value;F.charCodeAt(0)===108&&F.charCodeAt(2)===98&&(T.return="",T.value="")}};function Ma(d,T){switch(Hc(d,T)){case 5103:return ie+"print-"+d+d;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return ie+d+d;case 5349:case 4246:case 4810:case 6968:case 2756:return ie+d+No+d+Se+d+d;case 6828:case 4268:return ie+d+Se+d+d;case 6165:return ie+d+Se+"flex-"+d+d;case 5187:return ie+d+oe(d,/(\w+).+(:[^]+)/,ie+"box-$1$2"+Se+"flex-$1$2")+d;case 5443:return ie+d+Se+"flex-item-"+oe(d,/flex-|-self/,"")+d;case 4675:return ie+d+Se+"flex-line-pack"+oe(d,/align-content|flex-|-self/,"")+d;case 5548:return ie+d+Se+oe(d,"shrink","negative")+d;case 5292:return ie+d+Se+oe(d,"basis","preferred-size")+d;case 6060:return ie+"box-"+oe(d,"-grow","")+ie+d+Se+oe(d,"grow","positive")+d;case 4554:return ie+oe(d,/([^-])(transform)/g,"$1"+ie+"$2")+d;case 6187:return oe(oe(oe(d,/(zoom-|grab)/,ie+"$1"),/(image-set)/,ie+"$1"),d,"")+d;case 5495:case 3959:return oe(d,/(image-set\([^]*)/,ie+"$1$`$1");case 4968:return oe(oe(d,/(.+:)(flex-)?(.*)/,ie+"box-pack:$3"+Se+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+ie+d+d;case 4095:case 3583:case 4068:case 2532:return oe(d,/(.+)-inline(.+)/,ie+"$1$2")+d;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(Ye(d)-1-T>6)switch(be(d,T+1)){case 109:if(be(d,T+4)!==45)break;case 102:return oe(d,/(.+:)(.+)-([^]+)/,"$1"+ie+"$2-$3$1"+No+(be(d,T+3)==108?"$3":"$2-$3"))+d;case 115:return~kr(d,"stretch")?Ma(oe(d,"stretch","fill-available"),T)+d:d}break;case 4949:if(be(d,T+1)!==115)break;case 6444:switch(be(d,Ye(d)-3-(~kr(d,"!important")&&10))){case 107:return oe(d,":",":"+ie)+d;case 101:return oe(d,/(.+:)([^;!]+)(;|!.+)?/,"$1"+ie+(be(d,14)===45?"inline-":"")+"box$3$1"+ie+"$2$3$1"+Se+"$2box$3")+d}break;case 5936:switch(be(d,T+11)){case 114:return ie+d+Se+oe(d,/[svh]\w+-[tblr]{2}/,"tb")+d;case 108:return ie+d+Se+oe(d,/[svh]\w+-[tblr]{2}/,"tb-rl")+d;case 45:return ie+d+Se+oe(d,/[svh]\w+-[tblr]{2}/,"lr")+d}return ie+d+Se+d+d}return d}var hp=function(T,F,K,tt){if(T.length>-1&&!T.return)switch(T.type){case en:T.return=Ma(T.value,T.length);break;case va:return Mi([ji(T,{value:oe(T.value,"@","@"+ie)})],tt);case tn:if(T.length)return Uc(T.props,function(ot){switch(Yc(ot,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Mi([ji(T,{props:[oe(ot,/:(read-\w+)/,":"+No+"$1")]})],tt);case"::placeholder":return Mi([ji(T,{props:[oe(ot,/:(plac\w+)/,":"+ie+"input-$1")]}),ji(T,{props:[oe(ot,/:(plac\w+)/,":"+No+"$1")]}),ji(T,{props:[oe(ot,/:(plac\w+)/,Se+"input-$1")]})],tt)}return""})}},cp=[hp],Aa=function(T){var F=T.key;if(F==="css"){var K=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(K,function(R){var H=R.getAttribute("data-emotion");H.indexOf(" ")!==-1&&(document.head.appendChild(R),R.setAttribute("data-s",""))})}var tt=T.stylisPlugins||cp,ot={},nt,st=[];nt=T.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+F+' "]'),function(R){for(var H=R.getAttribute("data-emotion").split(" "),V=1;V<H.length;V++)ot[H[V]]=!0;st.push(R)});var pt,ht=[ap,lp];{var ut,ft=[ep,op(function(R){ut.insert(R)})],B=ip(ht.concat(tt,ft)),it=function(H){return Mi(Qc(H),B)};pt=function(H,V,$,Z){ut=$,it(H?H+"{"+V.styles+"}":V.styles),Z&&(W.inserted[V.name]=!0)}}var W={key:F,sheet:new zc({key:F,container:nt,nonce:T.nonce,speedy:T.speedy,prepend:T.prepend,insertionPoint:T.insertionPoint}),nonce:T.nonce,inserted:ot,registered:{},insert:pt};return W.sheet.hydrate(st),W},pp=!0;function Ta(d,T,F){var K="";return F.split(" ").forEach(function(tt){d[tt]!==void 0?T.push(d[tt]+";"):tt&&(K+=tt+" ")}),K}var rn=function(T,F,K){var tt=T.key+"-"+F.name;(K===!1||pp===!1)&&T.registered[tt]===void 0&&(T.registered[tt]=F.styles)},ka=function(T,F,K){rn(T,F,K);var tt=T.key+"-"+F.name;if(T.inserted[F.name]===void 0){var ot=F;do T.insert(F===ot?"."+tt:"",ot,T.sheet,!0),ot=ot.next;while(ot!==void 0)}};function dp(d){for(var T=0,F,K=0,tt=d.length;tt>=4;++K,tt-=4)F=d.charCodeAt(K)&255|(d.charCodeAt(++K)&255)<<8|(d.charCodeAt(++K)&255)<<16|(d.charCodeAt(++K)&255)<<24,F=(F&65535)*1540483477+((F>>>16)*59797<<16),F^=F>>>24,T=(F&65535)*1540483477+((F>>>16)*59797<<16)^(T&65535)*1540483477+((T>>>16)*59797<<16);switch(tt){case 3:T^=(d.charCodeAt(K+2)&255)<<16;case 2:T^=(d.charCodeAt(K+1)&255)<<8;case 1:T^=d.charCodeAt(K)&255,T=(T&65535)*1540483477+((T>>>16)*59797<<16)}return T^=T>>>13,T=(T&65535)*1540483477+((T>>>16)*59797<<16),((T^T>>>15)>>>0).toString(36)}var up={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},fp=!1,gp=/[A-Z]|^ms/g,mp=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Pa=function(T){return T.charCodeAt(1)===45},qn=function(T){return T!=null&&typeof T!="boolean"},pr=Sa(function(d){return Pa(d)?d:d.replace(gp,"-$&").toLowerCase()}),Jn=function(T,F){switch(T){case"animation":case"animationName":if(typeof F=="string")return F.replace(mp,function(K,tt,ot){return Ue={name:tt,styles:ot,next:Ue},tt})}return up[T]!==1&&!Pa(T)&&typeof F=="number"&&F!==0?F+"px":F},yp="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function $i(d,T,F){if(F==null)return"";var K=F;if(K.__emotion_styles!==void 0)return K;switch(typeof F){case"boolean":return"";case"object":{var tt=F;if(tt.anim===1)return Ue={name:tt.name,styles:tt.styles,next:Ue},tt.name;var ot=F;if(ot.styles!==void 0){var nt=ot.next;if(nt!==void 0)for(;nt!==void 0;)Ue={name:nt.name,styles:nt.styles,next:Ue},nt=nt.next;var st=ot.styles+";";return st}return vp(d,T,F)}case"function":{if(d!==void 0){var pt=Ue,ht=F(d);return Ue=pt,$i(d,T,ht)}break}}var ut=F;if(T==null)return ut;var ft=T[ut];return ft!==void 0?ft:ut}function vp(d,T,F){var K="";if(Array.isArray(F))for(var tt=0;tt<F.length;tt++)K+=$i(d,T,F[tt])+";";else for(var ot in F){var nt=F[ot];if(typeof nt!="object"){var st=nt;T!=null&&T[st]!==void 0?K+=ot+"{"+T[st]+"}":qn(st)&&(K+=pr(ot)+":"+Jn(ot,st)+";")}else{if(ot==="NO_COMPONENT_SELECTOR"&&fp)throw new Error(yp);if(Array.isArray(nt)&&typeof nt[0]=="string"&&(T==null||T[nt[0]]===void 0))for(var pt=0;pt<nt.length;pt++)qn(nt[pt])&&(K+=pr(ot)+":"+Jn(ot,nt[pt])+";");else{var ht=$i(d,T,nt);switch(ot){case"animation":case"animationName":{K+=pr(ot)+":"+ht+";";break}default:K+=ot+"{"+ht+"}"}}}}return K}var Qn=/label:\s*([^\s;{]+)\s*(;|$)/g,Ue;function La(d,T,F){if(d.length===1&&typeof d[0]=="object"&&d[0]!==null&&d[0].styles!==void 0)return d[0];var K=!0,tt="";Ue=void 0;var ot=d[0];if(ot==null||ot.raw===void 0)K=!1,tt+=$i(F,T,ot);else{var nt=ot;tt+=nt[0]}for(var st=1;st<d.length;st++)if(tt+=$i(F,T,d[st]),K){var pt=ot;tt+=pt[st]}Qn.lastIndex=0;for(var ht="",ut;(ut=Qn.exec(tt))!==null;)ht+="-"+ut[1];var ft=dp(tt)+ht;return{name:ft,styles:tt,next:Ue}}const bp=2e4,xp="system",nn="#5B6372",Cp="#F4F4F8",wp="#FA5656",sn="N\\A",Sp="N/A";function Ea(d){if(d===null||d===!0||d===!1)return NaN;var T=Number(d);return isNaN(T)?T:T<0?Math.ceil(T):Math.floor(T)}function Oa(d,T){if(T.length<d)throw new TypeError(d+" argument"+(d>1?"s":"")+" required, but only "+T.length+" present")}var Da=6e4,ja=36e5;function Mp(d,T){var F;Oa(1,arguments);var K=Ea((F=void 0)!==null&&F!==void 0?F:2);if(K!==2&&K!==1&&K!==0)throw new RangeError("additionalDigits must be 0, 1 or 2");if(!(typeof d=="string"||Object.prototype.toString.call(d)==="[object String]"))return new Date(NaN);var tt=Pp(d),ot;if(tt.date){var nt=Lp(tt.date,K);ot=Ep(nt.restDateString,nt.year)}if(!ot||isNaN(ot.getTime()))return new Date(NaN);var st=ot.getTime(),pt=0,ht;if(tt.time&&(pt=Op(tt.time),isNaN(pt)))return new Date(NaN);if(tt.timezone){if(ht=Dp(tt.timezone),isNaN(ht))return new Date(NaN)}else{var ut=new Date(st+pt),ft=new Date(0);return ft.setFullYear(ut.getUTCFullYear(),ut.getUTCMonth(),ut.getUTCDate()),ft.setHours(ut.getUTCHours(),ut.getUTCMinutes(),ut.getUTCSeconds(),ut.getUTCMilliseconds()),ft}return new Date(st+pt+ht)}var fo={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},Ap=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,Tp=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,kp=/^([+-])(\d{2})(?::?(\d{2}))?$/;function Pp(d){var T={},F=d.split(fo.dateTimeDelimiter),K;if(F.length>2)return T;if(/:/.test(F[0])?K=F[0]:(T.date=F[0],K=F[1],fo.timeZoneDelimiter.test(T.date)&&(T.date=d.split(fo.timeZoneDelimiter)[0],K=d.substr(T.date.length,d.length))),K){var tt=fo.timezone.exec(K);tt?(T.time=K.replace(tt[1],""),T.timezone=tt[1]):T.time=K}return T}function Lp(d,T){var F=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+T)+"})|(\\d{2}|[+-]\\d{"+(2+T)+"})$)"),K=d.match(F);if(!K)return{year:NaN,restDateString:""};var tt=K[1]?parseInt(K[1]):null,ot=K[2]?parseInt(K[2]):null;return{year:ot===null?tt:ot*100,restDateString:d.slice((K[1]||K[2]).length)}}function Ep(d,T){if(T===null)return new Date(NaN);var F=d.match(Ap);if(!F)return new Date(NaN);var K=!!F[4],tt=Ii(F[1]),ot=Ii(F[2])-1,nt=Ii(F[3]),st=Ii(F[4]),pt=Ii(F[5])-1;if(K)return _p(T,st,pt)?jp(T,st,pt):new Date(NaN);var ht=new Date(0);return!Np(T,ot,nt)||!Bp(T,tt)?new Date(NaN):(ht.setUTCFullYear(T,ot,Math.max(tt,nt)),ht)}function Ii(d){return d?parseInt(d):1}function Op(d){var T=d.match(Tp);if(!T)return NaN;var F=dr(T[1]),K=dr(T[2]),tt=dr(T[3]);return Rp(F,K,tt)?F*ja+K*Da+tt*1e3:NaN}function dr(d){return d&&parseFloat(d.replace(",","."))||0}function Dp(d){if(d==="Z")return 0;var T=d.match(kp);if(!T)return 0;var F=T[1]==="+"?-1:1,K=parseInt(T[2]),tt=T[3]&&parseInt(T[3])||0;return zp(K,tt)?F*(K*ja+tt*Da):NaN}function jp(d,T,F){var K=new Date(0);K.setUTCFullYear(d,0,4);var tt=K.getUTCDay()||7,ot=(T-1)*7+F+1-tt;return K.setUTCDate(K.getUTCDate()+ot),K}var Ip=[31,null,31,30,31,30,31,31,30,31,30,31];function Ia(d){return d%400===0||d%4===0&&d%100!==0}function Np(d,T,F){return T>=0&&T<=11&&F>=1&&F<=(Ip[T]||(Ia(d)?29:28))}function Bp(d,T){return T>=1&&T<=(Ia(d)?366:365)}function _p(d,T,F){return T>=1&&T<=53&&F>=0&&F<=6}function Rp(d,T,F){return d===24?T===0&&F===0:F>=0&&F<60&&T>=0&&T<60&&d>=0&&d<25}function zp(d,T){return T>=0&&T<=59}var Fp=/\s/;function Gp(d){for(var T=d.length;T--&&Fp.test(d.charAt(T)););return T}var Wp=/^\s+/;function Na(d){return d&&d.slice(0,Gp(d)+1).replace(Wp,"")}var ts=NaN,Xp=/^[-+]0x[0-9a-f]+$/i,Hp=/^0b[01]+$/i,Yp=/^0o[0-7]+$/i,Up=parseInt;function an(d){if(typeof d=="number")return d;if(Rt.isSymbol(d))return ts;if(Rt.isObject(d)){var T=typeof d.valueOf=="function"?d.valueOf():d;d=Rt.isObject(T)?T+"":T}if(typeof d!="string")return d===0?d:+d;d=Na(d);var F=Hp.test(d);return F||Yp.test(d)?Up(d.slice(2),F?2:8):Xp.test(d)?ts:+d}var es=1/0,Vp=17976931348623157e292;function Ba(d){if(!d)return d===0?d:0;if(d=an(d),d===es||d===-es){var T=d<0?-1:1;return T*Vp}return d===d?d:0}function ln(d){const T=/([+-]\d{2}:?\d{2}|Z)$/i.test(d);return Mp(T?d:d+"Z")}var $p=function(T){return T()},Zp=Qe[`useInsertionEffect${Math.random()}`.slice(0,18)]?Qe[`useInsertionEffect${Math.random()}`.slice(0,18)]:!1,_a=Zp||$p,Kp=!1,Ra=Qe.createContext(typeof HTMLElement!="undefined"?Aa({key:"css"}):null),qp=Ra.Provider,za=function(T){return Ne.forwardRef(function(F,K){var tt=Ne.useContext(Ra);return T(F,tt,K)})},Fa=Qe.createContext({}),ro={}.hasOwnProperty,Lr="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",hn=function(T,F){var K={};for(var tt in F)ro.call(F,tt)&&(K[tt]=F[tt]);return K[Lr]=T,K},Jp=function(T){var F=T.cache,K=T.serialized,tt=T.isStringTag;return rn(F,K,tt),_a(function(){return ka(F,K,tt)}),null},Qp=za(function(d,T,F){var K=d.css;typeof K=="string"&&T.registered[K]!==void 0&&(K=T.registered[K]);var tt=d[Lr],ot=[K],nt="";typeof d.className=="string"?nt=Ta(T.registered,ot,d.className):d.className!=null&&(nt=d.className+" ");var st=La(ot,void 0,Qe.useContext(Fa));nt+=T.key+"-"+st.name;var pt={};for(var ht in d)ro.call(d,ht)&&ht!=="css"&&ht!==Lr&&!Kp&&(pt[ht]=d[ht]);return pt.className=nt,F&&(pt.ref=F),Qe.createElement(Qe.Fragment,null,Qe.createElement(Jp,{cache:T,serialized:st,isStringTag:typeof tt=="string"}),Qe.createElement(tt,pt))}),cn=Qp,Ga=Yi.Fragment,se=function(T,F,K){return ro.call(F,"css")?Yi.jsx(cn,hn(T,F),K):Yi.jsx(T,F,K)},ai=function(T,F,K){return ro.call(F,"css")?Yi.jsxs(cn,hn(T,F),K):Yi.jsxs(T,F,K)};const Wa=["polar"],pn=["line","area","bar","column",...Wa],dn=["pie","funnel","treemap","sunburst"],un=["scatter"],Xa=["table"],Ha=["indicator"],fn=["boxplot"],Ya=["areamap"],td=["image"],Ua=["scattermap"],Va=["calendar-heatmap"],gn=["arearange"],$a=d=>pn.find(T=>T===d)!==void 0,Za=d=>dn.find(T=>T===d)!==void 0,Ka=d=>un.find(T=>T===d)!==void 0,qa=d=>Ua.find(T=>T===d)!==void 0,Ja=d=>Ha.find(T=>T===d)!==void 0,Qa=d=>Wa.find(T=>T===d)!==void 0,ed=d=>Xa.find(T=>T===d)!==void 0,tl=d=>fn.find(T=>T===d)!==void 0,el=d=>Ya.find(T=>T===d)!==void 0,id=d=>gn.find(T=>T===d)!==void 0,od=d=>Va.find(T=>T===d)!==void 0,rd=[...pn,...dn,...un,...Xa,...Ha,...fn,...Ya,...td,...Ua,...Va,...gn];function mn(d){return d===void 0}const Bo=(d,T)=>Object.assign(Object.create(d),T),nd=(d,T)=>Object.assign(Object.create(Object.getPrototypeOf(d)),d,T),no=d=>{if(vn(d)){const T=d,{column:F}=T,K=Te(T,["column"]);return{column:F,style:K}}return{column:d,style:{}}};function Je(d){const T="column"in d?d.column:d,F="aggregation"in T&&!!T.aggregation,K="context"in T&&!!T.context,tt="formula"in T&&!!T.formula;return F||K||tt?!0:!("type"in T)}const xe=d=>{if(!d)return"";const{column:T,name:F}=d;return F||("title"in T&&T.title?T.title:T.name)},yn=({column:d,granularity:T})=>T||d.granularity||Rt.DateLevels.Years,sd=d=>{const{column:T}=no(d);return T},ad=d=>{const{column:T}=no(d);return T};function vn(d){return"column"in d&&d.column!==void 0}function ld(d){return!("column"in d)}function il(d,T){var ot;const{column:F,style:K}=no(d),tt=Nt(kt(kt({},T),K),{column:F});return Rt.isDatetime(F.type)&&mn(tt.dateFormat)&&(tt.dateFormat=(ot=F==null?void 0:F.getFormat)==null?void 0:ot.call(F)),tt}function ol(d,T){var tt,ot;const{column:F,style:K}=no(d);return Nt(kt(kt({},T),K),{column:Bo(F,{title:(tt=F.title)!=null?tt:F.name,aggregation:(ot=F.aggregation)!=null?ot:"sum"}),enabled:!0})}function hd(d,T){return Je(d)?ol(d,T):il(d,T)}const Zi=(d,T)=>{const F=!d||d==="";let K,tt,ot;return Rt.isNumber(T)?(K=parseFloat(d),tt=isNaN(K)):Rt.isDatetime(T)?d===sn?(K=d,tt=!0):(K=ln(d).valueOf(),tt=isNaN(K)):(K=d,ot=d==null?void 0:d.toLowerCase(),tt=!1),kt({value:K,valueUndefined:F,valueIsNaN:tt},ot&&{lowercaseValue:ot})};function is(d,T){const F=Rt.isObject(d)?d:{displayValue:d==null?void 0:d.toString()};return F.compareValue||(F.compareValue=Zi(F.displayValue,T)),F}var cd=function(d){return d[d.ASC=1]="ASC",d[d.DESC=-1]="DESC",d[d.NONE=0]="NONE",d}({});function rl(d,T,F=1,K="string"){const tt=is(d,K),ot=is(T,K),nt=tt.compareValue,st=ot.compareValue;if(nt.valueUndefined&&st.valueUndefined)return 0;if(nt.valueUndefined)return 1;if(st.valueUndefined)return-1;if(nt.valueIsNaN&&st.valueIsNaN)return 0;if(nt.valueIsNaN)return 1;if(st.valueIsNaN)return-1;const pt=nt.lowercaseValue,ht=st.lowercaseValue;if(pt!==void 0&&ht!==void 0){if(pt<ht)return-1*F;if(pt>ht)return 1*F}return nt.value<st.value?-1*F:nt.value>st.value?1*F:0}class nl{constructor(T){this.columns=[],this.columns=T}compare(T,F){for(let K=0;K<this.columns.length;K++){const tt=this.columns[K],ot=T[tt.index],nt=F[tt.index],st=tt.direction||1,pt=rl(ot,nt,st,tt.type);if(pt!==0)return pt}return 0}}const sl=d=>d instanceof Object&&"data"in d,pd=d=>d.rows.length===0,bn="$rownum",dd=d=>{let T=0;const F=d.rows.map(tt=>{const ot=d.columns.map((nt,st)=>{var ft;const pt=tt[st];if(sl(pt)){let B=pt.data.toString();if(Rt.isDatetime(nt.type)){const it="1111-11-11T";B.startsWith(it)&&(B=B.replace(it,"1970-01-01T"))}return kt(kt({rawValue:pt.data,displayValue:(ft=pt.text)!=null?ft:B,compareValue:Zi(B,nt.type)},pt.blur!==void 0?{blur:pt.blur}:{}),pt.color?{color:pt.color}:{})}let ht,ut;return Rt.isDatetime(nt.type)&&(pt===sn?(ht={value:pt,valueUndefined:!1,valueIsNaN:!0},ut=pt):(ht=Zi(`${pt}`,nt.type),ut=new Date(ht.value).toISOString())),{rawValue:ut!=null?ut:pt,displayValue:`${pt!=null?pt:""}`,compareValue:ht}});return T++,ot.push({displayValue:`${T}`,rawValue:T}),ot}),K=d.columns.map((tt,ot)=>({name:tt.name,type:tt.type,index:ot,direction:0}));return K.push({name:bn,type:"number",index:K.length,direction:0}),{columns:K,rows:F}};class ud{constructor(T){this.data=T}getStat(T){switch(T){case"count":return this.getCount();case"countdistinct":return this.getCountDistinct()}return NaN}getN(){return this.getCount()}getCount(){return this.data.length}getCountDistinct(){return this.data.filter((T,F,K)=>K.indexOf(T)===F).length}}class os{constructor(T){this.data=T}getStat(T){switch(T){case"sum":return this.getSum();case"max":return this.getMax();case"min":return this.getMin();case"count":return this.getCount();case"countdistinct":return this.getCountDistinct();case"avg":case"mean":case"average":return this.getAverage();case"var":case"variance":return this.getVariance();case"stddev":return this.getStdDev()}return NaN}getSum(){if(this.data.length===0)return NaN;if(this.sum!=null)return this.sum;this.sum=0;for(const T of this.data)this.sum+=T;return this.sum}getMax(){if(this.data.length===0)return NaN;if(this.max)return this.max;if(this.data.length<=0)return NaN;this.max=this.data[0];for(const T of this.data)T>this.max&&(this.max=T);return this.max}getMin(){if(this.data.length===0)return NaN;if(this.min)return this.min;if(this.data.length<=0)return NaN;this.min=this.data[0];for(const T of this.data)T<this.min&&(this.min=T);return this.min}getMean(){return this.getAverage()}getAverage(){return this.data.length===0?NaN:this.avg?this.avg:(this.avg=this.getSum()/this.data.length,this.avg)}getN(){return this.getCount()}getCount(){return this.data.length}getCountDistinct(){return this.data.filter((T,F,K)=>K.indexOf(T)===F).length}getVariance(){if(this.variance===void 0)if(this.data.length===0)this.variance=NaN;else if(this.data.length===1)this.variance=0;else{const T=this.getMean();this.variance=this.data.reduce((F,K)=>F.concat(Ft(K-T,2)),[]).reduce((F,K)=>F+K,0)/(this.data.length-1)}return this.variance}getStdDev(){return this.data.length===0?NaN:this.stddev!=null?this.stddev:(this.stddev=Math.sqrt(this.getVariance()),this.stddev)}}const al=(d,T)=>d.slice(0).sort((F,K)=>T.compare(F,K)),xn=(d,T)=>{if(!(d&&d.length>0))return[];const F=new nl(T),K=al(d,F);let tt=[];const ot=[];let nt=K[0];for(const st of Array.from(K))F.compare(st,nt)!==0&&(ot.push(tt),tt=[]),tt.push(st),nt=st;return ot.push(tt),ot},fd=(d,T)=>{var K,tt;const F=[];for(const ot of T){let nt;const st=ot.column,{aggFunc:pt}=ot,ht=d.filter(B=>!!B[st.index]&&B[st.index].displayValue!==""),ut=(tt=(K=ht.find(B=>{var it;return B!==void 0&&((it=B==null?void 0:B[st.index])==null?void 0:it.color)}))==null?void 0:K[st.index])==null?void 0:tt.color,ft=ht.some(B=>B[st.index].blur);if(Rt.isDatetime(st.type)){const B=ht.map(it=>ln(it[st.index].displayValue).valueOf());nt=new os(B).getStat(pt)}else if(Rt.isNumber(st.type)){const B=ht.map(it=>parseFloat(it[st.index].displayValue));nt=new os(B).getStat(pt)}else{const B=ht.map(it=>it[st.index].displayValue);nt=new ud(B).getStat(pt)}F.push(kt(kt({displayValue:`${nt}`},ut&&{color:ut}),ft&&{blur:ft}))}return F},ll=(d,T)=>{if(wn(d))return{columns:[],rows:[]};const F=new nl(T);return{columns:d.columns,rows:al(d.rows,F)}},hl=(d,T,F)=>{if(wn(d))return{rows:[],columns:[]};const K={name:"n/a",type:"n/a",index:-1,direction:0},tt=F.map(ht=>({aggFunc:ht.agg,aggName:ht.title,column:ni(d,ht.column)||K})).filter(ht=>ht.column.index!==-1),ot=xn(d.rows,T),nt=tt.map(ht=>ht.aggName),st=[];for(const ht of ot){const ut=Oi(ht[0],T),ft=fd(ht,tt),B=ut.slice(0).concat(ft);st.push(B)}const pt=T.slice(0).concat(nt.map(ht=>({name:ht,type:"number",index:0,direction:0})));return{rows:st,columns:pt.map((ht,ut)=>Nt(kt({},ht),{index:ut}))}},ni=(d,T)=>d.columns.find(F=>F.name===T),Ki=(d,T)=>{const F={name:"foo",type:"string",index:-1,direction:0};return T.map(K=>ni(d,K)||F).filter(K=>K!==F)},cl=(d,T)=>{const F=d.rows.map(tt=>T.map(ot=>tt[ot.index]));return{columns:T.map((tt,ot)=>Nt(kt({},tt),{index:ot})),rows:F}},pl=(d,T)=>{if(!(d&&T.index<d.length))return;const F=d[T.index];return F.compareValue||(F.compareValue=Zi(F.displayValue,T.type)),F.compareValue.value},dl=(d,T)=>{var F;return(F=d[T.index])==null?void 0:F.blur},Oi=(d,T)=>{const F=[];for(const K of T)F.push(d[K.index]);return F},gd=(d,T)=>Oi(d,T).map(F=>F.rawValue||F.displayValue).join(","),Cn=(d,T)=>{if(!(d&&d.length>0))return{};const F=xn(d,T),K={};for(const tt of F){const ot=gd(tt[0],T);K[ot]=tt}return K},wn=d=>!(d.rows&&d.columns&&d.rows.length>0&&d.columns.length>0);var rs;(function(d){d.event="event",d.props="prop"})(rs||(rs={}));function md(d){switch(d){case"lakh":return/(\d+?)(?=(\d\d)+(\d)(?!\d))(\.\d+)?/g;case"wan":return/(\d)(?=(\d{4})+(?!\d))/g;case"thousand":default:return/(\d)(?=(\d{3})+(?!\d))/g}}function yd(d,T,F){var K=md(F),tt=d.search(/[1-9]/);return tt=tt===-1?d.length:tt,d.substring(0,tt)+d.substring(tt,d.length).replace(K,"$1"+T)}function vd(d,T){T===void 0&&(T=!0);var F=d[0]==="-",K=F&&T;d=d.replace("-","");var tt=d.split("."),ot=tt[0],nt=tt[1]||"";return{beforeDecimal:ot,afterDecimal:nt,hasNegation:F,addNegation:K}}function bd(d,T,F){for(var K="",tt=F?"0":"",ot=0;ot<=T-1;ot++)K+=d[ot]||tt;return K}function xd(d,T){var F=T.decimalScale,K=T.fixedDecimalScale,tt=T.prefix;tt===void 0&&(tt="");var ot=T.suffix;ot===void 0&&(ot="");var nt=T.allowNegative,st=T.thousandsGroupStyle;if(st===void 0&&(st="thousand"),d===""||d==="-")return d;var pt=Cd(T),ht=pt.thousandSeparator,ut=pt.decimalSeparator,ft=F!==0&&d.indexOf(".")!==-1||F&&K,B=vd(d,nt),it=B.beforeDecimal,W=B.afterDecimal,R=B.addNegation;return F!==void 0&&(W=bd(W,F,!!K)),ht&&(it=yd(it,ht,st)),tt&&(it=tt+it),ot&&(W=W+ot),R&&(it="-"+it),d=it+(ft&&ut||"")+W,d}function Cd(d){var T=d.decimalSeparator;T===void 0&&(T=".");var F=d.thousandSeparator,K=d.allowedDecimalSeparators;return F===!0&&(F=","),K||(K=[T,"."]),{decimalSeparator:T,thousandSeparator:F,allowedDecimalSeparators:K}}function ul(d){var T=Ba(d),F=T%1;return T===T?F?T-F:T:0}var wd=Rt.root.isFinite,Sd=Math.min;function Md(d){var T=Math[d];return function(F,K){if(F=an(F),K=K==null?0:Sd(ul(K),292),K&&wd(F)){var tt=(Rt.toString(F)+"e").split("e"),ot=T(tt[0]+"e"+(+tt[1]+K));return tt=(Rt.toString(ot)+"e").split("e"),+(tt[0]+"e"+(+tt[1]-K))}return T(F)}}var Ad=Md("round");const Er=1e3,Or=Er*1e3,Dr=Or*1e3,ns=Dr*1e3,fl=1000.1.toLocaleString().replace(/\d/g,""),Td=fl[0],kd=fl[1],Pd={name:"Numbers",decimalScale:"auto",trillion:!0,billion:!0,million:!0,kilo:!0,thousandSeparator:!0,prefix:!0,symbol:"$"},he=d=>kt(kt({},Pd),d||{}),Ld=(d,T)=>isNaN(T)?"":`<span>${yi(d,T)}</span>`,Ed=(d,T)=>Math.sign(d)*Ad(Math.abs(d),T),yi=(d,T)=>{const{t:F}=Rt.i18nextInstance,K=d.decimalScale!==0&&d.decimalScale!=="auto",tt=d.decimalScale==="auto"?2:d.decimalScale;let ot=!0;d.name==="Numbers"&&!d.thousandSeparator&&(ot=void 0);let nt,st,pt=T;return d.name==="Percent"&&(st="%",pt=T*100),(d.name==="Numbers"||d.name==="Currency")&&(d.trillion&&Math.abs(T)/ns>=1?(pt=T/ns,st=F("formatting.number.abbreviations.trillion")):d.billion&&Math.abs(T)/Dr>=1?(pt=T/Dr,st=F("formatting.number.abbreviations.billion")):d.million&&Math.abs(T)/Or>=1?(pt=T/Or,st=F("formatting.number.abbreviations.million")):d.kilo&&Math.abs(T)/Er>=1&&(pt=T/Er,st=F("formatting.number.abbreviations.thousand"))),d.name==="Currency"&&(d.prefix?nt=d.symbol:st?st=`${st}${d.symbol}`:st=d.symbol),xd(`${Ed(pt,tt)}`,{displayType:"text",thousandSeparator:ot?Td:void 0,fixedDecimalScale:K,decimalScale:tt,decimalSeparator:kd,prefix:nt,suffix:st})},Ce=(d,T)=>{let F=Ld(d,T);return F=F.replace("<span>",""),F=F.replace("</span>",""),F},_o="#dcdcdc",ii="#CCCCCC",oi="#FFFFFF",Od=["#00cee6","#9b9bd7","#6eda55","#fc7570","#fbb755","#218a8c","#08e5ff","#b3b3f7","#7efb62","#ff8a87","#ffc26a","#279fa1"],Sn=d=>({type:"uniform",color:d});function Dd(d){return()=>d.color}const gl=d=>{if(d!==void 0)return typeof d=="string"?Sn(d).color:d.type==="uniform"?d.color:_o};function jd(d){var F;const T=((F=d.conditions)!=null?F:[]).map(K=>({match:Id(K),color:K.color}));return K=>{const tt=T.find(ot=>ot.match(K));return tt?tt.color:d.defaultColor}}function Id(d){const T=Number(d.expression);switch(d.operator){case"<":return F=>F<T;case">":return F=>F>T;case"≤":case"<=":return F=>F<=T;case"≥":case">=":return F=>F>=T;case"=":return F=>F==T;case"≠":case"!=":return F=>F!=T;default:return()=>!0}}function ge(d,T){let F=d.length;Array.isArray(d[0])||(d=[d]),Array.isArray(T[0])||(T=T.map(nt=>[nt]));let K=T[0].length,tt=T[0].map((nt,st)=>T.map(pt=>pt[st])),ot=d.map(nt=>tt.map(st=>{let pt=0;if(!Array.isArray(nt)){for(let ht of st)pt+=nt*ht;return pt}for(let ht=0;ht<nt.length;ht++)pt+=nt[ht]*(st[ht]||0);return pt}));return F===1&&(ot=ot[0]),K===1?ot.map(nt=>nt[0]):ot}function so(d){return si(d)==="string"}function si(d){return(Object.prototype.toString.call(d).match(/^\[object\s+(.*?)\]$/)[1]||"").toLowerCase()}function Ro(d,T){d=+d,T=+T;let F=(Math.floor(d)+"").length;if(T>F)return+d.toFixed(T-F);{let K=Ft(10,F-T);return Math.round(d/K)*K}}function ml(d){if(!d)return;d=d.trim();const T=/^([a-z]+)\((.+?)\)$/i,F=/^-?[\d.]+$/;let K=d.match(T);if(K){let tt=[];return K[2].replace(/\/?\s*([-\w.]+(?:%|deg)?)/g,(ot,nt)=>{/%$/.test(nt)?(nt=new Number(nt.slice(0,-1)/100),nt.type="<percentage>"):/deg$/.test(nt)?(nt=new Number(+nt.slice(0,-3)),nt.type="<angle>",nt.unit="deg"):F.test(nt)&&(nt=new Number(nt),nt.type="<number>"),ot.startsWith("/")&&(nt=nt instanceof Number?nt:new Number(nt),nt.alpha=!0),tt.push(nt)}),{name:K[1].toLowerCase(),rawName:K[1],rawArgs:K[2],args:tt}}}function yl(d){return d[d.length-1]}function zo(d,T,F){return isNaN(d)?T:isNaN(T)?d:d+(T-d)*F}function vl(d,T,F){return(F-d)/(T-d)}function Mn(d,T,F){return zo(T[0],T[1],vl(d[0],d[1],F))}function bl(d){return d.map(T=>T.split("|").map(F=>{F=F.trim();let K=F.match(/^(<[a-z]+>)\[(-?[.\d]+),\s*(-?[.\d]+)\]?$/);if(K){let tt=new String(K[1]);return tt.range=[+K[2],+K[3]],tt}return F}))}var Nd=Object.freeze({__proto__:null,interpolate:zo,interpolateInv:vl,isString:so,last:yl,mapRange:Mn,multiplyMatrices:ge,parseCoordGrammar:bl,parseFunction:ml,toPrecision:Ro,type:si});class Bd{add(T,F,K){if(typeof arguments[0]!="string"){for(var T in arguments[0])this.add(T,arguments[0][T],arguments[1]);return}(Array.isArray(T)?T:[T]).forEach(function(tt){this[tt]=this[tt]||[],F&&this[tt][K?"unshift":"push"](F)},this)}run(T,F){this[T]=this[T]||[],this[T].forEach(function(K){K.call(F&&F.context?F.context:F,F)})}}const li=new Bd;var qe={gamut_mapping:"lch.c",precision:5,deltaE:"76"};const We={D50:[.3457/.3585,1,(1-.3457-.3585)/.3585],D65:[.3127/.329,1,(1-.3127-.329)/.329]};function jr(d){return Array.isArray(d)?d:We[d]}function Fo(d,T,F,K={}){if(d=jr(d),T=jr(T),!d||!T)throw new TypeError(`Missing white point to convert ${d?"":"from"}${!d&&!T?"/":""}${T?"":"to"}`);if(d===T)return F;let tt={W1:d,W2:T,XYZ:F,options:K};if(li.run("chromatic-adaptation-start",tt),tt.M||(tt.W1===We.D65&&tt.W2===We.D50?tt.M=[[1.0479298208405488,.022946793341019088,-.05019222954313557],[.029627815688159344,.990434484573249,-.01707382502938514],[-.009243058152591178,.015055144896577895,.7518742899580008]]:tt.W1===We.D50&&tt.W2===We.D65&&(tt.M=[[.9554734527042182,-.023098536874261423,.0632593086610217],[-.028369706963208136,1.0099954580058226,.021041398966943008],[.012314001688319899,-.020507696433477912,1.3303659366080753]])),li.run("chromatic-adaptation-end",tt),tt.M)return ge(tt.M,tt.XYZ);throw new TypeError("Only Bradford CAT with white points D50 and D65 supported for now.")}const _d=75e-6,Oe=class Oe{constructor(T){var tt,ot,nt,st,pt,ht,ut;this.id=T.id,this.name=T.name,this.base=T.base?Oe.get(T.base):null,this.aliases=T.aliases,this.base&&(this.fromBase=T.fromBase,this.toBase=T.toBase);let F=(tt=T.coords)!=null?tt:this.base.coords;for(let ft in F)"name"in F[ft]||(F[ft].name=ft);this.coords=F;let K=(nt=(ot=T.white)!=null?ot:this.base.white)!=null?nt:"D65";this.white=jr(K),this.formats=(st=T.formats)!=null?st:{};for(let ft in this.formats){let B=this.formats[ft];B.type||(B.type="function"),B.name||(B.name=ft)}T.cssId&&!((pt=this.formats.functions)!=null&&pt.color)?(this.formats.color={id:T.cssId},Object.defineProperty(this,"cssId",{value:T.cssId})):(ht=this.formats)!=null&&ht.color&&!((ut=this.formats)!=null&&ut.color.id)&&(this.formats.color.id=this.id),this.referred=T.referred,Object.defineProperty(this,"path",{value:Rd(this).reverse(),writable:!1,enumerable:!0,configurable:!0}),li.run("colorspace-init-end",this)}inGamut(T,{epsilon:F=_d}={}){if(this.isPolar)return T=this.toBase(T),this.base.inGamut(T,{epsilon:F});let K=Object.values(this.coords);return T.every((tt,ot)=>{let nt=K[ot];if(nt.type!=="angle"&&nt.range){if(Number.isNaN(tt))return!0;let[st,pt]=nt.range;return(st===void 0||tt>=st-F)&&(pt===void 0||tt<=pt+F)}return!0})}get cssId(){var T,F;return((F=(T=this.formats.functions)==null?void 0:T.color)==null?void 0:F.id)||this.id}get isPolar(){for(let T in this.coords)if(this.coords[T].type==="angle")return!0;return!1}getFormat(T){if(typeof T=="object")return T=ss(T,this),T;let F;return T==="default"?F=Object.values(this.formats)[0]:F=this.formats[T],F?(F=ss(F,this),F):null}equals(T){return T?this===T||this.id===T.id:!1}to(T,F){if(arguments.length===1&&([T,F]=[T.space,T.coords]),T=Oe.get(T),this.equals(T))return F;F=F.map(st=>Number.isNaN(st)?0:st);let K=this.path,tt=T.path,ot,nt;for(let st=0;st<K.length&&K[st].equals(tt[st]);st++)ot=K[st],nt=st;if(!ot)throw new Error(`Cannot convert between color spaces ${this} and ${T}: no connection space was found`);for(let st=K.length-1;st>nt;st--)F=K[st].toBase(F);for(let st=nt+1;st<tt.length;st++)F=tt[st].fromBase(F);return F}from(T,F){return arguments.length===1&&([T,F]=[T.space,T.coords]),T=Oe.get(T),T.to(this,F)}toString(){return`${this.name} (${this.id})`}getMinCoords(){var F;let T=[];for(let K in this.coords){let tt=this.coords[K],ot=tt.range||tt.refRange;T.push((F=ot==null?void 0:ot.min)!=null?F:0)}return T}static get all(){return[...new Set(Object.values(Oe.registry))]}static register(T,F){if(arguments.length===1&&(F=arguments[0],T=F.id),F=this.get(F),this.registry[T]&&this.registry[T]!==F)throw new Error(`Duplicate color space registration: '${T}'`);if(this.registry[T]=F,arguments.length===1&&F.aliases)for(let K of F.aliases)this.register(K,F);return F}static get(T,...F){if(!T||T instanceof Oe)return T;if(si(T)==="string"){let tt=Oe.registry[T.toLowerCase()];if(!tt)throw new TypeError(`No color space found with id = "${T}"`);return tt}if(F.length)return Oe.get(...F);throw new TypeError(`${T} is not a valid color space`)}static resolveCoord(T,F){var pt;let K=si(T),tt,ot;if(K==="string"?T.includes(".")?[tt,ot]=T.split("."):[tt,ot]=[,T]:Array.isArray(T)?[tt,ot]=T:(tt=T.space,ot=T.coordId),tt=Oe.get(tt),tt||(tt=F),!tt)throw new TypeError(`Cannot resolve coordinate reference ${T}: No color space specified and relative references are not allowed here`);if(K=si(ot),K==="number"||K==="string"&&ot>=0){let ht=Object.entries(tt.coords)[ot];if(ht)return kt({space:tt,id:ht[0],index:ot},ht[1])}tt=Oe.get(tt);let nt=ot.toLowerCase(),st=0;for(let ht in tt.coords){let ut=tt.coords[ht];if(ht.toLowerCase()===nt||((pt=ut.name)==null?void 0:pt.toLowerCase())===nt)return kt({space:tt,id:ht,index:st},ut);st++}throw new TypeError(`No "${ot}" coordinate found in ${tt.name}. Its coordinates are: ${Object.keys(tt.coords).join(", ")}`)}};cr(Oe,"registry",{}),cr(Oe,"DEFAULT_FORMAT",{type:"functions",name:"color"});let Vt=Oe;function Rd(d){let T=[d];for(let F=d;F=F.base;)T.push(F);return T}function ss(d,{coords:T}={}){if(d.coords&&!d.coordGrammar){d.type||(d.type="function"),d.name||(d.name="color"),d.coordGrammar=bl(d.coords);let F=Object.entries(T).map(([K,tt],ot)=>{let nt=d.coordGrammar[ot][0],st=tt.range||tt.refRange,pt=nt.range,ht="";return nt=="<percentage>"?(pt=[0,100],ht="%"):nt=="<angle>"&&(ht="deg"),{fromRange:st,toRange:pt,suffix:ht}});d.serializeCoords=(K,tt)=>K.map((ot,nt)=>{let{fromRange:st,toRange:pt,suffix:ht}=F[nt];return st&&pt&&(ot=Mn(st,pt,ot)),ot=Ro(ot,tt),ht&&(ot+=ht),ot})}return d}var Re=new Vt({id:"xyz-d65",name:"XYZ D65",coords:{x:{name:"X"},y:{name:"Y"},z:{name:"Z"}},white:"D65",formats:{color:{ids:["xyz-d65","xyz"]}},aliases:["xyz"]});class Ee extends Vt{constructor(T){var F,K,tt;T.coords||(T.coords={r:{range:[0,1],name:"Red"},g:{range:[0,1],name:"Green"},b:{range:[0,1],name:"Blue"}}),T.base||(T.base=Re),T.toXYZ_M&&T.fromXYZ_M&&((F=T.toBase)!=null||(T.toBase=ot=>{let nt=ge(T.toXYZ_M,ot);return this.white!==this.base.white&&(nt=Fo(this.white,this.base.white,nt)),nt}),(K=T.fromBase)!=null||(T.fromBase=ot=>(ot=Fo(this.base.white,this.white,ot),ge(T.fromXYZ_M,ot)))),(tt=T.referred)!=null||(T.referred="display"),super(T)}}function xl(d,{meta:T}={}){var K,tt,ot,nt,st,pt;let F={str:(K=String(d))==null?void 0:K.trim()};if(li.run("parse-start",F),F.color)return F.color;if(F.parsed=ml(F.str),F.parsed){let ht=F.parsed.name;if(ht==="color"){let ut=F.parsed.args.shift(),ft=F.parsed.rawArgs.indexOf("/")>0?F.parsed.args.pop():1;for(let it of Vt.all){let W=it.getFormat("color");if(W&&(ut===W.id||(tt=W.ids)!=null&&tt.includes(ut))){const R=Object.keys(it.coords).map((H,V)=>F.parsed.args[V]||0);return T&&(T.formatId="color"),{spaceId:it.id,coords:R,alpha:ft}}}let B="";if(ut in Vt.registry){let it=(st=(nt=(ot=Vt.registry[ut].formats)==null?void 0:ot.functions)==null?void 0:nt.color)==null?void 0:st.id;it&&(B=`Did you mean color(${it})?`)}throw new TypeError(`Cannot parse color(${ut}). `+(B||"Missing a plugin?"))}else for(let ut of Vt.all){let ft=ut.getFormat(ht);if(ft&&ft.type==="function"){let B=1;(ft.lastAlpha||yl(F.parsed.args).alpha)&&(B=F.parsed.args.pop());let it=F.parsed.args,W;return ft.coordGrammar&&(W=Object.entries(ut.coords).map(([R,H],V)=>{var E;let $=ft.coordGrammar[V],Z=(E=it[V])==null?void 0:E.type,U=$.find(M=>M==Z);if(!U){let M=H.name||R;throw new TypeError(`${Z} not allowed for ${M} in ${ht}()`)}let z=U.range;Z==="<percentage>"&&(z||(z=[0,1]));let I=H.range||H.refRange;return z&&I&&(it[V]=Mn(z,I,it[V])),U})),T&&Object.assign(T,{formatId:ft.name,types:W}),{spaceId:ut.id,coords:it,alpha:B}}}}else for(let ht of Vt.all)for(let ut in ht.formats){let ft=ht.formats[ut];if(ft.type!=="custom"||ft.test&&!ft.test(F.str))continue;let B=ft.parse(F.str);if(B)return(pt=B.alpha)!=null||(B.alpha=1),T&&(T.formatId=ut),B}throw new TypeError(`Could not parse ${d} as a color. Missing a plugin?`)}function re(d){if(!d)throw new TypeError("Empty color reference");so(d)&&(d=xl(d));let T=d.space||d.spaceId;return T instanceof Vt||(d.space=Vt.get(T)),d.alpha===void 0&&(d.alpha=1),d}function ao(d,T){return T=Vt.get(T),T.from(d)}function ze(d,T){let{space:F,index:K}=Vt.resolveCoord(T,d.space);return ao(d,F)[K]}function Cl(d,T,F){return T=Vt.get(T),d.coords=T.to(d.space,F),d}function hi(d,T,F){if(d=re(d),arguments.length===2&&si(arguments[1])==="object"){let K=arguments[1];for(let tt in K)hi(d,tt,K[tt])}else{typeof F=="function"&&(F=F(ze(d,T)));let{space:K,index:tt}=Vt.resolveCoord(T,d.space),ot=ao(d,K);ot[tt]=F,Cl(d,K,ot)}return d}var An=new Vt({id:"xyz-d50",name:"XYZ D50",white:"D50",base:Re,fromBase:d=>Fo(Re.white,"D50",d),toBase:d=>Fo("D50",Re.white,d),formats:{color:{}}});const zd=216/24389,as=24/116,go=24389/27;let ur=We.D50;var De=new Vt({id:"lab",name:"Lab",coords:{l:{refRange:[0,100],name:"L"},a:{refRange:[-125,125]},b:{refRange:[-125,125]}},white:ur,base:An,fromBase(d){let F=d.map((K,tt)=>K/ur[tt]).map(K=>K>zd?Math.cbrt(K):(go*K+16)/116);return[116*F[1]-16,500*(F[0]-F[1]),200*(F[1]-F[2])]},toBase(d){let T=[];return T[1]=(d[0]+16)/116,T[0]=d[1]/500+T[1],T[2]=T[1]-d[2]/200,[T[0]>as?Math.pow(T[0],3):(116*T[0]-16)/go,d[0]>8?Math.pow((d[0]+16)/116,3):d[0]/go,T[2]>as?Math.pow(T[2],3):(116*T[2]-16)/go].map((K,tt)=>K*ur[tt])},formats:{lab:{coords:["<number> | <percentage>","<number> | <percentage>[-1,1]","<number> | <percentage>[-1,1]"]}}});function er(d){return(d%360+360)%360}function Fd(d,T){if(d==="raw")return T;let[F,K]=T.map(er),tt=K-F;return d==="increasing"?tt<0&&(K+=360):d==="decreasing"?tt>0&&(F+=360):d==="longer"?-180<tt&&tt<180&&(tt>0?F+=360:K+=360):d==="shorter"&&(tt>180?F+=360:tt<-180&&(K+=360)),[F,K]}var qi=new Vt({id:"lch",name:"LCH",coords:{l:{refRange:[0,100],name:"Lightness"},c:{refRange:[0,150],name:"Chroma"},h:{refRange:[0,360],type:"angle",name:"Hue"}},base:De,fromBase(d){let[T,F,K]=d,tt;const ot=.02;return Math.abs(F)<ot&&Math.abs(K)<ot?tt=NaN:tt=Math.atan2(K,F)*180/Math.PI,[T,Math.sqrt(Ft(F,2)+Ft(K,2)),er(tt)]},toBase(d){let[T,F,K]=d;return F<0&&(F=0),isNaN(K)&&(K=0),[T,F*Math.cos(K*Math.PI/180),F*Math.sin(K*Math.PI/180)]},formats:{lch:{coords:["<number> | <percentage>","<number> | <percentage>","<number> | <angle>"]}}});const ls=Ft(25,7),Go=Math.PI,hs=180/Go,wi=Go/180;function Ir(d,T,{kL:F=1,kC:K=1,kH:tt=1}={}){let[ot,nt,st]=De.from(d),pt=qi.from(De,[ot,nt,st])[1],[ht,ut,ft]=De.from(T),B=qi.from(De,[ht,ut,ft])[1];pt<0&&(pt=0),B<0&&(B=0);let it=(pt+B)/2,W=Ft(it,7),R=.5*(1-Math.sqrt(W/(W+ls))),H=(1+R)*nt,V=(1+R)*ut,$=Math.sqrt(Ft(H,2)+Ft(st,2)),Z=Math.sqrt(Ft(V,2)+Ft(ft,2)),U=H===0&&st===0?0:Math.atan2(st,H),z=V===0&&ft===0?0:Math.atan2(ft,V);U<0&&(U+=2*Go),z<0&&(z+=2*Go),U*=hs,z*=hs;let I=ht-ot,E=Z-$,M=z-U,P=U+z,y=Math.abs(M),h;$*Z===0?h=0:y<=180?h=M:M>180?h=M-360:M<-180?h=M+360:console.log("the unthinkable has happened");let f=2*Math.sqrt(Z*$)*Math.sin(h*wi/2),m=(ot+ht)/2,u=($+Z)/2,v=Math.pow(u,7),w;$*Z===0?w=P:y<=180?w=P/2:P<360?w=(P+360)/2:w=(P-360)/2;let S=Ft(m-50,2),x=1+.015*S/Math.sqrt(20+S),c=1+.045*u,g=1;g-=.17*Math.cos((w-30)*wi),g+=.24*Math.cos(2*w*wi),g+=.32*Math.cos((3*w+6)*wi),g-=.2*Math.cos((4*w-63)*wi);let r=1+.015*u*g,a=30*Math.exp(-1*Ft((w-275)/25,2)),t=2*Math.sqrt(v/(v+ls)),i=-1*Math.sin(2*a*wi)*t,o=Ft(I/(F*x),2);return o+=Ft(E/(K*c),2),o+=Ft(f/(tt*r),2),o+=i*(E/(K*c))*(f/(tt*r)),Math.sqrt(o)}const Gd=75e-6;function Hi(d,T=d.space,{epsilon:F=Gd}={}){d=re(d),T=Vt.get(T);let K=d.coords;return T!==d.space&&(K=T.from(d)),T.inGamut(K,{epsilon:F})}function Ji(d){return{space:d.space,coords:d.coords.slice(),alpha:d.alpha}}function ci(d,{method:T=qe.gamut_mapping,space:F=d.space}={}){if(so(arguments[1])&&(F=arguments[1]),F=Vt.get(F),Hi(d,F,{epsilon:0}))return re(d);let K=_e(d,F);if(T!=="clip"&&!Hi(d,F)){let tt=ci(Ji(K),{method:"clip",space:F});if(Ir(d,tt)>2){let ot=Vt.resolveCoord(T),nt=ot.space,st=ot.id,pt=_e(K,nt),ut=(ot.range||ot.refRange)[0],ft=.01,B=ut,it=ze(pt,st);for(;it-B>ft;){let W=Ji(pt);W=ci(W,{space:F,method:"clip"}),Ir(pt,W)-2<ft?B=ze(pt,st):it=ze(pt,st),hi(pt,st,(B+it)/2)}K=_e(pt,F)}else K=tt}if(T==="clip"||!Hi(K,F,{epsilon:0})){let tt=Object.values(F.coords).map(ot=>ot.range||[]);K.coords=K.coords.map((ot,nt)=>{let[st,pt]=tt[nt];return st!==void 0&&(ot=Math.max(st,ot)),pt!==void 0&&(ot=Math.min(ot,pt)),ot})}return F!==d.space&&(K=_e(K,d.space)),d.coords=K.coords,d}ci.returns="color";function _e(d,T,{inGamut:F}={}){d=re(d),T=Vt.get(T);let K=T.from(d),tt={space:T,coords:K,alpha:d.alpha};return F&&(tt=ci(tt)),tt}_e.returns="color";function Wo(d,ot={}){var nt=ot,{precision:T=qe.precision,format:F="default",inGamut:K=!0}=nt,tt=Te(nt,["precision","format","inGamut"]);var ut,ft,B;let st;d=re(d);let pt=F;F=(ft=(ut=d.space.getFormat(F))!=null?ut:d.space.getFormat("default"))!=null?ft:Vt.DEFAULT_FORMAT,K||(K=F.toGamut);let ht=d.coords;if(ht=ht.map(it=>it||0),K&&!Hi(d)&&(ht=ci(Ji(d),K===!0?void 0:K).coords),F.type==="custom")if(tt.precision=T,F.serialize)st=F.serialize(ht,d.alpha,tt);else throw new TypeError(`format ${pt} can only be used to parse colors, not for serialization`);else{let it=F.name||"color";F.serializeCoords?ht=F.serializeCoords(ht,T):T!==null&&(ht=ht.map(V=>Ro(V,T)));let W=[...ht];if(it==="color"){let V=F.id||((B=F.ids)==null?void 0:B[0])||d.space.id;W.unshift(V)}let R=d.alpha;T!==null&&(R=Ro(R,T));let H=d.alpha<1&&!F.noAlpha?`${F.commas?",":" /"} ${R}`:"";st=`${it}(${W.join(F.commas?", ":" ")}${H})`}return st}const Wd=[[.6369580483012914,.14461690358620832,.1688809751641721],[.2627002120112671,.6779980715188708,.05930171646986196],[0,.028072693049087428,1.060985057710791]],Xd=[[1.716651187971268,-.355670783776392,-.25336628137366],[-.666684351832489,1.616481236634939,.0157685458139111],[.017639857445311,-.042770613257809,.942103121235474]];var ir=new Ee({id:"rec2020-linear",name:"Linear REC.2020",white:"D65",toXYZ_M:Wd,fromXYZ_M:Xd,formats:{color:{}}});const mo=1.09929682680944,cs=.018053968510807;var wl=new Ee({id:"rec2020",name:"REC.2020",base:ir,toBase(d){return d.map(function(T){return T<cs*4.5?T/4.5:Math.pow((T+mo-1)/mo,1/.45)})},fromBase(d){return d.map(function(T){return T>=cs?mo*Math.pow(T,.45)-(mo-1):4.5*T})},formats:{color:{}}});const Hd=[[.4865709486482162,.26566769316909306,.1982172852343625],[.2289745640697488,.6917385218365064,.079286914093745],[0,.04511338185890264,1.043944368900976]],Yd=[[2.493496911941425,-.9313836179191239,-.40271078445071684],[-.8294889695615747,1.7626640603183463,.023624685841943577],[.03584583024378447,-.07617238926804182,.9568845240076872]];var Sl=new Ee({id:"p3-linear",name:"Linear P3",white:"D65",toXYZ_M:Hd,fromXYZ_M:Yd});const Ud=[[.41239079926595934,.357584339383878,.1804807884018343],[.21263900587151027,.715168678767756,.07219231536073371],[.01933081871559182,.11919477979462598,.9505321522496607]],Vd=[[3.2409699419045226,-1.537383177570094,-.4986107602930034],[-.9692436362808796,1.8759675015077202,.04155505740717559],[.05563007969699366,-.20397695888897652,1.0569715142428786]];var Ml=new Ee({id:"srgb-linear",name:"Linear sRGB",white:"D65",toXYZ_M:Ud,fromXYZ_M:Vd,formats:{color:{}}}),ps={aliceblue:[240/255,248/255,1],antiquewhite:[250/255,235/255,215/255],aqua:[0,1,1],aquamarine:[127/255,1,212/255],azure:[240/255,1,1],beige:[245/255,245/255,220/255],bisque:[1,228/255,196/255],black:[0,0,0],blanchedalmond:[1,235/255,205/255],blue:[0,0,1],blueviolet:[138/255,43/255,226/255],brown:[165/255,42/255,42/255],burlywood:[222/255,184/255,135/255],cadetblue:[95/255,158/255,160/255],chartreuse:[127/255,1,0],chocolate:[210/255,105/255,30/255],coral:[1,127/255,80/255],cornflowerblue:[100/255,149/255,237/255],cornsilk:[1,248/255,220/255],crimson:[220/255,20/255,60/255],cyan:[0,1,1],darkblue:[0,0,139/255],darkcyan:[0,139/255,139/255],darkgoldenrod:[184/255,134/255,11/255],darkgray:[169/255,169/255,169/255],darkgreen:[0,100/255,0],darkgrey:[169/255,169/255,169/255],darkkhaki:[189/255,183/255,107/255],darkmagenta:[139/255,0,139/255],darkolivegreen:[85/255,107/255,47/255],darkorange:[1,140/255,0],darkorchid:[153/255,50/255,204/255],darkred:[139/255,0,0],darksalmon:[233/255,150/255,122/255],darkseagreen:[143/255,188/255,143/255],darkslateblue:[72/255,61/255,139/255],darkslategray:[47/255,79/255,79/255],darkslategrey:[47/255,79/255,79/255],darkturquoise:[0,206/255,209/255],darkviolet:[148/255,0,211/255],deeppink:[1,20/255,147/255],deepskyblue:[0,191/255,1],dimgray:[105/255,105/255,105/255],dimgrey:[105/255,105/255,105/255],dodgerblue:[30/255,144/255,1],firebrick:[178/255,34/255,34/255],floralwhite:[1,250/255,240/255],forestgreen:[34/255,139/255,34/255],fuchsia:[1,0,1],gainsboro:[220/255,220/255,220/255],ghostwhite:[248/255,248/255,1],gold:[1,215/255,0],goldenrod:[218/255,165/255,32/255],gray:[128/255,128/255,128/255],green:[0,128/255,0],greenyellow:[173/255,1,47/255],grey:[128/255,128/255,128/255],honeydew:[240/255,1,240/255],hotpink:[1,105/255,180/255],indianred:[205/255,92/255,92/255],indigo:[75/255,0,130/255],ivory:[1,1,240/255],khaki:[240/255,230/255,140/255],lavender:[230/255,230/255,250/255],lavenderblush:[1,240/255,245/255],lawngreen:[124/255,252/255,0],lemonchiffon:[1,250/255,205/255],lightblue:[173/255,216/255,230/255],lightcoral:[240/255,128/255,128/255],lightcyan:[224/255,1,1],lightgoldenrodyellow:[250/255,250/255,210/255],lightgray:[211/255,211/255,211/255],lightgreen:[144/255,238/255,144/255],lightgrey:[211/255,211/255,211/255],lightpink:[1,182/255,193/255],lightsalmon:[1,160/255,122/255],lightseagreen:[32/255,178/255,170/255],lightskyblue:[135/255,206/255,250/255],lightslategray:[119/255,136/255,153/255],lightslategrey:[119/255,136/255,153/255],lightsteelblue:[176/255,196/255,222/255],lightyellow:[1,1,224/255],lime:[0,1,0],limegreen:[50/255,205/255,50/255],linen:[250/255,240/255,230/255],magenta:[1,0,1],maroon:[128/255,0,0],mediumaquamarine:[102/255,205/255,170/255],mediumblue:[0,0,205/255],mediumorchid:[186/255,85/255,211/255],mediumpurple:[147/255,112/255,219/255],mediumseagreen:[60/255,179/255,113/255],mediumslateblue:[123/255,104/255,238/255],mediumspringgreen:[0,250/255,154/255],mediumturquoise:[72/255,209/255,204/255],mediumvioletred:[199/255,21/255,133/255],midnightblue:[25/255,25/255,112/255],mintcream:[245/255,1,250/255],mistyrose:[1,228/255,225/255],moccasin:[1,228/255,181/255],navajowhite:[1,222/255,173/255],navy:[0,0,128/255],oldlace:[253/255,245/255,230/255],olive:[128/255,128/255,0],olivedrab:[107/255,142/255,35/255],orange:[1,165/255,0],orangered:[1,69/255,0],orchid:[218/255,112/255,214/255],palegoldenrod:[238/255,232/255,170/255],palegreen:[152/255,251/255,152/255],paleturquoise:[175/255,238/255,238/255],palevioletred:[219/255,112/255,147/255],papayawhip:[1,239/255,213/255],peachpuff:[1,218/255,185/255],peru:[205/255,133/255,63/255],pink:[1,192/255,203/255],plum:[221/255,160/255,221/255],powderblue:[176/255,224/255,230/255],purple:[128/255,0,128/255],rebeccapurple:[102/255,51/255,153/255],red:[1,0,0],rosybrown:[188/255,143/255,143/255],royalblue:[65/255,105/255,225/255],saddlebrown:[139/255,69/255,19/255],salmon:[250/255,128/255,114/255],sandybrown:[244/255,164/255,96/255],seagreen:[46/255,139/255,87/255],seashell:[1,245/255,238/255],sienna:[160/255,82/255,45/255],silver:[192/255,192/255,192/255],skyblue:[135/255,206/255,235/255],slateblue:[106/255,90/255,205/255],slategray:[112/255,128/255,144/255],slategrey:[112/255,128/255,144/255],snow:[1,250/255,250/255],springgreen:[0,1,127/255],steelblue:[70/255,130/255,180/255],tan:[210/255,180/255,140/255],teal:[0,128/255,128/255],thistle:[216/255,191/255,216/255],tomato:[1,99/255,71/255],turquoise:[64/255,224/255,208/255],violet:[238/255,130/255,238/255],wheat:[245/255,222/255,179/255],white:[1,1,1],whitesmoke:[245/255,245/255,245/255],yellow:[1,1,0],yellowgreen:[154/255,205/255,50/255]};let ds=Array(3).fill("<percentage> | <number>[0, 255]"),us=Array(3).fill("<number>[0, 255]");var Qi=new Ee({id:"srgb",name:"sRGB",base:Ml,fromBase:d=>d.map(T=>{let F=T<0?-1:1,K=T*F;return K>.0031308?F*(1.055*Ft(K,1/2.4)-.055):12.92*T}),toBase:d=>d.map(T=>{let F=T<0?-1:1,K=T*F;return K<.04045?T/12.92:F*Ft((K+.055)/1.055,2.4)}),formats:{rgb:{coords:ds},rgb_number:{name:"rgb",commas:!0,coords:us,noAlpha:!0},color:{},rgba:{coords:ds,commas:!0,lastAlpha:!0},rgba_number:{name:"rgba",commas:!0,coords:us},hex:{type:"custom",toGamut:!0,test:d=>/^#([a-f0-9]{3,4}){1,2}$/i.test(d),parse(d){d.length<=5&&(d=d.replace(/[a-f0-9]/gi,"$&$&"));let T=[];return d.replace(/[a-f0-9]{2}/gi,F=>{T.push(parseInt(F,16)/255)}),{spaceId:"srgb",coords:T.slice(0,3),alpha:T.slice(3)[0]}},serialize:(d,T,{collapse:F=!0}={})=>{T<1&&d.push(T),d=d.map(ot=>Math.round(ot*255));let K=F&&d.every(ot=>ot%17===0);return"#"+d.map(ot=>K?(ot/17).toString(16):ot.toString(16).padStart(2,"0")).join("")}},keyword:{type:"custom",test:d=>/^[a-z]+$/i.test(d),parse(d){d=d.toLowerCase();let T={spaceId:"srgb",coords:null,alpha:1};if(d==="transparent"?(T.coords=ps.black,T.alpha=0):T.coords=ps[d],T.coords)return T}}}}),Al=new Ee({id:"p3",name:"P3",base:Sl,fromBase:Qi.fromBase,toBase:Qi.toBase,formats:{color:{id:"display-p3"}}});qe.display_space=Qi;if(typeof CSS!="undefined"&&CSS.supports)for(let d of[De,wl,Al]){let T=d.getMinCoords(),K=Wo({space:d,coords:T,alpha:1});if(CSS.supports("color",K)){qe.display_space=d;break}}function $d(d,K={}){var tt=K,{space:T=qe.display_space}=tt,F=Te(tt,["space"]);let ot=Wo(d,F);if(typeof CSS=="undefined"||CSS.supports("color",ot)||!qe.display_space)ot=new String(ot),ot.color=d;else{let nt=_e(d,T);ot=new String(Wo(nt,F)),ot.color=nt}return ot}function Tl(d,T,F="lab"){F=Vt.get(F);let K=F.from(d),tt=F.from(T);return Math.sqrt(K.reduce((ot,nt,st)=>{let pt=tt[st];return isNaN(nt)||isNaN(pt)?ot:ot+Ft(pt-nt,2)},0))}function Zd(d,T){return d=re(d),T=re(T),d.space===T.space&&d.alpha===T.alpha&&d.coords.every((F,K)=>F===T.coords[K])}function pi(d){return ze(d,[Re,"y"])}function kl(d,T){hi(d,[Re,"y"],T)}function Kd(d){Object.defineProperty(d.prototype,"luminance",{get(){return pi(this)},set(T){kl(this,T)}})}var qd=Object.freeze({__proto__:null,getLuminance:pi,register:Kd,setLuminance:kl});function Jd(d,T){d=re(d),T=re(T);let F=Math.max(pi(d),0),K=Math.max(pi(T),0);return K>F&&([F,K]=[K,F]),(F+.05)/(K+.05)}const Qd=.56,tu=.57,eu=.62,iu=.65,fs=.022,ou=1.414,ru=.1,nu=5e-4,su=1.14,gs=.027,au=1.14;function ms(d){return d>=fs?d:d+Ft(fs-d,ou)}function Si(d){let T=d<0?-1:1,F=Math.abs(d);return T*Math.pow(F,2.4)}function lu(d,T){T=re(T),d=re(d);let F,K,tt,ot,nt,st;T=_e(T,"srgb"),[ot,nt,st]=T.coords;let pt=Si(ot)*.2126729+Si(nt)*.7151522+Si(st)*.072175;d=_e(d,"srgb"),[ot,nt,st]=d.coords;let ht=Si(ot)*.2126729+Si(nt)*.7151522+Si(st)*.072175,ut=ms(pt),ft=ms(ht),B=ft>ut;return Math.abs(ft-ut)<nu?K=0:B?(F=Ft(ft,Qd)-Ft(ut,tu),K=F*su):(F=Ft(ft,iu)-Ft(ut,eu),K=F*au),Math.abs(K)<ru?tt=0:K>0?tt=K-gs:tt=K+gs,tt*100}function hu(d,T){d=re(d),T=re(T);let F=Math.max(pi(d),0),K=Math.max(pi(T),0);K>F&&([F,K]=[K,F]);let tt=F+K;return tt===0?0:(F-K)/tt}const cu=5e4;function pu(d,T){d=re(d),T=re(T);let F=Math.max(pi(d),0),K=Math.max(pi(T),0);return K>F&&([F,K]=[K,F]),K===0?cu:(F-K)/K}function du(d,T){d=re(d),T=re(T);let F=ze(d,[De,"l"]),K=ze(T,[De,"l"]);return Math.abs(F-K)}const uu=216/24389,ys=24/116,yo=24389/27;let fr=We.D65;var Nr=new Vt({id:"lab-d65",name:"Lab D65",coords:{l:{refRange:[0,100],name:"L"},a:{refRange:[-125,125]},b:{refRange:[-125,125]}},white:fr,base:Re,fromBase(d){let F=d.map((K,tt)=>K/fr[tt]).map(K=>K>uu?Math.cbrt(K):(yo*K+16)/116);return[116*F[1]-16,500*(F[0]-F[1]),200*(F[1]-F[2])]},toBase(d){let T=[];return T[1]=(d[0]+16)/116,T[0]=d[1]/500+T[1],T[2]=T[1]-d[2]/200,[T[0]>ys?Math.pow(T[0],3):(116*T[0]-16)/yo,d[0]>8?Math.pow((d[0]+16)/116,3):d[0]/yo,T[2]>ys?Math.pow(T[2],3):(116*T[2]-16)/yo].map((K,tt)=>K*fr[tt])},formats:{"lab-d65":{coords:["<number> | <percentage>","<number> | <percentage>[-1,1]","<number> | <percentage>[-1,1]"]}}});const gr=Math.pow(5,.5)*.5+.5;function fu(d,T){d=re(d),T=re(T);let F=ze(d,[Nr,"l"]),K=ze(T,[Nr,"l"]),tt=Math.abs(Math.pow(F,gr)-Math.pow(K,gr)),ot=Math.pow(tt,1/gr)*Math.SQRT2-40;return ot<7.5?0:ot}var Oo=Object.freeze({__proto__:null,contrastAPCA:lu,contrastDeltaPhi:fu,contrastLstar:du,contrastMichelson:hu,contrastWCAG21:Jd,contrastWeber:pu});function gu(d,T,F={}){so(F)&&(F={algorithm:F});let ot=F,{algorithm:K}=ot,tt=Te(ot,["algorithm"]);if(!K){let nt=Object.keys(Oo).map(st=>st.replace(/^contrast/,"")).join(", ");throw new TypeError(`contrast() function needs a contrast algorithm. Please specify one of: ${nt}`)}d=re(d),T=re(T);for(let nt in Oo)if("contrast"+K.toLowerCase()===nt.toLowerCase())return Oo[nt](d,T,tt);throw new TypeError(`Unknown contrast algorithm: ${K}`)}function Pl(d){let[T,F,K]=ao(d,Re),tt=T+15*F+3*K;return[4*T/tt,9*F/tt]}function Ll(d){let[T,F,K]=ao(d,Re),tt=T+F+K;return[T/tt,F/tt]}function mu(d){Object.defineProperty(d.prototype,"uv",{get(){return Pl(this)}}),Object.defineProperty(d.prototype,"xy",{get(){return Ll(this)}})}var yu=Object.freeze({__proto__:null,register:mu,uv:Pl,xy:Ll});function vu(d,T){return Tl(d,T,"lab")}const bu=Math.PI,vs=bu/180;function xu(d,T,{l:F=2,c:K=1}={}){let[tt,ot,nt]=De.from(d),[,st,pt]=qi.from(De,[tt,ot,nt]),[ht,ut,ft]=De.from(T),B=qi.from(De,[ht,ut,ft])[1];st<0&&(st=0),B<0&&(B=0);let it=tt-ht,W=st-B,R=ot-ut,H=nt-ft,V=Ft(R,2)+Ft(H,2)-Ft(W,2),$=.511;tt>=16&&($=.040975*tt/(1+.01765*tt));let Z=.0638*st/(1+.0131*st)+.638,U;Number.isNaN(pt)&&(pt=0),pt>=164&&pt<=345?U=.56+Math.abs(.2*Math.cos((pt+168)*vs)):U=.36+Math.abs(.4*Math.cos((pt+35)*vs));let z=Math.pow(st,4),I=Math.sqrt(z/(z+1900)),E=Z*(I*U+1-I),M=Ft(it/(F*$),2);return M+=Ft(W/(K*Z),2),M+=V/Ft(E,2),Math.sqrt(M)}const bs=203;var Tn=new Vt({id:"xyz-abs-d65",name:"Absolute XYZ D65",coords:{x:{refRange:[0,9504.7],name:"Xa"},y:{refRange:[0,1e4],name:"Ya"},z:{refRange:[0,10888.3],name:"Za"}},base:Re,fromBase(d){return d.map(T=>Math.max(T*bs,0))},toBase(d){return d.map(T=>Math.max(T/bs,0))}});const vo=1.15,bo=.66,xs=2610/Ft(2,14),Cu=Ft(2,14)/2610,Cs=3424/Ft(2,12),ws=2413/Ft(2,7),Ss=2392/Ft(2,7),wu=1.7*2523/Ft(2,5),Ms=Ft(2,5)/(1.7*2523),xo=-.56,mr=16295499532821565e-27,Su=[[.41478972,.579999,.014648],[-.20151,1.120649,.0531008],[-.0166008,.2648,.6684799]],Mu=[[1.9242264357876067,-1.0047923125953657,.037651404030618],[.35031676209499907,.7264811939316552,-.06538442294808501],[-.09098281098284752,-.3127282905230739,1.5227665613052603]],Au=[[.5,.5,0],[3.524,-4.066708,.542708],[.199076,1.096799,-1.295875]],Tu=[[1,.1386050432715393,.05804731615611886],[.9999999999999999,-.1386050432715393,-.05804731615611886],[.9999999999999998,-.09601924202631895,-.8118918960560388]];var El=new Vt({id:"jzazbz",name:"Jzazbz",coords:{jz:{refRange:[0,1],name:"Jz"},az:{refRange:[-.5,.5]},bz:{refRange:[-.5,.5]}},base:Tn,fromBase(d){let[T,F,K]=d,tt=vo*T-(vo-1)*K,ot=bo*F-(bo-1)*T,st=ge(Su,[tt,ot,K]).map(function(B){let it=Cs+ws*Ft(B/1e4,xs),W=1+Ss*Ft(B/1e4,xs);return Ft(it/W,wu)}),[pt,ht,ut]=ge(Au,st);return[(1+xo)*pt/(1+xo*pt)-mr,ht,ut]},toBase(d){let[T,F,K]=d,tt=(T+mr)/(1+xo-xo*(T+mr)),nt=ge(Tu,[tt,F,K]).map(function(B){let it=Cs-Ft(B,Ms),W=Ss*Ft(B,Ms)-ws;return 1e4*Ft(it/W,Cu)}),[st,pt,ht]=ge(Mu,nt),ut=(st+(vo-1)*ht)/vo,ft=(pt+(bo-1)*ut)/bo;return[ut,ft,ht]},formats:{color:{}}}),Br=new Vt({id:"jzczhz",name:"JzCzHz",coords:{jz:{refRange:[0,1],name:"Jz"},cz:{refRange:[0,1],name:"Chroma"},hz:{refRange:[0,360],type:"angle",name:"Hue"}},base:El,fromBase(d){let[T,F,K]=d,tt;const ot=2e-4;return Math.abs(F)<ot&&Math.abs(K)<ot?tt=NaN:tt=Math.atan2(K,F)*180/Math.PI,[T,Math.sqrt(Ft(F,2)+Ft(K,2)),er(tt)]},toBase(d){return[d[0],d[1]*Math.cos(d[2]*Math.PI/180),d[1]*Math.sin(d[2]*Math.PI/180)]},formats:{color:{}}});function ku(d,T){let[F,K,tt]=Br.from(d),[ot,nt,st]=Br.from(T),pt=F-ot,ht=K-nt;Number.isNaN(tt)&&Number.isNaN(st)?(tt=0,st=0):Number.isNaN(tt)?tt=st:Number.isNaN(st)&&(st=tt);let ut=tt-st,ft=2*Math.sqrt(K*nt)*Math.sin(ut/2*(Math.PI/180));return Math.sqrt(Ft(pt,2)+Ft(ht,2)+Ft(ft,2))}const Ol=3424/4096,Dl=2413/128,jl=2392/128,As=2610/16384,Pu=2523/32,Lu=16384/2610,Ts=32/2523,Eu=[[.3592,.6976,-.0358],[-.1922,1.1004,.0755],[.007,.0749,.8434]],Ou=[[2048/4096,2048/4096,0],[6610/4096,-13613/4096,7003/4096],[17933/4096,-17390/4096,-543/4096]],Du=[[.9999888965628402,.008605050147287059,.11103437159861648],[1.00001110343716,-.008605050147287059,-.11103437159861648],[1.0000320633910054,.56004913547279,-.3206339100541203]],ju=[[2.0701800566956137,-1.326456876103021,.20661600684785517],[.3649882500326575,.6804673628522352,-.04542175307585323],[-.04959554223893211,-.04942116118675749,1.1879959417328034]];var _r=new Vt({id:"ictcp",name:"ICTCP",coords:{i:{refRange:[0,1],name:"I"},ct:{refRange:[-.5,.5],name:"CT"},cp:{refRange:[-.5,.5],name:"CP"}},base:Tn,fromBase(d){let T=ge(Eu,d);return Iu(T)},toBase(d){let T=Nu(d);return ge(ju,T)},formats:{color:{}}});function Iu(d){let T=d.map(function(F){let K=Ol+Dl*Ft(F/1e4,As),tt=1+jl*Ft(F/1e4,As);return Ft(K/tt,Pu)});return ge(Ou,T)}function Nu(d){return ge(Du,d).map(function(K){let tt=Math.max(Ft(K,Ts)-Ol,0),ot=Dl-jl*Ft(K,Ts);return 1e4*Ft(tt/ot,Lu)})}function Bu(d,T){let[F,K,tt]=_r.from(d),[ot,nt,st]=_r.from(T);return 720*Math.sqrt(Ft(F-ot,2)+.25*Ft(K-nt,2)+Ft(tt-st,2))}const _u=[[.8190224432164319,.3619062562801221,-.12887378261216414],[.0329836671980271,.9292868468965546,.03614466816999844],[.048177199566046255,.26423952494422764,.6335478258136937]],Ru=[[1.2268798733741557,-.5578149965554813,.28139105017721583],[-.04057576262431372,1.1122868293970594,-.07171106666151701],[-.07637294974672142,-.4214933239627914,1.5869240244272418]],zu=[[.2104542553,.793617785,-.0040720468],[1.9779984951,-2.428592205,.4505937099],[.0259040371,.7827717662,-.808675766]],Fu=[[.9999999984505198,.39633779217376786,.2158037580607588],[1.0000000088817609,-.10556134232365635,-.06385417477170591],[1.0000000546724108,-.08948418209496575,-1.2914855378640917]];var Xo=new Vt({id:"oklab",name:"Oklab",coords:{l:{refRange:[0,1],name:"L"},a:{refRange:[-.4,.4]},b:{refRange:[-.4,.4]}},white:"D65",base:Re,fromBase(d){let F=ge(_u,d).map(K=>Math.cbrt(K));return ge(zu,F)},toBase(d){let F=ge(Fu,d).map(K=>Ft(K,3));return ge(Ru,F)},formats:{oklab:{coords:["<percentage> | <number>","<number> | <percentage>[-1,1]","<number> | <percentage>[-1,1]"]}}});function Gu(d,T){let[F,K,tt]=Xo.from(d),[ot,nt,st]=Xo.from(T),pt=F-ot,ht=K-nt,ut=tt-st;return Math.sqrt(Ft(pt,2)+Ft(ht,2)+Ft(ut,2))}var Ho={deltaE76:vu,deltaECMC:xu,deltaE2000:Ir,deltaEJz:ku,deltaEITP:Bu,deltaEOK:Gu};function Xi(d,T,F={}){so(F)&&(F={method:F});let ot=F,{method:K=qe.deltaE}=ot,tt=Te(ot,["method"]);d=re(d),T=re(T);for(let nt in Ho)if("deltae"+K.toLowerCase()===nt.toLowerCase())return Ho[nt](d,T,tt);throw new TypeError(`Unknown deltaE method: ${K}`)}function Wu(d,T=.25){let K=[Vt.get("oklch","lch"),"l"];return hi(d,K,tt=>tt*(1+T))}function Xu(d,T=.25){let K=[Vt.get("oklch","lch"),"l"];return hi(d,K,tt=>tt*(1-T))}var Hu=Object.freeze({__proto__:null,darken:Xu,lighten:Wu});function Il(d,T,F=.5,K={}){[d,T]=[re(d),re(T)],si(F)==="object"&&([F,K]=[.5,F]);let{space:tt,outputSpace:ot,premultiplied:nt}=K;return lo(d,T,{space:tt,outputSpace:ot,premultiplied:nt})(F)}function Nl(d,T,F={}){let K;kn(d)&&([K,F]=[d,T],[d,T]=K.rangeArgs.colors);let B=F,{maxDeltaE:tt,deltaEMethod:ot,steps:nt=2,maxSteps:st=1e3}=B,pt=Te(B,["maxDeltaE","deltaEMethod","steps","maxSteps"]);K||([d,T]=[re(d),re(T)],K=lo(d,T,pt));let ht=Xi(d,T),ut=tt>0?Math.max(nt,Math.ceil(ht/tt)+1):nt,ft=[];if(st!==void 0&&(ut=Math.min(ut,st)),ut===1)ft=[{p:.5,color:K(.5)}];else{let it=1/(ut-1);ft=Array.from({length:ut},(W,R)=>{let H=R*it;return{p:H,color:K(H)}})}if(tt>0){let it=ft.reduce((W,R,H)=>{if(H===0)return 0;let V=Xi(R.color,ft[H-1].color,ot);return Math.max(W,V)},0);for(;it>tt;){it=0;for(let W=1;W<ft.length&&ft.length<st;W++){let R=ft[W-1],H=ft[W],V=(H.p+R.p)/2,$=K(V);it=Math.max(it,Xi($,R.color),Xi($,H.color)),ft.splice(W,0,{p:V,color:K(V)}),W++}}}return ft=ft.map(it=>it.color),ft}function lo(d,T,F={}){if(kn(d)){let[pt,ht]=[d,T];return lo(...pt.rangeArgs.colors,kt(kt({},pt.rangeArgs.options),ht))}let{space:K,outputSpace:tt,progression:ot,premultiplied:nt}=F;d=re(d),T=re(T),d=Ji(d),T=Ji(T);let st={colors:[d,T],options:F};if(K?K=Vt.get(K):K=Vt.registry[qe.interpolationSpace]||d.space,tt=tt?Vt.get(tt):K,d=_e(d,K),T=_e(T,K),d=ci(d),T=ci(T),K.coords.h&&K.coords.h.type==="angle"){let pt=F.hue=F.hue||"shorter",ht=[K,"h"],[ut,ft]=[ze(d,ht),ze(T,ht)];[ut,ft]=Fd(pt,[ut,ft]),hi(d,ht,ut),hi(T,ht,ft)}return nt&&(d.coords=d.coords.map(pt=>pt*d.alpha),T.coords=T.coords.map(pt=>pt*T.alpha)),Object.assign(pt=>{pt=ot?ot(pt):pt;let ht=d.coords.map((B,it)=>{let W=T.coords[it];return zo(B,W,pt)}),ut=zo(d.alpha,T.alpha,pt),ft={space:K,coords:ht,alpha:ut};return nt&&(ft.coords=ft.coords.map(B=>B/ut)),tt!==K&&(ft=_e(ft,tt)),ft},{rangeArgs:st})}function kn(d){return si(d)==="function"&&!!d.rangeArgs}qe.interpolationSpace="lab";function Yu(d){d.defineFunction("mix",Il,{returns:"color"}),d.defineFunction("range",lo,{returns:"function<color>"}),d.defineFunction("steps",Nl,{returns:"array<color>"})}var Uu=Object.freeze({__proto__:null,isRange:kn,mix:Il,range:lo,register:Yu,steps:Nl}),Bl=new Vt({id:"hsl",name:"HSL",coords:{h:{refRange:[0,360],type:"angle",name:"Hue"},s:{range:[0,100],name:"Saturation"},l:{range:[0,100],name:"Lightness"}},base:Qi,fromBase:d=>{let T=Math.max(...d),F=Math.min(...d),[K,tt,ot]=d,[nt,st,pt]=[NaN,0,(F+T)/2],ht=T-F;if(ht!==0){switch(st=pt===0||pt===1?0:(T-pt)/Math.min(pt,1-pt),T){case K:nt=(tt-ot)/ht+(tt<ot?6:0);break;case tt:nt=(ot-K)/ht+2;break;case ot:nt=(K-tt)/ht+4}nt=nt*60}return[nt,st*100,pt*100]},toBase:d=>{let[T,F,K]=d;T=T%360,T<0&&(T+=360),F/=100,K/=100;function tt(ot){let nt=(ot+T/30)%12,st=F*Math.min(K,1-K);return K-st*Math.max(-1,Math.min(nt-3,9-nt,1))}return[tt(0),tt(8),tt(4)]},formats:{hsl:{toGamut:!0,coords:["<number> | <angle>","<percentage>","<percentage>"]},hsla:{coords:["<number> | <angle>","<percentage>","<percentage>"],commas:!0,lastAlpha:!0}}}),_l=new Vt({id:"hsv",name:"HSV",coords:{h:{refRange:[0,360],type:"angle",name:"Hue"},s:{range:[0,100],name:"Saturation"},v:{range:[0,100],name:"Value"}},base:Bl,fromBase(d){let[T,F,K]=d;F/=100,K/=100;let tt=K+F*Math.min(K,1-K);return[T,tt===0?0:200*(1-K/tt),100*tt]},toBase(d){let[T,F,K]=d;F/=100,K/=100;let tt=K*(1-F/2);return[T,tt===0||tt===1?0:(K-tt)/Math.min(tt,1-tt)*100,tt*100]},formats:{color:{toGamut:!0}}}),Vu=new Vt({id:"hwb",name:"HWB",coords:{h:{refRange:[0,360],type:"angle",name:"Hue"},w:{range:[0,100],name:"Whiteness"},b:{range:[0,100],name:"Blackness"}},base:_l,fromBase(d){let[T,F,K]=d;return[T,K*(100-F)/100,100-K]},toBase(d){let[T,F,K]=d;F/=100,K/=100;let tt=F+K;if(tt>=1){let st=F/tt;return[T,0,st*100]}let ot=1-K,nt=ot===0?0:1-F/ot;return[T,nt*100,ot*100]},formats:{hwb:{toGamut:!0,coords:["<number> | <angle>","<percentage>","<percentage>"]}}});const $u=[[.5766690429101305,.1855582379065463,.1882286462349947],[.29734497525053605,.6273635662554661,.07529145849399788],[.02703136138641234,.07068885253582723,.9913375368376388]],Zu=[[2.0415879038107465,-.5650069742788596,-.34473135077832956],[-.9692436362808795,1.8759675015077202,.04155505740717557],[.013444280632031142,-.11836239223101838,1.0151749943912054]];var Rl=new Ee({id:"a98rgb-linear",name:"Linear Adobe® 98 RGB compatible",white:"D65",toXYZ_M:$u,fromXYZ_M:Zu}),Ku=new Ee({id:"a98rgb",name:"Adobe® 98 RGB compatible",base:Rl,toBase:d=>d.map(T=>Math.pow(Math.abs(T),563/256)*Math.sign(T)),fromBase:d=>d.map(T=>Math.pow(Math.abs(T),256/563)*Math.sign(T)),formats:{color:{id:"a98-rgb"}}});const qu=[[.7977604896723027,.13518583717574031,.0313493495815248],[.2880711282292934,.7118432178101014,8565396060525902e-20],[0,0,.8251046025104601]],Ju=[[1.3457989731028281,-.25558010007997534,-.05110628506753401],[-.5446224939028347,1.5082327413132781,.02053603239147973],[0,0,1.2119675456389454]];var zl=new Ee({id:"prophoto-linear",name:"Linear ProPhoto",white:"D50",base:An,toXYZ_M:qu,fromXYZ_M:Ju});const Qu=1/512,tf=16/512;var ef=new Ee({id:"prophoto",name:"ProPhoto",base:zl,toBase(d){return d.map(T=>T<tf?T/16:Ft(T,1.8))},fromBase(d){return d.map(T=>T>=Qu?Ft(T,1/1.8):16*T)},formats:{color:{id:"prophoto-rgb"}}}),of=new Vt({id:"oklch",name:"Oklch",coords:{l:{refRange:[0,1],name:"Lightness"},c:{refRange:[0,.4],name:"Chroma"},h:{refRange:[0,360],type:"angle",name:"Hue"}},white:"D65",base:Xo,fromBase(d){let[T,F,K]=d,tt;const ot=2e-4;return Math.abs(F)<ot&&Math.abs(K)<ot?tt=NaN:tt=Math.atan2(K,F)*180/Math.PI,[T,Math.sqrt(Ft(F,2)+Ft(K,2)),er(tt)]},toBase(d){let[T,F,K]=d,tt,ot;return isNaN(K)?(tt=0,ot=0):(tt=F*Math.cos(K*Math.PI/180),ot=F*Math.sin(K*Math.PI/180)),[T,tt,ot]},formats:{oklch:{coords:["<number> | <percentage>","<number> | <percentage>[0,1]","<number> | <angle>"]}}});const ks=203,Ps=2610/Ft(2,14),rf=Ft(2,14)/2610,nf=2523/Ft(2,5),Ls=Ft(2,5)/2523,Es=3424/Ft(2,12),Os=2413/Ft(2,7),Ds=2392/Ft(2,7);var sf=new Ee({id:"rec2100pq",name:"REC.2100-PQ",base:ir,toBase(d){return d.map(function(T){return Ft(Math.max(Ft(T,Ls)-Es,0)/(Os-Ds*Ft(T,Ls)),rf)*1e4/ks})},fromBase(d){return d.map(function(T){let F=Math.max(T*ks/1e4,0),K=Es+Os*Ft(F,Ps),tt=1+Ds*Ft(F,Ps);return Ft(K/tt,nf)})},formats:{color:{id:"rec2100-pq"}}});const js=.17883277,Is=.28466892,Ns=.55991073,yr=3.7743;var af=new Ee({id:"rec2100hlg",cssid:"rec2100-hlg",name:"REC.2100-HLG",referred:"scene",base:ir,toBase(d){return d.map(function(T){return T<=.5?Ft(T,2)/3*yr:(Math.exp((T-Ns)/js)+Is)/12*yr})},fromBase(d){return d.map(function(T){return T/=yr,T<=1/12?Math.sqrt(3*T):js*Math.log(12*T-Is)+Ns})},formats:{color:{id:"rec2100-hlg"}}});const Fl={};li.add("chromatic-adaptation-start",d=>{d.options.method&&(d.M=Gl(d.W1,d.W2,d.options.method))});li.add("chromatic-adaptation-end",d=>{d.M||(d.M=Gl(d.W1,d.W2,d.options.method))});function or({id:d,toCone_M:T,fromCone_M:F}){Fl[d]=arguments[0]}function Gl(d,T,F="Bradford"){let K=Fl[F],[tt,ot,nt]=ge(K.toCone_M,d),[st,pt,ht]=ge(K.toCone_M,T),ut=[[st/tt,0,0],[0,pt/ot,0],[0,0,ht/nt]],ft=ge(ut,K.toCone_M);return ge(K.fromCone_M,ft)}or({id:"von Kries",toCone_M:[[.40024,.7076,-.08081],[-.2263,1.16532,.0457],[0,0,.91822]],fromCone_M:[[1.8599364,-1.1293816,.2198974],[.3611914,.6388125,-64e-7],[0,0,1.0890636]]});or({id:"Bradford",toCone_M:[[.8951,.2664,-.1614],[-.7502,1.7135,.0367],[.0389,-.0685,1.0296]],fromCone_M:[[.9869929,-.1470543,.1599627],[.4323053,.5183603,.0492912],[-.0085287,.0400428,.9684867]]});or({id:"CAT02",toCone_M:[[.7328,.4296,-.1624],[-.7036,1.6975,.0061],[.003,.0136,.9834]],fromCone_M:[[1.0961238,-.278869,.1827452],[.454369,.4735332,.0720978],[-.0096276,-.005698,1.0153256]]});or({id:"CAT16",toCone_M:[[.401288,.650173,-.051461],[-.250268,1.204414,.045854],[-.002079,.048952,.953127]],fromCone_M:[[1.862067855087233,-1.011254630531685,.1491867754444518],[.3875265432361372,.6214474419314753,-.008973985167612518],[-.01584149884933386,-.03412293802851557,1.04996443687785]]});Object.assign(We,{A:[1.0985,1,.35585],C:[.98074,1,1.18232],D55:[.95682,1,.92149],D75:[.94972,1,1.22638],E:[1,1,1],F2:[.99186,1,.67393],F7:[.95041,1,1.08747],F11:[1.00962,1,.6435]});We.ACES=[.32168/.33767,1,(1-.32168-.33767)/.33767];const lf=[[.6624541811085053,.13400420645643313,.1561876870049078],[.27222871678091454,.6740817658111484,.05368951740793705],[-.005574649490394108,.004060733528982826,1.0103391003129971]],hf=[[1.6410233796943257,-.32480329418479,-.23642469523761225],[-.6636628587229829,1.6153315916573379,.016756347685530137],[.011721894328375376,-.008284441996237409,.9883948585390215]];var Wl=new Ee({id:"acescg",name:"ACEScg",coords:{r:{range:[0,65504],name:"Red"},g:{range:[0,65504],name:"Green"},b:{range:[0,65504],name:"Blue"}},referred:"scene",white:We.ACES,toXYZ_M:lf,fromXYZ_M:hf,formats:{color:{}}});const Co=Ft(2,-16),vr=-.35828683,wo=(Math.log2(65504)+9.72)/17.52;var cf=new Ee({id:"acescc",name:"ACEScc",coords:{r:{range:[vr,wo],name:"Red"},g:{range:[vr,wo],name:"Green"},b:{range:[vr,wo],name:"Blue"}},referred:"scene",base:Wl,toBase(d){const T=-.3013698630136986;return d.map(function(F){return F<=T?(Ft(2,F*17.52-9.72)-Co)*2:F<wo?Ft(2,F*17.52-9.72):65504})},fromBase(d){return d.map(function(T){return T<=0?(Math.log2(Co)+9.72)/17.52:T<Co?(Math.log2(Co+T*.5)+9.72)/17.52:(Math.log2(T)+9.72)/17.52})},formats:{color:{}}}),Bs=Object.freeze({__proto__:null,A98RGB:Ku,A98RGB_Linear:Rl,ACEScc:cf,ACEScg:Wl,HSL:Bl,HSV:_l,HWB:Vu,ICTCP:_r,JzCzHz:Br,Jzazbz:El,LCH:qi,Lab:De,Lab_D65:Nr,OKLCH:of,OKLab:Xo,P3:Al,P3_Linear:Sl,ProPhoto:ef,ProPhoto_Linear:zl,REC_2020:wl,REC_2020_Linear:ir,REC_2100_HLG:af,REC_2100_PQ:sf,XYZ_ABS_D65:Tn,XYZ_D50:An,XYZ_D65:Re,sRGB:Qi,sRGB_Linear:Ml});class ee{constructor(...T){let F;T.length===1&&(F=re(T[0]));let K,tt,ot;F?(K=F.space||F.spaceId,tt=F.coords,ot=F.alpha):[K,tt,ot]=T,Object.defineProperty(this,"space",{value:Vt.get(K),writable:!1,enumerable:!0,configurable:!0}),this.coords=tt?tt.slice():[0,0,0],this.alpha=ot<1?ot:1;for(let nt=0;nt<this.coords.length;nt++)this.coords[nt]==="NaN"&&(this.coords[nt]=NaN);for(let nt in this.space.coords)Object.defineProperty(this,nt,{get:()=>this.get(nt),set:st=>this.set(nt,st)})}get spaceId(){return this.space.id}clone(){return new ee(this.space,this.coords,this.alpha)}toJSON(){return{spaceId:this.spaceId,coords:this.coords,alpha:this.alpha}}display(...T){let F=$d(this,...T);return F.color=new ee(F.color),F}static get(T,...F){return T instanceof ee?T:new ee(T,...F)}static defineFunction(T,F,K=F){let{instance:tt=!0,returns:ot}=K,nt=function(...st){let pt=F(...st);if(ot==="color")pt=ee.get(pt);else if(ot==="function<color>"){let ht=pt;pt=function(...ut){let ft=ht(...ut);return ee.get(ft)},Object.assign(pt,ht)}else ot==="array<color>"&&(pt=pt.map(ht=>ee.get(ht)));return pt};T in ee||(ee[T]=nt),tt&&(ee.prototype[T]=function(...st){return nt(this,...st)})}static defineFunctions(T){for(let F in T)ee.defineFunction(F,T[F],T[F])}static extend(T){if(T.register)T.register(ee);else for(let F in T)ee.defineFunction(F,T[F])}}ee.defineFunctions({get:ze,getAll:ao,set:hi,setAll:Cl,to:_e,equals:Zd,inGamut:Hi,toGamut:ci,distance:Tl,toString:Wo});Object.assign(ee,{util:Nd,hooks:li,WHITES:We,Space:Vt,spaces:Vt.registry,parse:xl,defaults:qe});for(let d of Object.keys(Bs))Vt.register(Bs[d]);for(let d in Vt.registry)Rr(d,Vt.registry[d]);li.add("colorspace-init-end",d=>{var T;Rr(d.id,d),(T=d.aliases)==null||T.forEach(F=>{Rr(F,d)})});function Rr(d,T){Object.values(T.coords).map(K=>K.name);let F=d.replace(/-/g,"_");Object.defineProperty(ee.prototype,F,{get(){let K=this.getAll(d);return typeof Proxy=="undefined"?K:new Proxy(K,{has:(tt,ot)=>{try{return Vt.resolveCoord([T,ot]),!0}catch(nt){}return Reflect.has(tt,ot)},get:(tt,ot,nt)=>{if(ot&&typeof ot!="symbol"&&!(ot in tt)){let{index:st}=Vt.resolveCoord([T,ot]);if(st>=0)return tt[st]}return Reflect.get(tt,ot,nt)},set:(tt,ot,nt,st)=>{if(ot&&typeof ot!="symbol"&&!(ot in tt)||ot>=0){let{index:pt}=Vt.resolveCoord([T,ot]);if(pt>=0)return tt[pt]=nt,this.setAll(d,tt),!0}return Reflect.set(tt,ot,nt,st)}})},set(K){this.setAll(d,K)},configurable:!0,enumerable:!0})}ee.extend(Ho);ee.extend({deltaE:Xi});Object.assign(ee,{deltaEMethods:Ho});ee.extend(Hu);ee.extend({contrast:gu});ee.extend(yu);ee.extend(qd);ee.extend(Uu);ee.extend(Oo);const pf=.15,Xe=d=>typeof d=="string"?new ee(d):d,ti=d=>d.toString({format:"hex"}),Xl=(...d)=>{const T=d.map(Xe);if(T.length<2)return()=>ti(T[0]);const K=T.slice(0,-1).map((tt,ot)=>[tt,T[ot+1]]).map(([tt,ot])=>{const nt=ee.range(tt,ot,{outputSpace:"srgb"});return st=>ti(nt(st))});return tt=>{if(tt<=0)return ti(T[0]);if(tt>=1)return ti(T[T.length-1]);const ot=Math.floor(tt*K.length);return K[ot](tt*K.length-ot)}},df=(d,...T)=>{const F=T.map(Xe);if(F.length<2)return Array(d).fill(ti(F[0]));const K=Xl(...F);return Array(d).fill(0).map((tt,ot)=>K(ot/(d-1)))},Hl=d=>ti(Xe(d).set("hsl.s",0)),uf=(d,T)=>ti(ee.mix(d,T,.5,{outputSpace:"srgb"})),ff=(d,T)=>Math.abs(Xe(T).hsl.h-Xe(d).hsl.h),to=(d,T)=>{const F=Xe(d);return F.hsv.v=F.hsv.v+F.hsv.v*T,F.hsv.v>100&&(F.hsv.s=F.hsv.s-(F.hsv.v-100)/1.677),F.hsv.s=Math.max(0,Math.min(100,F.hsv.s)),F.hsv.v=Math.max(0,Math.min(100,F.hsv.v)),ti(F)},Yl=d=>({R:d.srgb[0]*255,G:d.srgb[1]*255,B:d.srgb[2]*255}),ho=d=>{const{R:T,G:F,B:K}=Yl(d);return 1-(.299*T+.587*F+.114*K)/255};function gf(d){return ho(d)<.9}const mf=(d,T=.05,F=1)=>{const K=Xe(d),{R:tt,G:ot,B:nt}=Yl(K),st=ho(K);let pt=T;gf(K)&&(pt*=-.6),pt*=Math.exp(st*1.2);const ht=Math.min(Math.max(Math.round(255*pt)+tt,0),255),ut=Math.min(Math.max(Math.round(255*pt)+ot,0),255),ft=Math.min(Math.max(Math.round(255*pt)+nt,0),255);return`rgba(${ht}, ${ut}, ${ft}, ${F})`},Ul=(d,T)=>{const F=Xe(d);return F.alpha=T,ti(F)},yf=(d,T,F)=>ee.steps(new ee(d),new ee(T),{steps:F}).map(K=>new ee(K).to("srgb").toString());function vf(d){return T=>{var ht,ut,ft;const{steps:F,minColor:K,maxColor:tt}=d,ot=(ht=d.minValue)!=null?ht:Math.min(...T),nt=(ut=d.maxValue)!=null?ut:Math.max(...T),st=(ft=d.midValue)!=null?ft:ot<0&&nt>0?0:(ot+nt)/2,pt=Vl(K!=null?K:_o,tt!=null?tt:_o,ot,st,nt,F);return B=>pt(B)}}const Vl=(d,T,F,K,tt,ot=0)=>{const nt=Cf(F,K,tt),st=ff(d,T)>90?[d,Hl(uf(d,T)),T]:[d,T];return ot<=0?bf(nt,st):xf(nt,ot,st)},bf=(d,T)=>{const F=Xl(...T);return K=>F(d(K))},xf=(d,T,F)=>{const K=df(T,...F);return tt=>{const ot=Math.floor(d(tt)*T);return K[Math.min(Math.max(ot,0),T-1)]}},Cf=(d,T,F)=>K=>K==d&&K==F?.5:K<T?.5*((K-d)/(T-d)):.5+.5*(K-T)/(F-T);function $l(d){let T;switch(typeof d=="string"?T=Sn(d):T=d,T.type){case"uniform":return{type:"Static",getColor:Dd(T)};case"conditional":return{type:"Absolute",getColor:jd(T)};case"range":return{type:"Relative",getColor:vf(T)}}}const Pn=d=>{const{getValueFromDataStructure:T,applyColorToDataStructure:F}=d;return(K,tt)=>{const ot=$l(tt);let nt;switch(ot.type){case"Static":nt=()=>ot.getColor();break;case"Absolute":nt=st=>ot.getColor(st);break;case"Relative":{const st=K.map(T),pt=ot.getColor(st);nt=ht=>pt(ht);break}}return K.map(st=>{const pt=T(st),ht=nt(pt);return F(st,ht)})}},wf=Pn({getValueFromDataStructure:d=>d.value,applyColorToDataStructure:(d,T)=>Nt(kt({},d),{color:T})}),Zl=({x:d,y:T,breakBy:F})=>ql(T)&&Kl(d)&&F.length===0,Sf=({x:d,y:T,breakBy:F})=>Kl(d)&&ql(T)&&F.length>0,Kl=d=>d.length===0,ql=d=>d.length>0,Mf=(d,T)=>d*(T/100),Af=(d,T)=>d===0?0:Math.abs(T)/Math.abs(d)*100,Do=d=>`${d}%`,zr=(d,T)=>{var ft;if(T.rows.length===0)return{type:"cartesian",series:[],xValues:[],xAxisCount:0};const F=d.x.length;let K=Ki(T,d.x.map(({column:{name:B}})=>B));K=K.map((B,it)=>Nt(kt({},B),{direction:Jl(d.x[it].sortType)}));const tt=Ki(T,d.breakBy.map(({column:{name:B}})=>B)),ot=d.y.filter(({sortType:B})=>B&&B!=="sortNone"),nt=K.length>1?1:0,st=Ql(T,ot,K,((ft=K[nt])==null?void 0:ft.direction)===0?bn:void 0),pt=d.y.map(({column:{name:B}})=>B),ht=d.breakBy.length>0?Lf(T,st,K,pt[0],tt,d.breakBy):Tf(T,st,K,pt,d.y);return Nt(kt({},ht),{xAxisCount:F,type:"cartesian"})},Jl=d=>{switch(d){case"sortNone":return 0;case"sortDesc":return-1;case"sortAsc":default:return 1}},Ql=(d,T,F,K)=>{if(F.length===0)return[{key:"",xValues:[""],rawValues:[]}];const tt=T.map(({column:{name:ft}})=>({column:ft,agg:"sum",title:ft}));if(K){const ft={column:K,title:K,agg:"min"};tt.push(ft)}const ot=hl(d,F,tt),nt=[];let st=0;if(F.length===2){st=1;const B=ni(ot,F[0].name);B&&nt.push(B)}if(T.map(ft=>{const B=ni(ot,ft.column.name);return B&&nt.push(Nt(kt({},B),{direction:ft.sortType==="sortAsc"?1:-1})),ft}),K){const ft=ni(ot,K);ft&&nt.push(ft)}if(F.length>0){const ft=ni(ot,F[st].name);ft&&nt.push(ft)}const pt=ll(ot,nt),ht=Ki(pt,F.map(ft=>ft.name)),ut=cl(pt,ht);return ut.rows.map(ft=>{const B=Oi(ft,ut.columns),it=B.map(V=>V.displayValue),W=B.map(V=>{var $;return($=V.rawValue)!=null?$:V.displayValue}),R=B.map(V=>{var $;return($=V==null?void 0:V.compareValue)==null?void 0:$.value});return{key:W.join(","),xValues:it,rawValues:W,compareValues:R}})},th=(d,T,F)=>{var nt,st;const K=F?pl(d,F):1e-5,{color:tt,rawValue:ot}=(st=d[(nt=F==null?void 0:F.index)!=null?nt:0])!=null?st:{};return kt({rawValue:ot,xValue:T.rawValues,xDisplayValue:T.xValues,xCompareValue:T.compareValues,value:K===void 0?NaN:K,blur:F?dl(d,F):void 0},tt&&{color:tt})},Tf=(d,T,F,K,tt)=>{const ot=K.length>0?Ki(d,K):[void 0],nt=tt.reduce((ht,ut)=>(ht[ut.column.name]=ut,ht),{}),st=Cn(d.rows,F),pt=ot.map(ht=>{var W,R;let ut=T.map(H=>{const V=st[H.key],$=V?V[0]:[];return th($,H,ht)});const ft=(W=ht==null?void 0:ht.name)!=null?W:"",B=ft?xe(nt[ft]):"",it=(R=nt[ft])==null?void 0:R.color;return it&&(ut=wf(ut,it)),{name:ft,title:B,data:ut}});return{xValues:T,series:pt}},kf=(d,T,F)=>Oi(d,T).map((K,tt)=>{const ot=he(F[tt].numberFormatConfig);return Rt.isNumber(T[tt].type)?Ce(ot,parseFloat(K.displayValue)):K.displayValue}).join(","),Pf=(d,T)=>Oi(d,T).map(({rawValue:F})=>F),Lf=(d,T,F,K,tt,ot)=>{const nt=ni(d,K),ht=xn(d.rows,tt).map(ut=>{const ft=ut[0];return{seriesName:kf(ft,tt,ot),seriesValues:Pf(ft,tt),rowsByXColumns:Cn(ut,F)}}).map(ut=>{const ft=T.map(B=>{const it=ut.rowsByXColumns[B.key],W=it?it[0]:[];return th(W,B,nt)});return{name:ut.seriesName,data:ft,custom:{rawValue:ut.seriesValues}}});return{xValues:T,series:ht}},He=(d,T)=>{var K;const F=d==null?void 0:d.filter(tt=>tt);return(K=F&&F[T%F.length])!=null?K:Od[T%10]};var Ef=function(T){return Of(T)&&!Df(T)};function Of(d){return!!d&&typeof d=="object"}function Df(d){var T=Object.prototype.toString.call(d);return T==="[object RegExp]"||T==="[object Date]"||Nf(d)}var jf=typeof Symbol=="function"&&Symbol.for,If=jf?Symbol.for("react.element"):60103;function Nf(d){return d.$$typeof===If}function Bf(d){return Array.isArray(d)?[]:{}}function eo(d,T){return T.clone!==!1&&T.isMergeableObject(d)?ki(Bf(d),d,T):d}function _f(d,T,F){return d.concat(T).map(function(K){return eo(K,F)})}function Rf(d,T){if(!T.customMerge)return ki;var F=T.customMerge(d);return typeof F=="function"?F:ki}function zf(d){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(d).filter(function(T){return Object.propertyIsEnumerable.call(d,T)}):[]}function _s(d){return Object.keys(d).concat(zf(d))}function eh(d,T){try{return T in d}catch(F){return!1}}function Ff(d,T){return eh(d,T)&&!(Object.hasOwnProperty.call(d,T)&&Object.propertyIsEnumerable.call(d,T))}function Gf(d,T,F){var K={};return F.isMergeableObject(d)&&_s(d).forEach(function(tt){K[tt]=eo(d[tt],F)}),_s(T).forEach(function(tt){Ff(d,tt)||(eh(d,tt)&&F.isMergeableObject(T[tt])?K[tt]=Rf(tt,F)(d[tt],T[tt],F):K[tt]=eo(T[tt],F))}),K}function ki(d,T,F){F=F||{},F.arrayMerge=F.arrayMerge||_f,F.isMergeableObject=F.isMergeableObject||Ef,F.cloneUnlessOtherwiseSpecified=eo;var K=Array.isArray(T),tt=Array.isArray(d),ot=K===tt;return ot?K?F.arrayMerge(d,T,F):Gf(d,T,F):eo(T,F)}ki.all=function(T,F){if(!Array.isArray(T))throw new Error("first argument should be an array");return T.reduce(function(K,tt){return ki(K,tt,F)},{})};var Wf=ki,Xf=Wf;const Be=Jr(Xf),ih=d=>typeof d=="object"&&d!==null&&"type"in d&&d.type==="linear",oh=d=>typeof d=="object"&&d!==null&&"type"in d&&d.type==="radial",rh=d=>ih(d)||oh(d),Hf={topToBottom:{x1:0,y1:0,x2:0,y2:1},bottomToTop:{x1:0,y1:1,x2:0,y2:0},leftToRight:{x1:0,y1:0,x2:1,y2:0},rightToLeft:{x1:1,y1:0,x2:0,y2:0},diagonalTopLeft:{x1:0,y1:0,x2:1,y2:1},diagonalTopRight:{x1:1,y1:0,x2:0,y2:1}},Yf={center:{centerX:.5,centerY:.5,radius:.8},topLeft:{centerX:0,centerY:0,radius:1},topRight:{centerX:1,centerY:0,radius:1},bottomLeft:{centerX:0,centerY:1,radius:1},bottomRight:{centerX:1,centerY:1,radius:1}},Uf=(d,T)=>({type:"linear",direction:d,stops:T}),Vf=(d,T)=>({type:"radial",center:d,stops:T}),nh=d=>d.type==="linear"?{linearGradient:{x1:d.direction.x1,y1:d.direction.y1,x2:d.direction.x2,y2:d.direction.y2},stops:d.stops.map(T=>[T.position,T.color])}:{radialGradient:{cx:d.center.centerX,cy:d.center.centerY,r:d.center.radius},stops:d.stops.map(T=>[T.position,T.color])},$f=d=>{if(d.linearGradient)return{type:"linear",direction:{x1:d.linearGradient.x1,y1:d.linearGradient.y1,x2:d.linearGradient.x2,y2:d.linearGradient.y2},stops:d.stops.map(([T,F])=>({position:T,color:F}))};if(d.radialGradient)return{type:"radial",center:{centerX:d.radialGradient.cx,centerY:d.radialGradient.cy,radius:d.radialGradient.r},stops:d.stops.map(([T,F])=>({position:T,color:F}))};throw new Error("Invalid inner gradient format: must have either linearGradient or radialGradient")},vi=d=>rh(d)?nh(d):d;function Zf(d){return typeof d!="object"||d===null||Array.isArray(d)||d instanceof Date||d instanceof RegExp||d instanceof Function?!0:Object.keys(d).length>0}function bi(d){if(d==null)return d;if(Array.isArray(d))return d.filter(T=>T!==void 0).map(T=>bi(T)).filter(T=>typeof T=="object"&&T!==null&&!Array.isArray(T)?Object.keys(T).length>0:!0);if(typeof d=="object"){if(d instanceof Date||d instanceof RegExp||d instanceof Function)return d;const T={};for(const[F,K]of Object.entries(d)){if(K===void 0)continue;const tt=bi(K);Zf(tt)&&(T[F]=tt)}return T}return d}const Kf={fontSize:"13px",fontWeight:"normal",textOutline:"none",pointerEvents:"auto"},qf=d=>{switch(d){case"bottom":return{enabled:!0,align:"center",verticalAlign:"bottom",layout:"horizontal"};case"left":return{enabled:!0,align:"left",verticalAlign:"middle",layout:"vertical"};case"right":return{enabled:!0,align:"right",verticalAlign:"middle",layout:"vertical"};case"top":return{enabled:!0,align:"center",verticalAlign:"top",layout:"horizontal"};default:return{enabled:!0,align:"center",verticalAlign:"bottom",layout:"horizontal"}}},Jf=d=>{if((d==null?void 0:d.enabled)===!1||!d)return;const{text:T,textStyle:F}=d;return{title:{text:T,style:F}}},Qf=d=>{if(!d)return;const{layout:T,textStyle:F,marginBottom:K,marginTop:tt,distance:ot,width:nt,hoverTextStyle:st,hiddenTextStyle:pt}=d||{};return{layout:T,itemStyle:F,itemMarginBottom:K,itemMarginTop:tt,itemDistance:ot,itemWidth:nt,itemHoverStyle:st,itemHiddenStyle:pt}},tg=d=>{if(!d)return;const{radius:T,height:F,width:K,padding:tt,squared:ot}=d;return{symbolRadius:T,symbolHeight:F,symbolWidth:K,symbolPadding:tt,squareSymbol:ot}},eg=d=>{const ht=d,{title:T,items:F,symbols:K,xOffset:tt,yOffset:ot,backgroundColor:nt,borderColor:st}=ht,pt=Te(ht,["title","items","symbols","xOffset","yOffset","backgroundColor","borderColor"]);return bi(Nt(kt(kt(kt(kt({},pt),Jf(T)),Qf(F)),tg(K)),{x:tt,y:ot,backgroundColor:vi(nt),borderColor:vi(st)}))},ui=d=>{const T={enabled:!1,symbolRadius:0,backgroundColor:"transparent",borderColor:"transparent",borderWidth:0,align:"center",verticalAlign:"bottom",layout:"horizontal"};if(!d)return T;const nt=d,{position:F}=nt,K=Te(nt,["position"]),tt=qf(F||null),ot=eg(K);return bi(Nt(kt(kt(kt({},T),tt),ot),{itemStyle:kt(kt({},Kf),ot.itemStyle)}))},Ln=d=>{var T;return(d==null?void 0:d.position)==="right"||(d==null?void 0:d.align)==="right"&&((T=d==null?void 0:d.items)==null?void 0:T.layout)==="vertical"&&(d==null?void 0:d.verticalAlign)==="middle"},Ae="#d1d1d7",sh=25,ah=[-10,-20,-30,-40,-50,-60,-70,-80,-90],we={fontSize:"13px",fontWeight:"normal",textOutline:"none",pointerEvents:"none"},io={fontSize:"13px",textOverflow:"ellipsis",pointerEvents:"none",textOutline:"none",fontWeight:"bold"},Fr={labels:{overflow:"none",enabled:!0,autoRotation:ah,style:we},tickmarkPlacement:"on",title:{text:"",enabled:!1,margin:sh,style:we},gridLineDashStyle:"Dot",minorGridLineWidth:0,startOnTick:!1,endOnTick:!1,lineColor:Ae,lineWidth:1,tickColor:Ae,minorTickColor:Ae,gridLineColor:Ae,minorGridLineColor:Ae},Rs={labels:{autoRotation:ah,style:we},tickmarkPlacement:"on",startOnTick:!0,endOnTick:!0,title:{text:"",margin:sh,enabled:!1,style:we},gridLineWidth:1,minorTickWidth:0,tickWidth:0,minorGridLineWidth:0,gridLineDashStyle:"Dot",lineColor:Ae,lineWidth:1,tickColor:Ae,minorTickColor:Ae,gridLineColor:Ae,minorGridLineColor:Ae,minorGridLineDashStyle:"Dot",stackLabels:{style:io,crop:!0,allowOverlap:!1,enabled:!1,rotation:0,labelrank:99999,x:0,y:0},showLastLabel:!0},ig=(d,T,F)=>{switch(d){case"line":return fi;case"area":return Be(fi,zs(F));case"bar":return Be(fi,rg(F));case"column":return Be(fi,og(F));case"polar":return Be(fi,ng(T));case"arearange":return Be(fi,zs(F));default:return fi}},fi={chart:{type:"line",spacing:[],alignTicks:!1,polar:!1},legend:ui(),credits:{enabled:!1},exporting:{enabled:!0},plotOptions:{area:{className:"area-series--without-pointer-events",states:{inactive:{enabled:!0,opacity:.3}}},series:{dataLabels:{enabled:!1,crop:!1,style:Nt(kt({},we),{textOutline:"none"})},stickyTracking:!1,states:{select:{color:null,opacity:.3,borderColor:"transparent"}}}},xAxis:[],yAxis:[],series:[],boost:{useGPUTranslations:!0,usePreAllocated:!0}},zs=d=>({plotOptions:{area:kt({},d&&{lineColor:"#ffffff"}),series:kt({},d&&{stacking:d})}}),og=d=>({plotOptions:{column:kt({groupPadding:.1,pointPadding:.01},d&&{borderWidth:0}),series:kt({},d&&{stacking:d})}}),rg=d=>({plotOptions:{bar:kt({groupPadding:.1,pointPadding:.01},d&&{borderWidth:0}),series:kt({},d&&{stacking:d})}});function ng(d){return{plotOptions:{series:Nt(kt({},d!=="line"&&{stacking:"normal"}),{fillOpacity:1})}}}const lh={enabled:!0,showCategories:!0,showValue:!0,showPercent:!0,showDecimals:!1},hh="regular",ch="regular",ph="regular",sg=d=>d!=="regular",Fs=()=>({allowPointSelect:!1,cursor:"pointer",showInLegend:!0,dataLabels:{enabled:!1,funnelMinimumFontSizeToTextLabel:8,align:"center",style:we},reversed:!0,neckWidth:dg,neckHeight:0,width:dh}),ag=()=>({dataLabels:{enabled:!1}}),lg=d=>{const{enabled:T,showCategories:F,showValue:K,showPercent:tt}=d;return{enabled:T&&[F,K,tt].find(Boolean)!==void 0}},hg=(d,T)=>T.showCategories?d.point.name||d.series.name:"",cg=(d,T,F)=>{if(!T.showValue)return"";const K=Ce(F,d.y);return T.showValue&&T.showCategories?`<br />${K}`:K},pg=(d,T)=>{var tt,ot;if(!T.showPercent)return"";const F=((ot=(tt=d.point)==null?void 0:tt.custom)==null?void 0:ot.number1)||0,K=T.showDecimals?F.toFixed(1):`${Math.round(F)}`;return` <b>${Do(K)}</b>`},dh=66.6,dg=15,ug=d=>dh,fg={wide:60,regular:30,narrow:15},gg=(d,T)=>Math.round(Mf(d,fg[T])),mg=d=>d==="pinched"?30:0,uh=(d,T,F)=>{var ft;const{funnelType:K=ch,funnelSize:tt=hh,funnelDirection:ot=ph,funnelLabels:nt=lh}=d,st=Nt(kt({},ag()),{dataLabels:lg(nt)}),pt=he((ft=T.y[0])==null?void 0:ft.numberFormatConfig),ht=ug();return{funnel:Nt(kt({},Fs()),{dataLabels:Nt(kt(kt({},Fs().dataLabels),F?{color:F.chart.textColor,style:{fontFamily:F.typography.fontFamily}}:null),{enabled:nt.enabled&&(nt.showCategories||nt.showValue||nt.showPercent),formatter:function(){const B=hg(this,nt),it=cg(this,nt,pt),W=pg(this,nt);return`${B}${it}${W}`}}),reversed:sg(ot),neckWidth:Do(gg(ht,tt)),neckHeight:Do(mg(K)),width:Do(ht)}),series:st}},Ve=d=>{var W;const{rotation:T,alignInside:F,align:K,verticalAlign:tt,textStyle:ot,backgroundColor:nt,borderColor:st,borderRadius:pt,borderWidth:ht,padding:ut,xOffset:ft,yOffset:B,delay:it}=d!=null?d:{};return bi({enabled:(W=d==null?void 0:d.enabled)!=null?W:!1,rotation:T,inside:F,align:K,verticalAlign:tt,style:ot,backgroundColor:vi(nt),borderColor:vi(st),borderRadius:pt,borderWidth:ht,padding:ut,x:ft,y:B,animation:{defer:it}})},yg={enabled:!0,showCategory:!0,showValue:!0,percentageLabels:{enabled:!0,showDecimals:!1}},fh="classic",vg={classic:"0%",donut:"40%",ring:"80%"},bg=()=>({allowPointSelect:!1,showInLegend:!0,dataLabels:{enabled:!1,showPercentLabels:!1,showDecimals:!1,pieMinimumFontSizeToTextLabel:8,align:"center",style:we},innerSize:"0%"}),xg=()=>({dataLabels:{enabled:!1}}),gh=(d=fh,T=yg,F,K)=>{var nt,st,pt,ht,ut;const tt=bg(),ot=xg();if(tt.innerSize=vg[d],K&&(tt.dataLabels.style={color:K.chart.textColor,fontFamily:K.typography.fontFamily,textOutline:"none"}),T.enabled){const ft=he((nt=F.y[0])==null?void 0:nt.numberFormatConfig),B=T.enabled&&(T.showCategory||T.showValue),it=Ve(T);tt.dataLabels=Nt(kt(kt({},tt.dataLabels),it),{enabled:B,style:kt(kt({},tt.dataLabels.style),it.style),formatter:function(){var H,V;const W=this.point.name||this.series.name,R=this.y;return"<div>"+((H=T.prefix)!=null?H:"")+(T.showCategory?W:"")+(T.showCategory&&T.showValue?"<br />":"")+(T.showValue?Ce(ft,R):"")+((V=T.suffix)!=null?V:"")+"</div>"},showPercentLabels:(pt=(st=T==null?void 0:T.percentageLabels)==null?void 0:st.enabled)!=null?pt:!1,showDecimals:(ut=(ht=T==null?void 0:T.percentageLabels)==null?void 0:ht.showDecimals)!=null?ut:!1})}return ot.dataLabels&&(ot.dataLabels.enabled=T.enabled),{pie:tt,series:ot}};function En(){}function di(d,T){this.__wrapped__=d,this.__actions__=[],this.__chain__=!!T,this.__index__=0,this.__values__=void 0}di.prototype=Rt.baseCreate(En.prototype);di.prototype.constructor=di;var Gr=Rt.WeakMap&&new Rt.WeakMap;function mh(){}var On=Gr?function(d){return Gr.get(d)}:mh,Gs={},Cg=Object.prototype,wg=Cg.hasOwnProperty;function jo(d){for(var T=d.name+"",F=Gs[T],K=wg.call(Gs,T)?F.length:0;K--;){var tt=F[K],ot=tt.func;if(ot==null||ot==d)return tt.name}return T}var Sg=4294967295;function Pi(d){this.__wrapped__=d,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=Sg,this.__views__=[]}Pi.prototype=Rt.baseCreate(En.prototype);Pi.prototype.constructor=Pi;function Mg(d){if(d instanceof Pi)return d.clone();var T=new di(d.__wrapped__,d.__chain__);return T.__actions__=Rt.copyArray(d.__actions__),T.__index__=d.__index__,T.__values__=d.__values__,T}var Ag=Object.prototype,Tg=Ag.hasOwnProperty;function Yo(d){if(Rt.isObjectLike(d)&&!Rt.isArray(d)&&!(d instanceof Pi)){if(d instanceof di)return d;if(Tg.call(d,"__wrapped__"))return Mg(d)}return new di(d)}Yo.prototype=En.prototype;Yo.prototype.constructor=Yo;function Wr(d){var T=jo(d),F=Yo[T];if(typeof F!="function"||!(T in Pi.prototype))return!1;if(d===F)return!0;var K=On(F);return!!K&&d===K[0]}var kg="Expected a function",Pg=8,Lg=32,Eg=128,Og=256;function Dg(d){return Rt.flatRest(function(T){for(var F=T.length,K=F,tt=di.prototype.thru;K--;){var ot=T[K];if(typeof ot!="function")throw new TypeError(kg);if(tt&&!nt&&jo(ot)=="wrapper")var nt=new di([],!0)}for(K=nt?K:F;++K<F;){ot=T[K];var st=jo(ot),pt=st=="wrapper"?On(ot):void 0;pt&&Wr(pt[0])&&pt[1]==(Eg|Pg|Lg|Og)&&!pt[4].length&&pt[9]==1?nt=nt[jo(pt[0])].apply(nt,pt[3]):nt=ot.length==1&&Wr(ot)?nt[st]():nt.thru(ot)}return function(){var ht=arguments,ut=ht[0];if(nt&&ht.length==1&&Rt.isArray(ut))return nt.plant(ut).value();for(var ft=0,B=F?T[ft].apply(this,ht):ut;++ft<F;)B=T[ft].call(this,B);return B}})}var rr=Dg();const yh=d=>d.compareValues?d.compareValues[0]:NaN,Dn=d=>{if(d!==void 0){switch(d){case Rt.DateLevels.Years:return"yyyy";case Rt.DateLevels.Quarters:return"yyyy Q";case Rt.DateLevels.Months:return"MM/yyyy";case Rt.DateLevels.Weeks:return"ww yyyy";case Rt.DateLevels.Days:return"M/d/yy";case Rt.DateLevels.AggHours:return"HH";case Rt.DateLevels.Hours:return"M/d/yy HH";case Rt.DateLevels.AggMinutesRoundTo30:return"HH:mm";case Rt.DateLevels.MinutesRoundTo30:return"HH:mm";case Rt.DateLevels.AggMinutesRoundTo15:return"HH:mm";case Rt.DateLevels.MinutesRoundTo15:return"HH:mm";case Rt.DateLevels.AggMinutesRoundTo1:return"HH:mm";case Rt.DateLevels.Minutes:return"HH:mm";case Rt.DateLevels.Seconds:return"HH:mm:ss"}return console.warn("Unsupported level"),"M/d/yy HH"}};var Xr={exports:{}};/*! For license information please see index.js.LICENSE.txt */(function(d,T){(function(F,K){d.exports=K()})(self,()=>(()=>{var F={50:function(ot,nt,st){var pt=this&&this.__importDefault||function(ut){return ut&&ut.__esModule?ut:{default:ut}};Object.defineProperty(nt,"__esModule",{value:!0});var ht=pt(st(4501));nt.default=function(ut){var ft,B,it=ut.objectEach,W=ut.pick,R="legend-hovered",H=document.documentElement.ontouchstart!==void 0;function V(){clearTimeout(ft),clearTimeout(B),ft=null,B=null}ut.wrap(ut.Legend.prototype,"renderItem",function($,Z){$.call(this,Z);var U=Z.chart?Z.chart:Z.series.chart,z=!!Z.series,I=U.options.$familyType==="pie",E=z?["graphic"]:["group","markerGroup"],M=Z.legendItem.group.element,P=z?Z.series.points:this.chart.series;function y(S){var x=[];return(S.yAxis||[]).forEach(function(c){c.options.stackLabels&&!c.options.stackLabels.allowOverlap&&it(c.stacking.stacks,function(g){it(g,function(r){r&&r.label&&(r.label.isStackLabel=!0),x.push(r.label)})})}),x}function h(){if(B=null,!ft){var S=w(Z),x={totalsRank:Number.MIN_SAFE_INTEGER};v(Z),m(S,x)}}function f(){ft=null,B||function(S){var x=[],c=[],g={totalsRank:Number.MIN_SAFE_INTEGER};(U.series||[]).forEach(function(a){x=x.concat(w(a)),a!==S&&a.visible&&v(a)});var r=y(U);m(c=c.concat(x,r),g)}(Z)}function m(S,x){U.hideOverlappingLabels(S,x)}function u(S){(U.series||[]).forEach(function(x){x===S&&(x.dataLabelCollections||["dataLabel"]).forEach(function(c){x.points.forEach(function(g){var r=g[String(c)];r&&r.visibility!=="hidden"&&(r.prevOpacity=r.opacity,r.opacitySetter(0,"opacity",r.element),r.prevVisibility=r.visibility,r.visibilitySetter("hidden","visibility",r.element))})})})}function v(S){var x=S.xAxis,c=x==null?void 0:x.min,g=x==null?void 0:x.max;(U.series||[]).forEach(function(r){r===S&&(r.dataLabelCollections||["dataLabel"]).forEach(function(a){r.points.forEach(function(t){var i=t[String(a)];x&&(t.x<c||t.x>g)||i&&i.visibility==="hidden"&&(i.prevOpacity=i.opacity,i.opacitySetter(1,"opacity",i.element),i.prevVisibility=i.visibility,i.visibilitySetter("visible","visibility",i.element))})})})}function w(S){var x=[],c=S.options.dataLabels,g=S.dataLabelCollections||["dataLabel","dataLabelsGroup"];return c&&(c.enabled||S._hasPointLabels)&&!c.allowOverlap&&S.visible&&g.forEach(function(r){S.points&&S.points.forEach(function(a){a[r]&&(a[r].labelrank=W(a.labelrank,a.shapeArgs&&a.shapeArgs.height),x.push(a[r]))})}),x}(0,ht.default)(P)&&(P=[]),H||(M.onmouseover=function(){if(Z.visible){V();var S=z&&Z.series.halo;S&&S.attr({d:"M 0 0"}),P.forEach(function(x){x!==Z&&x.visible&&(E.forEach(function(c){x[c]&&x[c].animate({opacity:.15},{duration:400})}),u(x))}),E.forEach(function(x){Z[x]&&Z[x].addClass(R)}),I||(B=setTimeout(h,100))}},M.onmouseout=function(){Z.visible&&(V(),P.forEach(function(S){S.visible&&S!==Z&&E.forEach(function(x){S[x]&&S[x].animate({opacity:1},{duration:400})})}),E.forEach(function(S){Z[S]&&Z[S].removeClass(R)}),I||(ft=setTimeout(f,100)))},M.addEventListener("click",function(){V();var S=[];P.forEach(function(c){c.visible?(E.forEach(function(g){c[g]&&c[g].animate({opacity:1},{duration:50})}),S=S.concat(w(c))):(E.forEach(function(g){c[g]&&c[g].animate({opacity:.25},{duration:150})}),u(c))});var x=y(U);m(S=S.concat(x))}))})}},123:(ot,nt,st)=>{st.d(nt,{A:()=>z});var pt=st(405);const ht=st(9600).A["__core-js_shared__"];var ut,ft=(ut=/[^.]+$/.exec(ht&&ht.keys&&ht.keys.IE_PROTO||""))?"Symbol(src)_1."+ut:"",B=st(7942),it=st(1548),W=/^\[object .+?Constructor\]$/,R=Function.prototype,H=Object.prototype,V=R.toString,$=H.hasOwnProperty,Z=RegExp("^"+V.call($).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");const U=function(I){return!(!(0,B.A)(I)||(E=I,ft&&ft in E))&&((0,pt.A)(I)?Z:W).test((0,it.A)(I));var E},z=function(I,E){var M=function(P,y){return P==null?void 0:P[y]}(I,E);return U(M)?M:void 0}},362:function(ot,nt,st){var pt=this&&this.__importDefault||function(ut){return ut&&ut.__esModule?ut:{default:ut}};Object.defineProperty(nt,"__esModule",{value:!0}),nt.default=void 0;var ht=st(807);Object.defineProperty(nt,"default",{enumerable:!0,get:function(){return pt(ht).default}})},368:function(ot,nt,st){var pt=this&&this.__assign||function(){return pt=Object.assign||function(V){for(var $,Z=1,U=arguments.length;Z<U;Z++)for(var z in $=arguments[Z])Object.prototype.hasOwnProperty.call($,z)&&(V[z]=$[z]);return V},pt.apply(this,arguments)},ht=this&&this.__importDefault||function(V){return V&&V.__esModule?V:{default:V}};Object.defineProperty(nt,"__esModule",{value:!0});var ut=ht(st(605)),ft=ht(st(710)),B=ht(st(9681)),it=ht(st(9170)),W=ht(st(6545)),R={enabled:!1,text:"Sisense",href:"http://www.sisense.com",position:{align:"right",x:-10,verticalAlign:"bottom",y:-5},style:{cursor:"pointer",color:ut.default.textColor,fontSize:"9px"}},H=pt({boost:{allowForce:!0,debug:{showSkipSummary:!0,timeBufferCopy:!0,timeKDTree:!0,timeRendering:!0,timeSeriesProcessing:!0,timeSetup:!0},enabled:!0,seriesThreshold:null,useGPUTranslations:!0},chart:{spacing:[10,10,10,10],backgroundColor:"rgba(222,222,222,0)"},credits:R,drilldown:{breadcrumbs:{buttonTheme:{fill:"#ffcb05","stroke-width":4,"stroke-linejoin":"round",stroke:"#ffcb05",padding:5,states:{hover:{fill:"#f2b900",stroke:"#f2b900"}},style:{color:"#3a4356"}},format:"Back",floating:!0,position:{align:"right"},showFullPath:!1}},exporting:{enabled:!1},global:{useUTC:!1},lang:{contextButtonTitle:"Chart context menu",decimalPoint:".",downloadJPEG:"Download JPEG image",downloadPDF:"Download PDF document",downloadPNG:"Download PNG image",downloadSVG:"Download SVG vector image",drillUpText:"Back",invalidDate:"",loading:"Loading...",months:["January","February","March","April","May","June","July","August","September","October","November","December"],noData:"No data to display",numericSymbolMagnitude:1e3,numericSymbols:["k","M","G","T","P","E"],printChart:"Print chart",resetZoom:"Reset zoom",resetZoomTitle:"Reset zoom level 1:1",shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],shortWeekdays:void 0,thousandsSep:" ",weekdays:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},legend:B.default,navigator:{yAxis:{gridLineWidth:0},xAxis:{gridLineWidth:0}},plotOptions:it.default,title:{margin:0},tooltip:ft.default},W.default);nt.default=H},405:(ot,nt,st)=>{st.d(nt,{A:()=>ut});var pt=st(4044),ht=st(7942);const ut=function(ft){if(!(0,ht.A)(ft))return!1;var B=(0,pt.A)(ft);return B=="[object Function]"||B=="[object GeneratorFunction]"||B=="[object AsyncFunction]"||B=="[object Proxy]"}},605:(ot,nt)=>{Object.defineProperty(nt,"__esModule",{value:!0}),nt.default={fontFamily:"Open Sans",textColor:"#5B6372",labelColor:"#5B6372",legendColor:"#5B6372",legendNavigationColor:"#5B6372",legendNavigationSecondaryColor:"#9EA2AB"}},622:function(ot,nt,st){var pt=this&&this.__importDefault||function(ut){return ut&&ut.__esModule?ut:{default:ut}};Object.defineProperty(nt,"__esModule",{value:!0}),nt.arrayMax=nt.arrayMin=nt.correctFloat=nt.radiansToDegrees=nt.defined=nt.wrap=void 0;var ht=pt(st(8552));nt.wrap=function(ut,ft,B){var it=ut[ft];ut[ft]=function(){var W=Array.prototype.slice.call(arguments);return W.unshift(it),B.apply(this,W)}},nt.defined=function(ut,ft){return ft===void 0||ft==="null"||ft===""?ut!=null:(0,ht.default)(ut,ft)!==void 0},nt.radiansToDegrees=function(ut){return 180*ut/Math.PI},nt.correctFloat=function(ut){return parseFloat(ut.toPrecision(14))},nt.arrayMin=function(ut){for(var ft=ut.length,B=ut[0];ft--;)ut[ft]<B&&(B=ut[ft]);return B},nt.arrayMax=function(ut){for(var ft=ut.length,B=ut[0];ft--;)ut[ft]>B&&(B=ut[ft]);return B}},710:function(ot,nt,st){var pt=this&&this.__importDefault||function(ut){return ut&&ut.__esModule?ut:{default:ut}};Object.defineProperty(nt,"__esModule",{value:!0});var ht=pt(st(2805));nt.default=ht.default},807:function(ot,nt,st){var pt=this&&this.__importDefault||function(ft){return ft&&ft.__esModule?ft:{default:ft}};Object.defineProperty(nt,"__esModule",{value:!0});var ht=pt(st(5860)),ut=pt(st(2382));nt.default=function(ft){var B=ft.wrap;function it(W){this.hasCartesianSeries&&this.series.forEach(function(R){R.options&&R.options.stacking==="percent"&&(R.userOptions.data.forEach(function(H){H&&(H.originalY=H.y,H.y=Math.abs(H.y))}),R.yData=R.yData.map(Math.abs))}),W.apply(this,[].slice.call(arguments,1))}(0,ut.default)(ft),B(ft.Chart.prototype,"render",it),B(ft.Chart.prototype,"redraw",it),ft.Axis.prototype.renderUnsquish=function(){var W,R,H,V,$,Z=this.chart,U=Z.renderer,z=this.tickPositions,I=this.ticks,E=this.options.labels,M=E.style,P=this.horiz,y=this.getSlotWidth(),h=Math.max(1,Math.round(y-2*E.padding)),f={},m=this.labelMetrics(),u=M.textOverflow,v=0;if((0,ht.default)(E.rotation)||(f.rotation=E.rotation||0),z.forEach(function(w){var S=I[w];S.movedLabel&&S.replaceMovedLabel(),S&&S.label&&S.label.textPxLength>v&&(v=S.label.textPxLength)}),this.maxLabelLength=v,this.autoRotation)v>h&&v>m.h?f.rotation=this.labelRotation:this.labelRotation=0;else if(y&&(W=h,!u))for(R="clip",V=z.length;!P&&V--;)$=z[V],(H=I[$].label)&&(H.styles&&H.styles.textOverflow==="ellipsis"?H.css({textOverflow:"clip"}):H.textPxLength>y&&H.css({width:y+"px"}),H.getBBox().height>this.len/z.length-(m.h-m.f)&&(H.specificTextOverflow="ellipsis"));f.rotation&&(W=v>.33*Z.chartHeight?.28*Z.chartHeight:v,u||(R="ellipsis")),this.labelAlign=E.align||this.autoLabelAlign(this.labelRotation),this.labelAlign&&(f.align=this.labelAlign),z.forEach(function(w){var S=I[w],x=S&&S.label,c=M.width,g={};x&&(x.attr(f),S.shortenLabel?S.shortenLabel():W&&!c&&M.whiteSpace!=="nowrap"&&(W<x.textPxLength||x.element.tagName==="SPAN")?(g.width=W+"px",u||(g.textOverflow=x.specificTextOverflow||R),x.css(g)):x.styles&&x.styles.width&&!g.width&&!c&&x.css({width:null}),delete x.specificTextOverflow,S.rotation=f.rotation)},this),this.tickRotCorr=U.rotCorr(m.b,this.labelRotation||0,this.side!==0)}}},938:function(ot,nt,st){var pt=this&&this.__createBinding||(Object.create?function(B,it,W,R){R===void 0&&(R=W);var H=Object.getOwnPropertyDescriptor(it,W);H&&!("get"in H?!it.__esModule:H.writable||H.configurable)||(H={enumerable:!0,get:function(){return it[W]}}),Object.defineProperty(B,R,H)}:function(B,it,W,R){R===void 0&&(R=W),B[R]=it[W]}),ht=this&&this.__exportStar||function(B,it){for(var W in B)W==="default"||Object.prototype.hasOwnProperty.call(it,W)||pt(it,B,W)},ut=this&&this.__importDefault||function(B){return B&&B.__esModule?B:{default:B}};Object.defineProperty(nt,"__esModule",{value:!0}),nt.default=void 0,ht(st(7783),nt);var ft=st(7783);Object.defineProperty(nt,"default",{enumerable:!0,get:function(){return ut(ft).default}})},1039:(ot,nt,st)=>{var pt,ht,ut;ut=function(ft){var B=ft?ft._modules:{};function it(W,R,H,V){W.hasOwnProperty(R)||(W[R]=V.apply(null,H),typeof CustomEvent=="function"&&window.dispatchEvent(new CustomEvent("HighchartsModuleLoaded",{detail:{path:R,module:W[R]}})))}it(B,"Core/Math3D.js",[B["Core/Globals.js"],B["Core/Utilities.js"]],function(W,R){var H=W.deg2rad,V=R.pick;function $(z,I,E,M){var P=I.options.chart.options3d,y=V(M,!!E&&I.inverted),h={x:I.plotWidth/2,y:I.plotHeight/2,z:P.depth/2,vd:V(P.depth,1)*V(P.viewDistance,0)},f=I.scale3d||1,m=H*P.beta*(y?-1:1),u=H*P.alpha*(y?-1:1),v={cosA:Math.cos(u),cosB:Math.cos(-m),sinA:Math.sin(u),sinB:Math.sin(-m)};return E||(h.x+=I.plotLeft,h.y+=I.plotTop),z.map(function(w){var S=function(c,g,r,a){return{x:a.cosB*c-a.sinB*r,y:-a.sinA*a.sinB*c+a.cosA*g-a.cosB*a.sinA*r,z:a.cosA*a.sinB*c+a.sinA*g+a.cosA*a.cosB*r}}((y?w.y:w.x)-h.x,(y?w.x:w.y)-h.y,(w.z||0)-h.z,v),x=Z(S,h,h.vd);return x.x=x.x*f+h.x,x.y=x.y*f+h.y,x.z=S.z*f+h.z,{x:y?x.y:x.x,y:y?x.x:x.y,z:x.z}})}function Z(z,I,E){var M=E>0&&E<Number.POSITIVE_INFINITY?E/(z.z+I.z+E):1;return{x:z.x*M,y:z.y*M}}function U(z){var I,E,M=0;for(I=0;I<z.length;I++)E=(I+1)%z.length,M+=z[I].x*z[E].y-z[E].x*z[I].y;return M/2}return{perspective:$,perspective3D:Z,pointCameraDistance:function(z,I){var E=I.options.chart.options3d,M=I.plotWidth/2,P=I.plotHeight/2,y=V(E.depth,1)*V(E.viewDistance,0)+E.depth;return Math.sqrt(Math.pow(M-V(z.plotX,z.x),2)+Math.pow(P-V(z.plotY,z.y),2)+Math.pow(y-V(z.plotZ,z.z),2))},shapeArea:U,shapeArea3D:function(z,I,E){return U($(z,I,E))}}}),it(B,"Core/Renderer/SVG/SVGElement3D.js",[B["Core/Color/Color.js"],B["Core/Renderer/SVG/SVGElement.js"],B["Core/Utilities.js"]],function(W,R,H){var V=W.parse,$=H.defined,Z=H.merge,U=H.objectEach,z=H.pick,I={};return I.base={initArgs:function(E){var M=this,P=M.renderer,y=P[M.pathType+"Path"](E),h=y.zIndexes;M.parts.forEach(function(f){var m={class:"highcharts-3d-"+f,zIndex:h[f]||0};P.styledMode&&(f==="top"?m.filter="url(#highcharts-brighter)":f==="side"&&(m.filter="url(#highcharts-darker)")),M[f]=P.path(y[f]).attr(m).add(M)}),M.attr({"stroke-linejoin":"round",zIndex:h.group}),M.originalDestroy=M.destroy,M.destroy=M.destroyParts,M.forcedSides=y.forcedSides},singleSetterForParts:function(E,M,P,y,h,f){var m={},u=[null,null,y||"attr",h,f],v=P&&P.zIndexes;return P?(v&&v.group&&this.attr({zIndex:v.group}),U(P,function(w,S){m[S]={},m[S][E]=w,v&&(m[S].zIndex=P.zIndexes[S]||0)}),u[1]=m):(m[E]=M,u[0]=m),this.processParts.apply(this,u)},processParts:function(E,M,P,y,h){var f=this;return f.parts.forEach(function(m){M&&(E=z(M[m],!1)),E!==!1&&f[m][P](E,y,h)}),f},destroyParts:function(){return this.processParts(null,null,"destroy"),this.originalDestroy()}},I.cuboid=Z(I.base,{parts:["front","top","side"],pathType:"cuboid",attr:function(E,M,P,y){if(typeof E=="string"&&M!==void 0){var h=E;(E={})[h]=M}return E.shapeArgs||$(E.x)?this.singleSetterForParts("d",null,this.renderer[this.pathType+"Path"](E.shapeArgs||E)):R.prototype.attr.call(this,E,void 0,P,y)},animate:function(E,M,P){if($(E.x)&&$(E.y)){var y=this.renderer[this.pathType+"Path"](E),h=y.forcedSides;this.singleSetterForParts("d",null,y,"animate",M,P),this.attr({zIndex:y.zIndexes.group}),h!==this.forcedSides&&(this.forcedSides=h,this.renderer.styledMode||I.cuboid.fillSetter.call(this,this.fill))}else R.prototype.animate.call(this,E,M,P);return this},fillSetter:function(E){var M=this;return M.forcedSides=M.forcedSides||[],M.singleSetterForParts("fill",null,{front:E,top:V(E).brighten(M.forcedSides.indexOf("top")>=0?0:.1).get(),side:V(E).brighten(M.forcedSides.indexOf("side")>=0?0:-.1).get()}),M.color=M.fill=E,M}}),I}),it(B,"Core/Renderer/SVG/SVGRenderer3D.js",[B["Core/Animation/AnimationUtilities.js"],B["Core/Color/Color.js"],B["Core/Globals.js"],B["Core/Math3D.js"],B["Core/Renderer/SVG/SVGElement.js"],B["Core/Renderer/SVG/SVGElement3D.js"],B["Core/Renderer/SVG/SVGRenderer.js"],B["Core/Utilities.js"]],function(W,R,H,V,$,Z,U,z){var I,E=this&&this.__extends||(I=function(t,i){return I=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,e){o.__proto__=e}||function(o,e){for(var s in e)e.hasOwnProperty(s)&&(o[s]=e[s])},I(t,i)},function(t,i){function o(){this.constructor=t}I(t,i),t.prototype=i===null?Object.create(i):(o.prototype=i.prototype,new o)}),M=W.animObject,P=R.parse,y=H.charts,h=H.deg2rad,f=V.perspective,m=V.shapeArea,u=z.defined,v=z.extend,w=z.merge,S=z.pick,x=Math.cos,c=Math.sin,g=Math.PI,r=4*(Math.sqrt(2)-1)/3/(g/2),a=function(t){function i(){return t!==null&&t.apply(this,arguments)||this}return E(i,t),i.compose=function(o){var e=o.prototype,s=i.prototype;e.elements3d=Z,e.arc3d=s.arc3d,e.arc3dPath=s.arc3dPath,e.cuboid=s.cuboid,e.cuboidPath=s.cuboidPath,e.element3d=s.element3d,e.face3d=s.face3d,e.polyhedron=s.polyhedron,e.toLinePath=s.toLinePath,e.toLineSegments=s.toLineSegments},i.curveTo=function(o,e,s,n,l,b,k,D){var p=[],C=b-l;return b>l&&b-l>Math.PI/2+1e-4?p=(p=p.concat(this.curveTo(o,e,s,n,l,l+Math.PI/2,k,D))).concat(this.curveTo(o,e,s,n,l+Math.PI/2,b,k,D)):b<l&&l-b>Math.PI/2+1e-4?p=(p=p.concat(this.curveTo(o,e,s,n,l,l-Math.PI/2,k,D))).concat(this.curveTo(o,e,s,n,l-Math.PI/2,b,k,D)):[["C",o+s*Math.cos(l)-s*r*C*Math.sin(l)+k,e+n*Math.sin(l)+n*r*C*Math.cos(l)+D,o+s*Math.cos(b)+s*r*C*Math.sin(b)+k,e+n*Math.sin(b)-n*r*C*Math.cos(b)+D,o+s*Math.cos(b)+k,e+n*Math.sin(b)+D]]},i.prototype.toLinePath=function(o,e){var s=[];return o.forEach(function(n){s.push(["L",n.x,n.y])}),o.length&&(s[0][0]="M",e&&s.push(["Z"])),s},i.prototype.toLineSegments=function(o){var e=[],s=!0;return o.forEach(function(n){e.push(s?["M",n.x,n.y]:["L",n.x,n.y]),s=!s}),e},i.prototype.face3d=function(o){var e=this,s=this.createElement("path");return s.vertexes=[],s.insidePlotArea=!1,s.enabled=!0,s.attr=function(n){if(typeof n=="object"&&(u(n.enabled)||u(n.vertexes)||u(n.insidePlotArea))){this.enabled=S(n.enabled,this.enabled),this.vertexes=S(n.vertexes,this.vertexes),this.insidePlotArea=S(n.insidePlotArea,this.insidePlotArea),delete n.enabled,delete n.vertexes,delete n.insidePlotArea;var l=y[e.chartIndex],b=f(this.vertexes,l,this.insidePlotArea),k=e.toLinePath(b,!0),D=m(b);n.d=k,n.visibility=this.enabled&&D>0?"inherit":"hidden"}return $.prototype.attr.apply(this,arguments)},s.animate=function(n){if(typeof n=="object"&&(u(n.enabled)||u(n.vertexes)||u(n.insidePlotArea))){this.enabled=S(n.enabled,this.enabled),this.vertexes=S(n.vertexes,this.vertexes),this.insidePlotArea=S(n.insidePlotArea,this.insidePlotArea),delete n.enabled,delete n.vertexes,delete n.insidePlotArea;var l=y[e.chartIndex],b=f(this.vertexes,l,this.insidePlotArea),k=e.toLinePath(b,!0),D=m(b),p=this.enabled&&D>0?"visible":"hidden";n.d=k,this.attr("visibility",p)}return $.prototype.animate.apply(this,arguments)},s.attr(o)},i.prototype.polyhedron=function(o){var e=this,s=this.g(),n=s.destroy;return this.styledMode||s.attr({"stroke-linejoin":"round"}),s.faces=[],s.destroy=function(){for(var l=0;l<s.faces.length;l++)s.faces[l].destroy();return n.call(this)},s.attr=function(l,b,k,D){if(typeof l=="object"&&u(l.faces)){for(;s.faces.length>l.faces.length;)s.faces.pop().destroy();for(;s.faces.length<l.faces.length;)s.faces.push(e.face3d().add(s));for(var p=0;p<l.faces.length;p++)e.styledMode&&delete l.faces[p].fill,s.faces[p].attr(l.faces[p],null,k,D);delete l.faces}return $.prototype.attr.apply(this,arguments)},s.animate=function(l,b,k){if(l&&l.faces){for(;s.faces.length>l.faces.length;)s.faces.pop().destroy();for(;s.faces.length<l.faces.length;)s.faces.push(e.face3d().add(s));for(var D=0;D<l.faces.length;D++)s.faces[D].animate(l.faces[D],b,k);delete l.faces}return $.prototype.animate.apply(this,arguments)},s.attr(o)},i.prototype.element3d=function(o,e){var s=this.g();return v(s,this.elements3d[o]),s.initArgs(e),s},i.prototype.cuboid=function(o){return this.element3d("cuboid",o)},i.prototype.cuboidPath=function(o){var e,s,n,l,b,k,D,p,C=o.x||0,A=o.y||0,N=o.z||0,_=o.height||0,L=o.width||0,O=o.depth||0,j=y[this.chartIndex],Y=j.options.chart.options3d.alpha,X=1e6,G=0,q=[{x:C,y:A,z:N},{x:C+L,y:A,z:N},{x:C+L,y:A+_,z:N},{x:C,y:A+_,z:N},{x:C,y:A+_,z:N+O},{x:C+L,y:A+_,z:N+O},{x:C+L,y:A,z:N+O},{x:C,y:A,z:N+O}],Q=[];function J(lt){return _===0&&lt>1&&lt<6?{x:q[lt].x,y:q[lt].y+10,z:q[lt].z}:q[0].x===q[7].x&&lt>=4?{x:q[lt].x+10,y:q[lt].y,z:q[lt].z}:O===0&&lt<2||lt>5?{x:q[lt].x,y:q[lt].y,z:q[lt].z+10}:q[lt]}function rt(lt){return q[lt]}return q=f(q,j,o.insidePlotArea),s=(e=(p=function(lt,gt,mt){var bt=[[],-1],yt=lt.map(rt),ct=gt.map(rt),et=lt.map(J),at=gt.map(J);return m(yt)<0?bt=[yt,0]:m(ct)<0?bt=[ct,1]:mt&&(Q.push(mt),bt=m(et)<0?[yt,0]:m(at)<0?[ct,1]:[yt,0]),bt})([3,2,1,0],[7,6,5,4],"front"))[0],b=e[1],n=(e=p([1,6,7,0],[4,5,2,3],"top"))[0],k=e[1],l=(e=p([1,2,5,6],[0,7,4,3],"side"))[0],(D=e[1])===1?G+=X*(j.plotWidth-C):D||(G+=X*C),G+=10*(!k||Y>=0&&Y<=180||Y<360&&Y>357.5?j.plotHeight-A:10+A),b===1?G+=100*N:b||(G+=100*(1e3-N)),{front:this.toLinePath(s,!0),top:this.toLinePath(n,!0),side:this.toLinePath(l,!0),zIndexes:{group:Math.round(G)},forcedSides:Q,isFront:b,isTop:k}},i.prototype.arc3d=function(o){var e=this.g(),s=e.renderer,n=["x","y","r","innerR","start","end","depth"];function l(b){var k,D=!1,p={};for(k in b=w(b))n.indexOf(k)!==-1&&(p[k]=b[k],delete b[k],D=!0);return!!D&&[p,b]}return(o=w(o)).alpha=(o.alpha||0)*h,o.beta=(o.beta||0)*h,e.top=s.path(),e.side1=s.path(),e.side2=s.path(),e.inn=s.path(),e.out=s.path(),e.onAdd=function(){var b=e.parentGroup,k=e.attr("class");e.top.add(e),["out","inn","side1","side2"].forEach(function(D){e[D].attr({class:k+" highcharts-3d-side"}).add(b)})},["addClass","removeClass"].forEach(function(b){e[b]=function(){var k=arguments;["top","out","inn","side1","side2"].forEach(function(D){e[D][b].apply(e[D],k)})}}),e.setPaths=function(b){var k=e.renderer.arc3dPath(b),D=100*k.zTop;e.attribs=b,e.top.attr({d:k.top,zIndex:k.zTop}),e.inn.attr({d:k.inn,zIndex:k.zInn}),e.out.attr({d:k.out,zIndex:k.zOut}),e.side1.attr({d:k.side1,zIndex:k.zSide1}),e.side2.attr({d:k.side2,zIndex:k.zSide2}),e.zIndex=D,e.attr({zIndex:D}),b.center&&(e.top.setRadialReference(b.center),delete b.center)},e.setPaths(o),e.fillSetter=function(b){var k=P(b).brighten(-.1).get();return this.fill=b,this.side1.attr({fill:k}),this.side2.attr({fill:k}),this.inn.attr({fill:k}),this.out.attr({fill:k}),this.top.attr({fill:b}),this},["opacity","translateX","translateY","visibility"].forEach(function(b){e[b+"Setter"]=function(k,D){e[D]=k,["out","inn","side1","side2","top"].forEach(function(p){e[p].attr(D,k)})}}),e.attr=function(b){var k,D;return typeof b=="object"&&(D=l(b))&&(k=D[0],arguments[0]=D[1],v(e.attribs,k),e.setPaths(e.attribs)),$.prototype.attr.apply(e,arguments)},e.animate=function(b,k,D){var p,C,A,N=this.attribs,_="data-"+Math.random().toString(26).substring(2,9);return delete b.center,delete b.z,delete b.alpha,delete b.beta,(A=M(S(k,this.renderer.globalAnimation))).duration&&(p=l(b),e[_]=0,b[_]=1,e[_+"Setter"]=H.noop,p&&(C=p[0],A.step=function(L,O){function j(Y){return N[Y]+(S(C[Y],N[Y])-N[Y])*O.pos}O.prop===_&&O.elem.setPaths(w(N,{x:j("x"),y:j("y"),r:j("r"),innerR:j("innerR"),start:j("start"),end:j("end"),depth:j("depth")}))}),k=A),$.prototype.animate.call(this,b,k,D)},e.destroy=function(){return this.top.destroy(),this.out.destroy(),this.inn.destroy(),this.side1.destroy(),this.side2.destroy(),$.prototype.destroy.call(this)},e.hide=function(){this.top.hide(),this.out.hide(),this.inn.hide(),this.side1.hide(),this.side2.hide()},e.show=function(b){this.top.show(b),this.out.show(b),this.inn.show(b),this.side1.show(b),this.side2.show(b)},e},i.prototype.arc3dPath=function(o){var e=o.x||0,s=o.y||0,n=o.start||0,l=(o.end||0)-1e-5,b=o.r||0,k=o.innerR||0,D=o.depth||0,p=o.alpha||0,C=o.beta||0,A=Math.cos(n),N=Math.sin(n),_=Math.cos(l),L=Math.sin(l),O=b*Math.cos(C),j=b*Math.cos(p),Y=k*Math.cos(C),X=k*Math.cos(p),G=D*Math.sin(C),q=D*Math.sin(p),Q=[["M",e+O*A,s+j*N]];(Q=Q.concat(i.curveTo(e,s,O,j,n,l,0,0))).push(["L",e+Y*_,s+X*L]),(Q=Q.concat(i.curveTo(e,s,Y,X,l,n,0,0))).push(["Z"]);var J=C>0?Math.PI/2:0,rt=p>0?0:Math.PI/2,lt=n>-J?n:l>-J?-J:n,gt=l<g-rt?l:n<g-rt?g-rt:l,mt=2*g-rt,bt=[["M",e+O*x(lt),s+j*c(lt)]];bt=bt.concat(i.curveTo(e,s,O,j,lt,gt,0,0)),l>mt&&n<mt?(bt.push(["L",e+O*x(gt)+G,s+j*c(gt)+q]),(bt=bt.concat(i.curveTo(e,s,O,j,gt,mt,G,q))).push(["L",e+O*x(mt),s+j*c(mt)]),(bt=bt.concat(i.curveTo(e,s,O,j,mt,l,0,0))).push(["L",e+O*x(l)+G,s+j*c(l)+q]),(bt=bt.concat(i.curveTo(e,s,O,j,l,mt,G,q))).push(["L",e+O*x(mt),s+j*c(mt)]),bt=bt.concat(i.curveTo(e,s,O,j,mt,gt,0,0))):l>g-rt&&n<g-rt&&(bt.push(["L",e+O*Math.cos(gt)+G,s+j*Math.sin(gt)+q]),(bt=bt.concat(i.curveTo(e,s,O,j,gt,l,G,q))).push(["L",e+O*Math.cos(l),s+j*Math.sin(l)]),bt=bt.concat(i.curveTo(e,s,O,j,l,gt,0,0))),bt.push(["L",e+O*Math.cos(gt)+G,s+j*Math.sin(gt)+q]),(bt=bt.concat(i.curveTo(e,s,O,j,gt,lt,G,q))).push(["Z"]);var yt=[["M",e+Y*A,s+X*N]];(yt=yt.concat(i.curveTo(e,s,Y,X,n,l,0,0))).push(["L",e+Y*Math.cos(l)+G,s+X*Math.sin(l)+q]),(yt=yt.concat(i.curveTo(e,s,Y,X,l,n,G,q))).push(["Z"]);var ct=[["M",e+O*A,s+j*N],["L",e+O*A+G,s+j*N+q],["L",e+Y*A+G,s+X*N+q],["L",e+Y*A,s+X*N],["Z"]],et=[["M",e+O*_,s+j*L],["L",e+O*_+G,s+j*L+q],["L",e+Y*_+G,s+X*L+q],["L",e+Y*_,s+X*L],["Z"]],at=Math.atan2(q,-G),dt=Math.abs(l+at),vt=Math.abs(n+at),Ct=Math.abs((n+l)/2+at);function xt(Lt){return(Lt%=2*Math.PI)>Math.PI&&(Lt=2*Math.PI-Lt),Lt}dt=xt(dt),vt=xt(vt);var wt=1e5,Mt=(Ct=xt(Ct))*wt,St=vt*wt,Tt=dt*wt;return{top:Q,zTop:Math.PI*wt+1,out:bt,zOut:Math.max(Mt,St,Tt),inn:yt,zInn:Math.max(Mt,St,Tt),side1:ct,zSide1:.99*Tt,side2:et,zSide2:.99*St}},i}(U);return a}),it(B,"Core/Chart/Chart3D.js",[B["Core/Color/Color.js"],B["Core/Defaults.js"],B["Core/Math3D.js"],B["Core/Utilities.js"]],function(W,R,H,V){var $,Z=W.parse,U=R.defaultOptions,z=H.perspective,I=H.shapeArea3D,E=V.addEvent,M=V.isArray,P=V.merge,y=V.pick,h=V.wrap;return function(f){var m=function(){function o(e){this.frame3d=void 0,this.chart=e}return o.prototype.get3dFrame=function(){var e=this.chart,s=e.options.chart.options3d,n=s.frame,l=e.plotLeft,b=e.plotLeft+e.plotWidth,k=e.plotTop,D=e.plotTop+e.plotHeight,p=s.depth,C=function(et){var at=I(et,e);return at>.5?1:at<-.5?-1:0},A=C([{x:l,y:D,z:p},{x:b,y:D,z:p},{x:b,y:D,z:0},{x:l,y:D,z:0}]),N=C([{x:l,y:k,z:0},{x:b,y:k,z:0},{x:b,y:k,z:p},{x:l,y:k,z:p}]),_=C([{x:l,y:k,z:0},{x:l,y:k,z:p},{x:l,y:D,z:p},{x:l,y:D,z:0}]),L=C([{x:b,y:k,z:p},{x:b,y:k,z:0},{x:b,y:D,z:0},{x:b,y:D,z:p}]),O=C([{x:l,y:D,z:0},{x:b,y:D,z:0},{x:b,y:k,z:0},{x:l,y:k,z:0}]),j=C([{x:l,y:k,z:p},{x:b,y:k,z:p},{x:b,y:D,z:p},{x:l,y:D,z:p}]),Y=!1,X=!1,G=!1,q=!1;[].concat(e.xAxis,e.yAxis,e.zAxis).forEach(function(et){et&&(et.horiz?et.opposite?X=!0:Y=!0:et.opposite?q=!0:G=!0)});var Q=function(et,at,dt){for(var vt=["size","color","visible"],Ct={},xt=0;xt<vt.length;xt++)for(var wt=vt[xt],Mt=0;Mt<et.length;Mt++)if(typeof et[Mt]=="object"){var St=et[Mt][wt];if(St!=null){Ct[wt]=St;break}}var Tt=dt;return Ct.visible===!0||Ct.visible===!1?Tt=Ct.visible:Ct.visible==="auto"&&(Tt=at>0),{size:y(Ct.size,1),color:y(Ct.color,"none"),frontFacing:at>0,visible:Tt}},J={axes:{},bottom:Q([n.bottom,n.top,n],A,Y),top:Q([n.top,n.bottom,n],N,X),left:Q([n.left,n.right,n.side,n],_,G),right:Q([n.right,n.left,n.side,n],L,q),back:Q([n.back,n.front,n],j,!0),front:Q([n.front,n.back,n],O,!1)};if(s.axisLabelPosition==="auto"){var rt=function(et,at){return et.visible!==at.visible||et.visible&&at.visible&&et.frontFacing!==at.frontFacing},lt=[];rt(J.left,J.front)&&lt.push({y:(k+D)/2,x:l,z:0,xDir:{x:1,y:0,z:0}}),rt(J.left,J.back)&&lt.push({y:(k+D)/2,x:l,z:p,xDir:{x:0,y:0,z:-1}}),rt(J.right,J.front)&&lt.push({y:(k+D)/2,x:b,z:0,xDir:{x:0,y:0,z:1}}),rt(J.right,J.back)&&lt.push({y:(k+D)/2,x:b,z:p,xDir:{x:-1,y:0,z:0}});var gt=[];rt(J.bottom,J.front)&&gt.push({x:(l+b)/2,y:D,z:0,xDir:{x:1,y:0,z:0}}),rt(J.bottom,J.back)&&gt.push({x:(l+b)/2,y:D,z:p,xDir:{x:-1,y:0,z:0}});var mt=[];rt(J.top,J.front)&&mt.push({x:(l+b)/2,y:k,z:0,xDir:{x:1,y:0,z:0}}),rt(J.top,J.back)&&mt.push({x:(l+b)/2,y:k,z:p,xDir:{x:-1,y:0,z:0}});var bt=[];rt(J.bottom,J.left)&&bt.push({z:(0+p)/2,y:D,x:l,xDir:{x:0,y:0,z:-1}}),rt(J.bottom,J.right)&&bt.push({z:(0+p)/2,y:D,x:b,xDir:{x:0,y:0,z:1}});var yt=[];rt(J.top,J.left)&&yt.push({z:(0+p)/2,y:k,x:l,xDir:{x:0,y:0,z:-1}}),rt(J.top,J.right)&&yt.push({z:(0+p)/2,y:k,x:b,xDir:{x:0,y:0,z:1}});var ct=function(et,at,dt){if(et.length===0)return null;if(et.length===1)return et[0];for(var vt=z(et,e,!1),Ct=0,xt=1;xt<vt.length;xt++)(dt*vt[xt][at]>dt*vt[Ct][at]||dt*vt[xt][at]==dt*vt[Ct][at]&&vt[xt].z<vt[Ct].z)&&(Ct=xt);return et[Ct]};J.axes={y:{left:ct(lt,"x",-1),right:ct(lt,"x",1)},x:{top:ct(mt,"y",-1),bottom:ct(gt,"y",1)},z:{top:ct(yt,"y",-1),bottom:ct(bt,"y",1)}}}else J.axes={y:{left:{x:l,z:0,xDir:{x:1,y:0,z:0}},right:{x:b,z:0,xDir:{x:0,y:0,z:1}}},x:{top:{y:k,z:0,xDir:{x:1,y:0,z:0}},bottom:{y:D,z:0,xDir:{x:1,y:0,z:0}}},z:{top:{x:G?b:l,y:k,xDir:G?{x:0,y:0,z:1}:{x:0,y:0,z:-1}},bottom:{x:G?b:l,y:D,xDir:G?{x:0,y:0,z:1}:{x:0,y:0,z:-1}}}};return J},o.prototype.getScale=function(e){var s,n=this.chart,l=n.plotLeft,b=n.plotWidth+l,k=n.plotTop,D=n.plotHeight+k,p=l+n.plotWidth/2,C=k+n.plotHeight/2,A={minX:Number.MAX_VALUE,maxX:-Number.MAX_VALUE,minY:Number.MAX_VALUE,maxY:-Number.MAX_VALUE},N=1;return s=[{x:l,y:k,z:0},{x:l,y:k,z:e}],[0,1].forEach(function(_){s.push({x:b,y:s[_].y,z:s[_].z})}),[0,1,2,3].forEach(function(_){s.push({x:s[_].x,y:D,z:s[_].z})}),(s=z(s,n,!1)).forEach(function(_){A.minX=Math.min(A.minX,_.x),A.maxX=Math.max(A.maxX,_.x),A.minY=Math.min(A.minY,_.y),A.maxY=Math.max(A.maxY,_.y)}),l>A.minX&&(N=Math.min(N,1-Math.abs((l+p)/(A.minX+p))%1)),b<A.maxX&&(N=Math.min(N,(b-p)/(A.maxX-p))),k>A.minY&&(N=A.minY<0?Math.min(N,(k+C)/(-A.minY+k+C)):Math.min(N,1-(k+C)/(A.minY+C)%1)),D<A.maxY&&(N=Math.min(N,Math.abs((D-C)/(A.maxY-C)))),N},o}();function u(o){this.is3d()&&o.options.type==="scatter"&&(o.options.type="scatter3d")}function v(){if(this.chart3d&&this.is3d()){var o=this,e=o.renderer,s=o.options.chart.options3d,n=o.chart3d.get3dFrame(),l=o.plotLeft,b=o.plotLeft+o.plotWidth,k=o.plotTop,D=o.plotTop+o.plotHeight,p=s.depth,C=l-(n.left.visible?n.left.size:0),A=b+(n.right.visible?n.right.size:0),N=k-(n.top.visible?n.top.size:0),_=D+(n.bottom.visible?n.bottom.size:0),L=0-(n.front.visible?n.front.size:0),O=p+(n.back.visible?n.back.size:0),j=o.hasRendered?"animate":"attr";o.chart3d.frame3d=n,o.frameShapes||(o.frameShapes={bottom:e.polyhedron().add(),top:e.polyhedron().add(),left:e.polyhedron().add(),right:e.polyhedron().add(),back:e.polyhedron().add(),front:e.polyhedron().add()}),o.frameShapes.bottom[j]({class:"highcharts-3d-frame highcharts-3d-frame-bottom",zIndex:n.bottom.frontFacing?-1e3:1e3,faces:[{fill:Z(n.bottom.color).brighten(.1).get(),vertexes:[{x:C,y:_,z:L},{x:A,y:_,z:L},{x:A,y:_,z:O},{x:C,y:_,z:O}],enabled:n.bottom.visible},{fill:Z(n.bottom.color).brighten(.1).get(),vertexes:[{x:l,y:D,z:p},{x:b,y:D,z:p},{x:b,y:D,z:0},{x:l,y:D,z:0}],enabled:n.bottom.visible},{fill:Z(n.bottom.color).brighten(-.1).get(),vertexes:[{x:C,y:_,z:L},{x:C,y:_,z:O},{x:l,y:D,z:p},{x:l,y:D,z:0}],enabled:n.bottom.visible&&!n.left.visible},{fill:Z(n.bottom.color).brighten(-.1).get(),vertexes:[{x:A,y:_,z:O},{x:A,y:_,z:L},{x:b,y:D,z:0},{x:b,y:D,z:p}],enabled:n.bottom.visible&&!n.right.visible},{fill:Z(n.bottom.color).get(),vertexes:[{x:A,y:_,z:L},{x:C,y:_,z:L},{x:l,y:D,z:0},{x:b,y:D,z:0}],enabled:n.bottom.visible&&!n.front.visible},{fill:Z(n.bottom.color).get(),vertexes:[{x:C,y:_,z:O},{x:A,y:_,z:O},{x:b,y:D,z:p},{x:l,y:D,z:p}],enabled:n.bottom.visible&&!n.back.visible}]}),o.frameShapes.top[j]({class:"highcharts-3d-frame highcharts-3d-frame-top",zIndex:n.top.frontFacing?-1e3:1e3,faces:[{fill:Z(n.top.color).brighten(.1).get(),vertexes:[{x:C,y:N,z:O},{x:A,y:N,z:O},{x:A,y:N,z:L},{x:C,y:N,z:L}],enabled:n.top.visible},{fill:Z(n.top.color).brighten(.1).get(),vertexes:[{x:l,y:k,z:0},{x:b,y:k,z:0},{x:b,y:k,z:p},{x:l,y:k,z:p}],enabled:n.top.visible},{fill:Z(n.top.color).brighten(-.1).get(),vertexes:[{x:C,y:N,z:O},{x:C,y:N,z:L},{x:l,y:k,z:0},{x:l,y:k,z:p}],enabled:n.top.visible&&!n.left.visible},{fill:Z(n.top.color).brighten(-.1).get(),vertexes:[{x:A,y:N,z:L},{x:A,y:N,z:O},{x:b,y:k,z:p},{x:b,y:k,z:0}],enabled:n.top.visible&&!n.right.visible},{fill:Z(n.top.color).get(),vertexes:[{x:C,y:N,z:L},{x:A,y:N,z:L},{x:b,y:k,z:0},{x:l,y:k,z:0}],enabled:n.top.visible&&!n.front.visible},{fill:Z(n.top.color).get(),vertexes:[{x:A,y:N,z:O},{x:C,y:N,z:O},{x:l,y:k,z:p},{x:b,y:k,z:p}],enabled:n.top.visible&&!n.back.visible}]}),o.frameShapes.left[j]({class:"highcharts-3d-frame highcharts-3d-frame-left",zIndex:n.left.frontFacing?-1e3:1e3,faces:[{fill:Z(n.left.color).brighten(.1).get(),vertexes:[{x:C,y:_,z:L},{x:l,y:D,z:0},{x:l,y:D,z:p},{x:C,y:_,z:O}],enabled:n.left.visible&&!n.bottom.visible},{fill:Z(n.left.color).brighten(.1).get(),vertexes:[{x:C,y:N,z:O},{x:l,y:k,z:p},{x:l,y:k,z:0},{x:C,y:N,z:L}],enabled:n.left.visible&&!n.top.visible},{fill:Z(n.left.color).brighten(-.1).get(),vertexes:[{x:C,y:_,z:O},{x:C,y:N,z:O},{x:C,y:N,z:L},{x:C,y:_,z:L}],enabled:n.left.visible},{fill:Z(n.left.color).brighten(-.1).get(),vertexes:[{x:l,y:k,z:p},{x:l,y:D,z:p},{x:l,y:D,z:0},{x:l,y:k,z:0}],enabled:n.left.visible},{fill:Z(n.left.color).get(),vertexes:[{x:C,y:_,z:L},{x:C,y:N,z:L},{x:l,y:k,z:0},{x:l,y:D,z:0}],enabled:n.left.visible&&!n.front.visible},{fill:Z(n.left.color).get(),vertexes:[{x:C,y:N,z:O},{x:C,y:_,z:O},{x:l,y:D,z:p},{x:l,y:k,z:p}],enabled:n.left.visible&&!n.back.visible}]}),o.frameShapes.right[j]({class:"highcharts-3d-frame highcharts-3d-frame-right",zIndex:n.right.frontFacing?-1e3:1e3,faces:[{fill:Z(n.right.color).brighten(.1).get(),vertexes:[{x:A,y:_,z:O},{x:b,y:D,z:p},{x:b,y:D,z:0},{x:A,y:_,z:L}],enabled:n.right.visible&&!n.bottom.visible},{fill:Z(n.right.color).brighten(.1).get(),vertexes:[{x:A,y:N,z:L},{x:b,y:k,z:0},{x:b,y:k,z:p},{x:A,y:N,z:O}],enabled:n.right.visible&&!n.top.visible},{fill:Z(n.right.color).brighten(-.1).get(),vertexes:[{x:b,y:k,z:0},{x:b,y:D,z:0},{x:b,y:D,z:p},{x:b,y:k,z:p}],enabled:n.right.visible},{fill:Z(n.right.color).brighten(-.1).get(),vertexes:[{x:A,y:_,z:L},{x:A,y:N,z:L},{x:A,y:N,z:O},{x:A,y:_,z:O}],enabled:n.right.visible},{fill:Z(n.right.color).get(),vertexes:[{x:A,y:N,z:L},{x:A,y:_,z:L},{x:b,y:D,z:0},{x:b,y:k,z:0}],enabled:n.right.visible&&!n.front.visible},{fill:Z(n.right.color).get(),vertexes:[{x:A,y:_,z:O},{x:A,y:N,z:O},{x:b,y:k,z:p},{x:b,y:D,z:p}],enabled:n.right.visible&&!n.back.visible}]}),o.frameShapes.back[j]({class:"highcharts-3d-frame highcharts-3d-frame-back",zIndex:n.back.frontFacing?-1e3:1e3,faces:[{fill:Z(n.back.color).brighten(.1).get(),vertexes:[{x:A,y:_,z:O},{x:C,y:_,z:O},{x:l,y:D,z:p},{x:b,y:D,z:p}],enabled:n.back.visible&&!n.bottom.visible},{fill:Z(n.back.color).brighten(.1).get(),vertexes:[{x:C,y:N,z:O},{x:A,y:N,z:O},{x:b,y:k,z:p},{x:l,y:k,z:p}],enabled:n.back.visible&&!n.top.visible},{fill:Z(n.back.color).brighten(-.1).get(),vertexes:[{x:C,y:_,z:O},{x:C,y:N,z:O},{x:l,y:k,z:p},{x:l,y:D,z:p}],enabled:n.back.visible&&!n.left.visible},{fill:Z(n.back.color).brighten(-.1).get(),vertexes:[{x:A,y:N,z:O},{x:A,y:_,z:O},{x:b,y:D,z:p},{x:b,y:k,z:p}],enabled:n.back.visible&&!n.right.visible},{fill:Z(n.back.color).get(),vertexes:[{x:l,y:k,z:p},{x:b,y:k,z:p},{x:b,y:D,z:p},{x:l,y:D,z:p}],enabled:n.back.visible},{fill:Z(n.back.color).get(),vertexes:[{x:C,y:_,z:O},{x:A,y:_,z:O},{x:A,y:N,z:O},{x:C,y:N,z:O}],enabled:n.back.visible}]}),o.frameShapes.front[j]({class:"highcharts-3d-frame highcharts-3d-frame-front",zIndex:n.front.frontFacing?-1e3:1e3,faces:[{fill:Z(n.front.color).brighten(.1).get(),vertexes:[{x:C,y:_,z:L},{x:A,y:_,z:L},{x:b,y:D,z:0},{x:l,y:D,z:0}],enabled:n.front.visible&&!n.bottom.visible},{fill:Z(n.front.color).brighten(.1).get(),vertexes:[{x:A,y:N,z:L},{x:C,y:N,z:L},{x:l,y:k,z:0},{x:b,y:k,z:0}],enabled:n.front.visible&&!n.top.visible},{fill:Z(n.front.color).brighten(-.1).get(),vertexes:[{x:C,y:N,z:L},{x:C,y:_,z:L},{x:l,y:D,z:0},{x:l,y:k,z:0}],enabled:n.front.visible&&!n.left.visible},{fill:Z(n.front.color).brighten(-.1).get(),vertexes:[{x:A,y:_,z:L},{x:A,y:N,z:L},{x:b,y:k,z:0},{x:b,y:D,z:0}],enabled:n.front.visible&&!n.right.visible},{fill:Z(n.front.color).get(),vertexes:[{x:b,y:k,z:0},{x:l,y:k,z:0},{x:l,y:D,z:0},{x:b,y:D,z:0}],enabled:n.front.visible},{fill:Z(n.front.color).get(),vertexes:[{x:A,y:_,z:L},{x:C,y:_,z:L},{x:C,y:N,z:L},{x:A,y:N,z:L}],enabled:n.front.visible}]})}}function w(){this.styledMode&&[{name:"darker",slope:.6},{name:"brighter",slope:1.4}].forEach(function(o){this.renderer.definition({tagName:"filter",attributes:{id:"highcharts-"+o.name},children:[{tagName:"feComponentTransfer",children:[{tagName:"feFuncR",attributes:{type:"linear",slope:o.slope}},{tagName:"feFuncG",attributes:{type:"linear",slope:o.slope}},{tagName:"feFuncB",attributes:{type:"linear",slope:o.slope}}]}]})},this)}function S(){var o=this.options;this.is3d()&&(o.series||[]).forEach(function(e){(e.type||o.chart.type||o.chart.defaultSeriesType)==="scatter"&&(e.type="scatter3d")})}function x(){var o=this,e=o.options.chart.options3d;if(o.chart3d&&o.is3d()){e&&(e.alpha=e.alpha%360+(e.alpha>=0?0:360),e.beta=e.beta%360+(e.beta>=0?0:360));var s=o.inverted,n=o.clipBox,l=o.margin,b=s?"x":"y",k=s?"height":"width",D=s?"width":"height";n[s?"y":"x"]=-(l[3]||0),n[b]=-(l[0]||0),n[k]=o.chartWidth+(l[3]||0)+(l[1]||0),n[D]=o.chartHeight+(l[0]||0)+(l[2]||0),o.scale3d=1,e.fitToPlot===!0&&(o.scale3d=o.chart3d.getScale(e.depth)),o.chart3d.frame3d=o.chart3d.get3dFrame()}}function c(){this.is3d()&&(this.isDirtyBox=!0)}function g(){this.chart3d&&this.is3d()&&(this.chart3d.frame3d=this.chart3d.get3dFrame())}function r(){this.chart3d||(this.chart3d=new m(this))}function a(o){return this.is3d()||o.apply(this,[].slice.call(arguments,1))}function t(o){var e,s=this.series.length;if(this.is3d())for(;s--;)(e=this.series[s]).translate(),e.render();else o.call(this)}function i(o){o.apply(this,[].slice.call(arguments,1)),this.is3d()&&(this.container.className+=" highcharts-3d-chart")}f.Composition=m,f.defaultOptions={chart:{options3d:{enabled:!1,alpha:0,beta:0,depth:100,fitToPlot:!0,viewDistance:25,axisLabelPosition:null,frame:{visible:"default",size:1,bottom:{},top:{},left:{},right:{},back:{},front:{}}}}},f.compose=function(o,e){var s=o.prototype,n=e.prototype;s.is3d=function(){return!!(this.options.chart.options3d&&this.options.chart.options3d.enabled)},s.propsRequireDirtyBox.push("chart.options3d"),s.propsRequireUpdateSeries.push("chart.options3d"),n.matrixSetter=function(){var l;if(this.pos<1&&(M(this.start)||M(this.end))){var b=this.start||[1,0,0,1,0,0],k=this.end||[1,0,0,1,0,0];l=[];for(var D=0;D<6;D++)l.push(this.pos*k[D]+(1-this.pos)*b[D])}else l=this.end;this.elem.attr(this.prop,l,null,!0)},P(!0,U,f.defaultOptions),E(o,"init",r),E(o,"addSeries",u),E(o,"afterDrawChartBox",v),E(o,"afterGetContainer",w),E(o,"afterInit",S),E(o,"afterSetChartSize",x),E(o,"beforeRedraw",c),E(o,"beforeRender",g),h(s,"isInsidePlot",a),h(s,"renderSeries",t),h(s,"setClassName",i)}}($||($={})),$}),it(B,"Core/Axis/ZAxis.js",[B["Core/Axis/Axis.js"],B["Core/Utilities.js"]],function(W,R){var H,V=this&&this.__extends||(H=function(y,h){return H=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,m){f.__proto__=m}||function(f,m){for(var u in m)m.hasOwnProperty(u)&&(f[u]=m[u])},H(y,h)},function(y,h){function f(){this.constructor=y}H(y,h),y.prototype=h===null?Object.create(h):(f.prototype=h.prototype,new f)}),$=R.addEvent,Z=R.merge,U=R.pick,z=R.splat,I=[];function E(y){return new P(this,y)}function M(){var y=this,h=this.options.zAxis=z(this.options.zAxis||{});this.is3d()&&(this.zAxis=[],h.forEach(function(f,m){f.index=m,f.isX=!0,y.addZAxis(f).setScale()}))}var P=function(y){function h(f,m){var u=y.call(this,f,m)||this;return u.isZAxis=!0,u}return V(h,y),h.compose=function(f){if(I.indexOf(f)===-1){I.push(f),$(f,"afterGetAxes",M);var m=f.prototype;m.addZAxis=E,m.collectionsWithInit.zAxis=[m.addZAxis],m.collectionsWithUpdate.push("zAxis")}},h.prototype.getSeriesExtremes=function(){var f=this,m=this.chart;this.hasVisibleSeries=!1,this.dataMin=this.dataMax=this.ignoreMinPadding=this.ignoreMaxPadding=void 0,this.stacking&&this.stacking.buildStacks(),this.series.forEach(function(u){if(u.visible||!m.options.chart.ignoreHiddenSeries){f.hasVisibleSeries=!0;var v=u.zData;v.length&&(f.dataMin=Math.min(U(f.dataMin,v[0]),Math.min.apply(null,v)),f.dataMax=Math.max(U(f.dataMax,v[0]),Math.max.apply(null,v)))}})},h.prototype.setAxisSize=function(){var f=this.chart;y.prototype.setAxisSize.call(this),this.width=this.len=f.options.chart.options3d&&f.options.chart.options3d.depth||0,this.right=f.chartWidth-this.width-this.left},h.prototype.setOptions=function(f){f=Z({offset:0,lineWidth:0},f),this.isZAxis=!0,y.prototype.setOptions.call(this,f),this.coll="zAxis"},h}(W);return P}),it(B,"Core/Axis/Axis3DDefaults.js",[],function(){return{labels:{position3d:"offset",skew3d:!1},title:{position3d:null,skew3d:null}}}),it(B,"Core/Axis/Tick3DComposition.js",[B["Core/Utilities.js"]],function(W){var R=W.addEvent,H=W.extend,V=W.wrap,$=[];function Z(z){var I=this.axis.axis3D;I&&H(z.pos,I.fix3dPosition(z.pos))}function U(z){var I=this.axis.axis3D,E=z.apply(this,[].slice.call(arguments,1));if(I){var M=E[0],P=E[1];if(M[0]==="M"&&P[0]==="L"){var y=[I.fix3dPosition({x:M[1],y:M[2],z:0}),I.fix3dPosition({x:P[1],y:P[2],z:0})];return this.axis.chart.renderer.toLineSegments(y)}}return E}return{compose:function(z){$.indexOf(z)===-1&&($.push(z),R(z,"afterGetLabelPosition",Z),V(z.prototype,"getMarkPath",U))}}}),it(B,"Core/Axis/Axis3DComposition.js",[B["Core/Axis/Axis3DDefaults.js"],B["Core/Globals.js"],B["Core/Math3D.js"],B["Core/Axis/Tick3DComposition.js"],B["Core/Utilities.js"]],function(W,R,H,V,$){var Z=R.deg2rad,U=H.perspective,z=H.perspective3D,I=H.shapeArea,E=$.addEvent,M=$.merge,P=$.pick,y=$.wrap,h=[];function f(){var r=this,a=r.chart,t=r.options;a.is3d&&a.is3d()&&r.coll!=="colorAxis"&&(t.tickWidth=P(t.tickWidth,0),t.gridLineWidth=P(t.gridLineWidth,1))}function m(r){var a=this;a.chart.is3d()&&a.coll!=="colorAxis"&&r.point&&(r.point.crosshairPos=a.isXAxis?r.point.axisXpos:a.len-r.point.axisYpos)}function u(){var r=this;r.axis3D||(r.axis3D=new g(r))}function v(r){var a=this;return a.chart.is3d()&&a.coll!=="colorAxis"?[]:r.apply(a,[].slice.call(arguments,1))}function w(r){if(!this.chart.is3d()||this.coll==="colorAxis")return r.apply(this,[].slice.call(arguments,1));var a=arguments,t=a[1],i=a[2],o=[],e=this.getPlotLinePath({value:t}),s=this.getPlotLinePath({value:i});if(e&&s)for(var n=0;n<e.length;n+=2){var l=e[n],b=e[n+1],k=s[n],D=s[n+1];l[0]==="M"&&b[0]==="L"&&k[0]==="M"&&D[0]==="L"&&o.push(l,b,D,["L",k[1],k[2]],["Z"])}return o}function S(r){var a=this,t=a.axis3D,i=a.chart,o=r.apply(a,[].slice.call(arguments,1));if(a.coll==="colorAxis"||!i.chart3d||!i.is3d()||o===null)return o;var e,s=i.options.chart.options3d,n=a.isZAxis?i.plotWidth:s.depth,l=i.chart3d.frame3d,b=o[0],k=o[1],D=[];return b[0]==="M"&&k[0]==="L"&&(e=[t.swapZ({x:b[1],y:b[2],z:0}),t.swapZ({x:b[1],y:b[2],z:n}),t.swapZ({x:k[1],y:k[2],z:0}),t.swapZ({x:k[1],y:k[2],z:n})],this.horiz?this.isZAxis?(l.left.visible&&D.push(e[0],e[2]),l.right.visible&&D.push(e[1],e[3]),l.top.visible&&D.push(e[0],e[1]),l.bottom.visible&&D.push(e[2],e[3])):(l.front.visible&&D.push(e[0],e[2]),l.back.visible&&D.push(e[1],e[3]),l.top.visible&&D.push(e[0],e[1]),l.bottom.visible&&D.push(e[2],e[3])):(l.front.visible&&D.push(e[0],e[2]),l.back.visible&&D.push(e[1],e[3]),l.left.visible&&D.push(e[0],e[1]),l.right.visible&&D.push(e[2],e[3])),D=U(D,this.chart,!1)),i.renderer.toLineSegments(D)}function x(r,a){var t=this,i=t.chart,o=t.ticks,e=t.gridGroup;if(t.categories&&i.frameShapes&&i.is3d()&&e&&a&&a.label){var s=e.element.childNodes[0].getBBox(),n=i.frameShapes.left.getBBox(),l=i.options.chart.options3d,b={x:i.plotWidth/2,y:i.plotHeight/2,z:l.depth/2,vd:P(l.depth,1)*P(l.viewDistance,0)},k=a.pos,D=o[k-1],p=o[k+1],C=void 0,A=void 0,N=void 0;return k!==0&&D&&D.label&&D.label.xy&&(A=z({x:D.label.xy.x,y:D.label.xy.y,z:null},b,b.vd)),p&&p.label&&p.label.xy&&(N=z({x:p.label.xy.x,y:p.label.xy.y,z:null},b,b.vd)),C={x:a.label.xy.x,y:a.label.xy.y,z:null},C=z(C,b,b.vd),Math.abs(A?C.x-A.x:N?N.x-C.x:s.x-n.x)}return r.apply(t,[].slice.call(arguments,1))}function c(r){var a=r.apply(this,[].slice.call(arguments,1));return this.axis3D?this.axis3D.fix3dPosition(a,!0):a}var g=function(){function r(a){this.axis=a}return r.compose=function(a,t){if(V.compose(t),h.indexOf(a)===-1){h.push(a),M(!0,a.defaultOptions,W),a.keepProps.push("axis3D"),E(a,"init",u),E(a,"afterSetOptions",f),E(a,"drawCrosshair",m);var i=a.prototype;y(i,"getLinePath",v),y(i,"getPlotBandPath",w),y(i,"getPlotLinePath",S),y(i,"getSlotWidth",x),y(i,"getTitlePosition",c)}},r.prototype.fix3dPosition=function(a,t){var i=this.axis,o=i.chart;if(i.coll==="colorAxis"||!o.chart3d||!o.is3d())return a;var e,s=Z*o.options.chart.options3d.alpha,n=Z*o.options.chart.options3d.beta,l=P(t&&i.options.title.position3d,i.options.labels.position3d),b=P(t&&i.options.title.skew3d,i.options.labels.skew3d),k=o.chart3d.frame3d,D=o.plotLeft,p=o.plotWidth+D,C=o.plotTop,A=o.plotHeight+C,N=0,_=0,L={x:0,y:1,z:0},O=!1;if(a=i.axis3D.swapZ({x:a.x,y:a.y,z:0}),i.isZAxis)if(i.opposite){if(k.axes.z.top===null)return{};_=a.y-C,a.x=k.axes.z.top.x,a.y=k.axes.z.top.y,e=k.axes.z.top.xDir,O=!k.top.frontFacing}else{if(k.axes.z.bottom===null)return{};_=a.y-A,a.x=k.axes.z.bottom.x,a.y=k.axes.z.bottom.y,e=k.axes.z.bottom.xDir,O=!k.bottom.frontFacing}else if(i.horiz)if(i.opposite){if(k.axes.x.top===null)return{};_=a.y-C,a.y=k.axes.x.top.y,a.z=k.axes.x.top.z,e=k.axes.x.top.xDir,O=!k.top.frontFacing}else{if(k.axes.x.bottom===null)return{};_=a.y-A,a.y=k.axes.x.bottom.y,a.z=k.axes.x.bottom.z,e=k.axes.x.bottom.xDir,O=!k.bottom.frontFacing}else if(i.opposite){if(k.axes.y.right===null)return{};N=a.x-p,a.x=k.axes.y.right.x,a.z=k.axes.y.right.z,e={x:(e=k.axes.y.right.xDir).z,y:e.y,z:-e.x}}else{if(k.axes.y.left===null)return{};N=a.x-D,a.x=k.axes.y.left.x,a.z=k.axes.y.left.z,e=k.axes.y.left.xDir}if(l!=="chart")if(l==="flap")if(i.horiz){var j=Math.sin(s),Y=Math.cos(s);i.opposite&&(j=-j),O&&(j=-j),L={x:e.z*j,y:Y,z:-e.x*j}}else e={x:Math.cos(n),y:0,z:Math.sin(n)};else if(l==="ortho")if(i.horiz){var X=Math.sin(s),G=Math.cos(s),q={x:Math.sin(n)*G,y:-X,z:-G*Math.cos(n)};L={x:e.y*q.z-e.z*q.y,y:e.z*q.x-e.x*q.z,z:e.x*q.y-e.y*q.x};var Q=1/Math.sqrt(L.x*L.x+L.y*L.y+L.z*L.z);O&&(Q=-Q),L={x:Q*L.x,y:Q*L.y,z:Q*L.z}}else e={x:Math.cos(n),y:0,z:Math.sin(n)};else i.horiz?L={x:Math.sin(n)*Math.sin(s),y:Math.cos(s),z:-Math.cos(n)*Math.sin(s)}:e={x:Math.cos(n),y:0,z:Math.sin(n)};a.x+=N*e.x+_*L.x,a.y+=N*e.y+_*L.y,a.z+=N*e.z+_*L.z;var J=U([a],i.chart)[0];if(b){I(U([a,{x:a.x+e.x,y:a.y+e.y,z:a.z+e.z},{x:a.x+L.x,y:a.y+L.y,z:a.z+L.z}],i.chart))<0&&(e={x:-e.x,y:-e.y,z:-e.z});var rt=U([{x:a.x,y:a.y,z:a.z},{x:a.x+e.x,y:a.y+e.y,z:a.z+e.z},{x:a.x+L.x,y:a.y+L.y,z:a.z+L.z}],i.chart);J.matrix=[rt[1].x-rt[0].x,rt[1].y-rt[0].y,rt[2].x-rt[0].x,rt[2].y-rt[0].y,J.x,J.y],J.matrix[4]-=J.x*J.matrix[0]+J.y*J.matrix[2],J.matrix[5]-=J.x*J.matrix[1]+J.y*J.matrix[3]}return J},r.prototype.swapZ=function(a,t){var i=this.axis;if(i.isZAxis){var o=t?0:i.chart.plotLeft;return{x:o+a.z,y:a.y,z:a.x-o}}return a},r}();return g}),it(B,"Core/Series/Series3D.js",[B["Core/Math3D.js"],B["Core/Series/Series.js"],B["Core/Utilities.js"]],function(W,R,H){var V,$=this&&this.__extends||(V=function(y,h){return V=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,m){f.__proto__=m}||function(f,m){for(var u in m)m.hasOwnProperty(u)&&(f[u]=m[u])},V(y,h)},function(y,h){function f(){this.constructor=y}V(y,h),y.prototype=h===null?Object.create(h):(f.prototype=h.prototype,new f)}),Z=W.perspective,U=H.addEvent,z=H.extend,I=H.merge,E=H.pick,M=H.isNumber,P=function(y){function h(){return y!==null&&y.apply(this,arguments)||this}return $(h,y),h.prototype.translate=function(){y.prototype.translate.apply(this,arguments),this.chart.is3d()&&this.translate3dPoints()},h.prototype.translate3dPoints=function(){var f,m,u,v,w,S=this,x=S.options,c=S.chart,g=E(S.zAxis,c.options.zAxis[0]),r=[],a=[],t=x.stacking?M(x.stack)?x.stack:0:S.index||0;for(S.zPadding=t*(x.depth||0+(x.groupZPadding||1)),w=0;w<S.data.length;w++)f=S.data[w],g&&g.translate?(v=g.logarithmic&&g.val2lin?g.val2lin(f.z):f.z,f.plotZ=g.translate(v),f.isInside=!!f.isInside&&v>=g.min&&v<=g.max):f.plotZ=S.zPadding,f.axisXpos=f.plotX,f.axisYpos=f.plotY,f.axisZpos=f.plotZ,r.push({x:f.plotX,y:f.plotY,z:f.plotZ}),a.push(f.plotX||0);for(S.rawPointsX=a,m=Z(r,c,!0),w=0;w<S.data.length;w++)f=S.data[w],u=m[w],f.plotX=u.x,f.plotY=u.y,f.plotZ=u.z},h.defaultOptions=I(R.defaultOptions),h}(R);return U(R,"afterTranslate",function(){this.chart.is3d()&&this.translate3dPoints()}),z(R.prototype,{translate3dPoints:P.prototype.translate3dPoints}),P}),it(B,"Series/Area3D/Area3DSeries.js",[B["Core/Math3D.js"],B["Core/Series/SeriesRegistry.js"],B["Core/Utilities.js"]],function(W,R,H){var V=W.perspective,$=R.seriesTypes.line.prototype,Z=H.wrap,U=[];function z(I){var E=this,M=I.apply(E,[].slice.call(arguments,1));if(!E.chart.is3d())return M;var P=$.getGraphPath,y=E.options,h=Math.round(E.yAxis.getThreshold(y.threshold)),f=[];if(E.rawPointsX)for(var m=0;m<E.points.length;m++)f.push({x:E.rawPointsX[m],y:y.stacking?E.points[m].yBottom:h,z:E.zPadding});var u=E.chart.options.chart.options3d;f=V(f,E.chart,!0).map(function(S){return{plotX:S.x,plotY:S.y,plotZ:S.z}}),E.group&&u&&u.depth&&u.beta&&(E.markerGroup&&(E.markerGroup.add(E.group),E.markerGroup.attr({translateX:0,translateY:0})),E.group.attr({zIndex:Math.max(1,u.beta>270||u.beta<90?u.depth-Math.round(E.zPadding||0):Math.round(E.zPadding||0))})),f.reversed=!0;var v=P.call(E,f,!0,!0);if(v[0]&&v[0][0]==="M"&&(v[0]=["L",v[0][1],v[0][2]]),E.areaPath){var w=E.areaPath.splice(0,E.areaPath.length/2).concat(v);w.xMap=E.areaPath.xMap,E.areaPath=w}return M}return{compose:function(I){U.indexOf(I)===-1&&(U.push(I),Z(I.prototype,"getGraphPath",z))}}}),it(B,"Series/Column3D/Column3DComposition.js",[B["Series/Column/ColumnSeries.js"],B["Core/Globals.js"],B["Core/Series/Series.js"],B["Core/Math3D.js"],B["Core/Series/SeriesRegistry.js"],B["Core/Axis/Stacking/StackItem.js"],B["Core/Utilities.js"]],function(W,R,H,V,$,Z,U){var z=W.prototype,I=R.svg,E=V.perspective,M=U.addEvent,P=U.pick,y=U.wrap;function h(v){var w=v.apply(this,[].slice.call(arguments,1));return this.chart.is3d&&this.chart.is3d()&&(w.stroke=this.options.edgeColor||w.fill,w["stroke-width"]=P(this.options.edgeWidth,1)),w}function f(v,w,S){var x=this.chart.is3d&&this.chart.is3d();x&&(this.options.inactiveOtherPoints=!0),v.call(this,w,S),x&&(this.options.inactiveOtherPoints=!1)}function m(v){for(var w=[],S=1;S<arguments.length;S++)w[S-1]=arguments[S];return this.series.chart.is3d()?this.graphic&&this.graphic.element.nodeName!=="g":v.apply(this,w)}if(y(z,"translate",function(v){v.apply(this,[].slice.call(arguments,1)),this.chart.is3d()&&this.translate3dShapes()}),y(H.prototype,"justifyDataLabel",function(v){return!arguments[2].outside3dPlot&&v.apply(this,[].slice.call(arguments,1))}),z.translate3dPoints=function(){},z.translate3dShapes=function(){var v,w=this,S=w.chart,x=w.options,c=x.depth,g=(x.stacking?x.stack||0:w.index)*(c+(x.groupZPadding||1)),r=w.borderWidth%2?.5:0;S.inverted&&!w.yAxis.reversed&&(r*=-1),x.grouping!==!1&&(g=0),g+=x.groupZPadding||1,w.data.forEach(function(a){if(a.outside3dPlot=null,a.y!==null){var t,i=a.shapeArgs,o=a.tooltipPos;[["x","width"],["y","height"]].forEach(function(e){if((t=i[e[0]]-r)<0&&(i[e[1]]+=i[e[0]]+r,i[e[0]]=-r,t=0),t+i[e[1]]>w[e[0]+"Axis"].len&&i[e[1]]!==0&&(i[e[1]]=w[e[0]+"Axis"].len-i[e[0]]),i[e[1]]!==0&&(i[e[0]]>=w[e[0]+"Axis"].len||i[e[0]]+i[e[1]]<=r)){for(var s in i)i[s]=s==="y"?-9999:0;a.outside3dPlot=!0}}),a.shapeType==="rect"&&(a.shapeType="cuboid"),i.z=g,i.depth=c,i.insidePlotArea=!0,v={x:i.x+i.width/2,y:i.y,z:g+c/2},S.inverted&&(v.x=i.height,v.y=a.clientX),a.plot3d=E([v],S,!0,!1)[0],o=E([{x:o[0],y:o[1],z:g+c/2}],S,!0,!1)[0],a.tooltipPos=[o.x,o.y]}}),w.z=g},y(z,"animate",function(v){if(this.chart.is3d()){var w=arguments[1],S=this.yAxis,x=this,c=this.yAxis.reversed;I&&(w?x.data.forEach(function(g){g.y!==null&&(g.height=g.shapeArgs.height,g.shapey=g.shapeArgs.y,g.shapeArgs.height=1,c||(g.stackY?g.shapeArgs.y=g.plotY+S.translate(g.stackY):g.shapeArgs.y=g.plotY+(g.negative?-g.height:g.height)))}):(x.data.forEach(function(g){g.y!==null&&(g.shapeArgs.height=g.height,g.shapeArgs.y=g.shapey,g.graphic&&g.graphic[g.outside3dPlot?"attr":"animate"](g.shapeArgs,x.options.animation))}),this.drawDataLabels()))}else v.apply(this,[].slice.call(arguments,1))}),y(z,"plotGroup",function(v,w,S,x,c,g){return w!=="dataLabelsGroup"&&w!=="markerGroup"&&this.chart.is3d()&&(this[w]&&delete this[w],g&&(this.chart.columnGroup||(this.chart.columnGroup=this.chart.renderer.g("columnGroup").add(g)),this[w]=this.chart.columnGroup,this.chart.columnGroup.attr(this.getPlotBox()),this[w].survive=!0,w==="group"&&(arguments[3]="visible"))),v.apply(this,Array.prototype.slice.call(arguments,1))}),y(z,"setVisible",function(v,w){var S=this;S.chart.is3d()&&S.data.forEach(function(x){x.visible=x.options.visible=w=w===void 0?!P(S.visible,x.visible):w,S.options.data[S.data.indexOf(x)]=x.options,x.graphic&&x.graphic.attr({visibility:w?"visible":"hidden"})}),v.apply(this,Array.prototype.slice.call(arguments,1))}),M(W,"afterInit",function(){if(this.chart.is3d()){var v=this.options,w=v.grouping,S=v.stacking,x=this.yAxis.options.reversedStacks,c=0;if(w===void 0||w){var g=function(t,i){var o,e=t.series,s={totalStacks:0},n=1;return e.forEach(function(l){o=P(l.options.stack,i?0:e.length-1-l.index),s[o]?s[o].series.push(l):(s[o]={series:[l],position:n},n++)}),s.totalStacks=n+1,s}(this.chart,S),r=v.stack||0,a=void 0;for(a=0;a<g[r].series.length&&g[r].series[a]!==this;a++);c=10*(g.totalStacks-g[r].position)+(x?a:-a),this.xAxis.reversed||(c=10*g.totalStacks-c)}v.depth=v.depth||25,this.z=this.z||0,v.zIndex=c}}),y(z,"pointAttribs",h),y(z,"setState",f),y(z.pointClass.prototype,"hasNewShapeType",m),$.seriesTypes.columnRange){var u=$.seriesTypes.columnrange.prototype;y(u,"pointAttribs",h),y(u,"setState",f),y(u.pointClass.prototype,"hasNewShapeType",m),u.plotGroup=z.plotGroup,u.setVisible=z.setVisible}return y(H.prototype,"alignDataLabel",function(v,w,S,x,c){var g=this.chart;if(x.outside3dPlot=w.outside3dPlot,g.is3d()&&this.is("column")){var r=this,a=r.options,t=P(x.inside,!!r.options.stacking),i=g.options.chart.options3d,o=w.pointWidth/2||0,e={x:c.x+o,y:c.y,z:r.z+a.depth/2};g.inverted&&(t&&(c.width=0,e.x+=w.shapeArgs.height/2),i.alpha>=90&&i.alpha<=270&&(e.y+=w.shapeArgs.width)),e=E([e],g,!0,!1)[0],c.x=e.x-o,c.y=w.outside3dPlot?-9e9:e.y}v.apply(this,[].slice.call(arguments,1))}),y(Z.prototype,"getStackBox",function(v,w){var S=v.apply(this,[].slice.call(arguments,1)),x=this.axis.chart,c=w.width;if(x.is3d()&&this.base){var g=+this.base.split(",")[0],r=x.series[g],a=x.options.chart.options3d;if(r&&r instanceof $.seriesTypes.column){var t={x:S.x+(x.inverted?S.height:c/2),y:S.y,z:r.options.depth/2};x.inverted&&(S.width=0,a.alpha>=90&&a.alpha<=270&&(t.y+=c)),t=E([t],x,!0,!1)[0],S.x=t.x-c/2,S.y=t.y}}return S}),W}),it(B,"Series/Pie3D/Pie3DPoint.js",[B["Core/Series/SeriesRegistry.js"]],function(W){var R,H=this&&this.__extends||(R=function(U,z){return R=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(I,E){I.__proto__=E}||function(I,E){for(var M in E)E.hasOwnProperty(M)&&(I[M]=E[M])},R(U,z)},function(U,z){function I(){this.constructor=U}R(U,z),U.prototype=z===null?Object.create(z):(I.prototype=z.prototype,new I)}),V=W.seriesTypes.pie.prototype.pointClass,$=V.prototype.haloPath,Z=function(U){function z(){var I=U!==null&&U.apply(this,arguments)||this;return I.series=void 0,I}return H(z,U),z.prototype.haloPath=function(){return this.series.chart.is3d()?[]:$.apply(this,arguments)},z}(V);return Z}),it(B,"Series/Pie3D/Pie3DSeries.js",[B["Core/Globals.js"],B["Series/Pie3D/Pie3DPoint.js"],B["Core/Series/SeriesRegistry.js"],B["Core/Utilities.js"]],function(W,R,H,V){var $,Z=this&&this.__extends||($=function(y,h){return $=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,m){f.__proto__=m}||function(f,m){for(var u in m)m.hasOwnProperty(u)&&(f[u]=m[u])},$(y,h)},function(y,h){function f(){this.constructor=y}$(y,h),y.prototype=h===null?Object.create(h):(f.prototype=h.prototype,new f)}),U=W.deg2rad,z=W.svg,I=H.seriesTypes.pie,E=V.extend,M=V.pick,P=function(y){function h(){return y!==null&&y.apply(this,arguments)||this}return Z(h,y),h.prototype.addPoint=function(){y.prototype.addPoint.apply(this,arguments),this.chart.is3d()&&this.update(this.userOptions,!0)},h.prototype.animate=function(f){if(this.chart.is3d()){var m=this.options.animation,u=void 0,v=this.center,w=this.group,S=this.markerGroup;z&&(m===!0&&(m={}),f?(w.oldtranslateX=M(w.oldtranslateX,w.translateX),w.oldtranslateY=M(w.oldtranslateY,w.translateY),u={translateX:v[0],translateY:v[1],scaleX:.001,scaleY:.001},w.attr(u),S&&(S.attrSetters=w.attrSetters,S.attr(u))):(u={translateX:w.oldtranslateX,translateY:w.oldtranslateY,scaleX:1,scaleY:1},w.animate(u,m),S&&S.animate(u,m)))}else y.prototype.animate.apply(this,arguments)},h.prototype.drawDataLabels=function(){if(this.chart.is3d()){var f=this.chart.options.chart.options3d;this.data.forEach(function(m){var u=m.shapeArgs,v=u.r,w=(u.alpha||f.alpha)*U,S=(u.beta||f.beta)*U,x=(u.start+u.end)/2,c=m.labelPosition,g=c.connectorPosition,r=-v*(1-Math.cos(w))*Math.sin(x),a=v*(Math.cos(S)-1)*Math.cos(x);[c.natural,g.breakAt,g.touchingSliceAt].forEach(function(t){t.x+=a,t.y+=r})})}y.prototype.drawDataLabels.apply(this,arguments)},h.prototype.pointAttribs=function(f){var m=y.prototype.pointAttribs.apply(this,arguments),u=this.options;return this.chart.is3d()&&!this.chart.styledMode&&(m.stroke=u.edgeColor||f.color||this.color,m["stroke-width"]=M(u.edgeWidth,1)),m},h.prototype.translate=function(){if(y.prototype.translate.apply(this,arguments),this.chart.is3d()){var f=this,m=f.options,u=m.depth||0,v=f.chart.options.chart.options3d,w=v.alpha,S=v.beta,x=m.stacking?(m.stack||0)*u:f._i*u;x+=u/2,m.grouping!==!1&&(x=0),f.data.forEach(function(c){var g,r=c.shapeArgs;c.shapeType="arc3d",r.z=x,r.depth=.75*u,r.alpha=w,r.beta=S,r.center=f.center,g=(r.end+r.start)/2,c.slicedTranslation={translateX:Math.round(Math.cos(g)*m.slicedOffset*Math.cos(w*U)),translateY:Math.round(Math.sin(g)*m.slicedOffset*Math.cos(w*U))}})}},h.prototype.drawTracker=function(){y.prototype.drawTracker.apply(this,arguments),this.chart.is3d()&&this.points.forEach(function(f){f.graphic&&["out","inn","side1","side2"].forEach(function(m){f.graphic&&(f.graphic[m].element.point=f)})})},h}(I);return E(P.prototype,{pointClass:R}),P}),it(B,"Series/Pie3D/Pie3DComposition.js",[B["Series/Pie3D/Pie3DPoint.js"],B["Series/Pie3D/Pie3DSeries.js"],B["Core/Series/SeriesRegistry.js"]],function(W,R,H){H.seriesTypes.pie.prototype.pointClass.prototype.haloPath=W.prototype.haloPath,H.seriesTypes.pie=R}),it(B,"Series/Scatter3D/Scatter3DPoint.js",[B["Series/Scatter/ScatterSeries.js"],B["Core/Utilities.js"]],function(W,R){var H,V=this&&this.__extends||(H=function(U,z){return H=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(I,E){I.__proto__=E}||function(I,E){for(var M in E)E.hasOwnProperty(M)&&(I[M]=E[M])},H(U,z)},function(U,z){function I(){this.constructor=U}H(U,z),U.prototype=z===null?Object.create(z):(I.prototype=z.prototype,new I)}),$=R.defined,Z=function(U){function z(){var I=U!==null&&U.apply(this,arguments)||this;return I.options=void 0,I.series=void 0,I}return V(z,U),z.prototype.applyOptions=function(){return U.prototype.applyOptions.apply(this,arguments),$(this.z)||(this.z=0),this},z}(W.prototype.pointClass);return Z}),it(B,"Series/Scatter3D/Scatter3DSeries.js",[B["Core/Math3D.js"],B["Series/Scatter3D/Scatter3DPoint.js"],B["Series/Scatter/ScatterSeries.js"],B["Core/Series/SeriesRegistry.js"],B["Core/Utilities.js"]],function(W,R,H,V,$){var Z,U=this&&this.__extends||(Z=function(P,y){return Z=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(h,f){h.__proto__=f}||function(h,f){for(var m in f)f.hasOwnProperty(m)&&(h[m]=f[m])},Z(P,y)},function(P,y){function h(){this.constructor=P}Z(P,y),P.prototype=y===null?Object.create(y):(h.prototype=y.prototype,new h)}),z=W.pointCameraDistance,I=$.extend,E=$.merge,M=function(P){function y(){var h=P!==null&&P.apply(this,arguments)||this;return h.data=void 0,h.options=void 0,h.points=void 0,h}return U(y,P),y.prototype.pointAttribs=function(h){var f=P.prototype.pointAttribs.apply(this,arguments);return this.chart.is3d()&&h&&(f.zIndex=z(h,this.chart)),f},y.defaultOptions=E(H.defaultOptions,{tooltip:{pointFormat:"x: <b>{point.x}</b><br/>y: <b>{point.y}</b><br/>z: <b>{point.z}</b><br/>"}}),y}(H);return I(M.prototype,{axisTypes:["xAxis","yAxis","zAxis"],directTouch:!0,parallelArrays:["x","y","z"],pointArrayMap:["x","y","z"],pointClass:R}),V.registerSeriesType("scatter3d",M),M}),it(B,"masters/highcharts-3d.src.js",[B["Core/Globals.js"],B["Core/Renderer/SVG/SVGRenderer3D.js"],B["Core/Chart/Chart3D.js"],B["Core/Axis/ZAxis.js"],B["Core/Axis/Axis3DComposition.js"],B["Series/Area3D/Area3DSeries.js"]],function(W,R,H,V,$,Z){var U=W;R.compose(U.SVGRenderer),H.compose(U.Chart,U.Fx),V.compose(U.Chart),$.compose(U.Axis,U.Tick),Z.compose(U.seriesTypes.area)})},ot.exports?(ut.default=ut,ot.exports=ut):(pt=[st(4783)],(ht=function(ft){return ut(ft),ut.Highcharts=ft,ut}.apply(nt,pt))===void 0||(ot.exports=ht))},1548:(ot,nt,st)=>{st.d(nt,{A:()=>ht});var pt=Function.prototype.toString;const ht=function(ut){if(ut!=null){try{return pt.call(ut)}catch(ft){}try{return ut+""}catch(ft){}}return""}},2060:(ot,nt,st)=>{var pt,ht,ut;ut=function(ft){var B=ft?ft._modules:{};function it(W,R,H,V){W.hasOwnProperty(R)||(W[R]=V.apply(null,H),typeof CustomEvent=="function"&&window.dispatchEvent(new CustomEvent("HighchartsModuleLoaded",{detail:{path:R,module:W[R]}})))}it(B,"Series/Funnel/FunnelSeries.js",[B["Core/Chart/Chart.js"],B["Core/Globals.js"],B["Core/Series/SeriesRegistry.js"],B["Core/Utilities.js"]],function(W,R,H,V){var $,Z=this&&this.__extends||($=function(u,v){return $=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(w,S){w.__proto__=S}||function(w,S){for(var x in S)S.hasOwnProperty(x)&&(w[x]=S[x])},$(u,v)},function(u,v){function w(){this.constructor=u}$(u,v),u.prototype=v===null?Object.create(v):(w.prototype=v.prototype,new w)}),U=R.noop,z=H.series,I=H.seriesTypes.pie,E=V.addEvent,M=V.extend,P=V.fireEvent,y=V.isArray,h=V.merge,f=V.pick,m=function(u){function v(){var w=u!==null&&u.apply(this,arguments)||this;return w.data=void 0,w.options=void 0,w.points=void 0,w}return Z(v,u),v.prototype.alignDataLabel=function(w,S,x,c,g){var r=w.series,a=r.options.reversed,t=w.dlBox||w.shapeArgs,i=x.align,o=x.verticalAlign,e=((r.options||{}).dataLabels||{}).inside,s=r.center[1],n=a?2*s-w.plotY:w.plotY,l=r.getWidthAt(n-t.height/2+S.height),b=o==="middle"?(t.topWidth-t.bottomWidth)/4:(l-t.bottomWidth)/2,k=t.y,D=t.x,p=f(S.height,S.getBBox().height);o==="middle"?k=t.y-t.height/2+p/2:o==="top"&&(k=t.y-t.height+p+x.padding),(o==="top"&&!a||o==="bottom"&&a||o==="middle")&&(i==="right"?D=t.x-x.padding+b:i==="left"&&(D=t.x+x.padding-b)),c={x:D,y:a?k-t.height:k,width:t.bottomWidth,height:t.height},x.verticalAlign="bottom",e&&!w.visible||z.prototype.alignDataLabel.call(this,w,S,x,c,g),e&&(!w.visible&&w.dataLabel&&(w.dataLabel.placed=!1),w.contrastColor&&S.css({color:w.contrastColor}))},v.prototype.drawDataLabels=function(){var w,S,x,c,g,r=this,a=r.data,t=r.options.dataLabels.distance,i=a.length;for(r.center[2]-=2*t;i--;)S=(w=(x=a[i]).half)?1:-1,g=x.plotY,x.labelDistance=f(x.options.dataLabels&&x.options.dataLabels.distance,t),r.maxLabelDistance=Math.max(x.labelDistance,r.maxLabelDistance||0),c=r.getX(g,w,x),x.labelPosition={natural:{x:0,y:g},final:{},alignment:w?"right":"left",connectorPosition:{breakAt:{x:c+(x.labelDistance-5)*S,y:g},touchingSliceAt:{x:c+x.labelDistance*S,y:g}}};H.seriesTypes[r.options.dataLabels.inside?"column":"pie"].prototype.drawDataLabels.call(this)},v.prototype.translate=function(){var w,S,x,c,g,r,a,t,i,o,e=0,s=this,n=s.chart,l=s.options,b=l.reversed,k=l.ignoreHiddenPoint,D=n.plotWidth,p=n.plotHeight,C=0,A=l.center,N=Q(A[0],D),_=Q(A[1],p),L=Q(l.width,D),O=Q(l.height,p),j=Q(l.neckWidth,D),Y=Q(l.neckHeight,p),X=_-O/2+O-Y,G=s.data,q=l.dataLabels.position==="left"?1:0;function Q(J,rt){return/%$/.test(J)?rt*parseInt(J,10)/100:parseInt(J,10)}s.getWidthAt=function(J){return J>X||O===Y?j:j+(L-j)*(1-(J-(_-O/2))/(O-Y))},s.getX=function(J,rt,lt){return N+(rt?-1:1)*(s.getWidthAt(b?2*_-J:J)/2+lt.labelDistance)},s.center=[N,_,O],s.centerX=N,G.forEach(function(J){k&&J.visible===!1||(e+=J.y)}),G.forEach(function(J){o=null,x=e?J.y/e:0,t=(g=_-O/2+C*O)+x*O,w=s.getWidthAt(g),r=(c=N-w/2)+w,w=s.getWidthAt(t),i=(a=N-w/2)+w,g>X?(c=a=N-j/2,r=i=N+j/2):t>X&&(o=t,w=s.getWidthAt(X),i=(a=N-w/2)+w,t=X),b&&(g=2*_-g,t=2*_-t,o!==null&&(o=2*_-o)),S=[["M",c,g],["L",r,g],["L",i,t]],o!==null&&S.push(["L",i,o],["L",a,o]),S.push(["L",a,t],["Z"]),J.shapeType="path",J.shapeArgs={d:S},J.percentage=100*x,J.plotX=N,J.plotY=(g+(o||t))/2,J.tooltipPos=[N,J.plotY],J.dlBox={x:a,y:g,topWidth:r-c,bottomWidth:i-a,height:Math.abs(f(o,t)-g),width:NaN},J.slice=U,J.half=q,k&&J.visible===!1||(C+=x)}),P(s,"afterTranslate")},v.prototype.sortByAngle=function(w){w.sort(function(S,x){return S.plotY-x.plotY})},v.defaultOptions=h(I.defaultOptions,{animation:!1,center:["50%","50%"],width:"90%",neckWidth:"30%",height:"100%",neckHeight:"25%",reversed:!1,size:!0,dataLabels:{connectorWidth:1,verticalAlign:"middle"},states:{select:{color:"#cccccc",borderColor:"#000000"}}}),v}(I);return M(m.prototype,{animate:U}),E(W,"afterHideAllOverlappingLabels",function(){this.series.forEach(function(u){var v=u.options&&u.options.dataLabels;y(v)&&(v=v[0]),u.is("pie")&&u.placeDataLabels&&v&&!v.inside&&u.placeDataLabels()})}),H.registerSeriesType("funnel",m),m}),it(B,"Series/Pyramid/PyramidSeries.js",[B["Series/Funnel/FunnelSeries.js"],B["Core/Series/SeriesRegistry.js"],B["Core/Utilities.js"]],function(W,R,H){var V,$=this&&this.__extends||(V=function(z,I){return V=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(E,M){E.__proto__=M}||function(E,M){for(var P in M)M.hasOwnProperty(P)&&(E[P]=M[P])},V(z,I)},function(z,I){function E(){this.constructor=z}V(z,I),z.prototype=I===null?Object.create(I):(E.prototype=I.prototype,new E)}),Z=H.merge,U=function(z){function I(){var E=z!==null&&z.apply(this,arguments)||this;return E.data=void 0,E.options=void 0,E.points=void 0,E}return $(I,z),I.defaultOptions=Z(W.defaultOptions,{neckWidth:"0%",neckHeight:"0%",reversed:!0}),I}(W);return R.registerSeriesType("pyramid",U),U}),it(B,"masters/modules/funnel.src.js",[],function(){})},ot.exports?(ut.default=ut,ot.exports=ut):(pt=[st(4783)],(ht=function(ft){return ut(ft),ut.Highcharts=ft,ut}.apply(nt,pt))===void 0||(ot.exports=ht))},2281:(ot,nt,st)=>{st.r(nt),st.d(nt,{default:()=>ye});var pt=st(6096),ht=st(5436),ut=st(3269);function ft(Et){var Gt=this.__data__=new pt.A(Et);this.size=Gt.size}ft.prototype.clear=function(){this.__data__=new pt.A,this.size=0},ft.prototype.delete=function(Et){var Gt=this.__data__,Yt=Gt.delete(Et);return this.size=Gt.size,Yt},ft.prototype.get=function(Et){return this.__data__.get(Et)},ft.prototype.has=function(Et){return this.__data__.has(Et)},ft.prototype.set=function(Et,Gt){var Yt=this.__data__;if(Yt instanceof pt.A){var $t=Yt.__data__;if(!ht.A||$t.length<199)return $t.push([Et,Gt]),this.size=++Yt.size,this;Yt=this.__data__=new ut.A($t)}return Yt.set(Et,Gt),this.size=Yt.size,this};const B=ft;var it=st(6124);st(9465);var W=st(4044),R=st(7313);const H=function(Et){return(0,R.A)(Et)&&(0,W.A)(Et)=="[object Arguments]"};var V=Object.prototype,$=V.hasOwnProperty,Z=V.propertyIsEnumerable;const U=H(function(){return arguments}())?H:function(Et){return(0,R.A)(Et)&&$.call(Et,"callee")&&!Z.call(Et,"callee")};var z=st(6956),I=st(9600),E=T&&!T.nodeType&&T,M=E&&!0&&d&&!d.nodeType&&d,P=M&&M.exports===E?I.A.Buffer:void 0;const y=(P?P.isBuffer:void 0)||function(){return!1};var h=st(5378);const f=function(Et){return typeof Et=="number"&&Et>-1&&Et%1==0&&Et<=9007199254740991};var m={};m["[object Float32Array]"]=m["[object Float64Array]"]=m["[object Int8Array]"]=m["[object Int16Array]"]=m["[object Int32Array]"]=m["[object Uint8Array]"]=m["[object Uint8ClampedArray]"]=m["[object Uint16Array]"]=m["[object Uint32Array]"]=!0,m["[object Arguments]"]=m["[object Array]"]=m["[object ArrayBuffer]"]=m["[object Boolean]"]=m["[object DataView]"]=m["[object Date]"]=m["[object Error]"]=m["[object Function]"]=m["[object Map]"]=m["[object Number]"]=m["[object Object]"]=m["[object RegExp]"]=m["[object Set]"]=m["[object String]"]=m["[object WeakMap]"]=!1;const u=function(Et){return function(Gt){return Et(Gt)}};var v=st(6713),w=T&&!T.nodeType&&T,S=w&&!0&&d&&!d.nodeType&&d,x=S&&S.exports===w&&v.A.process;const c=function(){try{return S&&S.require&&S.require("util").types||x&&x.binding&&x.binding("util")}catch(Et){}}();var g=c&&c.isTypedArray;const r=g?u(g):function(Et){return(0,R.A)(Et)&&f(Et.length)&&!!m[(0,W.A)(Et)]};var a=Object.prototype.hasOwnProperty;const t=function(Et,Gt){var Yt=(0,z.A)(Et),$t=!Yt&&U(Et),ce=!Yt&&!$t&&y(Et),pe=!Yt&&!$t&&!ce&&r(Et),Wt=Yt||$t||ce||pe,At=Wt?function(Qt,de){for(var ne=-1,ue=Array(Qt);++ne<Qt;)ue[ne]=de(ne);return ue}(Et.length,String):[],_t=At.length;for(var Xt in Et)!a.call(Et,Xt)||Wt&&(Xt=="length"||ce&&(Xt=="offset"||Xt=="parent")||pe&&(Xt=="buffer"||Xt=="byteLength"||Xt=="byteOffset")||(0,h.A)(Xt,_t))||At.push(Xt);return At};var i=Object.prototype;const o=function(Et){var Gt=Et&&Et.constructor;return Et===(typeof Gt=="function"&&Gt.prototype||i)},e=function(Et,Gt){return function(Yt){return Et(Gt(Yt))}},s=e(Object.keys,Object);var n=Object.prototype.hasOwnProperty,l=st(405);const b=function(Et){return Et!=null&&f(Et.length)&&!(0,l.A)(Et)},k=function(Et){return b(Et)?t(Et):function(Gt){if(!o(Gt))return s(Gt);var Yt=[];for(var $t in Object(Gt))n.call(Gt,$t)&&$t!="constructor"&&Yt.push($t);return Yt}(Et)};var D=st(7942);const p=function(){return[]};var C=Object.prototype.propertyIsEnumerable,A=Object.getOwnPropertySymbols;const N=A?function(Et){return Et==null?[]:(Et=Object(Et),function(Gt,Yt){for(var $t=-1,ce=Gt==null?0:Gt.length,pe=0,Wt=[];++$t<ce;){var At=Gt[$t];Yt(At,$t,Gt)&&(Wt[pe++]=At)}return Wt}(A(Et),function(Gt){return C.call(Et,Gt)}))}:p,_=function(Et,Gt){for(var Yt=-1,$t=Gt.length,ce=Et.length;++Yt<$t;)Et[ce+Yt]=Gt[Yt];return Et},L=e(Object.getPrototypeOf,Object),O=function(Et,Gt,Yt){var $t=Gt(Et);return(0,z.A)(Et)?$t:_($t,Yt(Et))},j=function(Et){return O(Et,k,N)};var Y=st(123);const X=(0,Y.A)(I.A,"DataView"),G=(0,Y.A)(I.A,"Promise"),q=(0,Y.A)(I.A,"Set"),Q=(0,Y.A)(I.A,"WeakMap");var J=st(1548),rt="[object Map]",lt="[object Promise]",gt="[object Set]",mt="[object WeakMap]",bt="[object DataView]",yt=(0,J.A)(X),ct=(0,J.A)(ht.A),et=(0,J.A)(G),at=(0,J.A)(q),dt=(0,J.A)(Q),vt=W.A;(X&&vt(new X(new ArrayBuffer(1)))!=bt||ht.A&&vt(new ht.A)!=rt||G&&vt(G.resolve())!=lt||q&&vt(new q)!=gt||Q&&vt(new Q)!=mt)&&(vt=function(Et){var Gt=(0,W.A)(Et),Yt=Gt=="[object Object]"?Et.constructor:void 0,$t=Yt?(0,J.A)(Yt):"";if($t)switch($t){case yt:return bt;case ct:return rt;case et:return lt;case at:return gt;case dt:return mt}return Gt});const Ct=vt;var xt=Object.prototype.hasOwnProperty;const wt=I.A.Uint8Array,Mt=function(Et){var Gt=new Et.constructor(Et.byteLength);return new wt(Gt).set(new wt(Et)),Gt};var St=/\w*$/,Tt=st(3516),Lt=Tt.A?Tt.A.prototype:void 0,Pt=Lt?Lt.valueOf:void 0;const Dt=function(Et,Gt,Yt){var $t,ce,pe,Wt=Et.constructor;switch(Gt){case"[object ArrayBuffer]":return Mt(Et);case"[object Boolean]":case"[object Date]":return new Wt(+Et);case"[object DataView]":return function(At,_t){var Xt=Mt(At.buffer);return new At.constructor(Xt,At.byteOffset,At.byteLength)}(Et);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return function(At,_t){var Xt=Mt(At.buffer);return new At.constructor(Xt,At.byteOffset,At.length)}(Et);case"[object Map]":case"[object Set]":return new Wt;case"[object Number]":case"[object String]":return new Wt(Et);case"[object RegExp]":return(pe=new(ce=Et).constructor(ce.source,St.exec(ce))).lastIndex=ce.lastIndex,pe;case"[object Symbol]":return $t=Et,Pt?Object(Pt.call($t)):{}}};var jt=Object.create;const Ot=function(){function Et(){}return function(Gt){if(!(0,D.A)(Gt))return{};if(jt)return jt(Gt);Et.prototype=Gt;var Yt=new Et;return Et.prototype=void 0,Yt}}();var It=c&&c.isMap;const Bt=It?u(It):function(Et){return(0,R.A)(Et)&&Ct(Et)=="[object Map]"};var Zt=c&&c.isSet;const zt=Zt?u(Zt):function(Et){return(0,R.A)(Et)&&Ct(Et)=="[object Set]"};var Ht="[object Arguments]",Kt="[object Function]",me="[object Object]",Ut={};Ut[Ht]=Ut["[object Array]"]=Ut["[object ArrayBuffer]"]=Ut["[object DataView]"]=Ut["[object Boolean]"]=Ut["[object Date]"]=Ut["[object Float32Array]"]=Ut["[object Float64Array]"]=Ut["[object Int8Array]"]=Ut["[object Int16Array]"]=Ut["[object Int32Array]"]=Ut["[object Map]"]=Ut["[object Number]"]=Ut[me]=Ut["[object RegExp]"]=Ut["[object Set]"]=Ut["[object String]"]=Ut["[object Symbol]"]=Ut["[object Uint8Array]"]=Ut["[object Uint8ClampedArray]"]=Ut["[object Uint16Array]"]=Ut["[object Uint32Array]"]=!0,Ut["[object Error]"]=Ut[Kt]=Ut["[object WeakMap]"]=!1;const te=function Et(Gt,Yt,$t,ce,pe,Wt){var At,_t=1&Yt;if(At!==void 0)return At;if(!(0,D.A)(Gt))return Gt;var Xt=(0,z.A)(Gt);if(Xt)At=function(qt){var ve=qt.length,ae=new qt.constructor(ve);return ve&&typeof qt[0]=="string"&&xt.call(qt,"index")&&(ae.index=qt.index,ae.input=qt.input),ae}(Gt);else{var Qt=Ct(Gt),de=Qt==Kt||Qt=="[object GeneratorFunction]";if(y(Gt))return function(qt,ve){return qt.slice()}(Gt);if(Qt==me||Qt==Ht||de&&!pe)At=de?{}:function(qt){return typeof qt.constructor!="function"||o(qt)?{}:Ot(L(qt))}(Gt);else{if(!Ut[Qt])return pe?Gt:{};At=Dt(Gt,Qt)}}Wt||(Wt=new B);var ne=Wt.get(Gt);if(ne)return ne;Wt.set(Gt,At),zt(Gt)?Gt.forEach(function(qt){At.add(Et(qt,Yt,$t,qt,Gt,Wt))}):Bt(Gt)&&Gt.forEach(function(qt,ve){At.set(ve,Et(qt,Yt,$t,ve,Gt,Wt))});var ue=Xt?void 0:j(Gt);return function(qt,ve){for(var ae=-1,co=qt==null?0:qt.length;++ae<co&&ve(qt[ae],ae,qt)!==!1;);}(ue||Gt,function(qt,ve){ue&&(qt=Gt[ve=qt]),(0,it.A)(At,ve,Et(qt,Yt,$t,ve,Gt,Wt))}),At},ye=function(Et){return te(Et,5)}},2382:function(ot,nt,st){var pt=this&&this.__read||function(W,R){var H=typeof Symbol=="function"&&W[Symbol.iterator];if(!H)return W;var V,$,Z=H.call(W),U=[];try{for(;(R===void 0||R-- >0)&&!(V=Z.next()).done;)U.push(V.value)}catch(z){$={error:z}}finally{try{V&&!V.done&&(H=Z.return)&&H.call(Z)}finally{if($)throw $.error}}return U},ht=this&&this.__spreadArray||function(W,R,H){if(H||arguments.length===2)for(var V,$=0,Z=R.length;$<Z;$++)!V&&$ in R||(V||(V=Array.prototype.slice.call(R,0,$)),V[$]=R[$]);return W.concat(V||Array.prototype.slice.call(R))},ut=this&&this.__importDefault||function(W){return W&&W.__esModule?W:{default:W}};Object.defineProperty(nt,"__esModule",{value:!0});var ft=ut(st(8552)),B=ut(st(4501)),it=st(622);nt.default=function(W){var R,H=W.fireEvent,V=new Map,$=!1;function Z(M,P){for(var y=[M,P],h=0;h<y.length;h++)for(var f=y[h],m=0;m<f.length;m++){for(var u=(m+1)%f.length,v=f[m],w=f[u],S={x:w.y-v.y,y:v.x-w.x},x=void 0,c=void 0,g=0;g<M.length;g++){var r=S.x*M[g].x+S.y*M[g].y;((0,B.default)(x)||r<x)&&(x=r),((0,B.default)(c)||r>c)&&(c=r)}var a=void 0,t=void 0;for(g=0;g<P.length;g++)r=S.x*P[g].x+S.y*P[g].y,((0,B.default)(a)||r<a)&&(a=r),((0,B.default)(t)||r>t)&&(t=r);if(c<a||t<x)return!1}return!0}function U(M,P){return(M.yAxis||[]).some(function(y){return!(!y.options.stackLabels||!y.stacking.stacks)&&Object.values(y.stacking.stacks||[]).some(function(h){return Object.values(h).some(function(f){return f.label===P})})})}function z(M){return M.series&&M.series.some(function(P){return(0,ft.default)(P,"xAxis.axisLine.animating")})}function I(M,P,y){return y&&!(0,B.default)(y.totalsRank)&&U(M,P)?y.totalsRank:P.labelrank||0}function E(){$||($=!0,V.forEach(function(M,P){if(!z(P)){if(M.length){var y=M[M.length-1];P.hideOverlappingLabels(y.labels,y.options)}V.delete(P)}}),V.size&&(clearTimeout(R),R=setTimeout(E,100)),$=!1)}W.wrap(W.Axis.prototype,"addPlotBandOrLine",function(M){var P=M.apply(this,[].slice.call(arguments,1));return(0,ft.default)(P,"options.isPlotBand")===!0&&(this.sisensePlotBands||(this.sisensePlotBands=[]),this.sisensePlotBands.push(P)),P}),W.wrap(W.PlotLineOrBand.prototype,"render",function(M){var P=this,y=P.axis,h=P.options,f=h.to,m=h.from,u=(0,it.defined)(m)&&(0,it.defined)(f),v=W.pick(h.zIndex,0),w=y.chart.renderer,S=u?"bands":"lines",x={zIndex:v};S+="-labels-"+v;var c=y.plotLinesAndBandsGroups[S];return c||(x.translateX=0,x.translateY=0,y.plotLinesAndBandsGroups[S]=c=w.g("plot-"+S).attr(x).add()),M.apply(this,[].slice.call(arguments,1))}),W.PlotLineOrBand.prototype.renderLabel=function(M,P,y,h){var f=this,m=f.axis,u=m.chart.renderer,v=f.label,w=(y?"bands":"lines")+"-labels-"+h,S=m.plotLinesAndBandsGroups[w];v||(f.label=v=u.text(this.getLabelText(M),0,0,M.useHTML).attr({align:M.textAlign||M.align,rotation:M.rotation,class:"highcharts-plot-"+(y?"band":"line")+"-label "+(M.className||""),zIndex:h}).add(S),m.chart.styledMode||v.css(W.merge({textOverflow:"ellipsis"},M.style)));var x=P.xBounds||[P[0][1],P[1][1],y?P[2][1]:P[0][1]],c=P.yBounds||[P[0][2],P[1][2],y?P[2][2]:P[0][2]],g=(0,it.arrayMin)(x),r=(0,it.arrayMin)(c);if(v.align(M,!1,{x:g,y:r,width:(0,it.arrayMax)(x)-g,height:(0,it.arrayMax)(c)-r}),!(v.styles.width&&v.styles.width!=="auto"||v.alignValue&&v.alignValue!=="left")){var a=M.clip?m.width:m.chart.chartWidth;v.css({width:(v.rotation===90?m.height-(v.alignAttr.y-m.top):a-(v.alignAttr.x-m.left))+"px"})}v.show(!0)},W.addEvent(W.Chart.prototype,"render",function(){var M=[];(this.xAxis||[]).forEach(function(P){P.plotLinesAndBands&&P.plotLinesAndBands.forEach(function(y){y.label&&y.label.visibility!=="hidden"&&(y.label.isSerieLabel=!0,M.push(y.label))})}),M.length>0&&this.hideOverlappingLabels(M)}),W.Chart.prototype.hideOverlappingLabels=function(M,P){var y=this;P===void 0&&(P={});var h=this;if(z(h))return function(t,i,o){V.has(t)||V.set(t,[]),V.get(t).push({labels:i,options:o}),E()}(h,ht([],pt(M),!1),P);E(),(M=M.filter(function(t){var i=t==null?void 0:t.element,o=(t==null?void 0:t.className)==="stack-labels",e=(t==null?void 0:t.visibility)!=="hidden"||o&&(t==null?void 0:t.placed);return i&&(t==null||t.opacitySetter(0,"opacity",t.element),t==null||t.visibilitySetter("hidden","visibility",t.element)),i&&e})).forEach(function(t){t.oldOpacity=t.opacity,t.newOpacity=1,t.polygon=function(i){var o=document.createElementNS("http://www.w3.org/2000/svg","svg"),e=i.element,s=e.transform.baseVal.consolidate().matrix,n=e.getBBox();function l(b,k){var D=o.createSVGPoint();D.x=b,D.y=k;var p=D.matrixTransform(s);return{x:p.x,y:p.y}}return[l(n.x,n.y),l(n.x,n.y+n.height),l(n.x+n.width,n.y+n.height),l(n.x+n.width,n.y)]}(t)}),M.sort(function(t,i){return I(h,i,P)-I(h,t,P)});var f=this.plotBackground&&this.plotBackground.element?this.plotBackground.element.getBoundingClientRect():null,m=f?{x:(0,it.defined)(f.x)?f.x:f.left,y:(0,it.defined)(f.y)?f.y:f.top,width:f.width,height:f.height}:null,u=(0,ft.default)(h,"options.chart.type"),v=u==="area"||u==="areaspline",w=u==="pie";if((v||u==="column"||u==="bar"||u==="line"||u==="bubble"||u==="boxplot")&&m){m.x-=10,m.y-=10,m.width+=20,m.height+=20,v&&!function(t){var i=(t.xAxis||[]).filter(function(o){return(0,ft.default)(o,"options.labels.enabled")});return i.length>1||i.some(function(o){return o.options.plotBands&&o.options.plotBands.length})}(h)&&(m.y-=30,m.height+=30);var S=this.series&&this.series.some(function(t){return(0,ft.default)(t,"options.stacking")==="percent"});M.forEach(function(t){var i,o,e,s;t.newOpacity===0||t.isSerieLabel||S&&U(y,t)||(i=m,o=t.element.getBoundingClientRect(),e=(0,it.defined)(o.x)?o.x:o.left,s=(0,it.defined)(o.y)?o.y:o.top,i.x<=e&&i.y<=s&&i.x+i.width>=e+o.width&&i.y+i.height>=s+o.height)||(t.newOpacity=0)})}for(var x=M.length,c=0;c<x;c++)for(var g=M[c],r=c+1;r<x;++r){var a=M[r];g.polygon&&a.polygon&&g!==a&&g.newOpacity!==0&&a.newOpacity!==0&&Z(g.polygon,a.polygon)&&((I(h,g,P)<I(h,a,P)?g:a).newOpacity=0)}M.forEach(function(t){var i,o;t&&(o=t.newOpacity,w&&!t.placed||(o?t.show(!0):i=function(){t.hide()},t.oldOpacity!==o&&(t.alignAttr?(t.alignAttr.opacity=o,t[t.isOld?"animate":"attr"](t.alignAttr,null,i),H(h,"afterHideOverlappingLabels")):t.attr({opacity:o})),t.isOld=!0))})},W.wrap(W.SVGElement.prototype,"animate",function(M,P,y,h){var f=this;return f.animating=!0,M.apply(this,[P,y,function(){f.animating=!1,h?h(arguments):y&&y.complete&&y.complete(arguments)}])})}},2397:function(ot,nt,st){var pt=this&&this.__assign||function(){return pt=Object.assign||function(W){for(var R,H=1,V=arguments.length;H<V;H++)for(var $ in R=arguments[H])Object.prototype.hasOwnProperty.call(R,$)&&(W[$]=R[$]);return W},pt.apply(this,arguments)},ht=this&&this.__importDefault||function(W){return W&&W.__esModule?W:{default:W}};Object.defineProperty(nt,"__esModule",{value:!0});var ut=ht(st(8552)),ft=ht(st(4501)),B=ht(st(2281)),it=st(622);nt.default=function(W){var R=W.merge,H=W.extend,V=W.pick;W.getOptions().plotOptions.boxplot.lineWidth=1,W.getOptions().plotOptions.boxplot.fillOpacity=.6,W.getOptions().plotOptions.boxplot.strokeOpacity=.6,W.getOptions().plotOptions.boxplot.strokeWidth=1,W.getOptions().plotOptions.boxplot.states.select.lineWidth=1,W.getOptions().plotOptions.boxplot.states.select.fillOpacity=.3,W.getOptions().plotOptions.boxplot.states.select.strokeOpacity=.3,W.getOptions().plotOptions.boxplot.states.hover.lineWidth=1,W.getOptions().plotOptions.boxplot.states.hover.fillOpacity=1,W.getOptions().plotOptions.boxplot.states.hover.strokeOpacity=1,W.wrap(W.seriesTypes.boxplot.prototype,"drawPoints",function(){var $,Z,U,z,I,E,M,P,y,h,f,m,u,v,w,S,x,c,g,r,a,t,i,o,e,s,n=this,l=n.points,b=n.options,k=n.chart.renderer,D=n.doQuartiles!==!1,p=parseInt(n.options.whiskerLength,10)/100;l.forEach(function(C){if(f=C.graphic,o=C.shapeArgs,u={},x={},g={},e=C.color||n.color,s=C.innerBoxColor||n.color,C.plotY!==void 0){$={fill:s,"fill-opacity":.75,stroke:n.color,"stroke-opacity":1,"stroke-width":1},C.selected&&($.fill=s,$["fill-opacity"]=.3,$["stroke-opacity"]=.3),U={fill:s,"fill-opacity":$["fill-opacity"],stroke:e,"stroke-width":1};var A={fill:$.fill,"fill-opacity":$["fill-opacity"],"stroke-opacity":$["fill-opacity"]};Z=pt({},$),r=o.width,a=Math.floor(o.x),t=a+r,i=Math.round(r/2),z=Math.floor(D?C.q1Plot:C.lowPlot),I=Math.floor(D?C.q3Plot:C.lowPlot),E=Math.floor(C.highPlot),M=Math.floor(C.lowPlot),u.stroke=C.stemColor||b.stemColor||e,u["stroke-width"]=V(C.stemWidth,b.stemWidth,b.lineWidth),u.dashstyle=C.stemDashStyle||b.stemDashStyle,x.stroke=C.whiskerColor||b.whiskerColor||e,x["stroke-width"]=V(C.whiskerWidth,b.whiskerWidth,b.lineWidth),g.stroke=C.medianColor||b.medianColor||e,g["stroke-width"]=V(C.medianWidth,b.medianWidth,b.lineWidth),g["stroke-linecap"]="round",y=u["stroke-width"]%2/2,m=["M",h=a+i+y,I,"L",h,E,"M",h,z,"L",h,M,"z"],D&&(y=$["stroke-width"]%2/2,h=Math.floor(h)+y,z=Math.floor(z)+y,I=Math.floor(I)+y,v=["M",a+=y,I,"L",a,z,"L",t+=y,z,"L",t,I,"L",a,I,"z"]),p&&(y=x["stroke-width"]%2/2,w=["M",h-i*p,E+=y,"L",h+i*p,E,"M",h-i*p,M+=y,"L",h+i*p,M]),y=2,P=Math.round(C.medianPlot)+y,c=["M",a,P,"L",t,P,"z"],D&&(S=["M",a+.5,P+.5,"L",a+.5,z-.5,"L",t-.5,z-.5,"L",t-.5,P+.5,"L",a+.5,P+.5,"z"]),f?(f.attr(A),C.stem.attr(u),C.stem.animate({d:m}),p&&(C.whiskers.attr(x),C.whiskers.animate({d:w})),D&&(C.box.attr(Z),C.box.attr("stroke",Z.stroke),C.box.animate({d:v}),C.innerBox.animate({d:S}),C.innerBox.attr(U)),C.medianShape.attr(g),C.medianShape.animate({d:c})):(C.graphic=f=k.g().add(n.group).attr(A).attr("name","graphic"),C.stem=k.path(m).attr(u).attr("name","stem").add(f),p&&(C.whiskers=k.path(w).attr(x).attr("name","whiskers").add(f)),D&&(C.box=k.path(v).attr(Z).attr("stroke",Z.stroke).attr("name","box").add(f),C.innerBox=k.path(S).attr(U).attr("name","inner-box").add(f)),C.medianShape=k.path(c).attr(g).attr("name","median").add(f))}})}),W.wrap(W.seriesTypes.boxplot.prototype,"drawDataLabels",function($,Z,U){var z,I,E,M,P=this,y=P.options,h=y.cursor,f=P.points,m=y.dataLabels,u=[{name:"median",enabled:!0,indent:-15,path:function(x,c){return["M",x,c,"L",x-10,c]}},{name:"q3",enabled:!0,indent:-20,path:function(x,c){return["M",x,c,"L",x-2,c+5,x-10,c+5]}},{name:"high",enabled:!0,indent:-20,path:function(x,c){return["M",x,c,"L",x-2,c+5,x-10,c+5]}},{name:"q1",enabled:!0,indent:-7,path:function(x,c){return["M",x,c,"L",x-2,c-5,x-10,c-5]}},{name:"low",enabled:!0,indent:-7,path:function(x,c){return["M",x,c,"L",x-2,c-5,x-10,c-5]}}];if($.call(this,m,U),P.data.length>0){var v=P.barW;P.barW>P.options.maxPointWidth&&(v=P.options.maxPointWidth),this.data.forEach(function(x){x.shapeArgs.x+=(x.shapeArgs.width-v)/2,x.shapeArgs.width=v})}if(m.enabled||P._hasPointLabels){M=P.plotGroup("dataLabelsGroup","data-labels",P.visible?"visible":"hidden",m.zIndex||6);var w=P.chart.plotBox.height;if(P.type==="boxplot"&&w<200)if((0,it.defined)((0,ut.default)(f,"0.dataLabel")))for(var S=0;S<f.length;S++)f[S].dataLabel&&((0,it.defined)((0,ut.default)(f[S].dataLabel,"high"))&&f[S].dataLabel.high.destroy(),(0,it.defined)((0,ut.default)(f[S].dataLabel,"low"))&&f[S].dataLabel.low.destroy());else delete u[2],delete u[4];I=m,f.forEach(function(x){var c,g,r,a,t,i,o=!0,e=x.connector,s=x.shapeArgs,n=Math.floor(s.x)+s.width;z=x.options&&x.options.dataLabels;var l=V(z&&z.enabled,I.enabled),b=x.innerBoxColor||P.color;if(l){m=R(I,z),i=m.rotation,r=x.getLabelConfig();var k=!1,D=(0,B.default)(u);(0,it.defined)(x,"shapeArgs.height")&&x.shapeArgs.height<30&&(delete D[2],delete D[4],x.shapeArgs.height===0&&(k=!0)),(0,it.defined)(x.dataLabel)||(x.dataLabel={},x.dataLabel.element={},x.dataLabel.destroy=function(){W.removeEvent(x.dataLabel,"add"),W.removeEvent(x.dataLabel.element,"mouseenter"),W.removeEvent(x.dataLabel.element,"mouseleave"),D.forEach(function(p){p&&x.dataLabel[p.name]&&(x.dataLabel[p.name].destroy(),x.dataLabelLine[p.name].destroy())}),x.dataLabel=null,x.dataLabelLine=null}),(0,it.defined)(x.dataLabelLine)||(x.dataLabelLine={}),D.forEach(function(p){if(p&&p.enabled){c=x.dataLabel[p.name],g=x.dataLabelLine[p.name],E=m.formatter.call(r,m,p.name),m.style.color=V(m.color,m.style.color,P.color,"black"),m.x=n+12,m.y=x[p.name+"Plot"]-x.highPlot+p.indent;var C=P.visible&&P.chart.isInsidePlot(x.plotX,x.plotY,P.chart.inverted)&&P.chart.isInsidePlot(x.plotX,x.yBottom,P.chart.inverted);if(c)C?((0,it.defined)(E)?(c.attr({text:E}),o=!1):(x.dataLabel[p.name]=c=c.destroy(),e&&(x.connector=e.destroy())),g&&g.destroy()):(x.dataLabel[p.name]=c=c.destroy(),g&&g.destroy());else if((0,it.defined)(E)&&E!=="null"){for(t in a={fill:m.backgroundColor,stroke:m.borderColor,"stroke-width":m.borderWidth,r:m.borderRadius||0,rotation:i,padding:m.padding,zIndex:1})(0,ft.default)(a[t])&&delete a[t];C&&((c=P.chart.renderer[i?"text":"label"](E,0,-999,null,null,null,m.useHTML)).attr(a).css(H(m.style,h&&{cursor:h})).add(M).shadow(m.shadow),c.options={},x.dataLabel[p.name]=c)}if(C){var A={fill:b,"fill-opacity":.75,stroke:P.color,"stroke-opacity":1,"stroke-width":1},N=13;k&&(p.name==="q1"?N=5:p.name==="q3"&&(N=21)),g=x.dataLabelLine[p.name]=x.series.chart.renderer.path(p.path(2,N)).attr({"stroke-width":1,stroke:A.stroke,"stroke-opacity":A["fill-opacity"]||1}).add(c)}c&&P.alignDataLabel(x,c,m,null,o,g,p.name),c.options={},x["dataLabel"+p.name]=c}})}x.dataLabels=u.map(function(p){return x.dataLabel[p.name]}).filter(function(p){return p})}),P.dataLabelCollections=[],u.map(function(x){return x.name}).forEach(function(x){P.dataLabelCollections.push("dataLabel"+x)})}}),W.wrap(W.seriesTypes.boxplot.prototype,"alignDataLabel",function($,Z,U,z,I,E,M,P){var y=this.chart,h=y.inverted,f=Z.dlBox||Z.shapeArgs,m=Z.below||Z.plotY>V(this.translatedThreshold,y.plotSizeY),u=V(z.inside,!!this.options.stacking);f&&((I=R(f)).y+=m?I.height:0,I.height=0),z.align=V(z.align,"left"),z.verticalAlign=V(z.verticalAlign,h||u?"middle":m?"top":"bottom");var v,w=U.getBBox(),S=this.visible&&y.isInsidePlot(Z.plotX,Z.plotY,h)&&y.isInsidePlot(Z.plotX,Z.yBottom,h);if(S){switch(H(z,{width:w.width,height:w.height}),v={align:z.align,x:z.x,y:I.y+z.y+I.height/2},P){case"q3":(0,it.defined)(Z,"dataLabel.median.y")&&Z.dataLabel.median.y!=999&&v.y+z.height>Z.dataLabel.median.y&&(v.y=Z.dataLabel.median.y-(z.height/2+4));break;case"high":(0,it.defined)(Z,"dataLabel.q3.y")&&Z.dataLabel.q3.y!=999&&v.y+z.height>Z.dataLabel.q3.y&&(v.y=Z.dataLabel.q3.y-(z.height/2+4));break;case"q1":(0,it.defined)(Z,"dataLabel.median.y")&&Z.dataLabel.median.y!=999&&v.y<Z.dataLabel.median.y+Z.dataLabel.median.height&&(v.y=Z.dataLabel.median.y+(z.height/2+4));break;case"low":(0,it.defined)(Z,"dataLabel.q1.y")&&Z.dataLabel.q1.y!=999&&v.y<Z.dataLabel.q1.y+Z.dataLabel.q1.height?v.y=Z.dataLabel.q1.y+(z.height/2+4):(0,it.defined)(Z,"yBottom")&&v.y+z.height>y.plotHeight&&(v.y=y.plotHeight-z.height)}v.y=isNaN(v.y)?0:v.y,U[E?"attr":"animate"](v)}S||(U.attr({y:-999}),U.placed=!1,M.attr({"stroke-opacity":0}))})}},2805:function(ot,nt,st){var pt=this&&this.__importDefault||function(ut){return ut&&ut.__esModule?ut:{default:ut}};Object.defineProperty(nt,"__esModule",{value:!0});var ht={style:{fontSize:"13px",fontWeight:"normal",color:"#5B6372",fontFamily:pt(st(605)).default.fontFamily},borderWidth:1,borderColor:"#CCCCCC",backgroundColor:"#FFFFFF",borderRadius:10,hideDelay:20,shadow:{color:"#CECECE",offsetX:2,offsetY:2,width:5}};nt.default=ht},3039:function(ot,nt,st){var pt=this&&this.__assign||function(){return pt=Object.assign||function(H){for(var V,$=1,Z=arguments.length;$<Z;$++)for(var U in V=arguments[$])Object.prototype.hasOwnProperty.call(V,U)&&(H[U]=V[U]);return H},pt.apply(this,arguments)},ht=this&&this.__read||function(H,V){var $=typeof Symbol=="function"&&H[Symbol.iterator];if(!$)return H;var Z,U,z=$.call(H),I=[];try{for(;(V===void 0||V-- >0)&&!(Z=z.next()).done;)I.push(Z.value)}catch(E){U={error:E}}finally{try{Z&&!Z.done&&($=z.return)&&$.call(z)}finally{if(U)throw U.error}}return I},ut=this&&this.__spreadArray||function(H,V,$){if($||arguments.length===2)for(var Z,U=0,z=V.length;U<z;U++)!Z&&U in V||(Z||(Z=Array.prototype.slice.call(V,0,U)),Z[U]=V[U]);return H.concat(Z||Array.prototype.slice.call(V))},ft=this&&this.__importDefault||function(H){return H&&H.__esModule?H:{default:H}};Object.defineProperty(nt,"__esModule",{value:!0});var B=ft(st(8552)),it=ft(st(4441)),W=ft(st(2281)),R=st(622);nt.default=function(H){var V=H.removeEvent,$=H.defaultOptions.plotOptions,Z=H.fireEvent,U=H.color,z=H.extend,I=H.isNumber,E=H.merge,M=H.pick,P=H.Series,y=H.Point,h=navigator.userAgent,f=/(ipad|iphone|ipod)/g.test(h.toLowerCase()),m=document.documentElement.ontouchstart!==void 0,u=H.defaultOptions,v="highcharts-";H.Axis.prototype.allowNegativeLog=!0,H.addEvent(H.Axis,"afterInit",function(){var w=this.logarithmic;w&&(this.positiveValuesOnly=!1,w.log2lin=function(S){var x=S<0,c=Math.abs(S);c<10&&(c+=(10-c)/10);var g=Math.log(c)/Math.LN10;return x?-g:g},w.lin2log=function(S){var x=S<0,c=Math.pow(10,Math.abs(S));return c<10&&(c=10*(c-1)/9),x?-c:c})}),H.Series.prototype.setPercentStacks=function(){var w,S=this,x=S.stackKey,c=S.yAxis.stacking.stacks,g=new RegExp(/navigator.\d*/gi);w=S.name.match(g)?S.chart.yAxis[1].options.max||100:S.chart.yAxis[S.options.yAxis||0].options.max||100,[x,"-"+x].forEach(function(r){for(var a,t,i,o,e=S.xData.length;e--;)a=S.xData[e],(i=(t=c[r]&&c[r][a])&&t.points[S.index])&&(o=t.total?100/t.total:0,i[0]=(0,R.correctFloat)(i[0]*o*((0,R.defined)(w)?w/100:1)),i[1]=(0,R.correctFloat)(i[1]*o*((0,R.defined)(w)?w/100:1)),S.stackedYData[e]=i[1])})},H.seriesTypes.area.prototype.getStackPoints=function(w){var S=this,x=[],c=[],g=this.xAxis,r=this.yAxis,a=r.stacking.stacks[this.stackKey],t={},i=r.series,o=i.length,e=r.options.reversedStacks?1:-1,s=i.indexOf(S);if(w=w||this.points,this.options.stacking){for(var n=0;n<w.length;n++)w[n].leftNull=w[n].rightNull=void 0,t[w[n].x]=w[n];H.objectEach(a,function(b,k){b.total!==null&&c.push(k)}),c.sort(function(b,k){return b-k});var l=i.map(function(b){return b.visible});c.forEach(function(b,k){var D,p,C=0;if(t[b]&&!t[b].isNull)x.push(t[b]),[-1,1].forEach(function(_){var L=_===1?"rightNull":"leftNull",O=_===1?"rightCliff":"leftCliff",j=a[c[k+_]],Y=0;if(j)for(var X=s;X>=0&&X<o;){var G=i[X].index;(D=j.points[G])||(G===S.index?t[b][L]=!0:l[X]&&(p=a[b].points[G])&&(Y-=p[1]-p[0])),X+=e}t[b][O]=Y});else{for(var A=s;A>=0&&A<o;){var N=i[A].index;if(D=a[b].points[N]){C=D[1];break}A+=e}C=M(C,0),C=r.translate(C,0,1,0,1),x.push({isNull:!0,plotX:g.translate(b,0,0,0,1),x:b,plotY:C,yBottom:C,isDividerNull:t[b]&&t[b].isDividerNull})}})}return x},H.seriesTypes.areaspline.prototype.getStackPoints=H.seriesTypes.area.prototype.getStackPoints,H.seriesTypes.area.prototype.getGraphPath=function(w){var S,x,c,g=H.seriesTypes.line.prototype.getGraphPath,r=this.options,a=r.stacking,t=this.yAxis,i=[],o=[],e=this.index,s=t.stacking.stacks[this.stackKey],n=r.threshold,l=Math.round(t.getThreshold(r.threshold)),b=M(r.connectNulls,a==="percent"),k=function(G,q,Q){var J,rt,lt=w[G],gt=a&&s[lt.x].points[e],mt=lt[Q+"Null"]||0,bt=lt[Q+"Cliff"]||0,yt=!0;bt||mt?(J=(mt?gt[0]:gt[1])+bt,rt=gt[0]+bt,yt=!!mt):!a&&w[q]&&w[q].isNull&&(J=rt=n),J!==void 0&&(o.push({plotX:S,plotY:J===null?l:t.getThreshold(J),isNull:yt,isCliff:!0}),i.push({plotX:S,plotY:rt===null?l:t.getThreshold(rt),doCurve:!1}))};w=w||this.points,a&&(w=this.getStackPoints(w));for(var D=0,p=w.length;D<p;++D)if(a||(w[D].leftCliff=w[D].rightCliff=w[D].leftNull=w[D].rightNull=void 0),x=w[D].isNull,S=M(w[D].rectPlotX,w[D].plotX),c=a?M(w[D].yBottom,l):l,!x||b){var C=w[D-1],A=w[D+1],N=!w[D].isDividerNull&&C&&C.isDividerNull,_=!w[D].isDividerNull&&A&&A.isDividerNull;b&&!N||k(D,D-1,"left"),x&&!a&&b||(o.push(w[D]),i.push({x:D,plotX:S,plotY:c})),b&&!_||k(D,D+1,"right")}var L=g.call(this,o,!0,!0);i.reversed=!0;var O=g.call(this,i,!0,!0),j=O[0];j&&j[0]==="M"&&(O[0]=["L",j[1],j[2]]);var Y=L.concat(O);Y.length&&Y.push(["Z"]);var X=g.call(this,o,!1,b);return Y.xMap=L.xMap,this.areaPath=Y,X},H.seriesTypes.areaspline.prototype.getGraphPath=H.seriesTypes.area.prototype.getGraphPath,H.Series.prototype.pointAttribs=function(w,S){var x,c,g,r,a,t,i=this.options.marker,o=w&&w.options,e=o&&o.marker||{},s=this.color,n=o&&o.color,l=w&&w.color,b=M(e.lineWidth,i.lineWidth),k=w&&w.zone&&w.zone.color;return s=n||k||l||s,g=e.fillColor||i.fillColor||s,r=e.lineColor||i.lineColor||s,a=1,t=1,S&&(x=i.states[S],c=e.states&&e.states[S]||{},b=M(c.lineWidth,x.lineWidth,b+M(c.lineWidthPlus,x.lineWidthPlus,0)),g=c.fillColor||x.fillColor||g,r=c.lineColor||x.lineColor||r,a=c.fillOpacity||x.fillOpacity||1,t=c.fillOpacity||x.fillOpacity||1),{stroke:r,"stroke-width":b,"stroke-opacity":t,"fill-opacity":a,fill:g}},H.Point.prototype.setState=function(w,S){var x,c,g,r=this,a=Math.floor(r.plotX),t=r.plotY,i=r.series,o=i.options.states[w]||{},e=$[i.type].marker&&i.options.marker,s=e&&e.enabled===!1,n=e&&e.states&&e.states[w]||{},l=n.enabled===!1,b=i.stateMarkerGraphic,k=r.marker||{},D=i.chart,p=i.halo,C=e&&i.markerAttribs;if(!((w=w||"")===r.state&&!S||r.selected&&w!=="select"||o.enabled===!1||w&&(l||s&&n.enabled===!1)||w&&k.states&&k.states[w]&&k.states[w].enabled===!1)){if(C&&(c=i.markerAttribs(r,w)),r.graphic){r.state&&r.graphic.removeClass("highcharts-point-"+r.state),w&&r.graphic.addClass("highcharts-point-"+w);var A=r.innerBoxColor||i.color,N={fill:A,"fill-opacity":.8,stroke:i.color,"stroke-opacity":1,"stroke-width":1};if(r.selected){var _=.3;N.fill=A,N["fill-opacity"]=_,N["stroke-opacity"]=_}w==="hover"&&(_=.9,N.fill=A,N["fill-opacity"]=_,N["stroke-opacity"]=_);var L={fill:A,"fill-opacity":1,stroke:U,"stroke-width":1},O=pt({},N),j=i.pointAttribs(r,w);r.graphic.attr(j),r.stem&&r.stem.attr({}),r.whiskers&&r.whiskers.attr({}),r.box&&(r.box.attr(O),r.box.attr("stroke",O.stroke),r.innerBox.attr(L)),r.medianShape&&r.medianShape.attr({}),c&&r.graphic.animate(c,M(D.options.chart.animation,n.animation,e.animation)),b&&b.hide()}else w&&n&&(g=k.symbol||i.symbol,b&&b.currentSymbol!==g&&(b=b.destroy()),b?b[S?"animate":"attr"]({x:c.x,y:c.y}):g&&(i.stateMarkerGraphic=b=D.renderer.symbol(g,c.x,c.y,c.width,c.height).add(i.markerGroup),b.currentSymbol=g),b&&b.attr(i.pointAttribs(r,w))),b&&(b[w&&D.isInsidePlot(a,t,D.inverted)?"show":"hide"](),b.element.point=r);(x=o.halo)&&x.size?(p||(i.halo=p=D.renderer.path().add((r.graphic||b).parentGroup)),p[S?"animate":"attr"]({d:r.haloPath(x.size)}),p.attr({class:"highcharts-halo highcharts-color-"+M(r.colorIndex,i.colorIndex)}),p.point=r,p.attr(z({fill:r.color||i.color,"fill-opacity":x.opacity,zIndex:-1},x.attributes))):p&&p.point&&p.point.haloPath&&p.animate({d:p.point.haloPath(0)}),r.state=w}},H.Point.prototype.applyOptions=function(w,S){var x=this,c=x.series,g=c.options.pointValKey||c.pointValKey;return w=y.prototype.optionsToObject.call(this,w),z(x,w),x.options=x.options?z(x.options,w):w,w.group&&delete x.group,g&&(x.y=x[g]),x.isNull=M(x.isValid&&!x.isValid(),x.x===null||x.y===null||!I(x.y,!0)),x.selected&&(x.state="select"),"name"in x&&S===void 0&&c.xAxis&&c.xAxis.hasNames&&(x.x=c.xAxis.nameToX(x)),x.x===void 0&&c&&(x.x=S===void 0?c.autoIncrement(x):S),x},H.seriesTypes.column.prototype.pointAttribs=function(w,S){var x,c,g,r,a,t=this.options,i=this.pointAttrToOptions||{},o=i.stroke||"borderColor",e=i["stroke-width"]||"borderWidth",s=w&&w.color||this.color,n=w[o]||t[o]||this.color||s,l=w[e]||t[e]||this[e]||0,b=t.dashStyle;return w&&this.zones.length&&(s=(r=w.getZone())&&r.color||w.options.color||this.color),S&&(a=(x=t.states[S]).brightness,c=x.fillOpacity,s=x.color||a!==void 0&&U(s).brighten(x.brightness).get()||s,c&&c!==1&&(s=U(s).setOpacity(c).get("rgba")),n=x[o]||n,l=x[e]||l,b=x.dashStyle||b),g={fill:s,stroke:n,"stroke-width":l},t.borderRadius&&(g.r=t.borderRadius),b&&(g.dashstyle=b),g},H.seriesTypes.scatter.prototype.pointAttribs=function(w,S){var x=S?this.options.marker.states[S]:this.options.marker,c=M(x.fillOpacity,.5),g=P.prototype.pointAttribs.call(this,w,S);return c!==1&&(g.fill=U(g.fill).setOpacity(c).get("rgba")),g},H.seriesTypes.bubble.prototype.pointAttribs=function(w,S){var x=S?this.options.marker.states[S]:this.options.marker,c=M(x.fillOpacity,.5),g=P.prototype.pointAttribs.call(this,w,S);return c!==1&&(g.fill=U(g.fill).setOpacity(c).get("rgba")),g},H.seriesTypes.boxplot.prototype.pointAttribs=function(w,S){var x=S?this.options.states[S]:this.options,c=M(x.fillOpacity,.5),g=w&&w.color||this.color,r=w.fillColor||x.fillColor||g;return c!==1&&(r=U(r).setOpacity(c).get("rgba")),{fill:r,stroke:x.lineColor||g,"stroke-width":x.lineWidth||0}},H.Pointer.prototype.onContainerClick=function(w){var S,x,c,g=this.chart,r=g.hoverPoint,a=g.plotLeft,t=g.plotTop,i=g.inverted,o=w.type;w=this.normalize(w),g.cancelClick||(r&&this.inClass(w.target,v+"tracker")?(S=this.chartPosition,x=r.plotX,c=r.plotY,z(r,{pageX:S.left+a+(i?g.plotWidth-c:x),pageY:S.top+t+(i?g.plotHeight-x:c)}),Z(r.series,o,z(w,{point:r})),g.hoverPoint&&r.firePointEvent(o,w)):(z(w,this.getCoordinates(w)),g.isInsidePlot(w.chartX-a,w.chartY-t)&&Z(g,"click",w)))},H.wrap(H.Pointer.prototype,"onContainerMouseLeave",function(w,S){this.selectionMarker&&(this.selectionMarker.destroy(),this.selectionMarker=null),this.chart.mouseIsDown=!1,w.call(this,S)}),H.Pointer.prototype.onContainerTapHold=function(w){var S,x,c,g=this.chart,r=g.hoverPoint,a=g.plotLeft,t=g.plotTop,i=g.inverted,o="contextmenu";(w=this.normalize(w)).hasTapHold=!0,g.cancelClick||r&&this.inClass(w.target,v+"tracker")&&(S=this.chartPosition,x=r.plotX,c=r.plotY,z(r,{pageX:S.left+a+(i?g.plotWidth-c:x),pageY:S.top+t+(i?g.plotHeight-x:c)}),Z(r.series,o,z(w,{point:r})),g.hoverPoint&&(w.type="taphold",w.point=r,w.target=g,r.firePointEvent(o,w)))},H.Pointer.prototype.setDOMEvents=function(){var w,S=this,x=S.chart.container;this.unbindContainerMouseLeave=function(){},this._events=w=[[x,"onmousedown","onContainerMouseDown"],[x,"onmousemove","onContainerMouseMove"],[x,"onclick","onContainerClick"],[x,"mouseleave","onContainerMouseLeave"],[x,"contextmenu","onContainerClick"],[x,"mousemove","onDocumentMouseMove"],[x,"mouseup","onDocumentMouseUp"]],m&&f&&w.push([x,"taphold","onContainerClick"]),m&&w.push([x,"ontouchmove","onContainerTouchMove"],[x,"ontouchstart","onContainerTouchStart"],[x,"taphold","onContainerTapHold"],[document,"touchend","onDocumentTouchEnd"]),w.forEach(function(c){var g=ht(c,3),r=g[0],a=g[1],t=g[2];S["_"+t]=function(i){typeof S[c[2]]=="function"&&S[c[2]](i)},a.indexOf("on")===0?r[a]=S["_"+t]:r.addEventListener(a,S["_"+t])})},H.Navigator.prototype.updateNavigatorSeries=function(w){var S,x,c,g=this,r=g.chart,a=g.baseSeries,t=g.navigatorOptions.series,i={enableMouseTracking:!1,index:null,linkedTo:null,group:"nav",padXAxis:!1,xAxis:"navigator-x-axis",yAxis:"navigator-y-axis",showInLegend:!1,stacking:!1,isInternal:!0,visible:!0},o=g.series=(g.series||[]).filter(function(e){var s=e.baseSeries;return!(a.indexOf(s)<0&&(s&&(V(s,"updatedData",g.updatedDataHandler),delete s.navigatorSeries),e.destroy(),1))});a&&a.length&&a.forEach(function(e){var s=e.navigatorSeries,n=z({color:e.color},Array.isArray(t)?u.navigator.series:t);if(!s||g.navigatorOptions.adaptToUpdatedData!==!1){i.name="Navigator "+a.length,S=e.options||{},c=S.navigatorOptions||{},x=E(S,i,n,c);var l=c.data||n.data;g.hasNavigatorData=g.hasNavigatorData||!!l,x.data=l||S.data&&S.data.slice(0),x.data=(0,W.default)(x.data),(x.data||[]).forEach(function(b){b&&b.marker&&b.marker.enabled&&(b.marker.enabled=!1)}),x.color=S.color,x.fillOpacity=S.fillOpacity,x.type!=="spline"&&x.type!=="areaspline"||(x.stacking=S.stacking),S.stacking!=="percent"&&S.stacking!=="normal"||(x.stacking=S.stacking,x.startFromThreshold=!1),s&&s.options?s.update(x,w):(e.navigatorSeries=r.initSeries(x),e.navigatorSeries.baseSeries=e,o.push(e.navigatorSeries))}}),(!t.data||a&&a.length)&&!Array.isArray(t)||(g.hasNavigatorData=!1,(t=H.splat(t)).forEach(function(e,s){i.name="Navigator "+(o.length+1),(x=E(u.navigator.series,{color:r.series[s]&&!r.series[s].options.isInternal&&r.series[s].color||r.options.colors[s]||r.options.colors[0]},i,e)).data=e.data,x.data&&(g.hasNavigatorData=!0,o.push(r.initSeries(x)))})),this.addBaseSeriesEvents()},H.seriesTypes.scatter.prototype.drawLegendSymbol=H.seriesTypes.column.prototype.drawLegendSymbol,(0,R.wrap)(H.Pointer.prototype,"runPointActions",function(w,S,x){var c,g=S,r=this.chart;w.call(this,S,x);var a=r.hoverPoint,t=r.hoverSeries;if(g&&r.hoverPoint&&(e=g.touches?g.touches.length&&g.touches.item?g.touches.item(0):g.changedTouches?g.changedTouches[0]:g:g)&&e.clientX&&e.clientY){for(var i=document.elementFromPoint(e.clientX,e.clientY);i&&!c;)c=i.point,i=i.parentNode;c&&r.hoverPoint!=c&&c.onMouseOver(g)}(0,R.defined)(a)||(0,R.defined)(t)||(0,B.default)(r,"sisenseTipper.status")!=="on"||!r.sisenseTipper.tipper||(r.sisenseTipper.tipper.deactivate(),(0,it.default)(r,"sisenseTipper.status","off"));var o=(0,B.default)(r,"sisenseTipper.chartType");if((0,B.default)(r,"sisenseTipper.status")!=="off"&&(0,B.default)(r,"sisenseTipper.tipper")&&(o==="pie"||o==="scatter"||o==="bubble"||g.type==="touchmove")){var e=g.touches?g.touches.length&&g.touches.item?g.touches.item(0):g.changedTouches?g.changedTouches[0]:g:g;r.sisenseTipper.tipper.activate({x:e.clientX,y:e.clientY,space:0})}}),(0,R.wrap)(H.Chart.prototype,"getContainer",function(w,S,x){w.call(this,S,x);var c,g=this;g.renderTo=c=g.container.parentElement,c.setAttribute("data-type",(0,B.default)(g,"options.chart.type"))}),(0,R.wrap)(H.Pointer.prototype,"normalize",function(w,S,x){return w.apply(this,[].slice.call(arguments,1)),x&&S.chartY<0&&(S.chartY=100),S}),(0,R.wrap)(H.Chart.prototype,"setChartSize",function(w){var S,x,c,g,r=this.legend,a=this.navigator;if(w.apply(this,[].slice.call(arguments,1)),a){if(x=r&&r.options,c=a.xAxis,g=a.yAxis,S=a.scrollbarHeight,this.inverted){var t=a.opposite?this.chartWidth-S-a.height:this.spacing[3]+S,i=this.plotTop+S;x.align==="left"&&r.legendWidth&&(t+=r.legendWidth),a.left=a.navigatorOptions.left||t,a.top=a.navigatorOptions.top||i}c&&g&&(this.inverted?c.options.left=g.options.left=a.left:c.options.top=g.options.top=a.top,c.setAxisSize(),g.setAxisSize())}}),(0,R.wrap)(H.Chart.prototype,"renderLabels",function(w){var S,x,c,g=this;if(w.apply(this,[].slice.call(arguments,1)),g&&g.polar&&g.userOptions&&((S=g.userOptions)===null||S===void 0?void 0:S.labels)&&((c=(x=g.userOptions.labels)===null||x===void 0?void 0:x.items)===null||c===void 0?void 0:c.length)){var r=void 0,a=g.userOptions.labels.items[0].html,t=ut([],ht(g.container.querySelectorAll("text")),!1).find(function(b){return b.innerHTML.includes(a)}),i=g.containerWidth,o=t.clientWidth,e=t.getBBox(),s=e.height?e.height:20,n=i/2-o/2,l=void 0;g.legend.options.verticalAlign==="top"?(r=g.legend.legendHeight+20+s)>g.plotTop&&(l=20+s,r=g.legend.legendHeight+l/2+10,g.legend.update({margin:l},!0)):(r=20)>g.plotTop&&(l=20+s,r=10+s,g.update({chart:{marginTop:l}},!0)),t.setAttribute("x",n),t.setAttribute("y",r)}}),H.wrap(H.SVGElement.prototype,"titleSetter",function(w,S){var x,c,g=this.element.getElementsByTagName("title")[0];g||(g=document.createElementNS(this.SVG_NS,"title"),this.element.appendChild(g)),g.firstChild&&g.removeChild(g.firstChild),g.appendChild(document.createTextNode((x=this.renderer.escapes,c=S,H.objectEach(x,function(r,a){c=c.replace(new RegExp(r,"g"),a)}),c)))}),(0,R.wrap)(H.Chart.prototype,"renderLabels",function(w){w.apply(this,[].slice.call(arguments,1)),this.chartBackground.addClass("widget-body")}),(0,R.wrap)(H.Legend.prototype,"renderItem",function(w,S){var x=this,c=x.options,g=S.legendItem,r=S.series&&S.series.drawLegendSymbol?S.series:S,a=c.useHTML;w.apply(this,[].slice.call(arguments,1)),/msie|trident/i.exec(navigator.userAgent)&&S.legendItem.group.element.addEventListener("contextmenu",function(t){var i="legendItemClick",o={eventType:"contextmenu",browserEvent:t};return S.firePointEvent?S.firePointEvent(i,o,null):Z(r,i,o,null),!1}),(a?g:S.legendItem.group).on("mouseover",function(){var t;S.setState("hover"),g&&((t=g.css)===null||t===void 0||t.call(g,x.options.itemHoverStyle))}).on("contextmenu",function(t){var i="legendItemClick",o={eventType:"contextmenu",browserEvent:t};return S.firePointEvent?S.firePointEvent(i,o,null):Z(r,i,o,null),!1})}),(0,R.wrap)(H.Navigator.prototype,"shadesMousedown",function(w){this.chart.pointer&&(this.chart.pointer.chartPosition=null),w.apply(this,[].slice.call(arguments,1))}),(0,R.wrap)(H.Navigator.prototype,"handlesMousedown",function(w){this.chart.pointer&&(this.chart.pointer.chartPosition=null),w.apply(this,[].slice.call(arguments,1))}),(0,R.wrap)(H.StackItem.prototype,"render",function(w){var S=this.options,x=(0,B.default)(this,"axis.chart.options.chart.type");if(this.alignOptions&&this.total!==void 0&&(x==="column"||x==="bar"&&Math.abs(S.rotation)===90)&&(this.alignOptions.y=this.alignOptions.x=0),w.apply(this,[].slice.call(arguments,1)),this.total!==void 0){var c=this.label.getBBox(!0,0),g=this.label.getBBox(),r=-Math.sign(this.total),a=0,t=0;if(x==="column"?(this.total<0||Math.abs(S.rotation)===90?a=g.height/2*r:Math.abs(S.rotation)===45&&this.total>0&&(a=-c.width/2*Math.sin(45*Math.PI/180)),Math.abs(S.rotation)===45&&(t+=-g.width/4*r),Math.abs(S.rotation)===90&&(t+=c.height/4),a+=5*r):x==="bar"&&Math.abs(S.rotation)===90&&(a=-g.height/2*r,this.total>=0&&(t+=c.height/2),t+=-5*r),this.label.translate(t,a),this.label&&!this.label.labelrank){var i=this.total===0?Number.MIN_SAFE_INTEGER:0;this.label.labelrank=this.x+S.labelrank+i}}}),H.wrap(H,"fireEvent",function(w,S,x,c){var g=new Event(x),r=(0,B.default)(c,"changedTouches"),a=(0,B.default)(c,"point.graphic.element");z(g,c),r&&(g.clientX=(0,B.default)(r,"0.clientX"),g.clientY=(0,B.default)(r,"0.clientY"),g.target=a),w.apply(this,[].slice.call(arguments,1))}),(0,R.wrap)(H.Point.prototype,"getLabelConfig",function(w){var S=w.apply(this,[].slice.call(arguments,1));return this.originalY&&(S.y=this.originalY),S}),(0,R.wrap)(H.seriesTypes.column.prototype,"alignDataLabel",function(w,S,x,c){var g=S.series.options.stacking,r=this.chart.inverted,a=c.rotation,t=S.y<0&&S.dataLabel,i=S.dlBox,o=S.dataLabel.getBBox();if(!g&&t){S.below=!0;var e=E(S.dlBox||S.shapeArgs),s=r?o.width:o.height;e.y+=s,S.dlBox=e}else g&&(c.align="center");!g&&a&&(o=S.dataLabel.getBBox(),r?c.x+=.5*o.width:t&&Math.abs(a)%360==45&&(c.x=.5*-o.width));var n=w.apply(this,[].slice.call(arguments,1));return S.dlBox=i,n}),H.Scroller=H.Navigator}},3269:(ot,nt,st)=>{st.d(nt,{A:()=>V});const pt=(0,st(123).A)(Object,"create");var ht=Object.prototype.hasOwnProperty,ut=Object.prototype.hasOwnProperty;function ft($){var Z=-1,U=$==null?0:$.length;for(this.clear();++Z<U;){var z=$[Z];this.set(z[0],z[1])}}ft.prototype.clear=function(){this.__data__=pt?pt(null):{},this.size=0},ft.prototype.delete=function($){var Z=this.has($)&&delete this.__data__[$];return this.size-=Z?1:0,Z},ft.prototype.get=function($){var Z=this.__data__;if(pt){var U=Z[$];return U==="__lodash_hash_undefined__"?void 0:U}return ht.call(Z,$)?Z[$]:void 0},ft.prototype.has=function($){var Z=this.__data__;return pt?Z[$]!==void 0:ut.call(Z,$)},ft.prototype.set=function($,Z){var U=this.__data__;return this.size+=this.has($)?0:1,U[$]=pt&&Z===void 0?"__lodash_hash_undefined__":Z,this};const B=ft;var it=st(6096),W=st(5436);const R=function($,Z){var U,z,I=$.__data__;return((z=typeof(U=Z))=="string"||z=="number"||z=="symbol"||z=="boolean"?U!=="__proto__":U===null)?I[typeof Z=="string"?"string":"hash"]:I.map};function H($){var Z=-1,U=$==null?0:$.length;for(this.clear();++Z<U;){var z=$[Z];this.set(z[0],z[1])}}H.prototype.clear=function(){this.size=0,this.__data__={hash:new B,map:new(W.A||it.A),string:new B}},H.prototype.delete=function($){var Z=R(this,$).delete($);return this.size-=Z?1:0,Z},H.prototype.get=function($){return R(this,$).get($)},H.prototype.has=function($){return R(this,$).has($)},H.prototype.set=function($,Z){var U=R(this,$),z=U.size;return U.set($,Z),this.size+=U.size==z?0:1,this};const V=H},3516:(ot,nt,st)=>{st.d(nt,{A:()=>pt});const pt=st(9600).A.Symbol},3897:function(ot,nt,st){var pt=this&&this.__importDefault||function(B){return B&&B.__esModule?B:{default:B}};Object.defineProperty(nt,"__esModule",{value:!0});var ht=pt(st(8552)),ut=st(622),ft=pt(st(605));nt.default=function(B){var it=B.wrap;it(B.seriesTypes.pie.prototype,"drawDataLabels",function(W,R,H){var V,$=this,Z=$.chart.renderer;W.call(this,R,H);var U=function(E){var M,P,y,h,f,m,u,v,w,S,x,c,g,r,a,t,i,o,e,s,n=(0,ht.default)(E,"shapeArgs.x")+E.series.chart.plotBox.x,l=(0,ht.default)(E,"shapeArgs.y")+E.series.chart.plotBox.y,b=(0,ht.default)(E,"shapeArgs.innerR"),k=(0,ht.default)(E,"shapeArgs.r")-b,D={},p=E.shapeArgs;y=p.r*Math.sin(p.start+1.571)+n,h=p.r*Math.cos(p.start+1.571)*-1+l,x=y-(M=p.r*Math.sin((p.end+1.571+p.start+1.571)/2)+n),c=h-(P=p.r*Math.cos((p.end+1.571+p.start+1.571)/2)*-1+l),S=l-h,(w=n-y)==0?(u=1,v=0,r=1):(u=S/w,v=1,r=Math.sqrt(Math.pow(u,2)+Math.pow(v,2)),p.start+1.571>Math.PI?v*=-1:u*=-1),f=n-M,a=(w*c/S-x)/(w*(m=l-P)/(S*(g=Math.sqrt(Math.pow(f,2)+Math.pow(m,2))))-w*v/(S*r)+u/r-f/g),t=M+f/g*Math.abs(a),i=P+m/g*Math.abs(a),o=Math.sqrt(Math.pow(t-M,2)+Math.pow(i-P,2));var C=p.end-p.start,A=Math.round((0,ut.radiansToDegrees)(C)),N=(0,ut.radiansToDegrees)(Math.PI);return(2*o>k||A>=N)&&(t=M+f/g*(o=k/2),i=P+m/g*o),s=(0,ht.default)(E,"series.chart.options.plotOptions.pie.dataLabels.showDecimals")===!0?E.percentage.toFixed(1).replace(".0",""):Math.round(E.percentage),(0,ut.defined)(D[s])?e=D[s]:(e=o/1.5,D[s]=e),{fontSize:e,slicePercentage:s,newCenterX:t,newCenterY:i,circleCenterX:n,circleCenterY:l}},z=function(E,M,P,y){var h=Z.text(M.slicePercentage+"%",M.newCenterX,M.newCenterY),f={class:"pie-percent-label",zIndex:13,"text-anchor":"middle","font-size":M.fontSize},m={"pointer-events":"none","font-family":(0,ht.default)(y,"options.dataLabels.style.fontFamily",ft.default.fontFamily),"letter-spacing":"-0.05em",color:"white",fontSize:!1},u=h.attr(f).attr(P).add(),v=h.element.getBBox().height/4,w={x:M.newCenterX,y:M.newCenterY+v};E.sisenseLabel=u.css(m).attr(w).add()},I=(0,ht.default)($,"chart.options.chart.isHighlightMode");$.points.forEach(function(E){var M,P;if(E.graphic){if((0,ht.default)(E,"series.chart.options.plotOptions.pie.dataLabels.showPercentLabels")===!0)if(M=U(E),P=(0,ht.default)(E,"series.chart.options.plotOptions.pie.dataLabels.pieMinimumFontSizeToTextLabel"),M.fontSize>P)if((0,ut.defined)((0,ht.default)(E,"sisenseLabel.element"))){var y={x:M.newCenterX,y:M.newCenterY};I&&(y.translateX=E.sliced?E.slicedTranslation.translateX:0,y.translateY=E.sliced?E.slicedTranslation.translateY:0),E.sisenseLabel.attr({text:M.slicePercentage+"%","font-size":M.fontSize}).animate(y)}else z(E,M,V,$),E.sisenseLabel&&I&&((y={x:M.newCenterX,y:M.newCenterY}).translateX=E.sliced?E.slicedTranslation.translateX:0,y.translateY=E.sliced?E.slicedTranslation.translateY:0,E.sisenseLabel.attr({text:M.slicePercentage+"%","font-size":M.fontSize}).attr(y));else(0,ut.defined)((0,ht.default)(E,"sisenseLabel.element"))&&E.sisenseLabel.destroy()}else(0,ht.default)(E,"series.chart.options.plotOptions.pie.dataLabels.showPercentLabels")===!0&&(M=U(E),P=(0,ht.default)(E,"series.chart.options.plotOptions.pie.dataLabels.pieMinimumFontSizeToTextLabel"),M.fontSize>P&&z(E,M,V,$))})}),it(B.Point.prototype,"destroyElements",function(W,R,H){for(var V,$=this,Z=["decoration","sisenseLabel"],U=Z.length;U--;)$[V=Z[U]]&&$.visible&&$[V].renderer&&$[V].destroy();W.call(this,R,H)}),it(B.seriesTypes.pie.prototype.pointClass.prototype,"slice",function(W){W.apply(this,[].slice.call(arguments,1)),(0,ht.default)(this,"sisenseLabel.renderer")&&this.sisenseLabel.animate(this.getTranslate())}),B.seriesTypes.pie.prototype.placeDataLabels=function(){this.points.forEach(function(W){var R,H=W.dataLabel;H&&W.visible&&((R=H._pos)?(H.sideOverflow&&(H._attr.width=H.getBBox().width-H.sideOverflow,H.css({width:H._attr.width+"px",textOverflow:"ellipsis"}),H.shortened=!0),H.attr(H._attr),H[H.moved?"animate":"attr"](R),H.moved=!0):H&&H.attr({y:-9999}))},this)},B.Point.prototype.getClassName=function(){return"highcharts-point"+(this.selected||this.sliced?" highcharts-point-select":"")+(this.negative?" highcharts-negative":"")+(this.isNull?" highcharts-null-point":"")+(this.colorIndex!==void 0?" highcharts-color-"+this.colorIndex:"")+(this.options.className?" "+this.options.className:"")+(this.zone&&this.zone.className?" "+this.zone.className.replace("highcharts-negative",""):"")}}},3966:function(ot,nt,st){var pt=this&&this.__importDefault||function(ut){return ut&&ut.__esModule?ut:{default:ut}};Object.defineProperty(nt,"__esModule",{value:!0});var ht=pt(st(368));nt.default=ht.default},4044:(ot,nt,st)=>{st.d(nt,{A:()=>R});var pt=st(3516),ht=Object.prototype,ut=ht.hasOwnProperty,ft=ht.toString,B=pt.A?pt.A.toStringTag:void 0,it=Object.prototype.toString,W=pt.A?pt.A.toStringTag:void 0;const R=function(H){return H==null?H===void 0?"[object Undefined]":"[object Null]":W&&W in Object(H)?function(V){var $=ut.call(V,B),Z=V[B];try{V[B]=void 0;var U=!0}catch(I){}var z=ft.call(V);return U&&($?V[B]=Z:delete V[B]),z}(H):function(V){return it.call(V)}(H)}},4089:(ot,nt,st)=>{st.d(nt,{A:()=>ut});var pt=st(4044),ht=st(7313);const ut=function(ft){return typeof ft=="symbol"||(0,ht.A)(ft)&&(0,pt.A)(ft)=="[object Symbol]"}},4441:(ot,nt,st)=>{st.r(nt),st.d(nt,{default:()=>it});var pt=st(6124),ht=st(5118),ut=st(5378),ft=st(7942),B=st(9322);const it=function(W,R,H){return W==null?W:function(V,$,Z,U){if(!(0,ft.A)(V))return V;for(var z=-1,I=($=(0,ht.A)($,V)).length,E=I-1,M=V;M!=null&&++z<I;){var P=(0,B.A)($[z]),y=Z;if(P==="__proto__"||P==="constructor"||P==="prototype")return V;if(z!=E){var h=M[P];(y=void 0)==void 0&&(y=(0,ft.A)(h)?h:(0,ut.A)($[z+1])?[]:{})}(0,pt.A)(M,P,y),M=M[P]}return V}(W,R,H)}},4459:(ot,nt,st)=>{var pt,ht,ut;ut=function(ft){var B=ft?ft._modules:{};function it(W,R,H,V){W.hasOwnProperty(R)||(W[R]=V.apply(null,H),typeof CustomEvent=="function"&&window.dispatchEvent(new CustomEvent("HighchartsModuleLoaded",{detail:{path:R,module:W[R]}})))}it(B,"Extensions/Breadcrumbs.js",[B["Core/Chart/Chart.js"],B["Core/Defaults.js"],B["Core/Globals.js"],B["Core/Utilities.js"],B["Core/FormatUtilities.js"]],function(W,R,H,V,$){var Z=R.defaultOptions,U=$.format,z=V.addEvent,I=V.objectEach,E=V.extend,M=V.fireEvent,P=V.merge,y=V.pick,h=V.defined,f=V.isString;E(Z.lang,{mainBreadcrumb:"Main"});var m=function(){function u(v,w){this.group=void 0,this.list=[],this.elementList={},this.isDirty=!0,this.level=0,this.options=void 0;var S=P(v.options.drilldown&&v.options.drilldown.drillUpButton,u.defaultBreadcrumbsOptions,v.options.navigation&&v.options.navigation.breadcrumbs,w);this.chart=v,this.options=S||{}}return u.prototype.updateProperties=function(v){this.setList(v),this.setLevel(),this.isDirty=!0},u.prototype.setList=function(v){this.list=v},u.prototype.setLevel=function(){this.level=this.list.length&&this.list.length-1},u.prototype.getLevel=function(){return this.level},u.prototype.getButtonText=function(v){var w=this.chart,S=this.options,x=w.options.lang,c=y(S.format,S.showFullPath?"{level.name}":"← {level.name}"),g=x&&y(x.drillUpText,x.mainBreadcrumb),r=S.formatter&&S.formatter(v)||U(c,{level:v.levelOptions},w)||"";return(f(r)&&!r.length||r==="← ")&&h(g)&&(r=S.showFullPath?g:"← "+g),r},u.prototype.redraw=function(){this.isDirty&&this.render(),this.group&&this.group.align(),this.isDirty=!1},u.prototype.render=function(){var v=this,w=v.chart,S=v.options;!v.group&&S&&(v.group=w.renderer.g("breadcrumbs-group").addClass("highcharts-no-tooltip highcharts-breadcrumbs").attr({zIndex:S.zIndex}).add()),S.showFullPath?this.renderFullPathButtons():this.renderSingleButton(),this.alignBreadcrumbsGroup()},u.prototype.renderFullPathButtons=function(){this.destroySingleButton(),this.resetElementListState(),this.updateListElements(),this.destroyListElements()},u.prototype.renderSingleButton=function(){var v=this,w=v.chart,S=v.list,x=v.options.buttonSpacing;this.destroyListElements();var c=v.group?v.group.getBBox().width:x,g=x,r=S[S.length-2];!w.drillUpButton&&this.level>0?w.drillUpButton=v.renderButton(r,c,g):w.drillUpButton&&(this.level>0?this.updateSingleButton():this.destroySingleButton())},u.prototype.alignBreadcrumbsGroup=function(v){var w=this;if(w.group){var S=w.options,x=S.buttonTheme,c=S.position,g=S.relativeTo==="chart"||S.relativeTo==="spacingBox"?void 0:"scrollablePlotBox",r=w.group.getBBox(),a=2*(x.padding||0)+S.buttonSpacing;c.width=r.width+a,c.height=r.height+a;var t=P(c);v&&(t.x+=v),w.options.rtl&&(t.x+=c.width),t.y=y(t.y,this.yOffset,0),w.group.align(t,!0,g)}},u.prototype.renderButton=function(v,w,S){var x=this,c=this.chart,g=x.options,r=P(g.buttonTheme),a=c.renderer.button(x.getButtonText(v),w,S,function(t){var i,o=g.events&&g.events.click;o&&(i=o.call(x,t,v)),i!==!1&&(g.showFullPath?t.newLevel=v.level:t.newLevel=x.level-1,M(x,"up",t))},r).addClass("highcharts-breadcrumbs-button").add(x.group);return c.styledMode||a.attr(g.style),a},u.prototype.renderSeparator=function(v,w){var S=this.chart,x=this.options.separator,c=S.renderer.label(x.text,v,w,void 0,void 0,void 0,!1).addClass("highcharts-breadcrumbs-separator").add(this.group);return S.styledMode||c.css(x.style),c},u.prototype.update=function(v){P(!0,this.options,v),this.destroy(),this.isDirty=!0},u.prototype.updateSingleButton=function(){var v=this.chart,w=this.list[this.level-1];v.drillUpButton&&v.drillUpButton.attr({text:this.getButtonText(w)})},u.prototype.destroy=function(){this.destroySingleButton(),this.destroyListElements(!0),this.group&&this.group.destroy(),this.group=void 0},u.prototype.destroyListElements=function(v){var w=this.elementList;I(w,function(S,x){!v&&w[x].updated||((S=w[x]).button&&S.button.destroy(),S.separator&&S.separator.destroy(),delete S.button,delete S.separator,delete w[x])}),v&&(this.elementList={})},u.prototype.destroySingleButton=function(){this.chart.drillUpButton&&(this.chart.drillUpButton.destroy(),this.chart.drillUpButton=void 0)},u.prototype.resetElementListState=function(){I(this.elementList,function(v){v.updated=!1})},u.prototype.updateListElements=function(){var v,w=this,S=w.elementList,x=w.options.buttonSpacing,c=w.list,g=w.options.rtl,r=g?-1:1,a=function(e,s){return r*e.getBBox().width+r*s},t=function(e,s,n){e.translate(s-e.getBBox().width,n)},i=w.group?a(w.group,x):x,o=x;c.forEach(function(e,s){var n,l,b=s===c.length-1;S[e.level]?(n=(v=S[e.level]).button,v.separator||b?v.separator&&b&&(v.separator.destroy(),delete v.separator):(i+=r*x,v.separator=w.renderSeparator(i,o),g&&t(v.separator,i,o),i+=a(v.separator,x)),S[e.level].updated=!0):(n=w.renderButton(e,i,o),g&&t(n,i,o),i+=a(n,x),b||(l=w.renderSeparator(i,o),g&&t(l,i,o),i+=a(l,x)),S[e.level]={button:n,separator:l,updated:!0}),n&&n.setState(b?2:0)})},u.defaultBreadcrumbsOptions={buttonTheme:{fill:"none",height:18,padding:2,"stroke-width":0,zIndex:7,states:{select:{fill:"none"}},style:{color:"#335cad"}},buttonSpacing:5,floating:!1,format:void 0,relativeTo:"plotBox",rtl:!1,position:{align:"left",verticalAlign:"top",x:0,y:void 0},separator:{text:"/",style:{color:"#666666"}},showFullPath:!0,style:{},useHTML:!1,zIndex:7},u}();return H.Breadcrumbs||(H.Breadcrumbs=m,z(W,"getMargins",function(){var u=this.breadcrumbs;if(u&&!u.options.floating&&u.level){var v=u.options,w=v.buttonTheme,S=(w.height||0)+2*(w.padding||0)+v.buttonSpacing,x=v.position.verticalAlign;x==="bottom"?(this.marginBottom=(this.marginBottom||0)+S,u.yOffset=S):x!=="middle"?(this.plotTop+=S,u.yOffset=-S):u.yOffset=void 0}}),z(W,"redraw",function(){this.breadcrumbs&&this.breadcrumbs.redraw()}),z(W,"destroy",function(){this.breadcrumbs&&(this.breadcrumbs.destroy(),this.breadcrumbs=void 0)}),z(W,"afterShowResetZoom",function(){var u=this;if(u.breadcrumbs){var v=u.resetZoomButton&&u.resetZoomButton.getBBox(),w=u.breadcrumbs.options;v&&w.position.align==="right"&&w.relativeTo==="plotBox"&&u.breadcrumbs.alignBreadcrumbsGroup(-v.width-w.buttonSpacing)}}),z(W,"selection",function(u){u.resetSelection===!0&&this.breadcrumbs&&this.breadcrumbs.alignBreadcrumbsGroup()})),m}),it(B,"Extensions/Drilldown.js",[B["Core/Animation/AnimationUtilities.js"],B["Core/Axis/Axis.js"],B["Core/Chart/Chart.js"],B["Core/Color/Color.js"],B["Series/Column/ColumnSeries.js"],B["Core/Globals.js"],B["Core/Defaults.js"],B["Core/Series/Point.js"],B["Core/Series/Series.js"],B["Core/Series/SeriesRegistry.js"],B["Core/Renderer/SVG/SVGRenderer.js"],B["Core/Axis/Tick.js"],B["Core/Utilities.js"],B["Extensions/Breadcrumbs.js"]],function(W,R,H,V,$,Z,U,z,I,E,M,P,y,h){var f=W.animObject,m=Z.noop,u=U.defaultOptions,v=E.seriesTypes,w=y.addEvent,S=y.removeEvent,x=y.extend,c=y.fireEvent,g=y.merge,r=y.objectEach,a=y.pick,t=y.syncTimeout,i=v.pie,o=1;x(u.lang,{}),u.drilldown={activeAxisLabelStyle:{cursor:"pointer",color:"#003399",fontWeight:"bold",textDecoration:"underline"},activeDataLabelStyle:{cursor:"pointer",color:"#003399",fontWeight:"bold",textDecoration:"underline"},animation:{duration:500},drillUpButton:{position:{align:"right",x:-10,y:10}}},M.prototype.Element.prototype.fadeIn=function(b){this.attr({opacity:.1,visibility:"inherit"}).animate({opacity:a(this.newOpacity,1)},b||{duration:250})},H.prototype.addSeriesAsDrilldown=function(b,k){this.addSingleSeriesAsDrilldown(b,k),this.applyDrilldown()},H.prototype.addSingleSeriesAsDrilldown=function(b,k){var D,p,C,A,N,_,L=b.series,O=L.xAxis,j=L.yAxis,Y=[],X=[];_=this.styledMode?{colorIndex:a(b.colorIndex,L.colorIndex)}:{color:b.color||L.color},this.drilldownLevels||(this.drilldownLevels=[]),A=L.options._levelNumber||0,(N=this.drilldownLevels[this.drilldownLevels.length-1])&&N.levelNumber!==A&&(N=void 0),k=x(x({_ddSeriesId:o++},_),k),p=L.points.indexOf(b),L.chart.series.forEach(function(G){G.xAxis!==O||G.isDrilling||(G.options._ddSeriesId=G.options._ddSeriesId||o++,G.options._colorIndex=G.userOptions._colorIndex,G.options._levelNumber=G.options._levelNumber||A,N?(Y=N.levelSeries,X=N.levelSeriesOptions):(Y.push(G),G.purgedOptions=g({_ddSeriesId:G.options._ddSeriesId,_levelNumber:G.options._levelNumber,selected:G.options.selected},G.userOptions),X.push(G.purgedOptions)))}),C=x({levelNumber:A,seriesOptions:L.options,seriesPurgedOptions:L.purgedOptions,levelSeriesOptions:X,levelSeries:Y,shapeArgs:b.shapeArgs,bBox:b.graphic?b.graphic.getBBox():{},color:b.isNull?V.parse(_.color).setOpacity(0).get():_.color,lowerSeriesOptions:k,pointOptions:L.options.data[p],pointIndex:p,oldExtremes:{xMin:O&&O.userMin,xMax:O&&O.userMax,yMin:j&&j.userMin,yMax:j&&j.userMax},resetZoomButton:N&&N.levelNumber===A?void 0:this.resetZoomButton},_),this.drilldownLevels.push(C),O&&O.names&&(O.names.length=0),(D=C.lowerSeries=this.addSeries(k,!1)).options._levelNumber=A+1,O&&(O.oldPos=O.pos,O.userMin=O.userMax=null,j.userMin=j.userMax=null),L.type===D.type&&(D.animate=D.animateDrilldown||m,D.options.animation=!0)},H.prototype.applyDrilldown=function(){var b,k=this.drilldownLevels;k&&k.length>0&&(b=k[k.length-1].levelNumber,this.drilldownLevels.forEach(function(D){D.levelNumber===b&&D.levelSeries.forEach(function(p){p.options&&p.options._levelNumber===b&&p.remove(!1)})})),this.resetZoomButton&&(this.resetZoomButton.hide(),delete this.resetZoomButton),this.pointer.reset(),c(this,"afterDrilldown"),this.redraw(),c(this,"afterApplyDrilldown")};var e=function(b){var k=[],D=b.drilldownLevels;return D&&D.length&&(k[0]||k.push({level:0,levelOptions:D[0].seriesOptions}),D.forEach(function(p,C){var A=k[k.length-1];p.levelNumber+1>A.level&&k.push({level:p.levelNumber+1,levelOptions:g({name:p.lowerSeries.name},p.pointOptions)})})),k};function s(b){var k=f(this.chart.options.drilldown.animation);b&&(b.hide(),t(function(){b&&b.added&&b.fadeIn()},Math.max(k.duration-50,0)))}H.prototype.drillUp=function(){if(this.drilldownLevels&&this.drilldownLevels.length!==0){c(this,"beforeDrillUp");for(var b,k,D,p,C,A=this,N=A.drilldownLevels,_=N[N.length-1].levelNumber,L=N.length,O=A.series,j=function(X){var G;O.forEach(function(q){q.options._ddSeriesId===X._ddSeriesId&&(G=q)}),(G=G||A.addSeries(X,!1)).type===D.type&&G.animateDrillupTo&&(G.animate=G.animateDrillupTo),X===k.seriesPurgedOptions&&(p=G)},Y=A.drilldownLevels.length;L--;)if((k=N[L]).levelNumber===_){if(N.pop(),!(D=k.lowerSeries).chart){for(b=O.length;b--;)if(O[b].options.id===k.lowerSeriesOptions.id&&O[b].options._levelNumber===_+1){D=O[b];break}}D.xData=[],D.xAxis&&D.xAxis.names&&(Y===0||L===Y)&&(D.xAxis.names.length=0),k.levelSeriesOptions.forEach(j),c(A,"drillup",{seriesOptions:k.seriesPurgedOptions||k.seriesOptions}),p.type===D.type&&(p.drilldownLevel=k,p.options.animation=A.options.drilldown.animation,D.animateDrillupFrom&&D.chart&&D.animateDrillupFrom(k)),p.options._levelNumber=_,D.remove(!1),p.xAxis&&(C=k.oldExtremes,p.xAxis.setExtremes(C.xMin,C.xMax,!1),p.yAxis.setExtremes(C.yMin,C.yMax,!1)),k.resetZoomButton&&(A.resetZoomButton=k.resetZoomButton)}c(A,"afterDrillUp"),this.redraw(),this.ddDupes&&(this.ddDupes.length=0),c(A,"drillupall")}},w(H,"afterInit",function(){var b=this;b.drilldown={chart:b,fadeInGroup:s,update:function(k,D){g(!0,b.options.drilldown,k),a(D,!0)&&b.redraw()}}}),w(H,"render",function(){(this.xAxis||[]).forEach(function(b){b.ddPoints={},b.series.forEach(function(k){var D,p,C=k.xData||[],A=k.points;for(D=0;D<C.length;D++)if(typeof(p=k.options.data[D])!="number"&&(p=k.pointClass.prototype.optionsToObject.call({series:k},p)).drilldown){b.ddPoints[C[D]]||(b.ddPoints[C[D]]=[]);var N=D-(k.cropStart||0);b.ddPoints[C[D]].push(!(A&&N>=0&&N<A.length)||A[N])}}),r(b.ticks,P.prototype.drillable)})}),w(Z.Breadcrumbs,"up",function(b){for(var k=this.chart,D=this.getLevel()-b.newLevel,p=0;p<D;p++)k.drillUp()}),w(H,"afterDrilldown",function(){var b=this,k=b.options.drilldown,D=k&&k.breadcrumbs;b.breadcrumbs||(b.breadcrumbs=new h(b,D)),b.breadcrumbs.updateProperties(e(b))}),w(H,"afterDrillUp",function(){var b=this;b.breadcrumbs&&b.breadcrumbs.updateProperties(e(b))}),w(H,"update",function(b){var k=this.breadcrumbs,D=b.options.drilldown&&b.options.drilldown.breadcrumbs;k&&D&&k.update(b.options.drilldown.breadcrumbs)}),$.prototype.animateDrillupTo=function(b){if(!b){var k=this,D=k.drilldownLevel;this.points.forEach(function(p){var C=p.dataLabel;p.graphic&&p.graphic.hide(),C&&(C.hidden=C.attr("visibility")==="hidden",C.hidden||(C.hide(),p.connector&&p.connector.hide()))}),t(function(){if(k.points){var p=[];k.data.forEach(function(C){p.push(C)}),k.nodes&&(p=p.concat(k.nodes)),p.forEach(function(C,A){var N=A===(D&&D.pointIndex)?"show":"fadeIn",_=N==="show"||void 0,L=C.dataLabel;C.graphic&&C.graphic[N](_),L&&!L.hidden&&(L.fadeIn(),C.connector&&C.connector.fadeIn())})}},Math.max(this.chart.options.drilldown.animation.duration-50,0)),delete this.animate}},$.prototype.animateDrilldown=function(b){var k,D=this,p=this.chart,C=p.drilldownLevels,A=f(p.options.drilldown.animation),N=this.xAxis,_=p.styledMode;b||(C.forEach(function(L){D.options._ddSeriesId===L.lowerSeriesOptions._ddSeriesId&&(k=L.shapeArgs,_||(k.fill=L.color))}),k.x+=a(N.oldPos,N.pos)-N.pos,this.points.forEach(function(L){var O=L.shapeArgs;_||(O.fill=L.color),L.graphic&&L.graphic.attr(k).animate(x(L.shapeArgs,{fill:L.color||D.color}),A)}),p.drilldown&&p.drilldown.fadeInGroup(this.dataLabelsGroup),delete this.animate)},$.prototype.animateDrillupFrom=function(b){var k=f(this.chart.options.drilldown.animation),D=this.group,p=D!==this.chart.columnGroup,C=this;C.trackerGroups.forEach(function(A){C[A]&&C[A].on("mouseover")}),p&&delete this.group,this.points.forEach(function(A){var N=A.graphic,_=b.shapeArgs,L=function(){N.destroy(),D&&p&&(D=D.destroy())};N&&_&&(delete A.graphic,C.chart.styledMode||(_.fill=b.color),k.duration?N.animate(_,g(k,{complete:L})):(N.attr(_),L()))})},i&&x(i.prototype,{animateDrillupTo:$.prototype.animateDrillupTo,animateDrillupFrom:$.prototype.animateDrillupFrom,animateDrilldown:function(b){var k=this.chart.drilldownLevels[this.chart.drilldownLevels.length-1],D=this.chart.options.drilldown.animation;if(this.is("item")&&(D.duration=0),this.center){var p=k.shapeArgs,C=p.start,A=(p.end-C)/this.points.length,N=this.chart.styledMode;b||(this.points.forEach(function(_,L){var O=_.shapeArgs;N||(p.fill=k.color,O.fill=_.color),_.graphic&&_.graphic.attr(g(p,{start:C+L*A,end:C+(L+1)*A}))[D?"animate":"attr"](O,D)}),this.chart.drilldown&&this.chart.drilldown.fadeInGroup(this.dataLabelsGroup),delete this.animate)}}}),z.prototype.doDrilldown=function(){this.runDrilldown()},z.prototype.runDrilldown=function(b,k,D){var p,C=this.series.chart,A=C.options.drilldown,N=(A.series||[]).length;for(C.ddDupes||(C.ddDupes=[]);N--&&!p;)A.series[N].id===this.drilldown&&C.ddDupes.indexOf(this.drilldown)===-1&&(p=A.series[N],C.ddDupes.push(this.drilldown));c(C,"drilldown",{point:this,seriesOptions:p,category:k,originalEvent:D,points:k!==void 0&&this.series.xAxis.getDDPoints(k).slice(0)},function(_){var L=_.point.series&&_.point.series.chart,O=_.seriesOptions;L&&O&&(b?L.addSingleSeriesAsDrilldown(_.point,O):L.addSeriesAsDrilldown(_.point,O))})},R.prototype.drilldownCategory=function(b,k){this.getDDPoints(b).forEach(function(D){D&&D.series&&D.series.visible&&D.runDrilldown&&D.runDrilldown(!0,b,k)}),this.chart.applyDrilldown()},R.prototype.getDDPoints=function(b){return this.ddPoints&&this.ddPoints[b]||[]},P.prototype.drillable=function(){var b=this.pos,k=this.label,D=this.axis,p=D.coll==="xAxis"&&D.getDDPoints,C=p&&D.getDDPoints(b),A=D.chart.styledMode;p&&(k&&C&&C.length?(k.drillable=!0,k.basicStyles||A||(k.basicStyles=g(k.styles)),k.addClass("highcharts-drilldown-axis-label"),k.removeOnDrillableClick&&S(k.element,"click"),k.removeOnDrillableClick=w(k.element,"click",function(N){N.preventDefault(),D.drilldownCategory(b,N)}),A||k.css(D.chart.options.drilldown.activeAxisLabelStyle)):k&&k.drillable&&k.removeOnDrillableClick&&(A||(k.styles={},k.element.removeAttribute("style"),k.css(k.basicStyles)),k.removeOnDrillableClick(),k.removeClass("highcharts-drilldown-axis-label")))},w(z,"afterInit",function(){var b=this;return b.drilldown&&!b.unbindDrilldownClick&&(b.unbindDrilldownClick=w(b,"click",n)),b}),w(z,"update",function(b){var k=this,D=b.options||{};D.drilldown&&!k.unbindDrilldownClick?k.unbindDrilldownClick=w(k,"click",n):!D.drilldown&&D.drilldown!==void 0&&k.unbindDrilldownClick&&(k.unbindDrilldownClick=k.unbindDrilldownClick())});var n=function(b){var k=this,D=k.series;D.xAxis&&D.chart.options.drilldown.allowPointDrilldown===!1?D.xAxis.drilldownCategory(k.x,b):k.runDrilldown(void 0,void 0,b)};w(I,"afterDrawDataLabels",function(){var b=this.chart.options.drilldown.activeDataLabelStyle,k=this.chart.renderer,D=this.chart.styledMode;this.points.forEach(function(p){var C=p.options.dataLabels,A=a(p.dlOptions,C&&C.style,{});p.drilldown&&p.dataLabel&&(b.color!=="contrast"||D||(A.color=k.getContrast(p.color||this.color)),C&&C.color&&(A.color=C.color),p.dataLabel.addClass("highcharts-drilldown-data-label"),D||p.dataLabel.css(b).css(A))},this)});var l=function(b,k,D,p){b[D?"addClass":"removeClass"]("highcharts-drilldown-point"),p||b.css({cursor:k})};w(I,"afterDrawTracker",function(){var b=this.chart.styledMode;this.points.forEach(function(k){k.drilldown&&k.graphic&&l(k.graphic,"pointer",!0,b)})}),w(z,"afterSetState",function(){var b=this.series.chart.styledMode;this.drilldown&&this.series.halo&&this.state==="hover"?l(this.series.halo,"pointer",!0,b):this.series.halo&&l(this.series.halo,"auto",!1,b)}),w(H,"drillup",function(){this.resetZoomButton&&(this.resetZoomButton=this.resetZoomButton.destroy())}),w(H,"drillupall",function(){this.resetZoomButton&&this.showResetZoom()})}),it(B,"masters/modules/drilldown.src.js",[],function(){})},ot.exports?(ut.default=ut,ot.exports=ut):(pt=[st(4783)],(ht=function(ft){return ut(ft),ut.Highcharts=ft,ut}.apply(nt,pt))===void 0||(ot.exports=ht))},4501:(ot,nt,st)=>{st.r(nt),st.d(nt,{default:()=>pt});const pt=function(ht){return ht===void 0}},4608:function(ot,nt,st){var pt=this&&this.__importDefault||function(y){return y&&y.__esModule?y:{default:y}};Object.defineProperty(nt,"__esModule",{value:!0});var ht=pt(st(5134)),ut=pt(st(1039)),ft=pt(st(6725)),B=pt(st(6660)),it=pt(st(4459)),W=pt(st(2060)),R=pt(st(6236)),H=pt(st(6512)),V=pt(st(5098)),$=pt(st(4812)),Z=pt(st(2397)),U=pt(st(50)),z=pt(st(5322)),I=pt(st(3897)),E=pt(st(362)),M=pt(st(3039)),P=pt(st(3966));(0,ft.default)(ht.default),(0,ut.default)(ht.default),(0,B.default)(ht.default),(0,it.default)(ht.default),(0,W.default)(ht.default),(0,R.default)(ht.default),(0,H.default)(ht.default),(0,$.default)(ht.default),(0,V.default)(ht.default),(0,z.default)(ht.default),(0,I.default)(ht.default),(0,E.default)(ht.default),(0,M.default)(ht.default),(0,Z.default)(ht.default),(0,U.default)(ht.default),ht.default.setOptions(P.default),nt.default=ht.default},4783:function(ot,nt,st){var pt,ht,ut;ht=typeof window!="undefined"?window:this,ut=function(ft){function B(W,R,H,V){W.hasOwnProperty(R)||(W[R]=V.apply(null,H),typeof CustomEvent=="function"&&ft.dispatchEvent(new CustomEvent("HighchartsModuleLoaded",{detail:{path:R,module:W[R]}})))}var it={};return B(it,"Core/Globals.js",[],function(){var W;return function(R){R.SVG_NS="http://www.w3.org/2000/svg",R.product="Highcharts",R.version="10.3.3",R.win=ft!==void 0?ft:{},R.doc=R.win.document,R.svg=R.doc&&R.doc.createElementNS&&!!R.doc.createElementNS(R.SVG_NS,"svg").createSVGRect,R.userAgent=R.win.navigator&&R.win.navigator.userAgent||"",R.isChrome=R.userAgent.indexOf("Chrome")!==-1,R.isFirefox=R.userAgent.indexOf("Firefox")!==-1,R.isMS=/(edge|msie|trident)/i.test(R.userAgent)&&!R.win.opera,R.isSafari=!R.isChrome&&R.userAgent.indexOf("Safari")!==-1,R.isTouchDevice=/(Mobile|Android|Windows Phone)/.test(R.userAgent),R.isWebKit=R.userAgent.indexOf("AppleWebKit")!==-1,R.deg2rad=2*Math.PI/360,R.hasBidiBug=R.isFirefox&&4>parseInt(R.userAgent.split("Firefox/")[1],10),R.hasTouch=!!R.win.TouchEvent,R.marginNames=["plotTop","marginRight","marginBottom","plotLeft"],R.noop=function(){},R.supportsPassiveEvents=function(){var H=!1;if(!R.isMS){var V=Object.defineProperty({},"passive",{get:function(){H=!0}});R.win.addEventListener&&R.win.removeEventListener&&(R.win.addEventListener("testPassive",R.noop,V),R.win.removeEventListener("testPassive",R.noop,V))}return H}(),R.charts=[],R.dateFormats={},R.seriesTypes={},R.symbolSizes={},R.chartCount=0}(W||(W={})),W}),B(it,"Core/Utilities.js",[it["Core/Globals.js"]],function(W){function R(t,i,o,e){var s=i?"Highcharts error":"Highcharts warning";t===32&&(t=s+": Deprecated member");var n=I(t),l=n?s+" #"+t+": www.highcharts.com/errors/"+t+"/":t.toString();if(e!==void 0){var b="";n&&(l+="?"),u(e,function(k,D){b+=`
2
+ - `.concat(D,": ").concat(k),n&&(l+=encodeURI(D)+"="+encodeURI(k))}),l+=b}w(W,"displayError",{chart:o,code:t,message:l,params:e},function(){if(i)throw Error(l);c.console&&R.messages.indexOf(l)===-1&&console.warn(l)}),R.messages.push(l)}function H(t,i){return parseInt(t,i||10)}function V(t){return typeof t=="string"}function $(t){return(t=Object.prototype.toString.call(t))==="[object Array]"||t==="[object Array Iterator]"}function Z(t,i){return!(!t||typeof t!="object"||i&&$(t))}function U(t){return Z(t)&&typeof t.nodeType=="number"}function z(t){var i=t&&t.constructor;return!(!Z(t,!0)||U(t)||!i||!i.name||i.name==="Object")}function I(t){return typeof t=="number"&&!isNaN(t)&&1/0>t&&-1/0<t}function E(t){return t!=null}function M(t,i,o){var e,s=V(i)&&!E(o),n=function(l,b){E(l)?t.setAttribute(b,l):s?(e=t.getAttribute(b))||b!=="class"||(e=t.getAttribute(b+"Name")):t.removeAttribute(b)};return V(i)?n(o,i):u(i,n),e}function P(t,i){var o;for(o in t||(t={}),i)t[o]=i[o];return t}function y(){for(var t=arguments,i=t.length,o=0;o<i;o++){var e=t[o];if(e!=null)return e}}function h(t,i){W.isMS&&!W.svg&&i&&E(i.opacity)&&(i.filter="alpha(opacity=".concat(100*i.opacity,")")),P(t.style,i)}function f(t){return Math.pow(10,Math.floor(Math.log(t)/Math.LN10))}function m(t,i){return 1e14<t?t:parseFloat(t.toPrecision(i||14))}function u(t,i,o){for(var e in t)Object.hasOwnProperty.call(t,e)&&i.call(o||t[e],t[e],e,t)}function v(t,i,o){function e(b,k){var D=t.removeEventListener||W.removeEventListenerPolyfill;D&&D.call(t,b,k,!1)}function s(b){var k;if(t.nodeName){if(i){var D={};D[i]=!0}else D=b;u(D,function(p,C){if(b[C])for(k=b[C].length;k--;)e(C,b[C][k].fn)})}}var n=typeof t=="function"&&t.prototype||t;if(Object.hasOwnProperty.call(n,"hcEvents")){var l=n.hcEvents;i?(n=l[i]||[],o?(l[i]=n.filter(function(b){return o!==b.fn}),e(i,o)):(s(l),l[i]=[])):(s(l),delete n.hcEvents)}}function w(t,i,o,e){if(o=o||{},x.createEvent&&(t.dispatchEvent||t.fireEvent&&t!==W)){var s=x.createEvent("Events");s.initEvent(i,!0,!0),o=P(s,o),t.dispatchEvent?t.dispatchEvent(o):t.fireEvent(i,o)}else if(t.hcEvents){o.target||P(o,{preventDefault:function(){o.defaultPrevented=!0},target:t,type:i}),s=[];for(var n=t,l=!1;n.hcEvents;)Object.hasOwnProperty.call(n,"hcEvents")&&n.hcEvents[i]&&(s.length&&(l=!0),s.unshift.apply(s,n.hcEvents[i])),n=Object.getPrototypeOf(n);l&&s.sort(function(b,k){return b.order-k.order}),s.forEach(function(b){b.fn.call(t,o)===!1&&o.preventDefault()})}e&&!o.defaultPrevented&&e.call(t,o)}var S=W.charts,x=W.doc,c=W.win;(R||(R={})).messages=[],Math.easeInOutSine=function(t){return-.5*(Math.cos(Math.PI*t)-1)};var g=Array.prototype.find?function(t,i){return t.find(i)}:function(t,i){var o,e=t.length;for(o=0;o<e;o++)if(i(t[o],o))return t[o]};u({map:"map",each:"forEach",grep:"filter",reduce:"reduce",some:"some"},function(t,i){W[i]=function(o){var e;return R(32,!1,void 0,((e={})["Highcharts.".concat(i)]="use Array.".concat(t),e)),Array.prototype[t].apply(o,[].slice.call(arguments,1))}});var r,a=function(){var t=Math.random().toString(36).substring(2,9)+"-",i=0;return function(){return"highcharts-"+(r?"":t)+i++}}();return c.jQuery&&(c.jQuery.fn.highcharts=function(){var t=[].slice.call(arguments);if(this[0])return t[0]?(new W[V(t[0])?t.shift():"Chart"](this[0],t[0],t[1]),this):S[M(this[0],"data-highcharts-chart")]}),g={addEvent:function(t,i,o,e){e===void 0&&(e={});var s=typeof t=="function"&&t.prototype||t;Object.hasOwnProperty.call(s,"hcEvents")||(s.hcEvents={}),s=s.hcEvents,W.Point&&t instanceof W.Point&&t.series&&t.series.chart&&(t.series.chart.runTrackerClick=!0);var n=t.addEventListener||W.addEventListenerPolyfill;return n&&n.call(t,i,o,!!W.supportsPassiveEvents&&{passive:e.passive===void 0?i.indexOf("touch")!==-1:e.passive,capture:!1}),s[i]||(s[i]=[]),s[i].push({fn:o,order:typeof e.order=="number"?e.order:1/0}),s[i].sort(function(l,b){return l.order-b.order}),function(){v(t,i,o)}},arrayMax:function(t){for(var i=t.length,o=t[0];i--;)t[i]>o&&(o=t[i]);return o},arrayMin:function(t){for(var i=t.length,o=t[0];i--;)t[i]<o&&(o=t[i]);return o},attr:M,clamp:function(t,i,o){return t>i?t<o?t:o:i},cleanRecursively:function t(i,o){var e={};return u(i,function(s,n){Z(i[n],!0)&&!i.nodeType&&o[n]?(s=t(i[n],o[n]),Object.keys(s).length&&(e[n]=s)):(Z(i[n])||i[n]!==o[n]||n in i&&!(n in o))&&(e[n]=i[n])}),e},clearTimeout:function(t){E(t)&&clearTimeout(t)},correctFloat:m,createElement:function(t,i,o,e,s){return t=x.createElement(t),i&&P(t,i),s&&h(t,{padding:"0",border:"none",margin:"0"}),o&&h(t,o),e&&e.appendChild(t),t},css:h,defined:E,destroyObjectProperties:function(t,i){u(t,function(o,e){o&&o!==i&&o.destroy&&o.destroy(),delete t[e]})},discardElement:function(t){t&&t.parentElement&&t.parentElement.removeChild(t)},erase:function(t,i){for(var o=t.length;o--;)if(t[o]===i){t.splice(o,1);break}},error:R,extend:P,extendClass:function(t,i){var o=function(){};return P(o.prototype=new t,i),o},find:g,fireEvent:w,getMagnitude:f,getNestedProperty:function(t,i){for(t=t.split(".");t.length&&E(i);){var o=t.shift();if(o===void 0||o==="__proto__"||!E(i=i[o])||typeof i=="function"||typeof i.nodeType=="number"||i===c)return}return i},getStyle:function t(i,o,e){var s=W.getStyle||t;if(o==="width")return o=Math.min(i.offsetWidth,i.scrollWidth),(e=i.getBoundingClientRect&&i.getBoundingClientRect().width)<o&&e>=o-1&&(o=Math.floor(e)),Math.max(0,o-(s(i,"padding-left",!0)||0)-(s(i,"padding-right",!0)||0));if(o==="height")return Math.max(0,Math.min(i.offsetHeight,i.scrollHeight)-(s(i,"padding-top",!0)||0)-(s(i,"padding-bottom",!0)||0));if(c.getComputedStyle||R(27,!0),i=c.getComputedStyle(i,void 0)){var n=i.getPropertyValue(o);y(e,o!=="opacity")&&(n=H(n))}return n},inArray:function(t,i,o){return R(32,!1,void 0,{"Highcharts.inArray":"use Array.indexOf"}),i.indexOf(t,o)},isArray:$,isClass:z,isDOMElement:U,isFunction:function(t){return typeof t=="function"},isNumber:I,isObject:Z,isString:V,keys:function(t){return R(32,!1,void 0,{"Highcharts.keys":"use Object.keys"}),Object.keys(t)},merge:function(){var t,i=arguments,o={},e=function(n,l){return typeof n!="object"&&(n={}),u(l,function(b,k){k!=="__proto__"&&k!=="constructor"&&(!Z(b,!0)||z(b)||U(b)?n[k]=l[k]:n[k]=e(n[k]||{},b))}),n};i[0]===!0&&(o=i[1],i=Array.prototype.slice.call(i,2));var s=i.length;for(t=0;t<s;t++)o=e(o,i[t]);return o},normalizeTickInterval:function(t,i,o,e,s){var n=t,l=t/(o=y(o,f(t)));for(i||(i=s?[1,1.2,1.5,2,2.5,3,4,5,6,8,10]:[1,2,2.5,5,10],e===!1&&(o===1?i=i.filter(function(b){return b%1==0}):.1>=o&&(i=[1/o]))),e=0;e<i.length&&(n=i[e],!(s&&n*o>=t||!s&&l<=(i[e]+(i[e+1]||i[e]))/2));e++);return m(n*o,-Math.round(Math.log(.001)/Math.LN10))},objectEach:u,offset:function(t){var i=x.documentElement;return{top:(t=t.parentElement||t.parentNode?t.getBoundingClientRect():{top:0,left:0,width:0,height:0}).top+(c.pageYOffset||i.scrollTop)-(i.clientTop||0),left:t.left+(c.pageXOffset||i.scrollLeft)-(i.clientLeft||0),width:t.width,height:t.height}},pad:function(t,i,o){return Array((i||2)+1-String(t).replace("-","").length).join(o||"0")+t},pick:y,pInt:H,relativeLength:function(t,i,o){return/%$/.test(t)?i*parseFloat(t)/100+(o||0):parseFloat(t)},removeEvent:v,splat:function(t){return $(t)?t:[t]},stableSort:function(t,i){var o,e,s=t.length;for(e=0;e<s;e++)t[e].safeI=e;for(t.sort(function(n,l){return(o=i(n,l))===0?n.safeI-l.safeI:o}),e=0;e<s;e++)delete t[e].safeI},syncTimeout:function(t,i,o){return 0<i?setTimeout(t,i,o):(t.call(0,o),-1)},timeUnits:{millisecond:1,second:1e3,minute:6e4,hour:36e5,day:864e5,week:6048e5,month:24192e5,year:314496e5},uniqueKey:a,useSerialIds:function(t){return r=y(t,r)},wrap:function(t,i,o){var e=t[i];t[i]=function(){var s=arguments,n=this;return o.apply(this,[function(){return e.apply(n,arguments.length?arguments:s)}].concat([].slice.call(arguments)))}}},g}),B(it,"Core/Chart/ChartDefaults.js",[],function(){return{alignThresholds:!1,panning:{enabled:!1,type:"x"},styledMode:!1,borderRadius:0,colorCount:10,allowMutatingData:!0,defaultSeriesType:"line",ignoreHiddenSeries:!0,spacing:[10,10,15,10],resetZoomButton:{theme:{zIndex:6},position:{align:"right",x:-10,y:10}},zoomBySingleTouch:!1,zooming:{singleTouch:!1,resetButton:{theme:{zIndex:6},position:{align:"right",x:-10,y:10}}},width:null,height:null,borderColor:"#335cad",backgroundColor:"#ffffff",plotBorderColor:"#cccccc"}}),B(it,"Core/Color/Color.js",[it["Core/Globals.js"],it["Core/Utilities.js"]],function(W,R){var H=R.isNumber,V=R.merge,$=R.pInt;return R=function(){function Z(U){this.rgba=[NaN,NaN,NaN,NaN],this.input=U;var z=W.Color;return z&&z!==Z?new z(U):this instanceof Z?void this.init(U):new Z(U)}return Z.parse=function(U){return U?new Z(U):Z.None},Z.prototype.init=function(U){var z;if(typeof U=="object"&&U.stops!==void 0)this.stops=U.stops.map(function(P){return new Z(P[1])});else if(typeof U=="string"){if(this.input=U=Z.names[U.toLowerCase()]||U,U.charAt(0)==="#"){var I=U.length,E=parseInt(U.substr(1),16);I===7?z=[(16711680&E)>>16,(65280&E)>>8,255&E,1]:I===4&&(z=[(3840&E)>>4|(3840&E)>>8,(240&E)>>4|240&E,(15&E)<<4|15&E,1])}if(!z)for(E=Z.parsers.length;E--&&!z;){var M=Z.parsers[E];(I=M.regex.exec(U))&&(z=M.parse(I))}}z&&(this.rgba=z)},Z.prototype.get=function(U){var z=this.input,I=this.rgba;if(typeof z=="object"&&this.stops!==void 0){var E=V(z);return E.stops=[].slice.call(E.stops),this.stops.forEach(function(M,P){E.stops[P]=[E.stops[P][0],M.get(U)]}),E}return I&&H(I[0])?U==="rgb"||!U&&I[3]===1?"rgb("+I[0]+","+I[1]+","+I[2]+")":U==="a"?"".concat(I[3]):"rgba("+I.join(",")+")":z},Z.prototype.brighten=function(U){var z=this.rgba;if(this.stops)this.stops.forEach(function(E){E.brighten(U)});else if(H(U)&&U!==0)for(var I=0;3>I;I++)z[I]+=$(255*U),0>z[I]&&(z[I]=0),255<z[I]&&(z[I]=255);return this},Z.prototype.setOpacity=function(U){return this.rgba[3]=U,this},Z.prototype.tweenTo=function(U,z){var I=this.rgba,E=U.rgba;return H(I[0])&&H(E[0])?((U=E[3]!==1||I[3]!==1)?"rgba(":"rgb(")+Math.round(E[0]+(I[0]-E[0])*(1-z))+","+Math.round(E[1]+(I[1]-E[1])*(1-z))+","+Math.round(E[2]+(I[2]-E[2])*(1-z))+(U?","+(E[3]+(I[3]-E[3])*(1-z)):"")+")":U.input||"none"},Z.names={white:"#ffffff",black:"#000000"},Z.parsers=[{regex:/rgba\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]?(?:\.[0-9]+)?)\s*\)/,parse:function(U){return[$(U[1]),$(U[2]),$(U[3]),parseFloat(U[4],10)]}},{regex:/rgb\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*\)/,parse:function(U){return[$(U[1]),$(U[2]),$(U[3]),1]}}],Z.None=new Z(""),Z}(),R}),B(it,"Core/Color/Palettes.js",[],function(){return{colors:"#7cb5ec #434348 #90ed7d #f7a35c #8085e9 #f15c80 #e4d354 #2b908f #f45b5b #91e8e1".split(" ")}}),B(it,"Core/Time.js",[it["Core/Globals.js"],it["Core/Utilities.js"]],function(W,R){var H=W.win,V=R.defined,$=R.error,Z=R.extend,U=R.isObject,z=R.merge,I=R.objectEach,E=R.pad,M=R.pick,P=R.splat,y=R.timeUnits,h=W.isSafari&&H.Intl&&H.Intl.DateTimeFormat.prototype.formatRange,f=W.isSafari&&H.Intl&&!H.Intl.DateTimeFormat.prototype.formatRange;return R=function(){function m(u){this.options={},this.variableTimezone=this.useUTC=!1,this.Date=H.Date,this.getTimezoneOffset=this.timezoneOffsetFunction(),this.update(u)}return m.prototype.get=function(u,v){if(this.variableTimezone||this.timezoneOffset){var w=v.getTime(),S=w-this.getTimezoneOffset(v);return v.setTime(S),u=v["getUTC"+u](),v.setTime(w),u}return this.useUTC?v["getUTC"+u]():v["get"+u]()},m.prototype.set=function(u,v,w){if(this.variableTimezone||this.timezoneOffset){if(u==="Milliseconds"||u==="Seconds"||u==="Minutes"&&this.getTimezoneOffset(v)%36e5==0)return v["setUTC"+u](w);var S=this.getTimezoneOffset(v);return S=v.getTime()-S,v.setTime(S),v["setUTC"+u](w),u=this.getTimezoneOffset(v),S=v.getTime()+u,v.setTime(S)}return this.useUTC||h&&u==="FullYear"?v["setUTC"+u](w):v["set"+u](w)},m.prototype.update=function(u){u===void 0&&(u={});var v=M(u.useUTC,!0);this.options=u=z(!0,this.options,u),this.Date=u.Date||H.Date||Date,this.timezoneOffset=(this.useUTC=v)&&u.timezoneOffset||void 0,this.getTimezoneOffset=this.timezoneOffsetFunction(),this.variableTimezone=v&&!(!u.getTimezoneOffset&&!u.timezone)},m.prototype.makeTime=function(u,v,w,S,x,c){if(this.useUTC){var g=this.Date.UTC.apply(0,arguments),r=this.getTimezoneOffset(g);g+=r;var a=this.getTimezoneOffset(g);r!==a?g+=a-r:r-36e5!==this.getTimezoneOffset(g-36e5)||f||(g-=36e5)}else g=new this.Date(u,v,M(w,1),M(S,0),M(x,0),M(c,0)).getTime();return g},m.prototype.timezoneOffsetFunction=function(){var u=this,v=this.options,w=v.getTimezoneOffset,S=v.moment||H.moment;if(!this.useUTC)return function(x){return 6e4*new Date(x.toString()).getTimezoneOffset()};if(v.timezone){if(S)return function(x){return 6e4*-S.tz(x,v.timezone).utcOffset()};$(25)}return this.useUTC&&w?function(x){return 6e4*w(x.valueOf())}:function(){return 6e4*(u.timezoneOffset||0)}},m.prototype.dateFormat=function(u,v,w){if(!V(v)||isNaN(v))return W.defaultOptions.lang&&W.defaultOptions.lang.invalidDate||"";u=M(u,"%Y-%m-%d %H:%M:%S");var S=this,x=new this.Date(v),c=this.get("Hours",x),g=this.get("Day",x),r=this.get("Date",x),a=this.get("Month",x),t=this.get("FullYear",x),i=W.defaultOptions.lang,o=i&&i.weekdays,e=i&&i.shortWeekdays;return x=Z({a:e?e[g]:o[g].substr(0,3),A:o[g],d:E(r),e:E(r,2," "),w:g,b:i.shortMonths[a],B:i.months[a],m:E(a+1),o:a+1,y:t.toString().substr(2,2),Y:t,H:E(c),k:c,I:E(c%12||12),l:c%12||12,M:E(this.get("Minutes",x)),p:12>c?"AM":"PM",P:12>c?"am":"pm",S:E(x.getSeconds()),L:E(Math.floor(v%1e3),3)},W.dateFormats),I(x,function(s,n){for(;u.indexOf("%"+n)!==-1;)u=u.replace("%"+n,typeof s=="function"?s.call(S,v):s)}),w?u.substr(0,1).toUpperCase()+u.substr(1):u},m.prototype.resolveDTLFormat=function(u){return U(u,!0)?u:{main:(u=P(u))[0],from:u[1],to:u[2]}},m.prototype.getTimeTicks=function(u,v,w,S){var x,c=this,g=[],r={},a=new c.Date(v),t=u.unitRange,i=u.count||1;if(S=M(S,1),V(v)){if(c.set("Milliseconds",a,t>=y.second?0:i*Math.floor(c.get("Milliseconds",a)/i)),t>=y.second&&c.set("Seconds",a,t>=y.minute?0:i*Math.floor(c.get("Seconds",a)/i)),t>=y.minute&&c.set("Minutes",a,t>=y.hour?0:i*Math.floor(c.get("Minutes",a)/i)),t>=y.hour&&c.set("Hours",a,t>=y.day?0:i*Math.floor(c.get("Hours",a)/i)),t>=y.day&&c.set("Date",a,t>=y.month?1:Math.max(1,i*Math.floor(c.get("Date",a)/i))),t>=y.month){c.set("Month",a,t>=y.year?0:i*Math.floor(c.get("Month",a)/i));var o=c.get("FullYear",a)}t>=y.year&&c.set("FullYear",a,o-o%i),t===y.week&&(o=c.get("Day",a),c.set("Date",a,c.get("Date",a)-o+S+(o<S?-7:0))),o=c.get("FullYear",a),S=c.get("Month",a);var e=c.get("Date",a),s=c.get("Hours",a);for(v=a.getTime(),!c.variableTimezone&&c.useUTC||!V(w)||(x=w-v>4*y.month||c.getTimezoneOffset(v)!==c.getTimezoneOffset(w)),v=a.getTime(),a=1;v<w;)g.push(v),v=t===y.year?c.makeTime(o+a*i,0):t===y.month?c.makeTime(o,S+a*i):!x||t!==y.day&&t!==y.week?x&&t===y.hour&&1<i?c.makeTime(o,S,e,s+a*i):v+t*i:c.makeTime(o,S,e+a*i*(t===y.day?1:7)),a++;g.push(v),t<=y.hour&&1e4>g.length&&g.forEach(function(n){n%18e5==0&&c.dateFormat("%H%M%S%L",n)==="000000000"&&(r[n]="day")})}return g.info=Z(u,{higherRanks:r,totalRange:t*i}),g},m.prototype.getDateFormat=function(u,v,w,S){var x=this.dateFormat("%m-%d %H:%M:%S.%L",v),c={millisecond:15,second:12,minute:9,hour:6,day:3},g="millisecond";for(r in y){if(u===y.week&&+this.dateFormat("%w",v)===w&&x.substr(6)==="00:00:00.000"){var r="week";break}if(y[r]>u){r=g;break}if(c[r]&&x.substr(c[r])!=="01-01 00:00:00.000".substr(c[r]))break;r!=="week"&&(g=r)}return this.resolveDTLFormat(S[r]).main},m}(),R}),B(it,"Core/Defaults.js",[it["Core/Chart/ChartDefaults.js"],it["Core/Color/Color.js"],it["Core/Globals.js"],it["Core/Color/Palettes.js"],it["Core/Time.js"],it["Core/Utilities.js"]],function(W,R,H,V,$,Z){R=R.parse;var U=Z.merge,z={colors:V.colors,symbols:["circle","diamond","square","triangle","triangle-down"],lang:{loading:"Loading...",months:"January February March April May June July August September October November December".split(" "),shortMonths:"Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec".split(" "),weekdays:"Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "),decimalPoint:".",numericSymbols:"kMGTPE".split(""),resetZoom:"Reset zoom",resetZoomTitle:"Reset zoom level 1:1",thousandsSep:" "},global:{},time:{Date:void 0,getTimezoneOffset:void 0,timezone:void 0,timezoneOffset:0,useUTC:!0},chart:W,title:{text:"Chart title",align:"center",margin:15,widthAdjust:-44},subtitle:{text:"",align:"center",widthAdjust:-44},caption:{margin:15,text:"",align:"left",verticalAlign:"bottom"},plotOptions:{},labels:{style:{position:"absolute",color:"#333333"}},legend:{enabled:!0,align:"center",alignColumns:!0,className:"highcharts-no-tooltip",layout:"horizontal",labelFormatter:function(){return this.name},borderColor:"#999999",borderRadius:0,navigation:{activeColor:"#003399",inactiveColor:"#cccccc"},itemStyle:{color:"#333333",cursor:"pointer",fontSize:"12px",fontWeight:"bold",textOverflow:"ellipsis"},itemHoverStyle:{color:"#000000"},itemHiddenStyle:{color:"#cccccc"},shadow:!1,itemCheckboxStyle:{position:"absolute",width:"13px",height:"13px"},squareSymbol:!0,symbolPadding:5,verticalAlign:"bottom",x:0,y:0,title:{style:{fontWeight:"bold"}}},loading:{labelStyle:{fontWeight:"bold",position:"relative",top:"45%"},style:{position:"absolute",backgroundColor:"#ffffff",opacity:.5,textAlign:"center"}},tooltip:{enabled:!0,animation:H.svg,borderRadius:3,dateTimeLabelFormats:{millisecond:"%A, %b %e, %H:%M:%S.%L",second:"%A, %b %e, %H:%M:%S",minute:"%A, %b %e, %H:%M",hour:"%A, %b %e, %H:%M",day:"%A, %b %e, %Y",week:"Week from %A, %b %e, %Y",month:"%B %Y",year:"%Y"},footerFormat:"",headerShape:"callout",hideDelay:500,padding:8,shape:"callout",shared:!1,snap:H.isTouchDevice?25:10,headerFormat:'<span style="font-size: 10px">{point.key}</span><br/>',pointFormat:'<span style="color:{point.color}">●</span> {series.name}: <b>{point.y}</b><br/>',backgroundColor:R("#f7f7f7").setOpacity(.85).get(),borderWidth:1,shadow:!0,stickOnContact:!1,style:{color:"#333333",cursor:"default",fontSize:"12px",whiteSpace:"nowrap"},useHTML:!1},credits:{enabled:!0,href:"https://www.highcharts.com?credits",position:{align:"right",x:-10,verticalAlign:"bottom",y:-5},style:{cursor:"pointer",color:"#999999",fontSize:"9px"},text:"Highcharts.com"}};z.chart.styledMode=!1;var I=new $(U(z.global,z.time));return{defaultOptions:z,defaultTime:I,getOptions:function(){return z},setOptions:function(E){return U(!0,z,E),(E.time||E.global)&&(H.time?H.time.update(U(z.global,z.time,E.global,E.time)):H.time=I),z}}}),B(it,"Core/Animation/Fx.js",[it["Core/Color/Color.js"],it["Core/Globals.js"],it["Core/Utilities.js"]],function(W,R,H){var V=W.parse,$=R.win,Z=H.isNumber,U=H.objectEach;return function(){function z(I,E,M){this.pos=NaN,this.options=E,this.elem=I,this.prop=M}return z.prototype.dSetter=function(){var I=this.paths,E=I&&I[0];I=I&&I[1];var M=this.now||0,P=[];if(M!==1&&E&&I)if(E.length===I.length&&1>M)for(var y=0;y<I.length;y++){for(var h=E[y],f=I[y],m=[],u=0;u<f.length;u++){var v=h[u],w=f[u];Z(v)&&Z(w)&&(f[0]!=="A"||u!==4&&u!==5)?m[u]=v+M*(w-v):m[u]=w}P.push(m)}else P=I;else P=this.toD||[];this.elem.attr("d",P,void 0,!0)},z.prototype.update=function(){var I=this.elem,E=this.prop,M=this.now,P=this.options.step;this[E+"Setter"]?this[E+"Setter"]():I.attr?I.element&&I.attr(E,M,null,!0):I.style[E]=M+this.unit,P&&P.call(I,M,this)},z.prototype.run=function(I,E,M){var P=this,y=P.options,h=function(u){return!h.stopped&&P.step(u)},f=$.requestAnimationFrame||function(u){setTimeout(u,13)},m=function(){for(var u=0;u<z.timers.length;u++)z.timers[u]()||z.timers.splice(u--,1);z.timers.length&&f(m)};I!==E||this.elem["forceAnimate:"+this.prop]?(this.startTime=+new Date,this.start=I,this.end=E,this.unit=M,this.now=this.start,this.pos=0,h.elem=this.elem,h.prop=this.prop,h()&&z.timers.push(h)===1&&f(m)):(delete y.curAnim[this.prop],y.complete&&Object.keys(y.curAnim).length===0&&y.complete.call(this.elem))},z.prototype.step=function(I){var E=+new Date,M=this.options,P=this.elem,y=M.complete,h=M.duration,f=M.curAnim;if(P.attr&&!P.element)I=!1;else if(I||E>=h+this.startTime){this.now=this.end,this.pos=1,this.update();var m=f[this.prop]=!0;U(f,function(u){u!==!0&&(m=!1)}),m&&y&&y.call(P),I=!1}else this.pos=M.easing((E-this.startTime)/h),this.now=this.start+(this.end-this.start)*this.pos,this.update(),I=!0;return I},z.prototype.initPath=function(I,E,M){function P(x,c){for(;x.length<S;){var g=x[0],r=c[S-x.length];r&&g[0]==="M"&&(x[0]=r[0]==="C"?["C",g[1],g[2],g[1],g[2],g[1],g[2]]:["L",g[1],g[2]]),x.unshift(g),m&&(g=x.pop(),x.push(x[x.length-1],g))}}function y(x,c){for(;x.length<S;)if((c=x[Math.floor(x.length/u)-1].slice())[0]==="C"&&(c[1]=c[5],c[2]=c[6]),m){var g=x[Math.floor(x.length/u)].slice();x.splice(x.length/2,0,c,g)}else x.push(c)}var h=I.startX,f=I.endX;M=M.slice();var m=I.isArea,u=m?2:1;if(!(E=E&&E.slice()))return[M,M];if(h&&f&&f.length){for(I=0;I<h.length;I++){if(h[I]===f[0]){var v=I;break}if(h[0]===f[f.length-h.length+I]){v=I;var w=!0;break}if(h[h.length-1]===f[f.length-h.length+I]){v=h.length-I;break}}v===void 0&&(E=[])}if(E.length&&Z(v)){var S=M.length+v*u;w?(P(E,M),y(M,E)):(P(M,E),y(E,M))}return[E,M]},z.prototype.fillSetter=function(){z.prototype.strokeSetter.apply(this,arguments)},z.prototype.strokeSetter=function(){this.elem.attr(this.prop,V(this.start).tweenTo(V(this.end),this.pos),void 0,!0)},z.timers=[],z}()}),B(it,"Core/Animation/AnimationUtilities.js",[it["Core/Animation/Fx.js"],it["Core/Utilities.js"]],function(W,R){function H(y){return I(y)?E({duration:500,defer:0},y):{duration:y?500:0,defer:0}}function V(y,h){for(var f=W.timers.length;f--;)W.timers[f].elem!==y||h&&h!==W.timers[f].prop||(W.timers[f].stopped=!0)}var $=R.defined,Z=R.getStyle,U=R.isArray,z=R.isNumber,I=R.isObject,E=R.merge,M=R.objectEach,P=R.pick;return{animate:function(y,h,f){var m,u,v,w="";if(!I(f)){var S=arguments;f={duration:S[2],easing:S[3],complete:S[4]}}z(f.duration)||(f.duration=400),f.easing=typeof f.easing=="function"?f.easing:Math[f.easing]||Math.easeInOutSine,f.curAnim=E(h),M(h,function(x,c){V(y,c),v=new W(y,f,c),u=void 0,c==="d"&&U(h.d)?(v.paths=v.initPath(y,y.pathArray,h.d),v.toD=h.d,m=0,u=1):y.attr?m=y.attr(c):(m=parseFloat(Z(y,c))||0,c!=="opacity"&&(w="px")),u||(u=x),typeof u=="string"&&u.match("px")&&(u=u.replace(/px/g,"")),v.run(m,u,w)})},animObject:H,getDeferredAnimation:function(y,h,f){var m=H(h),u=0,v=0;return(f?[f]:y.series).forEach(function(w){w=H(w.options.animation),u=h&&$(h.defer)?m.defer:Math.max(u,w.duration+w.defer),v=Math.min(m.duration,w.duration)}),y.renderer.forExport&&(u=0),{defer:Math.max(0,u-v),duration:Math.min(u,v)}},setAnimation:function(y,h){h.renderer.globalAnimation=P(y,h.options.chart.animation,!0)},stop:V}}),B(it,"Core/Renderer/HTML/AST.js",[it["Core/Globals.js"],it["Core/Utilities.js"]],function(W,R){var H=W.SVG_NS,V=R.attr,$=R.createElement,Z=R.css,U=R.error,z=R.isFunction,I=R.isString,E=R.objectEach,M=R.splat,P=(R=W.win.trustedTypes)&&z(R.createPolicy)&&R.createPolicy("highcharts",{createHTML:function(f){return f}}),y=P?P.createHTML(""):"";try{var h=!!new DOMParser().parseFromString(y,"text/html")}catch(f){h=!1}return z=function(){function f(m){this.nodes=typeof m=="string"?this.parseMarkup(m):m}return f.filterUserAttributes=function(m){return E(m,function(u,v){var w=!0;f.allowedAttributes.indexOf(v)===-1&&(w=!1),["background","dynsrc","href","lowsrc","src"].indexOf(v)!==-1&&(w=I(u)&&f.allowedReferences.some(function(S){return u.indexOf(S)===0})),w||(U(33,!1,void 0,{"Invalid attribute in config":"".concat(v)}),delete m[v]),I(u)&&m[v]&&(m[v]=u.replace(/</g,"&lt;"))}),m},f.parseStyle=function(m){return m.split(";").reduce(function(u,v){v=v.split(":").map(function(S){return S.trim()});var w=v.shift();return w&&v.length&&(u[w.replace(/-([a-z])/g,function(S){return S[1].toUpperCase()})]=v.join(":")),u},{})},f.setElementHTML=function(m,u){m.innerHTML=f.emptyHTML,u&&new f(u).addToDOM(m)},f.prototype.addToDOM=function(m){return function u(v,w){var S;return M(v).forEach(function(x){var c=x.tagName,g=x.textContent?W.doc.createTextNode(x.textContent):void 0,r=f.bypassHTMLFiltering;if(c)if(c==="#text")var a=g;else if(f.allowedTags.indexOf(c)!==-1||r){c=W.doc.createElementNS(c==="svg"?H:w.namespaceURI||H,c);var t=x.attributes||{};E(x,function(i,o){o!=="tagName"&&o!=="attributes"&&o!=="children"&&o!=="style"&&o!=="textContent"&&(t[o]=i)}),V(c,r?t:f.filterUserAttributes(t)),x.style&&Z(c,x.style),g&&c.appendChild(g),u(x.children||[],c),a=c}else U(33,!1,void 0,{"Invalid tagName in config":c});a&&w.appendChild(a),S=a}),S}(this.nodes,m)},f.prototype.parseMarkup=function(m){var u=[];if(m=m.trim().replace(/ style=(["'])/g," data-style=$1"),h)m=new DOMParser().parseFromString(P?P.createHTML(m):m,"text/html");else{var v=$("div");v.innerHTML=m,m={body:v}}var w=function(S,x){var c=S.nodeName.toLowerCase(),g={tagName:c};if(c==="#text"&&(g.textContent=S.textContent||""),c=S.attributes){var r={};[].forEach.call(c,function(t){t.name==="data-style"?g.style=f.parseStyle(t.value):r[t.name]=t.value}),g.attributes=r}if(S.childNodes.length){var a=[];[].forEach.call(S.childNodes,function(t){w(t,a)}),a.length&&(g.children=a)}x.push(g)};return[].forEach.call(m.body.childNodes,function(S){return w(S,u)}),u},f.allowedAttributes="aria-controls aria-describedby aria-expanded aria-haspopup aria-hidden aria-label aria-labelledby aria-live aria-pressed aria-readonly aria-roledescription aria-selected class clip-path color colspan cx cy d dx dy disabled fill height href id in markerHeight markerWidth offset opacity orient padding paddingLeft paddingRight patternUnits r refX refY role scope slope src startOffset stdDeviation stroke stroke-linecap stroke-width style tableValues result rowspan summary target tabindex text-align text-anchor textAnchor textLength title type valign width x x1 x2 xlink:href y y1 y2 zIndex".split(" "),f.allowedReferences="https:// http:// mailto: / ../ ./ #".split(" "),f.allowedTags="a abbr b br button caption circle clipPath code dd defs div dl dt em feComponentTransfer feFuncA feFuncB feFuncG feFuncR feGaussianBlur feOffset feMerge feMergeNode filter h1 h2 h3 h4 h5 h6 hr i img li linearGradient marker ol p path pattern pre rect small span stop strong style sub sup svg table text textPath thead title tbody tspan td th tr u ul #text".split(" "),f.emptyHTML=y,f.bypassHTMLFiltering=!1,f}(),z}),B(it,"Core/FormatUtilities.js",[it["Core/Defaults.js"],it["Core/Utilities.js"]],function(W,R){function H(E,M,P,y){E=+E||0,M=+M;var h=V.lang,f=(E.toString().split(".")[1]||"").split("e")[0].length,m=E.toString().split("e"),u=M;if(M===-1)M=Math.min(f,20);else if(U(M)){if(M&&m[1]&&0>m[1]){var v=M+ +m[1];0<=v?(m[0]=(+m[0]).toExponential(v).split("e")[0],M=v):(m[0]=m[0].split(".")[0]||0,E=20>M?(m[0]*Math.pow(10,m[1])).toFixed(M):0,m[1]=0)}}else M=2;v=(Math.abs(m[1]?m[0]:E)+Math.pow(10,-Math.max(M,f)-1)).toFixed(M);var w=3<(f=String(I(v))).length?f.length%3:0;return P=z(P,h.decimalPoint),y=z(y,h.thousandsSep),E=(0>E?"-":"")+(w?f.substr(0,w)+y:""),E=0>+m[1]&&!u?"0":E+f.substr(w).replace(/(\d{3})(?=\d)/g,"$1"+y),M&&(E+=P+v.slice(-M)),m[1]&&+E!=0&&(E+="e"+m[1]),E}var V=W.defaultOptions,$=W.defaultTime,Z=R.getNestedProperty,U=R.isNumber,z=R.pick,I=R.pInt;return{dateFormat:function(E,M,P){return $.dateFormat(E,M,P)},format:function(E,M,P){var y="{",h=!1,f=/f$/,m=/\.([0-9])/,u=V.lang,v=P&&P.time||$;P=P&&P.numberFormatter||H;for(var w=[];E;){var S=E.indexOf(y);if(S===-1)break;var x=E.slice(0,S);if(h){if(x=x.split(":"),y=Z(x.shift()||"",M),x.length&&typeof y=="number")if(x=x.join(":"),f.test(x)){var c=parseInt((x.match(m)||["","-1"])[1],10);y!==null&&(y=P(y,c,u.decimalPoint,-1<x.indexOf(",")?u.thousandsSep:""))}else y=v.dateFormat(x,y);w.push(y)}else w.push(x);E=E.slice(S+1),y=(h=!h)?"}":"{"}return w.push(E),w.join("")},numberFormat:H}}),B(it,"Core/Renderer/RendererUtilities.js",[it["Core/Utilities.js"]],function(W){var R,H=W.clamp,V=W.pick,$=W.stableSort;return function(Z){Z.distribute=function U(z,I,E){var M,P=z,y=P.reducedLen||I,h=function(w,S){return(S.rank||0)-(w.rank||0)},f=function(w,S){return w.target-S.target},m=!0,u=[],v=0;for(M=z.length;M--;)v+=z[M].size;if(v>y){for($(z,h),v=M=0;v<=y;)v+=z[M].size,M++;u=z.splice(M-1,z.length)}for($(z,f),z=z.map(function(w){return{size:w.size,targets:[w.target],align:V(w.align,.5)}});m;){for(M=z.length;M--;)y=z[M],h=(Math.min.apply(0,y.targets)+Math.max.apply(0,y.targets))/2,y.pos=H(h-y.size*y.align,0,I-y.size);for(M=z.length,m=!1;M--;)0<M&&z[M-1].pos+z[M-1].size>z[M].pos&&(z[M-1].size+=z[M].size,z[M-1].targets=z[M-1].targets.concat(z[M].targets),z[M-1].align=.5,z[M-1].pos+z[M-1].size>I&&(z[M-1].pos=I-z[M-1].size),z.splice(M,1),m=!0)}return P.push.apply(P,u),M=0,z.some(function(w){var S=0;return(w.targets||[]).some(function(){return P[M].pos=w.pos+S,E!==void 0&&Math.abs(P[M].pos-P[M].target)>E?(P.slice(0,M+1).forEach(function(x){return delete x.pos}),P.reducedLen=(P.reducedLen||I)-.1*I,P.reducedLen>.1*I&&U(P,I,E),!0):(S+=P[M].size,M++,!1)})}),$(P,f),P}}(R||(R={})),R}),B(it,"Core/Renderer/SVG/SVGElement.js",[it["Core/Animation/AnimationUtilities.js"],it["Core/Color/Color.js"],it["Core/Globals.js"],it["Core/Utilities.js"]],function(W,R,H,V){var $=W.animate,Z=W.animObject,U=W.stop,z=H.deg2rad,I=H.doc,E=H.svg,M=H.SVG_NS,P=H.win,y=V.addEvent,h=V.attr,f=V.createElement,m=V.css,u=V.defined,v=V.erase,w=V.extend,S=V.fireEvent,x=V.isArray,c=V.isFunction,g=V.isString,r=V.merge,a=V.objectEach,t=V.pick,i=V.pInt,o=V.syncTimeout,e=V.uniqueKey;return W=function(){function s(){this.element=void 0,this.onEvents={},this.opacity=1,this.renderer=void 0,this.SVG_NS=M,this.symbolCustomAttribs="x y width height r start end innerR anchorX anchorY rounded".split(" ")}return s.prototype._defaultGetter=function(n){return n=t(this[n+"Value"],this[n],this.element?this.element.getAttribute(n):null,0),/^[\-0-9\.]+$/.test(n)&&(n=parseFloat(n)),n},s.prototype._defaultSetter=function(n,l,b){b.setAttribute(l,n)},s.prototype.add=function(n){var l=this.renderer,b=this.element;if(n&&(this.parentGroup=n),this.textStr!==void 0&&this.element.nodeName==="text"&&l.buildText(this),this.added=!0,!n||n.handleZ||this.zIndex)var k=this.zIndexSetter();return k||(n?n.element:l.box).appendChild(b),this.onAdd&&this.onAdd(),this},s.prototype.addClass=function(n,l){var b=l?"":this.attr("class")||"";return n=(n||"").split(/ /g).reduce(function(k,D){return b.indexOf(D)===-1&&k.push(D),k},b?[b]:[]).join(" "),n!==b&&this.attr("class",n),this},s.prototype.afterSetters=function(){this.doTransform&&(this.updateTransform(),this.doTransform=!1)},s.prototype.align=function(n,l,b){var k,D,p,C={},A=this.renderer,N=A.alignedObjects;n?(this.alignOptions=n,this.alignByTranslate=l,(!b||g(b))&&(this.alignTo=k=b||"renderer",v(N,this),N.push(this),b=void 0)):(n=this.alignOptions,l=this.alignByTranslate,k=this.alignTo),b=t(b,A[k],k==="scrollablePlotBox"?A.plotBox:void 0,A),k=n.align;var _=n.verticalAlign;return A=(b.x||0)+(n.x||0),N=(b.y||0)+(n.y||0),k==="right"?D=1:k==="center"&&(D=2),D&&(A+=(b.width-(n.width||0))/D),C[l?"translateX":"x"]=Math.round(A),_==="bottom"?p=1:_==="middle"&&(p=2),p&&(N+=(b.height-(n.height||0))/p),C[l?"translateY":"y"]=Math.round(N),this[this.placed?"animate":"attr"](C),this.placed=!0,this.alignAttr=C,this},s.prototype.alignSetter=function(n){var l={left:"start",center:"middle",right:"end"};l[n]&&(this.alignValue=n,this.element.setAttribute("text-anchor",l[n]))},s.prototype.animate=function(n,l,b){var k=this,D=Z(t(l,this.renderer.globalAnimation,!0));return l=D.defer,t(I.hidden,I.msHidden,I.webkitHidden,!1)&&(D.duration=0),D.duration!==0?(b&&(D.complete=b),o(function(){k.element&&$(k,n,D)},l)):(this.attr(n,void 0,b||D.complete),a(n,function(p,C){D.step&&D.step.call(this,p,{prop:C,pos:1,elem:this})},this)),this},s.prototype.applyTextOutline=function(n){var l=this.element;n.indexOf("contrast")!==-1&&(n=n.replace(/contrast/g,this.renderer.getContrast(l.style.fill)));var b=n.split(" ");if(n=b[b.length-1],(b=b[0])&&b!=="none"&&H.svg){this.fakeTS=!0,b=b.replace(/(^[\d\.]+)(.*?)$/g,function(p,C,A){return 2*Number(C)+A}),this.removeTextOutline();var k=I.createElementNS(M,"tspan");h(k,{class:"highcharts-text-outline",fill:n,stroke:n,"stroke-width":b,"stroke-linejoin":"round"}),n=l.querySelector("textPath")||l,[].forEach.call(n.childNodes,function(p){var C=p.cloneNode(!0);C.removeAttribute&&["fill","stroke","stroke-width","stroke"].forEach(function(A){return C.removeAttribute(A)}),k.appendChild(C)});var D=0;[].forEach.call(n.querySelectorAll("text tspan"),function(p){D+=Number(p.getAttribute("dy"))}),(b=I.createElementNS(M,"tspan")).textContent="​",h(b,{x:Number(l.getAttribute("x")),dy:-D}),k.appendChild(b),n.insertBefore(k,n.firstChild)}},s.prototype.attr=function(n,l,b,k){var D,p,C,A=this.element,N=this.symbolCustomAttribs,_=this;if(typeof n=="string"&&l!==void 0){var L=n;(n={})[L]=l}return typeof n=="string"?_=(this[n+"Getter"]||this._defaultGetter).call(this,n,A):(a(n,function(O,j){p=!1,k||U(this,j),this.symbolName&&N.indexOf(j)!==-1&&(D||(this.symbolAttr(n),D=!0),p=!0),!this.rotation||j!=="x"&&j!=="y"||(this.doTransform=!0),p||((C=this[j+"Setter"]||this._defaultSetter).call(this,O,j,A),!this.styledMode&&this.shadows&&/^(width|height|visibility|x|y|d|transform|cx|cy|r)$/.test(j)&&this.updateShadows(j,O,C))},this),this.afterSetters()),b&&b.call(this),_},s.prototype.clip=function(n){return this.attr("clip-path",n?"url("+this.renderer.url+"#"+n.id+")":"none")},s.prototype.crisp=function(n,l){l=l||n.strokeWidth||0;var b=Math.round(l)%2/2;return n.x=Math.floor(n.x||this.x||0)+b,n.y=Math.floor(n.y||this.y||0)+b,n.width=Math.floor((n.width||this.width||0)-2*b),n.height=Math.floor((n.height||this.height||0)-2*b),u(n.strokeWidth)&&(n.strokeWidth=l),n},s.prototype.complexColor=function(n,l,b){var k,D,p,C,A,N,_,L,O,j,Y,X=this.renderer,G=[];S(this.renderer,"complexColor",{args:arguments},function(){if(n.radialGradient?D="radialGradient":n.linearGradient&&(D="linearGradient"),D){if(p=n[D],A=X.gradients,N=n.stops,O=b.radialReference,x(p)&&(n[D]=p={x1:p[0],y1:p[1],x2:p[2],y2:p[3],gradientUnits:"userSpaceOnUse"}),D==="radialGradient"&&O&&!u(p.gradientUnits)&&(C=p,p=r(p,X.getRadialAttr(O,C),{gradientUnits:"userSpaceOnUse"})),a(p,function(Q,J){J!=="id"&&G.push(J,Q)}),a(N,function(Q){G.push(Q)}),G=G.join(","),A[G])j=A[G].attr("id");else{p.id=j=e();var q=A[G]=X.createElement(D).attr(p).add(X.defs);q.radAttr=C,q.stops=[],N.forEach(function(Q){Q[1].indexOf("rgba")===0?(k=R.parse(Q[1]),_=k.get("rgb"),L=k.get("a")):(_=Q[1],L=1),Q=X.createElement("stop").attr({offset:Q[0],"stop-color":_,"stop-opacity":L}).add(q),q.stops.push(Q)})}Y="url("+X.url+"#"+j+")",b.setAttribute(l,Y),b.gradient=G,n.toString=function(){return Y}}})},s.prototype.css=function(n){var l=this.styles,b={},k=this.element,D=!l;if(n.color&&(n.fill=n.color),l&&a(n,function(A,N){l&&l[N]!==A&&(b[N]=A,D=!0)}),D){if(l&&(n=w(l,b)),n.width===null||n.width==="auto")delete this.textWidth;else if(k.nodeName.toLowerCase()==="text"&&n.width)var p=this.textWidth=i(n.width);this.styles=n,p&&!E&&this.renderer.forExport&&delete n.width;var C=r(n);k.namespaceURI===this.SVG_NS&&["textOutline","textOverflow","width"].forEach(function(A){return C&&delete C[A]}),m(k,C),this.added&&(this.element.nodeName==="text"&&this.renderer.buildText(this),n.textOutline&&this.applyTextOutline(n.textOutline))}return this},s.prototype.dashstyleSetter=function(n){var l=this["stroke-width"];if(l==="inherit"&&(l=1),n=n&&n.toLowerCase()){var b=n.replace("shortdashdotdot","3,1,1,1,1,1,").replace("shortdashdot","3,1,1,1").replace("shortdot","1,1,").replace("shortdash","3,1,").replace("longdash","8,3,").replace(/dot/g,"1,3,").replace("dash","4,3,").replace(/,$/,"").split(",");for(n=b.length;n--;)b[n]=""+i(b[n])*t(l,NaN);n=b.join(",").replace(/NaN/g,"none"),this.element.setAttribute("stroke-dasharray",n)}},s.prototype.destroy=function(){var n=this,l=n.element||{},b=n.renderer,k=l.ownerSVGElement,D=b.isSVG&&l.nodeName==="SPAN"&&n.parentGroup||void 0;if(l.onclick=l.onmouseout=l.onmouseover=l.onmousemove=l.point=null,U(n),n.clipPath&&k){var p=n.clipPath;[].forEach.call(k.querySelectorAll("[clip-path],[CLIP-PATH]"),function(C){-1<C.getAttribute("clip-path").indexOf(p.element.id)&&C.removeAttribute("clip-path")}),n.clipPath=p.destroy()}if(n.stops){for(k=0;k<n.stops.length;k++)n.stops[k].destroy();n.stops.length=0,n.stops=void 0}for(n.safeRemoveChild(l),b.styledMode||n.destroyShadows();D&&D.div&&D.div.childNodes.length===0;)l=D.parentGroup,n.safeRemoveChild(D.div),delete D.div,D=l;n.alignTo&&v(b.alignedObjects,n),a(n,function(C,A){n[A]&&n[A].parentGroup===n&&n[A].destroy&&n[A].destroy(),delete n[A]})},s.prototype.destroyShadows=function(){(this.shadows||[]).forEach(function(n){this.safeRemoveChild(n)},this),this.shadows=void 0},s.prototype.dSetter=function(n,l,b){x(n)&&(typeof n[0]=="string"&&(n=this.renderer.pathToSegments(n)),this.pathArray=n,n=n.reduce(function(k,D,p){return D&&D.join?(p?k+" ":"")+D.join(" "):(D||"").toString()},"")),/(NaN| {2}|^$)/.test(n)&&(n="M 0 0"),this[l]!==n&&(b.setAttribute(l,n),this[l]=n)},s.prototype.fadeOut=function(n){var l=this;l.animate({opacity:0},{duration:t(n,150),complete:function(){l.hide()}})},s.prototype.fillSetter=function(n,l,b){typeof n=="string"?b.setAttribute(l,n):n&&this.complexColor(n,l,b)},s.prototype.getBBox=function(n,l){var b=this.alignValue,k=this.element,D=this.renderer,p=this.styles,C=this.textStr,A=D.cache,N=D.cacheKeys,_=k.namespaceURI===this.SVG_NS;l=t(l,this.rotation,0);var L,O=D.styledMode?k&&s.prototype.getStyle.call(k,"font-size"):p&&p.fontSize;if(u(C)){var j=C.toString();j.indexOf("<")===-1&&(j=j.replace(/[0-9]/g,"0")),j+=["",l,O,this.textWidth,b,p&&p.textOverflow,p&&p.fontWeight].join()}if(j&&!n&&(L=A[j]),!L){if(_||D.forExport){try{var Y=this.fakeTS&&function(G){var q=k.querySelector(".highcharts-text-outline");q&&m(q,{display:G})};c(Y)&&Y("none"),L=k.getBBox?w({},k.getBBox()):{width:k.offsetWidth,height:k.offsetHeight,x:0,y:0},c(Y)&&Y("")}catch(G){}(!L||0>L.width)&&(L={x:0,y:0,width:0,height:0})}else L=this.htmlGetBBox();if(D.isSVG&&(D=L.width,n=L.height,_&&(L.height=n={"11px,17":14,"13px,20":16}[""+(O||"")+",".concat(Math.round(n))]||n),l)){_=Number(k.getAttribute("y")||0)-L.y,b={right:1,center:.5}[b||0]||0,p=l*z,O=(l-90)*z;var X=D*Math.cos(p);l=D*Math.sin(p),Y=Math.cos(O),p=Math.sin(O),X=(Y=(O=(D=L.x+b*(D-X)+_*Y)+X)-n*Y)-X,l=(n=(b=(_=L.y+_-b*l+_*p)+l)-n*p)-l,L.x=Math.min(D,O,Y,X),L.y=Math.min(_,b,n,l),L.width=Math.max(D,O,Y,X)-L.x,L.height=Math.max(_,b,n,l)-L.y}if(j&&(C===""||0<L.height)){for(;250<N.length;)delete A[N.shift()];A[j]||N.push(j),A[j]=L}}return L},s.prototype.getStyle=function(n){return P.getComputedStyle(this.element||this,"").getPropertyValue(n)},s.prototype.hasClass=function(n){return(""+this.attr("class")).split(" ").indexOf(n)!==-1},s.prototype.hide=function(){return this.attr({visibility:"hidden"})},s.prototype.htmlGetBBox=function(){return{height:0,width:0,x:0,y:0}},s.prototype.init=function(n,l){this.element=l==="span"?f(l):I.createElementNS(this.SVG_NS,l),this.renderer=n,S(this,"afterInit")},s.prototype.on=function(n,l){var b=this.onEvents;return b[n]&&b[n](),b[n]=y(this.element,n,l),this},s.prototype.opacitySetter=function(n,l,b){this.opacity=n=Number(Number(n).toFixed(3)),b.setAttribute(l,n)},s.prototype.removeClass=function(n){return this.attr("class",(""+this.attr("class")).replace(g(n)?new RegExp("(^| )".concat(n,"( |$)")):n," ").replace(/ +/g," ").trim())},s.prototype.removeTextOutline=function(){var n=this.element.querySelector("tspan.highcharts-text-outline");n&&this.safeRemoveChild(n)},s.prototype.safeRemoveChild=function(n){var l=n.parentNode;l&&l.removeChild(n)},s.prototype.setRadialReference=function(n){var l=this.element.gradient&&this.renderer.gradients[this.element.gradient];return this.element.radialReference=n,l&&l.radAttr&&l.animate(this.renderer.getRadialAttr(n,l.radAttr)),this},s.prototype.setTextPath=function(n,l){var b=this;l=r(!0,{enabled:!0,attributes:{dy:-5,startOffset:"50%",textAnchor:"middle"}},l);var k=this.renderer.url,D=this.text||this,p=D.textPath,C=l.attributes,A=l.enabled;return n=n||p&&p.path,p&&p.undo(),n&&A?(l=y(D,"afterModifyTree",function(N){if(n&&A){var _=n.attr("id");_||n.attr("id",_=e());var L={x:0,y:0};u(C.dx)&&(L.dx=C.dx,delete C.dx),u(C.dy)&&(L.dy=C.dy,delete C.dy),D.attr(L),b.attr({transform:""}),b.box&&(b.box=b.box.destroy()),L=N.nodes.slice(0),N.nodes.length=0,N.nodes[0]={tagName:"textPath",attributes:w(C,{"text-anchor":C.textAnchor,href:""+k+"#".concat(_)}),children:L}}}),D.textPath={path:n,undo:l}):(D.attr({dx:0,dy:0}),delete D.textPath),this.added&&(D.textCache="",this.renderer.buildText(D)),this},s.prototype.shadow=function(n,l,b){var k=[],D=this.element,p=this.oldShadowOptions,C=this.parentGroup,A=C&&C.rotation===90;C={color:"#000000",offsetX:A?-1:1,offsetY:A?-1:1,opacity:.15,width:3};var N,_=!1;if(n===!0?N=C:typeof n=="object"&&(N=w(C,n)),N&&(N&&p&&a(N,function(Y,X){Y!==p[X]&&(_=!0)}),_&&this.destroyShadows(),this.oldShadowOptions=N),N){if(!this.shadows){C=N.opacity/N.width;var L=A?"translate(".concat(N.offsetY,", ").concat(N.offsetX,")"):"translate(".concat(N.offsetX,", ").concat(N.offsetY,")");for(A=1;A<=N.width;A++){var O=D.cloneNode(!1),j=2*N.width+1-2*A;h(O,{stroke:n.color||"#000000","stroke-opacity":C*A,"stroke-width":j,transform:L,fill:"none"}),O.setAttribute("class",(O.getAttribute("class")||"")+" highcharts-shadow"),b&&(h(O,"height",Math.max(h(O,"height")-j,0)),O.cutHeight=j),l?l.element.appendChild(O):D.parentNode&&D.parentNode.insertBefore(O,D),k.push(O)}this.shadows=k}}else this.destroyShadows();return this},s.prototype.show=function(n){return n===void 0&&(n=!0),this.attr({visibility:n?"inherit":"visible"})},s.prototype["stroke-widthSetter"]=function(n,l,b){this[l]=n,b.setAttribute(l,n)},s.prototype.strokeWidth=function(){if(!this.renderer.styledMode)return this["stroke-width"]||0;var n=this.getStyle("stroke-width"),l=0;if(n.indexOf("px")===n.length-2)l=i(n);else if(n!==""){var b=I.createElementNS(M,"rect");h(b,{width:n,"stroke-width":0}),this.element.parentNode.appendChild(b),l=b.getBBox().width,b.parentNode.removeChild(b)}return l},s.prototype.symbolAttr=function(n){var l=this;"x y r start end width height innerR anchorX anchorY clockwise".split(" ").forEach(function(b){l[b]=t(n[b],l[b])}),l.attr({d:l.renderer.symbols[l.symbolName](l.x,l.y,l.width,l.height,l)})},s.prototype.textSetter=function(n){n!==this.textStr&&(delete this.textPxLength,this.textStr=n,this.added&&this.renderer.buildText(this))},s.prototype.titleSetter=function(n){var l=this.element,b=l.getElementsByTagName("title")[0]||I.createElementNS(this.SVG_NS,"title");l.insertBefore?l.insertBefore(b,l.firstChild):l.appendChild(b),b.textContent=String(t(n,"")).replace(/<[^>]*>/g,"").replace(/&lt;/g,"<").replace(/&gt;/g,">")},s.prototype.toFront=function(){var n=this.element;return n.parentNode.appendChild(n),this},s.prototype.translate=function(n,l){return this.attr({translateX:n,translateY:l})},s.prototype.updateShadows=function(n,l,b){var k=this.shadows;if(k)for(var D=k.length;D--;)b.call(k[D],n==="height"?Math.max(l-(k[D].cutHeight||0),0):n==="d"?this.d:l,n,k[D])},s.prototype.updateTransform=function(){var n=this.element,l=this.matrix,b=this.rotation;b=b===void 0?0:b;var k=this.scaleX,D=this.scaleY,p=this.translateX,C=this.translateY;p=["translate("+(p===void 0?0:p)+","+(C===void 0?0:C)+")"],u(l)&&p.push("matrix("+l.join(",")+")"),b&&p.push("rotate("+b+" "+t(this.rotationOriginX,n.getAttribute("x"),0)+" "+t(this.rotationOriginY,n.getAttribute("y")||0)+")"),(u(k)||u(D))&&p.push("scale("+t(k,1)+" "+t(D,1)+")"),p.length&&!(this.text||this).textPath&&n.setAttribute("transform",p.join(" "))},s.prototype.visibilitySetter=function(n,l,b){n==="inherit"?b.removeAttribute(l):this[l]!==n&&b.setAttribute(l,n),this[l]=n},s.prototype.xGetter=function(n){return this.element.nodeName==="circle"&&(n==="x"?n="cx":n==="y"&&(n="cy")),this._defaultGetter(n)},s.prototype.zIndexSetter=function(n,l){var b=this.renderer,k=this.parentGroup,D=(k||b).element||b.box,p=this.element;b=D===b.box;var C,A=!1,N=this.added;if(u(n)?(p.setAttribute("data-z-index",n),n=+n,this[l]===n&&(N=!1)):u(this[l])&&p.removeAttribute("data-z-index"),this[l]=n,N){for((n=this.zIndex)&&k&&(k.handleZ=!0),C=(l=D.childNodes).length-1;0<=C&&!A;C--){N=(k=l[C]).getAttribute("data-z-index");var _=!u(N);k!==p&&(0>n&&_&&!b&&!C?(D.insertBefore(p,l[C]),A=!0):(i(N)<=n||_&&(!u(n)||0<=n))&&(D.insertBefore(p,l[C+1]||null),A=!0))}A||(D.insertBefore(p,l[b?3:0]||null),A=!0)}return A},s}(),W.prototype.strokeSetter=W.prototype.fillSetter,W.prototype.yGetter=W.prototype.xGetter,W.prototype.matrixSetter=W.prototype.rotationOriginXSetter=W.prototype.rotationOriginYSetter=W.prototype.rotationSetter=W.prototype.scaleXSetter=W.prototype.scaleYSetter=W.prototype.translateXSetter=W.prototype.translateYSetter=W.prototype.verticalAlignSetter=function(s,n){this[n]=s,this.doTransform=!0},W}),B(it,"Core/Renderer/RendererRegistry.js",[it["Core/Globals.js"]],function(W){var R;return function(H){var V;H.rendererTypes={},H.getRendererType=function($){return $===void 0&&($=V),H.rendererTypes[$]||H.rendererTypes[V]},H.registerRendererType=function($,Z,U){H.rendererTypes[$]=Z,V&&!U||(V=$,W.Renderer=Z)}}(R||(R={})),R}),B(it,"Core/Renderer/SVG/SVGLabel.js",[it["Core/Renderer/SVG/SVGElement.js"],it["Core/Utilities.js"]],function(W,R){var H=this&&this.__extends||function(){var E=function(M,P){return E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(y,h){y.__proto__=h}||function(y,h){for(var f in h)h.hasOwnProperty(f)&&(y[f]=h[f])},E(M,P)};return function(M,P){function y(){this.constructor=M}E(M,P),M.prototype=P===null?Object.create(P):(y.prototype=P.prototype,new y)}}(),V=R.defined,$=R.extend,Z=R.isNumber,U=R.merge,z=R.pick,I=R.removeEvent;return function(E){function M(P,y,h,f,m,u,v,w,S,x){var c,g=E.call(this)||this;return g.paddingLeftSetter=g.paddingSetter,g.paddingRightSetter=g.paddingSetter,g.init(P,"g"),g.textStr=y,g.x=h,g.y=f,g.anchorX=u,g.anchorY=v,g.baseline=S,g.className=x,g.addClass(x==="button"?"highcharts-no-tooltip":"highcharts-label"),x&&g.addClass("highcharts-"+x),g.text=P.text(void 0,0,0,w).attr({zIndex:1}),typeof m=="string"&&((c=/^url\((.*?)\)$/.test(m))||g.renderer.symbols[m])&&(g.symbolKey=m),g.bBox=M.emptyBBox,g.padding=3,g.baselineOffset=0,g.needsBox=P.styledMode||c,g.deferredAttr={},g.alignFactor=0,g}return H(M,E),M.prototype.alignSetter=function(P){(P={left:0,center:.5,right:1}[P])!==this.alignFactor&&(this.alignFactor=P,this.bBox&&Z(this.xSetting)&&this.attr({x:this.xSetting}))},M.prototype.anchorXSetter=function(P,y){this.anchorX=P,this.boxAttr(y,Math.round(P)-this.getCrispAdjust()-this.xSetting)},M.prototype.anchorYSetter=function(P,y){this.anchorY=P,this.boxAttr(y,P-this.ySetting)},M.prototype.boxAttr=function(P,y){this.box?this.box.attr(P,y):this.deferredAttr[P]=y},M.prototype.css=function(P){if(P){var y={};P=U(P),M.textProps.forEach(function(h){P[h]!==void 0&&(y[h]=P[h],delete P[h])}),this.text.css(y),"fontSize"in y||"fontWeight"in y?this.updateTextPadding():("width"in y||"textOverflow"in y)&&this.updateBoxSize()}return W.prototype.css.call(this,P)},M.prototype.destroy=function(){I(this.element,"mouseenter"),I(this.element,"mouseleave"),this.text&&this.text.destroy(),this.box&&(this.box=this.box.destroy()),W.prototype.destroy.call(this)},M.prototype.fillSetter=function(P,y){P&&(this.needsBox=!0),this.fill=P,this.boxAttr(y,P)},M.prototype.getBBox=function(){this.textStr&&this.bBox.width===0&&this.bBox.height===0&&this.updateBoxSize();var P=this.padding,y=z(this.paddingLeft,P);return{width:this.width,height:this.height,x:this.bBox.x-y,y:this.bBox.y-P}},M.prototype.getCrispAdjust=function(){return this.renderer.styledMode&&this.box?this.box.strokeWidth()%2/2:(this["stroke-width"]?parseInt(this["stroke-width"],10):0)%2/2},M.prototype.heightSetter=function(P){this.heightSetting=P},M.prototype.onAdd=function(){this.text.add(this),this.attr({text:z(this.textStr,""),x:this.x||0,y:this.y||0}),this.box&&V(this.anchorX)&&this.attr({anchorX:this.anchorX,anchorY:this.anchorY})},M.prototype.paddingSetter=function(P,y){Z(P)?P!==this[y]&&(this[y]=P,this.updateTextPadding()):this[y]=void 0},M.prototype.rSetter=function(P,y){this.boxAttr(y,P)},M.prototype.shadow=function(P){return P&&!this.renderer.styledMode&&(this.updateBoxSize(),this.box&&this.box.shadow(P)),this},M.prototype.strokeSetter=function(P,y){this.stroke=P,this.boxAttr(y,P)},M.prototype["stroke-widthSetter"]=function(P,y){P&&(this.needsBox=!0),this["stroke-width"]=P,this.boxAttr(y,P)},M.prototype["text-alignSetter"]=function(P){this.textAlign=P},M.prototype.textSetter=function(P){P!==void 0&&this.text.attr({text:P}),this.updateTextPadding()},M.prototype.updateBoxSize=function(){var P=this.text,y=P.element.style,h={},f=this.padding,m=this.bBox=Z(this.widthSetting)&&Z(this.heightSetting)&&!this.textAlign||!V(P.textStr)?M.emptyBBox:P.getBBox();this.width=this.getPaddedWidth(),this.height=(this.heightSetting||m.height||0)+2*f,y=this.renderer.fontMetrics(y&&y.fontSize,P),this.baselineOffset=f+Math.min((this.text.firstLineMetrics||y).b,m.height||1/0),this.heightSetting&&(this.baselineOffset+=(this.heightSetting-y.h)/2),this.needsBox&&!P.textPath&&(this.box||((P=this.box=this.symbolKey?this.renderer.symbol(this.symbolKey):this.renderer.rect()).addClass((this.className==="button"?"":"highcharts-label-box")+(this.className?" highcharts-"+this.className+"-box":"")),P.add(this)),P=this.getCrispAdjust(),h.x=P,h.y=(this.baseline?-this.baselineOffset:0)+P,h.width=Math.round(this.width),h.height=Math.round(this.height),this.box.attr($(h,this.deferredAttr)),this.deferredAttr={})},M.prototype.updateTextPadding=function(){var P=this.text;if(!P.textPath){this.updateBoxSize();var y=this.baseline?0:this.baselineOffset,h=z(this.paddingLeft,this.padding);V(this.widthSetting)&&this.bBox&&(this.textAlign==="center"||this.textAlign==="right")&&(h+={center:.5,right:1}[this.textAlign]*(this.widthSetting-this.bBox.width)),h===P.x&&y===P.y||(P.attr("x",h),P.hasBoxWidthChanged&&(this.bBox=P.getBBox(!0)),y!==void 0&&P.attr("y",y)),P.x=h,P.y=y}},M.prototype.widthSetter=function(P){this.widthSetting=Z(P)?P:void 0},M.prototype.getPaddedWidth=function(){var P=this.padding,y=z(this.paddingLeft,P);return P=z(this.paddingRight,P),(this.widthSetting||this.bBox.width||0)+y+P},M.prototype.xSetter=function(P){this.x=P,this.alignFactor&&(P-=this.alignFactor*this.getPaddedWidth(),this["forceAnimate:x"]=!0),this.xSetting=Math.round(P),this.attr("translateX",this.xSetting)},M.prototype.ySetter=function(P){this.ySetting=this.y=Math.round(P),this.attr("translateY",this.ySetting)},M.emptyBBox={width:0,height:0,x:0,y:0},M.textProps="color direction fontFamily fontSize fontStyle fontWeight lineHeight textAlign textDecoration textOutline textOverflow width".split(" "),M}(W)}),B(it,"Core/Renderer/SVG/Symbols.js",[it["Core/Utilities.js"]],function(W){function R(z,I,E,M,P){var y=[];if(P){var h=P.start||0,f=U(P.r,E);E=U(P.r,M||E);var m=(P.end||0)-.001;M=P.innerR;var u=U(P.open,.001>Math.abs((P.end||0)-h-2*Math.PI)),v=Math.cos(h),w=Math.sin(h),S=Math.cos(m),x=Math.sin(m);h=U(P.longArc,.001>m-h-Math.PI?0:1),y.push(["M",z+f*v,I+E*w],["A",f,E,0,h,U(P.clockwise,1),z+f*S,I+E*x]),$(M)&&y.push(u?["M",z+M*S,I+M*x]:["L",z+M*S,I+M*x],["A",M,M,0,h,$(P.clockwise)?1-P.clockwise:0,z+M*v,I+M*w]),u||y.push(["Z"])}return y}function H(z,I,E,M,P){return P&&P.r?V(z,I,E,M,P):[["M",z,I],["L",z+E,I],["L",z+E,I+M],["L",z,I+M],["Z"]]}function V(z,I,E,M,P){return[["M",z+(P=P&&P.r||0),I],["L",z+E-P,I],["C",z+E,I,z+E,I,z+E,I+P],["L",z+E,I+M-P],["C",z+E,I+M,z+E,I+M,z+E-P,I+M],["L",z+P,I+M],["C",z,I+M,z,I+M,z,I+M-P],["L",z,I+P],["C",z,I,z,I,z+P,I]]}var $=W.defined,Z=W.isNumber,U=W.pick;return{arc:R,callout:function(z,I,E,M,P){var y=Math.min(P&&P.r||0,E,M),h=y+6,f=P&&P.anchorX;P=P&&P.anchorY||0;var m=V(z,I,E,M,{r:y});return Z(f)&&(z+f>=E?P>I+h&&P<I+M-h?m.splice(3,1,["L",z+E,P-6],["L",z+E+6,P],["L",z+E,P+6],["L",z+E,I+M-y]):m.splice(3,1,["L",z+E,M/2],["L",f,P],["L",z+E,M/2],["L",z+E,I+M-y]):0>=z+f?P>I+h&&P<I+M-h?m.splice(7,1,["L",z,P+6],["L",z-6,P],["L",z,P-6],["L",z,I+y]):m.splice(7,1,["L",z,M/2],["L",f,P],["L",z,M/2],["L",z,I+y]):P&&P>M&&f>z+h&&f<z+E-h?m.splice(5,1,["L",f+6,I+M],["L",f,I+M+6],["L",f-6,I+M],["L",z+y,I+M]):P&&0>P&&f>z+h&&f<z+E-h&&m.splice(1,1,["L",f-6,I],["L",f,I-6],["L",f+6,I],["L",E-y,I])),m},circle:function(z,I,E,M){return R(z+E/2,I+M/2,E/2,M/2,{start:.5*Math.PI,end:2.5*Math.PI,open:!1})},diamond:function(z,I,E,M){return[["M",z+E/2,I],["L",z+E,I+M/2],["L",z+E/2,I+M],["L",z,I+M/2],["Z"]]},rect:H,roundedRect:V,square:H,triangle:function(z,I,E,M){return[["M",z+E/2,I],["L",z+E,I+M],["L",z,I+M],["Z"]]},"triangle-down":function(z,I,E,M){return[["M",z,I],["L",z+E,I],["L",z+E/2,I+M],["Z"]]}}}),B(it,"Core/Renderer/SVG/TextBuilder.js",[it["Core/Renderer/HTML/AST.js"],it["Core/Globals.js"],it["Core/Utilities.js"]],function(W,R,H){var V=R.doc,$=R.SVG_NS,Z=R.win,U=H.attr,z=H.extend,I=H.fireEvent,E=H.isString,M=H.objectEach,P=H.pick;return function(){function y(h){var f=h.styles;this.renderer=h.renderer,this.svgElement=h,this.width=h.textWidth,this.textLineHeight=f&&f.lineHeight,this.textOutline=f&&f.textOutline,this.ellipsis=!(!f||f.textOverflow!=="ellipsis"),this.noWrap=!(!f||f.whiteSpace!=="nowrap"),this.fontSize=f&&f.fontSize}return y.prototype.buildSVG=function(){var h=this.svgElement,f=h.element,m=h.renderer,u=P(h.textStr,"").toString(),v=u.indexOf("<")!==-1,w=f.childNodes;m=this.width&&!h.added&&m.box;var S=[u,this.ellipsis,this.noWrap,this.textLineHeight,this.textOutline,this.fontSize,this.width].join();if(S!==h.textCache){for(h.textCache=S,delete h.actualWidth,S=w.length;S--;)f.removeChild(w[S]);v||this.ellipsis||this.width||h.textPath||u.indexOf(" ")!==-1&&(!this.noWrap||/<br.*?>/g.test(u))?u!==""&&(m&&m.appendChild(f),u=new W(u),this.modifyTree(u.nodes),u.addToDOM(f),this.modifyDOM(),this.ellipsis&&(f.textContent||"").indexOf("…")!==-1&&h.attr("title",this.unescapeEntities(h.textStr||"",["&lt;","&gt;"])),m&&m.removeChild(f)):f.appendChild(V.createTextNode(this.unescapeEntities(u))),E(this.textOutline)&&h.applyTextOutline&&h.applyTextOutline(this.textOutline)}},y.prototype.modifyDOM=function(){var h,f=this,m=this.svgElement,u=U(m.element,"x");for(m.firstLineMetrics=void 0;(h=m.element.firstChild)&&/^[\s\u200B]*$/.test(h.textContent||" ");)m.element.removeChild(h);[].forEach.call(m.element.querySelectorAll("tspan.highcharts-br"),function(x,c){x.nextSibling&&x.previousSibling&&(c===0&&x.previousSibling.nodeType===1&&(m.firstLineMetrics=m.renderer.fontMetrics(void 0,x.previousSibling)),U(x,{dy:f.getLineHeight(x.nextSibling),x:u}))});var v=this.width||0;if(v){var w=function(x,c){var g=x.textContent||"",r=g.replace(/([^\^])-/g,"$1- ").split(" "),a=!f.noWrap&&(1<r.length||1<m.element.childNodes.length),t=f.getLineHeight(c),i=0,o=m.actualWidth;if(f.ellipsis)g&&f.truncate(x,g,void 0,0,Math.max(0,v-parseInt(f.fontSize||12,10)),function(e,s){return e.substring(0,s)+"…"});else if(a){for(g=[],a=[];c.firstChild&&c.firstChild!==x;)a.push(c.firstChild),c.removeChild(c.firstChild);for(;r.length;)r.length&&!f.noWrap&&0<i&&(g.push(x.textContent||""),x.textContent=r.join(" ").replace(/- /g,"-")),f.truncate(x,void 0,r,i===0&&o||0,v,function(e,s){return r.slice(0,s).join(" ").replace(/- /g,"-")}),o=m.actualWidth,i++;a.forEach(function(e){c.insertBefore(e,x)}),g.forEach(function(e){c.insertBefore(V.createTextNode(e),x),(e=V.createElementNS($,"tspan")).textContent="​",U(e,{dy:t,x:u}),c.insertBefore(e,x)})}},S=function(x){[].slice.call(x.childNodes).forEach(function(c){c.nodeType===Z.Node.TEXT_NODE?w(c,x):(c.className.baseVal.indexOf("highcharts-br")!==-1&&(m.actualWidth=0),S(c))})};S(m.element)}},y.prototype.getLineHeight=function(h){var f;return h=h.nodeType===Z.Node.TEXT_NODE?h.parentElement:h,this.renderer.styledMode||(f=h&&/(px|em)$/.test(h.style.fontSize)?h.style.fontSize:this.fontSize||this.renderer.style.fontSize||12),this.textLineHeight?parseInt(this.textLineHeight.toString(),10):this.renderer.fontMetrics(f,h||this.svgElement.element).h},y.prototype.modifyTree=function(h){var f=this,m=function(u,v){var w=u.attributes;w=w===void 0?{}:w;var S=u.children,x=u.style;x=x===void 0?{}:x;var c=u.tagName,g=f.renderer.styledMode;c==="b"||c==="strong"?g?w.class="highcharts-strong":x.fontWeight="bold":c!=="i"&&c!=="em"||(g?w.class="highcharts-emphasized":x.fontStyle="italic"),x&&x.color&&(x.fill=x.color),c==="br"?(w.class="highcharts-br",u.textContent="​",(v=h[v+1])&&v.textContent&&(v.textContent=v.textContent.replace(/^ +/gm,""))):c==="a"&&S&&S.some(function(r){return r.tagName==="#text"})&&(u.children=[{children:S,tagName:"tspan"}]),c!=="#text"&&c!=="a"&&(u.tagName="tspan"),z(u,{attributes:w,style:x}),S&&S.filter(function(r){return r.tagName!=="#text"}).forEach(m)};h.forEach(m),I(this.svgElement,"afterModifyTree",{nodes:h})},y.prototype.truncate=function(h,f,m,u,v,w){var S,x=this.svgElement,c=x.renderer,g=x.rotation,r=[],a=m?1:0,t=(f||m||"").length,i=t,o=function(s,n){n=n||s;var l=h.parentNode;if(l&&r[n]===void 0)if(l.getSubStringLength)try{r[n]=u+l.getSubStringLength(0,m?n+1:n)}catch(b){}else c.getSpanWidth&&(h.textContent=w(f||m,s),r[n]=u+c.getSpanWidth(x,h));return r[n]};x.rotation=0;var e=o(h.textContent.length);if(u+e>v){for(;a<=t;)i=Math.ceil((a+t)/2),m&&(S=w(m,i)),e=o(i,S&&S.length-1),a===t?a=t+1:e>v?t=i-1:a=i;t===0?h.textContent="":f&&t===f.length-1||(h.textContent=S||w(f||m,i))}m&&m.splice(0,i),x.actualWidth=e,x.rotation=g},y.prototype.unescapeEntities=function(h,f){return M(this.renderer.escapes,function(m,u){f&&f.indexOf(m)!==-1||(h=h.toString().replace(new RegExp(m,"g"),u))}),h},y}()}),B(it,"Core/Renderer/SVG/SVGRenderer.js",[it["Core/Renderer/HTML/AST.js"],it["Core/Color/Color.js"],it["Core/Globals.js"],it["Core/Renderer/RendererRegistry.js"],it["Core/Renderer/SVG/SVGElement.js"],it["Core/Renderer/SVG/SVGLabel.js"],it["Core/Renderer/SVG/Symbols.js"],it["Core/Renderer/SVG/TextBuilder.js"],it["Core/Utilities.js"]],function(W,R,H,V,$,Z,U,z,I){var E,M=H.charts,P=H.deg2rad,y=H.doc,h=H.isFirefox,f=H.isMS,m=H.isWebKit,u=H.noop,v=H.SVG_NS,w=H.symbolSizes,S=H.win,x=I.addEvent,c=I.attr,g=I.createElement,r=I.css,a=I.defined,t=I.destroyObjectProperties,i=I.extend,o=I.isArray,e=I.isNumber,s=I.isObject,n=I.isString,l=I.merge,b=I.pick,k=I.pInt,D=I.uniqueKey;return H=function(){function p(C,A,N,_,L,O,j){this.width=this.url=this.style=this.isSVG=this.imgCount=this.height=this.gradients=this.globalAnimation=this.defs=this.chartIndex=this.cacheKeys=this.cache=this.boxWrapper=this.box=this.alignedObjects=void 0,this.init(C,A,N,_,L,O,j)}return p.prototype.init=function(C,A,N,_,L,O,j){var Y,X=this.createElement("svg").attr({version:"1.1",class:"highcharts-root"}),G=X.element;j||X.css(this.getStyle(_)),C.appendChild(G),c(C,"dir","ltr"),C.innerHTML.indexOf("xmlns")===-1&&c(G,"xmlns",this.SVG_NS),this.isSVG=!0,this.box=G,this.boxWrapper=X,this.alignedObjects=[],this.url=this.getReferenceURL(),this.createElement("desc").add().element.appendChild(y.createTextNode("Created with Highcharts 10.3.3")),this.defs=this.createElement("defs").add(),this.allowHTML=O,this.forExport=L,this.styledMode=j,this.gradients={},this.cache={},this.cacheKeys=[],this.imgCount=0,this.setSize(A,N,!1),h&&C.getBoundingClientRect&&((A=function(){r(C,{left:0,top:0}),Y=C.getBoundingClientRect(),r(C,{left:Math.ceil(Y.left)-Y.left+"px",top:Math.ceil(Y.top)-Y.top+"px"})})(),this.unSubPixelFix=x(S,"resize",A))},p.prototype.definition=function(C){return new W([C]).addToDOM(this.defs.element)},p.prototype.getReferenceURL=function(){if((h||m)&&y.getElementsByTagName("base").length){if(!a(E)){var C=D();C=new W([{tagName:"svg",attributes:{width:8,height:8},children:[{tagName:"defs",children:[{tagName:"clipPath",attributes:{id:C},children:[{tagName:"rect",attributes:{width:4,height:4}}]}]},{tagName:"rect",attributes:{id:"hitme",width:8,height:8,"clip-path":"url(#".concat(C,")"),fill:"rgba(0,0,0,0.001)"}}]}]).addToDOM(y.body),r(C,{position:"fixed",top:0,left:0,zIndex:9e5});var A=y.elementFromPoint(6,6);E=(A&&A.id)==="hitme",y.body.removeChild(C)}if(E)return S.location.href.split("#")[0].replace(/<[^>]*>/g,"").replace(/([\('\)])/g,"\\$1").replace(/ /g,"%20")}return""},p.prototype.getStyle=function(C){return this.style=i({fontFamily:'"Lucida Grande", "Lucida Sans Unicode", Arial, Helvetica, sans-serif',fontSize:"12px"},C)},p.prototype.setStyle=function(C){this.boxWrapper.css(this.getStyle(C))},p.prototype.isHidden=function(){return!this.boxWrapper.getBBox().width},p.prototype.destroy=function(){var C=this.defs;return this.box=null,this.boxWrapper=this.boxWrapper.destroy(),t(this.gradients||{}),this.gradients=null,C&&(this.defs=C.destroy()),this.unSubPixelFix&&this.unSubPixelFix(),this.alignedObjects=null},p.prototype.createElement=function(C){var A=new this.Element;return A.init(this,C),A},p.prototype.getRadialAttr=function(C,A){return{cx:C[0]-C[2]/2+(A.cx||0)*C[2],cy:C[1]-C[2]/2+(A.cy||0)*C[2],r:(A.r||0)*C[2]}},p.prototype.buildText=function(C){new z(C).buildSVG()},p.prototype.getContrast=function(C){return 1.05/(.05+(C=.2126*(C=R.parse(C).rgba.map(function(A){return .03928>=(A/=255)?A/12.92:Math.pow((A+.055)/1.055,2.4)}))[0]+.7152*C[1]+.0722*C[2]))>(C+.05)/.05?"#FFFFFF":"#000000"},p.prototype.button=function(C,A,N,_,L,O,j,Y,X,G){L===void 0&&(L={});var q=this.label(C,A,N,X,void 0,void 0,G,void 0,"button"),Q=this.styledMode;C=L.states||{};var J=0;delete(L=l(L)).states;var rt=l({color:"#333333",cursor:"pointer",fontWeight:"normal"},L.style);delete L.style;var lt=W.filterUserAttributes(L);if(q.attr(l({padding:8,r:2},lt)),!Q){lt=l({fill:"#f7f7f7",stroke:"#cccccc","stroke-width":1},lt);var gt=(O=l(lt,{fill:"#e6e6e6"},W.filterUserAttributes(O||C.hover||{}))).style;delete O.style;var mt=(j=l(lt,{fill:"#e6ebf5",style:{color:"#000000",fontWeight:"bold"}},W.filterUserAttributes(j||C.select||{}))).style;delete j.style;var bt=(Y=l(lt,{style:{color:"#cccccc"}},W.filterUserAttributes(Y||C.disabled||{}))).style;delete Y.style}return x(q.element,f?"mouseover":"mouseenter",function(){J!==3&&q.setState(1)}),x(q.element,f?"mouseout":"mouseleave",function(){J!==3&&q.setState(J)}),q.setState=function(yt){yt!==1&&(q.state=J=yt),q.removeClass(/highcharts-button-(normal|hover|pressed|disabled)/).addClass("highcharts-button-"+["normal","hover","pressed","disabled"][yt||0]),Q||(q.attr([lt,O,j,Y][yt||0]),s(yt=[rt,gt,mt,bt][yt||0])&&q.css(yt))},Q||(q.attr(lt).css(i({cursor:"default"},rt)),G&&q.text.css({pointerEvents:"none"})),q.on("touchstart",function(yt){return yt.stopPropagation()}).on("click",function(yt){J!==3&&_.call(q,yt)})},p.prototype.crispLine=function(C,A,N){N===void 0&&(N="round");var _=C[0],L=C[1];return a(_[1])&&_[1]===L[1]&&(_[1]=L[1]=Math[N](_[1])-A%2/2),a(_[2])&&_[2]===L[2]&&(_[2]=L[2]=Math[N](_[2])+A%2/2),C},p.prototype.path=function(C){var A=this.styledMode?{}:{fill:"none"};return o(C)?A.d=C:s(C)&&i(A,C),this.createElement("path").attr(A)},p.prototype.circle=function(C,A,N){return C=s(C)?C:C===void 0?{}:{x:C,y:A,r:N},(A=this.createElement("circle")).xSetter=A.ySetter=function(_,L,O){O.setAttribute("c"+L,_)},A.attr(C)},p.prototype.arc=function(C,A,N,_,L,O){return s(C)?(A=(_=C).y,N=_.r,C=_.x):_={innerR:_,start:L,end:O},(C=this.symbol("arc",C,A,N,N,_)).r=N,C},p.prototype.rect=function(C,A,N,_,L,O){L=s(C)?C.r:L;var j=this.createElement("rect");return C=s(C)?C:C===void 0?{}:{x:C,y:A,width:Math.max(N,0),height:Math.max(_,0)},this.styledMode||(O!==void 0&&(C["stroke-width"]=O,C=j.crisp(C)),C.fill="none"),L&&(C.r=L),j.rSetter=function(Y,X,G){j.r=Y,c(G,{rx:Y,ry:Y})},j.rGetter=function(){return j.r||0},j.attr(C)},p.prototype.setSize=function(C,A,N){this.width=C,this.height=A,this.boxWrapper.animate({width:C,height:A},{step:function(){this.attr({viewBox:"0 0 "+this.attr("width")+" "+this.attr("height")})},duration:b(N,!0)?void 0:0}),this.alignElements()},p.prototype.g=function(C){var A=this.createElement("g");return C?A.attr({class:"highcharts-"+C}):A},p.prototype.image=function(C,A,N,_,L,O){var j={preserveAspectRatio:"none"},Y=function(G,q){G.setAttributeNS?G.setAttributeNS("http://www.w3.org/1999/xlink","href",q):G.setAttribute("hc-svg-href",q)};e(A)&&(j.x=A),e(N)&&(j.y=N),e(_)&&(j.width=_),e(L)&&(j.height=L);var X=this.createElement("image").attr(j);return A=function(G){Y(X.element,C),O.call(X,G)},O?(Y(X.element,"data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw=="),N=new S.Image,x(N,"load",A),N.src=C,N.complete&&A({})):Y(X.element,C),X},p.prototype.symbol=function(C,A,N,_,L,O){var j,Y=this,X=/^url\((.*?)\)$/,G=X.test(C),q=!G&&(this.symbols[C]?C:"circle"),Q=q&&this.symbols[q];if(Q){typeof A=="number"&&(j=Q.call(this.symbols,Math.round(A||0),Math.round(N||0),_||0,L||0,O));var J=this.path(j);Y.styledMode||J.attr("fill","none"),i(J,{symbolName:q||void 0,x:A,y:N,width:_,height:L}),O&&i(J,O)}else if(G){var rt=C.match(X)[1],lt=J=this.image(rt);lt.imgwidth=b(w[rt]&&w[rt].width,O&&O.width),lt.imgheight=b(w[rt]&&w[rt].height,O&&O.height);var gt=function(mt){return mt.attr({width:mt.width,height:mt.height})};["width","height"].forEach(function(mt){lt[mt+"Setter"]=function(bt,yt){this[yt]=bt,bt=this.alignByTranslate;var ct=this.element,et=this.width,at=this.height,dt=this.imgwidth,vt=this.imgheight,Ct=this["img"+yt];if(a(Ct)){var xt=1;O&&O.backgroundSize==="within"&&et&&at?(xt=Math.min(et/dt,at/vt),Ct=Math.round(Ct*xt),c(ct,{width:Math.round(dt*xt),height:Math.round(vt*xt)})):ct&&ct.setAttribute(yt,Ct),bt||this.translate(((et||0)-Ct*xt)/2,((at||0)-Ct*xt)/2)}}}),a(A)&&lt.attr({x:A,y:N}),lt.isImg=!0,a(lt.imgwidth)&&a(lt.imgheight)?gt(lt):(lt.attr({width:0,height:0}),g("img",{onload:function(){var mt=M[Y.chartIndex];this.width===0&&(r(this,{position:"absolute",top:"-999em"}),y.body.appendChild(this)),w[rt]={width:this.width,height:this.height},lt.imgwidth=this.width,lt.imgheight=this.height,lt.element&&gt(lt),this.parentNode&&this.parentNode.removeChild(this),Y.imgCount--,Y.imgCount||!mt||mt.hasLoaded||mt.onload()},src:rt}),this.imgCount++)}return J},p.prototype.clipRect=function(C,A,N,_){var L=D()+"-",O=this.createElement("clipPath").attr({id:L}).add(this.defs);return(C=this.rect(C,A,N,_,0).add(O)).id=L,C.clipPath=O,C.count=0,C},p.prototype.text=function(C,A,N,_){var L={};return!_||!this.allowHTML&&this.forExport?(L.x=Math.round(A||0),N&&(L.y=Math.round(N)),a(C)&&(L.text=C),C=this.createElement("text").attr(L),(!_||this.forExport&&!this.allowHTML)&&(C.xSetter=function(O,j,Y){for(var X,G=Y.getElementsByTagName("tspan"),q=Y.getAttribute(j),Q=0;Q<G.length;Q++)(X=G[Q]).getAttribute(j)===q&&X.setAttribute(j,O);Y.setAttribute(j,O)}),C):this.html(C,A,N)},p.prototype.fontMetrics=function(C,A){return C=!this.styledMode&&/px/.test(C)||!S.getComputedStyle?C||A&&A.style&&A.style.fontSize||this.style&&this.style.fontSize:A&&$.prototype.getStyle.call(A,"font-size"),{h:A=24>(C=/px/.test(C)?k(C):12)?C+3:Math.round(1.2*C),b:Math.round(.8*A),f:C}},p.prototype.rotCorr=function(C,A,N){var _=C;return A&&N&&(_=Math.max(_*Math.cos(A*P),4)),{x:-C/3*Math.sin(A*P),y:_}},p.prototype.pathToSegments=function(C){for(var A=[],N=[],_={A:8,C:7,H:2,L:3,M:3,Q:5,S:5,T:3,V:2},L=0;L<C.length;L++)n(N[0])&&e(C[L])&&N.length===_[N[0].toUpperCase()]&&C.splice(L,0,N[0].replace("M","L").replace("m","l")),typeof C[L]=="string"&&(N.length&&A.push(N.slice(0)),N.length=0),N.push(C[L]);return A.push(N.slice(0)),A},p.prototype.label=function(C,A,N,_,L,O,j,Y,X){return new Z(this,C,A,N,_,L,O,j,Y,X)},p.prototype.alignElements=function(){this.alignedObjects.forEach(function(C){return C.align()})},p}(),i(H.prototype,{Element:$,SVG_NS:v,escapes:{"&":"&amp;","<":"&lt;",">":"&gt;","'":"&#39;",'"':"&quot;"},symbols:U,draw:u}),V.registerRendererType("svg",H,!0),H}),B(it,"Core/Renderer/HTML/HTMLElement.js",[it["Core/Globals.js"],it["Core/Renderer/SVG/SVGElement.js"],it["Core/Utilities.js"]],function(W,R,H){var V=this&&this.__extends||function(){var h=function(f,m){return h=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(u,v){u.__proto__=v}||function(u,v){for(var w in v)v.hasOwnProperty(w)&&(u[w]=v[w])},h(f,m)};return function(f,m){function u(){this.constructor=f}h(f,m),f.prototype=m===null?Object.create(m):(u.prototype=m.prototype,new u)}}(),$=W.isFirefox,Z=W.isMS,U=W.isWebKit,z=W.win,I=H.css,E=H.defined,M=H.extend,P=H.pick,y=H.pInt;return function(h){function f(){return h!==null&&h.apply(this,arguments)||this}return V(f,h),f.compose=function(m){if(f.composedClasses.indexOf(m)===-1){f.composedClasses.push(m);var u=f.prototype,v=m.prototype;v.getSpanCorrection=u.getSpanCorrection,v.htmlCss=u.htmlCss,v.htmlGetBBox=u.htmlGetBBox,v.htmlUpdateTransform=u.htmlUpdateTransform,v.setSpanRotation=u.setSpanRotation}return m},f.prototype.getSpanCorrection=function(m,u,v){this.xCorr=-m*v,this.yCorr=-u},f.prototype.htmlCss=function(m){var u=this.element.tagName==="SPAN"&&m&&"width"in m,v=P(u&&m.width,void 0);if(u){delete m.width,this.textWidth=v;var w=!0}return m&&m.textOverflow==="ellipsis"&&(m.whiteSpace="nowrap",m.overflow="hidden"),this.styles=M(this.styles,m),I(this.element,m),w&&this.htmlUpdateTransform(),this},f.prototype.htmlGetBBox=function(){var m=this.element;return{x:m.offsetLeft,y:m.offsetTop,width:m.offsetWidth,height:m.offsetHeight}},f.prototype.htmlUpdateTransform=function(){if(this.added){var m=this.renderer,u=this.element,v=this.translateX||0,w=this.translateY||0,S=this.x||0,x=this.y||0,c=this.textAlign||"left",g={left:0,center:.5,right:1}[c],r=this.styles;if(r=r&&r.whiteSpace,I(u,{marginLeft:v,marginTop:w}),!m.styledMode&&this.shadows&&this.shadows.forEach(function(s){I(s,{marginLeft:v+1,marginTop:w+1})}),this.inverted&&[].forEach.call(u.childNodes,function(s){m.invertChild(s,u)}),u.tagName==="SPAN"){var a=this.rotation,t=this.textWidth&&y(this.textWidth),i=[a,c,u.innerHTML,this.textWidth,this.textAlign].join(),o=void 0;if(o=!1,t!==this.oldTextWidth){if(this.textPxLength)var e=this.textPxLength;else I(u,{width:"",whiteSpace:r||"nowrap"}),e=u.offsetWidth;(t>this.oldTextWidth||e>t)&&(/[ \-]/.test(u.textContent||u.innerText)||u.style.textOverflow==="ellipsis")&&(I(u,{width:e>t||a?t+"px":"auto",display:"block",whiteSpace:r||"normal"}),this.oldTextWidth=t,o=!0)}this.hasBoxWidthChanged=o,i!==this.cTT&&(o=m.fontMetrics(u.style.fontSize,u).b,!E(a)||a===(this.oldRotation||0)&&c===this.oldAlign||this.setSpanRotation(a,g,o),this.getSpanCorrection(!E(a)&&this.textPxLength||u.offsetWidth,o,g,a,c)),I(u,{left:S+(this.xCorr||0)+"px",top:x+(this.yCorr||0)+"px"}),this.cTT=i,this.oldRotation=a,this.oldAlign=c}}else this.alignOnAdd=!0},f.prototype.setSpanRotation=function(m,u,v){var w={},S=Z&&!/Edge/.test(z.navigator.userAgent)?"-ms-transform":U?"-webkit-transform":$?"MozTransform":z.opera?"-o-transform":void 0;S&&(w[S]=w.transform="rotate("+m+"deg)",w[S+($?"Origin":"-origin")]=w.transformOrigin=100*u+"% "+v+"px",I(this.element,w))},f.composedClasses=[],f}(R)}),B(it,"Core/Renderer/HTML/HTMLRenderer.js",[it["Core/Renderer/HTML/AST.js"],it["Core/Renderer/SVG/SVGElement.js"],it["Core/Renderer/SVG/SVGRenderer.js"],it["Core/Utilities.js"]],function(W,R,H,V){var $=this&&this.__extends||function(){var E=function(M,P){return E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(y,h){y.__proto__=h}||function(y,h){for(var f in h)h.hasOwnProperty(f)&&(y[f]=h[f])},E(M,P)};return function(M,P){function y(){this.constructor=M}E(M,P),M.prototype=P===null?Object.create(P):(y.prototype=P.prototype,new y)}}(),Z=V.attr,U=V.createElement,z=V.extend,I=V.pick;return function(E){function M(){return E!==null&&E.apply(this,arguments)||this}return $(M,E),M.compose=function(P){return M.composedClasses.indexOf(P)===-1&&(M.composedClasses.push(P),P.prototype.html=M.prototype.html),P},M.prototype.html=function(P,y,h){var f=this.createElement("span"),m=f.element,u=f.renderer,v=u.isSVG,w=function(S,x){["opacity","visibility"].forEach(function(c){S[c+"Setter"]=function(g,r,a){var t=S.div?S.div.style:x;R.prototype[c+"Setter"].call(this,g,r,a),t&&(t[r]=g)}}),S.addedSetters=!0};return f.textSetter=function(S){S!==this.textStr&&(delete this.bBox,delete this.oldTextWidth,W.setElementHTML(this.element,I(S,"")),this.textStr=S,f.doTransform=!0)},v&&w(f,f.element.style),f.xSetter=f.ySetter=f.alignSetter=f.rotationSetter=function(S,x){x==="align"?f.alignValue=f.textAlign=S:f[x]=S,f.doTransform=!0},f.afterSetters=function(){this.doTransform&&(this.htmlUpdateTransform(),this.doTransform=!1)},f.attr({text:P,x:Math.round(y),y:Math.round(h)}).css({position:"absolute"}),u.styledMode||f.css({fontFamily:this.style.fontFamily,fontSize:this.style.fontSize}),m.style.whiteSpace="nowrap",f.css=f.htmlCss,v&&(f.add=function(S){var x=u.box.parentNode,c=[];if(this.parentGroup=S){var g=S.div;if(!g){for(;S;)c.push(S),S=S.parentGroup;c.reverse().forEach(function(r){function a(e,s){r[s]=e,s==="translateX"?o.left=e+"px":o.top=e+"px",r.doTransform=!0}var t=Z(r.element,"class"),i=r.styles||{},o=(g=r.div=r.div||U("div",t?{className:t}:void 0,{position:"absolute",left:(r.translateX||0)+"px",top:(r.translateY||0)+"px",display:r.display,opacity:r.opacity,cursor:i.cursor,pointerEvents:i.pointerEvents,visibility:r.visibility},g||x)).style;z(r,{classSetter:function(e){return function(s){this.element.setAttribute("class",s),e.className=s}}(g),on:function(){return c[0].div&&f.on.apply({element:c[0].div,onEvents:r.onEvents},arguments),r},translateXSetter:a,translateYSetter:a}),r.addedSetters||w(r)})}}else g=x;return g.appendChild(m),f.added=!0,f.alignOnAdd&&f.htmlUpdateTransform(),f}),f},M.composedClasses=[],M}(H)}),B(it,"Core/Axis/AxisDefaults.js",[],function(){var W;return function(R){R.defaultXAxisOptions={alignTicks:!0,allowDecimals:void 0,panningEnabled:!0,zIndex:2,zoomEnabled:!0,dateTimeLabelFormats:{millisecond:{main:"%H:%M:%S.%L",range:!1},second:{main:"%H:%M:%S",range:!1},minute:{main:"%H:%M",range:!1},hour:{main:"%H:%M",range:!1},day:{main:"%e. %b"},week:{main:"%e. %b"},month:{main:"%b '%y"},year:{main:"%Y"}},endOnTick:!1,gridLineDashStyle:"Solid",gridZIndex:1,labels:{autoRotation:void 0,autoRotationLimit:80,distance:void 0,enabled:!0,indentation:10,overflow:"justify",padding:5,reserveSpace:void 0,rotation:void 0,staggerLines:0,step:0,useHTML:!1,x:0,zIndex:7,style:{color:"#666666",cursor:"default",fontSize:"11px"}},maxPadding:.01,minorGridLineDashStyle:"Solid",minorTickLength:2,minorTickPosition:"outside",minPadding:.01,offset:void 0,opposite:!1,reversed:void 0,reversedStacks:!1,showEmpty:!0,showFirstLabel:!0,showLastLabel:!0,startOfWeek:1,startOnTick:!1,tickLength:10,tickPixelInterval:100,tickmarkPlacement:"between",tickPosition:"outside",title:{align:"middle",rotation:0,useHTML:!1,x:0,y:0,style:{color:"#666666"}},type:"linear",uniqueNames:!0,visible:!0,minorGridLineColor:"#f2f2f2",minorGridLineWidth:1,minorTickColor:"#999999",lineColor:"#ccd6eb",lineWidth:1,gridLineColor:"#e6e6e6",gridLineWidth:void 0,tickColor:"#ccd6eb"},R.defaultYAxisOptions={reversedStacks:!0,endOnTick:!0,maxPadding:.05,minPadding:.05,tickPixelInterval:72,showLastLabel:!0,labels:{x:-8},startOnTick:!0,title:{rotation:270,text:"Values"},stackLabels:{animation:{},allowOverlap:!1,enabled:!1,crop:!0,overflow:"justify",formatter:function(){return(0,this.axis.chart.numberFormatter)(this.total||0,-1)},style:{color:"#000000",fontSize:"11px",fontWeight:"bold",textOutline:"1px contrast"}},gridLineWidth:1,lineWidth:0},R.defaultLeftAxisOptions={labels:{x:-15},title:{rotation:270}},R.defaultRightAxisOptions={labels:{x:15},title:{rotation:90}},R.defaultBottomAxisOptions={labels:{autoRotation:[-45],x:0},margin:15,title:{rotation:0}},R.defaultTopAxisOptions={labels:{autoRotation:[-45],x:0},margin:15,title:{rotation:0}}}(W||(W={})),W}),B(it,"Core/Foundation.js",[it["Core/Utilities.js"]],function(W){var R,H=W.addEvent,V=W.isFunction,$=W.objectEach,Z=W.removeEvent;return function(U){U.registerEventOptions=function(z,I){z.eventOptions=z.eventOptions||{},$(I.events,function(E,M){z.eventOptions[M]!==E&&(z.eventOptions[M]&&(Z(z,M,z.eventOptions[M]),delete z.eventOptions[M]),V(E)&&(z.eventOptions[M]=E,H(z,M,E)))})}}(R||(R={})),R}),B(it,"Core/Axis/Tick.js",[it["Core/FormatUtilities.js"],it["Core/Globals.js"],it["Core/Utilities.js"]],function(W,R,H){var V=R.deg2rad,$=H.clamp,Z=H.correctFloat,U=H.defined,z=H.destroyObjectProperties,I=H.extend,E=H.fireEvent,M=H.isNumber,P=H.merge,y=H.objectEach,h=H.pick;return R=function(){function f(m,u,v,w,S){this.isNewLabel=this.isNew=!0,this.axis=m,this.pos=u,this.type=v||"",this.parameters=S||{},this.tickmarkOffset=this.parameters.tickmarkOffset,this.options=this.parameters.options,E(this,"init"),v||w||this.addLabel()}return f.prototype.addLabel=function(){var m=this,u=m.axis,v=u.options,w=u.chart,S=u.categories,x=u.logarithmic,c=u.names,g=m.pos,r=h(m.options&&m.options.labels,v.labels),a=u.tickPositions,t=g===a[0],i=g===a[a.length-1],o=(!r.step||r.step===1)&&u.tickInterval===1;a=a.info;var e,s=m.label;if(S=this.parameters.category||(S?h(S[g],c[g],g):g),x&&M(S)&&(S=Z(x.lin2log(S))),u.dateTime)if(a)var n=w.time.resolveDTLFormat(v.dateTimeLabelFormats[!v.grid&&a.higherRanks[g]||a.unitName]),l=n.main;else M(S)&&(l=u.dateTime.getXDateFormat(S,v.dateTimeLabelFormats||{}));m.isFirst=t,m.isLast=i;var b={axis:u,chart:w,dateTimeLabelFormat:l,isFirst:t,isLast:i,pos:g,tick:m,tickPositionInfo:a,value:S};E(this,"labelFormat",b);var k=function(p){return r.formatter?r.formatter.call(p,p):r.format?(p.text=u.defaultLabelFormatter.call(p,p),W.format(r.format,p,w)):u.defaultLabelFormatter.call(p,p)};v=k.call(b,b);var D=n&&n.list;m.shortenLabel=D?function(){for(e=0;e<D.length;e++)if(I(b,{dateTimeLabelFormat:D[e]}),s.attr({text:k.call(b,b)}),s.getBBox().width<u.getSlotWidth(m)-2*r.padding)return;s.attr({text:""})}:void 0,o&&u._addedPlotLB&&m.moveLabel(v,r),U(s)||m.movedLabel?s&&s.textStr!==v&&!o&&(!s.textWidth||r.style.width||s.styles.width||s.css({width:null}),s.attr({text:v}),s.textPxLength=s.getBBox().width):(m.label=s=m.createLabel({x:0,y:0},v,r),m.rotation=0)},f.prototype.createLabel=function(m,u,v){var w=this.axis,S=w.chart;return(m=U(u)&&v.enabled?S.renderer.text(u,m.x,m.y,v.useHTML).add(w.labelGroup):null)&&(S.styledMode||m.css(P(v.style)),m.textPxLength=m.getBBox().width),m},f.prototype.destroy=function(){z(this,this.axis)},f.prototype.getPosition=function(m,u,v,w){var S=this.axis,x=S.chart,c=w&&x.oldChartHeight||x.chartHeight;return(m={x:m?Z(S.translate(u+v,void 0,void 0,w)+S.transB):S.left+S.offset+(S.opposite?(w&&x.oldChartWidth||x.chartWidth)-S.right-S.left:0),y:m?c-S.bottom+S.offset-(S.opposite?S.height:0):Z(c-S.translate(u+v,void 0,void 0,w)-S.transB)}).y=$(m.y,-1e5,1e5),E(this,"afterGetPosition",{pos:m}),m},f.prototype.getLabelPosition=function(m,u,v,w,S,x,c,g){var r=this.axis,a=r.transA,t=r.isLinked&&r.linkedParent?r.linkedParent.reversed:r.reversed,i=r.staggerLines,o=r.tickRotCorr||{x:0,y:0},e=w||r.reserveSpaceDefault?0:-r.labelOffset*(r.labelAlign==="center"?.5:1),s={};return v=r.side===0?v.rotation?-8:-v.getBBox().height:r.side===2?o.y+8:Math.cos(v.rotation*V)*(o.y-v.getBBox(!1,0).height/2),U(S.y)&&(v=r.side===0&&r.horiz?S.y+v:S.y),m=m+S.x+e+o.x-(x&&w?x*a*(t?-1:1):0),u=u+v-(x&&!w?x*a*(t?1:-1):0),i&&(w=c/(g||1)%i,r.opposite&&(w=i-w-1),u+=r.labelOffset/i*w),s.x=m,s.y=Math.round(u),E(this,"afterGetLabelPosition",{pos:s,tickmarkOffset:x,index:c}),s},f.prototype.getLabelSize=function(){return this.label?this.label.getBBox()[this.axis.horiz?"height":"width"]:0},f.prototype.getMarkPath=function(m,u,v,w,S,x){return x.crispLine([["M",m,u],["L",m+(S?0:-v),u+(S?v:0)]],w)},f.prototype.handleOverflow=function(m){var u=this.axis,v=u.options.labels,w=m.x,S=u.chart.chartWidth,x=u.chart.spacing,c=h(u.labelLeft,Math.min(u.pos,x[3]));x=h(u.labelRight,Math.max(u.isRadial?0:u.pos+u.len,S-x[1]));var g,r=this.label,a=this.rotation,t={left:0,center:.5,right:1}[u.labelAlign||r.attr("align")],i=r.getBBox().width,o=u.getSlotWidth(this),e={},s=o,n=1;a||v.overflow!=="justify"?0>a&&w-t*i<c?g=Math.round(w/Math.cos(a*V)-c):0<a&&w+t*i>x&&(g=Math.round((S-w)/Math.cos(a*V))):(S=w+(1-t)*i,w-t*i<c?s=m.x+s*(1-t)-c:S>x&&(s=x-m.x+s*t,n=-1),(s=Math.min(o,s))<o&&u.labelAlign==="center"&&(m.x+=n*(o-s-t*(o-Math.min(i,s)))),(i>s||u.autoRotation&&(r.styles||{}).width)&&(g=s)),g&&(this.shortenLabel?this.shortenLabel():(e.width=Math.floor(g)+"px",(v.style||{}).textOverflow||(e.textOverflow="ellipsis"),r.css(e)))},f.prototype.moveLabel=function(m,u){var v=this,w=v.label,S=v.axis,x=S.reversed,c=!1;if(w&&w.textStr===m?(v.movedLabel=w,c=!0,delete v.label):y(S.ticks,function(r){c||r.isNew||r===v||!r.label||r.label.textStr!==m||(v.movedLabel=r.label,c=!0,r.labelPos=v.movedLabel.xy,delete r.label)}),!c&&(v.labelPos||w)){var g=v.labelPos||w.xy;w=S.horiz?x?0:S.width+S.left:g.x,S=S.horiz?g.y:x?S.width+S.left:0,v.movedLabel=v.createLabel({x:w,y:S},m,u),v.movedLabel&&v.movedLabel.attr({opacity:0})}},f.prototype.render=function(m,u,v){var w=this.axis,S=w.horiz,x=this.pos,c=h(this.tickmarkOffset,w.tickmarkOffset);c=(x=this.getPosition(S,x,c,u)).x;var g=x.y;w=S&&c===w.pos+w.len||!S&&g===w.pos?-1:1,S=h(v,this.label&&this.label.newOpacity,1),v=h(v,1),this.isActive=!0,this.renderGridLine(u,v,w),this.renderMark(x,v,w),this.renderLabel(x,u,S,m),this.isNew=!1,E(this,"afterRender")},f.prototype.renderGridLine=function(m,u,v){var w=this.axis,S=w.options,x={},c=this.pos,g=this.type,r=h(this.tickmarkOffset,w.tickmarkOffset),a=w.chart.renderer,t=this.gridLine,i=S.gridLineWidth,o=S.gridLineColor,e=S.gridLineDashStyle;this.type==="minor"&&(i=S.minorGridLineWidth,o=S.minorGridLineColor,e=S.minorGridLineDashStyle),t||(w.chart.styledMode||(x.stroke=o,x["stroke-width"]=i||0,x.dashstyle=e),g||(x.zIndex=1),m&&(u=0),this.gridLine=t=a.path().attr(x).addClass("highcharts-"+(g?g+"-":"")+"grid-line").add(w.gridGroup)),t&&(v=w.getPlotLinePath({value:c+r,lineWidth:t.strokeWidth()*v,force:"pass",old:m,acrossPanes:!1}))&&t[m||this.isNew?"attr":"animate"]({d:v,opacity:u})},f.prototype.renderMark=function(m,u,v){var w=this.axis,S=w.options,x=w.chart.renderer,c=this.type,g=w.tickSize(c?c+"Tick":"tick"),r=m.x;m=m.y;var a=h(S[c!=="minor"?"tickWidth":"minorTickWidth"],!c&&w.isXAxis?1:0);S=S[c!=="minor"?"tickColor":"minorTickColor"];var t=this.mark,i=!t;g&&(w.opposite&&(g[0]=-g[0]),t||(this.mark=t=x.path().addClass("highcharts-"+(c?c+"-":"")+"tick").add(w.axisGroup),w.chart.styledMode||t.attr({stroke:S,"stroke-width":a})),t[i?"attr":"animate"]({d:this.getMarkPath(r,m,g[0],t.strokeWidth()*v,w.horiz,x),opacity:u}))},f.prototype.renderLabel=function(m,u,v,w){var S=this.axis,x=S.horiz,c=S.options,g=this.label,r=c.labels,a=r.step;S=h(this.tickmarkOffset,S.tickmarkOffset);var t=m.x;m=m.y;var i=!0;g&&M(t)&&(g.xy=m=this.getLabelPosition(t,m,g,x,r,S,w,a),this.isFirst&&!this.isLast&&!c.showFirstLabel||this.isLast&&!this.isFirst&&!c.showLastLabel?i=!1:!x||r.step||r.rotation||u||v===0||this.handleOverflow(m),a&&w%a&&(i=!1),i&&M(m.y)?(m.opacity=v,g[this.isNewLabel?"attr":"animate"](m).show(!0),this.isNewLabel=!1):(g.hide(),this.isNewLabel=!0))},f.prototype.replaceMovedLabel=function(){var m=this.label,u=this.axis,v=u.reversed;if(m&&!this.isNew){var w=u.horiz?v?u.left:u.width+u.left:m.xy.x;v=u.horiz?m.xy.y:v?u.width+u.top:u.top,m.animate({x:w,y:v,opacity:0},void 0,m.destroy),delete this.label}u.isDirty=!0,this.label=this.movedLabel,delete this.movedLabel},f}(),R}),B(it,"Core/Axis/Axis.js",[it["Core/Animation/AnimationUtilities.js"],it["Core/Axis/AxisDefaults.js"],it["Core/Color/Color.js"],it["Core/Defaults.js"],it["Core/Foundation.js"],it["Core/Globals.js"],it["Core/Axis/Tick.js"],it["Core/Utilities.js"]],function(W,R,H,V,$,Z,U,z){var I=W.animObject,E=V.defaultOptions,M=$.registerEventOptions,P=Z.deg2rad,y=z.arrayMax,h=z.arrayMin,f=z.clamp,m=z.correctFloat,u=z.defined,v=z.destroyObjectProperties,w=z.erase,S=z.error,x=z.extend,c=z.fireEvent,g=z.isArray,r=z.isNumber,a=z.isString,t=z.merge,i=z.normalizeTickInterval,o=z.objectEach,e=z.pick,s=z.relativeLength,n=z.removeEvent,l=z.splat,b=z.syncTimeout,k=function(D,p){return i(p,void 0,void 0,e(D.options.allowDecimals,.5>p||D.tickAmount!==void 0),!!D.tickAmount)};return W=function(){function D(p,C){this.zoomEnabled=this.width=this.visible=this.userOptions=this.translationSlope=this.transB=this.transA=this.top=this.ticks=this.tickRotCorr=this.tickPositions=this.tickmarkOffset=this.tickInterval=this.tickAmount=this.side=this.series=this.right=this.positiveValuesOnly=this.pos=this.pointRangePadding=this.pointRange=this.plotLinesAndBandsGroups=this.plotLinesAndBands=this.paddedTicks=this.overlap=this.options=this.offset=this.names=this.minPixelPadding=this.minorTicks=this.minorTickInterval=this.min=this.maxLabelLength=this.max=this.len=this.left=this.labelFormatter=this.labelEdge=this.isLinked=this.height=this.hasVisibleSeries=this.hasNames=this.eventOptions=this.coll=this.closestPointRange=this.chart=this.bottom=this.alternateBands=void 0,this.init(p,C)}return D.prototype.init=function(p,C){var A=C.isX;this.chart=p,this.horiz=p.inverted&&!this.isZAxis?!A:A,this.isXAxis=A,this.coll=this.coll||(A?"xAxis":"yAxis"),c(this,"init",{userOptions:C}),this.opposite=e(C.opposite,this.opposite),this.side=e(C.side,this.side,this.horiz?this.opposite?0:2:this.opposite?1:3),this.setOptions(C);var N=this.options,_=N.labels,L=N.type;this.userOptions=C,this.minPixelPadding=0,this.reversed=e(N.reversed,this.reversed),this.visible=N.visible,this.zoomEnabled=N.zoomEnabled,this.hasNames=L==="category"||N.categories===!0,this.categories=N.categories||(this.hasNames?[]:void 0),this.names||(this.names=[],this.names.keys={}),this.plotLinesAndBandsGroups={},this.positiveValuesOnly=!!this.logarithmic,this.isLinked=u(N.linkedTo),this.ticks={},this.labelEdge=[],this.minorTicks={},this.plotLinesAndBands=[],this.alternateBands={},this.len=0,this.minRange=this.userMinRange=N.minRange||N.maxZoom,this.range=N.range,this.offset=N.offset||0,this.min=this.max=null,C=e(N.crosshair,l(p.options.tooltip.crosshairs)[A?0:1]),this.crosshair=C===!0?{}:C,p.axes.indexOf(this)===-1&&(A?p.axes.splice(p.xAxis.length,0,this):p.axes.push(this),p[this.coll].push(this)),this.series=this.series||[],p.inverted&&!this.isZAxis&&A&&this.reversed===void 0&&(this.reversed=!0),this.labelRotation=r(_.rotation)?_.rotation:void 0,M(this,N),c(this,"afterInit")},D.prototype.setOptions=function(p){this.options=t(R.defaultXAxisOptions,this.coll==="yAxis"&&R.defaultYAxisOptions,[R.defaultTopAxisOptions,R.defaultRightAxisOptions,R.defaultBottomAxisOptions,R.defaultLeftAxisOptions][this.side],t(E[this.coll],p)),c(this,"afterSetOptions",{userOptions:p})},D.prototype.defaultLabelFormatter=function(p){var C=this.axis;p=this.chart.numberFormatter;var A=r(this.value)?this.value:NaN,N=C.chart.time,_=this.dateTimeLabelFormat,L=E.lang,O=L.numericSymbols;L=L.numericSymbolMagnitude||1e3;var j=C.logarithmic?Math.abs(A):C.tickInterval,Y=O&&O.length;if(C.categories)var X="".concat(this.value);else if(_)X=N.dateFormat(_,A);else if(Y&&1e3<=j)for(;Y--&&X===void 0;)j>=(C=Math.pow(L,Y+1))&&10*A%C==0&&O[Y]!==null&&A!==0&&(X=p(A/C,-1)+O[Y]);return X===void 0&&(X=1e4<=Math.abs(A)?p(A,-1):p(A,-1,void 0,"")),X},D.prototype.getSeriesExtremes=function(){var p,C=this,A=C.chart;c(this,"getSeriesExtremes",null,function(){C.hasVisibleSeries=!1,C.dataMin=C.dataMax=C.threshold=null,C.softThreshold=!C.isXAxis,C.series.forEach(function(N){if(N.visible||!A.options.chart.ignoreHiddenSeries){var _=N.options,L=_.threshold;if(C.hasVisibleSeries=!0,C.positiveValuesOnly&&0>=L&&(L=null),C.isXAxis){if((_=N.xData).length){_=C.logarithmic?_.filter(C.validatePositiveValue):_;var O=(p=N.getXExtremes(_)).min,j=p.max;r(O)||O instanceof Date||(_=_.filter(r),O=(p=N.getXExtremes(_)).min,j=p.max),_.length&&(C.dataMin=Math.min(e(C.dataMin,O),O),C.dataMax=Math.max(e(C.dataMax,j),j))}}else N=N.applyExtremes(),r(N.dataMin)&&(O=N.dataMin,C.dataMin=Math.min(e(C.dataMin,O),O)),r(N.dataMax)&&(j=N.dataMax,C.dataMax=Math.max(e(C.dataMax,j),j)),u(L)&&(C.threshold=L),(!_.softThreshold||C.positiveValuesOnly)&&(C.softThreshold=!1)}})}),c(this,"afterGetSeriesExtremes")},D.prototype.translate=function(p,C,A,N,_,L){var O=this.linkedParent||this,j=N&&O.old?O.old.min:O.min;if(!r(j))return NaN;var Y=O.minPixelPadding;_=(O.isOrdinal||O.brokenAxis&&O.brokenAxis.hasBreaks||O.logarithmic&&_)&&O.lin2val;var X=1,G=0;return(N=N&&O.old?O.old.transA:O.transA)||(N=O.transA),A&&(X*=-1,G=O.len),O.reversed&&(G-=(X*=-1)*(O.sector||O.len)),C?(L=(p*X+G-Y)/N+j,_&&(L=O.lin2val(L))):(_&&(p=O.val2lin(p)),p=X*(p-j)*N,L=(O.isRadial?p:m(p))+G+X*Y+(r(L)?N*L:0)),L},D.prototype.toPixels=function(p,C){return this.translate(p,!1,!this.horiz,void 0,!0)+(C?0:this.pos)},D.prototype.toValue=function(p,C){return this.translate(p-(C?0:this.pos),!0,!this.horiz,void 0,!0)},D.prototype.getPlotLinePath=function(p){function C(yt,ct,et){return bt!=="pass"&&(yt<ct||yt>et)&&(bt?yt=f(yt,ct,et):O=!0),yt}var A,N,_,L,O,j=this,Y=j.chart,X=j.left,G=j.top,q=p.old,Q=p.value,J=p.lineWidth,rt=q&&Y.oldChartHeight||Y.chartHeight,lt=q&&Y.oldChartWidth||Y.chartWidth,gt=j.transB,mt=p.translatedValue,bt=p.force;return p={value:Q,lineWidth:J,old:q,force:bt,acrossPanes:p.acrossPanes,translatedValue:mt},c(this,"getPlotLinePath",p,function(yt){mt=e(mt,j.translate(Q,void 0,void 0,q)),mt=f(mt,-1e5,1e5),A=_=Math.round(mt+gt),N=L=Math.round(rt-mt-gt),r(mt)?j.horiz?(N=G,L=rt-j.bottom,A=_=C(A,X,X+j.width)):(A=X,_=lt-j.right,N=L=C(N,G,G+j.height)):(O=!0,bt=!1),yt.path=O&&!bt?null:Y.renderer.crispLine([["M",A,N],["L",_,L]],J||1)}),p.path},D.prototype.getLinearTickPositions=function(p,C,A){var N=m(Math.floor(C/p)*p);A=m(Math.ceil(A/p)*p);var _,L=[];if(m(N+p)===N&&(_=20),this.single)return[C];for(C=N;C<=A&&(L.push(C),(C=m(C+p,_))!==O);)var O=C;return L},D.prototype.getMinorTickInterval=function(){var p=this.options;return p.minorTicks===!0?e(p.minorTickInterval,"auto"):p.minorTicks===!1?null:p.minorTickInterval},D.prototype.getMinorTickPositions=function(){var p=this.options,C=this.tickPositions,A=this.minorTickInterval,N=this.pointRangePadding||0,_=this.min-N,L=(N=this.max+N)-_,O=[];if(L&&L/A<this.len/3){var j=this.logarithmic;if(j)this.paddedTicks.forEach(function(Y,X,G){X&&O.push.apply(O,j.getLogTickPositions(A,G[X-1],G[X],!0))});else if(this.dateTime&&this.getMinorTickInterval()==="auto")O=O.concat(this.getTimeTicks(this.dateTime.normalizeTimeTickInterval(A),_,N,p.startOfWeek));else for(p=_+(C[0]-_)%A;p<=N&&p!==O[0];p+=A)O.push(p)}return O.length!==0&&this.trimTicks(O),O},D.prototype.adjustForMinRange=function(){var p,C,A,N,_=this.options,L=this.logarithmic,O=this.min,j=this.max,Y=0;if(this.isXAxis&&this.minRange===void 0&&!L&&(u(_.min)||u(_.max)||u(_.floor)||u(_.ceiling)?this.minRange=null:(this.series.forEach(function(Q){if(A=Q.xData,N=Q.xIncrement?1:A.length-1,1<A.length)for(p=N;0<p;p--)C=A[p]-A[p-1],(!Y||C<Y)&&(Y=C)}),this.minRange=Math.min(5*Y,this.dataMax-this.dataMin))),j-O<this.minRange){var X=this.dataMax-this.dataMin>=this.minRange,G=this.minRange,q=(G-j+O)/2;q=[O-q,e(_.min,O-q)],X&&(q[2]=this.logarithmic?this.logarithmic.log2lin(this.dataMin):this.dataMin),j=[(O=y(q))+G,e(_.max,O+G)],X&&(j[2]=L?L.log2lin(this.dataMax):this.dataMax),(j=h(j))-O<G&&(q[0]=j-G,q[1]=e(_.min,j-G),O=y(q))}this.min=O,this.max=j},D.prototype.getClosest=function(){var p;return this.categories?p=1:this.series.forEach(function(C){var A=C.closestPointRange,N=C.visible||!C.chart.options.chart.ignoreHiddenSeries;!C.noSharedTooltip&&u(A)&&N&&(p=u(p)?Math.min(p,A):A)}),p},D.prototype.nameToX=function(p){var C=g(this.options.categories),A=C?this.categories:this.names,N=p.options.x;if(p.series.requireSorting=!1,u(N)||(N=this.options.uniqueNames&&A?C?A.indexOf(p.name):e(A.keys[p.name],-1):p.series.autoIncrement()),N===-1){if(!C&&A)var _=A.length}else _=N;return _!==void 0?(this.names[_]=p.name,this.names.keys[p.name]=_):p.x&&(_=p.x),_},D.prototype.updateNames=function(){var p=this,C=this.names;0<C.length&&(Object.keys(C.keys).forEach(function(A){delete C.keys[A]}),C.length=0,this.minRange=this.userMinRange,(this.series||[]).forEach(function(A){A.xIncrement=null,A.points&&!A.isDirtyData||(p.max=Math.max(p.max,A.xData.length-1),A.processData(),A.generatePoints()),A.data.forEach(function(N,_){if(N&&N.options&&N.name!==void 0){var L=p.nameToX(N);L!==void 0&&L!==N.x&&(N.x=L,A.xData[_]=L)}})}))},D.prototype.setAxisTranslation=function(){var p=this,C=p.max-p.min,A=p.linkedParent,N=!!p.categories,_=p.isXAxis,L=p.axisPointRange||0,O=0,j=0,Y=p.transA;if(_||N||L){var X=p.getClosest();A?(O=A.minPointOffset,j=A.pointRangePadding):p.series.forEach(function(G){var q=N?1:_?e(G.options.pointRange,X,0):p.axisPointRange||0,Q=G.options.pointPlacement;L=Math.max(L,q),p.single&&!N||(G=G.is("xrange")?!_:_,O=Math.max(O,G&&a(Q)?0:q/2),j=Math.max(j,G&&Q==="on"?0:q))}),A=p.ordinal&&p.ordinal.slope&&X?p.ordinal.slope/X:1,p.minPointOffset=O*=A,p.pointRangePadding=j*=A,p.pointRange=Math.min(L,p.single&&N?1:C),_&&(p.closestPointRange=X)}p.translationSlope=p.transA=Y=p.staticScale||p.len/(C+j||1),p.transB=p.horiz?p.left:p.bottom,p.minPixelPadding=Y*O,c(this,"afterSetAxisTranslation")},D.prototype.minFromRange=function(){return this.max-this.range},D.prototype.setTickInterval=function(p){var C=this.chart,A=this.logarithmic,N=this.options,_=this.isXAxis,L=this.isLinked,O=N.tickPixelInterval,j=this.categories,Y=this.softThreshold,X=N.maxPadding,G=N.minPadding,q=r(N.tickInterval)&&0<=N.tickInterval?N.tickInterval:void 0,Q=r(this.threshold)?this.threshold:null;this.dateTime||j||L||this.getTickAmount();var J=e(this.userMin,N.min),rt=e(this.userMax,N.max);if(L){this.linkedParent=C[this.coll][N.linkedTo];var lt=this.linkedParent.getExtremes();this.min=e(lt.min,lt.dataMin),this.max=e(lt.max,lt.dataMax),N.type!==this.linkedParent.options.type&&S(11,1,C)}else{if(Y&&u(Q)){if(this.dataMin>=Q)lt=Q,G=0;else if(this.dataMax<=Q){var gt=Q;X=0}}this.min=e(J,lt,this.dataMin),this.max=e(rt,gt,this.dataMax)}if(A&&(this.positiveValuesOnly&&!p&&0>=Math.min(this.min,e(this.dataMin,this.min))&&S(10,1,C),this.min=m(A.log2lin(this.min),16),this.max=m(A.log2lin(this.max),16)),this.range&&u(this.max)&&(this.userMin=this.min=J=Math.max(this.dataMin,this.minFromRange()),this.userMax=rt=this.max,this.range=null),c(this,"foundExtremes"),this.beforePadding&&this.beforePadding(),this.adjustForMinRange(),!(j||this.axisPointRange||this.stacking&&this.stacking.usePercentage||L)&&u(this.min)&&u(this.max)&&(C=this.max-this.min)&&(!u(J)&&G&&(this.min-=C*G),!u(rt)&&X&&(this.max+=C*X)),r(this.userMin)||(r(N.softMin)&&N.softMin<this.min&&(this.min=J=N.softMin),r(N.floor)&&(this.min=Math.max(this.min,N.floor))),r(this.userMax)||(r(N.softMax)&&N.softMax>this.max&&(this.max=rt=N.softMax),r(N.ceiling)&&(this.max=Math.min(this.max,N.ceiling))),Y&&u(this.dataMin)&&(Q=Q||0,!u(J)&&this.min<Q&&this.dataMin>=Q?this.min=this.options.minRange?Math.min(Q,this.max-this.minRange):Q:!u(rt)&&this.max>Q&&this.dataMax<=Q&&(this.max=this.options.minRange?Math.max(Q,this.min+this.minRange):Q)),r(this.min)&&r(this.max)&&!this.chart.polar&&this.min>this.max&&(u(this.options.min)?this.max=this.min:u(this.options.max)&&(this.min=this.max)),this.tickInterval=this.min===this.max||this.min===void 0||this.max===void 0?1:L&&this.linkedParent&&!q&&O===this.linkedParent.options.tickPixelInterval?q=this.linkedParent.tickInterval:e(q,this.tickAmount?(this.max-this.min)/Math.max(this.tickAmount-1,1):void 0,j?1:(this.max-this.min)*O/Math.max(this.len,O)),_&&!p){var mt=this.min!==(this.old&&this.old.min)||this.max!==(this.old&&this.old.max);this.series.forEach(function(bt){bt.forceCrop=bt.forceCropping&&bt.forceCropping(),bt.processData(mt)}),c(this,"postProcessData",{hasExtremesChanged:mt})}this.setAxisTranslation(),c(this,"initialAxisTranslation"),this.pointRange&&!q&&(this.tickInterval=Math.max(this.pointRange,this.tickInterval)),p=e(N.minTickInterval,this.dateTime&&!this.series.some(function(bt){return bt.noSharedTooltip})?this.closestPointRange:0),!q&&this.tickInterval<p&&(this.tickInterval=p),this.dateTime||this.logarithmic||q||(this.tickInterval=k(this,this.tickInterval)),this.tickAmount||(this.tickInterval=this.unsquish()),this.setTickPositions()},D.prototype.setTickPositions=function(){var p,C=this.options,A=C.tickPositions,N=C.tickPositioner,_=this.getMinorTickInterval(),L=this.hasVerticalPanning(),O=this.coll==="colorAxis",j=(O||!L)&&C.startOnTick;if(L=(O||!L)&&C.endOnTick,O=[],this.tickmarkOffset=this.categories&&C.tickmarkPlacement==="between"&&this.tickInterval===1?.5:0,this.minorTickInterval=_==="auto"&&this.tickInterval?this.tickInterval/5:_,this.single=this.min===this.max&&u(this.min)&&!this.tickAmount&&(parseInt(this.min,10)===this.min||C.allowDecimals!==!1),A)O=A.slice();else if(r(this.min)&&r(this.max)){if(this.ordinal&&this.ordinal.positions||!((this.max-this.min)/this.tickInterval>Math.max(2*this.len,200)))if(this.dateTime)O=this.getTimeTicks(this.dateTime.normalizeTimeTickInterval(this.tickInterval,C.units),this.min,this.max,C.startOfWeek,this.ordinal&&this.ordinal.positions,this.closestPointRange,!0);else if(this.logarithmic)O=this.logarithmic.getLogTickPositions(this.tickInterval,this.min,this.max);else for(_=C=this.tickInterval;_<=2*C&&(O=this.getLinearTickPositions(this.tickInterval,this.min,this.max),this.tickAmount&&O.length>this.tickAmount);)this.tickInterval=k(this,_*=1.1);else O=[this.min,this.max],S(19,!1,this.chart);O.length>this.len&&(O=[O[0],O[O.length-1]])[0]===O[1]&&(O.length=1),N&&(this.tickPositions=O,(p=N.apply(this,[this.min,this.max]))&&(O=p))}this.tickPositions=O,this.paddedTicks=O.slice(0),this.trimTicks(O,j,L),!this.isLinked&&r(this.min)&&r(this.max)&&(this.single&&2>O.length&&!this.categories&&!this.series.some(function(Y){return Y.is("heatmap")&&Y.options.pointPlacement==="between"})&&(this.min-=.5,this.max+=.5),A||p||this.adjustTickAmount()),c(this,"afterSetTickPositions")},D.prototype.trimTicks=function(p,C,A){var N=p[0],_=p[p.length-1],L=!this.isOrdinal&&this.minPointOffset||0;if(c(this,"trimTicks"),!this.isLinked){if(C&&N!==-1/0)this.min=N;else for(;this.min-L>p[0];)p.shift();if(A)this.max=_;else for(;this.max+L<p[p.length-1];)p.pop();p.length===0&&u(N)&&!this.options.tickPositions&&p.push((_+N)/2)}},D.prototype.alignToOthers=function(){var p,C=this,A=[this],N=C.options,_=this.coll==="yAxis"&&this.chart.options.chart.alignThresholds,L=[];if(C.thresholdAlignment=void 0,(this.chart.options.chart.alignTicks!==!1&&N.alignTicks||_)&&N.startOnTick!==!1&&N.endOnTick!==!1&&!C.logarithmic){var O=function(X){var G=X.options;return[X.horiz?G.left:G.top,G.width,G.height,G.pane].join()},j=O(this);this.chart[this.coll].forEach(function(X){var G=X.series;G.length&&G.some(function(q){return q.visible})&&X!==C&&O(X)===j&&(p=!0,A.push(X))})}if(p&&_){A.forEach(function(X){X=X.getThresholdAlignment(C),r(X)&&L.push(X)});var Y=1<L.length?L.reduce(function(X,G){return X+G},0)/L.length:void 0;A.forEach(function(X){X.thresholdAlignment=Y})}return p},D.prototype.getThresholdAlignment=function(p){if((!r(this.dataMin)||this!==p&&this.series.some(function(C){return C.isDirty||C.isDirtyData}))&&this.getSeriesExtremes(),r(this.threshold))return p=f((this.threshold-(this.dataMin||0))/((this.dataMax||0)-(this.dataMin||0)),0,1),this.options.reversed&&(p=1-p),p},D.prototype.getTickAmount=function(){var p=this.options,C=p.tickPixelInterval,A=p.tickAmount;!u(p.tickInterval)&&!A&&this.len<C&&!this.isRadial&&!this.logarithmic&&p.startOnTick&&p.endOnTick&&(A=2),!A&&this.alignToOthers()&&(A=Math.ceil(this.len/C)+1),4>A&&(this.finalTickAmt=A,A=5),this.tickAmount=A},D.prototype.adjustTickAmount=function(){var p=this,C=p.finalTickAmt,A=p.max,N=p.min,_=p.options,L=p.tickPositions,O=p.tickAmount,j=p.thresholdAlignment,Y=L&&L.length,X=e(p.threshold,p.softThreshold?0:null),G=p.tickInterval;if(r(j)){var q=.5>j?Math.ceil(j*(O-1)):Math.floor(j*(O-1));_.reversed&&(q=O-1-q)}if(p.hasData()&&r(N)&&r(A)){if(j=function(){p.transA*=(Y-1)/(O-1),p.min=_.startOnTick?L[0]:Math.min(N,L[0]),p.max=_.endOnTick?L[L.length-1]:Math.max(A,L[L.length-1])},r(q)&&r(p.threshold)){for(;L[q]!==X||L.length!==O||L[0]>N||L[L.length-1]<A;){for(L.length=0,L.push(p.threshold);L.length<O;)L[q]===void 0||L[q]>p.threshold?L.unshift(m(L[0]-G)):L.push(m(L[L.length-1]+G));if(G>8*p.tickInterval)break;G*=2}j()}else if(Y<O){for(;L.length<O;)L.length%2||N===X?L.push(m(L[L.length-1]+G)):L.unshift(m(L[0]-G));j()}if(u(C)){for(G=X=L.length;G--;)(C===3&&G%2==1||2>=C&&0<G&&G<X-1)&&L.splice(G,1);p.finalTickAmt=void 0}}},D.prototype.setScale=function(){var p=!1,C=!1;this.series.forEach(function(N){p=p||N.isDirtyData||N.isDirty,C=C||N.xAxis&&N.xAxis.isDirty||!1}),this.setAxisSize();var A=this.len!==(this.old&&this.old.len);A||p||C||this.isLinked||this.forceRedraw||this.userMin!==(this.old&&this.old.userMin)||this.userMax!==(this.old&&this.old.userMax)||this.alignToOthers()?(this.stacking&&(this.stacking.resetStacks(),this.stacking.buildStacks()),this.forceRedraw=!1,this.getSeriesExtremes(),this.setTickInterval(),this.isDirty||(this.isDirty=A||this.min!==(this.old&&this.old.min)||this.max!==(this.old&&this.old.max))):this.stacking&&this.stacking.cleanStacks(),p&&this.panningState&&(this.panningState.isDirty=!0),c(this,"afterSetScale")},D.prototype.setExtremes=function(p,C,A,N,_){var L=this,O=L.chart;A=e(A,!0),L.series.forEach(function(j){delete j.kdTree}),_=x(_,{min:p,max:C}),c(L,"setExtremes",_,function(){L.userMin=p,L.userMax=C,L.eventArgs=_,A&&O.redraw(N)})},D.prototype.zoom=function(p,C){var A=this,N=this.dataMin,_=this.dataMax,L=this.options,O=Math.min(N,e(L.min,N)),j=Math.max(_,e(L.max,_));return c(this,"zoom",p={newMin:p,newMax:C},function(Y){var X=Y.newMin,G=Y.newMax;X===A.min&&G===A.max||(A.allowZoomOutside||(u(N)&&(X<O&&(X=O),X>j&&(X=j)),u(_)&&(G<O&&(G=O),G>j&&(G=j))),A.displayBtn=X!==void 0||G!==void 0,A.setExtremes(X,G,!1,void 0,{trigger:"zoom"})),Y.zoomed=!0}),p.zoomed},D.prototype.setAxisSize=function(){var p=this.chart,C=this.options,A=C.offsets||[0,0,0,0],N=this.horiz,_=this.width=Math.round(s(e(C.width,p.plotWidth-A[3]+A[1]),p.plotWidth)),L=this.height=Math.round(s(e(C.height,p.plotHeight-A[0]+A[2]),p.plotHeight)),O=this.top=Math.round(s(e(C.top,p.plotTop+A[0]),p.plotHeight,p.plotTop));C=this.left=Math.round(s(e(C.left,p.plotLeft+A[3]),p.plotWidth,p.plotLeft)),this.bottom=p.chartHeight-L-O,this.right=p.chartWidth-_-C,this.len=Math.max(N?_:L,0),this.pos=N?C:O},D.prototype.getExtremes=function(){var p=this.logarithmic;return{min:p?m(p.lin2log(this.min)):this.min,max:p?m(p.lin2log(this.max)):this.max,dataMin:this.dataMin,dataMax:this.dataMax,userMin:this.userMin,userMax:this.userMax}},D.prototype.getThreshold=function(p){var C=this.logarithmic,A=C?C.lin2log(this.min):this.min;return C=C?C.lin2log(this.max):this.max,p===null||p===-1/0?p=A:p===1/0?p=C:A>p?p=A:C<p&&(p=C),this.translate(p,0,1,0,1)},D.prototype.autoLabelAlign=function(p){var C=(e(p,0)-90*this.side+720)%360;return c(this,"autoLabelAlign",p={align:"center"},function(A){15<C&&165>C?A.align="right":195<C&&345>C&&(A.align="left")}),p.align},D.prototype.tickSize=function(p){var C=this.options,A=e(C[p==="tick"?"tickWidth":"minorTickWidth"],p==="tick"&&this.isXAxis&&!this.categories?1:0),N=C[p==="tick"?"tickLength":"minorTickLength"];if(A&&N){C[p+"Position"]==="inside"&&(N=-N);var _=[N,A]}return c(this,"afterTickSize",p={tickSize:_}),p.tickSize},D.prototype.labelMetrics=function(){var p=this.tickPositions&&this.tickPositions[0]||0;return this.chart.renderer.fontMetrics(this.options.labels.style.fontSize,this.ticks[p]&&this.ticks[p].label)},D.prototype.unsquish=function(){var p=this.options.labels,C=this.horiz,A=this.tickInterval,N=this.len/(((this.categories?1:0)+this.max-this.min)/A),_=p.rotation,L=this.labelMetrics(),O=Math.max(this.max-this.min,0),j=function(gt){var mt=gt/(N||1);return(mt=1<mt?Math.ceil(mt):1)*A>O&&gt!==1/0&&N!==1/0&&O&&(mt=Math.ceil(O/A)),m(mt*A)},Y=A,X=Number.MAX_VALUE;if(C){if(!p.staggerLines)if(r(_))var G=[_];else N<p.autoRotationLimit&&(G=p.autoRotation);if(G)for(var q=C=void 0,Q=0,J=G;Q<J.length;Q++){var rt=J[Q];if((rt===_||rt&&-90<=rt&&90>=rt)&&(q=(C=j(Math.abs(L.h/Math.sin(P*rt))))+Math.abs(rt/360))<X){X=q;var lt=rt;Y=C}}}else Y=j(L.h);return this.autoRotation=G,this.labelRotation=e(lt,r(_)?_:0),p.step?A:Y},D.prototype.getSlotWidth=function(p){var C=this.chart,A=this.horiz,N=this.options.labels,_=Math.max(this.tickPositions.length-(this.categories?0:1),1),L=C.margin[3];if(p&&r(p.slotWidth))return p.slotWidth;if(A&&2>N.step)return N.rotation?0:(this.staggerLines||1)*this.len/_;if(!A){if((p=N.style.width)!==void 0)return parseInt(String(p),10);if(L)return L-C.spacing[3]}return .33*C.chartWidth},D.prototype.renderUnsquish=function(){var p=this.chart,C=p.renderer,A=this.tickPositions,N=this.ticks,_=this.options.labels,L=_.style,O=this.horiz,j=this.getSlotWidth(),Y=Math.max(1,Math.round(j-2*_.padding)),X={},G=this.labelMetrics(),q=L.textOverflow,Q=0;if(a(_.rotation)||(X.rotation=_.rotation||0),A.forEach(function(gt){(gt=N[gt]).movedLabel&&gt.replaceMovedLabel(),gt&&gt.label&&gt.label.textPxLength>Q&&(Q=gt.label.textPxLength)}),this.maxLabelLength=Q,this.autoRotation)Q>Y&&Q>G.h?X.rotation=this.labelRotation:this.labelRotation=0;else if(j){var J=Y;if(!q){var rt="clip";for(Y=A.length;!O&&Y--;){var lt=A[Y];(lt=N[lt].label)&&(lt.styles&&lt.styles.textOverflow==="ellipsis"?lt.css({textOverflow:"clip"}):lt.textPxLength>j&&lt.css({width:j+"px"}),lt.getBBox().height>this.len/A.length-(G.h-G.f)&&(lt.specificTextOverflow="ellipsis"))}}}X.rotation&&(J=Q>.5*p.chartHeight?.33*p.chartHeight:Q,q||(rt="ellipsis")),(this.labelAlign=_.align||this.autoLabelAlign(this.labelRotation))&&(X.align=this.labelAlign),A.forEach(function(gt){var mt=(gt=N[gt])&&gt.label,bt=L.width,yt={};mt&&(mt.attr(X),gt.shortenLabel?gt.shortenLabel():J&&!bt&&L.whiteSpace!=="nowrap"&&(J<mt.textPxLength||mt.element.tagName==="SPAN")?(yt.width=J+"px",q||(yt.textOverflow=mt.specificTextOverflow||rt),mt.css(yt)):mt.styles&&mt.styles.width&&!yt.width&&!bt&&mt.css({width:null}),delete mt.specificTextOverflow,gt.rotation=X.rotation)},this),this.tickRotCorr=C.rotCorr(G.b,this.labelRotation||0,this.side!==0)},D.prototype.hasData=function(){return this.series.some(function(p){return p.hasData()})||this.options.showEmpty&&u(this.min)&&u(this.max)},D.prototype.addTitle=function(p){var C,A=this.chart.renderer,N=this.horiz,_=this.opposite,L=this.options.title,O=this.chart.styledMode;this.axisTitle||((C=L.textAlign)||(C=(N?{low:"left",middle:"center",high:"right"}:{low:_?"right":"left",middle:"center",high:_?"left":"right"})[L.align]),this.axisTitle=A.text(L.text||"",0,0,L.useHTML).attr({zIndex:7,rotation:L.rotation,align:C}).addClass("highcharts-axis-title"),O||this.axisTitle.css(t(L.style)),this.axisTitle.add(this.axisGroup),this.axisTitle.isNew=!0),O||L.style.width||this.isRadial||this.axisTitle.css({width:this.len+"px"}),this.axisTitle[p?"show":"hide"](p)},D.prototype.generateTick=function(p){var C=this.ticks;C[p]?C[p].addLabel():C[p]=new U(this,p)},D.prototype.getOffset=function(){var p=this,C=this,A=C.chart,N=C.horiz,_=C.options,L=C.side,O=C.ticks,j=C.tickPositions,Y=C.coll,X=C.axisParent,G=A.renderer,q=A.inverted&&!C.isZAxis?[1,0,3,2][L]:L,Q=C.hasData(),J=_.title,rt=_.labels,lt=A.axisOffset;A=A.clipOffset;var gt,mt=[-1,1,1,-1][L],bt=_.className,yt=0,ct=0,et=0;if(C.showAxis=gt=Q||_.showEmpty,C.staggerLines=C.horiz&&rt.staggerLines||void 0,!C.axisGroup){var at=function(vt,Ct,xt){return G.g(vt).attr({zIndex:xt}).addClass("highcharts-".concat(Y.toLowerCase()).concat(Ct," ")+(p.isRadial?"highcharts-radial-axis".concat(Ct," "):"")+(bt||"")).add(X)};C.gridGroup=at("grid","-grid",_.gridZIndex),C.axisGroup=at("axis","",_.zIndex),C.labelGroup=at("axis-labels","-labels",rt.zIndex)}if(Q||C.isLinked?(j.forEach(function(vt){C.generateTick(vt)}),C.renderUnsquish(),C.reserveSpaceDefault=L===0||L===2||{1:"left",3:"right"}[L]===C.labelAlign,e(rt.reserveSpace,C.labelAlign==="center"||null,C.reserveSpaceDefault)&&j.forEach(function(vt){et=Math.max(O[vt].getLabelSize(),et)}),C.staggerLines&&(et*=C.staggerLines),C.labelOffset=et*(C.opposite?-1:1)):o(O,function(vt,Ct){vt.destroy(),delete O[Ct]}),J&&J.text&&J.enabled!==!1&&(C.addTitle(gt),gt&&J.reserveSpace!==!1)){C.titleOffset=yt=C.axisTitle.getBBox()[N?"height":"width"];var dt=J.offset;ct=u(dt)?0:e(J.margin,N?5:10)}C.renderLine(),C.offset=mt*e(_.offset,lt[L]?lt[L]+(_.margin||0):0),C.tickRotCorr=C.tickRotCorr||{x:0,y:0},J=L===0?-C.labelMetrics().h:L===2?C.tickRotCorr.y:0,Q=Math.abs(et)+ct,et&&(Q=Q-J+mt*(N?e(rt.y,C.tickRotCorr.y+8*mt):rt.x)),C.axisTitleMargin=e(dt,Q),C.getMaxLabelDimensions&&(C.maxLabelDimensions=C.getMaxLabelDimensions(O,j)),Y!=="colorAxis"&&(N=this.tickSize("tick"),lt[L]=Math.max(lt[L],(C.axisTitleMargin||0)+yt+mt*C.offset,Q,j&&j.length&&N?N[0]+mt*C.offset:0),_=!C.axisLine||_.offset?0:2*Math.floor(C.axisLine.strokeWidth()/2),A[q]=Math.max(A[q],_)),c(this,"afterGetOffset")},D.prototype.getLinePath=function(p){var C=this.chart,A=this.opposite,N=this.offset,_=this.horiz,L=this.left+(A?this.width:0)+N;return N=C.chartHeight-this.bottom-(A?this.height:0)+N,A&&(p*=-1),C.renderer.crispLine([["M",_?this.left:L,_?N:this.top],["L",_?C.chartWidth-this.right:L,_?N:C.chartHeight-this.bottom]],p)},D.prototype.renderLine=function(){this.axisLine||(this.axisLine=this.chart.renderer.path().addClass("highcharts-axis-line").add(this.axisGroup),this.chart.styledMode||this.axisLine.attr({stroke:this.options.lineColor,"stroke-width":this.options.lineWidth,zIndex:7}))},D.prototype.getTitlePosition=function(){var p=this.horiz,C=this.left,A=this.top,N=this.len,_=this.options.title,L=p?C:A,O=this.opposite,j=this.offset,Y=_.x,X=_.y,G=this.axisTitle,q=this.chart.renderer.fontMetrics(_.style.fontSize,G);return G=G?Math.max(G.getBBox(!1,0).height-q.h-1,0):0,N={low:L+(p?0:N),middle:L+N/2,high:L+(p?N:0)}[_.align],C=(p?A+this.height:C)+(p?1:-1)*(O?-1:1)*(this.axisTitleMargin||0)+[-G,G,q.f,-G][this.side],p={x:p?N+Y:C+(O?this.width:0)+j+Y,y:p?C+X-(O?this.height:0)+j:N+X},c(this,"afterGetTitlePosition",{titlePosition:p}),p},D.prototype.renderMinorTick=function(p,C){var A=this.minorTicks;A[p]||(A[p]=new U(this,p,"minor")),C&&A[p].isNew&&A[p].render(null,!0),A[p].render(null,!1,1)},D.prototype.renderTick=function(p,C,A){var N=this.ticks;(!this.isLinked||p>=this.min&&p<=this.max||this.grid&&this.grid.isColumn)&&(N[p]||(N[p]=new U(this,p)),A&&N[p].isNew&&N[p].render(C,!0,-1),N[p].render(C))},D.prototype.render=function(){var p,C,A=this,N=A.chart,_=A.logarithmic,L=A.options,O=A.isLinked,j=A.tickPositions,Y=A.axisTitle,X=A.ticks,G=A.minorTicks,q=A.alternateBands,Q=L.stackLabels,J=L.alternateGridColor,rt=A.tickmarkOffset,lt=A.axisLine,gt=A.showAxis,mt=I(N.renderer.globalAnimation);if(A.labelEdge.length=0,A.overlap=!1,[X,G,q].forEach(function(yt){o(yt,function(ct){ct.isActive=!1})}),A.hasData()||O){var bt=A.chart.hasRendered&&A.old&&r(A.old.min);A.minorTickInterval&&!A.categories&&A.getMinorTickPositions().forEach(function(yt){A.renderMinorTick(yt,bt)}),j.length&&(j.forEach(function(yt,ct){A.renderTick(yt,ct,bt)}),rt&&(A.min===0||A.single)&&(X[-1]||(X[-1]=new U(A,-1,null,!0)),X[-1].render(-1))),J&&j.forEach(function(yt,ct){C=j[ct+1]!==void 0?j[ct+1]+rt:A.max-rt,ct%2==0&&yt<A.max&&C<=A.max+(N.polar?-rt:rt)&&(q[yt]||(q[yt]=new Z.PlotLineOrBand(A)),p=yt+rt,q[yt].options={from:_?_.lin2log(p):p,to:_?_.lin2log(C):C,color:J,className:"highcharts-alternate-grid"},q[yt].render(),q[yt].isActive=!0)}),A._addedPlotLB||(A._addedPlotLB=!0,(L.plotLines||[]).concat(L.plotBands||[]).forEach(function(yt){A.addPlotBandOrLine(yt)}))}[X,G,q].forEach(function(yt){var ct=[],et=mt.duration;o(yt,function(at,dt){at.isActive||(at.render(dt,!1,0),at.isActive=!1,ct.push(dt))}),b(function(){for(var at=ct.length;at--;)yt[ct[at]]&&!yt[ct[at]].isActive&&(yt[ct[at]].destroy(),delete yt[ct[at]])},yt!==q&&N.hasRendered&&et?et:0)}),lt&&(lt[lt.isPlaced?"animate":"attr"]({d:this.getLinePath(lt.strokeWidth())}),lt.isPlaced=!0,lt[gt?"show":"hide"](gt)),Y&&gt&&(L=A.getTitlePosition(),Y[Y.isNew?"attr":"animate"](L),Y.isNew=!1),Q&&Q.enabled&&A.stacking&&A.stacking.renderStackTotals(),A.old={len:A.len,max:A.max,min:A.min,transA:A.transA,userMax:A.userMax,userMin:A.userMin},A.isDirty=!1,c(this,"afterRender")},D.prototype.redraw=function(){this.visible&&(this.render(),this.plotLinesAndBands.forEach(function(p){p.render()})),this.series.forEach(function(p){p.isDirty=!0})},D.prototype.getKeepProps=function(){return this.keepProps||D.keepProps},D.prototype.destroy=function(p){var C=this,A=C.plotLinesAndBands,N=this.eventOptions;if(c(this,"destroy",{keepEvents:p}),p||n(C),[C.ticks,C.minorTicks,C.alternateBands].forEach(function(L){v(L)}),A)for(p=A.length;p--;)A[p].destroy();for(var _ in"axisLine axisTitle axisGroup gridGroup labelGroup cross scrollbar".split(" ").forEach(function(L){C[L]&&(C[L]=C[L].destroy())}),C.plotLinesAndBandsGroups)C.plotLinesAndBandsGroups[_]=C.plotLinesAndBandsGroups[_].destroy();o(C,function(L,O){C.getKeepProps().indexOf(O)===-1&&delete C[O]}),this.eventOptions=N},D.prototype.drawCrosshair=function(p,C){var A,N=this.crosshair,_=e(N&&N.snap,!0),L=this.chart,O=this.cross;if(c(this,"drawCrosshair",{e:p,point:C}),p||(p=this.cross&&this.cross.e),N&&(u(C)||!_)!==!1){if(_?u(C)&&(A=e(this.coll!=="colorAxis"?C.crosshairPos:null,this.isXAxis?C.plotX:this.len-C.plotY)):A=p&&(this.horiz?p.chartX-this.pos:this.len-p.chartY+this.pos),u(A)){var j={value:C&&(this.isXAxis?C.x:e(C.stackY,C.y)),translatedValue:A};L.polar&&x(j,{isCrosshair:!0,chartX:p&&p.chartX,chartY:p&&p.chartY,point:C}),j=this.getPlotLinePath(j)||null}if(!u(j))return void this.hideCrosshair();_=this.categories&&!this.isRadial,O||(this.cross=O=L.renderer.path().addClass("highcharts-crosshair highcharts-crosshair-"+(_?"category ":"thin ")+(N.className||"")).attr({zIndex:e(N.zIndex,2)}).add(),L.styledMode||(O.attr({stroke:N.color||(_?H.parse("#ccd6eb").setOpacity(.25).get():"#cccccc"),"stroke-width":e(N.width,1)}).css({"pointer-events":"none"}),N.dashStyle&&O.attr({dashstyle:N.dashStyle}))),O.show().attr({d:j}),_&&!N.width&&O.attr({"stroke-width":this.transA}),this.cross.e=p}else this.hideCrosshair();c(this,"afterDrawCrosshair",{e:p,point:C})},D.prototype.hideCrosshair=function(){this.cross&&this.cross.hide(),c(this,"afterHideCrosshair")},D.prototype.hasVerticalPanning=function(){var p=this.chart.options.chart.panning;return!!(p&&p.enabled&&/y/.test(p.type))},D.prototype.validatePositiveValue=function(p){return r(p)&&0<p},D.prototype.update=function(p,C){var A=this.chart;p=t(this.userOptions,p),this.destroy(!0),this.init(A,p),A.isDirtyBox=!0,e(C,!0)&&A.redraw()},D.prototype.remove=function(p){for(var C=this.chart,A=this.coll,N=this.series,_=N.length;_--;)N[_]&&N[_].remove(!1);w(C.axes,this),w(C[A],this),C[A].forEach(function(L,O){L.options.index=L.userOptions.index=O}),this.destroy(),C.isDirtyBox=!0,e(p,!0)&&C.redraw()},D.prototype.setTitle=function(p,C){this.update({title:p},C)},D.prototype.setCategories=function(p,C){this.update({categories:p},C)},D.defaultOptions=R.defaultXAxisOptions,D.keepProps="extKey hcEvents names series userMax userMin".split(" "),D}(),W}),B(it,"Core/Axis/DateTimeAxis.js",[it["Core/Utilities.js"]],function(W){var R,H=W.addEvent,V=W.getMagnitude,$=W.normalizeTickInterval,Z=W.timeUnits;return function(U){function z(){return this.chart.time.getTimeTicks.apply(this.chart.time,arguments)}function I(P){P.userOptions.type!=="datetime"?this.dateTime=void 0:this.dateTime||(this.dateTime=new M(this))}var E=[];U.compose=function(P){return E.indexOf(P)===-1&&(E.push(P),P.keepProps.push("dateTime"),P.prototype.getTimeTicks=z,H(P,"init",I)),P};var M=function(){function P(y){this.axis=y}return P.prototype.normalizeTimeTickInterval=function(y,h){var f=h||[["millisecond",[1,2,5,10,20,25,50,100,200,500]],["second",[1,2,5,10,15,30]],["minute",[1,2,5,10,15,30]],["hour",[1,2,3,4,6,8,12]],["day",[1,2]],["week",[1,2]],["month",[1,2,3,4,6]],["year",null]];h=f[f.length-1];var m,u=Z[h[0]],v=h[1];for(m=0;m<f.length&&(h=f[m],u=Z[h[0]],v=h[1],!(f[m+1]&&y<=(u*v[v.length-1]+Z[f[m+1][0]])/2));m++);return u===Z.year&&y<5*u&&(v=[1,2,5]),{unitRange:u,count:y=$(y/u,v,h[0]==="year"?Math.max(V(y/u),1):1),unitName:h[0]}},P.prototype.getXDateFormat=function(y,h){var f=this.axis,m=f.chart.time;return f.closestPointRange?m.getDateFormat(f.closestPointRange,y,f.options.startOfWeek,h)||m.resolveDTLFormat(h.year).main:m.resolveDTLFormat(h.day).main},P}();U.Additions=M}(R||(R={})),R}),B(it,"Core/Axis/LogarithmicAxis.js",[it["Core/Utilities.js"]],function(W){var R,H=W.addEvent,V=W.normalizeTickInterval,$=W.pick;return function(Z){function U(M){var P=this.logarithmic;M.userOptions.type!=="logarithmic"?this.logarithmic=void 0:P||(this.logarithmic=new E(this))}function z(){var M=this.logarithmic;M&&(this.lin2val=function(P){return M.lin2log(P)},this.val2lin=function(P){return M.log2lin(P)})}var I=[];Z.compose=function(M){return I.indexOf(M)===-1&&(I.push(M),M.keepProps.push("logarithmic"),H(M,"init",U),H(M,"afterInit",z)),M};var E=function(){function M(P){this.axis=P}return M.prototype.getLogTickPositions=function(P,y,h,f){var m=this.axis,u=m.len,v=m.options,w=[];if(f||(this.minorAutoInterval=void 0),.5<=P)P=Math.round(P),w=m.getLinearTickPositions(P,y,h);else if(.08<=P){var S,x=Math.floor(y),c=v=void 0;for(u=.3<P?[1,2,4]:.15<P?[1,2,4,6,8]:[1,2,3,4,5,6,7,8,9];x<h+1&&!c;x++){var g=u.length;for(S=0;S<g&&!c;S++){var r=this.log2lin(this.lin2log(x)*u[S]);r>y&&(!f||v<=h)&&v!==void 0&&w.push(v),v>h&&(c=!0),v=r}}}else y=this.lin2log(y),h=this.lin2log(h),P=f?m.getMinorTickInterval():v.tickInterval,P=$(P==="auto"?null:P,this.minorAutoInterval,v.tickPixelInterval/(f?5:1)*(h-y)/((f?u/m.tickPositions.length:u)||1)),P=V(P),w=m.getLinearTickPositions(P,y,h).map(this.log2lin),f||(this.minorAutoInterval=P/5);return f||(m.tickInterval=P),w},M.prototype.lin2log=function(P){return Math.pow(10,P)},M.prototype.log2lin=function(P){return Math.log(P)/Math.LN10},M}();Z.Additions=E}(R||(R={})),R}),B(it,"Core/Axis/PlotLineOrBand/PlotLineOrBandAxis.js",[it["Core/Utilities.js"]],function(W){var R,H=W.erase,V=W.extend,$=W.isNumber;return function(Z){var U,z=[];Z.compose=function(E,M){return U||(U=E),z.indexOf(M)===-1&&(z.push(M),V(M.prototype,I.prototype)),M};var I=function(){function E(){}return E.prototype.getPlotBandPath=function(M,P,y){y===void 0&&(y=this.options);var h=this.getPlotLinePath({value:P,force:!0,acrossPanes:y.acrossPanes}),f=[],m=this.horiz;if(P=!$(this.min)||!$(this.max)||M<this.min&&P<this.min||M>this.max&&P>this.max,M=this.getPlotLinePath({value:M,force:!0,acrossPanes:y.acrossPanes}),y=1,M&&h){if(P){var u=M.toString()===h.toString();y=0}for(P=0;P<M.length;P+=2){var v=M[P],w=M[P+1],S=h[P],x=h[P+1];v[0]!=="M"&&v[0]!=="L"||w[0]!=="M"&&w[0]!=="L"||S[0]!=="M"&&S[0]!=="L"||x[0]!=="M"&&x[0]!=="L"||(m&&S[1]===v[1]?(S[1]+=y,x[1]+=y):m||S[2]!==v[2]||(S[2]+=y,x[2]+=y),f.push(["M",v[1],v[2]],["L",w[1],w[2]],["L",x[1],x[2]],["L",S[1],S[2]],["Z"])),f.isFlat=u}}return f},E.prototype.addPlotBand=function(M){return this.addPlotBandOrLine(M,"plotBands")},E.prototype.addPlotLine=function(M){return this.addPlotBandOrLine(M,"plotLines")},E.prototype.addPlotBandOrLine=function(M,P){var y=this,h=this.userOptions,f=new U(this,M);if(this.visible&&(f=f.render()),f){if(this._addedPlotLB||(this._addedPlotLB=!0,(h.plotLines||[]).concat(h.plotBands||[]).forEach(function(u){y.addPlotBandOrLine(u)})),P){var m=h[P]||[];m.push(M),h[P]=m}this.plotLinesAndBands.push(f)}return f},E.prototype.removePlotBandOrLine=function(M){var P=this.plotLinesAndBands,y=this.options,h=this.userOptions;if(P){for(var f=P.length;f--;)P[f].id===M&&P[f].destroy();[y.plotLines||[],h.plotLines||[],y.plotBands||[],h.plotBands||[]].forEach(function(m){for(f=m.length;f--;)(m[f]||{}).id===M&&H(m,m[f])})}},E.prototype.removePlotBand=function(M){this.removePlotBandOrLine(M)},E.prototype.removePlotLine=function(M){this.removePlotBandOrLine(M)},E}()}(R||(R={})),R}),B(it,"Core/Axis/PlotLineOrBand/PlotLineOrBand.js",[it["Core/Axis/PlotLineOrBand/PlotLineOrBandAxis.js"],it["Core/Utilities.js"]],function(W,R){var H=R.arrayMax,V=R.arrayMin,$=R.defined,Z=R.destroyObjectProperties,U=R.erase,z=R.fireEvent,I=R.merge,E=R.objectEach,M=R.pick;return R=function(){function P(y,h){this.axis=y,h&&(this.options=h,this.id=h.id)}return P.compose=function(y){return W.compose(P,y)},P.prototype.render=function(){z(this,"render");var y=this,h=y.axis,f=h.horiz,m=h.logarithmic,u=y.options,v=u.color,w=M(u.zIndex,0),S=u.events,x={},c=h.chart.renderer,g=u.label,r=y.label,a=u.to,t=u.from,i=u.value,o=y.svgElem,e=[],s=$(t)&&$(a);e=$(i);var n=!o,l={class:"highcharts-plot-"+(s?"band ":"line ")+(u.className||"")},b=s?"bands":"lines";if(m&&(t=m.log2lin(t),a=m.log2lin(a),i=m.log2lin(i)),h.chart.styledMode||(e?(l.stroke=v||"#999999",l["stroke-width"]=M(u.width,1),u.dashStyle&&(l.dashstyle=u.dashStyle)):s&&(l.fill=v||"#e6ebf5",u.borderWidth&&(l.stroke=u.borderColor,l["stroke-width"]=u.borderWidth))),x.zIndex=w,b+="-"+w,(m=h.plotLinesAndBandsGroups[b])||(h.plotLinesAndBandsGroups[b]=m=c.g("plot-"+b).attr(x).add()),n&&(y.svgElem=o=c.path().attr(l).add(m)),e)e=h.getPlotLinePath({value:i,lineWidth:o.strokeWidth(),acrossPanes:u.acrossPanes});else{if(!s)return;e=h.getPlotBandPath(t,a,u)}return!y.eventsAdded&&S&&(E(S,function(k,D){o.on(D,function(p){S[D].apply(y,[p])})}),y.eventsAdded=!0),(n||!o.d)&&e&&e.length?o.attr({d:e}):o&&(e?(o.show(),o.animate({d:e})):o.d&&(o.hide(),r&&(y.label=r=r.destroy()))),g&&($(g.text)||$(g.formatter))&&e&&e.length&&0<h.width&&0<h.height&&!e.isFlat?(g=I({align:f&&s&&"center",x:f?!s&&4:10,verticalAlign:!f&&s&&"middle",y:f?s?16:10:s?6:-4,rotation:f&&!s&&90},g),this.renderLabel(g,e,s,w)):r&&r.hide(),y},P.prototype.renderLabel=function(y,h,f,m){var u=this.axis,v=u.chart.renderer,w=this.label;w||(this.label=w=v.text(this.getLabelText(y),0,0,y.useHTML).attr({align:y.textAlign||y.align,rotation:y.rotation,class:"highcharts-plot-"+(f?"band":"line")+"-label "+(y.className||""),zIndex:m}).add(),u.chart.styledMode||w.css(I({textOverflow:"ellipsis"},y.style))),m=h.xBounds||[h[0][1],h[1][1],f?h[2][1]:h[0][1]],h=h.yBounds||[h[0][2],h[1][2],f?h[2][2]:h[0][2]],f=V(m),v=V(h),w.align(y,!1,{x:f,y:v,width:H(m)-f,height:H(h)-v}),w.alignValue&&w.alignValue!=="left"||(y=y.clip?u.width:u.chart.chartWidth,w.css({width:(w.rotation===90?u.height-(w.alignAttr.y-u.top):y-(w.alignAttr.x-u.left))+"px"})),w.show(!0)},P.prototype.getLabelText=function(y){return $(y.formatter)?y.formatter.call(this):y.text},P.prototype.destroy=function(){U(this.axis.plotLinesAndBands,this),delete this.axis,Z(this)},P}(),R}),B(it,"Core/Tooltip.js",[it["Core/FormatUtilities.js"],it["Core/Globals.js"],it["Core/Renderer/RendererUtilities.js"],it["Core/Renderer/RendererRegistry.js"],it["Core/Utilities.js"]],function(W,R,H,V,$){var Z=W.format,U=R.doc,z=H.distribute,I=$.clamp,E=$.css,M=$.discardElement,P=$.extend,y=$.fireEvent,h=$.isArray,f=$.isNumber,m=$.isString,u=$.merge,v=$.pick,w=$.splat,S=$.syncTimeout;return W=function(){function x(c,g){this.allowShared=!0,this.container=void 0,this.crosshairs=[],this.distance=0,this.isHidden=!0,this.isSticky=!1,this.now={},this.options={},this.outside=!1,this.chart=c,this.init(c,g)}return x.prototype.applyFilter=function(){var c=this.chart;c.renderer.definition({tagName:"filter",attributes:{id:"drop-shadow-"+c.index,opacity:.5},children:[{tagName:"feGaussianBlur",attributes:{in:"SourceAlpha",stdDeviation:1}},{tagName:"feOffset",attributes:{dx:1,dy:1}},{tagName:"feComponentTransfer",children:[{tagName:"feFuncA",attributes:{type:"linear",slope:.3}}]},{tagName:"feMerge",children:[{tagName:"feMergeNode"},{tagName:"feMergeNode",attributes:{in:"SourceGraphic"}}]}]})},x.prototype.bodyFormatter=function(c){return c.map(function(g){var r=g.series.tooltipOptions;return(r[(g.point.formatPrefix||"point")+"Formatter"]||g.point.tooltipFormatter).call(g.point,r[(g.point.formatPrefix||"point")+"Format"]||"")})},x.prototype.cleanSplit=function(c){this.chart.series.forEach(function(g){var r=g&&g.tt;r&&(!r.isActive||c?g.tt=r.destroy():r.isActive=!1)})},x.prototype.defaultFormatter=function(c){var g=this.points||w(this),r=[c.tooltipFooterHeaderFormatter(g[0])];return(r=r.concat(c.bodyFormatter(g))).push(c.tooltipFooterHeaderFormatter(g[0],!0)),r},x.prototype.destroy=function(){this.label&&(this.label=this.label.destroy()),this.split&&this.tt&&(this.cleanSplit(!0),this.tt=this.tt.destroy()),this.renderer&&(this.renderer=this.renderer.destroy(),M(this.container)),$.clearTimeout(this.hideTimer),$.clearTimeout(this.tooltipTimeout)},x.prototype.getAnchor=function(c,g){var r=this.chart,a=r.pointer,t=r.inverted,i=r.plotTop;if(r=r.plotLeft,(c=w(c))[0].series&&c[0].series.yAxis&&!c[0].series.yAxis.options.reversedStacks&&(c=c.slice().reverse()),this.followPointer&&g)g.chartX===void 0&&(g=a.normalize(g)),c=[g.chartX-r,g.chartY-i];else if(c[0].tooltipPos)c=c[0].tooltipPos;else{var o=0,e=0;c.forEach(function(s){(s=s.pos(!0))&&(o+=s[0],e+=s[1])}),o/=c.length,e/=c.length,this.shared&&1<c.length&&g&&(t?o=g.chartX:e=g.chartY),c=[o-r,e-i]}return c.map(Math.round)},x.prototype.getClassName=function(c,g,r){var a=c.series,t=a.options;return[this.options.className,"highcharts-label",r&&"highcharts-tooltip-header",g?"highcharts-tooltip-box":"highcharts-tooltip",!r&&"highcharts-color-"+v(c.colorIndex,a.colorIndex),t&&t.className].filter(m).join(" ")},x.prototype.getLabel=function(){var c,g=this,r=this.chart.styledMode,a=this.options,t=this.split&&this.allowShared,i=a.style.pointerEvents||(this.shouldStickOnContact()?"auto":"none"),o=this.chart.renderer;if(g.label){var e=!g.label.hasClass("highcharts-label");(t&&!e||!t&&e)&&g.destroy()}if(!this.label){if(this.outside){e=this.chart.options.chart.style;var s=V.getRendererType();this.container=c=R.doc.createElement("div"),c.className="highcharts-tooltip-container",E(c,{position:"absolute",top:"1px",pointerEvents:i,zIndex:Math.max(this.options.style.zIndex||0,(e&&e.zIndex||0)+3)}),R.doc.body.appendChild(c),this.renderer=o=new s(c,0,0,e,void 0,void 0,o.styledMode)}if(t?this.label=o.g("tooltip"):(this.label=o.label("",0,0,a.shape,void 0,void 0,a.useHTML,void 0,"tooltip").attr({padding:a.padding,r:a.borderRadius}),r||this.label.attr({fill:a.backgroundColor,"stroke-width":a.borderWidth}).css(a.style).css({pointerEvents:i}).shadow(a.shadow)),r&&a.shadow&&(this.applyFilter(),this.label.attr({filter:"url(#drop-shadow-"+this.chart.index+")"})),g.outside&&!g.split){var n=this.label,l=n.xSetter,b=n.ySetter;n.xSetter=function(k){l.call(n,g.distance),c.style.left=k+"px"},n.ySetter=function(k){b.call(n,g.distance),c.style.top=k+"px"}}this.label.attr({zIndex:8}).add()}return this.label},x.prototype.getPosition=function(c,g,r){var a,t=this.chart,i=this.distance,o={},e=t.inverted&&r.h||0,s=this.outside,n=s?U.documentElement.clientWidth-2*i:t.chartWidth,l=s?Math.max(U.body.scrollHeight,U.documentElement.scrollHeight,U.body.offsetHeight,U.documentElement.offsetHeight,U.documentElement.clientHeight):t.chartHeight,b=t.pointer.getChartPosition(),k=function(O){var j=O==="x";return[O,j?n:l,j?c:g].concat(s?[j?c*b.scaleX:g*b.scaleY,j?b.left-i+(r.plotX+t.plotLeft)*b.scaleX:b.top-i+(r.plotY+t.plotTop)*b.scaleY,0,j?n:l]:[j?c:g,j?r.plotX+t.plotLeft:r.plotY+t.plotTop,j?t.plotLeft:t.plotTop,j?t.plotLeft+t.plotWidth:t.plotTop+t.plotHeight])},D=k("y"),p=k("x");k=!!r.negative,!t.polar&&t.hoverSeries&&t.hoverSeries.yAxis&&t.hoverSeries.yAxis.reversed&&(k=!k);var C=!this.followPointer&&v(r.ttBelow,!t.inverted===k),A=function(O,j,Y,X,G,q,Q){var J=s?O==="y"?i*b.scaleY:i*b.scaleX:i,rt=(Y-X)/2,lt=X<G-i,gt=G+i+X<j,mt=G-J-Y+rt;if(G=G+J-rt,C&&gt)o[O]=G;else if(!C&&lt)o[O]=mt;else if(lt)o[O]=Math.min(Q-X,0>mt-e?mt:mt-e);else{if(!gt)return!1;o[O]=Math.max(q,G+e+Y>j?G:G+e)}},N=function(O,j,Y,X,G){var q;return G<i||G>j-i?q=!1:o[O]=G<Y/2?1:G>j-X/2?j-X-2:G-Y/2,q},_=function(O){var j=D;D=p,p=j,a=O},L=function(){A.apply(0,D)!==!1?N.apply(0,p)!==!1||a||(_(!0),L()):a?o.x=o.y=0:(_(!0),L())};return(t.inverted||1<this.len)&&_(),L(),o},x.prototype.hide=function(c){var g=this;$.clearTimeout(this.hideTimer),c=v(c,this.options.hideDelay),this.isHidden||(this.hideTimer=S(function(){g.getLabel().fadeOut(c&&void 0),g.isHidden=!0},c))},x.prototype.init=function(c,g){this.chart=c,this.options=g,this.crosshairs=[],this.now={x:0,y:0},this.isHidden=!0,this.split=g.split&&!c.inverted&&!c.polar,this.shared=g.shared||this.split,this.outside=v(g.outside,!(!c.scrollablePixelsX&&!c.scrollablePixelsY))},x.prototype.shouldStickOnContact=function(c){return!(this.followPointer||!this.options.stickOnContact||c&&!this.chart.pointer.inClass(c.target,"highcharts-tooltip"))},x.prototype.move=function(c,g,r,a){var t=this,i=t.now,o=t.options.animation!==!1&&!t.isHidden&&(1<Math.abs(c-i.x)||1<Math.abs(g-i.y)),e=t.followPointer||1<t.len;P(i,{x:o?(2*i.x+c)/3:c,y:o?(i.y+g)/2:g,anchorX:e?void 0:o?(2*i.anchorX+r)/3:r,anchorY:e?void 0:o?(i.anchorY+a)/2:a}),t.getLabel().attr(i),t.drawTracker(),o&&($.clearTimeout(this.tooltipTimeout),this.tooltipTimeout=setTimeout(function(){t&&t.move(c,g,r,a)},32))},x.prototype.refresh=function(c,g){var r=this.chart,a=this.options,t=r.pointer,i=w(c),o=i[0],e=[],s=a.formatter||this.defaultFormatter,n=this.shared,l=r.styledMode,b={};if(a.enabled&&o.series){$.clearTimeout(this.hideTimer),this.allowShared=!(!h(c)&&c.series&&c.series.noSharedTooltip),this.followPointer=!this.split&&o.series.tooltipOptions.followPointer;var k=(c=this.getAnchor(c,g))[0],D=c[1];if(n&&this.allowShared?(t.applyInactiveState(i),i.forEach(function(A){A.setState("hover"),e.push(A.getLabelConfig())}),(b={x:o.category,y:o.y}).points=e):b=o.getLabelConfig(),this.len=e.length,s=s.call(b,this),n=o.series,this.distance=v(n.tooltipOptions.distance,16),s===!1)this.hide();else{if(this.split&&this.allowShared)this.renderSplit(s,i);else{var p=k,C=D;if(g&&t.isDirectTouch&&(p=g.chartX-r.plotLeft,C=g.chartY-r.plotTop),!r.polar&&n.options.clip!==!1&&!i.some(function(A){return t.isDirectTouch||A.series.shouldShowTooltip(p,C)}))return void this.hide();g=this.getLabel(),a.style.width&&!l||g.css({width:r.spacingBox.width+"px"}),g.attr({text:s&&s.join?s.join(""):s}),g.addClass(this.getClassName(o),!0),l||g.attr({stroke:a.borderColor||o.color||n.color||"#666666"}),this.updatePosition({plotX:k,plotY:D,negative:o.negative,ttBelow:o.ttBelow,h:c[2]||0})}this.isHidden&&this.label&&this.label.attr({opacity:1}).show(),this.isHidden=!1}y(this,"refresh")}},x.prototype.renderSplit=function(c,g){function r(gt,mt,bt,yt,ct){return ct===void 0&&(ct=!0),bt?(mt=X?0:J,gt=I(gt-yt/2,O.left,O.right-yt-(a.outside?G:0))):(mt-=q,gt=I(gt=ct?gt-yt-N:gt+N,ct?gt:O.left,O.right)),{x:gt,y:mt}}var a=this,t=a.chart,i=a.chart,o=i.chartWidth,e=i.chartHeight,s=i.plotHeight,n=i.plotLeft,l=i.plotTop,b=i.pointer,k=i.scrollablePixelsY;k=k===void 0?0:k;var D=i.scrollablePixelsX,p=i.scrollingContainer,C=(p=p===void 0?{scrollLeft:0,scrollTop:0}:p).scrollLeft;p=p.scrollTop;var A=i.styledMode,N=a.distance,_=a.options,L=a.options.positioner,O=a.outside&&typeof D!="number"?U.documentElement.getBoundingClientRect():{left:C,right:C+o,top:p,bottom:p+e},j=a.getLabel(),Y=this.renderer||t.renderer,X=!(!t.xAxis[0]||!t.xAxis[0].opposite),G=(t=b.getChartPosition()).left;t=t.top;var q=l+p,Q=0,J=s-k;m(c)&&(c=[!1,c]),c=c.slice(0,g.length+1).reduce(function(gt,mt,bt){if(mt!==!1&&mt!==""){var yt=(bt=g[bt-1]||{isHeader:!0,plotX:g[0].plotX,plotY:s,series:{}}).isHeader,ct=yt?a:bt.series;mt=mt.toString();var et=ct.tt,at=bt.isHeader,dt=bt.series;et||(et={padding:_.padding,r:_.borderRadius},A||(et.fill=_.backgroundColor,et["stroke-width"]=_.borderWidth),et=Y.label("",0,0,_[at?"headerShape":"shape"],void 0,void 0,_.useHTML).addClass(a.getClassName(bt,!0,at)).attr(et).add(j)),et.isActive=!0,et.attr({text:mt}),A||et.css(_.style).shadow(_.shadow).attr({stroke:_.borderColor||bt.color||dt.color||"#333333"}),mt=(at=(ct=ct.tt=et).getBBox()).width+ct.strokeWidth(),yt&&(Q=at.height,J+=Q,X&&(q-=Q)),dt=(dt=bt.plotX)===void 0?0:dt,et=(et=bt.plotY)===void 0?0:et;var vt=bt.series;if(bt.isHeader){dt=n+dt;var Ct=l+s/2}else{var xt=vt.xAxis,wt=vt.yAxis;dt=xt.pos+I(dt,-N,xt.len+N),vt.shouldShowTooltip(0,wt.pos-l+et,{ignoreX:!0})&&(Ct=wt.pos+et)}dt=I(dt,O.left-N,O.right+N),typeof Ct=="number"?(at=at.height+1,et=L?L.call(a,mt,at,bt):r(dt,Ct,yt,mt),gt.push({align:L?0:void 0,anchorX:dt,anchorY:Ct,boxWidth:mt,point:bt,rank:v(et.rank,yt?1:0),size:at,target:et.y,tt:ct,x:et.x})):ct.isActive=!1}return gt},[]),!L&&c.some(function(gt){var mt=(a.outside?G:0)+gt.anchorX;return mt<O.left&&mt+gt.boxWidth<O.right||mt<G-O.left+gt.boxWidth&&O.right-mt>mt})&&(c=c.map(function(gt){var mt=r(gt.anchorX,gt.anchorY,gt.point.isHeader,gt.boxWidth,!1);return P(gt,{target:mt.y,x:mt.x})})),a.cleanSplit(),z(c,J);var rt=G,lt=G;c.forEach(function(gt){var mt=gt.x,bt=gt.boxWidth;(gt=gt.isHeader)||(a.outside&&G+mt<rt&&(rt=G+mt),!gt&&a.outside&&rt+bt>lt&&(lt=G+mt))}),c.forEach(function(gt){var mt=gt.x,bt=gt.anchorX,yt=gt.pos,ct=gt.point.isHeader;if(yt={visibility:yt===void 0?"hidden":"inherit",x:mt,y:(yt||0)+q,anchorX:bt,anchorY:gt.anchorY},a.outside&&mt<bt){var et=G-rt;0<et&&(ct||(yt.x=mt+et,yt.anchorX=bt+et),ct&&(yt.x=(lt-rt)/2,yt.anchorX=bt+et))}gt.tt.attr(yt)}),c=a.container,k=a.renderer,a.outside&&c&&k&&(i=j.getBBox(),k.setSize(i.width+i.x,i.height+i.y,!1),c.style.left=rt+"px",c.style.top=t+"px")},x.prototype.drawTracker=function(){if(this.shouldStickOnContact()){var c=this.chart,g=this.label,r=this.shared?c.hoverPoints:c.hoverPoint;if(g&&r){var a={x:0,y:0,width:0,height:0};r=this.getAnchor(r);var t=g.getBBox();r[0]+=c.plotLeft-g.translateX,r[1]+=c.plotTop-g.translateY,a.x=Math.min(0,r[0]),a.y=Math.min(0,r[1]),a.width=0>r[0]?Math.max(Math.abs(r[0]),t.width-r[0]):Math.max(Math.abs(r[0]),t.width),a.height=0>r[1]?Math.max(Math.abs(r[1]),t.height-Math.abs(r[1])):Math.max(Math.abs(r[1]),t.height),this.tracker?this.tracker.attr(a):(this.tracker=g.renderer.rect(a).addClass("highcharts-tracker").add(g),c.styledMode||this.tracker.attr({fill:"rgba(0,0,0,0)"}))}}else this.tracker&&this.tracker.destroy()},x.prototype.styledModeFormat=function(c){return c.replace('style="font-size: 10px"','class="highcharts-header"').replace(/style="color:{(point|series)\.color}"/g,'class="highcharts-color-{$1.colorIndex} {series.options.className} {point.options.className}"')},x.prototype.tooltipFooterHeaderFormatter=function(c,g){var r=c.series,a=r.tooltipOptions,t=r.xAxis,i=t&&t.dateTime;t={isFooter:g,labelConfig:c};var o=a.xDateFormat,e=a[g?"footerFormat":"headerFormat"];return y(this,"headerFormatter",t,function(s){i&&!o&&f(c.key)&&(o=i.getXDateFormat(c.key,a.dateTimeLabelFormats)),i&&o&&(c.point&&c.point.tooltipDateKeys||["key"]).forEach(function(n){e=e.replace("{point."+n+"}","{point."+n+":"+o+"}")}),r.chart.styledMode&&(e=this.styledModeFormat(e)),s.text=Z(e,{point:c,series:r},this.chart)}),t.text},x.prototype.update=function(c){this.destroy(),u(!0,this.chart.options.tooltip.userOptions,c),this.init(this.chart,u(!0,this.options,c))},x.prototype.updatePosition=function(c){var g=this.chart,r=this.distance,a=this.options,t=g.pointer,i=this.getLabel(),o=t.getChartPosition();t=o.left;var e=o.top,s=o.scaleX;o=o.scaleY;var n=(a.positioner||this.getPosition).call(this,i.width,i.height,c),l=(c.plotX||0)+g.plotLeft;c=(c.plotY||0)+g.plotTop,this.outside&&(a.positioner&&(n.x+=t-r,n.y+=e-r),r=a.borderWidth+2*r,this.renderer.setSize(i.width+r,i.height+r,!1),s===1&&o===1||(E(this.container,{transform:"scale(".concat(s,", ").concat(o,")")}),l*=s,c*=o),l+=t-n.x,c+=e-n.y),this.move(Math.round(n.x),Math.round(n.y||0),l,c)},x}(),W}),B(it,"Core/Series/Point.js",[it["Core/Renderer/HTML/AST.js"],it["Core/Animation/AnimationUtilities.js"],it["Core/Defaults.js"],it["Core/FormatUtilities.js"],it["Core/Utilities.js"]],function(W,R,H,V,$){var Z=R.animObject,U=H.defaultOptions,z=V.format,I=$.addEvent,E=$.defined,M=$.erase,P=$.extend,y=$.fireEvent,h=$.getNestedProperty,f=$.isArray,m=$.isFunction,u=$.isNumber,v=$.isObject,w=$.merge,S=$.objectEach,x=$.pick,c=$.syncTimeout,g=$.removeEvent,r=$.uniqueKey;return R=function(){function a(){this.category=void 0,this.formatPrefix="point",this.id=void 0,this.isNull=!1,this.percentage=this.options=this.name=void 0,this.selected=!1,this.total=this.shapeArgs=this.series=void 0,this.visible=!0,this.x=void 0}return a.prototype.animateBeforeDestroy=function(){var t=this,i={x:t.startXPos,opacity:0},o=t.getGraphicalProps();o.singular.forEach(function(e){t[e]=t[e].animate(e==="dataLabel"?{x:t[e].startXPos,y:t[e].startYPos,opacity:0}:i)}),o.plural.forEach(function(e){t[e].forEach(function(s){s.element&&s.animate(P({x:t.startXPos},s.startYPos?{x:s.startXPos,y:s.startYPos}:{}))})})},a.prototype.applyOptions=function(t,i){var o=this.series,e=o.options.pointValKey||o.pointValKey;return t=a.prototype.optionsToObject.call(this,t),P(this,t),this.options=this.options?P(this.options,t):t,t.group&&delete this.group,t.dataLabels&&delete this.dataLabels,e&&(this.y=a.prototype.getNestedProperty.call(this,e)),this.formatPrefix=(this.isNull=this.isValid&&!this.isValid())?"null":"point",this.selected&&(this.state="select"),"name"in this&&i===void 0&&o.xAxis&&o.xAxis.hasNames&&(this.x=o.xAxis.nameToX(this)),this.x===void 0&&o?this.x=i===void 0?o.autoIncrement():i:u(t.x)&&o.options.relativeXValue&&(this.x=o.autoIncrement(t.x)),this},a.prototype.destroy=function(){function t(){for(s in(i.graphic||i.graphics||i.dataLabel||i.dataLabels)&&(g(i),i.destroyElements()),i)i[s]=null}var i=this,o=i.series,e=o.chart;o=o.options.dataSorting;var s,n=e.hoverPoints,l=Z(i.series.chart.renderer.globalAnimation);i.legendItem&&e.legend.destroyItem(i),n&&(i.setState(),M(n,i),n.length||(e.hoverPoints=null)),i===e.hoverPoint&&i.onMouseOut(),o&&o.enabled?(this.animateBeforeDestroy(),c(t,l.duration)):t(),e.pointCount--},a.prototype.destroyElements=function(t){var i=this;(t=i.getGraphicalProps(t)).singular.forEach(function(o){i[o]=i[o].destroy()}),t.plural.forEach(function(o){i[o].forEach(function(e){e&&e.element&&e.destroy()}),delete i[o]})},a.prototype.firePointEvent=function(t,i,o){var e=this,s=this.series.options;(s.point.events[t]||e.options&&e.options.events&&e.options.events[t])&&e.importEvents(),t==="click"&&s.allowPointSelect&&(o=function(n){e.select&&e.select(null,n.ctrlKey||n.metaKey||n.shiftKey)}),y(e,t,i,o)},a.prototype.getClassName=function(){return"highcharts-point"+(this.selected?" highcharts-point-select":"")+(this.negative?" highcharts-negative":"")+(this.isNull?" highcharts-null-point":"")+(this.colorIndex!==void 0?" highcharts-color-"+this.colorIndex:"")+(this.options.className?" "+this.options.className:"")+(this.zone&&this.zone.className?" "+this.zone.className.replace("highcharts-negative",""):"")},a.prototype.getGraphicalProps=function(t){var i,o=this,e=[],s={singular:[],plural:[]};for((t=t||{graphic:1,dataLabel:1}).graphic&&e.push("graphic","shadowGroup"),t.dataLabel&&e.push("dataLabel","dataLabelPath","dataLabelUpper","connector"),i=e.length;i--;){var n=e[i];o[n]&&s.singular.push(n)}return["graphic","dataLabel","connector"].forEach(function(l){var b=l+"s";t[l]&&o[b]&&s.plural.push(b)}),s},a.prototype.getLabelConfig=function(){return{x:this.category,y:this.y,color:this.color,colorIndex:this.colorIndex,key:this.name||this.category,series:this.series,point:this,percentage:this.percentage,total:this.total||this.stackTotal}},a.prototype.getNestedProperty=function(t){if(t)return t.indexOf("custom.")===0?h(t,this.options):this[t]},a.prototype.getZone=function(){var t=this.series,i=t.zones;t=t.zoneAxis||"y";var o,e=0;for(o=i[e];this[t]>=o.value;)o=i[++e];return this.nonZonedColor||(this.nonZonedColor=this.color),this.color=o&&o.color&&!this.options.color?o.color:this.nonZonedColor,o},a.prototype.hasNewShapeType=function(){return(this.graphic&&(this.graphic.symbolName||this.graphic.element.nodeName))!==this.shapeType},a.prototype.init=function(t,i,o){return this.series=t,this.applyOptions(i,o),this.id=E(this.id)?this.id:r(),this.resolveColor(),t.chart.pointCount++,y(this,"afterInit"),this},a.prototype.isValid=function(){return this.x!==null&&u(this.y)},a.prototype.optionsToObject=function(t){var i=this.series,o=i.options.keys,e=o||i.pointArrayMap||["y"],s=e.length,n={},l=0,b=0;if(u(t)||t===null)n[e[0]]=t;else if(f(t))for(!o&&t.length>s&&((i=typeof t[0])=="string"?n.name=t[0]:i==="number"&&(n.x=t[0]),l++);b<s;)o&&t[l]===void 0||(0<e[b].indexOf(".")?a.prototype.setNestedProperty(n,t[l],e[b]):n[e[b]]=t[l]),l++,b++;else typeof t=="object"&&(n=t,t.dataLabels&&(i._hasPointLabels=!0),t.marker&&(i._hasPointMarkers=!0));return n},a.prototype.pos=function(t,i){i===void 0&&(i=this.plotY);var o=this.plotX,e=this.series,s=e.chart,n=e.xAxis;e=e.yAxis;var l=0,b=0;if(u(o)&&u(i))return t&&(l=n?n.pos:s.plotLeft,b=e?e.pos:s.plotTop),s.inverted&&n&&e?[e.len-i+b,n.len-o+l]:[o+l,i+b]},a.prototype.resolveColor=function(){var t=this.series,i=t.chart.styledMode,o=t.chart.options.chart.colorCount;if(delete this.nonZonedColor,t.options.colorByPoint){if(!i){var e=(o=t.options.colors||t.chart.options.colors)[t.colorCounter];o=o.length}i=t.colorCounter,t.colorCounter++,t.colorCounter===o&&(t.colorCounter=0)}else i||(e=t.color),i=t.colorIndex;this.colorIndex=x(this.options.colorIndex,i),this.color=x(this.options.color,e)},a.prototype.setNestedProperty=function(t,i,o){return o.split(".").reduce(function(e,s,n,l){return e[s]=l.length-1===n?i:v(e[s],!0)?e[s]:{},e[s]},t),t},a.prototype.shouldDraw=function(){return!this.isNull},a.prototype.tooltipFormatter=function(t){var i=this.series,o=i.tooltipOptions,e=x(o.valueDecimals,""),s=o.valuePrefix||"",n=o.valueSuffix||"";return i.chart.styledMode&&(t=i.chart.tooltip.styledModeFormat(t)),(i.pointArrayMap||["y"]).forEach(function(l){l="{point."+l,(s||n)&&(t=t.replace(RegExp(l+"}","g"),s+l+"}"+n)),t=t.replace(RegExp(l+"}","g"),l+":,."+e+"f}")}),z(t,{point:this,series:this.series},i.chart)},a.prototype.update=function(t,i,o,e){function s(){l.applyOptions(t);var C=k&&l.hasMockGraphic;C=l.y===null?!C:C,k&&C&&(l.graphic=k.destroy(),delete l.hasMockGraphic),v(t,!0)&&(k&&k.element&&t&&t.marker&&t.marker.symbol!==void 0&&(l.graphic=k.destroy()),t&&t.dataLabels&&l.dataLabel&&(l.dataLabel=l.dataLabel.destroy()),l.connector&&(l.connector=l.connector.destroy())),n=l.index,b.updateParallelArrays(l,n),p.data[n]=v(p.data[n],!0)||v(t,!0)?l.options:x(t,p.data[n]),b.isDirty=b.isDirtyData=!0,!b.fixedBox&&b.hasCartesianSeries&&(D.isDirtyBox=!0),p.legendType==="point"&&(D.isDirtyLegend=!0),i&&D.redraw(o)}var n,l=this,b=l.series,k=l.graphic,D=b.chart,p=b.options;i=x(i,!0),e===!1?s():l.firePointEvent("update",{options:t},s)},a.prototype.remove=function(t,i){this.series.removePoint(this.series.data.indexOf(this),t,i)},a.prototype.select=function(t,i){var o=this,e=o.series,s=e.chart;this.selectedStaging=t=x(t,!o.selected),o.firePointEvent(t?"select":"unselect",{accumulate:i},function(){o.selected=o.options.selected=t,e.options.data[e.data.indexOf(o)]=o.options,o.setState(t&&"select"),i||s.getSelectedPoints().forEach(function(n){var l=n.series;n.selected&&n!==o&&(n.selected=n.options.selected=!1,l.options.data[l.data.indexOf(n)]=n.options,n.setState(s.hoverPoints&&l.options.inactiveOtherPoints?"inactive":""),n.firePointEvent("unselect"))})}),delete this.selectedStaging},a.prototype.onMouseOver=function(t){var i=this.series.chart,o=i.pointer;t=t?o.normalize(t):o.getChartCoordinatesFromPoint(this,i.inverted),o.runPointActions(t,this)},a.prototype.onMouseOut=function(){var t=this.series.chart;this.firePointEvent("mouseOut"),this.series.options.inactiveOtherPoints||(t.hoverPoints||[]).forEach(function(i){i.setState()}),t.hoverPoints=t.hoverPoint=null},a.prototype.importEvents=function(){if(!this.hasImportedEvents){var t=this,i=w(t.series.options.point,t.options).events;t.events=i,S(i,function(o,e){m(o)&&I(t,e,o)}),this.hasImportedEvents=!0}},a.prototype.setState=function(t,i){var o,e=this.series,s=this.state,n=e.options.states[t||"normal"]||{},l=U.plotOptions[e.type].marker&&e.options.marker,b=l&&l.enabled===!1,k=l&&l.states&&l.states[t||"normal"]||{},D=k.enabled===!1,p=this.marker||{},C=e.chart,A=l&&e.markerAttribs,N=e.halo,_=e.stateMarkerGraphic;if(!((t=t||"")===this.state&&!i||this.selected&&t!=="select"||n.enabled===!1||t&&(D||b&&k.enabled===!1)||t&&p.states&&p.states[t]&&p.states[t].enabled===!1)){if(this.state=t,A&&(o=e.markerAttribs(this,t)),this.graphic&&!this.hasMockGraphic){if(s&&this.graphic.removeClass("highcharts-point-"+s),t&&this.graphic.addClass("highcharts-point-"+t),!C.styledMode){s=e.pointAttribs(this,t);var L=x(C.options.chart.animation,n.animation),O=s.opacity;e.options.inactiveOtherPoints&&u(O)&&((this.dataLabels||[]).forEach(function(j){j&&!j.hasClass("highcharts-data-label-hidden")&&j.animate({opacity:O},L)}),this.connector&&this.connector.animate({opacity:O},L)),this.graphic.animate(s,L)}o&&this.graphic.animate(o,x(C.options.chart.animation,k.animation,l.animation)),_&&_.hide()}else t&&k&&(l=p.symbol||e.symbol,_&&_.currentSymbol!==l&&(_=_.destroy()),o&&(_?_[i?"animate":"attr"]({x:o.x,y:o.y}):l&&(e.stateMarkerGraphic=_=C.renderer.symbol(l,o.x,o.y,o.width,o.height).add(e.markerGroup),_.currentSymbol=l)),!C.styledMode&&_&&this.state!=="inactive"&&_.attr(e.pointAttribs(this,t))),_&&(_[t&&this.isInside?"show":"hide"](),_.element.point=this,_.addClass(this.getClassName(),!0));n=n.halo,o=(_=this.graphic||_)&&_.visibility||"inherit",n&&n.size&&_&&o!=="hidden"&&!this.isCluster?(N||(e.halo=N=C.renderer.path().add(_.parentGroup)),N.show()[i?"animate":"attr"]({d:this.haloPath(n.size)}),N.attr({class:"highcharts-halo highcharts-color-"+x(this.colorIndex,e.colorIndex)+(this.className?" "+this.className:""),visibility:o,zIndex:-1}),N.point=this,C.styledMode||N.attr(P({fill:this.color||e.color,"fill-opacity":n.opacity},W.filterUserAttributes(n.attributes||{})))):N&&N.point&&N.point.haloPath&&N.animate({d:N.point.haloPath(0)},null,N.hide),y(this,"afterSetState",{state:t})}},a.prototype.haloPath=function(t){var i=this.pos();return i?this.series.chart.renderer.symbols.circle(Math.floor(i[0])-t,i[1]-t,2*t,2*t):[]},a}(),R}),B(it,"Core/Pointer.js",[it["Core/Color/Color.js"],it["Core/Globals.js"],it["Core/Tooltip.js"],it["Core/Utilities.js"]],function(W,R,H,V){var $=W.parse,Z=R.charts,U=R.noop,z=V.addEvent,I=V.attr,E=V.css,M=V.defined,P=V.extend,y=V.find,h=V.fireEvent,f=V.isNumber,m=V.isObject,u=V.objectEach,v=V.offset,w=V.pick,S=V.splat;return W=function(){function x(c,g){this.lastValidTouch={},this.pinchDown=[],this.runChartClick=!1,this.eventsToUnbind=[],this.chart=c,this.hasDragged=!1,this.options=g,this.init(c,g)}return x.prototype.applyInactiveState=function(c){var g,r=[];(c||[]).forEach(function(a){g=a.series,r.push(g),g.linkedParent&&r.push(g.linkedParent),g.linkedSeries&&(r=r.concat(g.linkedSeries)),g.navigatorSeries&&r.push(g.navigatorSeries)}),this.chart.series.forEach(function(a){r.indexOf(a)===-1?a.setState("inactive",!0):a.options.inactiveOtherPoints&&a.setAllPointsToState("inactive")})},x.prototype.destroy=function(){var c=this;this.eventsToUnbind.forEach(function(g){return g()}),this.eventsToUnbind=[],R.chartCount||(x.unbindDocumentMouseUp&&(x.unbindDocumentMouseUp=x.unbindDocumentMouseUp()),x.unbindDocumentTouchEnd&&(x.unbindDocumentTouchEnd=x.unbindDocumentTouchEnd())),clearInterval(c.tooltipTimeout),u(c,function(g,r){c[r]=void 0})},x.prototype.getSelectionMarkerAttrs=function(c,g){var r=this,a={args:{chartX:c,chartY:g},attrs:{},shapeType:"rect"};return h(this,"getSelectionMarkerAttrs",a,function(t){var i=r.chart,o=r.mouseDownX;o=o===void 0?0:o;var e=r.mouseDownY;e=e===void 0?0:e;var s=r.zoomHor,n=r.zoomVert;(t=t.attrs).x=i.plotLeft,t.y=i.plotTop,t.width=s?1:i.plotWidth,t.height=n?1:i.plotHeight,s&&(i=c-o,t.width=Math.abs(i),t.x=(0<i?0:i)+o),n&&(i=g-e,t.height=Math.abs(i),t.y=(0<i?0:i)+e)}),a},x.prototype.drag=function(c){var g=this.chart,r=g.options.chart,a=g.plotLeft,t=g.plotTop,i=g.plotWidth,o=g.plotHeight,e=this.mouseDownX||0,s=this.mouseDownY||0,n=m(r.panning)?r.panning&&r.panning.enabled:r.panning,l=r.panKey&&c[r.panKey+"Key"],b=c.chartX,k=c.chartY,D=this.selectionMarker;D&&D.touch||(b<a?b=a:b>a+i&&(b=a+i),k<t?k=t:k>t+o&&(k=t+o),this.hasDragged=Math.sqrt(Math.pow(e-b,2)+Math.pow(s-k,2)),10<this.hasDragged&&(a=g.isInsidePlot(e-a,s-t,{visiblePlotOnly:!0}),b=(k=this.getSelectionMarkerAttrs(b,k)).shapeType,k=k.attrs,!g.hasCartesianSeries&&!g.mapView||!this.zoomX&&!this.zoomY||!a||l||D||(this.selectionMarker=D=g.renderer[b](),D.attr({class:"highcharts-selection-marker",zIndex:7}).add(),g.styledMode||D.attr({fill:r.selectionMarkerFill||$("#335cad").setOpacity(.25).get()})),D&&D.attr(k),a&&!D&&n&&g.pan(c,r.panning)))},x.prototype.dragStart=function(c){var g=this.chart;g.mouseIsDown=c.type,g.cancelClick=!1,g.mouseDownX=this.mouseDownX=c.chartX,g.mouseDownY=this.mouseDownY=c.chartY},x.prototype.getSelectionBox=function(c){var g={args:{marker:c},result:{}};return h(this,"getSelectionBox",g,function(r){r.result={x:c.attr?+c.attr("x"):c.x,y:c.attr?+c.attr("y"):c.y,width:c.attr?c.attr("width"):c.width,height:c.attr?c.attr("height"):c.height}}),g.result},x.prototype.drop=function(c){var g=this,r=this.chart,a=this.hasPinched;if(this.selectionMarker){var t=this.getSelectionBox(this.selectionMarker),i=t.x,o=t.y,e=t.width,s=t.height,n={originalEvent:c,xAxis:[],yAxis:[],x:i,y:o,width:e,height:s},l=!!r.mapView;(this.hasDragged||a)&&(r.axes.forEach(function(b){if(b.zoomEnabled&&M(b.min)&&(a||g[{xAxis:"zoomX",yAxis:"zoomY"}[b.coll]])&&f(i)&&f(o)&&f(e)&&f(s)){var k=b.horiz,D=c.type==="touchend"?b.minPixelPadding:0,p=b.toValue((k?i:o)+D);k=b.toValue((k?i+e:o+s)-D),n[b.coll].push({axis:b,min:Math.min(p,k),max:Math.max(p,k)}),l=!0}}),l&&h(r,"selection",n,function(b){r.zoom(P(b,a?{animation:!1}:null))})),f(r.index)&&(this.selectionMarker=this.selectionMarker.destroy()),a&&this.scaleGroups()}r&&f(r.index)&&(E(r.container,{cursor:r._cursor}),r.cancelClick=10<this.hasDragged,r.mouseIsDown=this.hasDragged=this.hasPinched=!1,this.pinchDown=[])},x.prototype.findNearestKDPoint=function(c,g,r){var a;return c.forEach(function(t){var i=!(t.noSharedTooltip&&g)&&0>t.options.findNearestPointBy.indexOf("y");if(t=t.searchPoint(r,i),(i=m(t,!0)&&t.series)&&!(i=!m(a,!0))){i=a.distX-t.distX;var o=a.dist-t.dist,e=(t.series.group&&t.series.group.zIndex)-(a.series.group&&a.series.group.zIndex);i=0<(i!==0&&g?i:o!==0?o:e!==0?e:a.series.index>t.series.index?-1:1)}i&&(a=t)}),a},x.prototype.getChartCoordinatesFromPoint=function(c,g){var r=c.series,a=r.xAxis;r=r.yAxis;var t=c.shapeArgs;if(a&&r){var i=w(c.clientX,c.plotX),o=c.plotY||0;return c.isNode&&t&&f(t.x)&&f(t.y)&&(i=t.x,o=t.y),g?{chartX:r.len+r.pos-o,chartY:a.len+a.pos-i}:{chartX:i+a.pos,chartY:o+r.pos}}if(t&&t.x&&t.y)return{chartX:t.x,chartY:t.y}},x.prototype.getChartPosition=function(){if(this.chartPosition)return this.chartPosition;var c=this.chart.container,g=v(c);this.chartPosition={left:g.left,top:g.top,scaleX:1,scaleY:1};var r=c.offsetWidth;return c=c.offsetHeight,2<r&&2<c&&(this.chartPosition.scaleX=g.width/r,this.chartPosition.scaleY=g.height/c),this.chartPosition},x.prototype.getCoordinates=function(c){var g={xAxis:[],yAxis:[]};return this.chart.axes.forEach(function(r){g[r.isXAxis?"xAxis":"yAxis"].push({axis:r,value:r.toValue(c[r.horiz?"chartX":"chartY"])})}),g},x.prototype.getHoverData=function(c,g,r,a,t,i){var o=[];a=!(!a||!c);var e=function(b){return b.visible&&!(!t&&b.directTouch)&&w(b.options.enableMouseTracking,!0)},s={chartX:i?i.chartX:void 0,chartY:i?i.chartY:void 0,shared:t};h(this,"beforeGetHoverData",s);var n=g&&!g.stickyTracking?[g]:r.filter(function(b){return b.stickyTracking&&(s.filter||e)(b)}),l=a||!i?c:this.findNearestKDPoint(n,t,i);return g=l&&l.series,l&&(t&&!g.noSharedTooltip?(n=r.filter(function(b){return s.filter?s.filter(b):e(b)&&!b.noSharedTooltip}),n.forEach(function(b){var k=y(b.points,function(D){return D.x===l.x&&!D.isNull});m(k)&&(b.boosted&&b.boost&&(k=b.boost.getPoint(k)),o.push(k))})):o.push(l)),h(this,"afterGetHoverData",s={hoverPoint:l}),{hoverPoint:s.hoverPoint,hoverSeries:g,hoverPoints:o}},x.prototype.getPointFromEvent=function(c){c=c.target;for(var g;c&&!g;)g=c.point,c=c.parentNode;return g},x.prototype.onTrackerMouseOut=function(c){c=c.relatedTarget||c.toElement;var g=this.chart.hoverSeries;this.isDirectTouch=!1,!g||!c||g.stickyTracking||this.inClass(c,"highcharts-tooltip")||this.inClass(c,"highcharts-series-"+g.index)&&this.inClass(c,"highcharts-tracker")||g.onMouseOut()},x.prototype.inClass=function(c,g){for(var r;c;){if(r=I(c,"class")){if(r.indexOf(g)!==-1)return!0;if(r.indexOf("highcharts-container")!==-1)return!1}c=c.parentElement}},x.prototype.init=function(c,g){this.options=g,this.chart=c,this.runChartClick=!(!g.chart.events||!g.chart.events.click),this.pinchDown=[],this.lastValidTouch={},H&&(c.tooltip=new H(c,g.tooltip)),this.setDOMEvents()},x.prototype.normalize=function(c,g){var r=c.touches,a=r?r.length?r.item(0):w(r.changedTouches,c.changedTouches)[0]:c;return g||(g=this.getChartPosition()),r=a.pageX-g.left,a=a.pageY-g.top,r/=g.scaleX,a/=g.scaleY,P(c,{chartX:Math.round(r),chartY:Math.round(a)})},x.prototype.onContainerClick=function(c){var g=this.chart,r=g.hoverPoint;c=this.normalize(c);var a=g.plotLeft,t=g.plotTop;g.cancelClick||(r&&this.inClass(c.target,"highcharts-tracker")?(h(r.series,"click",P(c,{point:r})),g.hoverPoint&&r.firePointEvent("click",c)):(P(c,this.getCoordinates(c)),g.isInsidePlot(c.chartX-a,c.chartY-t,{visiblePlotOnly:!0})&&h(g,"click",c)))},x.prototype.onContainerMouseDown=function(c){var g=!(1&~(c.buttons||c.button));c=this.normalize(c),R.isFirefox&&c.button!==0&&this.onContainerMouseMove(c),(c.button===void 0||g)&&(this.zoomOption(c),g&&c.preventDefault&&c.preventDefault(),this.dragStart(c))},x.prototype.onContainerMouseLeave=function(c){var g=Z[w(x.hoverChartIndex,-1)],r=this.chart.tooltip;c=this.normalize(c),g&&(c.relatedTarget||c.toElement)&&(g.pointer.reset(),g.pointer.chartPosition=void 0),r&&!r.isHidden&&this.reset()},x.prototype.onContainerMouseEnter=function(c){delete this.chartPosition},x.prototype.onContainerMouseMove=function(c){var g=this.chart,r=g.tooltip;c=this.normalize(c),this.setHoverChartIndex(),c.preventDefault||(c.returnValue=!1),(g.mouseIsDown==="mousedown"||this.touchSelect(c))&&this.drag(c),g.openMenu||!this.inClass(c.target,"highcharts-tracker")&&!g.isInsidePlot(c.chartX-g.plotLeft,c.chartY-g.plotTop,{visiblePlotOnly:!0})||r&&r.shouldStickOnContact(c)||(this.inClass(c.target,"highcharts-no-tooltip")?this.reset(!1,0):this.runPointActions(c))},x.prototype.onDocumentTouchEnd=function(c){var g=Z[w(x.hoverChartIndex,-1)];g&&g.pointer.drop(c)},x.prototype.onContainerTouchMove=function(c){this.touchSelect(c)?this.onContainerMouseMove(c):this.touch(c)},x.prototype.onContainerTouchStart=function(c){this.touchSelect(c)?this.onContainerMouseDown(c):(this.zoomOption(c),this.touch(c,!0))},x.prototype.onDocumentMouseMove=function(c){var g=this.chart,r=g.tooltip,a=this.chartPosition;c=this.normalize(c,a),!a||g.isInsidePlot(c.chartX-g.plotLeft,c.chartY-g.plotTop,{visiblePlotOnly:!0})||r&&r.shouldStickOnContact(c)||this.inClass(c.target,"highcharts-tracker")||this.reset()},x.prototype.onDocumentMouseUp=function(c){var g=Z[w(x.hoverChartIndex,-1)];g&&g.pointer.drop(c)},x.prototype.pinch=function(c){var g=this,r=g.chart,a=g.pinchDown,t=c.touches||[],i=t.length,o=g.lastValidTouch,e=g.hasZoom,s={},n=i===1&&(g.inClass(c.target,"highcharts-tracker")&&r.runTrackerClick||g.runChartClick),l={},b=g.chart.tooltip;b=i===1&&w(b&&b.options.followTouchMove,!0);var k=g.selectionMarker;1<i?g.initiated=!0:b&&(g.initiated=!1),e&&g.initiated&&!n&&c.cancelable!==!1&&c.preventDefault(),[].map.call(t,function(D){return g.normalize(D)}),c.type==="touchstart"?([].forEach.call(t,function(D,p){a[p]={chartX:D.chartX,chartY:D.chartY}}),o.x=[a[0].chartX,a[1]&&a[1].chartX],o.y=[a[0].chartY,a[1]&&a[1].chartY],r.axes.forEach(function(D){if(D.zoomEnabled){var p=r.bounds[D.horiz?"h":"v"],C=D.minPixelPadding,A=D.toPixels(Math.min(w(D.options.min,D.dataMin),D.dataMin)),N=D.toPixels(Math.max(w(D.options.max,D.dataMax),D.dataMax)),_=Math.max(A,N);p.min=Math.min(D.pos,Math.min(A,N)-C),p.max=Math.max(D.pos+D.len,_+C)}}),g.res=!0):b?this.runPointActions(g.normalize(c)):a.length&&(h(r,"touchpan",{originalEvent:c},function(){k||(g.selectionMarker=k=P({destroy:U,touch:!0},r.plotBox)),g.pinchTranslate(a,t,s,k,l,o),g.hasPinched=e,g.scaleGroups(s,l)}),g.res&&(g.res=!1,this.reset(!1,0)))},x.prototype.pinchTranslate=function(c,g,r,a,t,i){this.zoomHor&&this.pinchTranslateDirection(!0,c,g,r,a,t,i),this.zoomVert&&this.pinchTranslateDirection(!1,c,g,r,a,t,i)},x.prototype.pinchTranslateDirection=function(c,g,r,a,t,i,o,e){var s=this.chart,n=c?"x":"y",l=c?"X":"Y",b="chart"+l,k=c?"width":"height",D=s["plot"+(c?"Left":"Top")],p=s.inverted,C=s.bounds[c?"h":"v"],A=g.length===1,N=g[0][b],_=!A&&g[1][b];g=function(){typeof X=="number"&&20<Math.abs(N-_)&&(j=e||Math.abs(Y-X)/Math.abs(N-_)),O=(D-Y)/j+N,L=s["plot"+(c?"Width":"Height")]/j};var L,O,j=e||1,Y=r[0][b],X=!A&&r[1][b];if(g(),(r=O)<C.min){r=C.min;var G=!0}else r+L>C.max&&(r=C.max-L,G=!0);G?(Y-=.8*(Y-o[n][0]),typeof X=="number"&&(X-=.8*(X-o[n][1])),g()):o[n]=[Y,X],p||(i[n]=O-D,i[k]=L),i=p?1/j:j,t[k]=L,t[n]=r,a[p?c?"scaleY":"scaleX":"scale"+l]=j,a["translate"+l]=i*D+(Y-i*N)},x.prototype.reset=function(c,g){var r=this.chart,a=r.hoverSeries,t=r.hoverPoint,i=r.hoverPoints,o=r.tooltip,e=o&&o.shared?i:t;c&&e&&S(e).forEach(function(s){s.series.isCartesian&&s.plotX===void 0&&(c=!1)}),c?o&&e&&S(e).length&&(o.refresh(e),o.shared&&i?i.forEach(function(s){s.setState(s.state,!0),s.series.isCartesian&&(s.series.xAxis.crosshair&&s.series.xAxis.drawCrosshair(null,s),s.series.yAxis.crosshair&&s.series.yAxis.drawCrosshair(null,s))}):t&&(t.setState(t.state,!0),r.axes.forEach(function(s){s.crosshair&&t.series[s.coll]===s&&s.drawCrosshair(null,t)}))):(t&&t.onMouseOut(),i&&i.forEach(function(s){s.setState()}),a&&a.onMouseOut(),o&&o.hide(g),this.unDocMouseMove&&(this.unDocMouseMove=this.unDocMouseMove()),r.axes.forEach(function(s){s.hideCrosshair()}),this.hoverX=r.hoverPoints=r.hoverPoint=null)},x.prototype.runPointActions=function(c,g,r){var a=this.chart,t=a.tooltip&&a.tooltip.options.enabled?a.tooltip:void 0,i=!!t&&t.shared,o=g||a.hoverPoint,e=o&&o.series||a.hoverSeries;g=this.getHoverData(o,e,a.series,(!c||c.type!=="touchmove")&&(!!g||e&&e.directTouch&&this.isDirectTouch),i,c),o=g.hoverPoint,e=g.hoverSeries;var s=g.hoverPoints;g=e&&e.tooltipOptions.followPointer&&!e.tooltipOptions.split;var n=i&&e&&!e.noSharedTooltip;if(o&&(r||o!==a.hoverPoint||t&&t.isHidden)){if((a.hoverPoints||[]).forEach(function(l){s.indexOf(l)===-1&&l.setState()}),a.hoverSeries!==e&&e.onMouseOver(),this.applyInactiveState(s),(s||[]).forEach(function(l){l.setState("hover")}),a.hoverPoint&&a.hoverPoint.firePointEvent("mouseOut"),!o.series)return;a.hoverPoints=s,a.hoverPoint=o,o.firePointEvent("mouseOver",void 0,function(){t&&o&&t.refresh(n?s:o,c)})}else g&&t&&!t.isHidden&&(r=t.getAnchor([{}],c),a.isInsidePlot(r[0],r[1],{visiblePlotOnly:!0})&&t.updatePosition({plotX:r[0],plotY:r[1]}));this.unDocMouseMove||(this.unDocMouseMove=z(a.container.ownerDocument,"mousemove",function(l){var b=Z[x.hoverChartIndex];b&&b.pointer.onDocumentMouseMove(l)}),this.eventsToUnbind.push(this.unDocMouseMove)),a.axes.forEach(function(l){var b,k=w((l.crosshair||{}).snap,!0);k&&((b=a.hoverPoint)&&b.series[l.coll]===l||(b=y(s,function(D){return D.series&&D.series[l.coll]===l}))),b||!k?l.drawCrosshair(c,b):l.hideCrosshair()})},x.prototype.scaleGroups=function(c,g){var r=this.chart;r.series.forEach(function(a){var t=c||a.getPlotBox();a.group&&(a.xAxis&&a.xAxis.zoomEnabled||r.mapView)&&(a.group.attr(t),a.markerGroup&&(a.markerGroup.attr(t),a.markerGroup.clip(g?r.clipRect:null)),a.dataLabelsGroup&&a.dataLabelsGroup.attr(t))}),r.clipRect.attr(g||r.clipBox)},x.prototype.setDOMEvents=function(){var c=this,g=this.chart.container,r=g.ownerDocument;g.onmousedown=this.onContainerMouseDown.bind(this),g.onmousemove=this.onContainerMouseMove.bind(this),g.onclick=this.onContainerClick.bind(this),this.eventsToUnbind.push(z(g,"mouseenter",this.onContainerMouseEnter.bind(this))),this.eventsToUnbind.push(z(g,"mouseleave",this.onContainerMouseLeave.bind(this))),x.unbindDocumentMouseUp||(x.unbindDocumentMouseUp=z(r,"mouseup",this.onDocumentMouseUp.bind(this)));for(var a=this.chart.renderTo.parentElement;a&&a.tagName!=="BODY";)this.eventsToUnbind.push(z(a,"scroll",function(){delete c.chartPosition})),a=a.parentElement;R.hasTouch&&(this.eventsToUnbind.push(z(g,"touchstart",this.onContainerTouchStart.bind(this),{passive:!1})),this.eventsToUnbind.push(z(g,"touchmove",this.onContainerTouchMove.bind(this),{passive:!1})),x.unbindDocumentTouchEnd||(x.unbindDocumentTouchEnd=z(r,"touchend",this.onDocumentTouchEnd.bind(this),{passive:!1})))},x.prototype.setHoverChartIndex=function(){var c=this.chart,g=R.charts[w(x.hoverChartIndex,-1)];g&&g!==c&&g.pointer.onContainerMouseLeave({relatedTarget:c.container}),g&&g.mouseIsDown||(x.hoverChartIndex=c.index)},x.prototype.touch=function(c,g){var r=this.chart;if(this.setHoverChartIndex(),c.touches.length===1)if(c=this.normalize(c),r.isInsidePlot(c.chartX-r.plotLeft,c.chartY-r.plotTop,{visiblePlotOnly:!0})&&!r.openMenu){if(g&&this.runPointActions(c),c.type==="touchmove")var a=!!(g=this.pinchDown)[0]&&4<=Math.sqrt(Math.pow(g[0].chartX-c.chartX,2)+Math.pow(g[0].chartY-c.chartY,2));w(a,!0)&&this.pinch(c)}else g&&this.reset();else c.touches.length===2&&this.pinch(c)},x.prototype.touchSelect=function(c){return!(!this.chart.options.chart.zooming.singleTouch||!c.touches||c.touches.length!==1)},x.prototype.zoomOption=function(c){var g=this.chart,r=g.options.chart;g=g.inverted;var a=r.zooming.type||"";/touch/.test(c.type)&&(a=w(r.zooming.pinchType,a)),this.zoomX=c=/x/.test(a),this.zoomY=r=/y/.test(a),this.zoomHor=c&&!g||r&&g,this.zoomVert=r&&!g||c&&g,this.hasZoom=c||r},x}(),W}),B(it,"Core/MSPointer.js",[it["Core/Globals.js"],it["Core/Pointer.js"],it["Core/Utilities.js"]],function(W,R,H){function V(){var v=[];return v.item=function(w){return this[w]},y(m,function(w){v.push({pageX:w.pageX,pageY:w.pageY,target:w.target})}),v}function $(v,w,S,x){var c=U[R.hoverChartIndex||NaN];v.pointerType!=="touch"&&v.pointerType!==v.MSPOINTER_TYPE_TOUCH||!c||(c=c.pointer,x(v),c[w]({type:S,target:v.currentTarget,preventDefault:I,touches:V()}))}var Z=this&&this.__extends||function(){var v=function(w,S){return v=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(x,c){x.__proto__=c}||function(x,c){for(var g in c)c.hasOwnProperty(g)&&(x[g]=c[g])},v(w,S)};return function(w,S){function x(){this.constructor=w}v(w,S),w.prototype=S===null?Object.create(S):(x.prototype=S.prototype,new x)}}(),U=W.charts,z=W.doc,I=W.noop,E=W.win,M=H.addEvent,P=H.css,y=H.objectEach,h=H.pick,f=H.removeEvent,m={},u=!!E.PointerEvent;return function(v){function w(){return v!==null&&v.apply(this,arguments)||this}return Z(w,v),w.isRequired=function(){return!(W.hasTouch||!E.PointerEvent&&!E.MSPointerEvent)},w.prototype.batchMSEvents=function(S){S(this.chart.container,u?"pointerdown":"MSPointerDown",this.onContainerPointerDown),S(this.chart.container,u?"pointermove":"MSPointerMove",this.onContainerPointerMove),S(z,u?"pointerup":"MSPointerUp",this.onDocumentPointerUp)},w.prototype.destroy=function(){this.batchMSEvents(f),v.prototype.destroy.call(this)},w.prototype.init=function(S,x){v.prototype.init.call(this,S,x),this.hasZoom&&P(S.container,{"-ms-touch-action":"none","touch-action":"none"})},w.prototype.onContainerPointerDown=function(S){$(S,"onContainerTouchStart","touchstart",function(x){m[x.pointerId]={pageX:x.pageX,pageY:x.pageY,target:x.currentTarget}})},w.prototype.onContainerPointerMove=function(S){$(S,"onContainerTouchMove","touchmove",function(x){m[x.pointerId]={pageX:x.pageX,pageY:x.pageY},m[x.pointerId].target||(m[x.pointerId].target=x.currentTarget)})},w.prototype.onDocumentPointerUp=function(S){$(S,"onDocumentTouchEnd","touchend",function(x){delete m[x.pointerId]})},w.prototype.setDOMEvents=function(){var S=this.chart.tooltip;v.prototype.setDOMEvents.call(this),(this.hasZoom||h(S&&S.options.followTouchMove,!0))&&this.batchMSEvents(M)},w}(R)}),B(it,"Core/Legend/Legend.js",[it["Core/Animation/AnimationUtilities.js"],it["Core/FormatUtilities.js"],it["Core/Globals.js"],it["Core/Series/Point.js"],it["Core/Renderer/RendererUtilities.js"],it["Core/Utilities.js"]],function(W,R,H,V,$,Z){var U=W.animObject,z=W.setAnimation,I=R.format,E=H.marginNames,M=$.distribute,P=Z.addEvent,y=Z.createElement,h=Z.css,f=Z.defined,m=Z.discardElement,u=Z.find,v=Z.fireEvent,w=Z.isNumber,S=Z.merge,x=Z.pick,c=Z.relativeLength,g=Z.stableSort,r=Z.syncTimeout;return W=function(){function a(t,i){this.allItems=[],this.contentGroup=this.box=void 0,this.display=!1,this.group=void 0,this.offsetWidth=this.maxLegendWidth=this.maxItemWidth=this.legendWidth=this.legendHeight=this.lastLineHeight=this.lastItemY=this.itemY=this.itemX=this.itemMarginTop=this.itemMarginBottom=this.itemHeight=this.initialItemY=0,this.options=void 0,this.padding=0,this.pages=[],this.proximate=!1,this.scrollGroup=void 0,this.widthOption=this.totalItemWidth=this.titleHeight=this.symbolWidth=this.symbolHeight=0,this.chart=t,this.init(t,i)}return a.prototype.init=function(t,i){this.chart=t,this.setOptions(i),i.enabled&&(this.render(),P(this.chart,"endResize",function(){this.legend.positionCheckboxes()}),this.proximate?this.unchartrender=P(this.chart,"render",function(){this.legend.proximatePositions(),this.legend.positionItems()}):this.unchartrender&&this.unchartrender())},a.prototype.setOptions=function(t){var i=x(t.padding,8);this.options=t,this.chart.styledMode||(this.itemStyle=t.itemStyle,this.itemHiddenStyle=S(this.itemStyle,t.itemHiddenStyle)),this.itemMarginTop=t.itemMarginTop||0,this.itemMarginBottom=t.itemMarginBottom||0,this.padding=i,this.initialItemY=i-5,this.symbolWidth=x(t.symbolWidth,16),this.pages=[],this.proximate=t.layout==="proximate"&&!this.chart.inverted,this.baseline=void 0},a.prototype.update=function(t,i){var o=this.chart;this.setOptions(S(!0,this.options,t)),this.destroy(),o.isDirtyLegend=o.isDirtyBox=!0,x(i,!0)&&o.redraw(),v(this,"afterUpdate")},a.prototype.colorizeItem=function(t,i){var o=t.legendItem||{},e=o.group,s=o.label,n=o.line;if(o=o.symbol,e&&e[i?"removeClass":"addClass"]("highcharts-legend-item-hidden"),!this.chart.styledMode){var l=this.options;e=this.itemHiddenStyle.color,l=i?l.itemStyle.color:e;var b=i&&t.color||e,k=t.options&&t.options.marker,D={fill:b};s&&s.css({fill:l,color:l}),n&&n.attr({stroke:b}),o&&(k&&o.isMarker&&(D=t.pointAttribs(),i||(D.stroke=D.fill=e)),o.attr(D))}v(this,"afterColorizeItem",{item:t,visible:i})},a.prototype.positionItems=function(){this.allItems.forEach(this.positionItem,this),this.chart.isResizing||this.positionCheckboxes()},a.prototype.positionItem=function(t){var i=this,o=t.legendItem||{},e=o.group,s=o.x;s=s===void 0?0:s,o=(o=o.y)===void 0?0:o;var n=this.options,l=n.symbolPadding,b=!n.rtl;n=t.checkbox,e&&e.element&&(l={translateX:b?s:this.legendWidth-s-2*l-4,translateY:o},e[f(e.translateY)?"animate":"attr"](l,void 0,function(){v(i,"afterPositionItem",{item:t})})),n&&(n.x=s,n.y=o)},a.prototype.destroyItem=function(t){for(var i=t.checkbox,o=t.legendItem||{},e=0,s=["group","label","line","symbol"];e<s.length;e++){var n=s[e];o[n]&&(o[n]=o[n].destroy())}i&&m(i),t.legendItem=void 0},a.prototype.destroy=function(){for(var t=0,i=this.getAllItems();t<i.length;t++)this.destroyItem(i[t]);for(t=0,i="clipRect up down pager nav box title group".split(" ");t<i.length;t++){var o=i[t];this[o]&&(this[o]=this[o].destroy())}this.display=null},a.prototype.positionCheckboxes=function(){var t=this.group&&this.group.alignAttr,i=this.clipHeight||this.legendHeight,o=this.titleHeight;if(t){var e=t.translateY;this.allItems.forEach(function(s){var n=s.checkbox;if(n){var l=e+o+n.y+(this.scrollOffset||0)+3;h(n,{left:t.translateX+s.checkboxOffset+n.x-20+"px",top:l+"px",display:this.proximate||l>e-6&&l<e+i-6?"":"none"})}},this)}},a.prototype.renderTitle=function(){var t=this.options,i=this.padding,o=t.title,e=0;o.text&&(this.title||(this.title=this.chart.renderer.label(o.text,i-3,i-4,void 0,void 0,void 0,t.useHTML,void 0,"legend-title").attr({zIndex:1}),this.chart.styledMode||this.title.css(o.style),this.title.add(this.group)),o.width||this.title.css({width:this.maxLegendWidth+"px"}),e=(t=this.title.getBBox()).height,this.offsetWidth=t.width,this.contentGroup.attr({translateY:e})),this.titleHeight=e},a.prototype.setText=function(t){var i=this.options;t.legendItem.label.attr({text:i.labelFormat?I(i.labelFormat,t,this.chart):i.labelFormatter.call(t)})},a.prototype.renderItem=function(t){var i=t.legendItem=t.legendItem||{},o=this.chart,e=o.renderer,s=this.options,n=this.symbolWidth,l=s.symbolPadding||0,b=this.itemStyle,k=this.itemHiddenStyle,D=s.layout==="horizontal"?x(s.itemDistance,20):0,p=!s.rtl,C=!t.series,A=!C&&t.series.drawLegendSymbol?t.series:t,N=A.options,_=this.createCheckboxForItem&&N&&N.showCheckbox,L=s.useHTML,O=t.options.className,j=i.label;N=n+l+D+(_?20:0),j||(i.group=e.g("legend-item").addClass("highcharts-"+A.type+"-series highcharts-color-"+t.colorIndex+(O?" "+O:"")+(C?" highcharts-series-"+t.index:"")).attr({zIndex:1}).add(this.scrollGroup),i.label=j=e.text("",p?n+l:-l,this.baseline||0,L),o.styledMode||j.css(S(t.visible?b:k)),j.attr({align:p?"left":"right",zIndex:2}).add(i.group),this.baseline||(this.fontMetrics=e.fontMetrics(o.styledMode?12:b.fontSize,j),this.baseline=this.fontMetrics.f+3+this.itemMarginTop,j.attr("y",this.baseline),this.symbolHeight=s.symbolHeight||this.fontMetrics.f,s.squareSymbol&&(this.symbolWidth=x(s.symbolWidth,Math.max(this.symbolHeight,16)),N=this.symbolWidth+l+D+(_?20:0),p&&j.attr("x",this.symbolWidth+l))),A.drawLegendSymbol(this,t),this.setItemEvents&&this.setItemEvents(t,j,L)),_&&!t.checkbox&&this.createCheckboxForItem&&this.createCheckboxForItem(t),this.colorizeItem(t,t.visible),!o.styledMode&&b.width||j.css({width:(s.itemWidth||this.widthOption||o.spacingBox.width)-N+"px"}),this.setText(t),o=j.getBBox(),e=this.fontMetrics&&this.fontMetrics.h||0,t.itemWidth=t.checkboxOffset=s.itemWidth||i.labelWidth||o.width+N,this.maxItemWidth=Math.max(this.maxItemWidth,t.itemWidth),this.totalItemWidth+=t.itemWidth,this.itemHeight=t.itemHeight=Math.round(i.labelHeight||(o.height>1.5*e?o.height:e))},a.prototype.layoutItem=function(t){var i=this.options,o=this.padding,e=i.layout==="horizontal",s=t.itemHeight,n=this.itemMarginBottom,l=this.itemMarginTop,b=e?x(i.itemDistance,20):0,k=this.maxLegendWidth;i=i.alignColumns&&this.totalItemWidth>k?this.maxItemWidth:t.itemWidth;var D=t.legendItem||{};e&&this.itemX-o+i>k&&(this.itemX=o,this.lastLineHeight&&(this.itemY+=l+this.lastLineHeight+n),this.lastLineHeight=0),this.lastItemY=l+this.itemY+n,this.lastLineHeight=Math.max(s,this.lastLineHeight),D.x=this.itemX,D.y=this.itemY,e?this.itemX+=i:(this.itemY+=l+s+n,this.lastLineHeight=s),this.offsetWidth=this.widthOption||Math.max((e?this.itemX-o-(t.checkbox?0:b):i)+o,this.offsetWidth)},a.prototype.getAllItems=function(){var t=[];return this.chart.series.forEach(function(i){var o=i&&i.options;i&&x(o.showInLegend,!f(o.linkedTo)&&void 0,!0)&&(t=t.concat((i.legendItem||{}).labels||(o.legendType==="point"?i.data:i)))}),v(this,"afterGetAllItems",{allItems:t}),t},a.prototype.getAlignment=function(){var t=this.options;return this.proximate?t.align.charAt(0)+"tv":t.floating?"":t.align.charAt(0)+t.verticalAlign.charAt(0)+t.layout.charAt(0)},a.prototype.adjustMargins=function(t,i){var o=this.chart,e=this.options,s=this.getAlignment();s&&[/(lth|ct|rth)/,/(rtv|rm|rbv)/,/(rbh|cb|lbh)/,/(lbv|lm|ltv)/].forEach(function(n,l){n.test(s)&&!f(t[l])&&(o[E[l]]=Math.max(o[E[l]],o.legend[(l+1)%2?"legendHeight":"legendWidth"]+[1,-1,-1,1][l]*e[l%2?"x":"y"]+x(e.margin,12)+i[l]+(o.titleOffset[l]||0)))})},a.prototype.proximatePositions=function(){var t=this.chart,i=[],o=this.options.align==="left";this.allItems.forEach(function(b){var k,D=o;if(b.yAxis){b.xAxis.options.reversed&&(D=!D),b.points&&(k=u(D?b.points:b.points.slice(0).reverse(),function(C){return w(C.plotY)})),D=this.itemMarginTop+b.legendItem.label.getBBox().height+this.itemMarginBottom;var p=b.yAxis.top-t.plotTop;b.visible?(k=k?k.plotY:b.yAxis.height,k+=p-.3*D):k=p+b.yAxis.height,i.push({target:k,size:D,item:b})}},this);for(var e,s=0,n=M(i,t.plotHeight);s<n.length;s++){var l=n[s];e=l.item.legendItem||{},w(l.pos)&&(e.y=t.plotTop-t.spacing[0]+l.pos)}},a.prototype.render=function(){var t=this.chart,i=t.renderer,o=this.options,e=this.padding,s=this.getAllItems(),n=this.group,l=this.box;this.itemX=e,this.itemY=this.initialItemY,this.lastItemY=this.offsetWidth=0,this.widthOption=c(o.width,t.spacingBox.width-e);var b=t.spacingBox.width-2*e-o.x;-1<["rm","lm"].indexOf(this.getAlignment().substring(0,2))&&(b/=2),this.maxLegendWidth=this.widthOption||b,n||(this.group=n=i.g("legend").addClass(o.className||"").attr({zIndex:7}).add(),this.contentGroup=i.g().attr({zIndex:1}).add(n),this.scrollGroup=i.g().add(this.contentGroup)),this.renderTitle(),g(s,function(D,p){return(D.options&&D.options.legendIndex||0)-(p.options&&p.options.legendIndex||0)}),o.reversed&&s.reverse(),this.allItems=s,this.display=b=!!s.length,this.itemHeight=this.totalItemWidth=this.maxItemWidth=this.lastLineHeight=0,s.forEach(this.renderItem,this),s.forEach(this.layoutItem,this),s=(this.widthOption||this.offsetWidth)+e;var k=this.lastItemY+this.lastLineHeight+this.titleHeight;k=this.handleOverflow(k),k+=e,l||(this.box=l=i.rect().addClass("highcharts-legend-box").attr({r:o.borderRadius}).add(n)),t.styledMode||l.attr({stroke:o.borderColor,"stroke-width":o.borderWidth||0,fill:o.backgroundColor||"none"}).shadow(o.shadow),0<s&&0<k&&l[l.placed?"animate":"attr"](l.crisp.call({},{x:0,y:0,width:s,height:k},l.strokeWidth())),n[b?"show":"hide"](),t.styledMode&&n.getStyle("display")==="none"&&(s=k=0),this.legendWidth=s,this.legendHeight=k,b&&this.align(),this.proximate||this.positionItems(),v(this,"afterRender")},a.prototype.align=function(t){t===void 0&&(t=this.chart.spacingBox);var i=this.chart,o=this.options,e=t.y;/(lth|ct|rth)/.test(this.getAlignment())&&0<i.titleOffset[0]?e+=i.titleOffset[0]:/(lbh|cb|rbh)/.test(this.getAlignment())&&0<i.titleOffset[2]&&(e-=i.titleOffset[2]),e!==t.y&&(t=S(t,{y:e})),i.hasRendered||(this.group.placed=!1),this.group.align(S(o,{width:this.legendWidth,height:this.legendHeight,verticalAlign:this.proximate?"top":o.verticalAlign}),!0,t)},a.prototype.handleOverflow=function(t){var i,o,e,s=this,n=this.chart,l=n.renderer,b=this.options,k=b.y,D=b.verticalAlign==="top",p=this.padding,C=b.maxHeight,A=b.navigation,N=x(A.animation,!0),_=A.arrowSize||12,L=this.pages,O=this.allItems,j=function(q){typeof q=="number"?G.attr({height:q}):G&&(s.clipRect=G.destroy(),s.contentGroup.clip()),s.contentGroup.div&&(s.contentGroup.div.style.clip=q?"rect("+p+"px,9999px,"+(p+q)+"px,0)":"auto")},Y=function(q){return s[q]=l.circle(0,0,1.3*_).translate(_/2,_/2).add(X),n.styledMode||s[q].attr("fill","rgba(0,0,0,0.0001)"),s[q]};k=n.spacingBox.height+(D?-k:k)-p;var X=this.nav,G=this.clipRect;return b.layout!=="horizontal"||b.verticalAlign==="middle"||b.floating||(k/=2),C&&(k=Math.min(k,C)),L.length=0,t&&0<k&&t>k&&A.enabled!==!1?(this.clipHeight=i=Math.max(k-20-this.titleHeight-p,0),this.currentPage=x(this.currentPage,1),this.fullHeight=t,O.forEach(function(q,Q){q=(e=q.legendItem||{}).y||0;var J=Math.round(e.label.getBBox().height),rt=L.length;(!rt||q-L[rt-1]>i&&(o||q)!==L[rt-1])&&(L.push(o||q),rt++),e.pageIx=rt-1,o&&((O[Q-1].legendItem||{}).pageIx=rt-1),Q===O.length-1&&q+J-L[rt-1]>i&&J<=i&&(L.push(q),e.pageIx=rt),q!==o&&(o=q)}),G||(G=s.clipRect=l.clipRect(0,p,9999,0),s.contentGroup.clip(G)),j(i),X||(this.nav=X=l.g().attr({zIndex:1}).add(this.group),this.up=l.symbol("triangle",0,0,_,_).add(X),Y("upTracker").on("click",function(){s.scroll(-1,N)}),this.pager=l.text("",15,10).addClass("highcharts-legend-navigation"),!n.styledMode&&A.style&&this.pager.css(A.style),this.pager.add(X),this.down=l.symbol("triangle-down",0,0,_,_).add(X),Y("downTracker").on("click",function(){s.scroll(1,N)})),s.scroll(0),t=k):X&&(j(),this.nav=X.destroy(),this.scrollGroup.attr({translateY:1}),this.clipHeight=0),t},a.prototype.scroll=function(t,i){var o=this,e=this.chart,s=this.pages,n=s.length,l=this.clipHeight,b=this.options.navigation,k=this.pager,D=this.padding,p=this.currentPage+t;p>n&&(p=n),0<p&&(i!==void 0&&z(i,e),this.nav.attr({translateX:D,translateY:l+this.padding+7+this.titleHeight,visibility:"inherit"}),[this.up,this.upTracker].forEach(function(C){C.attr({class:p===1?"highcharts-legend-nav-inactive":"highcharts-legend-nav-active"})}),k.attr({text:p+"/"+n}),[this.down,this.downTracker].forEach(function(C){C.attr({x:18+this.pager.getBBox().width,class:p===n?"highcharts-legend-nav-inactive":"highcharts-legend-nav-active"})},this),e.styledMode||(this.up.attr({fill:p===1?b.inactiveColor:b.activeColor}),this.upTracker.css({cursor:p===1?"default":"pointer"}),this.down.attr({fill:p===n?b.inactiveColor:b.activeColor}),this.downTracker.css({cursor:p===n?"default":"pointer"})),this.scrollOffset=-s[p-1]+this.initialItemY,this.scrollGroup.animate({translateY:this.scrollOffset}),this.currentPage=p,this.positionCheckboxes(),t=U(x(i,e.renderer.globalAnimation,!0)),r(function(){v(o,"afterScroll",{currentPage:p})},t.duration))},a.prototype.setItemEvents=function(t,i,o){var e=this,s=t.legendItem||{},n=e.chart.renderer.boxWrapper,l=t instanceof V,b="highcharts-legend-"+(l?"point":"series")+"-active",k=e.chart.styledMode,D=function(C){e.allItems.forEach(function(A){t!==A&&[A].concat(A.linkedSeries||[]).forEach(function(N){N.setState(C,!l)})})},p=0;for(o=o?[i,s.symbol]:[s.group];p<o.length;p++)(s=o[p])&&s.on("mouseover",function(){t.visible&&D("inactive"),t.setState("hover"),t.visible&&n.addClass(b),k||i.css(e.options.itemHoverStyle)}).on("mouseout",function(){e.chart.styledMode||i.css(S(t.visible?e.itemStyle:e.itemHiddenStyle)),D(""),n.removeClass(b),t.setState()}).on("click",function(C){var A=function(){t.setVisible&&t.setVisible(),D(t.visible?"inactive":"")};n.removeClass(b),C={browserEvent:C},t.firePointEvent?t.firePointEvent("legendItemClick",C,A):v(t,"legendItemClick",C,A)})},a.prototype.createCheckboxForItem=function(t){t.checkbox=y("input",{type:"checkbox",className:"highcharts-legend-checkbox",checked:t.selected,defaultChecked:t.selected},this.options.itemCheckboxStyle,this.chart.container),P(t.checkbox,"click",function(i){v(t.series||t,"checkboxClick",{checked:i.target.checked,item:t},function(){t.select()})})},a}(),W}),B(it,"Core/Series/SeriesRegistry.js",[it["Core/Globals.js"],it["Core/Defaults.js"],it["Core/Series/Point.js"],it["Core/Utilities.js"]],function(W,R,H,V){var $,Z=R.defaultOptions,U=V.extendClass,z=V.merge;return function(I){function E(M,P){var y=Z.plotOptions||{},h=P.defaultOptions,f=P.prototype;f.type=M,f.pointClass||(f.pointClass=H),h&&(y[M]=h),I.seriesTypes[M]=P}I.seriesTypes=W.seriesTypes,I.registerSeriesType=E,I.seriesType=function(M,P,y,h,f){var m=Z.plotOptions||{};return P=P||"",m[M]=z(m[P],y),E(M,U(I.seriesTypes[P]||function(){},h)),I.seriesTypes[M].prototype.type=M,f&&(I.seriesTypes[M].prototype.pointClass=U(H,f)),I.seriesTypes[M]}}($||($={})),$}),B(it,"Core/Chart/Chart.js",[it["Core/Animation/AnimationUtilities.js"],it["Core/Axis/Axis.js"],it["Core/Defaults.js"],it["Core/FormatUtilities.js"],it["Core/Foundation.js"],it["Core/Globals.js"],it["Core/Legend/Legend.js"],it["Core/MSPointer.js"],it["Core/Pointer.js"],it["Core/Renderer/RendererRegistry.js"],it["Core/Series/SeriesRegistry.js"],it["Core/Renderer/SVG/SVGRenderer.js"],it["Core/Time.js"],it["Core/Utilities.js"],it["Core/Renderer/HTML/AST.js"]],function(W,R,H,V,$,Z,U,z,I,E,M,P,y,h,f){var m=W.animate,u=W.animObject,v=W.setAnimation,w=H.defaultOptions,S=H.defaultTime,x=V.numberFormat,c=$.registerEventOptions,g=Z.charts,r=Z.doc,a=Z.marginNames,t=Z.svg,i=Z.win,o=M.seriesTypes,e=h.addEvent,s=h.attr,n=h.cleanRecursively,l=h.createElement,b=h.css,k=h.defined,D=h.discardElement,p=h.erase,C=h.error,A=h.extend,N=h.find,_=h.fireEvent,L=h.getStyle,O=h.isArray,j=h.isNumber,Y=h.isObject,X=h.isString,G=h.merge,q=h.objectEach,Q=h.pick,J=h.pInt,rt=h.relativeLength,lt=h.removeEvent,gt=h.splat,mt=h.syncTimeout,bt=h.uniqueKey;return W=function(){function yt(ct,et,at){this.series=this.renderTo=this.renderer=this.pointer=this.pointCount=this.plotWidth=this.plotTop=this.plotLeft=this.plotHeight=this.plotBox=this.options=this.numberFormatter=this.margin=this.legend=this.labelCollectors=this.isResizing=this.index=this.eventOptions=this.container=this.colorCounter=this.clipBox=this.chartWidth=this.chartHeight=this.bounds=this.axisOffset=this.axes=void 0,this.sharedClips={},this.yAxis=this.xAxis=this.userOptions=this.titleOffset=this.time=this.symbolCounter=this.spacingBox=this.spacing=void 0,this.getArgs(ct,et,at)}return yt.chart=function(ct,et,at){return new yt(ct,et,at)},yt.prototype.getArgs=function(ct,et,at){X(ct)||ct.nodeName?(this.renderTo=ct,this.init(et,at)):this.init(ct,et)},yt.prototype.init=function(ct,et){var at=ct.plotOptions||{};_(this,"init",{args:arguments},function(){var dt=G(w,ct),vt=dt.chart;q(dt.plotOptions,function(xt,wt){Y(xt)&&(xt.tooltip=at[wt]&&G(at[wt].tooltip)||void 0)}),dt.tooltip.userOptions=ct.chart&&ct.chart.forExport&&ct.tooltip.userOptions||ct.tooltip,this.userOptions=ct,this.margin=[],this.spacing=[],this.bounds={h:{},v:{}},this.labelCollectors=[],this.callback=et,this.isResizing=0;var Ct=vt.zooming=vt.zooming||{};ct.chart&&!ct.chart.zooming&&(Ct.resetButton=vt.resetZoomButton),Ct.key=Q(Ct.key,vt.zoomKey),Ct.pinchType=Q(Ct.pinchType,vt.pinchType),Ct.singleTouch=Q(Ct.singleTouch,vt.zoomBySingleTouch),Ct.type=Q(Ct.type,vt.zoomType),this.options=dt,this.axes=[],this.series=[],this.time=ct.time&&Object.keys(ct.time).length?new y(ct.time):Z.time,this.numberFormatter=vt.numberFormatter||x,this.styledMode=vt.styledMode,this.hasCartesianSeries=vt.showAxes,this.index=g.length,g.push(this),Z.chartCount++,c(this,vt),this.xAxis=[],this.yAxis=[],this.pointCount=this.colorCounter=this.symbolCounter=0,_(this,"afterInit"),this.firstRender()})},yt.prototype.initSeries=function(ct){var et=this.options.chart;et=ct.type||et.type||et.defaultSeriesType;var at=o[et];return at||C(17,!0,this,{missingModuleFor:et}),typeof(et=new at).init=="function"&&et.init(this,ct),et},yt.prototype.setSeriesData=function(){this.getSeriesOrderByLinks().forEach(function(ct){ct.points||ct.data||!ct.enabledDataSorting||ct.setData(ct.options.data,!1)})},yt.prototype.getSeriesOrderByLinks=function(){return this.series.concat().sort(function(ct,et){return ct.linkedSeries.length||et.linkedSeries.length?et.linkedSeries.length-ct.linkedSeries.length:0})},yt.prototype.orderSeries=function(ct){var et=this.series;ct=ct||0;for(var at=et.length;ct<at;++ct)et[ct]&&(et[ct].index=ct,et[ct].name=et[ct].getName())},yt.prototype.isInsidePlot=function(ct,et,at){at===void 0&&(at={});var dt=this.inverted,vt=this.plotBox,Ct=this.plotLeft,xt=this.plotTop,wt=this.scrollablePlotBox,Mt=0,St=0;at.visiblePlotOnly&&this.scrollingContainer&&(Mt=(St=this.scrollingContainer).scrollLeft,St=St.scrollTop);var Tt=at.series;if(vt=at.visiblePlotOnly&&wt||vt,ct={x:wt=at.inverted?et:ct,y:et=at.inverted?ct:et,isInsidePlot:!0,options:at},!at.ignoreX){var Lt=Tt&&(dt&&!this.polar?Tt.yAxis:Tt.xAxis)||{pos:Ct,len:1/0};(wt=at.paneCoordinates?Lt.pos+wt:Ct+wt)>=Math.max(Mt+Ct,Lt.pos)&&wt<=Math.min(Mt+Ct+vt.width,Lt.pos+Lt.len)||(ct.isInsidePlot=!1)}return!at.ignoreY&&ct.isInsidePlot&&(dt=at.axis&&!at.axis.isXAxis&&at.axis||Tt&&(dt?Tt.xAxis:Tt.yAxis)||{pos:xt,len:1/0},(at=at.paneCoordinates?dt.pos+et:xt+et)>=Math.max(St+xt,dt.pos)&&at<=Math.min(St+xt+vt.height,dt.pos+dt.len)||(ct.isInsidePlot=!1)),_(this,"afterIsInsidePlot",ct),ct.isInsidePlot},yt.prototype.redraw=function(ct){_(this,"beforeRedraw");var et=this.hasCartesianSeries?this.axes:this.colorAxis||[],at=this.series,dt=this.pointer,vt=this.legend,Ct=this.userOptions.legend,xt=this.renderer,wt=xt.isHidden(),Mt=[],St=this.isDirtyBox,Tt=this.isDirtyLegend;for(this.setResponsive&&this.setResponsive(!1),v(!!this.hasRendered&&ct,this),wt&&this.temporaryDisplay(),this.layOutTitles(),ct=at.length;ct--;){var Lt=at[ct];if(Lt.options.stacking||Lt.options.centerInCategory){var Pt=!0;if(Lt.isDirty){var Dt=!0;break}}}if(Dt)for(ct=at.length;ct--;)(Lt=at[ct]).options.stacking&&(Lt.isDirty=!0);at.forEach(function(jt){jt.isDirty&&(jt.options.legendType==="point"?(typeof jt.updateTotals=="function"&&jt.updateTotals(),Tt=!0):Ct&&(Ct.labelFormatter||Ct.labelFormat)&&(Tt=!0)),jt.isDirtyData&&_(jt,"updatedData")}),Tt&&vt&&vt.options.enabled&&(vt.render(),this.isDirtyLegend=!1),Pt&&this.getStacks(),et.forEach(function(jt){jt.updateNames(),jt.setScale()}),this.getMargins(),et.forEach(function(jt){jt.isDirty&&(St=!0)}),et.forEach(function(jt){var Ot=jt.min+","+jt.max;jt.extKey!==Ot&&(jt.extKey=Ot,Mt.push(function(){_(jt,"afterSetExtremes",A(jt.eventArgs,jt.getExtremes())),delete jt.eventArgs})),(St||Pt)&&jt.redraw()}),St&&this.drawChartBox(),_(this,"predraw"),at.forEach(function(jt){(St||jt.isDirty)&&jt.visible&&jt.redraw(),jt.isDirtyData=!1}),dt&&dt.reset(!0),xt.draw(),_(this,"redraw"),_(this,"render"),wt&&this.temporaryDisplay(!0),Mt.forEach(function(jt){jt.call()})},yt.prototype.get=function(ct){function et(Ct){return Ct.id===ct||Ct.options&&Ct.options.id===ct}for(var at=this.series,dt=N(this.axes,et)||N(this.series,et),vt=0;!dt&&vt<at.length;vt++)dt=N(at[vt].points||[],et);return dt},yt.prototype.getAxes=function(){var ct=this,et=this.options,at=et.xAxis=gt(et.xAxis||{});et=et.yAxis=gt(et.yAxis||{}),_(this,"getAxes"),at.forEach(function(dt,vt){dt.index=vt,dt.isX=!0}),et.forEach(function(dt,vt){dt.index=vt}),at.concat(et).forEach(function(dt){new R(ct,dt)}),_(this,"afterGetAxes")},yt.prototype.getSelectedPoints=function(){return this.series.reduce(function(ct,et){return et.getPointsCollection().forEach(function(at){Q(at.selectedStaging,at.selected)&&ct.push(at)}),ct},[])},yt.prototype.getSelectedSeries=function(){return this.series.filter(function(ct){return ct.selected})},yt.prototype.setTitle=function(ct,et,at){this.applyDescription("title",ct),this.applyDescription("subtitle",et),this.applyDescription("caption",void 0),this.layOutTitles(at)},yt.prototype.applyDescription=function(ct,et){var at=this,dt=ct==="title"?{color:"#333333",fontSize:this.options.isStock?"16px":"18px"}:{color:"#666666"};dt=this.options[ct]=G(!this.styledMode&&{style:dt},this.options[ct],et);var vt=this[ct];vt&&et&&(this[ct]=vt=vt.destroy()),dt&&!vt&&((vt=this.renderer.text(dt.text,0,0,dt.useHTML).attr({align:dt.align,class:"highcharts-"+ct,zIndex:dt.zIndex||4}).add()).update=function(Ct){at[{title:"setTitle",subtitle:"setSubtitle",caption:"setCaption"}[ct]](Ct)},this.styledMode||vt.css(dt.style),this[ct]=vt)},yt.prototype.layOutTitles=function(ct){var et=[0,0,0],at=this.renderer,dt=this.spacingBox;["title","subtitle","caption"].forEach(function(Ct){var xt,wt=this[Ct],Mt=this.options[Ct],St=Mt.verticalAlign||"top";if(Ct=Ct==="title"?St==="top"?-3:0:St==="top"?et[0]+2:0,wt){this.styledMode||(xt=Mt.style&&Mt.style.fontSize),xt=at.fontMetrics(xt,wt).b,wt.css({width:(Mt.width||dt.width+(Mt.widthAdjust||0))+"px"});var Tt=Math.round(wt.getBBox(Mt.useHTML).height);wt.align(A({y:St==="bottom"?xt:Ct+xt,height:Tt},Mt),!1,"spacingBox"),Mt.floating||(St==="top"?et[0]=Math.ceil(et[0]+Tt):St==="bottom"&&(et[2]=Math.ceil(et[2]+Tt)))}},this),et[0]&&(this.options.title.verticalAlign||"top")==="top"&&(et[0]+=this.options.title.margin),et[2]&&this.options.caption.verticalAlign==="bottom"&&(et[2]+=this.options.caption.margin);var vt=!this.titleOffset||this.titleOffset.join(",")!==et.join(",");this.titleOffset=et,_(this,"afterLayOutTitles"),!this.isDirtyBox&&vt&&(this.isDirtyBox=this.isDirtyLegend=vt,this.hasRendered&&Q(ct,!0)&&this.isDirtyBox&&this.redraw())},yt.prototype.getChartSize=function(){var ct=this.options.chart,et=ct.width;ct=ct.height;var at=this.renderTo;k(et)||(this.containerWidth=L(at,"width")),k(ct)||(this.containerHeight=L(at,"height")),this.chartWidth=Math.max(0,et||this.containerWidth||600),this.chartHeight=Math.max(0,rt(ct,this.chartWidth)||(1<this.containerHeight?this.containerHeight:400))},yt.prototype.temporaryDisplay=function(ct){var et=this.renderTo;if(ct)for(;et&&et.style;)et.hcOrigStyle&&(b(et,et.hcOrigStyle),delete et.hcOrigStyle),et.hcOrigDetached&&(r.body.removeChild(et),et.hcOrigDetached=!1),et=et.parentNode;else for(;et&&et.style&&(r.body.contains(et)||et.parentNode||(et.hcOrigDetached=!0,r.body.appendChild(et)),(L(et,"display",!1)==="none"||et.hcOricDetached)&&(et.hcOrigStyle={display:et.style.display,height:et.style.height,overflow:et.style.overflow},ct={display:"block",overflow:"hidden"},et!==this.renderTo&&(ct.height=0),b(et,ct),et.offsetWidth||et.style.setProperty("display","block","important")),(et=et.parentNode)!==r.body););},yt.prototype.setClassName=function(ct){this.container.className="highcharts-container "+(ct||"")},yt.prototype.getContainer=function(){var ct,et=this.options,at=et.chart,dt=bt(),vt=this.renderTo;vt||(this.renderTo=vt=at.renderTo),X(vt)&&(this.renderTo=vt=r.getElementById(vt)),vt||C(13,!0,this);var Ct=J(s(vt,"data-highcharts-chart"));j(Ct)&&g[Ct]&&g[Ct].hasRendered&&g[Ct].destroy(),s(vt,"data-highcharts-chart",this.index),vt.innerHTML=f.emptyHTML,at.skipClone||vt.offsetWidth||this.temporaryDisplay(),this.getChartSize(),Ct=this.chartWidth;var xt=this.chartHeight;if(b(vt,{overflow:"hidden"}),this.styledMode||(ct=A({position:"relative",overflow:"hidden",width:Ct+"px",height:xt+"px",textAlign:"left",lineHeight:"normal",zIndex:0,"-webkit-tap-highlight-color":"rgba(0,0,0,0)",userSelect:"none","touch-action":"manipulation",outline:"none"},at.style||{})),this.container=dt=l("div",{id:dt},ct,vt),this._cursor=dt.style.cursor,this.renderer=new(at.renderer||!t?E.getRendererType(at.renderer):P)(dt,Ct,xt,void 0,at.forExport,et.exporting&&et.exporting.allowHTML,this.styledMode),v(void 0,this),this.setClassName(at.className),this.styledMode)for(var wt in et.defs)this.renderer.definition(et.defs[wt]);else this.renderer.setStyle(at.style);this.renderer.chartIndex=this.index,_(this,"afterGetContainer")},yt.prototype.getMargins=function(ct){var et=this.spacing,at=this.margin,dt=this.titleOffset;this.resetMargins(),dt[0]&&!k(at[0])&&(this.plotTop=Math.max(this.plotTop,dt[0]+et[0])),dt[2]&&!k(at[2])&&(this.marginBottom=Math.max(this.marginBottom,dt[2]+et[2])),this.legend&&this.legend.display&&this.legend.adjustMargins(at,et),_(this,"getMargins"),ct||this.getAxisMargins()},yt.prototype.getAxisMargins=function(){var ct=this,et=ct.axisOffset=[0,0,0,0],at=ct.colorAxis,dt=ct.margin,vt=function(Ct){Ct.forEach(function(xt){xt.visible&&xt.getOffset()})};ct.hasCartesianSeries?vt(ct.axes):at&&at.length&&vt(at),a.forEach(function(Ct,xt){k(dt[xt])||(ct[Ct]+=et[xt])}),ct.setChartSize()},yt.prototype.reflow=function(ct){var et=this,at=et.options.chart,dt=et.renderTo,vt=k(at.width)&&k(at.height),Ct=at.width||L(dt,"width");at=at.height||L(dt,"height"),dt=ct?ct.target:i,delete et.pointer.chartPosition,vt||et.isPrinting||!Ct||!at||dt!==i&&dt!==r||(Ct===et.containerWidth&&at===et.containerHeight||(h.clearTimeout(et.reflowTimeout),et.reflowTimeout=mt(function(){et.container&&et.setSize(void 0,void 0,!1)},ct?100:0)),et.containerWidth=Ct,et.containerHeight=at)},yt.prototype.setReflow=function(ct){var et=this;ct===!1||this.unbindReflow?ct===!1&&this.unbindReflow&&(this.unbindReflow=this.unbindReflow()):(this.unbindReflow=e(i,"resize",function(at){et.options&&et.reflow(at)}),e(this,"destroy",this.unbindReflow))},yt.prototype.setSize=function(ct,et,at){var dt=this,vt=dt.renderer;dt.isResizing+=1,v(at,dt),at=vt.globalAnimation,dt.oldChartHeight=dt.chartHeight,dt.oldChartWidth=dt.chartWidth,ct!==void 0&&(dt.options.chart.width=ct),et!==void 0&&(dt.options.chart.height=et),dt.getChartSize(),dt.styledMode||(at?m:b)(dt.container,{width:dt.chartWidth+"px",height:dt.chartHeight+"px"},at),dt.setChartSize(!0),vt.setSize(dt.chartWidth,dt.chartHeight,at),dt.axes.forEach(function(Ct){Ct.isDirty=!0,Ct.setScale()}),dt.isDirtyLegend=!0,dt.isDirtyBox=!0,dt.layOutTitles(),dt.getMargins(),dt.redraw(at),dt.oldChartHeight=null,_(dt,"resize"),mt(function(){dt&&_(dt,"endResize",null,function(){--dt.isResizing})},u(at).duration)},yt.prototype.setChartSize=function(ct){var et,at,dt,vt,Ct=this.inverted,xt=this.renderer,wt=this.chartWidth,Mt=this.chartHeight,St=this.options.chart,Tt=this.spacing,Lt=this.clipOffset;this.plotLeft=et=Math.round(this.plotLeft),this.plotTop=at=Math.round(this.plotTop),this.plotWidth=dt=Math.max(0,Math.round(wt-et-this.marginRight)),this.plotHeight=vt=Math.max(0,Math.round(Mt-at-this.marginBottom)),this.plotSizeX=Ct?vt:dt,this.plotSizeY=Ct?dt:vt,this.plotBorderWidth=St.plotBorderWidth||0,this.spacingBox=xt.spacingBox={x:Tt[3],y:Tt[0],width:wt-Tt[3]-Tt[1],height:Mt-Tt[0]-Tt[2]},this.plotBox=xt.plotBox={x:et,y:at,width:dt,height:vt},Ct=2*Math.floor(this.plotBorderWidth/2),wt=Math.ceil(Math.max(Ct,Lt[3])/2),Mt=Math.ceil(Math.max(Ct,Lt[0])/2),this.clipBox={x:wt,y:Mt,width:Math.floor(this.plotSizeX-Math.max(Ct,Lt[1])/2-wt),height:Math.max(0,Math.floor(this.plotSizeY-Math.max(Ct,Lt[2])/2-Mt))},ct||(this.axes.forEach(function(Pt){Pt.setAxisSize(),Pt.setAxisTranslation()}),xt.alignElements()),_(this,"afterSetChartSize",{skipAxes:ct})},yt.prototype.resetMargins=function(){_(this,"resetMargins");var ct=this,et=ct.options.chart;["margin","spacing"].forEach(function(at){var dt=et[at],vt=Y(dt)?dt:[dt,dt,dt,dt];["Top","Right","Bottom","Left"].forEach(function(Ct,xt){ct[at][xt]=Q(et[at+Ct],vt[xt])})}),a.forEach(function(at,dt){ct[at]=Q(ct.margin[dt],ct.spacing[dt])}),ct.axisOffset=[0,0,0,0],ct.clipOffset=[0,0,0,0]},yt.prototype.drawChartBox=function(){var ct,et=this.options.chart,at=this.renderer,dt=this.chartWidth,vt=this.chartHeight,Ct=this.styledMode,xt=this.plotBGImage,wt=et.backgroundColor,Mt=et.plotBackgroundColor,St=et.plotBackgroundImage,Tt=this.plotLeft,Lt=this.plotTop,Pt=this.plotWidth,Dt=this.plotHeight,jt=this.plotBox,Ot=this.clipRect,It=this.clipBox,Bt=this.chartBackground,Zt=this.plotBackground,zt=this.plotBorder,Ht="animate";if(Bt||(this.chartBackground=Bt=at.rect().addClass("highcharts-background").add(),Ht="attr"),Ct)var Kt=ct=Bt.strokeWidth();else ct=(Kt=et.borderWidth||0)+(et.shadow?8:0),wt={fill:wt||"none"},(Kt||Bt["stroke-width"])&&(wt.stroke=et.borderColor,wt["stroke-width"]=Kt),Bt.attr(wt).shadow(et.shadow);Bt[Ht]({x:ct/2,y:ct/2,width:dt-ct-Kt%2,height:vt-ct-Kt%2,r:et.borderRadius}),Ht="animate",Zt||(Ht="attr",this.plotBackground=Zt=at.rect().addClass("highcharts-plot-background").add()),Zt[Ht](jt),Ct||(Zt.attr({fill:Mt||"none"}).shadow(et.plotShadow),St&&(xt?(St!==xt.attr("href")&&xt.attr("href",St),xt.animate(jt)):this.plotBGImage=at.image(St,Tt,Lt,Pt,Dt).add())),Ot?Ot.animate({width:It.width,height:It.height}):this.clipRect=at.clipRect(It),Ht="animate",zt||(Ht="attr",this.plotBorder=zt=at.rect().addClass("highcharts-plot-border").attr({zIndex:1}).add()),Ct||zt.attr({stroke:et.plotBorderColor,"stroke-width":et.plotBorderWidth||0,fill:"none"}),zt[Ht](zt.crisp({x:Tt,y:Lt,width:Pt,height:Dt},-zt.strokeWidth())),this.isDirtyBox=!1,_(this,"afterDrawChartBox")},yt.prototype.propFromSeries=function(){var ct,et,at,dt=this,vt=dt.options.chart,Ct=dt.options.series;["inverted","angular","polar"].forEach(function(xt){for(et=o[vt.type||vt.defaultSeriesType],at=vt[xt]||et&&et.prototype[xt],ct=Ct&&Ct.length;!at&&ct--;)(et=o[Ct[ct].type])&&et.prototype[xt]&&(at=!0);dt[xt]=at})},yt.prototype.linkSeries=function(){var ct=this,et=ct.series;et.forEach(function(at){at.linkedSeries.length=0}),et.forEach(function(at){var dt=at.options.linkedTo;X(dt)&&(dt=dt===":previous"?ct.series[at.index-1]:ct.get(dt))&&dt.linkedParent!==at&&(dt.linkedSeries.push(at),at.linkedParent=dt,dt.enabledDataSorting&&at.setDataSortingOptions(),at.visible=Q(at.options.visible,dt.options.visible,at.visible))}),_(this,"afterLinkSeries")},yt.prototype.renderSeries=function(){this.series.forEach(function(ct){ct.translate(),ct.render()})},yt.prototype.renderLabels=function(){var ct=this,et=ct.options.labels;et.items&&et.items.forEach(function(at){var dt=A(et.style,at.style),vt=J(dt.left)+ct.plotLeft,Ct=J(dt.top)+ct.plotTop+12;delete dt.left,delete dt.top,ct.renderer.text(at.html,vt,Ct).attr({zIndex:2}).css(dt).add()})},yt.prototype.render=function(){var ct=this.axes,et=this.colorAxis,at=this.renderer,dt=this.options,vt=function(St){St.forEach(function(Tt){Tt.visible&&Tt.render()})},Ct=0;this.setTitle(),this.legend=new U(this,dt.legend),this.getStacks&&this.getStacks(),this.getMargins(!0),this.setChartSize(),dt=this.plotWidth,ct.some(function(St){if(St.horiz&&St.visible&&St.options.labels.enabled&&St.series.length)return Ct=21,!0});var xt=this.plotHeight=Math.max(this.plotHeight-Ct,0);ct.forEach(function(St){St.setScale()}),this.getAxisMargins();var wt=1.1<dt/this.plotWidth,Mt=1.05<xt/this.plotHeight;(wt||Mt)&&(ct.forEach(function(St){(St.horiz&&wt||!St.horiz&&Mt)&&St.setTickInterval(!0)}),this.getMargins()),this.drawChartBox(),this.hasCartesianSeries?vt(ct):et&&et.length&&vt(et),this.seriesGroup||(this.seriesGroup=at.g("series-group").attr({zIndex:3}).add()),this.renderSeries(),this.renderLabels(),this.addCredits(),this.setResponsive&&this.setResponsive(),this.hasRendered=!0},yt.prototype.addCredits=function(ct){var et=this,at=G(!0,this.options.credits,ct);at.enabled&&!this.credits&&(this.credits=this.renderer.text(at.text+(this.mapCredits||""),0,0).addClass("highcharts-credits").on("click",function(){at.href&&(i.location.href=at.href)}).attr({align:at.position.align,zIndex:8}),et.styledMode||this.credits.css(at.style),this.credits.add().align(at.position),this.credits.update=function(dt){et.credits=et.credits.destroy(),et.addCredits(dt)})},yt.prototype.destroy=function(){var ct,et=this,at=et.axes,dt=et.series,vt=et.container,Ct=vt&&vt.parentNode;for(_(et,"destroy"),et.renderer.forExport?p(g,et):g[et.index]=void 0,Z.chartCount--,et.renderTo.removeAttribute("data-highcharts-chart"),lt(et),ct=at.length;ct--;)at[ct]=at[ct].destroy();for(this.scroller&&this.scroller.destroy&&this.scroller.destroy(),ct=dt.length;ct--;)dt[ct]=dt[ct].destroy();"title subtitle chartBackground plotBackground plotBGImage plotBorder seriesGroup clipRect credits pointer rangeSelector legend resetZoomButton tooltip renderer".split(" ").forEach(function(xt){var wt=et[xt];wt&&wt.destroy&&(et[xt]=wt.destroy())}),vt&&(vt.innerHTML=f.emptyHTML,lt(vt),Ct&&D(vt)),q(et,function(xt,wt){delete et[wt]})},yt.prototype.firstRender=function(){var ct=this,et=ct.options;ct.isReadyToRender&&!ct.isReadyToRender()||(ct.getContainer(),ct.resetMargins(),ct.setChartSize(),ct.propFromSeries(),ct.getAxes(),(O(et.series)?et.series:[]).forEach(function(at){ct.initSeries(at)}),ct.linkSeries(),ct.setSeriesData(),_(ct,"beforeRender"),I&&(z.isRequired()?ct.pointer=new z(ct,et):ct.pointer=new I(ct,et)),ct.render(),ct.pointer.getChartPosition(),ct.renderer.imgCount||ct.hasLoaded||ct.onload(),ct.temporaryDisplay(!0))},yt.prototype.onload=function(){this.callbacks.concat([this.callback]).forEach(function(ct){ct&&this.index!==void 0&&ct.apply(this,[this])},this),_(this,"load"),_(this,"render"),k(this.index)&&this.setReflow(this.options.chart.reflow),this.warnIfA11yModuleNotLoaded(),this.hasLoaded=!0},yt.prototype.warnIfA11yModuleNotLoaded=function(){var ct=this.options,et=this.title;ct&&!this.accessibility&&(this.renderer.boxWrapper.attr({role:"img","aria-label":(et&&et.element.textContent||"").replace(/</g,"&lt;")}),ct.accessibility&&ct.accessibility.enabled===!1||C('Highcharts warning: Consider including the "accessibility.js" module to make your chart more usable for people with disabilities. Set the "accessibility.enabled" option to false to remove this warning. See https://www.highcharts.com/docs/accessibility/accessibility-module.',!1,this))},yt.prototype.addSeries=function(ct,et,at){var dt,vt=this;return ct&&(et=Q(et,!0),_(vt,"addSeries",{options:ct},function(){dt=vt.initSeries(ct),vt.isDirtyLegend=!0,vt.linkSeries(),dt.enabledDataSorting&&dt.setData(ct.data,!1),_(vt,"afterAddSeries",{series:dt}),et&&vt.redraw(at)})),dt},yt.prototype.addAxis=function(ct,et,at,dt){return this.createAxis(et?"xAxis":"yAxis",{axis:ct,redraw:at,animation:dt})},yt.prototype.addColorAxis=function(ct,et,at){return this.createAxis("colorAxis",{axis:ct,redraw:et,animation:at})},yt.prototype.createAxis=function(ct,et){return ct=new R(this,G(et.axis,{index:this[ct].length,isX:ct==="xAxis"})),Q(et.redraw,!0)&&this.redraw(et.animation),ct},yt.prototype.showLoading=function(ct){var et=this,at=et.options,dt=at.loading,vt=function(){Ct&&b(Ct,{left:et.plotLeft+"px",top:et.plotTop+"px",width:et.plotWidth+"px",height:et.plotHeight+"px"})},Ct=et.loadingDiv,xt=et.loadingSpan;Ct||(et.loadingDiv=Ct=l("div",{className:"highcharts-loading highcharts-loading-hidden"},null,et.container)),xt||(et.loadingSpan=xt=l("span",{className:"highcharts-loading-inner"},null,Ct),e(et,"redraw",vt)),Ct.className="highcharts-loading",f.setElementHTML(xt,Q(ct,at.lang.loading,"")),et.styledMode||(b(Ct,A(dt.style,{zIndex:10})),b(xt,dt.labelStyle),et.loadingShown||(b(Ct,{opacity:0,display:""}),m(Ct,{opacity:dt.style.opacity||.5},{duration:dt.showDuration||0}))),et.loadingShown=!0,vt()},yt.prototype.hideLoading=function(){var ct=this.options,et=this.loadingDiv;et&&(et.className="highcharts-loading highcharts-loading-hidden",this.styledMode||m(et,{opacity:0},{duration:ct.loading.hideDuration||100,complete:function(){b(et,{display:"none"})}})),this.loadingShown=!1},yt.prototype.update=function(ct,et,at,dt){var vt,Ct,xt=this,wt={credits:"addCredits",title:"setTitle",subtitle:"setSubtitle",caption:"setCaption"},Mt=ct.isResponsiveOptions,St=[];_(xt,"update",{options:ct}),Mt||xt.setResponsive(!1,!0),ct=n(ct,xt.options),xt.userOptions=G(xt.userOptions,ct);var Tt=ct.chart;if(Tt){if(G(!0,xt.options.chart,Tt),"className"in Tt&&xt.setClassName(Tt.className),"reflow"in Tt&&xt.setReflow(Tt.reflow),"inverted"in Tt||"polar"in Tt||"type"in Tt){xt.propFromSeries();var Lt=!0}"alignTicks"in Tt&&(Lt=!0),"events"in Tt&&c(this,Tt),q(Tt,function(Pt,Dt){xt.propsRequireUpdateSeries.indexOf("chart."+Dt)!==-1&&(vt=!0),xt.propsRequireDirtyBox.indexOf(Dt)!==-1&&(xt.isDirtyBox=!0),xt.propsRequireReflow.indexOf(Dt)!==-1&&(Mt?xt.isDirtyBox=!0:Ct=!0)}),!xt.styledMode&&Tt.style&&xt.renderer.setStyle(xt.options.chart.style||{})}!xt.styledMode&&ct.colors&&(this.options.colors=ct.colors),ct.time&&(this.time===S&&(this.time=new y(ct.time)),G(!0,xt.options.time,ct.time)),q(ct,function(Pt,Dt){xt[Dt]&&typeof xt[Dt].update=="function"?xt[Dt].update(Pt,!1):typeof xt[wt[Dt]]=="function"?xt[wt[Dt]](Pt):Dt!=="colors"&&xt.collectionsWithUpdate.indexOf(Dt)===-1&&G(!0,xt.options[Dt],ct[Dt]),Dt!=="chart"&&xt.propsRequireUpdateSeries.indexOf(Dt)!==-1&&(vt=!0)}),this.collectionsWithUpdate.forEach(function(Pt){if(ct[Pt]){var Dt=[];xt[Pt].forEach(function(jt,Ot){jt.options.isInternal||Dt.push(Q(jt.options.index,Ot))}),gt(ct[Pt]).forEach(function(jt,Ot){var It,Bt=k(jt.id);Bt&&(It=xt.get(jt.id)),!It&&xt[Pt]&&(It=xt[Pt][Dt?Dt[Ot]:Ot])&&Bt&&k(It.options.id)&&(It=void 0),It&&It.coll===Pt&&(It.update(jt,!1),at&&(It.touched=!0)),!It&&at&&xt.collectionsWithInit[Pt]&&(xt.collectionsWithInit[Pt][0].apply(xt,[jt].concat(xt.collectionsWithInit[Pt][1]||[]).concat([!1])).touched=!0)}),at&&xt[Pt].forEach(function(jt){jt.touched||jt.options.isInternal?delete jt.touched:St.push(jt)})}}),St.forEach(function(Pt){Pt.chart&&Pt.remove&&Pt.remove(!1)}),Lt&&xt.axes.forEach(function(Pt){Pt.update({},!1)}),vt&&xt.getSeriesOrderByLinks().forEach(function(Pt){Pt.chart&&Pt.update({},!1)},this),Lt=Tt&&Tt.width,Tt=Tt&&(X(Tt.height)?rt(Tt.height,Lt||xt.chartWidth):Tt.height),Ct||j(Lt)&&Lt!==xt.chartWidth||j(Tt)&&Tt!==xt.chartHeight?xt.setSize(Lt,Tt,dt):Q(et,!0)&&xt.redraw(dt),_(xt,"afterUpdate",{options:ct,redraw:et,animation:dt})},yt.prototype.setSubtitle=function(ct,et){this.applyDescription("subtitle",ct),this.layOutTitles(et)},yt.prototype.setCaption=function(ct,et){this.applyDescription("caption",ct),this.layOutTitles(et)},yt.prototype.showResetZoom=function(){function ct(){et.zoomOut()}var et=this,at=w.lang,dt=et.options.chart.zooming.resetButton,vt=dt.theme,Ct=dt.relativeTo==="chart"||dt.relativeTo==="spacingBox"?null:"scrollablePlotBox";_(this,"beforeShowResetZoom",null,function(){et.resetZoomButton=et.renderer.button(at.resetZoom,null,null,ct,vt).attr({align:dt.position.align,title:at.resetZoomTitle}).addClass("highcharts-reset-zoom").add().align(dt.position,!1,Ct)}),_(this,"afterShowResetZoom")},yt.prototype.zoomOut=function(){_(this,"selection",{resetSelection:!0},this.zoom)},yt.prototype.zoom=function(ct){var et,at=this,dt=at.pointer,vt=!1;!ct||ct.resetSelection?(at.axes.forEach(function(xt){et=xt.zoom()}),dt.initiated=!1):ct.xAxis.concat(ct.yAxis).forEach(function(xt){var wt=xt.axis;(dt[wt.isXAxis?"zoomX":"zoomY"]&&k(dt.mouseDownX)&&k(dt.mouseDownY)&&at.isInsidePlot(dt.mouseDownX-at.plotLeft,dt.mouseDownY-at.plotTop,{axis:wt})||!k(at.inverted?dt.mouseDownX:dt.mouseDownY))&&(et=wt.zoom(xt.min,xt.max),wt.displayBtn&&(vt=!0))});var Ct=at.resetZoomButton;vt&&!Ct?at.showResetZoom():!vt&&Y(Ct)&&(at.resetZoomButton=Ct.destroy()),et&&at.redraw(Q(at.options.chart.animation,ct&&ct.animation,100>at.pointCount))},yt.prototype.pan=function(ct,et){var at=this,dt=at.hoverPoints;et=typeof et=="object"?et:{enabled:et,type:"x"};var vt=at.options.chart;vt&&vt.panning&&(vt.panning=et);var Ct,xt=et.type;_(this,"pan",{originalEvent:ct},function(){dt&&dt.forEach(function(St){St.setState()});var wt=at.xAxis;xt==="xy"?wt=wt.concat(at.yAxis):xt==="y"&&(wt=at.yAxis);var Mt={};wt.forEach(function(St){if(St.options.panningEnabled&&!St.options.isInternal){var Tt=St.horiz,Lt=ct[Tt?"chartX":"chartY"],Pt=at[Tt=Tt?"mouseDownX":"mouseDownY"],Dt=St.minPointOffset||0,jt=St.reversed&&!at.inverted||!St.reversed&&at.inverted?-1:1,Ot=St.getExtremes(),It=St.toValue(Pt-Lt,!0)+Dt*jt,Bt=St.toValue(Pt+St.len-Lt,!0)-(Dt*jt||St.isXAxis&&St.pointRangePadding||0),Zt=Bt<It;jt=St.hasVerticalPanning(),Pt=Zt?Bt:It,It=Zt?It:Bt;var zt=St.panningState;!jt||St.isXAxis||zt&&!zt.isDirty||St.series.forEach(function(Ht){var Kt=Ht.getProcessedData(!0);Kt=Ht.getExtremes(Kt.yData,!0),zt||(zt={startMin:Number.MAX_VALUE,startMax:-Number.MAX_VALUE}),j(Kt.dataMin)&&j(Kt.dataMax)&&(zt.startMin=Math.min(Q(Ht.options.threshold,1/0),Kt.dataMin,zt.startMin),zt.startMax=Math.max(Q(Ht.options.threshold,-1/0),Kt.dataMax,zt.startMax))}),jt=Math.min(Q(zt&&zt.startMin,Ot.dataMin),Dt?Ot.min:St.toValue(St.toPixels(Ot.min)-St.minPixelPadding)),Bt=Math.max(Q(zt&&zt.startMax,Ot.dataMax),Dt?Ot.max:St.toValue(St.toPixels(Ot.max)+St.minPixelPadding)),St.panningState=zt,St.isOrdinal||(0<(Dt=jt-Pt)&&(It+=Dt,Pt=jt),0<(Dt=It-Bt)&&(It=Bt,Pt-=Dt),St.series.length&&Pt!==Ot.min&&It!==Ot.max&&Pt>=jt&&It<=Bt&&(St.setExtremes(Pt,It,!1,!1,{trigger:"pan"}),!at.resetZoomButton&&Pt!==jt&&It!==Bt&&xt.match("y")&&(at.showResetZoom(),St.displayBtn=!1),Ct=!0),Mt[Tt]=Lt)}}),q(Mt,function(St,Tt){at[Tt]=St}),Ct&&at.redraw(!1),b(at.container,{cursor:"move"})})},yt}(),A(W.prototype,{callbacks:[],collectionsWithInit:{xAxis:[W.prototype.addAxis,[!0]],yAxis:[W.prototype.addAxis,[!1]],series:[W.prototype.addSeries]},collectionsWithUpdate:["xAxis","yAxis","series"],propsRequireDirtyBox:"backgroundColor borderColor borderWidth borderRadius plotBackgroundColor plotBackgroundImage plotBorderColor plotBorderWidth plotShadow shadow".split(" "),propsRequireReflow:"margin marginTop marginRight marginBottom marginLeft spacing spacingTop spacingRight spacingBottom spacingLeft".split(" "),propsRequireUpdateSeries:"chart.inverted chart.polar chart.ignoreHiddenSeries chart.type colors plotOptions time tooltip".split(" ")}),W}),B(it,"Core/Legend/LegendSymbol.js",[it["Core/Utilities.js"]],function(W){var R,H=W.extend,V=W.merge,$=W.pick;return function(Z){Z.drawLineMarker=function(U){var z=this.legendItem=this.legendItem||{},I=this.options,E=U.symbolWidth,M=U.symbolHeight,P=M/2,y=this.chart.renderer,h=z.group;U=U.baseline-Math.round(.3*U.fontMetrics.b);var f={},m=I.marker,u=0;this.chart.styledMode||(f={"stroke-width":Math.min(I.lineWidth||0,24)},I.dashStyle?f.dashstyle=I.dashStyle:I.linecap!=="square"&&(f["stroke-linecap"]="round")),z.line=y.path().addClass("highcharts-graph").attr(f).add(h),f["stroke-linecap"]&&(u=Math.min(z.line.strokeWidth(),E)/2),z.line.attr({d:[["M",u,U],["L",E-u,U]]}),m&&m.enabled!==!1&&E&&(I=Math.min($(m.radius,P),P),this.symbol.indexOf("url")===0&&(m=V(m,{width:M,height:M}),I=0),z.symbol=z=y.symbol(this.symbol,E/2-I,U-I,2*I,2*I,H({context:"legend"},m)).addClass("highcharts-point").add(h),z.isMarker=!0)},Z.drawRectangle=function(U,z){z=z.legendItem||{};var I=U.symbolHeight,E=U.options.squareSymbol;z.symbol=this.chart.renderer.rect(E?(U.symbolWidth-I)/2:0,U.baseline-I+1,E?I:U.symbolWidth,I,$(U.options.symbolRadius,I/2)).addClass("highcharts-point").attr({zIndex:3}).add(z.group)}}(R||(R={})),R}),B(it,"Core/Series/SeriesDefaults.js",[],function(){return{lineWidth:2,allowPointSelect:!1,crisp:!0,showCheckbox:!1,animation:{duration:1e3},events:{},marker:{enabledThreshold:2,lineColor:"#ffffff",lineWidth:0,radius:4,states:{normal:{animation:!0},hover:{animation:{duration:50},enabled:!0,radiusPlus:2,lineWidthPlus:1},select:{fillColor:"#cccccc",lineColor:"#000000",lineWidth:2}}},point:{events:{}},dataLabels:{animation:{},align:"center",borderWidth:0,defer:!0,formatter:function(){var W=this.series.chart.numberFormatter;return typeof this.y!="number"?"":W(this.y,-1)},padding:5,style:{fontSize:"11px",fontWeight:"bold",color:"contrast",textOutline:"1px contrast"},verticalAlign:"bottom",x:0,y:0},cropThreshold:300,opacity:1,pointRange:0,softThreshold:!0,states:{normal:{animation:!0},hover:{animation:{duration:50},lineWidthPlus:1,marker:{},halo:{size:10,opacity:.25}},select:{animation:{duration:0}},inactive:{animation:{duration:50},opacity:.2}},stickyTracking:!0,turboThreshold:1e3,findNearestPointBy:"x"}}),B(it,"Core/Series/Series.js",[it["Core/Animation/AnimationUtilities.js"],it["Core/Defaults.js"],it["Core/Foundation.js"],it["Core/Globals.js"],it["Core/Legend/LegendSymbol.js"],it["Core/Series/Point.js"],it["Core/Series/SeriesDefaults.js"],it["Core/Series/SeriesRegistry.js"],it["Core/Renderer/SVG/SVGElement.js"],it["Core/Utilities.js"]],function(W,R,H,V,$,Z,U,z,I,E){var M=W.animObject,P=W.setAnimation,y=R.defaultOptions,h=H.registerEventOptions,f=V.hasTouch,m=V.svg,u=V.win,v=z.seriesTypes,w=E.arrayMax,S=E.arrayMin,x=E.clamp,c=E.cleanRecursively,g=E.correctFloat,r=E.defined,a=E.erase,t=E.error,i=E.extend,o=E.find,e=E.fireEvent,s=E.getNestedProperty,n=E.isArray,l=E.isNumber,b=E.isString,k=E.merge,D=E.objectEach,p=E.pick,C=E.removeEvent,A=E.splat,N=E.syncTimeout;return W=function(){function _(){this.zones=this.yAxis=this.xAxis=this.userOptions=this.tooltipOptions=this.processedYData=this.processedXData=this.points=this.options=this.linkedSeries=this.index=this.eventsToUnbind=this.eventOptions=this.data=this.chart=this._i=void 0}return _.prototype.init=function(L,O){e(this,"init",{options:O});var j=this,Y=L.series;this.eventsToUnbind=[],j.chart=L,j.options=j.setOptions(O),O=j.options,j.linkedSeries=[],j.bindAxes(),i(j,{name:O.name,state:"",visible:O.visible!==!1,selected:O.selected===!0}),h(this,O);var X,G=O.events;(G&&G.click||O.point&&O.point.events&&O.point.events.click||O.allowPointSelect)&&(L.runTrackerClick=!0),j.getColor(),j.getSymbol(),j.parallelArrays.forEach(function(q){j[q+"Data"]||(j[q+"Data"]=[])}),j.isCartesian&&(L.hasCartesianSeries=!0),Y.length&&(X=Y[Y.length-1]),j._i=p(X&&X._i,-1)+1,j.opacity=j.options.opacity,L.orderSeries(this.insert(Y)),O.dataSorting&&O.dataSorting.enabled?j.setDataSortingOptions():j.points||j.data||j.setData(O.data,!1),e(this,"afterInit")},_.prototype.is=function(L){return v[L]&&this instanceof v[L]},_.prototype.insert=function(L){var O,j=this.options.index;if(l(j)){for(O=L.length;O--;)if(j>=p(L[O].options.index,L[O]._i)){L.splice(O+1,0,this);break}O===-1&&L.unshift(this),O+=1}else L.push(this);return p(O,L.length-1)},_.prototype.bindAxes=function(){var L,O=this,j=O.options,Y=O.chart;e(this,"bindAxes",null,function(){(O.axisTypes||[]).forEach(function(X){var G=0;Y[X].forEach(function(q){L=q.options,(j[X]===G&&!L.isInternal||j[X]!==void 0&&j[X]===L.id||j[X]===void 0&&L.index===0)&&(O.insert(q.series),O[X]=q,q.isDirty=!0),L.isInternal||G++}),O[X]||O.optionalAxis===X||t(18,!0,Y)})}),e(this,"afterBindAxes")},_.prototype.updateParallelArrays=function(L,O){var j=L.series,Y=arguments,X=l(O)?function(G){var q=G==="y"&&j.toYData?j.toYData(L):L[G];j[G+"Data"][O]=q}:function(G){Array.prototype[O].apply(j[G+"Data"],Array.prototype.slice.call(Y,2))};j.parallelArrays.forEach(X)},_.prototype.hasData=function(){return this.visible&&this.dataMax!==void 0&&this.dataMin!==void 0||this.visible&&this.yData&&0<this.yData.length},_.prototype.autoIncrement=function(L){var O,j=this.options,Y=j.pointIntervalUnit,X=j.relativeXValue,G=this.chart.time,q=this.xIncrement;return q=p(q,j.pointStart,0),this.pointInterval=O=p(this.pointInterval,j.pointInterval,1),X&&l(L)&&(O*=L),Y&&(j=new G.Date(q),Y==="day"?G.set("Date",j,G.get("Date",j)+O):Y==="month"?G.set("Month",j,G.get("Month",j)+O):Y==="year"&&G.set("FullYear",j,G.get("FullYear",j)+O),O=j.getTime()-q),X&&l(L)?q+O:(this.xIncrement=q+O,q)},_.prototype.setDataSortingOptions=function(){var L=this.options;i(this,{requireSorting:!1,sorted:!1,enabledDataSorting:!0,allowDG:!1}),r(L.pointRange)||(L.pointRange=1)},_.prototype.setOptions=function(L){var O=this.chart,j=O.options,Y=j.plotOptions,X=O.userOptions||{};L=k(L),O=O.styledMode;var G={plotOptions:Y,userOptions:L};e(this,"setOptions",G);var q=G.plotOptions[this.type],Q=X.plotOptions||{};return this.userOptions=G.userOptions,X=k(q,Y.series,X.plotOptions&&X.plotOptions[this.type],L),this.tooltipOptions=k(y.tooltip,y.plotOptions.series&&y.plotOptions.series.tooltip,y.plotOptions[this.type].tooltip,j.tooltip.userOptions,Y.series&&Y.series.tooltip,Y[this.type].tooltip,L.tooltip),this.stickyTracking=p(L.stickyTracking,Q[this.type]&&Q[this.type].stickyTracking,Q.series&&Q.series.stickyTracking,!(!this.tooltipOptions.shared||this.noSharedTooltip)||X.stickyTracking),q.marker===null&&delete X.marker,this.zoneAxis=X.zoneAxis,Y=this.zones=(X.zones||[]).slice(),!X.negativeColor&&!X.negativeFillColor||X.zones||(j={value:X[this.zoneAxis+"Threshold"]||X.threshold||0,className:"highcharts-negative"},O||(j.color=X.negativeColor,j.fillColor=X.negativeFillColor),Y.push(j)),Y.length&&r(Y[Y.length-1].value)&&Y.push(O?{}:{color:this.color,fillColor:this.fillColor}),e(this,"afterSetOptions",{options:X}),X},_.prototype.getName=function(){return p(this.options.name,"Series "+(this.index+1))},_.prototype.getCyclic=function(L,O,j){var Y=this.chart,X=this.userOptions,G=L+"Index",q=L+"Counter",Q=j?j.length:p(Y.options.chart[L+"Count"],Y[L+"Count"]);if(!O){var J=p(X[G],X["_"+G]);r(J)||(Y.series.length||(Y[q]=0),X["_"+G]=J=Y[q]%Q,Y[q]+=1),j&&(O=j[J])}J!==void 0&&(this[G]=J),this[L]=O},_.prototype.getColor=function(){this.chart.styledMode?this.getCyclic("color"):this.options.colorByPoint?this.color="#cccccc":this.getCyclic("color",this.options.color||y.plotOptions[this.type].color,this.chart.options.colors)},_.prototype.getPointsCollection=function(){return(this.hasGroupedData?this.points:this.data)||[]},_.prototype.getSymbol=function(){this.getCyclic("symbol",this.options.marker.symbol,this.chart.options.symbols)},_.prototype.findPointIndex=function(L,O){var j,Y,X=L.id,G=L.x,q=this.points,Q=this.options.dataSorting;if(X)(Q=this.chart.get(X))instanceof Z&&(j=Q);else if((this.linkedParent||this.enabledDataSorting||this.options.relativeXValue)&&(j=function(rt){return!rt.touched&&rt.index===L.index},Q&&Q.matchByName?j=function(rt){return!rt.touched&&rt.name===L.name}:this.options.relativeXValue&&(j=function(rt){return!rt.touched&&rt.options.x===L.x}),!(j=o(q,j))))return;if(j){var J=j&&j.index;J!==void 0&&(Y=!0)}return J===void 0&&l(G)&&(J=this.xData.indexOf(G,O)),J!==-1&&J!==void 0&&this.cropped&&(J=J>=this.cropStart?J-this.cropStart:J),!Y&&l(J)&&q[J]&&q[J].touched&&(J=void 0),J},_.prototype.updateData=function(L,O){var j,Y,X,G=this.options,q=G.dataSorting,Q=this.points,J=[],rt=this.requireSorting,lt=L.length===Q.length,gt=!0;if(this.xIncrement=null,L.forEach(function(mt,bt){var yt=r(mt)&&this.pointClass.prototype.optionsToObject.call({series:this},mt)||{},ct=yt.x;yt.id||l(ct)?((yt=this.findPointIndex(yt,X))===-1||yt===void 0?J.push(mt):Q[yt]&&mt!==G.data[yt]?(Q[yt].update(mt,!1,null,!1),Q[yt].touched=!0,rt&&(X=yt+1)):Q[yt]&&(Q[yt].touched=!0),(!lt||bt!==yt||q&&q.enabled||this.hasDerivedData)&&(j=!0)):J.push(mt)},this),j)for(L=Q.length;L--;)(Y=Q[L])&&!Y.touched&&Y.remove&&Y.remove(!1,O);else!lt||q&&q.enabled?gt=!1:(L.forEach(function(mt,bt){mt!==Q[bt].y&&Q[bt].update&&Q[bt].update(mt,!1,null,!1)}),J.length=0);return Q.forEach(function(mt){mt&&(mt.touched=!1)}),!!gt&&(J.forEach(function(mt){this.addPoint(mt,!1,null,null,!1)},this),this.xIncrement===null&&this.xData&&this.xData.length&&(this.xIncrement=w(this.xData),this.autoIncrement()),!0)},_.prototype.setData=function(L,O,j,Y){O===void 0&&(O=!0);var X=this,G=X.points,q=G&&G.length||0,Q=X.options,J=X.chart,rt=Q.dataSorting,lt=X.xAxis,gt=Q.turboThreshold,mt=this.xData,bt=this.yData,yt=X.pointArrayMap;yt=yt&&yt.length;var ct,et=Q.keys,at=0,dt=1,vt=null;if(!J.options.chart.allowMutatingData){Q.data&&delete X.options.data,X.userOptions.data&&delete X.userOptions.data;var Ct=k(!0,L)}if(Ct=(L=Ct||L||[]).length,rt&&rt.enabled&&(L=this.sortData(L)),J.options.chart.allowMutatingData&&Y!==!1&&Ct&&q&&!X.cropped&&!X.hasGroupedData&&X.visible&&!X.boosted&&(ct=this.updateData(L,j)),!ct){if(X.xIncrement=null,X.colorCounter=0,this.parallelArrays.forEach(function(xt){X[xt+"Data"].length=0}),gt&&Ct>gt)if(vt=X.getFirstValidPoint(L),l(vt))for(j=0;j<Ct;j++)mt[j]=this.autoIncrement(),bt[j]=L[j];else if(n(vt))if(yt)if(vt.length===yt)for(j=0;j<Ct;j++)mt[j]=this.autoIncrement(),bt[j]=L[j];else for(j=0;j<Ct;j++)Y=L[j],mt[j]=Y[0],bt[j]=Y.slice(1,yt+1);else if(et&&(at=0<=(at=et.indexOf("x"))?at:0,dt=0<=(dt=et.indexOf("y"))?dt:1),vt.length===1&&(dt=0),at===dt)for(j=0;j<Ct;j++)mt[j]=this.autoIncrement(),bt[j]=L[j][dt];else for(j=0;j<Ct;j++)Y=L[j],mt[j]=Y[at],bt[j]=Y[dt];else t(12,!1,J);else for(j=0;j<Ct;j++)L[j]!==void 0&&(Y={series:X},X.pointClass.prototype.applyOptions.apply(Y,[L[j]]),X.updateParallelArrays(Y,j));for(bt&&b(bt[0])&&t(14,!0,J),X.data=[],X.options.data=X.userOptions.data=L,j=q;j--;)G[j]&&G[j].destroy&&G[j].destroy();lt&&(lt.minRange=lt.userMinRange),X.isDirty=J.isDirtyBox=!0,X.isDirtyData=!!G,j=!1}Q.legendType==="point"&&(this.processData(),this.generatePoints()),O&&J.redraw(j)},_.prototype.sortData=function(L){var O=this,j=O.options.dataSorting.sortKey||"y",Y=function(X,G){return r(G)&&X.pointClass.prototype.optionsToObject.call({series:X},G)||{}};return L.forEach(function(X,G){L[G]=Y(O,X),L[G].index=G},this),L.concat().sort(function(X,G){return X=s(j,X),(G=s(j,G))<X?-1:G>X?1:0}).forEach(function(X,G){X.x=G},this),O.linkedSeries&&O.linkedSeries.forEach(function(X){var G=X.options,q=G.data;G.dataSorting&&G.dataSorting.enabled||!q||(q.forEach(function(Q,J){q[J]=Y(X,Q),L[J]&&(q[J].x=L[J].x,q[J].index=J)}),X.setData(q,!1))}),L},_.prototype.getProcessedData=function(L){var O=this.xAxis,j=this.options,Y=j.cropThreshold,X=L||this.getExtremesFromAll||j.getExtremesFromAll,G=this.isCartesian;L=O&&O.val2lin,j=!(!O||!O.logarithmic);var q=0,Q=this.xData,J=this.yData,rt=this.requireSorting,lt=!1,gt=Q.length;if(O){var mt=(lt=O.getExtremes()).min,bt=lt.max;lt=!(!O.categories||O.names.length)}if(G&&this.sorted&&!X&&(!Y||gt>Y||this.forceCrop)){if(Q[gt-1]<mt||Q[0]>bt)Q=[],J=[];else if(this.yData&&(Q[0]<mt||Q[gt-1]>bt)){var yt=this.cropData(this.xData,this.yData,mt,bt);Q=yt.xData,J=yt.yData,q=yt.start,yt=!0}}for(Y=Q.length||1;--Y;)if(0<(O=j?L(Q[Y])-L(Q[Y-1]):Q[Y]-Q[Y-1])&&(ct===void 0||O<ct))var ct=O;else 0>O&&rt&&!lt&&(t(15,!1,this.chart),rt=!1);return{xData:Q,yData:J,cropped:yt,cropStart:q,closestPointRange:ct}},_.prototype.processData=function(L){var O=this.xAxis;if(this.isCartesian&&!this.isDirty&&!O.isDirty&&!this.yAxis.isDirty&&!L)return!1;L=this.getProcessedData(),this.cropped=L.cropped,this.cropStart=L.cropStart,this.processedXData=L.xData,this.processedYData=L.yData,this.closestPointRange=this.basePointRange=L.closestPointRange,e(this,"afterProcessData")},_.prototype.cropData=function(L,O,j,Y,X){var G,q=L.length,Q=0,J=q;for(X=p(X,this.cropShoulder),G=0;G<q;G++)if(L[G]>=j){Q=Math.max(0,G-X);break}for(j=G;j<q;j++)if(L[j]>Y){J=j+X;break}return{xData:L.slice(Q,J),yData:O.slice(Q,J),start:Q,end:J}},_.prototype.generatePoints=function(){var L=this.options,O=this.processedData||L.data,j=this.processedXData,Y=this.processedYData,X=this.pointClass,G=j.length,q=this.cropStart||0,Q=this.hasGroupedData,J=L.keys,rt=[];L=L.dataGrouping&&L.dataGrouping.groupAll?q:0;var lt,gt,mt=this.data;if(!mt&&!Q){var bt=[];bt.length=O.length,mt=this.data=bt}for(J&&Q&&(this.options.keys=!1),gt=0;gt<G;gt++){if(bt=q+gt,Q){var yt=new X().init(this,[j[gt]].concat(A(Y[gt])));yt.dataGroup=this.groupMap[L+gt],yt.dataGroup.options&&(yt.options=yt.dataGroup.options,i(yt,yt.dataGroup.options),delete yt.dataLabels)}else(yt=mt[bt])||O[bt]===void 0||(mt[bt]=yt=new X().init(this,O[bt],j[gt]));yt&&(yt.index=Q?L+gt:bt,rt[gt]=yt)}if(this.options.keys=J,mt&&(G!==(lt=mt.length)||Q))for(gt=0;gt<lt;gt++)gt!==q||Q||(gt+=G),mt[gt]&&(mt[gt].destroyElements(),mt[gt].plotX=void 0);this.data=mt,this.points=rt,e(this,"afterGeneratePoints")},_.prototype.getXExtremes=function(L){return{min:S(L),max:w(L)}},_.prototype.getExtremes=function(L,O){var j=this.xAxis,Y=this.yAxis,X=this.processedXData||this.xData,G=[],q=this.requireSorting?this.cropShoulder:0;Y=!!Y&&Y.positiveValuesOnly;var Q,J=0,rt=0,lt=0,gt=(L=L||this.stackedYData||this.processedYData||[]).length;if(j){var mt=j.getExtremes();J=mt.min,rt=mt.max}for(Q=0;Q<gt;Q++){var bt=X[Q];mt=L[Q];var yt=(l(mt)||n(mt))&&(mt.length||0<mt||!Y);if(bt=O||this.getExtremesFromAll||this.options.getExtremesFromAll||this.cropped||!j||(X[Q+q]||bt)>=J&&(X[Q-q]||bt)<=rt,yt&&bt)if(yt=mt.length)for(;yt--;)l(mt[yt])&&(G[lt++]=mt[yt]);else G[lt++]=mt}return L={activeYData:G,dataMin:S(G),dataMax:w(G)},e(this,"afterGetExtremes",{dataExtremes:L}),L},_.prototype.applyExtremes=function(){var L=this.getExtremes();return this.dataMin=L.dataMin,this.dataMax=L.dataMax,L},_.prototype.getFirstValidPoint=function(L){for(var O=L.length,j=0,Y=null;Y===null&&j<O;)Y=L[j],j++;return Y},_.prototype.translate=function(){this.processedXData||this.processData(),this.generatePoints();var L,O,j=this.options,Y=j.stacking,X=this.xAxis,G=X.categories,q=this.enabledDataSorting,Q=this.yAxis,J=this.points,rt=J.length,lt=this.pointPlacementToXValue(),gt=!!lt,mt=j.threshold,bt=j.startFromThreshold?mt:0,yt=this.zoneAxis||"y",ct=Number.MAX_VALUE;for(L=0;L<rt;L++){var et=J[L],at=et.x,dt=void 0,vt=void 0,Ct=et.y,xt=et.low,wt=Y&&Q.stacking&&Q.stacking.stacks[(this.negStacks&&Ct<(bt?0:mt)?"-":"")+this.stackKey];if((Q.positiveValuesOnly&&!Q.validatePositiveValue(Ct)||X.positiveValuesOnly&&!X.validatePositiveValue(at))&&(et.isNull=!0),et.plotX=O=g(x(X.translate(at,0,0,0,1,lt,this.type==="flags"),-1e5,1e5)),Y&&this.visible&&wt&&wt[at]){var Mt=this.getStackIndicator(Mt,at,this.index);!et.isNull&&Mt.key&&(vt=(dt=wt[at]).points[Mt.key]),dt&&n(vt)&&(xt=vt[0],Ct=vt[1],xt===bt&&Mt.key===wt[at].base&&(xt=p(l(mt)?mt:Q.min)),Q.positiveValuesOnly&&r(xt)&&0>=xt&&(xt=void 0),et.total=et.stackTotal=p(dt.total),et.percentage=r(et.y)&&dt.total?et.y/dt.total*100:void 0,et.stackY=Ct,this.irregularWidths||dt.setOffset(this.pointXOffset||0,this.barW||0,void 0,void 0,void 0,this.xAxis))}if(et.yBottom=r(xt)?x(Q.translate(xt,0,1,0,1),-1e5,1e5):void 0,this.dataModify&&(Ct=this.dataModify.modifyValue(Ct,L)),et.plotY=void 0,l(Ct)&&(dt=Q.translate(Ct,!1,!0,!1,!0))!==void 0&&(et.plotY=x(dt,-1e5,1e5)),et.isInside=this.isPointInside(et),et.clientX=gt?g(X.translate(at,0,0,0,1,lt)):O,et.negative=et[yt]<(j[yt+"Threshold"]||mt||0),et.category=p(G&&G[et.x],et.x),!et.isNull&&et.visible!==!1){St!==void 0&&(ct=Math.min(ct,Math.abs(O-St)));var St=O}et.zone=this.zones.length?et.getZone():void 0,!et.graphic&&this.group&&q&&(et.isNew=!0)}this.closestPointRangePx=ct,e(this,"afterTranslate")},_.prototype.getValidPoints=function(L,O,j){var Y=this.chart;return(L||this.points||[]).filter(function(X){return!(O&&!Y.isInsidePlot(X.plotX,X.plotY,{inverted:Y.inverted}))&&X.visible!==!1&&(j||!X.isNull)})},_.prototype.getClipBox=function(){var L=this.chart,O=this.xAxis,j=this.yAxis,Y=k(L.clipBox);return O&&O.len!==L.plotSizeX&&(Y.width=O.len),j&&j.len!==L.plotSizeY&&(Y.height=j.len),Y},_.prototype.getSharedClipKey=function(){return this.sharedClipKey=(this.options.xAxis||0)+","+(this.options.yAxis||0)},_.prototype.setClip=function(){var L=this.chart,O=this.group,j=this.markerGroup,Y=L.sharedClips;L=L.renderer;var X=this.getClipBox(),G=this.getSharedClipKey(),q=Y[G];q?q.animate(X):Y[G]=q=L.clipRect(X),O&&O.clip(this.options.clip===!1?void 0:q),j&&j.clip()},_.prototype.animate=function(L){var O=this.chart,j=this.group,Y=this.markerGroup,X=O.inverted,G=M(this.options.animation),q=[this.getSharedClipKey(),G.duration,G.easing,G.defer].join(),Q=O.sharedClips[q],J=O.sharedClips[q+"m"];if(L&&j)G=this.getClipBox(),Q?Q.attr("height",G.height):(G.width=0,X&&(G.x=O.plotHeight),Q=O.renderer.clipRect(G),O.sharedClips[q]=Q,J=O.renderer.clipRect({x:-99,y:-99,width:X?O.plotWidth+199:99,height:X?99:O.plotHeight+199}),O.sharedClips[q+"m"]=J),j.clip(Q),Y&&Y.clip(J);else if(Q&&!Q.hasClass("highcharts-animating")){O=this.getClipBox();var rt=G.step;Y&&Y.element.childNodes.length&&(G.step=function(lt,gt){rt&&rt.apply(gt,arguments),gt.prop==="width"&&J&&J.element&&J.attr(X?"height":"width",lt+99)}),Q.addClass("highcharts-animating").animate(O,G)}},_.prototype.afterAnimate=function(){var L=this;this.setClip(),D(this.chart.sharedClips,function(O,j,Y){O&&!L.chart.container.querySelector('[clip-path="url(#'.concat(O.id,')"]'))&&(O.destroy(),delete Y[j])}),this.finishedAnimating=!0,e(this,"afterAnimate")},_.prototype.drawPoints=function(L){L===void 0&&(L=this.points);var O,j,Y=this.chart,X=Y.styledMode,G=this.colorAxis,q=this.options.marker,Q=this[this.specialGroup||"markerGroup"],J=this.xAxis,rt=p(q.enabled,!(J&&!J.isRadial)||null,this.closestPointRangePx>=q.enabledThreshold*q.radius);if(q.enabled!==!1||this._hasPointMarkers)for(O=0;O<L.length;O++){var lt=L[O],gt=(j=lt.graphic)?"animate":"attr",mt=lt.marker||{},bt=!!lt.marker;if((rt&&mt.enabled===void 0||mt.enabled)&&!lt.isNull&&lt.visible!==!1){var yt=p(mt.symbol,this.symbol,"rect"),ct=this.markerAttribs(lt,lt.selected&&"select");this.enabledDataSorting&&(lt.startXPos=J.reversed?-(ct.width||0):J.width);var et=lt.isInside!==!1;!j&&et&&(0<(ct.width||0)||lt.hasImage)&&(lt.graphic=j=Y.renderer.symbol(yt,ct.x,ct.y,ct.width,ct.height,bt?mt:q).add(Q),this.enabledDataSorting&&Y.hasRendered&&(j.attr({x:lt.startXPos}),gt="animate")),j&&gt==="animate"&&j[et?"show":"hide"](et).animate(ct),j&&(mt=this.pointAttribs(lt,X||!lt.selected?void 0:"select"),X?G&&j.css({fill:mt.fill}):j[gt](mt)),j&&j.addClass(lt.getClassName(),!0)}else j&&(lt.graphic=j.destroy())}},_.prototype.markerAttribs=function(L,O){var j=this.options,Y=j.marker,X=L.marker||{},G=X.symbol||Y.symbol,q={},Q=p(X.radius,Y&&Y.radius);return O&&(Y=Y.states[O],O=X.states&&X.states[O],Q=p(O&&O.radius,Y&&Y.radius,Q&&Q+(Y&&Y.radiusPlus||0))),L.hasImage=G&&G.indexOf("url")===0,L.hasImage&&(Q=0),L=L.pos(),l(Q)&&L&&(q.x=L[0]-Q,q.y=L[1]-Q,j.crisp&&(q.x=Math.floor(q.x))),Q&&(q.width=q.height=2*Q),q},_.prototype.pointAttribs=function(L,O){var j=this.options.marker,Y=L&&L.options,X=Y&&Y.marker||{},G=Y&&Y.color,q=L&&L.color,Q=L&&L.zone&&L.zone.color,J=this.color;return L=p(X.lineWidth,j.lineWidth),Y=1,J=G||Q||q||J,G=X.fillColor||j.fillColor||J,q=X.lineColor||j.lineColor||J,O=O||"normal",j=j.states[O]||{},O=X.states&&X.states[O]||{},L=p(O.lineWidth,j.lineWidth,L+p(O.lineWidthPlus,j.lineWidthPlus,0)),G=O.fillColor||j.fillColor||G,{stroke:q=O.lineColor||j.lineColor||q,"stroke-width":L,fill:G,opacity:Y=p(O.opacity,j.opacity,Y)}},_.prototype.destroy=function(L){var O,j,Y,X=this,G=X.chart,q=/AppleWebKit\/533/.test(u.navigator.userAgent),Q=X.data||[];for(e(X,"destroy",{keepEventsForUpdate:L}),this.removeEvents(L),(X.axisTypes||[]).forEach(function(J){(Y=X[J])&&Y.series&&(a(Y.series,X),Y.isDirty=Y.forceRedraw=!0)}),X.legendItem&&X.chart.legend.destroyItem(X),O=Q.length;O--;)(j=Q[O])&&j.destroy&&j.destroy();X.clips&&X.clips.forEach(function(J){return J.destroy()}),E.clearTimeout(X.animationTimeout),D(X,function(J,rt){J instanceof I&&!J.survive&&J[q&&rt==="group"?"hide":"destroy"]()}),G.hoverSeries===X&&(G.hoverSeries=void 0),a(G.series,X),G.orderSeries(),D(X,function(J,rt){L&&rt==="hcEvents"||delete X[rt]})},_.prototype.applyZones=function(){var L,O,j,Y,X,G,q,Q,J=this,rt=this.chart,lt=rt.renderer,gt=this.zones,mt=this.clips||[],bt=this.graph,yt=this.area,ct=Math.max(rt.plotWidth,rt.plotHeight),et=this[(this.zoneAxis||"y")+"Axis"],at=rt.inverted,dt=!1;if(gt.length&&(bt||yt)&&et&&et.min!==void 0){var vt=et.reversed,Ct=et.horiz;bt&&!this.showLine&&bt.hide(),yt&&yt.hide();var xt=et.getExtremes();gt.forEach(function(wt,Mt){L=vt?Ct?rt.plotWidth:0:Ct?0:et.toPixels(xt.min)||0,L=x(p(O,L),0,ct),O=x(Math.round(et.toPixels(p(wt.value,xt.max),!0)||0),0,ct),dt&&(L=O=et.toPixels(xt.max)),Y=Math.abs(L-O),X=Math.min(L,O),G=Math.max(L,O),et.isXAxis?(j={x:at?G:X,y:0,width:Y,height:ct},Ct||(j.x=rt.plotHeight-j.x)):(j={x:0,y:at?G:X,width:ct,height:Y},Ct&&(j.y=rt.plotWidth-j.y)),at&&lt.isVML&&(j=et.isXAxis?{x:0,y:vt?X:G,height:j.width,width:rt.chartWidth}:{x:j.y-rt.plotLeft-rt.spacingBox.x,y:0,width:j.height,height:rt.chartHeight}),mt[Mt]?mt[Mt].animate(j):mt[Mt]=lt.clipRect(j),q=J["zone-area-"+Mt],Q=J["zone-graph-"+Mt],bt&&Q&&Q.clip(mt[Mt]),yt&&q&&q.clip(mt[Mt]),dt=wt.value>xt.max,J.resetZones&&O===0&&(O=void 0)}),this.clips=mt}else J.visible&&(bt&&bt.show(),yt&&yt.show())},_.prototype.plotGroup=function(L,O,j,Y,X){var G=this[L],q=!G;return j={visibility:j,zIndex:Y||.1},this.opacity===void 0||this.chart.styledMode||this.state==="inactive"||(j.opacity=this.opacity),q&&(this[L]=G=this.chart.renderer.g().add(X)),G.addClass("highcharts-"+O+" highcharts-series-"+this.index+" highcharts-"+this.type+"-series "+(r(this.colorIndex)?"highcharts-color-"+this.colorIndex+" ":"")+(this.options.className||"")+(G.hasClass("highcharts-tracker")?" highcharts-tracker":""),!0),G.attr(j)[q?"attr":"animate"](this.getPlotBox(O)),G},_.prototype.getPlotBox=function(L){var O=this.xAxis,j=this.yAxis,Y=this.chart;return L=Y.inverted&&!Y.polar&&O&&this.invertible!==!1&&L==="series",Y.inverted&&(O=j,j=this.xAxis),{translateX:O?O.left:Y.plotLeft,translateY:j?j.top:Y.plotTop,rotation:L?90:0,rotationOriginX:L?(O.len-j.len)/2:0,rotationOriginY:L?(O.len+j.len)/2:0,scaleX:L?-1:1,scaleY:1}},_.prototype.removeEvents=function(L){L||C(this),this.eventsToUnbind.length&&(this.eventsToUnbind.forEach(function(O){O()}),this.eventsToUnbind.length=0)},_.prototype.render=function(){var L=this,O=L.chart,j=L.options,Y=M(j.animation),X=L.visible?"inherit":"hidden",G=j.zIndex,q=L.hasRendered,Q=O.seriesGroup;O=!L.finishedAnimating&&O.renderer.isSVG?Y.duration:0,e(this,"render"),L.plotGroup("group","series",X,G,Q),L.markerGroup=L.plotGroup("markerGroup","markers",X,G,Q),j.clip!==!1&&L.setClip(),L.animate&&O&&L.animate(!0),L.drawGraph&&(L.drawGraph(),L.applyZones()),L.visible&&L.drawPoints(),L.drawDataLabels&&L.drawDataLabels(),L.redrawPoints&&L.redrawPoints(),L.drawTracker&&L.options.enableMouseTracking!==!1&&L.drawTracker(),L.animate&&O&&L.animate(),q||(O&&Y.defer&&(O+=Y.defer),L.animationTimeout=N(function(){L.afterAnimate()},O||0)),L.isDirty=!1,L.hasRendered=!0,e(L,"afterRender")},_.prototype.redraw=function(){var L=this.isDirty||this.isDirtyData;this.translate(),this.render(),L&&delete this.kdTree},_.prototype.searchPoint=function(L,O){var j=this.xAxis,Y=this.yAxis,X=this.chart.inverted;return this.searchKDTree({clientX:X?j.len-L.chartY+j.pos:L.chartX-j.pos,plotY:X?Y.len-L.chartX+Y.pos:L.chartY-Y.pos},O,L)},_.prototype.buildKDTree=function(L){function O(X,G,q){var Q=X&&X.length;if(Q){var J=j.kdAxisArray[G%q];return X.sort(function(rt,lt){return rt[J]-lt[J]}),{point:X[Q=Math.floor(Q/2)],left:O(X.slice(0,Q),G+1,q),right:O(X.slice(Q+1),G+1,q)}}}this.buildingKdTree=!0;var j=this,Y=-1<j.options.findNearestPointBy.indexOf("y")?2:1;delete j.kdTree,N(function(){j.kdTree=O(j.getValidPoints(null,!j.directTouch),Y,Y),j.buildingKdTree=!1},j.options.kdNow||L&&L.type==="touchstart"?0:1)},_.prototype.searchKDTree=function(L,O,j){var Y=this,X=this.kdAxisArray[0],G=this.kdAxisArray[1],q=O?"distX":"dist";if(O=-1<Y.options.findNearestPointBy.indexOf("y")?2:1,this.kdTree||this.buildingKdTree||this.buildKDTree(j),this.kdTree)return function Q(J,rt,lt,gt){var mt=rt.point,bt=Y.kdAxisArray[lt%gt],yt=mt,ct=r(J[X])&&r(mt[X])?Math.pow(J[X]-mt[X],2):null,et=r(J[G])&&r(mt[G])?Math.pow(J[G]-mt[G],2):null;return et=(ct||0)+(et||0),mt.dist=r(et)?Math.sqrt(et):Number.MAX_VALUE,mt.distX=r(ct)?Math.sqrt(ct):Number.MAX_VALUE,ct=0>(bt=J[bt]-mt[bt])?"right":"left",rt[et=0>bt?"left":"right"]&&(yt=(et=Q(J,rt[et],lt+1,gt))[q]<yt[q]?et:mt),rt[ct]&&Math.sqrt(bt*bt)<yt[q]&&(yt=(J=Q(J,rt[ct],lt+1,gt))[q]<yt[q]?J:yt),yt}(L,this.kdTree,O,O)},_.prototype.pointPlacementToXValue=function(){var L=this.options,O=L.pointRange,j=this.xAxis;return(L=L.pointPlacement)==="between"&&(L=j.reversed?-.5:.5),l(L)?L*(O||j.pointRange):0},_.prototype.isPointInside=function(L){var O=this.chart,j=this.xAxis,Y=this.yAxis;return L.plotY!==void 0&&L.plotX!==void 0&&0<=L.plotY&&L.plotY<=(Y?Y.len:O.plotHeight)&&0<=L.plotX&&L.plotX<=(j?j.len:O.plotWidth)},_.prototype.drawTracker=function(){var L=this,O=L.options,j=O.trackByArea,Y=[].concat(j?L.areaPath:L.graphPath),X=L.chart,G=X.pointer,q=X.renderer,Q=X.options.tooltip.snap,J=L.tracker,rt=function(gt){X.hoverSeries!==L&&L.onMouseOver()},lt="rgba(192,192,192,"+(m?1e-4:.002)+")";J?J.attr({d:Y}):L.graph&&(L.tracker=q.path(Y).attr({visibility:L.visible?"inherit":"hidden",zIndex:2}).addClass(j?"highcharts-tracker-area":"highcharts-tracker-line").add(L.group),X.styledMode||L.tracker.attr({"stroke-linecap":"round","stroke-linejoin":"round",stroke:lt,fill:j?lt:"none","stroke-width":L.graph.strokeWidth()+(j?0:2*Q)}),[L.tracker,L.markerGroup,L.dataLabelsGroup].forEach(function(gt){gt&&(gt.addClass("highcharts-tracker").on("mouseover",rt).on("mouseout",function(mt){G.onTrackerMouseOut(mt)}),O.cursor&&!X.styledMode&&gt.css({cursor:O.cursor}),f)&&gt.on("touchstart",rt)})),e(this,"afterDrawTracker")},_.prototype.addPoint=function(L,O,j,Y,X){var G=this.options,q=this.data,Q=this.chart,J=this.xAxis;J=J&&J.hasNames&&J.names;var rt,lt=G.data,gt=this.xData;O=p(O,!0);var mt={series:this};this.pointClass.prototype.applyOptions.apply(mt,[L]);var bt=mt.x,yt=gt.length;if(this.requireSorting&&bt<gt[yt-1])for(rt=!0;yt&&gt[yt-1]>bt;)yt--;this.updateParallelArrays(mt,"splice",yt,0,0),this.updateParallelArrays(mt,yt),J&&mt.name&&(J[bt]=mt.name),lt.splice(yt,0,L),(rt||this.processedData)&&(this.data.splice(yt,0,null),this.processData()),G.legendType==="point"&&this.generatePoints(),j&&(q[0]&&q[0].remove?q[0].remove(!1):(q.shift(),this.updateParallelArrays(mt,"shift"),lt.shift())),X!==!1&&e(this,"addPoint",{point:mt}),this.isDirtyData=this.isDirty=!0,O&&Q.redraw(Y)},_.prototype.removePoint=function(L,O,j){var Y=this,X=Y.data,G=X[L],q=Y.points,Q=Y.chart,J=function(){q&&q.length===X.length&&q.splice(L,1),X.splice(L,1),Y.options.data.splice(L,1),Y.updateParallelArrays(G||{series:Y},"splice",L,1),G&&G.destroy(),Y.isDirty=!0,Y.isDirtyData=!0,O&&Q.redraw()};P(j,Q),O=p(O,!0),G?G.firePointEvent("remove",null,J):J()},_.prototype.remove=function(L,O,j,Y){function X(){G.destroy(Y),q.isDirtyLegend=q.isDirtyBox=!0,q.linkSeries(),p(L,!0)&&q.redraw(O)}var G=this,q=G.chart;j!==!1?e(G,"remove",null,X):X()},_.prototype.update=function(L,O){L=c(L,this.userOptions),e(this,"update",{options:L});var j=this,Y=j.chart,X=j.userOptions,G=j.initialType||j.type,q=Y.options.plotOptions,Q=v[G].prototype,J=j.finishedAnimating&&{animation:!1},rt={},lt=["eventOptions","navigatorSeries","baseSeries"],gt=L.type||X.type||Y.options.chart.type,mt=!(this.hasDerivedData||gt&&gt!==this.type||L.pointStart!==void 0||L.pointInterval!==void 0||L.relativeXValue!==void 0||L.joinBy||L.mapData||j.hasOptionChanged("dataGrouping")||j.hasOptionChanged("pointStart")||j.hasOptionChanged("pointInterval")||j.hasOptionChanged("pointIntervalUnit")||j.hasOptionChanged("keys"));if(gt=gt||G,mt&&(lt.push("data","isDirtyData","points","processedData","processedXData","processedYData","xIncrement","cropped","_hasPointMarkers","_hasPointLabels","clips","nodes","layout","level","mapMap","mapData","minY","maxY","minX","maxX"),L.visible!==!1&&lt.push("area","graph"),j.parallelArrays.forEach(function(yt){lt.push(yt+"Data")}),L.data&&(L.dataSorting&&i(j.options.dataSorting,L.dataSorting),this.setData(L.data,!1))),L=k(X,J,{index:X.index===void 0?j.index:X.index,pointStart:p(q&&q.series&&q.series.pointStart,X.pointStart,j.xData[0])},!mt&&{data:j.options.data},L),mt&&L.data&&(L.data=j.options.data),(lt=["group","markerGroup","dataLabelsGroup","transformGroup","shadowGroup"].concat(lt)).forEach(function(yt){lt[yt]=j[yt],delete j[yt]}),q=!1,v[gt]){if(q=gt!==j.type,j.remove(!1,!1,!1,!0),q)if(Object.setPrototypeOf)Object.setPrototypeOf(j,v[gt].prototype);else{for(bt in J=Object.hasOwnProperty.call(j,"hcEvents")&&j.hcEvents,Q)j[bt]=void 0;i(j,v[gt].prototype),J?j.hcEvents=J:delete j.hcEvents}}else t(17,!0,Y,{missingModuleFor:gt});if(lt.forEach(function(yt){j[yt]=lt[yt]}),j.init(Y,L),mt&&this.points){if((L=j.options).visible===!1)rt.graphic=1,rt.dataLabel=1;else if(!j._hasPointLabels){Q=L.marker;var bt=L.dataLabels;X=X.marker||{},!Q||Q.enabled!==!1&&X.symbol===Q.symbol&&X.height===Q.height&&X.width===Q.width||(rt.graphic=1),bt&&bt.enabled===!1&&(rt.dataLabel=1)}for(X=0,Q=this.points;X<Q.length;X++)(bt=Q[X])&&bt.series&&(bt.resolveColor(),Object.keys(rt).length&&bt.destroyElements(rt),L.showInLegend===!1&&bt.legendItem&&Y.legend.destroyItem(bt))}j.initialType=G,Y.linkSeries(),q&&j.linkedSeries.length&&(j.isDirtyData=!0),e(this,"afterUpdate"),p(O,!0)&&Y.redraw(!!mt&&void 0)},_.prototype.setName=function(L){this.name=this.options.name=this.userOptions.name=L,this.chart.isDirtyLegend=!0},_.prototype.hasOptionChanged=function(L){var O=this.options[L],j=this.chart.options.plotOptions,Y=this.userOptions[L];return Y?O!==Y:O!==p(j&&j[this.type]&&j[this.type][L],j&&j.series&&j.series[L],O)},_.prototype.onMouseOver=function(){var L=this.chart,O=L.hoverSeries;L.pointer.setHoverChartIndex(),O&&O!==this&&O.onMouseOut(),this.options.events.mouseOver&&e(this,"mouseOver"),this.setState("hover"),L.hoverSeries=this},_.prototype.onMouseOut=function(){var L=this.options,O=this.chart,j=O.tooltip,Y=O.hoverPoint;O.hoverSeries=null,Y&&Y.onMouseOut(),this&&L.events.mouseOut&&e(this,"mouseOut"),!j||this.stickyTracking||j.shared&&!this.noSharedTooltip||j.hide(),O.series.forEach(function(X){X.setState("",!0)})},_.prototype.setState=function(L,O){var j=this,Y=j.options,X=j.graph,G=Y.inactiveOtherPoints,q=Y.states,Q=p(q[L||"normal"]&&q[L||"normal"].animation,j.chart.options.chart.animation),J=Y.lineWidth,rt=0,lt=Y.opacity;if(L=L||"",j.state!==L&&([j.group,j.markerGroup,j.dataLabelsGroup].forEach(function(gt){gt&&(j.state&&gt.removeClass("highcharts-series-"+j.state),L&&gt.addClass("highcharts-series-"+L))}),j.state=L,!j.chart.styledMode)){if(q[L]&&q[L].enabled===!1)return;if(L&&(J=q[L].lineWidth||J+(q[L].lineWidthPlus||0),lt=p(q[L].opacity,lt)),X&&!X.dashstyle&&l(J))for(Y={"stroke-width":J},X.animate(Y,Q);j["zone-graph-"+rt];)j["zone-graph-"+rt].animate(Y,Q),rt+=1;G||[j.group,j.markerGroup,j.dataLabelsGroup,j.labelBySeries].forEach(function(gt){gt&&gt.animate({opacity:lt},Q)})}O&&G&&j.points&&j.setAllPointsToState(L||void 0)},_.prototype.setAllPointsToState=function(L){this.points.forEach(function(O){O.setState&&O.setState(L)})},_.prototype.setVisible=function(L,O){var j=this,Y=j.chart,X=Y.options.chart.ignoreHiddenSeries,G=j.visible,q=(j.visible=L=j.options.visible=j.userOptions.visible=L===void 0?!G:L)?"show":"hide";["group","dataLabelsGroup","markerGroup","tracker","tt"].forEach(function(Q){j[Q]&&j[Q][q]()}),Y.hoverSeries!==j&&(Y.hoverPoint&&Y.hoverPoint.series)!==j||j.onMouseOut(),j.legendItem&&Y.legend.colorizeItem(j,L),j.isDirty=!0,j.options.stacking&&Y.series.forEach(function(Q){Q.options.stacking&&Q.visible&&(Q.isDirty=!0)}),j.linkedSeries.forEach(function(Q){Q.setVisible(L,!1)}),X&&(Y.isDirtyBox=!0),e(j,q),O!==!1&&Y.redraw()},_.prototype.show=function(){this.setVisible(!0)},_.prototype.hide=function(){this.setVisible(!1)},_.prototype.select=function(L){this.selected=L=this.options.selected=L===void 0?!this.selected:L,this.checkbox&&(this.checkbox.checked=L),e(this,L?"select":"unselect")},_.prototype.shouldShowTooltip=function(L,O,j){return j===void 0&&(j={}),j.series=this,j.visiblePlotOnly=!0,this.chart.isInsidePlot(L,O,j)},_.defaultOptions=U,_.types=z.seriesTypes,_.registerType=z.registerSeriesType,_}(),i(W.prototype,{axisTypes:["xAxis","yAxis"],coll:"series",colorCounter:0,cropShoulder:1,directTouch:!1,drawLegendSymbol:$.drawLineMarker,isCartesian:!0,kdAxisArray:["clientX","plotY"],parallelArrays:["x","y"],pointClass:Z,requireSorting:!0,sorted:!0}),z.series=W,W}),B(it,"Extensions/ScrollablePlotArea.js",[it["Core/Animation/AnimationUtilities.js"],it["Core/Axis/Axis.js"],it["Core/Chart/Chart.js"],it["Core/Series/Series.js"],it["Core/Renderer/RendererRegistry.js"],it["Core/Utilities.js"]],function(W,R,H,V,$,Z){var U=W.stop,z=Z.addEvent,I=Z.createElement,E=Z.defined,M=Z.merge,P=Z.pick;z(H,"afterSetChartSize",function(y){var h=this.options.chart.scrollablePlotArea,f=h&&h.minWidth;if(h=h&&h.minHeight,!this.renderer.forExport){if(f){if(this.scrollablePixelsX=f=Math.max(0,f-this.chartWidth)){this.scrollablePlotBox=this.renderer.scrollablePlotBox=M(this.plotBox),this.plotBox.width=this.plotWidth+=f,this.inverted?this.clipBox.height+=f:this.clipBox.width+=f;var m={1:{name:"right",value:f}}}}else h&&(this.scrollablePixelsY=f=Math.max(0,h-this.chartHeight),E(f)&&(this.scrollablePlotBox=this.renderer.scrollablePlotBox=M(this.plotBox),this.plotBox.height=this.plotHeight+=f,this.inverted?this.clipBox.width+=f:this.clipBox.height+=f,m={2:{name:"bottom",value:f}}));m&&!y.skipAxes&&this.axes.forEach(function(u){m[u.side]?u.getPlotLinePath=function(){var v=m[u.side].name,w=this[v];this[v]=w-m[u.side].value;var S=R.prototype.getPlotLinePath.apply(this,arguments);return this[v]=w,S}:(u.setAxisSize(),u.setAxisTranslation())})}}),z(H,"render",function(){this.scrollablePixelsX||this.scrollablePixelsY?(this.setUpScrolling&&this.setUpScrolling(),this.applyFixed()):this.fixedDiv&&this.applyFixed()}),H.prototype.setUpScrolling=function(){var y,h=this,f={WebkitOverflowScrolling:"touch",overflowX:"hidden",overflowY:"hidden"};this.scrollablePixelsX&&(f.overflowX="auto"),this.scrollablePixelsY&&(f.overflowY="auto"),this.scrollingParent=I("div",{className:"highcharts-scrolling-parent"},{position:"relative"},this.renderTo),this.scrollingContainer=I("div",{className:"highcharts-scrolling"},f,this.scrollingParent),z(this.scrollingContainer,"scroll",function(){h.pointer&&(delete h.pointer.chartPosition,h.hoverPoint&&(y=h.hoverPoint),h.pointer.runPointActions(void 0,y,!0))}),this.innerContainer=I("div",{className:"highcharts-inner-container"},null,this.scrollingContainer),this.innerContainer.appendChild(this.container),this.setUpScrolling=null},H.prototype.moveFixedElements=function(){var y,h=this.container,f=this.fixedRenderer,m=".highcharts-breadcrumbs-group .highcharts-contextbutton .highcharts-credits .highcharts-legend .highcharts-legend-checkbox .highcharts-navigator-series .highcharts-navigator-xaxis .highcharts-navigator-yaxis .highcharts-navigator .highcharts-reset-zoom .highcharts-drillup-button .highcharts-scrollbar .highcharts-subtitle .highcharts-title".split(" ");this.scrollablePixelsX&&!this.inverted?y=".highcharts-yaxis":this.scrollablePixelsX&&this.inverted||this.scrollablePixelsY&&!this.inverted?y=".highcharts-xaxis":this.scrollablePixelsY&&this.inverted&&(y=".highcharts-yaxis"),y&&m.push(y+":not(.highcharts-radial-axis)",y+"-labels:not(.highcharts-radial-axis-labels)"),m.forEach(function(u){[].forEach.call(h.querySelectorAll(u),function(v){(v.namespaceURI===f.SVG_NS?f.box:f.box.parentNode).appendChild(v),v.style.pointerEvents="auto"})})},H.prototype.applyFixed=function(){var y=!this.fixedDiv,h=this.options.chart,f=h.scrollablePlotArea,m=$.getRendererType();y?(this.fixedDiv=I("div",{className:"highcharts-fixed"},{position:"absolute",overflow:"hidden",pointerEvents:"none",zIndex:(h.style&&h.style.zIndex||0)+2,top:0},null,!0),this.scrollingContainer&&this.scrollingContainer.parentNode.insertBefore(this.fixedDiv,this.scrollingContainer),this.renderTo.style.overflow="visible",this.fixedRenderer=h=new m(this.fixedDiv,this.chartWidth,this.chartHeight,this.options.chart.style),this.scrollableMask=h.path().attr({fill:this.options.chart.backgroundColor||"#fff","fill-opacity":P(f.opacity,.85),zIndex:-1}).addClass("highcharts-scrollable-mask").add(),z(this,"afterShowResetZoom",this.moveFixedElements),z(this,"afterApplyDrilldown",this.moveFixedElements),z(this,"afterLayOutTitles",this.moveFixedElements)):this.fixedRenderer.setSize(this.chartWidth,this.chartHeight),(this.scrollableDirty||y)&&(this.scrollableDirty=!1,this.moveFixedElements()),h=this.chartWidth+(this.scrollablePixelsX||0),m=this.chartHeight+(this.scrollablePixelsY||0),U(this.container),this.container.style.width=h+"px",this.container.style.height=m+"px",this.renderer.boxWrapper.attr({width:h,height:m,viewBox:[0,0,h,m].join(" ")}),this.chartBackground.attr({width:h,height:m}),this.scrollingContainer.style.height=this.chartHeight+"px",y&&(f.scrollPositionX&&(this.scrollingContainer.scrollLeft=this.scrollablePixelsX*f.scrollPositionX),f.scrollPositionY&&(this.scrollingContainer.scrollTop=this.scrollablePixelsY*f.scrollPositionY)),m=this.axisOffset,y=this.plotTop-m[0]-1,f=this.plotLeft-m[3]-1,h=this.plotTop+this.plotHeight+m[2]+1,m=this.plotLeft+this.plotWidth+m[1]+1;var u=this.plotLeft+this.plotWidth-(this.scrollablePixelsX||0),v=this.plotTop+this.plotHeight-(this.scrollablePixelsY||0);y=this.scrollablePixelsX?[["M",0,y],["L",this.plotLeft-1,y],["L",this.plotLeft-1,h],["L",0,h],["Z"],["M",u,y],["L",this.chartWidth,y],["L",this.chartWidth,h],["L",u,h],["Z"]]:this.scrollablePixelsY?[["M",f,0],["L",f,this.plotTop-1],["L",m,this.plotTop-1],["L",m,0],["Z"],["M",f,v],["L",f,this.chartHeight],["L",m,this.chartHeight],["L",m,v],["Z"]]:[["M",0,0]],this.redrawTrigger!=="adjustHeight"&&this.scrollableMask.attr({d:y})},z(R,"afterInit",function(){this.chart.scrollableDirty=!0}),z(V,"show",function(){this.chart.scrollableDirty=!0})}),B(it,"Core/Axis/Stacking/StackItem.js",[it["Core/FormatUtilities.js"],it["Core/Series/SeriesRegistry.js"],it["Core/Utilities.js"]],function(W,R,H){var V=W.format,$=R.series,Z=H.destroyObjectProperties,U=H.pick,z=H.isNumber;return W=function(){function I(E,M,P,y,h){var f=E.chart.inverted,m=E.reversed;this.axis=E,E=this.isNegative=!!P!=!!m,this.options=M=M||{},this.x=y,this.cumulative=this.total=null,this.points={},this.hasValidPoints=!1,this.stack=h,this.rightCliff=this.leftCliff=0,this.alignOptions={align:M.align||(f?E?"left":"right":"center"),verticalAlign:M.verticalAlign||(f?"middle":E?"bottom":"top"),y:M.y,x:M.x},this.textAlign=M.textAlign||(f?E?"right":"left":"center")}return I.prototype.destroy=function(){Z(this,this.axis)},I.prototype.render=function(E){var M=this.axis.chart,P=this.options,y=P.format;y=y?V(y,this,M):P.formatter.call(this),this.label?this.label.attr({text:y,visibility:"hidden"}):(this.label=M.renderer.label(y,null,void 0,P.shape,void 0,void 0,P.useHTML,!1,"stack-labels"),y={r:P.borderRadius||0,text:y,padding:U(P.padding,5),visibility:"hidden"},M.styledMode||(y.fill=P.backgroundColor,y.stroke=P.borderColor,y["stroke-width"]=P.borderWidth,this.label.css(P.style||{})),this.label.attr(y),this.label.added||this.label.add(E)),this.label.labelrank=M.plotSizeY},I.prototype.setOffset=function(E,M,P,y,h,f){var m=this.alignOptions,u=this.axis,v=this.label,w=this.options,S=this.textAlign,x=u.chart;E=this.getStackBox({xOffset:E,width:M,boxBottom:P,boxTop:y,defaultX:h,xAxis:f}),h=m.verticalAlign,v&&E&&(M=v.getBBox(),P=v.padding,y=U(w.overflow,"justify")==="justify",m.x=w.x||0,m.y=w.y||0,S=(h=this.adjustStackPosition({labelBox:M,verticalAlign:h,textAlign:S})).x,h=h.y,E.x-=S,E.y-=h,v.align(m,!1,E),(S=x.isInsidePlot(v.alignAttr.x+m.x+S,v.alignAttr.y+m.y+h))||(y=!1),y&&$.prototype.justifyDataLabel.call(u,v,m,v.alignAttr,M,E),v.attr({x:v.alignAttr.x,y:v.alignAttr.y,rotation:w.rotation,rotationOriginX:M.width/2,rotationOriginY:M.height/2}),U(!y&&w.crop,!0)&&(S=z(v.x)&&z(v.y)&&x.isInsidePlot(v.x-P+v.width,v.y)&&x.isInsidePlot(v.x+P,v.y)),v[S?"show":"hide"]())},I.prototype.adjustStackPosition=function(E){var M=E.labelBox,P={bottom:0,middle:1,top:2,right:1,center:0,left:-1};return{x:M.width/2+M.width/2*P[E.textAlign],y:M.height/2*P[E.verticalAlign]}},I.prototype.getStackBox=function(E){var M=this.axis,P=M.chart,y=E.boxTop,h=E.defaultX,f=E.xOffset,m=E.width,u=E.boxBottom;return y=M.stacking.usePercentage?100:U(y,this.total,0),y=M.toPixels(y),E=U(h,(E.xAxis||P.xAxis[0]).toPixels(this.x))+f,M=M.toPixels(u||0),M=Math.abs(y-M),u=this.isNegative,P.inverted?{x:(u?y:y-M)-P.plotLeft,y:E-P.plotTop,width:M,height:m}:{x:E-P.plotLeft,y:(u?y-M:y)-P.plotTop,width:m,height:M}},I}(),W}),B(it,"Core/Axis/Stacking/StackingAxis.js",[it["Core/Animation/AnimationUtilities.js"],it["Core/Axis/Axis.js"],it["Core/Series/SeriesRegistry.js"],it["Core/Axis/Stacking/StackItem.js"],it["Core/Utilities.js"]],function(W,R,H,V,$){function Z(){var i=this,o=i.inverted;i.yAxis.forEach(function(e){e.stacking&&e.stacking.stacks&&e.hasVisibleSeries&&(e.stacking.oldStacks=e.stacking.stacks)}),i.series.forEach(function(e){var s=e.xAxis&&e.xAxis.options||{};!e.options.stacking||e.visible!==!0&&i.options.chart.ignoreHiddenSeries!==!1||(e.stackKey=[e.type,a(e.options.stack,""),o?s.top:s.left,o?s.height:s.width].join())})}function U(){var i=this.stacking;if(i){var o=i.stacks;r(o,function(e,s){S(e),o[s]=null}),i&&i.stackTotalGroup&&i.stackTotalGroup.destroy()}}function z(){this.coll!=="yAxis"||this.stacking||(this.stacking=new t(this))}function I(i,o,e,s){return!w(i)||i.x!==o||s&&i.stackKey!==s?i={x:o,index:0,key:s,stackKey:s}:i.index++,i.key=[e,o,i.index].join(),i}function E(){var i,o=this,e=o.stackKey,s=o.yAxis.stacking.stacks,n=o.processedXData,l=o[o.options.stacking+"Stacker"];l&&[e,"-"+e].forEach(function(b){for(var k,D,p=n.length;p--;)k=n[p],i=o.getStackIndicator(i,k,o.index,b),(D=(k=s[b]&&s[b][k])&&k.points[i.key])&&l.call(o,D,k,p)})}function M(i,o,e){o=o.total?100/o.total:0,i[0]=v(i[0]*o),i[1]=v(i[1]*o),this.stackedYData[e]=i[1]}function P(){var i=this.yAxis.stacking;this.options.centerInCategory&&(this.is("column")||this.is("columnrange"))&&!this.options.stacking&&1<this.chart.series.length?m.setStackedPoints.call(this,"group"):i&&r(i.stacks,function(o,e){e.slice(-5)==="group"&&(r(o,function(s){return s.destroy()}),delete i.stacks[e])})}function y(i){var o=this.chart,e=i||this.options.stacking;if(e&&(this.visible===!0||o.options.chart.ignoreHiddenSeries===!1)){var s=this.processedXData,n=this.processedYData,l=[],b=n.length,k=this.options,D=k.threshold,p=a(k.startFromThreshold&&D,0);k=k.stack;var C,A,N="-"+(i=i?""+this.type+",".concat(e):this.stackKey),_=this.negStacks,L=(o=e==="group"?o.yAxis[0]:this.yAxis).stacking.stacks,O=o.stacking.oldStacks;for(o.stacking.stacksTouched+=1,A=0;A<b;A++){var j=s[A],Y=n[A],X=this.getStackIndicator(X,j,this.index),G=X.key,q=(C=_&&Y<(p?0:D))?N:i;L[q]||(L[q]={}),L[q][j]||(O[q]&&O[q][j]?(L[q][j]=O[q][j],L[q][j].total=null):L[q][j]=new V(o,o.options.stackLabels,!!C,j,k)),q=L[q][j],Y!==null?(q.points[G]=q.points[this.index]=[a(q.cumulative,p)],w(q.cumulative)||(q.base=G),q.touched=o.stacking.stacksTouched,0<X.index&&this.singleStacks===!1&&(q.points[G][0]=q.points[this.index+","+j+",0"][0])):q.points[G]=q.points[this.index]=null,e==="percent"?(C=C?i:N,_&&L[C]&&L[C][j]?(C=L[C][j],q.total=C.total=Math.max(C.total,q.total)+Math.abs(Y)||0):q.total=v(q.total+(Math.abs(Y)||0))):e==="group"?(c(Y)&&(Y=Y[0]),Y!==null&&(q.total=(q.total||0)+1)):q.total=v(q.total+(Y||0)),q.cumulative=e==="group"?(q.total||1)-1:a(q.cumulative,p)+(Y||0),Y!==null&&(q.points[G].push(q.cumulative),l[A]=q.cumulative,q.hasValidPoints=!0)}e==="percent"&&(o.stacking.usePercentage=!0),e!=="group"&&(this.stackedYData=l),o.stacking.oldStacks={}}}var h,f=W.getDeferredAnimation,m=H.series.prototype,u=$.addEvent,v=$.correctFloat,w=$.defined,S=$.destroyObjectProperties,x=$.fireEvent,c=$.isArray,g=$.isNumber,r=$.objectEach,a=$.pick,t=function(){function i(o){this.oldStacks={},this.stacks={},this.stacksTouched=0,this.axis=o}return i.prototype.buildStacks=function(){var o,e=this.axis,s=e.series,n=e.options.reversedStacks,l=s.length;for(this.usePercentage=!1,o=l;o--;){var b=s[n?o:l-o-1];b.setStackedPoints(),b.setGroupedPoints()}for(o=0;o<l;o++)s[o].modifyStacks();x(e,"afterBuildStacks")},i.prototype.cleanStacks=function(){if(this.oldStacks)var o=this.stacks=this.oldStacks;r(o,function(e){r(e,function(s){s.cumulative=s.total})})},i.prototype.resetStacks=function(){var o=this;r(this.stacks,function(e){r(e,function(s,n){g(s.touched)&&s.touched<o.stacksTouched?(s.destroy(),delete e[n]):(s.total=null,s.cumulative=null)})})},i.prototype.renderStackTotals=function(){var o=this.axis,e=o.chart,s=e.renderer,n=this.stacks;o=f(e,o.options.stackLabels&&o.options.stackLabels.animation||!1);var l=this.stackTotalGroup=this.stackTotalGroup||s.g("stack-labels").attr({zIndex:6,opacity:0}).add();l.translate(e.plotLeft,e.plotTop),r(n,function(b){r(b,function(k){k.render(l)})}),l.animate({opacity:1},o)},i}();return function(i){var o=[];i.compose=function(e,s,n){o.indexOf(e)===-1&&(o.push(e),u(e,"init",z),u(e,"destroy",U)),o.indexOf(s)===-1&&(o.push(s),s.prototype.getStacks=Z),o.indexOf(n)===-1&&(o.push(n),(e=n.prototype).getStackIndicator=I,e.modifyStacks=E,e.percentStacker=M,e.setGroupedPoints=P,e.setStackedPoints=y)}}(h||(h={})),h}),B(it,"Series/Line/LineSeries.js",[it["Core/Series/Series.js"],it["Core/Series/SeriesRegistry.js"],it["Core/Utilities.js"]],function(W,R,H){var V=this&&this.__extends||function(){var U=function(z,I){return(U=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(E,M){E.__proto__=M}||function(E,M){for(var P in M)M.hasOwnProperty(P)&&(E[P]=M[P])})(z,I)};return function(z,I){function E(){this.constructor=z}U(z,I),z.prototype=I===null?Object.create(I):(E.prototype=I.prototype,new E)}}(),$=H.defined,Z=H.merge;return H=function(U){function z(){var I=U!==null&&U.apply(this,arguments)||this;return I.data=void 0,I.options=void 0,I.points=void 0,I}return V(z,U),z.prototype.drawGraph=function(){var I=this,E=this.options,M=(this.gappedPath||this.getGraphPath).call(this),P=this.chart.styledMode,y=[["graph","highcharts-graph"]];P||y[0].push(E.lineColor||this.color||"#cccccc",E.dashStyle),(y=I.getZonesGraphs(y)).forEach(function(h,f){var m=h[0],u=I[m],v=u?"animate":"attr";u?(u.endX=I.preventGraphAnimation?null:M.xMap,u.animate({d:M})):M.length&&(I[m]=u=I.chart.renderer.path(M).addClass(h[1]).attr({zIndex:1}).add(I.group)),u&&!P&&(m={stroke:h[2],"stroke-width":E.lineWidth||0,fill:I.fillGraph&&I.color||"none"},h[3]?m.dashstyle=h[3]:E.linecap!=="square"&&(m["stroke-linecap"]=m["stroke-linejoin"]="round"),u[v](m).shadow(2>f&&E.shadow)),u&&(u.startX=M.xMap,u.isArea=M.isArea)})},z.prototype.getGraphPath=function(I,E,M){var P,y=this,h=y.options,f=[],m=[],u=h.step,v=(I=I||y.points).reversed;return v&&I.reverse(),(u={right:1,center:2}[u]||u&&3)&&v&&(u=4-u),(I=this.getValidPoints(I,!1,!(h.connectNulls&&!E&&!M))).forEach(function(w,S){var x=w.plotX,c=w.plotY,g=I[S-1];(w.leftCliff||g&&g.rightCliff)&&!M&&(P=!0),w.isNull&&!$(E)&&0<S?P=!h.connectNulls:w.isNull&&!E?P=!0:(S===0||P?S=[["M",w.plotX,w.plotY]]:y.getPointSpline?S=[y.getPointSpline(I,w,S)]:u?(S=u===1?[["L",g.plotX,c]]:u===2?[["L",(g.plotX+x)/2,g.plotY],["L",(g.plotX+x)/2,c]]:[["L",x,g.plotY]]).push(["L",x,c]):S=[["L",x,c]],m.push(w.x),u&&(m.push(w.x),u===2&&m.push(w.x)),f.push.apply(f,S),P=!1)}),f.xMap=m,y.graphPath=f},z.prototype.getZonesGraphs=function(I){return this.zones.forEach(function(E,M){M=["zone-graph-"+M,"highcharts-graph highcharts-zone-graph-"+M+" "+(E.className||"")],this.chart.styledMode||M.push(E.color||this.color,E.dashStyle||this.options.dashStyle),I.push(M)},this),I},z.defaultOptions=Z(W.defaultOptions,{}),z}(W),R.registerSeriesType("line",H),H}),B(it,"Series/Area/AreaSeries.js",[it["Core/Color/Color.js"],it["Core/Legend/LegendSymbol.js"],it["Core/Series/SeriesRegistry.js"],it["Core/Utilities.js"]],function(W,R,H,V){var $=this&&this.__extends||function(){var M=function(P,y){return M=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(h,f){h.__proto__=f}||function(h,f){for(var m in f)f.hasOwnProperty(m)&&(h[m]=f[m])},M(P,y)};return function(P,y){function h(){this.constructor=P}M(P,y),P.prototype=y===null?Object.create(y):(h.prototype=y.prototype,new h)}}(),Z=W.parse,U=H.seriesTypes.line;W=V.extend;var z=V.merge,I=V.objectEach,E=V.pick;return V=function(M){function P(){var y=M!==null&&M.apply(this,arguments)||this;return y.data=void 0,y.options=void 0,y.points=void 0,y}return $(P,M),P.prototype.drawGraph=function(){this.areaPath=[],M.prototype.drawGraph.apply(this);var y=this,h=this.areaPath,f=this.options,m=[["area","highcharts-area",this.color,f.fillColor]];this.zones.forEach(function(u,v){m.push(["zone-area-"+v,"highcharts-area highcharts-zone-area-"+v+" "+u.className,u.color||y.color,u.fillColor||f.fillColor])}),m.forEach(function(u){var v=u[0],w={},S=y[v],x=S?"animate":"attr";S?(S.endX=y.preventGraphAnimation?null:h.xMap,S.animate({d:h})):(w.zIndex=0,(S=y[v]=y.chart.renderer.path(h).addClass(u[1]).add(y.group)).isArea=!0),y.chart.styledMode||(w.fill=E(u[3],Z(u[2]).setOpacity(E(f.fillOpacity,.75)).get())),S[x](w),S.startX=h.xMap,S.shiftUnit=f.step?2:1})},P.prototype.getGraphPath=function(y){var h=U.prototype.getGraphPath,f=this.options,m=f.stacking,u=this.yAxis,v=[],w=[],S=this.index,x=u.stacking.stacks[this.stackKey],c=f.threshold,g=Math.round(u.getThreshold(f.threshold));f=E(f.connectNulls,m==="percent");var r=function(s,n,l){var b=y[s];s=m&&x[b.x].points[S];var k=b[l+"Null"]||0;if(l=b[l+"Cliff"]||0,b=!0,l||k){var D=(k?s[0]:s[1])+l,p=s[0]+l;b=!!k}else!m&&y[n]&&y[n].isNull&&(D=p=c);D!==void 0&&(w.push({plotX:o,plotY:D===null?g:u.getThreshold(D),isNull:b,isCliff:!0}),v.push({plotX:o,plotY:p===null?g:u.getThreshold(p),doCurve:!1}))};y=y||this.points,m&&(y=this.getStackPoints(y));for(var a=0,t=y.length;a<t;++a){m||(y[a].leftCliff=y[a].rightCliff=y[a].leftNull=y[a].rightNull=void 0);var i=y[a].isNull,o=E(y[a].rectPlotX,y[a].plotX),e=m?E(y[a].yBottom,g):g;i&&!f||(f||r(a,a-1,"left"),i&&!m&&f||(w.push(y[a]),v.push({x:a,plotX:o,plotY:e})),f||r(a,a+1,"right"))}return r=h.call(this,w,!0,!0),v.reversed=!0,(e=(i=h.call(this,v,!0,!0))[0])&&e[0]==="M"&&(i[0]=["L",e[1],e[2]]),(i=r.concat(i)).length&&i.push(["Z"]),h=h.call(this,w,!1,f),i.xMap=r.xMap,this.areaPath=i,h},P.prototype.getStackPoints=function(y){var h=this,f=[],m=[],u=this.xAxis,v=this.yAxis,w=v.stacking.stacks[this.stackKey],S={},x=v.series,c=x.length,g=v.options.reversedStacks?1:-1,r=x.indexOf(h);if(y=y||this.points,this.options.stacking){for(var a=0;a<y.length;a++)y[a].leftNull=y[a].rightNull=void 0,S[y[a].x]=y[a];I(w,function(i,o){i.total!==null&&m.push(o)}),m.sort(function(i,o){return i-o});var t=x.map(function(i){return i.visible});m.forEach(function(i,o){var e,s,n=0;if(S[i]&&!S[i].isNull)f.push(S[i]),[-1,1].forEach(function(b){var k=b===1?"rightNull":"leftNull",D=w[m[o+b]],p=0;if(D)for(var C=r;0<=C&&C<c;){var A=x[C].index;(e=D.points[A])||(A===h.index?S[i][k]=!0:t[C]&&(s=w[i].points[A])&&(p-=s[1]-s[0])),C+=g}S[i][b===1?"rightCliff":"leftCliff"]=p});else{for(var l=r;0<=l&&l<c;){if(e=w[i].points[x[l].index]){n=e[1];break}l+=g}n=E(n,0),n=v.translate(n,0,1,0,1),f.push({isNull:!0,plotX:u.translate(i,0,0,0,1),x:i,plotY:n,yBottom:n})}})}return f},P.defaultOptions=z(U.defaultOptions,{threshold:0}),P}(U),W(V.prototype,{singleStacks:!1,drawLegendSymbol:R.drawRectangle}),H.registerSeriesType("area",V),V}),B(it,"Series/Spline/SplineSeries.js",[it["Core/Series/SeriesRegistry.js"],it["Core/Utilities.js"]],function(W,R){var H=this&&this.__extends||function(){var U=function(z,I){return(U=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(E,M){E.__proto__=M}||function(E,M){for(var P in M)M.hasOwnProperty(P)&&(E[P]=M[P])})(z,I)};return function(z,I){function E(){this.constructor=z}U(z,I),z.prototype=I===null?Object.create(I):(E.prototype=I.prototype,new E)}}(),V=W.seriesTypes.line,$=R.merge,Z=R.pick;return R=function(U){function z(){var I=U!==null&&U.apply(this,arguments)||this;return I.data=void 0,I.options=void 0,I.points=void 0,I}return H(z,U),z.prototype.getPointSpline=function(I,E,M){var P=E.plotX||0,y=E.plotY||0,h=I[M-1];if(M=I[M+1],h&&!h.isNull&&h.doCurve!==!1&&!E.isCliff&&M&&!M.isNull&&M.doCurve!==!1&&!E.isCliff){I=h.plotY||0;var f=M.plotX||0;M=M.plotY||0;var m=0,u=(1.5*P+(h.plotX||0))/2.5,v=(1.5*y+I)/2.5,w=(1.5*y+M)/2.5;(f=(1.5*P+f)/2.5)!==u&&(m=(w-v)*(f-P)/(f-u)+y-w),w+=m,(v+=m)>I&&v>y?w=2*y-(v=Math.max(I,y)):v<I&&v<y&&(w=2*y-(v=Math.min(I,y))),w>M&&w>y?v=2*y-(w=Math.max(M,y)):w<M&&w<y&&(v=2*y-(w=Math.min(M,y))),E.rightContX=f,E.rightContY=w}return E=["C",Z(h.rightContX,h.plotX,0),Z(h.rightContY,h.plotY,0),Z(u,P,0),Z(v,y,0),P,y],h.rightContX=h.rightContY=void 0,E},z.defaultOptions=$(V.defaultOptions),z}(V),W.registerSeriesType("spline",R),R}),B(it,"Series/AreaSpline/AreaSplineSeries.js",[it["Series/Spline/SplineSeries.js"],it["Core/Legend/LegendSymbol.js"],it["Core/Series/SeriesRegistry.js"],it["Core/Utilities.js"]],function(W,R,H,V){var $=this&&this.__extends||function(){var E=function(M,P){return E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(y,h){y.__proto__=h}||function(y,h){for(var f in h)h.hasOwnProperty(f)&&(y[f]=h[f])},E(M,P)};return function(M,P){function y(){this.constructor=M}E(M,P),M.prototype=P===null?Object.create(P):(y.prototype=P.prototype,new y)}}(),Z=H.seriesTypes,U=Z.area;Z=Z.area.prototype;var z=V.extend,I=V.merge;return V=function(E){function M(){var P=E!==null&&E.apply(this,arguments)||this;return P.data=void 0,P.points=void 0,P.options=void 0,P}return $(M,E),M.defaultOptions=I(W.defaultOptions,U.defaultOptions),M}(W),z(V.prototype,{getGraphPath:Z.getGraphPath,getStackPoints:Z.getStackPoints,drawGraph:Z.drawGraph,drawLegendSymbol:R.drawRectangle}),H.registerSeriesType("areaspline",V),V}),B(it,"Series/Column/ColumnSeriesDefaults.js",[],function(){return{borderRadius:0,centerInCategory:!1,groupPadding:.2,marker:null,pointPadding:.1,minPointLength:0,cropThreshold:50,pointRange:null,states:{hover:{halo:!1,brightness:.1},select:{color:"#cccccc",borderColor:"#000000"}},dataLabels:{align:void 0,verticalAlign:void 0,y:void 0},startFromThreshold:!0,stickyTracking:!1,tooltip:{distance:6},threshold:0,borderColor:"#ffffff"}}),B(it,"Series/Column/ColumnSeries.js",[it["Core/Animation/AnimationUtilities.js"],it["Core/Color/Color.js"],it["Series/Column/ColumnSeriesDefaults.js"],it["Core/Globals.js"],it["Core/Legend/LegendSymbol.js"],it["Core/Series/Series.js"],it["Core/Series/SeriesRegistry.js"],it["Core/Utilities.js"]],function(W,R,H,V,$,Z,U,z){var I=this&&this.__extends||function(){var c=function(g,r){return c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,t){a.__proto__=t}||function(a,t){for(var i in t)t.hasOwnProperty(i)&&(a[i]=t[i])},c(g,r)};return function(g,r){function a(){this.constructor=g}c(g,r),g.prototype=r===null?Object.create(r):(a.prototype=r.prototype,new a)}}(),E=W.animObject,M=R.parse,P=V.hasTouch;W=V.noop;var y=z.clamp,h=z.defined,f=z.extend,m=z.fireEvent,u=z.isArray,v=z.isNumber,w=z.merge,S=z.pick,x=z.objectEach;return z=function(c){function g(){var r=c!==null&&c.apply(this,arguments)||this;return r.borderWidth=void 0,r.data=void 0,r.group=void 0,r.options=void 0,r.points=void 0,r}return I(g,c),g.prototype.animate=function(r){var a=this,t=this.yAxis,i=a.options,o=this.chart.inverted,e={},s=o?"translateX":"translateY";if(r)e.scaleY=.001,r=y(t.toPixels(i.threshold),t.pos,t.pos+t.len),o?e.translateX=r-t.len:e.translateY=r,a.clipBox&&a.setClip(),a.group.attr(e);else{var n=Number(a.group.attr(s));a.group.animate({scaleY:1},f(E(a.options.animation),{step:function(l,b){a.group&&(e[s]=n+b.pos*(t.pos-n),a.group.attr(e))}}))}},g.prototype.init=function(r,a){c.prototype.init.apply(this,arguments);var t=this;(r=t.chart).hasRendered&&r.series.forEach(function(i){i.type===t.type&&(i.isDirty=!0)})},g.prototype.getColumnMetrics=function(){var r=this,a=r.options,t=r.xAxis,i=r.yAxis,o=t.options.reversedStacks;o=t.reversed&&!o||!t.reversed&&o;var e,s={},n=0;a.grouping===!1?n=1:r.chart.series.forEach(function(D){var p=D.yAxis,C=D.options;if(D.type===r.type&&(D.visible||!r.chart.options.chart.ignoreHiddenSeries)&&i.len===p.len&&i.pos===p.pos){if(C.stacking&&C.stacking!=="group"){e=D.stackKey,s[e]===void 0&&(s[e]=n++);var A=s[e]}else C.grouping!==!1&&(A=n++);D.columnIndex=A}});var l=Math.min(Math.abs(t.transA)*(t.ordinal&&t.ordinal.slope||a.pointRange||t.closestPointRange||t.tickInterval||1),t.len),b=l*a.groupPadding,k=(l-2*b)/(n||1);return a=Math.min(a.maxPointWidth||t.len,S(a.pointWidth,k*(1-2*a.pointPadding))),r.columnMetrics={width:a,offset:(k-a)/2+(b+((r.columnIndex||0)+(o?1:0))*k-l/2)*(o?-1:1),paddedWidth:k,columnCount:n},r.columnMetrics},g.prototype.crispCol=function(r,a,t,i){var o=this.chart,e=this.borderWidth,s=-(e%2?.5:0);return e=e%2?.5:1,o.inverted&&o.renderer.isVML&&(e+=1),this.options.crisp&&(t=Math.round(r+t)+s,t-=r=Math.round(r)+s),i=Math.round(a+i)+e,s=.5>=Math.abs(a)&&.5<i,i-=a=Math.round(a)+e,s&&i&&(--a,i+=1),{x:r,y:a,width:t,height:i}},g.prototype.adjustForMissingColumns=function(r,a,t,i){var o=this,e=this.options.stacking;if(!t.isNull&&1<i.columnCount){var s=this.yAxis.options.reversedStacks,n=0,l=s?0:-i.columnCount;x(this.yAxis.stacking&&this.yAxis.stacking.stacks,function(b){if(typeof t.x=="number"){var k=b[t.x.toString()];k&&(b=k.points[o.index],e?(b&&(n=l),k.hasValidPoints&&(s?l++:l--)):u(b)&&(b=Object.keys(k.points).filter(function(D){return!D.match(",")&&k.points[D]&&1<k.points[D].length}).map(parseFloat).sort(function(D,p){return p-D}),n=b.indexOf(o.index),l=b.length))}}),r=(t.plotX||0)+((l-1)*i.paddedWidth+a)/2-a-n*i.paddedWidth}return r},g.prototype.translate=function(){var r=this,a=r.chart,t=r.options,i=r.dense=2>r.closestPointRange*r.xAxis.transA;i=r.borderWidth=S(t.borderWidth,i?0:1);var o=r.xAxis,e=r.yAxis,s=t.threshold,n=r.translatedThreshold=e.getThreshold(s),l=S(t.minPointLength,5),b=r.getColumnMetrics(),k=b.width,D=r.pointXOffset=b.offset,p=r.dataMin,C=r.dataMax,A=r.barW=Math.max(k,1+2*i);a.inverted&&(n-=.5),t.pointPadding&&(A=Math.ceil(A)),Z.prototype.translate.apply(r),r.points.forEach(function(N){var _=S(N.yBottom,n),L=999+Math.abs(_),O=N.plotX||0;L=y(N.plotY,-L,e.len+L);var j=Math.min(L,_),Y=Math.max(L,_)-j,X=k,G=O+D,q=A;l&&Math.abs(Y)<l&&(Y=l,O=!e.reversed&&!N.negative||e.reversed&&N.negative,v(s)&&v(C)&&N.y===s&&C<=s&&(e.min||0)<s&&(p!==C||(e.max||0)<=s)&&(O=!O),j=Math.abs(j-n)>l?_-l:n-(O?l:0)),h(N.options.pointWidth)&&(X=q=Math.ceil(N.options.pointWidth),G-=Math.round((X-k)/2)),t.centerInCategory&&(G=r.adjustForMissingColumns(G,X,N,b)),N.barX=G,N.pointWidth=X,N.tooltipPos=a.inverted?[y(e.len+e.pos-a.plotLeft-L,e.pos-a.plotLeft,e.len+e.pos-a.plotLeft),o.len+o.pos-a.plotTop-G-q/2,Y]:[o.left-a.plotLeft+G+q/2,y(L+e.pos-a.plotTop,e.pos-a.plotTop,e.len+e.pos-a.plotTop),Y],N.shapeType=r.pointClass.prototype.shapeType||"rect",N.shapeArgs=r.crispCol.apply(r,N.isNull?[G,n,q,0]:[G,j,q,Y])})},g.prototype.drawGraph=function(){this.group[this.dense?"addClass":"removeClass"]("highcharts-dense-data")},g.prototype.pointAttribs=function(r,a){var t=this.options,i=this.pointAttrToOptions||{},o=i.stroke||"borderColor",e=i["stroke-width"]||"borderWidth",s=r&&r.color||this.color,n=r&&r[o]||t[o]||s;i=r&&r.options.dashStyle||t.dashStyle;var l=r&&r[e]||t[e]||this[e]||0,b=S(r&&r.opacity,t.opacity,1);if(r&&this.zones.length){var k=r.getZone();s=r.options.color||k&&(k.color||r.nonZonedColor)||this.color,k&&(n=k.borderColor||n,i=k.dashStyle||i,l=k.borderWidth||l)}return a&&r&&(a=(r=w(t.states[a],r.options.states&&r.options.states[a]||{})).brightness,s=r.color||a!==void 0&&M(s).brighten(r.brightness).get()||s,n=r[o]||n,l=r[e]||l,i=r.dashStyle||i,b=S(r.opacity,b)),o={fill:s,stroke:n,"stroke-width":l,opacity:b},i&&(o.dashstyle=i),o},g.prototype.drawPoints=function(r){r===void 0&&(r=this.points);var a,t=this,i=this.chart,o=t.options,e=i.renderer,s=o.animationLimit||250;r.forEach(function(n){var l=n.graphic,b=!!l,k=l&&i.pointCount<s?"animate":"attr";v(n.plotY)&&n.y!==null?(a=n.shapeArgs,l&&n.hasNewShapeType()&&(l=l.destroy()),t.enabledDataSorting&&(n.startXPos=t.xAxis.reversed?-(a&&a.width||0):t.xAxis.width),l||(n.graphic=l=e[n.shapeType](a).add(n.group||t.group))&&t.enabledDataSorting&&i.hasRendered&&i.pointCount<s&&(l.attr({x:n.startXPos}),b=!0,k="animate"),l&&b&&l[k](w(a)),o.borderRadius&&l[k]({r:o.borderRadius}),i.styledMode||l[k](t.pointAttribs(n,n.selected&&"select")).shadow(n.allowShadow!==!1&&o.shadow,null,o.stacking&&!o.borderRadius),l&&(l.addClass(n.getClassName(),!0),l.attr({visibility:n.visible?"inherit":"hidden"}))):l&&(n.graphic=l.destroy())})},g.prototype.drawTracker=function(r){r===void 0&&(r=this.points);var a,t=this,i=t.chart,o=i.pointer,e=function(s){var n=o.getPointFromEvent(s);n!==void 0&&(o.isDirectTouch=!0,n.onMouseOver(s))};r.forEach(function(s){a=u(s.dataLabels)?s.dataLabels:s.dataLabel?[s.dataLabel]:[],s.graphic&&(s.graphic.element.point=s),a.forEach(function(n){n.div?n.div.point=s:n.element.point=s})}),t._hasTracking||(t.trackerGroups.forEach(function(s){t[s]&&(t[s].addClass("highcharts-tracker").on("mouseover",e).on("mouseout",function(n){o.onTrackerMouseOut(n)}),P&&t[s].on("touchstart",e),!i.styledMode&&t.options.cursor&&t[s].css({cursor:t.options.cursor}))}),t._hasTracking=!0),m(this,"afterDrawTracker")},g.prototype.remove=function(){var r=this,a=r.chart;a.hasRendered&&a.series.forEach(function(t){t.type===r.type&&(t.isDirty=!0)}),Z.prototype.remove.apply(r,arguments)},g.defaultOptions=w(Z.defaultOptions,H),g}(Z),f(z.prototype,{cropShoulder:0,directTouch:!0,drawLegendSymbol:$.drawRectangle,getSymbol:W,negStacks:!0,trackerGroups:["group","dataLabelsGroup"]}),U.registerSeriesType("column",z),z}),B(it,"Core/Series/DataLabel.js",[it["Core/Animation/AnimationUtilities.js"],it["Core/FormatUtilities.js"],it["Core/Utilities.js"]],function(W,R,H){var V,$=W.getDeferredAnimation,Z=R.format,U=H.defined,z=H.extend,I=H.fireEvent,E=H.isArray,M=H.isString,P=H.merge,y=H.objectEach,h=H.pick,f=H.splat;return function(m){function u(g,r,a,t,i){var o=this,e=this.chart,s=this.isCartesian&&e.inverted,n=this.enabledDataSorting,l=g.plotX,b=g.plotY,k=a.rotation,D=a.align,p=U(l)&&U(b)&&e.isInsidePlot(l,Math.round(b),{inverted:s,paneCoordinates:!0,series:o});b=function(_){n&&o.xAxis&&!C&&o.setDataLabelStartPos(g,r,i,p,_)};var C=h(a.overflow,n?"none":"justify")==="justify";if(l=this.visible&&g.visible!==!1&&U(l)&&(g.series.forceDL||n&&!C||p||h(a.inside,!!this.options.stacking)&&t&&e.isInsidePlot(l,s?t.x+1:t.y+t.height-1,{inverted:s,paneCoordinates:!0,series:o})),s=g.pos(),l&&s){k&&r.attr({align:D}),D=r.getBBox(!0);var A=[0,0],N=e.renderer.fontMetrics(e.styledMode?void 0:a.style.fontSize,r).b;t=z({x:s[0],y:Math.round(s[1]),width:0,height:0},t),z(a,{width:D.width,height:D.height}),k?(C=!1,A=e.renderer.rotCorr(N,k),N={x:t.x+(a.x||0)+t.width/2+A.x,y:t.y+(a.y||0)+{top:0,middle:.5,bottom:1}[a.verticalAlign]*t.height},A=[D.x-Number(r.attr("x")),D.y-Number(r.attr("y"))],b(N),r[i?"attr":"animate"](N)):(b(t),r.align(a,void 0,t),N=r.alignAttr),C&&0<=t.height?this.justifyDataLabel(r,a,N,D,t,i):h(a.crop,!0)&&(t=N.x,b=N.y,t+=A[0],b+=A[1],l=e.isInsidePlot(t,b,{paneCoordinates:!0,series:o})&&e.isInsidePlot(t+D.width,b+D.height,{paneCoordinates:!0,series:o})),a.shape&&!k&&r[i?"attr":"animate"]({anchorX:s[0],anchorY:s[1]})}i&&n&&(r.placed=!1),l||n&&!C?r.show():(r.hide(),r.placed=!1)}function v(g){g===void 0&&(g=this.points);var r=this,a=r.chart,t=r.options,i=r.hasRendered||0,o=a.renderer,e=a.options.chart,s=e.backgroundColor;e=e.plotBackgroundColor;var n=o.getContrast(M(e)&&e||M(s)&&s||"#000000"),l=t.dataLabels;if(s=l.animation,s=l.defer?$(a,s,r):{defer:0,duration:0},l=S(S(a.options.plotOptions&&a.options.plotOptions.series&&a.options.plotOptions.series.dataLabels,a.options.plotOptions&&a.options.plotOptions[r.type]&&a.options.plotOptions[r.type].dataLabels),l),I(this,"drawDataLabels"),E(l)||l.enabled||r._hasPointLabels){var b=r.plotGroup("dataLabelsGroup","data-labels",i?"inherit":"hidden",l.zIndex||6);b.attr({opacity:+i}),!i&&(i=r.dataLabelsGroup)&&(r.visible&&b.show(),i[t.animation?"animate":"attr"]({opacity:1},s)),g.forEach(function(k){f(S(l,k.dlOptions||k.options&&k.options.dataLabels)).forEach(function(D,p){var C=D.enabled&&(!k.isNull||k.dataLabelOnNull)&&function(q,Q){var J=Q.filter;return!J||(Q=J.operator,q=q[J.property],J=J.value,Q===">"&&q>J||Q==="<"&&q<J||Q===">="&&q>=J||Q==="<="&&q<=J||Q==="=="&&q==J||Q==="==="&&q===J)}(k,D),A=k.connectors?k.connectors[p]:k.connector,N=k.dataLabels?k.dataLabels[p]:k.dataLabel,_=!N,L=h(D.distance,k.labelDistance);if(C){var O=k.getLabelConfig(),j=h(D[k.formatPrefix+"Format"],D.format);O=U(j)?Z(j,O,a):(D[k.formatPrefix+"Formatter"]||D.formatter).call(O,D),j=D.style;var Y=D.rotation;a.styledMode||(j.color=h(D.color,j.color,r.color,"#000000"),j.color==="contrast"?(k.contrastColor=o.getContrast(k.color||r.color),j.color=!U(L)&&D.inside||0>L||t.stacking?k.contrastColor:n):delete k.contrastColor,t.cursor&&(j.cursor=t.cursor));var X={r:D.borderRadius||0,rotation:Y,padding:D.padding,zIndex:1};if(!a.styledMode){L=D.backgroundColor;var G=D.borderColor;X.fill=L==="auto"?k.color:L,X.stroke=G==="auto"?k.color:G,X["stroke-width"]=D.borderWidth}y(X,function(q,Q){q===void 0&&delete X[Q]})}!N||C&&U(O)&&!!N.div==!!D.useHTML&&(N.rotation&&D.rotation||N.rotation===D.rotation)||(_=!0,k.dataLabel=N=k.dataLabel&&k.dataLabel.destroy(),k.dataLabels&&(k.dataLabels.length===1?delete k.dataLabels:delete k.dataLabels[p]),p||delete k.dataLabel,A&&(k.connector=k.connector.destroy(),k.connectors&&(k.connectors.length===1?delete k.connectors:delete k.connectors[p]))),C&&U(O)?(N?X.text=O:(k.dataLabels=k.dataLabels||[],N=k.dataLabels[p]=Y?o.text(O,0,0,D.useHTML).addClass("highcharts-data-label"):o.label(O,0,0,D.shape,null,null,D.useHTML,null,"data-label"),p||(k.dataLabel=N),N.addClass(" highcharts-data-label-color-"+k.colorIndex+" "+(D.className||"")+(D.useHTML?" highcharts-tracker":""))),N.options=D,N.attr(X),a.styledMode||N.css(j).shadow(D.shadow),(p=D[k.formatPrefix+"TextPath"]||D.textPath)&&!D.useHTML&&(N.setTextPath(k.getDataLabelPath&&k.getDataLabelPath(N)||k.graphic,p),k.dataLabelPath&&!p.enabled&&(k.dataLabelPath=k.dataLabelPath.destroy())),N.added||N.add(b),r.alignDataLabel(k,N,D,null,_)):N&&N.hide()})})}I(this,"afterDrawDataLabels")}function w(g,r,a,t,i,o){var e=this.chart,s=r.align,n=r.verticalAlign,l=g.box?0:g.padding||0,b=r.x;b=b===void 0?0:b;var k=r.y;k=k===void 0?0:k;var D=(a.x||0)+l;if(0>D){s==="right"&&0<=b?(r.align="left",r.inside=!0):b-=D;var p=!0}return(D=(a.x||0)+t.width-l)>e.plotWidth&&(s==="left"&&0>=b?(r.align="right",r.inside=!0):b+=e.plotWidth-D,p=!0),0>(D=a.y+l)&&(n==="bottom"&&0<=k?(r.verticalAlign="top",r.inside=!0):k-=D,p=!0),(D=(a.y||0)+t.height-l)>e.plotHeight&&(n==="top"&&0>=k?(r.verticalAlign="bottom",r.inside=!0):k+=e.plotHeight-D,p=!0),p&&(r.x=b,r.y=k,g.placed=!o,g.align(r,void 0,i)),p}function S(g,r){var a,t=[];if(E(g)&&!E(r))t=g.map(function(i){return P(i,r)});else if(E(r)&&!E(g))t=r.map(function(i){return P(g,i)});else if(E(g)||E(r))for(a=Math.max(g.length,r.length);a--;)t[a]=P(g[a],r[a]);else t=P(g,r);return t}function x(g,r,a,t,i){var o=this.chart,e=o.inverted,s=this.xAxis,n=s.reversed,l=e?r.height/2:r.width/2;g=(g=g.pointWidth)?g/2:0,r.startXPos=e?i.x:n?-l-g:s.width-l+g,r.startYPos=e?n?this.yAxis.height-l+g:-l-g:i.y,t?r.visibility==="hidden"&&(r.show(),r.attr({opacity:0}).animate({opacity:1})):r.attr({opacity:1}).animate({opacity:0},void 0,r.hide),o.hasRendered&&(a&&r.attr({x:r.startXPos,y:r.startYPos}),r.placed=!0)}var c=[];m.compose=function(g){if(c.indexOf(g)===-1){var r=g.prototype;c.push(g),r.alignDataLabel=u,r.drawDataLabels=v,r.justifyDataLabel=w,r.setDataLabelStartPos=x}}}(V||(V={})),V}),B(it,"Series/Column/ColumnDataLabel.js",[it["Core/Series/DataLabel.js"],it["Core/Series/SeriesRegistry.js"],it["Core/Utilities.js"]],function(W,R,H){var V,$=R.series,Z=H.merge,U=H.pick;return function(z){function I(M,P,y,h,f){var m=this.chart.inverted,u=M.series,v=(u.xAxis?u.xAxis.len:this.chart.plotSizeX)||0;u=(u.yAxis?u.yAxis.len:this.chart.plotSizeY)||0;var w=M.dlBox||M.shapeArgs,S=U(M.below,M.plotY>U(this.translatedThreshold,u)),x=U(y.inside,!!this.options.stacking);w&&(0>(h=Z(w)).y&&(h.height+=h.y,h.y=0),0<(w=h.y+h.height-u)&&w<h.height&&(h.height-=w),m&&(h={x:u-h.y-h.height,y:v-h.x-h.width,width:h.height,height:h.width}),x||(m?(h.x+=S?0:h.width,h.width=0):(h.y+=S?h.height:0,h.height=0))),y.align=U(y.align,!m||x?"center":S?"right":"left"),y.verticalAlign=U(y.verticalAlign,m||x?"middle":S?"top":"bottom"),$.prototype.alignDataLabel.call(this,M,P,y,h,f),y.inside&&M.contrastColor&&P.css({color:M.contrastColor})}var E=[];z.compose=function(M){W.compose($),E.indexOf(M)===-1&&(E.push(M),M.prototype.alignDataLabel=I)}}(V||(V={})),V}),B(it,"Series/Bar/BarSeries.js",[it["Series/Column/ColumnSeries.js"],it["Core/Series/SeriesRegistry.js"],it["Core/Utilities.js"]],function(W,R,H){var V=this&&this.__extends||function(){var U=function(z,I){return(U=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(E,M){E.__proto__=M}||function(E,M){for(var P in M)M.hasOwnProperty(P)&&(E[P]=M[P])})(z,I)};return function(z,I){function E(){this.constructor=z}U(z,I),z.prototype=I===null?Object.create(I):(E.prototype=I.prototype,new E)}}(),$=H.extend,Z=H.merge;return H=function(U){function z(){var I=U!==null&&U.apply(this,arguments)||this;return I.data=void 0,I.options=void 0,I.points=void 0,I}return V(z,U),z.defaultOptions=Z(W.defaultOptions,{}),z}(W),$(H.prototype,{inverted:!0}),R.registerSeriesType("bar",H),H}),B(it,"Series/Scatter/ScatterSeriesDefaults.js",[],function(){return{lineWidth:0,findNearestPointBy:"xy",jitter:{x:0,y:0},marker:{enabled:!0},tooltip:{headerFormat:'<span style="color:{point.color}">●</span> <span style="font-size: 10px"> {series.name}</span><br/>',pointFormat:"x: <b>{point.x}</b><br/>y: <b>{point.y}</b><br/>"}}}),B(it,"Series/Scatter/ScatterSeries.js",[it["Series/Scatter/ScatterSeriesDefaults.js"],it["Core/Series/SeriesRegistry.js"],it["Core/Utilities.js"]],function(W,R,H){var V=this&&this.__extends||function(){var E=function(M,P){return E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(y,h){y.__proto__=h}||function(y,h){for(var f in h)h.hasOwnProperty(f)&&(y[f]=h[f])},E(M,P)};return function(M,P){function y(){this.constructor=M}E(M,P),M.prototype=P===null?Object.create(P):(y.prototype=P.prototype,new y)}}(),$=R.seriesTypes,Z=$.column,U=$.line;$=H.addEvent;var z=H.extend,I=H.merge;return H=function(E){function M(){var P=E!==null&&E.apply(this,arguments)||this;return P.data=void 0,P.options=void 0,P.points=void 0,P}return V(M,E),M.prototype.applyJitter=function(){var P=this,y=this.options.jitter,h=this.points.length;y&&this.points.forEach(function(f,m){["x","y"].forEach(function(u,v){var w="plot"+u.toUpperCase();if(y[u]&&!f.isNull){var S=P[u+"Axis"],x=y[u]*S.transA;if(S&&!S.isLog){var c=Math.max(0,f[w]-x);S=Math.min(S.len,f[w]+x),v=1e4*Math.sin(m+v*h),f[w]=c+(S-c)*(v-Math.floor(v)),u==="x"&&(f.clientX=f.plotX)}}})})},M.prototype.drawGraph=function(){this.options.lineWidth?E.prototype.drawGraph.call(this):this.graph&&(this.graph=this.graph.destroy())},M.defaultOptions=I(U.defaultOptions,W),M}(U),z(H.prototype,{drawTracker:Z.prototype.drawTracker,sorted:!1,requireSorting:!1,noSharedTooltip:!0,trackerGroups:["group","markerGroup","dataLabelsGroup"],takeOrdinalPosition:!1}),$(H,"afterTranslate",function(){this.applyJitter()}),R.registerSeriesType("scatter",H),H}),B(it,"Series/CenteredUtilities.js",[it["Core/Globals.js"],it["Core/Series/Series.js"],it["Core/Utilities.js"]],function(W,R,H){var V,$=W.deg2rad,Z=H.fireEvent,U=H.isNumber,z=H.pick,I=H.relativeLength;return function(E){E.getCenter=function(){var M=this.options,P=this.chart,y=2*(M.slicedOffset||0),h=P.plotWidth-2*y,f=P.plotHeight-2*y,m=M.center,u=Math.min(h,f),v=M.thickness,w=M.size,S=M.innerSize||0;for(typeof w=="string"&&(w=parseFloat(w)),typeof S=="string"&&(S=parseFloat(S)),M=[z(m[0],"50%"),z(m[1],"50%"),z(w&&0>w?void 0:M.size,"100%"),z(S&&0>S?void 0:M.innerSize||0,"0%")],!P.angular||this instanceof R||(M[3]=0),m=0;4>m;++m)w=M[m],P=2>m||m===2&&/%$/.test(w),M[m]=I(w,[h,f,u,M[2]][m])+(P?y:0);return M[3]>M[2]&&(M[3]=M[2]),U(v)&&2*v<M[2]&&0<v&&(M[3]=M[2]-2*v),Z(this,"afterGetCenter",{positions:M}),M},E.getStartAndEndRadians=function(M,P){return M=U(M)?M:0,P=U(P)&&P>M&&360>P-M?P:M+360,{start:$*(M+-90),end:$*(P+-90)}}}(V||(V={})),V}),B(it,"Series/Pie/PiePoint.js",[it["Core/Animation/AnimationUtilities.js"],it["Core/Series/Point.js"],it["Core/Utilities.js"]],function(W,R,H){var V=this&&this.__extends||function(){var M=function(P,y){return M=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(h,f){h.__proto__=f}||function(h,f){for(var m in f)f.hasOwnProperty(m)&&(h[m]=f[m])},M(P,y)};return function(P,y){function h(){this.constructor=P}M(P,y),P.prototype=y===null?Object.create(y):(h.prototype=y.prototype,new h)}}(),$=W.setAnimation,Z=H.addEvent,U=H.defined;W=H.extend;var z=H.isNumber,I=H.pick,E=H.relativeLength;return R=function(M){function P(){var y=M!==null&&M.apply(this,arguments)||this;return y.labelDistance=void 0,y.options=void 0,y.series=void 0,y}return V(P,M),P.prototype.getConnectorPath=function(){var y=this.labelPosition,h=this.series.options.dataLabels,f=this.connectorShapes,m=h.connectorShape;return f[m]&&(m=f[m]),m.call(this,{x:y.final.x,y:y.final.y,alignment:y.alignment},y.connectorPosition,h)},P.prototype.getTranslate=function(){return this.sliced?this.slicedTranslation:{translateX:0,translateY:0}},P.prototype.haloPath=function(y){var h=this.shapeArgs;return this.sliced||!this.visible?[]:this.series.chart.renderer.symbols.arc(h.x,h.y,h.r+y,h.r+y,{innerR:h.r-1,start:h.start,end:h.end})},P.prototype.init=function(){var y=this;M.prototype.init.apply(this,arguments),this.name=I(this.name,"Slice");var h=function(f){y.slice(f.type==="select")};return Z(this,"select",h),Z(this,"unselect",h),this},P.prototype.isValid=function(){return z(this.y)&&0<=this.y},P.prototype.setVisible=function(y,h){var f=this,m=this.series,u=m.chart,v=m.options.ignoreHiddenPoint;h=I(h,v),y!==this.visible&&(this.visible=this.options.visible=y=y===void 0?!this.visible:y,m.options.data[m.data.indexOf(this)]=this.options,["graphic","dataLabel","connector","shadowGroup"].forEach(function(w){f[w]&&f[w][y?"show":"hide"](y)}),this.legendItem&&u.legend.colorizeItem(this,y),y||this.state!=="hover"||this.setState(""),v&&(m.isDirty=!0),h&&u.redraw())},P.prototype.slice=function(y,h,f){var m=this.series;$(f,m.chart),I(h,!0),this.sliced=this.options.sliced=U(y)?y:!this.sliced,m.options.data[m.data.indexOf(this)]=this.options,this.graphic&&this.graphic.animate(this.getTranslate()),this.shadowGroup&&this.shadowGroup.animate(this.getTranslate())},P}(R),W(R.prototype,{connectorShapes:{fixedOffset:function(M,P,y){var h=P.breakAt;return P=P.touchingSliceAt,[["M",M.x,M.y],y.softConnector?["C",M.x+(M.alignment==="left"?-5:5),M.y,2*h.x-P.x,2*h.y-P.y,h.x,h.y]:["L",h.x,h.y],["L",P.x,P.y]]},straight:function(M,P){return P=P.touchingSliceAt,[["M",M.x,M.y],["L",P.x,P.y]]},crookedLine:function(M,P,y){P=P.touchingSliceAt;var h=this.series,f=h.center[0],m=h.chart.plotWidth,u=h.chart.plotLeft;h=M.alignment;var v=this.shapeArgs.r;return y=E(y.crookDistance,1),y=["L",m=h==="left"?f+v+(m+u-f-v)*(1-y):u+(f-v)*y,M.y],f=!0,(h==="left"?m>M.x||m<P.x:m<M.x||m>P.x)&&(f=!1),M=[["M",M.x,M.y]],f&&M.push(y),M.push(["L",P.x,P.y]),M}}}),R}),B(it,"Series/Pie/PieSeriesDefaults.js",[],function(){return{center:[null,null],clip:!1,colorByPoint:!0,dataLabels:{allowOverlap:!0,connectorPadding:5,connectorShape:"fixedOffset",crookDistance:"70%",distance:30,enabled:!0,formatter:function(){return this.point.isNull?void 0:this.point.name},softConnector:!0,x:0},fillColor:void 0,ignoreHiddenPoint:!0,inactiveOtherPoints:!0,legendType:"point",marker:null,size:null,showInLegend:!1,slicedOffset:10,stickyTracking:!1,tooltip:{followPointer:!0},borderColor:"#ffffff",borderWidth:1,lineWidth:void 0,states:{hover:{brightness:.1}}}}),B(it,"Series/Pie/PieSeries.js",[it["Series/CenteredUtilities.js"],it["Series/Column/ColumnSeries.js"],it["Core/Globals.js"],it["Core/Legend/LegendSymbol.js"],it["Series/Pie/PiePoint.js"],it["Series/Pie/PieSeriesDefaults.js"],it["Core/Series/Series.js"],it["Core/Series/SeriesRegistry.js"],it["Core/Renderer/SVG/Symbols.js"],it["Core/Utilities.js"]],function(W,R,H,V,$,Z,U,z,I,E){var M=this&&this.__extends||function(){var w=function(S,x){return w=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,g){c.__proto__=g}||function(c,g){for(var r in g)g.hasOwnProperty(r)&&(c[r]=g[r])},w(S,x)};return function(S,x){function c(){this.constructor=S}w(S,x),S.prototype=x===null?Object.create(x):(c.prototype=x.prototype,new c)}}(),P=W.getStartAndEndRadians;H=H.noop;var y=E.clamp,h=E.extend,f=E.fireEvent,m=E.merge,u=E.pick,v=E.relativeLength;return E=function(w){function S(){var x=w!==null&&w.apply(this,arguments)||this;return x.center=void 0,x.data=void 0,x.maxLabelDistance=void 0,x.options=void 0,x.points=void 0,x}return M(S,w),S.prototype.animate=function(x){var c=this,g=c.points,r=c.startAngleRad;x||g.forEach(function(a){var t=a.graphic,i=a.shapeArgs;t&&i&&(t.attr({r:u(a.startR,c.center&&c.center[3]/2),start:r,end:r}),t.animate({r:i.r,start:i.start,end:i.end},c.options.animation))})},S.prototype.drawEmpty=function(){var x=this.startAngleRad,c=this.endAngleRad,g=this.options;if(this.total===0&&this.center){var r=this.center[0],a=this.center[1];this.graph||(this.graph=this.chart.renderer.arc(r,a,this.center[1]/2,0,x,c).addClass("highcharts-empty-series").add(this.group)),this.graph.attr({d:I.arc(r,a,this.center[2]/2,0,{start:x,end:c,innerR:this.center[3]/2})}),this.chart.styledMode||this.graph.attr({"stroke-width":g.borderWidth,fill:g.fillColor||"none",stroke:g.color||"#cccccc"})}else this.graph&&(this.graph=this.graph.destroy())},S.prototype.drawPoints=function(){var x=this.chart.renderer;this.points.forEach(function(c){c.graphic&&c.hasNewShapeType()&&(c.graphic=c.graphic.destroy()),c.graphic||(c.graphic=x[c.shapeType](c.shapeArgs).add(c.series.group),c.delayedRendering=!0)})},S.prototype.generatePoints=function(){w.prototype.generatePoints.call(this),this.updateTotals()},S.prototype.getX=function(x,c,g){var r=this.center,a=this.radii?this.radii[g.index]||0:r[2]/2;return x=Math.asin(y((x-r[1])/(a+g.labelDistance),-1,1)),r[0]+(c?-1:1)*Math.cos(x)*(a+g.labelDistance)+(0<g.labelDistance?(c?-1:1)*this.options.dataLabels.padding:0)},S.prototype.hasData=function(){return!!this.processedXData.length},S.prototype.redrawPoints=function(){var x,c,g,r,a=this,t=a.chart,i=t.renderer,o=a.options.shadow;this.drawEmpty(),!o||a.shadowGroup||t.styledMode||(a.shadowGroup=i.g("shadow").attr({zIndex:-1}).add(a.group)),a.points.forEach(function(e){var s={};if(c=e.graphic,!e.isNull&&c){var n=void 0;r=e.shapeArgs,x=e.getTranslate(),t.styledMode||(n=e.shadowGroup,o&&!n&&(n=e.shadowGroup=i.g("shadow").add(a.shadowGroup)),n&&n.attr(x),g=a.pointAttribs(e,e.selected&&"select")),e.delayedRendering?(c.setRadialReference(a.center).attr(r).attr(x),t.styledMode||c.attr(g).attr({"stroke-linejoin":"round"}).shadow(o,n),e.delayedRendering=!1):(c.setRadialReference(a.center),t.styledMode||m(!0,s,g),m(!0,s,r,x),c.animate(s)),c.attr({visibility:e.visible?"inherit":"hidden"}),c.addClass(e.getClassName(),!0)}else c&&(e.graphic=c.destroy())})},S.prototype.sortByAngle=function(x,c){x.sort(function(g,r){return g.angle!==void 0&&(r.angle-g.angle)*c})},S.prototype.translate=function(x){f(this,"translate"),this.generatePoints();var c=this.options,g=c.slicedOffset,r=g+(c.borderWidth||0),a=P(c.startAngle,c.endAngle),t=this.startAngleRad=a.start;a=(this.endAngleRad=a.end)-t;var i=this.points,o=c.dataLabels.distance;c=c.ignoreHiddenPoint;var e,s=i.length,n=0;for(x||(this.center=x=this.getCenter()),e=0;e<s;e++){var l=i[e],b=t+n*a;!l.isValid()||c&&!l.visible||(n+=l.percentage/100);var k=t+n*a,D={x:x[0],y:x[1],r:x[2]/2,innerR:x[3]/2,start:Math.round(1e3*b)/1e3,end:Math.round(1e3*k)/1e3};l.shapeType="arc",l.shapeArgs=D,l.labelDistance=u(l.options.dataLabels&&l.options.dataLabels.distance,o),l.labelDistance=v(l.labelDistance,D.r),this.maxLabelDistance=Math.max(this.maxLabelDistance||0,l.labelDistance),(k=(k+b)/2)>1.5*Math.PI?k-=2*Math.PI:k<-Math.PI/2&&(k+=2*Math.PI),l.slicedTranslation={translateX:Math.round(Math.cos(k)*g),translateY:Math.round(Math.sin(k)*g)},D=Math.cos(k)*x[2]/2;var p=Math.sin(k)*x[2]/2;l.tooltipPos=[x[0]+.7*D,x[1]+.7*p],l.half=k<-Math.PI/2||k>Math.PI/2?1:0,l.angle=k,b=Math.min(r,l.labelDistance/5),l.labelPosition={natural:{x:x[0]+D+Math.cos(k)*l.labelDistance,y:x[1]+p+Math.sin(k)*l.labelDistance},final:{},alignment:0>l.labelDistance?"center":l.half?"right":"left",connectorPosition:{breakAt:{x:x[0]+D+Math.cos(k)*b,y:x[1]+p+Math.sin(k)*b},touchingSliceAt:{x:x[0]+D,y:x[1]+p}}}}f(this,"afterTranslate")},S.prototype.updateTotals=function(){var x,c=this.points,g=c.length,r=this.options.ignoreHiddenPoint,a=0;for(x=0;x<g;x++){var t=c[x];!t.isValid()||r&&!t.visible||(a+=t.y)}for(this.total=a,x=0;x<g;x++)(t=c[x]).percentage=0<a&&(t.visible||!r)?t.y/a*100:0,t.total=a},S.defaultOptions=m(U.defaultOptions,Z),S}(U),h(E.prototype,{axisTypes:[],directTouch:!0,drawGraph:void 0,drawLegendSymbol:V.drawRectangle,drawTracker:R.prototype.drawTracker,getCenter:W.getCenter,getSymbol:H,isCartesian:!1,noSharedTooltip:!0,pointAttribs:R.prototype.pointAttribs,pointClass:$,requireSorting:!1,searchPoint:H,trackerGroups:["group","dataLabelsGroup"]}),z.registerSeriesType("pie",E),E}),B(it,"Series/Pie/PieDataLabel.js",[it["Core/Series/DataLabel.js"],it["Core/Globals.js"],it["Core/Renderer/RendererUtilities.js"],it["Core/Series/SeriesRegistry.js"],it["Core/Utilities.js"]],function(W,R,H,V,$){var Z,U=R.noop,z=H.distribute,I=V.series,E=$.arrayMax,M=$.clamp,P=$.defined,y=$.merge,h=$.pick,f=$.relativeLength;return function(m){function u(){var c,g,r,a,t,i,o,e,s,n,l,b,k=this,D=k.data,p=k.chart,C=k.options.dataLabels||{},A=C.connectorPadding,N=p.plotWidth,_=p.plotHeight,L=p.plotLeft,O=Math.round(p.chartWidth/3),j=k.center,Y=j[2]/2,X=j[1],G=[[],[]],q=[0,0,0,0],Q=k.dataLabelPositioners;k.visible&&(C.enabled||k._hasPointLabels)&&(D.forEach(function(J){J.dataLabel&&J.visible&&J.dataLabel.shortened&&(J.dataLabel.attr({width:"auto"}).css({width:"auto",textOverflow:"clip"}),J.dataLabel.shortened=!1)}),I.prototype.drawDataLabels.apply(k),D.forEach(function(J){J.dataLabel&&(J.visible?(G[J.half].push(J),J.dataLabel._pos=null,!P(C.style.width)&&!P(J.options.dataLabels&&J.options.dataLabels.style&&J.options.dataLabels.style.width)&&J.dataLabel.getBBox().width>O&&(J.dataLabel.css({width:Math.round(.7*O)+"px"}),J.dataLabel.shortened=!0)):(J.dataLabel=J.dataLabel.destroy(),J.dataLabels&&J.dataLabels.length===1&&delete J.dataLabels))}),G.forEach(function(J,rt){var lt,gt=J.length,mt=[];if(gt){if(k.sortByAngle(J,rt-.5),0<k.maxLabelDistance){var bt=Math.max(0,X-Y-k.maxLabelDistance),yt=Math.min(X+Y+k.maxLabelDistance,p.plotHeight);J.forEach(function(ct){0<ct.labelDistance&&ct.dataLabel&&(ct.top=Math.max(0,X-Y-ct.labelDistance),ct.bottom=Math.min(X+Y+ct.labelDistance,p.plotHeight),lt=ct.dataLabel.getBBox().height||21,ct.distributeBox={target:ct.labelPosition.natural.y-ct.top+lt/2,size:lt,rank:ct.y},mt.push(ct.distributeBox))}),z(mt,bt=yt+lt-bt,bt/5)}for(l=0;l<gt;l++){if(c=J[l],i=c.labelPosition,a=c.dataLabel,n=c.visible===!1?"hidden":"inherit",s=bt=i.natural.y,mt&&P(c.distributeBox)&&(c.distributeBox.pos===void 0?n="hidden":(o=c.distributeBox.size,s=Q.radialDistributionY(c))),delete c.positionIndex,C.justify)e=Q.justify(c,Y,j);else switch(C.alignTo){case"connectors":e=Q.alignToConnectors(J,rt,N,L);break;case"plotEdges":e=Q.alignToPlotEdges(a,rt,N,L);break;default:e=Q.radialDistributionX(k,c,s,bt)}a._attr={visibility:n,align:i.alignment},b=c.options.dataLabels||{},a._pos={x:e+h(b.x,C.x)+({left:A,right:-A}[i.alignment]||0),y:s+h(b.y,C.y)-10},i.final.x=e,i.final.y=s,h(C.crop,!0)&&(t=a.getBBox().width,bt=null,e-t<A&&rt===1?(bt=Math.round(t-e+A),q[3]=Math.max(bt,q[3])):e+t>N-A&&rt===0&&(bt=Math.round(e+t-N+A),q[1]=Math.max(bt,q[1])),0>s-o/2?q[0]=Math.max(Math.round(o/2-s),q[0]):s+o/2>_&&(q[2]=Math.max(Math.round(s+o/2-_),q[2])),a.sideOverflow=bt)}}}),E(q)===0||this.verifyDataLabelOverflow(q))&&(this.placeDataLabels(),this.points.forEach(function(J){var rt;b=y(C,J.options.dataLabels),(g=h(b.connectorWidth,1))&&(r=J.connector,(a=J.dataLabel)&&a._pos&&J.visible&&0<J.labelDistance?(n=a._attr.visibility,(rt=!r)&&(J.connector=r=p.renderer.path().addClass("highcharts-data-label-connector highcharts-color-"+J.colorIndex+(J.className?" "+J.className:"")).add(k.dataLabelsGroup),p.styledMode||r.attr({"stroke-width":g,stroke:b.connectorColor||J.color||"#666666"})),r[rt?"attr":"animate"]({d:J.getConnectorPath()}),r.attr("visibility",n)):r&&(J.connector=r.destroy()))}))}function v(){this.points.forEach(function(c){var g,r=c.dataLabel;r&&c.visible&&((g=r._pos)?(r.sideOverflow&&(r._attr.width=Math.max(r.getBBox().width-r.sideOverflow,0),r.css({width:r._attr.width+"px",textOverflow:(this.options.dataLabels.style||{}).textOverflow||"ellipsis"}),r.shortened=!0),r.attr(r._attr),r[r.moved?"animate":"attr"](g),r.moved=!0):r&&r.attr({y:-9999})),delete c.distributeBox},this)}function w(c){var g=this.center,r=this.options,a=r.center,t=r.minSize||80,i=r.size!==null;if(!i){if(a[0]!==null)var o=Math.max(g[2]-Math.max(c[1],c[3]),t);else o=Math.max(g[2]-c[1]-c[3],t),g[0]+=(c[3]-c[1])/2;a[1]!==null?o=M(o,t,g[2]-Math.max(c[0],c[2])):(o=M(o,t,g[2]-c[0]-c[2]),g[1]+=(c[0]-c[2])/2),o<g[2]?(g[2]=o,g[3]=Math.min(r.thickness?Math.max(0,o-2*r.thickness):Math.max(0,f(r.innerSize||0,o)),o),this.translate(g),this.drawDataLabels&&this.drawDataLabels()):i=!0}return i}var S=[],x={radialDistributionY:function(c){return c.top+c.distributeBox.pos},radialDistributionX:function(c,g,r,a){return c.getX(r<g.top+2||r>g.bottom-2?a:r,g.half,g)},justify:function(c,g,r){return r[0]+(c.half?-1:1)*(g+c.labelDistance)},alignToPlotEdges:function(c,g,r,a){return c=c.getBBox().width,g?c+a:r-c-a},alignToConnectors:function(c,g,r,a){var t,i=0;return c.forEach(function(o){(t=o.dataLabel.getBBox().width)>i&&(i=t)}),g?i+a:r-i-a}};m.compose=function(c){W.compose(I),S.indexOf(c)===-1&&(S.push(c),(c=c.prototype).dataLabelPositioners=x,c.alignDataLabel=U,c.drawDataLabels=u,c.placeDataLabels=v,c.verifyDataLabelOverflow=w)}}(Z||(Z={})),Z}),B(it,"Extensions/OverlappingDataLabels.js",[it["Core/Chart/Chart.js"],it["Core/Utilities.js"]],function(W,R){function H(E,M){var P=!1;if(E){var y=E.newOpacity;E.oldOpacity!==y&&(E.alignAttr&&E.placed?(E[y?"removeClass":"addClass"]("highcharts-data-label-hidden"),P=!0,E.alignAttr.opacity=y,E[E.isOld?"animate":"attr"](E.alignAttr,null,function(){M.styledMode||E.css({pointerEvents:y?"auto":"none"})}),$(M,"afterHideOverlappingLabel")):E.attr({opacity:y})),E.isOld=!0}return P}var V=R.addEvent,$=R.fireEvent,Z=R.isArray,U=R.isNumber,z=R.objectEach,I=R.pick;V(W,"render",function(){var E=this,M=[];(this.labelCollectors||[]).forEach(function(P){M=M.concat(P())}),(this.yAxis||[]).forEach(function(P){P.stacking&&P.options.stackLabels&&!P.options.stackLabels.allowOverlap&&z(P.stacking.stacks,function(y){z(y,function(h){h.label&&M.push(h.label)})})}),(this.series||[]).forEach(function(P){var y=P.options.dataLabels;P.visible&&(y.enabled!==!1||P._hasPointLabels)&&(y=function(h){return h.forEach(function(f){f.visible&&(Z(f.dataLabels)?f.dataLabels:f.dataLabel?[f.dataLabel]:[]).forEach(function(m){var u=m.options;m.labelrank=I(u.labelrank,f.labelrank,f.shapeArgs&&f.shapeArgs.height),u.allowOverlap?(m.oldOpacity=m.opacity,m.newOpacity=1,H(m,E)):M.push(m)})})},y(P.nodes||[]),y(P.points))}),this.hideOverlappingLabels(M)}),W.prototype.hideOverlappingLabels=function(E){var M,P,y,h=this,f=E.length,m=h.renderer,u=!1,v=function(x){var c,g,r=x.box?0:x.padding||0,a=c=0;if(x&&(!x.alignAttr||x.placed)){var t=x.alignAttr||{x:x.attr("x"),y:x.attr("y")},i=x.parentGroup;x.width||(c=x.getBBox(),x.width=c.width,x.height=c.height,c=m.fontMetrics(null,x.element).h);var o=x.width-2*r;return(g={left:"0",center:"0.5",right:"1"}[x.alignValue])?a=+g*o:U(x.x)&&Math.round(x.x)!==x.translateX&&(a=x.x-x.translateX),{x:t.x+(i.translateX||0)+r-(a||0),y:t.y+(i.translateY||0)+r-c,width:x.width-2*r,height:x.height-2*r}}};for(P=0;P<f;P++)(M=E[P])&&(M.oldOpacity=M.opacity,M.newOpacity=1,M.absoluteBox=v(M));for(E.sort(function(x,c){return(c.labelrank||0)-(x.labelrank||0)}),P=0;P<f;P++){var w=(v=E[P])&&v.absoluteBox;for(M=P+1;M<f;++M){var S=(y=E[M])&&y.absoluteBox;!w||!S||v===y||v.newOpacity===0||y.newOpacity===0||v.visibility==="hidden"||y.visibility==="hidden"||S.x>=w.x+w.width||S.x+S.width<=w.x||S.y>=w.y+w.height||S.y+S.height<=w.y||((v.labelrank<y.labelrank?v:y).newOpacity=0)}}E.forEach(function(x){H(x,h)&&(u=!0)}),u&&$(h,"afterHideAllOverlappingLabels")}}),B(it,"Core/Responsive.js",[it["Core/Utilities.js"]],function(W){var R,H=W.extend,V=W.find,$=W.isArray,Z=W.isObject,U=W.merge,z=W.objectEach,I=W.pick,E=W.splat,M=W.uniqueKey;return function(P){var y=[];P.compose=function(f){return y.indexOf(f)===-1&&(y.push(f),H(f.prototype,h.prototype)),f};var h=function(){function f(){}return f.prototype.currentOptions=function(m){var u=this,v={};return function w(S,x,c,g){var r;z(S,function(a,t){if(!g&&-1<u.collectionsWithUpdate.indexOf(t)&&x[t])for(a=E(a),c[t]=[],r=0;r<Math.max(a.length,x[t].length);r++)x[t][r]&&(a[r]===void 0?c[t][r]=x[t][r]:(c[t][r]={},w(a[r],x[t][r],c[t][r],g+1)));else Z(a)?(c[t]=$(a)?[]:{},w(a,x[t]||{},c[t],g+1)):c[t]=x[t]===void 0?null:x[t]})}(m,this.options,v,0),v},f.prototype.matchResponsiveRule=function(m,u){var v=m.condition;(v.callback||function(){return this.chartWidth<=I(v.maxWidth,Number.MAX_VALUE)&&this.chartHeight<=I(v.maxHeight,Number.MAX_VALUE)&&this.chartWidth>=I(v.minWidth,0)&&this.chartHeight>=I(v.minHeight,0)}).call(this)&&u.push(m._id)},f.prototype.setResponsive=function(m,u){var v=this,w=this.options.responsive,S=this.currentResponsive,x=[];!u&&w&&w.rules&&w.rules.forEach(function(c){c._id===void 0&&(c._id=M()),v.matchResponsiveRule(c,x)},this),u=U.apply(void 0,x.map(function(c){return V((w||{}).rules||[],function(g){return g._id===c})}).map(function(c){return c&&c.chartOptions})),u.isResponsiveOptions=!0,(x=x.toString()||void 0)!==(S&&S.ruleIds)&&(S&&this.update(S.undoOptions,m,!0),x?((S=this.currentOptions(u)).isResponsiveOptions=!0,this.currentResponsive={ruleIds:x,mergedOptions:u,undoOptions:S},this.update(u,m,!0)):this.currentResponsive=void 0)},f}()}(R||(R={})),R}),B(it,"masters/highcharts.src.js",[it["Core/Globals.js"],it["Core/Utilities.js"],it["Core/Defaults.js"],it["Core/Animation/Fx.js"],it["Core/Animation/AnimationUtilities.js"],it["Core/Renderer/HTML/AST.js"],it["Core/FormatUtilities.js"],it["Core/Renderer/RendererUtilities.js"],it["Core/Renderer/SVG/SVGElement.js"],it["Core/Renderer/SVG/SVGRenderer.js"],it["Core/Renderer/HTML/HTMLElement.js"],it["Core/Renderer/HTML/HTMLRenderer.js"],it["Core/Axis/Axis.js"],it["Core/Axis/DateTimeAxis.js"],it["Core/Axis/LogarithmicAxis.js"],it["Core/Axis/PlotLineOrBand/PlotLineOrBand.js"],it["Core/Axis/Tick.js"],it["Core/Tooltip.js"],it["Core/Series/Point.js"],it["Core/Pointer.js"],it["Core/MSPointer.js"],it["Core/Legend/Legend.js"],it["Core/Chart/Chart.js"],it["Core/Axis/Stacking/StackingAxis.js"],it["Core/Axis/Stacking/StackItem.js"],it["Core/Series/Series.js"],it["Core/Series/SeriesRegistry.js"],it["Series/Column/ColumnSeries.js"],it["Series/Column/ColumnDataLabel.js"],it["Series/Pie/PieSeries.js"],it["Series/Pie/PieDataLabel.js"],it["Core/Series/DataLabel.js"],it["Core/Responsive.js"],it["Core/Color/Color.js"],it["Core/Time.js"]],function(W,R,H,V,$,Z,U,z,I,E,M,P,y,h,f,m,u,v,w,S,x,c,g,r,a,t,i,o,e,s,n,l,b,k,D){return W.animate=$.animate,W.animObject=$.animObject,W.getDeferredAnimation=$.getDeferredAnimation,W.setAnimation=$.setAnimation,W.stop=$.stop,W.timers=V.timers,W.AST=Z,W.Axis=y,W.Chart=g,W.chart=g.chart,W.Fx=V,W.Legend=c,W.PlotLineOrBand=m,W.Point=w,W.Pointer=x.isRequired()?x:S,W.Series=t,W.StackItem=a,W.SVGElement=I,W.SVGRenderer=E,W.Tick=u,W.Time=D,W.Tooltip=v,W.Color=k,W.color=k.parse,P.compose(E),M.compose(I),W.defaultOptions=H.defaultOptions,W.getOptions=H.getOptions,W.time=H.defaultTime,W.setOptions=H.setOptions,W.dateFormat=U.dateFormat,W.format=U.format,W.numberFormat=U.numberFormat,W.addEvent=R.addEvent,W.arrayMax=R.arrayMax,W.arrayMin=R.arrayMin,W.attr=R.attr,W.clearTimeout=R.clearTimeout,W.correctFloat=R.correctFloat,W.createElement=R.createElement,W.css=R.css,W.defined=R.defined,W.destroyObjectProperties=R.destroyObjectProperties,W.discardElement=R.discardElement,W.distribute=z.distribute,W.erase=R.erase,W.error=R.error,W.extend=R.extend,W.extendClass=R.extendClass,W.find=R.find,W.fireEvent=R.fireEvent,W.getMagnitude=R.getMagnitude,W.getStyle=R.getStyle,W.inArray=R.inArray,W.isArray=R.isArray,W.isClass=R.isClass,W.isDOMElement=R.isDOMElement,W.isFunction=R.isFunction,W.isNumber=R.isNumber,W.isObject=R.isObject,W.isString=R.isString,W.keys=R.keys,W.merge=R.merge,W.normalizeTickInterval=R.normalizeTickInterval,W.objectEach=R.objectEach,W.offset=R.offset,W.pad=R.pad,W.pick=R.pick,W.pInt=R.pInt,W.relativeLength=R.relativeLength,W.removeEvent=R.removeEvent,W.seriesType=i.seriesType,W.splat=R.splat,W.stableSort=R.stableSort,W.syncTimeout=R.syncTimeout,W.timeUnits=R.timeUnits,W.uniqueKey=R.uniqueKey,W.useSerialIds=R.useSerialIds,W.wrap=R.wrap,e.compose(o),l.compose(t),h.compose(y),f.compose(y),n.compose(s),m.compose(y),b.compose(g),r.compose(y,g,t),W}),it["masters/highcharts.src.js"]._modules=it,it["masters/highcharts.src.js"]},ot.exports?(ut.default=ut,ot.exports=ht.document?ut(ht):ut):(pt=function(){return ut(ht)}.call(nt,st,nt,ot))===void 0||(ot.exports=pt)},4812:(ot,nt,st)=>{var pt,ht,ut;ut=function(ft){var B=ft?ft._modules:{};function it(W,R,H,V){W.hasOwnProperty(R)||(W[R]=V.apply(null,H),typeof CustomEvent=="function"&&window.dispatchEvent(new CustomEvent("HighchartsModuleLoaded",{detail:{path:R,module:W[R]}})))}it(B,"Series/Bullet/BulletPoint.js",[B["Series/Column/ColumnSeries.js"]],function(W){var R,H=this&&this.__extends||(R=function($,Z){return R=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(U,z){U.__proto__=z}||function(U,z){for(var I in z)z.hasOwnProperty(I)&&(U[I]=z[I])},R($,Z)},function($,Z){function U(){this.constructor=$}R($,Z),$.prototype=Z===null?Object.create(Z):(U.prototype=Z.prototype,new U)}),V=function($){function Z(){var U=$!==null&&$.apply(this,arguments)||this;return U.options=void 0,U.series=void 0,U}return H(Z,$),Z.prototype.destroy=function(){this.targetGraphic&&(this.targetGraphic=this.targetGraphic.destroy()),$.prototype.destroy.apply(this,arguments)},Z}(W.prototype.pointClass);return V}),it(B,"Series/Bullet/BulletSeries.js",[B["Series/Bullet/BulletPoint.js"],B["Core/Series/SeriesRegistry.js"],B["Core/Utilities.js"]],function(W,R,H){var V,$=this&&this.__extends||(V=function(y,h){return V=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,m){f.__proto__=m}||function(f,m){for(var u in m)m.hasOwnProperty(u)&&(f[u]=m[u])},V(y,h)},function(y,h){function f(){this.constructor=y}V(y,h),y.prototype=h===null?Object.create(h):(f.prototype=h.prototype,new f)}),Z=R.seriesTypes.column,U=H.extend,z=H.isNumber,I=H.merge,E=H.pick,M=H.relativeLength,P=function(y){function h(){var f=y!==null&&y.apply(this,arguments)||this;return f.data=void 0,f.options=void 0,f.points=void 0,f.targetData=void 0,f}return $(h,y),h.prototype.drawPoints=function(){var f=this,m=f.chart,u=f.options,v=u.animationLimit||250;y.prototype.drawPoints.apply(this,arguments),f.points.forEach(function(w){var S,x,c,g,r,a=w.options,t=w.target,i=w.y,o=w.targetGraphic;if(z(t)&&t!==null){c=(g=I(u.targetOptions,a.targetOptions)).height;var e=w.shapeArgs;w.dlBox&&e&&!z(e.width)&&(e=w.dlBox),x=M(g.width,e.width),r=f.yAxis.translate(t,!1,!0,!1,!0)-g.height/2-.5,S=f.crispCol.apply({chart:m,borderWidth:g.borderWidth,options:{crisp:u.crisp}},[e.x+e.width/2-x/2,r,x,c]),o?(o[m.pointCount<v?"animate":"attr"](S),z(i)&&i!==null?o.element.point=w:o.element.point=void 0):w.targetGraphic=o=m.renderer.rect().attr(S).add(f.group),m.styledMode||o.attr({fill:E(g.color,a.color,f.zones.length&&(w.getZone.call({series:f,x:w.x,y:t,options:{}}).color||f.color)||void 0,w.color,f.color),stroke:E(g.borderColor,w.borderColor,f.options.borderColor),"stroke-width":g.borderWidth,r:g.borderRadius}),z(i)&&i!==null&&(o.element.point=w),o.addClass(w.getClassName()+" highcharts-bullet-target",!0)}else o&&(w.targetGraphic=o.destroy())})},h.prototype.getExtremes=function(f){var m=y.prototype.getExtremes.call(this,f),u=this.targetData;if(u&&u.length){var v=y.prototype.getExtremes.call(this,u);z(v.dataMin)&&(m.dataMin=Math.min(E(m.dataMin,1/0),v.dataMin)),z(v.dataMax)&&(m.dataMax=Math.max(E(m.dataMax,-1/0),v.dataMax))}return m},h.defaultOptions=I(Z.defaultOptions,{targetOptions:{width:"140%",height:3,borderWidth:0,borderRadius:0},tooltip:{pointFormat:'<span style="color:{series.color}">●</span> {series.name}: <b>{point.y}</b>. Target: <b>{point.target}</b><br/>'}}),h}(Z);return U(P.prototype,{parallelArrays:["x","y","target"],pointArrayMap:["y","target"]}),P.prototype.pointClass=W,R.registerSeriesType("bullet",P),P}),it(B,"masters/modules/bullet.src.js",[],function(){})},ot.exports?(ut.default=ut,ot.exports=ut):(pt=[st(4783)],(ht=function(ft){return ut(ft),ut.Highcharts=ft,ut}.apply(nt,pt))===void 0||(ot.exports=ht))},5098:(ot,nt,st)=>{var pt,ht,ut;ut=function(ft){var B=ft?ft._modules:{};function it(W,R,H,V){W.hasOwnProperty(R)||(W[R]=V.apply(null,H),typeof CustomEvent=="function"&&window.dispatchEvent(new CustomEvent("HighchartsModuleLoaded",{detail:{path:R,module:W[R]}})))}it(B,"Accessibility/Utils/HTMLUtilities.js",[B["Core/Globals.js"],B["Core/Utilities.js"]],function(W,R){var H=W.doc,V=W.win,$=R.css,Z=V.EventTarget&&new V.EventTarget||"none";function U(I){if(typeof V.MouseEvent=="function")return new V.MouseEvent(I.type,I);if(H.createEvent){var E=H.createEvent("MouseEvent");if(E.initMouseEvent)return E.initMouseEvent(I.type,I.bubbles,I.cancelable,I.view||V,I.detail,I.screenX,I.screenY,I.clientX,I.clientY,I.ctrlKey,I.altKey,I.shiftKey,I.metaKey,I.button,I.relatedTarget),E}return z(I.type)}function z(I,E,M){var P=E||{x:0,y:0};if(typeof V.MouseEvent=="function")return new V.MouseEvent(I,{bubbles:!0,cancelable:!0,composed:!0,button:0,buttons:1,relatedTarget:M||Z,view:V,detail:I==="click"?1:0,screenX:P.x,screenY:P.y,clientX:P.x,clientY:P.y});if(H.createEvent){var y=H.createEvent("MouseEvent");if(y.initMouseEvent)return y.initMouseEvent(I,!0,!0,V,I==="click"?1:0,P.x,P.y,P.x,P.y,!1,!1,!1,!1,0,null),y}return{type:I}}return{addClass:function(I,E){I.classList?I.classList.add(E):I.className.indexOf(E)<0&&(I.className+=" "+E)},cloneMouseEvent:U,cloneTouchEvent:function(I){var E=function(y){for(var h=[],f=0;f<y.length;++f){var m=y.item(f);m&&h.push(m)}return h};if(typeof V.TouchEvent=="function"){var M=new V.TouchEvent(I.type,{touches:E(I.touches),targetTouches:E(I.targetTouches),changedTouches:E(I.changedTouches),ctrlKey:I.ctrlKey,shiftKey:I.shiftKey,altKey:I.altKey,metaKey:I.metaKey,bubbles:I.bubbles,cancelable:I.cancelable,composed:I.composed,detail:I.detail,view:I.view});return I.defaultPrevented&&M.preventDefault(),M}var P=U(I);return P.touches=I.touches,P.changedTouches=I.changedTouches,P.targetTouches=I.targetTouches,P},escapeStringForHTML:function(I){return I.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#x27;").replace(/\//g,"&#x2F;")},getElement:function(I){return H.getElementById(I)},getFakeMouseEvent:z,getHeadingTagNameForElement:function(I){var E=function(y){var h=parseInt(y.slice(1),10);return"h"+Math.min(6,h+1)},M=function(y){return/H[1-6]/.test(y)},P=function(y){var h=function(u){for(var v=u;v=v.previousSibling;){var w=v.tagName||"";if(M(w))return w}return""}(y);if(h)return E(h);var f=y.parentElement;if(!f)return"p";var m=f.tagName;return M(m)?E(m):P(f)};return P(I)},removeChildNodes:function(I){for(;I.lastChild;)I.removeChild(I.lastChild)},removeClass:function(I,E){I.classList?I.classList.remove(E):I.className=I.className.replace(new RegExp(E,"g"),"")},removeElement:function(I){I&&I.parentNode&&I.parentNode.removeChild(I)},reverseChildNodes:function(I){for(var E=I.childNodes.length;E--;)I.appendChild(I.childNodes[E])},simulatedEventTarget:Z,stripHTMLTagsFromString:function(I){return typeof I=="string"?I.replace(/<\/?[^>]+(>|$)/g,""):I},visuallyHideElement:function(I){$(I,{position:"absolute",width:"1px",height:"1px",overflow:"hidden",whiteSpace:"nowrap",clip:"rect(1px, 1px, 1px, 1px)",marginTop:"-3px","-ms-filter":"progid:DXImageTransform.Microsoft.Alpha(Opacity=1)",filter:"alpha(opacity=1)",opacity:.01})}}}),it(B,"Accessibility/A11yI18n.js",[B["Core/FormatUtilities.js"],B["Core/Utilities.js"]],function(W,R){var H,V=W.format,$=R.getNestedProperty,Z=R.pick;return function(U){var z=[];function I(M,P,y){var h,f,m=function(w,S){var x=w.slice(S||0),c=x.indexOf("{"),g=x.indexOf("}");if(c>-1&&g>c)return{statement:x.substring(c+1,g),begin:S+c+1,end:S+g}},u=[],v=0;do h=m(M,v),(f=M.substring(v,h&&h.begin-1)).length&&u.push({value:f,type:"constant"}),h&&u.push({value:h.statement,type:"statement"}),v=h?h.end+1:v+1;while(h);return u.forEach(function(w){w.type==="statement"&&(w.value=function(S,x){var c,g,r,a=S.indexOf("#each("),t=S.indexOf("#plural("),i=S.indexOf("["),o=S.indexOf("]");if(a>-1){var e=S.slice(a).indexOf(")")+a,s=S.substring(0,a),n=S.substring(e+1),l=S.substring(a+6,e).split(","),b=Number(l[1]),k=void 0;if(g="",c=$(l[0],x)){k=(b=isNaN(b)?c.length:b)<0?c.length+b:Math.min(b,c.length);for(var D=0;D<k;++D)g+=s+c[D]+n}return g.length?g:""}if(t>-1){var p=S.slice(t).indexOf(")")+t,C=S.substring(t+8,p).split(",");switch(Number($(C[0],x))){case 0:g=Z(C[4],C[1]);break;case 1:g=Z(C[2],C[1]);break;case 2:g=Z(C[3],C[1]);break;default:g=C[1]}return g?(r=g).trim&&r.trim()||r.replace(/^\s+|\s+$/g,""):""}if(i>-1){var A=S.substring(0,i),N=Number(S.substring(i+1,o)),_=void 0;return c=$(A,x),!isNaN(N)&&c&&(N<0?(_=c[c.length+N])===void 0&&(_=c[0]):(_=c[N])===void 0&&(_=c[c.length-1])),_!==void 0?_:""}return"{"+S+"}"}(w.value,P))}),V(u.reduce(function(w,S){return w+S.value},""),P,y)}function E(M,P){for(var y=M.split("."),h=this.options.lang,f=0;f<y.length;++f)h=h&&h[y[f]];return typeof h=="string"?I(h,P,this):""}U.compose=function(M){return z.indexOf(M)===-1&&(z.push(M),M.prototype.langFormat=E),M},U.i18nFormat=I}(H||(H={})),H}),it(B,"Accessibility/Utils/ChartUtilities.js",[B["Core/Globals.js"],B["Accessibility/Utils/HTMLUtilities.js"],B["Core/Utilities.js"]],function(W,R,H){var V=W.doc,$=R.stripHTMLTagsFromString,Z=H.defined,U=H.find,z=H.fireEvent;function I(M){if(M.points&&M.points.length){var P=U(M.points,function(y){return!!y.graphic});return P&&P.graphic&&P.graphic.element}}function E(M){var P=I(M);return P&&P.parentNode||M.graph&&M.graph.element||M.group&&M.group.element}return{fireEventOnWrappedOrUnwrappedElement:function M(P,y){var h=y.type,f=P.hcEvents;V.createEvent&&(P.dispatchEvent||P.fireEvent)?P.dispatchEvent?P.dispatchEvent(y):P.fireEvent(h,y):f&&f[h]?z(P,h,y):P.element&&M(P.element,y)},getChartTitle:function(M){return $(M.options.title.text||M.langFormat("accessibility.defaultChartTitle",{chart:M}))},getAxisDescription:function(M){return M&&(M.userOptions&&M.userOptions.accessibility&&M.userOptions.accessibility.description||M.axisTitle&&M.axisTitle.textStr||M.options.id||M.categories&&"categories"||M.dateTime&&"Time"||"values")},getAxisRangeDescription:function(M){var P=M.options||{};return P.accessibility&&P.accessibility.rangeDescription!==void 0?P.accessibility.rangeDescription:M.categories?function(y){var h=y.chart;return y.dataMax&&y.dataMin?h.langFormat("accessibility.axis.rangeCategories",{chart:h,axis:y,numCategories:y.dataMax-y.dataMin+1}):""}(M):!M.dateTime||M.min!==0&&M.dataMin!==0?function(y){var h=y.chart,f=h.options,m=f&&f.accessibility&&f.accessibility.screenReaderSection.axisRangeDateFormat||"",u={min:y.dataMin||y.min||0,max:y.dataMax||y.max||0},v=function(w){return y.dateTime?h.time.dateFormat(m,u[w]):u[w].toString()};return h.langFormat("accessibility.axis.rangeFromTo",{chart:h,axis:y,rangeFrom:v("min"),rangeTo:v("max")})}(M):function(y){var h=y.chart,f={},m=y.dataMin||y.min||0,u=y.dataMax||y.max||0,v="Seconds";f.Seconds=(u-m)/1e3,f.Minutes=f.Seconds/60,f.Hours=f.Minutes/60,f.Days=f.Hours/24,["Minutes","Hours","Days"].forEach(function(S){f[S]>2&&(v=S)});var w=f[v].toFixed(v!=="Seconds"&&v!=="Minutes"?1:0);return h.langFormat("accessibility.axis.timeRange"+v,{chart:h,axis:y,range:w.replace(".0","")})}(M)},getPointFromXY:function(M,P,y){for(var h,f=M.length;f--;)if(h=U(M[f].points||[],function(m){return m.x===P&&m.y===y}))return h},getSeriesFirstPointElement:I,getSeriesFromName:function(M,P){return P?(M.series||[]).filter(function(y){return y.name===P}):M.series},getSeriesA11yElement:E,unhideChartElementFromAT:function M(P,y){y.setAttribute("aria-hidden",!1),y!==P.renderTo&&y.parentNode&&y.parentNode!==V.body&&(Array.prototype.forEach.call(y.parentNode.childNodes,function(h){h.hasAttribute("aria-hidden")||h.setAttribute("aria-hidden",!0)}),M(P,y.parentNode))},hideSeriesFromAT:function(M){var P=E(M);P&&P.setAttribute("aria-hidden",!0)},scrollToPoint:function(M){var P=M.series.xAxis,y=M.series.yAxis,h=P&&P.scrollbar?P:y,f=h&&h.scrollbar;if(f&&Z(f.to)&&Z(f.from)){var m=f.to-f.from,u=function(v,w){if(!Z(v.dataMin)||!Z(v.dataMax))return 0;var S=v.toPixels(v.dataMin),x=v.toPixels(v.dataMax),c=v.coll==="xAxis"?"x":"y";return(v.toPixels(w[c]||0)-S)/(x-S)}(h,M);f.updatePosition(u-m/2,u+m/2),z(f,"changed",{from:f.from,to:f.to,trigger:"scrollbar",DOMEvent:null})}}}}),it(B,"Accessibility/Utils/DOMElementProvider.js",[B["Core/Globals.js"],B["Accessibility/Utils/HTMLUtilities.js"]],function(W,R){var H=W.doc,V=R.removeElement,$=function(){function Z(){this.elements=[]}return Z.prototype.createElement=function(){var U=H.createElement.apply(H,arguments);return this.elements.push(U),U},Z.prototype.destroyCreatedElements=function(){this.elements.forEach(function(U){V(U)}),this.elements=[]},Z}();return $}),it(B,"Accessibility/Utils/EventProvider.js",[B["Core/Globals.js"],B["Core/Utilities.js"]],function(W,R){var H=R.addEvent,V=function(){function $(){this.eventRemovers=[]}return $.prototype.addEvent=function(){var Z=H.apply(W,arguments);return this.eventRemovers.push(Z),Z},$.prototype.removeAddedEvents=function(){this.eventRemovers.forEach(function(Z){return Z()}),this.eventRemovers=[]},$}();return V}),it(B,"Accessibility/AccessibilityComponent.js",[B["Accessibility/Utils/ChartUtilities.js"],B["Accessibility/Utils/DOMElementProvider.js"],B["Accessibility/Utils/EventProvider.js"],B["Accessibility/Utils/HTMLUtilities.js"],B["Core/Utilities.js"]],function(W,R,H,V,$){var Z=W.fireEventOnWrappedOrUnwrappedElement,U=V.getFakeMouseEvent,z=$.extend,I=function(){function E(){this.chart=void 0,this.domElementProvider=void 0,this.eventProvider=void 0,this.keyCodes=void 0,this.proxyProvider=void 0}return E.prototype.initBase=function(M,P){this.chart=M,this.eventProvider=new H,this.domElementProvider=new R,this.proxyProvider=P,this.keyCodes={left:37,right:39,up:38,down:40,enter:13,space:32,esc:27,tab:9,pageUp:33,pageDown:34,end:35,home:36}},E.prototype.addEvent=function(M,P,y,h){return this.eventProvider.addEvent(M,P,y,h)},E.prototype.createElement=function(M,P){return this.domElementProvider.createElement(M,P)},E.prototype.fakeClickEvent=function(M){var P=U("click");Z(M,P)},E.prototype.destroyBase=function(){this.domElementProvider.destroyCreatedElements(),this.eventProvider.removeAddedEvents()},E}();return z(I.prototype,{init:function(){},getKeyboardNavigation:function(){},onChartUpdate:function(){},onChartRender:function(){},destroy:function(){}}),I}),it(B,"Accessibility/KeyboardNavigationHandler.js",[B["Core/Utilities.js"]],function(W){var R=W.find;return function(){function H(V,$){this.chart=V,this.keyCodeMap=$.keyCodeMap||[],this.validate=$.validate,this.init=$.init,this.terminate=$.terminate,this.response={success:1,prev:2,next:3,noHandler:4,fail:5}}return H.prototype.run=function(V){var $=V.which||V.keyCode,Z=this.response.noHandler,U=R(this.keyCodeMap,function(z){return z[0].indexOf($)>-1});return U?Z=U[1].call(this,$,V):$===9&&(Z=this.response[V.shiftKey?"prev":"next"]),Z},H}()}),it(B,"Accessibility/Components/ContainerComponent.js",[B["Accessibility/AccessibilityComponent.js"],B["Accessibility/KeyboardNavigationHandler.js"],B["Accessibility/Utils/ChartUtilities.js"],B["Core/Globals.js"],B["Accessibility/Utils/HTMLUtilities.js"]],function(W,R,H,V,$){var Z,U=this&&this.__extends||(Z=function(y,h){return Z=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,m){f.__proto__=m}||function(f,m){for(var u in m)m.hasOwnProperty(u)&&(f[u]=m[u])},Z(y,h)},function(y,h){function f(){this.constructor=y}Z(y,h),y.prototype=h===null?Object.create(h):(f.prototype=h.prototype,new f)}),z=H.unhideChartElementFromAT,I=H.getChartTitle,E=V.doc,M=$.stripHTMLTagsFromString,P=function(y){function h(){return y!==null&&y.apply(this,arguments)||this}return U(h,y),h.prototype.onChartUpdate=function(){this.handleSVGTitleElement(),this.setSVGContainerLabel(),this.setGraphicContainerAttrs(),this.setRenderToAttrs(),this.makeCreditsAccessible()},h.prototype.handleSVGTitleElement=function(){var f=this.chart,m="highcharts-title-"+f.index,u=M(f.langFormat("accessibility.svgContainerTitle",{chartTitle:I(f)}));if(u.length){var v=this.svgTitleElement=this.svgTitleElement||E.createElementNS("http://www.w3.org/2000/svg","title");v.textContent=u,v.id=m,f.renderTo.insertBefore(v,f.renderTo.firstChild)}},h.prototype.setSVGContainerLabel=function(){var f=this.chart,m=f.langFormat("accessibility.svgContainerLabel",{chartTitle:I(f)});f.renderer.box&&m.length&&f.renderer.box.setAttribute("aria-label",m)},h.prototype.setGraphicContainerAttrs=function(){var f=this.chart,m=f.langFormat("accessibility.graphicContainerLabel",{chartTitle:I(f)});m.length&&f.container.setAttribute("aria-label",m)},h.prototype.setRenderToAttrs=function(){var f=this.chart,m=f.options.accessibility.landmarkVerbosity!=="disabled",u=f.langFormat("accessibility.chartContainerLabel",{title:I(f),chart:f});u&&(f.renderTo.setAttribute("role",m?"region":"group"),f.renderTo.setAttribute("aria-label",u))},h.prototype.makeCreditsAccessible=function(){var f=this.chart,m=f.credits;m&&(m.textStr&&m.element.setAttribute("aria-label",f.langFormat("accessibility.credits",{creditsStr:M(m.textStr)})),z(f,m.element))},h.prototype.getKeyboardNavigation=function(){var f=this.chart;return new R(f,{keyCodeMap:[],validate:function(){return!0},init:function(){var m=f.accessibility;m&&m.keyboardNavigation.tabindexContainer.focus()}})},h.prototype.destroy=function(){this.chart.renderTo.setAttribute("aria-hidden",!0)},h}(W);return P}),it(B,"Accessibility/FocusBorder.js",[B["Core/Renderer/SVG/SVGLabel.js"],B["Core/Utilities.js"]],function(W,R){var H,V=R.addEvent,$=R.pick;return function(Z){var U=[],z=["x","y","transform","width","height","r","d","stroke-width"];function I(){var y=this.focusElement,h=this.options.accessibility.keyboardNavigation.focusBorder;y&&(y.removeFocusBorder(),h.enabled&&y.addFocusBorder(h.margin,{stroke:h.style.color,strokeWidth:h.style.lineWidth,r:h.style.borderRadius}))}function E(y,h){var f=this.options.accessibility.keyboardNavigation.focusBorder,m=h||y.element;m&&m.focus&&(m.hcEvents&&m.hcEvents.focusin||V(m,"focusin",function(){}),m.focus(),f.hideBrowserFocusOutline&&(m.style.outline="none")),this.focusElement&&this.focusElement.removeFocusBorder(),this.focusElement=y,this.renderFocusBorder()}function M(y,h){this.focusBorder&&this.removeFocusBorder();var f=this.getBBox(),m=$(y,3),u=this.parentGroup,v=this.scaleX||u&&u.scaleX,w=this.scaleY||u&&u.scaleY,S=(v?!w:w)?Math.abs(v||w||1):(Math.abs(v||1)+Math.abs(w||1))/2;f.x+=this.translateX?this.translateX:0,f.y+=this.translateY?this.translateY:0;var x,c,g,r=f.x-m,a=f.y-m,t=f.width+2*m,i=f.height+2*m,o=this instanceof W;if(this.element.nodeName==="text"||o){var e=!!this.rotation,s=o?{x:e?1:0,y:0}:(c=0,g=0,(x=this).attr("text-anchor")==="middle"?c=g=.5:x.rotation?c=.25:g=.75,{x:c,y:g}),n=+this.attr("x"),l=+this.attr("y");if(isNaN(n)||(r=n-f.width*s.x-m),isNaN(l)||(a=l-f.height*s.y-m),o&&e){var b=t;t=i,i=b,isNaN(n)||(r=n-f.height*s.x-m),isNaN(l)||(a=l-f.width*s.y-m)}}this.focusBorder=this.renderer.rect(r,a,t,i,parseInt((h&&h.r||0).toString(),10)/S).addClass("highcharts-focus-border").attr({zIndex:99}).add(u),this.renderer.styledMode||this.focusBorder.attr({stroke:h&&h.stroke,"stroke-width":(h&&h.strokeWidth||0)/S}),function(k){for(var D=[],p=1;p<arguments.length;p++)D[p-1]=arguments[p];k.focusBorderUpdateHooks||(k.focusBorderUpdateHooks={},z.forEach(function(C){var A=C+"Setter",N=k[A]||k._defaultSetter;k.focusBorderUpdateHooks[A]=N,k[A]=function(){var _=N.apply(k,arguments);return k.addFocusBorder.apply(k,D),_}}))}(this,y,h),function(k){if(!k.focusBorderDestroyHook){var D=k.destroy;k.destroy=function(){return k.focusBorder&&k.focusBorder.destroy&&k.focusBorder.destroy(),D.apply(k,arguments)},k.focusBorderDestroyHook=D}}(this)}function P(){var y;(function(h){h.focusBorderUpdateHooks&&(Object.keys(h.focusBorderUpdateHooks).forEach(function(f){var m=h.focusBorderUpdateHooks[f];m===h._defaultSetter?delete h[f]:h[f]=m}),delete h.focusBorderUpdateHooks)})(this),(y=this).focusBorderDestroyHook&&(y.destroy=y.focusBorderDestroyHook,delete y.focusBorderDestroyHook),this.focusBorder&&(this.focusBorder.destroy(),delete this.focusBorder)}Z.compose=function(y,h){if(U.indexOf(y)===-1){U.push(y);var f=y.prototype;f.renderFocusBorder=I,f.setFocusToElement=E}if(U.indexOf(h)===-1){U.push(h);var m=h.prototype;m.addFocusBorder=M,m.removeFocusBorder=P}}}(H||(H={})),H}),it(B,"Accessibility/Utils/Announcer.js",[B["Core/Renderer/HTML/AST.js"],B["Accessibility/Utils/DOMElementProvider.js"],B["Core/Globals.js"],B["Accessibility/Utils/HTMLUtilities.js"],B["Core/Utilities.js"]],function(W,R,H,V,$){var Z=H.doc,U=V.addClass,z=V.visuallyHideElement,I=$.attr;return function(){function E(M,P){this.chart=M,this.domElementProvider=new R,this.announceRegion=this.addAnnounceRegion(P)}return E.prototype.destroy=function(){this.domElementProvider.destroyCreatedElements()},E.prototype.announce=function(M){var P=this;W.setElementHTML(this.announceRegion,M),this.clearAnnouncementRegionTimer&&clearTimeout(this.clearAnnouncementRegionTimer),this.clearAnnouncementRegionTimer=setTimeout(function(){P.announceRegion.innerHTML=W.emptyHTML,delete P.clearAnnouncementRegionTimer},1e3)},E.prototype.addAnnounceRegion=function(M){var P=this.chart.announcerContainer||this.createAnnouncerContainer(),y=this.domElementProvider.createElement("div");return I(y,{"aria-hidden":!1,"aria-live":M}),this.chart.styledMode?U(y,"highcharts-visually-hidden"):z(y),P.appendChild(y),y},E.prototype.createAnnouncerContainer=function(){var M=this.chart,P=Z.createElement("div");return I(P,{"aria-hidden":!1,class:"highcharts-announcer-container"}),P.style.position="relative",M.renderTo.insertBefore(P,M.renderTo.firstChild),M.announcerContainer=P,P},E}()}),it(B,"Accessibility/Components/AnnotationsA11y.js",[B["Accessibility/Utils/HTMLUtilities.js"]],function(W){var R=W.escapeStringForHTML,H=W.stripHTMLTagsFromString;function V(z){return(z.annotations||[]).reduce(function(I,E){return E.options&&E.options.visible!==!1&&(I=I.concat(E.labels)),I},[])}function $(z){return z.options&&z.options.accessibility&&z.options.accessibility.description||z.graphic&&z.graphic.text&&z.graphic.text.textStr||""}function Z(z){var I=z.options&&z.options.accessibility&&z.options.accessibility.description;if(I)return I;var E=z.chart,M=$(z),P=z.points.filter(function(m){return!!m.graphic}).map(function(m){var u=m.accessibility&&m.accessibility.valueDescription||function(w){return w.graphic&&w.graphic.element&&w.graphic.element.getAttribute("aria-label")||""}(m),v=m&&m.series.name||"";return(v?v+", ":"")+"data point "+u}).filter(function(m){return!!m}),y=P.length,h="accessibility.screenReaderSection.annotations.description"+(y>1?"MultiplePoints":y?"SinglePoint":"NoPoints"),f={annotationText:M,annotation:z,numPoints:y,annotationPoint:P[0],additionalAnnotationPoints:P.slice(1)};return E.langFormat(h,f)}function U(z){return V(z).map(function(I){var E=R(H(Z(I)));return E?"<li>".concat(E,"</li>"):""})}return{getAnnotationsInfoHTML:function(z){var I=z.annotations;if(!I||!I.length)return"";var E=U(z);return'<ul style="list-style-type: none">'.concat(E.join(" "),"</ul>")},getAnnotationLabelDescription:Z,getAnnotationListItems:U,getPointAnnotationTexts:function(z){var I=V(z.series.chart).filter(function(E){return E.points.indexOf(z)>-1});return I.length?I.map(function(E){return"".concat($(E))}):[]}}}),it(B,"Accessibility/Components/InfoRegionsComponent.js",[B["Accessibility/A11yI18n.js"],B["Accessibility/AccessibilityComponent.js"],B["Accessibility/Utils/Announcer.js"],B["Accessibility/Components/AnnotationsA11y.js"],B["Core/Renderer/HTML/AST.js"],B["Accessibility/Utils/ChartUtilities.js"],B["Core/FormatUtilities.js"],B["Core/Globals.js"],B["Accessibility/Utils/HTMLUtilities.js"],B["Core/Utilities.js"]],function(W,R,H,V,$,Z,U,z,I,E){var M,P=this&&this.__extends||(M=function(e,s){return M=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,l){n.__proto__=l}||function(n,l){for(var b in l)l.hasOwnProperty(b)&&(n[b]=l[b])},M(e,s)},function(e,s){function n(){this.constructor=e}M(e,s),e.prototype=s===null?Object.create(s):(n.prototype=s.prototype,new n)}),y=V.getAnnotationsInfoHTML,h=Z.getAxisDescription,f=Z.getAxisRangeDescription,m=Z.getChartTitle,u=Z.unhideChartElementFromAT,v=U.format,w=z.doc,S=I.addClass,x=I.getElement,c=I.getHeadingTagNameForElement,g=I.stripHTMLTagsFromString,r=I.visuallyHideElement,a=E.attr,t=E.pick;function i(e){return e.replace(/<(\w+)[^>]*?>\s*<\/\1>/g,"")}var o=function(e){function s(){var n=e!==null&&e.apply(this,arguments)||this;return n.announcer=void 0,n.screenReaderSections={},n}return P(s,e),s.prototype.init=function(){var n=this.chart,l=this;this.initRegionsDefinitions(),this.addEvent(n,"aftergetTableAST",function(b){l.onDataTableCreated(b)}),this.addEvent(n,"afterViewData",function(b){b.wasHidden&&(l.dataTableDiv=b.element,setTimeout(function(){l.focusDataTable()},300))}),this.announcer=new H(n,"assertive")},s.prototype.initRegionsDefinitions=function(){var n=this;this.screenReaderSections={before:{element:null,buildContent:function(l){var b=l.options.accessibility.screenReaderSection.beforeChartFormatter;return b?b(l):n.defaultBeforeChartFormatter(l)},insertIntoDOM:function(l,b){b.renderTo.insertBefore(l,b.renderTo.firstChild)},afterInserted:function(){n.sonifyButtonId!==void 0&&n.initSonifyButton(n.sonifyButtonId),n.dataTableButtonId!==void 0&&n.initDataTableButton(n.dataTableButtonId)}},after:{element:null,buildContent:function(l){var b=l.options.accessibility.screenReaderSection.afterChartFormatter;return b?b(l):n.defaultAfterChartFormatter()},insertIntoDOM:function(l,b){b.renderTo.insertBefore(l,b.container.nextSibling)},afterInserted:function(){n.chart.accessibility&&n.chart.accessibility.keyboardNavigation.updateExitAnchor()}}}},s.prototype.onChartRender=function(){var n=this;this.linkedDescriptionElement=this.getLinkedDescriptionElement(),this.setLinkedDescriptionAttrs(),Object.keys(this.screenReaderSections).forEach(function(l){n.updateScreenReaderSection(l)})},s.prototype.getLinkedDescriptionElement=function(){var n=this.chart.options.accessibility.linkedDescription;if(n){if(typeof n!="string")return n;var l=v(n,this.chart),b=w.querySelectorAll(l);return b.length===1?b[0]:void 0}},s.prototype.setLinkedDescriptionAttrs=function(){var n=this.linkedDescriptionElement;n&&(n.setAttribute("aria-hidden","true"),S(n,"highcharts-linked-description"))},s.prototype.updateScreenReaderSection=function(n){var l=this.chart,b=this.screenReaderSections[n],k=b.buildContent(l),D=b.element=b.element||this.createElement("div"),p=D.firstChild||this.createElement("div");k?(this.setScreenReaderSectionAttribs(D,n),$.setElementHTML(p,k),D.appendChild(p),b.insertIntoDOM(D,l),l.styledMode?S(p,"highcharts-visually-hidden"):r(p),u(l,p),b.afterInserted&&b.afterInserted()):(D.parentNode&&D.parentNode.removeChild(D),b.element=null)},s.prototype.setScreenReaderSectionAttribs=function(n,l){var b=this.chart,k=b.langFormat("accessibility.screenReaderSection."+l+"RegionLabel",{chart:b,chartTitle:m(b)}),D="highcharts-screen-reader-region-".concat(l,"-").concat(b.index);a(n,{id:D,"aria-label":k||void 0}),n.style.position="relative",k&&n.setAttribute("role",b.options.accessibility.landmarkVerbosity==="all"?"region":"group")},s.prototype.defaultBeforeChartFormatter=function(){var n=this.chart,l=n.options.accessibility.screenReaderSection.beforeChartFormat;if(!l)return"";var b=this.getAxesDescription(),k=n.sonify&&n.options.sonification&&n.options.sonification.enabled,D="highcharts-a11y-sonify-data-btn-"+n.index,p="hc-linkto-highcharts-data-table-"+n.index,C=y(n),A=n.langFormat("accessibility.screenReaderSection.annotations.heading",{chart:n}),N={headingTagName:c(n.renderTo),chartTitle:m(n),typeDescription:this.getTypeDescriptionText(),chartSubtitle:this.getSubtitleText(),chartLongdesc:this.getLongdescText(),xAxisDescription:b.xAxis,yAxisDescription:b.yAxis,playAsSoundButton:k?this.getSonifyButtonText(D):"",viewTableButton:n.getCSV?this.getDataTableButtonText(p):"",annotationsTitle:C?A:"",annotationsList:C},_=W.i18nFormat(l,N,n);return this.dataTableButtonId=p,this.sonifyButtonId=D,i(_)},s.prototype.defaultAfterChartFormatter=function(){var n=this.chart,l=n.options.accessibility.screenReaderSection.afterChartFormat;if(!l)return"";var b={endOfChartMarker:this.getEndOfChartMarkerText()};return i(W.i18nFormat(l,b,n))},s.prototype.getLinkedDescription=function(){var n=this.linkedDescriptionElement,l=n&&n.innerHTML||"";return g(l)},s.prototype.getLongdescText=function(){var n=this.chart.options,l=n.caption,b=l&&l.text,k=this.getLinkedDescription();return n.accessibility.description||k||b||""},s.prototype.getTypeDescriptionText=function(){var n=this.chart;return n.types?n.options.accessibility.typeDescription||function(l,b){var k=b[0],D=l.series&&l.series[0]||{},p=l.mapView&&l.mapView.geoMap&&l.mapView.geoMap.title,C={numSeries:l.series.length,numPoints:D.points&&D.points.length,chart:l,mapTitle:p};return k?k==="map"?function(A,N){return N.mapTitle?A.langFormat("accessibility.chartTypes.mapTypeDescription",N):A.langFormat("accessibility.chartTypes.unknownMap",N)}(l,C):l.types.length>1?function(A,N){return A.langFormat("accessibility.chartTypes.combinationChart",N)}(l,C):function(A,N,_){var L=N[0],O=A.langFormat("accessibility.seriesTypeDescriptions."+L,_),j=A.series&&A.series.length<2?"Single":"Multiple";return(A.langFormat("accessibility.chartTypes."+L+j,_)||A.langFormat("accessibility.chartTypes.default"+j,_))+(O?" "+O:"")}(l,b,C):function(A,N){return A.langFormat("accessibility.chartTypes.emptyChart",N)}(l,C)}(n,n.types):""},s.prototype.getDataTableButtonText=function(n){var l=this.chart;return'<button id="'+n+'">'+l.langFormat("accessibility.table.viewAsDataTableButtonText",{chart:l,chartTitle:m(l)})+"</button>"},s.prototype.getSonifyButtonText=function(n){var l=this.chart;return l.options.sonification&&l.options.sonification.enabled===!1?"":'<button id="'+n+'">'+l.langFormat("accessibility.sonification.playAsSoundButtonText",{chart:l,chartTitle:m(l)})+"</button>"},s.prototype.getSubtitleText=function(){var n=this.chart.options.subtitle;return g(n&&n.text||"")},s.prototype.getEndOfChartMarkerText=function(){var n=this.chart,l=n.langFormat("accessibility.screenReaderSection.endOfChartMarker",{chart:n});return'<div id="highcharts-end-of-chart-marker-'+n.index+'">'+l+"</div>"},s.prototype.onDataTableCreated=function(n){var l=this.chart;if(l.options.accessibility.enabled){this.viewDataTableButton&&this.viewDataTableButton.setAttribute("aria-expanded","true");var b=n.tree.attributes||{};b.tabindex=-1,b.summary=function(k){return k.langFormat("accessibility.table.tableSummary",{chart:k})}(l),n.tree.attributes=b}},s.prototype.focusDataTable=function(){var n=this.dataTableDiv,l=n&&n.getElementsByTagName("table")[0];l&&l.focus&&l.focus()},s.prototype.initSonifyButton=function(n){var l=this,b=this.sonifyButton=x(n),k=this.chart,D=function(p){b&&(b.setAttribute("aria-hidden","true"),b.setAttribute("aria-label","")),p.preventDefault(),p.stopPropagation();var C=k.langFormat("accessibility.sonification.playAsSoundClickAnnouncement",{chart:k});l.announcer.announce(C),setTimeout(function(){b&&(b.removeAttribute("aria-hidden"),b.removeAttribute("aria-label")),k.sonify&&k.sonify()},1e3)};b&&k&&(b.setAttribute("tabindex",-1),b.onclick=function(p){(k.options.accessibility&&k.options.accessibility.screenReaderSection.onPlayAsSoundClick||D).call(this,p,k)})},s.prototype.initDataTableButton=function(n){var l=this.viewDataTableButton=x(n),b=this.chart,k=n.replace("hc-linkto-","");l&&(a(l,{tabindex:-1,"aria-expanded":!!x(k)}),l.onclick=b.options.accessibility.screenReaderSection.onViewDataTableClick||function(){b.viewData()})},s.prototype.getAxesDescription=function(){var n=this.chart,l=function(A,N){var _=n[A];return _.length>1||_[0]&&t(_[0].options.accessibility&&_[0].options.accessibility.enabled,N)},b=!!n.types&&n.types.indexOf("map")<0&&n.types.indexOf("treemap")<0&&n.types.indexOf("tilemap")<0,k=!!n.hasCartesianSeries,D=l("xAxis",!n.angular&&k&&b),p=l("yAxis",k&&b),C={};return D&&(C.xAxis=this.getAxisDescriptionText("xAxis")),p&&(C.yAxis=this.getAxisDescriptionText("yAxis")),C},s.prototype.getAxisDescriptionText=function(n){var l=this.chart,b=l[n];return l.langFormat("accessibility.axis."+n+"Description"+(b.length>1?"Plural":"Singular"),{chart:l,names:b.map(function(k){return h(k)}),ranges:b.map(function(k){return f(k)}),numAxes:b.length})},s.prototype.destroy=function(){this.announcer&&this.announcer.destroy()},s}(R);return o}),it(B,"Accessibility/Components/MenuComponent.js",[B["Core/Chart/Chart.js"],B["Core/Utilities.js"],B["Accessibility/AccessibilityComponent.js"],B["Accessibility/KeyboardNavigationHandler.js"],B["Accessibility/Utils/ChartUtilities.js"],B["Accessibility/Utils/HTMLUtilities.js"]],function(W,R,H,V,$,Z){var U,z=this&&this.__extends||(U=function(f,m){return U=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(u,v){u.__proto__=v}||function(u,v){for(var w in v)v.hasOwnProperty(w)&&(u[w]=v[w])},U(f,m)},function(f,m){function u(){this.constructor=f}U(f,m),f.prototype=m===null?Object.create(m):(u.prototype=m.prototype,new u)}),I=R.attr,E=$.getChartTitle,M=$.unhideChartElementFromAT,P=Z.getFakeMouseEvent;function y(f){return f.exportSVGElements&&f.exportSVGElements[0]}var h=function(f){function m(){return f!==null&&f.apply(this,arguments)||this}return z(m,f),m.prototype.init=function(){var u=this.chart,v=this;this.addEvent(u,"exportMenuShown",function(){v.onMenuShown()}),this.addEvent(u,"exportMenuHidden",function(){v.onMenuHidden()}),this.createProxyGroup()},m.prototype.onMenuHidden=function(){var u=this.chart.exportContextMenu;u&&u.setAttribute("aria-hidden","true"),this.setExportButtonExpandedState("false")},m.prototype.onMenuShown=function(){var u=this.chart,v=u.exportContextMenu;v&&(this.addAccessibleContextMenuAttribs(),M(u,v)),this.setExportButtonExpandedState("true")},m.prototype.setExportButtonExpandedState=function(u){this.exportButtonProxy&&this.exportButtonProxy.buttonElement.setAttribute("aria-expanded",u)},m.prototype.onChartRender=function(){var u=this.chart,v=u.focusElement,w=u.accessibility;this.proxyProvider.clearGroup("chartMenu"),this.proxyMenuButton(),this.exportButtonProxy&&v&&v===u.exportingGroup&&(v.focusBorder?u.setFocusToElement(v,this.exportButtonProxy.buttonElement):w&&w.keyboardNavigation.tabindexContainer.focus())},m.prototype.proxyMenuButton=function(){var u=this.chart,v=this.proxyProvider,w=y(u);(function(S){var x=S.options.exporting,c=y(S);return!!(x&&x.enabled!==!1&&x.accessibility&&x.accessibility.enabled&&c&&c.element)})(u)&&w&&(this.exportButtonProxy=v.addProxyElement("chartMenu",{click:w},{"aria-label":u.langFormat("accessibility.exporting.menuButtonLabel",{chart:u,chartTitle:E(u)}),"aria-expanded":!1,title:u.options.lang.contextButtonTitle||null}))},m.prototype.createProxyGroup=function(){this.chart&&this.proxyProvider&&this.proxyProvider.addGroup("chartMenu","div")},m.prototype.addAccessibleContextMenuAttribs=function(){var u=this.chart,v=u.exportDivElements;if(v&&v.length){v.forEach(function(S){S&&(S.tagName!=="LI"||S.children&&S.children.length?S.setAttribute("aria-hidden","true"):S.setAttribute("tabindex",-1))});var w=v[0]&&v[0].parentNode;w&&I(w,{"aria-hidden":void 0,"aria-label":u.langFormat("accessibility.exporting.chartMenuLabel",{chart:u}),role:"list"})}},m.prototype.getKeyboardNavigation=function(){var u=this.keyCodes,v=this.chart,w=this;return new V(v,{keyCodeMap:[[[u.left,u.up],function(){return w.onKbdPrevious(this)}],[[u.right,u.down],function(){return w.onKbdNext(this)}],[[u.enter,u.space],function(){return w.onKbdClick(this)}]],validate:function(){return!!v.exporting&&v.options.exporting.enabled!==!1&&v.options.exporting.accessibility.enabled!==!1},init:function(){var S=w.exportButtonProxy,x=w.chart.exportingGroup;S&&x&&v.setFocusToElement(x,S.buttonElement)},terminate:function(){v.hideExportMenu()}})},m.prototype.onKbdPrevious=function(u){for(var v=this.chart,w=v.options.accessibility,S=u.response,x=v.highlightedExportItemIx||0;x--;)if(v.highlightExportItem(x))return S.success;return w.keyboardNavigation.wrapAround?(v.highlightLastExportItem(),S.success):S.prev},m.prototype.onKbdNext=function(u){for(var v=this.chart,w=v.options.accessibility,S=u.response,x=(v.highlightedExportItemIx||0)+1;x<v.exportDivElements.length;++x)if(v.highlightExportItem(x))return S.success;return w.keyboardNavigation.wrapAround?(v.highlightExportItem(0),S.success):S.next},m.prototype.onKbdClick=function(u){var v=this.chart,w=v.exportDivElements[v.highlightedExportItemIx],S=y(v).element;return v.openMenu?this.fakeClickEvent(w):(this.fakeClickEvent(S),v.highlightExportItem(0)),u.response.success},m}(H);return function(f){var m=[];function u(){var x=y(this);if(x){var c=x.element;c.onclick&&c.onclick(P("click"))}}function v(){var x=this,c=x.exportDivElements;c&&x.exportContextMenu&&x.openMenu&&(c.forEach(function(g){g&&g.className==="highcharts-menu-item"&&g.onmouseout&&g.onmouseout(P("mouseout"))}),x.highlightedExportItemIx=0,x.exportContextMenu.hideMenu(),x.container.focus())}function w(x){var c=this.exportDivElements&&this.exportDivElements[x],g=this.exportDivElements&&this.exportDivElements[this.highlightedExportItemIx];if(c&&c.tagName==="LI"&&(!c.children||!c.children.length)){var r=!!(this.renderTo.getElementsByTagName("g")[0]||{}).focus;return c.focus&&r&&c.focus(),g&&g.onmouseout&&g.onmouseout(P("mouseout")),c.onmouseover&&c.onmouseover(P("mouseover")),this.highlightedExportItemIx=x,!0}return!1}function S(){var x=this;if(x.exportDivElements){for(var c=x.exportDivElements.length;c--;)if(x.highlightExportItem(c))return!0}return!1}f.compose=function(x){if(m.indexOf(x)===-1){m.push(x);var c=W.prototype;c.hideExportMenu=v,c.highlightExportItem=w,c.highlightLastExportItem=S,c.showExportMenu=u}}}(h||(h={})),h}),it(B,"Accessibility/KeyboardNavigation.js",[B["Core/Globals.js"],B["Accessibility/Components/MenuComponent.js"],B["Core/Utilities.js"],B["Accessibility/Utils/EventProvider.js"],B["Accessibility/Utils/HTMLUtilities.js"]],function(W,R,H,V,$){var Z=W.doc,U=W.win,z=H.addEvent,I=H.fireEvent,E=$.getElement,M=$.simulatedEventTarget,P=function(){function y(h,f){this.chart=void 0,this.components=void 0,this.currentModuleIx=NaN,this.eventProvider=void 0,this.exitAnchor=void 0,this.modules=[],this.tabindexContainer=void 0,this.init(h,f)}return y.prototype.init=function(h,f){var m=this,u=this.eventProvider=new V;this.chart=h,this.components=f,this.modules=[],this.currentModuleIx=0,this.update(),u.addEvent(this.tabindexContainer,"keydown",function(v){return m.onKeydown(v)}),u.addEvent(this.tabindexContainer,"focus",function(v){return m.onFocus(v)}),["mouseup","touchend"].forEach(function(v){return u.addEvent(Z,v,function(w){return m.onMouseUp(w)})}),["mousedown","touchstart"].forEach(function(v){return u.addEvent(h.renderTo,v,function(){m.isClickingChart=!0})}),u.addEvent(h.renderTo,"mouseover",function(){m.pointerIsOverChart=!0}),u.addEvent(h.renderTo,"mouseout",function(){m.pointerIsOverChart=!1})},y.prototype.update=function(h){var f=this.chart.options.accessibility,m=f&&f.keyboardNavigation,u=this.components;this.updateContainerTabindex(),m&&m.enabled&&h&&h.length?(this.modules=h.reduce(function(v,w){var S=u[w].getKeyboardNavigation();return v.concat(S)},[]),this.updateExitAnchor()):(this.modules=[],this.currentModuleIx=0,this.removeExitAnchor())},y.prototype.updateExitAnchor=function(){var h="highcharts-end-of-chart-marker-".concat(this.chart.index),f=E(h);this.removeExitAnchor(),f?(this.makeElementAnExitAnchor(f),this.exitAnchor=f):this.createExitAnchor()},y.prototype.move=function(h){var f=this.modules&&this.modules[this.currentModuleIx];f&&f.terminate&&f.terminate(h),this.chart.focusElement&&this.chart.focusElement.removeFocusBorder(),this.currentModuleIx+=h;var m=this.modules&&this.modules[this.currentModuleIx];if(m){if(m.validate&&!m.validate())return this.move(h);if(m.init)return m.init(h),!0}return this.currentModuleIx=0,this.exiting=!0,h>0?this.exitAnchor&&this.exitAnchor.focus():this.tabindexContainer.focus(),!1},y.prototype.onFocus=function(h){var f=this.chart,m=h.relatedTarget&&f.container.contains(h.relatedTarget);if(!(this.exiting||this.tabbingInBackwards||this.isClickingChart||m)){var u=this.getFirstValidModuleIx();u!==null&&(this.currentModuleIx=u,this.modules[u].init(1))}this.exiting=!1},y.prototype.onMouseUp=function(h){if(delete this.isClickingChart,!this.keyboardReset&&h.relatedTarget!==M){var f=this.chart;if(!this.pointerIsOverChart){var m=this.modules&&this.modules[this.currentModuleIx||0];m&&m.terminate&&m.terminate(),this.currentModuleIx=0}f.focusElement&&(f.focusElement.removeFocusBorder(),delete f.focusElement),this.keyboardReset=!0}},y.prototype.onKeydown=function(h){var f,m=h||U.event,u=this.modules&&this.modules.length&&this.modules[this.currentModuleIx];if(this.keyboardReset=!1,this.exiting=!1,u){var v=u.run(m);v===u.response.success?f=!0:v===u.response.prev?f=this.move(-1):v===u.response.next&&(f=this.move(1)),f&&(m.preventDefault(),m.stopPropagation())}},y.prototype.updateContainerTabindex=function(){var h,f=this.chart.options.accessibility,m=f&&f.keyboardNavigation,u=!(m&&m.enabled===!1),v=this.chart,w=v.container;v.renderTo.hasAttribute("tabindex")?(w.removeAttribute("tabindex"),h=v.renderTo):h=w,this.tabindexContainer=h;var S=h.getAttribute("tabindex");u&&!S?h.setAttribute("tabindex","0"):u||v.container.removeAttribute("tabindex")},y.prototype.createExitAnchor=function(){var h=this.chart,f=this.exitAnchor=Z.createElement("div");h.renderTo.appendChild(f),this.makeElementAnExitAnchor(f)},y.prototype.makeElementAnExitAnchor=function(h){var f=this.tabindexContainer.getAttribute("tabindex")||0;h.setAttribute("class","highcharts-exit-anchor"),h.setAttribute("tabindex",f),h.setAttribute("aria-hidden",!1),this.addExitAnchorEventsToEl(h)},y.prototype.removeExitAnchor=function(){this.exitAnchor&&this.exitAnchor.parentNode&&(this.exitAnchor.parentNode.removeChild(this.exitAnchor),delete this.exitAnchor)},y.prototype.addExitAnchorEventsToEl=function(h){var f=this.chart,m=this;this.eventProvider.addEvent(h,"focus",function(u){var v=u||U.event,w=!(v.relatedTarget&&f.container.contains(v.relatedTarget)||m.exiting);if(f.focusElement&&delete f.focusElement,w){if(m.tabbingInBackwards=!0,m.tabindexContainer.focus(),delete m.tabbingInBackwards,v.preventDefault(),m.modules&&m.modules.length){m.currentModuleIx=m.modules.length-1;var S=m.modules[m.currentModuleIx];S&&S.validate&&!S.validate()?m.move(-1):S&&S.init(-1)}}else m.exiting=!1})},y.prototype.getFirstValidModuleIx=function(){for(var h=this.modules.length,f=0;f<h;++f){var m=this.modules[f];if(!m.validate||m.validate())return f}return null},y.prototype.destroy=function(){this.removeExitAnchor(),this.eventProvider.removeAddedEvents(),this.chart.container.removeAttribute("tabindex")},y}();return function(y){var h=[];function f(){var u=this;I(this,"dismissPopupContent",{},function(){u.tooltip&&u.tooltip.hide(0),u.hideExportMenu()})}function m(u){(u.which||u.keyCode)===27&&W.charts&&W.charts.forEach(function(v){v&&v.dismissPopupContent&&v.dismissPopupContent()})}y.compose=function(u){return R.compose(u),h.indexOf(u)===-1&&(h.push(u),u.prototype.dismissPopupContent=f),h.indexOf(Z)===-1&&(h.push(Z),z(Z,"keydown",m)),u}}(P||(P={})),P}),it(B,"Accessibility/Components/LegendComponent.js",[B["Core/Animation/AnimationUtilities.js"],B["Core/Globals.js"],B["Core/Legend/Legend.js"],B["Core/Utilities.js"],B["Accessibility/AccessibilityComponent.js"],B["Accessibility/KeyboardNavigationHandler.js"],B["Accessibility/Utils/ChartUtilities.js"],B["Accessibility/Utils/HTMLUtilities.js"]],function(W,R,H,V,$,Z,U,z){var I,E=this&&this.__extends||(I=function(a,t){return I=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,o){i.__proto__=o}||function(i,o){for(var e in o)o.hasOwnProperty(e)&&(i[e]=o[e])},I(a,t)},function(a,t){function i(){this.constructor=a}I(a,t),a.prototype=t===null?Object.create(t):(i.prototype=t.prototype,new i)}),M=W.animObject,P=R.doc,y=V.addEvent,h=V.fireEvent,f=V.isNumber,m=V.pick,u=V.syncTimeout,v=U.getChartTitle,w=z.stripHTMLTagsFromString,S=z.addClass,x=z.removeClass;function c(a){var t=a.legend&&a.legend.allItems,i=a.options.legend.accessibility||{},o=a.colorAxis&&a.colorAxis.some(function(e){return!e.dataClasses||!e.dataClasses.length});return!(!t||!t.length||o||i.enabled===!1)}function g(a,t){var i=t.legendItem||{};t.setState(a?"hover":"",!0);for(var o=0,e=["group","label","symbol"];o<e.length;o++){var s=i[e[o]],n=s&&s.element||s;n&&h(n,a?"mouseover":"mouseout")}}var r=function(a){function t(){var i=a!==null&&a.apply(this,arguments)||this;return i.highlightedLegendItemIx=NaN,i.proxyGroup=null,i}return E(t,a),t.prototype.init=function(){var i=this;this.recreateProxies(),this.addEvent(H,"afterScroll",function(){this.chart===i.chart&&(i.proxyProvider.updateGroupProxyElementPositions("legend"),i.updateLegendItemProxyVisibility(),i.highlightedLegendItemIx>-1&&this.chart.highlightLegendItem(i.highlightedLegendItemIx))}),this.addEvent(H,"afterPositionItem",function(o){this.chart===i.chart&&this.chart.renderer&&i.updateProxyPositionForItem(o.item)}),this.addEvent(H,"afterRender",function(){this.chart===i.chart&&this.chart.renderer&&i.recreateProxies()&&u(function(){return i.proxyProvider.updateGroupProxyElementPositions("legend")},M(m(this.chart.renderer.globalAnimation,!0)).duration)})},t.prototype.updateLegendItemProxyVisibility=function(){var i,o=this.chart,e=o.legend,s=e.allItems||[],n=e.currentPage||1,l=e.clipHeight||0;s.forEach(function(b){if(b.a11yProxyElement){var k=e.pages&&e.pages.length,D=b.a11yProxyElement.element,p=!1;if(i=b.legendItem||{},k){var C=i.pageIx||0;p=(i.y||0)+(i.label?Math.round(i.label.getBBox().height):0)-e.pages[C]>l||C!==n-1}p?o.styledMode?S(D,"highcharts-a11y-invisible"):D.style.visibility="hidden":(x(D,"highcharts-a11y-invisible"),D.style.visibility="")}})},t.prototype.onChartRender=function(){c(this.chart)||this.removeProxies()},t.prototype.highlightAdjacentLegendPage=function(i){var o=this.chart,e=o.legend,s=(e.currentPage||1)+i,n=e.pages||[];if(s>0&&s<=n.length)for(var l=0,b=0,k=e.allItems;b<k.length;b++)((k[b].legendItem||{}).pageIx||0)+1===s&&o.highlightLegendItem(l)&&(this.highlightedLegendItemIx=l),++l},t.prototype.updateProxyPositionForItem=function(i){i.a11yProxyElement&&i.a11yProxyElement.refreshPosition()},t.prototype.recreateProxies=function(){var i=P.activeElement,o=this.proxyGroup,e=i&&o&&o.contains(i);return this.removeProxies(),!!c(this.chart)&&(this.addLegendProxyGroup(),this.proxyLegendItems(),this.updateLegendItemProxyVisibility(),this.updateLegendTitle(),e&&this.chart.highlightLegendItem(this.highlightedLegendItemIx),!0)},t.prototype.removeProxies=function(){this.proxyProvider.removeGroup("legend")},t.prototype.updateLegendTitle=function(){var i=this.chart,o=w((i.legend&&i.legend.options.title&&i.legend.options.title.text||"").replace(/<br ?\/?>/g," ")),e=i.langFormat("accessibility.legend.legendLabel"+(o?"":"NoTitle"),{chart:i,legendTitle:o,chartTitle:v(i)});this.proxyProvider.updateGroupAttrs("legend",{"aria-label":e})},t.prototype.addLegendProxyGroup=function(){var i=this.chart.options.accessibility.landmarkVerbosity==="all"?"region":null;this.proxyGroup=this.proxyProvider.addGroup("legend","ul",{"aria-label":"_placeholder_",role:i})},t.prototype.proxyLegendItems=function(){var i,o=this;((this.chart.legend||{}).allItems||[]).forEach(function(e){(i=e.legendItem||{}).label&&i.label.element&&o.proxyLegendItem(e)})},t.prototype.proxyLegendItem=function(i){var o=i.legendItem||{};if(o.label&&o.group){var e=this.chart.langFormat("accessibility.legend.legendItem",{chart:this.chart,itemName:w(i.name),item:i}),s={tabindex:-1,"aria-pressed":i.visible,"aria-label":e},n=o.group.div?o.label:o.group;i.a11yProxyElement=this.proxyProvider.addProxyElement("legend",{click:o.label,visual:n.element},s)}},t.prototype.getKeyboardNavigation=function(){var i=this.keyCodes,o=this,e=this.chart;return new Z(e,{keyCodeMap:[[[i.left,i.right,i.up,i.down],function(s){return o.onKbdArrowKey(this,s)}],[[i.enter,i.space],function(){return o.onKbdClick(this)}],[[i.pageDown,i.pageUp],function(s){var n=s===i.pageDown?1:-1;return o.highlightAdjacentLegendPage(n),this.response.success}]],validate:function(){return o.shouldHaveLegendNavigation()},init:function(){e.highlightLegendItem(0),o.highlightedLegendItemIx=0},terminate:function(){o.highlightedLegendItemIx=-1,e.legend.allItems.forEach(function(s){return g(!1,s)})}})},t.prototype.onKbdArrowKey=function(i,o){var e=this.keyCodes,s=i.response,n=this.chart,l=n.options.accessibility,b=n.legend.allItems.length,k=o===e.left||o===e.up?-1:1;return n.highlightLegendItem(this.highlightedLegendItemIx+k)?(this.highlightedLegendItemIx+=k,s.success):(b>1&&l.keyboardNavigation.wrapAround&&i.init(k),s.success)},t.prototype.onKbdClick=function(i){var o=this.chart.legend.allItems[this.highlightedLegendItemIx];return o&&o.a11yProxyElement&&o.a11yProxyElement.click(),i.response.success},t.prototype.shouldHaveLegendNavigation=function(){if(!c(this.chart))return!1;var i=this.chart,o=(i.options.legend||{}).accessibility||{};return!!(i.legend.display&&o.keyboardNavigation&&o.keyboardNavigation.enabled)},t}($);return function(a){var t=[];function i(e){var s,n,l,b,k=this.legend.allItems,D=this.accessibility&&this.accessibility.components.legend.highlightedLegendItemIx,p=k[e],C=p.legendItem||{};if(p){f(D)&&k[D]&&g(!1,k[D]),n=e,l=((s=this.legend).allItems[n].legendItem||{}).pageIx,b=s.currentPage,l!==void 0&&l+1!==b&&s.scroll(1+l-b);var A=C.label,N=p.a11yProxyElement&&p.a11yProxyElement.buttonElement;return A&&A.element&&N&&this.setFocusToElement(A,N),g(!0,p),!0}return!1}function o(e){var s=this.chart.options.accessibility,n=e.item;s.enabled&&n&&n.a11yProxyElement&&n.a11yProxyElement.buttonElement.setAttribute("aria-pressed",e.visible?"true":"false")}a.compose=function(e,s){t.indexOf(e)===-1&&(t.push(e),e.prototype.highlightLegendItem=i),t.indexOf(s)===-1&&(t.push(s),y(s,"afterColorizeItem",o))}}(r||(r={})),r}),it(B,"Accessibility/Components/SeriesComponent/SeriesDescriber.js",[B["Accessibility/Components/AnnotationsA11y.js"],B["Accessibility/Utils/ChartUtilities.js"],B["Core/FormatUtilities.js"],B["Accessibility/Utils/HTMLUtilities.js"],B["Core/Utilities.js"]],function(W,R,H,V,$){var Z=W.getPointAnnotationTexts,U=R.getAxisDescription,z=R.getSeriesFirstPointElement,I=R.getSeriesA11yElement,E=R.unhideChartElementFromAT,M=H.format,P=H.numberFormat,y=V.reverseChildNodes,h=V.stripHTMLTagsFromString,f=$.find,m=$.isNumber,u=$.pick,v=$.defined;function w(t){var i=t.chart.options.accessibility.series.pointDescriptionEnabledThreshold;return!!(i!==!1&&t.points&&t.points.length>=i)}function S(t,i){var o=t.series,e=o.chart,s=e.options.accessibility.point||{},n=o.options.accessibility&&o.options.accessibility.point||{},l=o.tooltipOptions||{},b=e.options.lang;return m(i)?P(i,n.valueDecimals||s.valueDecimals||l.valueDecimals||-1,b.decimalPoint,b.accessibility.thousandsSep||b.thousandsSep):i}function x(t,i){var o=t[i];return t.chart.langFormat("accessibility.series."+i+"Description",{name:U(o),series:t})}function c(t){var i=t.series,o=i.chart.options.accessibility.point||{},e=i.chart.options.accessibility&&i.chart.options.accessibility.point||{},s=i.tooltipOptions||{},n=e.valuePrefix||o.valuePrefix||s.valuePrefix||"",l=e.valueSuffix||o.valueSuffix||s.valueSuffix||"",b=S(t,t[t.value!==void 0?"value":"y"]);return t.isNull?i.chart.langFormat("accessibility.series.nullPointValue",{point:t}):i.pointArrayMap?function(k,D,p){var C=D||"",A=p||"";return k.series.pointArrayMap.reduce(function(N,_){return N+(N.length?", ":"")+function(L){var O=S(k,u(k[L],k.options[L]));return L+": "+C+O+A}(_)},"")}(t,n,l):n+b+l}function g(t){var i=t.series,o=i.chart.series.length>1||i.options.name,e=function(D){var p=D.series,C=p.chart,A=p.options.accessibility,N=A&&A.point&&A.point.valueDescriptionFormat||C.options.accessibility.point.valueDescriptionFormat,_=u(p.xAxis&&p.xAxis.options.accessibility&&p.xAxis.options.accessibility.enabled,!C.angular),L=_?function(j){var Y=function(Q){var J=Q.series,rt=J.chart,lt=J.options.accessibility&&J.options.accessibility.point||{},gt=rt.options.accessibility.point||{},mt=J.xAxis&&J.xAxis.dateTime;if(mt){var bt=mt.getXDateFormat(Q.x||0,rt.options.tooltip.dateTimeLabelFormats),yt=lt.dateFormatter&&lt.dateFormatter(Q)||gt.dateFormatter&&gt.dateFormatter(Q)||lt.dateFormat||gt.dateFormat||bt;return rt.time.dateFormat(yt,Q.x||0,void 0)}}(j),X=(j.series.xAxis||{}).categories&&v(j.category)&&(""+j.category).replace("<br/>"," "),G=v(j.id)&&(""+j.id).indexOf("highcharts-")<0,q="x, "+j.x;return j.name||Y||X||(G?j.id:q)}(D):"",O={point:D,index:v(D.index)?D.index+1:"",xDescription:L,value:c(D),separator:_?", ":""};return M(N,O,C)}(t),s=t.options&&t.options.accessibility&&t.options.accessibility.description,n=s?" "+s:"",l=o?" "+i.name+".":"",b=function(D){var p=D.series.chart,C=Z(D),A={point:D,annotations:C};return C.length?p.langFormat("accessibility.series.pointAnnotationsDescription",A):""}(t),k=b?" "+b:"";return t.accessibility=t.accessibility||{},t.accessibility.valueDescription=e,e+n+l+k}function r(t){var i=function(s){var n=s.options.accessibility||{};return!w(s)&&!n.exposeAsGroupOnly}(t),o=function(s){var n=s.chart.options.accessibility.keyboardNavigation.seriesNavigation;return!(!s.points||!(s.points.length<n.pointNavigationEnabledThreshold||n.pointNavigationEnabledThreshold===!1))}(t),e=t.chart.options.accessibility.point.describeNull;(i||o)&&t.points.forEach(function(s){var n=s.graphic&&s.graphic.element||function(b){var k=b.series,D=k&&k.chart,p=k&&k.is("sunburst"),C=b.isNull,A=D&&D.options.accessibility.point.describeNull;return C&&!p&&A}(s)&&function(b){var k=b.series,D=function(N){var _=N.index;return N.series&&N.series.data&&v(_)&&f(N.series.data,function(L){return!!(L&&L.index!==void 0&&L.index>_&&L.graphic&&L.graphic.element)})||null}(b),p=D&&D.graphic,C=p?p.parentGroup:k.graph||k.group,A=function(N,_){var L=N.series.chart.renderer.rect(_.x,_.y,1,1);return L.attr({class:"highcharts-a11y-mock-point",fill:"none",opacity:0,"fill-opacity":0,"stroke-opacity":0}),L}(b,D?{x:u(b.plotX,D.plotX,0),y:u(b.plotY,D.plotY,0)}:{x:u(b.plotX,0),y:u(b.plotY,0)});if(C&&C.element)return b.graphic=A,b.hasMockGraphic=!0,A.add(C),C.element.insertBefore(A.element,p?p.element:null),A.element}(s),l=s.options&&s.options.accessibility&&s.options.accessibility.enabled===!1;if(n){if(s.isNull&&!e)return void n.setAttribute("aria-hidden",!0);n.setAttribute("tabindex","-1"),t.chart.styledMode||(n.style.outline="none"),i&&!l?function(b,k){var D=b.series,p=D.chart.options.accessibility.point||{},C=D.options.accessibility&&D.options.accessibility.point||{},A=h(C.descriptionFormatter&&C.descriptionFormatter(b)||p.descriptionFormatter&&p.descriptionFormatter(b)||g(b));k.setAttribute("role","img"),k.setAttribute("aria-label",A)}(s,n):n.setAttribute("aria-hidden",!0)}})}function a(t){var i=t.chart,o=i.types||[],e=function(N){var _=(N.options.accessibility||{}).description;return _&&N.chart.langFormat("accessibility.series.description",{description:_,series:N})||""}(t),s=function(N){return i[N]&&i[N].length>1&&t[N]},n=t.index+1,l=x(t,"xAxis"),b=x(t,"yAxis"),k={seriesNumber:n,series:t,chart:i},D=o.length>1?"Combination":"",p=i.langFormat("accessibility.series.summary."+t.type+D,k)||i.langFormat("accessibility.series.summary.default"+D,k),C=(s("yAxis")?" "+b+".":"")+(s("xAxis")?" "+l+".":""),A=i.options.accessibility.series.descriptionFormat||"";return M(A,{seriesDescription:p,authorDescription:e?" "+e:"",axisDescription:C,series:t,chart:i,seriesNumber:n},void 0)}return{defaultPointDescriptionFormatter:g,defaultSeriesDescriptionFormatter:a,describeSeries:function(t){var i=t.chart,o=z(t),e=I(t),s=i.is3d&&i.is3d();e&&(e.lastChild!==o||s||y(e),r(t),E(i,e),function(n){var l=n.chart,b=l.options.chart,k=b.options3d&&b.options3d.enabled,D=l.series.length>1,p=l.options.accessibility.series.describeSingleSeries,C=(n.options.accessibility||{}).exposeAsGroupOnly;return!(k&&D)&&(D||p||C||w(n))}(t)?function(n,l){var b=n.options.accessibility||{},k=n.chart.options.accessibility,D=k.landmarkVerbosity;b.exposeAsGroupOnly?l.setAttribute("role","img"):D==="all"?l.setAttribute("role","region"):l.setAttribute("role","group"),l.setAttribute("tabindex","-1"),n.chart.styledMode||(l.style.outline="none"),l.setAttribute("aria-label",h(k.series.descriptionFormatter&&k.series.descriptionFormatter(n)||a(n)))}(t,e):e.removeAttribute("aria-label"))}}}),it(B,"Accessibility/Components/SeriesComponent/NewDataAnnouncer.js",[B["Core/Globals.js"],B["Core/Utilities.js"],B["Accessibility/Utils/Announcer.js"],B["Accessibility/Utils/ChartUtilities.js"],B["Accessibility/Utils/EventProvider.js"],B["Accessibility/Components/SeriesComponent/SeriesDescriber.js"]],function(W,R,H,V,$,Z){var U=R.addEvent,z=R.defined,I=V.getChartTitle,E=Z.defaultPointDescriptionFormatter,M=Z.defaultSeriesDescriptionFormatter;function P(h){return!!h.options.accessibility.announceNewData.enabled}var y=function(){function h(f){this.announcer=void 0,this.dirty={allSeries:{}},this.eventProvider=void 0,this.lastAnnouncementTime=0,this.chart=f}return h.prototype.init=function(){var f=this.chart,m=f.options.accessibility.announceNewData.interruptUser?"assertive":"polite";this.lastAnnouncementTime=0,this.dirty={allSeries:{}},this.eventProvider=new $,this.announcer=new H(f,m),this.addEventListeners()},h.prototype.destroy=function(){this.eventProvider.removeAddedEvents(),this.announcer.destroy()},h.prototype.addEventListeners=function(){var f=this,m=this.chart,u=this.eventProvider;u.addEvent(m,"afterApplyDrilldown",function(){f.lastAnnouncementTime=0}),u.addEvent(m,"afterAddSeries",function(v){f.onSeriesAdded(v.series)}),u.addEvent(m,"redraw",function(){f.announceDirtyData()})},h.prototype.onSeriesAdded=function(f){P(this.chart)&&(this.dirty.hasDirty=!0,this.dirty.allSeries[f.name+f.index]=f,this.dirty.newSeries=z(this.dirty.newSeries)?void 0:f)},h.prototype.announceDirtyData=function(){var f,m,u=this.chart,v=this;if(u.options.accessibility.announceNewData&&this.dirty.hasDirty){var w=this.dirty.newPoint;w&&(w=(m=(f=w).series.data.filter(function(S){return f.x===S.x&&f.y===S.y})).length===1?m[0]:f),this.queueAnnouncement(Object.keys(this.dirty.allSeries).map(function(S){return v.dirty.allSeries[S]}),this.dirty.newSeries,w),this.dirty={allSeries:{}}}},h.prototype.queueAnnouncement=function(f,m,u){var v,w,S,x=this,c=this.chart.options.accessibility.announceNewData;if(c.enabled){var g=+new Date,r=g-this.lastAnnouncementTime,a=Math.max(0,c.minAnnounceInterval-r),t=(v=this.queuedAnnouncement&&this.queuedAnnouncement.series,w=f,S=(v||[]).concat(w||[]).reduce(function(o,e){return o[e.name+e.index]=e,o},{}),Object.keys(S).map(function(o){return S[o]})),i=this.buildAnnouncementMessage(t,m,u);i&&(this.queuedAnnouncement&&clearTimeout(this.queuedAnnouncementTimer),this.queuedAnnouncement={time:g,message:i,series:t},this.queuedAnnouncementTimer=setTimeout(function(){x&&x.announcer&&(x.lastAnnouncementTime=+new Date,x.announcer.announce(x.queuedAnnouncement.message),delete x.queuedAnnouncement,delete x.queuedAnnouncementTimer)},a))}},h.prototype.buildAnnouncementMessage=function(f,m,u){var v=this.chart,w=v.options.accessibility.announceNewData;if(w.announcementFormatter){var S=w.announcementFormatter(f,m,u);if(S!==!1)return S.length?S:null}var x=W.charts&&W.charts.length>1?"Multiple":"Single",c=m?"newSeriesAnnounce"+x:u?"newPointAnnounce"+x:"newDataAnnounce",g=I(v);return v.langFormat("accessibility.announceNewData."+c,{chartTitle:g,seriesDesc:m?M(m):null,pointDesc:u?E(u):null,point:u,series:m})},h}();return function(h){function f(u){var v=this.chart,w=this.newDataAnnouncer;w&&w.chart===v&&P(v)&&(w.dirty.newPoint=z(w.dirty.newPoint)?void 0:u.point)}function m(){var u=this.chart,v=this.newDataAnnouncer;v&&v.chart===u&&P(u)&&(v.dirty.hasDirty=!0,v.dirty.allSeries[this.name+this.index]=this)}h.composedClasses=[],h.compose=function(u){h.composedClasses.indexOf(u)===-1&&(h.composedClasses.push(u),U(u,"addPoint",f),U(u,"updatedData",m))}}(y||(y={})),y}),it(B,"Accessibility/ProxyElement.js",[B["Core/Globals.js"],B["Core/Utilities.js"],B["Accessibility/Utils/EventProvider.js"],B["Accessibility/Utils/ChartUtilities.js"],B["Accessibility/Utils/HTMLUtilities.js"]],function(W,R,H,V,$){var Z=W.doc,U=R.attr,z=R.css,I=R.merge,E=V.fireEventOnWrappedOrUnwrappedElement,M=$.cloneMouseEvent,P=$.cloneTouchEvent,y=$.getFakeMouseEvent,h=$.removeElement;return function(){function f(m,u,v,w){this.chart=m,this.target=u,this.groupType=v;var S=v==="ul";this.eventProvider=new H;var x=S?Z.createElement("li"):null,c=this.buttonElement=Z.createElement("button");m.styledMode||this.hideButtonVisually(c),x?(S&&!m.styledMode&&(x.style.listStyle="none"),x.appendChild(c),this.element=x):this.element=c,this.updateTarget(u,w)}return f.prototype.click=function(){var m=this.getTargetPosition();m.x+=m.width/2,m.y+=m.height/2;var u=y("click",m);E(this.target.click,u)},f.prototype.updateTarget=function(m,u){this.target=m,this.updateCSSClassName();var v=u||{};Object.keys(v).forEach(function(w){v[w]===null&&delete v[w]}),U(this.buttonElement,I({"aria-label":this.getTargetAttr(m.click,"aria-label")},v)),this.eventProvider.removeAddedEvents(),this.addProxyEventsToButton(this.buttonElement,m.click),this.refreshPosition()},f.prototype.refreshPosition=function(){var m=this.getTargetPosition();z(this.buttonElement,{width:(m.width||1)+"px",height:(m.height||1)+"px",left:(Math.round(m.x)||0)+"px",top:(Math.round(m.y)||0)+"px"})},f.prototype.remove=function(){this.eventProvider.removeAddedEvents(),h(this.element)},f.prototype.updateCSSClassName=function(){var m=function(x){return x.indexOf("highcharts-no-tooltip")>-1},u=this.chart.legend,v=u.group&&u.group.div,w=m(v&&v.className||""),S=m(this.getTargetAttr(this.target.click,"class")||"");this.buttonElement.className=w||S?"highcharts-a11y-proxy-button highcharts-no-tooltip":"highcharts-a11y-proxy-button"},f.prototype.addProxyEventsToButton=function(m,u){var v=this;["click","touchstart","touchend","touchcancel","touchmove","mouseover","mouseenter","mouseleave","mouseout"].forEach(function(w){var S=w.indexOf("touch")===0;v.eventProvider.addEvent(m,w,function(x){var c=S?P(x):M(x);u&&E(u,c),x.stopPropagation(),S||x.preventDefault()},{passive:!1})})},f.prototype.hideButtonVisually=function(m){z(m,{borderWidth:0,backgroundColor:"transparent",cursor:"pointer",outline:"none",opacity:.001,filter:"alpha(opacity=1)",zIndex:999,overflow:"hidden",padding:0,margin:0,display:"block",position:"absolute","-ms-filter":"progid:DXImageTransform.Microsoft.Alpha(Opacity=1)"})},f.prototype.getTargetPosition=function(){var m=this.target.click,u=m.element?m.element:m,v=this.target.visual||u;if(this.chart.renderTo&&v&&v.getBoundingClientRect){var w=v.getBoundingClientRect(),S=this.chart.pointer.getChartPosition();return{x:(w.left-S.left)/S.scaleX,y:(w.top-S.top)/S.scaleY,width:w.right/S.scaleX-w.left/S.scaleX,height:w.bottom/S.scaleY-w.top/S.scaleY}}return{x:0,y:0,width:1,height:1}},f.prototype.getTargetAttr=function(m,u){return m.element?m.element.getAttribute(u):m.getAttribute(u)},f}()}),it(B,"Accessibility/ProxyProvider.js",[B["Core/Globals.js"],B["Core/Utilities.js"],B["Accessibility/Utils/ChartUtilities.js"],B["Accessibility/Utils/DOMElementProvider.js"],B["Accessibility/Utils/HTMLUtilities.js"],B["Accessibility/ProxyElement.js"]],function(W,R,H,V,$,Z){var U=W.doc,z=R.attr,I=R.css,E=H.unhideChartElementFromAT,M=$.removeElement,P=$.removeChildNodes;return function(){function y(h){this.chart=h,this.domElementProvider=new V,this.groups={},this.groupOrder=[],this.beforeChartProxyPosContainer=this.createProxyPosContainer("before"),this.afterChartProxyPosContainer=this.createProxyPosContainer("after"),this.update()}return y.prototype.addProxyElement=function(h,f,m){var u=this.groups[h];if(!u)throw new Error("ProxyProvider.addProxyElement: Invalid group key "+h);var v=new Z(this.chart,f,u.type,m);return u.proxyContainerElement.appendChild(v.element),u.proxyElements.push(v),v},y.prototype.addGroup=function(h,f,m){var u=this.groups[h];if(u)return u.groupElement;var v,w=this.domElementProvider.createElement(f);return m&&m.role&&f!=="div"?(v=this.domElementProvider.createElement("div")).appendChild(w):v=w,v.className="highcharts-a11y-proxy-group highcharts-a11y-proxy-group-"+h.replace(/\W/g,"-"),this.groups[h]={proxyContainerElement:w,groupElement:v,type:f,proxyElements:[]},z(v,m||{}),f==="ul"&&w.setAttribute("role","list"),this.afterChartProxyPosContainer.appendChild(v),this.updateGroupOrder(this.groupOrder),v},y.prototype.updateGroupAttrs=function(h,f){var m=this.groups[h];if(!m)throw new Error("ProxyProvider.updateGroupAttrs: Invalid group key "+h);z(m.groupElement,f)},y.prototype.updateGroupOrder=function(h){var f=this;if(this.groupOrder=h.slice(),!this.isDOMOrderGroupOrder()){var m=h.indexOf("series"),u=m>-1?h.slice(0,m):h,v=m>-1?h.slice(m+1):[],w=U.activeElement;["before","after"].forEach(function(S){var x=f[S==="before"?"beforeChartProxyPosContainer":"afterChartProxyPosContainer"],c=S==="before"?u:v;P(x),c.forEach(function(g){var r=f.groups[g];r&&x.appendChild(r.groupElement)})}),(this.beforeChartProxyPosContainer.contains(w)||this.afterChartProxyPosContainer.contains(w))&&w&&w.focus&&w.focus()}},y.prototype.clearGroup=function(h){var f=this.groups[h];if(!f)throw new Error("ProxyProvider.clearGroup: Invalid group key "+h);P(f.proxyContainerElement)},y.prototype.removeGroup=function(h){var f=this.groups[h];f&&(M(f.groupElement),delete this.groups[h])},y.prototype.update=function(){this.updatePosContainerPositions(),this.updateGroupOrder(this.groupOrder),this.updateProxyElementPositions()},y.prototype.updateProxyElementPositions=function(){Object.keys(this.groups).forEach(this.updateGroupProxyElementPositions.bind(this))},y.prototype.updateGroupProxyElementPositions=function(h){var f=this.groups[h];f&&f.proxyElements.forEach(function(m){return m.refreshPosition()})},y.prototype.destroy=function(){this.domElementProvider.destroyCreatedElements()},y.prototype.createProxyPosContainer=function(h){var f=this.domElementProvider.createElement("div");return f.setAttribute("aria-hidden","false"),f.className="highcharts-a11y-proxy-container"+(h?"-"+h:""),I(f,{top:"0",left:"0"}),this.chart.styledMode||(f.style.whiteSpace="nowrap",f.style.position="absolute"),f},y.prototype.getCurrentGroupOrderInDOM=function(){var h=this,f=function(w){for(var S=Object.keys(h.groups),x=S.length;x--;){var c=S[x],g=h.groups[c];if(g&&w===g.groupElement)return c}},m=function(w){for(var S=[],x=w.children,c=0;c<x.length;++c){var g=f(x[c]);g&&S.push(g)}return S},u=m(this.beforeChartProxyPosContainer),v=m(this.afterChartProxyPosContainer);return u.push("series"),u.concat(v)},y.prototype.isDOMOrderGroupOrder=function(){var h=this,f=this.getCurrentGroupOrderInDOM(),m=this.groupOrder.filter(function(v){return v==="series"||!!h.groups[v]}),u=f.length;if(u!==m.length)return!1;for(;u--;)if(f[u]!==m[u])return!1;return!0},y.prototype.updatePosContainerPositions=function(){var h=this.chart;if(!h.renderer.forExport){var f=h.renderer.box;h.container.insertBefore(this.afterChartProxyPosContainer,f.nextSibling),h.container.insertBefore(this.beforeChartProxyPosContainer,f),E(this.chart,this.afterChartProxyPosContainer),E(this.chart,this.beforeChartProxyPosContainer)}},y}()}),it(B,"Stock/RangeSelector/RangeSelectorDefaults.js",[],function(){return{lang:{rangeSelectorZoom:"Zoom",rangeSelectorFrom:"",rangeSelectorTo:"→"},rangeSelector:{allButtonsEnabled:!1,buttons:void 0,buttonSpacing:5,dropdown:"responsive",enabled:void 0,verticalAlign:"top",buttonTheme:{width:28,height:18,padding:2,zIndex:7},floating:!1,x:0,y:0,height:void 0,inputBoxBorderColor:"none",inputBoxHeight:17,inputBoxWidth:void 0,inputDateFormat:"%b %e, %Y",inputDateParser:void 0,inputEditDateFormat:"%Y-%m-%d",inputEnabled:!0,inputPosition:{align:"right",x:0,y:0},inputSpacing:5,selected:void 0,buttonPosition:{align:"left",x:0,y:0},inputStyle:{color:"#335cad",cursor:"pointer"},labelStyle:{color:"#666666"}}}}),it(B,"Stock/RangeSelector/RangeSelectorComposition.js",[B["Core/Defaults.js"],B["Stock/RangeSelector/RangeSelectorDefaults.js"],B["Core/Utilities.js"]],function(W,R,H){var V,$=W.defaultOptions,Z=W.setOptions,U=H.addEvent,z=H.defined,I=H.extend,E=H.find,M=H.isNumber,P=H.merge,y=H.pick,h=[],f=[];function m(){var r,a,t=this.range,i=t.type,o=this.max,e=this.chart.time,s=function(l,b){var k=i==="year"?"FullYear":"Month",D=new e.Date(l),p=e.get(k,D);return e.set(k,D,p+b),p===e.get(k,D)&&e.set("Date",D,0),D.getTime()-l};M(t)?(r=o-t,a=t):t&&(r=o+s(o,-(t.count||1)),this.chart&&(this.chart.fixedRange=o-r));var n=y(this.dataMin,Number.MIN_VALUE);return M(r)||(r=n),r<=n&&(r=n,a===void 0&&(a=s(r,t.count)),this.newMax=Math.min(r+a,y(this.dataMax,Number.MAX_VALUE))),M(o)?!M(t)&&t&&t._offsetMin&&(r+=t._offsetMin):r=void 0,r}function u(){this.options.rangeSelector&&this.options.rangeSelector.enabled&&(this.rangeSelector=new V(this))}function v(){var r=this,a=r.axes,t=r.rangeSelector;if(t){M(t.deferredYTDClick)&&(t.clickButton(t.deferredYTDClick),delete t.deferredYTDClick),a.forEach(function(o){o.updateNames(),o.setScale()}),r.getAxisMargins(),t.render();var i=t.options.verticalAlign;t.options.floating||(i==="bottom"?this.extraBottomMargin=!0:i!=="middle"&&(this.extraTopMargin=!0))}}function w(r){var a,t,i,o,e=r.rangeSelector,s=function(){e&&(a=r.xAxis[0].getExtremes(),t=r.legend,o=e&&e.options.verticalAlign,M(a.min)&&e.render(a.min,a.max),t.display&&o==="top"&&o===t.options.verticalAlign&&(i=P(r.spacingBox),t.options.layout==="vertical"?i.y=r.plotTop:i.y+=e.getHeight(),t.group.placed=!1,t.align(i)))};e&&(E(h,function(n){return n[0]===r})||h.push([r,[U(r.xAxis[0],"afterSetExtremes",function(n){e&&e.render(n.min,n.max)}),U(r,"redraw",s)]]),s())}function S(){for(var r=0,a=h.length;r<a;++r){var t=h[r];if(t[0]===this)return t[1].forEach(function(i){return i()}),void h.splice(r,1)}}function x(){var r=this.rangeSelector;if(r){var a=r.getHeight();this.extraTopMargin&&(this.plotTop+=a),this.extraBottomMargin&&(this.marginBottom+=a)}}function c(){var r=this.rangeSelector;if(r&&!r.options.floating){r.render();var a=r.options.verticalAlign;a==="bottom"?this.extraBottomMargin=!0:a!=="middle"&&(this.extraTopMargin=!0)}}function g(r){var a=r.options.rangeSelector,t=this.extraBottomMargin,i=this.extraTopMargin,o=this.rangeSelector;if(a&&a.enabled&&!z(o)&&this.options.rangeSelector&&(this.options.rangeSelector.enabled=!0,this.rangeSelector=o=new V(this)),this.extraBottomMargin=!1,this.extraTopMargin=!1,o){w(this);var e=a&&a.verticalAlign||o.options&&o.options.verticalAlign;o.options.floating||(e==="bottom"?this.extraBottomMargin=!0:e!=="middle"&&(this.extraTopMargin=!0)),this.extraBottomMargin===t&&this.extraTopMargin===i||(this.isDirtyBox=!0)}}return{compose:function(r,a,t){V=t,f.indexOf(r)===-1&&(f.push(r),r.prototype.minFromRange=m),f.indexOf(a)===-1&&(f.push(a),U(a,"afterGetContainer",u),U(a,"beforeRender",v),U(a,"destroy",S),U(a,"getMargins",x),U(a,"render",c),U(a,"update",g),a.prototype.callbacks.push(w)),f.indexOf(Z)===-1&&(I($,{rangeSelector:R.rangeSelector}),I($.lang,R.lang))}}}),it(B,"Stock/RangeSelector/RangeSelector.js",[B["Core/Axis/Axis.js"],B["Core/Defaults.js"],B["Core/Globals.js"],B["Stock/RangeSelector/RangeSelectorComposition.js"],B["Core/Renderer/SVG/SVGElement.js"],B["Core/Utilities.js"]],function(W,R,H,V,$,Z){var U=R.defaultOptions,z=Z.addEvent,I=Z.createElement,E=Z.css,M=Z.defined,P=Z.destroyObjectProperties,y=Z.discardElement,h=Z.extend,f=Z.fireEvent,m=Z.isNumber,u=Z.merge,v=Z.objectEach,w=Z.pad,S=Z.pick,x=Z.pInt,c=Z.splat,g=function(){function r(a){this.buttons=void 0,this.buttonOptions=r.prototype.defaultButtons,this.initialButtonGroupWidth=0,this.options=void 0,this.chart=a,this.init(a)}return r.compose=function(a,t){V.compose(a,t,r)},r.prototype.clickButton=function(a,t){var i,o,e,s,n,l,b,k=this,D=k.chart,p=k.buttonOptions[a],C=D.xAxis[0],A=D.scroller&&D.scroller.getUnionExtremes()||C||{},N=p.type,_=p.dataGrouping,L=A.dataMin,O=A.dataMax,j=C&&Math.round(Math.min(C.max,S(O,C.max))),Y=p._range,X=!0;if(L!==null&&O!==null){if(D.fixedRange=Y,k.setSelected(a),_&&(this.forcedDataGrouping=!0,W.prototype.setDataGrouping.call(C||{chart:this.chart},_,!1),this.frozenStates=p.preserveDataGrouping),N==="month"||N==="year")C?(l={range:p,max:j,chart:D,dataMin:L,dataMax:O},i=C.minFromRange.call(l),m(l.newMax)&&(j=l.newMax),X=!1):Y=p;else if(Y)i=Math.max(j-Y,L),j=Math.min(i+Y,O),X=!1;else if(N==="ytd"){if(!C)return void(k.deferredYTDClick=a);O!==void 0&&L!==void 0||(L=Number.MAX_VALUE,O=Number.MIN_VALUE,D.series.forEach(function(G){var q=G.xData;q&&(L=Math.min(q[0],L),O=Math.max(q[q.length-1],O))}),t=!1),i=e=(b=k.getYTDExtremes(O,L,D.time.useUTC)).min,j=b.max}else N==="all"&&C&&(D.navigator&&D.navigator.baseSeries[0]&&(D.navigator.baseSeries[0].xAxis.options.range=void 0),i=L,j=O);X&&p._offsetMin&&M(i)&&(i+=p._offsetMin),p._offsetMax&&M(j)&&(j+=p._offsetMax),this.dropdown&&(this.dropdown.selectedIndex=a+1),C?C.setExtremes(i,j,S(t,!0),void 0,{trigger:"rangeSelectorButton",rangeSelectorButton:p}):(o=c(D.options.xAxis)[0],n=o.range,o.range=Y,s=o.min,o.min=e,z(D,"load",function(){o.range=n,o.min=s})),f(this,"afterBtnClick")}},r.prototype.setSelected=function(a){this.selected=this.options.selected=a},r.prototype.init=function(a){var t=this,i=a.options.rangeSelector,o=i.buttons||t.defaultButtons.slice(),e=i.selected,s=function(){var n=t.minInput,l=t.maxInput;n&&n.blur&&f(n,"blur"),l&&l.blur&&f(l,"blur")};t.chart=a,t.options=i,t.buttons=[],t.buttonOptions=o,this.eventsToUnbind=[],this.eventsToUnbind.push(z(a.container,"mousedown",s)),this.eventsToUnbind.push(z(a,"resize",s)),o.forEach(t.computeButtonRange),e!==void 0&&o[e]&&this.clickButton(e,!1),this.eventsToUnbind.push(z(a,"load",function(){a.xAxis&&a.xAxis[0]&&z(a.xAxis[0],"setExtremes",function(n){this.max-this.min!==a.fixedRange&&n.trigger!=="rangeSelectorButton"&&n.trigger!=="updatedData"&&t.forcedDataGrouping&&!t.frozenStates&&this.setDataGrouping(!1,!1)})}))},r.prototype.updateButtonStates=function(){var a=this,t=this.chart,i=this.dropdown,o=t.xAxis[0],e=Math.round(o.max-o.min),s=!o.hasVisibleSeries,n=864e5,l=t.scroller&&t.scroller.getUnionExtremes()||o,b=l.dataMin,k=l.dataMax,D=a.getYTDExtremes(k,b,t.time.useUTC),p=D.min,C=D.max,A=a.selected,N=a.options.allButtonsEnabled,_=a.buttons,L=m(A);a.buttonOptions.forEach(function(O,j){var Y=O._range,X=O.type,G=O.count||1,q=_[j],Q=O._offsetMax-O._offsetMin,J=j===A,rt=Y>k-b,lt=Y<o.minRange,gt=0,mt=!1,bt=!1,yt=Y===e;(X==="month"||X==="year")&&e+36e5>={month:28,year:365}[X]*n*G-Q&&e-36e5<={month:31,year:366}[X]*n*G+Q?yt=!0:X==="ytd"?(yt=C-p+Q===e,mt=!J):X==="all"&&(yt=o.max-o.min>=k-b,bt=!J&&L&&yt);var ct=!N&&(rt||lt||bt||s),et=J&&yt||yt&&!L&&!mt||J&&a.frozenStates;ct?gt=3:et&&(L=!0,gt=2),q.state!==gt&&(q.setState(gt),i&&(i.options[j+1].disabled=ct,gt===2&&(i.selectedIndex=j+1)),gt===0&&A===j&&a.setSelected())})},r.prototype.computeButtonRange=function(a){var t=a.type,i=a.count||1,o={millisecond:1,second:1e3,minute:6e4,hour:36e5,day:864e5,week:6048e5};o[t]?a._range=o[t]*i:t!=="month"&&t!=="year"||(a._range=24*{month:30,year:365}[t]*36e5*i),a._offsetMin=S(a.offsetMin,0),a._offsetMax=S(a.offsetMax,0),a._range+=a._offsetMax-a._offsetMin},r.prototype.getInputValue=function(a){var t=a==="min"?this.minInput:this.maxInput,i=this.chart.options.rangeSelector,o=this.chart.time;return t?(t.type==="text"&&i.inputDateParser||this.defaultInputDateParser)(t.value,o.useUTC,o):0},r.prototype.setInputValue=function(a,t){var i=this.options,o=this.chart.time,e=a==="min"?this.minInput:this.maxInput,s=a==="min"?this.minDateBox:this.maxDateBox;if(e){var n=e.getAttribute("data-hc-time"),l=M(n)?Number(n):void 0;if(M(t)){var b=l;M(b)&&e.setAttribute("data-hc-time-previous",b),e.setAttribute("data-hc-time",t),l=t}e.value=o.dateFormat(this.inputTypeFormats[e.type]||i.inputEditDateFormat,l),s&&s.attr({text:o.dateFormat(i.inputDateFormat,l)})}},r.prototype.setInputExtremes=function(a,t,i){var o=a==="min"?this.minInput:this.maxInput;if(o){var e=this.inputTypeFormats[o.type],s=this.chart.time;if(e){var n=s.dateFormat(e,t);o.min!==n&&(o.min=n);var l=s.dateFormat(e,i);o.max!==l&&(o.max=l)}}},r.prototype.showInput=function(a){var t=a==="min"?this.minDateBox:this.maxDateBox,i=a==="min"?this.minInput:this.maxInput;if(i&&t&&this.inputGroup){var o=i.type==="text",e=this.inputGroup,s=e.translateX,n=e.translateY,l=this.options.inputBoxWidth;E(i,{width:o?t.width+(l?-2:20)+"px":"auto",height:o?t.height-2+"px":"auto",border:"2px solid silver"}),E(i,o&&l?{left:s+t.x+"px",top:n+"px"}:{left:Math.min(Math.round(t.x+s-(i.offsetWidth-t.width)/2),this.chart.chartWidth-i.offsetWidth)+"px",top:n-(i.offsetHeight-t.height)/2+"px"})}},r.prototype.hideInput=function(a){var t=a==="min"?this.minInput:this.maxInput;t&&E(t,{top:"-9999em",border:0,width:"1px",height:"1px"})},r.prototype.defaultInputDateParser=function(a,t,i){var o,e=a.split("/").join("-").split(" ").join("T");if(e.indexOf("T")===-1&&(e+="T00:00"),t)e+="Z";else if(H.isSafari&&(!((o=e).length>6)||o.lastIndexOf("-")!==o.length-6&&o.lastIndexOf("+")!==o.length-6)){var s=new Date(e).getTimezoneOffset()/60;e+=s<=0?"+".concat(w(-s),":00"):"-".concat(w(s),":00")}var n=Date.parse(e);if(!m(n)){var l=a.split("-");n=Date.UTC(x(l[0]),x(l[1])-1,x(l[2]))}return i&&t&&m(n)&&(n+=i.getTimezoneOffset(n)),n},r.prototype.drawInput=function(a){var t=this,i=t.chart,o=t.div,e=t.inputGroup,s=this,n=i.renderer.style||{},l=i.renderer,b=i.options.rangeSelector,k=U.lang,D=a==="min";function p(){var O=s.maxInput,j=s.minInput,Y=i.xAxis[0],X=i.scroller&&i.scroller.xAxis?i.scroller.xAxis:Y,G=X.dataMin,q=X.dataMax,Q=s.getInputValue(a);Q!==Number(_.getAttribute("data-hc-time-previous"))&&m(Q)&&(_.setAttribute("data-hc-time-previous",Q),D&&O&&m(G)?Q>Number(O.getAttribute("data-hc-time"))?Q=void 0:Q<G&&(Q=G):j&&m(q)&&(Q<Number(j.getAttribute("data-hc-time"))?Q=void 0:Q>q&&(Q=q)),Q!==void 0&&Y.setExtremes(D?Q:Y.min,D?Y.max:Q,void 0,void 0,{trigger:"rangeSelectorInput"}))}var C=k[D?"rangeSelectorFrom":"rangeSelectorTo"]||"",A=l.label(C,0).addClass("highcharts-range-label").attr({padding:C?2:0,height:C?b.inputBoxHeight:0}).add(e),N=l.label("",0).addClass("highcharts-range-input").attr({padding:2,width:b.inputBoxWidth,height:b.inputBoxHeight,"text-align":"center"}).on("click",function(){s.showInput(a),s[a+"Input"].focus()});i.styledMode||N.attr({stroke:b.inputBoxBorderColor,"stroke-width":1}),N.add(e);var _=I("input",{name:a,className:"highcharts-range-selector"},void 0,o);_.setAttribute("type",function(O){if(O.indexOf("%L")!==-1)return"text";var j=["a","A","d","e","w","b","B","m","o","y","Y"].some(function(X){return O.indexOf("%"+X)!==-1}),Y=["H","k","I","l","M","S"].some(function(X){return O.indexOf("%"+X)!==-1});return j&&Y?"datetime-local":j?"date":Y?"time":"text"}(b.inputDateFormat||"%b %e, %Y")),i.styledMode||(A.css(u(n,b.labelStyle)),N.css(u({color:"#333333"},n,b.inputStyle)),E(_,h({position:"absolute",border:0,boxShadow:"0 0 15px rgba(0,0,0,0.3)",width:"1px",height:"1px",padding:0,textAlign:"center",fontSize:n.fontSize,fontFamily:n.fontFamily,top:"-9999em"},b.inputStyle))),_.onfocus=function(){s.showInput(a)},_.onblur=function(){_===H.doc.activeElement&&p(),s.hideInput(a),s.setInputValue(a),_.blur()};var L=!1;return _.onchange=function(){L||(p(),s.hideInput(a),_.blur())},_.onkeypress=function(O){O.keyCode===13&&p()},_.onkeydown=function(O){L=!0,O.keyCode!==38&&O.keyCode!==40||p()},_.onkeyup=function(){L=!1},{dateBox:N,input:_,label:A}},r.prototype.getPosition=function(){var a=this.chart,t=a.options.rangeSelector,i=t.verticalAlign==="top"?a.plotTop-a.axisOffset[0]:0;return{buttonTop:i+t.buttonPosition.y,inputTop:i+t.inputPosition.y-10}},r.prototype.getYTDExtremes=function(a,t,i){var o=this.chart.time,e=new o.Date(a),s=o.get("FullYear",e),n=i?o.Date.UTC(s,0,1):+new o.Date(s,0,1),l=Math.max(t,n),b=e.getTime();return{max:Math.min(a||b,b),min:l}},r.prototype.render=function(a,t){var i=this.chart,o=i.renderer,e=i.container,s=i.options,n=s.rangeSelector,l=S(s.chart.style&&s.chart.style.zIndex,0)+1,b=n.inputEnabled,k=this.rendered;if(n.enabled!==!1){if(!k&&(this.group=o.g("range-selector-group").attr({zIndex:7}).add(),this.div=I("div",void 0,{position:"relative",height:0,zIndex:l}),this.buttonOptions.length&&this.renderButtons(),e.parentNode&&e.parentNode.insertBefore(this.div,e),b)){this.inputGroup=o.g("input-group").add(this.group);var D=this.drawInput("min");this.minDateBox=D.dateBox,this.minLabel=D.label,this.minInput=D.input;var p=this.drawInput("max");this.maxDateBox=p.dateBox,this.maxLabel=p.label,this.maxInput=p.input}if(b){this.setInputValue("min",a),this.setInputValue("max",t);var C=i.scroller&&i.scroller.getUnionExtremes()||i.xAxis[0]||{};if(M(C.dataMin)&&M(C.dataMax)){var A=i.xAxis[0].minRange||0;this.setInputExtremes("min",C.dataMin,Math.min(C.dataMax,this.getInputValue("max"))-A),this.setInputExtremes("max",Math.max(C.dataMin,this.getInputValue("min"))+A,C.dataMax)}if(this.inputGroup){var N=0;[this.minLabel,this.minDateBox,this.maxLabel,this.maxDateBox].forEach(function(_){if(_){var L=_.getBBox().width;L&&(_.attr({x:N}),N+=L+n.inputSpacing)}})}}this.alignElements(),this.rendered=!0}},r.prototype.renderButtons=function(){var a=this,t=this,i=t.buttons,o=t.chart,e=t.options,s=U.lang,n=o.renderer,l=u(e.buttonTheme),b=l&&l.states,k=l.width||28;delete l.width,delete l.states,this.buttonGroup=n.g("range-selector-buttons").add(this.group);var D=this.dropdown=I("select",void 0,{position:"absolute",width:"1px",height:"1px",padding:0,border:0,top:"-9999em",cursor:"pointer",opacity:1e-4},this.div);z(D,"touchstart",function(){D.style.fontSize="16px"}),[[H.isMS?"mouseover":"mouseenter"],[H.isMS?"mouseout":"mouseleave"],["change","click"]].forEach(function(p){var C=p[0],A=p[1];z(D,C,function(){var N=i[a.currentButtonIndex()];N&&f(N.element,A||C)})}),this.zoomText=n.label(s&&s.rangeSelectorZoom||"",0).attr({padding:e.buttonTheme.padding,height:e.buttonTheme.height,paddingLeft:0,paddingRight:0}).add(this.buttonGroup),this.chart.styledMode||(this.zoomText.css(e.labelStyle),l["stroke-width"]=S(l["stroke-width"],0)),I("option",{textContent:this.zoomText.textStr,disabled:!0},void 0,D),this.buttonOptions.forEach(function(p,C){I("option",{textContent:p.title||p.text},void 0,D),i[C]=n.button(p.text,0,0,function(A){var N,_=p.events&&p.events.click;_&&(N=_.call(p,A)),N!==!1&&a.clickButton(C),a.isActive=!0},l,b&&b.hover,b&&b.select,b&&b.disabled).attr({"text-align":"center",width:k}).add(a.buttonGroup),p.title&&i[C].attr("title",p.title)})},r.prototype.alignElements=function(){var a=this,t=this,i=t.buttonGroup,o=t.buttons,e=t.chart,s=t.group,n=t.inputGroup,l=t.options,b=t.zoomText,k=e.options,D=k.exporting&&k.exporting.enabled!==!1&&k.navigation&&k.navigation.buttonOptions,p=l.buttonPosition,C=l.inputPosition,A=l.verticalAlign,N=function(mt,bt){return D&&a.titleCollision(e)&&A==="top"&&bt.align==="right"&&bt.y-mt.getBBox().height-12<(D.y||0)+(D.height||0)+e.spacing[0]?-40:0},_=e.plotLeft;if(s&&p&&C){var L=p.x-e.spacing[3];if(i){if(this.positionButtons(),!this.initialButtonGroupWidth){var O=0;b&&(O+=b.getBBox().width+5),o.forEach(function(mt,bt){O+=mt.width,bt!==o.length-1&&(O+=l.buttonSpacing)}),this.initialButtonGroupWidth=O}_-=e.spacing[3],this.updateButtonStates();var j=N(i,p);this.alignButtonGroup(j),s.placed=i.placed=e.hasLoaded}var Y=0;n&&(Y=N(n,C),C.align==="left"?L=_:C.align==="right"&&(L=-Math.max(e.axisOffset[1],-Y)),n.align({y:C.y,width:n.getBBox().width,align:C.align,x:C.x+L-2},!0,e.spacingBox),n.placed=e.hasLoaded),this.handleCollision(Y),s.align({verticalAlign:A},!0,e.spacingBox);var X=s.alignAttr.translateY,G=s.getBBox().height+20,q=0;if(A==="bottom"){var Q=e.legend&&e.legend.options;q=X-(G=G+(Q&&Q.verticalAlign==="bottom"&&Q.enabled&&!Q.floating?e.legend.legendHeight+S(Q.margin,10):0)-20)-(l.floating?0:l.y)-(e.titleOffset?e.titleOffset[2]:0)-10}A==="top"?(l.floating&&(q=0),e.titleOffset&&e.titleOffset[0]&&(q=e.titleOffset[0]),q+=e.margin[0]-e.spacing[0]||0):A==="middle"&&(C.y===p.y?q=X:(C.y||p.y)&&(C.y<0||p.y<0?q-=Math.min(C.y,p.y):q=X-G)),s.translate(l.x,l.y+Math.floor(q));var J=this,rt=J.minInput,lt=J.maxInput,gt=J.dropdown;l.inputEnabled&&rt&&lt&&(rt.style.marginTop=s.translateY+"px",lt.style.marginTop=s.translateY+"px"),gt&&(gt.style.marginTop=s.translateY+"px")}},r.prototype.alignButtonGroup=function(a,t){var i=this,o=i.chart,e=i.options,s=i.buttonGroup,n=e.buttonPosition,l=o.plotLeft-o.spacing[3],b=n.x-o.spacing[3];n.align==="right"?b+=a-l:n.align==="center"&&(b-=l/2),s&&s.align({y:n.y,width:S(t,this.initialButtonGroupWidth),align:n.align,x:b},!0,o.spacingBox)},r.prototype.positionButtons=function(){var a=this,t=a.buttons,i=a.chart,o=a.options,e=a.zoomText,s=i.hasLoaded?"animate":"attr",n=o.buttonPosition,l=i.plotLeft,b=l;e&&e.visibility!=="hidden"&&(e[s]({x:S(l+n.x,l)}),b+=n.x+e.getBBox().width+5);for(var k=0,D=this.buttonOptions.length;k<D;++k)t[k].visibility!=="hidden"?(t[k][s]({x:b}),b+=t[k].width+o.buttonSpacing):t[k][s]({x:l})},r.prototype.handleCollision=function(a){var t=this,i=this,o=i.chart,e=i.buttonGroup,s=i.inputGroup,n=this.options,l=n.buttonPosition,b=n.dropdown,k=n.inputPosition,D=function(){var A=0;return t.buttons.forEach(function(N){var _=N.getBBox();_.width>A&&(A=_.width)}),A},p=function(A){if(s&&e){var N=s.alignAttr.translateX+s.alignOptions.x-a+s.getBBox().x+2,_=s.alignOptions.width,L=e.alignAttr.translateX+e.getBBox().x;return L+A>N&&N+_>L&&l.y<k.y+s.getBBox().height}return!1},C=function(){s&&e&&s.attr({translateX:s.alignAttr.translateX+(o.axisOffset[1]>=-a?0:-a),translateY:s.alignAttr.translateY+e.getBBox().height+10})};if(e){if(b==="always")return this.collapseButtons(a),void(p(D())&&C());b==="never"&&this.expandButtons()}s&&e?k.align===l.align||p(this.initialButtonGroupWidth+20)?b==="responsive"?(this.collapseButtons(a),p(D())&&C()):C():b==="responsive"&&this.expandButtons():e&&b==="responsive"&&(this.initialButtonGroupWidth>o.plotWidth?this.collapseButtons(a):this.expandButtons())},r.prototype.collapseButtons=function(a){var t=this,i=t.buttons,o=t.buttonOptions,e=t.chart,s=t.dropdown,n=t.options,l=t.zoomText,b=e.userOptions.rangeSelector&&e.userOptions.rangeSelector.buttonTheme||{},k=function(C){return{text:C?C+" ▾":"▾",width:"auto",paddingLeft:S(n.buttonTheme.paddingLeft,b.padding,8),paddingRight:S(n.buttonTheme.paddingRight,b.padding,8)}};l&&l.hide();var D=!1;o.forEach(function(C,A){var N=i[A];N.state!==2?N.hide():(N.show(),N.attr(k(C.text)),D=!0)}),D||(s&&(s.selectedIndex=0),i[0].show(),i[0].attr(k(this.zoomText&&this.zoomText.textStr)));var p=n.buttonPosition.align;this.positionButtons(),p!=="right"&&p!=="center"||this.alignButtonGroup(a,i[this.currentButtonIndex()].getBBox().width),this.showDropdown()},r.prototype.expandButtons=function(){var a=this,t=a.buttons,i=a.buttonOptions,o=a.options,e=a.zoomText;this.hideDropdown(),e&&e.show(),i.forEach(function(s,n){var l=t[n];l.show(),l.attr({text:s.text,width:o.buttonTheme.width||28,paddingLeft:S(o.buttonTheme.paddingLeft,"unset"),paddingRight:S(o.buttonTheme.paddingRight,"unset")}),l.state<2&&l.setState(0)}),this.positionButtons()},r.prototype.currentButtonIndex=function(){var a=this.dropdown;return a&&a.selectedIndex>0?a.selectedIndex-1:0},r.prototype.showDropdown=function(){var a=this,t=a.buttonGroup,i=a.buttons,o=a.chart,e=a.dropdown;if(t&&e){var s=t.translateX,n=t.translateY,l=i[this.currentButtonIndex()].getBBox();E(e,{left:o.plotLeft+s+"px",top:n+.5+"px",width:l.width+"px",height:l.height+"px"}),this.hasVisibleDropdown=!0}},r.prototype.hideDropdown=function(){var a=this.dropdown;a&&(E(a,{top:"-9999em",width:"1px",height:"1px"}),this.hasVisibleDropdown=!1)},r.prototype.getHeight=function(){var a=this.options,t=this.group,i=a.inputPosition,o=a.buttonPosition,e=a.y,s=o.y,n=i.y,l=0;if(a.height)return a.height;this.alignElements(),l=t?t.getBBox(!0).height+13+e:0;var b=Math.min(n,s);return(n<0&&s<0||n>0&&s>0)&&(l+=Math.abs(b)),l},r.prototype.titleCollision=function(a){return!(a.options.title.text||a.options.subtitle.text)},r.prototype.update=function(a){var t=this.chart;u(!0,t.options.rangeSelector,a),this.destroy(),this.init(t),this.render()},r.prototype.destroy=function(){var a=this,t=a.minInput,i=a.maxInput;a.eventsToUnbind&&(a.eventsToUnbind.forEach(function(o){return o()}),a.eventsToUnbind=void 0),P(a.buttons),t&&(t.onfocus=t.onblur=t.onchange=null),i&&(i.onfocus=i.onblur=i.onchange=null),v(a,function(o,e){o&&e!=="chart"&&(o instanceof $?o.destroy():o instanceof window.HTMLElement&&y(o)),o!==r.prototype[e]&&(a[e]=null)},this)},r}();return h(g.prototype,{defaultButtons:[{type:"month",count:1,text:"1m",title:"View 1 month"},{type:"month",count:3,text:"3m",title:"View 3 months"},{type:"month",count:6,text:"6m",title:"View 6 months"},{type:"ytd",text:"YTD",title:"View year to date"},{type:"year",count:1,text:"1y",title:"View 1 year"},{type:"all",text:"All",title:"View all"}],inputTypeFormats:{"datetime-local":"%Y-%m-%dT%H:%M:%S",date:"%Y-%m-%d",time:"%H:%M:%S"}}),g}),it(B,"Accessibility/Components/RangeSelectorComponent.js",[B["Stock/RangeSelector/RangeSelector.js"],B["Accessibility/AccessibilityComponent.js"],B["Accessibility/Utils/ChartUtilities.js"],B["Accessibility/Utils/Announcer.js"],B["Accessibility/KeyboardNavigationHandler.js"],B["Core/Utilities.js"]],function(W,R,H,V,$,Z){var U,z=this&&this.__extends||(U=function(h,f){return U=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(m,u){m.__proto__=u}||function(m,u){for(var v in u)u.hasOwnProperty(v)&&(m[v]=u[v])},U(h,f)},function(h,f){function m(){this.constructor=h}U(h,f),h.prototype=f===null?Object.create(f):(m.prototype=f.prototype,new m)}),I=H.unhideChartElementFromAT,E=H.getAxisRangeDescription,M=Z.addEvent,P=Z.attr,y=function(h){function f(){var m=h!==null&&h.apply(this,arguments)||this;return m.announcer=void 0,m}return z(f,h),f.prototype.init=function(){var m=this.chart;this.announcer=new V(m,"polite")},f.prototype.onChartUpdate=function(){var m=this.chart,u=this,v=m.rangeSelector;v&&(this.updateSelectorVisibility(),this.setDropdownAttrs(),v.buttons&&v.buttons.length&&v.buttons.forEach(function(w){u.setRangeButtonAttrs(w)}),v.maxInput&&v.minInput&&["minInput","maxInput"].forEach(function(w,S){var x=v[w];x&&(I(m,x),u.setRangeInputAttrs(x,"accessibility.rangeSelector."+(S?"max":"min")+"InputLabel"))}))},f.prototype.updateSelectorVisibility=function(){var m=this.chart,u=m.rangeSelector,v=u&&u.dropdown,w=u&&u.buttons||[],S=function(x){return x.setAttribute("aria-hidden",!0)};u&&u.hasVisibleDropdown&&v?(I(m,v),w.forEach(function(x){return S(x.element)})):(v&&S(v),w.forEach(function(x){return I(m,x.element)}))},f.prototype.setDropdownAttrs=function(){var m=this.chart,u=m.rangeSelector&&m.rangeSelector.dropdown;if(u){var v=m.langFormat("accessibility.rangeSelector.dropdownLabel",{rangeTitle:m.options.lang.rangeSelectorZoom});u.setAttribute("aria-label",v),u.setAttribute("tabindex",-1)}},f.prototype.setRangeButtonAttrs=function(m){P(m.element,{tabindex:-1,role:"button"})},f.prototype.setRangeInputAttrs=function(m,u){var v=this.chart;P(m,{tabindex:-1,"aria-label":v.langFormat(u,{chart:v})})},f.prototype.onButtonNavKbdArrowKey=function(m,u){var v=m.response,w=this.keyCodes,S=this.chart,x=S.options.accessibility.keyboardNavigation.wrapAround,c=u===w.left||u===w.up?-1:1;return S.highlightRangeSelectorButton(S.highlightedRangeSelectorItemIx+c)?v.success:x?(m.init(c),v.success):v[c>0?"next":"prev"]},f.prototype.onButtonNavKbdClick=function(m){var u=m.response,v=this.chart;return v.oldRangeSelectorItemState===3||this.fakeClickEvent(v.rangeSelector.buttons[v.highlightedRangeSelectorItemIx].element),u.success},f.prototype.onAfterBtnClick=function(){var m=this.chart,u=E(m.xAxis[0]),v=m.langFormat("accessibility.rangeSelector.clickButtonAnnouncement",{chart:m,axisRangeDescription:u});v&&this.announcer.announce(v)},f.prototype.onInputKbdMove=function(m){var u=this.chart,v=u.rangeSelector,w=u.highlightedInputRangeIx=(u.highlightedInputRangeIx||0)+m;if(w>1||w<0)u.accessibility&&(u.accessibility.keyboardNavigation.tabindexContainer.focus(),u.accessibility.keyboardNavigation.move(m));else if(v){var S=v[w?"maxDateBox":"minDateBox"],x=v[w?"maxInput":"minInput"];S&&x&&u.setFocusToElement(S,x)}},f.prototype.onInputNavInit=function(m){var u=this,v=this,w=this.chart,S=m>0?0:1,x=w.rangeSelector,c=x&&x[S?"maxDateBox":"minDateBox"],g=x&&x.minInput,r=x&&x.maxInput,a=S?r:g;if(w.highlightedInputRangeIx=S,c&&g&&r){w.setFocusToElement(c,a),this.removeInputKeydownHandler&&this.removeInputKeydownHandler();var t=function(e){(e.which||e.keyCode)===u.keyCodes.tab&&(e.preventDefault(),e.stopPropagation(),v.onInputKbdMove(e.shiftKey?-1:1))},i=M(g,"keydown",t),o=M(r,"keydown",t);this.removeInputKeydownHandler=function(){i(),o()}}},f.prototype.onInputNavTerminate=function(){var m=this.chart.rangeSelector||{};m.maxInput&&m.hideInput("max"),m.minInput&&m.hideInput("min"),this.removeInputKeydownHandler&&(this.removeInputKeydownHandler(),delete this.removeInputKeydownHandler)},f.prototype.initDropdownNav=function(){var m=this,u=this.chart,v=u.rangeSelector,w=v&&v.dropdown;v&&w&&(u.setFocusToElement(v.buttonGroup,w),this.removeDropdownKeydownHandler&&this.removeDropdownKeydownHandler(),this.removeDropdownKeydownHandler=M(w,"keydown",function(S){var x=(S.which||S.keyCode)===m.keyCodes.tab,c=u.accessibility;x&&(S.preventDefault(),S.stopPropagation(),c&&(c.keyboardNavigation.tabindexContainer.focus(),c.keyboardNavigation.move(S.shiftKey?-1:1)))}))},f.prototype.getRangeSelectorButtonNavigation=function(){var m=this.chart,u=this.keyCodes,v=this;return new $(m,{keyCodeMap:[[[u.left,u.right,u.up,u.down],function(w){return v.onButtonNavKbdArrowKey(this,w)}],[[u.enter,u.space],function(){return v.onButtonNavKbdClick(this)}]],validate:function(){return!!(m.rangeSelector&&m.rangeSelector.buttons&&m.rangeSelector.buttons.length)},init:function(w){var S=m.rangeSelector;if(S&&S.hasVisibleDropdown)v.initDropdownNav();else if(S){var x=S.buttons.length-1;m.highlightRangeSelectorButton(w>0?0:x)}},terminate:function(){v.removeDropdownKeydownHandler&&(v.removeDropdownKeydownHandler(),delete v.removeDropdownKeydownHandler)}})},f.prototype.getRangeSelectorInputNavigation=function(){var m=this.chart,u=this;return new $(m,{keyCodeMap:[],validate:function(){return function(v){return!!(v.rangeSelector&&v.rangeSelector.inputGroup&&v.rangeSelector.inputGroup.element.style.visibility!=="hidden"&&v.options.rangeSelector.inputEnabled!==!1&&v.rangeSelector.minInput&&v.rangeSelector.maxInput)}(m)},init:function(v){u.onInputNavInit(v)},terminate:function(){u.onInputNavTerminate()}})},f.prototype.getKeyboardNavigation=function(){return[this.getRangeSelectorButtonNavigation(),this.getRangeSelectorInputNavigation()]},f.prototype.destroy=function(){this.removeDropdownKeydownHandler&&this.removeDropdownKeydownHandler(),this.removeInputKeydownHandler&&this.removeInputKeydownHandler(),this.announcer&&this.announcer.destroy()},f}(R);return function(h){var f=[];function m(v){var w=this.rangeSelector&&this.rangeSelector.buttons||[],S=this.highlightedRangeSelectorItemIx,x=this.rangeSelector&&this.rangeSelector.selected;return S!==void 0&&w[S]&&S!==x&&w[S].setState(this.oldRangeSelectorItemState||0),this.highlightedRangeSelectorItemIx=v,!!w[v]&&(this.setFocusToElement(w[v].box,w[v].element),v!==x&&(this.oldRangeSelectorItemState=w[v].state,w[v].setState(1)),!0)}function u(){var v=this.chart.accessibility;if(v&&v.components.rangeSelector)return v.components.rangeSelector.onAfterBtnClick()}h.compose=function(v,w){f.indexOf(v)===-1&&(f.push(v),v.prototype.highlightRangeSelectorButton=m),f.indexOf(w)===-1&&(f.push(w),M(W,"afterBtnClick",u))}}(y||(y={})),y}),it(B,"Accessibility/Components/SeriesComponent/ForcedMarkers.js",[B["Core/Utilities.js"]],function(W){var R,H=W.addEvent,V=W.merge;return function($){var Z=[];function U(h){V(!0,h,{marker:{enabled:!0,states:{normal:{opacity:0}}}})}function z(h){return h.marker.states&&h.marker.states.normal&&h.marker.states.normal.opacity}function I(h){return!!(h._hasPointMarkers&&h.points&&h.points.length)}function E(){var h=this;h.chart.styledMode&&(h.markerGroup&&h.markerGroup[h.a11yMarkersForced?"addClass":"removeClass"]("highcharts-a11y-markers-hidden"),I(h)&&h.points.forEach(function(f){f.graphic&&(f.graphic[f.hasForcedA11yMarker?"addClass":"removeClass"]("highcharts-a11y-marker-hidden"),f.graphic[f.hasForcedA11yMarker===!1?"addClass":"removeClass"]("highcharts-a11y-marker-visible"))}))}function M(h){this.resetA11yMarkerOptions=V(h.options.marker||{},this.userOptions.marker||{})}function P(){var h=this,f=h.options;(function(m){var u=m.chart.options.accessibility.enabled,v=(m.options.accessibility&&m.options.accessibility.enabled)!==!1;return u&&v&&function(w){var S=w.chart.options.accessibility;return w.points.length<S.series.pointDescriptionEnabledThreshold||S.series.pointDescriptionEnabledThreshold===!1}(m)})(h)?(f.marker&&f.marker.enabled===!1&&(h.a11yMarkersForced=!0,U(h.options)),I(h)&&function(m){for(var u=m.points.length;u--;){var v=m.points[u],w=v.options,S=v.hasForcedA11yMarker;if(delete v.hasForcedA11yMarker,w.marker){var x=S&&z(w)===0;w.marker.enabled&&!x?(y(w),v.hasForcedA11yMarker=!1):w.marker.enabled===!1&&(U(w),v.hasForcedA11yMarker=!0)}}}(h)):h.a11yMarkersForced&&(delete h.a11yMarkersForced,function(m){var u=m.resetA11yMarkerOptions;if(u){var v=u.states&&u.states.normal&&u.states.normal.opacity;m.update({marker:{enabled:u.enabled,states:{normal:{opacity:v}}}})}}(h),delete h.resetA11yMarkerOptions)}function y(h){V(!0,h.marker,{states:{normal:{opacity:z(h)||1}}})}$.compose=function(h){Z.indexOf(h)===-1&&(Z.push(h),H(h,"afterSetOptions",M),H(h,"render",P),H(h,"afterRender",E))}}(R||(R={})),R}),it(B,"Accessibility/Components/SeriesComponent/SeriesKeyboardNavigation.js",[B["Core/Series/Point.js"],B["Core/Series/Series.js"],B["Core/Series/SeriesRegistry.js"],B["Core/Globals.js"],B["Core/Utilities.js"],B["Accessibility/KeyboardNavigationHandler.js"],B["Accessibility/Utils/EventProvider.js"],B["Accessibility/Utils/ChartUtilities.js"]],function(W,R,H,V,$,Z,U,z){var I=H.seriesTypes,E=V.doc,M=$.defined,P=$.fireEvent,y=z.getPointFromXY,h=z.getSeriesFromName,f=z.scrollToPoint;function m(r){var a=r.index,t=r.series.points,i=t.length;if(t[a]===r)return a;for(;i--;)if(t[i]===r)return i}function u(r){var a=r.chart.options.accessibility.keyboardNavigation.seriesNavigation,t=r.options.accessibility||{},i=t.keyboardNavigation;return i&&i.enabled===!1||t.enabled===!1||r.options.enableMouseTracking===!1||!r.visible||a.pointNavigationEnabledThreshold&&a.pointNavigationEnabledThreshold<=r.points.length}function v(r){var a=r.series.chart.options.accessibility,t=r.options.accessibility&&r.options.accessibility.enabled===!1;return r.isNull&&a.keyboardNavigation.seriesNavigation.skipNullPoints||r.visible===!1||r.isInside===!1||t||u(r.series)}function w(r){for(var a=r.points||[],t=a.length,i=0;i<t;++i)if(!v(a[i]))return a[i];return null}function S(r){for(var a=r.series||[],t=a.length,i=0;i<t;++i)if(!u(a[i])){var o=w(a[i]);if(o)return o}return null}function x(r){for(var a=r.series.length,t=!1;a--&&(r.highlightedPoint=r.series[a].points[r.series[a].points.length-1],!(t=r.series[a].highlightNextValidPoint())););return t}function c(r){delete r.highlightedPoint;var a=S(r);return!!a&&a.highlight()}var g=function(){function r(a,t){this.keyCodes=t,this.chart=a}return r.prototype.init=function(){var a=this,t=this.chart,i=this.eventProvider=new U;i.addEvent(R,"destroy",function(){return a.onSeriesDestroy(this)}),i.addEvent(t,"afterApplyDrilldown",function(){(function(o){var e=S(o);e&&e.highlight(!1)})(this)}),i.addEvent(t,"drilldown",function(o){var e=o.point,s=e.series;a.lastDrilledDownPoint={x:e.x,y:e.y,seriesName:s?s.name:""}}),i.addEvent(t,"drillupall",function(){setTimeout(function(){a.onDrillupAll()},10)}),i.addEvent(W,"afterSetState",function(){var o=this,e=o.graphic&&o.graphic.element,s=E.activeElement,n=s&&s.getAttribute("class"),l=n&&n.indexOf("highcharts-a11y-proxy-button")>-1;t.highlightedPoint===o&&s!==e&&!l&&e&&e.focus&&e.focus()})},r.prototype.onDrillupAll=function(){var a,t=this.lastDrilledDownPoint,i=this.chart,o=t&&h(i,t.seriesName);t&&o&&M(t.x)&&M(t.y)&&(a=y(o,t.x,t.y)),a=a||S(i),i.container&&i.container.focus(),a&&a.highlight&&a.highlight(!1)},r.prototype.getKeyboardNavigationHandler=function(){var a=this,t=this.keyCodes,i=this.chart,o=i.inverted;return new Z(i,{keyCodeMap:[[o?[t.up,t.down]:[t.left,t.right],function(e){return a.onKbdSideways(this,e)}],[o?[t.left,t.right]:[t.up,t.down],function(e){return a.onKbdVertical(this,e)}],[[t.enter,t.space],function(e,s){var n=i.highlightedPoint;return n&&(s.point=n,P(n.series,"click",s),n.firePointEvent("click")),this.response.success}],[[t.home],function(){return c(i),this.response.success}],[[t.end],function(){return x(i),this.response.success}],[[t.pageDown,t.pageUp],function(e){return i.highlightAdjacentSeries(e===t.pageDown),this.response.success}]],init:function(){return a.onHandlerInit(this)},validate:function(){return!!S(i)},terminate:function(){return a.onHandlerTerminate()}})},r.prototype.onKbdSideways=function(a,t){var i=this.keyCodes,o=t===i.right||t===i.down;return this.attemptHighlightAdjacentPoint(a,o)},r.prototype.onHandlerInit=function(a){var t=this.chart;return t.options.accessibility.keyboardNavigation.seriesNavigation.rememberPointFocus&&t.highlightedPoint?t.highlightedPoint.highlight():c(t),a.response.success},r.prototype.onKbdVertical=function(a,t){var i=this.chart,o=this.keyCodes,e=t===o.down||t===o.right,s=i.options.accessibility.keyboardNavigation.seriesNavigation;return s.mode&&s.mode==="serialize"?this.attemptHighlightAdjacentPoint(a,e):(i[i.highlightedPoint&&i.highlightedPoint.series.keyboardMoveVertical?"highlightAdjacentPointVertical":"highlightAdjacentSeries"](e),a.response.success)},r.prototype.onHandlerTerminate=function(){var a=this.chart,t=a.options.accessibility.keyboardNavigation;a.tooltip&&a.tooltip.hide(0);var i=a.highlightedPoint&&a.highlightedPoint.series;i&&i.onMouseOut&&i.onMouseOut(),a.highlightedPoint&&a.highlightedPoint.onMouseOut&&a.highlightedPoint.onMouseOut(),t.seriesNavigation.rememberPointFocus||delete a.highlightedPoint},r.prototype.attemptHighlightAdjacentPoint=function(a,t){var i=this.chart,o=i.options.accessibility.keyboardNavigation.wrapAround;return i.highlightAdjacentPoint(t)||o&&(t?c(i):x(i))?a.response.success:a.response[t?"next":"prev"]},r.prototype.onSeriesDestroy=function(a){var t=this.chart;t.highlightedPoint&&t.highlightedPoint.series===a&&(delete t.highlightedPoint,t.focusElement&&t.focusElement.removeFocusBorder())},r.prototype.destroy=function(){this.eventProvider.removeAddedEvents()},r}();return function(r){var a=[];function t(n){var l,b,k=this,D=k.series,p=k.highlightedPoint,C=p&&m(p)||0,A=p&&p.series.points||[],N=k.series&&k.series[k.series.length-1],_=N&&N.points&&N.points[N.points.length-1];if(!D[0]||!D[0].points)return!1;if(p){if(l=D[p.series.index+(n?1:-1)],!(b=A[C+(n?1:-1)])&&l&&(b=l.points[n?0:l.points.length-1]),!b)return!1}else b=n?D[0].points[0]:_;return v(b)?(u(l=b.series)?k.highlightedPoint=n?l.points[l.points.length-1]:l.points[0]:k.highlightedPoint=b,k.highlightAdjacentPoint(n)):b.highlight()}function i(n){var l,b=this.highlightedPoint,k=1/0;return!(!M(b.plotX)||!M(b.plotY))&&(this.series.forEach(function(D){u(D)||D.points.forEach(function(p){if(M(p.plotY)&&M(p.plotX)&&p!==b){var C=p.plotY-b.plotY,A=Math.abs(p.plotX-b.plotX),N=Math.abs(C)*Math.abs(C)+A*A*4;D.yAxis&&D.yAxis.reversed&&(C*=-1),C<=0&&n||C>=0&&!n||N<5||v(p)||N<k&&(k=N,l=p)}})}),!!l&&l.highlight())}function o(n){var l,b,k=this,D=k.highlightedPoint,p=k.series&&k.series[k.series.length-1],C=p&&p.points&&p.points[p.points.length-1];return k.highlightedPoint?!!(l=k.series[D.series.index+(n?-1:1)])&&!!(b=function(A,N){var _,L,O,j=1/0,Y=N.points.length,X=function(G){return!(M(G.plotX)&&M(G.plotY))};if(!X(A)){for(;Y--;)X(_=N.points[Y])||(O=(A.plotX-_.plotX)*(A.plotX-_.plotX)*4+(A.plotY-_.plotY)*(A.plotY-_.plotY)*1)<j&&(j=O,L=Y);return M(L)?N.points[L]:void 0}}(D,l))&&(u(l)?(b.highlight(),k.highlightAdjacentSeries(n)||(D.highlight(),!1)):(b.highlight(),b.series.highlightNextValidPoint())):(l=n?k.series&&k.series[0]:p,!!(b=n?l&&l.points&&l.points[0]:C)&&b.highlight())}function e(n){n===void 0&&(n=!0);var l=this.series.chart;return!this.isNull&&n?this.onMouseOver():l.tooltip&&l.tooltip.hide(0),f(this),this.graphic&&(l.setFocusToElement(this.graphic),!n&&l.focusElement&&l.focusElement.removeFocusBorder()),l.highlightedPoint=this,this}function s(){var n=this.chart.highlightedPoint,l=(n&&n.series)===this?m(n):0,b=this.points,k=b.length;if(b&&k){for(var D=l;D<k;++D)if(!v(b[D]))return b[D].highlight();for(var p=l;p>=0;--p)if(!v(b[p]))return b[p].highlight()}return!1}r.compose=function(n,l,b){if(a.indexOf(n)===-1){a.push(n);var k=n.prototype;k.highlightAdjacentPoint=t,k.highlightAdjacentPointVertical=i,k.highlightAdjacentSeries=o}if(a.indexOf(l)===-1&&(a.push(l),l.prototype.highlight=e),a.indexOf(b)===-1){a.push(b);var D=b.prototype;D.keyboardMoveVertical=!0,["column","gantt","pie"].forEach(function(p){I[p]&&(I[p].prototype.keyboardMoveVertical=!1)}),D.highlightNextValidPoint=s}}}(g||(g={})),g}),it(B,"Accessibility/Components/SeriesComponent/SeriesComponent.js",[B["Accessibility/AccessibilityComponent.js"],B["Accessibility/Utils/ChartUtilities.js"],B["Accessibility/Components/SeriesComponent/ForcedMarkers.js"],B["Accessibility/Components/SeriesComponent/NewDataAnnouncer.js"],B["Accessibility/Components/SeriesComponent/SeriesDescriber.js"],B["Accessibility/Components/SeriesComponent/SeriesKeyboardNavigation.js"],B["Core/Tooltip.js"]],function(W,R,H,V,$,Z,U){var z,I=this&&this.__extends||(z=function(y,h){return z=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,m){f.__proto__=m}||function(f,m){for(var u in m)m.hasOwnProperty(u)&&(f[u]=m[u])},z(y,h)},function(y,h){function f(){this.constructor=y}z(y,h),y.prototype=h===null?Object.create(h):(f.prototype=h.prototype,new f)}),E=R.hideSeriesFromAT,M=$.describeSeries,P=function(y){function h(){return y!==null&&y.apply(this,arguments)||this}return I(h,y),h.compose=function(f,m,u){V.compose(u),H.compose(u),Z.compose(f,m,u)},h.prototype.init=function(){this.newDataAnnouncer=new V(this.chart),this.newDataAnnouncer.init(),this.keyboardNavigation=new Z(this.chart,this.keyCodes),this.keyboardNavigation.init(),this.hideTooltipFromATWhenShown(),this.hideSeriesLabelsFromATWhenShown()},h.prototype.hideTooltipFromATWhenShown=function(){var f=this;this.addEvent(U,"refresh",function(){this.chart===f.chart&&this.label&&this.label.element&&this.label.element.setAttribute("aria-hidden",!0)})},h.prototype.hideSeriesLabelsFromATWhenShown=function(){this.addEvent(this.chart,"afterDrawSeriesLabels",function(){this.series.forEach(function(f){f.labelBySeries&&f.labelBySeries.attr("aria-hidden",!0)})})},h.prototype.onChartRender=function(){this.chart.series.forEach(function(f){(f.options.accessibility&&f.options.accessibility.enabled)!==!1&&f.visible?M(f):E(f)})},h.prototype.getKeyboardNavigation=function(){return this.keyboardNavigation.getKeyboardNavigationHandler()},h.prototype.destroy=function(){this.newDataAnnouncer.destroy(),this.keyboardNavigation.destroy()},h}(W);return P}),it(B,"Accessibility/Components/ZoomComponent.js",[B["Accessibility/AccessibilityComponent.js"],B["Accessibility/Utils/ChartUtilities.js"],B["Accessibility/Utils/HTMLUtilities.js"],B["Accessibility/KeyboardNavigationHandler.js"],B["Core/Utilities.js"]],function(W,R,H,V,$){var Z,U=this&&this.__extends||(Z=function(y,h){return Z=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,m){f.__proto__=m}||function(f,m){for(var u in m)m.hasOwnProperty(u)&&(f[u]=m[u])},Z(y,h)},function(y,h){function f(){this.constructor=y}Z(y,h),y.prototype=h===null?Object.create(h):(f.prototype=h.prototype,new f)}),z=R.unhideChartElementFromAT,I=H.getFakeMouseEvent,E=$.attr,M=$.pick,P=function(y){function h(){var f=y!==null&&y.apply(this,arguments)||this;return f.focusedMapNavButtonIx=-1,f}return U(h,y),h.prototype.init=function(){var f=this,m=this.chart;this.proxyProvider.addGroup("zoom","div"),["afterShowResetZoom","afterApplyDrilldown","drillupall"].forEach(function(u){f.addEvent(m,u,function(){f.updateProxyOverlays()})})},h.prototype.onChartUpdate=function(){var f=this.chart,m=this;f.mapNavigation&&f.mapNavigation.navButtons.forEach(function(u,v){z(f,u.element),m.setMapNavButtonAttrs(u.element,"accessibility.zoom.mapZoom"+(v?"Out":"In"))})},h.prototype.setMapNavButtonAttrs=function(f,m){var u=this.chart,v=u.langFormat(m,{chart:u});E(f,{tabindex:-1,role:"button","aria-label":v})},h.prototype.onChartRender=function(){this.updateProxyOverlays()},h.prototype.updateProxyOverlays=function(){var f=this.chart;if(this.proxyProvider.clearGroup("zoom"),f.resetZoomButton&&this.createZoomProxyButton(f.resetZoomButton,"resetZoomProxyButton",f.langFormat("accessibility.zoom.resetZoomButton",{chart:f})),f.drillUpButton&&f.breadcrumbs&&f.breadcrumbs.list){var m=f.breadcrumbs.list[f.breadcrumbs.list.length-1];this.createZoomProxyButton(f.drillUpButton,"drillUpProxyButton",f.langFormat("accessibility.drillUpButton",{chart:f,buttonText:f.breadcrumbs.getButtonText(m)}))}},h.prototype.createZoomProxyButton=function(f,m,u){this[m]=this.proxyProvider.addProxyElement("zoom",{click:f},{"aria-label":u,tabindex:-1})},h.prototype.getMapZoomNavigation=function(){var f=this.keyCodes,m=this.chart,u=this;return new V(m,{keyCodeMap:[[[f.up,f.down,f.left,f.right],function(v){return u.onMapKbdArrow(this,v)}],[[f.tab],function(v,w){return u.onMapKbdTab(this,w)}],[[f.space,f.enter],function(){return u.onMapKbdClick(this)}]],validate:function(){return function(v){return!!(v.mapView&&v.mapNavigation&&v.mapNavigation.navButtons.length)}(m)},init:function(v){return u.onMapNavInit(v)}})},h.prototype.onMapKbdArrow=function(f,m){var u=this.chart,v=this.keyCodes,w=u.container,S=m===v.up||m===v.down,x=m===v.left||m===v.up?1:-1,c=(S?u.plotHeight:u.plotWidth)/10*x,g=10*Math.random(),r={x:w.offsetLeft+u.plotLeft+u.plotWidth/2+g,y:w.offsetTop+u.plotTop+u.plotHeight/2+g},a=S?{x:r.x,y:r.y+c}:{x:r.x+c,y:r.y};return[I("mousedown",r),I("mousemove",a),I("mouseup",a)].forEach(function(t){return w.dispatchEvent(t)}),f.response.success},h.prototype.onMapKbdTab=function(f,m){var u=this.chart,v=f.response,w=m.shiftKey,S=w&&!this.focusedMapNavButtonIx||!w&&this.focusedMapNavButtonIx;if(u.mapNavigation.navButtons[this.focusedMapNavButtonIx].setState(0),S)return u.mapView&&u.mapView.zoomBy(),v[w?"prev":"next"];this.focusedMapNavButtonIx+=w?-1:1;var x=u.mapNavigation.navButtons[this.focusedMapNavButtonIx];return u.setFocusToElement(x.box,x.element),x.setState(2),v.success},h.prototype.onMapKbdClick=function(f){var m=this.chart.mapNavigation.navButtons[this.focusedMapNavButtonIx].element;return this.fakeClickEvent(m),f.response.success},h.prototype.onMapNavInit=function(f){var m=this.chart,u=m.mapNavigation.navButtons[0],v=m.mapNavigation.navButtons[1],w=f>0?u:v;m.setFocusToElement(w.box,w.element),w.setState(2),this.focusedMapNavButtonIx=f>0?0:1},h.prototype.simpleButtonNavigation=function(f,m,u){var v=this.keyCodes,w=this,S=this.chart;return new V(S,{keyCodeMap:[[[v.tab,v.up,v.down,v.left,v.right],function(x,c){var g=x===v.tab&&c.shiftKey||x===v.left||x===v.up;return this.response[g?"prev":"next"]}],[[v.space,v.enter],function(){var x=u(this,S);return M(x,this.response.success)}]],validate:function(){return S[f]&&S[f].box&&w[m].buttonElement},init:function(){S.setFocusToElement(S[f].box,w[m].buttonElement)}})},h.prototype.getKeyboardNavigation=function(){return[this.simpleButtonNavigation("resetZoomButton","resetZoomProxyButton",function(f,m){m.zoomOut()}),this.simpleButtonNavigation("drillUpButton","drillUpProxyButton",function(f,m){return m.drillUp(),f.response.prev}),this.getMapZoomNavigation()]},h}(W);return P}),it(B,"Accessibility/HighContrastMode.js",[B["Core/Globals.js"]],function(W){var R=W.doc,H=W.isMS,V=W.win;return{isHighContrastModeActive:function(){var $=/(Edg)/.test(V.navigator.userAgent);if(V.matchMedia&&$)return V.matchMedia("(-ms-high-contrast: active)").matches;if(H&&V.getComputedStyle){var Z=R.createElement("div");Z.style.backgroundImage="url(".concat("data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",")"),R.body.appendChild(Z);var U=(Z.currentStyle||V.getComputedStyle(Z)).backgroundImage;return R.body.removeChild(Z),U==="none"}return V.matchMedia&&V.matchMedia("(forced-colors: active)").matches},setHighContrastTheme:function($){$.highContrastModeActive=!0;var Z=$.options.accessibility.highContrastTheme;$.update(Z,!1),$.series.forEach(function(U){var z=Z.plotOptions[U.type]||{};U.update({color:z.color||"windowText",colors:[z.color||"windowText"],borderColor:z.borderColor||"window"}),U.points.forEach(function(I){I.options&&I.options.color&&I.update({color:z.color||"windowText",borderColor:z.borderColor||"window"},!1)})}),$.redraw()}}}),it(B,"Accessibility/HighContrastTheme.js",[],function(){return{chart:{backgroundColor:"window"},title:{style:{color:"windowText"}},subtitle:{style:{color:"windowText"}},colorAxis:{minColor:"windowText",maxColor:"windowText",stops:[]},colors:["windowText"],xAxis:{gridLineColor:"windowText",labels:{style:{color:"windowText"}},lineColor:"windowText",minorGridLineColor:"windowText",tickColor:"windowText",title:{style:{color:"windowText"}}},yAxis:{gridLineColor:"windowText",labels:{style:{color:"windowText"}},lineColor:"windowText",minorGridLineColor:"windowText",tickColor:"windowText",title:{style:{color:"windowText"}}},tooltip:{backgroundColor:"window",borderColor:"windowText",style:{color:"windowText"}},plotOptions:{series:{lineColor:"windowText",fillColor:"window",borderColor:"windowText",edgeColor:"windowText",borderWidth:1,dataLabels:{connectorColor:"windowText",color:"windowText",style:{color:"windowText",textOutline:"none"}},marker:{lineColor:"windowText",fillColor:"windowText"}},pie:{color:"window",colors:["window"],borderColor:"windowText",borderWidth:1},boxplot:{fillColor:"window"},candlestick:{lineColor:"windowText",fillColor:"window"},errorbar:{fillColor:"window"}},legend:{backgroundColor:"window",itemStyle:{color:"windowText"},itemHoverStyle:{color:"windowText"},itemHiddenStyle:{color:"#555"},title:{style:{color:"windowText"}}},credits:{style:{color:"windowText"}},labels:{style:{color:"windowText"}},drilldown:{activeAxisLabelStyle:{color:"windowText"},activeDataLabelStyle:{color:"windowText"}},navigation:{buttonOptions:{symbolStroke:"windowText",theme:{fill:"window"}}},rangeSelector:{buttonTheme:{fill:"window",stroke:"windowText",style:{color:"windowText"},states:{hover:{fill:"window",stroke:"windowText",style:{color:"windowText"}},select:{fill:"#444",stroke:"windowText",style:{color:"windowText"}}}},inputBoxBorderColor:"windowText",inputStyle:{backgroundColor:"window",color:"windowText"},labelStyle:{color:"windowText"}},navigator:{handles:{backgroundColor:"window",borderColor:"windowText"},outlineColor:"windowText",maskFill:"transparent",series:{color:"windowText",lineColor:"windowText"},xAxis:{gridLineColor:"windowText"}},scrollbar:{barBackgroundColor:"#444",barBorderColor:"windowText",buttonArrowColor:"windowText",buttonBackgroundColor:"window",buttonBorderColor:"windowText",rifleColor:"windowText",trackBackgroundColor:"window",trackBorderColor:"windowText"}}}),it(B,"Accessibility/Options/A11yDefaults.js",[],function(){return{accessibility:{enabled:!0,screenReaderSection:{beforeChartFormat:"<{headingTagName}>{chartTitle}</{headingTagName}><div>{typeDescription}</div><div>{chartSubtitle}</div><div>{chartLongdesc}</div><div>{playAsSoundButton}</div><div>{viewTableButton}</div><div>{xAxisDescription}</div><div>{yAxisDescription}</div><div>{annotationsTitle}{annotationsList}</div>",afterChartFormat:"{endOfChartMarker}",axisRangeDateFormat:"%Y-%m-%d %H:%M:%S"},series:{descriptionFormat:"{seriesDescription}{authorDescription}{axisDescription}",describeSingleSeries:!1,pointDescriptionEnabledThreshold:200},point:{valueDescriptionFormat:"{xDescription}{separator}{value}.",describeNull:!0},landmarkVerbosity:"all",linkedDescription:'*[data-highcharts-chart="{index}"] + .highcharts-description',keyboardNavigation:{enabled:!0,focusBorder:{enabled:!0,hideBrowserFocusOutline:!0,style:{color:"#335cad",lineWidth:2,borderRadius:3},margin:2},order:["series","zoom","rangeSelector","legend","chartMenu"],wrapAround:!0,seriesNavigation:{skipNullPoints:!0,pointNavigationEnabledThreshold:!1,rememberPointFocus:!1}},announceNewData:{enabled:!1,minAnnounceInterval:5e3,interruptUser:!1}},legend:{accessibility:{enabled:!0,keyboardNavigation:{enabled:!0}}},exporting:{accessibility:{enabled:!0}}}}),it(B,"Accessibility/Options/LangDefaults.js",[],function(){return{accessibility:{defaultChartTitle:"Chart",chartContainerLabel:"{title}. Highcharts interactive chart.",svgContainerLabel:"Interactive chart",drillUpButton:"{buttonText}",credits:"Chart credits: {creditsStr}",thousandsSep:",",svgContainerTitle:"",graphicContainerLabel:"",screenReaderSection:{beforeRegionLabel:"",afterRegionLabel:"",annotations:{heading:"Chart annotations summary",descriptionSinglePoint:"{annotationText}. Related to {annotationPoint}",descriptionMultiplePoints:"{annotationText}. Related to {annotationPoint}{ Also related to, #each(additionalAnnotationPoints)}",descriptionNoPoints:"{annotationText}"},endOfChartMarker:"End of interactive chart."},sonification:{playAsSoundButtonText:"Play as sound, {chartTitle}",playAsSoundClickAnnouncement:"Play"},legend:{legendLabelNoTitle:"Toggle series visibility, {chartTitle}",legendLabel:"Chart legend: {legendTitle}",legendItem:"Show {itemName}"},zoom:{mapZoomIn:"Zoom chart",mapZoomOut:"Zoom out chart",resetZoomButton:"Reset zoom"},rangeSelector:{dropdownLabel:"{rangeTitle}",minInputLabel:"Select start date.",maxInputLabel:"Select end date.",clickButtonAnnouncement:"Viewing {axisRangeDescription}"},table:{viewAsDataTableButtonText:"View as data table, {chartTitle}",tableSummary:"Table representation of chart."},announceNewData:{newDataAnnounce:"Updated data for chart {chartTitle}",newSeriesAnnounceSingle:"New data series: {seriesDesc}",newPointAnnounceSingle:"New data point: {pointDesc}",newSeriesAnnounceMultiple:"New data series in chart {chartTitle}: {seriesDesc}",newPointAnnounceMultiple:"New data point in chart {chartTitle}: {pointDesc}"},seriesTypeDescriptions:{boxplot:"Box plot charts are typically used to display groups of statistical data. Each data point in the chart can have up to 5 values: minimum, lower quartile, median, upper quartile, and maximum.",arearange:"Arearange charts are line charts displaying a range between a lower and higher value for each point.",areasplinerange:"These charts are line charts displaying a range between a lower and higher value for each point.",bubble:"Bubble charts are scatter charts where each data point also has a size value.",columnrange:"Columnrange charts are column charts displaying a range between a lower and higher value for each point.",errorbar:"Errorbar series are used to display the variability of the data.",funnel:"Funnel charts are used to display reduction of data in stages.",pyramid:"Pyramid charts consist of a single pyramid with item heights corresponding to each point value.",waterfall:"A waterfall chart is a column chart where each column contributes towards a total end value."},chartTypes:{emptyChart:"Empty chart",mapTypeDescription:"Map of {mapTitle} with {numSeries} data series.",unknownMap:"Map of unspecified region with {numSeries} data series.",combinationChart:"Combination chart with {numSeries} data series.",defaultSingle:"Chart with {numPoints} data {#plural(numPoints, points, point)}.",defaultMultiple:"Chart with {numSeries} data series.",splineSingle:"Line chart with {numPoints} data {#plural(numPoints, points, point)}.",splineMultiple:"Line chart with {numSeries} lines.",lineSingle:"Line chart with {numPoints} data {#plural(numPoints, points, point)}.",lineMultiple:"Line chart with {numSeries} lines.",columnSingle:"Bar chart with {numPoints} {#plural(numPoints, bars, bar)}.",columnMultiple:"Bar chart with {numSeries} data series.",barSingle:"Bar chart with {numPoints} {#plural(numPoints, bars, bar)}.",barMultiple:"Bar chart with {numSeries} data series.",pieSingle:"Pie chart with {numPoints} {#plural(numPoints, slices, slice)}.",pieMultiple:"Pie chart with {numSeries} pies.",scatterSingle:"Scatter chart with {numPoints} {#plural(numPoints, points, point)}.",scatterMultiple:"Scatter chart with {numSeries} data series.",boxplotSingle:"Boxplot with {numPoints} {#plural(numPoints, boxes, box)}.",boxplotMultiple:"Boxplot with {numSeries} data series.",bubbleSingle:"Bubble chart with {numPoints} {#plural(numPoints, bubbles, bubble)}.",bubbleMultiple:"Bubble chart with {numSeries} data series."},axis:{xAxisDescriptionSingular:"The chart has 1 X axis displaying {names[0]}. {ranges[0]}",xAxisDescriptionPlural:"The chart has {numAxes} X axes displaying {#each(names, -1) }and {names[-1]}.",yAxisDescriptionSingular:"The chart has 1 Y axis displaying {names[0]}. {ranges[0]}",yAxisDescriptionPlural:"The chart has {numAxes} Y axes displaying {#each(names, -1) }and {names[-1]}.",timeRangeDays:"Data range: {range} days.",timeRangeHours:"Data range: {range} hours.",timeRangeMinutes:"Data range: {range} minutes.",timeRangeSeconds:"Data range: {range} seconds.",rangeFromTo:"Data ranges from {rangeFrom} to {rangeTo}.",rangeCategories:"Data range: {numCategories} categories."},exporting:{chartMenuLabel:"Chart menu",menuButtonLabel:"View chart menu, {chartTitle}"},series:{summary:{default:"{series.name}, series {seriesNumber} of {chart.series.length} with {series.points.length} data {#plural(series.points.length, points, point)}.",defaultCombination:"{series.name}, series {seriesNumber} of {chart.series.length} with {series.points.length} data {#plural(series.points.length, points, point)}.",line:"{series.name}, line {seriesNumber} of {chart.series.length} with {series.points.length} data {#plural(series.points.length, points, point)}.",lineCombination:"{series.name}, series {seriesNumber} of {chart.series.length}. Line with {series.points.length} data {#plural(series.points.length, points, point)}.",spline:"{series.name}, line {seriesNumber} of {chart.series.length} with {series.points.length} data {#plural(series.points.length, points, point)}.",splineCombination:"{series.name}, series {seriesNumber} of {chart.series.length}. Line with {series.points.length} data {#plural(series.points.length, points, point)}.",column:"{series.name}, bar series {seriesNumber} of {chart.series.length} with {series.points.length} {#plural(series.points.length, bars, bar)}.",columnCombination:"{series.name}, series {seriesNumber} of {chart.series.length}. Bar series with {series.points.length} {#plural(series.points.length, bars, bar)}.",bar:"{series.name}, bar series {seriesNumber} of {chart.series.length} with {series.points.length} {#plural(series.points.length, bars, bar)}.",barCombination:"{series.name}, series {seriesNumber} of {chart.series.length}. Bar series with {series.points.length} {#plural(series.points.length, bars, bar)}.",pie:"{series.name}, pie {seriesNumber} of {chart.series.length} with {series.points.length} {#plural(series.points.length, slices, slice)}.",pieCombination:"{series.name}, series {seriesNumber} of {chart.series.length}. Pie with {series.points.length} {#plural(series.points.length, slices, slice)}.",scatter:"{series.name}, scatter plot {seriesNumber} of {chart.series.length} with {series.points.length} {#plural(series.points.length, points, point)}.",scatterCombination:"{series.name}, series {seriesNumber} of {chart.series.length}, scatter plot with {series.points.length} {#plural(series.points.length, points, point)}.",boxplot:"{series.name}, boxplot {seriesNumber} of {chart.series.length} with {series.points.length} {#plural(series.points.length, boxes, box)}.",boxplotCombination:"{series.name}, series {seriesNumber} of {chart.series.length}. Boxplot with {series.points.length} {#plural(series.points.length, boxes, box)}.",bubble:"{series.name}, bubble series {seriesNumber} of {chart.series.length} with {series.points.length} {#plural(series.points.length, bubbles, bubble)}.",bubbleCombination:"{series.name}, series {seriesNumber} of {chart.series.length}. Bubble series with {series.points.length} {#plural(series.points.length, bubbles, bubble)}.",map:"{series.name}, map {seriesNumber} of {chart.series.length} with {series.points.length} {#plural(series.points.length, areas, area)}.",mapCombination:"{series.name}, series {seriesNumber} of {chart.series.length}. Map with {series.points.length} {#plural(series.points.length, areas, area)}.",mapline:"{series.name}, line {seriesNumber} of {chart.series.length} with {series.points.length} data {#plural(series.points.length, points, point)}.",maplineCombination:"{series.name}, series {seriesNumber} of {chart.series.length}. Line with {series.points.length} data {#plural(series.points.length, points, point)}.",mapbubble:"{series.name}, bubble series {seriesNumber} of {chart.series.length} with {series.points.length} {#plural(series.points.length, bubbles, bubble)}.",mapbubbleCombination:"{series.name}, series {seriesNumber} of {chart.series.length}. Bubble series with {series.points.length} {#plural(series.points.length, bubbles, bubble)}."},description:"{description}",xAxisDescription:"X axis, {name}",yAxisDescription:"Y axis, {name}",nullPointValue:"No value",pointAnnotationsDescription:"{Annotation: #each(annotations). }"}}}}),it(B,"Accessibility/Options/DeprecatedOptions.js",[B["Core/Utilities.js"]],function(W){var R=W.error,H=W.pick;function V(Z,U,z){for(var I,E=Z,M=0;M<U.length-1;++M)E=E[I=U[M]]=H(E[I],{});E[U[U.length-1]]=z}function $(Z,U,z,I){function E(y,h){return h.reduce(function(f,m){return f[m]},y)}var M=E(Z.options,U),P=E(Z.options,z);Object.keys(I).forEach(function(y){var h,f=M[y];f!==void 0&&(V(P,I[y],f),R(32,!1,Z,((h={})[U.join(".")+"."+y]=z.join(".")+"."+I[y].join("."),h)))})}return function(Z){(function(U){var z=U.options.chart,I=U.options.accessibility||{};["description","typeDescription"].forEach(function(E){var M;z[E]&&(I[E]=z[E],R(32,!1,U,((M={})["chart.".concat(E)]="use accessibility.".concat(E),M)))})})(Z),function(U){U.axes.forEach(function(z){var I=z.options;I&&I.description&&(I.accessibility=I.accessibility||{},I.accessibility.description=I.description,R(32,!1,U,{"axis.description":"use axis.accessibility.description"}))})}(Z),Z.series&&function(U){var z={description:["accessibility","description"],exposeElementToA11y:["accessibility","exposeAsGroupOnly"],pointDescriptionFormatter:["accessibility","point","descriptionFormatter"],skipKeyboardNavigation:["accessibility","keyboardNavigation","enabled"],"accessibility.pointDescriptionFormatter":["accessibility","point","descriptionFormatter"]};U.series.forEach(function(I){Object.keys(z).forEach(function(E){var M,P=I.options[E];E==="accessibility.pointDescriptionFormatter"&&(P=I.options.accessibility&&I.options.accessibility.pointDescriptionFormatter),P!==void 0&&(V(I.options,z[E],E==="skipKeyboardNavigation"?!P:P),R(32,!1,U,((M={})["series.".concat(E)]="series."+z[E].join("."),M)))})})}(Z),function(U){$(U,["accessibility"],["accessibility"],{pointDateFormat:["point","dateFormat"],pointDateFormatter:["point","dateFormatter"],pointDescriptionFormatter:["point","descriptionFormatter"],pointDescriptionThreshold:["series","pointDescriptionEnabledThreshold"],pointNavigationThreshold:["keyboardNavigation","seriesNavigation","pointNavigationEnabledThreshold"],pointValueDecimals:["point","valueDecimals"],pointValuePrefix:["point","valuePrefix"],pointValueSuffix:["point","valueSuffix"],screenReaderSectionFormatter:["screenReaderSection","beforeChartFormatter"],describeSingleSeries:["series","describeSingleSeries"],seriesDescriptionFormatter:["series","descriptionFormatter"],onTableAnchorClick:["screenReaderSection","onViewDataTableClick"],axisRangeDateFormat:["screenReaderSection","axisRangeDateFormat"]})}(Z),function(U){$(U,["accessibility","keyboardNavigation"],["accessibility","keyboardNavigation","seriesNavigation"],{skipNullPoints:["skipNullPoints"],mode:["mode"]})}(Z),function(U){$(U,["lang","accessibility"],["lang","accessibility"],{legendItem:["legend","legendItem"],legendLabel:["legend","legendLabel"],mapZoomIn:["zoom","mapZoomIn"],mapZoomOut:["zoom","mapZoomOut"],resetZoomButton:["zoom","resetZoomButton"],screenReaderRegionLabel:["screenReaderSection","beforeRegionLabel"],rangeSelectorButton:["rangeSelector","buttonText"],rangeSelectorMaxInput:["rangeSelector","maxInputLabel"],rangeSelectorMinInput:["rangeSelector","minInputLabel"],svgContainerEnd:["screenReaderSection","endOfChartMarker"],viewAsDataTable:["table","viewAsDataTableButtonText"],tableSummary:["table","tableSummary"]})}(Z)}}),it(B,"Accessibility/Accessibility.js",[B["Core/Defaults.js"],B["Core/Globals.js"],B["Core/Utilities.js"],B["Accessibility/Utils/HTMLUtilities.js"],B["Accessibility/A11yI18n.js"],B["Accessibility/Components/ContainerComponent.js"],B["Accessibility/FocusBorder.js"],B["Accessibility/Components/InfoRegionsComponent.js"],B["Accessibility/KeyboardNavigation.js"],B["Accessibility/Components/LegendComponent.js"],B["Accessibility/Components/MenuComponent.js"],B["Accessibility/Components/SeriesComponent/NewDataAnnouncer.js"],B["Accessibility/ProxyProvider.js"],B["Accessibility/Components/RangeSelectorComponent.js"],B["Accessibility/Components/SeriesComponent/SeriesComponent.js"],B["Accessibility/Components/ZoomComponent.js"],B["Accessibility/HighContrastMode.js"],B["Accessibility/HighContrastTheme.js"],B["Accessibility/Options/A11yDefaults.js"],B["Accessibility/Options/LangDefaults.js"],B["Accessibility/Options/DeprecatedOptions.js"]],function(W,R,H,V,$,Z,U,z,I,E,M,P,y,h,f,m,u,v,w,S,x){var c=W.defaultOptions,g=R.doc,r=H.addEvent,a=H.extend,t=H.fireEvent,i=H.merge,o=V.removeElement,e=function(){function s(n){this.chart=void 0,this.components=void 0,this.keyboardNavigation=void 0,this.proxyProvider=void 0,this.init(n)}return s.prototype.init=function(n){if(this.chart=n,!g.addEventListener||!n.renderer.isSVG)return this.zombie=!0,this.components={},void n.renderTo.setAttribute("aria-hidden",!0);x(n),this.proxyProvider=new y(this.chart),this.initComponents(),this.keyboardNavigation=new I(n,this.components)},s.prototype.initComponents=function(){var n=this.chart,l=this.proxyProvider,b=n.options.accessibility;this.components={container:new Z,infoRegions:new z,legend:new E,chartMenu:new M,rangeSelector:new h,series:new f,zoom:new m},b.customComponents&&a(this.components,b.customComponents);var k=this.components;this.getComponentOrder().forEach(function(D){k[D].initBase(n,l),k[D].init()})},s.prototype.getComponentOrder=function(){if(!this.components)return[];if(!this.components.series)return Object.keys(this.components);var n=Object.keys(this.components).filter(function(l){return l!=="series"});return["series"].concat(n)},s.prototype.update=function(){var n=this.components,l=this.chart,b=l.options.accessibility;t(l,"beforeA11yUpdate"),l.types=this.getChartTypes();var k=b.keyboardNavigation.order;this.proxyProvider.updateGroupOrder(k),this.getComponentOrder().forEach(function(D){n[D].onChartUpdate(),t(l,"afterA11yComponentUpdate",{name:D,component:n[D]})}),this.keyboardNavigation.update(k),!l.highContrastModeActive&&u.isHighContrastModeActive()&&u.setHighContrastTheme(l),t(l,"afterA11yUpdate",{accessibility:this})},s.prototype.destroy=function(){var n=this.chart||{},l=this.components;Object.keys(l).forEach(function(b){l[b].destroy(),l[b].destroyBase()}),this.proxyProvider&&this.proxyProvider.destroy(),n.announcerContainer&&o(n.announcerContainer),this.keyboardNavigation&&this.keyboardNavigation.destroy(),n.renderTo&&n.renderTo.setAttribute("aria-hidden",!0),n.focusElement&&n.focusElement.removeFocusBorder()},s.prototype.getChartTypes=function(){var n={};return this.chart.series.forEach(function(l){n[l.type]=1}),Object.keys(n)},s}();return function(s){var n=[];function l(){this.accessibility&&this.accessibility.destroy()}function b(){this.a11yDirty&&this.renderTo&&(delete this.a11yDirty,this.updateA11yEnabled());var C=this.accessibility;C&&!C.zombie&&(C.proxyProvider.updateProxyElementPositions(),C.getComponentOrder().forEach(function(A){C.components[A].onChartRender()}))}function k(C){var A=C.options.accessibility;A&&(A.customComponents&&(this.options.accessibility.customComponents=A.customComponents,delete A.customComponents),i(!0,this.options.accessibility,A),this.accessibility&&this.accessibility.destroy&&(this.accessibility.destroy(),delete this.accessibility)),this.a11yDirty=!0}function D(){var C=this.accessibility,A=this.options.accessibility;A&&A.enabled?C&&!C.zombie?C.update():(this.accessibility=C=new s(this),C&&!C.zombie&&C.update()):C?(C.destroy&&C.destroy(),delete this.accessibility):this.renderTo.setAttribute("aria-hidden",!0)}function p(){this.series.chart.accessibility&&(this.series.chart.a11yDirty=!0)}s.i18nFormat=$.i18nFormat,s.compose=function(C,A,N,_,L,O){I.compose(C),P.compose(_),E.compose(C,A),M.compose(C),f.compose(C,N,_),$.compose(C),U.compose(C,L),O&&h.compose(C,O),n.indexOf(C)===-1&&(n.push(C),C.prototype.updateA11yEnabled=D,r(C,"destroy",l),r(C,"render",b),r(C,"update",k),["addSeries","init"].forEach(function(j){r(C,j,function(){this.a11yDirty=!0})}),["afterApplyDrilldown","drillupall"].forEach(function(j){r(C,j,function(){var Y=this.accessibility;Y&&!Y.zombie&&Y.update()})})),n.indexOf(N)===-1&&(n.push(N),r(N,"update",p)),n.indexOf(_)===-1&&(n.push(_),["update","updatedData","remove"].forEach(function(j){r(_,j,function(){this.chart.accessibility&&(this.chart.a11yDirty=!0)})}))}}(e||(e={})),i(!0,c,w,{accessibility:{highContrastTheme:v},lang:S}),e}),it(B,"masters/modules/accessibility.src.js",[B["Core/Globals.js"],B["Accessibility/Accessibility.js"],B["Accessibility/AccessibilityComponent.js"],B["Accessibility/Utils/ChartUtilities.js"],B["Accessibility/Utils/HTMLUtilities.js"],B["Accessibility/KeyboardNavigationHandler.js"],B["Accessibility/Components/SeriesComponent/SeriesDescriber.js"]],function(W,R,H,V,$,Z,U){var z=W;z.i18nFormat=R.i18nFormat,z.A11yChartUtilities=V,z.A11yHTMLUtilities=$,z.AccessibilityComponent=H,z.KeyboardNavigationHandler=Z,z.SeriesAccessibilityDescriber=U,R.compose(z.Chart,z.Legend,z.Point,z.Series,z.SVGElement,z.RangeSelector)})},ot.exports?(ut.default=ut,ot.exports=ut):(pt=[st(4783)],(ht=function(ft){return ut(ft),ut.Highcharts=ft,ut}.apply(nt,pt))===void 0||(ot.exports=ht))},5118:(ot,nt,st)=>{st.d(nt,{A:()=>E});var pt=st(6956),ht=st(4089),ut=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,ft=/^\w*$/,B=st(3269);function it(M,P){if(typeof M!="function"||P!=null&&typeof P!="function")throw new TypeError("Expected a function");var y=function(){var h=arguments,f=P?P.apply(this,h):h[0],m=y.cache;if(m.has(f))return m.get(f);var u=M.apply(this,h);return y.cache=m.set(f,u)||m,u};return y.cache=new(it.Cache||B.A),y}it.Cache=B.A;var W=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,R=/\\(\\)?/g;const H=(V=it(function(M){var P=[];return M.charCodeAt(0)===46&&P.push(""),M.replace(W,function(y,h,f,m){P.push(f?m.replace(R,"$1"):h||y)}),P},function(M){return $.size===500&&$.clear(),M}),$=V.cache,V);var V,$,Z=st(3516),U=Z.A?Z.A.prototype:void 0,z=U?U.toString:void 0;const I=function M(P){if(typeof P=="string")return P;if((0,pt.A)(P))return function(h,f){for(var m=-1,u=h==null?0:h.length,v=Array(u);++m<u;)v[m]=f(h[m],m,h);return v}(P,M)+"";if((0,ht.A)(P))return z?z.call(P):"";var y=P+"";return y=="0"&&1/P==-1/0?"-0":y},E=function(M,P){return(0,pt.A)(M)?M:function(y,h){if((0,pt.A)(y))return!1;var f=typeof y;return!(f!="number"&&f!="symbol"&&f!="boolean"&&y!=null&&!(0,ht.A)(y))||ft.test(y)||!ut.test(y)||h!=null&&y in Object(h)}(M,P)?[M]:H(function(y){return y==null?"":I(y)}(M))}},5134:function(ot,nt,st){var pt,ht,ut;ht=typeof window!="undefined"?window:this,ut=function(ft){var B={};function it(W,R,H,V){W.hasOwnProperty(R)||(W[R]=V.apply(null,H),typeof CustomEvent=="function"&&ft.dispatchEvent(new CustomEvent("HighchartsModuleLoaded",{detail:{path:R,module:W[R]}})))}return it(B,"Core/Globals.js",[],function(){var W;return function(R){R.SVG_NS="http://www.w3.org/2000/svg",R.product="Highcharts",R.version="10.3.3",R.win=ft!==void 0?ft:{},R.doc=R.win.document,R.svg=R.doc&&R.doc.createElementNS&&!!R.doc.createElementNS(R.SVG_NS,"svg").createSVGRect,R.userAgent=R.win.navigator&&R.win.navigator.userAgent||"",R.isChrome=R.userAgent.indexOf("Chrome")!==-1,R.isFirefox=R.userAgent.indexOf("Firefox")!==-1,R.isMS=/(edge|msie|trident)/i.test(R.userAgent)&&!R.win.opera,R.isSafari=!R.isChrome&&R.userAgent.indexOf("Safari")!==-1,R.isTouchDevice=/(Mobile|Android|Windows Phone)/.test(R.userAgent),R.isWebKit=R.userAgent.indexOf("AppleWebKit")!==-1,R.deg2rad=2*Math.PI/360,R.hasBidiBug=R.isFirefox&&parseInt(R.userAgent.split("Firefox/")[1],10)<4,R.hasTouch=!!R.win.TouchEvent,R.marginNames=["plotTop","marginRight","marginBottom","plotLeft"],R.noop=function(){},R.supportsPassiveEvents=function(){var H=!1;if(!R.isMS){var V=Object.defineProperty({},"passive",{get:function(){H=!0}});R.win.addEventListener&&R.win.removeEventListener&&(R.win.addEventListener("testPassive",R.noop,V),R.win.removeEventListener("testPassive",R.noop,V))}return H}(),R.charts=[],R.dateFormats={},R.seriesTypes={},R.symbolSizes={},R.chartCount=0}(W||(W={})),W}),it(B,"Core/Utilities.js",[B["Core/Globals.js"]],function(W){var R=W.charts,H=W.doc,V=W.win;function $(e,s,n,l){var b=s?"Highcharts error":"Highcharts warning";e===32&&(e=b+": Deprecated member");var k=P(e),D=k?b+" #"+e+": www.highcharts.com/errors/"+e+"/":e.toString();if(l!==void 0){var p="";k&&(D+="?"),c(l,function(C,A){p+=`
3
+ - `.concat(A,": ").concat(C),k&&(D+=encodeURI(A)+"="+encodeURI(C))}),D+=p}r(W,"displayError",{chart:n,code:e,message:D,params:l},function(){if(s)throw new Error(D);V.console&&$.messages.indexOf(D)===-1&&console.warn(D)}),$.messages.push(D)}function Z(e,s){return parseInt(e,s||10)}function U(e){return typeof e=="string"}function z(e){var s=Object.prototype.toString.call(e);return s==="[object Array]"||s==="[object Array Iterator]"}function I(e,s){return!(!e||typeof e!="object"||s&&z(e))}function E(e){return I(e)&&typeof e.nodeType=="number"}function M(e){var s=e&&e.constructor;return!(!I(e,!0)||E(e)||!s||!s.name||s.name==="Object")}function P(e){return typeof e=="number"&&!isNaN(e)&&e<1/0&&e>-1/0}function y(e){return e!=null}function h(e,s,n){var l,b=U(s)&&!y(n),k=function(D,p){y(D)?e.setAttribute(p,D):b?(l=e.getAttribute(p))||p!=="class"||(l=e.getAttribute(p+"Name")):e.removeAttribute(p)};return U(s)?k(n,s):c(s,k),l}function f(e,s){var n;for(n in e||(e={}),s)e[n]=s[n];return e}function m(){for(var e=arguments,s=e.length,n=0;n<s;n++){var l=e[n];if(l!=null)return l}}function u(e,s){W.isMS&&!W.svg&&s&&y(s.opacity)&&(s.filter="alpha(opacity=".concat(100*s.opacity,")")),f(e.style,s)}function v(e){return Math.pow(10,Math.floor(Math.log(e)/Math.LN10))}function w(e,s){return e>1e14?e:parseFloat(e.toPrecision(s||14))}(function(e){e.messages=[]})($||($={})),Math.easeInOutSine=function(e){return-.5*(Math.cos(Math.PI*e)-1)};var S,x=Array.prototype.find?function(e,s){return e.find(s)}:function(e,s){var n,l=e.length;for(n=0;n<l;n++)if(s(e[n],n))return e[n]};function c(e,s,n){for(var l in e)Object.hasOwnProperty.call(e,l)&&s.call(n||e[l],e[l],l,e)}function g(e,s,n){function l(C,A){var N=e.removeEventListener||W.removeEventListenerPolyfill;N&&N.call(e,C,A,!1)}function b(C){var A,N;e.nodeName&&(s?(A={})[s]=!0:A=C,c(A,function(_,L){if(C[L])for(N=C[L].length;N--;)l(L,C[L][N].fn)}))}var k=typeof e=="function"&&e.prototype||e;if(Object.hasOwnProperty.call(k,"hcEvents")){var D=k.hcEvents;if(s){var p=D[s]||[];n?(D[s]=p.filter(function(C){return n!==C.fn}),l(s,n)):(b(D),D[s]=[])}else b(D),delete k.hcEvents}}function r(e,s,n,l){var b;if(n=n||{},H.createEvent&&(e.dispatchEvent||e.fireEvent&&e!==W))(b=H.createEvent("Events")).initEvent(s,!0,!0),n=f(b,n),e.dispatchEvent?e.dispatchEvent(n):e.fireEvent(s,n);else if(e.hcEvents){n.target||f(n,{preventDefault:function(){n.defaultPrevented=!0},target:e,type:s});for(var k=[],D=e,p=!1;D.hcEvents;)Object.hasOwnProperty.call(D,"hcEvents")&&D.hcEvents[s]&&(k.length&&(p=!0),k.unshift.apply(k,D.hcEvents[s])),D=Object.getPrototypeOf(D);p&&k.sort(function(C,A){return C.order-A.order}),k.forEach(function(C){C.fn.call(e,n)===!1&&n.preventDefault()})}l&&!n.defaultPrevented&&l.call(e,n)}c({map:"map",each:"forEach",grep:"filter",reduce:"reduce",some:"some"},function(e,s){W[s]=function(n){var l;return $(32,!1,void 0,((l={})["Highcharts.".concat(s)]="use Array.".concat(e),l)),Array.prototype[e].apply(n,[].slice.call(arguments,1))}});var a,t,i=(a=Math.random().toString(36).substring(2,9)+"-",t=0,function(){return"highcharts-"+(S?"":a)+t++});V.jQuery&&(V.jQuery.fn.highcharts=function(){var e=[].slice.call(arguments);if(this[0])return e[0]?(new W[U(e[0])?e.shift():"Chart"](this[0],e[0],e[1]),this):R[h(this[0],"data-highcharts-chart")]});var o={addEvent:function(e,s,n,l){l===void 0&&(l={});var b=typeof e=="function"&&e.prototype||e;Object.hasOwnProperty.call(b,"hcEvents")||(b.hcEvents={});var k=b.hcEvents;W.Point&&e instanceof W.Point&&e.series&&e.series.chart&&(e.series.chart.runTrackerClick=!0);var D=e.addEventListener||W.addEventListenerPolyfill;D&&D.call(e,s,n,!!W.supportsPassiveEvents&&{passive:l.passive===void 0?s.indexOf("touch")!==-1:l.passive,capture:!1}),k[s]||(k[s]=[]);var p={fn:n,order:typeof l.order=="number"?l.order:1/0};return k[s].push(p),k[s].sort(function(C,A){return C.order-A.order}),function(){g(e,s,n)}},arrayMax:function(e){for(var s=e.length,n=e[0];s--;)e[s]>n&&(n=e[s]);return n},arrayMin:function(e){for(var s=e.length,n=e[0];s--;)e[s]<n&&(n=e[s]);return n},attr:h,clamp:function(e,s,n){return e>s?e<n?e:n:s},cleanRecursively:function e(s,n){var l={};return c(s,function(b,k){var D;I(s[k],!0)&&!s.nodeType&&n[k]?(D=e(s[k],n[k]),Object.keys(D).length&&(l[k]=D)):(I(s[k])||s[k]!==n[k]||k in s&&!(k in n))&&(l[k]=s[k])}),l},clearTimeout:function(e){y(e)&&clearTimeout(e)},correctFloat:w,createElement:function(e,s,n,l,b){var k=H.createElement(e);return s&&f(k,s),b&&u(k,{padding:"0",border:"none",margin:"0"}),n&&u(k,n),l&&l.appendChild(k),k},css:u,defined:y,destroyObjectProperties:function(e,s){c(e,function(n,l){n&&n!==s&&n.destroy&&n.destroy(),delete e[l]})},discardElement:function(e){e&&e.parentElement&&e.parentElement.removeChild(e)},erase:function(e,s){for(var n=e.length;n--;)if(e[n]===s){e.splice(n,1);break}},error:$,extend:f,extendClass:function(e,s){var n=function(){};return f(n.prototype=new e,s),n},find:x,fireEvent:r,getMagnitude:v,getNestedProperty:function(e,s){for(var n=e.split(".");n.length&&y(s);){var l=n.shift();if(l===void 0||l==="__proto__")return;var b=s[l];if(!y(b)||typeof b=="function"||typeof b.nodeType=="number"||b===V)return;s=b}return s},getStyle:function e(s,n,l){var b,k=W.getStyle||e;if(n==="width"){var D=Math.min(s.offsetWidth,s.scrollWidth),p=s.getBoundingClientRect&&s.getBoundingClientRect().width;return p<D&&p>=D-1&&(D=Math.floor(p)),Math.max(0,D-(k(s,"padding-left",!0)||0)-(k(s,"padding-right",!0)||0))}if(n==="height")return Math.max(0,Math.min(s.offsetHeight,s.scrollHeight)-(k(s,"padding-top",!0)||0)-(k(s,"padding-bottom",!0)||0));V.getComputedStyle||$(27,!0);var C=V.getComputedStyle(s,void 0);return C&&(b=C.getPropertyValue(n),m(l,n!=="opacity")&&(b=Z(b))),b},inArray:function(e,s,n){return $(32,!1,void 0,{"Highcharts.inArray":"use Array.indexOf"}),s.indexOf(e,n)},isArray:z,isClass:M,isDOMElement:E,isFunction:function(e){return typeof e=="function"},isNumber:P,isObject:I,isString:U,keys:function(e){return $(32,!1,void 0,{"Highcharts.keys":"use Object.keys"}),Object.keys(e)},merge:function(){var e,s=arguments,n={},l=function(k,D){return typeof k!="object"&&(k={}),c(D,function(p,C){C!=="__proto__"&&C!=="constructor"&&(!I(p,!0)||M(p)||E(p)?k[C]=D[C]:k[C]=l(k[C]||{},p))}),k};s[0]===!0&&(n=s[1],s=Array.prototype.slice.call(s,2));var b=s.length;for(e=0;e<b;e++)n=l(n,s[e]);return n},normalizeTickInterval:function(e,s,n,l,b){var k,D=e,p=e/(n=m(n,v(e)));for(s||(s=b?[1,1.2,1.5,2,2.5,3,4,5,6,8,10]:[1,2,2.5,5,10],l===!1&&(n===1?s=s.filter(function(C){return C%1==0}):n<=.1&&(s=[1/n]))),k=0;k<s.length&&(D=s[k],!(b&&D*n>=e||!b&&p<=(s[k]+(s[k+1]||s[k]))/2));k++);return w(D*n,-Math.round(Math.log(.001)/Math.LN10))},objectEach:c,offset:function(e){var s=H.documentElement,n=e.parentElement||e.parentNode?e.getBoundingClientRect():{top:0,left:0,width:0,height:0};return{top:n.top+(V.pageYOffset||s.scrollTop)-(s.clientTop||0),left:n.left+(V.pageXOffset||s.scrollLeft)-(s.clientLeft||0),width:n.width,height:n.height}},pad:function(e,s,n){return new Array((s||2)+1-String(e).replace("-","").length).join(n||"0")+e},pick:m,pInt:Z,relativeLength:function(e,s,n){return/%$/.test(e)?s*parseFloat(e)/100+(n||0):parseFloat(e)},removeEvent:g,splat:function(e){return z(e)?e:[e]},stableSort:function(e,s){var n,l,b=e.length;for(l=0;l<b;l++)e[l].safeI=l;for(e.sort(function(k,D){return(n=s(k,D))===0?k.safeI-D.safeI:n}),l=0;l<b;l++)delete e[l].safeI},syncTimeout:function(e,s,n){return s>0?setTimeout(e,s,n):(e.call(0,n),-1)},timeUnits:{millisecond:1,second:1e3,minute:6e4,hour:36e5,day:864e5,week:6048e5,month:24192e5,year:314496e5},uniqueKey:i,useSerialIds:function(e){return S=m(e,S)},wrap:function(e,s,n){var l=e[s];e[s]=function(){var b=arguments,k=this;return n.apply(this,[function(){return l.apply(k,arguments.length?arguments:b)}].concat([].slice.call(arguments)))}}};return o}),it(B,"Core/Chart/ChartDefaults.js",[],function(){return{alignThresholds:!1,panning:{enabled:!1,type:"x"},styledMode:!1,borderRadius:0,colorCount:10,allowMutatingData:!0,defaultSeriesType:"line",ignoreHiddenSeries:!0,spacing:[10,10,15,10],resetZoomButton:{theme:{zIndex:6},position:{align:"right",x:-10,y:10}},zoomBySingleTouch:!1,zooming:{singleTouch:!1,resetButton:{theme:{zIndex:6},position:{align:"right",x:-10,y:10}}},width:null,height:null,borderColor:"#335cad",backgroundColor:"#ffffff",plotBorderColor:"#cccccc"}}),it(B,"Core/Color/Color.js",[B["Core/Globals.js"],B["Core/Utilities.js"]],function(W,R){var H=R.isNumber,V=R.merge,$=R.pInt;return function(){function Z(U){this.rgba=[NaN,NaN,NaN,NaN],this.input=U;var z=W.Color;return z&&z!==Z?new z(U):this instanceof Z?void this.init(U):new Z(U)}return Z.parse=function(U){return U?new Z(U):Z.None},Z.prototype.init=function(U){var z,I,E,M;if(typeof U=="object"&&U.stops!==void 0)this.stops=U.stops.map(function(h){return new Z(h[1])});else if(typeof U=="string"){if(this.input=U=Z.names[U.toLowerCase()]||U,U.charAt(0)==="#"){var P=U.length,y=parseInt(U.substr(1),16);P===7?I=[(16711680&y)>>16,(65280&y)>>8,255&y,1]:P===4&&(I=[(3840&y)>>4|(3840&y)>>8,(240&y)>>4|240&y,(15&y)<<4|15&y,1])}if(!I)for(E=Z.parsers.length;E--&&!I;)(z=(M=Z.parsers[E]).regex.exec(U))&&(I=M.parse(z))}I&&(this.rgba=I)},Z.prototype.get=function(U){var z=this.input,I=this.rgba;if(typeof z=="object"&&this.stops!==void 0){var E=V(z);return E.stops=[].slice.call(E.stops),this.stops.forEach(function(M,P){E.stops[P]=[E.stops[P][0],M.get(U)]}),E}return I&&H(I[0])?U==="rgb"||!U&&I[3]===1?"rgb("+I[0]+","+I[1]+","+I[2]+")":U==="a"?"".concat(I[3]):"rgba("+I.join(",")+")":z},Z.prototype.brighten=function(U){var z=this.rgba;if(this.stops)this.stops.forEach(function(E){E.brighten(U)});else if(H(U)&&U!==0)for(var I=0;I<3;I++)z[I]+=$(255*U),z[I]<0&&(z[I]=0),z[I]>255&&(z[I]=255);return this},Z.prototype.setOpacity=function(U){return this.rgba[3]=U,this},Z.prototype.tweenTo=function(U,z){var I=this.rgba,E=U.rgba;if(!H(I[0])||!H(E[0]))return U.input||"none";var M=E[3]!==1||I[3]!==1;return(M?"rgba(":"rgb(")+Math.round(E[0]+(I[0]-E[0])*(1-z))+","+Math.round(E[1]+(I[1]-E[1])*(1-z))+","+Math.round(E[2]+(I[2]-E[2])*(1-z))+(M?","+(E[3]+(I[3]-E[3])*(1-z)):"")+")"},Z.names={white:"#ffffff",black:"#000000"},Z.parsers=[{regex:/rgba\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]?(?:\.[0-9]+)?)\s*\)/,parse:function(U){return[$(U[1]),$(U[2]),$(U[3]),parseFloat(U[4],10)]}},{regex:/rgb\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*\)/,parse:function(U){return[$(U[1]),$(U[2]),$(U[3]),1]}}],Z.None=new Z(""),Z}()}),it(B,"Core/Color/Palettes.js",[],function(){return{colors:["#7cb5ec","#434348","#90ed7d","#f7a35c","#8085e9","#f15c80","#e4d354","#2b908f","#f45b5b","#91e8e1"]}}),it(B,"Core/Time.js",[B["Core/Globals.js"],B["Core/Utilities.js"]],function(W,R){var H=W.win,V=R.defined,$=R.error,Z=R.extend,U=R.isObject,z=R.merge,I=R.objectEach,E=R.pad,M=R.pick,P=R.splat,y=R.timeUnits,h=W.isSafari&&H.Intl&&H.Intl.DateTimeFormat.prototype.formatRange,f=W.isSafari&&H.Intl&&!H.Intl.DateTimeFormat.prototype.formatRange,m=function(){function u(v){this.options={},this.useUTC=!1,this.variableTimezone=!1,this.Date=H.Date,this.getTimezoneOffset=this.timezoneOffsetFunction(),this.update(v)}return u.prototype.get=function(v,w){if(this.variableTimezone||this.timezoneOffset){var S=w.getTime(),x=S-this.getTimezoneOffset(w);w.setTime(x);var c=w["getUTC"+v]();return w.setTime(S),c}return this.useUTC?w["getUTC"+v]():w["get"+v]()},u.prototype.set=function(v,w,S){if(this.variableTimezone||this.timezoneOffset){if(v==="Milliseconds"||v==="Seconds"||v==="Minutes"&&this.getTimezoneOffset(w)%36e5==0)return w["setUTC"+v](S);var x=this.getTimezoneOffset(w),c=w.getTime()-x;w.setTime(c),w["setUTC"+v](S);var g=this.getTimezoneOffset(w);return c=w.getTime()+g,w.setTime(c)}return this.useUTC||h&&v==="FullYear"?w["setUTC"+v](S):w["set"+v](S)},u.prototype.update=function(v){v===void 0&&(v={});var w=M(v.useUTC,!0);this.options=v=z(!0,this.options,v),this.Date=v.Date||H.Date||Date,this.useUTC=w,this.timezoneOffset=w&&v.timezoneOffset||void 0,this.getTimezoneOffset=this.timezoneOffsetFunction(),this.variableTimezone=w&&!(!v.getTimezoneOffset&&!v.timezone)},u.prototype.makeTime=function(v,w,S,x,c,g){var r,a,t;return this.useUTC?(r=this.Date.UTC.apply(0,arguments),r+=a=this.getTimezoneOffset(r),a!==(t=this.getTimezoneOffset(r))?r+=t-a:a-36e5!==this.getTimezoneOffset(r-36e5)||f||(r-=36e5)):r=new this.Date(v,w,M(S,1),M(x,0),M(c,0),M(g,0)).getTime(),r},u.prototype.timezoneOffsetFunction=function(){var v=this,w=this.options,S=w.getTimezoneOffset,x=w.moment||H.moment;if(!this.useUTC)return function(c){return 6e4*new Date(c.toString()).getTimezoneOffset()};if(w.timezone){if(x)return function(c){return 6e4*-x.tz(c,w.timezone).utcOffset()};$(25)}return this.useUTC&&S?function(c){return 6e4*S(c.valueOf())}:function(){return 6e4*(v.timezoneOffset||0)}},u.prototype.dateFormat=function(v,w,S){if(!V(w)||isNaN(w))return W.defaultOptions.lang&&W.defaultOptions.lang.invalidDate||"";v=M(v,"%Y-%m-%d %H:%M:%S");var x=this,c=new this.Date(w),g=this.get("Hours",c),r=this.get("Day",c),a=this.get("Date",c),t=this.get("Month",c),i=this.get("FullYear",c),o=W.defaultOptions.lang,e=o&&o.weekdays,s=o&&o.shortWeekdays,n=Z({a:s?s[r]:e[r].substr(0,3),A:e[r],d:E(a),e:E(a,2," "),w:r,b:o.shortMonths[t],B:o.months[t],m:E(t+1),o:t+1,y:i.toString().substr(2,2),Y:i,H:E(g),k:g,I:E(g%12||12),l:g%12||12,M:E(this.get("Minutes",c)),p:g<12?"AM":"PM",P:g<12?"am":"pm",S:E(c.getSeconds()),L:E(Math.floor(w%1e3),3)},W.dateFormats);return I(n,function(l,b){for(;v.indexOf("%"+b)!==-1;)v=v.replace("%"+b,typeof l=="function"?l.call(x,w):l)}),S?v.substr(0,1).toUpperCase()+v.substr(1):v},u.prototype.resolveDTLFormat=function(v){return U(v,!0)?v:{main:(v=P(v))[0],from:v[1],to:v[2]}},u.prototype.getTimeTicks=function(v,w,S,x){var c,g,r,a,t=this,i=t.Date,o=[],e={},s=new i(w),n=v.unitRange,l=v.count||1;if(x=M(x,1),V(w)){t.set("Milliseconds",s,n>=y.second?0:l*Math.floor(t.get("Milliseconds",s)/l)),n>=y.second&&t.set("Seconds",s,n>=y.minute?0:l*Math.floor(t.get("Seconds",s)/l)),n>=y.minute&&t.set("Minutes",s,n>=y.hour?0:l*Math.floor(t.get("Minutes",s)/l)),n>=y.hour&&t.set("Hours",s,n>=y.day?0:l*Math.floor(t.get("Hours",s)/l)),n>=y.day&&t.set("Date",s,n>=y.month?1:Math.max(1,l*Math.floor(t.get("Date",s)/l))),n>=y.month&&(t.set("Month",s,n>=y.year?0:l*Math.floor(t.get("Month",s)/l)),g=t.get("FullYear",s)),n>=y.year&&(g-=g%l,t.set("FullYear",s,g)),n===y.week&&(a=t.get("Day",s),t.set("Date",s,t.get("Date",s)-a+x+(a<x?-7:0))),g=t.get("FullYear",s);var b=t.get("Month",s),k=t.get("Date",s),D=t.get("Hours",s);w=s.getTime(),!t.variableTimezone&&t.useUTC||!V(S)||(r=S-w>4*y.month||t.getTimezoneOffset(w)!==t.getTimezoneOffset(S));var p=s.getTime();for(c=1;p<S;)o.push(p),n===y.year?p=t.makeTime(g+c*l,0):n===y.month?p=t.makeTime(g,b+c*l):!r||n!==y.day&&n!==y.week?r&&n===y.hour&&l>1?p=t.makeTime(g,b,k,D+c*l):p+=n*l:p=t.makeTime(g,b,k+c*l*(n===y.day?1:7)),c++;o.push(p),n<=y.hour&&o.length<1e4&&o.forEach(function(C){C%18e5==0&&t.dateFormat("%H%M%S%L",C)==="000000000"&&(e[C]="day")})}return o.info=Z(v,{higherRanks:e,totalRange:n*l}),o},u.prototype.getDateFormat=function(v,w,S,x){var c=this.dateFormat("%m-%d %H:%M:%S.%L",w),g="01-01 00:00:00.000",r={millisecond:15,second:12,minute:9,hour:6,day:3},a="millisecond",t=a;for(a in y){if(v===y.week&&+this.dateFormat("%w",w)===S&&c.substr(6)===g.substr(6)){a="week";break}if(y[a]>v){a=t;break}if(r[a]&&c.substr(r[a])!==g.substr(r[a]))break;a!=="week"&&(t=a)}return this.resolveDTLFormat(x[a]).main},u}();return m}),it(B,"Core/Defaults.js",[B["Core/Chart/ChartDefaults.js"],B["Core/Color/Color.js"],B["Core/Globals.js"],B["Core/Color/Palettes.js"],B["Core/Time.js"],B["Core/Utilities.js"]],function(W,R,H,V,$,Z){var U=R.parse,z=H.isTouchDevice,I=H.svg,E=Z.merge,M={colors:V.colors,symbols:["circle","diamond","square","triangle","triangle-down"],lang:{loading:"Loading...",months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],weekdays:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],decimalPoint:".",numericSymbols:["k","M","G","T","P","E"],resetZoom:"Reset zoom",resetZoomTitle:"Reset zoom level 1:1",thousandsSep:" "},global:{},time:{Date:void 0,getTimezoneOffset:void 0,timezone:void 0,timezoneOffset:0,useUTC:!0},chart:W,title:{text:"Chart title",align:"center",margin:15,widthAdjust:-44},subtitle:{text:"",align:"center",widthAdjust:-44},caption:{margin:15,text:"",align:"left",verticalAlign:"bottom"},plotOptions:{},labels:{style:{position:"absolute",color:"#333333"}},legend:{enabled:!0,align:"center",alignColumns:!0,className:"highcharts-no-tooltip",layout:"horizontal",labelFormatter:function(){return this.name},borderColor:"#999999",borderRadius:0,navigation:{activeColor:"#003399",inactiveColor:"#cccccc"},itemStyle:{color:"#333333",cursor:"pointer",fontSize:"12px",fontWeight:"bold",textOverflow:"ellipsis"},itemHoverStyle:{color:"#000000"},itemHiddenStyle:{color:"#cccccc"},shadow:!1,itemCheckboxStyle:{position:"absolute",width:"13px",height:"13px"},squareSymbol:!0,symbolPadding:5,verticalAlign:"bottom",x:0,y:0,title:{style:{fontWeight:"bold"}}},loading:{labelStyle:{fontWeight:"bold",position:"relative",top:"45%"},style:{position:"absolute",backgroundColor:"#ffffff",opacity:.5,textAlign:"center"}},tooltip:{enabled:!0,animation:I,borderRadius:3,dateTimeLabelFormats:{millisecond:"%A, %b %e, %H:%M:%S.%L",second:"%A, %b %e, %H:%M:%S",minute:"%A, %b %e, %H:%M",hour:"%A, %b %e, %H:%M",day:"%A, %b %e, %Y",week:"Week from %A, %b %e, %Y",month:"%B %Y",year:"%Y"},footerFormat:"",headerShape:"callout",hideDelay:500,padding:8,shape:"callout",shared:!1,snap:z?25:10,headerFormat:'<span style="font-size: 10px">{point.key}</span><br/>',pointFormat:'<span style="color:{point.color}">●</span> {series.name}: <b>{point.y}</b><br/>',backgroundColor:U("#f7f7f7").setOpacity(.85).get(),borderWidth:1,shadow:!0,stickOnContact:!1,style:{color:"#333333",cursor:"default",fontSize:"12px",whiteSpace:"nowrap"},useHTML:!1},credits:{enabled:!0,href:"https://www.highcharts.com?credits",position:{align:"right",x:-10,verticalAlign:"bottom",y:-5},style:{cursor:"pointer",color:"#999999",fontSize:"9px"},text:"Highcharts.com"}};M.chart.styledMode=!1;var P=new $(E(M.global,M.time));return{defaultOptions:M,defaultTime:P,getOptions:function(){return M},setOptions:function(y){return E(!0,M,y),(y.time||y.global)&&(H.time?H.time.update(E(M.global,M.time,y.global,y.time)):H.time=P),M}}}),it(B,"Core/Animation/Fx.js",[B["Core/Color/Color.js"],B["Core/Globals.js"],B["Core/Utilities.js"]],function(W,R,H){var V=W.parse,$=R.win,Z=H.isNumber,U=H.objectEach,z=function(){function I(E,M,P){this.pos=NaN,this.options=M,this.elem=E,this.prop=P}return I.prototype.dSetter=function(){var E=this.paths,M=E&&E[0],P=E&&E[1],y=this.now||0,h=[];if(y!==1&&M&&P)if(M.length===P.length&&y<1)for(var f=0;f<P.length;f++){for(var m=M[f],u=P[f],v=[],w=0;w<u.length;w++){var S=m[w],x=u[w];Z(S)&&Z(x)&&(u[0]!=="A"||w!==4&&w!==5)?v[w]=S+y*(x-S):v[w]=x}h.push(v)}else h=P;else h=this.toD||[];this.elem.attr("d",h,void 0,!0)},I.prototype.update=function(){var E=this.elem,M=this.prop,P=this.now,y=this.options.step;this[M+"Setter"]?this[M+"Setter"]():E.attr?E.element&&E.attr(M,P,null,!0):E.style[M]=P+this.unit,y&&y.call(E,P,this)},I.prototype.run=function(E,M,P){var y=this,h=y.options,f=function(v){return!f.stopped&&y.step(v)},m=$.requestAnimationFrame||function(v){setTimeout(v,13)},u=function(){for(var v=0;v<I.timers.length;v++)I.timers[v]()||I.timers.splice(v--,1);I.timers.length&&m(u)};E!==M||this.elem["forceAnimate:"+this.prop]?(this.startTime=+new Date,this.start=E,this.end=M,this.unit=P,this.now=this.start,this.pos=0,f.elem=this.elem,f.prop=this.prop,f()&&I.timers.push(f)===1&&m(u)):(delete h.curAnim[this.prop],h.complete&&Object.keys(h.curAnim).length===0&&h.complete.call(this.elem))},I.prototype.step=function(E){var M,P,y=+new Date,h=this.options,f=this.elem,m=h.complete,u=h.duration,v=h.curAnim;return f.attr&&!f.element?M=!1:E||y>=u+this.startTime?(this.now=this.end,this.pos=1,this.update(),v[this.prop]=!0,P=!0,U(v,function(w){w!==!0&&(P=!1)}),P&&m&&m.call(f),M=!1):(this.pos=h.easing((y-this.startTime)/u),this.now=this.start+(this.end-this.start)*this.pos,this.update(),M=!0),M},I.prototype.initPath=function(E,M,P){var y,h,f,m,u=E.startX,v=E.endX,w=P.slice(),S=E.isArea,x=S?2:1,c=M&&M.slice();if(!c)return[w,w];function g(a,t){for(;a.length<h;){var i=a[0],o=t[h-a.length];if(o&&i[0]==="M"&&(o[0]==="C"?a[0]=["C",i[1],i[2],i[1],i[2],i[1],i[2]]:a[0]=["L",i[1],i[2]]),a.unshift(i),S){var e=a.pop();a.push(a[a.length-1],e)}}}function r(a,t){for(;a.length<h;){var i=a[Math.floor(a.length/x)-1].slice();if(i[0]==="C"&&(i[1]=i[5],i[2]=i[6]),S){var o=a[Math.floor(a.length/x)].slice();a.splice(a.length/2,0,i,o)}else a.push(i)}}if(u&&v&&v.length){for(f=0;f<u.length;f++){if(u[f]===v[0]){y=f;break}if(u[0]===v[v.length-u.length+f]){y=f,m=!0;break}if(u[u.length-1]===v[v.length-u.length+f]){y=u.length-f;break}}y===void 0&&(c=[])}return c.length&&Z(y)&&(h=w.length+y*x,m?(g(c,w),r(w)):(g(w,c),r(c))),[c,w]},I.prototype.fillSetter=function(){I.prototype.strokeSetter.apply(this,arguments)},I.prototype.strokeSetter=function(){this.elem.attr(this.prop,V(this.start).tweenTo(V(this.end),this.pos),void 0,!0)},I.timers=[],I}();return z}),it(B,"Core/Animation/AnimationUtilities.js",[B["Core/Animation/Fx.js"],B["Core/Utilities.js"]],function(W,R){var H=R.defined,V=R.getStyle,$=R.isArray,Z=R.isNumber,U=R.isObject,z=R.merge,I=R.objectEach,E=R.pick;function M(h){return U(h)?z({duration:500,defer:0},h):{duration:h?500:0,defer:0}}function P(h,f){for(var m=W.timers.length;m--;)W.timers[m].elem!==h||f&&f!==W.timers[m].prop||(W.timers[m].stopped=!0)}var y={animate:function(h,f,m){var u,v,w,S,x="";U(m)||(m={duration:(S=arguments)[2],easing:S[3],complete:S[4]}),Z(m.duration)||(m.duration=400),m.easing=typeof m.easing=="function"?m.easing:Math[m.easing]||Math.easeInOutSine,m.curAnim=z(f),I(f,function(c,g){P(h,g),w=new W(h,m,g),v=void 0,g==="d"&&$(f.d)?(w.paths=w.initPath(h,h.pathArray,f.d),w.toD=f.d,u=0,v=1):h.attr?u=h.attr(g):(u=parseFloat(V(h,g))||0,g!=="opacity"&&(x="px")),v||(v=c),typeof v=="string"&&v.match("px")&&(v=v.replace(/px/g,"")),w.run(u,v,x)})},animObject:M,getDeferredAnimation:function(h,f,m){var u=M(f),v=m?[m]:h.series,w=0,S=0;return v.forEach(function(x){var c=M(x.options.animation);w=f&&H(f.defer)?u.defer:Math.max(w,c.duration+c.defer),S=Math.min(u.duration,c.duration)}),h.renderer.forExport&&(w=0),{defer:Math.max(0,w-S),duration:Math.min(w,S)}},setAnimation:function(h,f){f.renderer.globalAnimation=E(h,f.options.chart.animation,!0)},stop:P};return y}),it(B,"Core/Renderer/HTML/AST.js",[B["Core/Globals.js"],B["Core/Utilities.js"]],function(W,R){var H=W.SVG_NS,V=W.win,$=R.attr,Z=R.createElement,U=R.css,z=R.error,I=R.isFunction,E=R.isString,M=R.objectEach,P=R.splat,y=V.trustedTypes,h=y&&I(y.createPolicy)&&y.createPolicy("highcharts",{createHTML:function(u){return u}}),f=h?h.createHTML(""):"",m=function(){try{return!!new DOMParser().parseFromString(f,"text/html")}catch(u){return!1}}();return function(){function u(v){this.nodes=typeof v=="string"?this.parseMarkup(v):v}return u.filterUserAttributes=function(v){return M(v,function(w,S){var x=!0;u.allowedAttributes.indexOf(S)===-1&&(x=!1),["background","dynsrc","href","lowsrc","src"].indexOf(S)!==-1&&(x=E(w)&&u.allowedReferences.some(function(c){return w.indexOf(c)===0})),x||(z(33,!1,void 0,{"Invalid attribute in config":"".concat(S)}),delete v[S]),E(w)&&v[S]&&(v[S]=w.replace(/</g,"&lt;"))}),v},u.parseStyle=function(v){return v.split(";").reduce(function(w,S){var x=S.split(":").map(function(g){return g.trim()}),c=x.shift();return c&&x.length&&(w[c.replace(/-([a-z])/g,function(g){return g[1].toUpperCase()})]=x.join(":")),w},{})},u.setElementHTML=function(v,w){v.innerHTML=u.emptyHTML,w&&new u(w).addToDOM(v)},u.prototype.addToDOM=function(v){return function w(S,x){var c;return P(S).forEach(function(g){var r,a=g.tagName,t=g.textContent?W.doc.createTextNode(g.textContent):void 0,i=u.bypassHTMLFiltering;if(a)if(a==="#text")r=t;else if(u.allowedTags.indexOf(a)!==-1||i){var o=a==="svg"?H:x.namespaceURI||H,e=W.doc.createElementNS(o,a),s=g.attributes||{};M(g,function(n,l){l!=="tagName"&&l!=="attributes"&&l!=="children"&&l!=="style"&&l!=="textContent"&&(s[l]=n)}),$(e,i?s:u.filterUserAttributes(s)),g.style&&U(e,g.style),t&&e.appendChild(t),w(g.children||[],e),r=e}else z(33,!1,void 0,{"Invalid tagName in config":a});r&&x.appendChild(r),c=r}),c}(this.nodes,v)},u.prototype.parseMarkup=function(v){var w,S=[];if(v=v.trim().replace(/ style=(["'])/g," data-style=$1"),m)w=new DOMParser().parseFromString(h?h.createHTML(v):v,"text/html");else{var x=Z("div");x.innerHTML=v,w={body:x}}var c=function(g,r){var a=g.nodeName.toLowerCase(),t={tagName:a};a==="#text"&&(t.textContent=g.textContent||"");var i=g.attributes;if(i){var o={};[].forEach.call(i,function(s){s.name==="data-style"?t.style=u.parseStyle(s.value):o[s.name]=s.value}),t.attributes=o}if(g.childNodes.length){var e=[];[].forEach.call(g.childNodes,function(s){c(s,e)}),e.length&&(t.children=e)}r.push(t)};return[].forEach.call(w.body.childNodes,function(g){return c(g,S)}),S},u.allowedAttributes=["aria-controls","aria-describedby","aria-expanded","aria-haspopup","aria-hidden","aria-label","aria-labelledby","aria-live","aria-pressed","aria-readonly","aria-roledescription","aria-selected","class","clip-path","color","colspan","cx","cy","d","dx","dy","disabled","fill","height","href","id","in","markerHeight","markerWidth","offset","opacity","orient","padding","paddingLeft","paddingRight","patternUnits","r","refX","refY","role","scope","slope","src","startOffset","stdDeviation","stroke","stroke-linecap","stroke-width","style","tableValues","result","rowspan","summary","target","tabindex","text-align","text-anchor","textAnchor","textLength","title","type","valign","width","x","x1","x2","xlink:href","y","y1","y2","zIndex"],u.allowedReferences=["https://","http://","mailto:","/","../","./","#"],u.allowedTags=["a","abbr","b","br","button","caption","circle","clipPath","code","dd","defs","div","dl","dt","em","feComponentTransfer","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feOffset","feMerge","feMergeNode","filter","h1","h2","h3","h4","h5","h6","hr","i","img","li","linearGradient","marker","ol","p","path","pattern","pre","rect","small","span","stop","strong","style","sub","sup","svg","table","text","textPath","thead","title","tbody","tspan","td","th","tr","u","ul","#text"],u.emptyHTML=f,u.bypassHTMLFiltering=!1,u}()}),it(B,"Core/FormatUtilities.js",[B["Core/Defaults.js"],B["Core/Utilities.js"]],function(W,R){var H=W.defaultOptions,V=W.defaultTime,$=R.getNestedProperty,Z=R.isNumber,U=R.pick,z=R.pInt;function I(E,M,P,y){var h,f;E=+E||0,M=+M;var m=H.lang,u=(E.toString().split(".")[1]||"").split("e")[0].length,v=E.toString().split("e"),w=M;M===-1?M=Math.min(u,20):Z(M)?M&&v[1]&&v[1]<0&&((f=M+ +v[1])>=0?(v[0]=(+v[0]).toExponential(f).split("e")[0],M=f):(v[0]=v[0].split(".")[0]||0,E=M<20?(v[0]*Math.pow(10,v[1])).toFixed(M):0,v[1]=0)):M=2;var S=(Math.abs(v[1]?v[0]:E)+Math.pow(10,-Math.max(M,u)-1)).toFixed(M),x=String(z(S)),c=x.length>3?x.length%3:0;return P=U(P,m.decimalPoint),y=U(y,m.thousandsSep),h=E<0?"-":"",h+=c?x.substr(0,c)+y:"",+v[1]<0&&!w?h="0":h+=x.substr(c).replace(/(\d{3})(?=\d)/g,"$1"+y),M&&(h+=P+S.slice(-M)),v[1]&&+h!=0&&(h+="e"+v[1]),h}return{dateFormat:function(E,M,P){return V.dateFormat(E,M,P)},format:function(E,M,P){for(var y,h,f,m,u="{",v=!1,w=/f$/,S=/\.([0-9])/,x=H.lang,c=P&&P.time||V,g=P&&P.numberFormatter||I,r=[];E&&(m=E.indexOf(u))!==-1;){if(y=E.slice(0,m),v){if(h=y.split(":"),f=$(h.shift()||"",M),h.length&&typeof f=="number")if(y=h.join(":"),w.test(y)){var a=parseInt((y.match(S)||["","-1"])[1],10);f!==null&&(f=g(f,a,x.decimalPoint,y.indexOf(",")>-1?x.thousandsSep:""))}else f=c.dateFormat(y,f);r.push(f)}else r.push(y);E=E.slice(m+1),u=(v=!v)?"}":"{"}return r.push(E),r.join("")},numberFormat:I}}),it(B,"Core/Renderer/RendererUtilities.js",[B["Core/Utilities.js"]],function(W){var R,H=W.clamp,V=W.pick,$=W.stableSort;return function(Z){Z.distribute=function U(z,I,E){var M,P,y,h=z,f=h.reducedLen||I,m=function(S,x){return S.target-x.target},u=!0,v=[],w=0;for(M=z.length;M--;)w+=z[M].size;if(w>f){for($(z,function(S,x){return(x.rank||0)-(S.rank||0)}),M=0,w=0;w<=f;)w+=z[M].size,M++;v=z.splice(M-1,z.length)}for($(z,m),z=z.map(function(S){return{size:S.size,targets:[S.target],align:V(S.align,.5)}});u;){for(M=z.length;M--;)P=z[M],y=(Math.min.apply(0,P.targets)+Math.max.apply(0,P.targets))/2,P.pos=H(y-P.size*P.align,0,I-P.size);for(M=z.length,u=!1;M--;)M>0&&z[M-1].pos+z[M-1].size>z[M].pos&&(z[M-1].size+=z[M].size,z[M-1].targets=z[M-1].targets.concat(z[M].targets),z[M-1].align=.5,z[M-1].pos+z[M-1].size>I&&(z[M-1].pos=I-z[M-1].size),z.splice(M,1),u=!0)}return h.push.apply(h,v),M=0,z.some(function(S){var x=0;return(S.targets||[]).some(function(){return h[M].pos=S.pos+x,E!==void 0&&Math.abs(h[M].pos-h[M].target)>E?(h.slice(0,M+1).forEach(function(c){return delete c.pos}),h.reducedLen=(h.reducedLen||I)-.1*I,h.reducedLen>.1*I&&U(h,I,E),!0):(x+=h[M].size,M++,!1)})}),$(h,m),h}}(R||(R={})),R}),it(B,"Core/Renderer/SVG/SVGElement.js",[B["Core/Animation/AnimationUtilities.js"],B["Core/Color/Color.js"],B["Core/Globals.js"],B["Core/Utilities.js"]],function(W,R,H,V){var $=W.animate,Z=W.animObject,U=W.stop,z=H.deg2rad,I=H.doc,E=H.svg,M=H.SVG_NS,P=H.win,y=V.addEvent,h=V.attr,f=V.createElement,m=V.css,u=V.defined,v=V.erase,w=V.extend,S=V.fireEvent,x=V.isArray,c=V.isFunction,g=V.isString,r=V.merge,a=V.objectEach,t=V.pick,i=V.pInt,o=V.syncTimeout,e=V.uniqueKey,s=function(){function n(){this.element=void 0,this.onEvents={},this.opacity=1,this.renderer=void 0,this.SVG_NS=M,this.symbolCustomAttribs=["x","y","width","height","r","start","end","innerR","anchorX","anchorY","rounded"]}return n.prototype._defaultGetter=function(l){var b=t(this[l+"Value"],this[l],this.element?this.element.getAttribute(l):null,0);return/^[\-0-9\.]+$/.test(b)&&(b=parseFloat(b)),b},n.prototype._defaultSetter=function(l,b,k){k.setAttribute(b,l)},n.prototype.add=function(l){var b,k=this.renderer,D=this.element;return l&&(this.parentGroup=l),this.textStr!==void 0&&this.element.nodeName==="text"&&k.buildText(this),this.added=!0,(!l||l.handleZ||this.zIndex)&&(b=this.zIndexSetter()),b||(l?l.element:k.box).appendChild(D),this.onAdd&&this.onAdd(),this},n.prototype.addClass=function(l,b){var k=b?"":this.attr("class")||"";return(l=(l||"").split(/ /g).reduce(function(D,p){return k.indexOf(p)===-1&&D.push(p),D},k?[k]:[]).join(" "))!==k&&this.attr("class",l),this},n.prototype.afterSetters=function(){this.doTransform&&(this.updateTransform(),this.doTransform=!1)},n.prototype.align=function(l,b,k){var D,p,C,A,N,_={},L=this.renderer,O=L.alignedObjects;l?(this.alignOptions=l,this.alignByTranslate=b,k&&!g(k)||(this.alignTo=C=k||"renderer",v(O,this),O.push(this),k=void 0)):(l=this.alignOptions,b=this.alignByTranslate,C=this.alignTo),k=t(k,L[C],C==="scrollablePlotBox"?L.plotBox:void 0,L);var j=l.align,Y=l.verticalAlign;return D=(k.x||0)+(l.x||0),p=(k.y||0)+(l.y||0),j==="right"?A=1:j==="center"&&(A=2),A&&(D+=(k.width-(l.width||0))/A),_[b?"translateX":"x"]=Math.round(D),Y==="bottom"?N=1:Y==="middle"&&(N=2),N&&(p+=(k.height-(l.height||0))/N),_[b?"translateY":"y"]=Math.round(p),this[this.placed?"animate":"attr"](_),this.placed=!0,this.alignAttr=_,this},n.prototype.alignSetter=function(l){var b={left:"start",center:"middle",right:"end"};b[l]&&(this.alignValue=l,this.element.setAttribute("text-anchor",b[l]))},n.prototype.animate=function(l,b,k){var D=this,p=Z(t(b,this.renderer.globalAnimation,!0)),C=p.defer;return t(I.hidden,I.msHidden,I.webkitHidden,!1)&&(p.duration=0),p.duration!==0?(k&&(p.complete=k),o(function(){D.element&&$(D,l,p)},C)):(this.attr(l,void 0,k||p.complete),a(l,function(A,N){p.step&&p.step.call(this,A,{prop:N,pos:1,elem:this})},this)),this},n.prototype.applyTextOutline=function(l){var b=this.element;l.indexOf("contrast")!==-1&&(l=l.replace(/contrast/g,this.renderer.getContrast(b.style.fill)));var k=l.split(" "),D=k[k.length-1],p=k[0];if(p&&p!=="none"&&H.svg){this.fakeTS=!0,p=p.replace(/(^[\d\.]+)(.*?)$/g,function(L,O,j){return 2*Number(O)+j}),this.removeTextOutline();var C=I.createElementNS(M,"tspan");h(C,{class:"highcharts-text-outline",fill:D,stroke:D,"stroke-width":p,"stroke-linejoin":"round"});var A=b.querySelector("textPath")||b;[].forEach.call(A.childNodes,function(L){var O=L.cloneNode(!0);O.removeAttribute&&["fill","stroke","stroke-width","stroke"].forEach(function(j){return O.removeAttribute(j)}),C.appendChild(O)});var N=0;[].forEach.call(A.querySelectorAll("text tspan"),function(L){N+=Number(L.getAttribute("dy"))});var _=I.createElementNS(M,"tspan");_.textContent="​",h(_,{x:Number(b.getAttribute("x")),dy:-N}),C.appendChild(_),A.insertBefore(C,A.firstChild)}},n.prototype.attr=function(l,b,k,D){var p,C,A,N,_=this.element,L=this.symbolCustomAttribs,O=this;return typeof l=="string"&&b!==void 0&&(p=l,(l={})[p]=b),typeof l=="string"?O=(this[l+"Getter"]||this._defaultGetter).call(this,l,_):(a(l,function(j,Y){A=!1,D||U(this,Y),this.symbolName&&L.indexOf(Y)!==-1&&(C||(this.symbolAttr(l),C=!0),A=!0),!this.rotation||Y!=="x"&&Y!=="y"||(this.doTransform=!0),A||((N=this[Y+"Setter"]||this._defaultSetter).call(this,j,Y,_),!this.styledMode&&this.shadows&&/^(width|height|visibility|x|y|d|transform|cx|cy|r)$/.test(Y)&&this.updateShadows(Y,j,N))},this),this.afterSetters()),k&&k.call(this),O},n.prototype.clip=function(l){return this.attr("clip-path",l?"url("+this.renderer.url+"#"+l.id+")":"none")},n.prototype.crisp=function(l,b){var k=this;b=b||l.strokeWidth||0;var D=Math.round(b)%2/2;return l.x=Math.floor(l.x||k.x||0)+D,l.y=Math.floor(l.y||k.y||0)+D,l.width=Math.floor((l.width||k.width||0)-2*D),l.height=Math.floor((l.height||k.height||0)-2*D),u(l.strokeWidth)&&(l.strokeWidth=b),l},n.prototype.complexColor=function(l,b,k){var D,p,C,A,N,_,L,O,j,Y,X,G=this.renderer,q=[];S(this.renderer,"complexColor",{args:arguments},function(){if(l.radialGradient?p="radialGradient":l.linearGradient&&(p="linearGradient"),p){if(C=l[p],N=G.gradients,_=l.stops,j=k.radialReference,x(C)&&(l[p]=C={x1:C[0],y1:C[1],x2:C[2],y2:C[3],gradientUnits:"userSpaceOnUse"}),p==="radialGradient"&&j&&!u(C.gradientUnits)&&(A=C,C=r(C,G.getRadialAttr(j,A),{gradientUnits:"userSpaceOnUse"})),a(C,function(J,rt){rt!=="id"&&q.push(rt,J)}),a(_,function(J){q.push(J)}),q=q.join(","),N[q])Y=N[q].attr("id");else{C.id=Y=e();var Q=N[q]=G.createElement(p).attr(C).add(G.defs);Q.radAttr=A,Q.stops=[],_.forEach(function(J){J[1].indexOf("rgba")===0?(D=R.parse(J[1]),L=D.get("rgb"),O=D.get("a")):(L=J[1],O=1);var rt=G.createElement("stop").attr({offset:J[0],"stop-color":L,"stop-opacity":O}).add(Q);Q.stops.push(rt)})}X="url("+G.url+"#"+Y+")",k.setAttribute(b,X),k.gradient=q,l.toString=function(){return X}}})},n.prototype.css=function(l){var b,k=this.styles,D={},p=this.element,C=!k;if(l.color&&(l.fill=l.color),k&&a(l,function(N,_){k&&k[_]!==N&&(D[_]=N,C=!0)}),C){k&&(l=w(k,D)),l.width===null||l.width==="auto"?delete this.textWidth:p.nodeName.toLowerCase()==="text"&&l.width&&(b=this.textWidth=i(l.width)),this.styles=l,b&&!E&&this.renderer.forExport&&delete l.width;var A=r(l);p.namespaceURI===this.SVG_NS&&["textOutline","textOverflow","width"].forEach(function(N){return A&&delete A[N]}),m(p,A),this.added&&(this.element.nodeName==="text"&&this.renderer.buildText(this),l.textOutline&&this.applyTextOutline(l.textOutline))}return this},n.prototype.dashstyleSetter=function(l){var b,k=this["stroke-width"];if(k==="inherit"&&(k=1),l=l&&l.toLowerCase()){var D=l.replace("shortdashdotdot","3,1,1,1,1,1,").replace("shortdashdot","3,1,1,1").replace("shortdot","1,1,").replace("shortdash","3,1,").replace("longdash","8,3,").replace(/dot/g,"1,3,").replace("dash","4,3,").replace(/,$/,"").split(",");for(b=D.length;b--;)D[b]=""+i(D[b])*t(k,NaN);l=D.join(",").replace(/NaN/g,"none"),this.element.setAttribute("stroke-dasharray",l)}},n.prototype.destroy=function(){var l,b,k=this,D=k.element||{},p=k.renderer,C=D.ownerSVGElement,A=p.isSVG&&D.nodeName==="SPAN"&&k.parentGroup||void 0;if(D.onclick=D.onmouseout=D.onmouseover=D.onmousemove=D.point=null,U(k),k.clipPath&&C){var N=k.clipPath;[].forEach.call(C.querySelectorAll("[clip-path],[CLIP-PATH]"),function(_){_.getAttribute("clip-path").indexOf(N.element.id)>-1&&_.removeAttribute("clip-path")}),k.clipPath=N.destroy()}if(k.stops){for(b=0;b<k.stops.length;b++)k.stops[b].destroy();k.stops.length=0,k.stops=void 0}for(k.safeRemoveChild(D),p.styledMode||k.destroyShadows();A&&A.div&&A.div.childNodes.length===0;)l=A.parentGroup,k.safeRemoveChild(A.div),delete A.div,A=l;k.alignTo&&v(p.alignedObjects,k),a(k,function(_,L){k[L]&&k[L].parentGroup===k&&k[L].destroy&&k[L].destroy(),delete k[L]})},n.prototype.destroyShadows=function(){(this.shadows||[]).forEach(function(l){this.safeRemoveChild(l)},this),this.shadows=void 0},n.prototype.dSetter=function(l,b,k){x(l)&&(typeof l[0]=="string"&&(l=this.renderer.pathToSegments(l)),this.pathArray=l,l=l.reduce(function(D,p,C){return p&&p.join?(C?D+" ":"")+p.join(" "):(p||"").toString()},"")),/(NaN| {2}|^$)/.test(l)&&(l="M 0 0"),this[b]!==l&&(k.setAttribute(b,l),this[b]=l)},n.prototype.fadeOut=function(l){var b=this;b.animate({opacity:0},{duration:t(l,150),complete:function(){b.hide()}})},n.prototype.fillSetter=function(l,b,k){typeof l=="string"?k.setAttribute(b,l):l&&this.complexColor(l,b,k)},n.prototype.getBBox=function(l,b){var k,D,p,C,A,N=this,_=N.alignValue,L=N.element,O=N.renderer,j=N.styles,Y=N.textStr,X=O.cache,G=O.cacheKeys,q=L.namespaceURI===N.SVG_NS,Q=t(b,N.rotation,0),J=O.styledMode?L&&n.prototype.getStyle.call(L,"font-size"):j&&j.fontSize;if(u(Y)&&((A=Y.toString()).indexOf("<")===-1&&(A=A.replace(/[0-9]/g,"0")),A+=["",Q,J,N.textWidth,_,j&&j.textOverflow,j&&j.fontWeight].join(",")),A&&!l&&(k=X[A]),!k){if(q||O.forExport){try{C=this.fakeTS&&function(Tt){var Lt=L.querySelector(".highcharts-text-outline");Lt&&m(Lt,{display:Tt})},c(C)&&C("none"),k=L.getBBox?w({},L.getBBox()):{width:L.offsetWidth,height:L.offsetHeight,x:0,y:0},c(C)&&C("")}catch(Tt){}(!k||k.width<0)&&(k={x:0,y:0,width:0,height:0})}else k=N.htmlGetBBox();if(O.isSVG&&(D=k.width,p=k.height,q&&(k.height=p={"11px,17":14,"13px,20":16}[""+(J||"")+",".concat(Math.round(p))]||p),Q)){var rt=Number(L.getAttribute("y")||0)-k.y,lt={right:1,center:.5}[_||0]||0,gt=Q*z,mt=(Q-90)*z,bt=D*Math.cos(gt),yt=D*Math.sin(gt),ct=Math.cos(mt),et=Math.sin(mt),at=k.x+lt*(D-bt)+rt*ct,dt=at+bt,vt=dt-p*ct,Ct=vt-bt,xt=k.y+rt-lt*yt+rt*et,wt=xt+yt,Mt=wt-p*et,St=Mt-yt;k.x=Math.min(at,dt,vt,Ct),k.y=Math.min(xt,wt,Mt,St),k.width=Math.max(at,dt,vt,Ct)-k.x,k.height=Math.max(xt,wt,Mt,St)-k.y}if(A&&(Y===""||k.height>0)){for(;G.length>250;)delete X[G.shift()];X[A]||G.push(A),X[A]=k}}return k},n.prototype.getStyle=function(l){return P.getComputedStyle(this.element||this,"").getPropertyValue(l)},n.prototype.hasClass=function(l){return(""+this.attr("class")).split(" ").indexOf(l)!==-1},n.prototype.hide=function(){return this.attr({visibility:"hidden"})},n.prototype.htmlGetBBox=function(){return{height:0,width:0,x:0,y:0}},n.prototype.init=function(l,b){this.element=b==="span"?f(b):I.createElementNS(this.SVG_NS,b),this.renderer=l,S(this,"afterInit")},n.prototype.on=function(l,b){var k=this.onEvents;return k[l]&&k[l](),k[l]=y(this.element,l,b),this},n.prototype.opacitySetter=function(l,b,k){var D=Number(Number(l).toFixed(3));this.opacity=D,k.setAttribute(b,D)},n.prototype.removeClass=function(l){return this.attr("class",(""+this.attr("class")).replace(g(l)?new RegExp("(^| )".concat(l,"( |$)")):l," ").replace(/ +/g," ").trim())},n.prototype.removeTextOutline=function(){var l=this.element.querySelector("tspan.highcharts-text-outline");l&&this.safeRemoveChild(l)},n.prototype.safeRemoveChild=function(l){var b=l.parentNode;b&&b.removeChild(l)},n.prototype.setRadialReference=function(l){var b=this.element.gradient&&this.renderer.gradients[this.element.gradient];return this.element.radialReference=l,b&&b.radAttr&&b.animate(this.renderer.getRadialAttr(l,b.radAttr)),this},n.prototype.setTextPath=function(l,b){var k=this;b=r(!0,{enabled:!0,attributes:{dy:-5,startOffset:"50%",textAnchor:"middle"}},b);var D=this.renderer.url,p=this.text||this,C=p.textPath,A=b.attributes,N=b.enabled;if(l=l||C&&C.path,C&&C.undo(),l&&N){var _=y(p,"afterModifyTree",function(L){if(l&&N){var O=l.attr("id");O||l.attr("id",O=e());var j={x:0,y:0};u(A.dx)&&(j.dx=A.dx,delete A.dx),u(A.dy)&&(j.dy=A.dy,delete A.dy),p.attr(j),k.attr({transform:""}),k.box&&(k.box=k.box.destroy());var Y=L.nodes.slice(0);L.nodes.length=0,L.nodes[0]={tagName:"textPath",attributes:w(A,{"text-anchor":A.textAnchor,href:""+D+"#".concat(O)}),children:Y}}});p.textPath={path:l,undo:_}}else p.attr({dx:0,dy:0}),delete p.textPath;return this.added&&(p.textCache="",this.renderer.buildText(p)),this},n.prototype.shadow=function(l,b,k){var D,p,C,A,N,_,L=[],O=this,j=O.element,Y=O.oldShadowOptions,X=O.parentGroup,G=X&&X.rotation===90,q={color:"#000000",offsetX:G?-1:1,offsetY:G?-1:1,opacity:.15,width:3},Q=!1;if(l===!0?_=q:typeof l=="object"&&(_=w(q,l)),_&&(_&&Y&&a(_,function(J,rt){J!==Y[rt]&&(Q=!0)}),Q&&this.destroyShadows(),this.oldShadowOptions=_),_){if(!this.shadows){for(A=_.opacity/_.width,N=G?"translate(".concat(_.offsetY,", ").concat(_.offsetX,")"):"translate(".concat(_.offsetX,", ").concat(_.offsetY,")"),D=1;D<=_.width;D++)p=j.cloneNode(!1),C=2*_.width+1-2*D,h(p,{stroke:l.color||"#000000","stroke-opacity":A*D,"stroke-width":C,transform:N,fill:"none"}),p.setAttribute("class",(p.getAttribute("class")||"")+" highcharts-shadow"),k&&(h(p,"height",Math.max(h(p,"height")-C,0)),p.cutHeight=C),b?b.element.appendChild(p):j.parentNode&&j.parentNode.insertBefore(p,j),L.push(p);this.shadows=L}}else this.destroyShadows();return this},n.prototype.show=function(l){return l===void 0&&(l=!0),this.attr({visibility:l?"inherit":"visible"})},n.prototype["stroke-widthSetter"]=function(l,b,k){this[b]=l,k.setAttribute(b,l)},n.prototype.strokeWidth=function(){if(!this.renderer.styledMode)return this["stroke-width"]||0;var l,b=this.getStyle("stroke-width"),k=0;return b.indexOf("px")===b.length-2?k=i(b):b!==""&&(l=I.createElementNS(M,"rect"),h(l,{width:b,"stroke-width":0}),this.element.parentNode.appendChild(l),k=l.getBBox().width,l.parentNode.removeChild(l)),k},n.prototype.symbolAttr=function(l){var b=this;["x","y","r","start","end","width","height","innerR","anchorX","anchorY","clockwise"].forEach(function(k){b[k]=t(l[k],b[k])}),b.attr({d:b.renderer.symbols[b.symbolName](b.x,b.y,b.width,b.height,b)})},n.prototype.textSetter=function(l){l!==this.textStr&&(delete this.textPxLength,this.textStr=l,this.added&&this.renderer.buildText(this))},n.prototype.titleSetter=function(l){var b=this.element,k=b.getElementsByTagName("title")[0]||I.createElementNS(this.SVG_NS,"title");b.insertBefore?b.insertBefore(k,b.firstChild):b.appendChild(k),k.textContent=String(t(l,"")).replace(/<[^>]*>/g,"").replace(/&lt;/g,"<").replace(/&gt;/g,">")},n.prototype.toFront=function(){var l=this.element;return l.parentNode.appendChild(l),this},n.prototype.translate=function(l,b){return this.attr({translateX:l,translateY:b})},n.prototype.updateShadows=function(l,b,k){var D=this.shadows;if(D)for(var p=D.length;p--;)k.call(D[p],l==="height"?Math.max(b-(D[p].cutHeight||0),0):l==="d"?this.d:b,l,D[p])},n.prototype.updateTransform=function(){var l=this,b=l.element,k=l.matrix,D=l.rotation,p=D===void 0?0:D,C=l.scaleX,A=l.scaleY,N=l.translateX,_=N===void 0?0:N,L=l.translateY,O=["translate("+_+","+(L===void 0?0:L)+")"];u(k)&&O.push("matrix("+k.join(",")+")"),p&&O.push("rotate("+p+" "+t(this.rotationOriginX,b.getAttribute("x"),0)+" "+t(this.rotationOriginY,b.getAttribute("y")||0)+")"),(u(C)||u(A))&&O.push("scale("+t(C,1)+" "+t(A,1)+")"),O.length&&!(this.text||this).textPath&&b.setAttribute("transform",O.join(" "))},n.prototype.visibilitySetter=function(l,b,k){l==="inherit"?k.removeAttribute(b):this[b]!==l&&k.setAttribute(b,l),this[b]=l},n.prototype.xGetter=function(l){return this.element.nodeName==="circle"&&(l==="x"?l="cx":l==="y"&&(l="cy")),this._defaultGetter(l)},n.prototype.zIndexSetter=function(l,b){var k,D,p,C,A,N=this.renderer,_=this.parentGroup,L=(_||N).element||N.box,O=this.element,j=L===N.box,Y=!1,X=this.added;if(u(l)?(O.setAttribute("data-z-index",l),l=+l,this[b]===l&&(X=!1)):u(this[b])&&O.removeAttribute("data-z-index"),this[b]=l,X){for((l=this.zIndex)&&_&&(_.handleZ=!0),A=(k=L.childNodes).length-1;A>=0&&!Y;A--)p=(D=k[A]).getAttribute("data-z-index"),C=!u(p),D!==O&&(l<0&&C&&!j&&!A?(L.insertBefore(O,k[A]),Y=!0):(i(p)<=l||C&&(!u(l)||l>=0))&&(L.insertBefore(O,k[A+1]||null),Y=!0));Y||(L.insertBefore(O,k[j?3:0]||null),Y=!0)}return Y},n}();return s.prototype.strokeSetter=s.prototype.fillSetter,s.prototype.yGetter=s.prototype.xGetter,s.prototype.matrixSetter=s.prototype.rotationOriginXSetter=s.prototype.rotationOriginYSetter=s.prototype.rotationSetter=s.prototype.scaleXSetter=s.prototype.scaleYSetter=s.prototype.translateXSetter=s.prototype.translateYSetter=s.prototype.verticalAlignSetter=function(n,l){this[l]=n,this.doTransform=!0},s}),it(B,"Core/Renderer/RendererRegistry.js",[B["Core/Globals.js"]],function(W){var R;return function(H){var V;H.rendererTypes={},H.getRendererType=function($){return $===void 0&&($=V),H.rendererTypes[$]||H.rendererTypes[V]},H.registerRendererType=function($,Z,U){H.rendererTypes[$]=Z,V&&!U||(V=$,W.Renderer=Z)}}(R||(R={})),R}),it(B,"Core/Renderer/SVG/SVGLabel.js",[B["Core/Renderer/SVG/SVGElement.js"],B["Core/Utilities.js"]],function(W,R){var H,V=this&&this.__extends||(H=function(M,P){return H=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(y,h){y.__proto__=h}||function(y,h){for(var f in h)h.hasOwnProperty(f)&&(y[f]=h[f])},H(M,P)},function(M,P){function y(){this.constructor=M}H(M,P),M.prototype=P===null?Object.create(P):(y.prototype=P.prototype,new y)}),$=R.defined,Z=R.extend,U=R.isNumber,z=R.merge,I=R.pick,E=R.removeEvent;return function(M){function P(y,h,f,m,u,v,w,S,x,c){var g,r=M.call(this)||this;return r.paddingLeftSetter=r.paddingSetter,r.paddingRightSetter=r.paddingSetter,r.init(y,"g"),r.textStr=h,r.x=f,r.y=m,r.anchorX=v,r.anchorY=w,r.baseline=x,r.className=c,r.addClass(c==="button"?"highcharts-no-tooltip":"highcharts-label"),c&&r.addClass("highcharts-"+c),r.text=y.text(void 0,0,0,S).attr({zIndex:1}),typeof u=="string"&&((g=/^url\((.*?)\)$/.test(u))||r.renderer.symbols[u])&&(r.symbolKey=u),r.bBox=P.emptyBBox,r.padding=3,r.baselineOffset=0,r.needsBox=y.styledMode||g,r.deferredAttr={},r.alignFactor=0,r}return V(P,M),P.prototype.alignSetter=function(y){var h={left:0,center:.5,right:1}[y];h!==this.alignFactor&&(this.alignFactor=h,this.bBox&&U(this.xSetting)&&this.attr({x:this.xSetting}))},P.prototype.anchorXSetter=function(y,h){this.anchorX=y,this.boxAttr(h,Math.round(y)-this.getCrispAdjust()-this.xSetting)},P.prototype.anchorYSetter=function(y,h){this.anchorY=y,this.boxAttr(h,y-this.ySetting)},P.prototype.boxAttr=function(y,h){this.box?this.box.attr(y,h):this.deferredAttr[y]=h},P.prototype.css=function(y){if(y){var h={};y=z(y),P.textProps.forEach(function(f){y[f]!==void 0&&(h[f]=y[f],delete y[f])}),this.text.css(h),"fontSize"in h||"fontWeight"in h?this.updateTextPadding():("width"in h||"textOverflow"in h)&&this.updateBoxSize()}return W.prototype.css.call(this,y)},P.prototype.destroy=function(){E(this.element,"mouseenter"),E(this.element,"mouseleave"),this.text&&this.text.destroy(),this.box&&(this.box=this.box.destroy()),W.prototype.destroy.call(this)},P.prototype.fillSetter=function(y,h){y&&(this.needsBox=!0),this.fill=y,this.boxAttr(h,y)},P.prototype.getBBox=function(){this.textStr&&this.bBox.width===0&&this.bBox.height===0&&this.updateBoxSize();var y=this.padding,h=I(this.paddingLeft,y);return{width:this.width,height:this.height,x:this.bBox.x-h,y:this.bBox.y-y}},P.prototype.getCrispAdjust=function(){return this.renderer.styledMode&&this.box?this.box.strokeWidth()%2/2:(this["stroke-width"]?parseInt(this["stroke-width"],10):0)%2/2},P.prototype.heightSetter=function(y){this.heightSetting=y},P.prototype.onAdd=function(){this.text.add(this),this.attr({text:I(this.textStr,""),x:this.x||0,y:this.y||0}),this.box&&$(this.anchorX)&&this.attr({anchorX:this.anchorX,anchorY:this.anchorY})},P.prototype.paddingSetter=function(y,h){U(y)?y!==this[h]&&(this[h]=y,this.updateTextPadding()):this[h]=void 0},P.prototype.rSetter=function(y,h){this.boxAttr(h,y)},P.prototype.shadow=function(y){return y&&!this.renderer.styledMode&&(this.updateBoxSize(),this.box&&this.box.shadow(y)),this},P.prototype.strokeSetter=function(y,h){this.stroke=y,this.boxAttr(h,y)},P.prototype["stroke-widthSetter"]=function(y,h){y&&(this.needsBox=!0),this["stroke-width"]=y,this.boxAttr(h,y)},P.prototype["text-alignSetter"]=function(y){this.textAlign=y},P.prototype.textSetter=function(y){y!==void 0&&this.text.attr({text:y}),this.updateTextPadding()},P.prototype.updateBoxSize=function(){var y,h=this.text,f=h.element.style,m={},u=this.padding,v=this.bBox=U(this.widthSetting)&&U(this.heightSetting)&&!this.textAlign||!$(h.textStr)?P.emptyBBox:h.getBBox();this.width=this.getPaddedWidth(),this.height=(this.heightSetting||v.height||0)+2*u;var w=this.renderer.fontMetrics(f&&f.fontSize,h);if(this.baselineOffset=u+Math.min((this.text.firstLineMetrics||w).b,v.height||1/0),this.heightSetting&&(this.baselineOffset+=(this.heightSetting-w.h)/2),this.needsBox&&!h.textPath){if(!this.box){var S=this.box=this.symbolKey?this.renderer.symbol(this.symbolKey):this.renderer.rect();S.addClass((this.className==="button"?"":"highcharts-label-box")+(this.className?" highcharts-"+this.className+"-box":"")),S.add(this)}y=this.getCrispAdjust(),m.x=y,m.y=(this.baseline?-this.baselineOffset:0)+y,m.width=Math.round(this.width),m.height=Math.round(this.height),this.box.attr(Z(m,this.deferredAttr)),this.deferredAttr={}}},P.prototype.updateTextPadding=function(){var y=this.text;if(!y.textPath){this.updateBoxSize();var h=this.baseline?0:this.baselineOffset,f=I(this.paddingLeft,this.padding);$(this.widthSetting)&&this.bBox&&(this.textAlign==="center"||this.textAlign==="right")&&(f+={center:.5,right:1}[this.textAlign]*(this.widthSetting-this.bBox.width)),f===y.x&&h===y.y||(y.attr("x",f),y.hasBoxWidthChanged&&(this.bBox=y.getBBox(!0)),h!==void 0&&y.attr("y",h)),y.x=f,y.y=h}},P.prototype.widthSetter=function(y){this.widthSetting=U(y)?y:void 0},P.prototype.getPaddedWidth=function(){var y=this.padding,h=I(this.paddingLeft,y),f=I(this.paddingRight,y);return(this.widthSetting||this.bBox.width||0)+h+f},P.prototype.xSetter=function(y){this.x=y,this.alignFactor&&(y-=this.alignFactor*this.getPaddedWidth(),this["forceAnimate:x"]=!0),this.xSetting=Math.round(y),this.attr("translateX",this.xSetting)},P.prototype.ySetter=function(y){this.ySetting=this.y=Math.round(y),this.attr("translateY",this.ySetting)},P.emptyBBox={width:0,height:0,x:0,y:0},P.textProps=["color","direction","fontFamily","fontSize","fontStyle","fontWeight","lineHeight","textAlign","textDecoration","textOutline","textOverflow","width"],P}(W)}),it(B,"Core/Renderer/SVG/Symbols.js",[B["Core/Utilities.js"]],function(W){var R=W.defined,H=W.isNumber,V=W.pick;function $(z,I,E,M,P){var y=[];if(P){var h=P.start||0,f=V(P.r,E),m=V(P.r,M||E),u=.001,v=Math.abs((P.end||0)-h-2*Math.PI)<u,w=(P.end||0)-u,S=P.innerR,x=V(P.open,v),c=Math.cos(h),g=Math.sin(h),r=Math.cos(w),a=Math.sin(w),t=V(P.longArc,w-h-Math.PI<u?0:1);y.push(["M",z+f*c,I+m*g],["A",f,m,0,t,V(P.clockwise,1),z+f*r,I+m*a]),R(S)&&y.push(x?["M",z+S*r,I+S*a]:["L",z+S*r,I+S*a],["A",S,S,0,t,R(P.clockwise)?1-P.clockwise:0,z+S*c,I+S*g]),x||y.push(["Z"])}return y}function Z(z,I,E,M,P){return P&&P.r?U(z,I,E,M,P):[["M",z,I],["L",z+E,I],["L",z+E,I+M],["L",z,I+M],["Z"]]}function U(z,I,E,M,P){var y=P&&P.r||0;return[["M",z+y,I],["L",z+E-y,I],["C",z+E,I,z+E,I,z+E,I+y],["L",z+E,I+M-y],["C",z+E,I+M,z+E,I+M,z+E-y,I+M],["L",z+y,I+M],["C",z,I+M,z,I+M,z,I+M-y],["L",z,I+y],["C",z,I,z,I,z+y,I]]}return{arc:$,callout:function(z,I,E,M,P){var y=Math.min(P&&P.r||0,E,M),h=y+6,f=P&&P.anchorX,m=P&&P.anchorY||0,u=U(z,I,E,M,{r:y});return H(f)&&(z+f>=E?m>I+h&&m<I+M-h?u.splice(3,1,["L",z+E,m-6],["L",z+E+6,m],["L",z+E,m+6],["L",z+E,I+M-y]):u.splice(3,1,["L",z+E,M/2],["L",f,m],["L",z+E,M/2],["L",z+E,I+M-y]):z+f<=0?m>I+h&&m<I+M-h?u.splice(7,1,["L",z,m+6],["L",z-6,m],["L",z,m-6],["L",z,I+y]):u.splice(7,1,["L",z,M/2],["L",f,m],["L",z,M/2],["L",z,I+y]):m&&m>M&&f>z+h&&f<z+E-h?u.splice(5,1,["L",f+6,I+M],["L",f,I+M+6],["L",f-6,I+M],["L",z+y,I+M]):m&&m<0&&f>z+h&&f<z+E-h&&u.splice(1,1,["L",f-6,I],["L",f,I-6],["L",f+6,I],["L",E-y,I])),u},circle:function(z,I,E,M){return $(z+E/2,I+M/2,E/2,M/2,{start:.5*Math.PI,end:2.5*Math.PI,open:!1})},diamond:function(z,I,E,M){return[["M",z+E/2,I],["L",z+E,I+M/2],["L",z+E/2,I+M],["L",z,I+M/2],["Z"]]},rect:Z,roundedRect:U,square:Z,triangle:function(z,I,E,M){return[["M",z+E/2,I],["L",z+E,I+M],["L",z,I+M],["Z"]]},"triangle-down":function(z,I,E,M){return[["M",z,I],["L",z+E,I],["L",z+E/2,I+M],["Z"]]}}}),it(B,"Core/Renderer/SVG/TextBuilder.js",[B["Core/Renderer/HTML/AST.js"],B["Core/Globals.js"],B["Core/Utilities.js"]],function(W,R,H){var V=R.doc,$=R.SVG_NS,Z=R.win,U=H.attr,z=H.extend,I=H.fireEvent,E=H.isString,M=H.objectEach,P=H.pick;return function(){function y(h){var f=h.styles;this.renderer=h.renderer,this.svgElement=h,this.width=h.textWidth,this.textLineHeight=f&&f.lineHeight,this.textOutline=f&&f.textOutline,this.ellipsis=!!(f&&f.textOverflow==="ellipsis"),this.noWrap=!!(f&&f.whiteSpace==="nowrap"),this.fontSize=f&&f.fontSize}return y.prototype.buildSVG=function(){var h=this.svgElement,f=h.element,m=h.renderer,u=P(h.textStr,"").toString(),v=u.indexOf("<")!==-1,w=f.childNodes,S=this.width&&!h.added&&m.box,x=[u,this.ellipsis,this.noWrap,this.textLineHeight,this.textOutline,this.fontSize,this.width].join(",");if(x!==h.textCache){h.textCache=x,delete h.actualWidth;for(var c=w.length;c--;)f.removeChild(w[c]);if(v||this.ellipsis||this.width||h.textPath||u.indexOf(" ")!==-1&&(!this.noWrap||/<br.*?>/g.test(u))){if(u!==""){S&&S.appendChild(f);var g=new W(u);this.modifyTree(g.nodes),g.addToDOM(f),this.modifyDOM(),this.ellipsis&&(f.textContent||"").indexOf("…")!==-1&&h.attr("title",this.unescapeEntities(h.textStr||"",["&lt;","&gt;"])),S&&S.removeChild(f)}}else f.appendChild(V.createTextNode(this.unescapeEntities(u)));E(this.textOutline)&&h.applyTextOutline&&h.applyTextOutline(this.textOutline)}},y.prototype.modifyDOM=function(){var h,f=this,m=this.svgElement,u=U(m.element,"x");for(m.firstLineMetrics=void 0;(h=m.element.firstChild)&&/^[\s\u200B]*$/.test(h.textContent||" ");)m.element.removeChild(h);[].forEach.call(m.element.querySelectorAll("tspan.highcharts-br"),function(S,x){S.nextSibling&&S.previousSibling&&(x===0&&S.previousSibling.nodeType===1&&(m.firstLineMetrics=m.renderer.fontMetrics(void 0,S.previousSibling)),U(S,{dy:f.getLineHeight(S.nextSibling),x:u}))});var v=this.width||0;if(v){var w=function(S){[].slice.call(S.childNodes).forEach(function(x){x.nodeType===Z.Node.TEXT_NODE?function(c,g){var r=c.textContent||"",a=r.replace(/([^\^])-/g,"$1- ").split(" "),t=!f.noWrap&&(a.length>1||m.element.childNodes.length>1),i=f.getLineHeight(g),o=0,e=m.actualWidth;if(f.ellipsis)r&&f.truncate(c,r,void 0,0,Math.max(0,v-parseInt(f.fontSize||12,10)),function(l,b){return l.substring(0,b)+"…"});else if(t){for(var s=[],n=[];g.firstChild&&g.firstChild!==c;)n.push(g.firstChild),g.removeChild(g.firstChild);for(;a.length;)a.length&&!f.noWrap&&o>0&&(s.push(c.textContent||""),c.textContent=a.join(" ").replace(/- /g,"-")),f.truncate(c,void 0,a,o===0&&e||0,v,function(l,b){return a.slice(0,b).join(" ").replace(/- /g,"-")}),e=m.actualWidth,o++;n.forEach(function(l){g.insertBefore(l,c)}),s.forEach(function(l){g.insertBefore(V.createTextNode(l),c);var b=V.createElementNS($,"tspan");b.textContent="​",U(b,{dy:i,x:u}),g.insertBefore(b,c)})}}(x,S):(x.className.baseVal.indexOf("highcharts-br")!==-1&&(m.actualWidth=0),w(x))})};w(m.element)}},y.prototype.getLineHeight=function(h){var f,m=h.nodeType===Z.Node.TEXT_NODE?h.parentElement:h;return this.renderer.styledMode||(f=m&&/(px|em)$/.test(m.style.fontSize)?m.style.fontSize:this.fontSize||this.renderer.style.fontSize||12),this.textLineHeight?parseInt(this.textLineHeight.toString(),10):this.renderer.fontMetrics(f,m||this.svgElement.element).h},y.prototype.modifyTree=function(h){var f=this,m=function(u,v){var w=u.attributes,S=w===void 0?{}:w,x=u.children,c=u.style,g=c===void 0?{}:c,r=u.tagName,a=f.renderer.styledMode;if(r==="b"||r==="strong"?a?S.class="highcharts-strong":g.fontWeight="bold":r!=="i"&&r!=="em"||(a?S.class="highcharts-emphasized":g.fontStyle="italic"),g&&g.color&&(g.fill=g.color),r==="br"){S.class="highcharts-br",u.textContent="​";var t=h[v+1];t&&t.textContent&&(t.textContent=t.textContent.replace(/^ +/gm,""))}else r==="a"&&x&&x.some(function(i){return i.tagName==="#text"})&&(u.children=[{children:x,tagName:"tspan"}]);r!=="#text"&&r!=="a"&&(u.tagName="tspan"),z(u,{attributes:S,style:g}),x&&x.filter(function(i){return i.tagName!=="#text"}).forEach(m)};h.forEach(m),I(this.svgElement,"afterModifyTree",{nodes:h})},y.prototype.truncate=function(h,f,m,u,v,w){var S,x,c=this.svgElement,g=c.renderer,r=c.rotation,a=[],t=m?1:0,i=(f||m||"").length,o=i,e=function(s,n){var l=n||s,b=h.parentNode;if(b&&a[l]===void 0)if(b.getSubStringLength)try{a[l]=u+b.getSubStringLength(0,m?l+1:l)}catch(k){}else g.getSpanWidth&&(h.textContent=w(f||m,s),a[l]=u+g.getSpanWidth(c,h));return a[l]};if(c.rotation=0,x=e(h.textContent.length),u+x>v){for(;t<=i;)o=Math.ceil((t+i)/2),m&&(S=w(m,o)),x=e(o,S&&S.length-1),t===i?t=i+1:x>v?i=o-1:t=o;i===0?h.textContent="":f&&i===f.length-1||(h.textContent=S||w(f||m,o))}m&&m.splice(0,o),c.actualWidth=x,c.rotation=r},y.prototype.unescapeEntities=function(h,f){return M(this.renderer.escapes,function(m,u){f&&f.indexOf(m)!==-1||(h=h.toString().replace(new RegExp(m,"g"),u))}),h},y}()}),it(B,"Core/Renderer/SVG/SVGRenderer.js",[B["Core/Renderer/HTML/AST.js"],B["Core/Color/Color.js"],B["Core/Globals.js"],B["Core/Renderer/RendererRegistry.js"],B["Core/Renderer/SVG/SVGElement.js"],B["Core/Renderer/SVG/SVGLabel.js"],B["Core/Renderer/SVG/Symbols.js"],B["Core/Renderer/SVG/TextBuilder.js"],B["Core/Utilities.js"]],function(W,R,H,V,$,Z,U,z,I){var E,M=H.charts,P=H.deg2rad,y=H.doc,h=H.isFirefox,f=H.isMS,m=H.isWebKit,u=H.noop,v=H.SVG_NS,w=H.symbolSizes,S=H.win,x=I.addEvent,c=I.attr,g=I.createElement,r=I.css,a=I.defined,t=I.destroyObjectProperties,i=I.extend,o=I.isArray,e=I.isNumber,s=I.isObject,n=I.isString,l=I.merge,b=I.pick,k=I.pInt,D=I.uniqueKey,p=function(){function C(A,N,_,L,O,j,Y){this.alignedObjects=void 0,this.box=void 0,this.boxWrapper=void 0,this.cache=void 0,this.cacheKeys=void 0,this.chartIndex=void 0,this.defs=void 0,this.globalAnimation=void 0,this.gradients=void 0,this.height=void 0,this.imgCount=void 0,this.isSVG=void 0,this.style=void 0,this.url=void 0,this.width=void 0,this.init(A,N,_,L,O,j,Y)}return C.prototype.init=function(A,N,_,L,O,j,Y){var X,G,q=this,Q=q.createElement("svg").attr({version:"1.1",class:"highcharts-root"}),J=Q.element;Y||Q.css(this.getStyle(L)),A.appendChild(J),c(A,"dir","ltr"),A.innerHTML.indexOf("xmlns")===-1&&c(J,"xmlns",this.SVG_NS),q.isSVG=!0,this.box=J,this.boxWrapper=Q,q.alignedObjects=[],this.url=this.getReferenceURL(),this.createElement("desc").add().element.appendChild(y.createTextNode("Created with Highcharts 10.3.3")),q.defs=this.createElement("defs").add(),q.allowHTML=j,q.forExport=O,q.styledMode=Y,q.gradients={},q.cache={},q.cacheKeys=[],q.imgCount=0,q.setSize(N,_,!1),h&&A.getBoundingClientRect&&((X=function(){r(A,{left:0,top:0}),G=A.getBoundingClientRect(),r(A,{left:Math.ceil(G.left)-G.left+"px",top:Math.ceil(G.top)-G.top+"px"})})(),q.unSubPixelFix=x(S,"resize",X))},C.prototype.definition=function(A){return new W([A]).addToDOM(this.defs.element)},C.prototype.getReferenceURL=function(){if((h||m)&&y.getElementsByTagName("base").length){if(!a(E)){var A=D(),N=new W([{tagName:"svg",attributes:{width:8,height:8},children:[{tagName:"defs",children:[{tagName:"clipPath",attributes:{id:A},children:[{tagName:"rect",attributes:{width:4,height:4}}]}]},{tagName:"rect",attributes:{id:"hitme",width:8,height:8,"clip-path":"url(#".concat(A,")"),fill:"rgba(0,0,0,0.001)"}}]}]).addToDOM(y.body);r(N,{position:"fixed",top:0,left:0,zIndex:9e5});var _=y.elementFromPoint(6,6);E=(_&&_.id)==="hitme",y.body.removeChild(N)}if(E)return S.location.href.split("#")[0].replace(/<[^>]*>/g,"").replace(/([\('\)])/g,"\\$1").replace(/ /g,"%20")}return""},C.prototype.getStyle=function(A){return this.style=i({fontFamily:'"Lucida Grande", "Lucida Sans Unicode", Arial, Helvetica, sans-serif',fontSize:"12px"},A),this.style},C.prototype.setStyle=function(A){this.boxWrapper.css(this.getStyle(A))},C.prototype.isHidden=function(){return!this.boxWrapper.getBBox().width},C.prototype.destroy=function(){var A=this,N=A.defs;return A.box=null,A.boxWrapper=A.boxWrapper.destroy(),t(A.gradients||{}),A.gradients=null,N&&(A.defs=N.destroy()),A.unSubPixelFix&&A.unSubPixelFix(),A.alignedObjects=null,null},C.prototype.createElement=function(A){var N=new this.Element;return N.init(this,A),N},C.prototype.getRadialAttr=function(A,N){return{cx:A[0]-A[2]/2+(N.cx||0)*A[2],cy:A[1]-A[2]/2+(N.cy||0)*A[2],r:(N.r||0)*A[2]}},C.prototype.buildText=function(A){new z(A).buildSVG()},C.prototype.getContrast=function(A){var N=R.parse(A).rgba.map(function(L){var O=L/255;return O<=.03928?O/12.92:Math.pow((O+.055)/1.055,2.4)}),_=.2126*N[0]+.7152*N[1]+.0722*N[2];return 1.05/(_+.05)>(_+.05)/.05?"#FFFFFF":"#000000"},C.prototype.button=function(A,N,_,L,O,j,Y,X,G,q){O===void 0&&(O={});var Q=this.label(A,N,_,G,void 0,void 0,q,void 0,"button"),J=this.styledMode,rt=O.states||{},lt=0;delete(O=l(O)).states;var gt=l({color:"#333333",cursor:"pointer",fontWeight:"normal"},O.style);delete O.style;var mt,bt,yt,ct=W.filterUserAttributes(O);return Q.attr(l({padding:8,r:2},ct)),J||(ct=l({fill:"#f7f7f7",stroke:"#cccccc","stroke-width":1},ct),j=l(ct,{fill:"#e6e6e6"},W.filterUserAttributes(j||rt.hover||{})),mt=j.style,delete j.style,Y=l(ct,{fill:"#e6ebf5",style:{color:"#000000",fontWeight:"bold"}},W.filterUserAttributes(Y||rt.select||{})),bt=Y.style,delete Y.style,X=l(ct,{style:{color:"#cccccc"}},W.filterUserAttributes(X||rt.disabled||{})),yt=X.style,delete X.style),x(Q.element,f?"mouseover":"mouseenter",function(){lt!==3&&Q.setState(1)}),x(Q.element,f?"mouseout":"mouseleave",function(){lt!==3&&Q.setState(lt)}),Q.setState=function(et){if(et!==1&&(Q.state=lt=et),Q.removeClass(/highcharts-button-(normal|hover|pressed|disabled)/).addClass("highcharts-button-"+["normal","hover","pressed","disabled"][et||0]),!J){Q.attr([ct,j,Y,X][et||0]);var at=[gt,mt,bt,yt][et||0];s(at)&&Q.css(at)}},J||(Q.attr(ct).css(i({cursor:"default"},gt)),q&&Q.text.css({pointerEvents:"none"})),Q.on("touchstart",function(et){return et.stopPropagation()}).on("click",function(et){lt!==3&&L.call(Q,et)})},C.prototype.crispLine=function(A,N,_){_===void 0&&(_="round");var L=A[0],O=A[1];return a(L[1])&&L[1]===O[1]&&(L[1]=O[1]=Math[_](L[1])-N%2/2),a(L[2])&&L[2]===O[2]&&(L[2]=O[2]=Math[_](L[2])+N%2/2),A},C.prototype.path=function(A){var N=this.styledMode?{}:{fill:"none"};return o(A)?N.d=A:s(A)&&i(N,A),this.createElement("path").attr(N)},C.prototype.circle=function(A,N,_){var L=s(A)?A:A===void 0?{}:{x:A,y:N,r:_},O=this.createElement("circle");return O.xSetter=O.ySetter=function(j,Y,X){X.setAttribute("c"+Y,j)},O.attr(L)},C.prototype.arc=function(A,N,_,L,O,j){var Y;s(A)?(N=(Y=A).y,_=Y.r,L=Y.innerR,O=Y.start,j=Y.end,A=Y.x):Y={innerR:L,start:O,end:j};var X=this.symbol("arc",A,N,_,_,Y);return X.r=_,X},C.prototype.rect=function(A,N,_,L,O,j){O=s(A)?A.r:O;var Y=this.createElement("rect"),X=s(A)?A:A===void 0?{}:{x:A,y:N,width:Math.max(_,0),height:Math.max(L,0)};return this.styledMode||(j!==void 0&&(X["stroke-width"]=j,X=Y.crisp(X)),X.fill="none"),O&&(X.r=O),Y.rSetter=function(G,q,Q){Y.r=G,c(Q,{rx:G,ry:G})},Y.rGetter=function(){return Y.r||0},Y.attr(X)},C.prototype.setSize=function(A,N,_){var L=this;L.width=A,L.height=N,L.boxWrapper.animate({width:A,height:N},{step:function(){this.attr({viewBox:"0 0 "+this.attr("width")+" "+this.attr("height")})},duration:b(_,!0)?void 0:0}),L.alignElements()},C.prototype.g=function(A){var N=this.createElement("g");return A?N.attr({class:"highcharts-"+A}):N},C.prototype.image=function(A,N,_,L,O,j){var Y={preserveAspectRatio:"none"},X=function(J,rt){J.setAttributeNS?J.setAttributeNS("http://www.w3.org/1999/xlink","href",rt):J.setAttribute("hc-svg-href",rt)};e(N)&&(Y.x=N),e(_)&&(Y.y=_),e(L)&&(Y.width=L),e(O)&&(Y.height=O);var G=this.createElement("image").attr(Y),q=function(J){X(G.element,A),j.call(G,J)};if(j){X(G.element,"data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==");var Q=new S.Image;x(Q,"load",q),Q.src=A,Q.complete&&q({})}else X(G.element,A);return G},C.prototype.symbol=function(A,N,_,L,O,j){var Y,X,G,q,Q=this,J=/^url\((.*?)\)$/,rt=J.test(A),lt=!rt&&(this.symbols[A]?A:"circle"),gt=lt&&this.symbols[lt];if(gt)typeof N=="number"&&(X=gt.call(this.symbols,Math.round(N||0),Math.round(_||0),L||0,O||0,j)),Y=this.path(X),Q.styledMode||Y.attr("fill","none"),i(Y,{symbolName:lt||void 0,x:N,y:_,width:L,height:O}),j&&i(Y,j);else if(rt){G=A.match(J)[1];var mt=Y=this.image(G);mt.imgwidth=b(w[G]&&w[G].width,j&&j.width),mt.imgheight=b(w[G]&&w[G].height,j&&j.height),q=function(bt){return bt.attr({width:bt.width,height:bt.height})},["width","height"].forEach(function(bt){mt[bt+"Setter"]=function(yt,ct){this[ct]=yt;var et=this,at=et.alignByTranslate,dt=et.element,vt=et.width,Ct=et.height,xt=et.imgwidth,wt=et.imgheight,Mt=this["img"+ct];if(a(Mt)){var St=1;j&&j.backgroundSize==="within"&&vt&&Ct?(St=Math.min(vt/xt,Ct/wt),Mt=Math.round(Mt*St),c(dt,{width:Math.round(xt*St),height:Math.round(wt*St)})):dt&&dt.setAttribute(ct,Mt),at||this.translate(((vt||0)-Mt*St)/2,((Ct||0)-Mt*St)/2)}}}),a(N)&&mt.attr({x:N,y:_}),mt.isImg=!0,a(mt.imgwidth)&&a(mt.imgheight)?q(mt):(mt.attr({width:0,height:0}),g("img",{onload:function(){var bt=M[Q.chartIndex];this.width===0&&(r(this,{position:"absolute",top:"-999em"}),y.body.appendChild(this)),w[G]={width:this.width,height:this.height},mt.imgwidth=this.width,mt.imgheight=this.height,mt.element&&q(mt),this.parentNode&&this.parentNode.removeChild(this),Q.imgCount--,Q.imgCount||!bt||bt.hasLoaded||bt.onload()},src:G}),this.imgCount++)}return Y},C.prototype.clipRect=function(A,N,_,L){var O=D()+"-",j=this.createElement("clipPath").attr({id:O}).add(this.defs),Y=this.rect(A,N,_,L,0).add(j);return Y.id=O,Y.clipPath=j,Y.count=0,Y},C.prototype.text=function(A,N,_,L){var O=this,j={};if(L&&(O.allowHTML||!O.forExport))return O.html(A,N,_);j.x=Math.round(N||0),_&&(j.y=Math.round(_)),a(A)&&(j.text=A);var Y=O.createElement("text").attr(j);return(!L||O.forExport&&!O.allowHTML)&&(Y.xSetter=function(X,G,q){for(var Q=q.getElementsByTagName("tspan"),J=q.getAttribute(G),rt=0,lt=void 0;rt<Q.length;rt++)(lt=Q[rt]).getAttribute(G)===J&&lt.setAttribute(G,X);q.setAttribute(G,X)}),Y},C.prototype.fontMetrics=function(A,N){A=!this.styledMode&&/px/.test(A)||!S.getComputedStyle?A||N&&N.style&&N.style.fontSize||this.style&&this.style.fontSize:N&&$.prototype.getStyle.call(N,"font-size");var _=(A=/px/.test(A)?k(A):12)<24?A+3:Math.round(1.2*A);return{h:_,b:Math.round(.8*_),f:A}},C.prototype.rotCorr=function(A,N,_){var L=A;return N&&_&&(L=Math.max(L*Math.cos(N*P),4)),{x:-A/3*Math.sin(N*P),y:L}},C.prototype.pathToSegments=function(A){for(var N=[],_=[],L={A:8,C:7,H:2,L:3,M:3,Q:5,S:5,T:3,V:2},O=0;O<A.length;O++)n(_[0])&&e(A[O])&&_.length===L[_[0].toUpperCase()]&&A.splice(O,0,_[0].replace("M","L").replace("m","l")),typeof A[O]=="string"&&(_.length&&N.push(_.slice(0)),_.length=0),_.push(A[O]);return N.push(_.slice(0)),N},C.prototype.label=function(A,N,_,L,O,j,Y,X,G){return new Z(this,A,N,_,L,O,j,Y,X,G)},C.prototype.alignElements=function(){this.alignedObjects.forEach(function(A){return A.align()})},C}();return i(p.prototype,{Element:$,SVG_NS:v,escapes:{"&":"&amp;","<":"&lt;",">":"&gt;","'":"&#39;",'"':"&quot;"},symbols:U,draw:u}),V.registerRendererType("svg",p,!0),p}),it(B,"Core/Renderer/HTML/HTMLElement.js",[B["Core/Globals.js"],B["Core/Renderer/SVG/SVGElement.js"],B["Core/Utilities.js"]],function(W,R,H){var V,$=this&&this.__extends||(V=function(m,u){return V=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(v,w){v.__proto__=w}||function(v,w){for(var S in w)w.hasOwnProperty(S)&&(v[S]=w[S])},V(m,u)},function(m,u){function v(){this.constructor=m}V(m,u),m.prototype=u===null?Object.create(u):(v.prototype=u.prototype,new v)}),Z=W.isFirefox,U=W.isMS,z=W.isWebKit,I=W.win,E=H.css,M=H.defined,P=H.extend,y=H.pick,h=H.pInt,f=function(m){function u(){return m!==null&&m.apply(this,arguments)||this}return $(u,m),u.compose=function(v){if(u.composedClasses.indexOf(v)===-1){u.composedClasses.push(v);var w=u.prototype,S=v.prototype;S.getSpanCorrection=w.getSpanCorrection,S.htmlCss=w.htmlCss,S.htmlGetBBox=w.htmlGetBBox,S.htmlUpdateTransform=w.htmlUpdateTransform,S.setSpanRotation=w.setSpanRotation}return v},u.prototype.getSpanCorrection=function(v,w,S){this.xCorr=-v*S,this.yCorr=-w},u.prototype.htmlCss=function(v){var w,S=this,x=S.element.tagName==="SPAN"&&v&&"width"in v,c=y(x&&v.width,void 0);return x&&(delete v.width,S.textWidth=c,w=!0),v&&v.textOverflow==="ellipsis"&&(v.whiteSpace="nowrap",v.overflow="hidden"),S.styles=P(S.styles,v),E(S.element,v),w&&S.htmlUpdateTransform(),S},u.prototype.htmlGetBBox=function(){var v=this.element;return{x:v.offsetLeft,y:v.offsetTop,width:v.offsetWidth,height:v.offsetHeight}},u.prototype.htmlUpdateTransform=function(){if(this.added){var v=this,w=v.renderer,S=v.element,x=v.translateX||0,c=v.translateY||0,g=v.x||0,r=v.y||0,a=v.textAlign||"left",t={left:0,center:.5,right:1}[a],i=v.styles,o=i&&i.whiteSpace;if(E(S,{marginLeft:x,marginTop:c}),!w.styledMode&&v.shadows&&v.shadows.forEach(function(D){E(D,{marginLeft:x+1,marginTop:c+1})}),v.inverted&&[].forEach.call(S.childNodes,function(D){w.invertChild(D,S)}),S.tagName==="SPAN"){var e=v.rotation,s=v.textWidth&&h(v.textWidth),n=[e,a,S.innerHTML,v.textWidth,v.textAlign].join(","),l=void 0,b=!1;if(s!==v.oldTextWidth){var k=v.textPxLength?v.textPxLength:(E(S,{width:"",whiteSpace:o||"nowrap"}),S.offsetWidth);(s>v.oldTextWidth||k>s)&&(/[ \-]/.test(S.textContent||S.innerText)||S.style.textOverflow==="ellipsis")&&(E(S,{width:k>s||e?s+"px":"auto",display:"block",whiteSpace:o||"normal"}),v.oldTextWidth=s,b=!0)}v.hasBoxWidthChanged=b,n!==v.cTT&&(l=w.fontMetrics(S.style.fontSize,S).b,!M(e)||e===(v.oldRotation||0)&&a===v.oldAlign||v.setSpanRotation(e,t,l),v.getSpanCorrection(!M(e)&&v.textPxLength||S.offsetWidth,l,t,e,a)),E(S,{left:g+(v.xCorr||0)+"px",top:r+(v.yCorr||0)+"px"}),v.cTT=n,v.oldRotation=e,v.oldAlign=a}}else this.alignOnAdd=!0},u.prototype.setSpanRotation=function(v,w,S){var x={},c=U&&!/Edge/.test(I.navigator.userAgent)?"-ms-transform":z?"-webkit-transform":Z?"MozTransform":I.opera?"-o-transform":void 0;c&&(x[c]=x.transform="rotate("+v+"deg)",x[c+(Z?"Origin":"-origin")]=x.transformOrigin=100*w+"% "+S+"px",E(this.element,x))},u.composedClasses=[],u}(R);return f}),it(B,"Core/Renderer/HTML/HTMLRenderer.js",[B["Core/Renderer/HTML/AST.js"],B["Core/Renderer/SVG/SVGElement.js"],B["Core/Renderer/SVG/SVGRenderer.js"],B["Core/Utilities.js"]],function(W,R,H,V){var $,Z=this&&this.__extends||($=function(P,y){return $=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(h,f){h.__proto__=f}||function(h,f){for(var m in f)f.hasOwnProperty(m)&&(h[m]=f[m])},$(P,y)},function(P,y){function h(){this.constructor=P}$(P,y),P.prototype=y===null?Object.create(y):(h.prototype=y.prototype,new h)}),U=V.attr,z=V.createElement,I=V.extend,E=V.pick,M=function(P){function y(){return P!==null&&P.apply(this,arguments)||this}return Z(y,P),y.compose=function(h){if(y.composedClasses.indexOf(h)===-1){y.composedClasses.push(h);var f=y.prototype;h.prototype.html=f.html}return h},y.prototype.html=function(h,f,m){var u=this.createElement("span"),v=u.element,w=u.renderer,S=w.isSVG,x=function(c,g){["opacity","visibility"].forEach(function(r){c[r+"Setter"]=function(a,t,i){var o=c.div?c.div.style:g;R.prototype[r+"Setter"].call(this,a,t,i),o&&(o[t]=a)}}),c.addedSetters=!0};return u.textSetter=function(c){c!==this.textStr&&(delete this.bBox,delete this.oldTextWidth,W.setElementHTML(this.element,E(c,"")),this.textStr=c,u.doTransform=!0)},S&&x(u,u.element.style),u.xSetter=u.ySetter=u.alignSetter=u.rotationSetter=function(c,g){g==="align"?u.alignValue=u.textAlign=c:u[g]=c,u.doTransform=!0},u.afterSetters=function(){this.doTransform&&(this.htmlUpdateTransform(),this.doTransform=!1)},u.attr({text:h,x:Math.round(f),y:Math.round(m)}).css({position:"absolute"}),w.styledMode||u.css({fontFamily:this.style.fontFamily,fontSize:this.style.fontSize}),v.style.whiteSpace="nowrap",u.css=u.htmlCss,S&&(u.add=function(c){var g,r,a=w.box.parentNode,t=[];if(this.parentGroup=c,c){if(!(g=c.div)){for(r=c;r;)t.push(r),r=r.parentGroup;t.reverse().forEach(function(i){var o=U(i.element,"class");function e(l,b){i[b]=l,b==="translateX"?n.left=l+"px":n.top=l+"px",i.doTransform=!0}var s=i.styles||{},n=(g=i.div=i.div||z("div",o?{className:o}:void 0,{position:"absolute",left:(i.translateX||0)+"px",top:(i.translateY||0)+"px",display:i.display,opacity:i.opacity,cursor:s.cursor,pointerEvents:s.pointerEvents,visibility:i.visibility},g||a)).style;I(i,{classSetter:function(l){return function(b){this.element.setAttribute("class",b),l.className=b}}(g),on:function(){return t[0].div&&u.on.apply({element:t[0].div,onEvents:i.onEvents},arguments),i},translateXSetter:e,translateYSetter:e}),i.addedSetters||x(i)})}}else g=a;return g.appendChild(v),u.added=!0,u.alignOnAdd&&u.htmlUpdateTransform(),u}),u},y.composedClasses=[],y}(H);return M}),it(B,"Core/Axis/AxisDefaults.js",[],function(){var W;return function(R){R.defaultXAxisOptions={alignTicks:!0,allowDecimals:void 0,panningEnabled:!0,zIndex:2,zoomEnabled:!0,dateTimeLabelFormats:{millisecond:{main:"%H:%M:%S.%L",range:!1},second:{main:"%H:%M:%S",range:!1},minute:{main:"%H:%M",range:!1},hour:{main:"%H:%M",range:!1},day:{main:"%e. %b"},week:{main:"%e. %b"},month:{main:"%b '%y"},year:{main:"%Y"}},endOnTick:!1,gridLineDashStyle:"Solid",gridZIndex:1,labels:{autoRotation:void 0,autoRotationLimit:80,distance:void 0,enabled:!0,indentation:10,overflow:"justify",padding:5,reserveSpace:void 0,rotation:void 0,staggerLines:0,step:0,useHTML:!1,x:0,zIndex:7,style:{color:"#666666",cursor:"default",fontSize:"11px"}},maxPadding:.01,minorGridLineDashStyle:"Solid",minorTickLength:2,minorTickPosition:"outside",minPadding:.01,offset:void 0,opposite:!1,reversed:void 0,reversedStacks:!1,showEmpty:!0,showFirstLabel:!0,showLastLabel:!0,startOfWeek:1,startOnTick:!1,tickLength:10,tickPixelInterval:100,tickmarkPlacement:"between",tickPosition:"outside",title:{align:"middle",rotation:0,useHTML:!1,x:0,y:0,style:{color:"#666666"}},type:"linear",uniqueNames:!0,visible:!0,minorGridLineColor:"#f2f2f2",minorGridLineWidth:1,minorTickColor:"#999999",lineColor:"#ccd6eb",lineWidth:1,gridLineColor:"#e6e6e6",gridLineWidth:void 0,tickColor:"#ccd6eb"},R.defaultYAxisOptions={reversedStacks:!0,endOnTick:!0,maxPadding:.05,minPadding:.05,tickPixelInterval:72,showLastLabel:!0,labels:{x:-8},startOnTick:!0,title:{rotation:270,text:"Values"},stackLabels:{animation:{},allowOverlap:!1,enabled:!1,crop:!0,overflow:"justify",formatter:function(){return(0,this.axis.chart.numberFormatter)(this.total||0,-1)},style:{color:"#000000",fontSize:"11px",fontWeight:"bold",textOutline:"1px contrast"}},gridLineWidth:1,lineWidth:0},R.defaultLeftAxisOptions={labels:{x:-15},title:{rotation:270}},R.defaultRightAxisOptions={labels:{x:15},title:{rotation:90}},R.defaultBottomAxisOptions={labels:{autoRotation:[-45],x:0},margin:15,title:{rotation:0}},R.defaultTopAxisOptions={labels:{autoRotation:[-45],x:0},margin:15,title:{rotation:0}}}(W||(W={})),W}),it(B,"Core/Foundation.js",[B["Core/Utilities.js"]],function(W){var R,H=W.addEvent,V=W.isFunction,$=W.objectEach,Z=W.removeEvent;return function(U){U.registerEventOptions=function(z,I){z.eventOptions=z.eventOptions||{},$(I.events,function(E,M){z.eventOptions[M]!==E&&(z.eventOptions[M]&&(Z(z,M,z.eventOptions[M]),delete z.eventOptions[M]),V(E)&&(z.eventOptions[M]=E,H(z,M,E)))})}}(R||(R={})),R}),it(B,"Core/Axis/Tick.js",[B["Core/FormatUtilities.js"],B["Core/Globals.js"],B["Core/Utilities.js"]],function(W,R,H){var V=R.deg2rad,$=H.clamp,Z=H.correctFloat,U=H.defined,z=H.destroyObjectProperties,I=H.extend,E=H.fireEvent,M=H.isNumber,P=H.merge,y=H.objectEach,h=H.pick;return function(){function f(m,u,v,w,S){this.isNew=!0,this.isNewLabel=!0,this.axis=m,this.pos=u,this.type=v||"",this.parameters=S||{},this.tickmarkOffset=this.parameters.tickmarkOffset,this.options=this.parameters.options,E(this,"init"),v||w||this.addLabel()}return f.prototype.addLabel=function(){var m,u,v,w=this,S=w.axis,x=S.options,c=S.chart,g=S.categories,r=S.logarithmic,a=S.names,t=w.pos,i=h(w.options&&w.options.labels,x.labels),o=S.tickPositions,e=t===o[0],s=t===o[o.length-1],n=(!i.step||i.step===1)&&S.tickInterval===1,l=o.info,b=w.label,k=this.parameters.category||(g?h(g[t],a[t],t):t);r&&M(k)&&(k=Z(r.lin2log(k))),S.dateTime&&(l?m=(u=c.time.resolveDTLFormat(x.dateTimeLabelFormats[!x.grid&&l.higherRanks[t]||l.unitName])).main:M(k)&&(m=S.dateTime.getXDateFormat(k,x.dateTimeLabelFormats||{}))),w.isFirst=e,w.isLast=s;var D={axis:S,chart:c,dateTimeLabelFormat:m,isFirst:e,isLast:s,pos:t,tick:w,tickPositionInfo:l,value:k};E(this,"labelFormat",D);var p=function(N){return i.formatter?i.formatter.call(N,N):i.format?(N.text=S.defaultLabelFormatter.call(N,N),W.format(i.format,N,c)):S.defaultLabelFormatter.call(N,N)},C=p.call(D,D),A=u&&u.list;w.shortenLabel=A?function(){for(v=0;v<A.length;v++)if(I(D,{dateTimeLabelFormat:A[v]}),b.attr({text:p.call(D,D)}),b.getBBox().width<S.getSlotWidth(w)-2*i.padding)return;b.attr({text:""})}:void 0,n&&S._addedPlotLB&&w.moveLabel(C,i),U(b)||w.movedLabel?b&&b.textStr!==C&&!n&&(!b.textWidth||i.style.width||b.styles.width||b.css({width:null}),b.attr({text:C}),b.textPxLength=b.getBBox().width):(w.label=b=w.createLabel({x:0,y:0},C,i),w.rotation=0)},f.prototype.createLabel=function(m,u,v){var w=this.axis,S=w.chart,x=U(u)&&v.enabled?S.renderer.text(u,m.x,m.y,v.useHTML).add(w.labelGroup):null;return x&&(S.styledMode||x.css(P(v.style)),x.textPxLength=x.getBBox().width),x},f.prototype.destroy=function(){z(this,this.axis)},f.prototype.getPosition=function(m,u,v,w){var S=this.axis,x=S.chart,c=w&&x.oldChartHeight||x.chartHeight,g={x:m?Z(S.translate(u+v,void 0,void 0,w)+S.transB):S.left+S.offset+(S.opposite?(w&&x.oldChartWidth||x.chartWidth)-S.right-S.left:0),y:m?c-S.bottom+S.offset-(S.opposite?S.height:0):Z(c-S.translate(u+v,void 0,void 0,w)-S.transB)};return g.y=$(g.y,-1e5,1e5),E(this,"afterGetPosition",{pos:g}),g},f.prototype.getLabelPosition=function(m,u,v,w,S,x,c,g){var r,a,t=this.axis,i=t.transA,o=t.isLinked&&t.linkedParent?t.linkedParent.reversed:t.reversed,e=t.staggerLines,s=t.tickRotCorr||{x:0,y:0},n=w||t.reserveSpaceDefault?0:-t.labelOffset*(t.labelAlign==="center"?.5:1),l={};return r=t.side===0?v.rotation?-8:-v.getBBox().height:t.side===2?s.y+8:Math.cos(v.rotation*V)*(s.y-v.getBBox(!1,0).height/2),U(S.y)&&(r=t.side===0&&t.horiz?S.y+r:S.y),m=m+S.x+n+s.x-(x&&w?x*i*(o?-1:1):0),u=u+r-(x&&!w?x*i*(o?1:-1):0),e&&(a=c/(g||1)%e,t.opposite&&(a=e-a-1),u+=a*(t.labelOffset/e)),l.x=m,l.y=Math.round(u),E(this,"afterGetLabelPosition",{pos:l,tickmarkOffset:x,index:c}),l},f.prototype.getLabelSize=function(){return this.label?this.label.getBBox()[this.axis.horiz?"height":"width"]:0},f.prototype.getMarkPath=function(m,u,v,w,S,x){return x.crispLine([["M",m,u],["L",m+(S?0:-v),u+(S?v:0)]],w)},f.prototype.handleOverflow=function(m){var u,v,w=this,S=this.axis,x=S.options.labels,c=m.x,g=S.chart.chartWidth,r=S.chart.spacing,a=h(S.labelLeft,Math.min(S.pos,r[3])),t=h(S.labelRight,Math.max(S.isRadial?0:S.pos+S.len,g-r[1])),i=this.label,o=this.rotation,e={left:0,center:.5,right:1}[S.labelAlign||i.attr("align")],s=i.getBBox().width,n=S.getSlotWidth(w),l=e,b={},k=n,D=1;o||x.overflow!=="justify"?o<0&&c-e*s<a?v=Math.round(c/Math.cos(o*V)-a):o>0&&c+e*s>t&&(v=Math.round((g-c)/Math.cos(o*V))):(u=c+(1-e)*s,c-e*s<a?k=m.x+k*(1-e)-a:u>t&&(k=t-m.x+k*e,D=-1),(k=Math.min(n,k))<n&&S.labelAlign==="center"&&(m.x+=D*(n-k-l*(n-Math.min(s,k)))),(s>k||S.autoRotation&&(i.styles||{}).width)&&(v=k)),v&&(w.shortenLabel?w.shortenLabel():(b.width=Math.floor(v)+"px",(x.style||{}).textOverflow||(b.textOverflow="ellipsis"),i.css(b)))},f.prototype.moveLabel=function(m,u){var v,w,S,x=this,c=x.label,g=x.axis,r=g.reversed,a=!1;c&&c.textStr===m?(x.movedLabel=c,a=!0,delete x.label):y(g.ticks,function(t){a||t.isNew||t===x||!t.label||t.label.textStr!==m||(x.movedLabel=t.label,a=!0,t.labelPos=x.movedLabel.xy,delete t.label)}),a||!x.labelPos&&!c||(v=x.labelPos||c.xy,w=g.horiz?r?0:g.width+g.left:v.x,S=g.horiz?v.y:r?g.width+g.left:0,x.movedLabel=x.createLabel({x:w,y:S},m,u),x.movedLabel&&x.movedLabel.attr({opacity:0}))},f.prototype.render=function(m,u,v){var w=this,S=w.axis,x=S.horiz,c=w.pos,g=h(w.tickmarkOffset,S.tickmarkOffset),r=w.getPosition(x,c,g,u),a=r.x,t=r.y,i=x&&a===S.pos+S.len||!x&&t===S.pos?-1:1,o=h(v,w.label&&w.label.newOpacity,1);v=h(v,1),this.isActive=!0,this.renderGridLine(u,v,i),this.renderMark(r,v,i),this.renderLabel(r,u,o,m),w.isNew=!1,E(this,"afterRender")},f.prototype.renderGridLine=function(m,u,v){var w,S=this,x=S.axis,c=x.options,g={},r=S.pos,a=S.type,t=h(S.tickmarkOffset,x.tickmarkOffset),i=x.chart.renderer,o=S.gridLine,e=c.gridLineWidth,s=c.gridLineColor,n=c.gridLineDashStyle;S.type==="minor"&&(e=c.minorGridLineWidth,s=c.minorGridLineColor,n=c.minorGridLineDashStyle),o||(x.chart.styledMode||(g.stroke=s,g["stroke-width"]=e||0,g.dashstyle=n),a||(g.zIndex=1),m&&(u=0),S.gridLine=o=i.path().attr(g).addClass("highcharts-"+(a?a+"-":"")+"grid-line").add(x.gridGroup)),o&&(w=x.getPlotLinePath({value:r+t,lineWidth:o.strokeWidth()*v,force:"pass",old:m,acrossPanes:!1}))&&o[m||S.isNew?"attr":"animate"]({d:w,opacity:u})},f.prototype.renderMark=function(m,u,v){var w=this,S=w.axis,x=S.options,c=S.chart.renderer,g=w.type,r=S.tickSize(g?g+"Tick":"tick"),a=m.x,t=m.y,i=h(x[g!=="minor"?"tickWidth":"minorTickWidth"],!g&&S.isXAxis?1:0),o=x[g!=="minor"?"tickColor":"minorTickColor"],e=w.mark,s=!e;r&&(S.opposite&&(r[0]=-r[0]),e||(w.mark=e=c.path().addClass("highcharts-"+(g?g+"-":"")+"tick").add(S.axisGroup),S.chart.styledMode||e.attr({stroke:o,"stroke-width":i})),e[s?"attr":"animate"]({d:w.getMarkPath(a,t,r[0],e.strokeWidth()*v,S.horiz,c),opacity:u}))},f.prototype.renderLabel=function(m,u,v,w){var S=this,x=S.axis,c=x.horiz,g=x.options,r=S.label,a=g.labels,t=a.step,i=h(S.tickmarkOffset,x.tickmarkOffset),o=m.x,e=m.y,s=!0;r&&M(o)&&(r.xy=m=S.getLabelPosition(o,e,r,c,a,i,w,t),S.isFirst&&!S.isLast&&!g.showFirstLabel||S.isLast&&!S.isFirst&&!g.showLastLabel?s=!1:!c||a.step||a.rotation||u||v===0||S.handleOverflow(m),t&&w%t&&(s=!1),s&&M(m.y)?(m.opacity=v,r[S.isNewLabel?"attr":"animate"](m).show(!0),S.isNewLabel=!1):(r.hide(),S.isNewLabel=!0))},f.prototype.replaceMovedLabel=function(){var m,u,v=this,w=v.label,S=v.axis,x=S.reversed;w&&!v.isNew&&(m=S.horiz?x?S.left:S.width+S.left:w.xy.x,u=S.horiz?w.xy.y:x?S.width+S.top:S.top,w.animate({x:m,y:u,opacity:0},void 0,w.destroy),delete v.label),S.isDirty=!0,v.label=v.movedLabel,delete v.movedLabel},f}()}),it(B,"Core/Axis/Axis.js",[B["Core/Animation/AnimationUtilities.js"],B["Core/Axis/AxisDefaults.js"],B["Core/Color/Color.js"],B["Core/Defaults.js"],B["Core/Foundation.js"],B["Core/Globals.js"],B["Core/Axis/Tick.js"],B["Core/Utilities.js"]],function(W,R,H,V,$,Z,U,z){var I=W.animObject,E=V.defaultOptions,M=$.registerEventOptions,P=Z.deg2rad,y=z.arrayMax,h=z.arrayMin,f=z.clamp,m=z.correctFloat,u=z.defined,v=z.destroyObjectProperties,w=z.erase,S=z.error,x=z.extend,c=z.fireEvent,g=z.isArray,r=z.isNumber,a=z.isString,t=z.merge,i=z.normalizeTickInterval,o=z.objectEach,e=z.pick,s=z.relativeLength,n=z.removeEvent,l=z.splat,b=z.syncTimeout,k=function(D,p){return i(p,void 0,void 0,e(D.options.allowDecimals,p<.5||D.tickAmount!==void 0),!!D.tickAmount)};return function(){function D(p,C){this.alternateBands=void 0,this.bottom=void 0,this.chart=void 0,this.closestPointRange=void 0,this.coll=void 0,this.eventOptions=void 0,this.hasNames=void 0,this.hasVisibleSeries=void 0,this.height=void 0,this.isLinked=void 0,this.labelEdge=void 0,this.labelFormatter=void 0,this.left=void 0,this.len=void 0,this.max=void 0,this.maxLabelLength=void 0,this.min=void 0,this.minorTickInterval=void 0,this.minorTicks=void 0,this.minPixelPadding=void 0,this.names=void 0,this.offset=void 0,this.options=void 0,this.overlap=void 0,this.paddedTicks=void 0,this.plotLinesAndBands=void 0,this.plotLinesAndBandsGroups=void 0,this.pointRange=void 0,this.pointRangePadding=void 0,this.pos=void 0,this.positiveValuesOnly=void 0,this.right=void 0,this.series=void 0,this.side=void 0,this.tickAmount=void 0,this.tickInterval=void 0,this.tickmarkOffset=void 0,this.tickPositions=void 0,this.tickRotCorr=void 0,this.ticks=void 0,this.top=void 0,this.transA=void 0,this.transB=void 0,this.translationSlope=void 0,this.userOptions=void 0,this.visible=void 0,this.width=void 0,this.zoomEnabled=void 0,this.init(p,C)}return D.prototype.init=function(p,C){var A=C.isX,N=this;N.chart=p,N.horiz=p.inverted&&!N.isZAxis?!A:A,N.isXAxis=A,N.coll=N.coll||(A?"xAxis":"yAxis"),c(this,"init",{userOptions:C}),N.opposite=e(C.opposite,N.opposite),N.side=e(C.side,N.side,N.horiz?N.opposite?0:2:N.opposite?1:3),N.setOptions(C);var _=this.options,L=_.labels,O=_.type;N.userOptions=C,N.minPixelPadding=0,N.reversed=e(_.reversed,N.reversed),N.visible=_.visible,N.zoomEnabled=_.zoomEnabled,N.hasNames=O==="category"||_.categories===!0,N.categories=_.categories||(N.hasNames?[]:void 0),N.names||(N.names=[],N.names.keys={}),N.plotLinesAndBandsGroups={},N.positiveValuesOnly=!!N.logarithmic,N.isLinked=u(_.linkedTo),N.ticks={},N.labelEdge=[],N.minorTicks={},N.plotLinesAndBands=[],N.alternateBands={},N.len=0,N.minRange=N.userMinRange=_.minRange||_.maxZoom,N.range=_.range,N.offset=_.offset||0,N.max=null,N.min=null;var j=e(_.crosshair,l(p.options.tooltip.crosshairs)[A?0:1]);N.crosshair=j===!0?{}:j,p.axes.indexOf(N)===-1&&(A?p.axes.splice(p.xAxis.length,0,N):p.axes.push(N),p[N.coll].push(N)),N.series=N.series||[],p.inverted&&!N.isZAxis&&A&&N.reversed===void 0&&(N.reversed=!0),N.labelRotation=r(L.rotation)?L.rotation:void 0,M(N,_),c(this,"afterInit")},D.prototype.setOptions=function(p){this.options=t(R.defaultXAxisOptions,this.coll==="yAxis"&&R.defaultYAxisOptions,[R.defaultTopAxisOptions,R.defaultRightAxisOptions,R.defaultBottomAxisOptions,R.defaultLeftAxisOptions][this.side],t(E[this.coll],p)),c(this,"afterSetOptions",{userOptions:p})},D.prototype.defaultLabelFormatter=function(p){var C,A,N=this.axis,_=this.chart.numberFormatter,L=r(this.value)?this.value:NaN,O=N.chart.time,j=N.categories,Y=this.dateTimeLabelFormat,X=E.lang,G=X.numericSymbols,q=X.numericSymbolMagnitude||1e3,Q=N.logarithmic?Math.abs(L):N.tickInterval,J=G&&G.length;if(j)A="".concat(this.value);else if(Y)A=O.dateFormat(Y,L);else if(J&&Q>=1e3)for(;J--&&A===void 0;)Q>=(C=Math.pow(q,J+1))&&10*L%C==0&&G[J]!==null&&L!==0&&(A=_(L/C,-1)+G[J]);return A===void 0&&(A=Math.abs(L)>=1e4?_(L,-1):_(L,-1,void 0,"")),A},D.prototype.getSeriesExtremes=function(){var p,C=this,A=C.chart;c(this,"getSeriesExtremes",null,function(){C.hasVisibleSeries=!1,C.dataMin=C.dataMax=C.threshold=null,C.softThreshold=!C.isXAxis,C.series.forEach(function(N){if(N.visible||!A.options.chart.ignoreHiddenSeries){var _=N.options,L=void 0,O=_.threshold,j=void 0,Y=void 0;if(C.hasVisibleSeries=!0,C.positiveValuesOnly&&O<=0&&(O=null),C.isXAxis)(L=N.xData).length&&(L=C.logarithmic?L.filter(C.validatePositiveValue):L,j=(p=N.getXExtremes(L)).min,Y=p.max,r(j)||j instanceof Date||(L=L.filter(r),j=(p=N.getXExtremes(L)).min,Y=p.max),L.length&&(C.dataMin=Math.min(e(C.dataMin,j),j),C.dataMax=Math.max(e(C.dataMax,Y),Y)));else{var X=N.applyExtremes();r(X.dataMin)&&(j=X.dataMin,C.dataMin=Math.min(e(C.dataMin,j),j)),r(X.dataMax)&&(Y=X.dataMax,C.dataMax=Math.max(e(C.dataMax,Y),Y)),u(O)&&(C.threshold=O),_.softThreshold&&!C.positiveValuesOnly||(C.softThreshold=!1)}}})}),c(this,"afterGetSeriesExtremes")},D.prototype.translate=function(p,C,A,N,_,L){var O=this.linkedParent||this,j=N&&O.old?O.old.min:O.min;if(!r(j))return NaN;var Y=O.minPixelPadding,X=(O.isOrdinal||O.brokenAxis&&O.brokenAxis.hasBreaks||O.logarithmic&&_)&&O.lin2val,G=1,q=0,Q=N&&O.old?O.old.transA:O.transA,J=0;if(Q||(Q=O.transA),A&&(G*=-1,q=O.len),O.reversed&&(q-=(G*=-1)*(O.sector||O.len)),C)p=p*G+q,J=(p-=Y)/Q+j,X&&(J=O.lin2val(J));else{X&&(p=O.val2lin(p));var rt=G*(p-j)*Q;J=(O.isRadial?rt:m(rt))+q+G*Y+(r(L)?Q*L:0)}return J},D.prototype.toPixels=function(p,C){return this.translate(p,!1,!this.horiz,void 0,!0)+(C?0:this.pos)},D.prototype.toValue=function(p,C){return this.translate(p-(C?0:this.pos),!0,!this.horiz,void 0,!0)},D.prototype.getPlotLinePath=function(p){var C,A,N,_,L,O=this,j=O.chart,Y=O.left,X=O.top,G=p.old,q=p.value,Q=p.lineWidth,J=G&&j.oldChartHeight||j.chartHeight,rt=G&&j.oldChartWidth||j.chartWidth,lt=O.transB,gt=p.translatedValue,mt=p.force;function bt(ct,et,at){return mt!=="pass"&&(ct<et||ct>at)&&(mt?ct=f(ct,et,at):L=!0),ct}var yt={value:q,lineWidth:Q,old:G,force:mt,acrossPanes:p.acrossPanes,translatedValue:gt};return c(this,"getPlotLinePath",yt,function(ct){gt=e(gt,O.translate(q,void 0,void 0,G)),gt=f(gt,-1e5,1e5),C=N=Math.round(gt+lt),A=_=Math.round(J-gt-lt),r(gt)?O.horiz?(A=X,_=J-O.bottom,C=N=bt(C,Y,Y+O.width)):(C=Y,N=rt-O.right,A=_=bt(A,X,X+O.height)):(L=!0,mt=!1),ct.path=L&&!mt?null:j.renderer.crispLine([["M",C,A],["L",N,_]],Q||1)}),yt.path},D.prototype.getLinearTickPositions=function(p,C,A){var N,_,L,O=m(Math.floor(C/p)*p),j=m(Math.ceil(A/p)*p),Y=[];if(m(O+p)===O&&(L=20),this.single)return[C];for(N=O;N<=j&&(Y.push(N),(N=m(N+p,L))!==_);)_=N;return Y},D.prototype.getMinorTickInterval=function(){var p=this.options;return p.minorTicks===!0?e(p.minorTickInterval,"auto"):p.minorTicks===!1?null:p.minorTickInterval},D.prototype.getMinorTickPositions=function(){var p,C=this,A=C.options,N=C.tickPositions,_=C.minorTickInterval,L=C.pointRangePadding||0,O=C.min-L,j=C.max+L,Y=j-O,X=[];if(Y&&Y/_<C.len/3){var G=C.logarithmic;if(G)this.paddedTicks.forEach(function(q,Q,J){Q&&X.push.apply(X,G.getLogTickPositions(_,J[Q-1],J[Q],!0))});else if(C.dateTime&&this.getMinorTickInterval()==="auto")X=X.concat(C.getTimeTicks(C.dateTime.normalizeTimeTickInterval(_),O,j,A.startOfWeek));else for(p=O+(N[0]-O)%_;p<=j&&p!==X[0];p+=_)X.push(p)}return X.length!==0&&C.trimTicks(X),X},D.prototype.adjustForMinRange=function(){var p,C,A,N,_,L,O,j,Y,X=this,G=X.options,q=X.logarithmic,Q=X.min,J=X.max,rt=0;X.isXAxis&&X.minRange===void 0&&!q&&(u(G.min)||u(G.max)||u(G.floor)||u(G.ceiling)?X.minRange=null:(X.series.forEach(function(lt){if(_=lt.xData,L=lt.xIncrement?1:_.length-1,_.length>1)for(A=L;A>0;A--)N=_[A]-_[A-1],(!rt||N<rt)&&(rt=N)}),X.minRange=Math.min(5*rt,X.dataMax-X.dataMin))),J-Q<X.minRange&&(C=X.dataMax-X.dataMin>=X.minRange,O=[Q-(p=((Y=X.minRange)-J+Q)/2),e(G.min,Q-p)],C&&(O[2]=X.logarithmic?X.logarithmic.log2lin(X.dataMin):X.dataMin),j=[(Q=y(O))+Y,e(G.max,Q+Y)],C&&(j[2]=q?q.log2lin(X.dataMax):X.dataMax),(J=h(j))-Q<Y&&(O[0]=J-Y,O[1]=e(G.min,J-Y),Q=y(O))),X.min=Q,X.max=J},D.prototype.getClosest=function(){var p;return this.categories?p=1:this.series.forEach(function(C){var A=C.closestPointRange,N=C.visible||!C.chart.options.chart.ignoreHiddenSeries;!C.noSharedTooltip&&u(A)&&N&&(p=u(p)?Math.min(p,A):A)}),p},D.prototype.nameToX=function(p){var C,A=g(this.options.categories),N=A?this.categories:this.names,_=p.options.x;return p.series.requireSorting=!1,u(_)||(_=this.options.uniqueNames&&N?A?N.indexOf(p.name):e(N.keys[p.name],-1):p.series.autoIncrement()),_===-1?!A&&N&&(C=N.length):C=_,C!==void 0?(this.names[C]=p.name,this.names.keys[p.name]=C):p.x&&(C=p.x),C},D.prototype.updateNames=function(){var p=this,C=this.names;C.length>0&&(Object.keys(C.keys).forEach(function(A){delete C.keys[A]}),C.length=0,this.minRange=this.userMinRange,(this.series||[]).forEach(function(A){A.xIncrement=null,A.points&&!A.isDirtyData||(p.max=Math.max(p.max,A.xData.length-1),A.processData(),A.generatePoints()),A.data.forEach(function(N,_){var L;N&&N.options&&N.name!==void 0&&(L=p.nameToX(N))!==void 0&&L!==N.x&&(N.x=L,A.xData[_]=L)})}))},D.prototype.setAxisTranslation=function(){var p,C,A=this,N=A.max-A.min,_=A.linkedParent,L=!!A.categories,O=A.isXAxis,j=A.axisPointRange||0,Y=0,X=0,G=A.transA;(O||L||j)&&(p=A.getClosest(),_?(Y=_.minPointOffset,X=_.pointRangePadding):A.series.forEach(function(q){var Q=L?1:O?e(q.options.pointRange,p,0):A.axisPointRange||0,J=q.options.pointPlacement;if(j=Math.max(j,Q),!A.single||L){var rt=q.is("xrange")?!O:O;Y=Math.max(Y,rt&&a(J)?0:Q/2),X=Math.max(X,rt&&J==="on"?0:Q)}}),C=A.ordinal&&A.ordinal.slope&&p?A.ordinal.slope/p:1,A.minPointOffset=Y*=C,A.pointRangePadding=X*=C,A.pointRange=Math.min(j,A.single&&L?1:N),O&&(A.closestPointRange=p)),A.translationSlope=A.transA=G=A.staticScale||A.len/(N+X||1),A.transB=A.horiz?A.left:A.bottom,A.minPixelPadding=G*Y,c(this,"afterSetAxisTranslation")},D.prototype.minFromRange=function(){return this.max-this.range},D.prototype.setTickInterval=function(p){var C,A,N,_,L,O,j=this,Y=j.chart,X=j.logarithmic,G=j.options,q=j.isXAxis,Q=j.isLinked,J=G.tickPixelInterval,rt=j.categories,lt=j.softThreshold,gt=G.maxPadding,mt=G.minPadding,bt=r(G.tickInterval)&&G.tickInterval>=0?G.tickInterval:void 0,yt=r(j.threshold)?j.threshold:null;if(j.dateTime||rt||Q||this.getTickAmount(),L=e(j.userMin,G.min),O=e(j.userMax,G.max),Q?(j.linkedParent=Y[j.coll][G.linkedTo],A=j.linkedParent.getExtremes(),j.min=e(A.min,A.dataMin),j.max=e(A.max,A.dataMax),G.type!==j.linkedParent.options.type&&S(11,1,Y)):(lt&&u(yt)&&(j.dataMin>=yt?(N=yt,mt=0):j.dataMax<=yt&&(_=yt,gt=0)),j.min=e(L,N,j.dataMin),j.max=e(O,_,j.dataMax)),X&&(j.positiveValuesOnly&&!p&&Math.min(j.min,e(j.dataMin,j.min))<=0&&S(10,1,Y),j.min=m(X.log2lin(j.min),16),j.max=m(X.log2lin(j.max),16)),j.range&&u(j.max)&&(j.userMin=j.min=L=Math.max(j.dataMin,j.minFromRange()),j.userMax=O=j.max,j.range=null),c(j,"foundExtremes"),j.beforePadding&&j.beforePadding(),j.adjustForMinRange(),rt||j.axisPointRange||j.stacking&&j.stacking.usePercentage||Q||!u(j.min)||!u(j.max)||(C=j.max-j.min)&&(!u(L)&&mt&&(j.min-=C*mt),!u(O)&&gt&&(j.max+=C*gt)),r(j.userMin)||(r(G.softMin)&&G.softMin<j.min&&(j.min=L=G.softMin),r(G.floor)&&(j.min=Math.max(j.min,G.floor))),r(j.userMax)||(r(G.softMax)&&G.softMax>j.max&&(j.max=O=G.softMax),r(G.ceiling)&&(j.max=Math.min(j.max,G.ceiling))),lt&&u(j.dataMin)&&(yt=yt||0,!u(L)&&j.min<yt&&j.dataMin>=yt?j.min=j.options.minRange?Math.min(yt,j.max-j.minRange):yt:!u(O)&&j.max>yt&&j.dataMax<=yt&&(j.max=j.options.minRange?Math.max(yt,j.min+j.minRange):yt)),r(j.min)&&r(j.max)&&!this.chart.polar&&j.min>j.max&&(u(j.options.min)?j.max=j.min:u(j.options.max)&&(j.min=j.max)),j.min===j.max||j.min===void 0||j.max===void 0?j.tickInterval=1:Q&&j.linkedParent&&!bt&&J===j.linkedParent.options.tickPixelInterval?j.tickInterval=bt=j.linkedParent.tickInterval:j.tickInterval=e(bt,this.tickAmount?(j.max-j.min)/Math.max(this.tickAmount-1,1):void 0,rt?1:(j.max-j.min)*J/Math.max(j.len,J)),q&&!p){var ct=j.min!==(j.old&&j.old.min)||j.max!==(j.old&&j.old.max);j.series.forEach(function(at){at.forceCrop=at.forceCropping&&at.forceCropping(),at.processData(ct)}),c(this,"postProcessData",{hasExtremesChanged:ct})}j.setAxisTranslation(),c(this,"initialAxisTranslation"),j.pointRange&&!bt&&(j.tickInterval=Math.max(j.pointRange,j.tickInterval));var et=e(G.minTickInterval,j.dateTime&&!j.series.some(function(at){return at.noSharedTooltip})?j.closestPointRange:0);!bt&&j.tickInterval<et&&(j.tickInterval=et),j.dateTime||j.logarithmic||bt||(j.tickInterval=k(j,j.tickInterval)),this.tickAmount||(j.tickInterval=j.unsquish()),this.setTickPositions()},D.prototype.setTickPositions=function(){var p,C=this,A=this.options,N=A.tickPositions,_=A.tickPositioner,L=this.getMinorTickInterval(),O=this.hasVerticalPanning(),j=this.coll==="colorAxis",Y=(j||!O)&&A.startOnTick,X=(j||!O)&&A.endOnTick,G=[];if(this.tickmarkOffset=this.categories&&A.tickmarkPlacement==="between"&&this.tickInterval===1?.5:0,this.minorTickInterval=L==="auto"&&this.tickInterval?this.tickInterval/5:L,this.single=this.min===this.max&&u(this.min)&&!this.tickAmount&&(parseInt(this.min,10)===this.min||A.allowDecimals!==!1),N)G=N.slice();else if(r(this.min)&&r(this.max)){if(C.ordinal&&C.ordinal.positions||!((this.max-this.min)/this.tickInterval>Math.max(2*this.len,200)))if(C.dateTime)G=C.getTimeTicks(C.dateTime.normalizeTimeTickInterval(this.tickInterval,A.units),this.min,this.max,A.startOfWeek,C.ordinal&&C.ordinal.positions,this.closestPointRange,!0);else if(C.logarithmic)G=C.logarithmic.getLogTickPositions(this.tickInterval,this.min,this.max);else for(var q=this.tickInterval,Q=q;Q<=2*q&&(G=this.getLinearTickPositions(this.tickInterval,this.min,this.max),this.tickAmount&&G.length>this.tickAmount);)this.tickInterval=k(this,Q*=1.1);else G=[this.min,this.max],S(19,!1,this.chart);G.length>this.len&&(G=[G[0],G[G.length-1]])[0]===G[1]&&(G.length=1),_&&(this.tickPositions=G,(p=_.apply(C,[this.min,this.max]))&&(G=p))}this.tickPositions=G,this.paddedTicks=G.slice(0),this.trimTicks(G,Y,X),!this.isLinked&&r(this.min)&&r(this.max)&&(this.single&&G.length<2&&!this.categories&&!this.series.some(function(J){return J.is("heatmap")&&J.options.pointPlacement==="between"})&&(this.min-=.5,this.max+=.5),N||p||this.adjustTickAmount()),c(this,"afterSetTickPositions")},D.prototype.trimTicks=function(p,C,A){var N=p[0],_=p[p.length-1],L=!this.isOrdinal&&this.minPointOffset||0;if(c(this,"trimTicks"),!this.isLinked){if(C&&N!==-1/0)this.min=N;else for(;this.min-L>p[0];)p.shift();if(A)this.max=_;else for(;this.max+L<p[p.length-1];)p.pop();p.length===0&&u(N)&&!this.options.tickPositions&&p.push((_+N)/2)}},D.prototype.alignToOthers=function(){var p,C=this,A=[this],N=C.options,_=this.coll==="yAxis"&&this.chart.options.chart.alignThresholds,L=[];if(C.thresholdAlignment=void 0,(this.chart.options.chart.alignTicks!==!1&&N.alignTicks||_)&&N.startOnTick!==!1&&N.endOnTick!==!1&&!C.logarithmic){var O=function(X){var G=X.horiz,q=X.options;return[G?q.left:q.top,q.width,q.height,q.pane].join(",")},j=O(this);this.chart[this.coll].forEach(function(X){var G=X.series;G.length&&G.some(function(q){return q.visible})&&X!==C&&O(X)===j&&(p=!0,A.push(X))})}if(p&&_){A.forEach(function(X){var G=X.getThresholdAlignment(C);r(G)&&L.push(G)});var Y=L.length>1?L.reduce(function(X,G){return X+G},0)/L.length:void 0;A.forEach(function(X){X.thresholdAlignment=Y})}return p},D.prototype.getThresholdAlignment=function(p){if((!r(this.dataMin)||this!==p&&this.series.some(function(A){return A.isDirty||A.isDirtyData}))&&this.getSeriesExtremes(),r(this.threshold)){var C=f((this.threshold-(this.dataMin||0))/((this.dataMax||0)-(this.dataMin||0)),0,1);return this.options.reversed&&(C=1-C),C}},D.prototype.getTickAmount=function(){var p=this.options,C=p.tickPixelInterval,A=p.tickAmount;!u(p.tickInterval)&&!A&&this.len<C&&!this.isRadial&&!this.logarithmic&&p.startOnTick&&p.endOnTick&&(A=2),!A&&this.alignToOthers()&&(A=Math.ceil(this.len/C)+1),A<4&&(this.finalTickAmt=A,A=5),this.tickAmount=A},D.prototype.adjustTickAmount=function(){var p,C,A,N=this,_=N.finalTickAmt,L=N.max,O=N.min,j=N.options,Y=N.tickPositions,X=N.tickAmount,G=N.thresholdAlignment,q=Y&&Y.length,Q=e(N.threshold,N.softThreshold?0:null),J=N.tickInterval,rt=function(){return Y.push(m(Y[Y.length-1]+J))},lt=function(){return Y.unshift(m(Y[0]-J))};if(r(G)&&(A=G<.5?Math.ceil(G*(X-1)):Math.floor(G*(X-1)),j.reversed&&(A=X-1-A)),N.hasData()&&r(O)&&r(L)){var gt=function(){N.transA*=(q-1)/(X-1),N.min=j.startOnTick?Y[0]:Math.min(O,Y[0]),N.max=j.endOnTick?Y[Y.length-1]:Math.max(L,Y[Y.length-1])};if(r(A)&&r(N.threshold)){for(;Y[A]!==Q||Y.length!==X||Y[0]>O||Y[Y.length-1]<L;){for(Y.length=0,Y.push(N.threshold);Y.length<X;)Y[A]===void 0||Y[A]>N.threshold?lt():rt();if(J>8*N.tickInterval)break;J*=2}gt()}else if(q<X){for(;Y.length<X;)Y.length%2||O===Q?rt():lt();gt()}if(u(_)){for(C=p=Y.length;C--;)(_===3&&C%2==1||_<=2&&C>0&&C<p-1)&&Y.splice(C,1);N.finalTickAmt=void 0}}},D.prototype.setScale=function(){var p=this,C=!1,A=!1;p.series.forEach(function(_){C=C||_.isDirtyData||_.isDirty,A=A||_.xAxis&&_.xAxis.isDirty||!1}),p.setAxisSize();var N=p.len!==(p.old&&p.old.len);N||C||A||p.isLinked||p.forceRedraw||p.userMin!==(p.old&&p.old.userMin)||p.userMax!==(p.old&&p.old.userMax)||p.alignToOthers()?(p.stacking&&(p.stacking.resetStacks(),p.stacking.buildStacks()),p.forceRedraw=!1,p.getSeriesExtremes(),p.setTickInterval(),p.isDirty||(p.isDirty=N||p.min!==(p.old&&p.old.min)||p.max!==(p.old&&p.old.max))):p.stacking&&p.stacking.cleanStacks(),C&&p.panningState&&(p.panningState.isDirty=!0),c(this,"afterSetScale")},D.prototype.setExtremes=function(p,C,A,N,_){var L=this,O=L.chart;A=e(A,!0),L.series.forEach(function(j){delete j.kdTree}),_=x(_,{min:p,max:C}),c(L,"setExtremes",_,function(){L.userMin=p,L.userMax=C,L.eventArgs=_,A&&O.redraw(N)})},D.prototype.zoom=function(p,C){var A=this,N=this.dataMin,_=this.dataMax,L=this.options,O=Math.min(N,e(L.min,N)),j=Math.max(_,e(L.max,_)),Y={newMin:p,newMax:C};return c(this,"zoom",Y,function(X){var G=X.newMin,q=X.newMax;G===A.min&&q===A.max||(A.allowZoomOutside||(u(N)&&(G<O&&(G=O),G>j&&(G=j)),u(_)&&(q<O&&(q=O),q>j&&(q=j))),A.displayBtn=G!==void 0||q!==void 0,A.setExtremes(G,q,!1,void 0,{trigger:"zoom"})),X.zoomed=!0}),Y.zoomed},D.prototype.setAxisSize=function(){var p=this.chart,C=this.options,A=C.offsets||[0,0,0,0],N=this.horiz,_=this.width=Math.round(s(e(C.width,p.plotWidth-A[3]+A[1]),p.plotWidth)),L=this.height=Math.round(s(e(C.height,p.plotHeight-A[0]+A[2]),p.plotHeight)),O=this.top=Math.round(s(e(C.top,p.plotTop+A[0]),p.plotHeight,p.plotTop)),j=this.left=Math.round(s(e(C.left,p.plotLeft+A[3]),p.plotWidth,p.plotLeft));this.bottom=p.chartHeight-L-O,this.right=p.chartWidth-_-j,this.len=Math.max(N?_:L,0),this.pos=N?j:O},D.prototype.getExtremes=function(){var p=this,C=p.logarithmic;return{min:C?m(C.lin2log(p.min)):p.min,max:C?m(C.lin2log(p.max)):p.max,dataMin:p.dataMin,dataMax:p.dataMax,userMin:p.userMin,userMax:p.userMax}},D.prototype.getThreshold=function(p){var C=this,A=C.logarithmic,N=A?A.lin2log(C.min):C.min,_=A?A.lin2log(C.max):C.max;return p===null||p===-1/0?p=N:p===1/0?p=_:N>p?p=N:_<p&&(p=_),C.translate(p,0,1,0,1)},D.prototype.autoLabelAlign=function(p){var C=(e(p,0)-90*this.side+720)%360,A={align:"center"};return c(this,"autoLabelAlign",A,function(N){C>15&&C<165?N.align="right":C>195&&C<345&&(N.align="left")}),A.align},D.prototype.tickSize=function(p){var C,A=this.options,N=e(A[p==="tick"?"tickWidth":"minorTickWidth"],p==="tick"&&this.isXAxis&&!this.categories?1:0),_=A[p==="tick"?"tickLength":"minorTickLength"];N&&_&&(A[p+"Position"]==="inside"&&(_=-_),C=[_,N]);var L={tickSize:C};return c(this,"afterTickSize",L),L.tickSize},D.prototype.labelMetrics=function(){var p=this.tickPositions&&this.tickPositions[0]||0;return this.chart.renderer.fontMetrics(this.options.labels.style.fontSize,this.ticks[p]&&this.ticks[p].label)},D.prototype.unsquish=function(){var p,C,A=this.options.labels,N=this.horiz,_=this.tickInterval,L=this.len/(((this.categories?1:0)+this.max-this.min)/_),O=A.rotation,j=this.labelMetrics(),Y=Math.max(this.max-this.min,0),X=function(mt){var bt=mt/(L||1);return(bt=bt>1?Math.ceil(bt):1)*_>Y&&mt!==1/0&&L!==1/0&&Y&&(bt=Math.ceil(Y/_)),m(bt*_)},G=_,q=Number.MAX_VALUE;if(N){if(A.staggerLines||(r(O)?C=[O]:L<A.autoRotationLimit&&(C=A.autoRotation)),C)for(var Q=void 0,J=void 0,rt=0,lt=C;rt<lt.length;rt++){var gt=lt[rt];(gt===O||gt&&gt>=-90&&gt<=90)&&(J=(Q=X(Math.abs(j.h/Math.sin(P*gt))))+Math.abs(gt/360))<q&&(q=J,p=gt,G=Q)}}else G=X(j.h);return this.autoRotation=C,this.labelRotation=e(p,r(O)?O:0),A.step?_:G},D.prototype.getSlotWidth=function(p){var C=this.chart,A=this.horiz,N=this.options.labels,_=Math.max(this.tickPositions.length-(this.categories?0:1),1),L=C.margin[3];if(p&&r(p.slotWidth))return p.slotWidth;if(A&&N.step<2)return N.rotation?0:(this.staggerLines||1)*this.len/_;if(!A){var O=N.style.width;if(O!==void 0)return parseInt(String(O),10);if(L)return L-C.spacing[3]}return .33*C.chartWidth},D.prototype.renderUnsquish=function(){var p,C,A,N,_,L=this.chart,O=L.renderer,j=this.tickPositions,Y=this.ticks,X=this.options.labels,G=X.style,q=this.horiz,Q=this.getSlotWidth(),J=Math.max(1,Math.round(Q-2*X.padding)),rt={},lt=this.labelMetrics(),gt=G.textOverflow,mt=0;if(a(X.rotation)||(rt.rotation=X.rotation||0),j.forEach(function(bt){var yt=Y[bt];yt.movedLabel&&yt.replaceMovedLabel(),yt&&yt.label&&yt.label.textPxLength>mt&&(mt=yt.label.textPxLength)}),this.maxLabelLength=mt,this.autoRotation)mt>J&&mt>lt.h?rt.rotation=this.labelRotation:this.labelRotation=0;else if(Q&&(p=J,!gt))for(C="clip",N=j.length;!q&&N--;)_=j[N],(A=Y[_].label)&&(A.styles&&A.styles.textOverflow==="ellipsis"?A.css({textOverflow:"clip"}):A.textPxLength>Q&&A.css({width:Q+"px"}),A.getBBox().height>this.len/j.length-(lt.h-lt.f)&&(A.specificTextOverflow="ellipsis"));rt.rotation&&(p=mt>.5*L.chartHeight?.33*L.chartHeight:mt,gt||(C="ellipsis")),this.labelAlign=X.align||this.autoLabelAlign(this.labelRotation),this.labelAlign&&(rt.align=this.labelAlign),j.forEach(function(bt){var yt=Y[bt],ct=yt&&yt.label,et=G.width,at={};ct&&(ct.attr(rt),yt.shortenLabel?yt.shortenLabel():p&&!et&&G.whiteSpace!=="nowrap"&&(p<ct.textPxLength||ct.element.tagName==="SPAN")?(at.width=p+"px",gt||(at.textOverflow=ct.specificTextOverflow||C),ct.css(at)):ct.styles&&ct.styles.width&&!at.width&&!et&&ct.css({width:null}),delete ct.specificTextOverflow,yt.rotation=rt.rotation)},this),this.tickRotCorr=O.rotCorr(lt.b,this.labelRotation||0,this.side!==0)},D.prototype.hasData=function(){return this.series.some(function(p){return p.hasData()})||this.options.showEmpty&&u(this.min)&&u(this.max)},D.prototype.addTitle=function(p){var C,A=this,N=A.chart.renderer,_=A.horiz,L=A.opposite,O=A.options.title,j=A.chart.styledMode;A.axisTitle||((C=O.textAlign)||(C=(_?{low:"left",middle:"center",high:"right"}:{low:L?"right":"left",middle:"center",high:L?"left":"right"})[O.align]),A.axisTitle=N.text(O.text||"",0,0,O.useHTML).attr({zIndex:7,rotation:O.rotation,align:C}).addClass("highcharts-axis-title"),j||A.axisTitle.css(t(O.style)),A.axisTitle.add(A.axisGroup),A.axisTitle.isNew=!0),j||O.style.width||A.isRadial||A.axisTitle.css({width:A.len+"px"}),A.axisTitle[p?"show":"hide"](p)},D.prototype.generateTick=function(p){var C=this.ticks;C[p]?C[p].addLabel():C[p]=new U(this,p)},D.prototype.getOffset=function(){var p,C,A,N,_=this,L=this,O=L.chart,j=L.horiz,Y=L.options,X=L.side,G=L.ticks,q=L.tickPositions,Q=L.coll,J=L.axisParent,rt=O.renderer,lt=O.inverted&&!L.isZAxis?[1,0,3,2][X]:X,gt=L.hasData(),mt=Y.title,bt=Y.labels,yt=O.axisOffset,ct=O.clipOffset,et=[-1,1,1,-1][X],at=Y.className,dt=0,vt=0,Ct=0;if(L.showAxis=p=gt||Y.showEmpty,L.staggerLines=L.horiz&&bt.staggerLines||void 0,!L.axisGroup){var xt=function(St,Tt,Lt){return rt.g(St).attr({zIndex:Lt}).addClass("highcharts-".concat(Q.toLowerCase()).concat(Tt," ")+(_.isRadial?"highcharts-radial-axis".concat(Tt," "):"")+(at||"")).add(J)};L.gridGroup=xt("grid","-grid",Y.gridZIndex),L.axisGroup=xt("axis","",Y.zIndex),L.labelGroup=xt("axis-labels","-labels",bt.zIndex)}if(gt||L.isLinked?(q.forEach(function(St){L.generateTick(St)}),L.renderUnsquish(),L.reserveSpaceDefault=X===0||X===2||{1:"left",3:"right"}[X]===L.labelAlign,e(bt.reserveSpace,L.labelAlign==="center"||null,L.reserveSpaceDefault)&&q.forEach(function(St){Ct=Math.max(G[St].getLabelSize(),Ct)}),L.staggerLines&&(Ct*=L.staggerLines),L.labelOffset=Ct*(L.opposite?-1:1)):o(G,function(St,Tt){St.destroy(),delete G[Tt]}),mt&&mt.text&&mt.enabled!==!1&&(L.addTitle(p),p&&mt.reserveSpace!==!1&&(L.titleOffset=dt=L.axisTitle.getBBox()[j?"height":"width"],C=mt.offset,vt=u(C)?0:e(mt.margin,j?5:10))),L.renderLine(),L.offset=et*e(Y.offset,yt[X]?yt[X]+(Y.margin||0):0),L.tickRotCorr=L.tickRotCorr||{x:0,y:0},N=X===0?-L.labelMetrics().h:X===2?L.tickRotCorr.y:0,A=Math.abs(Ct)+vt,Ct&&(A-=N,A+=et*(j?e(bt.y,L.tickRotCorr.y+8*et):bt.x)),L.axisTitleMargin=e(C,A),L.getMaxLabelDimensions&&(L.maxLabelDimensions=L.getMaxLabelDimensions(G,q)),Q!=="colorAxis"){var wt=this.tickSize("tick");yt[X]=Math.max(yt[X],(L.axisTitleMargin||0)+dt+et*L.offset,A,q&&q.length&&wt?wt[0]+et*L.offset:0);var Mt=!L.axisLine||Y.offset?0:2*Math.floor(L.axisLine.strokeWidth()/2);ct[lt]=Math.max(ct[lt],Mt)}c(this,"afterGetOffset")},D.prototype.getLinePath=function(p){var C=this.chart,A=this.opposite,N=this.offset,_=this.horiz,L=this.left+(A?this.width:0)+N,O=C.chartHeight-this.bottom-(A?this.height:0)+N;return A&&(p*=-1),C.renderer.crispLine([["M",_?this.left:L,_?O:this.top],["L",_?C.chartWidth-this.right:L,_?O:C.chartHeight-this.bottom]],p)},D.prototype.renderLine=function(){this.axisLine||(this.axisLine=this.chart.renderer.path().addClass("highcharts-axis-line").add(this.axisGroup),this.chart.styledMode||this.axisLine.attr({stroke:this.options.lineColor,"stroke-width":this.options.lineWidth,zIndex:7}))},D.prototype.getTitlePosition=function(){var p=this.horiz,C=this.left,A=this.top,N=this.len,_=this.options.title,L=p?C:A,O=this.opposite,j=this.offset,Y=_.x,X=_.y,G=this.axisTitle,q=this.chart.renderer.fontMetrics(_.style.fontSize,G),Q=G?Math.max(G.getBBox(!1,0).height-q.h-1,0):0,J={low:L+(p?0:N),middle:L+N/2,high:L+(p?N:0)}[_.align],rt=(p?A+this.height:C)+(p?1:-1)*(O?-1:1)*(this.axisTitleMargin||0)+[-Q,Q,q.f,-Q][this.side],lt={x:p?J+Y:rt+(O?this.width:0)+j+Y,y:p?rt+X-(O?this.height:0)+j:J+X};return c(this,"afterGetTitlePosition",{titlePosition:lt}),lt},D.prototype.renderMinorTick=function(p,C){var A=this.minorTicks;A[p]||(A[p]=new U(this,p,"minor")),C&&A[p].isNew&&A[p].render(null,!0),A[p].render(null,!1,1)},D.prototype.renderTick=function(p,C,A){var N=this,_=N.isLinked,L=N.ticks;(!_||p>=N.min&&p<=N.max||N.grid&&N.grid.isColumn)&&(L[p]||(L[p]=new U(N,p)),A&&L[p].isNew&&L[p].render(C,!0,-1),L[p].render(C))},D.prototype.render=function(){var p,C,A=this,N=A.chart,_=A.logarithmic,L=N.renderer,O=A.options,j=A.isLinked,Y=A.tickPositions,X=A.axisTitle,G=A.ticks,q=A.minorTicks,Q=A.alternateBands,J=O.stackLabels,rt=O.alternateGridColor,lt=A.tickmarkOffset,gt=A.axisLine,mt=A.showAxis,bt=I(L.globalAnimation);if(A.labelEdge.length=0,A.overlap=!1,[G,q,Q].forEach(function(et){o(et,function(at){at.isActive=!1})}),A.hasData()||j){var yt=A.chart.hasRendered&&A.old&&r(A.old.min);A.minorTickInterval&&!A.categories&&A.getMinorTickPositions().forEach(function(et){A.renderMinorTick(et,yt)}),Y.length&&(Y.forEach(function(et,at){A.renderTick(et,at,yt)}),lt&&(A.min===0||A.single)&&(G[-1]||(G[-1]=new U(A,-1,null,!0)),G[-1].render(-1))),rt&&Y.forEach(function(et,at){C=Y[at+1]!==void 0?Y[at+1]+lt:A.max-lt,at%2==0&&et<A.max&&C<=A.max+(N.polar?-lt:lt)&&(Q[et]||(Q[et]=new Z.PlotLineOrBand(A)),p=et+lt,Q[et].options={from:_?_.lin2log(p):p,to:_?_.lin2log(C):C,color:rt,className:"highcharts-alternate-grid"},Q[et].render(),Q[et].isActive=!0)}),A._addedPlotLB||(A._addedPlotLB=!0,(O.plotLines||[]).concat(O.plotBands||[]).forEach(function(et){A.addPlotBandOrLine(et)}))}if([G,q,Q].forEach(function(et){var at=[],dt=bt.duration;o(et,function(vt,Ct){vt.isActive||(vt.render(Ct,!1,0),vt.isActive=!1,at.push(Ct))}),b(function(){for(var vt=at.length;vt--;)et[at[vt]]&&!et[at[vt]].isActive&&(et[at[vt]].destroy(),delete et[at[vt]])},et!==Q&&N.hasRendered&&dt?dt:0)}),gt&&(gt[gt.isPlaced?"animate":"attr"]({d:this.getLinePath(gt.strokeWidth())}),gt.isPlaced=!0,gt[mt?"show":"hide"](mt)),X&&mt){var ct=A.getTitlePosition();X[X.isNew?"attr":"animate"](ct),X.isNew=!1}J&&J.enabled&&A.stacking&&A.stacking.renderStackTotals(),A.old={len:A.len,max:A.max,min:A.min,transA:A.transA,userMax:A.userMax,userMin:A.userMin},A.isDirty=!1,c(this,"afterRender")},D.prototype.redraw=function(){this.visible&&(this.render(),this.plotLinesAndBands.forEach(function(p){p.render()})),this.series.forEach(function(p){p.isDirty=!0})},D.prototype.getKeepProps=function(){return this.keepProps||D.keepProps},D.prototype.destroy=function(p){var C=this,A=C.plotLinesAndBands,N=this.eventOptions;if(c(this,"destroy",{keepEvents:p}),p||n(C),[C.ticks,C.minorTicks,C.alternateBands].forEach(function(O){v(O)}),A)for(var _=A.length;_--;)A[_].destroy();for(var L in["axisLine","axisTitle","axisGroup","gridGroup","labelGroup","cross","scrollbar"].forEach(function(O){C[O]&&(C[O]=C[O].destroy())}),C.plotLinesAndBandsGroups)C.plotLinesAndBandsGroups[L]=C.plotLinesAndBandsGroups[L].destroy();o(C,function(O,j){C.getKeepProps().indexOf(j)===-1&&delete C[j]}),this.eventOptions=N},D.prototype.drawCrosshair=function(p,C){var A,N,_,L,O=this.crosshair,j=e(O&&O.snap,!0),Y=this.chart,X=this.cross;if(c(this,"drawCrosshair",{e:p,point:C}),p||(p=this.cross&&this.cross.e),O&&(u(C)||!j)!==!1){if(j?u(C)&&(N=e(this.coll!=="colorAxis"?C.crosshairPos:null,this.isXAxis?C.plotX:this.len-C.plotY)):N=p&&(this.horiz?p.chartX-this.pos:this.len-p.chartY+this.pos),u(N)&&(L={value:C&&(this.isXAxis?C.x:e(C.stackY,C.y)),translatedValue:N},Y.polar&&x(L,{isCrosshair:!0,chartX:p&&p.chartX,chartY:p&&p.chartY,point:C}),A=this.getPlotLinePath(L)||null),!u(A))return void this.hideCrosshair();_=this.categories&&!this.isRadial,X||(this.cross=X=Y.renderer.path().addClass("highcharts-crosshair highcharts-crosshair-"+(_?"category ":"thin ")+(O.className||"")).attr({zIndex:e(O.zIndex,2)}).add(),Y.styledMode||(X.attr({stroke:O.color||(_?H.parse("#ccd6eb").setOpacity(.25).get():"#cccccc"),"stroke-width":e(O.width,1)}).css({"pointer-events":"none"}),O.dashStyle&&X.attr({dashstyle:O.dashStyle}))),X.show().attr({d:A}),_&&!O.width&&X.attr({"stroke-width":this.transA}),this.cross.e=p}else this.hideCrosshair();c(this,"afterDrawCrosshair",{e:p,point:C})},D.prototype.hideCrosshair=function(){this.cross&&this.cross.hide(),c(this,"afterHideCrosshair")},D.prototype.hasVerticalPanning=function(){var p=this.chart.options.chart.panning;return!!(p&&p.enabled&&/y/.test(p.type))},D.prototype.validatePositiveValue=function(p){return r(p)&&p>0},D.prototype.update=function(p,C){var A=this.chart;p=t(this.userOptions,p),this.destroy(!0),this.init(A,p),A.isDirtyBox=!0,e(C,!0)&&A.redraw()},D.prototype.remove=function(p){for(var C=this.chart,A=this.coll,N=this.series,_=N.length;_--;)N[_]&&N[_].remove(!1);w(C.axes,this),w(C[A],this),C[A].forEach(function(L,O){L.options.index=L.userOptions.index=O}),this.destroy(),C.isDirtyBox=!0,e(p,!0)&&C.redraw()},D.prototype.setTitle=function(p,C){this.update({title:p},C)},D.prototype.setCategories=function(p,C){this.update({categories:p},C)},D.defaultOptions=R.defaultXAxisOptions,D.keepProps=["extKey","hcEvents","names","series","userMax","userMin"],D}()}),it(B,"Core/Axis/DateTimeAxis.js",[B["Core/Utilities.js"]],function(W){var R,H=W.addEvent,V=W.getMagnitude,$=W.normalizeTickInterval,Z=W.timeUnits;return function(U){var z=[];function I(){return this.chart.time.getTimeTicks.apply(this.chart.time,arguments)}function E(P){var y=this;P.userOptions.type==="datetime"?y.dateTime||(y.dateTime=new M(y)):y.dateTime=void 0}U.compose=function(P){return z.indexOf(P)===-1&&(z.push(P),P.keepProps.push("dateTime"),P.prototype.getTimeTicks=I,H(P,"init",E)),P};var M=function(){function P(y){this.axis=y}return P.prototype.normalizeTimeTickInterval=function(y,h){var f,m=h||[["millisecond",[1,2,5,10,20,25,50,100,200,500]],["second",[1,2,5,10,15,30]],["minute",[1,2,5,10,15,30]],["hour",[1,2,3,4,6,8,12]],["day",[1,2]],["week",[1,2]],["month",[1,2,3,4,6]],["year",null]],u=m[m.length-1],v=Z[u[0]],w=u[1];for(f=0;f<m.length&&(u=m[f],v=Z[u[0]],w=u[1],!(m[f+1]&&y<=(v*w[w.length-1]+Z[m[f+1][0]])/2));f++);return v===Z.year&&y<5*v&&(w=[1,2,5]),{unitRange:v,count:$(y/v,w,u[0]==="year"?Math.max(V(y/v),1):1),unitName:u[0]}},P.prototype.getXDateFormat=function(y,h){var f=this.axis,m=f.chart.time;return f.closestPointRange?m.getDateFormat(f.closestPointRange,y,f.options.startOfWeek,h)||m.resolveDTLFormat(h.year).main:m.resolveDTLFormat(h.day).main},P}();U.Additions=M}(R||(R={})),R}),it(B,"Core/Axis/LogarithmicAxis.js",[B["Core/Utilities.js"]],function(W){var R,H=W.addEvent,V=W.normalizeTickInterval,$=W.pick;return function(Z){var U=[];function z(M){var P=this,y=M.userOptions,h=P.logarithmic;y.type!=="logarithmic"?P.logarithmic=void 0:h||(h=P.logarithmic=new E(P))}function I(){var M=this,P=M.logarithmic;P&&(M.lin2val=function(y){return P.lin2log(y)},M.val2lin=function(y){return P.log2lin(y)})}Z.compose=function(M){return U.indexOf(M)===-1&&(U.push(M),M.keepProps.push("logarithmic"),H(M,"init",z),H(M,"afterInit",I)),M};var E=function(){function M(P){this.axis=P}return M.prototype.getLogTickPositions=function(P,y,h,f){var m=this,u=m.axis,v=u.len,w=u.options,S=[];if(f||(m.minorAutoInterval=void 0),P>=.5)P=Math.round(P),S=u.getLinearTickPositions(P,y,h);else if(P>=.08){var x,c=void 0,g=void 0,r=void 0,a=void 0,t=void 0,i=void 0;for(x=P>.3?[1,2,4]:P>.15?[1,2,4,6,8]:[1,2,3,4,5,6,7,8,9],c=Math.floor(y);c<h+1&&!i;c++)for(r=x.length,g=0;g<r&&!i;g++)(a=m.log2lin(m.lin2log(c)*x[g]))>y&&(!f||t<=h)&&t!==void 0&&S.push(t),t>h&&(i=!0),t=a}else{var o=m.lin2log(y),e=m.lin2log(h),s=f?u.getMinorTickInterval():w.tickInterval,n=s==="auto"?null:s,l=w.tickPixelInterval/(f?5:1),b=f?v/u.tickPositions.length:v;P=$(n,m.minorAutoInterval,(e-o)*l/(b||1)),P=V(P),S=u.getLinearTickPositions(P,o,e).map(m.log2lin),f||(m.minorAutoInterval=P/5)}return f||(u.tickInterval=P),S},M.prototype.lin2log=function(P){return Math.pow(10,P)},M.prototype.log2lin=function(P){return Math.log(P)/Math.LN10},M}();Z.Additions=E}(R||(R={})),R}),it(B,"Core/Axis/PlotLineOrBand/PlotLineOrBandAxis.js",[B["Core/Utilities.js"]],function(W){var R,H=W.erase,V=W.extend,$=W.isNumber;return function(Z){var U,z=[];Z.compose=function(E,M){return U||(U=E),z.indexOf(M)===-1&&(z.push(M),V(M.prototype,I.prototype)),M};var I=function(){function E(){}return E.prototype.getPlotBandPath=function(M,P,y){y===void 0&&(y=this.options);var h,f,m=this.getPlotLinePath({value:P,force:!0,acrossPanes:y.acrossPanes}),u=[],v=this.horiz,w=!$(this.min)||!$(this.max)||M<this.min&&P<this.min||M>this.max&&P>this.max,S=this.getPlotLinePath({value:M,force:!0,acrossPanes:y.acrossPanes}),x=1;if(S&&m)for(w&&(f=S.toString()===m.toString(),x=0),h=0;h<S.length;h+=2){var c=S[h],g=S[h+1],r=m[h],a=m[h+1];c[0]!=="M"&&c[0]!=="L"||g[0]!=="M"&&g[0]!=="L"||r[0]!=="M"&&r[0]!=="L"||a[0]!=="M"&&a[0]!=="L"||(v&&r[1]===c[1]?(r[1]+=x,a[1]+=x):v||r[2]!==c[2]||(r[2]+=x,a[2]+=x),u.push(["M",c[1],c[2]],["L",g[1],g[2]],["L",a[1],a[2]],["L",r[1],r[2]],["Z"])),u.isFlat=f}else S=null;return u},E.prototype.addPlotBand=function(M){return this.addPlotBandOrLine(M,"plotBands")},E.prototype.addPlotLine=function(M){return this.addPlotBandOrLine(M,"plotLines")},E.prototype.addPlotBandOrLine=function(M,P){var y=this,h=this.userOptions,f=new U(this,M);if(this.visible&&(f=f.render()),f){if(this._addedPlotLB||(this._addedPlotLB=!0,(h.plotLines||[]).concat(h.plotBands||[]).forEach(function(u){y.addPlotBandOrLine(u)})),P){var m=h[P]||[];m.push(M),h[P]=m}this.plotLinesAndBands.push(f)}return f},E.prototype.removePlotBandOrLine=function(M){var P=this.plotLinesAndBands,y=this.options,h=this.userOptions;if(P){for(var f=P.length;f--;)P[f].id===M&&P[f].destroy();[y.plotLines||[],h.plotLines||[],y.plotBands||[],h.plotBands||[]].forEach(function(m){for(f=m.length;f--;)(m[f]||{}).id===M&&H(m,m[f])})}},E.prototype.removePlotBand=function(M){this.removePlotBandOrLine(M)},E.prototype.removePlotLine=function(M){this.removePlotBandOrLine(M)},E}()}(R||(R={})),R}),it(B,"Core/Axis/PlotLineOrBand/PlotLineOrBand.js",[B["Core/Axis/PlotLineOrBand/PlotLineOrBandAxis.js"],B["Core/Utilities.js"]],function(W,R){var H=R.arrayMax,V=R.arrayMin,$=R.defined,Z=R.destroyObjectProperties,U=R.erase,z=R.fireEvent,I=R.merge,E=R.objectEach,M=R.pick;return function(){function P(y,h){this.axis=y,h&&(this.options=h,this.id=h.id)}return P.compose=function(y){return W.compose(P,y)},P.prototype.render=function(){z(this,"render");var y,h=this,f=h.axis,m=f.horiz,u=f.logarithmic,v=h.options,w=v.color,S=M(v.zIndex,0),x=v.events,c={},g=f.chart.renderer,r=v.label,a=h.label,t=v.to,i=v.from,o=v.value,e=h.svgElem,s=[],n=$(i)&&$(t),l=$(o),b=!e,k={class:"highcharts-plot-"+(n?"band ":"line ")+(v.className||"")},D=n?"bands":"lines";if(u&&(i=u.log2lin(i),t=u.log2lin(t),o=u.log2lin(o)),f.chart.styledMode||(l?(k.stroke=w||"#999999",k["stroke-width"]=M(v.width,1),v.dashStyle&&(k.dashstyle=v.dashStyle)):n&&(k.fill=w||"#e6ebf5",v.borderWidth&&(k.stroke=v.borderColor,k["stroke-width"]=v.borderWidth))),c.zIndex=S,D+="-"+S,(y=f.plotLinesAndBandsGroups[D])||(f.plotLinesAndBandsGroups[D]=y=g.g("plot-"+D).attr(c).add()),b&&(h.svgElem=e=g.path().attr(k).add(y)),l)s=f.getPlotLinePath({value:o,lineWidth:e.strokeWidth(),acrossPanes:v.acrossPanes});else{if(!n)return;s=f.getPlotBandPath(i,t,v)}return!h.eventsAdded&&x&&(E(x,function(p,C){e.on(C,function(A){x[C].apply(h,[A])})}),h.eventsAdded=!0),(b||!e.d)&&s&&s.length?e.attr({d:s}):e&&(s?(e.show(),e.animate({d:s})):e.d&&(e.hide(),a&&(h.label=a=a.destroy()))),r&&($(r.text)||$(r.formatter))&&s&&s.length&&f.width>0&&f.height>0&&!s.isFlat?(r=I({align:m&&n&&"center",x:m?!n&&4:10,verticalAlign:!m&&n&&"middle",y:m?n?16:10:n?6:-4,rotation:m&&!n&&90},r),this.renderLabel(r,s,n,S)):a&&a.hide(),h},P.prototype.renderLabel=function(y,h,f,m){var u=this,v=u.axis,w=v.chart.renderer,S=u.label;S||(u.label=S=w.text(this.getLabelText(y),0,0,y.useHTML).attr({align:y.textAlign||y.align,rotation:y.rotation,class:"highcharts-plot-"+(f?"band":"line")+"-label "+(y.className||""),zIndex:m}).add(),v.chart.styledMode||S.css(I({textOverflow:"ellipsis"},y.style)));var x=h.xBounds||[h[0][1],h[1][1],f?h[2][1]:h[0][1]],c=h.yBounds||[h[0][2],h[1][2],f?h[2][2]:h[0][2]],g=V(x),r=V(c);if(S.align(y,!1,{x:g,y:r,width:H(x)-g,height:H(c)-r}),!S.alignValue||S.alignValue==="left"){var a=y.clip?v.width:v.chart.chartWidth;S.css({width:(S.rotation===90?v.height-(S.alignAttr.y-v.top):a-(S.alignAttr.x-v.left))+"px"})}S.show(!0)},P.prototype.getLabelText=function(y){return $(y.formatter)?y.formatter.call(this):y.text},P.prototype.destroy=function(){U(this.axis.plotLinesAndBands,this),delete this.axis,Z(this)},P}()}),it(B,"Core/Tooltip.js",[B["Core/FormatUtilities.js"],B["Core/Globals.js"],B["Core/Renderer/RendererUtilities.js"],B["Core/Renderer/RendererRegistry.js"],B["Core/Utilities.js"]],function(W,R,H,V,$){var Z=W.format,U=R.doc,z=H.distribute,I=$.clamp,E=$.css,M=$.discardElement,P=$.extend,y=$.fireEvent,h=$.isArray,f=$.isNumber,m=$.isString,u=$.merge,v=$.pick,w=$.splat,S=$.syncTimeout;return function(){function x(c,g){this.allowShared=!0,this.container=void 0,this.crosshairs=[],this.distance=0,this.isHidden=!0,this.isSticky=!1,this.now={},this.options={},this.outside=!1,this.chart=c,this.init(c,g)}return x.prototype.applyFilter=function(){var c=this.chart;c.renderer.definition({tagName:"filter",attributes:{id:"drop-shadow-"+c.index,opacity:.5},children:[{tagName:"feGaussianBlur",attributes:{in:"SourceAlpha",stdDeviation:1}},{tagName:"feOffset",attributes:{dx:1,dy:1}},{tagName:"feComponentTransfer",children:[{tagName:"feFuncA",attributes:{type:"linear",slope:.3}}]},{tagName:"feMerge",children:[{tagName:"feMergeNode"},{tagName:"feMergeNode",attributes:{in:"SourceGraphic"}}]}]})},x.prototype.bodyFormatter=function(c){return c.map(function(g){var r=g.series.tooltipOptions;return(r[(g.point.formatPrefix||"point")+"Formatter"]||g.point.tooltipFormatter).call(g.point,r[(g.point.formatPrefix||"point")+"Format"]||"")})},x.prototype.cleanSplit=function(c){this.chart.series.forEach(function(g){var r=g&&g.tt;r&&(!r.isActive||c?g.tt=r.destroy():r.isActive=!1)})},x.prototype.defaultFormatter=function(c){var g,r=this.points||w(this);return(g=(g=[c.tooltipFooterHeaderFormatter(r[0])]).concat(c.bodyFormatter(r))).push(c.tooltipFooterHeaderFormatter(r[0],!0)),g},x.prototype.destroy=function(){this.label&&(this.label=this.label.destroy()),this.split&&this.tt&&(this.cleanSplit(!0),this.tt=this.tt.destroy()),this.renderer&&(this.renderer=this.renderer.destroy(),M(this.container)),$.clearTimeout(this.hideTimer),$.clearTimeout(this.tooltipTimeout)},x.prototype.getAnchor=function(c,g){var r,a=this.chart,t=a.pointer,i=a.inverted,o=a.plotTop,e=a.plotLeft;if((c=w(c))[0].series&&c[0].series.yAxis&&!c[0].series.yAxis.options.reversedStacks&&(c=c.slice().reverse()),this.followPointer&&g)g.chartX===void 0&&(g=t.normalize(g)),r=[g.chartX-e,g.chartY-o];else if(c[0].tooltipPos)r=c[0].tooltipPos;else{var s=0,n=0;c.forEach(function(l){var b=l.pos(!0);b&&(s+=b[0],n+=b[1])}),s/=c.length,n/=c.length,this.shared&&c.length>1&&g&&(i?s=g.chartX:n=g.chartY),r=[s-e,n-o]}return r.map(Math.round)},x.prototype.getClassName=function(c,g,r){var a=this.options,t=c.series,i=t.options;return[a.className,"highcharts-label",r&&"highcharts-tooltip-header",g?"highcharts-tooltip-box":"highcharts-tooltip",!r&&"highcharts-color-"+v(c.colorIndex,t.colorIndex),i&&i.className].filter(m).join(" ")},x.prototype.getLabel=function(){var c,g=this,r=this.chart.styledMode,a=this.options,t=this.split&&this.allowShared,i=a.style.pointerEvents||(this.shouldStickOnContact()?"auto":"none"),o=this.chart.renderer;if(g.label){var e=!g.label.hasClass("highcharts-label");(t&&!e||!t&&e)&&g.destroy()}if(!this.label){if(this.outside){var s=this.chart.options.chart.style,n=V.getRendererType();this.container=c=R.doc.createElement("div"),c.className="highcharts-tooltip-container",E(c,{position:"absolute",top:"1px",pointerEvents:i,zIndex:Math.max(this.options.style.zIndex||0,(s&&s.zIndex||0)+3)}),R.doc.body.appendChild(c),this.renderer=o=new n(c,0,0,s,void 0,void 0,o.styledMode)}if(t?this.label=o.g("tooltip"):(this.label=o.label("",0,0,a.shape,void 0,void 0,a.useHTML,void 0,"tooltip").attr({padding:a.padding,r:a.borderRadius}),r||this.label.attr({fill:a.backgroundColor,"stroke-width":a.borderWidth}).css(a.style).css({pointerEvents:i}).shadow(a.shadow)),r&&a.shadow&&(this.applyFilter(),this.label.attr({filter:"url(#drop-shadow-"+this.chart.index+")"})),g.outside&&!g.split){var l=this.label,b=l.xSetter,k=l.ySetter;l.xSetter=function(D){b.call(l,g.distance),c.style.left=D+"px"},l.ySetter=function(D){k.call(l,g.distance),c.style.top=D+"px"}}this.label.attr({zIndex:8}).add()}return this.label},x.prototype.getPosition=function(c,g,r){var a,t=this.chart,i=this.distance,o={},e=t.inverted&&r.h||0,s=this.outside,n=s?U.documentElement.clientWidth-2*i:t.chartWidth,l=s?Math.max(U.body.scrollHeight,U.documentElement.scrollHeight,U.body.offsetHeight,U.documentElement.offsetHeight,U.documentElement.clientHeight):t.chartHeight,b=t.pointer.getChartPosition(),k=function(X){return X*b.scaleX},D=function(X){return X*b.scaleY},p=function(X){var G=X==="x";return[X,G?n:l,G?c:g].concat(s?[G?k(c):D(g),G?b.left-i+k(r.plotX+t.plotLeft):b.top-i+D(r.plotY+t.plotTop),0,G?n:l]:[G?c:g,G?r.plotX+t.plotLeft:r.plotY+t.plotTop,G?t.plotLeft:t.plotTop,G?t.plotLeft+t.plotWidth:t.plotTop+t.plotHeight])},C=p("y"),A=p("x"),N=!!r.negative;!t.polar&&t.hoverSeries&&t.hoverSeries.yAxis&&t.hoverSeries.yAxis.reversed&&(N=!N);var _=!this.followPointer&&v(r.ttBelow,!t.inverted===N),L=function(X,G,q,Q,J,rt,lt){var gt=s?X==="y"?D(i):k(i):i,mt=(q-Q)/2,bt=Q<J-i,yt=J+i+Q<G,ct=J-gt-q+mt,et=J+gt-mt;if(_&&yt)o[X]=et;else if(!_&&bt)o[X]=ct;else if(bt)o[X]=Math.min(lt-Q,ct-e<0?ct:ct-e);else{if(!yt)return!1;o[X]=Math.max(rt,et+e+q>G?et:et+e)}},O=function(X,G,q,Q,J){var rt;return J<i||J>G-i?rt=!1:o[X]=J<q/2?1:J>G-Q/2?G-Q-2:J-q/2,rt},j=function(X){var G=C;C=A,A=G,a=X},Y=function(){L.apply(0,C)!==!1?O.apply(0,A)!==!1||a||(j(!0),Y()):a?o.x=o.y=0:(j(!0),Y())};return(t.inverted||this.len>1)&&j(),Y(),o},x.prototype.hide=function(c){var g=this;$.clearTimeout(this.hideTimer),c=v(c,this.options.hideDelay),this.isHidden||(this.hideTimer=S(function(){g.getLabel().fadeOut(c&&void 0),g.isHidden=!0},c))},x.prototype.init=function(c,g){this.chart=c,this.options=g,this.crosshairs=[],this.now={x:0,y:0},this.isHidden=!0,this.split=g.split&&!c.inverted&&!c.polar,this.shared=g.shared||this.split,this.outside=v(g.outside,!!(c.scrollablePixelsX||c.scrollablePixelsY))},x.prototype.shouldStickOnContact=function(c){return!(this.followPointer||!this.options.stickOnContact||c&&!this.chart.pointer.inClass(c.target,"highcharts-tooltip"))},x.prototype.move=function(c,g,r,a){var t=this,i=t.now,o=t.options.animation!==!1&&!t.isHidden&&(Math.abs(c-i.x)>1||Math.abs(g-i.y)>1),e=t.followPointer||t.len>1;P(i,{x:o?(2*i.x+c)/3:c,y:o?(i.y+g)/2:g,anchorX:e?void 0:o?(2*i.anchorX+r)/3:r,anchorY:e?void 0:o?(i.anchorY+a)/2:a}),t.getLabel().attr(i),t.drawTracker(),o&&($.clearTimeout(this.tooltipTimeout),this.tooltipTimeout=setTimeout(function(){t&&t.move(c,g,r,a)},32))},x.prototype.refresh=function(c,g){var r=this,a=this.chart,t=r.options,i=a.pointer,o=w(c),e=o[0],s=[],n=t.formatter||r.defaultFormatter,l=r.shared,b=a.styledMode,k={};if(t.enabled&&e.series){$.clearTimeout(this.hideTimer),r.allowShared=!(!h(c)&&c.series&&c.series.noSharedTooltip),r.followPointer=!r.split&&e.series.tooltipOptions.followPointer;var D=r.getAnchor(c,g),p=D[0],C=D[1];l&&r.allowShared?(i.applyInactiveState(o),o.forEach(function(j){j.setState("hover"),s.push(j.getLabelConfig())}),(k={x:e.category,y:e.y}).points=s):k=e.getLabelConfig(),this.len=s.length;var A=n.call(k,r),N=e.series;if(this.distance=v(N.tooltipOptions.distance,16),A===!1)this.hide();else{if(r.split&&r.allowShared)this.renderSplit(A,o);else{var _=p,L=C;if(g&&i.isDirectTouch&&(_=g.chartX-a.plotLeft,L=g.chartY-a.plotTop),!a.polar&&N.options.clip!==!1&&!o.some(function(j){return i.isDirectTouch||j.series.shouldShowTooltip(_,L)}))return void r.hide();var O=r.getLabel();t.style.width&&!b||O.css({width:a.spacingBox.width+"px"}),O.attr({text:A&&A.join?A.join(""):A}),O.addClass(r.getClassName(e),!0),b||O.attr({stroke:t.borderColor||e.color||N.color||"#666666"}),r.updatePosition({plotX:p,plotY:C,negative:e.negative,ttBelow:e.ttBelow,h:D[2]||0})}r.isHidden&&r.label&&r.label.attr({opacity:1}).show(),r.isHidden=!1}y(this,"refresh")}},x.prototype.renderSplit=function(c,g){var r=this,a=r.chart,t=r.chart,i=t.chartWidth,o=t.chartHeight,e=t.plotHeight,s=t.plotLeft,n=t.plotTop,l=t.pointer,b=t.scrollablePixelsY,k=b===void 0?0:b,D=t.scrollablePixelsX,p=t.scrollingContainer,C=p===void 0?{scrollLeft:0,scrollTop:0}:p,A=C.scrollLeft,N=C.scrollTop,_=t.styledMode,L=r.distance,O=r.options,j=r.options.positioner,Y=r.outside&&typeof D!="number"?U.documentElement.getBoundingClientRect():{left:A,right:A+i,top:N,bottom:N+o},X=r.getLabel(),G=this.renderer||a.renderer,q=!!(a.xAxis[0]&&a.xAxis[0].opposite),Q=l.getChartPosition(),J=Q.left,rt=Q.top,lt=n+N,gt=0,mt=e-k;function bt(St,Tt,Lt,Pt,Dt){var jt,Ot;return Dt===void 0&&(Dt=!0),Lt?(jt=q?0:mt,Ot=I(St-Pt/2,Y.left,Y.right-Pt-(r.outside?J:0))):(jt=Tt-lt,Ot=I(Ot=Dt?St-Pt-L:St+L,Dt?Ot:Y.left,Y.right)),{x:Ot,y:jt}}m(c)&&(c=[!1,c]);var yt=c.slice(0,g.length+1).reduce(function(St,Tt,Lt){if(Tt!==!1&&Tt!==""){var Pt=g[Lt-1]||{isHeader:!0,plotX:g[0].plotX,plotY:e,series:{}},Dt=Pt.isHeader,jt=Dt?r:Pt.series,Ot=jt.tt=function(Ut,te,ye){var Et=Ut,Gt=te.isHeader,Yt=te.series;if(!Et){var $t={padding:O.padding,r:O.borderRadius};_||($t.fill=O.backgroundColor,$t["stroke-width"]=O.borderWidth),Et=G.label("",0,0,O[Gt?"headerShape":"shape"],void 0,void 0,O.useHTML).addClass(r.getClassName(te,!0,Gt)).attr($t).add(X)}return Et.isActive=!0,Et.attr({text:ye}),_||Et.css(O.style).shadow(O.shadow).attr({stroke:O.borderColor||te.color||Yt.color||"#333333"}),Et}(jt.tt,Pt,Tt.toString()),It=Ot.getBBox(),Bt=It.width+Ot.strokeWidth();Dt&&(gt=It.height,mt+=gt,q&&(lt-=gt));var Zt=function(Ut){var te,ye,Et=Ut.isHeader,Gt=Ut.plotX,Yt=Gt===void 0?0:Gt,$t=Ut.plotY,ce=$t===void 0?0:$t,pe=Ut.series;if(Et)te=s+Yt,ye=n+e/2;else{var Wt=pe.xAxis,At=pe.yAxis;te=Wt.pos+I(Yt,-L,Wt.len+L),pe.shouldShowTooltip(0,At.pos-n+ce,{ignoreX:!0})&&(ye=At.pos+ce)}return{anchorX:te=I(te,Y.left-L,Y.right+L),anchorY:ye}}(Pt),zt=Zt.anchorX,Ht=Zt.anchorY;if(typeof Ht=="number"){var Kt=It.height+1,me=j?j.call(r,Bt,Kt,Pt):bt(zt,Ht,Dt,Bt);St.push({align:j?0:void 0,anchorX:zt,anchorY:Ht,boxWidth:Bt,point:Pt,rank:v(me.rank,Dt?1:0),size:Kt,target:me.y,tt:Ot,x:me.x})}else Ot.isActive=!1}return St},[]);!j&&yt.some(function(St){var Tt=(r.outside?J:0)+St.anchorX;return Tt<Y.left&&Tt+St.boxWidth<Y.right||Tt<J-Y.left+St.boxWidth&&Y.right-Tt>Tt})&&(yt=yt.map(function(St){var Tt=bt(St.anchorX,St.anchorY,St.point.isHeader,St.boxWidth,!1),Lt=Tt.x,Pt=Tt.y;return P(St,{target:Pt,x:Lt})})),r.cleanSplit(),z(yt,mt);var ct={left:J,right:J};yt.forEach(function(St){var Tt=St.x,Lt=St.boxWidth,Pt=St.isHeader;Pt||(r.outside&&J+Tt<ct.left&&(ct.left=J+Tt),!Pt&&r.outside&&ct.left+Lt>ct.right&&(ct.right=J+Tt))}),yt.forEach(function(St){var Tt=St.x,Lt=St.anchorX,Pt=St.anchorY,Dt=St.pos,jt=St.point.isHeader,Ot={visibility:Dt===void 0?"hidden":"inherit",x:Tt,y:(Dt||0)+lt,anchorX:Lt,anchorY:Pt};if(r.outside&&Tt<Lt){var It=J-ct.left;It>0&&(jt||(Ot.x=Tt+It,Ot.anchorX=Lt+It),jt&&(Ot.x=(ct.right-ct.left)/2,Ot.anchorX=Lt+It))}St.tt.attr(Ot)});var et=r.container,at=r.outside,dt=r.renderer;if(at&&et&&dt){var vt=X.getBBox(),Ct=vt.width,xt=vt.height,wt=vt.x,Mt=vt.y;dt.setSize(Ct+wt,xt+Mt,!1),et.style.left=ct.left+"px",et.style.top=rt+"px"}},x.prototype.drawTracker=function(){var c=this;if(this.shouldStickOnContact()){var g=c.chart,r=c.label,a=c.shared?g.hoverPoints:g.hoverPoint;if(r&&a){var t={x:0,y:0,width:0,height:0},i=this.getAnchor(a),o=r.getBBox();i[0]+=g.plotLeft-r.translateX,i[1]+=g.plotTop-r.translateY,t.x=Math.min(0,i[0]),t.y=Math.min(0,i[1]),t.width=i[0]<0?Math.max(Math.abs(i[0]),o.width-i[0]):Math.max(Math.abs(i[0]),o.width),t.height=i[1]<0?Math.max(Math.abs(i[1]),o.height-Math.abs(i[1])):Math.max(Math.abs(i[1]),o.height),c.tracker?c.tracker.attr(t):(c.tracker=r.renderer.rect(t).addClass("highcharts-tracker").add(r),g.styledMode||c.tracker.attr({fill:"rgba(0,0,0,0)"}))}}else c.tracker&&c.tracker.destroy()},x.prototype.styledModeFormat=function(c){return c.replace('style="font-size: 10px"','class="highcharts-header"').replace(/style="color:{(point|series)\.color}"/g,'class="highcharts-color-{$1.colorIndex} {series.options.className} {point.options.className}"')},x.prototype.tooltipFooterHeaderFormatter=function(c,g){var r=c.series,a=r.tooltipOptions,t=r.xAxis,i=t&&t.dateTime,o={isFooter:g,labelConfig:c},e=a.xDateFormat,s=a[g?"footerFormat":"headerFormat"];return y(this,"headerFormatter",o,function(n){i&&!e&&f(c.key)&&(e=i.getXDateFormat(c.key,a.dateTimeLabelFormats)),i&&e&&(c.point&&c.point.tooltipDateKeys||["key"]).forEach(function(l){s=s.replace("{point."+l+"}","{point."+l+":"+e+"}")}),r.chart.styledMode&&(s=this.styledModeFormat(s)),n.text=Z(s,{point:c,series:r},this.chart)}),o.text},x.prototype.update=function(c){this.destroy(),u(!0,this.chart.options.tooltip.userOptions,c),this.init(this.chart,u(!0,this.options,c))},x.prototype.updatePosition=function(c){var g,r=this,a=r.chart,t=r.distance,i=r.options,o=a.pointer,e=this.getLabel(),s=o.getChartPosition(),n=s.left,l=s.top,b=s.scaleX,k=s.scaleY,D=(i.positioner||this.getPosition).call(this,e.width,e.height,c),p=(c.plotX||0)+a.plotLeft,C=(c.plotY||0)+a.plotTop;this.outside&&(i.positioner&&(D.x+=n-t,D.y+=l-t),g=i.borderWidth+2*t,this.renderer.setSize(e.width+g,e.height+g,!1),b===1&&k===1||(E(this.container,{transform:"scale(".concat(b,", ").concat(k,")")}),p*=b,C*=k),p+=n-D.x,C+=l-D.y),this.move(Math.round(D.x),Math.round(D.y||0),p,C)},x}()}),it(B,"Core/Series/Point.js",[B["Core/Renderer/HTML/AST.js"],B["Core/Animation/AnimationUtilities.js"],B["Core/Defaults.js"],B["Core/FormatUtilities.js"],B["Core/Utilities.js"]],function(W,R,H,V,$){var Z=R.animObject,U=H.defaultOptions,z=V.format,I=$.addEvent,E=$.defined,M=$.erase,P=$.extend,y=$.fireEvent,h=$.getNestedProperty,f=$.isArray,m=$.isFunction,u=$.isNumber,v=$.isObject,w=$.merge,S=$.objectEach,x=$.pick,c=$.syncTimeout,g=$.removeEvent,r=$.uniqueKey;return function(){function a(){this.category=void 0,this.formatPrefix="point",this.id=void 0,this.isNull=!1,this.name=void 0,this.options=void 0,this.percentage=void 0,this.selected=!1,this.series=void 0,this.shapeArgs=void 0,this.total=void 0,this.visible=!0,this.x=void 0}return a.prototype.animateBeforeDestroy=function(){var t=this,i={x:t.startXPos,opacity:0},o=t.getGraphicalProps();o.singular.forEach(function(e){var s=e==="dataLabel";t[e]=t[e].animate(s?{x:t[e].startXPos,y:t[e].startYPos,opacity:0}:i)}),o.plural.forEach(function(e){t[e].forEach(function(s){s.element&&s.animate(P({x:t.startXPos},s.startYPos?{x:s.startXPos,y:s.startYPos}:{}))})})},a.prototype.applyOptions=function(t,i){var o=this,e=o.series,s=e.options.pointValKey||e.pointValKey;return t=a.prototype.optionsToObject.call(this,t),P(o,t),o.options=o.options?P(o.options,t):t,t.group&&delete o.group,t.dataLabels&&delete o.dataLabels,s&&(o.y=a.prototype.getNestedProperty.call(o,s)),o.isNull=this.isValid&&!this.isValid(),o.formatPrefix=o.isNull?"null":"point",o.selected&&(o.state="select"),"name"in o&&i===void 0&&e.xAxis&&e.xAxis.hasNames&&(o.x=e.xAxis.nameToX(o)),o.x===void 0&&e?o.x=i===void 0?e.autoIncrement():i:u(t.x)&&e.options.relativeXValue&&(o.x=e.autoIncrement(t.x)),o},a.prototype.destroy=function(){var t,i=this,o=i.series,e=o.chart,s=o.options.dataSorting,n=e.hoverPoints,l=i.series.chart.renderer.globalAnimation,b=Z(l);function k(){for(t in(i.graphic||i.graphics||i.dataLabel||i.dataLabels)&&(g(i),i.destroyElements()),i)i[t]=null}i.legendItem&&e.legend.destroyItem(i),n&&(i.setState(),M(n,i),n.length||(e.hoverPoints=null)),i===e.hoverPoint&&i.onMouseOut(),s&&s.enabled?(this.animateBeforeDestroy(),c(k,b.duration)):k(),e.pointCount--},a.prototype.destroyElements=function(t){var i=this,o=i.getGraphicalProps(t);o.singular.forEach(function(e){i[e]=i[e].destroy()}),o.plural.forEach(function(e){i[e].forEach(function(s){s&&s.element&&s.destroy()}),delete i[e]})},a.prototype.firePointEvent=function(t,i,o){var e=this,s=this.series.options;(s.point.events[t]||e.options&&e.options.events&&e.options.events[t])&&e.importEvents(),t==="click"&&s.allowPointSelect&&(o=function(n){e.select&&e.select(null,n.ctrlKey||n.metaKey||n.shiftKey)}),y(e,t,i,o)},a.prototype.getClassName=function(){var t=this;return"highcharts-point"+(t.selected?" highcharts-point-select":"")+(t.negative?" highcharts-negative":"")+(t.isNull?" highcharts-null-point":"")+(t.colorIndex!==void 0?" highcharts-color-"+t.colorIndex:"")+(t.options.className?" "+t.options.className:"")+(t.zone&&t.zone.className?" "+t.zone.className.replace("highcharts-negative",""):"")},a.prototype.getGraphicalProps=function(t){var i,o,e=this,s=[],n={singular:[],plural:[]};for((t=t||{graphic:1,dataLabel:1}).graphic&&s.push("graphic","shadowGroup"),t.dataLabel&&s.push("dataLabel","dataLabelPath","dataLabelUpper","connector"),o=s.length;o--;)i=s[o],e[i]&&n.singular.push(i);return["graphic","dataLabel","connector"].forEach(function(l){var b=l+"s";t[l]&&e[b]&&n.plural.push(b)}),n},a.prototype.getLabelConfig=function(){return{x:this.category,y:this.y,color:this.color,colorIndex:this.colorIndex,key:this.name||this.category,series:this.series,point:this,percentage:this.percentage,total:this.total||this.stackTotal}},a.prototype.getNestedProperty=function(t){if(t)return t.indexOf("custom.")===0?h(t,this.options):this[t]},a.prototype.getZone=function(){var t,i=this.series,o=i.zones,e=i.zoneAxis||"y",s=0;for(t=o[s];this[e]>=t.value;)t=o[++s];return this.nonZonedColor||(this.nonZonedColor=this.color),t&&t.color&&!this.options.color?this.color=t.color:this.color=this.nonZonedColor,t},a.prototype.hasNewShapeType=function(){var t=this;return(t.graphic&&(t.graphic.symbolName||t.graphic.element.nodeName))!==this.shapeType},a.prototype.init=function(t,i,o){return this.series=t,this.applyOptions(i,o),this.id=E(this.id)?this.id:r(),this.resolveColor(),t.chart.pointCount++,y(this,"afterInit"),this},a.prototype.isValid=function(){return this.x!==null&&u(this.y)},a.prototype.optionsToObject=function(t){var i,o=this.series,e=o.options.keys,s=e||o.pointArrayMap||["y"],n=s.length,l={},b=0,k=0;if(u(t)||t===null)l[s[0]]=t;else if(f(t))for(!e&&t.length>n&&((i=typeof t[0])=="string"?l.name=t[0]:i==="number"&&(l.x=t[0]),b++);k<n;)e&&t[b]===void 0||(s[k].indexOf(".")>0?a.prototype.setNestedProperty(l,t[b],s[k]):l[s[k]]=t[b]),b++,k++;else typeof t=="object"&&(l=t,t.dataLabels&&(o._hasPointLabels=!0),t.marker&&(o._hasPointMarkers=!0));return l},a.prototype.pos=function(t,i){i===void 0&&(i=this.plotY);var o=this.plotX,e=this.series,s=e.chart,n=e.xAxis,l=e.yAxis,b=0,k=0;if(u(o)&&u(i))return t&&(b=n?n.pos:s.plotLeft,k=l?l.pos:s.plotTop),s.inverted&&n&&l?[l.len-i+k,n.len-o+b]:[o+b,i+k]},a.prototype.resolveColor=function(){var t,i,o,e=this.series,s=e.chart.options.chart,n=e.chart.styledMode,l=s.colorCount;delete this.nonZonedColor,e.options.colorByPoint?(n||(t=(i=e.options.colors||e.chart.options.colors)[e.colorCounter],l=i.length),o=e.colorCounter,e.colorCounter++,e.colorCounter===l&&(e.colorCounter=0)):(n||(t=e.color),o=e.colorIndex),this.colorIndex=x(this.options.colorIndex,o),this.color=x(this.options.color,t)},a.prototype.setNestedProperty=function(t,i,o){return o.split(".").reduce(function(e,s,n,l){var b=l.length-1===n;return e[s]=b?i:v(e[s],!0)?e[s]:{},e[s]},t),t},a.prototype.shouldDraw=function(){return!this.isNull},a.prototype.tooltipFormatter=function(t){var i=this.series,o=i.tooltipOptions,e=x(o.valueDecimals,""),s=o.valuePrefix||"",n=o.valueSuffix||"";return i.chart.styledMode&&(t=i.chart.tooltip.styledModeFormat(t)),(i.pointArrayMap||["y"]).forEach(function(l){l="{point."+l,(s||n)&&(t=t.replace(RegExp(l+"}","g"),s+l+"}"+n)),t=t.replace(RegExp(l+"}","g"),l+":,."+e+"f}")}),z(t,{point:this,series:this.series},i.chart)},a.prototype.update=function(t,i,o,e){var s,n=this,l=n.series,b=n.graphic,k=l.chart,D=l.options;function p(){n.applyOptions(t);var C=b&&n.hasMockGraphic,A=n.y===null?!C:C;b&&A&&(n.graphic=b.destroy(),delete n.hasMockGraphic),v(t,!0)&&(b&&b.element&&t&&t.marker&&t.marker.symbol!==void 0&&(n.graphic=b.destroy()),t&&t.dataLabels&&n.dataLabel&&(n.dataLabel=n.dataLabel.destroy()),n.connector&&(n.connector=n.connector.destroy())),s=n.index,l.updateParallelArrays(n,s),D.data[s]=v(D.data[s],!0)||v(t,!0)?n.options:x(t,D.data[s]),l.isDirty=l.isDirtyData=!0,!l.fixedBox&&l.hasCartesianSeries&&(k.isDirtyBox=!0),D.legendType==="point"&&(k.isDirtyLegend=!0),i&&k.redraw(o)}i=x(i,!0),e===!1?p():n.firePointEvent("update",{options:t},p)},a.prototype.remove=function(t,i){this.series.removePoint(this.series.data.indexOf(this),t,i)},a.prototype.select=function(t,i){var o=this,e=o.series,s=e.chart;t=x(t,!o.selected),this.selectedStaging=t,o.firePointEvent(t?"select":"unselect",{accumulate:i},function(){o.selected=o.options.selected=t,e.options.data[e.data.indexOf(o)]=o.options,o.setState(t&&"select"),i||s.getSelectedPoints().forEach(function(n){var l=n.series;n.selected&&n!==o&&(n.selected=n.options.selected=!1,l.options.data[l.data.indexOf(n)]=n.options,n.setState(s.hoverPoints&&l.options.inactiveOtherPoints?"inactive":""),n.firePointEvent("unselect"))})}),delete this.selectedStaging},a.prototype.onMouseOver=function(t){var i=this,o=i.series.chart,e=o.pointer;t=t?e.normalize(t):e.getChartCoordinatesFromPoint(i,o.inverted),e.runPointActions(t,i)},a.prototype.onMouseOut=function(){var t=this,i=t.series.chart;t.firePointEvent("mouseOut"),t.series.options.inactiveOtherPoints||(i.hoverPoints||[]).forEach(function(o){o.setState()}),i.hoverPoints=i.hoverPoint=null},a.prototype.importEvents=function(){if(!this.hasImportedEvents){var t=this,i=w(t.series.options.point,t.options).events;t.events=i,S(i,function(o,e){m(o)&&I(t,e,o)}),this.hasImportedEvents=!0}},a.prototype.setState=function(t,i){var o,e,s,n,l=this,b=l.series,k=l.state,D=b.options.states[t||"normal"]||{},p=U.plotOptions[b.type].marker&&b.options.marker,C=p&&p.enabled===!1,A=p&&p.states&&p.states[t||"normal"]||{},N=A.enabled===!1,_=l.marker||{},L=b.chart,O=p&&b.markerAttribs,j=b.halo,Y=b.stateMarkerGraphic;if(!((t=t||"")===l.state&&!i||l.selected&&t!=="select"||D.enabled===!1||t&&(N||C&&A.enabled===!1)||t&&_.states&&_.states[t]&&_.states[t].enabled===!1)){if(l.state=t,O&&(o=b.markerAttribs(l,t)),l.graphic&&!l.hasMockGraphic){if(k&&l.graphic.removeClass("highcharts-point-"+k),t&&l.graphic.addClass("highcharts-point-"+t),!L.styledMode){e=b.pointAttribs(l,t),s=x(L.options.chart.animation,D.animation);var X=e.opacity;b.options.inactiveOtherPoints&&u(X)&&((l.dataLabels||[]).forEach(function(J){J&&!J.hasClass("highcharts-data-label-hidden")&&J.animate({opacity:X},s)}),l.connector&&l.connector.animate({opacity:X},s)),l.graphic.animate(e,s)}o&&l.graphic.animate(o,x(L.options.chart.animation,A.animation,p.animation)),Y&&Y.hide()}else t&&A&&(n=_.symbol||b.symbol,Y&&Y.currentSymbol!==n&&(Y=Y.destroy()),o&&(Y?Y[i?"animate":"attr"]({x:o.x,y:o.y}):n&&(b.stateMarkerGraphic=Y=L.renderer.symbol(n,o.x,o.y,o.width,o.height).add(b.markerGroup),Y.currentSymbol=n)),!L.styledMode&&Y&&l.state!=="inactive"&&Y.attr(b.pointAttribs(l,t))),Y&&(Y[t&&l.isInside?"show":"hide"](),Y.element.point=l,Y.addClass(l.getClassName(),!0));var G=D.halo,q=l.graphic||Y,Q=q&&q.visibility||"inherit";G&&G.size&&q&&Q!=="hidden"&&!l.isCluster?(j||(b.halo=j=L.renderer.path().add(q.parentGroup)),j.show()[i?"animate":"attr"]({d:l.haloPath(G.size)}),j.attr({class:"highcharts-halo highcharts-color-"+x(l.colorIndex,b.colorIndex)+(l.className?" "+l.className:""),visibility:Q,zIndex:-1}),j.point=l,L.styledMode||j.attr(P({fill:l.color||b.color,"fill-opacity":G.opacity},W.filterUserAttributes(G.attributes||{})))):j&&j.point&&j.point.haloPath&&j.animate({d:j.point.haloPath(0)},null,j.hide),y(l,"afterSetState",{state:t})}},a.prototype.haloPath=function(t){var i=this.pos();return i?this.series.chart.renderer.symbols.circle(Math.floor(i[0])-t,i[1]-t,2*t,2*t):[]},a}()}),it(B,"Core/Pointer.js",[B["Core/Color/Color.js"],B["Core/Globals.js"],B["Core/Tooltip.js"],B["Core/Utilities.js"]],function(W,R,H,V){var $=W.parse,Z=R.charts,U=R.noop,z=V.addEvent,I=V.attr,E=V.css,M=V.defined,P=V.extend,y=V.find,h=V.fireEvent,f=V.isNumber,m=V.isObject,u=V.objectEach,v=V.offset,w=V.pick,S=V.splat;return function(){function x(c,g){this.lastValidTouch={},this.pinchDown=[],this.runChartClick=!1,this.eventsToUnbind=[],this.chart=c,this.hasDragged=!1,this.options=g,this.init(c,g)}return x.prototype.applyInactiveState=function(c){var g,r=[];(c||[]).forEach(function(a){g=a.series,r.push(g),g.linkedParent&&r.push(g.linkedParent),g.linkedSeries&&(r=r.concat(g.linkedSeries)),g.navigatorSeries&&r.push(g.navigatorSeries)}),this.chart.series.forEach(function(a){r.indexOf(a)===-1?a.setState("inactive",!0):a.options.inactiveOtherPoints&&a.setAllPointsToState("inactive")})},x.prototype.destroy=function(){var c=this;this.eventsToUnbind.forEach(function(g){return g()}),this.eventsToUnbind=[],R.chartCount||(x.unbindDocumentMouseUp&&(x.unbindDocumentMouseUp=x.unbindDocumentMouseUp()),x.unbindDocumentTouchEnd&&(x.unbindDocumentTouchEnd=x.unbindDocumentTouchEnd())),clearInterval(c.tooltipTimeout),u(c,function(g,r){c[r]=void 0})},x.prototype.getSelectionMarkerAttrs=function(c,g){var r=this,a={args:{chartX:c,chartY:g},attrs:{},shapeType:"rect"};return h(this,"getSelectionMarkerAttrs",a,function(t){var i,o=r,e=o.chart,s=o.mouseDownX,n=s===void 0?0:s,l=o.mouseDownY,b=l===void 0?0:l,k=o.zoomHor,D=o.zoomVert,p=t.attrs;p.x=e.plotLeft,p.y=e.plotTop,p.width=k?1:e.plotWidth,p.height=D?1:e.plotHeight,k&&(i=c-n,p.width=Math.abs(i),p.x=(i>0?0:i)+n),D&&(i=g-b,p.height=Math.abs(i),p.y=(i>0?0:i)+b)}),a},x.prototype.drag=function(c){var g,r=this.chart,a=r.options.chart,t=r.plotLeft,i=r.plotTop,o=r.plotWidth,e=r.plotHeight,s=this.mouseDownX||0,n=this.mouseDownY||0,l=m(a.panning)?a.panning&&a.panning.enabled:a.panning,b=a.panKey&&c[a.panKey+"Key"],k=c.chartX,D=c.chartY,p=this.selectionMarker;if((!p||!p.touch)&&(k<t?k=t:k>t+o&&(k=t+o),D<i?D=i:D>i+e&&(D=i+e),this.hasDragged=Math.sqrt(Math.pow(s-k,2)+Math.pow(n-D,2)),this.hasDragged>10)){g=r.isInsidePlot(s-t,n-i,{visiblePlotOnly:!0});var C=this.getSelectionMarkerAttrs(k,D),A=C.shapeType,N=C.attrs;(r.hasCartesianSeries||r.mapView)&&(this.zoomX||this.zoomY)&&g&&!b&&(p||(this.selectionMarker=p=r.renderer[A](),p.attr({class:"highcharts-selection-marker",zIndex:7}).add(),r.styledMode||p.attr({fill:a.selectionMarkerFill||$("#335cad").setOpacity(.25).get()}))),p&&p.attr(N),g&&!p&&l&&r.pan(c,a.panning)}},x.prototype.dragStart=function(c){var g=this.chart;g.mouseIsDown=c.type,g.cancelClick=!1,g.mouseDownX=this.mouseDownX=c.chartX,g.mouseDownY=this.mouseDownY=c.chartY},x.prototype.getSelectionBox=function(c){var g={args:{marker:c},result:{}};return h(this,"getSelectionBox",g,function(r){r.result={x:c.attr?+c.attr("x"):c.x,y:c.attr?+c.attr("y"):c.y,width:c.attr?c.attr("width"):c.width,height:c.attr?c.attr("height"):c.height}}),g.result},x.prototype.drop=function(c){var g=this,r=this.chart,a=this.hasPinched;if(this.selectionMarker){var t=this.getSelectionBox(this.selectionMarker),i=t.x,o=t.y,e=t.width,s=t.height,n={originalEvent:c,xAxis:[],yAxis:[],x:i,y:o,width:e,height:s},l=!!r.mapView;(this.hasDragged||a)&&(r.axes.forEach(function(b){if(b.zoomEnabled&&M(b.min)&&(a||g[{xAxis:"zoomX",yAxis:"zoomY"}[b.coll]])&&f(i)&&f(o)&&f(e)&&f(s)){var k=b.horiz,D=c.type==="touchend"?b.minPixelPadding:0,p=b.toValue((k?i:o)+D),C=b.toValue((k?i+e:o+s)-D);n[b.coll].push({axis:b,min:Math.min(p,C),max:Math.max(p,C)}),l=!0}}),l&&h(r,"selection",n,function(b){r.zoom(P(b,a?{animation:!1}:null))})),f(r.index)&&(this.selectionMarker=this.selectionMarker.destroy()),a&&this.scaleGroups()}r&&f(r.index)&&(E(r.container,{cursor:r._cursor}),r.cancelClick=this.hasDragged>10,r.mouseIsDown=this.hasDragged=this.hasPinched=!1,this.pinchDown=[])},x.prototype.findNearestKDPoint=function(c,g,r){var a;return c.forEach(function(t){var i,o,e,s,n,l=!(t.noSharedTooltip&&g)&&t.options.findNearestPointBy.indexOf("y")<0,b=t.searchPoint(r,l);m(b,!0)&&b.series&&(!m(a,!0)||(o=b,e=(i=a).distX-o.distX,s=i.dist-o.dist,n=(o.series.group&&o.series.group.zIndex)-(i.series.group&&i.series.group.zIndex),(e!==0&&g?e:s!==0?s:n!==0?n:i.series.index>o.series.index?-1:1)>0))&&(a=b)}),a},x.prototype.getChartCoordinatesFromPoint=function(c,g){var r=c.series,a=r.xAxis,t=r.yAxis,i=c.shapeArgs;if(a&&t){var o=w(c.clientX,c.plotX),e=c.plotY||0;return c.isNode&&i&&f(i.x)&&f(i.y)&&(o=i.x,e=i.y),g?{chartX:t.len+t.pos-e,chartY:a.len+a.pos-o}:{chartX:o+a.pos,chartY:e+t.pos}}if(i&&i.x&&i.y)return{chartX:i.x,chartY:i.y}},x.prototype.getChartPosition=function(){if(this.chartPosition)return this.chartPosition;var c=this.chart.container,g=v(c);this.chartPosition={left:g.left,top:g.top,scaleX:1,scaleY:1};var r=c.offsetWidth,a=c.offsetHeight;return r>2&&a>2&&(this.chartPosition.scaleX=g.width/r,this.chartPosition.scaleY=g.height/a),this.chartPosition},x.prototype.getCoordinates=function(c){var g={xAxis:[],yAxis:[]};return this.chart.axes.forEach(function(r){g[r.isXAxis?"xAxis":"yAxis"].push({axis:r,value:r.toValue(c[r.horiz?"chartX":"chartY"])})}),g},x.prototype.getHoverData=function(c,g,r,a,t,i){var o,e=[],s=!(!a||!c),n=function(D){return D.visible&&!(!t&&D.directTouch)&&w(D.options.enableMouseTracking,!0)},l=g,b={chartX:i?i.chartX:void 0,chartY:i?i.chartY:void 0,shared:t};h(this,"beforeGetHoverData",b),o=l&&!l.stickyTracking?[l]:r.filter(function(D){return D.stickyTracking&&(b.filter||n)(D)});var k=s||!i?c:this.findNearestKDPoint(o,t,i);return l=k&&k.series,k&&(t&&!l.noSharedTooltip?(o=r.filter(function(D){return b.filter?b.filter(D):n(D)&&!D.noSharedTooltip})).forEach(function(D){var p=y(D.points,function(C){return C.x===k.x&&!C.isNull});m(p)&&(D.boosted&&D.boost&&(p=D.boost.getPoint(p)),e.push(p))}):e.push(k)),h(this,"afterGetHoverData",b={hoverPoint:k}),{hoverPoint:b.hoverPoint,hoverSeries:l,hoverPoints:e}},x.prototype.getPointFromEvent=function(c){for(var g,r=c.target;r&&!g;)g=r.point,r=r.parentNode;return g},x.prototype.onTrackerMouseOut=function(c){var g=this.chart,r=c.relatedTarget||c.toElement,a=g.hoverSeries;this.isDirectTouch=!1,!a||!r||a.stickyTracking||this.inClass(r,"highcharts-tooltip")||this.inClass(r,"highcharts-series-"+a.index)&&this.inClass(r,"highcharts-tracker")||a.onMouseOut()},x.prototype.inClass=function(c,g){for(var r,a=c;a;){if(r=I(a,"class")){if(r.indexOf(g)!==-1)return!0;if(r.indexOf("highcharts-container")!==-1)return!1}a=a.parentElement}},x.prototype.init=function(c,g){this.options=g,this.chart=c,this.runChartClick=!!(g.chart.events&&g.chart.events.click),this.pinchDown=[],this.lastValidTouch={},H&&(c.tooltip=new H(c,g.tooltip)),this.setDOMEvents()},x.prototype.normalize=function(c,g){var r=c.touches,a=r?r.length?r.item(0):w(r.changedTouches,c.changedTouches)[0]:c;g||(g=this.getChartPosition());var t=a.pageX-g.left,i=a.pageY-g.top;return t/=g.scaleX,i/=g.scaleY,P(c,{chartX:Math.round(t),chartY:Math.round(i)})},x.prototype.onContainerClick=function(c){var g=this.chart,r=g.hoverPoint,a=this.normalize(c),t=g.plotLeft,i=g.plotTop;g.cancelClick||(r&&this.inClass(a.target,"highcharts-tracker")?(h(r.series,"click",P(a,{point:r})),g.hoverPoint&&r.firePointEvent("click",a)):(P(a,this.getCoordinates(a)),g.isInsidePlot(a.chartX-t,a.chartY-i,{visiblePlotOnly:!0})&&h(g,"click",a)))},x.prototype.onContainerMouseDown=function(c){var g=!(1&~(c.buttons||c.button));c=this.normalize(c),R.isFirefox&&c.button!==0&&this.onContainerMouseMove(c),(c.button===void 0||g)&&(this.zoomOption(c),g&&c.preventDefault&&c.preventDefault(),this.dragStart(c))},x.prototype.onContainerMouseLeave=function(c){var g=Z[w(x.hoverChartIndex,-1)],r=this.chart.tooltip;c=this.normalize(c),g&&(c.relatedTarget||c.toElement)&&(g.pointer.reset(),g.pointer.chartPosition=void 0),r&&!r.isHidden&&this.reset()},x.prototype.onContainerMouseEnter=function(c){delete this.chartPosition},x.prototype.onContainerMouseMove=function(c){var g=this.chart,r=g.tooltip,a=this.normalize(c);this.setHoverChartIndex(),a.preventDefault||(a.returnValue=!1),(g.mouseIsDown==="mousedown"||this.touchSelect(a))&&this.drag(a),g.openMenu||!this.inClass(a.target,"highcharts-tracker")&&!g.isInsidePlot(a.chartX-g.plotLeft,a.chartY-g.plotTop,{visiblePlotOnly:!0})||r&&r.shouldStickOnContact(a)||(this.inClass(a.target,"highcharts-no-tooltip")?this.reset(!1,0):this.runPointActions(a))},x.prototype.onDocumentTouchEnd=function(c){var g=Z[w(x.hoverChartIndex,-1)];g&&g.pointer.drop(c)},x.prototype.onContainerTouchMove=function(c){this.touchSelect(c)?this.onContainerMouseMove(c):this.touch(c)},x.prototype.onContainerTouchStart=function(c){this.touchSelect(c)?this.onContainerMouseDown(c):(this.zoomOption(c),this.touch(c,!0))},x.prototype.onDocumentMouseMove=function(c){var g=this.chart,r=g.tooltip,a=this.chartPosition,t=this.normalize(c,a);!a||g.isInsidePlot(t.chartX-g.plotLeft,t.chartY-g.plotTop,{visiblePlotOnly:!0})||r&&r.shouldStickOnContact(t)||this.inClass(t.target,"highcharts-tracker")||this.reset()},x.prototype.onDocumentMouseUp=function(c){var g=Z[w(x.hoverChartIndex,-1)];g&&g.pointer.drop(c)},x.prototype.pinch=function(c){var g=this,r=g.chart,a=g.pinchDown,t=c.touches||[],i=t.length,o=g.lastValidTouch,e=g.hasZoom,s={},n=i===1&&(g.inClass(c.target,"highcharts-tracker")&&r.runTrackerClick||g.runChartClick),l={},b=g.chart.tooltip,k=i===1&&w(b&&b.options.followTouchMove,!0),D=g.selectionMarker;i>1?g.initiated=!0:k&&(g.initiated=!1),e&&g.initiated&&!n&&c.cancelable!==!1&&c.preventDefault(),[].map.call(t,function(p){return g.normalize(p)}),c.type==="touchstart"?([].forEach.call(t,function(p,C){a[C]={chartX:p.chartX,chartY:p.chartY}}),o.x=[a[0].chartX,a[1]&&a[1].chartX],o.y=[a[0].chartY,a[1]&&a[1].chartY],r.axes.forEach(function(p){if(p.zoomEnabled){var C=r.bounds[p.horiz?"h":"v"],A=p.minPixelPadding,N=p.toPixels(Math.min(w(p.options.min,p.dataMin),p.dataMin)),_=p.toPixels(Math.max(w(p.options.max,p.dataMax),p.dataMax)),L=Math.min(N,_),O=Math.max(N,_);C.min=Math.min(p.pos,L-A),C.max=Math.max(p.pos+p.len,O+A)}}),g.res=!0):k?this.runPointActions(g.normalize(c)):a.length&&(h(r,"touchpan",{originalEvent:c},function(){D||(g.selectionMarker=D=P({destroy:U,touch:!0},r.plotBox)),g.pinchTranslate(a,t,s,D,l,o),g.hasPinched=e,g.scaleGroups(s,l)}),g.res&&(g.res=!1,this.reset(!1,0)))},x.prototype.pinchTranslate=function(c,g,r,a,t,i){this.zoomHor&&this.pinchTranslateDirection(!0,c,g,r,a,t,i),this.zoomVert&&this.pinchTranslateDirection(!1,c,g,r,a,t,i)},x.prototype.pinchTranslateDirection=function(c,g,r,a,t,i,o,e){var s,n,l,b,k=this.chart,D=c?"x":"y",p=c?"X":"Y",C="chart"+p,A=c?"width":"height",N=k["plot"+(c?"Left":"Top")],_=k.inverted,L=k.bounds[c?"h":"v"],O=g.length===1,j=g[0][C],Y=!O&&g[1][C],X=function(){typeof Q=="number"&&Math.abs(j-Y)>20&&(G=e||Math.abs(q-Q)/Math.abs(j-Y)),l=(N-q)/G+j,s=k["plot"+(c?"Width":"Height")]/G},G=e||1,q=r[0][C],Q=!O&&r[1][C];X(),(n=l)<L.min?(n=L.min,b=!0):n+s>L.max&&(n=L.max-s,b=!0),b?(q-=.8*(q-o[D][0]),typeof Q=="number"&&(Q-=.8*(Q-o[D][1])),X()):o[D]=[q,Q],_||(i[D]=l-N,i[A]=s);var J=_?c?"scaleY":"scaleX":"scale"+p,rt=_?1/G:G;t[A]=s,t[D]=n,a[J]=G,a["translate"+p]=rt*N+(q-rt*j)},x.prototype.reset=function(c,g){var r=this,a=r.chart,t=a.hoverSeries,i=a.hoverPoint,o=a.hoverPoints,e=a.tooltip,s=e&&e.shared?o:i;c&&s&&S(s).forEach(function(n){n.series.isCartesian&&n.plotX===void 0&&(c=!1)}),c?e&&s&&S(s).length&&(e.refresh(s),e.shared&&o?o.forEach(function(n){n.setState(n.state,!0),n.series.isCartesian&&(n.series.xAxis.crosshair&&n.series.xAxis.drawCrosshair(null,n),n.series.yAxis.crosshair&&n.series.yAxis.drawCrosshair(null,n))}):i&&(i.setState(i.state,!0),a.axes.forEach(function(n){n.crosshair&&i.series[n.coll]===n&&n.drawCrosshair(null,i)}))):(i&&i.onMouseOut(),o&&o.forEach(function(n){n.setState()}),t&&t.onMouseOut(),e&&e.hide(g),r.unDocMouseMove&&(r.unDocMouseMove=r.unDocMouseMove()),a.axes.forEach(function(n){n.hideCrosshair()}),r.hoverX=a.hoverPoints=a.hoverPoint=null)},x.prototype.runPointActions=function(c,g,r){var a=this,t=a.chart,i=t.series,o=t.tooltip&&t.tooltip.options.enabled?t.tooltip:void 0,e=!!o&&o.shared,s=g||t.hoverPoint,n=s&&s.series||t.hoverSeries,l=(!c||c.type!=="touchmove")&&(!!g||n&&n.directTouch&&a.isDirectTouch),b=this.getHoverData(s,n,i,l,e,c);s=b.hoverPoint,n=b.hoverSeries;var k=b.hoverPoints,D=n&&n.tooltipOptions.followPointer&&!n.tooltipOptions.split,p=e&&n&&!n.noSharedTooltip;if(s&&(r||s!==t.hoverPoint||o&&o.isHidden)){if((t.hoverPoints||[]).forEach(function(A){k.indexOf(A)===-1&&A.setState()}),t.hoverSeries!==n&&n.onMouseOver(),a.applyInactiveState(k),(k||[]).forEach(function(A){A.setState("hover")}),t.hoverPoint&&t.hoverPoint.firePointEvent("mouseOut"),!s.series)return;t.hoverPoints=k,t.hoverPoint=s,s.firePointEvent("mouseOver",void 0,function(){o&&s&&o.refresh(p?k:s,c)})}else if(D&&o&&!o.isHidden){var C=o.getAnchor([{}],c);t.isInsidePlot(C[0],C[1],{visiblePlotOnly:!0})&&o.updatePosition({plotX:C[0],plotY:C[1]})}a.unDocMouseMove||(a.unDocMouseMove=z(t.container.ownerDocument,"mousemove",function(A){var N=Z[x.hoverChartIndex];N&&N.pointer.onDocumentMouseMove(A)}),a.eventsToUnbind.push(a.unDocMouseMove)),t.axes.forEach(function(A){var N,_=w((A.crosshair||{}).snap,!0);_&&((N=t.hoverPoint)&&N.series[A.coll]===A||(N=y(k,function(L){return L.series&&L.series[A.coll]===A}))),N||!_?A.drawCrosshair(c,N):A.hideCrosshair()})},x.prototype.scaleGroups=function(c,g){var r=this.chart;r.series.forEach(function(a){var t=c||a.getPlotBox();a.group&&(a.xAxis&&a.xAxis.zoomEnabled||r.mapView)&&(a.group.attr(t),a.markerGroup&&(a.markerGroup.attr(t),a.markerGroup.clip(g?r.clipRect:null)),a.dataLabelsGroup&&a.dataLabelsGroup.attr(t))}),r.clipRect.attr(g||r.clipBox)},x.prototype.setDOMEvents=function(){var c=this,g=this.chart.container,r=g.ownerDocument;g.onmousedown=this.onContainerMouseDown.bind(this),g.onmousemove=this.onContainerMouseMove.bind(this),g.onclick=this.onContainerClick.bind(this),this.eventsToUnbind.push(z(g,"mouseenter",this.onContainerMouseEnter.bind(this))),this.eventsToUnbind.push(z(g,"mouseleave",this.onContainerMouseLeave.bind(this))),x.unbindDocumentMouseUp||(x.unbindDocumentMouseUp=z(r,"mouseup",this.onDocumentMouseUp.bind(this)));for(var a=this.chart.renderTo.parentElement;a&&a.tagName!=="BODY";)this.eventsToUnbind.push(z(a,"scroll",function(){delete c.chartPosition})),a=a.parentElement;R.hasTouch&&(this.eventsToUnbind.push(z(g,"touchstart",this.onContainerTouchStart.bind(this),{passive:!1})),this.eventsToUnbind.push(z(g,"touchmove",this.onContainerTouchMove.bind(this),{passive:!1})),x.unbindDocumentTouchEnd||(x.unbindDocumentTouchEnd=z(r,"touchend",this.onDocumentTouchEnd.bind(this),{passive:!1})))},x.prototype.setHoverChartIndex=function(){var c=this.chart,g=R.charts[w(x.hoverChartIndex,-1)];g&&g!==c&&g.pointer.onContainerMouseLeave({relatedTarget:c.container}),g&&g.mouseIsDown||(x.hoverChartIndex=c.index)},x.prototype.touch=function(c,g){var r,a,t=this.chart;this.setHoverChartIndex(),c.touches.length===1?(c=this.normalize(c),t.isInsidePlot(c.chartX-t.plotLeft,c.chartY-t.plotTop,{visiblePlotOnly:!0})&&!t.openMenu?(g&&this.runPointActions(c),c.type==="touchmove"&&(r=!!(a=this.pinchDown)[0]&&Math.sqrt(Math.pow(a[0].chartX-c.chartX,2)+Math.pow(a[0].chartY-c.chartY,2))>=4),w(r,!0)&&this.pinch(c)):g&&this.reset()):c.touches.length===2&&this.pinch(c)},x.prototype.touchSelect=function(c){return!!(this.chart.options.chart.zooming.singleTouch&&c.touches&&c.touches.length===1)},x.prototype.zoomOption=function(c){var g,r,a=this.chart,t=a.options.chart,i=a.inverted,o=t.zooming.type||"";/touch/.test(c.type)&&(o=w(t.zooming.pinchType,o)),this.zoomX=g=/x/.test(o),this.zoomY=r=/y/.test(o),this.zoomHor=g&&!i||r&&i,this.zoomVert=r&&!i||g&&i,this.hasZoom=g||r},x}()}),it(B,"Core/MSPointer.js",[B["Core/Globals.js"],B["Core/Pointer.js"],B["Core/Utilities.js"]],function(W,R,H){var V,$=this&&this.__extends||(V=function(w,S){return V=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(x,c){x.__proto__=c}||function(x,c){for(var g in c)c.hasOwnProperty(g)&&(x[g]=c[g])},V(w,S)},function(w,S){function x(){this.constructor=w}V(w,S),w.prototype=S===null?Object.create(S):(x.prototype=S.prototype,new x)}),Z=W.charts,U=W.doc,z=W.noop,I=W.win,E=H.addEvent,M=H.css,P=H.objectEach,y=H.pick,h=H.removeEvent,f={},m=!!I.PointerEvent;function u(w,S,x,c){var g,r=Z[R.hoverChartIndex||NaN];if((w.pointerType==="touch"||w.pointerType===w.MSPOINTER_TYPE_TOUCH)&&r){var a=r.pointer;c(w),a[S]({type:x,target:w.currentTarget,preventDefault:z,touches:(g=[],g.item=function(t){return this[t]},P(f,function(t){g.push({pageX:t.pageX,pageY:t.pageY,target:t.target})}),g)})}}var v=function(w){function S(){return w!==null&&w.apply(this,arguments)||this}return $(S,w),S.isRequired=function(){return!(W.hasTouch||!I.PointerEvent&&!I.MSPointerEvent)},S.prototype.batchMSEvents=function(x){x(this.chart.container,m?"pointerdown":"MSPointerDown",this.onContainerPointerDown),x(this.chart.container,m?"pointermove":"MSPointerMove",this.onContainerPointerMove),x(U,m?"pointerup":"MSPointerUp",this.onDocumentPointerUp)},S.prototype.destroy=function(){this.batchMSEvents(h),w.prototype.destroy.call(this)},S.prototype.init=function(x,c){w.prototype.init.call(this,x,c),this.hasZoom&&M(x.container,{"-ms-touch-action":"none","touch-action":"none"})},S.prototype.onContainerPointerDown=function(x){u(x,"onContainerTouchStart","touchstart",function(c){f[c.pointerId]={pageX:c.pageX,pageY:c.pageY,target:c.currentTarget}})},S.prototype.onContainerPointerMove=function(x){u(x,"onContainerTouchMove","touchmove",function(c){f[c.pointerId]={pageX:c.pageX,pageY:c.pageY},f[c.pointerId].target||(f[c.pointerId].target=c.currentTarget)})},S.prototype.onDocumentPointerUp=function(x){u(x,"onDocumentTouchEnd","touchend",function(c){delete f[c.pointerId]})},S.prototype.setDOMEvents=function(){var x=this.chart.tooltip;w.prototype.setDOMEvents.call(this),(this.hasZoom||y(x&&x.options.followTouchMove,!0))&&this.batchMSEvents(E)},S}(R);return v}),it(B,"Core/Legend/Legend.js",[B["Core/Animation/AnimationUtilities.js"],B["Core/FormatUtilities.js"],B["Core/Globals.js"],B["Core/Series/Point.js"],B["Core/Renderer/RendererUtilities.js"],B["Core/Utilities.js"]],function(W,R,H,V,$,Z){var U=W.animObject,z=W.setAnimation,I=R.format,E=H.marginNames,M=$.distribute,P=Z.addEvent,y=Z.createElement,h=Z.css,f=Z.defined,m=Z.discardElement,u=Z.find,v=Z.fireEvent,w=Z.isNumber,S=Z.merge,x=Z.pick,c=Z.relativeLength,g=Z.stableSort,r=Z.syncTimeout;return function(){function a(t,i){this.allItems=[],this.box=void 0,this.contentGroup=void 0,this.display=!1,this.group=void 0,this.initialItemY=0,this.itemHeight=0,this.itemMarginBottom=0,this.itemMarginTop=0,this.itemX=0,this.itemY=0,this.lastItemY=0,this.lastLineHeight=0,this.legendHeight=0,this.legendWidth=0,this.maxItemWidth=0,this.maxLegendWidth=0,this.offsetWidth=0,this.options=void 0,this.padding=0,this.pages=[],this.proximate=!1,this.scrollGroup=void 0,this.symbolHeight=0,this.symbolWidth=0,this.titleHeight=0,this.totalItemWidth=0,this.widthOption=0,this.chart=t,this.init(t,i)}return a.prototype.init=function(t,i){this.chart=t,this.setOptions(i),i.enabled&&(this.render(),P(this.chart,"endResize",function(){this.legend.positionCheckboxes()}),this.proximate?this.unchartrender=P(this.chart,"render",function(){this.legend.proximatePositions(),this.legend.positionItems()}):this.unchartrender&&this.unchartrender())},a.prototype.setOptions=function(t){var i=x(t.padding,8);this.options=t,this.chart.styledMode||(this.itemStyle=t.itemStyle,this.itemHiddenStyle=S(this.itemStyle,t.itemHiddenStyle)),this.itemMarginTop=t.itemMarginTop||0,this.itemMarginBottom=t.itemMarginBottom||0,this.padding=i,this.initialItemY=i-5,this.symbolWidth=x(t.symbolWidth,16),this.pages=[],this.proximate=t.layout==="proximate"&&!this.chart.inverted,this.baseline=void 0},a.prototype.update=function(t,i){var o=this.chart;this.setOptions(S(!0,this.options,t)),this.destroy(),o.isDirtyLegend=o.isDirtyBox=!0,x(i,!0)&&o.redraw(),v(this,"afterUpdate")},a.prototype.colorizeItem=function(t,i){var o=t.legendItem||{},e=o.group,s=o.label,n=o.line,l=o.symbol;if(e&&e[i?"removeClass":"addClass"]("highcharts-legend-item-hidden"),!this.chart.styledMode){var b=this.options,k=this.itemHiddenStyle.color,D=i?b.itemStyle.color:k,p=i&&t.color||k,C=t.options&&t.options.marker,A={fill:p};s&&s.css({fill:D,color:D}),n&&n.attr({stroke:p}),l&&(C&&l.isMarker&&(A=t.pointAttribs(),i||(A.stroke=A.fill=k)),l.attr(A))}v(this,"afterColorizeItem",{item:t,visible:i})},a.prototype.positionItems=function(){this.allItems.forEach(this.positionItem,this),this.chart.isResizing||this.positionCheckboxes()},a.prototype.positionItem=function(t){var i=this,o=t.legendItem||{},e=o.group,s=o.x,n=s===void 0?0:s,l=o.y,b=l===void 0?0:l,k=this.options,D=k.symbolPadding,p=!k.rtl,C=t.checkbox;if(e&&e.element){var A={translateX:p?n:this.legendWidth-n-2*D-4,translateY:b};e[f(e.translateY)?"animate":"attr"](A,void 0,function(){v(i,"afterPositionItem",{item:t})})}C&&(C.x=n,C.y=b)},a.prototype.destroyItem=function(t){for(var i=t.checkbox,o=t.legendItem||{},e=0,s=["group","label","line","symbol"];e<s.length;e++){var n=s[e];o[n]&&(o[n]=o[n].destroy())}i&&m(i),t.legendItem=void 0},a.prototype.destroy=function(){for(var t=this,i=0,o=this.getAllItems();i<o.length;i++){var e=o[i];this.destroyItem(e)}for(var s=0,n=["clipRect","up","down","pager","nav","box","title","group"];s<n.length;s++){var l=n[s];t[l]&&(t[l]=t[l].destroy())}this.display=null},a.prototype.positionCheckboxes=function(){var t,i=this.group&&this.group.alignAttr,o=this.clipHeight||this.legendHeight,e=this.titleHeight;i&&(t=i.translateY,this.allItems.forEach(function(s){var n,l=s.checkbox;l&&(n=t+e+l.y+(this.scrollOffset||0)+3,h(l,{left:i.translateX+s.checkboxOffset+l.x-20+"px",top:n+"px",display:this.proximate||n>t-6&&n<t+o-6?"":"none"}))},this))},a.prototype.renderTitle=function(){var t,i=this.options,o=this.padding,e=i.title,s=0;e.text&&(this.title||(this.title=this.chart.renderer.label(e.text,o-3,o-4,void 0,void 0,void 0,i.useHTML,void 0,"legend-title").attr({zIndex:1}),this.chart.styledMode||this.title.css(e.style),this.title.add(this.group)),e.width||this.title.css({width:this.maxLegendWidth+"px"}),s=(t=this.title.getBBox()).height,this.offsetWidth=t.width,this.contentGroup.attr({translateY:s})),this.titleHeight=s},a.prototype.setText=function(t){var i=this.options;t.legendItem.label.attr({text:i.labelFormat?I(i.labelFormat,t,this.chart):i.labelFormatter.call(t)})},a.prototype.renderItem=function(t){var i=this,o=t.legendItem=t.legendItem||{},e=i.chart,s=e.renderer,n=i.options,l=n.layout==="horizontal",b=i.symbolWidth,k=n.symbolPadding||0,D=i.itemStyle,p=i.itemHiddenStyle,C=l?x(n.itemDistance,20):0,A=!n.rtl,N=!t.series,_=!N&&t.series.drawLegendSymbol?t.series:t,L=_.options,O=i.createCheckboxForItem&&L&&L.showCheckbox,j=n.useHTML,Y=t.options.className,X=o.label,G=b+k+C+(O?20:0);X||(o.group=s.g("legend-item").addClass("highcharts-"+_.type+"-series highcharts-color-"+t.colorIndex+(Y?" "+Y:"")+(N?" highcharts-series-"+t.index:"")).attr({zIndex:1}).add(i.scrollGroup),o.label=X=s.text("",A?b+k:-k,i.baseline||0,j),e.styledMode||X.css(S(t.visible?D:p)),X.attr({align:A?"left":"right",zIndex:2}).add(o.group),i.baseline||(i.fontMetrics=s.fontMetrics(e.styledMode?12:D.fontSize,X),i.baseline=i.fontMetrics.f+3+i.itemMarginTop,X.attr("y",i.baseline),i.symbolHeight=n.symbolHeight||i.fontMetrics.f,n.squareSymbol&&(i.symbolWidth=x(n.symbolWidth,Math.max(i.symbolHeight,16)),G=i.symbolWidth+k+C+(O?20:0),A&&X.attr("x",i.symbolWidth+k))),_.drawLegendSymbol(i,t),i.setItemEvents&&i.setItemEvents(t,X,j)),O&&!t.checkbox&&i.createCheckboxForItem&&i.createCheckboxForItem(t),i.colorizeItem(t,t.visible),!e.styledMode&&D.width||X.css({width:(n.itemWidth||i.widthOption||e.spacingBox.width)-G+"px"}),i.setText(t);var q=X.getBBox(),Q=i.fontMetrics&&i.fontMetrics.h||0;t.itemWidth=t.checkboxOffset=n.itemWidth||o.labelWidth||q.width+G,i.maxItemWidth=Math.max(i.maxItemWidth,t.itemWidth),i.totalItemWidth+=t.itemWidth,i.itemHeight=t.itemHeight=Math.round(o.labelHeight||(q.height>1.5*Q?q.height:Q))},a.prototype.layoutItem=function(t){var i=this.options,o=this.padding,e=i.layout==="horizontal",s=t.itemHeight,n=this.itemMarginBottom,l=this.itemMarginTop,b=e?x(i.itemDistance,20):0,k=this.maxLegendWidth,D=i.alignColumns&&this.totalItemWidth>k?this.maxItemWidth:t.itemWidth,p=t.legendItem||{};e&&this.itemX-o+D>k&&(this.itemX=o,this.lastLineHeight&&(this.itemY+=l+this.lastLineHeight+n),this.lastLineHeight=0),this.lastItemY=l+this.itemY+n,this.lastLineHeight=Math.max(s,this.lastLineHeight),p.x=this.itemX,p.y=this.itemY,e?this.itemX+=D:(this.itemY+=l+s+n,this.lastLineHeight=s),this.offsetWidth=this.widthOption||Math.max((e?this.itemX-o-(t.checkbox?0:b):D)+o,this.offsetWidth)},a.prototype.getAllItems=function(){var t=[];return this.chart.series.forEach(function(i){var o=i&&i.options;i&&x(o.showInLegend,!f(o.linkedTo)&&void 0,!0)&&(t=t.concat((i.legendItem||{}).labels||(o.legendType==="point"?i.data:i)))}),v(this,"afterGetAllItems",{allItems:t}),t},a.prototype.getAlignment=function(){var t=this.options;return this.proximate?t.align.charAt(0)+"tv":t.floating?"":t.align.charAt(0)+t.verticalAlign.charAt(0)+t.layout.charAt(0)},a.prototype.adjustMargins=function(t,i){var o=this.chart,e=this.options,s=this.getAlignment();s&&[/(lth|ct|rth)/,/(rtv|rm|rbv)/,/(rbh|cb|lbh)/,/(lbv|lm|ltv)/].forEach(function(n,l){n.test(s)&&!f(t[l])&&(o[E[l]]=Math.max(o[E[l]],o.legend[(l+1)%2?"legendHeight":"legendWidth"]+[1,-1,-1,1][l]*e[l%2?"x":"y"]+x(e.margin,12)+i[l]+(o.titleOffset[l]||0)))})},a.prototype.proximatePositions=function(){var t,i=this.chart,o=[],e=this.options.align==="left";this.allItems.forEach(function(b){var k,D,p,C,A=e;b.yAxis&&(b.xAxis.options.reversed&&(A=!A),b.points&&(k=u(A?b.points:b.points.slice(0).reverse(),function(N){return w(N.plotY)})),D=this.itemMarginTop+b.legendItem.label.getBBox().height+this.itemMarginBottom,C=b.yAxis.top-i.plotTop,b.visible?(p=k?k.plotY:b.yAxis.height,p+=C-.3*D):p=C+b.yAxis.height,o.push({target:p,size:D,item:b}))},this);for(var s=0,n=M(o,i.plotHeight);s<n.length;s++){var l=n[s];t=l.item.legendItem||{},w(l.pos)&&(t.y=i.plotTop-i.spacing[0]+l.pos)}},a.prototype.render=function(){var t,i,o,e,s=this,n=s.chart,l=n.renderer,b=s.options,k=s.padding,D=s.getAllItems(),p=s.group,C=s.box;s.itemX=k,s.itemY=s.initialItemY,s.offsetWidth=0,s.lastItemY=0,s.widthOption=c(b.width,n.spacingBox.width-k),e=n.spacingBox.width-2*k-b.x,["rm","lm"].indexOf(s.getAlignment().substring(0,2))>-1&&(e/=2),s.maxLegendWidth=s.widthOption||e,p||(s.group=p=l.g("legend").addClass(b.className||"").attr({zIndex:7}).add(),s.contentGroup=l.g().attr({zIndex:1}).add(p),s.scrollGroup=l.g().add(s.contentGroup)),s.renderTitle(),g(D,function(A,N){return(A.options&&A.options.legendIndex||0)-(N.options&&N.options.legendIndex||0)}),b.reversed&&D.reverse(),s.allItems=D,s.display=t=!!D.length,s.lastLineHeight=0,s.maxItemWidth=0,s.totalItemWidth=0,s.itemHeight=0,D.forEach(s.renderItem,s),D.forEach(s.layoutItem,s),i=(s.widthOption||s.offsetWidth)+k,o=s.lastItemY+s.lastLineHeight+s.titleHeight,o=s.handleOverflow(o),o+=k,C||(s.box=C=l.rect().addClass("highcharts-legend-box").attr({r:b.borderRadius}).add(p)),n.styledMode||C.attr({stroke:b.borderColor,"stroke-width":b.borderWidth||0,fill:b.backgroundColor||"none"}).shadow(b.shadow),i>0&&o>0&&C[C.placed?"animate":"attr"](C.crisp.call({},{x:0,y:0,width:i,height:o},C.strokeWidth())),p[t?"show":"hide"](),n.styledMode&&p.getStyle("display")==="none"&&(i=o=0),s.legendWidth=i,s.legendHeight=o,t&&s.align(),this.proximate||this.positionItems(),v(this,"afterRender")},a.prototype.align=function(t){t===void 0&&(t=this.chart.spacingBox);var i=this.chart,o=this.options,e=t.y;/(lth|ct|rth)/.test(this.getAlignment())&&i.titleOffset[0]>0?e+=i.titleOffset[0]:/(lbh|cb|rbh)/.test(this.getAlignment())&&i.titleOffset[2]>0&&(e-=i.titleOffset[2]),e!==t.y&&(t=S(t,{y:e})),i.hasRendered||(this.group.placed=!1),this.group.align(S(o,{width:this.legendWidth,height:this.legendHeight,verticalAlign:this.proximate?"top":o.verticalAlign}),!0,t)},a.prototype.handleOverflow=function(t){var i,o,e,s=this,n=this.chart,l=n.renderer,b=this.options,k=b.y,D=b.verticalAlign==="top",p=this.padding,C=b.maxHeight,A=b.navigation,N=x(A.animation,!0),_=A.arrowSize||12,L=this.pages,O=this.allItems,j=function(Q){typeof Q=="number"?q.attr({height:Q}):q&&(s.clipRect=q.destroy(),s.contentGroup.clip()),s.contentGroup.div&&(s.contentGroup.div.style.clip=Q?"rect("+p+"px,9999px,"+(p+Q)+"px,0)":"auto")},Y=function(Q){return s[Q]=l.circle(0,0,1.3*_).translate(_/2,_/2).add(G),n.styledMode||s[Q].attr("fill","rgba(0,0,0,0.0001)"),s[Q]},X=n.spacingBox.height+(D?-k:k)-p,G=this.nav,q=this.clipRect;return b.layout!=="horizontal"||b.verticalAlign==="middle"||b.floating||(X/=2),C&&(X=Math.min(X,C)),L.length=0,t&&X>0&&t>X&&A.enabled!==!1?(this.clipHeight=i=Math.max(X-20-this.titleHeight-p,0),this.currentPage=x(this.currentPage,1),this.fullHeight=t,O.forEach(function(Q,J){var rt=(e=Q.legendItem||{}).y||0,lt=Math.round(e.label.getBBox().height),gt=L.length;(!gt||rt-L[gt-1]>i&&(o||rt)!==L[gt-1])&&(L.push(o||rt),gt++),e.pageIx=gt-1,o&&((O[J-1].legendItem||{}).pageIx=gt-1),J===O.length-1&&rt+lt-L[gt-1]>i&&lt<=i&&(L.push(rt),e.pageIx=gt),rt!==o&&(o=rt)}),q||(q=s.clipRect=l.clipRect(0,p,9999,0),s.contentGroup.clip(q)),j(i),G||(this.nav=G=l.g().attr({zIndex:1}).add(this.group),this.up=l.symbol("triangle",0,0,_,_).add(G),Y("upTracker").on("click",function(){s.scroll(-1,N)}),this.pager=l.text("",15,10).addClass("highcharts-legend-navigation"),!n.styledMode&&A.style&&this.pager.css(A.style),this.pager.add(G),this.down=l.symbol("triangle-down",0,0,_,_).add(G),Y("downTracker").on("click",function(){s.scroll(1,N)})),s.scroll(0),t=X):G&&(j(),this.nav=G.destroy(),this.scrollGroup.attr({translateY:1}),this.clipHeight=0),t},a.prototype.scroll=function(t,i){var o=this,e=this.chart,s=this.pages,n=s.length,l=this.clipHeight,b=this.options.navigation,k=this.pager,D=this.padding,p=this.currentPage+t;if(p>n&&(p=n),p>0){i!==void 0&&z(i,e),this.nav.attr({translateX:D,translateY:l+this.padding+7+this.titleHeight,visibility:"inherit"}),[this.up,this.upTracker].forEach(function(A){A.attr({class:p===1?"highcharts-legend-nav-inactive":"highcharts-legend-nav-active"})}),k.attr({text:p+"/"+n}),[this.down,this.downTracker].forEach(function(A){A.attr({x:18+this.pager.getBBox().width,class:p===n?"highcharts-legend-nav-inactive":"highcharts-legend-nav-active"})},this),e.styledMode||(this.up.attr({fill:p===1?b.inactiveColor:b.activeColor}),this.upTracker.css({cursor:p===1?"default":"pointer"}),this.down.attr({fill:p===n?b.inactiveColor:b.activeColor}),this.downTracker.css({cursor:p===n?"default":"pointer"})),this.scrollOffset=-s[p-1]+this.initialItemY,this.scrollGroup.animate({translateY:this.scrollOffset}),this.currentPage=p,this.positionCheckboxes();var C=U(x(i,e.renderer.globalAnimation,!0));r(function(){v(o,"afterScroll",{currentPage:p})},C.duration)}},a.prototype.setItemEvents=function(t,i,o){for(var e=this,s=t.legendItem||{},n=e.chart.renderer.boxWrapper,l=t instanceof V,b="highcharts-legend-"+(l?"point":"series")+"-active",k=e.chart.styledMode,D=o?[i,s.symbol]:[s.group],p=function(_){e.allItems.forEach(function(L){t!==L&&[L].concat(L.linkedSeries||[]).forEach(function(O){O.setState(_,!l)})})},C=0,A=D;C<A.length;C++){var N=A[C];N&&N.on("mouseover",function(){t.visible&&p("inactive"),t.setState("hover"),t.visible&&n.addClass(b),k||i.css(e.options.itemHoverStyle)}).on("mouseout",function(){e.chart.styledMode||i.css(S(t.visible?e.itemStyle:e.itemHiddenStyle)),p(""),n.removeClass(b),t.setState()}).on("click",function(_){var L="legendItemClick",O=function(){t.setVisible&&t.setVisible(),p(t.visible?"inactive":"")};n.removeClass(b),_={browserEvent:_},t.firePointEvent?t.firePointEvent(L,_,O):v(t,L,_,O)})}},a.prototype.createCheckboxForItem=function(t){t.checkbox=y("input",{type:"checkbox",className:"highcharts-legend-checkbox",checked:t.selected,defaultChecked:t.selected},this.options.itemCheckboxStyle,this.chart.container),P(t.checkbox,"click",function(i){var o=i.target;v(t.series||t,"checkboxClick",{checked:o.checked,item:t},function(){t.select()})})},a}()}),it(B,"Core/Series/SeriesRegistry.js",[B["Core/Globals.js"],B["Core/Defaults.js"],B["Core/Series/Point.js"],B["Core/Utilities.js"]],function(W,R,H,V){var $,Z=R.defaultOptions,U=V.extendClass,z=V.merge;return function(I){function E(M,P){var y=Z.plotOptions||{},h=P.defaultOptions,f=P.prototype;f.type=M,f.pointClass||(f.pointClass=H),h&&(y[M]=h),I.seriesTypes[M]=P}I.seriesTypes=W.seriesTypes,I.registerSeriesType=E,I.seriesType=function(M,P,y,h,f){var m=Z.plotOptions||{};return P=P||"",m[M]=z(m[P],y),E(M,U(I.seriesTypes[P]||function(){},h)),I.seriesTypes[M].prototype.type=M,f&&(I.seriesTypes[M].prototype.pointClass=U(H,f)),I.seriesTypes[M]}}($||($={})),$}),it(B,"Core/Chart/Chart.js",[B["Core/Animation/AnimationUtilities.js"],B["Core/Axis/Axis.js"],B["Core/Defaults.js"],B["Core/FormatUtilities.js"],B["Core/Foundation.js"],B["Core/Globals.js"],B["Core/Legend/Legend.js"],B["Core/MSPointer.js"],B["Core/Pointer.js"],B["Core/Renderer/RendererRegistry.js"],B["Core/Series/SeriesRegistry.js"],B["Core/Renderer/SVG/SVGRenderer.js"],B["Core/Time.js"],B["Core/Utilities.js"],B["Core/Renderer/HTML/AST.js"]],function(W,R,H,V,$,Z,U,z,I,E,M,P,y,h,f){var m=W.animate,u=W.animObject,v=W.setAnimation,w=H.defaultOptions,S=H.defaultTime,x=V.numberFormat,c=$.registerEventOptions,g=Z.charts,r=Z.doc,a=Z.marginNames,t=Z.svg,i=Z.win,o=M.seriesTypes,e=h.addEvent,s=h.attr,n=h.cleanRecursively,l=h.createElement,b=h.css,k=h.defined,D=h.discardElement,p=h.erase,C=h.error,A=h.extend,N=h.find,_=h.fireEvent,L=h.getStyle,O=h.isArray,j=h.isNumber,Y=h.isObject,X=h.isString,G=h.merge,q=h.objectEach,Q=h.pick,J=h.pInt,rt=h.relativeLength,lt=h.removeEvent,gt=h.splat,mt=h.syncTimeout,bt=h.uniqueKey,yt=function(){function ct(et,at,dt){this.axes=void 0,this.axisOffset=void 0,this.bounds=void 0,this.chartHeight=void 0,this.chartWidth=void 0,this.clipBox=void 0,this.colorCounter=void 0,this.container=void 0,this.eventOptions=void 0,this.index=void 0,this.isResizing=void 0,this.labelCollectors=void 0,this.legend=void 0,this.margin=void 0,this.numberFormatter=void 0,this.options=void 0,this.plotBox=void 0,this.plotHeight=void 0,this.plotLeft=void 0,this.plotTop=void 0,this.plotWidth=void 0,this.pointCount=void 0,this.pointer=void 0,this.renderer=void 0,this.renderTo=void 0,this.series=void 0,this.sharedClips={},this.spacing=void 0,this.spacingBox=void 0,this.symbolCounter=void 0,this.time=void 0,this.titleOffset=void 0,this.userOptions=void 0,this.xAxis=void 0,this.yAxis=void 0,this.getArgs(et,at,dt)}return ct.chart=function(et,at,dt){return new ct(et,at,dt)},ct.prototype.getArgs=function(et,at,dt){X(et)||et.nodeName?(this.renderTo=et,this.init(at,dt)):this.init(et,at)},ct.prototype.init=function(et,at){var dt=et.plotOptions||{};_(this,"init",{args:arguments},function(){var vt=G(w,et),Ct=vt.chart;q(vt.plotOptions,function(Mt,St){Y(Mt)&&(Mt.tooltip=dt[St]&&G(dt[St].tooltip)||void 0)}),vt.tooltip.userOptions=et.chart&&et.chart.forExport&&et.tooltip.userOptions||et.tooltip,this.userOptions=et,this.margin=[],this.spacing=[],this.bounds={h:{},v:{}},this.labelCollectors=[],this.callback=at,this.isResizing=0;var xt=Ct.zooming=Ct.zooming||{};et.chart&&!et.chart.zooming&&(xt.resetButton=Ct.resetZoomButton),xt.key=Q(xt.key,Ct.zoomKey),xt.pinchType=Q(xt.pinchType,Ct.pinchType),xt.singleTouch=Q(xt.singleTouch,Ct.zoomBySingleTouch),xt.type=Q(xt.type,Ct.zoomType),this.options=vt,this.axes=[],this.series=[],this.time=et.time&&Object.keys(et.time).length?new y(et.time):Z.time,this.numberFormatter=Ct.numberFormatter||x,this.styledMode=Ct.styledMode,this.hasCartesianSeries=Ct.showAxes;var wt=this;wt.index=g.length,g.push(wt),Z.chartCount++,c(this,Ct),wt.xAxis=[],wt.yAxis=[],wt.pointCount=wt.colorCounter=wt.symbolCounter=0,_(wt,"afterInit"),wt.firstRender()})},ct.prototype.initSeries=function(et){var at=this,dt=at.options.chart,vt=et.type||dt.type||dt.defaultSeriesType,Ct=o[vt];Ct||C(17,!0,at,{missingModuleFor:vt});var xt=new Ct;return typeof xt.init=="function"&&xt.init(at,et),xt},ct.prototype.setSeriesData=function(){this.getSeriesOrderByLinks().forEach(function(et){et.points||et.data||!et.enabledDataSorting||et.setData(et.options.data,!1)})},ct.prototype.getSeriesOrderByLinks=function(){return this.series.concat().sort(function(et,at){return et.linkedSeries.length||at.linkedSeries.length?at.linkedSeries.length-et.linkedSeries.length:0})},ct.prototype.orderSeries=function(et){for(var at=this.series,dt=et||0,vt=at.length;dt<vt;++dt)at[dt]&&(at[dt].index=dt,at[dt].name=at[dt].getName())},ct.prototype.isInsidePlot=function(et,at,dt){var vt;dt===void 0&&(dt={});var Ct=this,xt=Ct.inverted,wt=Ct.plotBox,Mt=Ct.plotLeft,St=Ct.plotTop,Tt=Ct.scrollablePlotBox,Lt=0,Pt=0;dt.visiblePlotOnly&&this.scrollingContainer&&(Lt=(vt=this.scrollingContainer).scrollLeft,Pt=vt.scrollTop);var Dt=dt.series,jt=dt.visiblePlotOnly&&Tt||wt,Ot=dt.inverted?at:et,It=dt.inverted?et:at,Bt={x:Ot,y:It,isInsidePlot:!0,options:dt};if(!dt.ignoreX){var Zt=Dt&&(xt&&!this.polar?Dt.yAxis:Dt.xAxis)||{pos:Mt,len:1/0},zt=dt.paneCoordinates?Zt.pos+Ot:Mt+Ot;zt>=Math.max(Lt+Mt,Zt.pos)&&zt<=Math.min(Lt+Mt+jt.width,Zt.pos+Zt.len)||(Bt.isInsidePlot=!1)}if(!dt.ignoreY&&Bt.isInsidePlot){var Ht=dt.axis&&!dt.axis.isXAxis&&dt.axis||Dt&&(xt?Dt.xAxis:Dt.yAxis)||{pos:St,len:1/0},Kt=dt.paneCoordinates?Ht.pos+It:St+It;Kt>=Math.max(Pt+St,Ht.pos)&&Kt<=Math.min(Pt+St+jt.height,Ht.pos+Ht.len)||(Bt.isInsidePlot=!1)}return _(this,"afterIsInsidePlot",Bt),Bt.isInsidePlot},ct.prototype.redraw=function(et){_(this,"beforeRedraw");var at,dt,vt,Ct,xt=this,wt=xt.hasCartesianSeries?xt.axes:xt.colorAxis||[],Mt=xt.series,St=xt.pointer,Tt=xt.legend,Lt=xt.userOptions.legend,Pt=xt.renderer,Dt=Pt.isHidden(),jt=[],Ot=xt.isDirtyBox,It=xt.isDirtyLegend;for(xt.setResponsive&&xt.setResponsive(!1),v(!!xt.hasRendered&&et,xt),Dt&&xt.temporaryDisplay(),xt.layOutTitles(),vt=Mt.length;vt--;)if(((Ct=Mt[vt]).options.stacking||Ct.options.centerInCategory)&&(dt=!0,Ct.isDirty)){at=!0;break}if(at)for(vt=Mt.length;vt--;)(Ct=Mt[vt]).options.stacking&&(Ct.isDirty=!0);Mt.forEach(function(Bt){Bt.isDirty&&(Bt.options.legendType==="point"?(typeof Bt.updateTotals=="function"&&Bt.updateTotals(),It=!0):Lt&&(Lt.labelFormatter||Lt.labelFormat)&&(It=!0)),Bt.isDirtyData&&_(Bt,"updatedData")}),It&&Tt&&Tt.options.enabled&&(Tt.render(),xt.isDirtyLegend=!1),dt&&xt.getStacks(),wt.forEach(function(Bt){Bt.updateNames(),Bt.setScale()}),xt.getMargins(),wt.forEach(function(Bt){Bt.isDirty&&(Ot=!0)}),wt.forEach(function(Bt){var Zt=Bt.min+","+Bt.max;Bt.extKey!==Zt&&(Bt.extKey=Zt,jt.push(function(){_(Bt,"afterSetExtremes",A(Bt.eventArgs,Bt.getExtremes())),delete Bt.eventArgs})),(Ot||dt)&&Bt.redraw()}),Ot&&xt.drawChartBox(),_(xt,"predraw"),Mt.forEach(function(Bt){(Ot||Bt.isDirty)&&Bt.visible&&Bt.redraw(),Bt.isDirtyData=!1}),St&&St.reset(!0),Pt.draw(),_(xt,"redraw"),_(xt,"render"),Dt&&xt.temporaryDisplay(!0),jt.forEach(function(Bt){Bt.call()})},ct.prototype.get=function(et){var at=this.series;function dt(xt){return xt.id===et||xt.options&&xt.options.id===et}for(var vt=N(this.axes,dt)||N(this.series,dt),Ct=0;!vt&&Ct<at.length;Ct++)vt=N(at[Ct].points||[],dt);return vt},ct.prototype.getAxes=function(){var et=this,at=this.options,dt=at.xAxis=gt(at.xAxis||{}),vt=at.yAxis=gt(at.yAxis||{});_(this,"getAxes"),dt.forEach(function(Ct,xt){Ct.index=xt,Ct.isX=!0}),vt.forEach(function(Ct,xt){Ct.index=xt}),dt.concat(vt).forEach(function(Ct){new R(et,Ct)}),_(this,"afterGetAxes")},ct.prototype.getSelectedPoints=function(){return this.series.reduce(function(et,at){return at.getPointsCollection().forEach(function(dt){Q(dt.selectedStaging,dt.selected)&&et.push(dt)}),et},[])},ct.prototype.getSelectedSeries=function(){return this.series.filter(function(et){return et.selected})},ct.prototype.setTitle=function(et,at,dt){this.applyDescription("title",et),this.applyDescription("subtitle",at),this.applyDescription("caption",void 0),this.layOutTitles(dt)},ct.prototype.applyDescription=function(et,at){var dt=this,vt=et==="title"?{color:"#333333",fontSize:this.options.isStock?"16px":"18px"}:{color:"#666666"},Ct=this.options[et]=G(!this.styledMode&&{style:vt},this.options[et],at),xt=this[et];xt&&at&&(this[et]=xt=xt.destroy()),Ct&&!xt&&((xt=this.renderer.text(Ct.text,0,0,Ct.useHTML).attr({align:Ct.align,class:"highcharts-"+et,zIndex:Ct.zIndex||4}).add()).update=function(wt){dt[{title:"setTitle",subtitle:"setSubtitle",caption:"setCaption"}[et]](wt)},this.styledMode||xt.css(Ct.style),this[et]=xt)},ct.prototype.layOutTitles=function(et){var at=[0,0,0],dt=this.renderer,vt=this.spacingBox;["title","subtitle","caption"].forEach(function(xt){var wt,Mt,St=this[xt],Tt=this.options[xt],Lt=Tt.verticalAlign||"top",Pt=xt==="title"?Lt==="top"?-3:0:Lt==="top"?at[0]+2:0;St&&(this.styledMode||(wt=Tt.style&&Tt.style.fontSize),wt=dt.fontMetrics(wt,St).b,St.css({width:(Tt.width||vt.width+(Tt.widthAdjust||0))+"px"}),Mt=Math.round(St.getBBox(Tt.useHTML).height),St.align(A({y:Lt==="bottom"?wt:Pt+wt,height:Mt},Tt),!1,"spacingBox"),Tt.floating||(Lt==="top"?at[0]=Math.ceil(at[0]+Mt):Lt==="bottom"&&(at[2]=Math.ceil(at[2]+Mt))))},this),at[0]&&(this.options.title.verticalAlign||"top")==="top"&&(at[0]+=this.options.title.margin),at[2]&&this.options.caption.verticalAlign==="bottom"&&(at[2]+=this.options.caption.margin);var Ct=!this.titleOffset||this.titleOffset.join(",")!==at.join(",");this.titleOffset=at,_(this,"afterLayOutTitles"),!this.isDirtyBox&&Ct&&(this.isDirtyBox=this.isDirtyLegend=Ct,this.hasRendered&&Q(et,!0)&&this.isDirtyBox&&this.redraw())},ct.prototype.getChartSize=function(){var et=this,at=et.options.chart,dt=at.width,vt=at.height,Ct=et.renderTo;k(dt)||(et.containerWidth=L(Ct,"width")),k(vt)||(et.containerHeight=L(Ct,"height")),et.chartWidth=Math.max(0,dt||et.containerWidth||600),et.chartHeight=Math.max(0,rt(vt,et.chartWidth)||(et.containerHeight>1?et.containerHeight:400))},ct.prototype.temporaryDisplay=function(et){var at,dt=this.renderTo;if(et)for(;dt&&dt.style;)dt.hcOrigStyle&&(b(dt,dt.hcOrigStyle),delete dt.hcOrigStyle),dt.hcOrigDetached&&(r.body.removeChild(dt),dt.hcOrigDetached=!1),dt=dt.parentNode;else for(;dt&&dt.style&&(r.body.contains(dt)||dt.parentNode||(dt.hcOrigDetached=!0,r.body.appendChild(dt)),(L(dt,"display",!1)==="none"||dt.hcOricDetached)&&(dt.hcOrigStyle={display:dt.style.display,height:dt.style.height,overflow:dt.style.overflow},at={display:"block",overflow:"hidden"},dt!==this.renderTo&&(at.height=0),b(dt,at),dt.offsetWidth||dt.style.setProperty("display","block","important")),(dt=dt.parentNode)!==r.body););},ct.prototype.setClassName=function(et){this.container.className="highcharts-container "+(et||"")},ct.prototype.getContainer=function(){var et,at=this,dt=at.options,vt=dt.chart,Ct="data-highcharts-chart",xt=bt(),wt=at.renderTo;wt||(at.renderTo=wt=vt.renderTo),X(wt)&&(at.renderTo=wt=r.getElementById(wt)),wt||C(13,!0,at);var Mt=J(s(wt,Ct));j(Mt)&&g[Mt]&&g[Mt].hasRendered&&g[Mt].destroy(),s(wt,Ct,at.index),wt.innerHTML=f.emptyHTML,vt.skipClone||wt.offsetWidth||at.temporaryDisplay(),at.getChartSize();var St=at.chartWidth,Tt=at.chartHeight;b(wt,{overflow:"hidden"}),at.styledMode||(et=A({position:"relative",overflow:"hidden",width:St+"px",height:Tt+"px",textAlign:"left",lineHeight:"normal",zIndex:0,"-webkit-tap-highlight-color":"rgba(0,0,0,0)",userSelect:"none","touch-action":"manipulation",outline:"none"},vt.style||{}));var Lt=l("div",{id:xt},et,wt);at.container=Lt,at._cursor=Lt.style.cursor;var Pt=vt.renderer||!t?E.getRendererType(vt.renderer):P;if(at.renderer=new Pt(Lt,St,Tt,void 0,vt.forExport,dt.exporting&&dt.exporting.allowHTML,at.styledMode),v(void 0,at),at.setClassName(vt.className),at.styledMode)for(var Dt in dt.defs)this.renderer.definition(dt.defs[Dt]);else at.renderer.setStyle(vt.style);at.renderer.chartIndex=at.index,_(this,"afterGetContainer")},ct.prototype.getMargins=function(et){var at=this,dt=at.spacing,vt=at.margin,Ct=at.titleOffset;this.resetMargins(),Ct[0]&&!k(vt[0])&&(this.plotTop=Math.max(this.plotTop,Ct[0]+dt[0])),Ct[2]&&!k(vt[2])&&(this.marginBottom=Math.max(this.marginBottom,Ct[2]+dt[2])),this.legend&&this.legend.display&&this.legend.adjustMargins(vt,dt),_(this,"getMargins"),et||this.getAxisMargins()},ct.prototype.getAxisMargins=function(){var et=this,at=et.axisOffset=[0,0,0,0],dt=et.colorAxis,vt=et.margin,Ct=function(xt){xt.forEach(function(wt){wt.visible&&wt.getOffset()})};et.hasCartesianSeries?Ct(et.axes):dt&&dt.length&&Ct(dt),a.forEach(function(xt,wt){k(vt[wt])||(et[xt]+=at[wt])}),et.setChartSize()},ct.prototype.reflow=function(et){var at=this,dt=at.options.chart,vt=at.renderTo,Ct=k(dt.width)&&k(dt.height),xt=dt.width||L(vt,"width"),wt=dt.height||L(vt,"height"),Mt=et?et.target:i;delete at.pointer.chartPosition,Ct||at.isPrinting||!xt||!wt||Mt!==i&&Mt!==r||(xt===at.containerWidth&&wt===at.containerHeight||(h.clearTimeout(at.reflowTimeout),at.reflowTimeout=mt(function(){at.container&&at.setSize(void 0,void 0,!1)},et?100:0)),at.containerWidth=xt,at.containerHeight=wt)},ct.prototype.setReflow=function(et){var at=this;et===!1||this.unbindReflow?et===!1&&this.unbindReflow&&(this.unbindReflow=this.unbindReflow()):(this.unbindReflow=e(i,"resize",function(dt){at.options&&at.reflow(dt)}),e(this,"destroy",this.unbindReflow))},ct.prototype.setSize=function(et,at,dt){var vt=this,Ct=vt.renderer;vt.isResizing+=1,v(dt,vt);var xt=Ct.globalAnimation;vt.oldChartHeight=vt.chartHeight,vt.oldChartWidth=vt.chartWidth,et!==void 0&&(vt.options.chart.width=et),at!==void 0&&(vt.options.chart.height=at),vt.getChartSize(),vt.styledMode||(xt?m:b)(vt.container,{width:vt.chartWidth+"px",height:vt.chartHeight+"px"},xt),vt.setChartSize(!0),Ct.setSize(vt.chartWidth,vt.chartHeight,xt),vt.axes.forEach(function(wt){wt.isDirty=!0,wt.setScale()}),vt.isDirtyLegend=!0,vt.isDirtyBox=!0,vt.layOutTitles(),vt.getMargins(),vt.redraw(xt),vt.oldChartHeight=null,_(vt,"resize"),mt(function(){vt&&_(vt,"endResize",null,function(){vt.isResizing-=1})},u(xt).duration)},ct.prototype.setChartSize=function(et){var at,dt,vt,Ct,xt=this,wt=xt.inverted,Mt=xt.renderer,St=xt.chartWidth,Tt=xt.chartHeight,Lt=xt.options.chart,Pt=xt.spacing,Dt=xt.clipOffset;xt.plotLeft=at=Math.round(xt.plotLeft),xt.plotTop=dt=Math.round(xt.plotTop),xt.plotWidth=vt=Math.max(0,Math.round(St-at-xt.marginRight)),xt.plotHeight=Ct=Math.max(0,Math.round(Tt-dt-xt.marginBottom)),xt.plotSizeX=wt?Ct:vt,xt.plotSizeY=wt?vt:Ct,xt.plotBorderWidth=Lt.plotBorderWidth||0,xt.spacingBox=Mt.spacingBox={x:Pt[3],y:Pt[0],width:St-Pt[3]-Pt[1],height:Tt-Pt[0]-Pt[2]},xt.plotBox=Mt.plotBox={x:at,y:dt,width:vt,height:Ct};var jt=2*Math.floor(xt.plotBorderWidth/2),Ot=Math.ceil(Math.max(jt,Dt[3])/2),It=Math.ceil(Math.max(jt,Dt[0])/2);xt.clipBox={x:Ot,y:It,width:Math.floor(xt.plotSizeX-Math.max(jt,Dt[1])/2-Ot),height:Math.max(0,Math.floor(xt.plotSizeY-Math.max(jt,Dt[2])/2-It))},et||(xt.axes.forEach(function(Bt){Bt.setAxisSize(),Bt.setAxisTranslation()}),Mt.alignElements()),_(xt,"afterSetChartSize",{skipAxes:et})},ct.prototype.resetMargins=function(){_(this,"resetMargins");var et=this,at=et.options.chart;["margin","spacing"].forEach(function(dt){var vt=at[dt],Ct=Y(vt)?vt:[vt,vt,vt,vt];["Top","Right","Bottom","Left"].forEach(function(xt,wt){et[dt][wt]=Q(at[dt+xt],Ct[wt])})}),a.forEach(function(dt,vt){et[dt]=Q(et.margin[vt],et.spacing[vt])}),et.axisOffset=[0,0,0,0],et.clipOffset=[0,0,0,0]},ct.prototype.drawChartBox=function(){var et,at,dt,vt=this,Ct=vt.options.chart,xt=vt.renderer,wt=vt.chartWidth,Mt=vt.chartHeight,St=vt.styledMode,Tt=vt.plotBGImage,Lt=Ct.backgroundColor,Pt=Ct.plotBackgroundColor,Dt=Ct.plotBackgroundImage,jt=vt.plotLeft,Ot=vt.plotTop,It=vt.plotWidth,Bt=vt.plotHeight,Zt=vt.plotBox,zt=vt.clipRect,Ht=vt.clipBox,Kt=vt.chartBackground,me=vt.plotBackground,Ut=vt.plotBorder,te="animate";Kt||(vt.chartBackground=Kt=xt.rect().addClass("highcharts-background").add(),te="attr"),St?et=at=Kt.strokeWidth():(at=(et=Ct.borderWidth||0)+(Ct.shadow?8:0),dt={fill:Lt||"none"},(et||Kt["stroke-width"])&&(dt.stroke=Ct.borderColor,dt["stroke-width"]=et),Kt.attr(dt).shadow(Ct.shadow)),Kt[te]({x:at/2,y:at/2,width:wt-at-et%2,height:Mt-at-et%2,r:Ct.borderRadius}),te="animate",me||(te="attr",vt.plotBackground=me=xt.rect().addClass("highcharts-plot-background").add()),me[te](Zt),St||(me.attr({fill:Pt||"none"}).shadow(Ct.plotShadow),Dt&&(Tt?(Dt!==Tt.attr("href")&&Tt.attr("href",Dt),Tt.animate(Zt)):vt.plotBGImage=xt.image(Dt,jt,Ot,It,Bt).add())),zt?zt.animate({width:Ht.width,height:Ht.height}):vt.clipRect=xt.clipRect(Ht),te="animate",Ut||(te="attr",vt.plotBorder=Ut=xt.rect().addClass("highcharts-plot-border").attr({zIndex:1}).add()),St||Ut.attr({stroke:Ct.plotBorderColor,"stroke-width":Ct.plotBorderWidth||0,fill:"none"}),Ut[te](Ut.crisp({x:jt,y:Ot,width:It,height:Bt},-Ut.strokeWidth())),vt.isDirtyBox=!1,_(this,"afterDrawChartBox")},ct.prototype.propFromSeries=function(){var et,at,dt,vt=this,Ct=vt.options.chart,xt=vt.options.series;["inverted","angular","polar"].forEach(function(wt){for(at=o[Ct.type||Ct.defaultSeriesType],dt=Ct[wt]||at&&at.prototype[wt],et=xt&&xt.length;!dt&&et--;)(at=o[xt[et].type])&&at.prototype[wt]&&(dt=!0);vt[wt]=dt})},ct.prototype.linkSeries=function(){var et=this,at=et.series;at.forEach(function(dt){dt.linkedSeries.length=0}),at.forEach(function(dt){var vt=dt.options.linkedTo;X(vt)&&(vt=vt===":previous"?et.series[dt.index-1]:et.get(vt))&&vt.linkedParent!==dt&&(vt.linkedSeries.push(dt),dt.linkedParent=vt,vt.enabledDataSorting&&dt.setDataSortingOptions(),dt.visible=Q(dt.options.visible,vt.options.visible,dt.visible))}),_(this,"afterLinkSeries")},ct.prototype.renderSeries=function(){this.series.forEach(function(et){et.translate(),et.render()})},ct.prototype.renderLabels=function(){var et=this,at=et.options.labels;at.items&&at.items.forEach(function(dt){var vt=A(at.style,dt.style),Ct=J(vt.left)+et.plotLeft,xt=J(vt.top)+et.plotTop+12;delete vt.left,delete vt.top,et.renderer.text(dt.html,Ct,xt).attr({zIndex:2}).css(vt).add()})},ct.prototype.render=function(){var et=this,at=et.axes,dt=et.colorAxis,vt=et.renderer,Ct=et.options,xt=function(Pt){Pt.forEach(function(Dt){Dt.visible&&Dt.render()})},wt=0;et.setTitle(),et.legend=new U(et,Ct.legend),et.getStacks&&et.getStacks(),et.getMargins(!0),et.setChartSize();var Mt=et.plotWidth;at.some(function(Pt){if(Pt.horiz&&Pt.visible&&Pt.options.labels.enabled&&Pt.series.length)return wt=21,!0}),et.plotHeight=Math.max(et.plotHeight-wt,0);var St=et.plotHeight;at.forEach(function(Pt){Pt.setScale()}),et.getAxisMargins();var Tt=Mt/et.plotWidth>1.1,Lt=St/et.plotHeight>1.05;(Tt||Lt)&&(at.forEach(function(Pt){(Pt.horiz&&Tt||!Pt.horiz&&Lt)&&Pt.setTickInterval(!0)}),et.getMargins()),et.drawChartBox(),et.hasCartesianSeries?xt(at):dt&&dt.length&&xt(dt),et.seriesGroup||(et.seriesGroup=vt.g("series-group").attr({zIndex:3}).add()),et.renderSeries(),et.renderLabels(),et.addCredits(),et.setResponsive&&et.setResponsive(),et.hasRendered=!0},ct.prototype.addCredits=function(et){var at=this,dt=G(!0,this.options.credits,et);dt.enabled&&!this.credits&&(this.credits=this.renderer.text(dt.text+(this.mapCredits||""),0,0).addClass("highcharts-credits").on("click",function(){dt.href&&(i.location.href=dt.href)}).attr({align:dt.position.align,zIndex:8}),at.styledMode||this.credits.css(dt.style),this.credits.add().align(dt.position),this.credits.update=function(vt){at.credits=at.credits.destroy(),at.addCredits(vt)})},ct.prototype.destroy=function(){var et,at=this,dt=at.axes,vt=at.series,Ct=at.container,xt=Ct&&Ct.parentNode;for(_(at,"destroy"),at.renderer.forExport?p(g,at):g[at.index]=void 0,Z.chartCount--,at.renderTo.removeAttribute("data-highcharts-chart"),lt(at),et=dt.length;et--;)dt[et]=dt[et].destroy();for(this.scroller&&this.scroller.destroy&&this.scroller.destroy(),et=vt.length;et--;)vt[et]=vt[et].destroy();["title","subtitle","chartBackground","plotBackground","plotBGImage","plotBorder","seriesGroup","clipRect","credits","pointer","rangeSelector","legend","resetZoomButton","tooltip","renderer"].forEach(function(wt){var Mt=at[wt];Mt&&Mt.destroy&&(at[wt]=Mt.destroy())}),Ct&&(Ct.innerHTML=f.emptyHTML,lt(Ct),xt&&D(Ct)),q(at,function(wt,Mt){delete at[Mt]})},ct.prototype.firstRender=function(){var et=this,at=et.options;et.isReadyToRender&&!et.isReadyToRender()||(et.getContainer(),et.resetMargins(),et.setChartSize(),et.propFromSeries(),et.getAxes(),(O(at.series)?at.series:[]).forEach(function(dt){et.initSeries(dt)}),et.linkSeries(),et.setSeriesData(),_(et,"beforeRender"),I&&(z.isRequired()?et.pointer=new z(et,at):et.pointer=new I(et,at)),et.render(),et.pointer.getChartPosition(),et.renderer.imgCount||et.hasLoaded||et.onload(),et.temporaryDisplay(!0))},ct.prototype.onload=function(){this.callbacks.concat([this.callback]).forEach(function(et){et&&this.index!==void 0&&et.apply(this,[this])},this),_(this,"load"),_(this,"render"),k(this.index)&&this.setReflow(this.options.chart.reflow),this.warnIfA11yModuleNotLoaded(),this.hasLoaded=!0},ct.prototype.warnIfA11yModuleNotLoaded=function(){var et=this.options,at=this.title;et&&!this.accessibility&&(this.renderer.boxWrapper.attr({role:"img","aria-label":(at&&at.element.textContent||"").replace(/</g,"&lt;")}),et.accessibility&&et.accessibility.enabled===!1||C('Highcharts warning: Consider including the "accessibility.js" module to make your chart more usable for people with disabilities. Set the "accessibility.enabled" option to false to remove this warning. See https://www.highcharts.com/docs/accessibility/accessibility-module.',!1,this))},ct.prototype.addSeries=function(et,at,dt){var vt,Ct=this;return et&&(at=Q(at,!0),_(Ct,"addSeries",{options:et},function(){vt=Ct.initSeries(et),Ct.isDirtyLegend=!0,Ct.linkSeries(),vt.enabledDataSorting&&vt.setData(et.data,!1),_(Ct,"afterAddSeries",{series:vt}),at&&Ct.redraw(dt)})),vt},ct.prototype.addAxis=function(et,at,dt,vt){return this.createAxis(at?"xAxis":"yAxis",{axis:et,redraw:dt,animation:vt})},ct.prototype.addColorAxis=function(et,at,dt){return this.createAxis("colorAxis",{axis:et,redraw:at,animation:dt})},ct.prototype.createAxis=function(et,at){var dt=new R(this,G(at.axis,{index:this[et].length,isX:et==="xAxis"}));return Q(at.redraw,!0)&&this.redraw(at.animation),dt},ct.prototype.showLoading=function(et){var at=this,dt=at.options,vt=dt.loading,Ct=function(){xt&&b(xt,{left:at.plotLeft+"px",top:at.plotTop+"px",width:at.plotWidth+"px",height:at.plotHeight+"px"})},xt=at.loadingDiv,wt=at.loadingSpan;xt||(at.loadingDiv=xt=l("div",{className:"highcharts-loading highcharts-loading-hidden"},null,at.container)),wt||(at.loadingSpan=wt=l("span",{className:"highcharts-loading-inner"},null,xt),e(at,"redraw",Ct)),xt.className="highcharts-loading",f.setElementHTML(wt,Q(et,dt.lang.loading,"")),at.styledMode||(b(xt,A(vt.style,{zIndex:10})),b(wt,vt.labelStyle),at.loadingShown||(b(xt,{opacity:0,display:""}),m(xt,{opacity:vt.style.opacity||.5},{duration:vt.showDuration||0}))),at.loadingShown=!0,Ct()},ct.prototype.hideLoading=function(){var et=this.options,at=this.loadingDiv;at&&(at.className="highcharts-loading highcharts-loading-hidden",this.styledMode||m(at,{opacity:0},{duration:et.loading.hideDuration||100,complete:function(){b(at,{display:"none"})}})),this.loadingShown=!1},ct.prototype.update=function(et,at,dt,vt){var Ct,xt,wt,Mt=this,St={credits:"addCredits",title:"setTitle",subtitle:"setSubtitle",caption:"setCaption"},Tt=et.isResponsiveOptions,Lt=[];_(Mt,"update",{options:et}),Tt||Mt.setResponsive(!1,!0),et=n(et,Mt.options),Mt.userOptions=G(Mt.userOptions,et);var Pt=et.chart;Pt&&(G(!0,Mt.options.chart,Pt),"className"in Pt&&Mt.setClassName(Pt.className),"reflow"in Pt&&Mt.setReflow(Pt.reflow),("inverted"in Pt||"polar"in Pt||"type"in Pt)&&(Mt.propFromSeries(),Ct=!0),"alignTicks"in Pt&&(Ct=!0),"events"in Pt&&c(this,Pt),q(Pt,function(Ot,It){Mt.propsRequireUpdateSeries.indexOf("chart."+It)!==-1&&(xt=!0),Mt.propsRequireDirtyBox.indexOf(It)!==-1&&(Mt.isDirtyBox=!0),Mt.propsRequireReflow.indexOf(It)!==-1&&(Tt?Mt.isDirtyBox=!0:wt=!0)}),!Mt.styledMode&&Pt.style&&Mt.renderer.setStyle(Mt.options.chart.style||{})),!Mt.styledMode&&et.colors&&(this.options.colors=et.colors),et.time&&(this.time===S&&(this.time=new y(et.time)),G(!0,Mt.options.time,et.time)),q(et,function(Ot,It){Mt[It]&&typeof Mt[It].update=="function"?Mt[It].update(Ot,!1):typeof Mt[St[It]]=="function"?Mt[St[It]](Ot):It!=="colors"&&Mt.collectionsWithUpdate.indexOf(It)===-1&&G(!0,Mt.options[It],et[It]),It!=="chart"&&Mt.propsRequireUpdateSeries.indexOf(It)!==-1&&(xt=!0)}),this.collectionsWithUpdate.forEach(function(Ot){var It;et[Ot]&&(It=[],Mt[Ot].forEach(function(Bt,Zt){Bt.options.isInternal||It.push(Q(Bt.options.index,Zt))}),gt(et[Ot]).forEach(function(Bt,Zt){var zt,Ht=k(Bt.id);Ht&&(zt=Mt.get(Bt.id)),!zt&&Mt[Ot]&&(zt=Mt[Ot][It?It[Zt]:Zt])&&Ht&&k(zt.options.id)&&(zt=void 0),zt&&zt.coll===Ot&&(zt.update(Bt,!1),dt&&(zt.touched=!0)),!zt&&dt&&Mt.collectionsWithInit[Ot]&&(Mt.collectionsWithInit[Ot][0].apply(Mt,[Bt].concat(Mt.collectionsWithInit[Ot][1]||[]).concat([!1])).touched=!0)}),dt&&Mt[Ot].forEach(function(Bt){Bt.touched||Bt.options.isInternal?delete Bt.touched:Lt.push(Bt)}))}),Lt.forEach(function(Ot){Ot.chart&&Ot.remove&&Ot.remove(!1)}),Ct&&Mt.axes.forEach(function(Ot){Ot.update({},!1)}),xt&&Mt.getSeriesOrderByLinks().forEach(function(Ot){Ot.chart&&Ot.update({},!1)},this);var Dt=Pt&&Pt.width,jt=Pt&&(X(Pt.height)?rt(Pt.height,Dt||Mt.chartWidth):Pt.height);wt||j(Dt)&&Dt!==Mt.chartWidth||j(jt)&&jt!==Mt.chartHeight?Mt.setSize(Dt,jt,vt):Q(at,!0)&&Mt.redraw(vt),_(Mt,"afterUpdate",{options:et,redraw:at,animation:vt})},ct.prototype.setSubtitle=function(et,at){this.applyDescription("subtitle",et),this.layOutTitles(at)},ct.prototype.setCaption=function(et,at){this.applyDescription("caption",et),this.layOutTitles(at)},ct.prototype.showResetZoom=function(){var et=this,at=w.lang,dt=et.options.chart.zooming.resetButton,vt=dt.theme,Ct=dt.relativeTo==="chart"||dt.relativeTo==="spacingBox"?null:"scrollablePlotBox";function xt(){et.zoomOut()}_(this,"beforeShowResetZoom",null,function(){et.resetZoomButton=et.renderer.button(at.resetZoom,null,null,xt,vt).attr({align:dt.position.align,title:at.resetZoomTitle}).addClass("highcharts-reset-zoom").add().align(dt.position,!1,Ct)}),_(this,"afterShowResetZoom")},ct.prototype.zoomOut=function(){_(this,"selection",{resetSelection:!0},this.zoom)},ct.prototype.zoom=function(et){var at,dt=this,vt=dt.pointer,Ct=!1;!et||et.resetSelection?(dt.axes.forEach(function(wt){at=wt.zoom()}),vt.initiated=!1):et.xAxis.concat(et.yAxis).forEach(function(wt){var Mt=wt.axis,St=Mt.isXAxis;(vt[St?"zoomX":"zoomY"]&&k(vt.mouseDownX)&&k(vt.mouseDownY)&&dt.isInsidePlot(vt.mouseDownX-dt.plotLeft,vt.mouseDownY-dt.plotTop,{axis:Mt})||!k(dt.inverted?vt.mouseDownX:vt.mouseDownY))&&(at=Mt.zoom(wt.min,wt.max),Mt.displayBtn&&(Ct=!0))});var xt=dt.resetZoomButton;Ct&&!xt?dt.showResetZoom():!Ct&&Y(xt)&&(dt.resetZoomButton=xt.destroy()),at&&dt.redraw(Q(dt.options.chart.animation,et&&et.animation,dt.pointCount<100))},ct.prototype.pan=function(et,at){var dt=this,vt=dt.hoverPoints,Ct=typeof at=="object"?at:{enabled:at,type:"x"},xt=dt.options.chart;xt&&xt.panning&&(xt.panning=Ct);var wt,Mt=Ct.type;_(this,"pan",{originalEvent:et},function(){vt&&vt.forEach(function(Lt){Lt.setState()});var St=dt.xAxis;Mt==="xy"?St=St.concat(dt.yAxis):Mt==="y"&&(St=dt.yAxis);var Tt={};St.forEach(function(Lt){if(Lt.options.panningEnabled&&!Lt.options.isInternal){var Pt,Dt=Lt.horiz,jt=et[Dt?"chartX":"chartY"],Ot=Dt?"mouseDownX":"mouseDownY",It=dt[Ot],Bt=Lt.minPointOffset||0,Zt=Lt.reversed&&!dt.inverted||!Lt.reversed&&dt.inverted?-1:1,zt=Lt.getExtremes(),Ht=Lt.toValue(It-jt,!0)+Bt*Zt,Kt=Lt.toValue(It+Lt.len-jt,!0)-(Bt*Zt||Lt.isXAxis&&Lt.pointRangePadding||0),me=Kt<Ht,Ut=Lt.hasVerticalPanning(),te=me?Kt:Ht,ye=me?Ht:Kt,Et=Lt.panningState;!Ut||Lt.isXAxis||Et&&!Et.isDirty||Lt.series.forEach(function($t){var ce=$t.getProcessedData(!0),pe=$t.getExtremes(ce.yData,!0);Et||(Et={startMin:Number.MAX_VALUE,startMax:-Number.MAX_VALUE}),j(pe.dataMin)&&j(pe.dataMax)&&(Et.startMin=Math.min(Q($t.options.threshold,1/0),pe.dataMin,Et.startMin),Et.startMax=Math.max(Q($t.options.threshold,-1/0),pe.dataMax,Et.startMax))});var Gt=Math.min(Q(Et&&Et.startMin,zt.dataMin),Bt?zt.min:Lt.toValue(Lt.toPixels(zt.min)-Lt.minPixelPadding)),Yt=Math.max(Q(Et&&Et.startMax,zt.dataMax),Bt?zt.max:Lt.toValue(Lt.toPixels(zt.max)+Lt.minPixelPadding));Lt.panningState=Et,Lt.isOrdinal||((Pt=Gt-te)>0&&(ye+=Pt,te=Gt),(Pt=ye-Yt)>0&&(ye=Yt,te-=Pt),Lt.series.length&&te!==zt.min&&ye!==zt.max&&te>=Gt&&ye<=Yt&&(Lt.setExtremes(te,ye,!1,!1,{trigger:"pan"}),!dt.resetZoomButton&&te!==Gt&&ye!==Yt&&Mt.match("y")&&(dt.showResetZoom(),Lt.displayBtn=!1),wt=!0),Tt[Ot]=jt)}}),q(Tt,function(Lt,Pt){dt[Pt]=Lt}),wt&&dt.redraw(!1),b(dt.container,{cursor:"move"})})},ct}();return A(yt.prototype,{callbacks:[],collectionsWithInit:{xAxis:[yt.prototype.addAxis,[!0]],yAxis:[yt.prototype.addAxis,[!1]],series:[yt.prototype.addSeries]},collectionsWithUpdate:["xAxis","yAxis","series"],propsRequireDirtyBox:["backgroundColor","borderColor","borderWidth","borderRadius","plotBackgroundColor","plotBackgroundImage","plotBorderColor","plotBorderWidth","plotShadow","shadow"],propsRequireReflow:["margin","marginTop","marginRight","marginBottom","marginLeft","spacing","spacingTop","spacingRight","spacingBottom","spacingLeft"],propsRequireUpdateSeries:["chart.inverted","chart.polar","chart.ignoreHiddenSeries","chart.type","colors","plotOptions","time","tooltip"]}),yt}),it(B,"Core/Legend/LegendSymbol.js",[B["Core/Utilities.js"]],function(W){var R,H=W.extend,V=W.merge,$=W.pick;return function(Z){Z.drawLineMarker=function(U){var z,I=this.legendItem=this.legendItem||{},E=this.options,M=U.symbolWidth,P=U.symbolHeight,y=P/2,h=this.chart.renderer,f=I.group,m=U.baseline-Math.round(.3*U.fontMetrics.b),u={},v=E.marker,w=0;if(this.chart.styledMode||(u={"stroke-width":Math.min(E.lineWidth||0,24)},E.dashStyle?u.dashstyle=E.dashStyle:E.linecap!=="square"&&(u["stroke-linecap"]="round")),I.line=h.path().addClass("highcharts-graph").attr(u).add(f),u["stroke-linecap"]&&(w=Math.min(I.line.strokeWidth(),M)/2),I.line.attr({d:[["M",w,m],["L",M-w,m]]}),v&&v.enabled!==!1&&M){var S=Math.min($(v.radius,y),y);this.symbol.indexOf("url")===0&&(v=V(v,{width:P,height:P}),S=0),I.symbol=z=h.symbol(this.symbol,M/2-S,m-S,2*S,2*S,H({context:"legend"},v)).addClass("highcharts-point").add(f),z.isMarker=!0}},Z.drawRectangle=function(U,z){var I=z.legendItem||{},E=U.options,M=U.symbolHeight,P=E.squareSymbol,y=P?M:U.symbolWidth;I.symbol=this.chart.renderer.rect(P?(U.symbolWidth-M)/2:0,U.baseline-M+1,y,M,$(U.options.symbolRadius,M/2)).addClass("highcharts-point").attr({zIndex:3}).add(I.group)}}(R||(R={})),R}),it(B,"Core/Series/SeriesDefaults.js",[],function(){return{lineWidth:2,allowPointSelect:!1,crisp:!0,showCheckbox:!1,animation:{duration:1e3},events:{},marker:{enabledThreshold:2,lineColor:"#ffffff",lineWidth:0,radius:4,states:{normal:{animation:!0},hover:{animation:{duration:50},enabled:!0,radiusPlus:2,lineWidthPlus:1},select:{fillColor:"#cccccc",lineColor:"#000000",lineWidth:2}}},point:{events:{}},dataLabels:{animation:{},align:"center",borderWidth:0,defer:!0,formatter:function(){var W=this.series.chart.numberFormatter;return typeof this.y!="number"?"":W(this.y,-1)},padding:5,style:{fontSize:"11px",fontWeight:"bold",color:"contrast",textOutline:"1px contrast"},verticalAlign:"bottom",x:0,y:0},cropThreshold:300,opacity:1,pointRange:0,softThreshold:!0,states:{normal:{animation:!0},hover:{animation:{duration:50},lineWidthPlus:1,marker:{},halo:{size:10,opacity:.25}},select:{animation:{duration:0}},inactive:{animation:{duration:50},opacity:.2}},stickyTracking:!0,turboThreshold:1e3,findNearestPointBy:"x"}}),it(B,"Core/Series/Series.js",[B["Core/Animation/AnimationUtilities.js"],B["Core/Defaults.js"],B["Core/Foundation.js"],B["Core/Globals.js"],B["Core/Legend/LegendSymbol.js"],B["Core/Series/Point.js"],B["Core/Series/SeriesDefaults.js"],B["Core/Series/SeriesRegistry.js"],B["Core/Renderer/SVG/SVGElement.js"],B["Core/Utilities.js"]],function(W,R,H,V,$,Z,U,z,I,E){var M=W.animObject,P=W.setAnimation,y=R.defaultOptions,h=H.registerEventOptions,f=V.hasTouch,m=V.svg,u=V.win,v=z.seriesTypes,w=E.arrayMax,S=E.arrayMin,x=E.clamp,c=E.cleanRecursively,g=E.correctFloat,r=E.defined,a=E.erase,t=E.error,i=E.extend,o=E.find,e=E.fireEvent,s=E.getNestedProperty,n=E.isArray,l=E.isNumber,b=E.isString,k=E.merge,D=E.objectEach,p=E.pick,C=E.removeEvent,A=E.splat,N=E.syncTimeout,_=function(){function L(){this._i=void 0,this.chart=void 0,this.data=void 0,this.eventOptions=void 0,this.eventsToUnbind=void 0,this.index=void 0,this.linkedSeries=void 0,this.options=void 0,this.points=void 0,this.processedXData=void 0,this.processedYData=void 0,this.tooltipOptions=void 0,this.userOptions=void 0,this.xAxis=void 0,this.yAxis=void 0,this.zones=void 0}return L.prototype.init=function(O,j){e(this,"init",{options:j});var Y=this,X=O.series;this.eventsToUnbind=[],Y.chart=O,Y.options=Y.setOptions(j);var G=Y.options;Y.linkedSeries=[],Y.bindAxes(),i(Y,{name:G.name,state:"",visible:G.visible!==!1,selected:G.selected===!0}),h(this,G);var q,Q=G.events;(Q&&Q.click||G.point&&G.point.events&&G.point.events.click||G.allowPointSelect)&&(O.runTrackerClick=!0),Y.getColor(),Y.getSymbol(),Y.parallelArrays.forEach(function(J){Y[J+"Data"]||(Y[J+"Data"]=[])}),Y.isCartesian&&(O.hasCartesianSeries=!0),X.length&&(q=X[X.length-1]),Y._i=p(q&&q._i,-1)+1,Y.opacity=Y.options.opacity,O.orderSeries(this.insert(X)),G.dataSorting&&G.dataSorting.enabled?Y.setDataSortingOptions():Y.points||Y.data||Y.setData(G.data,!1),e(this,"afterInit")},L.prototype.is=function(O){return v[O]&&this instanceof v[O]},L.prototype.insert=function(O){var j,Y=this.options.index;if(l(Y)){for(j=O.length;j--;)if(Y>=p(O[j].options.index,O[j]._i)){O.splice(j+1,0,this);break}j===-1&&O.unshift(this),j+=1}else O.push(this);return p(j,O.length-1)},L.prototype.bindAxes=function(){var O,j=this,Y=j.options,X=j.chart;e(this,"bindAxes",null,function(){(j.axisTypes||[]).forEach(function(G){var q=0;X[G].forEach(function(Q){O=Q.options,(Y[G]===q&&!O.isInternal||Y[G]!==void 0&&Y[G]===O.id||Y[G]===void 0&&O.index===0)&&(j.insert(Q.series),j[G]=Q,Q.isDirty=!0),O.isInternal||q++}),j[G]||j.optionalAxis===G||t(18,!0,X)})}),e(this,"afterBindAxes")},L.prototype.updateParallelArrays=function(O,j){var Y=O.series,X=arguments,G=l(j)?function(q){var Q=q==="y"&&Y.toYData?Y.toYData(O):O[q];Y[q+"Data"][j]=Q}:function(q){Array.prototype[j].apply(Y[q+"Data"],Array.prototype.slice.call(X,2))};Y.parallelArrays.forEach(G)},L.prototype.hasData=function(){return this.visible&&this.dataMax!==void 0&&this.dataMin!==void 0||this.visible&&this.yData&&this.yData.length>0},L.prototype.autoIncrement=function(O){var j,Y,X=this.options,G=X.pointIntervalUnit,q=X.relativeXValue,Q=this.chart.time,J=this.xIncrement;return J=p(J,X.pointStart,0),this.pointInterval=Y=p(this.pointInterval,X.pointInterval,1),q&&l(O)&&(Y*=O),G&&(j=new Q.Date(J),G==="day"?Q.set("Date",j,Q.get("Date",j)+Y):G==="month"?Q.set("Month",j,Q.get("Month",j)+Y):G==="year"&&Q.set("FullYear",j,Q.get("FullYear",j)+Y),Y=j.getTime()-J),q&&l(O)?J+Y:(this.xIncrement=J+Y,J)},L.prototype.setDataSortingOptions=function(){var O=this.options;i(this,{requireSorting:!1,sorted:!1,enabledDataSorting:!0,allowDG:!1}),r(O.pointRange)||(O.pointRange=1)},L.prototype.setOptions=function(O){var j,Y=this.chart,X=Y.options,G=X.plotOptions,q=Y.userOptions||{},Q=k(O),J=Y.styledMode,rt={plotOptions:G,userOptions:Q};e(this,"setOptions",rt);var lt=rt.plotOptions[this.type],gt=q.plotOptions||{};this.userOptions=rt.userOptions;var mt=k(lt,G.series,q.plotOptions&&q.plotOptions[this.type],Q);this.tooltipOptions=k(y.tooltip,y.plotOptions.series&&y.plotOptions.series.tooltip,y.plotOptions[this.type].tooltip,X.tooltip.userOptions,G.series&&G.series.tooltip,G[this.type].tooltip,Q.tooltip),this.stickyTracking=p(Q.stickyTracking,gt[this.type]&&gt[this.type].stickyTracking,gt.series&&gt.series.stickyTracking,!(!this.tooltipOptions.shared||this.noSharedTooltip)||mt.stickyTracking),lt.marker===null&&delete mt.marker,this.zoneAxis=mt.zoneAxis;var bt=this.zones=(mt.zones||[]).slice();return!mt.negativeColor&&!mt.negativeFillColor||mt.zones||(j={value:mt[this.zoneAxis+"Threshold"]||mt.threshold||0,className:"highcharts-negative"},J||(j.color=mt.negativeColor,j.fillColor=mt.negativeFillColor),bt.push(j)),bt.length&&r(bt[bt.length-1].value)&&bt.push(J?{}:{color:this.color,fillColor:this.fillColor}),e(this,"afterSetOptions",{options:mt}),mt},L.prototype.getName=function(){return p(this.options.name,"Series "+(this.index+1))},L.prototype.getCyclic=function(O,j,Y){var X,G,q=this.chart,Q=this.userOptions,J=O+"Index",rt=O+"Counter",lt=Y?Y.length:p(q.options.chart[O+"Count"],q[O+"Count"]);j||(G=p(Q[J],Q["_"+J]),r(G)?X=G:(q.series.length||(q[rt]=0),Q["_"+J]=X=q[rt]%lt,q[rt]+=1),Y&&(j=Y[X])),X!==void 0&&(this[J]=X),this[O]=j},L.prototype.getColor=function(){this.chart.styledMode?this.getCyclic("color"):this.options.colorByPoint?this.color="#cccccc":this.getCyclic("color",this.options.color||y.plotOptions[this.type].color,this.chart.options.colors)},L.prototype.getPointsCollection=function(){return(this.hasGroupedData?this.points:this.data)||[]},L.prototype.getSymbol=function(){var O=this.options.marker;this.getCyclic("symbol",O.symbol,this.chart.options.symbols)},L.prototype.findPointIndex=function(O,j){var Y,X,G,q=O.id,Q=O.x,J=this.points,rt=this.options.dataSorting;if(q){var lt=this.chart.get(q);lt instanceof Z&&(Y=lt)}else if(this.linkedParent||this.enabledDataSorting||this.options.relativeXValue){var gt=function(mt){return!mt.touched&&mt.index===O.index};if(rt&&rt.matchByName?gt=function(mt){return!mt.touched&&mt.name===O.name}:this.options.relativeXValue&&(gt=function(mt){return!mt.touched&&mt.options.x===O.x}),!(Y=o(J,gt)))return}return Y&&(G=Y&&Y.index)!==void 0&&(X=!0),G===void 0&&l(Q)&&(G=this.xData.indexOf(Q,j)),G!==-1&&G!==void 0&&this.cropped&&(G=G>=this.cropStart?G-this.cropStart:G),!X&&l(G)&&J[G]&&J[G].touched&&(G=void 0),G},L.prototype.updateData=function(O,j){var Y,X,G,q,Q=this.options,J=Q.dataSorting,rt=this.points,lt=[],gt=this.requireSorting,mt=O.length===rt.length,bt=!0;if(this.xIncrement=null,O.forEach(function(yt,ct){var et,at=r(yt)&&this.pointClass.prototype.optionsToObject.call({series:this},yt)||{},dt=at.x;at.id||l(dt)?((et=this.findPointIndex(at,q))===-1||et===void 0?lt.push(yt):rt[et]&&yt!==Q.data[et]?(rt[et].update(yt,!1,null,!1),rt[et].touched=!0,gt&&(q=et+1)):rt[et]&&(rt[et].touched=!0),(!mt||ct!==et||J&&J.enabled||this.hasDerivedData)&&(Y=!0)):lt.push(yt)},this),Y)for(X=rt.length;X--;)(G=rt[X])&&!G.touched&&G.remove&&G.remove(!1,j);else!mt||J&&J.enabled?bt=!1:(O.forEach(function(yt,ct){yt!==rt[ct].y&&rt[ct].update&&rt[ct].update(yt,!1,null,!1)}),lt.length=0);return rt.forEach(function(yt){yt&&(yt.touched=!1)}),!!bt&&(lt.forEach(function(yt){this.addPoint(yt,!1,null,null,!1)},this),this.xIncrement===null&&this.xData&&this.xData.length&&(this.xIncrement=w(this.xData),this.autoIncrement()),!0)},L.prototype.setData=function(O,j,Y,X){j===void 0&&(j=!0);var G,q,Q,J,rt=this,lt=rt.points,gt=lt&&lt.length||0,mt=rt.options,bt=rt.chart,yt=mt.dataSorting,ct=rt.xAxis,et=mt.turboThreshold,at=this.xData,dt=this.yData,vt=rt.pointArrayMap,Ct=vt&&vt.length,xt=mt.keys,wt=0,Mt=1,St=null;bt.options.chart.allowMutatingData||(mt.data&&delete rt.options.data,rt.userOptions.data&&delete rt.userOptions.data,J=k(!0,O));var Tt=(O=J||O||[]).length;if(yt&&yt.enabled&&(O=this.sortData(O)),bt.options.chart.allowMutatingData&&X!==!1&&Tt&&gt&&!rt.cropped&&!rt.hasGroupedData&&rt.visible&&!rt.boosted&&(Q=this.updateData(O,Y)),!Q){if(rt.xIncrement=null,rt.colorCounter=0,this.parallelArrays.forEach(function(Lt){rt[Lt+"Data"].length=0}),et&&Tt>et)if(St=rt.getFirstValidPoint(O),l(St))for(G=0;G<Tt;G++)at[G]=this.autoIncrement(),dt[G]=O[G];else if(n(St))if(Ct)if(St.length===Ct)for(G=0;G<Tt;G++)at[G]=this.autoIncrement(),dt[G]=O[G];else for(G=0;G<Tt;G++)q=O[G],at[G]=q[0],dt[G]=q.slice(1,Ct+1);else if(xt&&(wt=(wt=xt.indexOf("x"))>=0?wt:0,Mt=(Mt=xt.indexOf("y"))>=0?Mt:1),St.length===1&&(Mt=0),wt===Mt)for(G=0;G<Tt;G++)at[G]=this.autoIncrement(),dt[G]=O[G][Mt];else for(G=0;G<Tt;G++)q=O[G],at[G]=q[wt],dt[G]=q[Mt];else t(12,!1,bt);else for(G=0;G<Tt;G++)O[G]!==void 0&&(q={series:rt},rt.pointClass.prototype.applyOptions.apply(q,[O[G]]),rt.updateParallelArrays(q,G));for(dt&&b(dt[0])&&t(14,!0,bt),rt.data=[],rt.options.data=rt.userOptions.data=O,G=gt;G--;)lt[G]&&lt[G].destroy&&lt[G].destroy();ct&&(ct.minRange=ct.userMinRange),rt.isDirty=bt.isDirtyBox=!0,rt.isDirtyData=!!lt,Y=!1}mt.legendType==="point"&&(this.processData(),this.generatePoints()),j&&bt.redraw(Y)},L.prototype.sortData=function(O){var j=this,Y=j.options.dataSorting.sortKey||"y",X=function(G,q){return r(q)&&G.pointClass.prototype.optionsToObject.call({series:G},q)||{}};return O.forEach(function(G,q){O[q]=X(j,G),O[q].index=q},this),O.concat().sort(function(G,q){var Q=s(Y,G),J=s(Y,q);return J<Q?-1:J>Q?1:0}).forEach(function(G,q){G.x=q},this),j.linkedSeries&&j.linkedSeries.forEach(function(G){var q=G.options,Q=q.data;q.dataSorting&&q.dataSorting.enabled||!Q||(Q.forEach(function(J,rt){Q[rt]=X(G,J),O[rt]&&(Q[rt].x=O[rt].x,Q[rt].index=rt)}),G.setData(Q,!1))}),O},L.prototype.getProcessedData=function(O){var j,Y,X,G,q,Q,J,rt,lt=this,gt=lt.xAxis,mt=lt.options,bt=mt.cropThreshold,yt=O||lt.getExtremesFromAll||mt.getExtremesFromAll,ct=lt.isCartesian,et=gt&&gt.val2lin,at=!(!gt||!gt.logarithmic),dt=0,vt=lt.xData,Ct=lt.yData,xt=lt.requireSorting,wt=!1,Mt=vt.length;for(gt&&(J=(Q=gt.getExtremes()).min,rt=Q.max,wt=!(!gt.categories||gt.names.length)),ct&&lt.sorted&&!yt&&(!bt||Mt>bt||lt.forceCrop)&&(vt[Mt-1]<J||vt[0]>rt?(vt=[],Ct=[]):lt.yData&&(vt[0]<J||vt[Mt-1]>rt)&&(vt=(j=this.cropData(lt.xData,lt.yData,J,rt)).xData,Ct=j.yData,dt=j.start,Y=!0)),q=vt.length||1;--q;)(X=at?et(vt[q])-et(vt[q-1]):vt[q]-vt[q-1])>0&&(G===void 0||X<G)?G=X:X<0&&xt&&!wt&&(t(15,!1,lt.chart),xt=!1);return{xData:vt,yData:Ct,cropped:Y,cropStart:dt,closestPointRange:G}},L.prototype.processData=function(O){var j=this,Y=j.xAxis;if(j.isCartesian&&!j.isDirty&&!Y.isDirty&&!j.yAxis.isDirty&&!O)return!1;var X=j.getProcessedData();j.cropped=X.cropped,j.cropStart=X.cropStart,j.processedXData=X.xData,j.processedYData=X.yData,j.closestPointRange=j.basePointRange=X.closestPointRange,e(j,"afterProcessData")},L.prototype.cropData=function(O,j,Y,X,G){var q,Q,J=O.length,rt=0,lt=J;for(G=p(G,this.cropShoulder),q=0;q<J;q++)if(O[q]>=Y){rt=Math.max(0,q-G);break}for(Q=q;Q<J;Q++)if(O[Q]>X){lt=Q+G;break}return{xData:O.slice(rt,lt),yData:j.slice(rt,lt),start:rt,end:lt}},L.prototype.generatePoints=function(){var O,j,Y,X,G=this,q=G.options,Q=G.processedData||q.data,J=G.processedXData,rt=G.processedYData,lt=G.pointClass,gt=J.length,mt=G.cropStart||0,bt=G.hasGroupedData,yt=q.keys,ct=[],et=q.dataGrouping&&q.dataGrouping.groupAll?mt:0,at=G.data;if(!at&&!bt){var dt=[];dt.length=Q.length,at=G.data=dt}for(yt&&bt&&(G.options.keys=!1),X=0;X<gt;X++)j=mt+X,bt?((Y=new lt().init(G,[J[X]].concat(A(rt[X])))).dataGroup=G.groupMap[et+X],Y.dataGroup.options&&(Y.options=Y.dataGroup.options,i(Y,Y.dataGroup.options),delete Y.dataLabels)):(Y=at[j])||Q[j]===void 0||(at[j]=Y=new lt().init(G,Q[j],J[X])),Y&&(Y.index=bt?et+X:j,ct[X]=Y);if(G.options.keys=yt,at&&(gt!==(O=at.length)||bt))for(X=0;X<O;X++)X!==mt||bt||(X+=gt),at[X]&&(at[X].destroyElements(),at[X].plotX=void 0);G.data=at,G.points=ct,e(this,"afterGeneratePoints")},L.prototype.getXExtremes=function(O){return{min:S(O),max:w(O)}},L.prototype.getExtremes=function(O,j){var Y,X,G,q,Q,J,rt,lt=this.xAxis,gt=this.yAxis,mt=this.processedXData||this.xData,bt=[],yt=this.requireSorting?this.cropShoulder:0,ct=!!gt&&gt.positiveValuesOnly,et=0,at=0,dt=0,vt=(O=O||this.stackedYData||this.processedYData||[]).length;for(lt&&(et=(Y=lt.getExtremes()).min,at=Y.max),J=0;J<vt;J++)if(q=mt[J],Q=O[J],X=(l(Q)||n(Q))&&(Q.length||Q>0||!ct),G=j||this.getExtremesFromAll||this.options.getExtremesFromAll||this.cropped||!lt||(mt[J+yt]||q)>=et&&(mt[J-yt]||q)<=at,X&&G)if(rt=Q.length)for(;rt--;)l(Q[rt])&&(bt[dt++]=Q[rt]);else bt[dt++]=Q;var Ct={activeYData:bt,dataMin:S(bt),dataMax:w(bt)};return e(this,"afterGetExtremes",{dataExtremes:Ct}),Ct},L.prototype.applyExtremes=function(){var O=this.getExtremes();return this.dataMin=O.dataMin,this.dataMax=O.dataMax,O},L.prototype.getFirstValidPoint=function(O){for(var j=O.length,Y=0,X=null;X===null&&Y<j;)X=O[Y],Y++;return X},L.prototype.translate=function(){this.processedXData||this.processData(),this.generatePoints();var O,j,Y,X,G=this,q=G.options,Q=q.stacking,J=G.xAxis,rt=J.categories,lt=G.enabledDataSorting,gt=G.yAxis,mt=G.points,bt=mt.length,yt=G.pointPlacementToXValue(),ct=!!yt,et=q.threshold,at=q.startFromThreshold?et:0,dt=this.zoneAxis||"y",vt=Number.MAX_VALUE;function Ct(jt){return x(jt,-1e5,1e5)}for(O=0;O<bt;O++){var xt=mt[O],wt=xt.x,Mt=void 0,St=void 0,Tt=xt.y,Lt=xt.low,Pt=Q&&gt.stacking&&gt.stacking.stacks[(G.negStacks&&Tt<(at?0:et)?"-":"")+G.stackKey];if((gt.positiveValuesOnly&&!gt.validatePositiveValue(Tt)||J.positiveValuesOnly&&!J.validatePositiveValue(wt))&&(xt.isNull=!0),xt.plotX=j=g(Ct(J.translate(wt,0,0,0,1,yt,this.type==="flags"))),Q&&G.visible&&Pt&&Pt[wt]&&(X=G.getStackIndicator(X,wt,G.index),!xt.isNull&&X.key&&(St=(Mt=Pt[wt]).points[X.key]),Mt&&n(St)&&(Lt=St[0],Tt=St[1],Lt===at&&X.key===Pt[wt].base&&(Lt=p(l(et)?et:gt.min)),gt.positiveValuesOnly&&r(Lt)&&Lt<=0&&(Lt=void 0),xt.total=xt.stackTotal=p(Mt.total),xt.percentage=r(xt.y)&&Mt.total?xt.y/Mt.total*100:void 0,xt.stackY=Tt,G.irregularWidths||Mt.setOffset(G.pointXOffset||0,G.barW||0,void 0,void 0,void 0,G.xAxis))),xt.yBottom=r(Lt)?Ct(gt.translate(Lt,0,1,0,1)):void 0,G.dataModify&&(Tt=G.dataModify.modifyValue(Tt,O)),xt.plotY=void 0,l(Tt)){var Dt=gt.translate(Tt,!1,!0,!1,!0);Dt!==void 0&&(xt.plotY=Ct(Dt))}xt.isInside=this.isPointInside(xt),xt.clientX=ct?g(J.translate(wt,0,0,0,1,yt)):j,xt.negative=xt[dt]<(q[dt+"Threshold"]||et||0),xt.category=p(rt&&rt[xt.x],xt.x),xt.isNull||xt.visible===!1||(Y!==void 0&&(vt=Math.min(vt,Math.abs(j-Y))),Y=j),xt.zone=this.zones.length?xt.getZone():void 0,!xt.graphic&&G.group&&lt&&(xt.isNew=!0)}G.closestPointRangePx=vt,e(this,"afterTranslate")},L.prototype.getValidPoints=function(O,j,Y){var X=this.chart;return(O||this.points||[]).filter(function(G){return!(j&&!X.isInsidePlot(G.plotX,G.plotY,{inverted:X.inverted}))&&G.visible!==!1&&(Y||!G.isNull)})},L.prototype.getClipBox=function(){var O=this,j=O.chart,Y=O.xAxis,X=O.yAxis,G=k(j.clipBox);return Y&&Y.len!==j.plotSizeX&&(G.width=Y.len),X&&X.len!==j.plotSizeY&&(G.height=X.len),G},L.prototype.getSharedClipKey=function(){return this.sharedClipKey=(this.options.xAxis||0)+","+(this.options.yAxis||0),this.sharedClipKey},L.prototype.setClip=function(){var O=this,j=O.chart,Y=O.group,X=O.markerGroup,G=j.sharedClips,q=j.renderer,Q=this.getClipBox(),J=this.getSharedClipKey(),rt=G[J];rt?rt.animate(Q):G[J]=rt=q.clipRect(Q),Y&&Y.clip(this.options.clip===!1?void 0:rt),X&&X.clip()},L.prototype.animate=function(O){var j=this,Y=j.chart,X=j.group,G=j.markerGroup,q=Y.inverted,Q=M(this.options.animation),J=[this.getSharedClipKey(),Q.duration,Q.easing,Q.defer].join(","),rt=Y.sharedClips[J],lt=Y.sharedClips[J+"m"];if(O&&X){var gt=this.getClipBox();if(rt)rt.attr("height",gt.height);else{gt.width=0,q&&(gt.x=Y.plotHeight),rt=Y.renderer.clipRect(gt),Y.sharedClips[J]=rt;var mt={x:-99,y:-99,width:q?Y.plotWidth+199:99,height:q?99:Y.plotHeight+199};lt=Y.renderer.clipRect(mt),Y.sharedClips[J+"m"]=lt}X.clip(rt),G&&G.clip(lt)}else if(rt&&!rt.hasClass("highcharts-animating")){var bt=this.getClipBox(),yt=Q.step;G&&G.element.childNodes.length&&(Q.step=function(ct,et){yt&&yt.apply(et,arguments),et.prop==="width"&&lt&&lt.element&&lt.attr(q?"height":"width",ct+99)}),rt.addClass("highcharts-animating").animate(bt,Q)}},L.prototype.afterAnimate=function(){var O=this;this.setClip(),D(this.chart.sharedClips,function(j,Y,X){j&&!O.chart.container.querySelector('[clip-path="url(#'.concat(j.id,')"]'))&&(j.destroy(),delete X[Y])}),this.finishedAnimating=!0,e(this,"afterAnimate")},L.prototype.drawPoints=function(O){O===void 0&&(O=this.points);var j,Y,X,G,q,Q,J,rt=this,lt=rt.chart,gt=lt.styledMode,mt=rt.colorAxis,bt=rt.options.marker,yt=rt[rt.specialGroup||"markerGroup"],ct=rt.xAxis,et=p(bt.enabled,!(ct&&!ct.isRadial)||null,rt.closestPointRangePx>=bt.enabledThreshold*bt.radius);if(bt.enabled!==!1||rt._hasPointMarkers)for(j=0;j<O.length;j++)if(G=(X=(Y=O[j]).graphic)?"animate":"attr",q=Y.marker||{},Q=!!Y.marker,(et&&q.enabled===void 0||q.enabled)&&!Y.isNull&&Y.visible!==!1){var at=p(q.symbol,rt.symbol,"rect");J=rt.markerAttribs(Y,Y.selected&&"select"),rt.enabledDataSorting&&(Y.startXPos=ct.reversed?-(J.width||0):ct.width);var dt=Y.isInside!==!1;if(!X&&dt&&((J.width||0)>0||Y.hasImage)&&(Y.graphic=X=lt.renderer.symbol(at,J.x,J.y,J.width,J.height,Q?q:bt).add(yt),rt.enabledDataSorting&&lt.hasRendered&&(X.attr({x:Y.startXPos}),G="animate")),X&&G==="animate"&&X[dt?"show":"hide"](dt).animate(J),X){var vt=rt.pointAttribs(Y,gt||!Y.selected?void 0:"select");gt?mt&&X.css({fill:vt.fill}):X[G](vt)}X&&X.addClass(Y.getClassName(),!0)}else X&&(Y.graphic=X.destroy())},L.prototype.markerAttribs=function(O,j){var Y,X,G=this.options,q=G.marker,Q=O.marker||{},J=Q.symbol||q.symbol,rt={},lt=p(Q.radius,q&&q.radius);j&&(Y=q.states[j],X=Q.states&&Q.states[j],lt=p(X&&X.radius,Y&&Y.radius,lt&&lt+(Y&&Y.radiusPlus||0))),O.hasImage=J&&J.indexOf("url")===0,O.hasImage&&(lt=0);var gt=O.pos();return l(lt)&&gt&&(rt.x=gt[0]-lt,rt.y=gt[1]-lt,G.crisp&&(rt.x=Math.floor(rt.x))),lt&&(rt.width=rt.height=2*lt),rt},L.prototype.pointAttribs=function(O,j){var Y,X,G,q,Q=this.options.marker,J=O&&O.options,rt=J&&J.marker||{},lt=J&&J.color,gt=O&&O.color,mt=O&&O.zone&&O.zone.color,bt=this.color,yt=p(rt.lineWidth,Q.lineWidth),ct=1;return bt=lt||mt||gt||bt,G=rt.fillColor||Q.fillColor||bt,q=rt.lineColor||Q.lineColor||bt,(j=j||"normal")&&(Y=Q.states[j]||{},X=rt.states&&rt.states[j]||{},yt=p(X.lineWidth,Y.lineWidth,yt+p(X.lineWidthPlus,Y.lineWidthPlus,0)),G=X.fillColor||Y.fillColor||G,q=X.lineColor||Y.lineColor||q,ct=p(X.opacity,Y.opacity,ct)),{stroke:q,"stroke-width":yt,fill:G,opacity:ct}},L.prototype.destroy=function(O){var j,Y,X,G=this,q=G.chart,Q=/AppleWebKit\/533/.test(u.navigator.userAgent),J=G.data||[];for(e(G,"destroy",{keepEventsForUpdate:O}),this.removeEvents(O),(G.axisTypes||[]).forEach(function(rt){(X=G[rt])&&X.series&&(a(X.series,G),X.isDirty=X.forceRedraw=!0)}),G.legendItem&&G.chart.legend.destroyItem(G),j=J.length;j--;)(Y=J[j])&&Y.destroy&&Y.destroy();G.clips&&G.clips.forEach(function(rt){return rt.destroy()}),E.clearTimeout(G.animationTimeout),D(G,function(rt,lt){rt instanceof I&&!rt.survive&&rt[Q&&lt==="group"?"hide":"destroy"]()}),q.hoverSeries===G&&(q.hoverSeries=void 0),a(q.series,G),q.orderSeries(),D(G,function(rt,lt){O&&lt==="hcEvents"||delete G[lt]})},L.prototype.applyZones=function(){var O,j,Y,X,G,q,Q,J,rt,lt,gt,mt=this,bt=this.chart,yt=bt.renderer,ct=this.zones,et=this.clips||[],at=this.graph,dt=this.area,vt=Math.max(bt.plotWidth,bt.plotHeight),Ct=this[(this.zoneAxis||"y")+"Axis"],xt=bt.inverted,wt=!1;ct.length&&(at||dt)&&Ct&&Ct.min!==void 0?(G=Ct.reversed,q=Ct.horiz,at&&!this.showLine&&at.hide(),dt&&dt.hide(),X=Ct.getExtremes(),ct.forEach(function(Mt,St){O=G?q?bt.plotWidth:0:q?0:Ct.toPixels(X.min)||0,O=x(p(j,O),0,vt),j=x(Math.round(Ct.toPixels(p(Mt.value,X.max),!0)||0),0,vt),wt&&(O=j=Ct.toPixels(X.max)),Q=Math.abs(O-j),J=Math.min(O,j),rt=Math.max(O,j),Ct.isXAxis?(Y={x:xt?rt:J,y:0,width:Q,height:vt},q||(Y.x=bt.plotHeight-Y.x)):(Y={x:0,y:xt?rt:J,width:vt,height:Q},q&&(Y.y=bt.plotWidth-Y.y)),xt&&yt.isVML&&(Y=Ct.isXAxis?{x:0,y:G?J:rt,height:Y.width,width:bt.chartWidth}:{x:Y.y-bt.plotLeft-bt.spacingBox.x,y:0,width:Y.height,height:bt.chartHeight}),et[St]?et[St].animate(Y):et[St]=yt.clipRect(Y),lt=mt["zone-area-"+St],gt=mt["zone-graph-"+St],at&&gt&&gt.clip(et[St]),dt&&lt&&lt.clip(et[St]),wt=Mt.value>X.max,mt.resetZones&&j===0&&(j=void 0)}),this.clips=et):mt.visible&&(at&&at.show(),dt&&dt.show())},L.prototype.plotGroup=function(O,j,Y,X,G){var q=this[O],Q=!q,J={visibility:Y,zIndex:X||.1};return this.opacity===void 0||this.chart.styledMode||this.state==="inactive"||(J.opacity=this.opacity),Q&&(this[O]=q=this.chart.renderer.g().add(G)),q.addClass("highcharts-"+j+" highcharts-series-"+this.index+" highcharts-"+this.type+"-series "+(r(this.colorIndex)?"highcharts-color-"+this.colorIndex+" ":"")+(this.options.className||"")+(q.hasClass("highcharts-tracker")?" highcharts-tracker":""),!0),q.attr(J)[Q?"attr":"animate"](this.getPlotBox(j)),q},L.prototype.getPlotBox=function(O){var j=this.xAxis,Y=this.yAxis,X=this.chart,G=X.inverted&&!X.polar&&j&&this.invertible!==!1&&O==="series";return X.inverted&&(j=Y,Y=this.xAxis),{translateX:j?j.left:X.plotLeft,translateY:Y?Y.top:X.plotTop,rotation:G?90:0,rotationOriginX:G?(j.len-Y.len)/2:0,rotationOriginY:G?(j.len+Y.len)/2:0,scaleX:G?-1:1,scaleY:1}},L.prototype.removeEvents=function(O){var j=this;O||C(j),j.eventsToUnbind.length&&(j.eventsToUnbind.forEach(function(Y){Y()}),j.eventsToUnbind.length=0)},L.prototype.render=function(){var O=this,j=O.chart,Y=O.options,X=M(Y.animation),G=O.visible?"inherit":"hidden",q=Y.zIndex,Q=O.hasRendered,J=j.seriesGroup,rt=!O.finishedAnimating&&j.renderer.isSVG?X.duration:0;e(this,"render"),O.plotGroup("group","series",G,q,J),O.markerGroup=O.plotGroup("markerGroup","markers",G,q,J),Y.clip!==!1&&O.setClip(),O.animate&&rt&&O.animate(!0),O.drawGraph&&(O.drawGraph(),O.applyZones()),O.visible&&O.drawPoints(),O.drawDataLabels&&O.drawDataLabels(),O.redrawPoints&&O.redrawPoints(),O.drawTracker&&O.options.enableMouseTracking!==!1&&O.drawTracker(),O.animate&&rt&&O.animate(),Q||(rt&&X.defer&&(rt+=X.defer),O.animationTimeout=N(function(){O.afterAnimate()},rt||0)),O.isDirty=!1,O.hasRendered=!0,e(O,"afterRender")},L.prototype.redraw=function(){var O=this.isDirty||this.isDirtyData;this.translate(),this.render(),O&&delete this.kdTree},L.prototype.searchPoint=function(O,j){var Y=this,X=Y.xAxis,G=Y.yAxis,q=Y.chart.inverted;return this.searchKDTree({clientX:q?X.len-O.chartY+X.pos:O.chartX-X.pos,plotY:q?G.len-O.chartX+G.pos:O.chartY-G.pos},j,O)},L.prototype.buildKDTree=function(O){this.buildingKdTree=!0;var j=this,Y=j.options.findNearestPointBy.indexOf("y")>-1?2:1;function X(G,q,Q){var J,rt,lt=G&&G.length;if(lt)return J=j.kdAxisArray[q%Q],G.sort(function(gt,mt){return gt[J]-mt[J]}),{point:G[rt=Math.floor(lt/2)],left:X(G.slice(0,rt),q+1,Q),right:X(G.slice(rt+1),q+1,Q)}}delete j.kdTree,N(function(){j.kdTree=X(j.getValidPoints(null,!j.directTouch),Y,Y),j.buildingKdTree=!1},j.options.kdNow||O&&O.type==="touchstart"?0:1)},L.prototype.searchKDTree=function(O,j,Y){var X=this,G=this.kdAxisArray[0],q=this.kdAxisArray[1],Q=j?"distX":"dist",J=X.options.findNearestPointBy.indexOf("y")>-1?2:1;if(this.kdTree||this.buildingKdTree||this.buildKDTree(Y),this.kdTree)return function rt(lt,gt,mt,bt){var yt,ct,et,at,dt,vt,Ct=gt.point,xt=X.kdAxisArray[mt%bt],wt=Ct;at=Ct,vt=((dt=r((et=lt)[G])&&r(at[G])?Math.pow(et[G]-at[G],2):null)||0)+((r(et[q])&&r(at[q])?Math.pow(et[q]-at[q],2):null)||0),at.dist=r(vt)?Math.sqrt(vt):Number.MAX_VALUE,at.distX=r(dt)?Math.sqrt(dt):Number.MAX_VALUE;var Mt=lt[xt]-Ct[xt],St=Mt<0?"left":"right",Tt=Mt<0?"right":"left";return gt[St]&&(wt=(yt=rt(lt,gt[St],mt+1,bt))[Q]<wt[Q]?yt:Ct),gt[Tt]&&Math.sqrt(Mt*Mt)<wt[Q]&&(wt=(ct=rt(lt,gt[Tt],mt+1,bt))[Q]<wt[Q]?ct:wt),wt}(O,this.kdTree,J,J)},L.prototype.pointPlacementToXValue=function(){var O=this.options,j=O.pointPlacement,Y=O.pointRange,X=this.xAxis,G=j;return G==="between"&&(G=X.reversed?-.5:.5),l(G)?G*(Y||X.pointRange):0},L.prototype.isPointInside=function(O){var j=this,Y=j.chart,X=j.xAxis,G=j.yAxis;return O.plotY!==void 0&&O.plotX!==void 0&&O.plotY>=0&&O.plotY<=(G?G.len:Y.plotHeight)&&O.plotX>=0&&O.plotX<=(X?X.len:Y.plotWidth)},L.prototype.drawTracker=function(){var O=this,j=O.options,Y=j.trackByArea,X=[].concat(Y?O.areaPath:O.graphPath),G=O.chart,q=G.pointer,Q=G.renderer,J=G.options.tooltip.snap,rt=O.tracker,lt=function(mt){G.hoverSeries!==O&&O.onMouseOver()},gt="rgba(192,192,192,"+(m?1e-4:.002)+")";rt?rt.attr({d:X}):O.graph&&(O.tracker=Q.path(X).attr({visibility:O.visible?"inherit":"hidden",zIndex:2}).addClass(Y?"highcharts-tracker-area":"highcharts-tracker-line").add(O.group),G.styledMode||O.tracker.attr({"stroke-linecap":"round","stroke-linejoin":"round",stroke:gt,fill:Y?gt:"none","stroke-width":O.graph.strokeWidth()+(Y?0:2*J)}),[O.tracker,O.markerGroup,O.dataLabelsGroup].forEach(function(mt){mt&&(mt.addClass("highcharts-tracker").on("mouseover",lt).on("mouseout",function(bt){q.onTrackerMouseOut(bt)}),j.cursor&&!G.styledMode&&mt.css({cursor:j.cursor}),f&&mt.on("touchstart",lt))})),e(this,"afterDrawTracker")},L.prototype.addPoint=function(O,j,Y,X,G){var q,Q,J=this,rt=J.options,lt=J.data,gt=J.chart,mt=J.xAxis,bt=mt&&mt.hasNames&&mt.names,yt=rt.data,ct=J.xData;j=p(j,!0);var et={series:J};J.pointClass.prototype.applyOptions.apply(et,[O]);var at=et.x;if(Q=ct.length,J.requireSorting&&at<ct[Q-1])for(q=!0;Q&&ct[Q-1]>at;)Q--;J.updateParallelArrays(et,"splice",Q,0,0),J.updateParallelArrays(et,Q),bt&&et.name&&(bt[at]=et.name),yt.splice(Q,0,O),(q||J.processedData)&&(J.data.splice(Q,0,null),J.processData()),rt.legendType==="point"&&J.generatePoints(),Y&&(lt[0]&&lt[0].remove?lt[0].remove(!1):(lt.shift(),J.updateParallelArrays(et,"shift"),yt.shift())),G!==!1&&e(J,"addPoint",{point:et}),J.isDirty=!0,J.isDirtyData=!0,j&&gt.redraw(X)},L.prototype.removePoint=function(O,j,Y){var X=this,G=X.data,q=G[O],Q=X.points,J=X.chart,rt=function(){Q&&Q.length===G.length&&Q.splice(O,1),G.splice(O,1),X.options.data.splice(O,1),X.updateParallelArrays(q||{series:X},"splice",O,1),q&&q.destroy(),X.isDirty=!0,X.isDirtyData=!0,j&&J.redraw()};P(Y,J),j=p(j,!0),q?q.firePointEvent("remove",null,rt):rt()},L.prototype.remove=function(O,j,Y,X){var G=this,q=G.chart;function Q(){G.destroy(X),q.isDirtyLegend=q.isDirtyBox=!0,q.linkSeries(),p(O,!0)&&q.redraw(j)}Y!==!1?e(G,"remove",null,Q):Q()},L.prototype.update=function(O,j){O=c(O,this.userOptions),e(this,"update",{options:O});var Y,X,G=this,q=G.chart,Q=G.userOptions,J=G.initialType||G.type,rt=q.options.plotOptions,lt=v[J].prototype,gt=G.finishedAnimating&&{animation:!1},mt={},bt=["eventOptions","navigatorSeries","baseSeries"],yt=O.type||Q.type||q.options.chart.type,ct=!(this.hasDerivedData||yt&&yt!==this.type||O.pointStart!==void 0||O.pointInterval!==void 0||O.relativeXValue!==void 0||O.joinBy||O.mapData||G.hasOptionChanged("dataGrouping")||G.hasOptionChanged("pointStart")||G.hasOptionChanged("pointInterval")||G.hasOptionChanged("pointIntervalUnit")||G.hasOptionChanged("keys"));yt=yt||J,ct&&(bt.push("data","isDirtyData","points","processedData","processedXData","processedYData","xIncrement","cropped","_hasPointMarkers","_hasPointLabels","clips","nodes","layout","level","mapMap","mapData","minY","maxY","minX","maxX"),O.visible!==!1&&bt.push("area","graph"),G.parallelArrays.forEach(function(St){bt.push(St+"Data")}),O.data&&(O.dataSorting&&i(G.options.dataSorting,O.dataSorting),this.setData(O.data,!1))),O=k(Q,gt,{index:Q.index===void 0?G.index:Q.index,pointStart:p(rt&&rt.series&&rt.series.pointStart,Q.pointStart,G.xData[0])},!ct&&{data:G.options.data},O),ct&&O.data&&(O.data=G.options.data),(bt=["group","markerGroup","dataLabelsGroup","transformGroup","shadowGroup"].concat(bt)).forEach(function(St){bt[St]=G[St],delete G[St]});var et=!1;if(v[yt]){if(et=yt!==G.type,G.remove(!1,!1,!1,!0),et)if(Object.setPrototypeOf)Object.setPrototypeOf(G,v[yt].prototype);else{var at=Object.hasOwnProperty.call(G,"hcEvents")&&G.hcEvents;for(X in lt)G[X]=void 0;i(G,v[yt].prototype),at?G.hcEvents=at:delete G.hcEvents}}else t(17,!0,q,{missingModuleFor:yt});if(bt.forEach(function(St){G[St]=bt[St]}),G.init(q,O),ct&&this.points){if((Y=G.options).visible===!1)mt.graphic=1,mt.dataLabel=1;else if(!G._hasPointLabels){var dt=Y.marker,vt=Y.dataLabels,Ct=Q.marker||{};!dt||dt.enabled!==!1&&Ct.symbol===dt.symbol&&Ct.height===dt.height&&Ct.width===dt.width||(mt.graphic=1),vt&&vt.enabled===!1&&(mt.dataLabel=1)}for(var xt=0,wt=this.points;xt<wt.length;xt++){var Mt=wt[xt];Mt&&Mt.series&&(Mt.resolveColor(),Object.keys(mt).length&&Mt.destroyElements(mt),Y.showInLegend===!1&&Mt.legendItem&&q.legend.destroyItem(Mt))}}G.initialType=J,q.linkSeries(),et&&G.linkedSeries.length&&(G.isDirtyData=!0),e(this,"afterUpdate"),p(j,!0)&&q.redraw(!!ct&&void 0)},L.prototype.setName=function(O){this.name=this.options.name=this.userOptions.name=O,this.chart.isDirtyLegend=!0},L.prototype.hasOptionChanged=function(O){var j=this.chart,Y=this.options[O],X=j.options.plotOptions,G=this.userOptions[O];return G?Y!==G:Y!==p(X&&X[this.type]&&X[this.type][O],X&&X.series&&X.series[O],Y)},L.prototype.onMouseOver=function(){var O=this,j=O.chart,Y=j.hoverSeries;j.pointer.setHoverChartIndex(),Y&&Y!==O&&Y.onMouseOut(),O.options.events.mouseOver&&e(O,"mouseOver"),O.setState("hover"),j.hoverSeries=O},L.prototype.onMouseOut=function(){var O=this,j=O.options,Y=O.chart,X=Y.tooltip,G=Y.hoverPoint;Y.hoverSeries=null,G&&G.onMouseOut(),O&&j.events.mouseOut&&e(O,"mouseOut"),!X||O.stickyTracking||X.shared&&!O.noSharedTooltip||X.hide(),Y.series.forEach(function(q){q.setState("",!0)})},L.prototype.setState=function(O,j){var Y,X=this,G=X.options,q=X.graph,Q=G.inactiveOtherPoints,J=G.states,rt=p(J[O||"normal"]&&J[O||"normal"].animation,X.chart.options.chart.animation),lt=G.lineWidth,gt=0,mt=G.opacity;if(O=O||"",X.state!==O&&([X.group,X.markerGroup,X.dataLabelsGroup].forEach(function(bt){bt&&(X.state&&bt.removeClass("highcharts-series-"+X.state),O&&bt.addClass("highcharts-series-"+O))}),X.state=O,!X.chart.styledMode)){if(J[O]&&J[O].enabled===!1)return;if(O&&(lt=J[O].lineWidth||lt+(J[O].lineWidthPlus||0),mt=p(J[O].opacity,mt)),q&&!q.dashstyle&&l(lt))for(Y={"stroke-width":lt},q.animate(Y,rt);X["zone-graph-"+gt];)X["zone-graph-"+gt].animate(Y,rt),gt+=1;Q||[X.group,X.markerGroup,X.dataLabelsGroup,X.labelBySeries].forEach(function(bt){bt&&bt.animate({opacity:mt},rt)})}j&&Q&&X.points&&X.setAllPointsToState(O||void 0)},L.prototype.setAllPointsToState=function(O){this.points.forEach(function(j){j.setState&&j.setState(O)})},L.prototype.setVisible=function(O,j){var Y=this,X=Y.chart,G=X.options.chart.ignoreHiddenSeries,q=Y.visible;Y.visible=O=Y.options.visible=Y.userOptions.visible=O===void 0?!q:O;var Q=O?"show":"hide";["group","dataLabelsGroup","markerGroup","tracker","tt"].forEach(function(J){Y[J]&&Y[J][Q]()}),X.hoverSeries!==Y&&(X.hoverPoint&&X.hoverPoint.series)!==Y||Y.onMouseOut(),Y.legendItem&&X.legend.colorizeItem(Y,O),Y.isDirty=!0,Y.options.stacking&&X.series.forEach(function(J){J.options.stacking&&J.visible&&(J.isDirty=!0)}),Y.linkedSeries.forEach(function(J){J.setVisible(O,!1)}),G&&(X.isDirtyBox=!0),e(Y,Q),j!==!1&&X.redraw()},L.prototype.show=function(){this.setVisible(!0)},L.prototype.hide=function(){this.setVisible(!1)},L.prototype.select=function(O){var j=this;j.selected=O=this.options.selected=O===void 0?!j.selected:O,j.checkbox&&(j.checkbox.checked=O),e(j,O?"select":"unselect")},L.prototype.shouldShowTooltip=function(O,j,Y){return Y===void 0&&(Y={}),Y.series=this,Y.visiblePlotOnly=!0,this.chart.isInsidePlot(O,j,Y)},L.defaultOptions=U,L.types=z.seriesTypes,L.registerType=z.registerSeriesType,L}();return i(_.prototype,{axisTypes:["xAxis","yAxis"],coll:"series",colorCounter:0,cropShoulder:1,directTouch:!1,drawLegendSymbol:$.drawLineMarker,isCartesian:!0,kdAxisArray:["clientX","plotY"],parallelArrays:["x","y"],pointClass:Z,requireSorting:!0,sorted:!0}),z.series=_,_}),it(B,"Extensions/ScrollablePlotArea.js",[B["Core/Animation/AnimationUtilities.js"],B["Core/Axis/Axis.js"],B["Core/Chart/Chart.js"],B["Core/Series/Series.js"],B["Core/Renderer/RendererRegistry.js"],B["Core/Utilities.js"]],function(W,R,H,V,$,Z){var U=W.stop,z=Z.addEvent,I=Z.createElement,E=Z.defined,M=Z.merge,P=Z.pick;z(H,"afterSetChartSize",function(y){var h,f,m,u=this.options.chart.scrollablePlotArea,v=u&&u.minWidth,w=u&&u.minHeight;this.renderer.forExport||(v?(this.scrollablePixelsX=h=Math.max(0,v-this.chartWidth),h&&(this.scrollablePlotBox=this.renderer.scrollablePlotBox=M(this.plotBox),this.plotBox.width=this.plotWidth+=h,this.inverted?this.clipBox.height+=h:this.clipBox.width+=h,m={1:{name:"right",value:h}})):w&&(this.scrollablePixelsY=f=Math.max(0,w-this.chartHeight),E(f)&&(this.scrollablePlotBox=this.renderer.scrollablePlotBox=M(this.plotBox),this.plotBox.height=this.plotHeight+=f,this.inverted?this.clipBox.width+=f:this.clipBox.height+=f,m={2:{name:"bottom",value:f}})),m&&!y.skipAxes&&this.axes.forEach(function(S){m[S.side]?S.getPlotLinePath=function(){var x,c=m[S.side].name,g=m[S.side].value,r=this[c];return this[c]=r-g,x=R.prototype.getPlotLinePath.apply(this,arguments),this[c]=r,x}:(S.setAxisSize(),S.setAxisTranslation())}))}),z(H,"render",function(){this.scrollablePixelsX||this.scrollablePixelsY?(this.setUpScrolling&&this.setUpScrolling(),this.applyFixed()):this.fixedDiv&&this.applyFixed()}),H.prototype.setUpScrolling=function(){var y,h=this,f={WebkitOverflowScrolling:"touch",overflowX:"hidden",overflowY:"hidden"};this.scrollablePixelsX&&(f.overflowX="auto"),this.scrollablePixelsY&&(f.overflowY="auto"),this.scrollingParent=I("div",{className:"highcharts-scrolling-parent"},{position:"relative"},this.renderTo),this.scrollingContainer=I("div",{className:"highcharts-scrolling"},f,this.scrollingParent),z(this.scrollingContainer,"scroll",function(){h.pointer&&(delete h.pointer.chartPosition,h.hoverPoint&&(y=h.hoverPoint),h.pointer.runPointActions(void 0,y,!0))}),this.innerContainer=I("div",{className:"highcharts-inner-container"},null,this.scrollingContainer),this.innerContainer.appendChild(this.container),this.setUpScrolling=null},H.prototype.moveFixedElements=function(){var y,h=this.container,f=this.fixedRenderer,m=[".highcharts-breadcrumbs-group",".highcharts-contextbutton",".highcharts-credits",".highcharts-legend",".highcharts-legend-checkbox",".highcharts-navigator-series",".highcharts-navigator-xaxis",".highcharts-navigator-yaxis",".highcharts-navigator",".highcharts-reset-zoom",".highcharts-drillup-button",".highcharts-scrollbar",".highcharts-subtitle",".highcharts-title"];this.scrollablePixelsX&&!this.inverted?y=".highcharts-yaxis":this.scrollablePixelsX&&this.inverted||this.scrollablePixelsY&&!this.inverted?y=".highcharts-xaxis":this.scrollablePixelsY&&this.inverted&&(y=".highcharts-yaxis"),y&&m.push(y+":not(.highcharts-radial-axis)",y+"-labels:not(.highcharts-radial-axis-labels)"),m.forEach(function(u){[].forEach.call(h.querySelectorAll(u),function(v){(v.namespaceURI===f.SVG_NS?f.box:f.box.parentNode).appendChild(v),v.style.pointerEvents="auto"})})},H.prototype.applyFixed=function(){var y,h,f,m=!this.fixedDiv,u=this.options.chart,v=u.scrollablePlotArea,w=$.getRendererType();m?(this.fixedDiv=I("div",{className:"highcharts-fixed"},{position:"absolute",overflow:"hidden",pointerEvents:"none",zIndex:(u.style&&u.style.zIndex||0)+2,top:0},null,!0),this.scrollingContainer&&this.scrollingContainer.parentNode.insertBefore(this.fixedDiv,this.scrollingContainer),this.renderTo.style.overflow="visible",this.fixedRenderer=y=new w(this.fixedDiv,this.chartWidth,this.chartHeight,this.options.chart.style),this.scrollableMask=y.path().attr({fill:this.options.chart.backgroundColor||"#fff","fill-opacity":P(v.opacity,.85),zIndex:-1}).addClass("highcharts-scrollable-mask").add(),z(this,"afterShowResetZoom",this.moveFixedElements),z(this,"afterApplyDrilldown",this.moveFixedElements),z(this,"afterLayOutTitles",this.moveFixedElements)):this.fixedRenderer.setSize(this.chartWidth,this.chartHeight),(this.scrollableDirty||m)&&(this.scrollableDirty=!1,this.moveFixedElements()),h=this.chartWidth+(this.scrollablePixelsX||0),f=this.chartHeight+(this.scrollablePixelsY||0),U(this.container),this.container.style.width=h+"px",this.container.style.height=f+"px",this.renderer.boxWrapper.attr({width:h,height:f,viewBox:[0,0,h,f].join(" ")}),this.chartBackground.attr({width:h,height:f}),this.scrollingContainer.style.height=this.chartHeight+"px",m&&(v.scrollPositionX&&(this.scrollingContainer.scrollLeft=this.scrollablePixelsX*v.scrollPositionX),v.scrollPositionY&&(this.scrollingContainer.scrollTop=this.scrollablePixelsY*v.scrollPositionY));var S,x=this.axisOffset,c=this.plotTop-x[0]-1,g=this.plotLeft-x[3]-1,r=this.plotTop+this.plotHeight+x[2]+1,a=this.plotLeft+this.plotWidth+x[1]+1,t=this.plotLeft+this.plotWidth-(this.scrollablePixelsX||0),i=this.plotTop+this.plotHeight-(this.scrollablePixelsY||0);S=this.scrollablePixelsX?[["M",0,c],["L",this.plotLeft-1,c],["L",this.plotLeft-1,r],["L",0,r],["Z"],["M",t,c],["L",this.chartWidth,c],["L",this.chartWidth,r],["L",t,r],["Z"]]:this.scrollablePixelsY?[["M",g,0],["L",g,this.plotTop-1],["L",a,this.plotTop-1],["L",a,0],["Z"],["M",g,i],["L",g,this.chartHeight],["L",a,this.chartHeight],["L",a,i],["Z"]]:[["M",0,0]],this.redrawTrigger!=="adjustHeight"&&this.scrollableMask.attr({d:S})},z(R,"afterInit",function(){this.chart.scrollableDirty=!0}),z(V,"show",function(){this.chart.scrollableDirty=!0})}),it(B,"Core/Axis/Stacking/StackItem.js",[B["Core/FormatUtilities.js"],B["Core/Series/SeriesRegistry.js"],B["Core/Utilities.js"]],function(W,R,H){var V=W.format,$=R.series,Z=H.destroyObjectProperties,U=H.pick,z=H.isNumber;return function(){function I(E,M,P,y,h){var f=E.chart.inverted,m=E.reversed;this.axis=E;var u=this.isNegative=!!P!=!!m;this.options=M=M||{},this.x=y,this.total=null,this.cumulative=null,this.points={},this.hasValidPoints=!1,this.stack=h,this.leftCliff=0,this.rightCliff=0,this.alignOptions={align:M.align||(f?u?"left":"right":"center"),verticalAlign:M.verticalAlign||(f?"middle":u?"bottom":"top"),y:M.y,x:M.x},this.textAlign=M.textAlign||(f?u?"right":"left":"center")}return I.prototype.destroy=function(){Z(this,this.axis)},I.prototype.render=function(E){var M=this.axis.chart,P=this.options,y=P.format,h=y?V(y,this,M):P.formatter.call(this);if(this.label)this.label.attr({text:h,visibility:"hidden"});else{this.label=M.renderer.label(h,null,void 0,P.shape,void 0,void 0,P.useHTML,!1,"stack-labels");var f={r:P.borderRadius||0,text:h,padding:U(P.padding,5),visibility:"hidden"};M.styledMode||(f.fill=P.backgroundColor,f.stroke=P.borderColor,f["stroke-width"]=P.borderWidth,this.label.css(P.style||{})),this.label.attr(f),this.label.added||this.label.add(E)}this.label.labelrank=M.plotSizeY},I.prototype.setOffset=function(E,M,P,y,h,f){var m=this,u=m.alignOptions,v=m.axis,w=m.label,S=m.options,x=m.textAlign,c=v.chart,g=this.getStackBox({xOffset:E,width:M,boxBottom:P,boxTop:y,defaultX:h,xAxis:f}),r=u.verticalAlign;if(w&&g){var a=w.getBBox(),t=w.padding,i=U(S.overflow,"justify")==="justify",o=void 0;u.x=S.x||0,u.y=S.y||0;var e=this.adjustStackPosition({labelBox:a,verticalAlign:r,textAlign:x}),s=e.x,n=e.y;g.x-=s,g.y-=n,w.align(u,!1,g),(o=c.isInsidePlot(w.alignAttr.x+u.x+s,w.alignAttr.y+u.y+n))||(i=!1),i&&$.prototype.justifyDataLabel.call(v,w,u,w.alignAttr,a,g),w.attr({x:w.alignAttr.x,y:w.alignAttr.y,rotation:S.rotation,rotationOriginX:a.width/2,rotationOriginY:a.height/2}),U(!i&&S.crop,!0)&&(o=z(w.x)&&z(w.y)&&c.isInsidePlot(w.x-t+w.width,w.y)&&c.isInsidePlot(w.x+t,w.y)),w[o?"show":"hide"]()}},I.prototype.adjustStackPosition=function(E){var M=E.labelBox,P=E.verticalAlign,y=E.textAlign,h={bottom:0,middle:1,top:2,right:1,center:0,left:-1},f=h[P],m=h[y];return{x:M.width/2+M.width/2*m,y:M.height/2*f}},I.prototype.getStackBox=function(E){var M=this.axis,P=M.chart,y=E.boxTop,h=E.defaultX,f=E.xOffset,m=E.width,u=E.boxBottom,v=M.stacking.usePercentage?100:U(y,this.total,0),w=M.toPixels(v),S=E.xAxis||P.xAxis[0],x=U(h,S.toPixels(this.x))+f,c=M.toPixels(u||0),g=Math.abs(w-c),r=P.inverted,a=this.isNegative;return r?{x:(a?w:w-g)-P.plotLeft,y:x-P.plotTop,width:g,height:m}:{x:x-P.plotLeft,y:(a?w-g:w)-P.plotTop,width:m,height:g}},I}()}),it(B,"Core/Axis/Stacking/StackingAxis.js",[B["Core/Animation/AnimationUtilities.js"],B["Core/Axis/Axis.js"],B["Core/Series/SeriesRegistry.js"],B["Core/Axis/Stacking/StackItem.js"],B["Core/Utilities.js"]],function(W,R,H,V,$){var Z=W.getDeferredAnimation,U=H.series.prototype,z=$.addEvent,I=$.correctFloat,E=$.defined,M=$.destroyObjectProperties,P=$.fireEvent,y=$.isArray,h=$.isNumber,f=$.objectEach,m=$.pick;function u(){var i=this,o=i.inverted;i.yAxis.forEach(function(e){e.stacking&&e.stacking.stacks&&e.hasVisibleSeries&&(e.stacking.oldStacks=e.stacking.stacks)}),i.series.forEach(function(e){var s=e.xAxis&&e.xAxis.options||{};!e.options.stacking||e.visible!==!0&&i.options.chart.ignoreHiddenSeries!==!1||(e.stackKey=[e.type,m(e.options.stack,""),o?s.top:s.left,o?s.height:s.width].join(","))})}function v(){var i=this.stacking;if(i){var o=i.stacks;f(o,function(e,s){M(e),o[s]=null}),i&&i.stackTotalGroup&&i.stackTotalGroup.destroy()}}function w(){this.coll!=="yAxis"||this.stacking||(this.stacking=new t(this))}function S(i,o,e,s){return!E(i)||i.x!==o||s&&i.stackKey!==s?i={x:o,index:0,key:s,stackKey:s}:i.index++,i.key=[e,o,i.index].join(","),i}function x(){var i,o=this,e=o.yAxis,s=o.stackKey,n=e.stacking.stacks,l=o.processedXData,b=o.options.stacking,k=o[b+"Stacker"];k&&[s,"-"+s].forEach(function(D){for(var p,C,A,N=l.length;N--;)p=l[N],i=o.getStackIndicator(i,p,o.index,D),(A=(C=n[D]&&n[D][p])&&C.points[i.key])&&k.call(o,A,C,N)})}function c(i,o,e){var s=o.total?100/o.total:0;i[0]=I(i[0]*s),i[1]=I(i[1]*s),this.stackedYData[e]=i[1]}function g(){var i=this.yAxis.stacking;this.options.centerInCategory&&(this.is("column")||this.is("columnrange"))&&!this.options.stacking&&this.chart.series.length>1?U.setStackedPoints.call(this,"group"):i&&f(i.stacks,function(o,e){e.slice(-5)==="group"&&(f(o,function(s){return s.destroy()}),delete i.stacks[e])})}function r(i){var o=this.chart,e=i||this.options.stacking;if(e&&(this.visible===!0||o.options.chart.ignoreHiddenSeries===!1)){var s,n,l,b,k,D,p,C,A,N=this,_=N.processedXData,L=N.processedYData,O=[],j=L.length,Y=N.options,X=Y.threshold,G=m(Y.startFromThreshold&&X,0),q=Y.stack,Q=i?""+N.type+",".concat(e):N.stackKey,J="-"+Q,rt=N.negStacks,lt=e==="group"?o.yAxis[0]:N.yAxis,gt=lt.stacking.stacks,mt=lt.stacking.oldStacks;for(lt.stacking.stacksTouched+=1,p=0;p<j;p++)C=_[p],A=L[p],D=(s=N.getStackIndicator(s,C,N.index)).key,gt[k=(n=rt&&A<(G?0:X))?J:Q]||(gt[k]={}),gt[k][C]||(mt[k]&&mt[k][C]?(gt[k][C]=mt[k][C],gt[k][C].total=null):gt[k][C]=new V(lt,lt.options.stackLabels,!!n,C,q)),l=gt[k][C],A!==null?(l.points[D]=l.points[N.index]=[m(l.cumulative,G)],E(l.cumulative)||(l.base=D),l.touched=lt.stacking.stacksTouched,s.index>0&&N.singleStacks===!1&&(l.points[D][0]=l.points[N.index+","+C+",0"][0])):l.points[D]=l.points[N.index]=null,e==="percent"?(b=n?Q:J,rt&&gt[b]&&gt[b][C]?(b=gt[b][C],l.total=b.total=Math.max(b.total,l.total)+Math.abs(A)||0):l.total=I(l.total+(Math.abs(A)||0))):e==="group"?(y(A)&&(A=A[0]),A!==null&&(l.total=(l.total||0)+1)):l.total=I(l.total+(A||0)),l.cumulative=e==="group"?(l.total||1)-1:m(l.cumulative,G)+(A||0),A!==null&&(l.points[D].push(l.cumulative),O[p]=l.cumulative,l.hasValidPoints=!0);e==="percent"&&(lt.stacking.usePercentage=!0),e!=="group"&&(this.stackedYData=O),lt.stacking.oldStacks={}}}var a,t=function(){function i(o){this.oldStacks={},this.stacks={},this.stacksTouched=0,this.axis=o}return i.prototype.buildStacks=function(){var o,e,s=this.axis,n=s.series,l=s.options.reversedStacks,b=n.length;for(this.usePercentage=!1,e=b;e--;)(o=n[l?e:b-e-1]).setStackedPoints(),o.setGroupedPoints();for(e=0;e<b;e++)n[e].modifyStacks();P(s,"afterBuildStacks")},i.prototype.cleanStacks=function(){var o,e=this;e.oldStacks&&(o=e.stacks=e.oldStacks),f(o,function(s){f(s,function(n){n.cumulative=n.total})})},i.prototype.resetStacks=function(){var o=this;f(this.stacks,function(e){f(e,function(s,n){h(s.touched)&&s.touched<o.stacksTouched?(s.destroy(),delete e[n]):(s.total=null,s.cumulative=null)})})},i.prototype.renderStackTotals=function(){var o=this,e=o.axis,s=e.chart,n=s.renderer,l=o.stacks,b=e.options.stackLabels&&e.options.stackLabels.animation,k=Z(s,b||!1),D=o.stackTotalGroup=o.stackTotalGroup||n.g("stack-labels").attr({zIndex:6,opacity:0}).add();D.translate(s.plotLeft,s.plotTop),f(l,function(p){f(p,function(C){C.render(D)})}),D.animate({opacity:1},k)},i}();return function(i){var o=[];i.compose=function(e,s,n){if(o.indexOf(e)===-1&&(o.push(e),z(e,"init",w),z(e,"destroy",v)),o.indexOf(s)===-1&&(o.push(s),s.prototype.getStacks=u),o.indexOf(n)===-1){o.push(n);var l=n.prototype;l.getStackIndicator=S,l.modifyStacks=x,l.percentStacker=c,l.setGroupedPoints=g,l.setStackedPoints=r}}}(a||(a={})),a}),it(B,"Series/Line/LineSeries.js",[B["Core/Series/Series.js"],B["Core/Series/SeriesRegistry.js"],B["Core/Utilities.js"]],function(W,R,H){var V,$=this&&this.__extends||(V=function(I,E){return V=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(M,P){M.__proto__=P}||function(M,P){for(var y in P)P.hasOwnProperty(y)&&(M[y]=P[y])},V(I,E)},function(I,E){function M(){this.constructor=I}V(I,E),I.prototype=E===null?Object.create(E):(M.prototype=E.prototype,new M)}),Z=H.defined,U=H.merge,z=function(I){function E(){var M=I!==null&&I.apply(this,arguments)||this;return M.data=void 0,M.options=void 0,M.points=void 0,M}return $(E,I),E.prototype.drawGraph=function(){var M=this,P=this.options,y=(this.gappedPath||this.getGraphPath).call(this),h=this.chart.styledMode,f=[["graph","highcharts-graph"]];h||f[0].push(P.lineColor||this.color||"#cccccc",P.dashStyle),(f=M.getZonesGraphs(f)).forEach(function(m,u){var v,w=m[0],S=M[w],x=S?"animate":"attr";S?(S.endX=M.preventGraphAnimation?null:y.xMap,S.animate({d:y})):y.length&&(M[w]=S=M.chart.renderer.path(y).addClass(m[1]).attr({zIndex:1}).add(M.group)),S&&!h&&(v={stroke:m[2],"stroke-width":P.lineWidth||0,fill:M.fillGraph&&M.color||"none"},m[3]?v.dashstyle=m[3]:P.linecap!=="square"&&(v["stroke-linecap"]=v["stroke-linejoin"]="round"),S[x](v).shadow(u<2&&P.shadow)),S&&(S.startX=y.xMap,S.isArea=y.isArea)})},E.prototype.getGraphPath=function(M,P,y){var h,f=this,m=f.options,u=[],v=[],w=m.step,S=(M=M||f.points).reversed;return S&&M.reverse(),(w={right:1,center:2}[w]||w&&3)&&S&&(w=4-w),(M=this.getValidPoints(M,!1,!(m.connectNulls&&!P&&!y))).forEach(function(x,c){var g,r=x.plotX,a=x.plotY,t=M[c-1];(x.leftCliff||t&&t.rightCliff)&&!y&&(h=!0),x.isNull&&!Z(P)&&c>0?h=!m.connectNulls:x.isNull&&!P?h=!0:(c===0||h?g=[["M",x.plotX,x.plotY]]:f.getPointSpline?g=[f.getPointSpline(M,x,c)]:w?(g=w===1?[["L",t.plotX,a]]:w===2?[["L",(t.plotX+r)/2,t.plotY],["L",(t.plotX+r)/2,a]]:[["L",r,t.plotY]]).push(["L",r,a]):g=[["L",r,a]],v.push(x.x),w&&(v.push(x.x),w===2&&v.push(x.x)),u.push.apply(u,g),h=!1)}),u.xMap=v,f.graphPath=u,u},E.prototype.getZonesGraphs=function(M){return this.zones.forEach(function(P,y){var h=["zone-graph-"+y,"highcharts-graph highcharts-zone-graph-"+y+" "+(P.className||"")];this.chart.styledMode||h.push(P.color||this.color,P.dashStyle||this.options.dashStyle),M.push(h)},this),M},E.defaultOptions=U(W.defaultOptions,{}),E}(W);return R.registerSeriesType("line",z),z}),it(B,"Series/Area/AreaSeries.js",[B["Core/Color/Color.js"],B["Core/Legend/LegendSymbol.js"],B["Core/Series/SeriesRegistry.js"],B["Core/Utilities.js"]],function(W,R,H,V){var $,Z=this&&this.__extends||($=function(h,f){return $=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(m,u){m.__proto__=u}||function(m,u){for(var v in u)u.hasOwnProperty(v)&&(m[v]=u[v])},$(h,f)},function(h,f){function m(){this.constructor=h}$(h,f),h.prototype=f===null?Object.create(f):(m.prototype=f.prototype,new m)}),U=W.parse,z=H.seriesTypes.line,I=V.extend,E=V.merge,M=V.objectEach,P=V.pick,y=function(h){function f(){var m=h!==null&&h.apply(this,arguments)||this;return m.data=void 0,m.options=void 0,m.points=void 0,m}return Z(f,h),f.prototype.drawGraph=function(){this.areaPath=[],h.prototype.drawGraph.apply(this);var m=this,u=this.areaPath,v=this.options,w=this.zones,S=[["area","highcharts-area",this.color,v.fillColor]];w.forEach(function(x,c){S.push(["zone-area-"+c,"highcharts-area highcharts-zone-area-"+c+" "+x.className,x.color||m.color,x.fillColor||v.fillColor])}),S.forEach(function(x){var c=x[0],g={},r=m[c],a=r?"animate":"attr";r?(r.endX=m.preventGraphAnimation?null:u.xMap,r.animate({d:u})):(g.zIndex=0,(r=m[c]=m.chart.renderer.path(u).addClass(x[1]).add(m.group)).isArea=!0),m.chart.styledMode||(g.fill=P(x[3],U(x[2]).setOpacity(P(v.fillOpacity,.75)).get())),r[a](g),r.startX=u.xMap,r.shiftUnit=v.step?2:1})},f.prototype.getGraphPath=function(m){var u,v,w,S=z.prototype.getGraphPath,x=this.options,c=x.stacking,g=this.yAxis,r=[],a=[],t=this.index,i=g.stacking.stacks[this.stackKey],o=x.threshold,e=Math.round(g.getThreshold(x.threshold)),s=P(x.connectNulls,c==="percent"),n=function(N,_,L){var O,j,Y=m[N],X=c&&i[Y.x].points[t],G=Y[L+"Null"]||0,q=Y[L+"Cliff"]||0,Q=!0;q||G?(O=(G?X[0]:X[1])+q,j=X[0]+q,Q=!!G):!c&&m[_]&&m[_].isNull&&(O=j=o),O!==void 0&&(a.push({plotX:u,plotY:O===null?e:g.getThreshold(O),isNull:Q,isCliff:!0}),r.push({plotX:u,plotY:j===null?e:g.getThreshold(j),doCurve:!1}))};m=m||this.points,c&&(m=this.getStackPoints(m));for(var l=0,b=m.length;l<b;++l)c||(m[l].leftCliff=m[l].rightCliff=m[l].leftNull=m[l].rightNull=void 0),v=m[l].isNull,u=P(m[l].rectPlotX,m[l].plotX),w=c?P(m[l].yBottom,e):e,v&&!s||(s||n(l,l-1,"left"),v&&!c&&s||(a.push(m[l]),r.push({x:l,plotX:u,plotY:w})),s||n(l,l+1,"right"));var k=S.call(this,a,!0,!0);r.reversed=!0;var D=S.call(this,r,!0,!0),p=D[0];p&&p[0]==="M"&&(D[0]=["L",p[1],p[2]]);var C=k.concat(D);C.length&&C.push(["Z"]);var A=S.call(this,a,!1,s);return C.xMap=k.xMap,this.areaPath=C,A},f.prototype.getStackPoints=function(m){var u=this,v=[],w=[],S=this.xAxis,x=this.yAxis,c=x.stacking.stacks[this.stackKey],g={},r=x.series,a=r.length,t=x.options.reversedStacks?1:-1,i=r.indexOf(u);if(m=m||this.points,this.options.stacking){for(var o=0;o<m.length;o++)m[o].leftNull=m[o].rightNull=void 0,g[m[o].x]=m[o];M(c,function(s,n){s.total!==null&&w.push(n)}),w.sort(function(s,n){return s-n});var e=r.map(function(s){return s.visible});w.forEach(function(s,n){var l,b,k=0;if(g[s]&&!g[s].isNull)v.push(g[s]),[-1,1].forEach(function(C){var A=C===1?"rightNull":"leftNull",N=C===1?"rightCliff":"leftCliff",_=c[w[n+C]],L=0;if(_)for(var O=i;O>=0&&O<a;){var j=r[O].index;(l=_.points[j])||(j===u.index?g[s][A]=!0:e[O]&&(b=c[s].points[j])&&(L-=b[1]-b[0])),O+=t}g[s][N]=L});else{for(var D=i;D>=0&&D<a;){var p=r[D].index;if(l=c[s].points[p]){k=l[1];break}D+=t}k=P(k,0),k=x.translate(k,0,1,0,1),v.push({isNull:!0,plotX:S.translate(s,0,0,0,1),x:s,plotY:k,yBottom:k})}})}return v},f.defaultOptions=E(z.defaultOptions,{threshold:0}),f}(z);return I(y.prototype,{singleStacks:!1,drawLegendSymbol:R.drawRectangle}),H.registerSeriesType("area",y),y}),it(B,"Series/Spline/SplineSeries.js",[B["Core/Series/SeriesRegistry.js"],B["Core/Utilities.js"]],function(W,R){var H,V=this&&this.__extends||(H=function(I,E){return H=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(M,P){M.__proto__=P}||function(M,P){for(var y in P)P.hasOwnProperty(y)&&(M[y]=P[y])},H(I,E)},function(I,E){function M(){this.constructor=I}H(I,E),I.prototype=E===null?Object.create(E):(M.prototype=E.prototype,new M)}),$=W.seriesTypes.line,Z=R.merge,U=R.pick,z=function(I){function E(){var M=I!==null&&I.apply(this,arguments)||this;return M.data=void 0,M.options=void 0,M.points=void 0,M}return V(E,I),E.prototype.getPointSpline=function(M,P,y){var h,f,m,u,v=1.5,w=2.5,S=P.plotX||0,x=P.plotY||0,c=M[y-1],g=M[y+1];function r(n){return n&&!n.isNull&&n.doCurve!==!1&&!P.isCliff}if(r(c)&&r(g)){var a=c.plotX||0,t=c.plotY||0,i=g.plotX||0,o=g.plotY||0,e=0;f=(v*x+t)/w,u=(v*x+o)/w,(m=(v*S+i)/w)!=(h=(v*S+a)/w)&&(e=(u-f)*(m-S)/(m-h)+x-u),u+=e,(f+=e)>t&&f>x?u=2*x-(f=Math.max(t,x)):f<t&&f<x&&(u=2*x-(f=Math.min(t,x))),u>o&&u>x?f=2*x-(u=Math.max(o,x)):u<o&&u<x&&(f=2*x-(u=Math.min(o,x))),P.rightContX=m,P.rightContY=u}var s=["C",U(c.rightContX,c.plotX,0),U(c.rightContY,c.plotY,0),U(h,S,0),U(f,x,0),S,x];return c.rightContX=c.rightContY=void 0,s},E.defaultOptions=Z($.defaultOptions),E}($);return W.registerSeriesType("spline",z),z}),it(B,"Series/AreaSpline/AreaSplineSeries.js",[B["Series/Spline/SplineSeries.js"],B["Core/Legend/LegendSymbol.js"],B["Core/Series/SeriesRegistry.js"],B["Core/Utilities.js"]],function(W,R,H,V){var $,Z=this&&this.__extends||($=function(y,h){return $=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,m){f.__proto__=m}||function(f,m){for(var u in m)m.hasOwnProperty(u)&&(f[u]=m[u])},$(y,h)},function(y,h){function f(){this.constructor=y}$(y,h),y.prototype=h===null?Object.create(h):(f.prototype=h.prototype,new f)}),U=H.seriesTypes,z=U.area,I=U.area.prototype,E=V.extend,M=V.merge,P=function(y){function h(){var f=y!==null&&y.apply(this,arguments)||this;return f.data=void 0,f.points=void 0,f.options=void 0,f}return Z(h,y),h.defaultOptions=M(W.defaultOptions,z.defaultOptions),h}(W);return E(P.prototype,{getGraphPath:I.getGraphPath,getStackPoints:I.getStackPoints,drawGraph:I.drawGraph,drawLegendSymbol:R.drawRectangle}),H.registerSeriesType("areaspline",P),P}),it(B,"Series/Column/ColumnSeriesDefaults.js",[],function(){return{borderRadius:0,centerInCategory:!1,groupPadding:.2,marker:null,pointPadding:.1,minPointLength:0,cropThreshold:50,pointRange:null,states:{hover:{halo:!1,brightness:.1},select:{color:"#cccccc",borderColor:"#000000"}},dataLabels:{align:void 0,verticalAlign:void 0,y:void 0},startFromThreshold:!0,stickyTracking:!1,tooltip:{distance:6},threshold:0,borderColor:"#ffffff"}}),it(B,"Series/Column/ColumnSeries.js",[B["Core/Animation/AnimationUtilities.js"],B["Core/Color/Color.js"],B["Series/Column/ColumnSeriesDefaults.js"],B["Core/Globals.js"],B["Core/Legend/LegendSymbol.js"],B["Core/Series/Series.js"],B["Core/Series/SeriesRegistry.js"],B["Core/Utilities.js"]],function(W,R,H,V,$,Z,U,z){var I,E=this&&this.__extends||(I=function(a,t){return I=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,o){i.__proto__=o}||function(i,o){for(var e in o)o.hasOwnProperty(e)&&(i[e]=o[e])},I(a,t)},function(a,t){function i(){this.constructor=a}I(a,t),a.prototype=t===null?Object.create(t):(i.prototype=t.prototype,new i)}),M=W.animObject,P=R.parse,y=V.hasTouch,h=V.noop,f=z.clamp,m=z.defined,u=z.extend,v=z.fireEvent,w=z.isArray,S=z.isNumber,x=z.merge,c=z.pick,g=z.objectEach,r=function(a){function t(){var i=a!==null&&a.apply(this,arguments)||this;return i.borderWidth=void 0,i.data=void 0,i.group=void 0,i.options=void 0,i.points=void 0,i}return E(t,a),t.prototype.animate=function(i){var o,e,s=this,n=this.yAxis,l=s.options,b=this.chart.inverted,k={},D=b?"translateX":"translateY";i?(k.scaleY=.001,e=f(n.toPixels(l.threshold),n.pos,n.pos+n.len),b?k.translateX=e-n.len:k.translateY=e,s.clipBox&&s.setClip(),s.group.attr(k)):(o=Number(s.group.attr(D)),s.group.animate({scaleY:1},u(M(s.options.animation),{step:function(p,C){s.group&&(k[D]=o+C.pos*(n.pos-o),s.group.attr(k))}})))},t.prototype.init=function(i,o){a.prototype.init.apply(this,arguments);var e=this;(i=e.chart).hasRendered&&i.series.forEach(function(s){s.type===e.type&&(s.isDirty=!0)})},t.prototype.getColumnMetrics=function(){var i,o=this,e=o.options,s=o.xAxis,n=o.yAxis,l=s.options.reversedStacks,b=s.reversed&&!l||!s.reversed&&l,k={},D=0;e.grouping===!1?D=1:o.chart.series.forEach(function(L){var O,j=L.yAxis,Y=L.options;L.type!==o.type||!L.visible&&o.chart.options.chart.ignoreHiddenSeries||n.len!==j.len||n.pos!==j.pos||(Y.stacking&&Y.stacking!=="group"?(i=L.stackKey,k[i]===void 0&&(k[i]=D++),O=k[i]):Y.grouping!==!1&&(O=D++),L.columnIndex=O)});var p=Math.min(Math.abs(s.transA)*(s.ordinal&&s.ordinal.slope||e.pointRange||s.closestPointRange||s.tickInterval||1),s.len),C=p*e.groupPadding,A=(p-2*C)/(D||1),N=Math.min(e.maxPointWidth||s.len,c(e.pointWidth,A*(1-2*e.pointPadding))),_=(A-N)/2+(C+((o.columnIndex||0)+(b?1:0))*A-p/2)*(b?-1:1);return o.columnMetrics={width:N,offset:_,paddedWidth:A,columnCount:D},o.columnMetrics},t.prototype.crispCol=function(i,o,e,s){var n=this.chart,l=this.borderWidth,b=-(l%2?.5:0),k=l%2?.5:1;n.inverted&&n.renderer.isVML&&(k+=1),this.options.crisp&&(e=Math.round(i+e)+b-(i=Math.round(i)+b));var D=Math.round(o+s)+k,p=Math.abs(o)<=.5&&D>.5;return s=D-(o=Math.round(o)+k),p&&s&&(o-=1,s+=1),{x:i,y:o,width:e,height:s}},t.prototype.adjustForMissingColumns=function(i,o,e,s){var n=this,l=this.options.stacking;if(!e.isNull&&s.columnCount>1){var b=this.yAxis.options.reversedStacks,k=0,D=b?0:-s.columnCount;g(this.yAxis.stacking&&this.yAxis.stacking.stacks,function(C){if(typeof e.x=="number"){var A=C[e.x.toString()];if(A){var N=A.points[n.index];if(l)N&&(k=D),A.hasValidPoints&&(b?D++:D--);else if(w(N)){var _=Object.keys(A.points).filter(function(L){return!L.match(",")&&A.points[L]&&A.points[L].length>1}).map(parseFloat).sort(function(L,O){return O-L});k=_.indexOf(n.index),D=_.length}}}});var p=(D-1)*s.paddedWidth+o;i=(e.plotX||0)+p/2-o-k*s.paddedWidth}return i},t.prototype.translate=function(){var i=this,o=i.chart,e=i.options,s=i.dense=i.closestPointRange*i.xAxis.transA<2,n=i.borderWidth=c(e.borderWidth,s?0:1),l=i.xAxis,b=i.yAxis,k=e.threshold,D=i.translatedThreshold=b.getThreshold(k),p=c(e.minPointLength,5),C=i.getColumnMetrics(),A=C.width,N=i.pointXOffset=C.offset,_=i.dataMin,L=i.dataMax,O=i.barW=Math.max(A,1+2*n);o.inverted&&(D-=.5),e.pointPadding&&(O=Math.ceil(O)),Z.prototype.translate.apply(i),i.points.forEach(function(j){var Y,X=c(j.yBottom,D),G=999+Math.abs(X),q=j.plotX||0,Q=f(j.plotY,-G,b.len+G),J=Math.min(Q,X),rt=Math.max(Q,X)-J,lt=A,gt=q+N,mt=O;p&&Math.abs(rt)<p&&(rt=p,Y=!b.reversed&&!j.negative||b.reversed&&j.negative,S(k)&&S(L)&&j.y===k&&L<=k&&(b.min||0)<k&&(_!==L||(b.max||0)<=k)&&(Y=!Y),J=Math.abs(J-D)>p?X-p:D-(Y?p:0)),m(j.options.pointWidth)&&(lt=mt=Math.ceil(j.options.pointWidth),gt-=Math.round((lt-A)/2)),e.centerInCategory&&(gt=i.adjustForMissingColumns(gt,lt,j,C)),j.barX=gt,j.pointWidth=lt,j.tooltipPos=o.inverted?[f(b.len+b.pos-o.plotLeft-Q,b.pos-o.plotLeft,b.len+b.pos-o.plotLeft),l.len+l.pos-o.plotTop-gt-mt/2,rt]:[l.left-o.plotLeft+gt+mt/2,f(Q+b.pos-o.plotTop,b.pos-o.plotTop,b.len+b.pos-o.plotTop),rt],j.shapeType=i.pointClass.prototype.shapeType||"rect",j.shapeArgs=i.crispCol.apply(i,j.isNull?[gt,D,mt,0]:[gt,J,mt,rt])})},t.prototype.drawGraph=function(){this.group[this.dense?"addClass":"removeClass"]("highcharts-dense-data")},t.prototype.pointAttribs=function(i,o){var e,s,n,l=this.options,b=this.pointAttrToOptions||{},k=b.stroke||"borderColor",D=b["stroke-width"]||"borderWidth",p=i&&i.color||this.color,C=i&&i[k]||l[k]||p,A=i&&i.options.dashStyle||l.dashStyle,N=i&&i[D]||l[D]||this[D]||0,_=c(i&&i.opacity,l.opacity,1);i&&this.zones.length&&(s=i.getZone(),p=i.options.color||s&&(s.color||i.nonZonedColor)||this.color,s&&(C=s.borderColor||C,A=s.dashStyle||A,N=s.borderWidth||N)),o&&i&&(n=(e=x(l.states[o],i.options.states&&i.options.states[o]||{})).brightness,p=e.color||n!==void 0&&P(p).brighten(e.brightness).get()||p,C=e[k]||C,N=e[D]||N,A=e.dashStyle||A,_=c(e.opacity,_));var L={fill:p,stroke:C,"stroke-width":N,opacity:_};return A&&(L.dashstyle=A),L},t.prototype.drawPoints=function(i){i===void 0&&(i=this.points);var o,e=this,s=this.chart,n=e.options,l=s.renderer,b=n.animationLimit||250;i.forEach(function(k){var D=k.plotY,p=k.graphic,C=!!p,A=p&&s.pointCount<b?"animate":"attr";S(D)&&k.y!==null?(o=k.shapeArgs,p&&k.hasNewShapeType()&&(p=p.destroy()),e.enabledDataSorting&&(k.startXPos=e.xAxis.reversed?-(o&&o.width||0):e.xAxis.width),p||(k.graphic=p=l[k.shapeType](o).add(k.group||e.group),p&&e.enabledDataSorting&&s.hasRendered&&s.pointCount<b&&(p.attr({x:k.startXPos}),C=!0,A="animate")),p&&C&&p[A](x(o)),n.borderRadius&&p[A]({r:n.borderRadius}),s.styledMode||p[A](e.pointAttribs(k,k.selected&&"select")).shadow(k.allowShadow!==!1&&n.shadow,null,n.stacking&&!n.borderRadius),p&&(p.addClass(k.getClassName(),!0),p.attr({visibility:k.visible?"inherit":"hidden"}))):p&&(k.graphic=p.destroy())})},t.prototype.drawTracker=function(i){i===void 0&&(i=this.points);var o,e=this,s=e.chart,n=s.pointer,l=function(b){var k=n.getPointFromEvent(b);k!==void 0&&(n.isDirectTouch=!0,k.onMouseOver(b))};i.forEach(function(b){o=w(b.dataLabels)?b.dataLabels:b.dataLabel?[b.dataLabel]:[],b.graphic&&(b.graphic.element.point=b),o.forEach(function(k){k.div?k.div.point=b:k.element.point=b})}),e._hasTracking||(e.trackerGroups.forEach(function(b){e[b]&&(e[b].addClass("highcharts-tracker").on("mouseover",l).on("mouseout",function(k){n.onTrackerMouseOut(k)}),y&&e[b].on("touchstart",l),!s.styledMode&&e.options.cursor&&e[b].css({cursor:e.options.cursor}))}),e._hasTracking=!0),v(this,"afterDrawTracker")},t.prototype.remove=function(){var i=this,o=i.chart;o.hasRendered&&o.series.forEach(function(e){e.type===i.type&&(e.isDirty=!0)}),Z.prototype.remove.apply(i,arguments)},t.defaultOptions=x(Z.defaultOptions,H),t}(Z);return u(r.prototype,{cropShoulder:0,directTouch:!0,drawLegendSymbol:$.drawRectangle,getSymbol:h,negStacks:!0,trackerGroups:["group","dataLabelsGroup"]}),U.registerSeriesType("column",r),r}),it(B,"Core/Series/DataLabel.js",[B["Core/Animation/AnimationUtilities.js"],B["Core/FormatUtilities.js"],B["Core/Utilities.js"]],function(W,R,H){var V,$=W.getDeferredAnimation,Z=R.format,U=H.defined,z=H.extend,I=H.fireEvent,E=H.isArray,M=H.isString,P=H.merge,y=H.objectEach,h=H.pick,f=H.splat;return function(m){var u=[];function v(g,r,a,t,i){var o,e,s,n=this,l=this.chart,b=this.isCartesian&&l.inverted,k=this.enabledDataSorting,D=g.plotX,p=g.plotY,C=a.rotation,A=a.align,N=U(D)&&U(p)&&l.isInsidePlot(D,Math.round(p),{inverted:b,paneCoordinates:!0,series:n}),_=function(Q){k&&n.xAxis&&!L&&n.setDataLabelStartPos(g,r,i,N,Q)},L=h(a.overflow,k?"none":"justify")==="justify",O=this.visible&&g.visible!==!1&&U(D)&&(g.series.forceDL||k&&!L||N||h(a.inside,!!this.options.stacking)&&t&&l.isInsidePlot(D,b?t.x+1:t.y+t.height-1,{inverted:b,paneCoordinates:!0,series:n})),j=g.pos();if(O&&j){C&&r.attr({align:A});var Y=r.getBBox(!0),X=[0,0];if(o=l.renderer.fontMetrics(l.styledMode?void 0:a.style.fontSize,r).b,t=z({x:j[0],y:Math.round(j[1]),width:0,height:0},t),z(a,{width:Y.width,height:Y.height}),C?(L=!1,e=l.renderer.rotCorr(o,C),s={x:t.x+(a.x||0)+t.width/2+e.x,y:t.y+(a.y||0)+{top:0,middle:.5,bottom:1}[a.verticalAlign]*t.height},X=[Y.x-Number(r.attr("x")),Y.y-Number(r.attr("y"))],_(s),r[i?"attr":"animate"](s)):(_(t),r.align(a,void 0,t),s=r.alignAttr),L&&t.height>=0)this.justifyDataLabel(r,a,s,Y,t,i);else if(h(a.crop,!0)){var G=s.x,q=s.y;G+=X[0],q+=X[1],O=l.isInsidePlot(G,q,{paneCoordinates:!0,series:n})&&l.isInsidePlot(G+Y.width,q+Y.height,{paneCoordinates:!0,series:n})}a.shape&&!C&&r[i?"attr":"animate"]({anchorX:j[0],anchorY:j[1]})}i&&k&&(r.placed=!1),O||k&&!L?r.show():(r.hide(),r.placed=!1)}function w(g){g===void 0&&(g=this.points);var r,a=this,t=a.chart,i=a.options,o=a.hasRendered||0,e=t.renderer,s=t.options.chart,n=s.backgroundColor,l=s.plotBackgroundColor,b=e.getContrast(M(l)&&l||M(n)&&n||"#000000"),k=i.dataLabels,D=k.animation,p=k.defer?$(t,D,a):{defer:0,duration:0};if(k=x(x(t.options.plotOptions&&t.options.plotOptions.series&&t.options.plotOptions.series.dataLabels,t.options.plotOptions&&t.options.plotOptions[a.type]&&t.options.plotOptions[a.type].dataLabels),k),I(this,"drawDataLabels"),E(k)||k.enabled||a._hasPointLabels){if((r=a.plotGroup("dataLabelsGroup","data-labels",o?"inherit":"hidden",k.zIndex||6)).attr({opacity:+o}),!o){var C=a.dataLabelsGroup;C&&(a.visible&&r.show(),C[i.animation?"animate":"attr"]({opacity:1},p))}g.forEach(function(A){f(x(k,A.dlOptions||A.options&&A.options.dataLabels)).forEach(function(N,_){var L,O,j,Y,X,G,q=N.enabled&&(!A.isNull||A.dataLabelOnNull)&&function(yt,ct){var et=ct.filter;if(et){var at=et.operator,dt=yt[et.property],vt=et.value;return at===">"&&dt>vt||at==="<"&&dt<vt||at===">="&&dt>=vt||at==="<="&&dt<=vt||at==="=="&&dt==vt||at==="==="&&dt===vt}return!0}(A,N),Q=A.connectors?A.connectors[_]:A.connector,J=A.dataLabels?A.dataLabels[_]:A.dataLabel,rt=!J,lt=h(N.distance,A.labelDistance);if(q){if(L=A.getLabelConfig(),O=h(N[A.formatPrefix+"Format"],N.format),j=U(O)?Z(O,L,t):(N[A.formatPrefix+"Formatter"]||N.formatter).call(L,N),Y=N.style,X=N.rotation,t.styledMode||(Y.color=h(N.color,Y.color,a.color,"#000000"),Y.color==="contrast"?(A.contrastColor=e.getContrast(A.color||a.color),Y.color=!U(lt)&&N.inside||lt<0||i.stacking?A.contrastColor:b):delete A.contrastColor,i.cursor&&(Y.cursor=i.cursor)),G={r:N.borderRadius||0,rotation:X,padding:N.padding,zIndex:1},!t.styledMode){var gt=N.backgroundColor,mt=N.borderColor;G.fill=gt==="auto"?A.color:gt,G.stroke=mt==="auto"?A.color:mt,G["stroke-width"]=N.borderWidth}y(G,function(yt,ct){yt===void 0&&delete G[ct]})}if(!J||q&&U(j)&&!!J.div==!!N.useHTML&&(J.rotation&&N.rotation||J.rotation===N.rotation)||(rt=!0,A.dataLabel=J=A.dataLabel&&A.dataLabel.destroy(),A.dataLabels&&(A.dataLabels.length===1?delete A.dataLabels:delete A.dataLabels[_]),_||delete A.dataLabel,Q&&(A.connector=A.connector.destroy(),A.connectors&&(A.connectors.length===1?delete A.connectors:delete A.connectors[_]))),q&&U(j)){J?G.text=j:(A.dataLabels=A.dataLabels||[],J=A.dataLabels[_]=X?e.text(j,0,0,N.useHTML).addClass("highcharts-data-label"):e.label(j,0,0,N.shape,null,null,N.useHTML,null,"data-label"),_||(A.dataLabel=J),J.addClass(" highcharts-data-label-color-"+A.colorIndex+" "+(N.className||"")+(N.useHTML?" highcharts-tracker":""))),J.options=N,J.attr(G),t.styledMode||J.css(Y).shadow(N.shadow);var bt=N[A.formatPrefix+"TextPath"]||N.textPath;bt&&!N.useHTML&&(J.setTextPath(A.getDataLabelPath&&A.getDataLabelPath(J)||A.graphic,bt),A.dataLabelPath&&!bt.enabled&&(A.dataLabelPath=A.dataLabelPath.destroy())),J.added||J.add(r),a.alignDataLabel(A,J,N,null,rt)}else J&&J.hide()})})}I(this,"afterDrawDataLabels")}function S(g,r,a,t,i,o){var e,s,n=this.chart,l=r.align,b=r.verticalAlign,k=g.box?0:g.padding||0,D=r.x,p=D===void 0?0:D,C=r.y,A=C===void 0?0:C;return(e=(a.x||0)+k)<0&&(l==="right"&&p>=0?(r.align="left",r.inside=!0):p-=e,s=!0),(e=(a.x||0)+t.width-k)>n.plotWidth&&(l==="left"&&p<=0?(r.align="right",r.inside=!0):p+=n.plotWidth-e,s=!0),(e=a.y+k)<0&&(b==="bottom"&&A>=0?(r.verticalAlign="top",r.inside=!0):A-=e,s=!0),(e=(a.y||0)+t.height-k)>n.plotHeight&&(b==="top"&&A<=0?(r.verticalAlign="bottom",r.inside=!0):A+=n.plotHeight-e,s=!0),s&&(r.x=p,r.y=A,g.placed=!o,g.align(r,void 0,i)),s}function x(g,r){var a,t=[];if(E(g)&&!E(r))t=g.map(function(i){return P(i,r)});else if(E(r)&&!E(g))t=r.map(function(i){return P(g,i)});else if(E(g)||E(r))for(a=Math.max(g.length,r.length);a--;)t[a]=P(g[a],r[a]);else t=P(g,r);return t}function c(g,r,a,t,i){var o=this.chart,e=o.inverted,s=this.xAxis,n=s.reversed,l=e?r.height/2:r.width/2,b=g.pointWidth,k=b?b/2:0;r.startXPos=e?i.x:n?-l-k:s.width-l+k,r.startYPos=e?n?this.yAxis.height-l+k:-l-k:i.y,t?r.visibility==="hidden"&&(r.show(),r.attr({opacity:0}).animate({opacity:1})):r.attr({opacity:1}).animate({opacity:0},void 0,r.hide),o.hasRendered&&(a&&r.attr({x:r.startXPos,y:r.startYPos}),r.placed=!0)}m.compose=function(g){if(u.indexOf(g)===-1){var r=g.prototype;u.push(g),r.alignDataLabel=v,r.drawDataLabels=w,r.justifyDataLabel=S,r.setDataLabelStartPos=c}}}(V||(V={})),V}),it(B,"Series/Column/ColumnDataLabel.js",[B["Core/Series/DataLabel.js"],B["Core/Series/SeriesRegistry.js"],B["Core/Utilities.js"]],function(W,R,H){var V,$=R.series,Z=H.merge,U=H.pick;return function(z){var I=[];function E(M,P,y,h,f){var m,u=this.chart.inverted,v=M.series,w=(v.xAxis?v.xAxis.len:this.chart.plotSizeX)||0,S=(v.yAxis?v.yAxis.len:this.chart.plotSizeY)||0,x=M.dlBox||M.shapeArgs,c=U(M.below,M.plotY>U(this.translatedThreshold,S)),g=U(y.inside,!!this.options.stacking);x&&((h=Z(x)).y<0&&(h.height+=h.y,h.y=0),(m=h.y+h.height-S)>0&&m<h.height&&(h.height-=m),u&&(h={x:S-h.y-h.height,y:w-h.x-h.width,width:h.height,height:h.width}),g||(u?(h.x+=c?0:h.width,h.width=0):(h.y+=c?h.height:0,h.height=0))),y.align=U(y.align,!u||g?"center":c?"right":"left"),y.verticalAlign=U(y.verticalAlign,u||g?"middle":c?"top":"bottom"),$.prototype.alignDataLabel.call(this,M,P,y,h,f),y.inside&&M.contrastColor&&P.css({color:M.contrastColor})}z.compose=function(M){W.compose($),I.indexOf(M)===-1&&(I.push(M),M.prototype.alignDataLabel=E)}}(V||(V={})),V}),it(B,"Series/Bar/BarSeries.js",[B["Series/Column/ColumnSeries.js"],B["Core/Series/SeriesRegistry.js"],B["Core/Utilities.js"]],function(W,R,H){var V,$=this&&this.__extends||(V=function(I,E){return V=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(M,P){M.__proto__=P}||function(M,P){for(var y in P)P.hasOwnProperty(y)&&(M[y]=P[y])},V(I,E)},function(I,E){function M(){this.constructor=I}V(I,E),I.prototype=E===null?Object.create(E):(M.prototype=E.prototype,new M)}),Z=H.extend,U=H.merge,z=function(I){function E(){var M=I!==null&&I.apply(this,arguments)||this;return M.data=void 0,M.options=void 0,M.points=void 0,M}return $(E,I),E.defaultOptions=U(W.defaultOptions,{}),E}(W);return Z(z.prototype,{inverted:!0}),R.registerSeriesType("bar",z),z}),it(B,"Series/Scatter/ScatterSeriesDefaults.js",[],function(){return{lineWidth:0,findNearestPointBy:"xy",jitter:{x:0,y:0},marker:{enabled:!0},tooltip:{headerFormat:'<span style="color:{point.color}">●</span> <span style="font-size: 10px"> {series.name}</span><br/>',pointFormat:"x: <b>{point.x}</b><br/>y: <b>{point.y}</b><br/>"}}}),it(B,"Series/Scatter/ScatterSeries.js",[B["Series/Scatter/ScatterSeriesDefaults.js"],B["Core/Series/SeriesRegistry.js"],B["Core/Utilities.js"]],function(W,R,H){var V,$=this&&this.__extends||(V=function(y,h){return V=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,m){f.__proto__=m}||function(f,m){for(var u in m)m.hasOwnProperty(u)&&(f[u]=m[u])},V(y,h)},function(y,h){function f(){this.constructor=y}V(y,h),y.prototype=h===null?Object.create(h):(f.prototype=h.prototype,new f)}),Z=R.seriesTypes,U=Z.column,z=Z.line,I=H.addEvent,E=H.extend,M=H.merge,P=function(y){function h(){var f=y!==null&&y.apply(this,arguments)||this;return f.data=void 0,f.options=void 0,f.points=void 0,f}return $(h,y),h.prototype.applyJitter=function(){var f=this,m=this.options.jitter,u=this.points.length;m&&this.points.forEach(function(v,w){["x","y"].forEach(function(S,x){var c,g,r,a,t,i,o="plot"+S.toUpperCase();m[S]&&!v.isNull&&(c=f[S+"Axis"],a=m[S]*c.transA,c&&!c.isLog&&(g=Math.max(0,v[o]-a),r=Math.min(c.len,v[o]+a),v[o]=g+(r-g)*(t=w+x*u,(i=1e4*Math.sin(t))-Math.floor(i)),S==="x"&&(v.clientX=v.plotX)))})})},h.prototype.drawGraph=function(){this.options.lineWidth?y.prototype.drawGraph.call(this):this.graph&&(this.graph=this.graph.destroy())},h.defaultOptions=M(z.defaultOptions,W),h}(z);return E(P.prototype,{drawTracker:U.prototype.drawTracker,sorted:!1,requireSorting:!1,noSharedTooltip:!0,trackerGroups:["group","markerGroup","dataLabelsGroup"],takeOrdinalPosition:!1}),I(P,"afterTranslate",function(){this.applyJitter()}),R.registerSeriesType("scatter",P),P}),it(B,"Series/CenteredUtilities.js",[B["Core/Globals.js"],B["Core/Series/Series.js"],B["Core/Utilities.js"]],function(W,R,H){var V,$=W.deg2rad,Z=H.fireEvent,U=H.isNumber,z=H.pick,I=H.relativeLength;return function(E){E.getCenter=function(){var M,P,y,h=this.options,f=this.chart,m=2*(h.slicedOffset||0),u=f.plotWidth-2*m,v=f.plotHeight-2*m,w=h.center,S=Math.min(u,v),x=h.thickness,c=h.size,g=h.innerSize||0;typeof c=="string"&&(c=parseFloat(c)),typeof g=="string"&&(g=parseFloat(g));var r=[z(w[0],"50%"),z(w[1],"50%"),z(c&&c<0?void 0:h.size,"100%"),z(g&&g<0?void 0:h.innerSize||0,"0%")];for(!f.angular||this instanceof R||(r[3]=0),P=0;P<4;++P)y=r[P],M=P<2||P===2&&/%$/.test(y),r[P]=I(y,[u,v,S,r[2]][P])+(M?m:0);return r[3]>r[2]&&(r[3]=r[2]),U(x)&&2*x<r[2]&&x>0&&(r[3]=r[2]-2*x),Z(this,"afterGetCenter",{positions:r}),r},E.getStartAndEndRadians=function(M,P){var y=U(M)?M:0,h=U(P)&&P>y&&P-y<360?P:y+360;return{start:$*(y+-90),end:$*(h+-90)}}}(V||(V={})),V}),it(B,"Series/Pie/PiePoint.js",[B["Core/Animation/AnimationUtilities.js"],B["Core/Series/Point.js"],B["Core/Utilities.js"]],function(W,R,H){var V,$=this&&this.__extends||(V=function(h,f){return V=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(m,u){m.__proto__=u}||function(m,u){for(var v in u)u.hasOwnProperty(v)&&(m[v]=u[v])},V(h,f)},function(h,f){function m(){this.constructor=h}V(h,f),h.prototype=f===null?Object.create(f):(m.prototype=f.prototype,new m)}),Z=W.setAnimation,U=H.addEvent,z=H.defined,I=H.extend,E=H.isNumber,M=H.pick,P=H.relativeLength,y=function(h){function f(){var m=h!==null&&h.apply(this,arguments)||this;return m.labelDistance=void 0,m.options=void 0,m.series=void 0,m}return $(f,h),f.prototype.getConnectorPath=function(){var m=this.labelPosition,u=this.series.options.dataLabels,v=this.connectorShapes,w=u.connectorShape;return v[w]&&(w=v[w]),w.call(this,{x:m.final.x,y:m.final.y,alignment:m.alignment},m.connectorPosition,u)},f.prototype.getTranslate=function(){return this.sliced?this.slicedTranslation:{translateX:0,translateY:0}},f.prototype.haloPath=function(m){var u=this.shapeArgs;return this.sliced||!this.visible?[]:this.series.chart.renderer.symbols.arc(u.x,u.y,u.r+m,u.r+m,{innerR:u.r-1,start:u.start,end:u.end})},f.prototype.init=function(){var m=this;h.prototype.init.apply(this,arguments),this.name=M(this.name,"Slice");var u=function(v){m.slice(v.type==="select")};return U(this,"select",u),U(this,"unselect",u),this},f.prototype.isValid=function(){return E(this.y)&&this.y>=0},f.prototype.setVisible=function(m,u){var v=this,w=this.series,S=w.chart,x=w.options.ignoreHiddenPoint;u=M(u,x),m!==this.visible&&(this.visible=this.options.visible=m=m===void 0?!this.visible:m,w.options.data[w.data.indexOf(this)]=this.options,["graphic","dataLabel","connector","shadowGroup"].forEach(function(c){v[c]&&v[c][m?"show":"hide"](m)}),this.legendItem&&S.legend.colorizeItem(this,m),m||this.state!=="hover"||this.setState(""),x&&(w.isDirty=!0),u&&S.redraw())},f.prototype.slice=function(m,u,v){var w=this.series,S=w.chart;Z(v,S),u=M(u,!0),this.sliced=this.options.sliced=m=z(m)?m:!this.sliced,w.options.data[w.data.indexOf(this)]=this.options,this.graphic&&this.graphic.animate(this.getTranslate()),this.shadowGroup&&this.shadowGroup.animate(this.getTranslate())},f}(R);return I(y.prototype,{connectorShapes:{fixedOffset:function(h,f,m){var u=f.breakAt,v=f.touchingSliceAt,w=m.softConnector?["C",h.x+(h.alignment==="left"?-5:5),h.y,2*u.x-v.x,2*u.y-v.y,u.x,u.y]:["L",u.x,u.y];return[["M",h.x,h.y],w,["L",v.x,v.y]]},straight:function(h,f){var m=f.touchingSliceAt;return[["M",h.x,h.y],["L",m.x,m.y]]},crookedLine:function(h,f,m){var u=f.touchingSliceAt,v=this.series,w=v.center[0],S=v.chart.plotWidth,x=v.chart.plotLeft,c=h.alignment,g=this.shapeArgs.r,r=P(m.crookDistance,1),a=c==="left"?w+g+(S+x-w-g)*(1-r):x+(w-g)*r,t=["L",a,h.y],i=!0;(c==="left"?a>h.x||a<u.x:a<h.x||a>u.x)&&(i=!1);var o=[["M",h.x,h.y]];return i&&o.push(t),o.push(["L",u.x,u.y]),o}}}),y}),it(B,"Series/Pie/PieSeriesDefaults.js",[],function(){return{center:[null,null],clip:!1,colorByPoint:!0,dataLabels:{allowOverlap:!0,connectorPadding:5,connectorShape:"fixedOffset",crookDistance:"70%",distance:30,enabled:!0,formatter:function(){return this.point.isNull?void 0:this.point.name},softConnector:!0,x:0},fillColor:void 0,ignoreHiddenPoint:!0,inactiveOtherPoints:!0,legendType:"point",marker:null,size:null,showInLegend:!1,slicedOffset:10,stickyTracking:!1,tooltip:{followPointer:!0},borderColor:"#ffffff",borderWidth:1,lineWidth:void 0,states:{hover:{brightness:.1}}}}),it(B,"Series/Pie/PieSeries.js",[B["Series/CenteredUtilities.js"],B["Series/Column/ColumnSeries.js"],B["Core/Globals.js"],B["Core/Legend/LegendSymbol.js"],B["Series/Pie/PiePoint.js"],B["Series/Pie/PieSeriesDefaults.js"],B["Core/Series/Series.js"],B["Core/Series/SeriesRegistry.js"],B["Core/Renderer/SVG/Symbols.js"],B["Core/Utilities.js"]],function(W,R,H,V,$,Z,U,z,I,E){var M,P=this&&this.__extends||(M=function(c,g){return M=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,a){r.__proto__=a}||function(r,a){for(var t in a)a.hasOwnProperty(t)&&(r[t]=a[t])},M(c,g)},function(c,g){function r(){this.constructor=c}M(c,g),c.prototype=g===null?Object.create(g):(r.prototype=g.prototype,new r)}),y=W.getStartAndEndRadians,h=H.noop,f=E.clamp,m=E.extend,u=E.fireEvent,v=E.merge,w=E.pick,S=E.relativeLength,x=function(c){function g(){var r=c!==null&&c.apply(this,arguments)||this;return r.center=void 0,r.data=void 0,r.maxLabelDistance=void 0,r.options=void 0,r.points=void 0,r}return P(g,c),g.prototype.animate=function(r){var a=this,t=a.points,i=a.startAngleRad;r||t.forEach(function(o){var e=o.graphic,s=o.shapeArgs;e&&s&&(e.attr({r:w(o.startR,a.center&&a.center[3]/2),start:i,end:i}),e.animate({r:s.r,start:s.start,end:s.end},a.options.animation))})},g.prototype.drawEmpty=function(){var r,a,t=this.startAngleRad,i=this.endAngleRad,o=this.options;this.total===0&&this.center?(r=this.center[0],a=this.center[1],this.graph||(this.graph=this.chart.renderer.arc(r,a,this.center[1]/2,0,t,i).addClass("highcharts-empty-series").add(this.group)),this.graph.attr({d:I.arc(r,a,this.center[2]/2,0,{start:t,end:i,innerR:this.center[3]/2})}),this.chart.styledMode||this.graph.attr({"stroke-width":o.borderWidth,fill:o.fillColor||"none",stroke:o.color||"#cccccc"})):this.graph&&(this.graph=this.graph.destroy())},g.prototype.drawPoints=function(){var r=this.chart.renderer;this.points.forEach(function(a){a.graphic&&a.hasNewShapeType()&&(a.graphic=a.graphic.destroy()),a.graphic||(a.graphic=r[a.shapeType](a.shapeArgs).add(a.series.group),a.delayedRendering=!0)})},g.prototype.generatePoints=function(){c.prototype.generatePoints.call(this),this.updateTotals()},g.prototype.getX=function(r,a,t){var i=this.center,o=this.radii?this.radii[t.index]||0:i[2]/2,e=Math.asin(f((r-i[1])/(o+t.labelDistance),-1,1));return i[0]+(a?-1:1)*(Math.cos(e)*(o+t.labelDistance))+(t.labelDistance>0?(a?-1:1)*this.options.dataLabels.padding:0)},g.prototype.hasData=function(){return!!this.processedXData.length},g.prototype.redrawPoints=function(){var r,a,t,i,o=this,e=o.chart,s=e.renderer,n=o.options.shadow;this.drawEmpty(),!n||o.shadowGroup||e.styledMode||(o.shadowGroup=s.g("shadow").attr({zIndex:-1}).add(o.group)),o.points.forEach(function(l){var b={};if(a=l.graphic,!l.isNull&&a){var k=void 0;i=l.shapeArgs,r=l.getTranslate(),e.styledMode||(k=l.shadowGroup,n&&!k&&(k=l.shadowGroup=s.g("shadow").add(o.shadowGroup)),k&&k.attr(r),t=o.pointAttribs(l,l.selected&&"select")),l.delayedRendering?(a.setRadialReference(o.center).attr(i).attr(r),e.styledMode||a.attr(t).attr({"stroke-linejoin":"round"}).shadow(n,k),l.delayedRendering=!1):(a.setRadialReference(o.center),e.styledMode||v(!0,b,t),v(!0,b,i,r),a.animate(b)),a.attr({visibility:l.visible?"inherit":"hidden"}),a.addClass(l.getClassName(),!0)}else a&&(l.graphic=a.destroy())})},g.prototype.sortByAngle=function(r,a){r.sort(function(t,i){return t.angle!==void 0&&(i.angle-t.angle)*a})},g.prototype.translate=function(r){u(this,"translate"),this.generatePoints();var a,t,i,o,e,s,n,l,b=this,k=1e3,D=b.options,p=D.slicedOffset,C=p+(D.borderWidth||0),A=y(D.startAngle,D.endAngle),N=b.startAngleRad=A.start,_=(b.endAngleRad=A.end)-N,L=b.points,O=D.dataLabels.distance,j=D.ignoreHiddenPoint,Y=L.length,X=0;for(r||(b.center=r=b.getCenter()),n=0;n<Y;n++){t=N+X*_,!(l=L[n]).isValid()||j&&!l.visible||(X+=l.percentage/100),i=N+X*_;var G={x:r[0],y:r[1],r:r[2]/2,innerR:r[3]/2,start:Math.round(t*k)/k,end:Math.round(i*k)/k};l.shapeType="arc",l.shapeArgs=G,l.labelDistance=w(l.options.dataLabels&&l.options.dataLabels.distance,O),l.labelDistance=S(l.labelDistance,G.r),b.maxLabelDistance=Math.max(b.maxLabelDistance||0,l.labelDistance),(o=(i+t)/2)>1.5*Math.PI?o-=2*Math.PI:o<-Math.PI/2&&(o+=2*Math.PI),l.slicedTranslation={translateX:Math.round(Math.cos(o)*p),translateY:Math.round(Math.sin(o)*p)},e=Math.cos(o)*r[2]/2,s=Math.sin(o)*r[2]/2,l.tooltipPos=[r[0]+.7*e,r[1]+.7*s],l.half=o<-Math.PI/2||o>Math.PI/2?1:0,l.angle=o,a=Math.min(C,l.labelDistance/5),l.labelPosition={natural:{x:r[0]+e+Math.cos(o)*l.labelDistance,y:r[1]+s+Math.sin(o)*l.labelDistance},final:{},alignment:l.labelDistance<0?"center":l.half?"right":"left",connectorPosition:{breakAt:{x:r[0]+e+Math.cos(o)*a,y:r[1]+s+Math.sin(o)*a},touchingSliceAt:{x:r[0]+e,y:r[1]+s}}}}u(b,"afterTranslate")},g.prototype.updateTotals=function(){var r,a,t=this.points,i=t.length,o=this.options.ignoreHiddenPoint,e=0;for(r=0;r<i;r++)!(a=t[r]).isValid()||o&&!a.visible||(e+=a.y);for(this.total=e,r=0;r<i;r++)(a=t[r]).percentage=e>0&&(a.visible||!o)?a.y/e*100:0,a.total=e},g.defaultOptions=v(U.defaultOptions,Z),g}(U);return m(x.prototype,{axisTypes:[],directTouch:!0,drawGraph:void 0,drawLegendSymbol:V.drawRectangle,drawTracker:R.prototype.drawTracker,getCenter:W.getCenter,getSymbol:h,isCartesian:!1,noSharedTooltip:!0,pointAttribs:R.prototype.pointAttribs,pointClass:$,requireSorting:!1,searchPoint:h,trackerGroups:["group","dataLabelsGroup"]}),z.registerSeriesType("pie",x),x}),it(B,"Series/Pie/PieDataLabel.js",[B["Core/Series/DataLabel.js"],B["Core/Globals.js"],B["Core/Renderer/RendererUtilities.js"],B["Core/Series/SeriesRegistry.js"],B["Core/Utilities.js"]],function(W,R,H,V,$){var Z,U=R.noop,z=H.distribute,I=V.series,E=$.arrayMax,M=$.clamp,P=$.defined,y=$.merge,h=$.pick,f=$.relativeLength;return function(m){var u=[],v={radialDistributionY:function(c){return c.top+c.distributeBox.pos},radialDistributionX:function(c,g,r,a){return c.getX(r<g.top+2||r>g.bottom-2?a:r,g.half,g)},justify:function(c,g,r){return r[0]+(c.half?-1:1)*(g+c.labelDistance)},alignToPlotEdges:function(c,g,r,a){var t=c.getBBox().width;return g?t+a:r-t-a},alignToConnectors:function(c,g,r,a){var t,i=0;return c.forEach(function(o){(t=o.dataLabel.getBBox().width)>i&&(i=t)}),g?i+a:r-i-a}};function w(){var c,g,r,a,t,i,o,e,s,n,l,b,k=this,D=k.data,p=k.chart,C=k.options.dataLabels||{},A=C.connectorPadding,N=p.plotWidth,_=p.plotHeight,L=p.plotLeft,O=Math.round(p.chartWidth/3),j=k.center,Y=j[2]/2,X=j[1],G=[[],[]],q=[0,0,0,0],Q=k.dataLabelPositioners;k.visible&&(C.enabled||k._hasPointLabels)&&(D.forEach(function(J){J.dataLabel&&J.visible&&J.dataLabel.shortened&&(J.dataLabel.attr({width:"auto"}).css({width:"auto",textOverflow:"clip"}),J.dataLabel.shortened=!1)}),I.prototype.drawDataLabels.apply(k),D.forEach(function(J){J.dataLabel&&(J.visible?(G[J.half].push(J),J.dataLabel._pos=null,P(C.style.width)||P(J.options.dataLabels&&J.options.dataLabels.style&&J.options.dataLabels.style.width)||J.dataLabel.getBBox().width>O&&(J.dataLabel.css({width:Math.round(.7*O)+"px"}),J.dataLabel.shortened=!0)):(J.dataLabel=J.dataLabel.destroy(),J.dataLabels&&J.dataLabels.length===1&&delete J.dataLabels))}),G.forEach(function(J,rt){var lt,gt,mt,bt,yt,ct,et=J.length,at=[];if(et)for(k.sortByAngle(J,rt-.5),k.maxLabelDistance>0&&(lt=Math.max(0,X-Y-k.maxLabelDistance),gt=Math.min(X+Y+k.maxLabelDistance,p.plotHeight),J.forEach(function(dt){dt.labelDistance>0&&dt.dataLabel&&(dt.top=Math.max(0,X-Y-dt.labelDistance),dt.bottom=Math.min(X+Y+dt.labelDistance,p.plotHeight),yt=dt.dataLabel.getBBox().height||21,dt.distributeBox={target:dt.labelPosition.natural.y-dt.top+yt/2,size:yt,rank:dt.y},at.push(dt.distributeBox))}),z(at,ct=gt+yt-lt,ct/5)),l=0;l<et;l++){if(c=J[l],i=c.labelPosition,a=c.dataLabel,n=c.visible===!1?"hidden":"inherit",mt=i.natural.y,s=mt,at&&P(c.distributeBox)&&(c.distributeBox.pos===void 0?n="hidden":(o=c.distributeBox.size,s=Q.radialDistributionY(c))),delete c.positionIndex,C.justify)e=Q.justify(c,Y,j);else switch(C.alignTo){case"connectors":e=Q.alignToConnectors(J,rt,N,L);break;case"plotEdges":e=Q.alignToPlotEdges(a,rt,N,L);break;default:e=Q.radialDistributionX(k,c,s,mt)}a._attr={visibility:n,align:i.alignment},b=c.options.dataLabels||{},a._pos={x:e+h(b.x,C.x)+({left:A,right:-A}[i.alignment]||0),y:s+h(b.y,C.y)-10},i.final.x=e,i.final.y=s,h(C.crop,!0)&&(t=a.getBBox().width,bt=null,e-t<A&&rt===1?(bt=Math.round(t-e+A),q[3]=Math.max(bt,q[3])):e+t>N-A&&rt===0&&(bt=Math.round(e+t-N+A),q[1]=Math.max(bt,q[1])),s-o/2<0?q[0]=Math.max(Math.round(o/2-s),q[0]):s+o/2>_&&(q[2]=Math.max(Math.round(s+o/2-_),q[2])),a.sideOverflow=bt)}}),(E(q)===0||this.verifyDataLabelOverflow(q))&&(this.placeDataLabels(),this.points.forEach(function(J){if(b=y(C,J.options.dataLabels),g=h(b.connectorWidth,1)){var rt=void 0;r=J.connector,(a=J.dataLabel)&&a._pos&&J.visible&&J.labelDistance>0?(n=a._attr.visibility,(rt=!r)&&(J.connector=r=p.renderer.path().addClass("highcharts-data-label-connector highcharts-color-"+J.colorIndex+(J.className?" "+J.className:"")).add(k.dataLabelsGroup),p.styledMode||r.attr({"stroke-width":g,stroke:b.connectorColor||J.color||"#666666"})),r[rt?"attr":"animate"]({d:J.getConnectorPath()}),r.attr("visibility",n)):r&&(J.connector=r.destroy())}})))}function S(){this.points.forEach(function(c){var g,r=c.dataLabel;r&&c.visible&&((g=r._pos)?(r.sideOverflow&&(r._attr.width=Math.max(r.getBBox().width-r.sideOverflow,0),r.css({width:r._attr.width+"px",textOverflow:(this.options.dataLabels.style||{}).textOverflow||"ellipsis"}),r.shortened=!0),r.attr(r._attr),r[r.moved?"animate":"attr"](g),r.moved=!0):r&&r.attr({y:-9999})),delete c.distributeBox},this)}function x(c){var g=this.center,r=this.options,a=r.center,t=r.minSize||80,i=t,o=r.size!==null;return o||(a[0]!==null?i=Math.max(g[2]-Math.max(c[1],c[3]),t):(i=Math.max(g[2]-c[1]-c[3],t),g[0]+=(c[3]-c[1])/2),a[1]!==null?i=M(i,t,g[2]-Math.max(c[0],c[2])):(i=M(i,t,g[2]-c[0]-c[2]),g[1]+=(c[0]-c[2])/2),i<g[2]?(g[2]=i,g[3]=Math.min(r.thickness?Math.max(0,i-2*r.thickness):Math.max(0,f(r.innerSize||0,i)),i),this.translate(g),this.drawDataLabels&&this.drawDataLabels()):o=!0),o}m.compose=function(c){if(W.compose(I),u.indexOf(c)===-1){u.push(c);var g=c.prototype;g.dataLabelPositioners=v,g.alignDataLabel=U,g.drawDataLabels=w,g.placeDataLabels=S,g.verifyDataLabelOverflow=x}}}(Z||(Z={})),Z}),it(B,"Extensions/OverlappingDataLabels.js",[B["Core/Chart/Chart.js"],B["Core/Utilities.js"]],function(W,R){var H=R.addEvent,V=R.fireEvent,$=R.isArray,Z=R.isNumber,U=R.objectEach,z=R.pick;function I(E,M){var P,y,h=!1;return E&&(y=E.newOpacity,E.oldOpacity!==y&&(E.alignAttr&&E.placed?(E[y?"removeClass":"addClass"]("highcharts-data-label-hidden"),P=function(){M.styledMode||E.css({pointerEvents:y?"auto":"none"})},h=!0,E.alignAttr.opacity=y,E[E.isOld?"animate":"attr"](E.alignAttr,null,P),V(M,"afterHideOverlappingLabel")):E.attr({opacity:y})),E.isOld=!0),h}H(W,"render",function(){var E=this,M=[];(this.labelCollectors||[]).forEach(function(P){M=M.concat(P())}),(this.yAxis||[]).forEach(function(P){P.stacking&&P.options.stackLabels&&!P.options.stackLabels.allowOverlap&&U(P.stacking.stacks,function(y){U(y,function(h){h.label&&M.push(h.label)})})}),(this.series||[]).forEach(function(P){var y=P.options.dataLabels;if(P.visible&&(y.enabled!==!1||P._hasPointLabels)){var h=function(f){return f.forEach(function(m){m.visible&&($(m.dataLabels)?m.dataLabels:m.dataLabel?[m.dataLabel]:[]).forEach(function(u){var v=u.options;u.labelrank=z(v.labelrank,m.labelrank,m.shapeArgs&&m.shapeArgs.height),v.allowOverlap?(u.oldOpacity=u.opacity,u.newOpacity=1,I(u,E)):M.push(u)})})};h(P.nodes||[]),h(P.points)}}),this.hideOverlappingLabels(M)}),W.prototype.hideOverlappingLabels=function(E){var M,P,y,h,f,m,u,v=this,w=E.length,S=v.renderer,x=!1,c=function(r,a){return!(a.x>=r.x+r.width||a.x+a.width<=r.x||a.y>=r.y+r.height||a.y+a.height<=r.y)},g=function(r){var a,t,i,o,e,s=r.box?0:r.padding||0,n=0,l=0;if(r&&(!r.alignAttr||r.placed))return a=r.alignAttr||{x:r.attr("x"),y:r.attr("y")},t=r.parentGroup,r.width||(i=r.getBBox(),r.width=i.width,r.height=i.height,n=S.fontMetrics(null,r.element).h),o=r.width-2*s,(e={left:"0",center:"0.5",right:"1"}[r.alignValue])?l=+e*o:Z(r.x)&&Math.round(r.x)!==r.translateX&&(l=r.x-r.translateX),{x:a.x+(t.translateX||0)+s-(l||0),y:a.y+(t.translateY||0)+s-n,width:r.width-2*s,height:r.height-2*s}};for(P=0;P<w;P++)(M=E[P])&&(M.oldOpacity=M.opacity,M.newOpacity=1,M.absoluteBox=g(M));for(E.sort(function(r,a){return(a.labelrank||0)-(r.labelrank||0)}),P=0;P<w;P++)for(m=(h=E[P])&&h.absoluteBox,y=P+1;y<w;++y)u=(f=E[y])&&f.absoluteBox,m&&u&&h!==f&&h.newOpacity!==0&&f.newOpacity!==0&&h.visibility!=="hidden"&&f.visibility!=="hidden"&&c(m,u)&&((h.labelrank<f.labelrank?h:f).newOpacity=0);E.forEach(function(r){I(r,v)&&(x=!0)}),x&&V(v,"afterHideAllOverlappingLabels")}}),it(B,"Core/Responsive.js",[B["Core/Utilities.js"]],function(W){var R,H=W.extend,V=W.find,$=W.isArray,Z=W.isObject,U=W.merge,z=W.objectEach,I=W.pick,E=W.splat,M=W.uniqueKey;return function(P){var y=[];P.compose=function(f){return y.indexOf(f)===-1&&(y.push(f),H(f.prototype,h.prototype)),f};var h=function(){function f(){}return f.prototype.currentOptions=function(m){var u=this,v={};return function w(S,x,c,g){var r;z(S,function(a,t){if(!g&&u.collectionsWithUpdate.indexOf(t)>-1&&x[t])for(a=E(a),c[t]=[],r=0;r<Math.max(a.length,x[t].length);r++)x[t][r]&&(a[r]===void 0?c[t][r]=x[t][r]:(c[t][r]={},w(a[r],x[t][r],c[t][r],g+1)));else Z(a)?(c[t]=$(a)?[]:{},w(a,x[t]||{},c[t],g+1)):x[t]===void 0?c[t]=null:c[t]=x[t]})}(m,this.options,v,0),v},f.prototype.matchResponsiveRule=function(m,u){var v=m.condition;(v.callback||function(){return this.chartWidth<=I(v.maxWidth,Number.MAX_VALUE)&&this.chartHeight<=I(v.maxHeight,Number.MAX_VALUE)&&this.chartWidth>=I(v.minWidth,0)&&this.chartHeight>=I(v.minHeight,0)}).call(this)&&u.push(m._id)},f.prototype.setResponsive=function(m,u){var v,w=this,S=this.options.responsive,x=this.currentResponsive,c=[];!u&&S&&S.rules&&S.rules.forEach(function(a){a._id===void 0&&(a._id=M()),w.matchResponsiveRule(a,c)},this);var g=U.apply(void 0,c.map(function(a){return V((S||{}).rules||[],function(t){return t._id===a})}).map(function(a){return a&&a.chartOptions}));g.isResponsiveOptions=!0,c=c.toString()||void 0;var r=x&&x.ruleIds;c!==r&&(x&&this.update(x.undoOptions,m,!0),c?((v=this.currentOptions(g)).isResponsiveOptions=!0,this.currentResponsive={ruleIds:c,mergedOptions:g,undoOptions:v},this.update(g,m,!0)):this.currentResponsive=void 0)},f}()}(R||(R={})),R}),it(B,"masters/highcharts.src.js",[B["Core/Globals.js"],B["Core/Utilities.js"],B["Core/Defaults.js"],B["Core/Animation/Fx.js"],B["Core/Animation/AnimationUtilities.js"],B["Core/Renderer/HTML/AST.js"],B["Core/FormatUtilities.js"],B["Core/Renderer/RendererUtilities.js"],B["Core/Renderer/SVG/SVGElement.js"],B["Core/Renderer/SVG/SVGRenderer.js"],B["Core/Renderer/HTML/HTMLElement.js"],B["Core/Renderer/HTML/HTMLRenderer.js"],B["Core/Axis/Axis.js"],B["Core/Axis/DateTimeAxis.js"],B["Core/Axis/LogarithmicAxis.js"],B["Core/Axis/PlotLineOrBand/PlotLineOrBand.js"],B["Core/Axis/Tick.js"],B["Core/Tooltip.js"],B["Core/Series/Point.js"],B["Core/Pointer.js"],B["Core/MSPointer.js"],B["Core/Legend/Legend.js"],B["Core/Chart/Chart.js"],B["Core/Axis/Stacking/StackingAxis.js"],B["Core/Axis/Stacking/StackItem.js"],B["Core/Series/Series.js"],B["Core/Series/SeriesRegistry.js"],B["Series/Column/ColumnSeries.js"],B["Series/Column/ColumnDataLabel.js"],B["Series/Pie/PieSeries.js"],B["Series/Pie/PieDataLabel.js"],B["Core/Series/DataLabel.js"],B["Core/Responsive.js"],B["Core/Color/Color.js"],B["Core/Time.js"]],function(W,R,H,V,$,Z,U,z,I,E,M,P,y,h,f,m,u,v,w,S,x,c,g,r,a,t,i,o,e,s,n,l,b,k,D){var p=W;return p.animate=$.animate,p.animObject=$.animObject,p.getDeferredAnimation=$.getDeferredAnimation,p.setAnimation=$.setAnimation,p.stop=$.stop,p.timers=V.timers,p.AST=Z,p.Axis=y,p.Chart=g,p.chart=g.chart,p.Fx=V,p.Legend=c,p.PlotLineOrBand=m,p.Point=w,p.Pointer=x.isRequired()?x:S,p.Series=t,p.StackItem=a,p.SVGElement=I,p.SVGRenderer=E,p.Tick=u,p.Time=D,p.Tooltip=v,p.Color=k,p.color=k.parse,P.compose(E),M.compose(I),p.defaultOptions=H.defaultOptions,p.getOptions=H.getOptions,p.time=H.defaultTime,p.setOptions=H.setOptions,p.dateFormat=U.dateFormat,p.format=U.format,p.numberFormat=U.numberFormat,p.addEvent=R.addEvent,p.arrayMax=R.arrayMax,p.arrayMin=R.arrayMin,p.attr=R.attr,p.clearTimeout=R.clearTimeout,p.correctFloat=R.correctFloat,p.createElement=R.createElement,p.css=R.css,p.defined=R.defined,p.destroyObjectProperties=R.destroyObjectProperties,p.discardElement=R.discardElement,p.distribute=z.distribute,p.erase=R.erase,p.error=R.error,p.extend=R.extend,p.extendClass=R.extendClass,p.find=R.find,p.fireEvent=R.fireEvent,p.getMagnitude=R.getMagnitude,p.getStyle=R.getStyle,p.inArray=R.inArray,p.isArray=R.isArray,p.isClass=R.isClass,p.isDOMElement=R.isDOMElement,p.isFunction=R.isFunction,p.isNumber=R.isNumber,p.isObject=R.isObject,p.isString=R.isString,p.keys=R.keys,p.merge=R.merge,p.normalizeTickInterval=R.normalizeTickInterval,p.objectEach=R.objectEach,p.offset=R.offset,p.pad=R.pad,p.pick=R.pick,p.pInt=R.pInt,p.relativeLength=R.relativeLength,p.removeEvent=R.removeEvent,p.seriesType=i.seriesType,p.splat=R.splat,p.stableSort=R.stableSort,p.syncTimeout=R.syncTimeout,p.timeUnits=R.timeUnits,p.uniqueKey=R.uniqueKey,p.useSerialIds=R.useSerialIds,p.wrap=R.wrap,e.compose(o),l.compose(t),h.compose(y),f.compose(y),n.compose(s),m.compose(y),b.compose(g),r.compose(y,g,t),p}),it(B,"Core/Axis/BrokenAxis.js",[B["Core/Axis/Stacking/StackItem.js"],B["Core/Utilities.js"]],function(W,R){var H,V=R.addEvent,$=R.find,Z=R.fireEvent,U=R.isArray,z=R.isNumber,I=R.pick;return function(E){var M=[];function P(){this.brokenAxis!==void 0&&this.brokenAxis.setBreaks(this.options.breaks,!1)}function y(){var x=this;x.brokenAxis&&x.brokenAxis.hasBreaks&&(x.options.ordinal=!1)}function h(){var x=this,c=x.brokenAxis;if(c&&c.hasBreaks){for(var g=x.tickPositions,r=x.tickPositions.info,a=[],t=0;t<g.length;t++)c.isInAnyBreak(g[t])||a.push(g[t]);x.tickPositions=a,x.tickPositions.info=r}}function f(){var x=this;x.brokenAxis||(x.brokenAxis=new S(x))}function m(){var x=this,c=x.isDirty,g=x.options.connectNulls,r=x.points,a=x.xAxis,t=x.yAxis;if(c)for(var i=r.length;i--;){var o=r[i],e=!(o.y===null&&g===!1)&&(a&&a.brokenAxis&&a.brokenAxis.isInAnyBreak(o.x,!0)||t&&t.brokenAxis&&t.brokenAxis.isInAnyBreak(o.y,!0));o.visible=!e&&o.options.visible!==!1}}function u(){this.drawBreaks(this.xAxis,["x"]),this.drawBreaks(this.yAxis,I(this.pointArrayMap,["y"]))}function v(x,c){var g,r,a,t,i=this,o=i.points;if(x&&x.brokenAxis&&x.brokenAxis.hasBreaks){var e=x.brokenAxis;c.forEach(function(s){g=e&&e.breakArray||[],r=x.isXAxis?x.min:I(i.options.threshold,x.min),o.forEach(function(n){t=I(n["stack"+s.toUpperCase()],n[s]),g.forEach(function(l){z(r)&&z(t)&&(a=!1,r<l.from&&t>l.to||r>l.from&&t<l.from?a="pointBreak":(r<l.from&&t>l.from&&t<l.to||r>l.from&&t>l.to&&t<l.from)&&(a="pointInBreak"),a&&Z(x,a,{point:n,brk:l}))})})})}}function w(){var x=this.currentDataGrouping,c=x&&x.gapSize,g=this.points.slice(),r=this.yAxis,a=this.options.gapSize,t=g.length-1;if(a&&t>0){this.options.gapUnit!=="value"&&(a*=this.basePointRange),c&&c>a&&c>=this.basePointRange&&(a=c);for(var i=void 0,o=void 0;t--;)if(o&&o.visible!==!1||(o=g[t+1]),i=g[t],o.visible!==!1&&i.visible!==!1){if(o.x-i.x>a){var e=(i.x+o.x)/2;g.splice(t+1,0,{isNull:!0,x:e}),r.stacking&&this.options.stacking&&((r.stacking.stacks[this.stackKey][e]=new W(r,r.options.stackLabels,!1,e,this.stack)).total=0)}o=i}}return this.getGraphPath(g)}E.compose=function(x,c){if(M.indexOf(x)===-1&&(M.push(x),x.keepProps.push("brokenAxis"),V(x,"init",f),V(x,"afterInit",P),V(x,"afterSetTickPositions",h),V(x,"afterSetOptions",y)),M.indexOf(c)===-1){M.push(c);var g=c.prototype;g.drawBreaks=v,g.gappedPath=w,V(c,"afterGeneratePoints",m),V(c,"afterRender",u)}return x};var S=function(){function x(c){this.hasBreaks=!1,this.axis=c}return x.isInBreak=function(c,g){var r=c.repeat||1/0,a=c.from,t=c.to-c.from,i=g>=a?(g-a)%r:r-(a-g)%r;return c.inclusive?i<=t:i<t&&i!==0},x.lin2Val=function(c){var g=this.brokenAxis,r=g&&g.breakArray;if(!r||!z(c))return c;var a,t,i=c;for(t=0;t<r.length&&!((a=r[t]).from>=i);t++)(a.to<i||x.isInBreak(a,i))&&(i+=a.len);return i},x.val2Lin=function(c){var g=this.brokenAxis,r=g&&g.breakArray;if(!r||!z(c))return c;var a,t,i=c;for(t=0;t<r.length;t++)if((a=r[t]).to<=c)i-=a.len;else{if(a.from>=c)break;if(x.isInBreak(a,c)){i-=c-a.from;break}}return i},x.prototype.findBreakAt=function(c,g){return $(g,function(r){return r.from<c&&c<r.to})},x.prototype.isInAnyBreak=function(c,g){var r,a,t,i=this.axis,o=i.options.breaks||[],e=o.length;if(e&&z(c)){for(;e--;)x.isInBreak(o[e],c)&&(r=!0,a||(a=I(o[e].showPoints,!i.isXAxis)));t=r&&g?r&&!a:r}return t},x.prototype.setBreaks=function(c,g){var r=this,a=r.axis,t=U(c)&&!!c.length;a.isDirty=r.hasBreaks!==t,r.hasBreaks=t,a.options.breaks=a.userOptions.breaks=c,a.forceRedraw=!0,a.series.forEach(function(i){i.isDirty=!0}),t||a.val2lin!==x.val2Lin||(delete a.val2lin,delete a.lin2val),t&&(a.userOptions.ordinal=!1,a.lin2val=x.lin2Val,a.val2lin=x.val2Lin,a.setExtremes=function(i,o,e,s,n){if(r.hasBreaks){for(var l=this.options.breaks||[],b=void 0;b=r.findBreakAt(i,l);)i=b.to;for(;b=r.findBreakAt(o,l);)o=b.from;o<i&&(o=i)}a.constructor.prototype.setExtremes.call(this,i,o,e,s,n)},a.setAxisTranslation=function(){if(a.constructor.prototype.setAxisTranslation.call(this),r.unitLength=void 0,r.hasBreaks){var i,o,e,s,n=a.options.breaks||[],l=[],b=[],k=I(a.pointRangePadding,0),D=0,p=a.userMin||a.min,C=a.userMax||a.max;n.forEach(function(A){o=A.repeat||1/0,z(p)&&z(C)&&(x.isInBreak(A,p)&&(p+=A.to%o-p%o),x.isInBreak(A,C)&&(C-=C%o-A.from%o))}),n.forEach(function(A){if(e=A.from,o=A.repeat||1/0,z(p)&&z(C)){for(;e-o>p;)e-=o;for(;e<p;)e+=o;for(s=e;s<C;s+=o)l.push({value:s,move:"in"}),l.push({value:s+A.to-A.from,move:"out",size:A.breakSize})}}),l.sort(function(A,N){return A.value===N.value?(A.move==="in"?0:1)-(N.move==="in"?0:1):A.value-N.value}),i=0,e=p,l.forEach(function(A){(i+=A.move==="in"?1:-1)===1&&A.move==="in"&&(e=A.value),i===0&&z(e)&&(b.push({from:e,to:A.value,len:A.value-e-(A.size||0)}),D+=A.value-e-(A.size||0))}),r.breakArray=b,z(p)&&z(C)&&z(a.min)&&(r.unitLength=C-p-D+k,Z(a,"afterBreaks"),a.staticScale?a.transA=a.staticScale:r.unitLength&&(a.transA*=(C-a.min+k)/r.unitLength),k&&(a.minPixelPadding=a.transA*(a.minPointOffset||0)),a.min=p,a.max=C)}}),I(g,!0)&&a.chart.redraw()},x}();E.Additions=S}(H||(H={})),H}),it(B,"masters/modules/broken-axis.src.js",[B["Core/Globals.js"],B["Core/Axis/BrokenAxis.js"]],function(W,R){var H=W;R.compose(H.Axis,H.Series)}),it(B,"Extensions/DataGrouping/ApproximationRegistry.js",[],function(){return{}}),it(B,"Extensions/DataGrouping/ApproximationDefaults.js",[B["Extensions/DataGrouping/ApproximationRegistry.js"],B["Core/Utilities.js"]],function(W,R){var H=R.arrayMax,V=R.arrayMin,$=R.correctFloat,Z=R.extend,U=R.isNumber;function z(M){var P=M.length,y=I(M);return U(y)&&P&&(y=$(y/P)),y}function I(M){var P,y=M.length;if(!y&&M.hasNulls)P=null;else if(y)for(P=0;y--;)P+=M[y];return P}var E={average:z,averages:function(){var M=[];return[].forEach.call(arguments,function(P){M.push(z(P))}),M[0]===void 0?void 0:M},close:function(M){return M.length?M[M.length-1]:M.hasNulls?null:void 0},high:function(M){return M.length?H(M):M.hasNulls?null:void 0},hlc:function(M,P,y){if(M=W.high(M),P=W.low(P),y=W.close(y),U(M)||U(P)||U(y))return[M,P,y]},low:function(M){return M.length?V(M):M.hasNulls?null:void 0},ohlc:function(M,P,y,h){if(M=W.open(M),P=W.high(P),y=W.low(y),h=W.close(h),U(M)||U(P)||U(y)||U(h))return[M,P,y,h]},open:function(M){return M.length?M[0]:M.hasNulls?null:void 0},range:function(M,P){return M=W.low(M),P=W.high(P),U(M)||U(P)?[M,P]:M===null&&P===null?null:void 0},sum:I};return Z(W,E),E}),it(B,"Extensions/DataGrouping/DataGroupingDefaults.js",[],function(){return{common:{groupPixelWidth:2,dateTimeLabelFormats:{millisecond:["%A, %b %e, %H:%M:%S.%L","%A, %b %e, %H:%M:%S.%L","-%H:%M:%S.%L"],second:["%A, %b %e, %H:%M:%S","%A, %b %e, %H:%M:%S","-%H:%M:%S"],minute:["%A, %b %e, %H:%M","%A, %b %e, %H:%M","-%H:%M"],hour:["%A, %b %e, %H:%M","%A, %b %e, %H:%M","-%H:%M"],day:["%A, %b %e, %Y","%A, %b %e","-%A, %b %e, %Y"],week:["Week from %A, %b %e, %Y","%A, %b %e","-%A, %b %e, %Y"],month:["%B %Y","%B","-%B %Y"],year:["%Y","%Y","-%Y"]}},seriesSpecific:{line:{},spline:{},area:{},areaspline:{},arearange:{},column:{groupPixelWidth:10},columnrange:{groupPixelWidth:10},candlestick:{groupPixelWidth:10},ohlc:{groupPixelWidth:5},hlc:{groupPixelWidth:5},heikinashi:{groupPixelWidth:10}},units:[["millisecond",[1,2,5,10,20,25,50,100,200,500]],["second",[1,2,5,10,15,30]],["minute",[1,2,5,10,15,30]],["hour",[1,2,3,4,6,8,12]],["day",[1]],["week",[1]],["month",[1,3,6]],["year",null]]}}),it(B,"Extensions/DataGrouping/DataGroupingAxisComposition.js",[B["Extensions/DataGrouping/DataGroupingDefaults.js"],B["Core/Utilities.js"]],function(W,R){var H,V=R.addEvent,$=R.extend,Z=R.merge,U=R.pick,z=[];function I(y){var h=this,f=h.series;f.forEach(function(m){m.groupPixelWidth=void 0}),f.forEach(function(m){m.groupPixelWidth=h.getGroupPixelWidth&&h.getGroupPixelWidth(),m.groupPixelWidth&&(m.hasProcessed=!0),m.applyGrouping(!!y.hasExtremesChanged)})}function E(){for(var y,h,f=this.series,m=f.length,u=0,v=!1;m--;)(h=f[m].options.dataGrouping)&&(u=Math.max(u,U(h.groupPixelWidth,W.common.groupPixelWidth)),y=(f[m].processedXData||f[m].data).length,(f[m].groupPixelWidth||y>this.chart.plotSizeX/u||y&&h.forced)&&(v=!0));return v?u:0}function M(){this.series.forEach(function(y){y.hasProcessed=!1})}function P(y,h){var f;if(h=U(h,!0),y||(y={forced:!1,units:null}),this instanceof H)for(f=this.series.length;f--;)this.series[f].update({dataGrouping:y},!1);else this.chart.options.series.forEach(function(m){m.dataGrouping=typeof y=="boolean"?y:Z(y,m.dataGrouping)});this.ordinal&&(this.ordinal.slope=void 0),h&&this.chart.redraw()}return{compose:function(y){H=y,z.indexOf(y)===-1&&(z.push(y),V(y,"afterSetScale",M),V(y,"postProcessData",I),$(y.prototype,{applyGrouping:I,getGroupPixelWidth:E,setDataGrouping:P}))}}}),it(B,"Extensions/DataGrouping/DataGroupingSeriesComposition.js",[B["Extensions/DataGrouping/ApproximationRegistry.js"],B["Extensions/DataGrouping/DataGroupingDefaults.js"],B["Core/Axis/DateTimeAxis.js"],B["Core/Defaults.js"],B["Core/Series/SeriesRegistry.js"],B["Core/Utilities.js"]],function(W,R,H,V,$,Z){var U=$.series.prototype,z=Z.addEvent,I=Z.defined,E=Z.error,M=Z.extend,P=Z.isNumber,y=Z.merge,h=Z.pick,f=U.generatePoints,m=[];function u(g){var r,a,t=this,i=t.chart,o=t.options.dataGrouping,e=t.allowDG!==!1&&o&&h(o.enabled,i.options.isStock),s=t.visible||!i.options.chart.ignoreHiddenSeries,n=this.currentDataGrouping,l=!1;e&&!t.requireSorting&&(t.requireSorting=l=!0);var b=function(lt,gt){return!(lt.isCartesian&&!lt.isDirty&&!lt.xAxis.isDirty&&!lt.yAxis.isDirty&&!gt)}(t,g)===!1||!e;if(l&&(t.requireSorting=!1),!b){t.destroyGroupedData();var k=o.groupAll?t.xData:t.processedXData,D=o.groupAll?t.yData:t.processedYData,p=i.plotSizeX,C=t.xAxis,A=C.options.ordinal,N=t.groupPixelWidth,_=void 0,L=void 0;if(N&&k&&k.length&&p){L=!0,t.isDirty=!0,t.points=null;var O=C.getExtremes(),j=O.min,Y=O.max,X=N*(Y-j)/p*(A&&C.ordinal&&C.ordinal.getGroupIntervalFactor(j,Y,t)||1),G=C.getTimeTicks(H.Additions.prototype.normalizeTimeTickInterval(X,o.units||R.units),Math.min(j,k[0]),Math.max(Y,k[k.length-1]),C.options.startOfWeek,k,t.closestPointRange),q=U.groupData.apply(t,[k,D,G,o.approximation]),Q=q.groupedXData,J=q.groupedYData,rt=0;for(o&&o.smoothed&&Q.length&&(o.firstAnchor="firstPoint",o.anchor="middle",o.lastAnchor="lastPoint",E(32,!1,i,{"dataGrouping.smoothed":"use dataGrouping.anchor"})),function(lt,gt,mt){var bt,yt=lt.options.dataGrouping,ct=lt.currentDataGrouping&&lt.currentDataGrouping.gapSize;if(yt&&lt.xData&&ct&&lt.groupMap){var et=gt.length-1,at=yt.anchor,dt=h(yt.firstAnchor,at),vt=h(yt.lastAnchor,at);if(at&&at!=="start"){var Ct=ct*{middle:.5,end:1}[at];for(bt=gt.length-1;bt--&&bt>0;)gt[bt]+=Ct}if(dt&&dt!=="start"&&lt.xData[0]>=gt[0]){var xt=lt.groupMap[0].start,wt=lt.groupMap[0].length,Mt=void 0;P(xt)&&P(wt)&&(Mt=xt+(wt-1)),gt[0]={middle:gt[0]+.5*ct,end:gt[0]+ct,firstPoint:lt.xData[0],lastPoint:Mt&&lt.xData[Mt]}[dt]}if(vt&&vt!=="start"&&ct&&gt[et]>=mt-ct){var St=lt.groupMap[lt.groupMap.length-1].start;gt[et]={middle:gt[et]+.5*ct,end:gt[et]+ct,firstPoint:St&&lt.xData[St],lastPoint:lt.xData[lt.xData.length-1]}[vt]}}}(t,Q,Y),_=1;_<G.length;_++)G.info.segmentStarts&&G.info.segmentStarts.indexOf(_)!==-1||(rt=Math.max(G[_]-G[_-1],rt));(r=G.info).gapSize=rt,t.closestPointRange=G.info.totalRange,t.groupMap=q.groupMap,s&&function(lt,gt){I(gt[0])&&P(lt.min)&&P(lt.dataMin)&&gt[0]<lt.min&&((!I(lt.options.min)&&lt.min<=lt.dataMin||lt.min===lt.dataMin)&&(lt.min=Math.min(gt[0],lt.min)),lt.dataMin=Math.min(gt[0],lt.dataMin)),I(gt[gt.length-1])&&P(lt.max)&&P(lt.dataMax)&&gt[gt.length-1]>lt.max&&((!I(lt.options.max)&&P(lt.dataMax)&&lt.max>=lt.dataMax||lt.max===lt.dataMax)&&(lt.max=Math.max(gt[gt.length-1],lt.max)),lt.dataMax=Math.max(gt[gt.length-1],lt.dataMax))}(C,Q),o.groupAll&&(t.allGroupedData=J,Q=(a=t.cropData(Q,J,C.min,C.max,1)).xData,J=a.yData,t.cropStart=a.start),t.processedXData=Q,t.processedYData=J}else t.groupMap=null;t.hasGroupedData=L,t.currentDataGrouping=r,t.preventGraphAnimation=(n&&n.totalRange)!==(r&&r.totalRange)}}function v(){this.groupedData&&(this.groupedData.forEach(function(g,r){g&&(this.groupedData[r]=g.destroy?g.destroy():null)},this),this.groupedData.length=0)}function w(){f.apply(this),this.destroyGroupedData(),this.groupedData=this.hasGroupedData?this.points:null}function S(){return this.is("arearange")?"range":this.is("ohlc")?"ohlc":this.is("hlc")?"hlc":this.is("column")?"sum":"average"}function x(g,r,a,t){var i,o,e,s=this,n=s.data,l=s.options&&s.options.data,b=[],k=[],D=[],p=g.length,C=!!r,A=[],N=s.pointArrayMap,_=N&&N.length,L=["x"].concat(N||["y"]),O=this.options.dataGrouping&&this.options.dataGrouping.groupAll,j=0,Y=0,X=typeof t=="function"?t:t&&W[t]?W[t]:W[s.getDGApproximation&&s.getDGApproximation()||"average"];if(_)for(var G=N.length;G--;)A.push([]);else A.push([]);for(var q=_||1,Q=0;Q<=p;Q++)if(!(g[Q]<a[0])){for(;a[j+1]!==void 0&&g[Q]>=a[j+1]||Q===p;){i=a[j],s.dataGroupInfo={start:O?Y:s.cropStart+Y,length:A[0].length},e=X.apply(s,A),s.pointClass&&!I(s.dataGroupInfo.options)&&(s.dataGroupInfo.options=y(s.pointClass.prototype.optionsToObject.call({series:s},s.options.data[s.cropStart+Y])),L.forEach(function(mt){delete s.dataGroupInfo.options[mt]})),e!==void 0&&(b.push(i),k.push(e),D.push(s.dataGroupInfo)),Y=Q;for(var J=0;J<q;J++)A[J].length=0,A[J].hasNulls=!1;if(j+=1,Q===p)break}if(Q===p)break;if(N){var rt=s.options.dataGrouping&&s.options.dataGrouping.groupAll?Q:s.cropStart+Q,lt=n&&n[rt]||s.pointClass.prototype.applyOptions.apply({series:s},[l[rt]]),gt=void 0;for(J=0;J<_;J++)gt=lt[N[J]],P(gt)?A[J].push(gt):gt===null&&(A[J].hasNulls=!0)}else o=C?r[Q]:null,P(o)?A[0].push(o):o===null&&(A[0].hasNulls=!0)}return{groupedXData:b,groupedYData:k,groupMap:D}}function c(g){var r=g.options,a=this.type,t=this.chart.options.plotOptions,i=this.useCommonDataGrouping&&R.common,o=R.seriesSpecific,e=V.defaultOptions.plotOptions[a].dataGrouping;if(t&&(o[a]||i)){var s=this.chart.rangeSelector;e||(e=y(R.common,o[a])),r.dataGrouping=y(i,e,t.series&&t.series.dataGrouping,t[a].dataGrouping,this.userOptions.dataGrouping,!r.isInternal&&s&&P(s.selected)&&s.buttonOptions[s.selected].dataGrouping)}}return{compose:function(g){var r=g.prototype.pointClass;m.indexOf(r)===-1&&(m.push(r),z(r,"update",function(){if(this.dataGroup)return E(24,!1,this.series.chart),!1})),m.indexOf(g)===-1&&(m.push(g),z(g,"afterSetOptions",c),z(g,"destroy",v),M(g.prototype,{applyGrouping:u,destroyGroupedData:v,generatePoints:w,getDGApproximation:S,groupData:x}))},groupData:x}}),it(B,"Extensions/DataGrouping/DataGrouping.js",[B["Extensions/DataGrouping/DataGroupingAxisComposition.js"],B["Extensions/DataGrouping/DataGroupingDefaults.js"],B["Extensions/DataGrouping/DataGroupingSeriesComposition.js"],B["Core/FormatUtilities.js"],B["Core/Utilities.js"]],function(W,R,H,V,$){var Z=V.format,U=$.addEvent,z=$.extend,I=$.isNumber,E=[];function M(P){var y,h,f,m,u,v=this.chart,w=v.time,S=P.labelConfig,x=S.series,c=x.options,g=x.tooltipOptions,r=c.dataGrouping,a=x.xAxis,t=g.xDateFormat,i=g[P.isFooter?"footerFormat":"headerFormat"];a&&a.options.type==="datetime"&&r&&I(S.key)&&(h=x.currentDataGrouping,f=r.dateTimeLabelFormats||R.common.dateTimeLabelFormats,h?(m=f[h.unitName],h.count===1?t=m[0]:(t=m[1],y=m[2])):!t&&f&&a.dateTime&&(t=a.dateTime.getXDateFormat(S.x,g.dateTimeLabelFormats)),u=w.dateFormat(t,S.key),y&&(u+=w.dateFormat(y,S.key+h.totalRange-1)),x.chart.styledMode&&(i=this.styledModeFormat(i)),P.text=Z(i,{point:z(S.point,{key:u}),series:x},v),P.preventDefault())}return{compose:function(P,y,h){W.compose(P),H.compose(y),E.indexOf(h)===-1&&(E.push(h),U(h,"headerFormatter",M))},groupData:H.groupData}}),it(B,"masters/modules/datagrouping.src.js",[B["Core/Globals.js"],B["Extensions/DataGrouping/ApproximationDefaults.js"],B["Extensions/DataGrouping/ApproximationRegistry.js"],B["Extensions/DataGrouping/DataGrouping.js"]],function(W,R,H,V){var $=W;$.dataGrouping={approximationDefaults:R,approximations:H},V.compose($.Axis,$.Series,$.Tooltip)}),it(B,"Series/DataModifyComposition.js",[B["Core/Axis/Axis.js"],B["Core/Series/Point.js"],B["Core/Series/Series.js"],B["Core/Utilities.js"]],function(W,R,H,V){var $,Z=R.prototype.tooltipFormatter,U=V.addEvent,z=V.arrayMax,I=V.arrayMin,E=V.correctFloat,M=V.defined,P=V.isArray,y=V.isNumber,h=V.isString,f=V.pick;return function(m){var u=[];function v(o,e,s){this.isXAxis||(this.series.forEach(function(n){o==="compare"&&typeof e!="boolean"?n.setCompare(e,!1):o!=="cumulative"||h(e)||n.setCumulative(e,!1)}),f(s,!0)&&this.chart.redraw())}function w(o){var e=this,s=e.series.chart.numberFormatter,n=function(l){o=o.replace("{point."+l+"}",(e[l]>0&&l==="change"?"+":"")+s(e[l],f(e.series.tooltipOptions.changeDecimals,2)))};return M(e.change)&&n("change"),M(e.cumulativeSum)&&n("cumulativeSum"),Z.apply(this,[o])}function S(){var o,e=this.options.compare;(e==="percent"||e==="value"||this.options.cumulative)&&(o=new i(this),e==="percent"||e==="value"?o.initCompare(e):o.initCumulative()),this.dataModify=o}function x(o){var e=o.dataExtremes,s=e.activeYData;if(this.dataModify&&e){var n=void 0;this.options.compare?n=[this.dataModify.modifyValue(e.dataMin),this.dataModify.modifyValue(e.dataMax)]:this.options.cumulative&&P(s)&&s.length>=2&&(n=i.getCumulativeExtremes(s)),n&&(e.dataMin=I(n),e.dataMax=z(n))}}function c(o,e){this.options.compare=this.userOptions.compare=o,this.update({},f(e,!0)),!this.dataModify||o!=="value"&&o!=="percent"?this.points.forEach(function(s){delete s.change}):this.dataModify.initCompare(o)}function g(){var o=this;if(o.xAxis&&o.processedYData&&o.dataModify){var e=o.processedXData,s=o.processedYData,n=s.length,l=o.options.compareStart===!0?0:1,b=-1,k=void 0;for(o.pointArrayMap&&(b=o.pointArrayMap.indexOf(o.options.pointValKey||o.pointValKey||"y")),k=0;k<n-l;k++){var D=s[k]&&b>-1?s[k][b]:s[k];if(y(D)&&D!==0&&e[k+l]>=(o.xAxis.min||0)){o.dataModify.compareValue=D;break}}}}function r(o,e){this.setModifier("compare",o,e)}function a(o,e){o=f(o,!1),this.options.cumulative=this.userOptions.cumulative=o,this.update({},f(e,!0)),this.dataModify?this.dataModify.initCumulative():this.points.forEach(function(s){delete s.cumulativeSum})}function t(o,e){this.setModifier("cumulative",o,e)}m.compose=function(o,e,s){if(u.indexOf(o)===-1){u.push(o);var n=o.prototype;n.setCompare=c,n.setCumulative=a,U(o,"afterInit",S),U(o,"afterGetExtremes",x),U(o,"afterProcessData",g)}if(u.indexOf(e)===-1){u.push(e);var l=e.prototype;l.setCompare=r,l.setModifier=v,l.setCumulative=t}return u.indexOf(s)===-1&&(u.push(s),s.prototype.tooltipFormatter=w),o};var i=function(){function o(e){this.series=e}return o.prototype.modifyValue=function(){return 0},o.getCumulativeExtremes=function(e){var s=1/0,n=-1/0;return e.reduce(function(l,b){var k=l+b;return s=Math.min(s,k,l),n=Math.max(n,k,l),k}),[s,n]},o.prototype.initCompare=function(e){this.modifyValue=function(s,n){s===null&&(s=0);var l=this.compareValue;if(s!==void 0&&l!==void 0){if(e==="value"?s-=l:s=s/l*100-(this.series.options.compareBase===100?0:100),n!==void 0){var b=this.series.points[n];b&&(b.change=s)}return s}return 0}},o.prototype.initCumulative=function(){this.modifyValue=function(e,s){if(e===null&&(e=0),e!==void 0&&s!==void 0){var n=s>0?this.series.points[s-1]:null;n&&n.cumulativeSum&&(e=E(n.cumulativeSum+e));var l=this.series.points[s];return l&&(l.cumulativeSum=e),e}return 0}},o}();m.Additions=i}($||($={})),$}),it(B,"Core/Axis/NavigatorAxisComposition.js",[B["Core/Globals.js"],B["Core/Utilities.js"]],function(W,R){var H=W.isTouchDevice,V=R.addEvent,$=R.correctFloat,Z=R.defined,U=R.isNumber,z=R.pick,I=[];function E(){var y=this;y.navigatorAxis||(y.navigatorAxis=new P(y))}function M(y){var h=this,f=h.chart.options,m=f.navigator,u=h.navigatorAxis,v=f.chart.zooming.pinchType,w=f.rangeSelector,S=f.chart.zooming.type;if(h.isXAxis&&(m&&m.enabled||w&&w.enabled)){if(S==="y")y.zoomed=!1;else if((!H&&S==="xy"||H&&v==="xy")&&h.options.range){var x=u.previousZoom;Z(y.newMin)?u.previousZoom=[h.min,h.max]:x&&(y.newMin=x[0],y.newMax=x[1],u.previousZoom=void 0)}}y.zoomed!==void 0&&y.preventDefault()}var P=function(){function y(h){this.axis=h}return y.compose=function(h){I.indexOf(h)===-1&&(I.push(h),h.keepProps.push("navigatorAxis"),V(h,"init",E),V(h,"zoom",M))},y.prototype.destroy=function(){this.axis=void 0},y.prototype.toFixedRange=function(h,f,m,u){var v=this.axis,w=v.chart,S=z(m,v.translate(h,!0,!v.horiz)),x=z(u,v.translate(f,!0,!v.horiz)),c=w&&w.fixedRange,g=(v.pointRange||0)/2,r=c&&(x-S)/c;return Z(m)||(S=$(S+g)),Z(u)||(x=$(x-g)),r>.7&&r<1.3&&(u?S=x-c:x=S+c),U(S)&&U(x)||(S=x=void 0),{min:S,max:x}},y}();return P}),it(B,"Stock/Navigator/NavigatorDefaults.js",[B["Core/Color/Color.js"],B["Core/Series/SeriesRegistry.js"]],function(W,R){var H=W.parse,V=R.seriesTypes;return{height:40,margin:25,maskInside:!0,handles:{width:7,height:15,symbols:["navigator-handle","navigator-handle"],enabled:!0,lineWidth:1,backgroundColor:"#f2f2f2",borderColor:"#999999"},maskFill:H("#6685c2").setOpacity(.3).get(),outlineColor:"#cccccc",outlineWidth:1,series:{type:V.areaspline===void 0?"line":"areaspline",fillOpacity:.05,lineWidth:1,compare:null,dataGrouping:{approximation:"average",enabled:!0,groupPixelWidth:2,firstAnchor:"firstPoint",anchor:"middle",lastAnchor:"lastPoint",units:[["millisecond",[1,2,5,10,20,25,50,100,200,500]],["second",[1,2,5,10,15,30]],["minute",[1,2,5,10,15,30]],["hour",[1,2,3,4,6,8,12]],["day",[1,2,3,4]],["week",[1,2,3]],["month",[1,3,6]],["year",null]]},dataLabels:{enabled:!1,zIndex:2},id:"highcharts-navigator-series",className:"highcharts-navigator-series",lineColor:null,marker:{enabled:!1},threshold:null},xAxis:{overscroll:0,className:"highcharts-navigator-xaxis",tickLength:0,lineWidth:0,gridLineColor:"#e6e6e6",gridLineWidth:1,tickPixelInterval:200,labels:{align:"left",style:{color:"#999999"},x:3,y:-4},crosshair:!1},yAxis:{className:"highcharts-navigator-yaxis",gridLineWidth:0,startOnTick:!1,endOnTick:!1,minPadding:.1,maxPadding:.1,labels:{enabled:!1},crosshair:!1,title:{text:null},tickLength:0,tickWidth:0}}}),it(B,"Stock/Navigator/NavigatorSymbols.js",[],function(){return{"navigator-handle":function(W,R,H,V,$){$===void 0&&($={});var Z=$.width?$.width/2:H,U=Math.round(Z/3)+.5;return[["M",-Z-1,.5],["L",Z,.5],["L",Z,(V=$.height||V)+.5],["L",-Z-1,V+.5],["L",-Z-1,.5],["M",-U,4],["L",-U,V-3],["M",U-1,4],["L",U-1,V-3]]}}}),it(B,"Stock/Navigator/NavigatorComposition.js",[B["Core/Defaults.js"],B["Core/Globals.js"],B["Core/Axis/NavigatorAxisComposition.js"],B["Stock/Navigator/NavigatorDefaults.js"],B["Stock/Navigator/NavigatorSymbols.js"],B["Core/Renderer/RendererRegistry.js"],B["Core/Utilities.js"]],function(W,R,H,V,$,Z,U){var z,I=W.defaultOptions,E=W.setOptions,M=R.isTouchDevice,P=Z.getRendererType,y=U.addEvent,h=U.extend,f=U.merge,m=U.pick,u=[];function v(){this.navigator&&this.navigator.setBaseSeries(null,!1)}function w(){var t,i,o,e,s=this.legend,n=this.navigator;n&&(i=s&&s.options,o=n.xAxis,e=n.yAxis,t=n.scrollbarHeight,this.inverted?(n.left=n.opposite?this.chartWidth-t-n.height:this.spacing[3]+t,n.top=this.plotTop+t):(n.left=m(o.left,this.plotLeft+t),n.top=n.navigatorOptions.top||this.chartHeight-n.height-t-this.spacing[2]-(this.rangeSelector&&this.extraBottomMargin?this.rangeSelector.getHeight():0)-(i&&i.verticalAlign==="bottom"&&i.layout!=="proximate"&&i.enabled&&!i.floating?s.legendHeight+m(i.margin,10):0)-(this.titleOffset?this.titleOffset[2]:0)),o&&e&&(this.inverted?o.options.left=e.options.left=n.left:o.options.top=e.options.top=n.top,o.setAxisSize(),e.setAxisSize()))}function S(t){this.navigator||this.scroller||!this.options.navigator.enabled&&!this.options.scrollbar.enabled||(this.scroller=this.navigator=new z(this),m(t.redraw,!0)&&this.redraw(t.animation))}function x(){var t=this.options;(t.navigator.enabled||t.scrollbar.enabled)&&(this.scroller=this.navigator=new z(this))}function c(){var t=this.options,i=t.navigator,o=t.rangeSelector;if((i&&i.enabled||o&&o.enabled)&&(!M&&t.chart.zooming.type==="x"||M&&t.chart.zooming.pinchType==="x"))return!1}function g(t){var i=t.navigator;if(i&&t.xAxis[0]){var o=t.xAxis[0].getExtremes();i.render(o.min,o.max)}}function r(t){var i=t.options.navigator||{},o=t.options.scrollbar||{};this.navigator||this.scroller||!i.enabled&&!o.enabled||(f(!0,this.options.navigator,i),f(!0,this.options.scrollbar,o),delete t.options.navigator,delete t.options.scrollbar)}function a(){this.chart.navigator&&!this.options.isInternal&&this.chart.navigator.setBaseSeries(null,!1)}return{compose:function(t,i,o,e){H.compose(t),z=o,u.indexOf(i)===-1&&(u.push(i),i.prototype.callbacks.push(g),y(i,"afterAddSeries",v),y(i,"afterSetChartSize",w),y(i,"afterUpdate",S),y(i,"beforeRender",x),y(i,"beforeShowResetZoom",c),y(i,"update",r)),u.indexOf(e)===-1&&(u.push(e),y(e,"afterUpdate",a)),u.indexOf(P)===-1&&(u.push(P),h(P().prototype.symbols,$)),u.indexOf(E)===-1&&(u.push(E),h(I,{navigator:V}))}}}),it(B,"Core/Axis/ScrollbarAxis.js",[B["Core/Utilities.js"]],function(W){var R=W.addEvent,H=W.defined,V=W.pick;return function(){function $(){}return $.compose=function(Z,U){if($.composed.indexOf(Z)!==-1)return Z;$.composed.push(Z);var z=function(I){var E=V(I.options&&I.options.min,I.min),M=V(I.options&&I.options.max,I.max);return{axisMin:E,axisMax:M,scrollMin:H(I.dataMin)?Math.min(E,I.min,I.dataMin,V(I.threshold,1/0)):E,scrollMax:H(I.dataMax)?Math.max(M,I.max,I.dataMax,V(I.threshold,-1/0)):M}};return R(Z,"afterInit",function(){var I=this;I.options&&I.options.scrollbar&&I.options.scrollbar.enabled&&(I.options.scrollbar.vertical=!I.horiz,I.options.startOnTick=I.options.endOnTick=!1,I.scrollbar=new U(I.chart.renderer,I.options.scrollbar,I.chart),R(I.scrollbar,"changed",function(E){var M,P,y=z(I),h=y.axisMin,f=y.axisMax,m=y.scrollMin,u=y.scrollMax-m;H(h)&&H(f)&&(I.horiz&&!I.reversed||!I.horiz&&I.reversed?(M=m+u*this.to,P=m+u*this.from):(M=m+u*(1-this.from),P=m+u*(1-this.to)),this.shouldUpdateExtremes(E.DOMType)?I.setExtremes(P,M,!0,E.DOMType!=="mousemove"&&E.DOMType!=="touchmove",E):this.setRange(this.from,this.to))}))}),R(Z,"afterRender",function(){var I,E,M,P=this,y=z(P),h=y.scrollMin,f=y.scrollMax,m=P.scrollbar,u=P.axisTitleMargin+(P.titleOffset||0),v=P.chart.scrollbarsOffsets,w=P.options.margin||0;if(m){if(P.horiz)P.opposite||(v[1]+=u),m.position(P.left,P.top+P.height+2+v[1]-(P.opposite?w:0),P.width,P.height),P.opposite||(v[1]+=w),I=1;else{P.opposite&&(v[0]+=u);var S;S=m.options.opposite?P.left+P.width+2+v[0]-(P.opposite?0:w):P.opposite?0:w,m.position(S,P.top,P.width,P.height),P.opposite&&(v[0]+=w),I=0}v[I]+=m.size+m.options.margin,isNaN(h)||isNaN(f)||!H(P.min)||!H(P.max)||P.min===P.max?m.setRange(0,1):(E=(P.min-h)/(f-h),M=(P.max-h)/(f-h),P.horiz&&!P.reversed||!P.horiz&&P.reversed?m.setRange(E,M):m.setRange(1-M,1-E))}}),R(Z,"afterGetOffset",function(){var I=this,E=I.scrollbar&&!I.scrollbar.options.opposite,M=I.horiz?2:E?3:1,P=I.scrollbar;P&&(I.chart.scrollbarsOffsets=[0,0],I.chart.axisOffset[M]+=P.size+P.options.margin)}),Z},$.composed=[],$}()}),it(B,"Stock/Scrollbar/ScrollbarDefaults.js",[B["Core/Globals.js"]],function(W){return{height:W.isTouchDevice?20:14,barBorderRadius:0,buttonBorderRadius:0,liveRedraw:void 0,margin:10,minWidth:6,opposite:!0,step:.2,zIndex:3,barBackgroundColor:"#cccccc",barBorderWidth:1,barBorderColor:"#cccccc",buttonArrowColor:"#333333",buttonBackgroundColor:"#e6e6e6",buttonBorderColor:"#cccccc",buttonBorderWidth:1,rifleColor:"#333333",trackBackgroundColor:"#f2f2f2",trackBorderColor:"#f2f2f2",trackBorderWidth:1}}),it(B,"Stock/Scrollbar/Scrollbar.js",[B["Core/Defaults.js"],B["Core/Globals.js"],B["Core/Axis/ScrollbarAxis.js"],B["Stock/Scrollbar/ScrollbarDefaults.js"],B["Core/Utilities.js"]],function(W,R,H,V,$){var Z=W.defaultOptions,U=$.addEvent,z=$.correctFloat,I=$.defined,E=$.destroyObjectProperties,M=$.fireEvent,P=$.merge,y=$.pick,h=$.removeEvent,f=function(){function m(u,v,w){this._events=[],this.chart=void 0,this.chartX=0,this.chartY=0,this.from=0,this.group=void 0,this.options=void 0,this.renderer=void 0,this.scrollbar=void 0,this.scrollbarButtons=[],this.scrollbarGroup=void 0,this.scrollbarLeft=0,this.scrollbarRifles=void 0,this.scrollbarStrokeWidth=1,this.scrollbarTop=0,this.size=0,this.to=0,this.track=void 0,this.trackBorderWidth=1,this.userOptions=void 0,this.x=0,this.y=0,this.init(u,v,w)}return m.compose=function(u){H.compose(u,m)},m.swapXY=function(u,v){return v&&u.forEach(function(w){for(var S,x=w.length,c=0;c<x;c+=2)typeof(S=w[c+1])=="number"&&(w[c+1]=w[c+2],w[c+2]=S)}),u},m.prototype.addEvents=function(){var u=this.options.inverted?[1,0]:[0,1],v=this.scrollbarButtons,w=this.scrollbarGroup.element,S=this.track.element,x=this.mouseDownHandler.bind(this),c=this.mouseMoveHandler.bind(this),g=this.mouseUpHandler.bind(this),r=[[v[u[0]].element,"click",this.buttonToMinClick.bind(this)],[v[u[1]].element,"click",this.buttonToMaxClick.bind(this)],[S,"click",this.trackClick.bind(this)],[w,"mousedown",x],[w.ownerDocument,"mousemove",c],[w.ownerDocument,"mouseup",g]];R.hasTouch&&r.push([w,"touchstart",x],[w.ownerDocument,"touchmove",c],[w.ownerDocument,"touchend",g]),r.forEach(function(a){U.apply(null,a)}),this._events=r},m.prototype.buttonToMaxClick=function(u){var v=this,w=(v.to-v.from)*y(v.options.step,.2);v.updatePosition(v.from+w,v.to+w),M(v,"changed",{from:v.from,to:v.to,trigger:"scrollbar",DOMEvent:u})},m.prototype.buttonToMinClick=function(u){var v=this,w=z(v.to-v.from)*y(v.options.step,.2);v.updatePosition(z(v.from-w),z(v.to-w)),M(v,"changed",{from:v.from,to:v.to,trigger:"scrollbar",DOMEvent:u})},m.prototype.cursorToScrollbarPosition=function(u){var v=this,w=v.options,S=w.minWidth>v.calculatedWidth?w.minWidth:0;return{chartX:(u.chartX-v.x-v.xOffset)/(v.barWidth-S),chartY:(u.chartY-v.y-v.yOffset)/(v.barWidth-S)}},m.prototype.destroy=function(){var u=this,v=u.chart.scroller;u.removeEvents(),["track","scrollbarRifles","scrollbar","scrollbarGroup","group"].forEach(function(w){u[w]&&u[w].destroy&&(u[w]=u[w].destroy())}),v&&u===v.scrollbar&&(v.scrollbar=null,E(v.scrollbarButtons))},m.prototype.drawScrollbarButton=function(u){var v,w=this,S=w.renderer,x=w.scrollbarButtons,c=w.options,g=w.size,r=S.g().add(w.group);x.push(r),v=S.rect().addClass("highcharts-scrollbar-button").add(r),w.chart.styledMode||v.attr({stroke:c.buttonBorderColor,"stroke-width":c.buttonBorderWidth,fill:c.buttonBackgroundColor}),v.attr(v.crisp({x:-.5,y:-.5,width:g+1,height:g+1,r:c.buttonBorderRadius},v.strokeWidth())),v=S.path(m.swapXY([["M",g/2+(u?-1:1),g/2-3],["L",g/2+(u?-1:1),g/2+3],["L",g/2+(u?2:-2),g/2]],c.vertical)).addClass("highcharts-scrollbar-arrow").add(x[u]),w.chart.styledMode||v.attr({fill:c.buttonArrowColor})},m.prototype.init=function(u,v,w){var S=this;S.scrollbarButtons=[],S.renderer=u,S.userOptions=v,S.options=P(V,Z.scrollbar,v),S.chart=w,S.size=y(S.options.size,S.options.height),v.enabled&&(S.render(),S.addEvents())},m.prototype.mouseDownHandler=function(u){var v=this,w=v.chart.pointer.normalize(u),S=v.cursorToScrollbarPosition(w);v.chartX=S.chartX,v.chartY=S.chartY,v.initPositions=[v.from,v.to],v.grabbedCenter=!0},m.prototype.mouseMoveHandler=function(u){var v,w=this,S=w.chart.pointer.normalize(u),x=w.options.vertical?"chartY":"chartX",c=w.initPositions||[];!w.grabbedCenter||u.touches&&u.touches[0][x]===0||(v=w.cursorToScrollbarPosition(S)[x]-w[x],w.hasDragged=!0,w.updatePosition(c[0]+v,c[1]+v),w.hasDragged&&M(w,"changed",{from:w.from,to:w.to,trigger:"scrollbar",DOMType:u.type,DOMEvent:u}))},m.prototype.mouseUpHandler=function(u){var v=this;v.hasDragged&&M(v,"changed",{from:v.from,to:v.to,trigger:"scrollbar",DOMType:u.type,DOMEvent:u}),v.grabbedCenter=v.hasDragged=v.chartX=v.chartY=null},m.prototype.position=function(u,v,w,S){var x=this,c=x.options.vertical,g=x.rendered?"animate":"attr",r=S,a=0;x.group.show(),x.x=u,x.y=v+this.trackBorderWidth,x.width=w,x.height=S,x.xOffset=r,x.yOffset=a,c?(x.width=x.yOffset=w=a=x.size,x.xOffset=r=0,x.barWidth=S-2*w,x.x=u+=x.options.margin):(x.height=x.xOffset=S=r=x.size,x.barWidth=w-2*S,x.y=x.y+x.options.margin),x.group[g]({translateX:u,translateY:x.y}),x.track[g]({width:w,height:S}),x.scrollbarButtons[1][g]({translateX:c?0:w-r,translateY:c?S-a:0})},m.prototype.removeEvents=function(){this._events.forEach(function(u){h.apply(null,u)}),this._events.length=0},m.prototype.render=function(){var u=this,v=u.renderer,w=u.options,S=u.size,x=u.chart.styledMode,c=v.g("scrollbar").attr({zIndex:w.zIndex}).hide().add();u.group=c,u.track=v.rect().addClass("highcharts-scrollbar-track").attr({x:0,r:w.trackBorderRadius||0,height:S,width:S}).add(c),x||u.track.attr({fill:w.trackBackgroundColor,stroke:w.trackBorderColor,"stroke-width":w.trackBorderWidth}),u.trackBorderWidth=u.track.strokeWidth(),u.track.attr({y:-this.trackBorderWidth%2/2}),u.scrollbarGroup=v.g().add(c),u.scrollbar=v.rect().addClass("highcharts-scrollbar-thumb").attr({height:S,width:S,r:w.barBorderRadius||0}).add(u.scrollbarGroup),u.scrollbarRifles=v.path(m.swapXY([["M",-3,S/4],["L",-3,2*S/3],["M",0,S/4],["L",0,2*S/3],["M",3,S/4],["L",3,2*S/3]],w.vertical)).addClass("highcharts-scrollbar-rifles").add(u.scrollbarGroup),x||(u.scrollbar.attr({fill:w.barBackgroundColor,stroke:w.barBorderColor,"stroke-width":w.barBorderWidth}),u.scrollbarRifles.attr({stroke:w.rifleColor,"stroke-width":1})),u.scrollbarStrokeWidth=u.scrollbar.strokeWidth(),u.scrollbarGroup.translate(-u.scrollbarStrokeWidth%2/2,-u.scrollbarStrokeWidth%2/2),u.drawScrollbarButton(0),u.drawScrollbarButton(1)},m.prototype.setRange=function(u,v){var w=this,S=w.options,x=S.vertical,c=S.minWidth,g=w.barWidth,r=!this.rendered||this.hasDragged||this.chart.navigator&&this.chart.navigator.hasDragged?"attr":"animate";if(I(g)){var a,t,i=g*Math.min(v,1);u=Math.max(u,0),a=Math.ceil(g*u),w.calculatedWidth=t=z(i-a),t<c&&(a=(g-c+t)*u,t=c);var o=Math.floor(a+w.xOffset+w.yOffset),e=t/2-.5;w.from=u,w.to=v,x?(w.scrollbarGroup[r]({translateY:o}),w.scrollbar[r]({height:t}),w.scrollbarRifles[r]({translateY:e}),w.scrollbarTop=o,w.scrollbarLeft=0):(w.scrollbarGroup[r]({translateX:o}),w.scrollbar[r]({width:t}),w.scrollbarRifles[r]({translateX:e}),w.scrollbarLeft=o,w.scrollbarTop=0),t<=12?w.scrollbarRifles.hide():w.scrollbarRifles.show(),S.showFull===!1&&(u<=0&&v>=1?w.group.hide():w.group.show()),w.rendered=!0}},m.prototype.shouldUpdateExtremes=function(u){return y(this.options.liveRedraw,R.svg&&!R.isTouchDevice&&!this.chart.boosted)||u==="mouseup"||u==="touchend"||!I(u)},m.prototype.trackClick=function(u){var v=this,w=v.chart.pointer.normalize(u),S=v.to-v.from,x=v.y+v.scrollbarTop,c=v.x+v.scrollbarLeft;v.options.vertical&&w.chartY>x||!v.options.vertical&&w.chartX>c?v.updatePosition(v.from+S,v.to+S):v.updatePosition(v.from-S,v.to-S),M(v,"changed",{from:v.from,to:v.to,trigger:"scrollbar",DOMEvent:u})},m.prototype.update=function(u){this.destroy(),this.init(this.chart.renderer,P(!0,this.options,u),this.chart)},m.prototype.updatePosition=function(u,v){v>1&&(u=z(1-z(v-u)),v=1),u<0&&(v=z(v-u),u=0),this.from=u,this.to=v},m.defaultOptions=V,m}();return Z.scrollbar=P(!0,f.defaultOptions,Z.scrollbar),f}),it(B,"Stock/Navigator/Navigator.js",[B["Core/Axis/Axis.js"],B["Core/Defaults.js"],B["Core/Globals.js"],B["Core/Axis/NavigatorAxisComposition.js"],B["Stock/Navigator/NavigatorComposition.js"],B["Stock/Scrollbar/Scrollbar.js"],B["Core/Utilities.js"]],function(W,R,H,V,$,Z,U){var z=R.defaultOptions,I=H.hasTouch,E=H.isTouchDevice,M=U.addEvent,P=U.clamp,y=U.correctFloat,h=U.defined,f=U.destroyObjectProperties,m=U.erase,u=U.extend,v=U.find,w=U.isArray,S=U.isNumber,x=U.merge,c=U.pick,g=U.removeEvent,r=U.splat;function a(t){for(var i=[],o=1;o<arguments.length;o++)i[o-1]=arguments[o];var e=[].filter.call(i,S);if(e.length)return Math[t].apply(0,e)}return function(){function t(i){this.baseSeries=void 0,this.chart=void 0,this.handles=void 0,this.height=void 0,this.left=void 0,this.navigatorEnabled=void 0,this.navigatorGroup=void 0,this.navigatorOptions=void 0,this.navigatorSeries=void 0,this.navigatorSize=void 0,this.opposite=void 0,this.outline=void 0,this.outlineHeight=void 0,this.range=void 0,this.rendered=void 0,this.shades=void 0,this.size=void 0,this.top=void 0,this.xAxis=void 0,this.yAxis=void 0,this.zoomedMax=void 0,this.zoomedMin=void 0,this.init(i)}return t.compose=function(i,o,e){$.compose(i,o,t,e)},t.prototype.drawHandle=function(i,o,e,s){var n=this,l=n.navigatorOptions.handles.height;n.handles[o][s](e?{translateX:Math.round(n.left+n.height/2),translateY:Math.round(n.top+parseInt(i,10)+.5-l)}:{translateX:Math.round(n.left+parseInt(i,10)),translateY:Math.round(n.top+n.height/2-l/2-1)})},t.prototype.drawOutline=function(i,o,e,s){var n,l,b=this,k=b.navigatorOptions.maskInside,D=b.outline.strokeWidth(),p=D/2,C=D%2/2,A=b.outlineHeight,N=b.scrollbarHeight||0,_=b.size,L=b.left-N,O=b.top;e?(l=[["M",(L-=p)+A,O-N-C],["L",L+A,n=O+o+C],["L",L,n],["L",L,o=O+i+C],["L",L+A,o],["L",L+A,O+_+N]],k&&l.push(["M",L+A,n-p],["L",L+A,o+p])):(l=[["M",L,O+=p],["L",i+=L+N-C,O],["L",i,O+A],["L",o+=L+N-C,O+A],["L",o,O],["L",L+_+2*N,O]],k&&l.push(["M",i-p,O],["L",o+p,O])),b.outline[s]({d:l})},t.prototype.drawMasks=function(i,o,e,s){var n,l,b,k,D=this,p=D.left,C=D.top,A=D.height;e?(b=[p,p,p],k=[C,C+i,C+o],l=[A,A,A],n=[i,o-i,D.size-o]):(b=[p,p+i,p+o],k=[C,C,C],l=[i,o-i,D.size-o],n=[A,A,A]),D.shades.forEach(function(N,_){N[s]({x:b[_],y:k[_],width:l[_],height:n[_]})})},t.prototype.renderElements=function(){var i=this,o=i.navigatorOptions,e=o.maskInside,s=i.chart,n=s.inverted,l=s.renderer,b={cursor:n?"ns-resize":"ew-resize"},k=i.navigatorGroup=l.g("navigator").attr({zIndex:8,visibility:"hidden"}).add();if([!e,e,!e].forEach(function(A,N){var _=l.rect().addClass("highcharts-navigator-mask"+(N===1?"-inside":"-outside")).add(k);s.styledMode||(_.attr({fill:A?o.maskFill:"rgba(0,0,0,0)"}),N===1&&_.css(b)),i.shades[N]=_}),i.outline=l.path().addClass("highcharts-navigator-outline").add(k),s.styledMode||i.outline.attr({"stroke-width":o.outlineWidth,stroke:o.outlineColor}),o.handles&&o.handles.enabled){var D=o.handles,p=D.height,C=D.width;[0,1].forEach(function(A){i.handles[A]=l.symbol(D.symbols[A],-C/2-1,0,C,p,D),s.inverted&&i.handles[A].attr({rotation:90,rotationOriginX:Math.floor(-C/2),rotationOriginY:(p+C)/2}),i.handles[A].attr({zIndex:7-A}).addClass("highcharts-navigator-handle highcharts-navigator-handle-"+["left","right"][A]).add(k),s.styledMode||i.handles[A].attr({fill:D.backgroundColor,stroke:D.borderColor,"stroke-width":D.lineWidth}).css(b)})}},t.prototype.update=function(i){(this.series||[]).forEach(function(e){e.baseSeries&&delete e.baseSeries.navigatorSeries}),this.destroy();var o=this.chart.options;x(!0,o.navigator,i),this.init(this.chart)},t.prototype.render=function(i,o,e,s){var n,l,b,k,D,p=this,C=p.chart,A=p.xAxis,N=A.pointRange||0,_=A.navigatorAxis.fake?C.xAxis[0]:A,L=p.navigatorEnabled,O=p.rendered,j=C.inverted,Y=C.xAxis[0].minRange,X=C.xAxis[0].options.maxRange,G=p.scrollbarHeight;if(!this.hasDragged||h(e)){if(i=y(i-N/2),o=y(o+N/2),!S(i)||!S(o)){if(!O)return;e=0,s=c(A.width,_.width)}p.left=c(A.left,C.plotLeft+G+(j?C.plotWidth:0));var q=p.size=k=c(A.len,(j?C.plotHeight:C.plotWidth)-2*G);n=j?G:k+2*G,e=c(e,A.toPixels(i,!0)),s=c(s,A.toPixels(o,!0)),S(e)&&Math.abs(e)!==1/0||(e=0,s=n);var Q=A.toValue(e,!0),J=A.toValue(s,!0),rt=Math.abs(y(J-Q));rt<Y?this.grabbedLeft?e=A.toPixels(J-Y-N,!0):this.grabbedRight&&(s=A.toPixels(Q+Y+N,!0)):h(X)&&y(rt-N)>X&&(this.grabbedLeft?e=A.toPixels(J-X-N,!0):this.grabbedRight&&(s=A.toPixels(Q+X+N,!0))),p.zoomedMax=P(Math.max(e,s),0,q),p.zoomedMin=P(p.fixedWidth?p.zoomedMax-p.fixedWidth:Math.min(e,s),0,q),p.range=p.zoomedMax-p.zoomedMin,q=Math.round(p.zoomedMax);var lt=Math.round(p.zoomedMin);L&&(p.navigatorGroup.attr({visibility:"inherit"}),D=O&&!p.hasDragged?"animate":"attr",p.drawMasks(lt,q,j,D),p.drawOutline(lt,q,j,D),p.navigatorOptions.handles.enabled&&(p.drawHandle(lt,0,j,D),p.drawHandle(q,1,j,D))),p.scrollbar&&(j?(b=p.top-G,l=p.left-G+(L||!_.opposite?0:(_.titleOffset||0)+_.axisTitleMargin),G=k+2*G):(b=p.top+(L?p.height:-G),l=p.left-G),p.scrollbar.position(l,b,n,G),p.scrollbar.setRange(p.zoomedMin/(k||1),p.zoomedMax/(k||1))),p.rendered=!0}},t.prototype.addMouseEvents=function(){var i,o,e=this,s=e.chart,n=s.container,l=[];e.mouseMoveHandler=i=function(b){e.onMouseMove(b)},e.mouseUpHandler=o=function(b){e.onMouseUp(b)},(l=e.getPartsEvents("mousedown")).push(M(s.renderTo,"mousemove",i),M(n.ownerDocument,"mouseup",o)),I&&(l.push(M(s.renderTo,"touchmove",i),M(n.ownerDocument,"touchend",o)),l.concat(e.getPartsEvents("touchstart"))),e.eventsToUnbind=l,e.series&&e.series[0]&&l.push(M(e.series[0].xAxis,"foundExtremes",function(){s.navigator.modifyNavigatorAxisExtremes()}))},t.prototype.getPartsEvents=function(i){var o=this,e=[];return["shades","handles"].forEach(function(s){o[s].forEach(function(n,l){e.push(M(n.element,i,function(b){o[s+"Mousedown"](b,l)}))})}),e},t.prototype.shadesMousedown=function(i,o){i=this.chart.pointer.normalize(i);var e,s,n,l,b=this,k=b.chart,D=b.xAxis,p=b.zoomedMin,C=b.size,A=b.range,N=b.left,_=i.chartX;k.inverted&&(_=i.chartY,N=b.top),o===1?(b.grabbedCenter=_,b.fixedWidth=A,b.dragOffset=_-p):(l=_-N-A/2,o===0?l=Math.max(0,l):o===2&&l+A>=C&&(l=C-A,b.reversedExtremes?(l-=A,s=b.getUnionExtremes().dataMin):e=b.getUnionExtremes().dataMax),l!==p&&(b.fixedWidth=A,n=D.navigatorAxis.toFixedRange(l,l+A,s,e),h(n.min)&&k.xAxis[0].setExtremes(Math.min(n.min,n.max),Math.max(n.min,n.max),!0,null,{trigger:"navigator"})))},t.prototype.handlesMousedown=function(i,o){i=this.chart.pointer.normalize(i);var e=this,s=e.chart,n=s.xAxis[0],l=e.reversedExtremes;o===0?(e.grabbedLeft=!0,e.otherHandlePos=e.zoomedMax,e.fixedExtreme=l?n.min:n.max):(e.grabbedRight=!0,e.otherHandlePos=e.zoomedMin,e.fixedExtreme=l?n.max:n.min),s.fixedRange=null},t.prototype.onMouseMove=function(i){var o,e=this,s=e.chart,n=e.navigatorSize,l=e.range,b=e.dragOffset,k=s.inverted,D=e.left;i.touches&&i.touches[0].pageX===0||(o=(i=s.pointer.normalize(i)).chartX,k&&(D=e.top,o=i.chartY),e.grabbedLeft?(e.hasDragged=!0,e.render(0,0,o-D,e.otherHandlePos)):e.grabbedRight?(e.hasDragged=!0,e.render(0,0,e.otherHandlePos,o-D)):e.grabbedCenter&&(e.hasDragged=!0,o<b?o=b:o>n+b-l&&(o=n+b-l),e.render(0,0,o-b,o-b+l)),e.hasDragged&&e.scrollbar&&c(e.scrollbar.options.liveRedraw,H.svg&&!E&&!this.chart.boosted)&&(i.DOMType=i.type,setTimeout(function(){e.onMouseUp(i)},0)))},t.prototype.onMouseUp=function(i){var o,e,s,n,l,b,k=this,D=k.chart,p=k.xAxis,C=k.scrollbar,A=i.DOMEvent||i,N=D.inverted,_=k.rendered&&!k.hasDragged?"animate":"attr";(!k.hasDragged||C&&C.hasDragged)&&i.trigger!=="scrollbar"||(s=k.getUnionExtremes(),k.zoomedMin===k.otherHandlePos?n=k.fixedExtreme:k.zoomedMax===k.otherHandlePos&&(l=k.fixedExtreme),k.zoomedMax===k.size&&(l=k.reversedExtremes?s.dataMin:s.dataMax),k.zoomedMin===0&&(n=k.reversedExtremes?s.dataMax:s.dataMin),b=p.navigatorAxis.toFixedRange(k.zoomedMin,k.zoomedMax,n,l),h(b.min)&&D.xAxis[0].setExtremes(Math.min(b.min,b.max),Math.max(b.min,b.max),!0,!k.hasDragged&&null,{trigger:"navigator",triggerOp:"navigator-drag",DOMEvent:A})),i.DOMType!=="mousemove"&&i.DOMType!=="touchmove"&&(k.grabbedLeft=k.grabbedRight=k.grabbedCenter=k.fixedWidth=k.fixedExtreme=k.otherHandlePos=k.hasDragged=k.dragOffset=null),k.navigatorEnabled&&S(k.zoomedMin)&&S(k.zoomedMax)&&(e=Math.round(k.zoomedMin),o=Math.round(k.zoomedMax),k.shades&&k.drawMasks(e,o,N,_),k.outline&&k.drawOutline(e,o,N,_),k.navigatorOptions.handles.enabled&&Object.keys(k.handles).length===k.handles.length&&(k.drawHandle(e,0,N,_),k.drawHandle(o,1,N,_)))},t.prototype.removeEvents=function(){this.eventsToUnbind&&(this.eventsToUnbind.forEach(function(i){i()}),this.eventsToUnbind=void 0),this.removeBaseSeriesEvents()},t.prototype.removeBaseSeriesEvents=function(){var i=this.baseSeries||[];this.navigatorEnabled&&i[0]&&(this.navigatorOptions.adaptToUpdatedData!==!1&&i.forEach(function(o){g(o,"updatedData",this.updatedDataHandler)},this),i[0].xAxis&&g(i[0].xAxis,"foundExtremes",this.modifyBaseAxisExtremes))},t.prototype.init=function(i){var o=i.options,e=o.navigator||{},s=e.enabled,n=o.scrollbar||{},l=n.enabled,b=s&&e.height||0,k=l&&n.height||0;this.handles=[],this.shades=[],this.chart=i,this.setBaseSeries(),this.height=b,this.scrollbarHeight=k,this.scrollbarEnabled=l,this.navigatorEnabled=s,this.navigatorOptions=e,this.scrollbarOptions=n,this.outlineHeight=b+k,this.opposite=c(e.opposite,!!(!s&&i.inverted));var D=this,p=D.baseSeries,C=i.xAxis.length,A=i.yAxis.length,N=p&&p[0]&&p[0].xAxis||i.xAxis[0]||{options:{}};i.isDirtyBox=!0,D.navigatorEnabled?(D.xAxis=new W(i,x({breaks:N.options.breaks,ordinal:N.options.ordinal},e.xAxis,{id:"navigator-x-axis",yAxis:"navigator-y-axis",isX:!0,type:"datetime",index:C,isInternal:!0,offset:0,keepOrdinalPadding:!0,startOnTick:!1,endOnTick:!1,minPadding:0,maxPadding:0,zoomEnabled:!1},i.inverted?{offsets:[k,0,-k,0],width:b}:{offsets:[0,-k,0,k],height:b})),D.yAxis=new W(i,x(e.yAxis,{id:"navigator-y-axis",alignTicks:!1,offset:0,index:A,isInternal:!0,reversed:c(e.yAxis&&e.yAxis.reversed,i.yAxis[0]&&i.yAxis[0].reversed,!1),zoomEnabled:!1},i.inverted?{width:b}:{height:b})),p||e.series.data?D.updateNavigatorSeries(!1):i.series.length===0&&(D.unbindRedraw=M(i,"beforeRedraw",function(){i.series.length>0&&!D.series&&(D.setBaseSeries(),D.unbindRedraw())})),D.reversedExtremes=i.inverted&&!D.xAxis.reversed||!i.inverted&&D.xAxis.reversed,D.renderElements(),D.addMouseEvents()):(D.xAxis={chart:i,navigatorAxis:{fake:!0},translate:function(_,L){var O=i.xAxis[0],j=O.getExtremes(),Y=O.len-2*k,X=a("min",O.options.min,j.dataMin),G=a("max",O.options.max,j.dataMax)-X;return L?_*G/Y+X:Y*(_-X)/G},toPixels:function(_){return this.translate(_)},toValue:function(_){return this.translate(_,!0)}},D.xAxis.navigatorAxis.axis=D.xAxis,D.xAxis.navigatorAxis.toFixedRange=V.prototype.toFixedRange.bind(D.xAxis.navigatorAxis)),i.options.scrollbar.enabled&&(i.scrollbar=D.scrollbar=new Z(i.renderer,x(i.options.scrollbar,{margin:D.navigatorEnabled?0:10,vertical:i.inverted}),i),M(D.scrollbar,"changed",function(_){var L=D.size,O=L*this.to,j=L*this.from;D.hasDragged=D.scrollbar.hasDragged,D.render(0,0,j,O),this.shouldUpdateExtremes(_.DOMType)&&setTimeout(function(){D.onMouseUp(_)})})),D.addBaseSeriesEvents(),D.addChartEvents()},t.prototype.getUnionExtremes=function(i){var o,e=this.chart.xAxis[0],s=this.xAxis,n=s.options,l=e.options;return i&&e.dataMin===null||(o={dataMin:c(n&&n.min,a("min",l.min,e.dataMin,s.dataMin,s.min)),dataMax:c(n&&n.max,a("max",l.max,e.dataMax,s.dataMax,s.max))}),o},t.prototype.setBaseSeries=function(i,o){var e=this.chart,s=this.baseSeries=[];i=i||e.options&&e.options.navigator.baseSeries||(e.series.length?v(e.series,function(n){return!n.options.isInternal}).index:0),(e.series||[]).forEach(function(n,l){n.options.isInternal||!n.options.showInNavigator&&(l!==i&&n.options.id!==i||n.options.showInNavigator===!1)||s.push(n)}),this.xAxis&&!this.xAxis.navigatorAxis.fake&&this.updateNavigatorSeries(!0,o)},t.prototype.updateNavigatorSeries=function(i,o){var e,s,n,l=this,b=l.chart,k=l.baseSeries,D={enableMouseTracking:!1,index:null,linkedTo:null,group:"nav",padXAxis:!1,xAxis:"navigator-x-axis",yAxis:"navigator-y-axis",showInLegend:!1,stacking:void 0,isInternal:!0,states:{inactive:{opacity:1}}},p=l.series=(l.series||[]).filter(function(A){var N=A.baseSeries;return!(k.indexOf(N)<0&&(N&&(g(N,"updatedData",l.updatedDataHandler),delete N.navigatorSeries),A.chart&&A.destroy(),1))}),C=l.navigatorOptions.series;k&&k.length&&k.forEach(function(A){var N=A.navigatorSeries,_=u({color:A.color,visible:A.visible},w(C)?z.navigator.series:C);if(!N||l.navigatorOptions.adaptToUpdatedData!==!1){D.name="Navigator "+k.length,e=A.options||{},n=e.navigatorOptions||{},_.dataLabels=r(_.dataLabels),(s=x(e,D,_,n)).pointRange=c(_.pointRange,n.pointRange,z.plotOptions[s.type||"line"].pointRange);var L=n.data||_.data;l.hasNavigatorData=l.hasNavigatorData||!!L,s.data=L||e.data&&e.data.slice(0),N&&N.options?N.update(s,o):(A.navigatorSeries=b.initSeries(s),A.navigatorSeries.baseSeries=A,p.push(A.navigatorSeries))}}),(!C.data||k&&k.length)&&!w(C)||(l.hasNavigatorData=!1,(C=r(C)).forEach(function(A,N){D.name="Navigator "+(p.length+1),(s=x(z.navigator.series,{color:b.series[N]&&!b.series[N].options.isInternal&&b.series[N].color||b.options.colors[N]||b.options.colors[0]},D,A)).data=A.data,s.data&&(l.hasNavigatorData=!0,p.push(b.initSeries(s)))})),i&&this.addBaseSeriesEvents()},t.prototype.addBaseSeriesEvents=function(){var i=this,o=this,e=o.baseSeries||[];e[0]&&e[0].xAxis&&e[0].eventsToUnbind.push(M(e[0].xAxis,"foundExtremes",this.modifyBaseAxisExtremes)),e.forEach(function(s){s.eventsToUnbind.push(M(s,"show",function(){this.navigatorSeries&&this.navigatorSeries.setVisible(!0,!1)})),s.eventsToUnbind.push(M(s,"hide",function(){this.navigatorSeries&&this.navigatorSeries.setVisible(!1,!1)})),i.navigatorOptions.adaptToUpdatedData!==!1&&s.xAxis&&s.eventsToUnbind.push(M(s,"updatedData",i.updatedDataHandler)),s.eventsToUnbind.push(M(s,"remove",function(){this.navigatorSeries&&(m(o.series,this.navigatorSeries),h(this.navigatorSeries.options)&&this.navigatorSeries.remove(!1),delete this.navigatorSeries)}))})},t.prototype.getBaseSeriesMin=function(i){return this.baseSeries.reduce(function(o,e){return Math.min(o,e.xData&&e.xData.length?e.xData[0]:o)},i)},t.prototype.modifyNavigatorAxisExtremes=function(){var i=this.xAxis;if(i.getExtremes!==void 0){var o=this.getUnionExtremes(!0);!o||o.dataMin===i.min&&o.dataMax===i.max||(i.min=o.dataMin,i.max=o.dataMax)}},t.prototype.modifyBaseAxisExtremes=function(){var i,o,e=this,s=e.chart.navigator,n=e.getExtremes(),l=n.min,b=n.max,k=n.dataMin,D=n.dataMax,p=b-l,C=s.stickToMin,A=s.stickToMax,N=c(e.options.overscroll,0),_=s.series&&s.series[0],L=!!e.setExtremes;e.eventArgs&&e.eventArgs.trigger==="rangeSelectorButton"||(C&&(i=(o=k)+p),A&&(i=D+N,C||(o=Math.max(k,i-p,s.getBaseSeriesMin(_&&_.xData?_.xData[0]:-Number.MAX_VALUE)))),L&&(C||A)&&S(o)&&(e.min=e.userMin=o,e.max=e.userMax=i)),s.stickToMin=s.stickToMax=null},t.prototype.updatedDataHandler=function(){var i=this.chart.navigator,o=this,e=this.navigatorSeries,s=i.reversedExtremes?Math.round(i.zoomedMin)===0:Math.round(i.zoomedMax)>=Math.round(i.size);i.stickToMax=c(this.chart.options.navigator&&this.chart.options.navigator.stickToMax,s),i.stickToMin=i.shouldStickToMin(o,i),e&&!i.hasNavigatorData&&(e.options.pointStart=o.xData[0],e.setData(o.options.data,!1,null,!1))},t.prototype.shouldStickToMin=function(i,o){var e=o.getBaseSeriesMin(i.xData[0]),s=i.xAxis,n=s.max,l=s.min,b=s.options.range;return!(!S(n)||!S(l))&&(b&&n-e>0?n-e<b:l<=e)},t.prototype.addChartEvents=function(){this.eventsToUnbind||(this.eventsToUnbind=[]),this.eventsToUnbind.push(M(this.chart,"redraw",function(){var i=this.navigator,o=i&&(i.baseSeries&&i.baseSeries[0]&&i.baseSeries[0].xAxis||this.xAxis[0]);o&&i.render(o.min,o.max)}),M(this.chart,"getMargins",function(){var i=this,o=i.navigator,e=o.opposite?"plotTop":"marginBottom";i.inverted&&(e=o.opposite?"marginRight":"plotLeft"),i[e]=(i[e]||0)+(o.navigatorEnabled||!i.inverted?o.outlineHeight:0)+o.navigatorOptions.margin}))},t.prototype.destroy=function(){var i=this;this.removeEvents(),this.xAxis&&(m(this.chart.xAxis,this.xAxis),m(this.chart.axes,this.xAxis)),this.yAxis&&(m(this.chart.yAxis,this.yAxis),m(this.chart.axes,this.yAxis)),(this.series||[]).forEach(function(o){o.destroy&&o.destroy()}),["series","xAxis","yAxis","shades","outline","scrollbarTrack","scrollbarRifles","scrollbarGroup","scrollbar","navigatorGroup","rendered"].forEach(function(o){i[o]&&i[o].destroy&&i[o].destroy(),i[o]=null}),[this.handles].forEach(function(o){f(o)})},t}()}),it(B,"Stock/RangeSelector/RangeSelectorDefaults.js",[],function(){return{lang:{rangeSelectorZoom:"Zoom",rangeSelectorFrom:"",rangeSelectorTo:"→"},rangeSelector:{allButtonsEnabled:!1,buttons:void 0,buttonSpacing:5,dropdown:"responsive",enabled:void 0,verticalAlign:"top",buttonTheme:{width:28,height:18,padding:2,zIndex:7},floating:!1,x:0,y:0,height:void 0,inputBoxBorderColor:"none",inputBoxHeight:17,inputBoxWidth:void 0,inputDateFormat:"%b %e, %Y",inputDateParser:void 0,inputEditDateFormat:"%Y-%m-%d",inputEnabled:!0,inputPosition:{align:"right",x:0,y:0},inputSpacing:5,selected:void 0,buttonPosition:{align:"left",x:0,y:0},inputStyle:{color:"#335cad",cursor:"pointer"},labelStyle:{color:"#666666"}}}}),it(B,"Stock/RangeSelector/RangeSelectorComposition.js",[B["Core/Defaults.js"],B["Stock/RangeSelector/RangeSelectorDefaults.js"],B["Core/Utilities.js"]],function(W,R,H){var V,$=W.defaultOptions,Z=W.setOptions,U=H.addEvent,z=H.defined,I=H.extend,E=H.find,M=H.isNumber,P=H.merge,y=H.pick,h=[],f=[];function m(){var r,a,t=this.range,i=t.type,o=this.max,e=this.chart.time,s=function(l,b){var k=i==="year"?"FullYear":"Month",D=new e.Date(l),p=e.get(k,D);return e.set(k,D,p+b),p===e.get(k,D)&&e.set("Date",D,0),D.getTime()-l};M(t)?(r=o-t,a=t):t&&(r=o+s(o,-(t.count||1)),this.chart&&(this.chart.fixedRange=o-r));var n=y(this.dataMin,Number.MIN_VALUE);return M(r)||(r=n),r<=n&&(r=n,a===void 0&&(a=s(r,t.count)),this.newMax=Math.min(r+a,y(this.dataMax,Number.MAX_VALUE))),M(o)?!M(t)&&t&&t._offsetMin&&(r+=t._offsetMin):r=void 0,r}function u(){this.options.rangeSelector&&this.options.rangeSelector.enabled&&(this.rangeSelector=new V(this))}function v(){var r=this,a=r.axes,t=r.rangeSelector;if(t){M(t.deferredYTDClick)&&(t.clickButton(t.deferredYTDClick),delete t.deferredYTDClick),a.forEach(function(o){o.updateNames(),o.setScale()}),r.getAxisMargins(),t.render();var i=t.options.verticalAlign;t.options.floating||(i==="bottom"?this.extraBottomMargin=!0:i!=="middle"&&(this.extraTopMargin=!0))}}function w(r){var a,t,i,o,e=r.rangeSelector,s=function(){e&&(a=r.xAxis[0].getExtremes(),t=r.legend,o=e&&e.options.verticalAlign,M(a.min)&&e.render(a.min,a.max),t.display&&o==="top"&&o===t.options.verticalAlign&&(i=P(r.spacingBox),t.options.layout==="vertical"?i.y=r.plotTop:i.y+=e.getHeight(),t.group.placed=!1,t.align(i)))};e&&(E(h,function(n){return n[0]===r})||h.push([r,[U(r.xAxis[0],"afterSetExtremes",function(n){e&&e.render(n.min,n.max)}),U(r,"redraw",s)]]),s())}function S(){for(var r=0,a=h.length;r<a;++r){var t=h[r];if(t[0]===this)return t[1].forEach(function(i){return i()}),void h.splice(r,1)}}function x(){var r=this.rangeSelector;if(r){var a=r.getHeight();this.extraTopMargin&&(this.plotTop+=a),this.extraBottomMargin&&(this.marginBottom+=a)}}function c(){var r=this.rangeSelector;if(r&&!r.options.floating){r.render();var a=r.options.verticalAlign;a==="bottom"?this.extraBottomMargin=!0:a!=="middle"&&(this.extraTopMargin=!0)}}function g(r){var a=r.options.rangeSelector,t=this.extraBottomMargin,i=this.extraTopMargin,o=this.rangeSelector;if(a&&a.enabled&&!z(o)&&this.options.rangeSelector&&(this.options.rangeSelector.enabled=!0,this.rangeSelector=o=new V(this)),this.extraBottomMargin=!1,this.extraTopMargin=!1,o){w(this);var e=a&&a.verticalAlign||o.options&&o.options.verticalAlign;o.options.floating||(e==="bottom"?this.extraBottomMargin=!0:e!=="middle"&&(this.extraTopMargin=!0)),this.extraBottomMargin===t&&this.extraTopMargin===i||(this.isDirtyBox=!0)}}return{compose:function(r,a,t){V=t,f.indexOf(r)===-1&&(f.push(r),r.prototype.minFromRange=m),f.indexOf(a)===-1&&(f.push(a),U(a,"afterGetContainer",u),U(a,"beforeRender",v),U(a,"destroy",S),U(a,"getMargins",x),U(a,"render",c),U(a,"update",g),a.prototype.callbacks.push(w)),f.indexOf(Z)===-1&&(I($,{rangeSelector:R.rangeSelector}),I($.lang,R.lang))}}}),it(B,"Stock/RangeSelector/RangeSelector.js",[B["Core/Axis/Axis.js"],B["Core/Defaults.js"],B["Core/Globals.js"],B["Stock/RangeSelector/RangeSelectorComposition.js"],B["Core/Renderer/SVG/SVGElement.js"],B["Core/Utilities.js"]],function(W,R,H,V,$,Z){var U=R.defaultOptions,z=Z.addEvent,I=Z.createElement,E=Z.css,M=Z.defined,P=Z.destroyObjectProperties,y=Z.discardElement,h=Z.extend,f=Z.fireEvent,m=Z.isNumber,u=Z.merge,v=Z.objectEach,w=Z.pad,S=Z.pick,x=Z.pInt,c=Z.splat,g=function(){function r(a){this.buttons=void 0,this.buttonOptions=r.prototype.defaultButtons,this.initialButtonGroupWidth=0,this.options=void 0,this.chart=a,this.init(a)}return r.compose=function(a,t){V.compose(a,t,r)},r.prototype.clickButton=function(a,t){var i,o,e,s,n,l,b,k=this,D=k.chart,p=k.buttonOptions[a],C=D.xAxis[0],A=D.scroller&&D.scroller.getUnionExtremes()||C||{},N=p.type,_=p.dataGrouping,L=A.dataMin,O=A.dataMax,j=C&&Math.round(Math.min(C.max,S(O,C.max))),Y=p._range,X=!0;if(L!==null&&O!==null){if(D.fixedRange=Y,k.setSelected(a),_&&(this.forcedDataGrouping=!0,W.prototype.setDataGrouping.call(C||{chart:this.chart},_,!1),this.frozenStates=p.preserveDataGrouping),N==="month"||N==="year")C?(l={range:p,max:j,chart:D,dataMin:L,dataMax:O},i=C.minFromRange.call(l),m(l.newMax)&&(j=l.newMax),X=!1):Y=p;else if(Y)i=Math.max(j-Y,L),j=Math.min(i+Y,O),X=!1;else if(N==="ytd"){if(!C)return void(k.deferredYTDClick=a);O!==void 0&&L!==void 0||(L=Number.MAX_VALUE,O=Number.MIN_VALUE,D.series.forEach(function(G){var q=G.xData;q&&(L=Math.min(q[0],L),O=Math.max(q[q.length-1],O))}),t=!1),i=e=(b=k.getYTDExtremes(O,L,D.time.useUTC)).min,j=b.max}else N==="all"&&C&&(D.navigator&&D.navigator.baseSeries[0]&&(D.navigator.baseSeries[0].xAxis.options.range=void 0),i=L,j=O);X&&p._offsetMin&&M(i)&&(i+=p._offsetMin),p._offsetMax&&M(j)&&(j+=p._offsetMax),this.dropdown&&(this.dropdown.selectedIndex=a+1),C?C.setExtremes(i,j,S(t,!0),void 0,{trigger:"rangeSelectorButton",rangeSelectorButton:p}):(o=c(D.options.xAxis)[0],n=o.range,o.range=Y,s=o.min,o.min=e,z(D,"load",function(){o.range=n,o.min=s})),f(this,"afterBtnClick")}},r.prototype.setSelected=function(a){this.selected=this.options.selected=a},r.prototype.init=function(a){var t=this,i=a.options.rangeSelector,o=i.buttons||t.defaultButtons.slice(),e=i.selected,s=function(){var n=t.minInput,l=t.maxInput;n&&n.blur&&f(n,"blur"),l&&l.blur&&f(l,"blur")};t.chart=a,t.options=i,t.buttons=[],t.buttonOptions=o,this.eventsToUnbind=[],this.eventsToUnbind.push(z(a.container,"mousedown",s)),this.eventsToUnbind.push(z(a,"resize",s)),o.forEach(t.computeButtonRange),e!==void 0&&o[e]&&this.clickButton(e,!1),this.eventsToUnbind.push(z(a,"load",function(){a.xAxis&&a.xAxis[0]&&z(a.xAxis[0],"setExtremes",function(n){this.max-this.min!==a.fixedRange&&n.trigger!=="rangeSelectorButton"&&n.trigger!=="updatedData"&&t.forcedDataGrouping&&!t.frozenStates&&this.setDataGrouping(!1,!1)})}))},r.prototype.updateButtonStates=function(){var a=this,t=this.chart,i=this.dropdown,o=t.xAxis[0],e=Math.round(o.max-o.min),s=!o.hasVisibleSeries,n=864e5,l=t.scroller&&t.scroller.getUnionExtremes()||o,b=l.dataMin,k=l.dataMax,D=a.getYTDExtremes(k,b,t.time.useUTC),p=D.min,C=D.max,A=a.selected,N=a.options.allButtonsEnabled,_=a.buttons,L=m(A);a.buttonOptions.forEach(function(O,j){var Y=O._range,X=O.type,G=O.count||1,q=_[j],Q=O._offsetMax-O._offsetMin,J=j===A,rt=Y>k-b,lt=Y<o.minRange,gt=0,mt=!1,bt=!1,yt=Y===e;(X==="month"||X==="year")&&e+36e5>={month:28,year:365}[X]*n*G-Q&&e-36e5<={month:31,year:366}[X]*n*G+Q?yt=!0:X==="ytd"?(yt=C-p+Q===e,mt=!J):X==="all"&&(yt=o.max-o.min>=k-b,bt=!J&&L&&yt);var ct=!N&&(rt||lt||bt||s),et=J&&yt||yt&&!L&&!mt||J&&a.frozenStates;ct?gt=3:et&&(L=!0,gt=2),q.state!==gt&&(q.setState(gt),i&&(i.options[j+1].disabled=ct,gt===2&&(i.selectedIndex=j+1)),gt===0&&A===j&&a.setSelected())})},r.prototype.computeButtonRange=function(a){var t=a.type,i=a.count||1,o={millisecond:1,second:1e3,minute:6e4,hour:36e5,day:864e5,week:6048e5};o[t]?a._range=o[t]*i:t!=="month"&&t!=="year"||(a._range=24*{month:30,year:365}[t]*36e5*i),a._offsetMin=S(a.offsetMin,0),a._offsetMax=S(a.offsetMax,0),a._range+=a._offsetMax-a._offsetMin},r.prototype.getInputValue=function(a){var t=a==="min"?this.minInput:this.maxInput,i=this.chart.options.rangeSelector,o=this.chart.time;return t?(t.type==="text"&&i.inputDateParser||this.defaultInputDateParser)(t.value,o.useUTC,o):0},r.prototype.setInputValue=function(a,t){var i=this.options,o=this.chart.time,e=a==="min"?this.minInput:this.maxInput,s=a==="min"?this.minDateBox:this.maxDateBox;if(e){var n=e.getAttribute("data-hc-time"),l=M(n)?Number(n):void 0;if(M(t)){var b=l;M(b)&&e.setAttribute("data-hc-time-previous",b),e.setAttribute("data-hc-time",t),l=t}e.value=o.dateFormat(this.inputTypeFormats[e.type]||i.inputEditDateFormat,l),s&&s.attr({text:o.dateFormat(i.inputDateFormat,l)})}},r.prototype.setInputExtremes=function(a,t,i){var o=a==="min"?this.minInput:this.maxInput;if(o){var e=this.inputTypeFormats[o.type],s=this.chart.time;if(e){var n=s.dateFormat(e,t);o.min!==n&&(o.min=n);var l=s.dateFormat(e,i);o.max!==l&&(o.max=l)}}},r.prototype.showInput=function(a){var t=a==="min"?this.minDateBox:this.maxDateBox,i=a==="min"?this.minInput:this.maxInput;if(i&&t&&this.inputGroup){var o=i.type==="text",e=this.inputGroup,s=e.translateX,n=e.translateY,l=this.options.inputBoxWidth;E(i,{width:o?t.width+(l?-2:20)+"px":"auto",height:o?t.height-2+"px":"auto",border:"2px solid silver"}),E(i,o&&l?{left:s+t.x+"px",top:n+"px"}:{left:Math.min(Math.round(t.x+s-(i.offsetWidth-t.width)/2),this.chart.chartWidth-i.offsetWidth)+"px",top:n-(i.offsetHeight-t.height)/2+"px"})}},r.prototype.hideInput=function(a){var t=a==="min"?this.minInput:this.maxInput;t&&E(t,{top:"-9999em",border:0,width:"1px",height:"1px"})},r.prototype.defaultInputDateParser=function(a,t,i){var o,e=a.split("/").join("-").split(" ").join("T");if(e.indexOf("T")===-1&&(e+="T00:00"),t)e+="Z";else if(H.isSafari&&(!((o=e).length>6)||o.lastIndexOf("-")!==o.length-6&&o.lastIndexOf("+")!==o.length-6)){var s=new Date(e).getTimezoneOffset()/60;e+=s<=0?"+".concat(w(-s),":00"):"-".concat(w(s),":00")}var n=Date.parse(e);if(!m(n)){var l=a.split("-");n=Date.UTC(x(l[0]),x(l[1])-1,x(l[2]))}return i&&t&&m(n)&&(n+=i.getTimezoneOffset(n)),n},r.prototype.drawInput=function(a){var t=this,i=t.chart,o=t.div,e=t.inputGroup,s=this,n=i.renderer.style||{},l=i.renderer,b=i.options.rangeSelector,k=U.lang,D=a==="min";function p(){var O=s.maxInput,j=s.minInput,Y=i.xAxis[0],X=i.scroller&&i.scroller.xAxis?i.scroller.xAxis:Y,G=X.dataMin,q=X.dataMax,Q=s.getInputValue(a);Q!==Number(_.getAttribute("data-hc-time-previous"))&&m(Q)&&(_.setAttribute("data-hc-time-previous",Q),D&&O&&m(G)?Q>Number(O.getAttribute("data-hc-time"))?Q=void 0:Q<G&&(Q=G):j&&m(q)&&(Q<Number(j.getAttribute("data-hc-time"))?Q=void 0:Q>q&&(Q=q)),Q!==void 0&&Y.setExtremes(D?Q:Y.min,D?Y.max:Q,void 0,void 0,{trigger:"rangeSelectorInput"}))}var C=k[D?"rangeSelectorFrom":"rangeSelectorTo"]||"",A=l.label(C,0).addClass("highcharts-range-label").attr({padding:C?2:0,height:C?b.inputBoxHeight:0}).add(e),N=l.label("",0).addClass("highcharts-range-input").attr({padding:2,width:b.inputBoxWidth,height:b.inputBoxHeight,"text-align":"center"}).on("click",function(){s.showInput(a),s[a+"Input"].focus()});i.styledMode||N.attr({stroke:b.inputBoxBorderColor,"stroke-width":1}),N.add(e);var _=I("input",{name:a,className:"highcharts-range-selector"},void 0,o);_.setAttribute("type",function(O){if(O.indexOf("%L")!==-1)return"text";var j=["a","A","d","e","w","b","B","m","o","y","Y"].some(function(X){return O.indexOf("%"+X)!==-1}),Y=["H","k","I","l","M","S"].some(function(X){return O.indexOf("%"+X)!==-1});return j&&Y?"datetime-local":j?"date":Y?"time":"text"}(b.inputDateFormat||"%b %e, %Y")),i.styledMode||(A.css(u(n,b.labelStyle)),N.css(u({color:"#333333"},n,b.inputStyle)),E(_,h({position:"absolute",border:0,boxShadow:"0 0 15px rgba(0,0,0,0.3)",width:"1px",height:"1px",padding:0,textAlign:"center",fontSize:n.fontSize,fontFamily:n.fontFamily,top:"-9999em"},b.inputStyle))),_.onfocus=function(){s.showInput(a)},_.onblur=function(){_===H.doc.activeElement&&p(),s.hideInput(a),s.setInputValue(a),_.blur()};var L=!1;return _.onchange=function(){L||(p(),s.hideInput(a),_.blur())},_.onkeypress=function(O){O.keyCode===13&&p()},_.onkeydown=function(O){L=!0,O.keyCode!==38&&O.keyCode!==40||p()},_.onkeyup=function(){L=!1},{dateBox:N,input:_,label:A}},r.prototype.getPosition=function(){var a=this.chart,t=a.options.rangeSelector,i=t.verticalAlign==="top"?a.plotTop-a.axisOffset[0]:0;return{buttonTop:i+t.buttonPosition.y,inputTop:i+t.inputPosition.y-10}},r.prototype.getYTDExtremes=function(a,t,i){var o=this.chart.time,e=new o.Date(a),s=o.get("FullYear",e),n=i?o.Date.UTC(s,0,1):+new o.Date(s,0,1),l=Math.max(t,n),b=e.getTime();return{max:Math.min(a||b,b),min:l}},r.prototype.render=function(a,t){var i=this.chart,o=i.renderer,e=i.container,s=i.options,n=s.rangeSelector,l=S(s.chart.style&&s.chart.style.zIndex,0)+1,b=n.inputEnabled,k=this.rendered;if(n.enabled!==!1){if(!k&&(this.group=o.g("range-selector-group").attr({zIndex:7}).add(),this.div=I("div",void 0,{position:"relative",height:0,zIndex:l}),this.buttonOptions.length&&this.renderButtons(),e.parentNode&&e.parentNode.insertBefore(this.div,e),b)){this.inputGroup=o.g("input-group").add(this.group);var D=this.drawInput("min");this.minDateBox=D.dateBox,this.minLabel=D.label,this.minInput=D.input;var p=this.drawInput("max");this.maxDateBox=p.dateBox,this.maxLabel=p.label,this.maxInput=p.input}if(b){this.setInputValue("min",a),this.setInputValue("max",t);var C=i.scroller&&i.scroller.getUnionExtremes()||i.xAxis[0]||{};if(M(C.dataMin)&&M(C.dataMax)){var A=i.xAxis[0].minRange||0;this.setInputExtremes("min",C.dataMin,Math.min(C.dataMax,this.getInputValue("max"))-A),this.setInputExtremes("max",Math.max(C.dataMin,this.getInputValue("min"))+A,C.dataMax)}if(this.inputGroup){var N=0;[this.minLabel,this.minDateBox,this.maxLabel,this.maxDateBox].forEach(function(_){if(_){var L=_.getBBox().width;L&&(_.attr({x:N}),N+=L+n.inputSpacing)}})}}this.alignElements(),this.rendered=!0}},r.prototype.renderButtons=function(){var a=this,t=this,i=t.buttons,o=t.chart,e=t.options,s=U.lang,n=o.renderer,l=u(e.buttonTheme),b=l&&l.states,k=l.width||28;delete l.width,delete l.states,this.buttonGroup=n.g("range-selector-buttons").add(this.group);var D=this.dropdown=I("select",void 0,{position:"absolute",width:"1px",height:"1px",padding:0,border:0,top:"-9999em",cursor:"pointer",opacity:1e-4},this.div);z(D,"touchstart",function(){D.style.fontSize="16px"}),[[H.isMS?"mouseover":"mouseenter"],[H.isMS?"mouseout":"mouseleave"],["change","click"]].forEach(function(p){var C=p[0],A=p[1];z(D,C,function(){var N=i[a.currentButtonIndex()];N&&f(N.element,A||C)})}),this.zoomText=n.label(s&&s.rangeSelectorZoom||"",0).attr({padding:e.buttonTheme.padding,height:e.buttonTheme.height,paddingLeft:0,paddingRight:0}).add(this.buttonGroup),this.chart.styledMode||(this.zoomText.css(e.labelStyle),l["stroke-width"]=S(l["stroke-width"],0)),I("option",{textContent:this.zoomText.textStr,disabled:!0},void 0,D),this.buttonOptions.forEach(function(p,C){I("option",{textContent:p.title||p.text},void 0,D),i[C]=n.button(p.text,0,0,function(A){var N,_=p.events&&p.events.click;_&&(N=_.call(p,A)),N!==!1&&a.clickButton(C),a.isActive=!0},l,b&&b.hover,b&&b.select,b&&b.disabled).attr({"text-align":"center",width:k}).add(a.buttonGroup),p.title&&i[C].attr("title",p.title)})},r.prototype.alignElements=function(){var a=this,t=this,i=t.buttonGroup,o=t.buttons,e=t.chart,s=t.group,n=t.inputGroup,l=t.options,b=t.zoomText,k=e.options,D=k.exporting&&k.exporting.enabled!==!1&&k.navigation&&k.navigation.buttonOptions,p=l.buttonPosition,C=l.inputPosition,A=l.verticalAlign,N=function(mt,bt){return D&&a.titleCollision(e)&&A==="top"&&bt.align==="right"&&bt.y-mt.getBBox().height-12<(D.y||0)+(D.height||0)+e.spacing[0]?-40:0},_=e.plotLeft;if(s&&p&&C){var L=p.x-e.spacing[3];if(i){if(this.positionButtons(),!this.initialButtonGroupWidth){var O=0;b&&(O+=b.getBBox().width+5),o.forEach(function(mt,bt){O+=mt.width,bt!==o.length-1&&(O+=l.buttonSpacing)}),this.initialButtonGroupWidth=O}_-=e.spacing[3],this.updateButtonStates();var j=N(i,p);this.alignButtonGroup(j),s.placed=i.placed=e.hasLoaded}var Y=0;n&&(Y=N(n,C),C.align==="left"?L=_:C.align==="right"&&(L=-Math.max(e.axisOffset[1],-Y)),n.align({y:C.y,width:n.getBBox().width,align:C.align,x:C.x+L-2},!0,e.spacingBox),n.placed=e.hasLoaded),this.handleCollision(Y),s.align({verticalAlign:A},!0,e.spacingBox);var X=s.alignAttr.translateY,G=s.getBBox().height+20,q=0;if(A==="bottom"){var Q=e.legend&&e.legend.options;q=X-(G=G+(Q&&Q.verticalAlign==="bottom"&&Q.enabled&&!Q.floating?e.legend.legendHeight+S(Q.margin,10):0)-20)-(l.floating?0:l.y)-(e.titleOffset?e.titleOffset[2]:0)-10}A==="top"?(l.floating&&(q=0),e.titleOffset&&e.titleOffset[0]&&(q=e.titleOffset[0]),q+=e.margin[0]-e.spacing[0]||0):A==="middle"&&(C.y===p.y?q=X:(C.y||p.y)&&(C.y<0||p.y<0?q-=Math.min(C.y,p.y):q=X-G)),s.translate(l.x,l.y+Math.floor(q));var J=this,rt=J.minInput,lt=J.maxInput,gt=J.dropdown;l.inputEnabled&&rt&&lt&&(rt.style.marginTop=s.translateY+"px",lt.style.marginTop=s.translateY+"px"),gt&&(gt.style.marginTop=s.translateY+"px")}},r.prototype.alignButtonGroup=function(a,t){var i=this,o=i.chart,e=i.options,s=i.buttonGroup,n=e.buttonPosition,l=o.plotLeft-o.spacing[3],b=n.x-o.spacing[3];n.align==="right"?b+=a-l:n.align==="center"&&(b-=l/2),s&&s.align({y:n.y,width:S(t,this.initialButtonGroupWidth),align:n.align,x:b},!0,o.spacingBox)},r.prototype.positionButtons=function(){var a=this,t=a.buttons,i=a.chart,o=a.options,e=a.zoomText,s=i.hasLoaded?"animate":"attr",n=o.buttonPosition,l=i.plotLeft,b=l;e&&e.visibility!=="hidden"&&(e[s]({x:S(l+n.x,l)}),b+=n.x+e.getBBox().width+5);for(var k=0,D=this.buttonOptions.length;k<D;++k)t[k].visibility!=="hidden"?(t[k][s]({x:b}),b+=t[k].width+o.buttonSpacing):t[k][s]({x:l})},r.prototype.handleCollision=function(a){var t=this,i=this,o=i.chart,e=i.buttonGroup,s=i.inputGroup,n=this.options,l=n.buttonPosition,b=n.dropdown,k=n.inputPosition,D=function(){var A=0;return t.buttons.forEach(function(N){var _=N.getBBox();_.width>A&&(A=_.width)}),A},p=function(A){if(s&&e){var N=s.alignAttr.translateX+s.alignOptions.x-a+s.getBBox().x+2,_=s.alignOptions.width,L=e.alignAttr.translateX+e.getBBox().x;return L+A>N&&N+_>L&&l.y<k.y+s.getBBox().height}return!1},C=function(){s&&e&&s.attr({translateX:s.alignAttr.translateX+(o.axisOffset[1]>=-a?0:-a),translateY:s.alignAttr.translateY+e.getBBox().height+10})};if(e){if(b==="always")return this.collapseButtons(a),void(p(D())&&C());b==="never"&&this.expandButtons()}s&&e?k.align===l.align||p(this.initialButtonGroupWidth+20)?b==="responsive"?(this.collapseButtons(a),p(D())&&C()):C():b==="responsive"&&this.expandButtons():e&&b==="responsive"&&(this.initialButtonGroupWidth>o.plotWidth?this.collapseButtons(a):this.expandButtons())},r.prototype.collapseButtons=function(a){var t=this,i=t.buttons,o=t.buttonOptions,e=t.chart,s=t.dropdown,n=t.options,l=t.zoomText,b=e.userOptions.rangeSelector&&e.userOptions.rangeSelector.buttonTheme||{},k=function(C){return{text:C?C+" ▾":"▾",width:"auto",paddingLeft:S(n.buttonTheme.paddingLeft,b.padding,8),paddingRight:S(n.buttonTheme.paddingRight,b.padding,8)}};l&&l.hide();var D=!1;o.forEach(function(C,A){var N=i[A];N.state!==2?N.hide():(N.show(),N.attr(k(C.text)),D=!0)}),D||(s&&(s.selectedIndex=0),i[0].show(),i[0].attr(k(this.zoomText&&this.zoomText.textStr)));var p=n.buttonPosition.align;this.positionButtons(),p!=="right"&&p!=="center"||this.alignButtonGroup(a,i[this.currentButtonIndex()].getBBox().width),this.showDropdown()},r.prototype.expandButtons=function(){var a=this,t=a.buttons,i=a.buttonOptions,o=a.options,e=a.zoomText;this.hideDropdown(),e&&e.show(),i.forEach(function(s,n){var l=t[n];l.show(),l.attr({text:s.text,width:o.buttonTheme.width||28,paddingLeft:S(o.buttonTheme.paddingLeft,"unset"),paddingRight:S(o.buttonTheme.paddingRight,"unset")}),l.state<2&&l.setState(0)}),this.positionButtons()},r.prototype.currentButtonIndex=function(){var a=this.dropdown;return a&&a.selectedIndex>0?a.selectedIndex-1:0},r.prototype.showDropdown=function(){var a=this,t=a.buttonGroup,i=a.buttons,o=a.chart,e=a.dropdown;if(t&&e){var s=t.translateX,n=t.translateY,l=i[this.currentButtonIndex()].getBBox();E(e,{left:o.plotLeft+s+"px",top:n+.5+"px",width:l.width+"px",height:l.height+"px"}),this.hasVisibleDropdown=!0}},r.prototype.hideDropdown=function(){var a=this.dropdown;a&&(E(a,{top:"-9999em",width:"1px",height:"1px"}),this.hasVisibleDropdown=!1)},r.prototype.getHeight=function(){var a=this.options,t=this.group,i=a.inputPosition,o=a.buttonPosition,e=a.y,s=o.y,n=i.y,l=0;if(a.height)return a.height;this.alignElements(),l=t?t.getBBox(!0).height+13+e:0;var b=Math.min(n,s);return(n<0&&s<0||n>0&&s>0)&&(l+=Math.abs(b)),l},r.prototype.titleCollision=function(a){return!(a.options.title.text||a.options.subtitle.text)},r.prototype.update=function(a){var t=this.chart;u(!0,t.options.rangeSelector,a),this.destroy(),this.init(t),this.render()},r.prototype.destroy=function(){var a=this,t=a.minInput,i=a.maxInput;a.eventsToUnbind&&(a.eventsToUnbind.forEach(function(o){return o()}),a.eventsToUnbind=void 0),P(a.buttons),t&&(t.onfocus=t.onblur=t.onchange=null),i&&(i.onfocus=i.onblur=i.onchange=null),v(a,function(o,e){o&&e!=="chart"&&(o instanceof $?o.destroy():o instanceof ft.HTMLElement&&y(o)),o!==r.prototype[e]&&(a[e]=null)},this)},r}();return h(g.prototype,{defaultButtons:[{type:"month",count:1,text:"1m",title:"View 1 month"},{type:"month",count:3,text:"3m",title:"View 3 months"},{type:"month",count:6,text:"6m",title:"View 6 months"},{type:"ytd",text:"YTD",title:"View year to date"},{type:"year",count:1,text:"1y",title:"View 1 year"},{type:"all",text:"All",title:"View all"}],inputTypeFormats:{"datetime-local":"%Y-%m-%dT%H:%M:%S",date:"%Y-%m-%d",time:"%H:%M:%S"}}),g}),it(B,"Core/Axis/OrdinalAxis.js",[B["Core/Axis/Axis.js"],B["Core/Globals.js"],B["Core/Series/Series.js"],B["Core/Utilities.js"]],function(W,R,H,V){var $,Z=V.addEvent,U=V.correctFloat,z=V.css,I=V.defined,E=V.error,M=V.pick,P=V.timeUnits,y=[];return function(h){function f(i,o,e,s,n,l,b){n===void 0&&(n=[]),l===void 0&&(l=0);var k,D,p,C,A,N={},_=this.options.tickPixelInterval,L=this.chart.time,O=[],j=0,Y=[],X=-Number.MAX_VALUE;if(!this.options.ordinal&&!this.options.breaks||!n||n.length<3||o===void 0)return L.getTimeTicks.apply(L,arguments);var G=n.length;for(k=0;k<G;k++){if(A=k&&n[k-1]>e,n[k]<o&&(j=k),k===G-1||n[k+1]-n[k]>5*l||A){if(n[k]>X){for(D=L.getTimeTicks(i,n[j],n[k],s);D.length&&D[0]<=X;)D.shift();D.length&&(X=D[D.length-1]),O.push(Y.length),Y=Y.concat(D)}j=k+1}if(A)break}if(D){if(C=D.info,b&&C.unitRange<=P.hour){for(k=Y.length-1,j=1;j<k;j++)L.dateFormat("%d",Y[j])!==L.dateFormat("%d",Y[j-1])&&(N[Y[j]]="day",p=!0);p&&(N[Y[0]]="day"),C.higherRanks=N}C.segmentStarts=O,Y.info=C}else E(12,!1,this.chart);if(b&&I(_)){for(var q=Y.length,Q=[],J=[],rt=void 0,lt=void 0,gt=void 0,mt=void 0,bt=void 0,yt=q;yt--;)lt=this.translate(Y[yt]),gt&&(J[yt]=gt-lt),Q[yt]=gt=lt;for(J.sort(),(mt=J[Math.floor(J.length/2)])<.6*_&&(mt=null),yt=Y[q-1]>e?q-1:q,gt=void 0;yt--;)lt=Q[yt],bt=Math.abs(gt-lt),gt&&bt<.8*_&&(mt===null||bt<.8*mt)?(N[Y[yt]]&&!N[Y[yt+1]]?(rt=yt+1,gt=lt):rt=yt,Y.splice(rt,1)):gt=lt}return Y}function m(i){var o=this.ordinal.positions;if(!o)return i;var e,s=o.length-1;return i<0?i=o[0]:i>s?i=o[s]:e=i-(s=Math.floor(i)),e!==void 0&&o[s]!==void 0?o[s]+(e?e*(o[s+1]-o[s]):0):i}function u(i){var o=this,e=o.ordinal,s=o.old?o.old.min:o.min,n=o.old?o.old.transA:o.transA,l=e.positions;if(!l)return i;var b=(i-s)*n+o.minPixelPadding;if(b>0&&b<o.left+o.len||(e.extendedOrdinalPositions||(e.extendedOrdinalPositions=e.getExtendedPositions()),l=e.extendedOrdinalPositions),l&&l.length){var k=e.getIndexOfPoint(b,l),D=U(k%1);if(k>=0&&k<l.length-1){var p=l[Math.floor(k)],C=l[Math.ceil(k)]-p;return l[Math.floor(k)]+D*C}var A=l.length,N=l[0],_=l[A-1],L=(_-N)/(A-1);return k<0?N+L*k:_+L*(k-A)}return i}function v(i,o){var e=h.Additions.findIndexOf(i,o,!0);return i[e]===o?e:e+(o-i[e])/(i[e+1]-i[e])}function w(){var i=this;i.ordinal||(i.ordinal=new h.Additions(i))}function S(){var i=this;i.isXAxis&&I(i.options.overscroll)&&i.max===i.dataMax&&(!i.chart.mouseIsDown||i.isInternal)&&(!i.eventArgs||i.eventArgs&&i.eventArgs.trigger!=="navigator")&&(i.max+=i.options.overscroll,!i.isInternal&&I(i.userMin)&&(i.min+=i.options.overscroll))}function x(){var i=this;i.horiz&&!i.isDirty&&(i.isDirty=i.isOrdinal&&i.chart.navigator&&!i.chart.navigator.adaptToUpdatedData)}function c(){var i=this;i.ordinal&&(i.ordinal.beforeSetTickPositions(),i.tickInterval=i.ordinal.postProcessTickInterval(i.tickInterval))}function g(i){var o=this,e=o.xAxis[0],s=e.options.overscroll,n=i.originalEvent.chartX,l=o.options.chart.panning,b=!1;if(l&&l.type!=="y"&&e.options.ordinal&&e.series.length){var k=o.mouseDownX,D=e.getExtremes(),p=D.dataMax,C=D.min,A=D.max,N=o.hoverPoints,_=e.closestPointRange||e.ordinal&&e.ordinal.overscrollPointsRange,L=(k-n)/(e.translationSlope*(e.ordinal.slope||_)),O=e.ordinal.getExtendedPositions(),j={ordinal:{positions:O,extendedOrdinalPositions:O}},Y=e.index2val,X=e.val2lin,G=void 0,q=void 0,Q=void 0,J=void 0;j.ordinal.positions?Math.abs(L)>1&&(N&&N.forEach(function(rt){rt.setState()}),L<0?(Q=j,J=e.ordinal.positions?e:j):(Q=e.ordinal.positions?e:j,J=j),p>(q=J.ordinal.positions)[q.length-1]&&q.push(p),o.fixedRange=A-C,(G=e.navigatorAxis.toFixedRange(void 0,void 0,Y.apply(Q,[X.apply(Q,[C,!0])+L]),Y.apply(J,[X.apply(J,[A,!0])+L]))).min>=Math.min(D.dataMin,C)&&G.max<=Math.max(p,A)+s&&e.setExtremes(G.min,G.max,!0,!1,{trigger:"pan"}),o.mouseDownX=n,z(o.container,{cursor:"move"})):b=!0}else b=!0;b||l&&/y/.test(l.type)?s&&(e.max=e.dataMax+s):i.preventDefault()}function r(){var i=this.xAxis;i&&i.options.ordinal&&(delete i.ordinal.index,delete i.ordinal.extendedOrdinalPositions)}function a(i,o){var e=this.ordinal,s=e.positions,n=e.slope,l=e.extendedOrdinalPositions;if(!s)return i;var b,k=s.length;if(s[0]<=i&&s[k-1]>=i)b=v(s,i);else{if(l||(l=e.getExtendedPositions&&e.getExtendedPositions(),e.extendedOrdinalPositions=l),!l||!l.length)return i;var D=l.length;n||(n=(l[D-1]-l[0])/D);var p=v(l,s[0]);b=i>=l[0]&&i<=l[D-1]?v(l,i)-p:i<l[0]?-p-(l[0]-i)/n:(i-l[D-1])/n+D-p}return o?b:n*(b||0)+e.offset}h.compose=function(i,o,e){if(y.indexOf(i)===-1){y.push(i);var s=i.prototype;s.getTimeTicks=f,s.index2val=m,s.lin2val=u,s.val2lin=a,s.ordinal2lin=s.val2lin,Z(i,"afterInit",w),Z(i,"foundExtremes",S),Z(i,"afterSetScale",x),Z(i,"initialAxisTranslation",c)}return y.indexOf(e)===-1&&(y.push(e),Z(e,"pan",g)),y.indexOf(o)===-1&&(y.push(o),Z(o,"updatedData",r)),i};var t=function(){function i(o){this.index={},this.axis=o}return i.prototype.beforeSetTickPositions=function(){var o,e,s,n,l,b,k,D=this.axis,p=D.ordinal,C=D.getExtremes(),A=C.min,N=C.max,_=D.isXAxis&&!!D.options.breaks,L=D.options.ordinal,O=D.chart.options.chart.ignoreHiddenSeries,j=[],Y=Number.MAX_VALUE,X=!1,G=!1,q=!1;if(L||_){var Q=0;if(D.series.forEach(function(J,rt){if(e=[],rt>0&&J.options.id!=="highcharts-navigator-series"&&J.processedXData.length>1&&(G=Q!==J.processedXData[1]-J.processedXData[0]),Q=J.processedXData[1]-J.processedXData[0],J.boosted&&(q=J.boosted),(!O||J.visible!==!1)&&(J.takeOrdinalPosition!==!1||_)&&(j=j.concat(J.processedXData),o=j.length,j.sort(function(lt,gt){return lt-gt}),Y=Math.min(Y,M(J.closestPointRange,Y)),o)){for(rt=0;rt<o-1;)j[rt]!==j[rt+1]&&e.push(j[rt+1]),rt++;e[0]!==j[0]&&e.unshift(j[0]),j=e}}),G&&q&&(j.pop(),j.shift()),(o=j.length)>2){for(s=j[1]-j[0],k=o-1;k--&&!X;)j[k+1]-j[k]!==s&&(X=!0);!D.options.keepOrdinalPadding&&(j[0]-A>s||N-j[j.length-1]>s)&&(X=!0)}else D.options.overscroll&&(o===2?Y=j[1]-j[0]:o===1?(Y=D.options.overscroll,j=[j[0],j[0]+Y]):Y=p.overscrollPointsRange);X||D.forceOrdinal?(D.options.overscroll&&(p.overscrollPointsRange=Y,j=j.concat(p.getOverscrollPositions())),p.positions=j,n=D.ordinal2lin(Math.max(A,j[0]),!0),l=Math.max(D.ordinal2lin(Math.min(N,j[j.length-1]),!0),1),p.slope=b=(N-A)/(l-n),p.offset=A-n*b):(p.overscrollPointsRange=M(D.closestPointRange,p.overscrollPointsRange),p.positions=D.ordinal.slope=p.offset=void 0)}D.isOrdinal=L&&X,p.groupIntervalFactor=null},i.findIndexOf=function(o,e,s){for(var n,l=0,b=o.length-1;l<b;)o[n=Math.ceil((l+b)/2)]<=e?l=n:b=n-1;return o[l]===e||s?l:-1},i.prototype.getExtendedPositions=function(){var o,e=this,s=e.axis,n=s.constructor.prototype,l=s.chart,b=s.series[0].currentDataGrouping,k=b?b.count+b.unitName:"raw",D=s.options.overscroll,p=s.getExtremes(),C=void 0,A=e.index;return A||(A=e.index={}),A[k]||((o={series:[],chart:l,forceOrdinal:!1,getExtremes:function(){return{min:p.dataMin,max:p.dataMax+D}},getGroupPixelWidth:n.getGroupPixelWidth,getTimeTicks:n.getTimeTicks,options:{ordinal:!0},ordinal:{getGroupIntervalFactor:this.getGroupIntervalFactor},ordinal2lin:n.ordinal2lin,getIndexOfPoint:n.getIndexOfPoint,val2lin:n.val2lin}).ordinal.axis=o,s.series.forEach(function(N){(C={xAxis:o,xData:N.xData.slice(),chart:l,destroyGroupedData:R.noop,getProcessedData:H.prototype.getProcessedData,applyGrouping:H.prototype.applyGrouping}).xData=C.xData.concat(e.getOverscrollPositions()),C.options={dataGrouping:b?{firstAnchor:"firstPoint",anchor:"middle",lastAnchor:"lastPoint",enabled:!0,forced:!0,approximation:"open",units:[[b.unitName,[b.count]]]}:{enabled:!1}},o.series.push(C),N.processData.apply(C)}),C.closestPointRange!==C.basePointRange&&C.currentDataGrouping&&(o.forceOrdinal=!0),s.ordinal.beforeSetTickPositions.apply({axis:o}),A[k]=o.ordinal.positions),A[k]},i.prototype.getGroupIntervalFactor=function(o,e,s){var n,l,b=this,k=s.processedXData,D=k.length,p=[],C=b.groupIntervalFactor;if(!C){for(l=0;l<D-1;l++)p[l]=k[l+1]-k[l];p.sort(function(A,N){return A-N}),n=p[Math.floor(D/2)],o=Math.max(o,k[0]),e=Math.min(e,k[D-1]),b.groupIntervalFactor=C=D*n/(e-o)}return C},i.prototype.getIndexOfPoint=function(o,e){var s=this,n=s.axis,l=s.positions?s.positions[0]:0,b=n.series[0].points&&n.series[0].points[0]&&n.series[0].points[0].plotX||n.minPixelPadding;n.series.length>1&&n.series.forEach(function(p){p.points&&I(p.points[0])&&I(p.points[0].plotX)&&p.points[0].plotX<b&&p.points[0].plotX>=M(n.min,-1/0)&&(b=p.points[0].plotX)});var k=n.translationSlope*(s.slope||n.closestPointRange||s.overscrollPointsRange),D=(o-b)/k;return i.findIndexOf(e,l)+D},i.prototype.getOverscrollPositions=function(){var o=this.axis,e=o.options.overscroll,s=this.overscrollPointsRange,n=[],l=o.dataMax;if(I(s))for(;l<=o.dataMax+e;)l+=s,n.push(l);return n},i.prototype.postProcessTickInterval=function(o){var e=this.axis,s=this.slope;return s?e.options.breaks?e.closestPointRange||o:o/(s/e.closestPointRange):o},i}();h.Additions=t}($||($={})),$}),it(B,"Series/HLC/HLCPoint.js",[B["Core/Series/SeriesRegistry.js"]],function(W){var R,H=this&&this.__extends||(R=function($,Z){return R=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(U,z){U.__proto__=z}||function(U,z){for(var I in z)z.hasOwnProperty(I)&&(U[I]=z[I])},R($,Z)},function($,Z){function U(){this.constructor=$}R($,Z),$.prototype=Z===null?Object.create(Z):(U.prototype=Z.prototype,new U)}),V=function($){function Z(){var U=$!==null&&$.apply(this,arguments)||this;return U.close=void 0,U.high=void 0,U.low=void 0,U.options=void 0,U.plotClose=void 0,U.series=void 0,U}return H(Z,$),Z}(W.seriesTypes.column.prototype.pointClass);return V}),it(B,"Series/HLC/HLCSeriesDefaults.js",[],function(){return{lineWidth:1,tooltip:{pointFormat:'<span style="color:{point.color}">●</span> <b> {series.name}</b><br/>High: {point.high}<br/>Low: {point.low}<br/>Close: {point.close}<br/>'},threshold:null,states:{hover:{lineWidth:3}},stickyTracking:!0}}),it(B,"Series/HLC/HLCSeries.js",[B["Series/HLC/HLCPoint.js"],B["Series/HLC/HLCSeriesDefaults.js"],B["Core/Series/SeriesRegistry.js"],B["Core/Utilities.js"]],function(W,R,H,V){var $,Z=this&&this.__extends||($=function(M,P){return $=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(y,h){y.__proto__=h}||function(y,h){for(var f in h)h.hasOwnProperty(f)&&(y[f]=h[f])},$(M,P)},function(M,P){function y(){this.constructor=M}$(M,P),M.prototype=P===null?Object.create(P):(y.prototype=P.prototype,new y)}),U=H.seriesTypes.column,z=V.extend,I=V.merge,E=function(M){function P(){var y=M!==null&&M.apply(this,arguments)||this;return y.data=void 0,y.options=void 0,y.points=void 0,y.yData=void 0,y}return Z(P,M),P.prototype.extendStem=function(y,h,f){var m=y[0],u=y[1];typeof m[2]=="number"&&(m[2]=Math.max(f+h,m[2])),typeof u[2]=="number"&&(u[2]=Math.min(f-h,u[2]))},P.prototype.getPointPath=function(y,h){var f=h.strokeWidth(),m=y.series,u=f%2/2,v=Math.round(y.plotX)-u,w=Math.round(y.shapeArgs.width/2),S=y.plotClose,x=[["M",v,Math.round(y.yBottom)],["L",v,Math.round(y.plotHigh)]];return y.close!==null&&(S=Math.round(y.plotClose)+u,x.push(["M",v,S],["L",v+w,S]),m.extendStem(x,f/2,S)),x},P.prototype.drawSinglePoint=function(y){var h,f=y.series,m=f.chart,u=y.graphic;y.plotY!==void 0&&(u||(y.graphic=u=m.renderer.path().add(f.group)),m.styledMode||u.attr(f.pointAttribs(y,y.selected&&"select")),h=f.getPointPath(y,u),u[u?"animate":"attr"]({d:h}).addClass(y.getClassName(),!0))},P.prototype.drawPoints=function(){this.points.forEach(this.drawSinglePoint)},P.prototype.init=function(){M.prototype.init.apply(this,arguments),this.options.stacking=void 0},P.prototype.pointAttribs=function(y,h){var f=M.prototype.pointAttribs.call(this,y,h);return delete f.fill,f},P.prototype.toYData=function(y){return[y.high,y.low,y.close]},P.prototype.translate=function(){var y=this,h=y.yAxis,f=this.pointArrayMap&&this.pointArrayMap.slice()||[],m=f.map(function(u){return"plot".concat(u.charAt(0).toUpperCase()+u.slice(1))});m.push("yBottom"),f.push("low"),M.prototype.translate.apply(y),y.points.forEach(function(u){f.forEach(function(v,w){var S=u[v];S!==null&&(y.dataModify&&(S=y.dataModify.modifyValue(S)),u[m[w]]=h.toPixels(S,!0))}),u.tooltipPos[1]=u.plotHigh+h.pos-y.chart.plotTop})},P.defaultOptions=I(U.defaultOptions,R),P}(U);return z(E.prototype,{pointClass:W,animate:null,directTouch:!1,pointArrayMap:["high","low","close"],pointAttrToOptions:{stroke:"color","stroke-width":"lineWidth"},pointValKey:"close"}),H.registerSeriesType("hlc",E),E}),it(B,"Series/OHLC/OHLCPoint.js",[B["Core/Series/SeriesRegistry.js"]],function(W){var R,H=this&&this.__extends||(R=function($,Z){return R=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(U,z){U.__proto__=z}||function(U,z){for(var I in z)z.hasOwnProperty(I)&&(U[I]=z[I])},R($,Z)},function($,Z){function U(){this.constructor=$}R($,Z),$.prototype=Z===null?Object.create(Z):(U.prototype=Z.prototype,new U)}),V=function($){function Z(){var U=$!==null&&$.apply(this,arguments)||this;return U.open=void 0,U.options=void 0,U.plotOpen=void 0,U.series=void 0,U}return H(Z,$),Z.prototype.getClassName=function(){return $.prototype.getClassName.call(this)+(this.open<this.close?" highcharts-point-up":" highcharts-point-down")},Z.prototype.resolveUpColor=function(){this.open<this.close&&!this.options.color&&this.series.options.upColor&&(this.color=this.series.options.upColor)},Z.prototype.resolveColor=function(){$.prototype.resolveColor.call(this),this.resolveUpColor()},Z.prototype.getZone=function(){var U=$.prototype.getZone.call(this);return this.resolveUpColor(),U},Z.prototype.applyOptions=function(){return $.prototype.applyOptions.apply(this,arguments),this.resolveColor&&this.resolveColor(),this},Z}(W.seriesTypes.hlc.prototype.pointClass);return V}),it(B,"Series/OHLC/OHLCSeriesDefaults.js",[],function(){return{tooltip:{pointFormat:'<span style="color:{point.color}">●</span> <b> {series.name}</b><br/>Open: {point.open}<br/>High: {point.high}<br/>Low: {point.low}<br/>Close: {point.close}<br/>'}}}),it(B,"Series/OHLC/OHLCSeries.js",[B["Series/OHLC/OHLCPoint.js"],B["Series/OHLC/OHLCSeriesDefaults.js"],B["Core/Series/SeriesRegistry.js"],B["Core/Utilities.js"]],function(W,R,H,V){var $,Z=this&&this.__extends||($=function(f,m){return $=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(u,v){u.__proto__=v}||function(u,v){for(var w in v)v.hasOwnProperty(w)&&(u[w]=v[w])},$(f,m)},function(f,m){function u(){this.constructor=f}$(f,m),f.prototype=m===null?Object.create(m):(u.prototype=m.prototype,new u)}),U=H.seriesTypes.hlc,z=V.addEvent,I=V.extend,E=V.merge,M=[];function P(f){var m=f.options,u=m.dataGrouping;u&&m.useOhlcData&&m.id!=="highcharts-navigator-series"&&(u.approximation="ohlc")}function y(f){var m=f.options;m.useOhlcData&&m.id!=="highcharts-navigator-series"&&I(this,{pointValKey:h.prototype.pointValKey,pointArrayMap:h.prototype.pointArrayMap,toYData:h.prototype.toYData})}var h=function(f){function m(){var u=f!==null&&f.apply(this,arguments)||this;return u.data=void 0,u.options=void 0,u.points=void 0,u}return Z(m,f),m.compose=function(u){for(var v=[],w=1;w<arguments.length;w++)v[w-1]=arguments[w];M.indexOf(u)===-1&&(M.push(u),z(u,"afterSetOptions",P),z(u,"init",y))},m.prototype.getPointPath=function(u,v){var w=f.prototype.getPointPath.call(this,u,v),S=v.strokeWidth(),x=S%2/2,c=Math.round(u.plotX)-x,g=Math.round(u.shapeArgs.width/2),r=u.plotOpen;return u.open!==null&&(r=Math.round(u.plotOpen)+x,w.push(["M",c,r],["L",c-g,r]),f.prototype.extendStem.call(this,w,S/2,r)),w},m.prototype.pointAttribs=function(u,v){var w=f.prototype.pointAttribs.call(this,u,v),S=this.options;return delete w.fill,!u.options.color&&S.upColor&&u.open<u.close&&(w.stroke=S.upColor),w},m.prototype.toYData=function(u){return[u.open,u.high,u.low,u.close]},m.defaultOptions=E(U.defaultOptions,R),m}(U);return I(h.prototype,{pointClass:W,pointArrayMap:["open","high","low","close"]}),H.registerSeriesType("ohlc",h),h}),it(B,"Series/Candlestick/CandlestickSeriesDefaults.js",[B["Core/Defaults.js"],B["Core/Utilities.js"]],function(W,R){return{states:{hover:{lineWidth:2}},threshold:null,lineColor:"#000000",lineWidth:1,upColor:"#ffffff",stickyTracking:!0}}),it(B,"Series/Candlestick/CandlestickSeries.js",[B["Series/Candlestick/CandlestickSeriesDefaults.js"],B["Core/Defaults.js"],B["Core/Series/SeriesRegistry.js"],B["Core/Utilities.js"]],function(W,R,H,V){var $,Z=this&&this.__extends||($=function(y,h){return $=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,m){f.__proto__=m}||function(f,m){for(var u in m)m.hasOwnProperty(u)&&(f[u]=m[u])},$(y,h)},function(y,h){function f(){this.constructor=y}$(y,h),y.prototype=h===null?Object.create(h):(f.prototype=h.prototype,new f)}),U=R.defaultOptions,z=H.seriesTypes,I=z.column,E=z.ohlc,M=V.merge,P=function(y){function h(){var f=y!==null&&y.apply(this,arguments)||this;return f.data=void 0,f.options=void 0,f.points=void 0,f}return Z(h,y),h.prototype.pointAttribs=function(f,m){var u=I.prototype.pointAttribs.call(this,f,m),v=this.options,w=f.open<f.close,S=v.lineColor||this.color,x=f.color||this.color;if(u["stroke-width"]=v.lineWidth,u.fill=f.options.color||w&&v.upColor||x,u.stroke=f.options.lineColor||w&&v.upLineColor||S,m){var c=v.states[m];u.fill=c.color||u.fill,u.stroke=c.lineColor||u.stroke,u["stroke-width"]=c.lineWidth||u["stroke-width"]}return u},h.prototype.drawPoints=function(){for(var f=this,m=f.points,u=f.chart,v=f.yAxis.reversed,w=0,S=m;w<S.length;w++){var x=S[w],c=x.graphic,g=void 0,r=void 0,a=void 0,t=void 0,i=void 0,o=void 0,e=void 0,s=void 0,n=void 0,l=void 0,b=!c;x.plotY!==void 0&&(c||(x.graphic=c=u.renderer.path().add(f.group)),f.chart.styledMode||c.attr(f.pointAttribs(x,x.selected&&"select")).shadow(f.options.shadow),e=c.strokeWidth()%2/2,s=Math.round(x.plotX)-e,g=x.plotOpen,r=x.plotClose,a=Math.min(g,r),t=Math.max(g,r),l=Math.round(x.shapeArgs.width/2),i=v?t!==x.yBottom:Math.round(a)!==Math.round(x.plotHigh),o=v?Math.round(a)!==Math.round(x.plotHigh):t!==x.yBottom,a=Math.round(a)+e,t=Math.round(t)+e,(n=[]).push(["M",s-l,t],["L",s-l,a],["L",s+l,a],["L",s+l,t],["Z"],["M",s,a],["L",s,i?Math.round(v?x.yBottom:x.plotHigh):a],["M",s,t],["L",s,o?Math.round(v?x.plotHigh:x.yBottom):t]),c[b?"attr":"animate"]({d:n}).addClass(x.getClassName(),!0))}},h.defaultOptions=M(E.defaultOptions,U.plotOptions,{tooltip:E.defaultOptions.tooltip},W),h}(E);return H.registerSeriesType("candlestick",P),P}),it(B,"Series/Flags/FlagsPoint.js",[B["Core/Series/SeriesRegistry.js"],B["Core/Utilities.js"]],function(W,R){var H,V=this&&this.__extends||(H=function(z,I){return H=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(E,M){E.__proto__=M}||function(E,M){for(var P in M)M.hasOwnProperty(P)&&(E[P]=M[P])},H(z,I)},function(z,I){function E(){this.constructor=z}H(z,I),z.prototype=I===null?Object.create(I):(E.prototype=I.prototype,new E)}),$=W.seriesTypes.column.prototype.pointClass,Z=R.isNumber,U=function(z){function I(){var E=z!==null&&z.apply(this,arguments)||this;return E.options=void 0,E.series=void 0,E.ttBelow=!1,E}return V(I,z),I.prototype.isValid=function(){return Z(this.y)||this.y===void 0},I.prototype.hasNewShapeType=function(){var E=this.options.shape||this.series.options.shape;return this.graphic&&E&&E!==this.graphic.symbolKey},I}($);return U}),it(B,"Series/Flags/FlagsSeriesDefaults.js",[],function(){return{pointRange:0,allowOverlapX:!1,shape:"flag",stackDistance:12,textAlign:"center",tooltip:{pointFormat:"{point.text}"},threshold:null,y:-30,fillColor:"#ffffff",lineWidth:1,states:{hover:{lineColor:"#000000",fillColor:"#ccd6eb"}},style:{fontSize:"11px",fontWeight:"bold"}}}),it(B,"Series/Flags/FlagsSymbols.js",[B["Core/Renderer/RendererRegistry.js"]],function(W){var R;return function(H){var V=[];function $(U,z,I,E,M){var P=M&&M.anchorX||U,y=M&&M.anchorY||z,h=this.circle(P-1,y-1,2,2);return h.push(["M",P,y],["L",U,z+E],["L",U,z],["L",U+I,z],["L",U+I,z+E],["L",U,z+E],["Z"]),h}function Z(U,z){U[z+"pin"]=function(I,E,M,P,y){var h,f=y&&y.anchorX,m=y&&y.anchorY;if(z==="circle"&&P>M&&(I-=Math.round((P-M)/2),M=P),h=U[z](I,E,M,P),f&&m){var u=f;if(z==="circle")u=I+M/2;else{var v=h[0],w=h[1];v[0]==="M"&&w[0]==="L"&&(u=(v[1]+w[1])/2)}var S=E>m?E:E+P;h.push(["M",u,S],["L",f,m]),h=h.concat(U.circle(f-1,m-1,2,2))}return h}}H.compose=function(U){V.indexOf(U)===-1&&(V.push(U),(I=U.prototype.symbols).flag=$,Z(I,"circle"),Z(I,"square"));var z=W.getRendererType();if(V.indexOf(z)){V.push(z);var I=U.prototype.symbols,E=z.prototype.symbols;E.circlepin=I.circlepin,E.flag=I.flag.bind(I),E.squarepin=I.squarepin}}}(R||(R={})),R}),it(B,"Series/OnSeriesComposition.js",[B["Series/Column/ColumnSeries.js"],B["Core/Series/Series.js"],B["Core/Utilities.js"]],function(W,R,H){var V,$=W.prototype,Z=R.prototype,U=H.defined,z=H.stableSort;return function(I){var E=[];function M(y){return Z.getPlotBox.call(this.options.onSeries&&this.chart.get(this.options.onSeries)||this,y)}function P(){$.translate.apply(this);var y,h,f,m,u,v,w,S=this,x=S.options,c=S.chart,g=S.points,r=x.onSeries,a=r&&c.get(r),t=a&&a.options.step,i=a&&a.points,o=c.inverted,e=S.xAxis,s=S.yAxis,n=g.length-1,l=x.onKey||"y",b=i&&i.length,k=0;if(a&&a.visible&&b)for(k=(a.pointXOffset||0)+(a.barW||0)/2,v=a.currentDataGrouping,m=i[b-1].x+(v?v.totalRange:0),z(g,function(D,p){return D.x-p.x}),l="plot"+l[0].toUpperCase()+l.substr(1);b--&&g[n]&&(f=i[b],(y=g[n]).y=f.y,!(f.x<=y.x&&f[l]!==void 0&&(y.x<=m&&(y.plotY=f[l],f.x<y.x&&!t&&(u=i[b+1])&&u[l]!==void 0&&(w=(y.x-f.x)/(u.x-f.x),y.plotY+=w*(u[l]-f[l]),y.y+=w*(u.y-f.y))),b++,--n<0))););g.forEach(function(D,p){var C;D.plotX+=k,(D.plotY===void 0||o)&&(D.plotX>=0&&D.plotX<=e.len?o?(D.plotY=e.translate(D.x,0,1,0,1),D.plotX=U(D.y)?s.translate(D.y,0,0,0,1):0):D.plotY=(e.opposite?0:S.yAxis.len)+e.offset:D.shapeArgs={}),(h=g[p-1])&&h.plotX===D.plotX&&(h.stackIndex===void 0&&(h.stackIndex=0),C=h.stackIndex+1),D.stackIndex=C}),this.onSeries=a}I.compose=function(y){if(E.indexOf(y)===-1){E.push(y);var h=y.prototype;h.getPlotBox=M,h.translate=P}return y},I.getPlotBox=M,I.translate=P}(V||(V={})),V}),it(B,"Series/Flags/FlagsSeries.js",[B["Series/Flags/FlagsPoint.js"],B["Series/Flags/FlagsSeriesDefaults.js"],B["Series/Flags/FlagsSymbols.js"],B["Core/Globals.js"],B["Series/OnSeriesComposition.js"],B["Core/Renderer/RendererUtilities.js"],B["Core/Series/SeriesRegistry.js"],B["Core/Renderer/SVG/SVGElement.js"],B["Core/Utilities.js"]],function(W,R,H,V,$,Z,U,z,I){var E,M=this&&this.__extends||(E=function(g,r){return E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,t){a.__proto__=t}||function(a,t){for(var i in t)t.hasOwnProperty(i)&&(a[i]=t[i])},E(g,r)},function(g,r){function a(){this.constructor=g}E(g,r),g.prototype=r===null?Object.create(r):(a.prototype=r.prototype,new a)}),P=V.noop,y=Z.distribute,h=U.series,f=U.seriesTypes.column,m=I.addEvent,u=I.defined,v=I.extend,w=I.merge,S=I.objectEach,x=I.wrap,c=function(g){function r(){var a=g!==null&&g.apply(this,arguments)||this;return a.data=void 0,a.options=void 0,a.points=void 0,a}return M(r,g),r.prototype.animate=function(a){a&&this.setClip()},r.prototype.drawPoints=function(){var a,t,i,o,e,s,n,l,b,k,D,p=this,C=p.points,A=p.chart,N=A.renderer,_=A.inverted,L=p.options,O=L.y,j=p.yAxis,Y={},X=[];for(o=C.length;o--;)e=C[o],k=(_?e.plotY:e.plotX)>p.xAxis.len,a=e.plotX,n=e.stackIndex,i=e.options.shape||L.shape,(t=e.plotY)!==void 0&&(t=e.plotY+O-(n!==void 0&&n*L.stackDistance)),e.anchorX=n?void 0:e.plotX,l=n?void 0:e.plotY,D=i!=="flag",s=e.graphic,t!==void 0&&a>=0&&!k?(s&&e.hasNewShapeType()&&(s=s.destroy()),s||(s=e.graphic=N.label("",null,null,i,null,null,L.useHTML).addClass("highcharts-point").add(p.markerGroup),e.graphic.div&&(e.graphic.div.point=e),s.isNew=!0),s.attr({align:D?"center":"left",width:L.width,height:L.height,"text-align":L.textAlign}),A.styledMode||s.attr(p.pointAttribs(e)).css(w(L.style,e.style)).shadow(L.shadow),a>0&&(a-=s.strokeWidth()%2),b={y:t,anchorY:l},L.allowOverlapX&&(b.x=a,b.anchorX=e.anchorX),s.attr({text:e.options.title||L.title||"A"})[s.isNew?"attr":"animate"](b),L.allowOverlapX||(Y[e.plotX]?Y[e.plotX].size=Math.max(Y[e.plotX].size,s.width):Y[e.plotX]={align:D?.5:0,size:s.width,target:a,anchorX:a}),e.tooltipPos=[a,t+j.pos-A.plotTop]):s&&(e.graphic=s.destroy());if(!L.allowOverlapX){var G=100;S(Y,function(mt){mt.plotX=mt.anchorX,X.push(mt),G=Math.max(mt.size,G)}),y(X,_?j.len:this.xAxis.len,G);for(var q=0,Q=C;q<Q.length;q++){var J=Q[q],rt=J.plotX,lt=J.graphic,gt=lt&&Y[rt];gt&&lt&&(u(gt.pos)?lt[lt.isNew?"attr":"animate"]({x:gt.pos+(gt.align||0)*gt.size,anchorX:J.anchorX}).show().isNew=!1:lt.hide().isNew=!0)}}L.useHTML&&p.markerGroup&&x(p.markerGroup,"on",function(mt){return z.prototype.on.apply(mt.apply(this,[].slice.call(arguments,1)),[].slice.call(arguments,1))})},r.prototype.drawTracker=function(){var a=this.points;g.prototype.drawTracker.call(this);for(var t=function(e){var s=e.graphic;s&&(e.unbindMouseOver&&e.unbindMouseOver(),e.unbindMouseOver=m(s.element,"mouseover",function(){e.stackIndex>0&&!e.raised&&(e._y=s.y,s.attr({y:e._y-8}),e.raised=!0);for(var n=0,l=a;n<l.length;n++){var b=l[n];b!==e&&b.raised&&b.graphic&&(b.graphic.attr({y:b._y}),b.raised=!1)}}))},i=0,o=a;i<o.length;i++)t(o[i])},r.prototype.pointAttribs=function(a,t){var i=this.options,o=a&&a.color||this.color,e=i.lineColor,s=a&&a.lineWidth,n=a&&a.fillColor||i.fillColor;return t&&(n=i.states[t].fillColor,e=i.states[t].lineColor,s=i.states[t].lineWidth),{fill:n||o,stroke:e||o,"stroke-width":s||i.lineWidth||0}},r.prototype.setClip=function(){h.prototype.setClip.apply(this,arguments),this.options.clip!==!1&&this.sharedClipKey&&this.markerGroup&&this.markerGroup.clip(this.chart.sharedClips[this.sharedClipKey])},r.compose=H.compose,r.defaultOptions=w(f.defaultOptions,R),r}(f);return $.compose(c),v(c.prototype,{allowDG:!1,forceCrop:!0,invertible:!1,noSharedTooltip:!0,pointClass:W,sorted:!1,takeOrdinalPosition:!1,trackerGroups:["markerGroup"],buildKDTree:P,init:h.prototype.init}),U.registerSeriesType("flags",c),c}),it(B,"Core/Chart/StockChart.js",[B["Core/Axis/Axis.js"],B["Core/Chart/Chart.js"],B["Core/FormatUtilities.js"],B["Core/Defaults.js"],B["Stock/Navigator/NavigatorDefaults.js"],B["Stock/RangeSelector/RangeSelectorDefaults.js"],B["Stock/Scrollbar/ScrollbarDefaults.js"],B["Core/Series/Series.js"],B["Core/Renderer/SVG/SVGRenderer.js"],B["Core/Utilities.js"]],function(W,R,H,V,$,Z,U,z,I,E){var M,P=this&&this.__extends||(M=function(o,e){return M=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,n){s.__proto__=n}||function(s,n){for(var l in n)n.hasOwnProperty(l)&&(s[l]=n[l])},M(o,e)},function(o,e){function s(){this.constructor=o}M(o,e),o.prototype=e===null?Object.create(e):(s.prototype=e.prototype,new s)}),y=H.format,h=V.getOptions,f=E.addEvent,m=E.clamp,u=E.defined,v=E.extend,w=E.find,S=E.isNumber,x=E.isString,c=E.merge,g=E.pick,r=E.splat,a=function(o){function e(){return o!==null&&o.apply(this,arguments)||this}return P(e,o),e.prototype.init=function(s,n){var l=h(),b=s.xAxis,k=s.yAxis,D=g(s.navigator&&s.navigator.enabled,$.enabled,!0);s.xAxis=s.yAxis=void 0;var p=c({chart:{panning:{enabled:!0,type:"x"},zooming:{pinchType:"x"}},navigator:{enabled:D},scrollbar:{enabled:g(U.enabled,!0)},rangeSelector:{enabled:g(Z.rangeSelector.enabled,!0)},title:{text:null},tooltip:{split:g(l.tooltip.split,!0),crosshairs:!0},legend:{enabled:!1}},s,{isStock:!0});s.xAxis=b,s.yAxis=k,p.xAxis=r(s.xAxis||{}).map(function(C,A){return c(t("xAxis",C),l.xAxis,l.xAxis&&l.xAxis[A],C,i("xAxis",s))}),p.yAxis=r(s.yAxis||{}).map(function(C,A){return c(t("yAxis",C),l.yAxis,l.yAxis&&l.yAxis[A],C)}),o.prototype.init.call(this,p,n)},e.prototype.createAxis=function(s,n){return n.axis=c(t(s,n.axis),n.axis,i(s,this.userOptions)),o.prototype.createAxis.call(this,s,n)},e}(R);function t(o,e){return o==="xAxis"?{minPadding:0,maxPadding:0,overscroll:0,ordinal:!0,title:{text:null},labels:{overflow:"justify"},showLastLabel:!0}:o==="yAxis"?{labels:{y:-2},opposite:g(e.opposite,!0),showLastLabel:!(!e.categories&&e.type!=="category"),title:{text:null}}:{}}function i(o,e){if(o==="xAxis"){var s={type:"datetime",categories:void 0};return g(e.navigator&&e.navigator.enabled,$.enabled,!0)&&(s.startOnTick=!1,s.endOnTick=!1),s}return{}}return function(o){o.stockChart=function(e,s,n){return new o(e,s,n)}}(a||(a={})),f(z,"setOptions",function(o){var e;this.chart.options.isStock&&(this.is("column")||this.is("columnrange")?e={borderWidth:0,shadow:!1}:this.is("scatter")||this.is("sma")||(e={marker:{enabled:!1,radius:2}}),e&&(o.plotOptions[this.type]=c(o.plotOptions[this.type],e)))}),f(W,"autoLabelAlign",function(o){var e,s=this.chart,n=this.options,l=s._labelPanes=s._labelPanes||{},b=this.options.labels;this.chart.options.isStock&&this.coll==="yAxis"&&!l[e=n.top+","+n.height]&&b.enabled&&(b.x===15&&(b.x=0),b.align===void 0&&(b.align="right"),l[e]=this,o.align="right",o.preventDefault())}),f(W,"destroy",function(){var o=this.chart,e=this.options&&this.options.top+","+this.options.height;e&&o._labelPanes&&o._labelPanes[e]===this&&delete o._labelPanes[e]}),f(W,"getPlotLinePath",function(o){var e,s,n,l,b,k,D,p,C,A=this,N=this.isLinked&&!this.series?this.linkedParent.series:this.series,_=A.chart,L=_.renderer,O=A.left,j=A.top,Y=[],X=[],G=o.translatedValue,q=o.value,Q=o.force;(_.options.isStock&&o.acrossPanes!==!1&&A.coll==="xAxis"||A.coll==="yAxis")&&(o.preventDefault(),D=A.coll,p=D==="xAxis"?"yAxis":"xAxis",C=A.options[p],X=S(C)?[_[p][C]]:x(C)?[_.get(C)]:N.map(function(J){return J[p]}),(A.isXAxis?_.yAxis:_.xAxis).forEach(function(J){if(!u(J.options.id)||J.options.id.indexOf("navigator")===-1){var rt=J.isXAxis?"yAxis":"xAxis",lt=u(J.options[rt])?_[rt][J.options[rt]]:_[rt][0];A===lt&&X.push(J)}}),b=X.length?[]:[A.isXAxis?_.yAxis[0]:_.xAxis[0]],X.forEach(function(J){b.indexOf(J)!==-1||w(b,function(rt){return rt.pos===J.pos&&rt.len===J.len})||b.push(J)}),k=g(G,A.translate(q,void 0,void 0,o.old)),S(k)&&(A.horiz?b.forEach(function(J){var rt;s=J.pos,l=s+J.len,e=n=Math.round(k+A.transB),Q!=="pass"&&(e<O||e>O+A.width)&&(Q?e=n=m(e,O,O+A.width):rt=!0),rt||Y.push(["M",e,s],["L",n,l])}):b.forEach(function(J){var rt;e=J.pos,n=e+J.len,s=l=Math.round(j+A.height-k),Q!=="pass"&&(s<j||s>j+A.height)&&(Q?s=l=m(s,j,j+A.height):rt=!0),rt||Y.push(["M",e,s],["L",n,l])})),o.path=Y.length>0?L.crispPolyLine(Y,o.lineWidth||1):null)}),I.prototype.crispPolyLine=function(o,e){for(var s=0;s<o.length;s+=2){var n=o[s],l=o[s+1];n[1]===l[1]&&(n[1]=l[1]=Math.round(n[1])-e%2/2),n[2]===l[2]&&(n[2]=l[2]=Math.round(n[2])+e%2/2)}return o},f(W,"afterHideCrosshair",function(){this.crossLabel&&(this.crossLabel=this.crossLabel.hide())}),f(W,"afterDrawCrosshair",function(o){if(this.crosshair&&this.crosshair.label&&this.crosshair.label.enabled&&this.cross&&S(this.min)&&S(this.max)){var e,s,n,l,b,k=this.chart,D=this.logarithmic,p=this.crosshair.label,C=this.horiz,A=this.opposite,N=this.left,_=this.top,L=this.crossLabel,O=p.format,j="",Y=this.options.tickPosition==="inside",X=this.crosshair.snap!==!1,G=0,q=o.e||this.cross&&this.cross.e,Q=o.point,J=this.min,rt=this.max;D&&(J=D.lin2log(J),rt=D.lin2log(rt)),b=C?"center":A?this.labelAlign==="right"?"right":"left":this.labelAlign==="left"?"left":"center",L||(L=this.crossLabel=k.renderer.label("",0,void 0,p.shape||"callout").addClass("highcharts-crosshair-label highcharts-color-"+(Q&&Q.series?Q.series.colorIndex:this.series[0]&&this.series[0].colorIndex)).attr({align:p.align||b,padding:g(p.padding,8),r:g(p.borderRadius,3),zIndex:2}).add(this.labelGroup),k.styledMode||L.attr({fill:p.backgroundColor||Q&&Q.series&&Q.series.color||"#666666",stroke:p.borderColor||"","stroke-width":p.borderWidth||0}).css(v({color:"#ffffff",fontWeight:"normal",fontSize:"11px",textAlign:"center"},p.style||{}))),C?(e=X?(Q.plotX||0)+N:q.chartX,s=_+(A?0:this.height)):(e=A?this.width+N:0,s=X?(Q.plotY||0)+_:q.chartY),O||p.formatter||(this.dateTime&&(j="%b %d, %Y"),O="{value"+(j?":"+j:"")+"}");var lt=X?this.isXAxis?Q.x:Q.y:this.toValue(C?q.chartX:q.chartY),gt=Q&&Q.series?Q.series.isPointInside(Q):S(lt)&&lt>J&&lt<rt,mt="";O?mt=y(O,{value:lt},k):p.formatter&&S(lt)&&(mt=p.formatter.call(this,lt)),L.attr({text:mt,x:e,y:s,visibility:gt?"inherit":"hidden"}),n=L.getBBox(),S(L.y)&&(C?(Y&&!A||!Y&&A)&&(s=L.y-n.height):s=L.y-n.height/2),l=C?{left:N-n.x,right:N+this.width-n.x}:{left:this.labelAlign==="left"?N:0,right:this.labelAlign==="right"?N+this.width:k.chartWidth},L.translateX<l.left&&(G=l.left-L.translateX),L.translateX+n.width>=l.right&&(G=-(L.translateX+n.width-l.right)),L.attr({x:e+G,y:s,anchorX:C?e:this.opposite?0:k.chartWidth,anchorY:C?this.opposite?k.chartHeight:0:s+n.height/2})}}),z.prototype.forceCropping=function(){var o=this.chart,e=this.options.dataGrouping;return this.allowDG!==!1&&e&&g(e.enabled,o.options.isStock)},f(R,"update",function(o){var e=o.options;"scrollbar"in e&&this.navigator&&(c(!0,this.options.scrollbar,e.scrollbar),this.navigator.update({}),delete e.scrollbar)}),a}),it(B,"masters/modules/stock.src.js",[B["Core/Globals.js"],B["Series/DataModifyComposition.js"],B["Stock/Navigator/Navigator.js"],B["Stock/RangeSelector/RangeSelector.js"],B["Stock/Scrollbar/Scrollbar.js"],B["Core/Axis/OrdinalAxis.js"],B["Series/OHLC/OHLCSeries.js"],B["Series/Flags/FlagsSeries.js"],B["Core/Chart/StockChart.js"]],function(W,R,H,V,$,Z,U,z,I){var E=W;E.Navigator=H,E.RangeSelector=V,E.Scrollbar=$,E.StockChart=E.stockChart=I.stockChart,R.compose(E.Series,E.Axis,E.Point),z.compose(E.Renderer),H.compose(E.Axis,E.Chart,E.Series),U.compose(E.Series),Z.compose(E.Axis,E.Series,E.Chart),V.compose(E.Axis,E.Chart),$.compose(E.Axis)}),it(B,"masters/highstock.src.js",[B["masters/highcharts.src.js"]],function(W){return W.product="Highstock",W}),B["masters/highstock.src.js"]._modules=B,B["masters/highstock.src.js"]},ot.exports?(ut.default=ut,ot.exports=ht.document?ut(ht):ut):(pt=function(){return ut(ht)}.call(nt,st,nt,ot))===void 0||(ot.exports=pt)},5322:(ot,nt)=>{Object.defineProperty(nt,"__esModule",{value:!0}),nt.default=function(st){var pt=st.defaultOptions,ht=pt.plotOptions,ut={fillOpacity:.2,color:null,borderColor:null},ft={fillColor:null,lineColor:null,lineWidth:2};pt.plotOptions.column.states.select=ut,pt.plotOptions.area.states.select=ut,pt.plotOptions.bar.states.select=ut,pt.plotOptions.line.states.select=ut,pt.plotOptions.spline.states.select=ut,pt.plotOptions.scatter.marker={enabled:!0,radius:4,fillOpacity:.25,fillColor:null,lineColor:null,lineWidth:1,states:{select:{fillOpacity:.85,fillColor:null,lineColor:null},hover:{animation:{duration:50},enabled:!0,radiusPlus:2,lineWidthPlus:1}}},pt.plotOptions.series={states:{select:ut}},ht.area.marker.states.select=ft,ht.line.marker.states.select=ft,ht.spline.marker.states.select=ft,ht.bubble.marker.states.select={fillOpacity:.25,fillColor:null,lineColor:null,lineWidth:1},st.timeUnits.month=26784e5,st.timeUnits.year=31556952e3}},5378:(ot,nt,st)=>{st.d(nt,{A:()=>ht});var pt=/^(?:0|[1-9]\d*)$/;const ht=function(ut,ft){var B=typeof ut;return!!(ft=ft==null?9007199254740991:ft)&&(B=="number"||B!="symbol"&&pt.test(ut))&&ut>-1&&ut%1==0&&ut<ft}},5436:(ot,nt,st)=>{st.d(nt,{A:()=>ut});var pt=st(123),ht=st(9600);const ut=(0,pt.A)(ht.A,"Map")},5860:(ot,nt,st)=>{st.r(nt),st.d(nt,{default:()=>ft});var pt=st(4044),ht=st(6956),ut=st(7313);const ft=function(B){return typeof B=="string"||!(0,ht.A)(B)&&(0,ut.A)(B)&&(0,pt.A)(B)=="[object String]"}},6096:(ot,nt,st)=>{st.d(nt,{A:()=>B});var pt=st(6979);const ht=function(it,W){for(var R=it.length;R--;)if((0,pt.A)(it[R][0],W))return R;return-1};var ut=Array.prototype.splice;function ft(it){var W=-1,R=it==null?0:it.length;for(this.clear();++W<R;){var H=it[W];this.set(H[0],H[1])}}ft.prototype.clear=function(){this.__data__=[],this.size=0},ft.prototype.delete=function(it){var W=this.__data__,R=ht(W,it);return!(R<0||(R==W.length-1?W.pop():ut.call(W,R,1),--this.size,0))},ft.prototype.get=function(it){var W=this.__data__,R=ht(W,it);return R<0?void 0:W[R][1]},ft.prototype.has=function(it){return ht(this.__data__,it)>-1},ft.prototype.set=function(it,W){var R=this.__data__,H=ht(R,it);return H<0?(++this.size,R.push([it,W])):R[H][1]=W,this};const B=ft},6124:(ot,nt,st)=>{st.d(nt,{A:()=>ft});var pt=st(9465),ht=st(6979),ut=Object.prototype.hasOwnProperty;const ft=function(B,it,W){var R=B[it];ut.call(B,it)&&(0,ht.A)(R,W)&&(W!==void 0||it in B)||(0,pt.A)(B,it,W)}},6236:(ot,nt,st)=>{var pt,ht,ut;ut=function(ft){var B=ft?ft._modules:{};function it(W,R,H,V){W.hasOwnProperty(R)||(W[R]=V.apply(null,H),typeof CustomEvent=="function"&&window.dispatchEvent(new CustomEvent("HighchartsModuleLoaded",{detail:{path:R,module:W[R]}})))}it(B,"Core/Axis/Color/ColorAxisComposition.js",[B["Core/Color/Color.js"],B["Core/Utilities.js"]],function(W,R){var H,V=W.parse,$=R.addEvent,Z=R.extend,U=R.merge,z=R.pick,I=R.splat;return function(E){var M,P=[];function y(){var g=this,r=this.options;this.colorAxis=[],r.colorAxis&&(r.colorAxis=I(r.colorAxis),r.colorAxis.forEach(function(a,t){a.index=t,new M(g,a)}))}function h(g){var r,a,t=this,i=this.chart.colorAxis||[],o=function(s){var n=g.allItems.indexOf(s);n!==-1&&(t.destroyItem(g.allItems[n]),g.allItems.splice(n,1))},e=[];for(i.forEach(function(s){(r=s.options)&&r.showInLegend&&(r.dataClasses&&r.visible?e=e.concat(s.getDataClassLegendSymbols()):r.visible&&e.push(s),s.series.forEach(function(n){n.options.showInLegend&&!r.dataClasses||(n.options.legendType==="point"?n.points.forEach(function(l){o(l)}):o(n))}))}),a=e.length;a--;)g.allItems.unshift(e[a])}function f(g){g.visible&&g.item.legendColor&&g.item.legendItem.symbol.attr({fill:g.item.legendColor})}function m(){var g=this.chart.colorAxis;g&&g.forEach(function(r){r.update({},arguments[2])})}function u(){(this.chart.colorAxis&&this.chart.colorAxis.length||this.colorAttribs)&&this.translateColors()}function v(){var g=this.axisTypes;g?g.indexOf("colorAxis")===-1&&g.push("colorAxis"):this.axisTypes=["colorAxis"]}function w(g){var r=this,a=g?"show":"hide";r.visible=r.options.visible=!!g,["graphic","dataLabel"].forEach(function(t){r[t]&&r[t][a]()}),this.series.buildKDTree()}function S(){var g=this,r=this.data.length?this.data:this.points,a=this.options.nullColor,t=this.colorAxis,i=this.colorKey;r.forEach(function(o){var e=o.getNestedProperty(i),s=o.options.color||(o.isNull||o.value===null?a:t&&e!==void 0?t.toColor(e,o):o.color||g.color);s&&o.color!==s&&(o.color=s,g.options.legendType==="point"&&o.legendItem&&o.legendItem.label&&g.chart.legend.colorizeItem(o,o.visible))})}function x(){this.elem.attr("fill",V(this.start).tweenTo(V(this.end),this.pos),void 0,!0)}function c(){this.elem.attr("stroke",V(this.start).tweenTo(V(this.end),this.pos),void 0,!0)}E.compose=function(g,r,a,t,i){if(M||(M=g),P.indexOf(r)===-1){P.push(r);var o=r.prototype;o.collectionsWithUpdate.push("colorAxis"),o.collectionsWithInit.colorAxis=[o.addColorAxis],$(r,"afterGetAxes",y),function(s){var n=s.prototype.createAxis;s.prototype.createAxis=function(l,b){if(l!=="colorAxis")return n.apply(this,arguments);var k=new M(this,U(b.axis,{index:this[l].length,isX:!1}));return this.isDirtyLegend=!0,this.axes.forEach(function(D){D.series=[]}),this.series.forEach(function(D){D.bindAxes(),D.isDirtyData=!0}),z(b.redraw,!0)&&this.redraw(b.animation),k}}(r)}if(P.indexOf(a)===-1){P.push(a);var e=a.prototype;e.fillSetter=x,e.strokeSetter=c}P.indexOf(t)===-1&&(P.push(t),$(t,"afterGetAllItems",h),$(t,"afterColorizeItem",f),$(t,"afterUpdate",m)),P.indexOf(i)===-1&&(P.push(i),Z(i.prototype,{optionalAxis:"colorAxis",translateColors:S}),Z(i.prototype.pointClass.prototype,{setVisible:w}),$(i,"afterTranslate",u,{order:1}),$(i,"bindAxes",v))},E.pointSetVisible=w}(H||(H={})),H}),it(B,"Core/Axis/Color/ColorAxisDefaults.js",[],function(){return{lineWidth:0,minPadding:0,maxPadding:0,gridLineWidth:1,tickPixelInterval:72,startOnTick:!0,endOnTick:!0,offset:0,marker:{animation:{duration:50},width:.01,color:"#999999"},labels:{overflow:"justify",rotation:0},minColor:"#e6ebf5",maxColor:"#003399",tickLength:5,showInLegend:!0}}),it(B,"Core/Axis/Color/ColorAxis.js",[B["Core/Axis/Axis.js"],B["Core/Color/Color.js"],B["Core/Axis/Color/ColorAxisComposition.js"],B["Core/Axis/Color/ColorAxisDefaults.js"],B["Core/Globals.js"],B["Core/Legend/LegendSymbol.js"],B["Core/Series/SeriesRegistry.js"],B["Core/Utilities.js"]],function(W,R,H,V,$,Z,U,z){var I,E=this&&this.__extends||(I=function(v,w){return I=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(S,x){S.__proto__=x}||function(S,x){for(var c in x)x.hasOwnProperty(c)&&(S[c]=x[c])},I(v,w)},function(v,w){function S(){this.constructor=v}I(v,w),v.prototype=w===null?Object.create(w):(S.prototype=w.prototype,new S)}),M=R.parse,P=U.series,y=z.extend,h=z.isNumber,f=z.merge,m=z.pick,u=function(v){function w(S,x){var c=v.call(this,S,x)||this;return c.beforePadding=!1,c.chart=void 0,c.coll="colorAxis",c.dataClasses=void 0,c.name="",c.options=void 0,c.stops=void 0,c.visible=!0,c.init(S,x),c}return E(w,v),w.compose=function(S,x,c,g){H.compose(w,S,x,c,g)},w.prototype.init=function(S,x){var c=this,g=S.options.legend||{},r=x.layout?x.layout!=="vertical":g.layout!=="vertical",a=x.visible,t=f(w.defaultColorAxisOptions,x,{showEmpty:!1,title:null,visible:g.enabled&&a!==!1});c.coll="colorAxis",c.side=x.side||r?2:1,c.reversed=x.reversed||!r,c.opposite=!r,v.prototype.init.call(this,S,t),c.userOptions.visible=a,x.dataClasses&&c.initDataClasses(x),c.initStops(),c.horiz=r,c.zoomEnabled=!1},w.prototype.initDataClasses=function(S){var x,c=this,g=c.chart,r=c.legendItem=c.legendItem||{},a=S.dataClasses.length,t=c.options,i=0,o=g.options.chart.colorCount;c.dataClasses=x=[],r.labels=[],(S.dataClasses||[]).forEach(function(e,s){var n;e=f(e),x.push(e),!g.styledMode&&e.color||(t.dataClassColor==="category"?(g.styledMode||(n=g.options.colors,o=n.length,e.color=n[i]),e.colorIndex=i,++i===o&&(i=0)):e.color=M(t.minColor).tweenTo(M(t.maxColor),a<2?.5:s/(a-1)))})},w.prototype.hasData=function(){return!!(this.tickPositions||[]).length},w.prototype.setTickPositions=function(){if(!this.dataClasses)return v.prototype.setTickPositions.call(this)},w.prototype.initStops=function(){var S=this;S.stops=S.options.stops||[[0,S.options.minColor],[1,S.options.maxColor]],S.stops.forEach(function(x){x.color=M(x[1])})},w.prototype.setOptions=function(S){v.prototype.setOptions.call(this,S),this.options.crosshair=this.options.marker},w.prototype.setAxisSize=function(){var S,x,c,g,r=this,a=r.legendItem&&r.legendItem.symbol,t=r.chart,i=t.options.legend||{};a?(this.left=S=a.attr("x"),this.top=x=a.attr("y"),this.width=c=a.attr("width"),this.height=g=a.attr("height"),this.right=t.chartWidth-S-c,this.bottom=t.chartHeight-x-g,this.len=this.horiz?c:g,this.pos=this.horiz?S:x):this.len=(this.horiz?i.symbolWidth:i.symbolHeight)||w.defaultLegendLength},w.prototype.normalizedValue=function(S){var x=this;return x.logarithmic&&(S=x.logarithmic.log2lin(S)),1-(x.max-S)/(x.max-x.min||1)},w.prototype.toColor=function(S,x){var c,g,r,a,t,i,o=this,e=o.dataClasses,s=o.stops;if(e){for(i=e.length;i--;)if(g=(t=e[i]).from,r=t.to,(g===void 0||S>=g)&&(r===void 0||S<=r)){a=t.color,x&&(x.dataClass=i,x.colorIndex=t.colorIndex);break}}else{for(c=o.normalizedValue(S),i=s.length;i--&&!(c>s[i][0]););g=s[i]||s[i+1],c=1-((r=s[i+1]||g)[0]-c)/(r[0]-g[0]||1),a=g.color.tweenTo(r.color,c)}return a},w.prototype.getOffset=function(){var S=this,x=S.legendItem&&S.legendItem.group,c=S.chart.axisOffset[S.side];if(x){S.axisParent=x,v.prototype.getOffset.call(this);var g=this.chart.legend;g.allItems.forEach(function(r){r instanceof w&&r.drawLegendSymbol(g,r)}),g.render(),this.chart.getMargins(!0),S.added||(S.added=!0,S.labelLeft=0,S.labelRight=S.width),S.chart.axisOffset[S.side]=c}},w.prototype.setLegendColor=function(){var S=this,x=S.horiz,c=S.reversed,g=c?1:0,r=c?0:1,a=x?[g,0,r,0]:[0,r,0,g];S.legendColor={linearGradient:{x1:a[0],y1:a[1],x2:a[2],y2:a[3]},stops:S.stops}},w.prototype.drawLegendSymbol=function(S,x){var c=x.legendItem||{},g=S.padding,r=S.options,a=m(r.itemDistance,10),t=this.horiz,i=m(r.symbolWidth,t?w.defaultLegendLength:12),o=m(r.symbolHeight,t?12:w.defaultLegendLength),e=m(r.labelPadding,t?16:30);this.setLegendColor(),c.symbol||(c.symbol=this.chart.renderer.rect(0,S.baseline-11,i,o).attr({zIndex:1}).add(c.group)),c.labelWidth=i+g+(t?a:this.options.labels.x+this.maxLabelLength),c.labelHeight=o+g+(t?e:0)},w.prototype.setState=function(S){this.series.forEach(function(x){x.setState(S)})},w.prototype.setVisible=function(){},w.prototype.getSeriesExtremes=function(){var S,x,c,g,r,a,t,i,o=this.series,e=o.length;for(this.dataMin=1/0,this.dataMax=-1/0;e--;){if(x=(a=o[e]).colorKey=m(a.options.colorKey,a.colorKey,a.pointValKey,a.zoneAxis,"y"),g=a.pointArrayMap,r=a[x+"Min"]&&a[x+"Max"],a[x+"Data"])S=a[x+"Data"];else if(g){if(S=[],c=g.indexOf(x),t=a.yData,c>=0&&t)for(i=0;i<t.length;i++)S.push(m(t[i][c],t[i]))}else S=a.yData;if(r)a.minColorValue=a[x+"Min"],a.maxColorValue=a[x+"Max"];else{var s=P.prototype.getExtremes.call(a,S);a.minColorValue=s.dataMin,a.maxColorValue=s.dataMax}a.minColorValue!==void 0&&(this.dataMin=Math.min(this.dataMin,a.minColorValue),this.dataMax=Math.max(this.dataMax,a.maxColorValue)),r||P.prototype.applyExtremes.call(a)}},w.prototype.drawCrosshair=function(S,x){var c,g=this,r=g.legendItem||{},a=x&&x.plotX,t=x&&x.plotY,i=g.pos,o=g.len;x&&((c=g.toPixels(x.getNestedProperty(x.series.colorKey)))<i?c=i-2:c>i+o&&(c=i+o+2),x.plotX=c,x.plotY=g.len-c,v.prototype.drawCrosshair.call(this,S,x),x.plotX=a,x.plotY=t,g.cross&&!g.cross.addedToColorAxis&&r.group&&(g.cross.addClass("highcharts-coloraxis-marker").add(r.group),g.cross.addedToColorAxis=!0,g.chart.styledMode||typeof g.crosshair!="object"||g.cross.attr({fill:g.crosshair.color})))},w.prototype.getPlotLinePath=function(S){var x=this,c=x.left,g=S.translatedValue,r=x.top;return h(g)?x.horiz?[["M",g-4,r-6],["L",g+4,r-6],["L",g,r],["Z"]]:[["M",c,g],["L",c-6,g+6],["L",c-6,g-6],["Z"]]:v.prototype.getPlotLinePath.call(this,S)},w.prototype.update=function(S,x){var c=this,g=c.chart.legend;this.series.forEach(function(r){r.isDirtyData=!0}),(S.dataClasses&&g.allItems||c.dataClasses)&&c.destroyItems(),v.prototype.update.call(this,S,x),c.legendItem&&c.legendItem.label&&(c.setLegendColor(),g.colorizeItem(this,!0))},w.prototype.destroyItems=function(){var S=this,x=S.chart,c=S.legendItem||{};if(c.label)x.legend.destroyItem(S);else if(c.labels)for(var g=0,r=c.labels;g<r.length;g++){var a=r[g];x.legend.destroyItem(a)}x.isDirtyLegend=!0},w.prototype.destroy=function(){this.chart.isDirtyLegend=!0,this.destroyItems(),v.prototype.destroy.apply(this,[].slice.call(arguments))},w.prototype.remove=function(S){this.destroyItems(),v.prototype.remove.call(this,S)},w.prototype.getDataClassLegendSymbols=function(){var S,x=this,c=x.chart,g=x.legendItem&&x.legendItem.labels||[],r=c.options.legend,a=m(r.valueDecimals,-1),t=m(r.valueSuffix,""),i=function(o){return x.series.reduce(function(e,s){return e.push.apply(e,s.points.filter(function(n){return n.dataClass===o})),e},[])};return g.length||x.dataClasses.forEach(function(o,e){var s=o.from,n=o.to,l=c.numberFormatter,b=!0;S="",s===void 0?S="< ":n===void 0&&(S="> "),s!==void 0&&(S+=l(s,a)+t),s!==void 0&&n!==void 0&&(S+=" - "),n!==void 0&&(S+=l(n,a)+t),g.push(y({chart:c,name:S,options:{},drawLegendSymbol:Z.drawRectangle,visible:!0,isDataClass:!0,setState:function(k){for(var D=0,p=i(e);D<p.length;D++)p[D].setState(k)},setVisible:function(){this.visible=b=x.visible=!b;for(var k=0,D=i(e);k<D.length;k++)D[k].setVisible(b);c.legend.colorizeItem(this,b)}},o))}),g},w.defaultColorAxisOptions=V,w.defaultLegendLength=200,w.keepProps=["legendItem"],w}(W);return Array.prototype.push.apply(W.keepProps,u.keepProps),u}),it(B,"Maps/MapNavigationDefaults.js",[B["Core/Defaults.js"],B["Core/Utilities.js"]],function(W,R){var H={buttonOptions:{alignTo:"plotBox",align:"left",verticalAlign:"top",x:0,width:18,height:18,padding:5,style:{fontSize:"15px",fontWeight:"bold"},theme:{"stroke-width":1,"text-align":"center"}},buttons:{zoomIn:{onclick:function(){this.mapZoom(.5)},text:"+",y:0},zoomOut:{onclick:function(){this.mapZoom(2)},text:"-",y:28}},mouseWheelSensitivity:1.1};return(0,R.extend)(W.defaultOptions.lang,{zoomIn:"Zoom in",zoomOut:"Zoom out"}),W.defaultOptions.mapNavigation=H,H}),it(B,"Maps/MapNavigation.js",[B["Core/Chart/Chart.js"],B["Core/Globals.js"],B["Core/Utilities.js"]],function(W,R,H){var V=R.doc,$=H.addEvent,Z=H.extend,U=H.isNumber,z=H.merge,I=H.objectEach,E=H.pick;function M(y){y&&(y.preventDefault&&y.preventDefault(),y.stopPropagation&&y.stopPropagation(),y.cancelBubble=!0)}function P(y){this.navButtons=[],this.init(y)}P.prototype.init=function(y){this.chart=y},P.prototype.update=function(y){var h,f=this,m=this.chart,u=m.options.mapNavigation,v=function(S){this.handler.call(m,S),M(S)},w=f.navButtons;for(y&&(u=m.options.mapNavigation=z(m.options.mapNavigation,y));w.length;)w.pop().destroy();E(u.enableButtons,u.enabled)&&!m.renderer.forExport&&(f.navButtonsGroup||(f.navButtonsGroup=m.renderer.g().attr({zIndex:4}).add()),I(u.buttons,function(S,x){S=z(u.buttonOptions,S),!m.styledMode&&S.theme&&((h=S.theme).style=z(S.theme.style,S.style));var c=m.renderer.button(S.text||"",0,0,v,h,void 0,void 0,void 0,x==="zoomIn"?"topbutton":"bottombutton").addClass("highcharts-map-navigation highcharts-"+{zoomIn:"zoom-in",zoomOut:"zoom-out"}[x]).attr({width:S.width,height:S.height,title:m.options.lang[x],padding:S.padding,zIndex:5}).add(f.navButtonsGroup);if(c.handler=S.onclick,$(c.element,"dblclick",M),w.push(c),Z(S,{width:c.width,height:2*c.height}),m.hasLoaded)c.align(S,!1,S.alignTo);else var g=$(m,"load",function(){c.element&&c.align(S,!1,S.alignTo),g()})}),m.hasLoaded||$(m,"render",function(){var S,x,c=m.exportingGroup&&m.exportingGroup.getBBox();if(c){var g=f.navButtonsGroup.getBBox();if(S=c,!((x=g).x>=S.x+S.width||x.x+x.width<=S.x||x.y>=S.y+S.height||x.y+x.height<=S.y)){var r=-g.y-g.height+c.y-5,a=c.y+c.height-g.y+5,t=u.buttonOptions&&u.buttonOptions.verticalAlign;f.navButtonsGroup.attr({translateY:t==="bottom"?r:a})}}})),this.updateEvents(u)},P.prototype.updateEvents=function(y){var h=this.chart;E(y.enableDoubleClickZoom,y.enabled)||y.enableDoubleClickZoomTo?this.unbindDblClick=this.unbindDblClick||$(h.container,"dblclick",function(f){h.pointer.onContainerDblClick(f)}):this.unbindDblClick&&(this.unbindDblClick=this.unbindDblClick()),E(y.enableMouseWheelZoom,y.enabled)?this.unbindMouseWheel=this.unbindMouseWheel||$(h.container,V.onwheel!==void 0?"wheel":V.onmousewheel!==void 0?"mousewheel":"DOMMouseScroll",function(f){return h.pointer.inClass(f.target,"highcharts-no-mousewheel")||(h.pointer.onContainerMouseWheel(f),M(f)),!1}):this.unbindMouseWheel&&(this.unbindMouseWheel=this.unbindMouseWheel())},Z(W.prototype,{fitToBox:function(y,h){return[["x","width"],["y","height"]].forEach(function(f){var m=f[0],u=f[1];y[m]+y[u]>h[m]+h[u]&&(y[u]>h[u]?(y[u]=h[u],y[m]=h[m]):y[m]=h[m]+h[u]-y[u]),y[u]>h[u]&&(y[u]=h[u]),y[m]<h[m]&&(y[m]=h[m])}),y},mapZoom:function(y,h,f,m,u){this.mapView&&(U(y)&&(y=Math.log(y)/Math.log(.5)),this.mapView.zoomBy(y,U(h)&&U(f)?this.mapView.projection.inverse([h,f]):void 0,U(m)&&U(u)?[m,u]:void 0))}}),$(W,"beforeRender",function(){this.mapNavigation=new P(this),this.mapNavigation.update()}),R.MapNavigation=P}),it(B,"Maps/MapPointer.js",[B["Core/Pointer.js"],B["Core/Utilities.js"]],function(W,R){var H,V=R.defined,$=R.extend,Z=R.pick,U=R.wrap,z=W.prototype.normalize,I=0;$(W.prototype,{normalize:function(E,M){var P=this.chart;if(E=z.call(this,E,M),P&&P.mapView){var y=P.mapView.pixelsToLonLat({x:E.chartX-P.plotLeft,y:E.chartY-P.plotTop});y&&$(E,y)}return E},onContainerDblClick:function(E){var M=this.chart;E=this.normalize(E),M.options.mapNavigation.enableDoubleClickZoomTo?M.pointer.inClass(E.target,"highcharts-tracker")&&M.hoverPoint&&M.hoverPoint.zoomTo():M.isInsidePlot(E.chartX-M.plotLeft,E.chartY-M.plotTop)&&M.mapZoom(.5,void 0,void 0,E.chartX,E.chartY)},onContainerMouseWheel:function(E){var M=this.chart;E=this.normalize(E);var P=V(E.wheelDelta)&&-E.wheelDelta/120||E.deltaY||E.detail;Math.abs(P)>=1&&(I+=Math.abs(P),H&&clearTimeout(H),H=setTimeout(function(){I=0},50)),I<10&&M.isInsidePlot(E.chartX-M.plotLeft,E.chartY-M.plotTop)&&M.mapView&&M.mapView.zoomBy((M.options.mapNavigation.mouseWheelSensitivity-1)*-P,void 0,[E.chartX,E.chartY],!(Math.abs(P)<1)&&void 0)}}),U(W.prototype,"zoomOption",function(E){var M=this.chart.options.mapNavigation;Z(M.enableTouchZoom,M.enabled)&&(this.chart.options.chart.zooming.pinchType="xy"),E.apply(this,[].slice.call(arguments,1))}),U(W.prototype,"pinchTranslate",function(E,M,P,y,h,f,m){var u;E.call(this,M,P,y,h,f,m),this.chart.options.chart.type==="map"&&this.hasZoom&&(u=y.scaleX>y.scaleY,this.pinchTranslateDirection(!u,M,P,y,h,f,m,u?y.scaleX:y.scaleY))})}),it(B,"Series/ColorMapComposition.js",[B["Core/Series/SeriesRegistry.js"],B["Core/Utilities.js"]],function(W,R){var H,V=W.seriesTypes.column.prototype,$=R.addEvent,Z=R.defined;return function(U){var z=[];function I(E){var M=this;M.moveToTopOnHover&&M.graphic&&M.graphic.attr({zIndex:E&&E.state==="hover"?1:0})}U.pointMembers={dataLabelOnNull:!0,moveToTopOnHover:!0,isValid:function(){return this.value!==null&&this.value!==1/0&&this.value!==-1/0&&(this.value===void 0||!isNaN(this.value))}},U.seriesMembers={colorKey:"value",axisTypes:["xAxis","yAxis","colorAxis"],parallelArrays:["x","y","value"],pointArrayMap:["value"],trackerGroups:["group","markerGroup","dataLabelsGroup"],colorAttribs:function(E){var M={};return!Z(E.color)||E.state&&E.state!=="normal"||(M[this.colorProp||"fill"]=E.color),M},pointAttribs:V.pointAttribs},U.compose=function(E){var M=E.prototype.pointClass;return z.indexOf(M)===-1&&(z.push(M),$(M,"afterSetState",I)),E}}(H||(H={})),H}),it(B,"Maps/MapSymbols.js",[B["Core/Renderer/SVG/SVGRenderer.js"]],function(W){var R=W.prototype.symbols;function H(V,$,Z,U,z,I,E,M){return[["M",V+z,$],["L",V+Z-I,$],["C",V+Z-I/2,$,V+Z,$+I/2,V+Z,$+I],["L",V+Z,$+U-E],["C",V+Z,$+U-E/2,V+Z-E/2,$+U,V+Z-E,$+U],["L",V+M,$+U],["C",V+M/2,$+U,V,$+U-M/2,V,$+U-M],["L",V,$+z],["C",V,$+z/2,V+z/2,$,V+z,$],["Z"]]}return R.bottombutton=function(V,$,Z,U,z){var I=z&&z.r||0;return H(V-1,$-1,Z,U,0,0,I,I)},R.topbutton=function(V,$,Z,U,z){var I=z&&z.r||0;return H(V-1,$-1,Z,U,I,I,0,0)},R}),it(B,"Core/Chart/MapChart.js",[B["Core/Chart/Chart.js"],B["Core/Defaults.js"],B["Core/Renderer/SVG/SVGRenderer.js"],B["Core/Utilities.js"]],function(W,R,H,V){var $,Z=this&&this.__extends||($=function(M,P){return $=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(y,h){y.__proto__=h}||function(y,h){for(var f in h)h.hasOwnProperty(f)&&(y[f]=h[f])},$(M,P)},function(M,P){function y(){this.constructor=M}$(M,P),M.prototype=P===null?Object.create(P):(y.prototype=P.prototype,new y)}),U=R.getOptions,z=V.merge,I=V.pick,E=function(M){function P(){return M!==null&&M.apply(this,arguments)||this}return Z(P,M),P.prototype.init=function(y,h){var f=U().credits,m=z({chart:{panning:{enabled:!0,type:"xy"},type:"map"},credits:{mapText:I(f.mapText,' © <a href="{geojson.copyrightUrl}">{geojson.copyrightShort}</a>'),mapTextFull:I(f.mapTextFull,"{geojson.copyright}")},mapView:{},tooltip:{followTouchMove:!1}},y);M.prototype.init.call(this,m,h)},P}(W);return function(M){M.maps={},M.mapChart=function(P,y,h){return new M(P,y,h)},M.splitPath=function(P){var y;return y=typeof P=="string"?(P=P.replace(/([A-Za-z])/g," $1 ").replace(/^\s*/,"").replace(/\s*$/,"")).split(/[ ,;]+/).map(function(h){return/[A-za-z]/.test(h)?h:parseFloat(h)}):P,H.prototype.pathToSegments(y)}}(E||(E={})),E}),it(B,"Maps/MapUtilities.js",[],function(){return{boundsFromPath:function(W){var R,H=-Number.MAX_VALUE,V=Number.MAX_VALUE,$=-Number.MAX_VALUE,Z=Number.MAX_VALUE;if(W.forEach(function(U){var z=U[U.length-2],I=U[U.length-1];typeof z=="number"&&typeof I=="number"&&(V=Math.min(V,z),H=Math.max(H,z),Z=Math.min(Z,I),$=Math.max($,I),R=!0)}),R)return{x1:V,y1:Z,x2:H,y2:$}},pointInPolygon:function(W,R){var H,V,$=!1,Z=W.x,U=W.y;for(H=0,V=R.length-1;H<R.length;V=H++)R[H][1]>U!=R[V][1]>U&&Z<(R[V][0]-R[H][0])*(U-R[H][1])/(R[V][1]-R[H][1])+R[H][0]&&($=!$);return $}}}),it(B,"Series/Map/MapPoint.js",[B["Series/ColorMapComposition.js"],B["Maps/MapUtilities.js"],B["Core/Series/SeriesRegistry.js"],B["Core/Utilities.js"]],function(W,R,H,V){var $,Z=this&&this.__extends||($=function(y,h){return $=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,m){f.__proto__=m}||function(f,m){for(var u in m)m.hasOwnProperty(u)&&(f[u]=m[u])},$(y,h)},function(y,h){function f(){this.constructor=y}$(y,h),y.prototype=h===null?Object.create(h):(f.prototype=h.prototype,new f)}),U=R.boundsFromPath,z=H.seriesTypes.scatter,I=V.extend,E=V.isNumber,M=V.pick,P=function(y){function h(){var f=y!==null&&y.apply(this,arguments)||this;return f.options=void 0,f.path=void 0,f.series=void 0,f}return Z(h,y),h.getProjectedPath=function(f,m){return f.projectedPath||(m&&f.geometry?(m.hasCoordinates=!0,f.projectedPath=m.path(f.geometry)):f.projectedPath=f.path),f.projectedPath||[]},h.prototype.applyOptions=function(f,m){var u=this.series,v=y.prototype.applyOptions.call(this,f,m),w=u.joinBy;if(u.mapData&&u.mapMap){var S=w[1],x=y.prototype.getNestedProperty.call(v,S),c=x!==void 0&&u.mapMap[x];c?I(v,c):u.pointArrayMap.indexOf("value")!==-1&&(v.value=v.value||null)}return v},h.prototype.getProjectedBounds=function(f){var m=h.getProjectedPath(this,f),u=U(m),v=this.properties;if(u){var w=v&&v["hc-middle-x"],S=v&&v["hc-middle-y"];u.midX=u.x1+(u.x2-u.x1)*M(this.middleX,E(w)?w:.5);var x=M(this.middleY,E(S)?S:.5);return this.geometry||(x=1-x),u.midY=u.y2-(u.y2-u.y1)*x,u}},h.prototype.onMouseOver=function(f){V.clearTimeout(this.colorInterval),!this.isNull&&this.visible||this.series.options.nullInteraction?y.prototype.onMouseOver.call(this,f):this.series.onMouseOut(f)},h.prototype.setVisible=function(f){var m=f?"show":"hide";this.visible=this.options.visible=!!f,this.dataLabel&&this.dataLabel[m](),this.graphic&&this.graphic.attr(this.series.pointAttribs(this))},h.prototype.zoomTo=function(){var f=this,m=f.series.chart,u=m.mapView,v=f.bounds;if(u&&v){var w=E(f.insetIndex)&&u.insets[f.insetIndex];if(w){var S=w.projectedUnitsToPixels({x:v.x1,y:v.y1}),x=w.projectedUnitsToPixels({x:v.x2,y:v.y2}),c=u.pixelsToProjectedUnits({x:S.x,y:S.y}),g=u.pixelsToProjectedUnits({x:x.x,y:x.y});v={x1:c.x,y1:c.y,x2:g.x,y2:g.y}}u.fitToBounds(v,void 0,!1),f.series.isDirty=!0,m.redraw()}},h}(z.prototype.pointClass);return I(P.prototype,{dataLabelOnNull:W.pointMembers.dataLabelOnNull,moveToTopOnHover:W.pointMembers.moveToTopOnHover,isValid:W.pointMembers.isValid}),P}),it(B,"Maps/MapViewOptionsDefault.js",[],function(){return{center:[0,0],fitToGeometry:void 0,maxZoom:void 0,padding:0,projection:{name:void 0,parallels:void 0,rotation:void 0},zoom:void 0}}),it(B,"Maps/MapViewInsetsOptionsDefault.js",[],function(){return{borderColor:"#cccccc",borderWidth:1,center:[0,0],padding:"10%",relativeTo:"mapBoundingBox",units:"percent"}}),it(B,"Extensions/GeoJSON.js",[B["Core/Chart/Chart.js"],B["Core/FormatUtilities.js"],B["Core/Globals.js"],B["Core/Utilities.js"]],function(W,R,H,V){var $=R.format,Z=H.win,U=V.error,z=V.extend,I=V.merge,E=V.wrap;function M(y,h){h||(h=Object.keys(y.objects)[0]);var f=y.objects[h];if(f["hc-decoded-geojson"])return f["hc-decoded-geojson"];var m=y.arcs;if(y.transform){var u=y.transform,v=u.scale,w=u.translate;m=y.arcs.map(function(g){var r=0,a=0;return g.map(function(t){return(t=t.slice())[0]=(r+=t[0])*v[0]+w[0],t[1]=(a+=t[1])*v[1]+w[1],t})})}var S=function(g){return typeof g[0]=="number"?g.reduce(function(r,a,t){var i=a<0?m[~a]:m[a];return a<0?(i=i.slice(0,t===0?i.length:i.length-1)).reverse():t&&(i=i.slice(1)),r.concat(i)},[]):g.map(S)},x=f.geometries.map(function(g){return{type:"Feature",properties:g.properties,geometry:{type:g.type,coordinates:g.coordinates||S(g.arcs)}}}),c={type:"FeatureCollection",copyright:y.copyright,copyrightShort:y.copyrightShort,copyrightUrl:y.copyrightUrl,features:x,"hc-recommended-mapview":f["hc-recommended-mapview"],bbox:y.bbox,title:y.title};return f["hc-decoded-geojson"]=c,c}function P(y,h,f){h===void 0&&(h="map");var m=[],u=y.type==="Topology"?M(y):y;return u.features.forEach(function(v){var w,S=v.geometry||{},x=S.type,c=S.coordinates,g=v.properties;if((h!=="map"&&h!=="mapbubble"||x!=="Polygon"&&x!=="MultiPolygon")&&(h!=="mapline"||x!=="LineString"&&x!=="MultiLineString")?h==="mappoint"&&x==="Point"&&c.length&&(w={geometry:{coordinates:c,type:x}}):c.length&&(w={geometry:{coordinates:c,type:x}}),w){var r=g&&(g.name||g.NAME),a=g&&g.lon,t=g&&g.lat;m.push(z(w,{lat:typeof t=="number"?t:void 0,lon:typeof a=="number"?a:void 0,name:typeof r=="string"?r:void 0,properties:g}))}}),f&&u.copyrightShort&&(f.chart.mapCredits=$(f.chart.options.credits.mapText,{geojson:u}),f.chart.mapCreditsFull=$(f.chart.options.credits.mapTextFull,{geojson:u})),m}return W.prototype.transformFromLatLon=function(y,h){var f=this.options.chart.proj4||Z.proj4;if(f){var m=h.jsonmarginX,u=m===void 0?0:m,v=h.jsonmarginY,w=v===void 0?0:v,S=h.jsonres,x=S===void 0?1:S,c=h.scale,g=c===void 0?1:c,r=h.xoffset,a=r===void 0?0:r,t=h.xpan,i=t===void 0?0:t,o=h.yoffset,e=o===void 0?0:o,s=h.ypan,n=s===void 0?0:s,l=f(h.crs,[y.lon,y.lat]),b=h.cosAngle||h.rotation&&Math.cos(h.rotation),k=h.sinAngle||h.rotation&&Math.sin(h.rotation),D=h.rotation?[l[0]*b+l[1]*k,-l[0]*k+l[1]*b]:l;return{x:((D[0]-a)*g+i)*x+u,y:-(((e-D[1])*g+n)*x-w)}}U(21,!1,this)},W.prototype.transformToLatLon=function(y,h){var f=this.options.chart.proj4||Z.proj4;if(f){if(y.y!==null){var m=h.jsonmarginX,u=m===void 0?0:m,v=h.jsonmarginY,w=v===void 0?0:v,S=h.jsonres,x=S===void 0?1:S,c=h.scale,g=c===void 0?1:c,r=h.xoffset,a=r===void 0?0:r,t=h.xpan,i=t===void 0?0:t,o=h.yoffset,e=o===void 0?0:o,s=h.ypan,n=s===void 0?0:s,l={x:((y.x-u)/x-i)/g+a,y:((y.y-w)/x+n)/g+e},b=h.cosAngle||h.rotation&&Math.cos(h.rotation),k=h.sinAngle||h.rotation&&Math.sin(h.rotation),D=f(h.crs,"WGS84",h.rotation?{x:l.x*b+l.y*-k,y:l.x*k+l.y*b}:l);return{lat:D.y,lon:D.x}}}else U(21,!1,this)},W.prototype.fromPointToLatLon=function(y){return this.mapView&&this.mapView.projectedUnitsToLonLat(y)},W.prototype.fromLatLonToPoint=function(y){return this.mapView&&this.mapView.lonLatToProjectedUnits(y)},E(W.prototype,"addCredits",function(y,h){h=I(!0,this.options.credits,h),this.mapCredits&&(h.href=null),y.call(this,h),this.credits&&this.mapCreditsFull&&this.credits.attr({title:this.mapCreditsFull})}),H.geojson=P,H.topo2geo=M,{geojson:P,topo2geo:M}}),it(B,"Core/Geometry/PolygonClip.js",[],function(){var W,R=function(V,$,Z){return($[0]-V[0])*(Z[1]-V[1])>($[1]-V[1])*(Z[0]-V[0])},H=function(V,$,Z,U){var z=[V[0]-$[0],V[1]-$[1]],I=[Z[0]-U[0],Z[1]-U[1]],E=V[0]*$[1]-V[1]*$[0],M=Z[0]*U[1]-Z[1]*U[0],P=1/(z[0]*I[1]-z[1]*I[0]),y=[(E*I[0]-M*z[0])*P,(E*I[1]-M*z[1])*P];return y.isIntersection=!0,y};return function(V){V.clipLineString=function($,Z){for(var U=[],z=V.clipPolygon($,Z,!1),I=1;I<z.length;I++)z[I].isIntersection&&z[I-1].isIntersection&&(U.push(z.splice(0,I)),I=0),I===z.length-1&&U.push(z);return U},V.clipPolygon=function($,Z,U){U===void 0&&(U=!0);for(var z,I,E,M=Z[Z.length-1],P=$,y=0;y<Z.length;y++){var h=P;z=Z[y],P=[],I=U?h[h.length-1]:h[0];for(var f=0;f<h.length;f++)E=h[f],R(M,z,E)?(R(M,z,I)||P.push(H(M,z,I,E)),P.push(E)):R(M,z,I)&&P.push(H(M,z,I,E)),I=E;M=z}return P}}(W||(W={})),W}),it(B,"Maps/Projections/LambertConformalConic.js",[],function(){var W=Math.sign||function(U){return U===0?0:U>0?1:-1},R=63.78137,H=Math.PI/180,V=Math.PI/2,$=1e-6,Z=function(U){return Math.tan((V+U)/2)};return function(){function U(z){var I,E=(z.parallels||[]).map(function(f){return f*H}),M=E[0]||0,P=(I=E[1])!==null&&I!==void 0?I:M,y=Math.cos(M);typeof z.projectedBounds=="object"&&(this.projectedBounds=z.projectedBounds);var h=M===P?Math.sin(M):Math.log(y/Math.cos(P))/Math.log(Z(P)/Z(M));Math.abs(h)<1e-10&&(h=1e-10*(W(h)||1)),this.n=h,this.c=y*Math.pow(Z(M),h)/h}return U.prototype.forward=function(z){var I=z[0]*H,E=this,M=E.c,P=E.n,y=E.projectedBounds,h=z[1]*H;M>0?h<-V+$&&(h=-V+$):h>V-$&&(h=V-$);var f=M/Math.pow(Z(h),P),m=f*Math.sin(P*I)*R,u=(M-f*Math.cos(P*I))*R,v=[m,u];return y&&(m<y.x1||m>y.x2||u<y.y1||u>y.y2)&&(v.outside=!0),v},U.prototype.inverse=function(z){var I=z[0]/R,E=z[1]/R,M=this.c,P=this.n,y=M-E,h=W(P)*Math.sqrt(I*I+y*y),f=Math.atan2(I,Math.abs(y))*W(y);return y*P<0&&(f-=Math.PI*W(I)*W(y)),[f/P/H,(2*Math.atan(Math.pow(M/h,1/P))-V)/H]},U}()}),it(B,"Maps/Projections/EqualEarth.js",[],function(){var W=1.340264,R=-.081106,H=893e-6,V=.003796,$=Math.sqrt(3)/2,Z=74.03120656864502;return function(){function U(){this.bounds={x1:-200.37508342789243,x2:200.37508342789243,y1:-97.52595454902263,y2:97.52595454902263}}return U.prototype.forward=function(z){var I=Math.PI/180,E=Math.asin($*Math.sin(z[1]*I)),M=E*E,P=M*M*M;return[z[0]*I*Math.cos(E)*Z/($*(W+3*R*M+P*(7*H+9*V*M))),E*Z*(W+R*M+P*(H+V*M))]},U.prototype.inverse=function(z){var I,E,M,P,y=z[0]/Z,h=z[1]/Z,f=180/Math.PI,m=h;for(P=0;P<12&&(m-=M=(m*(W+R*(I=m*m)+(E=I*I*I)*(H+V*I))-h)/(W+3*R*I+E*(7*H+9*V*I)),!(Math.abs(M)<1e-9));++P);return[f*$*y*(W+3*R*(I=m*m)+(E=I*I*I)*(7*H+9*V*I))/Math.cos(m),f*Math.asin(Math.sin(m)/$)]},U}()}),it(B,"Maps/Projections/Miller.js",[],function(){var W=Math.PI/4,R=Math.PI/180,H=63.78137;return function(){function V(){this.bounds={x1:-200.37508342789243,x2:200.37508342789243,y1:-146.91480769173063,y2:146.91480769173063}}return V.prototype.forward=function($){return[$[0]*R*H,79.7267125*Math.log(Math.tan(W+.4*$[1]*R))]},V.prototype.inverse=function($){return[$[0]/H/R,2.5*(Math.atan(Math.exp($[1]/H*.8))-W)/R]},V}()}),it(B,"Maps/Projections/Orthographic.js",[],function(){var W=Math.PI/180,R=63.78460826781007;return function(){function H(){this.antimeridianCutting=!1,this.bounds={x1:-R,x2:R,y1:-R,y2:R}}return H.prototype.forward=function(V){var $=V[0],Z=V[1]*W,U=[Math.cos(Z)*Math.sin($*W)*R,Math.sin(Z)*R];return($<-90||$>90)&&(U.outside=!0),U},H.prototype.inverse=function(V){var $=V[0]/R,Z=V[1]/R,U=Math.sqrt($*$+Z*Z),z=Math.asin(U),I=Math.sin(z),E=Math.cos(z);return[Math.atan2($*I,U*E)/W,Math.asin(U&&Z*I/U)/W]},H}()}),it(B,"Maps/Projections/WebMercator.js",[],function(){var W=85.0511287798,R=63.78137,H=Math.PI/180;return function(){function V(){this.bounds={x1:-200.37508342789243,x2:200.37508342789243,y1:-200.3750834278071,y2:200.3750834278071},this.maxLatitude=W}return V.prototype.forward=function($){var Z=Math.sin($[1]*H),U=[R*$[0]*H,R*Math.log((1+Z)/(1-Z))/2];return Math.abs($[1])>W&&(U.outside=!0),U},V.prototype.inverse=function($){return[$[0]/(R*H),(2*Math.atan(Math.exp($[1]/R))-Math.PI/2)/H]},V}()}),it(B,"Maps/Projections/ProjectionRegistry.js",[B["Maps/Projections/LambertConformalConic.js"],B["Maps/Projections/EqualEarth.js"],B["Maps/Projections/Miller.js"],B["Maps/Projections/Orthographic.js"],B["Maps/Projections/WebMercator.js"]],function(W,R,H,V,$){return{EqualEarth:R,LambertConformalConic:W,Miller:H,Orthographic:V,WebMercator:$}}),it(B,"Maps/Projection.js",[B["Core/Geometry/PolygonClip.js"],B["Maps/Projections/ProjectionRegistry.js"],B["Core/Utilities.js"]],function(W,R,H){var V=this&&this.__spreadArray||function(P,y,h){if(h||arguments.length===2)for(var f,m=0,u=y.length;m<u;m++)!f&&m in y||(f||(f=Array.prototype.slice.call(y,0,m)),f[m]=y[m]);return P.concat(f||Array.prototype.slice.call(y))},$=W.clipLineString,Z=W.clipPolygon,U=H.clamp,z=H.erase,I=2*Math.PI/360,E=1e-6,M=function(P){return P<-180&&(P+=360),P>180&&(P-=360),P};return function(){function P(y){y===void 0&&(y={}),this.hasCoordinates=!1,this.hasGeoProjection=!1,this.maxLatitude=90,this.options=y;var h=y.name,f=y.projectedBounds,m=y.rotation;this.rotator=m?this.getRotator(m):void 0;var u=h?P.registry[h]:void 0;u&&(this.def=new u(y));var v=this.def,w=this.rotator;v&&(this.maxLatitude=v.maxLatitude||90,this.hasGeoProjection=!0),w&&v?(this.forward=function(S){return v.forward(w.forward(S))},this.inverse=function(S){return w.inverse(v.inverse(S))}):v?(this.forward=function(S){return v.forward(S)},this.inverse=function(S){return v.inverse(S)}):w&&(this.forward=w.forward,this.inverse=w.inverse),this.bounds=f==="world"?v&&v.bounds:f}return P.add=function(y,h){P.registry[y]=h},P.greatCircle=function(y,h,f){var m=Math.atan2,u=Math.cos,v=Math.sin,w=Math.sqrt,S=y[1]*I,x=y[0]*I,c=h[1]*I,g=h[0]*I,r=c-S,a=g-x,t=v(r/2)*v(r/2)+u(S)*u(c)*v(a/2)*v(a/2),i=2*m(w(t),w(1-t)),o=6371e3*i,e=Math.round(o/5e5),s=[];if(f&&s.push(y),e>1)for(var n=1/e,l=n;l<.999;l+=n){var b=v((1-l)*i)/v(i),k=v(l*i)/v(i),D=b*u(S)*u(x)+k*u(c)*u(g),p=b*u(S)*v(x)+k*u(c)*v(g),C=m(b*v(S)+k*v(c),w(D*D+p*p)),A=m(p,D);s.push([A/I,C/I])}return f&&s.push(h),s},P.insertGreatCircles=function(y){for(var h=y.length-1;h--;)if(Math.max(Math.abs(y[h][0]-y[h+1][0]),Math.abs(y[h][1]-y[h+1][1]))>10){var f=P.greatCircle(y[h],y[h+1]);f.length&&y.splice.apply(y,V([h+1,0],f,!1))}},P.toString=function(y){var h=y||{},f=h.name,m=h.rotation;return[f,m&&m.join(",")].join(";")},P.prototype.lineIntersectsBounds=function(y){var h,f=this.bounds||{},m=f.x1,u=f.x2,v=f.y1,w=f.y2,S=function(c,g,r){var a=c[0],t=c[1],i=g?0:1;if(typeof r=="number"&&a[g]>=r!=t[g]>=r){var o=(r-a[g])/(t[g]-a[g]),e=a[i]+o*(t[i]-a[i]);return g?[e,r]:[r,e]}},x=y[0];return((h=S(y,0,m))||(h=S(y,0,u)))&&(x=h,y[1]=h),((h=S(y,1,v))||(h=S(y,1,w)))&&(x=h),x},P.prototype.getRotator=function(y){var h=y[0]*I,f=(y[1]||0)*I,m=(y[2]||0)*I,u=Math.cos(f),v=Math.sin(f),w=Math.cos(m),S=Math.sin(m);if(h!==0||f!==0||m!==0)return{forward:function(x){var c=x[0]*I+h,g=x[1]*I,r=Math.cos(g),a=Math.cos(c)*r,t=Math.sin(c)*r,i=Math.sin(g),o=i*u+a*v;return[Math.atan2(t*w-o*S,a*u-i*v)/I,Math.asin(o*w+t*S)/I]},inverse:function(x){var c=x[0]*I,g=x[1]*I,r=Math.cos(g),a=Math.cos(c)*r,t=Math.sin(c)*r,i=Math.sin(g),o=i*w-t*S;return[(Math.atan2(t*w+i*S,a*u+o*v)-h)/I,Math.asin(o*u-a*v)/I]}}},P.prototype.forward=function(y){return y},P.prototype.inverse=function(y){return y},P.prototype.cutOnAntimeridian=function(y,h){var f,m=180,u=[],v=[y];if(y.forEach(function(k,D){var p=y[D-1];if(!D){if(!h)return;p=y[y.length-1]}var C=p[0],A=k[0];if((C<-90||C>90)&&(A<-90||A>90)&&C>0!=A>0){var N=U((m-(C+360)%360)/((A+360)%360-(C+360)%360),0,1),_=p[1]+N*(k[1]-p[1]);u.push({i:D,lat:_,direction:C<0?1:-1,previousLonLat:p,lonLat:k})}}),u.length)if(h){u.length%2==1&&(f=u.slice().sort(function(k,D){return Math.abs(D.lat)-Math.abs(k.lat)})[0],z(u,f));for(var w=u.length-2;w>=0;){var S=u[w].i,x=M(m+u[w].direction*E),c=M(m-u[w].direction*E);(b=y.splice.apply(y,V([S,u[w+1].i-S],P.greatCircle([x,u[w].lat],[x,u[w+1].lat],!0),!1))).push.apply(b,P.greatCircle([c,u[w+1].lat],[c,u[w].lat],!0)),v.push(b),w-=2}if(f)for(var g=0;g<v.length;g++){var r=f.direction,a=f.lat,t=v[g],i=t.indexOf(f.lonLat);if(i>-1){for(var o=(a<0?-1:1)*this.maxLatitude,e=M(m+r*E),s=M(m-r*E),n=P.greatCircle([e,a],[e,o],!0),l=e+120*r;l>-180&&l<180;l+=120*r)n.push([l,o]);n.push.apply(n,P.greatCircle([s,o],[s,f.lat],!0)),t.splice.apply(t,V([i,0],n,!1));break}}}else for(w=u.length;w--;){var b;S=u[w].i,(b=y.splice(S,y.length,[M(m+u[w].direction*E),u[w].lat])).unshift([M(m-u[w].direction*E),u[w].lat]),v.push(b)}return v},P.prototype.path=function(y){var h,f=this,m=this,u=m.bounds,v=m.def,w=m.rotator,S=[],x=y.type==="Polygon"||y.type==="MultiPolygon",c=this.hasGeoProjection,g=!v||v.antimeridianCutting!==!1,r=g?w:void 0,a=g&&v||this;u&&(h=[[u.x1,u.y1],[u.x2,u.y1],[u.x2,u.y2],[u.x1,u.y2]]);var t=function(i){var o=i.map(function(s){if(g){r&&(s=r.forward(s));var n=s[0];Math.abs(n-180)<E&&(n=n<180?179.999999:180.000001),s=[n,s[1]]}return s}),e=[o];c&&(P.insertGreatCircles(o),g&&(e=f.cutOnAntimeridian(o,x))),e.forEach(function(s){if(!(s.length<2)){var n,l,b=!1,k=!1,D=function(O){b?S.push(["L",O[0],O[1]]):(S.push(["M",O[0],O[1]]),b=!0)},p=!1,C=!1,A=s.map(function(O){var j=a.forward(O);return j.outside?p=!0:C=!0,j[1]===1/0?j[1]=1e10:j[1]===-1/0&&(j[1]=-1e10),j});if(g){if(x&&A.push(A[0]),p){if(!C)return;if(h){if(x)A=Z(A,h);else if(u)return void $(A,h).forEach(function(O){b=!1,O.forEach(D)})}}A.forEach(D)}else for(var N=0;N<A.length;N++){var _=s[N],L=A[N];L.outside?k=!0:(x&&!n&&(n=_,s.push(_),A.push(L)),k&&l&&(x&&c?P.greatCircle(l,_).forEach(function(O){return D(a.forward(O))}):b=!1),D(L),l=_,k=!1)}}})};return y.type==="LineString"?t(y.coordinates):y.type==="MultiLineString"?y.coordinates.forEach(function(i){return t(i)}):y.type==="Polygon"?(y.coordinates.forEach(function(i){return t(i)}),S.length&&S.push(["Z"])):y.type==="MultiPolygon"&&(y.coordinates.forEach(function(i){i.forEach(function(o){return t(o)})}),S.length&&S.push(["Z"])),S},P.registry=R,P}()}),it(B,"Maps/MapView.js",[B["Maps/MapViewOptionsDefault.js"],B["Maps/MapViewInsetsOptionsDefault.js"],B["Extensions/GeoJSON.js"],B["Core/Chart/MapChart.js"],B["Maps/MapUtilities.js"],B["Maps/Projection.js"],B["Core/Utilities.js"]],function(W,R,H,V,$,Z,U){var z,I=this&&this.__extends||(z=function(e,s){return z=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,l){n.__proto__=l}||function(n,l){for(var b in l)l.hasOwnProperty(b)&&(n[b]=l[b])},z(e,s)},function(e,s){function n(){this.constructor=e}z(e,s),e.prototype=s===null?Object.create(s):(n.prototype=s.prototype,new n)}),E=this&&this.__spreadArray||function(e,s,n){if(n||arguments.length===2)for(var l,b=0,k=s.length;b<k;b++)!l&&b in s||(l||(l=Array.prototype.slice.call(s,0,b)),l[b]=s[b]);return e.concat(l||Array.prototype.slice.call(s))},M=H.topo2geo,P=V.maps,y=$.boundsFromPath,h=$.pointInPolygon,f=U.addEvent,m=U.clamp,u=U.fireEvent,v=U.isArray,w=U.isNumber,S=U.isObject,x=U.isString,c=U.merge,g=U.pick,r=U.relativeLength,a=400.979322,t=function(e,s){var n=s.width,l=s.height,b=Math.max((e.x2-e.x1)/(n/256),(e.y2-e.y1)/(l/256));return Math.log(a/b)/Math.log(2)},i=function(){function e(s,n){var l,b,k=this;if(this.insets=[],this.padding=[0,0,0,0],this.eventsToUnbind=[],!(this instanceof o)){var D=E([s.options.chart.map],(s.options.series||[]).map(function(X){return X.mapData}),!0).map(function(X){return k.getGeoMap(X)}),p=[];D.forEach(function(X){if(X&&(l||(l=X["hc-recommended-mapview"]),X.bbox)){var G=X.bbox,q=G[0],Q=G[1],J=G[2],rt=G[3];p.push({x1:q,y1:Q,x2:J,y2:rt})}});var C=p.length&&e.compositeBounds(p);if(C){var A=C.x1,N=C.y1,_=C.x2,L=C.y2;b=_-A>180&&L-N>90?{name:"EqualEarth"}:{name:"LambertConformalConic",parallels:[N,L],rotation:[-(A+_)/2]}}this.geoMap=D[0]}this.userOptions=n||{};var O=c(W,{projection:b},l,n),j=l&&l.insets,Y=n&&n.insets;j&&Y&&(O.insets=e.mergeInsets(j,Y)),this.chart=s,this.center=O.center,this.options=O,this.projection=new Z(O.projection),this.playingField=s.plotBox,this.zoom=O.zoom||0,this.createInsets(),this.eventsToUnbind.push(f(s,"afterSetChartSize",function(){k.playingField=k.getField(),k.minZoom!==void 0&&k.minZoom!==k.zoom||(k.fitToBounds(void 0,void 0,!1),!k.chart.hasRendered&&w(k.userOptions.zoom)&&(k.zoom=k.userOptions.zoom),k.userOptions.center&&c(!0,k.center,k.userOptions.center))})),this.setUpEvents()}return e.mergeInsets=function(s,n){var l=function(k){var D={};return k.forEach(function(p,C){D[p&&p.id||"i".concat(C)]=p}),D},b=c(l(s),l(n));return Object.keys(b).map(function(k){return b[k]})},e.prototype.createInsets=function(){var s=this,n=this.options,l=n.insets;l&&l.forEach(function(b){var k=new o(s,c(n.insetOptions,b));s.insets.push(k)})},e.prototype.fitToBounds=function(s,n,l,b){l===void 0&&(l=!0);var k=s||this.getProjectedBounds();if(k){var D=g(n,s?0:this.options.padding),p=this.getField(!1),C=v(D)?D:[D,D,D,D];this.padding=[r(C[0],p.height),r(C[1],p.width),r(C[2],p.height),r(C[3],p.width)],this.playingField=this.getField();var A=t(k,this.playingField);s||(this.minZoom=A);var N=this.projection.inverse([(k.x2+k.x1)/2,(k.y2+k.y1)/2]);this.setView(N,A,l,b)}},e.prototype.getField=function(s){s===void 0&&(s=!0);var n=s?this.padding:[0,0,0,0];return{x:n[3],y:n[0],width:this.chart.plotWidth-n[1]-n[3],height:this.chart.plotHeight-n[0]-n[2]}},e.prototype.getGeoMap=function(s){if(x(s))return P[s];if(S(s,!0)){if(s.type==="FeatureCollection")return s;if(s.type==="Topology")return M(s)}},e.prototype.getMapBBox=function(){var s=this.getProjectedBounds(),n=this.getScale();if(s){var l=this.padding,b=this.projectedUnitsToPixels({x:s.x1,y:s.y2});return{width:(s.x2-s.x1)*n+l[1]+l[3],height:(s.y2-s.y1)*n+l[0]+l[2],x:b.x-l[3],y:b.y-l[0]}}},e.prototype.getProjectedBounds=function(){var s=this.projection,n=this.chart.series.reduce(function(p,C){var A=C.getProjectedBounds&&C.getProjectedBounds();return A&&C.options.affectsMapView!==!1&&p.push(A),p},[]),l=this.options.fitToGeometry;if(l){if(!this.fitToGeometryCache)if(l.type==="MultiPoint"){var b=l.coordinates.map(function(p){return s.forward(p)}),k=b.map(function(p){return p[0]}),D=b.map(function(p){return p[1]});this.fitToGeometryCache={x1:Math.min.apply(0,k),x2:Math.max.apply(0,k),y1:Math.min.apply(0,D),y2:Math.max.apply(0,D)}}else this.fitToGeometryCache=y(s.path(l));return this.fitToGeometryCache}return this.projection.bounds||e.compositeBounds(n)},e.prototype.getScale=function(){return 256/a*Math.pow(2,this.zoom)},e.prototype.getSVGTransform=function(){var s=this.playingField,n=s.x,l=s.y,b=s.width,k=s.height,D=this.projection.forward(this.center),p=this.projection.hasCoordinates?-1:1,C=this.getScale(),A=C*p;return{scaleX:C,scaleY:A,translateX:n+b/2-D[0]*C,translateY:l+k/2-D[1]*A}},e.prototype.lonLatToPixels=function(s){var n=this.lonLatToProjectedUnits(s);if(n)return this.projectedUnitsToPixels(n)},e.prototype.lonLatToProjectedUnits=function(s){var n=this.chart,l=n.mapTransforms;if(l){for(var b in l)if(Object.hasOwnProperty.call(l,b)&&l[b].hitZone){var k=n.transformFromLatLon(s,l[b]);if(k&&h(k,l[b].hitZone.coordinates[0]))return k}return n.transformFromLatLon(s,l.default)}for(var D=0,p=this.insets;D<p.length;D++){var C=p[D];if(C.options.geoBounds&&h({x:s.lon,y:s.lat},C.options.geoBounds.coordinates[0])){var A=C.projection.forward([s.lon,s.lat]),N=C.projectedUnitsToPixels({x:A[0],y:A[1]});return this.pixelsToProjectedUnits(N)}}var _=this.projection.forward([s.lon,s.lat]);if(!_.outside)return{x:_[0],y:_[1]}},e.prototype.projectedUnitsToLonLat=function(s){var n=this.chart,l=n.mapTransforms;if(l){for(var b in l)if(Object.hasOwnProperty.call(l,b)&&l[b].hitZone&&h(s,l[b].hitZone.coordinates[0]))return n.transformToLatLon(s,l[b]);return n.transformToLatLon(s,l.default)}for(var k=this.projectedUnitsToPixels(s),D=0,p=this.insets;D<p.length;D++){var C=p[D];if(C.hitZone&&h(k,C.hitZone.coordinates[0])){var A=C.pixelsToProjectedUnits(k),N=C.projection.inverse([A.x,A.y]);return{lon:N[0],lat:N[1]}}}var _=this.projection.inverse([s.x,s.y]);return{lon:_[0],lat:_[1]}},e.prototype.redraw=function(s){this.chart.series.forEach(function(n){n.useMapGeometry&&(n.isDirty=!0)}),this.chart.redraw(s)},e.prototype.setView=function(s,n,l,b){l===void 0&&(l=!0),s&&(this.center=s),typeof n=="number"&&(typeof this.minZoom=="number"&&(n=Math.max(n,this.minZoom)),typeof this.options.maxZoom=="number"&&(n=Math.min(n,this.options.maxZoom)),w(n)&&(this.zoom=n));var k=this.getProjectedBounds();if(k){var D=this.projection.forward(this.center),p=this.playingField,C=p.x,A=p.y,N=p.width,_=p.height,L=this.getScale(),O=this.projectedUnitsToPixels({x:k.x1,y:k.y1}),j=this.projectedUnitsToPixels({x:k.x2,y:k.y2}),Y=[(k.x1+k.x2)/2,(k.y1+k.y2)/2],X=O.x,G=j.y,q=j.x,Q=O.y;q-X<N?D[0]=Y[0]:X<C&&q<C+N?D[0]+=Math.max(X-C,q-N-C)/L:q>C+N&&X>C&&(D[0]+=Math.min(q-N-C,X-C)/L),Q-G<_?D[1]=Y[1]:G<A&&Q<A+_?D[1]-=Math.max(G-A,Q-_-A)/L:Q>A+_&&G>A&&(D[1]-=Math.min(Q-_-A,G-A)/L),this.center=this.projection.inverse(D),this.insets.forEach(function(J){J.options.field&&(J.hitZone=J.getHitZone(),J.playingField=J.getField())}),this.render()}u(this,"afterSetView"),l&&this.redraw(b)},e.prototype.projectedUnitsToPixels=function(s){var n=this.getScale(),l=this.projection.forward(this.center),b=this.playingField,k=b.x+b.width/2,D=b.y+b.height/2;return{x:k-n*(l[0]-s.x),y:D+n*(l[1]-s.y)}},e.prototype.pixelsToLonLat=function(s){return this.projectedUnitsToLonLat(this.pixelsToProjectedUnits(s))},e.prototype.pixelsToProjectedUnits=function(s){var n=s.x,l=s.y,b=this.getScale(),k=this.projection.forward(this.center),D=this.playingField,p=D.x+D.width/2,C=D.y+D.height/2;return{x:k[0]+(n-p)/b,y:k[1]-(l-C)/b}},e.prototype.setUpEvents=function(){var s,n,l,b=this,k=this.chart,D=function(p){var C=k.pointer.pinchDown,A=b.projection,N=k.mouseDownX,_=k.mouseDownY;if(C.length===1&&(N=C[0].chartX,_=C[0].chartY),typeof N=="number"&&typeof _=="number"){var L=""+N+",".concat(_),O=p.originalEvent,j=O.chartX,Y=O.chartY;L!==n&&(n=L,s=b.projection.forward(b.center),l=(b.projection.options.rotation||[0,0]).slice());var X=A.def&&A.def.bounds,G=X&&t(X,b.playingField)||-1/0;if(A.options.name==="Orthographic"&&(b.minZoom||1/0)<1.1*G){var q=440/(b.getScale()*Math.min(k.plotWidth,k.plotHeight));if(l){var Q=(N-j)*q-l[0],J=m(-l[1]-(_-Y)*q,-80,80),rt=b.zoom;b.update({projection:{rotation:[-Q,-J]}},!1),b.zoom=rt,k.redraw(!1)}}else if(w(j)&&w(Y)){var lt=b.getScale(),gt=b.projection.hasCoordinates?1:-1,mt=b.projection.inverse([s[0]+(N-j)/lt,s[1]-(_-Y)/lt*gt]);b.setView(mt,void 0,!0,!1)}p.preventDefault()}};f(k,"pan",D),f(k,"touchpan",D),f(k,"selection",function(p){if(p.resetSelection)b.zoomBy();else{var C=p.x-k.plotLeft,A=p.y-k.plotTop,N=b.pixelsToProjectedUnits({x:C,y:A}),_=N.y,L=N.x,O=b.pixelsToProjectedUnits({x:C+p.width,y:A+p.height}),j=O.y,Y=O.x;b.fitToBounds({x1:L,y1:_,x2:Y,y2:j},void 0,!0,!p.originalEvent.touches&&void 0),/^touch/.test(p.originalEvent.type)||k.showResetZoom(),p.preventDefault()}})},e.prototype.render=function(){this.group||(this.group=this.chart.renderer.g("map-view").attr({zIndex:4}).add())},e.prototype.update=function(s,n,l){n===void 0&&(n=!0);var b=s.projection,k=b&&Z.toString(b)!==Z.toString(this.options.projection),D=!1;c(!0,this.userOptions,s),c(!0,this.options,s),"insets"in s&&(this.insets.forEach(function(p){return p.destroy()}),this.insets.length=0,D=!0),(k||"fitToGeometry"in s)&&delete this.fitToGeometryCache,(k||D)&&(this.chart.series.forEach(function(p){var C=p.transformGroups;if(p.clearBounds&&p.clearBounds(),p.isDirty=!0,p.isDirtyData=!0,D&&C)for(;C.length>1;){var A=C.pop();A&&A.destroy()}}),k&&(this.projection=new Z(this.options.projection)),D&&this.createInsets(),s.center||w(s.zoom)||this.fitToBounds(void 0,void 0,!1)),s.center||w(s.zoom)?this.setView(this.options.center,s.zoom,!1):"fitToGeometry"in s&&this.fitToBounds(void 0,void 0,!1),n&&this.chart.redraw(l)},e.prototype.zoomBy=function(s,n,l,b){var k=this.chart,D=this.projection.forward(this.center),p=n?this.projection.forward(n):[],C=p[0],A=p[1];if(typeof s=="number"){var N=this.zoom+s,_=void 0;if(l){var L=l[0],O=l[1],j=this.getScale(),Y=L-k.plotLeft-k.plotWidth/2,X=O-k.plotTop-k.plotHeight/2;C=D[0]+Y/j,A=D[1]+X/j}typeof C=="number"&&typeof A=="number"&&(j=1-Math.pow(2,this.zoom)/Math.pow(2,N),Y=D[0]-C,X=D[1]-A,D[0]-=Y*j,D[1]+=X*j,_=this.projection.inverse(D)),this.setView(_,N,void 0,b)}else this.fitToBounds(void 0,void 0,void 0,b)},e.compositeBounds=function(s){if(s.length)return s.slice(1).reduce(function(n,l){return n.x1=Math.min(n.x1,l.x1),n.y1=Math.min(n.y1,l.y1),n.x2=Math.max(n.x2,l.x2),n.y2=Math.max(n.y2,l.y2),n},c(s[0]))},e}(),o=function(e){function s(n,l){var b=e.call(this,n.chart,l)||this;if(b.id=l.id,b.mapView=n,b.options=c(R,l),b.allBounds=[],b.options.geoBounds){var k=n.projection.path(b.options.geoBounds);b.geoBoundsProjectedBox=y(k),b.geoBoundsProjectedPolygon=k.map(function(D){return[D[1]||0,D[2]||0]})}return b}return I(s,e),s.prototype.getField=function(n){n===void 0&&(n=!0);var l=this.hitZone;if(l){var b=n?this.padding:[0,0,0,0],k=l.coordinates[0],D=k.map(function(L){return L[0]}),p=k.map(function(L){return L[1]}),C=Math.min.apply(0,D)+b[3],A=Math.max.apply(0,D)-b[1],N=Math.min.apply(0,p)+b[0],_=Math.max.apply(0,p)-b[2];if(w(C)&&w(N))return{x:C,y:N,width:A-C,height:_-N}}return e.prototype.getField.call(this,n)},s.prototype.getHitZone=function(){var n=this,l=n.chart,b=n.mapView,k=n.options,D=(k.field||{}).coordinates;if(D){var p=D[0];if(k.units==="percent"){var C=k.relativeTo==="mapBoundingBox"&&b.getMapBBox()||c(l.plotBox,{x:0,y:0});p=p.map(function(A){return[r(A[0]+"%",C.width,C.x),r(A[1]+"%",C.height,C.y)]})}return{type:"Polygon",coordinates:[p]}}},s.prototype.getProjectedBounds=function(){return i.compositeBounds(this.allBounds)},s.prototype.isInside=function(n){var l=this.geoBoundsProjectedBox,b=this.geoBoundsProjectedPolygon;return!!(l&&n.x>=l.x1&&n.x<=l.x2&&n.y>=l.y1&&n.y<=l.y2&&b&&h(n,b))},s.prototype.render=function(){var n=this,l=n.chart,b=n.mapView,k=n.options,D=k.borderPath||k.field;if(D&&b.group){var p=!0;this.border||(this.border=l.renderer.path().addClass("highcharts-mapview-inset-border").add(b.group),p=!1),l.styledMode||this.border.attr({stroke:k.borderColor,"stroke-width":k.borderWidth});var C=Math.round(this.border.strokeWidth())%2/2,A=k.relativeTo==="mapBoundingBox"&&b.getMapBBox()||b.playingField,N=(D.coordinates||[]).reduce(function(_,L){return L.reduce(function(O,j,Y){var X=j[0],G=j[1];return k.units==="percent"&&(X=l.plotLeft+r(X+"%",A.width,A.x),G=l.plotTop+r(G+"%",A.height,A.y)),X=Math.floor(X)+C,G=Math.floor(G)+C,O.push(Y===0?["M",X,G]:["L",X,G]),O},_)},[]);this.border[p?"animate":"attr"]({d:N})}},s.prototype.destroy=function(){this.border&&(this.border=this.border.destroy()),this.eventsToUnbind.forEach(function(n){return n()})},s.prototype.setUpEvents=function(){},s}(i);return f(V,"afterInit",function(){this.mapView=new i(this,this.options.mapView)}),i}),it(B,"Series/Map/MapSeries.js",[B["Core/Animation/AnimationUtilities.js"],B["Series/ColorMapComposition.js"],B["Series/CenteredUtilities.js"],B["Core/Globals.js"],B["Core/Legend/LegendSymbol.js"],B["Core/Chart/MapChart.js"],B["Series/Map/MapPoint.js"],B["Maps/MapView.js"],B["Core/Series/Series.js"],B["Core/Series/SeriesRegistry.js"],B["Core/Renderer/SVG/SVGRenderer.js"],B["Core/Utilities.js"]],function(W,R,H,V,$,Z,U,z,I,E,M,P){var y,h=this&&this.__extends||(y=function(k,D){return y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(p,C){p.__proto__=C}||function(p,C){for(var A in C)C.hasOwnProperty(A)&&(p[A]=C[A])},y(k,D)},function(k,D){function p(){this.constructor=k}y(k,D),k.prototype=D===null?Object.create(D):(p.prototype=D.prototype,new p)}),f=W.animObject,m=V.noop,u=Z.splitPath,v=E.seriesTypes,w=v.column,S=v.scatter,x=P.extend,c=P.find,g=P.fireEvent,r=P.getNestedProperty,a=P.isArray,t=P.defined,i=P.isNumber,o=P.isObject,e=P.merge,s=P.objectEach,n=P.pick,l=P.splat,b=function(k){function D(){var p=k!==null&&k.apply(this,arguments)||this;return p.chart=void 0,p.data=void 0,p.group=void 0,p.joinBy=void 0,p.options=void 0,p.points=void 0,p.processedData=[],p}return h(D,k),D.prototype.animate=function(p){var C=this.chart,A=this.group,N=f(this.options.animation);C.renderer.isSVG&&(p?A.attr({translateX:C.plotLeft+C.plotWidth/2,translateY:C.plotTop+C.plotHeight/2,scaleX:.001,scaleY:.001}):A.animate({translateX:C.plotLeft,translateY:C.plotTop,scaleX:1,scaleY:1},N))},D.prototype.animateDrilldown=function(p){var C=this.chart,A=this.group;C.renderer.isSVG&&(p?A.attr({translateX:C.plotLeft+C.plotWidth/2,translateY:C.plotTop+C.plotHeight/2,scaleX:.1,scaleY:.1,opacity:.01}):(A.animate({translateX:C.plotLeft,translateY:C.plotTop,scaleX:1,scaleY:1,opacity:1},this.chart.options.drilldown.animation),C.drilldown&&C.drilldown.fadeInGroup(this.dataLabelsGroup)))},D.prototype.animateDrillupFrom=function(){var p=this.chart;p.renderer.isSVG&&this.group.animate({translateX:p.plotLeft+p.plotWidth/2,translateY:p.plotTop+p.plotHeight/2,scaleX:.1,scaleY:.1,opacity:.01})},D.prototype.animateDrillupTo=function(p){w.prototype.animateDrillupTo.call(this,p)},D.prototype.clearBounds=function(){this.points.forEach(function(p){delete p.bounds,delete p.insetIndex,delete p.projectedPath}),delete this.bounds},D.prototype.doFullTranslate=function(){return!!(this.isDirtyData||this.chart.isResizing||this.chart.renderer.isVML||!this.hasRendered)},D.prototype.drawMapDataLabels=function(){I.prototype.drawDataLabels.call(this),this.dataLabelsGroup&&this.dataLabelsGroup.clip(this.chart.clipRect)},D.prototype.drawPoints=function(){var p=this,C=this,A=this,N=A.chart,_=A.group,L=A.transformGroups,O=L===void 0?[]:L,j=N.mapView,Y=N.renderer;j&&(this.transformGroups=O,O[0]||(O[0]=Y.g().add(_)),j.insets.forEach(function(X,G){O[G+1]||O.push(Y.g().add(_))}),this.doFullTranslate()&&(this.points.forEach(function(X){var G=X.graphic,q=X.shapeArgs;X.group=O[typeof X.insetIndex=="number"?X.insetIndex+1:0],G&&G.parentGroup!==X.group&&G.add(X.group),q&&N.hasRendered&&!N.styledMode&&(q.fill=p.pointAttribs(X,X.state).fill)}),w.prototype.drawPoints.apply(this),this.points.forEach(function(X){var G=X.graphic;if(G){var q=G.animate,Q="";X.name&&(Q+="highcharts-name-"+X.name.replace(/ /g,"-").toLowerCase()),X.properties&&X.properties["hc-key"]&&(Q+=" highcharts-key-"+X.properties["hc-key"].toString().toLowerCase()),Q&&G.addClass(Q),N.styledMode&&G.css(p.pointAttribs(X,X.selected?"select":void 0)),G.animate=function(J,rt,lt){var gt=i(J["stroke-width"])&&!i(G["stroke-width"]),mt=i(G["stroke-width"])&&!i(J["stroke-width"]);if(gt||mt){var bt=n(C.getStrokeWidth(C.options),1)/(N.mapView&&N.mapView.getScale()||1);gt&&(G["stroke-width"]=bt),mt&&(J["stroke-width"]=bt)}var yt=q.call(G,J,rt,mt?function(){G.element.removeAttribute("stroke-width"),delete G["stroke-width"],lt&&lt.apply(this,arguments)}:lt);return yt}}})),O.forEach(function(X,G){var q=(G===0?j:j.insets[G-1]).getSVGTransform(),Q=n(p.getStrokeWidth(p.options),1),J=q.scaleX,rt=q.scaleY>0?1:-1,lt=function(yt){(C.points||[]).forEach(function(ct){var et,at=ct.graphic;at&&at["stroke-width"]&&(et=p.getStrokeWidth(ct.options))&&at.attr({"stroke-width":et/yt})})};if(Y.globalAnimation&&N.hasRendered){var gt=Number(X.attr("translateX")),mt=Number(X.attr("translateY")),bt=Number(X.attr("scaleX"));X.attr({animator:0}).animate({animator:1},{step:function(yt,ct){var et=bt+(J-bt)*ct.pos;X.attr({translateX:gt+(q.translateX-gt)*ct.pos,translateY:mt+(q.translateY-mt)*ct.pos,scaleX:et,scaleY:et*rt,"stroke-width":Q/et}),lt(et)}})}else X.attr(e(q,{"stroke-width":Q/J})),lt(J)}),this.drawMapDataLabels())},D.prototype.getProjectedBounds=function(){if(!this.bounds&&this.chart.mapView){var p=this.chart.mapView,C=p.insets,A=p.projection,N=[];(this.points||[]).forEach(function(_){if(_.path||_.geometry){if(typeof _.path=="string"?_.path=u(_.path):a(_.path)&&_.path[0]==="M"&&(_.path=M.prototype.pathToSegments(_.path)),!_.bounds){var L=_.getProjectedBounds(A);if(L){_.labelrank=n(_.labelrank,(L.x2-L.x1)*(L.y2-L.y1));var O=L.midX,j=L.midY;if(C&&i(O)&&i(j)){var Y=c(C,function(X){return X.isInside({x:O,y:j})});Y&&(delete _.projectedPath,(L=_.getProjectedBounds(Y.projection))&&Y.allBounds.push(L),_.insetIndex=C.indexOf(Y))}_.bounds=L}}_.bounds&&_.insetIndex===void 0&&N.push(_.bounds)}}),this.bounds=z.compositeBounds(N)}return this.bounds},D.prototype.getStrokeWidth=function(p){var C=this.pointAttrToOptions;return p[C&&C["stroke-width"]||"borderWidth"]},D.prototype.hasData=function(){return!!this.processedXData.length},D.prototype.pointAttribs=function(p,C){var A=p.series.chart,N=A.mapView,_=A.styledMode?this.colorAttribs(p):w.prototype.pointAttribs.call(this,p,C),L=this.getStrokeWidth(p.options);if(C){var O=e(this.options.states[C],p.options.states&&p.options.states[C]||{}),j=this.getStrokeWidth(O);t(j)&&(L=j)}L&&N&&(L/=N.getScale());var Y=this.getStrokeWidth(this.options);return _.dashstyle&&N&&i(Y)&&(L=Y/N.getScale()),p.visible||(_.fill=this.options.nullColor),t(L)?_["stroke-width"]=L:delete _["stroke-width"],_["stroke-linecap"]=_["stroke-linejoin"]=this.options.linecap,_},D.prototype.updateData=function(){return!this.processedData&&k.prototype.updateData.apply(this,arguments)},D.prototype.setData=function(p,C,A,N){C===void 0&&(C=!0),delete this.bounds,k.prototype.setData.call(this,p,!1,void 0,N),this.processData(),this.generatePoints(),C&&this.chart.redraw(A)},D.prototype.processData=function(){var p,C,A,N,_=this.options,L=_.data,O=this.chart.options.chart,j=this.joinBy,Y=_.keys||this.pointArrayMap,X=[],G={},q=this.chart.mapView,Q=q&&(o(_.mapData,!0)?q.getGeoMap(_.mapData):q.geoMap),J=this.chart.mapTransforms;this.chart.mapTransforms=J=O.mapTransforms||Q&&Q["hc-transform"]||J,J&&s(J,function(bt){bt.rotation&&(bt.cosAngle=Math.cos(bt.rotation),bt.sinAngle=Math.sin(bt.rotation))}),a(_.mapData)?N=_.mapData:Q&&Q.type==="FeatureCollection"&&(this.mapTitle=Q.title,N=V.geojson(Q,this.type,this)),this.processedData=[];var rt=this.processedData;if(L&&L.forEach(function(bt,yt){var ct=0;if(i(bt))rt[yt]={value:bt};else if(a(bt)){rt[yt]={},!_.keys&&bt.length>Y.length&&typeof bt[0]=="string"&&(rt[yt]["hc-key"]=bt[0],++ct);for(var et=0;et<Y.length;++et,++ct)Y[et]&&bt[ct]!==void 0&&(Y[et].indexOf(".")>0?U.prototype.setNestedProperty(rt[yt],bt[ct],Y[et]):rt[yt][Y[et]]=bt[ct])}else rt[yt]=L[yt];j&&j[0]==="_i"&&(rt[yt]._i=yt)}),N){for(this.mapData=N,this.mapMap={},A=0;A<N.length;A++)C=(p=N[A]).properties,p._i=A,j[0]&&C&&C[j[0]]&&(p[j[0]]=C[j[0]]),G[p[j[0]]]=p;if(this.mapMap=G,j[1]){var lt=j[1];rt.forEach(function(bt){var yt=r(lt,bt);G[yt]&&X.push(G[yt])})}if(_.allAreas){if(j[1]){var gt=j[1];rt.forEach(function(bt){X.push(r(gt,bt))})}var mt="|"+X.map(function(bt){return bt&&bt[j[0]]}).join("|")+"|";N.forEach(function(bt){j[0]&&mt.indexOf("|"+bt[j[0]]+"|")!==-1||rt.push(e(bt,{value:null}))})}}this.processedXData=new Array(rt.length)},D.prototype.setOptions=function(p){var C=I.prototype.setOptions.call(this,p),A=C.joinBy;return A===null&&(A="_i"),(A=this.joinBy=l(A))[1]||(A[1]=A[0]),C},D.prototype.translate=function(){var p=this,C=p.doFullTranslate(),A=this.chart.mapView,N=A&&A.projection;if(!this.chart.hasRendered||!this.isDirtyData&&this.hasRendered||(this.processData(),this.generatePoints(),delete this.bounds,!A||A.userOptions.center||i(A.userOptions.zoom)?this.getProjectedBounds():A.fitToBounds(void 0,void 0,!1)),A){var _=A.getSVGTransform();p.points.forEach(function(L){var O=i(L.insetIndex)&&A.insets[L.insetIndex].getSVGTransform()||_;O&&L.bounds&&i(L.bounds.midX)&&i(L.bounds.midY)&&(L.plotX=L.bounds.midX*O.scaleX+O.translateX,L.plotY=L.bounds.midY*O.scaleY+O.translateY),C&&(L.shapeType="path",L.shapeArgs={d:U.getProjectedPath(L,N)})})}g(p,"afterTranslate")},D.defaultOptions=e(S.defaultOptions,{affectsMapView:!0,animation:!1,dataLabels:{crop:!1,formatter:function(){var p=this.series.chart.numberFormatter,C=this.point.value;return i(C)?p(C,-1):""},inside:!0,overflow:!1,padding:0,verticalAlign:"middle"},linecap:"butt",marker:null,nullColor:"#f7f7f7",stickyTracking:!1,tooltip:{followPointer:!0,pointFormat:"{point.name}: {point.value}<br/>"},turboThreshold:0,allAreas:!0,borderColor:"#cccccc",borderWidth:1,joinBy:"hc-key",states:{hover:{halo:null,brightness:.2},normal:{animation:!0},select:{color:"#cccccc"}}}),D}(S);return x(b.prototype,{type:"map",axisTypes:R.seriesMembers.axisTypes,colorAttribs:R.seriesMembers.colorAttribs,colorKey:R.seriesMembers.colorKey,directTouch:!0,drawDataLabels:m,drawGraph:m,drawLegendSymbol:$.drawRectangle,forceDL:!0,getCenter:H.getCenter,getExtremesFromAll:!0,getSymbol:m,isCartesian:!1,parallelArrays:R.seriesMembers.parallelArrays,pointArrayMap:R.seriesMembers.pointArrayMap,pointClass:U,preserveAspectRatio:!0,searchPoint:m,trackerGroups:R.seriesMembers.trackerGroups,useMapGeometry:!0}),R.compose(b),E.registerSeriesType("map",b),b}),it(B,"Series/MapLine/MapLineSeries.js",[B["Series/Map/MapSeries.js"],B["Core/Series/SeriesRegistry.js"],B["Core/Utilities.js"]],function(W,R,H){var V,$=this&&this.__extends||(V=function(E,M){return V=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(P,y){P.__proto__=y}||function(P,y){for(var h in y)y.hasOwnProperty(h)&&(P[h]=y[h])},V(E,M)},function(E,M){function P(){this.constructor=E}V(E,M),E.prototype=M===null?Object.create(M):(P.prototype=M.prototype,new P)}),Z=R.series,U=H.extend,z=H.merge,I=function(E){function M(){var P=E!==null&&E.apply(this,arguments)||this;return P.data=void 0,P.options=void 0,P.points=void 0,P}return $(M,E),M.prototype.pointAttribs=function(P,y){var h=W.prototype.pointAttribs.call(this,P,y);return h.fill=this.options.fillColor,h},M.defaultOptions=z(W.defaultOptions,{lineWidth:1,fillColor:"none"}),M}(W);return U(I.prototype,{type:"mapline",colorProp:"stroke",drawLegendSymbol:Z.prototype.drawLegendSymbol,pointAttrToOptions:{stroke:"color","stroke-width":"lineWidth"}}),R.registerSeriesType("mapline",I),I}),it(B,"Series/MapPoint/MapPointPoint.js",[B["Core/Series/SeriesRegistry.js"],B["Core/Utilities.js"]],function(W,R){var H,V=this&&this.__extends||(H=function(z,I){return H=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(E,M){E.__proto__=M}||function(E,M){for(var P in M)M.hasOwnProperty(P)&&(E[P]=M[P])},H(z,I)},function(z,I){function E(){this.constructor=z}H(z,I),z.prototype=I===null?Object.create(I):(E.prototype=I.prototype,new E)}),$=W.seriesTypes.scatter,Z=R.isNumber,U=function(z){function I(){var E=z!==null&&z.apply(this,arguments)||this;return E.options=void 0,E.series=void 0,E}return V(I,z),I.prototype.isValid=function(){return!!(this.options.geometry||Z(this.x)&&Z(this.y)||Z(this.options.lon)&&Z(this.options.lat))},I}($.prototype.pointClass);return U}),it(B,"Series/MapPoint/MapPointSeries.js",[B["Core/Globals.js"],B["Series/MapPoint/MapPointPoint.js"],B["Core/Series/SeriesRegistry.js"],B["Core/Renderer/SVG/SVGRenderer.js"],B["Core/Utilities.js"]],function(W,R,H,V,$){var Z,U=this&&this.__extends||(Z=function(u,v){return Z=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(w,S){w.__proto__=S}||function(w,S){for(var x in S)S.hasOwnProperty(x)&&(w[x]=S[x])},Z(u,v)},function(u,v){function w(){this.constructor=u}Z(u,v),u.prototype=v===null?Object.create(v):(w.prototype=v.prototype,new w)}),z=W.noop,I=H.seriesTypes,E=I.map,M=I.scatter,P=$.extend,y=$.fireEvent,h=$.isNumber,f=$.merge,m=function(u){function v(){var w=u!==null&&u.apply(this,arguments)||this;return w.chart=void 0,w.data=void 0,w.options=void 0,w.points=void 0,w.clearBounds=E.prototype.clearBounds,w}return U(v,u),v.prototype.drawDataLabels=function(){u.prototype.drawDataLabels.call(this),this.dataLabelsGroup&&this.dataLabelsGroup.clip(this.chart.clipRect)},v.prototype.projectPoint=function(w){var S=this.chart.mapView;if(S){var x=w.geometry,c=w.lon,g=w.lat,r=x&&x.type==="Point"&&x.coordinates;if(h(c)&&h(g)&&(r=[c,g]),r)return S.lonLatToProjectedUnits({lon:r[0],lat:r[1]})}},v.prototype.translate=function(){var w=this,S=this.chart.mapView;if(this.processedXData||this.processData(),this.generatePoints(),this.getProjectedBounds&&this.isDirtyData&&(delete this.bounds,this.getProjectedBounds()),S){var x=S.getSVGTransform(),c=S.projection.hasCoordinates;this.points.forEach(function(g){var r,a=g.x,t=a===void 0?void 0:a,i=g.y,o=i===void 0?void 0:i,e=h(g.insetIndex)&&S.insets[g.insetIndex].getSVGTransform()||x,s=w.projectPoint(g.options)||g.properties&&w.projectPoint(g.properties);if(s?(t=s.x,o=s.y):g.bounds&&(t=g.bounds.midX,o=g.bounds.midY,e&&h(t)&&h(o)&&(g.plotX=t*e.scaleX+e.translateX,g.plotY=o*e.scaleY+e.translateY,r=!0)),h(t)&&h(o)){if(!r){var n=S.projectedUnitsToPixels({x:t,y:o});g.plotX=n.x,g.plotY=c?n.y:w.chart.plotHeight-n.y}}else g.y=g.plotX=g.plotY=void 0;g.isInside=w.isPointInside(g),g.zone=w.zones.length?g.getZone():void 0})}y(this,"afterTranslate")},v.defaultOptions=f(M.defaultOptions,{dataLabels:{crop:!1,defer:!1,enabled:!0,formatter:function(){return this.point.name},overflow:!1,style:{color:"#000000"}}}),v}(M);return V.prototype.symbols.mapmarker=function(u,v,w,S,x){var c,g,r=x&&x.context==="legend";r?(c=u+w/2,g=v+S):x&&typeof x.anchorX=="number"&&typeof x.anchorY=="number"?(c=x.anchorX,g=x.anchorY):(c=u+w/2,g=v+S/2,v-=S);var a=r?S/3:S/2;return[["M",c,g],["C",c,g,c-a,v+1.5*a,c-a,v+a],["A",a,a,1,1,1,c+a,v+a],["C",c+a,v+1.5*a,c,g,c,g],["Z"]]},P(m.prototype,{type:"mappoint",axisTypes:["colorAxis"],forceDL:!0,isCartesian:!1,pointClass:R,searchPoint:z,useMapGeometry:!0}),H.registerSeriesType("mappoint",m),m}),it(B,"Series/Bubble/BubbleLegendDefaults.js",[],function(){return{borderColor:void 0,borderWidth:2,className:void 0,color:void 0,connectorClassName:void 0,connectorColor:void 0,connectorDistance:60,connectorWidth:1,enabled:!1,labels:{className:void 0,allowOverlap:!1,format:"",formatter:void 0,align:"right",style:{fontSize:"10px",color:"#000000"},x:0,y:0},maxSize:60,minSize:10,legendIndex:0,ranges:{value:void 0,borderColor:void 0,color:void 0,connectorColor:void 0},sizeBy:"area",sizeByAbsoluteValue:!1,zIndex:1,zThreshold:0}}),it(B,"Series/Bubble/BubbleLegendItem.js",[B["Core/Color/Color.js"],B["Core/FormatUtilities.js"],B["Core/Globals.js"],B["Core/Utilities.js"]],function(W,R,H,V){var $=W.parse,Z=H.noop,U=V.arrayMax,z=V.arrayMin,I=V.isNumber,E=V.merge,M=V.pick,P=V.stableSort;return function(){function y(h,f){this.chart=void 0,this.fontMetrics=void 0,this.legend=void 0,this.maxLabel=void 0,this.movementX=void 0,this.ranges=void 0,this.selected=void 0,this.visible=void 0,this.symbols=void 0,this.options=void 0,this.setState=Z,this.init(h,f)}return y.prototype.init=function(h,f){this.options=h,this.visible=!0,this.chart=f.chart,this.legend=f},y.prototype.addToLegend=function(h){h.splice(this.options.legendIndex,0,this)},y.prototype.drawLegendSymbol=function(h){var f,m=this.chart,u=M(h.options.itemDistance,20),v=this.legendItem||{},w=this.options,S=w.ranges,x=w.connectorDistance;if(this.fontMetrics=m.renderer.fontMetrics(w.labels.style.fontSize),S&&S.length&&I(S[0].value)){P(S,function(a,t){return t.value-a.value}),this.ranges=S,this.setOptions(),this.render();var c=this.getMaxLabelSize(),g=this.ranges[0].radius,r=2*g;f=(f=x-g+c.width)>0?f:0,this.maxLabel=c,this.movementX=w.labels.align==="left"?f:0,v.labelWidth=r+f+u,v.labelHeight=r+this.fontMetrics.h/2}else h.options.bubbleLegend.autoRanges=!0},y.prototype.setOptions=function(){var h=this.ranges,f=this.options,m=this.chart.series[f.seriesIndex],u=this.legend.baseline,v={zIndex:f.zIndex,"stroke-width":f.borderWidth},w={zIndex:f.zIndex,"stroke-width":f.connectorWidth},S={align:this.legend.options.rtl||f.labels.align==="left"?"right":"left",zIndex:f.zIndex},x=m.options.marker.fillOpacity,c=this.chart.styledMode;h.forEach(function(g,r){c||(v.stroke=M(g.borderColor,f.borderColor,m.color),v.fill=M(g.color,f.color,x!==1?$(m.color).setOpacity(x).get("rgba"):m.color),w.stroke=M(g.connectorColor,f.connectorColor,m.color)),h[r].radius=this.getRangeRadius(g.value),h[r]=E(h[r],{center:h[0].radius-h[r].radius+u}),c||E(!0,h[r],{bubbleAttribs:E(v),connectorAttribs:E(w),labelAttribs:S})},this)},y.prototype.getRangeRadius=function(h){var f=this.options,m=this.options.seriesIndex,u=this.chart.series[m],v=f.ranges[0].value,w=f.ranges[f.ranges.length-1].value,S=f.minSize,x=f.maxSize;return u.getRadius.call(this,w,v,S,x,h)},y.prototype.render=function(){var h=this.legendItem||{},f=this.chart.renderer,m=this.options.zThreshold;this.symbols||(this.symbols={connectors:[],bubbleItems:[],labels:[]}),h.symbol=f.g("bubble-legend"),h.label=f.g("bubble-legend-item"),h.symbol.translateX=0,h.symbol.translateY=0;for(var u=0,v=this.ranges;u<v.length;u++){var w=v[u];w.value>=m&&this.renderRange(w)}h.symbol.add(h.label),h.label.add(h.group),this.hideOverlappingLabels()},y.prototype.renderRange=function(h){var f=this.ranges[0],m=this.legend,u=this.options,v=u.labels,w=this.chart,S=w.series[u.seriesIndex],x=w.renderer,c=this.symbols,g=c.labels,r=h.center,a=Math.abs(h.radius),t=u.connectorDistance||0,i=v.align,o=m.options.rtl,e=u.borderWidth,s=u.connectorWidth,n=f.radius||0,l=r-a-e/2+s/2,b=this.fontMetrics,k=b.f/2-(b.h-b.f)/2,D=(l%1?1:.5)-(s%2?0:.5),p=x.styledMode,C=o||i==="left"?-t:t;i==="center"&&(C=0,u.connectorDistance=0,h.labelAttribs.align="center");var A=l+u.labels.y,N=n+C+u.labels.x;c.bubbleItems.push(x.circle(n,r+D,a).attr(p?{}:h.bubbleAttribs).addClass((p?"highcharts-color-"+S.colorIndex+" ":"")+"highcharts-bubble-legend-symbol "+(u.className||"")).add(this.legendItem.symbol)),c.connectors.push(x.path(x.crispLine([["M",n,l],["L",n+C,l]],u.connectorWidth)).attr(p?{}:h.connectorAttribs).addClass((p?"highcharts-color-"+this.options.seriesIndex+" ":"")+"highcharts-bubble-legend-connectors "+(u.connectorClassName||"")).add(this.legendItem.symbol));var _=x.text(this.formatLabel(h),N,A+k).attr(p?{}:h.labelAttribs).css(p?{}:v.style).addClass("highcharts-bubble-legend-labels "+(u.labels.className||"")).add(this.legendItem.symbol);g.push(_),_.placed=!0,_.alignAttr={x:N,y:A+k}},y.prototype.getMaxLabelSize=function(){var h,f;return this.symbols.labels.forEach(function(m){f=m.getBBox(!0),h=h?f.width>h.width?f:h:f}),h||{}},y.prototype.formatLabel=function(h){var f=this.options,m=f.labels.formatter,u=f.labels.format,v=this.chart.numberFormatter;return u?R.format(u,h):m?m.call(h):v(h.value,1)},y.prototype.hideOverlappingLabels=function(){var h=this.chart,f=this.options.labels.allowOverlap,m=this.symbols;!f&&m&&(h.hideOverlappingLabels(m.labels),m.labels.forEach(function(u,v){u.newOpacity?u.newOpacity!==u.oldOpacity&&m.connectors[v].show():m.connectors[v].hide()}))},y.prototype.getRanges=function(){var h,f,m=this.legend.bubbleLegend,u=m.chart.series,v=m.options.ranges,w=Number.MAX_VALUE,S=-Number.MAX_VALUE;return u.forEach(function(x){x.isBubble&&!x.ignoreSeries&&(f=x.zData.filter(I)).length&&(w=M(x.options.zMin,Math.min(w,Math.max(z(f),x.options.displayNegative===!1?x.options.zThreshold:-Number.MAX_VALUE))),S=M(x.options.zMax,Math.max(S,U(f))))}),h=w===S?[{value:S}]:[{value:w},{value:(w+S)/2},{value:S,autoRanges:!0}],v.length&&v[0].radius&&h.reverse(),h.forEach(function(x,c){v&&v[c]&&(h[c]=E(v[c],x))}),h},y.prototype.predictBubbleSizes=function(){var h,f=this.chart,m=this.fontMetrics,u=f.legend.options,v=u.floating,w=u.layout==="horizontal",S=w?f.legend.lastLineHeight:0,x=f.plotSizeX,c=f.plotSizeY,g=f.series[this.options.seriesIndex],r=g.getPxExtremes(),a=Math.ceil(r.minPxSize),t=Math.ceil(r.maxPxSize),i=Math.min(c,x),o=g.options.maxSize;return v||!/%$/.test(o)?h=t:(o=parseFloat(o),h=(i+S-m.h/2)*o/100/(o/100+1),(w&&c-h>=x||!w&&x-h>=c)&&(h=t)),[a,Math.ceil(h)]},y.prototype.updateRanges=function(h,f){var m=this.legend.options.bubbleLegend;m.minSize=h,m.maxSize=f,m.ranges=this.getRanges()},y.prototype.correctSizes=function(){var h=this.legend,f=this.chart.series[this.options.seriesIndex].getPxExtremes(),m=f.maxPxSize,u=this.options.maxSize;Math.abs(Math.ceil(m)-u)>1&&(this.updateRanges(this.options.minSize,f.maxPxSize),h.render())},y}()}),it(B,"Series/Bubble/BubbleLegendComposition.js",[B["Series/Bubble/BubbleLegendDefaults.js"],B["Series/Bubble/BubbleLegendItem.js"],B["Core/Defaults.js"],B["Core/Utilities.js"]],function(W,R,H,V){var $=H.setOptions,Z=V.addEvent,U=V.objectEach,z=V.wrap,I=[];function E(m,u,v){var w,S,x,c=this,g=c.legend,r=M(c)>=0;g&&g.options.enabled&&g.bubbleLegend&&g.options.bubbleLegend.autoRanges&&r?(w=g.bubbleLegend.options,S=g.bubbleLegend.predictBubbleSizes(),g.bubbleLegend.updateRanges(S[0],S[1]),w.placed||(g.group.placed=!1,g.allItems.forEach(function(a){(x=a.legendItem||{}).group&&(x.group.translateY=null)})),g.render(),c.getMargins(),c.axes.forEach(function(a){a.visible&&a.render(),w.placed||(a.setScale(),a.updateNames(),U(a.ticks,function(t){t.isNew=!0,t.isNewLabel=!0}))}),w.placed=!0,c.getMargins(),m.call(c,u,v),g.bubbleLegend.correctSizes(),f(g,P(g))):(m.call(c,u,v),g&&g.options.enabled&&g.bubbleLegend&&(g.render(),f(g,P(g))))}function M(m){for(var u=m.series,v=0;v<u.length;){if(u[v]&&u[v].isBubble&&u[v].visible&&u[v].zData.length)return v;v++}return-1}function P(m){var u,v,w,S=m.allItems,x=[],c=S.length,g=0,r=0;for(g=0;g<c;g++)if(v=S[g].legendItem||{},w=(S[g+1]||{}).legendItem||{},v.labelHeight&&(S[g].itemHeight=v.labelHeight),S[g]===S[c-1]||v.y!==w.y){for(x.push({height:0}),u=x[x.length-1];r<=g;r++)S[r].itemHeight>u.height&&(u.height=S[r].itemHeight);u.step=g}return x}function y(m){var u=this,v=u.bubbleLegend,w=u.options,S=w.bubbleLegend,x=M(u.chart);v&&v.ranges&&v.ranges.length&&(S.ranges.length&&(S.autoRanges=!!S.ranges[0].autoRanges),u.destroyItem(v)),x>=0&&w.enabled&&S.enabled&&(S.seriesIndex=x,u.bubbleLegend=new R(S,u),u.bubbleLegend.addToLegend(m.allItems))}function h(){var m,u=this,v=u.chart,w=u.visible,S=u.chart.legend;S&&S.bubbleLegend&&(u.visible=!w,u.ignoreSeries=w,m=M(v)>=0,S.bubbleLegend.visible!==m&&(S.update({bubbleLegend:{enabled:m}}),S.bubbleLegend.visible=m),u.visible=w)}function f(m,u){var v,w,S,x,c=m.allItems,g=m.options.rtl,r=0;c.forEach(function(a,t){(x=a.legendItem||{}).group&&(v=x.group.translateX||0,w=x.y||0,((S=a.movementX)||g&&a.ranges)&&(S=g?v-a.options.maxSize/2:v+S,x.group.attr({translateX:S})),t>u[r].step&&r++,x.group.attr({translateY:Math.round(w+u[r].height/2)}),x.y=w+u[r].height/2)})}return{compose:function(m,u,v){I.indexOf(m)===-1&&(I.push(m),$({legend:{bubbleLegend:W}}),z(m.prototype,"drawChartBox",E)),I.indexOf(u)===-1&&(I.push(u),Z(u,"afterGetAllItems",y)),I.indexOf(v)===-1&&(I.push(v),Z(v,"legendItemClick",h))}}}),it(B,"Series/Bubble/BubblePoint.js",[B["Core/Series/Point.js"],B["Core/Series/SeriesRegistry.js"],B["Core/Utilities.js"]],function(W,R,H){var V,$=this&&this.__extends||(V=function(I,E){return V=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(M,P){M.__proto__=P}||function(M,P){for(var y in P)P.hasOwnProperty(y)&&(M[y]=P[y])},V(I,E)},function(I,E){function M(){this.constructor=I}V(I,E),I.prototype=E===null?Object.create(E):(M.prototype=E.prototype,new M)}),Z=R.seriesTypes.scatter.prototype.pointClass,U=H.extend,z=function(I){function E(){var M=I!==null&&I.apply(this,arguments)||this;return M.options=void 0,M.series=void 0,M}return $(E,I),E.prototype.haloPath=function(M){return W.prototype.haloPath.call(this,M===0?0:(this.marker&&this.marker.radius||0)+M)},E}(Z);return U(z.prototype,{ttBelow:!1}),z}),it(B,"Series/Bubble/BubbleSeries.js",[B["Series/Bubble/BubbleLegendComposition.js"],B["Series/Bubble/BubblePoint.js"],B["Core/Color/Color.js"],B["Core/Globals.js"],B["Core/Series/SeriesRegistry.js"],B["Core/Utilities.js"]],function(W,R,H,V,$,Z){var U,z=this&&this.__extends||(U=function(t,i){return U=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,e){o.__proto__=e}||function(o,e){for(var s in e)e.hasOwnProperty(s)&&(o[s]=e[s])},U(t,i)},function(t,i){function o(){this.constructor=t}U(t,i),t.prototype=i===null?Object.create(i):(o.prototype=i.prototype,new o)}),I=H.parse,E=V.noop,M=$.series,P=$.seriesTypes,y=P.column.prototype,h=P.scatter,f=Z.addEvent,m=Z.arrayMax,u=Z.arrayMin,v=Z.clamp,w=Z.extend,S=Z.isNumber,x=Z.merge,c=Z.pick,g=[];function r(){var t,i=this,o=this.len,e=this.chart,s=this.isXAxis,n=s?"xData":"yData",l=this.min,b=this.max-l,k=0,D=o,p=o/b;this.series.forEach(function(C){if(C.bubblePadding&&(C.visible||!e.options.chart.ignoreHiddenSeries)){i.allowZoomOutside=!0,t=!0;var A=C[n];if(s&&((C.onPoint||C).getRadii(0,0,C),C.onPoint&&(C.radii=C.onPoint.radii)),b>0){for(var N=A.length;N--;)if(S(A[N])&&i.dataMin<=A[N]&&A[N]<=i.max){var _=C.radii&&C.radii[N]||0;k=Math.min((A[N]-l)*p-_,k),D=Math.max((A[N]-l)*p+_,D)}}}}),t&&b>0&&!this.logarithmic&&(D-=o,p*=(o+Math.max(0,k)-Math.min(D,o))/o,[["min","userMin",k],["max","userMax",D]].forEach(function(C){c(i.options[C[0]],i[C[1]])===void 0&&(i[C[0]]+=C[2]/p)}))}var a=function(t){function i(){var o=t!==null&&t.apply(this,arguments)||this;return o.data=void 0,o.maxPxSize=void 0,o.minPxSize=void 0,o.options=void 0,o.points=void 0,o.radii=void 0,o.yData=void 0,o.zData=void 0,o}return z(i,t),i.compose=function(o,e,s,n){W.compose(e,s,n),g.indexOf(o)===-1&&(g.push(o),o.prototype.beforePadding=r)},i.prototype.animate=function(o){!o&&this.points.length<this.options.animationLimit&&this.points.forEach(function(e){var s=e.graphic;s&&s.width&&(this.hasRendered||s.attr({x:e.plotX,y:e.plotY,width:1,height:1}),s.animate(this.markerAttribs(e),this.options.animation))},this)},i.prototype.getRadii=function(){var o,e,s,n=this,l=this.zData,b=this.yData,k=[],D=this.chart.bubbleZExtremes,p=this.getPxExtremes(),C=p.minPxSize,A=p.maxPxSize;if(!D){var N,_=Number.MAX_VALUE,L=-Number.MAX_VALUE;this.chart.series.forEach(function(O){if(O.bubblePadding&&(O.visible||!n.chart.options.chart.ignoreHiddenSeries)){var j=(O.onPoint||O).getZExtremes();j&&(_=Math.min(_||j.zMin,j.zMin),L=Math.max(L||j.zMax,j.zMax),N=!0)}}),N?(D={zMin:_,zMax:L},this.chart.bubbleZExtremes=D):D={zMin:0,zMax:0}}for(e=0,o=l.length;e<o;e++)s=l[e],k.push(this.getRadius(D.zMin,D.zMax,C,A,s,b&&b[e]));this.radii=k},i.prototype.getRadius=function(o,e,s,n,l,b){var k=this.options,D=k.sizeBy!=="width",p=k.zThreshold,C=e-o,A=.5;if(b===null||l===null)return null;if(S(l)){if(k.sizeByAbsoluteValue&&(l=Math.abs(l-p),e=C=Math.max(e-p,Math.abs(o-p)),o=0),l<o)return s/2-1;C>0&&(A=(l-o)/C)}return D&&A>=0&&(A=Math.sqrt(A)),Math.ceil(s+A*(n-s))/2},i.prototype.hasData=function(){return!!this.processedXData.length},i.prototype.pointAttribs=function(o,e){var s=this.options.marker.fillOpacity,n=M.prototype.pointAttribs.call(this,o,e);return s!==1&&(n.fill=I(n.fill).setOpacity(s).get("rgba")),n},i.prototype.translate=function(){t.prototype.translate.call(this),this.getRadii(),this.translateBubble()},i.prototype.translateBubble=function(){for(var o=this.data,e=this.radii,s=this.getPxExtremes().minPxSize,n=o.length;n--;){var l=o[n],b=e?e[n]:0;S(b)&&b>=s/2?(l.marker=w(l.marker,{radius:b,width:2*b,height:2*b}),l.dlBox={x:l.plotX-b,y:l.plotY-b,width:2*b,height:2*b}):(l.shapeArgs=l.plotY=l.dlBox=void 0,l.isInside=!1)}},i.prototype.getPxExtremes=function(){var o=Math.min(this.chart.plotWidth,this.chart.plotHeight),e=function(n){var l;return typeof n=="string"&&(l=/%$/.test(n),n=parseInt(n,10)),l?o*n/100:n},s=e(c(this.options.minSize,8));return{minPxSize:s,maxPxSize:Math.max(e(c(this.options.maxSize,"20%")),s)}},i.prototype.getZExtremes=function(){var o=this.options,e=(this.zData||[]).filter(S);if(e.length){var s=c(o.zMin,v(u(e),o.displayNegative===!1?o.zThreshold||0:-Number.MAX_VALUE,Number.MAX_VALUE)),n=c(o.zMax,m(e));if(S(s)&&S(n))return{zMin:s,zMax:n}}},i.defaultOptions=x(h.defaultOptions,{dataLabels:{formatter:function(){var o=this.series.chart.numberFormatter,e=this.point.z;return S(e)?o(e,-1):""},inside:!0,verticalAlign:"middle"},animationLimit:250,marker:{lineColor:null,lineWidth:1,fillOpacity:.5,radius:null,states:{hover:{radiusPlus:0}},symbol:"circle"},minSize:8,maxSize:"20%",softThreshold:!1,states:{hover:{halo:{size:5}}},tooltip:{pointFormat:"({point.x}, {point.y}), Size: {point.z}"},turboThreshold:0,zThreshold:0,zoneAxis:"z"}),i}(h);return w(a.prototype,{alignDataLabel:y.alignDataLabel,applyZones:E,bubblePadding:!0,buildKDTree:E,directTouch:!0,isBubble:!0,pointArrayMap:["y","z"],pointClass:R,parallelArrays:["x","y","z"],trackerGroups:["group","dataLabelsGroup"],specialGroup:"group",zoneAxis:"z"}),f(a,"updatedData",function(t){delete t.target.chart.bubbleZExtremes}),f(a,"remove",function(t){delete t.target.chart.bubbleZExtremes}),$.registerSeriesType("bubble",a),a}),it(B,"Series/MapBubble/MapBubblePoint.js",[B["Series/Bubble/BubblePoint.js"],B["Core/Series/SeriesRegistry.js"],B["Core/Utilities.js"]],function(W,R,H){var V,$=this&&this.__extends||(V=function(I,E){return V=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(M,P){M.__proto__=P}||function(M,P){for(var y in P)P.hasOwnProperty(y)&&(M[y]=P[y])},V(I,E)},function(I,E){function M(){this.constructor=I}V(I,E),I.prototype=E===null?Object.create(E):(M.prototype=E.prototype,new M)}),Z=R.seriesTypes.map.prototype.pointClass.prototype,U=H.extend,z=function(I){function E(){return I!==null&&I.apply(this,arguments)||this}return $(E,I),E.prototype.isValid=function(){return typeof this.z=="number"},E}(W);return U(z.prototype,{applyOptions:Z.applyOptions,getProjectedBounds:Z.getProjectedBounds}),z}),it(B,"Series/MapBubble/MapBubbleSeries.js",[B["Series/Bubble/BubbleSeries.js"],B["Series/MapBubble/MapBubblePoint.js"],B["Core/Series/SeriesRegistry.js"],B["Core/Utilities.js"]],function(W,R,H,V){var $,Z=this&&this.__extends||($=function(y,h){return $=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,m){f.__proto__=m}||function(f,m){for(var u in m)m.hasOwnProperty(u)&&(f[u]=m[u])},$(y,h)},function(y,h){function f(){this.constructor=y}$(y,h),y.prototype=h===null?Object.create(h):(f.prototype=h.prototype,new f)}),U=H.seriesTypes,z=U.map.prototype,I=U.mappoint.prototype,E=V.extend,M=V.merge,P=function(y){function h(){var f=y!==null&&y.apply(this,arguments)||this;return f.data=void 0,f.options=void 0,f.points=void 0,f.clearBounds=z.clearBounds,f}return Z(h,y),h.prototype.searchPoint=function(f,m){return this.searchKDTree({clientX:f.chartX-this.chart.plotLeft,plotY:f.chartY-this.chart.plotTop},m,f)},h.prototype.translate=function(){I.translate.call(this),this.getRadii(),this.translateBubble()},h.defaultOptions=M(W.defaultOptions,{lineWidth:0,animationLimit:500,joinBy:"hc-key",tooltip:{pointFormat:"{point.name}: {point.z}"}}),h}(W);return E(P.prototype,{type:"mapbubble",axisTypes:["colorAxis"],getProjectedBounds:z.getProjectedBounds,isCartesian:!1,pointArrayMap:["z"],pointClass:R,processData:z.processData,projectPoint:I.projectPoint,setData:z.setData,setOptions:z.setOptions,updateData:z.updateData,useMapGeometry:!0,xyFromShape:!0}),H.registerSeriesType("mapbubble",P),P}),it(B,"Series/Heatmap/HeatmapPoint.js",[B["Core/Series/SeriesRegistry.js"],B["Core/Utilities.js"]],function(W,R){var H,V=this&&this.__extends||(H=function(M,P){return H=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(y,h){y.__proto__=h}||function(y,h){for(var f in h)h.hasOwnProperty(f)&&(y[f]=h[f])},H(M,P)},function(M,P){function y(){this.constructor=M}H(M,P),M.prototype=P===null?Object.create(P):(y.prototype=P.prototype,new y)}),$=W.seriesTypes.scatter.prototype.pointClass,Z=R.clamp,U=R.defined,z=R.extend,I=R.pick,E=function(M){function P(){var y=M!==null&&M.apply(this,arguments)||this;return y.options=void 0,y.series=void 0,y.value=void 0,y.x=void 0,y.y=void 0,y}return V(P,M),P.prototype.applyOptions=function(y,h){return(this.isNull||this.value===null)&&delete this.color,M.prototype.applyOptions.call(this,y,h),this.formatPrefix=this.isNull||this.value===null?"null":"point",this},P.prototype.getCellAttributes=function(){var y=this,h=y.series,f=h.options,m=(f.colsize||1)/2,u=(f.rowsize||1)/2,v=h.xAxis,w=h.yAxis,S=y.options.marker||h.options.marker,x=h.pointPlacementToXValue(),c=I(y.pointPadding,f.pointPadding,0),g={x1:Z(Math.round(v.len-v.translate(y.x-m,!1,!0,!1,!0,-x)),-v.len,2*v.len),x2:Z(Math.round(v.len-v.translate(y.x+m,!1,!0,!1,!0,-x)),-v.len,2*v.len),y1:Z(Math.round(w.translate(y.y-u,!1,!0,!1,!0)),-w.len,2*w.len),y2:Z(Math.round(w.translate(y.y+u,!1,!0,!1,!0)),-w.len,2*w.len)};return[["width","x"],["height","y"]].forEach(function(r){var a=r[0],t=r[1],i=t+"1",o=t+"2",e=Math.abs(g[i]-g[o]),s=S&&S.lineWidth||0,n=Math.abs(g[i]+g[o])/2,l=S&&S[a];if(U(l)&&l<e){var b=l/2+s/2;g[i]=n-b,g[o]=n+b}c&&(t==="y"&&(i=o,o=t+"1"),g[i]+=c,g[o]-=c)}),g},P.prototype.haloPath=function(y){if(!y)return[];var h=this.shapeArgs||{},f=h.x,m=f===void 0?0:f,u=h.y,v=u===void 0?0:u,w=h.width,S=w===void 0?0:w,x=h.height,c=x===void 0?0:x;return[["M",m-y,v-y],["L",m-y,v+c+y],["L",m+S+y,v+c+y],["L",m+S+y,v-y],["Z"]]},P.prototype.isValid=function(){return this.value!==1/0&&this.value!==-1/0},P}($);return z(E.prototype,{dataLabelOnNull:!0,moveToTopOnHover:!0,ttBelow:!1}),E}),it(B,"Series/Heatmap/HeatmapSeries.js",[B["Core/Color/Color.js"],B["Series/ColorMapComposition.js"],B["Series/Heatmap/HeatmapPoint.js"],B["Core/Legend/LegendSymbol.js"],B["Core/Series/SeriesRegistry.js"],B["Core/Renderer/SVG/SVGRenderer.js"],B["Core/Utilities.js"]],function(W,R,H,V,$,Z,U){var z,I=this&&this.__extends||(z=function(x,c){return z=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(g,r){g.__proto__=r}||function(g,r){for(var a in r)r.hasOwnProperty(a)&&(g[a]=r[a])},z(x,c)},function(x,c){function g(){this.constructor=x}z(x,c),x.prototype=c===null?Object.create(c):(g.prototype=c.prototype,new g)}),E=$.series,M=$.seriesTypes,P=M.column,y=M.scatter,h=Z.prototype.symbols,f=U.extend,m=U.fireEvent,u=U.isNumber,v=U.merge,w=U.pick,S=function(x){function c(){var g=x!==null&&x.apply(this,arguments)||this;return g.colorAxis=void 0,g.data=void 0,g.options=void 0,g.points=void 0,g.valueMax=NaN,g.valueMin=NaN,g}return I(c,x),c.prototype.drawPoints=function(){var g=this;((this.options.marker||{}).enabled||this._hasPointMarkers)&&(E.prototype.drawPoints.call(this),this.points.forEach(function(r){r.graphic&&(r.graphic[g.chart.styledMode?"css":"animate"](g.colorAttribs(r)),r.value===null&&r.graphic.addClass("highcharts-null-point"))}))},c.prototype.getExtremes=function(){var g=E.prototype.getExtremes.call(this,this.valueData),r=g.dataMin,a=g.dataMax;return u(r)&&(this.valueMin=r),u(a)&&(this.valueMax=a),E.prototype.getExtremes.call(this)},c.prototype.getValidPoints=function(g,r){return E.prototype.getValidPoints.call(this,g,r,!0)},c.prototype.hasData=function(){return!!this.processedXData.length},c.prototype.init=function(){x.prototype.init.apply(this,arguments);var g=this.options;g.pointRange=w(g.pointRange,g.colsize||1),this.yAxis.axisPointRange=g.rowsize||1,h.ellipse=h.circle,g.marker&&(g.marker.r=g.borderRadius)},c.prototype.markerAttribs=function(g,r){var a=g.shapeArgs||{};if(g.hasImage)return{x:g.plotX,y:g.plotY};if(r&&r!=="normal"){var t=g.options.marker||{},i=this.options.marker||{},o=i.states&&i.states[r]||{},e=t.states&&t.states[r]||{},s=(e.width||o.width||a.width||0)+(e.widthPlus||o.widthPlus||0),n=(e.height||o.height||a.height||0)+(e.heightPlus||o.heightPlus||0);return{x:(a.x||0)+((a.width||0)-s)/2,y:(a.y||0)+((a.height||0)-n)/2,width:s,height:n}}return a},c.prototype.pointAttribs=function(g,r){var a=this,t=E.prototype.pointAttribs.call(a,g,r),i=a.options||{},o=a.chart.options.plotOptions||{},e=o.series||{},s=o.heatmap||{},n=g&&g.options.borderColor||i.borderColor||s.borderColor||e.borderColor,l=g&&g.options.borderWidth||i.borderWidth||s.borderWidth||e.borderWidth||t["stroke-width"];if(t.stroke=g&&g.marker&&g.marker.lineColor||i.marker&&i.marker.lineColor||n||this.color,t["stroke-width"]=l,r&&r!=="normal"){var b=v(i.states&&i.states[r],i.marker&&i.marker.states&&i.marker.states[r],g&&g.options.states&&g.options.states[r]||{});t.fill=b.color||W.parse(t.fill).brighten(b.brightness||0).get(),t.stroke=b.lineColor||t.stroke}return t},c.prototype.translate=function(){var g=this,r=g.options,a=r.marker&&r.marker.symbol||"rect",t=h[a]?a:"rect",i=["circle","square"].indexOf(t)!==-1;g.generatePoints(),g.points.forEach(function(o){var e=o.getCellAttributes(),s=Math.min(e.x1,e.x2),n=Math.min(e.y1,e.y2),l=Math.max(Math.abs(e.x2-e.x1),0),b=Math.max(Math.abs(e.y2-e.y1),0);if(o.hasImage=(o.marker&&o.marker.symbol||a||"").indexOf("url")===0,i){var k=Math.abs(l-b);s=Math.min(e.x1,e.x2)+(l<b?0:k/2),n=Math.min(e.y1,e.y2)+(l<b?k/2:0),l=b=Math.min(l,b)}o.hasImage&&(o.marker={width:l,height:b}),o.plotX=o.clientX=(e.x1+e.x2)/2,o.plotY=(e.y1+e.y2)/2,o.shapeType="path",o.shapeArgs=v(!0,{x:s,y:n,width:l,height:b},{d:h[t](s,n,l,b,{r:r.borderRadius})})}),m(g,"afterTranslate")},c.defaultOptions=v(y.defaultOptions,{animation:!1,borderRadius:0,borderWidth:0,nullColor:"#f7f7f7",dataLabels:{formatter:function(){var g=this.series.chart.numberFormatter,r=this.point.value;return u(r)?g(r,-1):""},inside:!0,verticalAlign:"middle",crop:!1,overflow:"allow",padding:0},marker:{symbol:"rect",radius:0,lineColor:void 0,states:{hover:{lineWidthPlus:0},select:{}}},clip:!0,pointRange:null,tooltip:{pointFormat:"{point.x}, {point.y}: {point.value}<br/>"},states:{hover:{halo:!1,brightness:.2}}}),c}(y);return f(S.prototype,{axisTypes:R.seriesMembers.axisTypes,colorKey:R.seriesMembers.colorKey,directTouch:!0,getExtremesFromAll:!0,parallelArrays:R.seriesMembers.parallelArrays,pointArrayMap:["y","value"],pointClass:H,specialGroup:"group",trackerGroups:R.seriesMembers.trackerGroups,alignDataLabel:P.prototype.alignDataLabel,colorAttribs:R.seriesMembers.colorAttribs,drawLegendSymbol:V.drawRectangle,getSymbol:E.prototype.getSymbol}),R.compose(S),$.registerSeriesType("heatmap",S),S}),it(B,"masters/modules/map.src.js",[B["Core/Globals.js"],B["Core/Axis/Color/ColorAxis.js"],B["Series/MapBubble/MapBubbleSeries.js"],B["Core/Chart/MapChart.js"],B["Maps/MapView.js"],B["Maps/Projection.js"]],function(W,R,H,V,$,Z){var U=W;U.ColorAxis=R,U.MapChart=V,U.mapChart=U.Map=V.mapChart,U.MapView=$,U.maps=V.maps,U.Projection=Z,R.compose(U.Chart,U.Fx,U.Legend,U.Series),H.compose(U.Axis,U.Chart,U.Legend,U.Series)})},ot.exports?(ut.default=ut,ot.exports=ut):(pt=[st(4783)],(ht=function(ft){return ut(ft),ut.Highcharts=ft,ut}.apply(nt,pt))===void 0||(ot.exports=ht))},6512:(ot,nt,st)=>{var pt,ht,ut;ut=function(ft){var B=ft?ft._modules:{};function it(W,R,H,V){W.hasOwnProperty(R)||(W[R]=V.apply(null,H),typeof CustomEvent=="function"&&window.dispatchEvent(new CustomEvent("HighchartsModuleLoaded",{detail:{path:R,module:W[R]}})))}it(B,"Series/ColorMapComposition.js",[B["Core/Series/SeriesRegistry.js"],B["Core/Utilities.js"]],function(W,R){var H,V=W.seriesTypes.column.prototype,$=R.addEvent,Z=R.defined;return function(U){var z=[];function I(E){var M=this;M.moveToTopOnHover&&M.graphic&&M.graphic.attr({zIndex:E&&E.state==="hover"?1:0})}U.pointMembers={dataLabelOnNull:!0,moveToTopOnHover:!0,isValid:function(){return this.value!==null&&this.value!==1/0&&this.value!==-1/0&&(this.value===void 0||!isNaN(this.value))}},U.seriesMembers={colorKey:"value",axisTypes:["xAxis","yAxis","colorAxis"],parallelArrays:["x","y","value"],pointArrayMap:["value"],trackerGroups:["group","markerGroup","dataLabelsGroup"],colorAttribs:function(E){var M={};return!Z(E.color)||E.state&&E.state!=="normal"||(M[this.colorProp||"fill"]=E.color),M},pointAttribs:V.pointAttribs},U.compose=function(E){var M=E.prototype.pointClass;return z.indexOf(M)===-1&&(z.push(M),$(M,"afterSetState",I)),E}}(H||(H={})),H}),it(B,"Series/Treemap/TreemapAlgorithmGroup.js",[],function(){return function(){function W(R,H,V,$){this.height=R,this.width=H,this.plot=$,this.direction=V,this.startDirection=V,this.total=0,this.nW=0,this.lW=0,this.nH=0,this.lH=0,this.elArr=[],this.lP={total:0,lH:0,nH:0,lW:0,nW:0,nR:0,lR:0,aspectRatio:function(Z,U){return Math.max(Z/U,U/Z)}}}return W.prototype.addElement=function(R){this.lP.total=this.elArr[this.elArr.length-1],this.total=this.total+R,this.direction===0?(this.lW=this.nW,this.lP.lH=this.lP.total/this.lW,this.lP.lR=this.lP.aspectRatio(this.lW,this.lP.lH),this.nW=this.total/this.height,this.lP.nH=this.lP.total/this.nW,this.lP.nR=this.lP.aspectRatio(this.nW,this.lP.nH)):(this.lH=this.nH,this.lP.lW=this.lP.total/this.lH,this.lP.lR=this.lP.aspectRatio(this.lP.lW,this.lH),this.nH=this.total/this.width,this.lP.nW=this.lP.total/this.nH,this.lP.nR=this.lP.aspectRatio(this.lP.nW,this.nH)),this.elArr.push(R)},W.prototype.reset=function(){this.nW=0,this.lW=0,this.elArr=[],this.total=0},W}()}),it(B,"Series/DrawPointUtilities.js",[B["Core/Utilities.js"]],function(W){return{draw:function(R,H){var V=H.animatableAttribs,$=H.onComplete,Z=H.css,U=H.renderer,z=R.series&&R.series.chart.hasRendered?void 0:R.series&&R.series.options.animation,I=R.graphic;if(H.attribs=H.attribs||{},H.attribs.class=R.getClassName(),R.shouldDraw())I||(R.graphic=I=H.shapeType==="text"?U.text():U[H.shapeType](H.shapeArgs||{}),I.add(H.group)),Z&&I.css(Z),I.attr(H.attribs).animate(V,!H.isNew&&z,$);else if(I){var E=function(){R.graphic=I=I&&I.destroy(),typeof $=="function"&&$()};Object.keys(V).length?I.animate(V,void 0,function(){return E()}):E()}}}}),it(B,"Series/Treemap/TreemapPoint.js",[B["Series/DrawPointUtilities.js"],B["Core/Series/SeriesRegistry.js"],B["Core/Utilities.js"]],function(W,R,H){var V,$=this&&this.__extends||(V=function(h,f){return V=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(m,u){m.__proto__=u}||function(m,u){for(var v in u)u.hasOwnProperty(v)&&(m[v]=u[v])},V(h,f)},function(h,f){function m(){this.constructor=h}V(h,f),h.prototype=f===null?Object.create(f):(m.prototype=f.prototype,new m)}),Z=R.series.prototype.pointClass,U=R.seriesTypes,z=U.pie.prototype.pointClass,I=U.scatter.prototype.pointClass,E=H.extend,M=H.isNumber,P=H.pick,y=function(h){function f(){var m=h!==null&&h.apply(this,arguments)||this;return m.name=void 0,m.node=void 0,m.options=void 0,m.series=void 0,m.shapeType="rect",m.value=void 0,m}return $(f,h),f.prototype.draw=function(m){W.draw(this,m)},f.prototype.getClassName=function(){var m=Z.prototype.getClassName.call(this),u=this.series,v=u.options;return this.node.level<=u.nodeMap[u.rootNode].level?m+=" highcharts-above-level":this.node.isLeaf||P(v.interactByLeaf,!v.allowTraversingTree)?this.node.isLeaf||(m+=" highcharts-internal-node"):m+=" highcharts-internal-node-interactive",m},f.prototype.isValid=function(){return!!(this.id||M(this.value))},f.prototype.setState=function(m){Z.prototype.setState.call(this,m),this.graphic&&this.graphic.attr({zIndex:m==="hover"?1:0})},f.prototype.shouldDraw=function(){return M(this.plotY)&&this.y!==null},f}(I);return E(y.prototype,{setVisible:z.prototype.setVisible}),y}),it(B,"Series/Treemap/TreemapUtilities.js",[B["Core/Utilities.js"]],function(W){var R,H=W.objectEach;return function(V){V.AXIS_MAX=100,V.isBoolean=function($){return typeof $=="boolean"},V.eachObject=function($,Z,U){U=U||this,H($,function(z,I){Z.call(U,z,I,$)})},V.recursive=function $(Z,U,z){var I;z===void 0&&(z=this),(I=U.call(z,Z))!==!1&&$(I,U,z)}}(R||(R={})),R}),it(B,"Series/TreeUtilities.js",[B["Core/Color/Color.js"],B["Core/Utilities.js"]],function(W,R){var H=R.extend,V=R.isArray,$=R.isNumber,Z=R.isObject,U=R.merge,z=R.pick;return{getColor:function(I,E){var M,P,y,h,f,m,u=E.index,v=E.mapOptionsToLevel,w=E.parentColor,S=E.parentColorIndex,x=E.series,c=E.colors,g=E.siblings,r=x.points,a=x.chart.options.chart;return I&&(M=r[I.i],P=v[I.level]||{},M&&P.colorByPoint&&(h=M.index%(c?c.length:a.colorCount),y=c&&c[h]),x.chart.styledMode||(f=z(M&&M.options.color,P&&P.color,y,w&&function(t){var i=P&&P.colorVariation;return i&&i.key==="brightness"&&u&&g?W.parse(t).brighten(i.to*(u/g)).get():t}(w),x.color)),m=z(M&&M.options.colorIndex,P&&P.colorIndex,h,S,E.colorIndex)),{color:f,colorIndex:m}},getLevelOptions:function(I){var E,M,P,y,h,f,m={};if(Z(I))for(y=$(I.from)?I.from:1,f=I.levels,M={},E=Z(I.defaults)?I.defaults:{},V(f)&&(M=f.reduce(function(u,v){var w,S,x;return Z(v)&&$(v.level)&&(x=U({},v),S=z(x.levelIsConstant,E.levelIsConstant),delete x.levelIsConstant,delete x.level,w=v.level+(S?0:y-1),Z(u[w])?U(!0,u[w],x):u[w]=x),u},{})),h=$(I.to)?I.to:1,P=0;P<=h;P++)m[P]=U({},E,Z(M[P])?M[P]:{});return m},setTreeValues:function I(E,M){var P=M.before,y=M.idRoot,h=M.mapIdToNode[y],f=M.levelIsConstant!==!1,m=M.points[E.i],u=m&&m.options||{},v=[],w=0;E.levelDynamic=E.level-(f?0:h.level),E.name=z(m&&m.name,""),E.visible=y===E.id||M.visible===!0,typeof P=="function"&&(E=P(E,M)),E.children.forEach(function(x,c){var g=H({},M);H(g,{index:c,siblings:E.children.length,visible:E.visible}),x=I(x,g),v.push(x),x.visible&&(w+=x.val)});var S=z(u.value,w);return E.visible=S>=0&&(w>0||E.visible),E.children=v,E.childrenTotal=w,E.isLeaf=E.visible&&!w,E.val=S,E},updateRootId:function(I){var E,M;return Z(I)&&(M=Z(I.options)?I.options:{},E=z(I.rootNode,M.rootId,""),Z(I.userOptions)&&(I.userOptions.rootId=E),I.rootNode=E),E}}}),it(B,"Extensions/Breadcrumbs.js",[B["Core/Chart/Chart.js"],B["Core/Defaults.js"],B["Core/Globals.js"],B["Core/Utilities.js"],B["Core/FormatUtilities.js"]],function(W,R,H,V,$){var Z=R.defaultOptions,U=$.format,z=V.addEvent,I=V.objectEach,E=V.extend,M=V.fireEvent,P=V.merge,y=V.pick,h=V.defined,f=V.isString;E(Z.lang,{mainBreadcrumb:"Main"});var m=function(){function u(v,w){this.group=void 0,this.list=[],this.elementList={},this.isDirty=!0,this.level=0,this.options=void 0;var S=P(v.options.drilldown&&v.options.drilldown.drillUpButton,u.defaultBreadcrumbsOptions,v.options.navigation&&v.options.navigation.breadcrumbs,w);this.chart=v,this.options=S||{}}return u.prototype.updateProperties=function(v){this.setList(v),this.setLevel(),this.isDirty=!0},u.prototype.setList=function(v){this.list=v},u.prototype.setLevel=function(){this.level=this.list.length&&this.list.length-1},u.prototype.getLevel=function(){return this.level},u.prototype.getButtonText=function(v){var w=this.chart,S=this.options,x=w.options.lang,c=y(S.format,S.showFullPath?"{level.name}":"← {level.name}"),g=x&&y(x.drillUpText,x.mainBreadcrumb),r=S.formatter&&S.formatter(v)||U(c,{level:v.levelOptions},w)||"";return(f(r)&&!r.length||r==="← ")&&h(g)&&(r=S.showFullPath?g:"← "+g),r},u.prototype.redraw=function(){this.isDirty&&this.render(),this.group&&this.group.align(),this.isDirty=!1},u.prototype.render=function(){var v=this,w=v.chart,S=v.options;!v.group&&S&&(v.group=w.renderer.g("breadcrumbs-group").addClass("highcharts-no-tooltip highcharts-breadcrumbs").attr({zIndex:S.zIndex}).add()),S.showFullPath?this.renderFullPathButtons():this.renderSingleButton(),this.alignBreadcrumbsGroup()},u.prototype.renderFullPathButtons=function(){this.destroySingleButton(),this.resetElementListState(),this.updateListElements(),this.destroyListElements()},u.prototype.renderSingleButton=function(){var v=this,w=v.chart,S=v.list,x=v.options.buttonSpacing;this.destroyListElements();var c=v.group?v.group.getBBox().width:x,g=x,r=S[S.length-2];!w.drillUpButton&&this.level>0?w.drillUpButton=v.renderButton(r,c,g):w.drillUpButton&&(this.level>0?this.updateSingleButton():this.destroySingleButton())},u.prototype.alignBreadcrumbsGroup=function(v){var w=this;if(w.group){var S=w.options,x=S.buttonTheme,c=S.position,g=S.relativeTo==="chart"||S.relativeTo==="spacingBox"?void 0:"scrollablePlotBox",r=w.group.getBBox(),a=2*(x.padding||0)+S.buttonSpacing;c.width=r.width+a,c.height=r.height+a;var t=P(c);v&&(t.x+=v),w.options.rtl&&(t.x+=c.width),t.y=y(t.y,this.yOffset,0),w.group.align(t,!0,g)}},u.prototype.renderButton=function(v,w,S){var x=this,c=this.chart,g=x.options,r=P(g.buttonTheme),a=c.renderer.button(x.getButtonText(v),w,S,function(t){var i,o=g.events&&g.events.click;o&&(i=o.call(x,t,v)),i!==!1&&(g.showFullPath?t.newLevel=v.level:t.newLevel=x.level-1,M(x,"up",t))},r).addClass("highcharts-breadcrumbs-button").add(x.group);return c.styledMode||a.attr(g.style),a},u.prototype.renderSeparator=function(v,w){var S=this.chart,x=this.options.separator,c=S.renderer.label(x.text,v,w,void 0,void 0,void 0,!1).addClass("highcharts-breadcrumbs-separator").add(this.group);return S.styledMode||c.css(x.style),c},u.prototype.update=function(v){P(!0,this.options,v),this.destroy(),this.isDirty=!0},u.prototype.updateSingleButton=function(){var v=this.chart,w=this.list[this.level-1];v.drillUpButton&&v.drillUpButton.attr({text:this.getButtonText(w)})},u.prototype.destroy=function(){this.destroySingleButton(),this.destroyListElements(!0),this.group&&this.group.destroy(),this.group=void 0},u.prototype.destroyListElements=function(v){var w=this.elementList;I(w,function(S,x){!v&&w[x].updated||((S=w[x]).button&&S.button.destroy(),S.separator&&S.separator.destroy(),delete S.button,delete S.separator,delete w[x])}),v&&(this.elementList={})},u.prototype.destroySingleButton=function(){this.chart.drillUpButton&&(this.chart.drillUpButton.destroy(),this.chart.drillUpButton=void 0)},u.prototype.resetElementListState=function(){I(this.elementList,function(v){v.updated=!1})},u.prototype.updateListElements=function(){var v,w=this,S=w.elementList,x=w.options.buttonSpacing,c=w.list,g=w.options.rtl,r=g?-1:1,a=function(e,s){return r*e.getBBox().width+r*s},t=function(e,s,n){e.translate(s-e.getBBox().width,n)},i=w.group?a(w.group,x):x,o=x;c.forEach(function(e,s){var n,l,b=s===c.length-1;S[e.level]?(n=(v=S[e.level]).button,v.separator||b?v.separator&&b&&(v.separator.destroy(),delete v.separator):(i+=r*x,v.separator=w.renderSeparator(i,o),g&&t(v.separator,i,o),i+=a(v.separator,x)),S[e.level].updated=!0):(n=w.renderButton(e,i,o),g&&t(n,i,o),i+=a(n,x),b||(l=w.renderSeparator(i,o),g&&t(l,i,o),i+=a(l,x)),S[e.level]={button:n,separator:l,updated:!0}),n&&n.setState(b?2:0)})},u.defaultBreadcrumbsOptions={buttonTheme:{fill:"none",height:18,padding:2,"stroke-width":0,zIndex:7,states:{select:{fill:"none"}},style:{color:"#335cad"}},buttonSpacing:5,floating:!1,format:void 0,relativeTo:"plotBox",rtl:!1,position:{align:"left",verticalAlign:"top",x:0,y:void 0},separator:{text:"/",style:{color:"#666666"}},showFullPath:!0,style:{},useHTML:!1,zIndex:7},u}();return H.Breadcrumbs||(H.Breadcrumbs=m,z(W,"getMargins",function(){var u=this.breadcrumbs;if(u&&!u.options.floating&&u.level){var v=u.options,w=v.buttonTheme,S=(w.height||0)+2*(w.padding||0)+v.buttonSpacing,x=v.position.verticalAlign;x==="bottom"?(this.marginBottom=(this.marginBottom||0)+S,u.yOffset=S):x!=="middle"?(this.plotTop+=S,u.yOffset=-S):u.yOffset=void 0}}),z(W,"redraw",function(){this.breadcrumbs&&this.breadcrumbs.redraw()}),z(W,"destroy",function(){this.breadcrumbs&&(this.breadcrumbs.destroy(),this.breadcrumbs=void 0)}),z(W,"afterShowResetZoom",function(){var u=this;if(u.breadcrumbs){var v=u.resetZoomButton&&u.resetZoomButton.getBBox(),w=u.breadcrumbs.options;v&&w.position.align==="right"&&w.relativeTo==="plotBox"&&u.breadcrumbs.alignBreadcrumbsGroup(-v.width-w.buttonSpacing)}}),z(W,"selection",function(u){u.resetSelection===!0&&this.breadcrumbs&&this.breadcrumbs.alignBreadcrumbsGroup()})),m}),it(B,"Series/Treemap/TreemapComposition.js",[B["Core/Series/SeriesRegistry.js"],B["Series/Treemap/TreemapUtilities.js"],B["Core/Utilities.js"]],function(W,R,H){var V=W.series,$=H.addEvent,Z=H.extend,U=!1;$(V,"afterBindAxes",function(){var z,I=this,E=I.xAxis,M=I.yAxis;E&&M&&(I.is("treemap")?(z={endOnTick:!1,gridLineWidth:0,lineWidth:0,min:0,minPadding:0,max:R.AXIS_MAX,maxPadding:0,startOnTick:!1,title:void 0,tickPositions:[]},Z(M.options,z),Z(E.options,z),U=!0):U&&(M.setOptions(M.userOptions),E.setOptions(E.userOptions),U=!1))})}),it(B,"Series/Treemap/TreemapNode.js",[],function(){return function(){function W(){this.childrenTotal=0,this.visible=!1}return W.prototype.init=function(R,H,V,$,Z,U,z){return this.id=R,this.i=H,this.children=V,this.height=$,this.level=Z,this.series=U,this.parent=z,this},W}()}),it(B,"Series/Treemap/TreemapSeries.js",[B["Core/Color/Color.js"],B["Series/ColorMapComposition.js"],B["Core/Globals.js"],B["Core/Legend/LegendSymbol.js"],B["Core/Series/SeriesRegistry.js"],B["Series/Treemap/TreemapAlgorithmGroup.js"],B["Series/Treemap/TreemapPoint.js"],B["Series/Treemap/TreemapUtilities.js"],B["Series/TreeUtilities.js"],B["Extensions/Breadcrumbs.js"],B["Core/Utilities.js"],B["Series/Treemap/TreemapNode.js"]],function(W,R,H,V,$,Z,U,z,I,E,M,P){var y,h=this&&this.__extends||(y=function(A,N){return y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(_,L){_.__proto__=L}||function(_,L){for(var O in L)L.hasOwnProperty(O)&&(_[O]=L[O])},y(A,N)},function(A,N){function _(){this.constructor=A}y(A,N),A.prototype=N===null?Object.create(N):(_.prototype=N.prototype,new _)}),f=W.parse,m=H.noop,u=$.series,v=$.seriesTypes,w=v.column,S=v.heatmap,x=v.scatter,c=I.getColor,g=I.getLevelOptions,r=I.updateRootId,a=M.addEvent,t=M.correctFloat,i=M.defined,o=M.error,e=M.extend,s=M.fireEvent,n=M.isArray,l=M.isObject,b=M.isString,k=M.merge,D=M.pick,p=M.stableSort,C=function(A){function N(){var _=A!==null&&A.apply(this,arguments)||this;return _.axisRatio=void 0,_.data=void 0,_.mapOptionsToLevel=void 0,_.nodeMap=void 0,_.nodeList=void 0,_.options=void 0,_.points=void 0,_.rootNode=void 0,_.tree=void 0,_.level=void 0,_}return h(N,A),N.prototype.algorithmCalcPoints=function(_,L,O,j){var Y,X,G,q,Q,J=O.lW,rt=O.lH,lt=O.plot,gt=0,mt=O.elArr.length-1;L?(J=O.nW,rt=O.nH):Q=O.elArr[O.elArr.length-1],O.elArr.forEach(function(bt){(L||gt<mt)&&(O.direction===0?(Y=lt.x,X=lt.y,q=bt/(G=J)):(Y=lt.x,X=lt.y,G=bt/(q=rt)),j.push({x:Y,y:X,width:G,height:t(q)}),O.direction===0?lt.y=lt.y+q:lt.x=lt.x+G),gt+=1}),O.reset(),O.direction===0?O.width=O.width-J:O.height=O.height-rt,lt.y=lt.parent.y+(lt.parent.height-O.height),lt.x=lt.parent.x+(lt.parent.width-O.width),_&&(O.direction=1-O.direction),L||O.addElement(Q)},N.prototype.algorithmFill=function(_,L,O){var j,Y,X,G,q,Q=[],J=L.direction,rt=L.x,lt=L.y,gt=L.width,mt=L.height;return O.forEach(function(bt){j=L.width*L.height*(bt.val/L.val),Y=rt,X=lt,J===0?(gt-=G=j/(q=mt),rt+=G):(mt-=q=j/(G=gt),lt+=q),Q.push({x:Y,y:X,width:G,height:q}),_&&(J=1-J)}),Q},N.prototype.algorithmLowAspectRatio=function(_,L,O){var j,Y=[],X=this,G={x:L.x,y:L.y,parent:L},q=L.direction,Q=0,J=O.length-1,rt=new Z(L.height,L.width,q,G);return O.forEach(function(lt){j=L.width*L.height*(lt.val/L.val),rt.addElement(j),rt.lP.nR>rt.lP.lR&&X.algorithmCalcPoints(_,!1,rt,Y,G),Q===J&&X.algorithmCalcPoints(_,!0,rt,Y,G),Q+=1}),Y},N.prototype.alignDataLabel=function(_,L,O){var j=O.style;j&&!i(j.textOverflow)&&L.text&&L.getBBox().width>L.text.textWidth&&L.css({textOverflow:"ellipsis",width:j.width+="px"}),w.prototype.alignDataLabel.apply(this,arguments),_.dataLabel&&_.dataLabel.attr({zIndex:(_.node.zIndex||0)+1})},N.prototype.calculateChildrenAreas=function(_,L){var O,j,Y=this,X=Y.options,G=Y.mapOptionsToLevel[_.level+1],q=D(Y[G&&G.layoutAlgorithm]&&G.layoutAlgorithm,X.layoutAlgorithm),Q=X.alternateStartingDirection;j=_.children.filter(function(J){return!J.ignore}),G&&G.layoutStartingDirection&&(L.direction=G.layoutStartingDirection==="vertical"?0:1),O=Y[q](L,j),j.forEach(function(J,rt){var lt=O[rt];J.values=k(lt,{val:J.childrenTotal,direction:Q?1-L.direction:L.direction}),J.pointValues=k(lt,{x:lt.x/Y.axisRatio,y:z.AXIS_MAX-lt.y-lt.height,width:lt.width/Y.axisRatio}),J.children.length&&Y.calculateChildrenAreas(J,J.values)})},N.prototype.createList=function(_){var L=this.chart,O=L.breadcrumbs,j=[];if(O){var Y=0;j.push({level:Y,levelOptions:L.series[0]});for(var X=_.target.nodeMap[_.newRootId],G=[];X.parent||X.parent==="";)G.push(X),X=_.target.nodeMap[X.parent];G.reverse().forEach(function(q){j.push({level:++Y,levelOptions:q})}),j.length<=1&&(j.length=0)}return j},N.prototype.drawDataLabels=function(){var _,L,O=this,j=O.mapOptionsToLevel;O.points.filter(function(Y){return Y.node.visible}).forEach(function(Y){L=j[Y.node.level],_={style:{}},Y.node.isLeaf||(_.enabled=!1),L&&L.dataLabels&&(_=k(_,L.dataLabels),O._hasPointLabels=!0),Y.shapeArgs&&(_.style.width=Y.shapeArgs.width,Y.dataLabel&&Y.dataLabel.css({width:Y.shapeArgs.width+"px"})),Y.dlOptions=k(_,Y.options.dataLabels)}),u.prototype.drawDataLabels.call(this)},N.prototype.drawPoints=function(_){_===void 0&&(_=this.points);var L=this,O=L.chart,j=O.renderer,Y=O.styledMode,X=L.options,G=Y?{}:X.shadow,q=X.borderRadius,Q=O.pointCount<X.animationLimit,J=X.allowTraversingTree;_.forEach(function(rt){var lt=rt.node.levelDynamic,gt={},mt={},bt={},yt="level-group-"+rt.node.level,ct=!!rt.graphic,et=Q&&ct,at=rt.shapeArgs;rt.shouldDraw()&&(rt.isInside=!0,q&&(mt.r=q),k(!0,et?gt:mt,ct?at:{},Y?{}:L.pointAttribs(rt,rt.selected?"select":void 0)),L.colorAttribs&&Y&&e(bt,L.colorAttribs(rt)),L[yt]||(L[yt]=j.g(yt).attr({zIndex:1e3-(lt||0)}).add(L.group),L[yt].survive=!0)),rt.draw({animatableAttribs:gt,attribs:mt,css:bt,group:L[yt],renderer:j,shadow:G,shapeArgs:at,shapeType:rt.shapeType}),J&&rt.graphic&&(rt.drillId=X.interactByLeaf?L.drillToByLeaf(rt):L.drillToByGroup(rt))})},N.prototype.drillToByGroup=function(_){var L=!1;return _.node.level-this.nodeMap[this.rootNode].level!=1||_.node.isLeaf||(L=_.id),L},N.prototype.drillToByLeaf=function(_){var L,O=this,j=!1;if(_.node.parent!==O.rootNode&&_.node.isLeaf)for(L=_.node;!j;)(L=O.nodeMap[L.parent]).parent===O.rootNode&&(j=L.id);return j},N.prototype.drillToNode=function(_,L){o(32,!1,void 0,{"treemap.drillToNode":"use treemap.setRootNode"}),this.setRootNode(_,L)},N.prototype.drillUp=function(){var _=this,L=_.nodeMap[_.rootNode];L&&b(L.parent)&&_.setRootNode(L.parent,!0,{trigger:"traverseUpButton"})},N.prototype.getExtremes=function(){var _=u.prototype.getExtremes.call(this,this.colorValueData),L=_.dataMin,O=_.dataMax;return this.valueMin=L,this.valueMax=O,u.prototype.getExtremes.call(this)},N.prototype.getListOfParents=function(_,L){var O=n(_)?_:[],j=n(L)?L:[],Y=O.reduce(function(X,G,q){var Q=D(G.parent,"");return X[Q]===void 0&&(X[Q]=[]),X[Q].push(q),X},{"":[]});return z.eachObject(Y,function(X,G,q){G!==""&&j.indexOf(G)===-1&&(X.forEach(function(Q){q[""].push(Q)}),delete q[G])}),Y},N.prototype.getTree=function(){var _=this,L=this.data.map(function(j){return j.id}),O=_.getListOfParents(this.data,L);return _.nodeMap={},_.nodeList=[],_.buildTree("",-1,0,O)},N.prototype.buildTree=function(_,L,O,j,Y){var X,G,q=this,Q=[],J=q.points[L],rt=0;return(j[_]||[]).forEach(function(lt){G=q.buildTree(q.points[lt].id,lt,O+1,j,_),rt=Math.max(G.height+1,rt),Q.push(G)}),X=new q.NodeClass().init(_,L,Q,rt,O,q,Y),Q.forEach(function(lt){lt.parentNode=X}),q.nodeMap[X.id]=X,q.nodeList.push(X),J&&(J.node=X,X.point=J),X},N.prototype.hasData=function(){return!!this.processedXData.length},N.prototype.init=function(_,L){var O,j=this,Y=k(L.drillUpButton,L.breadcrumbs);O=a(j,"setOptions",function(X){var G=X.userOptions;i(G.allowDrillToNode)&&!i(G.allowTraversingTree)&&(G.allowTraversingTree=G.allowDrillToNode,delete G.allowDrillToNode),i(G.drillUpButton)&&!i(G.traverseUpButton)&&(G.traverseUpButton=G.drillUpButton,delete G.drillUpButton)}),u.prototype.init.call(j,_,L),delete j.opacity,j.eventsToUnbind.push(O),j.options.allowTraversingTree&&(j.eventsToUnbind.push(a(j,"click",j.onClickDrillToNode)),j.eventsToUnbind.push(a(j,"setRootNode",function(X){var G=j.chart;G.breadcrumbs&&G.breadcrumbs.updateProperties(j.createList(X))})),j.eventsToUnbind.push(a(j,"update",function(X,G){var q=this.chart.breadcrumbs;q&&X.options.breadcrumbs&&q.update(X.options.breadcrumbs)})),j.eventsToUnbind.push(a(j,"destroy",function(X){var G=this.chart;G.breadcrumbs&&(G.breadcrumbs.destroy(),X.keepEventsForUpdate||(G.breadcrumbs=void 0))}))),_.breadcrumbs||(_.breadcrumbs=new E(_,Y)),j.eventsToUnbind.push(a(_.breadcrumbs,"up",function(X){for(var G=this.level-X.newLevel,q=0;q<G;q++)j.drillUp()}))},N.prototype.onClickDrillToNode=function(_){var L=_.point,O=L&&L.drillId;b(O)&&(L.setState(""),this.setRootNode(O,!0,{trigger:"click"}))},N.prototype.pointAttribs=function(_,L){var O,j,Y=l(this.mapOptionsToLevel)?this.mapOptionsToLevel:{},X=_&&Y[_.node.level]||{},G=this.options,q=L&&G.states&&G.states[L]||{},Q=_&&_.getClassName()||"";return O={stroke:_&&_.borderColor||X.borderColor||q.borderColor||G.borderColor,"stroke-width":D(_&&_.borderWidth,X.borderWidth,q.borderWidth,G.borderWidth),dashstyle:_&&_.borderDashStyle||X.borderDashStyle||q.borderDashStyle||G.borderDashStyle,fill:_&&_.color||this.color},Q.indexOf("highcharts-above-level")!==-1?(O.fill="none",O["stroke-width"]=0):Q.indexOf("highcharts-internal-node-interactive")!==-1?(j=D(q.opacity,G.opacity),O.fill=f(O.fill).setOpacity(j).get(),O.cursor="pointer"):Q.indexOf("highcharts-internal-node")!==-1?O.fill="none":L&&(O.fill=f(O.fill).brighten(q.brightness).get()),O},N.prototype.setColorRecursive=function(_,L,O,j,Y){var X,G,q=this,Q=q&&q.chart,J=Q&&Q.options&&Q.options.colors;_&&(X=c(_,{colors:J,index:j,mapOptionsToLevel:q.mapOptionsToLevel,parentColor:L,parentColorIndex:O,series:q,siblings:Y}),(G=q.points[_.i])&&(G.color=X.color,G.colorIndex=X.colorIndex),(_.children||[]).forEach(function(rt,lt){q.setColorRecursive(rt,X.color,X.colorIndex,lt,_.children.length)}))},N.prototype.setPointValues=function(){var _=this,L=_.points,O=_.xAxis,j=_.yAxis,Y=_.chart.styledMode;L.forEach(function(X){var G=X.node,q=G.pointValues,Q=G.visible;if(q&&Q){var J=q.height,rt=q.width,lt=q.x,gt=q.y,mt=function(dt){return Y?0:(_.pointAttribs(dt)["stroke-width"]||0)%2/2}(X),bt=Math.round(O.toPixels(lt,!0))-mt,yt=Math.round(O.toPixels(lt+rt,!0))-mt,ct=Math.round(j.toPixels(gt,!0))-mt,et=Math.round(j.toPixels(gt+J,!0))-mt,at={x:Math.min(bt,yt),y:Math.min(ct,et),width:Math.abs(yt-bt),height:Math.abs(et-ct)};X.plotX=at.x+at.width/2,X.plotY=at.y+at.height/2,X.shapeArgs=at}else delete X.plotX,delete X.plotY})},N.prototype.setRootNode=function(_,L,O){var j=this,Y=e({newRootId:_,previousRootId:j.rootNode,redraw:D(L,!0),series:j},O);s(j,"setRootNode",Y,function(X){var G=X.series;G.idPreviousRoot=X.previousRootId,G.rootNode=X.newRootId,G.isDirty=!0,X.redraw&&G.chart.redraw()})},N.prototype.setState=function(_){this.options.inactiveOtherPoints=!0,u.prototype.setState.call(this,_,!1),this.options.inactiveOtherPoints=!1},N.prototype.setTreeValues=function(_){var L,O=this,j=O.options,Y=O.rootNode,X=O.nodeMap[Y],G=!z.isBoolean(j.levelIsConstant)||j.levelIsConstant,q=0,Q=[],J=O.points[_.i];return _.children.forEach(function(rt){rt=O.setTreeValues(rt),Q.push(rt),rt.ignore||(q+=rt.val)}),p(Q,function(rt,lt){return(rt.sortIndex||0)-(lt.sortIndex||0)}),L=D(J&&J.options.value,q),J&&(J.value=L),e(_,{children:Q,childrenTotal:q,ignore:!(D(J&&J.visible,!0)&&L>0),isLeaf:_.visible&&!q,levelDynamic:_.level-(G?0:X.level),name:D(J&&J.name,""),sortIndex:D(J&&J.sortIndex,-L),val:L}),_},N.prototype.sliceAndDice=function(_,L){return this.algorithmFill(!0,_,L)},N.prototype.squarified=function(_,L){return this.algorithmLowAspectRatio(!0,_,L)},N.prototype.strip=function(_,L){return this.algorithmLowAspectRatio(!1,_,L)},N.prototype.stripes=function(_,L){return this.algorithmFill(!1,_,L)},N.prototype.translate=function(){var _,L,O,j,Y,X=this,G=X.options,q=r(X);u.prototype.translate.call(X),j=X.tree=X.getTree(),_=X.nodeMap[q],q===""||_&&_.children.length||(X.setRootNode("",!1),q=X.rootNode,_=X.nodeMap[q]),X.mapOptionsToLevel=g({from:_.level+1,levels:G.levels,to:j.height,defaults:{levelIsConstant:X.options.levelIsConstant,colorByPoint:G.colorByPoint}}),z.recursive(X.nodeMap[X.rootNode],function(Q){var J=!1,rt=Q.parent;return Q.visible=!0,(rt||rt==="")&&(J=X.nodeMap[rt]),J}),z.recursive(X.nodeMap[X.rootNode].children,function(Q){var J=!1;return Q.forEach(function(rt){rt.visible=!0,rt.children.length&&(J=(J||[]).concat(rt.children))}),J}),X.setTreeValues(j),X.axisRatio=X.xAxis.len/X.yAxis.len,X.nodeMap[""].pointValues=L={x:0,y:0,width:z.AXIS_MAX,height:z.AXIS_MAX},X.nodeMap[""].values=O=k(L,{width:L.width*X.axisRatio,direction:G.layoutStartingDirection==="vertical"?0:1,val:j.val}),X.calculateChildrenAreas(j,O),X.colorAxis||G.colorByPoint||X.setColorRecursive(X.tree),G.allowTraversingTree&&(Y=_.pointValues,X.xAxis.setExtremes(Y.x,Y.x+Y.width,!1),X.yAxis.setExtremes(Y.y,Y.y+Y.height,!1),X.xAxis.setScale(),X.yAxis.setScale()),X.setPointValues()},N.defaultOptions=k(x.defaultOptions,{allowTraversingTree:!1,animationLimit:250,borderRadius:0,showInLegend:!1,marker:void 0,colorByPoint:!1,dataLabels:{defer:!1,enabled:!0,formatter:function(){var _=this&&this.point?this.point:{};return b(_.name)?_.name:""},inside:!0,verticalAlign:"middle"},tooltip:{headerFormat:"",pointFormat:"<b>{point.name}</b>: {point.value}<br/>"},ignoreHiddenPoint:!0,layoutAlgorithm:"sliceAndDice",layoutStartingDirection:"vertical",alternateStartingDirection:!1,levelIsConstant:!0,traverseUpButton:{position:{align:"right",x:-10,y:10}},borderColor:"#e6e6e6",borderWidth:1,colorKey:"colorValue",opacity:.15,states:{hover:{borderColor:"#999999",brightness:S?0:.1,halo:!1,opacity:.75,shadow:!1}}}),N}(x);return e(C.prototype,{buildKDTree:m,colorAttribs:R.seriesMembers.colorAttribs,colorKey:"colorValue",directTouch:!0,drawLegendSymbol:V.drawRectangle,getExtremesFromAll:!0,getSymbol:m,optionalAxis:"colorAxis",parallelArrays:["x","y","value","colorValue"],pointArrayMap:["value"],pointClass:U,NodeClass:P,trackerGroups:["group","dataLabelsGroup"],utils:{recursive:z.recursive}}),R.compose(C),$.registerSeriesType("treemap",C),C}),it(B,"Series/Sunburst/SunburstPoint.js",[B["Core/Series/SeriesRegistry.js"],B["Core/Utilities.js"]],function(W,R){var H,V=this&&this.__extends||(H=function(E,M){return H=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(P,y){P.__proto__=y}||function(P,y){for(var h in y)y.hasOwnProperty(h)&&(P[h]=y[h])},H(E,M)},function(E,M){function P(){this.constructor=E}H(E,M),E.prototype=M===null?Object.create(M):(P.prototype=M.prototype,new P)}),$=W.series.prototype.pointClass,Z=W.seriesTypes.treemap.prototype.pointClass,U=R.correctFloat,z=R.extend,I=function(E){function M(){var P=E!==null&&E.apply(this,arguments)||this;return P.node=void 0,P.options=void 0,P.series=void 0,P.shapeExisting=void 0,P.shapeType=void 0,P}return V(M,E),M.prototype.getDataLabelPath=function(P){var y,h=this.series.chart.renderer,f=this.shapeExisting,m=f.start,u=f.end,v=m+(u-m)/2,w=v<0&&v>-Math.PI||v>Math.PI,S=f.r+(P.options.distance||0);return m===-Math.PI/2&&U(u)===U(1.5*Math.PI)&&(m=-Math.PI+Math.PI/360,u=-Math.PI/360,w=!0),u-m>Math.PI&&(w=!1,y=!0),this.dataLabelPath&&(this.dataLabelPath=this.dataLabelPath.destroy()),this.dataLabelPath=h.arc({open:!0,longArc:y?1:0}).attr({start:w?m:u,end:w?u:m,clockwise:+w,x:f.x,y:f.y,r:(S+f.innerR)/2}).add(h.defs),this.dataLabelPath},M.prototype.isValid=function(){return!0},M}(Z);return z(I.prototype,{getClassName:$.prototype.getClassName,haloPath:$.prototype.haloPath,setState:$.prototype.setState}),I}),it(B,"Series/Sunburst/SunburstUtilities.js",[B["Core/Series/SeriesRegistry.js"],B["Core/Utilities.js"]],function(W,R){var H,V=W.seriesTypes.treemap,$=R.isNumber,Z=R.isObject,U=R.merge;return function(z){function I(E,M){var P,y=[];if($(E)&&$(M)&&E<=M)for(P=E;P<=M;P++)y.push(P);return y}z.recursive=V.prototype.utils.recursive,z.calculateLevelSizes=function(E,M){var P,y,h,f,m,u,v,w=Z(M)?M:{},S=0;return Z(E)&&(P=U({},E),u=$(w.from)?w.from:0,v=$(w.to)?w.to:0,h=I(u,v),f=Object.keys(P).filter(function(x){return h.indexOf(+x)===-1}),y=m=$(w.diffRadius)?w.diffRadius:0,h.forEach(function(x){var c=P[x],g=c.levelSize.unit,r=c.levelSize.value;g==="weight"?S+=r:g==="percentage"?(c.levelSize={unit:"pixels",value:r/100*y},m-=c.levelSize.value):g==="pixels"&&(m-=r)}),h.forEach(function(x){var c,g=P[x];g.levelSize.unit==="weight"&&(c=g.levelSize.value,P[x].levelSize={unit:"pixels",value:c/S*m})}),f.forEach(function(x){P[x].levelSize={value:0,unit:"pixels"}})),P},z.getLevelFromAndTo=function(E){var M=E.level;return{from:M>0?M:1,to:M+E.height}},z.range=I}(H||(H={})),H}),it(B,"Series/Sunburst/SunburstNode.js",[B["Series/Treemap/TreemapNode.js"]],function(W){var R,H=this&&this.__extends||(R=function($,Z){return R=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(U,z){U.__proto__=z}||function(U,z){for(var I in z)z.hasOwnProperty(I)&&(U[I]=z[I])},R($,Z)},function($,Z){function U(){this.constructor=$}R($,Z),$.prototype=Z===null?Object.create(Z):(U.prototype=Z.prototype,new U)}),V=function($){function Z(){return $!==null&&$.apply(this,arguments)||this}return H(Z,$),Z}(W);return V}),it(B,"Series/Sunburst/SunburstSeries.js",[B["Series/CenteredUtilities.js"],B["Core/Globals.js"],B["Core/Series/SeriesRegistry.js"],B["Series/Sunburst/SunburstPoint.js"],B["Series/Sunburst/SunburstUtilities.js"],B["Series/TreeUtilities.js"],B["Core/Utilities.js"],B["Series/Sunburst/SunburstNode.js"]],function(W,R,H,V,$,Z,U,z){var I,E=this&&this.__extends||(I=function(D,p){return I=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(C,A){C.__proto__=A}||function(C,A){for(var N in A)A.hasOwnProperty(N)&&(C[N]=A[N])},I(D,p)},function(D,p){function C(){this.constructor=D}I(D,p),D.prototype=p===null?Object.create(p):(C.prototype=p.prototype,new C)}),M=W.getCenter,P=W.getStartAndEndRadians,y=R.noop,h=H.series,f=H.seriesTypes,m=f.column,u=f.treemap,v=Z.getColor,w=Z.getLevelOptions,S=Z.setTreeValues,x=Z.updateRootId,c=U.defined,g=U.error,r=U.extend,a=U.isNumber,t=U.isObject,i=U.isString,o=U.merge,e=U.splat,s=180/Math.PI,n=function(D,p,C,A){return{x:D+Math.cos(C)*A,y:p+Math.sin(C)*A}};function l(D,p,C){var A;return D.node.isLeaf||(A=p===D.id?C[p].parent:D.id),A}function b(D,p){var C=p.mapIdToNode,A=D.parent,N=A?C[A]:void 0,_=p.series,L=_.chart,O=_.points[D.i],j=_.options.colors||L&&L.options.colors,Y=v(D,{colors:j,colorIndex:_.colorIndex,index:p.index,mapOptionsToLevel:p.mapOptionsToLevel,parentColor:N&&N.color,parentColorIndex:N&&N.colorIndex,series:p.series,siblings:p.siblings});return D.color=Y.color,D.colorIndex=Y.colorIndex,O&&(O.color=D.color,O.colorIndex=D.colorIndex,D.sliced=D.id!==p.idRoot&&O.sliced),D}var k=function(D){function p(){var C=D!==null&&D.apply(this,arguments)||this;return C.center=void 0,C.data=void 0,C.mapOptionsToLevel=void 0,C.nodeMap=void 0,C.options=void 0,C.points=void 0,C.shapeRoot=void 0,C.startAndEndRadians=void 0,C.tree=void 0,C}return E(p,D),p.prototype.alignDataLabel=function(C,A,N){if(!N.textPath||!N.textPath.enabled)return D.prototype.alignDataLabel.apply(this,arguments)},p.prototype.animate=function(C){var A,N=this.chart,_=[N.plotWidth/2,N.plotHeight/2],L=N.plotLeft,O=N.plotTop,j=this.group;C?(A={translateX:_[0]+L,translateY:_[1]+O,scaleX:.001,scaleY:.001,rotation:10,opacity:.01},j.attr(A)):(A={translateX:L,translateY:O,scaleX:1,scaleY:1,rotation:0,opacity:1},j.animate(A,this.options.animation))},p.prototype.drawPoints=function(){var C,A=this,N=A.mapOptionsToLevel,_=A.shapeRoot,L=A.group,O=A.hasRendered,j=A.rootNode,Y=A.idPreviousRoot,X=A.nodeMap,G=X[Y],q=G&&G.shapeArgs,Q=A.points,J=A.startAndEndRadians,rt=A.chart,lt=rt&&rt.options&&rt.options.chart||{},gt=typeof lt.animation!="boolean"||lt.animation,mt=A.center,bt={x:mt[0],y:mt[1]},yt=mt[3]/2,ct=A.chart.renderer,et=!1,at=!1,dt=!!(gt&&O&&j!==Y&&A.dataLabelsGroup);dt&&(A.dataLabelsGroup.attr({opacity:0}),C=function(){var vt=A;et=!0,vt.dataLabelsGroup&&vt.dataLabelsGroup.animate({opacity:1,visibility:"inherit"})}),Q.forEach(function(vt){var Ct,xt,wt=vt.node,Mt=N[wt.level],St=vt.shapeExisting||{},Tt=wt.shapeArgs||{},Lt=!(!wt.visible||!wt.shapeArgs);Ct=O&&gt?function(Pt,Dt){var jt=Dt.point,Ot=Dt.radians,It=Dt.innerR,Bt=Dt.idRoot,Zt=Dt.idPreviousRoot,zt=Dt.shapeExisting,Ht=Dt.shapeRoot,Kt=Dt.shapePreviousRoot,me=Dt.visible,Ut={},te={end:Pt.end,start:Pt.start,innerR:Pt.innerR,r:Pt.r,x:Pt.x,y:Pt.y};return me?!jt.graphic&&Kt&&((Ut=Bt===jt.id?{start:Ot.start,end:Ot.end}:Kt.end<=Pt.start?{start:Ot.end,end:Ot.end}:{start:Ot.start,end:Ot.start}).innerR=Ut.r=It):jt.graphic&&(Zt===jt.id?te={innerR:It,r:It}:Ht&&(te=Ht.end<=zt.start?{innerR:It,r:It,start:Ot.end,end:Ot.end}:{innerR:It,r:It,start:Ot.start,end:Ot.start})),{from:Ut,to:te}}(Tt,{center:bt,point:vt,radians:J,innerR:yt,idRoot:j,idPreviousRoot:Y,shapeExisting:St,shapeRoot:_,shapePreviousRoot:q,visible:Lt}):{to:Tt,from:{}},r(vt,{shapeExisting:Tt,tooltipPos:[Tt.plotX,Tt.plotY],drillId:l(vt,j,X),name:""+(vt.name||vt.id||vt.index),plotX:Tt.plotX,plotY:Tt.plotY,value:wt.val,isInside:Lt,isNull:!Lt}),vt.dlOptions=function(Pt){var Dt,jt,Ot=Pt.point,It=t(Pt.shapeArgs)?Pt.shapeArgs:{},Bt=t(Pt.optionsPoint)?Pt.optionsPoint.dataLabels:{},Zt=e(t(Pt.level)?Pt.level.dataLabels:{})[0],zt=o({style:{}},Zt,Bt),Ht=zt.rotationMode;return a(zt.rotation)||(Ht!=="auto"&&Ht!=="circular"||(Ot.innerArcLength<1&&Ot.outerArcLength>It.radius?(Dt=0,Ot.dataLabelPath&&Ht==="circular"&&(zt.textPath={enabled:!0})):Ot.innerArcLength>1&&Ot.outerArcLength>1.5*It.radius?Ht==="circular"?zt.textPath={enabled:!0,attributes:{dy:5}}:Ht="parallel":(Ot.dataLabel&&Ot.dataLabel.textPath&&Ht==="circular"&&(zt.textPath={enabled:!1}),Ht="perpendicular")),Ht!=="auto"&&Ht!=="circular"&&(Dt=It.end-(It.end-It.start)/2),Ht==="parallel"?zt.style.width=Math.min(2.5*It.radius,(Ot.outerArcLength+Ot.innerArcLength)/2):!c(zt.style.width)&&It.radius&&(zt.style.width=Ot.node.level===1?2*It.radius:It.radius),Ht==="perpendicular"&&Ot.series.chart.renderer.fontMetrics(zt.style.fontSize).h>Ot.outerArcLength&&(zt.style.width=1),zt.style.width=Math.max(zt.style.width-2*(zt.padding||0),1),jt=Dt*s%180,Ht==="parallel"&&(jt-=90),jt>90?jt-=180:jt<-90&&(jt+=180),zt.rotation=jt),zt.textPath&&(Ot.shapeExisting.innerR===0&&zt.textPath.enabled?(zt.rotation=0,zt.textPath.enabled=!1,zt.style.width=Math.max(2*Ot.shapeExisting.r-2*(zt.padding||0),1)):Ot.dlOptions&&Ot.dlOptions.textPath&&!Ot.dlOptions.textPath.enabled&&Ht==="circular"&&(zt.textPath.enabled=!0),zt.textPath.enabled&&(zt.rotation=0,zt.style.width=Math.max((Ot.outerArcLength+Ot.innerArcLength)/2-2*(zt.padding||0),1))),zt.rotation===0&&(zt.rotation=.001),zt}({point:vt,level:Mt,optionsPoint:vt.options,shapeArgs:Tt}),!at&&Lt&&(at=!0,xt=C),vt.draw({animatableAttribs:Ct.to,attribs:r(Ct.from,!rt.styledMode&&A.pointAttribs(vt,vt.selected&&"select")),onComplete:xt,group:L,renderer:ct,shapeType:"arc",shapeArgs:Tt})}),dt&&at?(A.hasRendered=!1,A.options.dataLabels.defer=!0,h.prototype.drawDataLabels.call(A),A.hasRendered=!0,et&&C()):h.prototype.drawDataLabels.call(A)},p.prototype.layoutAlgorithm=function(C,A,N){var _=C.start,L=C.end-_,O=C.val,j=C.x,Y=C.y,X=N&&t(N.levelSize)&&a(N.levelSize.value)?N.levelSize.value:0,G=C.r,q=G+X,Q=N&&a(N.slicedOffset)?N.slicedOffset:0;return(A||[]).reduce(function(J,rt){var lt=1/O*rt.val*L,gt=n(j,Y,_+lt/2,Q),mt={x:rt.sliced?gt.x:j,y:rt.sliced?gt.y:Y,innerR:G,r:q,radius:X,start:_,end:_+lt};return J.push(mt),_=mt.end,J},[])},p.prototype.setShapeArgs=function(C,A,N){var _,L=C.level+1,O=N[L],j=C.children.filter(function(Y){return Y.visible});_=this.layoutAlgorithm(A,j,O),j.forEach(function(Y,X){var G=_[X],q=G.start+(G.end-G.start)/2,Q=G.innerR+(G.r-G.innerR)/2,J=G.end-G.start,rt=G.innerR===0&&J>6.28?{x:G.x,y:G.y}:n(G.x,G.y,q,Q),lt=Y.val?Y.childrenTotal>Y.val?Y.childrenTotal:Y.val:Y.childrenTotal;this.points[Y.i]&&(this.points[Y.i].innerArcLength=J*G.innerR,this.points[Y.i].outerArcLength=J*G.r),Y.shapeArgs=o(G,{plotX:rt.x,plotY:rt.y+4*Math.abs(Math.cos(q))}),Y.values=o(G,{val:lt}),Y.children.length&&this.setShapeArgs(Y,Y.values,N)},this)},p.prototype.translate=function(){var C,A,N,_,L=this,O=L.options,j=L.center=L.getCenter(),Y=L.startAndEndRadians=P(O.startAngle,O.endAngle),X=j[3]/2,G=j[2]/2-X,q=x(L),Q=L.nodeMap,J=Q&&Q[q],rt={};L.shapeRoot=J&&J.shapeArgs,h.prototype.translate.call(L),N=L.tree=L.getTree(),J=(Q=L.nodeMap)[q],A=Q[i(J.parent)?J.parent:""];var lt=$.getLevelFromAndTo(J),gt=lt.from,mt=lt.to;C=w({from:gt,levels:L.options.levels,to:mt,defaults:{colorByPoint:O.colorByPoint,dataLabels:O.dataLabels,levelIsConstant:O.levelIsConstant,levelSize:O.levelSize,slicedOffset:O.slicedOffset}}),C=$.calculateLevelSizes(C,{diffRadius:G,from:gt,to:mt}),S(N,{before:b,idRoot:q,levelIsConstant:O.levelIsConstant,mapOptionsToLevel:C,mapIdToNode:Q,points:L.points,series:L}),_=Q[""].shapeArgs={end:Y.end,r:X,start:Y.start,val:J.val,x:j[0],y:j[1]},this.setShapeArgs(A,_,C),L.mapOptionsToLevel=C,L.data.forEach(function(bt){rt[bt.id]&&g(31,!1,L.chart),rt[bt.id]=!0}),rt={}},p.defaultOptions=o(u.defaultOptions,{center:["50%","50%"],colorByPoint:!1,opacity:1,dataLabels:{allowOverlap:!0,defer:!0,rotationMode:"auto",style:{textOverflow:"ellipsis"}},rootId:void 0,levelIsConstant:!0,levelSize:{value:1,unit:"weight"},slicedOffset:10}),p}(u);return r(k.prototype,{drawDataLabels:y,getCenter:M,onPointSupported:!0,pointAttribs:m.prototype.pointAttribs,pointClass:V,NodeClass:z,utils:$}),H.registerSeriesType("sunburst",k),k}),it(B,"masters/modules/sunburst.src.js",[],function(){})},ot.exports?(ut.default=ut,ot.exports=ut):(pt=[st(4783)],(ht=function(ft){return ut(ft),ut.Highcharts=ft,ut}.apply(nt,pt))===void 0||(ot.exports=ht))},6545:function(ot,nt,st){var pt=this&&this.__importDefault||function(ft){return ft&&ft.__esModule?ft:{default:ft}};Object.defineProperty(nt,"__esModule",{value:!0});var ht=pt(st(605)),ut={xAxis:{labels:{style:{color:ht.default.labelColor,fontFamily:ht.default.fontFamily}},title:{style:{color:ht.default.textColor,fontFamily:ht.default.fontFamily}},crosshair:!1},yAxis:{labels:{style:{color:ht.default.labelColor,fontFamily:ht.default.fontFamily}},title:{style:{color:ht.default.textColor,fontFamily:ht.default.fontFamily}},crosshair:!1},zAxis:{labels:{style:{color:ht.default.labelColor,fontFamily:ht.default.fontFamily}},title:{style:{color:ht.default.textColor,fontFamily:ht.default.fontFamily}}}};nt.default=ut},6660:(ot,nt,st)=>{var pt,ht,ut;ut=function(ft){var B=ft?ft._modules:{};function it(W,R,H,V){W.hasOwnProperty(R)||(W[R]=V.apply(null,H),typeof CustomEvent=="function"&&window.dispatchEvent(new CustomEvent("HighchartsModuleLoaded",{detail:{path:R,module:W[R]}})))}it(B,"Core/HttpUtilities.js",[B["Core/Globals.js"],B["Core/Utilities.js"]],function(W,R){var H=W.doc,V=R.createElement,$=R.discardElement,Z=R.merge,U=R.objectEach,z={ajax:function(I){var E={json:"application/json",xml:"application/xml",text:"text/plain",octet:"application/octet-stream"},M=new XMLHttpRequest;function P(y,h){I.error&&I.error(y,h)}if(!I.url)return!1;M.open((I.type||"get").toUpperCase(),I.url,!0),I.headers&&I.headers["Content-Type"]||M.setRequestHeader("Content-Type",E[I.dataType||"json"]||E.text),U(I.headers,function(y,h){M.setRequestHeader(h,y)}),I.responseType&&(M.responseType=I.responseType),M.onreadystatechange=function(){var y;if(M.readyState===4){if(M.status===200){if(I.responseType!=="blob"&&(y=M.responseText,I.dataType==="json"))try{y=JSON.parse(y)}catch(h){if(h instanceof Error)return P(M,h)}return I.success&&I.success(y,M)}P(M,M.responseText)}},I.data&&typeof I.data!="string"&&(I.data=JSON.stringify(I.data)),M.send(I.data)},getJSON:function(I,E){z.ajax({url:I,success:E,dataType:"json",headers:{"Content-Type":"text/plain"}})},post:function(I,E,M){var P=V("form",Z({method:"post",action:I,enctype:"multipart/form-data"},M),{display:"none"},H.body);U(E,function(y,h){V("input",{type:"hidden",name:h,value:y},void 0,P)}),P.submit(),$(P)}};return z}),it(B,"Extensions/Data.js",[B["Core/Chart/Chart.js"],B["Core/Defaults.js"],B["Core/Globals.js"],B["Core/HttpUtilities.js"],B["Core/Series/Point.js"],B["Core/Series/SeriesRegistry.js"],B["Core/Utilities.js"]],function(W,R,H,V,$,Z,U){var z=R.getOptions,I=H.doc,E=V.ajax,M=Z.seriesTypes,P=U.addEvent,y=U.defined,h=U.extend,f=U.fireEvent,m=U.isNumber,u=U.merge,v=U.objectEach,w=U.pick,S=U.splat;function x(r){return!!(r&&(r.rowsURL||r.csvURL||r.columnsURL))}var c=function(){function r(a,t,i){t===void 0&&(t={}),this.rowsToColumns=r.rowsToColumns,this.dateFormats={"YYYY/mm/dd":{regex:/^([0-9]{4})[\-\/\.]([0-9]{1,2})[\-\/\.]([0-9]{1,2})$/,parser:function(o){return o?Date.UTC(+o[1],o[2]-1,+o[3]):NaN}},"dd/mm/YYYY":{regex:/^([0-9]{1,2})[\-\/\.]([0-9]{1,2})[\-\/\.]([0-9]{4})$/,parser:function(o){return o?Date.UTC(+o[3],o[2]-1,+o[1]):NaN},alternative:"mm/dd/YYYY"},"mm/dd/YYYY":{regex:/^([0-9]{1,2})[\-\/\.]([0-9]{1,2})[\-\/\.]([0-9]{4})$/,parser:function(o){return o?Date.UTC(+o[3],o[1]-1,+o[2]):NaN}},"dd/mm/YY":{regex:/^([0-9]{1,2})[\-\/\.]([0-9]{1,2})[\-\/\.]([0-9]{2})$/,parser:function(o){if(!o)return NaN;var e=new Date,s=+o[3];return s>e.getFullYear()-2e3?s+=1900:s+=2e3,Date.UTC(s,o[2]-1,+o[1])},alternative:"mm/dd/YY"},"mm/dd/YY":{regex:/^([0-9]{1,2})[\-\/\.]([0-9]{1,2})[\-\/\.]([0-9]{2})$/,parser:function(o){return o?Date.UTC(+o[3]+2e3,o[1]-1,+o[2]):NaN}}},this.chart=i,this.chartOptions=t,this.options=a,this.rawColumns=[],this.init(a,t,i)}return r.data=function(a,t,i){return t===void 0&&(t={}),new r(a,t,i)},r.rowsToColumns=function(a){var t,i,o,e,s;if(a)for(s=[],i=a.length,t=0;t<i;t++)for(e=a[t].length,o=0;o<e;o++)s[o]||(s[o]=[]),s[o][t]=a[t][o];return s},r.prototype.init=function(a,t,i){var o,e=a.decimalPoint;t&&(this.chartOptions=t),i&&(this.chart=i),e!=="."&&e!==","&&(e=void 0),this.options=a,this.columns=a.columns||this.rowsToColumns(a.rows)||[],this.firstRowAsNames=w(a.firstRowAsNames,this.firstRowAsNames,!0),this.decimalRegex=e&&new RegExp("^(-?[0-9]+)"+e+"([0-9]+)$"),this.liveDataTimeout!==void 0&&clearTimeout(this.liveDataTimeout),this.rawColumns=[],this.columns.length&&(this.dataFound(),o=!x(a)),o||(o=this.fetchLiveData()),o||(o=!!this.parseCSV().length),o||(o=!!this.parseTable().length),o||(o=this.parseGoogleSpreadsheet()),!o&&a.afterComplete&&a.afterComplete()},r.prototype.getColumnDistribution=function(){var a,t=this.chartOptions,i=this.options,o=[],e=function(C){return(M[C||"line"].prototype.pointArrayMap||[0]).length},s=function(C){return M[C||"line"].prototype.pointArrayMap},n=t&&t.chart&&t.chart.type,l=[],b=[],k=i&&i.seriesMapping||t&&t.series&&t.series.map(function(){return{x:0}})||[],D=0;(t&&t.series||[]).forEach(function(C){l.push(e(C.type||n))}),k.forEach(function(C){o.push(C.x||0)}),o.length===0&&o.push(0),k.forEach(function(C){var A=new g,N=l[D]||e(n),_=(t&&t.series||[])[D]||{},L=s(_.type||n),O=L||["y"];for((y(C.x)||_.isCartesian||!L)&&A.addColumnReader(C.x,"x"),v(C,function(j,Y){Y!=="x"&&A.addColumnReader(j,Y)}),a=0;a<N;a++)A.hasReader(O[a])||A.addColumnReader(void 0,O[a]);b.push(A),D++});var p=s(n);p===void 0&&(p=["y"]),this.valueCount={global:e(n),xColumns:o,individual:l,seriesBuilders:b,globalPointArrayMap:p}},r.prototype.dataFound=function(){this.options.switchRowsAndColumns&&(this.columns=this.rowsToColumns(this.columns)),this.getColumnDistribution(),this.parseTypes(),this.parsed()!==!1&&this.complete()},r.prototype.parseCSV=function(a){var t,i,o=this,e=this.columns=[],s=a||this.options,n=s.startColumn!==void 0&&s.startColumn?s.startColumn:0,l=s.endColumn||Number.MAX_VALUE,b=[],k={",":0,";":0," ":0},D=s.csv,p=s.startRow!==void 0&&s.startRow?s.startRow:0,C=s.endRow||Number.MAX_VALUE,A=0;function N(L,O,j,Y){var X=0,G="",q="",Q="",J="",rt=0,lt=0;function gt(yt){G=L[yt],q=L[yt-1],Q=L[yt+1]}function mt(yt){b.length<lt+1&&b.push([yt]),b[lt][b[lt].length-1]!==yt&&b[lt].push(yt)}function bt(){if(n>rt||rt>l)return++rt,void(J="");!isNaN(parseFloat(J))&&isFinite(J)?(J=parseFloat(J),mt("number")):isNaN(Date.parse(J))?mt("string"):(J=J.replace(/\//g,"-"),mt("date")),e.length<lt+1&&e.push([]),e[lt][O]=J,J="",++lt,++rt}if(L.trim().length&&L.trim()[0]!=="#"){for(;X<L.length;X++)if(gt(X),G==='"')for(gt(++X);X<L.length&&(G!=='"'||q==='"'||Q==='"');)(G!=='"'||G==='"'&&q!=='"')&&(J+=G),gt(++X);else G===t?bt():J+=G;bt()}}if(D&&s.beforeParse&&(D=s.beforeParse.call(this,D)),D){i=D.replace(/\r\n/g,`
4
+ `).replace(/\r/g,`
5
+ `).split(s.lineDelimiter||`
6
+ `),(!p||p<0)&&(p=0),(!C||C>=i.length)&&(C=i.length-1),s.itemDelimiter?t=s.itemDelimiter:(t=null,t=function(L){var O,j=0,Y=0;return L.some(function(X,G){var q,Q,J,rt=!1,lt="";if(G>13)return!0;for(var gt=0;gt<X.length;gt++){if(q=X[gt],Q=X[gt+1],J=X[gt-1],q==="#")return;if(q==='"')if(rt){if(J!=='"'&&Q!=='"'){for(;Q===" "&&gt<X.length;)Q=X[++gt];k[Q]!==void 0&&k[Q]++,rt=!1}}else rt=!0;else k[q]!==void 0?(lt=lt.trim(),isNaN(Date.parse(lt))&&!isNaN(lt)&&isFinite(lt)||k[q]++,lt=""):lt+=q;q===","&&Y++,q==="."&&j++}}),O=k[";"]>k[","]?";":",",s.decimalPoint||(s.decimalPoint=j>Y?".":",",o.decimalRegex=new RegExp("^(-?[0-9]+)"+s.decimalPoint+"([0-9]+)$")),O}(i));var _=0;for(A=p;A<=C;A++)i[A][0]==="#"?_++:N(i[A],A-p-_);s.columnTypes&&s.columnTypes.length!==0||!b.length||!b[0].length||b[0][1]!=="date"||s.dateFormat||(s.dateFormat=function(L,O){var j,Y,X,G="YYYY/mm/dd",q=[],Q=[],J=[],rt=0,lt=!1;for((!O||O>L.length)&&(O=L.length);rt<O;rt++)if(L[rt]!==void 0&&L[rt]&&L[rt].length)for(j=L[rt].trim().replace(/\//g," ").replace(/\-/g," ").replace(/\./g," ").split(" "),J=["","",""],X=0;X<j.length;X++)X<J.length&&(j[X]=parseInt(j[X],10),j[X]&&(Q[X]=!Q[X]||Q[X]<j[X]?j[X]:Q[X],q[X]!==void 0?q[X]!==j[X]&&(q[X]=!1):q[X]=j[X],j[X]>31?j[X]<100?J[X]="YY":J[X]="YYYY":j[X]>12&&j[X]<=31?(J[X]="dd",lt=!0):J[X].length||(J[X]="mm")));if(lt){for(X=0;X<q.length;X++)q[X]!==!1?Q[X]>12&&J[X]!=="YY"&&J[X]!=="YYYY"&&(J[X]="YY"):Q[X]>12&&J[X]==="mm"&&(J[X]="dd");return J.length===3&&J[1]==="dd"&&J[2]==="dd"&&(J[2]="YY"),Y=J.join("/"),(s.dateFormats||o.dateFormats)[Y]?Y:(f("deduceDateFailed"),G)}return G}(e[0])),this.dataFound()}return e},r.prototype.parseTable=function(){var a=this.options,t=this.columns||[],i=a.startRow||0,o=a.endRow||Number.MAX_VALUE,e=a.startColumn||0,s=a.endColumn||Number.MAX_VALUE;if(a.table){var n=a.table;typeof n=="string"&&(n=I.getElementById(n)),[].forEach.call(n.getElementsByTagName("tr"),function(l,b){b>=i&&b<=o&&[].forEach.call(l.children,function(k,D){var p=t[D-e],C=1;if((k.tagName==="TD"||k.tagName==="TH")&&D>=e&&D<=s)for(t[D-e]||(t[D-e]=[]),t[D-e][b-i]=k.innerHTML;b-i>=C&&p[b-i-C]===void 0;)p[b-i-C]=null,C++})}),this.dataFound()}return t},r.prototype.fetchLiveData=function(){var a=this,t=this.chart,i=this.options,o=i.enablePolling,e=u(i),s=0,n=1e3*(i.dataRefreshRate||2);return!!x(i)&&(n<1e3&&(n=1e3),delete i.csvURL,delete i.rowsURL,delete i.columnsURL,function l(b){function k(D,p,C){if(!D||!/^(http|\/|\.\/|\.\.\/)/.test(D))return D&&i.error&&i.error("Invalid URL"),!1;function A(){o&&t.liveDataURL===D&&(a.liveDataTimeout=setTimeout(l,n))}return b&&(clearTimeout(a.liveDataTimeout),t.liveDataURL=D),E({url:D,dataType:C||"json",success:function(N){t&&t.series&&p(N),A()},error:function(N,_){return++s<3&&A(),i.error&&i.error(_,N)}}),!0}k(e.csvURL,function(D){t.update({data:{csv:D}})},"text")||k(e.rowsURL,function(D){t.update({data:{rows:D}})})||k(e.columnsURL,function(D){t.update({data:{columns:D}})})}(!0),x(i))},r.prototype.parseGoogleSpreadsheet=function(){var a=this,t=this.options,i=t.googleSpreadsheetKey,o=this.chart,e=Math.max(1e3*(t.dataRefreshRate||2),4e3),s=function(){if(t.googleSpreadsheetRange)return t.googleSpreadsheetRange;var n="ABCDEFGHIJKLMNOPQRSTUVWXYZ",l=(n.charAt(t.startColumn||0)||"A")+((t.startRow||0)+1),b=n.charAt(w(t.endColumn,-1))||"ZZ";return y(t.endRow)&&(b+=t.endRow+1),""+l+":".concat(b)};return i&&(delete t.googleSpreadsheetKey,function n(l){var b=["https://sheets.googleapis.com/v4/spreadsheets",i,"values",s(),"?alt=json&majorDimension=COLUMNS&valueRenderOption=UNFORMATTED_VALUE&dateTimeRenderOption=FORMATTED_STRING&key="+t.googleAPIKey].join("/");E({url:b,dataType:"json",success:function(k){l(k),t.enablePolling&&(a.liveDataTimeout=setTimeout(function(){n(l)},e))},error:function(k,D){return t.error&&t.error(D,k)}})}(function(n){var l=n.values;if(!l||l.length===0)return!1;var b=l.reduce(function(k,D){return Math.max(k,D.length)},0);l.forEach(function(k){for(var D=0;D<b;D++)k[D]===void 0&&(k[D]=null)}),o&&o.series?o.update({data:{columns:l}}):(a.columns=l,a.dataFound())})),!1},r.prototype.trim=function(a,t){return typeof a=="string"&&(a=a.replace(/^\s+|\s+$/g,""),t&&/^[0-9\s]+$/.test(a)&&(a=a.replace(/\s/g,"")),this.decimalRegex&&(a=a.replace(this.decimalRegex,"$1.$2"))),a},r.prototype.parseTypes=function(){for(var a=this.columns||[],t=a.length;t--;)this.parseColumn(a[t],t)},r.prototype.parseColumn=function(a,t){var i,o,e,s,n,l,b,k=this.rawColumns,D=this.columns,p=this.firstRowAsNames,C=this.valueCount.xColumns.indexOf(t)!==-1,A=[],N=this.chartOptions,_=(this.options.columnTypes||[])[t],L=C&&(N&&N.xAxis&&S(N.xAxis)[0].type==="category"||_==="string"),O=y(a.name),j=a.length;for(k[t]||(k[t]=[]);j--;)i=A[j]||a[j],e=this.trim(i),s=this.trim(i,!0),o=parseFloat(s),k[t][j]===void 0&&(k[t][j]=e),L||j===0&&p&&!O?a[j]=""+e:+s===o?(a[j]=o,o>31536e6&&_!=="float"?a.isDatetime=!0:a.isNumeric=!0,a[j+1]!==void 0&&(b=o>a[j+1])):(e&&e.length&&(n=this.parseDate(i)),C&&m(n)&&_!=="float"?(A[j]=i,a[j]=n,a.isDatetime=!0,a[j+1]!==void 0&&((l=n>a[j+1])!==b&&b!==void 0&&(this.alternativeFormat?(this.dateFormat=this.alternativeFormat,j=a.length,this.alternativeFormat=this.dateFormats[this.dateFormat].alternative):a.unsorted=!0),b=l)):(a[j]=e===""?null:e,j!==0&&(a.isDatetime||a.isNumeric)&&(a.mixed=!0)));if(C&&a.mixed&&(D[t]=k[t]),C&&b&&this.options.sort)for(t=0;t<D.length;t++)D[t].reverse(),p&&D[t].unshift(D[t].pop())},r.prototype.parseDate=function(a){var t,i,o,e,s=this.options.parseDate,n=this.options.dateFormat||this.dateFormat;if(s)t=s(a);else if(typeof a=="string"){if(n)(o=this.dateFormats[n])||(o=this.dateFormats["YYYY/mm/dd"]),(e=a.match(o.regex))&&(t=o.parser(e));else for(i in this.dateFormats)if(o=this.dateFormats[i],e=a.match(o.regex)){this.dateFormat=n=i,this.alternativeFormat=o.alternative,t=o.parser(e);break}e||(a.match(/:.+(GMT|UTC|[Z+-])/)&&(a=a.replace(/\s*(?:GMT|UTC)?([+-])(\d\d)(\d\d)$/,"$1$2:$3").replace(/(?:\s+|GMT|UTC)([+-])/,"$1").replace(/(\d)\s*(?:GMT|UTC|Z)$/,"$1+00:00")),typeof(e=Date.parse(a))=="object"&&e!==null&&e.getTime?t=e.getTime()-6e4*e.getTimezoneOffset():m(e)&&(t=e-6e4*new Date(e).getTimezoneOffset()))}return t},r.prototype.getData=function(){if(this.columns)return this.rowsToColumns(this.columns).slice(1)},r.prototype.parsed=function(){if(this.options.parsed)return this.options.parsed.call(this,this.columns)},r.prototype.complete=function(){var a,t,i,o,e,s,n,l,b,k,D,p,C=this.columns,A=this.options,N=[];if(A.complete||A.afterComplete){if(this.firstRowAsNames)for(o=0;o<C.length;o++){var _=C[o];y(_.name)||(_.name=w(_.shift(),"").toString())}for(t=[],k=function(L,O){var j,Y,X,G=[],q=[];for(Y=0;Y<L;Y+=1)G.push(!0);for(j=0;j<O.length;j+=1)for(X=O[j].getReferencedColumnIndexes(),Y=0;Y<X.length;Y+=1)G[X[Y]]=!1;for(Y=0;Y<G.length;Y+=1)G[Y]&&q.push(Y);return q}(C.length,this.valueCount.seriesBuilders),n=0;n<this.valueCount.seriesBuilders.length;n++)(b=this.valueCount.seriesBuilders[n]).populateColumns(k)&&N.push(b);for(;k.length>0;){for((b=new g).addColumnReader(0,"x"),(p=k.indexOf(0))!==-1&&k.splice(p,1),o=0;o<this.valueCount.global;o++)b.addColumnReader(void 0,this.valueCount.globalPointArrayMap[o]);b.populateColumns(k)&&N.push(b)}if(N.length>0&&N[0].readers.length>0&&(D=C[N[0].readers[0].columnIndex])!==void 0&&(D.isDatetime?a="datetime":D.isNumeric||(a="category")),a==="category")for(n=0;n<N.length;n++)for(b=N[n],s=0;s<b.readers.length;s++)b.readers[s].configName==="x"&&(b.readers[s].configName="name");for(n=0;n<N.length;n++){for(b=N[n],i=[],e=0;e<C[0].length;e++)i[e]=b.read(C,e);t[n]={data:i},b.name&&(t[n].name=b.name),a==="category"&&(t[n].turboThreshold=0)}l={series:t},a&&(l.xAxis={type:a},a==="category"&&(l.xAxis.uniqueNames=!1)),A.complete&&A.complete(l),A.afterComplete&&A.afterComplete(l)}},r.prototype.update=function(a,t){var i=this.chart,o=i.options;a&&(a.afterComplete=function(e){e&&(e.xAxis&&i.xAxis[0]&&e.xAxis.type===i.xAxis[0].options.type&&delete e.xAxis,i.update(e,t,!0))},u(!0,o.data,a),o.data&&o.data.googleSpreadsheetKey&&!a.columns&&delete o.data.columns,this.init(o.data))},r}();P(W,"init",function(r){var a=this,t=r.args[1],i=z().data,o=r.args[0]||{};if((i||o&&o.data)&&!a.hasDataDef){a.hasDataDef=!0;var e=u(i,o.data);a.data=new c(h(e,{afterComplete:function(s){var n,l;if(Object.hasOwnProperty.call(o,"series"))if(typeof o.series=="object")for(n=Math.max(o.series.length,s&&s.series?s.series.length:0);n--;)l=o.series[n]||{},o.series[n]=u(l,s&&s.series?s.series[n]:{});else delete o.series;o=u(s,o),a.init(o,t)}}),o,a),r.preventDefault()}});var g=function(){function r(){this.readers=[],this.pointIsArray=!0}return r.prototype.populateColumns=function(a){var t=!0;return this.readers.forEach(function(i){i.columnIndex===void 0&&(i.columnIndex=a.shift())}),this.readers.forEach(function(i){i.columnIndex===void 0&&(t=!1)}),t},r.prototype.read=function(a,t){var i,o=this,e=o.pointIsArray,s=e?[]:{};return o.readers.forEach(function(n){var l=a[n.columnIndex][t];e?s.push(l):n.configName.indexOf(".")>0?$.prototype.setNestedProperty(s,l,n.configName):s[n.configName]=l}),this.name===void 0&&o.readers.length>=2&&(i=o.getReferencedColumnIndexes()).length>=2&&(i.shift(),i.sort(function(n,l){return n-l}),this.name=a[i.shift()].name),s},r.prototype.addColumnReader=function(a,t){this.readers.push({columnIndex:a,configName:t}),t!=="x"&&t!=="y"&&t!==void 0&&(this.pointIsArray=!1)},r.prototype.getReferencedColumnIndexes=function(){var a,t,i=[];for(a=0;a<this.readers.length;a+=1)(t=this.readers[a]).columnIndex!==void 0&&i.push(t.columnIndex);return i},r.prototype.hasReader=function(a){var t;for(t=0;t<this.readers.length;t+=1)if(this.readers[t].configName===a)return!0},r}();return c}),it(B,"masters/modules/data.src.js",[B["Core/Globals.js"],B["Core/HttpUtilities.js"],B["Extensions/Data.js"]],function(W,R,H){var V=W;V.ajax=R.ajax,V.data=H.data,V.getJSON=R.getJSON,V.post=R.post,V.Data=H,V.HttpUtilities=R})},ot.exports?(ut.default=ut,ot.exports=ut):(pt=[st(4783)],(ht=function(ft){return ut(ft),ut.Highcharts=ft,ut}.apply(nt,pt))===void 0||(ot.exports=ht))},6713:(ot,nt,st)=>{st.d(nt,{A:()=>pt});const pt=typeof Wi=="object"&&Wi&&Wi.Object===Object&&Wi},6725:(ot,nt,st)=>{var pt,ht,ut;ut=function(ft){var B=ft?ft._modules:{};function it(W,R,H,V){W.hasOwnProperty(R)||(W[R]=V.apply(null,H),typeof CustomEvent=="function"&&window.dispatchEvent(new CustomEvent("HighchartsModuleLoaded",{detail:{path:R,module:W[R]}})))}it(B,"Extensions/Pane.js",[B["Core/Chart/Chart.js"],B["Series/CenteredUtilities.js"],B["Core/Globals.js"],B["Core/Pointer.js"],B["Core/Utilities.js"]],function(W,R,H,V,$){var Z=$.addEvent,U=$.correctFloat,z=$.defined,I=$.extend,E=$.merge,M=$.pick,P=$.splat;W.prototype.collectionsWithUpdate.push("pane");var y=function(){function f(m,u){this.background=void 0,this.center=void 0,this.chart=void 0,this.options=void 0,this.coll="pane",this.defaultOptions={center:["50%","50%"],size:"85%",innerSize:"0%",startAngle:0},this.defaultBackgroundOptions={shape:"circle",borderWidth:1,borderColor:"#cccccc",backgroundColor:{linearGradient:{x1:0,y1:0,x2:0,y2:1},stops:[[0,"#ffffff"],[1,"#e6e6e6"]]},from:-Number.MAX_VALUE,innerRadius:0,to:Number.MAX_VALUE,outerRadius:"105%"},this.init(m,u)}return f.prototype.init=function(m,u){this.chart=u,this.background=[],u.pane.push(this),this.setOptions(m)},f.prototype.setOptions=function(m){this.options=m=E(this.defaultOptions,this.chart.angular?{background:{}}:void 0,m)},f.prototype.render=function(){var m,u,v=this.options,w=this.options.background,S=this.chart.renderer;if(this.group||(this.group=S.g("pane-group").attr({zIndex:v.zIndex||0}).add()),this.updateCenter(),w)for(w=P(w),m=Math.max(w.length,this.background.length||0),u=0;u<m;u++)w[u]&&this.axis?this.renderBackground(E(this.defaultBackgroundOptions,w[u]),u):this.background[u]&&(this.background[u]=this.background[u].destroy(),this.background.splice(u,1))},f.prototype.renderBackground=function(m,u){var v="animate",w={class:"highcharts-pane "+(m.className||"")};this.chart.styledMode||I(w,{fill:m.backgroundColor,stroke:m.borderColor,"stroke-width":m.borderWidth}),this.background[u]||(this.background[u]=this.chart.renderer.path().add(this.group),v="attr"),this.background[u][v]({d:this.axis.getPlotBandPath(m.from,m.to,m)}).attr(w)},f.prototype.updateCenter=function(m){this.center=(m||this.axis||{}).center=R.getCenter.call(this)},f.prototype.update=function(m,u){E(!0,this.options,m),this.setOptions(this.options),this.render(),this.chart.axes.forEach(function(v){v.pane===this&&(v.pane=null,v.update({},u))},this)},f}();function h(f,m,u,v,w){var S=!0,x=u[0],c=u[1],g=Math.sqrt(Math.pow(f-x,2)+Math.pow(m-c,2));if(z(v)&&z(w)){var r=Math.atan2(U(m-c,8),U(f-x,8));w!==v&&(S=v>w?r>=v&&r<=Math.PI||r<=w&&r>=-Math.PI:r>=v&&r<=U(w,8))}return g<=Math.ceil(u[2]/2)&&S}return W.prototype.getHoverPane=function(f){var m,u=this;return f&&u.pane.forEach(function(v){h(f.chartX-u.plotLeft,f.chartY-u.plotTop,v.center)&&(m=v)}),m},Z(W,"afterIsInsidePlot",function(f){var m;this.polar&&(f.options.inverted&&(m=[f.y,f.x],f.x=m[0],f.y=m[1]),f.isInsidePlot=this.pane.some(function(u){return h(f.x,f.y,u.center,u.axis&&u.axis.normalizedStartAngleRad,u.axis&&u.axis.normalizedEndAngleRad)}))}),Z(V,"beforeGetHoverData",function(f){var m=this.chart;m.polar?(m.hoverPane=m.getHoverPane(f),f.filter=function(u){return u.visible&&!(!f.shared&&u.directTouch)&&M(u.options.enableMouseTracking,!0)&&(!m.hoverPane||u.xAxis.pane===m.hoverPane)}):m.hoverPane=void 0}),Z(V,"afterGetHoverData",function(f){var m=this.chart;f.hoverPoint&&f.hoverPoint.plotX&&f.hoverPoint.plotY&&m.hoverPane&&!h(f.hoverPoint.plotX,f.hoverPoint.plotY,m.hoverPane.center)&&(f.hoverPoint=void 0)}),H.Pane=y,H.Pane}),it(B,"Series/AreaRange/AreaRangePoint.js",[B["Core/Series/SeriesRegistry.js"],B["Core/Utilities.js"]],function(W,R){var H,V=this&&this.__extends||(H=function(M,P){return H=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(y,h){y.__proto__=h}||function(y,h){for(var f in h)h.hasOwnProperty(f)&&(y[f]=h[f])},H(M,P)},function(M,P){function y(){this.constructor=M}H(M,P),M.prototype=P===null?Object.create(P):(y.prototype=P.prototype,new y)}),$=W.seriesTypes.area.prototype,Z=$.pointClass,U=$.pointClass.prototype,z=R.defined,I=R.isNumber,E=function(M){function P(){var y=M!==null&&M.apply(this,arguments)||this;return y.high=void 0,y.low=void 0,y.options=void 0,y.plotX=void 0,y.series=void 0,y}return V(P,M),P.prototype.setState=function(){var y=this.state,h=this.series,f=h.chart.polar;z(this.plotHigh)||(this.plotHigh=h.yAxis.toPixels(this.high,!0)),z(this.plotLow)||(this.plotLow=this.plotY=h.yAxis.toPixels(this.low,!0)),h.stateMarkerGraphic&&(h.lowerStateMarkerGraphic=h.stateMarkerGraphic,h.stateMarkerGraphic=h.upperStateMarkerGraphic),this.graphic=this.graphics&&this.graphics[1],this.plotY=this.plotHigh,f&&I(this.plotHighX)&&(this.plotX=this.plotHighX),U.setState.apply(this,arguments),this.state=y,this.plotY=this.plotLow,this.graphic=this.graphics&&this.graphics[0],f&&I(this.plotLowX)&&(this.plotX=this.plotLowX),h.stateMarkerGraphic&&(h.upperStateMarkerGraphic=h.stateMarkerGraphic,h.stateMarkerGraphic=h.lowerStateMarkerGraphic,h.lowerStateMarkerGraphic=void 0),U.setState.apply(this,arguments)},P.prototype.haloPath=function(){var y=this.series.chart.polar,h=[];return this.plotY=this.plotLow,y&&I(this.plotLowX)&&(this.plotX=this.plotLowX),this.isInside&&(h=U.haloPath.apply(this,arguments)),this.plotY=this.plotHigh,y&&I(this.plotHighX)&&(this.plotX=this.plotHighX),this.isTopInside&&(h=h.concat(U.haloPath.apply(this,arguments))),h},P.prototype.isValid=function(){return I(this.low)&&I(this.high)},P}(Z);return E}),it(B,"Series/AreaRange/AreaRangeSeries.js",[B["Series/AreaRange/AreaRangePoint.js"],B["Core/Globals.js"],B["Core/Series/SeriesRegistry.js"],B["Core/Utilities.js"]],function(W,R,H,V){var $,Z=this&&this.__extends||($=function(x,c){return $=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(g,r){g.__proto__=r}||function(g,r){for(var a in r)r.hasOwnProperty(a)&&(g[a]=r[a])},$(x,c)},function(x,c){function g(){this.constructor=x}$(x,c),x.prototype=c===null?Object.create(c):(g.prototype=c.prototype,new g)}),U=R.noop,z=H.seriesTypes,I=z.area,E=z.area.prototype,M=z.column.prototype,P=V.addEvent,y=V.defined,h=V.extend,f=V.isArray,m=V.isNumber,u=V.pick,v=V.merge,w={lineWidth:1,threshold:null,tooltip:{pointFormat:'<span style="color:{series.color}">●</span> {series.name}: <b>{point.low}</b> - <b>{point.high}</b><br/>'},trackByArea:!0,dataLabels:{align:void 0,verticalAlign:void 0,xLow:0,xHigh:0,yLow:0,yHigh:0}},S=function(x){function c(){var g=x!==null&&x.apply(this,arguments)||this;return g.data=void 0,g.options=void 0,g.points=void 0,g.lowerStateMarkerGraphic=void 0,g.xAxis=void 0,g}return Z(c,x),c.prototype.toYData=function(g){return[g.low,g.high]},c.prototype.highToXY=function(g){var r=this.chart,a=this.xAxis.postTranslate(g.rectPlotX||0,this.yAxis.len-(g.plotHigh||0));g.plotHighX=a.x-r.plotLeft,g.plotHigh=a.y-r.plotTop,g.plotLowX=g.plotX},c.prototype.getGraphPath=function(g){var r,a,t,i=[],o=[],e=E.getGraphPath,s=this.options,n=this.chart.polar,l=n&&s.connectEnds!==!1,b=s.connectNulls,k=s.step;for(r=(g=g||this.points).length;r--;){a=g[r];var D=n?{plotX:a.rectPlotX,plotY:a.yBottom,doCurve:!1}:{plotX:a.plotX,plotY:a.plotY,doCurve:!1};a.isNull||l||b||g[r+1]&&!g[r+1].isNull||o.push(D),t={polarPlotY:a.polarPlotY,rectPlotX:a.rectPlotX,yBottom:a.yBottom,plotX:u(a.plotHighX,a.plotX),plotY:a.plotHigh,isNull:a.isNull},o.push(t),i.push(t),a.isNull||l||b||g[r-1]&&!g[r-1].isNull||o.push(D)}var p=e.call(this,g);k&&(k===!0&&(k="left"),s.step={left:"right",center:"center",right:"left"}[k]);var C=e.call(this,i),A=e.call(this,o);s.step=k;var N=[].concat(p,C);return!this.chart.polar&&A[0]&&A[0][0]==="M"&&(A[0]=["L",A[0][1],A[0][2]]),this.graphPath=N,this.areaPath=p.concat(A),N.isArea=!0,N.xMap=p.xMap,this.areaPath.xMap=p.xMap,N},c.prototype.drawDataLabels=function(){var g,r,a,t,i,o=this.points,e=o.length,s=[],n=this.options.dataLabels,l=this.chart.inverted;if(n){if(f(n)?(t=n[0]||{enabled:!1},i=n[1]||{enabled:!1}):((t=h({},n)).x=n.xHigh,t.y=n.yHigh,(i=h({},n)).x=n.xLow,i.y=n.yLow),t.enabled||this._hasPointLabels){for(g=e;g--;)if(r=o[g]){var b=r.plotHigh,k=b===void 0?0:b,D=r.plotLow,p=D===void 0?0:D;a=t.inside?k<p:k>p,r.y=r.high,r._plotY=r.plotY,r.plotY=k,s[g]=r.dataLabel,r.dataLabel=r.dataLabelUpper,r.below=a,l?t.align||(t.align=a?"right":"left"):t.verticalAlign||(t.verticalAlign=a?"top":"bottom")}for(this.options.dataLabels=t,E.drawDataLabels&&E.drawDataLabels.apply(this,arguments),g=e;g--;)(r=o[g])&&(r.dataLabelUpper=r.dataLabel,r.dataLabel=s[g],delete r.dataLabels,r.y=r.low,r.plotY=r._plotY)}if(i.enabled||this._hasPointLabels){for(g=e;g--;)if(r=o[g]){var C=r.plotHigh,A=(k=C===void 0?0:C,r.plotLow);p=A===void 0?0:A,a=i.inside?k<p:k>p,r.below=!a,l?i.align||(i.align=a?"left":"right"):i.verticalAlign||(i.verticalAlign=a?"bottom":"top")}this.options.dataLabels=i,E.drawDataLabels&&E.drawDataLabels.apply(this,arguments)}if(t.enabled)for(g=e;g--;)(r=o[g])&&(r.dataLabels=[r.dataLabelUpper,r.dataLabel].filter(function(N){return!!N}));this.options.dataLabels=n}},c.prototype.alignDataLabel=function(){M.alignDataLabel.apply(this,arguments)},c.prototype.drawPoints=function(){var g,r,a=this,t=a.points.length;for(E.drawPoints.apply(a,arguments),g=0;g<t;)(r=a.points[g]).graphics=r.graphics||[],r.origProps={plotY:r.plotY,plotX:r.plotX,isInside:r.isInside,negative:r.negative,zone:r.zone,y:r.y},(r.graphic||r.graphics[0])&&(r.graphics[0]=r.graphic),r.graphic=r.graphics[1],r.plotY=r.plotHigh,y(r.plotHighX)&&(r.plotX=r.plotHighX),r.y=u(r.high,r.origProps.y),r.negative=r.y<(a.options.threshold||0),a.zones.length&&(r.zone=r.getZone()),a.chart.polar||(r.isInside=r.isTopInside=r.plotY!==void 0&&r.plotY>=0&&r.plotY<=a.yAxis.len&&r.plotX>=0&&r.plotX<=a.xAxis.len),g++;for(E.drawPoints.apply(a,arguments),g=0;g<t;)(r=a.points[g]).graphics=r.graphics||[],(r.graphic||r.graphics[1])&&(r.graphics[1]=r.graphic),r.graphic=r.graphics[0],r.origProps&&(h(r,r.origProps),delete r.origProps),g++},c.defaultOptions=v(I.defaultOptions,w),c}(I);return P(S,"afterTranslate",function(){var x=this;this.pointArrayMap.join(",")==="low,high"&&this.points.forEach(function(c){var g=c.high,r=c.plotY;c.isNull?c.plotY=void 0:(c.plotLow=r,c.plotHigh=m(g)?x.yAxis.translate(x.dataModify?x.dataModify.modifyValue(g):g,!1,!0,void 0,!0):void 0,x.dataModify&&(c.yBottom=c.plotHigh))})},{order:0}),P(S,"afterTranslate",function(){var x=this;this.points.forEach(function(c){if(x.chart.polar)x.highToXY(c),c.plotLow=c.plotY,c.tooltipPos=[((c.plotHighX||0)+(c.plotLowX||0))/2,((c.plotHigh||0)+(c.plotLow||0))/2];else{var g=c.pos(!1,c.plotLow),r=c.pos(!1,c.plotHigh);g&&r&&(g[0]=(g[0]+r[0])/2,g[1]=(g[1]+r[1])/2),c.tooltipPos=g}})},{order:3}),h(S.prototype,{deferTranslatePolar:!0,pointArrayMap:["low","high"],pointClass:W,pointValKey:"low",setStackedPoints:U}),H.registerSeriesType("arearange",S),S}),it(B,"Series/AreaSplineRange/AreaSplineRangeSeries.js",[B["Series/AreaRange/AreaRangeSeries.js"],B["Core/Series/SeriesRegistry.js"],B["Core/Utilities.js"]],function(W,R,H){var V,$=this&&this.__extends||(V=function(E,M){return V=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(P,y){P.__proto__=y}||function(P,y){for(var h in y)y.hasOwnProperty(h)&&(P[h]=y[h])},V(E,M)},function(E,M){function P(){this.constructor=E}V(E,M),E.prototype=M===null?Object.create(M):(P.prototype=M.prototype,new P)}),Z=R.seriesTypes.spline.prototype,U=H.merge,z=H.extend,I=function(E){function M(){var P=E!==null&&E.apply(this,arguments)||this;return P.options=void 0,P.data=void 0,P.points=void 0,P}return $(M,E),M.defaultOptions=U(W.defaultOptions),M}(W);return z(I.prototype,{getPointSpline:Z.getPointSpline}),R.registerSeriesType("areasplinerange",I),I}),it(B,"Series/BoxPlot/BoxPlotSeries.js",[B["Series/Column/ColumnSeries.js"],B["Core/Globals.js"],B["Core/Series/SeriesRegistry.js"],B["Core/Utilities.js"]],function(W,R,H,V){var $,Z=this&&this.__extends||($=function(P,y){return $=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(h,f){h.__proto__=f}||function(h,f){for(var m in f)f.hasOwnProperty(m)&&(h[m]=f[m])},$(P,y)},function(P,y){function h(){this.constructor=P}$(P,y),P.prototype=y===null?Object.create(y):(h.prototype=y.prototype,new h)}),U=R.noop,z=V.extend,I=V.merge,E=V.pick,M=function(P){function y(){var h=P!==null&&P.apply(this,arguments)||this;return h.data=void 0,h.options=void 0,h.points=void 0,h}return Z(y,P),y.prototype.pointAttribs=function(){return{}},y.prototype.translate=function(){var h=this,f=h.yAxis,m=h.pointArrayMap;P.prototype.translate.apply(h),h.points.forEach(function(u){m.forEach(function(v){u[v]!==null&&(u[v+"Plot"]=f.translate(u[v],0,1,0,1))}),u.plotHigh=u.highPlot})},y.prototype.drawPoints=function(){var h,f,m,u,v,w,S,x,c,g,r,a=this,t=a.points,i=a.options,o=a.chart,e=o.renderer,s=0,n=a.doQuartiles!==!1,l=a.options.whiskerLength;t.forEach(function(b){var k=b.graphic,D=k?"animate":"attr",p=b.shapeArgs,C={},A={},N={},_={},L=b.color||a.color;if(b.plotY!==void 0){S=Math.round(p.width),x=Math.floor(p.x),c=x+S,g=Math.round(S/2),h=Math.floor(n?b.q1Plot:b.lowPlot),f=Math.floor(n?b.q3Plot:b.lowPlot),m=Math.floor(b.highPlot),u=Math.floor(b.lowPlot),k||(b.graphic=k=e.g("point").add(a.group),b.stem=e.path().addClass("highcharts-boxplot-stem").add(k),l&&(b.whiskers=e.path().addClass("highcharts-boxplot-whisker").add(k)),n&&(b.box=e.path(void 0).addClass("highcharts-boxplot-box").add(k)),b.medianShape=e.path(void 0).addClass("highcharts-boxplot-median").add(k)),o.styledMode||(A.stroke=b.stemColor||i.stemColor||L,A["stroke-width"]=E(b.stemWidth,i.stemWidth,i.lineWidth),A.dashstyle=b.stemDashStyle||i.stemDashStyle||i.dashStyle,b.stem.attr(A),l&&(N.stroke=b.whiskerColor||i.whiskerColor||L,N["stroke-width"]=E(b.whiskerWidth,i.whiskerWidth,i.lineWidth),N.dashstyle=b.whiskerDashStyle||i.whiskerDashStyle||i.dashStyle,b.whiskers.attr(N)),n&&(C.fill=b.fillColor||i.fillColor||L,C.stroke=i.lineColor||L,C["stroke-width"]=i.lineWidth||0,C.dashstyle=b.boxDashStyle||i.boxDashStyle||i.dashStyle,b.box.attr(C)),_.stroke=b.medianColor||i.medianColor||L,_["stroke-width"]=E(b.medianWidth,i.medianWidth,i.lineWidth),_.dashstyle=b.medianDashStyle||i.medianDashStyle||i.dashStyle,b.medianShape.attr(_));var O=void 0;w=b.stem.strokeWidth()%2/2,O=[["M",s=x+g+w,f],["L",s,m],["M",s,h],["L",s,u]],b.stem[D]({d:O}),n&&(w=b.box.strokeWidth()%2/2,h=Math.floor(h)+w,f=Math.floor(f)+w,O=[["M",x+=w,f],["L",x,h],["L",c+=w,h],["L",c,f],["L",x,f],["Z"]],b.box[D]({d:O})),l&&(w=b.whiskers.strokeWidth()%2/2,m+=w,u+=w,r=/%$/.test(l)?g*parseFloat(l)/100:l/2,O=[["M",s-r,m],["L",s+r,m],["M",s-r,u],["L",s+r,u]],b.whiskers[D]({d:O})),v=Math.round(b.medianPlot),w=b.medianShape.strokeWidth()%2/2,O=[["M",x,v+=w],["L",c,v]],b.medianShape[D]({d:O})}})},y.prototype.toYData=function(h){return[h.low,h.q1,h.median,h.q3,h.high]},y.defaultOptions=I(W.defaultOptions,{threshold:null,tooltip:{pointFormat:'<span style="color:{point.color}">●</span> <b>{series.name}</b><br/>Maximum: {point.high}<br/>Upper quartile: {point.q3}<br/>Median: {point.median}<br/>Lower quartile: {point.q1}<br/>Minimum: {point.low}<br/>'},whiskerLength:"50%",fillColor:"#ffffff",lineWidth:1,medianWidth:2,whiskerWidth:2}),y}(W);return z(M.prototype,{pointArrayMap:["low","q1","median","q3","high"],pointValKey:"high",drawDataLabels:U,setStackedPoints:U}),H.registerSeriesType("boxplot",M),M}),it(B,"Series/Bubble/BubbleLegendDefaults.js",[],function(){return{borderColor:void 0,borderWidth:2,className:void 0,color:void 0,connectorClassName:void 0,connectorColor:void 0,connectorDistance:60,connectorWidth:1,enabled:!1,labels:{className:void 0,allowOverlap:!1,format:"",formatter:void 0,align:"right",style:{fontSize:"10px",color:"#000000"},x:0,y:0},maxSize:60,minSize:10,legendIndex:0,ranges:{value:void 0,borderColor:void 0,color:void 0,connectorColor:void 0},sizeBy:"area",sizeByAbsoluteValue:!1,zIndex:1,zThreshold:0}}),it(B,"Series/Bubble/BubbleLegendItem.js",[B["Core/Color/Color.js"],B["Core/FormatUtilities.js"],B["Core/Globals.js"],B["Core/Utilities.js"]],function(W,R,H,V){var $=W.parse,Z=H.noop,U=V.arrayMax,z=V.arrayMin,I=V.isNumber,E=V.merge,M=V.pick,P=V.stableSort;return function(){function y(h,f){this.chart=void 0,this.fontMetrics=void 0,this.legend=void 0,this.maxLabel=void 0,this.movementX=void 0,this.ranges=void 0,this.selected=void 0,this.visible=void 0,this.symbols=void 0,this.options=void 0,this.setState=Z,this.init(h,f)}return y.prototype.init=function(h,f){this.options=h,this.visible=!0,this.chart=f.chart,this.legend=f},y.prototype.addToLegend=function(h){h.splice(this.options.legendIndex,0,this)},y.prototype.drawLegendSymbol=function(h){var f,m=this.chart,u=M(h.options.itemDistance,20),v=this.legendItem||{},w=this.options,S=w.ranges,x=w.connectorDistance;if(this.fontMetrics=m.renderer.fontMetrics(w.labels.style.fontSize),S&&S.length&&I(S[0].value)){P(S,function(a,t){return t.value-a.value}),this.ranges=S,this.setOptions(),this.render();var c=this.getMaxLabelSize(),g=this.ranges[0].radius,r=2*g;f=(f=x-g+c.width)>0?f:0,this.maxLabel=c,this.movementX=w.labels.align==="left"?f:0,v.labelWidth=r+f+u,v.labelHeight=r+this.fontMetrics.h/2}else h.options.bubbleLegend.autoRanges=!0},y.prototype.setOptions=function(){var h=this.ranges,f=this.options,m=this.chart.series[f.seriesIndex],u=this.legend.baseline,v={zIndex:f.zIndex,"stroke-width":f.borderWidth},w={zIndex:f.zIndex,"stroke-width":f.connectorWidth},S={align:this.legend.options.rtl||f.labels.align==="left"?"right":"left",zIndex:f.zIndex},x=m.options.marker.fillOpacity,c=this.chart.styledMode;h.forEach(function(g,r){c||(v.stroke=M(g.borderColor,f.borderColor,m.color),v.fill=M(g.color,f.color,x!==1?$(m.color).setOpacity(x).get("rgba"):m.color),w.stroke=M(g.connectorColor,f.connectorColor,m.color)),h[r].radius=this.getRangeRadius(g.value),h[r]=E(h[r],{center:h[0].radius-h[r].radius+u}),c||E(!0,h[r],{bubbleAttribs:E(v),connectorAttribs:E(w),labelAttribs:S})},this)},y.prototype.getRangeRadius=function(h){var f=this.options,m=this.options.seriesIndex,u=this.chart.series[m],v=f.ranges[0].value,w=f.ranges[f.ranges.length-1].value,S=f.minSize,x=f.maxSize;return u.getRadius.call(this,w,v,S,x,h)},y.prototype.render=function(){var h=this.legendItem||{},f=this.chart.renderer,m=this.options.zThreshold;this.symbols||(this.symbols={connectors:[],bubbleItems:[],labels:[]}),h.symbol=f.g("bubble-legend"),h.label=f.g("bubble-legend-item"),h.symbol.translateX=0,h.symbol.translateY=0;for(var u=0,v=this.ranges;u<v.length;u++){var w=v[u];w.value>=m&&this.renderRange(w)}h.symbol.add(h.label),h.label.add(h.group),this.hideOverlappingLabels()},y.prototype.renderRange=function(h){var f=this.ranges[0],m=this.legend,u=this.options,v=u.labels,w=this.chart,S=w.series[u.seriesIndex],x=w.renderer,c=this.symbols,g=c.labels,r=h.center,a=Math.abs(h.radius),t=u.connectorDistance||0,i=v.align,o=m.options.rtl,e=u.borderWidth,s=u.connectorWidth,n=f.radius||0,l=r-a-e/2+s/2,b=this.fontMetrics,k=b.f/2-(b.h-b.f)/2,D=(l%1?1:.5)-(s%2?0:.5),p=x.styledMode,C=o||i==="left"?-t:t;i==="center"&&(C=0,u.connectorDistance=0,h.labelAttribs.align="center");var A=l+u.labels.y,N=n+C+u.labels.x;c.bubbleItems.push(x.circle(n,r+D,a).attr(p?{}:h.bubbleAttribs).addClass((p?"highcharts-color-"+S.colorIndex+" ":"")+"highcharts-bubble-legend-symbol "+(u.className||"")).add(this.legendItem.symbol)),c.connectors.push(x.path(x.crispLine([["M",n,l],["L",n+C,l]],u.connectorWidth)).attr(p?{}:h.connectorAttribs).addClass((p?"highcharts-color-"+this.options.seriesIndex+" ":"")+"highcharts-bubble-legend-connectors "+(u.connectorClassName||"")).add(this.legendItem.symbol));var _=x.text(this.formatLabel(h),N,A+k).attr(p?{}:h.labelAttribs).css(p?{}:v.style).addClass("highcharts-bubble-legend-labels "+(u.labels.className||"")).add(this.legendItem.symbol);g.push(_),_.placed=!0,_.alignAttr={x:N,y:A+k}},y.prototype.getMaxLabelSize=function(){var h,f;return this.symbols.labels.forEach(function(m){f=m.getBBox(!0),h=h?f.width>h.width?f:h:f}),h||{}},y.prototype.formatLabel=function(h){var f=this.options,m=f.labels.formatter,u=f.labels.format,v=this.chart.numberFormatter;return u?R.format(u,h):m?m.call(h):v(h.value,1)},y.prototype.hideOverlappingLabels=function(){var h=this.chart,f=this.options.labels.allowOverlap,m=this.symbols;!f&&m&&(h.hideOverlappingLabels(m.labels),m.labels.forEach(function(u,v){u.newOpacity?u.newOpacity!==u.oldOpacity&&m.connectors[v].show():m.connectors[v].hide()}))},y.prototype.getRanges=function(){var h,f,m=this.legend.bubbleLegend,u=m.chart.series,v=m.options.ranges,w=Number.MAX_VALUE,S=-Number.MAX_VALUE;return u.forEach(function(x){x.isBubble&&!x.ignoreSeries&&(f=x.zData.filter(I)).length&&(w=M(x.options.zMin,Math.min(w,Math.max(z(f),x.options.displayNegative===!1?x.options.zThreshold:-Number.MAX_VALUE))),S=M(x.options.zMax,Math.max(S,U(f))))}),h=w===S?[{value:S}]:[{value:w},{value:(w+S)/2},{value:S,autoRanges:!0}],v.length&&v[0].radius&&h.reverse(),h.forEach(function(x,c){v&&v[c]&&(h[c]=E(v[c],x))}),h},y.prototype.predictBubbleSizes=function(){var h,f=this.chart,m=this.fontMetrics,u=f.legend.options,v=u.floating,w=u.layout==="horizontal",S=w?f.legend.lastLineHeight:0,x=f.plotSizeX,c=f.plotSizeY,g=f.series[this.options.seriesIndex],r=g.getPxExtremes(),a=Math.ceil(r.minPxSize),t=Math.ceil(r.maxPxSize),i=Math.min(c,x),o=g.options.maxSize;return v||!/%$/.test(o)?h=t:(o=parseFloat(o),h=(i+S-m.h/2)*o/100/(o/100+1),(w&&c-h>=x||!w&&x-h>=c)&&(h=t)),[a,Math.ceil(h)]},y.prototype.updateRanges=function(h,f){var m=this.legend.options.bubbleLegend;m.minSize=h,m.maxSize=f,m.ranges=this.getRanges()},y.prototype.correctSizes=function(){var h=this.legend,f=this.chart.series[this.options.seriesIndex].getPxExtremes(),m=f.maxPxSize,u=this.options.maxSize;Math.abs(Math.ceil(m)-u)>1&&(this.updateRanges(this.options.minSize,f.maxPxSize),h.render())},y}()}),it(B,"Series/Bubble/BubbleLegendComposition.js",[B["Series/Bubble/BubbleLegendDefaults.js"],B["Series/Bubble/BubbleLegendItem.js"],B["Core/Defaults.js"],B["Core/Utilities.js"]],function(W,R,H,V){var $=H.setOptions,Z=V.addEvent,U=V.objectEach,z=V.wrap,I=[];function E(m,u,v){var w,S,x,c=this,g=c.legend,r=M(c)>=0;g&&g.options.enabled&&g.bubbleLegend&&g.options.bubbleLegend.autoRanges&&r?(w=g.bubbleLegend.options,S=g.bubbleLegend.predictBubbleSizes(),g.bubbleLegend.updateRanges(S[0],S[1]),w.placed||(g.group.placed=!1,g.allItems.forEach(function(a){(x=a.legendItem||{}).group&&(x.group.translateY=null)})),g.render(),c.getMargins(),c.axes.forEach(function(a){a.visible&&a.render(),w.placed||(a.setScale(),a.updateNames(),U(a.ticks,function(t){t.isNew=!0,t.isNewLabel=!0}))}),w.placed=!0,c.getMargins(),m.call(c,u,v),g.bubbleLegend.correctSizes(),f(g,P(g))):(m.call(c,u,v),g&&g.options.enabled&&g.bubbleLegend&&(g.render(),f(g,P(g))))}function M(m){for(var u=m.series,v=0;v<u.length;){if(u[v]&&u[v].isBubble&&u[v].visible&&u[v].zData.length)return v;v++}return-1}function P(m){var u,v,w,S=m.allItems,x=[],c=S.length,g=0,r=0;for(g=0;g<c;g++)if(v=S[g].legendItem||{},w=(S[g+1]||{}).legendItem||{},v.labelHeight&&(S[g].itemHeight=v.labelHeight),S[g]===S[c-1]||v.y!==w.y){for(x.push({height:0}),u=x[x.length-1];r<=g;r++)S[r].itemHeight>u.height&&(u.height=S[r].itemHeight);u.step=g}return x}function y(m){var u=this,v=u.bubbleLegend,w=u.options,S=w.bubbleLegend,x=M(u.chart);v&&v.ranges&&v.ranges.length&&(S.ranges.length&&(S.autoRanges=!!S.ranges[0].autoRanges),u.destroyItem(v)),x>=0&&w.enabled&&S.enabled&&(S.seriesIndex=x,u.bubbleLegend=new R(S,u),u.bubbleLegend.addToLegend(m.allItems))}function h(){var m,u=this,v=u.chart,w=u.visible,S=u.chart.legend;S&&S.bubbleLegend&&(u.visible=!w,u.ignoreSeries=w,m=M(v)>=0,S.bubbleLegend.visible!==m&&(S.update({bubbleLegend:{enabled:m}}),S.bubbleLegend.visible=m),u.visible=w)}function f(m,u){var v,w,S,x,c=m.allItems,g=m.options.rtl,r=0;c.forEach(function(a,t){(x=a.legendItem||{}).group&&(v=x.group.translateX||0,w=x.y||0,((S=a.movementX)||g&&a.ranges)&&(S=g?v-a.options.maxSize/2:v+S,x.group.attr({translateX:S})),t>u[r].step&&r++,x.group.attr({translateY:Math.round(w+u[r].height/2)}),x.y=w+u[r].height/2)})}return{compose:function(m,u,v){I.indexOf(m)===-1&&(I.push(m),$({legend:{bubbleLegend:W}}),z(m.prototype,"drawChartBox",E)),I.indexOf(u)===-1&&(I.push(u),Z(u,"afterGetAllItems",y)),I.indexOf(v)===-1&&(I.push(v),Z(v,"legendItemClick",h))}}}),it(B,"Series/Bubble/BubblePoint.js",[B["Core/Series/Point.js"],B["Core/Series/SeriesRegistry.js"],B["Core/Utilities.js"]],function(W,R,H){var V,$=this&&this.__extends||(V=function(I,E){return V=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(M,P){M.__proto__=P}||function(M,P){for(var y in P)P.hasOwnProperty(y)&&(M[y]=P[y])},V(I,E)},function(I,E){function M(){this.constructor=I}V(I,E),I.prototype=E===null?Object.create(E):(M.prototype=E.prototype,new M)}),Z=R.seriesTypes.scatter.prototype.pointClass,U=H.extend,z=function(I){function E(){var M=I!==null&&I.apply(this,arguments)||this;return M.options=void 0,M.series=void 0,M}return $(E,I),E.prototype.haloPath=function(M){return W.prototype.haloPath.call(this,M===0?0:(this.marker&&this.marker.radius||0)+M)},E}(Z);return U(z.prototype,{ttBelow:!1}),z}),it(B,"Series/Bubble/BubbleSeries.js",[B["Series/Bubble/BubbleLegendComposition.js"],B["Series/Bubble/BubblePoint.js"],B["Core/Color/Color.js"],B["Core/Globals.js"],B["Core/Series/SeriesRegistry.js"],B["Core/Utilities.js"]],function(W,R,H,V,$,Z){var U,z=this&&this.__extends||(U=function(t,i){return U=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,e){o.__proto__=e}||function(o,e){for(var s in e)e.hasOwnProperty(s)&&(o[s]=e[s])},U(t,i)},function(t,i){function o(){this.constructor=t}U(t,i),t.prototype=i===null?Object.create(i):(o.prototype=i.prototype,new o)}),I=H.parse,E=V.noop,M=$.series,P=$.seriesTypes,y=P.column.prototype,h=P.scatter,f=Z.addEvent,m=Z.arrayMax,u=Z.arrayMin,v=Z.clamp,w=Z.extend,S=Z.isNumber,x=Z.merge,c=Z.pick,g=[];function r(){var t,i=this,o=this.len,e=this.chart,s=this.isXAxis,n=s?"xData":"yData",l=this.min,b=this.max-l,k=0,D=o,p=o/b;this.series.forEach(function(C){if(C.bubblePadding&&(C.visible||!e.options.chart.ignoreHiddenSeries)){i.allowZoomOutside=!0,t=!0;var A=C[n];if(s&&((C.onPoint||C).getRadii(0,0,C),C.onPoint&&(C.radii=C.onPoint.radii)),b>0){for(var N=A.length;N--;)if(S(A[N])&&i.dataMin<=A[N]&&A[N]<=i.max){var _=C.radii&&C.radii[N]||0;k=Math.min((A[N]-l)*p-_,k),D=Math.max((A[N]-l)*p+_,D)}}}}),t&&b>0&&!this.logarithmic&&(D-=o,p*=(o+Math.max(0,k)-Math.min(D,o))/o,[["min","userMin",k],["max","userMax",D]].forEach(function(C){c(i.options[C[0]],i[C[1]])===void 0&&(i[C[0]]+=C[2]/p)}))}var a=function(t){function i(){var o=t!==null&&t.apply(this,arguments)||this;return o.data=void 0,o.maxPxSize=void 0,o.minPxSize=void 0,o.options=void 0,o.points=void 0,o.radii=void 0,o.yData=void 0,o.zData=void 0,o}return z(i,t),i.compose=function(o,e,s,n){W.compose(e,s,n),g.indexOf(o)===-1&&(g.push(o),o.prototype.beforePadding=r)},i.prototype.animate=function(o){!o&&this.points.length<this.options.animationLimit&&this.points.forEach(function(e){var s=e.graphic;s&&s.width&&(this.hasRendered||s.attr({x:e.plotX,y:e.plotY,width:1,height:1}),s.animate(this.markerAttribs(e),this.options.animation))},this)},i.prototype.getRadii=function(){var o,e,s,n=this,l=this.zData,b=this.yData,k=[],D=this.chart.bubbleZExtremes,p=this.getPxExtremes(),C=p.minPxSize,A=p.maxPxSize;if(!D){var N,_=Number.MAX_VALUE,L=-Number.MAX_VALUE;this.chart.series.forEach(function(O){if(O.bubblePadding&&(O.visible||!n.chart.options.chart.ignoreHiddenSeries)){var j=(O.onPoint||O).getZExtremes();j&&(_=Math.min(_||j.zMin,j.zMin),L=Math.max(L||j.zMax,j.zMax),N=!0)}}),N?(D={zMin:_,zMax:L},this.chart.bubbleZExtremes=D):D={zMin:0,zMax:0}}for(e=0,o=l.length;e<o;e++)s=l[e],k.push(this.getRadius(D.zMin,D.zMax,C,A,s,b&&b[e]));this.radii=k},i.prototype.getRadius=function(o,e,s,n,l,b){var k=this.options,D=k.sizeBy!=="width",p=k.zThreshold,C=e-o,A=.5;if(b===null||l===null)return null;if(S(l)){if(k.sizeByAbsoluteValue&&(l=Math.abs(l-p),e=C=Math.max(e-p,Math.abs(o-p)),o=0),l<o)return s/2-1;C>0&&(A=(l-o)/C)}return D&&A>=0&&(A=Math.sqrt(A)),Math.ceil(s+A*(n-s))/2},i.prototype.hasData=function(){return!!this.processedXData.length},i.prototype.pointAttribs=function(o,e){var s=this.options.marker.fillOpacity,n=M.prototype.pointAttribs.call(this,o,e);return s!==1&&(n.fill=I(n.fill).setOpacity(s).get("rgba")),n},i.prototype.translate=function(){t.prototype.translate.call(this),this.getRadii(),this.translateBubble()},i.prototype.translateBubble=function(){for(var o=this.data,e=this.radii,s=this.getPxExtremes().minPxSize,n=o.length;n--;){var l=o[n],b=e?e[n]:0;S(b)&&b>=s/2?(l.marker=w(l.marker,{radius:b,width:2*b,height:2*b}),l.dlBox={x:l.plotX-b,y:l.plotY-b,width:2*b,height:2*b}):(l.shapeArgs=l.plotY=l.dlBox=void 0,l.isInside=!1)}},i.prototype.getPxExtremes=function(){var o=Math.min(this.chart.plotWidth,this.chart.plotHeight),e=function(n){var l;return typeof n=="string"&&(l=/%$/.test(n),n=parseInt(n,10)),l?o*n/100:n},s=e(c(this.options.minSize,8));return{minPxSize:s,maxPxSize:Math.max(e(c(this.options.maxSize,"20%")),s)}},i.prototype.getZExtremes=function(){var o=this.options,e=(this.zData||[]).filter(S);if(e.length){var s=c(o.zMin,v(u(e),o.displayNegative===!1?o.zThreshold||0:-Number.MAX_VALUE,Number.MAX_VALUE)),n=c(o.zMax,m(e));if(S(s)&&S(n))return{zMin:s,zMax:n}}},i.defaultOptions=x(h.defaultOptions,{dataLabels:{formatter:function(){var o=this.series.chart.numberFormatter,e=this.point.z;return S(e)?o(e,-1):""},inside:!0,verticalAlign:"middle"},animationLimit:250,marker:{lineColor:null,lineWidth:1,fillOpacity:.5,radius:null,states:{hover:{radiusPlus:0}},symbol:"circle"},minSize:8,maxSize:"20%",softThreshold:!1,states:{hover:{halo:{size:5}}},tooltip:{pointFormat:"({point.x}, {point.y}), Size: {point.z}"},turboThreshold:0,zThreshold:0,zoneAxis:"z"}),i}(h);return w(a.prototype,{alignDataLabel:y.alignDataLabel,applyZones:E,bubblePadding:!0,buildKDTree:E,directTouch:!0,isBubble:!0,pointArrayMap:["y","z"],pointClass:R,parallelArrays:["x","y","z"],trackerGroups:["group","dataLabelsGroup"],specialGroup:"group",zoneAxis:"z"}),f(a,"updatedData",function(t){delete t.target.chart.bubbleZExtremes}),f(a,"remove",function(t){delete t.target.chart.bubbleZExtremes}),$.registerSeriesType("bubble",a),a}),it(B,"Series/ColumnRange/ColumnRangePoint.js",[B["Core/Series/SeriesRegistry.js"],B["Core/Utilities.js"]],function(W,R){var H,V=this&&this.__extends||(H=function(M,P){return H=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(y,h){y.__proto__=h}||function(y,h){for(var f in h)h.hasOwnProperty(f)&&(y[f]=h[f])},H(M,P)},function(M,P){function y(){this.constructor=M}H(M,P),M.prototype=P===null?Object.create(P):(y.prototype=P.prototype,new y)}),$=W.seriesTypes,Z=$.column.prototype.pointClass.prototype,U=$.arearange.prototype.pointClass,z=R.extend,I=R.isNumber,E=function(M){function P(){var y=M!==null&&M.apply(this,arguments)||this;return y.options=void 0,y.series=void 0,y}return V(P,M),P.prototype.isValid=function(){return I(this.low)},P}(U);return z(E.prototype,{setState:Z.setState}),E}),it(B,"Series/ColumnRange/ColumnRangeSeries.js",[B["Series/ColumnRange/ColumnRangePoint.js"],B["Core/Globals.js"],B["Core/Series/SeriesRegistry.js"],B["Core/Utilities.js"]],function(W,R,H,V){var $,Z=this&&this.__extends||($=function(w,S){return $=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(x,c){x.__proto__=c}||function(x,c){for(var g in c)c.hasOwnProperty(g)&&(x[g]=c[g])},$(w,S)},function(w,S){function x(){this.constructor=w}$(w,S),w.prototype=S===null?Object.create(S):(x.prototype=S.prototype,new x)}),U=R.noop,z=H.seriesTypes,I=z.arearange,E=z.column,M=z.column.prototype,P=V.clamp,y=V.extend,h=V.isNumber,f=V.merge,m=V.pick,u={pointRange:null,marker:null,states:{hover:{halo:!1}}},v=function(w){function S(){return w!==null&&w.apply(this,arguments)||this}return Z(S,w),S.prototype.setOptions=function(){return f(!0,arguments[0],{stacking:void 0}),I.prototype.setOptions.apply(this,arguments)},S.prototype.translate=function(){var x,c,g,r,a=this,t=this.yAxis,i=this.xAxis,o=i.startAngleRad,e=this.chart,s=this.xAxis.isRadial,n=Math.max(e.chartWidth,e.chartHeight)+999;function l(b){return P(b,-n,n)}M.translate.apply(this),this.points.forEach(function(b){var k=b.shapeArgs||{},D=a.options.minPointLength,p=b.plotY,C=t.translate(b.high,0,1,0,1);if(h(C)&&h(p))if(b.plotHigh=l(C),b.plotLow=l(p),r=b.plotHigh,x=m(b.rectPlotY,b.plotY)-b.plotHigh,Math.abs(x)<D?(x+=c=D-x,r-=c/2):x<0&&(r-=x*=-1),s&&a.polar)g=b.barX+o,b.shapeType="arc",b.shapeArgs=a.polar.arc(r+x,r,g,g+b.pointWidth);else{k.height=x,k.y=r;var A=k.x,N=A===void 0?0:A,_=k.width,L=_===void 0?0:_;b.tooltipPos=e.inverted?[t.len+t.pos-e.plotLeft-r-x/2,i.len+i.pos-e.plotTop-N-L/2,x]:[i.left-e.plotLeft+N+L/2,t.pos-e.plotTop+r+x/2,x]}})},S.prototype.pointAttribs=function(){return M.pointAttribs.apply(this,arguments)},S.prototype.translate3dPoints=function(){return M.translate3dPoints.apply(this,arguments)},S.prototype.translate3dShapes=function(){return M.translate3dShapes.apply(this,arguments)},S.defaultOptions=f(E.defaultOptions,I.defaultOptions,u),S}(I);return y(v.prototype,{directTouch:!0,pointClass:W,trackerGroups:["group","dataLabelsGroup"],adjustForMissingColumns:M.adjustForMissingColumns,animate:M.animate,crispCol:M.crispCol,drawGraph:U,drawPoints:M.drawPoints,getSymbol:U,drawTracker:M.drawTracker,getColumnMetrics:M.getColumnMetrics}),H.registerSeriesType("columnrange",v),v}),it(B,"Series/ColumnPyramid/ColumnPyramidSeries.js",[B["Series/Column/ColumnSeries.js"],B["Core/Series/SeriesRegistry.js"],B["Core/Utilities.js"]],function(W,R,H){var V,$=this&&this.__extends||(V=function(M,P){return V=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(y,h){y.__proto__=h}||function(y,h){for(var f in h)h.hasOwnProperty(f)&&(y[f]=h[f])},V(M,P)},function(M,P){function y(){this.constructor=M}V(M,P),M.prototype=P===null?Object.create(P):(y.prototype=P.prototype,new y)}),Z=W.prototype,U=H.clamp,z=H.merge,I=H.pick,E=function(M){function P(){var y=M!==null&&M.apply(this,arguments)||this;return y.data=void 0,y.options=void 0,y.points=void 0,y}return $(P,M),P.prototype.translate=function(){var y=this,h=y.chart,f=y.options,m=y.dense=y.closestPointRange*y.xAxis.transA<2,u=y.borderWidth=I(f.borderWidth,m?0:1),v=y.yAxis,w=f.threshold,S=y.translatedThreshold=v.getThreshold(w),x=I(f.minPointLength,5),c=y.getColumnMetrics(),g=c.width,r=y.barW=Math.max(g,1+2*u),a=y.pointXOffset=c.offset;h.inverted&&(S-=.5),f.pointPadding&&(r=Math.ceil(r)),Z.translate.apply(y),y.points.forEach(function(t){var i,o,e,s,n,l,b,k,D,p,C,A,N=I(t.yBottom,S),_=999+Math.abs(N),L=U(t.plotY,-_,v.len+_),O=t.plotX+a,j=r/2,Y=Math.min(L,N),X=Math.max(L,N)-Y;t.barX=O,t.pointWidth=g,t.tooltipPos=h.inverted?[v.len+v.pos-h.plotLeft-L,y.xAxis.len-O-j,X]:[O+j,L+v.pos-h.plotTop,X],i=w+(t.total||t.y),f.stacking==="percent"&&(i=w+(t.y<0)?-100:100),e=v.toPixels(i,!0),b=O-(s=(o=h.plotHeight-e-(h.plotHeight-S))?j*(Y-e)/o:0)+j,k=O+s+j,D=O+(n=o?j*(Y+X-e)/o:0)+j,p=O-n+j,C=Y-x,A=Y+X,t.y<0&&(C=Y,A=Y+X+x),h.inverted&&(k=(b=O+j+(s=j*(e-(l=v.width-Y))/(o=e-(v.width-S))))-2*s,D=O-(n=j*(e-(l-X))/o)+j,p=O+n+j,C=Y,A=Y+X-x,t.y<0&&(A=Y+X+x)),t.shapeType="path",t.shapeArgs={x:b,y:C,width:k-b,height:X,d:[["M",b,C],["L",k,C],["L",D,A],["L",p,A],["Z"]]}})},P.defaultOptions=z(W.defaultOptions,{}),P}(W);return R.registerSeriesType("columnpyramid",E),E}),it(B,"Series/ErrorBar/ErrorBarSeriesDefaults.js",[],function(){return{color:"#000000",grouping:!1,linkedTo:":previous",tooltip:{pointFormat:'<span style="color:{point.color}">●</span> {series.name}: <b>{point.low}</b> - <b>{point.high}</b><br/>'},whiskerWidth:null}}),it(B,"Series/ErrorBar/ErrorBarSeries.js",[B["Series/BoxPlot/BoxPlotSeries.js"],B["Series/Column/ColumnSeries.js"],B["Series/ErrorBar/ErrorBarSeriesDefaults.js"],B["Core/Series/SeriesRegistry.js"],B["Core/Utilities.js"]],function(W,R,H,V,$){var Z,U=this&&this.__extends||(Z=function(y,h){return Z=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,m){f.__proto__=m}||function(f,m){for(var u in m)m.hasOwnProperty(u)&&(f[u]=m[u])},Z(y,h)},function(y,h){function f(){this.constructor=y}Z(y,h),y.prototype=h===null?Object.create(h):(f.prototype=h.prototype,new f)}),z=V.seriesTypes.arearange,I=$.addEvent,E=$.merge,M=$.extend,P=function(y){function h(){var f=y!==null&&y.apply(this,arguments)||this;return f.data=void 0,f.options=void 0,f.points=void 0,f}return U(h,y),h.prototype.getColumnMetrics=function(){return this.linkedParent&&this.linkedParent.columnMetrics||R.prototype.getColumnMetrics.call(this)},h.prototype.drawDataLabels=function(){var f=this.pointValKey;z&&(z.prototype.drawDataLabels.call(this),this.data.forEach(function(m){m.y=m[f]}))},h.prototype.toYData=function(f){return[f.low,f.high]},h.defaultOptions=E(W.defaultOptions,H),h}(W);return I(P,"afterTranslate",function(){this.points.forEach(function(y){y.plotLow=y.plotY})},{order:0}),M(P.prototype,{pointArrayMap:["low","high"],pointValKey:"high",doQuartiles:!1}),V.registerSeriesType("errorbar",P),P}),it(B,"Series/Gauge/GaugePoint.js",[B["Core/Series/SeriesRegistry.js"]],function(W){var R,H=this&&this.__extends||(R=function($,Z){return R=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(U,z){U.__proto__=z}||function(U,z){for(var I in z)z.hasOwnProperty(I)&&(U[I]=z[I])},R($,Z)},function($,Z){function U(){this.constructor=$}R($,Z),$.prototype=Z===null?Object.create(Z):(U.prototype=Z.prototype,new U)}),V=function($){function Z(){var U=$!==null&&$.apply(this,arguments)||this;return U.options=void 0,U.series=void 0,U.shapeArgs=void 0,U}return H(Z,$),Z.prototype.setState=function(U){this.state=U},Z}(W.series.prototype.pointClass);return V}),it(B,"Series/Gauge/GaugeSeries.js",[B["Series/Gauge/GaugePoint.js"],B["Core/Globals.js"],B["Core/Series/SeriesRegistry.js"],B["Core/Utilities.js"]],function(W,R,H,V){var $,Z=this&&this.__extends||($=function(u,v){return $=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(w,S){w.__proto__=S}||function(w,S){for(var x in S)S.hasOwnProperty(x)&&(w[x]=S[x])},$(u,v)},function(u,v){function w(){this.constructor=u}$(u,v),u.prototype=v===null?Object.create(v):(w.prototype=v.prototype,new w)}),U=R.noop,z=H.series,I=H.seriesTypes.column,E=V.clamp,M=V.isNumber,P=V.extend,y=V.merge,h=V.pick,f=V.pInt,m=function(u){function v(){var w=u!==null&&u.apply(this,arguments)||this;return w.data=void 0,w.points=void 0,w.options=void 0,w.yAxis=void 0,w}return Z(v,u),v.prototype.translate=function(){var w=this,S=w.yAxis,x=w.options,c=S.center;w.generatePoints(),w.points.forEach(function(g){var r=y(x.dial,g.dial),a=f(r.radius)*c[2]/200,t=f(r.baseLength)*a/100,i=f(r.rearLength)*a/100,o=r.baseWidth,e=r.topWidth,s=x.overshoot,n=S.startAngleRad+S.translate(g.y,void 0,void 0,void 0,!0);(M(s)||x.wrap===!1)&&(s=M(s)?s/180*Math.PI:0,n=E(n,S.startAngleRad-s,S.endAngleRad+s)),n=180*n/Math.PI,g.shapeType="path";var l=r.path||[["M",-i,-o/2],["L",t,-o/2],["L",a,-e/2],["L",a,e/2],["L",t,o/2],["L",-i,o/2],["Z"]];g.shapeArgs={d:l,translateX:c[0],translateY:c[1],rotation:n},g.plotX=c[0],g.plotY=c[1]})},v.prototype.drawPoints=function(){var w=this,S=w.chart,x=w.yAxis.center,c=w.pivot,g=w.options,r=g.pivot,a=S.renderer;w.points.forEach(function(t){var i=t.graphic,o=t.shapeArgs,e=o.d,s=y(g.dial,t.dial);i?(i.animate(o),o.d=e):t.graphic=a[t.shapeType](o).attr({rotation:o.rotation,zIndex:1}).addClass("highcharts-dial").add(w.group),S.styledMode||t.graphic[i?"animate":"attr"]({stroke:s.borderColor,"stroke-width":s.borderWidth,fill:s.backgroundColor})}),c?c.animate({translateX:x[0],translateY:x[1]}):r&&(w.pivot=a.circle(0,0,r.radius).attr({zIndex:2}).addClass("highcharts-pivot").translate(x[0],x[1]).add(w.group),S.styledMode||w.pivot.attr({fill:r.backgroundColor,stroke:r.borderColor,"stroke-width":r.borderWidth}))},v.prototype.animate=function(w){var S=this;w||S.points.forEach(function(x){var c=x.graphic;c&&(c.attr({rotation:180*S.yAxis.startAngleRad/Math.PI}),c.animate({rotation:x.shapeArgs.rotation},S.options.animation))})},v.prototype.render=function(){this.group=this.plotGroup("group","series",this.visible?"inherit":"hidden",this.options.zIndex,this.chart.seriesGroup),z.prototype.render.call(this),this.group.clip(this.chart.clipRect)},v.prototype.setData=function(w,S){z.prototype.setData.call(this,w,!1),this.processData(),this.generatePoints(),h(S,!0)&&this.chart.redraw()},v.prototype.hasData=function(){return!!this.points.length},v.defaultOptions=y(z.defaultOptions,{dataLabels:{borderColor:"#cccccc",borderRadius:3,borderWidth:1,crop:!1,defer:!1,enabled:!0,verticalAlign:"top",y:15,zIndex:2},dial:{backgroundColor:"#000000",baseLength:"70%",baseWidth:3,borderColor:"#cccccc",borderWidth:0,radius:"80%",rearLength:"10%",topWidth:1},pivot:{radius:5,borderWidth:0,borderColor:"#cccccc",backgroundColor:"#000000"},tooltip:{headerFormat:""},showInLegend:!1}),v}(z);return P(m.prototype,{angular:!0,directTouch:!0,drawGraph:U,drawTracker:I.prototype.drawTracker,fixedBox:!0,forceDL:!0,noSharedTooltip:!0,pointClass:W,trackerGroups:["group","dataLabelsGroup"]}),H.registerSeriesType("gauge",m),m}),it(B,"Series/DragNodesComposition.js",[B["Core/Utilities.js"]],function(W){var R=W.addEvent,H=[];function V(){var $,Z,U,z=this;z.container&&($=R(z.container,"mousedown",function(I){var E=z.hoverPoint;E&&E.series&&E.series.hasDraggableNodes&&E.series.options.draggable&&(E.series.onMouseDown(E,I),Z=R(z.container,"mousemove",function(M){return E&&E.series&&E.series.onMouseMove(E,M)}),U=R(z.container.ownerDocument,"mouseup",function(M){return Z(),U(),E&&E.series&&E.series.onMouseUp(E,M)}))})),R(z,"destroy",function(){$()})}return{compose:function($){H.indexOf($)===-1&&(H.push($),R($,"load",V))},onMouseDown:function($,Z){var U=this.chart.pointer.normalize(Z);$.fixedPosition={chartX:U.chartX,chartY:U.chartY,plotX:$.plotX,plotY:$.plotY},$.inDragMode=!0},onMouseMove:function($,Z){if($.fixedPosition&&$.inDragMode){var U=this.chart,z=U.pointer.normalize(Z),I=$.fixedPosition.chartX-z.chartX,E=$.fixedPosition.chartY-z.chartY,M=U.graphLayoutsLookup,P=void 0,y=void 0;(Math.abs(I)>5||Math.abs(E)>5)&&(P=$.fixedPosition.plotX-I,y=$.fixedPosition.plotY-E,U.isInsidePlot(P,y)&&($.plotX=P,$.plotY=y,$.hasDragged=!0,this.redrawHalo($),M.forEach(function(h){h.restartSimulation()})))}},onMouseUp:function($,Z){$.fixedPosition&&($.hasDragged&&(this.layout.enableSimulation?this.layout.start():this.chart.redraw()),$.inDragMode=$.hasDragged=!1,this.options.fixedDraggable||delete $.fixedPosition)},redrawHalo:function($){$&&this.halo&&this.halo.attr({d:$.haloPath(this.options.states.hover.halo.size)})}}}),it(B,"Series/GraphLayoutComposition.js",[B["Core/Animation/AnimationUtilities.js"],B["Core/Utilities.js"]],function(W,R){var H=W.setAnimation,V=R.addEvent,$=[];function Z(){this.graphLayoutsLookup&&(this.graphLayoutsLookup.forEach(function(E){E.updateSimulation()}),this.redraw())}function U(){this.graphLayoutsLookup&&(this.graphLayoutsLookup.forEach(function(E){E.updateSimulation(!1)}),this.redraw())}function z(){this.graphLayoutsLookup&&this.graphLayoutsLookup.forEach(function(E){E.stop()})}function I(){var E,M=!1,P=function(y){y.maxIterations--&&isFinite(y.temperature)&&!y.isStable()&&!y.enableSimulation&&(y.beforeStep&&y.beforeStep(),y.step(),E=!1,M=!0)};if(this.graphLayoutsLookup){for(H(!1,this),this.graphLayoutsLookup.forEach(function(y){return y.start()});!E;)E=!0,this.graphLayoutsLookup.forEach(P);M&&this.series.forEach(function(y){y&&y.layout&&y.render()})}}return{compose:function(E){$.indexOf(E)&&($.push(E),V(E,"afterPrint",Z),V(E,"beforePrint",U),V(E,"predraw",z),V(E,"render",I))},integrations:{},layouts:{}}}),it(B,"Series/PackedBubble/PackedBubblePoint.js",[B["Core/Chart/Chart.js"],B["Core/Series/Point.js"],B["Core/Series/SeriesRegistry.js"]],function(W,R,H){var V,$=this&&this.__extends||(V=function(U,z){return V=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(I,E){I.__proto__=E}||function(I,E){for(var M in E)E.hasOwnProperty(M)&&(I[M]=E[M])},V(U,z)},function(U,z){function I(){this.constructor=U}V(U,z),U.prototype=z===null?Object.create(z):(I.prototype=z.prototype,new I)}),Z=function(U){function z(){var I=U!==null&&U.apply(this,arguments)||this;return I.degree=NaN,I.mass=NaN,I.radius=NaN,I.options=void 0,I.series=void 0,I.value=null,I}return $(z,U),z.prototype.destroy=function(){return this.series.layout&&this.series.layout.removeElementFromCollection(this,this.series.layout.nodes),R.prototype.destroy.apply(this,arguments)},z.prototype.firePointEvent=function(){var I=this.series.options;if(this.isParentNode&&I.parentNode){var E=I.allowPointSelect;I.allowPointSelect=I.parentNode.allowPointSelect,R.prototype.firePointEvent.apply(this,arguments),I.allowPointSelect=E}else R.prototype.firePointEvent.apply(this,arguments)},z.prototype.select=function(){var I=this.series.chart;this.isParentNode?(I.getSelectedPoints=I.getSelectedParentNodes,R.prototype.select.apply(this,arguments),I.getSelectedPoints=W.prototype.getSelectedPoints):R.prototype.select.apply(this,arguments)},z}(H.seriesTypes.bubble.prototype.pointClass);return Z}),it(B,"Series/PackedBubble/PackedBubbleSeriesDefaults.js",[B["Core/Utilities.js"]],function(W){var R=W.isNumber;return{minSize:"10%",maxSize:"50%",sizeBy:"area",zoneAxis:"y",crisp:!1,tooltip:{pointFormat:"Value: {point.value}"},draggable:!0,useSimulation:!0,parentNode:{allowPointSelect:!1},dataLabels:{formatter:function(){var H=this.series.chart.numberFormatter,V=this.point.value;return R(V)?H(V,-1):""},parentNodeFormatter:function(){return this.name},parentNodeTextPath:{enabled:!0},padding:0,style:{transition:"opacity 2000ms"}},layoutAlgorithm:{initialPositions:"circle",initialPositionRadius:20,bubblePadding:5,parentNodeLimit:!1,seriesInteraction:!0,dragBetweenSeries:!1,parentNodeOptions:{maxIterations:400,gravitationalConstant:.03,maxSpeed:50,initialPositionRadius:100,seriesInteraction:!0,marker:{fillColor:null,fillOpacity:1,lineWidth:null,lineColor:null,symbol:"circle"}},enableSimulation:!0,type:"packedbubble",integration:"packedbubble",maxIterations:1e3,splitSeries:!1,maxSpeed:5,gravitationalConstant:.01,friction:-.981}}}),it(B,"Series/Networkgraph/VerletIntegration.js",[],function(){return{attractive:function(W,R,H){var V=W.getMass(),$=-H.x*R*this.diffTemperature,Z=-H.y*R*this.diffTemperature;W.fromNode.fixedPosition||(W.fromNode.plotX-=$*V.fromNode/W.fromNode.degree,W.fromNode.plotY-=Z*V.fromNode/W.fromNode.degree),W.toNode.fixedPosition||(W.toNode.plotX+=$*V.toNode/W.toNode.degree,W.toNode.plotY+=Z*V.toNode/W.toNode.degree)},attractiveForceFunction:function(W,R){return(R-W)/W},barycenter:function(){var W=this.options.gravitationalConstant,R=this.barycenter.xFactor,H=this.barycenter.yFactor;R=(R-(this.box.left+this.box.width)/2)*W,H=(H-(this.box.top+this.box.height)/2)*W,this.nodes.forEach(function(V){V.fixedPosition||(V.plotX-=R/V.mass/V.degree,V.plotY-=H/V.mass/V.degree)})},getK:function(W){return Math.pow(W.box.width*W.box.height/W.nodes.length,.5)},integrate:function(W,R){var H=-W.options.friction,V=W.options.maxSpeed,$=R.prevX,Z=R.prevY,U=(R.plotX+R.dispX-$)*H,z=(R.plotY+R.dispY-Z)*H,I=Math.abs,E=I(U)/(U||1),M=I(z)/(z||1);U=E*Math.min(V,Math.abs(U)),z=M*Math.min(V,Math.abs(z)),R.prevX=R.plotX+R.dispX,R.prevY=R.plotY+R.dispY,R.plotX+=U,R.plotY+=z,R.temperature=W.vectorLength({x:U,y:z})},repulsive:function(W,R,H){var V=R*this.diffTemperature/W.mass/W.degree;W.fixedPosition||(W.plotX+=H.x*V,W.plotY+=H.y*V)},repulsiveForceFunction:function(W,R){return(R-W)/W*(R>W?1:0)}}}),it(B,"Series/PackedBubble/PackedBubbleIntegration.js",[B["Core/Globals.js"],B["Series/Networkgraph/VerletIntegration.js"]],function(W,R){return{barycenter:function(){for(var H,V,$=this,Z=$.options.gravitationalConstant,U=$.box,z=$.nodes,I=0,E=z;I<E.length;I++){var M=E[I];$.options.splitSeries&&!M.isParentNode?(H=M.series.parentNode.plotX,V=M.series.parentNode.plotY):(H=U.width/2,V=U.height/2),M.fixedPosition||(M.plotX-=(M.plotX-H)*Z/(M.mass*Math.sqrt(z.length)),M.plotY-=(M.plotY-V)*Z/(M.mass*Math.sqrt(z.length)))}},getK:W.noop,integrate:R.integrate,repulsive:function(H,V,$,Z){var U=V*this.diffTemperature/H.mass/H.degree,z=$.x*U,I=$.y*U;H.fixedPosition||(H.plotX+=z,H.plotY+=I),Z.fixedPosition||(Z.plotX-=z,Z.plotY-=I)},repulsiveForceFunction:function(H,V,$,Z){return Math.min(H,($.marker.radius+Z.marker.radius)/2)}}}),it(B,"Series/Networkgraph/EulerIntegration.js",[],function(){return{attractive:function(W,R,H,V){var $=W.getMass(),Z=H.x/V*R,U=H.y/V*R;W.fromNode.fixedPosition||(W.fromNode.dispX-=Z*$.fromNode/W.fromNode.degree,W.fromNode.dispY-=U*$.fromNode/W.fromNode.degree),W.toNode.fixedPosition||(W.toNode.dispX+=Z*$.toNode/W.toNode.degree,W.toNode.dispY+=U*$.toNode/W.toNode.degree)},attractiveForceFunction:function(W,R){return W*W/R},barycenter:function(){var W=this.options.gravitationalConstant,R=this.barycenter.xFactor,H=this.barycenter.yFactor;this.nodes.forEach(function(V){if(!V.fixedPosition){var $=V.getDegree(),Z=$*(1+$/2);V.dispX+=(R-V.plotX)*W*Z/V.degree,V.dispY+=(H-V.plotY)*W*Z/V.degree}})},getK:function(W){return Math.pow(W.box.width*W.box.height/W.nodes.length,.3)},integrate:function(W,R){var H;R.dispX+=R.dispX*W.options.friction,R.dispY+=R.dispY*W.options.friction,(H=R.temperature=W.vectorLength({x:R.dispX,y:R.dispY}))!==0&&(R.plotX+=R.dispX/H*Math.min(Math.abs(R.dispX),W.temperature),R.plotY+=R.dispY/H*Math.min(Math.abs(R.dispY),W.temperature))},repulsive:function(W,R,H,V){W.dispX+=H.x/V*R/W.degree,W.dispY+=H.y/V*R/W.degree},repulsiveForceFunction:function(W,R){return R*R/W}}}),it(B,"Series/Networkgraph/QuadTreeNode.js",[],function(){return function(){function W(R){this.body=!1,this.isEmpty=!1,this.isInternal=!1,this.nodes=[],this.box=R,this.boxSize=Math.min(R.width,R.height)}return W.prototype.divideBox=function(){var R=this.box.width/2,H=this.box.height/2;this.nodes[0]=new W({left:this.box.left,top:this.box.top,width:R,height:H}),this.nodes[1]=new W({left:this.box.left+R,top:this.box.top,width:R,height:H}),this.nodes[2]=new W({left:this.box.left+R,top:this.box.top+H,width:R,height:H}),this.nodes[3]=new W({left:this.box.left,top:this.box.top+H,width:R,height:H})},W.prototype.getBoxPosition=function(R){var H=R.plotX<this.box.left+this.box.width/2,V=R.plotY<this.box.top+this.box.height/2;return H?V?0:3:V?1:2},W.prototype.insert=function(R,H){var V;this.isInternal?this.nodes[this.getBoxPosition(R)].insert(R,H-1):(this.isEmpty=!1,this.body?H?(this.isInternal=!0,this.divideBox(),this.body!==!0&&(this.nodes[this.getBoxPosition(this.body)].insert(this.body,H-1),this.body=!0),this.nodes[this.getBoxPosition(R)].insert(R,H-1)):((V=new W({top:R.plotX||NaN,left:R.plotY||NaN,width:.1,height:.1})).body=R,V.isInternal=!1,this.nodes.push(V)):(this.isInternal=!1,this.body=R))},W.prototype.updateMassAndCenter=function(){var R=0,H=0,V=0;if(this.isInternal){for(var $=0,Z=this.nodes;$<Z.length;$++){var U=Z[$];U.isEmpty||(R+=U.mass,H+=U.plotX*U.mass,V+=U.plotY*U.mass)}H/=R,V/=R}else this.body&&(R=this.body.mass,H=this.body.plotX,V=this.body.plotY);this.mass=R,this.plotX=H,this.plotY=V},W}()}),it(B,"Series/Networkgraph/QuadTree.js",[B["Series/Networkgraph/QuadTreeNode.js"]],function(W){return function(){function R(H,V,$,Z){this.box={left:H,top:V,width:$,height:Z},this.maxDepth=25,this.root=new W(this.box),this.root.isInternal=!0,this.root.isRoot=!0,this.root.divideBox()}return R.prototype.calculateMassAndCenter=function(){this.visitNodeRecursive(null,null,function(H){H.updateMassAndCenter()})},R.prototype.insertNodes=function(H){for(var V=0,$=H;V<$.length;V++){var Z=$[V];this.root.insert(Z,this.maxDepth)}},R.prototype.visitNodeRecursive=function(H,V,$){var Z;if(H||(H=this.root),H===this.root&&V&&(Z=V(H)),Z!==!1){for(var U=0,z=H.nodes;U<z.length;U++){var I=z[U];if(I.isInternal){if(V&&(Z=V(I)),Z===!1)continue;this.visitNodeRecursive(I,V,$)}else I.body&&V&&V(I.body);$&&$(I)}H===this.root&&$&&$(H)}},R}()}),it(B,"Series/Networkgraph/ReingoldFruchtermanLayout.js",[B["Series/Networkgraph/EulerIntegration.js"],B["Core/Globals.js"],B["Series/GraphLayoutComposition.js"],B["Series/Networkgraph/QuadTree.js"],B["Core/Utilities.js"],B["Series/Networkgraph/VerletIntegration.js"]],function(W,R,H,V,$,Z){var U=R.win,z=$.clamp,I=$.defined,E=$.isFunction,M=$.pick,P=function(){function y(){this.attractiveForce=void 0,this.box={},this.currentStep=0,this.initialRendering=!0,this.integration=void 0,this.links=[],this.nodes=[],this.options=void 0,this.quadTree=void 0,this.repulsiveForce=void 0,this.series=[],this.simulation=!1}return y.compose=function(h){H.compose(h),H.integrations.euler=W,H.integrations.verlet=Z,H.layouts["reingold-fruchterman"]=y},y.prototype.init=function(h){this.options=h,this.nodes=[],this.links=[],this.series=[],this.box={x:0,y:0,width:0,height:0},this.setInitialRendering(!0),this.integration=H.integrations[h.integration],this.enableSimulation=h.enableSimulation,this.attractiveForce=M(h.attractiveForce,this.integration.attractiveForceFunction),this.repulsiveForce=M(h.repulsiveForce,this.integration.repulsiveForceFunction),this.approximation=h.approximation},y.prototype.updateSimulation=function(h){this.enableSimulation=M(h,this.options.enableSimulation)},y.prototype.start=function(){var h=this,f=this.series,m=this.options;h.currentStep=0,h.forces=f[0]&&f[0].forces||[],h.chart=f[0]&&f[0].chart,h.initialRendering&&(h.initPositions(),f.forEach(function(u){u.finishedAnimating=!0,u.render()})),h.setK(),h.resetSimulation(m),h.enableSimulation&&h.step()},y.prototype.step=function(){var h=this,f=this.series;this.currentStep++,this.approximation==="barnes-hut"&&(this.createQuadTree(),this.quadTree.calculateMassAndCenter());for(var m=0,u=this.forces||[];m<u.length;m++)this[u[m]+"Forces"](this.temperature);if(this.applyLimits(),this.temperature=this.coolDown(this.startTemperature,this.diffTemperature,this.currentStep),this.prevSystemTemperature=this.systemTemperature,this.systemTemperature=this.getSystemTemperature(),this.enableSimulation){for(var v=0,w=f;v<w.length;v++){var S=w[v];S.chart&&S.render()}this.maxIterations--&&isFinite(this.temperature)&&!this.isStable()?(this.simulation&&U.cancelAnimationFrame(this.simulation),this.simulation=U.requestAnimationFrame(function(){return h.step()})):this.simulation=!1}},y.prototype.stop=function(){this.simulation&&U.cancelAnimationFrame(this.simulation)},y.prototype.setArea=function(h,f,m,u){this.box={left:h,top:f,width:m,height:u}},y.prototype.setK=function(){this.k=this.options.linkLength||this.integration.getK(this)},y.prototype.addElementsToCollection=function(h,f){for(var m=0,u=h;m<u.length;m++){var v=u[m];f.indexOf(v)===-1&&f.push(v)}},y.prototype.removeElementFromCollection=function(h,f){var m=f.indexOf(h);m!==-1&&f.splice(m,1)},y.prototype.clear=function(){this.nodes.length=0,this.links.length=0,this.series.length=0,this.resetSimulation()},y.prototype.resetSimulation=function(){this.forcedStop=!1,this.systemTemperature=0,this.setMaxIterations(),this.setTemperature(),this.setDiffTemperature()},y.prototype.restartSimulation=function(){this.simulation?this.resetSimulation():(this.setInitialRendering(!1),this.enableSimulation?this.start():this.setMaxIterations(1),this.chart&&this.chart.redraw(),this.setInitialRendering(!0))},y.prototype.setMaxIterations=function(h){this.maxIterations=M(h,this.options.maxIterations)},y.prototype.setTemperature=function(){this.temperature=this.startTemperature=Math.sqrt(this.nodes.length)},y.prototype.setDiffTemperature=function(){this.diffTemperature=this.startTemperature/(this.options.maxIterations+1)},y.prototype.setInitialRendering=function(h){this.initialRendering=h},y.prototype.createQuadTree=function(){this.quadTree=new V(this.box.left,this.box.top,this.box.width,this.box.height),this.quadTree.insertNodes(this.nodes)},y.prototype.initPositions=function(){var h=this.options.initialPositions;if(E(h)){h.call(this);for(var f=0,m=this.nodes;f<m.length;f++){var u=m[f];I(u.prevX)||(u.prevX=u.plotX),I(u.prevY)||(u.prevY=u.plotY),u.dispX=0,u.dispY=0}}else h==="circle"?this.setCircularPositions():this.setRandomPositions()},y.prototype.setCircularPositions=function(){for(var h,f=this.box,m=this.nodes,u=m.length+1,v=2*Math.PI/u,w=m.filter(function(l){return l.linksTo.length===0}),S={},x=this.options.initialPositionRadius,c=function(l){for(var b=0,k=l.linksFrom||[];b<k.length;b++){var D=k[b];S[D.toNode.id]||(S[D.toNode.id]=!0,g.push(D.toNode),c(D.toNode))}},g=[],r=0,a=w;r<a.length;r++){var t=a[r];g.push(t),c(t)}if(g.length)for(var i=0,o=m;i<o.length;i++){var e=o[i];g.indexOf(e)===-1&&g.push(e)}else g=m;for(var s=0,n=g.length;s<n;++s)(h=g[s]).plotX=h.prevX=M(h.plotX,f.width/2+x*Math.cos(s*v)),h.plotY=h.prevY=M(h.plotY,f.height/2+x*Math.sin(s*v)),h.dispX=0,h.dispY=0},y.prototype.setRandomPositions=function(){for(var h,f=this.box,m=this.nodes,u=m.length+1,v=function(x){var c=x*x/Math.PI;return c-Math.floor(c)},w=0,S=m.length;w<S;++w)(h=m[w]).plotX=h.prevX=M(h.plotX,f.width*v(w)),h.plotY=h.prevY=M(h.plotY,f.height*v(u+w)),h.dispX=0,h.dispY=0},y.prototype.force=function(h){for(var f=[],m=1;m<arguments.length;m++)f[m-1]=arguments[m];this.integration[h].apply(this,f)},y.prototype.barycenterForces=function(){this.getBarycenter(),this.force("barycenter")},y.prototype.getBarycenter=function(){for(var h=0,f=0,m=0,u=0,v=this.nodes;u<v.length;u++){var w=v[u];f+=w.plotX*w.mass,m+=w.plotY*w.mass,h+=w.mass}return this.barycenter={x:f,y:m,xFactor:f/h,yFactor:m/h},this.barycenter},y.prototype.barnesHutApproximation=function(h,f){var m,u,v=this.getDistXY(h,f),w=this.vectorLength(v);return h!==f&&w!==0&&(f.isInternal?f.boxSize/w<this.options.theta&&w!==0?(u=this.repulsiveForce(w,this.k),this.force("repulsive",h,u*f.mass,v,w),m=!1):m=!0:(u=this.repulsiveForce(w,this.k),this.force("repulsive",h,u*f.mass,v,w))),m},y.prototype.repulsiveForces=function(){var h=this;if(this.approximation==="barnes-hut")for(var f=function(o){m.quadTree.visitNodeRecursive(null,function(e){return h.barnesHutApproximation(o,e)})},m=this,u=0,v=this.nodes;u<v.length;u++)f(r=v[u]);else for(var w=void 0,S=void 0,x=void 0,c=0,g=this.nodes;c<g.length;c++)for(var r=g[c],a=0,t=this.nodes;a<t.length;a++){var i=t[a];r===i||r.fixedPosition||(x=this.getDistXY(r,i),(S=this.vectorLength(x))!==0&&(w=this.repulsiveForce(S,this.k),this.force("repulsive",r,w*i.mass,x,S)))}},y.prototype.attractiveForces=function(){for(var h,f,m,u=0,v=this.links;u<v.length;u++){var w=v[u];w.fromNode&&w.toNode&&(h=this.getDistXY(w.fromNode,w.toNode),(f=this.vectorLength(h))!==0&&(m=this.attractiveForce(f,this.k),this.force("attractive",w,m,h,f)))}},y.prototype.applyLimits=function(){for(var h=0,f=this.nodes;h<f.length;h++){var m=f[h];if(m.fixedPosition)return;this.integration.integrate(this,m),this.applyLimitBox(m,this.box),m.dispX=0,m.dispY=0}},y.prototype.applyLimitBox=function(h,f){var m=h.radius;h.plotX=z(h.plotX,f.left+m,f.width-m),h.plotY=z(h.plotY,f.top+m,f.height-m)},y.prototype.coolDown=function(h,f,m){return h-f*m},y.prototype.isStable=function(){return Math.abs(this.systemTemperature-this.prevSystemTemperature)<1e-5||this.temperature<=0},y.prototype.getSystemTemperature=function(){for(var h=0,f=0,m=this.nodes;f<m.length;f++)h+=m[f].temperature;return h},y.prototype.vectorLength=function(h){return Math.sqrt(h.x*h.x+h.y*h.y)},y.prototype.getDistR=function(h,f){var m=this.getDistXY(h,f);return this.vectorLength(m)},y.prototype.getDistXY=function(h,f){var m=h.plotX-f.plotX,u=h.plotY-f.plotY;return{x:m,y:u,absX:Math.abs(m),absY:Math.abs(u)}},y}();return P}),it(B,"Series/PackedBubble/PackedBubbleLayout.js",[B["Series/GraphLayoutComposition.js"],B["Series/PackedBubble/PackedBubbleIntegration.js"],B["Series/Networkgraph/ReingoldFruchtermanLayout.js"],B["Core/Utilities.js"]],function(W,R,H,V){var $,Z=this&&this.__extends||($=function(y,h){return $=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,m){f.__proto__=m}||function(f,m){for(var u in m)m.hasOwnProperty(u)&&(f[u]=m[u])},$(y,h)},function(y,h){function f(){this.constructor=y}$(y,h),y.prototype=h===null?Object.create(h):(f.prototype=h.prototype,new f)}),U=V.addEvent,z=V.pick,I=[];function E(){var y=this.series,h=[];return y.forEach(function(f){f.parentNode&&f.parentNode.selected&&h.push(f.parentNode)}),h}function M(){this.allDataPoints&&delete this.allDataPoints}var P=function(y){function h(){var f=y!==null&&y.apply(this,arguments)||this;return f.index=NaN,f.nodes=[],f.options=void 0,f.series=[],f}return Z(h,y),h.compose=function(f){H.compose(f),W.integrations.packedbubble=R,W.layouts.packedbubble=h,I.indexOf(f)===-1&&(I.push(f),U(f,"beforeRedraw",M),f.prototype.getSelectedParentNodes=E)},h.prototype.beforeStep=function(){this.options.marker&&this.series.forEach(function(f){f&&f.calculateParentRadius()})},h.prototype.isStable=function(){var f=Math.abs(this.prevSystemTemperature-this.systemTemperature),m=10*this.systemTemperature/Math.sqrt(this.nodes.length);return Math.abs(m)<1&&f<1e-5||this.temperature<=0},h.prototype.setCircularPositions=function(){for(var f,m,u=this,v=u.box,w=u.nodes,S=w.length+1,x=2*Math.PI/S,c=u.options.initialPositionRadius,g=0,r=0,a=w;r<a.length;r++){var t=a[r];u.options.splitSeries&&!t.isParentNode?(f=t.series.parentNode.plotX,m=t.series.parentNode.plotY):(f=v.width/2,m=v.height/2),t.plotX=t.prevX=z(t.plotX,f+c*Math.cos(t.index||g*x)),t.plotY=t.prevY=z(t.plotY,m+c*Math.sin(t.index||g*x)),t.dispX=0,t.dispY=0,g++}},h.prototype.repulsiveForces=function(){var f,m,u,v=this,w=v.options.bubblePadding;v.nodes.forEach(function(S){S.degree=S.mass,S.neighbours=0,v.nodes.forEach(function(x){f=0,S===x||S.fixedPosition||!v.options.seriesInteraction&&S.series!==x.series||(u=v.getDistXY(S,x),(m=v.vectorLength(u)-(S.marker.radius+x.marker.radius+w))<0&&(S.degree+=.01,S.neighbours++,f=v.repulsiveForce(-m/Math.sqrt(S.neighbours),v.k,S,x)),v.force("repulsive",S,f*x.mass,u,x,m))})})},h.prototype.applyLimitBox=function(f,m){var u,v,w=this;w.options.splitSeries&&!f.isParentNode&&w.options.parentNodeLimit&&(u=w.getDistXY(f,f.series.parentNode),(v=f.series.parentNodeRadius-f.marker.radius-w.vectorLength(u))<0&&v>-2*f.marker.radius&&(f.plotX-=.01*u.x,f.plotY-=.01*u.y)),y.prototype.applyLimitBox.call(this,f,m)},h}(H);return W.layouts.packedbubble=P,P}),it(B,"Series/PackedBubble/PackedBubbleSeries.js",[B["Core/Color/Color.js"],B["Series/DragNodesComposition.js"],B["Series/GraphLayoutComposition.js"],B["Core/Globals.js"],B["Series/PackedBubble/PackedBubblePoint.js"],B["Series/PackedBubble/PackedBubbleSeriesDefaults.js"],B["Series/PackedBubble/PackedBubbleLayout.js"],B["Core/Series/SeriesRegistry.js"],B["Core/Utilities.js"]],function(W,R,H,V,$,Z,U,z,I){var E,M=this&&this.__extends||(E=function(t,i){return E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,e){o.__proto__=e}||function(o,e){for(var s in e)e.hasOwnProperty(s)&&(o[s]=e[s])},E(t,i)},function(t,i){function o(){this.constructor=t}E(t,i),t.prototype=i===null?Object.create(i):(o.prototype=i.prototype,new o)}),P=W.parse,y=V.noop,h=z.series.prototype,f=z.seriesTypes.bubble,m=I.addEvent,u=I.clamp,v=I.defined,w=I.extend,S=I.fireEvent,x=I.isArray,c=I.isNumber,g=I.merge,r=I.pick,a=function(t){function i(){var o=t!==null&&t.apply(this,arguments)||this;return o.chart=void 0,o.data=void 0,o.layout=void 0,o.options=void 0,o.parentNodeMass=0,o.points=void 0,o.xData=void 0,o}return M(i,t),i.compose=function(o,e,s,n){f.compose(o,e,s,n),R.compose(e),U.compose(e)},i.prototype.accumulateAllPoints=function(){for(var o,e=this.chart,s=[],n=0,l=e.series;n<l.length;n++){var b=l[n];if(b.is("packedbubble")&&b.visible||!e.options.chart.ignoreHiddenSeries){o=b.yData||[];for(var k=0;k<o.length;k++)s.push([null,null,o[k],b.index,k,{id:k,marker:{radius:0}}])}}return s},i.prototype.addLayout=function(){var o,e=this.options.layoutAlgorithm=this.options.layoutAlgorithm||{},s=e.type||"packedbubble",n=this.chart.options.chart,l=this.chart.graphLayoutsStorage,b=this.chart.graphLayoutsLookup;l||(this.chart.graphLayoutsStorage=l={},this.chart.graphLayoutsLookup=b=[]),(o=l[s])||(e.enableSimulation=v(n.forExport)?!n.forExport:e.enableSimulation,l[s]=o=new H.layouts[s],o.init(e),b.splice(o.index,0,o)),this.layout=o,this.points.forEach(function(k){k.mass=2,k.degree=1,k.collisionNmb=1}),o.setArea(0,0,this.chart.plotWidth,this.chart.plotHeight),o.addElementsToCollection([this],o.series),o.addElementsToCollection(this.points,o.nodes)},i.prototype.addSeriesLayout=function(){var o=this.options.layoutAlgorithm=this.options.layoutAlgorithm||{},e=o.type||"packedbubble",s=this.chart.graphLayoutsStorage,n=this.chart.graphLayoutsLookup,l=g(o,o.parentNodeOptions,{enableSimulation:this.layout.options.enableSimulation}),b=s[e+"-series"];b||(s[e+"-series"]=b=new H.layouts[e],b.init(l),n.splice(b.index,0,b)),this.parentNodeLayout=b,this.createParentNodes()},i.prototype.calculateParentRadius=function(){var o=this.seriesBox();this.parentNodeRadius=u(Math.sqrt(2*this.parentNodeMass/Math.PI)+20,20,o?Math.max(Math.sqrt(Math.pow(o.width,2)+Math.pow(o.height,2))/2+20,20):Math.sqrt(2*this.parentNodeMass/Math.PI)+20),this.parentNode&&(this.parentNode.marker.radius=this.parentNode.radius=this.parentNodeRadius)},i.prototype.calculateZExtremes=function(){var o=this.chart.series,e=this.options.zMin,s=this.options.zMax,n=1/0,l=-1/0;return e&&s?[e,s]:(o.forEach(function(b){b.yData.forEach(function(k){v(k)&&(k>l&&(l=k),k<n&&(n=k))})}),[e=r(e,n),s=r(s,l)])},i.prototype.checkOverlap=function(o,e){var s=o[0]-e[0],n=o[1]-e[1],l=o[2]+e[2];return Math.sqrt(s*s+n*n)-Math.abs(l)<-.001},i.prototype.createParentNodes=function(){var o,e=this,s=this.pointClass,n=this.chart,l=this.parentNodeLayout,b=this.layout.options,k=this.parentNode,D={radius:this.parentNodeRadius,lineColor:this.color,fillColor:P(this.color).brighten(.4).get()};b.parentNodeOptions&&(D=g(b.parentNodeOptions.marker||{},D)),this.parentNodeMass=0,this.points.forEach(function(p){e.parentNodeMass+=Math.PI*Math.pow(p.marker.radius,2)}),this.calculateParentRadius(),l.nodes.forEach(function(p){p.seriesIndex===e.index&&(o=!0)}),l.setArea(0,0,n.plotWidth,n.plotHeight),o||(k||(k=new s().init(this,{mass:this.parentNodeRadius/2,marker:D,dataLabels:{inside:!1},states:{normal:{marker:D},hover:{marker:D}},dataLabelOnNull:!0,degree:this.parentNodeRadius,isParentNode:!0,seriesIndex:this.index})),this.parentNode&&(k.plotX=this.parentNode.plotX,k.plotY=this.parentNode.plotY),this.parentNode=k,l.addElementsToCollection([this],l.series),l.addElementsToCollection([k],l.nodes))},i.prototype.deferLayout=function(){var o=this.options.layoutAlgorithm;this.visible&&(this.addLayout(),o.splitSeries&&this.addSeriesLayout())},i.prototype.destroy=function(){var o=this;this.chart.graphLayoutsLookup&&this.chart.graphLayoutsLookup.forEach(function(e){e.removeElementFromCollection(o,e.series)},this),this.parentNode&&this.parentNodeLayout&&(this.parentNodeLayout.removeElementFromCollection(this.parentNode,this.parentNodeLayout.nodes),this.parentNode.dataLabel&&(this.parentNode.dataLabel=this.parentNode.dataLabel.destroy())),h.destroy.apply(this,arguments)},i.prototype.drawDataLabels=function(){h.drawDataLabels.call(this,this.points),this.parentNode&&(this.parentNode.formatPrefix="parentNode",h.drawDataLabels.call(this,[this.parentNode]))},i.prototype.drawGraph=function(){if(this.layout&&this.layout.options.splitSeries){var o,e=this.chart,s=this.layout.options.parentNodeOptions.marker,n={fill:s.fillColor||P(this.color).brighten(.4).get(),opacity:s.fillOpacity,stroke:s.lineColor||this.color,"stroke-width":r(s.lineWidth,this.options.lineWidth)};this.parentNodesGroup||(this.parentNodesGroup=this.plotGroup("parentNodesGroup","parentNode",this.visible?"inherit":"hidden",.1,e.seriesGroup),this.group.attr({zIndex:2})),this.calculateParentRadius(),o=g({x:this.parentNode.plotX-this.parentNodeRadius,y:this.parentNode.plotY-this.parentNodeRadius,width:2*this.parentNodeRadius,height:2*this.parentNodeRadius},n),this.parentNode.graphic||(this.graph=this.parentNode.graphic=e.renderer.symbol(n.symbol).add(this.parentNodesGroup)),this.parentNode.graphic.attr(o)}},i.prototype.drawTracker=function(){var o,e=this.parentNode;t.prototype.drawTracker.call(this),e&&(o=x(e.dataLabels)?e.dataLabels:e.dataLabel?[e.dataLabel]:[],e.graphic&&(e.graphic.element.point=e),o.forEach(function(s){s.div?s.div.point=e:s.element.point=e}))},i.prototype.getPointRadius=function(){var o,e,s,n,l=this,b=this.chart,k=b.plotWidth,D=b.plotHeight,p=this.options,C=p.useSimulation,A=Math.min(k,D),N={},_=[],L=b.allDataPoints||[],O=L.length;["minSize","maxSize"].forEach(function(Y){var X=parseInt(p[Y],10),G=/%$/.test(p[Y]);N[Y]=G?A*X/100:X*Math.sqrt(O)}),b.minRadius=o=N.minSize/Math.sqrt(O),b.maxRadius=e=N.maxSize/Math.sqrt(O);var j=C?this.calculateZExtremes():[o,e];L.forEach(function(Y,X){s=C?u(Y[2],j[0],j[1]):Y[2],(n=l.getRadius(j[0],j[1],o,e,s))===0&&(n=null),L[X][2]=n,_.push(n)}),this.radii=_},i.prototype.init=function(){return h.init.apply(this,arguments),this.eventsToUnbind.push(m(this,"updatedData",function(){var o=this;this.chart.series.forEach(function(e){e.type===o.type&&(e.isDirty=!0)},this)})),this},i.prototype.onMouseUp=function(o){var e=o;if(e.fixedPosition&&!e.removed){var s,n=this.layout,l=this.parentNodeLayout;l&&n.options.dragBetweenSeries&&l.nodes.forEach(function(b){e&&e.marker&&b!==e.series.parentNode&&(s=n.getDistXY(e,b),n.vectorLength(s)-b.marker.radius-e.marker.radius<0&&(b.series.addPoint(g(e.options,{plotX:e.plotX,plotY:e.plotY}),!1),n.removeElementFromCollection(e,n.nodes),e.remove()))}),R.onMouseUp.apply(this,arguments)}},i.prototype.placeBubbles=function(o){var e,s,n=this.checkOverlap,l=this.positionBubble,b=[],k=1,D=0,p=0,C=[],A=o.sort(function(N,_){return _[2]-N[2]});if(A.length){if(b.push([[0,0,A[0][2],A[0][3],A[0][4]]]),A.length>1)for(b.push([[0,0-A[1][2]-A[0][2],A[1][2],A[1][3],A[1][4]]]),s=2;s<A.length;s++)A[s][2]=A[s][2]||1,n(e=l(b[k][D],b[k-1][p],A[s]),b[k][0])?(b.push([]),p=0,b[k+1].push(l(b[k][D],b[k][0],A[s])),k++,D=0):k>1&&b[k-1][p+1]&&n(e,b[k-1][p+1])?(p++,b[k].push(l(b[k][D],b[k-1][p],A[s])),D++):(D++,b[k].push(e));this.chart.stages=b,this.chart.rawPositions=[].concat.apply([],b),this.resizeRadius(),C=this.chart.rawPositions}return C},i.prototype.pointAttribs=function(o,e){var s=this.options,n=o&&o.isParentNode,l=s.marker;n&&s.layoutAlgorithm&&s.layoutAlgorithm.parentNodeOptions&&(l=s.layoutAlgorithm.parentNodeOptions.marker);var b=l.fillOpacity,k=h.pointAttribs.call(this,o,e);return b!==1&&(k["fill-opacity"]=b),k},i.prototype.positionBubble=function(o,e,s){var n=Math.sqrt,l=Math.asin,b=Math.acos,k=Math.pow,D=Math.abs,p=n(k(o[0]-e[0],2)+k(o[1]-e[1],2)),C=b((k(p,2)+k(s[2]+e[2],2)-k(s[2]+o[2],2))/(2*(s[2]+e[2])*p)),A=l(D(o[0]-e[0])/p),N=(o[1]-e[1]<0?0:Math.PI)+C+A*((o[0]-e[0])*(o[1]-e[1])<0?1:-1),_=Math.cos(N),L=Math.sin(N);return[e[0]+(e[2]+s[2])*L,e[1]-(e[2]+s[2])*_,s[2],s[3],s[4]]},i.prototype.render=function(){var o=[];h.render.apply(this,arguments),this.options.dataLabels.allowOverlap||(this.data.forEach(function(e){x(e.dataLabels)&&e.dataLabels.forEach(function(s){o.push(s)})}),this.options.useSimulation&&this.chart.hideOverlappingLabels(o))},i.prototype.resizeRadius=function(){var o,e,s,n,l,b=this.chart,k=b.rawPositions,D=Math.min,p=Math.max,C=b.plotLeft,A=b.plotTop,N=b.plotHeight,_=b.plotWidth;o=s=Number.POSITIVE_INFINITY,e=n=Number.NEGATIVE_INFINITY;for(var L=0,O=k;L<O.length;L++)l=(Q=O[L])[2],o=D(o,Q[0]-l),e=p(e,Q[0]+l),s=D(s,Q[1]-l),n=p(n,Q[1]+l);var j=[e-o,n-s],Y=[(_-C)/j[0],(N-A)/j[1]],X=D.apply([],Y);if(Math.abs(X-1)>1e-10){for(var G=0,q=k;G<q.length;G++){var Q;(Q=q[G])[2]*=X}this.placeBubbles(k)}else b.diffY=N/2+A-s-(n-s)/2,b.diffX=_/2+C-o-(e-o)/2},i.prototype.seriesBox=function(){var o,e=this.chart,s=this.data,n=Math.max,l=Math.min,b=[e.plotLeft,e.plotLeft+e.plotWidth,e.plotTop,e.plotTop+e.plotHeight];return s.forEach(function(k){v(k.plotX)&&v(k.plotY)&&k.marker.radius&&(o=k.marker.radius,b[0]=l(b[0],k.plotX-o),b[1]=n(b[1],k.plotX+o),b[2]=l(b[2],k.plotY-o),b[3]=n(b[3],k.plotY+o))}),c(b.width/b.height)?b:null},i.prototype.setVisible=function(){var o=this;h.setVisible.apply(o,arguments),o.parentNodeLayout&&o.graph?o.visible?(o.graph.show(),o.parentNode.dataLabel&&o.parentNode.dataLabel.show()):(o.graph.hide(),o.parentNodeLayout.removeElementFromCollection(o.parentNode,o.parentNodeLayout.nodes),o.parentNode.dataLabel&&o.parentNode.dataLabel.hide()):o.layout&&(o.visible?o.layout.addElementsToCollection(o.points,o.layout.nodes):o.points.forEach(function(e){o.layout.removeElementFromCollection(e,o.layout.nodes)}))},i.prototype.translate=function(){var o,e,s,n=this.chart,l=this.data,b=this.index,k=this.options.useSimulation;this.processedXData=this.xData,this.generatePoints(),v(n.allDataPoints)||(n.allDataPoints=this.accumulateAllPoints(),this.getPointRadius()),k?s=n.allDataPoints:(s=this.placeBubbles(n.allDataPoints),this.options.draggable=!1);for(var D=0,p=s;D<p.length;D++){var C=p[D];C[3]===b&&(o=l[C[4]],e=r(C[2],void 0),k||(o.plotX=C[0]-n.plotLeft+n.diffX,o.plotY=C[1]-n.plotTop+n.diffY),c(e)&&(o.marker=w(o.marker,{radius:e,width:2*e,height:2*e}),o.radius=e))}k&&this.deferLayout(),S(this,"afterTranslate")},i.defaultOptions=g(f.defaultOptions,Z),i}(f);return w(a.prototype,{pointClass:$,axisTypes:[],directTouch:!0,forces:["barycenter","repulsive"],hasDraggableNodes:!0,isCartesian:!1,noSharedTooltip:!0,pointArrayMap:["value"],pointValKey:"value",requireSorting:!1,trackerGroups:["group","dataLabelsGroup","parentNodesGroup"],alignDataLabel:h.alignDataLabel,indexateNodes:y,onMouseDown:R.onMouseDown,onMouseMove:R.onMouseMove,redrawHalo:R.redrawHalo,searchPoint:y}),z.registerSeriesType("packedbubble",a),a}),it(B,"Series/Polygon/PolygonSeries.js",[B["Core/Globals.js"],B["Core/Legend/LegendSymbol.js"],B["Core/Series/SeriesRegistry.js"],B["Core/Utilities.js"]],function(W,R,H,V){var $,Z=this&&this.__extends||($=function(m,u){return $=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(v,w){v.__proto__=w}||function(v,w){for(var S in w)w.hasOwnProperty(S)&&(v[S]=w[S])},$(m,u)},function(m,u){function v(){this.constructor=m}$(m,u),m.prototype=u===null?Object.create(u):(v.prototype=u.prototype,new v)}),U=W.noop,z=H.series,I=H.seriesTypes,E=I.area,M=I.line,P=I.scatter,y=V.extend,h=V.merge,f=function(m){function u(){var v=m!==null&&m.apply(this,arguments)||this;return v.data=void 0,v.options=void 0,v.points=void 0,v}return Z(u,m),u.prototype.getGraphPath=function(){for(var v=M.prototype.getGraphPath.call(this),w=v.length+1;w--;)(w===v.length||v[w][0]==="M")&&w>0&&v.splice(w,0,["Z"]);return this.areaPath=v,v},u.prototype.drawGraph=function(){this.options.fillColor=this.color,E.prototype.drawGraph.call(this)},u.defaultOptions=h(P.defaultOptions,{marker:{enabled:!1,states:{hover:{enabled:!1}}},stickyTracking:!1,tooltip:{followPointer:!0,pointFormat:""},trackByArea:!0}),u}(P);return y(f.prototype,{type:"polygon",drawLegendSymbol:R.drawRectangle,drawTracker:z.prototype.drawTracker,setStackedPoints:U}),H.registerSeriesType("polygon",f),f}),it(B,"Core/Axis/WaterfallAxis.js",[B["Core/Axis/Stacking/StackItem.js"],B["Core/Utilities.js"]],function(W,R){var H,V=R.addEvent,$=R.objectEach;return function(Z){var U=function(){function P(y){this.axis=y,this.stacks={changed:!1}}return P.prototype.renderStackTotals=function(){var y=this.axis,h=y.waterfall.stacks,f=y.stacking&&y.stacking.stackTotalGroup,m=new W(y,y.options.stackLabels||{},!1,0,void 0);this.dummyStackItem=m,f&&$(h,function(u){$(u,function(v,w){m.total=v.stackTotal,m.x=+w,v.label&&(m.label=v.label),W.prototype.render.call(m,f),v.label=m.label,delete m.label})}),m.total=null},P}();function z(){var P=this.waterfall.stacks;P&&(P.changed=!1,delete P.alreadyChanged)}function I(){var P=this,y=P.options.stackLabels;y&&y.enabled&&P.waterfall.stacks&&P.waterfall.renderStackTotals()}function E(){for(var P=this.axes,y=this.series,h=y.length;h--;)y[h].options.stacking&&(P.forEach(function(f){f.isXAxis||(f.waterfall.stacks.changed=!0)}),h=0)}function M(){var P=this;P.waterfall||(P.waterfall=new U(P))}Z.Composition=U,Z.compose=function(P,y){V(P,"init",M),V(P,"afterBuildStacks",z),V(P,"afterRender",I),V(y,"beforeRedraw",E)}}(H||(H={})),H}),it(B,"Series/Waterfall/WaterfallPoint.js",[B["Series/Column/ColumnSeries.js"],B["Core/Series/Point.js"],B["Core/Utilities.js"]],function(W,R,H){var V,$=this&&this.__extends||(V=function(z,I){return V=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(E,M){E.__proto__=M}||function(E,M){for(var P in M)M.hasOwnProperty(P)&&(E[P]=M[P])},V(z,I)},function(z,I){function E(){this.constructor=z}V(z,I),z.prototype=I===null?Object.create(I):(E.prototype=I.prototype,new E)}),Z=H.isNumber,U=function(z){function I(){var E=z!==null&&z.apply(this,arguments)||this;return E.options=void 0,E.series=void 0,E}return $(I,z),I.prototype.getClassName=function(){var E=R.prototype.getClassName.call(this);return this.isSum?E+=" highcharts-sum":this.isIntermediateSum&&(E+=" highcharts-intermediate-sum"),E},I.prototype.isValid=function(){return Z(this.y)||this.isSum||!!this.isIntermediateSum},I}(W.prototype.pointClass);return U}),it(B,"Series/Waterfall/WaterfallSeries.js",[B["Core/Axis/Axis.js"],B["Core/Chart/Chart.js"],B["Core/Series/SeriesRegistry.js"],B["Core/Utilities.js"],B["Core/Axis/WaterfallAxis.js"],B["Series/Waterfall/WaterfallPoint.js"]],function(W,R,H,V,$,Z){var U,z=this&&this.__extends||(U=function(c,g){return U=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,a){r.__proto__=a}||function(r,a){for(var t in a)a.hasOwnProperty(t)&&(r[t]=a[t])},U(c,g)},function(c,g){function r(){this.constructor=c}U(c,g),c.prototype=g===null?Object.create(g):(r.prototype=g.prototype,new r)}),I=H.seriesTypes,E=I.column,M=I.line,P=V.arrayMax,y=V.arrayMin,h=V.correctFloat,f=V.extend,m=V.isNumber,u=V.merge,v=V.objectEach,w=V.pick;function S(c,g){return Object.hasOwnProperty.call(c,g)}var x=function(c){function g(){var r=c!==null&&c.apply(this,arguments)||this;return r.chart=void 0,r.data=void 0,r.options=void 0,r.points=void 0,r.stackedYNeg=void 0,r.stackedYPos=void 0,r.stackKey=void 0,r.xData=void 0,r.yAxis=void 0,r.yData=void 0,r}return z(g,c),g.prototype.generatePoints=function(){E.prototype.generatePoints.apply(this);for(var r=0,a=this.points.length;r<a;r++){var t=this.points[r],i=this.processedYData[r];m(i)&&(t.isIntermediateSum||t.isSum)&&(t.y=h(i))}},g.prototype.translate=function(){var r,a,t,i,o=this,e=o.options,s=o.yAxis,n=w(e.minPointLength,5),l=n/2,b=e.threshold||0,k=e.stacking,D=s.waterfall.stacks[o.stackKey],p=b,C=b;E.prototype.translate.apply(o);for(var A=o.points,N=0;N<A.length;N++){var _=A[N],L=o.processedYData[N],O=_.shapeArgs;if(O&&m(L)){var j=[0,L],Y=_.y;if(k){if(D){var X=D[N];k==="overlap"?(a=X.stackState[X.stateIndex--],r=Y>=0?a:a-Y,S(X,"absolutePos")&&delete X.absolutePos,S(X,"absoluteNeg")&&delete X.absoluteNeg):(Y>=0?(a=X.threshold+X.posTotal,X.posTotal-=Y,r=a):(a=X.threshold+X.negTotal,X.negTotal-=Y,r=a-Y),X.posTotal||m(X.absolutePos)&&S(X,"absolutePos")&&(X.posTotal=X.absolutePos,delete X.absolutePos),X.negTotal||m(X.absoluteNeg)&&S(X,"absoluteNeg")&&(X.negTotal=X.absoluteNeg,delete X.absoluteNeg)),_.isSum||(X.connectorThreshold=X.threshold+X.stackTotal),s.reversed?(t=Y>=0?r-Y:r+Y,i=r):(t=r,i=r-Y),_.below=t<=b,O.y=s.translate(t,!1,!0,!1,!0),O.height=Math.abs(O.y-s.translate(i,!1,!0,!1,!0));var G=s.waterfall.dummyStackItem;G&&(G.x=N,G.label=D[N].label,G.setOffset(o.pointXOffset||0,o.barW||0,o.stackedYNeg[N],o.stackedYPos[N],void 0,this.xAxis))}}else r=Math.max(C,C+Y)+j[0],O.y=s.translate(r,!1,!0,!1,!0),_.isSum?(O.y=s.translate(j[1],!1,!0,!1,!0),O.height=Math.min(s.translate(j[0],!1,!0,!1,!0),s.len)-O.y,_.below=j[1]<=b):_.isIntermediateSum?(Y>=0?(t=j[1]+p,i=p):(t=p,i=j[1]+p),s.reversed&&(t^=i,t^=i^=t),O.y=s.translate(t,!1,!0,!1,!0),O.height=Math.abs(O.y-Math.min(s.translate(i,!1,!0,!1,!0),s.len)),p+=j[1],_.below=t<=b):(O.height=L>0?s.translate(C,!1,!0,!1,!0)-O.y:s.translate(C,!1,!0,!1,!0)-s.translate(C-L,!1,!0,!1,!0),C+=L,_.below=C<b),O.height<0&&(O.y+=O.height,O.height*=-1);_.plotY=O.y=Math.round(O.y||0)-o.borderWidth%2/2,O.height=Math.max(Math.round(O.height||0),.001),_.yBottom=O.y+O.height,O.height<=n&&!_.isNull?(O.height=n,O.y-=l,_.plotY=O.y,_.y<0?_.minPointLengthOffset=-l:_.minPointLengthOffset=l):(_.isNull&&(O.width=0),_.minPointLengthOffset=0);var q=_.plotY+(_.negative?O.height:0);_.below&&(_.plotY+=O.height),_.tooltipPos&&(o.chart.inverted?_.tooltipPos[0]=s.len-q:_.tooltipPos[1]=q),_.isInside=this.isPointInside(_)}}},g.prototype.processData=function(r){var a,t,i,o,e,s,n,l=this,b=l.options,k=l.yData,D=b.data,p=k.length,C=b.threshold||0;for(i=t=o=e=0,n=0;n<p;n++)s=k[n],a=D&&D[n]?D[n]:{},s==="sum"||a.isSum?k[n]=h(i):s==="intermediateSum"||a.isIntermediateSum?(k[n]=h(t),t=0):(i+=s,t+=s),o=Math.min(i,o),e=Math.max(i,e);c.prototype.processData.call(this,r),b.stacking||(l.dataMin=o+C,l.dataMax=e)},g.prototype.toYData=function(r){return r.isSum?"sum":r.isIntermediateSum?"intermediateSum":r.y},g.prototype.updateParallelArrays=function(r,a){c.prototype.updateParallelArrays.call(this,r,a),this.yData[0]!=="sum"&&this.yData[0]!=="intermediateSum"||(this.yData[0]=null)},g.prototype.pointAttribs=function(r,a){var t=this.options.upColor;t&&!r.options.color&&(r.color=r.y>0?t:void 0);var i=E.prototype.pointAttribs.call(this,r,a);return delete i.dashstyle,i},g.prototype.getGraphPath=function(){return[["M",0,0]]},g.prototype.getCrispPath=function(){var r,a,t,i,o,e,s,n,l,b=this.data,k=this.yAxis,D=b.length,p=Math.round(this.graph.strokeWidth())%2/2,C=Math.round(this.borderWidth)%2/2,A=this.xAxis.reversed,N=this.yAxis.reversed,_=this.options.stacking,L=[];for(l=1;l<D;l++)if(n=b[l].shapeArgs,i=b[l-1],s=b[l-1].shapeArgs,a=k.waterfall.stacks[this.stackKey],e=i.y>0?-s.height:0,a&&s&&n&&(t=a[l-1],_?(r=t.connectorThreshold,o=Math.round(k.translate(r,!1,!0,!1,!0)+(N?e:0))-p):o=s.y+i.minPointLengthOffset+C-p,L.push(["M",(s.x||0)+(A?0:s.width||0),o],["L",(n.x||0)+(A&&n.width||0),o])),s&&L.length&&(!_&&i.y<0&&!N||i.y>0&&N)){var O=L[L.length-2];O&&typeof O[2]=="number"&&(O[2]+=s.height||0);var j=L[L.length-1];j&&typeof j[2]=="number"&&(j[2]+=s.height||0)}return L},g.prototype.drawGraph=function(){M.prototype.drawGraph.call(this),this.graph&&this.graph.attr({d:this.getCrispPath()})},g.prototype.setStackedPoints=function(){var r,a,t,i,o,e,s,n,l,b,k,D,p=this,C=p.options,A=p.yAxis.waterfall.stacks,N=C.threshold||0,_=N,L=_,O=p.stackKey,j=p.xData,Y=j.length;function X(Q,J,rt,lt){if(r){if(o)for(;rt<o;rt++)r.stackState[rt]+=lt;else r.stackState[0]=Q,o=r.stackState.length;r.stackState.push(r.stackState[o-1]+J)}}if(p.yAxis.stacking.usePercentage=!1,a=t=i=_,p.visible||!p.chart.options.chart.ignoreHiddenSeries){D=A.changed,(k=A.alreadyChanged)&&k.indexOf(O)<0&&(D=!0),A[O]||(A[O]={});var G=A[O];if(G)for(var q=0;q<Y;q++)G[b=j[q]]&&!D||(G[b]={negTotal:0,posTotal:0,stackTotal:0,threshold:0,stateIndex:0,stackState:[],label:D&&G[b]?G[b].label:void 0}),r=G[b],(l=p.yData[q])>=0?r.posTotal+=l:r.negTotal+=l,n=C.data[q],e=r.absolutePos=r.posTotal,s=r.absoluteNeg=r.negTotal,r.stackTotal=e+s,o=r.stackState.length,n&&n.isIntermediateSum?(X(i,t,0,i),i=t,t=N,_^=L,_^=L^=_):n&&n.isSum?(X(N,a,o,0),_=N):(X(_,l,0,a),n&&(a+=l,t+=l)),r.stateIndex++,r.threshold=_,_+=r.stackTotal;A.changed=!1,A.alreadyChanged||(A.alreadyChanged=[]),A.alreadyChanged.push(O)}},g.prototype.getExtremes=function(){var r,a,t,i=this.options.stacking;return i?(r=this.yAxis.waterfall.stacks,a=this.stackedYNeg=[],t=this.stackedYPos=[],v(r[this.stackKey],i==="overlap"?function(o){a.push(y(o.stackState)),t.push(P(o.stackState))}:function(o){a.push(o.negTotal+o.threshold),t.push(o.posTotal+o.threshold)}),{dataMin:y(a),dataMax:P(t)}):{dataMin:this.dataMin,dataMax:this.dataMax}},g.defaultOptions=u(E.defaultOptions,{dataLabels:{inside:!0},lineWidth:1,lineColor:"#333333",dashStyle:"Dot",borderColor:"#333333",states:{hover:{lineWidthPlus:0}}}),g}(E);return f(x.prototype,{getZonesGraphs:M.prototype.getZonesGraphs,pointValKey:"y",showLine:!0,pointClass:Z}),H.registerSeriesType("waterfall",x),$.compose(W,R),x}),it(B,"Core/Axis/RadialAxis.js",[B["Core/Axis/AxisDefaults.js"],B["Core/Defaults.js"],B["Core/Globals.js"],B["Core/Utilities.js"]],function(W,R,H,V){var $,Z=R.defaultOptions,U=H.noop,z=V.addEvent,I=V.correctFloat,E=V.defined,M=V.extend,P=V.fireEvent,y=V.merge,h=V.pick,f=V.relativeLength,m=V.wrap;return function(u){var v=[],w={gridLineWidth:1,labels:{align:void 0,distance:15,x:0,y:void 0,style:{textOverflow:"none"}},maxPadding:0,minPadding:0,showLastLabel:!1,tickLength:0},S={labels:{align:"center",x:0,y:void 0},minorGridLineWidth:0,minorTickInterval:"auto",minorTickLength:10,minorTickPosition:"inside",minorTickWidth:1,tickLength:10,tickPosition:"inside",tickWidth:2,title:{rotation:0},zIndex:2},x={gridLineInterpolation:"circle",gridLineWidth:1,labels:{align:"right",x:-3,y:-2},showLastLabel:!1,title:{x:4,text:null,rotation:90}};function c(){this.autoConnect=this.isCircular&&h(this.userMax,this.options.max)===void 0&&I(this.endAngleRad-this.startAngleRad)===I(2*Math.PI),!this.isCircular&&this.chart.inverted&&this.max++,this.autoConnect&&(this.max+=(this.categories?1:this.pointRange)||this.closestPointRange||0)}function g(){var G=this;return function(){if(G.isRadial&&G.tickPositions&&G.options.labels&&G.options.labels.allowOverlap!==!0)return G.tickPositions.map(function(q){return G.ticks[q]&&G.ticks[q].label}).filter(function(q){return!!q})}}function r(){return U}function a(G,q,Q){var J,rt,lt,gt=this.pane.center,mt=G.value;return this.isCircular?(E(mt)?G.point&&(G.point.shapeArgs||{}).start&&(mt=this.chart.inverted?this.translate(G.point.rectPlotY,!0):G.point.x):(rt=G.chartX||0,lt=G.chartY||0,mt=this.translate(Math.atan2(lt-Q,rt-q)-this.startAngleRad,!0)),rt=(J=this.getPosition(mt)).x,lt=J.y):(E(mt)||(rt=G.chartX,lt=G.chartY),E(rt)&&E(lt)&&(Q=gt[1]+this.chart.plotTop,mt=this.translate(Math.min(Math.sqrt(Math.pow(rt-q,2)+Math.pow(lt-Q,2)),gt[2]/2)-gt[3]/2,!0))),[mt,rt||0,lt||0]}function t(G,q,Q){var J,rt,lt=this.pane.center,gt=this.chart,mt=this.left||0,bt=this.top||0,yt=h(q,lt[2]/2-this.offset);return Q===void 0&&(Q=this.horiz?0:this.center&&-this.center[3]/2),Q&&(yt+=Q),this.isCircular||q!==void 0?((rt=this.chart.renderer.symbols.arc(mt+lt[0],bt+lt[1],yt,yt,{start:this.startAngleRad,end:this.endAngleRad,open:!0,innerR:0})).xBounds=[mt+lt[0]],rt.yBounds=[bt+lt[1]-yt]):(J=this.postTranslate(this.angleRad,yt),rt=[["M",this.center[0]+gt.plotLeft,this.center[1]+gt.plotTop],["L",J.x,J.y]]),rt}function i(){this.constructor.prototype.getOffset.call(this),this.chart.axisOffset[this.side]=0}function o(G,q,Q){var J,rt,lt,gt,mt,bt,yt=this.chart,ct=function(jt){if(typeof jt=="string"){var Ot=parseInt(jt,10);return wt.test(jt)&&(Ot=Ot*dt/100),Ot}return jt},et=this.center,at=this.startAngleRad,dt=et[2]/2,vt=Math.min(this.offset,0),Ct=this.left||0,xt=this.top||0,wt=/%$/,Mt=this.isCircular,St=h(ct(Q.outerRadius),dt),Tt=ct(Q.innerRadius),Lt=h(ct(Q.thickness),10);if(this.options.gridLineInterpolation==="polygon")bt=this.getPlotLinePath({value:G}).concat(this.getPlotLinePath({value:q,reverse:!0}));else{G=Math.max(G,this.min),q=Math.min(q,this.max);var Pt=this.translate(G),Dt=this.translate(q);Mt||(St=Pt||0,Tt=Dt||0),Q.shape!=="circle"&&Mt?(J=at+(Pt||0),rt=at+(Dt||0)):(J=-Math.PI/2,rt=1.5*Math.PI,mt=!0),St-=vt,Lt-=vt,bt=yt.renderer.symbols.arc(Ct+et[0],xt+et[1],St,St,{start:Math.min(J,rt),end:Math.max(J,rt),innerR:h(Tt,St-Lt),open:mt}),Mt&&(lt=(rt+J)/2,gt=Ct+et[0]+et[2]/2*Math.cos(lt),bt.xBounds=lt>-Math.PI/2&&lt<Math.PI/2?[gt,yt.plotWidth]:[0,gt],bt.yBounds=[xt+et[1]+et[2]/2*Math.sin(lt)],bt.yBounds[0]+=lt>-Math.PI&&lt<0||lt>Math.PI?-10:10)}return bt}function e(G){var q,Q,J,rt,lt,gt,mt,bt,yt,ct=this,et=this.pane.center,at=this.chart,dt=at.inverted,vt=G.reverse,Ct=this.pane.options.background?this.pane.options.background[0]||this.pane.options.background:{},xt=Ct.innerRadius||"0%",wt=Ct.outerRadius||"100%",Mt=et[0]+at.plotLeft,St=et[1]+at.plotTop,Tt=this.height,Lt=G.isCrosshair,Pt=et[3]/2,Dt=G.value,jt=this.getPosition(Dt),Ot=jt.x,It=jt.y;if(Lt&&(Dt=(bt=this.getCrosshairPosition(G,Mt,St))[0],Ot=bt[1],It=bt[2]),this.isCircular)Q=Math.sqrt(Math.pow(Ot-Mt,2)+Math.pow(It-St,2)),J=typeof xt=="string"?f(xt,1):xt/Q,rt=typeof wt=="string"?f(wt,1):wt/Q,et&&Pt&&(J<(q=Pt/Q)&&(J=q),rt<q&&(rt=q)),yt=[["M",Mt+J*(Ot-Mt),St-J*(St-It)],["L",Ot-(1-rt)*(Ot-Mt),It+(1-rt)*(St-It)]];else if((Dt=this.translate(Dt))&&(Dt<0||Dt>Tt)&&(Dt=0),this.options.gridLineInterpolation==="circle")yt=this.getLinePath(0,Dt,Pt);else if(yt=[],at[dt?"yAxis":"xAxis"].forEach(function(Zt){Zt.pane===ct.pane&&(lt=Zt)}),lt){mt=lt.tickPositions,lt.autoConnect&&(mt=mt.concat([mt[0]])),vt&&(mt=mt.slice().reverse()),Dt&&(Dt+=Pt);for(var Bt=0;Bt<mt.length;Bt++)gt=lt.getPosition(mt[Bt],Dt),yt.push(Bt?["L",gt.x,gt.y]:["M",gt.x,gt.y])}return yt}function s(G,q){var Q=this.translate(G);return this.postTranslate(this.isCircular?Q:this.angleRad,h(this.isCircular?q:Q<0?0:Q,this.center[2]/2)-this.offset)}function n(){var G=this.center,q=this.chart,Q=this.options.title;return{x:q.plotLeft+G[0]+(Q.x||0),y:q.plotTop+G[1]-{high:.5,middle:.25,low:0}[Q.align]*G[2]+(Q.y||0)}}function l(G){G.beforeSetTickPositions=c,G.createLabelCollector=g,G.getCrosshairPosition=a,G.getLinePath=t,G.getOffset=i,G.getPlotBandPath=o,G.getPlotLinePath=e,G.getPosition=s,G.getTitlePosition=n,G.postTranslate=_,G.setAxisSize=O,G.setAxisTranslation=j,G.setOptions=Y}function b(){var G=this.chart,q=this.options,Q=G.angular&&this.isXAxis,J=this.pane,rt=J&&J.options;if(!Q&&J&&(G.angular||G.polar)){var lt=2*Math.PI,gt=(h(rt.startAngle,0)-90)*Math.PI/180,mt=(h(rt.endAngle,h(rt.startAngle,0)+360)-90)*Math.PI/180;this.angleRad=(q.angle||0)*Math.PI/180,this.startAngleRad=gt,this.endAngleRad=mt,this.offset=q.offset||0;var bt=(gt%lt+lt)%lt,yt=(mt%lt+lt)%lt;bt>Math.PI&&(bt-=lt),yt>Math.PI&&(yt-=lt),this.normalizedStartAngleRad=bt,this.normalizedEndAngleRad=yt}}function k(G){this.isRadial&&(G.align=void 0,G.preventDefault())}function D(){if(this.chart&&this.chart.labelCollectors){var G=this.labelCollector?this.chart.labelCollectors.indexOf(this.labelCollector):-1;G>=0&&this.chart.labelCollectors.splice(G,1)}}function p(G){var q,Q,J=this.chart,rt=J.inverted,lt=J.angular,gt=J.polar,mt=this.isXAxis,bt=this.coll,yt=lt&&mt,ct=G.userOptions.pane||0,et=this.pane=J.pane&&J.pane[ct];bt!=="colorAxis"?(lt?(yt?((Q=this).isHidden=!0,Q.createLabelCollector=r,Q.getOffset=U,Q.redraw=L,Q.render=L,Q.setScale=U,Q.setCategories=U,Q.setTitle=U):l(this),(q=!mt)&&(this.defaultPolarOptions=S)):gt&&(l(this),q=this.horiz,this.defaultPolarOptions=q?w:y(bt==="xAxis"?W.defaultXAxisOptions:W.defaultYAxisOptions,x),rt&&bt==="yAxis"&&(this.defaultPolarOptions.stackLabels=W.defaultYAxisOptions.stackLabels,this.defaultPolarOptions.reversedStacks=!0)),lt||gt?(this.isRadial=!0,this.labelCollector||(this.labelCollector=this.createLabelCollector()),this.labelCollector&&J.labelCollectors.push(this.labelCollector)):this.isRadial=!1,et&&q&&(et.axis=this),this.isCircular=q):this.isRadial=!1}function C(){this.isRadial&&this.beforeSetTickPositions()}function A(G){var q=this.label;if(q){var Q,J=this.axis,rt=q.getBBox(),lt=J.options.labels,gt=(J.translate(this.pos)+J.startAngleRad+Math.PI/2)/Math.PI*180%360,mt=Math.round(gt),bt=E(lt.y)?0:.3*-rt.height,yt=lt.y,ct=20,et=lt.align,at="end",dt=mt<0?mt+360:mt,vt=dt,Ct=0,xt=0;J.isRadial&&(Q=J.getPosition(this.pos,J.center[2]/2+f(h(lt.distance,-25),J.center[2]/2,-J.center[2]/2)),lt.rotation==="auto"?q.attr({rotation:gt}):E(yt)||(yt=J.chart.renderer.fontMetrics(q.styles&&q.styles.fontSize).b-rt.height/2),E(et)||(J.isCircular?(rt.width>J.len*J.tickInterval/(J.max-J.min)&&(ct=0),et=gt>ct&&gt<180-ct?"left":gt>180+ct&&gt<360-ct?"right":"center"):et="center",q.attr({align:et})),et==="auto"&&J.tickPositions.length===2&&J.isCircular&&(dt>90&&dt<180?dt=180-dt:dt>270&&dt<=360&&(dt=540-dt),vt>180&&vt<=360&&(vt=360-vt),J.pane.options.startAngle!==mt&&J.pane.options.startAngle!==mt+360&&J.pane.options.startAngle!==mt-360||(at="start"),et=mt>=-90&&mt<=90||mt>=-360&&mt<=-270||mt>=270&&mt<=360?at==="start"?"right":"left":at==="start"?"left":"right",vt>70&&vt<110&&(et="center"),dt<15||dt>=180&&dt<195?Ct=.3*rt.height:dt>=15&&dt<=35?Ct=at==="start"?0:.75*rt.height:dt>=195&&dt<=215?Ct=at==="start"?.75*rt.height:0:dt>35&&dt<=90?Ct=at==="start"?.25*-rt.height:rt.height:dt>215&&dt<=270&&(Ct=at==="start"?rt.height:.25*-rt.height),vt<15?xt=at==="start"?.15*-rt.height:.15*rt.height:vt>165&&vt<=180&&(xt=at==="start"?.15*rt.height:.15*-rt.height),q.attr({align:et}),q.translate(xt,Ct+bt)),G.pos.x=Q.x+(lt.x||0),G.pos.y=Q.y+(yt||0))}}function N(G){this.axis.getPosition&&M(G.pos,this.axis.getPosition(this.pos))}function _(G,q){var Q=this.chart,J=this.center;return G=this.startAngleRad+G,{x:Q.plotLeft+J[0]+Math.cos(G)*q,y:Q.plotTop+J[1]+Math.sin(G)*q}}function L(){this.isDirty=!1}function O(){var G,q;this.constructor.prototype.setAxisSize.call(this),this.isRadial&&(this.pane.updateCenter(this),G=this.center=this.pane.center.slice(),this.isCircular?this.sector=this.endAngleRad-this.startAngleRad:(q=this.postTranslate(this.angleRad,G[3]/2),G[0]=q.x-this.chart.plotLeft,G[1]=q.y-this.chart.plotTop),this.len=this.width=this.height=(G[2]-G[3])*h(this.sector,1)/2)}function j(){this.constructor.prototype.setAxisTranslation.call(this),this.center&&(this.isCircular?this.transA=(this.endAngleRad-this.startAngleRad)/(this.max-this.min||1):this.transA=(this.center[2]-this.center[3])/2/(this.max-this.min||1),this.isXAxis?this.minPixelPadding=this.transA*this.minPointOffset:this.minPixelPadding=0)}function Y(G){var q=this.options=y(this.constructor.defaultOptions,this.defaultPolarOptions,Z[this.coll],G);q.plotBands||(q.plotBands=[]),P(this,"afterSetOptions")}function X(G,q,Q,J,rt,lt,gt){var mt,bt=this.axis;return bt.isRadial?["M",q,Q,"L",(mt=bt.getPosition(this.pos,bt.center[2]/2+J)).x,mt.y]:G.call(this,q,Q,J,rt,lt,gt)}u.compose=function(G,q){return v.indexOf(G)===-1&&(v.push(G),z(G,"afterInit",b),z(G,"autoLabelAlign",k),z(G,"destroy",D),z(G,"init",p),z(G,"initialAxisTranslation",C)),v.indexOf(q)===-1&&(v.push(q),z(q,"afterGetLabelPosition",A),z(q,"afterGetPosition",N),m(q.prototype,"getMarkPath",X)),G}}($||($={})),$}),it(B,"Series/PolarComposition.js",[B["Core/Animation/AnimationUtilities.js"],B["Core/Globals.js"],B["Extensions/Pane.js"],B["Core/Axis/RadialAxis.js"],B["Core/Utilities.js"]],function(W,R,H,V,$){var Z=this&&this.__spreadArray||function(p,C,A){if(A||arguments.length===2)for(var N,_=0,L=C.length;_<L;_++)!N&&_ in C||(N||(N=Array.prototype.slice.call(C,0,_)),N[_]=C[_]);return p.concat(N||Array.prototype.slice.call(C))},U=W.animObject,z=$.addEvent,I=$.defined,E=$.find,M=$.isNumber,P=$.pick,y=$.splat,h=$.uniqueKey,f=$.wrap,m=[];function u(p,C,A,N){var _,L,O,j,Y,X,G=1.5,q=2.5,Q=N?1:0,J=(_=C>=0&&C<=p.length-1?C:C<0?p.length-1+C:0)-1<0?p.length-(1+Q):_-1,rt=_+1>p.length-1?Q:_+1,lt=p[J],gt=p[rt],mt=lt.plotX,bt=lt.plotY,yt=gt.plotX,ct=gt.plotY,et=p[_].plotX,at=p[_].plotY;L=(G*et+mt)/q,O=(G*at+bt)/q,j=(G*et+yt)/q,Y=(G*at+ct)/q;var dt=Math.sqrt(Math.pow(L-et,2)+Math.pow(O-at,2)),vt=Math.sqrt(Math.pow(j-et,2)+Math.pow(Y-at,2)),Ct=Math.atan2(O-at,L-et),xt=Math.atan2(Y-at,j-et);X=Math.PI/2+(Ct+xt)/2,Math.abs(Ct-X)>Math.PI/2&&(X-=Math.PI),L=et+Math.cos(X)*dt,O=at+Math.sin(X)*dt;var wt={rightContX:j=et+Math.cos(Math.PI+X)*vt,rightContY:Y=at+Math.sin(Math.PI+X)*vt,leftContX:L,leftContY:O,plotX:et,plotY:at};return A&&(wt.prevPointCont=u(p,J,!1,N)),wt}function v(){(this.pane||[]).forEach(function(p){p.render()})}function w(p){var C=p.args[0].xAxis,A=p.args[0].yAxis,N=p.args[0].chart;C&&A&&(A.gridLineInterpolation==="polygon"?(C.startOnTick=!0,C.endOnTick=!0):C.gridLineInterpolation==="polygon"&&N.inverted&&(A.startOnTick=!0,A.endOnTick=!0))}function S(){var p=this;this.pane||(this.pane=[]),this.options.pane=y(this.options.pane),this.options.pane.forEach(function(C){new H(C,p)},this)}function x(p){var C=p.args.marker,A=this.chart.xAxis[0],N=this.chart.yAxis[0],_=this.chart.inverted,L=_?N:A,O=_?A:N;if(this.chart.polar){p.preventDefault();var j=(C.attr?C.attr("start"):C.start)-L.startAngleRad,Y=C.attr?C.attr("r"):C.r,X=(C.attr?C.attr("end"):C.end)-L.startAngleRad,G=C.attr?C.attr("innerR"):C.innerR;p.result.x=j+L.pos,p.result.width=X-j,p.result.y=O.len+O.pos-G,p.result.height=G-Y}}function c(p){var C=this.chart;if(C.polar&&C.hoverPane&&C.hoverPane.axis){p.preventDefault();var A=C.hoverPane.center,N=this.mouseDownX||0,_=this.mouseDownY||0,L=p.args.chartY,O=p.args.chartX,j=2*Math.PI,Y=C.hoverPane.axis.startAngleRad,X=C.hoverPane.axis.endAngleRad,G=C.inverted?C.xAxis[0]:C.yAxis[0],q={},Q="arc";if(q.x=A[0]+C.plotLeft,q.y=A[1]+C.plotTop,this.zoomHor){var J=Y>0?X-Y:Math.abs(Y)+Math.abs(X),rt=Math.atan2(_-C.plotTop-A[1],N-C.plotLeft-A[0])-Y,lt=Math.atan2(L-C.plotTop-A[1],O-C.plotLeft-A[0])-Y;q.r=A[2]/2,q.innerR=A[3]/2,rt<=0&&(rt+=j),lt<=0&&(lt+=j),lt<rt&&(lt=[rt,rt=lt][0]),J<j&&Y+lt>X+(j-J)/2&&(lt=rt,rt=Y<=0?Y:0);var gt=q.start=Math.max(rt+Y,Y),mt=q.end=Math.min(lt+Y,X);if(G.options.gridLineInterpolation==="polygon"){(Tt=C.hoverPane.axis).tickInterval;var bt=gt-Tt.startAngleRad+Tt.pos,yt=mt-gt,ct=G.getPlotLinePath({value:G.max}),et=Tt.toValue(bt),at=Tt.toValue(bt+yt);if(et<Tt.getExtremes().min){var dt=Tt.getExtremes(),vt=dt.min;et=dt.max-(vt-et)}if(at<Tt.getExtremes().min){var Ct=Tt.getExtremes(),xt=Ct.min;at=Ct.max-(xt-at)}at<et&&(at=[et,et=at][0]),(ct=t(ct,et,at,Tt)).push(["L",A[0]+C.plotLeft,C.plotTop+A[1]]),q.d=ct,Q="path"}}if(this.zoomVert){var wt=C.inverted?C.xAxis[0]:C.yAxis[0],Mt=Math.sqrt(Math.pow(N-C.plotLeft-A[0],2)+Math.pow(_-C.plotTop-A[1],2)),St=Math.sqrt(Math.pow(O-C.plotLeft-A[0],2)+Math.pow(L-C.plotTop-A[1],2));St<Mt&&(Mt=[St,St=Mt][0]),St>A[2]/2&&(St=A[2]/2),Mt<A[3]/2&&(Mt=A[3]/2),this.zoomHor||(q.start=Y,q.end=X),q.r=St,q.innerR=Mt,wt.options.gridLineInterpolation==="polygon"&&(mt=wt.toValue(wt.len+wt.pos-Mt),gt=wt.toValue(wt.len+wt.pos-St),ct=wt.getPlotLinePath({value:gt}).concat(wt.getPlotLinePath({value:mt,reverse:!0})),q.d=ct,Q="path")}if(this.zoomHor&&this.zoomVert&&G.options.gridLineInterpolation==="polygon"){var Tt=C.hoverPane.axis;if(gt=q.start||0,mt=q.end||0,bt=gt-Tt.startAngleRad+Tt.pos,yt=mt-gt,et=Tt.toValue(bt),at=Tt.toValue(bt+yt),q.d instanceof Array){var Lt=q.d.slice(0,q.d.length/2),Pt=q.d.slice(q.d.length/2,q.d.length);Pt=Z([],Pt,!0).reverse();var Dt=C.hoverPane.axis;Lt=t(Lt,et,at,Dt),(Pt=t(Pt,et,at,Dt))&&(Pt[0][0]="L"),Pt=Z([],Pt,!0).reverse(),q.d=Lt.concat(Pt),Q="path"}}p.attrs=q,p.shapeType=Q}}function g(){var p=this.chart;p.polar&&(this.polar=new D(this),p.inverted&&(this.isRadialSeries=!0,this.is("column")&&(this.isRadialBar=!0)))}function r(){if(this.chart.polar&&this.xAxis){var p=this,C=p.chart;p.kdByAngle=C.tooltip&&C.tooltip.shared,p.kdByAngle?p.searchPoint=a:p.options.findNearestPointBy="xy";for(var A=p.points,N=A.length;N--;)p.preventPostTranslate||p.polar.toXY(A[N]),C.hasParallelCoordinates||p.yAxis.reversed||(P(A[N].y,Number.MIN_VALUE)<p.yAxis.min||A[N].x<p.xAxis.min||A[N].x>p.xAxis.max?(A[N].isNull=!0,A[N].plotY=NaN):A[N].isNull=A[N].isValid&&!A[N].isValid());this.hasClipCircleSetter||(this.hasClipCircleSetter=!!p.eventsToUnbind.push(z(p,"afterRender",function(){var _,L,O,j,Y,X,G,q,Q;C.polar&&(_=this.yAxis.pane.center,this.clipCircle?this.clipCircle.animate({x:_[0],y:_[1],r:_[2]/2,innerR:_[3]/2}):this.clipCircle=(L=C.renderer,O=_[0],j=_[1],Y=_[2]/2,X=_[3]/2,G=h(),q=L.createElement("clipPath").attr({id:G}).add(L.defs),(Q=X?L.arc(O,j,Y,X,0,2*Math.PI).add(q):L.circle(O,j,Y).add(q)).id=G,Q.clipPath=q,Q),this.group.clip(this.clipCircle),this.setClip=R.noop)})))}}function a(p){var C=this,A=C.chart,N=C.xAxis,_=N.pane&&N.pane.center,L=p.chartX-(_&&_[0]||0)-A.plotLeft,O=p.chartY-(_&&_[1]||0)-A.plotTop;return C.searchKDTree({clientX:180+Math.atan2(L,O)*(-180/Math.PI)})}function t(p,C,A,N){var _=N.tickInterval,L=N.tickPositions,O=E(L,function(Y){return Y>=A}),j=E(Z([],L,!0).reverse(),function(Y){return Y<=C});return I(O)||(O=L[L.length-1]),I(j)||(j=L[0],O+=_,p[0][0]="L",p.unshift(p[p.length-3])),(p=p.slice(L.indexOf(j),L.indexOf(O)+1))[0][0]="M",p}function i(p,C){return E(this.pane||[],function(A){return A.options.id===C})||p.call(this,C)}function o(p,C,A,N,_,L){var O,j,Y,X=this.chart,G=P(N.inside,!!this.options.stacking);X.polar?(O=C.rectPlotX/Math.PI*180,X.inverted?(this.forceDL=X.isInsidePlot(C.plotX,C.plotY),G&&C.shapeArgs?(j=C.shapeArgs,_={x:(Y=this.yAxis.postTranslate(((j.start||0)+(j.end||0))/2-this.xAxis.startAngleRad,C.barX+C.pointWidth/2)).x-X.plotLeft,y:Y.y-X.plotTop}):C.tooltipPos&&(_={x:C.tooltipPos[0],y:C.tooltipPos[1]}),N.align=P(N.align,"center"),N.verticalAlign=P(N.verticalAlign,"middle")):N=function(q,Q){var J,rt;return Q.align===null&&(J=q>20&&q<160?"left":q>200&&q<340?"right":"center",Q.align=J),Q.verticalAlign===null&&(rt=q<45||q>315?"bottom":q>135&&q<225?"top":"middle",Q.verticalAlign=rt),Q}(O,N),Object.getPrototypeOf(Object.getPrototypeOf(this)).alignDataLabel.call(this,C,A,N,_,L),this.isRadialBar&&C.shapeArgs&&C.shapeArgs.start===C.shapeArgs.end?A.hide():A.show()):p.call(this,C,A,N,_,L)}function e(p){var C,A,N,_,L,O,j,Y,X,G,q,Q,J,rt=this,lt=rt.options,gt=lt.stacking,mt=rt.chart,bt=rt.xAxis,yt=rt.yAxis,ct=yt.reversed,et=yt.center,at=bt.startAngleRad,dt=bt.endAngleRad-at,vt=lt.threshold,Ct=0,xt=0,wt=0;if(rt.preventPostTranslate=!0,p.call(rt),bt.isRadial)for(N=(C=rt.points).length,_=yt.translate(yt.min),L=yt.translate(yt.max),vt=lt.threshold||0,mt.inverted&&M(vt)&&(Ct=yt.translate(vt),I(Ct)&&(Ct<0?Ct=0:Ct>dt&&(Ct=dt),rt.translatedThreshold=Ct+at));N--;)q=(A=C[N]).barX,j=A.x,Y=A.y,A.shapeType="arc",mt.inverted?(A.plotY=yt.translate(Y),gt&&yt.stacking?(G=yt.stacking.stacks[(Y<0?"-":"")+rt.stackKey],rt.visible&&G&&G[j]&&(A.isNull||(X=G[j].points[rt.getStackIndicator(void 0,j,rt.index).key],xt=yt.translate(X[0]),wt=yt.translate(X[1]),I(xt)&&(xt=$.clamp(xt,0,dt))))):(xt=Ct,wt=A.plotY),xt>wt&&(wt=[xt,xt=wt][0]),ct?wt>_?wt=_:xt<L?xt=L:(xt>_||wt<L)&&(xt=wt=dt):xt<_?xt=_:wt>L?wt=L:(wt<_||xt>L)&&(xt=wt=0),yt.min>yt.max&&(xt=wt=ct?dt:0),xt+=at,wt+=at,et&&(A.barX=q+=et[3]/2),Q=Math.max(q,0),J=Math.max(q+A.pointWidth,0),A.shapeArgs={x:et&&et[0],y:et&&et[1],r:J,innerR:Q,start:xt,end:wt},A.opacity=xt===wt?0:void 0,A.plotY=(I(rt.translatedThreshold)&&(xt<rt.translatedThreshold?xt:wt))-at):(xt=q+at,A.shapeArgs=rt.polar.arc(A.yBottom,A.plotY,xt,xt+A.pointWidth)),rt.polar.toXY(A),mt.inverted?(O=yt.postTranslate(A.rectPlotY,q+A.pointWidth/2),A.tooltipPos=[O.x-mt.plotLeft,O.y-mt.plotTop]):A.tooltipPos=[A.plotX,A.plotY],et&&(A.ttBelow=A.plotY>et[1])}function s(p,C){var A,N,_=this;if(this.chart.polar){C=C||this.points;for(var L=0;L<C.length;L++)if(!C[L].isNull){A=L;break}this.options.connectEnds!==!1&&A!==void 0&&(this.connectEnds=!0,C.splice(C.length,0,C[A]),N=!0),C.forEach(function(j){j.polarPlotY===void 0&&_.polar.toXY(j)})}var O=p.apply(this,[].slice.call(arguments,1));return N&&C.pop(),O}function n(p,C){var A=this.chart,N={xAxis:[],yAxis:[]};return A.polar?A.axes.forEach(function(_){if(_.coll!=="colorAxis"){var L=_.isXAxis,O=_.center,j=C.chartX-O[0]-A.plotLeft,Y=C.chartY-O[1]-A.plotTop;N[L?"xAxis":"yAxis"].push({axis:_,value:_.translate(L?Math.PI-Math.atan2(j,Y):Math.sqrt(Math.pow(j,2)+Math.pow(Y,2)),!0)})}}):N=p.call(this,C),N}function l(p,C){this.chart.polar||p.call(this,C)}function b(p,C){var A,N,_,L,O,j,Y=this,X=this.chart,G=this.group,q=this.markerGroup,Q=this.xAxis&&this.xAxis.center,J=X.plotLeft,rt=X.plotTop,lt=this.options.animation;X.polar?Y.isRadialBar?C||(Y.startAngleRad=P(Y.translatedThreshold,Y.xAxis.startAngleRad),R.seriesTypes.pie.prototype.animate.call(Y,C)):X.renderer.isSVG&&(lt=U(lt),Y.is("column")?C||(N=Q[3]/2,Y.points.forEach(function(gt){_=gt.graphic,L=gt.shapeArgs,O=L&&L.r,j=L&&L.innerR,_&&L&&(_.attr({r:N,innerR:N}),_.animate({r:O,innerR:j},Y.options.animation))})):C?(A={translateX:Q[0]+J,translateY:Q[1]+rt,scaleX:.001,scaleY:.001},G.attr(A),q&&q.attr(A)):(A={translateX:J,translateY:rt,scaleX:1,scaleY:1},G.animate(A,lt),q&&q.animate(A,lt))):p.call(this,C)}function k(p,C,A,N){var _,L;if(this.chart.polar)if(N){var O=(L=u(C,N,!0,this.connectEnds)).prevPointCont&&L.prevPointCont.rightContX,j=L.prevPointCont&&L.prevPointCont.rightContY;_=["C",M(O)?O:L.plotX,M(j)?j:L.plotY,M(L.leftContX)?L.leftContX:L.plotX,M(L.leftContY)?L.leftContY:L.plotY,L.plotX,L.plotY]}else _=["M",A.plotX,A.plotY];else _=p.call(this,C,A,N);return _}var D=function(){function p(C){this.series=C}return p.compose=function(C,A,N,_,L,O,j,Y,X){if(V.compose(C,L),m.indexOf(A)===-1){m.push(A),z(A,"afterDrawChartBox",v),z(A,"getAxes",S),z(A,"init",w);var G=A.prototype;f(G,"get",i)}if(m.indexOf(N)===-1){m.push(N);var q=N.prototype;f(q,"getCoordinates",n),f(q,"pinch",l),z(N,"getSelectionMarkerAttrs",c),z(N,"getSelectionBox",x)}if(m.indexOf(_)===-1){m.push(_),z(_,"afterInit",g),z(_,"afterTranslate",r,{order:2});var Q=_.prototype;f(Q,"animate",b)}if(j&&m.indexOf(j)===-1){m.push(j);var J=j.prototype;f(J,"alignDataLabel",o),f(J,"animate",b),f(J,"translate",e)}if(Y&&m.indexOf(Y)===-1){m.push(Y);var rt=Y.prototype;f(rt,"getGraphPath",s)}if(X&&m.indexOf(X)===-1){m.push(X);var lt=X.prototype;f(lt,"getPointSpline",k),O&&m.indexOf(O)===-1&&(m.push(O),O.prototype.getPointSpline=lt.getPointSpline)}},p.prototype.arc=function(C,A,N,_){var L=this.series,O=L.xAxis.center,j=L.yAxis.len,Y=O[3]/2,X=j-A+Y,G=j-P(C,j)+Y;return L.yAxis.reversed&&(X<0&&(X=Y),G<0&&(G=Y)),{x:O[0],y:O[1],r:X,innerR:G,start:N,end:_}},p.prototype.toXY=function(C){var A,N=this.series,_=N.chart,L=N.xAxis,O=N.yAxis,j=C.plotX,Y=_.inverted,X=C.y,G=C.plotY,q=Y?j:O.len-G;if(Y&&N&&!N.isRadialBar&&(C.plotY=G=M(X)?O.translate(X):0),C.rectPlotX=j,C.rectPlotY=G,O.center&&(q+=O.center[3]/2),M(G)){var Q=Y?O.postTranslate(G,q):L.postTranslate(j,q);C.plotX=C.polarPlotX=Q.x-_.plotLeft,C.plotY=C.polarPlotY=Q.y-_.plotTop}N.kdByAngle?((A=(j/Math.PI*180+L.pane.options.startAngle)%360)<0&&(A+=360),C.clientX=A):C.clientX=C.plotX},p}();return D}),it(B,"masters/highcharts-more.src.js",[B["Core/Globals.js"],B["Core/Series/SeriesRegistry.js"],B["Series/Bubble/BubbleSeries.js"],B["Series/PackedBubble/PackedBubbleSeries.js"],B["Series/PolarComposition.js"]],function(W,R,H,V,$){var Z=W;H.compose(Z.Axis,Z.Chart,Z.Legend,Z.Series),V.compose(Z.Axis,Z.Chart,Z.Legend,Z.Series),$.compose(Z.Axis,Z.Chart,Z.Pointer,Z.Series,Z.Tick,R.seriesTypes.areasplinerange,R.seriesTypes.column,R.seriesTypes.line,R.seriesTypes.spline)})},ot.exports?(ut.default=ut,ot.exports=ut):(pt=[st(4783)],(ht=function(ft){return ut(ft),ut.Highcharts=ft,ut}.apply(nt,pt))===void 0||(ot.exports=ht))},6956:(ot,nt,st)=>{st.d(nt,{A:()=>pt});const pt=Array.isArray},6979:(ot,nt,st)=>{st.d(nt,{A:()=>pt});const pt=function(ht,ut){return ht===ut||ht!=ht&&ut!=ut}},7313:(ot,nt,st)=>{st.d(nt,{A:()=>pt});const pt=function(ht){return ht!=null&&typeof ht=="object"}},7783:function(ot,nt,st){var pt=this&&this.__createBinding||(Object.create?function(B,it,W,R){R===void 0&&(R=W);var H=Object.getOwnPropertyDescriptor(it,W);H&&!("get"in H?!it.__esModule:H.writable||H.configurable)||(H={enumerable:!0,get:function(){return it[W]}}),Object.defineProperty(B,R,H)}:function(B,it,W,R){R===void 0&&(R=W),B[R]=it[W]}),ht=this&&this.__exportStar||function(B,it){for(var W in B)W==="default"||Object.prototype.hasOwnProperty.call(it,W)||pt(it,B,W)},ut=this&&this.__importDefault||function(B){return B&&B.__esModule?B:{default:B}};Object.defineProperty(nt,"__esModule",{value:!0});var ft=ut(st(4608));nt.default=ft.default,ht(st(4783),nt)},7942:(ot,nt,st)=>{st.d(nt,{A:()=>pt});const pt=function(ht){var ut=typeof ht;return ht!=null&&(ut=="object"||ut=="function")}},8552:(ot,nt,st)=>{st.r(nt),st.d(nt,{default:()=>ut});var pt=st(5118),ht=st(9322);const ut=function(ft,B,it){var W=ft==null?void 0:function(R,H){for(var V=0,$=(H=(0,pt.A)(H,R)).length;R!=null&&V<$;)R=R[(0,ht.A)(H[V++])];return V&&V==$?R:void 0}(ft,B);return W===void 0?it:W}},9170:function(ot,nt,st){var pt=this&&this.__importDefault||function(it){return it&&it.__esModule?it:{default:it}};Object.defineProperty(nt,"__esModule",{value:!0});var ht=pt(st(5134)),ut=pt(st(605)),ft={enabled:!0,overflow:"justify",style:{color:ut.default.labelColor,fontFamily:ut.default.fontFamily,fontSize:"13px",fontWeight:"normal",cursor:"default",lineHeight:"14px"}},B={series:{turboThreshold:1e3,dataLabels:ht.default.merge(ft,{align:"center"}),states:{inactive:{enabled:!1}}},line:{allowPointSelect:!1,showCheckbox:!1,animation:{duration:1e3},connectNulls:!1,cursor:"default",clip:!0,dashStyle:null,enableMouseTracking:!0,events:{},legendIndex:0,linecap:"round",lineWidth:2,shadow:!1,stacking:null,label:{style:{color:ut.default.labelColor,fontFamily:ut.default.fontFamily}},marker:{enabled:!0,symbol:null,lineWidth:0,radius:4,lineColor:"#FFFFFF",fillColor:null,states:{hover:{enabled:!0},select:{fillColor:"transparent",lineColor:"transparent"}}},point:{events:{}},dataLabels:ht.default.merge(ft,{align:"center",enabled:!1}),cropThreshold:300,pointRange:0,states:{hover:{marker:{}},select:{marker:{}}},stickyTracking:!0},column:{maxPointWidth:82,dataLabels:ht.default.merge(ft,{align:"center",enabled:!1,verticalAlign:"bottom",overflow:"justify"})},bar:{maxPointWidth:82,dataLabels:ht.default.merge(ft,{align:"center",enabled:!1,verticalAlign:"middle",overflow:"justify"})},pie:{dataLabels:{overflow:"ellipsis"}}};nt.default=B},9322:(ot,nt,st)=>{st.d(nt,{A:()=>ht});var pt=st(4089);const ht=function(ut){if(typeof ut=="string"||(0,pt.A)(ut))return ut;var ft=ut+"";return ft=="0"&&1/ut==-1/0?"-0":ft}},9465:(ot,nt,st)=>{st.d(nt,{A:()=>ut});var pt=st(123);const ht=function(){try{var ft=(0,pt.A)(Object,"defineProperty");return ft({},"",{}),ft}catch(B){}}(),ut=function(ft,B,it){B=="__proto__"&&ht?ht(ft,B,{configurable:!0,enumerable:!0,value:it,writable:!0}):ft[B]=it}},9600:(ot,nt,st)=>{st.d(nt,{A:()=>ut});var pt=st(6713),ht=typeof self=="object"&&self&&self.Object===Object&&self;const ut=pt.A||ht||Function("return this")()},9681:function(ot,nt,st){var pt=this&&this.__importDefault||function(ft){return ft&&ft.__esModule?ft:{default:ft}};Object.defineProperty(nt,"__esModule",{value:!0});var ht=pt(st(605)),ut={align:"center",itemHoverStyle:{color:ht.default.legendColor},itemStyle:{color:ht.default.legendColor,fontSize:"12px",fontWeight:"bold",textOverflow:"ellipsis",fontFamily:ht.default.fontFamily},navigation:{style:{color:ht.default.legendNavigationColor,fontFamily:ht.default.fontFamily},activeColor:ht.default.legendNavigationColor,inactiveColor:ht.default.legendNavigationSecondaryColor},alignColumns:!1};nt.default=ut}},K={};function tt(ot){var nt=K[ot];if(nt!==void 0)return nt.exports;var st=K[ot]={exports:{}};return F[ot].call(st.exports,st,st.exports,tt),st.exports}return tt.d=(ot,nt)=>{for(var st in nt)tt.o(nt,st)&&!tt.o(ot,st)&&Object.defineProperty(ot,st,{enumerable:!0,get:nt[st]})},tt.o=(ot,nt)=>Object.prototype.hasOwnProperty.call(ot,nt),tt.r=ot=>{typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(ot,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(ot,"__esModule",{value:!0})},tt(938)})())})(Xr,Xr.exports);var jg=Xr.exports;const vh=Jr(jg);/*! @license DOMPurify 3.1.6 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.1.6/LICENSE */const{entries:bh,setPrototypeOf:Ws,isFrozen:Ig,getPrototypeOf:Ng,getOwnPropertyDescriptor:Bg}=Object;let{freeze:Pe,seal:Fe,create:xh}=Object,{apply:Hr,construct:Yr}=typeof Reflect!="undefined"&&Reflect;Pe||(Pe=function(T){return T});Fe||(Fe=function(T){return T});Hr||(Hr=function(T,F,K){return T.apply(F,K)});Yr||(Yr=function(T,F){return new T(...F)});const So=Ie(Array.prototype.forEach),Xs=Ie(Array.prototype.pop),Ni=Ie(Array.prototype.push),Io=Ie(String.prototype.toLowerCase),br=Ie(String.prototype.toString),Hs=Ie(String.prototype.match),Bi=Ie(String.prototype.replace),_g=Ie(String.prototype.indexOf),Rg=Ie(String.prototype.trim),Ge=Ie(Object.prototype.hasOwnProperty),ke=Ie(RegExp.prototype.test),_i=zg(TypeError);function Ie(d){return function(T){for(var F=arguments.length,K=new Array(F>1?F-1:0),tt=1;tt<F;tt++)K[tt-1]=arguments[tt];return Hr(d,T,K)}}function zg(d){return function(){for(var T=arguments.length,F=new Array(T),K=0;K<T;K++)F[K]=arguments[K];return Yr(d,F)}}function Jt(d,T){let F=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Io;Ws&&Ws(d,null);let K=T.length;for(;K--;){let tt=T[K];if(typeof tt=="string"){const ot=F(tt);ot!==tt&&(Ig(T)||(T[K]=ot),tt=ot)}d[tt]=!0}return d}function Fg(d){for(let T=0;T<d.length;T++)Ge(d,T)||(d[T]=null);return d}function gi(d){const T=xh(null);for(const[F,K]of bh(d))Ge(d,F)&&(Array.isArray(K)?T[F]=Fg(K):K&&typeof K=="object"&&K.constructor===Object?T[F]=gi(K):T[F]=K);return T}function Ri(d,T){for(;d!==null;){const K=Bg(d,T);if(K){if(K.get)return Ie(K.get);if(typeof K.value=="function")return Ie(K.value)}d=Ng(d)}function F(){return null}return F}const Ys=Pe(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),xr=Pe(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),Cr=Pe(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),Gg=Pe(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),wr=Pe(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),Wg=Pe(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),Us=Pe(["#text"]),Vs=Pe(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),Sr=Pe(["accent-height","accumulate","additive","alignment-baseline","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),$s=Pe(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),Mo=Pe(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),Xg=Fe(/\{\{[\w\W]*|[\w\W]*\}\}/gm),Hg=Fe(/<%[\w\W]*|[\w\W]*%>/gm),Yg=Fe(/\${[\w\W]*}/gm),Ug=Fe(/^data-[\-\w.\u00B7-\uFFFF]/),Vg=Fe(/^aria-[\-\w]+$/),Ch=Fe(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),$g=Fe(/^(?:\w+script|data):/i),Zg=Fe(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),wh=Fe(/^html$/i),Kg=Fe(/^[a-z][.\w]*(-[.\w]+)+$/i);var Zs=Object.freeze({__proto__:null,MUSTACHE_EXPR:Xg,ERB_EXPR:Hg,TMPLIT_EXPR:Yg,DATA_ATTR:Ug,ARIA_ATTR:Vg,IS_ALLOWED_URI:Ch,IS_SCRIPT_OR_DATA:$g,ATTR_WHITESPACE:Zg,DOCTYPE_NAME:wh,CUSTOM_ELEMENT:Kg});const zi={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,progressingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},qg=function(){return typeof window=="undefined"?null:window},Jg=function(T,F){if(typeof T!="object"||typeof T.createPolicy!="function")return null;let K=null;const tt="data-tt-policy-suffix";F&&F.hasAttribute(tt)&&(K=F.getAttribute(tt));const ot="dompurify"+(K?"#"+K:"");try{return T.createPolicy(ot,{createHTML(nt){return nt},createScriptURL(nt){return nt}})}catch(nt){return console.warn("TrustedTypes policy "+ot+" could not be created."),null}};function Sh(){let d=arguments.length>0&&arguments[0]!==void 0?arguments[0]:qg();const T=Wt=>Sh(Wt);if(T.version="3.1.6",T.removed=[],!d||!d.document||d.document.nodeType!==zi.document)return T.isSupported=!1,T;let{document:F}=d;const K=F,tt=K.currentScript,{DocumentFragment:ot,HTMLTemplateElement:nt,Node:st,Element:pt,NodeFilter:ht,NamedNodeMap:ut=d.NamedNodeMap||d.MozNamedAttrMap,HTMLFormElement:ft,DOMParser:B,trustedTypes:it}=d,W=pt.prototype,R=Ri(W,"cloneNode"),H=Ri(W,"remove"),V=Ri(W,"nextSibling"),$=Ri(W,"childNodes"),Z=Ri(W,"parentNode");if(typeof nt=="function"){const Wt=F.createElement("template");Wt.content&&Wt.content.ownerDocument&&(F=Wt.content.ownerDocument)}let U,z="";const{implementation:I,createNodeIterator:E,createDocumentFragment:M,getElementsByTagName:P}=F,{importNode:y}=K;let h={};T.isSupported=typeof bh=="function"&&typeof Z=="function"&&I&&I.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:f,ERB_EXPR:m,TMPLIT_EXPR:u,DATA_ATTR:v,ARIA_ATTR:w,IS_SCRIPT_OR_DATA:S,ATTR_WHITESPACE:x,CUSTOM_ELEMENT:c}=Zs;let{IS_ALLOWED_URI:g}=Zs,r=null;const a=Jt({},[...Ys,...xr,...Cr,...wr,...Us]);let t=null;const i=Jt({},[...Vs,...Sr,...$s,...Mo]);let o=Object.seal(xh(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),e=null,s=null,n=!0,l=!0,b=!1,k=!0,D=!1,p=!0,C=!1,A=!1,N=!1,_=!1,L=!1,O=!1,j=!0,Y=!1;const X="user-content-";let G=!0,q=!1,Q={},J=null;const rt=Jt({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let lt=null;const gt=Jt({},["audio","video","img","source","image","track"]);let mt=null;const bt=Jt({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),yt="http://www.w3.org/1998/Math/MathML",ct="http://www.w3.org/2000/svg",et="http://www.w3.org/1999/xhtml";let at=et,dt=!1,vt=null;const Ct=Jt({},[yt,ct,et],br);let xt=null;const wt=["application/xhtml+xml","text/html"],Mt="text/html";let St=null,Tt=null;const Lt=F.createElement("form"),Pt=function(At){return At instanceof RegExp||At instanceof Function},Dt=function(){let At=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(Tt&&Tt===At)){if((!At||typeof At!="object")&&(At={}),At=gi(At),xt=wt.indexOf(At.PARSER_MEDIA_TYPE)===-1?Mt:At.PARSER_MEDIA_TYPE,St=xt==="application/xhtml+xml"?br:Io,r=Ge(At,"ALLOWED_TAGS")?Jt({},At.ALLOWED_TAGS,St):a,t=Ge(At,"ALLOWED_ATTR")?Jt({},At.ALLOWED_ATTR,St):i,vt=Ge(At,"ALLOWED_NAMESPACES")?Jt({},At.ALLOWED_NAMESPACES,br):Ct,mt=Ge(At,"ADD_URI_SAFE_ATTR")?Jt(gi(bt),At.ADD_URI_SAFE_ATTR,St):bt,lt=Ge(At,"ADD_DATA_URI_TAGS")?Jt(gi(gt),At.ADD_DATA_URI_TAGS,St):gt,J=Ge(At,"FORBID_CONTENTS")?Jt({},At.FORBID_CONTENTS,St):rt,e=Ge(At,"FORBID_TAGS")?Jt({},At.FORBID_TAGS,St):{},s=Ge(At,"FORBID_ATTR")?Jt({},At.FORBID_ATTR,St):{},Q=Ge(At,"USE_PROFILES")?At.USE_PROFILES:!1,n=At.ALLOW_ARIA_ATTR!==!1,l=At.ALLOW_DATA_ATTR!==!1,b=At.ALLOW_UNKNOWN_PROTOCOLS||!1,k=At.ALLOW_SELF_CLOSE_IN_ATTR!==!1,D=At.SAFE_FOR_TEMPLATES||!1,p=At.SAFE_FOR_XML!==!1,C=At.WHOLE_DOCUMENT||!1,_=At.RETURN_DOM||!1,L=At.RETURN_DOM_FRAGMENT||!1,O=At.RETURN_TRUSTED_TYPE||!1,N=At.FORCE_BODY||!1,j=At.SANITIZE_DOM!==!1,Y=At.SANITIZE_NAMED_PROPS||!1,G=At.KEEP_CONTENT!==!1,q=At.IN_PLACE||!1,g=At.ALLOWED_URI_REGEXP||Ch,at=At.NAMESPACE||et,o=At.CUSTOM_ELEMENT_HANDLING||{},At.CUSTOM_ELEMENT_HANDLING&&Pt(At.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(o.tagNameCheck=At.CUSTOM_ELEMENT_HANDLING.tagNameCheck),At.CUSTOM_ELEMENT_HANDLING&&Pt(At.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(o.attributeNameCheck=At.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),At.CUSTOM_ELEMENT_HANDLING&&typeof At.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(o.allowCustomizedBuiltInElements=At.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),D&&(l=!1),L&&(_=!0),Q&&(r=Jt({},Us),t=[],Q.html===!0&&(Jt(r,Ys),Jt(t,Vs)),Q.svg===!0&&(Jt(r,xr),Jt(t,Sr),Jt(t,Mo)),Q.svgFilters===!0&&(Jt(r,Cr),Jt(t,Sr),Jt(t,Mo)),Q.mathMl===!0&&(Jt(r,wr),Jt(t,$s),Jt(t,Mo))),At.ADD_TAGS&&(r===a&&(r=gi(r)),Jt(r,At.ADD_TAGS,St)),At.ADD_ATTR&&(t===i&&(t=gi(t)),Jt(t,At.ADD_ATTR,St)),At.ADD_URI_SAFE_ATTR&&Jt(mt,At.ADD_URI_SAFE_ATTR,St),At.FORBID_CONTENTS&&(J===rt&&(J=gi(J)),Jt(J,At.FORBID_CONTENTS,St)),G&&(r["#text"]=!0),C&&Jt(r,["html","head","body"]),r.table&&(Jt(r,["tbody"]),delete e.tbody),At.TRUSTED_TYPES_POLICY){if(typeof At.TRUSTED_TYPES_POLICY.createHTML!="function")throw _i('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof At.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw _i('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');U=At.TRUSTED_TYPES_POLICY,z=U.createHTML("")}else U===void 0&&(U=Jg(it,tt)),U!==null&&typeof z=="string"&&(z=U.createHTML(""));Pe&&Pe(At),Tt=At}},jt=Jt({},["mi","mo","mn","ms","mtext"]),Ot=Jt({},["foreignobject","annotation-xml"]),It=Jt({},["title","style","font","a","script"]),Bt=Jt({},[...xr,...Cr,...Gg]),Zt=Jt({},[...wr,...Wg]),zt=function(At){let _t=Z(At);(!_t||!_t.tagName)&&(_t={namespaceURI:at,tagName:"template"});const Xt=Io(At.tagName),Qt=Io(_t.tagName);return vt[At.namespaceURI]?At.namespaceURI===ct?_t.namespaceURI===et?Xt==="svg":_t.namespaceURI===yt?Xt==="svg"&&(Qt==="annotation-xml"||jt[Qt]):!!Bt[Xt]:At.namespaceURI===yt?_t.namespaceURI===et?Xt==="math":_t.namespaceURI===ct?Xt==="math"&&Ot[Qt]:!!Zt[Xt]:At.namespaceURI===et?_t.namespaceURI===ct&&!Ot[Qt]||_t.namespaceURI===yt&&!jt[Qt]?!1:!Zt[Xt]&&(It[Xt]||!Bt[Xt]):!!(xt==="application/xhtml+xml"&&vt[At.namespaceURI]):!1},Ht=function(At){Ni(T.removed,{element:At});try{Z(At).removeChild(At)}catch(_t){H(At)}},Kt=function(At,_t){try{Ni(T.removed,{attribute:_t.getAttributeNode(At),from:_t})}catch(Xt){Ni(T.removed,{attribute:null,from:_t})}if(_t.removeAttribute(At),At==="is"&&!t[At])if(_||L)try{Ht(_t)}catch(Xt){}else try{_t.setAttribute(At,"")}catch(Xt){}},me=function(At){let _t=null,Xt=null;if(N)At="<remove></remove>"+At;else{const ne=Hs(At,/^[\r\n\t ]+/);Xt=ne&&ne[0]}xt==="application/xhtml+xml"&&at===et&&(At='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+At+"</body></html>");const Qt=U?U.createHTML(At):At;if(at===et)try{_t=new B().parseFromString(Qt,xt)}catch(ne){}if(!_t||!_t.documentElement){_t=I.createDocument(at,"template",null);try{_t.documentElement.innerHTML=dt?z:Qt}catch(ne){}}const de=_t.body||_t.documentElement;return At&&Xt&&de.insertBefore(F.createTextNode(Xt),de.childNodes[0]||null),at===et?P.call(_t,C?"html":"body")[0]:C?_t.documentElement:de},Ut=function(At){return E.call(At.ownerDocument||At,At,ht.SHOW_ELEMENT|ht.SHOW_COMMENT|ht.SHOW_TEXT|ht.SHOW_PROCESSING_INSTRUCTION|ht.SHOW_CDATA_SECTION,null)},te=function(At){return At instanceof ft&&(typeof At.nodeName!="string"||typeof At.textContent!="string"||typeof At.removeChild!="function"||!(At.attributes instanceof ut)||typeof At.removeAttribute!="function"||typeof At.setAttribute!="function"||typeof At.namespaceURI!="string"||typeof At.insertBefore!="function"||typeof At.hasChildNodes!="function")},ye=function(At){return typeof st=="function"&&At instanceof st},Et=function(At,_t,Xt){h[At]&&So(h[At],Qt=>{Qt.call(T,_t,Xt,Tt)})},Gt=function(At){let _t=null;if(Et("beforeSanitizeElements",At,null),te(At))return Ht(At),!0;const Xt=St(At.nodeName);if(Et("uponSanitizeElement",At,{tagName:Xt,allowedTags:r}),At.hasChildNodes()&&!ye(At.firstElementChild)&&ke(/<[/\w]/g,At.innerHTML)&&ke(/<[/\w]/g,At.textContent)||At.nodeType===zi.progressingInstruction||p&&At.nodeType===zi.comment&&ke(/<[/\w]/g,At.data))return Ht(At),!0;if(!r[Xt]||e[Xt]){if(!e[Xt]&&$t(Xt)&&(o.tagNameCheck instanceof RegExp&&ke(o.tagNameCheck,Xt)||o.tagNameCheck instanceof Function&&o.tagNameCheck(Xt)))return!1;if(G&&!J[Xt]){const Qt=Z(At)||At.parentNode,de=$(At)||At.childNodes;if(de&&Qt){const ne=de.length;for(let ue=ne-1;ue>=0;--ue){const qt=R(de[ue],!0);qt.__removalCount=(At.__removalCount||0)+1,Qt.insertBefore(qt,V(At))}}}return Ht(At),!0}return At instanceof pt&&!zt(At)||(Xt==="noscript"||Xt==="noembed"||Xt==="noframes")&&ke(/<\/no(script|embed|frames)/i,At.innerHTML)?(Ht(At),!0):(D&&At.nodeType===zi.text&&(_t=At.textContent,So([f,m,u],Qt=>{_t=Bi(_t,Qt," ")}),At.textContent!==_t&&(Ni(T.removed,{element:At.cloneNode()}),At.textContent=_t)),Et("afterSanitizeElements",At,null),!1)},Yt=function(At,_t,Xt){if(j&&(_t==="id"||_t==="name")&&(Xt in F||Xt in Lt))return!1;if(!(l&&!s[_t]&&ke(v,_t))){if(!(n&&ke(w,_t))){if(!t[_t]||s[_t]){if(!($t(At)&&(o.tagNameCheck instanceof RegExp&&ke(o.tagNameCheck,At)||o.tagNameCheck instanceof Function&&o.tagNameCheck(At))&&(o.attributeNameCheck instanceof RegExp&&ke(o.attributeNameCheck,_t)||o.attributeNameCheck instanceof Function&&o.attributeNameCheck(_t))||_t==="is"&&o.allowCustomizedBuiltInElements&&(o.tagNameCheck instanceof RegExp&&ke(o.tagNameCheck,Xt)||o.tagNameCheck instanceof Function&&o.tagNameCheck(Xt))))return!1}else if(!mt[_t]){if(!ke(g,Bi(Xt,x,""))){if(!((_t==="src"||_t==="xlink:href"||_t==="href")&&At!=="script"&&_g(Xt,"data:")===0&&lt[At])){if(!(b&&!ke(S,Bi(Xt,x,"")))){if(Xt)return!1}}}}}}return!0},$t=function(At){return At!=="annotation-xml"&&Hs(At,c)},ce=function(At){Et("beforeSanitizeAttributes",At,null);const{attributes:_t}=At;if(!_t)return;const Xt={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:t};let Qt=_t.length;for(;Qt--;){const de=_t[Qt],{name:ne,namespaceURI:ue,value:qt}=de,ve=St(ne);let ae=ne==="value"?qt:Rg(qt);if(Xt.attrName=ve,Xt.attrValue=ae,Xt.keepAttr=!0,Xt.forceKeepAttr=void 0,Et("uponSanitizeAttribute",At,Xt),ae=Xt.attrValue,p&&ke(/((--!?|])>)|<\/(style|title)/i,ae)){Kt(ne,At);continue}if(Xt.forceKeepAttr||(Kt(ne,At),!Xt.keepAttr))continue;if(!k&&ke(/\/>/i,ae)){Kt(ne,At);continue}D&&So([f,m,u],Wn=>{ae=Bi(ae,Wn," ")});const co=St(At.nodeName);if(Yt(co,ve,ae)){if(Y&&(ve==="id"||ve==="name")&&(Kt(ne,At),ae=X+ae),U&&typeof it=="object"&&typeof it.getAttributeType=="function"&&!ue)switch(it.getAttributeType(co,ve)){case"TrustedHTML":{ae=U.createHTML(ae);break}case"TrustedScriptURL":{ae=U.createScriptURL(ae);break}}try{ue?At.setAttributeNS(ue,ne,ae):At.setAttribute(ne,ae),te(At)?Ht(At):Xs(T.removed)}catch(Wn){}}}Et("afterSanitizeAttributes",At,null)},pe=function Wt(At){let _t=null;const Xt=Ut(At);for(Et("beforeSanitizeShadowDOM",At,null);_t=Xt.nextNode();)Et("uponSanitizeShadowNode",_t,null),!Gt(_t)&&(_t.content instanceof ot&&Wt(_t.content),ce(_t));Et("afterSanitizeShadowDOM",At,null)};return T.sanitize=function(Wt){let At=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},_t=null,Xt=null,Qt=null,de=null;if(dt=!Wt,dt&&(Wt="<!-->"),typeof Wt!="string"&&!ye(Wt))if(typeof Wt.toString=="function"){if(Wt=Wt.toString(),typeof Wt!="string")throw _i("dirty is not a string, aborting")}else throw _i("toString is not a function");if(!T.isSupported)return Wt;if(A||Dt(At),T.removed=[],typeof Wt=="string"&&(q=!1),q){if(Wt.nodeName){const qt=St(Wt.nodeName);if(!r[qt]||e[qt])throw _i("root node is forbidden and cannot be sanitized in-place")}}else if(Wt instanceof st)_t=me("<!---->"),Xt=_t.ownerDocument.importNode(Wt,!0),Xt.nodeType===zi.element&&Xt.nodeName==="BODY"||Xt.nodeName==="HTML"?_t=Xt:_t.appendChild(Xt);else{if(!_&&!D&&!C&&Wt.indexOf("<")===-1)return U&&O?U.createHTML(Wt):Wt;if(_t=me(Wt),!_t)return _?null:O?z:""}_t&&N&&Ht(_t.firstChild);const ne=Ut(q?Wt:_t);for(;Qt=ne.nextNode();)Gt(Qt)||(Qt.content instanceof ot&&pe(Qt.content),ce(Qt));if(q)return Wt;if(_){if(L)for(de=M.call(_t.ownerDocument);_t.firstChild;)de.appendChild(_t.firstChild);else de=_t;return(t.shadowroot||t.shadowrootmode)&&(de=y.call(K,de,!0)),de}let ue=C?_t.outerHTML:_t.innerHTML;return C&&r["!doctype"]&&_t.ownerDocument&&_t.ownerDocument.doctype&&_t.ownerDocument.doctype.name&&ke(wh,_t.ownerDocument.doctype.name)&&(ue="<!DOCTYPE "+_t.ownerDocument.doctype.name+`>
7
+ `+ue),D&&So([f,m,u],qt=>{ue=Bi(ue,qt," ")}),U&&O?U.createHTML(ue):ue},T.setConfig=function(){let Wt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Dt(Wt),A=!0},T.clearConfig=function(){Tt=null,A=!1},T.isValidAttribute=function(Wt,At,_t){Tt||Dt({});const Xt=St(Wt),Qt=St(At);return Yt(Xt,Qt,_t)},T.addHook=function(Wt,At){typeof At=="function"&&(h[Wt]=h[Wt]||[],Ni(h[Wt],At))},T.removeHook=function(Wt){if(h[Wt])return Xs(h[Wt])},T.removeHooks=function(Wt){h[Wt]&&(h[Wt]=[])},T.removeAllHooks=function(){h={}},T}var Mh=Sh();const Qg=d=>d?Je(d)||d.column.type&&Rt.isNumber(d.column.type):!1,tm=(d,T,F)=>{if(!d||T===void 0||isNaN(T))return F;const K=he(d.numberFormatConfig);return yi(K,T)},le=(d,T,F)=>Qg(d)?tm(d,parseFloat(`${T}`),F):F,em=["auto","column","area","areaspline","bar","scatter","arearange"];function Ah(d){return d!=null&&d.chartType?em.includes(d.chartType):!0}const Me=(d,T)=>d!==""?`<span style="color:${T!=null?T:"currentColor"}; font-size: 15px; line-height: 18px">${d}</span>`:"",Fi=(d,T)=>`${T||""}${T&&d?"<br />":""}${d||""}`,xi=d=>Mh.sanitize(`<div style="min-width: 100px; color: #5B6372; font-size: 13px; line-height: 18px; margin: 4px 6px">
8
+ ${d}
9
+ </div>`),ei=()=>'<hr class="csdk-border-t" style="margin: 7px 0px" />',im=d=>{const T=d.map((F,K)=>F&&K>0?ei()+F:F).join("");return xi(T)},om=(d,T)=>{const{maskedX:F,maskedY:K,maskedBreakByPoint:tt,maskedSize:ot,maskedBreakByColor:nt}=d.point.custom,st=le(T.x,d.point.x,F),pt=le(T.y,d.point.y,K),ht=le(T.size,d.point.z,ot||""),ut=Me(st,d.point.color),ft=Me(pt,d.point.color),B=Me(tt||"",d.point.color),it=Me(nt||"",d.point.color),W=Me(ht,d.point.color);return{x:ut,y:ft,breakByPoint:B,breakByColor:it,size:W}},rm=(d,T)=>{const F=Fi(d.x,T.x&&xe(T.x)),K=Fi(d.y,T.y&&xe(T.y)),tt=Fi(d.breakByPoint,T.breakByPoint&&xe(T.breakByPoint)),ot=Fi(d.breakByColor,T.breakByColor&&xe(T.breakByColor)),nt=Fi(d.size,T.size&&xe(T.size));return{x:F,y:K,breakByPoint:tt,breakByColor:ot,size:nt}},nm=(d,T)=>{const F=om(d,T),{x:K,y:tt,breakByPoint:ot,breakByColor:nt,size:st}=rm(F,T);return im([K,tt,ot,nt,st])},sm=d=>({enabled:!0,useHTML:!0,formatter(){return nm(this,d)}}),Ci=(d,T)=>`Maximum number of series (${T}) exceeded (${d})`,Uo=(d,T,F)=>`'${d.toUpperCase()}-Axis:' Maximum number of categories (${F}) exceeded (${T})`,nr="$forecast",jn="$trend",Ai=d=>d.startsWith(nr),Th=d=>d.startsWith(jn),Vo=d=>`${d} $range`,am=(d,T,F)=>{if(!(d!=null&&d.data))return-1;const K=F[Vo(d.name)],tt=T[Vo(d.name)],ot=d.name.substring(nr.length+1),nt=T[ot],st=d.data.findIndex(pt=>!isNaN((pt==null?void 0:pt.y)||NaN));return st===-1?(console.debug("Forecast data has no valid data points",d.name,d.data),-1):(d.type="line",d.showInLegend=!1,d.data[st-1].y=nt.data[st-1].y,d.dashStyle="ShortDash",d.color=nt.color,d.data.forEach((pt,ht)=>{pt.high=K.data[ht].y,pt.low=tt.data[ht].y}),st)},lm=(d,T)=>{d.showInLegend=!1,d.enableMouseTracking=!1;const F=d.name.substring(nr.length+1,d.name.length-7),K=T[F];d.color=K.color,d.fillOpacity=.15,d.lineWidth=0},hm=(d,T)=>{if(!d.data)return;const F=d.name.substring(10,d.name.length-7),K=T[F],tt=d.data.findIndex(ot=>!isNaN((ot==null?void 0:ot.low)||NaN));if(tt===-1){console.debug("Forecast range data has no valid data points",d.name,d.data);return}d.data[tt-1].low=K.data[tt-1].y,d.data[tt-1].high=K.data[tt-1].y},cm=(d,T,F)=>{d.forEach(K=>K.plotBands=[{color:"#F7F7FA",borderWidth:0,from:T-1,to:F}])},pm=(d,T)=>{d.type="line";const F=d.name.substring(jn.length+1),K=T[F];d.showInLegend=!1,d.dashStyle="ShortDot",d.color=K.color;let tt=0,ot=Number.MAX_VALUE;const nt=K.data.filter(W=>W.y).map(W=>(tt=Math.max(tt,W.y||0),ot=Math.min(ot,W.y||0),W.y)),st=ot,pt=tt,ht=nt.reduce((W,R)=>W+R,0)/nt.length,ut=[...nt].sort((W,R)=>W-R),ft=Math.floor(ut.length/2),B=ut.length%2!==0?ut[ft]:(ut[ft-1]+ut[ft])/2,it={min:st,max:pt,median:B,average:ht};d.data.forEach(W=>{W.trend=it})},dm=d=>{const T={};d.forEach(F=>{T[F.name]=F}),d.forEach(F=>{Th(F.name)&&pm(F,T)})},kh=d=>{const{breakBy:T}=d;if(T.length>0)return!1;const F=d.category.filter(ot=>!("enabled"in ot)||ot.enabled);if(F.length!==1)return!1;const[K]=F;let tt=!1;return vn(K)?tt=K.column.type==="datelevel":ld(K)&&(tt=K.type==="datelevel"),tt},um=d=>kh(d)?d.value.filter(T=>(T==null?void 0:T.trend)!==void 0).map(T=>({column:Rt.trend(T.column,`${jn}_${T.column.name}`,T.trend),numberFormatConfig:T.numberFormatConfig})):[],fm=d=>kh(d)?d.value.filter(T=>(T==null?void 0:T.forecast)!==void 0).map(T=>({column:Rt.forecast(T.column,`${nr}_${T.column.name}`,T.forecast),numberFormatConfig:T.numberFormatConfig})):[],Ph=(d,T)=>{const F=()=>Nt(kt({},d),{y:[]}),K=F(),tt=F(),ot=1,nt=0;d.seriesValues.forEach(ht=>{K.y.push(ht),tt.y.push(ht)}),d.rangeValues.forEach(ht=>{const ut=ht[ot],ft=ht[nt];K.y.push(ut),tt.y.push(ft)});const st=zr(K,T),pt=zr(tt,T);return Nt(kt({},st),{type:"range",seriesOther:pt})},Lh=d=>d.rangeValues?!1:d.y.some(F=>Ai(xe(F))),Eh=d=>{const T=d.y.filter(ot=>Ai(xe(ot))).map(ot=>{const nt=Nt(kt({},ot),{column:Bo(ot.column,{title:ot.column.title&&Vo(ot.column.title),name:`${ot.column.name}_upper`})});return[Nt(kt({},ot),{column:Bo(ot.column,{title:ot.column.title&&Vo(ot.column.title),name:`${ot.column.name}_lower`})}),nt]}),K=T.concat(d.y).flat(),tt=d.y;return Nt(kt({},d),{rangeValues:T,seriesValues:tt,y:K})},gm=(d,T)=>{const F=Eh(d);return Nt(kt({},Ph(F,T)),{type:"cartesian"})};var mm="[object Number]";function Ur(d){return typeof d=="number"||Rt.isObjectLike(d)&&Rt.baseGetTag(d)==mm}const $e="#d1d1d7",ym=d=>d.series[0].data.reduce((T,{low:F,high:K})=>({min:Math.min(T.min,F),max:Math.max(T.max,K)}),{min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY}),vm=(d,T,F)=>[{labels:{overflow:"none",enabled:d.enabled&&d.labels,autoRotation:[-10,-20,-30,-40,-50,-60,-70,-80,-90],style:we,formatter(){const{value:K}=this;if(F&&!Je(F)&&!Rt.isNumber(F.column.type))return`${K}`;const tt=typeof K=="number"?K:parseFloat(K);return isNaN(tt)?`${K}`:Ce(he(F==null?void 0:F.numberFormatConfig),tt)}},categories:T,title:{text:d.enabled&&d.titleEnabled&&d.title||null,margin:25},tickmarkPlacement:"on",gridLineWidth:d.enabled&&d.gridLine?1:0,minorTickLength:0,tickLength:0,startOnTick:!0,endOnTick:!0,lineColor:$e,tickColor:$e,minorTickColor:$e,gridLineColor:$e,gridLineDashStyle:"Dot",minorGridLineColor:$e,minorGridLineDashStyle:"Dot",min:d.enabled?d.min:null,max:d.enabled?d.max:null}],bm=(d,T,F)=>{const K=ym(T);return[{labels:{enabled:d.enabled&&d.labels,autoRotation:[-10,-20,-30,-40,-50,-60,-70,-80,-90],style:we,formatter(){return Ce(he(F==null?void 0:F.numberFormatConfig),this.value)}},tickmarkPlacement:"on",title:{text:d.enabled&&d.titleEnabled&&d.title||null,margin:25,style:we},minorGridLineWidth:0,lineColor:$e,lineWidth:1,tickColor:$e,minorTickColor:$e,gridLineColor:$e,gridLineDashStyle:"Dot",gridLineWidth:d.enabled&&d.gridLine?1:0,minorGridLineColor:$e,minorGridLineDashStyle:"Dot",min:d.enabled&&Ur(d.min)?d.min:K.min,max:d.enabled&&Ur(d.max)?d.max:K.max,tickInterval:d.enabled?d.tickInterval:null}]},Ks=d=>function(T,F){var tt,ot;const K=F?this.point[F]:void 0;return K===void 0||isNaN(K)?"":`${(tt=d==null?void 0:d.prefix)!=null?tt:""}${Ce(he(),K)}${(ot=d==null?void 0:d.suffix)!=null?ot:""}`},xm=d=>{var F,K;const T=Ve(d);return{series:{dataLabels:Nt(kt({rotation:(F=d==null?void 0:d.rotation)!=null?F:0,align:"center"},T),{style:kt({fontSize:"13px",fontWeight:"normal"},T.style),formatter:Ks(d)}),grouping:!1,stickyTracking:!1,turboThreshold:0,boostThreshold:0,softThreshold:!1},boxplot:{dataLabels:Nt(kt({rotation:(K=d==null?void 0:d.rotation)!=null?K:0,align:"center"},T),{style:kt({fontSize:"13px",fontWeight:"normal"},T.style),formatter:Ks(d)})},scatter:{dataLabels:{enabled:!1}}}},Cm=(d,T,F)=>{const K=[],[tt,ot]=d.series,{boxplotType:nt}=T,st=.15,pt=He(F,0),ht=pt,ut=to(pt,-1*st),ft=to(pt,-2*st),B=Ul(ft,2*st),it=[Nt(kt({},tt),{data:tt.data.map((W,R)=>{var H;return Nt(kt({},W),{color:ft,fillColor:nt==="hollow"?"transparent":ht,innerBoxColor:nt==="hollow"?"transparent":ut,selected:(H=W.blur)!=null?H:!1,custom:{xValue:d.xValues[R].rawValues}})}),medianWidth:1,maxPointWidth:42,minPointWidth:20,whiskerWidth:1,whiskerLength:"100%",fillOpacity:.8,strokeOpacity:.8,showInLegend:!0,legendIndex:0,yAxis:0,color:ft})];return ot&&it.push(Nt(kt({},ot),{data:ot.data.map(W=>Nt(kt({},W),{marker:{lineColor:W.blur?B:ft},custom:{xValue:d.xValues[W.x].rawValues}})),type:"scatter",legendIndex:1,showInLegend:!1,marker:{enabled:!0,fillColor:"transparent",lineWidth:1,lineColor:ft},color:ft})),{series:it,alerts:K}},wm=(d,T)=>({animation:!1,backgroundColor:oi,borderColor:ii,borderRadius:10,borderWidth:1,useHTML:!0,formatter(){const{x:F,y:K}=this,{high:tt,low:ot,q3:nt,q1:st,median:pt}=this.point,ht=mn(tt),ut=le(d.category,F,`${F}`);if(ht){const H=le(d.outliers,K,`${K}`);return xi(`
10
+ <div>${this.series.name}</div>
11
+ <div>${Me(H,this.point.color)}</div>
12
+ ${d.category?`${ei()}<div>${ut}</div>`:""}
13
+ `)}const ft=le(d.whiskerMax,tt,`${tt}`),B=le(d.whiskerMin,ot,`${ot}`),it=le(d.boxMax,nt,`${nt}`),W=le(d.boxMin,st,`${st}`),R=le(d.boxMedian,pt,`${pt}`);return xi(`
14
+ <div>${T("boxplot.tooltip.whiskers")}</div>
15
+ <div class="csdk-boxplot-tooltip-row">
16
+ <span>${T("boxplot.tooltip.max")}</span>
17
+ ${Me(ft,this.point.color)}
18
+ </div>
19
+ <div class="csdk-boxplot-tooltip-row">
20
+ <span>${T("boxplot.tooltip.min")}</span>
21
+ ${Me(B,this.point.color)}
22
+ </div>
23
+ ${ei()}
24
+ <div>${T("boxplot.tooltip.box")}</div>
25
+ <div class="csdk-boxplot-tooltip-row">
26
+ <span>${T("boxplot.tooltip.max")}</span>
27
+ ${Me(it,this.point.color)}
28
+ </div>
29
+ <div class="csdk-boxplot-tooltip-row">
30
+ <span>${T("boxplot.tooltip.min")}</span>
31
+ ${Me(W,this.point.color)}
32
+ </div>
33
+ <div class="csdk-boxplot-tooltip-row">
34
+ <span>${T("boxplot.tooltip.median")}</span>
35
+ ${Me(R,this.point.color)}
36
+ </div>
37
+ ${ei()}
38
+ <div>${d.category?ut:this.series.name}</div>
39
+ `)}}),Oh=(d,T,F,K,tt=!1)=>{const pt=K<(tt?200:400),ut=F*20,ft=K>ut;return!T||pt||ft?{enabled:!1}:{series:{type:d,dataGrouping:{enabled:!1}},tooltipFormatter:()=>({left:"",right:""}),enabled:!0,margin:30,height:40,xAxis:{labels:{enabled:!1}},handles:{symbols:["navigator-handle","navigator-handle"],backgroundColor:ii,borderColor:oi},maskInside:!0,maskFill:"rgba(91,99,114, 0.15)",outlineColor:ii,outlineWidth:1}};function Dh(d,T,F){d.xAxis[0].setExtremes(T,F,!1)}function qs(d){return"polarType"in d}const Di=(d,T)=>d==="line"&&T.lineType==="smooth"?"spline":d==="area"&&T.lineType==="smooth"?"areaspline":d==="polar"?T.polarType:d==="scatter"?"bubble":d,jh=(d,T)=>{var K,tt;const F={totalLabels:{enabled:!1}};if(d!=="area"&&d!=="bar"&&d!=="column"&&d!=="polar")return F;if(d==="polar"){if(qs(T))return{stacking:T.polarType==="column"||T.polarType==="area"?"normal":void 0,totalLabels:{enabled:!1}};throw new Rt.TranslatableError("errors.polarChartDesignOptionsExpected")}if(qs(T))throw new Rt.TranslatableError("errors.polarChartDesignOptionsNotExpected");switch(T.stackType){case"stacked":return{stacking:"normal",totalLabels:(K=T.totalLabels)!=null?K:F.totalLabels};case"stack100":return{stacking:"percent",totalLabels:(tt=T.totalLabels)!=null?tt:F.totalLabels};default:return F}},Sm=(d,T)=>d.map((F,K)=>T===K?0:-1),Mm=(d,T,F,K,tt,ot,nt,st)=>{const pt=Nh(d,F),ft=d,{title:ht}=ft,ut=Te(ft,["title"]);return Nt(kt({},ut),{name:ht!=null?ht:d.name,data:Tm(pt,T,K,tt,F,ot,nt,st)})},Am=(d,T)=>{!T.minClipped&&(d!=null&&d.min)&&(d==null?void 0:d.min)>0&&(d.min=0),!T.maxClipped&&(d!=null&&d.max)&&(d==null?void 0:d.max)<0&&(d.max=0)},Tm=(d,T,F,K,tt,ot,nt,st)=>{const pt=T.map((it,W)=>{if(it<0)return{y:null};const{value:R,blur:H,color:V,rawValue:$,xValue:Z,xDisplayValue:U,xCompareValue:z}=d[it],I=Ih(d,T,it,W),E=I||H,M={enabled:!H,isIsolatedPoint:I},P=z?z[0]:NaN;return Nt(kt(kt({x:P,y:R,selected:!!H},E&&{marker:M}),V&&{color:V}),{custom:{rawValue:$,xValue:Z,xDisplayValue:U||Z}})}),ht=[];let ut=-1;const ft=F/2;let B=0;return pt.forEach(it=>{if(it.x&&ut===-1&&(ut=it.x+ft),it.x&&it.x>ut){let W=Math.round((it.x-(ut-ft))/F);for(;W>0&&(B++,!(B>K));){const R=it.x-F*W;ht.push({custom:{xDisplayValue:ot(R)},x:R,y:tt?0:null}),tt&&(nt!=null&&nt.min)&&(nt==null?void 0:nt.min)>0&&Am(nt,st),W--,ut+=F}}ht.push(it),it.x?ut=it.x+F+ft:ut+=F}),ht},Li=(d,T,F,K,tt,ot)=>{const nt=Nh(d,F,ot),ht=d,{title:st}=ht,pt=Te(ht,["title"]);return Nt(kt({},pt),{name:st!=null?st:d.name,data:km(nt,T,K,tt)})},Ih=(d,T,F,K)=>{const tt=K===0||T[K-1]<0||isNaN(d[T[K-1]].value),ot=K+1===T.length||T[K+1]<0||isNaN(d[T[K+1]].value);return tt&&ot},Nh=(d,T,F)=>d.data.map(ot=>{var nt=ot,{value:K}=nt,tt=Te(nt,["value"]);return kt({value:T&&Number.isNaN(K)?0:F?Math.abs(K):K},tt)}),km=(d,T,F,K)=>{const tt=d.some(ot=>ot.blur!==void 0);return T.map((ot,nt)=>{if(ot<0)return{y:null};const{value:st,blur:pt,color:ht,rawValue:ut,xValue:ft}=d[ot];if(F)return Nt(kt({name:F[ot],y:st,color:ht!=null?ht:K==null?void 0:K[ot]},tt&&!pt&&{selected:!0}),{custom:{rawValue:ut,xValue:ft}});{const B=Ih(d,T,ot,nt),it=B||tt,W={enabled:!pt,isIsolatedPoint:B};return Nt(kt(kt({y:isNaN(+st)?st:+st,selected:!!pt},it&&{marker:W}),ht&&{color:ht}),{custom:{rawValue:ut,xValue:ft}})}})},Pm=(d,T,F=.1)=>{const tt=Math.abs(T-d)*F/2;return{min:d<0?d-tt:d,max:T>=0?T+tt:T}},Js=(d,T)=>{const F=kt({},T);return d.min&&d.min>=F.max&&(F.max=d.min*(d.min>=0?2:.5)),d.max&&d.max<=F.min&&(F.min=d.max*(d.max>=0?.5:2)),F},Qs=(d,T)=>{const F=kt({},T);return F.min<=0||(d==="column"||d==="bar")&&(F.min=0),F},Lm=(d,T,F,K,tt,ot)=>{const nt=T.series.map((ft,B)=>Nt(kt({},ft),{data:ft.data.map(R=>{var H=R,{value:it}=H,W=Te(H,["value"]);return kt({value:isNaN(it)&&tt[B]?0:it},W)})})).filter((ft,B)=>K[B]===ot),{stacking:st}=jh(d,F),pt=ot===0?F.yAxis:F.y2Axis||{min:void 0,max:void 0},ht=Qa(d)&&F.polarType!=="line";if(st==="percent")return{min:0,max:100};if(st==="normal"||ht){const ft=Array.from(Array(T.xValues.length),()=>({plus:0,minus:0}));let it=nt.reduce((W,R)=>(R.data.forEach(({value:H},V)=>{H<0?W[V].minus+=H||0:W[V].plus+=H||0}),W),ft).reduce((W,R)=>({min:Math.min(W.min,R.minus),max:Math.max(W.max,R.plus)}),{min:Number.MAX_VALUE,max:Number.MIN_VALUE});return it=Js(pt,it),it=Qs(d,it),F.seriesLabels&&(it=Pm(pt.min||it.min,pt.max||it.max)),it}let ut=nt.reduce((ft,B)=>{const it=B.data.map(({value:W})=>W).filter(W=>!isNaN(W));return{min:Math.min(ft.min,...it),max:Math.max(ft.max,...it)}},{min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY});return ut=Js(pt,ut),ut=Qs(d,ut),ut},Em=d=>d.length<=1?!0:d.filter(({enabled:F})=>F).length<=1,Om=(d,T)=>{if(!(!d.chartType||d.chartType==="auto"||T))return d.chartType},Bh=d=>d?1:0,$o=d=>!!d,Ao=(d,T)=>Array(T).fill(d),Dm=d=>{if(d.length===0)return[[0],[void 0],[!1],[!1]];const T=Em(d),F=d.map(({showOnRightAxis:nt})=>Bh(nt)),K=d.map(nt=>Om(nt,T)),tt=d.map(({treatNullDataAsZeros:nt})=>$o(nt)),ot=d.map(({connectNulls:nt})=>$o(nt));return[F,K,tt,ot]},jm=(d,T)=>{const F=d[0],K=Bh(F==null?void 0:F.showOnRightAxis),tt=F?$o(F.treatNullDataAsZeros):void 0,ot=F?$o(F.connectNulls):void 0;return[Ao(K,T),Ao(void 0,T),Ao(tt,T),Ao(ot,T)]},Im=(d,T)=>{if(d.type!=="cartesian")return[[],[],[],[]];const F=T,{y:K,breakBy:tt}=F;return tt.length>0?jm(K,d.series.length):Dm(K)},sr=(d,T)=>{var F,K;if(d.breakBy.length===0){if(d.y.length===0)return ii;const tt=(F=d.y.find(ot=>ot.column.name===T))==null?void 0:F.color;return gl(tt)}else return(K=d.seriesToColorMap)==null?void 0:K[T]},Nm=(d,T,F,K,tt)=>{const ot=Di("boxplot",T),{series:nt,alerts:st}=Cm(d,T,tt==null?void 0:tt.palette.variantColors),pt=d.xValues.map(ut=>ut.key);return{options:{title:{text:null},chart:{type:ot,spacing:[25,20,20,20],polar:!1,zooming:{type:"x"},events:{load:function(){var it;const ut=this,ft=ut.chartWidth,B=Oh(ot,T.autoZoom.enabled,d.xValues.length,ft);if(B.enabled&&((it=T.autoZoom)!=null&&it.scrollerLocation)){const{min:W,max:R}=T.autoZoom.scrollerLocation;Dh(ut,W,R)}ut.update({navigator:B},!0)},selection:ut=>{ut.preventDefault()}}},legend:ui(T.legend),xAxis:vm(T.xAxis,pt,F.category),yAxis:bm(T.yAxis,d,F.whiskerMax),series:nt,plotOptions:xm(T.seriesLabels),tooltip:wm(F,K)},alerts:st}},_h=d=>Nt(kt({enabled:d.enabled,radius:!d.enabled||d.size==="small"?4:7,fillColor:!d.enabled||d.fill==="full"?null:oi,lineColor:null,lineWidth:2,symbol:"circle",fillOpacity:.3},!d.enabled&&{symbol:"circle"}),{states:{hover:{fillColor:oi,radius:d.size==="small"?6:9,lineWidth:3}}});function Rh(d){const{x1Value:T,x2Value:F}=d;return ai(Ga,{children:[se("div",{style:{fontSize:"10px",color:"#666",marginTop:"6px"},children:F||T?se("hr",{className:"csdk-border-t",style:{margin:"7px 0px"}}):""}),F||"",F&&T?se("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"18",viewBox:"0 0 24 24",style:{display:"inline-block"},children:se("path",{fill:"#5B6372",fillRule:"nonzero",d:"M6.84 8.5l-2.72-3.175a.5.5 0 1 1 .76-.65l2.998 3.5a.5.5 0 0 1 0 .65l-2.998 3.5a.5.5 0 1 1-.76-.65l2.72-3.175z"})}):"",T||""]})}function mi(d){const{name:T,value:F}=d;return se("div",{style:{display:"table-row-group"},children:ai("div",{style:{display:"table-row",height:"18px"},children:[se("div",{style:{display:"table-cell",overflow:"hidden",textOverflow:"ellipsis",wordWrap:"normal",wordBreak:"keep-all",whiteSpace:"nowrap"},children:T}),se("div",{style:{display:"table-cell",paddingLeft:"15px",fontWeight:"600"},children:F.map((K,tt)=>se("div",{children:K},tt))})]})})}function zh(d){const{prefix:T,title:F}=d;return ai("div",{style:{display:"flex",marginBottom:"5px"},children:[se("div",{style:{flexShrink:0},children:T}),se("div",{style:{marginLeft:"5px",fontWeight:600,overflow:"hidden",textOverflow:"ellipsis",wordWrap:"normal",wordBreak:"keep-all",whiteSpace:"nowrap"},children:F})]})}function Bm(d){const{t:T}=Qr(),F=d.translate||T,{confidenceValue:K,lowerValue:tt,forecastValue:ot,upperValue:nt,title:st,x1Value:pt,x2Value:ht}=d;return ai("div",{style:{color:nn,fontSize:"13px",lineHeight:"18px",margin:"4px 6px"},children:[se(zh,{prefix:F("advanced.tooltip.forecast"),title:st}),ai("div",{style:{display:"table"},children:[se(mi,{name:F("advanced.tooltip.forecastValue"),value:[ot]}),se(mi,{name:F("advanced.tooltip.max"),value:[nt]}),se(mi,{name:F("advanced.tooltip.min"),value:[tt]}),se(mi,{name:F("advanced.tooltip.confidenceInterval"),value:[K]})]}),se(Rh,{x1Value:pt,x2Value:ht})]})}const _m=d=>ua.renderToString(se(Bm,kt({},d))),Rm={smooth:"Advanced Smoothing",linear:"Linear Trend",local:"Local Estimates",logarithmic:"Logarithmic Trend"};function zm(d){const{t:T}=Qr(),F=d.translate||T,{localValue:K,trendData:tt,modelType:ot,title:nt,x1Value:st,x2Value:pt}=d,ht=[`${F("advanced.tooltip.trendData.min")} ${tt.min}`,`${F("advanced.tooltip.trendData.max")} ${tt.max}`,`${F("advanced.tooltip.trendData.median")} ${tt.median}`,`${F("advanced.tooltip.trendData.average")} ${tt.average}`];return ai("div",{style:{color:nn,fontSize:"13px",lineHeight:"18px",margin:"4px 6px"},children:[se(zh,{prefix:F("advanced.tooltip.trend"),title:nt}),ai("div",{style:{display:"table"},children:[se(mi,{name:F("advanced.tooltip.trendType"),value:[Rm[ot]]}),se(mi,{name:F("advanced.tooltip.trendLocalValue"),value:[K]}),se(mi,{name:F("advanced.tooltip.trendDataKey"),value:ht})]}),se(Rh,{x1Value:st,x2Value:pt})]})}const Fm=d=>ua.renderToString(se(zm,kt({},d))),Fh=function(d,T,F){var z,I,E,M,P,y,h,f,m,u,v,w;const K=d.percentage?`${Math.round(d.percentage)}`:void 0,tt=T,ot=tt.breakBy.length>0?(z=tt.y)==null?void 0:z.find(S=>S.enabled):(I=tt.y)==null?void 0:I.find(S=>S.column.title===d.series.name),nt=Ah(ot),st=le(ot,d.point.y,""),pt=(P=(M=(E=d.point)==null?void 0:E.custom)==null?void 0:M.xDisplayValue)!=null?P:d.x,ht=tt.x?le(tt.x[0],d.x,pt):pt;let ut;if((y=d.point.custom)!=null&&y.xValue&&(tt!=null&&tt.x)&&tt.x.length===2){const S=`${d.point.custom.xValue[0]}`;ut=le(tt.x[1],S,S)}const ft=st+(nt&&K?` / ${K}%`:""),B=d.point.color||d.series.color,it=Ai(d.point.name||d.series.name),W=Th(d.point.name||d.series.name),R=F&&it?`${d.series.name.substring(10)}`:F&&W?`${d.series.name.substring(7)}`:d.series.name,H=(h=d.point)!=null&&h.low?le(ot,(f=d.point)==null?void 0:f.low,""):"",V=(m=d.point)!=null&&m.high?le(ot,(u=d.point)==null?void 0:u.high,""):"",$=(S,x,c)=>!S||S===""?"":!F||!it&&!W||!x?`<br /${Me(S,c)}`:`<br /><span>${F(x)} </span>${Me(S,c)}`,Z=F?`(+${F("advanced.tooltip.trend")})`:"",U=it?"advanced.tooltip.forecastValue":"";if(W){const S=/modelType=([^"]+)/,x=(v=ot==null?void 0:ot.column)==null?void 0:v.expression.match(S),c=x?x[1]:null,{min:g,max:r,median:a,average:t}=d.point.trend,i=le(ot,g,""),o=le(ot,r,""),e=le(ot,a,""),s=le(ot,t,"");return Fm({title:R,modelType:c,trendData:{min:i,max:o,median:e,average:s},localValue:ft,x1Value:ht,x2Value:ut,translate:F})}if(it){const S=/confidenceInterval=([^"]+)/,x=(w=ot==null?void 0:ot.column)==null?void 0:w.expression.match(S),c=x?x[1]:"0.8",g=(parseFloat(c)*100).toFixed(0)+"%";return _m({title:R,confidenceValue:g,forecastValue:ft,x1Value:ht,x2Value:ut,translate:F,upperValue:V,lowerValue:H})}return xi(`
40
+ ${R.replace(Z,"")}
41
+ ${$(ft,U,B)}
42
+ ${$(V,"advanced.tooltip.max",B)}
43
+ ${$(H,"advanced.tooltip.min",B)}
44
+ ${ut||ht?ei():""}
45
+ ${ut||""}
46
+ ${ut&&ht?`
47
+ <svg xmlns="http://www.w3.org/2000/svg" width="12" height="18" viewBox="0 0 24 24" style="display: inline-block">
48
+ <path
49
+ fill="#5B6372"
50
+ fillRule="nonzero"
51
+ d="M6.84 8.5l-2.72-3.175a.5.5 0 1 1 .76-.65l2.998 3.5a.5.5 0 0 1 0 .65l-2.998 3.5a.5.5 0 1 1-.76-.65l2.72-3.175z"
52
+ />
53
+ </svg>
54
+ `:""}
55
+ ${ht||""}
56
+ `)},Gh=(d,T)=>({animation:!1,backgroundColor:oi,borderColor:ii,borderRadius:10,borderWidth:1,useHTML:!0,formatter:function(){return Fh(this,d,T)}}),Vr={enabled:!0,types:{count:!1,relative:!0,totals:!0}},Gm=(d,T)=>function(){var ot,nt,st;const F=this.y===0&&this.x===" ";if(this.y===void 0||isNaN(this.y)||F)return"";let K="";const tt=(ot=T==null?void 0:T.showValue)!=null?ot:!0;return tt&&(K+=Ce(he(d),this.y)),tt&&(T!=null&&T.showPercentage)&&this.percentage!==void 0&&(K+=" / "),T!=null&&T.showPercentage&&this.percentage!==void 0&&(K+=`${Math.round(this.percentage)}%`),`${(nt=T==null?void 0:T.prefix)!=null?nt:""}${K}${(st=T==null?void 0:T.suffix)!=null?st:""}`},In=d=>{const T=Math.abs(d)%180;return T<20?"horizontal":T<60?"diagonal":T<120?"vertical":T<160?"diagonal":"horizontal"},Wm=(d,T,F)=>{var ot;if(!(T!=null&&T.enabled))return{enabled:!1};const K=kt(Nt(kt({},Vr),{align:"center",verticalAlign:"middle",rotation:(ot=T.rotation)!=null?ot:0}),Ve(T));if(F)return K;const tt=In(K.rotation);if(d==="vertical")return kt(Nt(kt({},K),{align:tt==="horizontal"?"left":"center"}),Ve(T));switch(tt){case"horizontal":return kt(Nt(kt({},K),{verticalAlign:"bottom",padding:5}),Ve(T));case"diagonal":return kt(Nt(kt({},K),{align:"left",y:-10,x:-2}),Ve(T));case"vertical":return kt(Nt(kt({},K),{align:"left",y:-10}),Ve(T))}},Xm=(d,T)=>{var tt,ot;if(!d)return{enabled:!1};const F=(tt=d.rotation)!=null?tt:0,K=(ot=d.enabled)!=null?ot:Vr.enabled;return kt(Nt(kt({},Vr),{verticalAlign:T==="line"?"bottom":"middle",rotation:F,align:In(F)==="vertical"?"left":"center",padding:5}),Ve(Nt(kt({},d),{enabled:K})))},Hm=(d,T)=>{const F=d;if(F.x.length!==2)return T;const{categories:K,indexMap:tt,plotBands:ot}=T,nt=F.x[1],st=F.x[0],pt=he(nt==null?void 0:nt.numberFormatConfig),ht=he(st==null?void 0:st.numberFormatConfig);let ut=K;nt&&Rt.isNumber(nt.column.type)&&(ut=K.map(B=>Ce(pt,parseFloat(B))));let ft=ot;return st&&Rt.isNumber(st.column.type)&&(ft=ot.map(B=>{const it=Ce(ht,parseFloat(B.text));return Nt(kt({},B),{text:it})})),{categories:ut,indexMap:tt,plotBands:ft}},Ym=(d,T)=>{const{stackType:F}=T;return F==="classic"&&(Zl(d)||Sf(d))},Um=d=>{const{xValues:T,xAxisCount:F}=d;return F!==2||T.length===0},Mr=(d,T)=>({plotBands:[],indexMap:d.map((F,K)=>K),categories:T}),Vm=(d,T,F,K)=>{const{xValues:nt}=d,{y:st}=T;if(Ym(T,F))return Mr(nt,st.map(R=>xe(R)));if(K)return Mr(nt,nt.map(yh).map(R=>`${R}`));if(Um(d))return Mr(nt,nt.map(R=>R.xValues[0]));const pt=[],ht=[],ut=[];let ft=nt[0].xValues[0],B=-.5;nt.map((R,H)=>{const V=R.xValues[1],$=R.xValues[0];if($!==ft){pt.push(-1);const Z=pt.length-1;ut.push(" "),ht.push({text:ft,from:B,to:Z}),B=Z,ft=$}return pt.push(H),ut.push(V),R.xValues[1]});const it=nt.length-1,W=nt[it].xValues[0];return ht.push({text:W,from:B,to:pt.length-.5}),{categories:ut,indexMap:pt,plotBands:ht}},$m=d=>{switch(d){case Rt.DateLevels.Years:return 31536e6;case Rt.DateLevels.Quarters:return 7884e6;case Rt.DateLevels.Months:return 2592e6;case Rt.DateLevels.Weeks:return 6048e5;case Rt.DateLevels.Days:return 864e5;case Rt.DateLevels.AggHours:case Rt.DateLevels.Hours:return 36e5;case Rt.DateLevels.AggMinutesRoundTo30:case Rt.DateLevels.MinutesRoundTo30:return 18e5;case Rt.DateLevels.AggMinutesRoundTo15:case Rt.DateLevels.MinutesRoundTo15:return 9e5;case Rt.DateLevels.AggMinutesRoundTo1:return 6e4}return console.warn("Unsupported level"),0},Zm=(d,T)=>{const F=yn(d),K=(d==null?void 0:d.dateFormat)||Dn(F);return!T||!K?tt=>`${tt}`:function(tt){return T(new Date(tt),K)}},Km=(d,T,F,K)=>{const tt=yn(T),ot=(B,it)=>B.lastValue?{minInterval:Math.min(it-B.lastValue,B.minInterval),lastValue:it}:Nt(kt({},B),{lastValue:it}),nt=F[0],st=F[F.length-1];let pt=tt?$m(tt):F.reduce(ot,{minInterval:(st-nt)/(F.length-1),lastValue:void 0}).minInterval;if(pt<30*864e5&&pt>25*864e5&&(pt=2592e6),F.length>1&&(isNaN(pt)||pt===0))throw new Rt.TranslatableError("errors.ticIntervalCalculationFailed");let ht;const ut=(T==null?void 0:T.dateFormat)||Dn(tt);K&&ut&&(ht=function(){const B=this;return K(new Date(B.value),ut)});const ft={millisecond:"%A, %b %e, %H:%M:%S.%L",second:"%A, %b %e, %H:%M:%S",minute:"%A, %b %e, %H:%M",hour:"%A, %b %e, %H:%M",day:"%A, %b %e, %Y",week:"Week from %A, %b %e, %Y",month:"%B %Y",year:"%Y"};return[Be(Fr,{type:"datetime",title:{enabled:d.enabled&&d.titleEnabled,text:d.title},dateTimeLabelFormats:ft,gridLineDashStyle:"Dot",gridLineWidth:d.enabled&&d.gridLine?1:0,gridLineColor:Ae,tickWidth:0,lineColor:Ae,lineWidth:1,labels:Nt(kt({},ht&&{formatter:ht}),{overflow:"none",enabled:d.enabled&&d.labels,autoRotation:[-10,-20,-30,-40,-50,-60,-70,-80,-90],style:we}),min:nt,max:st,tickInterval:pt,minTickInterval:pt,tickmarkPlacement:"on",startOnTick:!0,endOnTick:!0,startOfWeek:4,showFirstLabel:!0,showLastLabel:!0,minRange:pt,isDate:!0})]},qm=(d,T,F,K,tt,ot)=>{const nt=(K||[]).map(ft=>({isPlotBand:!0,from:ft.from,to:ft.to,label:kt({text:ft.text,y:-5,style:Nt(kt({},we),{width:"70px",textOverflow:"ellipsis"})},tt==="vertical"&&{align:"right",x:5,textAlign:"left",y:0})})),st=(K||[]).filter(ft=>ft.from>0).map(ft=>({color:"#C0D0E0",dashStyle:"shortDot",width:1,value:ft.from})),pt=ot,ht=pt.x[pt.x.length-1];let ut=[Be(Fr,{type:d.type,title:{enabled:d.enabled&&d.titleEnabled,text:d.title},gridLineDashStyle:"Dot",gridLineWidth:d.enabled&&d.gridLine?1:0,gridLineColor:Ae,tickWidth:0,lineColor:Ae,lineWidth:1,labels:{enabled:d.enabled&&d.labels,style:we,formatter:function(){const ft=this;return!ht||!Rt.isNumber(ht==null?void 0:ht.column.type)||isNaN(parseFloat(ft.value))?ft.value:Ce(he(ht==null?void 0:ht.numberFormatConfig),parseFloat(ft.value))}},min:d.min,max:d.max,tickInterval:d.tickInterval,categories:F,plotBands:nt,plotLines:st,tickmarkPlacement:"on"})];return T&&(ut=ut.concat(Be(Fr,{title:{enabled:T.enabled&&T.titleEnabled,text:T.title},categories:F,opposite:!0,gridLineWidth:0,tickWidth:0,lineWidth:0}))),ut},Jm=(d,T,F)=>{const K=[{minClipped:!!(d.enabled&&d.min),maxClipped:!!(d.enabled&&d.max)}];return F&&K.push({minClipped:!!(T!=null&&T.enabled&&T.min),maxClipped:!!(T!=null&&T.enabled&&T.max)}),K},Wh=(d,T,F,K,tt,ot)=>{var ft,B,it,W;const nt=tt,st=he((ft=nt.y.find(({showOnRightAxis:R})=>!R))==null?void 0:ft.numberFormatConfig),pt=he((B=nt.y.find(({showOnRightAxis:R})=>R))==null?void 0:B.numberFormatConfig);function ht(R){return function(){return Ce(R,this.value)}}const ut=[Be(Rs,Nt(kt(kt({type:d.type,title:{enabled:d.enabled&&d.titleEnabled,text:d.title},gridLineDashStyle:"Dot",gridLineWidth:d.enabled&&d.gridLine?1:0,gridLineColor:Ae,tickWidth:0,lineColor:Ae,lineWidth:1,labels:{enabled:d.enabled&&d.labels,style:we,formatter:ht(st)},startOnTick:!(d.enabled&&d.min)},d.min&&{minPadding:0}),d.max&&{maxPadding:0}),{min:d.enabled?(it=d.min)!=null?it:F.min:null,max:d.enabled?(W=d.max)!=null?W:F.max:null,tickInterval:d.enabled?d.tickInterval:null,stackLabels:{enabled:!1,formatter:ht(st),style:kt(kt({},io),ot?{color:ot.typography.primaryTextColor}:null),rotation:0}}))];if(K){const R={startOnTick:!(T!=null&&T.enabled&&T.min),min:T!=null&&T.enabled?T.min||K.min:null,max:T!=null&&T.enabled?T.max||K.max:null},H=T!=null&&T.enabled?{opposite:!0,gridLineWidth:0,title:{enabled:T.enabled&&T.titleEnabled,text:T.title},labels:{enabled:T.enabled&&T.labels,style:we,formatter:ht(pt)},tickInterval:T.enabled?T.tickInterval:null,stackLabels:{enabled:!1,formatter:ht(pt),style:kt(kt({},io),ot?{color:ot.typography.primaryTextColor}:null),rotation:0}}:{visible:!1};ut.push(Be(Rs,kt(kt({},R),H)))}return ut},Xh=d=>{const{enabled:T,rotation:F,align:K,verticalAlign:tt,delay:ot,backgroundColor:nt,borderColor:st,borderRadius:pt,borderWidth:ht,textStyle:ut,xOffset:ft,yOffset:B}=d!=null?d:{},R=ut!=null?ut:{},{align:it}=R,W=Te(R,["align"]);return bi({enabled:T!=null?T:!1,rotation:F,align:K,textAlign:it,verticalAlign:tt,animation:ot!==void 0?{defer:ot}:void 0,backgroundColor:vi(nt),borderColor:vi(st),borderRadius:pt,borderWidth:ht,style:W,x:ft,y:B})},Qm=d=>d.map(T=>Nt(kt({},T),{title:Nt(kt({},T.title),{textAlign:"center",align:"high",y:-25})})),ty=d=>d.map(T=>Nt(kt({},T),{labels:Nt(kt({},T.labels),{rotation:0})})),Hh=rr(Qm,ty),ey=d=>T=>{var ut,ft;const{stacking:F,totalLabels:K={enabled:!1},dataOptions:tt,themeSettings:ot}=d;if(!K.enabled&&!F)return T;const nt=tt,st=he((ut=nt.y.find(({showOnRightAxis:B})=>!B))==null?void 0:ut.numberFormatConfig),pt=he((ft=nt.y.find(({showOnRightAxis:B})=>B))==null?void 0:ft.numberFormatConfig);function ht(B,it,W=!1){return function(){const R=typeof this.value=="number"?this.value:parseFloat(this.value),H=W&&this.total||R,V=Ce(B,H);return it==="percent"?`${V}%`:V}}return T.map((B,it)=>{const R=it===1?pt:st;return Nt(kt({},B),{labels:F?Nt(kt({},B.labels),{formatter:ht(R,F)}):B.labels,stackLabels:K.enabled?Nt(kt(kt({},B.stackLabels),Xh(K)),{formatter:ht(R,"normal",!0),style:kt(kt({},io),ot?{color:ot.typography.primaryTextColor}:null),crop:!0,allowOverlap:!1,labelrank:99999}):B.stackLabels})})},iy=d=>T=>Qa(d)?Hh(T):T,Yh=d=>d.length===1&&!!d[0].continuous&&Rt.isDatetime(d[0].column.type),Uh=(d,T)=>{const[F,K,tt,ot]=Im(d,T);return{side:F,chartType:K,treatNullAsZero:tt,connectNulls:ot}},oy=(d,T)=>d==="bar"||T.includes("bar")?"vertical":"horizontal",Vh=(d,T,F,K)=>{const{categoriesCapacity:tt}=F.dataLimits,ot=Nt(kt({},d),{xValues:d.xValues.slice(0,tt)}),{categories:nt,indexMap:st,plotBands:pt}=Hm(T,Vm(ot,T,F,K));return{categories:nt,indexMap:st,plotBands:pt}},$h=({designOptions:d,dataOptions:T,chartData:F,categoriesMeta:K,orientation:tt,isContinuous:ot,dateFormatter:nt})=>ot?Km(d.xAxis,T.x[0],F.xValues.map(yh),nt):qm(d.xAxis,d.x2Axis,K.categories,K.plotBands,tt,T),$r=(d,T,F,K,tt,ot)=>Lm(T,F,K,tt,ot,d),ry=(d,T)=>jh(d,T),ny=d=>Nt(kt({},d),{yAxis:Nt(kt({},d.yAxis),{titleEnabled:!1,title:null})}),sy=(d,T,F,K,tt,ot,nt)=>{const st=Wh(d,T,F,K,ot,nt);return{settings:ey({stacking:tt.stacking,totalLabels:tt.totalLabels,dataOptions:ot,themeSettings:nt})(st),clipped:Jm(d,T,K)}},Zh=d=>d.some(T=>T===1),ay=(d,T)=>F=>{var K,tt;return F.stackLabels?Nt(kt({},F),{stackLabels:Nt(kt({},F.stackLabels),{x:((K=F.stackLabels.x)!=null?K:0)+d,y:((tt=F.stackLabels.y)!=null?tt:0)+T})}):F},ly=(d,T)=>F=>{var ot;if(!((ot=F.plotBands)!=null&&ot.length))return F;const K=15,tt=F.plotBands.map(nt=>{var ft,B;if(!nt.label)return nt;const st=(ft=nt.label.x)!=null?ft:0,pt=(B=nt.label.y)!=null?B:0,ht=d?d+K:0,ut=T?T+K:0;return Nt(kt({},nt),{label:Nt(kt({},nt.label),{x:st+ht,y:pt-ut})})});return Nt(kt({},F),{plotBands:tt})};function Kh(d){return T=>T.map(ay(d.rightShift,d.topShift))}function qh(d){return T=>T.map(ly(d.totalLabelRightSpacing,d.totalLabelTopSpacing))}function hy(d,T,F){const K=d==="area"&&F!==void 0,tt="polarType"in T?T.polarType:void 0;return{treatNullDataAsZeros:K,isPolarChart:!!tt,polarType:tt}}const ta=20,ri={HORIZONTAL:20,DIAGONAL:70,VERTICAL:110,INVERTED_DIAGONAL:160},ea={X_AXIS_VERTICAL_RIGHT:70,X_AXIS_HORIZONTAL_TOP:20},ia={TOP_DIVISOR:2,RIGHT_SHIFT:.1},cy={RIGHT_MARGIN:80},py={FULL_ROTATION:180};function Nn(d,T){var tt;let F=0,K=0;if((tt=T.totalLabels)!=null&&tt.enabled&&T.stackType==="stack100"){const ot=Math.abs(T.totalLabels.rotation||0)%py.FULL_ROTATION;d==="bar"&&(ot<ri.HORIZONTAL?F=40:ot<ri.DIAGONAL?F=25:ot<ri.VERTICAL?F=15:ot<ri.INVERTED_DIAGONAL?F=25:F=40),(d==="column"||d==="area")&&(ot<ri.HORIZONTAL?K=10:ot<ri.DIAGONAL?K=30:ot<ri.VERTICAL?K=40:ot<ri.INVERTED_DIAGONAL?K=30:K=10)}return{rightSpacing:F,topSpacing:K}}function dy(d,T){const{rightSpacing:F,topSpacing:K}=Nn(d,T);let tt=0,ot=0;return K>0&&(ot=-1*(K/ia.TOP_DIVISOR)),F>0&&(tt=ia.RIGHT_SHIFT),{rightShift:tt,topShift:ot}}function uy(d){const{chartData:T,chartDesignOptions:F,xAxisOrientation:K}=d,tt=!Ln(F.legend)&&T.xAxisCount>1&&K==="vertical"?ea.X_AXIS_VERTICAL_RIGHT:0,ot=T.xAxisCount>1&&K==="horizontal"?ea.X_AXIS_HORIZONTAL_TOP:0;return{rightSpacing:tt,topSpacing:ot}}function fy(d){const{chartType:T,chartDesignOptions:F}=d;return Nn(T,F)}function gy(d){const T=uy(d),F=fy(d),K=dy(d.chartType,d.chartDesignOptions),tt=ta+F.topSpacing+T.topSpacing,ot=ta+F.rightSpacing+T.rightSpacing;return{totalTopSpacing:tt,totalRightSpacing:ot,rightShift:K.rightShift,topShift:K.topShift}}function my(d,T,F){var K,tt;if(d==="bar"&&T.x.length>1&&Ln(F.legend))return{margin:(tt=(K=F.legend)==null?void 0:K.margin)!=null?tt:cy.RIGHT_MARGIN}}function yy(d){const{chartData:T,chartDesignOptions:F,dataOptions:K,continuousDatetimeXAxis:tt,indexMap:ot,categories:nt,treatNullDataAsZeros:st,yTreatNullDataAsZeros:pt,yConnectNulls:ht,yAxisSide:ut,yAxisChartType:ft,yAxisSettings:B,axisClipped:it,xAxisSettings:W,stacking:R,themeSettings:H,dateFormatter:V}=d,{seriesCapacity:$}=F.dataLimits;return T.series.slice(0,$).map((Z,U)=>{var P,y,h,f,m,u,v,w,S;const z=vy(K,Z.name),I=z==null?void 0:z.column.name,E=by(F,I),M=Cy({seriesValue:Z,continuousDatetimeXAxis:tt,indexMap:ot,categories:nt,treatNullDataAsZeros:st,yTreatNullDataAsZeros:pt,index:U,stacking:R,dataOptions:K,chartDesignOptions:F,xAxisSettings:W,yAxisSettings:B,axisClipped:it,dateFormatter:V});return kt(kt(kt(kt(kt(kt(kt(Nt(kt(Nt(kt({},M),{showInNavigator:!0,stickyTracking:!1,boostThreshold:0,turboThreshold:0,color:xy(K,Z.name,H,U),yAxis:ut[U]}),ft[U]&&{type:ft[U]}),{dataLabels:Nt(kt({},Ve(F.seriesLabels)),{formatter:Gm(z==null?void 0:z.numberFormatConfig,F.seriesLabels)}),connectNulls:ht[U],marker:_h(E.marker)}),((P=E.line)==null?void 0:P.width)!==void 0&&{lineWidth:(y=E.line)==null?void 0:y.width}),((h=E.line)==null?void 0:h.dashStyle)!==void 0&&{dashStyle:(f=E.line)==null?void 0:f.dashStyle}),((m=E.line)==null?void 0:m.endCap)!==void 0&&{linecap:(v=(u=E.line)==null?void 0:u.endCap)==null?void 0:v.toLowerCase()}),((w=E.line)==null?void 0:w.shadow)!==void 0&&{shadow:(S=E.line)==null?void 0:S.shadow}),"itemPadding"in F&&F.itemPadding!==void 0&&{pointPadding:F.itemPadding}),"groupPadding"in F&&F.groupPadding!==void 0&&{groupPadding:F.groupPadding}),"borderRadius"in F&&F.borderRadius!==void 0&&{borderRadius:F.borderRadius})})}function vy(d,T){return d.breakBy.length?d.y[0]:d.y.find(({column:{name:F}})=>F===T)}function by(d,T){var tt;return(T?(tt=d.designPerSeries)==null?void 0:tt[T]:void 0)||d}function xy(d,T,F,K){var tt,ot;return(ot=sr(d,T))!=null?ot:He((tt=F==null?void 0:F.palette)==null?void 0:tt.variantColors,K||0)}function Cy(d){const{seriesValue:T,continuousDatetimeXAxis:F,indexMap:K,categories:tt,treatNullDataAsZeros:ot,yTreatNullDataAsZeros:nt,index:st,stacking:pt,dataOptions:ht,chartDesignOptions:ut,xAxisSettings:ft,yAxisSettings:B,axisClipped:it,dateFormatter:W}=d;return F?Mm(T,K,ot||nt[st],ft[0].tickInterval,ut.dataLimits.categoriesCapacity,Zm(ht.x[0],W),B[st],it[st]):Zl(ht)&&!pt?Li(T,Sm(tt,st),ot||nt[st]):Li(T,K,ot||nt[st])}const oa=20,Zo=(d,T,F,K,tt,ot,nt)=>{var m;const st=[];if(d.type!=="cartesian")throw new Rt.TranslatableError("errors.unexpectedChartType",{chartType:d.type});const pt=Di(T,F),{seriesCapacity:ht,categoriesCapacity:ut}=F.dataLimits;d.xValues.length>ut&&st.push(Uo("x",d.xValues.length,ut)),d.series.length>ht&&st.push(Ci(d.series.length,ht));const ft=Yh(K.x),B=Uh(d,K),it=oy(T,B.chartType),W=Vh(d,K,F,ft),R=$h({designOptions:F,dataOptions:K,chartData:d,categoriesMeta:W,orientation:it,isContinuous:ft,dateFormatter:nt}),H=$r(0,T,d,F,B.side,B.treatNullAsZero),V=Zh(B.side)?$r(1,T,d,F,B.side,B.treatNullAsZero):void 0,$=ry(T,F),Z=sy(F.yAxis,F.y2Axis,H,V,$,K,ot),U=gy({chartType:T,chartData:d,chartDesignOptions:F,xAxisOrientation:it}),z=hy(T,F,$.stacking),I=F,{rightSpacing:E,topSpacing:M}=(m=I.totalLabels)!=null&&m.enabled&&I.stackType==="stack100"?Nn(T,I):{rightSpacing:0,topSpacing:0},P=rr(iy(T),qh({totalLabelRightSpacing:E,totalLabelTopSpacing:M}))(R),y=Kh({rightShift:U.rightShift,topShift:U.topShift})(Z.settings),h=yy({chartData:d,chartType:T,chartDesignOptions:F,dataOptions:K,continuousDatetimeXAxis:ft,indexMap:W.indexMap,categories:W.categories,treatNullDataAsZeros:z.treatNullDataAsZeros,yTreatNullDataAsZeros:B.treatNullAsZero,yConnectNulls:B.connectNulls,yAxisSide:B.side,yAxisChartType:B.chartType,yAxisSettings:y,axisClipped:Z.clipped,xAxisSettings:P,stacking:$.stacking,themeSettings:ot,dateFormatter:nt});return{options:Be(ig(T,z.polarType,$.stacking),{title:{text:null},chart:{type:pt,spacing:[U.totalTopSpacing,U.totalRightSpacing,oa,oa],alignTicks:!1,polar:z.isPolarChart,events:{load:function(){var x;if(K.x.length===2)return;const u=this,v=u.chartWidth,w=u.chartHeight,S=Oh(pt,F.autoZoom.enabled,d.xValues.length,T==="bar"?w:v,T==="bar");if(S.enabled&&((x=F.autoZoom)!=null&&x.scrollerLocation)){const{min:c,max:g}=F.autoZoom.scrollerLocation;Dh(u,c,g)}u.update({navigator:S},!0)}}},xAxis:P,yAxis:y,legend:kt(kt({},ui(F.legend)),my(T,K,F)),series:h,plotOptions:{series:kt({dataLabels:z.isPolarChart?Xm(F.seriesLabels,z.polarType):Wm(it,F.seriesLabels,!!($.stacking&&T!=="area")),marker:_h(F.marker),stacking:$.stacking||void 0,connectNulls:!1},T==="line"&&F.step&&{step:F.step})},tooltip:Gh(K,tt)}),alerts:st}},wy=(d,T,F)=>{var it,W,R;const K=d.percentage?T?d.percentage.toFixed(1):`${Math.round(d.percentage)}`:void 0,tt=F,nt=he((()=>{var V,$,Z;const H=(V=tt.y)==null?void 0:V.find(U=>U.column.name===d.series.name);if(H!=null&&H.numberFormatConfig)return H.numberFormatConfig;if(tt.breakBy.length>0)return(Z=($=tt.y)==null?void 0:$.find(U=>U.enabled))==null?void 0:Z.numberFormatConfig})()),st=(R=(W=(it=d.point)==null?void 0:it.custom)==null?void 0:W.xDisplayValue)!=null?R:d.x,pt=yi(nt,d.y)+(K?` / ${K}%`:""),ht=d.point.color||d.series.color,ut=d.series.name||"",ft=d.point.name||"";return xi(`
57
+ ${ut}
58
+ ${ut&&ft?" - ":""}
59
+ ${ft}
60
+ <br />
61
+ ${Me(pt,ht)}
62
+ ${st?ei()+st:""}
63
+ `)},Bn=(d,T)=>({animation:!1,backgroundColor:oi,borderColor:ii,borderRadius:10,borderWidth:1,useHTML:!0,formatter:function(){return wy(this,d,T)}}),Jh=(d,T,F,K)=>{let tt;const ot=Qh(d,F),{seriesCapacity:nt}=F.dataLimits;if(d.xAxisCount===0){const st=d.series.slice(0,nt),pt=st.map(ht=>{var ut;return(ut=ht.title)!=null?ut:ht.name});tt=[{name:"",data:st.map(ht=>Li(ht,[0],!1,pt).data).flat().map((ht,ut)=>{var ft;return Nt(kt({},ht),{name:pt[ut],color:(ft=sr(T,st[ut].name))!=null?ft:He(K==null?void 0:K.palette.variantColors,ut)})}),boostThreshold:0,turboThreshold:0}],ra(tt[0])}else{const st=d.xValues.slice(0,nt).map(ut=>ut.xValues.join(",")),pt=st.map((ut,ft)=>ft),ht=st.map((ut,ft)=>{var B,it,W;return(W=(B=T.seriesToColorMap)==null?void 0:B[ut])!=null?W:He((it=K==null?void 0:K.palette)==null?void 0:it.variantColors,ft)});tt=d.series.map(ut=>Nt(kt({},ra(Li(ut,pt,!1,st,ht))),{boostThreshold:0,turboThreshold:0}))}return{series:tt,alerts:ot}};function Qh(d,T){const F=[],{seriesCapacity:K}=T.dataLimits;return d.xAxisCount===0?d.series.length>K&&F.push(Ci(d.series.length,K)):d.xValues.length>K&&F.push(Ci(d.xValues.length,K)),F}function ra(d){let T=0;const F=d.data.map((K,tt)=>{const ot=K.y;return tt===0&&(T=ot),K.custom=Nt(kt({},K.custom),{number1:Af(T,ot)}),K});return Nt(kt({},d),{data:F})}const Sy=(d,T,F,K)=>{var ht;const tt=[],ot=Di("funnel",T),{series:nt,alerts:st}=Jh(d,F,T,K);return tt.push(...st),{options:{title:{text:null},chart:{type:ot,spacing:[30,30,30,30],alignTicks:!1,polar:!1},xAxis:[],yAxis:[],legend:ui(T.legend),series:nt,plotOptions:uh(T,F,K),tooltip:Bn((ht=T.funnelLabels)==null?void 0:ht.showDecimals,F)},alerts:tt}},tc="Other",ec="Others",My="#525A6B",ic=(d,T)=>{var F;return d+((F=T.y)!=null?F:0)},na=(d,T,F)=>{var K;return((K=d.y)!=null?K:0)/T>=F},oc=d=>[{name:tc,id:ec,data:[...d],type:"pie"}],rc=d=>({y:d.reduce(ic,0),name:tc,color:My,sliced:!1,drilldown:ec}),nc=({convolution:d})=>({series:T,convolutionSeries:F})=>{if((d==null?void 0:d.minimalIndependentSlicePercentage)===void 0||T.length===0)return{series:T,convolutionSeries:F};const K=d.minimalIndependentSlicePercentage/100,tt=T[0].data.reduce(ic,0),ot=T[0].data.filter(pt=>na(pt,tt,K)),nt=T[0].data.filter(pt=>!na(pt,tt,K));return nt.length===0?{series:T,convolutionSeries:F}:{series:[Nt(kt({},T[0]),{data:[...ot,rc(nt)]}),...T.slice(1)],convolutionSeries:oc(nt)}},sc=({convolution:d})=>({series:T,convolutionSeries:F})=>{if((d==null?void 0:d.independentSlicesCount)===void 0||T.length===0)return{series:T,convolutionSeries:F};const K=d.independentSlicesCount,tt=T[0].data.map((ft,B)=>Nt(kt({},ft),{index:B})).sort((ft,B)=>{var it,W;return((it=B.y)!=null?it:0)-((W=ft.y)!=null?W:0)}),ot=tt.slice(0,K);if(tt.slice(K).length===0)return{series:T,convolutionSeries:F};const st=new Set(ot.map(ft=>ft.index)),pt=T[0].data.filter((ft,B)=>st.has(B)),ht=T[0].data.filter((ft,B)=>!st.has(B));return{series:[Nt(kt({},T[0]),{data:[...pt,rc(ht)]}),...T.slice(1)],convolutionSeries:oc(ht)}},ac=(d,T)=>{const F=[];return d.xAxisCount===0?d.series.length>T&&F.push(Ci(d.series.length,T)):d.xValues.length>T&&F.push(Ci(d.xValues.length,T)),F},lc=(d,T,F,K)=>{if(d.xAxisCount===0){const tt=d.series.slice(0,F),ot=tt.map(nt=>{var st;return(st=nt.title)!=null?st:nt.name});return[{name:"",data:tt.map(nt=>Li(nt,[0],!1,ot,void 0,!0).data).flat().map((nt,st)=>{var pt,ht;return Nt(kt({},nt),{sliced:(pt=nt.selected)!=null?pt:!1,name:ot[st],color:(ht=sr(T,tt[st].name))!=null?ht:He(K==null?void 0:K.palette.variantColors,st)})}),boostThreshold:0,turboThreshold:0}]}else{const tt=d.xValues.slice(0,F).map(st=>st.xValues.join(",")),ot=tt.map((st,pt)=>pt),nt=tt.map((st,pt)=>{var ht,ut,ft;return(ft=(ht=T.seriesToColorMap)==null?void 0:ht[st])!=null?ft:He((ut=K==null?void 0:K.palette)==null?void 0:ut.variantColors,pt)});return d.series.map(st=>{const ut=Li(st,ot,!1,tt,nt,!0),{data:pt}=ut,ht=Te(ut,["data"]);return Nt(kt({},ht),{data:pt.map(ft=>{var B;return Nt(kt({},ft),{sliced:(B=ft.selected)!=null?B:!1})}),boostThreshold:0,turboThreshold:0})})}},hc=({chartData:d,dataOptions:T,seriesCapacity:F,convolution:K,themeSettings:tt})=>{const ot=lc(d,T,F,tt);if(!(K!=null&&K.enabled))return ot;const nt=K.selectedConvolutionType==="byPercentage"?nc({convolution:K}):K.selectedConvolutionType==="bySlicesCount"?sc({convolution:K}):pt=>pt,{series:st}=nt({series:ot,convolutionSeries:[]});return st},cc=({chartData:d,dataOptions:T,seriesCapacity:F,convolution:K,themeSettings:tt})=>{if(!(K!=null&&K.enabled))return[];const ot=lc(d,T,F,tt),nt=K.selectedConvolutionType==="byPercentage"?nc({convolution:K}):K.selectedConvolutionType==="bySlicesCount"?sc({convolution:K}):()=>({series:ot,convolutionSeries:[]}),{convolutionSeries:st}=nt({series:ot,convolutionSeries:[]});return st},Ay=(d,T,F,K)=>{const{seriesCapacity:tt}=F.dataLimits,ot=F==null?void 0:F.convolution,nt=ac(d,tt),st=hc({chartData:d,dataOptions:T,seriesCapacity:tt,convolution:ot,themeSettings:K}),pt=cc({chartData:d,dataOptions:T,seriesCapacity:tt,convolution:ot,themeSettings:K});return{series:st,alerts:nt,convolutionSeries:pt}},Ty=(d,T,F,K)=>{var ft,B;const tt=[],ot=Di("pie",T),nt=20,{series:st,convolutionSeries:pt,alerts:ht}=Ay(d,F,T,K);return tt.push(...ht),{options:{title:{text:null},chart:{type:ot,spacing:[nt,20,20,20],alignTicks:!1,polar:!1},xAxis:[],yAxis:[],legend:ui(T.legend),series:st,plotOptions:gh(T.pieType,T.seriesLabels,F,K),tooltip:Bn((B=(ft=T.seriesLabels)==null?void 0:ft.percentageLabels)==null?void 0:B.showDecimals,F),drilldown:{activeDataLabelStyle:{cursor:"pointer",fontWeight:"bold",textDecoration:"none"},series:pt}},alerts:tt}},_n=(d,T,F,K)=>({animation:!1,backgroundColor:oi,borderColor:ii,borderRadius:10,borderWidth:1,padding:1,useHTML:!0,outside:!0,formatter:function(){return Ly(this,d,T,F,K)}}),ky=`
64
+ <div style="position: absolute; top: 100%; right: 40px; z-index: 1">
65
+ <div style="
66
+ border: solid transparent;
67
+ content: ' ';
68
+ height: 0;
69
+ width: 0;
70
+ position: absolute;
71
+ pointer-events: none;
72
+ border-color: rgba(136,136,136,0);
73
+ border-top-color: #ccc;
74
+ border-width: 7px 12px 12px 12px;
75
+ margin-left: -7px;
76
+ "></div>
77
+ <div style="
78
+ border: solid transparent;
79
+ content: ' ';
80
+ height: 0;
81
+ width: 0;
82
+ position: absolute;
83
+ pointer-events: none;
84
+ border-color: rgba(255,255,255,0);
85
+ border-top-color: #fff;
86
+ border-width: 6px 11px 11px 11px;
87
+ margin-left: -6px;
88
+ "></div>
89
+ </div>
90
+ `;function Py(d,T){return d/(T/100)}function To(d,T){return`${Py(d,T).toPrecision(3)}%`}function Ly(d,T,F,K,tt){var it,W,R,H,V,$,Z,U,z,I;if(tt!=null&&tt.shouldSkip&&tt.shouldSkip(d))return!1;const ot=((it=T.y)==null?void 0:it.length)===0,nt=he((R=(W=T.y)==null?void 0:W[0])==null?void 0:R.numberFormatConfig),st=((H=F==null?void 0:F.tooltip)==null?void 0:H.mode)==="contribution",pt=xe((V=T.y)==null?void 0:V[0]),ht=d.color;let ut=0;const ft=[],B=E=>{if(E.parentNode)ft.push(E);else{ut=E.val;return}B(E.parentNode)};return B(d.point.node),`
91
+ <div
92
+ class="csdk-treemap-tooltip-wrapper"
93
+ style="padding-bottom: ${ot?"0":"10px"};"
94
+ >
95
+ ${[...ft].reverse().map((E,M)=>{const P=M===ft.length-1;return`
96
+ <div
97
+ class="csdk-treemap-tooltip-level"
98
+ style="background: ${P?"#f2f2f2":"white"};"
99
+ >
100
+ ${tt!=null&&tt.displayColorCircles?Ey(E.color):""}
101
+ <span
102
+ style="color: ${P?ht:"currentColor"}"
103
+ >${E.name}</span>
104
+ <span
105
+ style="color: ${P?"#5B6372":"currentColor"}; margin-left: auto;"
106
+ >${st?To(E.val,ut):yi(nt,E.val)}</span>
107
+ ${P?"":ky}
108
+ </div>`}).join("")}
109
+ ${ot?"":`<div class="csdk-treemap-tooltip-value">
110
+ <span style="color:${ht}; font-size: 15px">${st?To(ft[0].val,ut):yi(nt,($=ft[0])==null?void 0:$.val)}</span> ${K("treemap.tooltip.of")} ${pt}
111
+ </div>`}
112
+ ${ft[1]?`<div class="csdk-treemap-tooltip-value" style="padding-top: 4px;">
113
+ <span style="color:${ht}; font-size: 15px">${To((Z=ft[0])==null?void 0:Z.val,(U=ft[1])==null?void 0:U.val)}
114
+ </span> ${K("treemap.tooltip.of")} ${(z=ft[1])==null?void 0:z.name}
115
+ </div>`:""}
116
+ ${tt!=null&&tt.displayTotalContribution&&!st?`<div class="csdk-treemap-tooltip-value" style="padding-top: 4px;">
117
+ <span style="color:${ht}; font-size: 15px">${To((I=ft[0])==null?void 0:I.val,ut)}
118
+ </span> ${K("treemap.tooltip.ofTotal")}
119
+ </div>`:""}
120
+ </div>
121
+ </div>`}function Ey(d){return`
122
+ <div style="
123
+ width: 12px;
124
+ height: 12px;
125
+ border-radius: 100%;
126
+ background-color: ${d};
127
+ margin-right: 6px;
128
+ "></div>
129
+ `}const Oy=Object.freeze({1:80,2:70,3:60,4:50});function Dy(d,T,F,K){var nt,st;const tt={level:1,color:(st=(nt=K==null?void 0:K.chart)==null?void 0:nt.backgroundColor)!=null?st:"white",dataLabels:{enabled:!0,useHTML:!0,className:"!csdk-overflow-visible",formatter(){var ut,ft,B,it,W,R;const pt=he((ft=(ut=T.y)==null?void 0:ut[0])==null?void 0:ft.numberFormatConfig),{value:ht}=this.point;return`
130
+ <div style="text-align: center; transform: translateY(calc(-50% + 15px))">
131
+ <div style="color: ${(it=(B=K==null?void 0:K.chart)==null?void 0:B.secondaryTextColor)!=null?it:"#9EA2AB"}; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 18px">${this.point.name}</div>
132
+ ${ei()}
133
+ <div style="
134
+ font-weight: 600;
135
+ font-size: 18px;
136
+ color: ${(R=(W=K==null?void 0:K.chart)==null?void 0:W.textColor)!=null?R:"#5B6372"}
137
+ "
138
+ >${yi(pt,ht)}</div>
139
+ </div>
140
+ `}},levelSize:{unit:"percentage",value:Oy[T.breakBy.length]||50}},ot=Array.from(new Array(d.xAxisCount)).map((pt,ht)=>{var ut,ft,B,it;return{level:ht+2,dataLabels:{enabled:(it=(B=(ft=(ut=F==null?void 0:F.labels)==null?void 0:ut.category)==null?void 0:ft[ht])==null?void 0:B.enabled)!=null?it:!1,formatter(){return`<span style="color: ${ho(Xe(this.color))>.4?"white":"rgb(43, 51, 66)"}">${this.point.name}</span>`}}}});return[tt,...ot]}function Rn(d,T,F){if(!d.series[0])return[];const K=jy(d),tt=d.series[0].data.map(ot=>{var nt,st;return{value:ot.value,name:(nt=ot.xDisplayValue)==null?void 0:nt.slice(-1).toString(),parent:(st=ot.xValue)==null?void 0:st.slice(0,-1).join("_"),custom:Nt(kt({},ot),{level:d.xAxisCount,levelsCount:d.xAxisCount})}});return Iy([...K,...tt],T,F)}function jy(d){const T={};return d.xValues.forEach(F=>{F.rawValues.slice(0,-1).forEach((K,tt)=>{var nt;const ot=F.rawValues.slice(0,tt+1).join("_");T[ot]={id:ot,name:F.xValues[tt],parent:F.rawValues.slice(0,tt).join("_"),custom:{xValues:F.xValues.slice(0,tt+1),rawValues:(nt=F.rawValues)==null?void 0:nt.slice(0,tt+1),level:tt+1,levelsCount:d.xAxisCount}}})}),Object.values(T)}function Iy(d,T,F){const K=T.breakBy.map(ot=>ot.isColored).indexOf(!0)+1,tt=new Map;return d.map(ot=>{var nt;return ot.custom.level===K?(tt.has(ot.name)||tt.set(ot.name,tt.size),Nt(kt({},ot),{color:(nt=sr(T,ot.name))!=null?nt:He(F==null?void 0:F.palette.variantColors,tt.get(ot.name))})):ot})}const Zr="SUNBURST_ROOT_PARENT_ID";function Ny(d,T,F){const K={id:Zr,name:xe(T.y[0]),custom:{level:0,levelsCount:d.xAxisCount}},tt=Rn(d,T,F).map(st=>st.parent===""?Nt(kt({},st),{parent:Zr}):st),ot=Ry(tt),nt=By(ot,T,F);return[K,...nt]}function By(d,T,F){const tt=_y(T),ot=T.breakBy.map(()=>new Map);d.forEach(pt=>{var ut,ft,B,it;const ht=ot[pt.custom.level-1];if(ht){const W=(ut=ht.get(pt.name))!=null?ut:0,R=(it=(B=pt.value)!=null?B:(ft=pt.custom)==null?void 0:ft.subtotalValue)!=null?it:0;ht.set(pt.name,W+R)}});const st=ot.map(pt=>Array.from(pt.entries()).sort(([,ht],[,ut])=>ht-ut).map(([ht])=>ht)).map((pt,ht)=>{var W,R;const ut=new Map,ft=He(F==null?void 0:F.palette.variantColors,ht),B=((R=(W=T.breakBy[ht])==null?void 0:W.color)==null?void 0:R.color)||ft,it=yf(to(B,.3),to(B,-.3),pt.length);return pt.forEach((H,V)=>{ut.set(H,it[V])}),ut});return d.map(pt=>{var ft,B,it;const ht=(B=tt[((ft=pt.custom)==null?void 0:ft.level)||""])==null?void 0:B[(pt==null?void 0:pt.name)||""],ut=(it=st[pt.custom.level-1])==null?void 0:it.get(pt.name);return Nt(kt({},pt),{color:ht||ut})})}function _y(d){return d.breakBy.reduce((T,{column:F},K)=>{var tt;return(tt=d==null?void 0:d.seriesToColorMap)!=null&&tt[F.name]&&(T[K+1]=d.seriesToColorMap[F.name]),T},{})}function Ry(d){const T=new Map,F=new Map;d.forEach(tt=>{tt.parent&&(T.has(tt.parent)||T.set(tt.parent,[]),T.get(tt.parent).push(tt))}),Array.from(T.values()).sort((tt,ot)=>{var nt,st,pt,ht,ut,ft;return((pt=(st=(nt=ot[0])==null?void 0:nt.custom)==null?void 0:st.level)!=null?pt:0)-((ft=(ut=(ht=tt[0])==null?void 0:ht.custom)==null?void 0:ut.level)!=null?ft:0)}).forEach(tt=>{tt.forEach(ot=>{var pt,ht;const nt=(ht=(pt=ot.value)!=null?pt:F.get(ot.id))!=null?ht:0,st=F.get(ot.parent)||0;F.set(ot.parent,st+nt),ot.id&&(ot.custom.subtotalValue=F.get(ot.id))})});const K=[];return T.forEach(tt=>{tt.sort((ot,nt)=>{var ht,ut,ft,B;const st=(ut=(ht=ot.value)!=null?ht:F.get(ot.id))!=null?ut:0,pt=(B=(ft=nt.value)!=null?ft:F.get(nt.id))!=null?B:0;return st-pt}),K.push(...tt)}),K}const zy={type:"sunburst",borderWidth:0,dataLabels:{style:{textOutline:"none"}}},Fy={title:{text:null},chart:{type:"sunburst",spacing:[20,20,20,20],alignTicks:!1,polar:!1,animation:{duration:300}},series:[],plotOptions:{series:{},sunburst:{events:{legendItemClick:function(d){d.preventDefault()}}}}};function pc(d,T,F,K){return[Nt(kt({},zy),{name:"Root",data:Ny(d,T,K),levels:Dy(d,T,F,K),showInLegend:!1,turboThreshold:2e3}),...T.breakBy.map((tt,ot)=>{var nt;return{name:xe(tt),showInLegend:!0,color:((nt=tt==null?void 0:tt.color)==null?void 0:nt.color)||He(K==null?void 0:K.palette.variantColors,ot),data:[],states:{hover:{enabled:!1}}}})]}function dc(d,T,F){return _n(d,T,F,{displayTotalContribution:!0,displayColorCircles:!0,shouldSkip:K=>{var tt;return((tt=K.point.options)==null?void 0:tt.id)===Zr}})}function Gy(d,T,F,K,tt){return Nt(kt({},Fy),{series:pc(d,T,F,tt),tooltip:dc(T,F,K),legend:ui(F.legend)})}const Wy=(d,T,F,K,tt)=>{const ot=[];return{options:Gy(d,F,T,K,tt),alerts:ot}},Xy="rgb(255, 255, 255)",sa="rgb(43, 51, 66)",Ko=20,qo=4,Hy=2,Kr=1,Yy=Ko*2,Uy=26,Vy=20,aa=35,$y=Ko+qo-2,la={key:"brightness",to:.15};vh.Series.types.treemap.prototype.squarifiedWithTopSpacing=function(d,T){const F=qy(d.height,this.chart.plotHeight),K=this.squarified(d,T),tt=F($y);return Jy(this.chart)?K.map((ot,nt)=>{const st=ot.height>=F(Yy);return T[nt].point.options.custom.bigLabelSpacing=st,st&&(ot.height=ot.height-tt,ot.y=ot.y+tt),ot}):K};function uc(d,T,F){const K=Zy();return K.forEach((tt,ot)=>{var st,pt,ht,ut,ft,B,it;const nt=tt.dataLabels;(st=T==null?void 0:T.labels)!=null&&st.category&&(nt.enabled=(ft=(ut=(ht=(pt=T.labels)==null?void 0:pt.category)==null?void 0:ht[ot])==null?void 0:ut.enabled)!=null?ft:!0),(B=F==null?void 0:F.typography)!=null&&B.fontFamily&&(nt.style.fontFamily=(it=F==null?void 0:F.typography)==null?void 0:it.fontFamily)}),d.breakBy.length===1&&(K[0].borderWidth=Kr,K[0].borderColor="black",K[0].layoutAlgorithm="strip",K[0].dataLabels=K[1].dataLabels),d.breakBy.length===2&&(K[1].borderWidth=Kr,K[1].borderColor="black"),d.breakBy.some(({isColored:tt})=>tt)&&(K[1].colorVariation=la,K[2].colorVariation=la),K}function Ar(){var F,K;const d=ho(Xe(this.color))>.4&&!((K=(F=this.point.options)==null?void 0:F.custom)!=null&&K.blur),{width:T}=gc(this.point);return Ky(this.point)?fc(this.point)?`<div
141
+ style="
142
+ width:${T-qo}px;
143
+ height: ${Ko}px;
144
+ background: #e6e6e6;
145
+ color: ${sa};
146
+ padding: 3px;
147
+ position: absolute;
148
+ top: -${Ko}px;
149
+ text-align: center;
150
+ overflow: hidden;
151
+ text-overflow: ellipsis;
152
+ left: ${qo/2}px;
153
+ "
154
+ >${this.key}</div>`:`<div style="fill:${d?Xy:sa};">${this.key}</div>`:""}function Zy(){return[{level:1,borderWidth:qo,borderColor:"white",layoutAlgorithm:"squarifiedWithTopSpacing",dataLabels:{useHTML:!0,enabled:!0,align:"left",verticalAlign:"top",allowOverlap:!0,padding:0,style:{fontSize:"14px"},formatter:Ar}},{level:2,borderWidth:Hy,borderColor:"white",dataLabels:{enabled:!0,align:"left",verticalAlign:"top",style:{fontSize:"14px"},formatter:Ar}},{level:3,borderColor:"black",borderWidth:Kr,dataLabels:{enabled:!0,align:"center",verticalAlign:"middle",style:{fontSize:"13px"},formatter:Ar}}]}function fc(d){var T,F,K,tt;return((F=(T=d.options)==null?void 0:T.custom)==null?void 0:F.levelsCount)!==1&&((tt=(K=d.options)==null?void 0:K.custom)==null?void 0:tt.level)===1}function Ky(d){const{height:T,width:F}=gc(d),{level:K}=d.options.custom;return fc(d)?!!d.options.custom.bigLabelSpacing:K!==3?T>=Uy&&F>=aa:T>=Vy&&F>=aa}function qy(d,T){return F=>{const K=T/d;return F/K}}function Jy(d){var K,tt,ot,nt,st,pt;const T=(tt=(K=d.options.series)==null?void 0:K[0])!=null?tt:{};return(pt=((st=(nt=(ot=T==null?void 0:T.levels)==null?void 0:ot[0])==null?void 0:nt.dataLabels)!=null?st:{}).enabled)!=null?pt:!0}function gc(d){var T,F,K,tt;return{width:(F=(T=d.shapeArgs)==null?void 0:T.width)!=null?F:0,height:(tt=(K=d.shapeArgs)==null?void 0:K.height)!=null?tt:0}}const Qy="rgb(0, 206, 230)",t0={type:"treemap",layoutAlgorithm:"strip",layoutStartingDirection:"horizontal",clip:!1,color:Qy,dataLabels:{style:{textOutline:"none"}}},e0={title:{text:null},chart:{type:"treemap",spacing:[20,20,20,20],alignTicks:!1,polar:!1,animation:{duration:300}},series:[]};function i0(d,T,F,K,tt){return Nt(kt({},e0),{series:[Nt(kt({},t0),{name:T.y[0]?xe(T.y[0]):"",data:Rn(d,T,tt),levels:uc(T,F,tt)})],tooltip:_n(T,F,K)})}const o0=(d,T,F,K,tt)=>{const ot=[];return{options:i0(d,F,T,K,tt),alerts:ot}},r0=(d,T,F,K,tt,ot)=>{switch(T){case"pie":return Ty(d,F,K,ot);case"funnel":return Sy(d,F,K,ot);case"treemap":return o0(d,F,K,tt,ot);case"sunburst":return Wy(d,F,K,tt,ot);default:throw new Rt.TranslatableError("errors.unexpectedChartType",{chartType:T})}},n0=(d,T,F)=>({animation:!1,crosshairs:!0,backgroundColor:oi,borderColor:ii,borderRadius:10,borderWidth:1,useHTML:!0,formatter:function(){var $,Z,U,z;if(!this.point.low||!this.point.high)return Fh(this,T,F);let K;this.percentage&&(K=`${Math.round(this.percentage)}`);const tt=T,ot=($=tt.rangeValues)==null?void 0:$.find(tt.breakBy.length>0?I=>I[0].enabled:I=>xe(I[0])===this.series.name),[nt,st]=ot!=null?ot:[void 0,void 0],pt=Ah(nt),ht=le(nt,this.point.high,""),ut=le(st,this.point.low,""),ft=(z=(U=(Z=this.point)==null?void 0:Z.custom)==null?void 0:U.xDisplayValue)!=null?z:this.x,B=tt.x?le(tt.x[0],this.x,ft):ft,it=ht+(pt&&K?` / ${K}%`:""),W=ut+(pt&&K?` / ${K}%`:""),R=this.point.color||this.series.color,{upperPointName:H,lowerPointName:V}=this.point;return xi(`
155
+ <div>${this.series.name}</div>
156
+ <div class="csdk-range-tooltip-row">
157
+ <span>${H||F("arearange.tooltip.max")}</span>
158
+ ${Me(it,R)}
159
+ </div>
160
+ <div class="csdk-range-tooltip-row">
161
+ <span>${V||F("arearange.tooltip.min")}</span>
162
+ ${Me(W,R)}
163
+ </div>
164
+ ${ei()}
165
+ <div>${B||""}</div>
166
+ `)}}),ha=(d,T,F,K,tt,ot,nt)=>{var E,M;const st=[],pt=[];K.seriesValues.forEach(P=>{pt.push(P),st.push(P)}),K.rangeValues.forEach(([P,y])=>{pt.push(y),st.push(P)});const ft=Nt(kt({},K),{y:pt,seriesToColorMap:K.seriesToColorMap}),B=Zo(Nt(kt({},d),{type:"cartesian"}),T,F,ft,tt,ot,nt),it={};B.options.series.forEach(P=>{it[P.name]=P});const W=Nt(kt({},K),{y:st,seriesToColorMap:K.seriesToColorMap}),R=Zo(Nt(kt({},d.seriesOther),{type:"cartesian"}),T,F,W,tt,ot,nt),H={};R.options.series.forEach(P=>{H[P.name]=P});let V=1/0,$=-1/0,Z=-1,U=0;if(B.options.series.forEach((P,y)=>{if(K.breakBy.length===0&&y<K.seriesValues.length)Ai(P.name)&&(Z=am(P,H,it)),P.zIndex=1,P.data.forEach(h=>{h.y&&h.y<V&&(V=h.y),h.y&&h.y>$&&($=h.y)});else{const h=H[P.name].data;P.yAxis=0;let f=0;K.breakBy.length===0&&(f=y-K.seriesValues.length);const m=K.rangeValues[f],u=m[0].column.name.indexOf("_")+1,v=m[1].column.name.substring(u),w=m[0].column.name.substring(u);P.type="arearange",Ai(P.name)&&lm(P,H),U=Math.max(P.data.length,U),P.data=P.data.map((S,x)=>{const c=Nt(kt({},S),{low:h[x].y,high:S.y,y:void 0,upperPointName:v,lowerPointName:w});return c.low&&c.low<V&&(V=c.low),c.high&&c.high>$&&($=c.high),c}),Ai(P.name)&&hm(P,H)}}),B.options.xAxis||(B.options.xAxis=[]),Z>0&&cm(B.options.xAxis,Z,U),T==="arearange"&&F.lineType==="smooth"){const P="areasplinerange";B.options.chart.type=P,(E=B.options.navigator)!=null&&E.series&&(B.options.navigator.series.type=P)}T==="arearange"&&(B.options.tooltip=n0(!1,K,tt));const[z]=(M=B.options.yAxis)!=null?M:[],I=Nt(kt({},z),{min:V,max:$});return B.options.yAxis=[I],B},s0={displayValue:"0"},Gi=(d,T)=>{if(T){for(let F=0;F<d.columns.length;F++)if(d.columns[F].name===T.column.name)return F}return-1},a0=(d,T)=>({x:Gi(T,d.x),y:Gi(T,d.y),breakByPoint:Gi(T,d.breakByPoint),breakByColor:Gi(T,d.breakByColor),size:Gi(T,d.size)}),ca=(d,T)=>T[d]||s0,l0=(d,T)=>{const F=new Set;return d.forEach(K=>{F.add(K[T].displayValue)}),Array.from(F.values())},pa=(d,T,F)=>{if(F&&!Je(F))return l0(d,T)},da=(d,T)=>[d,T],h0=(d,T)=>{const F=new Map(d==null?void 0:d.map(da)),K=new Map(T==null?void 0:T.map(da));return{xCategoriesMap:F,yCategoriesMap:K}},c0=(d,T)=>{var ot,nt;const F=a0(d,T),K=d!=null&&d.breakByPoint&&Rt.isNumber(d.breakByPoint.column.type)?he((ot=d.breakByPoint)==null?void 0:ot.numberFormatConfig):void 0,tt=d!=null&&d.breakByColor&&(Je(d.breakByColor)||Rt.isNumber(d.breakByColor.column.type))?he((nt=d.breakByColor)==null?void 0:nt.numberFormatConfig):void 0;return T.rows.map(st=>{const pt=kt({},st[F.breakByPoint]);K&&(pt.displayValue=Ce(K,pt.compareValue?pt.compareValue.value:parseFloat(pt.displayValue)));const ht=kt({},st[F.breakByColor]);return tt&&(ht.displayValue=Ce(tt,ht.compareValue?ht.compareValue.value:parseFloat(ht.displayValue))),{xAxis:ca(F.x,st),yAxis:ca(F.y,st),breakByPoint:pt,breakByColor:ht,size:st[F.size]}})},p0=(d,T)=>{const F=c0(d,T),{x:K,y:tt}=d,ot=pa(F,"xAxis",K),nt=pa(F,"yAxis",tt);return{type:"scatter",scatterDataTable:F,xCategories:ot,yCategories:nt}},Ze="#d1d1d7";function mc(d,T,F){if(F&&F.length&&!F.includes(T))return"";const K=typeof T=="number"?T:parseFloat(T);return isNaN(K)?`${T}`:d&&!Je(d)&&!Rt.isNumber(d.column.type)?`${T}`:Ce(he(d==null?void 0:d.numberFormatConfig),K)}const d0=(d,T,F)=>[{type:d.type,startOnTick:!1,endOnTick:!(d.max||T),labels:{overflow:"justify",enabled:d.enabled&&d.labels,autoRotation:[-10,-20,-30,-40,-50,-60,-70,-80,-90],style:we,formatter:function(){return mc(F==null?void 0:F.x,this.value,this.axis.categories)}},categories:T||void 0,gridLineWidth:d.enabled&&d.gridLine?1:0,gridLineColor:Ze,gridLineDashStyle:"Dot",title:{enabled:d.enabled&&d.titleEnabled,margin:25,text:d.title||null},lineColor:Ze,lineWidth:1,minorTickColor:Ze,minorGridLineColor:Ze,minorGridLineDashStyle:"Dot",minorTickLength:0,tickLength:0,tickColor:Ze,tickmarkPlacement:"on",tickInterval:d.enabled?d.tickInterval:null,min:d.enabled?d.min:null,max:d.enabled?d.max:null}],u0=(d,T,F)=>[{type:d.type,startOnTick:!1,endOnTick:!(d.max||T),title:{enabled:d.enabled&&d.titleEnabled,text:d.title||null},labels:{enabled:d.labels,autoRotation:[-10,-20,-30,-40,-50,-60,-70,-80,-90],style:we,formatter:function(){return mc(F==null?void 0:F.y,this.value,this.axis.categories)}},categories:T||void 0,gridLineColor:Ze,gridLineDashStyle:"Dot",gridLineWidth:1,lineColor:Ze,lineWidth:1,maxPadding:.025,minPadding:.025,minorGridLineColor:Ze,minorGridLineDashStyle:"Dot",minorGridLineWidth:0,minorTickColor:Ze,minorTickWidth:0,opposite:!1,tickColor:Ze,tickWidth:0,tickmarkPlacement:"on",tickInterval:d.enabled?d.tickInterval:null,min:d.enabled?d.min:null,max:d.enabled?d.max:null}],yc={scatterDefaultSize:10,scatterBubbleMinSize:12,scatterBubbleMaxSize:48},f0=(d,T)=>{var ot;if(!(d!=null&&d.enabled))return{enabled:!1};const F=Ve(d),K=(ot=d.rotation)!=null?ot:0,tt=Nt(kt(kt({align:"center",verticalAlign:"middle",types:{count:!1,relative:!0,totals:!0},rotation:K},In(K)==="horizontal"?{y:-1}:null),F),{style:kt({fontWeight:"",textOutline:""},F.style)});return tt.formatter=function(){var it,W,R,H;const nt=this,st={maskedY:T.y,maskedX:T.x,maskedSize:T.size,maskedBreakByColor:T.breakByColor},ht=[T.y,T.x,T.size,T.breakByColor].find(V=>V&&Je(V)),ut=(it=Object.entries(st).find(([,V])=>V===ht))==null?void 0:it[0],ft=((W=nt.point.custom)==null?void 0:W[ut])||"";if(isNaN(parseFloat(ft)))return ft;const B=he(ht==null?void 0:ht.numberFormatConfig);return`${(R=d==null?void 0:d.prefix)!=null?R:""}${Ce(B,parseFloat(ft))}${(H=d==null?void 0:d.suffix)!=null?H:""}`},tt},g0=(d,T)=>({minSize:T?d.scatterBubbleMinSize:d.scatterDefaultSize,maxSize:T?d.scatterBubbleMaxSize:d.scatterDefaultSize}),m0=(d,T)=>{var K;const F=!!T.size;return{bubble:kt({animation:!1},g0((K=d.markerSize)!=null?K:yc,F)),series:{allowPointSelect:!1,boostThreshold:0,dataLabels:f0(d.seriesLabels,T),stickyTracking:!1,turboThreshold:0}}},vc="#00cee6",qr=d=>{const T=d.rawValue==null?Number(d.displayValue):Number(d.rawValue);return Number.isNaN(T)||T===void 0?null:T},y0=d=>d?qr(d):1,v0=(d,T)=>{const{xAxis:F,yAxis:K,breakByPoint:tt,breakByColor:ot,size:nt}=d,{xCategoriesMap:st,yCategoriesMap:pt}=T,ht=st.get(F.displayValue),ut=pt.get(K.displayValue),ft=F.blur||K.blur||(tt==null?void 0:tt.blur);return{x:ht!==void 0?ht:qr(F),y:ut!==void 0?ut:qr(K),z:y0(nt),maskedX:F.displayValue,maskedY:K.displayValue,maskedBreakByPoint:tt==null?void 0:tt.displayValue,maskedBreakByColor:ot==null?void 0:ot.displayValue,color:ot==null?void 0:ot.color,maskedSize:nt==null?void 0:nt.displayValue,selected:ft}},b0=(d,T,F)=>{var nt,st;const K=new Map;d.forEach(pt=>{var ht;if(pt.breakByColor){const{displayValue:ut,color:ft}=pt.breakByColor;if(ut&&!K.has(ut)){const B=ft||((ht=T==null?void 0:T.seriesToColorMap)==null?void 0:ht[ut]);K.set(ut,B)}}});const tt=new Map,ot=Rt.isNumber((st=(nt=T==null?void 0:T.breakByColor)==null?void 0:nt.column)==null?void 0:st.type)?"number":"string";return Array.from(K).sort(([pt],[ht])=>rl(pt,ht,cd.ASC,ot)).forEach(([pt,ht],ut)=>{tt.set(pt,{color:ht!=null?ht:He(F==null?void 0:F.palette.variantColors,ut),index:ut})}),tt},x0=(d,T,F)=>{const K={enabled:!0,fillOpacity:.7,lineWidth:1,states:{select:{fillOpacity:.3,lineWidth:1}}};return d.size?Array.from(d).map(([tt,{index:ot,color:nt}])=>({data:[],index:ot,marker:K,name:tt,showInLegend:!0,type:"bubble",color:nt})):[{data:[],index:0,marker:K,name:T,showInLegend:!!T,type:"bubble",color:gl(F)||vc}]},C0=(d,T)=>{const F=d.get(T);return F?F.index:0},w0=(d,T)=>{const F=Pn({getValueFromDataStructure:K=>{var tt;return parseFloat(`${(tt=K.custom)==null?void 0:tt.maskedBreakByColor}`)},applyColorToDataStructure:(K,tt)=>Nt(kt({},K),{color:tt})});return d.map(K=>Nt(kt({},K),{data:F(K.data,T)}))},S0=d=>{if(d&&Je(d)&&d.color)return d.color},M0=(d,T,F,K)=>{for(const tt of T){const{x:ot,y:nt,z:st,maskedX:pt,maskedY:ht,maskedBreakByPoint:ut,maskedSize:ft,color:B,maskedBreakByColor:it,selected:W}=v0(tt,F);if(ot!==null&&nt!==null){const R=d[C0(K,it)],H={color:B||R.color||vc,x:ot,y:nt,z:st,custom:{maskedX:pt,maskedY:ht,maskedBreakByPoint:ut,maskedBreakByColor:it,maskedSize:ft},selected:W};R.data.push(H)}}return d},A0=d=>{const T=d==null?void 0:d.breakByColor,F=d==null?void 0:d.breakByPoint;return T&&xe(T)||F&&xe(F)||""},T0=(d,T,F,K)=>{const tt=F==null?void 0:F.breakByColor,ot=A0(F),nt=S0(tt),st=tt&&!Je(tt)?b0(d,F,K):new Map;let pt=x0(st,ot,nt);return pt=M0(pt,d,T,st),nt&&(pt=w0(pt,nt)),pt},k0=(d,T)=>T?d.slice(0,T):d,P0=(d,T,F,K,tt,ot)=>{const nt=[],st=T0(d,T,F,tt).map(pt=>Nt(kt({},pt),{dataLabels:K==null?void 0:K.seriesLabels}));return ot&&st.length>ot?(nt.push(Ci(st.length,ot)),{series:k0(st,ot),alerts:nt}):{series:st,alerts:nt}},ko=20,L0=30,E0=d=>kt({symbolHeight:12,symbolWidth:12,itemMarginBottom:0,itemMarginTop:0},ui(d)),O0=(d,T,F,K,tt)=>{const ot=[],nt=Di(T,F),st=K,{scatterDataTable:pt}=d,{seriesCapacity:ht,categoriesCapacity:ut}=F.dataLimits;let{xCategories:ft,yCategories:B}=d;ft&&ft.length>ut&&(ot.push(Uo("x",ft.length,ut)),ft=ft.slice(0,ut)),B&&B.length>ut&&(ot.push(Uo("y",B.length,ut)),B=B.slice(0,ut));const{series:it,alerts:W}=P0(pt,h0(ft,B),st,F,tt,ht);return ot.unshift(...W),{options:{title:{text:null},subtitle:{text:null},chart:{type:nt,spacing:[ko,ko,ko,ko],marginTop:L0,alignTicks:!1,polar:!1},xAxis:d0(F.xAxis,ft==null?void 0:ft.slice(0,ut),st),yAxis:u0(F.yAxis,B==null?void 0:B.slice(0,ut),st),legend:E0(F.legend),series:it,plotOptions:m0(F,st),tooltip:sm(st)},alerts:ot}},D0=(d,T,F,K,tt,ot,nt)=>{switch(d.type){case"range":return ha(d,T,F,K,tt,ot,nt);case"cartesian":{const st=K,pt=Lh(st)?ha(Nt(kt({},d),{type:"range"}),T,F,Eh(st),tt,ot,nt):Zo(d,T,F,st,tt,ot,nt);return dm(pt.options.series),pt}case"categorical":return r0(d,T,F,K,tt,ot);case"scatter":return O0(d,T,F,K,ot);case"boxplot":return Nm(d,F,K,tt,ot);default:throw new Rt.TranslatableError("errors.unexpectedChartType",{chartType:d.type})}},j0={legend:{enabled:!0,position:"bottom"},navigator:{enabled:!0},markers:{enabled:!1,fill:"filled",size:"small"},seriesLabels:{enabled:!1,rotation:0},xAxis:{enabled:!0,gridLines:!1,isIntervalEnabled:!1,labels:{enabled:!0},logarithmic:!1,title:{enabled:!1,text:"X Axis title"}},yAxis:{enabled:!0,gridLines:!0,isIntervalEnabled:!1,labels:{enabled:!0},logarithmic:!1,title:{enabled:!1,text:"Y Axis title"}},y2Axis:{enabled:!0,gridLines:!0,isIntervalEnabled:!1,labels:{enabled:!0},logarithmic:!1,title:{enabled:!1,text:"Y2 Axis title"}},convolution:{enabled:!1,selectedConvolutionType:"byPercentage",minimalIndependentSlicePercentage:3,independentSlicesCount:7},labels:{categories:!0,enabled:!0,percent:!0,decimals:!1,value:!1}},I0=()=>Rt.cloneDeep(j0);function N0(d){return Rt.flatRest(function(T){return T=Rt.arrayMap(T,Rt.baseUnary(Rt.baseIteratee)),Rt.baseRest(function(F){var K=this;return d(T,function(tt){return Rt.apply(tt,K,F)})})})}var bc=N0(Rt.arrayMap);function ar(d,T=!1){const F=d.filter(K=>Rt.isFunction(K));return T?rr(F):bc(F)}function xc(...d){return(T,F)=>d.reduce((K,tt)=>{var ot;return tt&&(ot=tt(T,K))!=null?ot:K},F)}function B0(...d){return T=>d.reduce((F,K)=>{var tt;return K&&(tt=K(F))!=null?tt:F},T)}function _0(...d){return T=>d.reduce((F,K)=>{if(!K)return F;const tt=K(F);return tt!==null?tt:F},T)}const Cc={"chart/line":"line","chart/area":"area","chart/bar":"bar","chart/column":"column","chart/polar":"polar","chart/pie":"pie","chart/funnel":"funnel",treemap:"treemap",sunburst:"sunburst","chart/scatter":"scatter",indicator:"indicator","chart/boxplot":"boxplot","map/scatter":"scattermap","map/area":"areamap",tablewidget:"table",tablewidgetagg:"table",heatmap:"calendar-heatmap"},R0=Object.entries(Cc).reduce((d,[T,F])=>(d[F]=T,d),{});function z0(d){return Cc[d]}function F0(d){return R0[d]}function G0(d,T){if(d==="chart"){if(!T)throw new Error("chartType is required for chart widget type");return F0(T)}if(d==="pivot")return"pivot2";if(d==="custom")return"custom";if(d==="text")return"richtexteditor";throw new Rt.TranslatableError("errors.widgetModel.unsupportedWidgetType",{widgetType:d})}function W0(d){if(zn(d))return"pivot";if(J0(d))return"custom";if(Fn(d))return"text";if(wc(d))return"chart";throw new Rt.TranslatableError("errors.widgetModel.unsupportedFusionWidgetType",{fusionWidgetType:d})}function X0(d){return{"area/basic":"area/basic","area/stacked":"area/stacked","area/stacked100":"area/stacked100","area/spline":"area/spline","area/stackedspline":"area/stackedspline","area/stackedspline100":"area/stackedspline100","bar/classic":"bar/classic","bar/stacked":"bar/stacked","bar/stacked100":"bar/stacked100","column/classic":"column/classic","column/stackedcolumn":"column/stackedcolumn","column/stackedcolumn100":"column/stackedcolumn100","line/basic":"line/basic","line/spline":"line/spline","pie/classic":"pie/classic","pie/donut":"pie/donut","pie/ring":"pie/ring","column/polar":"polar/column","area/polar":"polar/area","line/polar":"polar/line","indicator/numeric":"indicator/numeric","indicator/gauge":"indicator/gauge",treemap:"treemap",sunburst:"sunburst","boxplot/full":"boxplot/full","boxplot/hollow":"boxplot/hollow","map/scatter":"scattermap"}[d]}function H0(d){return["chart/line","chart/area","chart/bar","chart/column","chart/polar","chart/pie","chart/funnel","treemap","sunburst","chart/scatter","indicator","tablewidget","tablewidgetagg","pivot","pivot2","chart/boxplot","map/scatter","map/area","richtexteditor","heatmap"].includes(d)}function Y0(d){return d==="WidgetsTabber"}const U0=["chart/pie","indicator","richtexteditor","chart/column","chart/bar","chart/line","chart/area","pivot","pivot2","chart/scatter","chart/polar"];function V0(d){return U0.includes(d)}function $0(d){return d==="tablewidget"||d==="tablewidgetagg"}function Z0(d){return ov(d.widgetType)&&d.chartType==="table"}function zn(d){return d==="pivot"||d==="pivot2"}function K0(d){return d==="pivot"}function Fn(d){return d==="richtexteditor"}function q0(d){return d==="text"}function J0(d){return d==="custom"}function Q0(d){return d==="custom"}function wc(d){return!zn(d)&&!Fn(d)}function tv(d){return d.startsWith("chart")}function ev(d){return d==="chart/pie"}function iv(d){return d==="indicator"}function ov(d){return d==="chart"}function Sc(d){return d.widgetType==="text"}function Gn(d){return d.widgetType==="pivot"}function Mc(d){return d.widgetType==="custom"}function lr(d){return d.widgetType==="chart"}function rv(d){return Gn(d)?"pivot":Mc(d)?"custom":Sc(d)?"text":d.chartType}function nv(d,T){lr(d)&&(d.onDataPointClick=ar([d.onDataPointClick,T]))}function sv(d,T){!lr(d)&&!Gn(d)||(d.onDataPointContextMenu=ar([d.onDataPointContextMenu,T]))}function av(d,T){lr(d)&&(d.onDataPointsSelected=ar([d.onDataPointsSelected,T]))}function lv(d,T){var K;const F=d.styleOptions;d.styleOptions=Nt(kt({},F),{header:Nt(kt({},F==null?void 0:F.header),{renderToolbar:xc((K=F==null?void 0:F.header)==null?void 0:K.renderToolbar,T)})})}function hv(d,T){var tt;const F=d.find(ot=>ot.name===T);return((tt=F==null?void 0:F.items)!=null?tt:[]).filter(ot=>!ot.disabled)}function Ac(d){return d.parent?Ac(d.parent):d}const cv=d=>$a(d)?"cartesian":Za(d)?"categorical":Ka(d)?"scatter":qa(d)?"scattermap":Ja(d)?"indicator":el(d)?"areamap":tl(d)?"boxplot":"table";exports.ALL_CHART_TYPES=rd;exports.BOXPLOT_CHART_TYPES=fn;exports.CARTESIAN_CHART_TYPES=pn;exports.CATEGORICAL_CHART_TYPES=dn;exports.CacheProvider=qp;exports.Color=ee;exports.DEFAULT_BACKGROUND_COLOR=Cp;exports.DEFAULT_COLOR=_o;exports.DEFAULT_TEXT_COLOR=nn;exports.DefaultFunnelDirection=ph;exports.DefaultFunnelLabels=lh;exports.DefaultFunnelSize=hh;exports.DefaultFunnelType=ch;exports.DefaultPieType=fh;exports.ERROR_COLOR=wp;exports.Emotion$1=cn;exports.Fragment=Ga;exports.GradientDirections=Hf;exports.Highcharts=vh;exports.I18nContext=ma;exports.NOT_AVAILABLE_DATA_VALUE=sn;exports.NOT_AVAILABLE_TEXT=Sp;exports.QUERY_DEFAULT_LIMIT=bp;exports.RANGE_CHART_TYPES=gn;exports.RadialGradientPresets=Yf;exports.SCATTER_CHART_TYPES=un;exports.SYSTEM_TENANT_NAME=xp;exports.TRIANGLE_COLOR_ADJUSTMENT=pf;exports.ThemeContext=Fa;exports.advancedAnalyticsData=gm;exports.applyFormat=yi;exports.applyFormatPlainText=Ce;exports.applyOpacity=Ul;exports.baseTrim=Na;exports.buildCategoriesMeta=Vh;exports.buildXAxisSettings=$h;exports.buildYAxisMeta=Uh;exports.buildYAxisMinMax=$r;exports.cartesianData=zr;exports.categoriesSliceWarning=Uo;exports.colorChineseSilver=ii;exports.colorWhite=oi;exports.combineHandlers=ar;exports.commonjsGlobal=Wi;exports.composeTextWidgetToolbarHandlers=B0;exports.composeTitleHandlers=_0;exports.composeToolbarHandlers=xc;exports.createCache=Aa;exports.createCompareValue=Zi;exports.createDataColoringFunction=Pn;exports.createDataTableFromData=dd;exports.createEmotionProps=hn;exports.createLinearGradient=Uf;exports.createRadialGradient=Vf;exports.defaultScatterMarkerSize=yc;exports.deriveChartFamily=cv;exports.determineHighchartsChartType=Di;exports.emptyTable=wn;exports.extractForecastMeasures=fm;exports.extractTrendMeasures=um;exports.flow=rr;exports.formatFunnelChartData=Jh;exports.formatTooltipValue=le;exports.fromHighchartsGradientFormat=$f;exports.getAlerts=Qh;exports.getAugmentedNamespace=Ec;exports.getCartesianChartOptions=Zo;exports.getCartesianTooltipSettings=Gh;exports.getCategoryTooltipSettings=Bn;exports.getChartSubtype=X0;exports.getChartType=z0;exports.getColoringServiceByColorOptions=$l;exports.getColumnByName=ni;exports.getColumnsByName=Ki;exports.getCompleteNumberFormatConfig=he;exports.getDarkFactor=ho;exports.getData=On;exports.getDataOptionGranularity=yn;exports.getDataOptionTitle=xe;exports.getDefaultDateFormat=Dn;exports.getDefaultExportFromCjs=Jr;exports.getDefaultStyleOptions=I0;exports.getEnabledPanelItems=hv;exports.getFunnelPlotOptions=uh;exports.getFusionWidgetType=G0;exports.getIndexedRows=Cn;exports.getInternalWidgetType=rv;exports.getInterpolatorFn=Vl;exports.getLegendSettings=ui;exports.getOrderedXValues=Ql;exports.getPaletteColor=He;exports.getPieAlerts=ac;exports.getPieConvolutionSeries=cc;exports.getPiePlotOptions=gh;exports.getPieSeries=hc;exports.getRegisteredStyles=Ta;exports.getRootPanelItem=Ac;exports.getSlightlyDifferentColor=mf;exports.getTreemapTooltipSettings=_n;exports.getUniformColorOptionsFromString=Sn;exports.getValue=pl;exports.getValues=Oi;exports.getWidgetType=W0;exports.getYAxisSettings=Wh;exports.groupBy=hl;exports.hasOwn=ro;exports.hasSecondaryYAxis=Zh;exports.highchartsOptionsService=D0;exports.insertStyles=ka;exports.isAreamap=el;exports.isBlurred=dl;exports.isBoxplot=tl;exports.isCalendarHeatmap=od;exports.isCartesian=$a;exports.isCategorical=Za;exports.isCell=sl;exports.isChartFusionWidget=wc;exports.isChartTypeFusionWidget=tv;exports.isChartWidgetProps=lr;exports.isContinuousDatetimeXAxis=Yh;exports.isCustomWidget=Q0;exports.isCustomWidgetProps=Mc;exports.isDataTableEmpty=pd;exports.isForecastChart=Lh;exports.isGradient=rh;exports.isIndicator=Ja;exports.isIndicatorFusionWidget=iv;exports.isLaziable=Wr;exports.isLegendOnRight=Ln;exports.isLinearGradient=ih;exports.isMeasureColumn=Je;exports.isNumber=Ur;exports.isPieChartFusionWidget=ev;exports.isPivotTableFusionWidget=zn;exports.isPivotTableWidgetProps=Gn;exports.isPivotWidget=K0;exports.isRadialGradient=oh;exports.isRange=id;exports.isScatter=Ka;exports.isScattermap=qa;exports.isStyledColumn=vn;exports.isSupportedPluginFusionWidget=Y0;exports.isSupportedWidgetType=H0;exports.isTable=ed;exports.isTableFusionWidget=$0;exports.isTableWidgetModel=Z0;exports.isTextFusionWidget=Fn;exports.isTextWidget=q0;exports.isTextWidgetProps=Sc;exports.isUndefined=mn;exports.jsx=se;exports.jsxs=ai;exports.memoize=Sa;exports.merge=Be;exports.metaMap=Gr;exports.noop=mh;exports.normalizeAnyColumn=hd;exports.normalizeColumn=il;exports.normalizeMeasureColumn=ol;exports.omitUndefinedAndEmpty=bi;exports.orderBy=ll;exports.over=bc;exports.parseISOWithTimezoneCheck=ln;exports.prepareStackLabels=Xh;exports.prepareSunburstSeries=pc;exports.prepareSunburstTooltip=dc;exports.prepareTreemapDataItems=Rn;exports.prepareTreemapLevels=uc;exports.purify=Mh;exports.rangeData=Ph;exports.registerDataPointClickHandler=nv;exports.registerDataPointContextMenuHandler=sv;exports.registerDataPointsSelectedHandler=av;exports.registerRenderToolbarHandler=lv;exports.registerStyles=rn;exports.requiredArgs=Oa;exports.rownumColumnName=bn;exports.safeCombine=nd;exports.safeMerge=Bo;exports.scaleBrightness=to;exports.scatterData=p0;exports.selectColumns=cl;exports.serializeStyles=La;exports.seriesSliceWarning=Ci;exports.sortDirection=Jl;exports.splitColumn=no;exports.stackTotalFontStyleDefault=io;exports.toColor=Xe;exports.toFinite=Ba;exports.toGradientHighchartsFormat=nh;exports.toGray=Hl;exports.toInteger=Ea;exports.toInteger$1=ul;exports.toNumber=an;exports.tooltipSeparator=ei;exports.tooltipWrapper=xi;exports.translateColumnToAttribute=sd;exports.translateColumnToMeasure=ad;exports.useInsertionEffectAlwaysWithSyncFallback=_a;exports.useTranslation=Qr;exports.widgetTypeSupportsJtd=V0;exports.withEmotionCache=za;exports.withGradientConversion=vi;exports.withPolarSpecificAxisSettings=Hh;exports.withXAxisLabelPositioning=qh;exports.withYAxisLabelPositioning=Kh;exports.withYAxisNormalizationForPolar=ny;