UNPKG

highcharts

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