UNPKG

highcharts

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