/** * Highcharts JS v11.2.0 (2023-10-30) * * Accessibility module * * (c) 2010-2021 Highsoft AS * Author: Oystein Moseng * * License: www.highcharts.com/license */!function(t){"object"==typeof module&&module.exports?(t.default=t,module.exports=t):"function"==typeof define&&define.amd?define("highcharts/modules/accessibility",["highcharts"],function(e){return t(e),t.Highcharts=e,t}):t("undefined"!=typeof Highcharts?Highcharts:void 0)}(function(t){"use strict";var e=t?t._modules:{};function i(t,e,i,n){t.hasOwnProperty(e)||(t[e]=n.apply(null,i),"function"==typeof CustomEvent&&window.dispatchEvent(new CustomEvent("HighchartsModuleLoaded",{detail:{path:e,module:t[e]}})))}i(e,"Accessibility/Utils/HTMLUtilities.js",[e["Core/Globals.js"],e["Core/Utilities.js"]],function(t,e){var i=t.doc,n=t.win,o=e.css,r=n.EventTarget&&new n.EventTarget||"none";function s(t){if("function"==typeof n.MouseEvent)return new n.MouseEvent(t.type,t);if(i.createEvent){var e=i.createEvent("MouseEvent");if(e.initMouseEvent)return e.initMouseEvent(t.type,t.bubbles,t.cancelable,t.view||n,t.detail,t.screenX,t.screenY,t.clientX,t.clientY,t.ctrlKey,t.altKey,t.shiftKey,t.metaKey,t.button,t.relatedTarget),e}return a(t.type)}function a(t,e,o){var s=e||{x:0,y:0};if("function"==typeof n.MouseEvent)return new n.MouseEvent(t,{bubbles:!0,cancelable:!0,composed:!0,button:0,buttons:1,relatedTarget:o||r,view:n,detail:"click"===t?1:0,screenX:s.x,screenY:s.y,clientX:s.x,clientY:s.y});if(i.createEvent){var a=i.createEvent("MouseEvent");if(a.initMouseEvent)return a.initMouseEvent(t,!0,!0,n,"click"===t?1:0,s.x,s.y,s.x,s.y,!1,!1,!1,!1,0,null),a}return{type:t}}return{addClass:function(t,e){t.classList?t.classList.add(e):0>t.className.indexOf(e)&&(t.className+=" "+e)},cloneMouseEvent:s,cloneTouchEvent:function(t){var e=function(t){for(var e=[],i=0;i/g,">").replace(/"/g,""").replace(/'/g,"'").replace(/\//g,"/")},getElement:function(t){return i.getElementById(t)},getFakeMouseEvent:a,getHeadingTagNameForElement:function(t){var e=function(t){return"h"+Math.min(6,parseInt(t.slice(1),10)+1)},i=function(t){return/H[1-6]/.test(t)},n=function(t){for(var e=t;e=e.previousSibling;){var n=e.tagName||"";if(i(n))return n}return""},o=function(t){var r=n(t);if(r)return e(r);var s=t.parentElement;if(!s)return"p";var a=s.tagName;return i(a)?e(a):o(s)};return o(t)},removeChildNodes:function(t){for(;t.lastChild;)t.removeChild(t.lastChild)},removeClass:function(t,e){t.classList?t.classList.remove(e):t.className=t.className.replace(RegExp(e,"g"),"")},removeElement:function(t){t&&t.parentNode&&t.parentNode.removeChild(t)},reverseChildNodes:function(t){for(var e=t.childNodes.length;e--;)t.appendChild(t.childNodes[e])},simulatedEventTarget:r,stripHTMLTagsFromString:function(t,e){return void 0===e&&(e=!1),"string"==typeof t?e?t.replace(/<\/?[^>]+(>|$)/g,""):t.replace(/<\/?(?!\s)[^>]+(>|$)/g,""):t},visuallyHideElement:function(t){o(t,{position:"absolute",width:"1px",height:"1px",overflow:"hidden",whiteSpace:"nowrap",clip:"rect(1px, 1px, 1px, 1px)",marginTop:"-3px","-ms-filter":"progid:DXImageTransform.Microsoft.Alpha(Opacity=1)",filter:"alpha(opacity=1)",opacity:.01})}}}),i(e,"Accessibility/A11yI18n.js",[e["Core/Templating.js"],e["Core/Utilities.js"]],function(t,e){var i,n=t.format,o=e.getNestedProperty,r=e.pick;return function(t){var i=[];function s(t,e,i){var s,a,l=[],c=0;do s=function(t,e){var i=t.slice(e||0),n=i.indexOf("{"),o=i.indexOf("}");if(n>-1&&o>n)return{statement:i.substring(n+1,o),begin:e+n+1,end:e+o}}(t,c),(a=t.substring(c,s&&s.begin-1)).length&&l.push({value:a,type:"constant"}),s&&l.push({value:s.statement,type:"statement"}),c=s?s.end+1:c+1;while(s);return l.forEach(function(t){"statement"===t.type&&(t.value=function(t,e){var i,n,s=t.indexOf("#each("),a=t.indexOf("#plural("),l=t.indexOf("["),c=t.indexOf("]");if(s>-1){var h=t.slice(s).indexOf(")")+s,d=t.substring(0,s),u=t.substring(h+1),p=t.substring(s+6,h).split(","),g=Number(p[1]),m=void 0;if(n="",i=o(p[0],e)){m=(g=isNaN(g)?i.length:g)<0?i.length+g:Math.min(g,i.length);for(var f=0;f-1){var v,y=t.slice(a).indexOf(")")+a,b=t.substring(a+8,y).split(",");switch(Number(o(b[0],e))){case 0:n=r(b[4],b[1]);break;case 1:n=r(b[2],b[1]);break;case 2:n=r(b[3],b[1]);break;default:n=b[1]}return n?(v=n).trim&&v.trim()||v.replace(/^\s+|\s+$/g,""):""}if(l>-1){var x=t.substring(0,l),A=Number(t.substring(l+1,c)),w=void 0;return i=o(x,e),!isNaN(A)&&i&&(A<0?void 0===(w=i[i.length+A])&&(w=i[0]):void 0===(w=i[A])&&(w=i[i.length-1])),void 0!==w?w:""}return"{"+t+"}"}(t.value,e))}),n(l.reduce(function(t,e){return t+e.value},""),e,i)}function a(t,e){for(var i=t.split("."),n=this.options.lang,o=0;o2&&(s=t)}),a=n[s].toFixed("Seconds"!==s&&"Minutes"!==s?1:0),i.langFormat("accessibility.axis.timeRange"+s,{chart:i,axis:t,range:a.replace(".0","")})):(h=(c=(l=t.chart).options)&&c.accessibility&&c.accessibility.screenReaderSection.axisRangeDateFormat||"",d={min:t.dataMin||t.min||0,max:t.dataMax||t.max||0},u=function(e){return t.dateTime?l.time.dateFormat(h,d[e]):d[e].toString()},l.langFormat("accessibility.axis.rangeFromTo",{chart:l,axis:t,rangeFrom:u("min"),rangeTo:u("max")}))},getPointFromXY:function(t,e,i){for(var n,o=t.length;o--;)if(n=s(t[o].points||[],function(t){return t.x===e&&t.y===i}))return n},getSeriesFirstPointElement:l,getSeriesFromName:function(t,e){return e?(t.series||[]).filter(function(t){return t.name===e}):t.series},getSeriesA11yElement:c,unhideChartElementFromAT:function t(e,i){i.setAttribute("aria-hidden",!1),i!==e.renderTo&&i.parentNode&&i.parentNode!==n.body&&(Array.prototype.forEach.call(i.parentNode.childNodes,function(t){t.hasAttribute("aria-hidden")||t.setAttribute("aria-hidden",!0)}),t(e,i.parentNode))},hideSeriesFromAT:function(t){var e=c(t);e&&e.setAttribute("aria-hidden",!0)},scrollAxisToPoint:function(t){var e=t.series.xAxis,i=t.series.yAxis,n=e&&e.scrollbar?e:i,o=n&&n.scrollbar;if(o&&r(o.to)&&r(o.from)){var s=o.to-o.from,l=function(t,e){if(!r(t.dataMin)||!r(t.dataMax))return 0;var i=t.toPixels(t.dataMin),n=t.toPixels(t.dataMax),o="xAxis"===t.coll?"x":"y";return(t.toPixels(e[o]||0)-i)/(n-i)}(n,t);o.updatePosition(l-s/2,l+s/2),a(o,"changed",{from:o.from,to:o.to,trigger:"scrollbar",DOMEvent:null})}}}}),i(e,"Accessibility/Utils/DOMElementProvider.js",[e["Core/Globals.js"],e["Accessibility/Utils/HTMLUtilities.js"]],function(t,e){var i=t.doc,n=e.removeElement;return function(){function t(){this.elements=[]}return t.prototype.createElement=function(){var t=i.createElement.apply(i,arguments);return this.elements.push(t),t},t.prototype.destroyCreatedElements=function(){this.elements.forEach(function(t){n(t)}),this.elements=[]},t}()}),i(e,"Accessibility/Utils/EventProvider.js",[e["Core/Globals.js"],e["Core/Utilities.js"]],function(t,e){var i=e.addEvent;return function(){function e(){this.eventRemovers=[]}return e.prototype.addEvent=function(){var e=i.apply(t,arguments);return this.eventRemovers.push(e),e},e.prototype.removeAddedEvents=function(){this.eventRemovers.forEach(function(t){return t()}),this.eventRemovers=[]},e}()}),i(e,"Accessibility/AccessibilityComponent.js",[e["Accessibility/Utils/ChartUtilities.js"],e["Accessibility/Utils/DOMElementProvider.js"],e["Accessibility/Utils/EventProvider.js"],e["Accessibility/Utils/HTMLUtilities.js"],e["Core/Utilities.js"]],function(t,e,i,n,o){var r=t.fireEventOnWrappedOrUnwrappedElement,s=n.getFakeMouseEvent,a=o.extend,l=function(){function t(){this.chart=void 0,this.domElementProvider=void 0,this.eventProvider=void 0,this.keyCodes=void 0,this.proxyProvider=void 0}return t.prototype.initBase=function(t,n){this.chart=t,this.eventProvider=new i,this.domElementProvider=new e,this.proxyProvider=n,this.keyCodes={left:37,right:39,up:38,down:40,enter:13,space:32,esc:27,tab:9,pageUp:33,pageDown:34,end:35,home:36}},t.prototype.addEvent=function(t,e,i,n){return this.eventProvider.addEvent(t,e,i,n)},t.prototype.createElement=function(t,e){return this.domElementProvider.createElement(t,e)},t.prototype.fakeClickEvent=function(t){r(t,s("click"))},t.prototype.destroyBase=function(){this.domElementProvider.destroyCreatedElements(),this.eventProvider.removeAddedEvents()},t}();return a(l.prototype,{init:function(){},getKeyboardNavigation:function(){},onChartUpdate:function(){},onChartRender:function(){},destroy:function(){}}),l}),i(e,"Accessibility/KeyboardNavigationHandler.js",[e["Core/Utilities.js"]],function(t){var e=t.find;return function(){function t(t,e){this.chart=t,this.keyCodeMap=e.keyCodeMap||[],this.validate=e.validate,this.init=e.init,this.terminate=e.terminate,this.response={success:1,prev:2,next:3,noHandler:4,fail:5}}return t.prototype.run=function(t){var i=t.which||t.keyCode,n=this.response.noHandler,o=e(this.keyCodeMap,function(t){return t[0].indexOf(i)>-1});return o?n=o[1].call(this,i,t):9===i&&(n=this.response[t.shiftKey?"prev":"next"]),n},t}()}),i(e,"Accessibility/Components/ContainerComponent.js",[e["Accessibility/AccessibilityComponent.js"],e["Accessibility/KeyboardNavigationHandler.js"],e["Accessibility/Utils/ChartUtilities.js"],e["Core/Globals.js"],e["Accessibility/Utils/HTMLUtilities.js"]],function(t,e,i,n,o){var r,s=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Class extends value "+String(e)+" is not a constructor or null");function i(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),a=i.unhideChartElementFromAT,l=i.getChartTitle,c=n.doc,h=o.stripHTMLTagsFromString;return function(t){function i(){return null!==t&&t.apply(this,arguments)||this}return s(i,t),i.prototype.onChartUpdate=function(){this.handleSVGTitleElement(),this.setSVGContainerLabel(),this.setGraphicContainerAttrs(),this.setRenderToAttrs(),this.makeCreditsAccessible()},i.prototype.handleSVGTitleElement=function(){var t=this.chart,e="highcharts-title-"+t.index,i=h(t.langFormat("accessibility.svgContainerTitle",{chartTitle:l(t)}));if(i.length){var n=this.svgTitleElement=this.svgTitleElement||c.createElementNS("http://www.w3.org/2000/svg","title");n.textContent=i,n.id=e,t.renderTo.insertBefore(n,t.renderTo.firstChild)}},i.prototype.setSVGContainerLabel=function(){var t=this.chart,e=t.langFormat("accessibility.svgContainerLabel",{chartTitle:l(t)});t.renderer.box&&e.length&&t.renderer.box.setAttribute("aria-label",e)},i.prototype.setGraphicContainerAttrs=function(){var t=this.chart,e=t.langFormat("accessibility.graphicContainerLabel",{chartTitle:l(t)});e.length&&t.container.setAttribute("aria-label",e)},i.prototype.setRenderToAttrs=function(){var t=this.chart,e="disabled"!==t.options.accessibility.landmarkVerbosity,i=t.langFormat("accessibility.chartContainerLabel",{title:l(t),chart:t});i&&(t.renderTo.setAttribute("role",e?"region":"group"),t.renderTo.setAttribute("aria-label",i))},i.prototype.makeCreditsAccessible=function(){var t=this.chart,e=t.credits;e&&(e.textStr&&e.element.setAttribute("aria-label",t.langFormat("accessibility.credits",{creditsStr:h(e.textStr,t.renderer.forExport)})),a(t,e.element))},i.prototype.getKeyboardNavigation=function(){var t=this.chart;return new e(t,{keyCodeMap:[],validate:function(){return!0},init:function(){var e=t.accessibility;e&&e.keyboardNavigation.tabindexContainer.focus()}})},i.prototype.destroy=function(){this.chart.renderTo.setAttribute("aria-hidden",!0)},i}(t)}),i(e,"Accessibility/FocusBorder.js",[e["Core/Utilities.js"]],function(t){var e,i=t.addEvent,n=t.pick;return function(e){var o=[],r=["x","y","transform","width","height","r","d","stroke-width"];function s(){var t=this.focusElement,e=this.options.accessibility.keyboardNavigation.focusBorder;t&&(t.removeFocusBorder(),e.enabled&&t.addFocusBorder(e.margin,{stroke:e.style.color,strokeWidth:e.style.lineWidth,r:e.style.borderRadius}))}function a(t,e){var n=this.options.accessibility.keyboardNavigation.focusBorder,o=e||t.element;o&&o.focus&&(o.hcEvents&&o.hcEvents.focusin||i(o,"focusin",function(){}),o.focus(),n.hideBrowserFocusOutline&&(o.style.outline="none")),this.focusElement&&this.focusElement.removeFocusBorder(),this.focusElement=t,this.renderFocusBorder()}function l(t,e){this.focusBorder&&this.removeFocusBorder();var i=this.getBBox(),o=n(t,3),s=this.parentGroup,a=this.scaleX||s&&s.scaleX,l=this.scaleY||s&&s.scaleY,c=(a?!l:l)?Math.abs(a||l||1):(Math.abs(a||1)+Math.abs(l||1))/2;i.x+=this.translateX?this.translateX:0,i.y+=this.translateY?this.translateY:0;var h=i.x-o,d=i.y-o,u=i.width+2*o,p=i.height+2*o,g=!!this.text;if("text"===this.element.nodeName||g){var m,f,v=!!this.rotation,y=g?{x:v?1:0,y:0}:(m=0,f=0,"middle"===this.attr("text-anchor")?m=f=.5:this.rotation?m=.25:f=.75,{x:m,y:f}),b=+this.attr("x"),x=+this.attr("y");if(isNaN(b)||(h=b-i.width*y.x-o),isNaN(x)||(d=x-i.height*y.y-o),g&&v){var A=u;u=p,p=A,isNaN(b)||(h=b-i.height*y.x-o),isNaN(x)||(d=x-i.width*y.y-o)}}this.focusBorder=this.renderer.rect(h,d,u,p,parseInt((e&&e.r||0).toString(),10)/c).addClass("highcharts-focus-border").attr({zIndex:99}).add(s),this.renderer.styledMode||this.focusBorder.attr({stroke:e&&e.stroke,"stroke-width":(e&&e.strokeWidth||0)/c}),function(t){for(var e=[],i=1;i1?"MultiplePoints":s?"SinglePoint":"NoPoints",l={annotationText:n,annotation:t,numPoints:s,annotationPoint:r[0],additionalAnnotationPoints:r.slice(1)};return i.langFormat("accessibility.screenReaderSection.annotations.description"+a,l)}function s(t){return n(t).map(function(n){var o=e(i(r(n),t.renderer.forExport));return o?"
  • ".concat(o,"
  • "):""})}return{getAnnotationsInfoHTML:function(t){var e=t.annotations;if(!(e&&e.length))return"";var i=s(t);return'
      '.concat(i.join(" "),"
    ")},getAnnotationLabelDescription:r,getAnnotationListItems:s,getPointAnnotationTexts:function(t){var e=n(t.series.chart).filter(function(e){return e.points.indexOf(t)>-1});return e.length?e.map(function(t){return"".concat(o(t))}):[]}}}),i(e,"Accessibility/Components/InfoRegionsComponent.js",[e["Accessibility/A11yI18n.js"],e["Accessibility/AccessibilityComponent.js"],e["Accessibility/Utils/Announcer.js"],e["Accessibility/Components/AnnotationsA11y.js"],e["Core/Renderer/HTML/AST.js"],e["Accessibility/Utils/ChartUtilities.js"],e["Core/Templating.js"],e["Core/Globals.js"],e["Accessibility/Utils/HTMLUtilities.js"],e["Core/Utilities.js"]],function(t,e,i,n,o,r,s,a,l,c){var h,d=this&&this.__extends||(h=function(t,e){return(h=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Class extends value "+String(e)+" is not a constructor or null");function i(){this.constructor=t}h(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),u=n.getAnnotationsInfoHTML,p=r.getAxisDescription,g=r.getAxisRangeDescription,m=r.getChartTitle,f=r.unhideChartElementFromAT,v=s.format,y=a.doc,b=l.addClass,x=l.getElement,A=l.getHeadingTagNameForElement,w=l.stripHTMLTagsFromString,C=l.visuallyHideElement,E=c.attr,T=c.pick;function M(t){return t.replace(/<(\w+)[^>]*?>\s*<\/\1>/g,"")}return function(e){function n(){var t=null!==e&&e.apply(this,arguments)||this;return t.announcer=void 0,t.screenReaderSections={},t}return d(n,e),n.prototype.init=function(){var t=this.chart,e=this;this.initRegionsDefinitions(),this.addEvent(t,"aftergetTableAST",function(t){e.onDataTableCreated(t)}),this.addEvent(t,"afterViewData",function(t){t.wasHidden&&(e.dataTableDiv=t.element,setTimeout(function(){e.focusDataTable()},300))}),this.addEvent(t,"afterHideData",function(){e.viewDataTableButton&&e.viewDataTableButton.setAttribute("aria-expanded","false")}),this.announcer=new i(t,"assertive")},n.prototype.initRegionsDefinitions=function(){var t=this,e=this.chart.options.accessibility;this.screenReaderSections={before:{element:null,buildContent:function(i){var n=e.screenReaderSection.beforeChartFormatter;return n?n(i):t.defaultBeforeChartFormatter(i)},insertIntoDOM:function(t,e){e.renderTo.insertBefore(t,e.renderTo.firstChild)},afterInserted:function(){void 0!==t.sonifyButtonId&&t.initSonifyButton(t.sonifyButtonId),void 0!==t.dataTableButtonId&&t.initDataTableButton(t.dataTableButtonId)}},after:{element:null,buildContent:function(i){var n=e.screenReaderSection.afterChartFormatter;return n?n(i):t.defaultAfterChartFormatter()},insertIntoDOM:function(t,e){e.renderTo.insertBefore(t,e.container.nextSibling)},afterInserted:function(){t.chart.accessibility&&e.keyboardNavigation.enabled&&t.chart.accessibility.keyboardNavigation.updateExitAnchor()}}}},n.prototype.onChartRender=function(){var t=this;this.linkedDescriptionElement=this.getLinkedDescriptionElement(),this.setLinkedDescriptionAttrs(),Object.keys(this.screenReaderSections).forEach(function(e){t.updateScreenReaderSection(e)})},n.prototype.getLinkedDescriptionElement=function(){var t=this.chart.options.accessibility.linkedDescription;if(t){if("string"!=typeof t)return t;var e=v(t,this.chart),i=y.querySelectorAll(e);if(1===i.length)return i[0]}},n.prototype.setLinkedDescriptionAttrs=function(){var t=this.linkedDescriptionElement;t&&(t.setAttribute("aria-hidden","true"),b(t,"highcharts-linked-description"))},n.prototype.updateScreenReaderSection=function(t){var e=this.chart,i=this.screenReaderSections[t],n=i.buildContent(e),r=i.element=i.element||this.createElement("div"),s=r.firstChild||this.createElement("div");n?(this.setScreenReaderSectionAttribs(r,t),o.setElementHTML(s,n),r.appendChild(s),i.insertIntoDOM(r,e),e.styledMode?b(s,"highcharts-visually-hidden"):C(s),f(e,s),i.afterInserted&&i.afterInserted()):(r.parentNode&&r.parentNode.removeChild(r),i.element=null)},n.prototype.setScreenReaderSectionAttribs=function(t,e){var i=this.chart,n=i.langFormat("accessibility.screenReaderSection."+e+"RegionLabel",{chart:i,chartTitle:m(i)});E(t,{id:"highcharts-screen-reader-region-".concat(e,"-").concat(i.index),"aria-label":n||void 0}),t.style.position="relative",n&&t.setAttribute("role","all"===i.options.accessibility.landmarkVerbosity?"region":"group")},n.prototype.defaultBeforeChartFormatter=function(){var e=this.chart,i=e.options.accessibility.screenReaderSection.beforeChartFormat;if(!i)return"";var n=this.getAxesDescription(),o=e.sonify&&e.options.sonification&&e.options.sonification.enabled,r="highcharts-a11y-sonify-data-btn-"+e.index,s="hc-linkto-highcharts-data-table-"+e.index,a=u(e),l=e.langFormat("accessibility.screenReaderSection.annotations.heading",{chart:e}),c={headingTagName:A(e.renderTo),chartTitle:m(e),typeDescription:this.getTypeDescriptionText(),chartSubtitle:this.getSubtitleText(),chartLongdesc:this.getLongdescText(),xAxisDescription:n.xAxis,yAxisDescription:n.yAxis,playAsSoundButton:o?this.getSonifyButtonText(r):"",viewTableButton:e.getCSV?this.getDataTableButtonText(s):"",annotationsTitle:a?l:"",annotationsList:a},h=t.i18nFormat(i,c,e);return this.dataTableButtonId=s,this.sonifyButtonId=r,M(h)},n.prototype.defaultAfterChartFormatter=function(){var e=this.chart,i=e.options.accessibility.screenReaderSection.afterChartFormat;if(!i)return"";var n={endOfChartMarker:this.getEndOfChartMarkerText()};return M(t.i18nFormat(i,n,e))},n.prototype.getLinkedDescription=function(){var t=this.linkedDescriptionElement;return w(t&&t.innerHTML||"",this.chart.renderer.forExport)},n.prototype.getLongdescText=function(){var t=this.chart.options,e=t.caption,i=e&&e.text,n=this.getLinkedDescription();return t.accessibility.description||n||i||""},n.prototype.getTypeDescriptionText=function(){var t,e,i,n,o,r,s,a,l,c=this.chart;return c.types?c.options.accessibility.typeDescription||(t=c,r=(e=c.types)[0],s=t.series&&t.series[0]||{},a=t.mapView&&t.mapView.geoMap&&t.mapView.geoMap.title,l={numSeries:t.series.length,numPoints:s.points&&s.points.length,chart:t,mapTitle:a},r?"map"===r||"tiledwebmap"===r?l.mapTitle?t.langFormat("accessibility.chartTypes.mapTypeDescription",l):t.langFormat("accessibility.chartTypes.unknownMap",l):t.types.length>1?t.langFormat("accessibility.chartTypes.combinationChart",l):(i=e[0],n=t.langFormat("accessibility.seriesTypeDescriptions."+i,l),o=t.series&&t.series.length<2?"Single":"Multiple",(t.langFormat("accessibility.chartTypes."+i+o,l)||t.langFormat("accessibility.chartTypes.default"+o,l))+(n?" "+n:"")):t.langFormat("accessibility.chartTypes.emptyChart",l)):""},n.prototype.getDataTableButtonText=function(t){var e=this.chart;return'"},n.prototype.getSonifyButtonText=function(t){var e=this.chart;return e.options.sonification&&!1===e.options.sonification.enabled?"":'"},n.prototype.getSubtitleText=function(){var t=this.chart.options.subtitle;return w(t&&t.text||"",this.chart.renderer.forExport)},n.prototype.getEndOfChartMarkerText=function(){var t=this.chart,e=t.langFormat("accessibility.screenReaderSection.endOfChartMarker",{chart:t});return'
    '+e+"
    "},n.prototype.onDataTableCreated=function(t){var e=this.chart;if(e.options.accessibility.enabled){this.viewDataTableButton&&this.viewDataTableButton.setAttribute("aria-expanded","true");var i=t.tree.attributes||{};i.tabindex=-1,i.summary=e.langFormat("accessibility.table.tableSummary",{chart:e}),t.tree.attributes=i}},n.prototype.focusDataTable=function(){var t=this.dataTableDiv,e=t&&t.getElementsByTagName("table")[0];e&&e.focus&&e.focus()},n.prototype.initSonifyButton=function(t){var e=this,i=this.sonifyButton=x(t),n=this.chart,o=function(t){i&&(i.setAttribute("aria-hidden","true"),i.setAttribute("aria-label","")),t.preventDefault(),t.stopPropagation();var o=n.langFormat("accessibility.sonification.playAsSoundClickAnnouncement",{chart:n});e.announcer.announce(o),setTimeout(function(){i&&(i.removeAttribute("aria-hidden"),i.removeAttribute("aria-label")),n.sonify&&n.sonify()},1e3)};i&&n&&(i.setAttribute("tabindex",-1),i.onclick=function(t){(n.options.accessibility&&n.options.accessibility.screenReaderSection.onPlayAsSoundClick||o).call(this,t,n)})},n.prototype.initDataTableButton=function(t){var e=this.viewDataTableButton=x(t),i=this.chart,n=t.replace("hc-linkto-","");e&&(E(e,{tabindex:-1,"aria-expanded":!!x(n)}),e.onclick=i.options.accessibility.screenReaderSection.onViewDataTableClick||function(){i.viewData()})},n.prototype.getAxesDescription=function(){var t=this.chart,e=function(e,i){var n=t[e];return n.length>1||n[0]&&T(n[0].options.accessibility&&n[0].options.accessibility.enabled,i)},i=!!t.types&&0>t.types.indexOf("map")&&0>t.types.indexOf("treemap")&&0>t.types.indexOf("tilemap"),n=!!t.hasCartesianSeries,o=e("xAxis",!t.angular&&n&&i),r=e("yAxis",n&&i),s={};return o&&(s.xAxis=this.getAxisDescriptionText("xAxis")),r&&(s.yAxis=this.getAxisDescriptionText("yAxis")),s},n.prototype.getAxisDescriptionText=function(t){var e=this.chart,i=e[t];return e.langFormat("accessibility.axis."+t+"Description"+(i.length>1?"Plural":"Singular"),{chart:e,names:i.map(function(t){return p(t)}),ranges:i.map(function(t){return g(t)}),numAxes:i.length})},n.prototype.destroy=function(){this.announcer&&this.announcer.destroy()},n}(e)}),i(e,"Accessibility/Components/MenuComponent.js",[e["Core/Chart/Chart.js"],e["Core/Utilities.js"],e["Accessibility/AccessibilityComponent.js"],e["Accessibility/KeyboardNavigationHandler.js"],e["Accessibility/Utils/ChartUtilities.js"],e["Accessibility/Utils/HTMLUtilities.js"]],function(t,e,i,n,o,r){var s,a=this&&this.__extends||(s=function(t,e){return(s=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Class extends value "+String(e)+" is not a constructor or null");function i(){this.constructor=t}s(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),l=e.attr,c=o.getChartTitle,h=o.unhideChartElementFromAT,d=r.getFakeMouseEvent;function u(t){return t.exportSVGElements&&t.exportSVGElements[0]}var p=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return a(e,t),e.prototype.init=function(){var t=this.chart,e=this;this.addEvent(t,"exportMenuShown",function(){e.onMenuShown()}),this.addEvent(t,"exportMenuHidden",function(){e.onMenuHidden()}),this.createProxyGroup()},e.prototype.onMenuHidden=function(){var t=this.chart.exportContextMenu;t&&t.setAttribute("aria-hidden","true"),this.setExportButtonExpandedState("false")},e.prototype.onMenuShown=function(){var t=this.chart,e=t.exportContextMenu;e&&(this.addAccessibleContextMenuAttribs(),h(t,e)),this.setExportButtonExpandedState("true")},e.prototype.setExportButtonExpandedState=function(t){this.exportButtonProxy&&this.exportButtonProxy.innerElement.setAttribute("aria-expanded",t)},e.prototype.onChartRender=function(){var t=this.chart,e=t.focusElement,i=t.accessibility;this.proxyProvider.clearGroup("chartMenu"),this.proxyMenuButton(),this.exportButtonProxy&&e&&e===t.exportingGroup&&(e.focusBorder?t.setFocusToElement(e,this.exportButtonProxy.innerElement):i&&i.keyboardNavigation.tabindexContainer.focus())},e.prototype.proxyMenuButton=function(){var t,e,i=this.chart,n=this.proxyProvider,o=u(i);t=i.options.exporting,e=u(i),t&&!1!==t.enabled&&t.accessibility&&t.accessibility.enabled&&e&&e.element&&o&&(this.exportButtonProxy=n.addProxyElement("chartMenu",{click:o},"button",{"aria-label":i.langFormat("accessibility.exporting.menuButtonLabel",{chart:i,chartTitle:c(i)}),"aria-expanded":!1,title:i.options.lang.contextButtonTitle||null}))},e.prototype.createProxyGroup=function(){this.chart&&this.proxyProvider&&this.proxyProvider.addGroup("chartMenu")},e.prototype.addAccessibleContextMenuAttribs=function(){var t=this.chart,e=t.exportDivElements;if(e&&e.length){e.forEach(function(t){t&&("LI"!==t.tagName||t.children&&t.children.length?t.setAttribute("aria-hidden","true"):t.setAttribute("tabindex",-1))});var i=e[0]&&e[0].parentNode;i&&l(i,{"aria-hidden":void 0,"aria-label":t.langFormat("accessibility.exporting.chartMenuLabel",{chart:t}),role:"list"})}},e.prototype.getKeyboardNavigation=function(){var t=this.keyCodes,e=this.chart,i=this;return new n(e,{keyCodeMap:[[[t.left,t.up],function(){return i.onKbdPrevious(this)}],[[t.right,t.down],function(){return i.onKbdNext(this)}],[[t.enter,t.space],function(){return i.onKbdClick(this)}]],validate:function(){return!!e.exporting&&!1!==e.options.exporting.enabled&&!1!==e.options.exporting.accessibility.enabled},init:function(){var t=i.exportButtonProxy,n=i.chart.exportingGroup;t&&n&&e.setFocusToElement(n,t.innerElement)},terminate:function(){e.hideExportMenu()}})},e.prototype.onKbdPrevious=function(t){for(var e=this.chart,i=e.options.accessibility,n=t.response,o=e.highlightedExportItemIx||0;o--;)if(e.highlightExportItem(o))return n.success;return i.keyboardNavigation.wrapAround?(e.highlightLastExportItem(),n.success):n.prev},e.prototype.onKbdNext=function(t){for(var e=this.chart,i=e.options.accessibility,n=t.response,o=(e.highlightedExportItemIx||0)+1;o0?this.exitAnchor&&this.exitAnchor.focus():this.tabindexContainer.focus(),!1},t.prototype.onFocus=function(t){var e=this.chart,i=t.relatedTarget&&e.container.contains(t.relatedTarget),n=e.options.accessibility,o=n&&n.keyboardNavigation;if(o&&o.enabled&&!this.exiting&&!this.tabbingInBackwards&&!this.isClickingChart&&!i){var r=this.getFirstValidModuleIx();null!==r&&(this.currentModuleIx=r,this.modules[r].init(1))}this.exiting=!1},t.prototype.onMouseUp=function(t){if(delete this.isClickingChart,!this.keyboardReset&&t.relatedTarget!==h){var e=this.chart;if(!t.target||!e.container.contains(t.target)){var i=this.modules&&this.modules[this.currentModuleIx||0];i&&i.terminate&&i.terminate(),this.currentModuleIx=0}e.focusElement&&(e.focusElement.removeFocusBorder(),delete e.focusElement),this.keyboardReset=!0}},t.prototype.onKeydown=function(t){var e,i=t||s.event,n=this.modules&&this.modules.length&&this.modules[this.currentModuleIx],o=i.target;if((!o||"INPUT"!==o.nodeName||o.classList.contains("highcharts-a11y-proxy-element"))&&(this.keyboardReset=!1,this.exiting=!1,n)){var r=n.run(i);r===n.response.success?e=!0:r===n.response.prev?e=this.move(-1):r===n.response.next&&(e=this.move(1)),e&&(i.preventDefault(),i.stopPropagation())}},t.prototype.updateContainerTabindex=function(){var t,e=this.chart.options.accessibility,i=e&&e.keyboardNavigation,n=!(i&&!1===i.enabled),o=this.chart,r=o.container;o.renderTo.hasAttribute("tabindex")?(r.removeAttribute("tabindex"),t=o.renderTo):t=r,this.tabindexContainer=t;var s=t.getAttribute("tabindex");n&&!s?t.setAttribute("tabindex","0"):n||o.container.removeAttribute("tabindex")},t.prototype.createExitAnchor=function(){var t=this.chart,e=this.exitAnchor=r.createElement("div");t.renderTo.appendChild(e),this.makeElementAnExitAnchor(e)},t.prototype.makeElementAnExitAnchor=function(t){var e=this.tabindexContainer.getAttribute("tabindex")||0;t.setAttribute("class","highcharts-exit-anchor"),t.setAttribute("tabindex",e),t.setAttribute("aria-hidden",!1),this.addExitAnchorEventsToEl(t)},t.prototype.removeExitAnchor=function(){this.exitAnchor&&this.exitAnchor.parentNode&&(this.exitAnchor.parentNode.removeChild(this.exitAnchor),delete this.exitAnchor)},t.prototype.addExitAnchorEventsToEl=function(t){var e=this.chart,i=this;this.eventProvider.addEvent(t,"focus",function(t){var n=t||s.event,o=!(n.relatedTarget&&e.container.contains(n.relatedTarget)||i.exiting);if(e.focusElement&&delete e.focusElement,o){if(i.tabbingInBackwards=!0,i.tabindexContainer.focus(),delete i.tabbingInBackwards,n.preventDefault(),i.modules&&i.modules.length){i.currentModuleIx=i.modules.length-1;var r=i.modules[i.currentModuleIx];r&&r.validate&&!r.validate()?i.move(-1):r&&r.init(-1)}}else i.exiting=!1})},t.prototype.getFirstValidModuleIx=function(){for(var t=this.modules.length,e=0;e-1&&this.chart.highlightLegendItem(t.highlightedLegendItemIx))}),this.addEvent(i,"afterPositionItem",function(e){this.chart===t.chart&&this.chart.renderer&&t.updateProxyPositionForItem(e.item)}),this.addEvent(i,"afterRender",function(){this.chart===t.chart&&this.chart.renderer&&t.recreateProxies()&&f(function(){return t.proxyProvider.updateGroupProxyElementPositions("legend")},h(m(this.chart.renderer.globalAnimation,!0)).duration)})},e.prototype.updateLegendItemProxyVisibility=function(){var t,e=this.chart,i=e.legend,n=i.allItems||[],o=i.currentPage||1,r=i.clipHeight||0;n.forEach(function(n){if(n.a11yProxyElement){var s=i.pages&&i.pages.length,a=n.a11yProxyElement.element,l=!1;if(t=n.legendItem||{},s){var c=t.pageIx||0;l=(t.y||0)+(t.label?Math.round(t.label.getBBox().height):0)-i.pages[c]>r||c!==o-1}l?e.styledMode?b(a,"highcharts-a11y-invisible"):a.style.visibility="hidden":(x(a,"highcharts-a11y-invisible"),a.style.visibility="")}})},e.prototype.onChartRender=function(){A(this.chart)||this.removeProxies()},e.prototype.highlightAdjacentLegendPage=function(t){var e=this.chart,i=e.legend,n=(i.currentPage||1)+t,o=i.pages||[];if(n>0&&n<=o.length)for(var r=0,s=0,a=i.allItems;s/g," "),t.renderer.forExport),i=t.langFormat("accessibility.legend.legendLabel"+(e?"":"NoTitle"),{chart:t,legendTitle:e,chartTitle:v(t)});this.proxyProvider.updateGroupAttrs("legend",{"aria-label":i})},e.prototype.addLegendProxyGroup=function(){var t="all"===this.chart.options.accessibility.landmarkVerbosity?"region":null;this.proxyGroup=this.proxyProvider.addGroup("legend","ul",{"aria-label":"_placeholder_",role:t})},e.prototype.proxyLegendItems=function(){var t,e=this;((this.chart.legend||{}).allItems||[]).forEach(function(i){(t=i.legendItem||{}).label&&t.label.element&&e.proxyLegendItem(i)})},e.prototype.proxyLegendItem=function(t){var e=t.legendItem||{};if(e.label&&e.group){var i=this.chart.langFormat("accessibility.legend.legendItem",{chart:this.chart,itemName:y(t.name,this.chart.renderer.forExport),item:t}),n={tabindex:-1,"aria-pressed":t.visible,"aria-label":i},o=e.group.div?e.label:e.group;t.a11yProxyElement=this.proxyProvider.addProxyElement("legend",{click:e.label,visual:o.element},"button",n)}},e.prototype.getKeyboardNavigation=function(){var t=this.keyCodes,e=this,i=this.chart;return new r(i,{keyCodeMap:[[[t.left,t.right,t.up,t.down],function(t){return e.onKbdArrowKey(this,t)}],[[t.enter,t.space],function(){return e.onKbdClick(this)}],[[t.pageDown,t.pageUp],function(i){var n=i===t.pageDown?1:-1;return e.highlightAdjacentLegendPage(n),this.response.success}]],validate:function(){return e.shouldHaveLegendNavigation()},init:function(){i.highlightLegendItem(0),e.highlightedLegendItemIx=0},terminate:function(){e.highlightedLegendItemIx=-1,i.legend.allItems.forEach(function(t){return w(!1,t)})}})},e.prototype.onKbdArrowKey=function(t,e){var i=this.keyCodes,n=t.response,o=this.chart,r=o.options.accessibility,s=o.legend.allItems.length,a=e===i.left||e===i.up?-1:1;return o.highlightLegendItem(this.highlightedLegendItemIx+a)?this.highlightedLegendItemIx+=a:s>1&&r.keyboardNavigation.wrapAround&&t.init(a),n.success},e.prototype.onKbdClick=function(t){var e=this.chart.legend.allItems[this.highlightedLegendItemIx];return e&&e.a11yProxyElement&&e.a11yProxyElement.click(),t.response.success},e.prototype.shouldHaveLegendNavigation=function(){if(!A(this.chart))return!1;var t=this.chart,e=(t.options.legend||{}).accessibility||{};return!!(t.legend.display&&e.keyboardNavigation&&e.keyboardNavigation.enabled)},e.prototype.destroy=function(){this.removeProxies()},e}(o);return function(t){var e=[];function i(t){var e=this.legend.allItems,i=this.accessibility&&this.accessibility.components.legend.highlightedLegendItemIx,n=e[t],o=n.legendItem||{};if(n){g(i)&&e[i]&&w(!1,e[i]),s=((r=this.legend).allItems[t].legendItem||{}).pageIx,a=r.currentPage,void 0!==s&&s+1!==a&&r.scroll(1+s-a);var r,s,a,l=o.label,c=n.a11yProxyElement&&n.a11yProxyElement.innerElement;return l&&l.element&&c&&this.setFocusToElement(l,c),w(!0,n),!0}return!1}function o(t){var e=this.chart.options.accessibility,i=t.item;e.enabled&&i&&i.a11yProxyElement&&i.a11yProxyElement.innerElement.setAttribute("aria-pressed",t.visible?"true":"false")}t.compose=function(t,r){n.pushUnique(e,t)&&(t.prototype.highlightLegendItem=i),n.pushUnique(e,r)&&u(r,"afterColorizeItem",o)}}(C||(C={})),C}),i(e,"Core/Axis/NavigatorAxisComposition.js",[e["Core/Globals.js"],e["Core/Utilities.js"]],function(t,e){var i=t.isTouchDevice,n=e.addEvent,o=e.correctFloat,r=e.defined,s=e.isNumber,a=e.pick,l=[];function c(){this.navigatorAxis||(this.navigatorAxis=new d(this))}function h(t){var e=this.chart,n=e.options,o=n.navigator,s=this.navigatorAxis,a=e.zooming.pinchType,l=n.rangeSelector,c=e.zooming.type;if(this.isXAxis&&(o&&o.enabled||l&&l.enabled)){if("y"===c)t.zoomed=!1;else if((!i&&"xy"===c||i&&"xy"===a)&&this.options.range){var h=s.previousZoom;r(t.newMin)?s.previousZoom=[this.min,this.max]:h&&(t.newMin=h[0],t.newMax=h[1],s.previousZoom=void 0)}}void 0!==t.zoomed&&t.preventDefault()}var d=function(){function t(t){this.axis=t}return t.compose=function(t){e.pushUnique(l,t)&&(t.keepProps.push("navigatorAxis"),n(t,"init",c),n(t,"zoom",h))},t.prototype.destroy=function(){this.axis=void 0},t.prototype.toFixedRange=function(t,e,i,n){var l=this.axis,c=l.chart,h=a(i,l.translate(t,!0,!l.horiz)),d=a(n,l.translate(e,!0,!l.horiz)),u=c&&c.fixedRange,p=(l.pointRange||0)/2;return r(i)||(h=o(h+p)),r(n)||(d=o(d-p)),u&&l.dataMin&&l.dataMax&&(d>=l.dataMax&&(h=o(l.dataMax-u)),h<=l.dataMin&&(d=o(l.dataMin+u))),s(h)&&s(d)||(h=d=void 0),{min:h,max:d}},t}();return d}),i(e,"Stock/Navigator/NavigatorDefaults.js",[e["Core/Color/Color.js"],e["Core/Series/SeriesRegistry.js"]],function(t,e){var i=t.parse,n=e.seriesTypes;return{height:40,margin:25,maskInside:!0,handles:{width:7,height:15,symbols:["navigator-handle","navigator-handle"],enabled:!0,lineWidth:1,backgroundColor:"#f2f2f2",borderColor:"#999999"},maskFill:i("#667aff").setOpacity(.3).get(),outlineColor:"#999999",outlineWidth:1,series:{type:void 0===n.areaspline?"line":"areaspline",fillOpacity:.05,lineWidth:1,compare:null,sonification:{enabled:!1},dataGrouping:{approximation:"average",enabled:!0,groupPixelWidth:2,firstAnchor:"firstPoint",anchor:"middle",lastAnchor:"lastPoint",units:[["millisecond",[1,2,5,10,20,25,50,100,200,500]],["second",[1,2,5,10,15,30]],["minute",[1,2,5,10,15,30]],["hour",[1,2,3,4,6,8,12]],["day",[1,2,3,4]],["week",[1,2,3]],["month",[1,3,6]],["year",null]]},dataLabels:{enabled:!1,zIndex:2},id:"highcharts-navigator-series",className:"highcharts-navigator-series",lineColor:null,marker:{enabled:!1},threshold:null},xAxis:{overscroll:0,className:"highcharts-navigator-xaxis",tickLength:0,lineWidth:0,gridLineColor:"#e6e6e6",gridLineWidth:1,tickPixelInterval:200,labels:{align:"left",style:{color:"#000000",fontSize:"0.7em",opacity:.6,textOutline:"2px contrast"},x:3,y:-4},crosshair:!1},yAxis:{className:"highcharts-navigator-yaxis",gridLineWidth:0,startOnTick:!1,endOnTick:!1,minPadding:.1,maxPadding:.1,labels:{enabled:!1},crosshair:!1,title:{text:null},tickLength:0,tickWidth:0}}}),i(e,"Stock/Navigator/NavigatorSymbols.js",[],function(){return{"navigator-handle":function(t,e,i,n,o){void 0===o&&(o={});var r=o.width?o.width/2:i,s=Math.round(r/3)+.5;return[["M",-r-1,.5],["L",r,.5],["L",r,(n=o.height||n)+.5],["L",-r-1,n+.5],["L",-r-1,.5],["M",-s,4],["L",-s,n-3],["M",s-1,4],["L",s-1,n-3]]}}}),i(e,"Stock/Navigator/NavigatorComposition.js",[e["Core/Defaults.js"],e["Core/Globals.js"],e["Core/Axis/NavigatorAxisComposition.js"],e["Stock/Navigator/NavigatorDefaults.js"],e["Stock/Navigator/NavigatorSymbols.js"],e["Core/Renderer/RendererRegistry.js"],e["Core/Utilities.js"]],function(t,e,i,n,o,r,s){var a,l=t.defaultOptions,c=t.setOptions,h=e.isTouchDevice,d=r.getRendererType,u=s.addEvent,p=s.extend,g=s.merge,m=s.pick,f=[];function v(){this.navigator&&this.navigator.setBaseSeries(null,!1)}function y(){var t,e,i,n,o=this.legend,r=this.navigator;if(r){e=o&&o.options,i=r.xAxis,n=r.yAxis;var s=r.scrollbarHeight,a=r.scrollButtonSize;this.inverted?(r.left=r.opposite?this.chartWidth-s-r.height:this.spacing[3]+s,r.top=this.plotTop+a):(r.left=m(i.left,this.plotLeft+a),r.top=r.navigatorOptions.top||this.chartHeight-r.height-s-((null===(t=this.scrollbar)||void 0===t?void 0:t.options.margin)||0)-this.spacing[2]-(this.rangeSelector&&this.extraBottomMargin?this.rangeSelector.getHeight():0)-(e&&"bottom"===e.verticalAlign&&"proximate"!==e.layout&&e.enabled&&!e.floating?o.legendHeight+m(e.margin,10):0)-(this.titleOffset?this.titleOffset[2]:0)),i&&n&&(this.inverted?i.options.left=n.options.left=r.left:i.options.top=n.options.top=r.top,i.setAxisSize(),n.setAxisSize())}}function b(t){!this.navigator&&!this.scroller&&(this.options.navigator.enabled||this.options.scrollbar.enabled)&&(this.scroller=this.navigator=new a(this),m(t.redraw,!0)&&this.redraw(t.animation))}function x(){var t=this.options;(t.navigator.enabled||t.scrollbar.enabled)&&(this.scroller=this.navigator=new a(this))}function A(){var t=this.options,e=t.navigator,i=t.rangeSelector;if((e&&e.enabled||i&&i.enabled)&&(!h&&"x"===this.zooming.type||h&&"x"===this.zooming.pinchType))return!1}function w(t){var e=t.navigator;if(e&&t.xAxis[0]){var i=t.xAxis[0].getExtremes();e.render(i.min,i.max)}}function C(t){var e=t.options.navigator||{},i=t.options.scrollbar||{};!this.navigator&&!this.scroller&&(e.enabled||i.enabled)&&(g(!0,this.options.navigator,e),g(!0,this.options.scrollbar,i),delete t.options.navigator,delete t.options.scrollbar)}function E(){this.chart.navigator&&!this.options.isInternal&&this.chart.navigator.setBaseSeries(null,!1)}return{compose:function(t,e,r,h){i.compose(t),a=r,s.pushUnique(f,e)&&(e.prototype.callbacks.push(w),u(e,"afterAddSeries",v),u(e,"afterSetChartSize",y),u(e,"afterUpdate",b),u(e,"beforeRender",x),u(e,"beforeShowResetZoom",A),u(e,"update",C)),s.pushUnique(f,h)&&u(h,"afterUpdate",E),s.pushUnique(f,d)&&p(d().prototype.symbols,o),s.pushUnique(f,c)&&p(l,{navigator:n})}}}),i(e,"Core/Axis/ScrollbarAxis.js",[e["Core/Utilities.js"]],function(t){var e,i=t.addEvent,n=t.defined,o=t.pick,r=t.pushUnique;return function(t){var e,s=[];function a(t){var e=o(t.options&&t.options.min,t.min),i=o(t.options&&t.options.max,t.max);return{axisMin:e,axisMax:i,scrollMin:n(t.dataMin)?Math.min(e,t.min,t.dataMin,o(t.threshold,1/0)):e,scrollMax:n(t.dataMax)?Math.max(i,t.max,t.dataMax,o(t.threshold,-1/0)):i}}function l(){var t=this.scrollbar,e=t&&!t.options.opposite,i=this.horiz?2:e?3:1;t&&(this.chart.scrollbarsOffsets=[0,0],this.chart.axisOffset[i]+=t.size+(t.options.margin||0))}function c(){var t=this;t.options&&t.options.scrollbar&&t.options.scrollbar.enabled&&(t.options.scrollbar.vertical=!t.horiz,t.options.startOnTick=t.options.endOnTick=!1,t.scrollbar=new e(t.chart.renderer,t.options.scrollbar,t.chart),i(t.scrollbar,"changed",function(e){var i,o,r=a(t),s=r.axisMin,l=r.axisMax,c=r.scrollMin,h=r.scrollMax-c;if(n(s)&&n(l)){if(t.horiz&&!t.reversed||!t.horiz&&t.reversed?(i=c+h*this.to,o=c+h*this.from):(i=c+h*(1-this.from),o=c+h*(1-this.to)),this.shouldUpdateExtremes(e.DOMType)){var d="mousemove"!==e.DOMType&&"touchmove"!==e.DOMType&&void 0;t.setExtremes(o,i,!0,d,e)}else this.setRange(this.from,this.to)}}))}function h(){var t,e,i,o=a(this),r=o.scrollMin,s=o.scrollMax,l=this.scrollbar,c=this.axisTitleMargin+(this.titleOffset||0),h=this.chart.scrollbarsOffsets,d=this.options.margin||0;if(l&&h){if(this.horiz)this.opposite||(h[1]+=c),l.position(this.left,this.top+this.height+2+h[1]-(this.opposite?d:0),this.width,this.height),this.opposite||(h[1]+=d),t=1;else{this.opposite&&(h[0]+=c);var u=void 0;u=l.options.opposite?this.left+this.width+2+h[0]-(this.opposite?0:d):this.opposite?0:d,l.position(u,this.top,this.width,this.height),this.opposite&&(h[0]+=d),t=0}h[t]+=l.size+(l.options.margin||0),isNaN(r)||isNaN(s)||!n(this.min)||!n(this.max)||this.min===this.max?l.setRange(0,1):(e=(this.min-r)/(s-r),i=(this.max-r)/(s-r),this.horiz&&!this.reversed||!this.horiz&&this.reversed?l.setRange(e,i):l.setRange(1-i,1-e))}}t.compose=function(t,n){r(s,n)&&(e=n),r(s,t)&&(i(t,"afterGetOffset",l),i(t,"afterInit",c),i(t,"afterRender",h))}}(e||(e={})),e}),i(e,"Stock/Scrollbar/ScrollbarDefaults.js",[e["Core/Globals.js"]],function(t){return t.isTouchDevice,{height:10,barBorderRadius:5,buttonBorderRadius:0,buttonsEnabled:!1,liveRedraw:void 0,margin:void 0,minWidth:6,opposite:!0,step:.2,zIndex:3,barBackgroundColor:"#cccccc",barBorderWidth:0,barBorderColor:"#cccccc",buttonArrowColor:"#333333",buttonBackgroundColor:"#e6e6e6",buttonBorderColor:"#cccccc",buttonBorderWidth:1,rifleColor:"none",trackBackgroundColor:"rgba(255, 255, 255, 0.001)",trackBorderColor:"#cccccc",trackBorderRadius:5,trackBorderWidth:1}}),i(e,"Stock/Scrollbar/Scrollbar.js",[e["Core/Defaults.js"],e["Core/Globals.js"],e["Core/Axis/ScrollbarAxis.js"],e["Stock/Scrollbar/ScrollbarDefaults.js"],e["Core/Utilities.js"]],function(t,e,i,n,o){var r=t.defaultOptions,s=o.addEvent,a=o.correctFloat,l=o.defined,c=o.destroyObjectProperties,h=o.fireEvent,d=o.merge,u=o.pick,p=o.removeEvent,g=function(){function t(t,e,i){this._events=[],this.chart=void 0,this.chartX=0,this.chartY=0,this.from=0,this.group=void 0,this.options=void 0,this.renderer=void 0,this.scrollbar=void 0,this.scrollbarButtons=[],this.scrollbarGroup=void 0,this.scrollbarLeft=0,this.scrollbarRifles=void 0,this.scrollbarStrokeWidth=1,this.scrollbarTop=0,this.size=0,this.to=0,this.track=void 0,this.trackBorderWidth=1,this.userOptions=void 0,this.x=0,this.y=0,this.init(t,e,i)}return t.compose=function(e){i.compose(e,t)},t.swapXY=function(t,e){return e&&t.forEach(function(t){for(var e,i=t.length,n=0;nthis.calculatedWidth?e.minWidth:0;return{chartX:(t.chartX-this.x-this.xOffset)/(this.barWidth-i),chartY:(t.chartY-this.y-this.yOffset)/(this.barWidth-i)}},t.prototype.destroy=function(){var t=this,e=t.chart.scroller;t.removeEvents(),["track","scrollbarRifles","scrollbar","scrollbarGroup","group"].forEach(function(e){t[e]&&t[e].destroy&&(t[e]=t[e].destroy())}),e&&t===e.scrollbar&&(e.scrollbar=null,c(e.scrollbarButtons))},t.prototype.drawScrollbarButton=function(e){var i=this.renderer,n=this.scrollbarButtons,o=this.options,r=this.size,s=i.g().add(this.group);if(n.push(s),o.buttonsEnabled){var a=i.rect().addClass("highcharts-scrollbar-button").add(s);this.chart.styledMode||a.attr({stroke:o.buttonBorderColor,"stroke-width":o.buttonBorderWidth,fill:o.buttonBackgroundColor}),a.attr(a.crisp({x:-.5,y:-.5,width:r+1,height:r+1,r:o.buttonBorderRadius},a.strokeWidth()));var l=i.path(t.swapXY([["M",r/2+(e?-1:1),r/2-3],["L",r/2+(e?-1:1),r/2+3],["L",r/2+(e?2:-2),r/2]],o.vertical)).addClass("highcharts-scrollbar-arrow").add(n[e]);this.chart.styledMode||l.attr({fill:o.buttonArrowColor})}},t.prototype.init=function(t,e,i){this.scrollbarButtons=[],this.renderer=t,this.userOptions=e,this.options=d(n,r.scrollbar,e),this.options.margin=u(this.options.margin,10),this.chart=i,this.size=u(this.options.size,this.options.height),e.enabled&&(this.render(),this.addEvents())},t.prototype.mouseDownHandler=function(t){var e=this.chart.pointer.normalize(t),i=this.cursorToScrollbarPosition(e);this.chartX=i.chartX,this.chartY=i.chartY,this.initPositions=[this.from,this.to],this.grabbedCenter=!0},t.prototype.mouseMoveHandler=function(t){var e,i=this.chart.pointer.normalize(t),n=this.options.vertical?"chartY":"chartX",o=this.initPositions||[];this.grabbedCenter&&(!t.touches||0!==t.touches[0][n])&&(e=this.cursorToScrollbarPosition(i)[n]-this[n],this.hasDragged=!0,this.updatePosition(o[0]+e,o[1]+e),this.hasDragged&&h(this,"changed",{from:this.from,to:this.to,trigger:"scrollbar",DOMType:t.type,DOMEvent:t}))},t.prototype.mouseUpHandler=function(t){this.hasDragged&&h(this,"changed",{from:this.from,to:this.to,trigger:"scrollbar",DOMType:t.type,DOMEvent:t}),this.grabbedCenter=this.hasDragged=this.chartX=this.chartY=null},t.prototype.position=function(t,e,i,n){var o=this.options,r=o.buttonsEnabled,s=o.margin,a=void 0===s?0:s,l=o.vertical,c=this.rendered?"animate":"attr",h=n,d=0;this.group.show(),this.x=t,this.y=e+this.trackBorderWidth,this.width=i,this.height=n,this.xOffset=h,this.yOffset=d,l?(this.width=this.yOffset=i=d=this.size,this.xOffset=h=0,this.yOffset=d=r?this.size:0,this.barWidth=n-(r?2*i:0),this.x=t+=a):(this.height=n=this.size,this.xOffset=h=r?this.size:0,this.barWidth=i-(r?2*n:0),this.y=this.y+a),this.group[c]({translateX:t,translateY:this.y}),this.track[c]({width:i,height:n}),this.scrollbarButtons[1][c]({translateX:l?0:i-h,translateY:l?n-d:0})},t.prototype.removeEvents=function(){this._events.forEach(function(t){p.apply(null,t)}),this._events.length=0},t.prototype.render=function(){var e=this.renderer,i=this.options,n=this.size,o=this.chart.styledMode,r=e.g("scrollbar").attr({zIndex:i.zIndex}).hide().add();this.group=r,this.track=e.rect().addClass("highcharts-scrollbar-track").attr({r:i.trackBorderRadius||0,height:n,width:n}).add(r),o||this.track.attr({fill:i.trackBackgroundColor,stroke:i.trackBorderColor,"stroke-width":i.trackBorderWidth});var s=this.trackBorderWidth=this.track.strokeWidth();this.track.attr({x:-s%2/2,y:-s%2/2}),this.scrollbarGroup=e.g().add(r),this.scrollbar=e.rect().addClass("highcharts-scrollbar-thumb").attr({height:n-s,width:n-s,r:i.barBorderRadius||0}).add(this.scrollbarGroup),this.scrollbarRifles=e.path(t.swapXY([["M",-3,n/4],["L",-3,2*n/3],["M",0,n/4],["L",0,2*n/3],["M",3,n/4],["L",3,2*n/3]],i.vertical)).addClass("highcharts-scrollbar-rifles").add(this.scrollbarGroup),o||(this.scrollbar.attr({fill:i.barBackgroundColor,stroke:i.barBorderColor,"stroke-width":i.barBorderWidth}),this.scrollbarRifles.attr({stroke:i.rifleColor,"stroke-width":1})),this.scrollbarStrokeWidth=this.scrollbar.strokeWidth(),this.scrollbarGroup.translate(-this.scrollbarStrokeWidth%2/2,-this.scrollbarStrokeWidth%2/2),this.drawScrollbarButton(0),this.drawScrollbarButton(1)},t.prototype.setRange=function(t,e){var i,n,o=this.options,r=o.vertical,s=o.minWidth,c=this.barWidth,h=!this.rendered||this.hasDragged||this.chart.navigator&&this.chart.navigator.hasDragged?"attr":"animate";if(l(c)){var d=c*Math.min(e,1);i=Math.ceil(c*(t=Math.max(t,0))),this.calculatedWidth=n=a(d-i),n=1?this.group.hide():this.group.show()),this.rendered=!0}},t.prototype.shouldUpdateExtremes=function(t){return u(this.options.liveRedraw,e.svg&&!e.isTouchDevice&&!this.chart.boosted)||"mouseup"===t||"touchend"===t||!l(t)},t.prototype.trackClick=function(t){var e=this.chart.pointer.normalize(t),i=this.to-this.from,n=this.y+this.scrollbarTop,o=this.x+this.scrollbarLeft;this.options.vertical&&e.chartY>n||!this.options.vertical&&e.chartX>o?this.updatePosition(this.from+i,this.to+i):this.updatePosition(this.from-i,this.to-i),h(this,"changed",{from:this.from,to:this.to,trigger:"scrollbar",DOMEvent:t})},t.prototype.update=function(t){this.destroy(),this.init(this.chart.renderer,d(!0,this.options,t),this.chart)},t.prototype.updatePosition=function(t,e){e>1&&(t=a(1-a(e-t)),e=1),t<0&&(e=a(e-t),t=0),this.from=t,this.to=e},t.defaultOptions=n,t}();return r.scrollbar=d(!0,g.defaultOptions,r.scrollbar),g}),i(e,"Stock/Navigator/Navigator.js",[e["Core/Axis/Axis.js"],e["Core/Defaults.js"],e["Core/Globals.js"],e["Core/Axis/NavigatorAxisComposition.js"],e["Stock/Navigator/NavigatorComposition.js"],e["Stock/Scrollbar/Scrollbar.js"],e["Core/Utilities.js"]],function(t,e,i,n,o,r,s){var a=e.defaultOptions,l=i.hasTouch,c=i.isTouchDevice,h=s.addEvent,d=s.clamp,u=s.correctFloat,p=s.defined,g=s.destroyObjectProperties,m=s.erase,f=s.extend,v=s.find,y=s.fireEvent,b=s.isArray,x=s.isNumber,A=s.merge,w=s.pick,C=s.removeEvent,E=s.splat;function T(t){for(var e=[],i=1;iC&&(this.grabbedLeft?i=h.toPixels(k-C-g,!0):this.grabbedRight&&(n=h.toPixels(S+C+g,!0))),this.zoomedMax=d(Math.max(i,n),0,M),this.zoomedMin=d(this.fixedWidth?this.zoomedMax-this.fixedWidth:Math.min(i,n),0,M),this.range=this.zoomedMax-this.zoomedMin,M=Math.round(this.zoomedMax);var D=Math.round(this.zoomedMin);f&&(this.navigatorGroup.attr({visibility:"inherit"}),l=v&&!this.hasDragged?"animate":"attr",this.drawMasks(D,M,b,l),this.drawOutline(D,M,b,l),this.navigatorOptions.handles.enabled&&(this.drawHandle(D,0,b,l),this.drawHandle(M,1,b,l))),this.scrollbar&&(b?(s=this.top-E,r=this.left-T+(f||!m.opposite?0:(m.titleOffset||0)+m.axisTitleMargin),T=a+2*E):(s=this.top+(f?this.height:-T),r=this.left-E),this.scrollbar.position(r,s,o,T),this.scrollbar.setRange(this.zoomedMin/(a||1),this.zoomedMax/(a||1))),this.rendered=!0,y(this,"afterRender")}},e.prototype.addMouseEvents=function(){var t,e,i=this,n=i.chart,o=n.container,r=[];i.mouseMoveHandler=t=function(t){i.onMouseMove(t)},i.mouseUpHandler=e=function(t){i.onMouseUp(t)},(r=i.getPartsEvents("mousedown")).push(h(n.renderTo,"mousemove",t),h(o.ownerDocument,"mouseup",e)),l&&(r.push(h(n.renderTo,"touchmove",t),h(o.ownerDocument,"touchend",e)),r.concat(i.getPartsEvents("touchstart"))),i.eventsToUnbind=r,i.series&&i.series[0]&&r.push(h(i.series[0].xAxis,"foundExtremes",function(){n.navigator.modifyNavigatorAxisExtremes()}))},e.prototype.getPartsEvents=function(t){var e=this,i=[];return["shades","handles"].forEach(function(n){e[n].forEach(function(o,r){i.push(h(o.element,t,function(t){e[n+"Mousedown"](t,r)}))})}),i},e.prototype.shadesMousedown=function(t,e){t=this.chart.pointer.normalize(t);var i,n,o,r,s=this.chart,a=this.xAxis,l=this.zoomedMin,c=this.size,h=this.range,d=this.left,u=t.chartX;s.inverted&&(u=t.chartY,d=this.top),1===e?(this.grabbedCenter=u,this.fixedWidth=h,this.dragOffset=u-l):(r=u-d-h/2,0===e?r=Math.max(0,r):2===e&&r+h>=c&&(r=c-h,this.reversedExtremes?(r-=h,n=this.getUnionExtremes().dataMin):i=this.getUnionExtremes().dataMax),r!==l&&(this.fixedWidth=h,p((o=a.navigatorAxis.toFixedRange(r,r+h,n,i)).min)&&s.xAxis[0].setExtremes(Math.min(o.min,o.max),Math.max(o.min,o.max),!0,null,{trigger:"navigator"})))},e.prototype.handlesMousedown=function(t,e){t=this.chart.pointer.normalize(t);var i=this.chart,n=i.xAxis[0],o=this.reversedExtremes;0===e?(this.grabbedLeft=!0,this.otherHandlePos=this.zoomedMax,this.fixedExtreme=o?n.min:n.max):(this.grabbedRight=!0,this.otherHandlePos=this.zoomedMin,this.fixedExtreme=o?n.max:n.min),i.fixedRange=null},e.prototype.onMouseMove=function(t){var e,i=this,n=i.chart,o=i.navigatorSize,r=i.range,s=i.dragOffset,a=n.inverted,l=i.left;(!t.touches||0!==t.touches[0].pageX)&&(e=(t=n.pointer.normalize(t)).chartX,a&&(l=i.top,e=t.chartY),i.grabbedLeft?(i.hasDragged=!0,i.render(0,0,e-l,i.otherHandlePos)):i.grabbedRight?(i.hasDragged=!0,i.render(0,0,i.otherHandlePos,e-l)):i.grabbedCenter&&(i.hasDragged=!0,eo+s-r&&(e=o+s-r),i.render(0,0,e-s,e-s+r)),i.hasDragged&&i.scrollbar&&w(i.scrollbar.options.liveRedraw,!c&&!this.chart.boosted)&&(t.DOMType=t.type,setTimeout(function(){i.onMouseUp(t)},0)))},e.prototype.onMouseUp=function(t){var e,i,n,o,r,s,a=this.chart,l=this.xAxis,c=this.scrollbar,h=t.DOMEvent||t,d=a.inverted,u=this.rendered&&!this.hasDragged?"animate":"attr";(this.hasDragged&&(!c||!c.hasDragged)||"scrollbar"===t.trigger)&&(n=this.getUnionExtremes(),this.zoomedMin===this.otherHandlePos?o=this.fixedExtreme:this.zoomedMax===this.otherHandlePos&&(r=this.fixedExtreme),this.zoomedMax===this.size&&(r=this.reversedExtremes?n.dataMin:n.dataMax),0===this.zoomedMin&&(o=this.reversedExtremes?n.dataMax:n.dataMin),p((s=l.navigatorAxis.toFixedRange(this.zoomedMin,this.zoomedMax,o,r)).min)&&a.xAxis[0].setExtremes(Math.min(s.min,s.max),Math.max(s.min,s.max),!0,!this.hasDragged&&null,{trigger:"navigator",triggerOp:"navigator-drag",DOMEvent:h})),"mousemove"!==t.DOMType&&"touchmove"!==t.DOMType&&(this.grabbedLeft=this.grabbedRight=this.grabbedCenter=this.fixedWidth=this.fixedExtreme=this.otherHandlePos=this.hasDragged=this.dragOffset=null),this.navigatorEnabled&&x(this.zoomedMin)&&x(this.zoomedMax)&&(i=Math.round(this.zoomedMin),e=Math.round(this.zoomedMax),this.shades&&this.drawMasks(i,e,d,u),this.outline&&this.drawOutline(i,e,d,u),this.navigatorOptions.handles.enabled&&Object.keys(this.handles).length===this.handles.length&&(this.drawHandle(i,0,d,u),this.drawHandle(e,1,d,u)))},e.prototype.removeEvents=function(){this.eventsToUnbind&&(this.eventsToUnbind.forEach(function(t){t()}),this.eventsToUnbind=void 0),this.removeBaseSeriesEvents()},e.prototype.removeBaseSeriesEvents=function(){var t=this.baseSeries||[];this.navigatorEnabled&&t[0]&&(!1!==this.navigatorOptions.adaptToUpdatedData&&t.forEach(function(t){C(t,"updatedData",this.updatedDataHandler)},this),t[0].xAxis&&C(t[0].xAxis,"foundExtremes",this.modifyBaseAxisExtremes))},e.prototype.init=function(e){var i=e.options,o=i.navigator||{},s=o.enabled,a=i.scrollbar||{},l=a.enabled,c=s&&o.height||0,d=l&&a.height||0,u=a.buttonsEnabled&&d||0;this.handles=[],this.shades=[],this.chart=e,this.setBaseSeries(),this.height=c,this.scrollbarHeight=d,this.scrollButtonSize=u,this.scrollbarEnabled=l,this.navigatorEnabled=s,this.navigatorOptions=o,this.scrollbarOptions=a,this.opposite=w(o.opposite,!!(!s&&e.inverted));var p=this,g=p.baseSeries,m=e.xAxis.length,f=e.yAxis.length,v=g&&g[0]&&g[0].xAxis||e.xAxis[0]||{options:{}};if(e.isDirtyBox=!0,p.navigatorEnabled?(p.xAxis=new t(e,A({breaks:v.options.breaks,ordinal:v.options.ordinal},o.xAxis,{id:"navigator-x-axis",yAxis:"navigator-y-axis",type:"datetime",index:m,isInternal:!0,offset:0,keepOrdinalPadding:!0,startOnTick:!1,endOnTick:!1,minPadding:0,maxPadding:0,zoomEnabled:!1},e.inverted?{offsets:[u,0,-u,0],width:c}:{offsets:[0,-u,0,u],height:c}),"xAxis"),p.yAxis=new t(e,A(o.yAxis,{id:"navigator-y-axis",alignTicks:!1,offset:0,index:f,isInternal:!0,reversed:w(o.yAxis&&o.yAxis.reversed,e.yAxis[0]&&e.yAxis[0].reversed,!1),zoomEnabled:!1},e.inverted?{width:c}:{height:c}),"yAxis"),g||o.series.data?p.updateNavigatorSeries(!1):0===e.series.length&&(p.unbindRedraw=h(e,"beforeRedraw",function(){e.series.length>0&&!p.series&&(p.setBaseSeries(),p.unbindRedraw())})),p.reversedExtremes=e.inverted&&!p.xAxis.reversed||!e.inverted&&p.xAxis.reversed,p.renderElements(),p.addMouseEvents()):(p.xAxis={chart:e,navigatorAxis:{fake:!0},translate:function(t,i){var n=e.xAxis[0],o=n.getExtremes(),r=n.len-2*u,s=T("min",n.options.min,o.dataMin),a=T("max",n.options.max,o.dataMax)-s;return i?t*a/r+s:r*(t-s)/a},toPixels:function(t){return this.translate(t)},toValue:function(t){return this.translate(t,!0)}},p.xAxis.navigatorAxis.axis=p.xAxis,p.xAxis.navigatorAxis.toFixedRange=n.prototype.toFixedRange.bind(p.xAxis.navigatorAxis)),e.options.scrollbar.enabled){var y=A(e.options.scrollbar,{vertical:e.inverted});!x(y.margin)&&p.navigatorEnabled&&(y.margin=e.inverted?-3:3),e.scrollbar=p.scrollbar=new r(e.renderer,y,e),h(p.scrollbar,"changed",function(t){var e=p.size,i=e*this.to,n=e*this.from;p.hasDragged=p.scrollbar.hasDragged,p.render(0,0,n,i),this.shouldUpdateExtremes(t.DOMType)&&setTimeout(function(){p.onMouseUp(t)})})}p.addBaseSeriesEvents(),p.addChartEvents()},e.prototype.getUnionExtremes=function(t){var e,i=this.chart.xAxis[0],n=this.xAxis,o=n.options,r=i.options;return t&&null===i.dataMin||(e={dataMin:w(o&&o.min,T("min",r.min,i.dataMin,n.dataMin,n.min)),dataMax:w(o&&o.max,T("max",r.max,i.dataMax,n.dataMax,n.max))}),e},e.prototype.setBaseSeries=function(t,e){var i=this.chart,n=this.baseSeries=[];t=t||i.options&&i.options.navigator.baseSeries||(i.series.length?v(i.series,function(t){return!t.options.isInternal}).index:0),(i.series||[]).forEach(function(e,i){!e.options.isInternal&&(e.options.showInNavigator||(i===t||e.options.id===t)&&!1!==e.options.showInNavigator)&&n.push(e)}),this.xAxis&&!this.xAxis.navigatorAxis.fake&&this.updateNavigatorSeries(!0,e)},e.prototype.updateNavigatorSeries=function(t,e){var i,n,o,r=this,s=r.chart,l=r.baseSeries,c={enableMouseTracking:!1,index:null,linkedTo:null,group:"nav",padXAxis:!1,xAxis:"navigator-x-axis",yAxis:"navigator-y-axis",showInLegend:!1,stacking:void 0,isInternal:!0,states:{inactive:{opacity:1}}},h=r.series=(r.series||[]).filter(function(t){var e=t.baseSeries;return!(0>l.indexOf(e))||(e&&(C(e,"updatedData",r.updatedDataHandler),delete e.navigatorSeries),t.chart&&t.destroy(),!1)}),d=r.navigatorOptions.series;l&&l.length&&l.forEach(function(t){var u=t.navigatorSeries,p=f({color:t.color,visible:t.visible},b(d)?a.navigator.series:d);if(!u||!1!==r.navigatorOptions.adaptToUpdatedData){c.name="Navigator "+l.length,o=(i=t.options||{}).navigatorOptions||{},p.dataLabels=E(p.dataLabels),(n=A(i,c,p,o)).pointRange=w(p.pointRange,o.pointRange,a.plotOptions[n.type||"line"].pointRange);var g=o.data||p.data;r.hasNavigatorData=r.hasNavigatorData||!!g,n.data=g||i.data&&i.data.slice(0),u&&u.options?u.update(n,e):(t.navigatorSeries=s.initSeries(n),t.navigatorSeries.baseSeries=t,h.push(t.navigatorSeries))}}),(d.data&&!(l&&l.length)||b(d))&&(r.hasNavigatorData=!1,(d=E(d)).forEach(function(t,e){c.name="Navigator "+(h.length+1),(n=A(a.navigator.series,{color:s.series[e]&&!s.series[e].options.isInternal&&s.series[e].color||s.options.colors[e]||s.options.colors[0]},c,t)).data=t.data,n.data&&(r.hasNavigatorData=!0,h.push(s.initSeries(n)))})),t&&this.addBaseSeriesEvents()},e.prototype.addBaseSeriesEvents=function(){var t=this,e=this,i=e.baseSeries||[];i[0]&&i[0].xAxis&&i[0].eventsToUnbind.push(h(i[0].xAxis,"foundExtremes",this.modifyBaseAxisExtremes)),i.forEach(function(i){i.eventsToUnbind.push(h(i,"show",function(){this.navigatorSeries&&this.navigatorSeries.setVisible(!0,!1)})),i.eventsToUnbind.push(h(i,"hide",function(){this.navigatorSeries&&this.navigatorSeries.setVisible(!1,!1)})),!1!==t.navigatorOptions.adaptToUpdatedData&&i.xAxis&&i.eventsToUnbind.push(h(i,"updatedData",t.updatedDataHandler)),i.eventsToUnbind.push(h(i,"remove",function(){this.navigatorSeries&&(m(e.series,this.navigatorSeries),p(this.navigatorSeries.options)&&this.navigatorSeries.remove(!1),delete this.navigatorSeries)}))})},e.prototype.getBaseSeriesMin=function(t){return this.baseSeries.reduce(function(t,e){return Math.min(t,e.xData&&e.xData.length?e.xData[0]:t)},t)},e.prototype.modifyNavigatorAxisExtremes=function(){var t=this.xAxis;if(void 0!==t.getExtremes){var e=this.getUnionExtremes(!0);e&&(e.dataMin!==t.min||e.dataMax!==t.max)&&(t.min=e.dataMin,t.max=e.dataMax)}},e.prototype.modifyBaseAxisExtremes=function(){var t,e,i=this.chart.navigator,n=this.getExtremes(),o=n.min,r=n.max,s=n.dataMin,a=n.dataMax,l=r-o,c=i.stickToMin,h=i.stickToMax,d=w(this.options.overscroll,0),u=i.series&&i.series[0],p=!!this.setExtremes;!(this.eventArgs&&"rangeSelectorButton"===this.eventArgs.trigger)&&(c&&(t=(e=s)+l),h&&(t=a+d,c||(e=Math.max(s,t-l,i.getBaseSeriesMin(u&&u.xData?u.xData[0]:-Number.MAX_VALUE)))),p&&(c||h)&&x(e)&&(this.min=this.userMin=e,this.max=this.userMax=t)),i.stickToMin=i.stickToMax=null},e.prototype.updatedDataHandler=function(){var t=this.chart.navigator,e=this.navigatorSeries,i=t.reversedExtremes?0===Math.round(t.zoomedMin):Math.round(t.zoomedMax)>=Math.round(t.size);t.stickToMax=w(this.chart.options.navigator&&this.chart.options.navigator.stickToMax,i),t.stickToMin=t.shouldStickToMin(this,t),e&&!t.hasNavigatorData&&(e.options.pointStart=this.xData[0],e.setData(this.options.data,!1,null,!1))},e.prototype.shouldStickToMin=function(t,e){var i=e.getBaseSeriesMin(t.xData[0]),n=t.xAxis,o=n.max,r=n.min,s=n.options.range;return!!(x(o)&&x(r))&&(s&&o-i>0?o-i=+e)}function x(t,e){var i=t.series,n=i.chart,o=n.options.accessibility.point||{},r=i.options.accessibility&&i.options.accessibility.point||{},s=i.tooltipOptions||{},a=n.options.lang;return m(e)?d(e,r.valueDecimals||o.valueDecimals||s.valueDecimals||-1,a.decimalPoint,a.accessibility.thousandsSep||a.thousandsSep):e}function A(t,e){var i=t[e];return t.chart.langFormat("accessibility.series."+e+"Description",{name:s(i),series:t})}function w(t){var e,i,n,o,s,a,l,c,d,u,p,g,m,f,b,A,w,C,E,T,M,S,k,P,D=t.series,B=D.chart.series.length>1||D.options.name,N=(C=(w=t.series).chart,T=(E=w.options.accessibility)&&E.point&&E.point.valueDescriptionFormat||C.options.accessibility.point.valueDescriptionFormat,S=(M=v(w.xAxis&&w.xAxis.options.accessibility&&w.xAxis.options.accessibility.enabled,!C.angular&&"flowmap"!==w.type))?(m=function(t){var e=t.series,i=e.chart,n=e.options.accessibility&&e.options.accessibility.point||{},o=i.options.accessibility.point||{},r=e.xAxis&&e.xAxis.dateTime;if(r){var s=r.getXDateFormat(t.x||0,i.options.tooltip.dateTimeLabelFormats),a=n.dateFormatter&&n.dateFormatter(t)||o.dateFormatter&&o.dateFormatter(t)||n.dateFormat||o.dateFormat||s;return i.time.dateFormat(a,t.x||0,void 0)}}(t),f=(t.series.xAxis||{}).categories&&y(t.category)&&(""+t.category).replace("
    "," "),b=y(t.id)&&0>(""+t.id).indexOf("highcharts-"),A="x, "+t.x,t.name||m||f||(b?t.id:A)):"",h(T,{point:t,index:y(t.index)?t.index+1:"",xDescription:S,value:(a=(s=(e=t).series).chart.options.accessibility.point||{},l=s.chart.options.accessibility&&s.chart.options.accessibility.point||{},c=s.tooltipOptions||{},d=l.valuePrefix||a.valuePrefix||c.valuePrefix||"",u=l.valueSuffix||a.valueSuffix||c.valueSuffix||"",p=void 0!==e.value?"value":"y",g=x(e,e[p]),e.isNull?s.chart.langFormat("accessibility.series.nullPointValue",{point:e}):s.pointArrayMap?(i=d||"",n=u||"",o=function(t){var o=x(e,v(e[t],e.options[t]));return void 0!==o?t+": "+i+o+n:o},e.series.pointArrayMap.reduce(function(t,e){var i=o(e);return i?t+(t.length?", ":"")+i:t},"")):d+g+u),separator:M?", ":""},C)),I=t.options&&t.options.accessibility&&t.options.accessibility.description,j=B?" "+D.name+".":"",O=(k=t.series.chart,(P=r(t)).length?k.langFormat("accessibility.series.pointAnnotationsDescription",{point:t,annotations:P}):"");return t.accessibility=t.accessibility||{},t.accessibility.valueDescription=N,N+(I?" "+I:"")+j+(O?" "+O:"")}function C(t){var e,i=t.chart,n=i.types||[],o=(e=(t.options.accessibility||{}).description)&&t.chart.langFormat("accessibility.series.description",{description:e,series:t})||"",r=function(e){return i[e]&&i[e].length>1&&t[e]},s=t.index+1,a=A(t,"xAxis"),l=A(t,"yAxis"),c={seriesNumber:s,series:t,chart:i},d=n.length>1?"Combination":"",u=i.langFormat("accessibility.series.summary."+t.type+d,c)||i.langFormat("accessibility.series.summary.default"+d,c),p=(r("yAxis")?" "+l+".":"")+(r("xAxis")?" "+a+".":"");return h(v(t.options.accessibility&&t.options.accessibility.descriptionFormat,i.options.accessibility.series.descriptionFormat,""),{seriesDescription:u,authorDescription:o?" "+o:"",axisDescription:p,series:t,chart:i,seriesNumber:s},void 0)}return{defaultPointDescriptionFormatter:w,defaultSeriesDescriptionFormatter:C,describeSeries:function(t){var e,i,n,o,r,s,d,m,x,A,E,T,M,S,k=t.chart,P=a(t),D=l(t),B=k.is3d&&k.is3d();D&&((D.lastChild!==P||B||u(D),e=t.options.accessibility||{},n=!b(t)&&!e.exposeAsGroupOnly,i=t.chart.options.accessibility.keyboardNavigation.seriesNavigation,o=!!(t.points&&(t.points.length<+i.pointNavigationEnabledThreshold||!1===i.pointNavigationEnabledThreshold)),r=t.chart.options.accessibility.point.describeNull,(n||o)&&t.points.forEach(function(e){var i,o,s,a,l,c,d,u,m,b,x,A,C=e.graphic&&e.graphic.element||(o=(i=e.series)&&i.chart,s=i&&i.is("sunburst"),a=e.isNull,l=o&&o.options.accessibility.point.describeNull,a&&!s&&l&&function(t){var e,i,n=t.series,o=(e=t.index,t.series&&t.series.data&&y(e)&&g(t.series.data,function(t){return!!(t&&void 0!==t.index&&t.index>e&&t.graphic&&t.graphic.element)})||null),r=o&&o.graphic,s=r?r.parentGroup:n.graph||n.group,a=o?{x:v(t.plotX,o.plotX,0),y:v(t.plotY,o.plotY,0)}:{x:v(t.plotX,0),y:v(t.plotY,0)},l=((i=t.series.chart.renderer.rect(a.x,a.y,1,1)).attr({class:"highcharts-a11y-mock-point",fill:"none",opacity:0,"fill-opacity":0,"stroke-opacity":0}),i);if(s&&s.element)return t.graphic=l,t.hasMockGraphic=!0,l.add(s),s.element.insertBefore(l.element,r?r.element:null),l.element}(e)),E=e.options&&e.options.accessibility&&!1===e.options.accessibility.enabled;if(C){if(e.isNull&&!r){C.setAttribute("aria-hidden",!0);return}(C.setAttribute("tabindex","-1"),t.chart.styledMode||(C.style.outline="none"),n&&!E)?(b=(null===(c=(m=e.series).options.accessibility)||void 0===c?void 0:c.point)||{},x=m.chart.options.accessibility.point||{},A=p(f(b.descriptionFormat)&&h(b.descriptionFormat,e,m.chart)||(null===(d=b.descriptionFormatter)||void 0===d?void 0:d.call(b,e))||f(x.descriptionFormat)&&h(x.descriptionFormat,e,m.chart)||(null===(u=x.descriptionFormatter)||void 0===u?void 0:u.call(x,e))||w(e),m.chart.renderer.forExport),C.setAttribute("role","img"),C.setAttribute("aria-label",A)):C.setAttribute("aria-hidden",!0)}}),c(k,D),m=(d=(s=t.chart).options.chart).options3d&&d.options3d.enabled,x=s.series.length>1,A=s.options.accessibility.series.describeSingleSeries,E=(t.options.accessibility||{}).exposeAsGroupOnly,!(m&&x)&&(x||A||E||b(t)))?(T=t.options.accessibility||{},S=(M=t.chart.options.accessibility).landmarkVerbosity,T.exposeAsGroupOnly?D.setAttribute("role","img"):"all"===S?D.setAttribute("role","region"):D.setAttribute("role","group"),D.setAttribute("tabindex","-1"),t.chart.styledMode||(D.style.outline="none"),D.setAttribute("aria-label",p(M.series.descriptionFormatter&&M.series.descriptionFormatter(t)||C(t),t.chart.renderer.forExport))):D.removeAttribute("aria-label"))}}}),i(e,"Accessibility/Components/SeriesComponent/NewDataAnnouncer.js",[e["Core/Globals.js"],e["Core/Utilities.js"],e["Accessibility/Utils/Announcer.js"],e["Accessibility/Utils/ChartUtilities.js"],e["Accessibility/Utils/EventProvider.js"],e["Accessibility/Components/SeriesComponent/SeriesDescriber.js"]],function(t,e,i,n,o,r){var s=e.addEvent,a=e.defined,l=n.getChartTitle,c=r.defaultPointDescriptionFormatter,h=r.defaultSeriesDescriptionFormatter;function d(t){return!!t.options.accessibility.announceNewData.enabled}var u=function(){function e(t){this.announcer=void 0,this.dirty={allSeries:{}},this.eventProvider=void 0,this.lastAnnouncementTime=0,this.chart=t}return e.prototype.init=function(){var t=this.chart,e=t.options.accessibility.announceNewData.interruptUser?"assertive":"polite";this.lastAnnouncementTime=0,this.dirty={allSeries:{}},this.eventProvider=new o,this.announcer=new i(t,e),this.addEventListeners()},e.prototype.destroy=function(){this.eventProvider.removeAddedEvents(),this.announcer.destroy()},e.prototype.addEventListeners=function(){var t=this,e=this.chart,i=this.eventProvider;i.addEvent(e,"afterApplyDrilldown",function(){t.lastAnnouncementTime=0}),i.addEvent(e,"afterAddSeries",function(e){t.onSeriesAdded(e.series)}),i.addEvent(e,"redraw",function(){t.announceDirtyData()})},e.prototype.onSeriesAdded=function(t){d(this.chart)&&(this.dirty.hasDirty=!0,this.dirty.allSeries[t.name+t.index]=t,this.dirty.newSeries=a(this.dirty.newSeries)?void 0:t)},e.prototype.announceDirtyData=function(){var t=this.chart,e=this;if(t.options.accessibility.announceNewData&&this.dirty.hasDirty){var i,n,o=this.dirty.newPoint;o&&(o=1===(n=(i=o).series.data.filter(function(t){return i.x===t.x&&i.y===t.y})).length?n[0]:i),this.queueAnnouncement(Object.keys(this.dirty.allSeries).map(function(t){return e.dirty.allSeries[t]}),this.dirty.newSeries,o),this.dirty={allSeries:{}}}},e.prototype.queueAnnouncement=function(t,e,i){var n=this,o=this.chart.options.accessibility.announceNewData;if(o.enabled){var r,s=+new Date,a=s-this.lastAnnouncementTime,l=Math.max(0,o.minAnnounceInterval-a),c=Object.keys(r=(this.queuedAnnouncement&&this.queuedAnnouncement.series||[]).concat(t||[]).reduce(function(t,e){return t[e.name+e.index]=e,t},{})).map(function(t){return r[t]}),h=this.buildAnnouncementMessage(c,e,i);h&&(this.queuedAnnouncement&&clearTimeout(this.queuedAnnouncementTimer),this.queuedAnnouncement={time:s,message:h,series:c},this.queuedAnnouncementTimer=setTimeout(function(){n&&n.announcer&&(n.lastAnnouncementTime=+new Date,n.announcer.announce(n.queuedAnnouncement.message),delete n.queuedAnnouncement,delete n.queuedAnnouncementTimer)},l))}},e.prototype.buildAnnouncementMessage=function(e,i,n){var o=this.chart,r=o.options.accessibility.announceNewData;if(r.announcementFormatter){var s=r.announcementFormatter(e,i,n);if(!1!==s)return s.length?s:null}var a=t.charts&&t.charts.length>1?"Multiple":"Single",d=i?"newSeriesAnnounce"+a:n?"newPointAnnounce"+a:"newDataAnnounce",u=l(o);return o.langFormat("accessibility.announceNewData."+d,{chartTitle:u,seriesDesc:i?h(i):null,pointDesc:n?c(n):null,point:n,series:i})},e}();return function(t){function i(t){var e=this.chart,i=this.newDataAnnouncer;i&&i.chart===e&&d(e)&&(i.dirty.newPoint=a(i.dirty.newPoint)?void 0:t.point)}function n(){var t=this.chart,e=this.newDataAnnouncer;e&&e.chart===t&&d(t)&&(e.dirty.hasDirty=!0,e.dirty.allSeries[this.name+this.index]=this)}t.composedMembers=[],t.compose=function(o){e.pushUnique(t.composedMembers,o)&&(s(o,"addPoint",i),s(o,"updatedData",n))}}(u||(u={})),u}),i(e,"Accessibility/ProxyElement.js",[e["Core/Globals.js"],e["Core/Utilities.js"],e["Accessibility/Utils/EventProvider.js"],e["Accessibility/Utils/ChartUtilities.js"],e["Accessibility/Utils/HTMLUtilities.js"]],function(t,e,i,n,o){var r=t.doc,s=e.attr,a=e.css,l=e.merge,c=n.fireEventOnWrappedOrUnwrappedElement,h=o.cloneMouseEvent,d=o.cloneTouchEvent,u=o.getFakeMouseEvent,p=o.removeElement;return function(){function t(t,e,n,o,s){void 0===n&&(n="button"),this.chart=t,this.target=e,this.eventProvider=new i;var a=this.innerElement=r.createElement(n),l=this.element=o?r.createElement(o):a;t.styledMode||this.hideElementVisually(a),o&&("li"!==o||t.styledMode||(l.style.listStyle="none"),l.appendChild(a),this.element=l),this.updateTarget(e,s)}return t.prototype.click=function(){var t=this.getTargetPosition();t.x+=t.width/2,t.y+=t.height/2;var e=u("click",t);c(this.target.click,e)},t.prototype.updateTarget=function(t,e){this.target=t,this.updateCSSClassName();var i=e||{};Object.keys(i).forEach(function(t){null===i[t]&&delete i[t]});var n=this.getTargetAttr(t.click,"aria-label");s(this.innerElement,l(n?{"aria-label":n}:{},i)),this.eventProvider.removeAddedEvents(),this.addProxyEventsToElement(this.innerElement,t.click),this.refreshPosition()},t.prototype.refreshPosition=function(){var t=this.getTargetPosition();a(this.innerElement,{width:(t.width||1)+"px",height:(t.height||1)+"px",left:(Math.round(t.x)||0)+"px",top:(Math.round(t.y)||0)+"px"})},t.prototype.remove=function(){this.eventProvider.removeAddedEvents(),p(this.element)},t.prototype.updateCSSClassName=function(){var t=function(t){return t.indexOf("highcharts-no-tooltip")>-1},e=this.chart.legend,i=e.group&&e.group.div,n=t(i&&i.className||""),o=t(this.getTargetAttr(this.target.click,"class")||"");this.innerElement.className=n||o?"highcharts-a11y-proxy-element highcharts-no-tooltip":"highcharts-a11y-proxy-element"},t.prototype.addProxyEventsToElement=function(t,e){var i=this;["click","touchstart","touchend","touchcancel","touchmove","mouseover","mouseenter","mouseleave","mouseout"].forEach(function(n){var o=0===n.indexOf("touch");i.eventProvider.addEvent(t,n,function(t){var i=o?d(t):h(t);e&&c(e,i),t.stopPropagation(),o||t.preventDefault()},{passive:!1})})},t.prototype.hideElementVisually=function(t){a(t,{borderWidth:0,backgroundColor:"transparent",cursor:"pointer",outline:"none",opacity:.001,filter:"alpha(opacity=1)",zIndex:999,overflow:"hidden",padding:0,margin:0,display:"block",position:"absolute","-ms-filter":"progid:DXImageTransform.Microsoft.Alpha(Opacity=1)"})},t.prototype.getTargetPosition=function(){var t=this.target.click,e=t.element?t.element:t,i=this.target.visual||e;if(this.chart.renderTo&&i&&i.getBoundingClientRect){var n=i.getBoundingClientRect(),o=this.chart.pointer.getChartPosition();return{x:(n.left-o.left)/o.scaleX,y:(n.top-o.top)/o.scaleY,width:n.right/o.scaleX-n.left/o.scaleX,height:n.bottom/o.scaleY-n.top/o.scaleY}}return{x:0,y:0,width:1,height:1}},t.prototype.getTargetAttr=function(t,e){return t.element?t.element.getAttribute(e):t.getAttribute(e)},t}()}),i(e,"Accessibility/ProxyProvider.js",[e["Core/Globals.js"],e["Core/Utilities.js"],e["Accessibility/Utils/ChartUtilities.js"],e["Accessibility/Utils/DOMElementProvider.js"],e["Accessibility/Utils/HTMLUtilities.js"],e["Accessibility/ProxyElement.js"]],function(t,e,i,n,o,r){var s=t.doc,a=e.attr,l=e.css,c=i.unhideChartElementFromAT,h=o.removeElement,d=o.removeChildNodes;return function(){function t(t){this.chart=t,this.domElementProvider=new n,this.groups={},this.groupOrder=[],this.beforeChartProxyPosContainer=this.createProxyPosContainer("before"),this.afterChartProxyPosContainer=this.createProxyPosContainer("after"),this.update()}return t.prototype.addProxyElement=function(t,e,i,n){void 0===i&&(i="button");var o=this.groups[t];if(!o)throw Error("ProxyProvider.addProxyElement: Invalid group key "+t);var s="ul"===o.type||"ol"===o.type?"li":void 0,a=new r(this.chart,e,i,s,n);return o.proxyContainerElement.appendChild(a.element),o.proxyElements.push(a),a},t.prototype.addGroup=function(t,e,i){void 0===e&&(e="div");var n,o=this.groups[t];if(o)return o.groupElement;var r=this.domElementProvider.createElement(e);return i&&i.role&&"div"!==e?(n=this.domElementProvider.createElement("div")).appendChild(r):n=r,n.className="highcharts-a11y-proxy-group highcharts-a11y-proxy-group-"+t.replace(/\W/g,"-"),this.groups[t]={proxyContainerElement:r,groupElement:n,type:e,proxyElements:[]},a(n,i||{}),"ul"===e&&r.setAttribute("role","list"),this.afterChartProxyPosContainer.appendChild(n),this.updateGroupOrder(this.groupOrder),n},t.prototype.updateGroupAttrs=function(t,e){var i=this.groups[t];if(!i)throw Error("ProxyProvider.updateGroupAttrs: Invalid group key "+t);a(i.groupElement,e)},t.prototype.updateGroupOrder=function(t){var e=this;if(this.groupOrder=t.slice(),!this.isDOMOrderGroupOrder()){var i=t.indexOf("series"),n=i>-1?t.slice(0,i):t,o=i>-1?t.slice(i+1):[],r=s.activeElement;["before","after"].forEach(function(t){var i=e["before"===t?"beforeChartProxyPosContainer":"afterChartProxyPosContainer"];d(i),("before"===t?n:o).forEach(function(t){var n=e.groups[t];n&&i.appendChild(n.groupElement)})}),(this.beforeChartProxyPosContainer.contains(r)||this.afterChartProxyPosContainer.contains(r))&&r&&r.focus&&r.focus()}},t.prototype.clearGroup=function(t){var e=this.groups[t];if(!e)throw Error("ProxyProvider.clearGroup: Invalid group key "+t);d(e.proxyContainerElement)},t.prototype.removeGroup=function(t){var e=this.groups[t];e&&(h(e.groupElement),delete this.groups[t])},t.prototype.update=function(){this.updatePosContainerPositions(),this.updateGroupOrder(this.groupOrder),this.updateProxyElementPositions()},t.prototype.updateProxyElementPositions=function(){Object.keys(this.groups).forEach(this.updateGroupProxyElementPositions.bind(this))},t.prototype.updateGroupProxyElementPositions=function(t){var e=this.groups[t];e&&e.proxyElements.forEach(function(t){return t.refreshPosition()})},t.prototype.destroy=function(){this.domElementProvider.destroyCreatedElements()},t.prototype.createProxyPosContainer=function(t){var e=this.domElementProvider.createElement("div");return e.setAttribute("aria-hidden","false"),e.className="highcharts-a11y-proxy-container"+(t?"-"+t:""),l(e,{top:"0",left:"0"}),this.chart.styledMode||(e.style.whiteSpace="nowrap",e.style.position="absolute"),e},t.prototype.getCurrentGroupOrderInDOM=function(){var t=this,e=function(e){for(var i=Object.keys(t.groups),n=i.length;n--;){var o=i[n],r=t.groups[o];if(r&&e===r.groupElement)return o}},i=function(t){for(var i=[],n=t.children,o=0;oc-l,C=h=({month:28,year:365})[m]*s*y-x&&o-36e5<=({month:31,year:366})[m]*s*y+x?S=!0:"ytd"===m?(S=u-d+x===o,T=!A):"all"===m&&(S=n.max-n.min>=c-l,M=!A&&v&&S);var k=!g&&(w||C||M||r),P=A&&S||S&&!v&&!T||A&&t.frozenStates;k?E=3:P&&(v=!0,E=2),b.state!==E&&(b.setState(E),i&&(i.options[a+1].disabled=k,2===E&&(i.selectedIndex=a+1)),0===E&&p===a&&t.setSelected())})},e.prototype.computeButtonRange=function(t){var e=t.type,i=t.count||1,n={millisecond:1,second:1e3,minute:6e4,hour:36e5,day:864e5,week:6048e5};n[e]?t._range=n[e]*i:("month"===e||"year"===e)&&(t._range=24*({month:30,year:365})[e]*36e5*i),t._offsetMin=b(t.offsetMin,0),t._offsetMax=b(t.offsetMax,0),t._range+=t._offsetMax-t._offsetMin},e.prototype.getInputValue=function(t){var e="min"===t?this.minInput:this.maxInput,i=this.chart.options.rangeSelector,n=this.chart.time;return e?("text"===e.type&&i.inputDateParser||this.defaultInputDateParser)(e.value,n.useUTC,n):0},e.prototype.setInputValue=function(t,e){var i=this.options,n=this.chart.time,o="min"===t?this.minInput:this.maxInput,r="min"===t?this.minDateBox:this.maxDateBox;if(o){var s=o.getAttribute("data-hc-time"),a=h(s)?Number(s):void 0;if(h(e)){var l=a;h(l)&&o.setAttribute("data-hc-time-previous",l),o.setAttribute("data-hc-time",e),a=e}o.value=n.dateFormat(this.inputTypeFormats[o.type]||i.inputEditDateFormat,a),r&&r.attr({text:n.dateFormat(i.inputDateFormat,a)})}},e.prototype.setInputExtremes=function(t,e,i){var n="min"===t?this.minInput:this.maxInput;if(n){var o=this.inputTypeFormats[n.type],r=this.chart.time;if(o){var s=r.dateFormat(o,e);n.min!==s&&(n.min=s);var a=r.dateFormat(o,i);n.max!==a&&(n.max=a)}}},e.prototype.showInput=function(t){var e="min"===t?this.minDateBox:this.maxDateBox,i="min"===t?this.minInput:this.maxInput;if(i&&e&&this.inputGroup){var n="text"===i.type,o=this.inputGroup,r=o.translateX,s=void 0===r?0:r,a=o.translateY,l=void 0===a?0:a,h=e.x,d=void 0===h?0:h,u=e.width,p=void 0===u?0:u,g=e.height,m=void 0===g?0:g,f=this.options.inputBoxWidth;c(i,{width:n?p+(f?-2:20)+"px":"auto",height:m-2+"px",border:"2px solid silver"}),n&&f?c(i,{left:s+d+"px",top:l+"px"}):c(i,{left:Math.min(Math.round(d+s-(i.offsetWidth-p)/2),this.chart.chartWidth-i.offsetWidth)+"px",top:l-(i.offsetHeight-m)/2+"px"})}},e.prototype.hideInput=function(t){var e="min"===t?this.minInput:this.maxInput;e&&c(e,{top:"-9999em",border:0,width:"1px",height:"1px"})},e.prototype.defaultInputDateParser=function(t,e,n){var o,r=t.split("/").join("-").split(" ").join("T");if(-1===r.indexOf("T")&&(r+="T00:00"),e)r+="Z";else if(i.isSafari&&!((o=r).length>6&&(o.lastIndexOf("-")===o.length-6||o.lastIndexOf("+")===o.length-6))){var s=new Date(r).getTimezoneOffset()/60;r+=s<=0?"+".concat(y(-s),":00"):"-".concat(y(s),":00")}var a=Date.parse(r);if(!m(a)){var l=t.split("-");a=Date.UTC(x(l[0]),x(l[1])-1,x(l[2]))}return n&&e&&m(a)&&(a+=n.getTimezoneOffset(a)),a},e.prototype.drawInput=function(t){var e=this.chart,n=this.div,o=this.inputGroup,r=this,a=e.renderer.style||{},h=e.renderer,d=e.options.rangeSelector,u=s.lang,g="min"===t;function v(){var i=r.maxInput,n=r.minInput,o=e.xAxis[0],s=e.scroller&&e.scroller.getUnionExtremes()||o,a=s.dataMin,l=s.dataMax,c=r.getInputValue(t);c!==Number(A.getAttribute("data-hc-time-previous"))&&m(c)&&(A.setAttribute("data-hc-time-previous",c),g&&i&&m(a)?c>Number(i.getAttribute("data-hc-time"))?c=void 0:cl&&(c=l)),void 0!==c&&o.setExtremes(g?c:o.min,g?o.max:c,void 0,void 0,{trigger:"rangeSelectorInput"}))}var y=u[g?"rangeSelectorFrom":"rangeSelectorTo"]||"",b=h.label(y,0).addClass("highcharts-range-label").attr({padding:y?2:0,height:y?d.inputBoxHeight:0}).add(o),x=h.label("",0).addClass("highcharts-range-input").attr({padding:2,width:d.inputBoxWidth,height:d.inputBoxHeight,"text-align":"center"}).on("click",function(){r.showInput(t),r[t+"Input"].focus()});e.styledMode||x.attr({stroke:d.inputBoxBorderColor,"stroke-width":1}),x.add(o);var A=l("input",{name:t,className:"highcharts-range-selector"},void 0,n);A.setAttribute("type",function(t){if(-1!==t.indexOf("%L"))return"text";var e=["a","A","d","e","w","b","B","m","o","y","Y"].some(function(e){return -1!==t.indexOf("%"+e)}),i=["H","k","I","l","M","S"].some(function(e){return -1!==t.indexOf("%"+e)});return e&&i?"datetime-local":e?"date":i?"time":"text"}(d.inputDateFormat||"%e %b %Y")),e.styledMode||(b.css(f(a,d.labelStyle)),x.css(f({color:"#333333"},a,d.inputStyle)),c(A,p({position:"absolute",border:0,boxShadow:"0 0 15px rgba(0,0,0,0.3)",width:"1px",height:"1px",padding:0,textAlign:"center",fontSize:a.fontSize,fontFamily:a.fontFamily,top:"-9999em"},d.inputStyle))),A.onfocus=function(){r.showInput(t)},A.onblur=function(){A===i.doc.activeElement&&v(),r.hideInput(t),r.setInputValue(t),A.blur()};var w=!1;return A.onchange=function(){w||(v(),r.hideInput(t),A.blur())},A.onkeypress=function(t){13===t.keyCode&&v()},A.onkeydown=function(t){w=!0,(38===t.keyCode||40===t.keyCode)&&v()},A.onkeyup=function(){w=!1},{dateBox:x,input:A,label:b}},e.prototype.getPosition=function(){var t=this.chart,e=t.options.rangeSelector,i="top"===e.verticalAlign?t.plotTop-t.axisOffset[0]:0;return{buttonTop:i+e.buttonPosition.y,inputTop:i+e.inputPosition.y-10}},e.prototype.getYTDExtremes=function(t,e,i){var n=this.chart.time,o=new n.Date(t),r=n.get("FullYear",o),s=i?n.Date.UTC(r,0,1):+new n.Date(r,0,1),a=o.getTime();return{max:Math.min(t||a,a),min:Math.max(e,s)}},e.prototype.render=function(t,e){var i=this.chart,n=i.renderer,o=i.container,r=i.options,s=r.rangeSelector,a=b(r.chart.style&&r.chart.style.zIndex,0)+1,c=s.inputEnabled,d=this.rendered;if(!1!==s.enabled){if(!d&&(this.group=n.g("range-selector-group").attr({zIndex:7}).add(),this.div=l("div",void 0,{position:"relative",height:0,zIndex:a}),this.buttonOptions.length&&this.renderButtons(),o.parentNode&&o.parentNode.insertBefore(this.div,o),c)){this.inputGroup=n.g("input-group").add(this.group);var u=this.drawInput("min");this.minDateBox=u.dateBox,this.minLabel=u.label,this.minInput=u.input;var p=this.drawInput("max");this.maxDateBox=p.dateBox,this.maxLabel=p.label,this.maxInput=p.input}if(c){this.setInputValue("min",t),this.setInputValue("max",e);var g=i.scroller&&i.scroller.getUnionExtremes()||i.xAxis[0]||{};if(h(g.dataMin)&&h(g.dataMax)){var m=i.xAxis[0].minRange||0;this.setInputExtremes("min",g.dataMin,Math.min(g.dataMax,this.getInputValue("max"))-m),this.setInputExtremes("max",Math.max(g.dataMin,this.getInputValue("min"))+m,g.dataMax)}if(this.inputGroup){var f=0;[this.minLabel,this.minDateBox,this.maxLabel,this.maxDateBox].forEach(function(t){if(t){var e=t.getBBox().width;e&&(t.attr({x:f}),f+=e+s.inputSpacing)}})}}this.alignElements(),this.rendered=!0}},e.prototype.renderButtons=function(){var t=this,e=this.buttons,n=this.chart,o=this.options,r=s.lang,c=n.renderer,h=f(o.buttonTheme),d=h&&h.states,u=h.width||28;delete h.width,delete h.states,this.buttonGroup=c.g("range-selector-buttons").add(this.group);var p=this.dropdown=l("select",void 0,{position:"absolute",width:"1px",height:"1px",padding:0,border:0,top:"-9999em",cursor:"pointer",opacity:1e-4},this.div);a(p,"touchstart",function(){p.style.fontSize="16px"}),[[i.isMS?"mouseover":"mouseenter"],[i.isMS?"mouseout":"mouseleave"],["change","click"]].forEach(function(i){var n=i[0],o=i[1];a(p,n,function(){var i=e[t.currentButtonIndex()];i&&g(i.element,o||n)})}),this.zoomText=c.label(r&&r.rangeSelectorZoom||"",0).attr({padding:o.buttonTheme.padding,height:o.buttonTheme.height,paddingLeft:0,paddingRight:0}).add(this.buttonGroup),this.chart.styledMode||(this.zoomText.css(o.labelStyle),h["stroke-width"]=b(h["stroke-width"],0)),l("option",{textContent:this.zoomText.textStr,disabled:!0},void 0,p),this.buttonOptions.forEach(function(i,n){l("option",{textContent:i.title||i.text},void 0,p),e[n]=c.button(i.text,0,0,function(e){var o,r=i.events&&i.events.click;r&&(o=r.call(i,e)),!1!==o&&t.clickButton(n),t.isActive=!0},h,d&&d.hover,d&&d.select,d&&d.disabled).attr({"text-align":"center",width:u}).add(t.buttonGroup),i.title&&e[n].attr("title",i.title)})},e.prototype.alignElements=function(){var t=this,e=this.buttonGroup,i=this.buttons,n=this.chart,o=this.group,r=this.inputGroup,s=this.options,a=this.zoomText,l=n.options,c=l.exporting&&!1!==l.exporting.enabled&&l.navigation&&l.navigation.buttonOptions,h=s.buttonPosition,d=s.inputPosition,u=s.verticalAlign,p=function(e,i){return c&&t.titleCollision(n)&&"top"===u&&"right"===i.align&&i.y-e.getBBox().height-12<(c.y||0)+(c.height||0)+n.spacing[0]?-40:0},g=n.plotLeft;if(o&&h&&d){var m=h.x-n.spacing[3];if(e){if(this.positionButtons(),!this.initialButtonGroupWidth){var f=0;a&&(f+=a.getBBox().width+5),i.forEach(function(t,e){f+=t.width||0,e!==i.length-1&&(f+=s.buttonSpacing)}),this.initialButtonGroupWidth=f}g-=n.spacing[3],this.updateButtonStates();var v=p(e,h);this.alignButtonGroup(v),o.placed=e.placed=n.hasLoaded}var y=0;r&&(y=p(r,d),"left"===d.align?m=g:"right"===d.align&&(m=-Math.max(n.axisOffset[1],-y)),r.align({y:d.y,width:r.getBBox().width,align:d.align,x:d.x+m-2},!0,n.spacingBox),r.placed=n.hasLoaded),this.handleCollision(y),o.align({verticalAlign:u},!0,n.spacingBox);var x=o.alignAttr.translateY,A=o.getBBox().height+20,w=0;if("bottom"===u){var C=n.legend&&n.legend.options;w=x-(A=A+(C&&"bottom"===C.verticalAlign&&C.enabled&&!C.floating?n.legend.legendHeight+b(C.margin,10):0)-20)-(s.floating?0:s.y)-(n.titleOffset?n.titleOffset[2]:0)-10}"top"===u?(s.floating&&(w=0),n.titleOffset&&n.titleOffset[0]&&(w=n.titleOffset[0]),w+=n.margin[0]-n.spacing[0]||0):"middle"===u&&(d.y===h.y?w=x:(d.y||h.y)&&(d.y<0||h.y<0?w-=Math.min(d.y,h.y):w=x-A)),o.translate(s.x,s.y+Math.floor(w));var E=this.minInput,T=this.maxInput,M=this.dropdown;s.inputEnabled&&E&&T&&(E.style.marginTop=o.translateY+"px",T.style.marginTop=o.translateY+"px"),M&&(M.style.marginTop=o.translateY+"px")}},e.prototype.alignButtonGroup=function(t,e){var i=this.chart,n=this.options,o=this.buttonGroup;this.buttons;var r=n.buttonPosition,s=i.plotLeft-i.spacing[3],a=r.x-i.spacing[3];"right"===r.align?a+=t-s:"center"===r.align&&(a-=s/2),o&&o.align({y:r.y,width:b(e,this.initialButtonGroupWidth),align:r.align,x:a},!0,i.spacingBox)},e.prototype.positionButtons=function(){var t=this.buttons,e=this.chart,i=this.options,n=this.zoomText,o=e.hasLoaded?"animate":"attr",r=i.buttonPosition,s=e.plotLeft,a=s;n&&"hidden"!==n.visibility&&(n[o]({x:b(s+r.x,s)}),a+=r.x+n.getBBox().width+5);for(var l=0,c=this.buttonOptions.length;lt&&(t=i.width)}),t},h=function(e){if(o&&n){var i=o.alignAttr.translateX+o.alignOptions.x-t+o.getBBox().x+2,r=o.alignOptions.width,a=n.alignAttr.translateX+n.getBBox().x;return a+e>i&&i+r>a&&s.y=-t?0:-t),translateY:o.alignAttr.translateY+n.getBBox().height+10})};if(n){if("always"===a){this.collapseButtons(t),h(c())&&d();return}"never"===a&&this.expandButtons()}o&&n?l.align===s.align||h(this.initialButtonGroupWidth+20)?"responsive"===a?(this.collapseButtons(t),h(c())&&d()):d():"responsive"===a&&this.expandButtons():n&&"responsive"===a&&(this.initialButtonGroupWidth>i.plotWidth?this.collapseButtons(t):this.expandButtons())},e.prototype.collapseButtons=function(t){var e=this.buttons,i=this.buttonOptions,n=this.chart,o=this.dropdown,r=this.options,s=this.zoomText,a=n.userOptions.rangeSelector&&n.userOptions.rangeSelector.buttonTheme||{},l=function(t){return{text:t?"".concat(t," ▾"):"▾",width:"auto",paddingLeft:b(r.buttonTheme.paddingLeft,a.padding,8),paddingRight:b(r.buttonTheme.paddingRight,a.padding,8)}};s&&s.hide();var c=!1;i.forEach(function(t,i){var n=e[i];2!==n.state?n.hide():(n.show(),n.attr(l(t.text)),c=!0)}),c||(o&&(o.selectedIndex=0),e[0].show(),e[0].attr(l(this.zoomText&&this.zoomText.textStr)));var h=r.buttonPosition.align;this.positionButtons(),("right"===h||"center"===h)&&this.alignButtonGroup(t,e[this.currentButtonIndex()].getBBox().width),this.showDropdown()},e.prototype.expandButtons=function(){var t=this.buttons,e=this.buttonOptions,i=this.options,n=this.zoomText;this.hideDropdown(),n&&n.show(),e.forEach(function(e,n){var o=t[n];o.show(),o.attr({text:e.text,width:i.buttonTheme.width||28,paddingLeft:b(i.buttonTheme.paddingLeft,"unset"),paddingRight:b(i.buttonTheme.paddingRight,"unset")}),o.state<2&&o.setState(0)}),this.positionButtons()},e.prototype.currentButtonIndex=function(){var t=this.dropdown;return t&&t.selectedIndex>0?t.selectedIndex-1:0},e.prototype.showDropdown=function(){var t=this.buttonGroup,e=this.buttons,i=this.chart,n=this.dropdown;if(t&&n){var o=t.translateX,r=t.translateY,s=e[this.currentButtonIndex()].getBBox();c(n,{left:i.plotLeft+(void 0===o?0:o)+"px",top:(void 0===r?0:r)+.5+"px",width:s.width+"px",height:s.height+"px"}),this.hasVisibleDropdown=!0}},e.prototype.hideDropdown=function(){var t=this.dropdown;t&&(c(t,{top:"-9999em",width:"1px",height:"1px"}),this.hasVisibleDropdown=!1)},e.prototype.getHeight=function(){var t=this.options,e=this.group,i=t.inputPosition,n=t.buttonPosition,o=t.y,r=n.y,s=i.y,a=0;return t.height?t.height:(this.alignElements(),a=e?e.getBBox(!0).height+13+o:0,(s<0&&r<0||s>0&&r>0)&&(a+=Math.abs(Math.min(s,r))),a)},e.prototype.titleCollision=function(t){return!(t.options.title.text||t.options.subtitle.text)},e.prototype.update=function(t){var e=this.chart;f(!0,e.options.rangeSelector,t),this.destroy(),this.init(e),this.render()},e.prototype.destroy=function(){var t=this,i=t.minInput,n=t.maxInput;t.eventsToUnbind&&(t.eventsToUnbind.forEach(function(t){return t()}),t.eventsToUnbind=void 0),d(t.buttons),i&&(i.onfocus=i.onblur=i.onchange=null),n&&(n.onfocus=n.onblur=n.onchange=null),v(t,function(i,n){i&&"chart"!==n&&(i instanceof o?i.destroy():i instanceof window.HTMLElement&&u(i)),i!==e.prototype[n]&&(t[n]=null)},this)},e}();return p(w.prototype,{defaultButtons:[{type:"month",count:1,text:"1m",title:"View 1 month"},{type:"month",count:3,text:"3m",title:"View 3 months"},{type:"month",count:6,text:"6m",title:"View 6 months"},{type:"ytd",text:"YTD",title:"View year to date"},{type:"year",count:1,text:"1y",title:"View 1 year"},{type:"all",text:"All",title:"View all"}],inputTypeFormats:{"datetime-local":"%Y-%m-%dT%H:%M:%S",date:"%Y-%m-%d",time:"%H:%M:%S"}}),w}),i(e,"Accessibility/Components/RangeSelectorComponent.js",[e["Stock/RangeSelector/RangeSelector.js"],e["Accessibility/AccessibilityComponent.js"],e["Accessibility/Utils/ChartUtilities.js"],e["Accessibility/Utils/Announcer.js"],e["Accessibility/KeyboardNavigationHandler.js"],e["Core/Utilities.js"]],function(t,e,i,n,o,r){var s,a=this&&this.__extends||(s=function(t,e){return(s=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Class extends value "+String(e)+" is not a constructor or null");function i(){this.constructor=t}s(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),l=i.unhideChartElementFromAT,c=i.getAxisRangeDescription,h=r.addEvent,d=r.attr,u=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.announcer=void 0,e}return a(e,t),e.prototype.init=function(){var t=this.chart;this.announcer=new n(t,"polite")},e.prototype.onChartUpdate=function(){var t=this.chart,e=this,i=t.rangeSelector;i&&(this.updateSelectorVisibility(),this.setDropdownAttrs(),i.buttons&&i.buttons.length&&i.buttons.forEach(function(t){e.setRangeButtonAttrs(t)}),i.maxInput&&i.minInput&&["minInput","maxInput"].forEach(function(n,o){var r=i[n];r&&(l(t,r),e.setRangeInputAttrs(r,"accessibility.rangeSelector."+(o?"max":"min")+"InputLabel"))}))},e.prototype.updateSelectorVisibility=function(){var t=this.chart,e=t.rangeSelector,i=e&&e.dropdown,n=e&&e.buttons||[],o=function(t){return t.setAttribute("aria-hidden",!0)};e&&e.hasVisibleDropdown&&i?(l(t,i),n.forEach(function(t){return o(t.element)})):(i&&o(i),n.forEach(function(e){return l(t,e.element)}))},e.prototype.setDropdownAttrs=function(){var t=this.chart,e=t.rangeSelector&&t.rangeSelector.dropdown;if(e){var i=t.langFormat("accessibility.rangeSelector.dropdownLabel",{rangeTitle:t.options.lang.rangeSelectorZoom});e.setAttribute("aria-label",i),e.setAttribute("tabindex",-1)}},e.prototype.setRangeButtonAttrs=function(t){d(t.element,{tabindex:-1,role:"button"})},e.prototype.setRangeInputAttrs=function(t,e){var i=this.chart;d(t,{tabindex:-1,"aria-label":i.langFormat(e,{chart:i})})},e.prototype.onButtonNavKbdArrowKey=function(t,e){var i=t.response,n=this.keyCodes,o=this.chart,r=o.options.accessibility.keyboardNavigation.wrapAround,s=e===n.left||e===n.up?-1:1;return o.highlightRangeSelectorButton(o.highlightedRangeSelectorItemIx+s)?i.success:r?(t.init(s),i.success):i[s>0?"next":"prev"]},e.prototype.onButtonNavKbdClick=function(t){var e=t.response,i=this.chart;return 3!==i.oldRangeSelectorItemState&&this.fakeClickEvent(i.rangeSelector.buttons[i.highlightedRangeSelectorItemIx].element),e.success},e.prototype.onAfterBtnClick=function(){var t=this.chart,e=c(t.xAxis[0]),i=t.langFormat("accessibility.rangeSelector.clickButtonAnnouncement",{chart:t,axisRangeDescription:e});i&&this.announcer.announce(i)},e.prototype.onInputKbdMove=function(t){var e=this.chart,i=e.rangeSelector,n=e.highlightedInputRangeIx=(e.highlightedInputRangeIx||0)+t;if(n>1||n<0){if(e.accessibility)return e.accessibility.keyboardNavigation.exiting=!0,e.accessibility.keyboardNavigation.tabindexContainer.focus(),e.accessibility.keyboardNavigation.move(t)}else if(i){var o=i[n?"maxDateBox":"minDateBox"],r=i[n?"maxInput":"minInput"];o&&r&&e.setFocusToElement(o,r)}return!0},e.prototype.onInputNavInit=function(t){var e=this,i=this,n=this.chart,o=t>0?0:1,r=n.rangeSelector,s=r&&r[o?"maxDateBox":"minDateBox"],a=r&&r.minInput,l=r&&r.maxInput,c=o?l:a;if(n.highlightedInputRangeIx=o,s&&a&&l){n.setFocusToElement(s,c),this.removeInputKeydownHandler&&this.removeInputKeydownHandler();var d=function(t){(t.which||t.keyCode)===e.keyCodes.tab&&i.onInputKbdMove(t.shiftKey?-1:1)&&(t.preventDefault(),t.stopPropagation())},u=h(a,"keydown",d),p=h(l,"keydown",d);this.removeInputKeydownHandler=function(){u(),p()}}},e.prototype.onInputNavTerminate=function(){var t=this.chart.rangeSelector||{};t.maxInput&&t.hideInput("max"),t.minInput&&t.hideInput("min"),this.removeInputKeydownHandler&&(this.removeInputKeydownHandler(),delete this.removeInputKeydownHandler)},e.prototype.initDropdownNav=function(){var t=this,e=this.chart,i=e.rangeSelector,n=i&&i.dropdown;i&&n&&(e.setFocusToElement(i.buttonGroup,n),this.removeDropdownKeydownHandler&&this.removeDropdownKeydownHandler(),this.removeDropdownKeydownHandler=h(n,"keydown",function(i){var n=(i.which||i.keyCode)===t.keyCodes.tab,o=e.accessibility;n&&(i.preventDefault(),i.stopPropagation(),o&&(o.keyboardNavigation.tabindexContainer.focus(),o.keyboardNavigation.move(i.shiftKey?-1:1)))}))},e.prototype.getRangeSelectorButtonNavigation=function(){var t=this.chart,e=this.keyCodes,i=this;return new o(t,{keyCodeMap:[[[e.left,e.right,e.up,e.down],function(t){return i.onButtonNavKbdArrowKey(this,t)}],[[e.enter,e.space],function(){return i.onButtonNavKbdClick(this)}]],validate:function(){return!!(t.rangeSelector&&t.rangeSelector.buttons&&t.rangeSelector.buttons.length)},init:function(e){var n=t.rangeSelector;if(n&&n.hasVisibleDropdown)i.initDropdownNav();else if(n){var o=n.buttons.length-1;t.highlightRangeSelectorButton(e>0?0:o)}},terminate:function(){i.removeDropdownKeydownHandler&&(i.removeDropdownKeydownHandler(),delete i.removeDropdownKeydownHandler)}})},e.prototype.getRangeSelectorInputNavigation=function(){var t=this.chart,e=this;return new o(t,{keyCodeMap:[],validate:function(){return!!(t.rangeSelector&&t.rangeSelector.inputGroup&&"hidden"!==t.rangeSelector.inputGroup.element.style.visibility&&!1!==t.options.rangeSelector.inputEnabled&&t.rangeSelector.minInput&&t.rangeSelector.maxInput)},init:function(t){e.onInputNavInit(t)},terminate:function(){e.onInputNavTerminate()}})},e.prototype.getKeyboardNavigation=function(){return[this.getRangeSelectorButtonNavigation(),this.getRangeSelectorInputNavigation()]},e.prototype.destroy=function(){this.removeDropdownKeydownHandler&&this.removeDropdownKeydownHandler(),this.removeInputKeydownHandler&&this.removeInputKeydownHandler(),this.announcer&&this.announcer.destroy()},e}(e);return function(e){var i=[];function n(t){var e=this.rangeSelector&&this.rangeSelector.buttons||[],i=this.highlightedRangeSelectorItemIx,n=this.rangeSelector&&this.rangeSelector.selected;return void 0!==i&&e[i]&&i!==n&&e[i].setState(this.oldRangeSelectorItemState||0),this.highlightedRangeSelectorItemIx=t,!!e[t]&&(this.setFocusToElement(e[t].box,e[t].element),t!==n&&(this.oldRangeSelectorItemState=e[t].state,e[t].setState(1)),!0)}function o(){var t=this.chart.accessibility;if(t&&t.components.rangeSelector)return t.components.rangeSelector.onAfterBtnClick()}e.compose=function(e,s){r.pushUnique(i,e)&&(e.prototype.highlightRangeSelectorButton=n),r.pushUnique(i,s)&&h(t,"afterBtnClick",o)}}(u||(u={})),u}),i(e,"Accessibility/Components/SeriesComponent/ForcedMarkers.js",[e["Core/Utilities.js"]],function(t){var e,i=t.addEvent,n=t.merge;return function(e){var o=[];function r(t){n(!0,t,{marker:{enabled:!0,states:{normal:{opacity:0}}}})}function s(t){return t.marker.states&&t.marker.states.normal&&t.marker.states.normal.opacity}function a(t){return!!(t._hasPointMarkers&&t.points&&t.points.length)}function l(){this.chart.styledMode&&(this.markerGroup&&this.markerGroup[this.a11yMarkersForced?"addClass":"removeClass"]("highcharts-a11y-markers-hidden"),a(this)&&this.points.forEach(function(t){t.graphic&&(t.graphic[t.hasForcedA11yMarker?"addClass":"removeClass"]("highcharts-a11y-marker-hidden"),t.graphic[!1===t.hasForcedA11yMarker?"addClass":"removeClass"]("highcharts-a11y-marker-visible"))}))}function c(t){this.resetA11yMarkerOptions=n(t.options.marker||{},this.userOptions.marker||{})}function h(){var t,e,i,o,l=this.options;(t=this,i=t.chart.options.accessibility.enabled,o=!1!==(t.options.accessibility&&t.options.accessibility.enabled),i&&o&&(e=t.chart.options.accessibility,t.points.length-1;n.highlightedPoint===this&&e!==t&&!o&&t&&t.focus&&t.focus()})},i.prototype.onDrillupAll=function(){var t,e=this.lastDrilledDownPoint,i=this.chart,n=e&&p(i,e.seriesName);e&&n&&h(e.x)&&h(e.y)&&(t=u(n,e.x,e.y)),t=t||y(i),i.container&&i.container.focus(),t&&t.highlight&&t.highlight(!1)},i.prototype.getKeyboardNavigationHandler=function(){var t=this,e=this.keyCodes,i=this.chart,n=i.inverted;return new r(i,{keyCodeMap:[[n?[e.up,e.down]:[e.left,e.right],function(e){return t.onKbdSideways(this,e)}],[n?[e.left,e.right]:[e.up,e.down],function(e){return t.onKbdVertical(this,e)}],[[e.enter,e.space],function(t,e){var n=i.highlightedPoint;return n&&(e.point=n,d(n.series,"click",e),n.firePointEvent("click")),this.response.success}],[[e.home],function(){return x(i),this.response.success}],[[e.end],function(){return b(i),this.response.success}],[[e.pageDown,e.pageUp],function(t){return i.highlightAdjacentSeries(t===e.pageDown),this.response.success}]],init:function(){return t.onHandlerInit(this)},validate:function(){return!!y(i)},terminate:function(){return t.onHandlerTerminate()}})},i.prototype.onKbdSideways=function(t,e){var i=this.keyCodes,n=e===i.right||e===i.down;return this.attemptHighlightAdjacentPoint(t,n)},i.prototype.onHandlerInit=function(t){var e=this.chart;return e.options.accessibility.keyboardNavigation.seriesNavigation.rememberPointFocus&&e.highlightedPoint?e.highlightedPoint.highlight():x(e),t.response.success},i.prototype.onKbdVertical=function(t,e){var i=this.chart,n=this.keyCodes,o=e===n.down||e===n.right,r=i.options.accessibility.keyboardNavigation.seriesNavigation;if(r.mode&&"serialize"===r.mode)return this.attemptHighlightAdjacentPoint(t,o);var s=i.highlightedPoint&&i.highlightedPoint.series.keyboardMoveVertical?"highlightAdjacentPointVertical":"highlightAdjacentSeries";return i[s](o),t.response.success},i.prototype.onHandlerTerminate=function(){var t=this.chart,e=t.options.accessibility.keyboardNavigation;t.tooltip&&t.tooltip.hide(0);var i=t.highlightedPoint&&t.highlightedPoint.series;i&&i.onMouseOut&&i.onMouseOut(),t.highlightedPoint&&t.highlightedPoint.onMouseOut&&t.highlightedPoint.onMouseOut(),e.seriesNavigation.rememberPointFocus||delete t.highlightedPoint},i.prototype.attemptHighlightAdjacentPoint=function(t,e){var i=this.chart,n=i.options.accessibility.keyboardNavigation.wrapAround;return i.highlightAdjacentPoint(e)?t.response.success:n&&(e?x(i):b(i))?t.response.success:t.response[e?"next":"prev"]},i.prototype.onSeriesDestroy=function(t){var e=this.chart;e.highlightedPoint&&e.highlightedPoint.series===t&&(delete e.highlightedPoint,e.focusElement&&e.focusElement.removeFocusBorder())},i.prototype.destroy=function(){this.eventProvider.removeAddedEvents()},i}();return function(t){var e=[];function i(t){var e,i,n=this.series,o=this.highlightedPoint,r=o&&m(o)||0,s=o&&o.series.points||[],a=this.series&&this.series[this.series.length-1],l=a&&a.points&&a.points[a.points.length-1];if(!n[0]||!n[0].points)return!1;if(o){if(e=n[o.series.index+(t?1:-1)],(i=s[r+(t?1:-1)])||!e||(i=e.points[t?0:e.points.length-1]),!i)return!1}else i=t?n[0].points[0]:l;return v(i)?(f(e=i.series)?this.highlightedPoint=t?e.points[e.points.length-1]:e.points[0]:this.highlightedPoint=i,this.highlightAdjacentPoint(t)):i.highlight()}function n(t){var e,i=this.highlightedPoint,n=1/0;return!!(h(i.plotX)&&h(i.plotY))&&(this.series.forEach(function(o){f(o)||o.points.forEach(function(r){if(h(r.plotY)&&h(r.plotX)&&r!==i){var s=r.plotY-i.plotY,a=Math.abs(r.plotX-i.plotX),l=Math.abs(s)*Math.abs(s)+a*a*4;o.yAxis&&o.yAxis.reversed&&(s*=-1),!(s<=0&&t||s>=0&&!t||l<5||v(r))&&l=0;--r)if(!v(i[r]))return i[r].highlight()}return!1}t.compose=function(t,c,h){if(o.pushUnique(e,t)){var d=t.prototype;d.highlightAdjacentPoint=i,d.highlightAdjacentPointVertical=n,d.highlightAdjacentSeries=r}if(o.pushUnique(e,c)&&(c.prototype.highlight=s),o.pushUnique(e,h)){var u=h.prototype;u.keyboardMoveVertical=!0,["column","gantt","pie"].forEach(function(t){l[t]&&(l[t].prototype.keyboardMoveVertical=!1)}),u.highlightNextValidPoint=a}}}(A||(A={})),A}),i(e,"Accessibility/Components/SeriesComponent/SeriesComponent.js",[e["Accessibility/AccessibilityComponent.js"],e["Accessibility/Utils/ChartUtilities.js"],e["Accessibility/Components/SeriesComponent/ForcedMarkers.js"],e["Accessibility/Components/SeriesComponent/NewDataAnnouncer.js"],e["Accessibility/Components/SeriesComponent/SeriesDescriber.js"],e["Accessibility/Components/SeriesComponent/SeriesKeyboardNavigation.js"]],function(t,e,i,n,o,r){var s,a=this&&this.__extends||(s=function(t,e){return(s=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Class extends value "+String(e)+" is not a constructor or null");function i(){this.constructor=t}s(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),l=e.hideSeriesFromAT,c=o.describeSeries;return function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return a(e,t),e.compose=function(t,e,o){n.compose(o),i.compose(o),r.compose(t,e,o)},e.prototype.init=function(){this.newDataAnnouncer=new n(this.chart),this.newDataAnnouncer.init(),this.keyboardNavigation=new r(this.chart,this.keyCodes),this.keyboardNavigation.init(),this.hideTooltipFromATWhenShown(),this.hideSeriesLabelsFromATWhenShown()},e.prototype.hideTooltipFromATWhenShown=function(){var t=this;this.chart.tooltip&&this.addEvent(this.chart.tooltip.constructor,"refresh",function(){this.chart===t.chart&&this.label&&this.label.element&&this.label.element.setAttribute("aria-hidden",!0)})},e.prototype.hideSeriesLabelsFromATWhenShown=function(){this.addEvent(this.chart,"afterDrawSeriesLabels",function(){this.series.forEach(function(t){t.labelBySeries&&t.labelBySeries.attr("aria-hidden",!0)})})},e.prototype.onChartRender=function(){this.chart.series.forEach(function(t){!1!==(t.options.accessibility&&t.options.accessibility.enabled)&&t.visible?c(t):l(t)})},e.prototype.getKeyboardNavigation=function(){return this.keyboardNavigation.getKeyboardNavigationHandler()},e.prototype.destroy=function(){this.newDataAnnouncer.destroy(),this.keyboardNavigation.destroy()},e}(t)}),i(e,"Accessibility/Components/ZoomComponent.js",[e["Accessibility/AccessibilityComponent.js"],e["Accessibility/Utils/ChartUtilities.js"],e["Accessibility/Utils/HTMLUtilities.js"],e["Accessibility/KeyboardNavigationHandler.js"],e["Core/Utilities.js"]],function(t,e,i,n,o){var r,s=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Class extends value "+String(e)+" is not a constructor or null");function i(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),a=e.unhideChartElementFromAT,l=i.getFakeMouseEvent,c=o.attr,h=o.pick;return function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.focusedMapNavButtonIx=-1,e}return s(e,t),e.prototype.init=function(){var t=this,e=this.chart;this.proxyProvider.addGroup("zoom","div"),["afterShowResetZoom","afterApplyDrilldown","drillupall"].forEach(function(i){t.addEvent(e,i,function(){t.updateProxyOverlays()})})},e.prototype.onChartUpdate=function(){var t=this.chart,e=this;t.mapNavigation&&t.mapNavigation.navButtons.forEach(function(i,n){a(t,i.element),e.setMapNavButtonAttrs(i.element,"accessibility.zoom.mapZoom"+(n?"Out":"In"))})},e.prototype.setMapNavButtonAttrs=function(t,e){var i=this.chart;c(t,{tabindex:-1,role:"button","aria-label":i.langFormat(e,{chart:i})})},e.prototype.onChartRender=function(){this.updateProxyOverlays()},e.prototype.updateProxyOverlays=function(){var t=this.chart;if(this.proxyProvider.clearGroup("zoom"),t.resetZoomButton&&this.createZoomProxyButton(t.resetZoomButton,"resetZoomProxyButton",t.langFormat("accessibility.zoom.resetZoomButton",{chart:t})),t.drillUpButton&&t.breadcrumbs&&t.breadcrumbs.list){var e=t.breadcrumbs.list[t.breadcrumbs.list.length-1];this.createZoomProxyButton(t.drillUpButton,"drillUpProxyButton",t.langFormat("accessibility.drillUpButton",{chart:t,buttonText:t.breadcrumbs.getButtonText(e)}))}},e.prototype.createZoomProxyButton=function(t,e,i){this[e]=this.proxyProvider.addProxyElement("zoom",{click:t},"button",{"aria-label":i,tabindex:-1})},e.prototype.getMapZoomNavigation=function(){var t=this.keyCodes,e=this.chart,i=this;return new n(e,{keyCodeMap:[[[t.up,t.down,t.left,t.right],function(t){return i.onMapKbdArrow(this,t)}],[[t.tab],function(t,e){return i.onMapKbdTab(this,e)}],[[t.space,t.enter],function(){return i.onMapKbdClick(this)}]],validate:function(){return!!(e.mapView&&e.mapNavigation&&e.mapNavigation.navButtons.length)},init:function(t){return i.onMapNavInit(t)}})},e.prototype.onMapKbdArrow=function(t,e){var i=this.chart,n=this.keyCodes,o=i.container,r=e===n.up||e===n.down,s=e===n.left||e===n.up?1:-1,a=(r?i.plotHeight:i.plotWidth)/10*s,c=10*Math.random(),h={x:o.offsetLeft+i.plotLeft+i.plotWidth/2+c,y:o.offsetTop+i.plotTop+i.plotHeight/2+c},d=r?{x:h.x,y:h.y+a}:{x:h.x+a,y:h.y};return[l("mousedown",h),l("mousemove",d),l("mouseup",d)].forEach(function(t){return o.dispatchEvent(t)}),t.response.success},e.prototype.onMapKbdTab=function(t,e){var i=this.chart,n=t.response,o=e.shiftKey,r=o&&!this.focusedMapNavButtonIx||!o&&this.focusedMapNavButtonIx;if(i.mapNavigation.navButtons[this.focusedMapNavButtonIx].setState(0),r)return i.mapView&&i.mapView.zoomBy(),n[o?"prev":"next"];this.focusedMapNavButtonIx+=o?-1:1;var s=i.mapNavigation.navButtons[this.focusedMapNavButtonIx];return i.setFocusToElement(s.box,s.element),s.setState(2),n.success},e.prototype.onMapKbdClick=function(t){var e=this.chart.mapNavigation.navButtons[this.focusedMapNavButtonIx].element;return this.fakeClickEvent(e),t.response.success},e.prototype.onMapNavInit=function(t){var e=this.chart,i=e.mapNavigation.navButtons[0],n=e.mapNavigation.navButtons[1],o=t>0?i:n;e.setFocusToElement(o.box,o.element),o.setState(2),this.focusedMapNavButtonIx=t>0?0:1},e.prototype.simpleButtonNavigation=function(t,e,i){var o=this.keyCodes,r=this,s=this.chart;return new n(s,{keyCodeMap:[[[o.tab,o.up,o.down,o.left,o.right],function(t,e){var i=t===o.tab&&e.shiftKey||t===o.left||t===o.up;return this.response[i?"prev":"next"]}],[[o.space,o.enter],function(){return h(i(this,s),this.response.success)}]],validate:function(){return s[t]&&s[t].box&&r[e].innerElement},init:function(){s.setFocusToElement(s[t].box,r[e].innerElement)}})},e.prototype.getKeyboardNavigation=function(){return[this.simpleButtonNavigation("resetZoomButton","resetZoomProxyButton",function(t,e){e.zoomOut()}),this.simpleButtonNavigation("drillUpButton","drillUpProxyButton",function(t,e){return e.drillUp(),t.response.prev}),this.getMapZoomNavigation()]},e}(t)}),i(e,"Accessibility/HighContrastMode.js",[e["Core/Globals.js"]],function(t){var e=t.doc,i=t.isMS,n=t.win;return{isHighContrastModeActive:function(){var t=/(Edg)/.test(n.navigator.userAgent);if(n.matchMedia&&t)return n.matchMedia("(-ms-high-contrast: active)").matches;if(i&&n.getComputedStyle){var o=e.createElement("div");o.style.backgroundImage="url(".concat("data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",")"),e.body.appendChild(o);var r=(o.currentStyle||n.getComputedStyle(o)).backgroundImage;return e.body.removeChild(o),"none"===r}return n.matchMedia&&n.matchMedia("(forced-colors: active)").matches},setHighContrastTheme:function(t){t.highContrastModeActive=!0;var e=t.options.accessibility.highContrastTheme;t.update(e,!1),t.series.forEach(function(t){var i=e.plotOptions[t.type]||{};t.update({color:i.color||"windowText",colors:[i.color||"windowText"],borderColor:i.borderColor||"window"}),t.points.forEach(function(t){t.options&&t.options.color&&t.update({color:i.color||"windowText",borderColor:i.borderColor||"window"},!1)})}),t.redraw()}}}),i(e,"Accessibility/HighContrastTheme.js",[],function(){return{chart:{backgroundColor:"window"},title:{style:{color:"windowText"}},subtitle:{style:{color:"windowText"}},colorAxis:{minColor:"windowText",maxColor:"windowText",stops:[]},colors:["windowText"],xAxis:{gridLineColor:"windowText",labels:{style:{color:"windowText"}},lineColor:"windowText",minorGridLineColor:"windowText",tickColor:"windowText",title:{style:{color:"windowText"}}},yAxis:{gridLineColor:"windowText",labels:{style:{color:"windowText"}},lineColor:"windowText",minorGridLineColor:"windowText",tickColor:"windowText",title:{style:{color:"windowText"}}},tooltip:{backgroundColor:"window",borderColor:"windowText",style:{color:"windowText"}},plotOptions:{series:{lineColor:"windowText",fillColor:"window",borderColor:"windowText",edgeColor:"windowText",borderWidth:1,dataLabels:{connectorColor:"windowText",color:"windowText",style:{color:"windowText",textOutline:"none"}},marker:{lineColor:"windowText",fillColor:"windowText"}},pie:{color:"window",colors:["window"],borderColor:"windowText",borderWidth:1},boxplot:{fillColor:"window"},candlestick:{lineColor:"windowText",fillColor:"window"},errorbar:{fillColor:"window"}},legend:{backgroundColor:"window",itemStyle:{color:"windowText"},itemHoverStyle:{color:"windowText"},itemHiddenStyle:{color:"#555"},title:{style:{color:"windowText"}}},credits:{style:{color:"windowText"}},drilldown:{activeAxisLabelStyle:{color:"windowText"},activeDataLabelStyle:{color:"windowText"}},navigation:{buttonOptions:{symbolStroke:"windowText",theme:{fill:"window"}}},rangeSelector:{buttonTheme:{fill:"window",stroke:"windowText",style:{color:"windowText"},states:{hover:{fill:"window",stroke:"windowText",style:{color:"windowText"}},select:{fill:"#444",stroke:"windowText",style:{color:"windowText"}}}},inputBoxBorderColor:"windowText",inputStyle:{backgroundColor:"window",color:"windowText"},labelStyle:{color:"windowText"}},navigator:{handles:{backgroundColor:"window",borderColor:"windowText"},outlineColor:"windowText",maskFill:"transparent",series:{color:"windowText",lineColor:"windowText"},xAxis:{gridLineColor:"windowText"}},scrollbar:{barBackgroundColor:"#444",barBorderColor:"windowText",buttonArrowColor:"windowText",buttonBackgroundColor:"window",buttonBorderColor:"windowText",rifleColor:"windowText",trackBackgroundColor:"window",trackBorderColor:"windowText"}}}),i(e,"Accessibility/Options/A11yDefaults.js",[],function(){return{accessibility:{enabled:!0,screenReaderSection:{beforeChartFormat:"<{headingTagName}>{chartTitle}
    {typeDescription}
    {chartSubtitle}
    {chartLongdesc}
    {playAsSoundButton}
    {viewTableButton}
    {xAxisDescription}
    {yAxisDescription}
    {annotationsTitle}{annotationsList}
    ",afterChartFormat:"{endOfChartMarker}",axisRangeDateFormat:"%Y-%m-%d %H:%M:%S"},series:{descriptionFormat:"{seriesDescription}{authorDescription}{axisDescription}",describeSingleSeries:!1,pointDescriptionEnabledThreshold:200},point:{valueDescriptionFormat:"{xDescription}{separator}{value}.",describeNull:!0},landmarkVerbosity:"all",linkedDescription:'*[data-highcharts-chart="{index}"] + .highcharts-description',keyboardNavigation:{enabled:!0,focusBorder:{enabled:!0,hideBrowserFocusOutline:!0,style:{color:"#334eff",lineWidth:2,borderRadius:3},margin:2},order:["series","zoom","rangeSelector","navigator","legend","chartMenu"],wrapAround:!0,seriesNavigation:{skipNullPoints:!0,pointNavigationEnabledThreshold:!1,rememberPointFocus:!1}},announceNewData:{enabled:!1,minAnnounceInterval:5e3,interruptUser:!1}},legend:{accessibility:{enabled:!0,keyboardNavigation:{enabled:!0}}},exporting:{accessibility:{enabled:!0}},navigator:{accessibility:{enabled:!0}}}}),i(e,"Accessibility/Options/LangDefaults.js",[],function(){return{accessibility:{defaultChartTitle:"Chart",chartContainerLabel:"{title}. Highcharts interactive chart.",svgContainerLabel:"Interactive chart",drillUpButton:"{buttonText}",credits:"Chart credits: {creditsStr}",thousandsSep:",",svgContainerTitle:"",graphicContainerLabel:"",screenReaderSection:{beforeRegionLabel:"",afterRegionLabel:"",annotations:{heading:"Chart annotations summary",descriptionSinglePoint:"{annotationText}. Related to {annotationPoint}",descriptionMultiplePoints:"{annotationText}. Related to {annotationPoint}{#each additionalAnnotationPoints}, also related to {this}{/each}",descriptionNoPoints:"{annotationText}"},endOfChartMarker:"End of interactive chart."},sonification:{playAsSoundButtonText:"Play as sound, {chartTitle}",playAsSoundClickAnnouncement:"Play"},legend:{legendLabelNoTitle:"Toggle series visibility, {chartTitle}",legendLabel:"Chart legend: {legendTitle}",legendItem:"Show {itemName}"},zoom:{mapZoomIn:"Zoom chart",mapZoomOut:"Zoom out chart",resetZoomButton:"Reset zoom"},rangeSelector:{dropdownLabel:"{rangeTitle}",minInputLabel:"Select start date.",maxInputLabel:"Select end date.",clickButtonAnnouncement:"Viewing {axisRangeDescription}"},navigator:{handleLabel:"{#eq handleIx 0}Start, percent{else}End, percent{/eq}",groupLabel:"Axis zoom",changeAnnouncement:"{axisRangeDescription}"},table:{viewAsDataTableButtonText:"View as data table, {chartTitle}",tableSummary:"Table representation of chart."},announceNewData:{newDataAnnounce:"Updated data for chart {chartTitle}",newSeriesAnnounceSingle:"New data series: {seriesDesc}",newPointAnnounceSingle:"New data point: {pointDesc}",newSeriesAnnounceMultiple:"New data series in chart {chartTitle}: {seriesDesc}",newPointAnnounceMultiple:"New data point in chart {chartTitle}: {pointDesc}"},seriesTypeDescriptions:{boxplot:"Box plot charts are typically used to display groups of statistical data. Each data point in the chart can have up to 5 values: minimum, lower quartile, median, upper quartile, and maximum.",arearange:"Arearange charts are line charts displaying a range between a lower and higher value for each point.",areasplinerange:"These charts are line charts displaying a range between a lower and higher value for each point.",bubble:"Bubble charts are scatter charts where each data point also has a size value.",columnrange:"Columnrange charts are column charts displaying a range between a lower and higher value for each point.",errorbar:"Errorbar series are used to display the variability of the data.",funnel:"Funnel charts are used to display reduction of data in stages.",pyramid:"Pyramid charts consist of a single pyramid with item heights corresponding to each point value.",waterfall:"A waterfall chart is a column chart where each column contributes towards a total end value."},chartTypes:{emptyChart:"Empty chart",mapTypeDescription:"Map of {mapTitle} with {numSeries} data series.",unknownMap:"Map of unspecified region with {numSeries} data series.",combinationChart:"Combination chart with {numSeries} data series.",defaultSingle:"Chart with {numPoints} data {#eq numPoints 1}point{else}points{/eq}.",defaultMultiple:"Chart with {numSeries} data series.",splineSingle:"Line chart with {numPoints} data {#eq numPoints 1}point{else}points{/eq}.",splineMultiple:"Line chart with {numSeries} lines.",lineSingle:"Line chart with {numPoints} data {#eq numPoints 1}point{else}points{/eq}.",lineMultiple:"Line chart with {numSeries} lines.",columnSingle:"Bar chart with {numPoints} {#eq numPoints 1}bar{else}bars{/eq}.",columnMultiple:"Bar chart with {numSeries} data series.",barSingle:"Bar chart with {numPoints} {#eq numPoints 1}bar{else}bars{/eq}.",barMultiple:"Bar chart with {numSeries} data series.",pieSingle:"Pie chart with {numPoints} {#eq numPoints 1}slice{else}slices{/eq}.",pieMultiple:"Pie chart with {numSeries} pies.",scatterSingle:"Scatter chart with {numPoints} {#eq numPoints 1}point{else}points{/eq}.",scatterMultiple:"Scatter chart with {numSeries} data series.",boxplotSingle:"Boxplot with {numPoints} {#eq numPoints 1}box{else}boxes{/eq}.",boxplotMultiple:"Boxplot with {numSeries} data series.",bubbleSingle:"Bubble chart with {numPoints} {#eq numPoints 1}bubbles{else}bubble{/eq}.",bubbleMultiple:"Bubble chart with {numSeries} data series."},axis:{xAxisDescriptionSingular:"The chart has 1 X axis displaying {names[0]}. {ranges[0]}",xAxisDescriptionPlural:"The chart has {numAxes} X axes displaying {#each names}{#unless @first},{/unless}{#if @last} and{/if} {this}{/each}.",yAxisDescriptionSingular:"The chart has 1 Y axis displaying {names[0]}. {ranges[0]}",yAxisDescriptionPlural:"The chart has {numAxes} Y axes displaying {#each names}{#unless @first},{/unless}{#if @last} and{/if} {this}{/each}.",timeRangeDays:"Data range: {range} days.",timeRangeHours:"Data range: {range} hours.",timeRangeMinutes:"Data range: {range} minutes.",timeRangeSeconds:"Data range: {range} seconds.",rangeFromTo:"Data ranges from {rangeFrom} to {rangeTo}.",rangeCategories:"Data range: {numCategories} categories."},exporting:{chartMenuLabel:"Chart menu",menuButtonLabel:"View chart menu, {chartTitle}"},series:{summary:{default:"{series.name}, series {seriesNumber} of {chart.series.length} with {series.points.length} data {#eq series.points.length 1}point{else}points{/eq}.",defaultCombination:"{series.name}, series {seriesNumber} of {chart.series.length} with {series.points.length} data {#eq series.points.length 1}point{else}points{/eq}.",line:"{series.name}, line {seriesNumber} of {chart.series.length} with {series.points.length} data {#eq series.points.length 1}point{else}points{/eq}.",lineCombination:"{series.name}, series {seriesNumber} of {chart.series.length}. Line with {series.points.length} data {#eq series.points.length 1}point{else}points{/eq}.",spline:"{series.name}, line {seriesNumber} of {chart.series.length} with {series.points.length} data {#eq series.points.length 1}point{else}points{/eq}.",splineCombination:"{series.name}, series {seriesNumber} of {chart.series.length}. Line with {series.points.length} data {#eq series.points.length 1}point{else}points{/eq}.",column:"{series.name}, bar series {seriesNumber} of {chart.series.length} with {series.points.length} {#eq series.points.length 1}bar{else}bars{/eq}.",columnCombination:"{series.name}, series {seriesNumber} of {chart.series.length}. Bar series with {series.points.length} {#eq series.points.length 1}bar{else}bars{/eq}.",bar:"{series.name}, bar series {seriesNumber} of {chart.series.length} with {series.points.length} {#eq series.points.length 1}bar{else}bars{/eq}.",barCombination:"{series.name}, series {seriesNumber} of {chart.series.length}. Bar series with {series.points.length} {#eq series.points.length 1}bar{else}bars{/eq}.",pie:"{series.name}, pie {seriesNumber} of {chart.series.length} with {series.points.length} {#eq series.points.length 1}slice{else}slices{/eq}.",pieCombination:"{series.name}, series {seriesNumber} of {chart.series.length}. Pie with {series.points.length} {#eq series.points.length 1}slice{else}slices{/eq}.",scatter:"{series.name}, scatter plot {seriesNumber} of {chart.series.length} with {series.points.length} {#eq series.points.length 1}point{else}points{/eq}.",scatterCombination:"{series.name}, series {seriesNumber} of {chart.series.length}, scatter plot with {series.points.length} {#eq series.points.length 1}point{else}points{/eq}.",boxplot:"{series.name}, boxplot {seriesNumber} of {chart.series.length} with {series.points.length} {#eq series.points.length 1}box{else}boxes{/eq}.",boxplotCombination:"{series.name}, series {seriesNumber} of {chart.series.length}. Boxplot with {series.points.length} {#eq series.points.length 1}box{else}boxes{/eq}.",bubble:"{series.name}, bubble series {seriesNumber} of {chart.series.length} with {series.points.length} {#eq series.points.length 1}bubble{else}bubbles{/eq}.",bubbleCombination:"{series.name}, series {seriesNumber} of {chart.series.length}. Bubble series with {series.points.length} {#eq series.points.length 1}bubble{else}bubbles{/eq}.",map:"{series.name}, map {seriesNumber} of {chart.series.length} with {series.points.length} {#eq series.points.length 1}area{else}areas{/eq}.",mapCombination:"{series.name}, series {seriesNumber} of {chart.series.length}. Map with {series.points.length} {#eq series.points.length 1}area{else}areas{/eq}.",mapline:"{series.name}, line {seriesNumber} of {chart.series.length} with {series.points.length} data {#eq series.points.length 1}point{else}points{/eq}.",maplineCombination:"{series.name}, series {seriesNumber} of {chart.series.length}. Line with {series.points.length} data {#eq series.points.length 1}point{else}points{/eq}.",mapbubble:"{series.name}, bubble series {seriesNumber} of {chart.series.length} with {series.points.length} {#eq series.points.length 1}bubble{else}bubbles{/eq}.",mapbubbleCombination:"{series.name}, series {seriesNumber} of {chart.series.length}. Bubble series with {series.points.length} {#eq series.points.length 1}bubble{else}bubbles{/eq}."},description:"{description}",xAxisDescription:"X axis, {name}",yAxisDescription:"Y axis, {name}",nullPointValue:"No value",pointAnnotationsDescription:"{#each annotations}Annotation: {this}{/each}"}}}}),i(e,"Accessibility/Options/DeprecatedOptions.js",[e["Core/Utilities.js"]],function(t){var e=t.error,i=t.pick;function n(t,e,n){for(var o,r=t,s=0;s