highcharts
Version:
JavaScript charting framework
104 lines (102 loc) • 412 kB
JavaScript
/*
Highcharts Gantt JS v10.0.0 (2022-03-07)
(c) 2017-2021 Lars Cabrera, Torstein Honsi, Jon Arild Nygard & Oystein Moseng
License: www.highcharts.com/license
*/
(function(V,M){"object"===typeof module&&module.exports?(M["default"]=M,module.exports=V.document?M(V):M):"function"===typeof define&&define.amd?define("highcharts/highcharts-gantt",function(){return M(V)}):(V.Highcharts&&V.Highcharts.error(16,!0),V.Highcharts=M(V))})("undefined"!==typeof window?window:this,function(V){function M(B,n,b,G){B.hasOwnProperty(n)||(B[n]=G.apply(null,b),"function"===typeof CustomEvent&&V.dispatchEvent(new CustomEvent("HighchartsModuleLoaded",{detail:{path:n,module:B[n]}})))}
var b={};M(b,"Core/Globals.js",[],function(){var B;(function(n){n.SVG_NS="http://www.w3.org/2000/svg";n.product="Highcharts";n.version="10.0.0";n.win="undefined"!==typeof V?V:{};n.doc=n.win.document;n.svg=n.doc&&n.doc.createElementNS&&!!n.doc.createElementNS(n.SVG_NS,"svg").createSVGRect;n.userAgent=n.win.navigator&&n.win.navigator.userAgent||"";n.isChrome=-1!==n.userAgent.indexOf("Chrome");n.isFirefox=-1!==n.userAgent.indexOf("Firefox");n.isMS=/(edge|msie|trident)/i.test(n.userAgent)&&!n.win.opera;
n.isSafari=!n.isChrome&&-1!==n.userAgent.indexOf("Safari");n.isTouchDevice=/(Mobile|Android|Windows Phone)/.test(n.userAgent);n.isWebKit=-1!==n.userAgent.indexOf("AppleWebKit");n.deg2rad=2*Math.PI/360;n.hasBidiBug=n.isFirefox&&4>parseInt(n.userAgent.split("Firefox/")[1],10);n.hasTouch=!!n.win.TouchEvent;n.marginNames=["plotTop","marginRight","marginBottom","plotLeft"];n.noop=function(){};n.supportsPassiveEvents=function(){var B=!1;if(!n.isMS){var b=Object.defineProperty({},"passive",{get:function(){B=
!0}});n.win.addEventListener&&n.win.removeEventListener&&(n.win.addEventListener("testPassive",n.noop,b),n.win.removeEventListener("testPassive",n.noop,b))}return B}();n.charts=[];n.dateFormats={};n.seriesTypes={};n.symbolSizes={};n.chartCount=0})(B||(B={}));"";return B});M(b,"Core/Utilities.js",[b["Core/Globals.js"]],function(B){function n(a,d,h,m){var I=d?"Highcharts error":"Highcharts warning";32===a&&(a=I+": Deprecated member");var A=q(a),c=A?I+" #"+a+": www.highcharts.com/errors/"+a+"/":a.toString();
if("undefined"!==typeof m){var P="";A&&(c+="?");C(m,function(h,u){P+="\n - "+u+": "+h;A&&(c+=encodeURI(u)+"="+encodeURI(h))});c+=P}N(B,"displayError",{chart:h,code:a,message:c,params:m},function(){if(d)throw Error(c);v.console&&-1===n.messages.indexOf(c)&&console.warn(c)});n.messages.push(c)}function b(a,d){var h={};C(a,function(I,A){if(H(a[A],!0)&&!a.nodeType&&d[A])I=b(a[A],d[A]),Object.keys(I).length&&(h[A]=I);else if(H(a[A])||a[A]!==d[A]||A in a&&!(A in d))h[A]=a[A]});return h}function G(a,d){return parseInt(a,
d||10)}function y(a){return"string"===typeof a}function D(a){a=Object.prototype.toString.call(a);return"[object Array]"===a||"[object Array Iterator]"===a}function H(a,d){return!!a&&"object"===typeof a&&(!d||!D(a))}function x(a){return H(a)&&"number"===typeof a.nodeType}function t(a){var d=a&&a.constructor;return!(!H(a,!0)||x(a)||!d||!d.name||"Object"===d.name)}function q(a){return"number"===typeof a&&!isNaN(a)&&Infinity>a&&-Infinity<a}function l(a){return"undefined"!==typeof a&&null!==a}function f(a,
d,h){var A=y(d)&&!l(h),I,r=function(h,d){l(h)?a.setAttribute(d,h):A?(I=a.getAttribute(d))||"class"!==d||(I=a.getAttribute(d+"Name")):a.removeAttribute(d)};y(d)?r(h,d):C(d,r);return I}function k(a,d){var h;a||(a={});for(h in d)a[h]=d[h];return a}function z(){for(var a=arguments,d=a.length,h=0;h<d;h++){var m=a[h];if("undefined"!==typeof m&&null!==m)return m}}function g(a,d){B.isMS&&!B.svg&&d&&l(d.opacity)&&(d.filter="alpha(opacity="+100*d.opacity+")");k(a.style,d)}function e(a,d){return 1E14<a?a:parseFloat(a.toPrecision(d||
14))}function c(a,d,h){var A=B.getStyle||c;if("width"===d)return d=Math.min(a.offsetWidth,a.scrollWidth),h=a.getBoundingClientRect&&a.getBoundingClientRect().width,h<d&&h>=d-1&&(d=Math.floor(h)),Math.max(0,d-(A(a,"padding-left",!0)||0)-(A(a,"padding-right",!0)||0));if("height"===d)return Math.max(0,Math.min(a.offsetHeight,a.scrollHeight)-(A(a,"padding-top",!0)||0)-(A(a,"padding-bottom",!0)||0));v.getComputedStyle||n(27,!0);if(a=v.getComputedStyle(a,void 0)){var I=a.getPropertyValue(d);z(h,"opacity"!==
d)&&(I=G(I))}return I}function C(a,d,h){for(var A in a)Object.hasOwnProperty.call(a,A)&&d.call(h||a[A],a[A],A,a)}function L(a,d,h){function A(d,h){var u=a.removeEventListener||B.removeEventListenerPolyfill;u&&u.call(a,d,h,!1)}function I(h){var r;if(a.nodeName){if(d){var u={};u[d]=!0}else u=h;C(u,function(u,a){if(h[a])for(r=h[a].length;r--;)A(a,h[a][r].fn)})}}var r="function"===typeof a&&a.prototype||a;if(Object.hasOwnProperty.call(r,"hcEvents")){var m=r.hcEvents;d?(r=m[d]||[],h?(m[d]=r.filter(function(a){return h!==
a.fn}),A(d,h)):(I(m),m[d]=[])):(I(m),delete r.hcEvents)}}function N(a,d,h,c){h=h||{};if(m.createEvent&&(a.dispatchEvent||a.fireEvent&&a!==B)){var A=m.createEvent("Events");A.initEvent(d,!0,!0);h=k(A,h);a.dispatchEvent?a.dispatchEvent(h):a.fireEvent(d,h)}else if(a.hcEvents){h.target||k(h,{preventDefault:function(){h.defaultPrevented=!0},target:a,type:d});A=[];for(var r=a,I=!1;r.hcEvents;)Object.hasOwnProperty.call(r,"hcEvents")&&r.hcEvents[d]&&(A.length&&(I=!0),A.unshift.apply(A,r.hcEvents[d])),r=
Object.getPrototypeOf(r);I&&A.sort(function(a,d){return a.order-d.order});A.forEach(function(d){!1===d.fn.call(a,h)&&h.preventDefault()})}c&&!h.defaultPrevented&&c.call(a,h)}var p=B.charts,m=B.doc,v=B.win;(n||(n={})).messages=[];Math.easeInOutSine=function(a){return-.5*(Math.cos(Math.PI*a)-1)};var a=Array.prototype.find?function(a,d){return a.find(d)}:function(a,d){var h,A=a.length;for(h=0;h<A;h++)if(d(a[h],h))return a[h]};C({map:"map",each:"forEach",grep:"filter",reduce:"reduce",some:"some"},function(a,
d){B[d]=function(h){var A;n(32,!1,void 0,(A={},A["Highcharts."+d]="use Array."+a,A));return Array.prototype[a].apply(h,[].slice.call(arguments,1))}});var w,d=function(){var a=Math.random().toString(36).substring(2,9)+"-",d=0;return function(){return"highcharts-"+(w?"":a)+d++}}();v.jQuery&&(v.jQuery.fn.highcharts=function(){var a=[].slice.call(arguments);if(this[0])return a[0]?(new (B[y(a[0])?a.shift():"Chart"])(this[0],a[0],a[1]),this):p[f(this[0],"data-highcharts-chart")]});a={addEvent:function(a,
d,h,m){void 0===m&&(m={});var A="function"===typeof a&&a.prototype||a;Object.hasOwnProperty.call(A,"hcEvents")||(A.hcEvents={});A=A.hcEvents;B.Point&&a instanceof B.Point&&a.series&&a.series.chart&&(a.series.chart.runTrackerClick=!0);var r=a.addEventListener||B.addEventListenerPolyfill;r&&r.call(a,d,h,B.supportsPassiveEvents?{passive:void 0===m.passive?-1!==d.indexOf("touch"):m.passive,capture:!1}:!1);A[d]||(A[d]=[]);A[d].push({fn:h,order:"number"===typeof m.order?m.order:Infinity});A[d].sort(function(a,
d){return a.order-d.order});return function(){L(a,d,h)}},arrayMax:function(a){for(var d=a.length,h=a[0];d--;)a[d]>h&&(h=a[d]);return h},arrayMin:function(a){for(var d=a.length,h=a[0];d--;)a[d]<h&&(h=a[d]);return h},attr:f,clamp:function(a,d,h){return a>d?a<h?a:h:d},cleanRecursively:b,clearTimeout:function(a){l(a)&&clearTimeout(a)},correctFloat:e,createElement:function(a,d,h,c,p){a=m.createElement(a);d&&k(a,d);p&&g(a,{padding:"0",border:"none",margin:"0"});h&&g(a,h);c&&c.appendChild(a);return a},css:g,
defined:l,destroyObjectProperties:function(a,d){C(a,function(h,A){h&&h!==d&&h.destroy&&h.destroy();delete a[A]})},discardElement:function(a){a&&a.parentElement&&a.parentElement.removeChild(a)},erase:function(a,d){for(var h=a.length;h--;)if(a[h]===d){a.splice(h,1);break}},error:n,extend:k,extendClass:function(a,d){var h=function(){};h.prototype=new a;k(h.prototype,d);return h},find:a,fireEvent:N,getMagnitude:function(a){return Math.pow(10,Math.floor(Math.log(a)/Math.LN10))},getNestedProperty:function(a,
d){for(a=a.split(".");a.length&&l(d);){var h=a.shift();if("undefined"===typeof h||"__proto__"===h)return;d=d[h];if(!l(d)||"function"===typeof d||"number"===typeof d.nodeType||d===v)return}return d},getStyle:c,inArray:function(a,d,h){n(32,!1,void 0,{"Highcharts.inArray":"use Array.indexOf"});return d.indexOf(a,h)},isArray:D,isClass:t,isDOMElement:x,isFunction:function(a){return"function"===typeof a},isNumber:q,isObject:H,isString:y,keys:function(a){n(32,!1,void 0,{"Highcharts.keys":"use Object.keys"});
return Object.keys(a)},merge:function(){var a,d=arguments,h={},m=function(a,d){"object"!==typeof a&&(a={});C(d,function(h,r){"__proto__"!==r&&"constructor"!==r&&(!H(h,!0)||t(h)||x(h)?a[r]=d[r]:a[r]=m(a[r]||{},h))});return a};!0===d[0]&&(h=d[1],d=Array.prototype.slice.call(d,2));var c=d.length;for(a=0;a<c;a++)h=m(h,d[a]);return h},normalizeTickInterval:function(a,d,h,m,c){var r=a;h=z(h,1);var A=a/h;d||(d=c?[1,1.2,1.5,2,2.5,3,4,5,6,8,10]:[1,2,2.5,5,10],!1===m&&(1===h?d=d.filter(function(a){return 0===
a%1}):.1>=h&&(d=[1/h])));for(m=0;m<d.length&&!(r=d[m],c&&r*h>=a||!c&&A<=(d[m]+(d[m+1]||d[m]))/2);m++);return r=e(r*h,-Math.round(Math.log(.001)/Math.LN10))},objectEach:C,offset:function(a){var d=m.documentElement;a=a.parentElement||a.parentNode?a.getBoundingClientRect():{top:0,left:0,width:0,height:0};return{top:a.top+(v.pageYOffset||d.scrollTop)-(d.clientTop||0),left:a.left+(v.pageXOffset||d.scrollLeft)-(d.clientLeft||0),width:a.width,height:a.height}},pad:function(a,d,h){return Array((d||2)+1-String(a).replace("-",
"").length).join(h||"0")+a},pick:z,pInt:G,relativeLength:function(a,d,h){return/%$/.test(a)?d*parseFloat(a)/100+(h||0):parseFloat(a)},removeEvent:L,splat:function(a){return D(a)?a:[a]},stableSort:function(a,d){var h=a.length,m,c;for(c=0;c<h;c++)a[c].safeI=c;a.sort(function(a,h){m=d(a,h);return 0===m?a.safeI-h.safeI:m});for(c=0;c<h;c++)delete a[c].safeI},syncTimeout:function(a,d,h){if(0<d)return setTimeout(a,d,h);a.call(0,h);return-1},timeUnits:{millisecond:1,second:1E3,minute:6E4,hour:36E5,day:864E5,
week:6048E5,month:24192E5,year:314496E5},uniqueKey:d,useSerialIds:function(a){return w=z(a,w)},wrap:function(a,d,h){var m=a[d];a[d]=function(){var a=Array.prototype.slice.call(arguments),d=arguments,c=this;c.proceed=function(){m.apply(c,arguments.length?arguments:d)};a.unshift(m);a=h.apply(this,a);c.proceed=null;return a}}};"";return a});M(b,"Core/Chart/ChartDefaults.js",[],function(){return{alignThresholds:!1,panning:{enabled:!1,type:"x"},styledMode:!1,borderRadius:0,colorCount:10,defaultSeriesType:"line",
ignoreHiddenSeries:!0,spacing:[10,10,15,10],resetZoomButton:{theme:{zIndex:6},position:{align:"right",x:-10,y:10}},zoomBySingleTouch:!1,width:null,height:null,borderColor:"#335cad",backgroundColor:"#ffffff",plotBorderColor:"#cccccc"}});M(b,"Core/Color/Color.js",[b["Core/Globals.js"],b["Core/Utilities.js"]],function(B,n){var b=n.isNumber,G=n.merge,y=n.pInt;n=function(){function n(b){this.rgba=[NaN,NaN,NaN,NaN];this.input=b;var x=B.Color;if(x&&x!==n)return new x(b);if(!(this instanceof n))return new n(b);
this.init(b)}n.parse=function(b){return b?new n(b):n.None};n.prototype.init=function(b){var x;if("object"===typeof b&&"undefined"!==typeof b.stops)this.stops=b.stops.map(function(f){return new n(f[1])});else if("string"===typeof b){this.input=b=n.names[b.toLowerCase()]||b;if("#"===b.charAt(0)){var t=b.length;var q=parseInt(b.substr(1),16);7===t?x=[(q&16711680)>>16,(q&65280)>>8,q&255,1]:4===t&&(x=[(q&3840)>>4|(q&3840)>>8,(q&240)>>4|q&240,(q&15)<<4|q&15,1])}if(!x)for(q=n.parsers.length;q--&&!x;){var l=
n.parsers[q];(t=l.regex.exec(b))&&(x=l.parse(t))}}x&&(this.rgba=x)};n.prototype.get=function(n){var x=this.input,t=this.rgba;if("object"===typeof x&&"undefined"!==typeof this.stops){var q=G(x);q.stops=[].slice.call(q.stops);this.stops.forEach(function(l,f){q.stops[f]=[q.stops[f][0],l.get(n)]});return q}return t&&b(t[0])?"rgb"===n||!n&&1===t[3]?"rgb("+t[0]+","+t[1]+","+t[2]+")":"a"===n?""+t[3]:"rgba("+t.join(",")+")":x};n.prototype.brighten=function(n){var x=this.rgba;if(this.stops)this.stops.forEach(function(q){q.brighten(n)});
else if(b(n)&&0!==n)for(var t=0;3>t;t++)x[t]+=y(255*n),0>x[t]&&(x[t]=0),255<x[t]&&(x[t]=255);return this};n.prototype.setOpacity=function(n){this.rgba[3]=n;return this};n.prototype.tweenTo=function(n,x){var t=this.rgba,q=n.rgba;if(!b(t[0])||!b(q[0]))return n.input||"none";n=1!==q[3]||1!==t[3];return(n?"rgba(":"rgb(")+Math.round(q[0]+(t[0]-q[0])*(1-x))+","+Math.round(q[1]+(t[1]-q[1])*(1-x))+","+Math.round(q[2]+(t[2]-q[2])*(1-x))+(n?","+(q[3]+(t[3]-q[3])*(1-x)):"")+")"};n.names={white:"#ffffff",black:"#000000"};
n.parsers=[{regex:/rgba\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]?(?:\.[0-9]+)?)\s*\)/,parse:function(n){return[y(n[1]),y(n[2]),y(n[3]),parseFloat(n[4],10)]}},{regex:/rgb\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*\)/,parse:function(n){return[y(n[1]),y(n[2]),y(n[3]),1]}}];n.None=new n("");return n}();"";return n});M(b,"Core/Color/Palettes.js",[],function(){return{colors:"#7cb5ec #434348 #90ed7d #f7a35c #8085e9 #f15c80 #e4d354 #2b908f #f45b5b #91e8e1".split(" ")}});
M(b,"Core/Time.js",[b["Core/Globals.js"],b["Core/Utilities.js"]],function(b,n){var B=b.win,G=n.defined,y=n.error,D=n.extend,H=n.isObject,x=n.merge,t=n.objectEach,q=n.pad,l=n.pick,f=n.splat,k=n.timeUnits,z=b.isSafari&&B.Intl&&B.Intl.DateTimeFormat.prototype.formatRange,g=b.isSafari&&B.Intl&&!B.Intl.DateTimeFormat.prototype.formatRange;n=function(){function e(c){this.options={};this.variableTimezone=this.useUTC=!1;this.Date=B.Date;this.getTimezoneOffset=this.timezoneOffsetFunction();this.update(c)}
e.prototype.get=function(c,e){if(this.variableTimezone||this.timezoneOffset){var g=e.getTime(),k=g-this.getTimezoneOffset(e);e.setTime(k);c=e["getUTC"+c]();e.setTime(g);return c}return this.useUTC?e["getUTC"+c]():e["get"+c]()};e.prototype.set=function(c,e,g){if(this.variableTimezone||this.timezoneOffset){if("Milliseconds"===c||"Seconds"===c||"Minutes"===c&&0===this.getTimezoneOffset(e)%36E5)return e["setUTC"+c](g);var k=this.getTimezoneOffset(e);k=e.getTime()-k;e.setTime(k);e["setUTC"+c](g);c=this.getTimezoneOffset(e);
k=e.getTime()+c;return e.setTime(k)}return this.useUTC||z&&"FullYear"===c?e["setUTC"+c](g):e["set"+c](g)};e.prototype.update=function(c){var e=l(c&&c.useUTC,!0);this.options=c=x(!0,this.options||{},c);this.Date=c.Date||B.Date||Date;this.timezoneOffset=(this.useUTC=e)&&c.timezoneOffset;this.getTimezoneOffset=this.timezoneOffsetFunction();this.variableTimezone=e&&!(!c.getTimezoneOffset&&!c.timezone)};e.prototype.makeTime=function(c,e,k,f,p,m){if(this.useUTC){var v=this.Date.UTC.apply(0,arguments);var a=
this.getTimezoneOffset(v);v+=a;var w=this.getTimezoneOffset(v);a!==w?v+=w-a:a-36E5!==this.getTimezoneOffset(v-36E5)||g||(v-=36E5)}else v=(new this.Date(c,e,l(k,1),l(f,0),l(p,0),l(m,0))).getTime();return v};e.prototype.timezoneOffsetFunction=function(){var c=this,e=this.options,g=e.getTimezoneOffset,k=e.moment||B.moment;if(!this.useUTC)return function(c){return 6E4*(new Date(c.toString())).getTimezoneOffset()};if(e.timezone){if(k)return function(c){return 6E4*-k.tz(c,e.timezone).utcOffset()};y(25)}return this.useUTC&&
g?function(c){return 6E4*g(c.valueOf())}:function(){return 6E4*(c.timezoneOffset||0)}};e.prototype.dateFormat=function(c,e,g){if(!G(e)||isNaN(e))return b.defaultOptions.lang&&b.defaultOptions.lang.invalidDate||"";c=l(c,"%Y-%m-%d %H:%M:%S");var k=this,p=new this.Date(e),m=this.get("Hours",p),v=this.get("Day",p),a=this.get("Date",p),w=this.get("Month",p),d=this.get("FullYear",p),I=b.defaultOptions.lang,A=I&&I.weekdays,h=I&&I.shortWeekdays;p=D({a:h?h[v]:A[v].substr(0,3),A:A[v],d:q(a),e:q(a,2," "),w:v,
b:I.shortMonths[w],B:I.months[w],m:q(w+1),o:w+1,y:d.toString().substr(2,2),Y:d,H:q(m),k:m,I:q(m%12||12),l:m%12||12,M:q(this.get("Minutes",p)),p:12>m?"AM":"PM",P:12>m?"am":"pm",S:q(p.getSeconds()),L:q(Math.floor(e%1E3),3)},b.dateFormats);t(p,function(a,d){for(;-1!==c.indexOf("%"+d);)c=c.replace("%"+d,"function"===typeof a?a.call(k,e):a)});return g?c.substr(0,1).toUpperCase()+c.substr(1):c};e.prototype.resolveDTLFormat=function(c){return H(c,!0)?c:(c=f(c),{main:c[0],from:c[1],to:c[2]})};e.prototype.getTimeTicks=
function(c,e,g,f){var p=this,m=[],v={},a=new p.Date(e),w=c.unitRange,d=c.count||1,I;f=l(f,1);if(G(e)){p.set("Milliseconds",a,w>=k.second?0:d*Math.floor(p.get("Milliseconds",a)/d));w>=k.second&&p.set("Seconds",a,w>=k.minute?0:d*Math.floor(p.get("Seconds",a)/d));w>=k.minute&&p.set("Minutes",a,w>=k.hour?0:d*Math.floor(p.get("Minutes",a)/d));w>=k.hour&&p.set("Hours",a,w>=k.day?0:d*Math.floor(p.get("Hours",a)/d));w>=k.day&&p.set("Date",a,w>=k.month?1:Math.max(1,d*Math.floor(p.get("Date",a)/d)));if(w>=
k.month){p.set("Month",a,w>=k.year?0:d*Math.floor(p.get("Month",a)/d));var A=p.get("FullYear",a)}w>=k.year&&p.set("FullYear",a,A-A%d);w===k.week&&(A=p.get("Day",a),p.set("Date",a,p.get("Date",a)-A+f+(A<f?-7:0)));A=p.get("FullYear",a);f=p.get("Month",a);var h=p.get("Date",a),J=p.get("Hours",a);e=a.getTime();!p.variableTimezone&&p.useUTC||!G(g)||(I=g-e>4*k.month||p.getTimezoneOffset(e)!==p.getTimezoneOffset(g));e=a.getTime();for(a=1;e<g;)m.push(e),e=w===k.year?p.makeTime(A+a*d,0):w===k.month?p.makeTime(A,
f+a*d):!I||w!==k.day&&w!==k.week?I&&w===k.hour&&1<d?p.makeTime(A,f,h,J+a*d):e+w*d:p.makeTime(A,f,h+a*d*(w===k.day?1:7)),a++;m.push(e);w<=k.hour&&1E4>m.length&&m.forEach(function(a){0===a%18E5&&"000000000"===p.dateFormat("%H%M%S%L",a)&&(v[a]="day")})}m.info=D(c,{higherRanks:v,totalRange:w*d});return m};e.prototype.getDateFormat=function(c,e,g,f){var p=this.dateFormat("%m-%d %H:%M:%S.%L",e),m={millisecond:15,second:12,minute:9,hour:6,day:3},v="millisecond";for(a in k){if(c===k.week&&+this.dateFormat("%w",
e)===g&&"00:00:00.000"===p.substr(6)){var a="week";break}if(k[a]>c){a=v;break}if(m[a]&&p.substr(m[a])!=="01-01 00:00:00.000".substr(m[a]))break;"week"!==a&&(v=a)}if(a)var w=this.resolveDTLFormat(f[a]).main;return w};return e}();"";return n});M(b,"Core/DefaultOptions.js",[b["Core/Chart/ChartDefaults.js"],b["Core/Color/Color.js"],b["Core/Globals.js"],b["Core/Color/Palettes.js"],b["Core/Time.js"],b["Core/Utilities.js"]],function(b,n,E,G,y,D){n=n.parse;var B=D.merge,x={colors:G.colors,symbols:["circle",
"diamond","square","triangle","triangle-down"],lang:{loading:"Loading...",months:"January February March April May June July August September October November December".split(" "),shortMonths:"Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec".split(" "),weekdays:"Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "),decimalPoint:".",numericSymbols:"kMGTPE".split(""),resetZoom:"Reset zoom",resetZoomTitle:"Reset zoom level 1:1",thousandsSep:" "},global:{},time:{Date:void 0,getTimezoneOffset:void 0,
timezone:void 0,timezoneOffset:0,useUTC:!0},chart:b,title:{text:"Chart title",align:"center",margin:15,widthAdjust:-44},subtitle:{text:"",align:"center",widthAdjust:-44},caption:{margin:15,text:"",align:"left",verticalAlign:"bottom"},plotOptions:{},labels:{style:{position:"absolute",color:"#333333"}},legend:{enabled:!0,align:"center",alignColumns:!0,className:"highcharts-no-tooltip",layout:"horizontal",labelFormatter:function(){return this.name},borderColor:"#999999",borderRadius:0,navigation:{activeColor:"#003399",
inactiveColor:"#cccccc"},itemStyle:{color:"#333333",cursor:"pointer",fontSize:"12px",fontWeight:"bold",textOverflow:"ellipsis"},itemHoverStyle:{color:"#000000"},itemHiddenStyle:{color:"#cccccc"},shadow:!1,itemCheckboxStyle:{position:"absolute",width:"13px",height:"13px"},squareSymbol:!0,symbolPadding:5,verticalAlign:"bottom",x:0,y:0,title:{style:{fontWeight:"bold"}}},loading:{labelStyle:{fontWeight:"bold",position:"relative",top:"45%"},style:{position:"absolute",backgroundColor:"#ffffff",opacity:.5,
textAlign:"center"}},tooltip:{enabled:!0,animation:E.svg,borderRadius:3,dateTimeLabelFormats:{millisecond:"%A, %b %e, %H:%M:%S.%L",second:"%A, %b %e, %H:%M:%S",minute:"%A, %b %e, %H:%M",hour:"%A, %b %e, %H:%M",day:"%A, %b %e, %Y",week:"Week from %A, %b %e, %Y",month:"%B %Y",year:"%Y"},footerFormat:"",headerShape:"callout",hideDelay:500,padding:8,shape:"callout",shared:!1,snap:E.isTouchDevice?25:10,headerFormat:'<span style="font-size: 10px">{point.key}</span><br/>',pointFormat:'<span style="color:{point.color}">\u25cf</span> {series.name}: <b>{point.y}</b><br/>',
backgroundColor:n("#f7f7f7").setOpacity(.85).get(),borderWidth:1,shadow:!0,stickOnContact:!1,style:{color:"#333333",cursor:"default",fontSize:"12px",whiteSpace:"nowrap"},useHTML:!1},credits:{enabled:!0,href:"https://www.highcharts.com?credits",position:{align:"right",x:-10,verticalAlign:"bottom",y:-5},style:{cursor:"pointer",color:"#999999",fontSize:"9px"},text:"Highcharts.com"}};x.chart.styledMode=!1;"";var t=new y(B(x.global,x.time));b={defaultOptions:x,defaultTime:t,getOptions:function(){return x},
setOptions:function(q){B(!0,x,q);if(q.time||q.global)E.time?E.time.update(B(x.global,x.time,q.global,q.time)):E.time=t;return x}};"";return b});M(b,"Core/Animation/Fx.js",[b["Core/Color/Color.js"],b["Core/Globals.js"],b["Core/Utilities.js"]],function(b,n,E){var B=b.parse,y=n.win,D=E.isNumber,H=E.objectEach;return function(){function x(t,q,l){this.pos=NaN;this.options=q;this.elem=t;this.prop=l}x.prototype.dSetter=function(){var t=this.paths,q=t&&t[0];t=t&&t[1];var l=this.now||0,f=[];if(1!==l&&q&&t)if(q.length===
t.length&&1>l)for(var k=0;k<t.length;k++){for(var z=q[k],g=t[k],e=[],c=0;c<g.length;c++){var C=z[c],L=g[c];D(C)&&D(L)&&("A"!==g[0]||4!==c&&5!==c)?e[c]=C+l*(L-C):e[c]=L}f.push(e)}else f=t;else f=this.toD||[];this.elem.attr("d",f,void 0,!0)};x.prototype.update=function(){var t=this.elem,q=this.prop,l=this.now,f=this.options.step;if(this[q+"Setter"])this[q+"Setter"]();else t.attr?t.element&&t.attr(q,l,null,!0):t.style[q]=l+this.unit;f&&f.call(t,l,this)};x.prototype.run=function(t,q,l){var f=this,k=f.options,
z=function(c){return z.stopped?!1:f.step(c)},g=y.requestAnimationFrame||function(c){setTimeout(c,13)},e=function(){for(var c=0;c<x.timers.length;c++)x.timers[c]()||x.timers.splice(c--,1);x.timers.length&&g(e)};t!==q||this.elem["forceAnimate:"+this.prop]?(this.startTime=+new Date,this.start=t,this.end=q,this.unit=l,this.now=this.start,this.pos=0,z.elem=this.elem,z.prop=this.prop,z()&&1===x.timers.push(z)&&g(e)):(delete k.curAnim[this.prop],k.complete&&0===Object.keys(k.curAnim).length&&k.complete.call(this.elem))};
x.prototype.step=function(t){var q=+new Date,l=this.options,f=this.elem,k=l.complete,z=l.duration,g=l.curAnim;if(f.attr&&!f.element)t=!1;else if(t||q>=z+this.startTime){this.now=this.end;this.pos=1;this.update();var e=g[this.prop]=!0;H(g,function(c){!0!==c&&(e=!1)});e&&k&&k.call(f);t=!1}else this.pos=l.easing((q-this.startTime)/z),this.now=this.start+(this.end-this.start)*this.pos,this.update(),t=!0;return t};x.prototype.initPath=function(t,q,l){function f(c,m){for(;c.length<N;){var p=c[0],a=m[N-
c.length];a&&"M"===p[0]&&(c[0]="C"===a[0]?["C",p[1],p[2],p[1],p[2],p[1],p[2]]:["L",p[1],p[2]]);c.unshift(p);e&&(p=c.pop(),c.push(c[c.length-1],p))}}function k(p,m){for(;p.length<N;)if(m=p[Math.floor(p.length/c)-1].slice(),"C"===m[0]&&(m[1]=m[5],m[2]=m[6]),e){var v=p[Math.floor(p.length/c)].slice();p.splice(p.length/2,0,m,v)}else p.push(m)}var z=t.startX,g=t.endX;l=l.slice();var e=t.isArea,c=e?2:1;q=q&&q.slice();if(!q)return[l,l];if(z&&g&&g.length){for(t=0;t<z.length;t++)if(z[t]===g[0]){var C=t;break}else if(z[0]===
g[g.length-z.length+t]){C=t;var L=!0;break}else if(z[z.length-1]===g[g.length-z.length+t]){C=z.length-t;break}"undefined"===typeof C&&(q=[])}if(q.length&&D(C)){var N=l.length+C*c;L?(f(q,l),k(l,q)):(f(l,q),k(q,l))}return[q,l]};x.prototype.fillSetter=function(){x.prototype.strokeSetter.apply(this,arguments)};x.prototype.strokeSetter=function(){this.elem.attr(this.prop,B(this.start).tweenTo(B(this.end),this.pos),void 0,!0)};x.timers=[];return x}()});M(b,"Core/Animation/AnimationUtilities.js",[b["Core/Animation/Fx.js"],
b["Core/Utilities.js"]],function(b,n){function B(k){return t(k)?q({duration:500,defer:0},k):{duration:k?500:0,defer:0}}function G(k,f){for(var g=b.timers.length;g--;)b.timers[g].elem!==k||f&&f!==b.timers[g].prop||(b.timers[g].stopped=!0)}var y=n.defined,D=n.getStyle,H=n.isArray,x=n.isNumber,t=n.isObject,q=n.merge,l=n.objectEach,f=n.pick;return{animate:function(k,f,g){var e,c="",C,z;if(!t(g)){var N=arguments;g={duration:N[2],easing:N[3],complete:N[4]}}x(g.duration)||(g.duration=400);g.easing="function"===
typeof g.easing?g.easing:Math[g.easing]||Math.easeInOutSine;g.curAnim=q(f);l(f,function(p,m){G(k,m);z=new b(k,g,m);C=void 0;"d"===m&&H(f.d)?(z.paths=z.initPath(k,k.pathArray,f.d),z.toD=f.d,e=0,C=1):k.attr?e=k.attr(m):(e=parseFloat(D(k,m))||0,"opacity"!==m&&(c="px"));C||(C=p);"string"===typeof C&&C.match("px")&&(C=C.replace(/px/g,""));z.run(e,C,c)})},animObject:B,getDeferredAnimation:function(k,f,g){var e=B(f),c=0,C=0;(g?[g]:k.series).forEach(function(g){g=B(g.options.animation);c=f&&y(f.defer)?e.defer:
Math.max(c,g.duration+g.defer);C=Math.min(e.duration,g.duration)});k.renderer.forExport&&(c=0);return{defer:Math.max(0,c-C),duration:Math.min(c,C)}},setAnimation:function(k,l){l.renderer.globalAnimation=f(k,l.options.chart.animation,!0)},stop:G}});M(b,"Core/Renderer/HTML/AST.js",[b["Core/Globals.js"],b["Core/Utilities.js"]],function(b,n){var B=b.SVG_NS,G=n.attr,y=n.createElement,D=n.css,H=n.error,x=n.isFunction,t=n.isString,q=n.objectEach,l=n.splat,f=(n=b.win.trustedTypes)&&x(n.createPolicy)&&n.createPolicy("highcharts",
{createHTML:function(g){return g}}),k=f?f.createHTML(""):"";try{var z=!!(new DOMParser).parseFromString(k,"text/html")}catch(g){z=!1}x=function(){function g(e){this.nodes="string"===typeof e?this.parseMarkup(e):e}g.filterUserAttributes=function(e){q(e,function(c,k){var f=!0;-1===g.allowedAttributes.indexOf(k)&&(f=!1);-1!==["background","dynsrc","href","lowsrc","src"].indexOf(k)&&(f=t(c)&&g.allowedReferences.some(function(e){return 0===c.indexOf(e)}));f||(H("Highcharts warning: Invalid attribute '"+
k+"' in config"),delete e[k])});return e};g.parseStyle=function(e){return e.split(";").reduce(function(c,e){e=e.split(":").map(function(c){return c.trim()});var g=e[0].replace(/-([a-z])/g,function(c){return c[1].toUpperCase()});e[1]&&(c[g]=e[1]);return c},{})};g.setElementHTML=function(e,c){e.innerHTML=g.emptyHTML;c&&(new g(c)).addToDOM(e)};g.prototype.addToDOM=function(e){function c(e,k){var f;l(e).forEach(function(e){var m=e.tagName,p=e.textContent?b.doc.createTextNode(e.textContent):void 0,a=g.bypassHTMLFiltering;
if(m)if("#text"===m)var w=p;else if(-1!==g.allowedTags.indexOf(m)||a){m=b.doc.createElementNS("svg"===m?B:k.namespaceURI||B,m);var d=e.attributes||{};q(e,function(a,m){"tagName"!==m&&"attributes"!==m&&"children"!==m&&"style"!==m&&"textContent"!==m&&(d[m]=a)});G(m,a?d:g.filterUserAttributes(d));e.style&&D(m,e.style);p&&m.appendChild(p);c(e.children||[],m);w=m}else H("Highcharts warning: Invalid tagName "+m+" in config");w&&k.appendChild(w);f=w});return f}return c(this.nodes,e)};g.prototype.parseMarkup=
function(e){var c=[];e=e.trim().replace(/ style="/g,' data-style="');if(z)e=(new DOMParser).parseFromString(f?f.createHTML(e):e,"text/html");else{var k=y("div");k.innerHTML=e;e={body:k}}var l=function(c,e){var m=c.nodeName.toLowerCase(),p={tagName:m};"#text"===m&&(p.textContent=c.textContent||"");if(m=c.attributes){var a={};[].forEach.call(m,function(d){"data-style"===d.name?p.style=g.parseStyle(d.value):a[d.name]=d.value});p.attributes=a}if(c.childNodes.length){var w=[];[].forEach.call(c.childNodes,
function(a){l(a,w)});w.length&&(p.children=w)}e.push(p)};[].forEach.call(e.body.childNodes,function(e){return l(e,c)});return c};g.allowedAttributes="aria-controls aria-describedby aria-expanded aria-haspopup aria-hidden aria-label aria-labelledby aria-live aria-pressed aria-readonly aria-roledescription aria-selected class clip-path color colspan cx cy d dx dy disabled fill height href id in markerHeight markerWidth offset opacity orient padding paddingLeft paddingRight patternUnits r refX refY role scope slope src startOffset stdDeviation stroke stroke-linecap stroke-width style tableValues result rowspan summary target tabindex text-align textAnchor textLength title type valign width x x1 x2 y y1 y2 zIndex".split(" ");
g.allowedReferences="https:// http:// mailto: / ../ ./ #".split(" ");g.allowedTags="a abbr b br button caption circle clipPath code dd defs div dl dt em feComponentTransfer feFuncA feFuncB feFuncG feFuncR feGaussianBlur feOffset feMerge feMergeNode filter h1 h2 h3 h4 h5 h6 hr i img li linearGradient marker ol p path pattern pre rect small span stop strong style sub sup svg table text thead tbody tspan td th tr u ul #text".split(" ");g.emptyHTML=k;g.bypassHTMLFiltering=!1;return g}();"";return x});
M(b,"Core/FormatUtilities.js",[b["Core/DefaultOptions.js"],b["Core/Utilities.js"]],function(b,n){function B(q,l,f,k){q=+q||0;l=+l;var z=G.lang,g=(q.toString().split(".")[1]||"").split("e")[0].length,e=q.toString().split("e"),c=l;if(-1===l)l=Math.min(g,20);else if(!H(l))l=2;else if(l&&e[1]&&0>e[1]){var C=l+ +e[1];0<=C?(e[0]=(+e[0]).toExponential(C).split("e")[0],l=C):(e[0]=e[0].split(".")[0]||0,q=20>l?(e[0]*Math.pow(10,e[1])).toFixed(l):0,e[1]=0)}C=(Math.abs(e[1]?e[0]:q)+Math.pow(10,-Math.max(l,g)-
1)).toFixed(l);g=String(t(C));var L=3<g.length?g.length%3:0;f=x(f,z.decimalPoint);k=x(k,z.thousandsSep);q=(0>q?"-":"")+(L?g.substr(0,L)+k:"");q=0>+e[1]&&!c?"0":q+g.substr(L).replace(/(\d{3})(?=\d)/g,"$1"+k);l&&(q+=f+C.slice(-l));e[1]&&0!==+q&&(q+="e"+e[1]);return q}var G=b.defaultOptions,y=b.defaultTime,D=n.getNestedProperty,H=n.isNumber,x=n.pick,t=n.pInt;return{dateFormat:function(q,l,f){return y.dateFormat(q,l,f)},format:function(q,l,f){var k="{",z=!1,g=/f$/,e=/\.([0-9])/,c=G.lang,C=f&&f.time||
y;f=f&&f.numberFormatter||B;for(var L=[];q;){var N=q.indexOf(k);if(-1===N)break;var p=q.slice(0,N);if(z){p=p.split(":");k=D(p.shift()||"",l);if(p.length&&"number"===typeof k)if(p=p.join(":"),g.test(p)){var m=parseInt((p.match(e)||["","-1"])[1],10);null!==k&&(k=f(k,m,c.decimalPoint,-1<p.indexOf(",")?c.thousandsSep:""))}else k=C.dateFormat(p,k);L.push(k)}else L.push(p);q=q.slice(N+1);k=(z=!z)?"}":"{"}L.push(q);return L.join("")},numberFormat:B}});M(b,"Core/Renderer/RendererUtilities.js",[b["Core/Utilities.js"]],
function(b){var n=b.clamp,B=b.pick,G=b.stableSort,y;(function(b){function H(x,t,q){var l=x,f=l.reducedLen||t,k=function(c,e){return(e.rank||0)-(c.rank||0)},z=function(c,e){return c.target-e.target},g,e=!0,c=[],C=0;for(g=x.length;g--;)C+=x[g].size;if(C>f){G(x,k);for(C=g=0;C<=f;)C+=x[g].size,g++;c=x.splice(g-1,x.length)}G(x,z);for(x=x.map(function(c){return{size:c.size,targets:[c.target],align:B(c.align,.5)}});e;){for(g=x.length;g--;)f=x[g],k=(Math.min.apply(0,f.targets)+Math.max.apply(0,f.targets))/
2,f.pos=n(k-f.size*f.align,0,t-f.size);g=x.length;for(e=!1;g--;)0<g&&x[g-1].pos+x[g-1].size>x[g].pos&&(x[g-1].size+=x[g].size,x[g-1].targets=x[g-1].targets.concat(x[g].targets),x[g-1].align=.5,x[g-1].pos+x[g-1].size>t&&(x[g-1].pos=t-x[g-1].size),x.splice(g,1),e=!0)}l.push.apply(l,c);g=0;x.some(function(c){var e=0;return(c.targets||[]).some(function(){l[g].pos=c.pos+e;if("undefined"!==typeof q&&Math.abs(l[g].pos-l[g].target)>q)return l.slice(0,g+1).forEach(function(c){return delete c.pos}),l.reducedLen=
(l.reducedLen||t)-.1*t,l.reducedLen>.1*t&&H(l,t,q),!0;e+=l[g].size;g++;return!1})});G(l,z);return l}b.distribute=H})(y||(y={}));return y});M(b,"Core/Renderer/SVG/SVGElement.js",[b["Core/Animation/AnimationUtilities.js"],b["Core/Renderer/HTML/AST.js"],b["Core/Color/Color.js"],b["Core/Globals.js"],b["Core/Utilities.js"]],function(b,n,E,G,y){var B=b.animate,H=b.animObject,x=b.stop,t=G.deg2rad,q=G.doc,l=G.noop,f=G.svg,k=G.SVG_NS,z=G.win,g=y.addEvent,e=y.attr,c=y.createElement,C=y.css,L=y.defined,N=y.erase,
p=y.extend,m=y.fireEvent,v=y.isArray,a=y.isFunction,w=y.isNumber,d=y.isString,I=y.merge,A=y.objectEach,h=y.pick,J=y.pInt,O=y.syncTimeout,r=y.uniqueKey;b=function(){function F(){this.element=void 0;this.onEvents={};this.opacity=1;this.renderer=void 0;this.SVG_NS=k;this.symbolCustomAttribs="x y width height r start end innerR anchorX anchorY rounded".split(" ")}F.prototype._defaultGetter=function(a){a=h(this[a+"Value"],this[a],this.element?this.element.getAttribute(a):null,0);/^[\-0-9\.]+$/.test(a)&&
(a=parseFloat(a));return a};F.prototype._defaultSetter=function(a,d,u){u.setAttribute(d,a)};F.prototype.add=function(a){var d=this.renderer,u=this.element;a&&(this.parentGroup=a);this.parentInverted=a&&a.inverted;"undefined"!==typeof this.textStr&&"text"===this.element.nodeName&&d.buildText(this);this.added=!0;if(!a||a.handleZ||this.zIndex)var K=this.zIndexSetter();K||(a?a.element:d.box).appendChild(u);if(this.onAdd)this.onAdd();return this};F.prototype.addClass=function(a,d){var u=d?"":this.attr("class")||
"";a=(a||"").split(/ /g).reduce(function(a,d){-1===u.indexOf(d)&&a.push(d);return a},u?[u]:[]).join(" ");a!==u&&this.attr("class",a);return this};F.prototype.afterSetters=function(){this.doTransform&&(this.updateTransform(),this.doTransform=!1)};F.prototype.align=function(a,c,u){var K={},m=this.renderer,e=m.alignedObjects,r,p,w;if(a){if(this.alignOptions=a,this.alignByTranslate=c,!u||d(u))this.alignTo=r=u||"renderer",N(e,this),e.push(this),u=void 0}else a=this.alignOptions,c=this.alignByTranslate,
r=this.alignTo;u=h(u,m[r],"scrollablePlotBox"===r?m.plotBox:void 0,m);r=a.align;var A=a.verticalAlign;m=(u.x||0)+(a.x||0);e=(u.y||0)+(a.y||0);"right"===r?p=1:"center"===r&&(p=2);p&&(m+=(u.width-(a.width||0))/p);K[c?"translateX":"x"]=Math.round(m);"bottom"===A?w=1:"middle"===A&&(w=2);w&&(e+=(u.height-(a.height||0))/w);K[c?"translateY":"y"]=Math.round(e);this[this.placed?"animate":"attr"](K);this.placed=!0;this.alignAttr=K;return this};F.prototype.alignSetter=function(a){var d={left:"start",center:"middle",
right:"end"};d[a]&&(this.alignValue=a,this.element.setAttribute("text-anchor",d[a]))};F.prototype.animate=function(a,d,u){var K=this,c=H(h(d,this.renderer.globalAnimation,!0));d=c.defer;h(q.hidden,q.msHidden,q.webkitHidden,!1)&&(c.duration=0);0!==c.duration?(u&&(c.complete=u),O(function(){K.element&&B(K,a,c)},d)):(this.attr(a,void 0,u||c.complete),A(a,function(a,d){c.step&&c.step.call(this,a,{prop:d,pos:1,elem:this})},this));return this};F.prototype.applyTextOutline=function(a){var d=this.element;
-1!==a.indexOf("contrast")&&(a=a.replace(/contrast/g,this.renderer.getContrast(d.style.fill)));var u=a.split(" ");a=u[u.length-1];if((u=u[0])&&"none"!==u&&G.svg){this.fakeTS=!0;this.ySetter=this.xSetter;u=u.replace(/(^[\d\.]+)(.*?)$/g,function(a,d,u){return 2*Number(d)+u});this.removeTextOutline();var K=q.createElementNS(k,"tspan");e(K,{"class":"highcharts-text-outline",fill:a,stroke:a,"stroke-width":u,"stroke-linejoin":"round"});[].forEach.call(d.childNodes,function(a){var d=a.cloneNode(!0);d.removeAttribute&&
["fill","stroke","stroke-width","stroke"].forEach(function(a){return d.removeAttribute(a)});K.appendChild(d)});var h=q.createElementNS(k,"tspan");h.textContent="\u200b";["x","y"].forEach(function(a){var u=d.getAttribute(a);u&&h.setAttribute(a,u)});K.appendChild(h);d.insertBefore(K,d.firstChild)}};F.prototype.attr=function(a,d,u,K){var h=this.element,c=this.symbolCustomAttribs,m,e=this,r,p;if("string"===typeof a&&"undefined"!==typeof d){var w=a;a={};a[w]=d}"string"===typeof a?e=(this[a+"Getter"]||
this._defaultGetter).call(this,a,h):(A(a,function(d,u){r=!1;K||x(this,u);this.symbolName&&-1!==c.indexOf(u)&&(m||(this.symbolAttr(a),m=!0),r=!0);!this.rotation||"x"!==u&&"y"!==u||(this.doTransform=!0);r||(p=this[u+"Setter"]||this._defaultSetter,p.call(this,d,u,h),!this.styledMode&&this.shadows&&/^(width|height|visibility|x|y|d|transform|cx|cy|r)$/.test(u)&&this.updateShadows(u,d,p))},this),this.afterSetters());u&&u.call(this);return e};F.prototype.clip=function(a){return this.attr("clip-path",a?"url("+
this.renderer.url+"#"+a.id+")":"none")};F.prototype.crisp=function(a,d){d=d||a.strokeWidth||0;var u=Math.round(d)%2/2;a.x=Math.floor(a.x||this.x||0)+u;a.y=Math.floor(a.y||this.y||0)+u;a.width=Math.floor((a.width||this.width||0)-2*u);a.height=Math.floor((a.height||this.height||0)-2*u);L(a.strokeWidth)&&(a.strokeWidth=d);return a};F.prototype.complexColor=function(a,d,u){var K=this.renderer,h,c,e,p,w,F,g,k,f,P,J=[],l;m(this.renderer,"complexColor",{args:arguments},function(){a.radialGradient?c="radialGradient":
a.linearGradient&&(c="linearGradient");if(c){e=a[c];w=K.gradients;F=a.stops;f=u.radialReference;v(e)&&(a[c]=e={x1:e[0],y1:e[1],x2:e[2],y2:e[3],gradientUnits:"userSpaceOnUse"});"radialGradient"===c&&f&&!L(e.gradientUnits)&&(p=e,e=I(e,K.getRadialAttr(f,p),{gradientUnits:"userSpaceOnUse"}));A(e,function(a,d){"id"!==d&&J.push(d,a)});A(F,function(a){J.push(a)});J=J.join(",");if(w[J])P=w[J].attr("id");else{e.id=P=r();var m=w[J]=K.createElement(c).attr(e).add(K.defs);m.radAttr=p;m.stops=[];F.forEach(function(a){0===
a[1].indexOf("rgba")?(h=E.parse(a[1]),g=h.get("rgb"),k=h.get("a")):(g=a[1],k=1);a=K.createElement("stop").attr({offset:a[0],"stop-color":g,"stop-opacity":k}).add(m);m.stops.push(a)})}l="url("+K.url+"#"+P+")";u.setAttribute(d,l);u.gradient=J;a.toString=function(){return l}}})};F.prototype.css=function(a){var d=this.styles,u={},h=this.element,c=!d;a.color&&(a.fill=a.color);d&&A(a,function(a,h){d&&d[h]!==a&&(u[h]=a,c=!0)});if(c){d&&(a=p(d,u));if(null===a.width||"auto"===a.width)delete this.textWidth;
else if("text"===h.nodeName.toLowerCase()&&a.width)var m=this.textWidth=J(a.width);this.styles=a;m&&!f&&this.renderer.forExport&&delete a.width;var e=I(a);h.namespaceURI===this.SVG_NS&&["textOutline","textOverflow","width"].forEach(function(a){return e&&delete e[a]});C(h,e);this.added&&("text"===this.element.nodeName&&this.renderer.buildText(this),a.textOutline&&this.applyTextOutline(a.textOutline))}return this};F.prototype.dashstyleSetter=function(a){var d=this["stroke-width"];"inherit"===d&&(d=
1);if(a=a&&a.toLowerCase()){var u=a.replace("shortdashdotdot","3,1,1,1,1,1,").replace("shortdashdot","3,1,1,1").replace("shortdot","1,1,").replace("shortdash","3,1,").replace("longdash","8,3,").replace(/dot/g,"1,3,").replace("dash","4,3,").replace(/,$/,"").split(",");for(a=u.length;a--;)u[a]=""+J(u[a])*h(d,NaN);a=u.join(",").replace(/NaN/g,"none");this.element.setAttribute("stroke-dasharray",a)}};F.prototype.destroy=function(){var a=this,d=a.element||{},u=a.renderer,h=d.ownerSVGElement,c=u.isSVG&&
"SPAN"===d.nodeName&&a.parentGroup||void 0;d.onclick=d.onmouseout=d.onmouseover=d.onmousemove=d.point=null;x(a);if(a.clipPath&&h){var m=a.clipPath;[].forEach.call(h.querySelectorAll("[clip-path],[CLIP-PATH]"),function(a){-1<a.getAttribute("clip-path").indexOf(m.element.id)&&a.removeAttribute("clip-path")});a.clipPath=m.destroy()}if(a.stops){for(h=0;h<a.stops.length;h++)a.stops[h].destroy();a.stops.length=0;a.stops=void 0}a.safeRemoveChild(d);for(u.styledMode||a.destroyShadows();c&&c.div&&0===c.div.childNodes.length;)d=
c.parentGroup,a.safeRemoveChild(c.div),delete c.div,c=d;a.alignTo&&N(u.alignedObjects,a);A(a,function(d,u){a[u]&&a[u].parentGroup===a&&a[u].destroy&&a[u].destroy();delete a[u]})};F.prototype.destroyShadows=function(){(this.shadows||[]).forEach(function(a){this.safeRemoveChild(a)},this);this.shadows=void 0};F.prototype.destroyTextPath=function(a,d){var u=a.getElementsByTagName("text")[0];if(u){if(u.removeAttribute("dx"),u.removeAttribute("dy"),d.element.setAttribute("id",""),this.textPathWrapper&&
u.getElementsByTagName("textPath").length){for(a=this.textPathWrapper.element.childNodes;a.length;)u.appendChild(a[0]);u.removeChild(this.textPathWrapper.element)}}else if(a.getAttribute("dx")||a.getAttribute("dy"))a.removeAttribute("dx"),a.removeAttribute("dy");this.textPathWrapper&&(this.textPathWrapper=this.textPathWrapper.destroy())};F.prototype.dSetter=function(a,d,u){v(a)&&("string"===typeof a[0]&&(a=this.renderer.pathToSegments(a)),this.pathArray=a,a=a.reduce(function(a,d,u){return d&&d.join?
(u?a+" ":"")+d.join(" "):(d||"").toString()},""));/(NaN| {2}|^$)/.test(a)&&(a="M 0 0");this[d]!==a&&(u.setAttribute(d,a),this[d]=a)};F.prototype.fadeOut=function(a){var d=this;d.animate({opacity:0},{duration:h(a,150),complete:function(){d.attr({y:-9999}).hide()}})};F.prototype.fillSetter=function(a,d,u){"string"===typeof a?u.setAttribute(d,a):a&&this.complexColor(a,d,u)};F.prototype.getBBox=function(d,c){var u=this.renderer,K=this.element,m=this.styles,e=this.textStr,r=u.cache,w=u.cacheKeys,A=K.namespaceURI===
this.SVG_NS;c=h(c,this.rotation,0);var g=u.styledMode?K&&F.prototype.getStyle.call(K,"font-size"):m&&m.fontSize,v;if(L(e)){var k=e.toString();-1===k.indexOf("<")&&(k=k.replace(/[0-9]/g,"0"));k+=["",c,g,this.textWidth,m&&m.textOverflow,m&&m.fontWeight].join()}k&&!d&&(v=r[k]);if(!v){if(A||u.forExport){try{var f=this.fakeTS&&function(a){var d=K.querySelector(".highcharts-text-outline");d&&C(d,{display:a})};a(f)&&f("none");v=K.getBBox?p({},K.getBBox()):{width:K.offsetWidth,height:K.offsetHeight};a(f)&&
f("")}catch(W){""}if(!v||0>v.width)v={width:0,height:0}}else v=this.htmlGetBBox();u.isSVG&&(d=v.width,u=v.height,A&&(v.height=u={"11px,17":14,"13px,20":16}[(g||"")+","+Math.round(u)]||u),c&&(A=c*t,v.width=Math.abs(u*Math.sin(A))+Math.abs(d*Math.cos(A)),v.height=Math.abs(u*Math.cos(A))+Math.abs(d*Math.sin(A))));if(k&&(""===e||0<v.height)){for(;250<w.length;)delete r[w.shift()];r[k]||w.push(k);r[k]=v}}return v};F.prototype.getStyle=function(a){return z.getComputedStyle(this.element||this,"").getPropertyValue(a)};
F.prototype.hasClass=function(a){return-1!==(""+this.attr("class")).split(" ").indexOf(a)};F.prototype.hide=function(a){a?this.attr({y:-9999}):this.attr({visibility:"hidden"});return this};F.prototype.htmlGetBBox=function(){return{height:0,width:0,x:0,y:0}};F.prototype.init=function(a,d){this.element="span"===d?c(d):q.createElementNS(this.SVG_NS,d);this.renderer=a;m(this,"afterInit")};F.prototype.invert=function(a){this.inverted=a;this.updateTransform();return this};F.prototype.on=function(a,d){var u=
this.onEvents;if(u[a])u[a]();u[a]=g(this.element,a,d);return this};F.prototype.opacitySetter=function(a,d,u){this.opacity=a=Number(Number(a).toFixed(3));u.setAttribute(d,a)};F.prototype.removeClass=function(a){return this.attr("class",(""+this.attr("class")).replace(d(a)?new RegExp("(^| )"+a+"( |$)"):a," ").replace(/ +/g," ").trim())};F.prototype.removeTextOutline=function(){var a=this.element.querySelector("tspan.highcharts-text-outline");a&&this.safeRemoveChild(a)};F.prototype.safeRemoveChild=function(a){var d=
a.parentNode;d&&d.removeChild(a)};F.prototype.setRadialReference=function(a){var d=this.element.gradient&&this.renderer.gradients[this.element.gradient];this.element.radialReference=a;d&&d.radAttr&&d.animate(this.renderer.getRadialAttr(a,d.radAttr));return this};F.prototype.setTextPath=function(a,d){var u=this.element,h=this.text?this.text.element:u,c={textAnchor:"text-anchor"},m=!1,e=this.textPathWrapper,p=!e;d=I(!0,{enabled:!0,attributes:{dy:-5,startOffset:"50%",textAnchor:"middle"}},d);var v=n.filterUserAttributes(d.attributes);
if(a&&d&&d.enabled){e&&null===e.element.parentNode?(p=!0,e=e.destroy()):e&&this.removeTextOutline.call(e.parentGroup);this.options&&this.options.padding&&(v.dx=-this.options.padding);e||(this.textPathWrapper=e=this.renderer.createElement("textPath"),m=!0);var F=e.element;(d=a.element.getAttribute("id"))||a.element.setAttribute("id",d=r());if(p)for(h.setAttribute("y",0),w(v.dx)&&h.setAttribute("x",-v.dx),a=[].slice.call(h.childNodes),p=0;p<a.length;p++){var g=a[p];g.nodeType!==z.Node.TEXT_NODE&&"tspan"!==
g.nodeName||F.appendChild(g)}m&&e&&e.add({element:h});F.setAttributeNS("http://www.w3.org/1999/xlink","href",this.renderer.url+"#"+d);L(v.dy)&&(F.parentNode.setAttribute("dy",v.dy),delete v.dy);L(v.dx)&&(F.parentNode.setAttribute("dx",v.dx),delete v.dx);A(v,function(a,d){F.setAttribute(c[d]||d,a)});u.removeAttribute("transform");this.removeTextOutline.call(e);this.text&&!this.renderer.styledMode&&this.attr({fill:"none","stroke-width":0});this.applyTextOutline=this.updateTransform=l}else e&&(delete this.updateTransform,
delete this.applyTextOutline,this.destroyTextPath(u,a),this.updateTransform(),this.options&&this.options.rotation&&this.applyTextOutline(this.options.style.textOutline));return this};F.prototype.shadow=function(a,d,u){var h=[],c=this.element,m=this.oldShadowOptions,r={color:"#000000",offsetX:this.parentInverted?-1:1,offsetY:this.parentInverted?-1:1,opacity:.15,width:3},w=!1,v;!0===a?v=r:"object"===typeof a&&(v=p(r,a));v&&(v&&m&&A(v,function(a,d){a!==m[d]&&(w=!0)}),w&&this.destroyShadows(),this.oldShadowOptions=
v);if(!v)this.destroyShadows();else if(!this.shadows){var F=v.opacity/v.width;var g=this.parentInverted?"translate("+v.offsetY+", "+v.offsetX+")":"translate("+v.offsetX+", "+v.offsetY+")";for(r=1;r<=v.width;r++){var k=c.cloneNode(!1);var f=2*v.width+1-2*r;e(k,{stroke:a.color||"#000000","stroke-opacity":F*r,"stroke-width":f,transform:g,fill:"none"});k.setAttribute("class",(k.getAttribute("class")||"")+" highcharts-shadow");u&&(e(k,"height",Math.max(e(k,"height")-f,0)),k.cutHeight=f);d?d.element.appendChild(k):
c.parentNode&&c.parentNode.insertBefore(k,c);h.push(k)}this.shadows=h}return this};F.prototype.show=function(a){return this.attr({visibility:a?"inherit":"visible"})};F.prototype.strokeSetter=function(a,d,u){this[d]=a;this.stroke&&this["stroke-width"]?(F.prototype.fillSetter.call(this,this.stroke,"stroke",u),u.setAttribute("stroke-width",this["stroke-width"]),this.hasStroke=!0):"stroke-width"===d&&0===a&&this.hasStroke?(u.removeAttribute("stroke"),this.hasStroke=!1):this.renderer.styledMode&&this["stroke-width"]&&
(u.setAttribute("stroke-width",this["stroke-width"]),this.hasStroke=!0)};F.prototype.strokeWidth=function(){if(!this.renderer.styledMode)return this["stroke-width"]||0;var a=this.getStyle("stroke-width"),d=0;if(a.indexOf("px")===a.length-2)d=J(a);else if(""!==a){var u=q.createElementNS(k,"rect");e(u,{width:a,"stroke-width":0});this.element.parentNode.appendChild(u);d=u.getBBox().width;u.parentNode.removeChild(u)}return d};F.prototype.symbolAttr=function(a){var d=this;"x y r start end width height innerR anchorX anchorY clockwise".split(" ").forEach(function(u){d[u]=
h(a[u],d[u])});d.attr({d:d.renderer.symbols[d.symbolName](d.x,d.y,d.width,d.height,d)})};F.prototype.textSetter=function(a){a!==this.textStr&&(delete this.textPxLength,this.textStr=a,this.added&&this.renderer.buildText(this))};F.prototype.titleSetter=function(a){var d=this.element,u=d.getElementsByTagName("title")[0]||q.createElementNS(this.SVG_NS,"title");d.insertBefore?d.insertBefore(u,d.firstChild):d.appendChild(u);u.textContent=String(h(a,"")).replace(/<[^>]*>/g,"").replace(/</g,"<").replace(/>/g,
">")};F.prototype.toFront=function(){var a=this.element;a.parentNode.appendChild(a);return this};F.prototype.translate=function(a,d){return this.attr({translateX:a,translateY:d})};F.prototype.updateShadows=function(a,d,u){var h=this.shadows;if(h)for(var c=h.length;c--;)u.call(h[c],"height"===a?Math.max(d-(h[c].cutHeight||0),0):"d"===a?this.d:d,a,h[c])};F.prototype.updateTransform=function(){var a=this.scaleX,d=this.scaleY,u=this.inverted,c=this.rotation,m=this.matrix,e=this.element,r=this.translateX||
0,p=this.translateY||0;u&&(r+=this.width,p+=this.height);r=["translate("+r+","+p+")"];L(m)&&r.push("matrix("+m.join(",")+")");u?r.push("rotate(90) scale(-1,1)"):c&&r.push("rotate("+c+" "+h(this.rotationOriginX,e.getAttribute("x"),0)+" "+h(this.rotationOriginY,e.getAttribute("y")||0)+")");(L(a)||L(d))&&r.push("scale("+h(a,1)+" "+h(d,1)+")");r.length&&e.setAttribute("transform",r.join(" "))};F.prototype.visibilitySetter=function(a,d,u){"inherit"===a?u.removeAttribute(d):this[d]!==a&&u.setAttribute(d,
a);this[d]=a};F.prototype.xGetter=function(a){"circle"===this.element.nodeName&&("x"===a?a="cx":"y"===a&&(a="cy"));return this._defaultGetter(a)};F.prototype.zIndexSetter=function(a,d){var u=this.renderer,h=this.parentGroup,c=(h||u).element||u.box,m=this.element;u=c===u.box;var e=!1;var r=this.added;var p;L(a)?(m.setAttribute("data-z-index",a),a=+a,this[d]===a&&(r=!1)):L(this[d])&&m.removeAttribute("data-z-index");this[d]=a;if(r){(a=this.zIndex)&&h&&(h.handleZ=!0);d=c.childNodes;for(p=d.length-1;0<=
p&&!e;p--){h=d[p];r=h.getAttribute("data-z-index");var w=!L(r);if(h!==m)if(0>a&&w&&!u&&!p)c.insertBefore(m,d[p]),e=!0;else if(J(r)<=a||w&&(!L(a)||0<=a))c.insertBefore(m,d[p+1]||null),e=!0}e||(c.insertBefore(m,d[u?3:0]||null),e=!0)}return e};return F}();b.prototype["stroke-widthSetter"]=b.prototype.strokeSetter;b.prototype.yGetter=b.prototype.xGetter;b.prototype.matrixSetter=b.prototype.rotationOriginXSetter=b.prototype.rotationOriginYSetter=b.prototype.rotationSetter=b.prototype.scaleXSetter=b.prototype.scaleYSetter=
b.prototype.translateXSetter=b.prototype.translateYSetter=b.prototype.verticalAlignSetter=function(a,d){this[d]=a;this.doTransform=!0};"";return b});M(b,"Core/Renderer/RendererRegistry.js",[b["Core/Globals.js"]],function(b){var n;(function(n){n.rendererTypes={};var B;n.getRendererType=function(b){void 0===b&&(b=B);return n.rendererTypes[b]||n.rendererTypes[B]};n.registerRendererType=function(y,D,H){n.rendererTypes[y]=D;if(!B||H)B=y,b.Renderer=D}})(n||(n={}));return n});M(b,"Core/Renderer/SVG/SVGLabel.js",
[b["Core/Renderer/SVG/SVGElement.js"],b["Core/Utilities.js"]],function(b,n){var B=this&&this.__extends||function(){var q=function(l,f){q=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(k,f){k.__proto__=f}||function(k,f){for(var g in f)f.hasOwnProperty(g)&&(k[g]=f[g])};return q(l,f)};return function(l,f){function k(){this.constructor=l}q(l,f);l.prototype=null===f?Object.create(f):(k.prototype=f.prototype,new k)}}(),G=n.defined,y=n.extend,D=n.isNumber,H=n.merge,x=n.pick,t=n.removeEvent;
return function(q){function l(f,k,z,g,e,c,C,L,N,p){var m=q.call(this)||this;m.paddingLeftSetter=m.paddingSetter;m.paddingRightSetter=m.paddingSetter;m.init(f,"g");m.textStr=k;m.x=z;m.y=g;m.anchorX=c;m.anchorY=C;m.baseline=N;m.className=p;m.addClass("button"===p?"highcharts-no-tooltip":"highcharts-label");p&&m.addClass("highcharts-"+p);m.text=f.text(void 0,0,0,L).attr({zIndex:1});var v;"string"===typeof e&&((v=