marketplacepos 5.46.2 → 5.46.3

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 (94) hide show
  1. package/Marketplace/{chunk-WAKKUK6E.js → chunk-25N6ECN7.js} +1 -1
  2. package/Marketplace/chunk-2REDCSBO.js +1 -0
  3. package/Marketplace/{chunk-BAXQ2L7B.js → chunk-2WHJU6CS.js} +1 -1
  4. package/Marketplace/chunk-3NCIMELL.js +5 -0
  5. package/Marketplace/{chunk-AMYZMAYI.js → chunk-4PL4XC3C.js} +1 -1
  6. package/Marketplace/{chunk-YXBR6VYQ.js → chunk-53AH4SKO.js} +1 -1
  7. package/Marketplace/{chunk-FGFIV3VO.js → chunk-57MSCWQ4.js} +1 -1
  8. package/Marketplace/chunk-6EMUVAZD.js +1 -0
  9. package/Marketplace/{chunk-LCZ6SUUA.js → chunk-6GQN3CZ7.js} +1 -1
  10. package/Marketplace/{chunk-YA3VMYDA.js → chunk-6L24E3SM.js} +1 -1
  11. package/Marketplace/{chunk-II5QZVLR.js → chunk-764WEWDX.js} +1 -1
  12. package/Marketplace/{chunk-FYRDNKYT.js → chunk-7NGIEICQ.js} +1 -1
  13. package/Marketplace/{chunk-XXAV6VNB.js → chunk-ACNBNSCK.js} +1 -1
  14. package/Marketplace/{chunk-3BALA33G.js → chunk-B3HL4DNT.js} +1 -1
  15. package/Marketplace/chunk-B3RO2S3D.js +1 -0
  16. package/Marketplace/{chunk-CGEIIRYF.js → chunk-BPAZ4TES.js} +1 -1
  17. package/Marketplace/{chunk-QSHR75ZI.js → chunk-BXXJEM76.js} +1 -1
  18. package/Marketplace/{chunk-3YP6ORBR.js → chunk-C7YK5TDP.js} +1 -1
  19. package/Marketplace/{chunk-CBAQUD22.js → chunk-CTDSVBZQ.js} +1 -1
  20. package/Marketplace/{chunk-WAZXTB4X.js → chunk-DGIH7HSJ.js} +1 -1
  21. package/Marketplace/{chunk-72OHPB5Q.js → chunk-DSAVJZIH.js} +2 -2
  22. package/Marketplace/{chunk-3434HH7H.js → chunk-E42O4ZCH.js} +1 -1
  23. package/Marketplace/chunk-EOYO5KJW.js +1 -0
  24. package/Marketplace/{chunk-CIPLCKUF.js → chunk-EPCXMVX3.js} +1 -1
  25. package/Marketplace/chunk-ER3SGZ7B.js +1 -0
  26. package/Marketplace/{chunk-OHSVQSCM.js → chunk-ESDWGP24.js} +1 -1
  27. package/Marketplace/chunk-GHFADTRR.js +1 -0
  28. package/Marketplace/{chunk-6RMBCW2O.js → chunk-HAJDTNAW.js} +1 -1
  29. package/Marketplace/chunk-IJVKHW3C.js +1 -0
  30. package/Marketplace/chunk-JGKNYWZY.js +1 -0
  31. package/Marketplace/chunk-JOZJZEGN.js +1 -0
  32. package/Marketplace/chunk-JUHGMPX2.js +1 -0
  33. package/Marketplace/{chunk-PLHWGG4D.js → chunk-K5YVT6CU.js} +2 -2
  34. package/Marketplace/{chunk-PL3Q6PGC.js → chunk-LSSYGFVV.js} +1 -1
  35. package/Marketplace/{chunk-PE4SWUEZ.js → chunk-M7DDFDPD.js} +1 -1
  36. package/Marketplace/chunk-MP3G42LL.js +1 -0
  37. package/Marketplace/chunk-O73TXSTZ.js +1 -0
  38. package/Marketplace/{chunk-6VZVNRUE.js → chunk-OCJXLFB4.js} +2 -2
  39. package/Marketplace/chunk-PBHJGJHF.js +1 -0
  40. package/Marketplace/{chunk-HITTNWB6.js → chunk-PHLSX23M.js} +1 -1
  41. package/Marketplace/chunk-QOG52KD3.js +1 -0
  42. package/Marketplace/chunk-QPC5ZTYC.js +1 -0
  43. package/Marketplace/chunk-QSERFP5U.js +1 -0
  44. package/Marketplace/chunk-QTTNQJAK.js +1 -0
  45. package/Marketplace/chunk-RTF4FRXW.js +3 -0
  46. package/Marketplace/{chunk-UHJEXTOG.js → chunk-RU43F4UK.js} +1 -1
  47. package/Marketplace/chunk-RXQX7567.js +1 -0
  48. package/Marketplace/{chunk-LFGPYQCI.js → chunk-SBLG2UP7.js} +1 -1
  49. package/Marketplace/{chunk-Z67623R4.js → chunk-TG5SFCNG.js} +1 -1
  50. package/Marketplace/{chunk-CWXOXH6M.js → chunk-THMNZQLX.js} +1 -1
  51. package/Marketplace/{chunk-NWWYOZ4V.js → chunk-TKV7XWBT.js} +1 -1
  52. package/Marketplace/{chunk-SZGOLKC6.js → chunk-TYSVSEYQ.js} +1 -1
  53. package/Marketplace/{chunk-B2WOBUES.js → chunk-UDXV6RW2.js} +1 -1
  54. package/Marketplace/{chunk-ZLNAFA4X.js → chunk-V33UHV5X.js} +1 -1
  55. package/Marketplace/{chunk-CBJR2A72.js → chunk-V54LZUEC.js} +1 -1
  56. package/Marketplace/chunk-VHOREEP5.js +1 -0
  57. package/Marketplace/chunk-VODHIYRA.js +1 -0
  58. package/Marketplace/{chunk-OE7TF7SI.js → chunk-W4MTON2T.js} +1 -1
  59. package/Marketplace/{chunk-3GRC47DP.js → chunk-WBKGEDL6.js} +1 -1
  60. package/Marketplace/{chunk-HGZ5B6WR.js → chunk-WHBI5II7.js} +1 -1
  61. package/Marketplace/{chunk-OVPVQS4J.js → chunk-WIMLQM6B.js} +1 -1
  62. package/Marketplace/{chunk-RJ5D24ZW.js → chunk-WY37QAZ4.js} +1 -1
  63. package/Marketplace/{chunk-BDKGOINV.js → chunk-XMZNTZ72.js} +1 -1
  64. package/Marketplace/{chunk-FNU2TKTQ.js → chunk-XSCE2K6J.js} +1 -1
  65. package/Marketplace/{chunk-77MWKV5I.js → chunk-XSJBP4EN.js} +2 -2
  66. package/Marketplace/chunk-YIKOIRZU.js +1 -0
  67. package/Marketplace/{chunk-A57T33JT.js → chunk-ZC7VX6UG.js} +1 -1
  68. package/Marketplace/index.html +2 -2
  69. package/Marketplace/main-CVD4P432.js +1 -0
  70. package/package.json +1 -1
  71. package/Marketplace/chunk-45FZJ4W3.js +0 -1
  72. package/Marketplace/chunk-4DMKVXM7.js +0 -1
  73. package/Marketplace/chunk-4JQLXONG.js +0 -1
  74. package/Marketplace/chunk-7AZDAPB7.js +0 -1
  75. package/Marketplace/chunk-7F74QXF6.js +0 -1
  76. package/Marketplace/chunk-7VLMA7MW.js +0 -1
  77. package/Marketplace/chunk-GPX77ZSI.js +0 -1
  78. package/Marketplace/chunk-GRQD4D2I.js +0 -1
  79. package/Marketplace/chunk-NDLOPOFD.js +0 -1
  80. package/Marketplace/chunk-OEAOBG75.js +0 -1
  81. package/Marketplace/chunk-OHVOVAKD.js +0 -1
  82. package/Marketplace/chunk-P5YM6T6I.js +0 -1
  83. package/Marketplace/chunk-PW42BQIY.js +0 -1
  84. package/Marketplace/chunk-Q2B5GUDO.js +0 -1
  85. package/Marketplace/chunk-QVP2CM7Y.js +0 -5
  86. package/Marketplace/chunk-RM2OSYMV.js +0 -1
  87. package/Marketplace/chunk-TM6DZ3ZF.js +0 -1
  88. package/Marketplace/chunk-UX3OTI5X.js +0 -1
  89. package/Marketplace/chunk-V6GFM5AQ.js +0 -1
  90. package/Marketplace/chunk-WEYKQCVQ.js +0 -1
  91. package/Marketplace/chunk-WWLC64XZ.js +0 -3
  92. package/Marketplace/chunk-XPBMYV5W.js +0 -1
  93. package/Marketplace/chunk-Z3J3CSGS.js +0 -1
  94. package/Marketplace/main-FUX6VJVF.js +0 -1
@@ -1,4 +1,4 @@
1
- import{a as oi,b as ri,c as si}from"./chunk-GHVAGYK3.js";import"./chunk-JVNHFIYT.js";import{a as ni}from"./chunk-RM2OSYMV.js";import{a as Ze,b as qe,d as $e,e as Qe}from"./chunk-PYXL7UF7.js";import{a as qt,b as Ut,c as _t}from"./chunk-PW42BQIY.js";import{m as ei,n as ii}from"./chunk-HJXYT6MI.js";import{A as Ke,h as Ye,m as Ve}from"./chunk-5PS6ZS3N.js";import"./chunk-V3USB3ZU.js";import{c as be}from"./chunk-ERXVXBTU.js";import{r as Je,s as ti}from"./chunk-MFQQEEHJ.js";import"./chunk-GZKOMS4T.js";import{J as Fe,f as Ne,g as He,h as _e,j as Ge,k as We,m as Xe,n as ne,x as Ue}from"./chunk-FXQKRJWU.js";import{$c as zt,Gb as Yt,Gc as It,Hb as ie,Hc as Kt,Ic as Wt,J as ge,Jb as je,Ka as ve,Kc as Ae,La as De,Lc as ke,Mb as Vt,Mc as Me,P as me,Pa as Ie,Rc as Be,Sc as ze,Yb as Bt,Z as ye,ac as oe,ad as Nt,bd as se,ic as bt,ja as Pe,jc as Pt,ka as te,kc as Ht,lc as xe,mc as Se,oa as Ee,oc as Re,pb as Xt,q as fe,rb as Dt,tc as Ce,uc as re,v as Zt,xa as ee,xb as Ft,ya as Oe,za as Le}from"./chunk-OJMQBH6T.js";import"./chunk-EU2KAMEK.js";import{e as ue,g as Jt}from"./chunk-66YHNWRR.js";var we=ue((ai,ae)=>{(function(ht,lt){typeof ae=="object"&&ae.exports?(lt.default=lt,ae.exports=ht.document?lt(ht):lt):typeof define=="function"&&define.amd?define("highcharts/highcharts",function(){return lt(ht)}):(ht.Highcharts&&ht.Highcharts.error(16,!0),ht.Highcharts=lt(ht))})(typeof window<"u"?window:ai,function(ht){function lt(j,H,F,K){j.hasOwnProperty(H)||(j[H]=K.apply(null,F),typeof CustomEvent=="function"&&ht.dispatchEvent(new CustomEvent("HighchartsModuleLoaded",{detail:{path:H,module:j[H]}})))}var I={};return lt(I,"Core/Globals.js",[],function(){var j;return function(H){H.SVG_NS="http://www.w3.org/2000/svg",H.product="Highcharts",H.version="10.3.3",H.win=typeof ht<"u"?ht:{},H.doc=H.win.document,H.svg=H.doc&&H.doc.createElementNS&&!!H.doc.createElementNS(H.SVG_NS,"svg").createSVGRect,H.userAgent=H.win.navigator&&H.win.navigator.userAgent||"",H.isChrome=H.userAgent.indexOf("Chrome")!==-1,H.isFirefox=H.userAgent.indexOf("Firefox")!==-1,H.isMS=/(edge|msie|trident)/i.test(H.userAgent)&&!H.win.opera,H.isSafari=!H.isChrome&&H.userAgent.indexOf("Safari")!==-1,H.isTouchDevice=/(Mobile|Android|Windows Phone)/.test(H.userAgent),H.isWebKit=H.userAgent.indexOf("AppleWebKit")!==-1,H.deg2rad=2*Math.PI/360,H.hasBidiBug=H.isFirefox&&4>parseInt(H.userAgent.split("Firefox/")[1],10),H.hasTouch=!!H.win.TouchEvent,H.marginNames=["plotTop","marginRight","marginBottom","plotLeft"],H.noop=function(){},H.supportsPassiveEvents=function(){var F=!1;if(!H.isMS){var K=Object.defineProperty({},"passive",{get:function(){F=!0}});H.win.addEventListener&&H.win.removeEventListener&&(H.win.addEventListener("testPassive",H.noop,K),H.win.removeEventListener("testPassive",H.noop,K))}return F}(),H.charts=[],H.dateFormats={},H.seriesTypes={},H.symbolSizes={},H.chartCount=0}(j||(j={})),j}),lt(I,"Core/Utilities.js",[I["Core/Globals.js"]],function(j){function H(i,o,u,n){var x=o?"Highcharts error":"Highcharts warning";i===32&&(i=""+x+": Deprecated member");var L=w(i),U=L?""+x+" #"+i+": www.highcharts.com/errors/"+i+"/":i.toString();if(typeof n<"u"){var _="";L&&(U+="?"),b(n,function(r,f){_+=`
1
+ import{a as oi,b as ri,c as si}from"./chunk-GHVAGYK3.js";import"./chunk-JVNHFIYT.js";import{a as ni}from"./chunk-GHFADTRR.js";import{a as Ze,b as qe,d as $e,e as Qe}from"./chunk-PYXL7UF7.js";import{a as qt,b as Ut,c as _t}from"./chunk-RXQX7567.js";import{m as ei,n as ii}from"./chunk-HJXYT6MI.js";import{A as Ke,h as Ye,m as Ve}from"./chunk-5PS6ZS3N.js";import"./chunk-V3USB3ZU.js";import{c as be}from"./chunk-ERXVXBTU.js";import{r as Je,s as ti}from"./chunk-MFQQEEHJ.js";import"./chunk-GZKOMS4T.js";import{J as Fe,f as Ne,g as He,h as _e,j as Ge,k as We,m as Xe,n as ne,x as Ue}from"./chunk-FXQKRJWU.js";import{$c as zt,Gb as Yt,Gc as It,Hb as ie,Hc as Kt,Ic as Wt,J as ge,Jb as je,Ka as ve,Kc as Ae,La as De,Lc as ke,Mb as Vt,Mc as Me,P as me,Pa as Ie,Rc as Be,Sc as ze,Yb as Bt,Z as ye,ac as oe,ad as Nt,bd as se,ic as bt,ja as Pe,jc as Pt,ka as te,kc as Ht,lc as xe,mc as Se,oa as Ee,oc as Re,pb as Xt,q as fe,rb as Dt,tc as Ce,uc as re,v as Zt,xa as ee,xb as Ft,ya as Oe,za as Le}from"./chunk-OJMQBH6T.js";import"./chunk-EU2KAMEK.js";import{e as ue,g as Jt}from"./chunk-66YHNWRR.js";var we=ue((ai,ae)=>{(function(ht,lt){typeof ae=="object"&&ae.exports?(lt.default=lt,ae.exports=ht.document?lt(ht):lt):typeof define=="function"&&define.amd?define("highcharts/highcharts",function(){return lt(ht)}):(ht.Highcharts&&ht.Highcharts.error(16,!0),ht.Highcharts=lt(ht))})(typeof window<"u"?window:ai,function(ht){function lt(j,H,F,K){j.hasOwnProperty(H)||(j[H]=K.apply(null,F),typeof CustomEvent=="function"&&ht.dispatchEvent(new CustomEvent("HighchartsModuleLoaded",{detail:{path:H,module:j[H]}})))}var I={};return lt(I,"Core/Globals.js",[],function(){var j;return function(H){H.SVG_NS="http://www.w3.org/2000/svg",H.product="Highcharts",H.version="10.3.3",H.win=typeof ht<"u"?ht:{},H.doc=H.win.document,H.svg=H.doc&&H.doc.createElementNS&&!!H.doc.createElementNS(H.SVG_NS,"svg").createSVGRect,H.userAgent=H.win.navigator&&H.win.navigator.userAgent||"",H.isChrome=H.userAgent.indexOf("Chrome")!==-1,H.isFirefox=H.userAgent.indexOf("Firefox")!==-1,H.isMS=/(edge|msie|trident)/i.test(H.userAgent)&&!H.win.opera,H.isSafari=!H.isChrome&&H.userAgent.indexOf("Safari")!==-1,H.isTouchDevice=/(Mobile|Android|Windows Phone)/.test(H.userAgent),H.isWebKit=H.userAgent.indexOf("AppleWebKit")!==-1,H.deg2rad=2*Math.PI/360,H.hasBidiBug=H.isFirefox&&4>parseInt(H.userAgent.split("Firefox/")[1],10),H.hasTouch=!!H.win.TouchEvent,H.marginNames=["plotTop","marginRight","marginBottom","plotLeft"],H.noop=function(){},H.supportsPassiveEvents=function(){var F=!1;if(!H.isMS){var K=Object.defineProperty({},"passive",{get:function(){F=!0}});H.win.addEventListener&&H.win.removeEventListener&&(H.win.addEventListener("testPassive",H.noop,K),H.win.removeEventListener("testPassive",H.noop,K))}return F}(),H.charts=[],H.dateFormats={},H.seriesTypes={},H.symbolSizes={},H.chartCount=0}(j||(j={})),j}),lt(I,"Core/Utilities.js",[I["Core/Globals.js"]],function(j){function H(i,o,u,n){var x=o?"Highcharts error":"Highcharts warning";i===32&&(i=""+x+": Deprecated member");var L=w(i),U=L?""+x+" #"+i+": www.highcharts.com/errors/"+i+"/":i.toString();if(typeof n<"u"){var _="";L&&(U+="?"),b(n,function(r,f){_+=`
2
2
  - `.concat(f,": ").concat(r),L&&(U+=encodeURI(f)+"="+encodeURI(r))}),U+=_}C(j,"displayError",{chart:u,code:i,message:U,params:n},function(){if(o)throw Error(U);e.console&&H.messages.indexOf(U)===-1&&console.warn(U)}),H.messages.push(U)}function F(i,o){var u={};return b(i,function(n,x){V(i[x],!0)&&!i.nodeType&&o[x]?(n=F(i[x],o[x]),Object.keys(n).length&&(u[x]=n)):(V(i[x])||i[x]!==o[x]||x in i&&!(x in o))&&(u[x]=i[x])}),u}function K(i,o){return parseInt(i,o||10)}function Z(i){return typeof i=="string"}function Q(i){return i=Object.prototype.toString.call(i),i==="[object Array]"||i==="[object Array Iterator]"}function V(i,o){return!!i&&typeof i=="object"&&(!o||!Q(i))}function P(i){return V(i)&&typeof i.nodeType=="number"}function z(i){var o=i&&i.constructor;return!(!V(i,!0)||P(i)||!o||!o.name||o.name==="Object")}function w(i){return typeof i=="number"&&!isNaN(i)&&1/0>i&&-1/0<i}function g(i){return typeof i<"u"&&i!==null}function y(i,o,u){var n=Z(o)&&!g(u),x,L=function(U,_){g(U)?i.setAttribute(_,U):n?(x=i.getAttribute(_))||_!=="class"||(x=i.getAttribute(_+"Name")):i.removeAttribute(_)};return Z(o)?L(u,o):b(o,L),x}function v(i,o){var u;i||(i={});for(u in o)i[u]=o[u];return i}function A(){for(var i=arguments,o=i.length,u=0;u<o;u++){var n=i[u];if(typeof n<"u"&&n!==null)return n}}function S(i,o){j.isMS&&!j.svg&&o&&g(o.opacity)&&(o.filter="alpha(opacity=".concat(100*o.opacity,")")),v(i.style,o)}function M(i){return Math.pow(10,Math.floor(Math.log(i)/Math.LN10))}function k(i,o){return 1e14<i?i:parseFloat(i.toPrecision(o||14))}function m(i,o,u){var n=j.getStyle||m;if(o==="width")return o=Math.min(i.offsetWidth,i.scrollWidth),u=i.getBoundingClientRect&&i.getBoundingClientRect().width,u<o&&u>=o-1&&(o=Math.floor(u)),Math.max(0,o-(n(i,"padding-left",!0)||0)-(n(i,"padding-right",!0)||0));if(o==="height")return Math.max(0,Math.min(i.offsetHeight,i.scrollHeight)-(n(i,"padding-top",!0)||0)-(n(i,"padding-bottom",!0)||0));if(e.getComputedStyle||H(27,!0),i=e.getComputedStyle(i,void 0)){var x=i.getPropertyValue(o);A(u,o!=="opacity")&&(x=K(x))}return x}function b(i,o,u){for(var n in i)Object.hasOwnProperty.call(i,n)&&o.call(u||i[n],i[n],n,i)}function T(i,o,u){function n(_,r){var f=i.removeEventListener||j.removeEventListenerPolyfill;f&&f.call(i,_,r,!1)}function x(_){var r;if(i.nodeName){if(o){var f={};f[o]=!0}else f=_;b(f,function(O,B){if(_[B])for(r=_[B].length;r--;)n(B,_[B][r].fn)})}}var L=typeof i=="function"&&i.prototype||i;if(Object.hasOwnProperty.call(L,"hcEvents")){var U=L.hcEvents;o?(L=U[o]||[],u?(U[o]=L.filter(function(_){return u!==_.fn}),n(o,u)):(x(U),U[o]=[])):(x(U),delete L.hcEvents)}}function C(i,o,u,n){if(u=u||{},h.createEvent&&(i.dispatchEvent||i.fireEvent&&i!==j)){var x=h.createEvent("Events");x.initEvent(o,!0,!0),u=v(x,u),i.dispatchEvent?i.dispatchEvent(u):i.fireEvent(o,u)}else if(i.hcEvents){u.target||v(u,{preventDefault:function(){u.defaultPrevented=!0},target:i,type:o}),x=[];for(var L=i,U=!1;L.hcEvents;)Object.hasOwnProperty.call(L,"hcEvents")&&L.hcEvents[o]&&(x.length&&(U=!0),x.unshift.apply(x,L.hcEvents[o])),L=Object.getPrototypeOf(L);U&&x.sort(function(_,r){return _.order-r.order}),x.forEach(function(_){_.fn.call(i,u)===!1&&u.preventDefault()})}n&&!u.defaultPrevented&&n.call(i,u)}var s=j.charts,h=j.doc,e=j.win;(H||(H={})).messages=[],Math.easeInOutSine=function(i){return-.5*(Math.cos(Math.PI*i)-1)};var l=Array.prototype.find?function(i,o){return i.find(o)}:function(i,o){var u,n=i.length;for(u=0;u<n;u++)if(o(i[u],u))return i[u]};b({map:"map",each:"forEach",grep:"filter",reduce:"reduce",some:"some"},function(i,o){j[o]=function(u){var n;return H(32,!1,void 0,(n={},n["Highcharts.".concat(o)]="use Array.".concat(i),n)),Array.prototype[i].apply(u,[].slice.call(arguments,1))}});var t,p=function(){var i=Math.random().toString(36).substring(2,9)+"-",o=0;return function(){return"highcharts-"+(t?"":i)+o++}}();return e.jQuery&&(e.jQuery.fn.highcharts=function(){var i=[].slice.call(arguments);if(this[0])return i[0]?(new j[Z(i[0])?i.shift():"Chart"](this[0],i[0],i[1]),this):s[y(this[0],"data-highcharts-chart")]}),l={addEvent:function(i,o,u,n){n===void 0&&(n={});var x=typeof i=="function"&&i.prototype||i;Object.hasOwnProperty.call(x,"hcEvents")||(x.hcEvents={}),x=x.hcEvents,j.Point&&i instanceof j.Point&&i.series&&i.series.chart&&(i.series.chart.runTrackerClick=!0);var L=i.addEventListener||j.addEventListenerPolyfill;return L&&L.call(i,o,u,j.supportsPassiveEvents?{passive:n.passive===void 0?o.indexOf("touch")!==-1:n.passive,capture:!1}:!1),x[o]||(x[o]=[]),x[o].push({fn:u,order:typeof n.order=="number"?n.order:1/0}),x[o].sort(function(U,_){return U.order-_.order}),function(){T(i,o,u)}},arrayMax:function(i){for(var o=i.length,u=i[0];o--;)i[o]>u&&(u=i[o]);return u},arrayMin:function(i){for(var o=i.length,u=i[0];o--;)i[o]<u&&(u=i[o]);return u},attr:y,clamp:function(i,o,u){return i>o?i<u?i:u:o},cleanRecursively:F,clearTimeout:function(i){g(i)&&clearTimeout(i)},correctFloat:k,createElement:function(i,o,u,n,x){return i=h.createElement(i),o&&v(i,o),x&&S(i,{padding:"0",border:"none",margin:"0"}),u&&S(i,u),n&&n.appendChild(i),i},css:S,defined:g,destroyObjectProperties:function(i,o){b(i,function(u,n){u&&u!==o&&u.destroy&&u.destroy(),delete i[n]})},discardElement:function(i){i&&i.parentElement&&i.parentElement.removeChild(i)},erase:function(i,o){for(var u=i.length;u--;)if(i[u]===o){i.splice(u,1);break}},error:H,extend:v,extendClass:function(i,o){var u=function(){};return u.prototype=new i,v(u.prototype,o),u},find:l,fireEvent:C,getMagnitude:M,getNestedProperty:function(i,o){for(i=i.split(".");i.length&&g(o);){var u=i.shift();if(typeof u>"u"||u==="__proto__"||(o=o[u],!g(o)||typeof o=="function"||typeof o.nodeType=="number"||o===e))return}return o},getStyle:m,inArray:function(i,o,u){return H(32,!1,void 0,{"Highcharts.inArray":"use Array.indexOf"}),o.indexOf(i,u)},isArray:Q,isClass:z,isDOMElement:P,isFunction:function(i){return typeof i=="function"},isNumber:w,isObject:V,isString:Z,keys:function(i){return H(32,!1,void 0,{"Highcharts.keys":"use Object.keys"}),Object.keys(i)},merge:function(){var i,o=arguments,u={},n=function(L,U){return typeof L!="object"&&(L={}),b(U,function(_,r){r!=="__proto__"&&r!=="constructor"&&(!V(_,!0)||z(_)||P(_)?L[r]=U[r]:L[r]=n(L[r]||{},_))}),L};o[0]===!0&&(u=o[1],o=Array.prototype.slice.call(o,2));var x=o.length;for(i=0;i<x;i++)u=n(u,o[i]);return u},normalizeTickInterval:function(i,o,u,n,x){var L=i;u=A(u,M(i));var U=i/u;for(o||(o=x?[1,1.2,1.5,2,2.5,3,4,5,6,8,10]:[1,2,2.5,5,10],n===!1&&(u===1?o=o.filter(function(_){return _%1===0}):.1>=u&&(o=[1/u]))),n=0;n<o.length&&(L=o[n],!(x&&L*u>=i||!x&&U<=(o[n]+(o[n+1]||o[n]))/2));n++);return L=k(L*u,-Math.round(Math.log(.001)/Math.LN10))},objectEach:b,offset:function(i){var o=h.documentElement;return i=i.parentElement||i.parentNode?i.getBoundingClientRect():{top:0,left:0,width:0,height:0},{top:i.top+(e.pageYOffset||o.scrollTop)-(o.clientTop||0),left:i.left+(e.pageXOffset||o.scrollLeft)-(o.clientLeft||0),width:i.width,height:i.height}},pad:function(i,o,u){return Array((o||2)+1-String(i).replace("-","").length).join(u||"0")+i},pick:A,pInt:K,relativeLength:function(i,o,u){return/%$/.test(i)?o*parseFloat(i)/100+(u||0):parseFloat(i)},removeEvent:T,splat:function(i){return Q(i)?i:[i]},stableSort:function(i,o){var u=i.length,n,x;for(x=0;x<u;x++)i[x].safeI=x;for(i.sort(function(L,U){return n=o(L,U),n===0?L.safeI-U.safeI:n}),x=0;x<u;x++)delete i[x].safeI},syncTimeout:function(i,o,u){return 0<o?setTimeout(i,o,u):(i.call(0,u),-1)},timeUnits:{millisecond:1,second:1e3,minute:6e4,hour:36e5,day:864e5,week:6048e5,month:24192e5,year:314496e5},uniqueKey:p,useSerialIds:function(i){return t=A(i,t)},wrap:function(i,o,u){var n=i[o];i[o]=function(){var x=arguments,L=this;return u.apply(this,[function(){return n.apply(L,arguments.length?arguments:x)}].concat([].slice.call(arguments)))}}},l}),lt(I,"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"}}),lt(I,"Core/Color/Color.js",[I["Core/Globals.js"],I["Core/Utilities.js"]],function(j,H){var F=H.isNumber,K=H.merge,Z=H.pInt;return H=function(){function Q(V){this.rgba=[NaN,NaN,NaN,NaN],this.input=V;var P=j.Color;if(P&&P!==Q)return new P(V);if(!(this instanceof Q))return new Q(V);this.init(V)}return Q.parse=function(V){return V?new Q(V):Q.None},Q.prototype.init=function(V){var P;if(typeof V=="object"&&typeof V.stops<"u")this.stops=V.stops.map(function(y){return new Q(y[1])});else if(typeof V=="string"){if(this.input=V=Q.names[V.toLowerCase()]||V,V.charAt(0)==="#"){var z=V.length,w=parseInt(V.substr(1),16);z===7?P=[(w&16711680)>>16,(w&65280)>>8,w&255,1]:z===4&&(P=[(w&3840)>>4|(w&3840)>>8,(w&240)>>4|w&240,(w&15)<<4|w&15,1])}if(!P)for(w=Q.parsers.length;w--&&!P;){var g=Q.parsers[w];(z=g.regex.exec(V))&&(P=g.parse(z))}}P&&(this.rgba=P)},Q.prototype.get=function(V){var P=this.input,z=this.rgba;if(typeof P=="object"&&typeof this.stops<"u"){var w=K(P);return w.stops=[].slice.call(w.stops),this.stops.forEach(function(g,y){w.stops[y]=[w.stops[y][0],g.get(V)]}),w}return z&&F(z[0])?V==="rgb"||!V&&z[3]===1?"rgb("+z[0]+","+z[1]+","+z[2]+")":V==="a"?"".concat(z[3]):"rgba("+z.join(",")+")":P},Q.prototype.brighten=function(V){var P=this.rgba;if(this.stops)this.stops.forEach(function(w){w.brighten(V)});else if(F(V)&&V!==0)for(var z=0;3>z;z++)P[z]+=Z(255*V),0>P[z]&&(P[z]=0),255<P[z]&&(P[z]=255);return this},Q.prototype.setOpacity=function(V){return this.rgba[3]=V,this},Q.prototype.tweenTo=function(V,P){var z=this.rgba,w=V.rgba;return!F(z[0])||!F(w[0])?V.input||"none":(V=w[3]!==1||z[3]!==1,(V?"rgba(":"rgb(")+Math.round(w[0]+(z[0]-w[0])*(1-P))+","+Math.round(w[1]+(z[1]-w[1])*(1-P))+","+Math.round(w[2]+(z[2]-w[2])*(1-P))+(V?","+(w[3]+(z[3]-w[3])*(1-P)):"")+")")},Q.names={white:"#ffffff",black:"#000000"},Q.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(V){return[Z(V[1]),Z(V[2]),Z(V[3]),parseFloat(V[4],10)]}},{regex:/rgb\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*\)/,parse:function(V){return[Z(V[1]),Z(V[2]),Z(V[3]),1]}}],Q.None=new Q(""),Q}(),H}),lt(I,"Core/Color/Palettes.js",[],function(){return{colors:"#7cb5ec #434348 #90ed7d #f7a35c #8085e9 #f15c80 #e4d354 #2b908f #f45b5b #91e8e1".split(" ")}}),lt(I,"Core/Time.js",[I["Core/Globals.js"],I["Core/Utilities.js"]],function(j,H){var F=j.win,K=H.defined,Z=H.error,Q=H.extend,V=H.isObject,P=H.merge,z=H.objectEach,w=H.pad,g=H.pick,y=H.splat,v=H.timeUnits,A=j.isSafari&&F.Intl&&F.Intl.DateTimeFormat.prototype.formatRange,S=j.isSafari&&F.Intl&&!F.Intl.DateTimeFormat.prototype.formatRange;return H=function(){function M(k){this.options={},this.variableTimezone=this.useUTC=!1,this.Date=F.Date,this.getTimezoneOffset=this.timezoneOffsetFunction(),this.update(k)}return M.prototype.get=function(k,m){if(this.variableTimezone||this.timezoneOffset){var b=m.getTime(),T=b-this.getTimezoneOffset(m);return m.setTime(T),k=m["getUTC"+k](),m.setTime(b),k}return this.useUTC?m["getUTC"+k]():m["get"+k]()},M.prototype.set=function(k,m,b){if(this.variableTimezone||this.timezoneOffset){if(k==="Milliseconds"||k==="Seconds"||k==="Minutes"&&this.getTimezoneOffset(m)%36e5===0)return m["setUTC"+k](b);var T=this.getTimezoneOffset(m);return T=m.getTime()-T,m.setTime(T),m["setUTC"+k](b),k=this.getTimezoneOffset(m),T=m.getTime()+k,m.setTime(T)}return this.useUTC||A&&k==="FullYear"?m["setUTC"+k](b):m["set"+k](b)},M.prototype.update=function(k){k===void 0&&(k={});var m=g(k.useUTC,!0);this.options=k=P(!0,this.options,k),this.Date=k.Date||F.Date||Date,this.timezoneOffset=(this.useUTC=m)&&k.timezoneOffset||void 0,this.getTimezoneOffset=this.timezoneOffsetFunction(),this.variableTimezone=m&&!(!k.getTimezoneOffset&&!k.timezone)},M.prototype.makeTime=function(k,m,b,T,C,s){if(this.useUTC){var h=this.Date.UTC.apply(0,arguments),e=this.getTimezoneOffset(h);h+=e;var l=this.getTimezoneOffset(h);e!==l?h+=l-e:e-36e5!==this.getTimezoneOffset(h-36e5)||S||(h-=36e5)}else h=new this.Date(k,m,g(b,1),g(T,0),g(C,0),g(s,0)).getTime();return h},M.prototype.timezoneOffsetFunction=function(){var k=this,m=this.options,b=m.getTimezoneOffset,T=m.moment||F.moment;if(!this.useUTC)return function(C){return 6e4*new Date(C.toString()).getTimezoneOffset()};if(m.timezone){if(T)return function(C){return 6e4*-T.tz(C,m.timezone).utcOffset()};Z(25)}return this.useUTC&&b?function(C){return 6e4*b(C.valueOf())}:function(){return 6e4*(k.timezoneOffset||0)}},M.prototype.dateFormat=function(k,m,b){if(!K(m)||isNaN(m))return j.defaultOptions.lang&&j.defaultOptions.lang.invalidDate||"";k=g(k,"%Y-%m-%d %H:%M:%S");var T=this,C=new this.Date(m),s=this.get("Hours",C),h=this.get("Day",C),e=this.get("Date",C),l=this.get("Month",C),t=this.get("FullYear",C),p=j.defaultOptions.lang,i=p&&p.weekdays,o=p&&p.shortWeekdays;return C=Q({a:o?o[h]:i[h].substr(0,3),A:i[h],d:w(e),e:w(e,2," "),w:h,b:p.shortMonths[l],B:p.months[l],m:w(l+1),o:l+1,y:t.toString().substr(2,2),Y:t,H:w(s),k:s,I:w(s%12||12),l:s%12||12,M:w(this.get("Minutes",C)),p:12>s?"AM":"PM",P:12>s?"am":"pm",S:w(C.getSeconds()),L:w(Math.floor(m%1e3),3)},j.dateFormats),z(C,function(u,n){for(;k.indexOf("%"+n)!==-1;)k=k.replace("%"+n,typeof u=="function"?u.call(T,m):u)}),b?k.substr(0,1).toUpperCase()+k.substr(1):k},M.prototype.resolveDTLFormat=function(k){return V(k,!0)?k:(k=y(k),{main:k[0],from:k[1],to:k[2]})},M.prototype.getTimeTicks=function(k,m,b,T){var C=this,s=[],h={},e=new C.Date(m),l=k.unitRange,t=k.count||1,p;if(T=g(T,1),K(m)){if(C.set("Milliseconds",e,l>=v.second?0:t*Math.floor(C.get("Milliseconds",e)/t)),l>=v.second&&C.set("Seconds",e,l>=v.minute?0:t*Math.floor(C.get("Seconds",e)/t)),l>=v.minute&&C.set("Minutes",e,l>=v.hour?0:t*Math.floor(C.get("Minutes",e)/t)),l>=v.hour&&C.set("Hours",e,l>=v.day?0:t*Math.floor(C.get("Hours",e)/t)),l>=v.day&&C.set("Date",e,l>=v.month?1:Math.max(1,t*Math.floor(C.get("Date",e)/t))),l>=v.month){C.set("Month",e,l>=v.year?0:t*Math.floor(C.get("Month",e)/t));var i=C.get("FullYear",e)}l>=v.year&&C.set("FullYear",e,i-i%t),l===v.week&&(i=C.get("Day",e),C.set("Date",e,C.get("Date",e)-i+T+(i<T?-7:0))),i=C.get("FullYear",e),T=C.get("Month",e);var o=C.get("Date",e),u=C.get("Hours",e);for(m=e.getTime(),!C.variableTimezone&&C.useUTC||!K(b)||(p=b-m>4*v.month||C.getTimezoneOffset(m)!==C.getTimezoneOffset(b)),m=e.getTime(),e=1;m<b;)s.push(m),m=l===v.year?C.makeTime(i+e*t,0):l===v.month?C.makeTime(i,T+e*t):!p||l!==v.day&&l!==v.week?p&&l===v.hour&&1<t?C.makeTime(i,T,o,u+e*t):m+l*t:C.makeTime(i,T,o+e*t*(l===v.day?1:7)),e++;s.push(m),l<=v.hour&&1e4>s.length&&s.forEach(function(n){n%18e5===0&&C.dateFormat("%H%M%S%L",n)==="000000000"&&(h[n]="day")})}return s.info=Q(k,{higherRanks:h,totalRange:l*t}),s},M.prototype.getDateFormat=function(k,m,b,T){var C=this.dateFormat("%m-%d %H:%M:%S.%L",m),s={millisecond:15,second:12,minute:9,hour:6,day:3},h="millisecond";for(e in v){if(k===v.week&&+this.dateFormat("%w",m)===b&&C.substr(6)==="00:00:00.000"){var e="week";break}if(v[e]>k){e=h;break}if(s[e]&&C.substr(s[e])!=="01-01 00:00:00.000".substr(s[e]))break;e!=="week"&&(h=e)}return this.resolveDTLFormat(T[e]).main},M}(),H}),lt(I,"Core/Defaults.js",[I["Core/Chart/ChartDefaults.js"],I["Core/Color/Color.js"],I["Core/Globals.js"],I["Core/Color/Palettes.js"],I["Core/Time.js"],I["Core/Utilities.js"]],function(j,H,F,K,Z,Q){H=H.parse;var V=Q.merge,P={colors:K.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:j,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:F.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:F.isTouchDevice?25:10,headerFormat:'<span style="font-size: 10px">{point.key}</span><br/>',pointFormat:'<span style="color:{point.color}">\u25CF</span> {series.name}: <b>{point.y}</b><br/>',backgroundColor:H("#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"}};P.chart.styledMode=!1;var z=new Z(V(P.global,P.time));return j={defaultOptions:P,defaultTime:z,getOptions:function(){return P},setOptions:function(w){return V(!0,P,w),(w.time||w.global)&&(F.time?F.time.update(V(P.global,P.time,w.global,w.time)):F.time=z),P}},j}),lt(I,"Core/Animation/Fx.js",[I["Core/Color/Color.js"],I["Core/Globals.js"],I["Core/Utilities.js"]],function(j,H,F){var K=j.parse,Z=H.win,Q=F.isNumber,V=F.objectEach;return function(){function P(z,w,g){this.pos=NaN,this.options=w,this.elem=z,this.prop=g}return P.prototype.dSetter=function(){var z=this.paths,w=z&&z[0];z=z&&z[1];var g=this.now||0,y=[];if(g!==1&&w&&z)if(w.length===z.length&&1>g)for(var v=0;v<z.length;v++){for(var A=w[v],S=z[v],M=[],k=0;k<S.length;k++){var m=A[k],b=S[k];Q(m)&&Q(b)&&(S[0]!=="A"||k!==4&&k!==5)?M[k]=m+g*(b-m):M[k]=b}y.push(M)}else y=z;else y=this.toD||[];this.elem.attr("d",y,void 0,!0)},P.prototype.update=function(){var z=this.elem,w=this.prop,g=this.now,y=this.options.step;this[w+"Setter"]?this[w+"Setter"]():z.attr?z.element&&z.attr(w,g,null,!0):z.style[w]=g+this.unit,y&&y.call(z,g,this)},P.prototype.run=function(z,w,g){var y=this,v=y.options,A=function(k){return A.stopped?!1:y.step(k)},S=Z.requestAnimationFrame||function(k){setTimeout(k,13)},M=function(){for(var k=0;k<P.timers.length;k++)P.timers[k]()||P.timers.splice(k--,1);P.timers.length&&S(M)};z!==w||this.elem["forceAnimate:"+this.prop]?(this.startTime=+new Date,this.start=z,this.end=w,this.unit=g,this.now=this.start,this.pos=0,A.elem=this.elem,A.prop=this.prop,A()&&P.timers.push(A)===1&&S(M)):(delete v.curAnim[this.prop],v.complete&&Object.keys(v.curAnim).length===0&&v.complete.call(this.elem))},P.prototype.step=function(z){var w=+new Date,g=this.options,y=this.elem,v=g.complete,A=g.duration,S=g.curAnim;if(y.attr&&!y.element)z=!1;else if(z||w>=A+this.startTime){this.now=this.end,this.pos=1,this.update();var M=S[this.prop]=!0;V(S,function(k){k!==!0&&(M=!1)}),M&&v&&v.call(y),z=!1}else this.pos=g.easing((w-this.startTime)/A),this.now=this.start+(this.end-this.start)*this.pos,this.update(),z=!0;return z},P.prototype.initPath=function(z,w,g){function y(C,s){for(;C.length<T;){var h=C[0],e=s[T-C.length];e&&h[0]==="M"&&(C[0]=e[0]==="C"?["C",h[1],h[2],h[1],h[2],h[1],h[2]]:["L",h[1],h[2]]),C.unshift(h),M&&(h=C.pop(),C.push(C[C.length-1],h))}}function v(C,s){for(;C.length<T;)if(s=C[Math.floor(C.length/k)-1].slice(),s[0]==="C"&&(s[1]=s[5],s[2]=s[6]),M){var h=C[Math.floor(C.length/k)].slice();C.splice(C.length/2,0,s,h)}else C.push(s)}var A=z.startX,S=z.endX;g=g.slice();var M=z.isArea,k=M?2:1;if(w=w&&w.slice(),!w)return[g,g];if(A&&S&&S.length){for(z=0;z<A.length;z++)if(A[z]===S[0]){var m=z;break}else if(A[0]===S[S.length-A.length+z]){m=z;var b=!0;break}else if(A[A.length-1]===S[S.length-A.length+z]){m=A.length-z;break}typeof m>"u"&&(w=[])}if(w.length&&Q(m)){var T=g.length+m*k;b?(y(w,g),v(g,w)):(y(g,w),v(w,g))}return[w,g]},P.prototype.fillSetter=function(){P.prototype.strokeSetter.apply(this,arguments)},P.prototype.strokeSetter=function(){this.elem.attr(this.prop,K(this.start).tweenTo(K(this.end),this.pos),void 0,!0)},P.timers=[],P}()}),lt(I,"Core/Animation/AnimationUtilities.js",[I["Core/Animation/Fx.js"],I["Core/Utilities.js"]],function(j,H){function F(v){return z(v)?w({duration:500,defer:0},v):{duration:v?500:0,defer:0}}function K(v,A){for(var S=j.timers.length;S--;)j.timers[S].elem!==v||A&&A!==j.timers[S].prop||(j.timers[S].stopped=!0)}var Z=H.defined,Q=H.getStyle,V=H.isArray,P=H.isNumber,z=H.isObject,w=H.merge,g=H.objectEach,y=H.pick;return{animate:function(v,A,S){var M,k="",m,b;if(!z(S)){var T=arguments;S={duration:T[2],easing:T[3],complete:T[4]}}P(S.duration)||(S.duration=400),S.easing=typeof S.easing=="function"?S.easing:Math[S.easing]||Math.easeInOutSine,S.curAnim=w(A),g(A,function(C,s){K(v,s),b=new j(v,S,s),m=void 0,s==="d"&&V(A.d)?(b.paths=b.initPath(v,v.pathArray,A.d),b.toD=A.d,M=0,m=1):v.attr?M=v.attr(s):(M=parseFloat(Q(v,s))||0,s!=="opacity"&&(k="px")),m||(m=C),typeof m=="string"&&m.match("px")&&(m=m.replace(/px/g,"")),b.run(M,m,k)})},animObject:F,getDeferredAnimation:function(v,A,S){var M=F(A),k=0,m=0;return(S?[S]:v.series).forEach(function(b){b=F(b.options.animation),k=A&&Z(A.defer)?M.defer:Math.max(k,b.duration+b.defer),m=Math.min(M.duration,b.duration)}),v.renderer.forExport&&(k=0),{defer:Math.max(0,k-m),duration:Math.min(k,m)}},setAnimation:function(v,A){A.renderer.globalAnimation=y(v,A.options.chart.animation,!0)},stop:K}}),lt(I,"Core/Renderer/HTML/AST.js",[I["Core/Globals.js"],I["Core/Utilities.js"]],function(j,H){var F=j.SVG_NS,K=H.attr,Z=H.createElement,Q=H.css,V=H.error,P=H.isFunction,z=H.isString,w=H.objectEach,g=H.splat,y=(H=j.win.trustedTypes)&&P(H.createPolicy)&&H.createPolicy("highcharts",{createHTML:function(S){return S}}),v=y?y.createHTML(""):"";try{var A=!!new DOMParser().parseFromString(v,"text/html")}catch{A=!1}return P=function(){function S(M){this.nodes=typeof M=="string"?this.parseMarkup(M):M}return S.filterUserAttributes=function(M){return w(M,function(k,m){var b=!0;S.allowedAttributes.indexOf(m)===-1&&(b=!1),["background","dynsrc","href","lowsrc","src"].indexOf(m)!==-1&&(b=z(k)&&S.allowedReferences.some(function(T){return k.indexOf(T)===0})),b||(V(33,!1,void 0,{"Invalid attribute in config":"".concat(m)}),delete M[m]),z(k)&&M[m]&&(M[m]=k.replace(/</g,"&lt;"))}),M},S.parseStyle=function(M){return M.split(";").reduce(function(k,m){m=m.split(":").map(function(T){return T.trim()});var b=m.shift();return b&&m.length&&(k[b.replace(/-([a-z])/g,function(T){return T[1].toUpperCase()})]=m.join(":")),k},{})},S.setElementHTML=function(M,k){M.innerHTML=S.emptyHTML,k&&new S(k).addToDOM(M)},S.prototype.addToDOM=function(M){function k(m,b){var T;return g(m).forEach(function(C){var s=C.tagName,h=C.textContent?j.doc.createTextNode(C.textContent):void 0,e=S.bypassHTMLFiltering;if(s)if(s==="#text")var l=h;else if(S.allowedTags.indexOf(s)!==-1||e){s=j.doc.createElementNS(s==="svg"?F:b.namespaceURI||F,s);var t=C.attributes||{};w(C,function(p,i){i!=="tagName"&&i!=="attributes"&&i!=="children"&&i!=="style"&&i!=="textContent"&&(t[i]=p)}),K(s,e?t:S.filterUserAttributes(t)),C.style&&Q(s,C.style),h&&s.appendChild(h),k(C.children||[],s),l=s}else V(33,!1,void 0,{"Invalid tagName in config":s});l&&b.appendChild(l),T=l}),T}return k(this.nodes,M)},S.prototype.parseMarkup=function(M){var k=[];if(M=M.trim().replace(/ style=(["'])/g," data-style=$1"),A)M=new DOMParser().parseFromString(y?y.createHTML(M):M,"text/html");else{var m=Z("div");m.innerHTML=M,M={body:m}}var b=function(T,C){var s=T.nodeName.toLowerCase(),h={tagName:s};if(s==="#text"&&(h.textContent=T.textContent||""),s=T.attributes){var e={};[].forEach.call(s,function(t){t.name==="data-style"?h.style=S.parseStyle(t.value):e[t.name]=t.value}),h.attributes=e}if(T.childNodes.length){var l=[];[].forEach.call(T.childNodes,function(t){b(t,l)}),l.length&&(h.children=l)}C.push(h)};return[].forEach.call(M.body.childNodes,function(T){return b(T,k)}),k},S.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(" "),S.allowedReferences="https:// http:// mailto: / ../ ./ #".split(" "),S.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(" "),S.emptyHTML=v,S.bypassHTMLFiltering=!1,S}(),P}),lt(I,"Core/FormatUtilities.js",[I["Core/Defaults.js"],I["Core/Utilities.js"]],function(j,H){function F(w,g,y,v){w=+w||0,g=+g;var A=K.lang,S=(w.toString().split(".")[1]||"").split("e")[0].length,M=w.toString().split("e"),k=g;if(g===-1)g=Math.min(S,20);else if(!V(g))g=2;else if(g&&M[1]&&0>M[1]){var m=g+ +M[1];0<=m?(M[0]=(+M[0]).toExponential(m).split("e")[0],g=m):(M[0]=M[0].split(".")[0]||0,w=20>g?(M[0]*Math.pow(10,M[1])).toFixed(g):0,M[1]=0)}m=(Math.abs(M[1]?M[0]:w)+Math.pow(10,-Math.max(g,S)-1)).toFixed(g),S=String(z(m));var b=3<S.length?S.length%3:0;return y=P(y,A.decimalPoint),v=P(v,A.thousandsSep),w=(0>w?"-":"")+(b?S.substr(0,b)+v:""),w=0>+M[1]&&!k?"0":w+S.substr(b).replace(/(\d{3})(?=\d)/g,"$1"+v),g&&(w+=y+m.slice(-g)),M[1]&&+w!=0&&(w+="e"+M[1]),w}var K=j.defaultOptions,Z=j.defaultTime,Q=H.getNestedProperty,V=H.isNumber,P=H.pick,z=H.pInt;return{dateFormat:function(w,g,y){return Z.dateFormat(w,g,y)},format:function(w,g,y){var v="{",A=!1,S=/f$/,M=/\.([0-9])/,k=K.lang,m=y&&y.time||Z;y=y&&y.numberFormatter||F;for(var b=[];w;){var T=w.indexOf(v);if(T===-1)break;var C=w.slice(0,T);if(A){if(C=C.split(":"),v=Q(C.shift()||"",g),C.length&&typeof v=="number")if(C=C.join(":"),S.test(C)){var s=parseInt((C.match(M)||["","-1"])[1],10);v!==null&&(v=y(v,s,k.decimalPoint,-1<C.indexOf(",")?k.thousandsSep:""))}else v=m.dateFormat(C,v);b.push(v)}else b.push(C);w=w.slice(T+1),v=(A=!A)?"}":"{"}return b.push(w),b.join("")},numberFormat:F}}),lt(I,"Core/Renderer/RendererUtilities.js",[I["Core/Utilities.js"]],function(j){var H=j.clamp,F=j.pick,K=j.stableSort,Z;return function(Q){function V(P,z,w){var g=P,y=g.reducedLen||z,v=function(b,T){return(T.rank||0)-(b.rank||0)},A=function(b,T){return b.target-T.target},S,M=!0,k=[],m=0;for(S=P.length;S--;)m+=P[S].size;if(m>y){for(K(P,v),m=S=0;m<=y;)m+=P[S].size,S++;k=P.splice(S-1,P.length)}for(K(P,A),P=P.map(function(b){return{size:b.size,targets:[b.target],align:F(b.align,.5)}});M;){for(S=P.length;S--;)y=P[S],v=(Math.min.apply(0,y.targets)+Math.max.apply(0,y.targets))/2,y.pos=H(v-y.size*y.align,0,z-y.size);for(S=P.length,M=!1;S--;)0<S&&P[S-1].pos+P[S-1].size>P[S].pos&&(P[S-1].size+=P[S].size,P[S-1].targets=P[S-1].targets.concat(P[S].targets),P[S-1].align=.5,P[S-1].pos+P[S-1].size>z&&(P[S-1].pos=z-P[S-1].size),P.splice(S,1),M=!0)}return g.push.apply(g,k),S=0,P.some(function(b){var T=0;return(b.targets||[]).some(function(){return g[S].pos=b.pos+T,typeof w<"u"&&Math.abs(g[S].pos-g[S].target)>w?(g.slice(0,S+1).forEach(function(C){return delete C.pos}),g.reducedLen=(g.reducedLen||z)-.1*z,g.reducedLen>.1*z&&V(g,z,w),!0):(T+=g[S].size,S++,!1)})}),K(g,A),g}Q.distribute=V}(Z||(Z={})),Z}),lt(I,"Core/Renderer/SVG/SVGElement.js",[I["Core/Animation/AnimationUtilities.js"],I["Core/Color/Color.js"],I["Core/Globals.js"],I["Core/Utilities.js"]],function(j,H,F,K){var Z=j.animate,Q=j.animObject,V=j.stop,P=F.deg2rad,z=F.doc,w=F.svg,g=F.SVG_NS,y=F.win,v=K.addEvent,A=K.attr,S=K.createElement,M=K.css,k=K.defined,m=K.erase,b=K.extend,T=K.fireEvent,C=K.isArray,s=K.isFunction,h=K.isString,e=K.merge,l=K.objectEach,t=K.pick,p=K.pInt,i=K.syncTimeout,o=K.uniqueKey;return j=function(){function u(){this.element=void 0,this.onEvents={},this.opacity=1,this.renderer=void 0,this.SVG_NS=g,this.symbolCustomAttribs="x y width height r start end innerR anchorX anchorY rounded".split(" ")}return u.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},u.prototype._defaultSetter=function(n,x,L){L.setAttribute(x,n)},u.prototype.add=function(n){var x=this.renderer,L=this.element;if(n&&(this.parentGroup=n),typeof this.textStr<"u"&&this.element.nodeName==="text"&&x.buildText(this),this.added=!0,!n||n.handleZ||this.zIndex)var U=this.zIndexSetter();return U||(n?n.element:x.box).appendChild(L),this.onAdd&&this.onAdd(),this},u.prototype.addClass=function(n,x){var L=x?"":this.attr("class")||"";return n=(n||"").split(/ /g).reduce(function(U,_){return L.indexOf(_)===-1&&U.push(_),U},L?[L]:[]).join(" "),n!==L&&this.attr("class",n),this},u.prototype.afterSetters=function(){this.doTransform&&(this.updateTransform(),this.doTransform=!1)},u.prototype.align=function(n,x,L){var U={},_=this.renderer,r=_.alignedObjects,f,O,B;n?(this.alignOptions=n,this.alignByTranslate=x,(!L||h(L))&&(this.alignTo=f=L||"renderer",m(r,this),r.push(this),L=void 0)):(n=this.alignOptions,x=this.alignByTranslate,f=this.alignTo),L=t(L,_[f],f==="scrollablePlotBox"?_.plotBox:void 0,_),f=n.align;var R=n.verticalAlign;return _=(L.x||0)+(n.x||0),r=(L.y||0)+(n.y||0),f==="right"?O=1:f==="center"&&(O=2),O&&(_+=(L.width-(n.width||0))/O),U[x?"translateX":"x"]=Math.round(_),R==="bottom"?B=1:R==="middle"&&(B=2),B&&(r+=(L.height-(n.height||0))/B),U[x?"translateY":"y"]=Math.round(r),this[this.placed?"animate":"attr"](U),this.placed=!0,this.alignAttr=U,this},u.prototype.alignSetter=function(n){var x={left:"start",center:"middle",right:"end"};x[n]&&(this.alignValue=n,this.element.setAttribute("text-anchor",x[n]))},u.prototype.animate=function(n,x,L){var U=this,_=Q(t(x,this.renderer.globalAnimation,!0));return x=_.defer,t(z.hidden,z.msHidden,z.webkitHidden,!1)&&(_.duration=0),_.duration!==0?(L&&(_.complete=L),i(function(){U.element&&Z(U,n,_)},x)):(this.attr(n,void 0,L||_.complete),l(n,function(r,f){_.step&&_.step.call(this,r,{prop:f,pos:1,elem:this})},this)),this},u.prototype.applyTextOutline=function(n){var x=this.element;n.indexOf("contrast")!==-1&&(n=n.replace(/contrast/g,this.renderer.getContrast(x.style.fill)));var L=n.split(" ");if(n=L[L.length-1],(L=L[0])&&L!=="none"&&F.svg){this.fakeTS=!0,L=L.replace(/(^[\d\.]+)(.*?)$/g,function(r,f,O){return 2*Number(f)+O}),this.removeTextOutline();var U=z.createElementNS(g,"tspan");A(U,{class:"highcharts-text-outline",fill:n,stroke:n,"stroke-width":L,"stroke-linejoin":"round"}),n=x.querySelector("textPath")||x,[].forEach.call(n.childNodes,function(r){var f=r.cloneNode(!0);f.removeAttribute&&["fill","stroke","stroke-width","stroke"].forEach(function(O){return f.removeAttribute(O)}),U.appendChild(f)});var _=0;[].forEach.call(n.querySelectorAll("text tspan"),function(r){_+=Number(r.getAttribute("dy"))}),L=z.createElementNS(g,"tspan"),L.textContent="\u200B",A(L,{x:Number(x.getAttribute("x")),dy:-_}),U.appendChild(L),n.insertBefore(U,n.firstChild)}},u.prototype.attr=function(n,x,L,U){var _=this.element,r=this.symbolCustomAttribs,f,O=this,B,R;if(typeof n=="string"&&typeof x<"u"){var a=n;n={},n[a]=x}return typeof n=="string"?O=(this[n+"Getter"]||this._defaultGetter).call(this,n,_):(l(n,function(c,d){B=!1,U||V(this,d),this.symbolName&&r.indexOf(d)!==-1&&(f||(this.symbolAttr(n),f=!0),B=!0),!this.rotation||d!=="x"&&d!=="y"||(this.doTransform=!0),B||(R=this[d+"Setter"]||this._defaultSetter,R.call(this,c,d,_),!this.styledMode&&this.shadows&&/^(width|height|visibility|x|y|d|transform|cx|cy|r)$/.test(d)&&this.updateShadows(d,c,R))},this),this.afterSetters()),L&&L.call(this),O},u.prototype.clip=function(n){return this.attr("clip-path",n?"url("+this.renderer.url+"#"+n.id+")":"none")},u.prototype.crisp=function(n,x){x=x||n.strokeWidth||0;var L=Math.round(x)%2/2;return n.x=Math.floor(n.x||this.x||0)+L,n.y=Math.floor(n.y||this.y||0)+L,n.width=Math.floor((n.width||this.width||0)-2*L),n.height=Math.floor((n.height||this.height||0)-2*L),k(n.strokeWidth)&&(n.strokeWidth=x),n},u.prototype.complexColor=function(n,x,L){var U=this.renderer,_,r,f,O,B,R,a,c,d,D,E=[],N;T(this.renderer,"complexColor",{args:arguments},function(){if(n.radialGradient?r="radialGradient":n.linearGradient&&(r="linearGradient"),r){if(f=n[r],B=U.gradients,R=n.stops,d=L.radialReference,C(f)&&(n[r]=f={x1:f[0],y1:f[1],x2:f[2],y2:f[3],gradientUnits:"userSpaceOnUse"}),r==="radialGradient"&&d&&!k(f.gradientUnits)&&(O=f,f=e(f,U.getRadialAttr(d,O),{gradientUnits:"userSpaceOnUse"})),l(f,function(Y,q){q!=="id"&&E.push(q,Y)}),l(R,function(Y){E.push(Y)}),E=E.join(","),B[E])D=B[E].attr("id");else{f.id=D=o();var W=B[E]=U.createElement(r).attr(f).add(U.defs);W.radAttr=O,W.stops=[],R.forEach(function(Y){Y[1].indexOf("rgba")===0?(_=H.parse(Y[1]),a=_.get("rgb"),c=_.get("a")):(a=Y[1],c=1),Y=U.createElement("stop").attr({offset:Y[0],"stop-color":a,"stop-opacity":c}).add(W),W.stops.push(Y)})}N="url("+U.url+"#"+D+")",L.setAttribute(x,N),L.gradient=E,n.toString=function(){return N}}})},u.prototype.css=function(n){var x=this.styles,L={},U=this.element,_=!x;if(n.color&&(n.fill=n.color),x&&l(n,function(O,B){x&&x[B]!==O&&(L[B]=O,_=!0)}),_){if(x&&(n=b(x,L)),n.width===null||n.width==="auto")delete this.textWidth;else if(U.nodeName.toLowerCase()==="text"&&n.width)var r=this.textWidth=p(n.width);this.styles=n,r&&!w&&this.renderer.forExport&&delete n.width;var f=e(n);U.namespaceURI===this.SVG_NS&&["textOutline","textOverflow","width"].forEach(function(O){return f&&delete f[O]}),M(U,f),this.added&&(this.element.nodeName==="text"&&this.renderer.buildText(this),n.textOutline&&this.applyTextOutline(n.textOutline))}return this},u.prototype.dashstyleSetter=function(n){var x=this["stroke-width"];if(x==="inherit"&&(x=1),n=n&&n.toLowerCase()){var L=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=L.length;n--;)L[n]=""+p(L[n])*t(x,NaN);n=L.join(",").replace(/NaN/g,"none"),this.element.setAttribute("stroke-dasharray",n)}},u.prototype.destroy=function(){var n=this,x=n.element||{},L=n.renderer,U=x.ownerSVGElement,_=L.isSVG&&x.nodeName==="SPAN"&&n.parentGroup||void 0;if(x.onclick=x.onmouseout=x.onmouseover=x.onmousemove=x.point=null,V(n),n.clipPath&&U){var r=n.clipPath;[].forEach.call(U.querySelectorAll("[clip-path],[CLIP-PATH]"),function(f){-1<f.getAttribute("clip-path").indexOf(r.element.id)&&f.removeAttribute("clip-path")}),n.clipPath=r.destroy()}if(n.stops){for(U=0;U<n.stops.length;U++)n.stops[U].destroy();n.stops.length=0,n.stops=void 0}for(n.safeRemoveChild(x),L.styledMode||n.destroyShadows();_&&_.div&&_.div.childNodes.length===0;)x=_.parentGroup,n.safeRemoveChild(_.div),delete _.div,_=x;n.alignTo&&m(L.alignedObjects,n),l(n,function(f,O){n[O]&&n[O].parentGroup===n&&n[O].destroy&&n[O].destroy(),delete n[O]})},u.prototype.destroyShadows=function(){(this.shadows||[]).forEach(function(n){this.safeRemoveChild(n)},this),this.shadows=void 0},u.prototype.dSetter=function(n,x,L){C(n)&&(typeof n[0]=="string"&&(n=this.renderer.pathToSegments(n)),this.pathArray=n,n=n.reduce(function(U,_,r){return _&&_.join?(r?U+" ":"")+_.join(" "):(_||"").toString()},"")),/(NaN| {2}|^$)/.test(n)&&(n="M 0 0"),this[x]!==n&&(L.setAttribute(x,n),this[x]=n)},u.prototype.fadeOut=function(n){var x=this;x.animate({opacity:0},{duration:t(n,150),complete:function(){x.hide()}})},u.prototype.fillSetter=function(n,x,L){typeof n=="string"?L.setAttribute(x,n):n&&this.complexColor(n,x,L)},u.prototype.getBBox=function(n,x){var L=this.alignValue,U=this.element,_=this.renderer,r=this.styles,f=this.textStr,O=_.cache,B=_.cacheKeys,R=U.namespaceURI===this.SVG_NS;x=t(x,this.rotation,0);var a=_.styledMode?U&&u.prototype.getStyle.call(U,"font-size"):r&&r.fontSize,c;if(k(f)){var d=f.toString();d.indexOf("<")===-1&&(d=d.replace(/[0-9]/g,"0")),d+=["",x,a,this.textWidth,L,r&&r.textOverflow,r&&r.fontWeight].join()}if(d&&!n&&(c=O[d]),!c){if(R||_.forExport){try{var D=this.fakeTS&&function(N){var W=U.querySelector(".highcharts-text-outline");W&&M(W,{display:N})};s(D)&&D("none"),c=U.getBBox?b({},U.getBBox()):{width:U.offsetWidth,height:U.offsetHeight,x:0,y:0},s(D)&&D("")}catch{}(!c||0>c.width)&&(c={x:0,y:0,width:0,height:0})}else c=this.htmlGetBBox();if(_.isSVG&&(_=c.width,n=c.height,R&&(c.height=n={"11px,17":14,"13px,20":16}[""+(a||"")+",".concat(Math.round(n))]||n),x)){R=Number(U.getAttribute("y")||0)-c.y,L={right:1,center:.5}[L||0]||0,r=x*P,a=(x-90)*P;var E=_*Math.cos(r);x=_*Math.sin(r),D=Math.cos(a),r=Math.sin(a),_=c.x+L*(_-E)+R*D,a=_+E,D=a-n*D,E=D-E,R=c.y+R-L*x+R*r,L=R+x,n=L-n*r,x=n-x,c.x=Math.min(_,a,D,E),c.y=Math.min(R,L,n,x),c.width=Math.max(_,a,D,E)-c.x,c.height=Math.max(R,L,n,x)-c.y}if(d&&(f===""||0<c.height)){for(;250<B.length;)delete O[B.shift()];O[d]||B.push(d),O[d]=c}}return c},u.prototype.getStyle=function(n){return y.getComputedStyle(this.element||this,"").getPropertyValue(n)},u.prototype.hasClass=function(n){return(""+this.attr("class")).split(" ").indexOf(n)!==-1},u.prototype.hide=function(){return this.attr({visibility:"hidden"})},u.prototype.htmlGetBBox=function(){return{height:0,width:0,x:0,y:0}},u.prototype.init=function(n,x){this.element=x==="span"?S(x):z.createElementNS(this.SVG_NS,x),this.renderer=n,T(this,"afterInit")},u.prototype.on=function(n,x){var L=this.onEvents;return L[n]&&L[n](),L[n]=v(this.element,n,x),this},u.prototype.opacitySetter=function(n,x,L){this.opacity=n=Number(Number(n).toFixed(3)),L.setAttribute(x,n)},u.prototype.removeClass=function(n){return this.attr("class",(""+this.attr("class")).replace(h(n)?new RegExp("(^| )".concat(n,"( |$)")):n," ").replace(/ +/g," ").trim())},u.prototype.removeTextOutline=function(){var n=this.element.querySelector("tspan.highcharts-text-outline");n&&this.safeRemoveChild(n)},u.prototype.safeRemoveChild=function(n){var x=n.parentNode;x&&x.removeChild(n)},u.prototype.setRadialReference=function(n){var x=this.element.gradient&&this.renderer.gradients[this.element.gradient];return this.element.radialReference=n,x&&x.radAttr&&x.animate(this.renderer.getRadialAttr(n,x.radAttr)),this},u.prototype.setTextPath=function(n,x){var L=this;x=e(!0,{enabled:!0,attributes:{dy:-5,startOffset:"50%",textAnchor:"middle"}},x);var U=this.renderer.url,_=this.text||this,r=_.textPath,f=x.attributes,O=x.enabled;return n=n||r&&r.path,r&&r.undo(),n&&O?(x=v(_,"afterModifyTree",function(B){if(n&&O){var R=n.attr("id");R||n.attr("id",R=o());var a={x:0,y:0};k(f.dx)&&(a.dx=f.dx,delete f.dx),k(f.dy)&&(a.dy=f.dy,delete f.dy),_.attr(a),L.attr({transform:""}),L.box&&(L.box=L.box.destroy()),a=B.nodes.slice(0),B.nodes.length=0,B.nodes[0]={tagName:"textPath",attributes:b(f,{"text-anchor":f.textAnchor,href:""+U+"#".concat(R)}),children:a}}}),_.textPath={path:n,undo:x}):(_.attr({dx:0,dy:0}),delete _.textPath),this.added&&(_.textCache="",this.renderer.buildText(_)),this},u.prototype.shadow=function(n,x,L){var U=[],_=this.element,r=this.oldShadowOptions,f=this.parentGroup,O=f&&f.rotation===90;f={color:"#000000",offsetX:O?-1:1,offsetY:O?-1:1,opacity:.15,width:3};var B=!1,R;if(n===!0?R=f:typeof n=="object"&&(R=b(f,n)),R&&(R&&r&&l(R,function(D,E){D!==r[E]&&(B=!0)}),B&&this.destroyShadows(),this.oldShadowOptions=R),!R)this.destroyShadows();else if(!this.shadows){f=R.opacity/R.width;var a=O?"translate(".concat(R.offsetY,", ").concat(R.offsetX,")"):"translate(".concat(R.offsetX,", ").concat(R.offsetY,")");for(O=1;O<=R.width;O++){var c=_.cloneNode(!1),d=2*R.width+1-2*O;A(c,{stroke:n.color||"#000000","stroke-opacity":f*O,"stroke-width":d,transform:a,fill:"none"}),c.setAttribute("class",(c.getAttribute("class")||"")+" highcharts-shadow"),L&&(A(c,"height",Math.max(A(c,"height")-d,0)),c.cutHeight=d),x?x.element.appendChild(c):_.parentNode&&_.parentNode.insertBefore(c,_),U.push(c)}this.shadows=U}return this},u.prototype.show=function(n){return n===void 0&&(n=!0),this.attr({visibility:n?"inherit":"visible"})},u.prototype["stroke-widthSetter"]=function(n,x,L){this[x]=n,L.setAttribute(x,n)},u.prototype.strokeWidth=function(){if(!this.renderer.styledMode)return this["stroke-width"]||0;var n=this.getStyle("stroke-width"),x=0;if(n.indexOf("px")===n.length-2)x=p(n);else if(n!==""){var L=z.createElementNS(g,"rect");A(L,{width:n,"stroke-width":0}),this.element.parentNode.appendChild(L),x=L.getBBox().width,L.parentNode.removeChild(L)}return x},u.prototype.symbolAttr=function(n){var x=this;"x y r start end width height innerR anchorX anchorY clockwise".split(" ").forEach(function(L){x[L]=t(n[L],x[L])}),x.attr({d:x.renderer.symbols[x.symbolName](x.x,x.y,x.width,x.height,x)})},u.prototype.textSetter=function(n){n!==this.textStr&&(delete this.textPxLength,this.textStr=n,this.added&&this.renderer.buildText(this))},u.prototype.titleSetter=function(n){var x=this.element,L=x.getElementsByTagName("title")[0]||z.createElementNS(this.SVG_NS,"title");x.insertBefore?x.insertBefore(L,x.firstChild):x.appendChild(L),L.textContent=String(t(n,"")).replace(/<[^>]*>/g,"").replace(/&lt;/g,"<").replace(/&gt;/g,">")},u.prototype.toFront=function(){var n=this.element;return n.parentNode.appendChild(n),this},u.prototype.translate=function(n,x){return this.attr({translateX:n,translateY:x})},u.prototype.updateShadows=function(n,x,L){var U=this.shadows;if(U)for(var _=U.length;_--;)L.call(U[_],n==="height"?Math.max(x-(U[_].cutHeight||0),0):n==="d"?this.d:x,n,U[_])},u.prototype.updateTransform=function(){var n=this.element,x=this.matrix,L=this.rotation;L=L===void 0?0:L;var U=this.scaleX,_=this.scaleY,r=this.translateX,f=this.translateY;r=["translate("+(r===void 0?0:r)+","+(f===void 0?0:f)+")"],k(x)&&r.push("matrix("+x.join(",")+")"),L&&r.push("rotate("+L+" "+t(this.rotationOriginX,n.getAttribute("x"),0)+" "+t(this.rotationOriginY,n.getAttribute("y")||0)+")"),(k(U)||k(_))&&r.push("scale("+t(U,1)+" "+t(_,1)+")"),r.length&&!(this.text||this).textPath&&n.setAttribute("transform",r.join(" "))},u.prototype.visibilitySetter=function(n,x,L){n==="inherit"?L.removeAttribute(x):this[x]!==n&&L.setAttribute(x,n),this[x]=n},u.prototype.xGetter=function(n){return this.element.nodeName==="circle"&&(n==="x"?n="cx":n==="y"&&(n="cy")),this._defaultGetter(n)},u.prototype.zIndexSetter=function(n,x){var L=this.renderer,U=this.parentGroup,_=(U||L).element||L.box,r=this.element;L=_===L.box;var f=!1,O=this.added,B;if(k(n)?(r.setAttribute("data-z-index",n),n=+n,this[x]===n&&(O=!1)):k(this[x])&&r.removeAttribute("data-z-index"),this[x]=n,O){for((n=this.zIndex)&&U&&(U.handleZ=!0),x=_.childNodes,B=x.length-1;0<=B&&!f;B--){U=x[B],O=U.getAttribute("data-z-index");var R=!k(O);U!==r&&(0>n&&R&&!L&&!B?(_.insertBefore(r,x[B]),f=!0):(p(O)<=n||R&&(!k(n)||0<=n))&&(_.insertBefore(r,x[B+1]||null),f=!0))}f||(_.insertBefore(r,x[L?3:0]||null),f=!0)}return f},u}(),j.prototype.strokeSetter=j.prototype.fillSetter,j.prototype.yGetter=j.prototype.xGetter,j.prototype.matrixSetter=j.prototype.rotationOriginXSetter=j.prototype.rotationOriginYSetter=j.prototype.rotationSetter=j.prototype.scaleXSetter=j.prototype.scaleYSetter=j.prototype.translateXSetter=j.prototype.translateYSetter=j.prototype.verticalAlignSetter=function(u,n){this[n]=u,this.doTransform=!0},j}),lt(I,"Core/Renderer/RendererRegistry.js",[I["Core/Globals.js"]],function(j){var H;return function(F){F.rendererTypes={};var K;F.getRendererType=function(Z){return Z===void 0&&(Z=K),F.rendererTypes[Z]||F.rendererTypes[K]},F.registerRendererType=function(Z,Q,V){F.rendererTypes[Z]=Q,(!K||V)&&(K=Z,j.Renderer=Q)}}(H||(H={})),H}),lt(I,"Core/Renderer/SVG/SVGLabel.js",[I["Core/Renderer/SVG/SVGElement.js"],I["Core/Utilities.js"]],function(j,H){var F=this&&this.__extends||function(){var w=function(g,y){return w=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(v,A){v.__proto__=A}||function(v,A){for(var S in A)A.hasOwnProperty(S)&&(v[S]=A[S])},w(g,y)};return function(g,y){function v(){this.constructor=g}w(g,y),g.prototype=y===null?Object.create(y):(v.prototype=y.prototype,new v)}}(),K=H.defined,Z=H.extend,Q=H.isNumber,V=H.merge,P=H.pick,z=H.removeEvent;return function(w){function g(y,v,A,S,M,k,m,b,T,C){var s=w.call(this)||this;s.paddingLeftSetter=s.paddingSetter,s.paddingRightSetter=s.paddingSetter,s.init(y,"g"),s.textStr=v,s.x=A,s.y=S,s.anchorX=k,s.anchorY=m,s.baseline=T,s.className=C,s.addClass(C==="button"?"highcharts-no-tooltip":"highcharts-label"),C&&s.addClass("highcharts-"+C),s.text=y.text(void 0,0,0,b).attr({zIndex:1});var h;return typeof M=="string"&&((h=/^url\((.*?)\)$/.test(M))||s.renderer.symbols[M])&&(s.symbolKey=M),s.bBox=g.emptyBBox,s.padding=3,s.baselineOffset=0,s.needsBox=y.styledMode||h,s.deferredAttr={},s.alignFactor=0,s}return F(g,w),g.prototype.alignSetter=function(y){y={left:0,center:.5,right:1}[y],y!==this.alignFactor&&(this.alignFactor=y,this.bBox&&Q(this.xSetting)&&this.attr({x:this.xSetting}))},g.prototype.anchorXSetter=function(y,v){this.anchorX=y,this.boxAttr(v,Math.round(y)-this.getCrispAdjust()-this.xSetting)},g.prototype.anchorYSetter=function(y,v){this.anchorY=y,this.boxAttr(v,y-this.ySetting)},g.prototype.boxAttr=function(y,v){this.box?this.box.attr(y,v):this.deferredAttr[y]=v},g.prototype.css=function(y){if(y){var v={};y=V(y),g.textProps.forEach(function(A){typeof y[A]<"u"&&(v[A]=y[A],delete y[A])}),this.text.css(v),"fontSize"in v||"fontWeight"in v?this.updateTextPadding():("width"in v||"textOverflow"in v)&&this.updateBoxSize()}return j.prototype.css.call(this,y)},g.prototype.destroy=function(){z(this.element,"mouseenter"),z(this.element,"mouseleave"),this.text&&this.text.destroy(),this.box&&(this.box=this.box.destroy()),j.prototype.destroy.call(this)},g.prototype.fillSetter=function(y,v){y&&(this.needsBox=!0),this.fill=y,this.boxAttr(v,y)},g.prototype.getBBox=function(){this.textStr&&this.bBox.width===0&&this.bBox.height===0&&this.updateBoxSize();var y=this.padding,v=P(this.paddingLeft,y);return{width:this.width,height:this.height,x:this.bBox.x-v,y:this.bBox.y-y}},g.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},g.prototype.heightSetter=function(y){this.heightSetting=y},g.prototype.onAdd=function(){this.text.add(this),this.attr({text:P(this.textStr,""),x:this.x||0,y:this.y||0}),this.box&&K(this.anchorX)&&this.attr({anchorX:this.anchorX,anchorY:this.anchorY})},g.prototype.paddingSetter=function(y,v){Q(y)?y!==this[v]&&(this[v]=y,this.updateTextPadding()):this[v]=void 0},g.prototype.rSetter=function(y,v){this.boxAttr(v,y)},g.prototype.shadow=function(y){return y&&!this.renderer.styledMode&&(this.updateBoxSize(),this.box&&this.box.shadow(y)),this},g.prototype.strokeSetter=function(y,v){this.stroke=y,this.boxAttr(v,y)},g.prototype["stroke-widthSetter"]=function(y,v){y&&(this.needsBox=!0),this["stroke-width"]=y,this.boxAttr(v,y)},g.prototype["text-alignSetter"]=function(y){this.textAlign=y},g.prototype.textSetter=function(y){typeof y<"u"&&this.text.attr({text:y}),this.updateTextPadding()},g.prototype.updateBoxSize=function(){var y=this.text,v=y.element.style,A={},S=this.padding,M=this.bBox=Q(this.widthSetting)&&Q(this.heightSetting)&&!this.textAlign||!K(y.textStr)?g.emptyBBox:y.getBBox();this.width=this.getPaddedWidth(),this.height=(this.heightSetting||M.height||0)+2*S,v=this.renderer.fontMetrics(v&&v.fontSize,y),this.baselineOffset=S+Math.min((this.text.firstLineMetrics||v).b,M.height||1/0),this.heightSetting&&(this.baselineOffset+=(this.heightSetting-v.h)/2),this.needsBox&&!y.textPath&&(this.box||(y=this.box=this.symbolKey?this.renderer.symbol(this.symbolKey):this.renderer.rect(),y.addClass((this.className==="button"?"":"highcharts-label-box")+(this.className?" highcharts-"+this.className+"-box":"")),y.add(this)),y=this.getCrispAdjust(),A.x=y,A.y=(this.baseline?-this.baselineOffset:0)+y,A.width=Math.round(this.width),A.height=Math.round(this.height),this.box.attr(Z(A,this.deferredAttr)),this.deferredAttr={})},g.prototype.updateTextPadding=function(){var y=this.text;if(!y.textPath){this.updateBoxSize();var v=this.baseline?0:this.baselineOffset,A=P(this.paddingLeft,this.padding);K(this.widthSetting)&&this.bBox&&(this.textAlign==="center"||this.textAlign==="right")&&(A+={center:.5,right:1}[this.textAlign]*(this.widthSetting-this.bBox.width)),(A!==y.x||v!==y.y)&&(y.attr("x",A),y.hasBoxWidthChanged&&(this.bBox=y.getBBox(!0)),typeof v<"u"&&y.attr("y",v)),y.x=A,y.y=v}},g.prototype.widthSetter=function(y){this.widthSetting=Q(y)?y:void 0},g.prototype.getPaddedWidth=function(){var y=this.padding,v=P(this.paddingLeft,y);return y=P(this.paddingRight,y),(this.widthSetting||this.bBox.width||0)+v+y},g.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)},g.prototype.ySetter=function(y){this.ySetting=this.y=Math.round(y),this.attr("translateY",this.ySetting)},g.emptyBBox={width:0,height:0,x:0,y:0},g.textProps="color direction fontFamily fontSize fontStyle fontWeight lineHeight textAlign textDecoration textOutline textOverflow width".split(" "),g}(j)}),lt(I,"Core/Renderer/SVG/Symbols.js",[I["Core/Utilities.js"]],function(j){function H(P,z,w,g,y){var v=[];if(y){var A=y.start||0,S=V(y.r,w);w=V(y.r,g||w);var M=(y.end||0)-.001;g=y.innerR;var k=V(y.open,.001>Math.abs((y.end||0)-A-2*Math.PI)),m=Math.cos(A),b=Math.sin(A),T=Math.cos(M),C=Math.sin(M);A=V(y.longArc,.001>M-A-Math.PI?0:1),v.push(["M",P+S*m,z+w*b],["A",S,w,0,A,V(y.clockwise,1),P+S*T,z+w*C]),Z(g)&&v.push(k?["M",P+g*T,z+g*C]:["L",P+g*T,z+g*C],["A",g,g,0,A,Z(y.clockwise)?1-y.clockwise:0,P+g*m,z+g*b]),k||v.push(["Z"])}return v}function F(P,z,w,g,y){return y&&y.r?K(P,z,w,g,y):[["M",P,z],["L",P+w,z],["L",P+w,z+g],["L",P,z+g],["Z"]]}function K(P,z,w,g,y){return y=y&&y.r||0,[["M",P+y,z],["L",P+w-y,z],["C",P+w,z,P+w,z,P+w,z+y],["L",P+w,z+g-y],["C",P+w,z+g,P+w,z+g,P+w-y,z+g],["L",P+y,z+g],["C",P,z+g,P,z+g,P,z+g-y],["L",P,z+y],["C",P,z,P,z,P+y,z]]}var Z=j.defined,Q=j.isNumber,V=j.pick;return{arc:H,callout:function(P,z,w,g,y){var v=Math.min(y&&y.r||0,w,g),A=v+6,S=y&&y.anchorX;y=y&&y.anchorY||0;var M=K(P,z,w,g,{r:v});return Q(S)&&(P+S>=w?y>z+A&&y<z+g-A?M.splice(3,1,["L",P+w,y-6],["L",P+w+6,y],["L",P+w,y+6],["L",P+w,z+g-v]):M.splice(3,1,["L",P+w,g/2],["L",S,y],["L",P+w,g/2],["L",P+w,z+g-v]):0>=P+S?y>z+A&&y<z+g-A?M.splice(7,1,["L",P,y+6],["L",P-6,y],["L",P,y-6],["L",P,z+v]):M.splice(7,1,["L",P,g/2],["L",S,y],["L",P,g/2],["L",P,z+v]):y&&y>g&&S>P+A&&S<P+w-A?M.splice(5,1,["L",S+6,z+g],["L",S,z+g+6],["L",S-6,z+g],["L",P+v,z+g]):y&&0>y&&S>P+A&&S<P+w-A&&M.splice(1,1,["L",S-6,z],["L",S,z-6],["L",S+6,z],["L",w-v,z])),M},circle:function(P,z,w,g){return H(P+w/2,z+g/2,w/2,g/2,{start:.5*Math.PI,end:2.5*Math.PI,open:!1})},diamond:function(P,z,w,g){return[["M",P+w/2,z],["L",P+w,z+g/2],["L",P+w/2,z+g],["L",P,z+g/2],["Z"]]},rect:F,roundedRect:K,square:F,triangle:function(P,z,w,g){return[["M",P+w/2,z],["L",P+w,z+g],["L",P,z+g],["Z"]]},"triangle-down":function(P,z,w,g){return[["M",P,z],["L",P+w,z],["L",P+w/2,z+g],["Z"]]}}}),lt(I,"Core/Renderer/SVG/TextBuilder.js",[I["Core/Renderer/HTML/AST.js"],I["Core/Globals.js"],I["Core/Utilities.js"]],function(j,H,F){var K=H.doc,Z=H.SVG_NS,Q=H.win,V=F.attr,P=F.extend,z=F.fireEvent,w=F.isString,g=F.objectEach,y=F.pick;return function(){function v(A){var S=A.styles;this.renderer=A.renderer,this.svgElement=A,this.width=A.textWidth,this.textLineHeight=S&&S.lineHeight,this.textOutline=S&&S.textOutline,this.ellipsis=!(!S||S.textOverflow!=="ellipsis"),this.noWrap=!(!S||S.whiteSpace!=="nowrap"),this.fontSize=S&&S.fontSize}return v.prototype.buildSVG=function(){var A=this.svgElement,S=A.element,M=A.renderer,k=y(A.textStr,"").toString(),m=k.indexOf("<")!==-1,b=S.childNodes;M=this.width&&!A.added&&M.box;var T=/<br.*?>/g,C=[k,this.ellipsis,this.noWrap,this.textLineHeight,this.textOutline,this.fontSize,this.width].join();if(C!==A.textCache){for(A.textCache=C,delete A.actualWidth,C=b.length;C--;)S.removeChild(b[C]);m||this.ellipsis||this.width||A.textPath||k.indexOf(" ")!==-1&&(!this.noWrap||T.test(k))?k!==""&&(M&&M.appendChild(S),k=new j(k),this.modifyTree(k.nodes),k.addToDOM(S),this.modifyDOM(),this.ellipsis&&(S.textContent||"").indexOf("\u2026")!==-1&&A.attr("title",this.unescapeEntities(A.textStr||"",["&lt;","&gt;"])),M&&M.removeChild(S)):S.appendChild(K.createTextNode(this.unescapeEntities(k))),w(this.textOutline)&&A.applyTextOutline&&A.applyTextOutline(this.textOutline)}},v.prototype.modifyDOM=function(){var A=this,S=this.svgElement,M=V(S.element,"x");S.firstLineMetrics=void 0;for(var k;(k=S.element.firstChild)&&/^[\s\u200B]*$/.test(k.textContent||" ");)S.element.removeChild(k);[].forEach.call(S.element.querySelectorAll("tspan.highcharts-br"),function(C,s){C.nextSibling&&C.previousSibling&&(s===0&&C.previousSibling.nodeType===1&&(S.firstLineMetrics=S.renderer.fontMetrics(void 0,C.previousSibling)),V(C,{dy:A.getLineHeight(C.nextSibling),x:M}))});var m=this.width||0;if(m){var b=function(C,s){var h=C.textContent||"",e=h.replace(/([^\^])-/g,"$1- ").split(" "),l=!A.noWrap&&(1<e.length||1<S.element.childNodes.length),t=A.getLineHeight(s),p=0,i=S.actualWidth;if(A.ellipsis)h&&A.truncate(C,h,void 0,0,Math.max(0,m-parseInt(A.fontSize||12,10)),function(o,u){return o.substring(0,u)+"\u2026"});else if(l){for(h=[],l=[];s.firstChild&&s.firstChild!==C;)l.push(s.firstChild),s.removeChild(s.firstChild);for(;e.length;)e.length&&!A.noWrap&&0<p&&(h.push(C.textContent||""),C.textContent=e.join(" ").replace(/- /g,"-")),A.truncate(C,void 0,e,p===0&&i||0,m,function(o,u){return e.slice(0,u).join(" ").replace(/- /g,"-")}),i=S.actualWidth,p++;l.forEach(function(o){s.insertBefore(o,C)}),h.forEach(function(o){s.insertBefore(K.createTextNode(o),C),o=K.createElementNS(Z,"tspan"),o.textContent="\u200B",V(o,{dy:t,x:M}),s.insertBefore(o,C)})}},T=function(C){[].slice.call(C.childNodes).forEach(function(s){s.nodeType===Q.Node.TEXT_NODE?b(s,C):(s.className.baseVal.indexOf("highcharts-br")!==-1&&(S.actualWidth=0),T(s))})};T(S.element)}},v.prototype.getLineHeight=function(A){var S;return A=A.nodeType===Q.Node.TEXT_NODE?A.parentElement:A,this.renderer.styledMode||(S=A&&/(px|em)$/.test(A.style.fontSize)?A.style.fontSize:this.fontSize||this.renderer.style.fontSize||12),this.textLineHeight?parseInt(this.textLineHeight.toString(),10):this.renderer.fontMetrics(S,A||this.svgElement.element).h},v.prototype.modifyTree=function(A){var S=this,M=function(k,m){var b=k.attributes;b=b===void 0?{}:b;var T=k.children,C=k.style;C=C===void 0?{}:C;var s=k.tagName,h=S.renderer.styledMode;s==="b"||s==="strong"?h?b.class="highcharts-strong":C.fontWeight="bold":(s==="i"||s==="em")&&(h?b.class="highcharts-emphasized":C.fontStyle="italic"),C&&C.color&&(C.fill=C.color),s==="br"?(b.class="highcharts-br",k.textContent="\u200B",(m=A[m+1])&&m.textContent&&(m.textContent=m.textContent.replace(/^ +/gm,""))):s==="a"&&T&&T.some(function(e){return e.tagName==="#text"})&&(k.children=[{children:T,tagName:"tspan"}]),s!=="#text"&&s!=="a"&&(k.tagName="tspan"),P(k,{attributes:b,style:C}),T&&T.filter(function(e){return e.tagName!=="#text"}).forEach(M)};A.forEach(M),z(this.svgElement,"afterModifyTree",{nodes:A})},v.prototype.truncate=function(A,S,M,k,m,b){var T=this.svgElement,C=T.renderer,s=T.rotation,h=[],e=M?1:0,l=(S||M||"").length,t=l,p,i=function(u,n){n=n||u;var x=A.parentNode;if(x&&typeof h[n]>"u")if(x.getSubStringLength)try{h[n]=k+x.getSubStringLength(0,M?n+1:n)}catch{}else C.getSpanWidth&&(A.textContent=b(S||M,u),h[n]=k+C.getSpanWidth(T,A));return h[n]};T.rotation=0;var o=i(A.textContent.length);if(k+o>m){for(;e<=l;)t=Math.ceil((e+l)/2),M&&(p=b(M,t)),o=i(t,p&&p.length-1),e===l?e=l+1:o>m?l=t-1:e=t;l===0?A.textContent="":S&&l===S.length-1||(A.textContent=p||b(S||M,t))}M&&M.splice(0,t),T.actualWidth=o,T.rotation=s},v.prototype.unescapeEntities=function(A,S){return g(this.renderer.escapes,function(M,k){S&&S.indexOf(M)!==-1||(A=A.toString().replace(new RegExp(M,"g"),k))}),A},v}()}),lt(I,"Core/Renderer/SVG/SVGRenderer.js",[I["Core/Renderer/HTML/AST.js"],I["Core/Color/Color.js"],I["Core/Globals.js"],I["Core/Renderer/RendererRegistry.js"],I["Core/Renderer/SVG/SVGElement.js"],I["Core/Renderer/SVG/SVGLabel.js"],I["Core/Renderer/SVG/Symbols.js"],I["Core/Renderer/SVG/TextBuilder.js"],I["Core/Utilities.js"]],function(j,H,F,K,Z,Q,V,P,z){var w=F.charts,g=F.deg2rad,y=F.doc,v=F.isFirefox,A=F.isMS,S=F.isWebKit,M=F.noop,k=F.SVG_NS,m=F.symbolSizes,b=F.win,T=z.addEvent,C=z.attr,s=z.createElement,h=z.css,e=z.defined,l=z.destroyObjectProperties,t=z.extend,p=z.isArray,i=z.isNumber,o=z.isObject,u=z.isString,n=z.merge,x=z.pick,L=z.pInt,U=z.uniqueKey,_;return F=function(){function r(f,O,B,R,a,c,d){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(f,O,B,R,a,c,d)}return r.prototype.init=function(f,O,B,R,a,c,d){var D=this.createElement("svg").attr({version:"1.1",class:"highcharts-root"}),E=D.element;d||D.css(this.getStyle(R)),f.appendChild(E),C(f,"dir","ltr"),f.innerHTML.indexOf("xmlns")===-1&&C(E,"xmlns",this.SVG_NS),this.isSVG=!0,this.box=E,this.boxWrapper=D,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=c,this.forExport=a,this.styledMode=d,this.gradients={},this.cache={},this.cacheKeys=[],this.imgCount=0,this.setSize(O,B,!1);var N;v&&f.getBoundingClientRect&&(O=function(){h(f,{left:0,top:0}),N=f.getBoundingClientRect(),h(f,{left:Math.ceil(N.left)-N.left+"px",top:Math.ceil(N.top)-N.top+"px"})},O(),this.unSubPixelFix=T(b,"resize",O))},r.prototype.definition=function(f){return new j([f]).addToDOM(this.defs.element)},r.prototype.getReferenceURL=function(){if((v||S)&&y.getElementsByTagName("base").length){if(!e(_)){var f=U();f=new j([{tagName:"svg",attributes:{width:8,height:8},children:[{tagName:"defs",children:[{tagName:"clipPath",attributes:{id:f},children:[{tagName:"rect",attributes:{width:4,height:4}}]}]},{tagName:"rect",attributes:{id:"hitme",width:8,height:8,"clip-path":"url(#".concat(f,")"),fill:"rgba(0,0,0,0.001)"}}]}]).addToDOM(y.body),h(f,{position:"fixed",top:0,left:0,zIndex:9e5});var O=y.elementFromPoint(6,6);_=(O&&O.id)==="hitme",y.body.removeChild(f)}if(_)return b.location.href.split("#")[0].replace(/<[^>]*>/g,"").replace(/([\('\)])/g,"\\$1").replace(/ /g,"%20")}return""},r.prototype.getStyle=function(f){return this.style=t({fontFamily:'"Lucida Grande", "Lucida Sans Unicode", Arial, Helvetica, sans-serif',fontSize:"12px"},f)},r.prototype.setStyle=function(f){this.boxWrapper.css(this.getStyle(f))},r.prototype.isHidden=function(){return!this.boxWrapper.getBBox().width},r.prototype.destroy=function(){var f=this.defs;return this.box=null,this.boxWrapper=this.boxWrapper.destroy(),l(this.gradients||{}),this.gradients=null,f&&(this.defs=f.destroy()),this.unSubPixelFix&&this.unSubPixelFix(),this.alignedObjects=null},r.prototype.createElement=function(f){var O=new this.Element;return O.init(this,f),O},r.prototype.getRadialAttr=function(f,O){return{cx:f[0]-f[2]/2+(O.cx||0)*f[2],cy:f[1]-f[2]/2+(O.cy||0)*f[2],r:(O.r||0)*f[2]}},r.prototype.buildText=function(f){new P(f).buildSVG()},r.prototype.getContrast=function(f){return f=H.parse(f).rgba.map(function(O){return O/=255,.03928>=O?O/12.92:Math.pow((O+.055)/1.055,2.4)}),f=.2126*f[0]+.7152*f[1]+.0722*f[2],1.05/(f+.05)>(f+.05)/.05?"#FFFFFF":"#000000"},r.prototype.button=function(f,O,B,R,a,c,d,D,E,N){a===void 0&&(a={});var W=this.label(f,O,B,E,void 0,void 0,N,void 0,"button"),Y=this.styledMode;f=a.states||{};var q=0;a=n(a),delete a.states;var et=n({color:"#333333",cursor:"pointer",fontWeight:"normal"},a.style);delete a.style;var st=j.filterUserAttributes(a);if(W.attr(n({padding:8,r:2},st)),!Y){st=n({fill:"#f7f7f7",stroke:"#cccccc","stroke-width":1},st),c=n(st,{fill:"#e6e6e6"},j.filterUserAttributes(c||f.hover||{}));var rt=c.style;delete c.style,d=n(st,{fill:"#e6ebf5",style:{color:"#000000",fontWeight:"bold"}},j.filterUserAttributes(d||f.select||{}));var it=d.style;delete d.style,D=n(st,{style:{color:"#cccccc"}},j.filterUserAttributes(D||f.disabled||{}));var at=D.style;delete D.style}return T(W.element,A?"mouseover":"mouseenter",function(){q!==3&&W.setState(1)}),T(W.element,A?"mouseout":"mouseleave",function(){q!==3&&W.setState(q)}),W.setState=function(tt){tt!==1&&(W.state=q=tt),W.removeClass(/highcharts-button-(normal|hover|pressed|disabled)/).addClass("highcharts-button-"+["normal","hover","pressed","disabled"][tt||0]),Y||(W.attr([st,c,d,D][tt||0]),tt=[et,rt,it,at][tt||0],o(tt)&&W.css(tt))},Y||(W.attr(st).css(t({cursor:"default"},et)),N&&W.text.css({pointerEvents:"none"})),W.on("touchstart",function(tt){return tt.stopPropagation()}).on("click",function(tt){q!==3&&R.call(W,tt)})},r.prototype.crispLine=function(f,O,B){B===void 0&&(B="round");var R=f[0],a=f[1];return e(R[1])&&R[1]===a[1]&&(R[1]=a[1]=Math[B](R[1])-O%2/2),e(R[2])&&R[2]===a[2]&&(R[2]=a[2]=Math[B](R[2])+O%2/2),f},r.prototype.path=function(f){var O=this.styledMode?{}:{fill:"none"};return p(f)?O.d=f:o(f)&&t(O,f),this.createElement("path").attr(O)},r.prototype.circle=function(f,O,B){return f=o(f)?f:typeof f>"u"?{}:{x:f,y:O,r:B},O=this.createElement("circle"),O.xSetter=O.ySetter=function(R,a,c){c.setAttribute("c"+a,R)},O.attr(f)},r.prototype.arc=function(f,O,B,R,a,c){return o(f)?(R=f,O=R.y,B=R.r,f=R.x):R={innerR:R,start:a,end:c},f=this.symbol("arc",f,O,B,B,R),f.r=B,f},r.prototype.rect=function(f,O,B,R,a,c){a=o(f)?f.r:a;var d=this.createElement("rect");return f=o(f)?f:typeof f>"u"?{}:{x:f,y:O,width:Math.max(B,0),height:Math.max(R,0)},this.styledMode||(typeof c<"u"&&(f["stroke-width"]=c,f=d.crisp(f)),f.fill="none"),a&&(f.r=a),d.rSetter=function(D,E,N){d.r=D,C(N,{rx:D,ry:D})},d.rGetter=function(){return d.r||0},d.attr(f)},r.prototype.setSize=function(f,O,B){this.width=f,this.height=O,this.boxWrapper.animate({width:f,height:O},{step:function(){this.attr({viewBox:"0 0 "+this.attr("width")+" "+this.attr("height")})},duration:x(B,!0)?void 0:0}),this.alignElements()},r.prototype.g=function(f){var O=this.createElement("g");return f?O.attr({class:"highcharts-"+f}):O},r.prototype.image=function(f,O,B,R,a,c){var d={preserveAspectRatio:"none"},D=function(N,W){N.setAttributeNS?N.setAttributeNS("http://www.w3.org/1999/xlink","href",W):N.setAttribute("hc-svg-href",W)};i(O)&&(d.x=O),i(B)&&(d.y=B),i(R)&&(d.width=R),i(a)&&(d.height=a);var E=this.createElement("image").attr(d);return O=function(N){D(E.element,f),c.call(E,N)},c?(D(E.element,"data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw=="),B=new b.Image,T(B,"load",O),B.src=f,B.complete&&O({})):D(E.element,f),E},r.prototype.symbol=function(f,O,B,R,a,c){var d=this,D=/^url\((.*?)\)$/,E=D.test(f),N=!E&&(this.symbols[f]?f:"circle"),W=N&&this.symbols[N],Y;if(W){typeof O=="number"&&(Y=W.call(this.symbols,Math.round(O||0),Math.round(B||0),R||0,a||0,c));var q=this.path(Y);d.styledMode||q.attr("fill","none"),t(q,{symbolName:N||void 0,x:O,y:B,width:R,height:a}),c&&t(q,c)}else if(E){var et=f.match(D)[1],st=q=this.image(et);st.imgwidth=x(m[et]&&m[et].width,c&&c.width),st.imgheight=x(m[et]&&m[et].height,c&&c.height);var rt=function(it){return it.attr({width:it.width,height:it.height})};["width","height"].forEach(function(it){st[it+"Setter"]=function(at,tt){this[tt]=at,at=this.alignByTranslate;var X=this.element,G=this.width,$=this.height,J=this.imgwidth,ot=this.imgheight,nt=this["img"+tt];if(e(nt)){var pt=1;c&&c.backgroundSize==="within"&&G&&$?(pt=Math.min(G/J,$/ot),nt=Math.round(nt*pt),C(X,{width:Math.round(J*pt),height:Math.round(ot*pt)})):X&&X.setAttribute(tt,nt),at||this.translate(((G||0)-nt*pt)/2,(($||0)-nt*pt)/2)}}}),e(O)&&st.attr({x:O,y:B}),st.isImg=!0,e(st.imgwidth)&&e(st.imgheight)?rt(st):(st.attr({width:0,height:0}),s("img",{onload:function(){var it=w[d.chartIndex];this.width===0&&(h(this,{position:"absolute",top:"-999em"}),y.body.appendChild(this)),m[et]={width:this.width,height:this.height},st.imgwidth=this.width,st.imgheight=this.height,st.element&&rt(st),this.parentNode&&this.parentNode.removeChild(this),d.imgCount--,!d.imgCount&&it&&!it.hasLoaded&&it.onload()},src:et}),this.imgCount++)}return q},r.prototype.clipRect=function(f,O,B,R){var a=U()+"-",c=this.createElement("clipPath").attr({id:a}).add(this.defs);return f=this.rect(f,O,B,R,0).add(c),f.id=a,f.clipPath=c,f.count=0,f},r.prototype.text=function(f,O,B,R){var a={};return R&&(this.allowHTML||!this.forExport)?this.html(f,O,B):(a.x=Math.round(O||0),B&&(a.y=Math.round(B)),e(f)&&(a.text=f),f=this.createElement("text").attr(a),(!R||this.forExport&&!this.allowHTML)&&(f.xSetter=function(c,d,D){for(var E=D.getElementsByTagName("tspan"),N=D.getAttribute(d),W=0,Y;W<E.length;W++)Y=E[W],Y.getAttribute(d)===N&&Y.setAttribute(d,c);D.setAttribute(d,c)}),f)},r.prototype.fontMetrics=function(f,O){return f=!this.styledMode&&/px/.test(f)||!b.getComputedStyle?f||O&&O.style&&O.style.fontSize||this.style&&this.style.fontSize:O&&Z.prototype.getStyle.call(O,"font-size"),f=/px/.test(f)?L(f):12,O=24>f?f+3:Math.round(1.2*f),{h:O,b:Math.round(.8*O),f}},r.prototype.rotCorr=function(f,O,B){var R=f;return O&&B&&(R=Math.max(R*Math.cos(O*g),4)),{x:-f/3*Math.sin(O*g),y:R}},r.prototype.pathToSegments=function(f){for(var O=[],B=[],R={A:8,C:7,H:2,L:3,M:3,Q:5,S:5,T:3,V:2},a=0;a<f.length;a++)u(B[0])&&i(f[a])&&B.length===R[B[0].toUpperCase()]&&f.splice(a,0,B[0].replace("M","L").replace("m","l")),typeof f[a]=="string"&&(B.length&&O.push(B.slice(0)),B.length=0),B.push(f[a]);return O.push(B.slice(0)),O},r.prototype.label=function(f,O,B,R,a,c,d,D,E){return new Q(this,f,O,B,R,a,c,d,D,E)},r.prototype.alignElements=function(){this.alignedObjects.forEach(function(f){return f.align()})},r}(),t(F.prototype,{Element:Z,SVG_NS:k,escapes:{"&":"&amp;","<":"&lt;",">":"&gt;","'":"&#39;",'"':"&quot;"},symbols:V,draw:M}),K.registerRendererType("svg",F,!0),F}),lt(I,"Core/Renderer/HTML/HTMLElement.js",[I["Core/Globals.js"],I["Core/Renderer/SVG/SVGElement.js"],I["Core/Utilities.js"]],function(j,H,F){var K=this&&this.__extends||function(){var A=function(S,M){return A=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(k,m){k.__proto__=m}||function(k,m){for(var b in m)m.hasOwnProperty(b)&&(k[b]=m[b])},A(S,M)};return function(S,M){function k(){this.constructor=S}A(S,M),S.prototype=M===null?Object.create(M):(k.prototype=M.prototype,new k)}}(),Z=j.isFirefox,Q=j.isMS,V=j.isWebKit,P=j.win,z=F.css,w=F.defined,g=F.extend,y=F.pick,v=F.pInt;return function(A){function S(){return A!==null&&A.apply(this,arguments)||this}return K(S,A),S.compose=function(M){if(S.composedClasses.indexOf(M)===-1){S.composedClasses.push(M);var k=S.prototype,m=M.prototype;m.getSpanCorrection=k.getSpanCorrection,m.htmlCss=k.htmlCss,m.htmlGetBBox=k.htmlGetBBox,m.htmlUpdateTransform=k.htmlUpdateTransform,m.setSpanRotation=k.setSpanRotation}return M},S.prototype.getSpanCorrection=function(M,k,m){this.xCorr=-M*m,this.yCorr=-k},S.prototype.htmlCss=function(M){var k=this.element.tagName==="SPAN"&&M&&"width"in M,m=y(k&&M.width,void 0);if(k){delete M.width,this.textWidth=m;var b=!0}return M&&M.textOverflow==="ellipsis"&&(M.whiteSpace="nowrap",M.overflow="hidden"),this.styles=g(this.styles,M),z(this.element,M),b&&this.htmlUpdateTransform(),this},S.prototype.htmlGetBBox=function(){var M=this.element;return{x:M.offsetLeft,y:M.offsetTop,width:M.offsetWidth,height:M.offsetHeight}},S.prototype.htmlUpdateTransform=function(){if(this.added){var M=this.renderer,k=this.element,m=this.translateX||0,b=this.translateY||0,T=this.x||0,C=this.y||0,s=this.textAlign||"left",h={left:0,center:.5,right:1}[s],e=this.styles;if(e=e&&e.whiteSpace,z(k,{marginLeft:m,marginTop:b}),!M.styledMode&&this.shadows&&this.shadows.forEach(function(u){z(u,{marginLeft:m+1,marginTop:b+1})}),this.inverted&&[].forEach.call(k.childNodes,function(u){M.invertChild(u,k)}),k.tagName==="SPAN"){var l=this.rotation,t=this.textWidth&&v(this.textWidth),p=[l,s,k.innerHTML,this.textWidth,this.textAlign].join(),i=void 0;if(i=!1,t!==this.oldTextWidth){if(this.textPxLength)var o=this.textPxLength;else z(k,{width:"",whiteSpace:e||"nowrap"}),o=k.offsetWidth;(t>this.oldTextWidth||o>t)&&(/[ \-]/.test(k.textContent||k.innerText)||k.style.textOverflow==="ellipsis")&&(z(k,{width:o>t||l?t+"px":"auto",display:"block",whiteSpace:e||"normal"}),this.oldTextWidth=t,i=!0)}this.hasBoxWidthChanged=i,p!==this.cTT&&(i=M.fontMetrics(k.style.fontSize,k).b,!w(l)||l===(this.oldRotation||0)&&s===this.oldAlign||this.setSpanRotation(l,h,i),this.getSpanCorrection(!w(l)&&this.textPxLength||k.offsetWidth,i,h,l,s)),z(k,{left:T+(this.xCorr||0)+"px",top:C+(this.yCorr||0)+"px"}),this.cTT=p,this.oldRotation=l,this.oldAlign=s}}else this.alignOnAdd=!0},S.prototype.setSpanRotation=function(M,k,m){var b={},T=Q&&!/Edge/.test(P.navigator.userAgent)?"-ms-transform":V?"-webkit-transform":Z?"MozTransform":P.opera?"-o-transform":void 0;T&&(b[T]=b.transform="rotate("+M+"deg)",b[T+(Z?"Origin":"-origin")]=b.transformOrigin=100*k+"% "+m+"px",z(this.element,b))},S.composedClasses=[],S}(H)}),lt(I,"Core/Renderer/HTML/HTMLRenderer.js",[I["Core/Renderer/HTML/AST.js"],I["Core/Renderer/SVG/SVGElement.js"],I["Core/Renderer/SVG/SVGRenderer.js"],I["Core/Utilities.js"]],function(j,H,F,K){var Z=this&&this.__extends||function(){var w=function(g,y){return w=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(v,A){v.__proto__=A}||function(v,A){for(var S in A)A.hasOwnProperty(S)&&(v[S]=A[S])},w(g,y)};return function(g,y){function v(){this.constructor=g}w(g,y),g.prototype=y===null?Object.create(y):(v.prototype=y.prototype,new v)}}(),Q=K.attr,V=K.createElement,P=K.extend,z=K.pick;return function(w){function g(){return w!==null&&w.apply(this,arguments)||this}return Z(g,w),g.compose=function(y){return g.composedClasses.indexOf(y)===-1&&(g.composedClasses.push(y),y.prototype.html=g.prototype.html),y},g.prototype.html=function(y,v,A){var S=this.createElement("span"),M=S.element,k=S.renderer,m=k.isSVG,b=function(T,C){["opacity","visibility"].forEach(function(s){T[s+"Setter"]=function(h,e,l){var t=T.div?T.div.style:C;H.prototype[s+"Setter"].call(this,h,e,l),t&&(t[e]=h)}}),T.addedSetters=!0};return S.textSetter=function(T){T!==this.textStr&&(delete this.bBox,delete this.oldTextWidth,j.setElementHTML(this.element,z(T,"")),this.textStr=T,S.doTransform=!0)},m&&b(S,S.element.style),S.xSetter=S.ySetter=S.alignSetter=S.rotationSetter=function(T,C){C==="align"?S.alignValue=S.textAlign=T:S[C]=T,S.doTransform=!0},S.afterSetters=function(){this.doTransform&&(this.htmlUpdateTransform(),this.doTransform=!1)},S.attr({text:y,x:Math.round(v),y:Math.round(A)}).css({position:"absolute"}),k.styledMode||S.css({fontFamily:this.style.fontFamily,fontSize:this.style.fontSize}),M.style.whiteSpace="nowrap",S.css=S.htmlCss,m&&(S.add=function(T){var C=k.box.parentNode,s=[];if(this.parentGroup=T){var h=T.div;if(!h){for(;T;)s.push(T),T=T.parentGroup;s.reverse().forEach(function(e){function l(o,u){e[u]=o,u==="translateX"?i.left=o+"px":i.top=o+"px",e.doTransform=!0}var t=Q(e.element,"class"),p=e.styles||{};h=e.div=e.div||V("div",t?{className:t}:void 0,{position:"absolute",left:(e.translateX||0)+"px",top:(e.translateY||0)+"px",display:e.display,opacity:e.opacity,cursor:p.cursor,pointerEvents:p.pointerEvents,visibility:e.visibility},h||C);var i=h.style;P(e,{classSetter:function(o){return function(u){this.element.setAttribute("class",u),o.className=u}}(h),on:function(){return s[0].div&&S.on.apply({element:s[0].div,onEvents:e.onEvents},arguments),e},translateXSetter:l,translateYSetter:l}),e.addedSetters||b(e)})}}else h=C;return h.appendChild(M),S.added=!0,S.alignOnAdd&&S.htmlUpdateTransform(),S}),S},g.composedClasses=[],g}(F)}),lt(I,"Core/Axis/AxisDefaults.js",[],function(){var j=function(H){return H.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"},H.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(){var F=this.axis.chart.numberFormatter;return F(this.total||0,-1)},style:{color:"#000000",fontSize:"11px",fontWeight:"bold",textOutline:"1px contrast"}},gridLineWidth:1,lineWidth:0},H.defaultLeftAxisOptions={labels:{x:-15},title:{rotation:270}},H.defaultRightAxisOptions={labels:{x:15},title:{rotation:90}},H.defaultBottomAxisOptions={labels:{autoRotation:[-45],x:0},margin:15,title:{rotation:0}},H.defaultTopAxisOptions={labels:{autoRotation:[-45],x:0},margin:15,title:{rotation:0}},H}(j||{});return j}),lt(I,"Core/Foundation.js",[I["Core/Utilities.js"]],function(j){var H=j.addEvent,F=j.isFunction,K=j.objectEach,Z=j.removeEvent,Q;return function(V){V.registerEventOptions=function(P,z){P.eventOptions=P.eventOptions||{},K(z.events,function(w,g){P.eventOptions[g]!==w&&(P.eventOptions[g]&&(Z(P,g,P.eventOptions[g]),delete P.eventOptions[g]),F(w)&&(P.eventOptions[g]=w,H(P,g,w)))})}}(Q||(Q={})),Q}),lt(I,"Core/Axis/Tick.js",[I["Core/FormatUtilities.js"],I["Core/Globals.js"],I["Core/Utilities.js"]],function(j,H,F){var K=H.deg2rad,Z=F.clamp,Q=F.correctFloat,V=F.defined,P=F.destroyObjectProperties,z=F.extend,w=F.fireEvent,g=F.isNumber,y=F.merge,v=F.objectEach,A=F.pick;return H=function(){function S(M,k,m,b,T){this.isNewLabel=this.isNew=!0,this.axis=M,this.pos=k,this.type=m||"",this.parameters=T||{},this.tickmarkOffset=this.parameters.tickmarkOffset,this.options=this.parameters.options,w(this,"init"),m||b||this.addLabel()}return S.prototype.addLabel=function(){var M=this,k=M.axis,m=k.options,b=k.chart,T=k.categories,C=k.logarithmic,s=k.names,h=M.pos,e=A(M.options&&M.options.labels,m.labels),l=k.tickPositions,t=h===l[0],p=h===l[l.length-1],i=(!e.step||e.step===1)&&k.tickInterval===1;l=l.info;var o=M.label,u;if(T=this.parameters.category||(T?A(T[h],s[h],h):h),C&&g(T)&&(T=Q(C.lin2log(T))),k.dateTime)if(l)var n=b.time.resolveDTLFormat(m.dateTimeLabelFormats[!m.grid&&l.higherRanks[h]||l.unitName]),x=n.main;else g(T)&&(x=k.dateTime.getXDateFormat(T,m.dateTimeLabelFormats||{}));M.isFirst=t,M.isLast=p;var L={axis:k,chart:b,dateTimeLabelFormat:x,isFirst:t,isLast:p,pos:h,tick:M,tickPositionInfo:l,value:T};w(this,"labelFormat",L);var U=function(r){return e.formatter?e.formatter.call(r,r):e.format?(r.text=k.defaultLabelFormatter.call(r,r),j.format(e.format,r,b)):k.defaultLabelFormatter.call(r,r)};m=U.call(L,L);var _=n&&n.list;M.shortenLabel=_?function(){for(u=0;u<_.length;u++)if(z(L,{dateTimeLabelFormat:_[u]}),o.attr({text:U.call(L,L)}),o.getBBox().width<k.getSlotWidth(M)-2*e.padding)return;o.attr({text:""})}:void 0,i&&k._addedPlotLB&&M.moveLabel(m,e),V(o)||M.movedLabel?o&&o.textStr!==m&&!i&&(!o.textWidth||e.style.width||o.styles.width||o.css({width:null}),o.attr({text:m}),o.textPxLength=o.getBBox().width):(M.label=o=M.createLabel({x:0,y:0},m,e),M.rotation=0)},S.prototype.createLabel=function(M,k,m){var b=this.axis,T=b.chart;return(M=V(k)&&m.enabled?T.renderer.text(k,M.x,M.y,m.useHTML).add(b.labelGroup):null)&&(T.styledMode||M.css(y(m.style)),M.textPxLength=M.getBBox().width),M},S.prototype.destroy=function(){P(this,this.axis)},S.prototype.getPosition=function(M,k,m,b){var T=this.axis,C=T.chart,s=b&&C.oldChartHeight||C.chartHeight;return M={x:M?Q(T.translate(k+m,void 0,void 0,b)+T.transB):T.left+T.offset+(T.opposite?(b&&C.oldChartWidth||C.chartWidth)-T.right-T.left:0),y:M?s-T.bottom+T.offset-(T.opposite?T.height:0):Q(s-T.translate(k+m,void 0,void 0,b)-T.transB)},M.y=Z(M.y,-1e5,1e5),w(this,"afterGetPosition",{pos:M}),M},S.prototype.getLabelPosition=function(M,k,m,b,T,C,s,h){var e=this.axis,l=e.transA,t=e.isLinked&&e.linkedParent?e.linkedParent.reversed:e.reversed,p=e.staggerLines,i=e.tickRotCorr||{x:0,y:0},o=b||e.reserveSpaceDefault?0:-e.labelOffset*(e.labelAlign==="center"?.5:1),u={};return m=e.side===0?m.rotation?-8:-m.getBBox().height:e.side===2?i.y+8:Math.cos(m.rotation*K)*(i.y-m.getBBox(!1,0).height/2),V(T.y)&&(m=e.side===0&&e.horiz?T.y+m:T.y),M=M+T.x+o+i.x-(C&&b?C*l*(t?-1:1):0),k=k+m-(C&&!b?C*l*(t?1:-1):0),p&&(b=s/(h||1)%p,e.opposite&&(b=p-b-1),k+=e.labelOffset/p*b),u.x=M,u.y=Math.round(k),w(this,"afterGetLabelPosition",{pos:u,tickmarkOffset:C,index:s}),u},S.prototype.getLabelSize=function(){return this.label?this.label.getBBox()[this.axis.horiz?"height":"width"]:0},S.prototype.getMarkPath=function(M,k,m,b,T,C){return C.crispLine([["M",M,k],["L",M+(T?0:-m),k+(T?m:0)]],b)},S.prototype.handleOverflow=function(M){var k=this.axis,m=k.options.labels,b=M.x,T=k.chart.chartWidth,C=k.chart.spacing,s=A(k.labelLeft,Math.min(k.pos,C[3]));C=A(k.labelRight,Math.max(k.isRadial?0:k.pos+k.len,T-C[1]));var h=this.label,e=this.rotation,l={left:0,center:.5,right:1}[k.labelAlign||h.attr("align")],t=h.getBBox().width,p=k.getSlotWidth(this),i={},o=p,u=1,n;e||m.overflow!=="justify"?0>e&&b-l*t<s?n=Math.round(b/Math.cos(e*K)-s):0<e&&b+l*t>C&&(n=Math.round((T-b)/Math.cos(e*K))):(T=b+(1-l)*t,b-l*t<s?o=M.x+o*(1-l)-s:T>C&&(o=C-M.x+o*l,u=-1),o=Math.min(p,o),o<p&&k.labelAlign==="center"&&(M.x+=u*(p-o-l*(p-Math.min(t,o)))),(t>o||k.autoRotation&&(h.styles||{}).width)&&(n=o)),n&&(this.shortenLabel?this.shortenLabel():(i.width=Math.floor(n)+"px",(m.style||{}).textOverflow||(i.textOverflow="ellipsis"),h.css(i)))},S.prototype.moveLabel=function(M,k){var m=this,b=m.label,T=m.axis,C=T.reversed,s=!1;if(b&&b.textStr===M?(m.movedLabel=b,s=!0,delete m.label):v(T.ticks,function(e){s||e.isNew||e===m||!e.label||e.label.textStr!==M||(m.movedLabel=e.label,s=!0,e.labelPos=m.movedLabel.xy,delete e.label)}),!s&&(m.labelPos||b)){var h=m.labelPos||b.xy;b=T.horiz?C?0:T.width+T.left:h.x,T=T.horiz?h.y:C?T.width+T.left:0,m.movedLabel=m.createLabel({x:b,y:T},M,k),m.movedLabel&&m.movedLabel.attr({opacity:0})}},S.prototype.render=function(M,k,m){var b=this.axis,T=b.horiz,C=this.pos,s=A(this.tickmarkOffset,b.tickmarkOffset);C=this.getPosition(T,C,s,k),s=C.x;var h=C.y;b=T&&s===b.pos+b.len||!T&&h===b.pos?-1:1,T=A(m,this.label&&this.label.newOpacity,1),m=A(m,1),this.isActive=!0,this.renderGridLine(k,m,b),this.renderMark(C,m,b),this.renderLabel(C,k,T,M),this.isNew=!1,w(this,"afterRender")},S.prototype.renderGridLine=function(M,k,m){var b=this.axis,T=b.options,C={},s=this.pos,h=this.type,e=A(this.tickmarkOffset,b.tickmarkOffset),l=b.chart.renderer,t=this.gridLine,p=T.gridLineWidth,i=T.gridLineColor,o=T.gridLineDashStyle;this.type==="minor"&&(p=T.minorGridLineWidth,i=T.minorGridLineColor,o=T.minorGridLineDashStyle),t||(b.chart.styledMode||(C.stroke=i,C["stroke-width"]=p||0,C.dashstyle=o),h||(C.zIndex=1),M&&(k=0),this.gridLine=t=l.path().attr(C).addClass("highcharts-"+(h?h+"-":"")+"grid-line").add(b.gridGroup)),t&&(m=b.getPlotLinePath({value:s+e,lineWidth:t.strokeWidth()*m,force:"pass",old:M,acrossPanes:!1}))&&t[M||this.isNew?"attr":"animate"]({d:m,opacity:k})},S.prototype.renderMark=function(M,k,m){var b=this.axis,T=b.options,C=b.chart.renderer,s=this.type,h=b.tickSize(s?s+"Tick":"tick"),e=M.x;M=M.y;var l=A(T[s!=="minor"?"tickWidth":"minorTickWidth"],!s&&b.isXAxis?1:0);T=T[s!=="minor"?"tickColor":"minorTickColor"];var t=this.mark,p=!t;h&&(b.opposite&&(h[0]=-h[0]),t||(this.mark=t=C.path().addClass("highcharts-"+(s?s+"-":"")+"tick").add(b.axisGroup),b.chart.styledMode||t.attr({stroke:T,"stroke-width":l})),t[p?"attr":"animate"]({d:this.getMarkPath(e,M,h[0],t.strokeWidth()*m,b.horiz,C),opacity:k}))},S.prototype.renderLabel=function(M,k,m,b){var T=this.axis,C=T.horiz,s=T.options,h=this.label,e=s.labels,l=e.step;T=A(this.tickmarkOffset,T.tickmarkOffset);var t=M.x;M=M.y;var p=!0;h&&g(t)&&(h.xy=M=this.getLabelPosition(t,M,h,C,e,T,b,l),this.isFirst&&!this.isLast&&!s.showFirstLabel||this.isLast&&!this.isFirst&&!s.showLastLabel?p=!1:!C||e.step||e.rotation||k||m===0||this.handleOverflow(M),l&&b%l&&(p=!1),p&&g(M.y)?(M.opacity=m,h[this.isNewLabel?"attr":"animate"](M).show(!0),this.isNewLabel=!1):(h.hide(),this.isNewLabel=!0))},S.prototype.replaceMovedLabel=function(){var M=this.label,k=this.axis,m=k.reversed;if(M&&!this.isNew){var b=k.horiz?m?k.left:k.width+k.left:M.xy.x;m=k.horiz?M.xy.y:m?k.width+k.top:k.top,M.animate({x:b,y:m,opacity:0},void 0,M.destroy),delete this.label}k.isDirty=!0,this.label=this.movedLabel,delete this.movedLabel},S}(),H}),lt(I,"Core/Axis/Axis.js",[I["Core/Animation/AnimationUtilities.js"],I["Core/Axis/AxisDefaults.js"],I["Core/Color/Color.js"],I["Core/Defaults.js"],I["Core/Foundation.js"],I["Core/Globals.js"],I["Core/Axis/Tick.js"],I["Core/Utilities.js"]],function(j,H,F,K,Z,Q,V,P){var z=j.animObject,w=K.defaultOptions,g=Z.registerEventOptions,y=Q.deg2rad,v=P.arrayMax,A=P.arrayMin,S=P.clamp,M=P.correctFloat,k=P.defined,m=P.destroyObjectProperties,b=P.erase,T=P.error,C=P.extend,s=P.fireEvent,h=P.isArray,e=P.isNumber,l=P.isString,t=P.merge,p=P.normalizeTickInterval,i=P.objectEach,o=P.pick,u=P.relativeLength,n=P.removeEvent,x=P.splat,L=P.syncTimeout,U=function(_,r){return p(r,void 0,void 0,o(_.options.allowDecimals,.5>r||_.tickAmount!==void 0),!!_.tickAmount)};return j=function(){function _(r,f){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(r,f)}return _.prototype.init=function(r,f){var O=f.isX;this.chart=r,this.horiz=r.inverted&&!this.isZAxis?!O:O,this.isXAxis=O,this.coll=this.coll||(O?"xAxis":"yAxis"),s(this,"init",{userOptions:f}),this.opposite=o(f.opposite,this.opposite),this.side=o(f.side,this.side,this.horiz?this.opposite?0:2:this.opposite?1:3),this.setOptions(f);var B=this.options,R=B.labels,a=B.type;this.userOptions=f,this.minPixelPadding=0,this.reversed=o(B.reversed,this.reversed),this.visible=B.visible,this.zoomEnabled=B.zoomEnabled,this.hasNames=a==="category"||B.categories===!0,this.categories=B.categories||(this.hasNames?[]:void 0),this.names||(this.names=[],this.names.keys={}),this.plotLinesAndBandsGroups={},this.positiveValuesOnly=!!this.logarithmic,this.isLinked=k(B.linkedTo),this.ticks={},this.labelEdge=[],this.minorTicks={},this.plotLinesAndBands=[],this.alternateBands={},this.len=0,this.minRange=this.userMinRange=B.minRange||B.maxZoom,this.range=B.range,this.offset=B.offset||0,this.min=this.max=null,f=o(B.crosshair,x(r.options.tooltip.crosshairs)[O?0:1]),this.crosshair=f===!0?{}:f,r.axes.indexOf(this)===-1&&(O?r.axes.splice(r.xAxis.length,0,this):r.axes.push(this),r[this.coll].push(this)),this.series=this.series||[],r.inverted&&!this.isZAxis&&O&&typeof this.reversed>"u"&&(this.reversed=!0),this.labelRotation=e(R.rotation)?R.rotation:void 0,g(this,B),s(this,"afterInit")},_.prototype.setOptions=function(r){this.options=t(H.defaultXAxisOptions,this.coll==="yAxis"&&H.defaultYAxisOptions,[H.defaultTopAxisOptions,H.defaultRightAxisOptions,H.defaultBottomAxisOptions,H.defaultLeftAxisOptions][this.side],t(w[this.coll],r)),s(this,"afterSetOptions",{userOptions:r})},_.prototype.defaultLabelFormatter=function(r){var f=this.axis;r=this.chart.numberFormatter;var O=e(this.value)?this.value:NaN,B=f.chart.time,R=this.dateTimeLabelFormat,a=w.lang,c=a.numericSymbols;a=a.numericSymbolMagnitude||1e3;var d=f.logarithmic?Math.abs(O):f.tickInterval,D=c&&c.length;if(f.categories)var E="".concat(this.value);else if(R)E=B.dateFormat(R,O);else if(D&&1e3<=d)for(;D--&&typeof E>"u";)f=Math.pow(a,D+1),d>=f&&10*O%f===0&&c[D]!==null&&O!==0&&(E=r(O/f,-1)+c[D]);return typeof E>"u"&&(E=1e4<=Math.abs(O)?r(O,-1):r(O,-1,void 0,"")),E},_.prototype.getSeriesExtremes=function(){var r=this,f=r.chart,O;s(this,"getSeriesExtremes",null,function(){r.hasVisibleSeries=!1,r.dataMin=r.dataMax=r.threshold=null,r.softThreshold=!r.isXAxis,r.series.forEach(function(B){if(B.visible||!f.options.chart.ignoreHiddenSeries){var R=B.options,a=R.threshold;if(r.hasVisibleSeries=!0,r.positiveValuesOnly&&0>=a&&(a=null),r.isXAxis){if(R=B.xData,R.length){R=r.logarithmic?R.filter(r.validatePositiveValue):R,O=B.getXExtremes(R);var c=O.min,d=O.max;e(c)||c instanceof Date||(R=R.filter(e),O=B.getXExtremes(R),c=O.min,d=O.max),R.length&&(r.dataMin=Math.min(o(r.dataMin,c),c),r.dataMax=Math.max(o(r.dataMax,d),d))}}else B=B.applyExtremes(),e(B.dataMin)&&(c=B.dataMin,r.dataMin=Math.min(o(r.dataMin,c),c)),e(B.dataMax)&&(d=B.dataMax,r.dataMax=Math.max(o(r.dataMax,d),d)),k(a)&&(r.threshold=a),(!R.softThreshold||r.positiveValuesOnly)&&(r.softThreshold=!1)}})}),s(this,"afterGetSeriesExtremes")},_.prototype.translate=function(r,f,O,B,R,a){var c=this.linkedParent||this,d=B&&c.old?c.old.min:c.min;if(!e(d))return NaN;var D=c.minPixelPadding;R=(c.isOrdinal||c.brokenAxis&&c.brokenAxis.hasBreaks||c.logarithmic&&R)&&c.lin2val;var E=1,N=0;return B=B&&c.old?c.old.transA:c.transA,B||(B=c.transA),O&&(E*=-1,N=c.len),c.reversed&&(E*=-1,N-=E*(c.sector||c.len)),f?(a=(r*E+N-D)/B+d,R&&(a=c.lin2val(a))):(R&&(r=c.val2lin(r)),r=E*(r-d)*B,a=(c.isRadial?r:M(r))+N+E*D+(e(a)?B*a:0)),a},_.prototype.toPixels=function(r,f){return this.translate(r,!1,!this.horiz,void 0,!0)+(f?0:this.pos)},_.prototype.toValue=function(r,f){return this.translate(r-(f?0:this.pos),!0,!this.horiz,void 0,!0)},_.prototype.getPlotLinePath=function(r){function f(tt,X,G){return q!=="pass"&&(tt<X||tt>G)&&(q?tt=S(tt,X,G):at=!0),tt}var O=this,B=O.chart,R=O.left,a=O.top,c=r.old,d=r.value,D=r.lineWidth,E=c&&B.oldChartHeight||B.chartHeight,N=c&&B.oldChartWidth||B.chartWidth,W=O.transB,Y=r.translatedValue,q=r.force,et,st,rt,it,at;return r={value:d,lineWidth:D,old:c,force:q,acrossPanes:r.acrossPanes,translatedValue:Y},s(this,"getPlotLinePath",r,function(tt){Y=o(Y,O.translate(d,void 0,void 0,c)),Y=S(Y,-1e5,1e5),et=rt=Math.round(Y+W),st=it=Math.round(E-Y-W),e(Y)?O.horiz?(st=a,it=E-O.bottom,et=rt=f(et,R,R+O.width)):(et=R,rt=N-O.right,st=it=f(st,a,a+O.height)):(at=!0,q=!1),tt.path=at&&!q?null:B.renderer.crispLine([["M",et,st],["L",rt,it]],D||1)}),r.path},_.prototype.getLinearTickPositions=function(r,f,O){var B=M(Math.floor(f/r)*r);O=M(Math.ceil(O/r)*r);var R=[],a;if(M(B+r)===B&&(a=20),this.single)return[f];for(f=B;f<=O&&(R.push(f),f=M(f+r,a),f!==c);)var c=f;return R},_.prototype.getMinorTickInterval=function(){var r=this.options;return r.minorTicks===!0?o(r.minorTickInterval,"auto"):r.minorTicks===!1?null:r.minorTickInterval},_.prototype.getMinorTickPositions=function(){var r=this.options,f=this.tickPositions,O=this.minorTickInterval,B=this.pointRangePadding||0,R=this.min-B;B=this.max+B;var a=B-R,c=[];if(a&&a/O<this.len/3){var d=this.logarithmic;if(d)this.paddedTicks.forEach(function(D,E,N){E&&c.push.apply(c,d.getLogTickPositions(O,N[E-1],N[E],!0))});else if(this.dateTime&&this.getMinorTickInterval()==="auto")c=c.concat(this.getTimeTicks(this.dateTime.normalizeTimeTickInterval(O),R,B,r.startOfWeek));else for(r=R+(f[0]-R)%O;r<=B&&r!==c[0];r+=O)c.push(r)}return c.length!==0&&this.trimTicks(c),c},_.prototype.adjustForMinRange=function(){var r=this.options,f=this.logarithmic,O=this.min,B=this.max,R=0,a,c,d,D;if(this.isXAxis&&typeof this.minRange>"u"&&!f&&(k(r.min)||k(r.max)||k(r.floor)||k(r.ceiling)?this.minRange=null:(this.series.forEach(function(Y){if(d=Y.xData,D=Y.xIncrement?1:d.length-1,1<d.length)for(a=D;0<a;a--)c=d[a]-d[a-1],(!R||c<R)&&(R=c)}),this.minRange=Math.min(5*R,this.dataMax-this.dataMin))),B-O<this.minRange){var E=this.dataMax-this.dataMin>=this.minRange,N=this.minRange,W=(N-B+O)/2;W=[O-W,o(r.min,O-W)],E&&(W[2]=this.logarithmic?this.logarithmic.log2lin(this.dataMin):this.dataMin),O=v(W),B=[O+N,o(r.max,O+N)],E&&(B[2]=f?f.log2lin(this.dataMax):this.dataMax),B=A(B),B-O<N&&(W[0]=B-N,W[1]=o(r.min,B-N),O=v(W))}this.min=O,this.max=B},_.prototype.getClosest=function(){var r;return this.categories?r=1:this.series.forEach(function(f){var O=f.closestPointRange,B=f.visible||!f.chart.options.chart.ignoreHiddenSeries;!f.noSharedTooltip&&k(O)&&B&&(r=k(r)?Math.min(r,O):O)}),r},_.prototype.nameToX=function(r){var f=h(this.options.categories),O=f?this.categories:this.names,B=r.options.x;if(r.series.requireSorting=!1,k(B)||(B=this.options.uniqueNames&&O?f?O.indexOf(r.name):o(O.keys[r.name],-1):r.series.autoIncrement()),B===-1){if(!f&&O)var R=O.length}else R=B;return typeof R<"u"?(this.names[R]=r.name,this.names.keys[r.name]=R):r.x&&(R=r.x),R},_.prototype.updateNames=function(){var r=this,f=this.names;0<f.length&&(Object.keys(f.keys).forEach(function(O){delete f.keys[O]}),f.length=0,this.minRange=this.userMinRange,(this.series||[]).forEach(function(O){O.xIncrement=null,(!O.points||O.isDirtyData)&&(r.max=Math.max(r.max,O.xData.length-1),O.processData(),O.generatePoints()),O.data.forEach(function(B,R){if(B&&B.options&&typeof B.name<"u"){var a=r.nameToX(B);typeof a<"u"&&a!==B.x&&(B.x=a,O.xData[R]=a)}})}))},_.prototype.setAxisTranslation=function(){var r=this,f=r.max-r.min,O=r.linkedParent,B=!!r.categories,R=r.isXAxis,a=r.axisPointRange||0,c=0,d=0,D=r.transA;if(R||B||a){var E=r.getClosest();O?(c=O.minPointOffset,d=O.pointRangePadding):r.series.forEach(function(N){var W=B?1:R?o(N.options.pointRange,E,0):r.axisPointRange||0,Y=N.options.pointPlacement;a=Math.max(a,W),(!r.single||B)&&(N=N.is("xrange")?!R:R,c=Math.max(c,N&&l(Y)?0:W/2),d=Math.max(d,N&&Y==="on"?0:W))}),O=r.ordinal&&r.ordinal.slope&&E?r.ordinal.slope/E:1,r.minPointOffset=c*=O,r.pointRangePadding=d*=O,r.pointRange=Math.min(a,r.single&&B?1:f),R&&(r.closestPointRange=E)}r.translationSlope=r.transA=D=r.staticScale||r.len/(f+d||1),r.transB=r.horiz?r.left:r.bottom,r.minPixelPadding=D*c,s(this,"afterSetAxisTranslation")},_.prototype.minFromRange=function(){return this.max-this.range},_.prototype.setTickInterval=function(r){var f=this.chart,O=this.logarithmic,B=this.options,R=this.isXAxis,a=this.isLinked,c=B.tickPixelInterval,d=this.categories,D=this.softThreshold,E=B.maxPadding,N=B.minPadding,W=e(B.tickInterval)&&0<=B.tickInterval?B.tickInterval:void 0,Y=e(this.threshold)?this.threshold:null;this.dateTime||d||a||this.getTickAmount();var q=o(this.userMin,B.min),et=o(this.userMax,B.max);if(a){this.linkedParent=f[this.coll][B.linkedTo];var st=this.linkedParent.getExtremes();this.min=o(st.min,st.dataMin),this.max=o(st.max,st.dataMax),B.type!==this.linkedParent.options.type&&T(11,1,f)}else{if(D&&k(Y)){if(this.dataMin>=Y)st=Y,N=0;else if(this.dataMax<=Y){var rt=Y;E=0}}this.min=o(q,st,this.dataMin),this.max=o(et,rt,this.dataMax)}if(O&&(this.positiveValuesOnly&&!r&&0>=Math.min(this.min,o(this.dataMin,this.min))&&T(10,1,f),this.min=M(O.log2lin(this.min),16),this.max=M(O.log2lin(this.max),16)),this.range&&k(this.max)&&(this.userMin=this.min=q=Math.max(this.dataMin,this.minFromRange()),this.userMax=et=this.max,this.range=null),s(this,"foundExtremes"),this.beforePadding&&this.beforePadding(),this.adjustForMinRange(),!(d||this.axisPointRange||this.stacking&&this.stacking.usePercentage||a)&&k(this.min)&&k(this.max)&&(f=this.max-this.min)&&(!k(q)&&N&&(this.min-=f*N),!k(et)&&E&&(this.max+=f*E)),e(this.userMin)||(e(B.softMin)&&B.softMin<this.min&&(this.min=q=B.softMin),e(B.floor)&&(this.min=Math.max(this.min,B.floor))),e(this.userMax)||(e(B.softMax)&&B.softMax>this.max&&(this.max=et=B.softMax),e(B.ceiling)&&(this.max=Math.min(this.max,B.ceiling))),D&&k(this.dataMin)&&(Y=Y||0,!k(q)&&this.min<Y&&this.dataMin>=Y?this.min=this.options.minRange?Math.min(Y,this.max-this.minRange):Y:!k(et)&&this.max>Y&&this.dataMax<=Y&&(this.max=this.options.minRange?Math.max(Y,this.min+this.minRange):Y)),e(this.min)&&e(this.max)&&!this.chart.polar&&this.min>this.max&&(k(this.options.min)?this.max=this.min:k(this.options.max)&&(this.min=this.max)),this.tickInterval=this.min===this.max||typeof this.min>"u"||typeof this.max>"u"?1:a&&this.linkedParent&&!W&&c===this.linkedParent.options.tickPixelInterval?W=this.linkedParent.tickInterval:o(W,this.tickAmount?(this.max-this.min)/Math.max(this.tickAmount-1,1):void 0,d?1:(this.max-this.min)*c/Math.max(this.len,c)),R&&!r){var it=this.min!==(this.old&&this.old.min)||this.max!==(this.old&&this.old.max);this.series.forEach(function(at){at.forceCrop=at.forceCropping&&at.forceCropping(),at.processData(it)}),s(this,"postProcessData",{hasExtremesChanged:it})}this.setAxisTranslation(),s(this,"initialAxisTranslation"),this.pointRange&&!W&&(this.tickInterval=Math.max(this.pointRange,this.tickInterval)),r=o(B.minTickInterval,this.dateTime&&!this.series.some(function(at){return at.noSharedTooltip})?this.closestPointRange:0),!W&&this.tickInterval<r&&(this.tickInterval=r),this.dateTime||this.logarithmic||W||(this.tickInterval=U(this,this.tickInterval)),this.tickAmount||(this.tickInterval=this.unsquish()),this.setTickPositions()},_.prototype.setTickPositions=function(){var r=this.options,f=r.tickPositions,O=r.tickPositioner,B=this.getMinorTickInterval(),R=this.hasVerticalPanning(),a=this.coll==="colorAxis",c=(a||!R)&&r.startOnTick;R=(a||!R)&&r.endOnTick,a=[];var d;if(this.tickmarkOffset=this.categories&&r.tickmarkPlacement==="between"&&this.tickInterval===1?.5:0,this.minorTickInterval=B==="auto"&&this.tickInterval?this.tickInterval/5:B,this.single=this.min===this.max&&k(this.min)&&!this.tickAmount&&(parseInt(this.min,10)===this.min||r.allowDecimals!==!1),f)a=f.slice();else if(e(this.min)&&e(this.max)){if(this.ordinal&&this.ordinal.positions||!((this.max-this.min)/this.tickInterval>Math.max(2*this.len,200)))if(this.dateTime)a=this.getTimeTicks(this.dateTime.normalizeTimeTickInterval(this.tickInterval,r.units),this.min,this.max,r.startOfWeek,this.ordinal&&this.ordinal.positions,this.closestPointRange,!0);else if(this.logarithmic)a=this.logarithmic.getLogTickPositions(this.tickInterval,this.min,this.max);else for(B=r=this.tickInterval;B<=2*r&&(a=this.getLinearTickPositions(this.tickInterval,this.min,this.max),this.tickAmount&&a.length>this.tickAmount);)this.tickInterval=U(this,B*=1.1);else a=[this.min,this.max],T(19,!1,this.chart);a.length>this.len&&(a=[a[0],a[a.length-1]],a[0]===a[1]&&(a.length=1)),O&&(this.tickPositions=a,(d=O.apply(this,[this.min,this.max]))&&(a=d))}this.tickPositions=a,this.paddedTicks=a.slice(0),this.trimTicks(a,c,R),!this.isLinked&&e(this.min)&&e(this.max)&&(this.single&&2>a.length&&!this.categories&&!this.series.some(function(D){return D.is("heatmap")&&D.options.pointPlacement==="between"})&&(this.min-=.5,this.max+=.5),f||d||this.adjustTickAmount()),s(this,"afterSetTickPositions")},_.prototype.trimTicks=function(r,f,O){var B=r[0],R=r[r.length-1],a=!this.isOrdinal&&this.minPointOffset||0;if(s(this,"trimTicks"),!this.isLinked){if(f&&B!==-1/0)this.min=B;else for(;this.min-a>r[0];)r.shift();if(O)this.max=R;else for(;this.max+a<r[r.length-1];)r.pop();r.length===0&&k(B)&&!this.options.tickPositions&&r.push((R+B)/2)}},_.prototype.alignToOthers=function(){var r=this,f=[this],O=r.options,B=this.coll==="yAxis"&&this.chart.options.chart.alignThresholds,R=[],a;if(r.thresholdAlignment=void 0,(this.chart.options.chart.alignTicks!==!1&&O.alignTicks||B)&&O.startOnTick!==!1&&O.endOnTick!==!1&&!r.logarithmic){var c=function(E){var N=E.options;return[E.horiz?N.left:N.top,N.width,N.height,N.pane].join()},d=c(this);this.chart[this.coll].forEach(function(E){var N=E.series;N.length&&N.some(function(W){return W.visible})&&E!==r&&c(E)===d&&(a=!0,f.push(E))})}if(a&&B){f.forEach(function(E){E=E.getThresholdAlignment(r),e(E)&&R.push(E)});var D=1<R.length?R.reduce(function(E,N){return E+N},0)/R.length:void 0;f.forEach(function(E){E.thresholdAlignment=D})}return a},_.prototype.getThresholdAlignment=function(r){if((!e(this.dataMin)||this!==r&&this.series.some(function(f){return f.isDirty||f.isDirtyData}))&&this.getSeriesExtremes(),e(this.threshold))return r=S((this.threshold-(this.dataMin||0))/((this.dataMax||0)-(this.dataMin||0)),0,1),this.options.reversed&&(r=1-r),r},_.prototype.getTickAmount=function(){var r=this.options,f=r.tickPixelInterval,O=r.tickAmount;!k(r.tickInterval)&&!O&&this.len<f&&!this.isRadial&&!this.logarithmic&&r.startOnTick&&r.endOnTick&&(O=2),!O&&this.alignToOthers()&&(O=Math.ceil(this.len/f)+1),4>O&&(this.finalTickAmt=O,O=5),this.tickAmount=O},_.prototype.adjustTickAmount=function(){var r=this,f=r.finalTickAmt,O=r.max,B=r.min,R=r.options,a=r.tickPositions,c=r.tickAmount,d=r.thresholdAlignment,D=a&&a.length,E=o(r.threshold,r.softThreshold?0:null),N=r.tickInterval;if(e(d)){var W=.5>d?Math.ceil(d*(c-1)):Math.floor(d*(c-1));R.reversed&&(W=c-1-W)}if(r.hasData()&&e(B)&&e(O)){if(d=function(){r.transA*=(D-1)/(c-1),r.min=R.startOnTick?a[0]:Math.min(B,a[0]),r.max=R.endOnTick?a[a.length-1]:Math.max(O,a[a.length-1])},e(W)&&e(r.threshold)){for(;a[W]!==E||a.length!==c||a[0]>B||a[a.length-1]<O;){for(a.length=0,a.push(r.threshold);a.length<c;)a[W]===void 0||a[W]>r.threshold?a.unshift(M(a[0]-N)):a.push(M(a[a.length-1]+N));if(N>8*r.tickInterval)break;N*=2}d()}else if(D<c){for(;a.length<c;)a.length%2||B===E?a.push(M(a[a.length-1]+N)):a.unshift(M(a[0]-N));d()}if(k(f)){for(N=E=a.length;N--;)(f===3&&N%2===1||2>=f&&0<N&&N<E-1)&&a.splice(N,1);r.finalTickAmt=void 0}}},_.prototype.setScale=function(){var r=!1,f=!1;this.series.forEach(function(B){r=r||B.isDirtyData||B.isDirty,f=f||B.xAxis&&B.xAxis.isDirty||!1}),this.setAxisSize();var O=this.len!==(this.old&&this.old.len);O||r||f||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=O||this.min!==(this.old&&this.old.min)||this.max!==(this.old&&this.old.max))):this.stacking&&this.stacking.cleanStacks(),r&&this.panningState&&(this.panningState.isDirty=!0),s(this,"afterSetScale")},_.prototype.setExtremes=function(r,f,O,B,R){var a=this,c=a.chart;O=o(O,!0),a.series.forEach(function(d){delete d.kdTree}),R=C(R,{min:r,max:f}),s(a,"setExtremes",R,function(){a.userMin=r,a.userMax=f,a.eventArgs=R,O&&c.redraw(B)})},_.prototype.zoom=function(r,f){var O=this,B=this.dataMin,R=this.dataMax,a=this.options,c=Math.min(B,o(a.min,B)),d=Math.max(R,o(a.max,R));return r={newMin:r,newMax:f},s(this,"zoom",r,function(D){var E=D.newMin,N=D.newMax;(E!==O.min||N!==O.max)&&(O.allowZoomOutside||(k(B)&&(E<c&&(E=c),E>d&&(E=d)),k(R)&&(N<c&&(N=c),N>d&&(N=d))),O.displayBtn=typeof E<"u"||typeof N<"u",O.setExtremes(E,N,!1,void 0,{trigger:"zoom"})),D.zoomed=!0}),r.zoomed},_.prototype.setAxisSize=function(){var r=this.chart,f=this.options,O=f.offsets||[0,0,0,0],B=this.horiz,R=this.width=Math.round(u(o(f.width,r.plotWidth-O[3]+O[1]),r.plotWidth)),a=this.height=Math.round(u(o(f.height,r.plotHeight-O[0]+O[2]),r.plotHeight)),c=this.top=Math.round(u(o(f.top,r.plotTop+O[0]),r.plotHeight,r.plotTop));f=this.left=Math.round(u(o(f.left,r.plotLeft+O[3]),r.plotWidth,r.plotLeft)),this.bottom=r.chartHeight-a-c,this.right=r.chartWidth-R-f,this.len=Math.max(B?R:a,0),this.pos=B?f:c},_.prototype.getExtremes=function(){var r=this.logarithmic;return{min:r?M(r.lin2log(this.min)):this.min,max:r?M(r.lin2log(this.max)):this.max,dataMin:this.dataMin,dataMax:this.dataMax,userMin:this.userMin,userMax:this.userMax}},_.prototype.getThreshold=function(r){var f=this.logarithmic,O=f?f.lin2log(this.min):this.min;return f=f?f.lin2log(this.max):this.max,r===null||r===-1/0?r=O:r===1/0?r=f:O>r?r=O:f<r&&(r=f),this.translate(r,0,1,0,1)},_.prototype.autoLabelAlign=function(r){var f=(o(r,0)-90*this.side+720)%360;return r={align:"center"},s(this,"autoLabelAlign",r,function(O){15<f&&165>f?O.align="right":195<f&&345>f&&(O.align="left")}),r.align},_.prototype.tickSize=function(r){var f=this.options,O=o(f[r==="tick"?"tickWidth":"minorTickWidth"],r==="tick"&&this.isXAxis&&!this.categories?1:0),B=f[r==="tick"?"tickLength":"minorTickLength"];if(O&&B){f[r+"Position"]==="inside"&&(B=-B);var R=[B,O]}return r={tickSize:R},s(this,"afterTickSize",r),r.tickSize},_.prototype.labelMetrics=function(){var r=this.tickPositions&&this.tickPositions[0]||0;return this.chart.renderer.fontMetrics(this.options.labels.style.fontSize,this.ticks[r]&&this.ticks[r].label)},_.prototype.unsquish=function(){var r=this.options.labels,f=this.horiz,O=this.tickInterval,B=this.len/(((this.categories?1:0)+this.max-this.min)/O),R=r.rotation,a=this.labelMetrics(),c=Math.max(this.max-this.min,0),d=function(rt){var it=rt/(B||1);return it=1<it?Math.ceil(it):1,it*O>c&&rt!==1/0&&B!==1/0&&c&&(it=Math.ceil(c/O)),M(it*O)},D=O,E=Number.MAX_VALUE;if(f){if(!r.staggerLines)if(e(R))var N=[R];else B<r.autoRotationLimit&&(N=r.autoRotation);if(N)for(var W=f=void 0,Y=0,q=N;Y<q.length;Y++){var et=q[Y];if((et===R||et&&-90<=et&&90>=et)&&(f=d(Math.abs(a.h/Math.sin(y*et))),W=f+Math.abs(et/360),W<E)){E=W;var st=et;D=f}}}else D=d(a.h);return this.autoRotation=N,this.labelRotation=o(st,e(R)?R:0),r.step?O:D},_.prototype.getSlotWidth=function(r){var f=this.chart,O=this.horiz,B=this.options.labels,R=Math.max(this.tickPositions.length-(this.categories?0:1),1),a=f.margin[3];if(r&&e(r.slotWidth))return r.slotWidth;if(O&&2>B.step)return B.rotation?0:(this.staggerLines||1)*this.len/R;if(!O){if(r=B.style.width,r!==void 0)return parseInt(String(r),10);if(a)return a-f.spacing[3]}return .33*f.chartWidth},_.prototype.renderUnsquish=function(){var r=this.chart,f=r.renderer,O=this.tickPositions,B=this.ticks,R=this.options.labels,a=R.style,c=this.horiz,d=this.getSlotWidth(),D=Math.max(1,Math.round(d-2*R.padding)),E={},N=this.labelMetrics(),W=a.textOverflow,Y=0;if(l(R.rotation)||(E.rotation=R.rotation||0),O.forEach(function(rt){rt=B[rt],rt.movedLabel&&rt.replaceMovedLabel(),rt&&rt.label&&rt.label.textPxLength>Y&&(Y=rt.label.textPxLength)}),this.maxLabelLength=Y,this.autoRotation)Y>D&&Y>N.h?E.rotation=this.labelRotation:this.labelRotation=0;else if(d){var q=D;if(!W){var et="clip";for(D=O.length;!c&&D--;){var st=O[D];(st=B[st].label)&&(st.styles&&st.styles.textOverflow==="ellipsis"?st.css({textOverflow:"clip"}):st.textPxLength>d&&st.css({width:d+"px"}),st.getBBox().height>this.len/O.length-(N.h-N.f)&&(st.specificTextOverflow="ellipsis"))}}}E.rotation&&(q=Y>.5*r.chartHeight?.33*r.chartHeight:Y,W||(et="ellipsis")),(this.labelAlign=R.align||this.autoLabelAlign(this.labelRotation))&&(E.align=this.labelAlign),O.forEach(function(rt){var it=(rt=B[rt])&&rt.label,at=a.width,tt={};it&&(it.attr(E),rt.shortenLabel?rt.shortenLabel():q&&!at&&a.whiteSpace!=="nowrap"&&(q<it.textPxLength||it.element.tagName==="SPAN")?(tt.width=q+"px",W||(tt.textOverflow=it.specificTextOverflow||et),it.css(tt)):it.styles&&it.styles.width&&!tt.width&&!at&&it.css({width:null}),delete it.specificTextOverflow,rt.rotation=E.rotation)},this),this.tickRotCorr=f.rotCorr(N.b,this.labelRotation||0,this.side!==0)},_.prototype.hasData=function(){return this.series.some(function(r){return r.hasData()})||this.options.showEmpty&&k(this.min)&&k(this.max)},_.prototype.addTitle=function(r){var f=this.chart.renderer,O=this.horiz,B=this.opposite,R=this.options.title,a=this.chart.styledMode,c;this.axisTitle||((c=R.textAlign)||(c=(O?{low:"left",middle:"center",high:"right"}:{low:B?"right":"left",middle:"center",high:B?"left":"right"})[R.align]),this.axisTitle=f.text(R.text||"",0,0,R.useHTML).attr({zIndex:7,rotation:R.rotation,align:c}).addClass("highcharts-axis-title"),a||this.axisTitle.css(t(R.style)),this.axisTitle.add(this.axisGroup),this.axisTitle.isNew=!0),a||R.style.width||this.isRadial||this.axisTitle.css({width:this.len+"px"}),this.axisTitle[r?"show":"hide"](r)},_.prototype.generateTick=function(r){var f=this.ticks;f[r]?f[r].addLabel():f[r]=new V(this,r)},_.prototype.getOffset=function(){var r=this,f=this,O=f.chart,B=f.horiz,R=f.options,a=f.side,c=f.ticks,d=f.tickPositions,D=f.coll,E=f.axisParent,N=O.renderer,W=O.inverted&&!f.isZAxis?[1,0,3,2][a]:a,Y=f.hasData(),q=R.title,et=R.labels,st=O.axisOffset;O=O.clipOffset;var rt=[-1,1,1,-1][a],it=R.className,at,tt=0,X=0,G=0;if(f.showAxis=at=Y||R.showEmpty,f.staggerLines=f.horiz&&et.staggerLines||void 0,!f.axisGroup){var $=function(ot,nt,pt){return N.g(ot).attr({zIndex:pt}).addClass("highcharts-".concat(D.toLowerCase()).concat(nt," ")+(r.isRadial?"highcharts-radial-axis".concat(nt," "):"")+(it||"")).add(E)};f.gridGroup=$("grid","-grid",R.gridZIndex),f.axisGroup=$("axis","",R.zIndex),f.labelGroup=$("axis-labels","-labels",et.zIndex)}if(Y||f.isLinked?(d.forEach(function(ot){f.generateTick(ot)}),f.renderUnsquish(),f.reserveSpaceDefault=a===0||a===2||{1:"left",3:"right"}[a]===f.labelAlign,o(et.reserveSpace,f.labelAlign==="center"?!0:null,f.reserveSpaceDefault)&&d.forEach(function(ot){G=Math.max(c[ot].getLabelSize(),G)}),f.staggerLines&&(G*=f.staggerLines),f.labelOffset=G*(f.opposite?-1:1)):i(c,function(ot,nt){ot.destroy(),delete c[nt]}),q&&q.text&&q.enabled!==!1&&(f.addTitle(at),at&&q.reserveSpace!==!1)){f.titleOffset=tt=f.axisTitle.getBBox()[B?"height":"width"];var J=q.offset;X=k(J)?0:o(q.margin,B?5:10)}f.renderLine(),f.offset=rt*o(R.offset,st[a]?st[a]+(R.margin||0):0),f.tickRotCorr=f.tickRotCorr||{x:0,y:0},q=a===0?-f.labelMetrics().h:a===2?f.tickRotCorr.y:0,Y=Math.abs(G)+X,G&&(Y=Y-q+rt*(B?o(et.y,f.tickRotCorr.y+8*rt):et.x)),f.axisTitleMargin=o(J,Y),f.getMaxLabelDimensions&&(f.maxLabelDimensions=f.getMaxLabelDimensions(c,d)),D!=="colorAxis"&&(B=this.tickSize("tick"),st[a]=Math.max(st[a],(f.axisTitleMargin||0)+tt+rt*f.offset,Y,d&&d.length&&B?B[0]+rt*f.offset:0),R=!f.axisLine||R.offset?0:2*Math.floor(f.axisLine.strokeWidth()/2),O[W]=Math.max(O[W],R)),s(this,"afterGetOffset")},_.prototype.getLinePath=function(r){var f=this.chart,O=this.opposite,B=this.offset,R=this.horiz,a=this.left+(O?this.width:0)+B;return B=f.chartHeight-this.bottom-(O?this.height:0)+B,O&&(r*=-1),f.renderer.crispLine([["M",R?this.left:a,R?B:this.top],["L",R?f.chartWidth-this.right:a,R?B:f.chartHeight-this.bottom]],r)},_.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}))},_.prototype.getTitlePosition=function(){var r=this.horiz,f=this.left,O=this.top,B=this.len,R=this.options.title,a=r?f:O,c=this.opposite,d=this.offset,D=R.x,E=R.y,N=this.axisTitle,W=this.chart.renderer.fontMetrics(R.style.fontSize,N);return N=N?Math.max(N.getBBox(!1,0).height-W.h-1,0):0,B={low:a+(r?0:B),middle:a+B/2,high:a+(r?B:0)}[R.align],f=(r?O+this.height:f)+(r?1:-1)*(c?-1:1)*(this.axisTitleMargin||0)+[-N,N,W.f,-N][this.side],r={x:r?B+D:f+(c?this.width:0)+d+D,y:r?f+E-(c?this.height:0)+d:B+E},s(this,"afterGetTitlePosition",{titlePosition:r}),r},_.prototype.renderMinorTick=function(r,f){var O=this.minorTicks;O[r]||(O[r]=new V(this,r,"minor")),f&&O[r].isNew&&O[r].render(null,!0),O[r].render(null,!1,1)},_.prototype.renderTick=function(r,f,O){var B=this.ticks;(!this.isLinked||r>=this.min&&r<=this.max||this.grid&&this.grid.isColumn)&&(B[r]||(B[r]=new V(this,r)),O&&B[r].isNew&&B[r].render(f,!0,-1),B[r].render(f))},_.prototype.render=function(){var r=this,f=r.chart,O=r.logarithmic,B=r.options,R=r.isLinked,a=r.tickPositions,c=r.axisTitle,d=r.ticks,D=r.minorTicks,E=r.alternateBands,N=B.stackLabels,W=B.alternateGridColor,Y=r.tickmarkOffset,q=r.axisLine,et=r.showAxis,st=z(f.renderer.globalAnimation),rt,it;if(r.labelEdge.length=0,r.overlap=!1,[d,D,E].forEach(function(tt){i(tt,function(X){X.isActive=!1})}),r.hasData()||R){var at=r.chart.hasRendered&&r.old&&e(r.old.min);r.minorTickInterval&&!r.categories&&r.getMinorTickPositions().forEach(function(tt){r.renderMinorTick(tt,at)}),a.length&&(a.forEach(function(tt,X){r.renderTick(tt,X,at)}),Y&&(r.min===0||r.single)&&(d[-1]||(d[-1]=new V(r,-1,null,!0)),d[-1].render(-1))),W&&a.forEach(function(tt,X){it=typeof a[X+1]<"u"?a[X+1]+Y:r.max-Y,X%2===0&&tt<r.max&&it<=r.max+(f.polar?-Y:Y)&&(E[tt]||(E[tt]=new Q.PlotLineOrBand(r)),rt=tt+Y,E[tt].options={from:O?O.lin2log(rt):rt,to:O?O.lin2log(it):it,color:W,className:"highcharts-alternate-grid"},E[tt].render(),E[tt].isActive=!0)}),r._addedPlotLB||(r._addedPlotLB=!0,(B.plotLines||[]).concat(B.plotBands||[]).forEach(function(tt){r.addPlotBandOrLine(tt)}))}[d,D,E].forEach(function(tt){var X=[],G=st.duration;i(tt,function($,J){$.isActive||($.render(J,!1,0),$.isActive=!1,X.push(J))}),L(function(){for(var $=X.length;$--;)tt[X[$]]&&!tt[X[$]].isActive&&(tt[X[$]].destroy(),delete tt[X[$]])},tt!==E&&f.hasRendered&&G?G:0)}),q&&(q[q.isPlaced?"animate":"attr"]({d:this.getLinePath(q.strokeWidth())}),q.isPlaced=!0,q[et?"show":"hide"](et)),c&&et&&(B=r.getTitlePosition(),c[c.isNew?"attr":"animate"](B),c.isNew=!1),N&&N.enabled&&r.stacking&&r.stacking.renderStackTotals(),r.old={len:r.len,max:r.max,min:r.min,transA:r.transA,userMax:r.userMax,userMin:r.userMin},r.isDirty=!1,s(this,"afterRender")},_.prototype.redraw=function(){this.visible&&(this.render(),this.plotLinesAndBands.forEach(function(r){r.render()})),this.series.forEach(function(r){r.isDirty=!0})},_.prototype.getKeepProps=function(){return this.keepProps||_.keepProps},_.prototype.destroy=function(r){var f=this,O=f.plotLinesAndBands,B=this.eventOptions;if(s(this,"destroy",{keepEvents:r}),r||n(f),[f.ticks,f.minorTicks,f.alternateBands].forEach(function(a){m(a)}),O)for(r=O.length;r--;)O[r].destroy();"axisLine axisTitle axisGroup gridGroup labelGroup cross scrollbar".split(" ").forEach(function(a){f[a]&&(f[a]=f[a].destroy())});for(var R in f.plotLinesAndBandsGroups)f.plotLinesAndBandsGroups[R]=f.plotLinesAndBandsGroups[R].destroy();i(f,function(a,c){f.getKeepProps().indexOf(c)===-1&&delete f[c]}),this.eventOptions=B},_.prototype.drawCrosshair=function(r,f){var O=this.crosshair,B=o(O&&O.snap,!0),R=this.chart,a,c=this.cross;if(s(this,"drawCrosshair",{e:r,point:f}),r||(r=this.cross&&this.cross.e),O&&(k(f)||!B)!==!1){if(B?k(f)&&(a=o(this.coll!=="colorAxis"?f.crosshairPos:null,this.isXAxis?f.plotX:this.len-f.plotY)):a=r&&(this.horiz?r.chartX-this.pos:this.len-r.chartY+this.pos),k(a)){var d={value:f&&(this.isXAxis?f.x:o(f.stackY,f.y)),translatedValue:a};R.polar&&C(d,{isCrosshair:!0,chartX:r&&r.chartX,chartY:r&&r.chartY,point:f}),d=this.getPlotLinePath(d)||null}if(!k(d)){this.hideCrosshair();return}B=this.categories&&!this.isRadial,c||(this.cross=c=R.renderer.path().addClass("highcharts-crosshair highcharts-crosshair-"+(B?"category ":"thin ")+(O.className||"")).attr({zIndex:o(O.zIndex,2)}).add(),R.styledMode||(c.attr({stroke:O.color||(B?F.parse("#ccd6eb").setOpacity(.25).get():"#cccccc"),"stroke-width":o(O.width,1)}).css({"pointer-events":"none"}),O.dashStyle&&c.attr({dashstyle:O.dashStyle}))),c.show().attr({d}),B&&!O.width&&c.attr({"stroke-width":this.transA}),this.cross.e=r}else this.hideCrosshair();s(this,"afterDrawCrosshair",{e:r,point:f})},_.prototype.hideCrosshair=function(){this.cross&&this.cross.hide(),s(this,"afterHideCrosshair")},_.prototype.hasVerticalPanning=function(){var r=this.chart.options.chart.panning;return!!(r&&r.enabled&&/y/.test(r.type))},_.prototype.validatePositiveValue=function(r){return e(r)&&0<r},_.prototype.update=function(r,f){var O=this.chart;r=t(this.userOptions,r),this.destroy(!0),this.init(O,r),O.isDirtyBox=!0,o(f,!0)&&O.redraw()},_.prototype.remove=function(r){for(var f=this.chart,O=this.coll,B=this.series,R=B.length;R--;)B[R]&&B[R].remove(!1);b(f.axes,this),b(f[O],this),f[O].forEach(function(a,c){a.options.index=a.userOptions.index=c}),this.destroy(),f.isDirtyBox=!0,o(r,!0)&&f.redraw()},_.prototype.setTitle=function(r,f){this.update({title:r},f)},_.prototype.setCategories=function(r,f){this.update({categories:r},f)},_.defaultOptions=H.defaultXAxisOptions,_.keepProps="extKey hcEvents names series userMax userMin".split(" "),_}(),j}),lt(I,"Core/Axis/DateTimeAxis.js",[I["Core/Utilities.js"]],function(j){var H=j.addEvent,F=j.getMagnitude,K=j.normalizeTickInterval,Z=j.timeUnits,Q;return function(V){function P(){return this.chart.time.getTimeTicks.apply(this.chart.time,arguments)}function z(y){y.userOptions.type!=="datetime"?this.dateTime=void 0:this.dateTime||(this.dateTime=new g(this))}var w=[];V.compose=function(y){return w.indexOf(y)===-1&&(w.push(y),y.keepProps.push("dateTime"),y.prototype.getTimeTicks=P,H(y,"init",z)),y};var g=function(){function y(v){this.axis=v}return y.prototype.normalizeTimeTickInterval=function(v,A){var S=A||[["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]];A=S[S.length-1];var M=Z[A[0]],k=A[1],m;for(m=0;m<S.length&&(A=S[m],M=Z[A[0]],k=A[1],!(S[m+1]&&v<=(M*k[k.length-1]+Z[S[m+1][0]])/2));m++);return M===Z.year&&v<5*M&&(k=[1,2,5]),v=K(v/M,k,A[0]==="year"?Math.max(F(v/M),1):1),{unitRange:M,count:v,unitName:A[0]}},y.prototype.getXDateFormat=function(v,A){var S=this.axis,M=S.chart.time;return S.closestPointRange?M.getDateFormat(S.closestPointRange,v,S.options.startOfWeek,A)||M.resolveDTLFormat(A.year).main:M.resolveDTLFormat(A.day).main},y}();V.Additions=g}(Q||(Q={})),Q}),lt(I,"Core/Axis/LogarithmicAxis.js",[I["Core/Utilities.js"]],function(j){var H=j.addEvent,F=j.normalizeTickInterval,K=j.pick,Z;return function(Q){function V(g){var y=this.logarithmic;g.userOptions.type!=="logarithmic"?this.logarithmic=void 0:y||(this.logarithmic=new w(this))}function P(){var g=this.logarithmic;g&&(this.lin2val=function(y){return g.lin2log(y)},this.val2lin=function(y){return g.log2lin(y)})}var z=[];Q.compose=function(g){return z.indexOf(g)===-1&&(z.push(g),g.keepProps.push("logarithmic"),H(g,"init",V),H(g,"afterInit",P)),g};var w=function(){function g(y){this.axis=y}return g.prototype.getLogTickPositions=function(y,v,A,S){var M=this.axis,k=M.len,m=M.options,b=[];if(S||(this.minorAutoInterval=void 0),.5<=y)y=Math.round(y),b=M.getLinearTickPositions(y,v,A);else if(.08<=y){var T=Math.floor(v),C,s=m=void 0;for(k=.3<y?[1,2,4]:.15<y?[1,2,4,6,8]:[1,2,3,4,5,6,7,8,9];T<A+1&&!s;T++){var h=k.length;for(C=0;C<h&&!s;C++){var e=this.log2lin(this.lin2log(T)*k[C]);e>v&&(!S||m<=A)&&typeof m<"u"&&b.push(m),m>A&&(s=!0),m=e}}}else v=this.lin2log(v),A=this.lin2log(A),y=S?M.getMinorTickInterval():m.tickInterval,y=K(y==="auto"?null:y,this.minorAutoInterval,m.tickPixelInterval/(S?5:1)*(A-v)/((S?k/M.tickPositions.length:k)||1)),y=F(y),b=M.getLinearTickPositions(y,v,A).map(this.log2lin),S||(this.minorAutoInterval=y/5);return S||(M.tickInterval=y),b},g.prototype.lin2log=function(y){return Math.pow(10,y)},g.prototype.log2lin=function(y){return Math.log(y)/Math.LN10},g}();Q.Additions=w}(Z||(Z={})),Z}),lt(I,"Core/Axis/PlotLineOrBand/PlotLineOrBandAxis.js",[I["Core/Utilities.js"]],function(j){var H=j.erase,F=j.extend,K=j.isNumber,Z;return function(Q){var V=[],P;Q.compose=function(w,g){return P||(P=w),V.indexOf(g)===-1&&(V.push(g),F(g.prototype,z.prototype)),g};var z=function(){function w(){}return w.prototype.getPlotBandPath=function(g,y,v){v===void 0&&(v=this.options);var A=this.getPlotLinePath({value:y,force:!0,acrossPanes:v.acrossPanes}),S=[],M=this.horiz;if(y=!K(this.min)||!K(this.max)||g<this.min&&y<this.min||g>this.max&&y>this.max,g=this.getPlotLinePath({value:g,force:!0,acrossPanes:v.acrossPanes}),v=1,g&&A){if(y){var k=g.toString()===A.toString();v=0}for(y=0;y<g.length;y+=2){var m=g[y],b=g[y+1],T=A[y],C=A[y+1];m[0]!=="M"&&m[0]!=="L"||b[0]!=="M"&&b[0]!=="L"||T[0]!=="M"&&T[0]!=="L"||C[0]!=="M"&&C[0]!=="L"||(M&&T[1]===m[1]?(T[1]+=v,C[1]+=v):M||T[2]!==m[2]||(T[2]+=v,C[2]+=v),S.push(["M",m[1],m[2]],["L",b[1],b[2]],["L",C[1],C[2]],["L",T[1],T[2]],["Z"])),S.isFlat=k}}return S},w.prototype.addPlotBand=function(g){return this.addPlotBandOrLine(g,"plotBands")},w.prototype.addPlotLine=function(g){return this.addPlotBandOrLine(g,"plotLines")},w.prototype.addPlotBandOrLine=function(g,y){var v=this,A=this.userOptions,S=new P(this,g);if(this.visible&&(S=S.render()),S){if(this._addedPlotLB||(this._addedPlotLB=!0,(A.plotLines||[]).concat(A.plotBands||[]).forEach(function(k){v.addPlotBandOrLine(k)})),y){var M=A[y]||[];M.push(g),A[y]=M}this.plotLinesAndBands.push(S)}return S},w.prototype.removePlotBandOrLine=function(g){var y=this.plotLinesAndBands,v=this.options,A=this.userOptions;if(y){for(var S=y.length;S--;)y[S].id===g&&y[S].destroy();[v.plotLines||[],A.plotLines||[],v.plotBands||[],A.plotBands||[]].forEach(function(M){for(S=M.length;S--;)(M[S]||{}).id===g&&H(M,M[S])})}},w.prototype.removePlotBand=function(g){this.removePlotBandOrLine(g)},w.prototype.removePlotLine=function(g){this.removePlotBandOrLine(g)},w}()}(Z||(Z={})),Z}),lt(I,"Core/Axis/PlotLineOrBand/PlotLineOrBand.js",[I["Core/Axis/PlotLineOrBand/PlotLineOrBandAxis.js"],I["Core/Utilities.js"]],function(j,H){var F=H.arrayMax,K=H.arrayMin,Z=H.defined,Q=H.destroyObjectProperties,V=H.erase,P=H.fireEvent,z=H.merge,w=H.objectEach,g=H.pick;return H=function(){function y(v,A){this.axis=v,A&&(this.options=A,this.id=A.id)}return y.compose=function(v){return j.compose(y,v)},y.prototype.render=function(){P(this,"render");var v=this,A=v.axis,S=A.horiz,M=A.logarithmic,k=v.options,m=k.color,b=g(k.zIndex,0),T=k.events,C={},s=A.chart.renderer,h=k.label,e=v.label,l=k.to,t=k.from,p=k.value,i=v.svgElem,o=[],u=Z(t)&&Z(l);o=Z(p);var n=!i,x={class:"highcharts-plot-"+(u?"band ":"line ")+(k.className||"")},L=u?"bands":"lines";if(M&&(t=M.log2lin(t),l=M.log2lin(l),p=M.log2lin(p)),A.chart.styledMode||(o?(x.stroke=m||"#999999",x["stroke-width"]=g(k.width,1),k.dashStyle&&(x.dashstyle=k.dashStyle)):u&&(x.fill=m||"#e6ebf5",k.borderWidth&&(x.stroke=k.borderColor,x["stroke-width"]=k.borderWidth))),C.zIndex=b,L+="-"+b,(M=A.plotLinesAndBandsGroups[L])||(A.plotLinesAndBandsGroups[L]=M=s.g("plot-"+L).attr(C).add()),n&&(v.svgElem=i=s.path().attr(x).add(M)),o)o=A.getPlotLinePath({value:p,lineWidth:i.strokeWidth(),acrossPanes:k.acrossPanes});else if(u)o=A.getPlotBandPath(t,l,k);else return;return!v.eventsAdded&&T&&(w(T,function(U,_){i.on(_,function(r){T[_].apply(v,[r])})}),v.eventsAdded=!0),(n||!i.d)&&o&&o.length?i.attr({d:o}):i&&(o?(i.show(),i.animate({d:o})):i.d&&(i.hide(),e&&(v.label=e=e.destroy()))),h&&(Z(h.text)||Z(h.formatter))&&o&&o.length&&0<A.width&&0<A.height&&!o.isFlat?(h=z({align:S&&u&&"center",x:S?!u&&4:10,verticalAlign:!S&&u&&"middle",y:S?u?16:10:u?6:-4,rotation:S&&!u&&90},h),this.renderLabel(h,o,u,b)):e&&e.hide(),v},y.prototype.renderLabel=function(v,A,S,M){var k=this.axis,m=k.chart.renderer,b=this.label;b||(this.label=b=m.text(this.getLabelText(v),0,0,v.useHTML).attr({align:v.textAlign||v.align,rotation:v.rotation,class:"highcharts-plot-"+(S?"band":"line")+"-label "+(v.className||""),zIndex:M}).add(),k.chart.styledMode||b.css(z({textOverflow:"ellipsis"},v.style))),M=A.xBounds||[A[0][1],A[1][1],S?A[2][1]:A[0][1]],A=A.yBounds||[A[0][2],A[1][2],S?A[2][2]:A[0][2]],S=K(M),m=K(A),b.align(v,!1,{x:S,y:m,width:F(M)-S,height:F(A)-m}),b.alignValue&&b.alignValue!=="left"||(v=v.clip?k.width:k.chart.chartWidth,b.css({width:(b.rotation===90?k.height-(b.alignAttr.y-k.top):v-(b.alignAttr.x-k.left))+"px"})),b.show(!0)},y.prototype.getLabelText=function(v){return Z(v.formatter)?v.formatter.call(this):v.text},y.prototype.destroy=function(){V(this.axis.plotLinesAndBands,this),delete this.axis,Q(this)},y}(),H}),lt(I,"Core/Tooltip.js",[I["Core/FormatUtilities.js"],I["Core/Globals.js"],I["Core/Renderer/RendererUtilities.js"],I["Core/Renderer/RendererRegistry.js"],I["Core/Utilities.js"]],function(j,H,F,K,Z){var Q=j.format,V=H.doc,P=F.distribute,z=Z.clamp,w=Z.css,g=Z.discardElement,y=Z.extend,v=Z.fireEvent,A=Z.isArray,S=Z.isNumber,M=Z.isString,k=Z.merge,m=Z.pick,b=Z.splat,T=Z.syncTimeout;return j=function(){function C(s,h){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=s,this.init(s,h)}return C.prototype.applyFilter=function(){var s=this.chart;s.renderer.definition({tagName:"filter",attributes:{id:"drop-shadow-"+s.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"}}]}]})},C.prototype.bodyFormatter=function(s){return s.map(function(h){var e=h.series.tooltipOptions;return(e[(h.point.formatPrefix||"point")+"Formatter"]||h.point.tooltipFormatter).call(h.point,e[(h.point.formatPrefix||"point")+"Format"]||"")})},C.prototype.cleanSplit=function(s){this.chart.series.forEach(function(h){var e=h&&h.tt;e&&(!e.isActive||s?h.tt=e.destroy():e.isActive=!1)})},C.prototype.defaultFormatter=function(s){var h=this.points||b(this),e=[s.tooltipFooterHeaderFormatter(h[0])];return e=e.concat(s.bodyFormatter(h)),e.push(s.tooltipFooterHeaderFormatter(h[0],!0)),e},C.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(),g(this.container)),Z.clearTimeout(this.hideTimer),Z.clearTimeout(this.tooltipTimeout)},C.prototype.getAnchor=function(s,h){var e=this.chart,l=e.pointer,t=e.inverted,p=e.plotTop;if(e=e.plotLeft,s=b(s),s[0].series&&s[0].series.yAxis&&!s[0].series.yAxis.options.reversedStacks&&(s=s.slice().reverse()),this.followPointer&&h)typeof h.chartX>"u"&&(h=l.normalize(h)),s=[h.chartX-e,h.chartY-p];else if(s[0].tooltipPos)s=s[0].tooltipPos;else{var i=0,o=0;s.forEach(function(u){(u=u.pos(!0))&&(i+=u[0],o+=u[1])}),i/=s.length,o/=s.length,this.shared&&1<s.length&&h&&(t?i=h.chartX:o=h.chartY),s=[i-e,o-p]}return s.map(Math.round)},C.prototype.getClassName=function(s,h,e){var l=s.series,t=l.options;return[this.options.className,"highcharts-label",e&&"highcharts-tooltip-header",h?"highcharts-tooltip-box":"highcharts-tooltip",!e&&"highcharts-color-"+m(s.colorIndex,l.colorIndex),t&&t.className].filter(M).join(" ")},C.prototype.getLabel=function(){var s=this,h=this.chart.styledMode,e=this.options,l=this.split&&this.allowShared,t=e.style.pointerEvents||(this.shouldStickOnContact()?"auto":"none"),p,i=this.chart.renderer;if(s.label){var o=!s.label.hasClass("highcharts-label");(l&&!o||!l&&o)&&s.destroy()}if(!this.label){if(this.outside){o=this.chart.options.chart.style;var u=K.getRendererType();this.container=p=H.doc.createElement("div"),p.className="highcharts-tooltip-container",w(p,{position:"absolute",top:"1px",pointerEvents:t,zIndex:Math.max(this.options.style.zIndex||0,(o&&o.zIndex||0)+3)}),H.doc.body.appendChild(p),this.renderer=i=new u(p,0,0,o,void 0,void 0,i.styledMode)}if(l?this.label=i.g("tooltip"):(this.label=i.label("",0,0,e.shape,void 0,void 0,e.useHTML,void 0,"tooltip").attr({padding:e.padding,r:e.borderRadius}),h||this.label.attr({fill:e.backgroundColor,"stroke-width":e.borderWidth}).css(e.style).css({pointerEvents:t}).shadow(e.shadow)),h&&e.shadow&&(this.applyFilter(),this.label.attr({filter:"url(#drop-shadow-"+this.chart.index+")"})),s.outside&&!s.split){var n=this.label,x=n.xSetter,L=n.ySetter;n.xSetter=function(U){x.call(n,s.distance),p.style.left=U+"px"},n.ySetter=function(U){L.call(n,s.distance),p.style.top=U+"px"}}this.label.attr({zIndex:8}).add()}return this.label},C.prototype.getPosition=function(s,h,e){var l=this.chart,t=this.distance,p={},i=l.inverted&&e.h||0,o=this.outside,u=o?V.documentElement.clientWidth-2*t:l.chartWidth,n=o?Math.max(V.body.scrollHeight,V.documentElement.scrollHeight,V.body.offsetHeight,V.documentElement.offsetHeight,V.documentElement.clientHeight):l.chartHeight,x=l.pointer.getChartPosition(),L=function(c){var d=c==="x";return[c,d?u:n,d?s:h].concat(o?[d?s*x.scaleX:h*x.scaleY,d?x.left-t+(e.plotX+l.plotLeft)*x.scaleX:x.top-t+(e.plotY+l.plotTop)*x.scaleY,0,d?u:n]:[d?s:h,d?e.plotX+l.plotLeft:e.plotY+l.plotTop,d?l.plotLeft:l.plotTop,d?l.plotLeft+l.plotWidth:l.plotTop+l.plotHeight])},U=L("y"),_=L("x"),r;L=!!e.negative,!l.polar&&l.hoverSeries&&l.hoverSeries.yAxis&&l.hoverSeries.yAxis.reversed&&(L=!L);var f=!this.followPointer&&m(e.ttBelow,!l.inverted===L),O=function(c,d,D,E,N,W,Y){var q=o?c==="y"?t*x.scaleY:t*x.scaleX:t,et=(D-E)/2,st=E<N-t,rt=N+t+E<d,it=N-q-D+et;if(N=N+q-et,f&&rt)p[c]=N;else if(!f&&st)p[c]=it;else if(st)p[c]=Math.min(Y-E,0>it-i?it:it-i);else if(rt)p[c]=Math.max(W,N+i+D>d?N:N+i);else return!1},B=function(c,d,D,E,N){var W;return N<t||N>d-t?W=!1:p[c]=N<D/2?1:N>d-E/2?d-E-2:N-D/2,W},R=function(c){var d=U;U=_,_=d,r=c},a=function(){O.apply(0,U)!==!1?B.apply(0,_)!==!1||r||(R(!0),a()):r?p.x=p.y=0:(R(!0),a())};return(l.inverted||1<this.len)&&R(),a(),p},C.prototype.hide=function(s){var h=this;Z.clearTimeout(this.hideTimer),s=m(s,this.options.hideDelay),this.isHidden||(this.hideTimer=T(function(){h.getLabel().fadeOut(s&&void 0),h.isHidden=!0},s))},C.prototype.init=function(s,h){this.chart=s,this.options=h,this.crosshairs=[],this.now={x:0,y:0},this.isHidden=!0,this.split=h.split&&!s.inverted&&!s.polar,this.shared=h.shared||this.split,this.outside=m(h.outside,!(!s.scrollablePixelsX&&!s.scrollablePixelsY))},C.prototype.shouldStickOnContact=function(s){return!(this.followPointer||!this.options.stickOnContact||s&&!this.chart.pointer.inClass(s.target,"highcharts-tooltip"))},C.prototype.move=function(s,h,e,l){var t=this,p=t.now,i=t.options.animation!==!1&&!t.isHidden&&(1<Math.abs(s-p.x)||1<Math.abs(h-p.y)),o=t.followPointer||1<t.len;y(p,{x:i?(2*p.x+s)/3:s,y:i?(p.y+h)/2:h,anchorX:o?void 0:i?(2*p.anchorX+e)/3:e,anchorY:o?void 0:i?(p.anchorY+l)/2:l}),t.getLabel().attr(p),t.drawTracker(),i&&(Z.clearTimeout(this.tooltipTimeout),this.tooltipTimeout=setTimeout(function(){t&&t.move(s,h,e,l)},32))},C.prototype.refresh=function(s,h){var e=this.chart,l=this.options,t=e.pointer,p=b(s),i=p[0],o=[],u=l.formatter||this.defaultFormatter,n=this.shared,x=e.styledMode,L={};if(l.enabled&&i.series){Z.clearTimeout(this.hideTimer),this.allowShared=!(!A(s)&&s.series&&s.series.noSharedTooltip),this.followPointer=!this.split&&i.series.tooltipOptions.followPointer,s=this.getAnchor(s,h);var U=s[0],_=s[1];if(n&&this.allowShared?(t.applyInactiveState(p),p.forEach(function(O){O.setState("hover"),o.push(O.getLabelConfig())}),L={x:i.category,y:i.y},L.points=o):L=i.getLabelConfig(),this.len=o.length,u=u.call(L,this),n=i.series,this.distance=m(n.tooltipOptions.distance,16),u===!1)this.hide();else{if(this.split&&this.allowShared)this.renderSplit(u,p);else{var r=U,f=_;if(h&&t.isDirectTouch&&(r=h.chartX-e.plotLeft,f=h.chartY-e.plotTop),e.polar||n.options.clip===!1||p.some(function(O){return t.isDirectTouch||O.series.shouldShowTooltip(r,f)}))h=this.getLabel(),l.style.width&&!x||h.css({width:e.spacingBox.width+"px"}),h.attr({text:u&&u.join?u.join(""):u}),h.addClass(this.getClassName(i),!0),x||h.attr({stroke:l.borderColor||i.color||n.color||"#666666"}),this.updatePosition({plotX:U,plotY:_,negative:i.negative,ttBelow:i.ttBelow,h:s[2]||0});else{this.hide();return}}this.isHidden&&this.label&&this.label.attr({opacity:1}).show(),this.isHidden=!1}v(this,"refresh")}},C.prototype.renderSplit=function(s,h){function e(rt,it,at,tt,X){return X===void 0&&(X=!0),at?(it=E?0:q,rt=z(rt-tt/2,c.left,c.right-tt-(l.outside?N:0))):(it-=W,rt=X?rt-tt-B:rt+B,rt=z(rt,X?rt:c.left,c.right)),{x:rt,y:it}}var l=this,t=l.chart,p=l.chart,i=p.chartWidth,o=p.chartHeight,u=p.plotHeight,n=p.plotLeft,x=p.plotTop,L=p.pointer,U=p.scrollablePixelsY;U=U===void 0?0:U;var _=p.scrollablePixelsX,r=p.scrollingContainer;r=r===void 0?{scrollLeft:0,scrollTop:0}:r;var f=r.scrollLeft;r=r.scrollTop;var O=p.styledMode,B=l.distance,R=l.options,a=l.options.positioner,c=l.outside&&typeof _!="number"?V.documentElement.getBoundingClientRect():{left:f,right:f+i,top:r,bottom:r+o},d=l.getLabel(),D=this.renderer||t.renderer,E=!(!t.xAxis[0]||!t.xAxis[0].opposite);t=L.getChartPosition();var N=t.left;t=t.top;var W=x+r,Y=0,q=u-U;M(s)&&(s=[!1,s]),s=s.slice(0,h.length+1).reduce(function(rt,it,at){if(it!==!1&&it!==""){at=h[at-1]||{isHeader:!0,plotX:h[0].plotX,plotY:u,series:{}};var tt=at.isHeader,X=tt?l:at.series;it=it.toString();var G=X.tt,$=at.isHeader,J=at.series;G||(G={padding:R.padding,r:R.borderRadius},O||(G.fill=R.backgroundColor,G["stroke-width"]=R.borderWidth),G=D.label("",0,0,R[$?"headerShape":"shape"],void 0,void 0,R.useHTML).addClass(l.getClassName(at,!0,$)).attr(G).add(d)),G.isActive=!0,G.attr({text:it}),O||G.css(R.style).shadow(R.shadow).attr({stroke:R.borderColor||at.color||J.color||"#333333"}),X=X.tt=G,$=X.getBBox(),it=$.width+X.strokeWidth(),tt&&(Y=$.height,q+=Y,E&&(W-=Y)),J=at.plotX,J=J===void 0?0:J,G=at.plotY,G=G===void 0?0:G;var ot=at.series;if(at.isHeader){J=n+J;var nt=x+u/2}else{var pt=ot.xAxis,dt=ot.yAxis;J=pt.pos+z(J,-B,pt.len+B),ot.shouldShowTooltip(0,dt.pos-x+G,{ignoreX:!0})&&(nt=dt.pos+G)}J=z(J,c.left-B,c.right+B),typeof nt=="number"?($=$.height+1,G=a?a.call(l,it,$,at):e(J,nt,tt,it),rt.push({align:a?0:void 0,anchorX:J,anchorY:nt,boxWidth:it,point:at,rank:m(G.rank,tt?1:0),size:$,target:G.y,tt:X,x:G.x})):X.isActive=!1}return rt},[]),!a&&s.some(function(rt){var it=(l.outside?N:0)+rt.anchorX;return it<c.left&&it+rt.boxWidth<c.right?!0:it<N-c.left+rt.boxWidth&&c.right-it>it})&&(s=s.map(function(rt){var it=e(rt.anchorX,rt.anchorY,rt.point.isHeader,rt.boxWidth,!1);return y(rt,{target:it.y,x:it.x})})),l.cleanSplit(),P(s,q);var et=N,st=N;s.forEach(function(rt){var it=rt.x,at=rt.boxWidth;rt=rt.isHeader,rt||(l.outside&&N+it<et&&(et=N+it),!rt&&l.outside&&et+at>st&&(st=N+it))}),s.forEach(function(rt){var it=rt.x,at=rt.anchorX,tt=rt.pos,X=rt.point.isHeader;if(tt={visibility:typeof tt>"u"?"hidden":"inherit",x:it,y:(tt||0)+W,anchorX:at,anchorY:rt.anchorY},l.outside&&it<at){var G=N-et;0<G&&(X||(tt.x=it+G,tt.anchorX=at+G),X&&(tt.x=(st-et)/2,tt.anchorX=at+G))}rt.tt.attr(tt)}),s=l.container,U=l.renderer,l.outside&&s&&U&&(p=d.getBBox(),U.setSize(p.width+p.x,p.height+p.y,!1),s.style.left=et+"px",s.style.top=t+"px")},C.prototype.drawTracker=function(){if(this.shouldStickOnContact()){var s=this.chart,h=this.label,e=this.shared?s.hoverPoints:s.hoverPoint;if(h&&e){var l={x:0,y:0,width:0,height:0};e=this.getAnchor(e);var t=h.getBBox();e[0]+=s.plotLeft-h.translateX,e[1]+=s.plotTop-h.translateY,l.x=Math.min(0,e[0]),l.y=Math.min(0,e[1]),l.width=0>e[0]?Math.max(Math.abs(e[0]),t.width-e[0]):Math.max(Math.abs(e[0]),t.width),l.height=0>e[1]?Math.max(Math.abs(e[1]),t.height-Math.abs(e[1])):Math.max(Math.abs(e[1]),t.height),this.tracker?this.tracker.attr(l):(this.tracker=h.renderer.rect(l).addClass("highcharts-tracker").add(h),s.styledMode||this.tracker.attr({fill:"rgba(0,0,0,0)"}))}}else this.tracker&&this.tracker.destroy()},C.prototype.styledModeFormat=function(s){return s.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}"')},C.prototype.tooltipFooterHeaderFormatter=function(s,h){var e=s.series,l=e.tooltipOptions,t=e.xAxis,p=t&&t.dateTime;t={isFooter:h,labelConfig:s};var i=l.xDateFormat,o=l[h?"footerFormat":"headerFormat"];return v(this,"headerFormatter",t,function(u){p&&!i&&S(s.key)&&(i=p.getXDateFormat(s.key,l.dateTimeLabelFormats)),p&&i&&(s.point&&s.point.tooltipDateKeys||["key"]).forEach(function(n){o=o.replace("{point."+n+"}","{point."+n+":"+i+"}")}),e.chart.styledMode&&(o=this.styledModeFormat(o)),u.text=Q(o,{point:s,series:e},this.chart)}),t.text},C.prototype.update=function(s){this.destroy(),k(!0,this.chart.options.tooltip.userOptions,s),this.init(this.chart,k(!0,this.options,s))},C.prototype.updatePosition=function(s){var h=this.chart,e=this.distance,l=this.options,t=h.pointer,p=this.getLabel(),i=t.getChartPosition();t=i.left;var o=i.top,u=i.scaleX;i=i.scaleY;var n=(l.positioner||this.getPosition).call(this,p.width,p.height,s),x=(s.plotX||0)+h.plotLeft;s=(s.plotY||0)+h.plotTop,this.outside&&(l.positioner&&(n.x+=t-e,n.y+=o-e),e=l.borderWidth+2*e,this.renderer.setSize(p.width+e,p.height+e,!1),(u!==1||i!==1)&&(w(this.container,{transform:"scale(".concat(u,", ").concat(i,")")}),x*=u,s*=i),x+=t-n.x,s+=o-n.y),this.move(Math.round(n.x),Math.round(n.y||0),x,s)},C}(),j}),lt(I,"Core/Series/Point.js",[I["Core/Renderer/HTML/AST.js"],I["Core/Animation/AnimationUtilities.js"],I["Core/Defaults.js"],I["Core/FormatUtilities.js"],I["Core/Utilities.js"]],function(j,H,F,K,Z){var Q=H.animObject,V=F.defaultOptions,P=K.format,z=Z.addEvent,w=Z.defined,g=Z.erase,y=Z.extend,v=Z.fireEvent,A=Z.getNestedProperty,S=Z.isArray,M=Z.isFunction,k=Z.isNumber,m=Z.isObject,b=Z.merge,T=Z.objectEach,C=Z.pick,s=Z.syncTimeout,h=Z.removeEvent,e=Z.uniqueKey;return H=function(){function l(){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 l.prototype.animateBeforeDestroy=function(){var t=this,p={x:t.startXPos,opacity:0},i=t.getGraphicalProps();i.singular.forEach(function(o){t[o]=t[o].animate(o==="dataLabel"?{x:t[o].startXPos,y:t[o].startYPos,opacity:0}:p)}),i.plural.forEach(function(o){t[o].forEach(function(u){u.element&&u.animate(y({x:t.startXPos},u.startYPos?{x:u.startXPos,y:u.startYPos}:{}))})})},l.prototype.applyOptions=function(t,p){var i=this.series,o=i.options.pointValKey||i.pointValKey;return t=l.prototype.optionsToObject.call(this,t),y(this,t),this.options=this.options?y(this.options,t):t,t.group&&delete this.group,t.dataLabels&&delete this.dataLabels,o&&(this.y=l.prototype.getNestedProperty.call(this,o)),this.formatPrefix=(this.isNull=this.isValid&&!this.isValid())?"null":"point",this.selected&&(this.state="select"),"name"in this&&typeof p>"u"&&i.xAxis&&i.xAxis.hasNames&&(this.x=i.xAxis.nameToX(this)),typeof this.x>"u"&&i?this.x=typeof p>"u"?i.autoIncrement():p:k(t.x)&&i.options.relativeXValue&&(this.x=i.autoIncrement(t.x)),this},l.prototype.destroy=function(){function t(){(p.graphic||p.graphics||p.dataLabel||p.dataLabels)&&(h(p),p.destroyElements());for(x in p)p[x]=null}var p=this,i=p.series,o=i.chart;i=i.options.dataSorting;var u=o.hoverPoints,n=Q(p.series.chart.renderer.globalAnimation),x;p.legendItem&&o.legend.destroyItem(p),u&&(p.setState(),g(u,p),u.length||(o.hoverPoints=null)),p===o.hoverPoint&&p.onMouseOut(),i&&i.enabled?(this.animateBeforeDestroy(),s(t,n.duration)):t(),o.pointCount--},l.prototype.destroyElements=function(t){var p=this;t=p.getGraphicalProps(t),t.singular.forEach(function(i){p[i]=p[i].destroy()}),t.plural.forEach(function(i){p[i].forEach(function(o){o&&o.element&&o.destroy()}),delete p[i]})},l.prototype.firePointEvent=function(t,p,i){var o=this,u=this.series.options;(u.point.events[t]||o.options&&o.options.events&&o.options.events[t])&&o.importEvents(),t==="click"&&u.allowPointSelect&&(i=function(n){o.select&&o.select(null,n.ctrlKey||n.metaKey||n.shiftKey)}),v(o,t,p,i)},l.prototype.getClassName=function(){return"highcharts-point"+(this.selected?" highcharts-point-select":"")+(this.negative?" highcharts-negative":"")+(this.isNull?" highcharts-null-point":"")+(typeof this.colorIndex<"u"?" highcharts-color-"+this.colorIndex:"")+(this.options.className?" "+this.options.className:"")+(this.zone&&this.zone.className?" "+this.zone.className.replace("highcharts-negative",""):"")},l.prototype.getGraphicalProps=function(t){var p=this,i=[],o={singular:[],plural:[]},u;for(t=t||{graphic:1,dataLabel:1},t.graphic&&i.push("graphic","shadowGroup"),t.dataLabel&&i.push("dataLabel","dataLabelPath","dataLabelUpper","connector"),u=i.length;u--;){var n=i[u];p[n]&&o.singular.push(n)}return["graphic","dataLabel","connector"].forEach(function(x){var L=x+"s";t[x]&&p[L]&&o.plural.push(L)}),o},l.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}},l.prototype.getNestedProperty=function(t){if(t)return t.indexOf("custom.")===0?A(t,this.options):this[t]},l.prototype.getZone=function(){var t=this.series,p=t.zones;t=t.zoneAxis||"y";var i,o=0;for(i=p[o];this[t]>=i.value;)i=p[++o];return this.nonZonedColor||(this.nonZonedColor=this.color),this.color=i&&i.color&&!this.options.color?i.color:this.nonZonedColor,i},l.prototype.hasNewShapeType=function(){return(this.graphic&&(this.graphic.symbolName||this.graphic.element.nodeName))!==this.shapeType},l.prototype.init=function(t,p,i){return this.series=t,this.applyOptions(p,i),this.id=w(this.id)?this.id:e(),this.resolveColor(),t.chart.pointCount++,v(this,"afterInit"),this},l.prototype.isValid=function(){return this.x!==null&&k(this.y)},l.prototype.optionsToObject=function(t){var p=this.series,i=p.options.keys,o=i||p.pointArrayMap||["y"],u=o.length,n={},x=0,L=0;if(k(t)||t===null)n[o[0]]=t;else if(S(t))for(!i&&t.length>u&&(p=typeof t[0],p==="string"?n.name=t[0]:p==="number"&&(n.x=t[0]),x++);L<u;)i&&typeof t[x]>"u"||(0<o[L].indexOf(".")?l.prototype.setNestedProperty(n,t[x],o[L]):n[o[L]]=t[x]),x++,L++;else typeof t=="object"&&(n=t,t.dataLabels&&(p._hasPointLabels=!0),t.marker&&(p._hasPointMarkers=!0));return n},l.prototype.pos=function(t,p){p===void 0&&(p=this.plotY);var i=this.plotX,o=this.series,u=o.chart,n=o.xAxis;o=o.yAxis;var x=0,L=0;if(k(i)&&k(p))return t&&(x=n?n.pos:u.plotLeft,L=o?o.pos:u.plotTop),u.inverted&&n&&o?[o.len-p+L,n.len-i+x]:[i+x,p+L]},l.prototype.resolveColor=function(){var t=this.series,p=t.chart.styledMode,i=t.chart.options.chart.colorCount;if(delete this.nonZonedColor,t.options.colorByPoint){if(!p){i=t.options.colors||t.chart.options.colors;var o=i[t.colorCounter];i=i.length}p=t.colorCounter,t.colorCounter++,t.colorCounter===i&&(t.colorCounter=0)}else p||(o=t.color),p=t.colorIndex;this.colorIndex=C(this.options.colorIndex,p),this.color=C(this.options.color,o)},l.prototype.setNestedProperty=function(t,p,i){return i.split(".").reduce(function(o,u,n,x){return o[u]=x.length-1===n?p:m(o[u],!0)?o[u]:{},o[u]},t),t},l.prototype.shouldDraw=function(){return!this.isNull},l.prototype.tooltipFormatter=function(t){var p=this.series,i=p.tooltipOptions,o=C(i.valueDecimals,""),u=i.valuePrefix||"",n=i.valueSuffix||"";return p.chart.styledMode&&(t=p.chart.tooltip.styledModeFormat(t)),(p.pointArrayMap||["y"]).forEach(function(x){x="{point."+x,(u||n)&&(t=t.replace(RegExp(x+"}","g"),u+x+"}"+n)),t=t.replace(RegExp(x+"}","g"),x+":,."+o+"f}")}),P(t,{point:this,series:this.series},p.chart)},l.prototype.update=function(t,p,i,o){function u(){n.applyOptions(t);var f=L&&n.hasMockGraphic;f=n.y===null?!f:f,L&&f&&(n.graphic=L.destroy(),delete n.hasMockGraphic),m(t,!0)&&(L&&L.element&&t&&t.marker&&typeof t.marker.symbol<"u"&&(n.graphic=L.destroy()),t&&t.dataLabels&&n.dataLabel&&(n.dataLabel=n.dataLabel.destroy()),n.connector&&(n.connector=n.connector.destroy())),r=n.index,x.updateParallelArrays(n,r),_.data[r]=m(_.data[r],!0)||m(t,!0)?n.options:C(t,_.data[r]),x.isDirty=x.isDirtyData=!0,!x.fixedBox&&x.hasCartesianSeries&&(U.isDirtyBox=!0),_.legendType==="point"&&(U.isDirtyLegend=!0),p&&U.redraw(i)}var n=this,x=n.series,L=n.graphic,U=x.chart,_=x.options,r;p=C(p,!0),o===!1?u():n.firePointEvent("update",{options:t},u)},l.prototype.remove=function(t,p){this.series.removePoint(this.series.data.indexOf(this),t,p)},l.prototype.select=function(t,p){var i=this,o=i.series,u=o.chart;this.selectedStaging=t=C(t,!i.selected),i.firePointEvent(t?"select":"unselect",{accumulate:p},function(){i.selected=i.options.selected=t,o.options.data[o.data.indexOf(i)]=i.options,i.setState(t&&"select"),p||u.getSelectedPoints().forEach(function(n){var x=n.series;n.selected&&n!==i&&(n.selected=n.options.selected=!1,x.options.data[x.data.indexOf(n)]=n.options,n.setState(u.hoverPoints&&x.options.inactiveOtherPoints?"inactive":""),n.firePointEvent("unselect"))})}),delete this.selectedStaging},l.prototype.onMouseOver=function(t){var p=this.series.chart,i=p.pointer;t=t?i.normalize(t):i.getChartCoordinatesFromPoint(this,p.inverted),i.runPointActions(t,this)},l.prototype.onMouseOut=function(){var t=this.series.chart;this.firePointEvent("mouseOut"),this.series.options.inactiveOtherPoints||(t.hoverPoints||[]).forEach(function(p){p.setState()}),t.hoverPoints=t.hoverPoint=null},l.prototype.importEvents=function(){if(!this.hasImportedEvents){var t=this,p=b(t.series.options.point,t.options).events;t.events=p,T(p,function(i,o){M(i)&&z(t,o,i)}),this.hasImportedEvents=!0}},l.prototype.setState=function(t,p){var i=this.series,o=this.state,u=i.options.states[t||"normal"]||{},n=V.plotOptions[i.type].marker&&i.options.marker,x=n&&n.enabled===!1,L=n&&n.states&&n.states[t||"normal"]||{},U=L.enabled===!1,_=this.marker||{},r=i.chart,f=n&&i.markerAttribs,O=i.halo,B,R=i.stateMarkerGraphic;if(t=t||"",!(t===this.state&&!p||this.selected&&t!=="select"||u.enabled===!1||t&&(U||x&&L.enabled===!1)||t&&_.states&&_.states[t]&&_.states[t].enabled===!1)){if(this.state=t,f&&(B=i.markerAttribs(this,t)),this.graphic&&!this.hasMockGraphic){if(o&&this.graphic.removeClass("highcharts-point-"+o),t&&this.graphic.addClass("highcharts-point-"+t),!r.styledMode){o=i.pointAttribs(this,t);var a=C(r.options.chart.animation,u.animation),c=o.opacity;i.options.inactiveOtherPoints&&k(c)&&((this.dataLabels||[]).forEach(function(d){d&&!d.hasClass("highcharts-data-label-hidden")&&d.animate({opacity:c},a)}),this.connector&&this.connector.animate({opacity:c},a)),this.graphic.animate(o,a)}B&&this.graphic.animate(B,C(r.options.chart.animation,L.animation,n.animation)),R&&R.hide()}else t&&L&&(n=_.symbol||i.symbol,R&&R.currentSymbol!==n&&(R=R.destroy()),B&&(R?R[p?"animate":"attr"]({x:B.x,y:B.y}):n&&(i.stateMarkerGraphic=R=r.renderer.symbol(n,B.x,B.y,B.width,B.height).add(i.markerGroup),R.currentSymbol=n)),!r.styledMode&&R&&this.state!=="inactive"&&R.attr(i.pointAttribs(this,t))),R&&(R[t&&this.isInside?"show":"hide"](),R.element.point=this,R.addClass(this.getClassName(),!0));u=u.halo,B=(R=this.graphic||R)&&R.visibility||"inherit",u&&u.size&&R&&B!=="hidden"&&!this.isCluster?(O||(i.halo=O=r.renderer.path().add(R.parentGroup)),O.show()[p?"animate":"attr"]({d:this.haloPath(u.size)}),O.attr({class:"highcharts-halo highcharts-color-"+C(this.colorIndex,i.colorIndex)+(this.className?" "+this.className:""),visibility:B,zIndex:-1}),O.point=this,r.styledMode||O.attr(y({fill:this.color||i.color,"fill-opacity":u.opacity},j.filterUserAttributes(u.attributes||{})))):O&&O.point&&O.point.haloPath&&O.animate({d:O.point.haloPath(0)},null,O.hide),v(this,"afterSetState",{state:t})}},l.prototype.haloPath=function(t){var p=this.pos();return p?this.series.chart.renderer.symbols.circle(Math.floor(p[0])-t,p[1]-t,2*t,2*t):[]},l}(),H}),lt(I,"Core/Pointer.js",[I["Core/Color/Color.js"],I["Core/Globals.js"],I["Core/Tooltip.js"],I["Core/Utilities.js"]],function(j,H,F,K){var Z=j.parse,Q=H.charts,V=H.noop,P=K.addEvent,z=K.attr,w=K.css,g=K.defined,y=K.extend,v=K.find,A=K.fireEvent,S=K.isNumber,M=K.isObject,k=K.objectEach,m=K.offset,b=K.pick,T=K.splat;return j=function(){function C(s,h){this.lastValidTouch={},this.pinchDown=[],this.runChartClick=!1,this.eventsToUnbind=[],this.chart=s,this.hasDragged=!1,this.options=h,this.init(s,h)}return C.prototype.applyInactiveState=function(s){var h=[],e;(s||[]).forEach(function(l){e=l.series,h.push(e),e.linkedParent&&h.push(e.linkedParent),e.linkedSeries&&(h=h.concat(e.linkedSeries)),e.navigatorSeries&&h.push(e.navigatorSeries)}),this.chart.series.forEach(function(l){h.indexOf(l)===-1?l.setState("inactive",!0):l.options.inactiveOtherPoints&&l.setAllPointsToState("inactive")})},C.prototype.destroy=function(){var s=this;this.eventsToUnbind.forEach(function(h){return h()}),this.eventsToUnbind=[],H.chartCount||(C.unbindDocumentMouseUp&&(C.unbindDocumentMouseUp=C.unbindDocumentMouseUp()),C.unbindDocumentTouchEnd&&(C.unbindDocumentTouchEnd=C.unbindDocumentTouchEnd())),clearInterval(s.tooltipTimeout),k(s,function(h,e){s[e]=void 0})},C.prototype.getSelectionMarkerAttrs=function(s,h){var e=this,l={args:{chartX:s,chartY:h},attrs:{},shapeType:"rect"};return A(this,"getSelectionMarkerAttrs",l,function(t){var p=e.chart,i=e.mouseDownX;i=i===void 0?0:i;var o=e.mouseDownY;o=o===void 0?0:o;var u=e.zoomHor,n=e.zoomVert;t=t.attrs,t.x=p.plotLeft,t.y=p.plotTop,t.width=u?1:p.plotWidth,t.height=n?1:p.plotHeight,u&&(p=s-i,t.width=Math.abs(p),t.x=(0<p?0:p)+i),n&&(p=h-o,t.height=Math.abs(p),t.y=(0<p?0:p)+o)}),l},C.prototype.drag=function(s){var h=this.chart,e=h.options.chart,l=h.plotLeft,t=h.plotTop,p=h.plotWidth,i=h.plotHeight,o=this.mouseDownX||0,u=this.mouseDownY||0,n=M(e.panning)?e.panning&&e.panning.enabled:e.panning,x=e.panKey&&s[e.panKey+"Key"],L=s.chartX,U=s.chartY,_=this.selectionMarker;_&&_.touch||(L<l?L=l:L>l+p&&(L=l+p),U<t?U=t:U>t+i&&(U=t+i),this.hasDragged=Math.sqrt(Math.pow(o-L,2)+Math.pow(u-U,2)),10<this.hasDragged&&(l=h.isInsidePlot(o-l,u-t,{visiblePlotOnly:!0}),U=this.getSelectionMarkerAttrs(L,U),L=U.shapeType,U=U.attrs,!h.hasCartesianSeries&&!h.mapView||!this.zoomX&&!this.zoomY||!l||x||_||(this.selectionMarker=_=h.renderer[L](),_.attr({class:"highcharts-selection-marker",zIndex:7}).add(),h.styledMode||_.attr({fill:e.selectionMarkerFill||Z("#335cad").setOpacity(.25).get()})),_&&_.attr(U),l&&!_&&n&&h.pan(s,e.panning)))},C.prototype.dragStart=function(s){var h=this.chart;h.mouseIsDown=s.type,h.cancelClick=!1,h.mouseDownX=this.mouseDownX=s.chartX,h.mouseDownY=this.mouseDownY=s.chartY},C.prototype.getSelectionBox=function(s){var h={args:{marker:s},result:{}};return A(this,"getSelectionBox",h,function(e){e.result={x:s.attr?+s.attr("x"):s.x,y:s.attr?+s.attr("y"):s.y,width:s.attr?s.attr("width"):s.width,height:s.attr?s.attr("height"):s.height}}),h.result},C.prototype.drop=function(s){var h=this,e=this.chart,l=this.hasPinched;if(this.selectionMarker){var t=this.getSelectionBox(this.selectionMarker),p=t.x,i=t.y,o=t.width,u=t.height,n={originalEvent:s,xAxis:[],yAxis:[],x:p,y:i,width:o,height:u},x=!!e.mapView;(this.hasDragged||l)&&(e.axes.forEach(function(L){if(L.zoomEnabled&&g(L.min)&&(l||h[{xAxis:"zoomX",yAxis:"zoomY"}[L.coll]])&&S(p)&&S(i)&&S(o)&&S(u)){var U=L.horiz,_=s.type==="touchend"?L.minPixelPadding:0,r=L.toValue((U?p:i)+_);U=L.toValue((U?p+o:i+u)-_),n[L.coll].push({axis:L,min:Math.min(r,U),max:Math.max(r,U)}),x=!0}}),x&&A(e,"selection",n,function(L){e.zoom(y(L,l?{animation:!1}:null))})),S(e.index)&&(this.selectionMarker=this.selectionMarker.destroy()),l&&this.scaleGroups()}e&&S(e.index)&&(w(e.container,{cursor:e._cursor}),e.cancelClick=10<this.hasDragged,e.mouseIsDown=this.hasDragged=this.hasPinched=!1,this.pinchDown=[])},C.prototype.findNearestKDPoint=function(s,h,e){var l;return s.forEach(function(t){var p=!(t.noSharedTooltip&&h)&&0>t.options.findNearestPointBy.indexOf("y");if(t=t.searchPoint(e,p),(p=M(t,!0)&&t.series)&&!(p=!M(l,!0))){p=l.distX-t.distX;var i=l.dist-t.dist,o=(t.series.group&&t.series.group.zIndex)-(l.series.group&&l.series.group.zIndex);p=0<(p!==0&&h?p:i!==0?i:o!==0?o:l.series.index>t.series.index?-1:1)}p&&(l=t)}),l},C.prototype.getChartCoordinatesFromPoint=function(s,h){var e=s.series,l=e.xAxis;e=e.yAxis;var t=s.shapeArgs;if(l&&e){var p=b(s.clientX,s.plotX),i=s.plotY||0;return s.isNode&&t&&S(t.x)&&S(t.y)&&(p=t.x,i=t.y),h?{chartX:e.len+e.pos-i,chartY:l.len+l.pos-p}:{chartX:p+l.pos,chartY:i+e.pos}}if(t&&t.x&&t.y)return{chartX:t.x,chartY:t.y}},C.prototype.getChartPosition=function(){if(this.chartPosition)return this.chartPosition;var s=this.chart.container,h=m(s);this.chartPosition={left:h.left,top:h.top,scaleX:1,scaleY:1};var e=s.offsetWidth;return s=s.offsetHeight,2<e&&2<s&&(this.chartPosition.scaleX=h.width/e,this.chartPosition.scaleY=h.height/s),this.chartPosition},C.prototype.getCoordinates=function(s){var h={xAxis:[],yAxis:[]};return this.chart.axes.forEach(function(e){h[e.isXAxis?"xAxis":"yAxis"].push({axis:e,value:e.toValue(s[e.horiz?"chartX":"chartY"])})}),h},C.prototype.getHoverData=function(s,h,e,l,t,p){var i=[];l=!(!l||!s);var o=function(L){return L.visible&&!(!t&&L.directTouch)&&b(L.options.enableMouseTracking,!0)},u={chartX:p?p.chartX:void 0,chartY:p?p.chartY:void 0,shared:t};A(this,"beforeGetHoverData",u);var n=h&&!h.stickyTracking?[h]:e.filter(function(L){return L.stickyTracking&&(u.filter||o)(L)}),x=l||!p?s:this.findNearestKDPoint(n,t,p);return h=x&&x.series,x&&(t&&!h.noSharedTooltip?(n=e.filter(function(L){return u.filter?u.filter(L):o(L)&&!L.noSharedTooltip}),n.forEach(function(L){var U=v(L.points,function(_){return _.x===x.x&&!_.isNull});M(U)&&(L.boosted&&L.boost&&(U=L.boost.getPoint(U)),i.push(U))})):i.push(x)),u={hoverPoint:x},A(this,"afterGetHoverData",u),{hoverPoint:u.hoverPoint,hoverSeries:h,hoverPoints:i}},C.prototype.getPointFromEvent=function(s){s=s.target;for(var h;s&&!h;)h=s.point,s=s.parentNode;return h},C.prototype.onTrackerMouseOut=function(s){s=s.relatedTarget||s.toElement;var h=this.chart.hoverSeries;this.isDirectTouch=!1,!h||!s||h.stickyTracking||this.inClass(s,"highcharts-tooltip")||this.inClass(s,"highcharts-series-"+h.index)&&this.inClass(s,"highcharts-tracker")||h.onMouseOut()},C.prototype.inClass=function(s,h){for(var e;s;){if(e=z(s,"class")){if(e.indexOf(h)!==-1)return!0;if(e.indexOf("highcharts-container")!==-1)return!1}s=s.parentElement}},C.prototype.init=function(s,h){this.options=h,this.chart=s,this.runChartClick=!(!h.chart.events||!h.chart.events.click),this.pinchDown=[],this.lastValidTouch={},F&&(s.tooltip=new F(s,h.tooltip)),this.setDOMEvents()},C.prototype.normalize=function(s,h){var e=s.touches,l=e?e.length?e.item(0):b(e.changedTouches,s.changedTouches)[0]:s;return h||(h=this.getChartPosition()),e=l.pageX-h.left,l=l.pageY-h.top,e/=h.scaleX,l/=h.scaleY,y(s,{chartX:Math.round(e),chartY:Math.round(l)})},C.prototype.onContainerClick=function(s){var h=this.chart,e=h.hoverPoint;s=this.normalize(s);var l=h.plotLeft,t=h.plotTop;h.cancelClick||(e&&this.inClass(s.target,"highcharts-tracker")?(A(e.series,"click",y(s,{point:e})),h.hoverPoint&&e.firePointEvent("click",s)):(y(s,this.getCoordinates(s)),h.isInsidePlot(s.chartX-l,s.chartY-t,{visiblePlotOnly:!0})&&A(h,"click",s)))},C.prototype.onContainerMouseDown=function(s){var h=((s.buttons||s.button)&1)===1;s=this.normalize(s),H.isFirefox&&s.button!==0&&this.onContainerMouseMove(s),(typeof s.button>"u"||h)&&(this.zoomOption(s),h&&s.preventDefault&&s.preventDefault(),this.dragStart(s))},C.prototype.onContainerMouseLeave=function(s){var h=Q[b(C.hoverChartIndex,-1)],e=this.chart.tooltip;s=this.normalize(s),h&&(s.relatedTarget||s.toElement)&&(h.pointer.reset(),h.pointer.chartPosition=void 0),e&&!e.isHidden&&this.reset()},C.prototype.onContainerMouseEnter=function(s){delete this.chartPosition},C.prototype.onContainerMouseMove=function(s){var h=this.chart,e=h.tooltip;s=this.normalize(s),this.setHoverChartIndex(),s.preventDefault||(s.returnValue=!1),(h.mouseIsDown==="mousedown"||this.touchSelect(s))&&this.drag(s),h.openMenu||!this.inClass(s.target,"highcharts-tracker")&&!h.isInsidePlot(s.chartX-h.plotLeft,s.chartY-h.plotTop,{visiblePlotOnly:!0})||e&&e.shouldStickOnContact(s)||(this.inClass(s.target,"highcharts-no-tooltip")?this.reset(!1,0):this.runPointActions(s))},C.prototype.onDocumentTouchEnd=function(s){var h=Q[b(C.hoverChartIndex,-1)];h&&h.pointer.drop(s)},C.prototype.onContainerTouchMove=function(s){this.touchSelect(s)?this.onContainerMouseMove(s):this.touch(s)},C.prototype.onContainerTouchStart=function(s){this.touchSelect(s)?this.onContainerMouseDown(s):(this.zoomOption(s),this.touch(s,!0))},C.prototype.onDocumentMouseMove=function(s){var h=this.chart,e=h.tooltip,l=this.chartPosition;s=this.normalize(s,l),!l||h.isInsidePlot(s.chartX-h.plotLeft,s.chartY-h.plotTop,{visiblePlotOnly:!0})||e&&e.shouldStickOnContact(s)||this.inClass(s.target,"highcharts-tracker")||this.reset()},C.prototype.onDocumentMouseUp=function(s){var h=Q[b(C.hoverChartIndex,-1)];h&&h.pointer.drop(s)},C.prototype.pinch=function(s){var h=this,e=h.chart,l=h.pinchDown,t=s.touches||[],p=t.length,i=h.lastValidTouch,o=h.hasZoom,u={},n=p===1&&(h.inClass(s.target,"highcharts-tracker")&&e.runTrackerClick||h.runChartClick),x={},L=h.chart.tooltip;L=p===1&&b(L&&L.options.followTouchMove,!0);var U=h.selectionMarker;1<p?h.initiated=!0:L&&(h.initiated=!1),o&&h.initiated&&!n&&s.cancelable!==!1&&s.preventDefault(),[].map.call(t,function(_){return h.normalize(_)}),s.type==="touchstart"?([].forEach.call(t,function(_,r){l[r]={chartX:_.chartX,chartY:_.chartY}}),i.x=[l[0].chartX,l[1]&&l[1].chartX],i.y=[l[0].chartY,l[1]&&l[1].chartY],e.axes.forEach(function(_){if(_.zoomEnabled){var r=e.bounds[_.horiz?"h":"v"],f=_.minPixelPadding,O=_.toPixels(Math.min(b(_.options.min,_.dataMin),_.dataMin)),B=_.toPixels(Math.max(b(_.options.max,_.dataMax),_.dataMax)),R=Math.max(O,B);r.min=Math.min(_.pos,Math.min(O,B)-f),r.max=Math.max(_.pos+_.len,R+f)}}),h.res=!0):L?this.runPointActions(h.normalize(s)):l.length&&(A(e,"touchpan",{originalEvent:s},function(){U||(h.selectionMarker=U=y({destroy:V,touch:!0},e.plotBox)),h.pinchTranslate(l,t,u,U,x,i),h.hasPinched=o,h.scaleGroups(u,x)}),h.res&&(h.res=!1,this.reset(!1,0)))},C.prototype.pinchTranslate=function(s,h,e,l,t,p){this.zoomHor&&this.pinchTranslateDirection(!0,s,h,e,l,t,p),this.zoomVert&&this.pinchTranslateDirection(!1,s,h,e,l,t,p)},C.prototype.pinchTranslateDirection=function(s,h,e,l,t,p,i,o){var u=this.chart,n=s?"x":"y",x=s?"X":"Y",L="chart"+x,U=s?"width":"height",_=u["plot"+(s?"Left":"Top")],r=u.inverted,f=u.bounds[s?"h":"v"],O=h.length===1,B=h[0][L],R=!O&&h[1][L];h=function(){typeof E=="number"&&20<Math.abs(B-R)&&(d=o||Math.abs(D-E)/Math.abs(B-R)),c=(_-D)/d+B,a=u["plot"+(s?"Width":"Height")]/d};var a,c,d=o||1,D=e[0][L],E=!O&&e[1][L];if(h(),e=c,e<f.min){e=f.min;var N=!0}else e+a>f.max&&(e=f.max-a,N=!0);N?(D-=.8*(D-i[n][0]),typeof E=="number"&&(E-=.8*(E-i[n][1])),h()):i[n]=[D,E],r||(p[n]=c-_,p[U]=a),p=r?1/d:d,t[U]=a,t[n]=e,l[r?s?"scaleY":"scaleX":"scale"+x]=d,l["translate"+x]=p*_+(D-p*B)},C.prototype.reset=function(s,h){var e=this.chart,l=e.hoverSeries,t=e.hoverPoint,p=e.hoverPoints,i=e.tooltip,o=i&&i.shared?p:t;s&&o&&T(o).forEach(function(u){u.series.isCartesian&&typeof u.plotX>"u"&&(s=!1)}),s?i&&o&&T(o).length&&(i.refresh(o),i.shared&&p?p.forEach(function(u){u.setState(u.state,!0),u.series.isCartesian&&(u.series.xAxis.crosshair&&u.series.xAxis.drawCrosshair(null,u),u.series.yAxis.crosshair&&u.series.yAxis.drawCrosshair(null,u))}):t&&(t.setState(t.state,!0),e.axes.forEach(function(u){u.crosshair&&t.series[u.coll]===u&&u.drawCrosshair(null,t)}))):(t&&t.onMouseOut(),p&&p.forEach(function(u){u.setState()}),l&&l.onMouseOut(),i&&i.hide(h),this.unDocMouseMove&&(this.unDocMouseMove=this.unDocMouseMove()),e.axes.forEach(function(u){u.hideCrosshair()}),this.hoverX=e.hoverPoints=e.hoverPoint=null)},C.prototype.runPointActions=function(s,h,e){var l=this.chart,t=l.tooltip&&l.tooltip.options.enabled?l.tooltip:void 0,p=t?t.shared:!1,i=h||l.hoverPoint,o=i&&i.series||l.hoverSeries;h=this.getHoverData(i,o,l.series,(!s||s.type!=="touchmove")&&(!!h||o&&o.directTouch&&this.isDirectTouch),p,s),i=h.hoverPoint,o=h.hoverSeries;var u=h.hoverPoints;h=o&&o.tooltipOptions.followPointer&&!o.tooltipOptions.split;var n=p&&o&&!o.noSharedTooltip;if(i&&(e||i!==l.hoverPoint||t&&t.isHidden)){if((l.hoverPoints||[]).forEach(function(x){u.indexOf(x)===-1&&x.setState()}),l.hoverSeries!==o&&o.onMouseOver(),this.applyInactiveState(u),(u||[]).forEach(function(x){x.setState("hover")}),l.hoverPoint&&l.hoverPoint.firePointEvent("mouseOut"),!i.series)return;l.hoverPoints=u,l.hoverPoint=i,i.firePointEvent("mouseOver",void 0,function(){t&&i&&t.refresh(n?u:i,s)})}else h&&t&&!t.isHidden&&(e=t.getAnchor([{}],s),l.isInsidePlot(e[0],e[1],{visiblePlotOnly:!0})&&t.updatePosition({plotX:e[0],plotY:e[1]}));this.unDocMouseMove||(this.unDocMouseMove=P(l.container.ownerDocument,"mousemove",function(x){var L=Q[C.hoverChartIndex];L&&L.pointer.onDocumentMouseMove(x)}),this.eventsToUnbind.push(this.unDocMouseMove)),l.axes.forEach(function(x){var L=b((x.crosshair||{}).snap,!0),U;L&&((U=l.hoverPoint)&&U.series[x.coll]===x||(U=v(u,function(_){return _.series&&_.series[x.coll]===x}))),U||!L?x.drawCrosshair(s,U):x.hideCrosshair()})},C.prototype.scaleGroups=function(s,h){var e=this.chart;e.series.forEach(function(l){var t=s||l.getPlotBox();l.group&&(l.xAxis&&l.xAxis.zoomEnabled||e.mapView)&&(l.group.attr(t),l.markerGroup&&(l.markerGroup.attr(t),l.markerGroup.clip(h?e.clipRect:null)),l.dataLabelsGroup&&l.dataLabelsGroup.attr(t))}),e.clipRect.attr(h||e.clipBox)},C.prototype.setDOMEvents=function(){var s=this,h=this.chart.container,e=h.ownerDocument;h.onmousedown=this.onContainerMouseDown.bind(this),h.onmousemove=this.onContainerMouseMove.bind(this),h.onclick=this.onContainerClick.bind(this),this.eventsToUnbind.push(P(h,"mouseenter",this.onContainerMouseEnter.bind(this))),this.eventsToUnbind.push(P(h,"mouseleave",this.onContainerMouseLeave.bind(this))),C.unbindDocumentMouseUp||(C.unbindDocumentMouseUp=P(e,"mouseup",this.onDocumentMouseUp.bind(this)));for(var l=this.chart.renderTo.parentElement;l&&l.tagName!=="BODY";)this.eventsToUnbind.push(P(l,"scroll",function(){delete s.chartPosition})),l=l.parentElement;H.hasTouch&&(this.eventsToUnbind.push(P(h,"touchstart",this.onContainerTouchStart.bind(this),{passive:!1})),this.eventsToUnbind.push(P(h,"touchmove",this.onContainerTouchMove.bind(this),{passive:!1})),C.unbindDocumentTouchEnd||(C.unbindDocumentTouchEnd=P(e,"touchend",this.onDocumentTouchEnd.bind(this),{passive:!1})))},C.prototype.setHoverChartIndex=function(){var s=this.chart,h=H.charts[b(C.hoverChartIndex,-1)];h&&h!==s&&h.pointer.onContainerMouseLeave({relatedTarget:s.container}),h&&h.mouseIsDown||(C.hoverChartIndex=s.index)},C.prototype.touch=function(s,h){var e=this.chart,l;if(this.setHoverChartIndex(),s.touches.length===1)if(s=this.normalize(s),(l=e.isInsidePlot(s.chartX-e.plotLeft,s.chartY-e.plotTop,{visiblePlotOnly:!0}))&&!e.openMenu){if(h&&this.runPointActions(s),s.type==="touchmove"){h=this.pinchDown;var t=h[0]?4<=Math.sqrt(Math.pow(h[0].chartX-s.chartX,2)+Math.pow(h[0].chartY-s.chartY,2)):!1}b(t,!0)&&this.pinch(s)}else h&&this.reset();else s.touches.length===2&&this.pinch(s)},C.prototype.touchSelect=function(s){return!(!this.chart.options.chart.zooming.singleTouch||!s.touches||s.touches.length!==1)},C.prototype.zoomOption=function(s){var h=this.chart,e=h.options.chart;h=h.inverted;var l=e.zooming.type||"";/touch/.test(s.type)&&(l=b(e.zooming.pinchType,l)),this.zoomX=s=/x/.test(l),this.zoomY=e=/y/.test(l),this.zoomHor=s&&!h||e&&h,this.zoomVert=e&&!h||s&&h,this.hasZoom=s||e},C}(),j}),lt(I,"Core/MSPointer.js",[I["Core/Globals.js"],I["Core/Pointer.js"],I["Core/Utilities.js"]],function(j,H,F){function K(){var m=[];return m.item=function(b){return this[b]},v(M,function(b){m.push({pageX:b.pageX,pageY:b.pageY,target:b.target})}),m}function Z(m,b,T,C){var s=V[H.hoverChartIndex||NaN];m.pointerType!=="touch"&&m.pointerType!==m.MSPOINTER_TYPE_TOUCH||!s||(s=s.pointer,C(m),s[b]({type:T,target:m.currentTarget,preventDefault:z,touches:K()}))}var Q=this&&this.__extends||function(){var m=function(b,T){return m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(C,s){C.__proto__=s}||function(C,s){for(var h in s)s.hasOwnProperty(h)&&(C[h]=s[h])},m(b,T)};return function(b,T){function C(){this.constructor=b}m(b,T),b.prototype=T===null?Object.create(T):(C.prototype=T.prototype,new C)}}(),V=j.charts,P=j.doc,z=j.noop,w=j.win,g=F.addEvent,y=F.css,v=F.objectEach,A=F.pick,S=F.removeEvent,M={},k=!!w.PointerEvent;return function(m){function b(){return m!==null&&m.apply(this,arguments)||this}return Q(b,m),b.isRequired=function(){return!(j.hasTouch||!w.PointerEvent&&!w.MSPointerEvent)},b.prototype.batchMSEvents=function(T){T(this.chart.container,k?"pointerdown":"MSPointerDown",this.onContainerPointerDown),T(this.chart.container,k?"pointermove":"MSPointerMove",this.onContainerPointerMove),T(P,k?"pointerup":"MSPointerUp",this.onDocumentPointerUp)},b.prototype.destroy=function(){this.batchMSEvents(S),m.prototype.destroy.call(this)},b.prototype.init=function(T,C){m.prototype.init.call(this,T,C),this.hasZoom&&y(T.container,{"-ms-touch-action":"none","touch-action":"none"})},b.prototype.onContainerPointerDown=function(T){Z(T,"onContainerTouchStart","touchstart",function(C){M[C.pointerId]={pageX:C.pageX,pageY:C.pageY,target:C.currentTarget}})},b.prototype.onContainerPointerMove=function(T){Z(T,"onContainerTouchMove","touchmove",function(C){M[C.pointerId]={pageX:C.pageX,pageY:C.pageY},M[C.pointerId].target||(M[C.pointerId].target=C.currentTarget)})},b.prototype.onDocumentPointerUp=function(T){Z(T,"onDocumentTouchEnd","touchend",function(C){delete M[C.pointerId]})},b.prototype.setDOMEvents=function(){var T=this.chart.tooltip;m.prototype.setDOMEvents.call(this),(this.hasZoom||A(T&&T.options.followTouchMove,!0))&&this.batchMSEvents(g)},b}(H)}),lt(I,"Core/Legend/Legend.js",[I["Core/Animation/AnimationUtilities.js"],I["Core/FormatUtilities.js"],I["Core/Globals.js"],I["Core/Series/Point.js"],I["Core/Renderer/RendererUtilities.js"],I["Core/Utilities.js"]],function(j,H,F,K,Z,Q){var V=j.animObject,P=j.setAnimation,z=H.format,w=F.marginNames,g=Z.distribute,y=Q.addEvent,v=Q.createElement,A=Q.css,S=Q.defined,M=Q.discardElement,k=Q.find,m=Q.fireEvent,b=Q.isNumber,T=Q.merge,C=Q.pick,s=Q.relativeLength,h=Q.stableSort,e=Q.syncTimeout;return j=function(){function l(t,p){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,p)}return l.prototype.init=function(t,p){this.chart=t,this.setOptions(p),p.enabled&&(this.render(),y(this.chart,"endResize",function(){this.legend.positionCheckboxes()}),this.proximate?this.unchartrender=y(this.chart,"render",function(){this.legend.proximatePositions(),this.legend.positionItems()}):this.unchartrender&&this.unchartrender())},l.prototype.setOptions=function(t){var p=C(t.padding,8);this.options=t,this.chart.styledMode||(this.itemStyle=t.itemStyle,this.itemHiddenStyle=T(this.itemStyle,t.itemHiddenStyle)),this.itemMarginTop=t.itemMarginTop||0,this.itemMarginBottom=t.itemMarginBottom||0,this.padding=p,this.initialItemY=p-5,this.symbolWidth=C(t.symbolWidth,16),this.pages=[],this.proximate=t.layout==="proximate"&&!this.chart.inverted,this.baseline=void 0},l.prototype.update=function(t,p){var i=this.chart;this.setOptions(T(!0,this.options,t)),this.destroy(),i.isDirtyLegend=i.isDirtyBox=!0,C(p,!0)&&i.redraw(),m(this,"afterUpdate")},l.prototype.colorizeItem=function(t,p){var i=t.legendItem||{},o=i.group,u=i.label,n=i.line;if(i=i.symbol,o&&o[p?"removeClass":"addClass"]("highcharts-legend-item-hidden"),!this.chart.styledMode){var x=this.options;o=this.itemHiddenStyle.color,x=p?x.itemStyle.color:o;var L=p&&t.color||o,U=t.options&&t.options.marker,_={fill:L};u&&u.css({fill:x,color:x}),n&&n.attr({stroke:L}),i&&(U&&i.isMarker&&(_=t.pointAttribs(),p||(_.stroke=_.fill=o)),i.attr(_))}m(this,"afterColorizeItem",{item:t,visible:p})},l.prototype.positionItems=function(){this.allItems.forEach(this.positionItem,this),this.chart.isResizing||this.positionCheckboxes()},l.prototype.positionItem=function(t){var p=this,i=t.legendItem||{},o=i.group,u=i.x;u=u===void 0?0:u,i=i.y,i=i===void 0?0:i;var n=this.options,x=n.symbolPadding,L=!n.rtl;n=t.checkbox,o&&o.element&&(x={translateX:L?u:this.legendWidth-u-2*x-4,translateY:i},o[S(o.translateY)?"animate":"attr"](x,void 0,function(){m(p,"afterPositionItem",{item:t})})),n&&(n.x=u,n.y=i)},l.prototype.destroyItem=function(t){for(var p=t.checkbox,i=t.legendItem||{},o=0,u=["group","label","line","symbol"];o<u.length;o++){var n=u[o];i[n]&&(i[n]=i[n].destroy())}p&&M(p),t.legendItem=void 0},l.prototype.destroy=function(){for(var t=0,p=this.getAllItems();t<p.length;t++)this.destroyItem(p[t]);for(t=0,p="clipRect up down pager nav box title group".split(" ");t<p.length;t++){var i=p[t];this[i]&&(this[i]=this[i].destroy())}this.display=null},l.prototype.positionCheckboxes=function(){var t=this.group&&this.group.alignAttr,p=this.clipHeight||this.legendHeight,i=this.titleHeight;if(t){var o=t.translateY;this.allItems.forEach(function(u){var n=u.checkbox;if(n){var x=o+i+n.y+(this.scrollOffset||0)+3;A(n,{left:t.translateX+u.checkboxOffset+n.x-20+"px",top:x+"px",display:this.proximate||x>o-6&&x<o+p-6?"":"none"})}},this)}},l.prototype.renderTitle=function(){var t=this.options,p=this.padding,i=t.title,o=0;i.text&&(this.title||(this.title=this.chart.renderer.label(i.text,p-3,p-4,void 0,void 0,void 0,t.useHTML,void 0,"legend-title").attr({zIndex:1}),this.chart.styledMode||this.title.css(i.style),this.title.add(this.group)),i.width||this.title.css({width:this.maxLegendWidth+"px"}),t=this.title.getBBox(),o=t.height,this.offsetWidth=t.width,this.contentGroup.attr({translateY:o})),this.titleHeight=o},l.prototype.setText=function(t){var p=this.options;t.legendItem.label.attr({text:p.labelFormat?z(p.labelFormat,t,this.chart):p.labelFormatter.call(t)})},l.prototype.renderItem=function(t){var p=t.legendItem=t.legendItem||{},i=this.chart,o=i.renderer,u=this.options,n=this.symbolWidth,x=u.symbolPadding||0,L=this.itemStyle,U=this.itemHiddenStyle,_=u.layout==="horizontal"?C(u.itemDistance,20):0,r=!u.rtl,f=!t.series,O=!f&&t.series.drawLegendSymbol?t.series:t,B=O.options,R=this.createCheckboxForItem&&B&&B.showCheckbox,a=u.useHTML,c=t.options.className,d=p.label;B=n+x+_+(R?20:0),d||(p.group=o.g("legend-item").addClass("highcharts-"+O.type+"-series highcharts-color-"+t.colorIndex+(c?" "+c:"")+(f?" highcharts-series-"+t.index:"")).attr({zIndex:1}).add(this.scrollGroup),p.label=d=o.text("",r?n+x:-x,this.baseline||0,a),i.styledMode||d.css(T(t.visible?L:U)),d.attr({align:r?"left":"right",zIndex:2}).add(p.group),this.baseline||(this.fontMetrics=o.fontMetrics(i.styledMode?12:L.fontSize,d),this.baseline=this.fontMetrics.f+3+this.itemMarginTop,d.attr("y",this.baseline),this.symbolHeight=u.symbolHeight||this.fontMetrics.f,u.squareSymbol&&(this.symbolWidth=C(u.symbolWidth,Math.max(this.symbolHeight,16)),B=this.symbolWidth+x+_+(R?20:0),r&&d.attr("x",this.symbolWidth+x))),O.drawLegendSymbol(this,t),this.setItemEvents&&this.setItemEvents(t,d,a)),R&&!t.checkbox&&this.createCheckboxForItem&&this.createCheckboxForItem(t),this.colorizeItem(t,t.visible),!i.styledMode&&L.width||d.css({width:(u.itemWidth||this.widthOption||i.spacingBox.width)-B+"px"}),this.setText(t),i=d.getBBox(),o=this.fontMetrics&&this.fontMetrics.h||0,t.itemWidth=t.checkboxOffset=u.itemWidth||p.labelWidth||i.width+B,this.maxItemWidth=Math.max(this.maxItemWidth,t.itemWidth),this.totalItemWidth+=t.itemWidth,this.itemHeight=t.itemHeight=Math.round(p.labelHeight||(i.height>1.5*o?i.height:o))},l.prototype.layoutItem=function(t){var p=this.options,i=this.padding,o=p.layout==="horizontal",u=t.itemHeight,n=this.itemMarginBottom,x=this.itemMarginTop,L=o?C(p.itemDistance,20):0,U=this.maxLegendWidth;p=p.alignColumns&&this.totalItemWidth>U?this.maxItemWidth:t.itemWidth;var _=t.legendItem||{};o&&this.itemX-i+p>U&&(this.itemX=i,this.lastLineHeight&&(this.itemY+=x+this.lastLineHeight+n),this.lastLineHeight=0),this.lastItemY=x+this.itemY+n,this.lastLineHeight=Math.max(u,this.lastLineHeight),_.x=this.itemX,_.y=this.itemY,o?this.itemX+=p:(this.itemY+=x+u+n,this.lastLineHeight=u),this.offsetWidth=this.widthOption||Math.max((o?this.itemX-i-(t.checkbox?0:L):p)+i,this.offsetWidth)},l.prototype.getAllItems=function(){var t=[];return this.chart.series.forEach(function(p){var i=p&&p.options;p&&C(i.showInLegend,S(i.linkedTo)?!1:void 0,!0)&&(t=t.concat((p.legendItem||{}).labels||(i.legendType==="point"?p.data:p)))}),m(this,"afterGetAllItems",{allItems:t}),t},l.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)},l.prototype.adjustMargins=function(t,p){var i=this.chart,o=this.options,u=this.getAlignment();u&&[/(lth|ct|rth)/,/(rtv|rm|rbv)/,/(rbh|cb|lbh)/,/(lbv|lm|ltv)/].forEach(function(n,x){n.test(u)&&!S(t[x])&&(i[w[x]]=Math.max(i[w[x]],i.legend[(x+1)%2?"legendHeight":"legendWidth"]+[1,-1,-1,1][x]*o[x%2?"x":"y"]+C(o.margin,12)+p[x]+(i.titleOffset[x]||0)))})},l.prototype.proximatePositions=function(){var t=this.chart,p=[],i=this.options.align==="left";this.allItems.forEach(function(L){var U,_=i;if(L.yAxis){L.xAxis.options.reversed&&(_=!_),L.points&&(U=k(_?L.points:L.points.slice(0).reverse(),function(f){return b(f.plotY)})),_=this.itemMarginTop+L.legendItem.label.getBBox().height+this.itemMarginBottom;var r=L.yAxis.top-t.plotTop;L.visible?(U=U?U.plotY:L.yAxis.height,U+=r-.3*_):U=r+L.yAxis.height,p.push({target:U,size:_,item:L})}},this);for(var o,u=0,n=g(p,t.plotHeight);u<n.length;u++){var x=n[u];o=x.item.legendItem||{},b(x.pos)&&(o.y=t.plotTop-t.spacing[0]+x.pos)}},l.prototype.render=function(){var t=this.chart,p=t.renderer,i=this.options,o=this.padding,u=this.getAllItems(),n=this.group,x=this.box;this.itemX=o,this.itemY=this.initialItemY,this.lastItemY=this.offsetWidth=0,this.widthOption=s(i.width,t.spacingBox.width-o);var L=t.spacingBox.width-2*o-i.x;-1<["rm","lm"].indexOf(this.getAlignment().substring(0,2))&&(L/=2),this.maxLegendWidth=this.widthOption||L,n||(this.group=n=p.g("legend").addClass(i.className||"").attr({zIndex:7}).add(),this.contentGroup=p.g().attr({zIndex:1}).add(n),this.scrollGroup=p.g().add(this.contentGroup)),this.renderTitle(),h(u,function(_,r){return(_.options&&_.options.legendIndex||0)-(r.options&&r.options.legendIndex||0)}),i.reversed&&u.reverse(),this.allItems=u,this.display=L=!!u.length,this.itemHeight=this.totalItemWidth=this.maxItemWidth=this.lastLineHeight=0,u.forEach(this.renderItem,this),u.forEach(this.layoutItem,this),u=(this.widthOption||this.offsetWidth)+o;var U=this.lastItemY+this.lastLineHeight+this.titleHeight;U=this.handleOverflow(U),U+=o,x||(this.box=x=p.rect().addClass("highcharts-legend-box").attr({r:i.borderRadius}).add(n)),t.styledMode||x.attr({stroke:i.borderColor,"stroke-width":i.borderWidth||0,fill:i.backgroundColor||"none"}).shadow(i.shadow),0<u&&0<U&&x[x.placed?"animate":"attr"](x.crisp.call({},{x:0,y:0,width:u,height:U},x.strokeWidth())),n[L?"show":"hide"](),t.styledMode&&n.getStyle("display")==="none"&&(u=U=0),this.legendWidth=u,this.legendHeight=U,L&&this.align(),this.proximate||this.positionItems(),m(this,"afterRender")},l.prototype.align=function(t){t===void 0&&(t=this.chart.spacingBox);var p=this.chart,i=this.options,o=t.y;/(lth|ct|rth)/.test(this.getAlignment())&&0<p.titleOffset[0]?o+=p.titleOffset[0]:/(lbh|cb|rbh)/.test(this.getAlignment())&&0<p.titleOffset[2]&&(o-=p.titleOffset[2]),o!==t.y&&(t=T(t,{y:o})),p.hasRendered||(this.group.placed=!1),this.group.align(T(i,{width:this.legendWidth,height:this.legendHeight,verticalAlign:this.proximate?"top":i.verticalAlign}),!0,t)},l.prototype.handleOverflow=function(t){var p=this,i=this.chart,o=i.renderer,u=this.options,n=u.y,x=u.verticalAlign==="top",L=this.padding,U=u.maxHeight,_=u.navigation,r=C(_.animation,!0),f=_.arrowSize||12,O=this.pages,B=this.allItems,R=function(W){typeof W=="number"?N.attr({height:W}):N&&(p.clipRect=N.destroy(),p.contentGroup.clip()),p.contentGroup.div&&(p.contentGroup.div.style.clip=W?"rect("+L+"px,9999px,"+(L+W)+"px,0)":"auto")},a=function(W){return p[W]=o.circle(0,0,1.3*f).translate(f/2,f/2).add(E),i.styledMode||p[W].attr("fill","rgba(0,0,0,0.0001)"),p[W]},c,d,D;n=i.spacingBox.height+(x?-n:n)-L;var E=this.nav,N=this.clipRect;return u.layout!=="horizontal"||u.verticalAlign==="middle"||u.floating||(n/=2),U&&(n=Math.min(n,U)),O.length=0,t&&0<n&&t>n&&_.enabled!==!1?(this.clipHeight=c=Math.max(n-20-this.titleHeight-L,0),this.currentPage=C(this.currentPage,1),this.fullHeight=t,B.forEach(function(W,Y){D=W.legendItem||{},W=D.y||0;var q=Math.round(D.label.getBBox().height),et=O.length;(!et||W-O[et-1]>c&&(d||W)!==O[et-1])&&(O.push(d||W),et++),D.pageIx=et-1,d&&((B[Y-1].legendItem||{}).pageIx=et-1),Y===B.length-1&&W+q-O[et-1]>c&&q<=c&&(O.push(W),D.pageIx=et),W!==d&&(d=W)}),N||(N=p.clipRect=o.clipRect(0,L,9999,0),p.contentGroup.clip(N)),R(c),E||(this.nav=E=o.g().attr({zIndex:1}).add(this.group),this.up=o.symbol("triangle",0,0,f,f).add(E),a("upTracker").on("click",function(){p.scroll(-1,r)}),this.pager=o.text("",15,10).addClass("highcharts-legend-navigation"),!i.styledMode&&_.style&&this.pager.css(_.style),this.pager.add(E),this.down=o.symbol("triangle-down",0,0,f,f).add(E),a("downTracker").on("click",function(){p.scroll(1,r)})),p.scroll(0),t=n):E&&(R(),this.nav=E.destroy(),this.scrollGroup.attr({translateY:1}),this.clipHeight=0),t},l.prototype.scroll=function(t,p){var i=this,o=this.chart,u=this.pages,n=u.length,x=this.clipHeight,L=this.options.navigation,U=this.pager,_=this.padding,r=this.currentPage+t;r>n&&(r=n),0<r&&(typeof p<"u"&&P(p,o),this.nav.attr({translateX:_,translateY:x+this.padding+7+this.titleHeight,visibility:"inherit"}),[this.up,this.upTracker].forEach(function(f){f.attr({class:r===1?"highcharts-legend-nav-inactive":"highcharts-legend-nav-active"})}),U.attr({text:r+"/"+n}),[this.down,this.downTracker].forEach(function(f){f.attr({x:18+this.pager.getBBox().width,class:r===n?"highcharts-legend-nav-inactive":"highcharts-legend-nav-active"})},this),o.styledMode||(this.up.attr({fill:r===1?L.inactiveColor:L.activeColor}),this.upTracker.css({cursor:r===1?"default":"pointer"}),this.down.attr({fill:r===n?L.inactiveColor:L.activeColor}),this.downTracker.css({cursor:r===n?"default":"pointer"})),this.scrollOffset=-u[r-1]+this.initialItemY,this.scrollGroup.animate({translateY:this.scrollOffset}),this.currentPage=r,this.positionCheckboxes(),t=V(C(p,o.renderer.globalAnimation,!0)),e(function(){m(i,"afterScroll",{currentPage:r})},t.duration))},l.prototype.setItemEvents=function(t,p,i){var o=this,u=t.legendItem||{},n=o.chart.renderer.boxWrapper,x=t instanceof K,L="highcharts-legend-"+(x?"point":"series")+"-active",U=o.chart.styledMode,_=function(f){o.allItems.forEach(function(O){t!==O&&[O].concat(O.linkedSeries||[]).forEach(function(B){B.setState(f,!x)})})},r=0;for(i=i?[p,u.symbol]:[u.group];r<i.length;r++)(u=i[r])&&u.on("mouseover",function(){t.visible&&_("inactive"),t.setState("hover"),t.visible&&n.addClass(L),U||p.css(o.options.itemHoverStyle)}).on("mouseout",function(){o.chart.styledMode||p.css(T(t.visible?o.itemStyle:o.itemHiddenStyle)),_(""),n.removeClass(L),t.setState()}).on("click",function(f){var O=function(){t.setVisible&&t.setVisible(),_(t.visible?"inactive":"")};n.removeClass(L),f={browserEvent:f},t.firePointEvent?t.firePointEvent("legendItemClick",f,O):m(t,"legendItemClick",f,O)})},l.prototype.createCheckboxForItem=function(t){t.checkbox=v("input",{type:"checkbox",className:"highcharts-legend-checkbox",checked:t.selected,defaultChecked:t.selected},this.options.itemCheckboxStyle,this.chart.container),y(t.checkbox,"click",function(p){m(t.series||t,"checkboxClick",{checked:p.target.checked,item:t},function(){t.select()})})},l}(),j}),lt(I,"Core/Series/SeriesRegistry.js",[I["Core/Globals.js"],I["Core/Defaults.js"],I["Core/Series/Point.js"],I["Core/Utilities.js"]],function(j,H,F,K){var Z=H.defaultOptions,Q=K.extendClass,V=K.merge,P;return function(z){function w(g,y){var v=Z.plotOptions||{},A=y.defaultOptions,S=y.prototype;S.type=g,S.pointClass||(S.pointClass=F),A&&(v[g]=A),z.seriesTypes[g]=y}z.seriesTypes=j.seriesTypes,z.registerSeriesType=w,z.seriesType=function(g,y,v,A,S){var M=Z.plotOptions||{};return y=y||"",M[g]=V(M[y],v),w(g,Q(z.seriesTypes[y]||function(){},A)),z.seriesTypes[g].prototype.type=g,S&&(z.seriesTypes[g].prototype.pointClass=Q(F,S)),z.seriesTypes[g]}}(P||(P={})),P}),lt(I,"Core/Chart/Chart.js",[I["Core/Animation/AnimationUtilities.js"],I["Core/Axis/Axis.js"],I["Core/Defaults.js"],I["Core/FormatUtilities.js"],I["Core/Foundation.js"],I["Core/Globals.js"],I["Core/Legend/Legend.js"],I["Core/MSPointer.js"],I["Core/Pointer.js"],I["Core/Renderer/RendererRegistry.js"],I["Core/Series/SeriesRegistry.js"],I["Core/Renderer/SVG/SVGRenderer.js"],I["Core/Time.js"],I["Core/Utilities.js"],I["Core/Renderer/HTML/AST.js"]],function(j,H,F,K,Z,Q,V,P,z,w,g,y,v,A,S){var M=j.animate,k=j.animObject,m=j.setAnimation,b=F.defaultOptions,T=F.defaultTime,C=K.numberFormat,s=Z.registerEventOptions,h=Q.charts,e=Q.doc,l=Q.marginNames,t=Q.svg,p=Q.win,i=g.seriesTypes,o=A.addEvent,u=A.attr,n=A.cleanRecursively,x=A.createElement,L=A.css,U=A.defined,_=A.discardElement,r=A.erase,f=A.error,O=A.extend,B=A.find,R=A.fireEvent,a=A.getStyle,c=A.isArray,d=A.isNumber,D=A.isObject,E=A.isString,N=A.merge,W=A.objectEach,Y=A.pick,q=A.pInt,et=A.relativeLength,st=A.removeEvent,rt=A.splat,it=A.syncTimeout,at=A.uniqueKey;return j=function(){function tt(X,G,$){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(X,G,$)}return tt.chart=function(X,G,$){return new tt(X,G,$)},tt.prototype.getArgs=function(X,G,$){E(X)||X.nodeName?(this.renderTo=X,this.init(G,$)):this.init(X,G)},tt.prototype.init=function(X,G){var $=X.plotOptions||{};R(this,"init",{args:arguments},function(){var J=N(b,X),ot=J.chart;W(J.plotOptions,function(pt,dt){D(pt)&&(pt.tooltip=$[dt]&&N($[dt].tooltip)||void 0)}),J.tooltip.userOptions=X.chart&&X.chart.forExport&&X.tooltip.userOptions||X.tooltip,this.userOptions=X,this.margin=[],this.spacing=[],this.bounds={h:{},v:{}},this.labelCollectors=[],this.callback=G,this.isResizing=0;var nt=ot.zooming=ot.zooming||{};X.chart&&!X.chart.zooming&&(nt.resetButton=ot.resetZoomButton),nt.key=Y(nt.key,ot.zoomKey),nt.pinchType=Y(nt.pinchType,ot.pinchType),nt.singleTouch=Y(nt.singleTouch,ot.zoomBySingleTouch),nt.type=Y(nt.type,ot.zoomType),this.options=J,this.axes=[],this.series=[],this.time=X.time&&Object.keys(X.time).length?new v(X.time):Q.time,this.numberFormatter=ot.numberFormatter||C,this.styledMode=ot.styledMode,this.hasCartesianSeries=ot.showAxes,this.index=h.length,h.push(this),Q.chartCount++,s(this,ot),this.xAxis=[],this.yAxis=[],this.pointCount=this.colorCounter=this.symbolCounter=0,R(this,"afterInit"),this.firstRender()})},tt.prototype.initSeries=function(X){var G=this.options.chart;G=X.type||G.type||G.defaultSeriesType;var $=i[G];return $||f(17,!0,this,{missingModuleFor:G}),G=new $,typeof G.init=="function"&&G.init(this,X),G},tt.prototype.setSeriesData=function(){this.getSeriesOrderByLinks().forEach(function(X){X.points||X.data||!X.enabledDataSorting||X.setData(X.options.data,!1)})},tt.prototype.getSeriesOrderByLinks=function(){return this.series.concat().sort(function(X,G){return X.linkedSeries.length||G.linkedSeries.length?G.linkedSeries.length-X.linkedSeries.length:0})},tt.prototype.orderSeries=function(X){var G=this.series;X=X||0;for(var $=G.length;X<$;++X)G[X]&&(G[X].index=X,G[X].name=G[X].getName())},tt.prototype.isInsidePlot=function(X,G,$){$===void 0&&($={});var J=this.inverted,ot=this.plotBox,nt=this.plotLeft,pt=this.plotTop,dt=this.scrollablePlotBox,yt=0,ct=0;$.visiblePlotOnly&&this.scrollingContainer&&(ct=this.scrollingContainer,yt=ct.scrollLeft,ct=ct.scrollTop);var ut=$.series;if(ot=$.visiblePlotOnly&&dt||ot,dt=$.inverted?G:X,G=$.inverted?X:G,X={x:dt,y:G,isInsidePlot:!0,options:$},!$.ignoreX){var Ct=ut&&(J&&!this.polar?ut.yAxis:ut.xAxis)||{pos:nt,len:1/0};dt=$.paneCoordinates?Ct.pos+dt:nt+dt,dt>=Math.max(yt+nt,Ct.pos)&&dt<=Math.min(yt+nt+ot.width,Ct.pos+Ct.len)||(X.isInsidePlot=!1)}return!$.ignoreY&&X.isInsidePlot&&(J=$.axis&&!$.axis.isXAxis&&$.axis||ut&&(J?ut.xAxis:ut.yAxis)||{pos:pt,len:1/0},$=$.paneCoordinates?J.pos+G:pt+G,$>=Math.max(ct+pt,J.pos)&&$<=Math.min(ct+pt+ot.height,J.pos+J.len)||(X.isInsidePlot=!1)),R(this,"afterIsInsidePlot",X),X.isInsidePlot},tt.prototype.redraw=function(X){R(this,"beforeRedraw");var G=this.hasCartesianSeries?this.axes:this.colorAxis||[],$=this.series,J=this.pointer,ot=this.legend,nt=this.userOptions.legend,pt=this.renderer,dt=pt.isHidden(),yt=[],ct=this.isDirtyBox,ut=this.isDirtyLegend;for(this.setResponsive&&this.setResponsive(!1),m(this.hasRendered?X:!1,this),dt&&this.temporaryDisplay(),this.layOutTitles(),X=$.length;X--;){var Ct=$[X];if(Ct.options.stacking||Ct.options.centerInCategory){var At=!0;if(Ct.isDirty){var Mt=!0;break}}}if(Mt)for(X=$.length;X--;)Ct=$[X],Ct.options.stacking&&(Ct.isDirty=!0);$.forEach(function(ft){ft.isDirty&&(ft.options.legendType==="point"?(typeof ft.updateTotals=="function"&&ft.updateTotals(),ut=!0):nt&&(nt.labelFormatter||nt.labelFormat)&&(ut=!0)),ft.isDirtyData&&R(ft,"updatedData")}),ut&&ot&&ot.options.enabled&&(ot.render(),this.isDirtyLegend=!1),At&&this.getStacks(),G.forEach(function(ft){ft.updateNames(),ft.setScale()}),this.getMargins(),G.forEach(function(ft){ft.isDirty&&(ct=!0)}),G.forEach(function(ft){var Et=ft.min+","+ft.max;ft.extKey!==Et&&(ft.extKey=Et,yt.push(function(){R(ft,"afterSetExtremes",O(ft.eventArgs,ft.getExtremes())),delete ft.eventArgs})),(ct||At)&&ft.redraw()}),ct&&this.drawChartBox(),R(this,"predraw"),$.forEach(function(ft){(ct||ft.isDirty)&&ft.visible&&ft.redraw(),ft.isDirtyData=!1}),J&&J.reset(!0),pt.draw(),R(this,"redraw"),R(this,"render"),dt&&this.temporaryDisplay(!0),yt.forEach(function(ft){ft.call()})},tt.prototype.get=function(X){function G(nt){return nt.id===X||nt.options&&nt.options.id===X}for(var $=this.series,J=B(this.axes,G)||B(this.series,G),ot=0;!J&&ot<$.length;ot++)J=B($[ot].points||[],G);return J},tt.prototype.getAxes=function(){var X=this,G=this.options,$=G.xAxis=rt(G.xAxis||{});G=G.yAxis=rt(G.yAxis||{}),R(this,"getAxes"),$.forEach(function(J,ot){J.index=ot,J.isX=!0}),G.forEach(function(J,ot){J.index=ot}),$.concat(G).forEach(function(J){new H(X,J)}),R(this,"afterGetAxes")},tt.prototype.getSelectedPoints=function(){return this.series.reduce(function(X,G){return G.getPointsCollection().forEach(function($){Y($.selectedStaging,$.selected)&&X.push($)}),X},[])},tt.prototype.getSelectedSeries=function(){return this.series.filter(function(X){return X.selected})},tt.prototype.setTitle=function(X,G,$){this.applyDescription("title",X),this.applyDescription("subtitle",G),this.applyDescription("caption",void 0),this.layOutTitles($)},tt.prototype.applyDescription=function(X,G){var $=this,J=X==="title"?{color:"#333333",fontSize:this.options.isStock?"16px":"18px"}:{color:"#666666"};J=this.options[X]=N(!this.styledMode&&{style:J},this.options[X],G);var ot=this[X];ot&&G&&(this[X]=ot=ot.destroy()),J&&!ot&&(ot=this.renderer.text(J.text,0,0,J.useHTML).attr({align:J.align,class:"highcharts-"+X,zIndex:J.zIndex||4}).add(),ot.update=function(nt){$[{title:"setTitle",subtitle:"setSubtitle",caption:"setCaption"}[X]](nt)},this.styledMode||ot.css(J.style),this[X]=ot)},tt.prototype.layOutTitles=function(X){var G=[0,0,0],$=this.renderer,J=this.spacingBox;["title","subtitle","caption"].forEach(function(nt){var pt=this[nt],dt=this.options[nt],yt=dt.verticalAlign||"top";nt=nt==="title"?yt==="top"?-3:0:yt==="top"?G[0]+2:0;var ct;if(pt){this.styledMode||(ct=dt.style&&dt.style.fontSize),ct=$.fontMetrics(ct,pt).b,pt.css({width:(dt.width||J.width+(dt.widthAdjust||0))+"px"});var ut=Math.round(pt.getBBox(dt.useHTML).height);pt.align(O({y:yt==="bottom"?ct:nt+ct,height:ut},dt),!1,"spacingBox"),dt.floating||(yt==="top"?G[0]=Math.ceil(G[0]+ut):yt==="bottom"&&(G[2]=Math.ceil(G[2]+ut)))}},this),G[0]&&(this.options.title.verticalAlign||"top")==="top"&&(G[0]+=this.options.title.margin),G[2]&&this.options.caption.verticalAlign==="bottom"&&(G[2]+=this.options.caption.margin);var ot=!this.titleOffset||this.titleOffset.join(",")!==G.join(",");this.titleOffset=G,R(this,"afterLayOutTitles"),!this.isDirtyBox&&ot&&(this.isDirtyBox=this.isDirtyLegend=ot,this.hasRendered&&Y(X,!0)&&this.isDirtyBox&&this.redraw())},tt.prototype.getChartSize=function(){var X=this.options.chart,G=X.width;X=X.height;var $=this.renderTo;U(G)||(this.containerWidth=a($,"width")),U(X)||(this.containerHeight=a($,"height")),this.chartWidth=Math.max(0,G||this.containerWidth||600),this.chartHeight=Math.max(0,et(X,this.chartWidth)||(1<this.containerHeight?this.containerHeight:400))},tt.prototype.temporaryDisplay=function(X){var G=this.renderTo;if(X)for(;G&&G.style;)G.hcOrigStyle&&(L(G,G.hcOrigStyle),delete G.hcOrigStyle),G.hcOrigDetached&&(e.body.removeChild(G),G.hcOrigDetached=!1),G=G.parentNode;else for(;G&&G.style&&(e.body.contains(G)||G.parentNode||(G.hcOrigDetached=!0,e.body.appendChild(G)),(a(G,"display",!1)==="none"||G.hcOricDetached)&&(G.hcOrigStyle={display:G.style.display,height:G.style.height,overflow:G.style.overflow},X={display:"block",overflow:"hidden"},G!==this.renderTo&&(X.height=0),L(G,X),G.offsetWidth||G.style.setProperty("display","block","important")),G=G.parentNode,G!==e.body););},tt.prototype.setClassName=function(X){this.container.className="highcharts-container "+(X||"")},tt.prototype.getContainer=function(){var X=this.options,G=X.chart,$=at(),J,ot=this.renderTo;ot||(this.renderTo=ot=G.renderTo),E(ot)&&(this.renderTo=ot=e.getElementById(ot)),ot||f(13,!0,this);var nt=q(u(ot,"data-highcharts-chart"));d(nt)&&h[nt]&&h[nt].hasRendered&&h[nt].destroy(),u(ot,"data-highcharts-chart",this.index),ot.innerHTML=S.emptyHTML,G.skipClone||ot.offsetWidth||this.temporaryDisplay(),this.getChartSize(),nt=this.chartWidth;var pt=this.chartHeight;if(L(ot,{overflow:"hidden"}),this.styledMode||(J=O({position:"relative",overflow:"hidden",width:nt+"px",height:pt+"px",textAlign:"left",lineHeight:"normal",zIndex:0,"-webkit-tap-highlight-color":"rgba(0,0,0,0)",userSelect:"none","touch-action":"manipulation",outline:"none"},G.style||{})),this.container=$=x("div",{id:$},J,ot),this._cursor=$.style.cursor,this.renderer=new(G.renderer||!t?w.getRendererType(G.renderer):y)($,nt,pt,void 0,G.forExport,X.exporting&&X.exporting.allowHTML,this.styledMode),m(void 0,this),this.setClassName(G.className),this.styledMode)for(var dt in X.defs)this.renderer.definition(X.defs[dt]);else this.renderer.setStyle(G.style);this.renderer.chartIndex=this.index,R(this,"afterGetContainer")},tt.prototype.getMargins=function(X){var G=this.spacing,$=this.margin,J=this.titleOffset;this.resetMargins(),J[0]&&!U($[0])&&(this.plotTop=Math.max(this.plotTop,J[0]+G[0])),J[2]&&!U($[2])&&(this.marginBottom=Math.max(this.marginBottom,J[2]+G[2])),this.legend&&this.legend.display&&this.legend.adjustMargins($,G),R(this,"getMargins"),X||this.getAxisMargins()},tt.prototype.getAxisMargins=function(){var X=this,G=X.axisOffset=[0,0,0,0],$=X.colorAxis,J=X.margin,ot=function(nt){nt.forEach(function(pt){pt.visible&&pt.getOffset()})};X.hasCartesianSeries?ot(X.axes):$&&$.length&&ot($),l.forEach(function(nt,pt){U(J[pt])||(X[nt]+=G[pt])}),X.setChartSize()},tt.prototype.reflow=function(X){var G=this,$=G.options.chart,J=G.renderTo,ot=U($.width)&&U($.height),nt=$.width||a(J,"width");$=$.height||a(J,"height"),J=X?X.target:p,delete G.pointer.chartPosition,!ot&&!G.isPrinting&&nt&&$&&(J===p||J===e)&&((nt!==G.containerWidth||$!==G.containerHeight)&&(A.clearTimeout(G.reflowTimeout),G.reflowTimeout=it(function(){G.container&&G.setSize(void 0,void 0,!1)},X?100:0)),G.containerWidth=nt,G.containerHeight=$)},tt.prototype.setReflow=function(X){var G=this;X===!1||this.unbindReflow?X===!1&&this.unbindReflow&&(this.unbindReflow=this.unbindReflow()):(this.unbindReflow=o(p,"resize",function($){G.options&&G.reflow($)}),o(this,"destroy",this.unbindReflow))},tt.prototype.setSize=function(X,G,$){var J=this,ot=J.renderer;J.isResizing+=1,m($,J),$=ot.globalAnimation,J.oldChartHeight=J.chartHeight,J.oldChartWidth=J.chartWidth,typeof X<"u"&&(J.options.chart.width=X),typeof G<"u"&&(J.options.chart.height=G),J.getChartSize(),J.styledMode||($?M:L)(J.container,{width:J.chartWidth+"px",height:J.chartHeight+"px"},$),J.setChartSize(!0),ot.setSize(J.chartWidth,J.chartHeight,$),J.axes.forEach(function(nt){nt.isDirty=!0,nt.setScale()}),J.isDirtyLegend=!0,J.isDirtyBox=!0,J.layOutTitles(),J.getMargins(),J.redraw($),J.oldChartHeight=null,R(J,"resize"),it(function(){J&&R(J,"endResize",null,function(){--J.isResizing})},k($).duration)},tt.prototype.setChartSize=function(X){var G=this.inverted,$=this.renderer,J=this.chartWidth,ot=this.chartHeight,nt=this.options.chart,pt=this.spacing,dt=this.clipOffset,yt,ct,ut,Ct;this.plotLeft=yt=Math.round(this.plotLeft),this.plotTop=ct=Math.round(this.plotTop),this.plotWidth=ut=Math.max(0,Math.round(J-yt-this.marginRight)),this.plotHeight=Ct=Math.max(0,Math.round(ot-ct-this.marginBottom)),this.plotSizeX=G?Ct:ut,this.plotSizeY=G?ut:Ct,this.plotBorderWidth=nt.plotBorderWidth||0,this.spacingBox=$.spacingBox={x:pt[3],y:pt[0],width:J-pt[3]-pt[1],height:ot-pt[0]-pt[2]},this.plotBox=$.plotBox={x:yt,y:ct,width:ut,height:Ct},G=2*Math.floor(this.plotBorderWidth/2),J=Math.ceil(Math.max(G,dt[3])/2),ot=Math.ceil(Math.max(G,dt[0])/2),this.clipBox={x:J,y:ot,width:Math.floor(this.plotSizeX-Math.max(G,dt[1])/2-J),height:Math.max(0,Math.floor(this.plotSizeY-Math.max(G,dt[2])/2-ot))},X||(this.axes.forEach(function(At){At.setAxisSize(),At.setAxisTranslation()}),$.alignElements()),R(this,"afterSetChartSize",{skipAxes:X})},tt.prototype.resetMargins=function(){R(this,"resetMargins");var X=this,G=X.options.chart;["margin","spacing"].forEach(function($){var J=G[$],ot=D(J)?J:[J,J,J,J];["Top","Right","Bottom","Left"].forEach(function(nt,pt){X[$][pt]=Y(G[$+nt],ot[pt])})}),l.forEach(function($,J){X[$]=Y(X.margin[J],X.spacing[J])}),X.axisOffset=[0,0,0,0],X.clipOffset=[0,0,0,0]},tt.prototype.drawChartBox=function(){var X=this.options.chart,G=this.renderer,$=this.chartWidth,J=this.chartHeight,ot=this.styledMode,nt=this.plotBGImage,pt=X.backgroundColor,dt=X.plotBackgroundColor,yt=X.plotBackgroundImage,ct=this.plotLeft,ut=this.plotTop,Ct=this.plotWidth,At=this.plotHeight,Mt=this.plotBox,ft=this.clipRect,Et=this.clipBox,wt=this.chartBackground,vt=this.plotBackground,kt=this.plotBorder,mt,Tt="animate";if(wt||(this.chartBackground=wt=G.rect().addClass("highcharts-background").add(),Tt="attr"),ot)var Ot=mt=wt.strokeWidth();else Ot=X.borderWidth||0,mt=Ot+(X.shadow?8:0),pt={fill:pt||"none"},(Ot||wt["stroke-width"])&&(pt.stroke=X.borderColor,pt["stroke-width"]=Ot),wt.attr(pt).shadow(X.shadow);wt[Tt]({x:mt/2,y:mt/2,width:$-mt-Ot%2,height:J-mt-Ot%2,r:X.borderRadius}),Tt="animate",vt||(Tt="attr",this.plotBackground=vt=G.rect().addClass("highcharts-plot-background").add()),vt[Tt](Mt),ot||(vt.attr({fill:dt||"none"}).shadow(X.plotShadow),yt&&(nt?(yt!==nt.attr("href")&&nt.attr("href",yt),nt.animate(Mt)):this.plotBGImage=G.image(yt,ct,ut,Ct,At).add())),ft?ft.animate({width:Et.width,height:Et.height}):this.clipRect=G.clipRect(Et),Tt="animate",kt||(Tt="attr",this.plotBorder=kt=G.rect().addClass("highcharts-plot-border").attr({zIndex:1}).add()),ot||kt.attr({stroke:X.plotBorderColor,"stroke-width":X.plotBorderWidth||0,fill:"none"}),kt[Tt](kt.crisp({x:ct,y:ut,width:Ct,height:At},-kt.strokeWidth())),this.isDirtyBox=!1,R(this,"afterDrawChartBox")},tt.prototype.propFromSeries=function(){var X=this,G=X.options.chart,$=X.options.series,J,ot,nt;["inverted","angular","polar"].forEach(function(pt){for(ot=i[G.type||G.defaultSeriesType],nt=G[pt]||ot&&ot.prototype[pt],J=$&&$.length;!nt&&J--;)(ot=i[$[J].type])&&ot.prototype[pt]&&(nt=!0);X[pt]=nt})},tt.prototype.linkSeries=function(){var X=this,G=X.series;G.forEach(function($){$.linkedSeries.length=0}),G.forEach(function($){var J=$.options.linkedTo;E(J)&&(J=J===":previous"?X.series[$.index-1]:X.get(J))&&J.linkedParent!==$&&(J.linkedSeries.push($),$.linkedParent=J,J.enabledDataSorting&&$.setDataSortingOptions(),$.visible=Y($.options.visible,J.options.visible,$.visible))}),R(this,"afterLinkSeries")},tt.prototype.renderSeries=function(){this.series.forEach(function(X){X.translate(),X.render()})},tt.prototype.renderLabels=function(){var X=this,G=X.options.labels;G.items&&G.items.forEach(function($){var J=O(G.style,$.style),ot=q(J.left)+X.plotLeft,nt=q(J.top)+X.plotTop+12;delete J.left,delete J.top,X.renderer.text($.html,ot,nt).attr({zIndex:2}).css(J).add()})},tt.prototype.render=function(){var X=this.axes,G=this.colorAxis,$=this.renderer,J=this.options,ot=function(ct){ct.forEach(function(ut){ut.visible&&ut.render()})},nt=0;this.setTitle(),this.legend=new V(this,J.legend),this.getStacks&&this.getStacks(),this.getMargins(!0),this.setChartSize(),J=this.plotWidth,X.some(function(ct){if(ct.horiz&&ct.visible&&ct.options.labels.enabled&&ct.series.length)return nt=21,!0});var pt=this.plotHeight=Math.max(this.plotHeight-nt,0);X.forEach(function(ct){ct.setScale()}),this.getAxisMargins();var dt=1.1<J/this.plotWidth,yt=1.05<pt/this.plotHeight;(dt||yt)&&(X.forEach(function(ct){(ct.horiz&&dt||!ct.horiz&&yt)&&ct.setTickInterval(!0)}),this.getMargins()),this.drawChartBox(),this.hasCartesianSeries?ot(X):G&&G.length&&ot(G),this.seriesGroup||(this.seriesGroup=$.g("series-group").attr({zIndex:3}).add()),this.renderSeries(),this.renderLabels(),this.addCredits(),this.setResponsive&&this.setResponsive(),this.hasRendered=!0},tt.prototype.addCredits=function(X){var G=this,$=N(!0,this.options.credits,X);$.enabled&&!this.credits&&(this.credits=this.renderer.text($.text+(this.mapCredits||""),0,0).addClass("highcharts-credits").on("click",function(){$.href&&(p.location.href=$.href)}).attr({align:$.position.align,zIndex:8}),G.styledMode||this.credits.css($.style),this.credits.add().align($.position),this.credits.update=function(J){G.credits=G.credits.destroy(),G.addCredits(J)})},tt.prototype.destroy=function(){var X=this,G=X.axes,$=X.series,J=X.container,ot=J&&J.parentNode,nt;for(R(X,"destroy"),X.renderer.forExport?r(h,X):h[X.index]=void 0,Q.chartCount--,X.renderTo.removeAttribute("data-highcharts-chart"),st(X),nt=G.length;nt--;)G[nt]=G[nt].destroy();for(this.scroller&&this.scroller.destroy&&this.scroller.destroy(),nt=$.length;nt--;)$[nt]=$[nt].destroy();"title subtitle chartBackground plotBackground plotBGImage plotBorder seriesGroup clipRect credits pointer rangeSelector legend resetZoomButton tooltip renderer".split(" ").forEach(function(pt){var dt=X[pt];dt&&dt.destroy&&(X[pt]=dt.destroy())}),J&&(J.innerHTML=S.emptyHTML,st(J),ot&&_(J)),W(X,function(pt,dt){delete X[dt]})},tt.prototype.firstRender=function(){var X=this,G=X.options;(!X.isReadyToRender||X.isReadyToRender())&&(X.getContainer(),X.resetMargins(),X.setChartSize(),X.propFromSeries(),X.getAxes(),(c(G.series)?G.series:[]).forEach(function($){X.initSeries($)}),X.linkSeries(),X.setSeriesData(),R(X,"beforeRender"),z&&(P.isRequired()?X.pointer=new P(X,G):X.pointer=new z(X,G)),X.render(),X.pointer.getChartPosition(),!X.renderer.imgCount&&!X.hasLoaded&&X.onload(),X.temporaryDisplay(!0))},tt.prototype.onload=function(){this.callbacks.concat([this.callback]).forEach(function(X){X&&typeof this.index<"u"&&X.apply(this,[this])},this),R(this,"load"),R(this,"render"),U(this.index)&&this.setReflow(this.options.chart.reflow),this.warnIfA11yModuleNotLoaded(),this.hasLoaded=!0},tt.prototype.warnIfA11yModuleNotLoaded=function(){var X=this.options,G=this.title;X&&!this.accessibility&&(this.renderer.boxWrapper.attr({role:"img","aria-label":(G&&G.element.textContent||"").replace(/</g,"&lt;")}),X.accessibility&&X.accessibility.enabled===!1||f('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))},tt.prototype.addSeries=function(X,G,$){var J=this,ot;return X&&(G=Y(G,!0),R(J,"addSeries",{options:X},function(){ot=J.initSeries(X),J.isDirtyLegend=!0,J.linkSeries(),ot.enabledDataSorting&&ot.setData(X.data,!1),R(J,"afterAddSeries",{series:ot}),G&&J.redraw($)})),ot},tt.prototype.addAxis=function(X,G,$,J){return this.createAxis(G?"xAxis":"yAxis",{axis:X,redraw:$,animation:J})},tt.prototype.addColorAxis=function(X,G,$){return this.createAxis("colorAxis",{axis:X,redraw:G,animation:$})},tt.prototype.createAxis=function(X,G){return X=new H(this,N(G.axis,{index:this[X].length,isX:X==="xAxis"})),Y(G.redraw,!0)&&this.redraw(G.animation),X},tt.prototype.showLoading=function(X){var G=this,$=G.options,J=$.loading,ot=function(){nt&&L(nt,{left:G.plotLeft+"px",top:G.plotTop+"px",width:G.plotWidth+"px",height:G.plotHeight+"px"})},nt=G.loadingDiv,pt=G.loadingSpan;nt||(G.loadingDiv=nt=x("div",{className:"highcharts-loading highcharts-loading-hidden"},null,G.container)),pt||(G.loadingSpan=pt=x("span",{className:"highcharts-loading-inner"},null,nt),o(G,"redraw",ot)),nt.className="highcharts-loading",S.setElementHTML(pt,Y(X,$.lang.loading,"")),G.styledMode||(L(nt,O(J.style,{zIndex:10})),L(pt,J.labelStyle),G.loadingShown||(L(nt,{opacity:0,display:""}),M(nt,{opacity:J.style.opacity||.5},{duration:J.showDuration||0}))),G.loadingShown=!0,ot()},tt.prototype.hideLoading=function(){var X=this.options,G=this.loadingDiv;G&&(G.className="highcharts-loading highcharts-loading-hidden",this.styledMode||M(G,{opacity:0},{duration:X.loading.hideDuration||100,complete:function(){L(G,{display:"none"})}})),this.loadingShown=!1},tt.prototype.update=function(X,G,$,J){var ot=this,nt={credits:"addCredits",title:"setTitle",subtitle:"setSubtitle",caption:"setCaption"},pt=X.isResponsiveOptions,dt=[],yt,ct;R(ot,"update",{options:X}),pt||ot.setResponsive(!1,!0),X=n(X,ot.options),ot.userOptions=N(ot.userOptions,X);var ut=X.chart;if(ut){if(N(!0,ot.options.chart,ut),"className"in ut&&ot.setClassName(ut.className),"reflow"in ut&&ot.setReflow(ut.reflow),"inverted"in ut||"polar"in ut||"type"in ut){ot.propFromSeries();var Ct=!0}"alignTicks"in ut&&(Ct=!0),"events"in ut&&s(this,ut),W(ut,function(At,Mt){ot.propsRequireUpdateSeries.indexOf("chart."+Mt)!==-1&&(yt=!0),ot.propsRequireDirtyBox.indexOf(Mt)!==-1&&(ot.isDirtyBox=!0),ot.propsRequireReflow.indexOf(Mt)!==-1&&(pt?ot.isDirtyBox=!0:ct=!0)}),!ot.styledMode&&ut.style&&ot.renderer.setStyle(ot.options.chart.style||{})}!ot.styledMode&&X.colors&&(this.options.colors=X.colors),X.time&&(this.time===T&&(this.time=new v(X.time)),N(!0,ot.options.time,X.time)),W(X,function(At,Mt){ot[Mt]&&typeof ot[Mt].update=="function"?ot[Mt].update(At,!1):typeof ot[nt[Mt]]=="function"?ot[nt[Mt]](At):Mt!=="colors"&&ot.collectionsWithUpdate.indexOf(Mt)===-1&&N(!0,ot.options[Mt],X[Mt]),Mt!=="chart"&&ot.propsRequireUpdateSeries.indexOf(Mt)!==-1&&(yt=!0)}),this.collectionsWithUpdate.forEach(function(At){if(X[At]){var Mt=[];ot[At].forEach(function(ft,Et){ft.options.isInternal||Mt.push(Y(ft.options.index,Et))}),rt(X[At]).forEach(function(ft,Et){var wt=U(ft.id),vt;wt&&(vt=ot.get(ft.id)),!vt&&ot[At]&&(vt=ot[At][Mt?Mt[Et]:Et])&&wt&&U(vt.options.id)&&(vt=void 0),vt&&vt.coll===At&&(vt.update(ft,!1),$&&(vt.touched=!0)),!vt&&$&&ot.collectionsWithInit[At]&&(ot.collectionsWithInit[At][0].apply(ot,[ft].concat(ot.collectionsWithInit[At][1]||[]).concat([!1])).touched=!0)}),$&&ot[At].forEach(function(ft){ft.touched||ft.options.isInternal?delete ft.touched:dt.push(ft)})}}),dt.forEach(function(At){At.chart&&At.remove&&At.remove(!1)}),Ct&&ot.axes.forEach(function(At){At.update({},!1)}),yt&&ot.getSeriesOrderByLinks().forEach(function(At){At.chart&&At.update({},!1)},this),Ct=ut&&ut.width,ut=ut&&(E(ut.height)?et(ut.height,Ct||ot.chartWidth):ut.height),ct||d(Ct)&&Ct!==ot.chartWidth||d(ut)&&ut!==ot.chartHeight?ot.setSize(Ct,ut,J):Y(G,!0)&&ot.redraw(J),R(ot,"afterUpdate",{options:X,redraw:G,animation:J})},tt.prototype.setSubtitle=function(X,G){this.applyDescription("subtitle",X),this.layOutTitles(G)},tt.prototype.setCaption=function(X,G){this.applyDescription("caption",X),this.layOutTitles(G)},tt.prototype.showResetZoom=function(){function X(){G.zoomOut()}var G=this,$=b.lang,J=G.options.chart.zooming.resetButton,ot=J.theme,nt=J.relativeTo==="chart"||J.relativeTo==="spacingBox"?null:"scrollablePlotBox";R(this,"beforeShowResetZoom",null,function(){G.resetZoomButton=G.renderer.button($.resetZoom,null,null,X,ot).attr({align:J.position.align,title:$.resetZoomTitle}).addClass("highcharts-reset-zoom").add().align(J.position,!1,nt)}),R(this,"afterShowResetZoom")},tt.prototype.zoomOut=function(){R(this,"selection",{resetSelection:!0},this.zoom)},tt.prototype.zoom=function(X){var G=this,$=G.pointer,J=!1,ot;!X||X.resetSelection?(G.axes.forEach(function(pt){ot=pt.zoom()}),$.initiated=!1):X.xAxis.concat(X.yAxis).forEach(function(pt){var dt=pt.axis;($[dt.isXAxis?"zoomX":"zoomY"]&&U($.mouseDownX)&&U($.mouseDownY)&&G.isInsidePlot($.mouseDownX-G.plotLeft,$.mouseDownY-G.plotTop,{axis:dt})||!U(G.inverted?$.mouseDownX:$.mouseDownY))&&(ot=dt.zoom(pt.min,pt.max),dt.displayBtn&&(J=!0))});var nt=G.resetZoomButton;J&&!nt?G.showResetZoom():!J&&D(nt)&&(G.resetZoomButton=nt.destroy()),ot&&G.redraw(Y(G.options.chart.animation,X&&X.animation,100>G.pointCount))},tt.prototype.pan=function(X,G){var $=this,J=$.hoverPoints;G=typeof G=="object"?G:{enabled:G,type:"x"};var ot=$.options.chart;ot&&ot.panning&&(ot.panning=G);var nt=G.type,pt;R(this,"pan",{originalEvent:X},function(){J&&J.forEach(function(ct){ct.setState()});var dt=$.xAxis;nt==="xy"?dt=dt.concat($.yAxis):nt==="y"&&(dt=$.yAxis);var yt={};dt.forEach(function(ct){if(ct.options.panningEnabled&&!ct.options.isInternal){var ut=ct.horiz,Ct=X[ut?"chartX":"chartY"];ut=ut?"mouseDownX":"mouseDownY";var At=$[ut],Mt=ct.minPointOffset||0,ft=ct.reversed&&!$.inverted||!ct.reversed&&$.inverted?-1:1,Et=ct.getExtremes(),wt=ct.toValue(At-Ct,!0)+Mt*ft,vt=ct.toValue(At+ct.len-Ct,!0)-(Mt*ft||ct.isXAxis&&ct.pointRangePadding||0),kt=vt<wt;ft=ct.hasVerticalPanning(),At=kt?vt:wt,wt=kt?wt:vt;var mt=ct.panningState;!ft||ct.isXAxis||mt&&!mt.isDirty||ct.series.forEach(function(Tt){var Ot=Tt.getProcessedData(!0);Ot=Tt.getExtremes(Ot.yData,!0),mt||(mt={startMin:Number.MAX_VALUE,startMax:-Number.MAX_VALUE}),d(Ot.dataMin)&&d(Ot.dataMax)&&(mt.startMin=Math.min(Y(Tt.options.threshold,1/0),Ot.dataMin,mt.startMin),mt.startMax=Math.max(Y(Tt.options.threshold,-1/0),Ot.dataMax,mt.startMax))}),ft=Math.min(Y(mt&&mt.startMin,Et.dataMin),Mt?Et.min:ct.toValue(ct.toPixels(Et.min)-ct.minPixelPadding)),vt=Math.max(Y(mt&&mt.startMax,Et.dataMax),Mt?Et.max:ct.toValue(ct.toPixels(Et.max)+ct.minPixelPadding)),ct.panningState=mt,ct.isOrdinal||(Mt=ft-At,0<Mt&&(wt+=Mt,At=ft),Mt=wt-vt,0<Mt&&(wt=vt,At-=Mt),ct.series.length&&At!==Et.min&&wt!==Et.max&&At>=ft&&wt<=vt&&(ct.setExtremes(At,wt,!1,!1,{trigger:"pan"}),!$.resetZoomButton&&At!==ft&&wt!==vt&&nt.match("y")&&($.showResetZoom(),ct.displayBtn=!1),pt=!0),yt[ut]=Ct)}}),W(yt,function(ct,ut){$[ut]=ct}),pt&&$.redraw(!1),L($.container,{cursor:"move"})})},tt}(),O(j.prototype,{callbacks:[],collectionsWithInit:{xAxis:[j.prototype.addAxis,[!0]],yAxis:[j.prototype.addAxis,[!1]],series:[j.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(" ")}),j}),lt(I,"Core/Legend/LegendSymbol.js",[I["Core/Utilities.js"]],function(j){var H=j.extend,F=j.merge,K=j.pick,Z;return function(Q){Q.drawLineMarker=function(V){var P=this.legendItem=this.legendItem||{},z=this.options,w=V.symbolWidth,g=V.symbolHeight,y=g/2,v=this.chart.renderer,A=P.group;V=V.baseline-Math.round(.3*V.fontMetrics.b);var S={},M=z.marker,k=0;this.chart.styledMode||(S={"stroke-width":Math.min(z.lineWidth||0,24)},z.dashStyle?S.dashstyle=z.dashStyle:z.linecap!=="square"&&(S["stroke-linecap"]="round")),P.line=v.path().addClass("highcharts-graph").attr(S).add(A),S["stroke-linecap"]&&(k=Math.min(P.line.strokeWidth(),w)/2),P.line.attr({d:[["M",k,V],["L",w-k,V]]}),M&&M.enabled!==!1&&w&&(z=Math.min(K(M.radius,y),y),this.symbol.indexOf("url")===0&&(M=F(M,{width:g,height:g}),z=0),P.symbol=P=v.symbol(this.symbol,w/2-z,V-z,2*z,2*z,H({context:"legend"},M)).addClass("highcharts-point").add(A),P.isMarker=!0)},Q.drawRectangle=function(V,P){P=P.legendItem||{};var z=V.symbolHeight,w=V.options.squareSymbol;P.symbol=this.chart.renderer.rect(w?(V.symbolWidth-z)/2:0,V.baseline-z+1,w?z:V.symbolWidth,z,K(V.options.symbolRadius,z/2)).addClass("highcharts-point").attr({zIndex:3}).add(P.group)}}(Z||(Z={})),Z}),lt(I,"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 j=this.series.chart.numberFormatter;return typeof this.y!="number"?"":j(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"}}),lt(I,"Core/Series/Series.js",[I["Core/Animation/AnimationUtilities.js"],I["Core/Defaults.js"],I["Core/Foundation.js"],I["Core/Globals.js"],I["Core/Legend/LegendSymbol.js"],I["Core/Series/Point.js"],I["Core/Series/SeriesDefaults.js"],I["Core/Series/SeriesRegistry.js"],I["Core/Renderer/SVG/SVGElement.js"],I["Core/Utilities.js"]],function(j,H,F,K,Z,Q,V,P,z,w){var g=j.animObject,y=j.setAnimation,v=H.defaultOptions,A=F.registerEventOptions,S=K.hasTouch,M=K.svg,k=K.win,m=P.seriesTypes,b=w.arrayMax,T=w.arrayMin,C=w.clamp,s=w.cleanRecursively,h=w.correctFloat,e=w.defined,l=w.erase,t=w.error,p=w.extend,i=w.find,o=w.fireEvent,u=w.getNestedProperty,n=w.isArray,x=w.isNumber,L=w.isString,U=w.merge,_=w.objectEach,r=w.pick,f=w.removeEvent,O=w.splat,B=w.syncTimeout;return j=function(){function R(){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 R.prototype.init=function(a,c){o(this,"init",{options:c});var d=this,D=a.series;this.eventsToUnbind=[],d.chart=a,d.options=d.setOptions(c),c=d.options,d.linkedSeries=[],d.bindAxes(),p(d,{name:c.name,state:"",visible:c.visible!==!1,selected:c.selected===!0}),A(this,c);var E=c.events;(E&&E.click||c.point&&c.point.events&&c.point.events.click||c.allowPointSelect)&&(a.runTrackerClick=!0),d.getColor(),d.getSymbol(),d.parallelArrays.forEach(function(W){d[W+"Data"]||(d[W+"Data"]=[])}),d.isCartesian&&(a.hasCartesianSeries=!0);var N;D.length&&(N=D[D.length-1]),d._i=r(N&&N._i,-1)+1,d.opacity=d.options.opacity,a.orderSeries(this.insert(D)),c.dataSorting&&c.dataSorting.enabled?d.setDataSortingOptions():d.points||d.data||d.setData(c.data,!1),o(this,"afterInit")},R.prototype.is=function(a){return m[a]&&this instanceof m[a]},R.prototype.insert=function(a){var c=this.options.index,d;if(x(c)){for(d=a.length;d--;)if(c>=r(a[d].options.index,a[d]._i)){a.splice(d+1,0,this);break}d===-1&&a.unshift(this),d+=1}else a.push(this);return r(d,a.length-1)},R.prototype.bindAxes=function(){var a=this,c=a.options,d=a.chart,D;o(this,"bindAxes",null,function(){(a.axisTypes||[]).forEach(function(E){var N=0;d[E].forEach(function(W){D=W.options,(c[E]===N&&!D.isInternal||typeof c[E]<"u"&&c[E]===D.id||typeof c[E]>"u"&&D.index===0)&&(a.insert(W.series),a[E]=W,W.isDirty=!0),D.isInternal||N++}),a[E]||a.optionalAxis===E||t(18,!0,d)})}),o(this,"afterBindAxes")},R.prototype.updateParallelArrays=function(a,c){var d=a.series,D=arguments,E=x(c)?function(N){var W=N==="y"&&d.toYData?d.toYData(a):a[N];d[N+"Data"][c]=W}:function(N){Array.prototype[c].apply(d[N+"Data"],Array.prototype.slice.call(D,2))};d.parallelArrays.forEach(E)},R.prototype.hasData=function(){return this.visible&&typeof this.dataMax<"u"&&typeof this.dataMin<"u"||this.visible&&this.yData&&0<this.yData.length},R.prototype.autoIncrement=function(a){var c=this.options,d=c.pointIntervalUnit,D=c.relativeXValue,E=this.chart.time,N=this.xIncrement,W;return N=r(N,c.pointStart,0),this.pointInterval=W=r(this.pointInterval,c.pointInterval,1),D&&x(a)&&(W*=a),d&&(c=new E.Date(N),d==="day"?E.set("Date",c,E.get("Date",c)+W):d==="month"?E.set("Month",c,E.get("Month",c)+W):d==="year"&&E.set("FullYear",c,E.get("FullYear",c)+W),W=c.getTime()-N),D&&x(a)?N+W:(this.xIncrement=N+W,N)},R.prototype.setDataSortingOptions=function(){var a=this.options;p(this,{requireSorting:!1,sorted:!1,enabledDataSorting:!0,allowDG:!1}),e(a.pointRange)||(a.pointRange=1)},R.prototype.setOptions=function(a){var c=this.chart,d=c.options,D=d.plotOptions,E=c.userOptions||{};a=U(a),c=c.styledMode;var N={plotOptions:D,userOptions:a};o(this,"setOptions",N);var W=N.plotOptions[this.type],Y=E.plotOptions||{};return this.userOptions=N.userOptions,E=U(W,D.series,E.plotOptions&&E.plotOptions[this.type],a),this.tooltipOptions=U(v.tooltip,v.plotOptions.series&&v.plotOptions.series.tooltip,v.plotOptions[this.type].tooltip,d.tooltip.userOptions,D.series&&D.series.tooltip,D[this.type].tooltip,a.tooltip),this.stickyTracking=r(a.stickyTracking,Y[this.type]&&Y[this.type].stickyTracking,Y.series&&Y.series.stickyTracking,this.tooltipOptions.shared&&!this.noSharedTooltip?!0:E.stickyTracking),W.marker===null&&delete E.marker,this.zoneAxis=E.zoneAxis,D=this.zones=(E.zones||[]).slice(),!E.negativeColor&&!E.negativeFillColor||E.zones||(d={value:E[this.zoneAxis+"Threshold"]||E.threshold||0,className:"highcharts-negative"},c||(d.color=E.negativeColor,d.fillColor=E.negativeFillColor),D.push(d)),D.length&&e(D[D.length-1].value)&&D.push(c?{}:{color:this.color,fillColor:this.fillColor}),o(this,"afterSetOptions",{options:E}),E},R.prototype.getName=function(){return r(this.options.name,"Series "+(this.index+1))},R.prototype.getCyclic=function(a,c,d){var D=this.chart,E=this.userOptions,N=a+"Index",W=a+"Counter",Y=d?d.length:r(D.options.chart[a+"Count"],D[a+"Count"]);if(!c){var q=r(E[N],E["_"+N]);e(q)||(D.series.length||(D[W]=0),E["_"+N]=q=D[W]%Y,D[W]+=1),d&&(c=d[q])}typeof q<"u"&&(this[N]=q),this[a]=c},R.prototype.getColor=function(){this.chart.styledMode?this.getCyclic("color"):this.options.colorByPoint?this.color="#cccccc":this.getCyclic("color",this.options.color||v.plotOptions[this.type].color,this.chart.options.colors)},R.prototype.getPointsCollection=function(){return(this.hasGroupedData?this.points:this.data)||[]},R.prototype.getSymbol=function(){this.getCyclic("symbol",this.options.marker.symbol,this.chart.options.symbols)},R.prototype.findPointIndex=function(a,c){var d=a.id,D=a.x,E=this.points,N=this.options.dataSorting,W,Y;if(d)N=this.chart.get(d),N instanceof Q&&(W=N);else if((this.linkedParent||this.enabledDataSorting||this.options.relativeXValue)&&(W=function(et){return!et.touched&&et.index===a.index},N&&N.matchByName?W=function(et){return!et.touched&&et.name===a.name}:this.options.relativeXValue&&(W=function(et){return!et.touched&&et.options.x===a.x}),W=i(E,W),!W))return;if(W){var q=W&&W.index;typeof q<"u"&&(Y=!0)}return typeof q>"u"&&x(D)&&(q=this.xData.indexOf(D,c)),q!==-1&&typeof q<"u"&&this.cropped&&(q=q>=this.cropStart?q-this.cropStart:q),!Y&&x(q)&&E[q]&&E[q].touched&&(q=void 0),q},R.prototype.updateData=function(a,c){var d=this.options,D=d.dataSorting,E=this.points,N=[],W=this.requireSorting,Y=a.length===E.length,q,et,st,rt=!0;if(this.xIncrement=null,a.forEach(function(it,at){var tt=e(it)&&this.pointClass.prototype.optionsToObject.call({series:this},it)||{},X=tt.x;tt.id||x(X)?(tt=this.findPointIndex(tt,st),tt===-1||typeof tt>"u"?N.push(it):E[tt]&&it!==d.data[tt]?(E[tt].update(it,!1,null,!1),E[tt].touched=!0,W&&(st=tt+1)):E[tt]&&(E[tt].touched=!0),(!Y||at!==tt||D&&D.enabled||this.hasDerivedData)&&(q=!0)):N.push(it)},this),q)for(a=E.length;a--;)(et=E[a])&&!et.touched&&et.remove&&et.remove(!1,c);else!Y||D&&D.enabled?rt=!1:(a.forEach(function(it,at){it!==E[at].y&&E[at].update&&E[at].update(it,!1,null,!1)}),N.length=0);return E.forEach(function(it){it&&(it.touched=!1)}),rt?(N.forEach(function(it){this.addPoint(it,!1,null,null,!1)},this),this.xIncrement===null&&this.xData&&this.xData.length&&(this.xIncrement=b(this.xData),this.autoIncrement()),!0):!1},R.prototype.setData=function(a,c,d,D){c===void 0&&(c=!0);var E=this,N=E.points,W=N&&N.length||0,Y=E.options,q=E.chart,et=Y.dataSorting,st=E.xAxis,rt=Y.turboThreshold,it=this.xData,at=this.yData,tt=E.pointArrayMap;tt=tt&&tt.length;var X=Y.keys,G,$=0,J=1,ot=null;if(!q.options.chart.allowMutatingData){Y.data&&delete E.options.data,E.userOptions.data&&delete E.userOptions.data;var nt=U(!0,a)}if(a=nt||a||[],nt=a.length,et&&et.enabled&&(a=this.sortData(a)),q.options.chart.allowMutatingData&&D!==!1&&nt&&W&&!E.cropped&&!E.hasGroupedData&&E.visible&&!E.boosted&&(G=this.updateData(a,d)),!G){if(E.xIncrement=null,E.colorCounter=0,this.parallelArrays.forEach(function(pt){E[pt+"Data"].length=0}),rt&&nt>rt)if(ot=E.getFirstValidPoint(a),x(ot))for(d=0;d<nt;d++)it[d]=this.autoIncrement(),at[d]=a[d];else if(n(ot))if(tt)if(ot.length===tt)for(d=0;d<nt;d++)it[d]=this.autoIncrement(),at[d]=a[d];else for(d=0;d<nt;d++)D=a[d],it[d]=D[0],at[d]=D.slice(1,tt+1);else if(X&&($=X.indexOf("x"),J=X.indexOf("y"),$=0<=$?$:0,J=0<=J?J:1),ot.length===1&&(J=0),$===J)for(d=0;d<nt;d++)it[d]=this.autoIncrement(),at[d]=a[d][J];else for(d=0;d<nt;d++)D=a[d],it[d]=D[$],at[d]=D[J];else t(12,!1,q);else for(d=0;d<nt;d++)typeof a[d]<"u"&&(D={series:E},E.pointClass.prototype.applyOptions.apply(D,[a[d]]),E.updateParallelArrays(D,d));for(at&&L(at[0])&&t(14,!0,q),E.data=[],E.options.data=E.userOptions.data=a,d=W;d--;)N[d]&&N[d].destroy&&N[d].destroy();st&&(st.minRange=st.userMinRange),E.isDirty=q.isDirtyBox=!0,E.isDirtyData=!!N,d=!1}Y.legendType==="point"&&(this.processData(),this.generatePoints()),c&&q.redraw(d)},R.prototype.sortData=function(a){var c=this,d=c.options.dataSorting.sortKey||"y",D=function(E,N){return e(N)&&E.pointClass.prototype.optionsToObject.call({series:E},N)||{}};return a.forEach(function(E,N){a[N]=D(c,E),a[N].index=N},this),a.concat().sort(function(E,N){return E=u(d,E),N=u(d,N),N<E?-1:N>E?1:0}).forEach(function(E,N){E.x=N},this),c.linkedSeries&&c.linkedSeries.forEach(function(E){var N=E.options,W=N.data;N.dataSorting&&N.dataSorting.enabled||!W||(W.forEach(function(Y,q){W[q]=D(E,Y),a[q]&&(W[q].x=a[q].x,W[q].index=q)}),E.setData(W,!1))}),a},R.prototype.getProcessedData=function(a){var c=this.xAxis,d=this.options,D=d.cropThreshold,E=a||this.getExtremesFromAll||d.getExtremesFromAll,N=this.isCartesian;a=c&&c.val2lin,d=!(!c||!c.logarithmic);var W=0,Y=this.xData,q=this.yData,et=this.requireSorting,st=!1,rt=Y.length;if(c){st=c.getExtremes();var it=st.min,at=st.max;st=!(!c.categories||c.names.length)}if(N&&this.sorted&&!E&&(!D||rt>D||this.forceCrop)){if(Y[rt-1]<it||Y[0]>at)Y=[],q=[];else if(this.yData&&(Y[0]<it||Y[rt-1]>at)){var tt=this.cropData(this.xData,this.yData,it,at);Y=tt.xData,q=tt.yData,W=tt.start,tt=!0}}for(D=Y.length||1;--D;)if(c=d?a(Y[D])-a(Y[D-1]):Y[D]-Y[D-1],0<c&&(typeof X>"u"||c<X))var X=c;else 0>c&&et&&!st&&(t(15,!1,this.chart),et=!1);return{xData:Y,yData:q,cropped:tt,cropStart:W,closestPointRange:X}},R.prototype.processData=function(a){var c=this.xAxis;if(this.isCartesian&&!this.isDirty&&!c.isDirty&&!this.yAxis.isDirty&&!a)return!1;a=this.getProcessedData(),this.cropped=a.cropped,this.cropStart=a.cropStart,this.processedXData=a.xData,this.processedYData=a.yData,this.closestPointRange=this.basePointRange=a.closestPointRange,o(this,"afterProcessData")},R.prototype.cropData=function(a,c,d,D,E){var N=a.length,W,Y=0,q=N;for(E=r(E,this.cropShoulder),W=0;W<N;W++)if(a[W]>=d){Y=Math.max(0,W-E);break}for(d=W;d<N;d++)if(a[d]>D){q=d+E;break}return{xData:a.slice(Y,q),yData:c.slice(Y,q),start:Y,end:q}},R.prototype.generatePoints=function(){var a=this.options,c=this.processedData||a.data,d=this.processedXData,D=this.processedYData,E=this.pointClass,N=d.length,W=this.cropStart||0,Y=this.hasGroupedData,q=a.keys,et=[];a=a.dataGrouping&&a.dataGrouping.groupAll?W:0;var st,rt,it=this.data;if(!it&&!Y){var at=[];at.length=c.length,it=this.data=at}for(q&&Y&&(this.options.keys=!1),rt=0;rt<N;rt++){if(at=W+rt,Y){var tt=new E().init(this,[d[rt]].concat(O(D[rt])));tt.dataGroup=this.groupMap[a+rt],tt.dataGroup.options&&(tt.options=tt.dataGroup.options,p(tt,tt.dataGroup.options),delete tt.dataLabels)}else(tt=it[at])||typeof c[at]>"u"||(it[at]=tt=new E().init(this,c[at],d[rt]));tt&&(tt.index=Y?a+rt:at,et[rt]=tt)}if(this.options.keys=q,it&&(N!==(st=it.length)||Y))for(rt=0;rt<st;rt++)rt!==W||Y||(rt+=N),it[rt]&&(it[rt].destroyElements(),it[rt].plotX=void 0);this.data=it,this.points=et,o(this,"afterGeneratePoints")},R.prototype.getXExtremes=function(a){return{min:T(a),max:b(a)}},R.prototype.getExtremes=function(a,c){var d=this.xAxis,D=this.yAxis,E=this.processedXData||this.xData,N=[],W=this.requireSorting?this.cropShoulder:0;D=D?D.positiveValuesOnly:!1;var Y,q=0,et=0,st=0;a=a||this.stackedYData||this.processedYData||[];var rt=a.length;if(d){var it=d.getExtremes();q=it.min,et=it.max}for(Y=0;Y<rt;Y++){var at=E[Y];it=a[Y];var tt=(x(it)||n(it))&&(it.length||0<it||!D);if(at=c||this.getExtremesFromAll||this.options.getExtremesFromAll||this.cropped||!d||(E[Y+W]||at)>=q&&(E[Y-W]||at)<=et,tt&&at)if(tt=it.length)for(;tt--;)x(it[tt])&&(N[st++]=it[tt]);else N[st++]=it}return a={activeYData:N,dataMin:T(N),dataMax:b(N)},o(this,"afterGetExtremes",{dataExtremes:a}),a},R.prototype.applyExtremes=function(){var a=this.getExtremes();return this.dataMin=a.dataMin,this.dataMax=a.dataMax,a},R.prototype.getFirstValidPoint=function(a){for(var c=a.length,d=0,D=null;D===null&&d<c;)D=a[d],d++;return D},R.prototype.translate=function(){this.processedXData||this.processData(),this.generatePoints();var a=this.options,c=a.stacking,d=this.xAxis,D=d.categories,E=this.enabledDataSorting,N=this.yAxis,W=this.points,Y=W.length,q=this.pointPlacementToXValue(),et=!!q,st=a.threshold,rt=a.startFromThreshold?st:0,it=this.zoneAxis||"y",at,tt,X=Number.MAX_VALUE;for(at=0;at<Y;at++){var G=W[at],$=G.x,J=void 0,ot=void 0,nt=G.y,pt=G.low,dt=c&&N.stacking&&N.stacking.stacks[(this.negStacks&&nt<(rt?0:st)?"-":"")+this.stackKey];if((N.positiveValuesOnly&&!N.validatePositiveValue(nt)||d.positiveValuesOnly&&!d.validatePositiveValue($))&&(G.isNull=!0),G.plotX=tt=h(C(d.translate($,0,0,0,1,q,this.type==="flags"),-1e5,1e5)),c&&this.visible&&dt&&dt[$]){var yt=this.getStackIndicator(yt,$,this.index);!G.isNull&&yt.key&&(J=dt[$],ot=J.points[yt.key]),J&&n(ot)&&(pt=ot[0],nt=ot[1],pt===rt&&yt.key===dt[$].base&&(pt=r(x(st)?st:N.min)),N.positiveValuesOnly&&e(pt)&&0>=pt&&(pt=void 0),G.total=G.stackTotal=r(J.total),G.percentage=e(G.y)&&J.total?G.y/J.total*100:void 0,G.stackY=nt,this.irregularWidths||J.setOffset(this.pointXOffset||0,this.barW||0,void 0,void 0,void 0,this.xAxis))}if(G.yBottom=e(pt)?C(N.translate(pt,0,1,0,1),-1e5,1e5):void 0,this.dataModify&&(nt=this.dataModify.modifyValue(nt,at)),G.plotY=void 0,x(nt)&&(J=N.translate(nt,!1,!0,!1,!0),typeof J<"u"&&(G.plotY=C(J,-1e5,1e5))),G.isInside=this.isPointInside(G),G.clientX=et?h(d.translate($,0,0,0,1,q)):tt,G.negative=G[it]<(a[it+"Threshold"]||st||0),G.category=r(D&&D[G.x],G.x),!G.isNull&&G.visible!==!1){typeof ct<"u"&&(X=Math.min(X,Math.abs(tt-ct)));var ct=tt}G.zone=this.zones.length?G.getZone():void 0,!G.graphic&&this.group&&E&&(G.isNew=!0)}this.closestPointRangePx=X,o(this,"afterTranslate")},R.prototype.getValidPoints=function(a,c,d){var D=this.chart;return(a||this.points||[]).filter(function(E){return c&&!D.isInsidePlot(E.plotX,E.plotY,{inverted:D.inverted})?!1:E.visible!==!1&&(d||!E.isNull)})},R.prototype.getClipBox=function(){var a=this.chart,c=this.xAxis,d=this.yAxis,D=U(a.clipBox);return c&&c.len!==a.plotSizeX&&(D.width=c.len),d&&d.len!==a.plotSizeY&&(D.height=d.len),D},R.prototype.getSharedClipKey=function(){return this.sharedClipKey=(this.options.xAxis||0)+","+(this.options.yAxis||0)},R.prototype.setClip=function(){var a=this.chart,c=this.group,d=this.markerGroup,D=a.sharedClips;a=a.renderer;var E=this.getClipBox(),N=this.getSharedClipKey(),W=D[N];W?W.animate(E):D[N]=W=a.clipRect(E),c&&c.clip(this.options.clip===!1?void 0:W),d&&d.clip()},R.prototype.animate=function(a){var c=this.chart,d=this.group,D=this.markerGroup,E=c.inverted,N=g(this.options.animation),W=[this.getSharedClipKey(),N.duration,N.easing,N.defer].join(),Y=c.sharedClips[W],q=c.sharedClips[W+"m"];if(a&&d)N=this.getClipBox(),Y?Y.attr("height",N.height):(N.width=0,E&&(N.x=c.plotHeight),Y=c.renderer.clipRect(N),c.sharedClips[W]=Y,q=c.renderer.clipRect({x:-99,y:-99,width:E?c.plotWidth+199:99,height:E?99:c.plotHeight+199}),c.sharedClips[W+"m"]=q),d.clip(Y),D&&D.clip(q);else if(Y&&!Y.hasClass("highcharts-animating")){c=this.getClipBox();var et=N.step;D&&D.element.childNodes.length&&(N.step=function(st,rt){et&&et.apply(rt,arguments),rt.prop==="width"&&q&&q.element&&q.attr(E?"height":"width",st+99)}),Y.addClass("highcharts-animating").animate(c,N)}},R.prototype.afterAnimate=function(){var a=this;this.setClip(),_(this.chart.sharedClips,function(c,d,D){c&&!a.chart.container.querySelector('[clip-path="url(#'.concat(c.id,')"]'))&&(c.destroy(),delete D[d])}),this.finishedAnimating=!0,o(this,"afterAnimate")},R.prototype.drawPoints=function(a){a===void 0&&(a=this.points);var c=this.chart,d=c.styledMode,D=this.colorAxis,E=this.options.marker,N=this[this.specialGroup||"markerGroup"],W=this.xAxis,Y=r(E.enabled,!W||W.isRadial?!0:null,this.closestPointRangePx>=E.enabledThreshold*E.radius),q,et;if(E.enabled!==!1||this._hasPointMarkers)for(q=0;q<a.length;q++){var st=a[q],rt=(et=st.graphic)?"animate":"attr",it=st.marker||{},at=!!st.marker;if((Y&&typeof it.enabled>"u"||it.enabled)&&!st.isNull&&st.visible!==!1){var tt=r(it.symbol,this.symbol,"rect"),X=this.markerAttribs(st,st.selected&&"select");this.enabledDataSorting&&(st.startXPos=W.reversed?-(X.width||0):W.width);var G=st.isInside!==!1;!et&&G&&(0<(X.width||0)||st.hasImage)&&(st.graphic=et=c.renderer.symbol(tt,X.x,X.y,X.width,X.height,at?it:E).add(N),this.enabledDataSorting&&c.hasRendered&&(et.attr({x:st.startXPos}),rt="animate")),et&&rt==="animate"&&et[G?"show":"hide"](G).animate(X),et&&(it=this.pointAttribs(st,d||!st.selected?void 0:"select"),d?D&&et.css({fill:it.fill}):et[rt](it)),et&&et.addClass(st.getClassName(),!0)}else et&&(st.graphic=et.destroy())}},R.prototype.markerAttribs=function(a,c){var d=this.options,D=d.marker,E=a.marker||{},N=E.symbol||D.symbol,W={},Y=r(E.radius,D&&D.radius);return c&&(D=D.states[c],c=E.states&&E.states[c],Y=r(c&&c.radius,D&&D.radius,Y&&Y+(D&&D.radiusPlus||0))),a.hasImage=N&&N.indexOf("url")===0,a.hasImage&&(Y=0),a=a.pos(),x(Y)&&a&&(W.x=a[0]-Y,W.y=a[1]-Y,d.crisp&&(W.x=Math.floor(W.x))),Y&&(W.width=W.height=2*Y),W},R.prototype.pointAttribs=function(a,c){var d=this.options.marker,D=a&&a.options,E=D&&D.marker||{},N=D&&D.color,W=a&&a.color,Y=a&&a.zone&&a.zone.color,q=this.color;return a=r(E.lineWidth,d.lineWidth),D=1,q=N||Y||W||q,N=E.fillColor||d.fillColor||q,W=E.lineColor||d.lineColor||q,c=c||"normal",d=d.states[c]||{},c=E.states&&E.states[c]||{},a=r(c.lineWidth,d.lineWidth,a+r(c.lineWidthPlus,d.lineWidthPlus,0)),N=c.fillColor||d.fillColor||N,W=c.lineColor||d.lineColor||W,D=r(c.opacity,d.opacity,D),{stroke:W,"stroke-width":a,fill:N,opacity:D}},R.prototype.destroy=function(a){var c=this,d=c.chart,D=/AppleWebKit\/533/.test(k.navigator.userAgent),E=c.data||[],N,W,Y,q;for(o(c,"destroy",{keepEventsForUpdate:a}),this.removeEvents(a),(c.axisTypes||[]).forEach(function(et){(q=c[et])&&q.series&&(l(q.series,c),q.isDirty=q.forceRedraw=!0)}),c.legendItem&&c.chart.legend.destroyItem(c),W=E.length;W--;)(Y=E[W])&&Y.destroy&&Y.destroy();c.clips&&c.clips.forEach(function(et){return et.destroy()}),w.clearTimeout(c.animationTimeout),_(c,function(et,st){et instanceof z&&!et.survive&&(N=D&&st==="group"?"hide":"destroy",et[N]())}),d.hoverSeries===c&&(d.hoverSeries=void 0),l(d.series,c),d.orderSeries(),_(c,function(et,st){a&&st==="hcEvents"||delete c[st]})},R.prototype.applyZones=function(){var a=this,c=this.chart,d=c.renderer,D=this.zones,E=this.clips||[],N=this.graph,W=this.area,Y=Math.max(c.plotWidth,c.plotHeight),q=this[(this.zoneAxis||"y")+"Axis"],et=c.inverted,st,rt,it,at,tt,X,G,$,J=!1;if(D.length&&(N||W)&&q&&typeof q.min<"u"){var ot=q.reversed,nt=q.horiz;N&&!this.showLine&&N.hide(),W&&W.hide();var pt=q.getExtremes();D.forEach(function(dt,yt){st=ot?nt?c.plotWidth:0:nt?0:q.toPixels(pt.min)||0,st=C(r(rt,st),0,Y),rt=C(Math.round(q.toPixels(r(dt.value,pt.max),!0)||0),0,Y),J&&(st=rt=q.toPixels(pt.max)),at=Math.abs(st-rt),tt=Math.min(st,rt),X=Math.max(st,rt),q.isXAxis?(it={x:et?X:tt,y:0,width:at,height:Y},nt||(it.x=c.plotHeight-it.x)):(it={x:0,y:et?X:tt,width:Y,height:at},nt&&(it.y=c.plotWidth-it.y)),et&&d.isVML&&(it=q.isXAxis?{x:0,y:ot?tt:X,height:it.width,width:c.chartWidth}:{x:it.y-c.plotLeft-c.spacingBox.x,y:0,width:it.height,height:c.chartHeight}),E[yt]?E[yt].animate(it):E[yt]=d.clipRect(it),G=a["zone-area-"+yt],$=a["zone-graph-"+yt],N&&$&&$.clip(E[yt]),W&&G&&G.clip(E[yt]),J=dt.value>pt.max,a.resetZones&&rt===0&&(rt=void 0)}),this.clips=E}else a.visible&&(N&&N.show(),W&&W.show())},R.prototype.plotGroup=function(a,c,d,D,E){var N=this[a],W=!N;return d={visibility:d,zIndex:D||.1},typeof this.opacity>"u"||this.chart.styledMode||this.state==="inactive"||(d.opacity=this.opacity),W&&(this[a]=N=this.chart.renderer.g().add(E)),N.addClass("highcharts-"+c+" highcharts-series-"+this.index+" highcharts-"+this.type+"-series "+(e(this.colorIndex)?"highcharts-color-"+this.colorIndex+" ":"")+(this.options.className||"")+(N.hasClass("highcharts-tracker")?" highcharts-tracker":""),!0),N.attr(d)[W?"attr":"animate"](this.getPlotBox(c)),N},R.prototype.getPlotBox=function(a){var c=this.xAxis,d=this.yAxis,D=this.chart;return a=D.inverted&&!D.polar&&c&&this.invertible!==!1&&a==="series",D.inverted&&(c=d,d=this.xAxis),{translateX:c?c.left:D.plotLeft,translateY:d?d.top:D.plotTop,rotation:a?90:0,rotationOriginX:a?(c.len-d.len)/2:0,rotationOriginY:a?(c.len+d.len)/2:0,scaleX:a?-1:1,scaleY:1}},R.prototype.removeEvents=function(a){a||f(this),this.eventsToUnbind.length&&(this.eventsToUnbind.forEach(function(c){c()}),this.eventsToUnbind.length=0)},R.prototype.render=function(){var a=this,c=a.chart,d=a.options,D=g(d.animation),E=a.visible?"inherit":"hidden",N=d.zIndex,W=a.hasRendered,Y=c.seriesGroup;c=!a.finishedAnimating&&c.renderer.isSVG?D.duration:0,o(this,"render"),a.plotGroup("group","series",E,N,Y),a.markerGroup=a.plotGroup("markerGroup","markers",E,N,Y),d.clip!==!1&&a.setClip(),a.animate&&c&&a.animate(!0),a.drawGraph&&(a.drawGraph(),a.applyZones()),a.visible&&a.drawPoints(),a.drawDataLabels&&a.drawDataLabels(),a.redrawPoints&&a.redrawPoints(),a.drawTracker&&a.options.enableMouseTracking!==!1&&a.drawTracker(),a.animate&&c&&a.animate(),W||(c&&D.defer&&(c+=D.defer),a.animationTimeout=B(function(){a.afterAnimate()},c||0)),a.isDirty=!1,a.hasRendered=!0,o(a,"afterRender")},R.prototype.redraw=function(){var a=this.isDirty||this.isDirtyData;this.translate(),this.render(),a&&delete this.kdTree},R.prototype.searchPoint=function(a,c){var d=this.xAxis,D=this.yAxis,E=this.chart.inverted;return this.searchKDTree({clientX:E?d.len-a.chartY+d.pos:a.chartX-d.pos,plotY:E?D.len-a.chartX+D.pos:a.chartY-D.pos},c,a)},R.prototype.buildKDTree=function(a){function c(E,N,W){var Y=E&&E.length;if(Y){var q=d.kdAxisArray[N%W];return E.sort(function(et,st){return et[q]-st[q]}),Y=Math.floor(Y/2),{point:E[Y],left:c(E.slice(0,Y),N+1,W),right:c(E.slice(Y+1),N+1,W)}}}this.buildingKdTree=!0;var d=this,D=-1<d.options.findNearestPointBy.indexOf("y")?2:1;delete d.kdTree,B(function(){d.kdTree=c(d.getValidPoints(null,!d.directTouch),D,D),d.buildingKdTree=!1},d.options.kdNow||a&&a.type==="touchstart"?0:1)},R.prototype.searchKDTree=function(a,c,d){function D(q,et,st,rt){var it=et.point,at=E.kdAxisArray[st%rt],tt=it,X=e(q[N])&&e(it[N])?Math.pow(q[N]-it[N],2):null,G=e(q[W])&&e(it[W])?Math.pow(q[W]-it[W],2):null;return G=(X||0)+(G||0),it.dist=e(G)?Math.sqrt(G):Number.MAX_VALUE,it.distX=e(X)?Math.sqrt(X):Number.MAX_VALUE,at=q[at]-it[at],G=0>at?"left":"right",X=0>at?"right":"left",et[G]&&(G=D(q,et[G],st+1,rt),tt=G[Y]<tt[Y]?G:it),et[X]&&Math.sqrt(at*at)<tt[Y]&&(q=D(q,et[X],st+1,rt),tt=q[Y]<tt[Y]?q:tt),tt}var E=this,N=this.kdAxisArray[0],W=this.kdAxisArray[1],Y=c?"distX":"dist";if(c=-1<E.options.findNearestPointBy.indexOf("y")?2:1,this.kdTree||this.buildingKdTree||this.buildKDTree(d),this.kdTree)return D(a,this.kdTree,c,c)},R.prototype.pointPlacementToXValue=function(){var a=this.options,c=a.pointRange,d=this.xAxis;return a=a.pointPlacement,a==="between"&&(a=d.reversed?-.5:.5),x(a)?a*(c||d.pointRange):0},R.prototype.isPointInside=function(a){var c=this.chart,d=this.xAxis,D=this.yAxis;return typeof a.plotY<"u"&&typeof a.plotX<"u"&&0<=a.plotY&&a.plotY<=(D?D.len:c.plotHeight)&&0<=a.plotX&&a.plotX<=(d?d.len:c.plotWidth)},R.prototype.drawTracker=function(){var a=this,c=a.options,d=c.trackByArea,D=[].concat(d?a.areaPath:a.graphPath),E=a.chart,N=E.pointer,W=E.renderer,Y=E.options.tooltip.snap,q=a.tracker,et=function(rt){E.hoverSeries!==a&&a.onMouseOver()},st="rgba(192,192,192,"+(M?1e-4:.002)+")";q?q.attr({d:D}):a.graph&&(a.tracker=W.path(D).attr({visibility:a.visible?"inherit":"hidden",zIndex:2}).addClass(d?"highcharts-tracker-area":"highcharts-tracker-line").add(a.group),E.styledMode||a.tracker.attr({"stroke-linecap":"round","stroke-linejoin":"round",stroke:st,fill:d?st:"none","stroke-width":a.graph.strokeWidth()+(d?0:2*Y)}),[a.tracker,a.markerGroup,a.dataLabelsGroup].forEach(function(rt){rt&&(rt.addClass("highcharts-tracker").on("mouseover",et).on("mouseout",function(it){N.onTrackerMouseOut(it)}),c.cursor&&!E.styledMode&&rt.css({cursor:c.cursor}),S)&&rt.on("touchstart",et)})),o(this,"afterDrawTracker")},R.prototype.addPoint=function(a,c,d,D,E){var N=this.options,W=this.data,Y=this.chart,q=this.xAxis;q=q&&q.hasNames&&q.names;var et=N.data,st=this.xData,rt;c=r(c,!0);var it={series:this};this.pointClass.prototype.applyOptions.apply(it,[a]);var at=it.x,tt=st.length;if(this.requireSorting&&at<st[tt-1])for(rt=!0;tt&&st[tt-1]>at;)tt--;this.updateParallelArrays(it,"splice",tt,0,0),this.updateParallelArrays(it,tt),q&&it.name&&(q[at]=it.name),et.splice(tt,0,a),(rt||this.processedData)&&(this.data.splice(tt,0,null),this.processData()),N.legendType==="point"&&this.generatePoints(),d&&(W[0]&&W[0].remove?W[0].remove(!1):(W.shift(),this.updateParallelArrays(it,"shift"),et.shift())),E!==!1&&o(this,"addPoint",{point:it}),this.isDirtyData=this.isDirty=!0,c&&Y.redraw(D)},R.prototype.removePoint=function(a,c,d){var D=this,E=D.data,N=E[a],W=D.points,Y=D.chart,q=function(){W&&W.length===E.length&&W.splice(a,1),E.splice(a,1),D.options.data.splice(a,1),D.updateParallelArrays(N||{series:D},"splice",a,1),N&&N.destroy(),D.isDirty=!0,D.isDirtyData=!0,c&&Y.redraw()};y(d,Y),c=r(c,!0),N?N.firePointEvent("remove",null,q):q()},R.prototype.remove=function(a,c,d,D){function E(){N.destroy(D),W.isDirtyLegend=W.isDirtyBox=!0,W.linkSeries(),r(a,!0)&&W.redraw(c)}var N=this,W=N.chart;d!==!1?o(N,"remove",null,E):E()},R.prototype.update=function(a,c){a=s(a,this.userOptions),o(this,"update",{options:a});var d=this,D=d.chart,E=d.userOptions,N=d.initialType||d.type,W=D.options.plotOptions,Y=m[N].prototype,q=d.finishedAnimating&&{animation:!1},et={},st=["eventOptions","navigatorSeries","baseSeries"],rt=a.type||E.type||D.options.chart.type,it=!(this.hasDerivedData||rt&&rt!==this.type||typeof a.pointStart<"u"||typeof a.pointInterval<"u"||typeof a.relativeXValue<"u"||a.joinBy||a.mapData||d.hasOptionChanged("dataGrouping")||d.hasOptionChanged("pointStart")||d.hasOptionChanged("pointInterval")||d.hasOptionChanged("pointIntervalUnit")||d.hasOptionChanged("keys"));if(rt=rt||N,it&&(st.push("data","isDirtyData","points","processedData","processedXData","processedYData","xIncrement","cropped","_hasPointMarkers","_hasPointLabels","clips","nodes","layout","level","mapMap","mapData","minY","maxY","minX","maxX"),a.visible!==!1&&st.push("area","graph"),d.parallelArrays.forEach(function(tt){st.push(tt+"Data")}),a.data&&(a.dataSorting&&p(d.options.dataSorting,a.dataSorting),this.setData(a.data,!1))),a=U(E,q,{index:typeof E.index>"u"?d.index:E.index,pointStart:r(W&&W.series&&W.series.pointStart,E.pointStart,d.xData[0])},!it&&{data:d.options.data},a),it&&a.data&&(a.data=d.options.data),st=["group","markerGroup","dataLabelsGroup","transformGroup","shadowGroup"].concat(st),st.forEach(function(tt){st[tt]=d[tt],delete d[tt]}),W=!1,m[rt]){if(W=rt!==d.type,d.remove(!1,!1,!1,!0),W)if(Object.setPrototypeOf)Object.setPrototypeOf(d,m[rt].prototype);else{q=Object.hasOwnProperty.call(d,"hcEvents")&&d.hcEvents;for(at in Y)d[at]=void 0;p(d,m[rt].prototype),q?d.hcEvents=q:delete d.hcEvents}}else t(17,!0,D,{missingModuleFor:rt});if(st.forEach(function(tt){d[tt]=st[tt]}),d.init(D,a),it&&this.points){if(a=d.options,a.visible===!1)et.graphic=1,et.dataLabel=1;else if(!d._hasPointLabels){Y=a.marker;var at=a.dataLabels;E=E.marker||{},!Y||Y.enabled!==!1&&E.symbol===Y.symbol&&E.height===Y.height&&E.width===Y.width||(et.graphic=1),at&&at.enabled===!1&&(et.dataLabel=1)}for(E=0,Y=this.points;E<Y.length;E++)(at=Y[E])&&at.series&&(at.resolveColor(),Object.keys(et).length&&at.destroyElements(et),a.showInLegend===!1&&at.legendItem&&D.legend.destroyItem(at))}d.initialType=N,D.linkSeries(),W&&d.linkedSeries.length&&(d.isDirtyData=!0),o(this,"afterUpdate"),r(c,!0)&&D.redraw(it?void 0:!1)},R.prototype.setName=function(a){this.name=this.options.name=this.userOptions.name=a,this.chart.isDirtyLegend=!0},R.prototype.hasOptionChanged=function(a){var c=this.options[a],d=this.chart.options.plotOptions,D=this.userOptions[a];return D?c!==D:c!==r(d&&d[this.type]&&d[this.type][a],d&&d.series&&d.series[a],c)},R.prototype.onMouseOver=function(){var a=this.chart,c=a.hoverSeries;a.pointer.setHoverChartIndex(),c&&c!==this&&c.onMouseOut(),this.options.events.mouseOver&&o(this,"mouseOver"),this.setState("hover"),a.hoverSeries=this},R.prototype.onMouseOut=function(){var a=this.options,c=this.chart,d=c.tooltip,D=c.hoverPoint;c.hoverSeries=null,D&&D.onMouseOut(),this&&a.events.mouseOut&&o(this,"mouseOut"),!d||this.stickyTracking||d.shared&&!this.noSharedTooltip||d.hide(),c.series.forEach(function(E){E.setState("",!0)})},R.prototype.setState=function(a,c){var d=this,D=d.options,E=d.graph,N=D.inactiveOtherPoints,W=D.states,Y=r(W[a||"normal"]&&W[a||"normal"].animation,d.chart.options.chart.animation),q=D.lineWidth,et=0,st=D.opacity;if(a=a||"",d.state!==a&&([d.group,d.markerGroup,d.dataLabelsGroup].forEach(function(rt){rt&&(d.state&&rt.removeClass("highcharts-series-"+d.state),a&&rt.addClass("highcharts-series-"+a))}),d.state=a,!d.chart.styledMode)){if(W[a]&&W[a].enabled===!1)return;if(a&&(q=W[a].lineWidth||q+(W[a].lineWidthPlus||0),st=r(W[a].opacity,st)),E&&!E.dashstyle&&x(q))for(D={"stroke-width":q},E.animate(D,Y);d["zone-graph-"+et];)d["zone-graph-"+et].animate(D,Y),et+=1;N||[d.group,d.markerGroup,d.dataLabelsGroup,d.labelBySeries].forEach(function(rt){rt&&rt.animate({opacity:st},Y)})}c&&N&&d.points&&d.setAllPointsToState(a||void 0)},R.prototype.setAllPointsToState=function(a){this.points.forEach(function(c){c.setState&&c.setState(a)})},R.prototype.setVisible=function(a,c){var d=this,D=d.chart,E=D.options.chart.ignoreHiddenSeries,N=d.visible,W=(d.visible=a=d.options.visible=d.userOptions.visible=typeof a>"u"?!N:a)?"show":"hide";["group","dataLabelsGroup","markerGroup","tracker","tt"].forEach(function(Y){d[Y]&&d[Y][W]()}),(D.hoverSeries===d||(D.hoverPoint&&D.hoverPoint.series)===d)&&d.onMouseOut(),d.legendItem&&D.legend.colorizeItem(d,a),d.isDirty=!0,d.options.stacking&&D.series.forEach(function(Y){Y.options.stacking&&Y.visible&&(Y.isDirty=!0)}),d.linkedSeries.forEach(function(Y){Y.setVisible(a,!1)}),E&&(D.isDirtyBox=!0),o(d,W),c!==!1&&D.redraw()},R.prototype.show=function(){this.setVisible(!0)},R.prototype.hide=function(){this.setVisible(!1)},R.prototype.select=function(a){this.selected=a=this.options.selected=typeof a>"u"?!this.selected:a,this.checkbox&&(this.checkbox.checked=a),o(this,a?"select":"unselect")},R.prototype.shouldShowTooltip=function(a,c,d){return d===void 0&&(d={}),d.series=this,d.visiblePlotOnly=!0,this.chart.isInsidePlot(a,c,d)},R.defaultOptions=V,R.types=P.seriesTypes,R.registerType=P.registerSeriesType,R}(),p(j.prototype,{axisTypes:["xAxis","yAxis"],coll:"series",colorCounter:0,cropShoulder:1,directTouch:!1,drawLegendSymbol:Z.drawLineMarker,isCartesian:!0,kdAxisArray:["clientX","plotY"],parallelArrays:["x","y"],pointClass:Q,requireSorting:!0,sorted:!0}),P.series=j,j}),lt(I,"Extensions/ScrollablePlotArea.js",[I["Core/Animation/AnimationUtilities.js"],I["Core/Axis/Axis.js"],I["Core/Chart/Chart.js"],I["Core/Series/Series.js"],I["Core/Renderer/RendererRegistry.js"],I["Core/Utilities.js"]],function(j,H,F,K,Z,Q){var V=j.stop,P=Q.addEvent,z=Q.createElement,w=Q.defined,g=Q.merge,y=Q.pick;P(F,"afterSetChartSize",function(v){var A=this.options.chart.scrollablePlotArea,S=A&&A.minWidth;if(A=A&&A.minHeight,!this.renderer.forExport){if(S){if(this.scrollablePixelsX=S=Math.max(0,S-this.chartWidth)){this.scrollablePlotBox=this.renderer.scrollablePlotBox=g(this.plotBox),this.plotBox.width=this.plotWidth+=S,this.inverted?this.clipBox.height+=S:this.clipBox.width+=S;var M={1:{name:"right",value:S}}}}else A&&(this.scrollablePixelsY=S=Math.max(0,A-this.chartHeight),w(S)&&(this.scrollablePlotBox=this.renderer.scrollablePlotBox=g(this.plotBox),this.plotBox.height=this.plotHeight+=S,this.inverted?this.clipBox.width+=S:this.clipBox.height+=S,M={2:{name:"bottom",value:S}}));M&&!v.skipAxes&&this.axes.forEach(function(k){M[k.side]?k.getPlotLinePath=function(){var m=M[k.side].name,b=this[m];this[m]=b-M[k.side].value;var T=H.prototype.getPlotLinePath.apply(this,arguments);return this[m]=b,T}:(k.setAxisSize(),k.setAxisTranslation())})}}),P(F,"render",function(){this.scrollablePixelsX||this.scrollablePixelsY?(this.setUpScrolling&&this.setUpScrolling(),this.applyFixed()):this.fixedDiv&&this.applyFixed()}),F.prototype.setUpScrolling=function(){var v=this,A={WebkitOverflowScrolling:"touch",overflowX:"hidden",overflowY:"hidden"};this.scrollablePixelsX&&(A.overflowX="auto"),this.scrollablePixelsY&&(A.overflowY="auto"),this.scrollingParent=z("div",{className:"highcharts-scrolling-parent"},{position:"relative"},this.renderTo),this.scrollingContainer=z("div",{className:"highcharts-scrolling"},A,this.scrollingParent);var S;P(this.scrollingContainer,"scroll",function(){v.pointer&&(delete v.pointer.chartPosition,v.hoverPoint&&(S=v.hoverPoint),v.pointer.runPointActions(void 0,S,!0))}),this.innerContainer=z("div",{className:"highcharts-inner-container"},null,this.scrollingContainer),this.innerContainer.appendChild(this.container),this.setUpScrolling=null},F.prototype.moveFixedElements=function(){var v=this.container,A=this.fixedRenderer,S=".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(" "),M;this.scrollablePixelsX&&!this.inverted?M=".highcharts-yaxis":this.scrollablePixelsX&&this.inverted||this.scrollablePixelsY&&!this.inverted?M=".highcharts-xaxis":this.scrollablePixelsY&&this.inverted&&(M=".highcharts-yaxis"),M&&S.push(""+M+":not(.highcharts-radial-axis)",""+M+"-labels:not(.highcharts-radial-axis-labels)"),S.forEach(function(k){[].forEach.call(v.querySelectorAll(k),function(m){(m.namespaceURI===A.SVG_NS?A.box:A.box.parentNode).appendChild(m),m.style.pointerEvents="auto"})})},F.prototype.applyFixed=function(){var v=!this.fixedDiv,A=this.options.chart,S=A.scrollablePlotArea,M=Z.getRendererType();v?(this.fixedDiv=z("div",{className:"highcharts-fixed"},{position:"absolute",overflow:"hidden",pointerEvents:"none",zIndex:(A.style&&A.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=A=new M(this.fixedDiv,this.chartWidth,this.chartHeight,this.options.chart.style),this.scrollableMask=A.path().attr({fill:this.options.chart.backgroundColor||"#fff","fill-opacity":y(S.opacity,.85),zIndex:-1}).addClass("highcharts-scrollable-mask").add(),P(this,"afterShowResetZoom",this.moveFixedElements),P(this,"afterApplyDrilldown",this.moveFixedElements),P(this,"afterLayOutTitles",this.moveFixedElements)):this.fixedRenderer.setSize(this.chartWidth,this.chartHeight),(this.scrollableDirty||v)&&(this.scrollableDirty=!1,this.moveFixedElements()),A=this.chartWidth+(this.scrollablePixelsX||0),M=this.chartHeight+(this.scrollablePixelsY||0),V(this.container),this.container.style.width=A+"px",this.container.style.height=M+"px",this.renderer.boxWrapper.attr({width:A,height:M,viewBox:[0,0,A,M].join(" ")}),this.chartBackground.attr({width:A,height:M}),this.scrollingContainer.style.height=this.chartHeight+"px",v&&(S.scrollPositionX&&(this.scrollingContainer.scrollLeft=this.scrollablePixelsX*S.scrollPositionX),S.scrollPositionY&&(this.scrollingContainer.scrollTop=this.scrollablePixelsY*S.scrollPositionY)),M=this.axisOffset,v=this.plotTop-M[0]-1,S=this.plotLeft-M[3]-1,A=this.plotTop+this.plotHeight+M[2]+1,M=this.plotLeft+this.plotWidth+M[1]+1;var k=this.plotLeft+this.plotWidth-(this.scrollablePixelsX||0),m=this.plotTop+this.plotHeight-(this.scrollablePixelsY||0);v=this.scrollablePixelsX?[["M",0,v],["L",this.plotLeft-1,v],["L",this.plotLeft-1,A],["L",0,A],["Z"],["M",k,v],["L",this.chartWidth,v],["L",this.chartWidth,A],["L",k,A],["Z"]]:this.scrollablePixelsY?[["M",S,0],["L",S,this.plotTop-1],["L",M,this.plotTop-1],["L",M,0],["Z"],["M",S,m],["L",S,this.chartHeight],["L",M,this.chartHeight],["L",M,m],["Z"]]:[["M",0,0]],this.redrawTrigger!=="adjustHeight"&&this.scrollableMask.attr({d:v})},P(H,"afterInit",function(){this.chart.scrollableDirty=!0}),P(K,"show",function(){this.chart.scrollableDirty=!0})}),lt(I,"Core/Axis/Stacking/StackItem.js",[I["Core/FormatUtilities.js"],I["Core/Series/SeriesRegistry.js"],I["Core/Utilities.js"]],function(j,H,F){var K=j.format,Z=H.series,Q=F.destroyObjectProperties,V=F.pick,P=F.isNumber;return j=function(){function z(w,g,y,v,A){var S=w.chart.inverted,M=w.reversed;this.axis=w,w=this.isNegative=!!y!=!!M,this.options=g=g||{},this.x=v,this.cumulative=this.total=null,this.points={},this.hasValidPoints=!1,this.stack=A,this.rightCliff=this.leftCliff=0,this.alignOptions={align:g.align||(S?w?"left":"right":"center"),verticalAlign:g.verticalAlign||(S?"middle":w?"bottom":"top"),y:g.y,x:g.x},this.textAlign=g.textAlign||(S?w?"right":"left":"center")}return z.prototype.destroy=function(){Q(this,this.axis)},z.prototype.render=function(w){var g=this.axis.chart,y=this.options,v=y.format;v=v?K(v,this,g):y.formatter.call(this),this.label?this.label.attr({text:v,visibility:"hidden"}):(this.label=g.renderer.label(v,null,void 0,y.shape,void 0,void 0,y.useHTML,!1,"stack-labels"),v={r:y.borderRadius||0,text:v,padding:V(y.padding,5),visibility:"hidden"},g.styledMode||(v.fill=y.backgroundColor,v.stroke=y.borderColor,v["stroke-width"]=y.borderWidth,this.label.css(y.style||{})),this.label.attr(v),this.label.added||this.label.add(w)),this.label.labelrank=g.plotSizeY},z.prototype.setOffset=function(w,g,y,v,A,S){var M=this.alignOptions,k=this.axis,m=this.label,b=this.options,T=this.textAlign,C=k.chart;w=this.getStackBox({xOffset:w,width:g,boxBottom:y,boxTop:v,defaultX:A,xAxis:S}),A=M.verticalAlign,m&&w&&(g=m.getBBox(),y=m.padding,v=V(b.overflow,"justify")==="justify",M.x=b.x||0,M.y=b.y||0,A=this.adjustStackPosition({labelBox:g,verticalAlign:A,textAlign:T}),T=A.x,A=A.y,w.x-=T,w.y-=A,m.align(M,!1,w),(T=C.isInsidePlot(m.alignAttr.x+M.x+T,m.alignAttr.y+M.y+A))||(v=!1),v&&Z.prototype.justifyDataLabel.call(k,m,M,m.alignAttr,g,w),m.attr({x:m.alignAttr.x,y:m.alignAttr.y,rotation:b.rotation,rotationOriginX:g.width/2,rotationOriginY:g.height/2}),V(!v&&b.crop,!0)&&(T=P(m.x)&&P(m.y)&&C.isInsidePlot(m.x-y+m.width,m.y)&&C.isInsidePlot(m.x+y,m.y)),m[T?"show":"hide"]())},z.prototype.adjustStackPosition=function(w){var g=w.labelBox,y={bottom:0,middle:1,top:2,right:1,center:0,left:-1};return{x:g.width/2+g.width/2*y[w.textAlign],y:g.height/2*y[w.verticalAlign]}},z.prototype.getStackBox=function(w){var g=this.axis,y=g.chart,v=w.boxTop,A=w.defaultX,S=w.xOffset,M=w.width,k=w.boxBottom;return v=g.stacking.usePercentage?100:V(v,this.total,0),v=g.toPixels(v),w=V(A,(w.xAxis||y.xAxis[0]).toPixels(this.x))+S,g=g.toPixels(k||0),g=Math.abs(v-g),k=this.isNegative,y.inverted?{x:(k?v:v-g)-y.plotLeft,y:w-y.plotTop,width:g,height:M}:{x:w-y.plotLeft,y:(k?v-g:v)-y.plotTop,width:M,height:g}},z}(),j}),lt(I,"Core/Axis/Stacking/StackingAxis.js",[I["Core/Animation/AnimationUtilities.js"],I["Core/Axis/Axis.js"],I["Core/Series/SeriesRegistry.js"],I["Core/Axis/Stacking/StackItem.js"],I["Core/Utilities.js"]],function(j,H,F,K,Z){function Q(){var p=this,i=p.inverted;p.yAxis.forEach(function(o){o.stacking&&o.stacking.stacks&&o.hasVisibleSeries&&(o.stacking.oldStacks=o.stacking.stacks)}),p.series.forEach(function(o){var u=o.xAxis&&o.xAxis.options||{};!o.options.stacking||o.visible!==!0&&p.options.chart.ignoreHiddenSeries!==!1||(o.stackKey=[o.type,e(o.options.stack,""),i?u.top:u.left,i?u.height:u.width].join())})}function V(){var p=this.stacking;if(p){var i=p.stacks;h(i,function(o,u){b(o),i[u]=null}),p&&p.stackTotalGroup&&p.stackTotalGroup.destroy()}}function P(){this.coll!=="yAxis"||this.stacking||(this.stacking=new l(this))}function z(p,i,o,u){return!m(p)||p.x!==i||u&&p.stackKey!==u?p={x:i,index:0,key:u,stackKey:u}:p.index++,p.key=[o,i,p.index].join(),p}function w(){var p=this,i=p.stackKey,o=p.yAxis.stacking.stacks,u=p.processedXData,n=p[p.options.stacking+"Stacker"],x;n&&[i,"-"+i].forEach(function(L){for(var U=u.length,_,r;U--;)_=u[U],x=p.getStackIndicator(x,_,p.index,L),(r=(_=o[L]&&o[L][_])&&_.points[x.key])&&n.call(p,r,_,U)})}function g(p,i,o){i=i.total?100/i.total:0,p[0]=k(p[0]*i),p[1]=k(p[1]*i),this.stackedYData[o]=p[1]}function y(){var p=this.yAxis.stacking;this.options.centerInCategory&&(this.is("column")||this.is("columnrange"))&&!this.options.stacking&&1<this.chart.series.length?S.setStackedPoints.call(this,"group"):p&&h(p.stacks,function(i,o){o.slice(-5)==="group"&&(h(i,function(u){return u.destroy()}),delete p.stacks[o])})}function v(p){var i=this.chart,o=p||this.options.stacking;if(o&&(this.visible===!0||i.options.chart.ignoreHiddenSeries===!1)){var u=this.processedXData,n=this.processedYData,x=[],L=n.length,U=this.options,_=U.threshold,r=e(U.startFromThreshold&&_,0);U=U.stack,p=p?""+this.type+",".concat(o):this.stackKey;var f="-"+p,O=this.negStacks;i=o==="group"?i.yAxis[0]:this.yAxis;var B=i.stacking.stacks,R=i.stacking.oldStacks,a,c;for(i.stacking.stacksTouched+=1,c=0;c<L;c++){var d=u[c],D=n[c],E=this.getStackIndicator(E,d,this.index),N=E.key,W=(a=O&&D<(r?0:_))?f:p;B[W]||(B[W]={}),B[W][d]||(R[W]&&R[W][d]?(B[W][d]=R[W][d],B[W][d].total=null):B[W][d]=new K(i,i.options.stackLabels,!!a,d,U)),W=B[W][d],D!==null?(W.points[N]=W.points[this.index]=[e(W.cumulative,r)],m(W.cumulative)||(W.base=N),W.touched=i.stacking.stacksTouched,0<E.index&&this.singleStacks===!1&&(W.points[N][0]=W.points[this.index+","+d+",0"][0])):W.points[N]=W.points[this.index]=null,o==="percent"?(a=a?p:f,O&&B[a]&&B[a][d]?(a=B[a][d],W.total=a.total=Math.max(a.total,W.total)+Math.abs(D)||0):W.total=k(W.total+(Math.abs(D)||0))):o==="group"?(C(D)&&(D=D[0]),D!==null&&(W.total=(W.total||0)+1)):W.total=k(W.total+(D||0)),W.cumulative=o==="group"?(W.total||1)-1:e(W.cumulative,r)+(D||0),D!==null&&(W.points[N].push(W.cumulative),x[c]=W.cumulative,W.hasValidPoints=!0)}o==="percent"&&(i.stacking.usePercentage=!0),o!=="group"&&(this.stackedYData=x),i.stacking.oldStacks={}}}var A=j.getDeferredAnimation,S=F.series.prototype,M=Z.addEvent,k=Z.correctFloat,m=Z.defined,b=Z.destroyObjectProperties,T=Z.fireEvent,C=Z.isArray,s=Z.isNumber,h=Z.objectEach,e=Z.pick,l=function(){function p(i){this.oldStacks={},this.stacks={},this.stacksTouched=0,this.axis=i}return p.prototype.buildStacks=function(){var i=this.axis,o=i.series,u=i.options.reversedStacks,n=o.length,x;for(this.usePercentage=!1,x=n;x--;){var L=o[u?x:n-x-1];L.setStackedPoints(),L.setGroupedPoints()}for(x=0;x<n;x++)o[x].modifyStacks();T(i,"afterBuildStacks")},p.prototype.cleanStacks=function(){if(this.oldStacks)var i=this.stacks=this.oldStacks;h(i,function(o){h(o,function(u){u.cumulative=u.total})})},p.prototype.resetStacks=function(){var i=this;h(this.stacks,function(o){h(o,function(u,n){s(u.touched)&&u.touched<i.stacksTouched?(u.destroy(),delete o[n]):(u.total=null,u.cumulative=null)})})},p.prototype.renderStackTotals=function(){var i=this.axis,o=i.chart,u=o.renderer,n=this.stacks;i=A(o,i.options.stackLabels&&i.options.stackLabels.animation||!1);var x=this.stackTotalGroup=this.stackTotalGroup||u.g("stack-labels").attr({zIndex:6,opacity:0}).add();x.translate(o.plotLeft,o.plotTop),h(n,function(L){h(L,function(U){U.render(x)})}),x.animate({opacity:1},i)},p}(),t;return function(p){var i=[];p.compose=function(o,u,n){i.indexOf(o)===-1&&(i.push(o),M(o,"init",P),M(o,"destroy",V)),i.indexOf(u)===-1&&(i.push(u),u.prototype.getStacks=Q),i.indexOf(n)===-1&&(i.push(n),o=n.prototype,o.getStackIndicator=z,o.modifyStacks=w,o.percentStacker=g,o.setGroupedPoints=y,o.setStackedPoints=v)}}(t||(t={})),t}),lt(I,"Series/Line/LineSeries.js",[I["Core/Series/Series.js"],I["Core/Series/SeriesRegistry.js"],I["Core/Utilities.js"]],function(j,H,F){var K=this&&this.__extends||function(){var V=function(P,z){return V=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(w,g){w.__proto__=g}||function(w,g){for(var y in g)g.hasOwnProperty(y)&&(w[y]=g[y])},V(P,z)};return function(P,z){function w(){this.constructor=P}V(P,z),P.prototype=z===null?Object.create(z):(w.prototype=z.prototype,new w)}}(),Z=F.defined,Q=F.merge;return F=function(V){function P(){var z=V!==null&&V.apply(this,arguments)||this;return z.data=void 0,z.options=void 0,z.points=void 0,z}return K(P,V),P.prototype.drawGraph=function(){var z=this,w=this.options,g=(this.gappedPath||this.getGraphPath).call(this),y=this.chart.styledMode,v=[["graph","highcharts-graph"]];y||v[0].push(w.lineColor||this.color||"#cccccc",w.dashStyle),v=z.getZonesGraphs(v),v.forEach(function(A,S){var M=A[0],k=z[M],m=k?"animate":"attr";k?(k.endX=z.preventGraphAnimation?null:g.xMap,k.animate({d:g})):g.length&&(z[M]=k=z.chart.renderer.path(g).addClass(A[1]).attr({zIndex:1}).add(z.group)),k&&!y&&(M={stroke:A[2],"stroke-width":w.lineWidth||0,fill:z.fillGraph&&z.color||"none"},A[3]?M.dashstyle=A[3]:w.linecap!=="square"&&(M["stroke-linecap"]=M["stroke-linejoin"]="round"),k[m](M).shadow(2>S&&w.shadow)),k&&(k.startX=g.xMap,k.isArea=g.isArea)})},P.prototype.getGraphPath=function(z,w,g){var y=this,v=y.options,A=[],S=[],M,k=v.step;z=z||y.points;var m=z.reversed;return m&&z.reverse(),(k={right:1,center:2}[k]||k&&3)&&m&&(k=4-k),z=this.getValidPoints(z,!1,!(v.connectNulls&&!w&&!g)),z.forEach(function(b,T){var C=b.plotX,s=b.plotY,h=z[T-1];(b.leftCliff||h&&h.rightCliff)&&!g&&(M=!0),b.isNull&&!Z(w)&&0<T?M=!v.connectNulls:b.isNull&&!w?M=!0:(T===0||M?T=[["M",b.plotX,b.plotY]]:y.getPointSpline?T=[y.getPointSpline(z,b,T)]:k?(T=k===1?[["L",h.plotX,s]]:k===2?[["L",(h.plotX+C)/2,h.plotY],["L",(h.plotX+C)/2,s]]:[["L",C,h.plotY]],T.push(["L",C,s])):T=[["L",C,s]],S.push(b.x),k&&(S.push(b.x),k===2&&S.push(b.x)),A.push.apply(A,T),M=!1)}),A.xMap=S,y.graphPath=A},P.prototype.getZonesGraphs=function(z){return this.zones.forEach(function(w,g){g=["zone-graph-"+g,"highcharts-graph highcharts-zone-graph-"+g+" "+(w.className||"")],this.chart.styledMode||g.push(w.color||this.color,w.dashStyle||this.options.dashStyle),z.push(g)},this),z},P.defaultOptions=Q(j.defaultOptions,{}),P}(j),H.registerSeriesType("line",F),F}),lt(I,"Series/Area/AreaSeries.js",[I["Core/Color/Color.js"],I["Core/Legend/LegendSymbol.js"],I["Core/Series/SeriesRegistry.js"],I["Core/Utilities.js"]],function(j,H,F,K){var Z=this&&this.__extends||function(){var g=function(y,v){return g=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(A,S){A.__proto__=S}||function(A,S){for(var M in S)S.hasOwnProperty(M)&&(A[M]=S[M])},g(y,v)};return function(y,v){function A(){this.constructor=y}g(y,v),y.prototype=v===null?Object.create(v):(A.prototype=v.prototype,new A)}}(),Q=j.parse,V=F.seriesTypes.line;j=K.extend;var P=K.merge,z=K.objectEach,w=K.pick;return K=function(g){function y(){var v=g!==null&&g.apply(this,arguments)||this;return v.data=void 0,v.options=void 0,v.points=void 0,v}return Z(y,g),y.prototype.drawGraph=function(){this.areaPath=[],g.prototype.drawGraph.apply(this);var v=this,A=this.areaPath,S=this.options,M=[["area","highcharts-area",this.color,S.fillColor]];this.zones.forEach(function(k,m){M.push(["zone-area-"+m,"highcharts-area highcharts-zone-area-"+m+" "+k.className,k.color||v.color,k.fillColor||S.fillColor])}),M.forEach(function(k){var m=k[0],b={},T=v[m],C=T?"animate":"attr";T?(T.endX=v.preventGraphAnimation?null:A.xMap,T.animate({d:A})):(b.zIndex=0,T=v[m]=v.chart.renderer.path(A).addClass(k[1]).add(v.group),T.isArea=!0),v.chart.styledMode||(b.fill=w(k[3],Q(k[2]).setOpacity(w(S.fillOpacity,.75)).get())),T[C](b),T.startX=A.xMap,T.shiftUnit=S.step?2:1})},y.prototype.getGraphPath=function(v){var A=V.prototype.getGraphPath,S=this.options,M=S.stacking,k=this.yAxis,m=[],b=[],T=this.index,C=k.stacking.stacks[this.stackKey],s=S.threshold,h=Math.round(k.getThreshold(S.threshold));S=w(S.connectNulls,M==="percent");var e=function(u,n,x){var L=v[u];u=M&&C[L.x].points[T];var U=L[x+"Null"]||0;if(x=L[x+"Cliff"]||0,L=!0,x||U){var _=(U?u[0]:u[1])+x,r=u[0]+x;L=!!U}else!M&&v[n]&&v[n].isNull&&(_=r=s);typeof _<"u"&&(b.push({plotX:i,plotY:_===null?h:k.getThreshold(_),isNull:L,isCliff:!0}),m.push({plotX:i,plotY:r===null?h:k.getThreshold(r),doCurve:!1}))};v=v||this.points,M&&(v=this.getStackPoints(v));for(var l=0,t=v.length;l<t;++l){M||(v[l].leftCliff=v[l].rightCliff=v[l].leftNull=v[l].rightNull=void 0);var p=v[l].isNull,i=w(v[l].rectPlotX,v[l].plotX),o=M?w(v[l].yBottom,h):h;(!p||S)&&(S||e(l,l-1,"left"),p&&!M&&S||(b.push(v[l]),m.push({x:l,plotX:i,plotY:o})),S||e(l,l+1,"right"))}return e=A.call(this,b,!0,!0),m.reversed=!0,p=A.call(this,m,!0,!0),(o=p[0])&&o[0]==="M"&&(p[0]=["L",o[1],o[2]]),p=e.concat(p),p.length&&p.push(["Z"]),A=A.call(this,b,!1,S),p.xMap=e.xMap,this.areaPath=p,A},y.prototype.getStackPoints=function(v){var A=this,S=[],M=[],k=this.xAxis,m=this.yAxis,b=m.stacking.stacks[this.stackKey],T={},C=m.series,s=C.length,h=m.options.reversedStacks?1:-1,e=C.indexOf(A);if(v=v||this.points,this.options.stacking){for(var l=0;l<v.length;l++)v[l].leftNull=v[l].rightNull=void 0,T[v[l].x]=v[l];z(b,function(p,i){p.total!==null&&M.push(i)}),M.sort(function(p,i){return p-i});var t=C.map(function(p){return p.visible});M.forEach(function(p,i){var o=0,u,n;if(T[p]&&!T[p].isNull)S.push(T[p]),[-1,1].forEach(function(L){var U=L===1?"rightNull":"leftNull",_=b[M[i+L]],r=0;if(_)for(var f=e;0<=f&&f<s;){var O=C[f].index;u=_.points[O],u||(O===A.index?T[p][U]=!0:t[f]&&(n=b[p].points[O])&&(r-=n[1]-n[0])),f+=h}T[p][L===1?"rightCliff":"leftCliff"]=r});else{for(var x=e;0<=x&&x<s;){if(u=b[p].points[C[x].index]){o=u[1];break}x+=h}o=w(o,0),o=m.translate(o,0,1,0,1),S.push({isNull:!0,plotX:k.translate(p,0,0,0,1),x:p,plotY:o,yBottom:o})}})}return S},y.defaultOptions=P(V.defaultOptions,{threshold:0}),y}(V),j(K.prototype,{singleStacks:!1,drawLegendSymbol:H.drawRectangle}),F.registerSeriesType("area",K),K}),lt(I,"Series/Spline/SplineSeries.js",[I["Core/Series/SeriesRegistry.js"],I["Core/Utilities.js"]],function(j,H){var F=this&&this.__extends||function(){var V=function(P,z){return V=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(w,g){w.__proto__=g}||function(w,g){for(var y in g)g.hasOwnProperty(y)&&(w[y]=g[y])},V(P,z)};return function(P,z){function w(){this.constructor=P}V(P,z),P.prototype=z===null?Object.create(z):(w.prototype=z.prototype,new w)}}(),K=j.seriesTypes.line,Z=H.merge,Q=H.pick;return H=function(V){function P(){var z=V!==null&&V.apply(this,arguments)||this;return z.data=void 0,z.options=void 0,z.points=void 0,z}return F(P,V),P.prototype.getPointSpline=function(z,w,g){var y=w.plotX||0,v=w.plotY||0,A=z[g-1];if(g=z[g+1],A&&!A.isNull&&A.doCurve!==!1&&!w.isCliff&&g&&!g.isNull&&g.doCurve!==!1&&!w.isCliff){z=A.plotY||0;var S=g.plotX||0;g=g.plotY||0;var M=0,k=(1.5*y+(A.plotX||0))/2.5,m=(1.5*v+z)/2.5;S=(1.5*y+S)/2.5;var b=(1.5*v+g)/2.5;S!==k&&(M=(b-m)*(S-y)/(S-k)+v-b),m+=M,b+=M,m>z&&m>v?(m=Math.max(z,v),b=2*v-m):m<z&&m<v&&(m=Math.min(z,v),b=2*v-m),b>g&&b>v?(b=Math.max(g,v),m=2*v-b):b<g&&b<v&&(b=Math.min(g,v),m=2*v-b),w.rightContX=S,w.rightContY=b}return w=["C",Q(A.rightContX,A.plotX,0),Q(A.rightContY,A.plotY,0),Q(k,y,0),Q(m,v,0),y,v],A.rightContX=A.rightContY=void 0,w},P.defaultOptions=Z(K.defaultOptions),P}(K),j.registerSeriesType("spline",H),H}),lt(I,"Series/AreaSpline/AreaSplineSeries.js",[I["Series/Spline/SplineSeries.js"],I["Core/Legend/LegendSymbol.js"],I["Core/Series/SeriesRegistry.js"],I["Core/Utilities.js"]],function(j,H,F,K){var Z=this&&this.__extends||function(){var w=function(g,y){return w=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(v,A){v.__proto__=A}||function(v,A){for(var S in A)A.hasOwnProperty(S)&&(v[S]=A[S])},w(g,y)};return function(g,y){function v(){this.constructor=g}w(g,y),g.prototype=y===null?Object.create(y):(v.prototype=y.prototype,new v)}}(),Q=F.seriesTypes,V=Q.area;Q=Q.area.prototype;var P=K.extend,z=K.merge;return K=function(w){function g(){var y=w!==null&&w.apply(this,arguments)||this;return y.data=void 0,y.points=void 0,y.options=void 0,y}return Z(g,w),g.defaultOptions=z(j.defaultOptions,V.defaultOptions),g}(j),P(K.prototype,{getGraphPath:Q.getGraphPath,getStackPoints:Q.getStackPoints,drawGraph:Q.drawGraph,drawLegendSymbol:H.drawRectangle}),F.registerSeriesType("areaspline",K),K}),lt(I,"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"}}),lt(I,"Series/Column/ColumnSeries.js",[I["Core/Animation/AnimationUtilities.js"],I["Core/Color/Color.js"],I["Series/Column/ColumnSeriesDefaults.js"],I["Core/Globals.js"],I["Core/Legend/LegendSymbol.js"],I["Core/Series/Series.js"],I["Core/Series/SeriesRegistry.js"],I["Core/Utilities.js"]],function(j,H,F,K,Z,Q,V,P){var z=this&&this.__extends||function(){var s=function(h,e){return s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(l,t){l.__proto__=t}||function(l,t){for(var p in t)t.hasOwnProperty(p)&&(l[p]=t[p])},s(h,e)};return function(h,e){function l(){this.constructor=h}s(h,e),h.prototype=e===null?Object.create(e):(l.prototype=e.prototype,new l)}}(),w=j.animObject,g=H.parse,y=K.hasTouch;j=K.noop;var v=P.clamp,A=P.defined,S=P.extend,M=P.fireEvent,k=P.isArray,m=P.isNumber,b=P.merge,T=P.pick,C=P.objectEach;return P=function(s){function h(){var e=s!==null&&s.apply(this,arguments)||this;return e.borderWidth=void 0,e.data=void 0,e.group=void 0,e.options=void 0,e.points=void 0,e}return z(h,s),h.prototype.animate=function(e){var l=this,t=this.yAxis,p=l.options,i=this.chart.inverted,o={},u=i?"translateX":"translateY";if(e)o.scaleY=.001,e=v(t.toPixels(p.threshold),t.pos,t.pos+t.len),i?o.translateX=e-t.len:o.translateY=e,l.clipBox&&l.setClip(),l.group.attr(o);else{var n=Number(l.group.attr(u));l.group.animate({scaleY:1},S(w(l.options.animation),{step:function(x,L){l.group&&(o[u]=n+L.pos*(t.pos-n),l.group.attr(o))}}))}},h.prototype.init=function(e,l){s.prototype.init.apply(this,arguments);var t=this;e=t.chart,e.hasRendered&&e.series.forEach(function(p){p.type===t.type&&(p.isDirty=!0)})},h.prototype.getColumnMetrics=function(){var e=this,l=e.options,t=e.xAxis,p=e.yAxis,i=t.options.reversedStacks;i=t.reversed&&!i||!t.reversed&&i;var o={},u,n=0;l.grouping===!1?n=1:e.chart.series.forEach(function(_){var r=_.yAxis,f=_.options;if(_.type===e.type&&(_.visible||!e.chart.options.chart.ignoreHiddenSeries)&&p.len===r.len&&p.pos===r.pos){if(f.stacking&&f.stacking!=="group"){u=_.stackKey,typeof o[u]>"u"&&(o[u]=n++);var O=o[u]}else f.grouping!==!1&&(O=n++);_.columnIndex=O}});var x=Math.min(Math.abs(t.transA)*(t.ordinal&&t.ordinal.slope||l.pointRange||t.closestPointRange||t.tickInterval||1),t.len),L=x*l.groupPadding,U=(x-2*L)/(n||1);return l=Math.min(l.maxPointWidth||t.len,T(l.pointWidth,U*(1-2*l.pointPadding))),e.columnMetrics={width:l,offset:(U-l)/2+(L+((e.columnIndex||0)+(i?1:0))*U-x/2)*(i?-1:1),paddedWidth:U,columnCount:n},e.columnMetrics},h.prototype.crispCol=function(e,l,t,p){var i=this.chart,o=this.borderWidth,u=-(o%2?.5:0);return o=o%2?.5:1,i.inverted&&i.renderer.isVML&&(o+=1),this.options.crisp&&(t=Math.round(e+t)+u,e=Math.round(e)+u,t-=e),p=Math.round(l+p)+o,u=.5>=Math.abs(l)&&.5<p,l=Math.round(l)+o,p-=l,u&&p&&(--l,p+=1),{x:e,y:l,width:t,height:p}},h.prototype.adjustForMissingColumns=function(e,l,t,p){var i=this,o=this.options.stacking;if(!t.isNull&&1<p.columnCount){var u=this.yAxis.options.reversedStacks,n=0,x=u?0:-p.columnCount;C(this.yAxis.stacking&&this.yAxis.stacking.stacks,function(L){if(typeof t.x=="number"){var U=L[t.x.toString()];U&&(L=U.points[i.index],o?(L&&(n=x),U.hasValidPoints&&(u?x++:x--)):k(L)&&(L=Object.keys(U.points).filter(function(_){return!_.match(",")&&U.points[_]&&1<U.points[_].length}).map(parseFloat).sort(function(_,r){return r-_}),n=L.indexOf(i.index),x=L.length))}}),e=(t.plotX||0)+((x-1)*p.paddedWidth+l)/2-l-n*p.paddedWidth}return e},h.prototype.translate=function(){var e=this,l=e.chart,t=e.options,p=e.dense=2>e.closestPointRange*e.xAxis.transA;p=e.borderWidth=T(t.borderWidth,p?0:1);var i=e.xAxis,o=e.yAxis,u=t.threshold,n=e.translatedThreshold=o.getThreshold(u),x=T(t.minPointLength,5),L=e.getColumnMetrics(),U=L.width,_=e.pointXOffset=L.offset,r=e.dataMin,f=e.dataMax,O=e.barW=Math.max(U,1+2*p);l.inverted&&(n-=.5),t.pointPadding&&(O=Math.ceil(O)),Q.prototype.translate.apply(e),e.points.forEach(function(B){var R=T(B.yBottom,n),a=999+Math.abs(R),c=B.plotX||0;a=v(B.plotY,-a,o.len+a);var d=Math.min(a,R),D=Math.max(a,R)-d,E=U,N=c+_,W=O;x&&Math.abs(D)<x&&(D=x,c=!o.reversed&&!B.negative||o.reversed&&B.negative,m(u)&&m(f)&&B.y===u&&f<=u&&(o.min||0)<u&&(r!==f||(o.max||0)<=u)&&(c=!c),d=Math.abs(d-n)>x?R-x:n-(c?x:0)),A(B.options.pointWidth)&&(E=W=Math.ceil(B.options.pointWidth),N-=Math.round((E-U)/2)),t.centerInCategory&&(N=e.adjustForMissingColumns(N,E,B,L)),B.barX=N,B.pointWidth=E,B.tooltipPos=l.inverted?[v(o.len+o.pos-l.plotLeft-a,o.pos-l.plotLeft,o.len+o.pos-l.plotLeft),i.len+i.pos-l.plotTop-N-W/2,D]:[i.left-l.plotLeft+N+W/2,v(a+o.pos-l.plotTop,o.pos-l.plotTop,o.len+o.pos-l.plotTop),D],B.shapeType=e.pointClass.prototype.shapeType||"rect",B.shapeArgs=e.crispCol.apply(e,B.isNull?[N,n,W,0]:[N,d,W,D])})},h.prototype.drawGraph=function(){this.group[this.dense?"addClass":"removeClass"]("highcharts-dense-data")},h.prototype.pointAttribs=function(e,l){var t=this.options,p=this.pointAttrToOptions||{},i=p.stroke||"borderColor",o=p["stroke-width"]||"borderWidth",u=e&&e.color||this.color,n=e&&e[i]||t[i]||u;p=e&&e.options.dashStyle||t.dashStyle;var x=e&&e[o]||t[o]||this[o]||0,L=T(e&&e.opacity,t.opacity,1);if(e&&this.zones.length){var U=e.getZone();u=e.options.color||U&&(U.color||e.nonZonedColor)||this.color,U&&(n=U.borderColor||n,p=U.dashStyle||p,x=U.borderWidth||x)}return l&&e&&(e=b(t.states[l],e.options.states&&e.options.states[l]||{}),l=e.brightness,u=e.color||typeof l<"u"&&g(u).brighten(e.brightness).get()||u,n=e[i]||n,x=e[o]||x,p=e.dashStyle||p,L=T(e.opacity,L)),i={fill:u,stroke:n,"stroke-width":x,opacity:L},p&&(i.dashstyle=p),i},h.prototype.drawPoints=function(e){e===void 0&&(e=this.points);var l=this,t=this.chart,p=l.options,i=t.renderer,o=p.animationLimit||250,u;e.forEach(function(n){var x=n.graphic,L=!!x,U=x&&t.pointCount<o?"animate":"attr";m(n.plotY)&&n.y!==null?(u=n.shapeArgs,x&&n.hasNewShapeType()&&(x=x.destroy()),l.enabledDataSorting&&(n.startXPos=l.xAxis.reversed?-(u&&u.width||0):l.xAxis.width),x||(n.graphic=x=i[n.shapeType](u).add(n.group||l.group))&&l.enabledDataSorting&&t.hasRendered&&t.pointCount<o&&(x.attr({x:n.startXPos}),L=!0,U="animate"),x&&L&&x[U](b(u)),p.borderRadius&&x[U]({r:p.borderRadius}),t.styledMode||x[U](l.pointAttribs(n,n.selected&&"select")).shadow(n.allowShadow!==!1&&p.shadow,null,p.stacking&&!p.borderRadius),x&&(x.addClass(n.getClassName(),!0),x.attr({visibility:n.visible?"inherit":"hidden"}))):x&&(n.graphic=x.destroy())})},h.prototype.drawTracker=function(e){e===void 0&&(e=this.points);var l=this,t=l.chart,p=t.pointer,i=function(u){var n=p.getPointFromEvent(u);typeof n<"u"&&(p.isDirectTouch=!0,n.onMouseOver(u))},o;e.forEach(function(u){o=k(u.dataLabels)?u.dataLabels:u.dataLabel?[u.dataLabel]:[],u.graphic&&(u.graphic.element.point=u),o.forEach(function(n){n.div?n.div.point=u:n.element.point=u})}),l._hasTracking||(l.trackerGroups.forEach(function(u){l[u]&&(l[u].addClass("highcharts-tracker").on("mouseover",i).on("mouseout",function(n){p.onTrackerMouseOut(n)}),y&&l[u].on("touchstart",i),!t.styledMode&&l.options.cursor&&l[u].css({cursor:l.options.cursor}))}),l._hasTracking=!0),M(this,"afterDrawTracker")},h.prototype.remove=function(){var e=this,l=e.chart;l.hasRendered&&l.series.forEach(function(t){t.type===e.type&&(t.isDirty=!0)}),Q.prototype.remove.apply(e,arguments)},h.defaultOptions=b(Q.defaultOptions,F),h}(Q),S(P.prototype,{cropShoulder:0,directTouch:!0,drawLegendSymbol:Z.drawRectangle,getSymbol:j,negStacks:!0,trackerGroups:["group","dataLabelsGroup"]}),V.registerSeriesType("column",P),P}),lt(I,"Core/Series/DataLabel.js",[I["Core/Animation/AnimationUtilities.js"],I["Core/FormatUtilities.js"],I["Core/Utilities.js"]],function(j,H,F){var K=j.getDeferredAnimation,Z=H.format,Q=F.defined,V=F.extend,P=F.fireEvent,z=F.isArray,w=F.isString,g=F.merge,y=F.objectEach,v=F.pick,A=F.splat,S;return function(M){function k(e,l,t,p,i){var o=this,u=this.chart,n=this.isCartesian&&u.inverted,x=this.enabledDataSorting,L=e.plotX,U=e.plotY,_=t.rotation,r=t.align,f=Q(L)&&Q(U)&&u.isInsidePlot(L,Math.round(U),{inverted:n,paneCoordinates:!0,series:o});U=function(a){x&&o.xAxis&&!O&&o.setDataLabelStartPos(e,l,i,f,a)};var O=v(t.overflow,x?"none":"justify")==="justify";if(L=this.visible&&e.visible!==!1&&Q(L)&&(e.series.forceDL||x&&!O||f||v(t.inside,!!this.options.stacking)&&p&&u.isInsidePlot(L,n?p.x+1:p.y+p.height-1,{inverted:n,paneCoordinates:!0,series:o})),n=e.pos(),L&&n){_&&l.attr({align:r}),r=l.getBBox(!0);var B=[0,0],R=u.renderer.fontMetrics(u.styledMode?void 0:t.style.fontSize,l).b;p=V({x:n[0],y:Math.round(n[1]),width:0,height:0},p),V(t,{width:r.width,height:r.height}),_?(O=!1,B=u.renderer.rotCorr(R,_),R={x:p.x+(t.x||0)+p.width/2+B.x,y:p.y+(t.y||0)+{top:0,middle:.5,bottom:1}[t.verticalAlign]*p.height},B=[r.x-Number(l.attr("x")),r.y-Number(l.attr("y"))],U(R),l[i?"attr":"animate"](R)):(U(p),l.align(t,void 0,p),R=l.alignAttr),O&&0<=p.height?this.justifyDataLabel(l,t,R,r,p,i):v(t.crop,!0)&&(p=R.x,U=R.y,p+=B[0],U+=B[1],L=u.isInsidePlot(p,U,{paneCoordinates:!0,series:o})&&u.isInsidePlot(p+r.width,U+r.height,{paneCoordinates:!0,series:o})),t.shape&&!_&&l[i?"attr":"animate"]({anchorX:n[0],anchorY:n[1]})}i&&x&&(l.placed=!1),L||x&&!O?l.show():(l.hide(),l.placed=!1)}function m(e,l){var t=l.filter;return t?(l=t.operator,e=e[t.property],t=t.value,l===">"&&e>t||l==="<"&&e<t||l===">="&&e>=t||l==="<="&&e<=t||l==="=="&&e==t||l==="==="&&e===t):!0}function b(e){e===void 0&&(e=this.points);var l=this,t=l.chart,p=l.options,i=l.hasRendered||0,o=t.renderer,u=t.options.chart,n=u.backgroundColor;u=u.plotBackgroundColor;var x=o.getContrast(w(u)&&u||w(n)&&n||"#000000"),L=p.dataLabels,U;if(n=L.animation,n=L.defer?K(t,n,l):{defer:0,duration:0},L=C(C(t.options.plotOptions&&t.options.plotOptions.series&&t.options.plotOptions.series.dataLabels,t.options.plotOptions&&t.options.plotOptions[l.type]&&t.options.plotOptions[l.type].dataLabels),L),P(this,"drawDataLabels"),z(L)||L.enabled||l._hasPointLabels){var _=l.plotGroup("dataLabelsGroup","data-labels",i?"inherit":"hidden",L.zIndex||6);_.attr({opacity:+i}),!i&&(i=l.dataLabelsGroup)&&(l.visible&&_.show(),i[p.animation?"animate":"attr"]({opacity:1},n)),e.forEach(function(r){U=A(C(L,r.dlOptions||r.options&&r.options.dataLabels)),U.forEach(function(f,O){var B=f.enabled&&(!r.isNull||r.dataLabelOnNull)&&m(r,f),R=r.connectors?r.connectors[O]:r.connector,a=r.dataLabels?r.dataLabels[O]:r.dataLabel,c=!a,d=v(f.distance,r.labelDistance);if(B){var D=r.getLabelConfig(),E=v(f[r.formatPrefix+"Format"],f.format);D=Q(E)?Z(E,D,t):(f[r.formatPrefix+"Formatter"]||f.formatter).call(D,f),E=f.style;var N=f.rotation;t.styledMode||(E.color=v(f.color,E.color,l.color,"#000000"),E.color==="contrast"?(r.contrastColor=o.getContrast(r.color||l.color),E.color=!Q(d)&&f.inside||0>d||p.stacking?r.contrastColor:x):delete r.contrastColor,p.cursor&&(E.cursor=p.cursor));var W={r:f.borderRadius||0,rotation:N,padding:f.padding,zIndex:1};if(!t.styledMode){d=f.backgroundColor;var Y=f.borderColor;W.fill=d==="auto"?r.color:d,W.stroke=Y==="auto"?r.color:Y,W["stroke-width"]=f.borderWidth}y(W,function(q,et){typeof q>"u"&&delete W[et]})}!a||B&&Q(D)&&!!a.div==!!f.useHTML&&(a.rotation&&f.rotation||a.rotation===f.rotation)||(c=!0,r.dataLabel=a=r.dataLabel&&r.dataLabel.destroy(),r.dataLabels&&(r.dataLabels.length===1?delete r.dataLabels:delete r.dataLabels[O]),O||delete r.dataLabel,R&&(r.connector=r.connector.destroy(),r.connectors&&(r.connectors.length===1?delete r.connectors:delete r.connectors[O]))),B&&Q(D)?(a?W.text=D:(r.dataLabels=r.dataLabels||[],a=r.dataLabels[O]=N?o.text(D,0,0,f.useHTML).addClass("highcharts-data-label"):o.label(D,0,0,f.shape,null,null,f.useHTML,null,"data-label"),O||(r.dataLabel=a),a.addClass(" highcharts-data-label-color-"+r.colorIndex+" "+(f.className||"")+(f.useHTML?" highcharts-tracker":""))),a.options=f,a.attr(W),t.styledMode||a.css(E).shadow(f.shadow),(O=f[r.formatPrefix+"TextPath"]||f.textPath)&&!f.useHTML&&(a.setTextPath(r.getDataLabelPath&&r.getDataLabelPath(a)||r.graphic,O),r.dataLabelPath&&!O.enabled&&(r.dataLabelPath=r.dataLabelPath.destroy())),a.added||a.add(_),l.alignDataLabel(r,a,f,null,c)):a&&a.hide()})})}P(this,"afterDrawDataLabels")}function T(e,l,t,p,i,o){var u=this.chart,n=l.align,x=l.verticalAlign,L=e.box?0:e.padding||0,U=l.x;U=U===void 0?0:U;var _=l.y;_=_===void 0?0:_;var r=(t.x||0)+L;if(0>r){n==="right"&&0<=U?(l.align="left",l.inside=!0):U-=r;var f=!0}return r=(t.x||0)+p.width-L,r>u.plotWidth&&(n==="left"&&0>=U?(l.align="right",l.inside=!0):U+=u.plotWidth-r,f=!0),r=t.y+L,0>r&&(x==="bottom"&&0<=_?(l.verticalAlign="top",l.inside=!0):_-=r,f=!0),r=(t.y||0)+p.height-L,r>u.plotHeight&&(x==="top"&&0>=_?(l.verticalAlign="bottom",l.inside=!0):_+=u.plotHeight-r,f=!0),f&&(l.x=U,l.y=_,e.placed=!o,e.align(l,void 0,i)),f}function C(e,l){var t=[],p;if(z(e)&&!z(l))t=e.map(function(i){return g(i,l)});else if(z(l)&&!z(e))t=l.map(function(i){return g(e,i)});else if(z(e)||z(l))for(p=Math.max(e.length,l.length);p--;)t[p]=g(e[p],l[p]);else t=g(e,l);return t}function s(e,l,t,p,i){var o=this.chart,u=o.inverted,n=this.xAxis,x=n.reversed,L=u?l.height/2:l.width/2;e=(e=e.pointWidth)?e/2:0,l.startXPos=u?i.x:x?-L-e:n.width-L+e,l.startYPos=u?x?this.yAxis.height-L+e:-L-e:i.y,p?l.visibility==="hidden"&&(l.show(),l.attr({opacity:0}).animate({opacity:1})):l.attr({opacity:1}).animate({opacity:0},void 0,l.hide),o.hasRendered&&(t&&l.attr({x:l.startXPos,y:l.startYPos}),l.placed=!0)}var h=[];M.compose=function(e){if(h.indexOf(e)===-1){var l=e.prototype;h.push(e),l.alignDataLabel=k,l.drawDataLabels=b,l.justifyDataLabel=T,l.setDataLabelStartPos=s}}}(S||(S={})),S}),lt(I,"Series/Column/ColumnDataLabel.js",[I["Core/Series/DataLabel.js"],I["Core/Series/SeriesRegistry.js"],I["Core/Utilities.js"]],function(j,H,F){var K=H.series,Z=F.merge,Q=F.pick,V;return function(P){function z(g,y,v,A,S){var M=this.chart.inverted,k=g.series,m=(k.xAxis?k.xAxis.len:this.chart.plotSizeX)||0;k=(k.yAxis?k.yAxis.len:this.chart.plotSizeY)||0;var b=g.dlBox||g.shapeArgs,T=Q(g.below,g.plotY>Q(this.translatedThreshold,k)),C=Q(v.inside,!!this.options.stacking);b&&(A=Z(b),0>A.y&&(A.height+=A.y,A.y=0),b=A.y+A.height-k,0<b&&b<A.height&&(A.height-=b),M&&(A={x:k-A.y-A.height,y:m-A.x-A.width,width:A.height,height:A.width}),C||(M?(A.x+=T?0:A.width,A.width=0):(A.y+=T?A.height:0,A.height=0))),v.align=Q(v.align,!M||C?"center":T?"right":"left"),v.verticalAlign=Q(v.verticalAlign,M||C?"middle":T?"top":"bottom"),K.prototype.alignDataLabel.call(this,g,y,v,A,S),v.inside&&g.contrastColor&&y.css({color:g.contrastColor})}var w=[];P.compose=function(g){j.compose(K),w.indexOf(g)===-1&&(w.push(g),g.prototype.alignDataLabel=z)}}(V||(V={})),V}),lt(I,"Series/Bar/BarSeries.js",[I["Series/Column/ColumnSeries.js"],I["Core/Series/SeriesRegistry.js"],I["Core/Utilities.js"]],function(j,H,F){var K=this&&this.__extends||function(){var V=function(P,z){return V=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(w,g){w.__proto__=g}||function(w,g){for(var y in g)g.hasOwnProperty(y)&&(w[y]=g[y])},V(P,z)};return function(P,z){function w(){this.constructor=P}V(P,z),P.prototype=z===null?Object.create(z):(w.prototype=z.prototype,new w)}}(),Z=F.extend,Q=F.merge;return F=function(V){function P(){var z=V!==null&&V.apply(this,arguments)||this;return z.data=void 0,z.options=void 0,z.points=void 0,z}return K(P,V),P.defaultOptions=Q(j.defaultOptions,{}),P}(j),Z(F.prototype,{inverted:!0}),H.registerSeriesType("bar",F),F}),lt(I,"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}">\u25CF</span> <span style="font-size: 10px"> {series.name}</span><br/>',pointFormat:"x: <b>{point.x}</b><br/>y: <b>{point.y}</b><br/>"}}}),lt(I,"Series/Scatter/ScatterSeries.js",[I["Series/Scatter/ScatterSeriesDefaults.js"],I["Core/Series/SeriesRegistry.js"],I["Core/Utilities.js"]],function(j,H,F){var K=this&&this.__extends||function(){var w=function(g,y){return w=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(v,A){v.__proto__=A}||function(v,A){for(var S in A)A.hasOwnProperty(S)&&(v[S]=A[S])},w(g,y)};return function(g,y){function v(){this.constructor=g}w(g,y),g.prototype=y===null?Object.create(y):(v.prototype=y.prototype,new v)}}(),Z=H.seriesTypes,Q=Z.column,V=Z.line;Z=F.addEvent;var P=F.extend,z=F.merge;return F=function(w){function g(){var y=w!==null&&w.apply(this,arguments)||this;return y.data=void 0,y.options=void 0,y.points=void 0,y}return K(g,w),g.prototype.applyJitter=function(){var y=this,v=this.options.jitter,A=this.points.length;v&&this.points.forEach(function(S,M){["x","y"].forEach(function(k,m){var b="plot"+k.toUpperCase();if(v[k]&&!S.isNull){var T=y[k+"Axis"],C=v[k]*T.transA;if(T&&!T.isLog){var s=Math.max(0,S[b]-C);T=Math.min(T.len,S[b]+C),m=1e4*Math.sin(M+m*A),S[b]=s+(T-s)*(m-Math.floor(m)),k==="x"&&(S.clientX=S.plotX)}}})})},g.prototype.drawGraph=function(){this.options.lineWidth?w.prototype.drawGraph.call(this):this.graph&&(this.graph=this.graph.destroy())},g.defaultOptions=z(V.defaultOptions,j),g}(V),P(F.prototype,{drawTracker:Q.prototype.drawTracker,sorted:!1,requireSorting:!1,noSharedTooltip:!0,trackerGroups:["group","markerGroup","dataLabelsGroup"],takeOrdinalPosition:!1}),Z(F,"afterTranslate",function(){this.applyJitter()}),H.registerSeriesType("scatter",F),F}),lt(I,"Series/CenteredUtilities.js",[I["Core/Globals.js"],I["Core/Series/Series.js"],I["Core/Utilities.js"]],function(j,H,F){var K=j.deg2rad,Z=F.fireEvent,Q=F.isNumber,V=F.pick,P=F.relativeLength,z;return function(w){w.getCenter=function(){var g=this.options,y=this.chart,v=2*(g.slicedOffset||0),A=y.plotWidth-2*v,S=y.plotHeight-2*v,M=g.center,k=Math.min(A,S),m=g.thickness,b=g.size,T=g.innerSize||0;for(typeof b=="string"&&(b=parseFloat(b)),typeof T=="string"&&(T=parseFloat(T)),g=[V(M[0],"50%"),V(M[1],"50%"),V(b&&0>b?void 0:g.size,"100%"),V(T&&0>T?void 0:g.innerSize||0,"0%")],!y.angular||this instanceof H||(g[3]=0),M=0;4>M;++M)b=g[M],y=2>M||M===2&&/%$/.test(b),g[M]=P(b,[A,S,k,g[2]][M])+(y?v:0);return g[3]>g[2]&&(g[3]=g[2]),Q(m)&&2*m<g[2]&&0<m&&(g[3]=g[2]-2*m),Z(this,"afterGetCenter",{positions:g}),g},w.getStartAndEndRadians=function(g,y){return g=Q(g)?g:0,y=Q(y)&&y>g&&360>y-g?y:g+360,{start:K*(g+-90),end:K*(y+-90)}}}(z||(z={})),z}),lt(I,"Series/Pie/PiePoint.js",[I["Core/Animation/AnimationUtilities.js"],I["Core/Series/Point.js"],I["Core/Utilities.js"]],function(j,H,F){var K=this&&this.__extends||function(){var g=function(y,v){return g=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(A,S){A.__proto__=S}||function(A,S){for(var M in S)S.hasOwnProperty(M)&&(A[M]=S[M])},g(y,v)};return function(y,v){function A(){this.constructor=y}g(y,v),y.prototype=v===null?Object.create(v):(A.prototype=v.prototype,new A)}}(),Z=j.setAnimation,Q=F.addEvent,V=F.defined;j=F.extend;var P=F.isNumber,z=F.pick,w=F.relativeLength;return H=function(g){function y(){var v=g!==null&&g.apply(this,arguments)||this;return v.labelDistance=void 0,v.options=void 0,v.series=void 0,v}return K(y,g),y.prototype.getConnectorPath=function(){var v=this.labelPosition,A=this.series.options.dataLabels,S=this.connectorShapes,M=A.connectorShape;return S[M]&&(M=S[M]),M.call(this,{x:v.final.x,y:v.final.y,alignment:v.alignment},v.connectorPosition,A)},y.prototype.getTranslate=function(){return this.sliced?this.slicedTranslation:{translateX:0,translateY:0}},y.prototype.haloPath=function(v){var A=this.shapeArgs;return this.sliced||!this.visible?[]:this.series.chart.renderer.symbols.arc(A.x,A.y,A.r+v,A.r+v,{innerR:A.r-1,start:A.start,end:A.end})},y.prototype.init=function(){var v=this;g.prototype.init.apply(this,arguments),this.name=z(this.name,"Slice");var A=function(S){v.slice(S.type==="select")};return Q(this,"select",A),Q(this,"unselect",A),this},y.prototype.isValid=function(){return P(this.y)&&0<=this.y},y.prototype.setVisible=function(v,A){var S=this,M=this.series,k=M.chart,m=M.options.ignoreHiddenPoint;A=z(A,m),v!==this.visible&&(this.visible=this.options.visible=v=typeof v>"u"?!this.visible:v,M.options.data[M.data.indexOf(this)]=this.options,["graphic","dataLabel","connector","shadowGroup"].forEach(function(b){S[b]&&S[b][v?"show":"hide"](v)}),this.legendItem&&k.legend.colorizeItem(this,v),v||this.state!=="hover"||this.setState(""),m&&(M.isDirty=!0),A&&k.redraw())},y.prototype.slice=function(v,A,S){var M=this.series;Z(S,M.chart),z(A,!0),this.sliced=this.options.sliced=V(v)?v:!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())},y}(H),j(H.prototype,{connectorShapes:{fixedOffset:function(g,y,v){var A=y.breakAt;return y=y.touchingSliceAt,[["M",g.x,g.y],v.softConnector?["C",g.x+(g.alignment==="left"?-5:5),g.y,2*A.x-y.x,2*A.y-y.y,A.x,A.y]:["L",A.x,A.y],["L",y.x,y.y]]},straight:function(g,y){return y=y.touchingSliceAt,[["M",g.x,g.y],["L",y.x,y.y]]},crookedLine:function(g,y,v){y=y.touchingSliceAt;var A=this.series,S=A.center[0],M=A.chart.plotWidth,k=A.chart.plotLeft;A=g.alignment;var m=this.shapeArgs.r;return v=w(v.crookDistance,1),M=A==="left"?S+m+(M+k-S-m)*(1-v):k+(S-m)*v,v=["L",M,g.y],S=!0,(A==="left"?M>g.x||M<y.x:M<g.x||M>y.x)&&(S=!1),g=[["M",g.x,g.y]],S&&g.push(v),g.push(["L",y.x,y.y]),g}}}),H}),lt(I,"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}}}}),lt(I,"Series/Pie/PieSeries.js",[I["Series/CenteredUtilities.js"],I["Series/Column/ColumnSeries.js"],I["Core/Globals.js"],I["Core/Legend/LegendSymbol.js"],I["Series/Pie/PiePoint.js"],I["Series/Pie/PieSeriesDefaults.js"],I["Core/Series/Series.js"],I["Core/Series/SeriesRegistry.js"],I["Core/Renderer/SVG/Symbols.js"],I["Core/Utilities.js"]],function(j,H,F,K,Z,Q,V,P,z,w){var g=this&&this.__extends||function(){var b=function(T,C){return b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,h){s.__proto__=h}||function(s,h){for(var e in h)h.hasOwnProperty(e)&&(s[e]=h[e])},b(T,C)};return function(T,C){function s(){this.constructor=T}b(T,C),T.prototype=C===null?Object.create(C):(s.prototype=C.prototype,new s)}}(),y=j.getStartAndEndRadians;F=F.noop;var v=w.clamp,A=w.extend,S=w.fireEvent,M=w.merge,k=w.pick,m=w.relativeLength;return w=function(b){function T(){var C=b!==null&&b.apply(this,arguments)||this;return C.center=void 0,C.data=void 0,C.maxLabelDistance=void 0,C.options=void 0,C.points=void 0,C}return g(T,b),T.prototype.animate=function(C){var s=this,h=s.points,e=s.startAngleRad;C||h.forEach(function(l){var t=l.graphic,p=l.shapeArgs;t&&p&&(t.attr({r:k(l.startR,s.center&&s.center[3]/2),start:e,end:e}),t.animate({r:p.r,start:p.start,end:p.end},s.options.animation))})},T.prototype.drawEmpty=function(){var C=this.startAngleRad,s=this.endAngleRad,h=this.options;if(this.total===0&&this.center){var e=this.center[0],l=this.center[1];this.graph||(this.graph=this.chart.renderer.arc(e,l,this.center[1]/2,0,C,s).addClass("highcharts-empty-series").add(this.group)),this.graph.attr({d:z.arc(e,l,this.center[2]/2,0,{start:C,end:s,innerR:this.center[3]/2})}),this.chart.styledMode||this.graph.attr({"stroke-width":h.borderWidth,fill:h.fillColor||"none",stroke:h.color||"#cccccc"})}else this.graph&&(this.graph=this.graph.destroy())},T.prototype.drawPoints=function(){var C=this.chart.renderer;this.points.forEach(function(s){s.graphic&&s.hasNewShapeType()&&(s.graphic=s.graphic.destroy()),s.graphic||(s.graphic=C[s.shapeType](s.shapeArgs).add(s.series.group),s.delayedRendering=!0)})},T.prototype.generatePoints=function(){b.prototype.generatePoints.call(this),this.updateTotals()},T.prototype.getX=function(C,s,h){var e=this.center,l=this.radii?this.radii[h.index]||0:e[2]/2;return C=Math.asin(v((C-e[1])/(l+h.labelDistance),-1,1)),e[0]+(s?-1:1)*Math.cos(C)*(l+h.labelDistance)+(0<h.labelDistance?(s?-1:1)*this.options.dataLabels.padding:0)},T.prototype.hasData=function(){return!!this.processedXData.length},T.prototype.redrawPoints=function(){var C=this,s=C.chart,h=s.renderer,e=C.options.shadow,l,t,p,i;this.drawEmpty(),!e||C.shadowGroup||s.styledMode||(C.shadowGroup=h.g("shadow").attr({zIndex:-1}).add(C.group)),C.points.forEach(function(o){var u={};if(t=o.graphic,!o.isNull&&t){var n=void 0;i=o.shapeArgs,l=o.getTranslate(),s.styledMode||(n=o.shadowGroup,e&&!n&&(n=o.shadowGroup=h.g("shadow").add(C.shadowGroup)),n&&n.attr(l),p=C.pointAttribs(o,o.selected&&"select")),o.delayedRendering?(t.setRadialReference(C.center).attr(i).attr(l),s.styledMode||t.attr(p).attr({"stroke-linejoin":"round"}).shadow(e,n),o.delayedRendering=!1):(t.setRadialReference(C.center),s.styledMode||M(!0,u,p),M(!0,u,i,l),t.animate(u)),t.attr({visibility:o.visible?"inherit":"hidden"}),t.addClass(o.getClassName(),!0)}else t&&(o.graphic=t.destroy())})},T.prototype.sortByAngle=function(C,s){C.sort(function(h,e){return typeof h.angle<"u"&&(e.angle-h.angle)*s})},T.prototype.translate=function(C){S(this,"translate"),this.generatePoints();var s=this.options,h=s.slicedOffset,e=h+(s.borderWidth||0),l=y(s.startAngle,s.endAngle),t=this.startAngleRad=l.start;l=(this.endAngleRad=l.end)-t;var p=this.points,i=s.dataLabels.distance;s=s.ignoreHiddenPoint;var o=p.length,u,n=0;for(C||(this.center=C=this.getCenter()),u=0;u<o;u++){var x=p[u],L=t+n*l;!x.isValid()||s&&!x.visible||(n+=x.percentage/100);var U=t+n*l,_={x:C[0],y:C[1],r:C[2]/2,innerR:C[3]/2,start:Math.round(1e3*L)/1e3,end:Math.round(1e3*U)/1e3};x.shapeType="arc",x.shapeArgs=_,x.labelDistance=k(x.options.dataLabels&&x.options.dataLabels.distance,i),x.labelDistance=m(x.labelDistance,_.r),this.maxLabelDistance=Math.max(this.maxLabelDistance||0,x.labelDistance),U=(U+L)/2,U>1.5*Math.PI?U-=2*Math.PI:U<-Math.PI/2&&(U+=2*Math.PI),x.slicedTranslation={translateX:Math.round(Math.cos(U)*h),translateY:Math.round(Math.sin(U)*h)},_=Math.cos(U)*C[2]/2;var r=Math.sin(U)*C[2]/2;x.tooltipPos=[C[0]+.7*_,C[1]+.7*r],x.half=U<-Math.PI/2||U>Math.PI/2?1:0,x.angle=U,L=Math.min(e,x.labelDistance/5),x.labelPosition={natural:{x:C[0]+_+Math.cos(U)*x.labelDistance,y:C[1]+r+Math.sin(U)*x.labelDistance},final:{},alignment:0>x.labelDistance?"center":x.half?"right":"left",connectorPosition:{breakAt:{x:C[0]+_+Math.cos(U)*L,y:C[1]+r+Math.sin(U)*L},touchingSliceAt:{x:C[0]+_,y:C[1]+r}}}}S(this,"afterTranslate")},T.prototype.updateTotals=function(){var C=this.points,s=C.length,h=this.options.ignoreHiddenPoint,e,l=0;for(e=0;e<s;e++){var t=C[e];!t.isValid()||h&&!t.visible||(l+=t.y)}for(this.total=l,e=0;e<s;e++)t=C[e],t.percentage=0<l&&(t.visible||!h)?t.y/l*100:0,t.total=l},T.defaultOptions=M(V.defaultOptions,Q),T}(V),A(w.prototype,{axisTypes:[],directTouch:!0,drawGraph:void 0,drawLegendSymbol:K.drawRectangle,drawTracker:H.prototype.drawTracker,getCenter:j.getCenter,getSymbol:F,isCartesian:!1,noSharedTooltip:!0,pointAttribs:H.prototype.pointAttribs,pointClass:Z,requireSorting:!1,searchPoint:F,trackerGroups:["group","dataLabelsGroup"]}),P.registerSeriesType("pie",w),w}),lt(I,"Series/Pie/PieDataLabel.js",[I["Core/Series/DataLabel.js"],I["Core/Globals.js"],I["Core/Renderer/RendererUtilities.js"],I["Core/Series/SeriesRegistry.js"],I["Core/Utilities.js"]],function(j,H,F,K,Z){var Q=H.noop,V=F.distribute,P=K.series,z=Z.arrayMax,w=Z.clamp,g=Z.defined,y=Z.merge,v=Z.pick,A=Z.relativeLength,S;return function(M){function k(){var s=this,h=s.data,e=s.chart,l=s.options.dataLabels||{},t=l.connectorPadding,p=e.plotWidth,i=e.plotHeight,o=e.plotLeft,u=Math.round(e.chartWidth/3),n=s.center,x=n[2]/2,L=n[1],U=[[],[]],_=[0,0,0,0],r=s.dataLabelPositioners,f,O,B,R,a,c,d,D,E,N,W,Y;s.visible&&(l.enabled||s._hasPointLabels)&&(h.forEach(function(q){q.dataLabel&&q.visible&&q.dataLabel.shortened&&(q.dataLabel.attr({width:"auto"}).css({width:"auto",textOverflow:"clip"}),q.dataLabel.shortened=!1)}),P.prototype.drawDataLabels.apply(s),h.forEach(function(q){q.dataLabel&&(q.visible?(U[q.half].push(q),q.dataLabel._pos=null,!g(l.style.width)&&!g(q.options.dataLabels&&q.options.dataLabels.style&&q.options.dataLabels.style.width)&&q.dataLabel.getBBox().width>u&&(q.dataLabel.css({width:Math.round(.7*u)+"px"}),q.dataLabel.shortened=!0)):(q.dataLabel=q.dataLabel.destroy(),q.dataLabels&&q.dataLabels.length===1&&delete q.dataLabels))}),U.forEach(function(q,et){var st=q.length,rt=[],it;if(st){if(s.sortByAngle(q,et-.5),0<s.maxLabelDistance){var at=Math.max(0,L-x-s.maxLabelDistance),tt=Math.min(L+x+s.maxLabelDistance,e.plotHeight);q.forEach(function(X){0<X.labelDistance&&X.dataLabel&&(X.top=Math.max(0,L-x-X.labelDistance),X.bottom=Math.min(L+x+X.labelDistance,e.plotHeight),it=X.dataLabel.getBBox().height||21,X.distributeBox={target:X.labelPosition.natural.y-X.top+it/2,size:it,rank:X.y},rt.push(X.distributeBox))}),at=tt+it-at,V(rt,at,at/5)}for(W=0;W<st;W++){if(f=q[W],c=f.labelPosition,R=f.dataLabel,N=f.visible===!1?"hidden":"inherit",E=at=c.natural.y,rt&&g(f.distributeBox)&&(typeof f.distributeBox.pos>"u"?N="hidden":(d=f.distributeBox.size,E=r.radialDistributionY(f))),delete f.positionIndex,l.justify)D=r.justify(f,x,n);else switch(l.alignTo){case"connectors":D=r.alignToConnectors(q,et,p,o);break;case"plotEdges":D=r.alignToPlotEdges(R,et,p,o);break;default:D=r.radialDistributionX(s,f,E,at)}R._attr={visibility:N,align:c.alignment},Y=f.options.dataLabels||{},R._pos={x:D+v(Y.x,l.x)+({left:t,right:-t}[c.alignment]||0),y:E+v(Y.y,l.y)-10},c.final.x=D,c.final.y=E,v(l.crop,!0)&&(a=R.getBBox().width,at=null,D-a<t&&et===1?(at=Math.round(a-D+t),_[3]=Math.max(at,_[3])):D+a>p-t&&et===0&&(at=Math.round(D+a-p+t),_[1]=Math.max(at,_[1])),0>E-d/2?_[0]=Math.max(Math.round(-E+d/2),_[0]):E+d/2>i&&(_[2]=Math.max(Math.round(E+d/2-i),_[2])),R.sideOverflow=at)}}}),z(_)===0||this.verifyDataLabelOverflow(_))&&(this.placeDataLabels(),this.points.forEach(function(q){if(Y=y(l,q.options.dataLabels),O=v(Y.connectorWidth,1)){var et;B=q.connector,(R=q.dataLabel)&&R._pos&&q.visible&&0<q.labelDistance?(N=R._attr.visibility,(et=!B)&&(q.connector=B=e.renderer.path().addClass("highcharts-data-label-connector highcharts-color-"+q.colorIndex+(q.className?" "+q.className:"")).add(s.dataLabelsGroup),e.styledMode||B.attr({"stroke-width":O,stroke:Y.connectorColor||q.color||"#666666"})),B[et?"attr":"animate"]({d:q.getConnectorPath()}),B.attr("visibility",N)):B&&(q.connector=B.destroy())}}))}function m(){this.points.forEach(function(s){var h=s.dataLabel,e;h&&s.visible&&((e=h._pos)?(h.sideOverflow&&(h._attr.width=Math.max(h.getBBox().width-h.sideOverflow,0),h.css({width:h._attr.width+"px",textOverflow:(this.options.dataLabels.style||{}).textOverflow||"ellipsis"}),h.shortened=!0),h.attr(h._attr),h[h.moved?"animate":"attr"](e),h.moved=!0):h&&h.attr({y:-9999})),delete s.distributeBox},this)}function b(s){var h=this.center,e=this.options,l=e.center,t=e.minSize||80,p=e.size!==null;if(!p){if(l[0]!==null)var i=Math.max(h[2]-Math.max(s[1],s[3]),t);else i=Math.max(h[2]-s[1]-s[3],t),h[0]+=(s[3]-s[1])/2;l[1]!==null?i=w(i,t,h[2]-Math.max(s[0],s[2])):(i=w(i,t,h[2]-s[0]-s[2]),h[1]+=(s[0]-s[2])/2),i<h[2]?(h[2]=i,h[3]=Math.min(e.thickness?Math.max(0,i-2*e.thickness):Math.max(0,A(e.innerSize||0,i)),i),this.translate(h),this.drawDataLabels&&this.drawDataLabels()):p=!0}return p}var T=[],C={radialDistributionY:function(s){return s.top+s.distributeBox.pos},radialDistributionX:function(s,h,e,l){return s.getX(e<h.top+2||e>h.bottom-2?l:e,h.half,h)},justify:function(s,h,e){return e[0]+(s.half?-1:1)*(h+s.labelDistance)},alignToPlotEdges:function(s,h,e,l){return s=s.getBBox().width,h?s+l:e-s-l},alignToConnectors:function(s,h,e,l){var t=0,p;return s.forEach(function(i){p=i.dataLabel.getBBox().width,p>t&&(t=p)}),h?t+l:e-t-l}};M.compose=function(s){j.compose(P),T.indexOf(s)===-1&&(T.push(s),s=s.prototype,s.dataLabelPositioners=C,s.alignDataLabel=Q,s.drawDataLabels=k,s.placeDataLabels=m,s.verifyDataLabelOverflow=b)}}(S||(S={})),S}),lt(I,"Extensions/OverlappingDataLabels.js",[I["Core/Chart/Chart.js"],I["Core/Utilities.js"]],function(j,H){function F(w,g){var y=!1;if(w){var v=w.newOpacity;w.oldOpacity!==v&&(w.alignAttr&&w.placed?(w[v?"removeClass":"addClass"]("highcharts-data-label-hidden"),y=!0,w.alignAttr.opacity=v,w[w.isOld?"animate":"attr"](w.alignAttr,null,function(){g.styledMode||w.css({pointerEvents:v?"auto":"none"})}),Z(g,"afterHideOverlappingLabel")):w.attr({opacity:v})),w.isOld=!0}return y}var K=H.addEvent,Z=H.fireEvent,Q=H.isArray,V=H.isNumber,P=H.objectEach,z=H.pick;K(j,"render",function(){var w=this,g=[];(this.labelCollectors||[]).forEach(function(y){g=g.concat(y())}),(this.yAxis||[]).forEach(function(y){y.stacking&&y.options.stackLabels&&!y.options.stackLabels.allowOverlap&&P(y.stacking.stacks,function(v){P(v,function(A){A.label&&g.push(A.label)})})}),(this.series||[]).forEach(function(y){var v=y.options.dataLabels;y.visible&&(v.enabled!==!1||y._hasPointLabels)&&(v=function(A){return A.forEach(function(S){S.visible&&(Q(S.dataLabels)?S.dataLabels:S.dataLabel?[S.dataLabel]:[]).forEach(function(M){var k=M.options;M.labelrank=z(k.labelrank,S.labelrank,S.shapeArgs&&S.shapeArgs.height),k.allowOverlap?(M.oldOpacity=M.opacity,M.newOpacity=1,F(M,w)):g.push(M)})})},v(y.nodes||[]),v(y.points))}),this.hideOverlappingLabels(g)}),j.prototype.hideOverlappingLabels=function(w){var g=this,y=w.length,v=g.renderer,A,S,M,k=!1,m=function(C){var s,h=C.box?0:C.padding||0,e=s=0,l;if(C&&(!C.alignAttr||C.placed)){var t=C.alignAttr||{x:C.attr("x"),y:C.attr("y")},p=C.parentGroup;C.width||(s=C.getBBox(),C.width=s.width,C.height=s.height,s=v.fontMetrics(null,C.element).h);var i=C.width-2*h;return(l={left:"0",center:"0.5",right:"1"}[C.alignValue])?e=+l*i:V(C.x)&&Math.round(C.x)!==C.translateX&&(e=C.x-C.translateX),{x:t.x+(p.translateX||0)+h-(e||0),y:t.y+(p.translateY||0)+h-s,width:C.width-2*h,height:C.height-2*h}}};for(S=0;S<y;S++)(A=w[S])&&(A.oldOpacity=A.opacity,A.newOpacity=1,A.absoluteBox=m(A));for(w.sort(function(C,s){return(s.labelrank||0)-(C.labelrank||0)}),S=0;S<y;S++){var b=(m=w[S])&&m.absoluteBox;for(A=S+1;A<y;++A){var T=(M=w[A])&&M.absoluteBox;!b||!T||m===M||m.newOpacity===0||M.newOpacity===0||m.visibility==="hidden"||M.visibility==="hidden"||T.x>=b.x+b.width||T.x+T.width<=b.x||T.y>=b.y+b.height||T.y+T.height<=b.y||((m.labelrank<M.labelrank?m:M).newOpacity=0)}}w.forEach(function(C){F(C,g)&&(k=!0)}),k&&Z(g,"afterHideAllOverlappingLabels")}}),lt(I,"Core/Responsive.js",[I["Core/Utilities.js"]],function(j){var H=j.extend,F=j.find,K=j.isArray,Z=j.isObject,Q=j.merge,V=j.objectEach,P=j.pick,z=j.splat,w=j.uniqueKey,g;return function(y){var v=[];y.compose=function(S){return v.indexOf(S)===-1&&(v.push(S),H(S.prototype,A.prototype)),S};var A=function(){function S(){}return S.prototype.currentOptions=function(M){function k(T,C,s,h){var e;V(T,function(l,t){if(!h&&-1<m.collectionsWithUpdate.indexOf(t)&&C[t])for(l=z(l),s[t]=[],e=0;e<Math.max(l.length,C[t].length);e++)C[t][e]&&(l[e]===void 0?s[t][e]=C[t][e]:(s[t][e]={},k(l[e],C[t][e],s[t][e],h+1)));else Z(l)?(s[t]=K(l)?[]:{},k(l,C[t]||{},s[t],h+1)):s[t]=typeof C[t]>"u"?null:C[t]})}var m=this,b={};return k(M,this.options,b,0),b},S.prototype.matchResponsiveRule=function(M,k){var m=M.condition;(m.callback||function(){return this.chartWidth<=P(m.maxWidth,Number.MAX_VALUE)&&this.chartHeight<=P(m.maxHeight,Number.MAX_VALUE)&&this.chartWidth>=P(m.minWidth,0)&&this.chartHeight>=P(m.minHeight,0)}).call(this)&&k.push(M._id)},S.prototype.setResponsive=function(M,k){var m=this,b=this.options.responsive,T=this.currentResponsive,C=[];!k&&b&&b.rules&&b.rules.forEach(function(s){typeof s._id>"u"&&(s._id=w()),m.matchResponsiveRule(s,C)},this),k=Q.apply(void 0,C.map(function(s){return F((b||{}).rules||[],function(h){return h._id===s})}).map(function(s){return s&&s.chartOptions})),k.isResponsiveOptions=!0,C=C.toString()||void 0,C!==(T&&T.ruleIds)&&(T&&this.update(T.undoOptions,M,!0),C?(T=this.currentOptions(k),T.isResponsiveOptions=!0,this.currentResponsive={ruleIds:C,mergedOptions:k,undoOptions:T},this.update(k,M,!0)):this.currentResponsive=void 0)},S}()}(g||(g={})),g}),lt(I,"masters/highcharts.src.js",[I["Core/Globals.js"],I["Core/Utilities.js"],I["Core/Defaults.js"],I["Core/Animation/Fx.js"],I["Core/Animation/AnimationUtilities.js"],I["Core/Renderer/HTML/AST.js"],I["Core/FormatUtilities.js"],I["Core/Renderer/RendererUtilities.js"],I["Core/Renderer/SVG/SVGElement.js"],I["Core/Renderer/SVG/SVGRenderer.js"],I["Core/Renderer/HTML/HTMLElement.js"],I["Core/Renderer/HTML/HTMLRenderer.js"],I["Core/Axis/Axis.js"],I["Core/Axis/DateTimeAxis.js"],I["Core/Axis/LogarithmicAxis.js"],I["Core/Axis/PlotLineOrBand/PlotLineOrBand.js"],I["Core/Axis/Tick.js"],I["Core/Tooltip.js"],I["Core/Series/Point.js"],I["Core/Pointer.js"],I["Core/MSPointer.js"],I["Core/Legend/Legend.js"],I["Core/Chart/Chart.js"],I["Core/Axis/Stacking/StackingAxis.js"],I["Core/Axis/Stacking/StackItem.js"],I["Core/Series/Series.js"],I["Core/Series/SeriesRegistry.js"],I["Series/Column/ColumnSeries.js"],I["Series/Column/ColumnDataLabel.js"],I["Series/Pie/PieSeries.js"],I["Series/Pie/PieDataLabel.js"],I["Core/Series/DataLabel.js"],I["Core/Responsive.js"],I["Core/Color/Color.js"],I["Core/Time.js"]],function(j,H,F,K,Z,Q,V,P,z,w,g,y,v,A,S,M,k,m,b,T,C,s,h,e,l,t,p,i,o,u,n,x,L,U,_){return j.animate=Z.animate,j.animObject=Z.animObject,j.getDeferredAnimation=Z.getDeferredAnimation,j.setAnimation=Z.setAnimation,j.stop=Z.stop,j.timers=K.timers,j.AST=Q,j.Axis=v,j.Chart=h,j.chart=h.chart,j.Fx=K,j.Legend=s,j.PlotLineOrBand=M,j.Point=b,j.Pointer=C.isRequired()?C:T,j.Series=t,j.StackItem=l,j.SVGElement=z,j.SVGRenderer=w,j.Tick=k,j.Time=_,j.Tooltip=m,j.Color=U,j.color=U.parse,y.compose(w),g.compose(z),j.defaultOptions=F.defaultOptions,j.getOptions=F.getOptions,j.time=F.defaultTime,j.setOptions=F.setOptions,j.dateFormat=V.dateFormat,j.format=V.format,j.numberFormat=V.numberFormat,j.addEvent=H.addEvent,j.arrayMax=H.arrayMax,j.arrayMin=H.arrayMin,j.attr=H.attr,j.clearTimeout=H.clearTimeout,j.correctFloat=H.correctFloat,j.createElement=H.createElement,j.css=H.css,j.defined=H.defined,j.destroyObjectProperties=H.destroyObjectProperties,j.discardElement=H.discardElement,j.distribute=P.distribute,j.erase=H.erase,j.error=H.error,j.extend=H.extend,j.extendClass=H.extendClass,j.find=H.find,j.fireEvent=H.fireEvent,j.getMagnitude=H.getMagnitude,j.getStyle=H.getStyle,j.inArray=H.inArray,j.isArray=H.isArray,j.isClass=H.isClass,j.isDOMElement=H.isDOMElement,j.isFunction=H.isFunction,j.isNumber=H.isNumber,j.isObject=H.isObject,j.isString=H.isString,j.keys=H.keys,j.merge=H.merge,j.normalizeTickInterval=H.normalizeTickInterval,j.objectEach=H.objectEach,j.offset=H.offset,j.pad=H.pad,j.pick=H.pick,j.pInt=H.pInt,j.relativeLength=H.relativeLength,j.removeEvent=H.removeEvent,j.seriesType=p.seriesType,j.splat=H.splat,j.stableSort=H.stableSort,j.syncTimeout=H.syncTimeout,j.timeUnits=H.timeUnits,j.uniqueKey=H.uniqueKey,j.useSerialIds=H.useSerialIds,j.wrap=H.wrap,o.compose(i),x.compose(t),A.compose(v),S.compose(v),n.compose(u),M.compose(v),L.compose(h),e.compose(v,h,t),j}),I["masters/highcharts.src.js"]._modules=I,I["masters/highcharts.src.js"]})});var hi=ue((Ei,he)=>{(function(ht){typeof he=="object"&&he.exports?(ht.default=ht,he.exports=ht):typeof define=="function"&&define.amd?define("highcharts/modules/no-data-to-display",["highcharts"],function(lt){return ht(lt),ht.Highcharts=lt,ht}):ht(typeof Highcharts<"u"?Highcharts:void 0)})(function(ht){function lt(I,j,H,F){I.hasOwnProperty(j)||(I[j]=F.apply(null,H),typeof CustomEvent=="function"&&window.dispatchEvent(new CustomEvent("HighchartsModuleLoaded",{detail:{path:j,module:I[j]}})))}ht=ht?ht._modules:{},lt(ht,"Extensions/NoDataToDisplay.js",[ht["Core/Renderer/HTML/AST.js"],ht["Core/Chart/Chart.js"],ht["Core/Defaults.js"],ht["Core/Utilities.js"]],function(I,j,H,F){var K=H.getOptions;H=F.addEvent;var Z=F.extend;F=j.prototype,K=K(),Z(K.lang,{noData:"No data to display"}),K.noData={attr:{zIndex:1},position:{x:0,y:0,align:"center",verticalAlign:"middle"},style:{fontWeight:"bold",fontSize:"12px",color:"#666666"}},F.showNoData=function(Q){var V=this.options;Q=Q||V&&V.lang.noData||"",V=V&&(V.noData||{}),this.renderer&&(this.noDataLabel||(this.noDataLabel=this.renderer.label(Q,0,0,void 0,void 0,void 0,V.useHTML,void 0,"no-data").add()),this.styledMode||this.noDataLabel.attr(I.filterUserAttributes(V.attr||{})).css(V.style||{}),this.noDataLabel.align(Z(this.noDataLabel.getBBox(),V.position||{}),!1,"plotBox"))},F.hideNoData=function(){this.noDataLabel&&(this.noDataLabel=this.noDataLabel.destroy())},F.hasData=function(){for(var Q=this.series||[],V=Q.length;V--;)if(Q[V].hasData()&&!Q[V].options.isInternal)return!0;return this.loadingShown},H(j,"render",function(){this.hasData()?this.hideNoData():this.showNoData()})}),lt(ht,"masters/modules/no-data-to-display.src.js",[],function(){})})});var li=ue((Oi,le)=>{(function(ht){typeof le=="object"&&le.exports?(ht.default=ht,le.exports=ht):typeof define=="function"&&define.amd?define("highcharts/modules/boost",["highcharts"],function(lt){return ht(lt),ht.Highcharts=lt,ht}):ht(typeof Highcharts<"u"?Highcharts:void 0)})(function(ht){function lt(I,j,H,F){I.hasOwnProperty(j)||(I[j]=F.apply(null,H),typeof CustomEvent=="function"&&window.dispatchEvent(new CustomEvent("HighchartsModuleLoaded",{detail:{path:j,module:I[j]}})))}ht=ht?ht._modules:{},lt(ht,"Extensions/Boost/Boostables.js",[],function(){return"area areaspline arearange column columnrange bar line scatter heatmap bubble treemap".split(" ")}),lt(ht,"Extensions/Boost/BoostableMap.js",[ht["Extensions/Boost/Boostables.js"]],function(I){var j={};return I.forEach(function(H){j[H]=!0}),j}),lt(ht,"Extensions/Boost/BoostChart.js",[ht["Extensions/Boost/BoostableMap.js"],ht["Core/Utilities.js"]],function(I,j){function H(P){var z=P.series,w=P.boost=P.boost||{},g=P.options.boost||{},y=Q(g.seriesThreshold,50);if(z.length>=y)return!0;if(z.length===1)return!1;if(g=g.allowForce,typeof g>"u")for(g=!0,y=0,P=P.xAxis;y<P.length;y++){var v=P[y];if(Q(v.min,-1/0)>Q(v.dataMin,-1/0)||Q(v.max,1/0)<Q(v.dataMax,1/0)){g=!1;break}}if(typeof w.forceChartBoost<"u"){if(g)return w.forceChartBoost;w.forceChartBoost=void 0}for(var A=y=P=0;A<z.length;A++){var S=z[A];v=S.options,v.boostThreshold!==0&&S.visible!==!1&&S.type!=="heatmap"&&(I[S.type]&&++P,K(S.processedXData,v.data,S.points)>=(v.boostThreshold||Number.MAX_VALUE)&&++y)}return w.forceChartBoost=g&&(P===z.length&&0<y||5<y),w.forceChartBoost}function F(P){Z(P,"predraw",function(){P.boost=P.boost||{},P.boost.forceChartBoost=void 0,P.boosted=!1,P.boost.clear&&P.boost.clear(),P.boost.canvas&&P.boost.wgl&&H(P)&&P.boost.wgl.allocateBuffer(P),P.boost.markerGroup&&P.xAxis&&0<P.xAxis.length&&P.yAxis&&0<P.yAxis.length&&P.boost.markerGroup.translate(P.xAxis[0].pos,P.yAxis[0].pos)}),Z(P,"render",function(){P.boost&&P.boost.wgl&&H(P)&&P.boost.wgl.render(P)});var z=-1,w=-1;Z(P.pointer,"afterGetHoverData",function(){var g=P.hoverSeries;if(P.boost=P.boost||{},P.boost.markerGroup&&g){var y=P.inverted?g.yAxis:g.xAxis;g=P.inverted?g.xAxis:g.yAxis,(y&&y.pos!==z||g&&g.pos!==w)&&(P.boost.markerGroup.translate(y.pos,g.pos),z=y.pos,w=g.pos)}})}function K(){for(var P=[],z=0;z<arguments.length;z++)P[z]=arguments[z];var w=-Number.MAX_VALUE;return P.forEach(function(g){if(typeof g<"u"&&g!==null&&typeof g.length<"u"&&0<g.length)return w=g.length,!0}),w}var Z=j.addEvent,Q=j.pick,V=[];return{compose:function(P,z){return z&&V.indexOf(P)===-1&&(V.push(P),P.prototype.callbacks.push(F)),P},getBoostClipRect:function(P,z){var w={x:P.plotLeft,y:P.plotTop,width:P.plotWidth,height:P.plotHeight};return z===P&&(z=P.inverted?P.xAxis:P.yAxis,1>=z.length?(w.y=Math.min(z[0].pos,w.y),w.height=z[0].pos-P.plotTop+z[0].len):w.height=P.plotHeight),w},isChartSeriesBoosting:H}}),lt(ht,"Extensions/Boost/WGLDrawMode.js",[],function(){return{area:"LINES",arearange:"LINES",areaspline:"LINES",column:"LINES",columnrange:"LINES",bar:"LINES",line:"LINE_STRIP",scatter:"POINTS",heatmap:"TRIANGLES",treemap:"TRIANGLES",bubble:"POINTS"}}),lt(ht,"Extensions/Boost/WGLShader.js",[ht["Core/Utilities.js"]],function(I){var j=I.clamp,H=I.error,F=I.pick;return function(){function K(Z){this.errors=[],this.uLocations={},(this.gl=Z)&&this.createShader()}return K.prototype.bind=function(){this.gl&&this.shaderProgram&&this.gl.useProgram(this.shaderProgram)},K.prototype.createShader=function(){var Z=this,Q=this.stringToProgram(`#version 100
3
3
  #define LN10 2.302585092994046
4
4
  precision highp float;