UNPKG

highcharts

Version:
104 lines (102 loc) 405 kB
/* Highstock JS v10.0.0 (2022-03-07) (c) 2009-2021 Torstein Honsi License: www.highcharts.com/license */ (function(U,O){"object"===typeof module&&module.exports?(O["default"]=O,module.exports=U.document?O(U):O):"function"===typeof define&&define.amd?define("highcharts/highstock",function(){return O(U)}):(U.Highcharts&&U.Highcharts.error(16,!0),U.Highcharts=O(U))})("undefined"!==typeof window?window:this,function(U){function O(w,a,B,G){w.hasOwnProperty(a)||(w[a]=G.apply(null,B),"function"===typeof CustomEvent&&U.dispatchEvent(new CustomEvent("HighchartsModuleLoaded",{detail:{path:a,module:w[a]}})))}var a= {};O(a,"Core/Globals.js",[],function(){var a;(function(a){a.SVG_NS="http://www.w3.org/2000/svg";a.product="Highcharts";a.version="10.0.0";a.win="undefined"!==typeof U?U:{};a.doc=a.win.document;a.svg=a.doc&&a.doc.createElementNS&&!!a.doc.createElementNS(a.SVG_NS,"svg").createSVGRect;a.userAgent=a.win.navigator&&a.win.navigator.userAgent||"";a.isChrome=-1!==a.userAgent.indexOf("Chrome");a.isFirefox=-1!==a.userAgent.indexOf("Firefox");a.isMS=/(edge|msie|trident)/i.test(a.userAgent)&&!a.win.opera;a.isSafari= !a.isChrome&&-1!==a.userAgent.indexOf("Safari");a.isTouchDevice=/(Mobile|Android|Windows Phone)/.test(a.userAgent);a.isWebKit=-1!==a.userAgent.indexOf("AppleWebKit");a.deg2rad=2*Math.PI/360;a.hasBidiBug=a.isFirefox&&4>parseInt(a.userAgent.split("Firefox/")[1],10);a.hasTouch=!!a.win.TouchEvent;a.marginNames=["plotTop","marginRight","marginBottom","plotLeft"];a.noop=function(){};a.supportsPassiveEvents=function(){var w=!1;if(!a.isMS){var r=Object.defineProperty({},"passive",{get:function(){w=!0}}); a.win.addEventListener&&a.win.removeEventListener&&(a.win.addEventListener("testPassive",a.noop,r),a.win.removeEventListener("testPassive",a.noop,r))}return w}();a.charts=[];a.dateFormats={};a.seriesTypes={};a.symbolSizes={};a.chartCount=0})(a||(a={}));"";return a});O(a,"Core/Utilities.js",[a["Core/Globals.js"]],function(a){function w(d,g,c,k){var h=g?"Highcharts error":"Highcharts warning";32===d&&(d=h+": Deprecated member");var t=m(d),E=t?h+" #"+d+": www.highcharts.com/errors/"+d+"/":d.toString(); if("undefined"!==typeof k){var M="";t&&(E+="?");A(k,function(c,d){M+="\n - "+d+": "+c;t&&(E+=encodeURI(d)+"="+encodeURI(c))});E+=M}K(a,"displayError",{chart:c,code:d,message:E,params:k},function(){if(g)throw Error(E);u.console&&-1===w.messages.indexOf(E)&&console.warn(E)});w.messages.push(E)}function B(d,g){var c={};A(d,function(k,h){if(J(d[h],!0)&&!d.nodeType&&g[h])k=B(d[h],g[h]),Object.keys(k).length&&(c[h]=k);else if(J(d[h])||d[h]!==g[h]||h in d&&!(h in g))c[h]=d[h]});return c}function G(d,g){return parseInt(d, g||10)}function z(d){return"string"===typeof d}function H(d){d=Object.prototype.toString.call(d);return"[object Array]"===d||"[object Array Iterator]"===d}function J(d,g){return!!d&&"object"===typeof d&&(!g||!H(d))}function D(d){return J(d)&&"number"===typeof d.nodeType}function p(d){var g=d&&d.constructor;return!(!J(d,!0)||D(d)||!g||!g.name||"Object"===g.name)}function m(d){return"number"===typeof d&&!isNaN(d)&&Infinity>d&&-Infinity<d}function f(d){return"undefined"!==typeof d&&null!==d}function e(d, g,c){var h=z(g)&&!f(c),k,t=function(c,g){f(c)?d.setAttribute(g,c):h?(k=d.getAttribute(g))||"class"!==g||(k=d.getAttribute(g+"Name")):d.removeAttribute(g)};z(g)?t(c,g):A(g,t);return k}function b(d,g){var c;d||(d={});for(c in g)d[c]=g[c];return d}function n(){for(var d=arguments,g=d.length,c=0;c<g;c++){var h=d[c];if("undefined"!==typeof h&&null!==h)return h}}function l(d,g){a.isMS&&!a.svg&&g&&f(g.opacity)&&(g.filter="alpha(opacity="+100*g.opacity+")");b(d.style,g)}function C(d,g){return 1E14<d?d:parseFloat(d.toPrecision(g|| 14))}function I(d,g,c){var h=a.getStyle||I;if("width"===g)return g=Math.min(d.offsetWidth,d.scrollWidth),c=d.getBoundingClientRect&&d.getBoundingClientRect().width,c<g&&c>=g-1&&(g=Math.floor(c)),Math.max(0,g-(h(d,"padding-left",!0)||0)-(h(d,"padding-right",!0)||0));if("height"===g)return Math.max(0,Math.min(d.offsetHeight,d.scrollHeight)-(h(d,"padding-top",!0)||0)-(h(d,"padding-bottom",!0)||0));u.getComputedStyle||w(27,!0);if(d=u.getComputedStyle(d,void 0)){var k=d.getPropertyValue(g);n(c,"opacity"!== g)&&(k=G(k))}return k}function A(d,g,c){for(var h in d)Object.hasOwnProperty.call(d,h)&&g.call(c||d[h],d[h],h,d)}function L(d,g,c){function h(c,g){var N=d.removeEventListener||a.removeEventListenerPolyfill;N&&N.call(d,c,g,!1)}function k(c){var k;if(d.nodeName){if(g){var N={};N[g]=!0}else N=c;A(N,function(d,g){if(c[g])for(k=c[g].length;k--;)h(g,c[g][k].fn)})}}var t="function"===typeof d&&d.prototype||d;if(Object.hasOwnProperty.call(t,"hcEvents")){var v=t.hcEvents;g?(t=v[g]||[],c?(v[g]=t.filter(function(d){return c!== d.fn}),h(g,c)):(k(v),v[g]=[])):(k(v),delete t.hcEvents)}}function K(d,g,c,h){c=c||{};if(y.createEvent&&(d.dispatchEvent||d.fireEvent&&d!==a)){var k=y.createEvent("Events");k.initEvent(g,!0,!0);c=b(k,c);d.dispatchEvent?d.dispatchEvent(c):d.fireEvent(g,c)}else if(d.hcEvents){c.target||b(c,{preventDefault:function(){c.defaultPrevented=!0},target:d,type:g});k=[];for(var t=d,E=!1;t.hcEvents;)Object.hasOwnProperty.call(t,"hcEvents")&&t.hcEvents[g]&&(k.length&&(E=!0),k.unshift.apply(k,t.hcEvents[g])),t= Object.getPrototypeOf(t);E&&k.sort(function(c,d){return c.order-d.order});k.forEach(function(g){!1===g.fn.call(d,c)&&c.preventDefault()})}h&&!c.defaultPrevented&&h.call(d,c)}var x=a.charts,y=a.doc,u=a.win;(w||(w={})).messages=[];Math.easeInOutSine=function(d){return-.5*(Math.cos(Math.PI*d)-1)};var h=Array.prototype.find?function(d,g){return d.find(g)}:function(d,g){var c,h=d.length;for(c=0;c<h;c++)if(g(d[c],c))return d[c]};A({map:"map",each:"forEach",grep:"filter",reduce:"reduce",some:"some"},function(d, g){a[g]=function(c){var h;w(32,!1,void 0,(h={},h["Highcharts."+g]="use Array."+d,h));return Array.prototype[d].apply(c,[].slice.call(arguments,1))}});var q,k=function(){var d=Math.random().toString(36).substring(2,9)+"-",g=0;return function(){return"highcharts-"+(q?"":d)+g++}}();u.jQuery&&(u.jQuery.fn.highcharts=function(){var d=[].slice.call(arguments);if(this[0])return d[0]?(new (a[z(d[0])?d.shift():"Chart"])(this[0],d[0],d[1]),this):x[e(this[0],"data-highcharts-chart")]});h={addEvent:function(d, g,c,h){void 0===h&&(h={});var k="function"===typeof d&&d.prototype||d;Object.hasOwnProperty.call(k,"hcEvents")||(k.hcEvents={});k=k.hcEvents;a.Point&&d instanceof a.Point&&d.series&&d.series.chart&&(d.series.chart.runTrackerClick=!0);var t=d.addEventListener||a.addEventListenerPolyfill;t&&t.call(d,g,c,a.supportsPassiveEvents?{passive:void 0===h.passive?-1!==g.indexOf("touch"):h.passive,capture:!1}:!1);k[g]||(k[g]=[]);k[g].push({fn:c,order:"number"===typeof h.order?h.order:Infinity});k[g].sort(function(c, d){return c.order-d.order});return function(){L(d,g,c)}},arrayMax:function(d){for(var g=d.length,c=d[0];g--;)d[g]>c&&(c=d[g]);return c},arrayMin:function(d){for(var g=d.length,c=d[0];g--;)d[g]<c&&(c=d[g]);return c},attr:e,clamp:function(d,g,c){return d>g?d<c?d:c:g},cleanRecursively:B,clearTimeout:function(d){f(d)&&clearTimeout(d)},correctFloat:C,createElement:function(d,g,c,h,k){d=y.createElement(d);g&&b(d,g);k&&l(d,{padding:"0",border:"none",margin:"0"});c&&l(d,c);h&&h.appendChild(d);return d},css:l, defined:f,destroyObjectProperties:function(d,g){A(d,function(c,h){c&&c!==g&&c.destroy&&c.destroy();delete d[h]})},discardElement:function(d){d&&d.parentElement&&d.parentElement.removeChild(d)},erase:function(d,g){for(var c=d.length;c--;)if(d[c]===g){d.splice(c,1);break}},error:w,extend:b,extendClass:function(d,g){var c=function(){};c.prototype=new d;b(c.prototype,g);return c},find:h,fireEvent:K,getMagnitude:function(d){return Math.pow(10,Math.floor(Math.log(d)/Math.LN10))},getNestedProperty:function(d, g){for(d=d.split(".");d.length&&f(g);){var c=d.shift();if("undefined"===typeof c||"__proto__"===c)return;g=g[c];if(!f(g)||"function"===typeof g||"number"===typeof g.nodeType||g===u)return}return g},getStyle:I,inArray:function(d,g,c){w(32,!1,void 0,{"Highcharts.inArray":"use Array.indexOf"});return g.indexOf(d,c)},isArray:H,isClass:p,isDOMElement:D,isFunction:function(d){return"function"===typeof d},isNumber:m,isObject:J,isString:z,keys:function(d){w(32,!1,void 0,{"Highcharts.keys":"use Object.keys"}); return Object.keys(d)},merge:function(){var d,g=arguments,c={},h=function(c,d){"object"!==typeof c&&(c={});A(d,function(g,k){"__proto__"!==k&&"constructor"!==k&&(!J(g,!0)||p(g)||D(g)?c[k]=d[k]:c[k]=h(c[k]||{},g))});return c};!0===g[0]&&(c=g[1],g=Array.prototype.slice.call(g,2));var k=g.length;for(d=0;d<k;d++)c=h(c,g[d]);return c},normalizeTickInterval:function(d,g,c,h,k){var t=d;c=n(c,1);var v=d/c;g||(g=k?[1,1.2,1.5,2,2.5,3,4,5,6,8,10]:[1,2,2.5,5,10],!1===h&&(1===c?g=g.filter(function(c){return 0=== c%1}):.1>=c&&(g=[1/c])));for(h=0;h<g.length&&!(t=g[h],k&&t*c>=d||!k&&v<=(g[h]+(g[h+1]||g[h]))/2);h++);return t=C(t*c,-Math.round(Math.log(.001)/Math.LN10))},objectEach:A,offset:function(d){var g=y.documentElement;d=d.parentElement||d.parentNode?d.getBoundingClientRect():{top:0,left:0,width:0,height:0};return{top:d.top+(u.pageYOffset||g.scrollTop)-(g.clientTop||0),left:d.left+(u.pageXOffset||g.scrollLeft)-(g.clientLeft||0),width:d.width,height:d.height}},pad:function(d,g,c){return Array((g||2)+1-String(d).replace("-", "").length).join(c||"0")+d},pick:n,pInt:G,relativeLength:function(d,g,c){return/%$/.test(d)?g*parseFloat(d)/100+(c||0):parseFloat(d)},removeEvent:L,splat:function(d){return H(d)?d:[d]},stableSort:function(d,g){var c=d.length,h,k;for(k=0;k<c;k++)d[k].safeI=k;d.sort(function(c,d){h=g(c,d);return 0===h?c.safeI-d.safeI:h});for(k=0;k<c;k++)delete d[k].safeI},syncTimeout:function(d,g,c){if(0<g)return setTimeout(d,g,c);d.call(0,c);return-1},timeUnits:{millisecond:1,second:1E3,minute:6E4,hour:36E5,day:864E5, week:6048E5,month:24192E5,year:314496E5},uniqueKey:k,useSerialIds:function(d){return q=n(d,q)},wrap:function(d,g,c){var h=d[g];d[g]=function(){var d=Array.prototype.slice.call(arguments),g=arguments,k=this;k.proceed=function(){h.apply(k,arguments.length?arguments:g)};d.unshift(h);d=c.apply(this,d);k.proceed=null;return d}}};"";return h});O(a,"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"}});O(a,"Core/Color/Color.js",[a["Core/Globals.js"],a["Core/Utilities.js"]],function(a,r){var w=r.isNumber,G=r.merge,z=r.pInt;r=function(){function r(w){this.rgba=[NaN,NaN,NaN,NaN];this.input=w;var D=a.Color;if(D&&D!==r)return new D(w);if(!(this instanceof r))return new r(w); this.init(w)}r.parse=function(a){return a?new r(a):r.None};r.prototype.init=function(a){var D;if("object"===typeof a&&"undefined"!==typeof a.stops)this.stops=a.stops.map(function(e){return new r(e[1])});else if("string"===typeof a){this.input=a=r.names[a.toLowerCase()]||a;if("#"===a.charAt(0)){var p=a.length;var m=parseInt(a.substr(1),16);7===p?D=[(m&16711680)>>16,(m&65280)>>8,m&255,1]:4===p&&(D=[(m&3840)>>4|(m&3840)>>8,(m&240)>>4|m&240,(m&15)<<4|m&15,1])}if(!D)for(m=r.parsers.length;m--&&!D;){var f= r.parsers[m];(p=f.regex.exec(a))&&(D=f.parse(p))}}D&&(this.rgba=D)};r.prototype.get=function(a){var D=this.input,p=this.rgba;if("object"===typeof D&&"undefined"!==typeof this.stops){var m=G(D);m.stops=[].slice.call(m.stops);this.stops.forEach(function(f,e){m.stops[e]=[m.stops[e][0],f.get(a)]});return m}return p&&w(p[0])?"rgb"===a||!a&&1===p[3]?"rgb("+p[0]+","+p[1]+","+p[2]+")":"a"===a?""+p[3]:"rgba("+p.join(",")+")":D};r.prototype.brighten=function(a){var D=this.rgba;if(this.stops)this.stops.forEach(function(m){m.brighten(a)}); else if(w(a)&&0!==a)for(var p=0;3>p;p++)D[p]+=z(255*a),0>D[p]&&(D[p]=0),255<D[p]&&(D[p]=255);return this};r.prototype.setOpacity=function(a){this.rgba[3]=a;return this};r.prototype.tweenTo=function(a,D){var p=this.rgba,m=a.rgba;if(!w(p[0])||!w(m[0]))return a.input||"none";a=1!==m[3]||1!==p[3];return(a?"rgba(":"rgb(")+Math.round(m[0]+(p[0]-m[0])*(1-D))+","+Math.round(m[1]+(p[1]-m[1])*(1-D))+","+Math.round(m[2]+(p[2]-m[2])*(1-D))+(a?","+(m[3]+(p[3]-m[3])*(1-D)):"")+")"};r.names={white:"#ffffff",black:"#000000"}; r.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(a){return[z(a[1]),z(a[2]),z(a[3]),parseFloat(a[4],10)]}},{regex:/rgb\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*\)/,parse:function(a){return[z(a[1]),z(a[2]),z(a[3]),1]}}];r.None=new r("");return r}();"";return r});O(a,"Core/Color/Palettes.js",[],function(){return{colors:"#7cb5ec #434348 #90ed7d #f7a35c #8085e9 #f15c80 #e4d354 #2b908f #f45b5b #91e8e1".split(" ")}}); O(a,"Core/Time.js",[a["Core/Globals.js"],a["Core/Utilities.js"]],function(a,r){var w=a.win,G=r.defined,z=r.error,H=r.extend,J=r.isObject,D=r.merge,p=r.objectEach,m=r.pad,f=r.pick,e=r.splat,b=r.timeUnits,n=a.isSafari&&w.Intl&&w.Intl.DateTimeFormat.prototype.formatRange,l=a.isSafari&&w.Intl&&!w.Intl.DateTimeFormat.prototype.formatRange;r=function(){function C(b){this.options={};this.variableTimezone=this.useUTC=!1;this.Date=w.Date;this.getTimezoneOffset=this.timezoneOffsetFunction();this.update(b)} C.prototype.get=function(b,A){if(this.variableTimezone||this.timezoneOffset){var I=A.getTime(),n=I-this.getTimezoneOffset(A);A.setTime(n);b=A["getUTC"+b]();A.setTime(I);return b}return this.useUTC?A["getUTC"+b]():A["get"+b]()};C.prototype.set=function(b,A,e){if(this.variableTimezone||this.timezoneOffset){if("Milliseconds"===b||"Seconds"===b||"Minutes"===b&&0===this.getTimezoneOffset(A)%36E5)return A["setUTC"+b](e);var I=this.getTimezoneOffset(A);I=A.getTime()-I;A.setTime(I);A["setUTC"+b](e);b=this.getTimezoneOffset(A); I=A.getTime()+b;return A.setTime(I)}return this.useUTC||n&&"FullYear"===b?A["setUTC"+b](e):A["set"+b](e)};C.prototype.update=function(b){var I=f(b&&b.useUTC,!0);this.options=b=D(!0,this.options||{},b);this.Date=b.Date||w.Date||Date;this.timezoneOffset=(this.useUTC=I)&&b.timezoneOffset;this.getTimezoneOffset=this.timezoneOffsetFunction();this.variableTimezone=I&&!(!b.getTimezoneOffset&&!b.timezone)};C.prototype.makeTime=function(b,n,e,C,x,y){if(this.useUTC){var u=this.Date.UTC.apply(0,arguments);var h= this.getTimezoneOffset(u);u+=h;var q=this.getTimezoneOffset(u);h!==q?u+=q-h:h-36E5!==this.getTimezoneOffset(u-36E5)||l||(u-=36E5)}else u=(new this.Date(b,n,f(e,1),f(C,0),f(x,0),f(y,0))).getTime();return u};C.prototype.timezoneOffsetFunction=function(){var b=this,n=this.options,e=n.getTimezoneOffset,l=n.moment||w.moment;if(!this.useUTC)return function(b){return 6E4*(new Date(b.toString())).getTimezoneOffset()};if(n.timezone){if(l)return function(b){return 6E4*-l.tz(b,n.timezone).utcOffset()};z(25)}return this.useUTC&& e?function(b){return 6E4*e(b.valueOf())}:function(){return 6E4*(b.timezoneOffset||0)}};C.prototype.dateFormat=function(b,n,e){if(!G(n)||isNaN(n))return a.defaultOptions.lang&&a.defaultOptions.lang.invalidDate||"";b=f(b,"%Y-%m-%d %H:%M:%S");var I=this,x=new this.Date(n),y=this.get("Hours",x),u=this.get("Day",x),h=this.get("Date",x),q=this.get("Month",x),k=this.get("FullYear",x),d=a.defaultOptions.lang,g=d&&d.weekdays,c=d&&d.shortWeekdays;x=H({a:c?c[u]:g[u].substr(0,3),A:g[u],d:m(h),e:m(h,2," "),w:u, b:d.shortMonths[q],B:d.months[q],m:m(q+1),o:q+1,y:k.toString().substr(2,2),Y:k,H:m(y),k:y,I:m(y%12||12),l:y%12||12,M:m(this.get("Minutes",x)),p:12>y?"AM":"PM",P:12>y?"am":"pm",S:m(x.getSeconds()),L:m(Math.floor(n%1E3),3)},a.dateFormats);p(x,function(c,d){for(;-1!==b.indexOf("%"+d);)b=b.replace("%"+d,"function"===typeof c?c.call(I,n):c)});return e?b.substr(0,1).toUpperCase()+b.substr(1):b};C.prototype.resolveDTLFormat=function(b){return J(b,!0)?b:(b=e(b),{main:b[0],from:b[1],to:b[2]})};C.prototype.getTimeTicks= function(n,e,l,C){var x=this,y=[],u={},h=new x.Date(e),q=n.unitRange,k=n.count||1,d;C=f(C,1);if(G(e)){x.set("Milliseconds",h,q>=b.second?0:k*Math.floor(x.get("Milliseconds",h)/k));q>=b.second&&x.set("Seconds",h,q>=b.minute?0:k*Math.floor(x.get("Seconds",h)/k));q>=b.minute&&x.set("Minutes",h,q>=b.hour?0:k*Math.floor(x.get("Minutes",h)/k));q>=b.hour&&x.set("Hours",h,q>=b.day?0:k*Math.floor(x.get("Hours",h)/k));q>=b.day&&x.set("Date",h,q>=b.month?1:Math.max(1,k*Math.floor(x.get("Date",h)/k)));if(q>= b.month){x.set("Month",h,q>=b.year?0:k*Math.floor(x.get("Month",h)/k));var g=x.get("FullYear",h)}q>=b.year&&x.set("FullYear",h,g-g%k);q===b.week&&(g=x.get("Day",h),x.set("Date",h,x.get("Date",h)-g+C+(g<C?-7:0)));g=x.get("FullYear",h);C=x.get("Month",h);var c=x.get("Date",h),E=x.get("Hours",h);e=h.getTime();!x.variableTimezone&&x.useUTC||!G(l)||(d=l-e>4*b.month||x.getTimezoneOffset(e)!==x.getTimezoneOffset(l));e=h.getTime();for(h=1;e<l;)y.push(e),e=q===b.year?x.makeTime(g+h*k,0):q===b.month?x.makeTime(g, C+h*k):!d||q!==b.day&&q!==b.week?d&&q===b.hour&&1<k?x.makeTime(g,C,c,E+h*k):e+q*k:x.makeTime(g,C,c+h*k*(q===b.day?1:7)),h++;y.push(e);q<=b.hour&&1E4>y.length&&y.forEach(function(c){0===c%18E5&&"000000000"===x.dateFormat("%H%M%S%L",c)&&(u[c]="day")})}y.info=H(n,{higherRanks:u,totalRange:q*k});return y};C.prototype.getDateFormat=function(e,n,l,C){var x=this.dateFormat("%m-%d %H:%M:%S.%L",n),y={millisecond:15,second:12,minute:9,hour:6,day:3},u="millisecond";for(h in b){if(e===b.week&&+this.dateFormat("%w", n)===l&&"00:00:00.000"===x.substr(6)){var h="week";break}if(b[h]>e){h=u;break}if(y[h]&&x.substr(y[h])!=="01-01 00:00:00.000".substr(y[h]))break;"week"!==h&&(u=h)}if(h)var q=this.resolveDTLFormat(C[h]).main;return q};return C}();"";return r});O(a,"Core/DefaultOptions.js",[a["Core/Chart/ChartDefaults.js"],a["Core/Color/Color.js"],a["Core/Globals.js"],a["Core/Color/Palettes.js"],a["Core/Time.js"],a["Core/Utilities.js"]],function(a,r,B,G,z,H){r=r.parse;var w=H.merge,D={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:a,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:B.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:B.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:r("#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"}};D.chart.styledMode=!1;"";var p=new z(w(D.global,D.time));a={defaultOptions:D,defaultTime:p,getOptions:function(){return D}, setOptions:function(m){w(!0,D,m);if(m.time||m.global)B.time?B.time.update(w(D.global,D.time,m.global,m.time)):B.time=p;return D}};"";return a});O(a,"Core/Animation/Fx.js",[a["Core/Color/Color.js"],a["Core/Globals.js"],a["Core/Utilities.js"]],function(a,r,B){var w=a.parse,z=r.win,H=B.isNumber,J=B.objectEach;return function(){function a(a,m,f){this.pos=NaN;this.options=m;this.elem=a;this.prop=f}a.prototype.dSetter=function(){var a=this.paths,m=a&&a[0];a=a&&a[1];var f=this.now||0,e=[];if(1!==f&&m&&a)if(m.length=== a.length&&1>f)for(var b=0;b<a.length;b++){for(var n=m[b],l=a[b],C=[],I=0;I<l.length;I++){var A=n[I],L=l[I];H(A)&&H(L)&&("A"!==l[0]||4!==I&&5!==I)?C[I]=A+f*(L-A):C[I]=L}e.push(C)}else e=a;else e=this.toD||[];this.elem.attr("d",e,void 0,!0)};a.prototype.update=function(){var a=this.elem,m=this.prop,f=this.now,e=this.options.step;if(this[m+"Setter"])this[m+"Setter"]();else a.attr?a.element&&a.attr(m,f,null,!0):a.style[m]=f+this.unit;e&&e.call(a,f,this)};a.prototype.run=function(p,m,f){var e=this,b=e.options, n=function(b){return n.stopped?!1:e.step(b)},l=z.requestAnimationFrame||function(b){setTimeout(b,13)},C=function(){for(var b=0;b<a.timers.length;b++)a.timers[b]()||a.timers.splice(b--,1);a.timers.length&&l(C)};p!==m||this.elem["forceAnimate:"+this.prop]?(this.startTime=+new Date,this.start=p,this.end=m,this.unit=f,this.now=this.start,this.pos=0,n.elem=this.elem,n.prop=this.prop,n()&&1===a.timers.push(n)&&l(C)):(delete b.curAnim[this.prop],b.complete&&0===Object.keys(b.curAnim).length&&b.complete.call(this.elem))}; a.prototype.step=function(a){var m=+new Date,f=this.options,e=this.elem,b=f.complete,n=f.duration,l=f.curAnim;if(e.attr&&!e.element)a=!1;else if(a||m>=n+this.startTime){this.now=this.end;this.pos=1;this.update();var C=l[this.prop]=!0;J(l,function(b){!0!==b&&(C=!1)});C&&b&&b.call(e);a=!1}else this.pos=f.easing((m-this.startTime)/n),this.now=this.start+(this.end-this.start)*this.pos,this.update(),a=!0;return a};a.prototype.initPath=function(a,m,f){function e(b,y){for(;b.length<K;){var u=b[0],h=y[K- b.length];h&&"M"===u[0]&&(b[0]="C"===h[0]?["C",u[1],u[2],u[1],u[2],u[1],u[2]]:["L",u[1],u[2]]);b.unshift(u);C&&(u=b.pop(),b.push(b[b.length-1],u))}}function b(b,y){for(;b.length<K;)if(y=b[Math.floor(b.length/I)-1].slice(),"C"===y[0]&&(y[1]=y[5],y[2]=y[6]),C){var u=b[Math.floor(b.length/I)].slice();b.splice(b.length/2,0,y,u)}else b.push(y)}var n=a.startX,l=a.endX;f=f.slice();var C=a.isArea,I=C?2:1;m=m&&m.slice();if(!m)return[f,f];if(n&&l&&l.length){for(a=0;a<n.length;a++)if(n[a]===l[0]){var A=a;break}else if(n[0]=== l[l.length-n.length+a]){A=a;var L=!0;break}else if(n[n.length-1]===l[l.length-n.length+a]){A=n.length-a;break}"undefined"===typeof A&&(m=[])}if(m.length&&H(A)){var K=f.length+A*I;L?(e(m,f),b(f,m)):(e(f,m),b(m,f))}return[m,f]};a.prototype.fillSetter=function(){a.prototype.strokeSetter.apply(this,arguments)};a.prototype.strokeSetter=function(){this.elem.attr(this.prop,w(this.start).tweenTo(w(this.end),this.pos),void 0,!0)};a.timers=[];return a}()});O(a,"Core/Animation/AnimationUtilities.js",[a["Core/Animation/Fx.js"], a["Core/Utilities.js"]],function(a,r){function w(b){return p(b)?m({duration:500,defer:0},b):{duration:b?500:0,defer:0}}function G(b,e){for(var n=a.timers.length;n--;)a.timers[n].elem!==b||e&&e!==a.timers[n].prop||(a.timers[n].stopped=!0)}var z=r.defined,H=r.getStyle,J=r.isArray,D=r.isNumber,p=r.isObject,m=r.merge,f=r.objectEach,e=r.pick;return{animate:function(b,e,l){var n,I="",A,L;if(!p(l)){var K=arguments;l={duration:K[2],easing:K[3],complete:K[4]}}D(l.duration)||(l.duration=400);l.easing="function"=== typeof l.easing?l.easing:Math[l.easing]||Math.easeInOutSine;l.curAnim=m(e);f(e,function(x,y){G(b,y);L=new a(b,l,y);A=void 0;"d"===y&&J(e.d)?(L.paths=L.initPath(b,b.pathArray,e.d),L.toD=e.d,n=0,A=1):b.attr?n=b.attr(y):(n=parseFloat(H(b,y))||0,"opacity"!==y&&(I="px"));A||(A=x);"string"===typeof A&&A.match("px")&&(A=A.replace(/px/g,""));L.run(n,A,I)})},animObject:w,getDeferredAnimation:function(b,e,l){var n=w(e),f=0,A=0;(l?[l]:b.series).forEach(function(b){b=w(b.options.animation);f=e&&z(e.defer)?n.defer: Math.max(f,b.duration+b.defer);A=Math.min(n.duration,b.duration)});b.renderer.forExport&&(f=0);return{defer:Math.max(0,f-A),duration:Math.min(f,A)}},setAnimation:function(b,n){n.renderer.globalAnimation=e(b,n.options.chart.animation,!0)},stop:G}});O(a,"Core/Renderer/HTML/AST.js",[a["Core/Globals.js"],a["Core/Utilities.js"]],function(a,r){var w=a.SVG_NS,G=r.attr,z=r.createElement,H=r.css,J=r.error,D=r.isFunction,p=r.isString,m=r.objectEach,f=r.splat,e=(r=a.win.trustedTypes)&&D(r.createPolicy)&&r.createPolicy("highcharts", {createHTML:function(b){return b}}),b=e?e.createHTML(""):"";try{var n=!!(new DOMParser).parseFromString(b,"text/html")}catch(l){n=!1}D=function(){function l(b){this.nodes="string"===typeof b?this.parseMarkup(b):b}l.filterUserAttributes=function(b){m(b,function(e,n){var f=!0;-1===l.allowedAttributes.indexOf(n)&&(f=!1);-1!==["background","dynsrc","href","lowsrc","src"].indexOf(n)&&(f=p(e)&&l.allowedReferences.some(function(b){return 0===e.indexOf(b)}));f||(J("Highcharts warning: Invalid attribute '"+ n+"' in config"),delete b[n])});return b};l.parseStyle=function(b){return b.split(";").reduce(function(b,e){e=e.split(":").map(function(b){return b.trim()});var n=e[0].replace(/-([a-z])/g,function(b){return b[1].toUpperCase()});e[1]&&(b[n]=e[1]);return b},{})};l.setElementHTML=function(b,e){b.innerHTML=l.emptyHTML;e&&(new l(e)).addToDOM(b)};l.prototype.addToDOM=function(b){function e(b,n){var C;f(b).forEach(function(b){var y=b.tagName,u=b.textContent?a.doc.createTextNode(b.textContent):void 0,h=l.bypassHTMLFiltering; if(y)if("#text"===y)var q=u;else if(-1!==l.allowedTags.indexOf(y)||h){y=a.doc.createElementNS("svg"===y?w:n.namespaceURI||w,y);var k=b.attributes||{};m(b,function(d,g){"tagName"!==g&&"attributes"!==g&&"children"!==g&&"style"!==g&&"textContent"!==g&&(k[g]=d)});G(y,h?k:l.filterUserAttributes(k));b.style&&H(y,b.style);u&&y.appendChild(u);e(b.children||[],y);q=y}else J("Highcharts warning: Invalid tagName "+y+" in config");q&&n.appendChild(q);C=q});return C}return e(this.nodes,b)};l.prototype.parseMarkup= function(b){var f=[];b=b.trim().replace(/ style="/g,' data-style="');if(n)b=(new DOMParser).parseFromString(e?e.createHTML(b):b,"text/html");else{var C=z("div");C.innerHTML=b;b={body:C}}var a=function(b,e){var y=b.nodeName.toLowerCase(),u={tagName:y};"#text"===y&&(u.textContent=b.textContent||"");if(y=b.attributes){var h={};[].forEach.call(y,function(k){"data-style"===k.name?u.style=l.parseStyle(k.value):h[k.name]=k.value});u.attributes=h}if(b.childNodes.length){var q=[];[].forEach.call(b.childNodes, function(h){a(h,q)});q.length&&(u.children=q)}e.push(u)};[].forEach.call(b.body.childNodes,function(b){return a(b,f)});return f};l.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(" "); l.allowedReferences="https:// http:// mailto: / ../ ./ #".split(" ");l.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(" ");l.emptyHTML=b;l.bypassHTMLFiltering=!1;return l}();"";return D}); O(a,"Core/FormatUtilities.js",[a["Core/DefaultOptions.js"],a["Core/Utilities.js"]],function(a,r){function w(a,f,e,b){a=+a||0;f=+f;var n=G.lang,l=(a.toString().split(".")[1]||"").split("e")[0].length,C=a.toString().split("e"),I=f;if(-1===f)f=Math.min(l,20);else if(!J(f))f=2;else if(f&&C[1]&&0>C[1]){var A=f+ +C[1];0<=A?(C[0]=(+C[0]).toExponential(A).split("e")[0],f=A):(C[0]=C[0].split(".")[0]||0,a=20>f?(C[0]*Math.pow(10,C[1])).toFixed(f):0,C[1]=0)}A=(Math.abs(C[1]?C[0]:a)+Math.pow(10,-Math.max(f,l)- 1)).toFixed(f);l=String(p(A));var m=3<l.length?l.length%3:0;e=D(e,n.decimalPoint);b=D(b,n.thousandsSep);a=(0>a?"-":"")+(m?l.substr(0,m)+b:"");a=0>+C[1]&&!I?"0":a+l.substr(m).replace(/(\d{3})(?=\d)/g,"$1"+b);f&&(a+=e+A.slice(-f));C[1]&&0!==+a&&(a+="e"+C[1]);return a}var G=a.defaultOptions,z=a.defaultTime,H=r.getNestedProperty,J=r.isNumber,D=r.pick,p=r.pInt;return{dateFormat:function(a,f,e){return z.dateFormat(a,f,e)},format:function(a,f,e){var b="{",n=!1,l=/f$/,C=/\.([0-9])/,I=G.lang,A=e&&e.time|| z;e=e&&e.numberFormatter||w;for(var m=[];a;){var K=a.indexOf(b);if(-1===K)break;var x=a.slice(0,K);if(n){x=x.split(":");b=H(x.shift()||"",f);if(x.length&&"number"===typeof b)if(x=x.join(":"),l.test(x)){var y=parseInt((x.match(C)||["","-1"])[1],10);null!==b&&(b=e(b,y,I.decimalPoint,-1<x.indexOf(",")?I.thousandsSep:""))}else b=A.dateFormat(x,b);m.push(b)}else m.push(x);a=a.slice(K+1);b=(n=!n)?"}":"{"}m.push(a);return m.join("")},numberFormat:w}});O(a,"Core/Renderer/RendererUtilities.js",[a["Core/Utilities.js"]], function(a){var w=a.clamp,B=a.pick,G=a.stableSort,z;(function(a){function r(a,p,m){var f=a,e=f.reducedLen||p,b=function(b,e){return(e.rank||0)-(b.rank||0)},n=function(b,e){return b.target-e.target},l,C=!0,I=[],A=0;for(l=a.length;l--;)A+=a[l].size;if(A>e){G(a,b);for(A=l=0;A<=e;)A+=a[l].size,l++;I=a.splice(l-1,a.length)}G(a,n);for(a=a.map(function(b){return{size:b.size,targets:[b.target],align:B(b.align,.5)}});C;){for(l=a.length;l--;)e=a[l],b=(Math.min.apply(0,e.targets)+Math.max.apply(0,e.targets))/ 2,e.pos=w(b-e.size*e.align,0,p-e.size);l=a.length;for(C=!1;l--;)0<l&&a[l-1].pos+a[l-1].size>a[l].pos&&(a[l-1].size+=a[l].size,a[l-1].targets=a[l-1].targets.concat(a[l].targets),a[l-1].align=.5,a[l-1].pos+a[l-1].size>p&&(a[l-1].pos=p-a[l-1].size),a.splice(l,1),C=!0)}f.push.apply(f,I);l=0;a.some(function(b){var e=0;return(b.targets||[]).some(function(){f[l].pos=b.pos+e;if("undefined"!==typeof m&&Math.abs(f[l].pos-f[l].target)>m)return f.slice(0,l+1).forEach(function(b){return delete b.pos}),f.reducedLen= (f.reducedLen||p)-.1*p,f.reducedLen>.1*p&&r(f,p,m),!0;e+=f[l].size;l++;return!1})});G(f,n);return f}a.distribute=r})(z||(z={}));return z});O(a,"Core/Renderer/SVG/SVGElement.js",[a["Core/Animation/AnimationUtilities.js"],a["Core/Renderer/HTML/AST.js"],a["Core/Color/Color.js"],a["Core/Globals.js"],a["Core/Utilities.js"]],function(a,r,B,G,z){var w=a.animate,J=a.animObject,D=a.stop,p=G.deg2rad,m=G.doc,f=G.noop,e=G.svg,b=G.SVG_NS,n=G.win,l=z.addEvent,C=z.attr,I=z.createElement,A=z.css,L=z.defined,K=z.erase, x=z.extend,y=z.fireEvent,u=z.isArray,h=z.isFunction,q=z.isNumber,k=z.isString,d=z.merge,g=z.objectEach,c=z.pick,E=z.pInt,F=z.syncTimeout,t=z.uniqueKey;a=function(){function v(){this.element=void 0;this.onEvents={};this.opacity=1;this.renderer=void 0;this.SVG_NS=b;this.symbolCustomAttribs="x y width height r start end innerR anchorX anchorY rounded".split(" ")}v.prototype._defaultGetter=function(d){d=c(this[d+"Value"],this[d],this.element?this.element.getAttribute(d):null,0);/^[\-0-9\.]+$/.test(d)&& (d=parseFloat(d));return d};v.prototype._defaultSetter=function(c,d,g){g.setAttribute(d,c)};v.prototype.add=function(c){var d=this.renderer,g=this.element;c&&(this.parentGroup=c);this.parentInverted=c&&c.inverted;"undefined"!==typeof this.textStr&&"text"===this.element.nodeName&&d.buildText(this);this.added=!0;if(!c||c.handleZ||this.zIndex)var h=this.zIndexSetter();h||(c?c.element:d.box).appendChild(g);if(this.onAdd)this.onAdd();return this};v.prototype.addClass=function(c,d){var g=d?"":this.attr("class")|| "";c=(c||"").split(/ /g).reduce(function(c,d){-1===g.indexOf(d)&&c.push(d);return c},g?[g]:[]).join(" ");c!==g&&this.attr("class",c);return this};v.prototype.afterSetters=function(){this.doTransform&&(this.updateTransform(),this.doTransform=!1)};v.prototype.align=function(d,g,h){var N={},b=this.renderer,t=b.alignedObjects,M,q,v;if(d){if(this.alignOptions=d,this.alignByTranslate=g,!h||k(h))this.alignTo=M=h||"renderer",K(t,this),t.push(this),h=void 0}else d=this.alignOptions,g=this.alignByTranslate, M=this.alignTo;h=c(h,b[M],"scrollablePlotBox"===M?b.plotBox:void 0,b);M=d.align;var E=d.verticalAlign;b=(h.x||0)+(d.x||0);t=(h.y||0)+(d.y||0);"right"===M?q=1:"center"===M&&(q=2);q&&(b+=(h.width-(d.width||0))/q);N[g?"translateX":"x"]=Math.round(b);"bottom"===E?v=1:"middle"===E&&(v=2);v&&(t+=(h.height-(d.height||0))/v);N[g?"translateY":"y"]=Math.round(t);this[this.placed?"animate":"attr"](N);this.placed=!0;this.alignAttr=N;return this};v.prototype.alignSetter=function(c){var d={left:"start",center:"middle", right:"end"};d[c]&&(this.alignValue=c,this.element.setAttribute("text-anchor",d[c]))};v.prototype.animate=function(d,h,k){var N=this,b=J(c(h,this.renderer.globalAnimation,!0));h=b.defer;c(m.hidden,m.msHidden,m.webkitHidden,!1)&&(b.duration=0);0!==b.duration?(k&&(b.complete=k),F(function(){N.element&&w(N,d,b)},h)):(this.attr(d,void 0,k||b.complete),g(d,function(c,d){b.step&&b.step.call(this,c,{prop:d,pos:1,elem:this})},this));return this};v.prototype.applyTextOutline=function(c){var d=this.element; -1!==c.indexOf("contrast")&&(c=c.replace(/contrast/g,this.renderer.getContrast(d.style.fill)));var g=c.split(" ");c=g[g.length-1];if((g=g[0])&&"none"!==g&&G.svg){this.fakeTS=!0;this.ySetter=this.xSetter;g=g.replace(/(^[\d\.]+)(.*?)$/g,function(c,d,g){return 2*Number(d)+g});this.removeTextOutline();var h=m.createElementNS(b,"tspan");C(h,{"class":"highcharts-text-outline",fill:c,stroke:c,"stroke-width":g,"stroke-linejoin":"round"});[].forEach.call(d.childNodes,function(c){var d=c.cloneNode(!0);d.removeAttribute&& ["fill","stroke","stroke-width","stroke"].forEach(function(c){return d.removeAttribute(c)});h.appendChild(d)});var k=m.createElementNS(b,"tspan");k.textContent="\u200b";["x","y"].forEach(function(c){var g=d.getAttribute(c);g&&k.setAttribute(c,g)});h.appendChild(k);d.insertBefore(h,d.firstChild)}};v.prototype.attr=function(c,d,h,k){var b=this.element,N=this.symbolCustomAttribs,t,Q=this,M,q;if("string"===typeof c&&"undefined"!==typeof d){var v=c;c={};c[v]=d}"string"===typeof c?Q=(this[c+"Getter"]|| this._defaultGetter).call(this,c,b):(g(c,function(d,g){M=!1;k||D(this,g);this.symbolName&&-1!==N.indexOf(g)&&(t||(this.symbolAttr(c),t=!0),M=!0);!this.rotation||"x"!==g&&"y"!==g||(this.doTransform=!0);M||(q=this[g+"Setter"]||this._defaultSetter,q.call(this,d,g,b),!this.styledMode&&this.shadows&&/^(width|height|visibility|x|y|d|transform|cx|cy|r)$/.test(g)&&this.updateShadows(g,d,q))},this),this.afterSetters());h&&h.call(this);return Q};v.prototype.clip=function(c){return this.attr("clip-path",c?"url("+ this.renderer.url+"#"+c.id+")":"none")};v.prototype.crisp=function(c,d){d=d||c.strokeWidth||0;var g=Math.round(d)%2/2;c.x=Math.floor(c.x||this.x||0)+g;c.y=Math.floor(c.y||this.y||0)+g;c.width=Math.floor((c.width||this.width||0)-2*g);c.height=Math.floor((c.height||this.height||0)-2*g);L(c.strokeWidth)&&(c.strokeWidth=d);return c};v.prototype.complexColor=function(c,h,k){var b=this.renderer,N,q,v,M,P,E,F,e,a,n,f=[],l;y(this.renderer,"complexColor",{args:arguments},function(){c.radialGradient?q="radialGradient": c.linearGradient&&(q="linearGradient");if(q){v=c[q];P=b.gradients;E=c.stops;a=k.radialReference;u(v)&&(c[q]=v={x1:v[0],y1:v[1],x2:v[2],y2:v[3],gradientUnits:"userSpaceOnUse"});"radialGradient"===q&&a&&!L(v.gradientUnits)&&(M=v,v=d(v,b.getRadialAttr(a,M),{gradientUnits:"userSpaceOnUse"}));g(v,function(c,d){"id"!==d&&f.push(d,c)});g(E,function(c){f.push(c)});f=f.join(",");if(P[f])n=P[f].attr("id");else{v.id=n=t();var Q=P[f]=b.createElement(q).attr(v).add(b.defs);Q.radAttr=M;Q.stops=[];E.forEach(function(c){0=== c[1].indexOf("rgba")?(N=B.parse(c[1]),F=N.get("rgb"),e=N.get("a")):(F=c[1],e=1);c=b.createElement("stop").attr({offset:c[0],"stop-color":F,"stop-opacity":e}).add(Q);Q.stops.push(c)})}l="url("+b.url+"#"+n+")";k.setAttribute(h,l);k.gradient=f;c.toString=function(){return l}}})};v.prototype.css=function(c){var h=this.styles,k={},b=this.element,t=!h;c.color&&(c.fill=c.color);h&&g(c,function(c,d){h&&h[d]!==c&&(k[d]=c,t=!0)});if(t){h&&(c=x(h,k));if(null===c.width||"auto"===c.width)delete this.textWidth; else if("text"===b.nodeName.toLowerCase()&&c.width)var v=this.textWidth=E(c.width);this.styles=c;v&&!e&&this.renderer.forExport&&delete c.width;var q=d(c);b.namespaceURI===this.SVG_NS&&["textOutline","textOverflow","width"].forEach(function(c){return q&&delete q[c]});A(b,q);this.added&&("text"===this.element.nodeName&&this.renderer.buildText(this),c.textOutline&&this.applyTextOutline(c.textOutline))}return this};v.prototype.dashstyleSetter=function(d){var g=this["stroke-width"];"inherit"===g&&(g= 1);if(d=d&&d.toLowerCase()){var h=d.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(d=h.length;d--;)h[d]=""+E(h[d])*c(g,NaN);d=h.join(",").replace(/NaN/g,"none");this.element.setAttribute("stroke-dasharray",d)}};v.prototype.destroy=function(){var c=this,d=c.element||{},h=c.renderer,k=d.ownerSVGElement,b=h.isSVG&& "SPAN"===d.nodeName&&c.parentGroup||void 0;d.onclick=d.onmouseout=d.onmouseover=d.onmousemove=d.point=null;D(c);if(c.clipPath&&k){var t=c.clipPath;[].forEach.call(k.querySelectorAll("[clip-path],[CLIP-PATH]"),function(c){-1<c.getAttribute("clip-path").indexOf(t.element.id)&&c.removeAttribute("clip-path")});c.clipPath=t.destroy()}if(c.stops){for(k=0;k<c.stops.length;k++)c.stops[k].destroy();c.stops.length=0;c.stops=void 0}c.safeRemoveChild(d);for(h.styledMode||c.destroyShadows();b&&b.div&&0===b.div.childNodes.length;)d= b.parentGroup,c.safeRemoveChild(b.div),delete b.div,b=d;c.alignTo&&K(h.alignedObjects,c);g(c,function(d,g){c[g]&&c[g].parentGroup===c&&c[g].destroy&&c[g].destroy();delete c[g]})};v.prototype.destroyShadows=function(){(this.shadows||[]).forEach(function(c){this.safeRemoveChild(c)},this);this.shadows=void 0};v.prototype.destroyTextPath=function(c,d){var g=c.getElementsByTagName("text")[0];if(g){if(g.removeAttribute("dx"),g.removeAttribute("dy"),d.element.setAttribute("id",""),this.textPathWrapper&& g.getElementsByTagName("textPath").length){for(c=this.textPathWrapper.element.childNodes;c.length;)g.appendChild(c[0]);g.removeChild(this.textPathWrapper.element)}}else if(c.getAttribute("dx")||c.getAttribute("dy"))c.removeAttribute("dx"),c.removeAttribute("dy");this.textPathWrapper&&(this.textPathWrapper=this.textPathWrapper.destroy())};v.prototype.dSetter=function(c,d,g){u(c)&&("string"===typeof c[0]&&(c=this.renderer.pathToSegments(c)),this.pathArray=c,c=c.reduce(function(c,d,g){return d&&d.join? (g?c+" ":"")+d.join(" "):(d||"").toString()},""));/(NaN| {2}|^$)/.test(c)&&(c="M 0 0");this[d]!==c&&(g.setAttribute(d,c),this[d]=c)};v.prototype.fadeOut=function(d){var g=this;g.animate({opacity:0},{duration:c(d,150),complete:function(){g.attr({y:-9999}).hide()}})};v.prototype.fillSetter=function(c,d,g){"string"===typeof c?g.setAttribute(d,c):c&&this.complexColor(c,d,g)};v.prototype.getBBox=function(d,g){var k=this.renderer,b=this.element,t=this.styles,q=this.textStr,E=k.cache,u=k.cacheKeys,P=b.namespaceURI=== this.SVG_NS;g=c(g,this.rotation,0);var F=k.styledMode?b&&v.prototype.getStyle.call(b,"font-size"):t&&t.fontSize,e;if(L(q)){var y=q.toString();-1===y.indexOf("<")&&(y=y.replace(/[0-9]/g,"0"));y+=["",g,F,this.textWidth,t&&t.textOverflow,t&&t.fontWeight].join()}y&&!d&&(e=E[y]);if(!e){if(P||k.forExport){try{var a=this.fakeTS&&function(c){var d=b.querySelector(".highcharts-text-outline");d&&A(d,{display:c})};h(a)&&a("none");e=b.getBBox?x({},b.getBBox()):{width:b.offsetWidth,height:b.offsetHeight};h(a)&& a("")}catch(V){""}if(!e||0>e.width)e={width:0,height:0}}else e=this.htmlGetBBox();k.isSVG&&(d=e.width,k=e.height,P&&(e.height=k={"11px,17":14,"13px,20":16}[(F||"")+","+Math.round(k)]||k),g&&(P=g*p,e.width=Math.abs(k*Math.sin(P))+Math.abs(d*Math.cos(P)),e.height=Math.abs(k*Math.cos(P))+Math.abs(d*Math.sin(P))));if(y&&(""===q||0<e.height)){for(;250<u.length;)delete E[u.shift()];E[y]||u.push(y);E[y]=e}}return e};v.prototype.getStyle=function(c){return n.getComputedStyle(this.element||this,"").getPropertyValue(c)}; v.prototype.hasClass=function(c){return-1!==(""+this.attr("class")).split(" ").indexOf(c)};v.prototype.hide=function(c){c?this.attr({y:-9999}):this.attr({visibility:"hidden"});return this};v.prototype.htmlGetBBox=function(){return{height:0,width:0,x:0,y:0}};v.prototype.init=function(c,d){this.element="span"===d?I(d):m.createElementNS(this.SVG_NS,d);this.renderer=c;y(this,"afterInit")};v.prototype.invert=function(c){this.inverted=c;this.updateTransform();return this};v.prototype.on=function(c,d){var g= this.onEvents;if(g[c])g[c]();g[c]=l(this.element,c,d);return this};v.prototype.opacitySetter=function(c,d,g){this.opacity=c=Number(Number(c).toFixed(3));g.setAttribute(d,c)};v.prototype.removeClass=function(c){return this.attr("class",(""+this.attr("class")).replace(k(c)?new RegExp("(^| )"+c+"( |$)"):c," ").replace(/ +/g," ").trim())};v.prototype.removeTextOutline=function(){var c=this.element.querySelector("tspan.highcharts-text-outline");c&&this.safeRemoveChild(c)};v.prototype.safeRemoveChild=function(c){var d= c.parentNode;d&&d.removeChild(c)};v.prototype.setRadialReference=function(c){var d=this.element.gradient&&this.renderer.gradients[this.element.gradient];this.element.radialReference=c;d&&d.radAttr&&d.animate(this.renderer.getRadialAttr(c,d.radAttr));return this};v.prototype.setTextPath=function(c,h){var k=this.element,b=this.text?this.text.element:k,v={textAnchor:"text-anchor"},E=!1,u=this.textPathWrapper,F=!u;h=d(!0,{enabled:!0,attributes:{dy:-5,startOffset:"50%",textAnchor:"middle"}},h);var P=r.filterUserAttributes(h.attributes); if(c&&h&&h.enabled){u&&null===u.element.parentNode?(F=!0,u=u.destroy()):u&&this.removeTextOutline.call(u.parentGroup);this.options&&this.options.padding&&(P.dx=-this.options.padding);u||(this.textPathWrapper=u=this.renderer.createElement("textPath"),E=!0);var e=u.element;(h=c.element.getAttribute("id"))||c.element.setAttribute("id",h=t());if(F)for(b.setAttribute("y",0),q(P.dx)&&b.setAttribute("x",-P.dx),c=[].slice.call(b.childNodes),F=0;F<c.length;F++){var y=c[F];y.nodeType!==n.Node.TEXT_NODE&&"tspan"!== y.nodeName||e.appendChild(y)}E&&u&&u.add({element:b});e.setAttributeNS("http://www.w3.org/1999/xlink","href",this.renderer.url+"#"+h);L(P.dy)&&(e.parentNode.setAttribute("dy",P.dy),delete P.dy);L(P.dx)&&(e.parentNode.setAttribute("dx",P.dx),delete P.dx);g(P,function(c,d){e.setAttribute(v[d]||d,c)});k.removeAttribute("transform");this.removeTextOutline.call(u);this.text&&!this.renderer.styledMode&&this.attr({fill:"none","stroke-width":0});this.applyTextOutline=this.updateTransform=f}else u&&(delete this.updateTransform, delete this.applyTextOutline,this.destroyTextPath(k,c),this.updateTransform(),this.options&&this.options.rotation&&this.applyTextOutline(this.options.style.textOutline));return this};v.prototype.shadow=function(c,d,h){var k=[],b=this.element,t=this.oldShadowOptions,N={color:"#000000",offsetX:this.parentInverted?-1:1,offsetY:this.parentInverted?-1:1,opacity:.15,width:3},q=!1,v;!0===c?v=N:"object"===typeof c&&(v=x(N,c));v&&(v&&t&&g(v,function(c,d){c!==t[d]&&(q=!0)}),q&&this.destroyShadows(),this.oldShadowOptions= v);if(!v)this.destroyShadows();else if(!this.shadows){var E=v.opacity/v.width;var u=this.parentInverted?"translate("+v.offsetY+", "+v.offsetX+")":"translate("+v.offsetX+", "+v.offsetY+")";for(N=1;N<=v.width;N++){var F=b.cloneNode(!1);var e=2*v.width+1-2*N;C(F,{stroke:c.color||"#000000","stroke-opacity":E*N,"stroke-width":e,transform:u,fill:"none"});F.setAttribute("class",(F.getAttribute("class")||"")+" highcharts-shadow");h&&(C(F,"height",Math.max(C(F,"height")-e,0)),F.cutHeight=e);d?d.element.appendChild(F): b.parentNode&&b.parentNode.insertBefore(F,b);k.push(F)}this.shadows=k}return this};v.prototype.show=function(c){return this.attr({visibility:c?"inherit":"visible"})};v.prototype.strokeSetter=function(c,d,g){this[d]=c;this.stroke&&this["stroke-width"]?(v.prototype.fillSetter.call(this,this.stroke,"stroke",g),g.setAttribute("stroke-width",this["stroke-width"]),this.hasStroke=!0):"stroke-width"===d&&0===c&&this.hasStroke?(g.removeAttribute("stroke"),this.hasStroke=!1):this.renderer.styledMode&&this["stroke-width"]&& (g.setAttribute("stroke-width",this["stroke-width"]),this.hasStroke=!0)};v.prototype.strokeWidth=function(){if(!this.renderer.styledMode)return this["stroke-width"]||0;var c=this.getStyle("stroke-width"),d=0;if(c.indexOf("px")===c.length-2)d=E(c);else if(""!==c){var g=m.createElementNS(b,"rect");C(g,{width:c,"stroke-width":0});this.element.parentNode.appendChild(g);d=g.getBBox().width;g.parentNode.removeChild(g)}return d};v.prototype.symbolAttr=function(d){var g=this;"x y r start end width height innerR anchorX anchorY clockwise".split(" ").forEach(function(h){g[h]= c(d[h],g[h])});g.attr({d:g.renderer.symbols[g.symbolName](g.x,g.y,g.width,g.height,g)})};v.prototype.textSetter=function(c){c!==this.textStr&&(delete this.textPxLength,this.textStr=c,this.added&&this.renderer.buildText(this))};v.prototype.titleSetter=function(d){var g=this.element,h=g.getElementsByTagName("title")[0]||m.createElementNS(this.SVG_NS,"title");g.insertBefore?g.insertBefore(h,g.firstChild):g.appendChild(h);h.textContent=String(c(d,"")).replace(/<[^>]*>/g,"").replace(/&lt;/g,"<").replace(/&gt;/g, ">")};v.prototype.toFront=function(){var c=this.element;c.parentNode.appendChild(c);return this};v.prototype.translate=function(c,d){return this.attr({translateX:c,translateY:d})};v.prototype.updateShadows=function(c,d,g){var h=this.shadows;if(h)for(var k=h.length;k--;)g.call(h[k],"height"===c?Math.max(d-(h[k].cutHeight||0),0):"d"===c?this.d:d,c,h[k])};v.prototype.updateTransform=function(){var d=this.scaleX,g=this.scaleY,h=this.inverted,k=this.rotation,b=this.matrix,t=this.element,v=this.translateX|| 0,q=this.translateY||0;h&&(v+=this.width,q+=this.height);v=["translate("+v+","+q+")"];L(b)&&v.push("matrix("+b.join(",")+")");h?v.push("rotate(90) scale(-1,1)"):k&&v.push("rotate("+k+" "+c(this.rotationOriginX,t.getAttribute("x"),0)+" "+c(this.rotationOriginY,t.getAttribute("y")||0)+")");(L(d)||L(g))&&v.push("scale("+c(d,1)+" "+c(g,1)+")");v.length&&t.setAttribute("transform",v.join(" "))};v.prototype.visibilitySetter=function(c,d,g){"inherit"===c?g.removeAttribute(d):this[d]!==c&&g.setAttribute(d, c);this[d]=c};v.prototype.xGetter=function(c){"circle"===this.element.nodeName&&("x"===c?c="cx":"y"===c&&(c="cy"));return this._defaultGetter(c)};v.prototype.zIndexSetter=function(c,d){var g=this.renderer,h=this.parentGroup,k=(h||g).element||g.box,b=this.element;g=k===g.box;var t=!1;var v=this.added;var q;L(c)?(b.setAttribute("data-z-index",c),c=+c,this[d]===c&&(v=!1)):L(this[d])&&b.removeAttribute("data-z-index");this[d]=c;if(v){(c=this.zIndex)&&h&&(h.handleZ=!0);d=k.childNodes;for(q=d.length-1;0<= q&&!t;q--){h=d[q];v=h.getAttribute("data-z-index");var u=!L(v);if(h!==b)if(0>c&&u&&!g&&!q)k.insertBefore(b,d[q]),t=!0;else if(E(v)<=c||u&&(!L(c)||0<=c))k.insertBefore(b,d[q+1]||null),t=!0}t||(k.insertBefore(b,d[g?3:0]||null),t=!0)}return t};return v}();a.prototype["stroke-widthSetter"]=a.prototype.strokeSetter;a.prototype.yGetter=a.prototype.xGetter;a.prototype.matrixSetter=a.prototype.rotationOriginXSetter=a.prototype.rotationOriginYSetter=a.prototype.rotationSetter=a.prototype.scaleXSetter=a.prototype.scaleYSetter= a.prototype.translateXSetter=a.prototype.translateYSetter=a.prototype.verticalAlignSetter=function(c,d){this[d]=c;this.doTransform=!0};"";return a});O(a,"Core/Renderer/RendererRegistry.js",[a["Core/Globals.js"]],function(a){var w;(function(w){w.rendererTypes={};var r;w.getRendererType=function(a){void 0===a&&(a=r);return w.rendererTypes[a]||w.rendererTypes[r]};w.registerRendererType=function(z,B,J){w.rendererTypes[z]=B;if(!r||J)r=z,a.Renderer=B}})(w||(w={}));return w});O(a,"Core/Renderer/SVG/SVGLabel.js", [a["Core/Renderer/SVG/SVGElement.js"],a["Core/Utilities.js"]],function(a,r){var w=this&&this.__extends||function(){var a=function(f,e){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,e){b.__proto__=e}||function(b,e){for(var a in e)e.hasOwnProperty(a)&&(b[a]=e[a])};return a(f,e)};return function(f,e){function b(){this.constructor=f}a(f,e);f.prototype=null===e?Object.create(e):(b.prototype=e.prototype,new b)}}(),G=r.defined,z=r.extend,H=r.isNumber,J=r.merge,D=r.pick,p=r.removeEvent; return function(m){function f(e,b,a,l,C,I,A,L,K,x){var y=m.call(this)||this;y.paddingLeftSetter=y.paddingSetter;y.paddingRightSetter=y.paddingSetter;y.init(e,"g");y.textStr=b;y.x=a;y.y=l;y.anchorX=I;y.anchorY=A;y.baseline=K;y.className=x;y.addClass("button"===x?"highcharts-no-tooltip":"highcharts-label");x&&y.addClass("highcharts-"+x);y.text=e.text(void 0,0,0,L).attr({zIndex:1});var u;"string"===typeof C&&((u=/^url\((.*?)\)$/.test(C))||y.renderer.symbols[C])&&(y.symbolKey