!/**
 * Highcharts JS v12.6.0 (2026-04-13)
 * @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,M,k,C,E,_,T,N,S,B,L,Y,X,j,I,D,R,W,F={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}},z={};function U(t){var i=z[t];if(void 0!==i)return i.exports;var o=z[t]={exports:{}};return F[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 H={};U.d(H,{default:function(){return oD}});var V=U(944),q=U.n(V),G=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))},K=q().doc;function Z(t,i,o,n){void 0===n&&(n={});var e="function"==typeof t&&t.prototype||t;Object.hasOwnProperty.call(e,"hcEvents")||(e.hcEvents={});var s=e.hcEvents;q().Point&&t instanceof q().Point&&t.series&&t.series.chart&&(t.series.chart.runTrackerClick=!0);var r=t.addEventListener;r&&r.call(t,i,o,!!q().supportsPassiveEvents&&{passive:void 0===n.passive?-1!==i.indexOf("touch"):n.passive,capture:!1}),s[i]||(s[i]=[]);var a={fn:o,order:"number"==typeof n.order?n.order:1/0};return s[i].push(a),s[i].sort(function(t,i){return t.order-i.order}),function(){td(t,i,o)}}function $(t,i,o,n,e){var s,r,a,h=K.createElement(t);return i&&tt(h,i),e&&(s={padding:"0",border:"none",margin:"0"},tt(h.style,s)),o&&(r=h,a=o,tt(r.style,a)),n&&n.appendChild(h),h}q().win;function J(t){return null!=t}function Q(t,i){for(var o=t.length;o--;)if(t[o]===i){t.splice(o,1);break}}function tt(t,i){var o;for(o in t||(t={}),i)t[o]=i[o];return t}function ti(t,i,o,n){if(o=o||{},(null==K?void 0:K.createEvent)&&(t.dispatchEvent||t.fireEvent&&t!==q())){var e=K.createEvent("Events");e.initEvent(i,!0,!0),o=tt(e,o),t.dispatchEvent?t.dispatchEvent(o):t.fireEvent(i,o)}else if(t.hcEvents){o.target||tt(o,{preventDefault:function(){o.defaultPrevented=!0},target:t,type:i});for(var s=[],r=t,a=!1;r.hcEvents;)Object.hasOwnProperty.call(r,"hcEvents")&&r.hcEvents[i]&&(s.length&&(a=!0),s.unshift.apply(s,r.hcEvents[i])),r=Object.getPrototypeOf(r);a&&s.sort(function(t,i){return t.order-i.order}),s.forEach(function(i){!1===i.fn.call(t,o,t)&&o.preventDefault()})}n&&!o.defaultPrevented&&n.call(t,o)}var to=function(t){return void 0===t&&(t=""),({center:.5,right:1,middle:.5,bottom:1})[t]||0},tn=Array.prototype.find?function(t,i){return t.find(i)}:function(t,i){var o,n=t.length;for(o=0;o<n;o++)if(i(t[o],o))return t[o]};function te(t){return th(t)&&"number"==typeof t.nodeType}function ts(t){return"number"==typeof t&&!isNaN(t)&&t<1/0&&t>-1/0}function tr(t){return"string"==typeof t}function ta(t){var i=Object.prototype.toString.call(t);return"[object Array]"===i||"[object Array Iterator]"===i}function th(t,i){return!!t&&"object"==typeof t&&(!i||!ta(t))}function tp(t){for(var i=[],o=1;o<arguments.length;o++)i[o-1]=arguments[o];var n,e=G([t],i,!0),s={},r=function(t,i){return"object"!=typeof t&&(t={}),tc(i,function(o,n){if("__proto__"!==n&&"constructor"!==n){var e;!th(o,!0)||(e=null==o?void 0:o.constructor,th(o,!0)&&!te(o)&&(null==e?void 0:e.name)&&"Object"!==e.name)||te(o)?t[n]=i[n]:t[n]=r(t[n]||{},o)}}),t};!0===t&&(s=e[1],e=Array.prototype.slice.call(e,2));var a=e.length;for(n=0;n<a;n++)s=r(s,e[n]);return s}function tc(t,i,o){for(var n in t)Object.hasOwnProperty.call(t,n)&&i.call(o||t[n],t[n],n,t)}function tl(){for(var t=arguments,i=t.length,o=0;o<i;o++){var n=t[o];if(null!=n)return n}}function tu(t,i){return 0>t.indexOf(i)&&!!t.push(i)}function td(t,i,o){function n(i,o){var n=t.removeEventListener;n&&n.call(t,i,o,!1)}function e(o){var e,s;t.nodeName&&(i?(e={})[i]=!0:e=o,tc(e,function(t,i){if(o[i])for(s=o[i].length;s--;)n(i,o[i][s].fn)}))}var s="function"==typeof t&&t.prototype||t;if(Object.hasOwnProperty.call(s,"hcEvents")){var r=s.hcEvents;if(i){var a=r[i]||[];o?(r[i]=a.filter(function(t){return o!==t.fn}),n(i,o)):(e(r),r[i]=[])}else e(r),delete s.hcEvents}}function tf(t,i){var o,n,e=t.length;for(n=0;n<e;n++)t[n].safeI=n;for(t.sort(function(t,n){return 0===(o=i(t,n))?t.safeI-n.safeI:o}),n=0;n<e;n++)delete t[n].safeI}function ty(t,i,o){var n=t[i];t[i]=function(){var t=arguments,i=this;return o.apply(this,[function(){return n.apply(i,arguments.length?arguments:t)}].concat([].slice.call(arguments)))}}function tv(t,i){var o=this.initAnnotation(t);return this.options.annotations.push(o.options),tl(i,!0)&&(o.redraw(),o.graphic.attr({opacity:1})),o}function tg(){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(),Z(t,"redraw",t.drawAnnotations),Z(t,"destroy",function(){t.plotBoxClip.destroy(),t.controlPointsGroup.destroy()}),Z(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 tx(){this.plotBoxClip.attr(this.plotBox),this.annotations.forEach(function(t){t.redraw(),t.graphic.animate({opacity:1},t.animationConfig)})}function tm(t){var i=this.annotations,o="annotations"===t.coll?t:tn(i,function(i){return i.options.id===t});o&&(ti(o,"remove"),Q(this.options.annotations,o.options),Q(i,o),o.destroy())}function tb(){var t=this.options.annotations,i=this.userOptions.annotations;this.annotations=[],ta(this.options.annotations)||(this.options.annotations=[]),th(i,!0)&&th(t,!0)&&this.options.annotations.push(t)}function tA(t){this.chart.hasDraggedAnnotation||t.apply(this,Array.prototype.slice.call(arguments,1))}(E||(E={})).compose=function(t,i,o){var n=i.prototype;if(!n.addAnnotation){var e=o.prototype;Z(i,"afterInit",tb),n.addAnnotation=tv,n.callbacks.push(tg),n.collectionsWithInit.annotations=[tv],n.collectionsWithUpdate.push("annotations"),n.drawAnnotations=tx,n.removeAnnotation=tm,n.initAnnotation=function(i){var o=new(t.types[i.type]||t)(this,i);return this.annotations.push(o),o},ty(e,"onContainerMouseDown",tA)}};var tP=E,tO={visible:!0,animation:{},crop:!0,draggable:"xy",labelOptions:{align:"center",allowOverlap:!1,backgroundColor:"rgba(0, 0, 0, 0.75)",borderColor:"#000000",borderRadius:3,borderWidth:1,className:"highcharts-no-tooltip",crop:!1,formatter:function(){return J(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:"#ffffff",stroke:"#000000","stroke-width":2},height:10,symbol:"circle",visible:!1,width:10},events:{},typeOptions:{},types:{},zIndex:6},tw=q().doc,tM=q().isTouchDevice,tk=function(){function t(){}return t.prototype.addEvents=function(){var t=this,i=function(i){Z(i,tM?"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)}),tc(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)?(Z(t.graphic.element,o,n,{passive:!1}),t.graphic.div&&Z(t.graphic.div,o,n,{passive:!1})):Z(t,o,n,{passive:!1})}),t.options.draggable&&(Z(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||ti(t,"add")},t.prototype.destroy=function(){this.removeDocEvents(),td(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=Z(tw,tM||e?"touchmove":"mousemove",function(t){o.hasDragged=!0,(t=(null==n?void 0:n.normalize(t))||t).prevChartX=s,t.prevChartY=r,ti(o,"drag",t),s=t.chartX,r=t.chartY},tM||e?{passive:!1}:void 0),o.removeMouseUp=Z(tw,tM||e?"touchend":"mouseup",function(){var t=tl(o.target&&o.target.annotation,o.target);t&&(t.cancelClick=o.hasDragged),o.cancelClick=o.hasDragged,o.chart.hasDraggedAnnotation=!1,o.hasDragged&&ti(tl(t,o),"afterUpdate"),o.hasDragged=!1,o.onMouseUp()},tM||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}(),tC=(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)}),tE=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=tl(n.index,e),s}return tC(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=tp(!0,this.options,t);this.destroy(),this.constructor(i,o,e,n),this.render(i.controlPointsGroup),this.redraw()},i}(tk),t_=U(512),tT=U.n(t_),tN=tT().series.prototype,tS=function(){function t(t,i,o){this.mock=!0,this.point=this,this.series={visible:!0,chart:t,getPlotBox:tN.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=J(t)&&t>=0&&t<=o.len),n&&(e.isInsidePlot=e.isInsidePlot&&J(i)&&i>=0&&i<=n.len),ti(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:J(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=tp(t.options.controlPointOptions,n);s.index||(s.index=e),o[e]=s,i.push(new tE(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:tp(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,i=this.options;return i.points||i.point&&(ta(t=i.point)?t:[t])}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(th(t))i=new tS(this.chart,this,t);else if(tr(t))i=this.chart.get(t)||null;else if("function"==typeof t){var o=t.call(i,this);i=o.series?o:new tS(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]=tS.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||tp(!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 tB=_,tL=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=tp(!0,this.options,t),n=this.graphic.parentGroup,e=this.constructor;this.destroy(),tp(!0,this,new e(i,o,this.index,this.itemType)),this.render(n),this.redraw()},t}();tB.compose(tL);var tY={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}}]}},tX=(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)}),tj=tR("marker-end"),tI=tR("marker-start"),tD="rgba(192,192,192,"+(q().svg?1e-4:.002)+")";function tR(t){return function(i){this.attr(t,"url(#"+i+")")}}function tW(){this.options.defs=tp(tY,this.options.defs||{})}function tF(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 tp(n,t)});var e=tp(!0,{attributes:{markerWidth:20,markerHeight:20,refX:0,refY:0,orient:"auto"}},i,o),s=this.definition(e);return s.id=t,s}var tz=function(t){function i(i,o,n){var e=t.call(this,i,o,n,"shape")||this;return e.type="path",e}return tX(i,t),i.compose=function(t,i){var o=i.prototype;o.addMarker||(Z(t,"afterGetContainer",tW),o.addMarker=tF)},i.prototype.init=function(i,o,n){J(o.yAxis)&&o.points.forEach(function(t){t&&"string"!=typeof t&&(t.yAxis=o.yAxis)}),J(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:tD,fill:tD,"stroke-width":this.graphic.strokeWidth()+2*o.snap}),t.prototype.render.call(this),tt(this.graphic,{markerStartSetter:tI,markerEndSetter:tj}),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=J(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,V.uniqueKey)())+"-"+c,tp(a,{color:s})),t.attr(e,p.getAttribute("id")))}})},i.attrsMap={dashStyle:"dashstyle",strokeWidth:"stroke-width",stroke:"stroke",fill:"fill",zIndex:"zIndex"},i}(tL),tU=(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)}),tH=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 tU(i,t),i.prototype.init=function(i,o,n){var e=o.point,s=o.xAxis,r=o.yAxis;e&&"string"!=typeof e&&(J(s)&&(e.xAxis=s),J(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=J(this.options.xAxis)?this.chart.xAxis[this.options.xAxis]:void 0,a=J(this.options.yAxis)?this.chart.yAxis[this.options.yAxis]:void 0;r&&J(o.x)&&(e=this.calculateAnnotationSize(o.x,e,r)),a&&J(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=tp(tz.attrsMap,{width:"width",height:"height"}),i}(tL),tV=(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)}),tq=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 tV(i,t),i.prototype.init=function(i,o,n){var e=o.point,s=o.xAxis,r=o.yAxis;e&&"string"!=typeof e&&(J(s)&&(e.xAxis=s),J(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=J(this.options.yAxis)?this.chart.yAxis[this.options.yAxis]:void 0;s&&J(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=tp(tz.attrsMap,{r:"r"}),i}(tL),tG=(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 tG(i,t),i.prototype.init=function(i,o,n){J(o.yAxis)&&o.points.forEach(function(t){t&&"string"!=typeof t&&(t.yAxis=o.yAxis)}),J(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 J(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=tp(tz.attrsMap,{ry:"ry"}),i}(tL),tZ=U(984),t$=U.n(tZ),tJ=(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)}),tQ=t$().format;function t0(t,i,o,n,e){var s,r,a=e&&e.anchorX,h=e&&e.anchorY,p=o/2;return ts(a)&&ts(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 t1=function(t){function i(i,o,n){return t.call(this,i,o,n,"label")||this}return tJ(i,t),i.alignedPosition=function(t,i){return{x:Math.round((i.x||0)+(t.x||0)+(i.width-(t.width||0))*to(t.align)),y:Math.round((i.y||0)+(t.y||0)+(i.height-(t.height||0))*to(t.verticalAlign))}},i.compose=function(t){t.prototype.symbols.connector=t0},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?tQ(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&&tS.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:tl(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(tt(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}(tL),t2=(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)}),t3=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 t2(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=t1.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}(tL),t9=U(660),t5=U.n(t9),t4=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"),$("div",{className:i},void 0,t)},t.prototype.addCloseButton=function(t){void 0===t&&(t="highcharts-popup-close");var i=this,o=this.iconsURL,n=$("button",{className:t},void 0,this.container);return $("span",{className:"highcharts-icon"},{backgroundImage:"url("+(o.match(/png|svg|jpeg|jpg|gif/ig)?o:o+"close.svg")+")"},n),["click","touchstart"].forEach(function(t){Z(n,t,i.closeButtonEvents.bind(i))}),Z(document,"keydown",function(t){"Escape"===t.code&&i.closeButtonEvents()}),n},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=t5().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}(),t6=U(620),t7=U.n(t6),t8=q().doc,it=q().isFirefox;function ii(t,i,o,n,e,s){var r,a,h=this;if(i){var p=this.addInput,c=this.lang;tc(n,function(n,s){r=""!==o?o+"."+s:s,th(n)&&(!ta(n)||ta(n)&&th(n[0])?((a=c[s]||s).match(/\d/g)||e.push([!0,a,t]),ii.call(h,t,i,r,n,e,!1)):e.push([h,r,"annotation",t,n]))}),s&&(tf(e,function(t){return t[1].match(/format/g)?-1:1}),it&&e.reverse(),e.forEach(function(t){!0===t[0]?$("span",{className:"highcharts-annotation-title"},void 0,t[2]).appendChild(t8.createTextNode(t[1])):(t[4]={value:t[4][0],type:t[4][1]},p.apply(t[0],t.splice(1)))}))}}var io=q().doc,ie=tT().seriesTypes;(u=T||(T={}))[u["params.algorithm"]=0]="params.algorithm",u[u["params.average"]=1]="params.average";var is={"algorithm-pivotpoints":["standard","fibonacci","camarilla"],"average-disparityindex":["sma","ema","dema","tema","wma"]};function ir(t){var i=$("div",{className:"highcharts-popup-lhs-col"},void 0,t),o=$("div",{className:"highcharts-popup-rhs-col"},void 0,t);return $("div",{className:"highcharts-popup-rhs-col-wrapper"},void 0,o),{lhsCol:i,rhsCol:o}}function ia(t,i,o,n){var e=i.params||i.options.params;n.innerHTML=t5().emptyHTML,$("h3",{className:"highcharts-indicator-title"},void 0,n).appendChild(io.createTextNode(iv(i,o).indicatorFullName)),$("input",{type:"hidden",name:"highcharts-type-"+o,value:o},void 0,n),ig.call(this,o,"series",t,n,i,i.linkedParent&&i.linkedParent.options.id),e.volumeSeriesID&&ig.call(this,o,"volume",t,n,i,i.linkedParent&&e.volumeSeriesID),ip.call(this,t,"params",e,o,n)}function ih(t,i,o,n){function e(i,o){var n=f.parentNode.children[1];ia.call(s,t,i,o,f),n&&(n.style.display="block"),p&&i.options&&$("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||ta(c)?ta(c)&&(u=iy.call(this,c)):u=id.call(this,c,n),tf(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=$("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=$("li",{className:"highcharts-indicator-list"},void 0,d);var s=$("button",{className:"highcharts-indicator-list-item",textContent:i},void 0,l);["click","touchstart"].forEach(function(t){Z(s,t,function(){e(n,o)})})}),u.length>0){var y=u[0];e(y.series,y.indicatorType)}else p||(t5().setElementHTML(f.parentNode.children[0],r.noFilterMatch||""),f.parentNode.children[1].style.display="none")}}function ip(t,i,o,n,e){var s=this;if(t){var r=this.addInput;tc(o,function(o,a){var h=i+"."+a;if(J(o)&&h)if(th(o)&&(r.call(s,h,n,e,{}),ip.call(s,t,h,o,n,e)),h in T){var p=il.call(s,n,h,e);iu.call(s,t,i,p,n,a,o)}else"params.volumeSeriesID"===h||ta(o)||r.call(s,h,n,e,{value:o,type:"number"})})}}function ic(t,i){var o=this,n=i.querySelectorAll(".highcharts-popup-lhs-col")[0],e=this.lang.clearFilter,s=$("div",{className:"highcharts-input-wrapper"},void 0,n),r=function(i){ih.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=$("a",{textContent:e},void 0,s);a.classList.add("highcharts-input-search-indicators"),h.classList.add("clear-filter-button"),Z(a,"input",function(){r(this.value),this.value.length?h.style.display="inline-block":h.style.display="none"}),["click","touchstart"].forEach(function(t){Z(h,t,function(){a.value="",r(""),h.style.display="none"})})}function il(t,i,o){var n=i.split("."),e=n[n.length-1],s="highcharts-"+i+"-type-"+t,r=this.lang;$("label",{htmlFor:s},null,o).appendChild(io.createTextNode(r[e]||i));var a=$("select",{name:s,className:"highcharts-popup-field",id:"highcharts-select-"+i},null,o);return a.setAttribute("id","highcharts-select-"+i),a}function iu(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)&&(J(s)||"volume"!==i||"column"!==t.type||(s=n.id),$("option",{value:n.id},void 0,o).appendChild(io.createTextNode(e)))}):n&&e&&is[e+"-"+n].forEach(function(t){$("option",{value:t},void 0,o).appendChild(io.createTextNode(t))}),J(s)&&(o.value=s)}function id(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 tc(t,function(t,n){var r=t&&t.options;if(t.params||r&&r.params){var a=iv(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 iy(t){var i=[];return t.forEach(function(t){t.is("sma")&&i.push({indicatorFullName:t.name,indicatorType:t.type,series:t})}),i}function iv(t,i){var o=t.options,n=ie[i]&&ie[i].prototype.nameBase||i.toUpperCase(),e=i;return o&&o.type&&(e=t.options.type,n=t.name),{indicatorFullName:n,indicatorType:e}}function ig(t,i,o,n,e,s){if(o){var r=il.call(this,t,i,n);iu.call(this,o,i,r,void 0,void 0,void 0,e),J(s)&&(r.value=s)}}var ix=q().doc;function im(){return $("div",{className:"highcharts-tab-item-content highcharts-no-mousewheel"},void 0,this.container)}function ib(t,i){var o=this.container,n=this.lang,e="highcharts-tab-item";0===i&&(e+=" highcharts-tab-disabled");var s=$("button",{className:e},void 0,o);return s.appendChild(ix.createTextNode(n[t+"Button"]||t)),s.setAttribute("highcharts-data-tab-type",t),s}function iA(){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 iP(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 iO(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){Z(o,t,function(){iA.call(i),iP.call(i,this,n)})})})}var iw=(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)}),iM=q().doc,ik=q().getOptions,iC=function(t){function i(i,o,n){var e=t.call(this,i,o)||this;return e.chart=n,e.lang=(ik().lang.navigation||{}).popup||{},Z(e.container,"mousedown",function(){var t=n&&n.navigationBindings&&n.navigationBindings.activeAnnotation;if(t){t.cancelClick=!0;var i=Z(iM,"click",function(){setTimeout(function(){t.cancelClick=!1},0),i()})}}),e}return iw(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+"-"+tl(n.htmlFor,r);if(r.match(/^\d+$/)||$("label",{htmlFor:h,className:n.labelClassName},void 0,o).appendChild(iM.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=$("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=t7().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=iM.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=t7().parse(o.value||"").rgba[3],p=isNaN(h)?a:h,c=$("div",{className:"highcharts-popup-color-wrapper"},void 0,n),l=$("input",{type:"color",value:r,className:"highcharts-popup-field highcharts-popup-field-color"},void 0,c),u=$("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=$("span",{className:"highcharts-popup-color-separator"},void 0,c),f=$("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=$("span",{className:"highcharts-popup-opacity-percent-suffix"},void 0,c);y.appendChild(iM.createTextNode(" %"));var v=$("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,o=(i=Number(t.target.value),i>0?i<100?i:100:0);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 Z(n,"mousedown",function(t){t.target!==f&&t.target!==v&&(v.style.display="none")}),Z(f,"focus",function(){v.style.display=""}),Z(f,"input",x),Z(v,"input",x),Z(l,"input",m),Z(u,"input",m),c},i.prototype.closeButtonEvents=function(){if(this.chart){var i=this.chart.navigationBindings;ti(i,"closePopup"),i&&i.selectedButtonElement&&ti(i,"deselectButton",{button:i.selectedButtonElement})}else t.prototype.closeButtonEvents.call(this)},i.prototype.addButton=function(t,i,o,n,e){var s=this,r=$("button",void 0,void 0,t);return r.appendChild(iM.createTextNode(i)),e&&["click","touchstart"].forEach(function(t){Z(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=t7().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}(t4);tt(iC.prototype,{annotations:{addForm:function(t,i,o,n){if(t){var e=this.container,s=this.lang,r=$("h2",{className:"highcharts-popup-main-title"},void 0,e);r.appendChild(t8.createTextNode(s[i.langKey]||i.langKey||"")),r=$("div",{className:"highcharts-popup-lhs-col highcharts-popup-lhs-full"},void 0,e);var a=$("div",{className:"highcharts-popup-bottom-row"},void 0,e);ii.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=$("p",{className:"highcharts-annotation-label"},void 0,s);h.setAttribute("aria-label","Annotation type"),h.appendChild(t8.createTextNode(tl(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",$("span",{className:"highcharts-icon"},{backgroundImage:"url(".concat(this.iconsURL,"edit.svg)")},p),p=this.addButton(s,e.removeButton||"Remove","remove",s,o),p.className+=" highcharts-annotation-remove-button",$("span",{className:"highcharts-icon"},{backgroundImage:"url(".concat(this.iconsURL,"destroy.svg)")},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");ir(s[0]),ic.call(this,t,s[0]),ih.call(this,t,s[0],"add"),n=s[0].querySelectorAll(".highcharts-popup-rhs-col")[0],this.addButton(n,e.addButton||"add","add",n,o),ir(s[1]),ih.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=ib.call(this,"add");ib.call(this,"edit",i),im.call(this),im.call(this),iO.call(this,i),iP.call(this,o,0)}}}});var iE=q().composed;function i_(){this.popup&&this.popup.closePopup()}function iT(t){this.popup||(this.popup=new iC(this.chart.container,this.chart.options.navigation.iconsURL||this.chart.options.stockTools&&this.chart.options.stockTools.gui.iconsURL||"https://code.highcharts.com/12.6.0/gfx/stock-icons/",this.chart)),this.popup.showForm(t.formType,this.chart,t.options,t.onSubmit)}function iN(t,i){this.inClass(i.target,"highcharts-popup")||t.apply(this,Array.prototype.slice.call(arguments,1))}var iS=function(t,i){tu(iE,"Popup")&&(Z(t,"closePopup",i_),Z(t,"showPopup",iT),ty(i.prototype,"onContainerMouseDown",iN))},iB=(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)}),iL=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))},iY=q().getDeferredAnimation,iX=q().defaultOptions;function ij(t,i){var o={};return["labels","shapes"].forEach(function(n){var e=t[n],s=i[n];e&&(s?o[n]=(ta(s)?s:[s]).map(function(t,i){return tp(e[i],t)}):o[n]=t[n])}),o}var iI=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=ij(n.options,o);return n.options.labels=e.labels,n.options.shapes=e.shapes,n.init(i,n.options),n}return iB(i,t),i.compose=function(t,o,n,e){tP.compose(i,t,n),t1.compose(e),tz.compose(t,e),o.compose(i,t),iS(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);tp(!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);tp(!0,i[n],e.options)})},i.prototype.destroy=function(){var i,o=this.chart,n=function(t){t.destroy()};this.labels.forEach(n),this.shapes.forEach(n),this.clipXAxis=null,this.clipYAxis=null,Q(o.labelCollectors,this.labelCollector),t.prototype.destroy.call(this),this.destroyControlTarget(),i=this,tc(i,function(t,n){t!==o&&(null==t?void 0:t.destroy)&&t.destroy(),null==t||t.destroy,delete i[n]})},i.prototype.destroyItem=function(t){Q(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=ij(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=iY(n,e)},i.prototype.initLabel=function(t,i){null==(o=this.options.labelOptions)||o.align;var o,n=new t1(this,tp(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=tp(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(tl(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=iL(iL([],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=tp(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=tl(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&&ti(o,"closePopup")}i.visible=n},i.prototype.update=function(t,i){var o=this.chart,n=ij(this.userOptions,t),e=o.annotations.indexOf(this),s=tp(!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,tl(i,!0)&&o.drawAnnotations(),ti(this,"afterUpdate"),this.isUpdating=!1},i.ControlPoint=tE,i.MockPoint=tS,i.shapesMap={rect:tH,circle:tq,ellipse:tK,path:tz,image:t3},i.types={},i}(tk);iI.prototype.defaultOptions=tO,iX.annotations=tO,iI.prototype.nonDOMEvents=["add","afterUpdate","drag","remove"],tB.compose(iI),(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 iD=N,iR={backgroundColor:"color",backgroundColors:"color",borderColor:"color",borderRadius:"string",color:"color",fill:"color",fontSize:"string",labels:"string",name:"string",stroke:"color",title:"string"},iW=function(t){return t.filter(function(t){var i=t.axis.getExtremes(),o=i.min,n=i.max,e=tl(t.axis.minPointOffset,0);return ts(o)&&ts(n)&&t.value>=o-e&&t.value<=n+e&&!t.axis.options.isInternal})[0]},iF={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&&iW(o.xAxis),e=o&&iW(o.yAxis),s=this.chart.options.navigation;if(n&&e)return this.chart.addAnnotation(tp({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(ts(e.xAxis)&&ts(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&&iW(o.xAxis),e=o&&iW(o.yAxis),s=this.chart.options.navigation;if(n&&e)return this.chart.addAnnotation(tp({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&&iW(o.xAxis),e=o&&iW(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(tp({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&&iW(s.xAxis),a=s&&iW(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&&iW(o.xAxis),e=o&&iW(o.yAxis),s=this.chart.options.navigation;if(n&&e)return this.chart.addAnnotation(tp({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}}}},iz=q().setOptions,iU=t$().format,iH=q().composed,iV=q().doc,iq=q().win,iG=function(t,i){var o=iR[t],n=typeof i;return J(o)&&(n=o),({string:"text",number:"number",boolean:"checkbox",color:"color"})[n]};function iK(){this.chart.navigationBindings&&this.chart.navigationBindings.deselectAnnotation()}function iZ(){this.navigationBindings&&this.navigationBindings.destroy()}function i$(){var t=this.options;t&&t.navigation&&t.navigation.bindings&&(this.navigationBindings=new i2(this,t.navigation),this.navigationBindings.initEvents(),this.navigationBindings.initUpdate())}function iJ(){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];tc(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 iQ(){this.deselectAnnotation()}function i0(){this.selectedButtonElement=null}function i1(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),ti(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)}}})):ti(o,"closePopup"),t.activeAnnotation=!0}tp(!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 i2=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=iV.getElementsByClassName(this.options.bindingsClassName||""))}return t.compose=function(i,o){tu(iH,"NavigationBindings")&&(Z(i,"remove",iK),i1(i),tc(i.types,function(t){i1(t)}),Z(o,"destroy",iZ),Z(o,"load",i$),Z(o,"render",iJ),Z(t,"closePopup",iQ),Z(t,"deselectButton",i0),iz(iF))},t.prototype.getCoords=function(t){var i,o=null==(i=this.chart.pointer)?void 0:i.getCoordinates(t);return[o&&iW(o.xAxis),o&&iW(o.yAxis)]},t.prototype.initEvents=function(){var t=this,i=t.chart,o=t.container,n=t.options;t.boundClassNames={},tc(n.bindings||{},function(i){t.boundClassNames[i.className]=i}),[].forEach.call(o,function(i){t.eventsToUnbind.push(Z(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)}))}),tc(n.events||{},function(i,o){"function"==typeof i&&t.eventsToUnbind.push(Z(t,o,i,{passive:!1}))}),t.eventsToUnbind.push(Z(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(Z(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;iD.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),ti(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,ti(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=iq.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):ti(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]:(ti(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]):(ti(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 tc(t,function(t,o){var n=parseFloat(t),e=o.split("."),s=e.length-1;if(!ts(n)||t.match(/px|em/g)||o.match(/format/g)||(t=n),"undefined"!==t){var r=i;e.forEach(function(i,o){if("__proto__"!==i&&"constructor"!==i){var n=tl(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=tl(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&&J(t)&&-1===c.indexOf(o)&&((n.indexOf&&n.indexOf(o))>=0||n[o]||!0===n)&&(ta(t)?(e[o]=[],t.forEach(function(t,i){th(t)?(e[o][i]={},tc(t,function(t,n){u(t,n,h[o],e[o][i],o)})):u(t,0,h[o],e[o],o)})):th(t)?(r={},ta(e)?(e.push(r),r[o]={},r=r[o]):e[o]=r,tc(t,function(t,i){u(t,i,0===o?n:h[o],r,o)})):"format"===o?e[o]=[iU(t,i.labels[0].points[0]).toString(),"text"]:ta(e)?e.push([t,iG(s,t)]):e[o]=[t,iG(o,t)])}return tc(r,function(t,i){"typeOptions"===i&&"basicAnnotation"!==l.type?(l[i]={},tc(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,e,s,r,a,h=i.target,p=[];h&&h.tagName&&(o=h,s=tr(n="class")&&!J(void 0),r=function(t,i){J(t)?o.setAttribute(i,t):s?(e=o.getAttribute(i))||"class"!==i||(e=o.getAttribute(i+"Name")):o.removeAttribute(i)},tr(n)?r(void 0,n):tc(n,r),(a=e)&&(p=p.concat(a.split(" ").map(function(t){return[t,h]}))),(h=h.parentNode)!==t););return p},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=tp(!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}(),i3=(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)}),i9=function(t){function i(){return null!==t&&t.apply(this,arguments)||this}return i3(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=tS.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=tS.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=tS.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}(iI);iI.types.basicAnnotation=i9;var i5=(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)}),i4=q().defaultOptions;(null==(S=i4.annotations)?void 0:S.types)&&(i4.annotations.types.crookedLine={typeOptions:{xAxis:0,yAxis:0,line:{fill:"none"}},controlPointOptions:{positioner:function(t){var i=this.graphic,o=tS.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 i6=function(t){function i(){return null!==t&&t.apply(this,arguments)||this}return i5(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 tE(this.chart,this,tp(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(tp(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}(iI);iI.types.crookedLine=i6;var i7=(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)}),i8=q().defaultOptions;(null==(B=i8.annotations)?void 0:B.types)&&(i8.annotations.types.elliottWave=tp(i8.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:"#333333"}}}));var ot=function(t){function i(){return null!==t&&t.apply(this,arguments)||this}return i7(i,t),i.prototype.addLabels=function(){var t=this;this.getPointsOptions().forEach(function(i,o){var n=t.options.typeOptions,e=t.initLabel(tp(i.label,{text:n.labels[o],point:function(t){return t.annotation.points[o]}}),!1);i.label=e.options})},i}(i6);iI.types.elliottWave=ot;var oi=(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)}),oo=q().defaultOptions;(null==(L=oo.annotations)?void 0:L.types)&&(oo.annotations.types.tunnel=tp(oo.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=tS.pointToPixels(t.points[2]),s=tS.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 on=function(t){function i(){return null!==t&&t.apply(this,arguments)||this}return oi(i,t),i.prototype.getPointsOptions=function(){var t,i=i6.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=tp(t),o=this.options.typeOptions;return i.y+=o.height,i},i.prototype.addControlPoints=function(){i6.prototype.addControlPoints.call(this);var t=this.options,i=t.typeOptions,o=new tE(this.chart,this,tp(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(tp(((t=this.options).typeOptions||(t.typeOptions={})).line,{type:"path",className:"highcharts-tunnel-lines",points:[this.points[0],this.points[1],function(t){var i=tS.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(tp(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}(i6);iI.types.tunnel=on;var oe=(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)}),os=q().defaultOptions;(null==(Y=os.annotations)?void 0:Y.types)&&(os.annotations.types.infinityLine=tp(os.annotations.types.crookedLine));var or=function(t){function i(){return null!==t&&t.apply(this,arguments)||this}return oe(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 tS(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=tS.pointToPixels(t),c=tS.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(tp(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}(i6);iI.types.infinityLine=or;var oa=(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)}),oh=q().defaultOptions;(null==(X=oh.annotations)?void 0:X.types)&&(oh.annotations.types.timeCycles=tp(oh.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 op=function(t){function i(){return null!==t&&t.apply(this,arguments)||this}return oa(i,t),i.prototype.init=function(i,o,n){J(o.yAxis)&&o.points.forEach(function(t){t.yAxis=o.yAxis}),J(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(tp(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=tp(i.controlPointOptions,o),e=new tE(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=ts(p)?a.toPixels(p):a.top+a.height,u=ts(h)?r.toPixels(h):r.left,d=ts(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}(i6);iI.types.timeCycles=op;var oc=(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)}),ol=q().defaultOptions;function ou(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=ol.annotations)?void 0:j.types)&&(ol.annotations.types.fibonacci=tp(ol.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:"#999999",lineColors:[],labels:[]},labelOptions:{allowOverlap:!0,align:"right",backgroundColor:"none",borderWidth:0,crop:!1,overflow:"none",shape:"rect",style:{color:"#333333"},verticalAlign:"middle",y:0}}));var od=function(t){function i(){return null!==t&&t.apply(this,arguments)||this}return oc(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 tS(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:ou(i),stroke:s[i]||e,className:"highcharts-fibonacci-line"},i),i>0&&this.initShape({type:"path",fill:n[i-1],strokeWidth:0,d:ou(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(tp(o.labels[i],{point:function(t){return tS.pointToOptions(t.annotation.startRetracements[i])},text:t.toString()}));o.labels[i]=n.options},this)},i.levels=[0,.236,.382,.5,.618,.786,1],i}(on);iI.types.fibonacci=od;var of=(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)}),oy=q().defaultOptions;function ov(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 tS(e,r[0].target,{x:p,y:0,xAxis:r[0].options.xAxis,yAxis:r[0].options.yAxis}),new tS(e,r[0].target,{x:p,y:1,xAxis:r[0].options.xAxis,yAxis:r[0].options.yAxis})],or.findEdgePoint(r[t],r[i])}}(null==(I=oy.annotations)?void 0:I.types)&&(oy.annotations.types.fibonacciTimeZones=tp(oy.annotations.types.crookedLine,{typeOptions:{line:{stroke:"#333333",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 og=function(t){function i(){return null!==t&&t.apply(this,arguments)||this}return of(i,t),i.prototype.addShapes=function(){for(var t,i=1,o=1,n=0;n<11;n++){var e=n?i:0,s=[ov(1,0,e),ov(0,1,e)];i=(o=i+o)-i,1===n&&(this.secondLineEdgePoints=[s[0],s[1]]),this.initShape(tp(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 tE(this.chart,this,tp(t.controlPointOptions,i.controlPointOptions),0);this.controlPoints.push(o),i.controlPointOptions=o.options},i}(i6);iI.types.fibonacciTimeZones=og;var ox=(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)}),om=q().defaultOptions;(null==(D=om.annotations)?void 0:D.types)&&(om.annotations.types.pitchfork=tp(om.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 ob=function(t){function i(){return null!==t&&t.apply(this,arguments)||this}return ox(i,t),i.outerLineEdgePoint=function(t){return function(o){var n=o.annotation,e=n.points;return i.findEdgePoint(e[t],e[0],new tS(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 or.findEdgePoint(o[0],new tS(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(tp(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(tp(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}(or);iI.types.pitchfork=ob;var oA=(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)}),oP=q().defaultOptions;(null==(R=oP.annotations)?void 0:R.types)&&(oP.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:"#333333",fontSize:"0.7em"}}});var oO=function(t){function i(){return null!==t&&t.apply(this,arguments)||this}return oA(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=tl(null==(i=h.series.yAxis)?void 0:i.left,0),c=tl(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=tS.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=tl(r.series.yAxis&&r.series.yAxis.left,0),h=tl(r.series.yAxis&&r.series.yAxis.top,0),p=tS.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(tp(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(tp(i,{verticalAlign:s,align:r,x:n,y:e})).options},i}(iI);iI.types.verticalLine=oO;var ow=(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)}),oM=q().defaultOptions;function ok(){var t=0,i=0,o=0,n=this.chart.series,e=oT(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){oC(t,e)&&ts(t.y)&&(i+=t.y,o++)})}),o>0&&(t=i/o),t}function oC(t,i){return!t.isNull&&ts(t.y)&&t.x>i.xAxisMin&&t.x<=i.xAxisMax&&t.y>i.yAxisMin&&t.y<=i.yAxisMax}function oE(){var t=this.chart.series,i=oT(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){oC(t,i)&&o++})}),o}function o_(){return"Min: "+this.min+"<br>Max: "+this.max+"<br>Average: "+this.average.toFixed(2)+"<br>Bins: "+this.bins}function oT(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 oN(t,i,o){return t.toValue(t.toPixels(i)+o)}function oS(){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,ts(r)?this.startXMax=this.startXMin+r:this.startXMax=oN(n,this.startXMin,parseFloat(r)),ts(a)?this.startYMax=this.startYMin-a:this.startYMax=oN(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 oB(){var t=this.chart.series,i=oT(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){ts(t.y)&&t.y>o&&oC(t,i)&&(o=t.y,n=!0)})}),n||(o=0),o}function oL(){var t=this.chart.series,i=oT(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){ts(t.y)&&t.y<o&&oC(t,i)&&(o=t.y,n=!0)})}),n||(o=0),o}function oY(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=oN(o,this.startXMin,e),this.xAxisMax=oN(o,this.startXMax,e),this.yAxisMin=oN(n,this.startYMin,s),this.yAxisMax=oN(n,this.startYMax,s),this.min=oL.call(this),this.max=oB.call(this),this.average=ok.call(this),this.bins=oE.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=oN(h,c,n):this.startXMax=oN(h,l,n):"y"===a?0===o?this.startYMin=oN(p,u,e):this.startYMax=oN(p,d,e):(this.startXMax=oN(h,l,n),this.startYMax=oN(p,d,e))),t&&(this.startXMin=oN(h,c,f),this.startXMax=oN(h,l,f),this.startYMin=oN(p,u,y),this.startYMax=oN(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=oM.annotations)?void 0:W.types)&&(oM.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:"#333333"},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=oT(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 oj=function(t){function i(){return null!==t&&t.apply(this,arguments)||this}return ow(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,oS.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;J(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 tE(this.chart,this,this.options.controlPointOptions,0);this.controlPoints.push(s),"xy"!==e&&(s=new tE(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;oY.call(this,t),i.label.enabled&&(this.labels.length>0?this.labels[0].text=(null==o?void 0:o.call(this,this))||o_.call(this):this.initLabel(tt({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:tl(i.xAxis,n.xAxis),yAxis:tl(i.yAxis,n.yAxis)}},text:(null==o?void 0:o.call(this,this))||o_.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(tt({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=tp(p,{className:"highcharts-measure-crosshair-x"},e.crosshairX),i=tp(p,{className:"highcharts-measure-crosshair-y"},e.crosshairY),this.initShape(tt({d:f},t),0),this.initShape(tt({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}(iI);iI.types.measure=oj;var oI=q();oI.Annotation||(oI.Annotation=iI,oI.NavigationBindings=oI.NavigationBindings||i2,oI.Annotation.compose(oI.Chart,oI.NavigationBindings,oI.Pointer,oI.SVGRenderer)),oI.Annotation!==iI&&iI.types&&Object.assign(oI.Annotation.types,iI.types);var oD=q();return H.default}()});