!/**
 * Highcharts JS v12.5.0 (2026-01-12)
 * @module highcharts/modules/annotations-advanced
 * @requires highcharts
 *
 * Annotations module
 *
 * (c) 2009-2026 Highsoft AS
 * Author: Torstein Honsi
 *
 * 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(require("highcharts"),require("highcharts").SeriesRegistry,require("highcharts").Templating,require("highcharts").AST):"function"==typeof define&&define.amd?define("highcharts/modules/annotations-advanced",[["highcharts/highcharts"],["highcharts/highcharts","SeriesRegistry"],["highcharts/highcharts","Templating"],["highcharts/highcharts","AST"]],i):"object"==typeof exports?exports["highcharts/modules/annotations-advanced"]=i(require("highcharts"),require("highcharts").SeriesRegistry,require("highcharts").Templating,require("highcharts").AST):t.Highcharts=i(t.Highcharts,t.Highcharts.SeriesRegistry,t.Highcharts.Templating,t.Highcharts.AST)}(this,function(t,i,o,n){return function(){"use strict";var s,e,r,a,h,p,c,l,u,d,f,y,v,g,x,m,b,A,P,O,w,k,M,E,C,_,T,B,N,S,L,Y,X,j,I,D,R,W={512:function(t){t.exports=i},660:function(t){t.exports=n},944:function(i){i.exports=t},984:function(t){t.exports=o}},F={};function z(t){var i=F[t];if(void 0!==i)return i.exports;var o=F[t]={exports:{}};return W[t](o,o.exports,z),o.exports}z.n=function(t){var i=t&&t.__esModule?function(){return t.default}:function(){return t};return z.d(i,{a:i}),i},z.d=function(t,i){for(var o in i)z.o(i,o)&&!z.o(t,o)&&Object.defineProperty(t,o,{enumerable:!0,get:i[o]})},z.o=function(t,i){return Object.prototype.hasOwnProperty.call(t,i)};var U={};z.d(U,{default:function(){return nH}});var V=z(944),q=z.n(V),H=q().addEvent,G=q().erase,K=q().find,Z=q().fireEvent,$=q().isArray,J=q().isObject,Q=q().pick,tt=q().wrap;function ti(t,i){var o=this.initAnnotation(t);return this.options.annotations.push(o.options),Q(i,!0)&&(o.redraw(),o.graphic.attr({opacity:1})),o}function to(){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(),H(t,"redraw",t.drawAnnotations),H(t,"destroy",function(){t.plotBoxClip.destroy(),t.controlPointsGroup.destroy()}),H(t,"exportData",function(i){var o,n,s,e,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==(s=null==(n=null==(o=t.options.exporting)?void 0:o.csv)?void 0:n.annotations)?void 0:s.itemDelimiter,f=null==(a=null==(r=null==(e=t.options.exporting)?void 0:e.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,s=t.series.xAxis?t.series.xAxis.index:-1,e=!1;if(-1===s){for(var r=i.dataRows[0].length,a=Array(r),h=0;h<r;++h)a[h]="";a.push(o),a.xValues=[],a.xValues[s]=n,i.dataRows.push(a),e=!0}if(e||i.dataRows.forEach(function(t){!e&&t.xValues&&void 0!==s&&n===t.xValues[s]&&(f&&t.length>u?t[t.length-1]+=d+o:t.push(o),e=!0)}),!e){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!==s&&(a.xValues[s]=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 tn(){this.plotBoxClip.attr(this.plotBox),this.annotations.forEach(function(t){t.redraw(),t.graphic.animate({opacity:1},t.animationConfig)})}function ts(t){var i=this.annotations,o="annotations"===t.coll?t:K(i,function(i){return i.options.id===t});o&&(Z(o,"remove"),G(this.options.annotations,o.options),G(i,o),o.destroy())}function te(){var t=this.options.annotations,i=this.userOptions.annotations;this.annotations=[],$(this.options.annotations)||(this.options.annotations=[]),J(i,!0)&&J(t,!0)&&this.options.annotations.push(t)}function tr(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 s=o.prototype;H(i,"afterInit",te),n.addAnnotation=ti,n.callbacks.push(to),n.collectionsWithInit.annotations=[ti],n.collectionsWithUpdate.push("annotations"),n.drawAnnotations=tn,n.removeAnnotation=ts,n.initAnnotation=function(i){var o=new(t.types[i.type]||t)(this,i);return this.annotations.push(o),o},tt(s,"onContainerMouseDown",tr)}};var ta=E,th=q().defined,tp={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 th(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},tc=q().doc,tl=q().isTouchDevice,tu=q().addEvent,td=q().fireEvent,tf=q().objectEach,ty=q().pick,tv=q().removeEvent,tg=function(){function t(){}return t.prototype.addEvents=function(){var t=this,i=function(i){tu(i,tl?"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)}),tf(t.options.events,function(i,o){var n=function(n){var s;"click"===o&&t.cancelClick||i.call(t,null==(s=t.chart.pointer)?void 0:s.normalize(n),t.target)};-1===(t.nonDOMEvents||[]).indexOf(o)?(tu(t.graphic.element,o,n,{passive:!1}),t.graphic.div&&tu(t.graphic.div,o,n,{passive:!1})):tu(t,o,n,{passive:!1})}),t.options.draggable&&(tu(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||td(t,"add")},t.prototype.destroy=function(){this.removeDocEvents(),tv(this),this.hcEvents=null},t.prototype.mouseMoveToRadians=function(t,i,o){var n,s=t.prevChartY-o,e=t.prevChartX-i,r=t.chartY-o,a=t.chartX-i;return this.chart.inverted&&(n=e,e=s,s=n,n=a,a=r,r=n),Math.atan2(r,a)-Math.atan2(s,e)},t.prototype.mouseMoveToScale=function(t,i,o){var n=t.prevChartX-i,s=t.prevChartY-o,e=t.chartX-i,r=t.chartY-o,a=(e||1)/(n||1),h=(r||1)/(s||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,s=(null==(i=null==t?void 0:t.sourceCapabilities)?void 0:i.firesTouchEvents)||!1,e=(t=(null==n?void 0:n.normalize(t))||t).chartX,r=t.chartY;o.cancelClick=!1,o.chart.hasDraggedAnnotation=!0,o.removeDrag=tu(tc,tl||s?"touchmove":"mousemove",function(t){o.hasDragged=!0,(t=(null==n?void 0:n.normalize(t))||t).prevChartX=e,t.prevChartY=r,td(o,"drag",t),e=t.chartX,r=t.chartY},tl||s?{passive:!1}:void 0),o.removeMouseUp=tu(tc,tl||s?"touchend":"mouseup",function(){var t=ty(o.target&&o.target.annotation,o.target);t&&(t.cancelClick=o.hasDragged),o.cancelClick=o.hasDragged,o.chart.hasDraggedAnnotation=!1,o.hasDragged&&td(ty(t,o),"afterUpdate"),o.hasDragged=!1,o.onMouseUp()},tl||s?{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}(),tx=(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)}),tm=q().merge,tb=q().pick,tA=function(t){function i(i,o,n,s){var e=t.call(this)||this;return e.nonDOMEvents=["drag"],e.chart=i,e.target=o,e.options=n,e.index=tb(n.index,s),e}return tx(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))},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,s=tm(!0,this.options,t);this.destroy(),this.constructor(i,o,s,n),this.render(i.controlPointsGroup),this.redraw()},i}(tg),tP=z(512),tO=z.n(tP),tw=tO().series.prototype,tk=q().defined,tM=q().fireEvent,tE=function(){function t(t,i,o){this.mock=!0,this.point=this,this.series={visible:!0,chart:t,getPlotBox:tw.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,s=n.chart,e=t.plotX||0,r=t.plotY||0;return s.inverted&&(t.mock?(e=t.plotY,r=t.plotX):(e=s.plotWidth-(t.plotY||0),r=s.plotHeight-(t.plotX||0))),n&&!i&&(e+=(o=n.getPlotBox()).translateX,r+=o.translateY),{x:e,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,s={x:t,y:i,isInsidePlot:!0,options:{}};return o&&(s.isInsidePlot=tk(t)&&t>=0&&t<=o.len),n&&(s.isInsidePlot=s.isInsidePlot&&tk(i)&&i>=0&&i<=n.len),tM(this.series.chart,"afterIsInsidePlot",s),s.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),s=Math.sin(o),e=this.plotX-t,r=this.plotY-i;this.plotX=e*n-r*s+t,this.plotY=e*s+r*n+i,this.refreshOptions()}},t.prototype.scale=function(t,i,o,n){if(!this.hasDynamicOptions()){var s=this.plotX*o,e=this.plotY*n;this.plotX=(1-o)*t+s,this.plotY=(1-n)*i+e,this.refreshOptions()}},t.prototype.setAxis=function(t,i){var o=i+"Axis",n=t[o],s=this.series.chart;this.series[o]="object"==typeof n?n:tk(n)?s[o][n]||s.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,s){var e=q().merge(t.options.controlPointOptions,n);e.index||(e.index=s),o[s]=e,i.push(new tA(t.chart,t,e))})}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],s={x:n[0]+(this.options.x||0),y:n[1]+(this.options.y||0),height:n[2]||0,width:n[3]||0};return{relativePosition:s,absolutePosition:q().merge(s,{x:s.x+(t.mock?i.translateX:o.plotLeft),y:s.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 s(){var t=this.options;return t.points||t.point&&q().splat(t.point)}function e(){var t,i,o=this.getPointsOptions(),n=this.points,s=(null==o?void 0:o.length)||0;for(t=0;t<s;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(q().isObject(t))i=new tE(this.chart,this,t);else if(q().isString(t))i=this.chart.get(t)||null;else if("function"==typeof t){var o=t.call(i,this);i=o.series?o:new tE(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,s){var e=this;if(this.chart.inverted){var r=i;i=o,o=r}this.points.forEach(function(r,a){return e.transformPoint(t,i,o,n,s,a)},this)}function c(t,i,o,n,s,e){var r=this.points[e];r.mock||(r=this.points[e]=tE.fromPoint(r)),r[t](i,o,n,s)}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||q().merge(!0,d,{addControlPoints:i,anchor:o,destroyControlTarget:n,getPointsOptions:s,linkPoints:e,point:r,redrawControlPoints:a,renderControlPoints:h,transform:p,transformPoint:c,translate:l,translatePoint:u})}}(C||(C={}));var tC=C,t_=q().merge,tT=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,s={},e=this.chart.styledMode;for(i in t)o=n[i],void 0===n[i]||e&&-1!==["fill","stroke","stroke-width"].indexOf(o)||(s[o]=t[i]);return s},t.prototype.destroy=function(){this.graphic&&(this.graphic=this.graphic.destroy()),this.tracker&&(this.tracker=this.tracker.destroy()),this.destroyControlTarget()},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,s=this.annotation.userOptions,e=n.annotations.indexOf(this.annotation),r=n.options.annotations[e];this.translatePoint(t,i,0),o&&this.translatePoint(t,i,1),r[this.collection][this.index].point=this.options.point,s[this.collection][this.index].point=this.options.point},t.prototype.update=function(t){var i=this.annotation,o=t_(!0,this.options,t),n=this.graphic.parentGroup,s=this.constructor;this.destroy(),t_(!0,this,new s(i,o,this.index,this.itemType)),this.render(n),this.redraw()},t}();tC.compose(tT);var tB={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}}]}},tN=(e=function(t,i){return(e=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(t[o]=i[o])})(t,i)},function(t,i){if("function"!=typeof i&&null!==i)throw TypeError("Class extends value "+String(i)+" is not a constructor or null");function o(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(o.prototype=i.prototype,new o)}),tS=q().addEvent,tL=q().defined,tY=q().extend,tX=q().merge,tj=q().uniqueKey,tI=tW("marker-end"),tD=tW("marker-start"),tR="rgba(192,192,192,"+(q().svg?1e-4:.002)+")";function tW(t){return function(i){this.attr(t,"url(#"+i+")")}}function tF(){this.options.defs=tX(tB,this.options.defs||{})}function tz(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 tX(n,t)});var s=tX(!0,{attributes:{markerWidth:20,markerHeight:20,refX:0,refY:0,orient:"auto"}},i,o),e=this.definition(s);return e.id=t,e}var tU=function(t){function i(i,o,n){var s=t.call(this,i,o,n,"shape")||this;return s.type="path",s}return tN(i,t),i.compose=function(t,i){var o=i.prototype;o.addMarker||(tS(t,"afterGetContainer",tF),o.addMarker=tz)},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,s=[],e=n,r=o[0],a=e&&this.anchor(r).absolutePosition,h=0;if(a)for(s.push(["M",a.x,a.y]);++h<n&&e;)i=(r=o[h]).command||"L",a=this.anchor(r).absolutePosition,"M"===i||"L"===i?s.push([i,a.x,a.y]):"Z"===i&&s.push([i]),e=r.series.visible;return e&&this.graphic?this.chart.renderer.crispLine(s,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:tR,fill:tR,"stroke-width":this.graphic.strokeWidth()+2*o.snap}),t.prototype.render.call(this),tY(this.graphic,{markerStartSetter:tD,markerEndSetter:tI}),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,s=i.fill,e=tL(s)&&"none"!==s?s:i.stroke;["markerStart","markerEnd"].forEach(function(s){var r,a,h,p,c=i[s];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[s]=o.renderer.addMarker((i.id||tj())+"-"+c,tX(a,{color:e})),t.attr(s,p.getAttribute("id")))}})},i.attrsMap={dashStyle:"dashstyle",strokeWidth:"stroke-width",stroke:"stroke",fill:"fill",zIndex:"zIndex"},i}(tT),tV=(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)}),tq=q().merge,tH=function(t){function i(i,o,n){var s=t.call(this,i,o,n,"shape")||this;return s.type="rect",s.translate=t.prototype.translateShape,s}return tV(i,t),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.anchor(this.points[0]).absolutePosition;o?this.graphic[i?"animate":"attr"]({x:o.x,y:o.y,width:this.options.width,height:this.options.height}):this.attr({x:0,y:-9e9}),this.graphic.placed=!!o}t.prototype.redraw.call(this,i)},i.attrsMap=tq(tU.attrsMap,{width:"width",height:"height"}),i}(tT),tG=(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)}),tK=q().merge,tZ=function(t){function i(i,o,n){var s=t.call(this,i,o,n,"shape")||this;return s.type="circle",s.translate=t.prototype.translateShape,s}return tG(i,t),i.prototype.redraw=function(i){if(this.graphic){var o=this.anchor(this.points[0]).absolutePosition;o?this.graphic[i?"animate":"attr"]({x:o.x,y:o.y,r:this.options.r}):this.graphic.attr({x:0,y:-9e9}),this.graphic.placed=!!o}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=tK(tU.attrsMap,{r:"r"}),i}(tT),t$=(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)}),tJ=q().merge,tQ=q().defined,t0=function(t){function i(i,o,n){var s=t.call(this,i,o,n,"shape")||this;return s.type="ellipse",s}return t$(i,t),i.prototype.init=function(i,o,n){tQ(o.yAxis)&&o.points.forEach(function(t){t.yAxis=o.yAxis}),tQ(o.xAxis)&&o.points.forEach(function(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,s=i.x,e=i.y,r=(o+s)/2,a=Math.sqrt((o-s)*(o-s)/4+(n-e)*(n-e)/4),h=180*Math.atan((e-n)/(s-o))/Math.PI;return r<o&&(h+=180),{cx:r,cy:(n+e)/2,rx:a,ry:this.getRY(),angle:h}},i.prototype.getRY=function(){var t=this.getYAxis();return tQ(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]),s=this.getAttrs(o,n);o?this.graphic[i?"animate":"attr"]({cx:s.cx,cy:s.cy,rx:s.rx,ry:s.ry,rotation:s.angle,rotationOriginX:s.cx,rotationOriginY:s.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=tJ(tU.attrsMap,{ry:"ry"}),i}(tT),t1=z(984),t2=z.n(t1),t3=(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)}),t9=t2().format,t4=q().extend,t5=q().getAlignFactor,t6=q().isNumber,t7=q().pick;function t8(t,i,o,n,s){var e,r,a=s&&s.anchorX,h=s&&s.anchorY,p=o/2;return t6(a)&&t6(h)&&(e=[["M",a,h]],(r=i-h)<0&&(r=-n-r),r<o&&(p=a<t+o/2?r:o-r),h>i+n?e.push(["L",t+p,i+n]):h<i?e.push(["L",t+p,i]):a<t?e.push(["L",t,i+n/2]):a>t+o&&e.push(["L",t+o,i+n/2])),e||[]}var it=function(t){function i(i,o,n){return t.call(this,i,o,n,"label")||this}return t3(i,t),i.alignedPosition=function(t,i){return{x:Math.round((i.x||0)+(t.x||0)+(i.width-(t.width||0))*t5(t.align)),y:Math.round((i.y||0)+(t.y||0)+(i.height-(t.height||0))*t5(t.verticalAlign))}},i.compose=function(t){t.prototype.symbols.connector=t8},i.justifiedOptions=function(t,i,o,n){var s,e=o.align,r=o.verticalAlign,a=i.box?0:i.padding||0,h=i.getBBox(),p={align:e,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(s=c+a)<0&&("right"===e?p.align="left":p.x=(p.x||0)-s),(s=c+h.width-a)>t.plotWidth&&("left"===e?p.align="right":p.x=(p.x||0)+t.plotWidth-s),(s=l+a)<0&&("bottom"===r?p.verticalAlign="top":p.y=(p.y||0)-s),(s=l+h.height-a)>t.plotHeight&&("top"===r?p.verticalAlign="bottom":p.y=(p.y||0)+t.plotHeight-s),p},i.prototype.translatePoint=function(i,o){t.prototype.translatePoint.call(this,i,o,0)},i.prototype.translate=function(t,i){var o,n,s=this.annotation.chart,e=this.annotation.userOptions,r=s.annotations.indexOf(this.annotation),a=s.options.annotations[r];if(s.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,e[this.collection][this.index].x=this.options.x,e[this.collection][this.index].y=this.options.y},i.prototype.render=function(o){var n=this.options,s=this.attrsFromOptions(n),e=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(s).add(o),!this.annotation.chart.styledMode){if((null==e?void 0:e.color)==="contrast"){var h=!n.shape||i.shapesWithoutBackground.indexOf(n.shape)>-1||"none"===n.backgroundColor?a:n.backgroundColor;e.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,s=this.graphic,e=this.points[0];if(!s)return void this.redraw(i);s.attr({text:n?t9(String(n),e,this.annotation.chart):o.formatter.call(e,this)});var r=this.anchor(e),a=this.position(r);a?(s.alignAttr=a,a.anchorX=r.absolutePosition.x,a.anchorY=r.absolutePosition.y,s[i?"animate":"attr"](a)):s.attr({x:0,y:-9999}),s.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,s=this.options.y||0;return o.absolutePosition.x-=n,o.absolutePosition.y-=s,o.relativePosition.x-=n,o.relativePosition.y-=s,o},i.prototype.position=function(t){var o,n,s,e,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&&tE.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:t7(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):(n={x:l.x,y:l.y,width:0,height:0},o=i.alignedPosition(t4(c,{width:y,height:g}),n),"justify"===this.options.overflow&&(o=i.alignedPosition(i.justifiedOptions(a,r,c,o),n))),c.crop&&(s=o.x-a.plotLeft,e=o.y-a.plotTop,d=a.isInsidePlot(s,e)&&a.isInsidePlot(s+y,e+g))}return d?o:null},i.attrsMap={backgroundColor:"fill",borderColor:"stroke",borderWidth:"stroke-width",zIndex:"zIndex",borderRadius:"r",padding:"padding"},i.shapesWithoutBackground=["connector"],i}(tT),ii=(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)}),io=function(t){function i(i,o,n){var s=t.call(this,i,o,n,"shape")||this;return s.type="image",s.translate=t.prototype.translateShape,s}return ii(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=it.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}(tT),is=z(660),ie=z.n(is),ir=q().addEvent,ia=q().createElement,ih=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"),ia("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=ia("button",{className:t},void 0,this.container);return ia("span",{className:"highcharts-icon"},{backgroundImage:"url("+(o.match(/png|svg|jpeg|jpg|gif/ig)?o:o+"close.svg")+")"},n),["click","touchstart"].forEach(function(t){ir(n,t,i.closeButtonEvents.bind(i))}),ir(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=ie().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}(),ip=q().doc,ic=q().isFirefox,il=q().createElement,iu=q().isArray,id=q().isObject,iy=q().objectEach,iv=q().pick,ig=q().stableSort;function ix(t,i,o,n,s,e){var r,a,h=this;if(i){var p=this.addInput,c=this.lang;iy(n,function(n,e){r=""!==o?o+"."+e:e,id(n)&&(!iu(n)||iu(n)&&id(n[0])?((a=c[e]||e).match(/\d/g)||s.push([!0,a,t]),ix.call(h,t,i,r,n,s,!1)):s.push([h,r,"annotation",t,n]))}),e&&(ig(s,function(t){return t[1].match(/format/g)?-1:1}),ic&&s.reverse(),s.forEach(function(t){!0===t[0]?il("span",{className:"highcharts-annotation-title"},void 0,t[2]).appendChild(ip.createTextNode(t[1])):(t[4]={value:t[4][0],type:t[4][1]},p.apply(t[0],t.splice(1)))}))}}var im=q().doc,ib=tO().seriesTypes,iA=q().addEvent,iP=q().createElement,iO=q().defined,iw=q().isArray,ik=q().isObject,iM=q().objectEach,iE=q().stableSort;(l=_||(_={}))[l["params.algorithm"]=0]="params.algorithm",l[l["params.average"]=1]="params.average";var iC={"algorithm-pivotpoints":["standard","fibonacci","camarilla"],"average-disparityindex":["sma","ema","dema","tema","wma"]};function i_(t){var i=iP("div",{className:"highcharts-popup-lhs-col"},void 0,t),o=iP("div",{className:"highcharts-popup-rhs-col"},void 0,t);return iP("div",{className:"highcharts-popup-rhs-col-wrapper"},void 0,o),{lhsCol:i,rhsCol:o}}function iT(t,i,o,n){var s=i.params||i.options.params;n.innerHTML=ie().emptyHTML,iP("h3",{className:"highcharts-indicator-title"},void 0,n).appendChild(im.createTextNode(iI(i,o).indicatorFullName)),iP("input",{type:"hidden",name:"highcharts-type-"+o,value:o},void 0,n),iD.call(this,o,"series",t,n,i,i.linkedParent&&i.linkedParent.options.id),s.volumeSeriesID&&iD.call(this,o,"volume",t,n,i,i.linkedParent&&s.volumeSeriesID),iN.call(this,t,"params",s,o,n)}function iB(t,i,o,n){function s(i,o){var n=f.parentNode.children[1];iT.call(e,t,i,o,f),n&&(n.style.display="block"),p&&i.options&&iP("input",{type:"hidden",name:"highcharts-id-"+o,value:i.options.id},void 0,f).setAttribute("highcharts-data-series-id",i.options.id)}var e=this,r=e.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||iw(c)?iw(c)&&(u=ij.call(this,c)):u=iX.call(this,c,n),iE(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=iP("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=iP("li",{className:"highcharts-indicator-list"},void 0,d);var e=iP("button",{className:"highcharts-indicator-list-item",textContent:i},void 0,l);["click","touchstart"].forEach(function(t){iA(e,t,function(){s(n,o)})})}),u.length>0){var y=u[0];s(y.series,y.indicatorType)}else p||(ie().setElementHTML(f.parentNode.children[0],r.noFilterMatch||""),f.parentNode.children[1].style.display="none")}}function iN(t,i,o,n,s){var e=this;if(t){var r=this.addInput;iM(o,function(o,a){var h=i+"."+a;if(iO(o)&&h)if(ik(o)&&(r.call(e,h,n,s,{}),iN.call(e,t,h,o,n,s)),h in _){var p=iL.call(e,n,h,s);iY.call(e,t,i,p,n,a,o)}else"params.volumeSeriesID"===h||iw(o)||r.call(e,h,n,s,{value:o,type:"number"})})}}function iS(t,i){var o=this,n=i.querySelectorAll(".highcharts-popup-lhs-col")[0],s=this.lang.clearFilter,e=iP("div",{className:"highcharts-input-wrapper"},void 0,n),r=function(i){iB.call(o,t,o.container,"add",i)},a=this.addInput("searchIndicators","input",e,{value:"",type:"text",htmlFor:"search-indicators",labelClassName:"highcharts-input-search-indicators-label"}),h=iP("a",{textContent:s},void 0,e);a.classList.add("highcharts-input-search-indicators"),h.classList.add("clear-filter-button"),iA(a,"input",function(){r(this.value),this.value.length?h.style.display="inline-block":h.style.display="none"}),["click","touchstart"].forEach(function(t){iA(h,t,function(){a.value="",r(""),h.style.display="none"})})}function iL(t,i,o){var n=i.split("."),s=n[n.length-1],e="highcharts-"+i+"-type-"+t,r=this.lang;iP("label",{htmlFor:e},null,o).appendChild(im.createTextNode(r[s]||i));var a=iP("select",{name:e,className:"highcharts-popup-field",id:"highcharts-select-"+i},null,o);return a.setAttribute("id","highcharts-select-"+i),a}function iY(t,i,o,n,s,e,r){"series"===i||"volume"===i?t.series.forEach(function(t){var n=t.options,s=n.name||n.params?t.name:n.id||"";"highcharts-navigator-series"!==n.id&&n.id!==(r&&r.options&&r.options.id)&&(iO(e)||"volume"!==i||"column"!==t.type||(e=n.id),iP("option",{value:n.id},void 0,o).appendChild(im.createTextNode(s)))}):n&&s&&iC[s+"-"+n].forEach(function(t){iP("option",{value:t},void 0,o).appendChild(im.createTextNode(t))}),iO(e)&&(o.value=e)}function iX(t,i){var o,n=this.chart&&this.chart.options.lang,s=n&&n.navigation&&n.navigation.popup&&n.navigation.popup.indicatorAliases,e=[];return iM(t,function(t,n){var r=t&&t.options;if(t.params||r&&r.params){var a=iI(t,n),h=a.indicatorFullName,p=a.indicatorType;if(i){var c=RegExp(i.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),"i"),l=s&&s[p]&&s[p].join(" ")||"";(h.match(c)||l.match(c))&&(o={indicatorFullName:h,indicatorType:p,series:t},e.push(o))}else o={indicatorFullName:h,indicatorType:p,series:t},e.push(o)}}),e}function ij(t){var i=[];return t.forEach(function(t){t.is("sma")&&i.push({indicatorFullName:t.name,indicatorType:t.type,series:t})}),i}function iI(t,i){var o=t.options,n=ib[i]&&ib[i].prototype.nameBase||i.toUpperCase(),s=i;return o&&o.type&&(s=t.options.type,n=t.name),{indicatorFullName:n,indicatorType:s}}function iD(t,i,o,n,s,e){if(o){var r=iL.call(this,t,i,n);iY.call(this,o,i,r,void 0,void 0,void 0,s),iO(e)&&(r.value=e)}}var iR=q().doc,iW=q().addEvent,iF=q().createElement;function iz(){return iF("div",{className:"highcharts-tab-item-content highcharts-no-mousewheel"},void 0,this.container)}function iU(t,i){var o=this.container,n=this.lang,s="highcharts-tab-item";0===i&&(s+=" highcharts-tab-disabled");var e=iF("button",{className:s},void 0,o);return e.appendChild(iR.createTextNode(n[t+"Button"]||t)),e.setAttribute("highcharts-data-tab-type",t),e}function iV(){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 iq(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 iH(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){iW(o,t,function(){iV.call(i),iq.call(i,this,n)})})})}var iG=(u=function(t,i){return(u=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}u(t,i),t.prototype=null===i?Object.create(i):(o.prototype=i.prototype,new o)}),iK=q().doc,iZ=q().getOptions,i$=q().addEvent,iJ=q().createElement,iQ=q().extend,i0=q().fireEvent,i1=q().pick,i2=function(t){function i(i,o,n){var s=t.call(this,i,o)||this;return s.chart=n,s.lang=(iZ().lang.navigation||{}).popup||{},i$(s.container,"mousedown",function(){var t=n&&n.navigationBindings&&n.navigationBindings.activeAnnotation;if(t){t.cancelClick=!0;var i=i$(iK,"click",function(){setTimeout(function(){t.cancelClick=!1},0),i()})}}),s}return iG(i,t),i.prototype.addInput=function(t,i,o,n){var s=t.split("."),e=s[s.length-1],r=this.lang,a="highcharts-"+i+"-"+i1(n.htmlFor,e);e.match(/^\d+$/)||iJ("label",{htmlFor:a,className:n.labelClassName},void 0,o).appendChild(iK.createTextNode(r[e]||e));var h=iJ("input",{name:a,value:n.value,type:n.type,className:"highcharts-popup-field"},void 0,o);return h.setAttribute("highcharts-data-name",t),h},i.prototype.closeButtonEvents=function(){if(this.chart){var i=this.chart.navigationBindings;i0(i,"closePopup"),i&&i.selectedButtonElement&&i0(i,"deselectButton",{button:i.selectedButtonElement})}else t.prototype.closeButtonEvents.call(this)},i.prototype.addButton=function(t,i,o,n,s){var e=this,r=iJ("button",void 0,void 0,t);return r.appendChild(iK.createTextNode(i)),s&&["click","touchstart"].forEach(function(t){i$(r,t,function(){var t,i,r,a,h;return e.closePopup(),s((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");t.getAttribute("highcharts-data-series-id")?h.seriesId=t.value:i?h.fields[i]=t.value: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}(ih);iQ(i2.prototype,{annotations:{addForm:function(t,i,o,n){if(t){var s=this.container,e=this.lang,r=il("h2",{className:"highcharts-popup-main-title"},void 0,s);r.appendChild(ip.createTextNode(e[i.langKey]||i.langKey||"")),r=il("div",{className:"highcharts-popup-lhs-col highcharts-popup-lhs-full"},void 0,s);var a=il("div",{className:"highcharts-popup-bottom-row"},void 0,s);ix.call(this,r,t,"",i,[],!0),this.addButton(a,n?e.addButton||"Add":e.saveButton||"Save",n?"add":"save",s,o)}},addToolbar:function(t,i,o){var n=this,s=this.lang,e=this.container,r=this.showForm,a="highcharts-annotation-toolbar";-1===e.className.indexOf(a)&&(e.className+=" "+a+" highcharts-no-mousewheel"),t&&(e.style.top=t.plotTop+10+"px");var h=il("p",{className:"highcharts-annotation-label"},void 0,e);h.setAttribute("aria-label","Annotation type"),h.appendChild(ip.createTextNode(iv(s[i.langKey]||i.langKey,i.shapes&&i.shapes[0].type,"")));var p=this.addButton(e,s.editButton||"Edit","edit",e,function(){r.call(n,"annotation-edit",t,i,o)});p.className+=" highcharts-annotation-edit-button",il("span",{className:"highcharts-icon"},{backgroundImage:"url(".concat(this.iconsURL,"edit.svg)")},p),p=this.addButton(e,s.removeButton||"Remove","remove",e,o),p.className+=" highcharts-annotation-remove-button",il("span",{className:"highcharts-icon"},{backgroundImage:"url(".concat(this.iconsURL,"destroy.svg)")},p)}},indicators:{addForm:function(t,i,o){var n,s=this.lang;if(t){this.tabs.init.call(this,t);var e=this.container.querySelectorAll(".highcharts-tab-item-content");i_(e[0]),iS.call(this,t,e[0]),iB.call(this,t,e[0],"add"),n=e[0].querySelectorAll(".highcharts-popup-rhs-col")[0],this.addButton(n,s.addButton||"add","add",n,o),i_(e[1]),iB.call(this,t,e[1],"edit"),n=e[1].querySelectorAll(".highcharts-popup-rhs-col")[0],this.addButton(n,s.saveButton||"save","edit",n,o),this.addButton(n,s.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=iU.call(this,"add");iU.call(this,"edit",i),iz.call(this),iz.call(this),iH.call(this,i),iq.call(this,o,0)}}}});var i3=q().composed,i9=q().addEvent,i4=q().pushUnique,i5=q().wrap;function i6(){this.popup&&this.popup.closePopup()}function i7(t){this.popup||(this.popup=new i2(this.chart.container,this.chart.options.navigation.iconsURL||this.chart.options.stockTools&&this.chart.options.stockTools.gui.iconsURL||"https://code.highcharts.com/12.5.0/gfx/stock-icons/",this.chart)),this.popup.showForm(t.formType,this.chart,t.options,t.onSubmit)}function i8(t,i){this.inClass(i.target,"highcharts-popup")||t.apply(this,Array.prototype.slice.call(arguments,1))}var ot=function(t,i){i4(i3,"Popup")&&(i9(t,"closePopup",i6),i9(t,"showPopup",i7),i5(i.prototype,"onContainerMouseDown",i8))},oi=(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)}),oo=function(t,i,o){if(o||2==arguments.length)for(var n,s=0,e=i.length;s<e;s++)!n&&s in i||(n||(n=Array.prototype.slice.call(i,0,s)),n[s]=i[s]);return t.concat(n||Array.prototype.slice.call(i))},on=q().getDeferredAnimation,os=q().defaultOptions,oe=q().destroyObjectProperties,or=q().erase,oa=q().fireEvent,oh=q().merge,op=q().pick,oc=q().splat;function ol(t,i){var o={};return["labels","shapes"].forEach(function(n){var s=t[n],e=i[n];s&&(e?o[n]=oc(e).map(function(t,i){return oh(s[i],t)}):o[n]=t[n])}),o}var ou=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 s=ol(n.options,o);return n.options.labels=s.labels,n.options.shapes=s.shapes,n.init(i,n.options),n}return oi(i,t),i.compose=function(t,o,n,s){ta.compose(i,t,n),it.compose(s),tU.compose(t,s),o.compose(i,t),ot(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 s=t.initLabel(o,n);oh(!0,i[n],s.options)})},i.prototype.addShapes=function(){var t=this,i=this.options.shapes||[];i.forEach(function(o,n){var s=t.initShape(o,n);oh(!0,i[n],s.options)})},i.prototype.destroy=function(){var i=this.chart,o=function(t){t.destroy()};this.labels.forEach(o),this.shapes.forEach(o),this.clipXAxis=null,this.clipYAxis=null,or(i.labelCollectors,this.labelCollector),t.prototype.destroy.call(this),this.destroyControlTarget(),oe(this,i)},i.prototype.destroyItem=function(t){or(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=ol(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,s=this.options.animation;this.index=o,this.linkPoints(),this.addControlPoints(),this.addShapes(),this.addLabels(),this.setLabelCollector(),this.animationConfig=on(n,s)},i.prototype.initLabel=function(t,i){null==(o=this.options.labelOptions)||o.align;var o,n=new it(this,oh(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=oh(this.options.shapeOptions,{controlPointOptions:this.options.controlPointOptions},t),s=new i.shapesMap[n.type||"rect"](this,n,o);return s.itemType="shape",this.shapes.push(s),s},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(op(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,s=oo(oo([],null!=(t=this.options.labels)?t:[],!0),null!=(i=this.options.shapes)?i:[],!0).reduce(function(t,i){var s,e=i&&(i.point||"points"in i&&(null==(s=i.points)?void 0:s[0]));return[o[e&&e.xAxis]||t[0],n[e&&e.yAxis]||t[1]]},[]);this.clipXAxis=s[0],this.clipYAxis=s[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=oh(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=op(t,!i.visible);if(this.graphic.attr("visibility",n?"inherit":"hidden"),!n){var s=function(t){t.setControlPointsVisibility(n)};this.shapes.forEach(s),this.labels.forEach(s),o.activeAnnotation===this&&o.popup&&"annotation-toolbar"===o.popup.type&&oa(o,"closePopup")}i.visible=n},i.prototype.update=function(t,i){var o=this.chart,n=ol(this.userOptions,t),s=o.annotations.indexOf(this),e=oh(!0,this.userOptions,t);e.labels=n.labels,e.shapes=n.shapes,this.destroy(),this.initProperties(o,e),this.init(o,e),o.options.annotations[s]=this.options,this.isUpdating=!0,op(i,!0)&&o.drawAnnotations(),oa(this,"afterUpdate"),this.isUpdating=!1},i.ControlPoint=tA,i.MockPoint=tE,i.shapesMap={rect:tH,circle:tZ,ellipse:t0,path:tU,image:io},i.types={},i}(tg);ou.prototype.defaultOptions=tp,os.annotations=tp,ou.prototype.nonDOMEvents=["add","afterUpdate","drag","remove"],tC.compose(ou),(f=T||(T={})).compose=function(t){return t.navigation||(t.navigation=new y(t)),t},f.Additions=y=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 od=T,of=q().defined,oy=q().isNumber,ov=q().pick,og={backgroundColor:"string",borderColor:"string",borderRadius:"string",color:"string",fill:"string",fontSize:"string",labels:"string",name:"string",stroke:"string",title:"string"},ox=function(t){return t.filter(function(t){var i=t.axis.getExtremes(),o=i.min,n=i.max,s=ov(t.axis.minPointOffset,0);return oy(o)&&oy(n)&&t.value>=o-s&&t.value<=n+s&&!t.axis.options.isInternal})[0]},om=q().isNumber,ob=q().merge,oA={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&&ox(o.xAxis),s=o&&ox(o.yAxis),e=this.chart.options.navigation;if(n&&s)return this.chart.addAnnotation(ob({langKey:"circle",type:"basicAnnotation",shapes:[{type:"circle",point:{x:n.value,y:s.value,xAxis:n.axis.index,yAxis:s.axis.index},r:5}]},e.annotationsOptions,e.bindings.circleAnnotation.annotationsOptions))},steps:[function(t,i){var o,n=i.options.shapes,s=n&&n[0]&&n[0].point||{};if(om(s.xAxis)&&om(s.yAxis)){var e=this.chart.inverted,r=this.chart.xAxis[s.xAxis].toPixels(s.x),a=this.chart.yAxis[s.yAxis].toPixels(s.y);o=Math.max(Math.sqrt(Math.pow(e?a-t.chartX:r-t.chartX,2)+Math.pow(e?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&&ox(o.xAxis),s=o&&ox(o.yAxis),e=this.chart.options.navigation;if(n&&s)return this.chart.addAnnotation(ob({langKey:"ellipse",type:"basicAnnotation",shapes:[{type:"ellipse",xAxis:n.axis.index,yAxis:s.axis.index,points:[{x:n.value,y:s.value},{x:n.value,y:s.value}],ry:1}]},e.annotationsOptions,e.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]),s=o.getAbsolutePosition(o.points[1]),e=o.getDistanceFromLine(n,s,t.chartX,t.chartY),r=o.getYAxis(),a=Math.abs(r.toValue(0)-r.toValue(e));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&&ox(o.xAxis),s=o&&ox(o.yAxis);if(n&&s){var e=n.value,r=s.value,a=n.axis.index,h=s.axis.index,p=this.chart.options.navigation;return this.chart.addAnnotation(ob({langKey:"rectangle",type:"basicAnnotation",shapes:[{type:"path",points:[{xAxis:a,yAxis:h,x:e,y:r},{xAxis:a,yAxis:h,x:e,y:r},{xAxis:a,yAxis:h,x:e,y:r},{xAxis:a,yAxis:h,x:e,y:r},{command:"Z"}]}]},p.annotationsOptions,p.bindings.rectangleAnnotation.annotationsOptions))}},steps:[function(t,i){var o,n=i.options.shapes,s=n&&n[0]&&n[0].points||[],e=null==(o=this.chart.pointer)?void 0:o.getCoordinates(t),r=e&&ox(e.xAxis),a=e&&ox(e.yAxis);if(r&&a){var h=r.value,p=a.value;s[1].x=h,s[2].x=h,s[2].y=p,s[3].y=p,i.update({shapes:[{points:s}]})}}]},labelAnnotation:{className:"highcharts-label-annotation",start:function(t){var i,o=null==(i=this.chart.pointer)?void 0:i.getCoordinates(t),n=o&&ox(o.xAxis),s=o&&ox(o.yAxis),e=this.chart.options.navigation;if(n&&s)return this.chart.addAnnotation(ob({langKey:"label",type:"basicAnnotation",labelOptions:{format:"{y:.2f}",overflow:"none",crop:!0},labels:[{point:{xAxis:n.axis.index,yAxis:s.axis.index,x:n.value,y:s.value}}]},e.annotationsOptions,e.bindings.labelAnnotation.annotationsOptions))}}},events:{},annotationsOptions:{animation:{defer:0}}}},oP=q().setOptions,oO=t2().format,ow=q().composed,ok=q().doc,oM=q().win,oE=function(t,i){var o=og[t],n=typeof i;return of(o)&&(n=o),({string:"text",number:"number",boolean:"checkbox"})[n]},oC=q().addEvent,o_=q().attr,oT=q().defined,oB=q().fireEvent,oN=q().isArray,oS=q().isFunction,oL=q().isNumber,oY=q().isObject,oX=q().merge,oj=q().objectEach,oI=q().pick,oD=q().pushUnique;function oR(){this.chart.navigationBindings&&this.chart.navigationBindings.deselectAnnotation()}function oW(){this.navigationBindings&&this.navigationBindings.destroy()}function oF(){var t=this.options;t&&t.navigation&&t.navigation.bindings&&(this.navigationBindings=new oH(this,t.navigation),this.navigationBindings.initEvents(),this.navigationBindings.initUpdate())}function oz(){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];oj(t.boundClassNames,function(t,s){var e=n.querySelectorAll("."+s);if(e)for(var r=0;r<e.length;r++){var a=e[r],h=a.className;"normal"===t.noDataState||o?-1!==h.indexOf(i)&&a.classList.remove(i):-1===h.indexOf(i)&&(a.className+=" "+i)}})}}}function oU(){this.deselectAnnotation()}function oV(){this.selectedButtonElement=null}function oq(t){var i,o,n=t.prototype.defaultOptions.events&&t.prototype.defaultOptions.events.click;function s(t){var i=this,o=i.chart.navigationBindings,s=o.activeAnnotation;n&&n.call(i,t),s!==i?(o.deselectAnnotation(),o.activeAnnotation=i,i.setControlPointsVisibility(!0),oB(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 s=n.typeOptions;"measure"===i.options.type&&(s.crosshairY.enabled=0!==s.crosshairY.strokeWidth,s.crosshairX.enabled=0!==s.crosshairX.strokeWidth),i.update(n)}}})):oB(o,"closePopup"),t.activeAnnotation=!0}oX(!0,t.prototype.defaultOptions.events,{click:s,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||s.call(this,t)}})}var oH=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=ok.getElementsByClassName(this.options.bindingsClassName||""))}return t.compose=function(i,o){oD(ow,"NavigationBindings")&&(oC(i,"remove",oR),oq(i),oj(i.types,function(t){oq(t)}),oC(o,"destroy",oW),oC(o,"load",oF),oC(o,"render",oz),oC(t,"closePopup",oU),oC(t,"deselectButton",oV),oP(oA))},t.prototype.getCoords=function(t){var i,o=null==(i=this.chart.pointer)?void 0:i.getCoordinates(t);return[o&&ox(o.xAxis),o&&ox(o.yAxis)]},t.prototype.initEvents=function(){var t=this,i=t.chart,o=t.container,n=t.options;t.boundClassNames={},oj(n.bindings||{},function(i){t.boundClassNames[i.className]=i}),[].forEach.call(o,function(i){t.eventsToUnbind.push(oC(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)}))}),oj(n.events||{},function(i,o){oS(i)&&t.eventsToUnbind.push(oC(t,o,i,{passive:!1}))}),t.eventsToUnbind.push(oC(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(oC(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;od.compose(this.chart).navigation.addUpdate(function(i){t.update(i)})},t.prototype.bindingsButtonClick=function(t,i,o){var n=this.chart,s=n.renderer.boxWrapper,e=!0;this.selectedButtonElement&&(this.selectedButtonElement.classList===t.classList&&(e=!1),oB(this,"deselectButton",{button:this.selectedButtonElement}),this.nextEvent&&(this.currentUserDetails&&"annotations"===this.currentUserDetails.coll&&n.removeAnnotation(this.currentUserDetails),this.mouseMoveEvent=this.nextEvent=!1)),e?(this.selectedButton=i,this.selectedButtonElement=t,oB(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"),s.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,s=t.renderer.boxWrapper;o&&(o.cancelClick||i.activeAnnotation||!i.target.parentNode||function(t,i){var o=oM.Element.prototype,n=o.matches||o.msMatchesSelector||o.webkitMatchesSelector,s=null;if(o.closest)s=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 s}(i.target,".highcharts-popup")?o.cancelClick&&setTimeout(function(){o.cancelClick=!1},0):oB(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]:(oB(this,"deselectButton",{button:this.selectedButtonElement}),s.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]):(oB(this,"deselectButton",{button:this.selectedButtonElement}),s.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 oj(t,function(t,o){var n=parseFloat(t),s=o.split("."),e=s.length-1;if(!oL(n)||t.match(/px|em/g)||o.match(/format/g)||(t=n),"undefined"!==t){var r=i;s.forEach(function(i,o){if("__proto__"!==i&&"constructor"!==i){var n=oI(s[o+1],"");e===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,s,e,r=i.options,a=t.annotationsEditable,h=a.nestedOptions,p=oI(r.type,null==(n=null==(o=r.shapes)?void 0:o[0])?void 0:n.type,null==(e=null==(s=r.labels)?void 0:s[0])?void 0:e.type,"label"),c=t.annotationsNonEditable[r.langKey]||[],l={langKey:r.langKey,type:p};function u(t,o,n,s,e){var r;n&&oT(t)&&-1===c.indexOf(o)&&((n.indexOf&&n.indexOf(o))>=0||n[o]||!0===n)&&(oN(t)?(s[o]=[],t.forEach(function(t,i){oY(t)?(s[o][i]={},oj(t,function(t,n){u(t,n,h[o],s[o][i],o)})):u(t,0,h[o],s[o],o)})):oY(t)?(r={},oN(s)?(s.push(r),r[o]={},r=r[o]):s[o]=r,oj(t,function(t,i){u(t,i,0===o?n:h[o],r,o)})):"format"===o?s[o]=[oO(t,i.labels[0].points[0]).toString(),"text"]:oN(s)?s.push([t,oE(e,t)]):s[o]=[t,oE(o,t)])}return oj(r,function(t,i){"typeOptions"===i&&"basicAnnotation"!==l.type?(l[i]={},oj(r[i],function(t,o){u(t,o,h,l[i],o)})):u(t,i,a[p],l,i)}),l},t.prototype.getClickedClassNames=function(t,i){for(var o,n=i.target,s=[];n&&n.tagName&&((o=o_(n,"class"))&&(s=s.concat(o.split(" ").map(function(t){return[t,n]}))),(n=n.parentNode)!==t););return s},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=oX(!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}(),oG=(v=function(t,i){return(v=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}v(t,i),t.prototype=null===i?Object.create(i):(o.prototype=i.prototype,new o)}),oK=function(t){function i(){return null!==t&&t.apply(this,arguments)||this}return oG(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=tE.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=tE.pointToPixels(t.points[2]);return{x:i.x-4,y:i.y-4}},events:{drag:function(t,i){var o,n,s,e=i.annotation,r=null==(o=this.chart.pointer)?void 0:o.getCoordinates(t),a=i.options.points,h=e.userOptions.shapes,p=(null==(n=e.clipXAxis)?void 0:n.index)||0,c=(null==(s=e.clipYAxis)?void 0:s.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)}e.redraw(!1)}}}],circle:[{positioner:function(t){var i=tE.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),s=o.userOptions.shapes;i.setRadius(Math.max((i.options.r||0)+n.y/Math.sin(Math.PI/4),5)),s&&s[0]&&(s[0].r=i.options.r,s[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]),s=i.getDistanceFromLine(o,n,t.chartX,t.chartY),e=i.getYAxis(),r=Math.abs(e.toValue(0)-e.toValue(s));i.setYRadius(r),i.redraw(!1)}}}]},i}(ou);ou.types.basicAnnotation=oK;var oZ=(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)}),o$=q().defaultOptions,oJ=q().merge;(null==(B=o$.annotations)?void 0:B.types)&&(o$.annotations.types.crookedLine={typeOptions:{xAxis:0,yAxis:0,line:{fill:"none"}},controlPointOptions:{positioner:function(t){var i=this.graphic,o=tE.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 oQ=function(t){function i(){return null!==t&&t.apply(this,arguments)||this}return oZ(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 tA(this.chart,this,oJ(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(oJ(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}(ou);ou.types.crookedLine=oQ;var o0=(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)}),o1=q().defaultOptions,o2=q().merge;(null==(N=o1.annotations)?void 0:N.types)&&(o1.annotations.types.elliottWave=o2(o1.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 o3=function(t){function i(){return null!==t&&t.apply(this,arguments)||this}return o0(i,t),i.prototype.addLabels=function(){var t=this;this.getPointsOptions().forEach(function(i,o){var n=t.options.typeOptions,s=t.initLabel(o2(i.label,{text:n.labels[o],point:function(t){return t.annotation.points[o]}}),!1);i.label=s.options})},i}(oQ);ou.types.elliottWave=o3;var o9=(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)}),o4=q().defaultOptions,o5=q().merge;(null==(S=o4.annotations)?void 0:S.types)&&(o4.annotations.types.tunnel=o5(o4.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,s=tE.pointToPixels(t.points[2]),e=tE.pointToPixels(t.points[3]),r=(s.x+e.x)/2;return{x:r-(this.graphic.width||0)/2,y:(i=s,o=e,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 o6=function(t){function i(){return null!==t&&t.apply(this,arguments)||this}return o9(i,t),i.prototype.getPointsOptions=function(){var t,i=oQ.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 s=n.toPixels(i[2].y)-n.toPixels(i[1].y),e=n.toPixels(i[0].y)+s;i[3].y=n.toValue(e)}return i},i.prototype.getControlPointsOptions=function(){return this.getPointsOptions().slice(0,2)},i.prototype.heightPointOptions=function(t){var i=o5(t),o=this.options.typeOptions;return i.y+=o.height,i},i.prototype.addControlPoints=function(){oQ.prototype.addControlPoints.call(this);var t=this.options,i=t.typeOptions,o=new tA(this.chart,this,o5(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(o5(((t=this.options).typeOptions||(t.typeOptions={})).line,{type:"path",className:"highcharts-tunnel-lines",points:[this.points[0],this.points[1],function(t){var i=tE.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(o5(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}(oQ);ou.types.tunnel=o6;var o7=(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)}),o8=q().defaultOptions,nt=q().merge;(null==(L=o8.annotations)?void 0:L.types)&&(o8.annotations.types.infinityLine=nt(o8.annotations.types.crookedLine));var ni=function(t){function i(){return null!==t&&t.apply(this,arguments)||this}return o7(i,t),i.edgePoint=function(t,o){return function(n){var s=n.annotation,e=s.options.typeOptions.type,r=s.points;return("horizontalLine"===e||"verticalLine"===e)&&(r=[r[0],new tE(s.chart,r[0].target,{x:r[0].x+ +("horizontalLine"===e),y:r[0].y+ +("verticalLine"===e),xAxis:r[0].options.xAxis,yAxis:r[0].options.yAxis})]),i.findEdgePoint(r[t],r[o])}},i.findEdgeCoordinate=function(t,i,o,n){var s="x"===o?"y":"x";return(i[o]-t[o])*(n-t[s])/(i[s]-t[s])+t[o]},i.findEdgePoint=function(t,o){var n,s,e,r=t.series.chart,a=t.series.xAxis,h=o.series.yAxis,p=tE.pointToPixels(t),c=tE.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&&(s=i.findEdgeCoordinate(p,c,"y",g),n=i.findEdgeCoordinate(p,c,"x",x),s>=y&&s<=v?(m.x=g,m.y=s):(m.x=n,m.y=x)),m.x-=r.plotLeft,m.y-=r.plotTop,t.series.chart.inverted&&(e=m.x,m.x=m.y,m.y=e),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(nt(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}(oQ);ou.types.infinityLine=ni;var no=(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)}),nn=q().defaultOptions,ns=q().merge,ne=q().isNumber,nr=q().defined;(null==(Y=nn.annotations)?void 0:Y.types)&&(nn.annotations.types.timeCycles=ns(nn.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 na=function(t){function i(){return null!==t&&t.apply(this,arguments)||this}return no(i,t),i.prototype.init=function(i,o,n){nr(o.yAxis)&&o.points.forEach(function(t){t.yAxis=o.yAxis}),nr(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 s=[],e=1;e<=i;e++)s.push(["A",t/2,t/2,0,1,1,o+e*t,n]);return s}(this.pixelInterval,this.numberOfCircles,this.startX,this.y))},i.prototype.addShapes=function(){var t=this.options.typeOptions;this.setPathProperties();var i=this.initShape(ns(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=ns(i.controlPointOptions,o),s=new tA(t.chart,t,n,0);t.controlPoints.push(s)})},i.prototype.setPathProperties=function(){var t=this.options.typeOptions,i=t.points;if(i){var o=i[0],n=i[1],s=t.xAxis||0,e=t.yAxis||0,r=this.chart.xAxis[s],a=this.chart.yAxis[e],h=o.x,p=o.y,c=n.x;if(h&&c){var l=ne(p)?a.toPixels(p):a.top+a.height,u=ne(h)?r.toPixels(h):r.left,d=ne(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}(oQ);ou.types.timeCycles=na;var nh=(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)}),np=q().defaultOptions,nc=q().merge;function nl(t,i){return function(){var o=this.annotation;if(!o.startRetracements||!o.endRetracements)return[];var n=this.anchor(o.startRetracements[t]).absolutePosition,s=this.anchor(o.endRetracements[t]).absolutePosition,e=[["M",Math.round(n.x),Math.round(n.y)],["L",Math.round(s.x),Math.round(s.y)]];if(i){var r=this.anchor(o.endRetracements[t-1]).absolutePosition,a=this.anchor(o.startRetracements[t-1]).absolutePosition;e.push(["L",Math.round(r.x),Math.round(r.y)],["L",Math.round(a.x),Math.round(a.y)])}return e}}(null==(X=np.annotations)?void 0:X.types)&&(np.annotations.types.fibonacci=nc(np.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 nu=function(t){function i(){return null!==t&&t.apply(this,arguments)||this}return nh(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,s=o[1].y-o[2].y,e=o[0].x,r=o[1].x;i.levels.forEach(function(a,h){var p=o[0].y-n*a,c=o[1].y-s*a,l=t.options.typeOptions.reversed?i.levels.length-h-1:h;t.startRetracements=t.startRetracements||[],t.endRetracements=t.endRetracements||[],t.linkRetracementPoint(l,e,p,t.startRetracements),t.linkRetracementPoint(l,r,c,t.endRetracements)})},i.prototype.linkRetracementPoint=function(t,i,o,n){var s=n[t],e=this.options.typeOptions;s?(s.options.x=i,s.options.y=o,s.refresh()):n[t]=new tE(this.chart,this,{x:i,y:o,xAxis:e.xAxis,yAxis:e.yAxis})},i.prototype.addShapes=function(){i.levels.forEach(function(t,i){var o=this.options.typeOptions,n=o.backgroundColors,s=o.lineColor,e=o.lineColors;this.initShape({type:"path",d:nl(i),stroke:e[i]||s,className:"highcharts-fibonacci-line"},i),i>0&&this.initShape({type:"path",fill:n[i-1],strokeWidth:0,d:nl(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(nc(o.labels[i],{point:function(t){return tE.pointToOptions(t.annotation.startRetracements[i])},text:t.toString()}));o.labels[i]=n.options},this)},i.levels=[0,.236,.382,.5,.618,.786,1],i}(o6);ou.types.fibonacci=nu;var nd=(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)}),nf=q().defaultOptions,ny=q().merge;function nv(t,i,o){return function(n){var s=n.annotation.chart,e=s.inverted?s.plotTop:s.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+e+o*h);return r=[new tE(s,r[0].target,{x:p,y:0,xAxis:r[0].options.xAxis,yAxis:r[0].options.yAxis}),new tE(s,r[0].target,{x:p,y:1,xAxis:r[0].options.xAxis,yAxis:r[0].options.yAxis})],ni.findEdgePoint(r[t],r[i])}}(null==(j=nf.annotations)?void 0:j.types)&&(nf.annotations.types.fibonacciTimeZones=ny(nf.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,s={annotation:i},e=n[0](s).y,r=n[1](s).y,a=this.chart.plotLeft,h=this.chart.plotTop,p=n[0](s).x,c=(e+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 ng=function(t){function i(){return null!==t&&t.apply(this,arguments)||this}return nd(i,t),i.prototype.addShapes=function(){for(var t,i=1,o=1,n=0;n<11;n++){var s=n?i:0,e=[nv(1,0,s),nv(0,1,s)];i=(o=i+o)-i,1===n&&(this.secondLineEdgePoints=[e[0],e[1]]),this.initShape(ny(null==(t=this.options.typeOptions)?void 0:t.line,{type:"path",className:"highcharts-fibonacci-timezones-lines",points:e}),n)}},i.prototype.addControlPoints=function(){var t=this.options,i=t.typeOptions,o=new tA(this.chart,this,ny(t.controlPointOptions,i.controlPointOptions),0);this.controlPoints.push(o),i.controlPointOptions=o.options},i}(oQ);ou.types.fibonacciTimeZones=ng;var nx=(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)}),nm=q().defaultOptions,nb=q().merge;(null==(I=nm.annotations)?void 0:I.types)&&(nm.annotations.types.pitchfork=nb(nm.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 nA=function(t){function i(){return null!==t&&t.apply(this,arguments)||this}return nx(i,t),i.outerLineEdgePoint=function(t){return function(o){var n=o.annotation,s=n.points;return i.findEdgePoint(s[t],s[0],new tE(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 ni.findEdgePoint(o[0],new tE(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(nb(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(nb(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}(ni);ou.types.pitchfork=nA;var nP=(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)}),nO=q().defaultOptions,nw=q().merge,nk=q().pick;(null==(D=nO.annotations)?void 0:D.types)&&(nO.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 nM=function(t){function i(){return null!==t&&t.apply(this,arguments)||this}return nP(i,t),i.connectorFirstPoint=function(t){var i,o,n,s,e=t.annotation,r=e.chart,a=r.inverted,h=e.points[0],p=nk(null==(i=h.series.yAxis)?void 0:i.left,0),c=nk(null==(o=h.series.yAxis)?void 0:o.top,0),l=(null==(s=null==(n=e.options.typeOptions)?void 0:n.label)?void 0:s.offset)||0,u=tE.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,s=n.inverted,e=o.options.typeOptions,r=o.points[0],a=nk(r.series.yAxis&&r.series.yAxis.left,0),h=nk(r.series.yAxis&&r.series.yAxis.top,0),p=tE.pointToPixels(r,!0)[s?"x":"y"],c=(null==e?void 0:e.yOffset)||0;return 0>((null==(i=null==e?void 0:e.label)?void 0:i.offset)||0)&&(c*=-1),{x:r.x,xAxis:r.series.xAxis,y:p+c+(s?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(nw(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,s=o,e=o<0?"bottom":"top",r="center";this.chart.inverted&&(n=o,s=0,e="middle",r=o<0?"right":"left"),t.label=this.initLabel(nw(i,{verticalAlign:e,align:r,x:n,y:s})).options},i}(ou);ou.types.verticalLine=nM;var nE=(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)}),nC=q().defaultOptions,n_=q().defined,nT=q().extend,nB=q().isNumber,nN=q().merge,nS=q().pick;function nL(){var t=0,i=0,o=0,n=this.chart.series,s=nI(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){nY(t,s)&&nB(t.y)&&(i+=t.y,o++)})}),o>0&&(t=i/o),t}function nY(t,i){return!t.isNull&&nB(t.y)&&t.x>i.xAxisMin&&t.x<=i.xAxisMax&&t.y>i.yAxisMin&&t.y<=i.yAxisMax}function nX(){var t=this.chart.series,i=nI(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){nY(t,i)&&o++})}),o}function nj(){return"Min: "+this.min+"<br>Max: "+this.max+"<br>Average: "+this.average.toFixed(2)+"<br>Bins: "+this.bins}function nI(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 nD(t,i,o){return t.toValue(t.toPixels(i)+o)}function nR(){var t=this.options.typeOptions,i=this.chart,o=i.inverted,n=i.xAxis[t.xAxis],s=i.yAxis[t.yAxis],e=t.background,r=o?e.height:e.width,a=o?e.width:e.height,h=t.selectType,p=o?n.left:s.top,c=o?s.top:n.left;this.startXMin=t.point.x,this.startYMin=t.point.y,nB(r)?this.startXMax=this.startXMin+r:this.startXMax=nD(n,this.startXMin,parseFloat(r)),nB(a)?this.startYMax=this.startYMin-a:this.startYMax=nD(s,this.startYMin,parseFloat(a)),"x"===h?(this.startYMin=s.toValue(p),this.startYMax=s.toValue(p+s.len)):"y"===h&&(this.startXMin=n.toValue(c),this.startXMax=n.toValue(c+n.len))}function nW(){var t=this.chart.series,i=nI(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){nB(t.y)&&t.y>o&&nY(t,i)&&(o=t.y,n=!0)})}),n||(o=0),o}function nF(){var t=this.chart.series,i=nI(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){nB(t.y)&&t.y<o&&nY(t,i)&&(o=t.y,n=!0)})}),n||(o=0),o}function nz(t){var i=this.options.typeOptions,o=this.chart.xAxis[i.xAxis],n=this.chart.yAxis[i.yAxis],s=this.offsetX,e=this.offsetY;this.xAxisMin=nD(o,this.startXMin,s),this.xAxisMax=nD(o,this.startXMax,s),this.yAxisMin=nD(n,this.startYMin,e),this.yAxisMax=nD(n,this.startYMax,e),this.min=nF.call(this),this.max=nW.call(this),this.average=nL.call(this),this.bins=nX.call(this),t&&this.resize(0,0)}function nU(t,i,o,n,s){var e,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=nD(h,c,n):this.startXMax=nD(h,l,n):"y"===a?0===o?this.startYMin=nD(p,u,s):this.startYMax=nD(p,d,s):(this.startXMax=nD(h,l,n),this.startYMax=nD(p,d,s))),t&&(this.startXMin=nD(h,c,f),this.startXMax=nD(h,l,f),this.startYMin=nD(p,u,y),this.startYMax=nD(p,d,y),this.offsetX=0,this.offsetY=0),this.options.typeOptions.point={x:this.startXMin,y:this.startYMin},((e=this.userOptions).typeOptions||(e.typeOptions={})).point={x:this.startXMin,y:this.startYMin}}(null==(R=nC.annotations)?void 0:R.types)&&(nC.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,s=t.chart,e=t.options,r=e.typeOptions,a=r.selectType,h=e.controlPointOptions,p=s.inverted,c=s.xAxis[r.xAxis],l=s.yAxis[r.yAxis],u=nI(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,s=this.index,e="y"===n?0:o.x,r="x"===n?0:o.y;i.resize(e,r,s,n),i.resizeX+=e,i.resizeY+=r,i.redraw(!1,!0)}}}});var nV=function(t){function i(){return null!==t&&t.apply(this,arguments)||this}return nE(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,nR.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,s=this.options.typeOptions.selectType;n_(null==(i=null==(t=this.userOptions.controlPointOptions)?void 0:t.style)?void 0:i.cursor)||("x"===s?n.style.cursor=o?"ns-resize":"ew-resize":"y"===s&&(n.style.cursor=o?"ew-resize":"ns-resize"));var e=new tA(this.chart,this,this.options.controlPointOptions,0);this.controlPoints.push(e),"xy"!==s&&(e=new tA(this.chart,this,this.options.controlPointOptions,1),this.controlPoints.push(e))},i.prototype.addValues=function(t){var i=this.options.typeOptions,o=i.label.formatter;nz.call(this,t),i.label.enabled&&(this.labels.length>0?this.labels[0].text=o&&o.call(this)||nj.call(this):this.initLabel(nT({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:nS(i.xAxis,n.xAxis),yAxis:nS(i.yAxis,n.yAxis)}},text:o&&o.call(this)||nj.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(nT({type:"path",points:t,className:"highcharts-measure-background"},this.options.typeOptions.background),2)},i.prototype.addCrosshairs=function(){var t,i,o,n=this.chart,s=this.options.typeOptions,e=this.options.typeOptions.point,r=n.xAxis[s.xAxis],a=n.yAxis[s.yAxis],h=n.inverted,p={point:e,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),s.crosshairX.enabled&&(f=[["M",c,u+(d-u)/2],["L",l,u+(d-u)/2]]),s.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=nN(p,{className:"highcharts-measure-crosshair-x"},s.crosshairX),i=nN(p,{className:"highcharts-measure-crosshair-y"},s.crosshairY),this.initShape(nT({d:f},t),0),this.initShape(nT({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,s="x"===o?0:i.y;this.translate(n,s),this.offsetX+=n,this.offsetY+=s,this.redraw(!1,!1,!0)},i.prototype.resize=function(t,i,o,n){var s=this.shapes[2];"x"===n?0===o?(s.translatePoint(t,0,0),s.translatePoint(t,i,3)):(s.translatePoint(t,0,1),s.translatePoint(t,i,2)):"y"===n?0===o?(s.translatePoint(0,i,0),s.translatePoint(0,i,1)):(s.translatePoint(0,i,2),s.translatePoint(0,i,3)):(s.translatePoint(t,0,1),s.translatePoint(t,i,2),s.translatePoint(0,i,3)),nU.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&&nU.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,s=this.options.typeOptions.background;if((null==s?void 0:s.strokeWidth)&&(null==(n=this.shapes[2])?void 0:n.graphic)){var e=s.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)+e,p[1]=(p[1]||0)-e,c[1]=(c[1]||0)-e,l[1]=(l[1]||0)+e,h[2]=(h[2]||0)+e,p[2]=(p[2]||0)+e,c[2]=(c[2]||0)-e,l[2]=(l[2]||0)-e,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}(ou);ou.types.measure=nV;var nq=q();nq.Annotation||(nq.Annotation=ou,nq.NavigationBindings=nq.NavigationBindings||oH,nq.Annotation.compose(nq.Chart,nq.NavigationBindings,nq.Pointer,nq.SVGRenderer)),nq.Annotation!==ou&&ou.types&&Object.assign(nq.Annotation.types,ou.types);var nH=q();return U.default}()});