!/**
 * Highcharts JS v13.0.0 (2026-06-11)
 * @module highcharts/modules/annotations-advanced
 * @requires highcharts
 *
 * Annotations module
 *
 * (c) 2009-2026 Highsoft AS
 * Author: Torstein Hønsi
 *
 * A commercial license may be required depending on use,
 * see www.highcharts.com/license
 */function(t,i){"object"==typeof exports&&"object"==typeof module?module.exports=i(t._Highcharts,t._Highcharts.SeriesRegistry,t._Highcharts.Templating,t._Highcharts.AST,t._Highcharts.Color):"function"==typeof define&&define.amd?define("highcharts/modules/annotations-advanced",["highcharts/highcharts"],function(t){return i(t,t.SeriesRegistry,t.Templating,t.AST,t.Color)}):"object"==typeof exports?exports["highcharts/modules/annotations-advanced"]=i(t._Highcharts,t._Highcharts.SeriesRegistry,t._Highcharts.Templating,t._Highcharts.AST,t._Highcharts.Color):t.Highcharts=i(t.Highcharts,t.Highcharts.SeriesRegistry,t.Highcharts.Templating,t.Highcharts.AST,t.Highcharts.Color)}("u"<typeof window?this:window,function(t,i,o,n,e){return function(){"use strict";var s,r,a,h,p,c,l,u,d,f,y,v,g,x,m,b,A,P,O,w,E,M,k,C,_,T,N,S,B,L,Y,X,j,I,D,R,W,z={512:function(t){t.exports=i},620:function(t){t.exports=e},660:function(t){t.exports=n},944:function(i){i.exports=t},984:function(t){t.exports=o}},F={};function U(t){var i=F[t];if(void 0!==i)return i.exports;var o=F[t]={exports:{}};return z[t](o,o.exports,U),o.exports}U.n=function(t){var i=t&&t.__esModule?function(){return t.default}:function(){return t};return U.d(i,{a:i}),i},U.d=function(t,i){for(var o in i)U.o(i,o)&&!U.o(t,o)&&Object.defineProperty(t,o,{enumerable:!0,get:i[o]})},U.o=function(t,i){return Object.prototype.hasOwnProperty.call(t,i)};var V={};U.d(V,{default:function(){return oA}});var H=U(944),q=U.n(H);function G(t,i){var o=this.initAnnotation(t);return this.options.annotations.push(o.options),(0,H.pick)(i,!0)&&(o.redraw(),o.graphic.attr({opacity:1})),o}function K(){var t=this;t.plotBoxClip=this.renderer.clipRect(this.plotBox),t.controlPointsGroup=t.renderer.g("control-points").attr({zIndex:99}).clip(t.plotBoxClip).add(),t.options.annotations.forEach(function(i,o){if(!t.annotations.some(function(t){return t.options===i})){var n=t.initAnnotation(i);t.options.annotations[o]=n.options}}),t.drawAnnotations(),(0,H.addEvent)(t,"redraw",t.drawAnnotations),(0,H.addEvent)(t,"destroy",function(){t.plotBoxClip.destroy(),t.controlPointsGroup.destroy()}),(0,H.addEvent)(t,"exportData",function(i){var o,n,e,s,r,a,h=t.annotations,p=(this.options.exporting&&this.options.exporting.csv||{}).columnHeaderFormatter,c=!i.dataRows[1].xValues,l=t.options.lang&&t.options.lang.exportData&&t.options.lang.exportData.annotationHeader,u=i.dataRows[0].length,d=null==(e=null==(n=null==(o=t.options.exporting)?void 0:o.csv)?void 0:n.annotations)?void 0:e.itemDelimiter,f=null==(a=null==(r=null==(s=t.options.exporting)?void 0:s.csv)?void 0:r.annotations)?void 0:a.join;h.forEach(function(t){var o;(null==(o=t.options.labelOptions)?void 0:o.includeInDataExport)&&t.labels.forEach(function(t){if(t.options.text){var o=t.options.text;t.points.forEach(function(t){var n=t.x,e=t.series.xAxis?t.series.xAxis.index:-1,s=!1;if(-1===e){for(var r=i.dataRows[0].length,a=Array(r),h=0;h<r;++h)a[h]="";a.push(o),a.xValues=[],a.xValues[e]=n,i.dataRows.push(a),s=!0}if(s||i.dataRows.forEach(function(t){!s&&t.xValues&&void 0!==e&&n===t.xValues[e]&&(f&&t.length>u?t[t.length-1]+=d+o:t.push(o),s=!0)}),!s){for(var r=i.dataRows[0].length,a=Array(r),h=0;h<r;++h)a[h]="";a[0]=n,a.push(o),a.xValues=[],void 0!==e&&(a.xValues[e]=n),i.dataRows.push(a)}})}})});var y=0;i.dataRows.forEach(function(t){y=Math.max(y,t.length)});for(var v=y-i.dataRows[0].length,g=0;g<v;g++){var x=function(t){var i;return p&&!1!==(i=p(t))?i:(i=l+" "+t,c)?{columnTitle:i,topLevelColumnTitle:i}:i}(g+1);c?(i.dataRows[0].push(x.topLevelColumnTitle),i.dataRows[1].push(x.columnTitle)):i.dataRows[0].push(x)}})}function Z(){this.plotBoxClip.attr(this.plotBox),this.annotations.forEach(function(t){t.redraw(),t.graphic.animate({opacity:1},t.animationConfig)})}function $(t){var i=this.annotations,o="annotations"===t.coll?t:(0,H.find)(i,function(i){return i.options.id===t});o&&((0,H.fireEvent)(o,"remove"),(0,H.erase)(this.options.annotations,o.options),(0,H.erase)(i,o),o.destroy())}function J(){var t=this.options.annotations,i=this.userOptions.annotations;this.annotations=[],(0,H.isArray)(this.options.annotations)||(this.options.annotations=[]),(0,H.isObject)(i,!0)&&(0,H.isObject)(t,!0)&&this.options.annotations.push(t)}function Q(t){this.chart.hasDraggedAnnotation||t.apply(this,Array.prototype.slice.call(arguments,1))}(C||(C={})).compose=function(t,i,o){var n=i.prototype;if(!n.addAnnotation){var e=o.prototype;(0,H.addEvent)(i,"afterInit",J),n.addAnnotation=G,n.callbacks.push(K),n.collectionsWithInit.annotations=[G],n.collectionsWithUpdate.push("annotations"),n.drawAnnotations=Z,n.removeAnnotation=$,n.initAnnotation=function(i){var o=new(t.types[i.type]||t)(this,i);return this.annotations.push(o),o},(0,H.wrap)(e,"onContainerMouseDown",Q)}};var tt=C,ti={visible:!0,animation:{},crop:!0,draggable:"xy",labelOptions:{align:"center",allowOverlap:!1,backgroundColor:"rgba(0, 0, 0, 0.75)",borderColor:"var(--highcharts-neutral-color-100)",borderRadius:3,borderWidth:1,className:"highcharts-no-tooltip",crop:!1,formatter:function(){return(0,H.defined)(this.y)?""+this.y:"Annotation label"},includeInDataExport:!0,overflow:"justify",padding:5,shadow:!1,shape:"callout",style:{fontSize:"0.7em",fontWeight:"normal",color:"contrast"},useHTML:!1,verticalAlign:"bottom",x:0,y:-16},shapeOptions:{stroke:"rgba(0, 0, 0, 0.75)",strokeWidth:1,fill:"rgba(0, 0, 0, 0.75)",r:0,snap:2},controlPointOptions:{events:{},style:{cursor:"pointer",fill:"var(--highcharts-background-color)",stroke:"var(--highcharts-neutral-color-100)","stroke-width":2},height:10,symbol:"circle",visible:!1,width:10},events:{},typeOptions:{},types:{},zIndex:6},to=q().doc,tn=q().isTouchDevice,te=function(){function t(){}return t.prototype.addEvents=function(){var t=this,i=function(i){(0,H.addEvent)(i,tn?"touchstart":"mousedown",function(i){t.onMouseDown(i)},{passive:!1})};if(i(this.graphic.element),(t.labels||[]).forEach(function(t){t.options.useHTML&&t.graphic.text&&!t.graphic.text.foreignObject&&i(t.graphic.text.element)}),(0,H.objectEach)(t.options.events,function(i,o){var n=function(n){var e;"click"===o&&t.cancelClick||i.call(t,null==(e=t.chart.pointer)?void 0:e.normalize(n),t.target,t)};-1===(t.nonDOMEvents||[]).indexOf(o)?((0,H.addEvent)(t.graphic.element,o,n,{passive:!1}),t.graphic.div&&(0,H.addEvent)(t.graphic.div,o,n,{passive:!1})):(0,H.addEvent)(t,o,n,{passive:!1})}),t.options.draggable&&((0,H.addEvent)(t,"drag",t.onDrag),!t.graphic.renderer.styledMode)){var o={cursor:{x:"ew-resize",y:"ns-resize",xy:"move"}[t.options.draggable]};t.graphic.css(o),(t.labels||[]).forEach(function(t){t.options.useHTML&&t.graphic.text&&!t.graphic.text.foreignObject&&t.graphic.text.css(o)})}t.isUpdating||(0,H.fireEvent)(t,"add")},t.prototype.destroy=function(){this.removeDocEvents(),(0,H.removeEvent)(this),this.hcEvents=null},t.prototype.mouseMoveToRadians=function(t,i,o){var n,e=t.prevChartY-o,s=t.prevChartX-i,r=t.chartY-o,a=t.chartX-i;return this.chart.inverted&&(n=s,s=e,e=n,n=a,a=r,r=n),Math.atan2(r,a)-Math.atan2(e,s)},t.prototype.mouseMoveToScale=function(t,i,o){var n=t.prevChartX-i,e=t.prevChartY-o,s=t.chartX-i,r=t.chartY-o,a=(s||1)/(n||1),h=(r||1)/(e||1);if(this.chart.inverted){var p=h;h=a,a=p}return{x:a,y:h}},t.prototype.mouseMoveToTranslation=function(t){var i,o=t.chartX-t.prevChartX,n=t.chartY-t.prevChartY;return this.chart.inverted&&(i=n,n=o,o=i),{x:o,y:n}},t.prototype.onDrag=function(t){if(this.chart.isInsidePlot(t.chartX-this.chart.plotLeft,t.chartY-this.chart.plotTop,{visiblePlotOnly:!0})){var i=this.mouseMoveToTranslation(t);"x"===this.options.draggable&&(i.y=0),"y"===this.options.draggable&&(i.x=0),this.points.length?this.translate(i.x,i.y):(this.shapes.forEach(function(t){return t.translate(i.x,i.y)}),this.labels.forEach(function(t){return t.translate(i.x,i.y)})),this.redraw(!1)}},t.prototype.onMouseDown=function(t){if(t.preventDefault&&t.preventDefault(),2!==t.button){var i,o=this,n=o.chart.pointer,e=(null==(i=null==t?void 0:t.sourceCapabilities)?void 0:i.firesTouchEvents)||!1,s=(t=(null==n?void 0:n.normalize(t))||t).chartX,r=t.chartY;o.cancelClick=!1,o.chart.hasDraggedAnnotation=!0,o.removeDrag=(0,H.addEvent)(to,tn||e?"touchmove":"mousemove",function(t){o.hasDragged=!0,(t=(null==n?void 0:n.normalize(t))||t).prevChartX=s,t.prevChartY=r,(0,H.fireEvent)(o,"drag",t),s=t.chartX,r=t.chartY},tn||e?{passive:!1}:void 0),o.removeMouseUp=(0,H.addEvent)(to,tn||e?"touchend":"mouseup",function(){var t=(0,H.pick)(o.target&&o.target.annotation,o.target);t&&(t.cancelClick=o.hasDragged),o.cancelClick=o.hasDragged,o.chart.hasDraggedAnnotation=!1,o.hasDragged&&(0,H.fireEvent)((0,H.pick)(t,o),"afterUpdate"),o.hasDragged=!1,o.onMouseUp()},tn||e?{passive:!1}:void 0)}},t.prototype.onMouseUp=function(){this.removeDocEvents()},t.prototype.removeDocEvents=function(){this.removeDrag&&(this.removeDrag=this.removeDrag()),this.removeMouseUp&&(this.removeMouseUp=this.removeMouseUp())},t}(),ts=(s=function(t,i){return(s=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var o in i)i.hasOwnProperty(o)&&(t[o]=i[o])})(t,i)},function(t,i){function o(){this.constructor=t}s(t,i),t.prototype=null===i?Object.create(i):(o.prototype=i.prototype,new o)}),tr=function(t){function i(i,o,n,e){var s=t.call(this)||this;return s.nonDOMEvents=["drag"],s.chart=i,s.target=o,s.options=n,s.index=(0,H.pick)(n.index,e),s}return ts(i,t),i.prototype.destroy=function(){t.prototype.destroy.call(this),this.graphic&&(this.graphic=this.graphic.destroy()),this.chart=null,this.target=null,this.options=null},i.prototype.redraw=function(t){this.graphic[t?"animate":"attr"](this.options.positioner.call(this,this.target,this))},i.prototype.render=function(){var t=this.chart,i=this.options;this.graphic=t.renderer.symbol(i.symbol,0,0,i.width,i.height).add(t.controlPointsGroup).css(i.style),this.setVisibility(i.visible),this.addEvents()},i.prototype.setVisibility=function(t){this.graphic[t?"show":"hide"](),this.options.visible=t},i.prototype.update=function(t){var i=this.chart,o=this.target,n=this.index,e=(0,H.merge)(!0,this.options,t);this.destroy(),this.constructor(i,o,e,n),this.render(i.controlPointsGroup),this.redraw()},i}(te),ta=U(512),th=U.n(ta),tp=th().series.prototype,tc=function(){function t(t,i,o){this.mock=!0,this.point=this,this.series={visible:!0,chart:t,getPlotBox:tp.getPlotBox},this.target=i||null,this.options=o,this.applyOptions(this.getOptions())}return t.fromPoint=function(i){return new t(i.series.chart,null,{x:i.x,y:i.y,xAxis:i.series.xAxis,yAxis:i.series.yAxis})},t.pointToPixels=function(t,i){var o,n=t.series,e=n.chart,s=t.plotX||0,r=t.plotY||0;return e.inverted&&(t.mock?(s=t.plotY,r=t.plotX):(s=e.plotWidth-(t.plotY||0),r=e.plotHeight-(t.plotX||0))),n&&!i&&(s+=(o=n.getPlotBox()).translateX,r+=o.translateY),{x:s,y:r}},t.pointToOptions=function(t){return{x:t.x,y:t.y,xAxis:t.series.xAxis,yAxis:t.series.yAxis}},t.prototype.applyOptions=function(t){this.command=t.command,this.setAxis(t,"x"),this.setAxis(t,"y"),this.refresh()},t.prototype.getOptions=function(){return this.hasDynamicOptions()&&"function"==typeof this.options?this.options(this.target):this.options},t.prototype.hasDynamicOptions=function(){return"function"==typeof this.options},t.prototype.isInsidePlot=function(){var t=this.plotX,i=this.plotY,o=this.series.xAxis,n=this.series.yAxis,e={x:t,y:i,isInsidePlot:!0,options:{}};return o&&(e.isInsidePlot=(0,H.defined)(t)&&t>=0&&t<=o.len),n&&(e.isInsidePlot=e.isInsidePlot&&(0,H.defined)(i)&&i>=0&&i<=n.len),(0,H.fireEvent)(this.series.chart,"afterIsInsidePlot",e),e.isInsidePlot},t.prototype.refresh=function(){var t=this.series,i=t.xAxis,o=t.yAxis,n=this.getOptions();i?(this.x=n.x,this.plotX=i.toPixels(n.x,!0)):(this.x=void 0,this.plotX=n.x),o?(this.y=n.y,this.plotY=o.toPixels(n.y,!0)):(this.y=null,this.plotY=n.y),this.isInside=this.isInsidePlot()},t.prototype.refreshOptions=function(){var t=this.series,i=t.xAxis,o=t.yAxis;this.x=this.options.x=i?this.options.x=i.toValue(this.plotX,!0):this.plotX,this.y=this.options.y=o?o.toValue(this.plotY,!0):this.plotY},t.prototype.rotate=function(t,i,o){if(!this.hasDynamicOptions()){var n=Math.cos(o),e=Math.sin(o),s=this.plotX-t,r=this.plotY-i;this.plotX=s*n-r*e+t,this.plotY=s*e+r*n+i,this.refreshOptions()}},t.prototype.scale=function(t,i,o,n){if(!this.hasDynamicOptions()){var e=this.plotX*o,s=this.plotY*n;this.plotX=(1-o)*t+e,this.plotY=(1-n)*i+s,this.refreshOptions()}},t.prototype.setAxis=function(t,i){var o=i+"Axis",n=t[o],e=this.series.chart;this.series[o]="object"==typeof n?n:(0,H.defined)(n)?e[o][n]||e.get(n):null},t.prototype.toAnchor=function(){var t=[this.plotX,this.plotY,0,0];return this.series.chart.inverted&&(t[0]=this.plotY,t[1]=this.plotX),t},t.prototype.translate=function(t,i,o,n){this.hasDynamicOptions()||(this.plotX+=o,this.plotY+=n,this.refreshOptions())},t}();!function(t){function i(){var t=this,i=this.controlPoints,o=this.options.controlPoints||[];o.forEach(function(n,e){var s=(0,H.merge)(t.options.controlPointOptions,n);s.index||(s.index=e),o[e]=s,i.push(new tr(t.chart,t,s))})}function o(t){var i=t.series.getPlotBox(),o=t.series.chart,n=t.mock?t.toAnchor():o.tooltip&&o.tooltip.getAnchor.call({chart:t.series.chart},t)||[0,0,0,0],e={x:n[0]+(this.options.x||0),y:n[1]+(this.options.y||0),height:n[2]||0,width:n[3]||0};return{relativePosition:e,absolutePosition:(0,H.merge)(e,{x:e.x+(t.mock?i.translateX:o.plotLeft),y:e.y+(t.mock?i.translateY:o.plotTop)})}}function n(){this.controlPoints.forEach(function(t){return t.destroy()}),this.chart=null,this.controlPoints=null,this.points=null,this.options=null,this.annotation&&(this.annotation=null)}function e(){var t=this.options;return t.points||t.point&&(0,H.splat)(t.point)}function s(){var t,i,o=this.getPointsOptions(),n=this.points,e=(null==o?void 0:o.length)||0;for(t=0;t<e;t++){if(!(i=this.point(o[t],n[t]))){n.length=0;return}i.mock&&i.refresh(),n[t]=i}return n}function r(t,i){if(t&&t.series)return t;if(!i||null===i.series){if((0,H.isObject)(t))i=new tc(this.chart,this,t);else if((0,H.isString)(t))i=this.chart.get(t)||null;else if("function"==typeof t){var o=t.call(i,this);i=o.series?o:new tc(this.chart,this,t)}}return i}function a(t){this.controlPoints.forEach(function(i){return i.redraw(t)})}function h(){this.controlPoints.forEach(function(t){return t.render()})}function p(t,i,o,n,e){var s=this;if(this.chart.inverted){var r=i;i=o,o=r}this.points.forEach(function(r,a){return s.transformPoint(t,i,o,n,e,a)},this)}function c(t,i,o,n,e,s){var r=this.points[s];r.mock||(r=this.points[s]=tc.fromPoint(r)),r[t](i,o,n,e)}function l(t,i){this.transform("translate",null,null,t,i)}function u(t,i,o){this.transformPoint("translate",null,null,t,i,o)}t.compose=function(t){var d=t.prototype;d.addControlPoints||(0,H.merge)(!0,d,{addControlPoints:i,anchor:o,destroyControlTarget:n,getPointsOptions:e,linkPoints:s,point:r,redrawControlPoints:a,renderControlPoints:h,transform:p,transformPoint:c,translate:l,translatePoint:u})}}(_||(_={}));var tl=_,tu=function(){function t(t,i,o,n){this.annotation=t,this.chart=t.chart,this.collection="label"===n?"labels":"shapes",this.controlPoints=[],this.options=i,this.points=[],this.index=o,this.itemType=n,this.init(t,i,o)}return t.prototype.attr=function(){for(var t=[],i=0;i<arguments.length;i++)t[i]=arguments[i];this.graphic.attr.apply(this.graphic,arguments)},t.prototype.attrsFromOptions=function(t){var i,o,n=this.constructor.attrsMap,e={},s=this.chart.styledMode;for(i in t)o=n[i],void 0===n[i]||s&&-1!==["fill","stroke","stroke-width"].indexOf(o)||(e[o]=t[i]);return e},t.prototype.destroy=function(){this.graphic&&(this.graphic=this.graphic.destroy()),this.tracker&&(this.tracker=this.tracker.destroy()),this.destroyControlTarget()},t.prototype.calculateAnnotationSize=function(t,i,o){var n=o.toPixels(t,!0);return Math.abs(o.toPixels(t+i,!0)-n)},t.prototype.init=function(t,i,o){this.annotation=t,this.chart=t.chart,this.options=i,this.points=[],this.controlPoints=[],this.index=o,this.linkPoints(),this.addControlPoints()},t.prototype.redraw=function(t){this.redrawControlPoints(t)},t.prototype.render=function(t){this.options.className&&this.graphic&&this.graphic.addClass(this.options.className),this.renderControlPoints()},t.prototype.rotate=function(t,i,o){this.transform("rotate",t,i,o)},t.prototype.scale=function(t,i,o,n){this.transform("scale",t,i,o,n)},t.prototype.setControlPointsVisibility=function(t){this.controlPoints.forEach(function(i){i.setVisibility(t)})},t.prototype.shouldBeDrawn=function(){return!!this.points.length},t.prototype.translateShape=function(t,i,o){var n=this.annotation.chart,e=this.annotation.userOptions,s=n.annotations.indexOf(this.annotation),r=n.options.annotations[s];this.translatePoint(t,i,0),o&&this.translatePoint(t,i,1),r[this.collection][this.index].point=this.options.point,e[this.collection][this.index].point=this.options.point},t.prototype.update=function(t){var i=this.annotation,o=(0,H.merge)(!0,this.options,t),n=this.graphic.parentGroup,e=this.constructor;this.destroy();var s=new e(i,o,this.index,this.itemType);(0,H.merge)(!0,this,s),this.render(n),this.redraw()},t}();tl.compose(tu);var td={arrow:{tagName:"marker",attributes:{id:"arrow",refY:5,refX:9,markerWidth:10,markerHeight:10},children:[{tagName:"path",attributes:{d:"M 0 0 L 10 5 L 0 10 Z","stroke-width":0}}]},"reverse-arrow":{tagName:"marker",attributes:{id:"reverse-arrow",refY:5,refX:1,markerWidth:10,markerHeight:10},children:[{tagName:"path",attributes:{d:"M 0 5 L 10 0 L 10 10 Z","stroke-width":0}}]}},tf=(r=function(t,i){return(r=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(t[o]=i[o])})(t,i)},function(t,i){if("function"!=typeof i&&null!==i)throw TypeError("Class extends value "+String(i)+" is not a constructor or null");function o(){this.constructor=t}r(t,i),t.prototype=null===i?Object.create(i):(o.prototype=i.prototype,new o)}),ty=tx("marker-end"),tv=tx("marker-start"),tg="rgba(192,192,192,"+(q().svg?1e-4:.002)+")";function tx(t){return function(i){this.attr(t,"url(#"+i+")")}}function tm(){this.options.defs=(0,H.merge)(td,this.options.defs||{})}function tb(t,i){var o={attributes:{id:t}},n={stroke:i.color||"none",fill:i.color||"rgba(0, 0, 0, 0.75)"};o.children=i.children&&i.children.map(function(t){return(0,H.merge)(n,t)});var e=(0,H.merge)(!0,{attributes:{markerWidth:20,markerHeight:20,refX:0,refY:0,orient:"auto"}},i,o),s=this.definition(e);return s.id=t,s}var tA=function(t){function i(i,o,n){var e=t.call(this,i,o,n,"shape")||this;return e.type="path",e}return tf(i,t),i.compose=function(t,i){var o=i.prototype;o.addMarker||((0,H.addEvent)(t,"afterGetContainer",tm),o.addMarker=tb)},i.prototype.init=function(i,o,n){(0,H.defined)(o.yAxis)&&o.points.forEach(function(t){t&&"string"!=typeof t&&(t.yAxis=o.yAxis)}),(0,H.defined)(o.xAxis)&&o.points.forEach(function(t){t&&"string"!=typeof t&&(t.xAxis=o.xAxis)}),t.prototype.init.call(this,i,o,n)},i.prototype.toD=function(){var t=this.options.d;if(t)return"function"==typeof t?t.call(this):t;var i,o=this.points,n=o.length,e=[],s=n,r=o[0],a=s&&this.anchor(r).absolutePosition,h=0;if(a)for(e.push(["M",a.x,a.y]);++h<n&&s;)i=(r=o[h]).command||"L",a=this.anchor(r).absolutePosition,"M"===i||"L"===i?e.push([i,a.x,a.y]):"Z"===i&&e.push([i]),s=r.series.visible;return s&&this.graphic?this.chart.renderer.crispLine(e,this.graphic.strokeWidth()):null},i.prototype.shouldBeDrawn=function(){return t.prototype.shouldBeDrawn.call(this)||!!this.options.d},i.prototype.render=function(i){var o=this.options,n=this.attrsFromOptions(o);this.graphic=this.annotation.chart.renderer.path([["M",0,0]]).attr(n).add(i),this.tracker=this.annotation.chart.renderer.path([["M",0,0]]).addClass("highcharts-tracker-line").attr({zIndex:2}).add(i),this.annotation.chart.styledMode||this.tracker.attr({"stroke-linejoin":"round",stroke:tg,fill:tg,"stroke-width":this.graphic.strokeWidth()+2*o.snap}),t.prototype.render.call(this),(0,H.extend)(this.graphic,{markerStartSetter:tv,markerEndSetter:ty}),this.setMarkers(this)},i.prototype.redraw=function(i){if(this.graphic){var o=this.toD(),n=i?"animate":"attr";o?(this.graphic[n]({d:o}),this.tracker[n]({d:o})):(this.graphic.attr({d:"M 0 -9000000000"}),this.tracker.attr({d:"M 0 -9000000000"})),this.graphic.placed=this.tracker.placed=!!o}t.prototype.redraw.call(this,i)},i.prototype.setMarkers=function(t){var i=t.options,o=t.chart,n=o.options.defs,e=i.fill,s=(0,H.defined)(e)&&"none"!==e?e:i.stroke;["markerStart","markerEnd"].forEach(function(e){var r,a,h,p,c=i[e];if(c){for(h in n)if((c===((r=n[h]).attributes&&r.attributes.id)||c===r.id)&&"marker"===r.tagName){a=r;break}a&&(p=t[e]=o.renderer.addMarker((i.id||(0,H.uniqueKey)())+"-"+c,(0,H.merge)(a,{color:s})),t.attr(e,p.getAttribute("id")))}})},i.attrsMap={dashStyle:"dashstyle",strokeWidth:"stroke-width",stroke:"stroke",fill:"fill",zIndex:"zIndex"},i}(tu),tP=(a=function(t,i){return(a=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(t[o]=i[o])})(t,i)},function(t,i){if("function"!=typeof i&&null!==i)throw TypeError("Class extends value "+String(i)+" is not a constructor or null");function o(){this.constructor=t}a(t,i),t.prototype=null===i?Object.create(i):(o.prototype=i.prototype,new o)}),tO=function(t){function i(i,o,n){var e=t.call(this,i,o,n,"shape")||this;return e.type="rect",e.translate=t.prototype.translateShape,e}return tP(i,t),i.prototype.init=function(i,o,n){var e=o.point,s=o.xAxis,r=o.yAxis;e&&"string"!=typeof e&&((0,H.defined)(s)&&(e.xAxis=s),(0,H.defined)(r)&&(e.yAxis=r)),t.prototype.init.call(this,i,o,n)},i.prototype.render=function(i){var o=this.attrsFromOptions(this.options);this.graphic=this.annotation.chart.renderer.rect(0,-9e9,0,0).attr(o).add(i),t.prototype.render.call(this)},i.prototype.redraw=function(i){if(this.graphic){var o=this.points[0],n=this.anchor(o).absolutePosition,e=this.options.width||0,s=this.options.height||0;if(n){var r=(0,H.defined)(this.options.xAxis)?this.chart.xAxis[this.options.xAxis]:void 0,a=(0,H.defined)(this.options.yAxis)?this.chart.yAxis[this.options.yAxis]:void 0;r&&(0,H.defined)(o.x)&&(e=this.calculateAnnotationSize(o.x,e,r)),a&&(0,H.defined)(o.y)&&(s=this.calculateAnnotationSize(o.y,s,a)),this.graphic[i?"animate":"attr"]({x:n.x,y:n.y,width:e,height:s})}else this.attr({x:0,y:-9e9});this.graphic.placed=!!n}t.prototype.redraw.call(this,i)},i.attrsMap=(0,H.merge)(tA.attrsMap,{width:"width",height:"height"}),i}(tu),tw=(h=function(t,i){return(h=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(t[o]=i[o])})(t,i)},function(t,i){if("function"!=typeof i&&null!==i)throw TypeError("Class extends value "+String(i)+" is not a constructor or null");function o(){this.constructor=t}h(t,i),t.prototype=null===i?Object.create(i):(o.prototype=i.prototype,new o)}),tE=function(t){function i(i,o,n){var e=t.call(this,i,o,n,"shape")||this;return e.type="circle",e.translate=t.prototype.translateShape,e}return tw(i,t),i.prototype.init=function(i,o,n){var e=o.point,s=o.xAxis,r=o.yAxis;e&&"string"!=typeof e&&((0,H.defined)(s)&&(e.xAxis=s),(0,H.defined)(r)&&(e.yAxis=r)),t.prototype.init.call(this,i,o,n)},i.prototype.redraw=function(i){if(this.graphic){var o=this.points[0],n=this.anchor(o).absolutePosition,e=this.options.r||0;if(n){var s=(0,H.defined)(this.options.yAxis)?this.chart.yAxis[this.options.yAxis]:void 0;s&&(0,H.defined)(o.y)&&(e=this.calculateAnnotationSize(o.y,e,s)),this.graphic[i?"animate":"attr"]({x:n.x,y:n.y,r:e})}else this.graphic.attr({x:0,y:-9e9});this.graphic.placed=!!n}t.prototype.redraw.call(this,i)},i.prototype.render=function(i){var o=this.attrsFromOptions(this.options);this.graphic=this.annotation.chart.renderer.circle(0,-9e9,0).attr(o).add(i),t.prototype.render.call(this)},i.prototype.setRadius=function(t){this.options.r=t},i.attrsMap=(0,H.merge)(tA.attrsMap,{r:"r"}),i}(tu),tM=(p=function(t,i){return(p=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(t[o]=i[o])})(t,i)},function(t,i){if("function"!=typeof i&&null!==i)throw TypeError("Class extends value "+String(i)+" is not a constructor or null");function o(){this.constructor=t}p(t,i),t.prototype=null===i?Object.create(i):(o.prototype=i.prototype,new o)}),tk=function(t){function i(i,o,n){var e=t.call(this,i,o,n,"shape")||this;return e.type="ellipse",e}return tM(i,t),i.prototype.init=function(i,o,n){(0,H.defined)(o.yAxis)&&o.points.forEach(function(t){t&&"string"!=typeof t&&(t.yAxis=o.yAxis)}),(0,H.defined)(o.xAxis)&&o.points.forEach(function(t){t&&"string"!=typeof t&&(t.xAxis=o.xAxis)}),t.prototype.init.call(this,i,o,n)},i.prototype.render=function(i){this.graphic=this.annotation.chart.renderer.createElement("ellipse").attr(this.attrsFromOptions(this.options)).add(i),t.prototype.render.call(this)},i.prototype.translate=function(i,o){t.prototype.translateShape.call(this,i,o,!0)},i.prototype.getDistanceFromLine=function(t,i,o,n){return Math.abs((i.y-t.y)*o-(i.x-t.x)*n+i.x*t.y-i.y*t.x)/Math.sqrt((i.y-t.y)*(i.y-t.y)+(i.x-t.x)*(i.x-t.x))},i.prototype.getAttrs=function(t,i){var o=t.x,n=t.y,e=i.x,s=i.y,r=(o+e)/2,a=Math.sqrt((o-e)*(o-e)/4+(n-s)*(n-s)/4),h=180*Math.atan((s-n)/(e-o))/Math.PI;return r<o&&(h+=180),{cx:r,cy:(n+s)/2,rx:a,ry:this.getRY(),angle:h}},i.prototype.getRY=function(){var t=this.getYAxis();return(0,H.defined)(t)?Math.abs(t.toPixels(this.options.ry)-t.toPixels(0)):this.options.ry},i.prototype.getYAxis=function(){var t=this.options.yAxis;return this.chart.yAxis[t]},i.prototype.getAbsolutePosition=function(t){return this.anchor(t).absolutePosition},i.prototype.redraw=function(i){if(this.graphic){var o=this.getAbsolutePosition(this.points[0]),n=this.getAbsolutePosition(this.points[1]),e=this.getAttrs(o,n);o?this.graphic[i?"animate":"attr"]({cx:e.cx,cy:e.cy,rx:e.rx,ry:e.ry,rotation:e.angle,rotationOriginX:e.cx,rotationOriginY:e.cy}):this.graphic.attr({x:0,y:-9e9}),this.graphic.placed=!!o}t.prototype.redraw.call(this,i)},i.prototype.setYRadius=function(t){var i=this.annotation.userOptions.shapes;this.options.ry=t,i&&i[0]&&(i[0].ry=t,i[0].ry=t)},i.attrsMap=(0,H.merge)(tA.attrsMap,{ry:"ry"}),i}(tu),tC=U(984),t_=U.n(tC),tT=(c=function(t,i){return(c=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(t[o]=i[o])})(t,i)},function(t,i){if("function"!=typeof i&&null!==i)throw TypeError("Class extends value "+String(i)+" is not a constructor or null");function o(){this.constructor=t}c(t,i),t.prototype=null===i?Object.create(i):(o.prototype=i.prototype,new o)}),tN=t_().format;function tS(t,i,o,n,e){var s,r,a=e&&e.anchorX,h=e&&e.anchorY,p=o/2;return(0,H.isNumber)(a)&&(0,H.isNumber)(h)&&(s=[["M",a,h]],(r=i-h)<0&&(r=-n-r),r<o&&(p=a<t+o/2?r:o-r),h>i+n?s.push(["L",t+p,i+n]):h<i?s.push(["L",t+p,i]):a<t?s.push(["L",t,i+n/2]):a>t+o&&s.push(["L",t+o,i+n/2])),s||[]}var tB=function(t){function i(i,o,n){return t.call(this,i,o,n,"label")||this}return tT(i,t),i.alignedPosition=function(t,i){return{x:Math.round((i.x||0)+(t.x||0)+(i.width-(t.width||0))*(0,H.getAlignFactor)(t.align)),y:Math.round((i.y||0)+(t.y||0)+(i.height-(t.height||0))*(0,H.getAlignFactor)(t.verticalAlign))}},i.compose=function(t){t.prototype.symbols.connector=tS},i.justifiedOptions=function(t,i,o,n){var e,s=o.align,r=o.verticalAlign,a=i.box?0:i.padding||0,h=i.getBBox(),p={align:s,verticalAlign:r,x:o.x,y:o.y,width:i.width,height:i.height},c=(n.x||0)-t.plotLeft,l=(n.y||0)-t.plotTop;return(e=c+a)<0&&("right"===s?p.align="left":p.x=(p.x||0)-e),(e=c+h.width-a)>t.plotWidth&&("left"===s?p.align="right":p.x=(p.x||0)+t.plotWidth-e),(e=l+a)<0&&("bottom"===r?p.verticalAlign="top":p.y=(p.y||0)-e),(e=l+h.height-a)>t.plotHeight&&("top"===r?p.verticalAlign="bottom":p.y=(p.y||0)+t.plotHeight-e),p},i.prototype.translatePoint=function(i,o){t.prototype.translatePoint.call(this,i,o,0)},i.prototype.translate=function(t,i){var o,n,e=this.annotation.chart,s=this.annotation.userOptions,r=e.annotations.indexOf(this.annotation),a=e.options.annotations[r];if(e.inverted){var h=t;t=i,i=h}(o=this.options).x||(o.x=0),(n=this.options).y||(n.y=0),this.options.x+=t,this.options.y+=i,a[this.collection][this.index].x=this.options.x,a[this.collection][this.index].y=this.options.y,s[this.collection][this.index].x=this.options.x,s[this.collection][this.index].y=this.options.y},i.prototype.render=function(o){var n=this.options,e=this.attrsFromOptions(n),s=n.style,r=this.annotation.chart.options.chart,a=r.plotBackgroundColor||r.backgroundColor;if(this.graphic=this.annotation.chart.renderer.label("",0,-9999,n.shape,void 0,void 0,n.useHTML,void 0,"annotation-label").attr(e).add(o),!this.annotation.chart.styledMode){if((null==s?void 0:s.color)==="contrast"){var h=!n.shape||i.shapesWithoutBackground.indexOf(n.shape)>-1||"none"===n.backgroundColor?a:n.backgroundColor;s.color=this.annotation.chart.renderer.getContrast("string"==typeof h?h:"string"==typeof a?a:"#ffffff")}this.graphic.css(n.style||{}).shadow(n.shadow)}this.graphic.labelrank=n.labelrank,t.prototype.render.call(this)},i.prototype.redraw=function(i){var o=this.options,n=this.text||o.format||o.text,e=this.graphic,s=this.points[0];if(!e)return void this.redraw(i);e.attr({text:n?tN(String(n),s,this.annotation.chart):o.formatter.call(s,s)});var r=this.anchor(s),a=this.position(r);a?(e.alignAttr=a,a.anchorX=r.absolutePosition.x,a.anchorY=r.absolutePosition.y,e[i?"animate":"attr"](a)):e.attr({x:0,y:-9999}),e.placed=!!a,t.prototype.redraw.call(this,i)},i.prototype.anchor=function(i){var o=t.prototype.anchor.apply(this,arguments),n=this.options.x||0,e=this.options.y||0;return o.absolutePosition.x-=n,o.absolutePosition.y-=e,o.relativePosition.x-=n,o.relativePosition.y-=e,o},i.prototype.position=function(t){var o,n,e,s,r=this.graphic,a=this.annotation.chart,h=a.tooltip,p=this.points[0],c=this.options,l=t.absolutePosition,u=t.relativePosition,d=p.series.visible&&tc.prototype.isInsidePlot.call(p);if(r&&d){var f=r.width,y=void 0===f?0:f,v=r.height,g=void 0===v?0:v;c.distance&&h?o=h.getPosition.call({chart:a,distance:(0,H.pick)(c.distance,16),getPlayingField:h.getPlayingField,pointer:h.pointer},y,g,{plotX:u.x,plotY:u.y,negative:p.negative,ttBelow:p.ttBelow,h:u.height||u.width}):c.positioner?o=c.positioner.call(this,this):(n={x:l.x,y:l.y,width:0,height:0},o=i.alignedPosition((0,H.extend)(c,{width:y,height:g}),n),"justify"===this.options.overflow&&(o=i.alignedPosition(i.justifiedOptions(a,r,c,o),n))),c.crop&&(e=o.x-a.plotLeft,s=o.y-a.plotTop,d=a.isInsidePlot(e,s)&&a.isInsidePlot(e+y,s+g))}return d?o:null},i.attrsMap={backgroundColor:"fill",borderColor:"stroke",borderWidth:"stroke-width",zIndex:"zIndex",borderRadius:"r",padding:"padding"},i.shapesWithoutBackground=["connector"],i}(tu),tL=(l=function(t,i){return(l=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(t[o]=i[o])})(t,i)},function(t,i){if("function"!=typeof i&&null!==i)throw TypeError("Class extends value "+String(i)+" is not a constructor or null");function o(){this.constructor=t}l(t,i),t.prototype=null===i?Object.create(i):(o.prototype=i.prototype,new o)}),tY=function(t){function i(i,o,n){var e=t.call(this,i,o,n,"shape")||this;return e.type="image",e.translate=t.prototype.translateShape,e}return tL(i,t),i.prototype.render=function(i){var o=this.attrsFromOptions(this.options),n=this.options;this.graphic=this.annotation.chart.renderer.image(n.src,0,-9e9,n.width,n.height).attr(o).add(i),this.graphic.width=n.width,this.graphic.height=n.height,t.prototype.render.call(this)},i.prototype.redraw=function(i){if(this.graphic){var o=this.anchor(this.points[0]),n=tB.prototype.position.call(this,o);n?this.graphic[i?"animate":"attr"]({x:n.x,y:n.y}):this.graphic.attr({x:0,y:-9e9}),this.graphic.placed=!!n}t.prototype.redraw.call(this,i)},i.attrsMap={width:"width",height:"height",zIndex:"zIndex"},i}(tu),tX=U(660),tj=U.n(tX),tI=function(t){return'<?xml version="1.0" encoding="utf-8"?>\n        <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 '.concat(t," ").concat(t,'">')},tD="#4B4B4D",tR={"close.svg":"".concat(tI(32),'\n<polygon fill="').concat(tD,'" points="24.308,8.756 23.248,7.695 16.002,14.941 8.757,7.695 7.695,8.754 14.941,16.001 7.696,23.246\n    8.755,24.308 16.002,17.061 23.247,24.307 24.308,23.248 17.062,16.001"/>\n</svg>\n'),"destroy.svg":"".concat(tI(32),'\n<g>\n    <rect x="12.75" y="14" fill="').concat(tD,'" width="1.5" height="10"/>\n    <rect x="17.75" y="14" fill="').concat(tD,'" width="1.5" height="10"/>\n    <path fill="').concat(tD,'" d="M25.25,10.5c0-1.517-1.233-2.75-2.75-2.75h-3.25V7c0-1.24-1.01-2.25-2.25-2.25h-2\n        c-1.24,0-2.25,1.01-2.25,2.25v0.75H9.5c-1.517,0-2.75,1.233-2.75,2.75v1.751h2V27.25h14.5V12.251h2V10.5z M14.25,7\n        c0-0.413,0.337-0.75,0.75-0.75h2c0.413,0,0.75,0.337,0.75,0.75v0.75h-3.5V7z M21.75,25.75h-11.5V12.251h11.5V25.75z M23.75,10.751\n        H8.25V10.5c0-0.689,0.561-1.25,1.25-1.25h13c0.689,0,1.25,0.561,1.25,1.25V10.751z"/>\n</g>\n</svg>\n'),"edit.svg":"".concat(tI(32),'\n<path fill="').concat(tD,'" d="M22.125,3.814L5.817,20.122l-1.818,7.879l7.879-1.818L28.186,9.875L22.125,3.814z M26.064,9.875\n    l-1.439,1.439l-3.939-3.939l1.439-1.439L26.064,9.875z M10.186,22.875l9.939-9.939l1.439,1.439l-9.939,9.939L10.186,22.875z\n     M7.686,20.375l9.939-9.939l1.439,1.439l-9.939,9.939L7.686,20.375z M18.686,9.375l0.939-0.939l3.939,3.939l-0.939,0.939\n    L18.686,9.375z M6.974,21.784l3.242,3.242l-4.215,0.973L6.974,21.784z"/>\n</svg>\n')},tW=function(t,i,o){var n,e=o[t];return"renderer"===i&&e?(e=encodeURIComponent(e),n='url("data:image/svg+xml;charset=utf-8,'.concat(e,'")')):n=i.startsWith("http")&&i.match(/\.(png|svg|jpe?g|gif)$/ig)?'url("'+i+'")':'url("'.concat(i+t+'"'),n},tz=function(){function t(t,i){this.iconsURL=i,this.container=this.createPopupContainer(t),this.closeButton=this.addCloseButton()}return t.prototype.createPopupContainer=function(t,i){return void 0===i&&(i="highcharts-popup highcharts-no-tooltip"),(0,H.createElement)("div",{className:i},void 0,t)},t.prototype.addCloseButton=function(t){var i=this;void 0===t&&(t="highcharts-popup-close");var o=(0,H.createElement)("button",{className:t},void 0,this.container);return(0,H.createElement)("span",{className:"highcharts-icon"},{backgroundImage:tW("close.svg",this.iconsURL,tR)},o),["click","touchstart"].forEach(function(t){(0,H.addEvent)(o,t,i.closeButtonEvents.bind(i))}),(0,H.addEvent)(document,"keydown",function(t){"Escape"===t.code&&i.closeButtonEvents()}),o},t.prototype.closeButtonEvents=function(){this.closePopup()},t.prototype.showPopup=function(t){void 0===t&&(t="highcharts-annotation-toolbar");var i=this.container,o=this.closeButton;this.type=void 0,i.innerHTML=tj().emptyHTML,i.className.indexOf(t)>=0&&(i.classList.remove(t),i.removeAttribute("style")),i.appendChild(o),i.style.display="block",i.style.height=""},t.prototype.closePopup=function(){this.container.style.display="none"},t}(),tF=U(620),tU=U.n(tF),tV=q().doc,tH=q().isFirefox;function tq(t,i,o,n,e,s){var r,a,h=this;if(i){var p=this.addInput,c=this.lang;(0,H.objectEach)(n,function(n,s){r=""!==o?o+"."+s:s,(0,H.isObject)(n)&&(!(0,H.isArray)(n)||(0,H.isArray)(n)&&(0,H.isObject)(n[0])?((a=c[s]||s).match(/\d/g)||e.push([!0,a,t]),tq.call(h,t,i,r,n,e,!1)):e.push([h,r,"annotation",t,n]))}),s&&((0,H.stableSort)(e,function(t){return t[1].match(/format/g)?-1:1}),tH&&e.reverse(),e.forEach(function(t){!0===t[0]?(0,H.createElement)("span",{className:"highcharts-annotation-title"},void 0,t[2]).appendChild(tV.createTextNode(t[1])):(t[4]={value:t[4][0],type:t[4][1]},p.apply(t[0],t.splice(1)))}))}}var tG=q().doc,tK=th().seriesTypes;(u=T||(T={}))[u["params.algorithm"]=0]="params.algorithm",u[u["params.average"]=1]="params.average";var tZ={"algorithm-pivotpoints":["standard","fibonacci","camarilla"],"average-disparityindex":["sma","ema","dema","tema","wma"]};function t$(t){var i=(0,H.createElement)("div",{className:"highcharts-popup-lhs-col"},void 0,t),o=(0,H.createElement)("div",{className:"highcharts-popup-rhs-col"},void 0,t);return(0,H.createElement)("div",{className:"highcharts-popup-rhs-col-wrapper"},void 0,o),{lhsCol:i,rhsCol:o}}function tJ(t,i,o,n){var e=i.params||i.options.params;n.innerHTML=tj().emptyHTML,(0,H.createElement)("h3",{className:"highcharts-indicator-title"},void 0,n).appendChild(tG.createTextNode(t7(i,o).indicatorFullName)),(0,H.createElement)("input",{type:"hidden",name:"highcharts-type-"+o,value:o},void 0,n),t4.call(this,o,"series",t,n,i,i.linkedParent&&i.linkedParent.options.id),e.volumeSeriesID&&t4.call(this,o,"volume",t,n,i,i.linkedParent&&e.volumeSeriesID),t0.call(this,t,"params",e,o,n)}function tQ(t,i,o,n){function e(i,o){var n=f.parentNode.children[1];tJ.call(s,t,i,o,f),n&&(n.style.display="block"),p&&i.options&&(0,H.createElement)("input",{type:"hidden",name:"highcharts-id-"+o,value:i.options.id},void 0,f).setAttribute("highcharts-data-series-id",i.options.id)}var s=this,r=s.lang,a=i.querySelectorAll(".highcharts-popup-lhs-col")[0],h=i.querySelectorAll(".highcharts-popup-rhs-col")[0],p="edit"===o,c=p?t.series:t.options.plotOptions||{};if(t||!c){var l,u=[];p||(0,H.isArray)(c)?(0,H.isArray)(c)&&(u=t3.call(this,c)):u=t9.call(this,c,n),(0,H.stableSort)(u,function(t,i){var o=t.indicatorFullName.toLowerCase(),n=i.indicatorFullName.toLowerCase();return o<n?-1:+(o>n)}),a.children[1]&&a.children[1].remove();var d=(0,H.createElement)("ul",{className:"highcharts-indicator-list"},void 0,a),f=h.querySelectorAll(".highcharts-popup-rhs-col-wrapper")[0];if(u.forEach(function(t){var i=t.indicatorFullName,o=t.indicatorType,n=t.series;l=(0,H.createElement)("li",{className:"highcharts-indicator-list"},void 0,d);var s=(0,H.createElement)("button",{className:"highcharts-indicator-list-item",textContent:i},void 0,l);["click","touchstart"].forEach(function(t){(0,H.addEvent)(s,t,function(){e(n,o)})})}),u.length>0){var y=u[0];e(y.series,y.indicatorType)}else p||(tj().setElementHTML(f.parentNode.children[0],r.noFilterMatch||""),f.parentNode.children[1].style.display="none")}}function t0(t,i,o,n,e){var s=this;if(t){var r=this.addInput;(0,H.objectEach)(o,function(o,a){var h=i+"."+a;if((0,H.defined)(o)&&h)if((0,H.isObject)(o)&&(r.call(s,h,n,e,{}),t0.call(s,t,h,o,n,e)),h in T){var p=t2.call(s,n,h,e);t5.call(s,t,i,p,n,a,o)}else"params.volumeSeriesID"===h||(0,H.isArray)(o)||r.call(s,h,n,e,{value:o,type:"number"})})}}function t1(t,i){var o=this,n=i.querySelectorAll(".highcharts-popup-lhs-col")[0],e=this.lang.clearFilter,s=(0,H.createElement)("div",{className:"highcharts-input-wrapper"},void 0,n),r=function(i){tQ.call(o,t,o.container,"add",i)},a=this.addInput("searchIndicators","input",s,{value:"",type:"text",htmlFor:"search-indicators",labelClassName:"highcharts-input-search-indicators-label"}),h=(0,H.createElement)("a",{textContent:e},void 0,s);a.classList.add("highcharts-input-search-indicators"),h.classList.add("clear-filter-button"),(0,H.addEvent)(a,"input",function(){r(this.value),this.value.length?h.style.display="inline-block":h.style.display="none"}),["click","touchstart"].forEach(function(t){(0,H.addEvent)(h,t,function(){a.value="",r(""),h.style.display="none"})})}function t2(t,i,o){var n=i.split("."),e=n[n.length-1],s="highcharts-"+i+"-type-"+t,r=this.lang;(0,H.createElement)("label",{htmlFor:s},null,o).appendChild(tG.createTextNode(r[e]||i));var a=(0,H.createElement)("select",{name:s,className:"highcharts-popup-field",id:"highcharts-select-"+i},null,o);return a.setAttribute("id","highcharts-select-"+i),a}function t5(t,i,o,n,e,s,r){"series"===i||"volume"===i?t.series.forEach(function(t){var n=t.options,e=n.name||n.params?t.name:n.id||"";"highcharts-navigator-series"!==n.id&&n.id!==(r&&r.options&&r.options.id)&&((0,H.defined)(s)||"volume"!==i||"column"!==t.type||(s=n.id),(0,H.createElement)("option",{value:n.id},void 0,o).appendChild(tG.createTextNode(e)))}):n&&e&&tZ[e+"-"+n].forEach(function(t){(0,H.createElement)("option",{value:t},void 0,o).appendChild(tG.createTextNode(t))}),(0,H.defined)(s)&&(o.value=s)}function t9(t,i){var o,n=this.chart&&this.chart.options.lang,e=n&&n.navigation&&n.navigation.popup&&n.navigation.popup.indicatorAliases,s=new Map;return(0,H.objectEach)(t,function(t,n){var r=t&&t.options;if(t.params||r&&r.params){var a=t7(t,n),h=a.indicatorFullName,p=a.indicatorType;if(i){var c=RegExp(i.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),"i"),l=e&&e[p]&&e[p].join(" ")||"";(h.match(c)||l.match(c))&&(o={indicatorFullName:h,indicatorType:p,series:t},s.set(p.toLowerCase(),o))}else o={indicatorFullName:h,indicatorType:p,series:t},s.set(p.toLowerCase(),o)}}),Array.from(s.values())}function t3(t){var i=[];return t.forEach(function(t){t.is("sma")&&i.push({indicatorFullName:t.name,indicatorType:t.type,series:t})}),i}function t7(t,i){var o=t.options,n=tK[i]&&tK[i].prototype.nameBase||i.toUpperCase(),e=i;return o&&o.type&&(e=t.options.type,n=t.name),{indicatorFullName:n,indicatorType:e}}function t4(t,i,o,n,e,s){if(o){var r=t2.call(this,t,i,n);t5.call(this,o,i,r,void 0,void 0,void 0,e),(0,H.defined)(s)&&(r.value=s)}}var t6=q().doc;function t8(){var t=this.container;return(0,H.createElement)("div",{className:"highcharts-tab-item-content highcharts-no-mousewheel"},void 0,t)}function it(t,i){var o=this.container,n=this.lang,e="highcharts-tab-item";0===i&&(e+=" highcharts-tab-disabled");var s=(0,H.createElement)("button",{className:e},void 0,o);return s.appendChild(t6.createTextNode(n[t+"Button"]||t)),s.setAttribute("highcharts-data-tab-type",t),s}function ii(){for(var t=this.container,i=t.querySelectorAll(".highcharts-tab-item"),o=t.querySelectorAll(".highcharts-tab-item-content"),n=0;n<i.length;n++)i[n].classList.remove("highcharts-tab-item-active"),o[n].classList.remove("highcharts-tab-item-show")}function io(t,i){var o=this.container.querySelectorAll(".highcharts-tab-item-content");t.className+=" highcharts-tab-item-active",o[i].className+=" highcharts-tab-item-show"}function ie(t){var i=this;this.container.querySelectorAll(".highcharts-tab-item").forEach(function(o,n){(0!==t||"edit"!==o.getAttribute("highcharts-data-tab-type"))&&["click","touchstart"].forEach(function(t){(0,H.addEvent)(o,t,function(){ii.call(i),io.call(i,this,n)})})})}var is=(d=function(t,i){return(d=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(t[o]=i[o])})(t,i)},function(t,i){if("function"!=typeof i&&null!==i)throw TypeError("Class extends value "+String(i)+" is not a constructor or null");function o(){this.constructor=t}d(t,i),t.prototype=null===i?Object.create(i):(o.prototype=i.prototype,new o)}),ir=q().doc,ia=q().getOptions,ih=function(t){function i(i,o,n){var e=t.call(this,i,o)||this;return e.chart=n,e.lang=(ia().lang.navigation||{}).popup||{},(0,H.addEvent)(e.container,"mousedown",function(){var t=n&&n.navigationBindings&&n.navigationBindings.activeAnnotation;if(t){t.cancelClick=!0;var i=(0,H.addEvent)(ir,"click",function(){setTimeout(function(){t.cancelClick=!1},0),i()})}}),e}return is(i,t),i.prototype.addInput=function(t,i,o,n){var e,s=t.split("."),r=s[s.length-1],a=this.lang,h="highcharts-"+i+"-"+(0,H.pick)(n.htmlFor,r);if(r.match(/^\d+$/)||(0,H.createElement)("label",{htmlFor:h,className:n.labelClassName},void 0,o).appendChild(ir.createTextNode(a[r]||r)),"color"===n.type&&(null==(e=this.chart)?void 0:e.container))return this.createColorInput(t,h,n,o,this.chart.container);var p=(0,H.createElement)("input",{name:h,value:n.value,type:n.type,className:"highcharts-popup-field"},void 0,o);return p.setAttribute("highcharts-data-name",t),p},i.prototype.createColorInput=function(t,i,o,n,e){var s=function(t,i){var o=function(t){return("0"+Math.round(t).toString(16)).slice(-2).toUpperCase()},n=function(t){var i=tU().parse(t).rgba,n=i[0],e=i[1],s=i[2],r=i[3];return{value:"#"+o(n)+o(e)+o(s),alpha:r}};if(t.startsWith("rgb")||t.startsWith("rgba"))return n(t);if(t.startsWith("color")||t.startsWith("var")){var e=ir.createElement("span");e.style.setProperty("color",t),i.appendChild(e);var s=window.getComputedStyle(e).color;if(i.removeChild(e),s.startsWith("color")){var r=s.match(RegExp("color\\s*\\(\\s*srgb\\s+([\\d.]+)\\s+([\\d.]+)\\s+([\\d.]+)\\s+(?:\\s*\\/\\s*([\\d.]+))?\\s*\\)"));if(r){var a=Math.round(255*parseFloat(r[1])),h=Math.round(255*parseFloat(r[2])),p=Math.round(255*parseFloat(r[3])),c=r[4]?parseFloat(r[4]):1;return{value:"#"+o(a)+o(h)+o(p),alpha:c}}}if(s.startsWith("rgb")||s.startsWith("rgba"))return n(s)}return{value:t,alpha:1}}(o.value||"",e),r=s.value,a=s.alpha,h=tU().parse(o.value||"").rgba[3],p=isNaN(h)?a:h,c=(0,H.createElement)("div",{className:"highcharts-popup-color-wrapper"},void 0,n),l=(0,H.createElement)("input",{type:"color",value:r,className:"highcharts-popup-field highcharts-popup-field-color"},void 0,c),u=(0,H.createElement)("input",{name:i,id:i,value:r,type:"text",className:"highcharts-popup-field highcharts-popup-field-text"},void 0,c);u.setAttribute("highcharts-data-name",t);var d=(0,H.createElement)("span",{className:"highcharts-popup-color-separator"},void 0,c),f=(0,H.createElement)("input",{type:"number",value:String(Math.round(100*p)),className:"highcharts-popup-field highcharts-popup-opacity-percentage",min:"0",max:"100",step:"1"},void 0,c),y=(0,H.createElement)("span",{className:"highcharts-popup-opacity-percent-suffix"},void 0,c);y.appendChild(ir.createTextNode(" %"));var v=(0,H.createElement)("input",{type:"range",value:String(Math.round(100*p)),className:"highcharts-popup-opacity-slider",min:"0",max:"100",step:"1"},void 0,n);v.style.setProperty("--highcharts-popup-opacity-track-color",r),v.style.setProperty("display","none");var g=function(){var t=/^#[0-9A-Fa-f]{6}$/.test(u.value);d.style.display=t?"":"none",f.style.display=t?"":"none",y.style.display=t?"":"none"};g();var x=function(t){var i=t.target,o=(0,H.clamp)(Number(i.value),0,100);v.value=String(o),f.value=String(Math.round(o))},m=function(t){t.target===l?u.value=l.value.toUpperCase():l.value=u.value,v.style.setProperty("--highcharts-popup-opacity-track-color",l.value),g()};return(0,H.addEvent)(n,"mousedown",function(t){t.target!==f&&t.target!==v&&(v.style.display="none")}),(0,H.addEvent)(f,"focus",function(){v.style.display=""}),(0,H.addEvent)(f,"input",x),(0,H.addEvent)(v,"input",x),(0,H.addEvent)(l,"input",m),(0,H.addEvent)(u,"input",m),c},i.prototype.closeButtonEvents=function(){if(this.chart){var i=this.chart.navigationBindings;(0,H.fireEvent)(i,"closePopup"),i&&i.selectedButtonElement&&(0,H.fireEvent)(i,"deselectButton",{button:i.selectedButtonElement})}else t.prototype.closeButtonEvents.call(this)},i.prototype.addButton=function(t,i,o,n,e){var s=this,r=(0,H.createElement)("button",void 0,void 0,t);return r.appendChild(ir.createTextNode(i)),e&&["click","touchstart"].forEach(function(t){(0,H.addEvent)(r,t,function(){var t,i,r,a,h;return s.closePopup(),e((t=Array.prototype.slice.call(n.querySelectorAll("input")),i=Array.prototype.slice.call(n.querySelectorAll("select")),r=n.querySelectorAll("#highcharts-select-series > option:checked")[0],a=n.querySelectorAll("#highcharts-select-volume > option:checked")[0],h={actionType:o,linkedTo:r&&r.getAttribute("value")||"",fields:{}},t.forEach(function(t){var i=t.getAttribute("highcharts-data-name");if(t.getAttribute("highcharts-data-series-id"))h.seriesId=t.value;else if(i){var o=t.closest(".highcharts-popup-color-wrapper"),n=null==o?void 0:o.querySelector(".highcharts-popup-opacity-percentage"),e=n?Number(n.value)/100:1;if(n){var s=tU().parse(t.value).rgba;h.fields[i]=Number.isNaN(s[0])?t.value:"rgba(".concat(s[0],",").concat(s[1],",").concat(s[2],",").concat(e,")")}else h.fields[i]=t.value}else h.type=t.value}),i.forEach(function(t){var i=t.id;if("highcharts-select-series"!==i&&"highcharts-select-volume"!==i){var o=i.split("highcharts-select-")[1];h.fields[o]=t.value}}),a&&(h.fields["params.volumeSeriesID"]=a.getAttribute("value")||""),h))})}),r},i.prototype.showForm=function(t,i,o,n){i&&(this.showPopup(),"indicators"===t&&this.indicators.addForm.call(this,i,o,n),"annotation-toolbar"===t&&this.annotations.addToolbar.call(this,i,o,n),"annotation-edit"===t&&this.annotations.addForm.call(this,i,o,n),"flag"===t&&this.annotations.addForm.call(this,i,o,n,!0),this.type=t,this.container.style.height=this.container.offsetHeight+"px")},i}(tz);(0,H.extend)(ih.prototype,{annotations:{addForm:function(t,i,o,n){if(t){var e=this.container,s=this.lang,r=(0,H.createElement)("h2",{className:"highcharts-popup-main-title"},void 0,e);r.appendChild(tV.createTextNode(s[i.langKey]||i.langKey||"")),r=(0,H.createElement)("div",{className:"highcharts-popup-lhs-col highcharts-popup-lhs-full"},void 0,e);var a=(0,H.createElement)("div",{className:"highcharts-popup-bottom-row"},void 0,e);tq.call(this,r,t,"",i,[],!0),this.addButton(a,n?s.addButton||"Add":s.saveButton||"Save",n?"add":"save",e,o)}},addToolbar:function(t,i,o){var n=this,e=this.lang,s=this.container,r=this.showForm,a="highcharts-annotation-toolbar";-1===s.className.indexOf(a)&&(s.className+=" "+a+" highcharts-no-mousewheel"),t&&(s.style.top=t.plotTop+10+"px");var h=(0,H.createElement)("p",{className:"highcharts-annotation-label"},void 0,s);h.setAttribute("aria-label","Annotation type"),h.appendChild(tV.createTextNode((0,H.pick)(e[i.langKey]||i.langKey,i.shapes&&i.shapes[0].type,"")));var p=this.addButton(s,e.editButton||"Edit","edit",s,function(){r.call(n,"annotation-edit",t,i,o)});p.className+=" highcharts-annotation-edit-button",(0,H.createElement)("span",{className:"highcharts-icon"},{backgroundImage:tW("edit.svg",this.iconsURL,tR)},p),p=this.addButton(s,e.removeButton||"Remove","remove",s,o),p.className+=" highcharts-annotation-remove-button",(0,H.createElement)("span",{className:"highcharts-icon"},{backgroundImage:tW("destroy.svg",this.iconsURL,tR)},p)}},indicators:{addForm:function(t,i,o){var n,e=this.lang;if(t){this.tabs.init.call(this,t);var s=this.container.querySelectorAll(".highcharts-tab-item-content");t$(s[0]),t1.call(this,t,s[0]),tQ.call(this,t,s[0],"add"),n=s[0].querySelectorAll(".highcharts-popup-rhs-col")[0],this.addButton(n,e.addButton||"add","add",n,o),t$(s[1]),tQ.call(this,t,s[1],"edit"),n=s[1].querySelectorAll(".highcharts-popup-rhs-col")[0],this.addButton(n,e.saveButton||"save","edit",n,o),this.addButton(n,e.removeButton||"remove","remove",n,o)}},getAmount:function(){var t=0;return this.series.forEach(function(i){(i.params||i.options.params)&&t++}),t}},tabs:{init:function(t){if(t){var i=this.indicators.getAmount.call(t),o=it.call(this,"add");it.call(this,"edit",i),t8.call(this),t8.call(this),ie.call(this,i),io.call(this,o,0)}}}});var ip=q().composed;function ic(){this.popup&&this.popup.closePopup()}function il(t){this.popup||(this.popup=new ih(this.chart.container,this.chart.options.navigation.iconsURL||this.chart.options.stockTools&&this.chart.options.stockTools.gui.iconsURL||"renderer",this.chart)),this.popup.showForm(t.formType,this.chart,t.options,t.onSubmit)}function iu(t,i){this.inClass(i.target,"highcharts-popup")||t.apply(this,Array.prototype.slice.call(arguments,1))}var id=function(t,i){(0,H.pushUnique)(ip,"Popup")&&((0,H.addEvent)(t,"closePopup",ic),(0,H.addEvent)(t,"showPopup",il),(0,H.wrap)(i.prototype,"onContainerMouseDown",iu))},iy=(f=function(t,i){return(f=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(t[o]=i[o])})(t,i)},function(t,i){if("function"!=typeof i&&null!==i)throw TypeError("Class extends value "+String(i)+" is not a constructor or null");function o(){this.constructor=t}f(t,i),t.prototype=null===i?Object.create(i):(o.prototype=i.prototype,new o)}),iv=function(t,i,o){if(o||2==arguments.length)for(var n,e=0,s=i.length;e<s;e++)!n&&e in i||(n||(n=Array.prototype.slice.call(i,0,e)),n[e]=i[e]);return t.concat(n||Array.prototype.slice.call(i))},ig=q().getDeferredAnimation,ix=q().defaultOptions;function im(t,i){var o={};return["labels","shapes"].forEach(function(n){var e=t[n],s=i[n];e&&(s?o[n]=(0,H.splat)(s).map(function(t,i){return(0,H.merge)(e[i],t)}):o[n]=t[n])}),o}var ib=function(t){function i(i,o){var n=t.call(this)||this;n.coll="annotations",n.chart=i,n.points=[],n.controlPoints=[],n.coll="annotations",n.index=-1,n.labels=[],n.shapes=[],n.setOptions(o),n.userOptions=o;var e=im(n.options,o);return n.options.labels=e.labels,n.options.shapes=e.shapes,n.init(i,n.options),n}return iy(i,t),i.compose=function(t,o,n,e){tt.compose(i,t,n),tB.compose(e),tA.compose(t,e),o.compose(i,t),id(o,n)},i.prototype.addClipPaths=function(){this.setClipAxes(),this.clipXAxis&&this.clipYAxis&&this.options.crop&&(this.clipRect=this.chart.renderer.clipRect(this.getClipBox()))},i.prototype.addLabels=function(){var t=this,i=this.options.labels||[];i.forEach(function(o,n){var e=t.initLabel(o,n);(0,H.merge)(!0,i[n],e.options)})},i.prototype.addShapes=function(){var t=this,i=this.options.shapes||[];i.forEach(function(o,n){var e=t.initShape(o,n);(0,H.merge)(!0,i[n],e.options)})},i.prototype.destroy=function(){var i=this.chart,o=function(t){t.destroy()};this.labels.forEach(o),this.shapes.forEach(o),this.clipXAxis=null,this.clipYAxis=null,(0,H.erase)(i.labelCollectors,this.labelCollector),t.prototype.destroy.call(this),this.destroyControlTarget(),(0,H.destroyObjectProperties)(this,i)},i.prototype.destroyItem=function(t){(0,H.erase)(this[t.itemType+"s"],t),t.destroy()},i.prototype.getClipBox=function(){if(this.clipXAxis&&this.clipYAxis)return{x:this.clipXAxis.left,y:this.clipYAxis.top,width:this.clipXAxis.width,height:this.clipYAxis.height}},i.prototype.initProperties=function(t,i){this.setOptions(i);var o=im(this.options,i);this.options.labels=o.labels,this.options.shapes=o.shapes,this.chart=t,this.points=[],this.controlPoints=[],this.coll="annotations",this.userOptions=i,this.labels=[],this.shapes=[]},i.prototype.init=function(t,i,o){void 0===o&&(o=this.index);var n=this.chart,e=this.options.animation;this.index=o,this.linkPoints(),this.addControlPoints(),this.addShapes(),this.addLabels(),this.setLabelCollector(),this.animationConfig=ig(n,e)},i.prototype.initLabel=function(t,i){null==(o=this.options.labelOptions)||o.align;var o,n=new tB(this,(0,H.merge)(this.options.labelOptions,{controlPointOptions:this.options.controlPointOptions},t),i);return n.itemType="label",this.labels.push(n),n},i.prototype.initShape=function(t,o){var n=(0,H.merge)(this.options.shapeOptions,{controlPointOptions:this.options.controlPointOptions},t),e=new i.shapesMap[n.type||"rect"](this,n,o);return e.itemType="shape",this.shapes.push(e),e},i.prototype.redraw=function(t){this.linkPoints(),this.graphic||this.render(),this.clipRect&&this.clipRect.animate(this.getClipBox()),this.redrawItems(this.shapes,t),this.redrawItems(this.labels,t),this.redrawControlPoints(t)},i.prototype.redrawItem=function(t,i){if(t.linkPoints(),t.shouldBeDrawn()){var o,n;t.graphic||this.renderItem(t),t.redraw((0,H.pick)(i,!0)&&t.graphic.placed),t.points.length&&(o=t.graphic,n=t.points.some(function(t){return!1!==t.series.visible&&!1!==t.visible}),o&&(n?"hidden"===o.visibility&&o.show():o.hide()))}else this.destroyItem(t)},i.prototype.redrawItems=function(t,i){for(var o=t.length;o--;)this.redrawItem(t[o],i)},i.prototype.remove=function(){return this.chart.removeAnnotation(this)},i.prototype.render=function(){var t=this.chart.renderer;this.graphic=t.g("annotation").addClass(this.options.className||"").attr({opacity:0,zIndex:this.options.zIndex,visibility:this.options.visible?"inherit":"hidden"}).add(),this.shapesGroup=t.g("annotation-shapes").add(this.graphic),this.options.crop&&this.shapesGroup.clip(this.chart.plotBoxClip),this.labelsGroup=t.g("annotation-labels").attr({translateX:0,translateY:0}).add(this.graphic),this.addClipPaths(),this.clipRect&&this.graphic.clip(this.clipRect),this.renderItems(this.shapes),this.renderItems(this.labels),this.addEvents(),this.renderControlPoints()},i.prototype.renderItem=function(t){t.render("label"===t.itemType?this.labelsGroup:this.shapesGroup)},i.prototype.renderItems=function(t){for(var i=t.length;i--;)this.renderItem(t[i])},i.prototype.setClipAxes=function(){var t,i,o=this.chart.xAxis,n=this.chart.yAxis,e=iv(iv([],null!=(t=this.options.labels)?t:[],!0),null!=(i=this.options.shapes)?i:[],!0).reduce(function(t,i){var e,s=i&&(i.point||"points"in i&&(null==(e=i.points)?void 0:e[0]));return[o[s&&s.xAxis]||t[0],n[s&&s.yAxis]||t[1]]},[]);this.clipXAxis=e[0],this.clipYAxis=e[1]},i.prototype.setControlPointsVisibility=function(t){var i=function(i){i.setControlPointsVisibility(t)};this.controlPoints.forEach(function(i){i.setVisibility(t)}),this.shapes.forEach(i),this.labels.forEach(i)},i.prototype.setLabelCollector=function(){var t=this;t.labelCollector=function(){return t.labels.reduce(function(t,i){return i.options.allowOverlap||t.push(i.graphic),t},[])},t.chart.labelCollectors.push(t.labelCollector)},i.prototype.setOptions=function(t){var i,o;this.options=(0,H.merge)(this.defaultOptions,t.type&&(null==(i=this.defaultOptions.types)?void 0:i[t.type])||{},t),(o=this.options).typeOptions||(o.typeOptions={})},i.prototype.setVisibility=function(t){var i=this.options,o=this.chart.navigationBindings,n=(0,H.pick)(t,!i.visible);if(this.graphic.attr("visibility",n?"inherit":"hidden"),!n){var e=function(t){t.setControlPointsVisibility(n)};this.shapes.forEach(e),this.labels.forEach(e),o.activeAnnotation===this&&o.popup&&"annotation-toolbar"===o.popup.type&&(0,H.fireEvent)(o,"closePopup")}i.visible=n},i.prototype.update=function(t,i){var o=this.chart,n=im(this.userOptions,t),e=o.annotations.indexOf(this),s=(0,H.merge)(!0,this.userOptions,t);s.labels=n.labels,s.shapes=n.shapes,this.destroy(),this.initProperties(o,s),this.init(o,s),o.options.annotations[e]=this.options,this.isUpdating=!0,(0,H.pick)(i,!0)&&o.drawAnnotations(),(0,H.fireEvent)(this,"afterUpdate"),this.isUpdating=!1},i.ControlPoint=tr,i.MockPoint=tc,i.shapesMap={rect:tO,circle:tE,ellipse:tk,path:tA,image:tY},i.types={},i}(te);ib.prototype.defaultOptions=ti,ix.annotations=ti,ib.prototype.nonDOMEvents=["add","afterUpdate","drag","remove"],tl.compose(ib),(y=N||(N={})).compose=function(t){return t.navigation||(t.navigation=new v(t)),t},y.Additions=v=function(){function t(t){this.updates=[],this.chart=t}return t.prototype.addUpdate=function(t){this.chart.navigation.updates.push(t)},t.prototype.update=function(t,i){var o=this;this.updates.forEach(function(n){n.call(o.chart,t,i)})},t}();var iA=N,iP={backgroundColor:"color",backgroundColors:"color",borderColor:"color",borderRadius:"string",color:"color",fill:"color",fontSize:"string",labels:"string",name:"string",stroke:"color",title:"string"},iO=function(t){return t.filter(function(t){var i=t.axis.getExtremes(),o=i.min,n=i.max,e=(0,H.pick)(t.axis.minPointOffset,0);return(0,H.isNumber)(o)&&(0,H.isNumber)(n)&&t.value>=o-e&&t.value<=n+e&&!t.axis.options.isInternal})[0]},iw={lang:{navigation:{popup:{simpleShapes:"Simple shapes",lines:"Lines",circle:"Circle",ellipse:"Ellipse",rectangle:"Rectangle",label:"Label",shapeOptions:"Shape options",typeOptions:"Details",fill:"Fill",format:"Text",strokeWidth:"Line width",stroke:"Line color",title:"Title",name:"Name",labelOptions:"Label options",labels:"Labels",backgroundColor:"Background color",backgroundColors:"Background colors",borderColor:"Border color",borderRadius:"Border radius",borderWidth:"Border width",style:"Style",padding:"Padding",fontSize:"Font size",color:"Color",height:"Height",shapes:"Shape options"}}},navigation:{bindingsClassName:"highcharts-bindings-container",bindings:{circleAnnotation:{className:"highcharts-circle-annotation",start:function(t){var i,o=null==(i=this.chart.pointer)?void 0:i.getCoordinates(t),n=o&&iO(o.xAxis),e=o&&iO(o.yAxis),s=this.chart.options.navigation;if(n&&e)return this.chart.addAnnotation((0,H.merge)({langKey:"circle",type:"basicAnnotation",shapes:[{type:"circle",point:{x:n.value,y:e.value,xAxis:n.axis.index,yAxis:e.axis.index},r:5}]},s.annotationsOptions,s.bindings.circleAnnotation.annotationsOptions))},steps:[function(t,i){var o,n=i.options.shapes,e=n&&n[0]&&n[0].point||{};if((0,H.isNumber)(e.xAxis)&&(0,H.isNumber)(e.yAxis)){var s=this.chart.inverted,r=this.chart.xAxis[e.xAxis].toPixels(e.x),a=this.chart.yAxis[e.yAxis].toPixels(e.y);o=Math.max(Math.sqrt(Math.pow(s?a-t.chartX:r-t.chartX,2)+Math.pow(s?r-t.chartY:a-t.chartY,2)),5)}i.update({shapes:[{r:o}]})}]},ellipseAnnotation:{className:"highcharts-ellipse-annotation",start:function(t){var i,o=null==(i=this.chart.pointer)?void 0:i.getCoordinates(t),n=o&&iO(o.xAxis),e=o&&iO(o.yAxis),s=this.chart.options.navigation;if(n&&e)return this.chart.addAnnotation((0,H.merge)({langKey:"ellipse",type:"basicAnnotation",shapes:[{type:"ellipse",xAxis:n.axis.index,yAxis:e.axis.index,points:[{x:n.value,y:e.value},{x:n.value,y:e.value}],ry:1}]},s.annotationsOptions,s.bindings.ellipseAnnotation.annotationsOptions))},steps:[function(t,i){var o=i.shapes[0],n=o.getAbsolutePosition(o.points[1]);o.translatePoint(t.chartX-n.x,t.chartY-n.y,1),o.redraw(!1)},function(t,i){var o=i.shapes[0],n=o.getAbsolutePosition(o.points[0]),e=o.getAbsolutePosition(o.points[1]),s=o.getDistanceFromLine(n,e,t.chartX,t.chartY),r=o.getYAxis(),a=Math.abs(r.toValue(0)-r.toValue(s));o.setYRadius(a),o.redraw(!1)}]},rectangleAnnotation:{className:"highcharts-rectangle-annotation",start:function(t){var i,o=null==(i=this.chart.pointer)?void 0:i.getCoordinates(t),n=o&&iO(o.xAxis),e=o&&iO(o.yAxis);if(n&&e){var s=n.value,r=e.value,a=n.axis.index,h=e.axis.index,p=this.chart.options.navigation;return this.chart.addAnnotation((0,H.merge)({langKey:"rectangle",type:"basicAnnotation",shapes:[{type:"path",points:[{xAxis:a,yAxis:h,x:s,y:r},{xAxis:a,yAxis:h,x:s,y:r},{xAxis:a,yAxis:h,x:s,y:r},{xAxis:a,yAxis:h,x:s,y:r},{command:"Z"}]}]},p.annotationsOptions,p.bindings.rectangleAnnotation.annotationsOptions))}},steps:[function(t,i){var o,n=i.options.shapes,e=n&&n[0]&&n[0].points||[],s=null==(o=this.chart.pointer)?void 0:o.getCoordinates(t),r=s&&iO(s.xAxis),a=s&&iO(s.yAxis);if(r&&a){var h=r.value,p=a.value;e[1].x=h,e[2].x=h,e[2].y=p,e[3].y=p,i.update({shapes:[{points:e}]})}}]},labelAnnotation:{className:"highcharts-label-annotation",start:function(t){var i,o=null==(i=this.chart.pointer)?void 0:i.getCoordinates(t),n=o&&iO(o.xAxis),e=o&&iO(o.yAxis),s=this.chart.options.navigation;if(n&&e)return this.chart.addAnnotation((0,H.merge)({langKey:"label",type:"basicAnnotation",labelOptions:{format:"{y:.2f}",overflow:"none",crop:!0},labels:[{point:{xAxis:n.axis.index,yAxis:e.axis.index,x:n.value,y:e.value}}]},s.annotationsOptions,s.bindings.labelAnnotation.annotationsOptions))}}},events:{},annotationsOptions:{animation:{defer:0}}}},iE=q().setOptions,iM=t_().format,ik=q().composed,iC=q().doc,i_=q().win,iT=function(t,i){var o=iP[t],n=typeof i;return(0,H.defined)(o)&&(n=o),({string:"text",number:"number",boolean:"checkbox",color:"color"})[n]};function iN(){this.chart.navigationBindings&&this.chart.navigationBindings.deselectAnnotation()}function iS(){this.navigationBindings&&this.navigationBindings.destroy()}function iB(){var t=this.options;t&&t.navigation&&t.navigation.bindings&&(this.navigationBindings=new iI(this,t.navigation),this.navigationBindings.initEvents(),this.navigationBindings.initUpdate())}function iL(){var t=this.navigationBindings,i="highcharts-disabled-btn";if(this&&t){var o=!1;if(this.series.forEach(function(t){!t.options.isInternal&&t.visible&&(o=!0)}),this.navigationBindings&&this.navigationBindings.container&&this.navigationBindings.container[0]){var n=this.navigationBindings.container[0];(0,H.objectEach)(t.boundClassNames,function(t,e){var s=n.querySelectorAll("."+e);if(s)for(var r=0;r<s.length;r++){var a=s[r],h=a.className;"normal"===t.noDataState||o?-1!==h.indexOf(i)&&a.classList.remove(i):-1===h.indexOf(i)&&(a.className+=" "+i)}})}}}function iY(){this.deselectAnnotation()}function iX(){this.selectedButtonElement=null}function ij(t){var i,o,n=t.prototype.defaultOptions.events&&t.prototype.defaultOptions.events.click;function e(t){var i=this,o=i.chart.navigationBindings,e=o.activeAnnotation;n&&n.call(i,t),e!==i?(o.deselectAnnotation(),o.activeAnnotation=i,i.setControlPointsVisibility(!0),(0,H.fireEvent)(o,"showPopup",{annotation:i,formType:"annotation-toolbar",options:o.annotationToFields(i),onSubmit:function(t){if("remove"===t.actionType)o.activeAnnotation=!1,o.chart.removeAnnotation(i);else{var n={};o.fieldsToOptions(t.fields,n),o.deselectAnnotation();var e=n.typeOptions;"measure"===i.options.type&&(e.crosshairY.enabled=0!==e.crosshairY.strokeWidth,e.crosshairX.enabled=0!==e.crosshairX.strokeWidth),i.update(n)}}})):(0,H.fireEvent)(o,"closePopup"),t.activeAnnotation=!0}(0,H.merge)(!0,t.prototype.defaultOptions.events,{click:e,touchstart:function(t){i=t.touches[0].clientX,o=t.touches[0].clientY},touchend:function(t){i&&Math.sqrt(Math.pow(i-t.changedTouches[0].clientX,2)+Math.pow(o-t.changedTouches[0].clientY,2))>=4||e.call(this,t)}})}var iI=function(){function t(t,i){this.boundClassNames=void 0,this.chart=t,this.options=i,this.eventsToUnbind=[],this.container=this.chart.container.getElementsByClassName(this.options.bindingsClassName||""),this.container.length||(this.container=iC.getElementsByClassName(this.options.bindingsClassName||""))}return t.compose=function(i,o){(0,H.pushUnique)(ik,"NavigationBindings")&&((0,H.addEvent)(i,"remove",iN),ij(i),(0,H.objectEach)(i.types,function(t){ij(t)}),(0,H.addEvent)(o,"destroy",iS),(0,H.addEvent)(o,"load",iB),(0,H.addEvent)(o,"render",iL),(0,H.addEvent)(t,"closePopup",iY),(0,H.addEvent)(t,"deselectButton",iX),iE(iw))},t.prototype.getCoords=function(t){var i,o=null==(i=this.chart.pointer)?void 0:i.getCoordinates(t);return[o&&iO(o.xAxis),o&&iO(o.yAxis)]},t.prototype.initEvents=function(){var t=this,i=t.chart,o=t.container,n=t.options;t.boundClassNames={},(0,H.objectEach)(n.bindings||{},function(i){t.boundClassNames[i.className]=i}),[].forEach.call(o,function(i){t.eventsToUnbind.push((0,H.addEvent)(i,"click",function(o){var n=t.getButtonEvents(i,o);n&&!n.button.classList.contains("highcharts-disabled-btn")&&t.bindingsButtonClick(n.button,n.events,o)}))}),(0,H.objectEach)(n.events||{},function(i,o){(0,H.isFunction)(i)&&t.eventsToUnbind.push((0,H.addEvent)(t,o,i,{passive:!1}))}),t.eventsToUnbind.push((0,H.addEvent)(i.container,"click",function(o){!i.cancelClick&&i.isInsidePlot(o.chartX-i.plotLeft,o.chartY-i.plotTop,{visiblePlotOnly:!0})&&t.bindingsChartClick(this,o)})),t.eventsToUnbind.push((0,H.addEvent)(i.container,q().isTouchDevice?"touchmove":"mousemove",function(i){t.bindingsContainerMouseMove(this,i)},q().isTouchDevice?{passive:!1}:void 0))},t.prototype.initUpdate=function(){var t=this;iA.compose(this.chart).navigation.addUpdate(function(i){t.update(i)})},t.prototype.bindingsButtonClick=function(t,i,o){var n=this.chart,e=n.renderer.boxWrapper,s=!0;this.selectedButtonElement&&(this.selectedButtonElement.classList===t.classList&&(s=!1),(0,H.fireEvent)(this,"deselectButton",{button:this.selectedButtonElement}),this.nextEvent&&(this.currentUserDetails&&"annotations"===this.currentUserDetails.coll&&n.removeAnnotation(this.currentUserDetails),this.mouseMoveEvent=this.nextEvent=!1)),s?(this.selectedButton=i,this.selectedButtonElement=t,(0,H.fireEvent)(this,"selectButton",{button:t}),i.init&&i.init.call(this,t,o),(i.start||i.steps)&&n.renderer.boxWrapper.addClass("highcharts-draw-mode")):(n.stockTools&&t.classList.remove("highcharts-active"),e.removeClass("highcharts-draw-mode"),this.nextEvent=!1,this.mouseMoveEvent=!1,this.selectedButton=null)},t.prototype.bindingsChartClick=function(t,i){t=this.chart;var o=this.activeAnnotation,n=this.selectedButton,e=t.renderer.boxWrapper;o&&(o.cancelClick||i.activeAnnotation||!i.target.parentNode||function(t,i){var o=i_.Element.prototype,n=o.matches||o.msMatchesSelector||o.webkitMatchesSelector,e=null;if(o.closest)e=o.closest.call(t,i);else do{if(n.call(t,i))return t;t=t.parentElement||t.parentNode}while(null!==t&&1===t.nodeType);return e}(i.target,".highcharts-popup")?o.cancelClick&&setTimeout(function(){o.cancelClick=!1},0):(0,H.fireEvent)(this,"closePopup")),n&&n.start&&(this.nextEvent?(this.nextEvent(i,this.currentUserDetails),this.steps&&(this.stepIndex++,n.steps[this.stepIndex]?this.mouseMoveEvent=this.nextEvent=n.steps[this.stepIndex]:((0,H.fireEvent)(this,"deselectButton",{button:this.selectedButtonElement}),e.removeClass("highcharts-draw-mode"),n.end&&n.end.call(this,i,this.currentUserDetails),this.nextEvent=!1,this.mouseMoveEvent=!1,this.selectedButton=null))):(this.currentUserDetails=n.start.call(this,i),this.currentUserDetails&&n.steps?(this.stepIndex=0,this.steps=!0,this.mouseMoveEvent=this.nextEvent=n.steps[this.stepIndex]):((0,H.fireEvent)(this,"deselectButton",{button:this.selectedButtonElement}),e.removeClass("highcharts-draw-mode"),this.steps=!1,this.selectedButton=null,n.end&&n.end.call(this,i,this.currentUserDetails))))},t.prototype.bindingsContainerMouseMove=function(t,i){this.mouseMoveEvent&&this.mouseMoveEvent(i,this.currentUserDetails)},t.prototype.fieldsToOptions=function(t,i){return(0,H.objectEach)(t,function(t,o){var n=parseFloat(t),e=o.split("."),s=e.length-1;if(!(0,H.isNumber)(n)||t.match(/px|em/g)||o.match(/format/g)||o.match(/title/g)||(t=n),"undefined"!==t){var r=i;e.forEach(function(i,o){if("__proto__"!==i&&"constructor"!==i){var n=(0,H.pick)(e[o+1],"");s===o?r[i]=t:(r[i]||(r[i]=n.match(/\d/g)?[]:{}),r=r[i])}})}}),i},t.prototype.deselectAnnotation=function(){this.activeAnnotation&&(this.activeAnnotation.setControlPointsVisibility(!1),this.activeAnnotation=!1)},t.prototype.annotationToFields=function(i){var o,n,e,s,r=i.options,a=t.annotationsEditable,h=a.nestedOptions,p=(0,H.pick)(r.type,null==(n=null==(o=r.shapes)?void 0:o[0])?void 0:n.type,null==(s=null==(e=r.labels)?void 0:e[0])?void 0:s.type,"label"),c=t.annotationsNonEditable[r.langKey]||[],l={langKey:r.langKey,type:p};function u(t,o,n,e,s){var r;n&&(0,H.defined)(t)&&-1===c.indexOf(o)&&((n.indexOf&&n.indexOf(o))>=0||n[o]||!0===n)&&((0,H.isArray)(t)?(e[o]=[],t.forEach(function(t,i){(0,H.isObject)(t)?(e[o][i]={},(0,H.objectEach)(t,function(t,n){u(t,n,h[o],e[o][i],o)})):u(t,0,h[o],e[o],o)})):(0,H.isObject)(t)?(r={},(0,H.isArray)(e)?(e.push(r),r[o]={},r=r[o]):e[o]=r,(0,H.objectEach)(t,function(t,i){u(t,i,0===o?n:h[o],r,o)})):"format"===o?e[o]=[iM(t,i.labels[0].points[0]).toString(),"text"]:(0,H.isArray)(e)?e.push([t,iT(s,t)]):e[o]=[t,iT(o,t)])}return(0,H.objectEach)(r,function(t,i){"typeOptions"===i&&"basicAnnotation"!==l.type?(l[i]={},(0,H.objectEach)(r[i],function(t,o){u(t,o,h,l[i],o)})):u(t,i,a[p],l,i)}),l},t.prototype.getClickedClassNames=function(t,i){for(var o,n=i.target,e=[];n&&n.tagName&&((o=(0,H.attr)(n,"class"))&&(e=e.concat(o.split(" ").map(function(t){return[t,n]}))),(n=n.parentNode)!==t););return e},t.prototype.getButtonEvents=function(t,i){var o,n=this;return this.getClickedClassNames(t,i).forEach(function(t){n.boundClassNames[t[0]]&&!o&&(o={events:n.boundClassNames[t[0]],button:t[1]})}),o},t.prototype.update=function(t){this.options=(0,H.merge)(!0,this.options,t),this.removeEvents(),this.initEvents()},t.prototype.removeEvents=function(){this.eventsToUnbind.forEach(function(t){return t()})},t.prototype.destroy=function(){this.removeEvents()},t.annotationsEditable={nestedOptions:{labelOptions:["style","format","backgroundColor"],labels:["style"],label:["style"],style:["fontSize","color"],background:["fill","strokeWidth","stroke"],innerBackground:["fill","strokeWidth","stroke"],outerBackground:["fill","strokeWidth","stroke"],shapeOptions:["fill","strokeWidth","stroke"],shapes:["fill","strokeWidth","stroke"],line:["strokeWidth","stroke"],backgroundColors:[!0],connector:["fill","strokeWidth","stroke"],crosshairX:["strokeWidth","stroke"],crosshairY:["strokeWidth","stroke"]},circle:["shapes"],ellipse:["shapes"],verticalLine:[],label:["labelOptions"],measure:["background","crosshairY","crosshairX"],fibonacci:[],tunnel:["background","line","height"],pitchfork:["innerBackground","outerBackground"],rect:["shapes"],crookedLine:[],basicAnnotation:["shapes","labelOptions"]},t.annotationsNonEditable={rectangle:["crosshairX","crosshairY","labelOptions"],ellipse:["labelOptions"],circle:["labelOptions"]},t}(),iD=(g=function(t,i){return(g=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(t[o]=i[o])})(t,i)},function(t,i){if("function"!=typeof i&&null!==i)throw TypeError("Class extends value "+String(i)+" is not a constructor or null");function o(){this.constructor=t}g(t,i),t.prototype=null===i?Object.create(i):(o.prototype=i.prototype,new o)}),iR=function(t){function i(){return null!==t&&t.apply(this,arguments)||this}return iD(i,t),i.prototype.addControlPoints=function(){var t=this.options,o=i.basicControlPoints,n=this.basicType;(t.labels||t.shapes||[]).forEach(function(t){t.controlPoints=o[n]})},i.prototype.init=function(){var i=this.options;if(i.shapes){delete i.labelOptions;var o=i.shapes[0].type;i.shapes[0].className=(i.shapes[0].className||"")+" highcharts-basic-shape",o&&"path"!==o?this.basicType=o:this.basicType="rectangle"}else delete i.shapes,this.basicType="label";t.prototype.init.apply(this,arguments)},i.basicControlPoints={label:[{symbol:"triangle-down",positioner:function(t){if(!t.graphic.placed)return{x:0,y:-9e7};var i=tc.pointToPixels(t.points[0]);return{x:i.x-(this.graphic.width||0)/2,y:i.y-(this.graphic.height||0)/2}},events:{drag:function(t,i){var o=this.mouseMoveToTranslation(t);i.translatePoint(o.x,o.y),i.annotation.userOptions.labels[0].point=i.options.point,i.redraw(!1)}}},{symbol:"square",positioner:function(t){return t.graphic.placed?{x:t.graphic.alignAttr.x-(this.graphic.width||0)/2,y:t.graphic.alignAttr.y-(this.graphic.height||0)/2}:{x:0,y:-9e7}},events:{drag:function(t,i){var o=this.mouseMoveToTranslation(t);i.translate(o.x,o.y),i.annotation.userOptions.labels[0].point=i.options.point,i.redraw(!1)}}}],rectangle:[{positioner:function(t){var i=tc.pointToPixels(t.points[2]);return{x:i.x-4,y:i.y-4}},events:{drag:function(t,i){var o,n,e,s=i.annotation,r=null==(o=this.chart.pointer)?void 0:o.getCoordinates(t),a=i.options.points,h=s.userOptions.shapes,p=(null==(n=s.clipXAxis)?void 0:n.index)||0,c=(null==(e=s.clipYAxis)?void 0:e.index)||0;if(r){var l=r.xAxis[p].value,u=r.yAxis[c].value;a[1].x=l,a[2].x=l,a[2].y=u,a[3].y=u,(null==h?void 0:h[0])&&(h[0].points=i.options.points)}s.redraw(!1)}}}],circle:[{positioner:function(t){var i=tc.pointToPixels(t.points[0]),o=t.options.r;return{x:i.x+o*Math.cos(Math.PI/4)-(this.graphic.width||0)/2,y:i.y+o*Math.sin(Math.PI/4)-(this.graphic.height||0)/2}},events:{drag:function(t,i){var o=i.annotation,n=this.mouseMoveToTranslation(t),e=o.userOptions.shapes;i.setRadius(Math.max((i.options.r||0)+n.y/Math.sin(Math.PI/4),5)),e&&e[0]&&(e[0].r=i.options.r,e[0].point=i.options.point),i.redraw(!1)}}}],ellipse:[{positioner:function(t){var i=t.getAbsolutePosition(t.points[0]);return{x:i.x-(this.graphic.width||0)/2,y:i.y-(this.graphic.height||0)/2}},events:{drag:function(t,i){var o=i.getAbsolutePosition(i.points[0]);i.translatePoint(t.chartX-o.x,t.chartY-o.y,0),i.redraw(!1)}}},{positioner:function(t){var i=t.getAbsolutePosition(t.points[1]);return{x:i.x-(this.graphic.width||0)/2,y:i.y-(this.graphic.height||0)/2}},events:{drag:function(t,i){var o=i.getAbsolutePosition(i.points[1]);i.translatePoint(t.chartX-o.x,t.chartY-o.y,1),i.redraw(!1)}}},{positioner:function(t){var i=t.getAbsolutePosition(t.points[0]),o=t.getAbsolutePosition(t.points[1]),n=t.getAttrs(i,o);return{x:n.cx-(this.graphic.width||0)/2+n.ry*Math.sin(n.angle*Math.PI/180),y:n.cy-(this.graphic.height||0)/2-n.ry*Math.cos(n.angle*Math.PI/180)}},events:{drag:function(t,i){var o=i.getAbsolutePosition(i.points[0]),n=i.getAbsolutePosition(i.points[1]),e=i.getDistanceFromLine(o,n,t.chartX,t.chartY),s=i.getYAxis(),r=Math.abs(s.toValue(0)-s.toValue(e));i.setYRadius(r),i.redraw(!1)}}}]},i}(ib);ib.types.basicAnnotation=iR;var iW=(x=function(t,i){return(x=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(t[o]=i[o])})(t,i)},function(t,i){if("function"!=typeof i&&null!==i)throw TypeError("Class extends value "+String(i)+" is not a constructor or null");function o(){this.constructor=t}x(t,i),t.prototype=null===i?Object.create(i):(o.prototype=i.prototype,new o)}),iz=q().defaultOptions;(null==(S=iz.annotations)?void 0:S.types)&&(iz.annotations.types.crookedLine={typeOptions:{xAxis:0,yAxis:0,line:{fill:"none"}},controlPointOptions:{positioner:function(t){var i=this.graphic,o=tc.pointToPixels(t.points[this.index]);return{x:o.x-(i.width||0)/2,y:o.y-(i.height||0)/2}},events:{drag:function(t,i){if(i.chart.isInsidePlot(t.chartX-i.chart.plotLeft,t.chartY-i.chart.plotTop,{visiblePlotOnly:!0})){var o=this.mouseMoveToTranslation(t),n=i.options.typeOptions;i.translatePoint(o.x,o.y,this.index),n.points[this.index].x=i.points[this.index].x,n.points[this.index].y=i.points[this.index].y,i.redraw(!1)}}}}});var iF=function(t){function i(){return null!==t&&t.apply(this,arguments)||this}return iW(i,t),i.prototype.setClipAxes=function(){var t,i;this.clipXAxis=this.chart.xAxis[null==(t=this.options.typeOptions)?void 0:t.xAxis],this.clipYAxis=this.chart.yAxis[null==(i=this.options.typeOptions)?void 0:i.yAxis]},i.prototype.getPointsOptions=function(){var t,i=(t=this.options).typeOptions||(t.typeOptions={});return(i.points||[]).map(function(t){return"string"!=typeof t&&(t.xAxis=i.xAxis,t.yAxis=i.yAxis),t})},i.prototype.getControlPointsOptions=function(){return this.getPointsOptions()},i.prototype.addControlPoints=function(){this.getControlPointsOptions().forEach(function(t,i){var o=new tr(this.chart,this,(0,H.merge)(this.options.controlPointOptions,t.controlPoint),i);this.controlPoints.push(o),t.controlPoint=o.options},this)},i.prototype.addShapes=function(){var t,i=(t=this.options).typeOptions||(t.typeOptions={}),o=this.initShape((0,H.merge)(i.line,{type:"path",className:"highcharts-crooked-lines",points:this.points.map(function(t,i){return function(t){return t.annotation.points[i]}})}),0);i.line=o.options},i}(ib);ib.types.crookedLine=iF;var iU=(m=function(t,i){return(m=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(t[o]=i[o])})(t,i)},function(t,i){if("function"!=typeof i&&null!==i)throw TypeError("Class extends value "+String(i)+" is not a constructor or null");function o(){this.constructor=t}m(t,i),t.prototype=null===i?Object.create(i):(o.prototype=i.prototype,new o)}),iV=q().defaultOptions;(null==(B=iV.annotations)?void 0:B.types)&&(iV.annotations.types.elliottWave=(0,H.merge)(iV.annotations.types.crookedLine,{typeOptions:{labels:["(0)","(A)","(B)","(C)","(D)","(E)"],line:{strokeWidth:1}},labelOptions:{align:"center",allowOverlap:!0,crop:!0,overflow:"none",type:"rect",backgroundColor:"none",borderWidth:0,y:-5,style:{color:"var(--highcharts-neutral-color-80)"}}}));var iH=function(t){function i(){return null!==t&&t.apply(this,arguments)||this}return iU(i,t),i.prototype.addLabels=function(){var t=this;this.getPointsOptions().forEach(function(i,o){var n=t.options.typeOptions,e=t.initLabel((0,H.merge)(i.label,{text:n.labels[o],point:function(t){return t.annotation.points[o]}}),!1);i.label=e.options})},i}(iF);ib.types.elliottWave=iH;var iq=(b=function(t,i){return(b=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(t[o]=i[o])})(t,i)},function(t,i){if("function"!=typeof i&&null!==i)throw TypeError("Class extends value "+String(i)+" is not a constructor or null");function o(){this.constructor=t}b(t,i),t.prototype=null===i?Object.create(i):(o.prototype=i.prototype,new o)}),iG=q().defaultOptions;(null==(L=iG.annotations)?void 0:L.types)&&(iG.annotations.types.tunnel=(0,H.merge)(iG.annotations.types.crookedLine,{typeOptions:{background:{fill:"rgba(130, 170, 255, 0.4)",strokeWidth:0},line:{strokeWidth:1},height:-2,heightControlPoint:{positioner:function(t){var i,o,n,e=tc.pointToPixels(t.points[2]),s=tc.pointToPixels(t.points[3]),r=(e.x+s.x)/2;return{x:r-(this.graphic.width||0)/2,y:(i=e,o=s,n=r,(o.y-i.y)/(o.x-i.x)*(n-i.x)+i.y-(this.graphic.height||0)/2)}},events:{drag:function(t,i){i.chart.isInsidePlot(t.chartX-i.chart.plotLeft,t.chartY-i.chart.plotTop,{visiblePlotOnly:!0})&&(i.translateHeight(this.mouseMoveToTranslation(t).y),i.redraw(!1))}}}},controlPointOptions:{events:{drag:function(t,i){if(i.chart.isInsidePlot(t.chartX-i.chart.plotLeft,t.chartY-i.chart.plotTop,{visiblePlotOnly:!0})){var o=this.mouseMoveToTranslation(t);i.translateSide(o.x,o.y,!!this.index),i.redraw(!1)}}}}}));var iK=function(t){function i(){return null!==t&&t.apply(this,arguments)||this}return iq(i,t),i.prototype.getPointsOptions=function(){var t,i=iF.prototype.getPointsOptions.call(this),o=(null==(t=this.options.typeOptions)?void 0:t.yAxis)||0,n=this.chart.yAxis[o];if(i[2]=this.heightPointOptions(i[1]),i[3]=this.heightPointOptions(i[0]),n&&n.logarithmic){var e=n.toPixels(i[2].y)-n.toPixels(i[1].y),s=n.toPixels(i[0].y)+e;i[3].y=n.toValue(s)}return i},i.prototype.getControlPointsOptions=function(){return this.getPointsOptions().slice(0,2)},i.prototype.heightPointOptions=function(t){var i=(0,H.merge)(t),o=this.options.typeOptions;return i.y+=o.height,i},i.prototype.addControlPoints=function(){iF.prototype.addControlPoints.call(this);var t=this.options,i=t.typeOptions,o=new tr(this.chart,this,(0,H.merge)(t.controlPointOptions,i.heightControlPoint),2);this.controlPoints.push(o),i.heightControlPoint=o.options},i.prototype.addShapes=function(){this.addLine(),this.addBackground()},i.prototype.addLine=function(){var t,i=this.initShape((0,H.merge)(((t=this.options).typeOptions||(t.typeOptions={})).line,{type:"path",className:"highcharts-tunnel-lines",points:[this.points[0],this.points[1],function(t){var i=tc.pointToOptions(t.annotation.points[2]);return i.command="M",i},this.points[3]]}),0);this.options.typeOptions.line=i.options},i.prototype.addBackground=function(){var t=this.initShape((0,H.merge)(this.options.typeOptions.background,{type:"path",points:this.points.slice(),className:"highcharts-tunnel-background"}),1);this.options.typeOptions.background=t.options},i.prototype.translateSide=function(t,i,o){var n=Number(o);this.translatePoint(t,i,n),this.translatePoint(t,i,0===n?3:2)},i.prototype.translateHeight=function(t){this.translatePoint(0,t,2),this.translatePoint(0,t,3),this.options.typeOptions.height=this.points[3].y-this.points[0].y,this.userOptions.typeOptions.height=this.options.typeOptions.height},i}(iF);ib.types.tunnel=iK;var iZ=(A=function(t,i){return(A=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(t[o]=i[o])})(t,i)},function(t,i){if("function"!=typeof i&&null!==i)throw TypeError("Class extends value "+String(i)+" is not a constructor or null");function o(){this.constructor=t}A(t,i),t.prototype=null===i?Object.create(i):(o.prototype=i.prototype,new o)}),i$=q().defaultOptions;(null==(Y=i$.annotations)?void 0:Y.types)&&(i$.annotations.types.infinityLine=(0,H.merge)(i$.annotations.types.crookedLine));var iJ=function(t){function i(){return null!==t&&t.apply(this,arguments)||this}return iZ(i,t),i.edgePoint=function(t,o){return function(n){var e=n.annotation,s=e.options.typeOptions.type,r=e.points;return("horizontalLine"===s||"verticalLine"===s)&&(r=[r[0],new tc(e.chart,r[0].target,{x:r[0].x+ +("horizontalLine"===s),y:r[0].y+ +("verticalLine"===s),xAxis:r[0].options.xAxis,yAxis:r[0].options.yAxis})]),i.findEdgePoint(r[t],r[o])}},i.findEdgeCoordinate=function(t,i,o,n){var e="x"===o?"y":"x";return(i[o]-t[o])*(n-t[e])/(i[e]-t[e])+t[o]},i.findEdgePoint=function(t,o){var n,e,s,r=t.series.chart,a=t.series.xAxis,h=o.series.yAxis,p=tc.pointToPixels(t),c=tc.pointToPixels(o),l=c.x-p.x,u=c.y-p.y,d=a.left,f=d+a.width,y=h.top,v=y+h.height,g=l<0?d:f,x=u<0?y:v,m={x:0===l?p.x:g,y:0===u?p.y:x};return 0!==l&&0!==u&&(e=i.findEdgeCoordinate(p,c,"y",g),n=i.findEdgeCoordinate(p,c,"x",x),e>=y&&e<=v?(m.x=g,m.y=e):(m.x=n,m.y=x)),m.x-=r.plotLeft,m.y-=r.plotTop,t.series.chart.inverted&&(s=m.x,m.x=m.y,m.y=s),m},i.prototype.addShapes=function(){var t=this.options.typeOptions,o=[this.points[0],i.endEdgePoint];t.type.match(/line/gi)&&(o[0]=i.startEdgePoint);var n=this.initShape((0,H.merge)(t.line,{type:"path",className:"highcharts-infinity-lines",points:o}),0);t.line=n.options},i.endEdgePoint=i.edgePoint(0,1),i.startEdgePoint=i.edgePoint(1,0),i}(iF);ib.types.infinityLine=iJ;var iQ=(P=function(t,i){return(P=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(t[o]=i[o])})(t,i)},function(t,i){if("function"!=typeof i&&null!==i)throw TypeError("Class extends value "+String(i)+" is not a constructor or null");function o(){this.constructor=t}P(t,i),t.prototype=null===i?Object.create(i):(o.prototype=i.prototype,new o)}),i0=q().defaultOptions;(null==(X=i0.annotations)?void 0:X.types)&&(i0.annotations.types.timeCycles=(0,H.merge)(i0.annotations.types.crookedLine,{typeOptions:{controlPointOptions:[{positioner:function(t){var i=t.points[0];return{x:t.anchor(i).absolutePosition.x-(this.graphic.width||0)/2,y:t.y-(this.graphic.height||0)}},events:{drag:function(t,i){var o=i.anchor(i.points[0]).absolutePosition;i.translatePoint(t.chartX-o.x,0,0),i.redraw(!1)}}},{positioner:function(t){var i=t.points[1];return{x:t.anchor(i).absolutePosition.x-(this.graphic.width||0)/2,y:t.y-(this.graphic.height||0)}},events:{drag:function(t,i){var o=i.anchor(i.points[1]).absolutePosition;i.translatePoint(t.chartX-o.x,0,1),i.redraw(!1)}}}]}}));var i1=function(t){function i(){return null!==t&&t.apply(this,arguments)||this}return iQ(i,t),i.prototype.init=function(i,o,n){(0,H.defined)(o.yAxis)&&o.points.forEach(function(t){t.yAxis=o.yAxis}),(0,H.defined)(o.xAxis)&&o.points.forEach(function(t){t.xAxis=o.xAxis}),t.prototype.init.call(this,i,o,n)},i.prototype.setPath=function(){this.shapes[0].options.d=this.getPath()},i.prototype.getPath=function(){return[["M",this.startX,this.y]].concat(function(t,i,o,n){for(var e=[],s=1;s<=i;s++)e.push(["A",t/2,t/2,0,1,1,o+s*t,n]);return e}(this.pixelInterval,this.numberOfCircles,this.startX,this.y))},i.prototype.addShapes=function(){var t=this.options.typeOptions;this.setPathProperties();var i=this.initShape((0,H.merge)(t.line,{type:"path",d:this.getPath(),points:this.options.points,className:"highcharts-timecycles-lines"}),0);t.line=i.options},i.prototype.addControlPoints=function(){var t=this,i=this.options,o=i.typeOptions;i.controlPointOptions.style.cursor=this.chart.inverted?"ns-resize":"ew-resize",o.controlPointOptions.forEach(function(o){var n=(0,H.merge)(i.controlPointOptions,o),e=new tr(t.chart,t,n,0);t.controlPoints.push(e)})},i.prototype.setPathProperties=function(){var t=this.options.typeOptions,i=t.points;if(i){var o=i[0],n=i[1],e=t.xAxis||0,s=t.yAxis||0,r=this.chart.xAxis[e],a=this.chart.yAxis[s],h=o.x,p=o.y,c=n.x;if(h&&c){var l=(0,H.isNumber)(p)?a.toPixels(p):a.top+a.height,u=(0,H.isNumber)(h)?r.toPixels(h):r.left,d=(0,H.isNumber)(c)?r.toPixels(c):r.left+30,f=r.len,y=Math.round(Math.max(Math.abs(d-u),2)),v=Math.floor(f/y)+2,g=(Math.floor((u-r.left)/y)+1)*y;this.startX=u-g,this.y=l,this.pixelInterval=y,this.numberOfCircles=v}}},i.prototype.redraw=function(i){this.setPathProperties(),this.setPath(),t.prototype.redraw.call(this,i)},i}(iF);ib.types.timeCycles=i1;var i2=(O=function(t,i){return(O=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(t[o]=i[o])})(t,i)},function(t,i){if("function"!=typeof i&&null!==i)throw TypeError("Class extends value "+String(i)+" is not a constructor or null");function o(){this.constructor=t}O(t,i),t.prototype=null===i?Object.create(i):(o.prototype=i.prototype,new o)}),i5=q().defaultOptions;function i9(t,i){return function(){var o=this.annotation;if(!o.startRetracements||!o.endRetracements)return[];var n=this.anchor(o.startRetracements[t]).absolutePosition,e=this.anchor(o.endRetracements[t]).absolutePosition,s=[["M",Math.round(n.x),Math.round(n.y)],["L",Math.round(e.x),Math.round(e.y)]];if(i){var r=this.anchor(o.endRetracements[t-1]).absolutePosition,a=this.anchor(o.startRetracements[t-1]).absolutePosition;s.push(["L",Math.round(r.x),Math.round(r.y)],["L",Math.round(a.x),Math.round(a.y)])}return s}}(null==(j=i5.annotations)?void 0:j.types)&&(i5.annotations.types.fibonacci=(0,H.merge)(i5.annotations.types.tunnel,{typeOptions:{reversed:!1,height:2,backgroundColors:["rgba(130, 170, 255, 0.4)","rgba(139, 191, 216, 0.4)","rgba(150, 216, 192, 0.4)","rgba(156, 229, 161, 0.4)","rgba(162, 241, 130, 0.4)","rgba(169, 255, 101, 0.4)"],lineColor:"var(--highcharts-neutral-color-40)",lineColors:[],labels:[]},labelOptions:{allowOverlap:!0,align:"right",backgroundColor:"none",borderWidth:0,crop:!1,overflow:"none",shape:"rect",style:{color:"var(--highcharts-neutral-color-80)"},verticalAlign:"middle",y:0}}));var i3=function(t){function i(){return null!==t&&t.apply(this,arguments)||this}return i2(i,t),i.prototype.linkPoints=function(){t.prototype.linkPoints.call(this),this.linkRetracementsPoints()},i.prototype.linkRetracementsPoints=function(){var t=this,o=this.points,n=o[0].y-o[3].y,e=o[1].y-o[2].y,s=o[0].x,r=o[1].x;i.levels.forEach(function(a,h){var p=o[0].y-n*a,c=o[1].y-e*a,l=t.options.typeOptions.reversed?i.levels.length-h-1:h;t.startRetracements=t.startRetracements||[],t.endRetracements=t.endRetracements||[],t.linkRetracementPoint(l,s,p,t.startRetracements),t.linkRetracementPoint(l,r,c,t.endRetracements)})},i.prototype.linkRetracementPoint=function(t,i,o,n){var e=n[t],s=this.options.typeOptions;e?(e.options.x=i,e.options.y=o,e.refresh()):n[t]=new tc(this.chart,this,{x:i,y:o,xAxis:s.xAxis,yAxis:s.yAxis})},i.prototype.addShapes=function(){i.levels.forEach(function(t,i){var o=this.options.typeOptions,n=o.backgroundColors,e=o.lineColor,s=o.lineColors;this.initShape({type:"path",d:i9(i),stroke:s[i]||e,className:"highcharts-fibonacci-line"},i),i>0&&this.initShape({type:"path",fill:n[i-1],strokeWidth:0,d:i9(i,!0),className:"highcharts-fibonacci-background-"+(i-1)})},this)},i.prototype.addLabels=function(){i.levels.forEach(function(t,i){var o=this.options.typeOptions,n=this.initLabel((0,H.merge)(o.labels[i],{point:function(t){return tc.pointToOptions(t.annotation.startRetracements[i])},text:t.toString()}));o.labels[i]=n.options},this)},i.levels=[0,.236,.382,.5,.618,.786,1],i}(iK);ib.types.fibonacci=i3;var i7=(w=function(t,i){return(w=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(t[o]=i[o])})(t,i)},function(t,i){if("function"!=typeof i&&null!==i)throw TypeError("Class extends value "+String(i)+" is not a constructor or null");function o(){this.constructor=t}w(t,i),t.prototype=null===i?Object.create(i):(o.prototype=i.prototype,new o)}),i4=q().defaultOptions;function i6(t,i,o){return function(n){var e=n.annotation.chart,s=e.inverted?e.plotTop:e.plotLeft,r=n.annotation.points,a=r[0].series.xAxis,h=r.length>1?r[1].plotX-r[0].plotX:0,p=a.toValue(r[0].plotX+s+o*h);return r=[new tc(e,r[0].target,{x:p,y:0,xAxis:r[0].options.xAxis,yAxis:r[0].options.yAxis}),new tc(e,r[0].target,{x:p,y:1,xAxis:r[0].options.xAxis,yAxis:r[0].options.yAxis})],iJ.findEdgePoint(r[t],r[i])}}(null==(I=i4.annotations)?void 0:I.types)&&(i4.annotations.types.fibonacciTimeZones=(0,H.merge)(i4.annotations.types.crookedLine,{typeOptions:{line:{stroke:"var(--highcharts-neutral-color-80)",strokeWidth:1,fill:void 0},controlPointOptions:{positioner:function(){var t,i=this.target,o=this.graphic,n=i.secondLineEdgePoints,e={annotation:i},s=n[0](e).y,r=n[1](e).y,a=this.chart.plotLeft,h=this.chart.plotTop,p=n[0](e).x,c=(s+r)/2;return this.chart.inverted&&(p=(t=[c,p])[0],c=t[1]),{x:a+p-(o.width||0)/2,y:h+c-(o.height||0)/2}},events:{drag:function(t,i){if(i.chart.isInsidePlot(t.chartX-i.chart.plotLeft,t.chartY-i.chart.plotTop,{visiblePlotOnly:!0})){var o=this.mouseMoveToTranslation(t);i.translatePoint(o.x,0,1),i.redraw(!1)}}}}}}));var i8=function(t){function i(){return null!==t&&t.apply(this,arguments)||this}return i7(i,t),i.prototype.addShapes=function(){for(var t,i=1,o=1,n=0;n<11;n++){var e=n?i:0,s=[i6(1,0,e),i6(0,1,e)];i=(o=i+o)-i,1===n&&(this.secondLineEdgePoints=[s[0],s[1]]),this.initShape((0,H.merge)(null==(t=this.options.typeOptions)?void 0:t.line,{type:"path",className:"highcharts-fibonacci-timezones-lines",points:s}),n)}},i.prototype.addControlPoints=function(){var t=this.options,i=t.typeOptions,o=new tr(this.chart,this,(0,H.merge)(t.controlPointOptions,i.controlPointOptions),0);this.controlPoints.push(o),i.controlPointOptions=o.options},i}(iF);ib.types.fibonacciTimeZones=i8;var ot=(E=function(t,i){return(E=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(t[o]=i[o])})(t,i)},function(t,i){if("function"!=typeof i&&null!==i)throw TypeError("Class extends value "+String(i)+" is not a constructor or null");function o(){this.constructor=t}E(t,i),t.prototype=null===i?Object.create(i):(o.prototype=i.prototype,new o)}),oi=q().defaultOptions;(null==(D=oi.annotations)?void 0:D.types)&&(oi.annotations.types.pitchfork=(0,H.merge)(oi.annotations.types.infinityLine,{typeOptions:{innerBackground:{fill:"rgba(130, 170, 255, 0.4)",strokeWidth:0},outerBackground:{fill:"rgba(156, 229, 161, 0.4)",strokeWidth:0}}}));var oo=function(t){function i(){return null!==t&&t.apply(this,arguments)||this}return ot(i,t),i.outerLineEdgePoint=function(t){return function(o){var n=o.annotation,e=n.points;return i.findEdgePoint(e[t],e[0],new tc(n.chart,o,n.midPointOptions()))}},i.findEdgePoint=function(t,i,o){var n=Math.atan2(o.plotY-i.plotY,o.plotX-i.plotX);return{x:t.plotX+1e7*Math.cos(n),y:t.plotY+1e7*Math.sin(n)}},i.middleLineEdgePoint=function(t){var i=t.annotation,o=i.points;return iJ.findEdgePoint(o[0],new tc(i.chart,t,i.midPointOptions()))},i.prototype.midPointOptions=function(){var t=this.points;return{x:(t[1].x+t[2].x)/2,y:(t[1].y+t[2].y)/2,xAxis:t[0].series.xAxis,yAxis:t[0].series.yAxis}},i.prototype.addShapes=function(){this.addLines(),this.addBackgrounds()},i.prototype.addLines=function(){var t="highcharts-pitchfork-lines";this.initShape({type:"path",points:[this.points[0],i.middleLineEdgePoint],className:t},0),this.initShape({type:"path",points:[this.points[1],i.topLineEdgePoint],className:t},1),this.initShape({type:"path",points:[this.points[2],i.bottomLineEdgePoint],className:t},2)},i.prototype.addBackgrounds=function(){var t=this.shapes,i=this.options.typeOptions,o=this.initShape((0,H.merge)(i.innerBackground,{type:"path",points:[function(t){var i=t.annotation,o=i.points,n=i.midPointOptions();return{x:(o[1].x+n.x)/2,y:(o[1].y+n.y)/2,xAxis:n.xAxis,yAxis:n.yAxis}},t[1].points[1],t[2].points[1],function(t){var i=t.annotation,o=i.points,n=i.midPointOptions();return{x:(n.x+o[2].x)/2,y:(n.y+o[2].y)/2,xAxis:n.xAxis,yAxis:n.yAxis}}],className:"highcharts-pitchfork-inner-background"}),3),n=this.initShape((0,H.merge)(i.outerBackground,{type:"path",points:[this.points[1],t[1].points[1],t[2].points[1],this.points[2]],className:"highcharts-pitchfork-outer-background"}),4);i.innerBackground=o.options,i.outerBackground=n.options},i.topLineEdgePoint=i.outerLineEdgePoint(1),i.bottomLineEdgePoint=i.outerLineEdgePoint(0),i}(iJ);ib.types.pitchfork=oo;var on=(M=function(t,i){return(M=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(t[o]=i[o])})(t,i)},function(t,i){if("function"!=typeof i&&null!==i)throw TypeError("Class extends value "+String(i)+" is not a constructor or null");function o(){this.constructor=t}M(t,i),t.prototype=null===i?Object.create(i):(o.prototype=i.prototype,new o)}),oe=q().defaultOptions;(null==(R=oe.annotations)?void 0:R.types)&&(oe.annotations.types.verticalLine={typeOptions:{yOffset:10,label:{offset:-40,point:function(t){return t.annotation.points[0]},allowOverlap:!0,backgroundColor:"none",borderWidth:0,crop:!0,overflow:"none",shape:"rect",text:"{y:.2f}"},connector:{strokeWidth:1,markerEnd:"arrow"}},labelOptions:{style:{color:"var(--highcharts-neutral-color-80)",fontSize:"0.7em"}}});var os=function(t){function i(){return null!==t&&t.apply(this,arguments)||this}return on(i,t),i.connectorFirstPoint=function(t){var i,o,n,e,s=t.annotation,r=s.chart,a=r.inverted,h=s.points[0],p=(0,H.pick)(null==(i=h.series.yAxis)?void 0:i.left,0),c=(0,H.pick)(null==(o=h.series.yAxis)?void 0:o.top,0),l=(null==(e=null==(n=s.options.typeOptions)?void 0:n.label)?void 0:e.offset)||0,u=tc.pointToPixels(h,!0)[a?"x":"y"];return{x:h.x,xAxis:h.series.xAxis,y:u+l+(a?p-r.plotLeft:c-r.plotTop)}},i.connectorSecondPoint=function(t){var i,o=t.annotation,n=o.chart,e=n.inverted,s=o.options.typeOptions,r=o.points[0],a=(0,H.pick)(r.series.yAxis&&r.series.yAxis.left,0),h=(0,H.pick)(r.series.yAxis&&r.series.yAxis.top,0),p=tc.pointToPixels(r,!0)[e?"x":"y"],c=(null==s?void 0:s.yOffset)||0;return 0>((null==(i=null==s?void 0:s.label)?void 0:i.offset)||0)&&(c*=-1),{x:r.x,xAxis:r.series.xAxis,y:p+c+(e?a-n.plotLeft:h-n.plotTop)}},i.prototype.getPointsOptions=function(){var t;return(null==(t=this.options.typeOptions)?void 0:t.point)?[this.options.typeOptions.point]:[]},i.prototype.addShapes=function(){var t,o=this.options.typeOptions,n=this.initShape((0,H.merge)(o.connector,{type:"path",points:[i.connectorFirstPoint,i.connectorSecondPoint],className:"highcharts-vertical-line"}),0);o.connector=n.options,((t=this.userOptions).typeOptions||(t.typeOptions={})).point=o.point},i.prototype.addLabels=function(){var t=this.options.typeOptions,i=t.label,o=(null==i?void 0:i.offset)||0,n=0,e=o,s=o<0?"bottom":"top",r="center";this.chart.inverted&&(n=o,e=0,s="middle",r=o<0?"right":"left"),t.label=this.initLabel((0,H.merge)(i,{verticalAlign:s,align:r,x:n,y:e})).options},i}(ib);ib.types.verticalLine=os;var or=(k=function(t,i){return(k=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(t[o]=i[o])})(t,i)},function(t,i){if("function"!=typeof i&&null!==i)throw TypeError("Class extends value "+String(i)+" is not a constructor or null");function o(){this.constructor=t}k(t,i),t.prototype=null===i?Object.create(i):(o.prototype=i.prototype,new o)}),oa=q().defaultOptions;function oh(){var t=0,i=0,o=0,n=this.chart.series,e=ou(this.xAxisMin,this.xAxisMax,this.yAxisMin,this.yAxisMax);return n.forEach(function(t){t.visible&&"highcharts-navigator-series"!==t.options.id&&t.points.forEach(function(t){op(t,e)&&(0,H.isNumber)(t.y)&&(i+=t.y,o++)})}),o>0&&(t=i/o),t}function op(t,i){return!t.isNull&&(0,H.isNumber)(t.y)&&t.x>i.xAxisMin&&t.x<=i.xAxisMax&&t.y>i.yAxisMin&&t.y<=i.yAxisMax}function oc(){var t=this.chart.series,i=ou(this.xAxisMin,this.xAxisMax,this.yAxisMin,this.yAxisMax),o=0;return t.forEach(function(t){t.visible&&"highcharts-navigator-series"!==t.options.id&&t.points.forEach(function(t){op(t,i)&&o++})}),o}function ol(){return"Min: "+this.min+"<br>Max: "+this.max+"<br>Average: "+this.average.toFixed(2)+"<br>Bins: "+this.bins}function ou(t,i,o,n){return{xAxisMin:Math.min(i,t),xAxisMax:Math.max(i,t),yAxisMin:Math.min(n,o),yAxisMax:Math.max(n,o)}}function od(t,i,o){return t.toValue(t.toPixels(i)+o)}function of(){var t=this.options.typeOptions,i=this.chart,o=i.inverted,n=i.xAxis[t.xAxis],e=i.yAxis[t.yAxis],s=t.background,r=o?s.height:s.width,a=o?s.width:s.height,h=t.selectType,p=o?n.left:e.top,c=o?e.top:n.left;this.startXMin=t.point.x,this.startYMin=t.point.y,(0,H.isNumber)(r)?this.startXMax=this.startXMin+r:this.startXMax=od(n,this.startXMin,parseFloat(r)),(0,H.isNumber)(a)?this.startYMax=this.startYMin-a:this.startYMax=od(e,this.startYMin,parseFloat(a)),"x"===h?(this.startYMin=e.toValue(p),this.startYMax=e.toValue(p+e.len)):"y"===h&&(this.startXMin=n.toValue(c),this.startXMax=n.toValue(c+n.len))}function oy(){var t=this.chart.series,i=ou(this.xAxisMin,this.xAxisMax,this.yAxisMin,this.yAxisMax),o=-1/0,n=!1;return t.forEach(function(t){t.visible&&"highcharts-navigator-series"!==t.options.id&&t.points.forEach(function(t){(0,H.isNumber)(t.y)&&t.y>o&&op(t,i)&&(o=t.y,n=!0)})}),n||(o=0),o}function ov(){var t=this.chart.series,i=ou(this.xAxisMin,this.xAxisMax,this.yAxisMin,this.yAxisMax),o=1/0,n=!1;return t.forEach(function(t){t.visible&&"highcharts-navigator-series"!==t.options.id&&t.points.forEach(function(t){(0,H.isNumber)(t.y)&&t.y<o&&op(t,i)&&(o=t.y,n=!0)})}),n||(o=0),o}function og(t){var i=this.options.typeOptions,o=this.chart.xAxis[i.xAxis],n=this.chart.yAxis[i.yAxis],e=this.offsetX,s=this.offsetY;this.xAxisMin=od(o,this.startXMin,e),this.xAxisMax=od(o,this.startXMax,e),this.yAxisMin=od(n,this.startYMin,s),this.yAxisMax=od(n,this.startYMax,s),this.min=ov.call(this),this.max=oy.call(this),this.average=oh.call(this),this.bins=oc.call(this),t&&this.resize(0,0)}function ox(t,i,o,n,e){var s,r=this.options.typeOptions,a=r.selectType,h=this.chart.xAxis[r.xAxis],p=this.chart.yAxis[r.yAxis],c=this.startXMin,l=this.startXMax,u=this.startYMin,d=this.startYMax,f=this.offsetX,y=this.offsetY;i&&("x"===a?0===o?this.startXMin=od(h,c,n):this.startXMax=od(h,l,n):"y"===a?0===o?this.startYMin=od(p,u,e):this.startYMax=od(p,d,e):(this.startXMax=od(h,l,n),this.startYMax=od(p,d,e))),t&&(this.startXMin=od(h,c,f),this.startXMax=od(h,l,f),this.startYMin=od(p,u,y),this.startYMax=od(p,d,y),this.offsetX=0,this.offsetY=0),this.options.typeOptions.point={x:this.startXMin,y:this.startYMin},((s=this.userOptions).typeOptions||(s.typeOptions={})).point={x:this.startXMin,y:this.startYMin}}(null==(W=oa.annotations)?void 0:W.types)&&(oa.annotations.types.measure={typeOptions:{selectType:"xy",xAxis:0,yAxis:0,background:{fill:"rgba(130, 170, 255, 0.4)",strokeWidth:0,stroke:void 0},crosshairX:{enabled:!0,zIndex:6,dashStyle:"Dash",markerEnd:"arrow"},crosshairY:{enabled:!0,zIndex:6,dashStyle:"Dash",markerEnd:"arrow"},label:{enabled:!0,style:{fontSize:"0.7em",color:"var(--highcharts-neutral-color-80)"},formatter:void 0}},controlPointOptions:{positioner:function(t){var i,o,n=this.index,e=t.chart,s=t.options,r=s.typeOptions,a=r.selectType,h=s.controlPointOptions,p=e.inverted,c=e.xAxis[r.xAxis],l=e.yAxis[r.yAxis],u=ou(t.xAxisMin,t.xAxisMax,t.yAxisMin,t.yAxisMax),d=t.xAxisMax,f=t.yAxisMax;return"x"===a&&(f=(u.yAxisMax+u.yAxisMin)/2,0===n&&(d=t.xAxisMin)),"y"===a&&(d=u.xAxisMin+(u.xAxisMax-u.xAxisMin)/2,0===n&&(f=t.yAxisMin)),p?(i=l.toPixels(f),o=c.toPixels(d)):(i=c.toPixels(d),o=l.toPixels(f)),{x:i-((null==h?void 0:h.width)||0)/2,y:o-((null==h?void 0:h.height)||0)/2}},events:{drag:function(t,i){var o=this.mouseMoveToTranslation(t),n=i.options.typeOptions.selectType,e=this.index,s="y"===n?0:o.x,r="x"===n?0:o.y;i.resize(s,r,e,n),i.resizeX+=s,i.resizeY+=r,i.redraw(!1,!0)}}}});var om=function(t){function i(){return null!==t&&t.apply(this,arguments)||this}return or(i,t),i.prototype.init=function(i,o,n){t.prototype.init.call(this,i,o,n),this.offsetX=0,this.offsetY=0,this.resizeX=0,this.resizeY=0,of.call(this),this.addValues(),this.addShapes()},i.prototype.setClipAxes=function(){this.clipXAxis=this.chart.xAxis[this.options.typeOptions.xAxis],this.clipYAxis=this.chart.yAxis[this.options.typeOptions.yAxis]},i.prototype.shapePointsOptions=function(){var t=this.options.typeOptions,i=t.xAxis,o=t.yAxis;return[{x:this.xAxisMin,y:this.yAxisMin,xAxis:i,yAxis:o},{x:this.xAxisMax,y:this.yAxisMin,xAxis:i,yAxis:o},{x:this.xAxisMax,y:this.yAxisMax,xAxis:i,yAxis:o},{x:this.xAxisMin,y:this.yAxisMax,xAxis:i,yAxis:o},{command:"Z"}]},i.prototype.addControlPoints=function(){var t,i,o=this.chart.inverted,n=this.options.controlPointOptions,e=this.options.typeOptions.selectType;(0,H.defined)(null==(i=null==(t=this.userOptions.controlPointOptions)?void 0:t.style)?void 0:i.cursor)||("x"===e?n.style.cursor=o?"ns-resize":"ew-resize":"y"===e&&(n.style.cursor=o?"ew-resize":"ns-resize"));var s=new tr(this.chart,this,this.options.controlPointOptions,0);this.controlPoints.push(s),"xy"!==e&&(s=new tr(this.chart,this,this.options.controlPointOptions,1),this.controlPoints.push(s))},i.prototype.addValues=function(t){var i=this.options.typeOptions,o=i.label.formatter;og.call(this,t),i.label.enabled&&(this.labels.length>0?this.labels[0].text=(null==o?void 0:o.call(this,this))||ol.call(this):this.initLabel((0,H.extend)({shape:"rect",backgroundColor:"none",color:"black",borderWidth:0,dashStyle:"Dash",overflow:"allow",align:"left",y:0,x:0,verticalAlign:"top",crop:!0,xAxis:0,yAxis:0,point:function(t){var o=t.annotation,n=t.options;return{x:o.xAxisMin,y:o.yAxisMin,xAxis:(0,H.pick)(i.xAxis,n.xAxis),yAxis:(0,H.pick)(i.yAxis,n.yAxis)}},text:(null==o?void 0:o.call(this,this))||ol.call(this)},i.label),void 0))},i.prototype.addShapes=function(){this.addCrosshairs(),this.addBackground()},i.prototype.addBackground=function(){var t=this.shapePointsOptions();void 0!==t[0].x&&this.initShape((0,H.extend)({type:"path",points:t,className:"highcharts-measure-background"},this.options.typeOptions.background),2)},i.prototype.addCrosshairs=function(){var t,i,o,n=this.chart,e=this.options.typeOptions,s=this.options.typeOptions.point,r=n.xAxis[e.xAxis],a=n.yAxis[e.yAxis],h=n.inverted,p={point:s,type:"path"},c=r.toPixels(this.xAxisMin),l=r.toPixels(this.xAxisMax),u=a.toPixels(this.yAxisMin),d=a.toPixels(this.yAxisMax),f=[],y=[];h&&(o=c,c=u,u=o,o=l,l=d,d=o),e.crosshairX.enabled&&(f=[["M",c,u+(d-u)/2],["L",l,u+(d-u)/2]]),e.crosshairY.enabled&&(y=[["M",c+(l-c)/2,u],["L",c+(l-c)/2,d]]),this.shapes.length>0?(this.shapes[0].options.d=f,this.shapes[1].options.d=y):(t=(0,H.merge)(p,{className:"highcharts-measure-crosshair-x"},e.crosshairX),i=(0,H.merge)(p,{className:"highcharts-measure-crosshair-y"},e.crosshairY),this.initShape((0,H.extend)({d:f},t),0),this.initShape((0,H.extend)({d:y},i),1))},i.prototype.onDrag=function(t){var i=this.mouseMoveToTranslation(t),o=this.options.typeOptions.selectType,n="y"===o?0:i.x,e="x"===o?0:i.y;this.translate(n,e),this.offsetX+=n,this.offsetY+=e,this.redraw(!1,!1,!0)},i.prototype.resize=function(t,i,o,n){var e=this.shapes[2];"x"===n?0===o?(e.translatePoint(t,0,0),e.translatePoint(t,i,3)):(e.translatePoint(t,0,1),e.translatePoint(t,i,2)):"y"===n?0===o?(e.translatePoint(0,i,0),e.translatePoint(0,i,1)):(e.translatePoint(0,i,2),e.translatePoint(0,i,3)):(e.translatePoint(t,0,1),e.translatePoint(t,i,2),e.translatePoint(0,i,3)),ox.call(this,!1,!0,o,t,i),this.options.typeOptions.background.height=Math.abs(this.startYMax-this.startYMin),this.options.typeOptions.background.width=Math.abs(this.startXMax-this.startXMin)},i.prototype.redraw=function(t,i,o){this.linkPoints(),this.graphic||this.render(),o&&ox.call(this,!0,!1),this.clipRect&&this.clipRect.animate(this.getClipBox()),this.addValues(i),this.addCrosshairs(),this.redrawItems(this.shapes,t),this.redrawItems(this.labels,t);var n,e=this.options.typeOptions.background;if((null==e?void 0:e.strokeWidth)&&(null==(n=this.shapes[2])?void 0:n.graphic)){var s=e.strokeWidth/2,r=this.shapes[2],a=r.graphic.pathArray,h=a[0],p=a[1],c=a[2],l=a[3];h[1]=(h[1]||0)+s,p[1]=(p[1]||0)-s,c[1]=(c[1]||0)-s,l[1]=(l[1]||0)+s,h[2]=(h[2]||0)+s,p[2]=(p[2]||0)+s,c[2]=(c[2]||0)-s,l[2]=(l[2]||0)-s,r.graphic.attr({d:a})}this.controlPoints.forEach(function(t){return t.redraw()})},i.prototype.translate=function(t,i){this.shapes.forEach(function(o){return o.translate(t,i)})},i}(ib);ib.types.measure=om;var ob=q();ob.Annotation||(ob.Annotation=ib,ob.NavigationBindings=ob.NavigationBindings||iI,ob.Annotation.compose(ob.Chart,ob.NavigationBindings,ob.Pointer,ob.SVGRenderer)),ob.Annotation!==ib&&ib.types&&Object.assign(ob.Annotation.types,ib.types);var oA=q();return V.default}()});