|
|
@@ -1,786 +1,795 @@
|
|
|
/*
|
|
|
- Highcharts Gantt JS v9.0.1 (2021-02-15)
|
|
|
+ Highcharts Gantt JS v9.1.0 (2021-05-03)
|
|
|
|
|
|
(c) 2017-2021 Lars Cabrera, Torstein Honsi, Jon Arild Nygard & Oystein Moseng
|
|
|
|
|
|
License: www.highcharts.com/license
|
|
|
*/
|
|
|
-(function(W,O){"object"===typeof module&&module.exports?(O["default"]=O,module.exports=W.document?O(W):O):"function"===typeof define&&define.amd?define("highcharts/highcharts-gantt",function(){return O(W)}):(W.Highcharts&&W.Highcharts.error(16,!0),W.Highcharts=O(W))})("undefined"!==typeof window?window:this,function(W){function O(G,l,e,C){G.hasOwnProperty(l)||(G[l]=C.apply(null,e))}var e={};O(e,"Core/Globals.js",[],function(){var G="undefined"!==typeof W?W:"undefined"!==typeof window?window:{},l=
|
|
|
-G.document,e=G.navigator&&G.navigator.userAgent||"",C=l&&l.createElementNS&&!!l.createElementNS("http://www.w3.org/2000/svg","svg").createSVGRect,H=/(edge|msie|trident)/i.test(e)&&!G.opera,J=-1!==e.indexOf("Firefox"),D=-1!==e.indexOf("Chrome"),E=J&&4>parseInt(e.split("Firefox/")[1],10),A=function(){};return{product:"Highcharts",version:"9.0.1",deg2rad:2*Math.PI/360,doc:l,hasBidiBug:E,hasTouch:!!G.TouchEvent,isMS:H,isWebKit:-1!==e.indexOf("AppleWebKit"),isFirefox:J,isChrome:D,isSafari:!D&&-1!==e.indexOf("Safari"),
|
|
|
-isTouchDevice:/(Mobile|Android|Windows Phone)/.test(e),SVG_NS:"http://www.w3.org/2000/svg",chartCount:0,seriesTypes:{},supportsPassiveEvents:function(){var x=!1;if(!H){var g=Object.defineProperty({},"passive",{get:function(){x=!0}});G.addEventListener&&G.removeEventListener&&(G.addEventListener("testPassive",A,g),G.removeEventListener("testPassive",A,g))}return x}(),symbolSizes:{},svg:C,win:G,marginNames:["plotTop","marginRight","marginBottom","plotLeft"],noop:A,charts:[],dateFormats:{}}});O(e,"Core/Utilities.js",
|
|
|
-[e["Core/Globals.js"]],function(G){function l(z,c,B,Q){var v=c?"Highcharts error":"Highcharts warning";32===z&&(z=v+": Deprecated member");var R=g(z),n=R?v+" #"+z+": www.highcharts.com/errors/"+z+"/":z.toString();v=function(){if(c)throw Error(n);h.console&&-1===l.messages.indexOf(n)&&console.warn(n)};if("undefined"!==typeof Q){var b="";R&&(n+="?");a(Q,function(v,B){b+="\n - "+B+": "+v;R&&(n+=encodeURI(B)+"="+encodeURI(v))});n+=b}B?d(B,"displayError",{code:z,message:n,params:Q},v):v();l.messages.push(n)}
|
|
|
-function e(){var z,c=arguments,B={},d=function(v,B){"object"!==typeof v&&(v={});a(B,function(z,a){"__proto__"!==a&&"constructor"!==a&&(!E(z,!0)||x(z)||A(z)?v[a]=B[a]:v[a]=d(v[a]||{},z))});return v};!0===c[0]&&(B=c[1],c=Array.prototype.slice.call(c,2));var v=c.length;for(z=0;z<v;z++)B=d(B,c[z]);return B}function C(z,c){var B={};a(z,function(a,v){if(E(z[v],!0)&&!z.nodeType&&c[v])a=C(z[v],c[v]),Object.keys(a).length&&(B[v]=a);else if(E(z[v])||z[v]!==c[v])B[v]=z[v]});return B}function H(a,c){return parseInt(a,
|
|
|
-c||10)}function J(a){return"string"===typeof a}function D(a){a=Object.prototype.toString.call(a);return"[object Array]"===a||"[object Array Iterator]"===a}function E(a,c){return!!a&&"object"===typeof a&&(!c||!D(a))}function A(a){return E(a)&&"number"===typeof a.nodeType}function x(a){var z=a&&a.constructor;return!(!E(a,!0)||A(a)||!z||!z.name||"Object"===z.name)}function g(a){return"number"===typeof a&&!isNaN(a)&&Infinity>a&&-Infinity<a}function u(a){return"undefined"!==typeof a&&null!==a}function f(z,
|
|
|
-c,B){var d;J(c)?u(B)?z.setAttribute(c,B):z&&z.getAttribute&&((d=z.getAttribute(c))||"class"!==c||(d=z.getAttribute(c+"Name"))):a(c,function(v,a){z.setAttribute(a,v)});return d}function w(a,c){var B;a||(a={});for(B in c)a[B]=c[B];return a}function b(){for(var a=arguments,c=a.length,B=0;B<c;B++){var d=a[B];if("undefined"!==typeof d&&null!==d)return d}}function m(a,c){G.isMS&&!G.svg&&c&&"undefined"!==typeof c.opacity&&(c.filter="alpha(opacity="+100*c.opacity+")");w(a.style,c)}function t(a,d,B,h,v){a=
|
|
|
-c.createElement(a);d&&w(a,d);v&&m(a,{padding:"0",border:"none",margin:"0"});B&&m(a,B);h&&h.appendChild(a);return a}function I(a,c){return parseFloat(a.toPrecision(c||14))}function q(a,c,B,d){a=+a||0;c=+c;var v=G.defaultOptions.lang,z=(a.toString().split(".")[1]||"").split("e")[0].length,h=a.toString().split("e"),n=c;if(-1===c)c=Math.min(z,20);else if(!g(c))c=2;else if(c&&h[1]&&0>h[1]){var N=c+ +h[1];0<=N?(h[0]=(+h[0]).toExponential(N).split("e")[0],c=N):(h[0]=h[0].split(".")[0]||0,a=20>c?(h[0]*Math.pow(10,
|
|
|
-h[1])).toFixed(c):0,h[1]=0)}var Q=(Math.abs(h[1]?h[0]:a)+Math.pow(10,-Math.max(c,z)-1)).toFixed(c);z=String(H(Q));N=3<z.length?z.length%3:0;B=b(B,v.decimalPoint);d=b(d,v.thousandsSep);a=(0>a?"-":"")+(N?z.substr(0,N)+d:"");a=0>+h[1]&&!n?"0":a+z.substr(N).replace(/(\d{3})(?=\d)/g,"$1"+d);c&&(a+=B+Q.slice(-c));h[1]&&0!==+a&&(a+="e"+h[1]);return a}function p(a,c){if(!a)return c;var B=a.split(".").reverse();if(1===B.length)return c[a];for(a=B.pop();"undefined"!==typeof a&&"undefined"!==typeof c&&null!==
|
|
|
-c;)c=c[a],a=B.pop();return c}function a(a,c,B){for(var d in a)Object.hasOwnProperty.call(a,d)&&c.call(B||a[d],a[d],d,a)}function k(c,d,B){function z(a,v){var B=c.removeEventListener||G.removeEventListenerPolyfill;B&&B.call(c,a,v,!1)}function v(v){var B;if(c.nodeName){if(d){var h={};h[d]=!0}else h=v;a(h,function(a,c){if(v[c])for(B=v[c].length;B--;)z(c,v[c][B].fn)})}}var h="function"===typeof c&&c.prototype||c;if(Object.hasOwnProperty.call(h,"hcEvents")){var n=h.hcEvents;d?(h=n[d]||[],B?(n[d]=h.filter(function(a){return B!==
|
|
|
-a.fn}),z(d,B)):(v(n),n[d]=[])):(v(n),delete h.hcEvents)}}function d(a,d,B,h){B=B||{};if(c.createEvent&&(a.dispatchEvent||a.fireEvent)){var v=c.createEvent("Events");v.initEvent(d,!0,!0);w(v,B);a.dispatchEvent?a.dispatchEvent(v):a.fireEvent(d,v)}else if(a.hcEvents){B.target||w(B,{preventDefault:function(){B.defaultPrevented=!0},target:a,type:d});v=[];for(var z=a,n=!1;z.hcEvents;)Object.hasOwnProperty.call(z,"hcEvents")&&z.hcEvents[d]&&(v.length&&(n=!0),v.unshift.apply(v,z.hcEvents[d])),z=Object.getPrototypeOf(z);
|
|
|
-n&&v.sort(function(a,v){return a.order-v.order});v.forEach(function(v){!1===v.fn.call(a,B)&&B.preventDefault()})}h&&!B.defaultPrevented&&h.call(a,B)}var y=G.charts,c=G.doc,h=G.win;"";(l||(l={})).messages=[];var M;Math.easeInOutSine=function(a){return-.5*(Math.cos(Math.PI*a)-1)};var S=Array.prototype.find?function(a,c){return a.find(c)}:function(a,c){var B,d=a.length;for(B=0;B<d;B++)if(c(a[B],B))return a[B]};a({map:"map",each:"forEach",grep:"filter",reduce:"reduce",some:"some"},function(a,c){G[c]=
|
|
|
-function(B){var d;l(32,!1,void 0,(d={},d["Highcharts."+c]="use Array."+a,d));return Array.prototype[a].apply(B,[].slice.call(arguments,1))}});var P,n=function(){var a=Math.random().toString(36).substring(2,9)+"-",c=0;return function(){return"highcharts-"+(P?"":a)+c++}}(),K=G.getOptions=function(){return G.defaultOptions},r=G.setOptions=function(a){G.defaultOptions=e(!0,G.defaultOptions,a);(a.time||a.global)&&G.time.update(e(G.defaultOptions.global,G.defaultOptions.time,a.global,a.time));return G.defaultOptions};
|
|
|
-h.jQuery&&(h.jQuery.fn.highcharts=function(){var a=[].slice.call(arguments);if(this[0])return a[0]?(new (G[J(a[0])?a.shift():"Chart"])(this[0],a[0],a[1]),this):y[f(this[0],"data-highcharts-chart")]});return{addEvent:function(a,c,B,d){void 0===d&&(d={});var v="function"===typeof a&&a.prototype||a;Object.hasOwnProperty.call(v,"hcEvents")||(v.hcEvents={});v=v.hcEvents;G.Point&&a instanceof G.Point&&a.series&&a.series.chart&&(a.series.chart.runTrackerClick=!0);var h=a.addEventListener||G.addEventListenerPolyfill;
|
|
|
-h&&h.call(a,c,B,G.supportsPassiveEvents?{passive:void 0===d.passive?-1!==c.indexOf("touch"):d.passive,capture:!1}:!1);v[c]||(v[c]=[]);v[c].push({fn:B,order:"number"===typeof d.order?d.order:Infinity});v[c].sort(function(a,v){return a.order-v.order});return function(){k(a,c,B)}},arrayMax:function(a){for(var c=a.length,B=a[0];c--;)a[c]>B&&(B=a[c]);return B},arrayMin:function(a){for(var c=a.length,B=a[0];c--;)a[c]<B&&(B=a[c]);return B},attr:f,clamp:function(a,c,B){return a>c?a<B?a:B:c},cleanRecursively:C,
|
|
|
-clearTimeout:function(a){u(a)&&clearTimeout(a)},correctFloat:I,createElement:t,css:m,defined:u,destroyObjectProperties:function(c,d){a(c,function(a,h){a&&a!==d&&a.destroy&&a.destroy();delete c[h]})},discardElement:function(a){M||(M=t("div"));a&&M.appendChild(a);M.innerHTML=""},erase:function(a,c){for(var B=a.length;B--;)if(a[B]===c){a.splice(B,1);break}},error:l,extend:w,extendClass:function(a,c){var B=function(){};B.prototype=new a;w(B.prototype,c);return B},find:S,fireEvent:d,format:function(a,
|
|
|
-c,B){var d="{",v=!1,h=[],n=/f$/,z=/\.([0-9])/,N=G.defaultOptions.lang,b=B&&B.time||G.time;for(B=B&&B.numberFormatter||q;a;){var r=a.indexOf(d);if(-1===r)break;var k=a.slice(0,r);if(v){k=k.split(":");d=p(k.shift()||"",c);if(k.length&&"number"===typeof d)if(k=k.join(":"),n.test(k)){var y=parseInt((k.match(z)||["","-1"])[1],10);null!==d&&(d=B(d,y,N.decimalPoint,-1<k.indexOf(",")?N.thousandsSep:""))}else d=b.dateFormat(k,d);h.push(d)}else h.push(k);a=a.slice(r+1);d=(v=!v)?"}":"{"}h.push(a);return h.join("")},
|
|
|
-getMagnitude:function(a){return Math.pow(10,Math.floor(Math.log(a)/Math.LN10))},getNestedProperty:p,getOptions:K,getStyle:function(a,c,B){if("width"===c)return c=Math.min(a.offsetWidth,a.scrollWidth),B=a.getBoundingClientRect&&a.getBoundingClientRect().width,B<c&&B>=c-1&&(c=Math.floor(B)),Math.max(0,c-G.getStyle(a,"padding-left")-G.getStyle(a,"padding-right"));if("height"===c)return Math.max(0,Math.min(a.offsetHeight,a.scrollHeight)-G.getStyle(a,"padding-top")-G.getStyle(a,"padding-bottom"));h.getComputedStyle||
|
|
|
-l(27,!0);if(a=h.getComputedStyle(a,void 0))a=a.getPropertyValue(c),b(B,"opacity"!==c)&&(a=H(a));return a},inArray:function(a,c,B){l(32,!1,void 0,{"Highcharts.inArray":"use Array.indexOf"});return c.indexOf(a,B)},isArray:D,isClass:x,isDOMElement:A,isFunction:function(a){return"function"===typeof a},isNumber:g,isObject:E,isString:J,keys:function(a){l(32,!1,void 0,{"Highcharts.keys":"use Object.keys"});return Object.keys(a)},merge:e,normalizeTickInterval:function(a,c,B,d,v){var h=a;B=b(B,1);var n=a/
|
|
|
-B;c||(c=v?[1,1.2,1.5,2,2.5,3,4,5,6,8,10]:[1,2,2.5,5,10],!1===d&&(1===B?c=c.filter(function(a){return 0===a%1}):.1>=B&&(c=[1/B])));for(d=0;d<c.length&&!(h=c[d],v&&h*B>=a||!v&&n<=(c[d]+(c[d+1]||c[d]))/2);d++);return h=I(h*B,-Math.round(Math.log(.001)/Math.LN10))},numberFormat:q,objectEach:a,offset:function(a){var d=c.documentElement;a=a.parentElement||a.parentNode?a.getBoundingClientRect():{top:0,left:0,width:0,height:0};return{top:a.top+(h.pageYOffset||d.scrollTop)-(d.clientTop||0),left:a.left+(h.pageXOffset||
|
|
|
-d.scrollLeft)-(d.clientLeft||0),width:a.width,height:a.height}},pad:function(a,c,B){return Array((c||2)+1-String(a).replace("-","").length).join(B||"0")+a},pick:b,pInt:H,relativeLength:function(a,c,B){return/%$/.test(a)?c*parseFloat(a)/100+(B||0):parseFloat(a)},removeEvent:k,setOptions:r,splat:function(a){return D(a)?a:[a]},stableSort:function(a,c){var B=a.length,d,v;for(v=0;v<B;v++)a[v].safeI=v;a.sort(function(a,v){d=c(a,v);return 0===d?a.safeI-v.safeI:d});for(v=0;v<B;v++)delete a[v].safeI},syncTimeout:function(a,
|
|
|
-c,B){if(0<c)return setTimeout(a,c,B);a.call(0,B);return-1},timeUnits:{millisecond:1,second:1E3,minute:6E4,hour:36E5,day:864E5,week:6048E5,month:24192E5,year:314496E5},uniqueKey:n,useSerialIds:function(a){return P=b(a,P)},wrap:function(a,c,B){var d=a[c];a[c]=function(){var a=Array.prototype.slice.call(arguments),c=arguments,h=this;h.proceed=function(){d.apply(h,arguments.length?arguments:c)};a.unshift(d);a=B.apply(this,a);h.proceed=null;return a}}}});O(e,"Core/Renderer/HTML/AST.js",[e["Core/Globals.js"],
|
|
|
-e["Core/Utilities.js"]],function(e,l){var G=e.SVG_NS,C=l.attr,H=l.createElement,J=l.discardElement,D=l.error,E=l.isString,A=l.objectEach,x=l.splat;"";var g=!1;try{g=!!(new DOMParser).parseFromString("","text/html")}catch(u){}return function(){function u(f){this.nodes="string"===typeof f?this.parseMarkup(f):f}u.filterUserAttributes=function(f){A(f,function(g,b){var m=!0;-1===u.allowedAttributes.indexOf(b)&&(m=!1);-1!==["background","dynsrc","href","lowsrc","src"].indexOf(b)&&(m=E(g)&&u.allowedReferences.some(function(b){return 0===
|
|
|
-g.indexOf(b)}));m||(D("Highcharts warning: Invalid attribute '"+b+"' in config"),delete f[b])});return f};u.setElementHTML=function(f,g){f.innerHTML="";g&&(new u(g)).addToDOM(f)};u.prototype.addToDOM=function(f){function g(b,f){var m;x(b).forEach(function(b){var q=b.tagName,p=b.textContent?e.doc.createTextNode(b.textContent):void 0;if(q)if("#text"===q)var a=p;else if(-1!==u.allowedTags.indexOf(q)){q=e.doc.createElementNS("svg"===q?G:f.namespaceURI||G,q);var k=b.attributes||{};A(b,function(a,b){"tagName"!==
|
|
|
-b&&"attributes"!==b&&"children"!==b&&"textContent"!==b&&(k[b]=a)});C(q,u.filterUserAttributes(k));p&&q.appendChild(p);g(b.children||[],q);a=q}else D("Highcharts warning: Invalid tagName '"+q+"' in config");a&&f.appendChild(a);m=a});return m}return g(this.nodes,f)};u.prototype.parseMarkup=function(f){var w=[];if(g)f=(new DOMParser).parseFromString(f,"text/html");else{var b=H("div");b.innerHTML=f;f={body:b}}var m=function(b,f){var q=b.nodeName.toLowerCase(),p={tagName:q};if("#text"===q){q=b.textContent||
|
|
|
-"";if(/^[\s]*$/.test(q))return;p.textContent=q}if(q=b.attributes){var a={};[].forEach.call(q,function(d){a[d.name]=d.value});p.attributes=a}if(b.childNodes.length){var k=[];[].forEach.call(b.childNodes,function(a){m(a,k)});k.length&&(p.children=k)}f.push(p)};[].forEach.call(f.body.childNodes,function(b){return m(b,w)});b&&J(b);return w};u.allowedTags="a 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 ul #text".split(" ");
|
|
|
-u.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 patternUnits r refX refY role scope slope src startOffset stdDeviation stroke stroke-linecap stroke-width style result rowspan summary target tabindex text-align textAnchor textLength type valign width x x1 xy y y1 y2 zIndex".split(" ");
|
|
|
-u.allowedReferences="https:// http:// mailto: / ../ ./ #".split(" ");return u}()});O(e,"Core/Color/Color.js",[e["Core/Globals.js"],e["Core/Utilities.js"]],function(e,l){var G=l.isNumber,C=l.merge,H=l.pInt;"";l=function(){function l(D){this.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(l){return[H(l[1]),H(l[2]),H(l[3]),parseFloat(l[4],10)]}},{regex:/rgb\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*\)/,parse:function(l){return[H(l[1]),
|
|
|
-H(l[2]),H(l[3]),1]}}];this.rgba=[];if(e.Color!==l)return new e.Color(D);if(!(this instanceof l))return new l(D);this.init(D)}l.parse=function(D){return new l(D)};l.prototype.init=function(D){var E,A;if((this.input=D=l.names[D&&D.toLowerCase?D.toLowerCase():""]||D)&&D.stops)this.stops=D.stops.map(function(g){return new l(g[1])});else{if(D&&D.charAt&&"#"===D.charAt()){var x=D.length;D=parseInt(D.substr(1),16);7===x?E=[(D&16711680)>>16,(D&65280)>>8,D&255,1]:4===x&&(E=[(D&3840)>>4|(D&3840)>>8,(D&240)>>
|
|
|
-4|D&240,(D&15)<<4|D&15,1])}if(!E)for(A=this.parsers.length;A--&&!E;){var g=this.parsers[A];(x=g.regex.exec(D))&&(E=g.parse(x))}}this.rgba=E||[]};l.prototype.get=function(l){var E=this.input,A=this.rgba;if("undefined"!==typeof this.stops){var x=C(E);x.stops=[].concat(x.stops);this.stops.forEach(function(g,u){x.stops[u]=[x.stops[u][0],g.get(l)]})}else x=A&&G(A[0])?"rgb"===l||!l&&1===A[3]?"rgb("+A[0]+","+A[1]+","+A[2]+")":"a"===l?A[3]:"rgba("+A.join(",")+")":E;return x};l.prototype.brighten=function(l){var E,
|
|
|
-A=this.rgba;if(this.stops)this.stops.forEach(function(x){x.brighten(l)});else if(G(l)&&0!==l)for(E=0;3>E;E++)A[E]+=H(255*l),0>A[E]&&(A[E]=0),255<A[E]&&(A[E]=255);return this};l.prototype.setOpacity=function(l){this.rgba[3]=l;return this};l.prototype.tweenTo=function(l,E){var A=this.rgba,x=l.rgba;x.length&&A&&A.length?(l=1!==x[3]||1!==A[3],E=(l?"rgba(":"rgb(")+Math.round(x[0]+(A[0]-x[0])*(1-E))+","+Math.round(x[1]+(A[1]-x[1])*(1-E))+","+Math.round(x[2]+(A[2]-x[2])*(1-E))+(l?","+(x[3]+(A[3]-x[3])*(1-
|
|
|
-E)):"")+")"):E=l.input||"none";return E};l.names={white:"#ffffff",black:"#000000"};return l}();e.Color=l;e.color=l.parse;return l});O(e,"Core/Color/Palette.js",[],function(){return{colors:"#7cb5ec #434348 #90ed7d #f7a35c #8085e9 #f15c80 #e4d354 #2b908f #f45b5b #91e8e1".split(" "),backgroundColor:"#ffffff",neutralColor100:"#000000",neutralColor80:"#333333",neutralColor60:"#666666",neutralColor40:"#999999",neutralColor20:"#cccccc",neutralColor10:"#e6e6e6",neutralColor5:"#f2f2f2",neutralColor3:"#f7f7f7",
|
|
|
-highlightColor100:"#003399",highlightColor80:"#335cad",highlightColor60:"#6685c2",highlightColor20:"#ccd6eb",highlightColor10:"#e6ebf5",indicatorPositiveLine:"#06b535",indicatorNegativeLine:"#f21313"}});O(e,"Core/Animation/Fx.js",[e["Core/Globals.js"],e["Core/Utilities.js"]],function(e,l){var G=e.win,C=l.isNumber,H=l.objectEach;l=function(){function l(l,E,A){this.pos=NaN;this.options=E;this.elem=l;this.prop=A}l.prototype.dSetter=function(){var l=this.paths,E=l&&l[0];l=l&&l[1];var A=[],x=this.now||
|
|
|
-0;if(1!==x&&E&&l)if(E.length===l.length&&1>x)for(var g=0;g<l.length;g++){for(var u=E[g],f=l[g],w=[],b=0;b<f.length;b++){var m=u[b],t=f[b];C(m)&&C(t)&&("A"!==f[0]||4!==b&&5!==b)?w[b]=m+x*(t-m):w[b]=t}A.push(w)}else A=l;else A=this.toD||[];this.elem.attr("d",A,void 0,!0)};l.prototype.update=function(){var l=this.elem,E=this.prop,A=this.now,x=this.options.step;if(this[E+"Setter"])this[E+"Setter"]();else l.attr?l.element&&l.attr(E,A,null,!0):l.style[E]=A+this.unit;x&&x.call(l,A,this)};l.prototype.run=
|
|
|
-function(e,E,A){var x=this,g=x.options,u=function(b){return u.stopped?!1:x.step(b)},f=G.requestAnimationFrame||function(b){setTimeout(b,13)},w=function(){for(var b=0;b<l.timers.length;b++)l.timers[b]()||l.timers.splice(b--,1);l.timers.length&&f(w)};e!==E||this.elem["forceAnimate:"+this.prop]?(this.startTime=+new Date,this.start=e,this.end=E,this.unit=A,this.now=this.start,this.pos=0,u.elem=this.elem,u.prop=this.prop,u()&&1===l.timers.push(u)&&f(w)):(delete g.curAnim[this.prop],g.complete&&0===Object.keys(g.curAnim).length&&
|
|
|
-g.complete.call(this.elem))};l.prototype.step=function(l){var E=+new Date,A=this.options,x=this.elem,g=A.complete,u=A.duration,f=A.curAnim;if(x.attr&&!x.element)l=!1;else if(l||E>=u+this.startTime){this.now=this.end;this.pos=1;this.update();var w=f[this.prop]=!0;H(f,function(b){!0!==b&&(w=!1)});w&&g&&g.call(x);l=!1}else this.pos=A.easing((E-this.startTime)/u),this.now=this.start+(this.end-this.start)*this.pos,this.update(),l=!0;return l};l.prototype.initPath=function(l,E,A){function x(b,f){for(;b.length<
|
|
|
-I;){var a=b[0],k=f[I-b.length];k&&"M"===a[0]&&(b[0]="C"===k[0]?["C",a[1],a[2],a[1],a[2],a[1],a[2]]:["L",a[1],a[2]]);b.unshift(a);w&&b.push(b[b.length-1])}}function g(f,p){for(;f.length<I;)if(p=f[f.length/b-1].slice(),"C"===p[0]&&(p[1]=p[5],p[2]=p[6]),w){var a=f[f.length/b].slice();f.splice(f.length/2,0,p,a)}else f.push(p)}var u=l.startX,f=l.endX;E=E&&E.slice();A=A.slice();var w=l.isArea,b=w?2:1;if(!E)return[A,A];if(u&&f){for(l=0;l<u.length;l++)if(u[l]===f[0]){var m=l;break}else if(u[0]===f[f.length-
|
|
|
-u.length+l]){m=l;var t=!0;break}else if(u[u.length-1]===f[f.length-u.length+l]){m=u.length-l;break}"undefined"===typeof m&&(E=[])}if(E.length&&C(m)){var I=A.length+m*b;t?(x(E,A),g(A,E)):(x(A,E),g(E,A))}return[E,A]};l.prototype.fillSetter=function(){l.prototype.strokeSetter.apply(this,arguments)};l.prototype.strokeSetter=function(){this.elem.attr(this.prop,e.color(this.start).tweenTo(e.color(this.end),this.pos),null,!0)};l.timers=[];return l}();e.Fx=l;e.timers=l.timers;return l});O(e,"Core/Animation/AnimationUtilities.js",
|
|
|
-[e["Core/Animation/Fx.js"],e["Core/Globals.js"],e["Core/Utilities.js"]],function(e,l,F){var G=F.defined,H=F.getStyle,J=F.isArray,D=F.isNumber,E=F.isObject,A=F.merge,x=F.objectEach,g=F.pick;F=l.setAnimation=function(b,f){f.renderer.globalAnimation=g(b,f.options.chart.animation,!0)};var u=l.animObject=function(b){return E(b)?A({duration:500,defer:0},b):{duration:b?500:0,defer:0}},f=l.getDeferredAnimation=function(b,f,t){var m=u(f),q=0,p=0;(t?[t]:b.series).forEach(function(a){a=u(a.options.animation);
|
|
|
-q=f&&G(f.defer)?m.defer:Math.max(q,a.duration+a.defer);p=Math.min(m.duration,a.duration)});b.renderer.forExport&&(q=0);return{defer:Math.max(0,q-p),duration:Math.min(q,p)}},w=l.stop=function(b,f){for(var m=e.timers.length;m--;)e.timers[m].elem!==b||f&&f!==e.timers[m].prop||(e.timers[m].stopped=!0)};return{animate:function(b,f,t){var m,q="",p,a;if(!E(t)){var k=arguments;t={duration:k[2],easing:k[3],complete:k[4]}}D(t.duration)||(t.duration=400);t.easing="function"===typeof t.easing?t.easing:Math[t.easing]||
|
|
|
-Math.easeInOutSine;t.curAnim=A(f);x(f,function(d,k){w(b,k);a=new e(b,t,k);p=null;"d"===k&&J(f.d)?(a.paths=a.initPath(b,b.pathArray,f.d),a.toD=f.d,m=0,p=1):b.attr?m=b.attr(k):(m=parseFloat(H(b,k))||0,"opacity"!==k&&(q="px"));p||(p=d);p&&p.match&&p.match("px")&&(p=p.replace(/px/g,""));a.run(m,p,q)})},animObject:u,getDeferredAnimation:f,setAnimation:F,stop:w}});O(e,"Core/Renderer/SVG/SVGElement.js",[e["Core/Animation/AnimationUtilities.js"],e["Core/Renderer/HTML/AST.js"],e["Core/Color/Color.js"],e["Core/Globals.js"],
|
|
|
-e["Core/Color/Palette.js"],e["Core/Utilities.js"]],function(e,l,F,C,H,J){var G=e.animate,E=e.animObject,A=e.stop,x=C.deg2rad,g=C.doc,u=C.hasTouch,f=C.noop,w=C.svg,b=C.SVG_NS,m=C.win,t=J.attr,I=J.createElement,q=J.css,p=J.defined,a=J.erase,k=J.extend,d=J.fireEvent,y=J.isArray,c=J.isFunction,h=J.isNumber,M=J.isString,S=J.merge,P=J.objectEach,n=J.pick,K=J.pInt,r=J.syncTimeout,z=J.uniqueKey;"";e=function(){function L(){this.height=this.element=void 0;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(" ");this.width=void 0}L.prototype._defaultGetter=function(a){a=n(this[a+"Value"],this[a],this.element?this.element.getAttribute(a):null,0);/^[\-0-9\.]+$/.test(a)&&(a=parseFloat(a));return a};L.prototype._defaultSetter=function(a,c,v){v.setAttribute(c,a)};L.prototype.add=function(a){var c=this.renderer,v=this.element;a&&(this.parentGroup=a);this.parentInverted=a&&a.inverted;"undefined"!==typeof this.textStr&&
|
|
|
-"text"===this.element.nodeName&&c.buildText(this);this.added=!0;if(!a||a.handleZ||this.zIndex)var d=this.zIndexSetter();d||(a?a.element:c.box).appendChild(v);if(this.onAdd)this.onAdd();return this};L.prototype.addClass=function(a,c){var v=c?"":this.attr("class")||"";a=(a||"").split(/ /g).reduce(function(a,c){-1===v.indexOf(c)&&a.push(c);return a},v?[v]:[]).join(" ");a!==v&&this.attr("class",a);return this};L.prototype.afterSetters=function(){this.doTransform&&(this.updateTransform(),this.doTransform=
|
|
|
-!1)};L.prototype.align=function(c,d,v){var B,h={};var b=this.renderer;var N=b.alignedObjects;var k,r;if(c){if(this.alignOptions=c,this.alignByTranslate=d,!v||M(v))this.alignTo=B=v||"renderer",a(N,this),N.push(this),v=void 0}else c=this.alignOptions,d=this.alignByTranslate,B=this.alignTo;v=n(v,b[B],b);B=c.align;b=c.verticalAlign;N=(v.x||0)+(c.x||0);var f=(v.y||0)+(c.y||0);"right"===B?k=1:"center"===B&&(k=2);k&&(N+=(v.width-(c.width||0))/k);h[d?"translateX":"x"]=Math.round(N);"bottom"===b?r=1:"middle"===
|
|
|
-b&&(r=2);r&&(f+=(v.height-(c.height||0))/r);h[d?"translateY":"y"]=Math.round(f);this[this.placed?"animate":"attr"](h);this.placed=!0;this.alignAttr=h;return this};L.prototype.alignSetter=function(a){var c={left:"start",center:"middle",right:"end"};c[a]&&(this.alignValue=a,this.element.setAttribute("text-anchor",c[a]))};L.prototype.animate=function(a,c,v){var d=this,B=E(n(c,this.renderer.globalAnimation,!0));c=B.defer;n(g.hidden,g.msHidden,g.webkitHidden,!1)&&(B.duration=0);0!==B.duration?(v&&(B.complete=
|
|
|
-v),r(function(){d.element&&G(d,a,B)},c)):(this.attr(a,void 0,v),P(a,function(a,c){B.step&&B.step.call(this,a,{prop:c,pos:1,elem:this})},this));return this};L.prototype.applyTextOutline=function(a){var c=this.element;-1!==a.indexOf("contrast")&&(a=a.replace(/contrast/g,this.renderer.getContrast(c.style.fill)));var v=a.split(" ");a=v[v.length-1];if((v=v[0])&&"none"!==v&&C.svg){this.fakeTS=!0;this.ySetter=this.xSetter;v=v.replace(/(^[\d\.]+)(.*?)$/g,function(a,c,v){return 2*Number(c)+v});this.removeTextOutline();
|
|
|
-var d=g.createElementNS(b,"tspan");t(d,{"class":"highcharts-text-outline",fill:a,stroke:a,"stroke-width":v,"stroke-linejoin":"round"});[].forEach.call(c.childNodes,function(a){var c=a.cloneNode(!0);c.removeAttribute&&["fill","stroke","stroke-width","stroke"].forEach(function(a){return c.removeAttribute(a)});d.appendChild(c)});a=g.createElementNS(b,"tspan");a.textContent="\u200b";t(a,{x:c.getAttribute("x"),y:c.getAttribute("y")});d.appendChild(a);c.insertBefore(d,c.firstChild)}};L.prototype.attr=function(a,
|
|
|
-c,v,d){var B=this.element,h,N=this,b,n,R=this.symbolCustomAttribs;if("string"===typeof a&&"undefined"!==typeof c){var k=a;a={};a[k]=c}"string"===typeof a?N=(this[a+"Getter"]||this._defaultGetter).call(this,a,B):(P(a,function(c,v){b=!1;d||A(this,v);this.symbolName&&-1!==R.indexOf(v)&&(h||(this.symbolAttr(a),h=!0),b=!0);!this.rotation||"x"!==v&&"y"!==v||(this.doTransform=!0);b||(n=this[v+"Setter"]||this._defaultSetter,n.call(this,c,v,B),!this.styledMode&&this.shadows&&/^(width|height|visibility|x|y|d|transform|cx|cy|r)$/.test(v)&&
|
|
|
-this.updateShadows(v,c,n))},this),this.afterSetters());v&&v.call(this);return N};L.prototype.clip=function(a){return this.attr("clip-path",a?"url("+this.renderer.url+"#"+a.id+")":"none")};L.prototype.crisp=function(a,c){c=c||a.strokeWidth||0;var v=Math.round(c)%2/2;a.x=Math.floor(a.x||this.x||0)+v;a.y=Math.floor(a.y||this.y||0)+v;a.width=Math.floor((a.width||this.width||0)-2*v);a.height=Math.floor((a.height||this.height||0)-2*v);p(a.strokeWidth)&&(a.strokeWidth=c);return a};L.prototype.complexColor=
|
|
|
-function(a,c,v){var h=this.renderer,B,b,N,n,k,r,f,Q,m,q,K=[],t;d(this.renderer,"complexColor",{args:arguments},function(){a.radialGradient?b="radialGradient":a.linearGradient&&(b="linearGradient");if(b){N=a[b];k=h.gradients;r=a.stops;m=v.radialReference;y(N)&&(a[b]=N={x1:N[0],y1:N[1],x2:N[2],y2:N[3],gradientUnits:"userSpaceOnUse"});"radialGradient"===b&&m&&!p(N.gradientUnits)&&(n=N,N=S(N,h.getRadialAttr(m,n),{gradientUnits:"userSpaceOnUse"}));P(N,function(a,c){"id"!==c&&K.push(c,a)});P(r,function(a){K.push(a)});
|
|
|
-K=K.join(",");if(k[K])q=k[K].attr("id");else{N.id=q=z();var d=k[K]=h.createElement(b).attr(N).add(h.defs);d.radAttr=n;d.stops=[];r.forEach(function(a){0===a[1].indexOf("rgba")?(B=F.parse(a[1]),f=B.get("rgb"),Q=B.get("a")):(f=a[1],Q=1);a=h.createElement("stop").attr({offset:a[0],"stop-color":f,"stop-opacity":Q}).add(d);d.stops.push(a)})}t="url("+h.url+"#"+q+")";v.setAttribute(c,t);v.gradient=K;a.toString=function(){return t}}})};L.prototype.css=function(a){var c=this.styles,v={},d=this.element,h="",
|
|
|
-B=!c,N=["textOutline","textOverflow","width"];a&&a.color&&(a.fill=a.color);c&&P(a,function(a,d){c&&c[d]!==a&&(v[d]=a,B=!0)});if(B){c&&(a=k(c,v));if(a)if(null===a.width||"auto"===a.width)delete this.textWidth;else if("text"===d.nodeName.toLowerCase()&&a.width)var b=this.textWidth=K(a.width);this.styles=a;b&&!w&&this.renderer.forExport&&delete a.width;if(d.namespaceURI===this.SVG_NS){var n=function(a,c){return"-"+c.toLowerCase()};P(a,function(a,c){-1===N.indexOf(c)&&(h+=c.replace(/([A-Z])/g,n)+":"+
|
|
|
-a+";")});h&&t(d,"style",h)}else q(d,a);this.added&&("text"===this.element.nodeName&&this.renderer.buildText(this),a&&a.textOutline&&this.applyTextOutline(a.textOutline))}return this};L.prototype.dashstyleSetter=function(a){var c=this["stroke-width"];"inherit"===c&&(c=1);if(a=a&&a.toLowerCase()){var v=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=v.length;a--;)v[a]=""+K(v[a])*n(c,NaN);a=v.join(",").replace(/NaN/g,"none");this.element.setAttribute("stroke-dasharray",a)}};L.prototype.destroy=function(){var c=this,d=c.element||{},v=c.renderer,h=v.isSVG&&"SPAN"===d.nodeName&&c.parentGroup||void 0,b=d.ownerSVGElement;d.onclick=d.onmouseout=d.onmouseover=d.onmousemove=d.point=null;A(c);if(c.clipPath&&b){var n=c.clipPath;[].forEach.call(b.querySelectorAll("[clip-path],[CLIP-PATH]"),function(a){-1<a.getAttribute("clip-path").indexOf(n.element.id)&&
|
|
|
-a.removeAttribute("clip-path")});c.clipPath=n.destroy()}if(c.stops){for(b=0;b<c.stops.length;b++)c.stops[b].destroy();c.stops.length=0;c.stops=void 0}c.safeRemoveChild(d);for(v.styledMode||c.destroyShadows();h&&h.div&&0===h.div.childNodes.length;)d=h.parentGroup,c.safeRemoveChild(h.div),delete h.div,h=d;c.alignTo&&a(v.alignedObjects,c);P(c,function(a,v){c[v]&&c[v].parentGroup===c&&c[v].destroy&&c[v].destroy();delete c[v]})};L.prototype.destroyShadows=function(){(this.shadows||[]).forEach(function(a){this.safeRemoveChild(a)},
|
|
|
-this);this.shadows=void 0};L.prototype.destroyTextPath=function(a,c){var v=a.getElementsByTagName("text")[0];if(v){if(v.removeAttribute("dx"),v.removeAttribute("dy"),c.element.setAttribute("id",""),this.textPathWrapper&&v.getElementsByTagName("textPath").length){for(a=this.textPathWrapper.element.childNodes;a.length;)v.appendChild(a[0]);v.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())};L.prototype.dSetter=function(a,c,v){y(a)&&("string"===typeof a[0]&&(a=this.renderer.pathToSegments(a)),this.pathArray=a,a=a.reduce(function(a,c,v){return c&&c.join?(v?a+" ":"")+c.join(" "):(c||"").toString()},""));/(NaN| {2}|^$)/.test(a)&&(a="M 0 0");this[c]!==a&&(v.setAttribute(c,a),this[c]=a)};L.prototype.fadeOut=function(a){var c=this;c.animate({opacity:0},{duration:n(a,150),complete:function(){c.attr({y:-9999}).hide()}})};L.prototype.fillSetter=
|
|
|
-function(a,c,v){"string"===typeof a?v.setAttribute(c,a):a&&this.complexColor(a,c,v)};L.prototype.getBBox=function(a,d){var v,h=this.renderer,b=this.element,B=this.styles,N=this.textStr,r=h.cache,f=h.cacheKeys,y=b.namespaceURI===this.SVG_NS;d=n(d,this.rotation,0);var z=h.styledMode?b&&L.prototype.getStyle.call(b,"font-size"):B&&B.fontSize;if(p(N)){var m=N.toString();-1===m.indexOf("<")&&(m=m.replace(/[0-9]/g,"0"));m+=["",d,z,this.textWidth,B&&B.textOverflow,B&&B.fontWeight].join()}m&&!a&&(v=r[m]);
|
|
|
-if(!v){if(y||h.forExport){try{var K=this.fakeTS&&function(a){var c=b.querySelector(".highcharts-text-outline");c&&q(c,{display:a})};c(K)&&K("none");v=b.getBBox?k({},b.getBBox()):{width:b.offsetWidth,height:b.offsetHeight};c(K)&&K("")}catch(da){""}if(!v||0>v.width)v={width:0,height:0}}else v=this.htmlGetBBox();h.isSVG&&(a=v.width,h=v.height,y&&(v.height=h={"11px,17":14,"13px,20":16}[B&&B.fontSize+","+Math.round(h)]||h),d&&(B=d*x,v.width=Math.abs(h*Math.sin(B))+Math.abs(a*Math.cos(B)),v.height=Math.abs(h*
|
|
|
-Math.cos(B))+Math.abs(a*Math.sin(B))));if(m&&0<v.height){for(;250<f.length;)delete r[f.shift()];r[m]||f.push(m);r[m]=v}}return v};L.prototype.getStyle=function(a){return m.getComputedStyle(this.element||this,"").getPropertyValue(a)};L.prototype.hasClass=function(a){return-1!==(""+this.attr("class")).split(" ").indexOf(a)};L.prototype.hide=function(a){a?this.attr({y:-9999}):this.attr({visibility:"hidden"});return this};L.prototype.htmlGetBBox=function(){return{height:0,width:0,x:0,y:0}};L.prototype.init=
|
|
|
-function(a,c){this.element="span"===c?I(c):g.createElementNS(this.SVG_NS,c);this.renderer=a;d(this,"afterInit")};L.prototype.invert=function(a){this.inverted=a;this.updateTransform();return this};L.prototype.on=function(a,c){var v,d,h=this.element,b;u&&"click"===a?(h.ontouchstart=function(a){v=a.touches[0].clientX;d=a.touches[0].clientY},h.ontouchend=function(a){v&&4<=Math.sqrt(Math.pow(v-a.changedTouches[0].clientX,2)+Math.pow(d-a.changedTouches[0].clientY,2))||c.call(h,a);b=!0;!1!==a.cancelable&&
|
|
|
-a.preventDefault()},h.onclick=function(a){b||c.call(h,a)}):h["on"+a]=c;return this};L.prototype.opacitySetter=function(a,c,v){this.opacity=a=Number(Number(a).toFixed(3));v.setAttribute(c,a)};L.prototype.removeClass=function(a){return this.attr("class",(""+this.attr("class")).replace(M(a)?new RegExp("(^| )"+a+"( |$)"):a," ").replace(/ +/g," ").trim())};L.prototype.removeTextOutline=function(){var a=this.element.querySelector("tspan.highcharts-text-outline");a&&this.safeRemoveChild(a)};L.prototype.safeRemoveChild=
|
|
|
-function(a){var c=a.parentNode;c&&c.removeChild(a)};L.prototype.setRadialReference=function(a){var c=this.element.gradient&&this.renderer.gradients[this.element.gradient];this.element.radialReference=a;c&&c.radAttr&&c.animate(this.renderer.getRadialAttr(a,c.radAttr));return this};L.prototype.setTextPath=function(a,c){var v=this.element,d=this.text?this.text.element:v,b={textAnchor:"text-anchor"},n=!1,N=this.textPathWrapper,r=!N;c=S(!0,{enabled:!0,attributes:{dy:-5,startOffset:"50%",textAnchor:"middle"}},
|
|
|
-c);var k=l.filterUserAttributes(c.attributes);if(a&&c&&c.enabled){N&&null===N.element.parentNode?(r=!0,N=N.destroy()):N&&this.removeTextOutline.call(N.parentGroup);this.options&&this.options.padding&&(k.dx=-this.options.padding);N||(this.textPathWrapper=N=this.renderer.createElement("textPath"),n=!0);var B=N.element;(c=a.element.getAttribute("id"))||a.element.setAttribute("id",c=z());if(r)for(d.setAttribute("y",0),h(k.dx)&&d.setAttribute("x",-k.dx),a=[].slice.call(d.childNodes),r=0;r<a.length;r++){var y=
|
|
|
-a[r];y.nodeType!==Node.TEXT_NODE&&"tspan"!==y.nodeName||B.appendChild(y)}n&&N&&N.add({element:d});B.setAttributeNS("http://www.w3.org/1999/xlink","href",this.renderer.url+"#"+c);p(k.dy)&&(B.parentNode.setAttribute("dy",k.dy),delete k.dy);p(k.dx)&&(B.parentNode.setAttribute("dx",k.dx),delete k.dx);P(k,function(a,c){B.setAttribute(b[c]||c,a)});v.removeAttribute("transform");this.removeTextOutline.call(N);this.text&&!this.renderer.styledMode&&this.attr({fill:"none","stroke-width":0});this.applyTextOutline=
|
|
|
-this.updateTransform=f}else N&&(delete this.updateTransform,delete this.applyTextOutline,this.destroyTextPath(v,a),this.updateTransform(),this.options&&this.options.rotation&&this.applyTextOutline(this.options.style.textOutline));return this};L.prototype.shadow=function(a,c,v){var d=[],h=this.element,b=!1,n=this.oldShadowOptions;var r={color:H.neutralColor100,offsetX:1,offsetY:1,opacity:.15,width:3};var B;!0===a?B=r:"object"===typeof a&&(B=k(r,a));B&&(B&&n&&P(B,function(a,c){a!==n[c]&&(b=!0)}),b&&
|
|
|
-this.destroyShadows(),this.oldShadowOptions=B);if(!B)this.destroyShadows();else if(!this.shadows){var f=B.opacity/B.width;var y=this.parentInverted?"translate(-1,-1)":"translate("+B.offsetX+", "+B.offsetY+")";for(r=1;r<=B.width;r++){var z=h.cloneNode(!1);var m=2*B.width+1-2*r;t(z,{stroke:a.color||H.neutralColor100,"stroke-opacity":f*r,"stroke-width":m,transform:y,fill:"none"});z.setAttribute("class",(z.getAttribute("class")||"")+" highcharts-shadow");v&&(t(z,"height",Math.max(t(z,"height")-m,0)),
|
|
|
-z.cutHeight=m);c?c.element.appendChild(z):h.parentNode&&h.parentNode.insertBefore(z,h);d.push(z)}this.shadows=d}return this};L.prototype.show=function(a){return this.attr({visibility:a?"inherit":"visible"})};L.prototype.strokeSetter=function(a,c,v){this[c]=a;this.stroke&&this["stroke-width"]?(L.prototype.fillSetter.call(this,this.stroke,"stroke",v),v.setAttribute("stroke-width",this["stroke-width"]),this.hasStroke=!0):"stroke-width"===c&&0===a&&this.hasStroke?(v.removeAttribute("stroke"),this.hasStroke=
|
|
|
-!1):this.renderer.styledMode&&this["stroke-width"]&&(v.setAttribute("stroke-width",this["stroke-width"]),this.hasStroke=!0)};L.prototype.strokeWidth=function(){if(!this.renderer.styledMode)return this["stroke-width"]||0;var a=this.getStyle("stroke-width"),c=0;if(a.indexOf("px")===a.length-2)c=K(a);else if(""!==a){var v=g.createElementNS(b,"rect");t(v,{width:a,"stroke-width":0});this.element.parentNode.appendChild(v);c=v.getBBox().width;v.parentNode.removeChild(v)}return c};L.prototype.symbolAttr=
|
|
|
-function(a){var c=this;"x y r start end width height innerR anchorX anchorY clockwise".split(" ").forEach(function(v){c[v]=n(a[v],c[v])});c.attr({d:c.renderer.symbols[c.symbolName](c.x,c.y,c.width,c.height,c)})};L.prototype.textSetter=function(a){a!==this.textStr&&(delete this.textPxLength,this.textStr=a,this.added&&this.renderer.buildText(this))};L.prototype.titleSetter=function(a){var c=this.element,v=c.getElementsByTagName("title")[0]||g.createElementNS(this.SVG_NS,"title");c.insertBefore?c.insertBefore(v,
|
|
|
-c.firstChild):c.appendChild(v);v.textContent=String(n(a,"")).replace(/<[^>]*>/g,"").replace(/</g,"<").replace(/>/g,">")};L.prototype.toFront=function(){var a=this.element;a.parentNode.appendChild(a);return this};L.prototype.translate=function(a,c){return this.attr({translateX:a,translateY:c})};L.prototype.updateShadows=function(a,c,v){var d=this.shadows;if(d)for(var h=d.length;h--;)v.call(d[h],"height"===a?Math.max(c-(d[h].cutHeight||0),0):"d"===a?this.d:c,a,d[h])};L.prototype.updateTransform=
|
|
|
-function(){var a=this.translateX||0,c=this.translateY||0,d=this.scaleX,h=this.scaleY,b=this.inverted,r=this.rotation,N=this.matrix,k=this.element;b&&(a+=this.width,c+=this.height);a=["translate("+a+","+c+")"];p(N)&&a.push("matrix("+N.join(",")+")");b?a.push("rotate(90) scale(-1,1)"):r&&a.push("rotate("+r+" "+n(this.rotationOriginX,k.getAttribute("x"),0)+" "+n(this.rotationOriginY,k.getAttribute("y")||0)+")");(p(d)||p(h))&&a.push("scale("+n(d,1)+" "+n(h,1)+")");a.length&&k.setAttribute("transform",
|
|
|
-a.join(" "))};L.prototype.visibilitySetter=function(a,c,d){"inherit"===a?d.removeAttribute(c):this[c]!==a&&d.setAttribute(c,a);this[c]=a};L.prototype.xGetter=function(a){"circle"===this.element.nodeName&&("x"===a?a="cx":"y"===a&&(a="cy"));return this._defaultGetter(a)};L.prototype.zIndexSetter=function(a,c){var d=this.renderer,h=this.parentGroup,b=(h||d).element||d.box,n=this.element,N=!1;d=b===d.box;var r=this.added;var k;p(a)?(n.setAttribute("data-z-index",a),a=+a,this[c]===a&&(r=!1)):p(this[c])&&
|
|
|
-n.removeAttribute("data-z-index");this[c]=a;if(r){(a=this.zIndex)&&h&&(h.handleZ=!0);c=b.childNodes;for(k=c.length-1;0<=k&&!N;k--){h=c[k];r=h.getAttribute("data-z-index");var f=!p(r);if(h!==n)if(0>a&&f&&!d&&!k)b.insertBefore(n,c[k]),N=!0;else if(K(r)<=a||f&&(!p(a)||0<=a))b.insertBefore(n,c[k+1]||null),N=!0}N||(b.insertBefore(n,c[d?3:0]||null),N=!0)}return N};return L}();e.prototype["stroke-widthSetter"]=e.prototype.strokeSetter;e.prototype.yGetter=e.prototype.xGetter;e.prototype.matrixSetter=e.prototype.rotationOriginXSetter=
|
|
|
-e.prototype.rotationOriginYSetter=e.prototype.rotationSetter=e.prototype.scaleXSetter=e.prototype.scaleYSetter=e.prototype.translateXSetter=e.prototype.translateYSetter=e.prototype.verticalAlignSetter=function(a,c){this[c]=a;this.doTransform=!0};C.SVGElement=e;return C.SVGElement});O(e,"Core/Renderer/SVG/SVGLabel.js",[e["Core/Renderer/SVG/SVGElement.js"],e["Core/Utilities.js"]],function(e,l){function G(g,u){D(g)?g!==this[u]&&(this[u]=g,this.updateTextPadding()):this[u]=void 0}var C=this&&this.__extends||
|
|
|
-function(){var g=function(u,f){g=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,b){f.__proto__=b}||function(f,b){for(var m in b)b.hasOwnProperty(m)&&(f[m]=b[m])};return g(u,f)};return function(u,f){function w(){this.constructor=u}g(u,f);u.prototype=null===f?Object.create(f):(w.prototype=f.prototype,new w)}}(),H=l.defined,J=l.extend,D=l.isNumber,E=l.merge,A=l.pick,x=l.removeEvent;return function(g){function u(f,w,b,m,t,I,q,p,a,k){var d=g.call(this)||this;d.paddingSetter=G;d.paddingLeftSetter=
|
|
|
-G;d.paddingRightSetter=G;d.init(f,"g");d.textStr=w;d.x=b;d.y=m;d.anchorX=I;d.anchorY=q;d.baseline=a;d.className=k;"button"!==k&&d.addClass("highcharts-label");k&&d.addClass("highcharts-"+k);d.text=f.text("",0,0,p).attr({zIndex:1});if("string"===typeof t){var y=/^url\((.*?)\)$/.test(t);if(d.renderer.symbols[t]||y)d.symbolKey=t}d.bBox=u.emptyBBox;d.padding=3;d.baselineOffset=0;d.needsBox=f.styledMode||y;d.deferredAttr={};d.alignFactor=0;return d}C(u,g);u.prototype.alignSetter=function(f){f={left:0,
|
|
|
-center:.5,right:1}[f];f!==this.alignFactor&&(this.alignFactor=f,this.bBox&&D(this.xSetting)&&this.attr({x:this.xSetting}))};u.prototype.anchorXSetter=function(f,g){this.anchorX=f;this.boxAttr(g,Math.round(f)-this.getCrispAdjust()-this.xSetting)};u.prototype.anchorYSetter=function(f,g){this.anchorY=f;this.boxAttr(g,f-this.ySetting)};u.prototype.boxAttr=function(f,g){this.box?this.box.attr(f,g):this.deferredAttr[f]=g};u.prototype.css=function(f){if(f){var g={};f=E(f);u.textProps.forEach(function(b){"undefined"!==
|
|
|
-typeof f[b]&&(g[b]=f[b],delete f[b])});this.text.css(g);var b="width"in g;"fontSize"in g||"fontWeight"in g?this.updateTextPadding():b&&this.updateBoxSize()}return e.prototype.css.call(this,f)};u.prototype.destroy=function(){x(this.element,"mouseenter");x(this.element,"mouseleave");this.text&&this.text.destroy();this.box&&(this.box=this.box.destroy());e.prototype.destroy.call(this)};u.prototype.fillSetter=function(f,g){f&&(this.needsBox=!0);this.fill=f;this.boxAttr(g,f)};u.prototype.getBBox=function(){var f=
|
|
|
-this.bBox,g=this.padding,b=A(this.paddingLeft,g);return{width:this.width,height:this.height,x:f.x-b,y:f.y-g}};u.prototype.getCrispAdjust=function(){return this.renderer.styledMode&&this.box?this.box.strokeWidth()%2/2:(this["stroke-width"]?parseInt(this["stroke-width"],10):0)%2/2};u.prototype.heightSetter=function(f){this.heightSetting=f};u.prototype.on=function(f,g){var b=this,m=b.text,t=m&&"SPAN"===m.element.tagName?m:void 0;if(t){var I=function(m){("mouseenter"===f||"mouseleave"===f)&&m.relatedTarget instanceof
|
|
|
-Element&&(b.element.compareDocumentPosition(m.relatedTarget)&Node.DOCUMENT_POSITION_CONTAINED_BY||t.element.compareDocumentPosition(m.relatedTarget)&Node.DOCUMENT_POSITION_CONTAINED_BY)||g.call(b.element,m)};t.on(f,I)}e.prototype.on.call(b,f,I||g);return b};u.prototype.onAdd=function(){var f=this.textStr;this.text.add(this);this.attr({text:H(f)?f:"",x:this.x,y:this.y});this.box&&H(this.anchorX)&&this.attr({anchorX:this.anchorX,anchorY:this.anchorY})};u.prototype.rSetter=function(f,g){this.boxAttr(g,
|
|
|
-f)};u.prototype.shadow=function(f){f&&!this.renderer.styledMode&&(this.updateBoxSize(),this.box&&this.box.shadow(f));return this};u.prototype.strokeSetter=function(f,g){this.stroke=f;this.boxAttr(g,f)};u.prototype["stroke-widthSetter"]=function(f,g){f&&(this.needsBox=!0);this["stroke-width"]=f;this.boxAttr(g,f)};u.prototype["text-alignSetter"]=function(f){this.textAlign=f};u.prototype.textSetter=function(f){"undefined"!==typeof f&&this.text.attr({text:f});this.updateTextPadding()};u.prototype.updateBoxSize=
|
|
|
-function(){var f=this.text.element.style,g={},b=this.padding,m=this.bBox=D(this.widthSetting)&&D(this.heightSetting)&&!this.textAlign||!H(this.text.textStr)?u.emptyBBox:this.text.getBBox();this.width=this.getPaddedWidth();this.height=(this.heightSetting||m.height||0)+2*b;this.baselineOffset=b+Math.min(this.renderer.fontMetrics(f&&f.fontSize,this.text).b,m.height||Infinity);this.needsBox&&(this.box||(f=this.box=this.symbolKey?this.renderer.symbol(this.symbolKey):this.renderer.rect(),f.addClass(("button"===
|
|
|
-this.className?"":"highcharts-label-box")+(this.className?" highcharts-"+this.className+"-box":"")),f.add(this)),f=this.getCrispAdjust(),g.x=f,g.y=(this.baseline?-this.baselineOffset:0)+f,g.width=Math.round(this.width),g.height=Math.round(this.height),this.box.attr(J(g,this.deferredAttr)),this.deferredAttr={})};u.prototype.updateTextPadding=function(){var f=this.text;this.updateBoxSize();var g=this.baseline?0:this.baselineOffset,b=A(this.paddingLeft,this.padding);H(this.widthSetting)&&this.bBox&&
|
|
|
-("center"===this.textAlign||"right"===this.textAlign)&&(b+={center:.5,right:1}[this.textAlign]*(this.widthSetting-this.bBox.width));if(b!==f.x||g!==f.y)f.attr("x",b),f.hasBoxWidthChanged&&(this.bBox=f.getBBox(!0)),"undefined"!==typeof g&&f.attr("y",g);f.x=b;f.y=g};u.prototype.widthSetter=function(f){this.widthSetting=D(f)?f:void 0};u.prototype.getPaddedWidth=function(){var f=this.padding,g=A(this.paddingLeft,f);f=A(this.paddingRight,f);return(this.widthSetting||this.bBox.width||0)+g+f};u.prototype.xSetter=
|
|
|
-function(f){this.x=f;this.alignFactor&&(f-=this.alignFactor*this.getPaddedWidth(),this["forceAnimate:x"]=!0);this.xSetting=Math.round(f);this.attr("translateX",this.xSetting)};u.prototype.ySetter=function(f){this.ySetting=this.y=Math.round(f);this.attr("translateY",this.ySetting)};u.emptyBBox={width:0,height:0,x:0,y:0};u.textProps="color direction fontFamily fontSize fontStyle fontWeight lineHeight textAlign textDecoration textOutline textOverflow width".split(" ");return u}(e)});O(e,"Core/Renderer/SVG/TextBuilder.js",
|
|
|
-[e["Core/Globals.js"],e["Core/Utilities.js"],e["Core/Renderer/HTML/AST.js"]],function(e,l,F){var G=e.doc,H=e.SVG_NS,J=l.attr,D=l.isString,E=l.objectEach,A=l.pick;return function(){function x(g){var u=g.styles;this.renderer=g.renderer;this.svgElement=g;this.width=g.textWidth;this.textLineHeight=u&&u.lineHeight;this.textOutline=u&&u.textOutline;this.ellipsis=!(!u||"ellipsis"!==u.textOverflow);this.noWrap=!(!u||"nowrap"!==u.whiteSpace);this.fontSize=u&&u.fontSize}x.prototype.buildSVG=function(){var g=
|
|
|
-this.svgElement,u=g.element,f=g.renderer,w=A(g.textStr,"").toString(),b=-1!==w.indexOf("<"),m=u.childNodes,t=m.length;f=this.width&&!g.added&&f.box;var I=/<br.*?>/g;var q=[w,this.ellipsis,this.noWrap,this.textLineHeight,this.textOutline,this.fontSize,this.width].join();if(q!==g.textCache){g.textCache=q;for(delete g.actualWidth;t--;)u.removeChild(m[t]);b||this.ellipsis||this.width||-1!==w.indexOf(" ")&&(!this.noWrap||I.test(w))?""!==w&&(f&&f.appendChild(u),w=new F(w),this.modifyTree(w.nodes),w.addToDOM(g.element),
|
|
|
-this.modifyDOM(),this.ellipsis&&-1!==(u.textContent||"").indexOf("\u2026")&&g.attr("title",this.unescapeEntities(g.textStr||"",["<",">"])),f&&f.removeChild(u)):u.appendChild(G.createTextNode(this.unescapeEntities(w)));D(this.textOutline)&&g.applyTextOutline&&g.applyTextOutline(this.textOutline)}};x.prototype.modifyDOM=function(){var g=this,u=this.svgElement,f=J(u.element,"x");[].forEach.call(u.element.querySelectorAll("tspan.highcharts-br"),function(b){b.nextSibling&&b.previousSibling&&J(b,
|
|
|
-{dy:g.getLineHeight(b.nextSibling),x:f})});var w=this.width||0;if(w){var b=function(b,m){var q=b.textContent||"",p=q.replace(/([^\^])-/g,"$1- ").split(" "),a=!g.noWrap&&(1<p.length||1<u.element.childNodes.length),k=g.getLineHeight(m),d=0,y=u.actualWidth;if(g.ellipsis)q&&g.truncate(b,q,void 0,0,Math.max(0,w-parseInt(g.fontSize||12,10)),function(a,d){return a.substring(0,d)+"\u2026"});else if(a){q=[];for(a=[];m.firstChild&&m.firstChild!==b;)a.push(m.firstChild),m.removeChild(m.firstChild);for(;p.length;)p.length&&
|
|
|
-!g.noWrap&&0<d&&(q.push(b.textContent||""),b.textContent=p.join(" ").replace(/- /g,"-")),g.truncate(b,void 0,p,0===d?y||0:0,w,function(a,d){return p.slice(0,d).join(" ").replace(/- /g,"-")}),y=u.actualWidth,d++;a.forEach(function(a){m.insertBefore(a,b)});q.forEach(function(a){m.insertBefore(G.createTextNode(a),b);a=G.createElementNS(H,"tspan");a.textContent="\u200b";J(a,{dy:k,x:f});m.insertBefore(a,b)})}},m=function(f){[].slice.call(f.childNodes).forEach(function(t){t.nodeType===Node.TEXT_NODE?b(t,
|
|
|
-f):(-1!==t.className.baseVal.indexOf("highcharts-br")&&(u.actualWidth=0),m(t))})};m(u.element)}};x.prototype.getLineHeight=function(g){var u;g=g.nodeType===Node.TEXT_NODE?g.parentElement:g;this.renderer.styledMode||(u=g&&/(px|em)$/.test(g.style.fontSize)?g.style.fontSize:this.fontSize||this.renderer.style.fontSize||12);return this.textLineHeight?parseInt(this.textLineHeight.toString(),10):this.renderer.fontMetrics(u,g||this.svgElement.element).h};x.prototype.modifyTree=function(g){var u=this,f=function(w,
|
|
|
-b){var m=w.tagName,t=u.renderer.styledMode,I=w.attributes||{};if("b"===m||"strong"===m)t?I["class"]="highcharts-strong":I.style="font-weight:bold;"+(I.style||"");else if("i"===m||"em"===m)t?I["class"]="highcharts-emphasized":I.style="font-style:italic;"+(I.style||"");D(I.style)&&(I.style=I.style.replace(/(;| |^)color([ :])/,"$1fill$2"));"br"===m&&(I["class"]="highcharts-br",w.textContent="\u200b",(b=g[b+1])&&b.textContent&&(b.textContent=b.textContent.replace(/^ +/gm,"")));"#text"!==m&&"a"!==m&&(w.tagName=
|
|
|
-"tspan");w.attributes=I;w.children&&w.children.filter(function(b){return"#text"!==b.tagName}).forEach(f)};for(g.forEach(f);g[0]&&"tspan"===g[0].tagName&&!g[0].children;)g.splice(0,1)};x.prototype.truncate=function(g,u,f,w,b,m){var t=this.svgElement,I=t.renderer,q=t.rotation,p=[],a=f?1:0,k=(u||f||"").length,d=k,y,c=function(a,c){c=c||a;var d=g.parentNode;if(d&&"undefined"===typeof p[c])if(d.getSubStringLength)try{p[c]=w+d.getSubStringLength(0,f?c+1:c)}catch(n){""}else I.getSpanWidth&&(g.textContent=
|
|
|
-m(u||f,a),p[c]=w+I.getSpanWidth(t,g));return p[c]};t.rotation=0;var h=c(g.textContent.length);if(w+h>b){for(;a<=k;)d=Math.ceil((a+k)/2),f&&(y=m(f,d)),h=c(d,y&&y.length-1),a===k?a=k+1:h>b?k=d-1:a=d;0===k?g.textContent="":u&&k===u.length-1||(g.textContent=y||m(u||f,d))}f&&f.splice(0,d);t.actualWidth=h;t.rotation=q};x.prototype.unescapeEntities=function(g,u){E(this.renderer.escapes,function(f,w){u&&-1!==u.indexOf(f)||(g=g.toString().replace(new RegExp(f,"g"),w))});return g};return x}()});O(e,"Core/Renderer/SVG/SVGRenderer.js",
|
|
|
-[e["Core/Color/Color.js"],e["Core/Globals.js"],e["Core/Color/Palette.js"],e["Core/Renderer/SVG/SVGElement.js"],e["Core/Renderer/SVG/SVGLabel.js"],e["Core/Renderer/HTML/AST.js"],e["Core/Renderer/SVG/TextBuilder.js"],e["Core/Utilities.js"]],function(e,l,F,C,H,J,D,E){var A=E.addEvent,x=E.attr,g=E.createElement,u=E.css,f=E.defined,w=E.destroyObjectProperties,b=E.extend,m=E.isArray,t=E.isNumber,I=E.isObject,q=E.isString,p=E.merge,a=E.pick,k=E.pInt,d=E.uniqueKey,y=l.charts,c=l.deg2rad,h=l.doc,M=l.isFirefox,
|
|
|
-S=l.isMS,P=l.isWebKit;E=l.noop;var n=l.SVG_NS,K=l.symbolSizes,r=l.win,z,L=function(){function n(a,c,d,h,b,n,r){this.width=this.url=this.style=this.isSVG=this.imgCount=this.height=this.gradients=this.globalAnimation=this.defs=this.chartIndex=this.cacheKeys=this.cache=this.boxWrapper=this.box=this.alignedObjects=void 0;this.init(a,c,d,h,b,n,r)}n.prototype.init=function(a,c,d,b,n,N,k){var v=this.createElement("svg").attr({version:"1.1","class":"highcharts-root"});k||v.css(this.getStyle(b));b=v.element;
|
|
|
-a.appendChild(b);x(a,"dir","ltr");-1===a.innerHTML.indexOf("xmlns")&&x(b,"xmlns",this.SVG_NS);this.isSVG=!0;this.box=b;this.boxWrapper=v;this.alignedObjects=[];this.url=this.getReferenceURL();this.createElement("desc").add().element.appendChild(h.createTextNode("Created with Highcharts 9.0.1"));this.defs=this.createElement("defs").add();this.allowHTML=N;this.forExport=n;this.styledMode=k;this.gradients={};this.cache={};this.cacheKeys=[];this.imgCount=0;this.setSize(c,d,!1);var f;M&&a.getBoundingClientRect&&
|
|
|
-(c=function(){u(a,{left:0,top:0});f=a.getBoundingClientRect();u(a,{left:Math.ceil(f.left)-f.left+"px",top:Math.ceil(f.top)-f.top+"px"})},c(),this.unSubPixelFix=A(r,"resize",c))};n.prototype.definition=function(a){return(new J([a])).addToDOM(this.defs.element)};n.prototype.getReferenceURL=function(){if((M||P)&&h.getElementsByTagName("base").length){if(!f(z)){var a=d();a=(new J([{tagName:"svg",attributes:{width:8,height:8},children:[{tagName:"defs",children:[{tagName:"clipPath",attributes:{id:a},children:[{tagName:"rect",
|
|
|
-attributes:{width:4,height:4}}]}]},{tagName:"rect",attributes:{id:"hitme",width:8,height:8,"clip-path":"url(#"+a+")",fill:"rgba(0,0,0,0.001)"}}]}])).addToDOM(h.body);u(a,{position:"fixed",top:0,left:0,zIndex:9E5});var c=h.elementFromPoint(6,6);z="hitme"===(c&&c.id);h.body.removeChild(a)}if(z)return r.location.href.split("#")[0].replace(/<[^>]*>/g,"").replace(/([\('\)])/g,"\\$1").replace(/ /g,"%20")}return""};n.prototype.getStyle=function(a){return this.style=b({fontFamily:'"Lucida Grande", "Lucida Sans Unicode", Arial, Helvetica, sans-serif',
|
|
|
-fontSize:"12px"},a)};n.prototype.setStyle=function(a){this.boxWrapper.css(this.getStyle(a))};n.prototype.isHidden=function(){return!this.boxWrapper.getBBox().width};n.prototype.destroy=function(){var a=this.defs;this.box=null;this.boxWrapper=this.boxWrapper.destroy();w(this.gradients||{});this.gradients=null;a&&(this.defs=a.destroy());this.unSubPixelFix&&this.unSubPixelFix();return this.alignedObjects=null};n.prototype.createElement=function(a){var c=new this.Element;c.init(this,a);return c};n.prototype.getRadialAttr=
|
|
|
-function(a,c){return{cx:a[0]-a[2]/2+c.cx*a[2],cy:a[1]-a[2]/2+c.cy*a[2],r:c.r*a[2]}};n.prototype.buildText=function(a){(new D(a)).buildSVG()};n.prototype.getContrast=function(a){a=e.parse(a).rgba;a[0]*=1;a[1]*=1.2;a[2]*=.5;return 459<a[0]+a[1]+a[2]?"#000000":"#FFFFFF"};n.prototype.button=function(a,c,d,h,n,N,r,k,f,z){var v=this.label(a,c,d,f,void 0,void 0,z,void 0,"button"),y=0,m=this.styledMode,R=n?p(n):{};a=R&&R.style||{};R=J.filterUserAttributes(R);v.attr(p({padding:8,r:2},R));if(!m){R=p({fill:F.neutralColor3,
|
|
|
-stroke:F.neutralColor20,"stroke-width":1,style:{color:F.neutralColor80,cursor:"pointer",fontWeight:"normal"}},{style:a},R);var B=R.style;delete R.style;N=p(R,{fill:F.neutralColor10},J.filterUserAttributes(N||{}));var K=N.style;delete N.style;r=p(R,{fill:F.highlightColor10,style:{color:F.neutralColor100,fontWeight:"bold"}},J.filterUserAttributes(r||{}));var q=r.style;delete r.style;k=p(R,{style:{color:F.neutralColor20}},J.filterUserAttributes(k||{}));var t=k.style;delete k.style}A(v.element,S?"mouseover":
|
|
|
-"mouseenter",function(){3!==y&&v.setState(1)});A(v.element,S?"mouseout":"mouseleave",function(){3!==y&&v.setState(y)});v.setState=function(a){1!==a&&(v.state=y=a);v.removeClass(/highcharts-button-(normal|hover|pressed|disabled)/).addClass("highcharts-button-"+["normal","hover","pressed","disabled"][a||0]);m||v.attr([R,N,r,k][a||0]).css([B,K,q,t][a||0])};m||v.attr(R).css(b({cursor:"default"},B));return v.on("click",function(a){3!==y&&h.call(v,a)})};n.prototype.crispLine=function(a,c,d){void 0===d&&
|
|
|
-(d="round");var v=a[0],h=a[1];v[1]===h[1]&&(v[1]=h[1]=Math[d](v[1])-c%2/2);v[2]===h[2]&&(v[2]=h[2]=Math[d](v[2])+c%2/2);return a};n.prototype.path=function(a){var c=this.styledMode?{}:{fill:"none"};m(a)?c.d=a:I(a)&&b(c,a);return this.createElement("path").attr(c)};n.prototype.circle=function(a,c,d){a=I(a)?a:"undefined"===typeof a?{}:{x:a,y:c,r:d};c=this.createElement("circle");c.xSetter=c.ySetter=function(a,c,d){d.setAttribute("c"+c,a)};return c.attr(a)};n.prototype.arc=function(a,c,d,h,b,n){I(a)?
|
|
|
-(h=a,c=h.y,d=h.r,a=h.x):h={innerR:h,start:b,end:n};a=this.symbol("arc",a,c,d,d,h);a.r=d;return a};n.prototype.rect=function(a,c,d,h,b,n){b=I(a)?a.r:b;var v=this.createElement("rect");a=I(a)?a:"undefined"===typeof a?{}:{x:a,y:c,width:Math.max(d,0),height:Math.max(h,0)};this.styledMode||("undefined"!==typeof n&&(a.strokeWidth=n,a=v.crisp(a)),a.fill="none");b&&(a.r=b);v.rSetter=function(a,c,d){v.r=a;x(d,{rx:a,ry:a})};v.rGetter=function(){return v.r};return v.attr(a)};n.prototype.setSize=function(c,d,
|
|
|
-h){var v=this.alignedObjects,b=v.length;this.width=c;this.height=d;for(this.boxWrapper.animate({width:c,height:d},{step:function(){this.attr({viewBox:"0 0 "+this.attr("width")+" "+this.attr("height")})},duration:a(h,!0)?void 0:0});b--;)v[b].align()};n.prototype.g=function(a){var c=this.createElement("g");return a?c.attr({"class":"highcharts-"+a}):c};n.prototype.image=function(a,c,d,h,n,N){var v={preserveAspectRatio:"none"},k=function(a,c){a.setAttributeNS?a.setAttributeNS("http://www.w3.org/1999/xlink",
|
|
|
-"href",c):a.setAttribute("hc-svg-href",c)},f=function(c){k(y.element,a);N.call(y,c)};1<arguments.length&&b(v,{x:c,y:d,width:h,height:n});var y=this.createElement("image").attr(v);N?(k(y.element,"data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw=="),v=new r.Image,A(v,"load",f),v.src=a,v.complete&&f({})):k(y.element,a);return y};n.prototype.symbol=function(c,d,n,k,r,N){var v=this,z=/^url\((.*?)\)$/,m=z.test(c),R=!m&&(this.symbols[c]?c:"circle"),B=R&&this.symbols[R],p;if(B){"number"===
|
|
|
-typeof d&&(p=B.call(this.symbols,Math.round(d||0),Math.round(n||0),k||0,r||0,N));var q=this.path(p);v.styledMode||q.attr("fill","none");b(q,{symbolName:R,x:d,y:n,width:k,height:r});N&&b(q,N)}else if(m){var t=c.match(z)[1];q=this.image(t);q.imgwidth=a(K[t]&&K[t].width,N&&N.width);q.imgheight=a(K[t]&&K[t].height,N&&N.height);var M=function(){q.attr({width:q.width,height:q.height})};["width","height"].forEach(function(a){q[a+"Setter"]=function(a,c){var d={},v=this["img"+c],h="width"===c?"translateX":
|
|
|
-"translateY";this[c]=a;f(v)&&(N&&"within"===N.backgroundSize&&this.width&&this.height&&(v=Math.round(v*Math.min(this.width/this.imgwidth,this.height/this.imgheight))),this.element&&this.element.setAttribute(c,v),this.alignByTranslate||(d[h]=((this[c]||0)-v)/2,this.attr(d)))}});f(d)&&q.attr({x:d,y:n});q.isImg=!0;f(q.imgwidth)&&f(q.imgheight)?M():(q.attr({width:0,height:0}),g("img",{onload:function(){var a=y[v.chartIndex];0===this.width&&(u(this,{position:"absolute",top:"-999em"}),h.body.appendChild(this));
|
|
|
-K[t]={width:this.width,height:this.height};q.imgwidth=this.width;q.imgheight=this.height;q.element&&M();this.parentNode&&this.parentNode.removeChild(this);v.imgCount--;if(!v.imgCount&&a&&!a.hasLoaded)a.onload()},src:t}),this.imgCount++)}return q};n.prototype.clipRect=function(a,c,h,b){var v=d()+"-",n=this.createElement("clipPath").attr({id:v}).add(this.defs);a=this.rect(a,c,h,b,0).add(n);a.id=v;a.clipPath=n;a.count=0;return a};n.prototype.text=function(a,c,d,h){var v={};if(h&&(this.allowHTML||!this.forExport))return this.html(a,
|
|
|
-c,d);v.x=Math.round(c||0);d&&(v.y=Math.round(d));f(a)&&(v.text=a);a=this.createElement("text").attr(v);h||(a.xSetter=function(a,c,d){var v=d.getElementsByTagName("tspan"),h=d.getAttribute(c),b;for(b=0;b<v.length;b++){var n=v[b];n.getAttribute(c)===h&&n.setAttribute(c,a)}d.setAttribute(c,a)});return a};n.prototype.fontMetrics=function(a,c){a=!this.styledMode&&/px/.test(a)||!r.getComputedStyle?a||c&&c.style&&c.style.fontSize||this.style&&this.style.fontSize:c&&C.prototype.getStyle.call(c,"font-size");
|
|
|
-a=/px/.test(a)?k(a):12;c=24>a?a+3:Math.round(1.2*a);return{h:c,b:Math.round(.8*c),f:a}};n.prototype.rotCorr=function(a,d,h){var v=a;d&&h&&(v=Math.max(v*Math.cos(d*c),4));return{x:-a/3*Math.sin(d*c),y:v}};n.prototype.pathToSegments=function(a){for(var c=[],d=[],h={A:8,C:7,H:2,L:3,M:3,Q:5,S:5,T:3,V:2},b=0;b<a.length;b++)q(d[0])&&t(a[b])&&d.length===h[d[0].toUpperCase()]&&a.splice(b,0,d[0].replace("M","L").replace("m","l")),"string"===typeof a[b]&&(d.length&&c.push(d.slice(0)),d.length=0),d.push(a[b]);
|
|
|
-c.push(d.slice(0));return c};n.prototype.label=function(a,c,d,h,b,n,k,r,f){return new H(this,a,c,d,h,b,n,k,r,f)};return n}();L.prototype.Element=C;L.prototype.SVG_NS=n;L.prototype.draw=E;L.prototype.escapes={"&":"&","<":"<",">":">","'":"'",'"':"""};L.prototype.symbols={circle:function(a,c,d,h){return this.arc(a+d/2,c+h/2,d/2,h/2,{start:.5*Math.PI,end:2.5*Math.PI,open:!1})},square:function(a,c,d,h){return[["M",a,c],["L",a+d,c],["L",a+d,c+h],["L",a,c+h],["Z"]]},triangle:function(a,
|
|
|
-c,d,h){return[["M",a+d/2,c],["L",a+d,c+h],["L",a,c+h],["Z"]]},"triangle-down":function(a,c,d,h){return[["M",a,c],["L",a+d,c],["L",a+d/2,c+h],["Z"]]},diamond:function(a,c,d,h){return[["M",a+d/2,c],["L",a+d,c+h/2],["L",a+d/2,c+h],["L",a,c+h/2],["Z"]]},arc:function(c,d,h,b,n){var v=[];if(n){var k=n.start||0,r=n.end||0,y=n.r||h;h=n.r||b||h;var z=.001>Math.abs(r-k-2*Math.PI);r-=.001;b=n.innerR;z=a(n.open,z);var m=Math.cos(k),p=Math.sin(k),q=Math.cos(r),K=Math.sin(r);k=a(n.longArc,.001>r-k-Math.PI?0:1);
|
|
|
-v.push(["M",c+y*m,d+h*p],["A",y,h,0,k,a(n.clockwise,1),c+y*q,d+h*K]);f(b)&&v.push(z?["M",c+b*q,d+b*K]:["L",c+b*q,d+b*K],["A",b,b,0,k,f(n.clockwise)?1-n.clockwise:0,c+b*m,d+b*p]);z||v.push(["Z"])}return v},callout:function(a,c,d,h,b){var v=Math.min(b&&b.r||0,d,h),n=v+6,k=b&&b.anchorX;b=b&&b.anchorY||0;var r=[["M",a+v,c],["L",a+d-v,c],["C",a+d,c,a+d,c,a+d,c+v],["L",a+d,c+h-v],["C",a+d,c+h,a+d,c+h,a+d-v,c+h],["L",a+v,c+h],["C",a,c+h,a,c+h,a,c+h-v],["L",a,c+v],["C",a,c,a,c,a+v,c]];if(!t(k))return r;a+
|
|
|
-k>=d?b>c+n&&b<c+h-n?r.splice(3,1,["L",a+d,b-6],["L",a+d+6,b],["L",a+d,b+6],["L",a+d,c+h-v]):r.splice(3,1,["L",a+d,h/2],["L",k,b],["L",a+d,h/2],["L",a+d,c+h-v]):0>=a+k?b>c+n&&b<c+h-n?r.splice(7,1,["L",a,b+6],["L",a-6,b],["L",a,b-6],["L",a,c+v]):r.splice(7,1,["L",a,h/2],["L",k,b],["L",a,h/2],["L",a,c+v]):b&&b>h&&k>a+n&&k<a+d-n?r.splice(5,1,["L",k+6,c+h],["L",k,c+h+6],["L",k-6,c+h],["L",a+v,c+h]):b&&0>b&&k>a+n&&k<a+d-n&&r.splice(1,1,["L",k-6,c],["L",k,c-6],["L",k+6,c],["L",d-v,c]);return r}};l.SVGRenderer=
|
|
|
-L;l.Renderer=l.SVGRenderer;return l.Renderer});O(e,"Core/Renderer/HTML/HTMLElement.js",[e["Core/Globals.js"],e["Core/Renderer/SVG/SVGElement.js"],e["Core/Utilities.js"]],function(e,l,F){var G=F.css,H=F.defined,J=F.extend,D=F.pick,E=F.pInt,A=e.isFirefox;J(l.prototype,{htmlCss:function(x){var g="SPAN"===this.element.tagName&&x&&"width"in x,u=D(g&&x.width,void 0);if(g){delete x.width;this.textWidth=u;var f=!0}x&&"ellipsis"===x.textOverflow&&(x.whiteSpace="nowrap",x.overflow="hidden");this.styles=J(this.styles,
|
|
|
-x);G(this.element,x);f&&this.htmlUpdateTransform();return this},htmlGetBBox:function(){var x=this.element;return{x:x.offsetLeft,y:x.offsetTop,width:x.offsetWidth,height:x.offsetHeight}},htmlUpdateTransform:function(){if(this.added){var x=this.renderer,g=this.element,u=this.translateX||0,f=this.translateY||0,w=this.x||0,b=this.y||0,m=this.textAlign||"left",t={left:0,center:.5,right:1}[m],I=this.styles,q=I&&I.whiteSpace;G(g,{marginLeft:u,marginTop:f});!x.styledMode&&this.shadows&&this.shadows.forEach(function(a){G(a,
|
|
|
-{marginLeft:u+1,marginTop:f+1})});this.inverted&&[].forEach.call(g.childNodes,function(a){x.invertChild(a,g)});if("SPAN"===g.tagName){I=this.rotation;var p=this.textWidth&&E(this.textWidth),a=[I,m,g.innerHTML,this.textWidth,this.textAlign].join(),k;(k=p!==this.oldTextWidth)&&!(k=p>this.oldTextWidth)&&((k=this.textPxLength)||(G(g,{width:"",whiteSpace:q||"nowrap"}),k=g.offsetWidth),k=k>p);k&&(/[ \-]/.test(g.textContent||g.innerText)||"ellipsis"===g.style.textOverflow)?(G(g,{width:p+"px",display:"block",
|
|
|
-whiteSpace:q||"normal"}),this.oldTextWidth=p,this.hasBoxWidthChanged=!0):this.hasBoxWidthChanged=!1;a!==this.cTT&&(q=x.fontMetrics(g.style.fontSize,g).b,!H(I)||I===(this.oldRotation||0)&&m===this.oldAlign||this.setSpanRotation(I,t,q),this.getSpanCorrection(!H(I)&&this.textPxLength||g.offsetWidth,q,t,I,m));G(g,{left:w+(this.xCorr||0)+"px",top:b+(this.yCorr||0)+"px"});this.cTT=a;this.oldRotation=I;this.oldAlign=m}}else this.alignOnAdd=!0},setSpanRotation:function(x,g,u){var f={},w=this.renderer.getTransformKey();
|
|
|
-f[w]=f.transform="rotate("+x+"deg)";f[w+(A?"Origin":"-origin")]=f.transformOrigin=100*g+"% "+u+"px";G(this.element,f)},getSpanCorrection:function(x,g,u){this.xCorr=-x*u;this.yCorr=-g}});return l});O(e,"Core/Renderer/HTML/HTMLRenderer.js",[e["Core/Globals.js"],e["Core/Renderer/HTML/AST.js"],e["Core/Renderer/SVG/SVGElement.js"],e["Core/Renderer/SVG/SVGRenderer.js"],e["Core/Utilities.js"]],function(e,l,F,C,H){var G=e.isFirefox,D=e.isMS,E=e.isWebKit,A=e.win,x=H.attr,g=H.createElement,u=H.extend,f=H.pick;
|
|
|
-u(C.prototype,{getTransformKey:function(){return D&&!/Edge/.test(A.navigator.userAgent)?"-ms-transform":E?"-webkit-transform":G?"MozTransform":A.opera?"-o-transform":""},html:function(w,b,m){var t=this.createElement("span"),I=t.element,q=t.renderer,p=q.isSVG,a=function(a,d){["opacity","visibility"].forEach(function(b){a[b+"Setter"]=function(c,h,k){var f=a.div?a.div.style:d;F.prototype[b+"Setter"].call(this,c,h,k);f&&(f[h]=c)}});a.addedSetters=!0};t.textSetter=function(a){a!==this.textStr&&(delete this.bBox,
|
|
|
-delete this.oldTextWidth,l.setElementHTML(this.element,f(a,"")),this.textStr=a,t.doTransform=!0)};p&&a(t,t.element.style);t.xSetter=t.ySetter=t.alignSetter=t.rotationSetter=function(a,d){"align"===d?t.alignValue=t.textAlign=a:t[d]=a;t.doTransform=!0};t.afterSetters=function(){this.doTransform&&(this.htmlUpdateTransform(),this.doTransform=!1)};t.attr({text:w,x:Math.round(b),y:Math.round(m)}).css({position:"absolute"});q.styledMode||t.css({fontFamily:this.style.fontFamily,fontSize:this.style.fontSize});
|
|
|
-I.style.whiteSpace="nowrap";t.css=t.htmlCss;p&&(t.add=function(b){var d=q.box.parentNode,k=[];if(this.parentGroup=b){var c=b.div;if(!c){for(;b;)k.push(b),b=b.parentGroup;k.reverse().forEach(function(h){function b(a,c){h[c]=a;"translateX"===c?n.left=a+"px":n.top=a+"px";h.doTransform=!0}var f=x(h.element,"class"),y=h.styles||{};c=h.div=h.div||g("div",f?{className:f}:void 0,{position:"absolute",left:(h.translateX||0)+"px",top:(h.translateY||0)+"px",display:h.display,opacity:h.opacity,cursor:y.cursor,
|
|
|
-pointerEvents:y.pointerEvents},c||d);var n=c.style;u(h,{classSetter:function(a){return function(c){this.element.setAttribute("class",c);a.className=c}}(c),on:function(){k[0].div&&t.on.apply({element:k[0].div},arguments);return h},translateXSetter:b,translateYSetter:b});h.addedSetters||a(h)})}}else c=d;c.appendChild(I);t.added=!0;t.alignOnAdd&&t.htmlUpdateTransform();return t});return t}});return C});O(e,"Core/Time.js",[e["Core/Globals.js"],e["Core/Utilities.js"]],function(e,l){var G=e.win,C=l.defined,
|
|
|
-H=l.error,J=l.extend,D=l.isObject,E=l.merge,A=l.objectEach,x=l.pad,g=l.pick,u=l.splat,f=l.timeUnits;"";l=function(){function w(b){this.options={};this.variableTimezone=this.useUTC=!1;this.Date=G.Date;this.getTimezoneOffset=this.timezoneOffsetFunction();this.update(b)}w.prototype.get=function(b,f){if(this.variableTimezone||this.timezoneOffset){var m=f.getTime(),g=m-this.getTimezoneOffset(f);f.setTime(g);b=f["getUTC"+b]();f.setTime(m);return b}return this.useUTC?f["getUTC"+b]():f["get"+b]()};w.prototype.set=
|
|
|
-function(b,f,t){if(this.variableTimezone||this.timezoneOffset){if("Milliseconds"===b||"Seconds"===b||"Minutes"===b&&0===this.getTimezoneOffset(f)%36E5)return f["setUTC"+b](t);var m=this.getTimezoneOffset(f);m=f.getTime()-m;f.setTime(m);f["setUTC"+b](t);b=this.getTimezoneOffset(f);m=f.getTime()+b;return f.setTime(m)}return this.useUTC?f["setUTC"+b](t):f["set"+b](t)};w.prototype.update=function(b){var f=g(b&&b.useUTC,!0);this.options=b=E(!0,this.options||{},b);this.Date=b.Date||G.Date||Date;this.timezoneOffset=
|
|
|
-(this.useUTC=f)&&b.timezoneOffset;this.getTimezoneOffset=this.timezoneOffsetFunction();this.variableTimezone=f&&!(!b.getTimezoneOffset&&!b.timezone)};w.prototype.makeTime=function(b,f,t,I,q,p){if(this.useUTC){var a=this.Date.UTC.apply(0,arguments);var k=this.getTimezoneOffset(a);a+=k;var d=this.getTimezoneOffset(a);k!==d?a+=d-k:k-36E5!==this.getTimezoneOffset(a-36E5)||e.isSafari||(a-=36E5)}else a=(new this.Date(b,f,g(t,1),g(I,0),g(q,0),g(p,0))).getTime();return a};w.prototype.timezoneOffsetFunction=
|
|
|
-function(){var b=this,f=this.options,t=f.moment||G.moment;if(!this.useUTC)return function(b){return 6E4*(new Date(b.toString())).getTimezoneOffset()};if(f.timezone){if(t)return function(b){return 6E4*-t.tz(b,f.timezone).utcOffset()};H(25)}return this.useUTC&&f.getTimezoneOffset?function(b){return 6E4*f.getTimezoneOffset(b.valueOf())}:function(){return 6E4*(b.timezoneOffset||0)}};w.prototype.dateFormat=function(b,f,t){var m;if(!C(f)||isNaN(f))return(null===(m=e.defaultOptions.lang)||void 0===m?void 0:
|
|
|
-m.invalidDate)||"";b=g(b,"%Y-%m-%d %H:%M:%S");var q=this;m=new this.Date(f);var p=this.get("Hours",m),a=this.get("Day",m),k=this.get("Date",m),d=this.get("Month",m),y=this.get("FullYear",m),c=e.defaultOptions.lang,h=null===c||void 0===c?void 0:c.weekdays,M=null===c||void 0===c?void 0:c.shortWeekdays;m=J({a:M?M[a]:h[a].substr(0,3),A:h[a],d:x(k),e:x(k,2," "),w:a,b:c.shortMonths[d],B:c.months[d],m:x(d+1),o:d+1,y:y.toString().substr(2,2),Y:y,H:x(p),k:p,I:x(p%12||12),l:p%12||12,M:x(this.get("Minutes",
|
|
|
-m)),p:12>p?"AM":"PM",P:12>p?"am":"pm",S:x(m.getSeconds()),L:x(Math.floor(f%1E3),3)},e.dateFormats);A(m,function(a,c){for(;-1!==b.indexOf("%"+c);)b=b.replace("%"+c,"function"===typeof a?a.call(q,f):a)});return t?b.substr(0,1).toUpperCase()+b.substr(1):b};w.prototype.resolveDTLFormat=function(b){return D(b,!0)?b:(b=u(b),{main:b[0],from:b[1],to:b[2]})};w.prototype.getTimeTicks=function(b,m,t,I){var q=this,p=[],a={};var k=new q.Date(m);var d=b.unitRange,y=b.count||1,c;I=g(I,1);if(C(m)){q.set("Milliseconds",
|
|
|
-k,d>=f.second?0:y*Math.floor(q.get("Milliseconds",k)/y));d>=f.second&&q.set("Seconds",k,d>=f.minute?0:y*Math.floor(q.get("Seconds",k)/y));d>=f.minute&&q.set("Minutes",k,d>=f.hour?0:y*Math.floor(q.get("Minutes",k)/y));d>=f.hour&&q.set("Hours",k,d>=f.day?0:y*Math.floor(q.get("Hours",k)/y));d>=f.day&&q.set("Date",k,d>=f.month?1:Math.max(1,y*Math.floor(q.get("Date",k)/y)));if(d>=f.month){q.set("Month",k,d>=f.year?0:y*Math.floor(q.get("Month",k)/y));var h=q.get("FullYear",k)}d>=f.year&&q.set("FullYear",
|
|
|
-k,h-h%y);d===f.week&&(h=q.get("Day",k),q.set("Date",k,q.get("Date",k)-h+I+(h<I?-7:0)));h=q.get("FullYear",k);I=q.get("Month",k);var M=q.get("Date",k),u=q.get("Hours",k);m=k.getTime();!q.variableTimezone&&q.useUTC||!C(t)||(c=t-m>4*f.month||q.getTimezoneOffset(m)!==q.getTimezoneOffset(t));m=k.getTime();for(k=1;m<t;)p.push(m),m=d===f.year?q.makeTime(h+k*y,0):d===f.month?q.makeTime(h,I+k*y):!c||d!==f.day&&d!==f.week?c&&d===f.hour&&1<y?q.makeTime(h,I,M,u+k*y):m+d*y:q.makeTime(h,I,M+k*y*(d===f.day?1:7)),
|
|
|
-k++;p.push(m);d<=f.hour&&1E4>p.length&&p.forEach(function(c){0===c%18E5&&"000000000"===q.dateFormat("%H%M%S%L",c)&&(a[c]="day")})}p.info=J(b,{higherRanks:a,totalRange:d*y});return p};return w}();e.Time=l;return e.Time});O(e,"Core/Options.js",[e["Core/Globals.js"],e["Core/Color/Color.js"],e["Core/Color/Palette.js"],e["Core/Time.js"],e["Core/Utilities.js"]],function(e,l,F,C,H){var G=e.isTouchDevice,D=e.svg;l=l.parse;H=H.merge;"";e.defaultOptions={colors:F.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:{styledMode:!1,borderRadius:0,colorCount:10,defaultSeriesType:"line",ignoreHiddenSeries:!0,spacing:[10,10,15,10],resetZoomButton:{theme:{zIndex:6},position:{align:"right",x:-10,y:10}},zoomBySingleTouch:!1,width:null,height:null,borderColor:F.highlightColor80,backgroundColor:F.backgroundColor,plotBorderColor:F.neutralColor20},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:F.neutralColor80}},legend:{enabled:!0,align:"center",alignColumns:!0,layout:"horizontal",labelFormatter:function(){return this.name},borderColor:F.neutralColor40,borderRadius:0,navigation:{activeColor:F.highlightColor100,inactiveColor:F.neutralColor20},itemStyle:{color:F.neutralColor80,cursor:"pointer",fontSize:"12px",fontWeight:"bold",textOverflow:"ellipsis"},itemHoverStyle:{color:F.neutralColor100},itemHiddenStyle:{color:F.neutralColor20},
|
|
|
-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:F.backgroundColor,opacity:.5,textAlign:"center"}},tooltip:{enabled:!0,animation:D,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:"",padding:8,snap:G?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:l(F.neutralColor3).setOpacity(.85).get(),borderWidth:1,shadow:!0,style:{color:F.neutralColor80,cursor:"default",fontSize:"12px",whiteSpace:"nowrap"}},credits:{enabled:!0,href:"https://www.highcharts.com?credits",
|
|
|
-position:{align:"right",x:-10,verticalAlign:"bottom",y:-5},style:{cursor:"pointer",color:F.neutralColor40,fontSize:"9px"},text:"Highcharts.com"}};e.defaultOptions.chart.styledMode=!1;"";e.time=new C(H(e.defaultOptions.global,e.defaultOptions.time));e.dateFormat=function(l,A,x){return e.time.dateFormat(l,A,x)};return{dateFormat:e.dateFormat,defaultOptions:e.defaultOptions,time:e.time}});O(e,"Core/Axis/Tick.js",[e["Core/Globals.js"],e["Core/Utilities.js"]],function(e,l){var G=e.deg2rad,C=l.clamp,H=
|
|
|
-l.correctFloat,J=l.defined,D=l.destroyObjectProperties,E=l.extend,A=l.fireEvent,x=l.isNumber,g=l.merge,u=l.objectEach,f=l.pick;"";l=function(){function w(b,f,t,g,q){this.isNewLabel=this.isNew=!0;this.axis=b;this.pos=f;this.type=t||"";this.parameters=q||{};this.tickmarkOffset=this.parameters.tickmarkOffset;this.options=this.parameters.options;A(this,"init");t||g||this.addLabel()}w.prototype.addLabel=function(){var b=this,m=b.axis,t=m.options,g=m.chart,q=m.categories,p=m.logarithmic,a=m.names,k=b.pos,
|
|
|
-d=f(b.options&&b.options.labels,t.labels),y=m.tickPositions,c=k===y[0],h=k===y[y.length-1];a=this.parameters.category||(q?f(q[k],a[k],k):k);var M=b.label;q=(!d.step||1===d.step)&&1===m.tickInterval;y=y.info;var u,P;if(m.dateTime&&y){var n=g.time.resolveDTLFormat(t.dateTimeLabelFormats[!t.grid&&y.higherRanks[k]||y.unitName]);var K=n.main}b.isFirst=c;b.isLast=h;b.formatCtx={axis:m,chart:g,isFirst:c,isLast:h,dateTimeLabelFormat:K,tickPositionInfo:y,value:p?H(p.lin2log(a)):a,pos:k};t=m.labelFormatter.call(b.formatCtx,
|
|
|
-this.formatCtx);if(P=n&&n.list)b.shortenLabel=function(){for(u=0;u<P.length;u++)if(M.attr({text:m.labelFormatter.call(E(b.formatCtx,{dateTimeLabelFormat:P[u]}))}),M.getBBox().width<m.getSlotWidth(b)-2*f(d.padding,5))return;M.attr({text:""})};q&&m._addedPlotLB&&b.moveLabel(t,d);J(M)||b.movedLabel?M&&M.textStr!==t&&!q&&(!M.textWidth||d.style&&d.style.width||M.styles.width||M.css({width:null}),M.attr({text:t}),M.textPxLength=M.getBBox().width):(b.label=M=b.createLabel({x:0,y:0},t,d),b.rotation=0)};w.prototype.createLabel=
|
|
|
-function(b,f,t){var m=this.axis,q=m.chart;if(b=J(f)&&t.enabled?q.renderer.text(f,b.x,b.y,t.useHTML).add(m.labelGroup):null)q.styledMode||b.css(g(t.style)),b.textPxLength=b.getBBox().width;return b};w.prototype.destroy=function(){D(this,this.axis)};w.prototype.getPosition=function(b,f,t,g){var m=this.axis,p=m.chart,a=g&&p.oldChartHeight||p.chartHeight;b={x:b?H(m.translate(f+t,null,null,g)+m.transB):m.left+m.offset+(m.opposite?(g&&p.oldChartWidth||p.chartWidth)-m.right-m.left:0),y:b?a-m.bottom+m.offset-
|
|
|
-(m.opposite?m.height:0):H(a-m.translate(f+t,null,null,g)-m.transB)};b.y=C(b.y,-1E5,1E5);A(this,"afterGetPosition",{pos:b});return b};w.prototype.getLabelPosition=function(b,f,t,g,q,p,a,k){var d=this.axis,y=d.transA,c=d.isLinked&&d.linkedParent?d.linkedParent.reversed:d.reversed,h=d.staggerLines,m=d.tickRotCorr||{x:0,y:0},I=q.y,P=g||d.reserveSpaceDefault?0:-d.labelOffset*("center"===d.labelAlign?.5:1),n={};J(I)||(I=0===d.side?t.rotation?-8:-t.getBBox().height:2===d.side?m.y+8:Math.cos(t.rotation*G)*
|
|
|
-(m.y-t.getBBox(!1,0).height/2));b=b+q.x+P+m.x-(p&&g?p*y*(c?-1:1):0);f=f+I-(p&&!g?p*y*(c?1:-1):0);h&&(t=a/(k||1)%h,d.opposite&&(t=h-t-1),f+=d.labelOffset/h*t);n.x=b;n.y=Math.round(f);A(this,"afterGetLabelPosition",{pos:n,tickmarkOffset:p,index:a});return n};w.prototype.getLabelSize=function(){return this.label?this.label.getBBox()[this.axis.horiz?"height":"width"]:0};w.prototype.getMarkPath=function(b,f,t,g,q,p){return p.crispLine([["M",b,f],["L",b+(q?0:-t),f+(q?t:0)]],g)};w.prototype.handleOverflow=
|
|
|
-function(b){var m=this.axis,t=m.options.labels,g=b.x,q=m.chart.chartWidth,p=m.chart.spacing,a=f(m.labelLeft,Math.min(m.pos,p[3]));p=f(m.labelRight,Math.max(m.isRadial?0:m.pos+m.len,q-p[1]));var k=this.label,d=this.rotation,y={left:0,center:.5,right:1}[m.labelAlign||k.attr("align")],c=k.getBBox().width,h=m.getSlotWidth(this),M=h,u=1,P,n={};if(d||"justify"!==f(t.overflow,"justify"))0>d&&g-y*c<a?P=Math.round(g/Math.cos(d*G)-a):0<d&&g+y*c>p&&(P=Math.round((q-g)/Math.cos(d*G)));else if(q=g+(1-y)*c,g-y*
|
|
|
-c<a?M=b.x+M*(1-y)-a:q>p&&(M=p-b.x+M*y,u=-1),M=Math.min(h,M),M<h&&"center"===m.labelAlign&&(b.x+=u*(h-M-y*(h-Math.min(c,M)))),c>M||m.autoRotation&&(k.styles||{}).width)P=M;P&&(this.shortenLabel?this.shortenLabel():(n.width=Math.floor(P)+"px",(t.style||{}).textOverflow||(n.textOverflow="ellipsis"),k.css(n)))};w.prototype.moveLabel=function(b,f){var m=this,g=m.label,q=!1,p=m.axis,a=p.reversed;g&&g.textStr===b?(m.movedLabel=g,q=!0,delete m.label):u(p.ticks,function(a){q||a.isNew||a===m||!a.label||a.label.textStr!==
|
|
|
-b||(m.movedLabel=a.label,q=!0,a.labelPos=m.movedLabel.xy,delete a.label)});if(!q&&(m.labelPos||g)){var k=m.labelPos||g.xy;g=p.horiz?a?0:p.width+p.left:k.x;p=p.horiz?k.y:a?p.width+p.left:0;m.movedLabel=m.createLabel({x:g,y:p},b,f);m.movedLabel&&m.movedLabel.attr({opacity:0})}};w.prototype.render=function(b,m,t){var g=this.axis,q=g.horiz,p=this.pos,a=f(this.tickmarkOffset,g.tickmarkOffset);p=this.getPosition(q,p,a,m);a=p.x;var k=p.y;g=q&&a===g.pos+g.len||!q&&k===g.pos?-1:1;t=f(t,1);this.isActive=!0;
|
|
|
-this.renderGridLine(m,t,g);this.renderMark(p,t,g);this.renderLabel(p,m,t,b);this.isNew=!1;A(this,"afterRender")};w.prototype.renderGridLine=function(b,m,g){var t=this.axis,q=t.options,p=this.gridLine,a={},k=this.pos,d=this.type,y=f(this.tickmarkOffset,t.tickmarkOffset),c=t.chart.renderer,h=d?d+"Grid":"grid",M=q[h+"LineWidth"],u=q[h+"LineColor"];q=q[h+"LineDashStyle"];p||(t.chart.styledMode||(a.stroke=u,a["stroke-width"]=M,q&&(a.dashstyle=q)),d||(a.zIndex=1),b&&(m=0),this.gridLine=p=c.path().attr(a).addClass("highcharts-"+
|
|
|
-(d?d+"-":"")+"grid-line").add(t.gridGroup));if(p&&(g=t.getPlotLinePath({value:k+y,lineWidth:p.strokeWidth()*g,force:"pass",old:b})))p[b||this.isNew?"attr":"animate"]({d:g,opacity:m})};w.prototype.renderMark=function(b,m,g){var t=this.axis,q=t.options,p=t.chart.renderer,a=this.type,k=a?a+"Tick":"tick",d=t.tickSize(k),y=this.mark,c=!y,h=b.x;b=b.y;var M=f(q[k+"Width"],!a&&t.isXAxis?1:0);q=q[k+"Color"];d&&(t.opposite&&(d[0]=-d[0]),c&&(this.mark=y=p.path().addClass("highcharts-"+(a?a+"-":"")+"tick").add(t.axisGroup),
|
|
|
-t.chart.styledMode||y.attr({stroke:q,"stroke-width":M})),y[c?"attr":"animate"]({d:this.getMarkPath(h,b,d[0],y.strokeWidth()*g,t.horiz,p),opacity:m}))};w.prototype.renderLabel=function(b,m,t,g){var q=this.axis,p=q.horiz,a=q.options,k=this.label,d=a.labels,y=d.step;q=f(this.tickmarkOffset,q.tickmarkOffset);var c=!0,h=b.x;b=b.y;k&&x(h)&&(k.xy=b=this.getLabelPosition(h,b,k,p,d,q,g,y),this.isFirst&&!this.isLast&&!f(a.showFirstLabel,1)||this.isLast&&!this.isFirst&&!f(a.showLastLabel,1)?c=!1:!p||d.step||
|
|
|
-d.rotation||m||0===t||this.handleOverflow(b),y&&g%y&&(c=!1),c&&x(b.y)?(b.opacity=t,k[this.isNewLabel?"attr":"animate"](b),this.isNewLabel=!1):(k.attr("y",-9999),this.isNewLabel=!0))};w.prototype.replaceMovedLabel=function(){var b=this.label,f=this.axis,g=f.reversed;if(b&&!this.isNew){var u=f.horiz?g?f.left:f.width+f.left:b.xy.x;g=f.horiz?b.xy.y:g?f.width+f.top:f.top;b.animate({x:u,y:g,opacity:0},void 0,b.destroy);delete this.label}f.isDirty=!0;this.label=this.movedLabel;delete this.movedLabel};return w}();
|
|
|
-e.Tick=l;return e.Tick});O(e,"Core/Axis/Axis.js",[e["Core/Animation/AnimationUtilities.js"],e["Core/Color/Color.js"],e["Core/Globals.js"],e["Core/Color/Palette.js"],e["Core/Options.js"],e["Core/Axis/Tick.js"],e["Core/Utilities.js"]],function(e,l,F,C,H,J,D){var E=e.animObject,A=H.defaultOptions,x=D.addEvent,g=D.arrayMax,u=D.arrayMin,f=D.clamp,w=D.correctFloat,b=D.defined,m=D.destroyObjectProperties,t=D.erase,I=D.error,q=D.extend,p=D.fireEvent,a=D.format,k=D.getMagnitude,d=D.isArray,y=D.isFunction,
|
|
|
-c=D.isNumber,h=D.isString,M=D.merge,S=D.normalizeTickInterval,P=D.objectEach,n=D.pick,K=D.relativeLength,r=D.removeEvent,z=D.splat,L=D.syncTimeout;"";var B=F.deg2rad;e=function(){function e(a,c){this.zoomEnabled=this.width=this.visible=this.userOptions=this.translationSlope=this.transB=this.transA=this.top=this.ticks=this.tickRotCorr=this.tickPositions=this.tickmarkOffset=this.tickInterval=this.tickAmount=this.side=this.series=this.right=this.positiveValuesOnly=this.pos=this.pointRangePadding=this.pointRange=
|
|
|
-this.plotLinesAndBandsGroups=this.plotLinesAndBands=this.paddedTicks=this.overlap=this.options=this.offset=this.names=this.minPixelPadding=this.minorTicks=this.minorTickInterval=this.min=this.maxLabelLength=this.max=this.len=this.left=this.labelFormatter=this.labelEdge=this.isLinked=this.height=this.hasVisibleSeries=this.hasNames=this.coll=this.closestPointRange=this.chart=this.categories=this.bottom=this.alternateBands=void 0;this.init(a,c)}e.prototype.init=function(a,c){var d=c.isX,h=this;h.chart=
|
|
|
-a;h.horiz=a.inverted&&!h.isZAxis?!d:d;h.isXAxis=d;h.coll=h.coll||(d?"xAxis":"yAxis");p(this,"init",{userOptions:c});h.opposite=n(c.opposite,h.opposite);h.side=n(c.side,h.side,h.horiz?h.opposite?0:2:h.opposite?1:3);h.setOptions(c);var v=this.options,f=v.type;h.labelFormatter=v.labels.formatter||h.defaultLabelFormatter;h.userOptions=c;h.minPixelPadding=0;h.reversed=n(v.reversed,h.reversed);h.visible=!1!==v.visible;h.zoomEnabled=!1!==v.zoomEnabled;h.hasNames="category"===f||!0===v.categories;h.categories=
|
|
|
-v.categories||h.hasNames;h.names||(h.names=[],h.names.keys={});h.plotLinesAndBandsGroups={};h.positiveValuesOnly=!!h.logarithmic;h.isLinked=b(v.linkedTo);h.ticks={};h.labelEdge=[];h.minorTicks={};h.plotLinesAndBands=[];h.alternateBands={};h.len=0;h.minRange=h.userMinRange=v.minRange||v.maxZoom;h.range=v.range;h.offset=v.offset||0;h.max=null;h.min=null;h.crosshair=n(v.crosshair,z(a.options.tooltip.crosshairs)[d?0:1],!1);c=h.options.events;-1===a.axes.indexOf(h)&&(d?a.axes.splice(a.xAxis.length,0,h):
|
|
|
-a.axes.push(h),a[h.coll].push(h));h.series=h.series||[];a.inverted&&!h.isZAxis&&d&&"undefined"===typeof h.reversed&&(h.reversed=!0);h.labelRotation=h.options.labels.rotation;P(c,function(a,c){y(a)&&x(h,c,a)});p(this,"afterInit")};e.prototype.setOptions=function(a){this.options=M(e.defaultOptions,"yAxis"===this.coll&&e.defaultYAxisOptions,[e.defaultTopAxisOptions,e.defaultRightAxisOptions,e.defaultBottomAxisOptions,e.defaultLeftAxisOptions][this.side],M(A[this.coll],a));p(this,"afterSetOptions",{userOptions:a})};
|
|
|
-e.prototype.defaultLabelFormatter=function(){var d=this.axis,h=c(this.value)?this.value:NaN,b=d.chart.time,n=d.categories,f=this.dateTimeLabelFormat,k=A.lang,r=k.numericSymbols;k=k.numericSymbolMagnitude||1E3;var z=r&&r.length,y=d.options.labels.format;d=d.logarithmic?Math.abs(h):d.tickInterval;var m=this.chart,p=m.numberFormatter;if(y)var K=a(y,this,m);else if(n)K=""+this.value;else if(f)K=b.dateFormat(f,h);else if(z&&1E3<=d)for(;z--&&"undefined"===typeof K;)b=Math.pow(k,z+1),d>=b&&0===10*h%b&&null!==
|
|
|
-r[z]&&0!==h&&(K=p(h/b,-1)+r[z]);"undefined"===typeof K&&(K=1E4<=Math.abs(h)?p(h,-1):p(h,-1,void 0,""));return K};e.prototype.getSeriesExtremes=function(){var a=this,d=a.chart,h;p(this,"getSeriesExtremes",null,function(){a.hasVisibleSeries=!1;a.dataMin=a.dataMax=a.threshold=null;a.softThreshold=!a.isXAxis;a.stacking&&a.stacking.buildStacks();a.series.forEach(function(v){if(v.visible||!d.options.chart.ignoreHiddenSeries){var f=v.options,k=f.threshold;a.hasVisibleSeries=!0;a.positiveValuesOnly&&0>=k&&
|
|
|
-(k=null);if(a.isXAxis){if(f=v.xData,f.length){f=a.logarithmic?f.filter(a.validatePositiveValue):f;h=v.getXExtremes(f);var r=h.min;var z=h.max;c(r)||r instanceof Date||(f=f.filter(c),h=v.getXExtremes(f),r=h.min,z=h.max);f.length&&(a.dataMin=Math.min(n(a.dataMin,r),r),a.dataMax=Math.max(n(a.dataMax,z),z))}}else if(v=v.applyExtremes(),c(v.dataMin)&&(r=v.dataMin,a.dataMin=Math.min(n(a.dataMin,r),r)),c(v.dataMax)&&(z=v.dataMax,a.dataMax=Math.max(n(a.dataMax,z),z)),b(k)&&(a.threshold=k),!f.softThreshold||
|
|
|
-a.positiveValuesOnly)a.softThreshold=!1}})});p(this,"afterGetSeriesExtremes")};e.prototype.translate=function(a,d,h,b,n,f){var v=this.linkedParent||this,k=1,r=0,z=b&&v.old?v.old.transA:v.transA;b=b&&v.old?v.old.min:v.min;var N=v.minPixelPadding;n=(v.isOrdinal||v.brokenAxis&&v.brokenAxis.hasBreaks||v.logarithmic&&n)&&v.lin2val;z||(z=v.transA);h&&(k*=-1,r=v.len);v.reversed&&(k*=-1,r-=k*(v.sector||v.len));d?(a=(a*k+r-N)/z+b,n&&(a=v.lin2val(a))):(n&&(a=v.val2lin(a)),a=c(b)?k*(a-b)*z+r+k*N+(c(f)?z*f:0):
|
|
|
-void 0);return a};e.prototype.toPixels=function(a,c){return this.translate(a,!1,!this.horiz,null,!0)+(c?0:this.pos)};e.prototype.toValue=function(a,c){return this.translate(a-(c?0:this.pos),!0,!this.horiz,null,!0)};e.prototype.getPlotLinePath=function(a){function d(a,c,d){if("pass"!==K&&a<c||a>d)K?a=f(a,c,d):P=!0;return a}var h=this,b=h.chart,v=h.left,k=h.top,r=a.old,z=a.value,y=a.translatedValue,m=a.lineWidth,K=a.force,q,g,t,B,M=r&&b.oldChartHeight||b.chartHeight,L=r&&b.oldChartWidth||b.chartWidth,
|
|
|
-P,u=h.transB;a={value:z,lineWidth:m,old:r,force:K,acrossPanes:a.acrossPanes,translatedValue:y};p(this,"getPlotLinePath",a,function(a){y=n(y,h.translate(z,null,null,r));y=f(y,-1E5,1E5);q=t=Math.round(y+u);g=B=Math.round(M-y-u);c(y)?h.horiz?(g=k,B=M-h.bottom,q=t=d(q,v,v+h.width)):(q=v,t=L-h.right,g=B=d(g,k,k+h.height)):(P=!0,K=!1);a.path=P&&!K?null:b.renderer.crispLine([["M",q,g],["L",t,B]],m||1)});return a.path};e.prototype.getLinearTickPositions=function(a,c,d){var h=w(Math.floor(c/a)*a);d=w(Math.ceil(d/
|
|
|
-a)*a);var b=[],n;w(h+a)===h&&(n=20);if(this.single)return[c];for(c=h;c<=d;){b.push(c);c=w(c+a,n);if(c===v)break;var v=c}return b};e.prototype.getMinorTickInterval=function(){var a=this.options;return!0===a.minorTicks?n(a.minorTickInterval,"auto"):!1===a.minorTicks?null:a.minorTickInterval};e.prototype.getMinorTickPositions=function(){var a=this.options,c=this.tickPositions,d=this.minorTickInterval,h=[],b=this.pointRangePadding||0,n=this.min-b;b=this.max+b;var f=b-n;if(f&&f/d<this.len/3){var k=this.logarithmic;
|
|
|
-if(k)this.paddedTicks.forEach(function(a,c,b){c&&h.push.apply(h,k.getLogTickPositions(d,b[c-1],b[c],!0))});else if(this.dateTime&&"auto"===this.getMinorTickInterval())h=h.concat(this.getTimeTicks(this.dateTime.normalizeTimeTickInterval(d),n,b,a.startOfWeek));else for(a=n+(c[0]-n)%d;a<=b&&a!==h[0];a+=d)h.push(a)}0!==h.length&&this.trimTicks(h);return h};e.prototype.adjustForMinRange=function(){var a=this.options,c=this.min,d=this.max,h=this.logarithmic,f=0,k,r,z,y;this.isXAxis&&"undefined"===typeof this.minRange&&
|
|
|
-!h&&(b(a.min)||b(a.max)?this.minRange=null:(this.series.forEach(function(a){z=a.xData;y=a.xIncrement?1:z.length-1;if(1<z.length)for(k=y;0<k;k--)if(r=z[k]-z[k-1],!f||r<f)f=r}),this.minRange=Math.min(5*f,this.dataMax-this.dataMin)));if(d-c<this.minRange){var m=this.dataMax-this.dataMin>=this.minRange;var p=this.minRange;var K=(p-d+c)/2;K=[c-K,n(a.min,c-K)];m&&(K[2]=this.logarithmic?this.logarithmic.log2lin(this.dataMin):this.dataMin);c=g(K);d=[c+p,n(a.max,c+p)];m&&(d[2]=h?h.log2lin(this.dataMax):this.dataMax);
|
|
|
-d=u(d);d-c<p&&(K[0]=d-p,K[1]=n(a.min,d-p),c=g(K))}this.min=c;this.max=d};e.prototype.getClosest=function(){var a;this.categories?a=1:this.series.forEach(function(c){var d=c.closestPointRange,h=c.visible||!c.chart.options.chart.ignoreHiddenSeries;!c.noSharedTooltip&&b(d)&&h&&(a=b(a)?Math.min(a,d):d)});return a};e.prototype.nameToX=function(a){var c=d(this.categories),h=c?this.categories:this.names,f=a.options.x;a.series.requireSorting=!1;b(f)||(f=!1===this.options.uniqueNames?a.series.autoIncrement():
|
|
|
-c?h.indexOf(a.name):n(h.keys[a.name],-1));if(-1===f){if(!c)var v=h.length}else v=f;"undefined"!==typeof v&&(this.names[v]=a.name,this.names.keys[a.name]=v);return v};e.prototype.updateNames=function(){var a=this,c=this.names;0<c.length&&(Object.keys(c.keys).forEach(function(a){delete c.keys[a]}),c.length=0,this.minRange=this.userMinRange,(this.series||[]).forEach(function(c){c.xIncrement=null;if(!c.points||c.isDirtyData)a.max=Math.max(a.max,c.xData.length-1),c.processData(),c.generatePoints();c.data.forEach(function(d,
|
|
|
-h){if(d&&d.options&&"undefined"!==typeof d.name){var b=a.nameToX(d);"undefined"!==typeof b&&b!==d.x&&(d.x=b,c.xData[h]=b)}})}))};e.prototype.setAxisTranslation=function(){var a=this,c=a.max-a.min,d=a.axisPointRange||0,b=0,f=0,k=a.linkedParent,r=!!a.categories,z=a.transA,y=a.isXAxis;if(y||r||d){var m=a.getClosest();k?(b=k.minPointOffset,f=k.pointRangePadding):a.series.forEach(function(c){var k=r?1:y?n(c.options.pointRange,m,0):a.axisPointRange||0,v=c.options.pointPlacement;d=Math.max(d,k);if(!a.single||
|
|
|
-r)c=c.is("xrange")?!y:y,b=Math.max(b,c&&h(v)?0:k/2),f=Math.max(f,c&&"on"===v?0:k)});k=a.ordinal&&a.ordinal.slope&&m?a.ordinal.slope/m:1;a.minPointOffset=b*=k;a.pointRangePadding=f*=k;a.pointRange=Math.min(d,a.single&&r?1:c);y&&(a.closestPointRange=m)}a.translationSlope=a.transA=z=a.staticScale||a.len/(c+f||1);a.transB=a.horiz?a.left:a.bottom;a.minPixelPadding=z*b;p(this,"afterSetAxisTranslation")};e.prototype.minFromRange=function(){return this.max-this.range};e.prototype.setTickInterval=function(a){var d=
|
|
|
-this,h=d.chart,f=d.logarithmic,r=d.options,v=d.isXAxis,z=d.isLinked,y=r.maxPadding,m=r.minPadding,K=r.tickInterval,q=r.tickPixelInterval,g=d.categories,t=c(d.threshold)?d.threshold:null,B=d.softThreshold;d.dateTime||g||z||this.getTickAmount();var M=n(d.userMin,r.min);var L=n(d.userMax,r.max);if(z){d.linkedParent=h[d.coll][r.linkedTo];var P=d.linkedParent.getExtremes();d.min=n(P.min,P.dataMin);d.max=n(P.max,P.dataMax);r.type!==d.linkedParent.options.type&&I(11,1,h)}else{if(B&&b(t))if(d.dataMin>=t)P=
|
|
|
-t,m=0;else if(d.dataMax<=t){var u=t;y=0}d.min=n(M,P,d.dataMin);d.max=n(L,u,d.dataMax)}f&&(d.positiveValuesOnly&&!a&&0>=Math.min(d.min,n(d.dataMin,d.min))&&I(10,1,h),d.min=w(f.log2lin(d.min),16),d.max=w(f.log2lin(d.max),16));d.range&&b(d.max)&&(d.userMin=d.min=M=Math.max(d.dataMin,d.minFromRange()),d.userMax=L=d.max,d.range=null);p(d,"foundExtremes");d.beforePadding&&d.beforePadding();d.adjustForMinRange();!(g||d.axisPointRange||d.stacking&&d.stacking.usePercentage||z)&&b(d.min)&&b(d.max)&&(h=d.max-
|
|
|
-d.min)&&(!b(M)&&m&&(d.min-=h*m),!b(L)&&y&&(d.max+=h*y));c(d.userMin)||(c(r.softMin)&&r.softMin<d.min&&(d.min=M=r.softMin),c(r.floor)&&(d.min=Math.max(d.min,r.floor)));c(d.userMax)||(c(r.softMax)&&r.softMax>d.max&&(d.max=L=r.softMax),c(r.ceiling)&&(d.max=Math.min(d.max,r.ceiling)));B&&b(d.dataMin)&&(t=t||0,!b(M)&&d.min<t&&d.dataMin>=t?d.min=d.options.minRange?Math.min(t,d.max-d.minRange):t:!b(L)&&d.max>t&&d.dataMax<=t&&(d.max=d.options.minRange?Math.max(t,d.min+d.minRange):t));c(d.min)&&c(d.max)&&
|
|
|
-!this.chart.polar&&d.min>d.max&&(b(d.options.min)?d.max=d.min:b(d.options.max)&&(d.min=d.max));d.tickInterval=d.min===d.max||"undefined"===typeof d.min||"undefined"===typeof d.max?1:z&&!K&&q===d.linkedParent.options.tickPixelInterval?K=d.linkedParent.tickInterval:n(K,this.tickAmount?(d.max-d.min)/Math.max(this.tickAmount-1,1):void 0,g?1:(d.max-d.min)*q/Math.max(d.len,q));v&&!a&&d.series.forEach(function(a){var c,h;a.processData(d.min!==(null===(c=d.old)||void 0===c?void 0:c.min)||d.max!==(null===
|
|
|
-(h=d.old)||void 0===h?void 0:h.max))});d.setAxisTranslation();p(this,"initialAxisTranslation");d.pointRange&&!K&&(d.tickInterval=Math.max(d.pointRange,d.tickInterval));a=n(r.minTickInterval,d.dateTime&&!d.series.some(function(a){return a.noSharedTooltip})?d.closestPointRange:0);!K&&d.tickInterval<a&&(d.tickInterval=a);d.dateTime||d.logarithmic||K||(d.tickInterval=S(d.tickInterval,void 0,k(d.tickInterval),n(r.allowDecimals,.5>d.tickInterval||void 0!==this.tickAmount),!!this.tickAmount));this.tickAmount||
|
|
|
-(d.tickInterval=d.unsquish());this.setTickPositions()};e.prototype.setTickPositions=function(){var a=this.options,c=a.tickPositions;var d=this.getMinorTickInterval();var h=a.tickPositioner,n=this.hasVerticalPanning(),f="colorAxis"===this.coll,r=(f||!n)&&a.startOnTick;n=(f||!n)&&a.endOnTick;this.tickmarkOffset=this.categories&&"between"===a.tickmarkPlacement&&1===this.tickInterval?.5:0;this.minorTickInterval="auto"===d&&this.tickInterval?this.tickInterval/5:d;this.single=this.min===this.max&&b(this.min)&&
|
|
|
-!this.tickAmount&&(parseInt(this.min,10)===this.min||!1!==a.allowDecimals);this.tickPositions=d=c&&c.slice();!d&&(this.ordinal&&this.ordinal.positions||!((this.max-this.min)/this.tickInterval>Math.max(2*this.len,200))?d=this.dateTime?this.getTimeTicks(this.dateTime.normalizeTimeTickInterval(this.tickInterval,a.units),this.min,this.max,a.startOfWeek,this.ordinal&&this.ordinal.positions,this.closestPointRange,!0):this.logarithmic?this.logarithmic.getLogTickPositions(this.tickInterval,this.min,this.max):
|
|
|
-this.getLinearTickPositions(this.tickInterval,this.min,this.max):(d=[this.min,this.max],I(19,!1,this.chart)),d.length>this.len&&(d=[d[0],d.pop()],d[0]===d[1]&&(d.length=1)),this.tickPositions=d,h&&(h=h.apply(this,[this.min,this.max])))&&(this.tickPositions=d=h);this.paddedTicks=d.slice(0);this.trimTicks(d,r,n);this.isLinked||(this.single&&2>d.length&&!this.categories&&!this.series.some(function(a){return a.is("heatmap")&&"between"===a.options.pointPlacement})&&(this.min-=.5,this.max+=.5),c||h||this.adjustTickAmount());
|
|
|
-p(this,"afterSetTickPositions")};e.prototype.trimTicks=function(a,c,d){var h=a[0],n=a[a.length-1],f=!this.isOrdinal&&this.minPointOffset||0;p(this,"trimTicks");if(!this.isLinked){if(c&&-Infinity!==h)this.min=h;else for(;this.min-f>a[0];)a.shift();if(d)this.max=n;else for(;this.max+f<a[a.length-1];)a.pop();0===a.length&&b(h)&&!this.options.tickPositions&&a.push((n+h)/2)}};e.prototype.alignToOthers=function(){var a={},c,d=this.options;!1===this.chart.options.chart.alignTicks||!1===d.alignTicks||!1===
|
|
|
-d.startOnTick||!1===d.endOnTick||this.logarithmic||this.chart[this.coll].forEach(function(d){var h=d.options;h=[d.horiz?h.left:h.top,h.width,h.height,h.pane].join();d.series.length&&(a[h]?c=!0:a[h]=1)});return c};e.prototype.getTickAmount=function(){var a=this.options,c=a.tickAmount,d=a.tickPixelInterval;!b(a.tickInterval)&&!c&&this.len<d&&!this.isRadial&&!this.logarithmic&&a.startOnTick&&a.endOnTick&&(c=2);!c&&this.alignToOthers()&&(c=Math.ceil(this.len/d)+1);4>c&&(this.finalTickAmt=c,c=5);this.tickAmount=
|
|
|
-c};e.prototype.adjustTickAmount=function(){var a=this.options,d=this.tickInterval,h=this.tickPositions,f=this.tickAmount,r=this.finalTickAmt,k=h&&h.length,z=n(this.threshold,this.softThreshold?0:null);if(this.hasData()&&c(this.min)&&c(this.max)){if(k<f){for(;h.length<f;)h.length%2||this.min===z?h.push(w(h[h.length-1]+d)):h.unshift(w(h[0]-d));this.transA*=(k-1)/(f-1);this.min=a.startOnTick?h[0]:Math.min(this.min,h[0]);this.max=a.endOnTick?h[h.length-1]:Math.max(this.max,h[h.length-1])}else k>f&&(this.tickInterval*=
|
|
|
-2,this.setTickPositions());if(b(r)){for(d=a=h.length;d--;)(3===r&&1===d%2||2>=r&&0<d&&d<a-1)&&h.splice(d,1);this.finalTickAmt=void 0}}};e.prototype.setScale=function(){var a,c,d,h,b,n,f=!1,r=!1;this.series.forEach(function(a){var c;f=f||a.isDirtyData||a.isDirty;r=r||(null===(c=a.xAxis)||void 0===c?void 0:c.isDirty)||!1});this.setAxisSize();(n=this.len!==(null===(a=this.old)||void 0===a?void 0:a.len))||f||r||this.isLinked||this.forceRedraw||this.userMin!==(null===(c=this.old)||void 0===c?void 0:c.userMin)||
|
|
|
-this.userMax!==(null===(d=this.old)||void 0===d?void 0:d.userMax)||this.alignToOthers()?(this.stacking&&this.stacking.resetStacks(),this.forceRedraw=!1,this.getSeriesExtremes(),this.setTickInterval(),this.isDirty||(this.isDirty=n||this.min!==(null===(h=this.old)||void 0===h?void 0:h.min)||this.max!==(null===(b=this.old)||void 0===b?void 0:b.max))):this.stacking&&this.stacking.cleanStacks();f&&this.panningState&&(this.panningState.isDirty=!0);p(this,"afterSetScale")};e.prototype.setExtremes=function(a,
|
|
|
-c,d,h,b){var f=this,r=f.chart;d=n(d,!0);f.series.forEach(function(a){delete a.kdTree});b=q(b,{min:a,max:c});p(f,"setExtremes",b,function(){f.userMin=a;f.userMax=c;f.eventArgs=b;d&&r.redraw(h)})};e.prototype.zoom=function(a,c){var d=this,h=this.dataMin,f=this.dataMax,r=this.options,k=Math.min(h,n(r.min,h)),v=Math.max(f,n(r.max,f));a={newMin:a,newMax:c};p(this,"zoom",a,function(a){var c=a.newMin,n=a.newMax;if(c!==d.min||n!==d.max)d.allowZoomOutside||(b(h)&&(c<k&&(c=k),c>v&&(c=v)),b(f)&&(n<k&&(n=k),
|
|
|
-n>v&&(n=v))),d.displayBtn="undefined"!==typeof c||"undefined"!==typeof n,d.setExtremes(c,n,!1,void 0,{trigger:"zoom"});a.zoomed=!0});return a.zoomed};e.prototype.setAxisSize=function(){var a=this.chart,c=this.options,d=c.offsets||[0,0,0,0],h=this.horiz,b=this.width=Math.round(K(n(c.width,a.plotWidth-d[3]+d[1]),a.plotWidth)),f=this.height=Math.round(K(n(c.height,a.plotHeight-d[0]+d[2]),a.plotHeight)),r=this.top=Math.round(K(n(c.top,a.plotTop+d[0]),a.plotHeight,a.plotTop));c=this.left=Math.round(K(n(c.left,
|
|
|
-a.plotLeft+d[3]),a.plotWidth,a.plotLeft));this.bottom=a.chartHeight-f-r;this.right=a.chartWidth-b-c;this.len=Math.max(h?b:f,0);this.pos=h?c:r};e.prototype.getExtremes=function(){var a=this.logarithmic;return{min:a?w(a.lin2log(this.min)):this.min,max:a?w(a.lin2log(this.max)):this.max,dataMin:this.dataMin,dataMax:this.dataMax,userMin:this.userMin,userMax:this.userMax}};e.prototype.getThreshold=function(a){var c=this.logarithmic,d=c?c.lin2log(this.min):this.min;c=c?c.lin2log(this.max):this.max;null===
|
|
|
-a||-Infinity===a?a=d:Infinity===a?a=c:d>a?a=d:c<a&&(a=c);return this.translate(a,0,1,0,1)};e.prototype.autoLabelAlign=function(a){var c=(n(a,0)-90*this.side+720)%360;a={align:"center"};p(this,"autoLabelAlign",a,function(a){15<c&&165>c?a.align="right":195<c&&345>c&&(a.align="left")});return a.align};e.prototype.tickSize=function(a){var c=this.options,d=c["tick"===a?"tickLength":"minorTickLength"],h=n(c["tick"===a?"tickWidth":"minorTickWidth"],"tick"===a&&this.isXAxis&&!this.categories?1:0);if(h&&d){"inside"===
|
|
|
-c[a+"Position"]&&(d=-d);var b=[d,h]}a={tickSize:b};p(this,"afterTickSize",a);return a.tickSize};e.prototype.labelMetrics=function(){var a=this.tickPositions&&this.tickPositions[0]||0;return this.chart.renderer.fontMetrics(this.options.labels.style&&this.options.labels.style.fontSize,this.ticks[a]&&this.ticks[a].label)};e.prototype.unsquish=function(){var a=this.options.labels,c=this.horiz,d=this.tickInterval,h=d,f=this.len/(((this.categories?1:0)+this.max-this.min)/d),r,k=a.rotation,z=this.labelMetrics(),
|
|
|
-y,m=Number.MAX_VALUE,K,p=Math.max(this.max-this.min,0),q=function(a){var c=a/(f||1);c=1<c?Math.ceil(c):1;c*d>p&&Infinity!==a&&Infinity!==f&&p&&(c=Math.ceil(p/d));return w(c*d)};c?(K=!a.staggerLines&&!a.step&&(b(k)?[k]:f<n(a.autoRotationLimit,80)&&a.autoRotation))&&K.forEach(function(a){if(a===k||a&&-90<=a&&90>=a){y=q(Math.abs(z.h/Math.sin(B*a)));var c=y+Math.abs(a/360);c<m&&(m=c,r=a,h=y)}}):a.step||(h=q(z.h));this.autoRotation=K;this.labelRotation=n(r,k);return h};e.prototype.getSlotWidth=function(a){var d,
|
|
|
-h=this.chart,b=this.horiz,n=this.options.labels,f=Math.max(this.tickPositions.length-(this.categories?0:1),1),r=h.margin[3];if(a&&c(a.slotWidth))return a.slotWidth;if(b&&n&&2>(n.step||0))return n.rotation?0:(this.staggerLines||1)*this.len/f;if(!b){a=null===(d=null===n||void 0===n?void 0:n.style)||void 0===d?void 0:d.width;if(void 0!==a)return parseInt(a,10);if(r)return r-h.spacing[3]}return.33*h.chartWidth};e.prototype.renderUnsquish=function(){var a=this.chart,c=a.renderer,d=this.tickPositions,b=
|
|
|
-this.ticks,n=this.options.labels,f=n&&n.style||{},r=this.horiz,k=this.getSlotWidth(),z=Math.max(1,Math.round(k-2*(n.padding||5))),y={},m=this.labelMetrics(),K=n.style&&n.style.textOverflow,p=0;h(n.rotation)||(y.rotation=n.rotation||0);d.forEach(function(a){a=b[a];a.movedLabel&&a.replaceMovedLabel();a&&a.label&&a.label.textPxLength>p&&(p=a.label.textPxLength)});this.maxLabelLength=p;if(this.autoRotation)p>z&&p>m.h?y.rotation=this.labelRotation:this.labelRotation=0;else if(k){var q=z;if(!K){var g="clip";
|
|
|
-for(z=d.length;!r&&z--;){var t=d[z];if(t=b[t].label)t.styles&&"ellipsis"===t.styles.textOverflow?t.css({textOverflow:"clip"}):t.textPxLength>k&&t.css({width:k+"px"}),t.getBBox().height>this.len/d.length-(m.h-m.f)&&(t.specificTextOverflow="ellipsis")}}}y.rotation&&(q=p>.5*a.chartHeight?.33*a.chartHeight:p,K||(g="ellipsis"));if(this.labelAlign=n.align||this.autoLabelAlign(this.labelRotation))y.align=this.labelAlign;d.forEach(function(a){var c=(a=b[a])&&a.label,d=f.width,h={};c&&(c.attr(y),a.shortenLabel?
|
|
|
-a.shortenLabel():q&&!d&&"nowrap"!==f.whiteSpace&&(q<c.textPxLength||"SPAN"===c.element.tagName)?(h.width=q+"px",K||(h.textOverflow=c.specificTextOverflow||g),c.css(h)):c.styles&&c.styles.width&&!h.width&&!d&&c.css({width:null}),delete c.specificTextOverflow,a.rotation=y.rotation)},this);this.tickRotCorr=c.rotCorr(m.b,this.labelRotation||0,0!==this.side)};e.prototype.hasData=function(){return this.series.some(function(a){return a.hasData()})||this.options.showEmpty&&b(this.min)&&b(this.max)};e.prototype.addTitle=
|
|
|
-function(a){var c=this.chart.renderer,d=this.horiz,h=this.opposite,b=this.options.title,n,f=this.chart.styledMode;this.axisTitle||((n=b.textAlign)||(n=(d?{low:"left",middle:"center",high:"right"}:{low:h?"right":"left",middle:"center",high:h?"left":"right"})[b.align]),this.axisTitle=c.text(b.text,0,0,b.useHTML).attr({zIndex:7,rotation:b.rotation||0,align:n}).addClass("highcharts-axis-title"),f||this.axisTitle.css(M(b.style)),this.axisTitle.add(this.axisGroup),this.axisTitle.isNew=!0);f||b.style.width||
|
|
|
-this.isRadial||this.axisTitle.css({width:this.len+"px"});this.axisTitle[a?"show":"hide"](a)};e.prototype.generateTick=function(a){var c=this.ticks;c[a]?c[a].addLabel():c[a]=new J(this,a)};e.prototype.getOffset=function(){var a=this,c=this,d=c.chart,h=d.renderer,f=c.options,r=c.tickPositions,k=c.ticks,z=c.horiz,y=c.side,m=d.inverted&&!c.isZAxis?[1,0,3,2][y]:y,K,q=0,t=0,g=f.title,B=f.labels,M=0,L=d.axisOffset;d=d.clipOffset;var u=[-1,1,1,-1][y],I=f.className,w=c.axisParent;var S=c.hasData();c.showAxis=
|
|
|
-K=S||n(f.showEmpty,!0);c.staggerLines=c.horiz&&B.staggerLines;if(!c.axisGroup){var e=function(c,d,b){return h.g(c).attr({zIndex:b}).addClass("highcharts-"+a.coll.toLowerCase()+d+" "+(a.isRadial?"highcharts-radial-axis"+d+" ":"")+(I||"")).add(w)};c.gridGroup=e("grid","-grid",f.gridZIndex||1);c.axisGroup=e("axis","",f.zIndex||2);c.labelGroup=e("axis-labels","-labels",B.zIndex||7)}S||c.isLinked?(r.forEach(function(a,d){c.generateTick(a,d)}),c.renderUnsquish(),c.reserveSpaceDefault=0===y||2===y||{1:"left",
|
|
|
-3:"right"}[y]===c.labelAlign,n(B.reserveSpace,"center"===c.labelAlign?!0:null,c.reserveSpaceDefault)&&r.forEach(function(a){M=Math.max(k[a].getLabelSize(),M)}),c.staggerLines&&(M*=c.staggerLines),c.labelOffset=M*(c.opposite?-1:1)):P(k,function(a,c){a.destroy();delete k[c]});if(g&&g.text&&!1!==g.enabled&&(c.addTitle(K),K&&!1!==g.reserveSpace)){c.titleOffset=q=c.axisTitle.getBBox()[z?"height":"width"];var x=g.offset;t=b(x)?0:n(g.margin,z?5:10)}c.renderLine();c.offset=u*n(f.offset,L[y]?L[y]+(f.margin||
|
|
|
-0):0);c.tickRotCorr=c.tickRotCorr||{x:0,y:0};g=0===y?-c.labelMetrics().h:2===y?c.tickRotCorr.y:0;t=Math.abs(M)+t;M&&(t=t-g+u*(z?n(B.y,c.tickRotCorr.y+8*u):B.x));c.axisTitleMargin=n(x,t);c.getMaxLabelDimensions&&(c.maxLabelDimensions=c.getMaxLabelDimensions(k,r));z=this.tickSize("tick");L[y]=Math.max(L[y],c.axisTitleMargin+q+u*c.offset,t,r&&r.length&&z?z[0]+u*c.offset:0);f=f.offset?0:2*Math.floor(c.axisLine.strokeWidth()/2);d[m]=Math.max(d[m],f);p(this,"afterGetOffset")};e.prototype.getLinePath=function(a){var c=
|
|
|
-this.chart,d=this.opposite,h=this.offset,b=this.horiz,n=this.left+(d?this.width:0)+h;h=c.chartHeight-this.bottom-(d?this.height:0)+h;d&&(a*=-1);return c.renderer.crispLine([["M",b?this.left:n,b?h:this.top],["L",b?c.chartWidth-this.right:n,b?h:c.chartHeight-this.bottom]],a)};e.prototype.renderLine=function(){this.axisLine||(this.axisLine=this.chart.renderer.path().addClass("highcharts-axis-line").add(this.axisGroup),this.chart.styledMode||this.axisLine.attr({stroke:this.options.lineColor,"stroke-width":this.options.lineWidth,
|
|
|
-zIndex:7}))};e.prototype.getTitlePosition=function(){var a=this.horiz,c=this.left,d=this.top,h=this.len,b=this.options.title,n=a?c:d,f=this.opposite,r=this.offset,k=b.x||0,z=b.y||0,y=this.axisTitle,m=this.chart.renderer.fontMetrics(b.style&&b.style.fontSize,y);y=Math.max(y.getBBox(null,0).height-m.h-1,0);h={low:n+(a?0:h),middle:n+h/2,high:n+(a?h:0)}[b.align];c=(a?d+this.height:c)+(a?1:-1)*(f?-1:1)*this.axisTitleMargin+[-y,y,m.f,-y][this.side];a={x:a?h+k:c+(f?this.width:0)+r+k,y:a?c+z-(f?this.height:
|
|
|
-0)+r:h+z};p(this,"afterGetTitlePosition",{titlePosition:a});return a};e.prototype.renderMinorTick=function(a){var c=this.chart.hasRendered&&this.old,d=this.minorTicks;d[a]||(d[a]=new J(this,a,"minor"));c&&d[a].isNew&&d[a].render(null,!0);d[a].render(null,!1,1)};e.prototype.renderTick=function(a,c){var d,h=this.ticks,b=this.chart.hasRendered&&this.old;if(!this.isLinked||a>=this.min&&a<=this.max||(null===(d=this.grid)||void 0===d?0:d.isColumn))h[a]||(h[a]=new J(this,a)),b&&h[a].isNew&&h[a].render(c,
|
|
|
-!0,-1),h[a].render(c)};e.prototype.render=function(){var a=this,d=a.chart,h=a.logarithmic,b=a.options,n=a.isLinked,f=a.tickPositions,r=a.axisTitle,k=a.ticks,z=a.minorTicks,y=a.alternateBands,m=b.stackLabels,K=b.alternateGridColor,q=a.tickmarkOffset,t=a.axisLine,g=a.showAxis,B=E(d.renderer.globalAnimation),M,u;a.labelEdge.length=0;a.overlap=!1;[k,z,y].forEach(function(a){P(a,function(a){a.isActive=!1})});if(a.hasData()||n)a.minorTickInterval&&!a.categories&&a.getMinorTickPositions().forEach(function(c){a.renderMinorTick(c)}),
|
|
|
-f.length&&(f.forEach(function(c,d){a.renderTick(c,d)}),q&&(0===a.min||a.single)&&(k[-1]||(k[-1]=new J(a,-1,null,!0)),k[-1].render(-1))),K&&f.forEach(function(c,b){u="undefined"!==typeof f[b+1]?f[b+1]+q:a.max-q;0===b%2&&c<a.max&&u<=a.max+(d.polar?-q:q)&&(y[c]||(y[c]=new F.PlotLineOrBand(a)),M=c+q,y[c].options={from:h?h.lin2log(M):M,to:h?h.lin2log(u):u,color:K,className:"highcharts-alternate-grid"},y[c].render(),y[c].isActive=!0)}),a._addedPlotLB||(a._addedPlotLB=!0,(b.plotLines||[]).concat(b.plotBands||
|
|
|
-[]).forEach(function(c){a.addPlotBandOrLine(c)}));[k,z,y].forEach(function(a){var c,h=[],b=B.duration;P(a,function(a,c){a.isActive||(a.render(c,!1,0),a.isActive=!1,h.push(c))});L(function(){for(c=h.length;c--;)a[h[c]]&&!a[h[c]].isActive&&(a[h[c]].destroy(),delete a[h[c]])},a!==y&&d.hasRendered&&b?b:0)});t&&(t[t.isPlaced?"animate":"attr"]({d:this.getLinePath(t.strokeWidth())}),t.isPlaced=!0,t[g?"show":"hide"](g));r&&g&&(b=a.getTitlePosition(),c(b.y)?(r[r.isNew?"attr":"animate"](b),r.isNew=!1):(r.attr("y",
|
|
|
--9999),r.isNew=!0));m&&m.enabled&&a.stacking&&a.stacking.renderStackTotals();a.old={len:a.len,max:a.max,min:a.min,transA:a.transA,userMax:a.userMax,userMin:a.userMin};a.isDirty=!1;p(this,"afterRender")};e.prototype.redraw=function(){this.visible&&(this.render(),this.plotLinesAndBands.forEach(function(a){a.render()}));this.series.forEach(function(a){a.isDirty=!0})};e.prototype.getKeepProps=function(){return this.keepProps||e.keepProps};e.prototype.destroy=function(a){var c=this,d=c.plotLinesAndBands,
|
|
|
-h;p(this,"destroy",{keepEvents:a});a||r(c);[c.ticks,c.minorTicks,c.alternateBands].forEach(function(a){m(a)});if(d)for(a=d.length;a--;)d[a].destroy();"axisLine axisTitle axisGroup gridGroup labelGroup cross scrollbar".split(" ").forEach(function(a){c[a]&&(c[a]=c[a].destroy())});for(h in c.plotLinesAndBandsGroups)c.plotLinesAndBandsGroups[h]=c.plotLinesAndBandsGroups[h].destroy();P(c,function(a,d){-1===c.getKeepProps().indexOf(d)&&delete c[d]})};e.prototype.drawCrosshair=function(a,c){var d=this.crosshair,
|
|
|
-h=n(d.snap,!0),f,r=this.cross,k=this.chart;p(this,"drawCrosshair",{e:a,point:c});a||(a=this.cross&&this.cross.e);if(this.crosshair&&!1!==(b(c)||!h)){h?b(c)&&(f=n("colorAxis"!==this.coll?c.crosshairPos:null,this.isXAxis?c.plotX:this.len-c.plotY)):f=a&&(this.horiz?a.chartX-this.pos:this.len-a.chartY+this.pos);if(b(f)){var y={value:c&&(this.isXAxis?c.x:n(c.stackY,c.y)),translatedValue:f};k.polar&&q(y,{isCrosshair:!0,chartX:a&&a.chartX,chartY:a&&a.chartY,point:c});y=this.getPlotLinePath(y)||null}if(!b(y)){this.hideCrosshair();
|
|
|
-return}h=this.categories&&!this.isRadial;r||(this.cross=r=k.renderer.path().addClass("highcharts-crosshair highcharts-crosshair-"+(h?"category ":"thin ")+d.className).attr({zIndex:n(d.zIndex,2)}).add(),k.styledMode||(r.attr({stroke:d.color||(h?l.parse(C.highlightColor20).setOpacity(.25).get():C.neutralColor20),"stroke-width":n(d.width,1)}).css({"pointer-events":"none"}),d.dashStyle&&r.attr({dashstyle:d.dashStyle})));r.show().attr({d:y});h&&!d.width&&r.attr({"stroke-width":this.transA});this.cross.e=
|
|
|
-a}else this.hideCrosshair();p(this,"afterDrawCrosshair",{e:a,point:c})};e.prototype.hideCrosshair=function(){this.cross&&this.cross.hide();p(this,"afterHideCrosshair")};e.prototype.hasVerticalPanning=function(){var a,c=null===(a=this.chart.options.chart)||void 0===a?void 0:a.panning;return!!(c&&c.enabled&&/y/.test(c.type))};e.prototype.validatePositiveValue=function(a){return c(a)&&0<a};e.prototype.update=function(a,c){var d=this.chart,h=a&&a.events||{};a=M(this.userOptions,a);d.options[this.coll].indexOf&&
|
|
|
-(d.options[this.coll][d.options[this.coll].indexOf(this.userOptions)]=a);P(d.options[this.coll].events,function(a,c){"undefined"===typeof h[c]&&(h[c]=void 0)});this.destroy(!0);this.init(d,q(a,{events:h}));d.isDirtyBox=!0;n(c,!0)&&d.redraw()};e.prototype.remove=function(a){for(var c=this.chart,h=this.coll,b=this.series,f=b.length;f--;)b[f]&&b[f].remove(!1);t(c.axes,this);t(c[h],this);d(c.options[h])?c.options[h].splice(this.options.index,1):delete c.options[h];c[h].forEach(function(a,c){a.options.index=
|
|
|
-a.userOptions.index=c});this.destroy();c.isDirtyBox=!0;n(a,!0)&&c.redraw()};e.prototype.setTitle=function(a,c){this.update({title:a},c)};e.prototype.setCategories=function(a,c){this.update({categories:a},c)};e.defaultOptions={dateTimeLabelFormats:{millisecond:{main:"%H:%M:%S.%L",range:!1},second:{main:"%H:%M:%S",range:!1},minute:{main:"%H:%M",range:!1},hour:{main:"%H:%M",range:!1},day:{main:"%e. %b"},week:{main:"%e. %b"},month:{main:"%b '%y"},year:{main:"%Y"}},endOnTick:!1,labels:{enabled:!0,indentation:10,
|
|
|
-x:0,style:{color:C.neutralColor60,cursor:"default",fontSize:"11px"}},maxPadding:.01,minorTickLength:2,minorTickPosition:"outside",minPadding:.01,showEmpty:!0,startOfWeek:1,startOnTick:!1,tickLength:10,tickPixelInterval:100,tickmarkPlacement:"between",tickPosition:"outside",title:{align:"middle",style:{color:C.neutralColor60}},type:"linear",minorGridLineColor:C.neutralColor5,minorGridLineWidth:1,minorTickColor:C.neutralColor40,lineColor:C.highlightColor20,lineWidth:1,gridLineColor:C.neutralColor10,
|
|
|
-tickColor:C.highlightColor20};e.defaultYAxisOptions={endOnTick:!0,maxPadding:.05,minPadding:.05,tickPixelInterval:72,showLastLabel:!0,labels:{x:-8},startOnTick:!0,title:{rotation:270,text:"Values"},stackLabels:{animation:{},allowOverlap:!1,enabled:!1,crop:!0,overflow:"justify",formatter:function(){var a=this.axis.chart.numberFormatter;return a(this.total,-1)},style:{color:C.neutralColor100,fontSize:"11px",fontWeight:"bold",textOutline:"1px contrast"}},gridLineWidth:1,lineWidth:0};e.defaultLeftAxisOptions=
|
|
|
-{labels:{x:-15},title:{rotation:270}};e.defaultRightAxisOptions={labels:{x:15},title:{rotation:90}};e.defaultBottomAxisOptions={labels:{autoRotation:[-45],x:0},margin:15,title:{rotation:0}};e.defaultTopAxisOptions={labels:{autoRotation:[-45],x:0},margin:15,title:{rotation:0}};e.keepProps="extKey hcEvents names series userMax userMin".split(" ");return e}();F.Axis=e;return F.Axis});O(e,"Core/Axis/DateTimeAxis.js",[e["Core/Axis/Axis.js"],e["Core/Utilities.js"]],function(e,l){var G=l.addEvent,C=l.getMagnitude,
|
|
|
-H=l.normalizeTickInterval,J=l.timeUnits,D=function(){function e(e){this.axis=e}e.prototype.normalizeTimeTickInterval=function(e,x){var g=x||[["millisecond",[1,2,5,10,20,25,50,100,200,500]],["second",[1,2,5,10,15,30]],["minute",[1,2,5,10,15,30]],["hour",[1,2,3,4,6,8,12]],["day",[1,2]],["week",[1,2]],["month",[1,2,3,4,6]],["year",null]];x=g[g.length-1];var u=J[x[0]],f=x[1],w;for(w=0;w<g.length&&!(x=g[w],u=J[x[0]],f=x[1],g[w+1]&&e<=(u*f[f.length-1]+J[g[w+1][0]])/2);w++);u===J.year&&e<5*u&&(f=[1,2,5]);
|
|
|
-e=H(e/u,f,"year"===x[0]?Math.max(C(e/u),1):1);return{unitRange:u,count:e,unitName:x[0]}};return e}();l=function(){function e(){}e.compose=function(e){e.keepProps.push("dateTime");e.prototype.getTimeTicks=function(){return this.chart.time.getTimeTicks.apply(this.chart.time,arguments)};G(e,"init",function(e){"datetime"!==e.userOptions.type?this.dateTime=void 0:this.dateTime||(this.dateTime=new D(this))})};e.AdditionsClass=D;return e}();l.compose(e);return l});O(e,"Core/Axis/LogarithmicAxis.js",[e["Core/Axis/Axis.js"],
|
|
|
-e["Core/Utilities.js"]],function(e,l){var G=l.addEvent,C=l.getMagnitude,H=l.normalizeTickInterval,J=l.pick,D=function(){function e(e){this.axis=e}e.prototype.getLogTickPositions=function(e,x,g,u){var f=this.axis,w=f.len,b=f.options,m=[];u||(this.minorAutoInterval=void 0);if(.5<=e)e=Math.round(e),m=f.getLinearTickPositions(e,x,g);else if(.08<=e){b=Math.floor(x);var t,I;for(w=.3<e?[1,2,4]:.15<e?[1,2,4,6,8]:[1,2,3,4,5,6,7,8,9];b<g+1&&!I;b++){var q=w.length;for(t=0;t<q&&!I;t++){var p=this.log2lin(this.lin2log(b)*
|
|
|
-w[t]);p>x&&(!u||a<=g)&&"undefined"!==typeof a&&m.push(a);a>g&&(I=!0);var a=p}}}else x=this.lin2log(x),g=this.lin2log(g),e=u?f.getMinorTickInterval():b.tickInterval,e=J("auto"===e?null:e,this.minorAutoInterval,b.tickPixelInterval/(u?5:1)*(g-x)/((u?w/f.tickPositions.length:w)||1)),e=H(e,void 0,C(e)),m=f.getLinearTickPositions(e,x,g).map(this.log2lin),u||(this.minorAutoInterval=e/5);u||(f.tickInterval=e);return m};e.prototype.lin2log=function(e){return Math.pow(10,e)};e.prototype.log2lin=function(e){return Math.log(e)/
|
|
|
-Math.LN10};return e}();l=function(){function e(){}e.compose=function(e){e.keepProps.push("logarithmic");G(e,"init",function(e){var g=this.logarithmic;"logarithmic"!==e.userOptions.type?this.logarithmic=void 0:g||(this.logarithmic=new D(this))});G(e,"afterInit",function(){var e=this.logarithmic;e&&(this.lin2val=function(g){return e.lin2log(g)},this.val2lin=function(g){return e.log2lin(g)})})};return e}();l.compose(e);return l});O(e,"Core/Axis/PlotLineOrBand.js",[e["Core/Axis/Axis.js"],e["Core/Globals.js"],
|
|
|
-e["Core/Color/Palette.js"],e["Core/Utilities.js"]],function(e,l,F,C){var G=C.arrayMax,J=C.arrayMin,D=C.defined,E=C.destroyObjectProperties,A=C.erase,x=C.extend,g=C.fireEvent,u=C.merge,f=C.objectEach,w=C.pick;C=function(){function b(b,f){this.axis=b;f&&(this.options=f,this.id=f.id)}b.prototype.render=function(){g(this,"render");var b=this,t=b.axis,e=t.horiz,q=t.logarithmic,p=b.options,a=p.label,k=b.label,d=p.to,y=p.from,c=p.value,h=D(y)&&D(d),M=D(c),S=b.svgElem,P=!S,n=[],K=p.color,r=w(p.zIndex,0),
|
|
|
-z=p.events;n={"class":"highcharts-plot-"+(h?"band ":"line ")+(p.className||"")};var L={},B=t.chart.renderer,x=h?"bands":"lines";q&&(y=q.log2lin(y),d=q.log2lin(d),c=q.log2lin(c));t.chart.styledMode||(M?(n.stroke=K||F.neutralColor40,n["stroke-width"]=w(p.width,1),p.dashStyle&&(n.dashstyle=p.dashStyle)):h&&(n.fill=K||F.highlightColor10,p.borderWidth&&(n.stroke=p.borderColor,n["stroke-width"]=p.borderWidth)));L.zIndex=r;x+="-"+r;(q=t.plotLinesAndBandsGroups[x])||(t.plotLinesAndBandsGroups[x]=q=B.g("plot-"+
|
|
|
-x).attr(L).add());P&&(b.svgElem=S=B.path().attr(n).add(q));if(M)n=t.getPlotLinePath({value:c,lineWidth:S.strokeWidth(),acrossPanes:p.acrossPanes});else if(h)n=t.getPlotBandPath(y,d,p);else return;!b.eventsAdded&&z&&(f(z,function(a,c){S.on(c,function(a){z[c].apply(b,[a])})}),b.eventsAdded=!0);(P||!S.d)&&n&&n.length?S.attr({d:n}):S&&(n?(S.show(!0),S.animate({d:n})):S.d&&(S.hide(),k&&(b.label=k=k.destroy())));a&&(D(a.text)||D(a.formatter))&&n&&n.length&&0<t.width&&0<t.height&&!n.isFlat?(a=u({align:e&&
|
|
|
-h&&"center",x:e?!h&&4:10,verticalAlign:!e&&h&&"middle",y:e?h?16:10:h?6:-4,rotation:e&&!h&&90},a),this.renderLabel(a,n,h,r)):k&&k.hide();return b};b.prototype.renderLabel=function(b,f,g,q){var m=this.label,a=this.axis.chart.renderer;m||(m={align:b.textAlign||b.align,rotation:b.rotation,"class":"highcharts-plot-"+(g?"band":"line")+"-label "+(b.className||"")},m.zIndex=q,q=this.getLabelText(b),this.label=m=a.text(q,0,0,b.useHTML).attr(m).add(),this.axis.chart.styledMode||m.css(b.style));a=f.xBounds||
|
|
|
-[f[0][1],f[1][1],g?f[2][1]:f[0][1]];f=f.yBounds||[f[0][2],f[1][2],g?f[2][2]:f[0][2]];g=J(a);q=J(f);m.align(b,!1,{x:g,y:q,width:G(a)-g,height:G(f)-q});m.show(!0)};b.prototype.getLabelText=function(b){return D(b.formatter)?b.formatter.call(this):b.text};b.prototype.destroy=function(){A(this.axis.plotLinesAndBands,this);delete this.axis;E(this)};return b}();x(e.prototype,{getPlotBandPath:function(b,f,g){void 0===g&&(g=this.options);var m=this.getPlotLinePath({value:f,force:!0,acrossPanes:g.acrossPanes});
|
|
|
-g=this.getPlotLinePath({value:b,force:!0,acrossPanes:g.acrossPanes});var q=[],p=this.horiz,a=1;b=b<this.min&&f<this.min||b>this.max&&f>this.max;if(g&&m){if(b){var k=g.toString()===m.toString();a=0}for(b=0;b<g.length;b+=2){f=g[b];var d=g[b+1],y=m[b],c=m[b+1];"M"!==f[0]&&"L"!==f[0]||"M"!==d[0]&&"L"!==d[0]||"M"!==y[0]&&"L"!==y[0]||"M"!==c[0]&&"L"!==c[0]||(p&&y[1]===f[1]?(y[1]+=a,c[1]+=a):p||y[2]!==f[2]||(y[2]+=a,c[2]+=a),q.push(["M",f[1],f[2]],["L",d[1],d[2]],["L",c[1],c[2]],["L",y[1],y[2]],["Z"]));
|
|
|
-q.isFlat=k}}return q},addPlotBand:function(b){return this.addPlotBandOrLine(b,"plotBands")},addPlotLine:function(b){return this.addPlotBandOrLine(b,"plotLines")},addPlotBandOrLine:function(b,f){var m=this,g=new l.PlotLineOrBand(this,b),q=this.userOptions;this.visible&&(g=g.render());if(g){this._addedPlotLB||(this._addedPlotLB=!0,(q.plotLines||[]).concat(q.plotBands||[]).forEach(function(a){m.addPlotBandOrLine(a)}));if(f){var p=q[f]||[];p.push(b);q[f]=p}this.plotLinesAndBands.push(g)}return g},removePlotBandOrLine:function(b){for(var f=
|
|
|
-this.plotLinesAndBands,g=this.options,e=this.userOptions,q=f.length;q--;)f[q].id===b&&f[q].destroy();[g.plotLines||[],e.plotLines||[],g.plotBands||[],e.plotBands||[]].forEach(function(f){for(q=f.length;q--;)(f[q]||{}).id===b&&A(f,f[q])})},removePlotBand:function(b){this.removePlotBandOrLine(b)},removePlotLine:function(b){this.removePlotBandOrLine(b)}});l.PlotLineOrBand=C;return l.PlotLineOrBand});O(e,"Core/Tooltip.js",[e["Core/Globals.js"],e["Core/Color/Palette.js"],e["Core/Utilities.js"]],function(e,
|
|
|
-l,F){var G=e.doc,H=F.clamp,J=F.css,D=F.defined,E=F.discardElement,A=F.extend,x=F.fireEvent,g=F.format,u=F.isNumber,f=F.isString,w=F.merge,b=F.pick,m=F.splat,t=F.syncTimeout,I=F.timeUnits;"";var q=function(){function p(a,b){this.container=void 0;this.crosshairs=[];this.distance=0;this.isHidden=!0;this.isSticky=!1;this.now={};this.options={};this.outside=!1;this.chart=a;this.init(a,b)}p.prototype.applyFilter=function(){var a=this.chart;a.renderer.definition({tagName:"filter",attributes:{id:"drop-shadow-"+
|
|
|
-a.index,opacity:.5},children:[{tagName:"feGaussianBlur",attributes:{"in":"SourceAlpha",stdDeviation:1}},{tagName:"feOffset",attributes:{dx:1,dy:1}},{tagName:"feComponentTransfer",children:[{tagName:"feFuncA",attributes:{type:"linear",slope:.3}}]},{tagName:"feMerge",children:[{tagName:"feMergeNode"},{tagName:"feMergeNode",attributes:{"in":"SourceGraphic"}}]}]});a.renderer.definition({tagName:"style",textContent:".highcharts-tooltip-"+a.index+"{filter:url(#drop-shadow-"+a.index+")}"})};p.prototype.bodyFormatter=
|
|
|
-function(a){return a.map(function(a){var d=a.series.tooltipOptions;return(d[(a.point.formatPrefix||"point")+"Formatter"]||a.point.tooltipFormatter).call(a.point,d[(a.point.formatPrefix||"point")+"Format"]||"")})};p.prototype.cleanSplit=function(a){this.chart.series.forEach(function(b){var d=b&&b.tt;d&&(!d.isActive||a?b.tt=d.destroy():d.isActive=!1)})};p.prototype.defaultFormatter=function(a){var b=this.points||m(this);var d=[a.tooltipFooterHeaderFormatter(b[0])];d=d.concat(a.bodyFormatter(b));d.push(a.tooltipFooterHeaderFormatter(b[0],
|
|
|
-!0));return d};p.prototype.destroy=function(){this.label&&(this.label=this.label.destroy());this.split&&this.tt&&(this.cleanSplit(this.chart,!0),this.tt=this.tt.destroy());this.renderer&&(this.renderer=this.renderer.destroy(),E(this.container));F.clearTimeout(this.hideTimer);F.clearTimeout(this.tooltipTimeout)};p.prototype.getAnchor=function(a,b){var d=this.chart;var f=d.pointer;var c=d.inverted,h=d.plotTop,k=d.plotLeft,g=0,p=0,n,K;a=m(a);this.followPointer&&b?("undefined"===typeof b.chartX&&(b=f.normalize(b)),
|
|
|
-f=[b.chartX-k,b.chartY-h]):a[0].tooltipPos?f=a[0].tooltipPos:(a.forEach(function(a){n=a.series.yAxis;K=a.series.xAxis;g+=a.plotX||0;p+=a.plotLow?(a.plotLow+(a.plotHigh||0))/2:a.plotY||0;K&&n&&(c?(g+=h+d.plotHeight-K.len-K.pos,p+=k+d.plotWidth-n.len-n.pos):(g+=K.pos-k,p+=n.pos-h))}),g/=a.length,p/=a.length,f=[c?d.plotWidth-p:g,c?d.plotHeight-g:p],this.shared&&1<a.length&&b&&(c?f[0]=b.chartX-k:f[1]=b.chartY-h));return f.map(Math.round)};p.prototype.getDateFormat=function(a,b,d,f){var c=this.chart.time,
|
|
|
-h=c.dateFormat("%m-%d %H:%M:%S.%L",b),k={millisecond:15,second:12,minute:9,hour:6,day:3},y="millisecond";for(g in I){if(a===I.week&&+c.dateFormat("%w",b)===d&&"00:00:00.000"===h.substr(6)){var g="week";break}if(I[g]>a){g=y;break}if(k[g]&&h.substr(k[g])!=="01-01 00:00:00.000".substr(k[g]))break;"week"!==g&&(y=g)}if(g)var n=c.resolveDTLFormat(f[g]).main;return n};p.prototype.getLabel=function(){var a,b,d,f=this,c=this.chart.renderer,h=this.chart.styledMode,g=this.options,m="tooltip"+(D(g.className)?
|
|
|
-" "+g.className:""),p=(null===(a=g.style)||void 0===a?void 0:a.pointerEvents)||(!this.followPointer&&g.stickOnContact?"auto":"none"),n;a=function(){f.inContact=!0};var K=function(){var a=f.chart.hoverSeries;f.inContact=!1;if(a&&a.onMouseOut)a.onMouseOut()};if(!this.label){if(this.outside){var r=null===(b=this.chart.options.chart)||void 0===b?void 0:b.style;this.container=n=e.doc.createElement("div");n.className="highcharts-tooltip-container";J(n,{position:"absolute",top:"1px",pointerEvents:p,zIndex:Math.max((null===
|
|
|
-(d=this.options.style)||void 0===d?void 0:d.zIndex)||0,((null===r||void 0===r?void 0:r.zIndex)||0)+3)});e.doc.body.appendChild(n);this.renderer=c=new e.Renderer(n,0,0,r,void 0,void 0,c.styledMode)}this.split?this.label=c.g(m):(this.label=c.label("",0,0,g.shape||"callout",null,null,g.useHTML,null,m).attr({padding:g.padding,r:g.borderRadius}),h||this.label.attr({fill:g.backgroundColor,"stroke-width":g.borderWidth}).css(g.style).css({pointerEvents:p}).shadow(g.shadow));h&&(this.applyFilter(),this.label.addClass("highcharts-tooltip-"+
|
|
|
-this.chart.index));if(f.outside&&!f.split){var z=this.label,q=z.xSetter,t=z.ySetter;z.xSetter=function(a){q.call(z,f.distance);n.style.left=a+"px"};z.ySetter=function(a){t.call(z,f.distance);n.style.top=a+"px"}}this.label.on("mouseenter",a).on("mouseleave",K).attr({zIndex:8}).add()}return this.label};p.prototype.getPosition=function(a,f,d){var k=this.chart,c=this.distance,h={},g=k.inverted&&d.h||0,m,p=this.outside,n=p?G.documentElement.clientWidth-2*c:k.chartWidth,K=p?Math.max(G.body.scrollHeight,
|
|
|
-G.documentElement.scrollHeight,G.body.offsetHeight,G.documentElement.offsetHeight,G.documentElement.clientHeight):k.chartHeight,r=k.pointer.getChartPosition(),z=function(h){var b="x"===h;return[h,b?n:K,b?a:f].concat(p?[b?a*r.scaleX:f*r.scaleY,b?r.left-c+(d.plotX+k.plotLeft)*r.scaleX:r.top-c+(d.plotY+k.plotTop)*r.scaleY,0,b?n:K]:[b?a:f,b?d.plotX+k.plotLeft:d.plotY+k.plotTop,b?k.plotLeft:k.plotTop,b?k.plotLeft+k.plotWidth:k.plotTop+k.plotHeight])},q=z("y"),t=z("x"),e=!this.followPointer&&b(d.ttBelow,
|
|
|
-!k.inverted===!!d.negative),v=function(a,d,b,f,n,k,z){var y=p?"y"===a?c*r.scaleY:c*r.scaleX:c,m=(b-f)/2,K=f<n-c,q=n+c+f<d,t=n-y-b+m;n=n+y-m;if(e&&q)h[a]=n;else if(!e&&K)h[a]=t;else if(K)h[a]=Math.min(z-f,0>t-g?t:t-g);else if(q)h[a]=Math.max(k,n+g+b>d?n:n+g);else return!1},u=function(a,d,b,f,n){var r;n<c||n>d-c?r=!1:h[a]=n<b/2?1:n>d-f/2?d-f-2:n-b/2;return r},w=function(a){var c=q;q=t;t=c;m=a},I=function(){!1!==v.apply(0,q)?!1!==u.apply(0,t)||m||(w(!0),I()):m?h.x=h.y=0:(w(!0),I())};(k.inverted||1<this.len)&&
|
|
|
-w();I();return h};p.prototype.getXDateFormat=function(a,b,d){b=b.dateTimeLabelFormats;var f=d&&d.closestPointRange;return(f?this.getDateFormat(f,a.x,d.options.startOfWeek,b):b.day)||b.year};p.prototype.hide=function(a){var f=this;F.clearTimeout(this.hideTimer);a=b(a,this.options.hideDelay,500);this.isHidden||(this.hideTimer=t(function(){f.getLabel().fadeOut(a?void 0:a);f.isHidden=!0},a))};p.prototype.init=function(a,f){this.chart=a;this.options=f;this.crosshairs=[];this.now={x:0,y:0};this.isHidden=
|
|
|
-!0;this.split=f.split&&!a.inverted&&!a.polar;this.shared=f.shared||this.split;this.outside=b(f.outside,!(!a.scrollablePixelsX&&!a.scrollablePixelsY))};p.prototype.isStickyOnContact=function(){return!(this.followPointer||!this.options.stickOnContact||!this.inContact)};p.prototype.move=function(a,b,d,f){var c=this,h=c.now,k=!1!==c.options.animation&&!c.isHidden&&(1<Math.abs(a-h.x)||1<Math.abs(b-h.y)),y=c.followPointer||1<c.len;A(h,{x:k?(2*h.x+a)/3:a,y:k?(h.y+b)/2:b,anchorX:y?void 0:k?(2*h.anchorX+d)/
|
|
|
-3:d,anchorY:y?void 0:k?(h.anchorY+f)/2:f});c.getLabel().attr(h);c.drawTracker();k&&(F.clearTimeout(this.tooltipTimeout),this.tooltipTimeout=setTimeout(function(){c&&c.move(a,b,d,f)},32))};p.prototype.refresh=function(a,f){var d=this.chart,k=this.options,c=a,h={},g=[],p=k.formatter||this.defaultFormatter;h=this.shared;var q=d.styledMode;if(k.enabled){F.clearTimeout(this.hideTimer);this.followPointer=m(c)[0].series.tooltipOptions.followPointer;var n=this.getAnchor(c,f);f=n[0];var K=n[1];!h||c.series&&
|
|
|
-c.series.noSharedTooltip?h=c.getLabelConfig():(d.pointer.applyInactiveState(c),c.forEach(function(a){a.setState("hover");g.push(a.getLabelConfig())}),h={x:c[0].category,y:c[0].y},h.points=g,c=c[0]);this.len=g.length;d=p.call(h,this);p=c.series;this.distance=b(p.tooltipOptions.distance,16);!1===d?this.hide():(this.split?this.renderSplit(d,m(a)):(a=this.getLabel(),k.style.width&&!q||a.css({width:this.chart.spacingBox.width+"px"}),a.attr({text:d&&d.join?d.join(""):d}),a.removeClass(/highcharts-color-[\d]+/g).addClass("highcharts-color-"+
|
|
|
-b(c.colorIndex,p.colorIndex)),q||a.attr({stroke:k.borderColor||c.color||p.color||l.neutralColor60}),this.updatePosition({plotX:f,plotY:K,negative:c.negative,ttBelow:c.ttBelow,h:n[2]||0})),this.isHidden&&this.label&&this.label.attr({opacity:1}).show(),this.isHidden=!1);x(this,"refresh")}};p.prototype.renderSplit=function(a,k){function d(a,c,d,h,b){void 0===b&&(b=!0);d?(c=Y?0:D,a=H(a-h/2,x.left,x.right-h)):(c-=T,a=b?a-h-v:a+v,a=H(a,b?a:x.left,x.right));return{x:a,y:c}}var y=this,c=y.chart,h=y.chart,
|
|
|
-g=h.plotHeight,m=h.plotLeft,p=h.plotTop,n=h.pointer,K=h.renderer,r=h.scrollablePixelsY,z=void 0===r?0:r;r=h.scrollingContainer;r=void 0===r?{scrollLeft:0,scrollTop:0}:r;var q=r.scrollLeft,t=r.scrollTop,u=h.styledMode,v=y.distance,w=y.options,I=y.options.positioner,x={left:q,right:q+h.chartWidth,top:t,bottom:t+h.chartHeight},N=y.getLabel(),Y=!(!c.xAxis[0]||!c.xAxis[0].opposite),T=p+t,E=0,D=g-z;f(a)&&(a=[!1,a]);a=a.slice(0,k.length+1).reduce(function(a,c,h){if(!1!==c&&""!==c){h=k[h-1]||{isHeader:!0,
|
|
|
-plotX:k[0].plotX,plotY:g,series:{}};var f=h.isHeader,n=f?y:h.series,r=n.tt,q=h.isHeader;var B=h.series;var M="highcharts-color-"+b(h.colorIndex,B.colorIndex,"none");r||(r={padding:w.padding,r:w.borderRadius},u||(r.fill=w.backgroundColor,r["stroke-width"]=w.borderWidth),r=K.label("",0,0,w[q?"headerShape":"shape"]||"callout",void 0,void 0,w.useHTML).addClass((q?"highcharts-tooltip-header ":"")+"highcharts-tooltip-box "+M).attr(r).add(N));r.isActive=!0;r.attr({text:c});u||r.css(w.style).shadow(w.shadow).attr({stroke:w.borderColor||
|
|
|
-h.color||B.color||l.neutralColor80});c=n.tt=r;q=c.getBBox();n=q.width+c.strokeWidth();f&&(E=q.height,D+=E,Y&&(T-=E));B=h.plotX;B=void 0===B?0:B;M=h.plotY;M=void 0===M?0:M;var L=h.series;if(h.isHeader){B=m+B;var e=p+g/2}else r=L.xAxis,L=L.yAxis,B=r.pos+H(B,-v,r.len+v),L.pos+M>=t+p&&L.pos+M<=t+p+g-z&&(e=L.pos+M);B=H(B,x.left-v,x.right+v);"number"===typeof e?(q=q.height+1,M=I?I.call(y,n,q,h):d(B,e,f,n),a.push({align:I?0:void 0,anchorX:B,anchorY:e,boxWidth:n,point:h,rank:b(M.rank,f?1:0),size:q,target:M.y,
|
|
|
-tt:c,x:M.x})):c.isActive=!1}return a},[]);!I&&a.some(function(a){return a.x<x.left})&&(a=a.map(function(a){var c=d(a.anchorX,a.anchorY,a.point.isHeader,a.boxWidth,!1);return A(a,{target:c.y,x:c.x})}));y.cleanSplit();e.distribute(a,D);a.forEach(function(a){var c=a.pos;a.tt.attr({visibility:"undefined"===typeof c?"hidden":"inherit",x:a.x,y:c+T,anchorX:a.anchorX,anchorY:a.anchorY})});a=y.container;c=y.renderer;y.outside&&a&&c&&(h=N.getBBox(),c.setSize(h.width+h.x,h.height+h.y,!1),n=n.getChartPosition(),
|
|
|
-a.style.left=n.left+"px",a.style.top=n.top+"px")};p.prototype.drawTracker=function(){if(this.followPointer||!this.options.stickOnContact)this.tracker&&this.tracker.destroy();else{var a=this.chart,b=this.label,d=a.hoverPoint;if(b&&d){var f={x:0,y:0,width:0,height:0};d=this.getAnchor(d);var c=b.getBBox();d[0]+=a.plotLeft-b.translateX;d[1]+=a.plotTop-b.translateY;f.x=Math.min(0,d[0]);f.y=Math.min(0,d[1]);f.width=0>d[0]?Math.max(Math.abs(d[0]),c.width-d[0]):Math.max(Math.abs(d[0]),c.width);f.height=0>
|
|
|
-d[1]?Math.max(Math.abs(d[1]),c.height-Math.abs(d[1])):Math.max(Math.abs(d[1]),c.height);this.tracker?this.tracker.attr(f):(this.tracker=b.renderer.rect(f).addClass("highcharts-tracker").add(b),a.styledMode||this.tracker.attr({fill:"rgba(0,0,0,0)"}))}}};p.prototype.styledModeFormat=function(a){return a.replace('style="font-size: 10px"','class="highcharts-header"').replace(/style="color:{(point|series)\.color}"/g,'class="highcharts-color-{$1.colorIndex}"')};p.prototype.tooltipFooterHeaderFormatter=
|
|
|
-function(a,b){var d=b?"footer":"header",f=a.series,c=f.tooltipOptions,h=c.xDateFormat,k=f.xAxis,m=k&&"datetime"===k.options.type&&u(a.key),p=c[d+"Format"];b={isFooter:b,labelConfig:a};x(this,"headerFormatter",b,function(d){m&&!h&&(h=this.getXDateFormat(a,c,k));m&&h&&(a.point&&a.point.tooltipDateKeys||["key"]).forEach(function(a){p=p.replace("{point."+a+"}","{point."+a+":"+h+"}")});f.chart.styledMode&&(p=this.styledModeFormat(p));d.text=g(p,{point:a,series:f},this.chart)});return b.text};p.prototype.update=
|
|
|
-function(a){this.destroy();w(!0,this.chart.options.tooltip.userOptions,a);this.init(this.chart,w(!0,this.options,a))};p.prototype.updatePosition=function(a){var b=this.chart,d=b.pointer,f=this.getLabel(),c=a.plotX+b.plotLeft;b=a.plotY+b.plotTop;d=d.getChartPosition();a=(this.options.positioner||this.getPosition).call(this,f.width,f.height,a);if(this.outside){var h=(this.options.borderWidth||0)+2*this.distance;this.renderer.setSize(f.width+h,f.height+h,!1);if(1!==d.scaleX||1!==d.scaleY)J(this.container,
|
|
|
-{transform:"scale("+d.scaleX+", "+d.scaleY+")"}),c*=d.scaleX,b*=d.scaleY;c+=d.left-a.x;b+=d.top-a.y}this.move(Math.round(a.x),Math.round(a.y||0),c,b)};return p}();e.Tooltip=q;return e.Tooltip});O(e,"Core/Pointer.js",[e["Core/Color/Color.js"],e["Core/Globals.js"],e["Core/Color/Palette.js"],e["Core/Tooltip.js"],e["Core/Utilities.js"]],function(e,l,F,C,H){var G=e.parse,D=l.charts,E=l.noop,A=H.addEvent,x=H.attr,g=H.css,u=H.defined,f=H.extend,w=H.find,b=H.fireEvent,m=H.isNumber,t=H.isObject,I=H.objectEach,
|
|
|
-q=H.offset,p=H.pick,a=H.splat;"";e=function(){function k(a,b){this.lastValidTouch={};this.pinchDown=[];this.runChartClick=!1;this.chart=a;this.hasDragged=!1;this.options=b;this.unbindContainerMouseLeave=function(){};this.unbindContainerMouseEnter=function(){};this.init(a,b)}k.prototype.applyInactiveState=function(a){var d=[],c;(a||[]).forEach(function(a){c=a.series;d.push(c);c.linkedParent&&d.push(c.linkedParent);c.linkedSeries&&(d=d.concat(c.linkedSeries));c.navigatorSeries&&d.push(c.navigatorSeries)});
|
|
|
-this.chart.series.forEach(function(a){-1===d.indexOf(a)?a.setState("inactive",!0):a.options.inactiveOtherPoints&&a.setAllPointsToState("inactive")})};k.prototype.destroy=function(){var a=this;"undefined"!==typeof a.unDocMouseMove&&a.unDocMouseMove();this.unbindContainerMouseLeave();l.chartCount||(l.unbindDocumentMouseUp&&(l.unbindDocumentMouseUp=l.unbindDocumentMouseUp()),l.unbindDocumentTouchEnd&&(l.unbindDocumentTouchEnd=l.unbindDocumentTouchEnd()));clearInterval(a.tooltipTimeout);I(a,function(d,
|
|
|
-c){a[c]=void 0})};k.prototype.drag=function(a){var d=this.chart,c=d.options.chart,h=a.chartX,b=a.chartY,f=this.zoomHor,k=this.zoomVert,n=d.plotLeft,g=d.plotTop,r=d.plotWidth,z=d.plotHeight,p=this.selectionMarker,m=this.mouseDownX||0,q=this.mouseDownY||0,v=t(c.panning)?c.panning&&c.panning.enabled:c.panning,e=c.panKey&&a[c.panKey+"Key"];if(!p||!p.touch)if(h<n?h=n:h>n+r&&(h=n+r),b<g?b=g:b>g+z&&(b=g+z),this.hasDragged=Math.sqrt(Math.pow(m-h,2)+Math.pow(q-b,2)),10<this.hasDragged){var u=d.isInsidePlot(m-
|
|
|
-n,q-g);d.hasCartesianSeries&&(this.zoomX||this.zoomY)&&u&&!e&&!p&&(this.selectionMarker=p=d.renderer.rect(n,g,f?1:r,k?1:z,0).attr({"class":"highcharts-selection-marker",zIndex:7}).add(),d.styledMode||p.attr({fill:c.selectionMarkerFill||G(F.highlightColor80).setOpacity(.25).get()}));p&&f&&(h-=m,p.attr({width:Math.abs(h),x:(0<h?0:h)+m}));p&&k&&(h=b-q,p.attr({height:Math.abs(h),y:(0<h?0:h)+q}));u&&!p&&v&&d.pan(a,c.panning)}};k.prototype.dragStart=function(a){var d=this.chart;d.mouseIsDown=a.type;d.cancelClick=
|
|
|
-!1;d.mouseDownX=this.mouseDownX=a.chartX;d.mouseDownY=this.mouseDownY=a.chartY};k.prototype.drop=function(a){var d=this,c=this.chart,h=this.hasPinched;if(this.selectionMarker){var k={originalEvent:a,xAxis:[],yAxis:[]},p=this.selectionMarker,q=p.attr?p.attr("x"):p.x,n=p.attr?p.attr("y"):p.y,K=p.attr?p.attr("width"):p.width,r=p.attr?p.attr("height"):p.height,z;if(this.hasDragged||h)c.axes.forEach(function(c){if(c.zoomEnabled&&u(c.min)&&(h||d[{xAxis:"zoomX",yAxis:"zoomY"}[c.coll]])&&m(q)&&m(n)){var b=
|
|
|
-c.horiz,f="touchend"===a.type?c.minPixelPadding:0,g=c.toValue((b?q:n)+f);b=c.toValue((b?q+K:n+r)-f);k[c.coll].push({axis:c,min:Math.min(g,b),max:Math.max(g,b)});z=!0}}),z&&b(c,"selection",k,function(a){c.zoom(f(a,h?{animation:!1}:null))});m(c.index)&&(this.selectionMarker=this.selectionMarker.destroy());h&&this.scaleGroups()}c&&m(c.index)&&(g(c.container,{cursor:c._cursor}),c.cancelClick=10<this.hasDragged,c.mouseIsDown=this.hasDragged=this.hasPinched=!1,this.pinchDown=[])};k.prototype.findNearestKDPoint=
|
|
|
-function(a,b,c){var d=this.chart,f=d.hoverPoint;d=d.tooltip;if(f&&d&&d.isStickyOnContact())return f;var k;a.forEach(function(a){var d=!(a.noSharedTooltip&&b)&&0>a.options.findNearestPointBy.indexOf("y");a=a.searchPoint(c,d);if((d=t(a,!0)&&a.series)&&!(d=!t(k,!0))){d=k.distX-a.distX;var h=k.dist-a.dist,f=(a.series.group&&a.series.group.zIndex)-(k.series.group&&k.series.group.zIndex);d=0<(0!==d&&b?d:0!==h?h:0!==f?f:k.series.index>a.series.index?-1:1)}d&&(k=a)});return k};k.prototype.getChartCoordinatesFromPoint=
|
|
|
-function(a,b){var c=a.series,d=c.xAxis;c=c.yAxis;var f=p(a.clientX,a.plotX),k=a.shapeArgs;if(d&&c)return b?{chartX:d.len+d.pos-f,chartY:c.len+c.pos-a.plotY}:{chartX:f+d.pos,chartY:a.plotY+c.pos};if(k&&k.x&&k.y)return{chartX:k.x,chartY:k.y}};k.prototype.getChartPosition=function(){if(this.chartPosition)return this.chartPosition;var a=this.chart.container,b=q(a);this.chartPosition={left:b.left,top:b.top,scaleX:1,scaleY:1};var c=a.offsetWidth;a=a.offsetHeight;2<c&&2<a&&(this.chartPosition.scaleX=b.width/
|
|
|
-c,this.chartPosition.scaleY=b.height/a);return this.chartPosition};k.prototype.getCoordinates=function(a){var d={xAxis:[],yAxis:[]};this.chart.axes.forEach(function(c){d[c.isXAxis?"xAxis":"yAxis"].push({axis:c,value:c.toValue(a[c.horiz?"chartX":"chartY"])})});return d};k.prototype.getHoverData=function(a,f,c,h,k,g){var d,n=[];h=!(!h||!a);var m=f&&!f.stickyTracking,r={chartX:g?g.chartX:void 0,chartY:g?g.chartY:void 0,shared:k};b(this,"beforeGetHoverData",r);m=m?[f]:c.filter(function(a){return r.filter?
|
|
|
-r.filter(a):a.visible&&!(!k&&a.directTouch)&&p(a.options.enableMouseTracking,!0)&&a.stickyTracking});f=(d=h||!g?a:this.findNearestKDPoint(m,k,g))&&d.series;d&&(k&&!f.noSharedTooltip?(m=c.filter(function(a){return r.filter?r.filter(a):a.visible&&!(!k&&a.directTouch)&&p(a.options.enableMouseTracking,!0)&&!a.noSharedTooltip}),m.forEach(function(a){var c=w(a.points,function(a){return a.x===d.x&&!a.isNull});t(c)&&(a.chart.isBoosting&&(c=a.getPoint(c)),n.push(c))})):n.push(d));r={hoverPoint:d};b(this,"afterGetHoverData",
|
|
|
-r);return{hoverPoint:r.hoverPoint,hoverSeries:f,hoverPoints:n}};k.prototype.getPointFromEvent=function(a){a=a.target;for(var d;a&&!d;)d=a.point,a=a.parentNode;return d};k.prototype.onTrackerMouseOut=function(a){a=a.relatedTarget||a.toElement;var d=this.chart.hoverSeries;this.isDirectTouch=!1;if(!(!d||!a||d.stickyTracking||this.inClass(a,"highcharts-tooltip")||this.inClass(a,"highcharts-series-"+d.index)&&this.inClass(a,"highcharts-tracker")))d.onMouseOut()};k.prototype.inClass=function(a,b){for(var c;a;){if(c=
|
|
|
-x(a,"class")){if(-1!==c.indexOf(b))return!0;if(-1!==c.indexOf("highcharts-container"))return!1}a=a.parentNode}};k.prototype.init=function(a,b){this.options=b;this.chart=a;this.runChartClick=b.chart.events&&!!b.chart.events.click;this.pinchDown=[];this.lastValidTouch={};C&&(a.tooltip=new C(a,b.tooltip),this.followTouchMove=p(b.tooltip.followTouchMove,!0));this.setDOMEvents()};k.prototype.normalize=function(a,b){var c=a.touches,d=c?c.length?c.item(0):p(c.changedTouches,a.changedTouches)[0]:a;b||(b=
|
|
|
-this.getChartPosition());c=d.pageX-b.left;d=d.pageY-b.top;c/=b.scaleX;d/=b.scaleY;return f(a,{chartX:Math.round(c),chartY:Math.round(d)})};k.prototype.onContainerClick=function(a){var d=this.chart,c=d.hoverPoint;a=this.normalize(a);var h=d.plotLeft,k=d.plotTop;d.cancelClick||(c&&this.inClass(a.target,"highcharts-tracker")?(b(c.series,"click",f(a,{point:c})),d.hoverPoint&&c.firePointEvent("click",a)):(f(a,this.getCoordinates(a)),d.isInsidePlot(a.chartX-h,a.chartY-k)&&b(d,"click",a)))};k.prototype.onContainerMouseDown=
|
|
|
-function(a){var d=1===((a.buttons||a.button)&1);a=this.normalize(a);if(l.isFirefox&&0!==a.button)this.onContainerMouseMove(a);if("undefined"===typeof a.button||d)this.zoomOption(a),d&&a.preventDefault&&a.preventDefault(),this.dragStart(a)};k.prototype.onContainerMouseLeave=function(a){var d=D[p(l.hoverChartIndex,-1)],c=this.chart.tooltip;a=this.normalize(a);d&&(a.relatedTarget||a.toElement)&&(d.pointer.reset(),d.pointer.chartPosition=void 0);c&&!c.isHidden&&this.reset()};k.prototype.onContainerMouseEnter=
|
|
|
-function(a){delete this.chartPosition};k.prototype.onContainerMouseMove=function(a){var d=this.chart;a=this.normalize(a);this.setHoverChartIndex();a.preventDefault||(a.returnValue=!1);("mousedown"===d.mouseIsDown||this.touchSelect(a))&&this.drag(a);d.openMenu||!this.inClass(a.target,"highcharts-tracker")&&!d.isInsidePlot(a.chartX-d.plotLeft,a.chartY-d.plotTop)||this.runPointActions(a)};k.prototype.onDocumentTouchEnd=function(a){D[l.hoverChartIndex]&&D[l.hoverChartIndex].pointer.drop(a)};k.prototype.onContainerTouchMove=
|
|
|
-function(a){if(this.touchSelect(a))this.onContainerMouseMove(a);else this.touch(a)};k.prototype.onContainerTouchStart=function(a){if(this.touchSelect(a))this.onContainerMouseDown(a);else this.zoomOption(a),this.touch(a,!0)};k.prototype.onDocumentMouseMove=function(a){var d=this.chart,c=this.chartPosition;a=this.normalize(a,c);var h=d.tooltip;!c||h&&h.isStickyOnContact()||d.isInsidePlot(a.chartX-d.plotLeft,a.chartY-d.plotTop)||this.inClass(a.target,"highcharts-tracker")||this.reset()};k.prototype.onDocumentMouseUp=
|
|
|
-function(a){var d=D[p(l.hoverChartIndex,-1)];d&&d.pointer.drop(a)};k.prototype.pinch=function(a){var d=this,c=d.chart,h=d.pinchDown,b=a.touches||[],k=b.length,g=d.lastValidTouch,n=d.hasZoom,m=d.selectionMarker,r={},z=1===k&&(d.inClass(a.target,"highcharts-tracker")&&c.runTrackerClick||d.runChartClick),q={};1<k&&(d.initiated=!0);n&&d.initiated&&!z&&!1!==a.cancelable&&a.preventDefault();[].map.call(b,function(a){return d.normalize(a)});"touchstart"===a.type?([].forEach.call(b,function(a,c){h[c]={chartX:a.chartX,
|
|
|
-chartY:a.chartY}}),g.x=[h[0].chartX,h[1]&&h[1].chartX],g.y=[h[0].chartY,h[1]&&h[1].chartY],c.axes.forEach(function(a){if(a.zoomEnabled){var d=c.bounds[a.horiz?"h":"v"],h=a.minPixelPadding,b=a.toPixels(Math.min(p(a.options.min,a.dataMin),a.dataMin)),f=a.toPixels(Math.max(p(a.options.max,a.dataMax),a.dataMax)),n=Math.max(b,f);d.min=Math.min(a.pos,Math.min(b,f)-h);d.max=Math.max(a.pos+a.len,n+h)}}),d.res=!0):d.followTouchMove&&1===k?this.runPointActions(d.normalize(a)):h.length&&(m||(d.selectionMarker=
|
|
|
-m=f({destroy:E,touch:!0},c.plotBox)),d.pinchTranslate(h,b,r,m,q,g),d.hasPinched=n,d.scaleGroups(r,q),d.res&&(d.res=!1,this.reset(!1,0)))};k.prototype.pinchTranslate=function(a,b,c,h,f,k){this.zoomHor&&this.pinchTranslateDirection(!0,a,b,c,h,f,k);this.zoomVert&&this.pinchTranslateDirection(!1,a,b,c,h,f,k)};k.prototype.pinchTranslateDirection=function(a,b,c,h,f,k,g,n){var d=this.chart,r=a?"x":"y",z=a?"X":"Y",p="chart"+z,m=a?"width":"height",q=d["plot"+(a?"Left":"Top")],t,y,e=n||1,M=d.inverted,N=d.bounds[a?
|
|
|
-"h":"v"],u=1===b.length,w=b[0][p],I=c[0][p],x=!u&&b[1][p],P=!u&&c[1][p];c=function(){"number"===typeof P&&20<Math.abs(w-x)&&(e=n||Math.abs(I-P)/Math.abs(w-x));y=(q-I)/e+w;t=d["plot"+(a?"Width":"Height")]/e};c();b=y;if(b<N.min){b=N.min;var l=!0}else b+t>N.max&&(b=N.max-t,l=!0);l?(I-=.8*(I-g[r][0]),"number"===typeof P&&(P-=.8*(P-g[r][1])),c()):g[r]=[I,P];M||(k[r]=y-q,k[m]=t);k=M?1/e:e;f[m]=t;f[r]=b;h[M?a?"scaleY":"scaleX":"scale"+z]=e;h["translate"+z]=k*q+(I-k*w)};k.prototype.reset=function(d,b){var c=
|
|
|
-this.chart,h=c.hoverSeries,f=c.hoverPoint,k=c.hoverPoints,g=c.tooltip,n=g&&g.shared?k:f;d&&n&&a(n).forEach(function(a){a.series.isCartesian&&"undefined"===typeof a.plotX&&(d=!1)});if(d)g&&n&&a(n).length&&(g.refresh(n),g.shared&&k?k.forEach(function(a){a.setState(a.state,!0);a.series.isCartesian&&(a.series.xAxis.crosshair&&a.series.xAxis.drawCrosshair(null,a),a.series.yAxis.crosshair&&a.series.yAxis.drawCrosshair(null,a))}):f&&(f.setState(f.state,!0),c.axes.forEach(function(a){a.crosshair&&f.series[a.coll]===
|
|
|
-a&&a.drawCrosshair(null,f)})));else{if(f)f.onMouseOut();k&&k.forEach(function(a){a.setState()});if(h)h.onMouseOut();g&&g.hide(b);this.unDocMouseMove&&(this.unDocMouseMove=this.unDocMouseMove());c.axes.forEach(function(a){a.hideCrosshair()});this.hoverX=c.hoverPoints=c.hoverPoint=null}};k.prototype.runPointActions=function(a,b){var c=this.chart,d=c.tooltip&&c.tooltip.options.enabled?c.tooltip:void 0,f=d?d.shared:!1,k=b||c.hoverPoint,g=k&&k.series||c.hoverSeries;g=this.getHoverData(k,g,c.series,(!a||
|
|
|
-"touchmove"!==a.type)&&(!!b||g&&g.directTouch&&this.isDirectTouch),f,a);k=g.hoverPoint;var n=g.hoverPoints;b=(g=g.hoverSeries)&&g.tooltipOptions.followPointer;f=f&&g&&!g.noSharedTooltip;if(k&&(k!==c.hoverPoint||d&&d.isHidden)){(c.hoverPoints||[]).forEach(function(a){-1===n.indexOf(a)&&a.setState()});if(c.hoverSeries!==g)g.onMouseOver();this.applyInactiveState(n);(n||[]).forEach(function(a){a.setState("hover")});c.hoverPoint&&c.hoverPoint.firePointEvent("mouseOut");if(!k.series)return;c.hoverPoints=
|
|
|
-n;c.hoverPoint=k;k.firePointEvent("mouseOver");d&&d.refresh(f?n:k,a)}else b&&d&&!d.isHidden&&(k=d.getAnchor([{}],a),d.updatePosition({plotX:k[0],plotY:k[1]}));this.unDocMouseMove||(this.unDocMouseMove=A(c.container.ownerDocument,"mousemove",function(a){var c=D[l.hoverChartIndex];if(c)c.pointer.onDocumentMouseMove(a)}));c.axes.forEach(function(d){var h=p((d.crosshair||{}).snap,!0),b;h&&((b=c.hoverPoint)&&b.series[d.coll]===d||(b=w(n,function(a){return a.series[d.coll]===d})));b||!h?d.drawCrosshair(a,
|
|
|
-b):d.hideCrosshair()})};k.prototype.scaleGroups=function(a,b){var c=this.chart,d;c.series.forEach(function(h){d=a||h.getPlotBox();h.xAxis&&h.xAxis.zoomEnabled&&h.group&&(h.group.attr(d),h.markerGroup&&(h.markerGroup.attr(d),h.markerGroup.clip(b?c.clipRect:null)),h.dataLabelsGroup&&h.dataLabelsGroup.attr(d))});c.clipRect.attr(b||c.clipBox)};k.prototype.setDOMEvents=function(){var a=this,b=this.chart.container,c=b.ownerDocument;b.onmousedown=this.onContainerMouseDown.bind(this);b.onmousemove=this.onContainerMouseMove.bind(this);
|
|
|
-b.onclick=this.onContainerClick.bind(this);this.unbindContainerMouseEnter=A(b,"mouseenter",this.onContainerMouseEnter.bind(this));this.unbindContainerMouseLeave=A(b,"mouseleave",this.onContainerMouseLeave.bind(this));l.unbindDocumentMouseUp||(l.unbindDocumentMouseUp=A(c,"mouseup",this.onDocumentMouseUp.bind(this)));for(var h=this.chart.renderTo.parentElement;h&&"BODY"!==h.tagName;)A(h,"scroll",function(){delete a.chartPosition}),h=h.parentElement;l.hasTouch&&(A(b,"touchstart",this.onContainerTouchStart.bind(this),
|
|
|
-{passive:!1}),A(b,"touchmove",this.onContainerTouchMove.bind(this),{passive:!1}),l.unbindDocumentTouchEnd||(l.unbindDocumentTouchEnd=A(c,"touchend",this.onDocumentTouchEnd.bind(this),{passive:!1})))};k.prototype.setHoverChartIndex=function(){var a=this.chart,b=l.charts[p(l.hoverChartIndex,-1)];if(b&&b!==a)b.pointer.onContainerMouseLeave({relatedTarget:!0});b&&b.mouseIsDown||(l.hoverChartIndex=a.index)};k.prototype.touch=function(a,b){var c=this.chart,d;this.setHoverChartIndex();if(1===a.touches.length)if(a=
|
|
|
-this.normalize(a),(d=c.isInsidePlot(a.chartX-c.plotLeft,a.chartY-c.plotTop))&&!c.openMenu){b&&this.runPointActions(a);if("touchmove"===a.type){b=this.pinchDown;var f=b[0]?4<=Math.sqrt(Math.pow(b[0].chartX-a.chartX,2)+Math.pow(b[0].chartY-a.chartY,2)):!1}p(f,!0)&&this.pinch(a)}else b&&this.reset();else 2===a.touches.length&&this.pinch(a)};k.prototype.touchSelect=function(a){return!(!this.chart.options.chart.zoomBySingleTouch||!a.touches||1!==a.touches.length)};k.prototype.zoomOption=function(a){var d=
|
|
|
-this.chart,c=d.options.chart,b=c.zoomType||"";d=d.inverted;/touch/.test(a.type)&&(b=p(c.pinchType,b));this.zoomX=a=/x/.test(b);this.zoomY=b=/y/.test(b);this.zoomHor=a&&!d||b&&d;this.zoomVert=b&&!d||a&&d;this.hasZoom=a||b};return k}();return l.Pointer=e});O(e,"Core/MSPointer.js",[e["Core/Globals.js"],e["Core/Pointer.js"],e["Core/Utilities.js"]],function(e,l,F){function G(){var b=[];b.item=function(b){return this[b]};u(w,function(f){b.push({pageX:f.pageX,pageY:f.pageY,target:f.target})});return b}function H(b,
|
|
|
-f,g,q){"touch"!==b.pointerType&&b.pointerType!==b.MSPOINTER_TYPE_TOUCH||!D[e.hoverChartIndex]||(q(b),q=D[e.hoverChartIndex].pointer,q[f]({type:g,target:b.currentTarget,preventDefault:A,touches:G()}))}var J=this&&this.__extends||function(){var b=function(f,g){b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,f){b.__proto__=f}||function(b,f){for(var a in f)f.hasOwnProperty(a)&&(b[a]=f[a])};return b(f,g)};return function(f,g){function q(){this.constructor=f}b(f,g);f.prototype=null===
|
|
|
-g?Object.create(g):(q.prototype=g.prototype,new q)}}(),D=e.charts,E=e.doc,A=e.noop,x=F.addEvent,g=F.css,u=F.objectEach,f=F.removeEvent,w={},b=!!e.win.PointerEvent;return function(m){function t(){return null!==m&&m.apply(this,arguments)||this}J(t,m);t.prototype.batchMSEvents=function(f){f(this.chart.container,b?"pointerdown":"MSPointerDown",this.onContainerPointerDown);f(this.chart.container,b?"pointermove":"MSPointerMove",this.onContainerPointerMove);f(E,b?"pointerup":"MSPointerUp",this.onDocumentPointerUp)};
|
|
|
-t.prototype.destroy=function(){this.batchMSEvents(f);m.prototype.destroy.call(this)};t.prototype.init=function(b,f){m.prototype.init.call(this,b,f);this.hasZoom&&g(b.container,{"-ms-touch-action":"none","touch-action":"none"})};t.prototype.onContainerPointerDown=function(b){H(b,"onContainerTouchStart","touchstart",function(b){w[b.pointerId]={pageX:b.pageX,pageY:b.pageY,target:b.currentTarget}})};t.prototype.onContainerPointerMove=function(b){H(b,"onContainerTouchMove","touchmove",function(b){w[b.pointerId]=
|
|
|
-{pageX:b.pageX,pageY:b.pageY};w[b.pointerId].target||(w[b.pointerId].target=b.currentTarget)})};t.prototype.onDocumentPointerUp=function(b){H(b,"onDocumentTouchEnd","touchend",function(b){delete w[b.pointerId]})};t.prototype.setDOMEvents=function(){m.prototype.setDOMEvents.call(this);(this.hasZoom||this.followTouchMove)&&this.batchMSEvents(x)};return t}(l)});O(e,"Core/Series/Point.js",[e["Core/Renderer/HTML/AST.js"],e["Core/Animation/AnimationUtilities.js"],e["Core/Globals.js"],e["Core/Options.js"],
|
|
|
-e["Core/Utilities.js"]],function(e,l,F,C,H){var G=l.animObject,D=C.defaultOptions,E=H.addEvent,A=H.defined,x=H.erase,g=H.extend,u=H.fireEvent,f=H.format,w=H.getNestedProperty,b=H.isArray,m=H.isFunction,t=H.isNumber,I=H.isObject,q=H.merge,p=H.objectEach,a=H.pick,k=H.syncTimeout,d=H.removeEvent,y=H.uniqueKey;"";l=function(){function c(){this.colorIndex=this.category=void 0;this.formatPrefix="point";this.id=void 0;this.isNull=!1;this.percentage=this.options=this.name=void 0;this.selected=!1;this.total=
|
|
|
-this.series=void 0;this.visible=!0;this.x=void 0}c.prototype.animateBeforeDestroy=function(){var a=this,c={x:a.startXPos,opacity:0},d,b=a.getGraphicalProps();b.singular.forEach(function(b){d="dataLabel"===b;a[b]=a[b].animate(d?{x:a[b].startXPos,y:a[b].startYPos,opacity:0}:c)});b.plural.forEach(function(c){a[c].forEach(function(c){c.element&&c.animate(g({x:a.startXPos},c.startYPos?{x:c.startXPos,y:c.startYPos}:{}))})})};c.prototype.applyOptions=function(d,b){var h=this.series,f=h.options.pointValKey||
|
|
|
-h.pointValKey;d=c.prototype.optionsToObject.call(this,d);g(this,d);this.options=this.options?g(this.options,d):d;d.group&&delete this.group;d.dataLabels&&delete this.dataLabels;f&&(this.y=c.prototype.getNestedProperty.call(this,f));this.formatPrefix=(this.isNull=a(this.isValid&&!this.isValid(),null===this.x||!t(this.y)))?"null":"point";this.selected&&(this.state="select");"name"in this&&"undefined"===typeof b&&h.xAxis&&h.xAxis.hasNames&&(this.x=h.xAxis.nameToX(this));"undefined"===typeof this.x&&
|
|
|
-h&&(this.x="undefined"===typeof b?h.autoIncrement(this):b);return this};c.prototype.destroy=function(){function a(){if(c.graphic||c.dataLabel||c.dataLabels)d(c),c.destroyElements();for(r in c)c[r]=null}var c=this,b=c.series,f=b.chart;b=b.options.dataSorting;var n=f.hoverPoints,g=G(c.series.chart.renderer.globalAnimation),r;c.legendItem&&f.legend.destroyItem(c);n&&(c.setState(),x(n,c),n.length||(f.hoverPoints=null));if(c===f.hoverPoint)c.onMouseOut();b&&b.enabled?(this.animateBeforeDestroy(),k(a,g.duration)):
|
|
|
-a();f.pointCount--};c.prototype.destroyElements=function(a){var c=this;a=c.getGraphicalProps(a);a.singular.forEach(function(a){c[a]=c[a].destroy()});a.plural.forEach(function(a){c[a].forEach(function(a){a.element&&a.destroy()});delete c[a]})};c.prototype.firePointEvent=function(a,c,d){var b=this,h=this.series.options;(h.point.events[a]||b.options&&b.options.events&&b.options.events[a])&&b.importEvents();"click"===a&&h.allowPointSelect&&(d=function(a){b.select&&b.select(null,a.ctrlKey||a.metaKey||
|
|
|
-a.shiftKey)});u(b,a,c,d)};c.prototype.getClassName=function(){return"highcharts-point"+(this.selected?" highcharts-point-select":"")+(this.negative?" highcharts-negative":"")+(this.isNull?" highcharts-null-point":"")+("undefined"!==typeof this.colorIndex?" highcharts-color-"+this.colorIndex:"")+(this.options.className?" "+this.options.className:"")+(this.zone&&this.zone.className?" "+this.zone.className.replace("highcharts-negative",""):"")};c.prototype.getGraphicalProps=function(a){var c=this,d=
|
|
|
-[],b,h={singular:[],plural:[]};a=a||{graphic:1,dataLabel:1};a.graphic&&d.push("graphic","upperGraphic","shadowGroup");a.dataLabel&&d.push("dataLabel","dataLabelUpper","connector");for(b=d.length;b--;){var f=d[b];c[f]&&h.singular.push(f)}["dataLabel","connector"].forEach(function(d){var b=d+"s";a[d]&&c[b]&&h.plural.push(b)});return h};c.prototype.getLabelConfig=function(){return{x:this.category,y:this.y,color:this.color,colorIndex:this.colorIndex,key:this.name||this.category,series:this.series,point:this,
|
|
|
-percentage:this.percentage,total:this.total||this.stackTotal}};c.prototype.getNestedProperty=function(a){if(a)return 0===a.indexOf("custom.")?w(a,this.options):this[a]};c.prototype.getZone=function(){var a=this.series,c=a.zones;a=a.zoneAxis||"y";var d=0,b;for(b=c[d];this[a]>=b.value;)b=c[++d];this.nonZonedColor||(this.nonZonedColor=this.color);this.color=b&&b.color&&!this.options.color?b.color:this.nonZonedColor;return b};c.prototype.hasNewShapeType=function(){return(this.graphic&&(this.graphic.symbolName||
|
|
|
-this.graphic.element.nodeName))!==this.shapeType};c.prototype.init=function(a,c,d){this.series=a;this.applyOptions(c,d);this.id=A(this.id)?this.id:y();this.resolveColor();a.chart.pointCount++;u(this,"afterInit");return this};c.prototype.optionsToObject=function(a){var d={},h=this.series,f=h.options.keys,n=f||h.pointArrayMap||["y"],k=n.length,r=0,g=0;if(t(a)||null===a)d[n[0]]=a;else if(b(a))for(!f&&a.length>k&&(h=typeof a[0],"string"===h?d.name=a[0]:"number"===h&&(d.x=a[0]),r++);g<k;)f&&"undefined"===
|
|
|
-typeof a[r]||(0<n[g].indexOf(".")?c.prototype.setNestedProperty(d,a[r],n[g]):d[n[g]]=a[r]),r++,g++;else"object"===typeof a&&(d=a,a.dataLabels&&(h._hasPointLabels=!0),a.marker&&(h._hasPointMarkers=!0));return d};c.prototype.resolveColor=function(){var c=this.series;var d=c.chart.options.chart.colorCount;var b=c.chart.styledMode;delete this.nonZonedColor;b||this.options.color||(this.color=c.color);c.options.colorByPoint?(b||(d=c.options.colors||c.chart.options.colors,this.color=this.color||d[c.colorCounter],
|
|
|
-d=d.length),b=c.colorCounter,c.colorCounter++,c.colorCounter===d&&(c.colorCounter=0)):b=c.colorIndex;this.colorIndex=a(this.options.colorIndex,b)};c.prototype.setNestedProperty=function(a,c,d){d.split(".").reduce(function(a,d,b,h){a[d]=h.length-1===b?c:I(a[d],!0)?a[d]:{};return a[d]},a);return a};c.prototype.tooltipFormatter=function(c){var d=this.series,b=d.tooltipOptions,h=a(b.valueDecimals,""),n=b.valuePrefix||"",k=b.valueSuffix||"";d.chart.styledMode&&(c=d.chart.tooltip.styledModeFormat(c));(d.pointArrayMap||
|
|
|
-["y"]).forEach(function(a){a="{point."+a;if(n||k)c=c.replace(RegExp(a+"}","g"),n+a+"}"+k);c=c.replace(RegExp(a+"}","g"),a+":,."+h+"f}")});return f(c,{point:this,series:this.series},d.chart)};c.prototype.update=function(c,d,b,f){function h(){k.applyOptions(c);var h=g&&k.hasDummyGraphic;h=null===k.y?!h:h;g&&h&&(k.graphic=g.destroy(),delete k.hasDummyGraphic);I(c,!0)&&(g&&g.element&&c&&c.marker&&"undefined"!==typeof c.marker.symbol&&(k.graphic=g.destroy()),c&&c.dataLabels&&k.dataLabel&&(k.dataLabel=
|
|
|
-k.dataLabel.destroy()),k.connector&&(k.connector=k.connector.destroy()));p=k.index;r.updateParallelArrays(k,p);q.data[p]=I(q.data[p],!0)||I(c,!0)?k.options:a(c,q.data[p]);r.isDirty=r.isDirtyData=!0;!r.fixedBox&&r.hasCartesianSeries&&(m.isDirtyBox=!0);"point"===q.legendType&&(m.isDirtyLegend=!0);d&&m.redraw(b)}var k=this,r=k.series,g=k.graphic,p,m=r.chart,q=r.options;d=a(d,!0);!1===f?h():k.firePointEvent("update",{options:c},h)};c.prototype.remove=function(a,c){this.series.removePoint(this.series.data.indexOf(this),
|
|
|
-a,c)};c.prototype.select=function(c,d){var b=this,h=b.series,f=h.chart;this.selectedStaging=c=a(c,!b.selected);b.firePointEvent(c?"select":"unselect",{accumulate:d},function(){b.selected=b.options.selected=c;h.options.data[h.data.indexOf(b)]=b.options;b.setState(c&&"select");d||f.getSelectedPoints().forEach(function(a){var c=a.series;a.selected&&a!==b&&(a.selected=a.options.selected=!1,c.options.data[c.data.indexOf(a)]=a.options,a.setState(f.hoverPoints&&c.options.inactiveOtherPoints?"inactive":""),
|
|
|
-a.firePointEvent("unselect"))})});delete this.selectedStaging};c.prototype.onMouseOver=function(a){var c=this.series.chart,d=c.pointer;a=a?d.normalize(a):d.getChartCoordinatesFromPoint(this,c.inverted);d.runPointActions(a,this)};c.prototype.onMouseOut=function(){var a=this.series.chart;this.firePointEvent("mouseOut");this.series.options.inactiveOtherPoints||(a.hoverPoints||[]).forEach(function(a){a.setState()});a.hoverPoints=a.hoverPoint=null};c.prototype.importEvents=function(){if(!this.hasImportedEvents){var a=
|
|
|
-this,c=q(a.series.options.point,a.options).events;a.events=c;p(c,function(c,d){m(c)&&E(a,d,c)});this.hasImportedEvents=!0}};c.prototype.setState=function(c,d){var b=this.series,f=this.state,h=b.options.states[c||"normal"]||{},k=D.plotOptions[b.type].marker&&b.options.marker,r=k&&!1===k.enabled,z=k&&k.states&&k.states[c||"normal"]||{},p=!1===z.enabled,m=b.stateMarkerGraphic,q=this.marker||{},t=b.chart,y=b.halo,w,x=k&&b.markerAttribs;c=c||"";if(!(c===this.state&&!d||this.selected&&"select"!==c||!1===
|
|
|
-h.enabled||c&&(p||r&&!1===z.enabled)||c&&q.states&&q.states[c]&&!1===q.states[c].enabled)){this.state=c;x&&(w=b.markerAttribs(this,c));if(this.graphic){f&&this.graphic.removeClass("highcharts-point-"+f);c&&this.graphic.addClass("highcharts-point-"+c);if(!t.styledMode){var N=b.pointAttribs(this,c);var I=a(t.options.chart.animation,h.animation);b.options.inactiveOtherPoints&&N.opacity&&((this.dataLabels||[]).forEach(function(a){a&&a.animate({opacity:N.opacity},I)}),this.connector&&this.connector.animate({opacity:N.opacity},
|
|
|
-I));this.graphic.animate(N,I)}w&&this.graphic.animate(w,a(t.options.chart.animation,z.animation,k.animation));m&&m.hide()}else{if(c&&z){f=q.symbol||b.symbol;m&&m.currentSymbol!==f&&(m=m.destroy());if(w)if(m)m[d?"animate":"attr"]({x:w.x,y:w.y});else f&&(b.stateMarkerGraphic=m=t.renderer.symbol(f,w.x,w.y,w.width,w.height).add(b.markerGroup),m.currentSymbol=f);!t.styledMode&&m&&m.attr(b.pointAttribs(this,c))}m&&(m[c&&this.isInside?"show":"hide"](),m.element.point=this)}c=h.halo;h=(m=this.graphic||m)&&
|
|
|
-m.visibility||"inherit";c&&c.size&&m&&"hidden"!==h&&!this.isCluster?(y||(b.halo=y=t.renderer.path().add(m.parentGroup)),y.show()[d?"animate":"attr"]({d:this.haloPath(c.size)}),y.attr({"class":"highcharts-halo highcharts-color-"+a(this.colorIndex,b.colorIndex)+(this.className?" "+this.className:""),visibility:h,zIndex:-1}),y.point=this,t.styledMode||y.attr(g({fill:this.color||b.color,"fill-opacity":c.opacity},e.filterUserAttributes(c.attributes||{})))):y&&y.point&&y.point.haloPath&&y.animate({d:y.point.haloPath(0)},
|
|
|
-null,y.hide);u(this,"afterSetState")}};c.prototype.haloPath=function(a){return this.series.chart.renderer.symbols.circle(Math.floor(this.plotX)-a,this.plotY-a,2*a,2*a)};return c}();return F.Point=l});O(e,"Core/Legend.js",[e["Core/Animation/AnimationUtilities.js"],e["Core/Globals.js"],e["Core/Series/Point.js"],e["Core/Utilities.js"]],function(e,l,F,C){var H=e.animObject,G=e.setAnimation;e=l.isFirefox;var D=l.marginNames,E=l.win,A=C.addEvent,x=C.createElement,g=C.css,u=C.defined,f=C.discardElement,
|
|
|
-w=C.find,b=C.fireEvent,m=C.format,t=C.isNumber,I=C.merge,q=C.pick,p=C.relativeLength,a=C.stableSort,k=C.syncTimeout;C=C.wrap;var d=function(){function d(a,d){this.allItems=[];this.contentGroup=this.box=void 0;this.display=!1;this.group=void 0;this.offsetWidth=this.maxLegendWidth=this.maxItemWidth=this.legendWidth=this.legendHeight=this.lastLineHeight=this.lastItemY=this.itemY=this.itemX=this.itemMarginTop=this.itemMarginBottom=this.itemHeight=this.initialItemY=0;this.options={};this.padding=0;this.pages=
|
|
|
-[];this.proximate=!1;this.scrollGroup=void 0;this.widthOption=this.totalItemWidth=this.titleHeight=this.symbolWidth=this.symbolHeight=0;this.chart=a;this.init(a,d)}d.prototype.init=function(a,d){this.chart=a;this.setOptions(d);d.enabled&&(this.render(),A(this.chart,"endResize",function(){this.legend.positionCheckboxes()}),this.proximate?this.unchartrender=A(this.chart,"render",function(){this.legend.proximatePositions();this.legend.positionItems()}):this.unchartrender&&this.unchartrender())};d.prototype.setOptions=
|
|
|
-function(a){var c=q(a.padding,8);this.options=a;this.chart.styledMode||(this.itemStyle=a.itemStyle,this.itemHiddenStyle=I(this.itemStyle,a.itemHiddenStyle));this.itemMarginTop=a.itemMarginTop||0;this.itemMarginBottom=a.itemMarginBottom||0;this.padding=c;this.initialItemY=c-5;this.symbolWidth=q(a.symbolWidth,16);this.pages=[];this.proximate="proximate"===a.layout&&!this.chart.inverted;this.baseline=void 0};d.prototype.update=function(a,d){var c=this.chart;this.setOptions(I(!0,this.options,a));this.destroy();
|
|
|
-c.isDirtyLegend=c.isDirtyBox=!0;q(d,!0)&&c.redraw();b(this,"afterUpdate")};d.prototype.colorizeItem=function(a,d){a.legendGroup[d?"removeClass":"addClass"]("highcharts-legend-item-hidden");if(!this.chart.styledMode){var c=this.options,f=a.legendItem,h=a.legendLine,k=a.legendSymbol,g=this.itemHiddenStyle.color;c=d?c.itemStyle.color:g;var r=d?a.color||g:g,z=a.options&&a.options.marker,p={fill:r};f&&f.css({fill:c,color:c});h&&h.attr({stroke:r});k&&(z&&k.isMarker&&(p=a.pointAttribs(),d||(p.stroke=p.fill=
|
|
|
-g)),k.attr(p))}b(this,"afterColorizeItem",{item:a,visible:d})};d.prototype.positionItems=function(){this.allItems.forEach(this.positionItem,this);this.chart.isResizing||this.positionCheckboxes()};d.prototype.positionItem=function(a){var c=this,d=this.options,f=d.symbolPadding,k=!d.rtl,n=a._legendItemPos;d=n[0];n=n[1];var g=a.checkbox,r=a.legendGroup;r&&r.element&&(f={translateX:k?d:this.legendWidth-d-2*f-4,translateY:n},k=function(){b(c,"afterPositionItem",{item:a})},u(r.translateY)?r.animate(f,void 0,
|
|
|
-k):(r.attr(f),k()));g&&(g.x=d,g.y=n)};d.prototype.destroyItem=function(a){var c=a.checkbox;["legendItem","legendLine","legendSymbol","legendGroup"].forEach(function(c){a[c]&&(a[c]=a[c].destroy())});c&&f(a.checkbox)};d.prototype.destroy=function(){function a(a){this[a]&&(this[a]=this[a].destroy())}this.getAllItems().forEach(function(c){["legendItem","legendGroup"].forEach(a,c)});"clipRect up down pager nav box title group".split(" ").forEach(a,this);this.display=null};d.prototype.positionCheckboxes=
|
|
|
-function(){var a=this.group&&this.group.alignAttr,d=this.clipHeight||this.legendHeight,b=this.titleHeight;if(a){var f=a.translateY;this.allItems.forEach(function(c){var h=c.checkbox;if(h){var k=f+b+h.y+(this.scrollOffset||0)+3;g(h,{left:a.translateX+c.checkboxOffset+h.x-20+"px",top:k+"px",display:this.proximate||k>f-6&&k<f+d-6?"":"none"})}},this)}};d.prototype.renderTitle=function(){var a=this.options,d=this.padding,b=a.title,f=0;b.text&&(this.title||(this.title=this.chart.renderer.label(b.text,d-
|
|
|
-3,d-4,null,null,null,a.useHTML,null,"legend-title").attr({zIndex:1}),this.chart.styledMode||this.title.css(b.style),this.title.add(this.group)),b.width||this.title.css({width:this.maxLegendWidth+"px"}),a=this.title.getBBox(),f=a.height,this.offsetWidth=a.width,this.contentGroup.attr({translateY:f}));this.titleHeight=f};d.prototype.setText=function(a){var c=this.options;a.legendItem.attr({text:c.labelFormat?m(c.labelFormat,a,this.chart):c.labelFormatter.call(a)})};d.prototype.renderItem=function(a){var c=
|
|
|
-this.chart,d=c.renderer,b=this.options,f=this.symbolWidth,k=b.symbolPadding,g=this.itemStyle,r=this.itemHiddenStyle,p="horizontal"===b.layout?q(b.itemDistance,20):0,m=!b.rtl,t=a.legendItem,e=!a.series,v=!e&&a.series.drawLegendSymbol?a.series:a,y=v.options;y=this.createCheckboxForItem&&y&&y.showCheckbox;p=f+k+p+(y?20:0);var u=b.useHTML,w=a.options.className;t||(a.legendGroup=d.g("legend-item").addClass("highcharts-"+v.type+"-series highcharts-color-"+a.colorIndex+(w?" "+w:"")+(e?" highcharts-series-"+
|
|
|
-a.index:"")).attr({zIndex:1}).add(this.scrollGroup),a.legendItem=t=d.text("",m?f+k:-k,this.baseline||0,u),c.styledMode||t.css(I(a.visible?g:r)),t.attr({align:m?"left":"right",zIndex:2}).add(a.legendGroup),this.baseline||(this.fontMetrics=d.fontMetrics(c.styledMode?12:g.fontSize,t),this.baseline=this.fontMetrics.f+3+this.itemMarginTop,t.attr("y",this.baseline)),this.symbolHeight=b.symbolHeight||this.fontMetrics.f,v.drawLegendSymbol(this,a),this.setItemEvents&&this.setItemEvents(a,t,u));y&&!a.checkbox&&
|
|
|
-this.createCheckboxForItem&&this.createCheckboxForItem(a);this.colorizeItem(a,a.visible);!c.styledMode&&g.width||t.css({width:(b.itemWidth||this.widthOption||c.spacingBox.width)-p+"px"});this.setText(a);c=t.getBBox();a.itemWidth=a.checkboxOffset=b.itemWidth||a.legendItemWidth||c.width+p;this.maxItemWidth=Math.max(this.maxItemWidth,a.itemWidth);this.totalItemWidth+=a.itemWidth;this.itemHeight=a.itemHeight=Math.round(a.legendItemHeight||c.height||this.symbolHeight)};d.prototype.layoutItem=function(a){var c=
|
|
|
-this.options,d=this.padding,b="horizontal"===c.layout,f=a.itemHeight,k=this.itemMarginBottom,g=this.itemMarginTop,r=b?q(c.itemDistance,20):0,p=this.maxLegendWidth;c=c.alignColumns&&this.totalItemWidth>p?this.maxItemWidth:a.itemWidth;b&&this.itemX-d+c>p&&(this.itemX=d,this.lastLineHeight&&(this.itemY+=g+this.lastLineHeight+k),this.lastLineHeight=0);this.lastItemY=g+this.itemY+k;this.lastLineHeight=Math.max(f,this.lastLineHeight);a._legendItemPos=[this.itemX,this.itemY];b?this.itemX+=c:(this.itemY+=
|
|
|
-g+f+k,this.lastLineHeight=f);this.offsetWidth=this.widthOption||Math.max((b?this.itemX-d-(a.checkbox?0:r):c)+d,this.offsetWidth)};d.prototype.getAllItems=function(){var a=[];this.chart.series.forEach(function(c){var d=c&&c.options;c&&q(d.showInLegend,u(d.linkedTo)?!1:void 0,!0)&&(a=a.concat(c.legendItems||("point"===d.legendType?c.data:c)))});b(this,"afterGetAllItems",{allItems:a});return a};d.prototype.getAlignment=function(){var a=this.options;return this.proximate?a.align.charAt(0)+"tv":a.floating?
|
|
|
-"":a.align.charAt(0)+a.verticalAlign.charAt(0)+a.layout.charAt(0)};d.prototype.adjustMargins=function(a,d){var c=this.chart,b=this.options,f=this.getAlignment();f&&[/(lth|ct|rth)/,/(rtv|rm|rbv)/,/(rbh|cb|lbh)/,/(lbv|lm|ltv)/].forEach(function(h,k){h.test(f)&&!u(a[k])&&(c[D[k]]=Math.max(c[D[k]],c.legend[(k+1)%2?"legendHeight":"legendWidth"]+[1,-1,-1,1][k]*b[k%2?"x":"y"]+q(b.margin,12)+d[k]+(c.titleOffset[k]||0)))})};d.prototype.proximatePositions=function(){var a=this.chart,d=[],b="left"===this.options.align;
|
|
|
-this.allItems.forEach(function(c){var f;var h=b;if(c.yAxis){c.xAxis.options.reversed&&(h=!h);c.points&&(f=w(h?c.points:c.points.slice(0).reverse(),function(a){return t(a.plotY)}));h=this.itemMarginTop+c.legendItem.getBBox().height+this.itemMarginBottom;var k=c.yAxis.top-a.plotTop;c.visible?(f=f?f.plotY:c.yAxis.height,f+=k-.3*h):f=k+c.yAxis.height;d.push({target:f,size:h,item:c})}},this);l.distribute(d,a.plotHeight);d.forEach(function(c){c.item._legendItemPos[1]=a.plotTop-a.spacing[0]+c.pos})};d.prototype.render=
|
|
|
-function(){var c=this.chart,d=c.renderer,f=this.group,k=this.box,g=this.options,n=this.padding;this.itemX=n;this.itemY=this.initialItemY;this.lastItemY=this.offsetWidth=0;this.widthOption=p(g.width,c.spacingBox.width-n);var m=c.spacingBox.width-2*n-g.x;-1<["rm","lm"].indexOf(this.getAlignment().substring(0,2))&&(m/=2);this.maxLegendWidth=this.widthOption||m;f||(this.group=f=d.g("legend").attr({zIndex:7}).add(),this.contentGroup=d.g().attr({zIndex:1}).add(f),this.scrollGroup=d.g().add(this.contentGroup));
|
|
|
-this.renderTitle();var r=this.getAllItems();a(r,function(a,c){return(a.options&&a.options.legendIndex||0)-(c.options&&c.options.legendIndex||0)});g.reversed&&r.reverse();this.allItems=r;this.display=m=!!r.length;this.itemHeight=this.totalItemWidth=this.maxItemWidth=this.lastLineHeight=0;r.forEach(this.renderItem,this);r.forEach(this.layoutItem,this);r=(this.widthOption||this.offsetWidth)+n;var z=this.lastItemY+this.lastLineHeight+this.titleHeight;z=this.handleOverflow(z);z+=n;k||(this.box=k=d.rect().addClass("highcharts-legend-box").attr({r:g.borderRadius}).add(f),
|
|
|
-k.isNew=!0);c.styledMode||k.attr({stroke:g.borderColor,"stroke-width":g.borderWidth||0,fill:g.backgroundColor||"none"}).shadow(g.shadow);0<r&&0<z&&(k[k.isNew?"attr":"animate"](k.crisp.call({},{x:0,y:0,width:r,height:z},k.strokeWidth())),k.isNew=!1);k[m?"show":"hide"]();c.styledMode&&"none"===f.getStyle("display")&&(r=z=0);this.legendWidth=r;this.legendHeight=z;m&&this.align();this.proximate||this.positionItems();b(this,"afterRender")};d.prototype.align=function(a){void 0===a&&(a=this.chart.spacingBox);
|
|
|
-var c=this.chart,d=this.options,b=a.y;/(lth|ct|rth)/.test(this.getAlignment())&&0<c.titleOffset[0]?b+=c.titleOffset[0]:/(lbh|cb|rbh)/.test(this.getAlignment())&&0<c.titleOffset[2]&&(b-=c.titleOffset[2]);b!==a.y&&(a=I(a,{y:b}));this.group.align(I(d,{width:this.legendWidth,height:this.legendHeight,verticalAlign:this.proximate?"top":d.verticalAlign}),!0,a)};d.prototype.handleOverflow=function(a){var c=this,d=this.chart,b=d.renderer,f=this.options,k=f.y,g=this.padding;k=d.spacingBox.height+("top"===f.verticalAlign?
|
|
|
--k:k)-g;var r=f.maxHeight,p,m=this.clipRect,t=f.navigation,e=q(t.animation,!0),v=t.arrowSize||12,y=this.nav,u=this.pages,w,N=this.allItems,x=function(a){"number"===typeof a?m.attr({height:a}):m&&(c.clipRect=m.destroy(),c.contentGroup.clip());c.contentGroup.div&&(c.contentGroup.div.style.clip=a?"rect("+g+"px,9999px,"+(g+a)+"px,0)":"auto")},I=function(a){c[a]=b.circle(0,0,1.3*v).translate(v/2,v/2).add(y);d.styledMode||c[a].attr("fill","rgba(0,0,0,0.0001)");return c[a]};"horizontal"!==f.layout||"middle"===
|
|
|
-f.verticalAlign||f.floating||(k/=2);r&&(k=Math.min(k,r));u.length=0;a>k&&!1!==t.enabled?(this.clipHeight=p=Math.max(k-20-this.titleHeight-g,0),this.currentPage=q(this.currentPage,1),this.fullHeight=a,N.forEach(function(a,c){var d=a._legendItemPos[1],b=Math.round(a.legendItem.getBBox().height),f=u.length;if(!f||d-u[f-1]>p&&(w||d)!==u[f-1])u.push(w||d),f++;a.pageIx=f-1;w&&(N[c-1].pageIx=f-1);c===N.length-1&&d+b-u[f-1]>p&&d!==w&&(u.push(d),a.pageIx=f);d!==w&&(w=d)}),m||(m=c.clipRect=b.clipRect(0,g,9999,
|
|
|
-0),c.contentGroup.clip(m)),x(p),y||(this.nav=y=b.g().attr({zIndex:1}).add(this.group),this.up=b.symbol("triangle",0,0,v,v).add(y),I("upTracker").on("click",function(){c.scroll(-1,e)}),this.pager=b.text("",15,10).addClass("highcharts-legend-navigation"),d.styledMode||this.pager.css(t.style),this.pager.add(y),this.down=b.symbol("triangle-down",0,0,v,v).add(y),I("downTracker").on("click",function(){c.scroll(1,e)})),c.scroll(0),a=k):y&&(x(),this.nav=y.destroy(),this.scrollGroup.attr({translateY:1}),this.clipHeight=
|
|
|
-0);return a};d.prototype.scroll=function(a,d){var c=this,f=this.chart,h=this.pages,n=h.length,g=this.currentPage+a;a=this.clipHeight;var r=this.options.navigation,p=this.pager,m=this.padding;g>n&&(g=n);0<g&&("undefined"!==typeof d&&G(d,f),this.nav.attr({translateX:m,translateY:a+this.padding+7+this.titleHeight,visibility:"visible"}),[this.up,this.upTracker].forEach(function(a){a.attr({"class":1===g?"highcharts-legend-nav-inactive":"highcharts-legend-nav-active"})}),p.attr({text:g+"/"+n}),[this.down,
|
|
|
-this.downTracker].forEach(function(a){a.attr({x:18+this.pager.getBBox().width,"class":g===n?"highcharts-legend-nav-inactive":"highcharts-legend-nav-active"})},this),f.styledMode||(this.up.attr({fill:1===g?r.inactiveColor:r.activeColor}),this.upTracker.css({cursor:1===g?"default":"pointer"}),this.down.attr({fill:g===n?r.inactiveColor:r.activeColor}),this.downTracker.css({cursor:g===n?"default":"pointer"})),this.scrollOffset=-h[g-1]+this.initialItemY,this.scrollGroup.animate({translateY:this.scrollOffset}),
|
|
|
-this.currentPage=g,this.positionCheckboxes(),d=H(q(d,f.renderer.globalAnimation,!0)),k(function(){b(c,"afterScroll",{currentPage:g})},d.duration))};d.prototype.setItemEvents=function(a,d,f){var c=this,h=c.chart.renderer.boxWrapper,k=a instanceof F,g="highcharts-legend-"+(k?"point":"series")+"-active",r=c.chart.styledMode;(f?[d,a.legendSymbol]:[a.legendGroup]).forEach(function(f){if(f)f.on("mouseover",function(){a.visible&&c.allItems.forEach(function(c){a!==c&&c.setState("inactive",!k)});a.setState("hover");
|
|
|
-a.visible&&h.addClass(g);r||d.css(c.options.itemHoverStyle)}).on("mouseout",function(){c.chart.styledMode||d.css(I(a.visible?c.itemStyle:c.itemHiddenStyle));c.allItems.forEach(function(c){a!==c&&c.setState("",!k)});h.removeClass(g);a.setState()}).on("click",function(d){var f=function(){a.setVisible&&a.setVisible();c.allItems.forEach(function(c){a!==c&&c.setState(a.visible?"inactive":"",!k)})};h.removeClass(g);d={browserEvent:d};a.firePointEvent?a.firePointEvent("legendItemClick",d,f):b(a,"legendItemClick",
|
|
|
-d,f)})})};d.prototype.createCheckboxForItem=function(a){a.checkbox=x("input",{type:"checkbox",className:"highcharts-legend-checkbox",checked:a.selected,defaultChecked:a.selected},this.options.itemCheckboxStyle,this.chart.container);A(a.checkbox,"click",function(c){b(a.series||a,"checkboxClick",{checked:c.target.checked,item:a},function(){a.select()})})};return d}();(/Trident\/7\.0/.test(E.navigator&&E.navigator.userAgent)||e)&&C(d.prototype,"positionItem",function(a,c){var d=this,b=function(){c._legendItemPos&&
|
|
|
-a.call(d,c)};b();d.bubbleLegend||setTimeout(b)});l.Legend=d;return l.Legend});O(e,"Core/Series/SeriesRegistry.js",[e["Core/Globals.js"],e["Core/Options.js"],e["Core/Series/Point.js"],e["Core/Utilities.js"]],function(e,l,F,C){var H=l.defaultOptions,G=C.error,D=C.extendClass,E=C.merge,A;(function(e){function g(g,f){var u=H.plotOptions||{},b=f.defaultOptions;f.prototype.pointClass||(f.prototype.pointClass=F);f.prototype.type=g;b&&(u[g]=b);e.seriesTypes[g]=f}e.seriesTypes={};e.getSeries=function(g,f){void 0===
|
|
|
-f&&(f={});var u=g.options.chart;u=f.type||u.type||u.defaultSeriesType||"";var b=e.seriesTypes[u];e||G(17,!0,g,{missingModuleFor:u});u=new b;"function"===typeof u.init&&u.init(g,f);return u};e.registerSeriesType=g;e.seriesType=function(u,f,w,b,m){var t=H.plotOptions||{};f=f||"";t[u]=E(t[f],w);g(u,D(e.seriesTypes[f]||function(){},b));e.seriesTypes[u].prototype.type=u;m&&(e.seriesTypes[u].prototype.pointClass=D(F,m));return e.seriesTypes[u]}})(A||(A={}));e.seriesType=A.seriesType;e.seriesTypes=A.seriesTypes;
|
|
|
-return A});O(e,"Core/Chart/Chart.js",[e["Core/Animation/AnimationUtilities.js"],e["Core/Axis/Axis.js"],e["Core/Globals.js"],e["Core/Legend.js"],e["Core/MSPointer.js"],e["Core/Options.js"],e["Core/Color/Palette.js"],e["Core/Pointer.js"],e["Core/Series/SeriesRegistry.js"],e["Core/Time.js"],e["Core/Utilities.js"],e["Core/Renderer/HTML/AST.js"]],function(e,l,F,C,H,J,D,E,A,x,g,u){var f=e.animate,w=e.animObject,b=e.setAnimation,m=F.charts,t=F.doc,I=F.win,q=J.defaultOptions,p=J.time,a=A.seriesTypes,k=g.addEvent,
|
|
|
-d=g.attr,y=g.cleanRecursively,c=g.createElement,h=g.css,M=g.defined,G=g.discardElement,P=g.erase,n=g.error,K=g.extend,r=g.find,z=g.fireEvent,L=g.getStyle,B=g.isArray,Q=g.isFunction,v=g.isNumber,R=g.isObject,aa=g.isString,X=g.merge,N=g.numberFormat,Y=g.objectEach,T=g.pick,ca=g.pInt,U=g.relativeLength,Z=g.removeEvent,V=g.splat,da=g.syncTimeout,fa=g.uniqueKey,ea=F.marginNames,ba=function(){function e(a,c,d){this.yAxis=this.xAxis=this.userOptions=this.titleOffset=this.time=this.symbolCounter=this.spacingBox=
|
|
|
-this.spacing=this.series=this.renderTo=this.renderer=this.pointer=this.pointCount=this.plotWidth=this.plotTop=this.plotLeft=this.plotHeight=this.plotBox=this.options=this.numberFormatter=this.margin=this.legend=this.labelCollectors=this.isResizing=this.index=this.container=this.colorCounter=this.clipBox=this.chartWidth=this.chartHeight=this.bounds=this.axisOffset=this.axes=void 0;this.getArgs(a,c,d)}e.prototype.getArgs=function(a,c,d){aa(a)||a.nodeName?(this.renderTo=a,this.init(c,d)):this.init(a,
|
|
|
-c)};e.prototype.init=function(a,c){var d,b=a.series,f=a.plotOptions||{};z(this,"init",{args:arguments},function(){a.series=null;d=X(q,a);var h=d.chart||{};Y(d.plotOptions,function(a,c){R(a)&&(a.tooltip=f[c]&&X(f[c].tooltip)||void 0)});d.tooltip.userOptions=a.chart&&a.chart.forExport&&a.tooltip.userOptions||a.tooltip;d.series=a.series=b;this.userOptions=a;var n=h.events;this.margin=[];this.spacing=[];this.bounds={h:{},v:{}};this.labelCollectors=[];this.callback=c;this.isResizing=0;this.options=d;this.axes=
|
|
|
-[];this.series=[];this.time=a.time&&Object.keys(a.time).length?new x(a.time):F.time;this.numberFormatter=h.numberFormatter||N;this.styledMode=h.styledMode;this.hasCartesianSeries=h.showAxes;var r=this;r.index=m.length;m.push(r);F.chartCount++;n&&Y(n,function(a,c){Q(a)&&k(r,c,a)});r.xAxis=[];r.yAxis=[];r.pointCount=r.colorCounter=r.symbolCounter=0;z(r,"afterInit");r.firstRender()})};e.prototype.initSeries=function(c){var d=this.options.chart;d=c.type||d.type||d.defaultSeriesType;var b=a[d];b||n(17,
|
|
|
-!0,this,{missingModuleFor:d});d=new b;"function"===typeof d.init&&d.init(this,c);return d};e.prototype.setSeriesData=function(){this.getSeriesOrderByLinks().forEach(function(a){a.points||a.data||!a.enabledDataSorting||a.setData(a.options.data,!1)})};e.prototype.getSeriesOrderByLinks=function(){return this.series.concat().sort(function(a,c){return a.linkedSeries.length||c.linkedSeries.length?c.linkedSeries.length-a.linkedSeries.length:0})};e.prototype.orderSeries=function(a){var c=this.series;for(a=
|
|
|
-a||0;a<c.length;a++)c[a]&&(c[a].index=a,c[a].name=c[a].getName())};e.prototype.isInsidePlot=function(a,c,d){var b=d?c:a;a=d?a:c;b={x:b,y:a,isInsidePlot:0<=b&&b<=this.plotWidth&&0<=a&&a<=this.plotHeight};z(this,"afterIsInsidePlot",b);return b.isInsidePlot};e.prototype.redraw=function(a){z(this,"beforeRedraw");var c=this.hasCartesianSeries?this.axes:this.colorAxis||[],d=this.series,f=this.pointer,h=this.legend,k=this.userOptions.legend,n=this.isDirtyLegend,r=this.isDirtyBox,g=this.renderer,p=g.isHidden(),
|
|
|
-m=[];this.setResponsive&&this.setResponsive(!1);b(this.hasRendered?a:!1,this);p&&this.temporaryDisplay();this.layOutTitles();for(a=d.length;a--;){var q=d[a];if(q.options.stacking||q.options.centerInCategory){var t=!0;if(q.isDirty){var e=!0;break}}}if(e)for(a=d.length;a--;)q=d[a],q.options.stacking&&(q.isDirty=!0);d.forEach(function(a){a.isDirty&&("point"===a.options.legendType?("function"===typeof a.updateTotals&&a.updateTotals(),n=!0):k&&(k.labelFormatter||k.labelFormat)&&(n=!0));a.isDirtyData&&
|
|
|
-z(a,"updatedData")});n&&h&&h.options.enabled&&(h.render(),this.isDirtyLegend=!1);t&&this.getStacks();c.forEach(function(a){a.updateNames();a.setScale()});this.getMargins();c.forEach(function(a){a.isDirty&&(r=!0)});c.forEach(function(a){var c=a.min+","+a.max;a.extKey!==c&&(a.extKey=c,m.push(function(){z(a,"afterSetExtremes",K(a.eventArgs,a.getExtremes()));delete a.eventArgs}));(r||t)&&a.redraw()});r&&this.drawChartBox();z(this,"predraw");d.forEach(function(a){(r||a.isDirty)&&a.visible&&a.redraw();
|
|
|
-a.isDirtyData=!1});f&&f.reset(!0);g.draw();z(this,"redraw");z(this,"render");p&&this.temporaryDisplay(!0);m.forEach(function(a){a.call()})};e.prototype.get=function(a){function c(c){return c.id===a||c.options&&c.options.id===a}var d=this.series,b;var f=r(this.axes,c)||r(this.series,c);for(b=0;!f&&b<d.length;b++)f=r(d[b].points||[],c);return f};e.prototype.getAxes=function(){var a=this,c=this.options,d=c.xAxis=V(c.xAxis||{});c=c.yAxis=V(c.yAxis||{});z(this,"getAxes");d.forEach(function(a,c){a.index=
|
|
|
-c;a.isX=!0});c.forEach(function(a,c){a.index=c});d.concat(c).forEach(function(c){new l(a,c)});z(this,"afterGetAxes")};e.prototype.getSelectedPoints=function(){var a=[];this.series.forEach(function(c){a=a.concat(c.getPointsCollection().filter(function(a){return T(a.selectedStaging,a.selected)}))});return a};e.prototype.getSelectedSeries=function(){return this.series.filter(function(a){return a.selected})};e.prototype.setTitle=function(a,c,d){this.applyDescription("title",a);this.applyDescription("subtitle",
|
|
|
-c);this.applyDescription("caption",void 0);this.layOutTitles(d)};e.prototype.applyDescription=function(a,c){var d=this,b="title"===a?{color:D.neutralColor80,fontSize:this.options.isStock?"16px":"18px"}:{color:D.neutralColor60};b=this.options[a]=X(!this.styledMode&&{style:b},this.options[a],c);var f=this[a];f&&c&&(this[a]=f=f.destroy());b&&!f&&(f=this.renderer.text(b.text,0,0,b.useHTML).attr({align:b.align,"class":"highcharts-"+a,zIndex:b.zIndex||4}).add(),f.update=function(c){d[{title:"setTitle",
|
|
|
-subtitle:"setSubtitle",caption:"setCaption"}[a]](c)},this.styledMode||f.css(b.style),this[a]=f)};e.prototype.layOutTitles=function(a){var c=[0,0,0],d=this.renderer,b=this.spacingBox;["title","subtitle","caption"].forEach(function(a){var f=this[a],h=this.options[a],k=h.verticalAlign||"top";a="title"===a?-3:"top"===k?c[0]+2:0;if(f){if(!this.styledMode)var n=h.style.fontSize;n=d.fontMetrics(n,f).b;f.css({width:(h.width||b.width+(h.widthAdjust||0))+"px"});var r=Math.round(f.getBBox(h.useHTML).height);
|
|
|
-f.align(K({y:"bottom"===k?n:a+n,height:r},h),!1,"spacingBox");h.floating||("top"===k?c[0]=Math.ceil(c[0]+r):"bottom"===k&&(c[2]=Math.ceil(c[2]+r)))}},this);c[0]&&"top"===(this.options.title.verticalAlign||"top")&&(c[0]+=this.options.title.margin);c[2]&&"bottom"===this.options.caption.verticalAlign&&(c[2]+=this.options.caption.margin);var f=!this.titleOffset||this.titleOffset.join(",")!==c.join(",");this.titleOffset=c;z(this,"afterLayOutTitles");!this.isDirtyBox&&f&&(this.isDirtyBox=this.isDirtyLegend=
|
|
|
-f,this.hasRendered&&T(a,!0)&&this.isDirtyBox&&this.redraw())};e.prototype.getChartSize=function(){var a=this.options.chart,c=a.width;a=a.height;var d=this.renderTo;M(c)||(this.containerWidth=L(d,"width"));M(a)||(this.containerHeight=L(d,"height"));this.chartWidth=Math.max(0,c||this.containerWidth||600);this.chartHeight=Math.max(0,U(a,this.chartWidth)||(1<this.containerHeight?this.containerHeight:400))};e.prototype.temporaryDisplay=function(a){var c=this.renderTo;if(a)for(;c&&c.style;)c.hcOrigStyle&&
|
|
|
-(h(c,c.hcOrigStyle),delete c.hcOrigStyle),c.hcOrigDetached&&(t.body.removeChild(c),c.hcOrigDetached=!1),c=c.parentNode;else for(;c&&c.style;){t.body.contains(c)||c.parentNode||(c.hcOrigDetached=!0,t.body.appendChild(c));if("none"===L(c,"display",!1)||c.hcOricDetached)c.hcOrigStyle={display:c.style.display,height:c.style.height,overflow:c.style.overflow},a={display:"block",overflow:"hidden"},c!==this.renderTo&&(a.height=0),h(c,a),c.offsetWidth||c.style.setProperty("display","block","important");c=
|
|
|
-c.parentNode;if(c===t.body)break}};e.prototype.setClassName=function(a){this.container.className="highcharts-container "+(a||"")};e.prototype.getContainer=function(){var a=this.options,f=a.chart;var k=this.renderTo;var r=fa(),g,p;k||(this.renderTo=k=f.renderTo);aa(k)&&(this.renderTo=k=t.getElementById(k));k||n(13,!0,this);var q=ca(d(k,"data-highcharts-chart"));v(q)&&m[q]&&m[q].hasRendered&&m[q].destroy();d(k,"data-highcharts-chart",this.index);k.innerHTML="";f.skipClone||k.offsetWidth||this.temporaryDisplay();
|
|
|
-this.getChartSize();q=this.chartWidth;var e=this.chartHeight;h(k,{overflow:"hidden"});this.styledMode||(g=K({position:"relative",overflow:"hidden",width:q+"px",height:e+"px",textAlign:"left",lineHeight:"normal",zIndex:0,"-webkit-tap-highlight-color":"rgba(0,0,0,0)",userSelect:"none"},f.style));this.container=k=c("div",{id:r},g,k);this._cursor=k.style.cursor;this.renderer=new (F[f.renderer]||F.Renderer)(k,q,e,null,f.forExport,a.exporting&&a.exporting.allowHTML,this.styledMode);b(void 0,this);this.setClassName(f.className);
|
|
|
-if(this.styledMode)for(p in a.defs)this.renderer.definition(a.defs[p]);else this.renderer.setStyle(f.style);this.renderer.chartIndex=this.index;z(this,"afterGetContainer")};e.prototype.getMargins=function(a){var c=this.spacing,d=this.margin,b=this.titleOffset;this.resetMargins();b[0]&&!M(d[0])&&(this.plotTop=Math.max(this.plotTop,b[0]+c[0]));b[2]&&!M(d[2])&&(this.marginBottom=Math.max(this.marginBottom,b[2]+c[2]));this.legend&&this.legend.display&&this.legend.adjustMargins(d,c);z(this,"getMargins");
|
|
|
-a||this.getAxisMargins()};e.prototype.getAxisMargins=function(){var a=this,c=a.axisOffset=[0,0,0,0],d=a.colorAxis,b=a.margin,f=function(a){a.forEach(function(a){a.visible&&a.getOffset()})};a.hasCartesianSeries?f(a.axes):d&&d.length&&f(d);ea.forEach(function(d,f){M(b[f])||(a[d]+=c[f])});a.setChartSize()};e.prototype.reflow=function(a){var c=this,d=c.options.chart,b=c.renderTo,f=M(d.width)&&M(d.height),h=d.width||L(b,"width");d=d.height||L(b,"height");b=a?a.target:I;delete c.pointer.chartPosition;if(!f&&
|
|
|
-!c.isPrinting&&h&&d&&(b===I||b===t)){if(h!==c.containerWidth||d!==c.containerHeight)g.clearTimeout(c.reflowTimeout),c.reflowTimeout=da(function(){c.container&&c.setSize(void 0,void 0,!1)},a?100:0);c.containerWidth=h;c.containerHeight=d}};e.prototype.setReflow=function(a){var c=this;!1===a||this.unbindReflow?!1===a&&this.unbindReflow&&(this.unbindReflow=this.unbindReflow()):(this.unbindReflow=k(I,"resize",function(a){c.options&&c.reflow(a)}),k(this,"destroy",this.unbindReflow))};e.prototype.setSize=
|
|
|
-function(a,c,d){var k=this,n=k.renderer;k.isResizing+=1;b(d,k);d=n.globalAnimation;k.oldChartHeight=k.chartHeight;k.oldChartWidth=k.chartWidth;"undefined"!==typeof a&&(k.options.chart.width=a);"undefined"!==typeof c&&(k.options.chart.height=c);k.getChartSize();k.styledMode||(d?f:h)(k.container,{width:k.chartWidth+"px",height:k.chartHeight+"px"},d);k.setChartSize(!0);n.setSize(k.chartWidth,k.chartHeight,d);k.axes.forEach(function(a){a.isDirty=!0;a.setScale()});k.isDirtyLegend=!0;k.isDirtyBox=!0;k.layOutTitles();
|
|
|
-k.getMargins();k.redraw(d);k.oldChartHeight=null;z(k,"resize");da(function(){k&&z(k,"endResize",null,function(){--k.isResizing})},w(d).duration)};e.prototype.setChartSize=function(a){var c=this.inverted,d=this.renderer,b=this.chartWidth,f=this.chartHeight,h=this.options.chart,k=this.spacing,n=this.clipOffset,r,g,p,m;this.plotLeft=r=Math.round(this.plotLeft);this.plotTop=g=Math.round(this.plotTop);this.plotWidth=p=Math.max(0,Math.round(b-r-this.marginRight));this.plotHeight=m=Math.max(0,Math.round(f-
|
|
|
-g-this.marginBottom));this.plotSizeX=c?m:p;this.plotSizeY=c?p:m;this.plotBorderWidth=h.plotBorderWidth||0;this.spacingBox=d.spacingBox={x:k[3],y:k[0],width:b-k[3]-k[1],height:f-k[0]-k[2]};this.plotBox=d.plotBox={x:r,y:g,width:p,height:m};b=2*Math.floor(this.plotBorderWidth/2);c=Math.ceil(Math.max(b,n[3])/2);d=Math.ceil(Math.max(b,n[0])/2);this.clipBox={x:c,y:d,width:Math.floor(this.plotSizeX-Math.max(b,n[1])/2-c),height:Math.max(0,Math.floor(this.plotSizeY-Math.max(b,n[2])/2-d))};a||this.axes.forEach(function(a){a.setAxisSize();
|
|
|
-a.setAxisTranslation()});z(this,"afterSetChartSize",{skipAxes:a})};e.prototype.resetMargins=function(){z(this,"resetMargins");var a=this,c=a.options.chart;["margin","spacing"].forEach(function(d){var b=c[d],f=R(b)?b:[b,b,b,b];["Top","Right","Bottom","Left"].forEach(function(b,h){a[d][h]=T(c[d+b],f[h])})});ea.forEach(function(c,d){a[c]=T(a.margin[d],a.spacing[d])});a.axisOffset=[0,0,0,0];a.clipOffset=[0,0,0,0]};e.prototype.drawChartBox=function(){var a=this.options.chart,c=this.renderer,d=this.chartWidth,
|
|
|
-b=this.chartHeight,f=this.chartBackground,h=this.plotBackground,k=this.plotBorder,n=this.styledMode,r=this.plotBGImage,g=a.backgroundColor,p=a.plotBackgroundColor,m=a.plotBackgroundImage,q,e=this.plotLeft,t=this.plotTop,v=this.plotWidth,y=this.plotHeight,u=this.plotBox,N=this.clipRect,B=this.clipBox,K="animate";f||(this.chartBackground=f=c.rect().addClass("highcharts-background").add(),K="attr");if(n)var w=q=f.strokeWidth();else{w=a.borderWidth||0;q=w+(a.shadow?8:0);g={fill:g||"none"};if(w||f["stroke-width"])g.stroke=
|
|
|
-a.borderColor,g["stroke-width"]=w;f.attr(g).shadow(a.shadow)}f[K]({x:q/2,y:q/2,width:d-q-w%2,height:b-q-w%2,r:a.borderRadius});K="animate";h||(K="attr",this.plotBackground=h=c.rect().addClass("highcharts-plot-background").add());h[K](u);n||(h.attr({fill:p||"none"}).shadow(a.plotShadow),m&&(r?(m!==r.attr("href")&&r.attr("href",m),r.animate(u)):this.plotBGImage=c.image(m,e,t,v,y).add()));N?N.animate({width:B.width,height:B.height}):this.clipRect=c.clipRect(B);K="animate";k||(K="attr",this.plotBorder=
|
|
|
-k=c.rect().addClass("highcharts-plot-border").attr({zIndex:1}).add());n||k.attr({stroke:a.plotBorderColor,"stroke-width":a.plotBorderWidth||0,fill:"none"});k[K](k.crisp({x:e,y:t,width:v,height:y},-k.strokeWidth()));this.isDirtyBox=!1;z(this,"afterDrawChartBox")};e.prototype.propFromSeries=function(){var c=this,d=c.options.chart,b,f=c.options.series,h,k;["inverted","angular","polar"].forEach(function(n){b=a[d.type||d.defaultSeriesType];k=d[n]||b&&b.prototype[n];for(h=f&&f.length;!k&&h--;)(b=a[f[h].type])&&
|
|
|
-b.prototype[n]&&(k=!0);c[n]=k})};e.prototype.linkSeries=function(){var a=this,c=a.series;c.forEach(function(a){a.linkedSeries.length=0});c.forEach(function(c){var d=c.options.linkedTo;aa(d)&&(d=":previous"===d?a.series[c.index-1]:a.get(d))&&d.linkedParent!==c&&(d.linkedSeries.push(c),c.linkedParent=d,d.enabledDataSorting&&c.setDataSortingOptions(),c.visible=T(c.options.visible,d.options.visible,c.visible))});z(this,"afterLinkSeries")};e.prototype.renderSeries=function(){this.series.forEach(function(a){a.translate();
|
|
|
-a.render()})};e.prototype.renderLabels=function(){var a=this,c=a.options.labels;c.items&&c.items.forEach(function(d){var b=K(c.style,d.style),f=ca(b.left)+a.plotLeft,h=ca(b.top)+a.plotTop+12;delete b.left;delete b.top;a.renderer.text(d.html,f,h).attr({zIndex:2}).css(b).add()})};e.prototype.render=function(){var a=this.axes,c=this.colorAxis,d=this.renderer,b=this.options,f=0,h=function(a){a.forEach(function(a){a.visible&&a.render()})};this.setTitle();this.legend=new C(this,b.legend);this.getStacks&&
|
|
|
-this.getStacks();this.getMargins(!0);this.setChartSize();b=this.plotWidth;a.some(function(a){if(a.horiz&&a.visible&&a.options.labels.enabled&&a.series.length)return f=21,!0});var k=this.plotHeight=Math.max(this.plotHeight-f,0);a.forEach(function(a){a.setScale()});this.getAxisMargins();var n=1.1<b/this.plotWidth;var r=1.05<k/this.plotHeight;if(n||r)a.forEach(function(a){(a.horiz&&n||!a.horiz&&r)&&a.setTickInterval(!0)}),this.getMargins();this.drawChartBox();this.hasCartesianSeries?h(a):c&&c.length&&
|
|
|
-h(c);this.seriesGroup||(this.seriesGroup=d.g("series-group").attr({zIndex:3}).add());this.renderSeries();this.renderLabels();this.addCredits();this.setResponsive&&this.setResponsive();this.hasRendered=!0};e.prototype.addCredits=function(a){var c=this,d=X(!0,this.options.credits,a);d.enabled&&!this.credits&&(this.credits=this.renderer.text(d.text+(this.mapCredits||""),0,0).addClass("highcharts-credits").on("click",function(){d.href&&(I.location.href=d.href)}).attr({align:d.position.align,zIndex:8}),
|
|
|
-c.styledMode||this.credits.css(d.style),this.credits.add().align(d.position),this.credits.update=function(a){c.credits=c.credits.destroy();c.addCredits(a)})};e.prototype.destroy=function(){var a=this,c=a.axes,d=a.series,b=a.container,f,h=b&&b.parentNode;z(a,"destroy");a.renderer.forExport?P(m,a):m[a.index]=void 0;F.chartCount--;a.renderTo.removeAttribute("data-highcharts-chart");Z(a);for(f=c.length;f--;)c[f]=c[f].destroy();this.scroller&&this.scroller.destroy&&this.scroller.destroy();for(f=d.length;f--;)d[f]=
|
|
|
-d[f].destroy();"title subtitle chartBackground plotBackground plotBGImage plotBorder seriesGroup clipRect credits pointer rangeSelector legend resetZoomButton tooltip renderer".split(" ").forEach(function(c){var d=a[c];d&&d.destroy&&(a[c]=d.destroy())});b&&(b.innerHTML="",Z(b),h&&G(b));Y(a,function(c,d){delete a[d]})};e.prototype.firstRender=function(){var a=this,c=a.options;if(!a.isReadyToRender||a.isReadyToRender()){a.getContainer();a.resetMargins();a.setChartSize();a.propFromSeries();a.getAxes();
|
|
|
-(B(c.series)?c.series:[]).forEach(function(c){a.initSeries(c)});a.linkSeries();a.setSeriesData();z(a,"beforeRender");E&&(a.pointer=F.hasTouch||!I.PointerEvent&&!I.MSPointerEvent?new E(a,c):new H(a,c));a.render();a.pointer.getChartPosition();if(!a.renderer.imgCount&&!a.hasLoaded)a.onload();a.temporaryDisplay(!0)}};e.prototype.onload=function(){this.callbacks.concat([this.callback]).forEach(function(a){a&&"undefined"!==typeof this.index&&a.apply(this,[this])},this);z(this,"load");z(this,"render");M(this.index)&&
|
|
|
-this.setReflow(this.options.chart.reflow);this.hasLoaded=!0};e.prototype.addSeries=function(a,c,d){var b,f=this;a&&(c=T(c,!0),z(f,"addSeries",{options:a},function(){b=f.initSeries(a);f.isDirtyLegend=!0;f.linkSeries();b.enabledDataSorting&&b.setData(a.data,!1);z(f,"afterAddSeries",{series:b});c&&f.redraw(d)}));return b};e.prototype.addAxis=function(a,c,d,b){return this.createAxis(c?"xAxis":"yAxis",{axis:a,redraw:d,animation:b})};e.prototype.addColorAxis=function(a,c,d){return this.createAxis("colorAxis",
|
|
|
-{axis:a,redraw:c,animation:d})};e.prototype.createAxis=function(a,c){var d=this.options,b="colorAxis"===a,f=c.redraw,h=c.animation;c=X(c.axis,{index:this[a].length,isX:"xAxis"===a});var k=b?new F.ColorAxis(this,c):new l(this,c);d[a]=V(d[a]||{});d[a].push(c);b&&(this.isDirtyLegend=!0,this.axes.forEach(function(a){a.series=[]}),this.series.forEach(function(a){a.bindAxes();a.isDirtyData=!0}));T(f,!0)&&this.redraw(h);return k};e.prototype.showLoading=function(a){var d=this,b=d.options,n=d.loadingDiv,
|
|
|
-r=d.loadingSpan,g=b.loading,p=function(){n&&h(n,{left:d.plotLeft+"px",top:d.plotTop+"px",width:d.plotWidth+"px",height:d.plotHeight+"px"})};n||(d.loadingDiv=n=c("div",{className:"highcharts-loading highcharts-loading-hidden"},null,d.container));r||(d.loadingSpan=r=c("span",{className:"highcharts-loading-inner"},null,n),k(d,"redraw",p));n.className="highcharts-loading";u.setElementHTML(r,T(a,b.lang.loading,""));d.styledMode||(h(n,K(g.style,{zIndex:10})),h(r,g.labelStyle),d.loadingShown||(h(n,{opacity:0,
|
|
|
-display:""}),f(n,{opacity:g.style.opacity||.5},{duration:g.showDuration||0})));d.loadingShown=!0;p()};e.prototype.hideLoading=function(){var a=this.options,c=this.loadingDiv;c&&(c.className="highcharts-loading highcharts-loading-hidden",this.styledMode||f(c,{opacity:0},{duration:a.loading.hideDuration||100,complete:function(){h(c,{display:"none"})}}));this.loadingShown=!1};e.prototype.update=function(a,c,d,b){var f=this,h={credits:"addCredits",title:"setTitle",subtitle:"setSubtitle",caption:"setCaption"},
|
|
|
-k,n,r,g=a.isResponsiveOptions,m=[];z(f,"update",{options:a});g||f.setResponsive(!1,!0);a=y(a,f.options);f.userOptions=X(f.userOptions,a);if(k=a.chart){X(!0,f.options.chart,k);"className"in k&&f.setClassName(k.className);"reflow"in k&&f.setReflow(k.reflow);if("inverted"in k||"polar"in k||"type"in k){f.propFromSeries();var q=!0}"alignTicks"in k&&(q=!0);Y(k,function(a,c){-1!==f.propsRequireUpdateSeries.indexOf("chart."+c)&&(n=!0);-1!==f.propsRequireDirtyBox.indexOf(c)&&(f.isDirtyBox=!0);-1!==f.propsRequireReflow.indexOf(c)&&
|
|
|
-(g?f.isDirtyBox=!0:r=!0)});!f.styledMode&&"style"in k&&f.renderer.setStyle(k.style)}!f.styledMode&&a.colors&&(this.options.colors=a.colors);a.time&&(this.time===p&&(this.time=new x(a.time)),X(!0,f.options.time,a.time));Y(a,function(c,d){if(f[d]&&"function"===typeof f[d].update)f[d].update(c,!1);else if("function"===typeof f[h[d]])f[h[d]](c);else"color"!==d&&-1===f.collectionsWithUpdate.indexOf(d)&&X(!0,f.options[d],a[d]);"chart"!==d&&-1!==f.propsRequireUpdateSeries.indexOf(d)&&(n=!0)});this.collectionsWithUpdate.forEach(function(c){if(a[c]){if("series"===
|
|
|
-c){var b=[];f[c].forEach(function(a,c){a.options.isInternal||b.push(T(a.options.index,c))})}V(a[c]).forEach(function(a,k){var h=M(a.id),n;h&&(n=f.get(a.id));!n&&f[c]&&(n=f[c][b?b[k]:k])&&h&&M(n.options.id)&&(n=void 0);n&&n.coll===c&&(n.update(a,!1),d&&(n.touched=!0));!n&&d&&f.collectionsWithInit[c]&&(f.collectionsWithInit[c][0].apply(f,[a].concat(f.collectionsWithInit[c][1]||[]).concat([!1])).touched=!0)});d&&f[c].forEach(function(a){a.touched||a.options.isInternal?delete a.touched:m.push(a)})}});
|
|
|
-m.forEach(function(a){a.chart&&a.remove(!1)});q&&f.axes.forEach(function(a){a.update({},!1)});n&&f.getSeriesOrderByLinks().forEach(function(a){a.chart&&a.update({},!1)},this);q=k&&k.width;k=k&&k.height;aa(k)&&(k=U(k,q||f.chartWidth));r||v(q)&&q!==f.chartWidth||v(k)&&k!==f.chartHeight?f.setSize(q,k,b):T(c,!0)&&f.redraw(b);z(f,"afterUpdate",{options:a,redraw:c,animation:b})};e.prototype.setSubtitle=function(a,c){this.applyDescription("subtitle",a);this.layOutTitles(c)};e.prototype.setCaption=function(a,
|
|
|
-c){this.applyDescription("caption",a);this.layOutTitles(c)};e.prototype.showResetZoom=function(){function a(){c.zoomOut()}var c=this,d=q.lang,b=c.options.chart.resetZoomButton,f=b.theme,k=f.states,h="chart"===b.relativeTo||"spaceBox"===b.relativeTo?null:this.scrollablePlotBox||"plotBox";z(this,"beforeShowResetZoom",null,function(){c.resetZoomButton=c.renderer.button(d.resetZoom,null,null,a,f,k&&k.hover).attr({align:b.position.align,title:d.resetZoomTitle}).addClass("highcharts-reset-zoom").add().align(b.position,
|
|
|
-!1,h)});z(this,"afterShowResetZoom")};e.prototype.zoomOut=function(){z(this,"selection",{resetSelection:!0},this.zoom)};e.prototype.zoom=function(a){var c=this,d,b=c.pointer,f=!1,k=c.inverted?b.mouseDownX:b.mouseDownY;!a||a.resetSelection?(c.axes.forEach(function(a){d=a.zoom()}),b.initiated=!1):a.xAxis.concat(a.yAxis).forEach(function(a){var h=a.axis,n=c.inverted?h.left:h.top,r=c.inverted?n+h.width:n+h.height,g=h.isXAxis,p=!1;if(!g&&k>=n&&k<=r||g||!M(k))p=!0;b[g?"zoomX":"zoomY"]&&p&&(d=h.zoom(a.min,
|
|
|
-a.max),h.displayBtn&&(f=!0))});var h=c.resetZoomButton;f&&!h?c.showResetZoom():!f&&R(h)&&(c.resetZoomButton=h.destroy());d&&c.redraw(T(c.options.chart.animation,a&&a.animation,100>c.pointCount))};e.prototype.pan=function(a,c){var d=this,b=d.hoverPoints,f=d.options.chart,k=d.options.mapNavigation&&d.options.mapNavigation.enabled,n;c="object"===typeof c?c:{enabled:c,type:"x"};f&&f.panning&&(f.panning=c);var r=c.type;z(this,"pan",{originalEvent:a},function(){b&&b.forEach(function(a){a.setState()});var c=
|
|
|
-[1];"xy"===r?c=[1,0]:"y"===r&&(c=[0]);c.forEach(function(c){var b=d[c?"xAxis":"yAxis"][0],f=b.horiz,h=a[f?"chartX":"chartY"];f=f?"mouseDownX":"mouseDownY";var g=d[f],p=(b.pointRange||0)/2,m=b.reversed&&!d.inverted||!b.reversed&&d.inverted?-1:1,q=b.getExtremes(),z=b.toValue(g-h,!0)+p*m;m=b.toValue(g+b.len-h,!0)-p*m;var e=m<z;g=e?m:z;z=e?z:m;m=b.hasVerticalPanning();var t=b.panningState;!m||c||t&&!t.isDirty||b.series.forEach(function(a){var c=a.getProcessedData(!0);c=a.getExtremes(c.yData,!0);t||(t=
|
|
|
-{startMin:Number.MAX_VALUE,startMax:-Number.MAX_VALUE});v(c.dataMin)&&v(c.dataMax)&&(t.startMin=Math.min(T(a.options.threshold,Infinity),c.dataMin,t.startMin),t.startMax=Math.max(T(a.options.threshold,-Infinity),c.dataMax,t.startMax))});c=Math.min(T(null===t||void 0===t?void 0:t.startMin,q.dataMin),p?q.min:b.toValue(b.toPixels(q.min)-b.minPixelPadding));p=Math.max(T(null===t||void 0===t?void 0:t.startMax,q.dataMax),p?q.max:b.toValue(b.toPixels(q.max)+b.minPixelPadding));b.panningState=t;b.isOrdinal||
|
|
|
-(m=c-g,0<m&&(z+=m,g=c),m=z-p,0<m&&(z=p,g-=m),b.series.length&&g!==q.min&&z!==q.max&&g>=c&&z<=p&&(b.setExtremes(g,z,!1,!1,{trigger:"pan"}),d.resetZoomButton||k||g===c||z===p||!r.match("y")||(d.showResetZoom(),b.displayBtn=!1),n=!0),d[f]=h)});n&&d.redraw(!1);h(d.container,{cursor:"move"})})};return e}();K(ba.prototype,{callbacks:[],collectionsWithInit:{xAxis:[ba.prototype.addAxis,[!0]],yAxis:[ba.prototype.addAxis,[!1]],series:[ba.prototype.addSeries]},collectionsWithUpdate:["xAxis","yAxis","zAxis",
|
|
|
-"series"],propsRequireDirtyBox:"backgroundColor borderColor borderWidth borderRadius plotBackgroundColor plotBackgroundImage plotBorderColor plotBorderWidth plotShadow shadow".split(" "),propsRequireReflow:"margin marginTop marginRight marginBottom marginLeft spacing spacingTop spacingRight spacingBottom spacingLeft".split(" "),propsRequireUpdateSeries:"chart.inverted chart.polar chart.ignoreHiddenSeries chart.type colors plotOptions time tooltip".split(" ")});F.chart=function(a,c,d){return new ba(a,
|
|
|
-c,d)};F.Chart=ba;"";return ba});O(e,"Mixins/LegendSymbol.js",[e["Core/Globals.js"],e["Core/Utilities.js"]],function(e,l){var G=l.merge,C=l.pick;return e.LegendSymbolMixin={drawRectangle:function(e,l){var D=e.symbolHeight,E=e.options.squareSymbol;l.legendSymbol=this.chart.renderer.rect(E?(e.symbolWidth-D)/2:0,e.baseline-D+1,E?D:e.symbolWidth,D,C(e.options.symbolRadius,D/2)).addClass("highcharts-point").attr({zIndex:3}).add(l.legendGroup)},drawLineMarker:function(e){var l=this.options,D=l.marker,E=
|
|
|
-e.symbolWidth,A=e.symbolHeight,x=A/2,g=this.chart.renderer,u=this.legendGroup;e=e.baseline-Math.round(.3*e.fontMetrics.b);var f={};this.chart.styledMode||(f={"stroke-width":l.lineWidth||0},l.dashStyle&&(f.dashstyle=l.dashStyle));this.legendLine=g.path([["M",0,e],["L",E,e]]).addClass("highcharts-graph").attr(f).add(u);D&&!1!==D.enabled&&E&&(l=Math.min(C(D.radius,x),x),0===this.symbol.indexOf("url")&&(D=G(D,{width:A,height:A}),l=0),this.legendSymbol=D=g.symbol(this.symbol,E/2-l,e-l,2*l,2*l,D).addClass("highcharts-point").add(u),
|
|
|
-D.isMarker=!0)}}});O(e,"Core/Series/Series.js",[e["Core/Animation/AnimationUtilities.js"],e["Core/Globals.js"],e["Mixins/LegendSymbol.js"],e["Core/Options.js"],e["Core/Color/Palette.js"],e["Core/Series/Point.js"],e["Core/Series/SeriesRegistry.js"],e["Core/Renderer/SVG/SVGElement.js"],e["Core/Utilities.js"]],function(e,l,F,C,H,J,D,E,A){var x=e.animObject,g=e.setAnimation,u=l.hasTouch,f=l.svg,w=l.win,b=C.defaultOptions,m=D.seriesTypes,t=A.addEvent,I=A.arrayMax,q=A.arrayMin,p=A.clamp,a=A.cleanRecursively,
|
|
|
-k=A.correctFloat,d=A.defined,y=A.erase,c=A.error,h=A.extend,M=A.find,G=A.fireEvent,P=A.getNestedProperty,n=A.isArray,K=A.isFunction,r=A.isNumber,z=A.isString,L=A.merge,B=A.objectEach,Q=A.pick,v=A.removeEvent,R=A.splat,aa=A.syncTimeout;e=function(){function e(){this.zones=this.yAxis=this.xAxis=this.userOptions=this.tooltipOptions=this.processedYData=this.processedXData=this.points=this.options=this.linkedSeries=this.index=this.eventsToUnbind=this.eventOptions=this.data=this.chart=this._i=void 0}e.prototype.init=
|
|
|
-function(a,c){G(this,"init",{options:c});var d=this,b=a.series,f;this.eventOptions=this.eventOptions||{};this.eventsToUnbind=[];d.chart=a;d.options=c=d.setOptions(c);d.linkedSeries=[];d.bindAxes();h(d,{name:c.name,state:"",visible:!1!==c.visible,selected:!0===c.selected});var k=c.events;B(k,function(a,c){K(a)&&d.eventOptions[c]!==a&&(K(d.eventOptions[c])&&v(d,c,d.eventOptions[c]),d.eventOptions[c]=a,t(d,c,a))});if(k&&k.click||c.point&&c.point.events&&c.point.events.click||c.allowPointSelect)a.runTrackerClick=
|
|
|
-!0;d.getColor();d.getSymbol();d.parallelArrays.forEach(function(a){d[a+"Data"]||(d[a+"Data"]=[])});d.isCartesian&&(a.hasCartesianSeries=!0);b.length&&(f=b[b.length-1]);d._i=Q(f&&f._i,-1)+1;d.opacity=d.options.opacity;a.orderSeries(this.insert(b));c.dataSorting&&c.dataSorting.enabled?d.setDataSortingOptions():d.points||d.data||d.setData(c.data,!1);G(this,"afterInit")};e.prototype.is=function(a){return m[a]&&this instanceof m[a]};e.prototype.insert=function(a){var c=this.options.index,d;if(r(c)){for(d=
|
|
|
-a.length;d--;)if(c>=Q(a[d].options.index,a[d]._i)){a.splice(d+1,0,this);break}-1===d&&a.unshift(this);d+=1}else a.push(this);return Q(d,a.length-1)};e.prototype.bindAxes=function(){var a=this,d=a.options,b=a.chart,f;G(this,"bindAxes",null,function(){(a.axisTypes||[]).forEach(function(h){b[h].forEach(function(c){f=c.options;if(d[h]===f.index||"undefined"!==typeof d[h]&&d[h]===f.id||"undefined"===typeof d[h]&&0===f.index)a.insert(c.series),a[h]=c,c.isDirty=!0});a[h]||a.optionalAxis===h||c(18,!0,b)})});
|
|
|
-G(this,"afterBindAxes")};e.prototype.updateParallelArrays=function(a,c){var d=a.series,b=arguments,f=r(c)?function(b){var f="y"===b&&d.toYData?d.toYData(a):a[b];d[b+"Data"][c]=f}:function(a){Array.prototype[c].apply(d[a+"Data"],Array.prototype.slice.call(b,2))};d.parallelArrays.forEach(f)};e.prototype.hasData=function(){return this.visible&&"undefined"!==typeof this.dataMax&&"undefined"!==typeof this.dataMin||this.visible&&this.yData&&0<this.yData.length};e.prototype.autoIncrement=function(){var a=
|
|
|
-this.options,c=this.xIncrement,d,b=a.pointIntervalUnit,f=this.chart.time;c=Q(c,a.pointStart,0);this.pointInterval=d=Q(this.pointInterval,a.pointInterval,1);b&&(a=new f.Date(c),"day"===b?f.set("Date",a,f.get("Date",a)+d):"month"===b?f.set("Month",a,f.get("Month",a)+d):"year"===b&&f.set("FullYear",a,f.get("FullYear",a)+d),d=a.getTime()-c);this.xIncrement=c+d;return c};e.prototype.setDataSortingOptions=function(){var a=this.options;h(this,{requireSorting:!1,sorted:!1,enabledDataSorting:!0,allowDG:!1});
|
|
|
-d(a.pointRange)||(a.pointRange=1)};e.prototype.setOptions=function(a){var c=this.chart,f=c.options,h=f.plotOptions,k=c.userOptions||{};a=L(a);c=c.styledMode;var n={plotOptions:h,userOptions:a};G(this,"setOptions",n);var r=n.plotOptions[this.type],g=k.plotOptions||{};this.userOptions=n.userOptions;k=L(r,h.series,k.plotOptions&&k.plotOptions[this.type],a);this.tooltipOptions=L(b.tooltip,b.plotOptions.series&&b.plotOptions.series.tooltip,b.plotOptions[this.type].tooltip,f.tooltip.userOptions,h.series&&
|
|
|
-h.series.tooltip,h[this.type].tooltip,a.tooltip);this.stickyTracking=Q(a.stickyTracking,g[this.type]&&g[this.type].stickyTracking,g.series&&g.series.stickyTracking,this.tooltipOptions.shared&&!this.noSharedTooltip?!0:k.stickyTracking);null===r.marker&&delete k.marker;this.zoneAxis=k.zoneAxis;f=this.zones=(k.zones||[]).slice();!k.negativeColor&&!k.negativeFillColor||k.zones||(h={value:k[this.zoneAxis+"Threshold"]||k.threshold||0,className:"highcharts-negative"},c||(h.color=k.negativeColor,h.fillColor=
|
|
|
-k.negativeFillColor),f.push(h));f.length&&d(f[f.length-1].value)&&f.push(c?{}:{color:this.color,fillColor:this.fillColor});G(this,"afterSetOptions",{options:k});return k};e.prototype.getName=function(){return Q(this.options.name,"Series "+(this.index+1))};e.prototype.getCyclic=function(a,c,b){var f=this.chart,h=this.userOptions,k=a+"Index",n=a+"Counter",r=b?b.length:Q(f.options.chart[a+"Count"],f[a+"Count"]);if(!c){var g=Q(h[k],h["_"+k]);d(g)||(f.series.length||(f[n]=0),h["_"+k]=g=f[n]%r,f[n]+=1);
|
|
|
-b&&(c=b[g])}"undefined"!==typeof g&&(this[k]=g);this[a]=c};e.prototype.getColor=function(){this.chart.styledMode?this.getCyclic("color"):this.options.colorByPoint?this.options.color=null:this.getCyclic("color",this.options.color||b.plotOptions[this.type].color,this.chart.options.colors)};e.prototype.getPointsCollection=function(){return(this.hasGroupedData?this.points:this.data)||[]};e.prototype.getSymbol=function(){this.getCyclic("symbol",this.options.marker.symbol,this.chart.options.symbols)};e.prototype.findPointIndex=
|
|
|
-function(a,c){var d=a.id,b=a.x,f=this.points,h,k=this.options.dataSorting;if(d)var n=this.chart.get(d);else if(this.linkedParent||this.enabledDataSorting){var g=k&&k.matchByName?"name":"index";n=M(f,function(c){return!c.touched&&c[g]===a[g]});if(!n)return}if(n){var p=n&&n.index;"undefined"!==typeof p&&(h=!0)}"undefined"===typeof p&&r(b)&&(p=this.xData.indexOf(b,c));-1!==p&&"undefined"!==typeof p&&this.cropped&&(p=p>=this.cropStart?p-this.cropStart:p);!h&&f[p]&&f[p].touched&&(p=void 0);return p};e.prototype.updateData=
|
|
|
-function(a,c){var b=this.options,f=b.dataSorting,h=this.points,k=[],n,g,p,m=this.requireSorting,e=a.length===h.length,q=!0;this.xIncrement=null;a.forEach(function(a,c){var g=d(a)&&this.pointClass.prototype.optionsToObject.call({series:this},a)||{};var q=g.x;if(g.id||r(q)){if(q=this.findPointIndex(g,p),-1===q||"undefined"===typeof q?k.push(a):h[q]&&a!==b.data[q]?(h[q].update(a,!1,null,!1),h[q].touched=!0,m&&(p=q+1)):h[q]&&(h[q].touched=!0),!e||c!==q||f&&f.enabled||this.hasDerivedData)n=!0}else k.push(a)},
|
|
|
-this);if(n)for(a=h.length;a--;)(g=h[a])&&!g.touched&&g.remove&&g.remove(!1,c);else!e||f&&f.enabled?q=!1:(a.forEach(function(a,c){h[c].update&&a!==h[c].y&&h[c].update(a,!1,null,!1)}),k.length=0);h.forEach(function(a){a&&(a.touched=!1)});if(!q)return!1;k.forEach(function(a){this.addPoint(a,!1,null,null,!1)},this);null===this.xIncrement&&this.xData&&this.xData.length&&(this.xIncrement=I(this.xData),this.autoIncrement());return!0};e.prototype.setData=function(a,d,b,f){var h=this,k=h.points,g=k&&k.length||
|
|
|
-0,p,m=h.options,e=h.chart,q=m.dataSorting,t=null,v=h.xAxis;t=m.turboThreshold;var y=this.xData,u=this.yData,B=(p=h.pointArrayMap)&&p.length,K=m.keys,w=0,L=1,N;a=a||[];p=a.length;d=Q(d,!0);q&&q.enabled&&(a=this.sortData(a));!1!==f&&p&&g&&!h.cropped&&!h.hasGroupedData&&h.visible&&!h.isSeriesBoosting&&(N=this.updateData(a,b));if(!N){h.xIncrement=null;h.colorCounter=0;this.parallelArrays.forEach(function(a){h[a+"Data"].length=0});if(t&&p>t)if(t=h.getFirstValidPoint(a),r(t))for(b=0;b<p;b++)y[b]=this.autoIncrement(),
|
|
|
-u[b]=a[b];else if(n(t))if(B)for(b=0;b<p;b++)f=a[b],y[b]=f[0],u[b]=f.slice(1,B+1);else for(K&&(w=K.indexOf("x"),L=K.indexOf("y"),w=0<=w?w:0,L=0<=L?L:1),b=0;b<p;b++)f=a[b],y[b]=f[w],u[b]=f[L];else c(12,!1,e);else for(b=0;b<p;b++)"undefined"!==typeof a[b]&&(f={series:h},h.pointClass.prototype.applyOptions.apply(f,[a[b]]),h.updateParallelArrays(f,b));u&&z(u[0])&&c(14,!0,e);h.data=[];h.options.data=h.userOptions.data=a;for(b=g;b--;)k[b]&&k[b].destroy&&k[b].destroy();v&&(v.minRange=v.userMinRange);h.isDirty=
|
|
|
-e.isDirtyBox=!0;h.isDirtyData=!!k;b=!1}"point"===m.legendType&&(this.processData(),this.generatePoints());d&&e.redraw(b)};e.prototype.sortData=function(a){var c=this,b=c.options.dataSorting.sortKey||"y",f=function(a,c){return d(c)&&a.pointClass.prototype.optionsToObject.call({series:a},c)||{}};a.forEach(function(d,b){a[b]=f(c,d);a[b].index=b},this);a.concat().sort(function(a,c){a=P(b,a);c=P(b,c);return c<a?-1:c>a?1:0}).forEach(function(a,c){a.x=c},this);c.linkedSeries&&c.linkedSeries.forEach(function(c){var d=
|
|
|
-c.options,b=d.data;d.dataSorting&&d.dataSorting.enabled||!b||(b.forEach(function(d,h){b[h]=f(c,d);a[h]&&(b[h].x=a[h].x,b[h].index=h)}),c.setData(b,!1))});return a};e.prototype.getProcessedData=function(a){var d=this.xData,b=this.yData,f=d.length;var h=0;var k=this.xAxis,n=this.options;var r=n.cropThreshold;var g=a||this.getExtremesFromAll||n.getExtremesFromAll,p=this.isCartesian;a=k&&k.val2lin;n=!(!k||!k.logarithmic);var m=this.requireSorting;if(k){k=k.getExtremes();var e=k.min;var q=k.max}if(p&&
|
|
|
-this.sorted&&!g&&(!r||f>r||this.forceCrop))if(d[f-1]<e||d[0]>q)d=[],b=[];else if(this.yData&&(d[0]<e||d[f-1]>q)){h=this.cropData(this.xData,this.yData,e,q);d=h.xData;b=h.yData;h=h.start;var z=!0}for(r=d.length||1;--r;)if(f=n?a(d[r])-a(d[r-1]):d[r]-d[r-1],0<f&&("undefined"===typeof t||f<t))var t=f;else 0>f&&m&&(c(15,!1,this.chart),m=!1);return{xData:d,yData:b,cropped:z,cropStart:h,closestPointRange:t}};e.prototype.processData=function(a){var c=this.xAxis;if(this.isCartesian&&!this.isDirty&&!c.isDirty&&
|
|
|
-!this.yAxis.isDirty&&!a)return!1;a=this.getProcessedData();this.cropped=a.cropped;this.cropStart=a.cropStart;this.processedXData=a.xData;this.processedYData=a.yData;this.closestPointRange=this.basePointRange=a.closestPointRange};e.prototype.cropData=function(a,c,d,b,f){var h=a.length,k=0,n=h,r;f=Q(f,this.cropShoulder);for(r=0;r<h;r++)if(a[r]>=d){k=Math.max(0,r-f);break}for(d=r;d<h;d++)if(a[d]>b){n=d+f;break}return{xData:a.slice(k,n),yData:c.slice(k,n),start:k,end:n}};e.prototype.generatePoints=function(){var a=
|
|
|
-this.options,c=a.data,d=this.data,b,f=this.processedXData,k=this.processedYData,n=this.pointClass,r=f.length,g=this.cropStart||0,p=this.hasGroupedData;a=a.keys;var m=[],e;d||p||(d=[],d.length=c.length,d=this.data=d);a&&p&&(this.options.keys=!1);for(e=0;e<r;e++){var q=g+e;if(p){var z=(new n).init(this,[f[e]].concat(R(k[e])));z.dataGroup=this.groupMap[e];z.dataGroup.options&&(z.options=z.dataGroup.options,h(z,z.dataGroup.options),delete z.dataLabels)}else(z=d[q])||"undefined"===typeof c[q]||(d[q]=z=
|
|
|
-(new n).init(this,c[q],f[e]));z&&(z.index=q,m[e]=z)}this.options.keys=a;if(d&&(r!==(b=d.length)||p))for(e=0;e<b;e++)e!==g||p||(e+=r),d[e]&&(d[e].destroyElements(),d[e].plotX=void 0);this.data=d;this.points=m;G(this,"afterGeneratePoints")};e.prototype.getXExtremes=function(a){return{min:q(a),max:I(a)}};e.prototype.getExtremes=function(a,c){var d=this.xAxis,b=this.yAxis,f=this.processedXData||this.xData,h=[],k=0,g=0;var p=0;var m=this.requireSorting?this.cropShoulder:0,e=b?b.positiveValuesOnly:!1,z;
|
|
|
-a=a||this.stackedYData||this.processedYData||[];b=a.length;d&&(p=d.getExtremes(),g=p.min,p=p.max);for(z=0;z<b;z++){var t=f[z];var v=a[z];var y=(r(v)||n(v))&&(v.length||0<v||!e);t=c||this.getExtremesFromAll||this.options.getExtremesFromAll||this.cropped||!d||(f[z+m]||t)>=g&&(f[z-m]||t)<=p;if(y&&t)if(y=v.length)for(;y--;)r(v[y])&&(h[k++]=v[y]);else h[k++]=v}a={dataMin:q(h),dataMax:I(h)};G(this,"afterGetExtremes",{dataExtremes:a});return a};e.prototype.applyExtremes=function(){var a=this.getExtremes();
|
|
|
-this.dataMin=a.dataMin;this.dataMax=a.dataMax;return a};e.prototype.getFirstValidPoint=function(a){for(var c=null,d=a.length,b=0;null===c&&b<d;)c=a[b],b++;return c};e.prototype.translate=function(){this.processedXData||this.processData();this.generatePoints();var a=this.options,c=a.stacking,b=this.xAxis,f=b.categories,h=this.enabledDataSorting,g=this.yAxis,m=this.points,e=m.length,q=!!this.modifyValue,z,t=this.pointPlacementToXValue(),v=!!t,y=a.threshold,u=a.startFromThreshold?y:0,B,K=this.zoneAxis||
|
|
|
-"y",w=Number.MAX_VALUE;for(z=0;z<e;z++){var L=m[z],I=L.x,l=L.y,x=L.low,M=c&&g.stacking&&g.stacking.stacks[(this.negStacks&&l<(u?0:y)?"-":"")+this.stackKey];if(g.positiveValuesOnly&&!g.validatePositiveValue(l)||b.positiveValuesOnly&&!b.validatePositiveValue(I))L.isNull=!0;L.plotX=B=k(p(b.translate(I,0,0,0,1,t,"flags"===this.type),-1E5,1E5));if(c&&this.visible&&M&&M[I]){var A=this.getStackIndicator(A,I,this.index);if(!L.isNull){var P=M[I];var E=P.points[A.key]}}n(E)&&(x=E[0],l=E[1],x===u&&A.key===M[I].base&&
|
|
|
-(x=Q(r(y)&&y,g.min)),g.positiveValuesOnly&&0>=x&&(x=null),L.total=L.stackTotal=P.total,L.percentage=P.total&&L.y/P.total*100,L.stackY=l,this.irregularWidths||P.setOffset(this.pointXOffset||0,this.barW||0));L.yBottom=d(x)?p(g.translate(x,0,1,0,1),-1E5,1E5):null;q&&(l=this.modifyValue(l,L));L.plotY=void 0;r(l)&&(l=g.translate(l,!1,!0,!1,!0),"undefined"!==typeof l&&(L.plotY=p(l,-1E5,1E5)));L.isInside=this.isPointInside(L);L.clientX=v?k(b.translate(I,0,0,0,1,t)):B;L.negative=L[K]<(a[K+"Threshold"]||y||
|
|
|
-0);L.category=f&&"undefined"!==typeof f[L.x]?f[L.x]:L.x;if(!L.isNull&&!1!==L.visible){"undefined"!==typeof D&&(w=Math.min(w,Math.abs(B-D)));var D=B}L.zone=this.zones.length&&L.getZone();!L.graphic&&this.group&&h&&(L.isNew=!0)}this.closestPointRangePx=w;G(this,"afterTranslate")};e.prototype.getValidPoints=function(a,c,d){var b=this.chart;return(a||this.points||[]).filter(function(a){return c&&!b.isInsidePlot(a.plotX,a.plotY,b.inverted)?!1:!1!==a.visible&&(d||!a.isNull)})};e.prototype.getClipBox=function(a,
|
|
|
-c){var d=this.options,b=this.chart,f=b.inverted,h=this.xAxis,k=h&&this.yAxis,n=b.options.chart.scrollablePlotArea||{};a&&!1===d.clip&&k?a=f?{y:-b.chartWidth+k.len+k.pos,height:b.chartWidth,width:b.chartHeight,x:-b.chartHeight+h.len+h.pos}:{y:-k.pos,height:b.chartHeight,width:b.chartWidth,x:-h.pos}:(a=this.clipBox||b.clipBox,c&&(a.width=b.plotSizeX,a.x=(b.scrollablePixelsX||0)*(n.scrollPositionX||0)));return c?{width:a.width,x:a.x}:a};e.prototype.setClip=function(a){var c=this.chart,d=this.options,
|
|
|
-b=c.renderer,f=c.inverted,h=this.clipBox,k=this.getClipBox(a),n=this.sharedClipKey||["_sharedClip",a&&a.duration,a&&a.easing,a&&a.defer,k.height,d.xAxis,d.yAxis].join(),r=c[n],g=c[n+"m"];a&&(k.width=0,f&&(k.x=c.plotHeight+(!1!==d.clip?0:c.plotTop)));r?c.hasLoaded||r.attr(k):(a&&(c[n+"m"]=g=b.clipRect(f?c.plotSizeX+99:-99,f?-c.plotLeft:-c.plotTop,99,f?c.chartWidth:c.chartHeight)),c[n]=r=b.clipRect(k),r.count={length:0});a&&!r.count[this.index]&&(r.count[this.index]=!0,r.count.length+=1);if(!1!==d.clip||
|
|
|
-a)this.group.clip(a||h?r:c.clipRect),this.markerGroup.clip(g),this.sharedClipKey=n;a||(r.count[this.index]&&(delete r.count[this.index],--r.count.length),0===r.count.length&&n&&c[n]&&(h||(c[n]=c[n].destroy()),c[n+"m"]&&(c[n+"m"]=c[n+"m"].destroy())))};e.prototype.animate=function(a){var c=this.chart,d=x(this.options.animation);if(a)this.setClip(d);else{var b=this.sharedClipKey;a=c[b];var f=this.getClipBox(d,!0);a&&a.animate(f,d);c[b+"m"]&&c[b+"m"].animate({width:f.width+99,x:f.x-(c.inverted?0:99)},
|
|
|
-d)}};e.prototype.afterAnimate=function(){this.setClip();G(this,"afterAnimate");this.finishedAnimating=!0};e.prototype.drawPoints=function(){var a=this.points,c=this.chart,d,b,f=this.options.marker,h=this[this.specialGroup]||this.markerGroup,k=this.xAxis,n=Q(f.enabled,!k||k.isRadial?!0:null,this.closestPointRangePx>=f.enabledThreshold*f.radius);if(!1!==f.enabled||this._hasPointMarkers)for(d=0;d<a.length;d++){var r=a[d];var g=(b=r.graphic)?"animate":"attr";var p=r.marker||{};var m=!!r.marker;if((n&&
|
|
|
-"undefined"===typeof p.enabled||p.enabled)&&!r.isNull&&!1!==r.visible){var e=Q(p.symbol,this.symbol);var q=this.markerAttribs(r,r.selected&&"select");this.enabledDataSorting&&(r.startXPos=k.reversed?-q.width:k.width);var z=!1!==r.isInside;b?b[z?"show":"hide"](z).animate(q):z&&(0<q.width||r.hasImage)&&(r.graphic=b=c.renderer.symbol(e,q.x,q.y,q.width,q.height,m?p:f).add(h),this.enabledDataSorting&&c.hasRendered&&(b.attr({x:r.startXPos}),g="animate"));b&&"animate"===g&&b[z?"show":"hide"](z).animate(q);
|
|
|
-if(b&&!c.styledMode)b[g](this.pointAttribs(r,r.selected&&"select"));b&&b.addClass(r.getClassName(),!0)}else b&&(r.graphic=b.destroy())}};e.prototype.markerAttribs=function(a,c){var d=this.options,b=d.marker,f=a.marker||{},h=f.symbol||b.symbol,k=Q(f.radius,b.radius);c&&(b=b.states[c],c=f.states&&f.states[c],k=Q(c&&c.radius,b&&b.radius,k+(b&&b.radiusPlus||0)));a.hasImage=h&&0===h.indexOf("url");a.hasImage&&(k=0);a={x:d.crisp?Math.floor(a.plotX)-k:a.plotX-k,y:a.plotY-k};k&&(a.width=a.height=2*k);return a};
|
|
|
-e.prototype.pointAttribs=function(a,c){var d=this.options.marker,b=a&&a.options,f=b&&b.marker||{},h=this.color,k=b&&b.color,n=a&&a.color;b=Q(f.lineWidth,d.lineWidth);var r=a&&a.zone&&a.zone.color;a=1;h=k||r||n||h;k=f.fillColor||d.fillColor||h;h=f.lineColor||d.lineColor||h;c=c||"normal";d=d.states[c];c=f.states&&f.states[c]||{};b=Q(c.lineWidth,d.lineWidth,b+Q(c.lineWidthPlus,d.lineWidthPlus,0));k=c.fillColor||d.fillColor||k;h=c.lineColor||d.lineColor||h;a=Q(c.opacity,d.opacity,a);return{stroke:h,"stroke-width":b,
|
|
|
-fill:k,opacity:a}};e.prototype.destroy=function(a){var c=this,d=c.chart,b=/AppleWebKit\/533/.test(w.navigator.userAgent),f,h,k=c.data||[],n,r;G(c,"destroy");this.removeEvents(a);(c.axisTypes||[]).forEach(function(a){(r=c[a])&&r.series&&(y(r.series,c),r.isDirty=r.forceRedraw=!0)});c.legendItem&&c.chart.legend.destroyItem(c);for(h=k.length;h--;)(n=k[h])&&n.destroy&&n.destroy();c.points=null;A.clearTimeout(c.animationTimeout);B(c,function(a,c){a instanceof E&&!a.survive&&(f=b&&"group"===c?"hide":"destroy",
|
|
|
-a[f]())});d.hoverSeries===c&&(d.hoverSeries=null);y(d.series,c);d.orderSeries();B(c,function(d,b){a&&"hcEvents"===b||delete c[b]})};e.prototype.applyZones=function(){var a=this,c=this.chart,d=c.renderer,b=this.zones,f,h,k=this.clips||[],n,r=this.graph,g=this.area,m=Math.max(c.chartWidth,c.chartHeight),e=this[(this.zoneAxis||"y")+"Axis"],q=c.inverted,z,t,v,y=!1,u,B;if(b.length&&(r||g)&&e&&"undefined"!==typeof e.min){var K=e.reversed;var L=e.horiz;r&&!this.showLine&&r.hide();g&&g.hide();var w=e.getExtremes();
|
|
|
-b.forEach(function(b,l){f=K?L?c.plotWidth:0:L?0:e.toPixels(w.min)||0;f=p(Q(h,f),0,m);h=p(Math.round(e.toPixels(Q(b.value,w.max),!0)||0),0,m);y&&(f=h=e.toPixels(w.max));z=Math.abs(f-h);t=Math.min(f,h);v=Math.max(f,h);e.isXAxis?(n={x:q?v:t,y:0,width:z,height:m},L||(n.x=c.plotHeight-n.x)):(n={x:0,y:q?v:t,width:m,height:z},L&&(n.y=c.plotWidth-n.y));q&&d.isVML&&(n=e.isXAxis?{x:0,y:K?t:v,height:n.width,width:c.chartWidth}:{x:n.y-c.plotLeft-c.spacingBox.x,y:0,width:n.height,height:c.chartHeight});k[l]?k[l].animate(n):
|
|
|
-k[l]=d.clipRect(n);u=a["zone-area-"+l];B=a["zone-graph-"+l];r&&B&&B.clip(k[l]);g&&u&&u.clip(k[l]);y=b.value>w.max;a.resetZones&&0===h&&(h=void 0)});this.clips=k}else a.visible&&(r&&r.show(!0),g&&g.show(!0))};e.prototype.invertGroups=function(a){function c(){["group","markerGroup"].forEach(function(c){d[c]&&(b.renderer.isVML&&d[c].attr({width:d.yAxis.len,height:d.xAxis.len}),d[c].width=d.yAxis.len,d[c].height=d.xAxis.len,d[c].invert(d.isRadialSeries?!1:a))})}var d=this,b=d.chart;d.xAxis&&(d.eventsToUnbind.push(t(b,
|
|
|
-"resize",c)),c(),d.invertGroups=c)};e.prototype.plotGroup=function(a,c,b,f,h){var k=this[a],n=!k;b={visibility:b,zIndex:f||.1};"undefined"===typeof this.opacity||this.chart.styledMode||"inactive"===this.state||(b.opacity=this.opacity);n&&(this[a]=k=this.chart.renderer.g().add(h));k.addClass("highcharts-"+c+" highcharts-series-"+this.index+" highcharts-"+this.type+"-series "+(d(this.colorIndex)?"highcharts-color-"+this.colorIndex+" ":"")+(this.options.className||"")+(k.hasClass("highcharts-tracker")?
|
|
|
-" highcharts-tracker":""),!0);k.attr(b)[n?"attr":"animate"](this.getPlotBox());return k};e.prototype.getPlotBox=function(){var a=this.chart,c=this.xAxis,d=this.yAxis;a.inverted&&(c=d,d=this.xAxis);return{translateX:c?c.left:a.plotLeft,translateY:d?d.top:a.plotTop,scaleX:1,scaleY:1}};e.prototype.removeEvents=function(a){a||v(this);this.eventsToUnbind.length&&(this.eventsToUnbind.forEach(function(a){a()}),this.eventsToUnbind.length=0)};e.prototype.render=function(){var a=this,c=a.chart,d=a.options,
|
|
|
-b=x(d.animation),f=!a.finishedAnimating&&c.renderer.isSVG&&b.duration,h=a.visible?"inherit":"hidden",k=d.zIndex,n=a.hasRendered,r=c.seriesGroup,g=c.inverted;G(this,"render");var p=a.plotGroup("group","series",h,k,r);a.markerGroup=a.plotGroup("markerGroup","markers",h,k,r);f&&a.animate&&a.animate(!0);p.inverted=Q(a.invertible,a.isCartesian)?g:!1;a.drawGraph&&(a.drawGraph(),a.applyZones());a.visible&&a.drawPoints();a.drawDataLabels&&a.drawDataLabels();a.redrawPoints&&a.redrawPoints();a.drawTracker&&
|
|
|
-!1!==a.options.enableMouseTracking&&a.drawTracker();a.invertGroups(g);!1===d.clip||a.sharedClipKey||n||p.clip(c.clipRect);f&&a.animate&&a.animate();n||(f&&b.defer&&(f+=b.defer),a.animationTimeout=aa(function(){a.afterAnimate()},f||0));a.isDirty=!1;a.hasRendered=!0;G(a,"afterRender")};e.prototype.redraw=function(){var a=this.chart,c=this.isDirty||this.isDirtyData,d=this.group,b=this.xAxis,f=this.yAxis;d&&(a.inverted&&d.attr({width:a.plotWidth,height:a.plotHeight}),d.animate({translateX:Q(b&&b.left,
|
|
|
-a.plotLeft),translateY:Q(f&&f.top,a.plotTop)}));this.translate();this.render();c&&delete this.kdTree};e.prototype.searchPoint=function(a,c){var d=this.xAxis,b=this.yAxis,f=this.chart.inverted;return this.searchKDTree({clientX:f?d.len-a.chartY+d.pos:a.chartX-d.pos,plotY:f?b.len-a.chartX+b.pos:a.chartY-b.pos},c,a)};e.prototype.buildKDTree=function(a){function c(a,b,f){var h;if(h=a&&a.length){var k=d.kdAxisArray[b%f];a.sort(function(a,c){return a[k]-c[k]});h=Math.floor(h/2);return{point:a[h],left:c(a.slice(0,
|
|
|
-h),b+1,f),right:c(a.slice(h+1),b+1,f)}}}this.buildingKdTree=!0;var d=this,b=-1<d.options.findNearestPointBy.indexOf("y")?2:1;delete d.kdTree;aa(function(){d.kdTree=c(d.getValidPoints(null,!d.directTouch),b,b);d.buildingKdTree=!1},d.options.kdNow||a&&"touchstart"===a.type?0:1)};e.prototype.searchKDTree=function(a,c,b){function f(a,c,b,g){var p=c.point,e=h.kdAxisArray[b%g],m=p;var q=d(a[k])&&d(p[k])?Math.pow(a[k]-p[k],2):null;var z=d(a[n])&&d(p[n])?Math.pow(a[n]-p[n],2):null;z=(q||0)+(z||0);p.dist=
|
|
|
-d(z)?Math.sqrt(z):Number.MAX_VALUE;p.distX=d(q)?Math.sqrt(q):Number.MAX_VALUE;e=a[e]-p[e];z=0>e?"left":"right";q=0>e?"right":"left";c[z]&&(z=f(a,c[z],b+1,g),m=z[r]<m[r]?z:p);c[q]&&Math.sqrt(e*e)<m[r]&&(a=f(a,c[q],b+1,g),m=a[r]<m[r]?a:m);return m}var h=this,k=this.kdAxisArray[0],n=this.kdAxisArray[1],r=c?"distX":"dist";c=-1<h.options.findNearestPointBy.indexOf("y")?2:1;this.kdTree||this.buildingKdTree||this.buildKDTree(b);if(this.kdTree)return f(a,this.kdTree,c,c)};e.prototype.pointPlacementToXValue=
|
|
|
-function(){var a=this.options,c=a.pointRange,d=this.xAxis;a=a.pointPlacement;"between"===a&&(a=d.reversed?-.5:.5);return r(a)?a*(c||d.pointRange):0};e.prototype.isPointInside=function(a){return"undefined"!==typeof a.plotY&&"undefined"!==typeof a.plotX&&0<=a.plotY&&a.plotY<=this.yAxis.len&&0<=a.plotX&&a.plotX<=this.xAxis.len};e.prototype.drawTracker=function(){var a=this,c=a.options,d=c.trackByArea,b=[].concat(d?a.areaPath:a.graphPath),h=a.chart,k=h.pointer,n=h.renderer,r=h.options.tooltip.snap,g=
|
|
|
-a.tracker,p=function(c){if(h.hoverSeries!==a)a.onMouseOver()},e="rgba(192,192,192,"+(f?.0001:.002)+")";g?g.attr({d:b}):a.graph&&(a.tracker=n.path(b).attr({visibility:a.visible?"visible":"hidden",zIndex:2}).addClass(d?"highcharts-tracker-area":"highcharts-tracker-line").add(a.group),h.styledMode||a.tracker.attr({"stroke-linecap":"round","stroke-linejoin":"round",stroke:e,fill:d?e:"none","stroke-width":a.graph.strokeWidth()+(d?0:2*r)}),[a.tracker,a.markerGroup].forEach(function(a){a.addClass("highcharts-tracker").on("mouseover",
|
|
|
-p).on("mouseout",function(a){k.onTrackerMouseOut(a)});c.cursor&&!h.styledMode&&a.css({cursor:c.cursor});if(u)a.on("touchstart",p)}));G(this,"afterDrawTracker")};e.prototype.addPoint=function(a,c,d,b,f){var h=this.options,k=this.data,n=this.chart,r=this.xAxis;r=r&&r.hasNames&&r.names;var g=h.data,p=this.xData,e;c=Q(c,!0);var m={series:this};this.pointClass.prototype.applyOptions.apply(m,[a]);var q=m.x;var z=p.length;if(this.requireSorting&&q<p[z-1])for(e=!0;z&&p[z-1]>q;)z--;this.updateParallelArrays(m,
|
|
|
-"splice",z,0,0);this.updateParallelArrays(m,z);r&&m.name&&(r[q]=m.name);g.splice(z,0,a);e&&(this.data.splice(z,0,null),this.processData());"point"===h.legendType&&this.generatePoints();d&&(k[0]&&k[0].remove?k[0].remove(!1):(k.shift(),this.updateParallelArrays(m,"shift"),g.shift()));!1!==f&&G(this,"addPoint",{point:m});this.isDirtyData=this.isDirty=!0;c&&n.redraw(b)};e.prototype.removePoint=function(a,c,d){var b=this,f=b.data,h=f[a],k=b.points,n=b.chart,r=function(){k&&k.length===f.length&&k.splice(a,
|
|
|
-1);f.splice(a,1);b.options.data.splice(a,1);b.updateParallelArrays(h||{series:b},"splice",a,1);h&&h.destroy();b.isDirty=!0;b.isDirtyData=!0;c&&n.redraw()};g(d,n);c=Q(c,!0);h?h.firePointEvent("remove",null,r):r()};e.prototype.remove=function(a,c,d,b){function f(){h.destroy(b);k.isDirtyLegend=k.isDirtyBox=!0;k.linkSeries();Q(a,!0)&&k.redraw(c)}var h=this,k=h.chart;!1!==d?G(h,"remove",null,f):f()};e.prototype.update=function(d,b){d=a(d,this.userOptions);G(this,"update",{options:d});var f=this,k=f.chart,
|
|
|
-n=f.userOptions,r=f.initialType||f.type,g=k.options.plotOptions,p=d.type||n.type||k.options.chart.type,e=!(this.hasDerivedData||p&&p!==this.type||"undefined"!==typeof d.pointStart||"undefined"!==typeof d.pointInterval||f.hasOptionChanged("dataGrouping")||f.hasOptionChanged("pointStart")||f.hasOptionChanged("pointInterval")||f.hasOptionChanged("pointIntervalUnit")||f.hasOptionChanged("keys")),q=m[r].prototype,z,t=["eventOptions","navigatorSeries","baseSeries"],v=f.finishedAnimating&&{animation:!1},
|
|
|
-y={};e&&(t.push("data","isDirtyData","points","processedXData","processedYData","xIncrement","cropped","_hasPointMarkers","_hasPointLabels","nodes","layout","mapMap","mapData","minY","maxY","minX","maxX"),!1!==d.visible&&t.push("area","graph"),f.parallelArrays.forEach(function(a){t.push(a+"Data")}),d.data&&(d.dataSorting&&h(f.options.dataSorting,d.dataSorting),this.setData(d.data,!1)));d=L(n,v,{index:"undefined"===typeof n.index?f.index:n.index,pointStart:Q(g&&g.series&&g.series.pointStart,n.pointStart,
|
|
|
-f.xData[0])},!e&&{data:f.options.data},d);e&&d.data&&(d.data=f.options.data);t=["group","markerGroup","dataLabelsGroup","transformGroup"].concat(t);t.forEach(function(a){t[a]=f[a];delete f[a]});if(m[p||r]){if(n=p!==f.type,f.remove(!1,!1,!1,!0),n)if(Object.setPrototypeOf)Object.setPrototypeOf(f,m[p||r].prototype);else{n=Object.hasOwnProperty.call(f,"hcEvents")&&f.hcEvents;for(z in q)f[z]=void 0;h(f,m[p||r].prototype);n?f.hcEvents=n:delete f.hcEvents}}else c(17,!0,k,{missingModuleFor:p||r});t.forEach(function(a){f[a]=
|
|
|
-t[a]});f.init(k,d);if(e&&this.points){var u=f.options;!1===u.visible?(y.graphic=1,y.dataLabel=1):f._hasPointLabels||(d=u.marker,p=u.dataLabels,d&&(!1===d.enabled||"symbol"in d)&&(y.graphic=1),p&&!1===p.enabled&&(y.dataLabel=1));this.points.forEach(function(a){a&&a.series&&(a.resolveColor(),Object.keys(y).length&&a.destroyElements(y),!1===u.showInLegend&&a.legendItem&&k.legend.destroyItem(a))},this)}f.initialType=r;k.linkSeries();G(this,"afterUpdate");Q(b,!0)&&k.redraw(e?void 0:!1)};e.prototype.setName=
|
|
|
-function(a){this.name=this.options.name=this.userOptions.name=a;this.chart.isDirtyLegend=!0};e.prototype.hasOptionChanged=function(a){var c=this.options[a],d=this.chart.options.plotOptions,b=this.userOptions[a];return b?c!==b:c!==Q(d&&d[this.type]&&d[this.type][a],d&&d.series&&d.series[a],c)};e.prototype.onMouseOver=function(){var a=this.chart,c=a.hoverSeries;a.pointer.setHoverChartIndex();if(c&&c!==this)c.onMouseOut();this.options.events.mouseOver&&G(this,"mouseOver");this.setState("hover");a.hoverSeries=
|
|
|
-this};e.prototype.onMouseOut=function(){var a=this.options,c=this.chart,d=c.tooltip,b=c.hoverPoint;c.hoverSeries=null;if(b)b.onMouseOut();this&&a.events.mouseOut&&G(this,"mouseOut");!d||this.stickyTracking||d.shared&&!this.noSharedTooltip||d.hide();c.series.forEach(function(a){a.setState("",!0)})};e.prototype.setState=function(a,c){var d=this,b=d.options,f=d.graph,h=b.inactiveOtherPoints,k=b.states,n=b.lineWidth,r=b.opacity,g=Q(k[a||"normal"]&&k[a||"normal"].animation,d.chart.options.chart.animation);
|
|
|
-b=0;a=a||"";if(d.state!==a&&([d.group,d.markerGroup,d.dataLabelsGroup].forEach(function(c){c&&(d.state&&c.removeClass("highcharts-series-"+d.state),a&&c.addClass("highcharts-series-"+a))}),d.state=a,!d.chart.styledMode)){if(k[a]&&!1===k[a].enabled)return;a&&(n=k[a].lineWidth||n+(k[a].lineWidthPlus||0),r=Q(k[a].opacity,r));if(f&&!f.dashstyle)for(k={"stroke-width":n},f.animate(k,g);d["zone-graph-"+b];)d["zone-graph-"+b].animate(k,g),b+=1;h||[d.group,d.markerGroup,d.dataLabelsGroup,d.labelBySeries].forEach(function(a){a&&
|
|
|
-a.animate({opacity:r},g)})}c&&h&&d.points&&d.setAllPointsToState(a||void 0)};e.prototype.setAllPointsToState=function(a){this.points.forEach(function(c){c.setState&&c.setState(a)})};e.prototype.setVisible=function(a,c){var d=this,b=d.chart,f=d.legendItem,h=b.options.chart.ignoreHiddenSeries,k=d.visible;var n=(d.visible=a=d.options.visible=d.userOptions.visible="undefined"===typeof a?!k:a)?"show":"hide";["group","dataLabelsGroup","markerGroup","tracker","tt"].forEach(function(a){if(d[a])d[a][n]()});
|
|
|
-if(b.hoverSeries===d||(b.hoverPoint&&b.hoverPoint.series)===d)d.onMouseOut();f&&b.legend.colorizeItem(d,a);d.isDirty=!0;d.options.stacking&&b.series.forEach(function(a){a.options.stacking&&a.visible&&(a.isDirty=!0)});d.linkedSeries.forEach(function(c){c.setVisible(a,!1)});h&&(b.isDirtyBox=!0);G(d,n);!1!==c&&b.redraw()};e.prototype.show=function(){this.setVisible(!0)};e.prototype.hide=function(){this.setVisible(!1)};e.prototype.select=function(a){this.selected=a=this.options.selected="undefined"===
|
|
|
-typeof a?!this.selected:a;this.checkbox&&(this.checkbox.checked=a);G(this,a?"select":"unselect")};e.defaultOptions={lineWidth:2,allowPointSelect:!1,crisp:!0,showCheckbox:!1,animation:{duration:1E3},events:{},marker:{enabledThreshold:2,lineColor:H.backgroundColor,lineWidth:0,radius:4,states:{normal:{animation:!0},hover:{animation:{duration:50},enabled:!0,radiusPlus:2,lineWidthPlus:1},select:{fillColor:H.neutralColor20,lineColor:H.neutralColor100,lineWidth:2}}},point:{events:{}},dataLabels:{animation:{},
|
|
|
-align:"center",defer:!0,formatter:function(){var a=this.series.chart.numberFormatter;return"number"!==typeof this.y?"":a(this.y,-1)},padding:5,style:{fontSize:"11px",fontWeight:"bold",color:"contrast",textOutline:"1px contrast"},verticalAlign:"bottom",x:0,y:0},cropThreshold:300,opacity:1,pointRange:0,softThreshold:!0,states:{normal:{animation:!0},hover:{animation:{duration:50},lineWidthPlus:1,marker:{},halo:{size:10,opacity:.25}},select:{animation:{duration:0}},inactive:{animation:{duration:50},opacity:.2}},
|
|
|
-stickyTracking:!0,turboThreshold:1E3,findNearestPointBy:"x"};return e}();h(e.prototype,{axisTypes:["xAxis","yAxis"],coll:"series",colorCounter:0,cropShoulder:1,directTouch:!1,drawLegendSymbol:F.drawLineMarker,isCartesian:!0,kdAxisArray:["clientX","plotY"],parallelArrays:["x","y"],pointClass:J,requireSorting:!0,sorted:!0});D.series=e;"";"";return e});O(e,"Extensions/ScrollablePlotArea.js",[e["Core/Animation/AnimationUtilities.js"],e["Core/Axis/Axis.js"],e["Core/Chart/Chart.js"],e["Core/Series/Series.js"],
|
|
|
-e["Core/Globals.js"],e["Core/Utilities.js"]],function(e,l,F,C,H,J){var D=e.stop,E=J.addEvent,A=J.createElement,x=J.merge,g=J.pick;"";E(F,"afterSetChartSize",function(g){var f=this.options.chart.scrollablePlotArea,e=f&&f.minWidth;f=f&&f.minHeight;if(!this.renderer.forExport){if(e){if(this.scrollablePixelsX=e=Math.max(0,e-this.chartWidth)){this.scrollablePlotBox=x(this.plotBox);this.plotWidth+=e;this.inverted?(this.clipBox.height+=e,this.plotBox.height+=e):(this.clipBox.width+=e,this.plotBox.width+=
|
|
|
-e);var b={1:{name:"right",value:e}}}}else f&&(this.scrollablePixelsY=e=Math.max(0,f-this.chartHeight))&&(this.scrollablePlotBox=x(this.plotBox),this.plotHeight+=e,this.inverted?(this.clipBox.width+=e,this.plotBox.width+=e):(this.clipBox.height+=e,this.plotBox.height+=e),b={2:{name:"bottom",value:e}});b&&!g.skipAxes&&this.axes.forEach(function(f){b[f.side]?f.getPlotLinePath=function(){var g=b[f.side].name,e=this[g];this[g]=e-b[f.side].value;var m=H.Axis.prototype.getPlotLinePath.apply(this,arguments);
|
|
|
-this[g]=e;return m}:(f.setAxisSize(),f.setAxisTranslation())})}});E(F,"render",function(){this.scrollablePixelsX||this.scrollablePixelsY?(this.setUpScrolling&&this.setUpScrolling(),this.applyFixed()):this.fixedDiv&&this.applyFixed()});F.prototype.setUpScrolling=function(){var g=this,f={WebkitOverflowScrolling:"touch",overflowX:"hidden",overflowY:"hidden"};this.scrollablePixelsX&&(f.overflowX="auto");this.scrollablePixelsY&&(f.overflowY="auto");this.scrollingParent=A("div",{className:"highcharts-scrolling-parent"},
|
|
|
-{position:"relative"},this.renderTo);this.scrollingContainer=A("div",{className:"highcharts-scrolling"},f,this.scrollingParent);E(this.scrollingContainer,"scroll",function(){g.pointer&&delete g.pointer.chartPosition});this.innerContainer=A("div",{className:"highcharts-inner-container"},null,this.scrollingContainer);this.innerContainer.appendChild(this.container);this.setUpScrolling=null};F.prototype.moveFixedElements=function(){var g=this.container,f=this.fixedRenderer,e=".highcharts-contextbutton .highcharts-credits .highcharts-legend .highcharts-legend-checkbox .highcharts-navigator-series .highcharts-navigator-xaxis .highcharts-navigator-yaxis .highcharts-navigator .highcharts-reset-zoom .highcharts-scrollbar .highcharts-subtitle .highcharts-title".split(" "),
|
|
|
-b;this.scrollablePixelsX&&!this.inverted?b=".highcharts-yaxis":this.scrollablePixelsX&&this.inverted?b=".highcharts-xaxis":this.scrollablePixelsY&&!this.inverted?b=".highcharts-xaxis":this.scrollablePixelsY&&this.inverted&&(b=".highcharts-yaxis");b&&e.push(b+":not(.highcharts-radial-axis)",b+"-labels:not(.highcharts-radial-axis-labels)");e.forEach(function(b){[].forEach.call(g.querySelectorAll(b),function(b){(b.namespaceURI===f.SVG_NS?f.box:f.box.parentNode).appendChild(b);b.style.pointerEvents="auto"})})};
|
|
|
-F.prototype.applyFixed=function(){var e=this,f,w,b,m=!this.fixedDiv,t=this.options.chart,I=t.scrollablePlotArea;m?(this.fixedDiv=A("div",{className:"highcharts-fixed"},{position:"absolute",overflow:"hidden",pointerEvents:"none",zIndex:((null===(f=t.style)||void 0===f?void 0:f.zIndex)||0)+2,top:0},null,!0),null===(w=this.scrollingContainer)||void 0===w?void 0:w.parentNode.insertBefore(this.fixedDiv,this.scrollingContainer),this.renderTo.style.overflow="visible",this.fixedRenderer=f=new H.Renderer(this.fixedDiv,
|
|
|
-this.chartWidth,this.chartHeight,null===(b=this.options.chart)||void 0===b?void 0:b.style),this.scrollableMask=f.path().attr({fill:this.options.chart.backgroundColor||"#fff","fill-opacity":g(I.opacity,.85),zIndex:-1}).addClass("highcharts-scrollable-mask").add(),E(this,"afterShowResetZoom",this.moveFixedElements),E(this,"afterLayOutTitles",this.moveFixedElements),E(l,"afterInit",function(){e.scrollableDirty=!0}),E(C,"show",function(){e.scrollableDirty=!0})):this.fixedRenderer.setSize(this.chartWidth,
|
|
|
-this.chartHeight);if(this.scrollableDirty||m)this.scrollableDirty=!1,this.moveFixedElements();b=this.chartWidth+(this.scrollablePixelsX||0);f=this.chartHeight+(this.scrollablePixelsY||0);D(this.container);this.container.style.width=b+"px";this.container.style.height=f+"px";this.renderer.boxWrapper.attr({width:b,height:f,viewBox:[0,0,b,f].join(" ")});this.chartBackground.attr({width:b,height:f});this.scrollingContainer.style.height=this.chartHeight+"px";m&&(I.scrollPositionX&&(this.scrollingContainer.scrollLeft=
|
|
|
-this.scrollablePixelsX*I.scrollPositionX),I.scrollPositionY&&(this.scrollingContainer.scrollTop=this.scrollablePixelsY*I.scrollPositionY));f=this.axisOffset;m=this.plotTop-f[0]-1;I=this.plotLeft-f[3]-1;b=this.plotTop+this.plotHeight+f[2]+1;f=this.plotLeft+this.plotWidth+f[1]+1;w=this.plotLeft+this.plotWidth-(this.scrollablePixelsX||0);t=this.plotTop+this.plotHeight-(this.scrollablePixelsY||0);m=this.scrollablePixelsX?[["M",0,m],["L",this.plotLeft-1,m],["L",this.plotLeft-1,b],["L",0,b],["Z"],["M",
|
|
|
-w,m],["L",this.chartWidth,m],["L",this.chartWidth,b],["L",w,b],["Z"]]:this.scrollablePixelsY?[["M",I,0],["L",I,this.plotTop-1],["L",f,this.plotTop-1],["L",f,0],["Z"],["M",I,t],["L",I,this.chartHeight],["L",f,this.chartHeight],["L",f,t],["Z"]]:[["M",0,0]];"adjustHeight"!==this.redrawTrigger&&this.scrollableMask.attr({d:m})}});O(e,"Core/Axis/StackingAxis.js",[e["Core/Animation/AnimationUtilities.js"],e["Core/Utilities.js"]],function(e,l){var G=e.getDeferredAnimation,C=l.addEvent,H=l.destroyObjectProperties,
|
|
|
-J=l.fireEvent,D=l.objectEach,E=l.pick,A=function(){function e(g){this.oldStacks={};this.stacks={};this.stacksTouched=0;this.axis=g}e.prototype.buildStacks=function(){var g=this.axis,e=g.series,f=E(g.options.reversedStacks,!0),w=e.length,b;if(!g.isXAxis){this.usePercentage=!1;for(b=w;b--;){var m=e[f?b:w-b-1];m.setStackedPoints();m.setGroupedPoints()}for(b=0;b<w;b++)e[b].modifyStacks();J(g,"afterBuildStacks")}};e.prototype.cleanStacks=function(){if(!this.axis.isXAxis){if(this.oldStacks)var g=this.stacks=
|
|
|
-this.oldStacks;D(g,function(g){D(g,function(f){f.cumulative=f.total})})}};e.prototype.resetStacks=function(){var g=this,e=g.stacks;g.axis.isXAxis||D(e,function(f){D(f,function(e,b){e.touched<g.stacksTouched?(e.destroy(),delete f[b]):(e.total=null,e.cumulative=null)})})};e.prototype.renderStackTotals=function(){var g=this.axis,e=g.chart,f=e.renderer,w=this.stacks;g=G(e,g.options.stackLabels.animation);var b=this.stackTotalGroup=this.stackTotalGroup||f.g("stack-labels").attr({visibility:"visible",zIndex:6,
|
|
|
-opacity:0}).add();b.translate(e.plotLeft,e.plotTop);D(w,function(f){D(f,function(f){f.render(b)})});b.animate({opacity:1},g)};return e}();return function(){function e(){}e.compose=function(g){C(g,"init",e.onInit);C(g,"destroy",e.onDestroy)};e.onDestroy=function(){var g=this.stacking;if(g){var e=g.stacks;D(e,function(f,g){H(f);e[g]=null});g&&g.stackTotalGroup&&g.stackTotalGroup.destroy()}};e.onInit=function(){this.stacking||(this.stacking=new A(this))};return e}()});O(e,"Extensions/Stacking.js",[e["Core/Axis/Axis.js"],
|
|
|
-e["Core/Chart/Chart.js"],e["Core/Globals.js"],e["Core/Series/Series.js"],e["Core/Axis/StackingAxis.js"],e["Core/Utilities.js"]],function(e,l,F,C,H,J){var D=J.correctFloat,E=J.defined,A=J.destroyObjectProperties,x=J.format,g=J.isArray,u=J.isNumber,f=J.pick;"";var w=function(){function b(b,f,g,e,p){var a=b.chart.inverted;this.axis=b;this.isNegative=g;this.options=f=f||{};this.x=e;this.total=null;this.points={};this.hasValidPoints=!1;this.stack=p;this.rightCliff=this.leftCliff=0;this.alignOptions={align:f.align||
|
|
|
-(a?g?"left":"right":"center"),verticalAlign:f.verticalAlign||(a?"middle":g?"bottom":"top"),y:f.y,x:f.x};this.textAlign=f.textAlign||(a?g?"right":"left":"center")}b.prototype.destroy=function(){A(this,this.axis)};b.prototype.render=function(b){var g=this.axis.chart,e=this.options,m=e.format;m=m?x(m,this,g):e.formatter.call(this);this.label?this.label.attr({text:m,visibility:"hidden"}):(this.label=g.renderer.label(m,null,null,e.shape,null,null,e.useHTML,!1,"stack-labels"),m={r:e.borderRadius||0,text:m,
|
|
|
-rotation:e.rotation,padding:f(e.padding,5),visibility:"hidden"},g.styledMode||(m.fill=e.backgroundColor,m.stroke=e.borderColor,m["stroke-width"]=e.borderWidth,this.label.css(e.style)),this.label.attr(m),this.label.added||this.label.add(b));this.label.labelrank=g.plotSizeY};b.prototype.setOffset=function(b,g,e,q,p){var a=this.axis,k=a.chart;q=a.translate(a.stacking.usePercentage?100:q?q:this.total,0,0,0,1);e=a.translate(e?e:0);e=E(q)&&Math.abs(q-e);b=f(p,k.xAxis[0].translate(this.x))+b;a=E(q)&&this.getStackBox(k,
|
|
|
-this,b,q,g,e,a);g=this.label;e=this.isNegative;b="justify"===f(this.options.overflow,"justify");var d=this.textAlign;g&&a&&(p=g.getBBox(),q=g.padding,d="left"===d?k.inverted?-q:q:"right"===d?p.width:k.inverted&&"center"===d?p.width/2:k.inverted?e?p.width+q:-q:p.width/2,e=k.inverted?p.height/2:e?-q:p.height,this.alignOptions.x=f(this.options.x,0),this.alignOptions.y=f(this.options.y,0),a.x-=d,a.y-=e,g.align(this.alignOptions,null,a),k.isInsidePlot(g.alignAttr.x+d-this.alignOptions.x,g.alignAttr.y+
|
|
|
-e-this.alignOptions.y)?g.show():(g.alignAttr.y=-9999,b=!1),b&&C.prototype.justifyDataLabel.call(this.axis,g,this.alignOptions,g.alignAttr,p,a),g.attr({x:g.alignAttr.x,y:g.alignAttr.y}),f(!b&&this.options.crop,!0)&&((k=u(g.x)&&u(g.y)&&k.isInsidePlot(g.x-q+g.width,g.y)&&k.isInsidePlot(g.x+q,g.y))||g.hide()))};b.prototype.getStackBox=function(b,f,g,e,p,a,k){var d=f.axis.reversed,m=b.inverted,c=k.height+k.pos-(m?b.plotLeft:b.plotTop);f=f.isNegative&&!d||!f.isNegative&&d;return{x:m?f?e-k.right:e-a+k.pos-
|
|
|
-b.plotLeft:g+b.xAxis[0].transB-b.plotLeft,y:m?k.height-g-p:f?c-e-a:c-e,width:m?a:p,height:m?p:a}};return b}();l.prototype.getStacks=function(){var b=this,g=b.inverted;b.yAxis.forEach(function(b){b.stacking&&b.stacking.stacks&&b.hasVisibleSeries&&(b.stacking.oldStacks=b.stacking.stacks)});b.series.forEach(function(e){var m=e.xAxis&&e.xAxis.options||{};!e.options.stacking||!0!==e.visible&&!1!==b.options.chart.ignoreHiddenSeries||(e.stackKey=[e.type,f(e.options.stack,""),g?m.top:m.left,g?m.height:m.width].join())})};
|
|
|
-H.compose(e);C.prototype.setGroupedPoints=function(){this.options.centerInCategory&&(this.is("column")||this.is("columnrange"))&&!this.options.stacking&&1<this.chart.series.length&&C.prototype.setStackedPoints.call(this,"group")};C.prototype.setStackedPoints=function(b){var e=b||this.options.stacking;if(e&&(!0===this.visible||!1===this.chart.options.chart.ignoreHiddenSeries)){var t=this.processedXData,u=this.processedYData,q=[],p=u.length,a=this.options,k=a.threshold,d=f(a.startFromThreshold&&k,0);
|
|
|
-a=a.stack;b=b?this.type+","+e:this.stackKey;var y="-"+b,c=this.negStacks,h=this.yAxis,l=h.stacking.stacks,x=h.stacking.oldStacks,A,n;h.stacking.stacksTouched+=1;for(n=0;n<p;n++){var K=t[n];var r=u[n];var z=this.getStackIndicator(z,K,this.index);var L=z.key;var B=(A=c&&r<(d?0:k))?y:b;l[B]||(l[B]={});l[B][K]||(x[B]&&x[B][K]?(l[B][K]=x[B][K],l[B][K].total=null):l[B][K]=new w(h,h.options.stackLabels,A,K,a));B=l[B][K];null!==r?(B.points[L]=B.points[this.index]=[f(B.cumulative,d)],E(B.cumulative)||(B.base=
|
|
|
-L),B.touched=h.stacking.stacksTouched,0<z.index&&!1===this.singleStacks&&(B.points[L][0]=B.points[this.index+","+K+",0"][0])):B.points[L]=B.points[this.index]=null;"percent"===e?(A=A?b:y,c&&l[A]&&l[A][K]?(A=l[A][K],B.total=A.total=Math.max(A.total,B.total)+Math.abs(r)||0):B.total=D(B.total+(Math.abs(r)||0))):"group"===e?(g(r)&&(r=r[0]),null!==r&&(B.total=(B.total||0)+1)):B.total=D(B.total+(r||0));B.cumulative="group"===e?(B.total||1)-1:f(B.cumulative,d)+(r||0);null!==r&&(B.points[L].push(B.cumulative),
|
|
|
-q[n]=B.cumulative,B.hasValidPoints=!0)}"percent"===e&&(h.stacking.usePercentage=!0);"group"!==e&&(this.stackedYData=q);h.stacking.oldStacks={}}};C.prototype.modifyStacks=function(){var b=this,f=b.stackKey,g=b.yAxis.stacking.stacks,e=b.processedXData,q,p=b.options.stacking;b[p+"Stacker"]&&[f,"-"+f].forEach(function(a){for(var f=e.length,d,m;f--;)if(d=e[f],q=b.getStackIndicator(q,d,b.index,a),m=(d=g[a]&&g[a][d])&&d.points[q.key])b[p+"Stacker"](m,d,f)})};C.prototype.percentStacker=function(b,f,g){f=
|
|
|
-f.total?100/f.total:0;b[0]=D(b[0]*f);b[1]=D(b[1]*f);this.stackedYData[g]=b[1]};C.prototype.getStackIndicator=function(b,f,g,e){!E(b)||b.x!==f||e&&b.key!==e?b={x:f,index:0,key:e}:b.index++;b.key=[g,f,b.index].join();return b};F.StackItem=w;return F.StackItem});O(e,"Series/Line/LineSeries.js",[e["Core/Color/Palette.js"],e["Core/Series/Series.js"],e["Core/Series/SeriesRegistry.js"],e["Core/Utilities.js"]],function(e,l,F,C){var G=this&&this.__extends||function(){var e=function(l,x){e=Object.setPrototypeOf||
|
|
|
-{__proto__:[]}instanceof Array&&function(g,e){g.__proto__=e}||function(g,e){for(var f in e)e.hasOwnProperty(f)&&(g[f]=e[f])};return e(l,x)};return function(l,x){function g(){this.constructor=l}e(l,x);l.prototype=null===x?Object.create(x):(g.prototype=x.prototype,new g)}}(),J=C.defined,D=C.merge;C=function(E){function A(){var e=null!==E&&E.apply(this,arguments)||this;e.data=void 0;e.options=void 0;e.points=void 0;return e}G(A,E);A.prototype.drawGraph=function(){var l=this,g=this.options,u=(this.gappedPath||
|
|
|
-this.getGraphPath).call(this),f=this.chart.styledMode,w=[["graph","highcharts-graph"]];f||w[0].push(g.lineColor||this.color||e.neutralColor20,g.dashStyle);w=l.getZonesGraphs(w);w.forEach(function(b,e){var m=b[0],w=l[m],q=w?"animate":"attr";w?(w.endX=l.preventGraphAnimation?null:u.xMap,w.animate({d:u})):u.length&&(l[m]=w=l.chart.renderer.path(u).addClass(b[1]).attr({zIndex:1}).add(l.group));w&&!f&&(m={stroke:b[2],"stroke-width":g.lineWidth,fill:l.fillGraph&&l.color||"none"},b[3]?m.dashstyle=b[3]:"square"!==
|
|
|
-g.linecap&&(m["stroke-linecap"]=m["stroke-linejoin"]="round"),w[q](m).shadow(2>e&&g.shadow));w&&(w.startX=u.xMap,w.isArea=u.isArea)})};A.prototype.getGraphPath=function(e,g,u){var f=this,w=f.options,b=w.step,m,t=[],l=[],q;e=e||f.points;(m=e.reversed)&&e.reverse();(b={right:1,center:2}[b]||b&&3)&&m&&(b=4-b);e=this.getValidPoints(e,!1,!(w.connectNulls&&!g&&!u));e.forEach(function(p,a){var k=p.plotX,d=p.plotY,m=e[a-1];(p.leftCliff||m&&m.rightCliff)&&!u&&(q=!0);p.isNull&&!J(g)&&0<a?q=!w.connectNulls:
|
|
|
-p.isNull&&!g?q=!0:(0===a||q?a=[["M",p.plotX,p.plotY]]:f.getPointSpline?a=[f.getPointSpline(e,p,a)]:b?(a=1===b?[["L",m.plotX,d]]:2===b?[["L",(m.plotX+k)/2,m.plotY],["L",(m.plotX+k)/2,d]]:[["L",k,m.plotY]],a.push(["L",k,d])):a=[["L",k,d]],l.push(p.x),b&&(l.push(p.x),2===b&&l.push(p.x)),t.push.apply(t,a),q=!1)});t.xMap=l;return f.graphPath=t};A.prototype.getZonesGraphs=function(e){this.zones.forEach(function(g,u){u=["zone-graph-"+u,"highcharts-graph highcharts-zone-graph-"+u+" "+(g.className||"")];this.chart.styledMode||
|
|
|
-u.push(g.color||this.color,g.dashStyle||this.options.dashStyle);e.push(u)},this);return e};A.defaultOptions=D(l.defaultOptions,{});return A}(l);F.registerSeriesType("line",C);"";return C});O(e,"Series/Area/AreaSeries.js",[e["Core/Color/Color.js"],e["Mixins/LegendSymbol.js"],e["Core/Series/SeriesRegistry.js"],e["Core/Utilities.js"]],function(e,l,F,C){var G=this&&this.__extends||function(){var g=function(e,f){g=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,b){f.__proto__=b}||function(f,
|
|
|
-b){for(var g in b)b.hasOwnProperty(g)&&(f[g]=b[g])};return g(e,f)};return function(e,f){function u(){this.constructor=e}g(e,f);e.prototype=null===f?Object.create(f):(u.prototype=f.prototype,new u)}}(),J=e.parse,D=F.seriesTypes.line;e=C.extend;var E=C.merge,A=C.objectEach,x=C.pick;C=function(g){function e(){var f=null!==g&&g.apply(this,arguments)||this;f.data=void 0;f.options=void 0;f.points=void 0;return f}G(e,g);e.prototype.drawGraph=function(){this.areaPath=[];g.prototype.drawGraph.apply(this);
|
|
|
-var f=this,e=this.areaPath,b=this.options,m=[["area","highcharts-area",this.color,b.fillColor]];this.zones.forEach(function(g,e){m.push(["zone-area-"+e,"highcharts-area highcharts-zone-area-"+e+" "+g.className,g.color||f.color,g.fillColor||b.fillColor])});m.forEach(function(g){var m=g[0],q=f[m],p=q?"animate":"attr",a={};q?(q.endX=f.preventGraphAnimation?null:e.xMap,q.animate({d:e})):(a.zIndex=0,q=f[m]=f.chart.renderer.path(e).addClass(g[1]).add(f.group),q.isArea=!0);f.chart.styledMode||(a.fill=x(g[3],
|
|
|
-J(g[2]).setOpacity(x(b.fillOpacity,.75)).get()));q[p](a);q.startX=e.xMap;q.shiftUnit=b.step?2:1})};e.prototype.getGraphPath=function(f){var g=D.prototype.getGraphPath,b=this.options,e=b.stacking,t=this.yAxis,u,q=[],p=[],a=this.index,k=t.stacking.stacks[this.stackKey],d=b.threshold,y=Math.round(t.getThreshold(b.threshold));b=x(b.connectNulls,"percent"===e);var c=function(c,b,h){var g=f[c];c=e&&k[g.x].points[a];var n=g[h+"Null"]||0;h=g[h+"Cliff"]||0;g=!0;if(h||n){var m=(n?c[0]:c[1])+h;var u=c[0]+h;
|
|
|
-g=!!n}else!e&&f[b]&&f[b].isNull&&(m=u=d);"undefined"!==typeof m&&(p.push({plotX:l,plotY:null===m?y:t.getThreshold(m),isNull:g,isCliff:!0}),q.push({plotX:l,plotY:null===u?y:t.getThreshold(u),doCurve:!1}))};f=f||this.points;e&&(f=this.getStackPoints(f));for(u=0;u<f.length;u++){e||(f[u].leftCliff=f[u].rightCliff=f[u].leftNull=f[u].rightNull=void 0);var h=f[u].isNull;var l=x(f[u].rectPlotX,f[u].plotX);var A=e?x(f[u].yBottom,y):y;if(!h||b)b||c(u,u-1,"left"),h&&!e&&b||(p.push(f[u]),q.push({x:u,plotX:l,
|
|
|
-plotY:A})),b||c(u,u+1,"right")}u=g.call(this,p,!0,!0);q.reversed=!0;h=g.call(this,q,!0,!0);(A=h[0])&&"M"===A[0]&&(h[0]=["L",A[1],A[2]]);h=u.concat(h);g=g.call(this,p,!1,b);h.xMap=u.xMap;this.areaPath=h;return g};e.prototype.getStackPoints=function(f){var g=[],b=[],e=this.xAxis,t=this.yAxis,u=t.stacking.stacks[this.stackKey],q={},p=this.index,a=t.series,k=a.length,d=x(t.options.reversedStacks,!0)?1:-1,y;f=f||this.points;if(this.options.stacking){for(y=0;y<f.length;y++)f[y].leftNull=f[y].rightNull=
|
|
|
-void 0,q[f[y].x]=f[y];A(u,function(a,c){null!==a.total&&b.push(c)});b.sort(function(a,c){return a-c});var c=a.map(function(a){return a.visible});b.forEach(function(a,f){var h=0,m,n;if(q[a]&&!q[a].isNull)g.push(q[a]),[-1,1].forEach(function(h){var g=1===h?"rightNull":"leftNull",e=0,t=u[b[f+h]];if(t)for(y=p;0<=y&&y<k;)m=t.points[y],m||(y===p?q[a][g]=!0:c[y]&&(n=u[a].points[y])&&(e-=n[1]-n[0])),y+=d;q[a][1===h?"rightCliff":"leftCliff"]=e});else{for(y=p;0<=y&&y<k;){if(m=u[a].points[y]){h=m[1];break}y+=
|
|
|
-d}h=t.translate(h,0,1,0,1);g.push({isNull:!0,plotX:e.translate(a,0,0,0,1),x:a,plotY:h,yBottom:h})}})}return g};e.defaultOptions=E(D.defaultOptions,{threshold:0});return e}(D);e(C.prototype,{singleStacks:!1,drawLegendSymbol:l.drawRectangle});F.registerSeriesType("area",C);"";return C});O(e,"Series/Spline/SplineSeries.js",[e["Core/Series/SeriesRegistry.js"],e["Core/Utilities.js"]],function(e,l){var G=this&&this.__extends||function(){var e=function(l,A){e=Object.setPrototypeOf||{__proto__:[]}instanceof
|
|
|
-Array&&function(e,g){e.__proto__=g}||function(e,g){for(var u in g)g.hasOwnProperty(u)&&(e[u]=g[u])};return e(l,A)};return function(l,A){function x(){this.constructor=l}e(l,A);l.prototype=null===A?Object.create(A):(x.prototype=A.prototype,new x)}}(),C=e.seriesTypes.line,H=l.merge,J=l.pick;l=function(e){function l(){var l=null!==e&&e.apply(this,arguments)||this;l.data=void 0;l.options=void 0;l.points=void 0;return l}G(l,e);l.prototype.getPointSpline=function(e,l,g){var u=l.plotX||0,f=l.plotY||0,w=e[g-
|
|
|
-1];g=e[g+1];if(w&&!w.isNull&&!1!==w.doCurve&&!l.isCliff&&g&&!g.isNull&&!1!==g.doCurve&&!l.isCliff){e=w.plotY||0;var b=g.plotX||0;g=g.plotY||0;var m=0;var t=(1.5*u+(w.plotX||0))/2.5;var x=(1.5*f+e)/2.5;b=(1.5*u+b)/2.5;var q=(1.5*f+g)/2.5;b!==t&&(m=(q-x)*(b-u)/(b-t)+f-q);x+=m;q+=m;x>e&&x>f?(x=Math.max(e,f),q=2*f-x):x<e&&x<f&&(x=Math.min(e,f),q=2*f-x);q>g&&q>f?(q=Math.max(g,f),x=2*f-q):q<g&&q<f&&(q=Math.min(g,f),x=2*f-q);l.rightContX=b;l.rightContY=q}l=["C",J(w.rightContX,w.plotX,0),J(w.rightContY,w.plotY,
|
|
|
-0),J(t,u,0),J(x,f,0),u,f];w.rightContX=w.rightContY=void 0;return l};l.defaultOptions=H(C.defaultOptions);return l}(C);e.registerSeriesType("spline",l);"";return l});O(e,"Series/AreaSpline/AreaSplineSeries.js",[e["Series/Area/AreaSeries.js"],e["Series/Spline/SplineSeries.js"],e["Mixins/LegendSymbol.js"],e["Core/Series/SeriesRegistry.js"],e["Core/Utilities.js"]],function(e,l,F,C,H){var G=this&&this.__extends||function(){var e=function(g,u){e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,
|
|
|
-g){f.__proto__=g}||function(f,g){for(var b in g)g.hasOwnProperty(b)&&(f[b]=g[b])};return e(g,u)};return function(g,u){function f(){this.constructor=g}e(g,u);g.prototype=null===u?Object.create(u):(f.prototype=u.prototype,new f)}}(),D=e.prototype,E=H.extend,A=H.merge;H=function(x){function g(){var g=null!==x&&x.apply(this,arguments)||this;g.data=void 0;g.points=void 0;g.options=void 0;return g}G(g,x);g.defaultOptions=A(l.defaultOptions,e.defaultOptions);return g}(l);E(H.prototype,{getGraphPath:D.getGraphPath,
|
|
|
-getStackPoints:D.getStackPoints,drawGraph:D.drawGraph,drawLegendSymbol:F.drawRectangle});C.registerSeriesType("areaspline",H);"";return H});O(e,"Series/Column/ColumnSeries.js",[e["Core/Animation/AnimationUtilities.js"],e["Core/Color/Color.js"],e["Core/Globals.js"],e["Mixins/LegendSymbol.js"],e["Core/Color/Palette.js"],e["Core/Series/Series.js"],e["Core/Series/SeriesRegistry.js"],e["Core/Utilities.js"]],function(e,l,F,C,H,J,D,E){var A=this&&this.__extends||function(){var a=function(d,c){a=Object.setPrototypeOf||
|
|
|
-{__proto__:[]}instanceof Array&&function(a,c){a.__proto__=c}||function(a,c){for(var d in c)c.hasOwnProperty(d)&&(a[d]=c[d])};return a(d,c)};return function(d,c){function b(){this.constructor=d}a(d,c);d.prototype=null===c?Object.create(c):(b.prototype=c.prototype,new b)}}(),x=e.animObject,g=l.parse,u=F.hasTouch;e=F.noop;var f=E.clamp,w=E.css,b=E.defined,m=E.extend,t=E.fireEvent,I=E.isArray,q=E.isNumber,p=E.merge,a=E.pick,k=E.objectEach;E=function(d){function e(){var a=null!==d&&d.apply(this,arguments)||
|
|
|
-this;a.borderWidth=void 0;a.data=void 0;a.group=void 0;a.options=void 0;a.points=void 0;return a}A(e,d);e.prototype.animate=function(a){var c=this,d=this.yAxis,b=c.options,k=this.chart.inverted,g={},e=k?"translateX":"translateY";if(a)g.scaleY=.001,a=f(d.toPixels(b.threshold),d.pos,d.pos+d.len),k?g.translateX=a-d.len:g.translateY=a,c.clipBox&&c.setClip(),c.group.attr(g);else{var r=c.group.attr(e);c.group.animate({scaleY:1},m(x(c.options.animation),{step:function(a,b){c.group&&(g[e]=r+b.pos*(d.pos-
|
|
|
-r),c.group.attr(g))}}))}};e.prototype.init=function(a,b){d.prototype.init.apply(this,arguments);var c=this;a=c.chart;a.hasRendered&&a.series.forEach(function(a){a.type===c.type&&(a.isDirty=!0)})};e.prototype.getColumnMetrics=function(){var c=this,d=c.options,b=c.xAxis,f=c.yAxis,k=b.options.reversedStacks;k=b.reversed&&!k||!b.reversed&&k;var g,e={},r=0;!1===d.grouping?r=1:c.chart.series.forEach(function(a){var d=a.yAxis,b=a.options;if(a.type===c.type&&(a.visible||!c.chart.options.chart.ignoreHiddenSeries)&&
|
|
|
-f.len===d.len&&f.pos===d.pos){if(b.stacking&&"group"!==b.stacking){g=a.stackKey;"undefined"===typeof e[g]&&(e[g]=r++);var k=e[g]}else!1!==b.grouping&&(k=r++);a.columnIndex=k}});var p=Math.min(Math.abs(b.transA)*(b.ordinal&&b.ordinal.slope||d.pointRange||b.closestPointRange||b.tickInterval||1),b.len),m=p*d.groupPadding,q=(p-2*m)/(r||1);d=Math.min(d.maxPointWidth||b.len,a(d.pointWidth,q*(1-2*d.pointPadding)));c.columnMetrics={width:d,offset:(q-d)/2+(m+((c.columnIndex||0)+(k?1:0))*q-p/2)*(k?-1:1),paddedWidth:q,
|
|
|
-columnCount:r};return c.columnMetrics};e.prototype.crispCol=function(a,d,b,f){var c=this.chart,k=this.borderWidth,h=-(k%2?.5:0);k=k%2?.5:1;c.inverted&&c.renderer.isVML&&(k+=1);this.options.crisp&&(b=Math.round(a+b)+h,a=Math.round(a)+h,b-=a);f=Math.round(d+f)+k;h=.5>=Math.abs(d)&&.5<f;d=Math.round(d)+k;f-=d;h&&f&&(--d,f+=1);return{x:a,y:d,width:b,height:f}};e.prototype.adjustForMissingColumns=function(a,d,b,f){var c=this,h=this.options.stacking;if(!b.isNull&&1<f.columnCount){var g=0,e=0;k(this.yAxis.stacking&&
|
|
|
-this.yAxis.stacking.stacks,function(a){if("number"===typeof b.x&&(a=a[b.x.toString()])){var d=a.points[c.index],f=a.total;h?(d&&(g=e),a.hasValidPoints&&e++):I(d)&&(g=d[1],e=f||0)}});a=(b.plotX||0)+((e-1)*f.paddedWidth+d)/2-d-g*f.paddedWidth}return a};e.prototype.translate=function(){var c=this,d=c.chart,k=c.options,g=c.dense=2>c.closestPointRange*c.xAxis.transA;g=c.borderWidth=a(k.borderWidth,g?0:1);var e=c.xAxis,n=c.yAxis,p=k.threshold,r=c.translatedThreshold=n.getThreshold(p),m=a(k.minPointLength,
|
|
|
-5),t=c.getColumnMetrics(),u=t.width,y=c.barW=Math.max(u,1+2*g),v=c.pointXOffset=t.offset,l=c.dataMin,w=c.dataMax;d.inverted&&(r-=.5);k.pointPadding&&(y=Math.ceil(y));J.prototype.translate.apply(c);c.points.forEach(function(h){var g=a(h.yBottom,r),z=999+Math.abs(g),B=u,L=h.plotX||0;z=f(h.plotY,-z,n.len+z);var K=L+v,x=y,I=Math.min(z,g),A=Math.max(z,g)-I;if(m&&Math.abs(A)<m){A=m;var M=!n.reversed&&!h.negative||n.reversed&&h.negative;q(p)&&q(w)&&h.y===p&&w<=p&&(n.min||0)<p&&(l!==w||(n.max||0)<=p)&&(M=
|
|
|
-!M);I=Math.abs(I-r)>m?g-m:r-(M?m:0)}b(h.options.pointWidth)&&(B=x=Math.ceil(h.options.pointWidth),K-=Math.round((B-u)/2));k.centerInCategory&&(K=c.adjustForMissingColumns(K,B,h,t));h.barX=K;h.pointWidth=B;h.tooltipPos=d.inverted?[f(n.len+n.pos-d.plotLeft-z,n.pos-d.plotLeft,n.len+n.pos-d.plotLeft),e.len+e.pos-d.plotTop-(L||0)-v-x/2,A]:[e.left-d.plotLeft+K+x/2,f(z+n.pos-d.plotTop,n.pos-d.plotTop,n.len+n.pos-d.plotTop),A];h.shapeType=c.pointClass.prototype.shapeType||"rect";h.shapeArgs=c.crispCol.apply(c,
|
|
|
-h.isNull?[K,r,x,0]:[K,I,x,A])})};e.prototype.drawGraph=function(){this.group[this.dense?"addClass":"removeClass"]("highcharts-dense-data")};e.prototype.pointAttribs=function(c,d){var b=this.options,f=this.pointAttrToOptions||{};var k=f.stroke||"borderColor";var h=f["stroke-width"]||"borderWidth",e=c&&c.color||this.color,r=c&&c[k]||b[k]||this.color||e,m=c&&c[h]||b[h]||this[h]||0;f=c&&c.options.dashStyle||b.dashStyle;var q=a(c&&c.opacity,b.opacity,1);if(c&&this.zones.length){var t=c.getZone();e=c.options.color||
|
|
|
-t&&(t.color||c.nonZonedColor)||this.color;t&&(r=t.borderColor||r,f=t.dashStyle||f,m=t.borderWidth||m)}d&&c&&(c=p(b.states[d],c.options.states&&c.options.states[d]||{}),d=c.brightness,e=c.color||"undefined"!==typeof d&&g(e).brighten(c.brightness).get()||e,r=c[k]||r,m=c[h]||m,f=c.dashStyle||f,q=a(c.opacity,q));k={fill:e,stroke:r,"stroke-width":m,opacity:q};f&&(k.dashstyle=f);return k};e.prototype.drawPoints=function(){var a=this,d=this.chart,b=a.options,f=d.renderer,k=b.animationLimit||250,g;a.points.forEach(function(c){var h=
|
|
|
-c.graphic,e=!!h,n=h&&d.pointCount<k?"animate":"attr";if(q(c.plotY)&&null!==c.y){g=c.shapeArgs;h&&c.hasNewShapeType()&&(h=h.destroy());a.enabledDataSorting&&(c.startXPos=a.xAxis.reversed?-(g?g.width:0):a.xAxis.width);h||(c.graphic=h=f[c.shapeType](g).add(c.group||a.group))&&a.enabledDataSorting&&d.hasRendered&&d.pointCount<k&&(h.attr({x:c.startXPos}),e=!0,n="animate");if(h&&e)h[n](p(g));if(b.borderRadius)h[n]({r:b.borderRadius});d.styledMode||h[n](a.pointAttribs(c,c.selected&&"select")).shadow(!1!==
|
|
|
-c.allowShadow&&b.shadow,null,b.stacking&&!b.borderRadius);h&&(h.addClass(c.getClassName(),!0),h.attr({visibility:c.visible?"inherit":"hidden"}))}else h&&(c.graphic=h.destroy())})};e.prototype.drawTracker=function(){var a=this,d=a.chart,b=d.pointer,f=function(a){var c=b.getPointFromEvent(a);"undefined"!==typeof c&&(b.isDirectTouch=!0,c.onMouseOver(a))},k;a.points.forEach(function(a){k=I(a.dataLabels)?a.dataLabels:a.dataLabel?[a.dataLabel]:[];a.graphic&&(a.graphic.element.point=a);k.forEach(function(c){c.div?
|
|
|
-c.div.point=a:c.element.point=a})});a._hasTracking||(a.trackerGroups.forEach(function(c){if(a[c]){a[c].addClass("highcharts-tracker").on("mouseover",f).on("mouseout",function(a){b.onTrackerMouseOut(a)});if(u)a[c].on("touchstart",f);!d.styledMode&&a.options.cursor&&a[c].css(w).css({cursor:a.options.cursor})}}),a._hasTracking=!0);t(this,"afterDrawTracker")};e.prototype.remove=function(){var a=this,d=a.chart;d.hasRendered&&d.series.forEach(function(c){c.type===a.type&&(c.isDirty=!0)});J.prototype.remove.apply(a,
|
|
|
-arguments)};e.defaultOptions=p(J.defaultOptions,{borderRadius:0,centerInCategory:!1,groupPadding:.2,marker:null,pointPadding:.1,minPointLength:0,cropThreshold:50,pointRange:null,states:{hover:{halo:!1,brightness:.1},select:{color:H.neutralColor20,borderColor:H.neutralColor100}},dataLabels:{align:void 0,verticalAlign:void 0,y:void 0},startFromThreshold:!0,stickyTracking:!1,tooltip:{distance:6},threshold:0,borderColor:H.backgroundColor});return e}(J);m(E.prototype,{cropShoulder:0,directTouch:!0,drawLegendSymbol:C.drawRectangle,
|
|
|
-getSymbol:e,negStacks:!0,trackerGroups:["group","dataLabelsGroup"]});D.registerSeriesType("column",E);"";"";return E});O(e,"Series/Bar/BarSeries.js",[e["Series/Column/ColumnSeries.js"],e["Core/Series/SeriesRegistry.js"],e["Core/Utilities.js"]],function(e,l,F){var G=this&&this.__extends||function(){var e=function(l,A){e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,g){e.__proto__=g}||function(e,g){for(var u in g)g.hasOwnProperty(u)&&(e[u]=g[u])};return e(l,A)};return function(l,
|
|
|
-A){function x(){this.constructor=l}e(l,A);l.prototype=null===A?Object.create(A):(x.prototype=A.prototype,new x)}}(),H=F.extend,J=F.merge;F=function(l){function E(){var e=null!==l&&l.apply(this,arguments)||this;e.data=void 0;e.options=void 0;e.points=void 0;return e}G(E,l);E.defaultOptions=J(e.defaultOptions,{});return E}(e);H(F.prototype,{inverted:!0});l.registerSeriesType("bar",F);"";return F});O(e,"Series/Scatter/ScatterSeries.js",[e["Series/Column/ColumnSeries.js"],e["Series/Line/LineSeries.js"],
|
|
|
-e["Core/Series/SeriesRegistry.js"],e["Core/Utilities.js"]],function(e,l,F,C){var G=this&&this.__extends||function(){var e=function(l,g){e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,f){e.__proto__=f}||function(e,f){for(var g in f)f.hasOwnProperty(g)&&(e[g]=f[g])};return e(l,g)};return function(l,g){function u(){this.constructor=l}e(l,g);l.prototype=null===g?Object.create(g):(u.prototype=g.prototype,new u)}}(),J=C.addEvent,D=C.extend,E=C.merge;C=function(e){function x(){var g=
|
|
|
-null!==e&&e.apply(this,arguments)||this;g.data=void 0;g.options=void 0;g.points=void 0;return g}G(x,e);x.prototype.applyJitter=function(){var e=this,u=this.options.jitter,f=this.points.length;u&&this.points.forEach(function(g,b){["x","y"].forEach(function(m,t){var l="plot"+m.toUpperCase();if(u[m]&&!g.isNull){var q=e[m+"Axis"];var p=u[m]*q.transA;if(q&&!q.isLog){var a=Math.max(0,g[l]-p);q=Math.min(q.len,g[l]+p);t=1E4*Math.sin(b+t*f);g[l]=a+(q-a)*(t-Math.floor(t));"x"===m&&(g.clientX=g.plotX)}}})})};
|
|
|
-x.prototype.drawGraph=function(){(this.options.lineWidth||0===this.options.lineWidth&&this.graph&&this.graph.strokeWidth())&&e.prototype.drawGraph.call(this)};x.defaultOptions=E(l.defaultOptions,{lineWidth:0,findNearestPointBy:"xy",jitter:{x:0,y:0},marker:{enabled:!0},tooltip:{headerFormat:'<span style="color:{point.color}">\u25cf</span> <span style="font-size: 10px"> {series.name}</span><br/>',pointFormat:"x: <b>{point.x}</b><br/>y: <b>{point.y}</b><br/>"}});return x}(l);D(C.prototype,{drawTracker:e.prototype.drawTracker,
|
|
|
-sorted:!1,requireSorting:!1,noSharedTooltip:!0,trackerGroups:["group","markerGroup","dataLabelsGroup"],takeOrdinalPosition:!1});J(C,"afterTranslate",function(){this.applyJitter()});F.registerSeriesType("scatter",C);"";return C});O(e,"Mixins/CenteredSeries.js",[e["Core/Globals.js"],e["Core/Series/Series.js"],e["Core/Utilities.js"]],function(e,l,F){var G=F.isNumber,H=F.pick,J=F.relativeLength,D=e.deg2rad;return e.CenteredSeriesMixin={getCenter:function(){var e=this.options,A=this.chart,x=2*(e.slicedOffset||
|
|
|
-0),g=A.plotWidth-2*x,u=A.plotHeight-2*x,f=e.center,w=Math.min(g,u),b=e.size,m=e.innerSize||0;"string"===typeof b&&(b=parseFloat(b));"string"===typeof m&&(m=parseFloat(m));e=[H(f[0],"50%"),H(f[1],"50%"),H(b&&0>b?void 0:e.size,"100%"),H(m&&0>m?void 0:e.innerSize||0,"0%")];!A.angular||this instanceof l||(e[3]=0);for(f=0;4>f;++f)b=e[f],A=2>f||2===f&&/%$/.test(b),e[f]=J(b,[g,u,w,e[2]][f])+(A?x:0);e[3]>e[2]&&(e[3]=e[2]);return e},getStartAndEndRadians:function(e,l){e=G(e)?e:0;l=G(l)&&l>e&&360>l-e?l:e+360;
|
|
|
-return{start:D*(e+-90),end:D*(l+-90)}}}});O(e,"Series/Pie/PiePoint.js",[e["Core/Animation/AnimationUtilities.js"],e["Core/Series/Point.js"],e["Core/Utilities.js"]],function(e,l,F){var G=this&&this.__extends||function(){var e=function(g,f){e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,b){f.__proto__=b}||function(f,b){for(var e in b)b.hasOwnProperty(e)&&(f[e]=b[e])};return e(g,f)};return function(g,f){function l(){this.constructor=g}e(g,f);g.prototype=null===f?Object.create(f):
|
|
|
-(l.prototype=f.prototype,new l)}}(),H=e.setAnimation,J=F.addEvent,D=F.defined;e=F.extend;var E=F.isNumber,A=F.pick,x=F.relativeLength;F=function(e){function g(){var f=null!==e&&e.apply(this,arguments)||this;f.labelDistance=void 0;f.options=void 0;f.series=void 0;return f}G(g,e);g.prototype.getConnectorPath=function(){var f=this.labelPosition,e=this.series.options.dataLabels,b=e.connectorShape,g=this.connectorShapes;g[b]&&(b=g[b]);return b.call(this,{x:f.final.x,y:f.final.y,alignment:f.alignment},
|
|
|
-f.connectorPosition,e)};g.prototype.getTranslate=function(){return this.sliced?this.slicedTranslation:{translateX:0,translateY:0}};g.prototype.haloPath=function(f){var e=this.shapeArgs;return this.sliced||!this.visible?[]:this.series.chart.renderer.symbols.arc(e.x,e.y,e.r+f,e.r+f,{innerR:e.r-1,start:e.start,end:e.end})};g.prototype.init=function(){l.prototype.init.apply(this,arguments);var f=this;f.name=A(f.name,"Slice");var e=function(b){f.slice("select"===b.type)};J(f,"select",e);J(f,"unselect",
|
|
|
-e);return f};g.prototype.isValid=function(){return E(this.y)&&0<=this.y};g.prototype.setVisible=function(f,e){var b=this,g=b.series,t=g.chart,l=g.options.ignoreHiddenPoint;e=A(e,l);f!==b.visible&&(b.visible=b.options.visible=f="undefined"===typeof f?!b.visible:f,g.options.data[g.data.indexOf(b)]=b.options,["graphic","dataLabel","connector","shadowGroup"].forEach(function(e){if(b[e])b[e][f?"show":"hide"](f)}),b.legendItem&&t.legend.colorizeItem(b,f),f||"hover"!==b.state||b.setState(""),l&&(g.isDirty=
|
|
|
-!0),e&&t.redraw())};g.prototype.slice=function(f,e,b){var g=this.series;H(b,g.chart);A(e,!0);this.sliced=this.options.sliced=D(f)?f:!this.sliced;g.options.data[g.data.indexOf(this)]=this.options;this.graphic&&this.graphic.animate(this.getTranslate());this.shadowGroup&&this.shadowGroup.animate(this.getTranslate())};return g}(l);e(F.prototype,{connectorShapes:{fixedOffset:function(e,l,f){var g=l.breakAt;l=l.touchingSliceAt;return[["M",e.x,e.y],f.softConnector?["C",e.x+("left"===e.alignment?-5:5),e.y,
|
|
|
-2*g.x-l.x,2*g.y-l.y,g.x,g.y]:["L",g.x,g.y],["L",l.x,l.y]]},straight:function(e,l){l=l.touchingSliceAt;return[["M",e.x,e.y],["L",l.x,l.y]]},crookedLine:function(e,l,f){l=l.touchingSliceAt;var g=this.series,b=g.center[0],m=g.chart.plotWidth,t=g.chart.plotLeft;g=e.alignment;var u=this.shapeArgs.r;f=x(f.crookDistance,1);m="left"===g?b+u+(m+t-b-u)*(1-f):t+(b-u)*f;f=["L",m,e.y];b=!0;if("left"===g?m>e.x||m<l.x:m<e.x||m>l.x)b=!1;e=[["M",e.x,e.y]];b&&e.push(f);e.push(["L",l.x,l.y]);return e}}});return F});
|
|
|
-O(e,"Series/Pie/PieSeries.js",[e["Mixins/CenteredSeries.js"],e["Series/Column/ColumnSeries.js"],e["Core/Globals.js"],e["Mixins/LegendSymbol.js"],e["Core/Color/Palette.js"],e["Series/Pie/PiePoint.js"],e["Core/Series/Series.js"],e["Core/Series/SeriesRegistry.js"],e["Core/Renderer/SVG/SVGRenderer.js"],e["Core/Utilities.js"]],function(e,l,F,C,H,J,D,E,A,x){var g=this&&this.__extends||function(){var b=function(f,a){b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,d){a.__proto__=d}||function(a,
|
|
|
-d){for(var b in d)d.hasOwnProperty(b)&&(a[b]=d[b])};return b(f,a)};return function(f,a){function k(){this.constructor=f}b(f,a);f.prototype=null===a?Object.create(a):(k.prototype=a.prototype,new k)}}(),u=e.getStartAndEndRadians;F=F.noop;var f=x.clamp,w=x.extend,b=x.fireEvent,m=x.merge,t=x.pick,I=x.relativeLength;x=function(e){function p(){var a=null!==e&&e.apply(this,arguments)||this;a.center=void 0;a.data=void 0;a.maxLabelDistance=void 0;a.options=void 0;a.points=void 0;return a}g(p,e);p.prototype.animate=
|
|
|
-function(a){var b=this,d=b.points,f=b.startAngleRad;a||d.forEach(function(a){var c=a.graphic,d=a.shapeArgs;c&&d&&(c.attr({r:t(a.startR,b.center&&b.center[3]/2),start:f,end:f}),c.animate({r:d.r,start:d.start,end:d.end},b.options.animation))})};p.prototype.drawEmpty=function(){var a=this.startAngleRad,b=this.endAngleRad,d=this.options;if(0===this.total&&this.center){var f=this.center[0];var c=this.center[1];this.graph||(this.graph=this.chart.renderer.arc(f,c,this.center[1]/2,0,a,b).addClass("highcharts-empty-series").add(this.group));
|
|
|
-this.graph.attr({d:A.prototype.symbols.arc(f,c,this.center[2]/2,0,{start:a,end:b,innerR:this.center[3]/2})});this.chart.styledMode||this.graph.attr({"stroke-width":d.borderWidth,fill:d.fillColor||"none",stroke:d.color||H.neutralColor20})}else this.graph&&(this.graph=this.graph.destroy())};p.prototype.drawPoints=function(){var a=this.chart.renderer;this.points.forEach(function(b){b.graphic&&b.hasNewShapeType()&&(b.graphic=b.graphic.destroy());b.graphic||(b.graphic=a[b.shapeType](b.shapeArgs).add(b.series.group),
|
|
|
-b.delayedRendering=!0)})};p.prototype.generatePoints=function(){e.prototype.generatePoints.call(this);this.updateTotals()};p.prototype.getX=function(a,b,d){var k=this.center,c=this.radii?this.radii[d.index]||0:k[2]/2;a=Math.asin(f((a-k[1])/(c+d.labelDistance),-1,1));return k[0]+(b?-1:1)*Math.cos(a)*(c+d.labelDistance)+(0<d.labelDistance?(b?-1:1)*this.options.dataLabels.padding:0)};p.prototype.hasData=function(){return!!this.processedXData.length};p.prototype.redrawPoints=function(){var a=this,b=a.chart,
|
|
|
-d=b.renderer,f,c,h,e,g=a.options.shadow;this.drawEmpty();!g||a.shadowGroup||b.styledMode||(a.shadowGroup=d.g("shadow").attr({zIndex:-1}).add(a.group));a.points.forEach(function(k){var n={};c=k.graphic;if(!k.isNull&&c){e=k.shapeArgs;f=k.getTranslate();if(!b.styledMode){var p=k.shadowGroup;g&&!p&&(p=k.shadowGroup=d.g("shadow").add(a.shadowGroup));p&&p.attr(f);h=a.pointAttribs(k,k.selected&&"select")}k.delayedRendering?(c.setRadialReference(a.center).attr(e).attr(f),b.styledMode||c.attr(h).attr({"stroke-linejoin":"round"}).shadow(g,
|
|
|
-p),k.delayedRendering=!1):(c.setRadialReference(a.center),b.styledMode||m(!0,n,h),m(!0,n,e,f),c.animate(n));c.attr({visibility:k.visible?"inherit":"hidden"});c.addClass(k.getClassName(),!0)}else c&&(k.graphic=c.destroy())})};p.prototype.sortByAngle=function(a,b){a.sort(function(a,f){return"undefined"!==typeof a.angle&&(f.angle-a.angle)*b})};p.prototype.translate=function(a){this.generatePoints();var f=0,d=this.options,e=d.slicedOffset,c=e+(d.borderWidth||0),h=u(d.startAngle,d.endAngle),g=this.startAngleRad=
|
|
|
-h.start;h=(this.endAngleRad=h.end)-g;var p=this.points,m=d.dataLabels.distance;d=d.ignoreHiddenPoint;var n,q=p.length;a||(this.center=a=this.getCenter());for(n=0;n<q;n++){var r=p[n];var z=g+f*h;!r.isValid()||d&&!r.visible||(f+=r.percentage/100);var l=g+f*h;r.shapeType="arc";r.shapeArgs={x:a[0],y:a[1],r:a[2]/2,innerR:a[3]/2,start:Math.round(1E3*z)/1E3,end:Math.round(1E3*l)/1E3};r.labelDistance=t(r.options.dataLabels&&r.options.dataLabels.distance,m);r.labelDistance=I(r.labelDistance,r.shapeArgs.r);
|
|
|
-this.maxLabelDistance=Math.max(this.maxLabelDistance||0,r.labelDistance);l=(l+z)/2;l>1.5*Math.PI?l-=2*Math.PI:l<-Math.PI/2&&(l+=2*Math.PI);r.slicedTranslation={translateX:Math.round(Math.cos(l)*e),translateY:Math.round(Math.sin(l)*e)};var B=Math.cos(l)*a[2]/2;var w=Math.sin(l)*a[2]/2;r.tooltipPos=[a[0]+.7*B,a[1]+.7*w];r.half=l<-Math.PI/2||l>Math.PI/2?1:0;r.angle=l;z=Math.min(c,r.labelDistance/5);r.labelPosition={natural:{x:a[0]+B+Math.cos(l)*r.labelDistance,y:a[1]+w+Math.sin(l)*r.labelDistance},"final":{},
|
|
|
-alignment:0>r.labelDistance?"center":r.half?"right":"left",connectorPosition:{breakAt:{x:a[0]+B+Math.cos(l)*z,y:a[1]+w+Math.sin(l)*z},touchingSliceAt:{x:a[0]+B,y:a[1]+w}}}}b(this,"afterTranslate")};p.prototype.updateTotals=function(){var a,b=0,d=this.points,f=d.length,c=this.options.ignoreHiddenPoint;for(a=0;a<f;a++){var h=d[a];!h.isValid()||c&&!h.visible||(b+=h.y)}this.total=b;for(a=0;a<f;a++)h=d[a],h.percentage=0<b&&(h.visible||!c)?h.y/b*100:0,h.total=b};p.defaultOptions=m(D.defaultOptions,{center:[null,
|
|
|
-null],clip:!1,colorByPoint:!0,dataLabels:{allowOverlap:!0,connectorPadding:5,connectorShape:"fixedOffset",crookDistance:"70%",distance:30,enabled:!0,formatter:function(){return this.point.isNull?void 0:this.point.name},softConnector:!0,x:0},fillColor:void 0,ignoreHiddenPoint:!0,inactiveOtherPoints:!0,legendType:"point",marker:null,size:null,showInLegend:!1,slicedOffset:10,stickyTracking:!1,tooltip:{followPointer:!0},borderColor:H.backgroundColor,borderWidth:1,lineWidth:void 0,states:{hover:{brightness:.1}}});
|
|
|
-return p}(D);w(x.prototype,{axisTypes:[],directTouch:!0,drawGraph:null,drawLegendSymbol:C.drawRectangle,drawTracker:l.prototype.drawTracker,getCenter:e.getCenter,getSymbol:F,isCartesian:!1,noSharedTooltip:!0,pointAttribs:l.prototype.pointAttribs,pointClass:J,requireSorting:!1,searchPoint:F,trackerGroups:["group","dataLabelsGroup"]});E.registerSeriesType("pie",x);"";return x});O(e,"Core/Series/DataLabels.js",[e["Core/Animation/AnimationUtilities.js"],e["Core/Globals.js"],e["Core/Color/Palette.js"],
|
|
|
-e["Core/Series/Series.js"],e["Core/Series/SeriesRegistry.js"],e["Core/Utilities.js"]],function(e,l,F,C,H,J){var D=e.getDeferredAnimation;e=l.noop;H=H.seriesTypes;var E=J.arrayMax,A=J.clamp,x=J.defined,g=J.extend,u=J.fireEvent,f=J.format,w=J.isArray,b=J.merge,m=J.objectEach,t=J.pick,I=J.relativeLength,q=J.splat,p=J.stableSort;"";l.distribute=function(a,b,d){function f(a,c){return a.target-c.target}var c,k=!0,e=a,g=[];var m=0;var n=e.reducedLen||b;for(c=a.length;c--;)m+=a[c].size;if(m>n){p(a,function(a,
|
|
|
-c){return(c.rank||0)-(a.rank||0)});for(m=c=0;m<=n;)m+=a[c].size,c++;g=a.splice(c-1,a.length)}p(a,f);for(a=a.map(function(a){return{size:a.size,targets:[a.target],align:t(a.align,.5)}});k;){for(c=a.length;c--;)k=a[c],m=(Math.min.apply(0,k.targets)+Math.max.apply(0,k.targets))/2,k.pos=A(m-k.size*k.align,0,b-k.size);c=a.length;for(k=!1;c--;)0<c&&a[c-1].pos+a[c-1].size>a[c].pos&&(a[c-1].size+=a[c].size,a[c-1].targets=a[c-1].targets.concat(a[c].targets),a[c-1].align=.5,a[c-1].pos+a[c-1].size>b&&(a[c-1].pos=
|
|
|
-b-a[c-1].size),a.splice(c,1),k=!0)}e.push.apply(e,g);c=0;a.some(function(a){var f=0;if(a.targets.some(function(){e[c].pos=a.pos+f;if("undefined"!==typeof d&&Math.abs(e[c].pos-e[c].target)>d)return e.slice(0,c+1).forEach(function(a){delete a.pos}),e.reducedLen=(e.reducedLen||b)-.1*b,e.reducedLen>.1*b&&l.distribute(e,b,d),!0;f+=e[c].size;c++}))return!0});p(e,f)};C.prototype.drawDataLabels=function(){function a(a,c){var d=c.filter;return d?(c=d.operator,a=a[d.property],d=d.value,">"===c&&a>d||"<"===
|
|
|
-c&&a<d||">="===c&&a>=d||"<="===c&&a<=d||"=="===c&&a==d||"==="===c&&a===d?!0:!1):!0}function k(a,c){var d=[],f;if(w(a)&&!w(c))d=a.map(function(a){return b(a,c)});else if(w(c)&&!w(a))d=c.map(function(c){return b(a,c)});else if(w(a)||w(c))for(f=Math.max(a.length,c.length);f--;)d[f]=b(a[f],c[f]);else d=b(a,c);return d}var d=this,e=d.chart,c=d.options,h=c.dataLabels,g=d.points,p,l=d.hasRendered||0,n=h.animation;n=h.defer?D(e,n,d):{defer:0,duration:0};var K=e.renderer;h=k(k(e.options.plotOptions&&e.options.plotOptions.series&&
|
|
|
-e.options.plotOptions.series.dataLabels,e.options.plotOptions&&e.options.plotOptions[d.type]&&e.options.plotOptions[d.type].dataLabels),h);u(this,"drawDataLabels");if(w(h)||h.enabled||d._hasPointLabels){var r=d.plotGroup("dataLabelsGroup","data-labels",l?"inherit":"hidden",h.zIndex||6);r.attr({opacity:+l});!l&&(l=d.dataLabelsGroup)&&(d.visible&&r.show(!0),l[c.animation?"animate":"attr"]({opacity:1},n));g.forEach(function(b){p=q(k(h,b.dlOptions||b.options&&b.options.dataLabels));p.forEach(function(k,
|
|
|
-h){var g=k.enabled&&(!b.isNull||b.dataLabelOnNull)&&a(b,k),n=b.dataLabels?b.dataLabels[h]:b.dataLabel,p=b.connectors?b.connectors[h]:b.connector,q=t(k.distance,b.labelDistance),z=!n;if(g){var l=b.getLabelConfig();var u=t(k[b.formatPrefix+"Format"],k.format);l=x(u)?f(u,l,e):(k[b.formatPrefix+"Formatter"]||k.formatter).call(l,k);u=k.style;var y=k.rotation;e.styledMode||(u.color=t(k.color,u.color,d.color,F.neutralColor100),"contrast"===u.color?(b.contrastColor=K.getContrast(b.color||d.color),u.color=
|
|
|
-!x(q)&&k.inside||0>q||c.stacking?b.contrastColor:F.neutralColor100):delete b.contrastColor,c.cursor&&(u.cursor=c.cursor));var B={r:k.borderRadius||0,rotation:y,padding:k.padding,zIndex:1};e.styledMode||(B.fill=k.backgroundColor,B.stroke=k.borderColor,B["stroke-width"]=k.borderWidth);m(B,function(a,c){"undefined"===typeof a&&delete B[c]})}!n||g&&x(l)?g&&x(l)&&(n?B.text=l:(b.dataLabels=b.dataLabels||[],n=b.dataLabels[h]=y?K.text(l,0,-9999,k.useHTML).addClass("highcharts-data-label"):K.label(l,0,-9999,
|
|
|
-k.shape,null,null,k.useHTML,null,"data-label"),h||(b.dataLabel=n),n.addClass(" highcharts-data-label-color-"+b.colorIndex+" "+(k.className||"")+(k.useHTML?" highcharts-tracker":""))),n.options=k,n.attr(B),e.styledMode||n.css(u).shadow(k.shadow),n.added||n.add(r),k.textPath&&!k.useHTML&&(n.setTextPath(b.getDataLabelPath&&b.getDataLabelPath(n)||b.graphic,k.textPath),b.dataLabelPath&&!k.textPath.enabled&&(b.dataLabelPath=b.dataLabelPath.destroy())),d.alignDataLabel(b,n,k,null,z)):(b.dataLabel=b.dataLabel&&
|
|
|
-b.dataLabel.destroy(),b.dataLabels&&(1===b.dataLabels.length?delete b.dataLabels:delete b.dataLabels[h]),h||delete b.dataLabel,p&&(b.connector=b.connector.destroy(),b.connectors&&(1===b.connectors.length?delete b.connectors:delete b.connectors[h])))})})}u(this,"afterDrawDataLabels")};C.prototype.alignDataLabel=function(a,b,d,f,c){var k=this,e=this.chart,p=this.isCartesian&&e.inverted,m=this.enabledDataSorting,n=t(a.dlBox&&a.dlBox.centerX,a.plotX,-9999),q=t(a.plotY,-9999),r=b.getBBox(),z=d.rotation,
|
|
|
-l=d.align,u=e.isInsidePlot(n,Math.round(q),p),y="justify"===t(d.overflow,m?"none":"justify"),v=this.visible&&!1!==a.visible&&(a.series.forceDL||m&&!y||u||d.inside&&f&&e.isInsidePlot(n,p?f.x+1:f.y+f.height-1,p));var w=function(d){m&&k.xAxis&&!y&&k.setDataLabelStartPos(a,b,c,u,d)};if(v){var x=e.renderer.fontMetrics(e.styledMode?void 0:d.style.fontSize,b).b;f=g({x:p?this.yAxis.len-q:n,y:Math.round(p?this.xAxis.len-n:q),width:0,height:0},f);g(d,{width:r.width,height:r.height});z?(y=!1,n=e.renderer.rotCorr(x,
|
|
|
-z),n={x:f.x+(d.x||0)+f.width/2+n.x,y:f.y+(d.y||0)+{top:0,middle:.5,bottom:1}[d.verticalAlign]*f.height},w(n),b[c?"attr":"animate"](n).attr({align:l}),w=(z+720)%360,w=180<w&&360>w,"left"===l?n.y-=w?r.height:0:"center"===l?(n.x-=r.width/2,n.y-=r.height/2):"right"===l&&(n.x-=r.width,n.y-=w?0:r.height),b.placed=!0,b.alignAttr=n):(w(f),b.align(d,null,f),n=b.alignAttr);y&&0<=f.height?this.justifyDataLabel(b,d,n,r,f,c):t(d.crop,!0)&&(v=e.isInsidePlot(n.x,n.y)&&e.isInsidePlot(n.x+r.width,n.y+r.height));if(d.shape&&
|
|
|
-!z)b[c?"attr":"animate"]({anchorX:p?e.plotWidth-a.plotY:a.plotX,anchorY:p?e.plotHeight-a.plotX:a.plotY})}c&&m&&(b.placed=!1);v||m&&!y||(b.hide(!0),b.placed=!1)};C.prototype.setDataLabelStartPos=function(a,b,d,f,c){var k=this.chart,e=k.inverted,g=this.xAxis,p=g.reversed,n=e?b.height/2:b.width/2;a=(a=a.pointWidth)?a/2:0;g=e?c.x:p?-n-a:g.width-n+a;c=e?p?this.yAxis.height-n+a:-n-a:c.y;b.startXPos=g;b.startYPos=c;f?"hidden"===b.visibility&&(b.show(),b.attr({opacity:0}).animate({opacity:1})):b.attr({opacity:1}).animate({opacity:0},
|
|
|
-void 0,b.hide);k.hasRendered&&(d&&b.attr({x:b.startXPos,y:b.startYPos}),b.placed=!0)};C.prototype.justifyDataLabel=function(a,b,d,f,c,e){var k=this.chart,h=b.align,g=b.verticalAlign,n=a.box?0:a.padding||0,p=b.x;p=void 0===p?0:p;var r=b.y;var m=void 0===r?0:r;r=d.x+n;if(0>r){"right"===h&&0<=p?(b.align="left",b.inside=!0):p-=r;var q=!0}r=d.x+f.width-n;r>k.plotWidth&&("left"===h&&0>=p?(b.align="right",b.inside=!0):p+=k.plotWidth-r,q=!0);r=d.y+n;0>r&&("bottom"===g&&0<=m?(b.verticalAlign="top",b.inside=
|
|
|
-!0):m-=r,q=!0);r=d.y+f.height-n;r>k.plotHeight&&("top"===g&&0>=m?(b.verticalAlign="bottom",b.inside=!0):m+=k.plotHeight-r,q=!0);q&&(b.x=p,b.y=m,a.placed=!e,a.align(b,void 0,c));return q};H.pie&&(H.pie.prototype.dataLabelPositioners={radialDistributionY:function(a){return a.top+a.distributeBox.pos},radialDistributionX:function(a,b,d,f){return a.getX(d<b.top+2||d>b.bottom-2?f:d,b.half,b)},justify:function(a,b,d){return d[0]+(a.half?-1:1)*(b+a.labelDistance)},alignToPlotEdges:function(a,b,d,f){a=a.getBBox().width;
|
|
|
-return b?a+f:d-a-f},alignToConnectors:function(a,b,d,f){var c=0,e;a.forEach(function(a){e=a.dataLabel.getBBox().width;e>c&&(c=e)});return b?c+f:d-c-f}},H.pie.prototype.drawDataLabels=function(){var a=this,f=a.data,d,e=a.chart,c=a.options.dataLabels||{},h=c.connectorPadding,g,p=e.plotWidth,m=e.plotHeight,n=e.plotLeft,q=Math.round(e.chartWidth/3),r,z=a.center,u=z[2]/2,B=z[1],w,v,I,A,D=[[],[]],G,H,J,O,U=[0,0,0,0],Z=a.dataLabelPositioners,V;a.visible&&(c.enabled||a._hasPointLabels)&&(f.forEach(function(a){a.dataLabel&&
|
|
|
-a.visible&&a.dataLabel.shortened&&(a.dataLabel.attr({width:"auto"}).css({width:"auto",textOverflow:"clip"}),a.dataLabel.shortened=!1)}),C.prototype.drawDataLabels.apply(a),f.forEach(function(a){a.dataLabel&&(a.visible?(D[a.half].push(a),a.dataLabel._pos=null,!x(c.style.width)&&!x(a.options.dataLabels&&a.options.dataLabels.style&&a.options.dataLabels.style.width)&&a.dataLabel.getBBox().width>q&&(a.dataLabel.css({width:Math.round(.7*q)+"px"}),a.dataLabel.shortened=!0)):(a.dataLabel=a.dataLabel.destroy(),
|
|
|
-a.dataLabels&&1===a.dataLabels.length&&delete a.dataLabels))}),D.forEach(function(b,f){var k=b.length,g=[],r;if(k){a.sortByAngle(b,f-.5);if(0<a.maxLabelDistance){var q=Math.max(0,B-u-a.maxLabelDistance);var y=Math.min(B+u+a.maxLabelDistance,e.plotHeight);b.forEach(function(a){0<a.labelDistance&&a.dataLabel&&(a.top=Math.max(0,B-u-a.labelDistance),a.bottom=Math.min(B+u+a.labelDistance,e.plotHeight),r=a.dataLabel.getBBox().height||21,a.distributeBox={target:a.labelPosition.natural.y-a.top+r/2,size:r,
|
|
|
-rank:a.y},g.push(a.distributeBox))});q=y+r-q;l.distribute(g,q,q/5)}for(O=0;O<k;O++){d=b[O];I=d.labelPosition;w=d.dataLabel;J=!1===d.visible?"hidden":"inherit";H=q=I.natural.y;g&&x(d.distributeBox)&&("undefined"===typeof d.distributeBox.pos?J="hidden":(A=d.distributeBox.size,H=Z.radialDistributionY(d)));delete d.positionIndex;if(c.justify)G=Z.justify(d,u,z);else switch(c.alignTo){case "connectors":G=Z.alignToConnectors(b,f,p,n);break;case "plotEdges":G=Z.alignToPlotEdges(w,f,p,n);break;default:G=Z.radialDistributionX(a,
|
|
|
-d,H,q)}w._attr={visibility:J,align:I.alignment};V=d.options.dataLabels||{};w._pos={x:G+t(V.x,c.x)+({left:h,right:-h}[I.alignment]||0),y:H+t(V.y,c.y)-10};I.final.x=G;I.final.y=H;t(c.crop,!0)&&(v=w.getBBox().width,q=null,G-v<h&&1===f?(q=Math.round(v-G+h),U[3]=Math.max(q,U[3])):G+v>p-h&&0===f&&(q=Math.round(G+v-p+h),U[1]=Math.max(q,U[1])),0>H-A/2?U[0]=Math.max(Math.round(-H+A/2),U[0]):H+A/2>m&&(U[2]=Math.max(Math.round(H+A/2-m),U[2])),w.sideOverflow=q)}}}),0===E(U)||this.verifyDataLabelOverflow(U))&&
|
|
|
-(this.placeDataLabels(),this.points.forEach(function(d){V=b(c,d.options.dataLabels);if(g=t(V.connectorWidth,1)){var f;r=d.connector;if((w=d.dataLabel)&&w._pos&&d.visible&&0<d.labelDistance){J=w._attr.visibility;if(f=!r)d.connector=r=e.renderer.path().addClass("highcharts-data-label-connector highcharts-color-"+d.colorIndex+(d.className?" "+d.className:"")).add(a.dataLabelsGroup),e.styledMode||r.attr({"stroke-width":g,stroke:V.connectorColor||d.color||F.neutralColor60});r[f?"attr":"animate"]({d:d.getConnectorPath()});
|
|
|
-r.attr("visibility",J)}else r&&(d.connector=r.destroy())}}))},H.pie.prototype.placeDataLabels=function(){this.points.forEach(function(a){var b=a.dataLabel,d;b&&a.visible&&((d=b._pos)?(b.sideOverflow&&(b._attr.width=Math.max(b.getBBox().width-b.sideOverflow,0),b.css({width:b._attr.width+"px",textOverflow:(this.options.dataLabels.style||{}).textOverflow||"ellipsis"}),b.shortened=!0),b.attr(b._attr),b[b.moved?"animate":"attr"](d),b.moved=!0):b&&b.attr({y:-9999}));delete a.distributeBox},this)},H.pie.prototype.alignDataLabel=
|
|
|
-e,H.pie.prototype.verifyDataLabelOverflow=function(a){var b=this.center,d=this.options,f=d.center,c=d.minSize||80,e=null!==d.size;if(!e){if(null!==f[0])var g=Math.max(b[2]-Math.max(a[1],a[3]),c);else g=Math.max(b[2]-a[1]-a[3],c),b[0]+=(a[3]-a[1])/2;null!==f[1]?g=A(g,c,b[2]-Math.max(a[0],a[2])):(g=A(g,c,b[2]-a[0]-a[2]),b[1]+=(a[0]-a[2])/2);g<b[2]?(b[2]=g,b[3]=Math.min(I(d.innerSize||0,g),g),this.translate(b),this.drawDataLabels&&this.drawDataLabels()):e=!0}return e});H.column&&(H.column.prototype.alignDataLabel=
|
|
|
-function(a,f,d,e,c){var h=this.chart.inverted,k=a.series,g=a.dlBox||a.shapeArgs,p=t(a.below,a.plotY>t(this.translatedThreshold,k.yAxis.len)),n=t(d.inside,!!this.options.stacking);g&&(e=b(g),0>e.y&&(e.height+=e.y,e.y=0),g=e.y+e.height-k.yAxis.len,0<g&&g<e.height&&(e.height-=g),h&&(e={x:k.yAxis.len-e.y-e.height,y:k.xAxis.len-e.x-e.width,width:e.height,height:e.width}),n||(h?(e.x+=p?0:e.width,e.width=0):(e.y+=p?e.height:0,e.height=0)));d.align=t(d.align,!h||n?"center":p?"right":"left");d.verticalAlign=
|
|
|
-t(d.verticalAlign,h||n?"middle":p?"top":"bottom");C.prototype.alignDataLabel.call(this,a,f,d,e,c);d.inside&&a.contrastColor&&f.css({color:a.contrastColor})})});O(e,"Extensions/OverlappingDataLabels.js",[e["Core/Chart/Chart.js"],e["Core/Utilities.js"]],function(e,l){var G=l.addEvent,C=l.fireEvent,H=l.isArray,J=l.isNumber,D=l.objectEach,E=l.pick;G(e,"render",function(){var e=[];(this.labelCollectors||[]).forEach(function(l){e=e.concat(l())});(this.yAxis||[]).forEach(function(l){l.stacking&&l.options.stackLabels&&
|
|
|
-!l.options.stackLabels.allowOverlap&&D(l.stacking.stacks,function(g){D(g,function(g){e.push(g.label)})})});(this.series||[]).forEach(function(l){var g=l.options.dataLabels;l.visible&&(!1!==g.enabled||l._hasPointLabels)&&(g=function(g){return g.forEach(function(f){f.visible&&(H(f.dataLabels)?f.dataLabels:f.dataLabel?[f.dataLabel]:[]).forEach(function(g){var b=g.options;g.labelrank=E(b.labelrank,f.labelrank,f.shapeArgs&&f.shapeArgs.height);b.allowOverlap||e.push(g)})})},g(l.nodes||[]),g(l.points))});
|
|
|
-this.hideOverlappingLabels(e)});e.prototype.hideOverlappingLabels=function(e){var l=this,g=e.length,u=l.renderer,f,w,b,m=!1;var t=function(b){var a,f=b.box?0:b.padding||0,d=a=0,e;if(b&&(!b.alignAttr||b.placed)){var c=b.alignAttr||{x:b.attr("x"),y:b.attr("y")};var h=b.parentGroup;b.width||(a=b.getBBox(),b.width=a.width,b.height=a.height,a=u.fontMetrics(null,b.element).h);var g=b.width-2*f;(e={left:"0",center:"0.5",right:"1"}[b.alignValue])?d=+e*g:J(b.x)&&Math.round(b.x)!==b.translateX&&(d=b.x-b.translateX);
|
|
|
-return{x:c.x+(h.translateX||0)+f-(d||0),y:c.y+(h.translateY||0)+f-a,width:b.width-2*f,height:b.height-2*f}}};for(w=0;w<g;w++)if(f=e[w])f.oldOpacity=f.opacity,f.newOpacity=1,f.absoluteBox=t(f);e.sort(function(b,a){return(a.labelrank||0)-(b.labelrank||0)});for(w=0;w<g;w++){var I=(t=e[w])&&t.absoluteBox;for(f=w+1;f<g;++f){var q=(b=e[f])&&b.absoluteBox;!I||!q||t===b||0===t.newOpacity||0===b.newOpacity||q.x>=I.x+I.width||q.x+q.width<=I.x||q.y>=I.y+I.height||q.y+q.height<=I.y||((t.labelrank<b.labelrank?
|
|
|
-t:b).newOpacity=0)}}e.forEach(function(b){if(b){var a=b.newOpacity;b.oldOpacity!==a&&(b.alignAttr&&b.placed?(b[a?"removeClass":"addClass"]("highcharts-data-label-hidden"),m=!0,b.alignAttr.opacity=a,b[b.isOld?"animate":"attr"](b.alignAttr,null,function(){l.styledMode||b.css({pointerEvents:a?"auto":"none"});b.visibility=a?"inherit":"hidden"}),C(l,"afterHideOverlappingLabel")):b.attr({opacity:a}));b.isOld=!0}});m&&C(l,"afterHideAllOverlappingLabels")}});O(e,"Core/Responsive.js",[e["Core/Chart/Chart.js"],
|
|
|
-e["Core/Utilities.js"]],function(e,l){var G=l.find,C=l.isArray,H=l.isObject,J=l.merge,D=l.objectEach,E=l.pick,A=l.splat,x=l.uniqueKey;e.prototype.setResponsive=function(e,l){var f=this.options.responsive,g=[],b=this.currentResponsive;!l&&f&&f.rules&&f.rules.forEach(function(b){"undefined"===typeof b._id&&(b._id=x());this.matchResponsiveRule(b,g)},this);l=J.apply(0,g.map(function(b){return G(f.rules,function(f){return f._id===b}).chartOptions}));l.isResponsiveOptions=!0;g=g.toString()||void 0;g!==
|
|
|
-(b&&b.ruleIds)&&(b&&this.update(b.undoOptions,e,!0),g?(b=this.currentOptions(l),b.isResponsiveOptions=!0,this.currentResponsive={ruleIds:g,mergedOptions:l,undoOptions:b},this.update(l,e,!0)):this.currentResponsive=void 0)};e.prototype.matchResponsiveRule=function(e,l){var f=e.condition;(f.callback||function(){return this.chartWidth<=E(f.maxWidth,Number.MAX_VALUE)&&this.chartHeight<=E(f.maxHeight,Number.MAX_VALUE)&&this.chartWidth>=E(f.minWidth,0)&&this.chartHeight>=E(f.minHeight,0)}).call(this)&&
|
|
|
-l.push(e._id)};e.prototype.currentOptions=function(e){function g(b,e,l,u){var m;D(b,function(b,a){if(!u&&-1<f.collectionsWithUpdate.indexOf(a)&&e[a])for(b=A(b),l[a]=[],m=0;m<Math.max(b.length,e[a].length);m++)e[a][m]&&(void 0===b[m]?l[a][m]=e[a][m]:(l[a][m]={},g(b[m],e[a][m],l[a][m],u+1)));else H(b)?(l[a]=C(b)?[]:{},g(b,e[a]||{},l[a],u+1)):l[a]="undefined"===typeof e[a]?null:e[a]})}var f=this,l={};g(e,this.options,l,0);return l}});O(e,"masters/highcharts.src.js",[e["Core/Globals.js"],e["Core/Utilities.js"],
|
|
|
-e["Core/Renderer/HTML/AST.js"],e["Core/Series/Series.js"]],function(e,l,F,C){e.addEvent=l.addEvent;e.arrayMax=l.arrayMax;e.arrayMin=l.arrayMin;e.attr=l.attr;e.clearTimeout=l.clearTimeout;e.correctFloat=l.correctFloat;e.createElement=l.createElement;e.css=l.css;e.defined=l.defined;e.destroyObjectProperties=l.destroyObjectProperties;e.discardElement=l.discardElement;e.erase=l.erase;e.error=l.error;e.extend=l.extend;e.extendClass=l.extendClass;e.find=l.find;e.fireEvent=l.fireEvent;e.format=l.format;
|
|
|
-e.getMagnitude=l.getMagnitude;e.getStyle=l.getStyle;e.inArray=l.inArray;e.isArray=l.isArray;e.isClass=l.isClass;e.isDOMElement=l.isDOMElement;e.isFunction=l.isFunction;e.isNumber=l.isNumber;e.isObject=l.isObject;e.isString=l.isString;e.keys=l.keys;e.merge=l.merge;e.normalizeTickInterval=l.normalizeTickInterval;e.numberFormat=l.numberFormat;e.objectEach=l.objectEach;e.offset=l.offset;e.pad=l.pad;e.pick=l.pick;e.pInt=l.pInt;e.relativeLength=l.relativeLength;e.removeEvent=l.removeEvent;e.splat=l.splat;
|
|
|
-e.stableSort=l.stableSort;e.syncTimeout=l.syncTimeout;e.timeUnits=l.timeUnits;e.uniqueKey=l.uniqueKey;e.useSerialIds=l.useSerialIds;e.wrap=l.wrap;e.AST=F;e.Series=C;return e});O(e,"Series/XRange/XRangePoint.js",[e["Core/Series/Point.js"],e["Core/Series/SeriesRegistry.js"]],function(e,l){var F=this&&this.__extends||function(){var e=function(l,C){e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,l){e.__proto__=l}||function(e,l){for(var A in l)l.hasOwnProperty(A)&&(e[A]=l[A])};return e(l,
|
|
|
-C)};return function(l,C){function D(){this.constructor=l}e(l,C);l.prototype=null===C?Object.create(C):(D.prototype=C.prototype,new D)}}();return function(l){function C(){var e=null!==l&&l.apply(this,arguments)||this;e.options=void 0;e.series=void 0;e.tooltipDateKeys=["x","x2"];return e}F(C,l);C.getColorByCategory=function(e,l){var E=e.options.colors||e.chart.options.colors;e=l.y%(E?E.length:e.chart.options.chart.colorCount);return{colorIndex:e,color:E&&E[e]}};C.prototype.resolveColor=function(){var e=
|
|
|
-this.series;if(e.options.colorByPoint&&!this.options.color){var l=C.getColorByCategory(e,this);e.chart.styledMode||(this.color=l.color);this.options.colorIndex||(this.colorIndex=l.colorIndex)}else this.color||(this.color=e.color)};C.prototype.init=function(){e.prototype.init.apply(this,arguments);this.y||(this.y=0);return this};C.prototype.setState=function(){e.prototype.setState.apply(this,arguments);this.series.drawPoint(this,this.series.getAnimationVerb())};C.prototype.getLabelConfig=function(){var l=
|
|
|
-e.prototype.getLabelConfig.call(this),D=this.series.yAxis.categories;l.x2=this.x2;l.yCategory=this.yCategory=D&&D[this.y];return l};C.prototype.isValid=function(){return"number"===typeof this.x&&"number"===typeof this.x2};return C}(l.seriesTypes.column.prototype.pointClass)});O(e,"Series/XRange/XRangeComposition.js",[e["Core/Axis/Axis.js"],e["Core/Utilities.js"]],function(e,l){var F=l.addEvent,C=l.pick;F(e,"afterGetSeriesExtremes",function(){var e=this.series,l;if(this.isXAxis){var D=C(this.dataMax,
|
|
|
--Number.MAX_VALUE);e.forEach(function(e){e.x2Data&&e.x2Data.forEach(function(e){e>D&&(D=e,l=!0)})});l&&(this.dataMax=D)}})});O(e,"Series/XRange/XRangeSeries.js",[e["Core/Globals.js"],e["Core/Color/Color.js"],e["Core/Series/SeriesRegistry.js"],e["Core/Utilities.js"],e["Series/XRange/XRangePoint.js"]],function(e,l,F,C,H){var J=this&&this.__extends||function(){var b=function(f,a){b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var d in b)b.hasOwnProperty(d)&&
|
|
|
-(a[d]=b[d])};return b(f,a)};return function(f,a){function e(){this.constructor=f}b(f,a);f.prototype=null===a?Object.create(a):(e.prototype=a.prototype,new e)}}(),D=l.parse,E=F.series,A=F.seriesTypes.column,x=A.prototype,g=C.clamp,u=C.correctFloat,f=C.defined;l=C.extend;var w=C.find,b=C.isNumber,m=C.isObject,t=C.merge,I=C.pick;C=function(e){function p(){var a=null!==e&&e.apply(this,arguments)||this;a.data=void 0;a.options=void 0;a.points=void 0;return a}J(p,e);p.prototype.init=function(){A.prototype.init.apply(this,
|
|
|
-arguments);this.options.stacking=void 0};p.prototype.getColumnMetrics=function(){function a(){b.series.forEach(function(a){var c=a.xAxis;a.xAxis=a.yAxis;a.yAxis=c})}var b=this.chart;a();var d=x.getColumnMetrics.call(this);a();return d};p.prototype.cropData=function(a,b,d,f){b=E.prototype.cropData.call(this,this.x2Data,b,d,f);b.xData=a.slice(b.start,b.end);return b};p.prototype.findPointIndex=function(a){var f=this.cropped,d=this.cropStart,e=this.points,c=a.id;if(c)var h=(h=w(e,function(a){return a.id===
|
|
|
-c}))?h.index:void 0;"undefined"===typeof h&&(h=(h=w(e,function(c){return c.x===a.x&&c.x2===a.x2&&!c.touched}))?h.index:void 0);f&&b(h)&&b(d)&&h>=d&&(h-=d);return h};p.prototype.translatePoint=function(a){var e,d,p=this.xAxis,c=this.yAxis,h=this.columnMetrics,q=this.options,l=q.minPointLength||0,u=(null===(e=a.shapeArgs)||void 0===e?NaN:e.width)/2,n=this.pointXOffset=h.offset;e=a.plotX;var K=I(a.x2,a.x+(a.len||0)),r=p.translate(K,0,0,0,1);K=Math.abs(r-e);var z=this.chart.inverted,w=I(q.borderWidth,
|
|
|
-1)%2/2,B=h.offset,x=Math.round(h.width);l&&(l-=K,0>l&&(l=0),e-=l/2,r+=l/2);e=Math.max(e,-10);r=g(r,-10,p.len+10);f(a.options.pointWidth)&&(B-=(Math.ceil(a.options.pointWidth)-x)/2,x=Math.ceil(a.options.pointWidth));q.pointPlacement&&b(a.plotY)&&c.categories&&(a.plotY=c.translate(a.y,0,1,0,1,q.pointPlacement));a.shapeArgs={x:Math.floor(Math.min(e,r))+w,y:Math.floor(a.plotY+B)+w,width:Math.round(Math.abs(r-e)),height:x,r:this.options.borderRadius};z?a.tooltipPos[1]+=n+u:a.tooltipPos[0]-=u+n-(null===
|
|
|
-(d=a.shapeArgs)||void 0===d?NaN:d.width)/2;d=a.shapeArgs.x;q=d+a.shapeArgs.width;0>d||q>p.len?(d=g(d,0,p.len),q=g(q,0,p.len),u=q-d,a.dlBox=t(a.shapeArgs,{x:d,width:q-d,centerX:u?u/2:null})):a.dlBox=null;d=a.tooltipPos;q=z?1:0;u=z?0:1;h=this.columnMetrics?this.columnMetrics.offset:-h.width/2;d[q]=z?d[q]+a.shapeArgs.width/2:d[q]+(p.reversed?-1:0)*a.shapeArgs.width;d[u]=g(d[u]+(z?-1:1)*h,0,c.len-1);if(h=a.partialFill)m(h)&&(h=h.amount),b(h)||(h=0),c=a.shapeArgs,a.partShapeArgs={x:c.x,y:c.y,width:c.width,
|
|
|
-height:c.height,r:this.options.borderRadius},e=Math.max(Math.round(K*h+a.plotX-e),0),a.clipRectArgs={x:p.reversed?c.x+K-e:c.x,y:c.y,width:e,height:c.height}};p.prototype.translate=function(){x.translate.apply(this,arguments);this.points.forEach(function(a){this.translatePoint(a)},this)};p.prototype.drawPoint=function(a,b){var d=this.options,f=this.chart.renderer,c=a.graphic,e=a.shapeType,g=a.shapeArgs,k=a.partShapeArgs,p=a.clipRectArgs,n=a.partialFill,q=d.stacking&&!d.borderRadius,r=a.state,l=d.states[r||
|
|
|
-"normal"]||{},u="undefined"===typeof r?"attr":b;r=this.pointAttribs(a,r);l=I(this.chart.options.chart.animation,l.animation);if(a.isNull||!1===a.visible)c&&(a.graphic=c.destroy());else{if(c)c.rect[b](g);else a.graphic=c=f.g("point").addClass(a.getClassName()).add(a.group||this.group),c.rect=f[e](t(g)).addClass(a.getClassName()).addClass("highcharts-partfill-original").add(c);k&&(c.partRect?(c.partRect[b](t(k)),c.partialClipRect[b](t(p))):(c.partialClipRect=f.clipRect(p.x,p.y,p.width,p.height),c.partRect=
|
|
|
-f[e](k).addClass("highcharts-partfill-overlay").add(c).clip(c.partialClipRect)));this.chart.styledMode||(c.rect[b](r,l).shadow(d.shadow,null,q),k&&(m(n)||(n={}),m(d.partialFill)&&(n=t(d.partialFill,n)),a=n.fill||D(r.fill).brighten(-.3).get()||D(a.color||this.color).brighten(-.3).get(),r.fill=a,c.partRect[u](r,l).shadow(d.shadow,null,q)))}};p.prototype.drawPoints=function(){var a=this,b=a.getAnimationVerb();a.points.forEach(function(d){a.drawPoint(d,b)})};p.prototype.getAnimationVerb=function(){return this.chart.pointCount<
|
|
|
-(this.options.animationLimit||250)?"animate":"attr"};p.prototype.isPointInside=function(a){var b=a.shapeArgs,d=a.plotX,f=a.plotY;return b?"undefined"!==typeof d&&"undefined"!==typeof f&&0<=f&&f<=this.yAxis.len&&0<=b.x+b.width&&d<=this.xAxis.len:e.prototype.isPointInside.apply(this,arguments)};p.defaultOptions=t(A.defaultOptions,{colorByPoint:!0,dataLabels:{formatter:function(){var a=this.point.partialFill;m(a)&&(a=a.amount);if(b(a)&&0<a)return u(100*a)+"%"},inside:!0,verticalAlign:"middle"},tooltip:{headerFormat:'<span style="font-size: 10px">{point.x} - {point.x2}</span><br/>',
|
|
|
-pointFormat:'<span style="color:{point.color}">\u25cf</span> {series.name}: <b>{point.yCategory}</b><br/>'},borderRadius:3,pointRange:0});return p}(A);l(C.prototype,{type:"xrange",parallelArrays:["x","x2","y"],requireSorting:!1,animate:E.prototype.animate,cropShoulder:1,getExtremesFromAll:!0,autoIncrement:e.noop,buildKDTree:e.noop,pointClass:H});F.registerSeriesType("xrange",C);"";return C});O(e,"Series/Gantt/GanttPoint.js",[e["Core/Series/SeriesRegistry.js"],e["Core/Utilities.js"]],function(e,l){var F=
|
|
|
-this&&this.__extends||function(){var e=function(l,D){e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,l){e.__proto__=l}||function(e,l){for(var x in l)l.hasOwnProperty(x)&&(e[x]=l[x])};return e(l,D)};return function(l,D){function E(){this.constructor=l}e(l,D);l.prototype=null===D?Object.create(D):(E.prototype=D.prototype,new E)}}(),C=l.pick;return function(e){function l(){var l=null!==e&&e.apply(this,arguments)||this;l.options=void 0;l.series=void 0;return l}F(l,e);l.setGanttPointAliases=
|
|
|
-function(e){function l(l,x){"undefined"!==typeof x&&(e[l]=x)}l("x",C(e.start,e.x));l("x2",C(e.end,e.x2));l("partialFill",C(e.completed,e.partialFill))};l.prototype.applyOptions=function(D,E){D=e.prototype.applyOptions.call(this,D,E);l.setGanttPointAliases(D);return D};l.prototype.isValid=function(){return("number"===typeof this.start||"number"===typeof this.x)&&("number"===typeof this.end||"number"===typeof this.x2||this.milestone)};return l}(e.seriesTypes.xrange.prototype.pointClass)});O(e,"Gantt/Tree.js",
|
|
|
-[e["Core/Utilities.js"]],function(e){var l=e.extend,F=e.isNumber,C=e.pick,H=function(e,l){var A=e.reduce(function(e,g){var l=C(g.parent,"");"undefined"===typeof e[l]&&(e[l]=[]);e[l].push(g);return e},{});Object.keys(A).forEach(function(e,g){var u=A[e];""!==e&&-1===l.indexOf(e)&&(u.forEach(function(f){g[""].push(f)}),delete g[e])});return A},G=function(e,E,A,x,g,u){var f=0,w=0,b=u&&u.after,m=u&&u.before;E={data:x,depth:A-1,id:e,level:A,parent:E};var t,I;"function"===typeof m&&m(E,u);m=(g[e]||[]).map(function(b){var p=
|
|
|
-G(b.id,e,A+1,b,g,u),a=b.start;b=!0===b.milestone?a:b.end;t=!F(t)||a<t?a:t;I=!F(I)||b>I?b:I;f=f+1+p.descendants;w=Math.max(p.height+1,w);return p});x&&(x.start=C(x.start,t),x.end=C(x.end,I));l(E,{children:m,descendants:f,height:w});"function"===typeof b&&b(E,u);return E};return{getListOfParents:H,getNode:G,getTree:function(e,l){var A=e.map(function(e){return e.id});e=H(e,A);return G("",null,1,null,e,l)}}});O(e,"Core/Axis/TreeGridTick.js",[e["Core/Color/Palette.js"],e["Core/Utilities.js"]],function(e,
|
|
|
-l){var F=l.addEvent,C=l.isObject,H=l.isNumber,G=l.pick,D=l.wrap,E;(function(l){function x(){this.treeGrid||(this.treeGrid=new b(this))}function g(b,f){b=b.treeGrid;var g=!b.labelIcon,m=f.renderer,p=f.xy,a=f.options,k=a.width,d=a.height,l=p.x-k/2-a.padding;p=p.y-d/2;var c=f.collapsed?90:180,h=f.show&&H(p),t=b.labelIcon;t||(b.labelIcon=t=m.path(m.symbols[a.type](a.x,a.y,k,d)).addClass("highcharts-label-icon").add(f.group));h||t.attr({y:-9999});m.styledMode||t.attr({"stroke-width":1,fill:G(f.color,e.neutralColor60)}).css({cursor:"pointer",
|
|
|
-stroke:a.lineColor,strokeWidth:a.lineWidth});t[g?"attr":"animate"]({translateX:l,translateY:p,rotation:c})}function u(b,f,e,g,p,a,k,d,l){var c=G(this.options&&this.options.labels,a);a=this.pos;var h=this.axis,m="treegrid"===h.options.type;b=b.apply(this,[f,e,g,p,c,k,d,l]);m&&(f=c&&C(c.symbol,!0)?c.symbol:{},c=c&&H(c.indentation)?c.indentation:0,a=(a=(h=h.treeGrid.mapOfPosToGridNode)&&h[a])&&a.depth||1,b.x+=f.width+2*f.padding+(a-1)*c);return b}function f(b){var f=this,e=f.pos,m=f.axis,p=f.label,a=
|
|
|
-m.treeGrid.mapOfPosToGridNode,k=m.options,d=G(f.options&&f.options.labels,k&&k.labels),l=d&&C(d.symbol,!0)?d.symbol:{},c=(a=a&&a[e])&&a.depth;k="treegrid"===k.type;var h=-1<m.tickPositions.indexOf(e);e=m.chart.styledMode;k&&a&&p&&p.element&&p.addClass("highcharts-treegrid-node-level-"+c);b.apply(f,Array.prototype.slice.call(arguments,1));k&&p&&p.element&&a&&a.descendants&&0<a.descendants&&(m=m.treeGrid.isCollapsed(a),g(f,{color:!e&&p.styles&&p.styles.color||"",collapsed:m,group:p.parentGroup,options:l,
|
|
|
-renderer:p.renderer,show:h,xy:p.xy}),l="highcharts-treegrid-node-"+(m?"expanded":"collapsed"),p.addClass("highcharts-treegrid-node-"+(m?"collapsed":"expanded")).removeClass(l),e||p.css({cursor:"pointer"}),[p,f.treeGrid.labelIcon].forEach(function(a){a&&!a.attachedTreeGridEvents&&(F(a.element,"mouseover",function(){p.addClass("highcharts-treegrid-node-active");p.renderer.styledMode||p.css({textDecoration:"underline"})}),F(a.element,"mouseout",function(){var a=C(d.style)?d.style:{};p.removeClass("highcharts-treegrid-node-active");
|
|
|
-p.renderer.styledMode||p.css({textDecoration:a.textDecoration})}),F(a.element,"click",function(){f.treeGrid.toggleCollapse()}),a.attachedTreeGridEvents=!0)}))}var w=!1;l.compose=function(b){w||(F(b,"init",x),D(b.prototype,"getLabelPosition",u),D(b.prototype,"renderLabel",f),b.prototype.collapse=function(b){this.treeGrid.collapse(b)},b.prototype.expand=function(b){this.treeGrid.expand(b)},b.prototype.toggleCollapse=function(b){this.treeGrid.toggleCollapse(b)},w=!0)};var b=function(){function b(b){this.tick=
|
|
|
-b}b.prototype.collapse=function(b){var f=this.tick,e=f.axis,g=e.brokenAxis;g&&e.treeGrid.mapOfPosToGridNode&&(f=e.treeGrid.collapse(e.treeGrid.mapOfPosToGridNode[f.pos]),g.setBreaks(f,G(b,!0)))};b.prototype.expand=function(b){var f=this.tick,e=f.axis,g=e.brokenAxis;g&&e.treeGrid.mapOfPosToGridNode&&(f=e.treeGrid.expand(e.treeGrid.mapOfPosToGridNode[f.pos]),g.setBreaks(f,G(b,!0)))};b.prototype.toggleCollapse=function(b){var f=this.tick,e=f.axis,g=e.brokenAxis;g&&e.treeGrid.mapOfPosToGridNode&&(f=e.treeGrid.toggleCollapse(e.treeGrid.mapOfPosToGridNode[f.pos]),
|
|
|
-g.setBreaks(f,G(b,!0)))};return b}();l.Additions=b})(E||(E={}));return E});O(e,"Mixins/TreeSeries.js",[e["Core/Color/Color.js"],e["Core/Utilities.js"]],function(e,l){var F=l.extend,C=l.isArray,H=l.isNumber,G=l.isObject,D=l.merge,E=l.pick;return{getColor:function(l,x){var g=x.index,u=x.mapOptionsToLevel,f=x.parentColor,w=x.parentColorIndex,b=x.series,m=x.colors,t=x.siblings,I=b.points,q=b.chart.options.chart,p;if(l){I=I[l.i];l=u[l.level]||{};if(u=I&&l.colorByPoint){var a=I.index%(m?m.length:q.colorCount);
|
|
|
-var k=m&&m[a]}if(!b.chart.styledMode){m=I&&I.options.color;q=l&&l.color;if(p=f)p=(p=l&&l.colorVariation)&&"brightness"===p.key?e.parse(f).brighten(g/t*p.to).get():f;p=E(m,q,k,p,b.color)}var d=E(I&&I.options.colorIndex,l&&l.colorIndex,a,w,x.colorIndex)}return{color:p,colorIndex:d}},getLevelOptions:function(e){var l=null;if(G(e)){l={};var g=H(e.from)?e.from:1;var u=e.levels;var f={};var w=G(e.defaults)?e.defaults:{};C(u)&&(f=u.reduce(function(b,f){if(G(f)&&H(f.level)){var e=D({},f);var m="boolean"===
|
|
|
-typeof e.levelIsConstant?e.levelIsConstant:w.levelIsConstant;delete e.levelIsConstant;delete e.level;f=f.level+(m?0:g-1);G(b[f])?F(b[f],e):b[f]=e}return b},{}));u=H(e.to)?e.to:1;for(e=0;e<=u;e++)l[e]=D({},w,G(f[e])?f[e]:{})}return l},setTreeValues:function u(e,g){var f=g.before,l=g.idRoot,b=g.mapIdToNode[l],m=g.points[e.i],t=m&&m.options||{},x=0,q=[];F(e,{levelDynamic:e.level-(("boolean"===typeof g.levelIsConstant?g.levelIsConstant:1)?0:b.level),name:E(m&&m.name,""),visible:l===e.id||("boolean"===
|
|
|
-typeof g.visible?g.visible:!1)});"function"===typeof f&&(e=f(e,g));e.children.forEach(function(b,a){var f=F({},g);F(f,{index:a,siblings:e.children.length,visible:e.visible});b=u(b,f);q.push(b);b.visible&&(x+=b.val)});e.visible=0<x||e.visible;f=E(t.value,x);F(e,{children:q,childrenTotal:x,isLeaf:e.visible&&!x,val:f});return e},updateRootId:function(e){if(G(e)){var g=G(e.options)?e.options:{};g=E(e.rootNode,g.rootId,"");G(e.userOptions)&&(e.userOptions.rootId=g);e.rootNode=g}return g}}});O(e,"Core/Axis/GridAxis.js",
|
|
|
-[e["Core/Axis/Axis.js"],e["Core/Globals.js"],e["Core/Axis/Tick.js"],e["Core/Utilities.js"]],function(e,l,F,C){var H=C.addEvent,G=C.defined,D=C.erase,E=C.find,A=C.isArray,x=C.isNumber,g=C.merge,u=C.pick,f=C.timeUnits,w=C.wrap,b=l.Chart,m=function(b){var f=b.options;f.labels||(f.labels={});f.labels.align=u(f.labels.align,"center");b.categories||(f.showLastLabel=!1);b.labelRotation=0;f.labels.rotation=0};"";e.prototype.getMaxLabelDimensions=function(b,f){var a={width:0,height:0};f.forEach(function(f){f=
|
|
|
-b[f];if(C.isObject(f,!0)){var d=C.isObject(f.label,!0)?f.label:{};f=d.getBBox?d.getBBox().height:0;d.textStr&&!x(d.textPxLength)&&(d.textPxLength=d.getBBox().width);var e=x(d.textPxLength)?Math.round(d.textPxLength):0;d.textStr&&(e=Math.round(d.getBBox().width));a.height=Math.max(f,a.height);a.width=Math.max(e,a.width)}});return a};l.dateFormats.W=function(b){b=new this.Date(b);var f=(this.get("Day",b)+6)%7,a=new this.Date(b.valueOf());this.set("Date",a,this.get("Date",b)-f+3);f=new this.Date(this.get("FullYear",
|
|
|
-a),0,1);4!==this.get("Day",f)&&(this.set("Month",b,0),this.set("Date",b,1+(11-this.get("Day",f))%7));return(1+Math.floor((a.valueOf()-f.valueOf())/6048E5)).toString()};l.dateFormats.E=function(b){return this.dateFormat("%a",b,!0).charAt(0)};H(b,"afterSetChartSize",function(){this.axes.forEach(function(b){(b.grid&&b.grid.columns||[]).forEach(function(b){b.setAxisSize();b.setAxisTranslation()})})});H(F,"afterGetLabelPosition",function(b){var f=this.label,a=this.axis,e=a.reversed,d=a.chart,g=a.options.grid||
|
|
|
-{},c=a.options.labels,h=c.align,m=I.Side[a.side],l=b.tickmarkOffset,q=a.tickPositions,n=this.pos-l;q=x(q[b.index+1])?q[b.index+1]-l:a.max+l;var t=a.tickSize("tick");l=t?t[0]:0;t=t?t[1]/2:0;if(!0===g.enabled){if("top"===m){g=a.top+a.offset;var r=g-l}else"bottom"===m?(r=d.chartHeight-a.bottom+a.offset,g=r+l):(g=a.top+a.len-a.translate(e?q:n),r=a.top+a.len-a.translate(e?n:q));"right"===m?(m=d.chartWidth-a.right+a.offset,e=m+l):"left"===m?(e=a.left+a.offset,m=e-l):(m=Math.round(a.left+a.translate(e?q:
|
|
|
-n))-t,e=Math.round(a.left+a.translate(e?n:q))-t);this.slotWidth=e-m;b.pos.x="left"===h?m:"right"===h?e:m+(e-m)/2;b.pos.y=r+(g-r)/2;d=d.renderer.fontMetrics(c.style.fontSize,f.element);f=f.getBBox().height;c.useHTML?b.pos.y+=d.b+-(f/2):(f=Math.round(f/d.h),b.pos.y+=(d.b-(d.h-d.f))/2+-((f-1)*d.h/2));b.pos.x+=a.horiz&&c.x||0}});var t=function(){function b(b){this.axis=b}b.prototype.isOuterAxis=function(){var b=this.axis,a=b.grid.columnIndex,f=b.linkedParent&&b.linkedParent.grid.columns||b.grid.columns,
|
|
|
-d=a?b.linkedParent:b,e=-1,c=0;b.chart[b.coll].forEach(function(a,f){a.side!==b.side||a.options.isInternal||(c=f,a===d&&(e=f))});return c===e&&(x(a)?f.length===a:!0)};b.prototype.renderBorder=function(b){var a=this.axis,f=a.chart.renderer,d=a.options;b=f.path(b).addClass("highcharts-axis-line").add(a.axisBorder);f.styledMode||b.attr({stroke:d.lineColor,"stroke-width":d.lineWidth,zIndex:7});return b};return b}(),I=function(){function b(){}b.compose=function(f){e.keepProps.push("grid");w(f.prototype,
|
|
|
-"unsquish",b.wrapUnsquish);H(f,"init",b.onInit);H(f,"afterGetOffset",b.onAfterGetOffset);H(f,"afterGetTitlePosition",b.onAfterGetTitlePosition);H(f,"afterInit",b.onAfterInit);H(f,"afterRender",b.onAfterRender);H(f,"afterSetAxisTranslation",b.onAfterSetAxisTranslation);H(f,"afterSetOptions",b.onAfterSetOptions);H(f,"afterSetOptions",b.onAfterSetOptions2);H(f,"afterSetScale",b.onAfterSetScale);H(f,"afterTickSize",b.onAfterTickSize);H(f,"trimTicks",b.onTrimTicks);H(f,"destroy",b.onDestroy)};b.onAfterGetOffset=
|
|
|
-function(){var b=this.grid;(b&&b.columns||[]).forEach(function(a){a.getOffset()})};b.onAfterGetTitlePosition=function(f){if(!0===(this.options.grid||{}).enabled){var a=this.axisTitle,e=this.height,d=this.horiz,g=this.left,c=this.offset,h=this.opposite,m=this.options.title,p=void 0===m?{}:m;m=this.top;var l=this.width,n=this.tickSize(),q=a&&a.getBBox().width,r=p.x||0,z=p.y||0,t=u(p.margin,d?5:10);a=this.chart.renderer.fontMetrics(p.style&&p.style.fontSize,a).f;n=(d?m+e:g)+(d?1:-1)*(h?-1:1)*(n?n[0]/
|
|
|
-2:0)+(this.side===b.Side.bottom?a:0);f.titlePosition.x=d?g-q/2-t+r:n+(h?l:0)+c+r;f.titlePosition.y=d?n-(h?e:0)+(h?a:-a)/2+c+z:m-t+z}};b.onAfterInit=function(){var b=this.chart,a=this.options.grid;a=void 0===a?{}:a;var f=this.userOptions;a.enabled&&(m(this),w(this,"labelFormatter",function(a){var c=this.axis,b=this.value,d=c.tickPositions,f=(c.isLinked?c.linkedParent:c).series[0],e=b===d[0];d=b===d[d.length-1];var h=f&&E(f.options.data,function(a){return a[c.isXAxis?"x":"y"]===b});if(h&&f.is("gantt")){var k=
|
|
|
-g(h);l.seriesTypes.gantt.prototype.pointClass.setGanttPointAliases(k)}this.isFirst=e;this.isLast=d;this.point=k;return a.call(this)}));if(a.columns)for(var d=this.grid.columns=[],q=this.grid.columnIndex=0;++q<a.columns.length;){var c=g(f,a.columns[a.columns.length-q-1],{linkedTo:0,type:"category",scrollbar:{enabled:!1}});delete c.grid.columns;c=new e(this.chart,c);c.grid.isColumn=!0;c.grid.columnIndex=q;D(b.axes,c);D(b[this.coll],c);d.push(c)}};b.onAfterRender=function(){var f,a=this.grid,e=this.options;
|
|
|
-if(!0===(e.grid||{}).enabled){this.maxLabelDimensions=this.getMaxLabelDimensions(this.ticks,this.tickPositions);this.rightWall&&this.rightWall.destroy();if(this.grid&&this.grid.isOuterAxis()&&this.axisLine&&(e=e.lineWidth)){e=this.getLinePath(e);var d=e[0],g=e[1],c=((this.tickSize("tick")||[1])[0]-1)*(this.side===b.Side.top||this.side===b.Side.left?-1:1);"M"===d[0]&&"L"===g[0]&&(this.horiz?(d[2]+=c,g[2]+=c):(d[1]+=c,g[1]+=c));!this.horiz&&this.chart.marginRight&&(d=[d,["L",this.left,d[2]]],c=["L",
|
|
|
-this.chart.chartWidth-this.chart.marginRight,this.toPixels(this.max+this.tickmarkOffset)],g=[["M",g[1],this.toPixels(this.max+this.tickmarkOffset)],c],this.grid.upperBorder||0===this.min%1||(this.grid.upperBorder=this.grid.renderBorder(d)),this.grid.upperBorder&&this.grid.upperBorder.animate({d:d}),this.grid.lowerBorder||0===this.max%1||(this.grid.lowerBorder=this.grid.renderBorder(g)),this.grid.lowerBorder&&this.grid.lowerBorder.animate({d:g}));this.grid.axisLineExtra?this.grid.axisLineExtra.animate({d:e}):
|
|
|
-this.grid.axisLineExtra=this.grid.renderBorder(e);this.axisLine[this.showAxis?"show":"hide"](!0)}(a&&a.columns||[]).forEach(function(a){a.render()});!this.horiz&&this.chart.hasRendered&&(this.scrollbar||(null===(f=this.linkedParent)||void 0===f?0:f.scrollbar))&&(f=this.max,a=this.tickmarkOffset,e=this.tickPositions[this.tickPositions.length-1],g=this.tickPositions[0],this.min-g>a?this.ticks[g].label.hide():this.ticks[g].label.show(),e-f>a?this.ticks[e].label.hide():this.ticks[e].label.show(),e-f<
|
|
|
-a&&0<e-f&&this.ticks[e].isLast?this.ticks[e].mark.hide():this.ticks[e-1]&&this.ticks[e-1].mark.show())}};b.onAfterSetAxisTranslation=function(){var b,a=this.tickPositions&&this.tickPositions.info,f=this.options,d=this.userOptions.labels||{};(f.grid||{}).enabled&&(this.horiz?(this.series.forEach(function(a){a.options.pointRange=0}),a&&f.dateTimeLabelFormats&&f.labels&&!G(d.align)&&(!1===f.dateTimeLabelFormats[a.unitName].range||1<a.count)&&(f.labels.align="left",G(d.x)||(f.labels.x=3))):"treegrid"!==
|
|
|
-this.options.type&&(null===(b=this.grid)||void 0===b?0:b.columns)&&(this.minPointOffset=this.tickInterval))};b.onAfterSetOptions=function(b){var a=this.options;b=b.userOptions;var e=a&&C.isObject(a.grid,!0)?a.grid:{};if(!0===e.enabled){var d=g(!0,{className:"highcharts-grid-axis "+(b.className||""),dateTimeLabelFormats:{hour:{list:["%H:%M","%H"]},day:{list:["%A, %e. %B","%a, %e. %b","%E"]},week:{list:["Week %W","W%W"]},month:{list:["%B","%b","%o"]}},grid:{borderWidth:1},labels:{padding:2,style:{fontSize:"13px"}},
|
|
|
-margin:0,title:{text:null,reserveSpace:!1,rotation:0},units:[["millisecond",[1,10,100]],["second",[1,10]],["minute",[1,5,15]],["hour",[1,6]],["day",[1]],["week",[1]],["month",[1]],["year",null]]},b);"xAxis"===this.coll&&(G(b.linkedTo)&&!G(b.tickPixelInterval)&&(d.tickPixelInterval=350),G(b.tickPixelInterval)||!G(b.linkedTo)||G(b.tickPositioner)||G(b.tickInterval)||(d.tickPositioner=function(a,c){var b=this.linkedParent&&this.linkedParent.tickPositions&&this.linkedParent.tickPositions.info;if(b){var e,
|
|
|
-g=d.units;for(e=0;e<g.length;e++)if(g[e][0]===b.unitName){var k=e;break}if(g[k+1]){var n=g[k+1][0];var m=(g[k+1][1]||[1])[0]}else"year"===b.unitName&&(n="year",m=10*b.count);b=f[n];this.tickInterval=b*m;return this.getTimeTicks({unitRange:b,count:m,unitName:n},a,c,this.options.startOfWeek)}}));g(!0,this.options,d);this.horiz&&(a.minPadding=u(b.minPadding,0),a.maxPadding=u(b.maxPadding,0));x(a.grid.borderWidth)&&(a.tickWidth=a.lineWidth=e.borderWidth)}};b.onAfterSetOptions2=function(b){b=(b=b.userOptions)&&
|
|
|
-b.grid||{};var a=b.columns;b.enabled&&a&&g(!0,this.options,a[a.length-1])};b.onAfterSetScale=function(){(this.grid.columns||[]).forEach(function(b){b.setScale()})};b.onAfterTickSize=function(b){var a=e.defaultLeftAxisOptions,f=this.horiz,d=this.maxLabelDimensions,g=this.options.grid;g=void 0===g?{}:g;g.enabled&&d&&(a=2*Math.abs(a.labels.x),f=f?g.cellHeight||a+d.height:a+d.width,A(b.tickSize)?b.tickSize[0]=f:b.tickSize=[f,0])};b.onDestroy=function(b){var a=this.grid;(a.columns||[]).forEach(function(a){a.destroy(b.keepEvents)});
|
|
|
-a.columns=void 0};b.onInit=function(b){b=b.userOptions||{};var a=b.grid||{};a.enabled&&G(a.borderColor)&&(b.tickColor=b.lineColor=a.borderColor);this.grid||(this.grid=new t(this))};b.onTrimTicks=function(){var b=this.options,a=this.categories,f=this.tickPositions,d=f[0],e=f[f.length-1],c=this.linkedParent&&this.linkedParent.min||this.min,g=this.linkedParent&&this.linkedParent.max||this.max,m=this.tickInterval;!0!==(b.grid||{}).enabled||a||!this.horiz&&!this.isLinked||(d<c&&d+m>c&&!b.startOnTick&&
|
|
|
-(f[0]=c),e>g&&e-m<g&&!b.endOnTick&&(f[f.length-1]=g))};b.wrapUnsquish=function(b){var a=this.options.grid;return!0===(void 0===a?{}:a).enabled&&this.categories?this.tickInterval:b.apply(this,Array.prototype.slice.call(arguments,1))};return b}();(function(b){b=b.Side||(b.Side={});b[b.top=0]="top";b[b.right=1]="right";b[b.bottom=2]="bottom";b[b.left=3]="left"})(I||(I={}));I.compose(e);return I});O(e,"Core/Axis/BrokenAxis.js",[e["Core/Axis/Axis.js"],e["Core/Series/Series.js"],e["Extensions/Stacking.js"],
|
|
|
-e["Core/Utilities.js"]],function(e,l,F,C){var H=C.addEvent,G=C.find,D=C.fireEvent,E=C.isArray,A=C.isNumber,x=C.pick,g=function(){function g(f){this.hasBreaks=!1;this.axis=f}g.isInBreak=function(f,e){var b=f.repeat||Infinity,g=f.from,l=f.to-f.from;e=e>=g?(e-g)%b:b-(g-e)%b;return f.inclusive?e<=l:e<l&&0!==e};g.lin2Val=function(f){var e=this.brokenAxis;e=e&&e.breakArray;if(!e)return f;var b;for(b=0;b<e.length;b++){var m=e[b];if(m.from>=f)break;else m.to<f?f+=m.len:g.isInBreak(m,f)&&(f+=m.len)}return f};
|
|
|
-g.val2Lin=function(f){var e=this.brokenAxis;e=e&&e.breakArray;if(!e)return f;var b=f,m;for(m=0;m<e.length;m++){var l=e[m];if(l.to<=f)b-=l.len;else if(l.from>=f)break;else if(g.isInBreak(l,f)){b-=f-l.from;break}}return b};g.prototype.findBreakAt=function(f,e){return G(e,function(b){return b.from<f&&f<b.to})};g.prototype.isInAnyBreak=function(f,e){var b=this.axis,m=b.options.breaks,l=m&&m.length,u;if(l){for(;l--;)if(g.isInBreak(m[l],f)){var q=!0;u||(u=x(m[l].showPoints,!b.isXAxis))}var p=q&&e?q&&!u:
|
|
|
-q}return p};g.prototype.setBreaks=function(f,l){var b=this,m=b.axis,t=E(f)&&!!f.length;m.isDirty=b.hasBreaks!==t;b.hasBreaks=t;m.options.breaks=m.userOptions.breaks=f;m.forceRedraw=!0;m.series.forEach(function(b){b.isDirty=!0});t||m.val2lin!==g.val2Lin||(delete m.val2lin,delete m.lin2val);t&&(m.userOptions.ordinal=!1,m.lin2val=g.lin2Val,m.val2lin=g.val2Lin,m.setExtremes=function(f,g,m,a,k){if(b.hasBreaks){for(var d,l=this.options.breaks;d=b.findBreakAt(f,l);)f=d.to;for(;d=b.findBreakAt(g,l);)g=d.from;
|
|
|
-g<f&&(g=f)}e.prototype.setExtremes.call(this,f,g,m,a,k)},m.setAxisTranslation=function(){e.prototype.setAxisTranslation.call(this);b.unitLength=null;if(b.hasBreaks){var f=m.options.breaks||[],l=[],p=[],a=0,k,d=m.userMin||m.min,t=m.userMax||m.max,c=x(m.pointRangePadding,0),h;f.forEach(function(a){k=a.repeat||Infinity;g.isInBreak(a,d)&&(d+=a.to%k-d%k);g.isInBreak(a,t)&&(t-=t%k-a.from%k)});f.forEach(function(a){w=a.from;for(k=a.repeat||Infinity;w-k>d;)w-=k;for(;w<d;)w+=k;for(h=w;h<t;h+=k)l.push({value:h,
|
|
|
-move:"in"}),l.push({value:h+(a.to-a.from),move:"out",size:a.breakSize})});l.sort(function(a,c){return a.value===c.value?("in"===a.move?0:1)-("in"===c.move?0:1):a.value-c.value});var u=0;var w=d;l.forEach(function(c){u+="in"===c.move?1:-1;1===u&&"in"===c.move&&(w=c.value);0===u&&(p.push({from:w,to:c.value,len:c.value-w-(c.size||0)}),a+=c.value-w-(c.size||0))});m.breakArray=b.breakArray=p;b.unitLength=t-d-a+c;D(m,"afterBreaks");m.staticScale?m.transA=m.staticScale:b.unitLength&&(m.transA*=(t-m.min+
|
|
|
-c)/b.unitLength);c&&(m.minPixelPadding=m.transA*m.minPointOffset);m.min=d;m.max=t}});x(l,!0)&&m.chart.redraw()};return g}();C=function(){function e(){}e.compose=function(f,e){f.keepProps.push("brokenAxis");var b=l.prototype;b.drawBreaks=function(b,f){var e=this,g=e.points,m,a,k,d;if(b&&b.brokenAxis&&b.brokenAxis.hasBreaks){var l=b.brokenAxis;f.forEach(function(c){m=l&&l.breakArray||[];a=b.isXAxis?b.min:x(e.options.threshold,b.min);g.forEach(function(f){d=x(f["stack"+c.toUpperCase()],f[c]);m.forEach(function(c){if(A(a)&&
|
|
|
-A(d)){k=!1;if(a<c.from&&d>c.to||a>c.from&&d<c.from)k="pointBreak";else if(a<c.from&&d>c.from&&d<c.to||a>c.from&&d>c.to&&d<c.from)k="pointInBreak";k&&D(b,k,{point:f,brk:c})}})})})}};b.gappedPath=function(){var b=this.currentDataGrouping,f=b&&b.gapSize;b=this.options.gapSize;var e=this.points.slice(),g=e.length-1,l=this.yAxis,a;if(b&&0<g)for("value"!==this.options.gapUnit&&(b*=this.basePointRange),f&&f>b&&f>=this.basePointRange&&(b=f),a=void 0;g--;)a&&!1!==a.visible||(a=e[g+1]),f=e[g],!1!==a.visible&&
|
|
|
-!1!==f.visible&&(a.x-f.x>b&&(a=(f.x+a.x)/2,e.splice(g+1,0,{isNull:!0,x:a}),l.stacking&&this.options.stacking&&(a=l.stacking.stacks[this.stackKey][a]=new F(l,l.options.stackLabels,!1,a,this.stack),a.total=0)),a=f);return this.getGraphPath(e)};H(f,"init",function(){this.brokenAxis||(this.brokenAxis=new g(this))});H(f,"afterInit",function(){"undefined"!==typeof this.brokenAxis&&this.brokenAxis.setBreaks(this.options.breaks,!1)});H(f,"afterSetTickPositions",function(){var b=this.brokenAxis;if(b&&b.hasBreaks){var f=
|
|
|
-this.tickPositions,e=this.tickPositions.info,g=[],l;for(l=0;l<f.length;l++)b.isInAnyBreak(f[l])||g.push(f[l]);this.tickPositions=g;this.tickPositions.info=e}});H(f,"afterSetOptions",function(){this.brokenAxis&&this.brokenAxis.hasBreaks&&(this.options.ordinal=!1)});H(e,"afterGeneratePoints",function(){var b=this.options.connectNulls,f=this.points,e=this.xAxis,g=this.yAxis;if(this.isDirty)for(var l=f.length;l--;){var a=f[l],k=!(null===a.y&&!1===b)&&(e&&e.brokenAxis&&e.brokenAxis.isInAnyBreak(a.x,!0)||
|
|
|
-g&&g.brokenAxis&&g.brokenAxis.isInAnyBreak(a.y,!0));a.visible=k?!1:!1!==a.options.visible}});H(e,"afterRender",function(){this.drawBreaks(this.xAxis,["x"]);this.drawBreaks(this.yAxis,x(this.pointArrayMap,["y"]))})};return e}();C.compose(e,l);return C});O(e,"Core/Axis/TreeGridAxis.js",[e["Core/Axis/Axis.js"],e["Core/Axis/Tick.js"],e["Gantt/Tree.js"],e["Core/Axis/TreeGridTick.js"],e["Mixins/TreeSeries.js"],e["Core/Utilities.js"]],function(e,l,F,C,H,J){var D=H.getLevelOptions,E=J.addEvent,A=J.find,x=
|
|
|
-J.fireEvent,g=J.isArray,u=J.isNumber,f=J.isObject,w=J.isString,b=J.merge,m=J.pick,t=J.wrap,I;(function(e){function p(a,c){var b=a.collapseStart||0;a=a.collapseEnd||0;a>=c&&(b-=.5);return{from:b,to:a,showPoints:!1}}function a(a,c,b){var d=[],e=[],g={},h={},k=-1,n="boolean"===typeof c?c:!1;a=F.getTree(a,{after:function(a){a=h[a.pos];var c=0,b=0;a.children.forEach(function(a){b+=(a.descendants||0)+1;c=Math.max((a.height||0)+1,c)});a.descendants=b;a.height=c;a.collapsed&&e.push(a)},before:function(a){var c=
|
|
|
-f(a.data,!0)?a.data:{},b=w(c.name)?c.name:"",e=g[a.parent];e=f(e,!0)?h[e.pos]:null;var r=function(a){return a.name===b},l;n&&f(e,!0)&&(l=A(e.children,r))?(r=l.pos,l.nodes.push(a)):r=k++;h[r]||(h[r]=l={depth:e?e.depth+1:0,name:b,id:c.id,nodes:[a],children:[],pos:r},-1!==r&&d.push(b),f(e,!0)&&e.children.push(l));w(a.id)&&(g[a.id]=a);l&&!0===c.collapsed&&(l.collapsed=!0);a.pos=r}});h=function(a,c){var b=function(a,d,e){var g=d+(-1===d?0:c-1),h=(g-d)/2,k=d+h;a.nodes.forEach(function(a){var c=a.data;f(c,
|
|
|
-!0)&&(c.y=d+(c.seriesIndex||0),delete c.seriesIndex);a.pos=k});e[k]=a;a.pos=k;a.tickmarkOffset=h+.5;a.collapseStart=g+.5;a.children.forEach(function(a){b(a,g+1,e);g=(a.collapseEnd||0)-.5});a.collapseEnd=g+.5;return e};return b(a["-1"],-1,{})}(h,b);return{categories:d,mapOfIdToNode:g,mapOfPosToGridNode:h,collapsedNodes:e,tree:a}}function k(c){c.target.axes.filter(function(a){return"treegrid"===a.options.type}).forEach(function(d){var e=d.options||{},h=e.labels,k=e.uniqueNames,n=0;e=e.max;if(!d.treeGrid.mapOfPosToGridNode||
|
|
|
-d.series.some(function(a){return!a.hasRendered||a.isDirtyData||a.isDirty})){var l=d.series.reduce(function(a,c){c.visible&&((c.options.data||[]).forEach(function(b){c.options.keys&&c.options.keys.length&&(b=c.pointClass.prototype.optionsToObject.call({series:c},b),c.pointClass.setGanttPointAliases(b));f(b,!0)&&(b.seriesIndex=n,a.push(b))}),!0===k&&n++);return a},[]);if(e&&l.length<e)for(var m=l.length;m<=e;m++)l.push({name:m+"\u200b"});e=a(l,k||!1,!0===k?n:1);d.categories=e.categories;d.treeGrid.mapOfPosToGridNode=
|
|
|
-e.mapOfPosToGridNode;d.hasNames=!0;d.treeGrid.tree=e.tree;d.series.forEach(function(a){var c=(a.options.data||[]).map(function(c){g(c)&&a.options.keys&&a.options.keys.length&&l.forEach(function(a){0<=c.indexOf(a.x)&&0<=c.indexOf(a.x2)&&(c=a)});return f(c,!0)?b(c):c});a.visible&&a.setData(c,!1)});d.treeGrid.mapOptionsToLevel=D({defaults:h,from:1,levels:h&&h.levels,to:d.treeGrid.tree&&d.treeGrid.tree.height});"beforeRender"===c.type&&(d.treeGrid.collapsedNodes=e.collapsedNodes)}})}function d(a,c){var b=
|
|
|
-this.treeGrid.mapOptionsToLevel||{},d=this.ticks,f=d[c],e;if("treegrid"===this.options.type&&this.treeGrid.mapOfPosToGridNode){var g=this.treeGrid.mapOfPosToGridNode[c];(b=b[g.depth])&&(e={labels:b});f?(f.parameters.category=g.name,f.options=e,f.addLabel()):d[c]=new l(this,c,void 0,void 0,{category:g.name,tickmarkOffset:g.tickmarkOffset,options:e})}else a.apply(this,Array.prototype.slice.call(arguments,1))}function q(a){var c=this.options;c=(c=c&&c.labels)&&u(c.indentation)?c.indentation:0;var b=
|
|
|
-a.apply(this,Array.prototype.slice.call(arguments,1));if("treegrid"===this.options.type&&this.treeGrid.mapOfPosToGridNode){var d=this.treeGrid.mapOfPosToGridNode[-1].height||0;b.width+=c*(d-1)}return b}function c(c,d,f){var e=this,g="treegrid"===f.type;e.treeGrid||(e.treeGrid=new H(e));g&&(E(d,"beforeRender",k),E(d,"beforeRedraw",k),E(d,"addSeries",function(c){c.options.data&&(c=a(c.options.data,f.uniqueNames||!1,1),e.treeGrid.collapsedNodes=(e.treeGrid.collapsedNodes||[]).concat(c.collapsedNodes))}),
|
|
|
-E(e,"foundExtremes",function(){e.treeGrid.collapsedNodes&&e.treeGrid.collapsedNodes.forEach(function(a){var c=e.treeGrid.collapse(a);e.brokenAxis&&(e.brokenAxis.setBreaks(c,!1),e.treeGrid.collapsedNodes&&(e.treeGrid.collapsedNodes=e.treeGrid.collapsedNodes.filter(function(c){return a.collapseStart!==c.collapseStart||a.collapseEnd!==c.collapseEnd})))})}),E(e,"afterBreaks",function(){var a;"yAxis"===e.coll&&!e.staticScale&&(null===(a=e.chart.options.chart)||void 0===a?0:a.height)&&(e.isDirty=!0)}),
|
|
|
-f=b({grid:{enabled:!0},labels:{align:"left",levels:[{level:void 0},{level:1,style:{fontWeight:"bold"}}],symbol:{type:"triangle",x:-5,y:-5,height:10,width:10,padding:5}},uniqueNames:!1},f,{reversed:!0,grid:{columns:void 0}}));c.apply(e,[d,f]);g&&(e.hasNames=!0,e.options.showLastLabel=!0)}function h(a){var c=this.options;"treegrid"===c.type?(this.min=m(this.userMin,c.min,this.dataMin),this.max=m(this.userMax,c.max,this.dataMax),x(this,"foundExtremes"),this.setAxisTranslation(),this.tickmarkOffset=.5,
|
|
|
-this.tickInterval=1,this.tickPositions=this.treeGrid.mapOfPosToGridNode?this.treeGrid.getTickPositions():[]):a.apply(this,Array.prototype.slice.call(arguments,1))}var I=!1;e.compose=function(a){I||(t(a.prototype,"generateTick",d),t(a.prototype,"getMaxLabelDimensions",q),t(a.prototype,"init",c),t(a.prototype,"setTickInterval",h),C.compose(l),I=!0)};var H=function(){function a(a){this.axis=a}a.prototype.setCollapsedStatus=function(a){var c=this.axis,b=c.chart;c.series.forEach(function(c){var d=c.options.data;
|
|
|
-if(a.id&&d){var f=b.get(a.id);c=d[c.data.indexOf(f)];f&&c&&(f.collapsed=a.collapsed,c.collapsed=a.collapsed)}})};a.prototype.collapse=function(a){var c=this.axis,b=c.options.breaks||[],d=p(a,c.max);b.push(d);a.collapsed=!0;c.treeGrid.setCollapsedStatus(a);return b};a.prototype.expand=function(a){var c=this.axis,b=c.options.breaks||[],d=p(a,c.max);a.collapsed=!1;c.treeGrid.setCollapsedStatus(a);return b.reduce(function(a,c){c.to===d.to&&c.from===d.from||a.push(c);return a},[])};a.prototype.getTickPositions=
|
|
|
-function(){var a=this.axis,c=Math.floor(a.min/a.tickInterval)*a.tickInterval,b=Math.ceil(a.max/a.tickInterval)*a.tickInterval;return Object.keys(a.treeGrid.mapOfPosToGridNode||{}).reduce(function(d,f){f=+f;!(f>=c&&f<=b)||a.brokenAxis&&a.brokenAxis.isInAnyBreak(f)||d.push(f);return d},[])};a.prototype.isCollapsed=function(a){var c=this.axis,b=c.options.breaks||[],d=p(a,c.max);return b.some(function(a){return a.from===d.from&&a.to===d.to})};a.prototype.toggleCollapse=function(a){return this.isCollapsed(a)?
|
|
|
-this.expand(a):this.collapse(a)};return a}();e.Additions=H})(I||(I={}));e.prototype.utils={getNode:F.getNode};I.compose(e);return I});O(e,"Extensions/CurrentDateIndication.js",[e["Core/Axis/Axis.js"],e["Core/Color/Palette.js"],e["Core/Utilities.js"],e["Core/Axis/PlotLineOrBand.js"]],function(e,l,F,C){var H=F.addEvent,G=F.merge;F=F.wrap;var D={currentDateIndicator:!0,color:l.highlightColor20,width:2,label:{format:"%a, %b %d %Y, %H:%M",formatter:function(e,l){return this.axis.chart.time.dateFormat(l,
|
|
|
-e)},rotation:0,style:{fontSize:"10px"}}};H(e,"afterSetOptions",function(){var e=this.options,l=e.currentDateIndicator;l&&(l="object"===typeof l?G(D,l):G(D),l.value=new Date,e.plotLines||(e.plotLines=[]),e.plotLines.push(l))});H(C,"render",function(){this.label&&this.label.attr({text:this.getLabelText(this.options.label)})});F(C.prototype,"getLabelText",function(e,l){var x=this.options;return x.currentDateIndicator&&x.label&&"function"===typeof x.label.formatter?(x.value=new Date,x.label.formatter.call(this,
|
|
|
-x.value,x.label.format)):e.call(this,l)})});O(e,"Extensions/StaticScale.js",[e["Core/Axis/Axis.js"],e["Core/Chart/Chart.js"],e["Core/Utilities.js"]],function(e,l,F){var C=F.addEvent,H=F.defined,G=F.isNumber,D=F.pick;C(e,"afterSetOptions",function(){var e=this.chart.options&&this.chart.options.chart;!this.horiz&&G(this.options.staticScale)&&(!e.height||e.scrollablePlotArea&&e.scrollablePlotArea.minHeight)&&(this.staticScale=this.options.staticScale)});l.prototype.adjustHeight=function(){"adjustHeight"!==
|
|
|
-this.redrawTrigger&&((this.axes||[]).forEach(function(e){var l=e.chart,x=!!l.initiatedScale&&l.options.animation,g=e.options.staticScale;if(e.staticScale&&H(e.min)){var u=D(e.brokenAxis&&e.brokenAxis.unitLength,e.max+e.tickInterval-e.min)*g;u=Math.max(u,g);g=u-l.plotHeight;1<=Math.abs(g)&&(l.plotHeight=u,l.redrawTrigger="adjustHeight",l.setSize(void 0,l.chartHeight+g,x));e.series.forEach(function(f){(f=f.sharedClipKey&&l[f.sharedClipKey])&&f.attr({height:l.plotHeight})})}}),this.initiatedScale=!0);
|
|
|
-this.redrawTrigger=null};C(l,"render",l.prototype.adjustHeight)});O(e,"Extensions/ArrowSymbols.js",[e["Core/Renderer/SVG/SVGRenderer.js"]],function(e){e.prototype.symbols.arrow=function(e,F,C,H){return[["M",e,F+H/2],["L",e+C,F],["L",e,F+H/2],["L",e+C,F+H]]};e.prototype.symbols["arrow-half"]=function(l,F,C,H){return e.prototype.symbols.arrow(l,F,C/2,H)};e.prototype.symbols["triangle-left"]=function(e,F,C,H){return[["M",e+C,F],["L",e,F+H/2],["L",e+C,F+H],["Z"]]};e.prototype.symbols["arrow-filled"]=
|
|
|
-e.prototype.symbols["triangle-left"];e.prototype.symbols["triangle-left-half"]=function(l,F,C,H){return e.prototype.symbols["triangle-left"](l,F,C/2,H)};e.prototype.symbols["arrow-filled-half"]=e.prototype.symbols["triangle-left-half"]});O(e,"Gantt/Connection.js",[e["Core/Globals.js"],e["Core/Options.js"],e["Core/Series/Point.js"],e["Core/Utilities.js"]],function(e,l,F,C){function H(f){var b=f.shapeArgs;return b?{xMin:b.x,xMax:b.x+b.width,yMin:b.y,yMax:b.y+b.height}:(b=f.graphic&&f.graphic.getBBox())?
|
|
|
-{xMin:f.plotX-b.width/2,xMax:f.plotX+b.width/2,yMin:f.plotY-b.height/2,yMax:f.plotY+b.height/2}:null}"";var G=C.defined,D=C.error,E=C.extend,A=C.merge,x=C.objectEach,g=e.deg2rad,u=Math.max,f=Math.min;E(l.defaultOptions,{connectors:{type:"straight",lineWidth:1,marker:{enabled:!1,align:"center",verticalAlign:"middle",inside:!1,lineWidth:1},startMarker:{symbol:"diamond"},endMarker:{symbol:"arrow-filled"}}});l=function(){function e(b,f,e){this.toPoint=this.pathfinder=this.graphics=this.fromPoint=this.chart=
|
|
|
-void 0;this.init(b,f,e)}e.prototype.init=function(b,f,e){this.fromPoint=b;this.toPoint=f;this.options=e;this.chart=b.series.chart;this.pathfinder=this.chart.pathfinder};e.prototype.renderPath=function(b,f,e){var g=this.chart,l=g.styledMode,m=g.pathfinder,a=!g.options.chart.forExport&&!1!==e,k=this.graphics&&this.graphics.path;m.group||(m.group=g.renderer.g().addClass("highcharts-pathfinder-group").attr({zIndex:-1}).add(g.seriesGroup));m.group.translate(g.plotLeft,g.plotTop);k&&k.renderer||(k=g.renderer.path().add(m.group),
|
|
|
-l||k.attr({opacity:0}));k.attr(f);b={d:b};l||(b.opacity=1);k[a?"animate":"attr"](b,e);this.graphics=this.graphics||{};this.graphics.path=k};e.prototype.addMarker=function(b,f,e){var l=this.fromPoint.series.chart,m=l.pathfinder;l=l.renderer;var p="start"===b?this.fromPoint:this.toPoint,a=p.getPathfinderAnchorPoint(f);if(f.enabled&&((e="start"===b?e[1]:e[e.length-2])&&"M"===e[0]||"L"===e[0])){e={x:e[1],y:e[2]};e=p.getRadiansToVector(e,a);a=p.getMarkerVector(e,f.radius,a);e=-e/g;if(f.width&&f.height){var k=
|
|
|
-f.width;var d=f.height}else k=d=2*f.radius;this.graphics=this.graphics||{};a={x:a.x-k/2,y:a.y-d/2,width:k,height:d,rotation:e,rotationOriginX:a.x,rotationOriginY:a.y};this.graphics[b]?this.graphics[b].animate(a):(this.graphics[b]=l.symbol(f.symbol).addClass("highcharts-point-connecting-path-"+b+"-marker").attr(a).add(m.group),l.styledMode||this.graphics[b].attr({fill:f.color||this.fromPoint.color,stroke:f.lineColor,"stroke-width":f.lineWidth,opacity:0}).animate({opacity:1},p.series.options.animation))}};
|
|
|
-e.prototype.getPath=function(b){var f=this.pathfinder,e=this.chart,g=f.algorithms[b.type],l=f.chartObstacles;if("function"!==typeof g)return D('"'+b.type+'" is not a Pathfinder algorithm.'),{path:[],obstacles:[]};g.requiresObstacles&&!l&&(l=f.chartObstacles=f.getChartObstacles(b),e.options.connectors.algorithmMargin=b.algorithmMargin,f.chartObstacleMetrics=f.getObstacleMetrics(l));return g(this.fromPoint.getPathfinderAnchorPoint(b.startMarker),this.toPoint.getPathfinderAnchorPoint(b.endMarker),A({chartObstacles:l,
|
|
|
-lineObstacles:f.lineObstacles||[],obstacleMetrics:f.chartObstacleMetrics,hardBounds:{xMin:0,xMax:e.plotWidth,yMin:0,yMax:e.plotHeight},obstacleOptions:{margin:b.algorithmMargin},startDirectionX:f.getAlgorithmStartDirection(b.startMarker)},b))};e.prototype.render=function(){var b=this.fromPoint,e=b.series,g=e.chart,l=g.pathfinder,q=A(g.options.connectors,e.options.connectors,b.options.connectors,this.options),p={};g.styledMode||(p.stroke=q.lineColor||b.color,p["stroke-width"]=q.lineWidth,q.dashStyle&&
|
|
|
-(p.dashstyle=q.dashStyle));p["class"]="highcharts-point-connecting-path highcharts-color-"+b.colorIndex;q=A(p,q);G(q.marker.radius)||(q.marker.radius=f(u(Math.ceil((q.algorithmMargin||8)/2)-1,1),5));b=this.getPath(q);g=b.path;b.obstacles&&(l.lineObstacles=l.lineObstacles||[],l.lineObstacles=l.lineObstacles.concat(b.obstacles));this.renderPath(g,p,e.options.animation);this.addMarker("start",A(q.marker,q.startMarker),g);this.addMarker("end",A(q.marker,q.endMarker),g)};e.prototype.destroy=function(){this.graphics&&
|
|
|
-(x(this.graphics,function(b){b.destroy()}),delete this.graphics)};return e}();e.Connection=l;E(F.prototype,{getPathfinderAnchorPoint:function(f){var b=H(this);switch(f.align){case "right":var e="xMax";break;case "left":e="xMin"}switch(f.verticalAlign){case "top":var g="yMin";break;case "bottom":g="yMax"}return{x:e?b[e]:(b.xMin+b.xMax)/2,y:g?b[g]:(b.yMin+b.yMax)/2}},getRadiansToVector:function(f,b){var e;G(b)||(e=H(this))&&(b={x:(e.xMin+e.xMax)/2,y:(e.yMin+e.yMax)/2});return Math.atan2(b.y-f.y,f.x-
|
|
|
-b.x)},getMarkerVector:function(f,b,e){var g=2*Math.PI,l=H(this),m=l.xMax-l.xMin,p=l.yMax-l.yMin,a=Math.atan2(p,m),k=!1;m/=2;var d=p/2,u=l.xMin+m;l=l.yMin+d;for(var c=u,h=l,w=1,x=1;f<-Math.PI;)f+=g;for(;f>Math.PI;)f-=g;g=Math.tan(f);f>-a&&f<=a?(x=-1,k=!0):f>a&&f<=Math.PI-a?x=-1:f>Math.PI-a||f<=-(Math.PI-a)?(w=-1,k=!0):w=-1;k?(c+=w*m,h+=x*m*g):(c+=p/(2*g)*w,h+=x*d);e.x!==u&&(c=e.x);e.y!==l&&(h=e.y);return{x:c+b*Math.cos(f),y:h-b*Math.sin(f)}}});return l});O(e,"Gantt/PathfinderAlgorithms.js",[e["Core/Utilities.js"]],
|
|
|
-function(e){function l(e,l,f){f=f||0;var g=e.length-1;l-=1e-7;for(var b,m;f<=g;)if(b=g+f>>1,m=l-e[b].xMin,0<m)f=b+1;else if(0>m)g=b-1;else return b;return 0<f?f-1:0}function F(e,u){for(var f=l(e,u.x+1)+1;f--;){var g;if(g=e[f].xMax>=u.x)g=e[f],g=u.x<=g.xMax&&u.x>=g.xMin&&u.y<=g.yMax&&u.y>=g.yMin;if(g)return f}return-1}function C(e){var g=[];if(e.length){g.push(["M",e[0].start.x,e[0].start.y]);for(var f=0;f<e.length;++f)g.push(["L",e[f].end.x,e[f].end.y])}return g}function H(e,l){e.yMin=A(e.yMin,l.yMin);
|
|
|
-e.yMax=E(e.yMax,l.yMax);e.xMin=A(e.xMin,l.xMin);e.xMax=E(e.xMax,l.xMax)}var G=e.extend,D=e.pick,E=Math.min,A=Math.max,x=Math.abs;e=G(function(e,l,f){function g(a,b,f,c,e){a={x:a.x,y:a.y};a[b]=f[c||b]+(e||0);return a}function b(a,b,f){var c=x(b[f]-a[f+"Min"])>x(b[f]-a[f+"Max"]);return g(b,f,a,f+(c?"Max":"Min"),c?1:-1)}var m=[],t=D(f.startDirectionX,x(l.x-e.x)>x(l.y-e.y))?"x":"y",u=f.chartObstacles,q=F(u,e);f=F(u,l);if(-1<f){var p=u[f];f=b(p,l,t);p={start:f,end:l};var a=f}else a=l;-1<q&&(u=u[q],f=b(u,
|
|
|
-e,t),m.push({start:e,end:f}),f[t]>=e[t]===f[t]>=a[t]&&(t="y"===t?"x":"y",l=e[t]<l[t],m.push({start:f,end:g(f,t,u,t+(l?"Max":"Min"),l?1:-1)}),t="y"===t?"x":"y"));e=m.length?m[m.length-1].end:e;f=g(e,t,a);m.push({start:e,end:f});t=g(f,"y"===t?"x":"y",a);m.push({start:f,end:t});m.push(p);return{path:C(m),obstacles:m}},{requiresObstacles:!0});return{fastAvoid:G(function(e,u,f){function g(a,c,b){var d,f=a.x<c.x?1:-1;if(a.x<c.x){var e=a;var g=c}else e=c,g=a;if(a.y<c.y){var h=a;var k=c}else h=c,k=a;for(d=
|
|
|
-0>f?E(l(G,g.x),G.length-1):0;G[d]&&(0<f&&G[d].xMin<=g.x||0>f&&G[d].xMax>=e.x);){if(G[d].xMin<=g.x&&G[d].xMax>=e.x&&G[d].yMin<=k.y&&G[d].yMax>=h.y)return b?{y:a.y,x:a.x<c.x?G[d].xMin-1:G[d].xMax+1,obstacle:G[d]}:{x:a.x,y:a.y<c.y?G[d].yMin-1:G[d].yMax+1,obstacle:G[d]};d+=f}return c}function b(a,c,b,d,f){var e=f.soft,h=f.hard,k=d?"x":"y",r={x:c.x,y:c.y},n={x:c.x,y:c.y};f=a[k+"Max"]>=e[k+"Max"];e=a[k+"Min"]<=e[k+"Min"];var l=a[k+"Max"]>=h[k+"Max"];h=a[k+"Min"]<=h[k+"Min"];var m=x(a[k+"Min"]-c[k]),p=x(a[k+
|
|
|
-"Max"]-c[k]);b=10>x(m-p)?c[k]<b[k]:p<m;n[k]=a[k+"Min"];r[k]=a[k+"Max"];a=g(c,n,d)[k]!==n[k];c=g(c,r,d)[k]!==r[k];b=a?c?b:!0:c?!1:b;b=e?f?b:!0:f?!1:b;return h?l?b:!0:l?!1:b}function m(e,k,r){if(e.x===k.x&&e.y===k.y)return[];var n=r?"x":"y",l=f.obstacleOptions.margin;var p={soft:{xMin:d,xMax:y,yMin:c,yMax:h},hard:f.hardBounds};var q=F(G,e);if(-1<q){q=G[q];p=b(q,e,k,r,p);H(q,f.hardBounds);var t=r?{y:e.y,x:q[p?"xMax":"xMin"]+(p?1:-1)}:{x:e.x,y:q[p?"yMax":"yMin"]+(p?1:-1)};var u=F(G,t);-1<u&&(u=G[u],H(u,
|
|
|
-f.hardBounds),t[n]=p?A(q[n+"Max"]-l+1,(u[n+"Min"]+q[n+"Max"])/2):E(q[n+"Min"]+l-1,(u[n+"Max"]+q[n+"Min"])/2),e.x===t.x&&e.y===t.y?(a&&(t[n]=p?A(q[n+"Max"],u[n+"Max"])+1:E(q[n+"Min"],u[n+"Min"])-1),a=!a):a=!1);e=[{start:e,end:t}]}else n=g(e,{x:r?k.x:e.x,y:r?e.y:k.y},r),e=[{start:e,end:{x:n.x,y:n.y}}],n[r?"x":"y"]!==k[r?"x":"y"]&&(p=b(n.obstacle,n,k,!r,p),H(n.obstacle,f.hardBounds),p={x:r?n.x:n.obstacle[p?"xMax":"xMin"]+(p?1:-1),y:r?n.obstacle[p?"yMax":"yMin"]+(p?1:-1):n.y},r=!r,e=e.concat(m({x:n.x,
|
|
|
-y:n.y},p,r)));return e=e.concat(m(e[e.length-1].end,k,!r))}function t(a,c,d){var e=E(a.xMax-c.x,c.x-a.xMin)<E(a.yMax-c.y,c.y-a.yMin);d=b(a,c,d,e,{soft:f.hardBounds,hard:f.hardBounds});return e?{y:c.y,x:a[d?"xMax":"xMin"]+(d?1:-1)}:{x:c.x,y:a[d?"yMax":"yMin"]+(d?1:-1)}}var I=D(f.startDirectionX,x(u.x-e.x)>x(u.y-e.y)),q=I?"x":"y",p=[],a=!1,k=f.obstacleMetrics,d=E(e.x,u.x)-k.maxWidth-10,y=A(e.x,u.x)+k.maxWidth+10,c=E(e.y,u.y)-k.maxHeight-10,h=A(e.y,u.y)+k.maxHeight+10,G=f.chartObstacles;var J=l(G,d);
|
|
|
-k=l(G,y);G=G.slice(J,k+1);if(-1<(k=F(G,u))){var P=t(G[k],u,e);p.push({end:u,start:P});u=P}for(;-1<(k=F(G,u));)J=0>u[q]-e[q],P={x:u.x,y:u.y},P[q]=G[k][J?q+"Max":q+"Min"]+(J?1:-1),p.push({end:u,start:P}),u=P;e=m(e,u,I);e=e.concat(p.reverse());return{path:C(e),obstacles:e}},{requiresObstacles:!0}),straight:function(e,l){return{path:[["M",e.x,e.y],["L",l.x,l.y]],obstacles:[{start:e,end:l}]}},simpleConnect:e}});O(e,"Gantt/Pathfinder.js",[e["Gantt/Connection.js"],e["Core/Chart/Chart.js"],e["Core/Globals.js"],
|
|
|
-e["Core/Options.js"],e["Core/Series/Point.js"],e["Core/Utilities.js"],e["Gantt/PathfinderAlgorithms.js"]],function(e,l,F,C,H,J,D){function E(a){var b=a.shapeArgs;return b?{xMin:b.x,xMax:b.x+b.width,yMin:b.y,yMax:b.y+b.height}:(b=a.graphic&&a.graphic.getBBox())?{xMin:a.plotX-b.width/2,xMax:a.plotX+b.width/2,yMin:a.plotY-b.height/2,yMax:a.plotY+b.height/2}:null}function A(a){for(var b=a.length,d=0,f,c,e=[],g=function(a,c,b){b=m(b,10);var d=a.yMax+b>c.yMin-b&&a.yMin-b<c.yMax+b,f=a.xMax+b>c.xMin-b&&a.xMin-
|
|
|
-b<c.xMax+b,e=d?a.xMin>c.xMax?a.xMin-c.xMax:c.xMin-a.xMax:Infinity,h=f?a.yMin>c.yMax?a.yMin-c.yMax:c.yMin-a.yMax:Infinity;return f&&d?b?g(a,c,Math.floor(b/2)):Infinity:q(e,h)};d<b;++d)for(f=d+1;f<b;++f)c=g(a[d],a[f]),80>c&&e.push(c);e.push(80);return I(Math.floor(e.sort(function(a,c){return a-c})[Math.floor(e.length/10)]/2-1),1)}function x(a){if(a.options.pathfinder||a.series.reduce(function(a,d){d.options&&b(!0,d.options.connectors=d.options.connectors||{},d.options.pathfinder);return a||d.options&&
|
|
|
-d.options.pathfinder},!1))b(!0,a.options.connectors=a.options.connectors||{},a.options.pathfinder),f('WARNING: Pathfinder options have been renamed. Use "chart.connectors" or "series.connectors" instead.')}"";var g=J.addEvent,u=J.defined,f=J.error,w=J.extend,b=J.merge,m=J.pick,t=J.splat,I=Math.max,q=Math.min;w(C.defaultOptions,{connectors:{type:"straight",lineWidth:1,marker:{enabled:!1,align:"center",verticalAlign:"middle",inside:!1,lineWidth:1},startMarker:{symbol:"diamond"},endMarker:{symbol:"arrow-filled"}}});
|
|
|
-var p=function(){function a(a){this.lineObstacles=this.group=this.connections=this.chartObstacleMetrics=this.chartObstacles=this.chart=void 0;this.init(a)}a.prototype.init=function(a){this.chart=a;this.connections=[];g(a,"redraw",function(){this.pathfinder.update()})};a.prototype.update=function(a){var b=this.chart,f=this,c=f.connections;f.connections=[];b.series.forEach(function(a){a.visible&&!a.options.isInternal&&a.points.forEach(function(a){var c=a.options;c&&c.dependency&&(c.connect=c.dependency);
|
|
|
-var d;c=a.options&&a.options.connect&&t(a.options.connect);a.visible&&!1!==a.isInside&&c&&c.forEach(function(c){d=b.get("string"===typeof c?c:c.to);d instanceof H&&d.series.visible&&d.visible&&!1!==d.isInside&&f.connections.push(new e(a,d,"string"===typeof c?{}:c))})})});for(var g=0,k,l,m=c.length,n=f.connections.length;g<m;++g){l=!1;for(k=0;k<n;++k)if(c[g].fromPoint===f.connections[k].fromPoint&&c[g].toPoint===f.connections[k].toPoint){f.connections[k].graphics=c[g].graphics;l=!0;break}l||c[g].destroy()}delete this.chartObstacles;
|
|
|
-delete this.lineObstacles;f.renderConnections(a)};a.prototype.renderConnections=function(a){a?this.chart.series.forEach(function(a){var b=function(){var c=a.chart.pathfinder;(c&&c.connections||[]).forEach(function(c){c.fromPoint&&c.fromPoint.series===a&&c.render()});a.pathfinderRemoveRenderEvent&&(a.pathfinderRemoveRenderEvent(),delete a.pathfinderRemoveRenderEvent)};!1===a.options.animation?b():a.pathfinderRemoveRenderEvent=g(a,"afterAnimate",b)}):this.connections.forEach(function(a){a.render()})};
|
|
|
-a.prototype.getChartObstacles=function(a){for(var b=[],f=this.chart.series,c=m(a.algorithmMargin,0),e,g=0,k=f.length;g<k;++g)if(f[g].visible&&!f[g].options.isInternal)for(var l=0,n=f[g].points.length,p;l<n;++l)p=f[g].points[l],p.visible&&(p=E(p))&&b.push({xMin:p.xMin-c,xMax:p.xMax+c,yMin:p.yMin-c,yMax:p.yMax+c});b=b.sort(function(a,c){return a.xMin-c.xMin});u(a.algorithmMargin)||(e=a.algorithmMargin=A(b),b.forEach(function(a){a.xMin-=e;a.xMax+=e;a.yMin-=e;a.yMax+=e}));return b};a.prototype.getObstacleMetrics=
|
|
|
-function(a){for(var b=0,f=0,c,e,g=a.length;g--;)c=a[g].xMax-a[g].xMin,e=a[g].yMax-a[g].yMin,b<c&&(b=c),f<e&&(f=e);return{maxHeight:f,maxWidth:b}};a.prototype.getAlgorithmStartDirection=function(a){var b="top"!==a.verticalAlign&&"bottom"!==a.verticalAlign;return"left"!==a.align&&"right"!==a.align?b?void 0:!1:b?!0:void 0};return a}();p.prototype.algorithms=D;F.Pathfinder=p;w(H.prototype,{getPathfinderAnchorPoint:function(a){var b=E(this);switch(a.align){case "right":var d="xMax";break;case "left":d=
|
|
|
-"xMin"}switch(a.verticalAlign){case "top":var f="yMin";break;case "bottom":f="yMax"}return{x:d?b[d]:(b.xMin+b.xMax)/2,y:f?b[f]:(b.yMin+b.yMax)/2}},getRadiansToVector:function(a,b){var d;u(b)||(d=E(this))&&(b={x:(d.xMin+d.xMax)/2,y:(d.yMin+d.yMax)/2});return Math.atan2(b.y-a.y,a.x-b.x)},getMarkerVector:function(a,b,d){var f=2*Math.PI,c=E(this),e=c.xMax-c.xMin,g=c.yMax-c.yMin,k=Math.atan2(g,e),l=!1;e/=2;var n=g/2,m=c.xMin+e;c=c.yMin+n;for(var r=m,p=c,q=1,t=1;a<-Math.PI;)a+=f;for(;a>Math.PI;)a-=f;f=
|
|
|
-Math.tan(a);a>-k&&a<=k?(t=-1,l=!0):a>k&&a<=Math.PI-k?t=-1:a>Math.PI-k||a<=-(Math.PI-k)?(q=-1,l=!0):q=-1;l?(r+=q*e,p+=t*e*f):(r+=g/(2*f)*q,p+=t*n);d.x!==m&&(r=d.x);d.y!==c&&(p=d.y);return{x:r+b*Math.cos(a),y:p-b*Math.sin(a)}}});l.prototype.callbacks.push(function(a){!1!==a.options.connectors.enabled&&(x(a),this.pathfinder=new p(this),this.pathfinder.update(!0))});return p});O(e,"Series/Gantt/GanttSeries.js",[e["Series/Gantt/GanttPoint.js"],e["Core/Series/SeriesRegistry.js"],e["Core/Utilities.js"]],
|
|
|
-function(e,l,F){var C=this&&this.__extends||function(){var e=function(g,f){e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,b){f.__proto__=b}||function(f,b){for(var e in b)b.hasOwnProperty(e)&&(f[e]=b[e])};return e(g,f)};return function(g,f){function l(){this.constructor=g}e(g,f);g.prototype=null===f?Object.create(f):(l.prototype=f.prototype,new l)}}(),H=l.series,G=l.seriesTypes.xrange,D=F.extend,E=F.isNumber,A=F.merge,x=F.splat;F=function(e){function g(){var f=null!==e&&e.apply(this,
|
|
|
-arguments)||this;f.data=void 0;f.options=void 0;f.points=void 0;return f}C(g,e);g.prototype.drawPoint=function(f,e){var b=this.options,g=this.chart.renderer,l=f.shapeArgs,u=f.plotY,q=f.graphic,p=f.selected&&"select",a=b.stacking&&!b.borderRadius;if(f.options.milestone)if(E(u)&&null!==f.y&&!1!==f.visible){l=g.symbols.diamond(l.x,l.y,l.width,l.height);if(q)q[e]({d:l});else f.graphic=g.path(l).addClass(f.getClassName(),!0).add(f.group||this.group);this.chart.styledMode||f.graphic.attr(this.pointAttribs(f,
|
|
|
-p)).shadow(b.shadow,null,a)}else q&&(f.graphic=q.destroy());else G.prototype.drawPoint.call(this,f,e)};g.prototype.translatePoint=function(f){G.prototype.translatePoint.call(this,f);if(f.options.milestone){var e=f.shapeArgs;var b=e.height;f.shapeArgs={x:e.x-b/2,y:e.y,width:b,height:b}}};g.defaultOptions=A(G.defaultOptions,{grouping:!1,dataLabels:{enabled:!0},tooltip:{headerFormat:'<span style="font-size: 10px">{series.name}</span><br/>',pointFormat:null,pointFormatter:function(){var f=this.series,
|
|
|
-e=f.chart.tooltip,b=f.xAxis,g=f.tooltipOptions.dateTimeLabelFormats,l=b.options.startOfWeek,u=f.tooltipOptions,q=u.xDateFormat,p=this.options.milestone,a="<b>"+(this.name||this.yCategory)+"</b>";if(u.pointFormat)return this.tooltipFormatter(u.pointFormat);q||(q=x(e.getDateFormat(b.closestPointRange,this.start,l,g))[0]);e=f.chart.time.dateFormat(q,this.start);f=f.chart.time.dateFormat(q,this.end);a+="<br/>";return p?a+(e+"<br/>"):a+("Start: "+e+"<br/>End: ")+(f+"<br/>")}},connectors:{type:"simpleConnect",
|
|
|
-animation:{reversed:!0},startMarker:{enabled:!0,symbol:"arrow-filled",radius:4,fill:"#fa0",align:"left"},endMarker:{enabled:!1,align:"right"}}});return g}(G);D(F.prototype,{keyboardMoveVertical:!1,pointArrayMap:["start","end","y"],pointClass:e,setData:H.prototype.setData});l.registerSeriesType("gantt",F);"";return F});O(e,"Core/Chart/GanttChart.js",[e["Core/Chart/Chart.js"],e["Core/Globals.js"],e["Core/Utilities.js"]],function(e,l,F){var C=F.getOptions,H=F.isArray,G=F.merge,D=F.splat;l.ganttChart=
|
|
|
-function(l,A,x){var g="string"===typeof l||l.nodeName,u=A.series,f=C(),w,b=A;A=arguments[g?1:0];H(A.xAxis)||(A.xAxis=[A.xAxis||{},{}]);A.xAxis=A.xAxis.map(function(b,e){1===e&&(w=0);return G(f.xAxis,{grid:{enabled:!0},opposite:!0,linkedTo:w},b,{type:"datetime"})});A.yAxis=D(A.yAxis||{}).map(function(b){return G(f.yAxis,{grid:{enabled:!0},staticScale:50,reversed:!0,type:b.categories?b.type:"treegrid"},b)});A.series=null;A=G(!0,{chart:{type:"gantt"},title:{text:null},legend:{enabled:!1},navigator:{series:{type:"gantt"},
|
|
|
-yAxis:{type:"category"}}},A,{isGantt:!0});A.series=b.series=u;return g?new e(l,A,x):new e(A,A)}});O(e,"Core/Axis/ScrollbarAxis.js",[e["Core/Globals.js"],e["Core/Utilities.js"]],function(e,l){var F=l.addEvent,C=l.defined,H=l.pick;return function(){function l(){}l.compose=function(l,E){var A=function(e){var g=H(e.options&&e.options.min,e.min),l=H(e.options&&e.options.max,e.max);return{axisMin:g,axisMax:l,scrollMin:C(e.dataMin)?Math.min(g,e.min,e.dataMin,H(e.threshold,Infinity)):g,scrollMax:C(e.dataMax)?
|
|
|
-Math.max(l,e.max,e.dataMax,H(e.threshold,-Infinity)):l}};F(l,"afterInit",function(){var l=this;l.options&&l.options.scrollbar&&l.options.scrollbar.enabled&&(l.options.scrollbar.vertical=!l.horiz,l.options.startOnTick=l.options.endOnTick=!1,l.scrollbar=new E(l.chart.renderer,l.options.scrollbar,l.chart),F(l.scrollbar,"changed",function(g){var u=A(l),f=u.axisMax,x=u.scrollMin,b=u.scrollMax-x;C(u.axisMin)&&C(f)&&(l.horiz&&!l.reversed||!l.horiz&&l.reversed?(u=x+b*this.to,x+=b*this.from):(u=x+b*(1-this.from),
|
|
|
-x+=b*(1-this.to)),H(this.options.liveRedraw,e.svg&&!e.isTouchDevice&&!this.chart.isBoosting)||"mouseup"===g.DOMType||"touchend"===g.DOMType||!C(g.DOMType)?l.setExtremes(x,u,!0,"mousemove"!==g.DOMType&&"touchmove"!==g.DOMType,g):this.setRange(this.from,this.to))}))});F(l,"afterRender",function(){var e=A(this),g=e.scrollMin,l=e.scrollMax;e=this.scrollbar;var f=this.axisTitleMargin+(this.titleOffset||0),w=this.chart.scrollbarsOffsets,b=this.options.margin||0;e&&(this.horiz?(this.opposite||(w[1]+=f),
|
|
|
-e.position(this.left,this.top+this.height+2+w[1]-(this.opposite?b:0),this.width,this.height),this.opposite||(w[1]+=b),f=1):(this.opposite&&(w[0]+=f),e.position(this.left+this.width+2+w[0]-(this.opposite?0:b),this.top,this.width,this.height),this.opposite&&(w[0]+=b),f=0),w[f]+=e.size+e.options.margin,isNaN(g)||isNaN(l)||!C(this.min)||!C(this.max)||this.min===this.max?e.setRange(0,1):(w=(this.min-g)/(l-g),g=(this.max-g)/(l-g),this.horiz&&!this.reversed||!this.horiz&&this.reversed?e.setRange(w,g):e.setRange(1-
|
|
|
-g,1-w)))});F(l,"afterGetOffset",function(){var e=this.horiz?2:1,g=this.scrollbar;g&&(this.chart.scrollbarsOffsets=[0,0],this.chart.axisOffset[e]+=g.size+g.options.margin)})};return l}()});O(e,"Core/Scrollbar.js",[e["Core/Axis/Axis.js"],e["Core/Globals.js"],e["Core/Color/Palette.js"],e["Core/Axis/ScrollbarAxis.js"],e["Core/Utilities.js"],e["Core/Options.js"]],function(e,l,F,C,H,J){var D=H.addEvent,E=H.correctFloat,A=H.defined,x=H.destroyObjectProperties,g=H.fireEvent,u=H.merge,f=H.pick,w=H.removeEvent;
|
|
|
-H=J.defaultOptions;var b=l.isTouchDevice,m=l.swapXY=function(b,f){f&&b.forEach(function(b){for(var f=b.length,a,e=0;e<f;e+=2)a=b[e+1],"number"===typeof a&&(b[e+1]=b[e+2],b[e+2]=a)});return b};J=function(){function e(b,e,f){this._events=[];this.from=this.chartY=this.chartX=0;this.scrollbar=this.group=void 0;this.scrollbarButtons=[];this.scrollbarGroup=void 0;this.scrollbarLeft=0;this.scrollbarRifles=void 0;this.scrollbarStrokeWidth=1;this.to=this.size=this.scrollbarTop=0;this.track=void 0;this.trackBorderWidth=
|
|
|
-1;this.userOptions={};this.y=this.x=0;this.chart=f;this.options=e;this.renderer=f.renderer;this.init(b,e,f)}e.prototype.addEvents=function(){var b=this.options.inverted?[1,0]:[0,1],e=this.scrollbarButtons,f=this.scrollbarGroup.element,a=this.track.element,g=this.mouseDownHandler.bind(this),d=this.mouseMoveHandler.bind(this),m=this.mouseUpHandler.bind(this);b=[[e[b[0]].element,"click",this.buttonToMinClick.bind(this)],[e[b[1]].element,"click",this.buttonToMaxClick.bind(this)],[a,"click",this.trackClick.bind(this)],
|
|
|
-[f,"mousedown",g],[f.ownerDocument,"mousemove",d],[f.ownerDocument,"mouseup",m]];l.hasTouch&&b.push([f,"touchstart",g],[f.ownerDocument,"touchmove",d],[f.ownerDocument,"touchend",m]);b.forEach(function(a){D.apply(null,a)});this._events=b};e.prototype.buttonToMaxClick=function(b){var e=(this.to-this.from)*f(this.options.step,.2);this.updatePosition(this.from+e,this.to+e);g(this,"changed",{from:this.from,to:this.to,trigger:"scrollbar",DOMEvent:b})};e.prototype.buttonToMinClick=function(b){var e=E(this.to-
|
|
|
-this.from)*f(this.options.step,.2);this.updatePosition(E(this.from-e),E(this.to-e));g(this,"changed",{from:this.from,to:this.to,trigger:"scrollbar",DOMEvent:b})};e.prototype.cursorToScrollbarPosition=function(b){var e=this.options;e=e.minWidth>this.calculatedWidth?e.minWidth:0;return{chartX:(b.chartX-this.x-this.xOffset)/(this.barWidth-e),chartY:(b.chartY-this.y-this.yOffset)/(this.barWidth-e)}};e.prototype.destroy=function(){var b=this.chart.scroller;this.removeEvents();["track","scrollbarRifles",
|
|
|
-"scrollbar","scrollbarGroup","group"].forEach(function(b){this[b]&&this[b].destroy&&(this[b]=this[b].destroy())},this);b&&this===b.scrollbar&&(b.scrollbar=null,x(b.scrollbarButtons))};e.prototype.drawScrollbarButton=function(b){var e=this.renderer,f=this.scrollbarButtons,a=this.options,g=this.size;var d=e.g().add(this.group);f.push(d);d=e.rect().addClass("highcharts-scrollbar-button").add(d);this.chart.styledMode||d.attr({stroke:a.buttonBorderColor,"stroke-width":a.buttonBorderWidth,fill:a.buttonBackgroundColor});
|
|
|
-d.attr(d.crisp({x:-.5,y:-.5,width:g+1,height:g+1,r:a.buttonBorderRadius},d.strokeWidth()));d=e.path(m([["M",g/2+(b?-1:1),g/2-3],["L",g/2+(b?-1:1),g/2+3],["L",g/2+(b?2:-2),g/2]],a.vertical)).addClass("highcharts-scrollbar-arrow").add(f[b]);this.chart.styledMode||d.attr({fill:a.buttonArrowColor})};e.prototype.init=function(b,g,l){this.scrollbarButtons=[];this.renderer=b;this.userOptions=g;this.options=u(e.defaultOptions,g);this.chart=l;this.size=f(this.options.size,this.options.height);g.enabled&&(this.render(),
|
|
|
-this.addEvents())};e.prototype.mouseDownHandler=function(b){b=this.chart.pointer.normalize(b);b=this.cursorToScrollbarPosition(b);this.chartX=b.chartX;this.chartY=b.chartY;this.initPositions=[this.from,this.to];this.grabbedCenter=!0};e.prototype.mouseMoveHandler=function(b){var e=this.chart.pointer.normalize(b),f=this.options.vertical?"chartY":"chartX",a=this.initPositions||[];!this.grabbedCenter||b.touches&&0===b.touches[0][f]||(e=this.cursorToScrollbarPosition(e)[f],f=this[f],f=e-f,this.hasDragged=
|
|
|
-!0,this.updatePosition(a[0]+f,a[1]+f),this.hasDragged&&g(this,"changed",{from:this.from,to:this.to,trigger:"scrollbar",DOMType:b.type,DOMEvent:b}))};e.prototype.mouseUpHandler=function(b){this.hasDragged&&g(this,"changed",{from:this.from,to:this.to,trigger:"scrollbar",DOMType:b.type,DOMEvent:b});this.grabbedCenter=this.hasDragged=this.chartX=this.chartY=null};e.prototype.position=function(b,e,f,a){var g=this.options.vertical,d=0,l=this.rendered?"animate":"attr";this.x=b;this.y=e+this.trackBorderWidth;
|
|
|
-this.width=f;this.xOffset=this.height=a;this.yOffset=d;g?(this.width=this.yOffset=f=d=this.size,this.xOffset=e=0,this.barWidth=a-2*f,this.x=b+=this.options.margin):(this.height=this.xOffset=a=e=this.size,this.barWidth=f-2*a,this.y+=this.options.margin);this.group[l]({translateX:b,translateY:this.y});this.track[l]({width:f,height:a});this.scrollbarButtons[1][l]({translateX:g?0:f-e,translateY:g?a-d:0})};e.prototype.removeEvents=function(){this._events.forEach(function(b){w.apply(null,b)});this._events.length=
|
|
|
-0};e.prototype.render=function(){var b=this.renderer,e=this.options,f=this.size,a=this.chart.styledMode,g;this.group=g=b.g("scrollbar").attr({zIndex:e.zIndex,translateY:-99999}).add();this.track=b.rect().addClass("highcharts-scrollbar-track").attr({x:0,r:e.trackBorderRadius||0,height:f,width:f}).add(g);a||this.track.attr({fill:e.trackBackgroundColor,stroke:e.trackBorderColor,"stroke-width":e.trackBorderWidth});this.trackBorderWidth=this.track.strokeWidth();this.track.attr({y:-this.trackBorderWidth%
|
|
|
-2/2});this.scrollbarGroup=b.g().add(g);this.scrollbar=b.rect().addClass("highcharts-scrollbar-thumb").attr({height:f,width:f,r:e.barBorderRadius||0}).add(this.scrollbarGroup);this.scrollbarRifles=b.path(m([["M",-3,f/4],["L",-3,2*f/3],["M",0,f/4],["L",0,2*f/3],["M",3,f/4],["L",3,2*f/3]],e.vertical)).addClass("highcharts-scrollbar-rifles").add(this.scrollbarGroup);a||(this.scrollbar.attr({fill:e.barBackgroundColor,stroke:e.barBorderColor,"stroke-width":e.barBorderWidth}),this.scrollbarRifles.attr({stroke:e.rifleColor,
|
|
|
-"stroke-width":1}));this.scrollbarStrokeWidth=this.scrollbar.strokeWidth();this.scrollbarGroup.translate(-this.scrollbarStrokeWidth%2/2,-this.scrollbarStrokeWidth%2/2);this.drawScrollbarButton(0);this.drawScrollbarButton(1)};e.prototype.setRange=function(b,e){var f=this.options,a=f.vertical,g=f.minWidth,d=this.barWidth,l,c=!this.rendered||this.hasDragged||this.chart.navigator&&this.chart.navigator.hasDragged?"attr":"animate";if(A(d)){b=Math.max(b,0);var h=Math.ceil(d*b);this.calculatedWidth=l=E(d*
|
|
|
-Math.min(e,1)-h);l<g&&(h=(d-g+l)*b,l=g);g=Math.floor(h+this.xOffset+this.yOffset);d=l/2-.5;this.from=b;this.to=e;a?(this.scrollbarGroup[c]({translateY:g}),this.scrollbar[c]({height:l}),this.scrollbarRifles[c]({translateY:d}),this.scrollbarTop=g,this.scrollbarLeft=0):(this.scrollbarGroup[c]({translateX:g}),this.scrollbar[c]({width:l}),this.scrollbarRifles[c]({translateX:d}),this.scrollbarLeft=g,this.scrollbarTop=0);12>=l?this.scrollbarRifles.hide():this.scrollbarRifles.show(!0);!1===f.showFull&&(0>=
|
|
|
-b&&1<=e?this.group.hide():this.group.show());this.rendered=!0}};e.prototype.trackClick=function(b){var e=this.chart.pointer.normalize(b),f=this.to-this.from,a=this.y+this.scrollbarTop,k=this.x+this.scrollbarLeft;this.options.vertical&&e.chartY>a||!this.options.vertical&&e.chartX>k?this.updatePosition(this.from+f,this.to+f):this.updatePosition(this.from-f,this.to-f);g(this,"changed",{from:this.from,to:this.to,trigger:"scrollbar",DOMEvent:b})};e.prototype.update=function(b){this.destroy();this.init(this.chart.renderer,
|
|
|
-u(!0,this.options,b),this.chart)};e.prototype.updatePosition=function(b,e){1<e&&(b=E(1-E(e-b)),e=1);0>b&&(e=E(e-b),b=0);this.from=b;this.to=e};e.defaultOptions={height:b?20:14,barBorderRadius:0,buttonBorderRadius:0,liveRedraw:void 0,margin:10,minWidth:6,step:.2,zIndex:3,barBackgroundColor:F.neutralColor20,barBorderWidth:1,barBorderColor:F.neutralColor20,buttonArrowColor:F.neutralColor80,buttonBackgroundColor:F.neutralColor10,buttonBorderColor:F.neutralColor20,buttonBorderWidth:1,rifleColor:F.neutralColor80,
|
|
|
-trackBackgroundColor:F.neutralColor5,trackBorderColor:F.neutralColor5,trackBorderWidth:1};return e}();l.Scrollbar||(H.scrollbar=u(!0,J.defaultOptions,H.scrollbar),l.Scrollbar=J,C.compose(e,J));return l.Scrollbar});O(e,"Extensions/RangeSelector.js",[e["Core/Axis/Axis.js"],e["Core/Chart/Chart.js"],e["Core/Globals.js"],e["Core/Options.js"],e["Core/Color/Palette.js"],e["Core/Renderer/SVG/SVGElement.js"],e["Core/Utilities.js"]],function(e,l,F,C,H,J,D){function E(a){if(-1!==a.indexOf("%L"))return"text";
|
|
|
-var b="aAdewbBmoyY".split("").some(function(b){return-1!==a.indexOf("%"+b)}),c="HkIlMS".split("").some(function(b){return-1!==a.indexOf("%"+b)});return b&&c?"datetime-local":b?"date":c?"time":"text"}var A=C.defaultOptions,x=D.addEvent,g=D.createElement,u=D.css,f=D.defined,w=D.destroyObjectProperties,b=D.discardElement,m=D.extend,t=D.find,G=D.fireEvent,q=D.isNumber,p=D.merge,a=D.objectEach,k=D.pad,d=D.pick,y=D.pInt,c=D.splat;m(A,{rangeSelector:{allButtonsEnabled:!1,buttons:void 0,buttonSpacing:5,dropdown:"responsive",
|
|
|
-enabled:void 0,verticalAlign:"top",buttonTheme:{width:28,height:18,padding:2,zIndex:7},floating:!1,x:0,y:0,height:void 0,inputBoxBorderColor:"none",inputBoxHeight:17,inputBoxWidth:void 0,inputDateFormat:"%b %e, %Y",inputDateParser:void 0,inputEditDateFormat:"%Y-%m-%d",inputEnabled:!0,inputPosition:{align:"right",x:0,y:0},inputSpacing:5,selected:void 0,buttonPosition:{align:"left",x:0,y:0},inputStyle:{color:H.highlightColor80,cursor:"pointer"},labelStyle:{color:H.neutralColor60}}});m(A.lang,{rangeSelectorZoom:"Zoom",
|
|
|
-rangeSelectorFrom:"",rangeSelectorTo:"\u2192"});var h=function(){function h(a){this.buttons=void 0;this.buttonOptions=h.prototype.defaultButtons;this.initialButtonGroupWidth=0;this.options=void 0;this.chart=a;this.init(a)}h.prototype.clickButton=function(a,b){var g=this.chart,h=this.buttonOptions[a],k=g.xAxis[0],l=g.scroller&&g.scroller.getUnionExtremes()||k||{},n=l.dataMin,m=l.dataMax,p=k&&Math.round(Math.min(k.max,d(m,k.max))),t=h.type;l=h._range;var u,w=h.dataGrouping;if(null!==n&&null!==m){g.fixedRange=
|
|
|
-l;w&&(this.forcedDataGrouping=!0,e.prototype.setDataGrouping.call(k||{chart:this.chart},w,!1),this.frozenStates=h.preserveDataGrouping);if("month"===t||"year"===t)if(k){t={range:h,max:p,chart:g,dataMin:n,dataMax:m};var K=k.minFromRange.call(t);q(t.newMax)&&(p=t.newMax)}else l=h;else if(l)K=Math.max(p-l,n),p=Math.min(K+l,m);else if("ytd"===t)if(k)"undefined"===typeof m&&(n=Number.MAX_VALUE,m=Number.MIN_VALUE,g.series.forEach(function(a){a=a.xData;n=Math.min(a[0],n);m=Math.max(a[a.length-1],m)}),b=
|
|
|
-!1),p=this.getYTDExtremes(m,n,g.time.useUTC),K=u=p.min,p=p.max;else{this.deferredYTDClick=a;return}else"all"===t&&k&&(K=n,p=m);f(K)&&(K+=h._offsetMin);f(p)&&(p+=h._offsetMax);this.setSelected(a);this.dropdown&&(this.dropdown.selectedIndex=a+1);if(k)k.setExtremes(K,p,d(b,!0),void 0,{trigger:"rangeSelectorButton",rangeSelectorButton:h});else{var y=c(g.options.xAxis)[0];var A=y.range;y.range=l;var C=y.min;y.min=u;x(g,"load",function(){y.range=A;y.min=C})}G(this,"afterBtnClick")}};h.prototype.setSelected=
|
|
|
-function(a){this.selected=this.options.selected=a};h.prototype.init=function(a){var b=this,c=a.options.rangeSelector,d=c.buttons||b.defaultButtons.slice(),e=c.selected,f=function(){var a=b.minInput,c=b.maxInput;a&&a.blur&&G(a,"blur");c&&c.blur&&G(c,"blur")};b.chart=a;b.options=c;b.buttons=[];b.buttonOptions=d;this.eventsToUnbind=[];this.eventsToUnbind.push(x(a.container,"mousedown",f));this.eventsToUnbind.push(x(a,"resize",f));d.forEach(b.computeButtonRange);"undefined"!==typeof e&&d[e]&&this.clickButton(e,
|
|
|
-!1);this.eventsToUnbind.push(x(a,"load",function(){a.xAxis&&a.xAxis[0]&&x(a.xAxis[0],"setExtremes",function(c){this.max-this.min!==a.fixedRange&&"rangeSelectorButton"!==c.trigger&&"updatedData"!==c.trigger&&b.forcedDataGrouping&&!b.frozenStates&&this.setDataGrouping(!1,!1)})}))};h.prototype.updateButtonStates=function(){var a=this,b=this.chart,c=this.dropdown,d=b.xAxis[0],e=Math.round(d.max-d.min),f=!d.hasVisibleSeries,g=b.scroller&&b.scroller.getUnionExtremes()||d,h=g.dataMin,k=g.dataMax;b=a.getYTDExtremes(k,
|
|
|
-h,b.time.useUTC);var l=b.min,m=b.max,p=a.selected,t=q(p),u=a.options.allButtonsEnabled,w=a.buttons;a.buttonOptions.forEach(function(b,g){var r=b._range,n=b.type,q=b.count||1,z=w[g],v=0,B=b._offsetMax-b._offsetMin;b=g===p;var x=r>k-h,L=r<d.minRange,y=!1,K=!1;r=r===e;("month"===n||"year"===n)&&e+36E5>=864E5*{month:28,year:365}[n]*q-B&&e-36E5<=864E5*{month:31,year:366}[n]*q+B?r=!0:"ytd"===n?(r=m-l+B===e,y=!b):"all"===n&&(r=d.max-d.min>=k-h,K=!b&&t&&r);n=!u&&(x||L||K||f);q=b&&r||r&&!t&&!y||b&&a.frozenStates;
|
|
|
-n?v=3:q&&(t=!0,v=2);z.state!==v&&(z.setState(v),c&&(c.options[g+1].disabled=n,2===v&&(c.selectedIndex=g+1)),0===v&&p===g&&a.setSelected())})};h.prototype.computeButtonRange=function(a){var b=a.type,c=a.count||1,e={millisecond:1,second:1E3,minute:6E4,hour:36E5,day:864E5,week:6048E5};if(e[b])a._range=e[b]*c;else if("month"===b||"year"===b)a._range=864E5*{month:30,year:365}[b]*c;a._offsetMin=d(a.offsetMin,0);a._offsetMax=d(a.offsetMax,0);a._range+=a._offsetMax-a._offsetMin};h.prototype.getInputValue=
|
|
|
-function(a){a="min"===a?this.minInput:this.maxInput;var b=this.chart.options.rangeSelector,c=this.chart.time;return a?("text"===a.type&&b.inputDateParser||this.defaultInputDateParser)(a.value,c.useUTC,c):0};h.prototype.setInputValue=function(a,b){var c=this.options,d=this.chart.time,e="min"===a?this.minInput:this.maxInput;a="min"===a?this.minDateBox:this.maxDateBox;if(e){var g=e.getAttribute("data-hc-time");g=f(g)?Number(g):void 0;f(b)&&(f(g)&&e.setAttribute("data-hc-time-previous",g),e.setAttribute("data-hc-time",
|
|
|
-b),g=b);e.value=d.dateFormat(this.inputTypeFormats[e.type]||c.inputEditDateFormat,g);a&&a.attr({text:d.dateFormat(c.inputDateFormat,g)})}};h.prototype.setInputExtremes=function(a,b,c){if(a="min"===a?this.minInput:this.maxInput){var d=this.inputTypeFormats[a.type],e=this.chart.time;d&&(b=e.dateFormat(d,b),a.min!==b&&(a.min=b),c=e.dateFormat(d,c),a.max!==c&&(a.max=c))}};h.prototype.showInput=function(a){var b="min"===a?this.minDateBox:this.maxDateBox;if((a="min"===a?this.minInput:this.maxInput)&&b&&
|
|
|
-this.inputGroup){var c="text"===a.type,d=this.inputGroup,e=d.translateX;d=d.translateY;u(a,{width:c?b.width-2+"px":"auto",height:c?b.height-2+"px":"auto",border:"2px solid silver"});c?u(a,{left:e+b.x+"px",top:d+"px"}):u(a,{left:Math.min(Math.round(b.x+e-(a.offsetWidth-b.width)/2),this.chart.chartWidth-a.offsetWidth)+"px",top:d-(a.offsetHeight-b.height)/2+"px"})}};h.prototype.hideInput=function(a){(a="min"===a?this.minInput:this.maxInput)&&u(a,{top:"-9999em",border:0,width:"1px",height:"1px"})};h.prototype.defaultInputDateParser=
|
|
|
-function(a,b,c){var d=a.split("/").join("-").split(" ").join("T");-1===d.indexOf("T")&&(d+="T00:00");if(b)d+="Z";else{var e;if(e=F.isSafari)e=d,e=!(6<e.length&&(e.lastIndexOf("-")===e.length-6||e.lastIndexOf("+")===e.length-6));e&&(e=(new Date(d)).getTimezoneOffset()/60,d+=0>=e?"+"+k(-e)+":00":"-"+k(e)+":00")}d=Date.parse(d);q(d)||(a=a.split("-"),d=Date.UTC(y(a[0]),y(a[1])-1,y(a[2])));c&&b&&(d+=c.getTimezoneOffset(d));return d};h.prototype.drawInput=function(a){function b(){var b=f.getInputValue(a),
|
|
|
-d=c.xAxis[0],e=c.scroller&&c.scroller.xAxis?c.scroller.xAxis:d,g=e.dataMin;e=e.dataMax;var h=f.maxInput,k=f.minInput;b!==Number(w.getAttribute("data-hc-time-previous"))&&q(b)&&(w.setAttribute("data-hc-time-previous",b),n&&h&&q(g)?b>Number(h.getAttribute("data-hc-time"))?b=void 0:b<g&&(b=g):k&&q(e)&&(b<Number(k.getAttribute("data-hc-time"))?b=void 0:b>e&&(b=e)),"undefined"!==typeof b&&d.setExtremes(n?b:d.min,n?d.max:b,void 0,void 0,{trigger:"rangeSelectorInput"}))}var c=this.chart,d=this.div,e=this.inputGroup,
|
|
|
-f=this,h=c.renderer.style||{},k=c.renderer,l=c.options.rangeSelector,n="min"===a,t=A.lang[n?"rangeSelectorFrom":"rangeSelectorTo"];t=k.label(t,0).addClass("highcharts-range-label").attr({padding:t?2:0}).add(e);k=k.label("",0).addClass("highcharts-range-input").attr({padding:2,width:l.inputBoxWidth,height:l.inputBoxHeight,"text-align":"center"}).on("click",function(){f.showInput(a);f[a+"Input"].focus()});c.styledMode||k.attr({stroke:l.inputBoxBorderColor,"stroke-width":1});k.add(e);var w=g("input",
|
|
|
-{name:a,className:"highcharts-range-selector"},void 0,d);w.setAttribute("type",E(l.inputDateFormat||"%b %e, %Y"));c.styledMode||(t.css(p(h,l.labelStyle)),k.css(p({color:H.neutralColor80},h,l.inputStyle)),u(w,m({position:"absolute",border:0,boxShadow:"0 0 15px rgba(0,0,0,0.3)",width:"1px",height:"1px",padding:0,textAlign:"center",fontSize:h.fontSize,fontFamily:h.fontFamily,top:"-9999em"},l.inputStyle)));w.onfocus=function(){f.showInput(a)};w.onblur=function(){w===F.doc.activeElement&&b();f.hideInput(a);
|
|
|
-f.setInputValue(a);w.blur()};var x=!1;w.onchange=function(){b();x||(f.hideInput(a),w.blur())};w.onkeypress=function(a){13===a.keyCode&&b()};w.onkeydown=function(){x=!0};w.onkeyup=function(){x=!1};return{dateBox:k,input:w,label:t}};h.prototype.getPosition=function(){var a=this.chart,b=a.options.rangeSelector;a="top"===b.verticalAlign?a.plotTop-a.axisOffset[0]:0;return{buttonTop:a+b.buttonPosition.y,inputTop:a+b.inputPosition.y-10}};h.prototype.getYTDExtremes=function(a,b,c){var d=this.chart.time,e=
|
|
|
-new d.Date(a),f=d.get("FullYear",e);c=c?d.Date.UTC(f,0,1):+new d.Date(f,0,1);b=Math.max(b,c);e=e.getTime();return{max:Math.min(a||e,e),min:b}};h.prototype.render=function(a,b){var c=this.chart,e=c.renderer,h=c.container,k=c.options,l=k.rangeSelector,n=d(k.chart.style&&k.chart.style.zIndex,0)+1;k=l.inputEnabled;if(!1!==l.enabled){this.rendered||(this.group=e.g("range-selector-group").attr({zIndex:7}).add(),this.div=g("div",void 0,{position:"relative",height:0,zIndex:n}),this.buttonOptions.length&&
|
|
|
-this.renderButtons(),h.parentNode&&h.parentNode.insertBefore(this.div,h),k&&(this.inputGroup=e.g("input-group").add(this.group),e=this.drawInput("min"),this.minDateBox=e.dateBox,this.minLabel=e.label,this.minInput=e.input,e=this.drawInput("max"),this.maxDateBox=e.dateBox,this.maxLabel=e.label,this.maxInput=e.input));if(k&&(this.setInputValue("min",a),this.setInputValue("max",b),a=c.scroller&&c.scroller.getUnionExtremes()||c.xAxis[0]||{},f(a.dataMin)&&f(a.dataMax)&&(c=c.xAxis[0].minRange||0,this.setInputExtremes("min",
|
|
|
-a.dataMin,Math.min(a.dataMax,this.getInputValue("max"))-c),this.setInputExtremes("max",Math.max(a.dataMin,this.getInputValue("min"))+c,a.dataMax)),this.inputGroup)){var m=0;[this.minLabel,this.minDateBox,this.maxLabel,this.maxDateBox].forEach(function(a){a&&a.width&&(a.attr({x:m}),m+=a.width+l.inputSpacing)})}this.alignElements();this.rendered=!0}};h.prototype.renderButtons=function(){var a=this,b=this.buttons,c=this.options,e=A.lang,f=this.chart.renderer,h=p(c.buttonTheme),k=h&&h.states,l=h.width||
|
|
|
-28;delete h.width;this.buttonGroup=f.g("range-selector-buttons").add(this.group);var m=this.dropdown=g("select",void 0,{position:"absolute",width:"1px",height:"1px",padding:0,border:0,top:"-9999em",cursor:"pointer",opacity:.0001},this.div);x(m,"touchstart",function(){m.style.fontSize="16px"});[[F.isMS?"mouseover":"mouseenter"],[F.isMS?"mouseout":"mouseleave"],["change","click"]].forEach(function(c){var d=c[0],e=c[1];x(m,d,function(){var c=b[a.currentButtonIndex()];c&&G(c.element,e||d)})});this.zoomText=
|
|
|
-f.text(e.rangeSelectorZoom,0,15).add(this.buttonGroup);this.chart.styledMode||(this.zoomText.css(c.labelStyle),h["stroke-width"]=d(h["stroke-width"],0));g("option",{textContent:this.zoomText.textStr,disabled:!0},void 0,m);this.buttonOptions.forEach(function(c,d){g("option",{textContent:c.title||c.text},void 0,m);b[d]=f.button(c.text,0,0,function(b){var e=c.events&&c.events.click,f;e&&(f=e.call(c,b));!1!==f&&a.clickButton(d);a.isActive=!0},h,k&&k.hover,k&&k.select,k&&k.disabled).attr({"text-align":"center",
|
|
|
-width:l}).add(a.buttonGroup);c.title&&b[d].attr("title",c.title)})};h.prototype.alignElements=function(){var a=this,b=this.buttonGroup,c=this.buttons,e=this.chart,f=this.group,g=this.inputGroup,h=this.options,k=this.zoomText,l=e.options,m=l.exporting&&!1!==l.exporting.enabled&&l.navigation&&l.navigation.buttonOptions;l=h.buttonPosition;var p=h.inputPosition,q=h.verticalAlign,t=function(b,c){return m&&a.titleCollision(e)&&"top"===q&&"right"===c.align&&c.y-b.getBBox().height-12<(m.y||0)+(m.height||
|
|
|
-0)+e.spacing[0]?-40:0},u=e.plotLeft;if(f&&l&&p){var w=l.x-e.spacing[3];if(b){this.positionButtons();if(!this.initialButtonGroupWidth){var x=0;k&&(x+=k.getBBox().width+5);c.forEach(function(a,b){x+=a.width;b!==c.length-1&&(x+=h.buttonSpacing)});this.initialButtonGroupWidth=x}u-=e.spacing[3];this.updateButtonStates();k=t(b,l);this.alignButtonGroup(k);f.placed=b.placed=e.hasLoaded}b=0;g&&(b=t(g,p),"left"===p.align?w=u:"right"===p.align&&(w=-Math.max(e.axisOffset[1],-b)),g.align({y:p.y,width:g.getBBox().width,
|
|
|
-align:p.align,x:p.x+w-2},!0,e.spacingBox),g.placed=e.hasLoaded);this.handleCollision(b);f.align({verticalAlign:q},!0,e.spacingBox);g=f.alignAttr.translateY;b=f.getBBox().height+20;t=0;"bottom"===q&&(t=(t=e.legend&&e.legend.options)&&"bottom"===t.verticalAlign&&t.enabled&&!t.floating?e.legend.legendHeight+d(t.margin,10):0,b=b+t-20,t=g-b-(h.floating?0:h.y)-(e.titleOffset?e.titleOffset[2]:0)-10);if("top"===q)h.floating&&(t=0),e.titleOffset&&e.titleOffset[0]&&(t=e.titleOffset[0]),t+=e.margin[0]-e.spacing[0]||
|
|
|
-0;else if("middle"===q)if(p.y===l.y)t=g;else if(p.y||l.y)t=0>p.y||0>l.y?t-Math.min(p.y,l.y):g-b;f.translate(h.x,h.y+Math.floor(t));l=this.minInput;p=this.maxInput;g=this.dropdown;h.inputEnabled&&l&&p&&(l.style.marginTop=f.translateY+"px",p.style.marginTop=f.translateY+"px");g&&(g.style.marginTop=f.translateY+"px")}};h.prototype.alignButtonGroup=function(a,b){var c=this.chart,e=this.buttonGroup,f=this.options.buttonPosition,g=c.plotLeft-c.spacing[3],h=f.x-c.spacing[3];"right"===f.align?h+=a-g:"center"===
|
|
|
-f.align&&(h-=g/2);e&&e.align({y:f.y,width:d(b,this.initialButtonGroupWidth),align:f.align,x:h},!0,c.spacingBox)};h.prototype.positionButtons=function(){var a=this.buttons,b=this.chart,c=this.options,e=this.zoomText,f=b.hasLoaded?"animate":"attr",g=c.buttonPosition,h=b.plotLeft,k=h;e&&"hidden"!==e.visibility&&(e[f]({x:d(h+g.x,h)}),k+=g.x+e.getBBox().width+5);this.buttonOptions.forEach(function(b,d){if("hidden"!==a[d].visibility)a[d][f]({x:k}),k+=a[d].width+c.buttonSpacing;else a[d][f]({x:h})})};h.prototype.handleCollision=
|
|
|
-function(a){var b=this,c=this.chart,d=this.buttonGroup,e=this.inputGroup,f=this.options,g=f.buttonPosition,h=f.dropdown,k=f.inputPosition;f=function(){var a=0;b.buttons.forEach(function(b){b=b.getBBox();b.width>a&&(a=b.width)});return a};var l=function(b){if(e&&d){var c=e.alignAttr.translateX+e.alignOptions.x-a+e.getBBox().x+2,f=e.alignOptions.width,h=d.alignAttr.translateX+d.getBBox().x;return h+b>c&&c+f>h&&g.y<k.y+e.getBBox().height}return!1},m=function(){e&&d&&e.attr({translateX:e.alignAttr.translateX+
|
|
|
-(c.axisOffset[1]>=-a?0:-a),translateY:e.alignAttr.translateY+d.getBBox().height+10})};if(d){if("always"===h){this.collapseButtons(a);l(f())&&m();return}"never"===h&&this.expandButtons()}e&&d?k.align===g.align||l(this.initialButtonGroupWidth+20)?"responsive"===h?(this.collapseButtons(a),l(f())&&m()):m():"responsive"===h&&this.expandButtons():d&&"responsive"===h&&(this.initialButtonGroupWidth>c.plotWidth?this.collapseButtons(a):this.expandButtons())};h.prototype.collapseButtons=function(a){var b,c=
|
|
|
-this.buttons,d=this.buttonOptions,e=this.dropdown,f=this.options,g=this.zoomText,h=function(a){return{text:a?a+" \u25be":"\u25be",width:"auto",paddingLeft:8,paddingRight:8}};g&&g.hide();var k=!1;d.forEach(function(a,b){b=c[b];2!==b.state?b.hide():(b.show(),b.attr(h(a.text)),k=!0)});k||(e&&(e.selectedIndex=0),c[0].show(),c[0].attr(h(null===(b=this.zoomText)||void 0===b?void 0:b.textStr)));b=f.buttonPosition.align;this.positionButtons();"right"!==b&&"center"!==b||this.alignButtonGroup(a,c[this.currentButtonIndex()].getBBox().width);
|
|
|
-this.showDropdown()};h.prototype.expandButtons=function(){var a=this.buttons,b=this.buttonOptions,c=this.options,d=this.zoomText;this.hideDropdown();d&&d.show();b.forEach(function(b,d){d=a[d];d.show();d.attr({text:b.text,width:c.buttonTheme.width||28,paddingLeft:"unset",paddingRight:"unset"});2>d.state&&d.setState(0)});this.positionButtons()};h.prototype.currentButtonIndex=function(){var a=this.dropdown;return a&&0<a.selectedIndex?a.selectedIndex-1:0};h.prototype.showDropdown=function(){var a=this.buttonGroup,
|
|
|
-b=this.buttons,c=this.chart,d=this.dropdown;if(a&&d){var e=a.translateX;a=a.translateY;b=b[this.currentButtonIndex()].getBBox();u(d,{left:c.plotLeft+e+"px",top:a+.5+"px",width:b.width+"px",height:b.height+"px"});this.hasVisibleDropdown=!0}};h.prototype.hideDropdown=function(){var a=this.dropdown;a&&(u(a,{top:"-9999em",width:"1px",height:"1px"}),this.hasVisibleDropdown=!1)};h.prototype.getHeight=function(){var a=this.options,b=this.group,c=a.y,d=a.buttonPosition.y,e=a.inputPosition.y;if(a.height)return a.height;
|
|
|
-this.alignElements();a=b?b.getBBox(!0).height+13+c:0;b=Math.min(e,d);if(0>e&&0>d||0<e&&0<d)a+=Math.abs(b);return a};h.prototype.titleCollision=function(a){return!(a.options.title.text||a.options.subtitle.text)};h.prototype.update=function(a){var b=this.chart;p(!0,b.options.rangeSelector,a);this.destroy();this.init(b);this.render()};h.prototype.destroy=function(){var c=this,d=c.minInput,e=c.maxInput;c.eventsToUnbind&&(c.eventsToUnbind.forEach(function(a){return a()}),c.eventsToUnbind=void 0);w(c.buttons);
|
|
|
-d&&(d.onfocus=d.onblur=d.onchange=null);e&&(e.onfocus=e.onblur=e.onchange=null);a(c,function(a,d){a&&"chart"!==d&&(a instanceof J?a.destroy():a instanceof window.HTMLElement&&b(a));a!==h.prototype[d]&&(c[d]=null)},this)};return h}();h.prototype.defaultButtons=[{type:"month",count:1,text:"1m",title:"View 1 month"},{type:"month",count:3,text:"3m",title:"View 3 months"},{type:"month",count:6,text:"6m",title:"View 6 months"},{type:"ytd",text:"YTD",title:"View year to date"},{type:"year",count:1,text:"1y",
|
|
|
-title:"View 1 year"},{type:"all",text:"All",title:"View all"}];h.prototype.inputTypeFormats={"datetime-local":"%Y-%m-%dT%H:%M:%S",date:"%Y-%m-%d",time:"%H:%M:%S"};e.prototype.minFromRange=function(){var a=this.range,b=a.type,c=this.max,e=this.chart.time,f=function(a,c){var d="year"===b?"FullYear":"Month",f=new e.Date(a),g=e.get(d,f);e.set(d,f,g+c);g===e.get(d,f)&&e.set("Date",f,0);return f.getTime()-a};if(q(a)){var g=c-a;var h=a}else g=c+f(c,-a.count),this.chart&&(this.chart.fixedRange=c-g);var k=
|
|
|
-d(this.dataMin,Number.MIN_VALUE);q(g)||(g=k);g<=k&&(g=k,"undefined"===typeof h&&(h=f(g,a.count)),this.newMax=Math.min(g+h,this.dataMax));q(c)||(g=void 0);return g};if(!F.RangeSelector){var M=[],O=function(a){function b(){d&&(c=a.xAxis[0].getExtremes(),e=a.legend,g=null===d||void 0===d?void 0:d.options.verticalAlign,q(c.min)&&d.render(c.min,c.max),e.display&&"top"===g&&g===e.options.verticalAlign&&(f=p(a.spacingBox),f.y="vertical"===e.options.layout?a.plotTop:f.y+d.getHeight(),e.group.placed=!1,e.align(f)))}
|
|
|
-var c,d=a.rangeSelector,e,f,g;d&&(t(M,function(b){return b[0]===a})||M.push([a,[x(a.xAxis[0],"afterSetExtremes",function(a){d&&d.render(a.min,a.max)}),x(a,"redraw",b)]]),b())};x(l,"afterGetContainer",function(){var a;if(null===(a=this.options.rangeSelector)||void 0===a?0:a.enabled)this.rangeSelector=new h(this)});x(l,"beforeRender",function(){var a=this.axes,b=this.rangeSelector;b&&(q(b.deferredYTDClick)&&(b.clickButton(b.deferredYTDClick),delete b.deferredYTDClick),a.forEach(function(a){a.updateNames();
|
|
|
-a.setScale()}),this.getAxisMargins(),b.render(),a=b.options.verticalAlign,b.options.floating||("bottom"===a?this.extraBottomMargin=!0:"middle"!==a&&(this.extraTopMargin=!0)))});x(l,"update",function(a){var b=a.options.rangeSelector;a=this.rangeSelector;var c=this.extraBottomMargin,d=this.extraTopMargin;b&&b.enabled&&!f(a)&&this.options.rangeSelector&&(this.options.rangeSelector.enabled=!0,this.rangeSelector=a=new h(this));this.extraTopMargin=this.extraBottomMargin=!1;a&&(O(this),b=b&&b.verticalAlign||
|
|
|
-a.options&&a.options.verticalAlign,a.options.floating||("bottom"===b?this.extraBottomMargin=!0:"middle"!==b&&(this.extraTopMargin=!0)),this.extraBottomMargin!==c||this.extraTopMargin!==d)&&(this.isDirtyBox=!0)});x(l,"render",function(){var a=this.rangeSelector;a&&!a.options.floating&&(a.render(),a=a.options.verticalAlign,"bottom"===a?this.extraBottomMargin=!0:"middle"!==a&&(this.extraTopMargin=!0))});x(l,"getMargins",function(){var a=this.rangeSelector;a&&(a=a.getHeight(),this.extraTopMargin&&(this.plotTop+=
|
|
|
-a),this.extraBottomMargin&&(this.marginBottom+=a))});l.prototype.callbacks.push(O);x(l,"destroy",function(){for(var a=0;a<M.length;a++){var b=M[a];if(b[0]===this){b[1].forEach(function(a){return a()});M.splice(a,1);break}}});F.RangeSelector=h}return F.RangeSelector});O(e,"Core/Axis/NavigatorAxis.js",[e["Core/Globals.js"],e["Core/Utilities.js"]],function(e,l){var F=e.isTouchDevice,C=l.addEvent,H=l.correctFloat,G=l.defined,D=l.isNumber,E=l.pick,A=function(){function e(e){this.axis=e}e.prototype.destroy=
|
|
|
-function(){this.axis=void 0};e.prototype.toFixedRange=function(e,l,f,w){var b=this.axis,g=b.chart;g=g&&g.fixedRange;var t=(b.pointRange||0)/2;e=E(f,b.translate(e,!0,!b.horiz));l=E(w,b.translate(l,!0,!b.horiz));b=g&&(l-e)/g;G(f)||(e=H(e+t));G(w)||(l=H(l-t));.7<b&&1.3>b&&(w?e=l-g:l=e+g);D(e)&&D(l)||(e=l=void 0);return{min:e,max:l}};return e}();return function(){function e(){}e.compose=function(e){e.keepProps.push("navigatorAxis");C(e,"init",function(){this.navigatorAxis||(this.navigatorAxis=new A(this))});
|
|
|
-C(e,"zoom",function(e){var f=this.chart.options,g=f.navigator,b=this.navigatorAxis,l=f.chart.pinchType,t=f.rangeSelector;f=f.chart.zoomType;this.isXAxis&&(g&&g.enabled||t&&t.enabled)&&("y"===f?e.zoomed=!1:(!F&&"xy"===f||F&&"xy"===l)&&this.options.range&&(g=b.previousZoom,G(e.newMin)?b.previousZoom=[this.min,this.max]:g&&(e.newMin=g[0],e.newMax=g[1],b.previousZoom=void 0)));"undefined"!==typeof e.zoomed&&e.preventDefault()})};e.AdditionsClass=A;return e}()});O(e,"Core/Navigator.js",[e["Core/Axis/Axis.js"],
|
|
|
-e["Core/Chart/Chart.js"],e["Core/Color/Color.js"],e["Core/Globals.js"],e["Core/Axis/NavigatorAxis.js"],e["Core/Options.js"],e["Core/Color/Palette.js"],e["Core/Scrollbar.js"],e["Core/Series/Series.js"],e["Core/Series/SeriesRegistry.js"],e["Core/Utilities.js"]],function(e,l,F,C,H,J,D,E,A,x,g){F=F.parse;var u=C.hasTouch,f=C.isTouchDevice,w=J.defaultOptions,b=g.addEvent,m=g.clamp,t=g.correctFloat,G=g.defined,q=g.destroyObjectProperties,p=g.erase,a=g.extend,k=g.find,d=g.isArray,y=g.isNumber,c=g.merge,
|
|
|
-h=g.pick,M=g.removeEvent,O=g.splat,P=function(a){for(var b=[],c=1;c<arguments.length;c++)b[c-1]=arguments[c];b=[].filter.call(b,y);if(b.length)return Math[a].apply(0,b)};J="undefined"===typeof x.seriesTypes.areaspline?"line":"areaspline";a(w,{navigator:{height:40,margin:25,maskInside:!0,handles:{width:7,height:15,symbols:["navigator-handle","navigator-handle"],enabled:!0,lineWidth:1,backgroundColor:D.neutralColor5,borderColor:D.neutralColor40},maskFill:F(D.highlightColor60).setOpacity(.3).get(),outlineColor:D.neutralColor20,
|
|
|
-outlineWidth:1,series:{type:J,fillOpacity:.05,lineWidth:1,compare:null,dataGrouping:{approximation:"average",enabled:!0,groupPixelWidth:2,smoothed:!0,units:[["millisecond",[1,2,5,10,20,25,50,100,200,500]],["second",[1,2,5,10,15,30]],["minute",[1,2,5,10,15,30]],["hour",[1,2,3,4,6,8,12]],["day",[1,2,3,4]],["week",[1,2,3]],["month",[1,3,6]],["year",null]]},dataLabels:{enabled:!1,zIndex:2},id:"highcharts-navigator-series",className:"highcharts-navigator-series",lineColor:null,marker:{enabled:!1},threshold:null},
|
|
|
-xAxis:{overscroll:0,className:"highcharts-navigator-xaxis",tickLength:0,lineWidth:0,gridLineColor:D.neutralColor10,gridLineWidth:1,tickPixelInterval:200,labels:{align:"left",style:{color:D.neutralColor40},x:3,y:-4},crosshair:!1},yAxis:{className:"highcharts-navigator-yaxis",gridLineWidth:0,startOnTick:!1,endOnTick:!1,minPadding:.1,maxPadding:.1,labels:{enabled:!1},crosshair:!1,title:{text:null},tickLength:0,tickWidth:0}}});C.Renderer.prototype.symbols["navigator-handle"]=function(a,b,c,e,d){a=(d&&
|
|
|
-d.width||0)/2;b=Math.round(a/3)+.5;d=d&&d.height||0;return[["M",-a-1,.5],["L",a,.5],["L",a,d+.5],["L",-a-1,d+.5],["L",-a-1,.5],["M",-b,4],["L",-b,d-3],["M",b-1,4],["L",b-1,d-3]]};var n=function(){function g(a){this.zoomedMin=this.zoomedMax=this.yAxis=this.xAxis=this.top=this.size=this.shades=this.rendered=this.range=this.outlineHeight=this.outline=this.opposite=this.navigatorSize=this.navigatorSeries=this.navigatorOptions=this.navigatorGroup=this.navigatorEnabled=this.left=this.height=this.handles=
|
|
|
-this.chart=this.baseSeries=void 0;this.init(a)}g.prototype.drawHandle=function(a,b,c,e){var d=this.navigatorOptions.handles.height;this.handles[b][e](c?{translateX:Math.round(this.left+this.height/2),translateY:Math.round(this.top+parseInt(a,10)+.5-d)}:{translateX:Math.round(this.left+parseInt(a,10)),translateY:Math.round(this.top+this.height/2-d/2-1)})};g.prototype.drawOutline=function(a,b,c,e){var d=this.navigatorOptions.maskInside,f=this.outline.strokeWidth(),g=f/2,h=f%2/2;f=this.outlineHeight;
|
|
|
-var k=this.scrollbarHeight||0,l=this.size,m=this.left-k,r=this.top;c?(m-=g,c=r+b+h,b=r+a+h,h=[["M",m+f,r-k-h],["L",m+f,c],["L",m,c],["L",m,b],["L",m+f,b],["L",m+f,r+l+k]],d&&h.push(["M",m+f,c-g],["L",m+f,b+g])):(a+=m+k-h,b+=m+k-h,r+=g,h=[["M",m,r],["L",a,r],["L",a,r+f],["L",b,r+f],["L",b,r],["L",m+l+2*k,r]],d&&h.push(["M",a-g,r],["L",b+g,r]));this.outline[e]({d:h})};g.prototype.drawMasks=function(a,b,c,e){var d=this.left,f=this.top,g=this.height;if(c){var h=[d,d,d];var k=[f,f+a,f+b];var l=[g,g,g];
|
|
|
-var m=[a,b-a,this.size-b]}else h=[d,d+a,d+b],k=[f,f,f],l=[a,b-a,this.size-b],m=[g,g,g];this.shades.forEach(function(a,b){a[e]({x:h[b],y:k[b],width:l[b],height:m[b]})})};g.prototype.renderElements=function(){var a=this,b=a.navigatorOptions,c=b.maskInside,e=a.chart,d=e.renderer,f,g={cursor:e.inverted?"ns-resize":"ew-resize"};a.navigatorGroup=f=d.g("navigator").attr({zIndex:8,visibility:"hidden"}).add();[!c,c,!c].forEach(function(c,h){a.shades[h]=d.rect().addClass("highcharts-navigator-mask"+(1===h?
|
|
|
-"-inside":"-outside")).add(f);e.styledMode||a.shades[h].attr({fill:c?b.maskFill:"rgba(0,0,0,0)"}).css(1===h&&g)});a.outline=d.path().addClass("highcharts-navigator-outline").add(f);e.styledMode||a.outline.attr({"stroke-width":b.outlineWidth,stroke:b.outlineColor});b.handles.enabled&&[0,1].forEach(function(c){b.handles.inverted=e.inverted;a.handles[c]=d.symbol(b.handles.symbols[c],-b.handles.width/2-1,0,b.handles.width,b.handles.height,b.handles);a.handles[c].attr({zIndex:7-c}).addClass("highcharts-navigator-handle highcharts-navigator-handle-"+
|
|
|
-["left","right"][c]).add(f);if(!e.styledMode){var h=b.handles;a.handles[c].attr({fill:h.backgroundColor,stroke:h.borderColor,"stroke-width":h.lineWidth}).css(g)}})};g.prototype.update=function(a){(this.series||[]).forEach(function(a){a.baseSeries&&delete a.baseSeries.navigatorSeries});this.destroy();c(!0,this.chart.options.navigator,this.options,a);this.init(this.chart)};g.prototype.render=function(a,b,c,e){var d=this.chart,f=this.scrollbarHeight,g,k=this.xAxis,l=k.pointRange||0;var r=k.navigatorAxis.fake?
|
|
|
-d.xAxis[0]:k;var n=this.navigatorEnabled,p,q=this.rendered;var u=d.inverted;var z=d.xAxis[0].minRange,w=d.xAxis[0].options.maxRange;if(!this.hasDragged||G(c)){a=t(a-l/2);b=t(b+l/2);if(!y(a)||!y(b))if(q)c=0,e=h(k.width,r.width);else return;this.left=h(k.left,d.plotLeft+f+(u?d.plotWidth:0));this.size=p=g=h(k.len,(u?d.plotHeight:d.plotWidth)-2*f);d=u?f:g+2*f;c=h(c,k.toPixels(a,!0));e=h(e,k.toPixels(b,!0));y(c)&&Infinity!==Math.abs(c)||(c=0,e=d);a=k.toValue(c,!0);b=k.toValue(e,!0);var x=Math.abs(t(b-
|
|
|
-a));x<z?this.grabbedLeft?c=k.toPixels(b-z-l,!0):this.grabbedRight&&(e=k.toPixels(a+z+l,!0)):G(w)&&t(x-l)>w&&(this.grabbedLeft?c=k.toPixels(b-w-l,!0):this.grabbedRight&&(e=k.toPixels(a+w+l,!0)));this.zoomedMax=m(Math.max(c,e),0,p);this.zoomedMin=m(this.fixedWidth?this.zoomedMax-this.fixedWidth:Math.min(c,e),0,p);this.range=this.zoomedMax-this.zoomedMin;p=Math.round(this.zoomedMax);c=Math.round(this.zoomedMin);n&&(this.navigatorGroup.attr({visibility:"visible"}),q=q&&!this.hasDragged?"animate":"attr",
|
|
|
-this.drawMasks(c,p,u,q),this.drawOutline(c,p,u,q),this.navigatorOptions.handles.enabled&&(this.drawHandle(c,0,u,q),this.drawHandle(p,1,u,q)));this.scrollbar&&(u?(u=this.top-f,r=this.left-f+(n||!r.opposite?0:(r.titleOffset||0)+r.axisTitleMargin),f=g+2*f):(u=this.top+(n?this.height:-f),r=this.left-f),this.scrollbar.position(r,u,d,f),this.scrollbar.setRange(this.zoomedMin/(g||1),this.zoomedMax/(g||1)));this.rendered=!0}};g.prototype.addMouseEvents=function(){var a=this,c=a.chart,e=c.container,d=[],f,
|
|
|
-g;a.mouseMoveHandler=f=function(b){a.onMouseMove(b)};a.mouseUpHandler=g=function(b){a.onMouseUp(b)};d=a.getPartsEvents("mousedown");d.push(b(c.renderTo,"mousemove",f),b(e.ownerDocument,"mouseup",g));u&&(d.push(b(c.renderTo,"touchmove",f),b(e.ownerDocument,"touchend",g)),d.concat(a.getPartsEvents("touchstart")));a.eventsToUnbind=d;a.series&&a.series[0]&&d.push(b(a.series[0].xAxis,"foundExtremes",function(){c.navigator.modifyNavigatorAxisExtremes()}))};g.prototype.getPartsEvents=function(a){var c=this,
|
|
|
-d=[];["shades","handles"].forEach(function(e){c[e].forEach(function(f,g){d.push(b(f.element,a,function(a){c[e+"Mousedown"](a,g)}))})});return d};g.prototype.shadesMousedown=function(a,b){a=this.chart.pointer.normalize(a);var c=this.chart,d=this.xAxis,e=this.zoomedMin,f=this.left,g=this.size,h=this.range,k=a.chartX;c.inverted&&(k=a.chartY,f=this.top);if(1===b)this.grabbedCenter=k,this.fixedWidth=h,this.dragOffset=k-e;else{a=k-f-h/2;if(0===b)a=Math.max(0,a);else if(2===b&&a+h>=g)if(a=g-h,this.reversedExtremes){a-=
|
|
|
-h;var l=this.getUnionExtremes().dataMin}else var m=this.getUnionExtremes().dataMax;a!==e&&(this.fixedWidth=h,b=d.navigatorAxis.toFixedRange(a,a+h,l,m),G(b.min)&&c.xAxis[0].setExtremes(Math.min(b.min,b.max),Math.max(b.min,b.max),!0,null,{trigger:"navigator"}))}};g.prototype.handlesMousedown=function(a,b){this.chart.pointer.normalize(a);a=this.chart;var c=a.xAxis[0],d=this.reversedExtremes;0===b?(this.grabbedLeft=!0,this.otherHandlePos=this.zoomedMax,this.fixedExtreme=d?c.min:c.max):(this.grabbedRight=
|
|
|
-!0,this.otherHandlePos=this.zoomedMin,this.fixedExtreme=d?c.max:c.min);a.fixedRange=null};g.prototype.onMouseMove=function(a){var b=this,c=b.chart,d=b.left,e=b.navigatorSize,g=b.range,k=b.dragOffset,l=c.inverted;a.touches&&0===a.touches[0].pageX||(a=c.pointer.normalize(a),c=a.chartX,l&&(d=b.top,c=a.chartY),b.grabbedLeft?(b.hasDragged=!0,b.render(0,0,c-d,b.otherHandlePos)):b.grabbedRight?(b.hasDragged=!0,b.render(0,0,b.otherHandlePos,c-d)):b.grabbedCenter&&(b.hasDragged=!0,c<k?c=k:c>e+k-g&&(c=e+k-
|
|
|
-g),b.render(0,0,c-k,c-k+g)),b.hasDragged&&b.scrollbar&&h(b.scrollbar.options.liveRedraw,C.svg&&!f&&!this.chart.isBoosting)&&(a.DOMType=a.type,setTimeout(function(){b.onMouseUp(a)},0)))};g.prototype.onMouseUp=function(a){var b=this.chart,c=this.xAxis,d=this.scrollbar,e=a.DOMEvent||a,f=b.inverted,g=this.rendered&&!this.hasDragged?"animate":"attr";if(this.hasDragged&&(!d||!d.hasDragged)||"scrollbar"===a.trigger){d=this.getUnionExtremes();if(this.zoomedMin===this.otherHandlePos)var h=this.fixedExtreme;
|
|
|
-else if(this.zoomedMax===this.otherHandlePos)var k=this.fixedExtreme;this.zoomedMax===this.size&&(k=this.reversedExtremes?d.dataMin:d.dataMax);0===this.zoomedMin&&(h=this.reversedExtremes?d.dataMax:d.dataMin);c=c.navigatorAxis.toFixedRange(this.zoomedMin,this.zoomedMax,h,k);G(c.min)&&b.xAxis[0].setExtremes(Math.min(c.min,c.max),Math.max(c.min,c.max),!0,this.hasDragged?!1:null,{trigger:"navigator",triggerOp:"navigator-drag",DOMEvent:e})}"mousemove"!==a.DOMType&&"touchmove"!==a.DOMType&&(this.grabbedLeft=
|
|
|
-this.grabbedRight=this.grabbedCenter=this.fixedWidth=this.fixedExtreme=this.otherHandlePos=this.hasDragged=this.dragOffset=null);this.navigatorEnabled&&y(this.zoomedMin)&&y(this.zoomedMax)&&(b=Math.round(this.zoomedMin),a=Math.round(this.zoomedMax),this.shades&&this.drawMasks(b,a,f,g),this.outline&&this.drawOutline(b,a,f,g),this.navigatorOptions.handles.enabled&&Object.keys(this.handles).length===this.handles.length&&(this.drawHandle(b,0,f,g),this.drawHandle(a,1,f,g)))};g.prototype.removeEvents=function(){this.eventsToUnbind&&
|
|
|
-(this.eventsToUnbind.forEach(function(a){a()}),this.eventsToUnbind=void 0);this.removeBaseSeriesEvents()};g.prototype.removeBaseSeriesEvents=function(){var a=this.baseSeries||[];this.navigatorEnabled&&a[0]&&(!1!==this.navigatorOptions.adaptToUpdatedData&&a.forEach(function(a){M(a,"updatedData",this.updatedDataHandler)},this),a[0].xAxis&&M(a[0].xAxis,"foundExtremes",this.modifyBaseAxisExtremes))};g.prototype.init=function(a){var d=a.options,f=d.navigator,g=f.enabled,k=d.scrollbar,l=k.enabled;d=g?f.height:
|
|
|
-0;var m=l?k.height:0;this.handles=[];this.shades=[];this.chart=a;this.setBaseSeries();this.height=d;this.scrollbarHeight=m;this.scrollbarEnabled=l;this.navigatorEnabled=g;this.navigatorOptions=f;this.scrollbarOptions=k;this.outlineHeight=d+m;this.opposite=h(f.opposite,!(g||!a.inverted));var n=this;g=n.baseSeries;k=a.xAxis.length;l=a.yAxis.length;var p=g&&g[0]&&g[0].xAxis||a.xAxis[0]||{options:{}};a.isDirtyBox=!0;n.navigatorEnabled?(n.xAxis=new e(a,c({breaks:p.options.breaks,ordinal:p.options.ordinal},
|
|
|
-f.xAxis,{id:"navigator-x-axis",yAxis:"navigator-y-axis",isX:!0,type:"datetime",index:k,isInternal:!0,offset:0,keepOrdinalPadding:!0,startOnTick:!1,endOnTick:!1,minPadding:0,maxPadding:0,zoomEnabled:!1},a.inverted?{offsets:[m,0,-m,0],width:d}:{offsets:[0,-m,0,m],height:d})),n.yAxis=new e(a,c(f.yAxis,{id:"navigator-y-axis",alignTicks:!1,offset:0,index:l,isInternal:!0,reversed:h(f.yAxis&&f.yAxis.reversed,a.yAxis[0]&&a.yAxis[0].reversed,!1),zoomEnabled:!1},a.inverted?{width:d}:{height:d})),g||f.series.data?
|
|
|
-n.updateNavigatorSeries(!1):0===a.series.length&&(n.unbindRedraw=b(a,"beforeRedraw",function(){0<a.series.length&&!n.series&&(n.setBaseSeries(),n.unbindRedraw())})),n.reversedExtremes=a.inverted&&!n.xAxis.reversed||!a.inverted&&n.xAxis.reversed,n.renderElements(),n.addMouseEvents()):(n.xAxis={chart:a,navigatorAxis:{fake:!0},translate:function(b,c){var d=a.xAxis[0],e=d.getExtremes(),f=d.len-2*m,g=P("min",d.options.min,e.dataMin);d=P("max",d.options.max,e.dataMax)-g;return c?b*d/f+g:f*(b-g)/d},toPixels:function(a){return this.translate(a)},
|
|
|
-toValue:function(a){return this.translate(a,!0)}},n.xAxis.navigatorAxis.axis=n.xAxis,n.xAxis.navigatorAxis.toFixedRange=H.AdditionsClass.prototype.toFixedRange.bind(n.xAxis.navigatorAxis));a.options.scrollbar.enabled&&(a.scrollbar=n.scrollbar=new E(a.renderer,c(a.options.scrollbar,{margin:n.navigatorEnabled?0:10,vertical:a.inverted}),a),b(n.scrollbar,"changed",function(b){var c=n.size,d=c*this.to;c*=this.from;n.hasDragged=n.scrollbar.hasDragged;n.render(0,0,c,d);(a.options.scrollbar.liveRedraw||"mousemove"!==
|
|
|
-b.DOMType&&"touchmove"!==b.DOMType)&&setTimeout(function(){n.onMouseUp(b)})}));n.addBaseSeriesEvents();n.addChartEvents()};g.prototype.getUnionExtremes=function(a){var b=this.chart.xAxis[0],c=this.xAxis,d=c.options,e=b.options,f;a&&null===b.dataMin||(f={dataMin:h(d&&d.min,P("min",e.min,b.dataMin,c.dataMin,c.min)),dataMax:h(d&&d.max,P("max",e.max,b.dataMax,c.dataMax,c.max))});return f};g.prototype.setBaseSeries=function(a,b){var c=this.chart,d=this.baseSeries=[];a=a||c.options&&c.options.navigator.baseSeries||
|
|
|
-(c.series.length?k(c.series,function(a){return!a.options.isInternal}).index:0);(c.series||[]).forEach(function(b,c){b.options.isInternal||!b.options.showInNavigator&&(c!==a&&b.options.id!==a||!1===b.options.showInNavigator)||d.push(b)});this.xAxis&&!this.xAxis.navigatorAxis.fake&&this.updateNavigatorSeries(!0,b)};g.prototype.updateNavigatorSeries=function(b,e){var f=this,g=f.chart,k=f.baseSeries,l,m,n=f.navigatorOptions.series,p,r={enableMouseTracking:!1,index:null,linkedTo:null,group:"nav",padXAxis:!1,
|
|
|
-xAxis:"navigator-x-axis",yAxis:"navigator-y-axis",showInLegend:!1,stacking:void 0,isInternal:!0,states:{inactive:{opacity:1}}},q=f.series=(f.series||[]).filter(function(a){var b=a.baseSeries;return 0>k.indexOf(b)?(b&&(M(b,"updatedData",f.updatedDataHandler),delete b.navigatorSeries),a.chart&&a.destroy(),!1):!0});k&&k.length&&k.forEach(function(b){var t=b.navigatorSeries,u=a({color:b.color,visible:b.visible},d(n)?w.navigator.series:n);t&&!1===f.navigatorOptions.adaptToUpdatedData||(r.name="Navigator "+
|
|
|
-k.length,l=b.options||{},p=l.navigatorOptions||{},m=c(l,r,u,p),m.pointRange=h(u.pointRange,p.pointRange,w.plotOptions[m.type||"line"].pointRange),u=p.data||u.data,f.hasNavigatorData=f.hasNavigatorData||!!u,m.data=u||l.data&&l.data.slice(0),t&&t.options?t.update(m,e):(b.navigatorSeries=g.initSeries(m),b.navigatorSeries.baseSeries=b,q.push(b.navigatorSeries)))});if(n.data&&(!k||!k.length)||d(n))f.hasNavigatorData=!1,n=O(n),n.forEach(function(a,b){r.name="Navigator "+(q.length+1);m=c(w.navigator.series,
|
|
|
-{color:g.series[b]&&!g.series[b].options.isInternal&&g.series[b].color||g.options.colors[b]||g.options.colors[0]},r,a);m.data=a.data;m.data&&(f.hasNavigatorData=!0,q.push(g.initSeries(m)))});b&&this.addBaseSeriesEvents()};g.prototype.addBaseSeriesEvents=function(){var a=this,c=a.baseSeries||[];c[0]&&c[0].xAxis&&b(c[0].xAxis,"foundExtremes",this.modifyBaseAxisExtremes);c.forEach(function(c){b(c,"show",function(){this.navigatorSeries&&this.navigatorSeries.setVisible(!0,!1)});b(c,"hide",function(){this.navigatorSeries&&
|
|
|
-this.navigatorSeries.setVisible(!1,!1)});!1!==this.navigatorOptions.adaptToUpdatedData&&c.xAxis&&b(c,"updatedData",this.updatedDataHandler);b(c,"remove",function(){this.navigatorSeries&&(p(a.series,this.navigatorSeries),G(this.navigatorSeries.options)&&this.navigatorSeries.remove(!1),delete this.navigatorSeries)})},this)};g.prototype.getBaseSeriesMin=function(a){return this.baseSeries.reduce(function(a,b){return Math.min(a,b.xData?b.xData[0]:a)},a)};g.prototype.modifyNavigatorAxisExtremes=function(){var a=
|
|
|
-this.xAxis,b;"undefined"!==typeof a.getExtremes&&(!(b=this.getUnionExtremes(!0))||b.dataMin===a.min&&b.dataMax===a.max||(a.min=b.dataMin,a.max=b.dataMax))};g.prototype.modifyBaseAxisExtremes=function(){var a=this.chart.navigator,b=this.getExtremes(),c=b.dataMin,d=b.dataMax;b=b.max-b.min;var e=a.stickToMin,f=a.stickToMax,g=h(this.options.overscroll,0),k=a.series&&a.series[0],l=!!this.setExtremes;if(!this.eventArgs||"rangeSelectorButton"!==this.eventArgs.trigger){if(e){var m=c;var n=m+b}f&&(n=d+g,e||
|
|
|
-(m=Math.max(c,n-b,a.getBaseSeriesMin(k&&k.xData?k.xData[0]:-Number.MAX_VALUE))));l&&(e||f)&&y(m)&&(this.min=this.userMin=m,this.max=this.userMax=n)}a.stickToMin=a.stickToMax=null};g.prototype.updatedDataHandler=function(){var a=this.chart.navigator,b=this.navigatorSeries,c=a.getBaseSeriesMin(this.xData[0]);a.stickToMax=a.reversedExtremes?0===Math.round(a.zoomedMin):Math.round(a.zoomedMax)>=Math.round(a.size);a.stickToMin=y(this.xAxis.min)&&this.xAxis.min<=c&&(!this.chart.fixedRange||!a.stickToMax);
|
|
|
-b&&!a.hasNavigatorData&&(b.options.pointStart=this.xData[0],b.setData(this.options.data,!1,null,!1))};g.prototype.addChartEvents=function(){this.eventsToUnbind||(this.eventsToUnbind=[]);this.eventsToUnbind.push(b(this.chart,"redraw",function(){var a=this.navigator,b=a&&(a.baseSeries&&a.baseSeries[0]&&a.baseSeries[0].xAxis||this.xAxis[0]);b&&a.render(b.min,b.max)}),b(this.chart,"getMargins",function(){var a=this.navigator,b=a.opposite?"plotTop":"marginBottom";this.inverted&&(b=a.opposite?"marginRight":
|
|
|
-"plotLeft");this[b]=(this[b]||0)+(a.navigatorEnabled||!this.inverted?a.outlineHeight:0)+a.navigatorOptions.margin}))};g.prototype.destroy=function(){this.removeEvents();this.xAxis&&(p(this.chart.xAxis,this.xAxis),p(this.chart.axes,this.xAxis));this.yAxis&&(p(this.chart.yAxis,this.yAxis),p(this.chart.axes,this.yAxis));(this.series||[]).forEach(function(a){a.destroy&&a.destroy()});"series xAxis yAxis shades outline scrollbarTrack scrollbarRifles scrollbarGroup scrollbar navigatorGroup rendered".split(" ").forEach(function(a){this[a]&&
|
|
|
-this[a].destroy&&this[a].destroy();this[a]=null},this);[this.handles].forEach(function(a){q(a)},this)};return g}();C.Navigator||(C.Navigator=n,H.compose(e),b(l,"beforeShowResetZoom",function(){var a=this.options,b=a.navigator,c=a.rangeSelector;if((b&&b.enabled||c&&c.enabled)&&(!f&&"x"===a.chart.zoomType||f&&"x"===a.chart.pinchType))return!1}),b(l,"beforeRender",function(){var a=this.options;if(a.navigator.enabled||a.scrollbar.enabled)this.scroller=this.navigator=new n(this)}),b(l,"afterSetChartSize",
|
|
|
-function(){var a=this.legend,b=this.navigator;if(b){var c=a&&a.options;var d=b.xAxis;var e=b.yAxis;var f=b.scrollbarHeight;this.inverted?(b.left=b.opposite?this.chartWidth-f-b.height:this.spacing[3]+f,b.top=this.plotTop+f):(b.left=this.plotLeft+f,b.top=b.navigatorOptions.top||this.chartHeight-b.height-f-this.spacing[2]-(this.rangeSelector&&this.extraBottomMargin?this.rangeSelector.getHeight():0)-(c&&"bottom"===c.verticalAlign&&"proximate"!==c.layout&&c.enabled&&!c.floating?a.legendHeight+h(c.margin,
|
|
|
-10):0)-(this.titleOffset?this.titleOffset[2]:0));d&&e&&(this.inverted?d.options.left=e.options.left=b.left:d.options.top=e.options.top=b.top,d.setAxisSize(),e.setAxisSize())}}),b(l,"update",function(a){var b=a.options.navigator||{},d=a.options.scrollbar||{};this.navigator||this.scroller||!b.enabled&&!d.enabled||(c(!0,this.options.navigator,b),c(!0,this.options.scrollbar,d),delete a.options.navigator,delete a.options.scrollbar)}),b(l,"afterUpdate",function(a){this.navigator||this.scroller||!this.options.navigator.enabled&&
|
|
|
-!this.options.scrollbar.enabled||(this.scroller=this.navigator=new n(this),h(a.redraw,!0)&&this.redraw(a.animation))}),b(l,"afterAddSeries",function(){this.navigator&&this.navigator.setBaseSeries(null,!1)}),b(A,"afterUpdate",function(){this.chart.navigator&&!this.options.isInternal&&this.chart.navigator.setBaseSeries(null,!1)}),l.prototype.callbacks.push(function(a){var b=a.navigator;b&&a.xAxis[0]&&(a=a.xAxis[0].getExtremes(),b.render(a.min,a.max))}));C.Navigator=n;return C.Navigator});O(e,"masters/modules/gantt.src.js",
|
|
|
-[],function(){});O(e,"masters/highcharts-gantt.src.js",[e["masters/highcharts.src.js"]],function(e){e.product="Highcharts Gantt";return e});e["masters/highcharts-gantt.src.js"]._modules=e;return e["masters/highcharts-gantt.src.js"]});
|
|
|
+(function(Y,P){"object"===typeof module&&module.exports?(P["default"]=P,module.exports=Y.document?P(Y):P):"function"===typeof define&&define.amd?define("highcharts/highcharts-gantt",function(){return P(Y)}):(Y.Highcharts&&Y.Highcharts.error(16,!0),Y.Highcharts=P(Y))})("undefined"!==typeof window?window:this,function(Y){function P(e,h,D,y){e.hasOwnProperty(h)||(e[h]=y.apply(null,D))}var e={};P(e,"Core/Globals.js",[],function(){var e="undefined"!==typeof Y?Y:"undefined"!==typeof window?window:{},h;
|
|
|
+(function(h){h.SVG_NS="http://www.w3.org/2000/svg";h.product="Highcharts";h.version="9.1.0";h.win=e;h.doc=h.win.document;h.svg=h.doc&&h.doc.createElementNS&&!!h.doc.createElementNS(h.SVG_NS,"svg").createSVGRect;h.userAgent=h.win.navigator&&h.win.navigator.userAgent||"";h.isChrome=-1!==h.userAgent.indexOf("Chrome");h.isFirefox=-1!==h.userAgent.indexOf("Firefox");h.isMS=/(edge|msie|trident)/i.test(h.userAgent)&&!h.win.opera;h.isSafari=!h.isChrome&&-1!==h.userAgent.indexOf("Safari");h.isTouchDevice=
|
|
|
+/(Mobile|Android|Windows Phone)/.test(h.userAgent);h.isWebKit=-1!==h.userAgent.indexOf("AppleWebKit");h.deg2rad=2*Math.PI/360;h.hasBidiBug=h.isFirefox&&4>parseInt(h.userAgent.split("Firefox/")[1],10);h.hasTouch=!!h.win.TouchEvent;h.marginNames=["plotTop","marginRight","marginBottom","plotLeft"];h.noop=function(){};h.supportsPassiveEvents=function(){var e=!1;if(!h.isMS){var Q=Object.defineProperty({},"passive",{get:function(){e=!0}});h.win.addEventListener&&h.win.removeEventListener&&(h.win.addEventListener("testPassive",
|
|
|
+h.noop,Q),h.win.removeEventListener("testPassive",h.noop,Q))}return e}();h.charts=[];h.dateFormats={};h.seriesTypes={};h.symbolSizes={}})(h||(h={}));return h});P(e,"Core/Utilities.js",[e["Core/Globals.js"]],function(e){function h(p,a,c,g){var r=a?"Highcharts error":"Highcharts warning";32===p&&(p=r+": Deprecated member");var v=z(p),L=v?r+" #"+p+": www.highcharts.com/errors/"+p+"/":p.toString();if("undefined"!==typeof g){var H="";v&&(L+="?");d(g,function(x,p){H+="\n - "+p+": "+x;v&&(L+=encodeURI(p)+
|
|
|
+"="+encodeURI(x))});L+=H}n(Highcharts,"displayError",{chart:c,code:p,message:L,params:g},function(){if(a)throw Error(L);q.console&&-1===h.messages.indexOf(L)&&console.warn(L)});h.messages.push(L)}function Q(p,a){var c={};d(p,function(r,g){if(C(p[g],!0)&&!p.nodeType&&a[g])r=Q(p[g],a[g]),Object.keys(r).length&&(c[g]=r);else if(C(p[g])||p[g]!==a[g])c[g]=p[g]});return c}function y(p,a){return parseInt(p,a||10)}function F(p){return"string"===typeof p}function E(p){p=Object.prototype.toString.call(p);return"[object Array]"===
|
|
|
+p||"[object Array Iterator]"===p}function C(p,a){return!!p&&"object"===typeof p&&(!a||!E(p))}function G(p){return C(p)&&"number"===typeof p.nodeType}function t(p){var a=p&&p.constructor;return!(!C(p,!0)||G(p)||!a||!a.name||"Object"===a.name)}function z(p){return"number"===typeof p&&!isNaN(p)&&Infinity>p&&-Infinity<p}function m(p){return"undefined"!==typeof p&&null!==p}function f(p,a,c){var r;F(a)?m(c)?p.setAttribute(a,c):p&&p.getAttribute&&((r=p.getAttribute(a))||"class"!==a||(r=p.getAttribute(a+
|
|
|
+"Name"))):d(a,function(a,c){p.setAttribute(c,a)});return r}function b(p,a){var c;p||(p={});for(c in a)p[c]=a[c];return p}function A(){for(var p=arguments,a=p.length,c=0;c<a;c++){var g=p[c];if("undefined"!==typeof g&&null!==g)return g}}function u(p,a){e.isMS&&!e.svg&&a&&"undefined"!==typeof a.opacity&&(a.filter="alpha(opacity="+100*a.opacity+")");b(p.style,a)}function l(a,r,g,v,d){a=c.createElement(a);r&&b(a,r);d&&u(a,{padding:"0",border:"none",margin:"0"});g&&u(a,g);v&&v.appendChild(a);return a}function I(a,
|
|
|
+c){return parseFloat(a.toPrecision(c||14))}function k(a,c,g){var p=e.getStyle||k;if("width"===c)return c=Math.min(a.offsetWidth,a.scrollWidth),g=a.getBoundingClientRect&&a.getBoundingClientRect().width,g<c&&g>=c-1&&(c=Math.floor(g)),Math.max(0,c-(p(a,"padding-left",!0)||0)-(p(a,"padding-right",!0)||0));if("height"===c)return Math.max(0,Math.min(a.offsetHeight,a.scrollHeight)-(p(a,"padding-top",!0)||0)-(p(a,"padding-bottom",!0)||0));q.getComputedStyle||h(27,!0);if(a=q.getComputedStyle(a,void 0)){var r=
|
|
|
+a.getPropertyValue(c);A(g,"opacity"!==c)&&(r=y(r))}return r}function d(a,c,g){for(var p in a)Object.hasOwnProperty.call(a,p)&&c.call(g||a[p],a[p],p,a)}function w(a,c,g){function p(H,x){var c=a.removeEventListener||e.removeEventListenerPolyfill;c&&c.call(a,H,x,!1)}function r(H){var x;if(a.nodeName){if(c){var g={};g[c]=!0}else g=H;d(g,function(a,c){if(H[c])for(x=H[c].length;x--;)p(c,H[c][x].fn)})}}var q="function"===typeof a&&a.prototype||a;if(Object.hasOwnProperty.call(q,"hcEvents")){var L=q.hcEvents;
|
|
|
+c?(q=L[c]||[],g?(L[c]=q.filter(function(H){return g!==H.fn}),p(c,g)):(r(L),L[c]=[])):(r(L),delete q.hcEvents)}}function n(a,g,d,v){d=d||{};if(c.createEvent&&(a.dispatchEvent||a.fireEvent&&a!==e)){var p=c.createEvent("Events");p.initEvent(g,!0,!0);d=b(p,d);a.dispatchEvent?a.dispatchEvent(d):a.fireEvent(g,d)}else if(a.hcEvents){d.target||b(d,{preventDefault:function(){d.defaultPrevented=!0},target:a,type:g});p=[];for(var r=a,L=!1;r.hcEvents;)Object.hasOwnProperty.call(r,"hcEvents")&&r.hcEvents[g]&&
|
|
|
+(p.length&&(L=!0),p.unshift.apply(p,r.hcEvents[g])),r=Object.getPrototypeOf(r);L&&p.sort(function(H,x){return H.order-x.order});p.forEach(function(H){!1===H.fn.call(a,d)&&d.preventDefault()})}v&&!d.defaultPrevented&&v.call(a,d)}var g=e.charts,c=e.doc,q=e.win;"";(h||(h={})).messages=[];var a;Math.easeInOutSine=function(a){return-.5*(Math.cos(Math.PI*a)-1)};var B=Array.prototype.find?function(a,c){return a.find(c)}:function(a,c){var p,g=a.length;for(p=0;p<g;p++)if(c(a[p],p))return a[p]};d({map:"map",
|
|
|
+each:"forEach",grep:"filter",reduce:"reduce",some:"some"},function(a,c){e[c]=function(p){var g;h(32,!1,void 0,(g={},g["Highcharts."+c]="use Array."+a,g));return Array.prototype[a].apply(p,[].slice.call(arguments,1))}});var J,O=function(){var a=Math.random().toString(36).substring(2,9)+"-",c=0;return function(){return"highcharts-"+(J?"":a)+c++}}();q.jQuery&&(q.jQuery.fn.highcharts=function(){var a=[].slice.call(arguments);if(this[0])return a[0]?(new (e[F(a[0])?a.shift():"Chart"])(this[0],a[0],a[1]),
|
|
|
+this):g[f(this[0],"data-highcharts-chart")]});return{addEvent:function(a,c,g,d){void 0===d&&(d={});var p="function"===typeof a&&a.prototype||a;Object.hasOwnProperty.call(p,"hcEvents")||(p.hcEvents={});p=p.hcEvents;e.Point&&a instanceof e.Point&&a.series&&a.series.chart&&(a.series.chart.runTrackerClick=!0);var r=a.addEventListener||e.addEventListenerPolyfill;r&&r.call(a,c,g,e.supportsPassiveEvents?{passive:void 0===d.passive?-1!==c.indexOf("touch"):d.passive,capture:!1}:!1);p[c]||(p[c]=[]);p[c].push({fn:g,
|
|
|
+order:"number"===typeof d.order?d.order:Infinity});p[c].sort(function(a,H){return a.order-H.order});return function(){w(a,c,g)}},arrayMax:function(a){for(var c=a.length,p=a[0];c--;)a[c]>p&&(p=a[c]);return p},arrayMin:function(a){for(var c=a.length,p=a[0];c--;)a[c]<p&&(p=a[c]);return p},attr:f,clamp:function(a,c,g){return a>c?a<g?a:g:c},cleanRecursively:Q,clearTimeout:function(a){m(a)&&clearTimeout(a)},correctFloat:I,createElement:l,css:u,defined:m,destroyObjectProperties:function(a,c){d(a,function(g,
|
|
|
+p){g&&g!==c&&g.destroy&&g.destroy();delete a[p]})},discardElement:function(c){a||(a=l("div"));c&&a.appendChild(c);a.innerHTML=""},erase:function(a,c){for(var g=a.length;g--;)if(a[g]===c){a.splice(g,1);break}},error:h,extend:b,extendClass:function(a,c){var g=function(){};g.prototype=new a;b(g.prototype,c);return g},find:B,fireEvent:n,getMagnitude:function(a){return Math.pow(10,Math.floor(Math.log(a)/Math.LN10))},getNestedProperty:function(a,c){for(a=a.split(".");a.length&&m(c);){var g=a.shift();if("undefined"===
|
|
|
+typeof g||"__proto__"===g)return;c=c[g];if(!m(c)||"function"===typeof c||"number"===typeof c.nodeType||c===q)return}return c},getStyle:k,inArray:function(a,c,g){h(32,!1,void 0,{"Highcharts.inArray":"use Array.indexOf"});return c.indexOf(a,g)},isArray:E,isClass:t,isDOMElement:G,isFunction:function(a){return"function"===typeof a},isNumber:z,isObject:C,isString:F,keys:function(a){h(32,!1,void 0,{"Highcharts.keys":"use Object.keys"});return Object.keys(a)},merge:function(){var a,c=arguments,g={},q=function(a,
|
|
|
+c){"object"!==typeof a&&(a={});d(c,function(H,x){"__proto__"!==x&&"constructor"!==x&&(!C(H,!0)||t(H)||G(H)?a[x]=c[x]:a[x]=q(a[x]||{},H))});return a};!0===c[0]&&(g=c[1],c=Array.prototype.slice.call(c,2));var b=c.length;for(a=0;a<b;a++)g=q(g,c[a]);return g},normalizeTickInterval:function(a,c,g,d,q){var p=a;g=A(g,1);var L=a/g;c||(c=q?[1,1.2,1.5,2,2.5,3,4,5,6,8,10]:[1,2,2.5,5,10],!1===d&&(1===g?c=c.filter(function(a){return 0===a%1}):.1>=g&&(c=[1/g])));for(d=0;d<c.length&&!(p=c[d],q&&p*g>=a||!q&&L<=(c[d]+
|
|
|
+(c[d+1]||c[d]))/2);d++);return p=I(p*g,-Math.round(Math.log(.001)/Math.LN10))},objectEach:d,offset:function(a){var g=c.documentElement;a=a.parentElement||a.parentNode?a.getBoundingClientRect():{top:0,left:0,width:0,height:0};return{top:a.top+(q.pageYOffset||g.scrollTop)-(g.clientTop||0),left:a.left+(q.pageXOffset||g.scrollLeft)-(g.clientLeft||0),width:a.width,height:a.height}},pad:function(a,c,g){return Array((c||2)+1-String(a).replace("-","").length).join(g||"0")+a},pick:A,pInt:y,relativeLength:function(a,
|
|
|
+c,g){return/%$/.test(a)?c*parseFloat(a)/100+(g||0):parseFloat(a)},removeEvent:w,splat:function(a){return E(a)?a:[a]},stableSort:function(a,c){var g=a.length,d,p;for(p=0;p<g;p++)a[p].safeI=p;a.sort(function(a,g){d=c(a,g);return 0===d?a.safeI-g.safeI:d});for(p=0;p<g;p++)delete a[p].safeI},syncTimeout:function(a,c,g){if(0<c)return setTimeout(a,c,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:O,useSerialIds:function(a){return J=
|
|
|
+A(a,J)},wrap:function(a,c,g){var d=a[c];a[c]=function(){var a=Array.prototype.slice.call(arguments),c=arguments,L=this;L.proceed=function(){d.apply(L,arguments.length?arguments:c)};a.unshift(d);a=g.apply(this,a);L.proceed=null;return a}}}});P(e,"Core/Color/Color.js",[e["Core/Globals.js"],e["Core/Utilities.js"]],function(e,h){var Q=h.isNumber,y=h.merge,F=h.pInt;"";h=function(){function h(C){this.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(h){return[F(h[1]),F(h[2]),F(h[3]),parseFloat(h[4],10)]}},{regex:/rgb\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*\)/,parse:function(h){return[F(h[1]),F(h[2]),F(h[3]),1]}}];this.rgba=[];if(e.Color!==h)return new e.Color(C);if(!(this instanceof h))return new h(C);this.init(C)}h.parse=function(e){return new h(e)};h.prototype.init=function(e){var G,t;if((this.input=e=h.names[e&&e.toLowerCase?e.toLowerCase():""]||e)&&e.stops)this.stops=e.stops.map(function(f){return new h(f[1])});
|
|
|
+else{if(e&&e.charAt&&"#"===e.charAt()){var z=e.length;e=parseInt(e.substr(1),16);7===z?G=[(e&16711680)>>16,(e&65280)>>8,e&255,1]:4===z&&(G=[(e&3840)>>4|(e&3840)>>8,(e&240)>>4|e&240,(e&15)<<4|e&15,1])}if(!G)for(t=this.parsers.length;t--&&!G;){var m=this.parsers[t];(z=m.regex.exec(e))&&(G=m.parse(z))}}this.rgba=G||[]};h.prototype.get=function(h){var e=this.input,t=this.rgba;if("undefined"!==typeof this.stops){var z=y(e);z.stops=[].concat(z.stops);this.stops.forEach(function(m,f){z.stops[f]=[z.stops[f][0],
|
|
|
+m.get(h)]})}else z=t&&Q(t[0])?"rgb"===h||!h&&1===t[3]?"rgb("+t[0]+","+t[1]+","+t[2]+")":"a"===h?t[3]:"rgba("+t.join(",")+")":e;return z};h.prototype.brighten=function(h){var e,t=this.rgba;if(this.stops)this.stops.forEach(function(t){t.brighten(h)});else if(Q(h)&&0!==h)for(e=0;3>e;e++)t[e]+=F(255*h),0>t[e]&&(t[e]=0),255<t[e]&&(t[e]=255);return this};h.prototype.setOpacity=function(h){this.rgba[3]=h;return this};h.prototype.tweenTo=function(h,e){var t=this.rgba,z=h.rgba;z.length&&t&&t.length?(h=1!==
|
|
|
+z[3]||1!==t[3],e=(h?"rgba(":"rgb(")+Math.round(z[0]+(t[0]-z[0])*(1-e))+","+Math.round(z[1]+(t[1]-z[1])*(1-e))+","+Math.round(z[2]+(t[2]-z[2])*(1-e))+(h?","+(z[3]+(t[3]-z[3])*(1-e)):"")+")"):e=h.input||"none";return e};h.names={white:"#ffffff",black:"#000000"};return h}();e.Color=h;e.color=h.parse;return h});P(e,"Core/Color/Palette.js",[],function(){return{colors:"#7cb5ec #434348 #90ed7d #f7a35c #8085e9 #f15c80 #e4d354 #2b908f #f45b5b #91e8e1".split(" "),backgroundColor:"#ffffff",neutralColor100:"#000000",
|
|
|
+neutralColor80:"#333333",neutralColor60:"#666666",neutralColor40:"#999999",neutralColor20:"#cccccc",neutralColor10:"#e6e6e6",neutralColor5:"#f2f2f2",neutralColor3:"#f7f7f7",highlightColor100:"#003399",highlightColor80:"#335cad",highlightColor60:"#6685c2",highlightColor20:"#ccd6eb",highlightColor10:"#e6ebf5",positiveColor:"#06b535",negativeColor:"#f21313"}});P(e,"Core/Time.js",[e["Core/Globals.js"],e["Core/Utilities.js"]],function(e,h){var Q=e.win,y=h.defined,F=h.error,E=h.extend,C=h.isObject,G=h.merge,
|
|
|
+t=h.objectEach,z=h.pad,m=h.pick,f=h.splat,b=h.timeUnits;"";h=function(){function A(b){this.options={};this.variableTimezone=this.useUTC=!1;this.Date=Q.Date;this.getTimezoneOffset=this.timezoneOffsetFunction();this.update(b)}A.prototype.get=function(b,l){if(this.variableTimezone||this.timezoneOffset){var I=l.getTime(),k=I-this.getTimezoneOffset(l);l.setTime(k);b=l["getUTC"+b]();l.setTime(I);return b}return this.useUTC?l["getUTC"+b]():l["get"+b]()};A.prototype.set=function(b,l,I){if(this.variableTimezone||
|
|
|
+this.timezoneOffset){if("Milliseconds"===b||"Seconds"===b||"Minutes"===b&&0===this.getTimezoneOffset(l)%36E5)return l["setUTC"+b](I);var k=this.getTimezoneOffset(l);k=l.getTime()-k;l.setTime(k);l["setUTC"+b](I);b=this.getTimezoneOffset(l);k=l.getTime()+b;return l.setTime(k)}return this.useUTC?l["setUTC"+b](I):l["set"+b](I)};A.prototype.update=function(b){var l=m(b&&b.useUTC,!0);this.options=b=G(!0,this.options||{},b);this.Date=b.Date||Q.Date||Date;this.timezoneOffset=(this.useUTC=l)&&b.timezoneOffset;
|
|
|
+this.getTimezoneOffset=this.timezoneOffsetFunction();this.variableTimezone=l&&!(!b.getTimezoneOffset&&!b.timezone)};A.prototype.makeTime=function(b,l,I,k,d,w){if(this.useUTC){var n=this.Date.UTC.apply(0,arguments);var g=this.getTimezoneOffset(n);n+=g;var c=this.getTimezoneOffset(n);g!==c?n+=c-g:g-36E5!==this.getTimezoneOffset(n-36E5)||e.isSafari||(n-=36E5)}else n=(new this.Date(b,l,m(I,1),m(k,0),m(d,0),m(w,0))).getTime();return n};A.prototype.timezoneOffsetFunction=function(){var b=this,l=this.options,
|
|
|
+I=l.moment||Q.moment;if(!this.useUTC)return function(b){return 6E4*(new Date(b.toString())).getTimezoneOffset()};if(l.timezone){if(I)return function(b){return 6E4*-I.tz(b,l.timezone).utcOffset()};F(25)}return this.useUTC&&l.getTimezoneOffset?function(b){return 6E4*l.getTimezoneOffset(b.valueOf())}:function(){return 6E4*(b.timezoneOffset||0)}};A.prototype.dateFormat=function(b,l,I){if(!y(l)||isNaN(l))return e.defaultOptions.lang&&e.defaultOptions.lang.invalidDate||"";b=m(b,"%Y-%m-%d %H:%M:%S");var k=
|
|
|
+this,d=new this.Date(l),w=this.get("Hours",d),n=this.get("Day",d),g=this.get("Date",d),c=this.get("Month",d),q=this.get("FullYear",d),a=e.defaultOptions.lang,B=a&&a.weekdays,J=a&&a.shortWeekdays;d=E({a:J?J[n]:B[n].substr(0,3),A:B[n],d:z(g),e:z(g,2," "),w:n,b:a.shortMonths[c],B:a.months[c],m:z(c+1),o:c+1,y:q.toString().substr(2,2),Y:q,H:z(w),k:w,I:z(w%12||12),l:w%12||12,M:z(this.get("Minutes",d)),p:12>w?"AM":"PM",P:12>w?"am":"pm",S:z(d.getSeconds()),L:z(Math.floor(l%1E3),3)},e.dateFormats);t(d,function(a,
|
|
|
+c){for(;-1!==b.indexOf("%"+c);)b=b.replace("%"+c,"function"===typeof a?a.call(k,l):a)});return I?b.substr(0,1).toUpperCase()+b.substr(1):b};A.prototype.resolveDTLFormat=function(b){return C(b,!0)?b:(b=f(b),{main:b[0],from:b[1],to:b[2]})};A.prototype.getTimeTicks=function(f,l,I,k){var d=this,w=[],n={};var g=new d.Date(l);var c=f.unitRange,q=f.count||1,a;k=m(k,1);if(y(l)){d.set("Milliseconds",g,c>=b.second?0:q*Math.floor(d.get("Milliseconds",g)/q));c>=b.second&&d.set("Seconds",g,c>=b.minute?0:q*Math.floor(d.get("Seconds",
|
|
|
+g)/q));c>=b.minute&&d.set("Minutes",g,c>=b.hour?0:q*Math.floor(d.get("Minutes",g)/q));c>=b.hour&&d.set("Hours",g,c>=b.day?0:q*Math.floor(d.get("Hours",g)/q));c>=b.day&&d.set("Date",g,c>=b.month?1:Math.max(1,q*Math.floor(d.get("Date",g)/q)));if(c>=b.month){d.set("Month",g,c>=b.year?0:q*Math.floor(d.get("Month",g)/q));var B=d.get("FullYear",g)}c>=b.year&&d.set("FullYear",g,B-B%q);c===b.week&&(B=d.get("Day",g),d.set("Date",g,d.get("Date",g)-B+k+(B<k?-7:0)));B=d.get("FullYear",g);k=d.get("Month",g);var J=
|
|
|
+d.get("Date",g),O=d.get("Hours",g);l=g.getTime();!d.variableTimezone&&d.useUTC||!y(I)||(a=I-l>4*b.month||d.getTimezoneOffset(l)!==d.getTimezoneOffset(I));l=g.getTime();for(g=1;l<I;)w.push(l),l=c===b.year?d.makeTime(B+g*q,0):c===b.month?d.makeTime(B,k+g*q):!a||c!==b.day&&c!==b.week?a&&c===b.hour&&1<q?d.makeTime(B,k,J,O+g*q):l+c*q:d.makeTime(B,k,J+g*q*(c===b.day?1:7)),g++;w.push(l);c<=b.hour&&1E4>w.length&&w.forEach(function(a){0===a%18E5&&"000000000"===d.dateFormat("%H%M%S%L",a)&&(n[a]="day")})}w.info=
|
|
|
+E(f,{higherRanks:n,totalRange:c*q});return w};return A}();e.Time=h;return e.Time});P(e,"Core/Options.js",[e["Core/Globals.js"],e["Core/Color/Color.js"],e["Core/Color/Palette.js"],e["Core/Time.js"],e["Core/Utilities.js"]],function(e,h,D,y,F){var Q=e.isTouchDevice,C=e.svg;h=h.parse;var G=F.merge;"";var t={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:{panning:{enabled:!1,type:"x"},styledMode:!1,borderRadius:0,colorCount:10,defaultSeriesType:"line",ignoreHiddenSeries:!0,
|
|
|
+spacing:[10,10,15,10],resetZoomButton:{theme:{zIndex:6},position:{align:"right",x:-10,y:10}},zoomBySingleTouch:!1,width:null,height:null,borderColor:D.highlightColor80,backgroundColor:D.backgroundColor,plotBorderColor:D.neutralColor20},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:D.neutralColor80}},legend:{enabled:!0,
|
|
|
+align:"center",alignColumns:!0,layout:"horizontal",labelFormatter:function(){return this.name},borderColor:D.neutralColor40,borderRadius:0,navigation:{activeColor:D.highlightColor100,inactiveColor:D.neutralColor20},itemStyle:{color:D.neutralColor80,cursor:"pointer",fontSize:"12px",fontWeight:"bold",textOverflow:"ellipsis"},itemHoverStyle:{color:D.neutralColor100},itemHiddenStyle:{color:D.neutralColor20},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:D.backgroundColor,opacity:.5,textAlign:"center"}},tooltip:{enabled:!0,animation:C,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:"",
|
|
|
+padding:8,snap:Q?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:h(D.neutralColor3).setOpacity(.85).get(),borderWidth:1,shadow:!0,style:{color:D.neutralColor80,cursor:"default",fontSize:"12px",whiteSpace:"nowrap"}},credits:{enabled:!0,href:"https://www.highcharts.com?credits",position:{align:"right",x:-10,verticalAlign:"bottom",y:-5},style:{cursor:"pointer",
|
|
|
+color:D.neutralColor40,fontSize:"9px"},text:"Highcharts.com"}};t.chart.styledMode=!1;"";var z=new y(G(t.global,t.time));return{defaultOptions:t,defaultTime:z,getOptions:function(){return t},setOptions:function(m){G(!0,t,m);if(m.time||m.global)e.time?e.time.update(G(t.global,t.time,m.global,m.time)):e.time=z;return t}}});P(e,"Core/Animation/Fx.js",[e["Core/Color/Color.js"],e["Core/Globals.js"],e["Core/Utilities.js"]],function(e,h,D){var Q=e.parse,F=h.win,E=D.isNumber,C=D.objectEach;return function(){function h(t,
|
|
|
+z,m){this.pos=NaN;this.options=z;this.elem=t;this.prop=m}h.prototype.dSetter=function(){var t=this.paths,z=t&&t[0];t=t&&t[1];var m=this.now||0,f=[];if(1!==m&&z&&t)if(z.length===t.length&&1>m)for(var b=0;b<t.length;b++){for(var A=z[b],u=t[b],l=[],I=0;I<u.length;I++){var k=A[I],d=u[I];E(k)&&E(d)&&("A"!==u[0]||4!==I&&5!==I)?l[I]=k+m*(d-k):l[I]=d}f.push(l)}else f=t;else f=this.toD||[];this.elem.attr("d",f,void 0,!0)};h.prototype.update=function(){var t=this.elem,z=this.prop,m=this.now,f=this.options.step;
|
|
|
+if(this[z+"Setter"])this[z+"Setter"]();else t.attr?t.element&&t.attr(z,m,null,!0):t.style[z]=m+this.unit;f&&f.call(t,m,this)};h.prototype.run=function(t,z,m){var f=this,b=f.options,A=function(b){return A.stopped?!1:f.step(b)},u=F.requestAnimationFrame||function(b){setTimeout(b,13)},l=function(){for(var b=0;b<h.timers.length;b++)h.timers[b]()||h.timers.splice(b--,1);h.timers.length&&u(l)};t!==z||this.elem["forceAnimate:"+this.prop]?(this.startTime=+new Date,this.start=t,this.end=z,this.unit=m,this.now=
|
|
|
+this.start,this.pos=0,A.elem=this.elem,A.prop=this.prop,A()&&1===h.timers.push(A)&&u(l)):(delete b.curAnim[this.prop],b.complete&&0===Object.keys(b.curAnim).length&&b.complete.call(this.elem))};h.prototype.step=function(t){var z=+new Date,m=this.options,f=this.elem,b=m.complete,A=m.duration,u=m.curAnim;if(f.attr&&!f.element)t=!1;else if(t||z>=A+this.startTime){this.now=this.end;this.pos=1;this.update();var l=u[this.prop]=!0;C(u,function(b){!0!==b&&(l=!1)});l&&b&&b.call(f);t=!1}else this.pos=m.easing((z-
|
|
|
+this.startTime)/A),this.now=this.start+(this.end-this.start)*this.pos,this.update(),t=!0;return t};h.prototype.initPath=function(t,z,m){function f(b,g){for(;b.length<w;){var c=b[0],d=g[w-b.length];d&&"M"===c[0]&&(b[0]="C"===d[0]?["C",c[1],c[2],c[1],c[2],c[1],c[2]]:["L",c[1],c[2]]);b.unshift(c);l&&(c=b.pop(),b.push(b[b.length-1],c))}}function b(b,g){for(;b.length<w;)if(g=b[Math.floor(b.length/I)-1].slice(),"C"===g[0]&&(g[1]=g[5],g[2]=g[6]),l){var c=b[Math.floor(b.length/I)].slice();b.splice(b.length/
|
|
|
+2,0,g,c)}else b.push(g)}var A=t.startX,u=t.endX;m=m.slice();var l=t.isArea,I=l?2:1;z=z&&z.slice();if(!z)return[m,m];if(A&&u&&u.length){for(t=0;t<A.length;t++)if(A[t]===u[0]){var k=t;break}else if(A[0]===u[u.length-A.length+t]){k=t;var d=!0;break}else if(A[A.length-1]===u[u.length-A.length+t]){k=A.length-t;break}"undefined"===typeof k&&(z=[])}if(z.length&&E(k)){var w=m.length+k*I;d?(f(z,m),b(m,z)):(f(m,z),b(z,m))}return[z,m]};h.prototype.fillSetter=function(){h.prototype.strokeSetter.apply(this,arguments)};
|
|
|
+h.prototype.strokeSetter=function(){this.elem.attr(this.prop,Q(this.start).tweenTo(Q(this.end),this.pos),null,!0)};h.timers=[];return h}()});P(e,"Core/Animation/AnimationUtilities.js",[e["Core/Animation/Fx.js"],e["Core/Utilities.js"]],function(e,h){function Q(b){return t(b)?z({duration:500,defer:0},b):{duration:b?500:0,defer:0}}function y(b,f){for(var u=e.timers.length;u--;)e.timers[u].elem!==b||f&&f!==e.timers[u].prop||(e.timers[u].stopped=!0)}var F=h.defined,E=h.getStyle,C=h.isArray,G=h.isNumber,
|
|
|
+t=h.isObject,z=h.merge,m=h.objectEach,f=h.pick;return{animate:function(b,f,u){var l,I="",k,d;if(!t(u)){var w=arguments;u={duration:w[2],easing:w[3],complete:w[4]}}G(u.duration)||(u.duration=400);u.easing="function"===typeof u.easing?u.easing:Math[u.easing]||Math.easeInOutSine;u.curAnim=z(f);m(f,function(n,g){y(b,g);d=new e(b,u,g);k=void 0;"d"===g&&C(f.d)?(d.paths=d.initPath(b,b.pathArray,f.d),d.toD=f.d,l=0,k=1):b.attr?l=b.attr(g):(l=parseFloat(E(b,g))||0,"opacity"!==g&&(I="px"));k||(k=n);"string"===
|
|
|
+typeof k&&k.match("px")&&(k=k.replace(/px/g,""));d.run(l,k,I)})},animObject:Q,getDeferredAnimation:function(b,f,u){var l=Q(f),I=0,k=0;(u?[u]:b.series).forEach(function(b){b=Q(b.options.animation);I=f&&F(f.defer)?l.defer:Math.max(I,b.duration+b.defer);k=Math.min(l.duration,b.duration)});b.renderer.forExport&&(I=0);return{defer:Math.max(0,I-k),duration:Math.min(I,k)}},setAnimation:function(b,A){A.renderer.globalAnimation=f(b,A.options.chart.animation,!0)},stop:y}});P(e,"Core/Renderer/HTML/AST.js",[e["Core/Globals.js"],
|
|
|
+e["Core/Utilities.js"]],function(e,h){var Q=e.SVG_NS,y=h.attr,F=h.createElement,E=h.discardElement,C=h.error,G=h.isString,t=h.objectEach,z=h.splat;"";var m=!1;try{m=!!(new DOMParser).parseFromString("","text/html")}catch(f){}return function(){function f(b){this.nodes="string"===typeof b?this.parseMarkup(b):b}f.filterUserAttributes=function(b){t(b,function(A,u){var l=!0;-1===f.allowedAttributes.indexOf(u)&&(l=!1);-1!==["background","dynsrc","href","lowsrc","src"].indexOf(u)&&(l=G(A)&&f.allowedReferences.some(function(b){return 0===
|
|
|
+A.indexOf(b)}));l||(C("Highcharts warning: Invalid attribute '"+u+"' in config"),delete b[u])});return b};f.setElementHTML=function(b,A){b.innerHTML="";A&&(new f(A)).addToDOM(b)};f.prototype.addToDOM=function(b){function A(b,l){var I;z(b).forEach(function(b){var d=b.tagName,k=b.textContent?e.doc.createTextNode(b.textContent):void 0;if(d)if("#text"===d)var n=k;else if(-1!==f.allowedTags.indexOf(d)){d=e.doc.createElementNS("svg"===d?Q:l.namespaceURI||Q,d);var g=b.attributes||{};t(b,function(c,b){"tagName"!==
|
|
|
+b&&"attributes"!==b&&"children"!==b&&"textContent"!==b&&(g[b]=c)});y(d,f.filterUserAttributes(g));k&&d.appendChild(k);A(b.children||[],d);n=d}else C("Highcharts warning: Invalid tagName '"+d+"' in config");n&&l.appendChild(n);I=n});return I}return A(this.nodes,b)};f.prototype.parseMarkup=function(b){var f=[];if(m)b=(new DOMParser).parseFromString(b,"text/html");else{var u=F("div");u.innerHTML=b;b={body:u}}var l=function(b,k){var d=b.nodeName.toLowerCase(),w={tagName:d};if("#text"===d){d=b.textContent||
|
|
|
+"";if(/^[\s]*$/.test(d))return;w.textContent=d}if(d=b.attributes){var n={};[].forEach.call(d,function(c){n[c.name]=c.value});w.attributes=n}if(b.childNodes.length){var g=[];[].forEach.call(b.childNodes,function(c){l(c,g)});g.length&&(w.children=g)}k.push(w)};[].forEach.call(b.body.childNodes,function(b){return l(b,f)});u&&E(u);return f};f.allowedTags="a 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(" ");
|
|
|
+f.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 patternUnits r refX refY role scope slope src startOffset stdDeviation stroke stroke-linecap stroke-width style result rowspan summary target tabindex text-align textAnchor textLength type valign width x x1 x2 y y1 y2 zIndex".split(" ");
|
|
|
+f.allowedReferences="https:// http:// mailto: / ../ ./ #".split(" ");return f}()});P(e,"Core/FormatUtilities.js",[e["Core/Options.js"],e["Core/Utilities.js"]],function(e,h){function Q(z,m,f,b){z=+z||0;m=+m;var A=y.lang,u=(z.toString().split(".")[1]||"").split("e")[0].length,l=z.toString().split("e"),I=m;if(-1===m)m=Math.min(u,20);else if(!C(m))m=2;else if(m&&l[1]&&0>l[1]){var k=m+ +l[1];0<=k?(l[0]=(+l[0]).toExponential(k).split("e")[0],m=k):(l[0]=l[0].split(".")[0]||0,z=20>m?(l[0]*Math.pow(10,l[1])).toFixed(m):
|
|
|
+0,l[1]=0)}k=(Math.abs(l[1]?l[0]:z)+Math.pow(10,-Math.max(m,u)-1)).toFixed(m);u=String(t(k));var d=3<u.length?u.length%3:0;f=G(f,A.decimalPoint);b=G(b,A.thousandsSep);z=(0>z?"-":"")+(d?u.substr(0,d)+b:"");z=0>+l[1]&&!I?"0":z+u.substr(d).replace(/(\d{3})(?=\d)/g,"$1"+b);m&&(z+=f+k.slice(-m));l[1]&&0!==+z&&(z+="e"+l[1]);return z}var y=e.defaultOptions,F=e.defaultTime,E=h.getNestedProperty,C=h.isNumber,G=h.pick,t=h.pInt;return{dateFormat:function(t,m,f){return F.dateFormat(t,m,f)},format:function(t,m,
|
|
|
+f){var b="{",A=!1,u=/f$/,l=/\.([0-9])/,I=y.lang,k=f&&f.time||F;f=f&&f.numberFormatter||Q;for(var d=[];t;){var w=t.indexOf(b);if(-1===w)break;var n=t.slice(0,w);if(A){n=n.split(":");b=E(n.shift()||"",m);if(n.length&&"number"===typeof b)if(n=n.join(":"),u.test(n)){var g=parseInt((n.match(l)||["","-1"])[1],10);null!==b&&(b=f(b,g,I.decimalPoint,-1<n.indexOf(",")?I.thousandsSep:""))}else b=k.dateFormat(n,b);d.push(b)}else d.push(n);t=t.slice(w+1);b=(A=!A)?"}":"{"}d.push(t);return d.join("")},numberFormat:Q}});
|
|
|
+P(e,"Core/Renderer/SVG/SVGElement.js",[e["Core/Animation/AnimationUtilities.js"],e["Core/Renderer/HTML/AST.js"],e["Core/Color/Color.js"],e["Core/Globals.js"],e["Core/Color/Palette.js"],e["Core/Utilities.js"]],function(e,h,D,y,F,E){var C=e.animate,G=e.animObject,t=e.stop,z=y.deg2rad,m=y.doc,f=y.noop,b=y.svg,A=y.SVG_NS,u=y.win,l=E.addEvent,I=E.attr,k=E.createElement,d=E.css,w=E.defined,n=E.erase,g=E.extend,c=E.fireEvent,q=E.isArray,a=E.isFunction,B=E.isNumber,J=E.isString,O=E.merge,p=E.objectEach,r=
|
|
|
+E.pick,M=E.pInt,v=E.syncTimeout,N=E.uniqueKey;e=function(){function K(){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(" ")}K.prototype._defaultGetter=function(a){a=r(this[a+"Value"],this[a],this.element?this.element.getAttribute(a):null,0);/^[\-0-9\.]+$/.test(a)&&(a=parseFloat(a));return a};K.prototype._defaultSetter=function(a,c,x){x.setAttribute(c,a)};K.prototype.add=
|
|
|
+function(a){var c=this.renderer,x=this.element;a&&(this.parentGroup=a);this.parentInverted=a&&a.inverted;"undefined"!==typeof this.textStr&&"text"===this.element.nodeName&&c.buildText(this);this.added=!0;if(!a||a.handleZ||this.zIndex)var g=this.zIndexSetter();g||(a?a.element:c.box).appendChild(x);if(this.onAdd)this.onAdd();return this};K.prototype.addClass=function(a,c){var x=c?"":this.attr("class")||"";a=(a||"").split(/ /g).reduce(function(a,c){-1===x.indexOf(c)&&a.push(c);return a},x?[x]:[]).join(" ");
|
|
|
+a!==x&&this.attr("class",a);return this};K.prototype.afterSetters=function(){this.doTransform&&(this.updateTransform(),this.doTransform=!1)};K.prototype.align=function(a,c,x){var H={},g=this.renderer,b=g.alignedObjects,d,p,L;if(a){if(this.alignOptions=a,this.alignByTranslate=c,!x||J(x))this.alignTo=d=x||"renderer",n(b,this),b.push(this),x=void 0}else a=this.alignOptions,c=this.alignByTranslate,d=this.alignTo;x=r(x,g[d],"scrollablePlotBox"===d?g.plotBox:void 0,g);d=a.align;var q=a.verticalAlign;g=
|
|
|
+(x.x||0)+(a.x||0);b=(x.y||0)+(a.y||0);"right"===d?p=1:"center"===d&&(p=2);p&&(g+=(x.width-(a.width||0))/p);H[c?"translateX":"x"]=Math.round(g);"bottom"===q?L=1:"middle"===q&&(L=2);L&&(b+=(x.height-(a.height||0))/L);H[c?"translateY":"y"]=Math.round(b);this[this.placed?"animate":"attr"](H);this.placed=!0;this.alignAttr=H;return this};K.prototype.alignSetter=function(a){var c={left:"start",center:"middle",right:"end"};c[a]&&(this.alignValue=a,this.element.setAttribute("text-anchor",c[a]))};K.prototype.animate=
|
|
|
+function(a,c,x){var H=this,g=G(r(c,this.renderer.globalAnimation,!0));c=g.defer;r(m.hidden,m.msHidden,m.webkitHidden,!1)&&(g.duration=0);0!==g.duration?(x&&(g.complete=x),v(function(){H.element&&C(H,a,g)},c)):(this.attr(a,void 0,x),p(a,function(a,x){g.step&&g.step.call(this,a,{prop:x,pos:1,elem:this})},this));return this};K.prototype.applyTextOutline=function(a){var c=this.element;-1!==a.indexOf("contrast")&&(a=a.replace(/contrast/g,this.renderer.getContrast(c.style.fill)));var x=a.split(" ");a=x[x.length-
|
|
|
+1];if((x=x[0])&&"none"!==x&&y.svg){this.fakeTS=!0;this.ySetter=this.xSetter;x=x.replace(/(^[\d\.]+)(.*?)$/g,function(a,x,c){return 2*Number(x)+c});this.removeTextOutline();var g=m.createElementNS(A,"tspan");I(g,{"class":"highcharts-text-outline",fill:a,stroke:a,"stroke-width":x,"stroke-linejoin":"round"});[].forEach.call(c.childNodes,function(a){var x=a.cloneNode(!0);x.removeAttribute&&["fill","stroke","stroke-width","stroke"].forEach(function(a){return x.removeAttribute(a)});g.appendChild(x)});var b=
|
|
|
+m.createElementNS(A,"tspan");b.textContent="\u200b";["x","y"].forEach(function(a){var x=c.getAttribute(a);x&&b.setAttribute(a,x)});g.appendChild(b);c.insertBefore(g,c.firstChild)}};K.prototype.attr=function(a,c,x,g){var H=this.element,b=this.symbolCustomAttribs,d,q=this,L,r;if("string"===typeof a&&"undefined"!==typeof c){var v=a;a={};a[v]=c}"string"===typeof a?q=(this[a+"Getter"]||this._defaultGetter).call(this,a,H):(p(a,function(x,c){L=!1;g||t(this,c);this.symbolName&&-1!==b.indexOf(c)&&(d||(this.symbolAttr(a),
|
|
|
+d=!0),L=!0);!this.rotation||"x"!==c&&"y"!==c||(this.doTransform=!0);L||(r=this[c+"Setter"]||this._defaultSetter,r.call(this,x,c,H),!this.styledMode&&this.shadows&&/^(width|height|visibility|x|y|d|transform|cx|cy|r)$/.test(c)&&this.updateShadows(c,x,r))},this),this.afterSetters());x&&x.call(this);return q};K.prototype.clip=function(a){return this.attr("clip-path",a?"url("+this.renderer.url+"#"+a.id+")":"none")};K.prototype.crisp=function(a,c){c=c||a.strokeWidth||0;var x=Math.round(c)%2/2;a.x=Math.floor(a.x||
|
|
|
+this.x||0)+x;a.y=Math.floor(a.y||this.y||0)+x;a.width=Math.floor((a.width||this.width||0)-2*x);a.height=Math.floor((a.height||this.height||0)-2*x);w(a.strokeWidth)&&(a.strokeWidth=c);return a};K.prototype.complexColor=function(a,H,x){var g=this.renderer,b,d,r,L,v,k,n,B,J,M,l=[],f;c(this.renderer,"complexColor",{args:arguments},function(){a.radialGradient?d="radialGradient":a.linearGradient&&(d="linearGradient");if(d){r=a[d];v=g.gradients;k=a.stops;J=x.radialReference;q(r)&&(a[d]=r={x1:r[0],y1:r[1],
|
|
|
+x2:r[2],y2:r[3],gradientUnits:"userSpaceOnUse"});"radialGradient"===d&&J&&!w(r.gradientUnits)&&(L=r,r=O(r,g.getRadialAttr(J,L),{gradientUnits:"userSpaceOnUse"}));p(r,function(a,c){"id"!==c&&l.push(c,a)});p(k,function(a){l.push(a)});l=l.join(",");if(v[l])M=v[l].attr("id");else{r.id=M=N();var c=v[l]=g.createElement(d).attr(r).add(g.defs);c.radAttr=L;c.stops=[];k.forEach(function(a){0===a[1].indexOf("rgba")?(b=D.parse(a[1]),n=b.get("rgb"),B=b.get("a")):(n=a[1],B=1);a=g.createElement("stop").attr({offset:a[0],
|
|
|
+"stop-color":n,"stop-opacity":B}).add(c);c.stops.push(a)})}f="url("+g.url+"#"+M+")";x.setAttribute(H,f);x.gradient=l;a.toString=function(){return f}}})};K.prototype.css=function(a){var c=this.styles,x={},q=this.element,r=["textOutline","textOverflow","width"],v="",k=!c;a&&a.color&&(a.fill=a.color);c&&p(a,function(a,H){c&&c[H]!==a&&(x[H]=a,k=!0)});if(k){c&&(a=g(c,x));if(a)if(null===a.width||"auto"===a.width)delete this.textWidth;else if("text"===q.nodeName.toLowerCase()&&a.width)var n=this.textWidth=
|
|
|
+M(a.width);this.styles=a;n&&!b&&this.renderer.forExport&&delete a.width;if(q.namespaceURI===this.SVG_NS){var L=function(a,c){return"-"+c.toLowerCase()};p(a,function(a,c){-1===r.indexOf(c)&&(v+=c.replace(/([A-Z])/g,L)+":"+a+";")});v&&I(q,"style",v)}else d(q,a);this.added&&("text"===this.element.nodeName&&this.renderer.buildText(this),a&&a.textOutline&&this.applyTextOutline(a.textOutline))}return this};K.prototype.dashstyleSetter=function(a){var c=this["stroke-width"];"inherit"===c&&(c=1);if(a=a&&a.toLowerCase()){var x=
|
|
|
+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=x.length;a--;)x[a]=""+M(x[a])*r(c,NaN);a=x.join(",").replace(/NaN/g,"none");this.element.setAttribute("stroke-dasharray",a)}};K.prototype.destroy=function(){var a=this,c=a.element||{},x=a.renderer,g=c.ownerSVGElement,b=x.isSVG&&"SPAN"===c.nodeName&&a.parentGroup||
|
|
|
+void 0;c.onclick=c.onmouseout=c.onmouseover=c.onmousemove=c.point=null;t(a);if(a.clipPath&&g){var d=a.clipPath;[].forEach.call(g.querySelectorAll("[clip-path],[CLIP-PATH]"),function(a){-1<a.getAttribute("clip-path").indexOf(d.element.id)&&a.removeAttribute("clip-path")});a.clipPath=d.destroy()}if(a.stops){for(g=0;g<a.stops.length;g++)a.stops[g].destroy();a.stops.length=0;a.stops=void 0}a.safeRemoveChild(c);for(x.styledMode||a.destroyShadows();b&&b.div&&0===b.div.childNodes.length;)c=b.parentGroup,
|
|
|
+a.safeRemoveChild(b.div),delete b.div,b=c;a.alignTo&&n(x.alignedObjects,a);p(a,function(c,x){a[x]&&a[x].parentGroup===a&&a[x].destroy&&a[x].destroy();delete a[x]})};K.prototype.destroyShadows=function(){(this.shadows||[]).forEach(function(a){this.safeRemoveChild(a)},this);this.shadows=void 0};K.prototype.destroyTextPath=function(a,c){var x=a.getElementsByTagName("text")[0];if(x){if(x.removeAttribute("dx"),x.removeAttribute("dy"),c.element.setAttribute("id",""),this.textPathWrapper&&x.getElementsByTagName("textPath").length){for(a=
|
|
|
+this.textPathWrapper.element.childNodes;a.length;)x.appendChild(a[0]);x.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())};K.prototype.dSetter=function(a,c,x){q(a)&&("string"===typeof a[0]&&(a=this.renderer.pathToSegments(a)),this.pathArray=a,a=a.reduce(function(a,c,x){return c&&c.join?(x?a+" ":"")+c.join(" "):(c||"").toString()},""));
|
|
|
+/(NaN| {2}|^$)/.test(a)&&(a="M 0 0");this[c]!==a&&(x.setAttribute(c,a),this[c]=a)};K.prototype.fadeOut=function(a){var c=this;c.animate({opacity:0},{duration:r(a,150),complete:function(){c.attr({y:-9999}).hide()}})};K.prototype.fillSetter=function(a,c,x){"string"===typeof a?x.setAttribute(c,a):a&&this.complexColor(a,c,x)};K.prototype.getBBox=function(c,H){var x=this.renderer,b=this.element,p=this.styles,q=this.textStr,v=x.cache,k=x.cacheKeys,n=b.namespaceURI===this.SVG_NS;H=r(H,this.rotation,0);var B=
|
|
|
+x.styledMode?b&&K.prototype.getStyle.call(b,"font-size"):p&&p.fontSize,J;if(w(q)){var l=q.toString();-1===l.indexOf("<")&&(l=l.replace(/[0-9]/g,"0"));l+=["",H,B,this.textWidth,p&&p.textOverflow,p&&p.fontWeight].join()}l&&!c&&(J=v[l]);if(!J){if(n||x.forExport){try{var M=this.fakeTS&&function(a){var c=b.querySelector(".highcharts-text-outline");c&&d(c,{display:a})};a(M)&&M("none");J=b.getBBox?g({},b.getBBox()):{width:b.offsetWidth,height:b.offsetHeight};a(M)&&M("")}catch(X){""}if(!J||0>J.width)J={width:0,
|
|
|
+height:0}}else J=this.htmlGetBBox();x.isSVG&&(c=J.width,x=J.height,n&&(J.height=x={"11px,17":14,"13px,20":16}[p&&p.fontSize+","+Math.round(x)]||x),H&&(p=H*z,J.width=Math.abs(x*Math.sin(p))+Math.abs(c*Math.cos(p)),J.height=Math.abs(x*Math.cos(p))+Math.abs(c*Math.sin(p))));if(l&&0<J.height){for(;250<k.length;)delete v[k.shift()];v[l]||k.push(l);v[l]=J}}return J};K.prototype.getStyle=function(a){return u.getComputedStyle(this.element||this,"").getPropertyValue(a)};K.prototype.hasClass=function(a){return-1!==
|
|
|
+(""+this.attr("class")).split(" ").indexOf(a)};K.prototype.hide=function(a){a?this.attr({y:-9999}):this.attr({visibility:"hidden"});return this};K.prototype.htmlGetBBox=function(){return{height:0,width:0,x:0,y:0}};K.prototype.init=function(a,g){this.element="span"===g?k(g):m.createElementNS(this.SVG_NS,g);this.renderer=a;c(this,"afterInit")};K.prototype.invert=function(a){this.inverted=a;this.updateTransform();return this};K.prototype.on=function(a,c){var x=this.onEvents;if(x[a])x[a]();x[a]=l(this.element,
|
|
|
+a,c);return this};K.prototype.opacitySetter=function(a,c,x){this.opacity=a=Number(Number(a).toFixed(3));x.setAttribute(c,a)};K.prototype.removeClass=function(a){return this.attr("class",(""+this.attr("class")).replace(J(a)?new RegExp("(^| )"+a+"( |$)"):a," ").replace(/ +/g," ").trim())};K.prototype.removeTextOutline=function(){var a=this.element.querySelector("tspan.highcharts-text-outline");a&&this.safeRemoveChild(a)};K.prototype.safeRemoveChild=function(a){var c=a.parentNode;c&&c.removeChild(a)};
|
|
|
+K.prototype.setRadialReference=function(a){var c=this.element.gradient&&this.renderer.gradients[this.element.gradient];this.element.radialReference=a;c&&c.radAttr&&c.animate(this.renderer.getRadialAttr(a,c.radAttr));return this};K.prototype.setTextPath=function(a,c){var x=this.element,g=this.text?this.text.element:x,H={textAnchor:"text-anchor"},b=!1,d=this.textPathWrapper,q=!d;c=O(!0,{enabled:!0,attributes:{dy:-5,startOffset:"50%",textAnchor:"middle"}},c);var r=h.filterUserAttributes(c.attributes);
|
|
|
+if(a&&c&&c.enabled){d&&null===d.element.parentNode?(q=!0,d=d.destroy()):d&&this.removeTextOutline.call(d.parentGroup);this.options&&this.options.padding&&(r.dx=-this.options.padding);d||(this.textPathWrapper=d=this.renderer.createElement("textPath"),b=!0);var v=d.element;(c=a.element.getAttribute("id"))||a.element.setAttribute("id",c=N());if(q)for(g.setAttribute("y",0),B(r.dx)&&g.setAttribute("x",-r.dx),a=[].slice.call(g.childNodes),q=0;q<a.length;q++){var k=a[q];k.nodeType!==Node.TEXT_NODE&&"tspan"!==
|
|
|
+k.nodeName||v.appendChild(k)}b&&d&&d.add({element:g});v.setAttributeNS("http://www.w3.org/1999/xlink","href",this.renderer.url+"#"+c);w(r.dy)&&(v.parentNode.setAttribute("dy",r.dy),delete r.dy);w(r.dx)&&(v.parentNode.setAttribute("dx",r.dx),delete r.dx);p(r,function(a,c){v.setAttribute(H[c]||c,a)});x.removeAttribute("transform");this.removeTextOutline.call(d);this.text&&!this.renderer.styledMode&&this.attr({fill:"none","stroke-width":0});this.applyTextOutline=this.updateTransform=f}else d&&(delete this.updateTransform,
|
|
|
+delete this.applyTextOutline,this.destroyTextPath(x,a),this.updateTransform(),this.options&&this.options.rotation&&this.applyTextOutline(this.options.style.textOutline));return this};K.prototype.shadow=function(a,c,x){var H=[],b=this.element,d=this.oldShadowOptions,q={color:F.neutralColor100,offsetX:1,offsetY:1,opacity:.15,width:3},r=!1,v;!0===a?v=q:"object"===typeof a&&(v=g(q,a));v&&(v&&d&&p(v,function(a,c){a!==d[c]&&(r=!0)}),r&&this.destroyShadows(),this.oldShadowOptions=v);if(!v)this.destroyShadows();
|
|
|
+else if(!this.shadows){var k=v.opacity/v.width;var n=this.parentInverted?"translate(-1,-1)":"translate("+v.offsetX+", "+v.offsetY+")";for(q=1;q<=v.width;q++){var B=b.cloneNode(!1);var J=2*v.width+1-2*q;I(B,{stroke:a.color||F.neutralColor100,"stroke-opacity":k*q,"stroke-width":J,transform:n,fill:"none"});B.setAttribute("class",(B.getAttribute("class")||"")+" highcharts-shadow");x&&(I(B,"height",Math.max(I(B,"height")-J,0)),B.cutHeight=J);c?c.element.appendChild(B):b.parentNode&&b.parentNode.insertBefore(B,
|
|
|
+b);H.push(B)}this.shadows=H}return this};K.prototype.show=function(a){return this.attr({visibility:a?"inherit":"visible"})};K.prototype.strokeSetter=function(a,c,x){this[c]=a;this.stroke&&this["stroke-width"]?(K.prototype.fillSetter.call(this,this.stroke,"stroke",x),x.setAttribute("stroke-width",this["stroke-width"]),this.hasStroke=!0):"stroke-width"===c&&0===a&&this.hasStroke?(x.removeAttribute("stroke"),this.hasStroke=!1):this.renderer.styledMode&&this["stroke-width"]&&(x.setAttribute("stroke-width",
|
|
|
+this["stroke-width"]),this.hasStroke=!0)};K.prototype.strokeWidth=function(){if(!this.renderer.styledMode)return this["stroke-width"]||0;var a=this.getStyle("stroke-width"),c=0;if(a.indexOf("px")===a.length-2)c=M(a);else if(""!==a){var x=m.createElementNS(A,"rect");I(x,{width:a,"stroke-width":0});this.element.parentNode.appendChild(x);c=x.getBBox().width;x.parentNode.removeChild(x)}return c};K.prototype.symbolAttr=function(a){var c=this;"x y r start end width height innerR anchorX anchorY clockwise".split(" ").forEach(function(x){c[x]=
|
|
|
+r(a[x],c[x])});c.attr({d:c.renderer.symbols[c.symbolName](c.x,c.y,c.width,c.height,c)})};K.prototype.textSetter=function(a){a!==this.textStr&&(delete this.textPxLength,this.textStr=a,this.added&&this.renderer.buildText(this))};K.prototype.titleSetter=function(a){var c=this.element,x=c.getElementsByTagName("title")[0]||m.createElementNS(this.SVG_NS,"title");c.insertBefore?c.insertBefore(x,c.firstChild):c.appendChild(x);x.textContent=String(r(a,"")).replace(/<[^>]*>/g,"").replace(/</g,"<").replace(/>/g,
|
|
|
+">")};K.prototype.toFront=function(){var a=this.element;a.parentNode.appendChild(a);return this};K.prototype.translate=function(a,c){return this.attr({translateX:a,translateY:c})};K.prototype.updateShadows=function(a,c,x){var g=this.shadows;if(g)for(var b=g.length;b--;)x.call(g[b],"height"===a?Math.max(c-(g[b].cutHeight||0),0):"d"===a?this.d:c,a,g[b])};K.prototype.updateTransform=function(){var a=this.scaleX,c=this.scaleY,x=this.inverted,g=this.rotation,b=this.matrix,d=this.element,p=this.translateX||
|
|
|
+0,q=this.translateY||0;x&&(p+=this.width,q+=this.height);p=["translate("+p+","+q+")"];w(b)&&p.push("matrix("+b.join(",")+")");x?p.push("rotate(90) scale(-1,1)"):g&&p.push("rotate("+g+" "+r(this.rotationOriginX,d.getAttribute("x"),0)+" "+r(this.rotationOriginY,d.getAttribute("y")||0)+")");(w(a)||w(c))&&p.push("scale("+r(a,1)+" "+r(c,1)+")");p.length&&d.setAttribute("transform",p.join(" "))};K.prototype.visibilitySetter=function(a,c,x){"inherit"===a?x.removeAttribute(c):this[c]!==a&&x.setAttribute(c,
|
|
|
+a);this[c]=a};K.prototype.xGetter=function(a){"circle"===this.element.nodeName&&("x"===a?a="cx":"y"===a&&(a="cy"));return this._defaultGetter(a)};K.prototype.zIndexSetter=function(a,c){var x=this.renderer,g=this.parentGroup,b=(g||x).element||x.box,H=this.element;x=b===x.box;var d=!1;var p=this.added;var q;w(a)?(H.setAttribute("data-z-index",a),a=+a,this[c]===a&&(p=!1)):w(this[c])&&H.removeAttribute("data-z-index");this[c]=a;if(p){(a=this.zIndex)&&g&&(g.handleZ=!0);c=b.childNodes;for(q=c.length-1;0<=
|
|
|
+q&&!d;q--){g=c[q];p=g.getAttribute("data-z-index");var r=!w(p);if(g!==H)if(0>a&&r&&!x&&!q)b.insertBefore(H,c[q]),d=!0;else if(M(p)<=a||r&&(!w(a)||0<=a))b.insertBefore(H,c[q+1]||null),d=!0}d||(b.insertBefore(H,c[x?3:0]||null),d=!0)}return d};return K}();e.prototype["stroke-widthSetter"]=e.prototype.strokeSetter;e.prototype.yGetter=e.prototype.xGetter;e.prototype.matrixSetter=e.prototype.rotationOriginXSetter=e.prototype.rotationOriginYSetter=e.prototype.rotationSetter=e.prototype.scaleXSetter=e.prototype.scaleYSetter=
|
|
|
+e.prototype.translateXSetter=e.prototype.translateYSetter=e.prototype.verticalAlignSetter=function(a,c){this[c]=a;this.doTransform=!0};"";return e});P(e,"Core/Renderer/SVG/SVGLabel.js",[e["Core/Renderer/SVG/SVGElement.js"],e["Core/Utilities.js"]],function(e,h){function Q(m,f){C(m)?m!==this[f]&&(this[f]=m,this.updateTextPadding()):this[f]=void 0}var y=this&&this.__extends||function(){var m=function(f,b){m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,f){b.__proto__=f}||function(b,
|
|
|
+f){for(var l in f)f.hasOwnProperty(l)&&(b[l]=f[l])};return m(f,b)};return function(f,b){function A(){this.constructor=f}m(f,b);f.prototype=null===b?Object.create(b):(A.prototype=b.prototype,new A)}}(),F=h.defined,E=h.extend,C=h.isNumber,G=h.merge,t=h.pick,z=h.removeEvent;return function(m){function f(b,A,u,l,I,k,d,w,n,g){var c=m.call(this)||this;c.paddingSetter=Q;c.paddingLeftSetter=Q;c.paddingRightSetter=Q;c.init(b,"g");c.textStr=A;c.x=u;c.y=l;c.anchorX=k;c.anchorY=d;c.baseline=n;c.className=g;"button"!==
|
|
|
+g&&c.addClass("highcharts-label");g&&c.addClass("highcharts-"+g);c.text=b.text("",0,0,w).attr({zIndex:1});if("string"===typeof I){var q=/^url\((.*?)\)$/.test(I);if(c.renderer.symbols[I]||q)c.symbolKey=I}c.bBox=f.emptyBBox;c.padding=3;c.baselineOffset=0;c.needsBox=b.styledMode||q;c.deferredAttr={};c.alignFactor=0;return c}y(f,m);f.prototype.alignSetter=function(b){b={left:0,center:.5,right:1}[b];b!==this.alignFactor&&(this.alignFactor=b,this.bBox&&C(this.xSetting)&&this.attr({x:this.xSetting}))};f.prototype.anchorXSetter=
|
|
|
+function(b,f){this.anchorX=b;this.boxAttr(f,Math.round(b)-this.getCrispAdjust()-this.xSetting)};f.prototype.anchorYSetter=function(b,f){this.anchorY=b;this.boxAttr(f,b-this.ySetting)};f.prototype.boxAttr=function(b,f){this.box?this.box.attr(b,f):this.deferredAttr[b]=f};f.prototype.css=function(b){if(b){var m={},u=void 0;b=G(b);f.textProps.forEach(function(l){"undefined"!==typeof b[l]&&(m[l]=b[l],delete b[l])});this.text.css(m);u="width"in m;"fontSize"in m||"fontWeight"in m?this.updateTextPadding():
|
|
|
+u&&this.updateBoxSize()}return e.prototype.css.call(this,b)};f.prototype.destroy=function(){z(this.element,"mouseenter");z(this.element,"mouseleave");this.text&&this.text.destroy();this.box&&(this.box=this.box.destroy());e.prototype.destroy.call(this)};f.prototype.fillSetter=function(b,f){b&&(this.needsBox=!0);this.fill=b;this.boxAttr(f,b)};f.prototype.getBBox=function(){this.textStr&&0===this.bBox.width&&0===this.bBox.height&&this.updateBoxSize();var b=this.padding,f=t(this.paddingLeft,b);return{width:this.width,
|
|
|
+height:this.height,x:this.bBox.x-f,y:this.bBox.y-b}};f.prototype.getCrispAdjust=function(){return this.renderer.styledMode&&this.box?this.box.strokeWidth()%2/2:(this["stroke-width"]?parseInt(this["stroke-width"],10):0)%2/2};f.prototype.heightSetter=function(b){this.heightSetting=b};f.prototype.on=function(b,f){var u=this,l=u.text,I=l&&"SPAN"===l.element.tagName?l:void 0;if(I){var k=function(d){("mouseenter"===b||"mouseleave"===b)&&d.relatedTarget instanceof Element&&(u.element.compareDocumentPosition(d.relatedTarget)&
|
|
|
+Node.DOCUMENT_POSITION_CONTAINED_BY||I.element.compareDocumentPosition(d.relatedTarget)&Node.DOCUMENT_POSITION_CONTAINED_BY)||f.call(u.element,d)};I.on(b,k)}e.prototype.on.call(u,b,k||f);return u};f.prototype.onAdd=function(){var b=this.textStr;this.text.add(this);this.attr({text:F(b)?b:"",x:this.x,y:this.y});this.box&&F(this.anchorX)&&this.attr({anchorX:this.anchorX,anchorY:this.anchorY})};f.prototype.rSetter=function(b,f){this.boxAttr(f,b)};f.prototype.shadow=function(b){b&&!this.renderer.styledMode&&
|
|
|
+(this.updateBoxSize(),this.box&&this.box.shadow(b));return this};f.prototype.strokeSetter=function(b,f){this.stroke=b;this.boxAttr(f,b)};f.prototype["stroke-widthSetter"]=function(b,f){b&&(this.needsBox=!0);this["stroke-width"]=b;this.boxAttr(f,b)};f.prototype["text-alignSetter"]=function(b){this.textAlign=b};f.prototype.textSetter=function(b){"undefined"!==typeof b&&this.text.attr({text:b});this.updateTextPadding()};f.prototype.updateBoxSize=function(){var b=this.text.element.style,m={},u=this.padding,
|
|
|
+l=this.bBox=C(this.widthSetting)&&C(this.heightSetting)&&!this.textAlign||!F(this.text.textStr)?f.emptyBBox:this.text.getBBox();this.width=this.getPaddedWidth();this.height=(this.heightSetting||l.height||0)+2*u;this.baselineOffset=u+Math.min(this.renderer.fontMetrics(b&&b.fontSize,this.text).b,l.height||Infinity);this.needsBox&&(this.box||(b=this.box=this.symbolKey?this.renderer.symbol(this.symbolKey):this.renderer.rect(),b.addClass(("button"===this.className?"":"highcharts-label-box")+(this.className?
|
|
|
+" highcharts-"+this.className+"-box":"")),b.add(this)),b=this.getCrispAdjust(),m.x=b,m.y=(this.baseline?-this.baselineOffset:0)+b,m.width=Math.round(this.width),m.height=Math.round(this.height),this.box.attr(E(m,this.deferredAttr)),this.deferredAttr={})};f.prototype.updateTextPadding=function(){var b=this.text;this.updateBoxSize();var f=this.baseline?0:this.baselineOffset,u=t(this.paddingLeft,this.padding);F(this.widthSetting)&&this.bBox&&("center"===this.textAlign||"right"===this.textAlign)&&(u+=
|
|
|
+{center:.5,right:1}[this.textAlign]*(this.widthSetting-this.bBox.width));if(u!==b.x||f!==b.y)b.attr("x",u),b.hasBoxWidthChanged&&(this.bBox=b.getBBox(!0)),"undefined"!==typeof f&&b.attr("y",f);b.x=u;b.y=f};f.prototype.widthSetter=function(b){this.widthSetting=C(b)?b:void 0};f.prototype.getPaddedWidth=function(){var b=this.padding,f=t(this.paddingLeft,b);b=t(this.paddingRight,b);return(this.widthSetting||this.bBox.width||0)+f+b};f.prototype.xSetter=function(b){this.x=b;this.alignFactor&&(b-=this.alignFactor*
|
|
|
+this.getPaddedWidth(),this["forceAnimate:x"]=!0);this.xSetting=Math.round(b);this.attr("translateX",this.xSetting)};f.prototype.ySetter=function(b){this.ySetting=this.y=Math.round(b);this.attr("translateY",this.ySetting)};f.emptyBBox={width:0,height:0,x:0,y:0};f.textProps="color direction fontFamily fontSize fontStyle fontWeight lineHeight textAlign textDecoration textOutline textOverflow width".split(" ");return f}(e)});P(e,"Core/Renderer/SVG/TextBuilder.js",[e["Core/Globals.js"],e["Core/Utilities.js"],
|
|
|
+e["Core/Renderer/HTML/AST.js"]],function(e,h,D){var y=e.doc,F=e.SVG_NS,E=h.attr,C=h.isString,G=h.objectEach,t=h.pick;return function(){function h(m){var f=m.styles;this.renderer=m.renderer;this.svgElement=m;this.width=m.textWidth;this.textLineHeight=f&&f.lineHeight;this.textOutline=f&&f.textOutline;this.ellipsis=!(!f||"ellipsis"!==f.textOverflow);this.noWrap=!(!f||"nowrap"!==f.whiteSpace);this.fontSize=f&&f.fontSize}h.prototype.buildSVG=function(){var m=this.svgElement,f=m.element,b=m.renderer,A=
|
|
|
+t(m.textStr,"").toString(),u=-1!==A.indexOf("<"),l=f.childNodes,I=l.length;b=this.width&&!m.added&&b.box;var k=/<br.*?>/g;var d=[A,this.ellipsis,this.noWrap,this.textLineHeight,this.textOutline,this.fontSize,this.width].join();if(d!==m.textCache){m.textCache=d;for(delete m.actualWidth;I--;)f.removeChild(l[I]);u||this.ellipsis||this.width||-1!==A.indexOf(" ")&&(!this.noWrap||k.test(A))?""!==A&&(b&&b.appendChild(f),A=new D(A),this.modifyTree(A.nodes),A.addToDOM(m.element),this.modifyDOM(),this.ellipsis&&
|
|
|
+-1!==(f.textContent||"").indexOf("\u2026")&&m.attr("title",this.unescapeEntities(m.textStr||"",["<",">"])),b&&b.removeChild(f)):f.appendChild(y.createTextNode(this.unescapeEntities(A)));C(this.textOutline)&&m.applyTextOutline&&m.applyTextOutline(this.textOutline)}};h.prototype.modifyDOM=function(){var m=this,f=this.svgElement,b=E(f.element,"x");[].forEach.call(f.element.querySelectorAll("tspan.highcharts-br"),function(l){l.nextSibling&&l.previousSibling&&E(l,{dy:m.getLineHeight(l.nextSibling),
|
|
|
+x:b})});var A=this.width||0;if(A){var u=function(l,k){var d=l.textContent||"",w=d.replace(/([^\^])-/g,"$1- ").split(" "),n=!m.noWrap&&(1<w.length||1<f.element.childNodes.length),g=m.getLineHeight(k),c=0,q=f.actualWidth;if(m.ellipsis)d&&m.truncate(l,d,void 0,0,Math.max(0,A-parseInt(m.fontSize||12,10)),function(a,c){return a.substring(0,c)+"\u2026"});else if(n){d=[];for(n=[];k.firstChild&&k.firstChild!==l;)n.push(k.firstChild),k.removeChild(k.firstChild);for(;w.length;)w.length&&!m.noWrap&&0<c&&(d.push(l.textContent||
|
|
|
+""),l.textContent=w.join(" ").replace(/- /g,"-")),m.truncate(l,void 0,w,0===c?q||0:0,A,function(a,c){return w.slice(0,c).join(" ").replace(/- /g,"-")}),q=f.actualWidth,c++;n.forEach(function(a){k.insertBefore(a,l)});d.forEach(function(a){k.insertBefore(y.createTextNode(a),l);a=y.createElementNS(F,"tspan");a.textContent="\u200b";E(a,{dy:g,x:b});k.insertBefore(a,l)})}},l=function(b){[].slice.call(b.childNodes).forEach(function(k){k.nodeType===Node.TEXT_NODE?u(k,b):(-1!==k.className.baseVal.indexOf("highcharts-br")&&
|
|
|
+(f.actualWidth=0),l(k))})};l(f.element)}};h.prototype.getLineHeight=function(m){var f;m=m.nodeType===Node.TEXT_NODE?m.parentElement:m;this.renderer.styledMode||(f=m&&/(px|em)$/.test(m.style.fontSize)?m.style.fontSize:this.fontSize||this.renderer.style.fontSize||12);return this.textLineHeight?parseInt(this.textLineHeight.toString(),10):this.renderer.fontMetrics(f,m||this.svgElement.element).h};h.prototype.modifyTree=function(m){var f=this,b=function(A,u){var l=A.tagName,I=f.renderer.styledMode,k=A.attributes||
|
|
|
+{};if("b"===l||"strong"===l)I?k["class"]="highcharts-strong":k.style="font-weight:bold;"+(k.style||"");else if("i"===l||"em"===l)I?k["class"]="highcharts-emphasized":k.style="font-style:italic;"+(k.style||"");C(k.style)&&(k.style=k.style.replace(/(;| |^)color([ :])/,"$1fill$2"));"br"===l&&(k["class"]="highcharts-br",A.textContent="\u200b",(u=m[u+1])&&u.textContent&&(u.textContent=u.textContent.replace(/^ +/gm,"")));"#text"!==l&&"a"!==l&&(A.tagName="tspan");A.attributes=k;A.children&&A.children.filter(function(b){return"#text"!==
|
|
|
+b.tagName}).forEach(b)};for(m.forEach(b);m[0]&&"tspan"===m[0].tagName&&!m[0].children;)m.splice(0,1)};h.prototype.truncate=function(m,f,b,A,u,l){var I=this.svgElement,k=I.renderer,d=I.rotation,w=[],n=b?1:0,g=(f||b||"").length,c=g,q,a=function(a,c){c=c||a;var g=m.parentNode;if(g&&"undefined"===typeof w[c])if(g.getSubStringLength)try{w[c]=A+g.getSubStringLength(0,b?c+1:c)}catch(r){""}else k.getSpanWidth&&(m.textContent=l(f||b,a),w[c]=A+k.getSpanWidth(I,m));return w[c]};I.rotation=0;var B=a(m.textContent.length);
|
|
|
+if(A+B>u){for(;n<=g;)c=Math.ceil((n+g)/2),b&&(q=l(b,c)),B=a(c,q&&q.length-1),n===g?n=g+1:B>u?g=c-1:n=c;0===g?m.textContent="":f&&g===f.length-1||(m.textContent=q||l(f||b,c))}b&&b.splice(0,c);I.actualWidth=B;I.rotation=d};h.prototype.unescapeEntities=function(m,f){G(this.renderer.escapes,function(b,A){f&&-1!==f.indexOf(b)||(m=m.toString().replace(new RegExp(b,"g"),A))});return m};return h}()});P(e,"Core/Renderer/SVG/SVGRenderer.js",[e["Core/Color/Color.js"],e["Core/Globals.js"],e["Core/Color/Palette.js"],
|
|
|
+e["Core/Renderer/SVG/SVGElement.js"],e["Core/Renderer/SVG/SVGLabel.js"],e["Core/Renderer/HTML/AST.js"],e["Core/Renderer/SVG/TextBuilder.js"],e["Core/Utilities.js"]],function(e,h,D,y,F,E,C,G){var t=G.addEvent,z=G.attr,m=G.createElement,f=G.css,b=G.defined,A=G.destroyObjectProperties,u=G.extend,l=G.isArray,I=G.isNumber,k=G.isObject,d=G.isString,w=G.merge,n=G.pick,g=G.pInt,c=G.uniqueKey,q=h.charts,a=h.deg2rad,B=h.doc,J=h.isFirefox,O=h.isMS,p=h.isWebKit,r=h.noop,M=h.SVG_NS,v=h.symbolSizes,N=h.win,K;G=
|
|
|
+function(){function H(a,c,g,b,H,d,p){this.width=this.url=this.style=this.isSVG=this.imgCount=this.height=this.gradients=this.globalAnimation=this.defs=this.chartIndex=this.cacheKeys=this.cache=this.boxWrapper=this.box=this.alignedObjects=void 0;this.init(a,c,g,b,H,d,p)}H.prototype.init=function(a,c,g,b,H,d,p){var x=this.createElement("svg").attr({version:"1.1","class":"highcharts-root"});p||x.css(this.getStyle(b));b=x.element;a.appendChild(b);z(a,"dir","ltr");-1===a.innerHTML.indexOf("xmlns")&&z(b,
|
|
|
+"xmlns",this.SVG_NS);this.isSVG=!0;this.box=b;this.boxWrapper=x;this.alignedObjects=[];this.url=this.getReferenceURL();this.createElement("desc").add().element.appendChild(B.createTextNode("Created with Highcharts 9.1.0"));this.defs=this.createElement("defs").add();this.allowHTML=d;this.forExport=H;this.styledMode=p;this.gradients={};this.cache={};this.cacheKeys=[];this.imgCount=0;this.setSize(c,g,!1);var q;J&&a.getBoundingClientRect&&(c=function(){f(a,{left:0,top:0});q=a.getBoundingClientRect();
|
|
|
+f(a,{left:Math.ceil(q.left)-q.left+"px",top:Math.ceil(q.top)-q.top+"px"})},c(),this.unSubPixelFix=t(N,"resize",c))};H.prototype.definition=function(a){return(new E([a])).addToDOM(this.defs.element)};H.prototype.getReferenceURL=function(){if((J||p)&&B.getElementsByTagName("base").length){if(!b(K)){var a=c();a=(new E([{tagName:"svg",attributes:{width:8,height:8},children:[{tagName:"defs",children:[{tagName:"clipPath",attributes:{id:a},children:[{tagName:"rect",attributes:{width:4,height:4}}]}]},{tagName:"rect",
|
|
|
+attributes:{id:"hitme",width:8,height:8,"clip-path":"url(#"+a+")",fill:"rgba(0,0,0,0.001)"}}]}])).addToDOM(B.body);f(a,{position:"fixed",top:0,left:0,zIndex:9E5});var g=B.elementFromPoint(6,6);K="hitme"===(g&&g.id);B.body.removeChild(a)}if(K)return N.location.href.split("#")[0].replace(/<[^>]*>/g,"").replace(/([\('\)])/g,"\\$1").replace(/ /g,"%20")}return""};H.prototype.getStyle=function(a){return this.style=u({fontFamily:'"Lucida Grande", "Lucida Sans Unicode", Arial, Helvetica, sans-serif',fontSize:"12px"},
|
|
|
+a)};H.prototype.setStyle=function(a){this.boxWrapper.css(this.getStyle(a))};H.prototype.isHidden=function(){return!this.boxWrapper.getBBox().width};H.prototype.destroy=function(){var a=this.defs;this.box=null;this.boxWrapper=this.boxWrapper.destroy();A(this.gradients||{});this.gradients=null;a&&(this.defs=a.destroy());this.unSubPixelFix&&this.unSubPixelFix();return this.alignedObjects=null};H.prototype.createElement=function(a){var c=new this.Element;c.init(this,a);return c};H.prototype.getRadialAttr=
|
|
|
+function(a,c){return{cx:a[0]-a[2]/2+(c.cx||0)*a[2],cy:a[1]-a[2]/2+(c.cy||0)*a[2],r:(c.r||0)*a[2]}};H.prototype.buildText=function(a){(new C(a)).buildSVG()};H.prototype.getContrast=function(a){a=e.parse(a).rgba;a[0]*=1;a[1]*=1.2;a[2]*=.5;return 459<a[0]+a[1]+a[2]?"#000000":"#FFFFFF"};H.prototype.button=function(a,c,g,b,H,d,p,q,r,v){var x=this.label(a,c,g,r,void 0,void 0,v,void 0,"button"),k=0,n=this.styledMode,B=H?w(H):{};a=B&&B.style||{};B=E.filterUserAttributes(B);x.attr(w({padding:8,r:2},B));if(!n){B=
|
|
|
+w({fill:D.neutralColor3,stroke:D.neutralColor20,"stroke-width":1,style:{color:D.neutralColor80,cursor:"pointer",fontWeight:"normal"}},{style:a},B);var l=B.style;delete B.style;d=w(B,{fill:D.neutralColor10},E.filterUserAttributes(d||{}));var J=d.style;delete d.style;p=w(B,{fill:D.highlightColor10,style:{color:D.neutralColor100,fontWeight:"bold"}},E.filterUserAttributes(p||{}));var M=p.style;delete p.style;q=w(B,{style:{color:D.neutralColor20}},E.filterUserAttributes(q||{}));var f=q.style;delete q.style}t(x.element,
|
|
|
+O?"mouseover":"mouseenter",function(){3!==k&&x.setState(1)});t(x.element,O?"mouseout":"mouseleave",function(){3!==k&&x.setState(k)});x.setState=function(a){1!==a&&(x.state=k=a);x.removeClass(/highcharts-button-(normal|hover|pressed|disabled)/).addClass("highcharts-button-"+["normal","hover","pressed","disabled"][a||0]);n||x.attr([B,d,p,q][a||0]).css([l,J,M,f][a||0])};n||x.attr(B).css(u({cursor:"default"},l));return x.on("touchstart",function(a){return a.stopPropagation()}).on("click",function(a){3!==
|
|
|
+k&&b.call(x,a)})};H.prototype.crispLine=function(a,c,g){void 0===g&&(g="round");var x=a[0],b=a[1];x[1]===b[1]&&(x[1]=b[1]=Math[g](x[1])-c%2/2);x[2]===b[2]&&(x[2]=b[2]=Math[g](x[2])+c%2/2);return a};H.prototype.path=function(a){var c=this.styledMode?{}:{fill:"none"};l(a)?c.d=a:k(a)&&u(c,a);return this.createElement("path").attr(c)};H.prototype.circle=function(a,c,g){a=k(a)?a:"undefined"===typeof a?{}:{x:a,y:c,r:g};c=this.createElement("circle");c.xSetter=c.ySetter=function(a,c,x){x.setAttribute("c"+
|
|
|
+c,a)};return c.attr(a)};H.prototype.arc=function(a,c,g,b,H,d){k(a)?(b=a,c=b.y,g=b.r,a=b.x):b={innerR:b,start:H,end:d};a=this.symbol("arc",a,c,g,g,b);a.r=g;return a};H.prototype.rect=function(a,c,g,b,H,d){H=k(a)?a.r:H;var x=this.createElement("rect");a=k(a)?a:"undefined"===typeof a?{}:{x:a,y:c,width:Math.max(g,0),height:Math.max(b,0)};this.styledMode||("undefined"!==typeof d&&(a["stroke-width"]=d,a=x.crisp(a)),a.fill="none");H&&(a.r=H);x.rSetter=function(a,c,g){x.r=a;z(g,{rx:a,ry:a})};x.rGetter=function(){return x.r||
|
|
|
+0};return x.attr(a)};H.prototype.setSize=function(a,c,g){this.width=a;this.height=c;this.boxWrapper.animate({width:a,height:c},{step:function(){this.attr({viewBox:"0 0 "+this.attr("width")+" "+this.attr("height")})},duration:n(g,!0)?void 0:0});this.alignElements()};H.prototype.g=function(a){var c=this.createElement("g");return a?c.attr({"class":"highcharts-"+a}):c};H.prototype.image=function(a,c,g,b,H,d){var x={preserveAspectRatio:"none"},p=function(a,c){a.setAttributeNS?a.setAttributeNS("http://www.w3.org/1999/xlink",
|
|
|
+"href",c):a.setAttribute("hc-svg-href",c)},q=function(c){p(r.element,a);d.call(r,c)};1<arguments.length&&u(x,{x:c,y:g,width:b,height:H});var r=this.createElement("image").attr(x);d?(p(r.element,"data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw=="),x=new N.Image,t(x,"load",q),x.src=a,x.complete&&q({})):p(r.element,a);return r};H.prototype.symbol=function(a,c,g,H,d,p){var x=this,r=/^url\((.*?)\)$/,k=r.test(a),l=!k&&(this.symbols[a]?a:"circle"),J=l&&this.symbols[l],M;if(J){"number"===
|
|
|
+typeof c&&(M=J.call(this.symbols,Math.round(c||0),Math.round(g||0),H||0,d||0,p));var w=this.path(M);x.styledMode||w.attr("fill","none");u(w,{symbolName:l,x:c,y:g,width:H,height:d});p&&u(w,p)}else if(k){var N=a.match(r)[1];w=this.image(N);w.imgwidth=n(v[N]&&v[N].width,p&&p.width);w.imgheight=n(v[N]&&v[N].height,p&&p.height);var R=function(){w.attr({width:w.width,height:w.height})};["width","height"].forEach(function(a){w[a+"Setter"]=function(a,c){var g=this["img"+c];this[c]=a;b(g)&&(p&&"within"===
|
|
|
+p.backgroundSize&&this.width&&this.height&&(g=Math.round(g*Math.min(this.width/this.imgwidth,this.height/this.imgheight))),this.element&&this.element.setAttribute(c,g),this.alignByTranslate||(a=((this[c]||0)-g)/2,this.attr("width"===c?{translateX:a}:{translateY:a})))}});b(c)&&w.attr({x:c,y:g});w.isImg=!0;b(w.imgwidth)&&b(w.imgheight)?R():(w.attr({width:0,height:0}),m("img",{onload:function(){var a=q[x.chartIndex];0===this.width&&(f(this,{position:"absolute",top:"-999em"}),B.body.appendChild(this));
|
|
|
+v[N]={width:this.width,height:this.height};w.imgwidth=this.width;w.imgheight=this.height;w.element&&R();this.parentNode&&this.parentNode.removeChild(this);x.imgCount--;if(!x.imgCount&&a&&!a.hasLoaded)a.onload()},src:N}),this.imgCount++)}return w};H.prototype.clipRect=function(a,g,b,H){var x=c()+"-",d=this.createElement("clipPath").attr({id:x}).add(this.defs);a=this.rect(a,g,b,H,0).add(d);a.id=x;a.clipPath=d;a.count=0;return a};H.prototype.text=function(a,c,g,H){var x={};if(H&&(this.allowHTML||!this.forExport))return this.html(a,
|
|
|
+c,g);x.x=Math.round(c||0);g&&(x.y=Math.round(g));b(a)&&(x.text=a);a=this.createElement("text").attr(x);H||(a.xSetter=function(a,c,g){var x=g.getElementsByTagName("tspan"),b=g.getAttribute(c),H;for(H=0;H<x.length;H++){var d=x[H];d.getAttribute(c)===b&&d.setAttribute(c,a)}g.setAttribute(c,a)});return a};H.prototype.fontMetrics=function(a,c){a=!this.styledMode&&/px/.test(a)||!N.getComputedStyle?a||c&&c.style&&c.style.fontSize||this.style&&this.style.fontSize:c&&y.prototype.getStyle.call(c,"font-size");
|
|
|
+a=/px/.test(a)?g(a):12;c=24>a?a+3:Math.round(1.2*a);return{h:c,b:Math.round(.8*c),f:a}};H.prototype.rotCorr=function(c,g,b){var x=c;g&&b&&(x=Math.max(x*Math.cos(g*a),4));return{x:-c/3*Math.sin(g*a),y:x}};H.prototype.pathToSegments=function(a){for(var c=[],g=[],b={A:8,C:7,H:2,L:3,M:3,Q:5,S:5,T:3,V:2},x=0;x<a.length;x++)d(g[0])&&I(a[x])&&g.length===b[g[0].toUpperCase()]&&a.splice(x,0,g[0].replace("M","L").replace("m","l")),"string"===typeof a[x]&&(g.length&&c.push(g.slice(0)),g.length=0),g.push(a[x]);
|
|
|
+c.push(g.slice(0));return c};H.prototype.label=function(a,c,g,b,H,d,p,q,r){return new F(this,a,c,g,b,H,d,p,q,r)};H.prototype.alignElements=function(){this.alignedObjects.forEach(function(a){return a.align()})};return H}();G.prototype.Element=y;G.prototype.SVG_NS=M;G.prototype.draw=r;G.prototype.escapes={"&":"&","<":"<",">":">","'":"'",'"':"""};var L=function(a,c,g,b,d){d=d&&d.r||0;return[["M",a+d,c],["L",a+g-d,c],["C",a+g,c,a+g,c,a+g,c+d],["L",a+g,c+b-d],["C",a+g,c+b,a+g,c+b,a+
|
|
|
+g-d,c+b],["L",a+d,c+b],["C",a,c+b,a,c+b,a,c+b-d],["L",a,c+d],["C",a,c,a,c,a+d,c]]};r=function(a,c,g,b,d){return d&&d.r?L(a,c,g,b,d):[["M",a,c],["L",a+g,c],["L",a+g,c+b],["L",a,c+b],["Z"]]};G.prototype.symbols={circle:function(a,c,g,b){return this.arc(a+g/2,c+b/2,g/2,b/2,{start:.5*Math.PI,end:2.5*Math.PI,open:!1})},rect:r,square:r,triangle:function(a,c,g,b){return[["M",a+g/2,c],["L",a+g,c+b],["L",a,c+b],["Z"]]},"triangle-down":function(a,c,g,b){return[["M",a,c],["L",a+g,c],["L",a+g/2,c+b],["Z"]]},
|
|
|
+diamond:function(a,c,g,b){return[["M",a+g/2,c],["L",a+g,c+b/2],["L",a+g/2,c+b],["L",a,c+b/2],["Z"]]},arc:function(a,c,g,d,p){var x=[];if(p){var H=p.start||0,q=n(p.r,g);g=n(p.r,d||g);var r=(p.end||0)-.001;d=p.innerR;var v=n(p.open,.001>Math.abs((p.end||0)-H-2*Math.PI)),k=Math.cos(H),B=Math.sin(H),l=Math.cos(r),J=Math.sin(r);H=n(p.longArc,.001>r-H-Math.PI?0:1);x.push(["M",a+q*k,c+g*B],["A",q,g,0,H,n(p.clockwise,1),a+q*l,c+g*J]);b(d)&&x.push(v?["M",a+d*l,c+d*J]:["L",a+d*l,c+d*J],["A",d,d,0,H,b(p.clockwise)?
|
|
|
+1-p.clockwise:0,a+d*k,c+d*B]);v||x.push(["Z"])}return x},callout:function(a,c,g,b,d){var x=Math.min(d&&d.r||0,g,b),p=x+6,H=d&&d.anchorX;d=d&&d.anchorY||0;var q=L(a,c,g,b,{r:x});if(!I(H))return q;a+H>=g?d>c+p&&d<c+b-p?q.splice(3,1,["L",a+g,d-6],["L",a+g+6,d],["L",a+g,d+6],["L",a+g,c+b-x]):q.splice(3,1,["L",a+g,b/2],["L",H,d],["L",a+g,b/2],["L",a+g,c+b-x]):0>=a+H?d>c+p&&d<c+b-p?q.splice(7,1,["L",a,d+6],["L",a-6,d],["L",a,d-6],["L",a,c+x]):q.splice(7,1,["L",a,b/2],["L",H,d],["L",a,b/2],["L",a,c+x]):
|
|
|
+d&&d>b&&H>a+p&&H<a+g-p?q.splice(5,1,["L",H+6,c+b],["L",H,c+b+6],["L",H-6,c+b],["L",a+x,c+b]):d&&0>d&&H>a+p&&H<a+g-p&&q.splice(1,1,["L",H-6,c],["L",H,c-6],["L",H+6,c],["L",g-x,c]);return q}};h.SVGRenderer=G;h.Renderer=h.SVGRenderer;return h.Renderer});P(e,"Core/Renderer/HTML/HTMLElement.js",[e["Core/Globals.js"],e["Core/Renderer/SVG/SVGElement.js"],e["Core/Utilities.js"]],function(e,h,D){var y=e.isFirefox,F=e.isMS,E=e.isWebKit,C=e.win,G=D.css,t=D.defined,z=D.extend,m=D.pick,f=D.pInt;z(h.prototype,
|
|
|
+{htmlCss:function(b){var f="SPAN"===this.element.tagName&&b&&"width"in b,u=m(f&&b.width,void 0);if(f){delete b.width;this.textWidth=u;var l=!0}b&&"ellipsis"===b.textOverflow&&(b.whiteSpace="nowrap",b.overflow="hidden");this.styles=z(this.styles,b);G(this.element,b);l&&this.htmlUpdateTransform();return this},htmlGetBBox:function(){var b=this.element;return{x:b.offsetLeft,y:b.offsetTop,width:b.offsetWidth,height:b.offsetHeight}},htmlUpdateTransform:function(){if(this.added){var b=this.renderer,m=this.element,
|
|
|
+u=this.translateX||0,l=this.translateY||0,I=this.x||0,k=this.y||0,d=this.textAlign||"left",w={left:0,center:.5,right:1}[d],n=this.styles;n=n&&n.whiteSpace;G(m,{marginLeft:u,marginTop:l});!b.styledMode&&this.shadows&&this.shadows.forEach(function(a){G(a,{marginLeft:u+1,marginTop:l+1})});this.inverted&&[].forEach.call(m.childNodes,function(a){b.invertChild(a,m)});if("SPAN"===m.tagName){var g=this.rotation,c=void 0;c=this.textWidth&&f(this.textWidth);var q=[g,d,m.innerHTML,this.textWidth,this.textAlign].join(),
|
|
|
+a;(a=c!==this.oldTextWidth)&&!(a=c>this.oldTextWidth)&&((a=this.textPxLength)||(G(m,{width:"",whiteSpace:n||"nowrap"}),a=m.offsetWidth),a=a>c);a&&(/[ \-]/.test(m.textContent||m.innerText)||"ellipsis"===m.style.textOverflow)?(G(m,{width:c+"px",display:"block",whiteSpace:n||"normal"}),this.oldTextWidth=c,this.hasBoxWidthChanged=!0):this.hasBoxWidthChanged=!1;q!==this.cTT&&(c=b.fontMetrics(m.style.fontSize,m).b,!t(g)||g===(this.oldRotation||0)&&d===this.oldAlign||this.setSpanRotation(g,w,c),this.getSpanCorrection(!t(g)&&
|
|
|
+this.textPxLength||m.offsetWidth,c,w,g,d));G(m,{left:I+(this.xCorr||0)+"px",top:k+(this.yCorr||0)+"px"});this.cTT=q;this.oldRotation=g;this.oldAlign=d}}else this.alignOnAdd=!0},setSpanRotation:function(b,f,m){var l={},I=F&&!/Edge/.test(C.navigator.userAgent)?"-ms-transform":E?"-webkit-transform":y?"MozTransform":C.opera?"-o-transform":void 0;I&&(l[I]=l.transform="rotate("+b+"deg)",l[I+(y?"Origin":"-origin")]=l.transformOrigin=100*f+"% "+m+"px",G(this.element,l))},getSpanCorrection:function(b,f,m){this.xCorr=
|
|
|
+-b*m;this.yCorr=-f}});return h});P(e,"Core/Renderer/HTML/HTMLRenderer.js",[e["Core/Renderer/HTML/AST.js"],e["Core/Renderer/SVG/SVGElement.js"],e["Core/Renderer/SVG/SVGRenderer.js"],e["Core/Utilities.js"]],function(e,h,D,y){var F=y.attr,E=y.createElement,C=y.extend,G=y.pick;C(D.prototype,{html:function(t,z,m){var f=this.createElement("span"),b=f.element,A=f.renderer,u=A.isSVG,l=function(b,k){["opacity","visibility"].forEach(function(d){b[d+"Setter"]=function(l,n,g){var c=b.div?b.div.style:k;h.prototype[d+
|
|
|
+"Setter"].call(this,l,n,g);c&&(c[n]=l)}});b.addedSetters=!0};f.textSetter=function(b){b!==this.textStr&&(delete this.bBox,delete this.oldTextWidth,e.setElementHTML(this.element,G(b,"")),this.textStr=b,f.doTransform=!0)};u&&l(f,f.element.style);f.xSetter=f.ySetter=f.alignSetter=f.rotationSetter=function(b,k){"align"===k?f.alignValue=f.textAlign=b:f[k]=b;f.doTransform=!0};f.afterSetters=function(){this.doTransform&&(this.htmlUpdateTransform(),this.doTransform=!1)};f.attr({text:t,x:Math.round(z),y:Math.round(m)}).css({position:"absolute"});
|
|
|
+A.styledMode||f.css({fontFamily:this.style.fontFamily,fontSize:this.style.fontSize});b.style.whiteSpace="nowrap";f.css=f.htmlCss;u&&(f.add=function(I){var k=A.box.parentNode,d=[];if(this.parentGroup=I){var w=I.div;if(!w){for(;I;)d.push(I),I=I.parentGroup;d.reverse().forEach(function(b){function g(c,g){b[g]=c;"translateX"===g?a.left=c+"px":a.top=c+"px";b.doTransform=!0}var c=F(b.element,"class"),q=b.styles||{};w=b.div=b.div||E("div",c?{className:c}:void 0,{position:"absolute",left:(b.translateX||0)+
|
|
|
+"px",top:(b.translateY||0)+"px",display:b.display,opacity:b.opacity,cursor:q.cursor,pointerEvents:q.pointerEvents},w||k);var a=w.style;C(b,{classSetter:function(a){return function(c){this.element.setAttribute("class",c);a.className=c}}(w),on:function(){d[0].div&&f.on.apply({element:d[0].div,onEvents:f.onEvents},arguments);return b},translateXSetter:g,translateYSetter:g});b.addedSetters||l(b)})}}else w=k;w.appendChild(b);f.added=!0;f.alignOnAdd&&f.htmlUpdateTransform();return f});return f}});return D});
|
|
|
+P(e,"Core/Axis/Tick.js",[e["Core/FormatUtilities.js"],e["Core/Globals.js"],e["Core/Utilities.js"]],function(e,h,D){var y=h.deg2rad,F=D.clamp,E=D.correctFloat,C=D.defined,G=D.destroyObjectProperties,t=D.extend,z=D.fireEvent,m=D.isNumber,f=D.merge,b=D.objectEach,A=D.pick;"";D=function(){function u(b,f,k,d,w){this.isNewLabel=this.isNew=!0;this.axis=b;this.pos=f;this.type=k||"";this.parameters=w||{};this.tickmarkOffset=this.parameters.tickmarkOffset;this.options=this.parameters.options;z(this,"init");
|
|
|
+k||d||this.addLabel()}u.prototype.addLabel=function(){var b=this,f=b.axis,k=f.options,d=f.chart,w=f.categories,n=f.logarithmic,g=f.names,c=b.pos,q=A(b.options&&b.options.labels,k.labels),a=f.tickPositions,B=c===a[0],J=c===a[a.length-1],O=b.label,p=(!q.step||1===q.step)&&1===f.tickInterval;a=a.info;var r,M;w=this.parameters.category||(w?A(w[c],g[c],c):c);n&&m(w)&&(w=E(n.lin2log(w)));if(f.dateTime&&a){var v=d.time.resolveDTLFormat(k.dateTimeLabelFormats[!k.grid&&a.higherRanks[c]||a.unitName]);var N=
|
|
|
+v.main}b.isFirst=B;b.isLast=J;var K={axis:f,chart:d,dateTimeLabelFormat:N,isFirst:B,isLast:J,pos:c,tick:b,tickPositionInfo:a,value:w};z(this,"labelFormat",K);var u=function(a){return q.formatter?q.formatter.call(a,a):q.format?(a.text=f.defaultLabelFormatter.call(a),e.format(q.format,a,d)):f.defaultLabelFormatter.call(a,a)};k=u.call(K,K);if(M=v&&v.list)b.shortenLabel=function(){for(r=0;r<M.length;r++)if(t(K,{dateTimeLabelFormat:M[r]}),O.attr({text:u.call(K,K)}),O.getBBox().width<f.getSlotWidth(b)-
|
|
|
+2*q.padding)return;O.attr({text:""})};p&&f._addedPlotLB&&b.moveLabel(k,q);C(O)||b.movedLabel?O&&O.textStr!==k&&!p&&(!O.textWidth||q.style.width||O.styles.width||O.css({width:null}),O.attr({text:k}),O.textPxLength=O.getBBox().width):(b.label=O=b.createLabel({x:0,y:0},k,q),b.rotation=0)};u.prototype.createLabel=function(b,m,k){var d=this.axis,l=d.chart;if(b=C(m)&&k.enabled?l.renderer.text(m,b.x,b.y,k.useHTML).add(d.labelGroup):null)l.styledMode||b.css(f(k.style)),b.textPxLength=b.getBBox().width;return b};
|
|
|
+u.prototype.destroy=function(){G(this,this.axis)};u.prototype.getPosition=function(b,f,k,d){var l=this.axis,n=l.chart,g=d&&n.oldChartHeight||n.chartHeight;b={x:b?E(l.translate(f+k,null,null,d)+l.transB):l.left+l.offset+(l.opposite?(d&&n.oldChartWidth||n.chartWidth)-l.right-l.left:0),y:b?g-l.bottom+l.offset-(l.opposite?l.height:0):E(g-l.translate(f+k,null,null,d)-l.transB)};b.y=F(b.y,-1E5,1E5);z(this,"afterGetPosition",{pos:b});return b};u.prototype.getLabelPosition=function(b,f,k,d,w,n,g,c){var q=
|
|
|
+this.axis,a=q.transA,B=q.isLinked&&q.linkedParent?q.linkedParent.reversed:q.reversed,J=q.staggerLines,l=q.tickRotCorr||{x:0,y:0},p=w.y,r=d||q.reserveSpaceDefault?0:-q.labelOffset*("center"===q.labelAlign?.5:1),M={};C(p)||(p=0===q.side?k.rotation?-8:-k.getBBox().height:2===q.side?l.y+8:Math.cos(k.rotation*y)*(l.y-k.getBBox(!1,0).height/2));b=b+w.x+r+l.x-(n&&d?n*a*(B?-1:1):0);f=f+p-(n&&!d?n*a*(B?1:-1):0);J&&(k=g/(c||1)%J,q.opposite&&(k=J-k-1),f+=q.labelOffset/J*k);M.x=b;M.y=Math.round(f);z(this,"afterGetLabelPosition",
|
|
|
+{pos:M,tickmarkOffset:n,index:g});return M};u.prototype.getLabelSize=function(){return this.label?this.label.getBBox()[this.axis.horiz?"height":"width"]:0};u.prototype.getMarkPath=function(b,f,k,d,w,n){return n.crispLine([["M",b,f],["L",b+(w?0:-k),f+(w?k:0)]],d)};u.prototype.handleOverflow=function(b){var f=this.axis,k=f.options.labels,d=b.x,l=f.chart.chartWidth,n=f.chart.spacing,g=A(f.labelLeft,Math.min(f.pos,n[3]));n=A(f.labelRight,Math.max(f.isRadial?0:f.pos+f.len,l-n[1]));var c=this.label,q=this.rotation,
|
|
|
+a={left:0,center:.5,right:1}[f.labelAlign||c.attr("align")],B=c.getBBox().width,J=f.getSlotWidth(this),m=J,p=1,r,M={};if(q||"justify"!==k.overflow)0>q&&d-a*B<g?r=Math.round(d/Math.cos(q*y)-g):0<q&&d+a*B>n&&(r=Math.round((l-d)/Math.cos(q*y)));else if(l=d+(1-a)*B,d-a*B<g?m=b.x+m*(1-a)-g:l>n&&(m=n-b.x+m*a,p=-1),m=Math.min(J,m),m<J&&"center"===f.labelAlign&&(b.x+=p*(J-m-a*(J-Math.min(B,m)))),B>m||f.autoRotation&&(c.styles||{}).width)r=m;r&&(this.shortenLabel?this.shortenLabel():(M.width=Math.floor(r)+
|
|
|
+"px",(k.style||{}).textOverflow||(M.textOverflow="ellipsis"),c.css(M)))};u.prototype.moveLabel=function(f,m){var k=this,d=k.label,l=!1,n=k.axis,g=n.reversed;d&&d.textStr===f?(k.movedLabel=d,l=!0,delete k.label):b(n.ticks,function(c){l||c.isNew||c===k||!c.label||c.label.textStr!==f||(k.movedLabel=c.label,l=!0,c.labelPos=k.movedLabel.xy,delete c.label)});if(!l&&(k.labelPos||d)){var c=k.labelPos||d.xy;d=n.horiz?g?0:n.width+n.left:c.x;n=n.horiz?c.y:g?n.width+n.left:0;k.movedLabel=k.createLabel({x:d,y:n},
|
|
|
+f,m);k.movedLabel&&k.movedLabel.attr({opacity:0})}};u.prototype.render=function(b,f,k){var d=this.axis,l=d.horiz,n=this.pos,g=A(this.tickmarkOffset,d.tickmarkOffset);n=this.getPosition(l,n,g,f);g=n.x;var c=n.y;d=l&&g===d.pos+d.len||!l&&c===d.pos?-1:1;l=A(k,this.label&&this.label.newOpacity,1);k=A(k,1);this.isActive=!0;this.renderGridLine(f,k,d);this.renderMark(n,k,d);this.renderLabel(n,f,l,b);this.isNew=!1;z(this,"afterRender")};u.prototype.renderGridLine=function(b,f,k){var d=this.axis,l=d.options,
|
|
|
+n=this.gridLine,g={},c=this.pos,q=this.type,a=A(this.tickmarkOffset,d.tickmarkOffset),B=d.chart.renderer,J=l.gridLineWidth,m=l.gridLineColor,p=l.gridLineDashStyle;"minor"===this.type&&(J=l.minorGridLineWidth,m=l.minorGridLineColor,p=l.minorGridLineDashStyle);n||(d.chart.styledMode||(g.stroke=m,g["stroke-width"]=J||0,g.dashstyle=p),q||(g.zIndex=1),b&&(f=0),this.gridLine=n=B.path().attr(g).addClass("highcharts-"+(q?q+"-":"")+"grid-line").add(d.gridGroup));if(n&&(k=d.getPlotLinePath({value:c+a,lineWidth:n.strokeWidth()*
|
|
|
+k,force:"pass",old:b})))n[b||this.isNew?"attr":"animate"]({d:k,opacity:f})};u.prototype.renderMark=function(b,f,k){var d=this.axis,l=d.options,n=d.chart.renderer,g=this.type,c=d.tickSize(g?g+"Tick":"tick"),q=this.mark,a=!q,B=b.x;b=b.y;var J=A(l["minor"!==g?"tickWidth":"minorTickWidth"],!g&&d.isXAxis?1:0);l=l["minor"!==g?"tickColor":"minorTickColor"];c&&(d.opposite&&(c[0]=-c[0]),a&&(this.mark=q=n.path().addClass("highcharts-"+(g?g+"-":"")+"tick").add(d.axisGroup),d.chart.styledMode||q.attr({stroke:l,
|
|
|
+"stroke-width":J})),q[a?"attr":"animate"]({d:this.getMarkPath(B,b,c[0],q.strokeWidth()*k,d.horiz,n),opacity:f}))};u.prototype.renderLabel=function(b,f,k,d){var l=this.axis,n=l.horiz,g=l.options,c=this.label,q=g.labels,a=q.step;l=A(this.tickmarkOffset,l.tickmarkOffset);var B=!0,J=b.x;b=b.y;c&&m(J)&&(c.xy=b=this.getLabelPosition(J,b,c,n,q,l,d,a),this.isFirst&&!this.isLast&&!g.showFirstLabel||this.isLast&&!this.isFirst&&!g.showLastLabel?B=!1:!n||q.step||q.rotation||f||0===k||this.handleOverflow(b),a&&
|
|
|
+d%a&&(B=!1),B&&m(b.y)?(b.opacity=k,c[this.isNewLabel?"attr":"animate"](b),this.isNewLabel=!1):(c.attr("y",-9999),this.isNewLabel=!0))};u.prototype.replaceMovedLabel=function(){var b=this.label,f=this.axis,k=f.reversed;if(b&&!this.isNew){var d=f.horiz?k?f.left:f.width+f.left:b.xy.x;k=f.horiz?b.xy.y:k?f.width+f.top:f.top;b.animate({x:d,y:k,opacity:0},void 0,b.destroy);delete this.label}f.isDirty=!0;this.label=this.movedLabel;delete this.movedLabel};return u}();h.Tick=D;return h.Tick});P(e,"Core/Axis/Axis.js",
|
|
|
+[e["Core/Animation/AnimationUtilities.js"],e["Core/Color/Color.js"],e["Core/Globals.js"],e["Core/Color/Palette.js"],e["Core/Options.js"],e["Core/Axis/Tick.js"],e["Core/Utilities.js"]],function(e,h,D,y,F,E,C){var G=e.animObject,t=F.defaultOptions,z=C.addEvent,m=C.arrayMax,f=C.arrayMin,b=C.clamp,A=C.correctFloat,u=C.defined,l=C.destroyObjectProperties,I=C.erase,k=C.error,d=C.extend,w=C.fireEvent,n=C.getMagnitude,g=C.isArray,c=C.isFunction,q=C.isNumber,a=C.isString,B=C.merge,J=C.normalizeTickInterval,
|
|
|
+O=C.objectEach,p=C.pick,r=C.relativeLength,M=C.removeEvent,v=C.splat,N=C.syncTimeout;"";var K=D.deg2rad;e=function(){function L(a,c){this.zoomEnabled=this.width=this.visible=this.userOptions=this.translationSlope=this.transB=this.transA=this.top=this.ticks=this.tickRotCorr=this.tickPositions=this.tickmarkOffset=this.tickInterval=this.tickAmount=this.side=this.series=this.right=this.positiveValuesOnly=this.pos=this.pointRangePadding=this.pointRange=this.plotLinesAndBandsGroups=this.plotLinesAndBands=
|
|
|
+this.paddedTicks=this.overlap=this.options=this.offset=this.names=this.minPixelPadding=this.minorTicks=this.minorTickInterval=this.min=this.maxLabelLength=this.max=this.len=this.left=this.labelFormatter=this.labelEdge=this.isLinked=this.height=this.hasVisibleSeries=this.hasNames=this.coll=this.closestPointRange=this.chart=this.categories=this.bottom=this.alternateBands=void 0;this.init(a,c)}L.prototype.init=function(a,b){var g=b.isX,d=this;d.chart=a;d.horiz=a.inverted&&!d.isZAxis?!g:g;d.isXAxis=g;
|
|
|
+d.coll=d.coll||(g?"xAxis":"yAxis");w(this,"init",{userOptions:b});d.opposite=p(b.opposite,d.opposite);d.side=p(b.side,d.side,d.horiz?d.opposite?0:2:d.opposite?1:3);d.setOptions(b);var x=this.options,H=x.labels,r=x.type;d.userOptions=b;d.minPixelPadding=0;d.reversed=p(x.reversed,d.reversed);d.visible=x.visible;d.zoomEnabled=x.zoomEnabled;d.hasNames="category"===r||!0===x.categories;d.categories=x.categories||d.hasNames;d.names||(d.names=[],d.names.keys={});d.plotLinesAndBandsGroups={};d.positiveValuesOnly=
|
|
|
+!!d.logarithmic;d.isLinked=u(x.linkedTo);d.ticks={};d.labelEdge=[];d.minorTicks={};d.plotLinesAndBands=[];d.alternateBands={};d.len=0;d.minRange=d.userMinRange=x.minRange||x.maxZoom;d.range=x.range;d.offset=x.offset||0;d.max=null;d.min=null;b=p(x.crosshair,v(a.options.tooltip.crosshairs)[g?0:1]);d.crosshair=!0===b?{}:b;b=d.options.events;-1===a.axes.indexOf(d)&&(g?a.axes.splice(a.xAxis.length,0,d):a.axes.push(d),a[d.coll].push(d));d.series=d.series||[];a.inverted&&!d.isZAxis&&g&&"undefined"===typeof d.reversed&&
|
|
|
+(d.reversed=!0);d.labelRotation=q(H.rotation)?H.rotation:void 0;O(b,function(a,b){c(a)&&z(d,b,a)});w(this,"afterInit")};L.prototype.setOptions=function(a){this.options=B(L.defaultOptions,"yAxis"===this.coll&&L.defaultYAxisOptions,[L.defaultTopAxisOptions,L.defaultRightAxisOptions,L.defaultBottomAxisOptions,L.defaultLeftAxisOptions][this.side],B(t[this.coll],a));w(this,"afterSetOptions",{userOptions:a})};L.prototype.defaultLabelFormatter=function(){var a=this.axis,c=q(this.value)?this.value:NaN,b=
|
|
|
+a.chart.time,g=this.dateTimeLabelFormat,d=t.lang,p=d.numericSymbols;d=d.numericSymbolMagnitude||1E3;var r=p&&p.length,v=a.logarithmic?Math.abs(c):a.tickInterval,k=this.chart.numberFormatter;if(a.categories)var f=""+this.value;else if(g)f=b.dateFormat(g,c);else if(r&&1E3<=v)for(;r--&&"undefined"===typeof f;)a=Math.pow(d,r+1),v>=a&&0===10*c%a&&null!==p[r]&&0!==c&&(f=k(c/a,-1)+p[r]);"undefined"===typeof f&&(f=1E4<=Math.abs(c)?k(c,-1):k(c,-1,void 0,""));return f};L.prototype.getSeriesExtremes=function(){var a=
|
|
|
+this,c=a.chart,b;w(this,"getSeriesExtremes",null,function(){a.hasVisibleSeries=!1;a.dataMin=a.dataMax=a.threshold=null;a.softThreshold=!a.isXAxis;a.stacking&&a.stacking.buildStacks();a.series.forEach(function(g){if(g.visible||!c.options.chart.ignoreHiddenSeries){var d=g.options,x=d.threshold;a.hasVisibleSeries=!0;a.positiveValuesOnly&&0>=x&&(x=null);if(a.isXAxis){if(d=g.xData,d.length){d=a.logarithmic?d.filter(a.validatePositiveValue):d;b=g.getXExtremes(d);var H=b.min;var r=b.max;q(H)||H instanceof
|
|
|
+Date||(d=d.filter(q),b=g.getXExtremes(d),H=b.min,r=b.max);d.length&&(a.dataMin=Math.min(p(a.dataMin,H),H),a.dataMax=Math.max(p(a.dataMax,r),r))}}else if(g=g.applyExtremes(),q(g.dataMin)&&(H=g.dataMin,a.dataMin=Math.min(p(a.dataMin,H),H)),q(g.dataMax)&&(r=g.dataMax,a.dataMax=Math.max(p(a.dataMax,r),r)),u(x)&&(a.threshold=x),!d.softThreshold||a.positiveValuesOnly)a.softThreshold=!1}})});w(this,"afterGetSeriesExtremes")};L.prototype.translate=function(a,c,b,g,d,p){var x=this.linkedParent||this,r=1,H=
|
|
|
+0,v=g&&x.old?x.old.transA:x.transA;g=g&&x.old?x.old.min:x.min;var k=x.minPixelPadding;d=(x.isOrdinal||x.brokenAxis&&x.brokenAxis.hasBreaks||x.logarithmic&&d)&&x.lin2val;v||(v=x.transA);b&&(r*=-1,H=x.len);x.reversed&&(r*=-1,H-=r*(x.sector||x.len));c?(a=(a*r+H-k)/v+g,d&&(a=x.lin2val(a))):(d&&(a=x.val2lin(a)),a=q(g)?r*(a-g)*v+H+r*k+(q(p)?v*p:0):void 0);return a};L.prototype.toPixels=function(a,c){return this.translate(a,!1,!this.horiz,null,!0)+(c?0:this.pos)};L.prototype.toValue=function(a,c){return this.translate(a-
|
|
|
+(c?0:this.pos),!0,!this.horiz,null,!0)};L.prototype.getPlotLinePath=function(a){function c(a,c,g){if("pass"!==B&&a<c||a>g)B?a=b(a,c,g):u=!0;return a}var g=this,d=g.chart,r=g.left,H=g.top,v=a.old,k=a.value,f=a.translatedValue,n=a.lineWidth,B=a.force,J,l,M,N,K=v&&d.oldChartHeight||d.chartHeight,m=v&&d.oldChartWidth||d.chartWidth,u,O=g.transB;a={value:k,lineWidth:n,old:v,force:B,acrossPanes:a.acrossPanes,translatedValue:f};w(this,"getPlotLinePath",a,function(a){f=p(f,g.translate(k,null,null,v));f=b(f,
|
|
|
+-1E5,1E5);J=M=Math.round(f+O);l=N=Math.round(K-f-O);q(f)?g.horiz?(l=H,N=K-g.bottom,J=M=c(J,r,r+g.width)):(J=r,M=m-g.right,l=N=c(l,H,H+g.height)):(u=!0,B=!1);a.path=u&&!B?null:d.renderer.crispLine([["M",J,l],["L",M,N]],n||1)});return a.path};L.prototype.getLinearTickPositions=function(a,c,b){var g=A(Math.floor(c/a)*a);b=A(Math.ceil(b/a)*a);var d=[],x;A(g+a)===g&&(x=20);if(this.single)return[c];for(c=g;c<=b;){d.push(c);c=A(c+a,x);if(c===p)break;var p=c}return d};L.prototype.getMinorTickInterval=function(){var a=
|
|
|
+this.options;return!0===a.minorTicks?p(a.minorTickInterval,"auto"):!1===a.minorTicks?null:a.minorTickInterval};L.prototype.getMinorTickPositions=function(){var a=this.options,c=this.tickPositions,b=this.minorTickInterval,g=[],d=this.pointRangePadding||0,p=this.min-d;d=this.max+d;var q=d-p;if(q&&q/b<this.len/3){var r=this.logarithmic;if(r)this.paddedTicks.forEach(function(a,c,d){c&&g.push.apply(g,r.getLogTickPositions(b,d[c-1],d[c],!0))});else if(this.dateTime&&"auto"===this.getMinorTickInterval())g=
|
|
|
+g.concat(this.getTimeTicks(this.dateTime.normalizeTimeTickInterval(b),p,d,a.startOfWeek));else for(a=p+(c[0]-p)%b;a<=d&&a!==g[0];a+=b)g.push(a)}0!==g.length&&this.trimTicks(g);return g};L.prototype.adjustForMinRange=function(){var a=this.options,c=this.min,b=this.max,g=this.logarithmic,d=0,q,r,v,k;this.isXAxis&&"undefined"===typeof this.minRange&&!g&&(u(a.min)||u(a.max)?this.minRange=null:(this.series.forEach(function(a){v=a.xData;k=a.xIncrement?1:v.length-1;if(1<v.length)for(q=k;0<q;q--)if(r=v[q]-
|
|
|
+v[q-1],!d||r<d)d=r}),this.minRange=Math.min(5*d,this.dataMax-this.dataMin)));if(b-c<this.minRange){var n=this.dataMax-this.dataMin>=this.minRange;var B=this.minRange;var J=(B-b+c)/2;J=[c-J,p(a.min,c-J)];n&&(J[2]=this.logarithmic?this.logarithmic.log2lin(this.dataMin):this.dataMin);c=m(J);b=[c+B,p(a.max,c+B)];n&&(b[2]=g?g.log2lin(this.dataMax):this.dataMax);b=f(b);b-c<B&&(J[0]=b-B,J[1]=p(a.min,b-B),c=m(J))}this.min=c;this.max=b};L.prototype.getClosest=function(){var a;this.categories?a=1:this.series.forEach(function(c){var b=
|
|
|
+c.closestPointRange,g=c.visible||!c.chart.options.chart.ignoreHiddenSeries;!c.noSharedTooltip&&u(b)&&g&&(a=u(a)?Math.min(a,b):b)});return a};L.prototype.nameToX=function(a){var c=g(this.categories),b=c?this.categories:this.names,d=a.options.x;a.series.requireSorting=!1;u(d)||(d=this.options.uniqueNames?c?b.indexOf(a.name):p(b.keys[a.name],-1):a.series.autoIncrement());if(-1===d){if(!c)var q=b.length}else q=d;"undefined"!==typeof q&&(this.names[q]=a.name,this.names.keys[a.name]=q);return q};L.prototype.updateNames=
|
|
|
+function(){var a=this,c=this.names;0<c.length&&(Object.keys(c.keys).forEach(function(a){delete c.keys[a]}),c.length=0,this.minRange=this.userMinRange,(this.series||[]).forEach(function(c){c.xIncrement=null;if(!c.points||c.isDirtyData)a.max=Math.max(a.max,c.xData.length-1),c.processData(),c.generatePoints();c.data.forEach(function(b,g){if(b&&b.options&&"undefined"!==typeof b.name){var d=a.nameToX(b);"undefined"!==typeof d&&d!==b.x&&(b.x=d,c.xData[g]=d)}})}))};L.prototype.setAxisTranslation=function(){var c=
|
|
|
+this,b=c.max-c.min,g=c.axisPointRange||0,d=0,q=0,r=c.linkedParent,v=!!c.categories,k=c.transA,f=c.isXAxis;if(f||v||g){var B=c.getClosest();r?(d=r.minPointOffset,q=r.pointRangePadding):c.series.forEach(function(b){var x=v?1:f?p(b.options.pointRange,B,0):c.axisPointRange||0,r=b.options.pointPlacement;g=Math.max(g,x);if(!c.single||v)b=b.is("xrange")?!f:f,d=Math.max(d,b&&a(r)?0:x/2),q=Math.max(q,b&&"on"===r?0:x)});r=c.ordinal&&c.ordinal.slope&&B?c.ordinal.slope/B:1;c.minPointOffset=d*=r;c.pointRangePadding=
|
|
|
+q*=r;c.pointRange=Math.min(g,c.single&&v?1:b);f&&(c.closestPointRange=B)}c.translationSlope=c.transA=k=c.staticScale||c.len/(b+q||1);c.transB=c.horiz?c.left:c.bottom;c.minPixelPadding=k*d;w(this,"afterSetAxisTranslation")};L.prototype.minFromRange=function(){return this.max-this.range};L.prototype.setTickInterval=function(a){var c=this,b=c.chart,g=c.logarithmic,d=c.options,r=c.isXAxis,v=c.isLinked,f=d.maxPadding,B=d.minPadding,H=d.tickInterval,l=d.tickPixelInterval,M=c.categories,N=q(c.threshold)?
|
|
|
+c.threshold:null,K=c.softThreshold;c.dateTime||M||v||this.getTickAmount();var m=p(c.userMin,d.min);var O=p(c.userMax,d.max);if(v){c.linkedParent=b[c.coll][d.linkedTo];var L=c.linkedParent.getExtremes();c.min=p(L.min,L.dataMin);c.max=p(L.max,L.dataMax);d.type!==c.linkedParent.options.type&&k(11,1,b)}else{if(K&&u(N))if(c.dataMin>=N)L=N,B=0;else if(c.dataMax<=N){var I=N;f=0}c.min=p(m,L,c.dataMin);c.max=p(O,I,c.dataMax)}g&&(c.positiveValuesOnly&&!a&&0>=Math.min(c.min,p(c.dataMin,c.min))&&k(10,1,b),c.min=
|
|
|
+A(g.log2lin(c.min),16),c.max=A(g.log2lin(c.max),16));c.range&&u(c.max)&&(c.userMin=c.min=m=Math.max(c.dataMin,c.minFromRange()),c.userMax=O=c.max,c.range=null);w(c,"foundExtremes");c.beforePadding&&c.beforePadding();c.adjustForMinRange();!(M||c.axisPointRange||c.stacking&&c.stacking.usePercentage||v)&&u(c.min)&&u(c.max)&&(b=c.max-c.min)&&(!u(m)&&B&&(c.min-=b*B),!u(O)&&f&&(c.max+=b*f));q(c.userMin)||(q(d.softMin)&&d.softMin<c.min&&(c.min=m=d.softMin),q(d.floor)&&(c.min=Math.max(c.min,d.floor)));q(c.userMax)||
|
|
|
+(q(d.softMax)&&d.softMax>c.max&&(c.max=O=d.softMax),q(d.ceiling)&&(c.max=Math.min(c.max,d.ceiling)));K&&u(c.dataMin)&&(N=N||0,!u(m)&&c.min<N&&c.dataMin>=N?c.min=c.options.minRange?Math.min(N,c.max-c.minRange):N:!u(O)&&c.max>N&&c.dataMax<=N&&(c.max=c.options.minRange?Math.max(N,c.min+c.minRange):N));q(c.min)&&q(c.max)&&!this.chart.polar&&c.min>c.max&&(u(c.options.min)?c.max=c.min:u(c.options.max)&&(c.min=c.max));c.tickInterval=c.min===c.max||"undefined"===typeof c.min||"undefined"===typeof c.max?1:
|
|
|
+v&&c.linkedParent&&!H&&l===c.linkedParent.options.tickPixelInterval?H=c.linkedParent.tickInterval:p(H,this.tickAmount?(c.max-c.min)/Math.max(this.tickAmount-1,1):void 0,M?1:(c.max-c.min)*l/Math.max(c.len,l));r&&!a&&c.series.forEach(function(a){a.processData(c.min!==(c.old&&c.old.min)||c.max!==(c.old&&c.old.max))});c.setAxisTranslation();w(this,"initialAxisTranslation");c.pointRange&&!H&&(c.tickInterval=Math.max(c.pointRange,c.tickInterval));a=p(d.minTickInterval,c.dateTime&&!c.series.some(function(a){return a.noSharedTooltip})?
|
|
|
+c.closestPointRange:0);!H&&c.tickInterval<a&&(c.tickInterval=a);c.dateTime||c.logarithmic||H||(c.tickInterval=J(c.tickInterval,void 0,n(c.tickInterval),p(d.allowDecimals,.5>c.tickInterval||void 0!==this.tickAmount),!!this.tickAmount));this.tickAmount||(c.tickInterval=c.unsquish());this.setTickPositions()};L.prototype.setTickPositions=function(){var a=this.options,c=a.tickPositions;var b=this.getMinorTickInterval();var g=a.tickPositioner,d=this.hasVerticalPanning(),p="colorAxis"===this.coll,q=(p||
|
|
|
+!d)&&a.startOnTick;d=(p||!d)&&a.endOnTick;this.tickmarkOffset=this.categories&&"between"===a.tickmarkPlacement&&1===this.tickInterval?.5:0;this.minorTickInterval="auto"===b&&this.tickInterval?this.tickInterval/5:b;this.single=this.min===this.max&&u(this.min)&&!this.tickAmount&&(parseInt(this.min,10)===this.min||!1!==a.allowDecimals);this.tickPositions=b=c&&c.slice();!b&&(this.ordinal&&this.ordinal.positions||!((this.max-this.min)/this.tickInterval>Math.max(2*this.len,200))?b=this.dateTime?this.getTimeTicks(this.dateTime.normalizeTimeTickInterval(this.tickInterval,
|
|
|
+a.units),this.min,this.max,a.startOfWeek,this.ordinal&&this.ordinal.positions,this.closestPointRange,!0):this.logarithmic?this.logarithmic.getLogTickPositions(this.tickInterval,this.min,this.max):this.getLinearTickPositions(this.tickInterval,this.min,this.max):(b=[this.min,this.max],k(19,!1,this.chart)),b.length>this.len&&(b=[b[0],b.pop()],b[0]===b[1]&&(b.length=1)),this.tickPositions=b,g&&(g=g.apply(this,[this.min,this.max])))&&(this.tickPositions=b=g);this.paddedTicks=b.slice(0);this.trimTicks(b,
|
|
|
+q,d);this.isLinked||(this.single&&2>b.length&&!this.categories&&!this.series.some(function(a){return a.is("heatmap")&&"between"===a.options.pointPlacement})&&(this.min-=.5,this.max+=.5),c||g||this.adjustTickAmount());w(this,"afterSetTickPositions")};L.prototype.trimTicks=function(a,c,b){var g=a[0],d=a[a.length-1],p=!this.isOrdinal&&this.minPointOffset||0;w(this,"trimTicks");if(!this.isLinked){if(c&&-Infinity!==g)this.min=g;else for(;this.min-p>a[0];)a.shift();if(b)this.max=d;else for(;this.max+p<
|
|
|
+a[a.length-1];)a.pop();0===a.length&&u(g)&&!this.options.tickPositions&&a.push((d+g)/2)}};L.prototype.alignToOthers=function(){var a={},c,b=this.options;!1!==this.chart.options.chart.alignTicks&&b.alignTicks&&!1!==b.startOnTick&&!1!==b.endOnTick&&!this.logarithmic&&this.chart[this.coll].forEach(function(b){var g=b.options;g=[b.horiz?g.left:g.top,g.width,g.height,g.pane].join();b.series.length&&(a[g]?c=!0:a[g]=1)});return c};L.prototype.getTickAmount=function(){var a=this.options,c=a.tickAmount,b=
|
|
|
+a.tickPixelInterval;!u(a.tickInterval)&&!c&&this.len<b&&!this.isRadial&&!this.logarithmic&&a.startOnTick&&a.endOnTick&&(c=2);!c&&this.alignToOthers()&&(c=Math.ceil(this.len/b)+1);4>c&&(this.finalTickAmt=c,c=5);this.tickAmount=c};L.prototype.adjustTickAmount=function(){var a=this.options,c=this.tickInterval,b=this.tickPositions,g=this.tickAmount,d=this.finalTickAmt,r=b&&b.length,v=p(this.threshold,this.softThreshold?0:null);if(this.hasData()&&q(this.min)&&q(this.max)){if(r<g){for(;b.length<g;)b.length%
|
|
|
+2||this.min===v?b.push(A(b[b.length-1]+c)):b.unshift(A(b[0]-c));this.transA*=(r-1)/(g-1);this.min=a.startOnTick?b[0]:Math.min(this.min,b[0]);this.max=a.endOnTick?b[b.length-1]:Math.max(this.max,b[b.length-1])}else r>g&&(this.tickInterval*=2,this.setTickPositions());if(u(d)){for(c=a=b.length;c--;)(3===d&&1===c%2||2>=d&&0<c&&c<a-1)&&b.splice(c,1);this.finalTickAmt=void 0}}};L.prototype.setScale=function(){var a,c=!1,b=!1;this.series.forEach(function(a){c=c||a.isDirtyData||a.isDirty;b=b||a.xAxis&&a.xAxis.isDirty||
|
|
|
+!1});this.setAxisSize();(a=this.len!==(this.old&&this.old.len))||c||b||this.isLinked||this.forceRedraw||this.userMin!==(this.old&&this.old.userMin)||this.userMax!==(this.old&&this.old.userMax)||this.alignToOthers()?(this.stacking&&this.stacking.resetStacks(),this.forceRedraw=!1,this.getSeriesExtremes(),this.setTickInterval(),this.isDirty||(this.isDirty=a||this.min!==(this.old&&this.old.min)||this.max!==(this.old&&this.old.max))):this.stacking&&this.stacking.cleanStacks();c&&this.panningState&&(this.panningState.isDirty=
|
|
|
+!0);w(this,"afterSetScale")};L.prototype.setExtremes=function(a,c,b,g,q){var r=this,v=r.chart;b=p(b,!0);r.series.forEach(function(a){delete a.kdTree});q=d(q,{min:a,max:c});w(r,"setExtremes",q,function(){r.userMin=a;r.userMax=c;r.eventArgs=q;b&&v.redraw(g)})};L.prototype.zoom=function(a,c){var b=this,g=this.dataMin,d=this.dataMax,q=this.options,r=Math.min(g,p(q.min,g)),v=Math.max(d,p(q.max,d));a={newMin:a,newMax:c};w(this,"zoom",a,function(a){var c=a.newMin,p=a.newMax;if(c!==b.min||p!==b.max)b.allowZoomOutside||
|
|
|
+(u(g)&&(c<r&&(c=r),c>v&&(c=v)),u(d)&&(p<r&&(p=r),p>v&&(p=v))),b.displayBtn="undefined"!==typeof c||"undefined"!==typeof p,b.setExtremes(c,p,!1,void 0,{trigger:"zoom"});a.zoomed=!0});return a.zoomed};L.prototype.setAxisSize=function(){var a=this.chart,c=this.options,b=c.offsets||[0,0,0,0],g=this.horiz,d=this.width=Math.round(r(p(c.width,a.plotWidth-b[3]+b[1]),a.plotWidth)),q=this.height=Math.round(r(p(c.height,a.plotHeight-b[0]+b[2]),a.plotHeight)),v=this.top=Math.round(r(p(c.top,a.plotTop+b[0]),a.plotHeight,
|
|
|
+a.plotTop));c=this.left=Math.round(r(p(c.left,a.plotLeft+b[3]),a.plotWidth,a.plotLeft));this.bottom=a.chartHeight-q-v;this.right=a.chartWidth-d-c;this.len=Math.max(g?d:q,0);this.pos=g?c:v};L.prototype.getExtremes=function(){var a=this.logarithmic;return{min:a?A(a.lin2log(this.min)):this.min,max:a?A(a.lin2log(this.max)):this.max,dataMin:this.dataMin,dataMax:this.dataMax,userMin:this.userMin,userMax:this.userMax}};L.prototype.getThreshold=function(a){var c=this.logarithmic,b=c?c.lin2log(this.min):this.min;
|
|
|
+c=c?c.lin2log(this.max):this.max;null===a||-Infinity===a?a=b:Infinity===a?a=c:b>a?a=b:c<a&&(a=c);return this.translate(a,0,1,0,1)};L.prototype.autoLabelAlign=function(a){var c=(p(a,0)-90*this.side+720)%360;a={align:"center"};w(this,"autoLabelAlign",a,function(a){15<c&&165>c?a.align="right":195<c&&345>c&&(a.align="left")});return a.align};L.prototype.tickSize=function(a){var c=this.options,b=c["tick"===a?"tickLength":"minorTickLength"],g=p(c["tick"===a?"tickWidth":"minorTickWidth"],"tick"===a&&this.isXAxis&&
|
|
|
+!this.categories?1:0);if(g&&b){"inside"===c[a+"Position"]&&(b=-b);var d=[b,g]}a={tickSize:d};w(this,"afterTickSize",a);return a.tickSize};L.prototype.labelMetrics=function(){var a=this.tickPositions&&this.tickPositions[0]||0;return this.chart.renderer.fontMetrics(this.options.labels.style.fontSize,this.ticks[a]&&this.ticks[a].label)};L.prototype.unsquish=function(){var a=this.options.labels,c=this.horiz,b=this.tickInterval,g=b,d=this.len/(((this.categories?1:0)+this.max-this.min)/b),r,v=a.rotation,
|
|
|
+k=this.labelMetrics(),f,B=Number.MAX_VALUE,n=Math.max(this.max-this.min,0),J=function(a){var c=a/(d||1);c=1<c?Math.ceil(c):1;c*b>n&&Infinity!==a&&Infinity!==d&&n&&(c=Math.ceil(n/b));return A(c*b)};if(c){if(!a.staggerLines&&!a.step)if(q(v))var l=[v];else d<a.autoRotationLimit&&(l=a.autoRotation);l&&l.forEach(function(a){if(a===v||a&&-90<=a&&90>=a){f=J(Math.abs(k.h/Math.sin(K*a)));var c=f+Math.abs(a/360);c<B&&(B=c,r=a,g=f)}})}else a.step||(g=J(k.h));this.autoRotation=l;this.labelRotation=p(r,q(v)?v:
|
|
|
+0);return g};L.prototype.getSlotWidth=function(a){var c=this.chart,b=this.horiz,g=this.options.labels,d=Math.max(this.tickPositions.length-(this.categories?0:1),1),p=c.margin[3];if(a&&q(a.slotWidth))return a.slotWidth;if(b&&2>g.step)return g.rotation?0:(this.staggerLines||1)*this.len/d;if(!b){a=g.style.width;if(void 0!==a)return parseInt(String(a),10);if(p)return p-c.spacing[3]}return.33*c.chartWidth};L.prototype.renderUnsquish=function(){var c=this.chart,b=c.renderer,g=this.tickPositions,d=this.ticks,
|
|
|
+p=this.options.labels,q=p.style,r=this.horiz,v=this.getSlotWidth(),k=Math.max(1,Math.round(v-2*p.padding)),f={},B=this.labelMetrics(),n=q.textOverflow,J=0;a(p.rotation)||(f.rotation=p.rotation||0);g.forEach(function(a){a=d[a];a.movedLabel&&a.replaceMovedLabel();a&&a.label&&a.label.textPxLength>J&&(J=a.label.textPxLength)});this.maxLabelLength=J;if(this.autoRotation)J>k&&J>B.h?f.rotation=this.labelRotation:this.labelRotation=0;else if(v){var l=k;if(!n){var M="clip";for(k=g.length;!r&&k--;){var N=g[k];
|
|
|
+if(N=d[N].label)N.styles&&"ellipsis"===N.styles.textOverflow?N.css({textOverflow:"clip"}):N.textPxLength>v&&N.css({width:v+"px"}),N.getBBox().height>this.len/g.length-(B.h-B.f)&&(N.specificTextOverflow="ellipsis")}}}f.rotation&&(l=J>.5*c.chartHeight?.33*c.chartHeight:J,n||(M="ellipsis"));if(this.labelAlign=p.align||this.autoLabelAlign(this.labelRotation))f.align=this.labelAlign;g.forEach(function(a){var c=(a=d[a])&&a.label,b=q.width,g={};c&&(c.attr(f),a.shortenLabel?a.shortenLabel():l&&!b&&"nowrap"!==
|
|
|
+q.whiteSpace&&(l<c.textPxLength||"SPAN"===c.element.tagName)?(g.width=l+"px",n||(g.textOverflow=c.specificTextOverflow||M),c.css(g)):c.styles&&c.styles.width&&!g.width&&!b&&c.css({width:null}),delete c.specificTextOverflow,a.rotation=f.rotation)},this);this.tickRotCorr=b.rotCorr(B.b,this.labelRotation||0,0!==this.side)};L.prototype.hasData=function(){return this.series.some(function(a){return a.hasData()})||this.options.showEmpty&&u(this.min)&&u(this.max)};L.prototype.addTitle=function(a){var c=this.chart.renderer,
|
|
|
+b=this.horiz,g=this.opposite,d=this.options.title,p,q=this.chart.styledMode;this.axisTitle||((p=d.textAlign)||(p=(b?{low:"left",middle:"center",high:"right"}:{low:g?"right":"left",middle:"center",high:g?"left":"right"})[d.align]),this.axisTitle=c.text(d.text||"",0,0,d.useHTML).attr({zIndex:7,rotation:d.rotation,align:p}).addClass("highcharts-axis-title"),q||this.axisTitle.css(B(d.style)),this.axisTitle.add(this.axisGroup),this.axisTitle.isNew=!0);q||d.style.width||this.isRadial||this.axisTitle.css({width:this.len+
|
|
|
+"px"});this.axisTitle[a?"show":"hide"](a)};L.prototype.generateTick=function(a){var c=this.ticks;c[a]?c[a].addLabel():c[a]=new E(this,a)};L.prototype.getOffset=function(){var a=this,c=this,b=c.chart,g=b.renderer,d=c.options,q=c.tickPositions,r=c.ticks,v=c.horiz,k=c.side,f=b.inverted&&!c.isZAxis?[1,0,3,2][k]:k,B,n=0,J=0,l=d.title,M=d.labels,N=0,K=b.axisOffset;b=b.clipOffset;var m=[-1,1,1,-1][k],L=d.className,I=c.axisParent;var t=c.hasData();c.showAxis=B=t||d.showEmpty;c.staggerLines=c.horiz&&M.staggerLines||
|
|
|
+void 0;if(!c.axisGroup){var A=function(c,b,d){return g.g(c).attr({zIndex:d}).addClass("highcharts-"+a.coll.toLowerCase()+b+" "+(a.isRadial?"highcharts-radial-axis"+b+" ":"")+(L||"")).add(I)};c.gridGroup=A("grid","-grid",d.gridZIndex);c.axisGroup=A("axis","",d.zIndex);c.labelGroup=A("axis-labels","-labels",M.zIndex)}t||c.isLinked?(q.forEach(function(a,b){c.generateTick(a,b)}),c.renderUnsquish(),c.reserveSpaceDefault=0===k||2===k||{1:"left",3:"right"}[k]===c.labelAlign,p(M.reserveSpace,"center"===c.labelAlign?
|
|
|
+!0:null,c.reserveSpaceDefault)&&q.forEach(function(a){N=Math.max(r[a].getLabelSize(),N)}),c.staggerLines&&(N*=c.staggerLines),c.labelOffset=N*(c.opposite?-1:1)):O(r,function(a,c){a.destroy();delete r[c]});if(l&&l.text&&!1!==l.enabled&&(c.addTitle(B),B&&!1!==l.reserveSpace)){c.titleOffset=n=c.axisTitle.getBBox()[v?"height":"width"];var h=l.offset;J=u(h)?0:p(l.margin,v?5:10)}c.renderLine();c.offset=m*p(d.offset,K[k]?K[k]+(d.margin||0):0);c.tickRotCorr=c.tickRotCorr||{x:0,y:0};l=0===k?-c.labelMetrics().h:
|
|
|
+2===k?c.tickRotCorr.y:0;J=Math.abs(N)+J;N&&(J=J-l+m*(v?p(M.y,c.tickRotCorr.y+8*m):M.x));c.axisTitleMargin=p(h,J);c.getMaxLabelDimensions&&(c.maxLabelDimensions=c.getMaxLabelDimensions(r,q));v=this.tickSize("tick");K[k]=Math.max(K[k],(c.axisTitleMargin||0)+n+m*c.offset,J,q&&q.length&&v?v[0]+m*c.offset:0);d=d.offset?0:2*Math.floor(c.axisLine.strokeWidth()/2);b[f]=Math.max(b[f],d);w(this,"afterGetOffset")};L.prototype.getLinePath=function(a){var c=this.chart,b=this.opposite,g=this.offset,d=this.horiz,
|
|
|
+p=this.left+(b?this.width:0)+g;g=c.chartHeight-this.bottom-(b?this.height:0)+g;b&&(a*=-1);return c.renderer.crispLine([["M",d?this.left:p,d?g:this.top],["L",d?c.chartWidth-this.right:p,d?g:c.chartHeight-this.bottom]],a)};L.prototype.renderLine=function(){this.axisLine||(this.axisLine=this.chart.renderer.path().addClass("highcharts-axis-line").add(this.axisGroup),this.chart.styledMode||this.axisLine.attr({stroke:this.options.lineColor,"stroke-width":this.options.lineWidth,zIndex:7}))};L.prototype.getTitlePosition=
|
|
|
+function(){var a=this.horiz,c=this.left,b=this.top,g=this.len,d=this.options.title,p=a?c:b,q=this.opposite,r=this.offset,v=d.x,k=d.y,f=this.axisTitle,B=this.chart.renderer.fontMetrics(d.style.fontSize,f);f=Math.max(f.getBBox(null,0).height-B.h-1,0);g={low:p+(a?0:g),middle:p+g/2,high:p+(a?g:0)}[d.align];c=(a?b+this.height:c)+(a?1:-1)*(q?-1:1)*this.axisTitleMargin+[-f,f,B.f,-f][this.side];a={x:a?g+v:c+(q?this.width:0)+r+v,y:a?c+k-(q?this.height:0)+r:g+k};w(this,"afterGetTitlePosition",{titlePosition:a});
|
|
|
+return a};L.prototype.renderMinorTick=function(a){var c=this.chart.hasRendered&&this.old,b=this.minorTicks;b[a]||(b[a]=new E(this,a,"minor"));c&&b[a].isNew&&b[a].render(null,!0);b[a].render(null,!1,1)};L.prototype.renderTick=function(a,c){var b=this.ticks,g=this.chart.hasRendered&&this.old;if(!this.isLinked||a>=this.min&&a<=this.max||this.grid&&this.grid.isColumn)b[a]||(b[a]=new E(this,a)),g&&b[a].isNew&&b[a].render(c,!0,-1),b[a].render(c)};L.prototype.render=function(){var a=this,c=a.chart,b=a.logarithmic,
|
|
|
+g=a.options,d=a.isLinked,p=a.tickPositions,r=a.axisTitle,v=a.ticks,k=a.minorTicks,f=a.alternateBands,B=g.stackLabels,J=g.alternateGridColor,n=a.tickmarkOffset,l=a.axisLine,M=a.showAxis,K=G(c.renderer.globalAnimation),m,u;a.labelEdge.length=0;a.overlap=!1;[v,k,f].forEach(function(a){O(a,function(a){a.isActive=!1})});if(a.hasData()||d)a.minorTickInterval&&!a.categories&&a.getMinorTickPositions().forEach(function(c){a.renderMinorTick(c)}),p.length&&(p.forEach(function(c,b){a.renderTick(c,b)}),n&&(0===
|
|
|
+a.min||a.single)&&(v[-1]||(v[-1]=new E(a,-1,null,!0)),v[-1].render(-1))),J&&p.forEach(function(g,d){u="undefined"!==typeof p[d+1]?p[d+1]+n:a.max-n;0===d%2&&g<a.max&&u<=a.max+(c.polar?-n:n)&&(f[g]||(f[g]=new D.PlotLineOrBand(a)),m=g+n,f[g].options={from:b?b.lin2log(m):m,to:b?b.lin2log(u):u,color:J,className:"highcharts-alternate-grid"},f[g].render(),f[g].isActive=!0)}),a._addedPlotLB||(a._addedPlotLB=!0,(g.plotLines||[]).concat(g.plotBands||[]).forEach(function(c){a.addPlotBandOrLine(c)}));[v,k,f].forEach(function(a){var b,
|
|
|
+g=[],d=K.duration;O(a,function(a,c){a.isActive||(a.render(c,!1,0),a.isActive=!1,g.push(c))});N(function(){for(b=g.length;b--;)a[g[b]]&&!a[g[b]].isActive&&(a[g[b]].destroy(),delete a[g[b]])},a!==f&&c.hasRendered&&d?d:0)});l&&(l[l.isPlaced?"animate":"attr"]({d:this.getLinePath(l.strokeWidth())}),l.isPlaced=!0,l[M?"show":"hide"](M));r&&M&&(g=a.getTitlePosition(),q(g.y)?(r[r.isNew?"attr":"animate"](g),r.isNew=!1):(r.attr("y",-9999),r.isNew=!0));B&&B.enabled&&a.stacking&&a.stacking.renderStackTotals();
|
|
|
+a.old={len:a.len,max:a.max,min:a.min,transA:a.transA,userMax:a.userMax,userMin:a.userMin};a.isDirty=!1;w(this,"afterRender")};L.prototype.redraw=function(){this.visible&&(this.render(),this.plotLinesAndBands.forEach(function(a){a.render()}));this.series.forEach(function(a){a.isDirty=!0})};L.prototype.getKeepProps=function(){return this.keepProps||L.keepProps};L.prototype.destroy=function(a){var c=this,b=c.plotLinesAndBands,g;w(this,"destroy",{keepEvents:a});a||M(c);[c.ticks,c.minorTicks,c.alternateBands].forEach(function(a){l(a)});
|
|
|
+if(b)for(a=b.length;a--;)b[a].destroy();"axisLine axisTitle axisGroup gridGroup labelGroup cross scrollbar".split(" ").forEach(function(a){c[a]&&(c[a]=c[a].destroy())});for(g in c.plotLinesAndBandsGroups)c.plotLinesAndBandsGroups[g]=c.plotLinesAndBandsGroups[g].destroy();O(c,function(a,b){-1===c.getKeepProps().indexOf(b)&&delete c[b]})};L.prototype.drawCrosshair=function(a,c){var b=this.crosshair,g=p(b&&b.snap,!0),q,r=this.cross,v=this.chart;w(this,"drawCrosshair",{e:a,point:c});a||(a=this.cross&&
|
|
|
+this.cross.e);if(b&&!1!==(u(c)||!g)){g?u(c)&&(q=p("colorAxis"!==this.coll?c.crosshairPos:null,this.isXAxis?c.plotX:this.len-c.plotY)):q=a&&(this.horiz?a.chartX-this.pos:this.len-a.chartY+this.pos);if(u(q)){var k={value:c&&(this.isXAxis?c.x:p(c.stackY,c.y)),translatedValue:q};v.polar&&d(k,{isCrosshair:!0,chartX:a&&a.chartX,chartY:a&&a.chartY,point:c});k=this.getPlotLinePath(k)||null}if(!u(k)){this.hideCrosshair();return}g=this.categories&&!this.isRadial;r||(this.cross=r=v.renderer.path().addClass("highcharts-crosshair highcharts-crosshair-"+
|
|
|
+(g?"category ":"thin ")+(b.className||"")).attr({zIndex:p(b.zIndex,2)}).add(),v.styledMode||(r.attr({stroke:b.color||(g?h.parse(y.highlightColor20).setOpacity(.25).get():y.neutralColor20),"stroke-width":p(b.width,1)}).css({"pointer-events":"none"}),b.dashStyle&&r.attr({dashstyle:b.dashStyle})));r.show().attr({d:k});g&&!b.width&&r.attr({"stroke-width":this.transA});this.cross.e=a}else this.hideCrosshair();w(this,"afterDrawCrosshair",{e:a,point:c})};L.prototype.hideCrosshair=function(){this.cross&&
|
|
|
+this.cross.hide();w(this,"afterHideCrosshair")};L.prototype.hasVerticalPanning=function(){var a=this.chart.options.chart.panning;return!!(a&&a.enabled&&/y/.test(a.type))};L.prototype.validatePositiveValue=function(a){return q(a)&&0<a};L.prototype.update=function(a,c){var b=this.chart,g=a&&a.events||{};a=B(this.userOptions,a);O(b.options[this.coll].events,function(a,c){"undefined"===typeof g[c]&&(g[c]=void 0)});this.destroy(!0);this.init(b,d(a,{events:g}));b.isDirtyBox=!0;p(c,!0)&&b.redraw()};L.prototype.remove=
|
|
|
+function(a){for(var c=this.chart,b=this.coll,g=this.series,d=g.length;d--;)g[d]&&g[d].remove(!1);I(c.axes,this);I(c[b],this);c[b].forEach(function(a,c){a.options.index=a.userOptions.index=c});this.destroy();c.isDirtyBox=!0;p(a,!0)&&c.redraw()};L.prototype.setTitle=function(a,c){this.update({title:a},c)};L.prototype.setCategories=function(a,c){this.update({categories:a},c)};L.defaultOptions={alignTicks:!0,allowDecimals:void 0,zIndex:2,zoomEnabled:!0,dateTimeLabelFormats:{millisecond:{main:"%H:%M:%S.%L",
|
|
|
+range:!1},second:{main:"%H:%M:%S",range:!1},minute:{main:"%H:%M",range:!1},hour:{main:"%H:%M",range:!1},day:{main:"%e. %b"},week:{main:"%e. %b"},month:{main:"%b '%y"},year:{main:"%Y"}},endOnTick:!1,gridLineDashStyle:"Solid",gridZIndex:1,labels:{autoRotation:void 0,autoRotationLimit:80,distance:void 0,enabled:!0,indentation:10,overflow:"justify",padding:5,reserveSpace:void 0,rotation:void 0,staggerLines:0,step:0,useHTML:!1,x:0,zIndex:7,style:{color:y.neutralColor60,cursor:"default",fontSize:"11px"}},
|
|
|
+maxPadding:.01,minorGridLineDashStyle:"Solid",minorTickLength:2,minorTickPosition:"outside",minPadding:.01,offset:void 0,opposite:!1,reversed:void 0,reversedStacks:!1,showEmpty:!0,showFirstLabel:!0,showLastLabel:!0,startOfWeek:1,startOnTick:!1,tickLength:10,tickPixelInterval:100,tickmarkPlacement:"between",tickPosition:"outside",title:{align:"middle",rotation:0,useHTML:!1,x:0,y:0,style:{color:y.neutralColor60}},type:"linear",uniqueNames:!0,visible:!0,minorGridLineColor:y.neutralColor5,minorGridLineWidth:1,
|
|
|
+minorTickColor:y.neutralColor40,lineColor:y.highlightColor20,lineWidth:1,gridLineColor:y.neutralColor10,gridLineWidth:void 0,tickColor:y.highlightColor20};L.defaultYAxisOptions={reversedStacks:!0,endOnTick:!0,maxPadding:.05,minPadding:.05,tickPixelInterval:72,showLastLabel:!0,labels:{x:-8},startOnTick:!0,title:{rotation:270,text:"Values"},stackLabels:{animation:{},allowOverlap:!1,enabled:!1,crop:!0,overflow:"justify",formatter:function(){var a=this.axis.chart.numberFormatter;return a(this.total,-1)},
|
|
|
+style:{color:y.neutralColor100,fontSize:"11px",fontWeight:"bold",textOutline:"1px contrast"}},gridLineWidth:1,lineWidth:0};L.defaultLeftAxisOptions={labels:{x:-15},title:{rotation:270}};L.defaultRightAxisOptions={labels:{x:15},title:{rotation:90}};L.defaultBottomAxisOptions={labels:{autoRotation:[-45],x:0},margin:15,title:{rotation:0}};L.defaultTopAxisOptions={labels:{autoRotation:[-45],x:0},margin:15,title:{rotation:0}};L.keepProps="extKey hcEvents names series userMax userMin".split(" ");return L}();
|
|
|
+D.Axis=e;return D.Axis});P(e,"Core/Axis/DateTimeAxis.js",[e["Core/Axis/Axis.js"],e["Core/Utilities.js"]],function(e,h){var D=h.addEvent,y=h.getMagnitude,F=h.normalizeTickInterval,E=h.timeUnits,C=function(){function h(t){this.axis=t}h.prototype.normalizeTimeTickInterval=function(t,h){var m=h||[["millisecond",[1,2,5,10,20,25,50,100,200,500]],["second",[1,2,5,10,15,30]],["minute",[1,2,5,10,15,30]],["hour",[1,2,3,4,6,8,12]],["day",[1,2]],["week",[1,2]],["month",[1,2,3,4,6]],["year",null]];h=m[m.length-
|
|
|
+1];var f=E[h[0]],b=h[1],A;for(A=0;A<m.length&&!(h=m[A],f=E[h[0]],b=h[1],m[A+1]&&t<=(f*b[b.length-1]+E[m[A+1][0]])/2);A++);f===E.year&&t<5*f&&(b=[1,2,5]);t=F(t/f,b,"year"===h[0]?Math.max(y(t/f),1):1);return{unitRange:f,count:t,unitName:h[0]}};return h}();h=function(){function h(){}h.compose=function(h){h.keepProps.push("dateTime");h.prototype.getTimeTicks=function(){return this.chart.time.getTimeTicks.apply(this.chart.time,arguments)};D(h,"init",function(h){"datetime"!==h.userOptions.type?this.dateTime=
|
|
|
+void 0:this.dateTime||(this.dateTime=new C(this))})};h.AdditionsClass=C;return h}();h.compose(e);return h});P(e,"Core/Axis/LogarithmicAxis.js",[e["Core/Axis/Axis.js"],e["Core/Utilities.js"]],function(e,h){var D=h.addEvent,y=h.getMagnitude,F=h.normalizeTickInterval,E=h.pick,C=function(){function h(h){this.axis=h}h.prototype.getLogTickPositions=function(h,e,m,f){var b=this.axis,A=b.len,u=b.options,l=[];f||(this.minorAutoInterval=void 0);if(.5<=h)h=Math.round(h),l=b.getLinearTickPositions(h,e,m);else if(.08<=
|
|
|
+h){var I=Math.floor(e),k,d=u=void 0;for(A=.3<h?[1,2,4]:.15<h?[1,2,4,6,8]:[1,2,3,4,5,6,7,8,9];I<m+1&&!d;I++){var w=A.length;for(k=0;k<w&&!d;k++){var n=this.log2lin(this.lin2log(I)*A[k]);n>e&&(!f||u<=m)&&"undefined"!==typeof u&&l.push(u);u>m&&(d=!0);u=n}}}else e=this.lin2log(e),m=this.lin2log(m),h=f?b.getMinorTickInterval():u.tickInterval,h=E("auto"===h?null:h,this.minorAutoInterval,u.tickPixelInterval/(f?5:1)*(m-e)/((f?A/b.tickPositions.length:A)||1)),h=F(h,void 0,y(h)),l=b.getLinearTickPositions(h,
|
|
|
+e,m).map(this.log2lin),f||(this.minorAutoInterval=h/5);f||(b.tickInterval=h);return l};h.prototype.lin2log=function(h){return Math.pow(10,h)};h.prototype.log2lin=function(h){return Math.log(h)/Math.LN10};return h}();h=function(){function h(){}h.compose=function(h){h.keepProps.push("logarithmic");D(h,"init",function(h){var m=this.logarithmic;"logarithmic"!==h.userOptions.type?this.logarithmic=void 0:m||(this.logarithmic=new C(this))});D(h,"afterInit",function(){var h=this.logarithmic;h&&(this.lin2val=
|
|
|
+function(m){return h.lin2log(m)},this.val2lin=function(m){return h.log2lin(m)})})};return h}();h.compose(e);return h});P(e,"Core/Axis/PlotLineOrBand.js",[e["Core/Axis/Axis.js"],e["Core/Globals.js"],e["Core/Color/Palette.js"],e["Core/Utilities.js"]],function(e,h,D,y){var F=y.arrayMax,E=y.arrayMin,C=y.defined,G=y.destroyObjectProperties,t=y.erase,z=y.extend,m=y.fireEvent,f=y.isNumber,b=y.merge,A=y.objectEach,u=y.pick;y=function(){function f(b,k){this.axis=b;k&&(this.options=k,this.id=k.id)}f.prototype.render=
|
|
|
+function(){m(this,"render");var f=this,k=f.axis,d=k.horiz,l=k.logarithmic,n=f.options,g=n.label,c=f.label,q=n.to,a=n.from,B=n.value,J=C(a)&&C(q),O=C(B),p=f.svgElem,r=!p,M=[],v=n.color,N=u(n.zIndex,0),K=n.events;M={"class":"highcharts-plot-"+(J?"band ":"line ")+(n.className||"")};var L={},h=k.chart.renderer,x=J?"bands":"lines";l&&(a=l.log2lin(a),q=l.log2lin(q),B=l.log2lin(B));k.chart.styledMode||(O?(M.stroke=v||D.neutralColor40,M["stroke-width"]=u(n.width,1),n.dashStyle&&(M.dashstyle=n.dashStyle)):
|
|
|
+J&&(M.fill=v||D.highlightColor10,n.borderWidth&&(M.stroke=n.borderColor,M["stroke-width"]=n.borderWidth)));L.zIndex=N;x+="-"+N;(l=k.plotLinesAndBandsGroups[x])||(k.plotLinesAndBandsGroups[x]=l=h.g("plot-"+x).attr(L).add());r&&(f.svgElem=p=h.path().attr(M).add(l));if(O)M=k.getPlotLinePath({value:B,lineWidth:p.strokeWidth(),acrossPanes:n.acrossPanes});else if(J)M=k.getPlotBandPath(a,q,n);else return;!f.eventsAdded&&K&&(A(K,function(a,c){p.on(c,function(a){K[c].apply(f,[a])})}),f.eventsAdded=!0);(r||
|
|
|
+!p.d)&&M&&M.length?p.attr({d:M}):p&&(M?(p.show(!0),p.animate({d:M})):p.d&&(p.hide(),c&&(f.label=c=c.destroy())));g&&(C(g.text)||C(g.formatter))&&M&&M.length&&0<k.width&&0<k.height&&!M.isFlat?(g=b({align:d&&J&&"center",x:d?!J&&4:10,verticalAlign:!d&&J&&"middle",y:d?J?16:10:J?6:-4,rotation:d&&!J&&90},g),this.renderLabel(g,M,J,N)):c&&c.hide();return f};f.prototype.renderLabel=function(b,f,d,l){var k=this.label,g=this.axis.chart.renderer;k||(k={align:b.textAlign||b.align,rotation:b.rotation,"class":"highcharts-plot-"+
|
|
|
+(d?"band":"line")+"-label "+(b.className||"")},k.zIndex=l,l=this.getLabelText(b),this.label=k=g.text(l,0,0,b.useHTML).attr(k).add(),this.axis.chart.styledMode||k.css(b.style));g=f.xBounds||[f[0][1],f[1][1],d?f[2][1]:f[0][1]];f=f.yBounds||[f[0][2],f[1][2],d?f[2][2]:f[0][2]];d=E(g);l=E(f);k.align(b,!1,{x:d,y:l,width:F(g)-d,height:F(f)-l});k.show(!0)};f.prototype.getLabelText=function(b){return C(b.formatter)?b.formatter.call(this):b.text};f.prototype.destroy=function(){t(this.axis.plotLinesAndBands,
|
|
|
+this);delete this.axis;G(this)};return f}();z(e.prototype,{getPlotBandPath:function(b,m,k){void 0===k&&(k=this.options);var d=this.getPlotLinePath({value:m,force:!0,acrossPanes:k.acrossPanes});k=this.getPlotLinePath({value:b,force:!0,acrossPanes:k.acrossPanes});var l=[],n=this.horiz,g=1;b=!f(this.min)||!f(this.max)||b<this.min&&m<this.min||b>this.max&&m>this.max;if(k&&d){if(b){var c=k.toString()===d.toString();g=0}for(b=0;b<k.length;b+=2){m=k[b];var q=k[b+1],a=d[b],B=d[b+1];"M"!==m[0]&&"L"!==m[0]||
|
|
|
+"M"!==q[0]&&"L"!==q[0]||"M"!==a[0]&&"L"!==a[0]||"M"!==B[0]&&"L"!==B[0]||(n&&a[1]===m[1]?(a[1]+=g,B[1]+=g):n||a[2]!==m[2]||(a[2]+=g,B[2]+=g),l.push(["M",m[1],m[2]],["L",q[1],q[2]],["L",B[1],B[2]],["L",a[1],a[2]],["Z"]));l.isFlat=c}}return l},addPlotBand:function(b){return this.addPlotBandOrLine(b,"plotBands")},addPlotLine:function(b){return this.addPlotBandOrLine(b,"plotLines")},addPlotBandOrLine:function(b,f){var k=this,d=new h.PlotLineOrBand(this,b),l=this.userOptions;this.visible&&(d=d.render());
|
|
|
+if(d){this._addedPlotLB||(this._addedPlotLB=!0,(l.plotLines||[]).concat(l.plotBands||[]).forEach(function(b){k.addPlotBandOrLine(b)}));if(f){var n=l[f]||[];n.push(b);l[f]=n}this.plotLinesAndBands.push(d)}return d},removePlotBandOrLine:function(b){for(var f=this.plotLinesAndBands,k=this.options,d=this.userOptions,l=f.length;l--;)f[l].id===b&&f[l].destroy();[k.plotLines||[],d.plotLines||[],k.plotBands||[],d.plotBands||[]].forEach(function(d){for(l=d.length;l--;)(d[l]||{}).id===b&&t(d,d[l])})},removePlotBand:function(b){this.removePlotBandOrLine(b)},
|
|
|
+removePlotLine:function(b){this.removePlotBandOrLine(b)}});h.PlotLineOrBand=y;return h.PlotLineOrBand});P(e,"Core/Tooltip.js",[e["Core/FormatUtilities.js"],e["Core/Globals.js"],e["Core/Color/Palette.js"],e["Core/Utilities.js"]],function(e,h,D,y){var F=e.format,E=h.doc,C=y.clamp,G=y.css,t=y.defined,z=y.discardElement,m=y.extend,f=y.fireEvent,b=y.isArray,A=y.isNumber,u=y.isString,l=y.merge,I=y.pick,k=y.splat,d=y.syncTimeout,w=y.timeUnits;"";e=function(){function n(b,c){this.container=void 0;this.crosshairs=
|
|
|
+[];this.distance=0;this.isHidden=!0;this.isSticky=!1;this.now={};this.options={};this.outside=!1;this.chart=b;this.init(b,c)}n.prototype.applyFilter=function(){var b=this.chart;b.renderer.definition({tagName:"filter",attributes:{id:"drop-shadow-"+b.index,opacity:.5},children:[{tagName:"feGaussianBlur",attributes:{"in":"SourceAlpha",stdDeviation:1}},{tagName:"feOffset",attributes:{dx:1,dy:1}},{tagName:"feComponentTransfer",children:[{tagName:"feFuncA",attributes:{type:"linear",slope:.3}}]},{tagName:"feMerge",
|
|
|
+children:[{tagName:"feMergeNode"},{tagName:"feMergeNode",attributes:{"in":"SourceGraphic"}}]}]});b.renderer.definition({tagName:"style",textContent:".highcharts-tooltip-"+b.index+"{filter:url(#drop-shadow-"+b.index+")}"})};n.prototype.bodyFormatter=function(b){return b.map(function(c){var b=c.series.tooltipOptions;return(b[(c.point.formatPrefix||"point")+"Formatter"]||c.point.tooltipFormatter).call(c.point,b[(c.point.formatPrefix||"point")+"Format"]||"")})};n.prototype.cleanSplit=function(b){this.chart.series.forEach(function(c){var g=
|
|
|
+c&&c.tt;g&&(!g.isActive||b?c.tt=g.destroy():g.isActive=!1)})};n.prototype.defaultFormatter=function(b){var c=this.points||k(this);var g=[b.tooltipFooterHeaderFormatter(c[0])];g=g.concat(b.bodyFormatter(c));g.push(b.tooltipFooterHeaderFormatter(c[0],!0));return g};n.prototype.destroy=function(){this.label&&(this.label=this.label.destroy());this.split&&this.tt&&(this.cleanSplit(this.chart,!0),this.tt=this.tt.destroy());this.renderer&&(this.renderer=this.renderer.destroy(),z(this.container));y.clearTimeout(this.hideTimer);
|
|
|
+y.clearTimeout(this.tooltipTimeout)};n.prototype.getAnchor=function(b,c){var g=this.chart;var a=g.pointer;var d=g.inverted,f=g.plotTop,n=g.plotLeft,p=0,r=0,l,v;b=k(b);this.followPointer&&c?("undefined"===typeof c.chartX&&(c=a.normalize(c)),a=[c.chartX-n,c.chartY-f]):b[0].tooltipPos?a=b[0].tooltipPos:(b.forEach(function(a){l=a.series.yAxis;v=a.series.xAxis;p+=a.plotX||0;r+=a.plotLow?(a.plotLow+(a.plotHigh||0))/2:a.plotY||0;v&&l&&(d?(p+=f+g.plotHeight-v.len-v.pos,r+=n+g.plotWidth-l.len-l.pos):(p+=v.pos-
|
|
|
+n,r+=l.pos-f))}),p/=b.length,r/=b.length,a=[d?g.plotWidth-r:p,d?g.plotHeight-p:r],this.shared&&1<b.length&&c&&(d?a[0]=c.chartX-n:a[1]=c.chartY-f));return a.map(Math.round)};n.prototype.getDateFormat=function(b,c,d,a){var g=this.chart.time,q=g.dateFormat("%m-%d %H:%M:%S.%L",c),f={millisecond:15,second:12,minute:9,hour:6,day:3},p="millisecond";for(r in w){if(b===w.week&&+g.dateFormat("%w",c)===d&&"00:00:00.000"===q.substr(6)){var r="week";break}if(w[r]>b){r=p;break}if(f[r]&&q.substr(f[r])!=="01-01 00:00:00.000".substr(f[r]))break;
|
|
|
+"week"!==r&&(p=r)}if(r)var k=g.resolveDTLFormat(a[r]).main;return k};n.prototype.getLabel=function(){var b=this,c=this.chart.renderer,d=this.chart.styledMode,a=this.options,f="tooltip"+(t(a.className)?" "+a.className:""),k=a.style&&a.style.pointerEvents||(!this.followPointer&&a.stickOnContact?"auto":"none"),n,p=function(){b.inContact=!0},r=function(){var a=b.chart.hoverSeries;b.inContact=!1;if(a&&a.onMouseOut)a.onMouseOut()};if(!this.label){if(this.outside){var l=this.chart.options.chart.style;this.container=
|
|
|
+n=h.doc.createElement("div");n.className="highcharts-tooltip-container";G(n,{position:"absolute",top:"1px",pointerEvents:k,zIndex:Math.max(this.options.style&&this.options.style.zIndex||0,(l&&l.zIndex||0)+3)});h.doc.body.appendChild(n);this.renderer=c=new h.Renderer(n,0,0,l,void 0,void 0,c.styledMode)}this.split?this.label=c.g(f):(this.label=c.label("",0,0,a.shape||"callout",null,null,a.useHTML,null,f).attr({padding:a.padding,r:a.borderRadius}),d||this.label.attr({fill:a.backgroundColor,"stroke-width":a.borderWidth}).css(a.style).css({pointerEvents:k}).shadow(a.shadow));
|
|
|
+d&&(this.applyFilter(),this.label.addClass("highcharts-tooltip-"+this.chart.index));if(b.outside&&!b.split){var v=this.label,N=v.xSetter,m=v.ySetter;v.xSetter=function(a){N.call(v,b.distance);n.style.left=a+"px"};v.ySetter=function(a){m.call(v,b.distance);n.style.top=a+"px"}}this.label.on("mouseenter",p).on("mouseleave",r).attr({zIndex:8}).add()}return this.label};n.prototype.getPosition=function(b,c,d){var a=this.chart,g=this.distance,q={},f=a.inverted&&d.h||0,p,r=this.outside,k=r?E.documentElement.clientWidth-
|
|
|
+2*g:a.chartWidth,v=r?Math.max(E.body.scrollHeight,E.documentElement.scrollHeight,E.body.offsetHeight,E.documentElement.offsetHeight,E.documentElement.clientHeight):a.chartHeight,n=a.pointer.getChartPosition(),l=function(p){var q="x"===p;return[p,q?k:v,q?b:c].concat(r?[q?b*n.scaleX:c*n.scaleY,q?n.left-g+(d.plotX+a.plotLeft)*n.scaleX:n.top-g+(d.plotY+a.plotTop)*n.scaleY,0,q?k:v]:[q?b:c,q?d.plotX+a.plotLeft:d.plotY+a.plotTop,q?a.plotLeft:a.plotTop,q?a.plotLeft+a.plotWidth:a.plotTop+a.plotHeight])},m=
|
|
|
+l("y"),w=l("x"),u=!this.followPointer&&I(d.ttBelow,!a.inverted===!!d.negative),h=function(a,c,b,d,p,v,k){var l=r?"y"===a?g*n.scaleY:g*n.scaleX:g,B=(b-d)/2,J=d<p-g,M=p+g+d<c,N=p-l-b+B;p=p+l-B;if(u&&M)q[a]=p;else if(!u&&J)q[a]=N;else if(J)q[a]=Math.min(k-d,0>N-f?N:N-f);else if(M)q[a]=Math.max(v,p+f+b>c?p:p+f);else return!1},A=function(a,c,b,d,p){var r;p<g||p>c-g?r=!1:q[a]=p<b/2?1:p>c-d/2?c-d-2:p-b/2;return r},e=function(a){var c=m;m=w;w=c;p=a},R=function(){!1!==h.apply(0,m)?!1!==A.apply(0,w)||p||(e(!0),
|
|
|
+R()):p?q.x=q.y=0:(e(!0),R())};(a.inverted||1<this.len)&&e();R();return q};n.prototype.getXDateFormat=function(b,c,d){c=c.dateTimeLabelFormats;var a=d&&d.closestPointRange;return(a?this.getDateFormat(a,b.x,d.options.startOfWeek,c):c.day)||c.year};n.prototype.hide=function(b){var c=this;y.clearTimeout(this.hideTimer);b=I(b,this.options.hideDelay,500);this.isHidden||(this.hideTimer=d(function(){c.getLabel().fadeOut(b?void 0:b);c.isHidden=!0},b))};n.prototype.init=function(b,c){this.chart=b;this.options=
|
|
|
+c;this.crosshairs=[];this.now={x:0,y:0};this.isHidden=!0;this.split=c.split&&!b.inverted&&!b.polar;this.shared=c.shared||this.split;this.outside=I(c.outside,!(!b.scrollablePixelsX&&!b.scrollablePixelsY))};n.prototype.isStickyOnContact=function(){return!(this.followPointer||!this.options.stickOnContact||!this.inContact)};n.prototype.move=function(b,c,d,a){var g=this,q=g.now,f=!1!==g.options.animation&&!g.isHidden&&(1<Math.abs(b-q.x)||1<Math.abs(c-q.y)),p=g.followPointer||1<g.len;m(q,{x:f?(2*q.x+b)/
|
|
|
+3:b,y:f?(q.y+c)/2:c,anchorX:p?void 0:f?(2*q.anchorX+d)/3:d,anchorY:p?void 0:f?(q.anchorY+a)/2:a});g.getLabel().attr(q);g.drawTracker();f&&(y.clearTimeout(this.tooltipTimeout),this.tooltipTimeout=setTimeout(function(){g&&g.move(b,c,d,a)},32))};n.prototype.refresh=function(g,c){var d=this.chart,a=this.options,n=k(g),l=n[0],m={},p=[],r=a.formatter||this.defaultFormatter;m=this.shared;var M=d.styledMode;if(a.enabled){y.clearTimeout(this.hideTimer);this.followPointer=!this.split&&l.series.tooltipOptions.followPointer;
|
|
|
+var v=this.getAnchor(g,c);var N=v[0];var K=v[1];!m||!b(g)&&g.series&&g.series.noSharedTooltip?m=l.getLabelConfig():(d.pointer.applyInactiveState(n),n.forEach(function(a){a.setState("hover");p.push(a.getLabelConfig())}),m={x:l.category,y:l.y},m.points=p);this.len=p.length;g=r.call(m,this);r=l.series;this.distance=I(r.tooltipOptions.distance,16);if(!1===g)this.hide();else{if(this.split)this.renderSplit(g,n);else if(n=N,m=K,c&&d.pointer.isDirectTouch&&(n=c.chartX-d.plotLeft,m=c.chartY-d.plotTop),d.polar||
|
|
|
+!1===r.options.clip||r.shouldShowTooltip(n,m))c=this.getLabel(),a.style.width&&!M||c.css({width:this.chart.spacingBox.width+"px"}),c.attr({text:g&&g.join?g.join(""):g}),c.removeClass(/highcharts-color-[\d]+/g).addClass("highcharts-color-"+I(l.colorIndex,r.colorIndex)),M||c.attr({stroke:a.borderColor||l.color||r.color||D.neutralColor60}),this.updatePosition({plotX:N,plotY:K,negative:l.negative,ttBelow:l.ttBelow,h:v[2]||0});else{this.hide();return}this.isHidden&&this.label&&this.label.attr({opacity:1}).show();
|
|
|
+this.isHidden=!1}f(this,"refresh")}};n.prototype.renderSplit=function(b,c){function g(c,b,g,d,p){void 0===p&&(p=!0);g?(b=W?0:da,c=C(c-d/2,S.left,S.right-d-(a.outside?y:0))):(b-=F,c=p?c-d-t:c+t,c=C(c,p?c:S.left,S.right));return{x:c,y:b}}var a=this,d=a.chart,f=a.chart,k=f.chartWidth,p=f.chartHeight,r=f.plotHeight,n=f.plotLeft,v=f.plotTop,l=f.pointer,K=f.scrollablePixelsY;K=void 0===K?0:K;var w=f.scrollablePixelsX,A=f.scrollingContainer;A=void 0===A?{scrollLeft:0,scrollTop:0}:A;var x=A.scrollLeft;A=
|
|
|
+A.scrollTop;var e=f.styledMode,t=a.distance,z=a.options,R=a.options.positioner,S=a.outside&&"number"!==typeof w?E.documentElement.getBoundingClientRect():{left:x,right:x+k,top:A,bottom:A+p},T=a.getLabel(),G=this.renderer||d.renderer,W=!(!d.xAxis[0]||!d.xAxis[0].opposite);d=l.getChartPosition();var y=d.left;d=d.top;var F=v+A,Q=0,da=r-K;u(b)&&(b=[!1,b]);b=b.slice(0,c.length+1).reduce(function(b,d,p){if(!1!==d&&""!==d){p=c[p-1]||{isHeader:!0,plotX:c[0].plotX,plotY:r,series:{}};var f=p.isHeader,q=f?a:
|
|
|
+p.series;d=d.toString();var k=q.tt,l=p.isHeader;var B=p.series;var M="highcharts-color-"+I(p.colorIndex,B.colorIndex,"none");k||(k={padding:z.padding,r:z.borderRadius},e||(k.fill=z.backgroundColor,k["stroke-width"]=z.borderWidth),k=G.label("",0,0,z[l?"headerShape":"shape"]||"callout",void 0,void 0,z.useHTML).addClass((l?"highcharts-tooltip-header ":"")+"highcharts-tooltip-box "+M).attr(k).add(T));k.isActive=!0;k.attr({text:d});e||k.css(z.style).shadow(z.shadow).attr({stroke:z.borderColor||p.color||
|
|
|
+B.color||D.neutralColor80});q=q.tt=k;l=q.getBBox();d=l.width+q.strokeWidth();f&&(Q=l.height,da+=Q,W&&(F-=Q));B=p.plotX;B=void 0===B?0:B;M=p.plotY;M=void 0===M?0:M;k=p.series;if(p.isHeader){B=n+B;var J=v+r/2}else{var N=k.xAxis,m=k.yAxis;B=N.pos+C(B,-t,N.len+t);k.shouldShowTooltip(0,m.pos-v+M,{ignoreX:!0})&&(J=m.pos+M)}B=C(B,S.left-t,S.right+t);"number"===typeof J?(l=l.height+1,M=R?R.call(a,d,l,p):g(B,J,f,d),b.push({align:R?0:void 0,anchorX:B,anchorY:J,boxWidth:d,point:p,rank:I(M.rank,f?1:0),size:l,
|
|
|
+target:M.y,tt:q,x:M.x})):q.isActive=!1}return b},[]);!R&&b.some(function(c){var b=(a.outside?y:0)+c.anchorX;return b<S.left&&b+c.boxWidth<S.right?!0:b<y-S.left+c.boxWidth&&S.right-b>b})&&(b=b.map(function(a){var c=g(a.anchorX,a.anchorY,a.point.isHeader,a.boxWidth,!1);return m(a,{target:c.y,x:c.x})}));a.cleanSplit();h.distribute(b,da);var ba=y,P=y;b.forEach(function(c){var b=c.x,g=c.boxWidth;c=c.isHeader;c||(a.outside&&y+b<ba&&(ba=y+b),!c&&a.outside&&ba+g>P&&(P=y+b))});b.forEach(function(c){var b=
|
|
|
+c.x,g=c.anchorX,d=c.pos,p=c.point.isHeader;d={visibility:"undefined"===typeof d?"hidden":"inherit",x:b,y:d+F,anchorX:g,anchorY:c.anchorY};if(a.outside&&b<g){var r=y-ba;0<r&&(p||(d.x=b+r,d.anchorX=g+r),p&&(d.x=(P-ba)/2,d.anchorX=g+r))}c.tt.attr(d)});b=a.container;K=a.renderer;a.outside&&b&&K&&(f=T.getBBox(),K.setSize(f.width+f.x,f.height+f.y,!1),b.style.left=ba+"px",b.style.top=d+"px")};n.prototype.drawTracker=function(){if(this.followPointer||!this.options.stickOnContact)this.tracker&&this.tracker.destroy();
|
|
|
+else{var b=this.chart,c=this.label,d=b.hoverPoint;if(c&&d){var a={x:0,y:0,width:0,height:0};d=this.getAnchor(d);var f=c.getBBox();d[0]+=b.plotLeft-c.translateX;d[1]+=b.plotTop-c.translateY;a.x=Math.min(0,d[0]);a.y=Math.min(0,d[1]);a.width=0>d[0]?Math.max(Math.abs(d[0]),f.width-d[0]):Math.max(Math.abs(d[0]),f.width);a.height=0>d[1]?Math.max(Math.abs(d[1]),f.height-Math.abs(d[1])):Math.max(Math.abs(d[1]),f.height);this.tracker?this.tracker.attr(a):(this.tracker=c.renderer.rect(a).addClass("highcharts-tracker").add(c),
|
|
|
+b.styledMode||this.tracker.attr({fill:"rgba(0,0,0,0)"}))}}};n.prototype.styledModeFormat=function(b){return b.replace('style="font-size: 10px"','class="highcharts-header"').replace(/style="color:{(point|series)\.color}"/g,'class="highcharts-color-{$1.colorIndex}"')};n.prototype.tooltipFooterHeaderFormatter=function(b,c){var d=c?"footer":"header",a=b.series,g=a.tooltipOptions,k=g.xDateFormat,l=a.xAxis,p=l&&"datetime"===l.options.type&&A(b.key),r=g[d+"Format"];c={isFooter:c,labelConfig:b};f(this,"headerFormatter",
|
|
|
+c,function(c){p&&!k&&(k=this.getXDateFormat(b,g,l));p&&k&&(b.point&&b.point.tooltipDateKeys||["key"]).forEach(function(a){r=r.replace("{point."+a+"}","{point."+a+":"+k+"}")});a.chart.styledMode&&(r=this.styledModeFormat(r));c.text=F(r,{point:b,series:a},this.chart)});return c.text};n.prototype.update=function(b){this.destroy();l(!0,this.chart.options.tooltip.userOptions,b);this.init(this.chart,l(!0,this.options,b))};n.prototype.updatePosition=function(b){var c=this.chart,d=c.pointer,a=this.getLabel(),
|
|
|
+g=b.plotX+c.plotLeft;c=b.plotY+c.plotTop;d=d.getChartPosition();b=(this.options.positioner||this.getPosition).call(this,a.width,a.height,b);if(this.outside){var f=(this.options.borderWidth||0)+2*this.distance;this.renderer.setSize(a.width+f,a.height+f,!1);if(1!==d.scaleX||1!==d.scaleY)G(this.container,{transform:"scale("+d.scaleX+", "+d.scaleY+")"}),g*=d.scaleX,c*=d.scaleY;g+=d.left-b.x;c+=d.top-b.y}this.move(Math.round(b.x),Math.round(b.y||0),g,c)};return n}();h.Tooltip=e;return h.Tooltip});P(e,
|
|
|
+"Core/Pointer.js",[e["Core/Color/Color.js"],e["Core/Globals.js"],e["Core/Color/Palette.js"],e["Core/Tooltip.js"],e["Core/Utilities.js"]],function(e,h,D,y,F){var E=e.parse,C=h.charts,G=h.noop,t=F.addEvent,z=F.attr,m=F.css,f=F.defined,b=F.extend,A=F.find,u=F.fireEvent,l=F.isNumber,I=F.isObject,k=F.objectEach,d=F.offset,w=F.pick,n=F.splat;"";e=function(){function g(c,b){this.lastValidTouch={};this.pinchDown=[];this.runChartClick=!1;this.eventsToUnbind=[];this.chart=c;this.hasDragged=!1;this.options=
|
|
|
+b;this.init(c,b)}g.prototype.applyInactiveState=function(c){var b=[],a;(c||[]).forEach(function(c){a=c.series;b.push(a);a.linkedParent&&b.push(a.linkedParent);a.linkedSeries&&(b=b.concat(a.linkedSeries));a.navigatorSeries&&b.push(a.navigatorSeries)});this.chart.series.forEach(function(a){-1===b.indexOf(a)?a.setState("inactive",!0):a.options.inactiveOtherPoints&&a.setAllPointsToState("inactive")})};g.prototype.destroy=function(){var c=this;this.eventsToUnbind.forEach(function(c){return c()});this.eventsToUnbind=
|
|
|
+[];h.chartCount||(h.unbindDocumentMouseUp&&(h.unbindDocumentMouseUp=h.unbindDocumentMouseUp()),h.unbindDocumentTouchEnd&&(h.unbindDocumentTouchEnd=h.unbindDocumentTouchEnd()));clearInterval(c.tooltipTimeout);k(c,function(b,a){c[a]=void 0})};g.prototype.drag=function(c){var b=this.chart,a=b.options.chart,d=c.chartX,g=c.chartY,f=this.zoomHor,p=this.zoomVert,r=b.plotLeft,k=b.plotTop,v=b.plotWidth,l=b.plotHeight,n=this.selectionMarker,m=this.mouseDownX||0,w=this.mouseDownY||0,u=I(a.panning)?a.panning&&
|
|
|
+a.panning.enabled:a.panning,h=a.panKey&&c[a.panKey+"Key"];if(!n||!n.touch)if(d<r?d=r:d>r+v&&(d=r+v),g<k?g=k:g>k+l&&(g=k+l),this.hasDragged=Math.sqrt(Math.pow(m-d,2)+Math.pow(w-g,2)),10<this.hasDragged){var A=b.isInsidePlot(m-r,w-k,{visiblePlotOnly:!0});b.hasCartesianSeries&&(this.zoomX||this.zoomY)&&A&&!h&&!n&&(this.selectionMarker=n=b.renderer.rect(r,k,f?1:v,p?1:l,0).attr({"class":"highcharts-selection-marker",zIndex:7}).add(),b.styledMode||n.attr({fill:a.selectionMarkerFill||E(D.highlightColor80).setOpacity(.25).get()}));
|
|
|
+n&&f&&(d-=m,n.attr({width:Math.abs(d),x:(0<d?0:d)+m}));n&&p&&(d=g-w,n.attr({height:Math.abs(d),y:(0<d?0:d)+w}));A&&!n&&u&&b.pan(c,a.panning)}};g.prototype.dragStart=function(c){var b=this.chart;b.mouseIsDown=c.type;b.cancelClick=!1;b.mouseDownX=this.mouseDownX=c.chartX;b.mouseDownY=this.mouseDownY=c.chartY};g.prototype.drop=function(c){var d=this,a=this.chart,g=this.hasPinched;if(this.selectionMarker){var k={originalEvent:c,xAxis:[],yAxis:[]},n=this.selectionMarker,p=n.attr?n.attr("x"):n.x,r=n.attr?
|
|
|
+n.attr("y"):n.y,M=n.attr?n.attr("width"):n.width,v=n.attr?n.attr("height"):n.height,N;if(this.hasDragged||g)a.axes.forEach(function(a){if(a.zoomEnabled&&f(a.min)&&(g||d[{xAxis:"zoomX",yAxis:"zoomY"}[a.coll]])&&l(p)&&l(r)){var b=a.horiz,q="touchend"===c.type?a.minPixelPadding:0,n=a.toValue((b?p:r)+q);b=a.toValue((b?p+M:r+v)-q);k[a.coll].push({axis:a,min:Math.min(n,b),max:Math.max(n,b)});N=!0}}),N&&u(a,"selection",k,function(c){a.zoom(b(c,g?{animation:!1}:null))});l(a.index)&&(this.selectionMarker=
|
|
|
+this.selectionMarker.destroy());g&&this.scaleGroups()}a&&l(a.index)&&(m(a.container,{cursor:a._cursor}),a.cancelClick=10<this.hasDragged,a.mouseIsDown=this.hasDragged=this.hasPinched=!1,this.pinchDown=[])};g.prototype.findNearestKDPoint=function(c,b,a){var d=this.chart,g=d.hoverPoint;d=d.tooltip;if(g&&d&&d.isStickyOnContact())return g;var f;c.forEach(function(c){var d=!(c.noSharedTooltip&&b)&&0>c.options.findNearestPointBy.indexOf("y");c=c.searchPoint(a,d);if((d=I(c,!0)&&c.series)&&!(d=!I(f,!0))){d=
|
|
|
+f.distX-c.distX;var g=f.dist-c.dist,p=(c.series.group&&c.series.group.zIndex)-(f.series.group&&f.series.group.zIndex);d=0<(0!==d&&b?d:0!==g?g:0!==p?p:f.series.index>c.series.index?-1:1)}d&&(f=c)});return f};g.prototype.getChartCoordinatesFromPoint=function(c,b){var a=c.series,d=a.xAxis;a=a.yAxis;var g=c.shapeArgs;if(d&&a){var f=w(c.clientX,c.plotX),p=c.plotY||0;c.isNode&&g&&l(g.x)&&l(g.y)&&(f=g.x,p=g.y);return b?{chartX:a.len+a.pos-p,chartY:d.len+d.pos-f}:{chartX:f+d.pos,chartY:p+a.pos}}if(g&&g.x&&
|
|
|
+g.y)return{chartX:g.x,chartY:g.y}};g.prototype.getChartPosition=function(){if(this.chartPosition)return this.chartPosition;var c=this.chart.container,b=d(c);this.chartPosition={left:b.left,top:b.top,scaleX:1,scaleY:1};var a=c.offsetWidth;c=c.offsetHeight;2<a&&2<c&&(this.chartPosition.scaleX=b.width/a,this.chartPosition.scaleY=b.height/c);return this.chartPosition};g.prototype.getCoordinates=function(c){var b={xAxis:[],yAxis:[]};this.chart.axes.forEach(function(a){b[a.isXAxis?"xAxis":"yAxis"].push({axis:a,
|
|
|
+value:a.toValue(c[a.horiz?"chartX":"chartY"])})});return b};g.prototype.getHoverData=function(c,b,a,d,g,f){var p,r=[];d=!(!d||!c);var k=b&&!b.stickyTracking,v={chartX:f?f.chartX:void 0,chartY:f?f.chartY:void 0,shared:g};u(this,"beforeGetHoverData",v);k=k?[b]:a.filter(function(a){return v.filter?v.filter(a):a.visible&&!(!g&&a.directTouch)&&w(a.options.enableMouseTracking,!0)&&a.stickyTracking});b=(p=d||!f?c:this.findNearestKDPoint(k,g,f))&&p.series;p&&(g&&!b.noSharedTooltip?(k=a.filter(function(a){return v.filter?
|
|
|
+v.filter(a):a.visible&&!(!g&&a.directTouch)&&w(a.options.enableMouseTracking,!0)&&!a.noSharedTooltip}),k.forEach(function(a){var c=A(a.points,function(a){return a.x===p.x&&!a.isNull});I(c)&&(a.chart.isBoosting&&(c=a.getPoint(c)),r.push(c))})):r.push(p));v={hoverPoint:p};u(this,"afterGetHoverData",v);return{hoverPoint:v.hoverPoint,hoverSeries:b,hoverPoints:r}};g.prototype.getPointFromEvent=function(c){c=c.target;for(var b;c&&!b;)b=c.point,c=c.parentNode;return b};g.prototype.onTrackerMouseOut=function(c){c=
|
|
|
+c.relatedTarget||c.toElement;var b=this.chart.hoverSeries;this.isDirectTouch=!1;if(!(!b||!c||b.stickyTracking||this.inClass(c,"highcharts-tooltip")||this.inClass(c,"highcharts-series-"+b.index)&&this.inClass(c,"highcharts-tracker")))b.onMouseOut()};g.prototype.inClass=function(c,b){for(var a;c;){if(a=z(c,"class")){if(-1!==a.indexOf(b))return!0;if(-1!==a.indexOf("highcharts-container"))return!1}c=c.parentNode}};g.prototype.init=function(c,b){this.options=b;this.chart=c;this.runChartClick=!(!b.chart.events||
|
|
|
+!b.chart.events.click);this.pinchDown=[];this.lastValidTouch={};y&&(c.tooltip=new y(c,b.tooltip),this.followTouchMove=w(b.tooltip.followTouchMove,!0));this.setDOMEvents()};g.prototype.normalize=function(c,d){var a=c.touches,g=a?a.length?a.item(0):w(a.changedTouches,c.changedTouches)[0]:c;d||(d=this.getChartPosition());a=g.pageX-d.left;g=g.pageY-d.top;a/=d.scaleX;g/=d.scaleY;return b(c,{chartX:Math.round(a),chartY:Math.round(g)})};g.prototype.onContainerClick=function(c){var d=this.chart,a=d.hoverPoint;
|
|
|
+c=this.normalize(c);var g=d.plotLeft,f=d.plotTop;d.cancelClick||(a&&this.inClass(c.target,"highcharts-tracker")?(u(a.series,"click",b(c,{point:a})),d.hoverPoint&&a.firePointEvent("click",c)):(b(c,this.getCoordinates(c)),d.isInsidePlot(c.chartX-g,c.chartY-f,{visiblePlotOnly:!0})&&u(d,"click",c)))};g.prototype.onContainerMouseDown=function(c){var b=1===((c.buttons||c.button)&1);c=this.normalize(c);if(h.isFirefox&&0!==c.button)this.onContainerMouseMove(c);if("undefined"===typeof c.button||b)this.zoomOption(c),
|
|
|
+b&&c.preventDefault&&c.preventDefault(),this.dragStart(c)};g.prototype.onContainerMouseLeave=function(c){var b=C[w(h.hoverChartIndex,-1)],a=this.chart.tooltip;c=this.normalize(c);b&&(c.relatedTarget||c.toElement)&&(b.pointer.reset(),b.pointer.chartPosition=void 0);a&&!a.isHidden&&this.reset()};g.prototype.onContainerMouseEnter=function(c){delete this.chartPosition};g.prototype.onContainerMouseMove=function(c){var b=this.chart;c=this.normalize(c);this.setHoverChartIndex();c.preventDefault||(c.returnValue=
|
|
|
+!1);("mousedown"===b.mouseIsDown||this.touchSelect(c))&&this.drag(c);b.openMenu||!this.inClass(c.target,"highcharts-tracker")&&!b.isInsidePlot(c.chartX-b.plotLeft,c.chartY-b.plotTop,{visiblePlotOnly:!0})||this.runPointActions(c)};g.prototype.onDocumentTouchEnd=function(c){C[h.hoverChartIndex]&&C[h.hoverChartIndex].pointer.drop(c)};g.prototype.onContainerTouchMove=function(c){if(this.touchSelect(c))this.onContainerMouseMove(c);else this.touch(c)};g.prototype.onContainerTouchStart=function(c){if(this.touchSelect(c))this.onContainerMouseDown(c);
|
|
|
+else this.zoomOption(c),this.touch(c,!0)};g.prototype.onDocumentMouseMove=function(c){var b=this.chart,a=this.chartPosition;c=this.normalize(c,a);var d=b.tooltip;!a||d&&d.isStickyOnContact()||b.isInsidePlot(c.chartX-b.plotLeft,c.chartY-b.plotTop,{visiblePlotOnly:!0})||this.inClass(c.target,"highcharts-tracker")||this.reset()};g.prototype.onDocumentMouseUp=function(c){var b=C[w(h.hoverChartIndex,-1)];b&&b.pointer.drop(c)};g.prototype.pinch=function(c){var d=this,a=d.chart,g=d.pinchDown,f=c.touches||
|
|
|
+[],k=f.length,p=d.lastValidTouch,r=d.hasZoom,n=d.selectionMarker,v={},l=1===k&&(d.inClass(c.target,"highcharts-tracker")&&a.runTrackerClick||d.runChartClick),m={};1<k&&(d.initiated=!0);r&&d.initiated&&!l&&!1!==c.cancelable&&c.preventDefault();[].map.call(f,function(a){return d.normalize(a)});"touchstart"===c.type?([].forEach.call(f,function(a,c){g[c]={chartX:a.chartX,chartY:a.chartY}}),p.x=[g[0].chartX,g[1]&&g[1].chartX],p.y=[g[0].chartY,g[1]&&g[1].chartY],a.axes.forEach(function(c){if(c.zoomEnabled){var b=
|
|
|
+a.bounds[c.horiz?"h":"v"],d=c.minPixelPadding,g=c.toPixels(Math.min(w(c.options.min,c.dataMin),c.dataMin)),p=c.toPixels(Math.max(w(c.options.max,c.dataMax),c.dataMax)),f=Math.max(g,p);b.min=Math.min(c.pos,Math.min(g,p)-d);b.max=Math.max(c.pos+c.len,f+d)}}),d.res=!0):d.followTouchMove&&1===k?this.runPointActions(d.normalize(c)):g.length&&(n||(d.selectionMarker=n=b({destroy:G,touch:!0},a.plotBox)),d.pinchTranslate(g,f,v,n,m,p),d.hasPinched=r,d.scaleGroups(v,m),d.res&&(d.res=!1,this.reset(!1,0)))};g.prototype.pinchTranslate=
|
|
|
+function(c,b,a,d,g,f){this.zoomHor&&this.pinchTranslateDirection(!0,c,b,a,d,g,f);this.zoomVert&&this.pinchTranslateDirection(!1,c,b,a,d,g,f)};g.prototype.pinchTranslateDirection=function(c,b,a,d,g,f,p,r){var k=this.chart,v=c?"x":"y",n=c?"X":"Y",l="chart"+n,q=c?"width":"height",m=k["plot"+(c?"Left":"Top")],B,J,w=r||1,u=k.inverted,h=k.bounds[c?"h":"v"],A=1===b.length,e=b[0][l],O=a[0][l],I=!A&&b[1][l],t=!A&&a[1][l];a=function(){"number"===typeof t&&20<Math.abs(e-I)&&(w=r||Math.abs(O-t)/Math.abs(e-I));
|
|
|
+J=(m-O)/w+e;B=k["plot"+(c?"Width":"Height")]/w};a();b=J;if(b<h.min){b=h.min;var z=!0}else b+B>h.max&&(b=h.max-B,z=!0);z?(O-=.8*(O-p[v][0]),"number"===typeof t&&(t-=.8*(t-p[v][1])),a()):p[v]=[O,t];u||(f[v]=J-m,f[q]=B);f=u?1/w:w;g[q]=B;g[v]=b;d[u?c?"scaleY":"scaleX":"scale"+n]=w;d["translate"+n]=f*m+(O-f*e)};g.prototype.reset=function(c,b){var a=this.chart,d=a.hoverSeries,g=a.hoverPoint,f=a.hoverPoints,p=a.tooltip,r=p&&p.shared?f:g;c&&r&&n(r).forEach(function(a){a.series.isCartesian&&"undefined"===
|
|
|
+typeof a.plotX&&(c=!1)});if(c)p&&r&&n(r).length&&(p.refresh(r),p.shared&&f?f.forEach(function(a){a.setState(a.state,!0);a.series.isCartesian&&(a.series.xAxis.crosshair&&a.series.xAxis.drawCrosshair(null,a),a.series.yAxis.crosshair&&a.series.yAxis.drawCrosshair(null,a))}):g&&(g.setState(g.state,!0),a.axes.forEach(function(a){a.crosshair&&g.series[a.coll]===a&&a.drawCrosshair(null,g)})));else{if(g)g.onMouseOut();f&&f.forEach(function(a){a.setState()});if(d)d.onMouseOut();p&&p.hide(b);this.unDocMouseMove&&
|
|
|
+(this.unDocMouseMove=this.unDocMouseMove());a.axes.forEach(function(a){a.hideCrosshair()});this.hoverX=a.hoverPoints=a.hoverPoint=null}};g.prototype.runPointActions=function(c,b){var a=this.chart,d=a.tooltip&&a.tooltip.options.enabled?a.tooltip:void 0,g=d?d.shared:!1,f=b||a.hoverPoint,p=f&&f.series||a.hoverSeries;p=this.getHoverData(f,p,a.series,(!c||"touchmove"!==c.type)&&(!!b||p&&p.directTouch&&this.isDirectTouch),g,c);f=p.hoverPoint;var r=p.hoverPoints;b=(p=p.hoverSeries)&&p.tooltipOptions.followPointer&&
|
|
|
+!p.tooltipOptions.split;g=g&&p&&!p.noSharedTooltip;if(f&&(f!==a.hoverPoint||d&&d.isHidden)){(a.hoverPoints||[]).forEach(function(a){-1===r.indexOf(a)&&a.setState()});if(a.hoverSeries!==p)p.onMouseOver();this.applyInactiveState(r);(r||[]).forEach(function(a){a.setState("hover")});a.hoverPoint&&a.hoverPoint.firePointEvent("mouseOut");if(!f.series)return;a.hoverPoints=r;a.hoverPoint=f;f.firePointEvent("mouseOver");d&&d.refresh(g?r:f,c)}else b&&d&&!d.isHidden&&(f=d.getAnchor([{}],c),a.isInsidePlot(f[0],
|
|
|
+f[1],{visiblePlotOnly:!0})&&d.updatePosition({plotX:f[0],plotY:f[1]}));this.unDocMouseMove||(this.unDocMouseMove=t(a.container.ownerDocument,"mousemove",function(a){var c=C[h.hoverChartIndex];if(c)c.pointer.onDocumentMouseMove(a)}),this.eventsToUnbind.push(this.unDocMouseMove));a.axes.forEach(function(b){var d=w((b.crosshair||{}).snap,!0),g;d&&((g=a.hoverPoint)&&g.series[b.coll]===b||(g=A(r,function(a){return a.series[b.coll]===b})));g||!d?b.drawCrosshair(c,g):b.hideCrosshair()})};g.prototype.scaleGroups=
|
|
|
+function(c,b){var a=this.chart,d;a.series.forEach(function(g){d=c||g.getPlotBox();g.xAxis&&g.xAxis.zoomEnabled&&g.group&&(g.group.attr(d),g.markerGroup&&(g.markerGroup.attr(d),g.markerGroup.clip(b?a.clipRect:null)),g.dataLabelsGroup&&g.dataLabelsGroup.attr(d))});a.clipRect.attr(b||a.clipBox)};g.prototype.setDOMEvents=function(){var c=this,b=this.chart.container,a=b.ownerDocument;b.onmousedown=this.onContainerMouseDown.bind(this);b.onmousemove=this.onContainerMouseMove.bind(this);b.onclick=this.onContainerClick.bind(this);
|
|
|
+this.eventsToUnbind.push(t(b,"mouseenter",this.onContainerMouseEnter.bind(this)));this.eventsToUnbind.push(t(b,"mouseleave",this.onContainerMouseLeave.bind(this)));h.unbindDocumentMouseUp||(h.unbindDocumentMouseUp=t(a,"mouseup",this.onDocumentMouseUp.bind(this)));for(var d=this.chart.renderTo.parentElement;d&&"BODY"!==d.tagName;)this.eventsToUnbind.push(t(d,"scroll",function(){delete c.chartPosition})),d=d.parentElement;h.hasTouch&&(this.eventsToUnbind.push(t(b,"touchstart",this.onContainerTouchStart.bind(this),
|
|
|
+{passive:!1})),this.eventsToUnbind.push(t(b,"touchmove",this.onContainerTouchMove.bind(this),{passive:!1})),h.unbindDocumentTouchEnd||(h.unbindDocumentTouchEnd=t(a,"touchend",this.onDocumentTouchEnd.bind(this),{passive:!1})))};g.prototype.setHoverChartIndex=function(){var c=this.chart,b=h.charts[w(h.hoverChartIndex,-1)];if(b&&b!==c)b.pointer.onContainerMouseLeave({relatedTarget:!0});b&&b.mouseIsDown||(h.hoverChartIndex=c.index)};g.prototype.touch=function(c,b){var a=this.chart,d;this.setHoverChartIndex();
|
|
|
+if(1===c.touches.length)if(c=this.normalize(c),(d=a.isInsidePlot(c.chartX-a.plotLeft,c.chartY-a.plotTop,{visiblePlotOnly:!0}))&&!a.openMenu){b&&this.runPointActions(c);if("touchmove"===c.type){b=this.pinchDown;var g=b[0]?4<=Math.sqrt(Math.pow(b[0].chartX-c.chartX,2)+Math.pow(b[0].chartY-c.chartY,2)):!1}w(g,!0)&&this.pinch(c)}else b&&this.reset();else 2===c.touches.length&&this.pinch(c)};g.prototype.touchSelect=function(c){return!(!this.chart.options.chart.zoomBySingleTouch||!c.touches||1!==c.touches.length)};
|
|
|
+g.prototype.zoomOption=function(c){var b=this.chart,a=b.options.chart,d=a.zoomType||"";b=b.inverted;/touch/.test(c.type)&&(d=w(a.pinchType,d));this.zoomX=c=/x/.test(d);this.zoomY=d=/y/.test(d);this.zoomHor=c&&!b||d&&b;this.zoomVert=d&&!b||c&&b;this.hasZoom=c||d};return g}();return h.Pointer=e});P(e,"Core/MSPointer.js",[e["Core/Globals.js"],e["Core/Pointer.js"],e["Core/Utilities.js"]],function(e,h,D){function y(){var b=[];b.item=function(b){return this[b]};f(A,function(f){b.push({pageX:f.pageX,pageY:f.pageY,
|
|
|
+target:f.target})});return b}function F(b,f,k,d){"touch"!==b.pointerType&&b.pointerType!==b.MSPOINTER_TYPE_TOUCH||!C[e.hoverChartIndex]||(d(b),d=C[e.hoverChartIndex].pointer,d[f]({type:k,target:b.currentTarget,preventDefault:t,touches:y()}))}var E=this&&this.__extends||function(){var b=function(f,k){b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,f){b.__proto__=f}||function(b,f){for(var d in f)f.hasOwnProperty(d)&&(b[d]=f[d])};return b(f,k)};return function(f,k){function d(){this.constructor=
|
|
|
+f}b(f,k);f.prototype=null===k?Object.create(k):(d.prototype=k.prototype,new d)}}(),C=e.charts,G=e.doc,t=e.noop,z=D.addEvent,m=D.css,f=D.objectEach,b=D.removeEvent,A={},u=!!e.win.PointerEvent;return function(f){function l(){return null!==f&&f.apply(this,arguments)||this}E(l,f);l.prototype.batchMSEvents=function(b){b(this.chart.container,u?"pointerdown":"MSPointerDown",this.onContainerPointerDown);b(this.chart.container,u?"pointermove":"MSPointerMove",this.onContainerPointerMove);b(G,u?"pointerup":
|
|
|
+"MSPointerUp",this.onDocumentPointerUp)};l.prototype.destroy=function(){this.batchMSEvents(b);f.prototype.destroy.call(this)};l.prototype.init=function(b,d){f.prototype.init.call(this,b,d);this.hasZoom&&m(b.container,{"-ms-touch-action":"none","touch-action":"none"})};l.prototype.onContainerPointerDown=function(b){F(b,"onContainerTouchStart","touchstart",function(b){A[b.pointerId]={pageX:b.pageX,pageY:b.pageY,target:b.currentTarget}})};l.prototype.onContainerPointerMove=function(b){F(b,"onContainerTouchMove",
|
|
|
+"touchmove",function(b){A[b.pointerId]={pageX:b.pageX,pageY:b.pageY};A[b.pointerId].target||(A[b.pointerId].target=b.currentTarget)})};l.prototype.onDocumentPointerUp=function(b){F(b,"onDocumentTouchEnd","touchend",function(b){delete A[b.pointerId]})};l.prototype.setDOMEvents=function(){f.prototype.setDOMEvents.call(this);(this.hasZoom||this.followTouchMove)&&this.batchMSEvents(z)};return l}(h)});P(e,"Core/Series/Point.js",[e["Core/Renderer/HTML/AST.js"],e["Core/Animation/AnimationUtilities.js"],
|
|
|
+e["Core/FormatUtilities.js"],e["Core/Globals.js"],e["Core/Options.js"],e["Core/Utilities.js"]],function(e,h,D,y,F,E){var C=h.animObject,G=D.format,t=F.defaultOptions,z=E.addEvent,m=E.defined,f=E.erase,b=E.extend,A=E.fireEvent,u=E.getNestedProperty,l=E.isArray,I=E.isFunction,k=E.isNumber,d=E.isObject,w=E.merge,n=E.objectEach,g=E.pick,c=E.syncTimeout,q=E.removeEvent,a=E.uniqueKey;"";h=function(){function B(){this.colorIndex=this.category=void 0;this.formatPrefix="point";this.id=void 0;this.isNull=!1;
|
|
|
+this.percentage=this.options=this.name=void 0;this.selected=!1;this.total=this.series=void 0;this.visible=!0;this.x=void 0}B.prototype.animateBeforeDestroy=function(){var a=this,c={x:a.startXPos,opacity:0},d,g=a.getGraphicalProps();g.singular.forEach(function(b){d="dataLabel"===b;a[b]=a[b].animate(d?{x:a[b].startXPos,y:a[b].startYPos,opacity:0}:c)});g.plural.forEach(function(c){a[c].forEach(function(c){c.element&&c.animate(b({x:a.startXPos},c.startYPos?{x:c.startXPos,y:c.startYPos}:{}))})})};B.prototype.applyOptions=
|
|
|
+function(a,c){var d=this.series,f=d.options.pointValKey||d.pointValKey;a=B.prototype.optionsToObject.call(this,a);b(this,a);this.options=this.options?b(this.options,a):a;a.group&&delete this.group;a.dataLabels&&delete this.dataLabels;f&&(this.y=B.prototype.getNestedProperty.call(this,f));this.formatPrefix=(this.isNull=g(this.isValid&&!this.isValid(),null===this.x||!k(this.y)))?"null":"point";this.selected&&(this.state="select");"name"in this&&"undefined"===typeof c&&d.xAxis&&d.xAxis.hasNames&&(this.x=
|
|
|
+d.xAxis.nameToX(this));"undefined"===typeof this.x&&d&&(this.x="undefined"===typeof c?d.autoIncrement(this):c);return this};B.prototype.destroy=function(){function a(){if(b.graphic||b.dataLabel||b.dataLabels)q(b),b.destroyElements();for(n in b)b[n]=null}var b=this,d=b.series,g=d.chart;d=d.options.dataSorting;var k=g.hoverPoints,v=C(b.series.chart.renderer.globalAnimation),n;b.legendItem&&g.legend.destroyItem(b);k&&(b.setState(),f(k,b),k.length||(g.hoverPoints=null));if(b===g.hoverPoint)b.onMouseOut();
|
|
|
+d&&d.enabled?(this.animateBeforeDestroy(),c(a,v.duration)):a();g.pointCount--};B.prototype.destroyElements=function(a){var c=this;a=c.getGraphicalProps(a);a.singular.forEach(function(a){c[a]=c[a].destroy()});a.plural.forEach(function(a){c[a].forEach(function(a){a.element&&a.destroy()});delete c[a]})};B.prototype.firePointEvent=function(a,c,b){var d=this,g=this.series.options;(g.point.events[a]||d.options&&d.options.events&&d.options.events[a])&&d.importEvents();"click"===a&&g.allowPointSelect&&(b=
|
|
|
+function(a){d.select&&d.select(null,a.ctrlKey||a.metaKey||a.shiftKey)});A(d,a,c,b)};B.prototype.getClassName=function(){return"highcharts-point"+(this.selected?" highcharts-point-select":"")+(this.negative?" highcharts-negative":"")+(this.isNull?" highcharts-null-point":"")+("undefined"!==typeof this.colorIndex?" highcharts-color-"+this.colorIndex:"")+(this.options.className?" "+this.options.className:"")+(this.zone&&this.zone.className?" "+this.zone.className.replace("highcharts-negative",""):"")};
|
|
|
+B.prototype.getGraphicalProps=function(a){var c=this,b=[],d,g={singular:[],plural:[]};a=a||{graphic:1,dataLabel:1};a.graphic&&b.push("graphic","upperGraphic","shadowGroup");a.dataLabel&&b.push("dataLabel","dataLabelUpper","connector");for(d=b.length;d--;){var f=b[d];c[f]&&g.singular.push(f)}["dataLabel","connector"].forEach(function(b){var d=b+"s";a[b]&&c[d]&&g.plural.push(d)});return g};B.prototype.getLabelConfig=function(){return{x:this.category,y:this.y,color:this.color,colorIndex:this.colorIndex,
|
|
|
+key:this.name||this.category,series:this.series,point:this,percentage:this.percentage,total:this.total||this.stackTotal}};B.prototype.getNestedProperty=function(a){if(a)return 0===a.indexOf("custom.")?u(a,this.options):this[a]};B.prototype.getZone=function(){var a=this.series,c=a.zones;a=a.zoneAxis||"y";var b=0,d;for(d=c[b];this[a]>=d.value;)d=c[++b];this.nonZonedColor||(this.nonZonedColor=this.color);this.color=d&&d.color&&!this.options.color?d.color:this.nonZonedColor;return d};B.prototype.hasNewShapeType=
|
|
|
+function(){return(this.graphic&&(this.graphic.symbolName||this.graphic.element.nodeName))!==this.shapeType};B.prototype.init=function(c,b,d){this.series=c;this.applyOptions(b,d);this.id=m(this.id)?this.id:a();this.resolveColor();c.chart.pointCount++;A(this,"afterInit");return this};B.prototype.optionsToObject=function(a){var c={},b=this.series,d=b.options.keys,g=d||b.pointArrayMap||["y"],f=g.length,n=0,q=0;if(k(a)||null===a)c[g[0]]=a;else if(l(a))for(!d&&a.length>f&&(b=typeof a[0],"string"===b?c.name=
|
|
|
+a[0]:"number"===b&&(c.x=a[0]),n++);q<f;)d&&"undefined"===typeof a[n]||(0<g[q].indexOf(".")?B.prototype.setNestedProperty(c,a[n],g[q]):c[g[q]]=a[n]),n++,q++;else"object"===typeof a&&(c=a,a.dataLabels&&(b._hasPointLabels=!0),a.marker&&(b._hasPointMarkers=!0));return c};B.prototype.resolveColor=function(){var a=this.series;var c=a.chart.options.chart.colorCount;var b=a.chart.styledMode;delete this.nonZonedColor;if(a.options.colorByPoint){if(!b){c=a.options.colors||a.chart.options.colors;var d=c[a.colorCounter];
|
|
|
+c=c.length}b=a.colorCounter;a.colorCounter++;a.colorCounter===c&&(a.colorCounter=0)}else b||(d=a.color),b=a.colorIndex;this.colorIndex=g(this.options.colorIndex,b);this.color=g(this.options.color,d)};B.prototype.setNestedProperty=function(a,c,b){b.split(".").reduce(function(a,b,g,f){a[b]=f.length-1===g?c:d(a[b],!0)?a[b]:{};return a[b]},a);return a};B.prototype.tooltipFormatter=function(a){var c=this.series,b=c.tooltipOptions,d=g(b.valueDecimals,""),f=b.valuePrefix||"",k=b.valueSuffix||"";c.chart.styledMode&&
|
|
|
+(a=c.chart.tooltip.styledModeFormat(a));(c.pointArrayMap||["y"]).forEach(function(c){c="{point."+c;if(f||k)a=a.replace(RegExp(c+"}","g"),f+c+"}"+k);a=a.replace(RegExp(c+"}","g"),c+":,."+d+"f}")});return G(a,{point:this,series:this.series},c.chart)};B.prototype.update=function(a,c,b,f){function p(){k.applyOptions(a);var f=n&&k.hasDummyGraphic;f=null===k.y?!f:f;n&&f&&(k.graphic=n.destroy(),delete k.hasDummyGraphic);d(a,!0)&&(n&&n.element&&a&&a.marker&&"undefined"!==typeof a.marker.symbol&&(k.graphic=
|
|
|
+n.destroy()),a&&a.dataLabels&&k.dataLabel&&(k.dataLabel=k.dataLabel.destroy()),k.connector&&(k.connector=k.connector.destroy()));l=k.index;r.updateParallelArrays(k,l);m.data[l]=d(m.data[l],!0)||d(a,!0)?k.options:g(a,m.data[l]);r.isDirty=r.isDirtyData=!0;!r.fixedBox&&r.hasCartesianSeries&&(q.isDirtyBox=!0);"point"===m.legendType&&(q.isDirtyLegend=!0);c&&q.redraw(b)}var k=this,r=k.series,n=k.graphic,l,q=r.chart,m=r.options;c=g(c,!0);!1===f?p():k.firePointEvent("update",{options:a},p)};B.prototype.remove=
|
|
|
+function(a,c){this.series.removePoint(this.series.data.indexOf(this),a,c)};B.prototype.select=function(a,c){var b=this,d=b.series,f=d.chart;this.selectedStaging=a=g(a,!b.selected);b.firePointEvent(a?"select":"unselect",{accumulate:c},function(){b.selected=b.options.selected=a;d.options.data[d.data.indexOf(b)]=b.options;b.setState(a&&"select");c||f.getSelectedPoints().forEach(function(a){var c=a.series;a.selected&&a!==b&&(a.selected=a.options.selected=!1,c.options.data[c.data.indexOf(a)]=a.options,
|
|
|
+a.setState(f.hoverPoints&&c.options.inactiveOtherPoints?"inactive":""),a.firePointEvent("unselect"))})});delete this.selectedStaging};B.prototype.onMouseOver=function(a){var c=this.series.chart,b=c.pointer;a=a?b.normalize(a):b.getChartCoordinatesFromPoint(this,c.inverted);b.runPointActions(a,this)};B.prototype.onMouseOut=function(){var a=this.series.chart;this.firePointEvent("mouseOut");this.series.options.inactiveOtherPoints||(a.hoverPoints||[]).forEach(function(a){a.setState()});a.hoverPoints=a.hoverPoint=
|
|
|
+null};B.prototype.importEvents=function(){if(!this.hasImportedEvents){var a=this,c=w(a.series.options.point,a.options).events;a.events=c;n(c,function(c,b){I(c)&&z(a,b,c)});this.hasImportedEvents=!0}};B.prototype.setState=function(a,c){var d=this.series,f=this.state,n=d.options.states[a||"normal"]||{},v=t.plotOptions[d.type].marker&&d.options.marker,l=v&&!1===v.enabled,q=v&&v.states&&v.states[a||"normal"]||{},m=!1===q.enabled,B=d.stateMarkerGraphic,w=this.marker||{},u=d.chart,h=d.halo,J,R=v&&d.markerAttribs;
|
|
|
+a=a||"";if(!(a===this.state&&!c||this.selected&&"select"!==a||!1===n.enabled||a&&(m||l&&!1===q.enabled)||a&&w.states&&w.states[a]&&!1===w.states[a].enabled)){this.state=a;R&&(J=d.markerAttribs(this,a));if(this.graphic&&!this.hasDummyGraphic){f&&this.graphic.removeClass("highcharts-point-"+f);a&&this.graphic.addClass("highcharts-point-"+a);if(!u.styledMode){var I=d.pointAttribs(this,a);var z=g(u.options.chart.animation,n.animation);d.options.inactiveOtherPoints&&k(I.opacity)&&((this.dataLabels||[]).forEach(function(a){a&&
|
|
|
+a.animate({opacity:I.opacity},z)}),this.connector&&this.connector.animate({opacity:I.opacity},z));this.graphic.animate(I,z)}J&&this.graphic.animate(J,g(u.options.chart.animation,q.animation,v.animation));B&&B.hide()}else{if(a&&q){f=w.symbol||d.symbol;B&&B.currentSymbol!==f&&(B=B.destroy());if(J)if(B)B[c?"animate":"attr"]({x:J.x,y:J.y});else f&&(d.stateMarkerGraphic=B=u.renderer.symbol(f,J.x,J.y,J.width,J.height).add(d.markerGroup),B.currentSymbol=f);!u.styledMode&&B&&B.attr(d.pointAttribs(this,a))}B&&
|
|
|
+(B[a&&this.isInside?"show":"hide"](),B.element.point=this)}n=n.halo;J=(B=this.graphic||B)&&B.visibility||"inherit";n&&n.size&&B&&"hidden"!==J&&!this.isCluster?(h||(d.halo=h=u.renderer.path().add(B.parentGroup)),h.show()[c?"animate":"attr"]({d:this.haloPath(n.size)}),h.attr({"class":"highcharts-halo highcharts-color-"+g(this.colorIndex,d.colorIndex)+(this.className?" "+this.className:""),visibility:J,zIndex:-1}),h.point=this,u.styledMode||h.attr(b({fill:this.color||d.color,"fill-opacity":n.opacity},
|
|
|
+e.filterUserAttributes(n.attributes||{})))):h&&h.point&&h.point.haloPath&&h.animate({d:h.point.haloPath(0)},null,h.hide);A(this,"afterSetState",{state:a})}};B.prototype.haloPath=function(a){return this.series.chart.renderer.symbols.circle(Math.floor(this.plotX)-a,this.plotY-a,2*a,2*a)};return B}();return y.Point=h});P(e,"Core/Legend.js",[e["Core/Animation/AnimationUtilities.js"],e["Core/FormatUtilities.js"],e["Core/Globals.js"],e["Core/Series/Point.js"],e["Core/Utilities.js"]],function(e,h,D,y,F){var E=
|
|
|
+e.animObject,C=e.setAnimation,G=h.format;e=D.isFirefox;var t=D.marginNames;h=D.win;var z=F.addEvent,m=F.createElement,f=F.css,b=F.defined,A=F.discardElement,u=F.find,l=F.fireEvent,I=F.isNumber,k=F.merge,d=F.pick,w=F.relativeLength,n=F.stableSort,g=F.syncTimeout;F=F.wrap;var c=function(){function c(a,c){this.allItems=[];this.contentGroup=this.box=void 0;this.display=!1;this.group=void 0;this.offsetWidth=this.maxLegendWidth=this.maxItemWidth=this.legendWidth=this.legendHeight=this.lastLineHeight=this.lastItemY=
|
|
|
+this.itemY=this.itemX=this.itemMarginTop=this.itemMarginBottom=this.itemHeight=this.initialItemY=0;this.options={};this.padding=0;this.pages=[];this.proximate=!1;this.scrollGroup=void 0;this.widthOption=this.totalItemWidth=this.titleHeight=this.symbolWidth=this.symbolHeight=0;this.chart=a;this.init(a,c)}c.prototype.init=function(a,c){this.chart=a;this.setOptions(c);c.enabled&&(this.render(),z(this.chart,"endResize",function(){this.legend.positionCheckboxes()}),this.proximate?this.unchartrender=z(this.chart,
|
|
|
+"render",function(){this.legend.proximatePositions();this.legend.positionItems()}):this.unchartrender&&this.unchartrender())};c.prototype.setOptions=function(a){var c=d(a.padding,8);this.options=a;this.chart.styledMode||(this.itemStyle=a.itemStyle,this.itemHiddenStyle=k(this.itemStyle,a.itemHiddenStyle));this.itemMarginTop=a.itemMarginTop||0;this.itemMarginBottom=a.itemMarginBottom||0;this.padding=c;this.initialItemY=c-5;this.symbolWidth=d(a.symbolWidth,16);this.pages=[];this.proximate="proximate"===
|
|
|
+a.layout&&!this.chart.inverted;this.baseline=void 0};c.prototype.update=function(a,c){var b=this.chart;this.setOptions(k(!0,this.options,a));this.destroy();b.isDirtyLegend=b.isDirtyBox=!0;d(c,!0)&&b.redraw();l(this,"afterUpdate")};c.prototype.colorizeItem=function(a,c){a.legendGroup[c?"removeClass":"addClass"]("highcharts-legend-item-hidden");if(!this.chart.styledMode){var b=this.options,d=a.legendItem,g=a.legendLine,f=a.legendSymbol,k=this.itemHiddenStyle.color;b=c?b.itemStyle.color:k;var n=c?a.color||
|
|
|
+k:k,m=a.options&&a.options.marker,q={fill:n};d&&d.css({fill:b,color:b});g&&g.attr({stroke:n});f&&(m&&f.isMarker&&(q=a.pointAttribs(),c||(q.stroke=q.fill=k)),f.attr(q))}l(this,"afterColorizeItem",{item:a,visible:c})};c.prototype.positionItems=function(){this.allItems.forEach(this.positionItem,this);this.chart.isResizing||this.positionCheckboxes()};c.prototype.positionItem=function(a){var c=this,d=this.options,g=d.symbolPadding,f=!d.rtl,k=a._legendItemPos;d=k[0];k=k[1];var n=a.checkbox,v=a.legendGroup;
|
|
|
+v&&v.element&&(g={translateX:f?d:this.legendWidth-d-2*g-4,translateY:k},f=function(){l(c,"afterPositionItem",{item:a})},b(v.translateY)?v.animate(g,void 0,f):(v.attr(g),f()));n&&(n.x=d,n.y=k)};c.prototype.destroyItem=function(a){var c=a.checkbox;["legendItem","legendLine","legendSymbol","legendGroup"].forEach(function(c){a[c]&&(a[c]=a[c].destroy())});c&&A(a.checkbox)};c.prototype.destroy=function(){function a(a){this[a]&&(this[a]=this[a].destroy())}this.getAllItems().forEach(function(c){["legendItem",
|
|
|
+"legendGroup"].forEach(a,c)});"clipRect up down pager nav box title group".split(" ").forEach(a,this);this.display=null};c.prototype.positionCheckboxes=function(){var a=this.group&&this.group.alignAttr,c=this.clipHeight||this.legendHeight,b=this.titleHeight;if(a){var d=a.translateY;this.allItems.forEach(function(g){var k=g.checkbox;if(k){var p=d+b+k.y+(this.scrollOffset||0)+3;f(k,{left:a.translateX+g.checkboxOffset+k.x-20+"px",top:p+"px",display:this.proximate||p>d-6&&p<d+c-6?"":"none"})}},this)}};
|
|
|
+c.prototype.renderTitle=function(){var a=this.options,c=this.padding,b=a.title,d=0;b.text&&(this.title||(this.title=this.chart.renderer.label(b.text,c-3,c-4,null,null,null,a.useHTML,null,"legend-title").attr({zIndex:1}),this.chart.styledMode||this.title.css(b.style),this.title.add(this.group)),b.width||this.title.css({width:this.maxLegendWidth+"px"}),a=this.title.getBBox(),d=a.height,this.offsetWidth=a.width,this.contentGroup.attr({translateY:d}));this.titleHeight=d};c.prototype.setText=function(a){var c=
|
|
|
+this.options;a.legendItem.attr({text:c.labelFormat?G(c.labelFormat,a,this.chart):c.labelFormatter.call(a)})};c.prototype.renderItem=function(a){var c=this.chart,b=c.renderer,g=this.options,f=this.symbolWidth,n=g.symbolPadding||0,l=this.itemStyle,v=this.itemHiddenStyle,m="horizontal"===g.layout?d(g.itemDistance,20):0,q=!g.rtl,w=a.legendItem,u=!a.series,h=!u&&a.series.drawLegendSymbol?a.series:a,e=h.options,A=this.createCheckboxForItem&&e&&e.showCheckbox;e=f+n+m+(A?20:0);var t=g.useHTML,R=a.options.className;
|
|
|
+w||(a.legendGroup=b.g("legend-item").addClass("highcharts-"+h.type+"-series highcharts-color-"+a.colorIndex+(R?" "+R:"")+(u?" highcharts-series-"+a.index:"")).attr({zIndex:1}).add(this.scrollGroup),a.legendItem=w=b.text("",q?f+n:-n,this.baseline||0,t),c.styledMode||w.css(k(a.visible?l:v)),w.attr({align:q?"left":"right",zIndex:2}).add(a.legendGroup),this.baseline||(this.fontMetrics=b.fontMetrics(c.styledMode?12:l.fontSize,w),this.baseline=this.fontMetrics.f+3+this.itemMarginTop,w.attr("y",this.baseline),
|
|
|
+this.symbolHeight=g.symbolHeight||this.fontMetrics.f,g.squareSymbol&&(this.symbolWidth=d(g.symbolWidth,Math.max(this.symbolHeight,16)),e=this.symbolWidth+n+m+(A?20:0),q&&w.attr("x",this.symbolWidth+n))),h.drawLegendSymbol(this,a),this.setItemEvents&&this.setItemEvents(a,w,t));A&&!a.checkbox&&this.createCheckboxForItem&&this.createCheckboxForItem(a);this.colorizeItem(a,a.visible);!c.styledMode&&l.width||w.css({width:(g.itemWidth||this.widthOption||c.spacingBox.width)-e+"px"});this.setText(a);c=w.getBBox();
|
|
|
+a.itemWidth=a.checkboxOffset=g.itemWidth||a.legendItemWidth||c.width+e;this.maxItemWidth=Math.max(this.maxItemWidth,a.itemWidth);this.totalItemWidth+=a.itemWidth;this.itemHeight=a.itemHeight=Math.round(a.legendItemHeight||c.height||this.symbolHeight)};c.prototype.layoutItem=function(a){var c=this.options,b=this.padding,g="horizontal"===c.layout,f=a.itemHeight,k=this.itemMarginBottom,n=this.itemMarginTop,l=g?d(c.itemDistance,20):0,m=this.maxLegendWidth;c=c.alignColumns&&this.totalItemWidth>m?this.maxItemWidth:
|
|
|
+a.itemWidth;g&&this.itemX-b+c>m&&(this.itemX=b,this.lastLineHeight&&(this.itemY+=n+this.lastLineHeight+k),this.lastLineHeight=0);this.lastItemY=n+this.itemY+k;this.lastLineHeight=Math.max(f,this.lastLineHeight);a._legendItemPos=[this.itemX,this.itemY];g?this.itemX+=c:(this.itemY+=n+f+k,this.lastLineHeight=f);this.offsetWidth=this.widthOption||Math.max((g?this.itemX-b-(a.checkbox?0:l):c)+b,this.offsetWidth)};c.prototype.getAllItems=function(){var a=[];this.chart.series.forEach(function(c){var g=c&&
|
|
|
+c.options;c&&d(g.showInLegend,b(g.linkedTo)?!1:void 0,!0)&&(a=a.concat(c.legendItems||("point"===g.legendType?c.data:c)))});l(this,"afterGetAllItems",{allItems:a});return a};c.prototype.getAlignment=function(){var a=this.options;return this.proximate?a.align.charAt(0)+"tv":a.floating?"":a.align.charAt(0)+a.verticalAlign.charAt(0)+a.layout.charAt(0)};c.prototype.adjustMargins=function(a,c){var g=this.chart,f=this.options,k=this.getAlignment();k&&[/(lth|ct|rth)/,/(rtv|rm|rbv)/,/(rbh|cb|lbh)/,/(lbv|lm|ltv)/].forEach(function(p,
|
|
|
+n){p.test(k)&&!b(a[n])&&(g[t[n]]=Math.max(g[t[n]],g.legend[(n+1)%2?"legendHeight":"legendWidth"]+[1,-1,-1,1][n]*f[n%2?"x":"y"]+d(f.margin,12)+c[n]+(g.titleOffset[n]||0)))})};c.prototype.proximatePositions=function(){var a=this.chart,c=[],b="left"===this.options.align;this.allItems.forEach(function(d){var g;var f=b;if(d.yAxis){d.xAxis.options.reversed&&(f=!f);d.points&&(g=u(f?d.points:d.points.slice(0).reverse(),function(a){return I(a.plotY)}));f=this.itemMarginTop+d.legendItem.getBBox().height+this.itemMarginBottom;
|
|
|
+var k=d.yAxis.top-a.plotTop;d.visible?(g=g?g.plotY:d.yAxis.height,g+=k-.3*f):g=k+d.yAxis.height;c.push({target:g,size:f,item:d})}},this);D.distribute(c,a.plotHeight);c.forEach(function(c){c.item._legendItemPos[1]=a.plotTop-a.spacing[0]+c.pos})};c.prototype.render=function(){var a=this.chart,c=a.renderer,b=this.group,d=this.box,g=this.options,f=this.padding;this.itemX=f;this.itemY=this.initialItemY;this.lastItemY=this.offsetWidth=0;this.widthOption=w(g.width,a.spacingBox.width-f);var k=a.spacingBox.width-
|
|
|
+2*f-g.x;-1<["rm","lm"].indexOf(this.getAlignment().substring(0,2))&&(k/=2);this.maxLegendWidth=this.widthOption||k;b||(this.group=b=c.g("legend").attr({zIndex:7}).add(),this.contentGroup=c.g().attr({zIndex:1}).add(b),this.scrollGroup=c.g().add(this.contentGroup));this.renderTitle();var v=this.getAllItems();n(v,function(a,c){return(a.options&&a.options.legendIndex||0)-(c.options&&c.options.legendIndex||0)});g.reversed&&v.reverse();this.allItems=v;this.display=k=!!v.length;this.itemHeight=this.totalItemWidth=
|
|
|
+this.maxItemWidth=this.lastLineHeight=0;v.forEach(this.renderItem,this);v.forEach(this.layoutItem,this);v=(this.widthOption||this.offsetWidth)+f;var m=this.lastItemY+this.lastLineHeight+this.titleHeight;m=this.handleOverflow(m);m+=f;d||(this.box=d=c.rect().addClass("highcharts-legend-box").attr({r:g.borderRadius}).add(b),d.isNew=!0);a.styledMode||d.attr({stroke:g.borderColor,"stroke-width":g.borderWidth||0,fill:g.backgroundColor||"none"}).shadow(g.shadow);0<v&&0<m&&(d[d.isNew?"attr":"animate"](d.crisp.call({},
|
|
|
+{x:0,y:0,width:v,height:m},d.strokeWidth())),d.isNew=!1);d[k?"show":"hide"]();a.styledMode&&"none"===b.getStyle("display")&&(v=m=0);this.legendWidth=v;this.legendHeight=m;k&&this.align();this.proximate||this.positionItems();l(this,"afterRender")};c.prototype.align=function(a){void 0===a&&(a=this.chart.spacingBox);var c=this.chart,b=this.options,d=a.y;/(lth|ct|rth)/.test(this.getAlignment())&&0<c.titleOffset[0]?d+=c.titleOffset[0]:/(lbh|cb|rbh)/.test(this.getAlignment())&&0<c.titleOffset[2]&&(d-=c.titleOffset[2]);
|
|
|
+d!==a.y&&(a=k(a,{y:d}));this.group.align(k(b,{width:this.legendWidth,height:this.legendHeight,verticalAlign:this.proximate?"top":b.verticalAlign}),!0,a)};c.prototype.handleOverflow=function(a){var c=this,b=this.chart,g=b.renderer,f=this.options,k=f.y,n=this.padding;k=b.spacingBox.height+("top"===f.verticalAlign?-k:k)-n;var l=f.maxHeight,m,q=this.clipRect,w=f.navigation,u=d(w.animation,!0),h=w.arrowSize||12,e=this.nav,A=this.pages,t,R=this.allItems,I=function(a){"number"===typeof a?q.attr({height:a}):
|
|
|
+q&&(c.clipRect=q.destroy(),c.contentGroup.clip());c.contentGroup.div&&(c.contentGroup.div.style.clip=a?"rect("+n+"px,9999px,"+(n+a)+"px,0)":"auto")},z=function(a){c[a]=g.circle(0,0,1.3*h).translate(h/2,h/2).add(e);b.styledMode||c[a].attr("fill","rgba(0,0,0,0.0001)");return c[a]};"horizontal"!==f.layout||"middle"===f.verticalAlign||f.floating||(k/=2);l&&(k=Math.min(k,l));A.length=0;a&&0<k&&a>k&&!1!==w.enabled?(this.clipHeight=m=Math.max(k-20-this.titleHeight-n,0),this.currentPage=d(this.currentPage,
|
|
|
+1),this.fullHeight=a,R.forEach(function(a,c){var b=a._legendItemPos[1],d=Math.round(a.legendItem.getBBox().height),g=A.length;if(!g||b-A[g-1]>m&&(t||b)!==A[g-1])A.push(t||b),g++;a.pageIx=g-1;t&&(R[c-1].pageIx=g-1);c===R.length-1&&b+d-A[g-1]>m&&b!==t&&(A.push(b),a.pageIx=g);b!==t&&(t=b)}),q||(q=c.clipRect=g.clipRect(0,n,9999,0),c.contentGroup.clip(q)),I(m),e||(this.nav=e=g.g().attr({zIndex:1}).add(this.group),this.up=g.symbol("triangle",0,0,h,h).add(e),z("upTracker").on("click",function(){c.scroll(-1,
|
|
|
+u)}),this.pager=g.text("",15,10).addClass("highcharts-legend-navigation"),b.styledMode||this.pager.css(w.style),this.pager.add(e),this.down=g.symbol("triangle-down",0,0,h,h).add(e),z("downTracker").on("click",function(){c.scroll(1,u)})),c.scroll(0),a=k):e&&(I(),this.nav=e.destroy(),this.scrollGroup.attr({translateY:1}),this.clipHeight=0);return a};c.prototype.scroll=function(a,c){var b=this,f=this.chart,k=this.pages,n=k.length,m=this.currentPage+a;a=this.clipHeight;var v=this.options.navigation,q=
|
|
|
+this.pager,w=this.padding;m>n&&(m=n);0<m&&("undefined"!==typeof c&&C(c,f),this.nav.attr({translateX:w,translateY:a+this.padding+7+this.titleHeight,visibility:"visible"}),[this.up,this.upTracker].forEach(function(a){a.attr({"class":1===m?"highcharts-legend-nav-inactive":"highcharts-legend-nav-active"})}),q.attr({text:m+"/"+n}),[this.down,this.downTracker].forEach(function(a){a.attr({x:18+this.pager.getBBox().width,"class":m===n?"highcharts-legend-nav-inactive":"highcharts-legend-nav-active"})},this),
|
|
|
+f.styledMode||(this.up.attr({fill:1===m?v.inactiveColor:v.activeColor}),this.upTracker.css({cursor:1===m?"default":"pointer"}),this.down.attr({fill:m===n?v.inactiveColor:v.activeColor}),this.downTracker.css({cursor:m===n?"default":"pointer"})),this.scrollOffset=-k[m-1]+this.initialItemY,this.scrollGroup.animate({translateY:this.scrollOffset}),this.currentPage=m,this.positionCheckboxes(),c=E(d(c,f.renderer.globalAnimation,!0)),g(function(){l(b,"afterScroll",{currentPage:m})},c.duration))};c.prototype.setItemEvents=
|
|
|
+function(a,c,b){var d=this,g=d.chart.renderer.boxWrapper,f=a instanceof y,n="highcharts-legend-"+(f?"point":"series")+"-active",v=d.chart.styledMode;(b?[c,a.legendSymbol]:[a.legendGroup]).forEach(function(b){if(b)b.on("mouseover",function(){a.visible&&d.allItems.forEach(function(c){a!==c&&c.setState("inactive",!f)});a.setState("hover");a.visible&&g.addClass(n);v||c.css(d.options.itemHoverStyle)}).on("mouseout",function(){d.chart.styledMode||c.css(k(a.visible?d.itemStyle:d.itemHiddenStyle));d.allItems.forEach(function(c){a!==
|
|
|
+c&&c.setState("",!f)});g.removeClass(n);a.setState()}).on("click",function(c){var b=function(){a.setVisible&&a.setVisible();d.allItems.forEach(function(c){a!==c&&c.setState(a.visible?"inactive":"",!f)})};g.removeClass(n);c={browserEvent:c};a.firePointEvent?a.firePointEvent("legendItemClick",c,b):l(a,"legendItemClick",c,b)})})};c.prototype.createCheckboxForItem=function(a){a.checkbox=m("input",{type:"checkbox",className:"highcharts-legend-checkbox",checked:a.selected,defaultChecked:a.selected},this.options.itemCheckboxStyle,
|
|
|
+this.chart.container);z(a.checkbox,"click",function(c){l(a.series||a,"checkboxClick",{checked:c.target.checked,item:a},function(){a.select()})})};return c}();(/Trident\/7\.0/.test(h.navigator&&h.navigator.userAgent)||e)&&F(c.prototype,"positionItem",function(c,a){var b=this,d=function(){a._legendItemPos&&c.call(b,a)};d();b.bubbleLegend||setTimeout(d)});D.Legend=c;return D.Legend});P(e,"Core/Series/SeriesRegistry.js",[e["Core/Globals.js"],e["Core/Options.js"],e["Core/Series/Point.js"],e["Core/Utilities.js"]],
|
|
|
+function(e,h,D,y){var F=h.defaultOptions,E=y.error,C=y.extendClass,G=y.merge,t;(function(h){function m(f,b){var m=F.plotOptions||{},u=b.defaultOptions;b.prototype.pointClass||(b.prototype.pointClass=D);b.prototype.type=f;u&&(m[f]=u);h.seriesTypes[f]=b}h.seriesTypes=e.seriesTypes;h.getSeries=function(f,b){void 0===b&&(b={});var m=f.options.chart;m=b.type||m.type||m.defaultSeriesType||"";var u=h.seriesTypes[m];h||E(17,!0,f,{missingModuleFor:m});m=new u;"function"===typeof m.init&&m.init(f,b);return m};
|
|
|
+h.registerSeriesType=m;h.seriesType=function(f,b,e,u,l){var A=F.plotOptions||{};b=b||"";A[f]=G(A[b],e);m(f,C(h.seriesTypes[b]||function(){},u));h.seriesTypes[f].prototype.type=f;l&&(h.seriesTypes[f].prototype.pointClass=C(D,l));return h.seriesTypes[f]}})(t||(t={}));e.seriesType=t.seriesType;return t});P(e,"Core/Chart/Chart.js",[e["Core/Animation/AnimationUtilities.js"],e["Core/Axis/Axis.js"],e["Core/FormatUtilities.js"],e["Core/Globals.js"],e["Core/Legend.js"],e["Core/MSPointer.js"],e["Core/Options.js"],
|
|
|
+e["Core/Color/Palette.js"],e["Core/Pointer.js"],e["Core/Series/SeriesRegistry.js"],e["Core/Time.js"],e["Core/Utilities.js"],e["Core/Renderer/HTML/AST.js"]],function(e,h,D,y,F,E,C,G,t,z,m,f,b){var A=e.animate,u=e.animObject,l=e.setAnimation,I=D.numberFormat,k=y.charts,d=y.doc,w=y.win,n=C.defaultOptions,g=C.defaultTime,c=z.seriesTypes,q=f.addEvent,a=f.attr,B=f.cleanRecursively,J=f.createElement,O=f.css,p=f.defined,r=f.discardElement,M=f.erase,v=f.error,N=f.extend,K=f.find,L=f.fireEvent,H=f.getStyle,
|
|
|
+x=f.isArray,Q=f.isFunction,Z=f.isNumber,ea=f.isObject,R=f.isString,S=f.merge,T=f.objectEach,U=f.pick,W=f.pInt,V=f.relativeLength,aa=f.removeEvent,X=f.splat,da=f.syncTimeout,ba=f.uniqueKey,P=y.marginNames,ca=function(){function e(a,c,b){this.series=this.renderTo=this.renderer=this.pointer=this.pointCount=this.plotWidth=this.plotTop=this.plotLeft=this.plotHeight=this.plotBox=this.options=this.numberFormatter=this.margin=this.legend=this.labelCollectors=this.isResizing=this.index=this.container=this.colorCounter=
|
|
|
+this.clipBox=this.chartWidth=this.chartHeight=this.bounds=this.axisOffset=this.axes=void 0;this.sharedClips={};this.yAxis=this.xAxis=this.userOptions=this.titleOffset=this.time=this.symbolCounter=this.spacingBox=this.spacing=void 0;this.getArgs(a,c,b)}e.prototype.getArgs=function(a,c,b){R(a)||a.nodeName?(this.renderTo=a,this.init(c,b)):this.init(a,c)};e.prototype.init=function(a,c){var b=a.plotOptions||{};L(this,"init",{args:arguments},function(){var d=S(n,a),g=d.chart;T(d.plotOptions,function(a,
|
|
|
+c){ea(a)&&(a.tooltip=b[c]&&S(b[c].tooltip)||void 0)});d.tooltip.userOptions=a.chart&&a.chart.forExport&&a.tooltip.userOptions||a.tooltip;this.userOptions=a;var f=g.events;this.margin=[];this.spacing=[];this.bounds={h:{},v:{}};this.labelCollectors=[];this.callback=c;this.isResizing=0;this.options=d;this.axes=[];this.series=[];this.time=a.time&&Object.keys(a.time).length?new m(a.time):y.time;this.numberFormatter=g.numberFormatter||I;this.styledMode=g.styledMode;this.hasCartesianSeries=g.showAxes;var p=
|
|
|
+this;p.index=k.length;k.push(p);y.chartCount++;f&&T(f,function(a,c){Q(a)&&q(p,c,a)});p.xAxis=[];p.yAxis=[];p.pointCount=p.colorCounter=p.symbolCounter=0;L(p,"afterInit");p.firstRender()})};e.prototype.initSeries=function(a){var b=this.options.chart;b=a.type||b.type||b.defaultSeriesType;var d=c[b];d||v(17,!0,this,{missingModuleFor:b});b=new d;"function"===typeof b.init&&b.init(this,a);return b};e.prototype.setSeriesData=function(){this.getSeriesOrderByLinks().forEach(function(a){a.points||a.data||
|
|
|
+!a.enabledDataSorting||a.setData(a.options.data,!1)})};e.prototype.getSeriesOrderByLinks=function(){return this.series.concat().sort(function(a,c){return a.linkedSeries.length||c.linkedSeries.length?c.linkedSeries.length-a.linkedSeries.length:0})};e.prototype.orderSeries=function(a){var c=this.series;for(a=a||0;a<c.length;a++)c[a]&&(c[a].index=a,c[a].name=c[a].getName())};e.prototype.isInsidePlot=function(a,c,b){void 0===b&&(b={});var d=this.inverted,g=this.plotBox,f=this.plotLeft,k=this.plotTop,
|
|
|
+n=this.scrollablePlotBox,p=this.scrollingContainer;p=void 0===p?{scrollLeft:0,scrollTop:0}:p;var l=p.scrollLeft;p=p.scrollTop;var v=b.series;g=b.visiblePlotOnly&&n||g;n=b.inverted?c:a;c=b.inverted?a:c;a={x:n,y:c,isInsidePlot:!0};if(!b.ignoreX){var r=v&&(d?v.yAxis:v.xAxis)||{pos:f,len:Infinity};n=b.paneCoordinates?r.pos+n:f+n;n>=Math.max(l+f,r.pos)&&n<=Math.min(l+f+g.width,r.pos+r.len)||(a.isInsidePlot=!1)}!b.ignoreY&&a.isInsidePlot&&(d=v&&(d?v.xAxis:v.yAxis)||{pos:k,len:Infinity},b=b.paneCoordinates?
|
|
|
+d.pos+c:k+c,b>=Math.max(p+k,d.pos)&&b<=Math.min(p+k+g.height,d.pos+d.len)||(a.isInsidePlot=!1));L(this,"afterIsInsidePlot",a);return a.isInsidePlot};e.prototype.redraw=function(a){L(this,"beforeRedraw");var c=this.hasCartesianSeries?this.axes:this.colorAxis||[],b=this.series,d=this.pointer,g=this.legend,f=this.userOptions.legend,k=this.isDirtyLegend,n=this.isDirtyBox,p=this.renderer,v=p.isHidden(),r=[];this.setResponsive&&this.setResponsive(!1);l(this.hasRendered?a:!1,this);v&&this.temporaryDisplay();
|
|
|
+this.layOutTitles();for(a=b.length;a--;){var m=b[a];if(m.options.stacking||m.options.centerInCategory){var q=!0;if(m.isDirty){var w=!0;break}}}if(w)for(a=b.length;a--;)m=b[a],m.options.stacking&&(m.isDirty=!0);b.forEach(function(a){a.isDirty&&("point"===a.options.legendType?("function"===typeof a.updateTotals&&a.updateTotals(),k=!0):f&&(f.labelFormatter||f.labelFormat)&&(k=!0));a.isDirtyData&&L(a,"updatedData")});k&&g&&g.options.enabled&&(g.render(),this.isDirtyLegend=!1);q&&this.getStacks();c.forEach(function(a){a.updateNames();
|
|
|
+a.setScale()});this.getMargins();c.forEach(function(a){a.isDirty&&(n=!0)});c.forEach(function(a){var c=a.min+","+a.max;a.extKey!==c&&(a.extKey=c,r.push(function(){L(a,"afterSetExtremes",N(a.eventArgs,a.getExtremes()));delete a.eventArgs}));(n||q)&&a.redraw()});n&&this.drawChartBox();L(this,"predraw");b.forEach(function(a){(n||a.isDirty)&&a.visible&&a.redraw();a.isDirtyData=!1});d&&d.reset(!0);p.draw();L(this,"redraw");L(this,"render");v&&this.temporaryDisplay(!0);r.forEach(function(a){a.call()})};
|
|
|
+e.prototype.get=function(a){function c(c){return c.id===a||c.options&&c.options.id===a}var b=this.series,d;var g=K(this.axes,c)||K(this.series,c);for(d=0;!g&&d<b.length;d++)g=K(b[d].points||[],c);return g};e.prototype.getAxes=function(){var a=this,c=this.options,b=c.xAxis=X(c.xAxis||{});c=c.yAxis=X(c.yAxis||{});L(this,"getAxes");b.forEach(function(a,c){a.index=c;a.isX=!0});c.forEach(function(a,c){a.index=c});b.concat(c).forEach(function(c){new h(a,c)});L(this,"afterGetAxes")};e.prototype.getSelectedPoints=
|
|
|
+function(){var a=[];this.series.forEach(function(c){a=a.concat(c.getPointsCollection().filter(function(a){return U(a.selectedStaging,a.selected)}))});return a};e.prototype.getSelectedSeries=function(){return this.series.filter(function(a){return a.selected})};e.prototype.setTitle=function(a,c,b){this.applyDescription("title",a);this.applyDescription("subtitle",c);this.applyDescription("caption",void 0);this.layOutTitles(b)};e.prototype.applyDescription=function(a,c){var b=this,d="title"===a?{color:G.neutralColor80,
|
|
|
+fontSize:this.options.isStock?"16px":"18px"}:{color:G.neutralColor60};d=this.options[a]=S(!this.styledMode&&{style:d},this.options[a],c);var g=this[a];g&&c&&(this[a]=g=g.destroy());d&&!g&&(g=this.renderer.text(d.text,0,0,d.useHTML).attr({align:d.align,"class":"highcharts-"+a,zIndex:d.zIndex||4}).add(),g.update=function(c){b[{title:"setTitle",subtitle:"setSubtitle",caption:"setCaption"}[a]](c)},this.styledMode||g.css(d.style),this[a]=g)};e.prototype.layOutTitles=function(a){var c=[0,0,0],b=this.renderer,
|
|
|
+d=this.spacingBox;["title","subtitle","caption"].forEach(function(a){var g=this[a],f=this.options[a],k=f.verticalAlign||"top";a="title"===a?-3:"top"===k?c[0]+2:0;if(g){if(!this.styledMode)var n=f.style.fontSize;n=b.fontMetrics(n,g).b;g.css({width:(f.width||d.width+(f.widthAdjust||0))+"px"});var p=Math.round(g.getBBox(f.useHTML).height);g.align(N({y:"bottom"===k?n:a+n,height:p},f),!1,"spacingBox");f.floating||("top"===k?c[0]=Math.ceil(c[0]+p):"bottom"===k&&(c[2]=Math.ceil(c[2]+p)))}},this);c[0]&&"top"===
|
|
|
+(this.options.title.verticalAlign||"top")&&(c[0]+=this.options.title.margin);c[2]&&"bottom"===this.options.caption.verticalAlign&&(c[2]+=this.options.caption.margin);var g=!this.titleOffset||this.titleOffset.join(",")!==c.join(",");this.titleOffset=c;L(this,"afterLayOutTitles");!this.isDirtyBox&&g&&(this.isDirtyBox=this.isDirtyLegend=g,this.hasRendered&&U(a,!0)&&this.isDirtyBox&&this.redraw())};e.prototype.getChartSize=function(){var a=this.options.chart,c=a.width;a=a.height;var b=this.renderTo;p(c)||
|
|
|
+(this.containerWidth=H(b,"width"));p(a)||(this.containerHeight=H(b,"height"));this.chartWidth=Math.max(0,c||this.containerWidth||600);this.chartHeight=Math.max(0,V(a,this.chartWidth)||(1<this.containerHeight?this.containerHeight:400))};e.prototype.temporaryDisplay=function(a){var c=this.renderTo;if(a)for(;c&&c.style;)c.hcOrigStyle&&(O(c,c.hcOrigStyle),delete c.hcOrigStyle),c.hcOrigDetached&&(d.body.removeChild(c),c.hcOrigDetached=!1),c=c.parentNode;else for(;c&&c.style;){d.body.contains(c)||c.parentNode||
|
|
|
+(c.hcOrigDetached=!0,d.body.appendChild(c));if("none"===H(c,"display",!1)||c.hcOricDetached)c.hcOrigStyle={display:c.style.display,height:c.style.height,overflow:c.style.overflow},a={display:"block",overflow:"hidden"},c!==this.renderTo&&(a.height=0),O(c,a),c.offsetWidth||c.style.setProperty("display","block","important");c=c.parentNode;if(c===d.body)break}};e.prototype.setClassName=function(a){this.container.className="highcharts-container "+(a||"")};e.prototype.getContainer=function(){var c=this.options,
|
|
|
+b=c.chart;var g=this.renderTo;var f=ba(),n,p;g||(this.renderTo=g=b.renderTo);R(g)&&(this.renderTo=g=d.getElementById(g));g||v(13,!0,this);var r=W(a(g,"data-highcharts-chart"));Z(r)&&k[r]&&k[r].hasRendered&&k[r].destroy();a(g,"data-highcharts-chart",this.index);g.innerHTML="";b.skipClone||g.offsetWidth||this.temporaryDisplay();this.getChartSize();r=this.chartWidth;var m=this.chartHeight;O(g,{overflow:"hidden"});this.styledMode||(n=N({position:"relative",overflow:"hidden",width:r+"px",height:m+"px",
|
|
|
+textAlign:"left",lineHeight:"normal",zIndex:0,"-webkit-tap-highlight-color":"rgba(0,0,0,0)",userSelect:"none","touch-action":"manipulation",outline:"none"},b.style||{}));this.container=g=J("div",{id:f},n,g);this._cursor=g.style.cursor;this.renderer=new (y[b.renderer]||y.Renderer)(g,r,m,null,b.forExport,c.exporting&&c.exporting.allowHTML,this.styledMode);l(void 0,this);this.setClassName(b.className);if(this.styledMode)for(p in c.defs)this.renderer.definition(c.defs[p]);else this.renderer.setStyle(b.style);
|
|
|
+this.renderer.chartIndex=this.index;L(this,"afterGetContainer")};e.prototype.getMargins=function(a){var c=this.spacing,b=this.margin,d=this.titleOffset;this.resetMargins();d[0]&&!p(b[0])&&(this.plotTop=Math.max(this.plotTop,d[0]+c[0]));d[2]&&!p(b[2])&&(this.marginBottom=Math.max(this.marginBottom,d[2]+c[2]));this.legend&&this.legend.display&&this.legend.adjustMargins(b,c);L(this,"getMargins");a||this.getAxisMargins()};e.prototype.getAxisMargins=function(){var a=this,c=a.axisOffset=[0,0,0,0],b=a.colorAxis,
|
|
|
+d=a.margin,g=function(a){a.forEach(function(a){a.visible&&a.getOffset()})};a.hasCartesianSeries?g(a.axes):b&&b.length&&g(b);P.forEach(function(b,g){p(d[g])||(a[b]+=c[g])});a.setChartSize()};e.prototype.reflow=function(a){var c=this,b=c.options.chart,g=c.renderTo,k=p(b.width)&&p(b.height),n=b.width||H(g,"width");b=b.height||H(g,"height");g=a?a.target:w;delete c.pointer.chartPosition;if(!k&&!c.isPrinting&&n&&b&&(g===w||g===d)){if(n!==c.containerWidth||b!==c.containerHeight)f.clearTimeout(c.reflowTimeout),
|
|
|
+c.reflowTimeout=da(function(){c.container&&c.setSize(void 0,void 0,!1)},a?100:0);c.containerWidth=n;c.containerHeight=b}};e.prototype.setReflow=function(a){var c=this;!1===a||this.unbindReflow?!1===a&&this.unbindReflow&&(this.unbindReflow=this.unbindReflow()):(this.unbindReflow=q(w,"resize",function(a){c.options&&c.reflow(a)}),q(this,"destroy",this.unbindReflow))};e.prototype.setSize=function(a,c,b){var d=this,g=d.renderer;d.isResizing+=1;l(b,d);b=g.globalAnimation;d.oldChartHeight=d.chartHeight;
|
|
|
+d.oldChartWidth=d.chartWidth;"undefined"!==typeof a&&(d.options.chart.width=a);"undefined"!==typeof c&&(d.options.chart.height=c);d.getChartSize();d.styledMode||(b?A:O)(d.container,{width:d.chartWidth+"px",height:d.chartHeight+"px"},b);d.setChartSize(!0);g.setSize(d.chartWidth,d.chartHeight,b);d.axes.forEach(function(a){a.isDirty=!0;a.setScale()});d.isDirtyLegend=!0;d.isDirtyBox=!0;d.layOutTitles();d.getMargins();d.redraw(b);d.oldChartHeight=null;L(d,"resize");da(function(){d&&L(d,"endResize",null,
|
|
|
+function(){--d.isResizing})},u(b).duration)};e.prototype.setChartSize=function(a){var c=this.inverted,b=this.renderer,d=this.chartWidth,g=this.chartHeight,f=this.options.chart,k=this.spacing,n=this.clipOffset,p,l,v,r;this.plotLeft=p=Math.round(this.plotLeft);this.plotTop=l=Math.round(this.plotTop);this.plotWidth=v=Math.max(0,Math.round(d-p-this.marginRight));this.plotHeight=r=Math.max(0,Math.round(g-l-this.marginBottom));this.plotSizeX=c?r:v;this.plotSizeY=c?v:r;this.plotBorderWidth=f.plotBorderWidth||
|
|
|
+0;this.spacingBox=b.spacingBox={x:k[3],y:k[0],width:d-k[3]-k[1],height:g-k[0]-k[2]};this.plotBox=b.plotBox={x:p,y:l,width:v,height:r};g=2*Math.floor(this.plotBorderWidth/2);c=Math.ceil(Math.max(g,n[3])/2);d=Math.ceil(Math.max(g,n[0])/2);this.clipBox={x:c,y:d,width:Math.floor(this.plotSizeX-Math.max(g,n[1])/2-c),height:Math.max(0,Math.floor(this.plotSizeY-Math.max(g,n[2])/2-d))};a||(this.axes.forEach(function(a){a.setAxisSize();a.setAxisTranslation()}),b.alignElements());L(this,"afterSetChartSize",
|
|
|
+{skipAxes:a})};e.prototype.resetMargins=function(){L(this,"resetMargins");var a=this,c=a.options.chart;["margin","spacing"].forEach(function(b){var d=c[b],g=ea(d)?d:[d,d,d,d];["Top","Right","Bottom","Left"].forEach(function(d,f){a[b][f]=U(c[b+d],g[f])})});P.forEach(function(c,b){a[c]=U(a.margin[b],a.spacing[b])});a.axisOffset=[0,0,0,0];a.clipOffset=[0,0,0,0]};e.prototype.drawChartBox=function(){var a=this.options.chart,c=this.renderer,b=this.chartWidth,d=this.chartHeight,g=this.chartBackground,f=
|
|
|
+this.plotBackground,k=this.plotBorder,n=this.styledMode,p=this.plotBGImage,l=a.backgroundColor,v=a.plotBackgroundColor,r=a.plotBackgroundImage,m,q=this.plotLeft,w=this.plotTop,u=this.plotWidth,h=this.plotHeight,e=this.plotBox,N=this.clipRect,B=this.clipBox,x="animate";g||(this.chartBackground=g=c.rect().addClass("highcharts-background").add(),x="attr");if(n)var M=m=g.strokeWidth();else{M=a.borderWidth||0;m=M+(a.shadow?8:0);l={fill:l||"none"};if(M||g["stroke-width"])l.stroke=a.borderColor,l["stroke-width"]=
|
|
|
+M;g.attr(l).shadow(a.shadow)}g[x]({x:m/2,y:m/2,width:b-m-M%2,height:d-m-M%2,r:a.borderRadius});x="animate";f||(x="attr",this.plotBackground=f=c.rect().addClass("highcharts-plot-background").add());f[x](e);n||(f.attr({fill:v||"none"}).shadow(a.plotShadow),r&&(p?(r!==p.attr("href")&&p.attr("href",r),p.animate(e)):this.plotBGImage=c.image(r,q,w,u,h).add()));N?N.animate({width:B.width,height:B.height}):this.clipRect=c.clipRect(B);x="animate";k||(x="attr",this.plotBorder=k=c.rect().addClass("highcharts-plot-border").attr({zIndex:1}).add());
|
|
|
+n||k.attr({stroke:a.plotBorderColor,"stroke-width":a.plotBorderWidth||0,fill:"none"});k[x](k.crisp({x:q,y:w,width:u,height:h},-k.strokeWidth()));this.isDirtyBox=!1;L(this,"afterDrawChartBox")};e.prototype.propFromSeries=function(){var a=this,b=a.options.chart,d,g=a.options.series,f,k;["inverted","angular","polar"].forEach(function(n){d=c[b.type||b.defaultSeriesType];k=b[n]||d&&d.prototype[n];for(f=g&&g.length;!k&&f--;)(d=c[g[f].type])&&d.prototype[n]&&(k=!0);a[n]=k})};e.prototype.linkSeries=function(){var a=
|
|
|
+this,c=a.series;c.forEach(function(a){a.linkedSeries.length=0});c.forEach(function(c){var b=c.options.linkedTo;R(b)&&(b=":previous"===b?a.series[c.index-1]:a.get(b))&&b.linkedParent!==c&&(b.linkedSeries.push(c),c.linkedParent=b,b.enabledDataSorting&&c.setDataSortingOptions(),c.visible=U(c.options.visible,b.options.visible,c.visible))});L(this,"afterLinkSeries")};e.prototype.renderSeries=function(){this.series.forEach(function(a){a.translate();a.render()})};e.prototype.renderLabels=function(){var a=
|
|
|
+this,c=a.options.labels;c.items&&c.items.forEach(function(b){var d=N(c.style,b.style),g=W(d.left)+a.plotLeft,f=W(d.top)+a.plotTop+12;delete d.left;delete d.top;a.renderer.text(b.html,g,f).attr({zIndex:2}).css(d).add()})};e.prototype.render=function(){var a=this.axes,c=this.colorAxis,b=this.renderer,d=this.options,g=0,f=function(a){a.forEach(function(a){a.visible&&a.render()})};this.setTitle();this.legend=new F(this,d.legend);this.getStacks&&this.getStacks();this.getMargins(!0);this.setChartSize();
|
|
|
+d=this.plotWidth;a.some(function(a){if(a.horiz&&a.visible&&a.options.labels.enabled&&a.series.length)return g=21,!0});var k=this.plotHeight=Math.max(this.plotHeight-g,0);a.forEach(function(a){a.setScale()});this.getAxisMargins();var n=1.1<d/this.plotWidth;var p=1.05<k/this.plotHeight;if(n||p)a.forEach(function(a){(a.horiz&&n||!a.horiz&&p)&&a.setTickInterval(!0)}),this.getMargins();this.drawChartBox();this.hasCartesianSeries?f(a):c&&c.length&&f(c);this.seriesGroup||(this.seriesGroup=b.g("series-group").attr({zIndex:3}).add());
|
|
|
+this.renderSeries();this.renderLabels();this.addCredits();this.setResponsive&&this.setResponsive();this.hasRendered=!0};e.prototype.addCredits=function(a){var c=this,b=S(!0,this.options.credits,a);b.enabled&&!this.credits&&(this.credits=this.renderer.text(b.text+(this.mapCredits||""),0,0).addClass("highcharts-credits").on("click",function(){b.href&&(w.location.href=b.href)}).attr({align:b.position.align,zIndex:8}),c.styledMode||this.credits.css(b.style),this.credits.add().align(b.position),this.credits.update=
|
|
|
+function(a){c.credits=c.credits.destroy();c.addCredits(a)})};e.prototype.destroy=function(){var a=this,c=a.axes,b=a.series,d=a.container,g,f=d&&d.parentNode;L(a,"destroy");a.renderer.forExport?M(k,a):k[a.index]=void 0;y.chartCount--;a.renderTo.removeAttribute("data-highcharts-chart");aa(a);for(g=c.length;g--;)c[g]=c[g].destroy();this.scroller&&this.scroller.destroy&&this.scroller.destroy();for(g=b.length;g--;)b[g]=b[g].destroy();"title subtitle chartBackground plotBackground plotBGImage plotBorder seriesGroup clipRect credits pointer rangeSelector legend resetZoomButton tooltip renderer".split(" ").forEach(function(c){var b=
|
|
|
+a[c];b&&b.destroy&&(a[c]=b.destroy())});d&&(d.innerHTML="",aa(d),f&&r(d));T(a,function(c,b){delete a[b]})};e.prototype.firstRender=function(){var a=this,c=a.options;if(!a.isReadyToRender||a.isReadyToRender()){a.getContainer();a.resetMargins();a.setChartSize();a.propFromSeries();a.getAxes();(x(c.series)?c.series:[]).forEach(function(c){a.initSeries(c)});a.linkSeries();a.setSeriesData();L(a,"beforeRender");t&&(a.pointer=y.hasTouch||!w.PointerEvent&&!w.MSPointerEvent?new t(a,c):new E(a,c));a.render();
|
|
|
+a.pointer.getChartPosition();if(!a.renderer.imgCount&&!a.hasLoaded)a.onload();a.temporaryDisplay(!0)}};e.prototype.onload=function(){this.callbacks.concat([this.callback]).forEach(function(a){a&&"undefined"!==typeof this.index&&a.apply(this,[this])},this);L(this,"load");L(this,"render");p(this.index)&&this.setReflow(this.options.chart.reflow);this.hasLoaded=!0};e.prototype.addSeries=function(a,c,b){var d,g=this;a&&(c=U(c,!0),L(g,"addSeries",{options:a},function(){d=g.initSeries(a);g.isDirtyLegend=
|
|
|
+!0;g.linkSeries();d.enabledDataSorting&&d.setData(a.data,!1);L(g,"afterAddSeries",{series:d});c&&g.redraw(b)}));return d};e.prototype.addAxis=function(a,c,b,d){return this.createAxis(c?"xAxis":"yAxis",{axis:a,redraw:b,animation:d})};e.prototype.addColorAxis=function(a,c,b){return this.createAxis("colorAxis",{axis:a,redraw:c,animation:b})};e.prototype.createAxis=function(a,c){var b="colorAxis"===a,d=c.redraw,g=c.animation;a=S(c.axis,{index:this[a].length,isX:"xAxis"===a});a=b?new y.ColorAxis(this,
|
|
|
+a):new h(this,a);b&&(this.isDirtyLegend=!0,this.axes.forEach(function(a){a.series=[]}),this.series.forEach(function(a){a.bindAxes();a.isDirtyData=!0}));U(d,!0)&&this.redraw(g);return a};e.prototype.showLoading=function(a){var c=this,d=c.options,g=c.loadingDiv,f=c.loadingSpan,k=d.loading,n=function(){g&&O(g,{left:c.plotLeft+"px",top:c.plotTop+"px",width:c.plotWidth+"px",height:c.plotHeight+"px"})};g||(c.loadingDiv=g=J("div",{className:"highcharts-loading highcharts-loading-hidden"},null,c.container));
|
|
|
+f||(c.loadingSpan=f=J("span",{className:"highcharts-loading-inner"},null,g),q(c,"redraw",n));g.className="highcharts-loading";b.setElementHTML(f,U(a,d.lang.loading,""));c.styledMode||(O(g,N(k.style,{zIndex:10})),O(f,k.labelStyle),c.loadingShown||(O(g,{opacity:0,display:""}),A(g,{opacity:k.style.opacity||.5},{duration:k.showDuration||0})));c.loadingShown=!0;n()};e.prototype.hideLoading=function(){var a=this.options,c=this.loadingDiv;c&&(c.className="highcharts-loading highcharts-loading-hidden",this.styledMode||
|
|
|
+A(c,{opacity:0},{duration:a.loading.hideDuration||100,complete:function(){O(c,{display:"none"})}}));this.loadingShown=!1};e.prototype.update=function(a,c,b,d){var f=this,k={credits:"addCredits",title:"setTitle",subtitle:"setSubtitle",caption:"setCaption"},n,l,v,r=a.isResponsiveOptions,q=[];L(f,"update",{options:a});r||f.setResponsive(!1,!0);a=B(a,f.options);f.userOptions=S(f.userOptions,a);if(n=a.chart){S(!0,f.options.chart,n);"className"in n&&f.setClassName(n.className);"reflow"in n&&f.setReflow(n.reflow);
|
|
|
+if("inverted"in n||"polar"in n||"type"in n){f.propFromSeries();var w=!0}"alignTicks"in n&&(w=!0);T(n,function(a,c){-1!==f.propsRequireUpdateSeries.indexOf("chart."+c)&&(l=!0);-1!==f.propsRequireDirtyBox.indexOf(c)&&(f.isDirtyBox=!0);-1!==f.propsRequireReflow.indexOf(c)&&(r?f.isDirtyBox=!0:v=!0)});!f.styledMode&&"style"in n&&f.renderer.setStyle(n.style)}!f.styledMode&&a.colors&&(this.options.colors=a.colors);a.time&&(this.time===g&&(this.time=new m(a.time)),S(!0,f.options.time,a.time));T(a,function(c,
|
|
|
+b){if(f[b]&&"function"===typeof f[b].update)f[b].update(c,!1);else if("function"===typeof f[k[b]])f[k[b]](c);else"colors"!==b&&-1===f.collectionsWithUpdate.indexOf(b)&&S(!0,f.options[b],a[b]);"chart"!==b&&-1!==f.propsRequireUpdateSeries.indexOf(b)&&(l=!0)});this.collectionsWithUpdate.forEach(function(c){if(a[c]){var d=[];f[c].forEach(function(a,c){a.options.isInternal||d.push(U(a.options.index,c))});X(a[c]).forEach(function(a,g){var k=p(a.id),n;k&&(n=f.get(a.id));!n&&f[c]&&(n=f[c][d?d[g]:g])&&k&&
|
|
|
+p(n.options.id)&&(n=void 0);n&&n.coll===c&&(n.update(a,!1),b&&(n.touched=!0));!n&&b&&f.collectionsWithInit[c]&&(f.collectionsWithInit[c][0].apply(f,[a].concat(f.collectionsWithInit[c][1]||[]).concat([!1])).touched=!0)});b&&f[c].forEach(function(a){a.touched||a.options.isInternal?delete a.touched:q.push(a)})}});q.forEach(function(a){a.chart&&a.remove(!1)});w&&f.axes.forEach(function(a){a.update({},!1)});l&&f.getSeriesOrderByLinks().forEach(function(a){a.chart&&a.update({},!1)},this);w=n&&n.width;n=
|
|
|
+n&&n.height;R(n)&&(n=V(n,w||f.chartWidth));v||Z(w)&&w!==f.chartWidth||Z(n)&&n!==f.chartHeight?f.setSize(w,n,d):U(c,!0)&&f.redraw(d);L(f,"afterUpdate",{options:a,redraw:c,animation:d})};e.prototype.setSubtitle=function(a,c){this.applyDescription("subtitle",a);this.layOutTitles(c)};e.prototype.setCaption=function(a,c){this.applyDescription("caption",a);this.layOutTitles(c)};e.prototype.showResetZoom=function(){function a(){c.zoomOut()}var c=this,b=n.lang,d=c.options.chart.resetZoomButton,g=d.theme,
|
|
|
+f=g.states,k="chart"===d.relativeTo||"spacingBox"===d.relativeTo?null:"scrollablePlotBox";L(this,"beforeShowResetZoom",null,function(){c.resetZoomButton=c.renderer.button(b.resetZoom,null,null,a,g,f&&f.hover).attr({align:d.position.align,title:b.resetZoomTitle}).addClass("highcharts-reset-zoom").add().align(d.position,!1,k)});L(this,"afterShowResetZoom")};e.prototype.zoomOut=function(){L(this,"selection",{resetSelection:!0},this.zoom)};e.prototype.zoom=function(a){var c=this,b,d=c.pointer,g=!1,f=
|
|
|
+c.inverted?d.mouseDownX:d.mouseDownY;!a||a.resetSelection?(c.axes.forEach(function(a){b=a.zoom()}),d.initiated=!1):a.xAxis.concat(a.yAxis).forEach(function(a){var k=a.axis,n=c.inverted?k.left:k.top,l=c.inverted?n+k.width:n+k.height,v=k.isXAxis,r=!1;if(!v&&f>=n&&f<=l||v||!p(f))r=!0;d[v?"zoomX":"zoomY"]&&r&&(b=k.zoom(a.min,a.max),k.displayBtn&&(g=!0))});var k=c.resetZoomButton;g&&!k?c.showResetZoom():!g&&ea(k)&&(c.resetZoomButton=k.destroy());b&&c.redraw(U(c.options.chart.animation,a&&a.animation,100>
|
|
|
+c.pointCount))};e.prototype.pan=function(a,c){var b=this,d=b.hoverPoints,g=b.options.chart,f=b.options.mapNavigation&&b.options.mapNavigation.enabled,k;c="object"===typeof c?c:{enabled:c,type:"x"};g&&g.panning&&(g.panning=c);var n=c.type;L(this,"pan",{originalEvent:a},function(){d&&d.forEach(function(a){a.setState()});var c=[1];"xy"===n?c=[1,0]:"y"===n&&(c=[0]);c.forEach(function(c){var d=b[c?"xAxis":"yAxis"][0],g=d.horiz,p=a[g?"chartX":"chartY"];g=g?"mouseDownX":"mouseDownY";var l=b[g],v=(d.pointRange||
|
|
|
+0)/2,r=d.reversed&&!b.inverted||!d.reversed&&b.inverted?-1:1,m=d.getExtremes(),q=d.toValue(l-p,!0)+v*r;r=d.toValue(l+d.len-p,!0)-v*r;var w=r<q;l=w?r:q;q=w?q:r;r=d.hasVerticalPanning();var u=d.panningState;!r||c||u&&!u.isDirty||d.series.forEach(function(a){var c=a.getProcessedData(!0);c=a.getExtremes(c.yData,!0);u||(u={startMin:Number.MAX_VALUE,startMax:-Number.MAX_VALUE});Z(c.dataMin)&&Z(c.dataMax)&&(u.startMin=Math.min(U(a.options.threshold,Infinity),c.dataMin,u.startMin),u.startMax=Math.max(U(a.options.threshold,
|
|
|
+-Infinity),c.dataMax,u.startMax))});c=Math.min(U(u&&u.startMin,m.dataMin),v?m.min:d.toValue(d.toPixels(m.min)-d.minPixelPadding));v=Math.max(U(u&&u.startMax,m.dataMax),v?m.max:d.toValue(d.toPixels(m.max)+d.minPixelPadding));d.panningState=u;d.isOrdinal||(r=c-l,0<r&&(q+=r,l=c),r=q-v,0<r&&(q=v,l-=r),d.series.length&&l!==m.min&&q!==m.max&&l>=c&&q<=v&&(d.setExtremes(l,q,!1,!1,{trigger:"pan"}),b.resetZoomButton||f||l===c||q===v||!n.match("y")||(b.showResetZoom(),d.displayBtn=!1),k=!0),b[g]=p)});k&&b.redraw(!1);
|
|
|
+O(b.container,{cursor:"move"})})};return e}();N(ca.prototype,{callbacks:[],collectionsWithInit:{xAxis:[ca.prototype.addAxis,[!0]],yAxis:[ca.prototype.addAxis,[!1]],series:[ca.prototype.addSeries]},collectionsWithUpdate:["xAxis","yAxis","zAxis","series"],propsRequireDirtyBox:"backgroundColor borderColor borderWidth borderRadius plotBackgroundColor plotBackgroundImage plotBorderColor plotBorderWidth plotShadow shadow".split(" "),propsRequireReflow:"margin marginTop marginRight marginBottom marginLeft spacing spacingTop spacingRight spacingBottom spacingLeft".split(" "),
|
|
|
+propsRequireUpdateSeries:"chart.inverted chart.polar chart.ignoreHiddenSeries chart.type colors plotOptions time tooltip".split(" ")});y.chart=function(a,c,b){return new ca(a,c,b)};y.Chart=ca;"";return ca});P(e,"Mixins/LegendSymbol.js",[e["Core/Globals.js"],e["Core/Utilities.js"]],function(e,h){var D=h.merge,y=h.pick;return e.LegendSymbolMixin={drawRectangle:function(h,e){var C=h.symbolHeight,G=h.options.squareSymbol;e.legendSymbol=this.chart.renderer.rect(G?(h.symbolWidth-C)/2:0,h.baseline-C+1,G?
|
|
|
+C:h.symbolWidth,C,y(h.options.symbolRadius,C/2)).addClass("highcharts-point").attr({zIndex:3}).add(e.legendGroup)},drawLineMarker:function(h){var e=this.options,C=e.marker,G=h.symbolWidth,t=h.symbolHeight,z=t/2,m=this.chart.renderer,f=this.legendGroup;h=h.baseline-Math.round(.3*h.fontMetrics.b);var b={};this.chart.styledMode||(b={"stroke-width":e.lineWidth||0},e.dashStyle&&(b.dashstyle=e.dashStyle));this.legendLine=m.path([["M",0,h],["L",G,h]]).addClass("highcharts-graph").attr(b).add(f);C&&!1!==
|
|
|
+C.enabled&&G&&(e=Math.min(y(C.radius,z),z),0===this.symbol.indexOf("url")&&(C=D(C,{width:t,height:t}),e=0),this.legendSymbol=C=m.symbol(this.symbol,G/2-e,h-e,2*e,2*e,C).addClass("highcharts-point").add(f),C.isMarker=!0)}}});P(e,"Core/Series/Series.js",[e["Core/Animation/AnimationUtilities.js"],e["Core/Globals.js"],e["Mixins/LegendSymbol.js"],e["Core/Options.js"],e["Core/Color/Palette.js"],e["Core/Series/Point.js"],e["Core/Series/SeriesRegistry.js"],e["Core/Renderer/SVG/SVGElement.js"],e["Core/Utilities.js"]],
|
|
|
+function(e,h,D,y,F,E,C,G,t){var z=e.animObject,m=e.setAnimation,f=h.hasTouch,b=h.svg,A=h.win,u=y.defaultOptions,l=C.seriesTypes,I=t.addEvent,k=t.arrayMax,d=t.arrayMin,w=t.clamp,n=t.cleanRecursively,g=t.correctFloat,c=t.defined,q=t.erase,a=t.error,B=t.extend,J=t.find,O=t.fireEvent,p=t.getNestedProperty,r=t.isArray,M=t.isFunction,v=t.isNumber,N=t.isString,K=t.merge,L=t.objectEach,H=t.pick,x=t.removeEvent,Q=t.splat,Z=t.syncTimeout;e=function(){function e(){this.zones=this.yAxis=this.xAxis=this.userOptions=
|
|
|
+this.tooltipOptions=this.processedYData=this.processedXData=this.points=this.options=this.linkedSeries=this.index=this.eventsToUnbind=this.eventOptions=this.data=this.chart=this._i=void 0}e.prototype.init=function(a,c){O(this,"init",{options:c});var b=this,d=a.series,g;this.eventOptions=this.eventOptions||{};this.eventsToUnbind=[];b.chart=a;b.options=b.setOptions(c);var f=b.options;b.linkedSeries=[];b.bindAxes();B(b,{name:f.name,state:"",visible:!1!==f.visible,selected:!0===f.selected});c=f.events;
|
|
|
+L(c,function(a,c){M(a)&&b.eventOptions[c]!==a&&(M(b.eventOptions[c])&&x(b,c,b.eventOptions[c]),b.eventOptions[c]=a,I(b,c,a))});if(c&&c.click||f.point&&f.point.events&&f.point.events.click||f.allowPointSelect)a.runTrackerClick=!0;b.getColor();b.getSymbol();b.parallelArrays.forEach(function(a){b[a+"Data"]||(b[a+"Data"]=[])});b.isCartesian&&(a.hasCartesianSeries=!0);d.length&&(g=d[d.length-1]);b._i=H(g&&g._i,-1)+1;b.opacity=b.options.opacity;a.orderSeries(this.insert(d));f.dataSorting&&f.dataSorting.enabled?
|
|
|
+b.setDataSortingOptions():b.points||b.data||b.setData(f.data,!1);O(this,"afterInit")};e.prototype.is=function(a){return l[a]&&this instanceof l[a]};e.prototype.insert=function(a){var c=this.options.index,b;if(v(c)){for(b=a.length;b--;)if(c>=H(a[b].options.index,a[b]._i)){a.splice(b+1,0,this);break}-1===b&&a.unshift(this);b+=1}else a.push(this);return H(b,a.length-1)};e.prototype.bindAxes=function(){var c=this,b=c.options,d=c.chart,g;O(this,"bindAxes",null,function(){(c.axisTypes||[]).forEach(function(f){var k=
|
|
|
+0;d[f].forEach(function(a){g=a.options;if(b[f]===k&&!g.isInternal||"undefined"!==typeof b[f]&&b[f]===g.id||"undefined"===typeof b[f]&&0===g.index)c.insert(a.series),c[f]=a,a.isDirty=!0;g.isInternal||k++});c[f]||c.optionalAxis===f||a(18,!0,d)})});O(this,"afterBindAxes")};e.prototype.updateParallelArrays=function(a,c){var b=a.series,d=arguments,g=v(c)?function(d){var g="y"===d&&b.toYData?b.toYData(a):a[d];b[d+"Data"][c]=g}:function(a){Array.prototype[c].apply(b[a+"Data"],Array.prototype.slice.call(d,
|
|
|
+2))};b.parallelArrays.forEach(g)};e.prototype.hasData=function(){return this.visible&&"undefined"!==typeof this.dataMax&&"undefined"!==typeof this.dataMin||this.visible&&this.yData&&0<this.yData.length};e.prototype.autoIncrement=function(){var a=this.options,c=this.xIncrement,b,d=a.pointIntervalUnit,g=this.chart.time;c=H(c,a.pointStart,0);this.pointInterval=b=H(this.pointInterval,a.pointInterval,1);d&&(a=new g.Date(c),"day"===d?g.set("Date",a,g.get("Date",a)+b):"month"===d?g.set("Month",a,g.get("Month",
|
|
|
+a)+b):"year"===d&&g.set("FullYear",a,g.get("FullYear",a)+b),b=a.getTime()-c);this.xIncrement=c+b;return c};e.prototype.setDataSortingOptions=function(){var a=this.options;B(this,{requireSorting:!1,sorted:!1,enabledDataSorting:!0,allowDG:!1});c(a.pointRange)||(a.pointRange=1)};e.prototype.setOptions=function(a){var b=this.chart,d=b.options,g=d.plotOptions,f=b.userOptions||{};a=K(a);b=b.styledMode;var k={plotOptions:g,userOptions:a};O(this,"setOptions",k);var n=k.plotOptions[this.type],p=f.plotOptions||
|
|
|
+{};this.userOptions=k.userOptions;f=K(n,g.series,f.plotOptions&&f.plotOptions[this.type],a);this.tooltipOptions=K(u.tooltip,u.plotOptions.series&&u.plotOptions.series.tooltip,u.plotOptions[this.type].tooltip,d.tooltip.userOptions,g.series&&g.series.tooltip,g[this.type].tooltip,a.tooltip);this.stickyTracking=H(a.stickyTracking,p[this.type]&&p[this.type].stickyTracking,p.series&&p.series.stickyTracking,this.tooltipOptions.shared&&!this.noSharedTooltip?!0:f.stickyTracking);null===n.marker&&delete f.marker;
|
|
|
+this.zoneAxis=f.zoneAxis;d=this.zones=(f.zones||[]).slice();!f.negativeColor&&!f.negativeFillColor||f.zones||(g={value:f[this.zoneAxis+"Threshold"]||f.threshold||0,className:"highcharts-negative"},b||(g.color=f.negativeColor,g.fillColor=f.negativeFillColor),d.push(g));d.length&&c(d[d.length-1].value)&&d.push(b?{}:{color:this.color,fillColor:this.fillColor});O(this,"afterSetOptions",{options:f});return f};e.prototype.getName=function(){return H(this.options.name,"Series "+(this.index+1))};e.prototype.getCyclic=
|
|
|
+function(a,b,d){var g=this.chart,f=this.userOptions,k=a+"Index",n=a+"Counter",p=d?d.length:H(g.options.chart[a+"Count"],g[a+"Count"]);if(!b){var l=H(f[k],f["_"+k]);c(l)||(g.series.length||(g[n]=0),f["_"+k]=l=g[n]%p,g[n]+=1);d&&(b=d[l])}"undefined"!==typeof l&&(this[k]=l);this[a]=b};e.prototype.getColor=function(){this.chart.styledMode?this.getCyclic("color"):this.options.colorByPoint?this.color=F.neutralColor20:this.getCyclic("color",this.options.color||u.plotOptions[this.type].color,this.chart.options.colors)};
|
|
|
+e.prototype.getPointsCollection=function(){return(this.hasGroupedData?this.points:this.data)||[]};e.prototype.getSymbol=function(){this.getCyclic("symbol",this.options.marker.symbol,this.chart.options.symbols)};e.prototype.findPointIndex=function(a,c){var b=a.id,d=a.x,g=this.points,f,k=this.options.dataSorting;if(b)var n=this.chart.get(b);else if(this.linkedParent||this.enabledDataSorting){var p=k&&k.matchByName?"name":"index";n=J(g,function(c){return!c.touched&&c[p]===a[p]});if(!n)return}if(n){var l=
|
|
|
+n&&n.index;"undefined"!==typeof l&&(f=!0)}"undefined"===typeof l&&v(d)&&(l=this.xData.indexOf(d,c));-1!==l&&"undefined"!==typeof l&&this.cropped&&(l=l>=this.cropStart?l-this.cropStart:l);!f&&g[l]&&g[l].touched&&(l=void 0);return l};e.prototype.updateData=function(a,b){var d=this.options,g=d.dataSorting,f=this.points,n=[],p,l,r,m=this.requireSorting,q=a.length===f.length,e=!0;this.xIncrement=null;a.forEach(function(a,b){var k=c(a)&&this.pointClass.prototype.optionsToObject.call({series:this},a)||{};
|
|
|
+var l=k.x;if(k.id||v(l)){if(l=this.findPointIndex(k,r),-1===l||"undefined"===typeof l?n.push(a):f[l]&&a!==d.data[l]?(f[l].update(a,!1,null,!1),f[l].touched=!0,m&&(r=l+1)):f[l]&&(f[l].touched=!0),!q||b!==l||g&&g.enabled||this.hasDerivedData)p=!0}else n.push(a)},this);if(p)for(a=f.length;a--;)(l=f[a])&&!l.touched&&l.remove&&l.remove(!1,b);else!q||g&&g.enabled?e=!1:(a.forEach(function(a,c){f[c].update&&a!==f[c].y&&f[c].update(a,!1,null,!1)}),n.length=0);f.forEach(function(a){a&&(a.touched=!1)});if(!e)return!1;
|
|
|
+n.forEach(function(a){this.addPoint(a,!1,null,null,!1)},this);null===this.xIncrement&&this.xData&&this.xData.length&&(this.xIncrement=k(this.xData),this.autoIncrement());return!0};e.prototype.setData=function(c,b,d,g){var f=this,k=f.points,n=k&&k.length||0,p,l=f.options,m=f.chart,q=l.dataSorting,e=null,w=f.xAxis;e=l.turboThreshold;var u=this.xData,h=this.yData,x=(p=f.pointArrayMap)&&p.length,B=l.keys,M=0,K=1,A;c=c||[];p=c.length;b=H(b,!0);q&&q.enabled&&(c=this.sortData(c));!1!==g&&p&&n&&!f.cropped&&
|
|
|
+!f.hasGroupedData&&f.visible&&!f.isSeriesBoosting&&(A=this.updateData(c,d));if(!A){f.xIncrement=null;f.colorCounter=0;this.parallelArrays.forEach(function(a){f[a+"Data"].length=0});if(e&&p>e)if(e=f.getFirstValidPoint(c),v(e))for(d=0;d<p;d++)u[d]=this.autoIncrement(),h[d]=c[d];else if(r(e))if(x)for(d=0;d<p;d++)g=c[d],u[d]=g[0],h[d]=g.slice(1,x+1);else for(B&&(M=B.indexOf("x"),K=B.indexOf("y"),M=0<=M?M:0,K=0<=K?K:1),d=0;d<p;d++)g=c[d],u[d]=g[M],h[d]=g[K];else a(12,!1,m);else for(d=0;d<p;d++)"undefined"!==
|
|
|
+typeof c[d]&&(g={series:f},f.pointClass.prototype.applyOptions.apply(g,[c[d]]),f.updateParallelArrays(g,d));h&&N(h[0])&&a(14,!0,m);f.data=[];f.options.data=f.userOptions.data=c;for(d=n;d--;)k[d]&&k[d].destroy&&k[d].destroy();w&&(w.minRange=w.userMinRange);f.isDirty=m.isDirtyBox=!0;f.isDirtyData=!!k;d=!1}"point"===l.legendType&&(this.processData(),this.generatePoints());b&&m.redraw(d)};e.prototype.sortData=function(a){var b=this,d=b.options.dataSorting.sortKey||"y",g=function(a,b){return c(b)&&a.pointClass.prototype.optionsToObject.call({series:a},
|
|
|
+b)||{}};a.forEach(function(c,d){a[d]=g(b,c);a[d].index=d},this);a.concat().sort(function(a,c){a=p(d,a);c=p(d,c);return c<a?-1:c>a?1:0}).forEach(function(a,c){a.x=c},this);b.linkedSeries&&b.linkedSeries.forEach(function(c){var b=c.options,d=b.data;b.dataSorting&&b.dataSorting.enabled||!d||(d.forEach(function(b,f){d[f]=g(c,b);a[f]&&(d[f].x=a[f].x,d[f].index=f)}),c.setData(d,!1))});return a};e.prototype.getProcessedData=function(c){var b=this.xData,d=this.yData,g=b.length;var f=0;var k=this.xAxis,n=
|
|
|
+this.options;var p=n.cropThreshold;var l=c||this.getExtremesFromAll||n.getExtremesFromAll,v=this.isCartesian;c=k&&k.val2lin;n=!(!k||!k.logarithmic);var r=this.requireSorting;if(k){k=k.getExtremes();var m=k.min;var e=k.max}if(v&&this.sorted&&!l&&(!p||g>p||this.forceCrop))if(b[g-1]<m||b[0]>e)b=[],d=[];else if(this.yData&&(b[0]<m||b[g-1]>e)){f=this.cropData(this.xData,this.yData,m,e);b=f.xData;d=f.yData;f=f.start;var q=!0}for(p=b.length||1;--p;)if(g=n?c(b[p])-c(b[p-1]):b[p]-b[p-1],0<g&&("undefined"===
|
|
|
+typeof w||g<w))var w=g;else 0>g&&r&&(a(15,!1,this.chart),r=!1);return{xData:b,yData:d,cropped:q,cropStart:f,closestPointRange:w}};e.prototype.processData=function(a){var c=this.xAxis;if(this.isCartesian&&!this.isDirty&&!c.isDirty&&!this.yAxis.isDirty&&!a)return!1;a=this.getProcessedData();this.cropped=a.cropped;this.cropStart=a.cropStart;this.processedXData=a.xData;this.processedYData=a.yData;this.closestPointRange=this.basePointRange=a.closestPointRange};e.prototype.cropData=function(a,c,b,d,g){var f=
|
|
|
+a.length,k=0,n=f,p;g=H(g,this.cropShoulder);for(p=0;p<f;p++)if(a[p]>=b){k=Math.max(0,p-g);break}for(b=p;b<f;b++)if(a[b]>d){n=b+g;break}return{xData:a.slice(k,n),yData:c.slice(k,n),start:k,end:n}};e.prototype.generatePoints=function(){var a=this.options,c=a.data,b=this.data,d,g=this.processedXData,f=this.processedYData,k=this.pointClass,n=g.length,p=this.cropStart||0,l=this.hasGroupedData,v=a.keys,r=[],m;a=a.dataGrouping&&a.dataGrouping.groupAll?p:0;b||l||(b=[],b.length=c.length,b=this.data=b);v&&
|
|
|
+l&&(this.options.keys=!1);for(m=0;m<n;m++){var e=p+m;if(l){var q=(new k).init(this,[g[m]].concat(Q(f[m])));q.dataGroup=this.groupMap[a+m];q.dataGroup.options&&(q.options=q.dataGroup.options,B(q,q.dataGroup.options),delete q.dataLabels)}else(q=b[e])||"undefined"===typeof c[e]||(b[e]=q=(new k).init(this,c[e],g[m]));q&&(q.index=l?a+m:e,r[m]=q)}this.options.keys=v;if(b&&(n!==(d=b.length)||l))for(m=0;m<d;m++)m!==p||l||(m+=n),b[m]&&(b[m].destroyElements(),b[m].plotX=void 0);this.data=b;this.points=r;O(this,
|
|
|
+"afterGeneratePoints")};e.prototype.getXExtremes=function(a){return{min:d(a),max:k(a)}};e.prototype.getExtremes=function(a,c){var b=this.xAxis,g=this.yAxis,f=this.processedXData||this.xData,n=[],p=0,l=0;var m=0;var q=this.requireSorting?this.cropShoulder:0,e=g?g.positiveValuesOnly:!1,w;a=a||this.stackedYData||this.processedYData||[];g=a.length;b&&(m=b.getExtremes(),l=m.min,m=m.max);for(w=0;w<g;w++){var u=f[w];var h=a[w];var N=(v(h)||r(h))&&(h.length||0<h||!e);u=c||this.getExtremesFromAll||this.options.getExtremesFromAll||
|
|
|
+this.cropped||!b||(f[w+q]||u)>=l&&(f[w-q]||u)<=m;if(N&&u)if(N=h.length)for(;N--;)v(h[N])&&(n[p++]=h[N]);else n[p++]=h}a={dataMin:d(n),dataMax:k(n)};O(this,"afterGetExtremes",{dataExtremes:a});return a};e.prototype.applyExtremes=function(){var a=this.getExtremes();this.dataMin=a.dataMin;this.dataMax=a.dataMax;return a};e.prototype.getFirstValidPoint=function(a){for(var c=null,b=a.length,d=0;null===c&&d<b;)c=a[d],d++;return c};e.prototype.translate=function(){this.processedXData||this.processData();
|
|
|
+this.generatePoints();var a=this.options,b=a.stacking,d=this.xAxis,f=d.categories,k=this.enabledDataSorting,n=this.yAxis,p=this.points,l=p.length,m=!!this.modifyValue,q,e=this.pointPlacementToXValue(),u=!!e,h=a.threshold,N=a.startFromThreshold?h:0,x,M=this.zoneAxis||"y",B=Number.MAX_VALUE;for(q=0;q<l;q++){var K=p[q],A=K.x,t=K.y,L=K.low,I=b&&n.stacking&&n.stacking.stacks[(this.negStacks&&t<(N?0:h)?"-":"")+this.stackKey],z=void 0,J=void 0;if(n.positiveValuesOnly&&!n.validatePositiveValue(t)||d.positiveValuesOnly&&
|
|
|
+!d.validatePositiveValue(A))K.isNull=!0;K.plotX=x=g(w(d.translate(A,0,0,0,1,e,"flags"===this.type),-1E5,1E5));if(b&&this.visible&&I&&I[A]){var C=this.getStackIndicator(C,A,this.index);K.isNull||(z=I[A],J=z.points[C.key])}r(J)&&(L=J[0],t=J[1],L===N&&C.key===I[A].base&&(L=H(v(h)&&h,n.min)),n.positiveValuesOnly&&0>=L&&(L=null),K.total=K.stackTotal=z.total,K.percentage=z.total&&K.y/z.total*100,K.stackY=t,this.irregularWidths||z.setOffset(this.pointXOffset||0,this.barW||0));K.yBottom=c(L)?w(n.translate(L,
|
|
|
+0,1,0,1),-1E5,1E5):null;m&&(t=this.modifyValue(t,K));K.plotY=void 0;v(t)&&(t=n.translate(t,!1,!0,!1,!0),"undefined"!==typeof t&&(K.plotY=w(t,-1E5,1E5)));K.isInside=this.isPointInside(K);K.clientX=u?g(d.translate(A,0,0,0,1,e)):x;K.negative=K[M]<(a[M+"Threshold"]||h||0);K.category=f&&"undefined"!==typeof f[K.x]?f[K.x]:K.x;if(!K.isNull&&!1!==K.visible){"undefined"!==typeof G&&(B=Math.min(B,Math.abs(x-G)));var G=x}K.zone=this.zones.length&&K.getZone();!K.graphic&&this.group&&k&&(K.isNew=!0)}this.closestPointRangePx=
|
|
|
+B;O(this,"afterTranslate")};e.prototype.getValidPoints=function(a,c,b){var d=this.chart;return(a||this.points||[]).filter(function(a){return c&&!d.isInsidePlot(a.plotX,a.plotY,{inverted:d.inverted})?!1:!1!==a.visible&&(b||!a.isNull)})};e.prototype.getClipBox=function(a,c){var b=this.options,d=this.chart,g=d.inverted,f=this.xAxis,k=f&&this.yAxis,n=d.options.chart.scrollablePlotArea||{};a&&!1===b.clip&&k?a=g?{y:-d.chartWidth+k.len+k.pos,height:d.chartWidth,width:d.chartHeight,x:-d.chartHeight+f.len+
|
|
|
+f.pos}:{y:-k.pos,height:d.chartHeight,width:d.chartWidth,x:-f.pos}:(a=this.clipBox||d.clipBox,c&&(a.width=d.plotSizeX,a.x=(d.scrollablePixelsX||0)*(n.scrollPositionX||0)));return c?{width:a.width,x:a.x}:a};e.prototype.getSharedClipKey=function(a){if(this.sharedClipKey)return this.sharedClipKey;var c=[a&&a.duration,a&&a.easing,a&&a.defer,this.getClipBox(a).height,this.options.xAxis,this.options.yAxis].join();if(!1!==this.options.clip||a)this.sharedClipKey=c;return c};e.prototype.setClip=function(a){var c=
|
|
|
+this.chart,b=this.options,d=c.renderer,g=c.inverted,f=this.clipBox,k=this.getClipBox(a),n=this.getSharedClipKey(a),p=c.sharedClips[n],l=c.sharedClips[n+"m"];a&&(k.width=0,g&&(k.x=c.plotHeight+(!1!==b.clip?0:c.plotTop)));p?c.hasLoaded||p.attr(k):(a&&(c.sharedClips[n+"m"]=l=d.clipRect(g?(c.plotSizeX||0)+99:-99,g?-c.plotLeft:-c.plotTop,99,g?c.chartWidth:c.chartHeight)),c.sharedClips[n]=p=d.clipRect(k),p.count={length:0});a&&!p.count[this.index]&&(p.count[this.index]=!0,p.count.length+=1);if(!1!==b.clip||
|
|
|
+a)this.group.clip(a||f?p:c.clipRect),this.markerGroup.clip(l);a||(p.count[this.index]&&(delete p.count[this.index],--p.count.length),0===p.count.length&&(f||(c.sharedClips[n]=p.destroy()),l&&(c.sharedClips[n+"m"]=l.destroy())))};e.prototype.animate=function(a){var c=this.chart,b=z(this.options.animation),d=this.sharedClipKey;if(a)this.setClip(b);else if(d){a=c.sharedClips[d];d=c.sharedClips[d+"m"];var g=this.getClipBox(b,!0);a&&a.animate(g,b);d&&d.animate({width:g.width+99,x:g.x-(c.inverted?0:99)},
|
|
|
+b)}};e.prototype.afterAnimate=function(){this.setClip();O(this,"afterAnimate");this.finishedAnimating=!0};e.prototype.drawPoints=function(){var a=this.points,c=this.chart,b,d,g=this.options.marker,f=this[this.specialGroup]||this.markerGroup,k=this.xAxis,n=H(g.enabled,!k||k.isRadial?!0:null,this.closestPointRangePx>=g.enabledThreshold*g.radius);if(!1!==g.enabled||this._hasPointMarkers)for(b=0;b<a.length;b++){var p=a[b];var l=(d=p.graphic)?"animate":"attr";var v=p.marker||{};var r=!!p.marker;if((n&&
|
|
|
+"undefined"===typeof v.enabled||v.enabled)&&!p.isNull&&!1!==p.visible){var m=H(v.symbol,this.symbol);var q=this.markerAttribs(p,p.selected&&"select");this.enabledDataSorting&&(p.startXPos=k.reversed?-(q.width||0):k.width);var e=!1!==p.isInside;d?d[e?"show":"hide"](e).animate(q):e&&(0<(q.width||0)||p.hasImage)&&(p.graphic=d=c.renderer.symbol(m,q.x,q.y,q.width,q.height,r?v:g).add(f),this.enabledDataSorting&&c.hasRendered&&(d.attr({x:p.startXPos}),l="animate"));d&&"animate"===l&&d[e?"show":"hide"](e).animate(q);
|
|
|
+if(d&&!c.styledMode)d[l](this.pointAttribs(p,p.selected&&"select"));d&&d.addClass(p.getClassName(),!0)}else d&&(p.graphic=d.destroy())}};e.prototype.markerAttribs=function(a,c){var b=this.options,d=b.marker,g=a.marker||{},f=g.symbol||d.symbol,k=H(g.radius,d.radius);c&&(d=d.states[c],c=g.states&&g.states[c],k=H(c&&c.radius,d&&d.radius,k+(d&&d.radiusPlus||0)));a.hasImage=f&&0===f.indexOf("url");a.hasImage&&(k=0);a={x:b.crisp?Math.floor(a.plotX-k):a.plotX-k,y:a.plotY-k};k&&(a.width=a.height=2*k);return a};
|
|
|
+e.prototype.pointAttribs=function(a,c){var b=this.options.marker,d=a&&a.options,g=d&&d.marker||{},f=this.color,k=d&&d.color,n=a&&a.color;d=H(g.lineWidth,b.lineWidth);var p=a&&a.zone&&a.zone.color;a=1;f=k||p||n||f;k=g.fillColor||b.fillColor||f;f=g.lineColor||b.lineColor||f;c=c||"normal";b=b.states[c];c=g.states&&g.states[c]||{};d=H(c.lineWidth,b.lineWidth,d+H(c.lineWidthPlus,b.lineWidthPlus,0));k=c.fillColor||b.fillColor||k;f=c.lineColor||b.lineColor||f;a=H(c.opacity,b.opacity,a);return{stroke:f,"stroke-width":d,
|
|
|
+fill:k,opacity:a}};e.prototype.destroy=function(a){var c=this,b=c.chart,d=/AppleWebKit\/533/.test(A.navigator.userAgent),g,f,k=c.data||[],n,p;O(c,"destroy");this.removeEvents(a);(c.axisTypes||[]).forEach(function(a){(p=c[a])&&p.series&&(q(p.series,c),p.isDirty=p.forceRedraw=!0)});c.legendItem&&c.chart.legend.destroyItem(c);for(f=k.length;f--;)(n=k[f])&&n.destroy&&n.destroy();c.clips&&c.clips.forEach(function(a){return a.destroy()});t.clearTimeout(c.animationTimeout);L(c,function(a,c){a instanceof
|
|
|
+G&&!a.survive&&(g=d&&"group"===c?"hide":"destroy",a[g]())});b.hoverSeries===c&&(b.hoverSeries=void 0);q(b.series,c);b.orderSeries();L(c,function(b,d){a&&"hcEvents"===d||delete c[d]})};e.prototype.applyZones=function(){var a=this,c=this.chart,b=c.renderer,d=this.zones,g,f,k=this.clips||[],n,p=this.graph,l=this.area,v=Math.max(c.chartWidth,c.chartHeight),r=this[(this.zoneAxis||"y")+"Axis"],m=c.inverted,q,e,h,u=!1,N,K;if(d.length&&(p||l)&&r&&"undefined"!==typeof r.min){var x=r.reversed;var M=r.horiz;
|
|
|
+p&&!this.showLine&&p.hide();l&&l.hide();var B=r.getExtremes();d.forEach(function(d,A){g=x?M?c.plotWidth:0:M?0:r.toPixels(B.min)||0;g=w(H(f,g),0,v);f=w(Math.round(r.toPixels(H(d.value,B.max),!0)||0),0,v);u&&(g=f=r.toPixels(B.max));q=Math.abs(g-f);e=Math.min(g,f);h=Math.max(g,f);r.isXAxis?(n={x:m?h:e,y:0,width:q,height:v},M||(n.x=c.plotHeight-n.x)):(n={x:0,y:m?h:e,width:v,height:q},M&&(n.y=c.plotWidth-n.y));m&&b.isVML&&(n=r.isXAxis?{x:0,y:x?e:h,height:n.width,width:c.chartWidth}:{x:n.y-c.plotLeft-c.spacingBox.x,
|
|
|
+y:0,width:n.height,height:c.chartHeight});k[A]?k[A].animate(n):k[A]=b.clipRect(n);N=a["zone-area-"+A];K=a["zone-graph-"+A];p&&K&&K.clip(k[A]);l&&N&&N.clip(k[A]);u=d.value>B.max;a.resetZones&&0===f&&(f=void 0)});this.clips=k}else a.visible&&(p&&p.show(!0),l&&l.show(!0))};e.prototype.invertGroups=function(a){function c(){["group","markerGroup"].forEach(function(c){b[c]&&(d.renderer.isVML&&b[c].attr({width:b.yAxis.len,height:b.xAxis.len}),b[c].width=b.yAxis.len,b[c].height=b.xAxis.len,b[c].invert(b.isRadialSeries?
|
|
|
+!1:a))})}var b=this,d=b.chart;b.xAxis&&(b.eventsToUnbind.push(I(d,"resize",c)),c(),b.invertGroups=c)};e.prototype.plotGroup=function(a,b,d,g,f){var k=this[a],n=!k;d={visibility:d,zIndex:g||.1};"undefined"===typeof this.opacity||this.chart.styledMode||"inactive"===this.state||(d.opacity=this.opacity);n&&(this[a]=k=this.chart.renderer.g().add(f));k.addClass("highcharts-"+b+" highcharts-series-"+this.index+" highcharts-"+this.type+"-series "+(c(this.colorIndex)?"highcharts-color-"+this.colorIndex+" ":
|
|
|
+"")+(this.options.className||"")+(k.hasClass("highcharts-tracker")?" highcharts-tracker":""),!0);k.attr(d)[n?"attr":"animate"](this.getPlotBox());return k};e.prototype.getPlotBox=function(){var a=this.chart,c=this.xAxis,b=this.yAxis;a.inverted&&(c=b,b=this.xAxis);return{translateX:c?c.left:a.plotLeft,translateY:b?b.top:a.plotTop,scaleX:1,scaleY:1}};e.prototype.removeEvents=function(a){a||x(this);this.eventsToUnbind.length&&(this.eventsToUnbind.forEach(function(a){a()}),this.eventsToUnbind.length=
|
|
|
+0)};e.prototype.render=function(){var a=this,c=a.chart,b=a.options,d=z(b.animation),g=!a.finishedAnimating&&c.renderer.isSVG&&d.duration,f=a.visible?"inherit":"hidden",k=b.zIndex,n=a.hasRendered,p=c.seriesGroup,l=c.inverted;O(this,"render");var r=a.plotGroup("group","series",f,k,p);a.markerGroup=a.plotGroup("markerGroup","markers",f,k,p);g&&a.animate&&a.animate(!0);r.inverted=H(a.invertible,a.isCartesian)?l:!1;a.drawGraph&&(a.drawGraph(),a.applyZones());a.visible&&a.drawPoints();a.drawDataLabels&&
|
|
|
+a.drawDataLabels();a.redrawPoints&&a.redrawPoints();a.drawTracker&&!1!==a.options.enableMouseTracking&&a.drawTracker();a.invertGroups(l);!1===b.clip||a.sharedClipKey||n||r.clip(c.clipRect);g&&a.animate&&a.animate();n||(g&&d.defer&&(g+=d.defer),a.animationTimeout=Z(function(){a.afterAnimate()},g||0));a.isDirty=!1;a.hasRendered=!0;O(a,"afterRender")};e.prototype.redraw=function(){var a=this.chart,c=this.isDirty||this.isDirtyData,b=this.group,d=this.xAxis,g=this.yAxis;b&&(a.inverted&&b.attr({width:a.plotWidth,
|
|
|
+height:a.plotHeight}),b.animate({translateX:H(d&&d.left,a.plotLeft),translateY:H(g&&g.top,a.plotTop)}));this.translate();this.render();c&&delete this.kdTree};e.prototype.searchPoint=function(a,c){var b=this.xAxis,d=this.yAxis,g=this.chart.inverted;return this.searchKDTree({clientX:g?b.len-a.chartY+b.pos:a.chartX-b.pos,plotY:g?d.len-a.chartX+d.pos:a.chartY-d.pos},c,a)};e.prototype.buildKDTree=function(a){function c(a,d,g){var f;if(f=a&&a.length){var k=b.kdAxisArray[d%g];a.sort(function(a,c){return a[k]-
|
|
|
+c[k]});f=Math.floor(f/2);return{point:a[f],left:c(a.slice(0,f),d+1,g),right:c(a.slice(f+1),d+1,g)}}}this.buildingKdTree=!0;var b=this,d=-1<b.options.findNearestPointBy.indexOf("y")?2:1;delete b.kdTree;Z(function(){b.kdTree=c(b.getValidPoints(null,!b.directTouch),d,d);b.buildingKdTree=!1},b.options.kdNow||a&&"touchstart"===a.type?0:1)};e.prototype.searchKDTree=function(a,b,d){function g(a,b,d,l){var r=b.point,v=f.kdAxisArray[d%l],m=r;var q=c(a[k])&&c(r[k])?Math.pow(a[k]-r[k],2):null;var e=c(a[n])&&
|
|
|
+c(r[n])?Math.pow(a[n]-r[n],2):null;e=(q||0)+(e||0);r.dist=c(e)?Math.sqrt(e):Number.MAX_VALUE;r.distX=c(q)?Math.sqrt(q):Number.MAX_VALUE;v=a[v]-r[v];e=0>v?"left":"right";q=0>v?"right":"left";b[e]&&(e=g(a,b[e],d+1,l),m=e[p]<m[p]?e:r);b[q]&&Math.sqrt(v*v)<m[p]&&(a=g(a,b[q],d+1,l),m=a[p]<m[p]?a:m);return m}var f=this,k=this.kdAxisArray[0],n=this.kdAxisArray[1],p=b?"distX":"dist";b=-1<f.options.findNearestPointBy.indexOf("y")?2:1;this.kdTree||this.buildingKdTree||this.buildKDTree(d);if(this.kdTree)return g(a,
|
|
|
+this.kdTree,b,b)};e.prototype.pointPlacementToXValue=function(){var a=this.options,c=a.pointRange,b=this.xAxis;a=a.pointPlacement;"between"===a&&(a=b.reversed?-.5:.5);return v(a)?a*(c||b.pointRange):0};e.prototype.isPointInside=function(a){return"undefined"!==typeof a.plotY&&"undefined"!==typeof a.plotX&&0<=a.plotY&&a.plotY<=this.yAxis.len&&0<=a.plotX&&a.plotX<=this.xAxis.len};e.prototype.drawTracker=function(){var a=this,c=a.options,d=c.trackByArea,g=[].concat(d?a.areaPath:a.graphPath),k=a.chart,
|
|
|
+n=k.pointer,p=k.renderer,l=k.options.tooltip.snap,r=a.tracker,v=function(c){if(k.hoverSeries!==a)a.onMouseOver()},m="rgba(192,192,192,"+(b?.0001:.002)+")";r?r.attr({d:g}):a.graph&&(a.tracker=p.path(g).attr({visibility:a.visible?"visible":"hidden",zIndex:2}).addClass(d?"highcharts-tracker-area":"highcharts-tracker-line").add(a.group),k.styledMode||a.tracker.attr({"stroke-linecap":"round","stroke-linejoin":"round",stroke:m,fill:d?m:"none","stroke-width":a.graph.strokeWidth()+(d?0:2*l)}),[a.tracker,
|
|
|
+a.markerGroup,a.dataLabelsGroup].forEach(function(a){if(a&&(a.addClass("highcharts-tracker").on("mouseover",v).on("mouseout",function(a){n.onTrackerMouseOut(a)}),c.cursor&&!k.styledMode&&a.css({cursor:c.cursor}),f))a.on("touchstart",v)}));O(this,"afterDrawTracker")};e.prototype.addPoint=function(a,c,b,d,g){var f=this.options,k=this.data,n=this.chart,p=this.xAxis;p=p&&p.hasNames&&p.names;var l=f.data,r=this.xData,v;c=H(c,!0);var m={series:this};this.pointClass.prototype.applyOptions.apply(m,[a]);var q=
|
|
|
+m.x;var e=r.length;if(this.requireSorting&&q<r[e-1])for(v=!0;e&&r[e-1]>q;)e--;this.updateParallelArrays(m,"splice",e,0,0);this.updateParallelArrays(m,e);p&&m.name&&(p[q]=m.name);l.splice(e,0,a);v&&(this.data.splice(e,0,null),this.processData());"point"===f.legendType&&this.generatePoints();b&&(k[0]&&k[0].remove?k[0].remove(!1):(k.shift(),this.updateParallelArrays(m,"shift"),l.shift()));!1!==g&&O(this,"addPoint",{point:m});this.isDirtyData=this.isDirty=!0;c&&n.redraw(d)};e.prototype.removePoint=function(a,
|
|
|
+c,b){var d=this,g=d.data,f=g[a],k=d.points,n=d.chart,p=function(){k&&k.length===g.length&&k.splice(a,1);g.splice(a,1);d.options.data.splice(a,1);d.updateParallelArrays(f||{series:d},"splice",a,1);f&&f.destroy();d.isDirty=!0;d.isDirtyData=!0;c&&n.redraw()};m(b,n);c=H(c,!0);f?f.firePointEvent("remove",null,p):p()};e.prototype.remove=function(a,c,b,d){function g(){f.destroy(d);k.isDirtyLegend=k.isDirtyBox=!0;k.linkSeries();H(a,!0)&&k.redraw(c)}var f=this,k=f.chart;!1!==b?O(f,"remove",null,g):g()};e.prototype.update=
|
|
|
+function(c,b){c=n(c,this.userOptions);O(this,"update",{options:c});var d=this,g=d.chart,f=d.userOptions,k=d.initialType||d.type,p=g.options.plotOptions,r=c.type||f.type||g.options.chart.type,v=!(this.hasDerivedData||r&&r!==this.type||"undefined"!==typeof c.pointStart||"undefined"!==typeof c.pointInterval||d.hasOptionChanged("dataGrouping")||d.hasOptionChanged("pointStart")||d.hasOptionChanged("pointInterval")||d.hasOptionChanged("pointIntervalUnit")||d.hasOptionChanged("keys")),m=l[k].prototype,e,
|
|
|
+q=["eventOptions","navigatorSeries","baseSeries"],w=d.finishedAnimating&&{animation:!1},h={};r=r||k;v&&(q.push("data","isDirtyData","points","processedXData","processedYData","xIncrement","cropped","_hasPointMarkers","_hasPointLabels","clips","nodes","layout","mapMap","mapData","minY","maxY","minX","maxX"),!1!==c.visible&&q.push("area","graph"),d.parallelArrays.forEach(function(a){q.push(a+"Data")}),c.data&&(c.dataSorting&&B(d.options.dataSorting,c.dataSorting),this.setData(c.data,!1)));c=K(f,w,{index:"undefined"===
|
|
|
+typeof f.index?d.index:f.index,pointStart:H(p&&p.series&&p.series.pointStart,f.pointStart,d.xData[0])},!v&&{data:d.options.data},c);v&&c.data&&(c.data=d.options.data);q=["group","markerGroup","dataLabelsGroup","transformGroup"].concat(q);q.forEach(function(a){q[a]=d[a];delete d[a]});f=!1;if(l[r]){if(f=r!==d.type,d.remove(!1,!1,!1,!0),f)if(Object.setPrototypeOf)Object.setPrototypeOf(d,l[r].prototype);else{p=Object.hasOwnProperty.call(d,"hcEvents")&&d.hcEvents;for(e in m)d[e]=void 0;B(d,l[r].prototype);
|
|
|
+p?d.hcEvents=p:delete d.hcEvents}}else a(17,!0,g,{missingModuleFor:r});q.forEach(function(a){d[a]=q[a]});d.init(g,c);if(v&&this.points){var u=d.options;!1===u.visible?(h.graphic=1,h.dataLabel=1):d._hasPointLabels||(c=u.marker,r=u.dataLabels,c&&(!1===c.enabled||"symbol"in c)&&(h.graphic=1),r&&!1===r.enabled&&(h.dataLabel=1));this.points.forEach(function(a){a&&a.series&&(a.resolveColor(),Object.keys(h).length&&a.destroyElements(h),!1===u.showInLegend&&a.legendItem&&g.legend.destroyItem(a))},this)}d.initialType=
|
|
|
+k;g.linkSeries();f&&d.linkedSeries.length&&(d.isDirtyData=!0);O(this,"afterUpdate");H(b,!0)&&g.redraw(v?void 0:!1)};e.prototype.setName=function(a){this.name=this.options.name=this.userOptions.name=a;this.chart.isDirtyLegend=!0};e.prototype.hasOptionChanged=function(a){var c=this.options[a],b=this.chart.options.plotOptions,d=this.userOptions[a];return d?c!==d:c!==H(b&&b[this.type]&&b[this.type][a],b&&b.series&&b.series[a],c)};e.prototype.onMouseOver=function(){var a=this.chart,c=a.hoverSeries;a.pointer.setHoverChartIndex();
|
|
|
+if(c&&c!==this)c.onMouseOut();this.options.events.mouseOver&&O(this,"mouseOver");this.setState("hover");a.hoverSeries=this};e.prototype.onMouseOut=function(){var a=this.options,c=this.chart,b=c.tooltip,d=c.hoverPoint;c.hoverSeries=null;if(d)d.onMouseOut();this&&a.events.mouseOut&&O(this,"mouseOut");!b||this.stickyTracking||b.shared&&!this.noSharedTooltip||b.hide();c.series.forEach(function(a){a.setState("",!0)})};e.prototype.setState=function(a,c){var b=this,d=b.options,g=b.graph,f=d.inactiveOtherPoints,
|
|
|
+k=d.states,n=d.lineWidth,p=d.opacity,l=H(k[a||"normal"]&&k[a||"normal"].animation,b.chart.options.chart.animation);d=0;a=a||"";if(b.state!==a&&([b.group,b.markerGroup,b.dataLabelsGroup].forEach(function(c){c&&(b.state&&c.removeClass("highcharts-series-"+b.state),a&&c.addClass("highcharts-series-"+a))}),b.state=a,!b.chart.styledMode)){if(k[a]&&!1===k[a].enabled)return;a&&(n=k[a].lineWidth||n+(k[a].lineWidthPlus||0),p=H(k[a].opacity,p));if(g&&!g.dashstyle)for(k={"stroke-width":n},g.animate(k,l);b["zone-graph-"+
|
|
|
+d];)b["zone-graph-"+d].animate(k,l),d+=1;f||[b.group,b.markerGroup,b.dataLabelsGroup,b.labelBySeries].forEach(function(a){a&&a.animate({opacity:p},l)})}c&&f&&b.points&&b.setAllPointsToState(a||void 0)};e.prototype.setAllPointsToState=function(a){this.points.forEach(function(c){c.setState&&c.setState(a)})};e.prototype.setVisible=function(a,c){var b=this,d=b.chart,g=b.legendItem,f=d.options.chart.ignoreHiddenSeries,k=b.visible;var n=(b.visible=a=b.options.visible=b.userOptions.visible="undefined"===
|
|
|
+typeof a?!k:a)?"show":"hide";["group","dataLabelsGroup","markerGroup","tracker","tt"].forEach(function(a){if(b[a])b[a][n]()});if(d.hoverSeries===b||(d.hoverPoint&&d.hoverPoint.series)===b)b.onMouseOut();g&&d.legend.colorizeItem(b,a);b.isDirty=!0;b.options.stacking&&d.series.forEach(function(a){a.options.stacking&&a.visible&&(a.isDirty=!0)});b.linkedSeries.forEach(function(c){c.setVisible(a,!1)});f&&(d.isDirtyBox=!0);O(b,n);!1!==c&&d.redraw()};e.prototype.show=function(){this.setVisible(!0)};e.prototype.hide=
|
|
|
+function(){this.setVisible(!1)};e.prototype.select=function(a){this.selected=a=this.options.selected="undefined"===typeof a?!this.selected:a;this.checkbox&&(this.checkbox.checked=a);O(this,a?"select":"unselect")};e.prototype.shouldShowTooltip=function(a,c,b){void 0===b&&(b={});b.series=this;b.visiblePlotOnly=!0;return this.chart.isInsidePlot(a,c,b)};e.defaultOptions={lineWidth:2,allowPointSelect:!1,crisp:!0,showCheckbox:!1,animation:{duration:1E3},events:{},marker:{enabledThreshold:2,lineColor:F.backgroundColor,
|
|
|
+lineWidth:0,radius:4,states:{normal:{animation:!0},hover:{animation:{duration:50},enabled:!0,radiusPlus:2,lineWidthPlus:1},select:{fillColor:F.neutralColor20,lineColor:F.neutralColor100,lineWidth:2}}},point:{events:{}},dataLabels:{animation:{},align:"center",defer:!0,formatter:function(){var a=this.series.chart.numberFormatter;return"number"!==typeof this.y?"":a(this.y,-1)},padding:5,style:{fontSize:"11px",fontWeight:"bold",color:"contrast",textOutline:"1px contrast"},verticalAlign:"bottom",x:0,y:0},
|
|
|
+cropThreshold:300,opacity:1,pointRange:0,softThreshold:!0,states:{normal:{animation:!0},hover:{animation:{duration:50},lineWidthPlus:1,marker:{},halo:{size:10,opacity:.25}},select:{animation:{duration:0}},inactive:{animation:{duration:50},opacity:.2}},stickyTracking:!0,turboThreshold:1E3,findNearestPointBy:"x"};return e}();B(e.prototype,{axisTypes:["xAxis","yAxis"],coll:"series",colorCounter:0,cropShoulder:1,directTouch:!1,drawLegendSymbol:D.drawLineMarker,isCartesian:!0,kdAxisArray:["clientX","plotY"],
|
|
|
+parallelArrays:["x","y"],pointClass:E,requireSorting:!0,sorted:!0});C.series=e;"";"";return e});P(e,"Extensions/ScrollablePlotArea.js",[e["Core/Animation/AnimationUtilities.js"],e["Core/Axis/Axis.js"],e["Core/Chart/Chart.js"],e["Core/Series/Series.js"],e["Core/Globals.js"],e["Core/Utilities.js"]],function(e,h,D,y,F,E){var C=e.stop,G=E.addEvent,t=E.createElement,z=E.merge,m=E.pick;"";G(D,"afterSetChartSize",function(f){var b=this.options.chart.scrollablePlotArea,m=b&&b.minWidth;b=b&&b.minHeight;if(!this.renderer.forExport){if(m){if(this.scrollablePixelsX=
|
|
|
+m=Math.max(0,m-this.chartWidth)){this.scrollablePlotBox=this.renderer.scrollablePlotBox=z(this.plotBox);this.plotBox.width=this.plotWidth+=m;this.inverted?this.clipBox.height+=m:this.clipBox.width+=m;var e={1:{name:"right",value:m}}}}else b&&(this.scrollablePixelsY=m=Math.max(0,b-this.chartHeight))&&(this.scrollablePlotBox=this.renderer.scrollablePlotBox=z(this.plotBox),this.plotBox.height=this.plotHeight+=m,this.inverted?this.clipBox.width+=m:this.clipBox.height+=m,e={2:{name:"bottom",value:m}});
|
|
|
+e&&!f.skipAxes&&this.axes.forEach(function(b){e[b.side]?b.getPlotLinePath=function(){var f=e[b.side].name,k=this[f];this[f]=k-e[b.side].value;var d=F.Axis.prototype.getPlotLinePath.apply(this,arguments);this[f]=k;return d}:(b.setAxisSize(),b.setAxisTranslation())})}});G(D,"render",function(){this.scrollablePixelsX||this.scrollablePixelsY?(this.setUpScrolling&&this.setUpScrolling(),this.applyFixed()):this.fixedDiv&&this.applyFixed()});D.prototype.setUpScrolling=function(){var f=this,b={WebkitOverflowScrolling:"touch",
|
|
|
+overflowX:"hidden",overflowY:"hidden"};this.scrollablePixelsX&&(b.overflowX="auto");this.scrollablePixelsY&&(b.overflowY="auto");this.scrollingParent=t("div",{className:"highcharts-scrolling-parent"},{position:"relative"},this.renderTo);this.scrollingContainer=t("div",{className:"highcharts-scrolling"},b,this.scrollingParent);G(this.scrollingContainer,"scroll",function(){f.pointer&&delete f.pointer.chartPosition});this.innerContainer=t("div",{className:"highcharts-inner-container"},null,this.scrollingContainer);
|
|
|
+this.innerContainer.appendChild(this.container);this.setUpScrolling=null};D.prototype.moveFixedElements=function(){var f=this.container,b=this.fixedRenderer,m=".highcharts-contextbutton .highcharts-credits .highcharts-legend .highcharts-legend-checkbox .highcharts-navigator-series .highcharts-navigator-xaxis .highcharts-navigator-yaxis .highcharts-navigator .highcharts-reset-zoom .highcharts-drillup-button .highcharts-scrollbar .highcharts-subtitle .highcharts-title".split(" "),e;this.scrollablePixelsX&&
|
|
|
+!this.inverted?e=".highcharts-yaxis":this.scrollablePixelsX&&this.inverted?e=".highcharts-xaxis":this.scrollablePixelsY&&!this.inverted?e=".highcharts-xaxis":this.scrollablePixelsY&&this.inverted&&(e=".highcharts-yaxis");e&&m.push(e+":not(.highcharts-radial-axis)",e+"-labels:not(.highcharts-radial-axis-labels)");m.forEach(function(l){[].forEach.call(f.querySelectorAll(l),function(f){(f.namespaceURI===b.SVG_NS?b.box:b.box.parentNode).appendChild(f);f.style.pointerEvents="auto"})})};D.prototype.applyFixed=
|
|
|
+function(){var f=!this.fixedDiv;var b=this.options.chart;var e=b.scrollablePlotArea;f?(this.fixedDiv=t("div",{className:"highcharts-fixed"},{position:"absolute",overflow:"hidden",pointerEvents:"none",zIndex:(b.style&&b.style.zIndex||0)+2,top:0},null,!0),this.scrollingContainer&&this.scrollingContainer.parentNode.insertBefore(this.fixedDiv,this.scrollingContainer),this.renderTo.style.overflow="visible",this.fixedRenderer=b=new F.Renderer(this.fixedDiv,this.chartWidth,this.chartHeight,this.options.chart.style),
|
|
|
+this.scrollableMask=b.path().attr({fill:this.options.chart.backgroundColor||"#fff","fill-opacity":m(e.opacity,.85),zIndex:-1}).addClass("highcharts-scrollable-mask").add(),G(this,"afterShowResetZoom",this.moveFixedElements),G(this,"afterDrilldown",this.moveFixedElements),G(this,"afterLayOutTitles",this.moveFixedElements)):this.fixedRenderer.setSize(this.chartWidth,this.chartHeight);if(this.scrollableDirty||f)this.scrollableDirty=!1,this.moveFixedElements();b=this.chartWidth+(this.scrollablePixelsX||
|
|
|
+0);var h=this.chartHeight+(this.scrollablePixelsY||0);C(this.container);this.container.style.width=b+"px";this.container.style.height=h+"px";this.renderer.boxWrapper.attr({width:b,height:h,viewBox:[0,0,b,h].join(" ")});this.chartBackground.attr({width:b,height:h});this.scrollingContainer.style.height=this.chartHeight+"px";f&&(e.scrollPositionX&&(this.scrollingContainer.scrollLeft=this.scrollablePixelsX*e.scrollPositionX),e.scrollPositionY&&(this.scrollingContainer.scrollTop=this.scrollablePixelsY*
|
|
|
+e.scrollPositionY));h=this.axisOffset;f=this.plotTop-h[0]-1;e=this.plotLeft-h[3]-1;b=this.plotTop+this.plotHeight+h[2]+1;h=this.plotLeft+this.plotWidth+h[1]+1;var l=this.plotLeft+this.plotWidth-(this.scrollablePixelsX||0),I=this.plotTop+this.plotHeight-(this.scrollablePixelsY||0);f=this.scrollablePixelsX?[["M",0,f],["L",this.plotLeft-1,f],["L",this.plotLeft-1,b],["L",0,b],["Z"],["M",l,f],["L",this.chartWidth,f],["L",this.chartWidth,b],["L",l,b],["Z"]]:this.scrollablePixelsY?[["M",e,0],["L",e,this.plotTop-
|
|
|
+1],["L",h,this.plotTop-1],["L",h,0],["Z"],["M",e,I],["L",e,this.chartHeight],["L",h,this.chartHeight],["L",h,I],["Z"]]:[["M",0,0]];"adjustHeight"!==this.redrawTrigger&&this.scrollableMask.attr({d:f})};G(h,"afterInit",function(){this.chart.scrollableDirty=!0});G(y,"show",function(){this.chart.scrollableDirty=!0})});P(e,"Core/Axis/StackingAxis.js",[e["Core/Animation/AnimationUtilities.js"],e["Core/Utilities.js"]],function(e,h){var D=e.getDeferredAnimation,y=h.addEvent,F=h.destroyObjectProperties,E=
|
|
|
+h.fireEvent,C=h.isNumber,G=h.objectEach,t=function(){function e(m){this.oldStacks={};this.stacks={};this.stacksTouched=0;this.axis=m}e.prototype.buildStacks=function(){var m=this.axis,f=m.series,b=m.options.reversedStacks,e=f.length,h;if(!m.isXAxis){this.usePercentage=!1;for(h=e;h--;){var l=f[b?h:e-h-1];l.setStackedPoints();l.setGroupedPoints()}for(h=0;h<e;h++)f[h].modifyStacks();E(m,"afterBuildStacks")}};e.prototype.cleanStacks=function(){if(!this.axis.isXAxis){if(this.oldStacks)var m=this.stacks=
|
|
|
+this.oldStacks;G(m,function(f){G(f,function(b){b.cumulative=b.total})})}};e.prototype.resetStacks=function(){var m=this,f=this.stacks;this.axis.isXAxis||G(f,function(b){G(b,function(f,e){C(f.touched)&&f.touched<m.stacksTouched?(f.destroy(),delete b[e]):(f.total=null,f.cumulative=null)})})};e.prototype.renderStackTotals=function(){var m=this.axis,f=m.chart,b=f.renderer,e=this.stacks;m=D(f,m.options.stackLabels&&m.options.stackLabels.animation||!1);var h=this.stackTotalGroup=this.stackTotalGroup||b.g("stack-labels").attr({visibility:"visible",
|
|
|
+zIndex:6,opacity:0}).add();h.translate(f.plotLeft,f.plotTop);G(e,function(b){G(b,function(b){b.render(h)})});h.animate({opacity:1},m)};return e}();return function(){function e(){}e.compose=function(m){y(m,"init",e.onInit);y(m,"destroy",e.onDestroy)};e.onDestroy=function(){var m=this.stacking;if(m){var f=m.stacks;G(f,function(b,m){F(b);f[m]=null});m&&m.stackTotalGroup&&m.stackTotalGroup.destroy()}};e.onInit=function(){this.stacking||(this.stacking=new t(this))};return e}()});P(e,"Extensions/Stacking.js",
|
|
|
+[e["Core/Axis/Axis.js"],e["Core/Chart/Chart.js"],e["Core/FormatUtilities.js"],e["Core/Globals.js"],e["Core/Series/Series.js"],e["Core/Axis/StackingAxis.js"],e["Core/Utilities.js"]],function(e,h,D,y,F,E,C){var G=D.format,t=C.correctFloat,z=C.defined,m=C.destroyObjectProperties,f=C.isArray,b=C.isNumber,A=C.objectEach,u=C.pick;"";var l=function(){function f(b,d,f,n,g){var c=b.chart.inverted;this.axis=b;this.isNegative=f;this.options=d=d||{};this.x=n;this.total=null;this.points={};this.hasValidPoints=
|
|
|
+!1;this.stack=g;this.rightCliff=this.leftCliff=0;this.alignOptions={align:d.align||(c?f?"left":"right":"center"),verticalAlign:d.verticalAlign||(c?"middle":f?"bottom":"top"),y:d.y,x:d.x};this.textAlign=d.textAlign||(c?f?"right":"left":"center")}f.prototype.destroy=function(){m(this,this.axis)};f.prototype.render=function(b){var d=this.axis.chart,f=this.options,k=f.format;k=k?G(k,this,d):f.formatter.call(this);this.label?this.label.attr({text:k,visibility:"hidden"}):(this.label=d.renderer.label(k,
|
|
|
+null,null,f.shape,null,null,f.useHTML,!1,"stack-labels"),k={r:f.borderRadius||0,text:k,rotation:f.rotation,padding:u(f.padding,5),visibility:"hidden"},d.styledMode||(k.fill=f.backgroundColor,k.stroke=f.borderColor,k["stroke-width"]=f.borderWidth,this.label.css(f.style)),this.label.attr(k),this.label.added||this.label.add(b));this.label.labelrank=d.plotSizeY};f.prototype.setOffset=function(f,d,l,n,g){var c=this.axis,k=c.chart;n=c.translate(c.stacking.usePercentage?100:n?n:this.total,0,0,0,1);l=c.translate(l?
|
|
|
+l:0);l=z(n)&&Math.abs(n-l);f=u(g,k.xAxis[0].translate(this.x))+f;c=z(n)&&this.getStackBox(k,this,f,n,d,l,c);d=this.label;l=this.isNegative;f="justify"===u(this.options.overflow,"justify");var a=this.textAlign;d&&c&&(g=d.getBBox(),n=d.padding,a="left"===a?k.inverted?-n:n:"right"===a?g.width:k.inverted&&"center"===a?g.width/2:k.inverted?l?g.width+n:-n:g.width/2,l=k.inverted?g.height/2:l?-n:g.height,this.alignOptions.x=u(this.options.x,0),this.alignOptions.y=u(this.options.y,0),c.x-=a,c.y-=l,d.align(this.alignOptions,
|
|
|
+null,c),k.isInsidePlot(d.alignAttr.x+a-this.alignOptions.x,d.alignAttr.y+l-this.alignOptions.y)?d.show():(d.alignAttr.y=-9999,f=!1),f&&F.prototype.justifyDataLabel.call(this.axis,d,this.alignOptions,d.alignAttr,g,c),d.attr({x:d.alignAttr.x,y:d.alignAttr.y}),u(!f&&this.options.crop,!0)&&((k=b(d.x)&&b(d.y)&&k.isInsidePlot(d.x-n+d.width,d.y)&&k.isInsidePlot(d.x+n,d.y))||d.hide()))};f.prototype.getStackBox=function(b,d,f,n,g,c,l){var a=d.axis.reversed,k=b.inverted,m=l.height+l.pos-(k?b.plotLeft:b.plotTop);
|
|
|
+d=d.isNegative&&!a||!d.isNegative&&a;return{x:k?d?n-l.right:n-c+l.pos-b.plotLeft:f+b.xAxis[0].transB-b.plotLeft,y:k?l.height-f-g:d?m-n-c:m-n,width:k?c:g,height:k?g:c}};return f}();h.prototype.getStacks=function(){var b=this,f=b.inverted;b.yAxis.forEach(function(b){b.stacking&&b.stacking.stacks&&b.hasVisibleSeries&&(b.stacking.oldStacks=b.stacking.stacks)});b.series.forEach(function(d){var k=d.xAxis&&d.xAxis.options||{};!d.options.stacking||!0!==d.visible&&!1!==b.options.chart.ignoreHiddenSeries||
|
|
|
+(d.stackKey=[d.type,u(d.options.stack,""),f?k.top:k.left,f?k.height:k.width].join())})};E.compose(e);F.prototype.setGroupedPoints=function(){var b=this.yAxis.stacking;this.options.centerInCategory&&(this.is("column")||this.is("columnrange"))&&!this.options.stacking&&1<this.chart.series.length?F.prototype.setStackedPoints.call(this,"group"):b&&A(b.stacks,function(f,d){"group"===d.slice(-5)&&(A(f,function(b){return b.destroy()}),delete b.stacks[d])})};F.prototype.setStackedPoints=function(b){var k=
|
|
|
+b||this.options.stacking;if(k&&(!0===this.visible||!1===this.chart.options.chart.ignoreHiddenSeries)){var d=this.processedXData,m=this.processedYData,n=[],g=m.length,c=this.options,e=c.threshold,a=u(c.startFromThreshold&&e,0);c=c.stack;b=b?this.type+","+k:this.stackKey;var h="-"+b,A=this.negStacks,I=this.yAxis,p=I.stacking.stacks,r=I.stacking.oldStacks,M,v;I.stacking.stacksTouched+=1;for(v=0;v<g;v++){var N=d[v];var K=m[v];var L=this.getStackIndicator(L,N,this.index);var H=L.key;var x=(M=A&&K<(a?0:
|
|
|
+e))?h:b;p[x]||(p[x]={});p[x][N]||(r[x]&&r[x][N]?(p[x][N]=r[x][N],p[x][N].total=null):p[x][N]=new l(I,I.options.stackLabels,M,N,c));x=p[x][N];null!==K?(x.points[H]=x.points[this.index]=[u(x.cumulative,a)],z(x.cumulative)||(x.base=H),x.touched=I.stacking.stacksTouched,0<L.index&&!1===this.singleStacks&&(x.points[H][0]=x.points[this.index+","+N+",0"][0])):x.points[H]=x.points[this.index]=null;"percent"===k?(M=M?b:h,A&&p[M]&&p[M][N]?(M=p[M][N],x.total=M.total=Math.max(M.total,x.total)+Math.abs(K)||0):
|
|
|
+x.total=t(x.total+(Math.abs(K)||0))):"group"===k?(f(K)&&(K=K[0]),null!==K&&(x.total=(x.total||0)+1)):x.total=t(x.total+(K||0));x.cumulative="group"===k?(x.total||1)-1:u(x.cumulative,a)+(K||0);null!==K&&(x.points[H].push(x.cumulative),n[v]=x.cumulative,x.hasValidPoints=!0)}"percent"===k&&(I.stacking.usePercentage=!0);"group"!==k&&(this.stackedYData=n);I.stacking.oldStacks={}}};F.prototype.modifyStacks=function(){var b=this,f=b.stackKey,d=b.yAxis.stacking.stacks,l=b.processedXData,n,g=b.options.stacking;
|
|
|
+b[g+"Stacker"]&&[f,"-"+f].forEach(function(c){for(var f=l.length,a,k;f--;)if(a=l[f],n=b.getStackIndicator(n,a,b.index,c),k=(a=d[c]&&d[c][a])&&a.points[n.key])b[g+"Stacker"](k,a,f)})};F.prototype.percentStacker=function(b,f,d){f=f.total?100/f.total:0;b[0]=t(b[0]*f);b[1]=t(b[1]*f);this.stackedYData[d]=b[1]};F.prototype.getStackIndicator=function(b,f,d,l){!z(b)||b.x!==f||l&&b.key!==l?b={x:f,index:0,key:l}:b.index++;b.key=[d,f,b.index].join();return b};y.StackItem=l;return y.StackItem});P(e,"Series/Line/LineSeries.js",
|
|
|
+[e["Core/Color/Palette.js"],e["Core/Series/Series.js"],e["Core/Series/SeriesRegistry.js"],e["Core/Utilities.js"]],function(e,h,D,y){var F=this&&this.__extends||function(){var e=function(h,z){e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(m,f){m.__proto__=f}||function(m,f){for(var b in f)f.hasOwnProperty(b)&&(m[b]=f[b])};return e(h,z)};return function(h,z){function m(){this.constructor=h}e(h,z);h.prototype=null===z?Object.create(z):(m.prototype=z.prototype,new m)}}(),E=y.defined,
|
|
|
+C=y.merge;y=function(G){function t(){var e=null!==G&&G.apply(this,arguments)||this;e.data=void 0;e.options=void 0;e.points=void 0;return e}F(t,G);t.prototype.drawGraph=function(){var h=this,m=this.options,f=(this.gappedPath||this.getGraphPath).call(this),b=this.chart.styledMode,t=[["graph","highcharts-graph"]];b||t[0].push(m.lineColor||this.color||e.neutralColor20,m.dashStyle);t=h.getZonesGraphs(t);t.forEach(function(e,l){var u=e[0],k=h[u],d=k?"animate":"attr";k?(k.endX=h.preventGraphAnimation?null:
|
|
|
+f.xMap,k.animate({d:f})):f.length&&(h[u]=k=h.chart.renderer.path(f).addClass(e[1]).attr({zIndex:1}).add(h.group));k&&!b&&(u={stroke:e[2],"stroke-width":m.lineWidth,fill:h.fillGraph&&h.color||"none"},e[3]?u.dashstyle=e[3]:"square"!==m.linecap&&(u["stroke-linecap"]=u["stroke-linejoin"]="round"),k[d](u).shadow(2>l&&m.shadow));k&&(k.startX=f.xMap,k.isArea=f.isArea)})};t.prototype.getGraphPath=function(e,m,f){var b=this,h=b.options,u=h.step,l,t=[],k=[],d;e=e||b.points;(l=e.reversed)&&e.reverse();(u={right:1,
|
|
|
+center:2}[u]||u&&3)&&l&&(u=4-u);e=this.getValidPoints(e,!1,!(h.connectNulls&&!m&&!f));e.forEach(function(l,n){var g=l.plotX,c=l.plotY,q=e[n-1];(l.leftCliff||q&&q.rightCliff)&&!f&&(d=!0);l.isNull&&!E(m)&&0<n?d=!h.connectNulls:l.isNull&&!m?d=!0:(0===n||d?n=[["M",l.plotX,l.plotY]]:b.getPointSpline?n=[b.getPointSpline(e,l,n)]:u?(n=1===u?[["L",q.plotX,c]]:2===u?[["L",(q.plotX+g)/2,q.plotY],["L",(q.plotX+g)/2,c]]:[["L",g,q.plotY]],n.push(["L",g,c])):n=[["L",g,c]],k.push(l.x),u&&(k.push(l.x),2===u&&k.push(l.x)),
|
|
|
+t.push.apply(t,n),d=!1)});t.xMap=k;return b.graphPath=t};t.prototype.getZonesGraphs=function(e){this.zones.forEach(function(m,f){f=["zone-graph-"+f,"highcharts-graph highcharts-zone-graph-"+f+" "+(m.className||"")];this.chart.styledMode||f.push(m.color||this.color,m.dashStyle||this.options.dashStyle);e.push(f)},this);return e};t.defaultOptions=C(h.defaultOptions,{});return t}(h);D.registerSeriesType("line",y);"";return y});P(e,"Series/Area/AreaSeries.js",[e["Core/Color/Color.js"],e["Mixins/LegendSymbol.js"],
|
|
|
+e["Core/Series/SeriesRegistry.js"],e["Core/Utilities.js"]],function(e,h,D,y){var F=this&&this.__extends||function(){var e=function(f,b){e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,f){b.__proto__=f}||function(b,f){for(var l in f)f.hasOwnProperty(l)&&(b[l]=f[l])};return e(f,b)};return function(f,b){function m(){this.constructor=f}e(f,b);f.prototype=null===b?Object.create(b):(m.prototype=b.prototype,new m)}}(),E=e.parse,C=D.seriesTypes.line;e=y.extend;var G=y.merge,t=y.objectEach,
|
|
|
+z=y.pick;y=function(e){function f(){var b=null!==e&&e.apply(this,arguments)||this;b.data=void 0;b.options=void 0;b.points=void 0;return b}F(f,e);f.prototype.drawGraph=function(){this.areaPath=[];e.prototype.drawGraph.apply(this);var b=this,f=this.areaPath,m=this.options,l=[["area","highcharts-area",this.color,m.fillColor]];this.zones.forEach(function(f,k){l.push(["zone-area-"+k,"highcharts-area highcharts-zone-area-"+k+" "+f.className,f.color||b.color,f.fillColor||m.fillColor])});l.forEach(function(l){var k=
|
|
|
+l[0],d=b[k],e=d?"animate":"attr",n={};d?(d.endX=b.preventGraphAnimation?null:f.xMap,d.animate({d:f})):(n.zIndex=0,d=b[k]=b.chart.renderer.path(f).addClass(l[1]).add(b.group),d.isArea=!0);b.chart.styledMode||(n.fill=z(l[3],E(l[2]).setOpacity(z(m.fillOpacity,.75)).get()));d[e](n);d.startX=f.xMap;d.shiftUnit=m.step?2:1})};f.prototype.getGraphPath=function(b){var f=C.prototype.getGraphPath,e=this.options,l=e.stacking,m=this.yAxis,k,d=[],h=[],n=this.index,g=m.stacking.stacks[this.stackKey],c=e.threshold,
|
|
|
+q=Math.round(m.getThreshold(e.threshold));e=z(e.connectNulls,"percent"===l);var a=function(a,f,k){var p=b[a];a=l&&g[p.x].points[n];var e=p[k+"Null"]||0;k=p[k+"Cliff"]||0;p=!0;if(k||e){var r=(e?a[0]:a[1])+k;var w=a[0]+k;p=!!e}else!l&&b[f]&&b[f].isNull&&(r=w=c);"undefined"!==typeof r&&(h.push({plotX:t,plotY:null===r?q:m.getThreshold(r),isNull:p,isCliff:!0}),d.push({plotX:t,plotY:null===w?q:m.getThreshold(w),doCurve:!1}))};b=b||this.points;l&&(b=this.getStackPoints(b));for(k=0;k<b.length;k++){l||(b[k].leftCliff=
|
|
|
+b[k].rightCliff=b[k].leftNull=b[k].rightNull=void 0);var B=b[k].isNull;var t=z(b[k].rectPlotX,b[k].plotX);var G=l?z(b[k].yBottom,q):q;if(!B||e)e||a(k,k-1,"left"),B&&!l&&e||(h.push(b[k]),d.push({x:k,plotX:t,plotY:G})),e||a(k,k+1,"right")}k=f.call(this,h,!0,!0);d.reversed=!0;B=f.call(this,d,!0,!0);(G=B[0])&&"M"===G[0]&&(B[0]=["L",G[1],G[2]]);B=k.concat(B);B.length&&B.push(["Z"]);f=f.call(this,h,!1,e);B.xMap=k.xMap;this.areaPath=B;return f};f.prototype.getStackPoints=function(b){var f=this,e=[],l=[],
|
|
|
+m=this.xAxis,k=this.yAxis,d=k.stacking.stacks[this.stackKey],h={},n=k.series,g=n.length,c=k.options.reversedStacks?1:-1,q=n.indexOf(f);b=b||this.points;if(this.options.stacking){for(var a=0;a<b.length;a++)b[a].leftNull=b[a].rightNull=void 0,h[b[a].x]=b[a];t(d,function(a,c){null!==a.total&&l.push(c)});l.sort(function(a,c){return a-c});var B=n.map(function(a){return a.visible});l.forEach(function(a,b){var p=0,r,w;if(h[a]&&!h[a].isNull)e.push(h[a]),[-1,1].forEach(function(k){var p=1===k?"rightNull":
|
|
|
+"leftNull",e=0,v=d[l[b+k]];if(v)for(var m=q;0<=m&&m<g;){var N=n[m].index;r=v.points[N];r||(N===f.index?h[a][p]=!0:B[m]&&(w=d[a].points[N])&&(e-=w[1]-w[0]));m+=c}h[a][1===k?"rightCliff":"leftCliff"]=e});else{for(var v=q;0<=v&&v<g;){if(r=d[a].points[n[v].index]){p=r[1];break}v+=c}p=z(p,0);p=k.translate(p,0,1,0,1);e.push({isNull:!0,plotX:m.translate(a,0,0,0,1),x:a,plotY:p,yBottom:p})}})}return e};f.defaultOptions=G(C.defaultOptions,{threshold:0});return f}(C);e(y.prototype,{singleStacks:!1,drawLegendSymbol:h.drawRectangle});
|
|
|
+D.registerSeriesType("area",y);"";return y});P(e,"Series/Spline/SplineSeries.js",[e["Core/Series/SeriesRegistry.js"],e["Core/Utilities.js"]],function(e,h){var D=this&&this.__extends||function(){var e=function(h,t){e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,m){e.__proto__=m}||function(e,m){for(var f in m)m.hasOwnProperty(f)&&(e[f]=m[f])};return e(h,t)};return function(h,t){function z(){this.constructor=h}e(h,t);h.prototype=null===t?Object.create(t):(z.prototype=t.prototype,
|
|
|
+new z)}}(),y=e.seriesTypes.line,F=h.merge,E=h.pick;h=function(e){function h(){var h=null!==e&&e.apply(this,arguments)||this;h.data=void 0;h.options=void 0;h.points=void 0;return h}D(h,e);h.prototype.getPointSpline=function(e,h,m){var f=h.plotX||0,b=h.plotY||0,t=e[m-1];m=e[m+1];if(t&&!t.isNull&&!1!==t.doCurve&&!h.isCliff&&m&&!m.isNull&&!1!==m.doCurve&&!h.isCliff){e=t.plotY||0;var u=m.plotX||0;m=m.plotY||0;var l=0;var z=(1.5*f+(t.plotX||0))/2.5;var k=(1.5*b+e)/2.5;u=(1.5*f+u)/2.5;var d=(1.5*b+m)/2.5;
|
|
|
+u!==z&&(l=(d-k)*(u-f)/(u-z)+b-d);k+=l;d+=l;k>e&&k>b?(k=Math.max(e,b),d=2*b-k):k<e&&k<b&&(k=Math.min(e,b),d=2*b-k);d>m&&d>b?(d=Math.max(m,b),k=2*b-d):d<m&&d<b&&(d=Math.min(m,b),k=2*b-d);h.rightContX=u;h.rightContY=d}h=["C",E(t.rightContX,t.plotX,0),E(t.rightContY,t.plotY,0),E(z,f,0),E(k,b,0),f,b];t.rightContX=t.rightContY=void 0;return h};h.defaultOptions=F(y.defaultOptions);return h}(y);e.registerSeriesType("spline",h);"";return h});P(e,"Series/AreaSpline/AreaSplineSeries.js",[e["Series/Area/AreaSeries.js"],
|
|
|
+e["Series/Spline/SplineSeries.js"],e["Mixins/LegendSymbol.js"],e["Core/Series/SeriesRegistry.js"],e["Core/Utilities.js"]],function(e,h,D,y,F){var E=this&&this.__extends||function(){var e=function(m,f){e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,f){b.__proto__=f}||function(b,f){for(var e in f)f.hasOwnProperty(e)&&(b[e]=f[e])};return e(m,f)};return function(m,f){function b(){this.constructor=m}e(m,f);m.prototype=null===f?Object.create(f):(b.prototype=f.prototype,new b)}}(),C=
|
|
|
+e.prototype,G=F.extend,t=F.merge;F=function(z){function m(){var f=null!==z&&z.apply(this,arguments)||this;f.data=void 0;f.points=void 0;f.options=void 0;return f}E(m,z);m.defaultOptions=t(h.defaultOptions,e.defaultOptions);return m}(h);G(F.prototype,{getGraphPath:C.getGraphPath,getStackPoints:C.getStackPoints,drawGraph:C.drawGraph,drawLegendSymbol:D.drawRectangle});y.registerSeriesType("areaspline",F);"";return F});P(e,"Series/Column/ColumnSeries.js",[e["Core/Animation/AnimationUtilities.js"],e["Core/Color/Color.js"],
|
|
|
+e["Core/Globals.js"],e["Mixins/LegendSymbol.js"],e["Core/Color/Palette.js"],e["Core/Series/Series.js"],e["Core/Series/SeriesRegistry.js"],e["Core/Utilities.js"]],function(e,h,D,y,F,E,C,G){var t=this&&this.__extends||function(){var c=function(b,a){c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,c){a.__proto__=c}||function(a,c){for(var b in c)c.hasOwnProperty(b)&&(a[b]=c[b])};return c(b,a)};return function(b,a){function d(){this.constructor=b}c(b,a);b.prototype=null===a?Object.create(a):
|
|
|
+(d.prototype=a.prototype,new d)}}(),z=e.animObject,m=h.parse,f=D.hasTouch;e=D.noop;var b=G.clamp,A=G.css,u=G.defined,l=G.extend,I=G.fireEvent,k=G.isArray,d=G.isNumber,w=G.merge,n=G.pick,g=G.objectEach;G=function(c){function e(){var a=null!==c&&c.apply(this,arguments)||this;a.borderWidth=void 0;a.data=void 0;a.group=void 0;a.options=void 0;a.points=void 0;return a}t(e,c);e.prototype.animate=function(a){var c=this,d=this.yAxis,g=c.options,f=this.chart.inverted,k={},n=f?"translateX":"translateY";if(a)k.scaleY=
|
|
|
+.001,a=b(d.toPixels(g.threshold),d.pos,d.pos+d.len),f?k.translateX=a-d.len:k.translateY=a,c.clipBox&&c.setClip(),c.group.attr(k);else{var e=Number(c.group.attr(n));c.group.animate({scaleY:1},l(z(c.options.animation),{step:function(a,b){c.group&&(k[n]=e+b.pos*(d.pos-e),c.group.attr(k))}}))}};e.prototype.init=function(a,b){c.prototype.init.apply(this,arguments);var d=this;a=d.chart;a.hasRendered&&a.series.forEach(function(a){a.type===d.type&&(a.isDirty=!0)})};e.prototype.getColumnMetrics=function(){var a=
|
|
|
+this,c=a.options,b=a.xAxis,d=a.yAxis,g=b.options.reversedStacks;g=b.reversed&&!g||!b.reversed&&g;var f,k={},l=0;!1===c.grouping?l=1:a.chart.series.forEach(function(c){var b=c.yAxis,g=c.options;if(c.type===a.type&&(c.visible||!a.chart.options.chart.ignoreHiddenSeries)&&d.len===b.len&&d.pos===b.pos){if(g.stacking&&"group"!==g.stacking){f=c.stackKey;"undefined"===typeof k[f]&&(k[f]=l++);var n=k[f]}else!1!==g.grouping&&(n=l++);c.columnIndex=n}});var e=Math.min(Math.abs(b.transA)*(b.ordinal&&b.ordinal.slope||
|
|
|
+c.pointRange||b.closestPointRange||b.tickInterval||1),b.len),m=e*c.groupPadding,h=(e-2*m)/(l||1);c=Math.min(c.maxPointWidth||b.len,n(c.pointWidth,h*(1-2*c.pointPadding)));a.columnMetrics={width:c,offset:(h-c)/2+(m+((a.columnIndex||0)+(g?1:0))*h-e/2)*(g?-1:1),paddedWidth:h,columnCount:l};return a.columnMetrics};e.prototype.crispCol=function(a,c,b,d){var g=this.chart,f=this.borderWidth,k=-(f%2?.5:0);f=f%2?.5:1;g.inverted&&g.renderer.isVML&&(f+=1);this.options.crisp&&(b=Math.round(a+b)+k,a=Math.round(a)+
|
|
|
+k,b-=a);d=Math.round(c+d)+f;k=.5>=Math.abs(c)&&.5<d;c=Math.round(c)+f;d-=c;k&&d&&(--c,d+=1);return{x:a,y:c,width:b,height:d}};e.prototype.adjustForMissingColumns=function(a,c,b,d){var f=this,n=this.options.stacking;if(!b.isNull&&1<d.columnCount){var l=0,e=0;g(this.yAxis.stacking&&this.yAxis.stacking.stacks,function(a){if("number"===typeof b.x&&(a=a[b.x.toString()])){var c=a.points[f.index],d=a.total;n?(c&&(l=e),a.hasValidPoints&&e++):k(c)&&(l=c[1],e=d||0)}});a=(b.plotX||0)+((e-1)*d.paddedWidth+c)/
|
|
|
+2-c-l*d.paddedWidth}return a};e.prototype.translate=function(){var a=this,c=a.chart,g=a.options,f=a.dense=2>a.closestPointRange*a.xAxis.transA;f=a.borderWidth=n(g.borderWidth,f?0:1);var k=a.xAxis,l=a.yAxis,e=g.threshold,m=a.translatedThreshold=l.getThreshold(e),h=n(g.minPointLength,5),q=a.getColumnMetrics(),w=q.width,t=a.barW=Math.max(w,1+2*f),x=a.pointXOffset=q.offset,A=a.dataMin,z=a.dataMax;c.inverted&&(m-=.5);g.pointPadding&&(t=Math.ceil(t));E.prototype.translate.apply(a);a.points.forEach(function(f){var p=
|
|
|
+n(f.yBottom,m),r=999+Math.abs(p),v=w,N=f.plotX||0;r=b(f.plotY,-r,l.len+r);N+=x;var K=t,M=Math.min(r,p),B=Math.max(r,p)-M;if(h&&Math.abs(B)<h){B=h;var L=!l.reversed&&!f.negative||l.reversed&&f.negative;d(e)&&d(z)&&f.y===e&&z<=e&&(l.min||0)<e&&(A!==z||(l.max||0)<=e)&&(L=!L);M=Math.abs(M-m)>h?p-h:m-(L?h:0)}u(f.options.pointWidth)&&(v=K=Math.ceil(f.options.pointWidth),N-=Math.round((v-w)/2));g.centerInCategory&&(N=a.adjustForMissingColumns(N,v,f,q));f.barX=N;f.pointWidth=v;f.tooltipPos=c.inverted?[b(l.len+
|
|
|
+l.pos-c.plotLeft-r,l.pos-c.plotLeft,l.len+l.pos-c.plotLeft),k.len+k.pos-c.plotTop-N-K/2,B]:[k.left-c.plotLeft+N+K/2,b(r+l.pos-c.plotTop,l.pos-c.plotTop,l.len+l.pos-c.plotTop),B];f.shapeType=a.pointClass.prototype.shapeType||"rect";f.shapeArgs=a.crispCol.apply(a,f.isNull?[N,m,K,0]:[N,M,K,B])})};e.prototype.drawGraph=function(){this.group[this.dense?"addClass":"removeClass"]("highcharts-dense-data")};e.prototype.pointAttribs=function(a,c){var b=this.options,d=this.pointAttrToOptions||{};var g=d.stroke||
|
|
|
+"borderColor";var f=d["stroke-width"]||"borderWidth",k=a&&a.color||this.color,l=a&&a[g]||b[g]||k,e=a&&a[f]||b[f]||this[f]||0;d=a&&a.options.dashStyle||b.dashStyle;var h=n(a&&a.opacity,b.opacity,1);if(a&&this.zones.length){var q=a.getZone();k=a.options.color||q&&(q.color||a.nonZonedColor)||this.color;q&&(l=q.borderColor||l,d=q.dashStyle||d,e=q.borderWidth||e)}c&&a&&(a=w(b.states[c],a.options.states&&a.options.states[c]||{}),c=a.brightness,k=a.color||"undefined"!==typeof c&&m(k).brighten(a.brightness).get()||
|
|
|
+k,l=a[g]||l,e=a[f]||e,d=a.dashStyle||d,h=n(a.opacity,h));g={fill:k,stroke:l,"stroke-width":e,opacity:h};d&&(g.dashstyle=d);return g};e.prototype.drawPoints=function(){var a=this,c=this.chart,b=a.options,g=c.renderer,f=b.animationLimit||250,k;a.points.forEach(function(n){var p=n.graphic,l=!!p,e=p&&c.pointCount<f?"animate":"attr";if(d(n.plotY)&&null!==n.y){k=n.shapeArgs;p&&n.hasNewShapeType()&&(p=p.destroy());a.enabledDataSorting&&(n.startXPos=a.xAxis.reversed?-(k?k.width||0:0):a.xAxis.width);p||(n.graphic=
|
|
|
+p=g[n.shapeType](k).add(n.group||a.group))&&a.enabledDataSorting&&c.hasRendered&&c.pointCount<f&&(p.attr({x:n.startXPos}),l=!0,e="animate");if(p&&l)p[e](w(k));if(b.borderRadius)p[e]({r:b.borderRadius});c.styledMode||p[e](a.pointAttribs(n,n.selected&&"select")).shadow(!1!==n.allowShadow&&b.shadow,null,b.stacking&&!b.borderRadius);p&&(p.addClass(n.getClassName(),!0),p.attr({visibility:n.visible?"inherit":"hidden"}))}else p&&(n.graphic=p.destroy())})};e.prototype.drawTracker=function(){var a=this,c=
|
|
|
+a.chart,b=c.pointer,d=function(a){var c=b.getPointFromEvent(a);"undefined"!==typeof c&&(b.isDirectTouch=!0,c.onMouseOver(a))},g;a.points.forEach(function(a){g=k(a.dataLabels)?a.dataLabels:a.dataLabel?[a.dataLabel]:[];a.graphic&&(a.graphic.element.point=a);g.forEach(function(c){c.div?c.div.point=a:c.element.point=a})});a._hasTracking||(a.trackerGroups.forEach(function(g){if(a[g]){a[g].addClass("highcharts-tracker").on("mouseover",d).on("mouseout",function(a){b.onTrackerMouseOut(a)});if(f)a[g].on("touchstart",
|
|
|
+d);!c.styledMode&&a.options.cursor&&a[g].css(A).css({cursor:a.options.cursor})}}),a._hasTracking=!0);I(this,"afterDrawTracker")};e.prototype.remove=function(){var a=this,c=a.chart;c.hasRendered&&c.series.forEach(function(c){c.type===a.type&&(c.isDirty=!0)});E.prototype.remove.apply(a,arguments)};e.defaultOptions=w(E.defaultOptions,{borderRadius:0,centerInCategory:!1,groupPadding:.2,marker:null,pointPadding:.1,minPointLength:0,cropThreshold:50,pointRange:null,states:{hover:{halo:!1,brightness:.1},
|
|
|
+select:{color:F.neutralColor20,borderColor:F.neutralColor100}},dataLabels:{align:void 0,verticalAlign:void 0,y:void 0},startFromThreshold:!0,stickyTracking:!1,tooltip:{distance:6},threshold:0,borderColor:F.backgroundColor});return e}(E);l(G.prototype,{cropShoulder:0,directTouch:!0,drawLegendSymbol:y.drawRectangle,getSymbol:e,negStacks:!0,trackerGroups:["group","dataLabelsGroup"]});C.registerSeriesType("column",G);"";"";return G});P(e,"Series/Bar/BarSeries.js",[e["Series/Column/ColumnSeries.js"],e["Core/Series/SeriesRegistry.js"],
|
|
|
+e["Core/Utilities.js"]],function(e,h,D){var y=this&&this.__extends||function(){var e=function(h,t){e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,m){e.__proto__=m}||function(e,m){for(var f in m)m.hasOwnProperty(f)&&(e[f]=m[f])};return e(h,t)};return function(h,t){function z(){this.constructor=h}e(h,t);h.prototype=null===t?Object.create(t):(z.prototype=t.prototype,new z)}}(),F=D.extend,E=D.merge;D=function(h){function C(){var e=null!==h&&h.apply(this,arguments)||this;e.data=void 0;
|
|
|
+e.options=void 0;e.points=void 0;return e}y(C,h);C.defaultOptions=E(e.defaultOptions,{});return C}(e);F(D.prototype,{inverted:!0});h.registerSeriesType("bar",D);"";return D});P(e,"Series/Scatter/ScatterSeries.js",[e["Series/Column/ColumnSeries.js"],e["Series/Line/LineSeries.js"],e["Core/Series/SeriesRegistry.js"],e["Core/Utilities.js"]],function(e,h,D,y){var F=this&&this.__extends||function(){var e=function(h,m){e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,b){f.__proto__=b}||
|
|
|
+function(f,b){for(var e in b)b.hasOwnProperty(e)&&(f[e]=b[e])};return e(h,m)};return function(h,m){function f(){this.constructor=h}e(h,m);h.prototype=null===m?Object.create(m):(f.prototype=m.prototype,new f)}}(),E=y.addEvent,C=y.extend,G=y.merge;y=function(e){function t(){var m=null!==e&&e.apply(this,arguments)||this;m.data=void 0;m.options=void 0;m.points=void 0;return m}F(t,e);t.prototype.applyJitter=function(){var e=this,f=this.options.jitter,b=this.points.length;f&&this.points.forEach(function(m,
|
|
|
+h){["x","y"].forEach(function(l,u){var k="plot"+l.toUpperCase();if(f[l]&&!m.isNull){var d=e[l+"Axis"];var w=f[l]*d.transA;if(d&&!d.isLog){var n=Math.max(0,m[k]-w);d=Math.min(d.len,m[k]+w);u=1E4*Math.sin(h+u*b);m[k]=n+(d-n)*(u-Math.floor(u));"x"===l&&(m.clientX=m.plotX)}}})})};t.prototype.drawGraph=function(){(this.options.lineWidth||0===this.options.lineWidth&&this.graph&&this.graph.strokeWidth())&&e.prototype.drawGraph.call(this)};t.defaultOptions=G(h.defaultOptions,{lineWidth:0,findNearestPointBy:"xy",
|
|
|
+jitter:{x:0,y:0},marker:{enabled:!0},tooltip:{headerFormat:'<span style="color:{point.color}">\u25cf</span> <span style="font-size: 10px"> {series.name}</span><br/>',pointFormat:"x: <b>{point.x}</b><br/>y: <b>{point.y}</b><br/>"}});return t}(h);C(y.prototype,{drawTracker:e.prototype.drawTracker,sorted:!1,requireSorting:!1,noSharedTooltip:!0,trackerGroups:["group","markerGroup","dataLabelsGroup"],takeOrdinalPosition:!1});E(y,"afterTranslate",function(){this.applyJitter()});D.registerSeriesType("scatter",
|
|
|
+y);"";return y});P(e,"Mixins/CenteredSeries.js",[e["Core/Globals.js"],e["Core/Series/Series.js"],e["Core/Utilities.js"]],function(e,h,D){var y=D.isNumber,F=D.pick,E=D.relativeLength,C=e.deg2rad;return e.CenteredSeriesMixin={getCenter:function(){var e=this.options,t=this.chart,z=2*(e.slicedOffset||0),m=t.plotWidth-2*z,f=t.plotHeight-2*z,b=e.center,A=Math.min(m,f),u=e.size,l=e.innerSize||0;"string"===typeof u&&(u=parseFloat(u));"string"===typeof l&&(l=parseFloat(l));e=[F(b[0],"50%"),F(b[1],"50%"),F(u&&
|
|
|
+0>u?void 0:e.size,"100%"),F(l&&0>l?void 0:e.innerSize||0,"0%")];!t.angular||this instanceof h||(e[3]=0);for(b=0;4>b;++b)u=e[b],t=2>b||2===b&&/%$/.test(u),e[b]=E(u,[m,f,A,e[2]][b])+(t?z:0);e[3]>e[2]&&(e[3]=e[2]);return e},getStartAndEndRadians:function(e,h){e=y(e)?e:0;h=y(h)&&h>e&&360>h-e?h:e+360;return{start:C*(e+-90),end:C*(h+-90)}}}});P(e,"Series/Pie/PiePoint.js",[e["Core/Animation/AnimationUtilities.js"],e["Core/Series/Point.js"],e["Core/Utilities.js"]],function(e,h,D){var y=this&&this.__extends||
|
|
|
+function(){var e=function(f,b){e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,f){b.__proto__=f}||function(b,f){for(var e in f)f.hasOwnProperty(e)&&(b[e]=f[e])};return e(f,b)};return function(f,b){function m(){this.constructor=f}e(f,b);f.prototype=null===b?Object.create(b):(m.prototype=b.prototype,new m)}}(),F=e.setAnimation,E=D.addEvent,C=D.defined;e=D.extend;var G=D.isNumber,t=D.pick,z=D.relativeLength;D=function(e){function f(){var b=null!==e&&e.apply(this,arguments)||this;
|
|
|
+b.labelDistance=void 0;b.options=void 0;b.series=void 0;return b}y(f,e);f.prototype.getConnectorPath=function(){var b=this.labelPosition,f=this.series.options.dataLabels,e=f.connectorShape,l=this.connectorShapes;l[e]&&(e=l[e]);return e.call(this,{x:b.final.x,y:b.final.y,alignment:b.alignment},b.connectorPosition,f)};f.prototype.getTranslate=function(){return this.sliced?this.slicedTranslation:{translateX:0,translateY:0}};f.prototype.haloPath=function(b){var f=this.shapeArgs;return this.sliced||!this.visible?
|
|
|
+[]:this.series.chart.renderer.symbols.arc(f.x,f.y,f.r+b,f.r+b,{innerR:f.r-1,start:f.start,end:f.end})};f.prototype.init=function(){h.prototype.init.apply(this,arguments);var b=this;b.name=t(b.name,"Slice");var f=function(f){b.slice("select"===f.type)};E(b,"select",f);E(b,"unselect",f);return b};f.prototype.isValid=function(){return G(this.y)&&0<=this.y};f.prototype.setVisible=function(b,f){var e=this,l=e.series,m=l.chart,k=l.options.ignoreHiddenPoint;f=t(f,k);b!==e.visible&&(e.visible=e.options.visible=
|
|
|
+b="undefined"===typeof b?!e.visible:b,l.options.data[l.data.indexOf(e)]=e.options,["graphic","dataLabel","connector","shadowGroup"].forEach(function(d){if(e[d])e[d][b?"show":"hide"](b)}),e.legendItem&&m.legend.colorizeItem(e,b),b||"hover"!==e.state||e.setState(""),k&&(l.isDirty=!0),f&&m.redraw())};f.prototype.slice=function(b,f,e){var l=this.series;F(e,l.chart);t(f,!0);this.sliced=this.options.sliced=C(b)?b:!this.sliced;l.options.data[l.data.indexOf(this)]=this.options;this.graphic&&this.graphic.animate(this.getTranslate());
|
|
|
+this.shadowGroup&&this.shadowGroup.animate(this.getTranslate())};return f}(h);e(D.prototype,{connectorShapes:{fixedOffset:function(e,f,b){var m=f.breakAt;f=f.touchingSliceAt;return[["M",e.x,e.y],b.softConnector?["C",e.x+("left"===e.alignment?-5:5),e.y,2*m.x-f.x,2*m.y-f.y,m.x,m.y]:["L",m.x,m.y],["L",f.x,f.y]]},straight:function(e,f){f=f.touchingSliceAt;return[["M",e.x,e.y],["L",f.x,f.y]]},crookedLine:function(e,f,b){f=f.touchingSliceAt;var m=this.series,h=m.center[0],l=m.chart.plotWidth,t=m.chart.plotLeft;
|
|
|
+m=e.alignment;var k=this.shapeArgs.r;b=z(b.crookDistance,1);l="left"===m?h+k+(l+t-h-k)*(1-b):t+(h-k)*b;b=["L",l,e.y];h=!0;if("left"===m?l>e.x||l<f.x:l<e.x||l>f.x)h=!1;e=[["M",e.x,e.y]];h&&e.push(b);e.push(["L",f.x,f.y]);return e}}});return D});P(e,"Series/Pie/PieSeries.js",[e["Mixins/CenteredSeries.js"],e["Series/Column/ColumnSeries.js"],e["Core/Globals.js"],e["Mixins/LegendSymbol.js"],e["Core/Color/Palette.js"],e["Series/Pie/PiePoint.js"],e["Core/Series/Series.js"],e["Core/Series/SeriesRegistry.js"],
|
|
|
+e["Core/Renderer/SVG/SVGRenderer.js"],e["Core/Utilities.js"]],function(e,h,D,y,F,E,C,G,t,z){var m=this&&this.__extends||function(){var b=function(d,f){b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,c){b.__proto__=c}||function(b,c){for(var d in c)c.hasOwnProperty(d)&&(b[d]=c[d])};return b(d,f)};return function(d,f){function g(){this.constructor=d}b(d,f);d.prototype=null===f?Object.create(f):(g.prototype=f.prototype,new g)}}(),f=e.getStartAndEndRadians;D=D.noop;var b=z.clamp,A=
|
|
|
+z.extend,u=z.fireEvent,l=z.merge,I=z.pick,k=z.relativeLength;z=function(d){function e(){var b=null!==d&&d.apply(this,arguments)||this;b.center=void 0;b.data=void 0;b.maxLabelDistance=void 0;b.options=void 0;b.points=void 0;return b}m(e,d);e.prototype.animate=function(b){var d=this,c=d.points,f=d.startAngleRad;b||c.forEach(function(a){var c=a.graphic,b=a.shapeArgs;c&&b&&(c.attr({r:I(a.startR,d.center&&d.center[3]/2),start:f,end:f}),c.animate({r:b.r,start:b.start,end:b.end},d.options.animation))})};
|
|
|
+e.prototype.drawEmpty=function(){var b=this.startAngleRad,d=this.endAngleRad,c=this.options;if(0===this.total&&this.center){var f=this.center[0];var a=this.center[1];this.graph||(this.graph=this.chart.renderer.arc(f,a,this.center[1]/2,0,b,d).addClass("highcharts-empty-series").add(this.group));this.graph.attr({d:t.prototype.symbols.arc(f,a,this.center[2]/2,0,{start:b,end:d,innerR:this.center[3]/2})});this.chart.styledMode||this.graph.attr({"stroke-width":c.borderWidth,fill:c.fillColor||"none",stroke:c.color||
|
|
|
+F.neutralColor20})}else this.graph&&(this.graph=this.graph.destroy())};e.prototype.drawPoints=function(){var b=this.chart.renderer;this.points.forEach(function(d){d.graphic&&d.hasNewShapeType()&&(d.graphic=d.graphic.destroy());d.graphic||(d.graphic=b[d.shapeType](d.shapeArgs).add(d.series.group),d.delayedRendering=!0)})};e.prototype.generatePoints=function(){d.prototype.generatePoints.call(this);this.updateTotals()};e.prototype.getX=function(d,g,c){var f=this.center,a=this.radii?this.radii[c.index]||
|
|
|
+0:f[2]/2;d=Math.asin(b((d-f[1])/(a+c.labelDistance),-1,1));return f[0]+(g?-1:1)*Math.cos(d)*(a+c.labelDistance)+(0<c.labelDistance?(g?-1:1)*this.options.dataLabels.padding:0)};e.prototype.hasData=function(){return!!this.processedXData.length};e.prototype.redrawPoints=function(){var b=this,d=b.chart,c=d.renderer,f,a,k,e,m=b.options.shadow;this.drawEmpty();!m||b.shadowGroup||d.styledMode||(b.shadowGroup=c.g("shadow").attr({zIndex:-1}).add(b.group));b.points.forEach(function(g){var n={};a=g.graphic;
|
|
|
+if(!g.isNull&&a){var p=void 0;e=g.shapeArgs;f=g.getTranslate();d.styledMode||(p=g.shadowGroup,m&&!p&&(p=g.shadowGroup=c.g("shadow").add(b.shadowGroup)),p&&p.attr(f),k=b.pointAttribs(g,g.selected&&"select"));g.delayedRendering?(a.setRadialReference(b.center).attr(e).attr(f),d.styledMode||a.attr(k).attr({"stroke-linejoin":"round"}).shadow(m,p),g.delayedRendering=!1):(a.setRadialReference(b.center),d.styledMode||l(!0,n,k),l(!0,n,e,f),a.animate(n));a.attr({visibility:g.visible?"inherit":"hidden"});a.addClass(g.getClassName(),
|
|
|
+!0)}else a&&(g.graphic=a.destroy())})};e.prototype.sortByAngle=function(b,d){b.sort(function(c,b){return"undefined"!==typeof c.angle&&(b.angle-c.angle)*d})};e.prototype.translate=function(b){this.generatePoints();var d=0,c=this.options,e=c.slicedOffset,a=e+(c.borderWidth||0),n=f(c.startAngle,c.endAngle),l=this.startAngleRad=n.start;n=(this.endAngleRad=n.end)-l;var m=this.points,p=c.dataLabels.distance;c=c.ignoreHiddenPoint;var r,h=m.length;b||(this.center=b=this.getCenter());for(r=0;r<h;r++){var v=
|
|
|
+m[r];var w=l+d*n;!v.isValid()||c&&!v.visible||(d+=v.percentage/100);var K=l+d*n;var t={x:b[0],y:b[1],r:b[2]/2,innerR:b[3]/2,start:Math.round(1E3*w)/1E3,end:Math.round(1E3*K)/1E3};v.shapeType="arc";v.shapeArgs=t;v.labelDistance=I(v.options.dataLabels&&v.options.dataLabels.distance,p);v.labelDistance=k(v.labelDistance,t.r);this.maxLabelDistance=Math.max(this.maxLabelDistance||0,v.labelDistance);K=(K+w)/2;K>1.5*Math.PI?K-=2*Math.PI:K<-Math.PI/2&&(K+=2*Math.PI);v.slicedTranslation={translateX:Math.round(Math.cos(K)*
|
|
|
+e),translateY:Math.round(Math.sin(K)*e)};t=Math.cos(K)*b[2]/2;var H=Math.sin(K)*b[2]/2;v.tooltipPos=[b[0]+.7*t,b[1]+.7*H];v.half=K<-Math.PI/2||K>Math.PI/2?1:0;v.angle=K;w=Math.min(a,v.labelDistance/5);v.labelPosition={natural:{x:b[0]+t+Math.cos(K)*v.labelDistance,y:b[1]+H+Math.sin(K)*v.labelDistance},"final":{},alignment:0>v.labelDistance?"center":v.half?"right":"left",connectorPosition:{breakAt:{x:b[0]+t+Math.cos(K)*w,y:b[1]+H+Math.sin(K)*w},touchingSliceAt:{x:b[0]+t,y:b[1]+H}}}}u(this,"afterTranslate")};
|
|
|
+e.prototype.updateTotals=function(){var b,d=0,c=this.points,f=c.length,a=this.options.ignoreHiddenPoint;for(b=0;b<f;b++){var k=c[b];!k.isValid()||a&&!k.visible||(d+=k.y)}this.total=d;for(b=0;b<f;b++)k=c[b],k.percentage=0<d&&(k.visible||!a)?k.y/d*100:0,k.total=d};e.defaultOptions=l(C.defaultOptions,{center:[null,null],clip:!1,colorByPoint:!0,dataLabels:{allowOverlap:!0,connectorPadding:5,connectorShape:"fixedOffset",crookDistance:"70%",distance:30,enabled:!0,formatter:function(){return this.point.isNull?
|
|
|
+void 0:this.point.name},softConnector:!0,x:0},fillColor:void 0,ignoreHiddenPoint:!0,inactiveOtherPoints:!0,legendType:"point",marker:null,size:null,showInLegend:!1,slicedOffset:10,stickyTracking:!1,tooltip:{followPointer:!0},borderColor:F.backgroundColor,borderWidth:1,lineWidth:void 0,states:{hover:{brightness:.1}}});return e}(C);A(z.prototype,{axisTypes:[],directTouch:!0,drawGraph:void 0,drawLegendSymbol:y.drawRectangle,drawTracker:h.prototype.drawTracker,getCenter:e.getCenter,getSymbol:D,isCartesian:!1,
|
|
|
+noSharedTooltip:!0,pointAttribs:h.prototype.pointAttribs,pointClass:E,requireSorting:!1,searchPoint:D,trackerGroups:["group","dataLabelsGroup"]});G.registerSeriesType("pie",z);"";return z});P(e,"Core/Series/DataLabels.js",[e["Core/Animation/AnimationUtilities.js"],e["Core/FormatUtilities.js"],e["Core/Globals.js"],e["Core/Color/Palette.js"],e["Core/Series/Series.js"],e["Core/Series/SeriesRegistry.js"],e["Core/Utilities.js"]],function(e,h,D,y,F,E,C){var G=e.getDeferredAnimation,t=h.format;e=D.noop;
|
|
|
+E=E.seriesTypes;var z=C.arrayMax,m=C.clamp,f=C.defined,b=C.extend,A=C.fireEvent,u=C.isArray,l=C.merge,I=C.objectEach,k=C.pick,d=C.relativeLength,w=C.splat,n=C.stableSort;"";D.distribute=function(b,c,d){function a(a,c){return a.target-c.target}var g,f=!0,e=b,p=[];var l=0;var h=e.reducedLen||c;for(g=b.length;g--;)l+=b[g].size;if(l>h){n(b,function(a,c){return(c.rank||0)-(a.rank||0)});for(l=g=0;l<=h;)l+=b[g].size,g++;p=b.splice(g-1,b.length)}n(b,a);for(b=b.map(function(a){return{size:a.size,targets:[a.target],
|
|
|
+align:k(a.align,.5)}});f;){for(g=b.length;g--;)f=b[g],l=(Math.min.apply(0,f.targets)+Math.max.apply(0,f.targets))/2,f.pos=m(l-f.size*f.align,0,c-f.size);g=b.length;for(f=!1;g--;)0<g&&b[g-1].pos+b[g-1].size>b[g].pos&&(b[g-1].size+=b[g].size,b[g-1].targets=b[g-1].targets.concat(b[g].targets),b[g-1].align=.5,b[g-1].pos+b[g-1].size>c&&(b[g-1].pos=c-b[g-1].size),b.splice(g,1),f=!0)}e.push.apply(e,p);g=0;b.some(function(a){var b=0;if(a.targets.some(function(){e[g].pos=a.pos+b;if("undefined"!==typeof d&&
|
|
|
+Math.abs(e[g].pos-e[g].target)>d)return e.slice(0,g+1).forEach(function(a){delete a.pos}),e.reducedLen=(e.reducedLen||c)-.1*c,e.reducedLen>.1*c&&D.distribute(e,c,d),!0;b+=e[g].size;g++}))return!0});n(e,a)};F.prototype.drawDataLabels=function(){function b(a,c){var b=c.filter;return b?(c=b.operator,a=a[b.property],b=b.value,">"===c&&a>b||"<"===c&&a<b||">="===c&&a>=b||"<="===c&&a<=b||"=="===c&&a==b||"==="===c&&a===b?!0:!1):!0}function c(a,c){var b=[],d;if(u(a)&&!u(c))b=a.map(function(a){return l(a,c)});
|
|
|
+else if(u(c)&&!u(a))b=c.map(function(c){return l(a,c)});else if(u(a)||u(c))for(d=Math.max(a.length,c.length);d--;)b[d]=l(a[d],c[d]);else b=l(a,c);return b}var d=this,a=d.chart,e=d.options,n=e.dataLabels,m=d.points,p,r=d.hasRendered||0,h=n.animation;h=n.defer?G(a,h,d):{defer:0,duration:0};var v=a.renderer;n=c(c(a.options.plotOptions&&a.options.plotOptions.series&&a.options.plotOptions.series.dataLabels,a.options.plotOptions&&a.options.plotOptions[d.type]&&a.options.plotOptions[d.type].dataLabels),
|
|
|
+n);A(this,"drawDataLabels");if(u(n)||n.enabled||d._hasPointLabels){var N=d.plotGroup("dataLabelsGroup","data-labels",r?"inherit":"hidden",n.zIndex||6);N.attr({opacity:+r});!r&&(r=d.dataLabelsGroup)&&(d.visible&&N.show(!0),r[e.animation?"animate":"attr"]({opacity:1},h));m.forEach(function(g){p=w(c(n,g.dlOptions||g.options&&g.options.dataLabels));p.forEach(function(c,n){var p=c.enabled&&(!g.isNull||g.dataLabelOnNull)&&b(g,c),l=g.dataLabels?g.dataLabels[n]:g.dataLabel,m=g.connectors?g.connectors[n]:
|
|
|
+g.connector,h=k(c.distance,g.labelDistance),r=!l;if(p){var q=g.getLabelConfig();var w=k(c[g.formatPrefix+"Format"],c.format);q=f(w)?t(w,q,a):(c[g.formatPrefix+"Formatter"]||c.formatter).call(q,c);w=c.style;var u=c.rotation;a.styledMode||(w.color=k(c.color,w.color,d.color,y.neutralColor100),"contrast"===w.color?(g.contrastColor=v.getContrast(g.color||d.color),w.color=!f(h)&&c.inside||0>h||e.stacking?g.contrastColor:y.neutralColor100):delete g.contrastColor,e.cursor&&(w.cursor=e.cursor));var M={r:c.borderRadius||
|
|
|
+0,rotation:u,padding:c.padding,zIndex:1};a.styledMode||(M.fill=c.backgroundColor,M.stroke=c.borderColor,M["stroke-width"]=c.borderWidth);I(M,function(a,c){"undefined"===typeof a&&delete M[c]})}!l||p&&f(q)?p&&f(q)&&(l?M.text=q:(g.dataLabels=g.dataLabels||[],l=g.dataLabels[n]=u?v.text(q,0,-9999,c.useHTML).addClass("highcharts-data-label"):v.label(q,0,-9999,c.shape,null,null,c.useHTML,null,"data-label"),n||(g.dataLabel=l),l.addClass(" highcharts-data-label-color-"+g.colorIndex+" "+(c.className||"")+
|
|
|
+(c.useHTML?" highcharts-tracker":""))),l.options=c,l.attr(M),a.styledMode||l.css(w).shadow(c.shadow),l.added||l.add(N),c.textPath&&!c.useHTML&&(l.setTextPath(g.getDataLabelPath&&g.getDataLabelPath(l)||g.graphic,c.textPath),g.dataLabelPath&&!c.textPath.enabled&&(g.dataLabelPath=g.dataLabelPath.destroy())),d.alignDataLabel(g,l,c,null,r)):(g.dataLabel=g.dataLabel&&g.dataLabel.destroy(),g.dataLabels&&(1===g.dataLabels.length?delete g.dataLabels:delete g.dataLabels[n]),n||delete g.dataLabel,m&&(g.connector=
|
|
|
+g.connector.destroy(),g.connectors&&(1===g.connectors.length?delete g.connectors:delete g.connectors[n])))})})}A(this,"afterDrawDataLabels")};F.prototype.alignDataLabel=function(d,c,f,a,e){var g=this,n=this.chart,l=this.isCartesian&&n.inverted,m=this.enabledDataSorting,h=k(d.dlBox&&d.dlBox.centerX,d.plotX,-9999),v=k(d.plotY,-9999),q=c.getBBox(),w=f.rotation,u=f.align,t=n.isInsidePlot(h,Math.round(v),{inverted:l,paneCoordinates:!0,series:g}),x="justify"===k(f.overflow,m?"none":"justify"),B=this.visible&&
|
|
|
+!1!==d.visible&&(d.series.forceDL||m&&!x||t||k(f.inside,!!this.options.stacking)&&a&&n.isInsidePlot(h,l?a.x+1:a.y+a.height-1,{inverted:l,paneCoordinates:!0,series:g}));var A=function(a){m&&g.xAxis&&!x&&g.setDataLabelStartPos(d,c,e,t,a)};if(B){var z=n.renderer.fontMetrics(n.styledMode?void 0:f.style.fontSize,c).b;a=b({x:l?this.yAxis.len-v:h,y:Math.round(l?this.xAxis.len-h:v),width:0,height:0},a);b(f,{width:q.width,height:q.height});w?(x=!1,h=n.renderer.rotCorr(z,w),h={x:a.x+(f.x||0)+a.width/2+h.x,
|
|
|
+y:a.y+(f.y||0)+{top:0,middle:.5,bottom:1}[f.verticalAlign]*a.height},A(h),c[e?"attr":"animate"](h).attr({align:u}),A=(w+720)%360,A=180<A&&360>A,"left"===u?h.y-=A?q.height:0:"center"===u?(h.x-=q.width/2,h.y-=q.height/2):"right"===u&&(h.x-=q.width,h.y-=A?0:q.height),c.placed=!0,c.alignAttr=h):(A(a),c.align(f,void 0,a),h=c.alignAttr);x&&0<=a.height?this.justifyDataLabel(c,f,h,q,a,e):k(f.crop,!0)&&(B=n.isInsidePlot(h.x,h.y,{paneCoordinates:!0,series:g})&&n.isInsidePlot(h.x+q.width,h.y+q.height,{paneCoordinates:!0,
|
|
|
+series:g}));if(f.shape&&!w)c[e?"attr":"animate"]({anchorX:l?n.plotWidth-d.plotY:d.plotX,anchorY:l?n.plotHeight-d.plotX:d.plotY})}e&&m&&(c.placed=!1);B||m&&!x||(c.hide(!0),c.placed=!1)};F.prototype.setDataLabelStartPos=function(b,c,d,a,f){var g=this.chart,k=g.inverted,e=this.xAxis,n=e.reversed,l=k?c.height/2:c.width/2;b=(b=b.pointWidth)?b/2:0;e=k?f.x:n?-l-b:e.width-l+b;f=k?n?this.yAxis.height-l+b:-l-b:f.y;c.startXPos=e;c.startYPos=f;a?"hidden"===c.visibility&&(c.show(),c.attr({opacity:0}).animate({opacity:1})):
|
|
|
+c.attr({opacity:1}).animate({opacity:0},void 0,c.hide);g.hasRendered&&(d&&c.attr({x:c.startXPos,y:c.startYPos}),c.placed=!0)};F.prototype.justifyDataLabel=function(b,c,d,a,f,k){var g=this.chart,e=c.align,n=c.verticalAlign,l=b.box?0:b.padding||0,m=c.x;m=void 0===m?0:m;var h=c.y;var q=void 0===h?0:h;h=(d.x||0)+l;if(0>h){"right"===e&&0<=m?(c.align="left",c.inside=!0):m-=h;var w=!0}h=(d.x||0)+a.width-l;h>g.plotWidth&&("left"===e&&0>=m?(c.align="right",c.inside=!0):m+=g.plotWidth-h,w=!0);h=d.y+l;0>h&&
|
|
|
+("bottom"===n&&0<=q?(c.verticalAlign="top",c.inside=!0):q-=h,w=!0);h=(d.y||0)+a.height-l;h>g.plotHeight&&("top"===n&&0>=q?(c.verticalAlign="bottom",c.inside=!0):q+=g.plotHeight-h,w=!0);w&&(c.x=m,c.y=q,b.placed=!k,b.align(c,void 0,f));return w};E.pie&&(E.pie.prototype.dataLabelPositioners={radialDistributionY:function(b){return b.top+b.distributeBox.pos},radialDistributionX:function(b,c,d,a){return b.getX(d<c.top+2||d>c.bottom-2?a:d,c.half,c)},justify:function(b,c,d){return d[0]+(b.half?-1:1)*(c+b.labelDistance)},
|
|
|
+alignToPlotEdges:function(b,c,d,a){b=b.getBBox().width;return c?b+a:d-b-a},alignToConnectors:function(b,c,d,a){var g=0,f;b.forEach(function(a){f=a.dataLabel.getBBox().width;f>g&&(g=f)});return c?g+a:d-g-a}},E.pie.prototype.drawDataLabels=function(){var b=this,c=b.data,d,a=b.chart,e=b.options.dataLabels||{},n=e.connectorPadding,m,p=a.plotWidth,h=a.plotHeight,w=a.plotLeft,v=Math.round(a.chartWidth/3),u,t=b.center,A=t[2]/2,H=t[1],x,I,C,G,E=[[],[]],Q,T,P,W,V=[0,0,0,0],aa=b.dataLabelPositioners,X;b.visible&&
|
|
|
+(e.enabled||b._hasPointLabels)&&(c.forEach(function(a){a.dataLabel&&a.visible&&a.dataLabel.shortened&&(a.dataLabel.attr({width:"auto"}).css({width:"auto",textOverflow:"clip"}),a.dataLabel.shortened=!1)}),F.prototype.drawDataLabels.apply(b),c.forEach(function(a){a.dataLabel&&(a.visible?(E[a.half].push(a),a.dataLabel._pos=null,!f(e.style.width)&&!f(a.options.dataLabels&&a.options.dataLabels.style&&a.options.dataLabels.style.width)&&a.dataLabel.getBBox().width>v&&(a.dataLabel.css({width:Math.round(.7*
|
|
|
+v)+"px"}),a.dataLabel.shortened=!0)):(a.dataLabel=a.dataLabel.destroy(),a.dataLabels&&1===a.dataLabels.length&&delete a.dataLabels))}),E.forEach(function(c,g){var l=c.length,m=[],v;if(l){b.sortByAngle(c,g-.5);if(0<b.maxLabelDistance){var r=Math.max(0,H-A-b.maxLabelDistance);var q=Math.min(H+A+b.maxLabelDistance,a.plotHeight);c.forEach(function(c){0<c.labelDistance&&c.dataLabel&&(c.top=Math.max(0,H-A-c.labelDistance),c.bottom=Math.min(H+A+c.labelDistance,a.plotHeight),v=c.dataLabel.getBBox().height||
|
|
|
+21,c.distributeBox={target:c.labelPosition.natural.y-c.top+v/2,size:v,rank:c.y},m.push(c.distributeBox))});r=q+v-r;D.distribute(m,r,r/5)}for(W=0;W<l;W++){d=c[W];C=d.labelPosition;x=d.dataLabel;P=!1===d.visible?"hidden":"inherit";T=r=C.natural.y;m&&f(d.distributeBox)&&("undefined"===typeof d.distributeBox.pos?P="hidden":(G=d.distributeBox.size,T=aa.radialDistributionY(d)));delete d.positionIndex;if(e.justify)Q=aa.justify(d,A,t);else switch(e.alignTo){case "connectors":Q=aa.alignToConnectors(c,g,p,
|
|
|
+w);break;case "plotEdges":Q=aa.alignToPlotEdges(x,g,p,w);break;default:Q=aa.radialDistributionX(b,d,T,r)}x._attr={visibility:P,align:C.alignment};X=d.options.dataLabels||{};x._pos={x:Q+k(X.x,e.x)+({left:n,right:-n}[C.alignment]||0),y:T+k(X.y,e.y)-10};C.final.x=Q;C.final.y=T;k(e.crop,!0)&&(I=x.getBBox().width,r=null,Q-I<n&&1===g?(r=Math.round(I-Q+n),V[3]=Math.max(r,V[3])):Q+I>p-n&&0===g&&(r=Math.round(Q+I-p+n),V[1]=Math.max(r,V[1])),0>T-G/2?V[0]=Math.max(Math.round(-T+G/2),V[0]):T+G/2>h&&(V[2]=Math.max(Math.round(T+
|
|
|
+G/2-h),V[2])),x.sideOverflow=r)}}}),0===z(V)||this.verifyDataLabelOverflow(V))&&(this.placeDataLabels(),this.points.forEach(function(c){X=l(e,c.options.dataLabels);if(m=k(X.connectorWidth,1)){var d;u=c.connector;if((x=c.dataLabel)&&x._pos&&c.visible&&0<c.labelDistance){P=x._attr.visibility;if(d=!u)c.connector=u=a.renderer.path().addClass("highcharts-data-label-connector highcharts-color-"+c.colorIndex+(c.className?" "+c.className:"")).add(b.dataLabelsGroup),a.styledMode||u.attr({"stroke-width":m,
|
|
|
+stroke:X.connectorColor||c.color||y.neutralColor60});u[d?"attr":"animate"]({d:c.getConnectorPath()});u.attr("visibility",P)}else u&&(c.connector=u.destroy())}}))},E.pie.prototype.placeDataLabels=function(){this.points.forEach(function(b){var c=b.dataLabel,d;c&&b.visible&&((d=c._pos)?(c.sideOverflow&&(c._attr.width=Math.max(c.getBBox().width-c.sideOverflow,0),c.css({width:c._attr.width+"px",textOverflow:(this.options.dataLabels.style||{}).textOverflow||"ellipsis"}),c.shortened=!0),c.attr(c._attr),
|
|
|
+c[c.moved?"animate":"attr"](d),c.moved=!0):c&&c.attr({y:-9999}));delete b.distributeBox},this)},E.pie.prototype.alignDataLabel=e,E.pie.prototype.verifyDataLabelOverflow=function(b){var c=this.center,g=this.options,a=g.center,f=g.minSize||80,k=null!==g.size;if(!k){if(null!==a[0])var e=Math.max(c[2]-Math.max(b[1],b[3]),f);else e=Math.max(c[2]-b[1]-b[3],f),c[0]+=(b[3]-b[1])/2;null!==a[1]?e=m(e,f,c[2]-Math.max(b[0],b[2])):(e=m(e,f,c[2]-b[0]-b[2]),c[1]+=(b[0]-b[2])/2);e<c[2]?(c[2]=e,c[3]=Math.min(d(g.innerSize||
|
|
|
+0,e),e),this.translate(c),this.drawDataLabels&&this.drawDataLabels()):k=!0}return k});E.column&&(E.column.prototype.alignDataLabel=function(b,c,d,a,f){var g=this.chart.inverted,e=b.series,n=b.dlBox||b.shapeArgs,m=k(b.below,b.plotY>k(this.translatedThreshold,e.yAxis.len)),h=k(d.inside,!!this.options.stacking);n&&(a=l(n),0>a.y&&(a.height+=a.y,a.y=0),n=a.y+a.height-e.yAxis.len,0<n&&n<a.height&&(a.height-=n),g&&(a={x:e.yAxis.len-a.y-a.height,y:e.xAxis.len-a.x-a.width,width:a.height,height:a.width}),h||
|
|
|
+(g?(a.x+=m?0:a.width,a.width=0):(a.y+=m?a.height:0,a.height=0)));d.align=k(d.align,!g||h?"center":m?"right":"left");d.verticalAlign=k(d.verticalAlign,g||h?"middle":m?"top":"bottom");F.prototype.alignDataLabel.call(this,b,c,d,a,f);d.inside&&b.contrastColor&&c.css({color:b.contrastColor})})});P(e,"Extensions/OverlappingDataLabels.js",[e["Core/Chart/Chart.js"],e["Core/Utilities.js"]],function(e,h){function D(e,m){var f=!1;if(e){var b=e.newOpacity;e.oldOpacity!==b&&(e.alignAttr&&e.placed?(e[b?"removeClass":
|
|
|
+"addClass"]("highcharts-data-label-hidden"),f=!0,e.alignAttr.opacity=b,e[e.isOld?"animate":"attr"](e.alignAttr,null,function(){m.styledMode||e.css({pointerEvents:b?"auto":"none"});e.visibility=b?"inherit":"hidden"}),F(m,"afterHideOverlappingLabel")):e.attr({opacity:b}));e.isOld=!0}return f}var y=h.addEvent,F=h.fireEvent,E=h.isArray,C=h.isNumber,G=h.objectEach,t=h.pick;y(e,"render",function(){var e=this,m=[];(this.labelCollectors||[]).forEach(function(f){m=m.concat(f())});(this.yAxis||[]).forEach(function(f){f.stacking&&
|
|
|
+f.options.stackLabels&&!f.options.stackLabels.allowOverlap&&G(f.stacking.stacks,function(b){G(b,function(b){m.push(b.label)})})});(this.series||[]).forEach(function(f){var b=f.options.dataLabels;f.visible&&(!1!==b.enabled||f._hasPointLabels)&&(b=function(b){return b.forEach(function(b){b.visible&&(E(b.dataLabels)?b.dataLabels:b.dataLabel?[b.dataLabel]:[]).forEach(function(f){var l=f.options;f.labelrank=t(l.labelrank,b.labelrank,b.shapeArgs&&b.shapeArgs.height);l.allowOverlap?(f.oldOpacity=f.opacity,
|
|
|
+f.newOpacity=1,D(f,e)):m.push(f)})})},b(f.nodes||[]),b(f.points))});this.hideOverlappingLabels(m)});e.prototype.hideOverlappingLabels=function(e){var m=this,f=e.length,b=m.renderer,h,u,l,t=!1;var k=function(d){var g,c=d.box?0:d.padding||0,f=g=0,a;if(d&&(!d.alignAttr||d.placed)){var k=d.alignAttr||{x:d.attr("x"),y:d.attr("y")};var e=d.parentGroup;d.width||(g=d.getBBox(),d.width=g.width,d.height=g.height,g=b.fontMetrics(null,d.element).h);var n=d.width-2*c;(a={left:"0",center:"0.5",right:"1"}[d.alignValue])?
|
|
|
+f=+a*n:C(d.x)&&Math.round(d.x)!==d.translateX&&(f=d.x-d.translateX);return{x:k.x+(e.translateX||0)+c-(f||0),y:k.y+(e.translateY||0)+c-g,width:d.width-2*c,height:d.height-2*c}}};for(u=0;u<f;u++)if(h=e[u])h.oldOpacity=h.opacity,h.newOpacity=1,h.absoluteBox=k(h);e.sort(function(b,d){return(d.labelrank||0)-(b.labelrank||0)});for(u=0;u<f;u++){var d=(k=e[u])&&k.absoluteBox;for(h=u+1;h<f;++h){var w=(l=e[h])&&l.absoluteBox;!d||!w||k===l||0===k.newOpacity||0===l.newOpacity||w.x>=d.x+d.width||w.x+w.width<=
|
|
|
+d.x||w.y>=d.y+d.height||w.y+w.height<=d.y||((k.labelrank<l.labelrank?k:l).newOpacity=0)}}e.forEach(function(b){D(b,m)&&(t=!0)});t&&F(m,"afterHideAllOverlappingLabels")}});P(e,"Core/Responsive.js",[e["Core/Chart/Chart.js"],e["Core/Utilities.js"]],function(e,h){var D=h.find,y=h.isArray,F=h.isObject,E=h.merge,C=h.objectEach,G=h.pick,t=h.splat,z=h.uniqueKey;e.prototype.setResponsive=function(e,f){var b=this.options.responsive,m=[],h=this.currentResponsive;!f&&b&&b.rules&&b.rules.forEach(function(b){"undefined"===
|
|
|
+typeof b._id&&(b._id=z());this.matchResponsiveRule(b,m)},this);f=E.apply(0,m.map(function(f){return D(b.rules,function(b){return b._id===f}).chartOptions}));f.isResponsiveOptions=!0;m=m.toString()||void 0;m!==(h&&h.ruleIds)&&(h&&this.update(h.undoOptions,e,!0),m?(h=this.currentOptions(f),h.isResponsiveOptions=!0,this.currentResponsive={ruleIds:m,mergedOptions:f,undoOptions:h},this.update(f,e,!0)):this.currentResponsive=void 0)};e.prototype.matchResponsiveRule=function(e,f){var b=e.condition;(b.callback||
|
|
|
+function(){return this.chartWidth<=G(b.maxWidth,Number.MAX_VALUE)&&this.chartHeight<=G(b.maxHeight,Number.MAX_VALUE)&&this.chartWidth>=G(b.minWidth,0)&&this.chartHeight>=G(b.minHeight,0)}).call(this)&&f.push(e._id)};e.prototype.currentOptions=function(e){function f(e,l,m,k){var d;C(e,function(e,n){if(!k&&-1<b.collectionsWithUpdate.indexOf(n)&&l[n])for(e=t(e),m[n]=[],d=0;d<Math.max(e.length,l[n].length);d++)l[n][d]&&(void 0===e[d]?m[n][d]=l[n][d]:(m[n][d]={},f(e[d],l[n][d],m[n][d],k+1)));else F(e)?
|
|
|
+(m[n]=y(e)?[]:{},f(e,l[n]||{},m[n],k+1)):m[n]="undefined"===typeof l[n]?null:l[n]})}var b=this,m={};f(e,this.options,m,0);return m}});P(e,"masters/highcharts.src.js",[e["Core/Globals.js"],e["Core/Utilities.js"],e["Core/Options.js"],e["Core/Animation/Fx.js"],e["Core/Animation/AnimationUtilities.js"],e["Core/Renderer/HTML/AST.js"],e["Core/FormatUtilities.js"],e["Core/Renderer/SVG/SVGElement.js"],e["Core/Series/Series.js"]],function(e,h,D,y,F,E,C,G,t){e.animate=F.animate;e.animObject=F.animObject;e.getDeferredAnimation=
|
|
|
+F.getDeferredAnimation;e.setAnimation=F.setAnimation;e.stop=F.stop;e.timers=y.timers;e.AST=E;e.Fx=y;e.Series=t;e.SVGElement=G;e.dateFormat=C.dateFormat;e.format=C.format;e.numberFormat=C.numberFormat;e.defaultOptions=D.defaultOptions;e.getOptions=D.getOptions;e.time=D.defaultTime;e.setOptions=D.setOptions;e.addEvent=h.addEvent;e.arrayMax=h.arrayMax;e.arrayMin=h.arrayMin;e.attr=h.attr;e.clearTimeout=h.clearTimeout;e.correctFloat=h.correctFloat;e.createElement=h.createElement;e.css=h.css;e.defined=
|
|
|
+h.defined;e.destroyObjectProperties=h.destroyObjectProperties;e.discardElement=h.discardElement;e.erase=h.erase;e.error=h.error;e.extend=h.extend;e.extendClass=h.extendClass;e.find=h.find;e.fireEvent=h.fireEvent;e.getMagnitude=h.getMagnitude;e.getStyle=h.getStyle;e.inArray=h.inArray;e.isArray=h.isArray;e.isClass=h.isClass;e.isDOMElement=h.isDOMElement;e.isFunction=h.isFunction;e.isNumber=h.isNumber;e.isObject=h.isObject;e.isString=h.isString;e.keys=h.keys;e.merge=h.merge;e.normalizeTickInterval=h.normalizeTickInterval;
|
|
|
+e.objectEach=h.objectEach;e.offset=h.offset;e.pad=h.pad;e.pick=h.pick;e.pInt=h.pInt;e.relativeLength=h.relativeLength;e.removeEvent=h.removeEvent;e.splat=h.splat;e.stableSort=h.stableSort;e.syncTimeout=h.syncTimeout;e.timeUnits=h.timeUnits;e.uniqueKey=h.uniqueKey;e.useSerialIds=h.useSerialIds;e.wrap=h.wrap;return e});P(e,"Series/XRange/XRangePoint.js",[e["Core/Series/Point.js"],e["Core/Series/SeriesRegistry.js"],e["Core/Utilities.js"]],function(e,h,D){var y=this&&this.__extends||function(){var e=
|
|
|
+function(h,C){e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,h){e.__proto__=h}||function(e,h){for(var t in h)h.hasOwnProperty(t)&&(e[t]=h[t])};return e(h,C)};return function(h,C){function y(){this.constructor=h}e(h,C);h.prototype=null===C?Object.create(C):(y.prototype=C.prototype,new y)}}();D=D.extend;h=function(h){function E(){var e=null!==h&&h.apply(this,arguments)||this;e.options=void 0;e.series=void 0;return e}y(E,h);E.getColorByCategory=function(e,h){var t=e.options.colors||
|
|
|
+e.chart.options.colors;e=h.y%(t?t.length:e.chart.options.chart.colorCount);return{colorIndex:e,color:t&&t[e]}};E.prototype.resolveColor=function(){var e=this.series;if(e.options.colorByPoint&&!this.options.color){var h=E.getColorByCategory(e,this);e.chart.styledMode||(this.color=h.color);this.options.colorIndex||(this.colorIndex=h.colorIndex)}else this.color||(this.color=e.color)};E.prototype.init=function(){e.prototype.init.apply(this,arguments);this.y||(this.y=0);return this};E.prototype.setState=
|
|
|
+function(){e.prototype.setState.apply(this,arguments);this.series.drawPoint(this,this.series.getAnimationVerb())};E.prototype.getLabelConfig=function(){var h=e.prototype.getLabelConfig.call(this),y=this.series.yAxis.categories;h.x2=this.x2;h.yCategory=this.yCategory=y&&y[this.y];return h};E.prototype.isValid=function(){return"number"===typeof this.x&&"number"===typeof this.x2};return E}(h.seriesTypes.column.prototype.pointClass);D(h.prototype,{tooltipDateKeys:["x","x2"]});return h});P(e,"Series/XRange/XRangeComposition.js",
|
|
|
+[e["Core/Axis/Axis.js"],e["Core/Utilities.js"]],function(e,h){var D=h.addEvent,y=h.pick;D(e,"afterGetSeriesExtremes",function(){var e=this.series,h;if(this.isXAxis){var C=y(this.dataMax,-Number.MAX_VALUE);e.forEach(function(e){e.x2Data&&e.x2Data.forEach(function(e){e>C&&(C=e,h=!0)})});h&&(this.dataMax=C)}})});P(e,"Series/XRange/XRangeSeries.js",[e["Core/Globals.js"],e["Core/Color/Color.js"],e["Core/Series/SeriesRegistry.js"],e["Core/Utilities.js"],e["Series/XRange/XRangePoint.js"]],function(e,h,D,
|
|
|
+y,F){var E=this&&this.__extends||function(){var b=function(d,f){b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,c){b.__proto__=c}||function(b,c){for(var d in c)c.hasOwnProperty(d)&&(b[d]=c[d])};return b(d,f)};return function(d,f){function g(){this.constructor=d}b(d,f);d.prototype=null===f?Object.create(f):(g.prototype=f.prototype,new g)}}(),C=h.parse,G=D.series,t=D.seriesTypes.column,z=t.prototype,m=y.clamp,f=y.correctFloat,b=y.defined;h=y.extend;var A=y.find,u=y.isNumber,l=y.isObject,
|
|
|
+I=y.merge,k=y.pick;y=function(d){function e(){var b=null!==d&&d.apply(this,arguments)||this;b.data=void 0;b.options=void 0;b.points=void 0;return b}E(e,d);e.prototype.init=function(){t.prototype.init.apply(this,arguments);this.options.stacking=void 0};e.prototype.getColumnMetrics=function(){function b(){d.series.forEach(function(c){var a=c.xAxis;c.xAxis=c.yAxis;c.yAxis=a})}var d=this.chart;b();var c=z.getColumnMetrics.call(this);b();return c};e.prototype.cropData=function(b,d,c,f){d=G.prototype.cropData.call(this,
|
|
|
+this.x2Data,d,c,f);d.xData=b.slice(d.start,d.end);return d};e.prototype.findPointIndex=function(b){var d=this.cropped,c=this.cropStart,f=this.points,a=b.id;if(a)var e=(e=A(f,function(c){return c.id===a}))?e.index:void 0;"undefined"===typeof e&&(e=(e=A(f,function(a){return a.x===b.x&&a.x2===b.x2&&!a.touched}))?e.index:void 0);d&&u(e)&&u(c)&&e>=c&&(e-=c);return e};e.prototype.translatePoint=function(d){var g=this.xAxis,c=this.yAxis,f=this.columnMetrics,a=this.options,e=a.minPointLength||0,n=(d.shapeArgs&&
|
|
|
+d.shapeArgs.width||0)/2,h=this.pointXOffset=f.offset,p=d.plotX,r=k(d.x2,d.x+(d.len||0)),w=g.translate(r,0,0,0,1);r=Math.abs(w-p);var v=this.chart.inverted,N=k(a.borderWidth,1)%2/2,t=f.offset,A=Math.round(f.width);e&&(e-=r,0>e&&(e=0),p-=e/2,w+=e/2);p=Math.max(p,-10);w=m(w,-10,g.len+10);b(d.options.pointWidth)&&(t-=(Math.ceil(d.options.pointWidth)-A)/2,A=Math.ceil(d.options.pointWidth));a.pointPlacement&&u(d.plotY)&&c.categories&&(d.plotY=c.translate(d.y,0,1,0,1,a.pointPlacement));a={x:Math.floor(Math.min(p,
|
|
|
+w))+N,y:Math.floor(d.plotY+t)+N,width:Math.round(Math.abs(w-p)),height:A,r:this.options.borderRadius};d.shapeArgs=a;v?d.tooltipPos[1]+=h+n:d.tooltipPos[0]-=n+h-a.width/2;n=a.x;h=n+a.width;0>n||h>g.len?(n=m(n,0,g.len),h=m(h,0,g.len),e=h-n,d.dlBox=I(a,{x:n,width:h-n,centerX:e?e/2:null})):d.dlBox=null;n=d.tooltipPos;h=v?1:0;e=v?0:1;f=this.columnMetrics?this.columnMetrics.offset:-f.width/2;n[h]=v?n[h]+a.width/2:n[h]+(g.reversed?-1:0)*a.width;n[e]=m(n[e]+(v?-1:1)*f,0,c.len-1);if(c=d.partialFill)l(c)&&
|
|
|
+(c=c.amount),u(c)||(c=0),d.partShapeArgs=I(a,{r:this.options.borderRadius}),p=Math.max(Math.round(r*c+d.plotX-p),0),d.clipRectArgs={x:g.reversed?a.x+r-p:a.x,y:a.y,width:p,height:a.height}};e.prototype.translate=function(){z.translate.apply(this,arguments);this.points.forEach(function(b){this.translatePoint(b)},this)};e.prototype.drawPoint=function(b,d){var c=this.options,g=this.chart.renderer,a=b.graphic,f=b.shapeType,e=b.shapeArgs,n=b.partShapeArgs,p=b.clipRectArgs,h=b.partialFill,m=c.stacking&&
|
|
|
+!c.borderRadius,v=b.state,w=c.states[v||"normal"]||{},u="undefined"===typeof v?"attr":d;v=this.pointAttribs(b,v);w=k(this.chart.options.chart.animation,w.animation);if(b.isNull||!1===b.visible)a&&(b.graphic=a.destroy());else{if(a)a.rect[d](e);else b.graphic=a=g.g("point").addClass(b.getClassName()).add(b.group||this.group),a.rect=g[f](I(e)).addClass(b.getClassName()).addClass("highcharts-partfill-original").add(a);n&&(a.partRect?(a.partRect[d](I(n)),a.partialClipRect[d](I(p))):(a.partialClipRect=
|
|
|
+g.clipRect(p.x,p.y,p.width,p.height),a.partRect=g[f](n).addClass("highcharts-partfill-overlay").add(a).clip(a.partialClipRect)));this.chart.styledMode||(a.rect[d](v,w).shadow(c.shadow,null,m),n&&(l(h)||(h={}),l(c.partialFill)&&(h=I(c.partialFill,h)),b=h.fill||C(v.fill).brighten(-.3).get()||C(b.color||this.color).brighten(-.3).get(),v.fill=b,a.partRect[u](v,w).shadow(c.shadow,null,m)))}};e.prototype.drawPoints=function(){var b=this,d=b.getAnimationVerb();b.points.forEach(function(c){b.drawPoint(c,
|
|
|
+d)})};e.prototype.getAnimationVerb=function(){return this.chart.pointCount<(this.options.animationLimit||250)?"animate":"attr"};e.prototype.isPointInside=function(b){var g=b.shapeArgs,c=b.plotX,f=b.plotY;return g?"undefined"!==typeof c&&"undefined"!==typeof f&&0<=f&&f<=this.yAxis.len&&0<=(g.x||0)+(g.width||0)&&c<=this.xAxis.len:d.prototype.isPointInside.apply(this,arguments)};e.defaultOptions=I(t.defaultOptions,{colorByPoint:!0,dataLabels:{formatter:function(){var b=this.point.partialFill;l(b)&&(b=
|
|
|
+b.amount);if(u(b)&&0<b)return f(100*b)+"%"},inside:!0,verticalAlign:"middle"},tooltip:{headerFormat:'<span style="font-size: 10px">{point.x} - {point.x2}</span><br/>',pointFormat:'<span style="color:{point.color}">\u25cf</span> {series.name}: <b>{point.yCategory}</b><br/>'},borderRadius:3,pointRange:0});return e}(t);h(y.prototype,{type:"xrange",parallelArrays:["x","x2","y"],requireSorting:!1,animate:G.prototype.animate,cropShoulder:1,getExtremesFromAll:!0,autoIncrement:e.noop,buildKDTree:e.noop,pointClass:F});
|
|
|
+D.registerSeriesType("xrange",y);"";return y});P(e,"Series/Gantt/GanttPoint.js",[e["Core/Series/SeriesRegistry.js"],e["Core/Utilities.js"]],function(e,h){var D=this&&this.__extends||function(){var e=function(h,y){e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,h){e.__proto__=h}||function(e,h){for(var t in h)h.hasOwnProperty(t)&&(e[t]=h[t])};return e(h,y)};return function(h,y){function C(){this.constructor=h}e(h,y);h.prototype=null===y?Object.create(y):(C.prototype=y.prototype,
|
|
|
+new C)}}(),y=h.pick;return function(e){function h(){var h=null!==e&&e.apply(this,arguments)||this;h.options=void 0;h.series=void 0;return h}D(h,e);h.setGanttPointAliases=function(e){function h(h,z){"undefined"!==typeof z&&(e[h]=z)}h("x",y(e.start,e.x));h("x2",y(e.end,e.x2));h("partialFill",y(e.completed,e.partialFill))};h.prototype.applyOptions=function(y,D){y=e.prototype.applyOptions.call(this,y,D);h.setGanttPointAliases(y);return y};h.prototype.isValid=function(){return("number"===typeof this.start||
|
|
|
+"number"===typeof this.x)&&("number"===typeof this.end||"number"===typeof this.x2||this.milestone)};return h}(e.seriesTypes.xrange.prototype.pointClass)});P(e,"Gantt/Tree.js",[e["Core/Utilities.js"]],function(e){var h=e.extend,D=e.isNumber,y=e.pick,F=function(e,h){var t=e.reduce(function(e,h){var f=y(h.parent,"");"undefined"===typeof e[f]&&(e[f]=[]);e[f].push(h);return e},{});Object.keys(t).forEach(function(e,m){var f=t[e];""!==e&&-1===h.indexOf(e)&&(f.forEach(function(b){m[""].push(b)}),delete m[e])});
|
|
|
+return t},E=function(e,G,t,z,m,f){var b=0,A=0,u=f&&f.after,l=f&&f.before;G={data:z,depth:t-1,id:e,level:t,parent:G};var I,k;"function"===typeof l&&l(G,f);l=(m[e]||[]).map(function(d){var l=E(d.id,e,t+1,d,m,f),n=d.start;d=!0===d.milestone?n:d.end;I=!D(I)||n<I?n:I;k=!D(k)||d>k?d:k;b=b+1+l.descendants;A=Math.max(l.height+1,A);return l});z&&(z.start=y(z.start,I),z.end=y(z.end,k));h(G,{children:l,descendants:b,height:A});"function"===typeof u&&u(G,f);return G};return{getListOfParents:F,getNode:E,getTree:function(e,
|
|
|
+h){var t=e.map(function(e){return e.id});e=F(e,t);return E("",null,1,null,e,h)}}});P(e,"Core/Axis/TreeGridTick.js",[e["Core/Color/Palette.js"],e["Core/Utilities.js"]],function(e,h){var D=h.addEvent,y=h.isObject,F=h.isNumber,E=h.pick,C=h.wrap,G;(function(h){function t(){this.treeGrid||(this.treeGrid=new u(this))}function m(b,f){b=b.treeGrid;var k=!b.labelIcon,d=f.renderer,l=f.xy,n=f.options,g=n.width||0,c=n.height||0,h=l.x-g/2-(n.padding||0);l=l.y-c/2;var a=f.collapsed?90:180,m=f.show&&F(l),u=b.labelIcon;
|
|
|
+u||(b.labelIcon=u=d.path(d.symbols[n.type](n.x||0,n.y||0,g,c)).addClass("highcharts-label-icon").add(f.group));u.attr({y:m?0:-9999});d.styledMode||u.attr({cursor:"pointer",fill:E(f.color,e.neutralColor60),"stroke-width":1,stroke:n.lineColor,strokeWidth:n.lineWidth||0});u[k?"attr":"animate"]({translateX:h,translateY:l,rotation:a})}function f(b,f,e,d,h,n,g,c,m){var a=E(this.options&&this.options.labels,n);n=this.pos;var k=this.axis,l="treegrid"===k.options.type;b=b.apply(this,[f,e,d,h,a,g,c,m]);l&&
|
|
|
+(f=a&&y(a.symbol,!0)?a.symbol:{},a=a&&F(a.indentation)?a.indentation:0,n=(n=(k=k.treeGrid.mapOfPosToGridNode)&&k[n])&&n.depth||1,b.x+=(f.width||0)+2*(f.padding||0)+(n-1)*a);return b}function b(b){var f=this,e=f.pos,d=f.axis,l=f.label,n=d.treeGrid.mapOfPosToGridNode,g=d.options,c=E(f.options&&f.options.labels,g&&g.labels),h=c&&y(c.symbol,!0)?c.symbol:{},a=(n=n&&n[e])&&n.depth;g="treegrid"===g.type;var u=-1<d.tickPositions.indexOf(e);e=d.chart.styledMode;g&&n&&l&&l.element&&l.addClass("highcharts-treegrid-node-level-"+
|
|
|
+a);b.apply(f,Array.prototype.slice.call(arguments,1));g&&l&&l.element&&n&&n.descendants&&0<n.descendants&&(d=d.treeGrid.isCollapsed(n),m(f,{color:!e&&l.styles&&l.styles.color||"",collapsed:d,group:l.parentGroup,options:h,renderer:l.renderer,show:u,xy:l.xy}),h="highcharts-treegrid-node-"+(d?"expanded":"collapsed"),l.addClass("highcharts-treegrid-node-"+(d?"collapsed":"expanded")).removeClass(h),e||l.css({cursor:"pointer"}),[l,f.treeGrid.labelIcon].forEach(function(a){a&&!a.attachedTreeGridEvents&&
|
|
|
+(D(a.element,"mouseover",function(){l.addClass("highcharts-treegrid-node-active");l.renderer.styledMode||l.css({textDecoration:"underline"})}),D(a.element,"mouseout",function(){var a=y(c.style)?c.style:{};l.removeClass("highcharts-treegrid-node-active");l.renderer.styledMode||l.css({textDecoration:a.textDecoration})}),D(a.element,"click",function(){f.treeGrid.toggleCollapse()}),a.attachedTreeGridEvents=!0)}))}var A=!1;h.compose=function(e){A||(D(e,"init",t),C(e.prototype,"getLabelPosition",f),C(e.prototype,
|
|
|
+"renderLabel",b),e.prototype.collapse=function(b){this.treeGrid.collapse(b)},e.prototype.expand=function(b){this.treeGrid.expand(b)},e.prototype.toggleCollapse=function(b){this.treeGrid.toggleCollapse(b)},A=!0)};var u=function(){function b(b){this.tick=b}b.prototype.collapse=function(b){var f=this.tick,d=f.axis,e=d.brokenAxis;e&&d.treeGrid.mapOfPosToGridNode&&(f=d.treeGrid.collapse(d.treeGrid.mapOfPosToGridNode[f.pos]),e.setBreaks(f,E(b,!0)))};b.prototype.expand=function(b){var f=this.tick,d=f.axis,
|
|
|
+e=d.brokenAxis;e&&d.treeGrid.mapOfPosToGridNode&&(f=d.treeGrid.expand(d.treeGrid.mapOfPosToGridNode[f.pos]),e.setBreaks(f,E(b,!0)))};b.prototype.toggleCollapse=function(b){var f=this.tick,d=f.axis,e=d.brokenAxis;e&&d.treeGrid.mapOfPosToGridNode&&(f=d.treeGrid.toggleCollapse(d.treeGrid.mapOfPosToGridNode[f.pos]),e.setBreaks(f,E(b,!0)))};return b}();h.Additions=u})(G||(G={}));return G});P(e,"Mixins/TreeSeries.js",[e["Core/Color/Color.js"],e["Core/Utilities.js"]],function(e,h){var D=h.extend,y=h.isArray,
|
|
|
+F=h.isNumber,E=h.isObject,C=h.merge,G=h.pick;return{getColor:function(h,z){var m=z.index,f=z.mapOptionsToLevel,b=z.parentColor,t=z.parentColorIndex,u=z.series,l=z.colors,I=z.siblings,k=u.points,d=u.chart.options.chart,w;if(h){k=k[h.i];h=f[h.level]||{};if(f=k&&h.colorByPoint){var n=k.index%(l?l.length:d.colorCount);var g=l&&l[n]}if(!u.chart.styledMode){l=k&&k.options.color;d=h&&h.color;if(w=b)w=(w=h&&h.colorVariation)&&"brightness"===w.key?e.parse(b).brighten(m/I*w.to).get():b;w=G(l,d,g,w,u.color)}var c=
|
|
|
+G(k&&k.options.colorIndex,h&&h.colorIndex,n,t,z.colorIndex)}return{color:w,colorIndex:c}},getLevelOptions:function(e){var h=null;if(E(e)){h={};var m=F(e.from)?e.from:1;var f=e.levels;var b={};var t=E(e.defaults)?e.defaults:{};y(f)&&(b=f.reduce(function(b,f){if(E(f)&&F(f.level)){var e=C({},f);var k="boolean"===typeof e.levelIsConstant?e.levelIsConstant:t.levelIsConstant;delete e.levelIsConstant;delete e.level;f=f.level+(k?0:m-1);E(b[f])?D(b[f],e):b[f]=e}return b},{}));f=F(e.to)?e.to:1;for(e=0;e<=f;e++)h[e]=
|
|
|
+C({},t,E(b[e])?b[e]:{})}return h},setTreeValues:function f(e,h){var b=h.before,m=h.idRoot,u=h.mapIdToNode[m],l=h.points[e.i],I=l&&l.options||{},k=0,d=[];e.levelDynamic=e.level-(("boolean"===typeof h.levelIsConstant?h.levelIsConstant:1)?0:u.level);e.name=G(l&&l.name,"");e.visible=m===e.id||("boolean"===typeof h.visible?h.visible:!1);"function"===typeof b&&(e=b(e,h));e.children.forEach(function(b,l){var g=D({},h);D(g,{index:l,siblings:e.children.length,visible:e.visible});b=f(b,g);d.push(b);b.visible&&
|
|
|
+(k+=b.val)});e.visible=0<k||e.visible;b=G(I.value,k);e.children=d;e.childrenTotal=k;e.isLeaf=e.visible&&!k;e.val=b;return e},updateRootId:function(e){if(E(e)){var h=E(e.options)?e.options:{};h=G(e.rootNode,h.rootId,"");E(e.userOptions)&&(e.userOptions.rootId=h);e.rootNode=h}return h}}});P(e,"Core/Axis/GridAxis.js",[e["Core/Axis/Axis.js"],e["Core/Globals.js"],e["Core/Axis/Tick.js"],e["Core/Utilities.js"]],function(e,h,D,y){var F=y.addEvent,E=y.defined,C=y.erase,G=y.find,t=y.isArray,z=y.isNumber,m=
|
|
|
+y.merge,f=y.pick,b=y.timeUnits,A=y.wrap,u=h.Chart;"";e.prototype.getMaxLabelDimensions=function(b,d){var f={width:0,height:0};d.forEach(function(d){d=b[d];if(y.isObject(d,!0)){var g=y.isObject(d.label,!0)?d.label:{};d=g.getBBox?g.getBBox().height:0;g.textStr&&!z(g.textPxLength)&&(g.textPxLength=g.getBBox().width);var c=z(g.textPxLength)?Math.round(g.textPxLength):0;g.textStr&&(c=Math.round(g.getBBox().width));f.height=Math.max(d,f.height);f.width=Math.max(c,f.width)}});return f};h.dateFormats.W=function(b){b=
|
|
|
+new this.Date(b);var d=(this.get("Day",b)+6)%7,f=new this.Date(b.valueOf());this.set("Date",f,this.get("Date",b)-d+3);d=new this.Date(this.get("FullYear",f),0,1);4!==this.get("Day",d)&&(this.set("Month",b,0),this.set("Date",b,1+(11-this.get("Day",d))%7));return(1+Math.floor((f.valueOf()-d.valueOf())/6048E5)).toString()};h.dateFormats.E=function(b){return this.dateFormat("%a",b,!0).charAt(0)};F(u,"afterSetChartSize",function(){this.axes.forEach(function(b){(b.grid&&b.grid.columns||[]).forEach(function(b){b.setAxisSize();
|
|
|
+b.setAxisTranslation()})})});F(D,"afterGetLabelPosition",function(b){var d=this.label,f=this.axis,e=f.reversed,g=f.chart,c=f.options.grid||{},k=f.options.labels,a=k.align,l=I.Side[f.side],h=b.tickmarkOffset,m=f.tickPositions,p=this.pos-h;m=z(m[b.index+1])?m[b.index+1]-h:f.max+h;var r=f.tickSize("tick");h=r?r[0]:0;r=r?r[1]/2:0;if(!0===c.enabled){if("top"===l){c=f.top+f.offset;var u=c-h}else"bottom"===l?(u=g.chartHeight-f.bottom+f.offset,c=u+h):(c=f.top+f.len-f.translate(e?m:p),u=f.top+f.len-f.translate(e?
|
|
|
+p:m));"right"===l?(l=g.chartWidth-f.right+f.offset,e=l+h):"left"===l?(e=f.left+f.offset,l=e-h):(l=Math.round(f.left+f.translate(e?m:p))-r,e=Math.round(f.left+f.translate(e?p:m))-r);this.slotWidth=e-l;b.pos.x="left"===a?l:"right"===a?e:l+(e-l)/2;b.pos.y=u+(c-u)/2;g=g.renderer.fontMetrics(k.style.fontSize,d.element);d=d.getBBox().height;k.useHTML?b.pos.y+=g.b+-(d/2):(d=Math.round(d/g.h),b.pos.y+=(g.b-(g.h-g.f))/2+-((d-1)*g.h/2));b.pos.x+=f.horiz&&k.x||0}});F(D,"labelFormat",function(b){var d=b.axis,
|
|
|
+f=b.value;if(d.options.grid&&d.options.grid.enabled){var e=d.tickPositions,g=(d.linkedParent||d).series[0],c=f===e[0];e=f===e[e.length-1];var k=g&&G(g.options.data,function(a){return a[d.isXAxis?"x":"y"]===f}),a=void 0;k&&g.is("gantt")&&(a=m(k),h.seriesTypes.gantt.prototype.pointClass.setGanttPointAliases(a));b.isFirst=c;b.isLast=e;b.point=a}});var l=function(){function b(b){this.axis=b}b.prototype.isOuterAxis=function(){var b=this.axis,f=b.grid.columnIndex,e=b.linkedParent&&b.linkedParent.grid.columns||
|
|
|
+b.grid.columns,g=f?b.linkedParent:b,c=-1,k=0;b.chart[b.coll].forEach(function(a,d){a.side!==b.side||a.options.isInternal||(k=d,a===g&&(c=d))});return k===c&&(z(f)?e.length===f:!0)};b.prototype.renderBorder=function(b){var d=this.axis,f=d.chart.renderer,g=d.options;b=f.path(b).addClass("highcharts-axis-line").add(d.axisBorder);f.styledMode||b.attr({stroke:g.lineColor,"stroke-width":g.lineWidth,zIndex:7});return b};return b}(),I=function(){function k(){}k.compose=function(b){e.keepProps.push("grid");
|
|
|
+A(b.prototype,"unsquish",k.wrapUnsquish);F(b,"init",k.onInit);F(b,"afterGetOffset",k.onAfterGetOffset);F(b,"afterGetTitlePosition",k.onAfterGetTitlePosition);F(b,"afterInit",k.onAfterInit);F(b,"afterRender",k.onAfterRender);F(b,"afterSetAxisTranslation",k.onAfterSetAxisTranslation);F(b,"afterSetOptions",k.onAfterSetOptions);F(b,"afterSetOptions",k.onAfterSetOptions2);F(b,"afterSetScale",k.onAfterSetScale);F(b,"afterTickSize",k.onAfterTickSize);F(b,"trimTicks",k.onTrimTicks);F(b,"destroy",k.onDestroy)};
|
|
|
+k.onAfterGetOffset=function(){var b=this.grid;(b&&b.columns||[]).forEach(function(b){b.getOffset()})};k.onAfterGetTitlePosition=function(b){if(!0===(this.options.grid||{}).enabled){var d=this.axisTitle,e=this.height,g=this.horiz,c=this.left,l=this.offset,a=this.opposite,h=this.options,m=this.top,u=this.width,p=this.tickSize(),r=d&&d.getBBox().width,t=h.title.x,v=h.title.y,N=f(h.title.margin,g?5:10);d=this.chart.renderer.fontMetrics(h.title.style.fontSize,d).f;p=(g?m+e:c)+(g?1:-1)*(a?-1:1)*(p?p[0]/
|
|
|
+2:0)+(this.side===k.Side.bottom?d:0);b.titlePosition.x=g?c-(r||0)/2-N+t:p+(a?u:0)+l+t;b.titlePosition.y=g?p-(a?e:0)+(a?d:-d)/2+l+v:m-N+v}};k.onAfterInit=function(){var b=this.chart,k=this.options.grid;k=void 0===k?{}:k;var l=this.userOptions;if(k.enabled){var g=this.options;g.labels.align=f(g.labels.align,"center");this.categories||(g.showLastLabel=!1);this.labelRotation=0;g.labels.rotation=0}if(k.columns){g=this.grid.columns=[];for(var c=this.grid.columnIndex=0;++c<k.columns.length;){var h=m(l,k.columns[k.columns.length-
|
|
|
+c-1],{linkedTo:0,type:"category",scrollbar:{enabled:!1}});delete h.grid.columns;h=new e(this.chart,h);h.grid.isColumn=!0;h.grid.columnIndex=c;C(b.axes,h);C(b[this.coll],h);g.push(h)}}};k.onAfterRender=function(){var b=this.grid,f=this.options;if(!0===(f.grid||{}).enabled){this.maxLabelDimensions=this.getMaxLabelDimensions(this.ticks,this.tickPositions);this.rightWall&&this.rightWall.destroy();if(this.grid&&this.grid.isOuterAxis()&&this.axisLine&&(f=f.lineWidth)){f=this.getLinePath(f);var e=f[0],g=
|
|
|
+f[1],c=((this.tickSize("tick")||[1])[0]-1)*(this.side===k.Side.top||this.side===k.Side.left?-1:1);"M"===e[0]&&"L"===g[0]&&(this.horiz?(e[2]+=c,g[2]+=c):(e[1]+=c,g[1]+=c));!this.horiz&&this.chart.marginRight&&(e=[e,["L",this.left,e[2]]],c=["L",this.chart.chartWidth-this.chart.marginRight,this.toPixels(this.max+this.tickmarkOffset)],g=[["M",g[1],this.toPixels(this.max+this.tickmarkOffset)],c],this.grid.upperBorder||0===this.min%1||(this.grid.upperBorder=this.grid.renderBorder(e)),this.grid.upperBorder&&
|
|
|
+this.grid.upperBorder.animate({d:e}),this.grid.lowerBorder||0===this.max%1||(this.grid.lowerBorder=this.grid.renderBorder(g)),this.grid.lowerBorder&&this.grid.lowerBorder.animate({d:g}));this.grid.axisLineExtra?this.grid.axisLineExtra.animate({d:f}):this.grid.axisLineExtra=this.grid.renderBorder(f);this.axisLine[this.showAxis?"show":"hide"](!0)}(b&&b.columns||[]).forEach(function(c){c.render()});!this.horiz&&this.chart.hasRendered&&(this.scrollbar||this.linkedParent&&this.linkedParent.scrollbar)&&
|
|
|
+(b=this.max,f=this.tickmarkOffset,g=this.tickPositions[this.tickPositions.length-1],e=this.tickPositions[0],this.min-e>f?this.ticks[e].label.hide():this.ticks[e].label.show(),g-b>f?this.ticks[g].label.hide():this.ticks[g].label.show(),g-b<f&&0<g-b&&this.ticks[g].isLast?this.ticks[g].mark.hide():this.ticks[g-1]&&this.ticks[g-1].mark.show())}};k.onAfterSetAxisTranslation=function(){var b=this.tickPositions&&this.tickPositions.info,f=this.options,e=this.userOptions.labels||{};(f.grid||{}).enabled&&(this.horiz?
|
|
|
+(this.series.forEach(function(b){b.options.pointRange=0}),b&&f.dateTimeLabelFormats&&f.labels&&!E(e.align)&&(!1===f.dateTimeLabelFormats[b.unitName].range||1<b.count)&&(f.labels.align="left",E(e.x)||(f.labels.x=3))):"treegrid"!==this.options.type&&this.grid&&this.grid.columns&&(this.minPointOffset=this.tickInterval))};k.onAfterSetOptions=function(d){var e=this.options;d=d.userOptions;var k=e&&y.isObject(e.grid,!0)?e.grid:{};if(!0===k.enabled){var g=m(!0,{className:"highcharts-grid-axis "+(d.className||
|
|
|
+""),dateTimeLabelFormats:{hour:{list:["%H:%M","%H"]},day:{list:["%A, %e. %B","%a, %e. %b","%E"]},week:{list:["Week %W","W%W"]},month:{list:["%B","%b","%o"]}},grid:{borderWidth:1},labels:{padding:2,style:{fontSize:"13px"}},margin:0,title:{text:null,reserveSpace:!1,rotation:0},units:[["millisecond",[1,10,100]],["second",[1,10]],["minute",[1,5,15]],["hour",[1,6]],["day",[1]],["week",[1]],["month",[1]],["year",null]]},d);"xAxis"===this.coll&&(E(d.linkedTo)&&!E(d.tickPixelInterval)&&(g.tickPixelInterval=
|
|
|
+350),E(d.tickPixelInterval)||!E(d.linkedTo)||E(d.tickPositioner)||E(d.tickInterval)||(g.tickPositioner=function(c,d){var a=this.linkedParent&&this.linkedParent.tickPositions&&this.linkedParent.tickPositions.info;if(a){var f=void 0,e=void 0,k=void 0,l,h=g.units;for(l=0;l<h.length;l++)if(h[l][0]===a.unitName){f=l;break}h[f+1]?(k=h[f+1][0],e=(h[f+1][1]||[1])[0]):"year"===a.unitName&&(k="year",e=10*a.count);a=b[k];this.tickInterval=a*e;return this.getTimeTicks({unitRange:a,count:e,unitName:k},c,d,this.options.startOfWeek)}}));
|
|
|
+m(!0,this.options,g);this.horiz&&(e.minPadding=f(d.minPadding,0),e.maxPadding=f(d.maxPadding,0));z(e.grid.borderWidth)&&(e.tickWidth=e.lineWidth=k.borderWidth)}};k.onAfterSetOptions2=function(b){b=(b=b.userOptions)&&b.grid||{};var d=b.columns;b.enabled&&d&&m(!0,this.options,d[d.length-1])};k.onAfterSetScale=function(){(this.grid.columns||[]).forEach(function(b){b.setScale()})};k.onAfterTickSize=function(b){var d=e.defaultLeftAxisOptions,f=this.horiz,g=this.maxLabelDimensions,c=this.options.grid;c=
|
|
|
+void 0===c?{}:c;c.enabled&&g&&(d=2*Math.abs(d.labels.x),f=f?c.cellHeight||d+g.height:d+g.width,t(b.tickSize)?b.tickSize[0]=f:b.tickSize=[f,0])};k.onDestroy=function(b){var d=this.grid;(d.columns||[]).forEach(function(d){d.destroy(b.keepEvents)});d.columns=void 0};k.onInit=function(b){b=b.userOptions||{};var d=b.grid||{};d.enabled&&E(d.borderColor)&&(b.tickColor=b.lineColor=d.borderColor);this.grid||(this.grid=new l(this))};k.onTrimTicks=function(){var b=this.options,f=this.categories,e=this.tickPositions,
|
|
|
+g=e[0],c=e[e.length-1],k=this.linkedParent&&this.linkedParent.min||this.min,a=this.linkedParent&&this.linkedParent.max||this.max,l=this.tickInterval;!0!==(b.grid||{}).enabled||f||!this.horiz&&!this.isLinked||(g<k&&g+l>k&&!b.startOnTick&&(e[0]=k),c>a&&c-l<a&&!b.endOnTick&&(e[e.length-1]=a))};k.wrapUnsquish=function(b){var d=this.options.grid;return!0===(void 0===d?{}:d).enabled&&this.categories?this.tickInterval:b.apply(this,Array.prototype.slice.call(arguments,1))};return k}();(function(b){b=b.Side||
|
|
|
+(b.Side={});b[b.top=0]="top";b[b.right=1]="right";b[b.bottom=2]="bottom";b[b.left=3]="left"})(I||(I={}));I.compose(e);return I});P(e,"Core/Axis/BrokenAxis.js",[e["Core/Axis/Axis.js"],e["Core/Series/Series.js"],e["Extensions/Stacking.js"],e["Core/Utilities.js"]],function(e,h,D,y){var F=y.addEvent,E=y.find,C=y.fireEvent,G=y.isArray,t=y.isNumber,z=y.pick,m=function(){function f(b){this.hasBreaks=!1;this.axis=b}f.isInBreak=function(b,f){var e=b.repeat||Infinity,l=b.from,h=b.to-b.from;f=f>=l?(f-l)%e:e-
|
|
|
+(l-f)%e;return b.inclusive?f<=h:f<h&&0!==f};f.lin2Val=function(b){var e=this.brokenAxis;e=e&&e.breakArray;if(!e||!t(b))return b;var h;for(h=0;h<e.length;h++){var l=e[h];if(l.from>=b)break;else l.to<b?b+=l.len:f.isInBreak(l,b)&&(b+=l.len)}return b};f.val2Lin=function(b){var e=this.brokenAxis;e=e&&e.breakArray;if(!e||!t(b))return b;var h=b,l;for(l=0;l<e.length;l++){var m=e[l];if(m.to<=b)h-=m.len;else if(m.from>=b)break;else if(f.isInBreak(m,b)){h-=b-m.from;break}}return h};f.prototype.findBreakAt=function(b,
|
|
|
+f){return E(f,function(f){return f.from<b&&b<f.to})};f.prototype.isInAnyBreak=function(b,e){var h=this.axis,l=h.options.breaks||[],m=l.length,k;if(m&&t(b)){for(;m--;)if(f.isInBreak(l[m],b)){var d=!0;k||(k=z(l[m].showPoints,!h.isXAxis))}var w=d&&e?d&&!k:d}return w};f.prototype.setBreaks=function(b,h){var m=this,l=m.axis,A=G(b)&&!!b.length;l.isDirty=m.hasBreaks!==A;m.hasBreaks=A;l.options.breaks=l.userOptions.breaks=b;l.forceRedraw=!0;l.series.forEach(function(b){b.isDirty=!0});A||l.val2lin!==f.val2Lin||
|
|
|
+(delete l.val2lin,delete l.lin2val);A&&(l.userOptions.ordinal=!1,l.lin2val=f.lin2Val,l.val2lin=f.val2Lin,l.setExtremes=function(b,d,f,l,g){if(m.hasBreaks){for(var c,k=this.options.breaks;c=m.findBreakAt(b,k);)b=c.to;for(;c=m.findBreakAt(d,k);)d=c.from;d<b&&(d=b)}e.prototype.setExtremes.call(this,b,d,f,l,g)},l.setAxisTranslation=function(){e.prototype.setAxisTranslation.call(this);m.unitLength=void 0;if(m.hasBreaks){var b=l.options.breaks||[],d=[],h=[],n=0,g,c=l.userMin||l.min,q=l.userMax||l.max,a=
|
|
|
+z(l.pointRangePadding,0),u;b.forEach(function(a){g=a.repeat||Infinity;t(c)&&t(q)&&(f.isInBreak(a,c)&&(c+=a.to%g-c%g),f.isInBreak(a,q)&&(q-=q%g-a.from%g))});b.forEach(function(a){I=a.from;g=a.repeat||Infinity;if(t(c)&&t(q)){for(;I-g>c;)I-=g;for(;I<c;)I+=g;for(u=I;u<q;u+=g)d.push({value:u,move:"in"}),d.push({value:u+a.to-a.from,move:"out",size:a.breakSize})}});d.sort(function(a,b){return a.value===b.value?("in"===a.move?0:1)-("in"===b.move?0:1):a.value-b.value});var A=0;var I=c;d.forEach(function(a){A+=
|
|
|
+"in"===a.move?1:-1;1===A&&"in"===a.move&&(I=a.value);0===A&&t(I)&&(h.push({from:I,to:a.value,len:a.value-I-(a.size||0)}),n+=a.value-I-(a.size||0))});m.breakArray=h;t(c)&&t(q)&&t(l.min)&&(m.unitLength=q-c-n+a,C(l,"afterBreaks"),l.staticScale?l.transA=l.staticScale:m.unitLength&&(l.transA*=(q-l.min+a)/m.unitLength),a&&(l.minPixelPadding=l.transA*(l.minPointOffset||0)),l.min=c,l.max=q)}});z(h,!0)&&l.chart.redraw()};return f}();y=function(){function f(){}f.compose=function(b,f){b.keepProps.push("brokenAxis");
|
|
|
+var e=h.prototype;e.drawBreaks=function(b,f){var e=this,d=e.points,h,l,g,c;if(b&&b.brokenAxis&&b.brokenAxis.hasBreaks){var m=b.brokenAxis;f.forEach(function(a){h=m&&m.breakArray||[];l=b.isXAxis?b.min:z(e.options.threshold,b.min);d.forEach(function(d){c=z(d["stack"+a.toUpperCase()],d[a]);h.forEach(function(a){if(t(l)&&t(c)){g=!1;if(l<a.from&&c>a.to||l>a.from&&c<a.from)g="pointBreak";else if(l<a.from&&c>a.from&&c<a.to||l>a.from&&c>a.to&&c<a.from)g="pointInBreak";g&&C(b,g,{point:d,brk:a})}})})})}};e.gappedPath=
|
|
|
+function(){var b=this.currentDataGrouping,f=b&&b.gapSize;b=this.options.gapSize;var e=this.points.slice(),d=e.length-1,h=this.yAxis,m;if(b&&0<d)for("value"!==this.options.gapUnit&&(b*=this.basePointRange),f&&f>b&&f>=this.basePointRange&&(b=f),m=void 0;d--;)m&&!1!==m.visible||(m=e[d+1]),f=e[d],!1!==m.visible&&!1!==f.visible&&(m.x-f.x>b&&(m=(f.x+m.x)/2,e.splice(d+1,0,{isNull:!0,x:m}),h.stacking&&this.options.stacking&&(m=h.stacking.stacks[this.stackKey][m]=new D(h,h.options.stackLabels,!1,m,this.stack),
|
|
|
+m.total=0)),m=f);return this.getGraphPath(e)};F(b,"init",function(){this.brokenAxis||(this.brokenAxis=new m(this))});F(b,"afterInit",function(){"undefined"!==typeof this.brokenAxis&&this.brokenAxis.setBreaks(this.options.breaks,!1)});F(b,"afterSetTickPositions",function(){var b=this.brokenAxis;if(b&&b.hasBreaks){var f=this.tickPositions,e=this.tickPositions.info,d=[],h;for(h=0;h<f.length;h++)b.isInAnyBreak(f[h])||d.push(f[h]);this.tickPositions=d;this.tickPositions.info=e}});F(b,"afterSetOptions",
|
|
|
+function(){this.brokenAxis&&this.brokenAxis.hasBreaks&&(this.options.ordinal=!1)});F(f,"afterGeneratePoints",function(){var b=this.options.connectNulls,f=this.points,e=this.xAxis,d=this.yAxis;if(this.isDirty)for(var h=f.length;h--;){var m=f[h],g=!(null===m.y&&!1===b)&&(e&&e.brokenAxis&&e.brokenAxis.isInAnyBreak(m.x,!0)||d&&d.brokenAxis&&d.brokenAxis.isInAnyBreak(m.y,!0));m.visible=g?!1:!1!==m.options.visible}});F(f,"afterRender",function(){this.drawBreaks(this.xAxis,["x"]);this.drawBreaks(this.yAxis,
|
|
|
+z(this.pointArrayMap,["y"]))})};return f}();y.compose(e,h);return y});P(e,"Core/Axis/TreeGridAxis.js",[e["Core/Axis/Axis.js"],e["Core/Axis/Tick.js"],e["Gantt/Tree.js"],e["Core/Axis/TreeGridTick.js"],e["Mixins/TreeSeries.js"],e["Core/Utilities.js"]],function(e,h,D,y,F,E){var C=F.getLevelOptions,G=E.addEvent,t=E.find,z=E.fireEvent,m=E.isArray,f=E.isObject,b=E.isString,A=E.merge,u=E.pick,l=E.wrap,I;(function(e){function d(a,b){var c=a.collapseStart||0;a=a.collapseEnd||0;a>=b&&(c-=.5);return{from:c,to:a,
|
|
|
+showPoints:!1}}function k(a,c,d){var g=[],e=[],k={},h={},l=-1,m="boolean"===typeof c?c:!1;a=D.getTree(a,{after:function(a){a=h[a.pos];var b=0,c=0;a.children.forEach(function(a){c+=(a.descendants||0)+1;b=Math.max((a.height||0)+1,b)});a.descendants=c;a.height=b;a.collapsed&&e.push(a)},before:function(a){var c=f(a.data,!0)?a.data:{},d=b(c.name)?c.name:"",e=k[a.parent];e=f(e,!0)?h[e.pos]:null;var p=function(a){return a.name===d},n;m&&f(e,!0)&&(n=t(e.children,p))?(p=n.pos,n.nodes.push(a)):p=l++;h[p]||
|
|
|
+(h[p]=n={depth:e?e.depth+1:0,name:d,id:c.id,nodes:[a],children:[],pos:p},-1!==p&&g.push(d),f(e,!0)&&e.children.push(n));b(a.id)&&(k[a.id]=a);n&&!0===c.collapsed&&(n.collapsed=!0);a.pos=p}});h=function(a,b){var c=function(a,d,g){var e=d+(-1===d?0:b-1),k=(e-d)/2,h=d+k;a.nodes.forEach(function(a){var b=a.data;f(b,!0)&&(b.y=d+(b.seriesIndex||0),delete b.seriesIndex);a.pos=h});g[h]=a;a.pos=h;a.tickmarkOffset=k+.5;a.collapseStart=e+.5;a.children.forEach(function(a){c(a,e+1,g);e=(a.collapseEnd||0)-.5});
|
|
|
+a.collapseEnd=e+.5;return g};return c(a["-1"],-1,{})}(h,d);return{categories:g,mapOfIdToNode:k,mapOfPosToGridNode:h,collapsedNodes:e,tree:a}}function n(a){a.target.axes.filter(function(a){return"treegrid"===a.options.type}).forEach(function(b){var c=b.options||{},d=c.labels,g=c.uniqueNames,e=0;c=c.max;if(!b.treeGrid.mapOfPosToGridNode||b.series.some(function(a){return!a.hasRendered||a.isDirtyData||a.isDirty})){var h=b.series.reduce(function(a,b){b.visible&&((b.options.data||[]).forEach(function(c){b.options.keys&&
|
|
|
+b.options.keys.length&&(c=b.pointClass.prototype.optionsToObject.call({series:b},c),b.pointClass.setGanttPointAliases(c));f(c,!0)&&(c.seriesIndex=e,a.push(c))}),!0===g&&e++);return a},[]);if(c&&h.length<c)for(var l=h.length;l<=c;l++)h.push({name:l+"\u200b"});c=k(h,g||!1,!0===g?e:1);b.categories=c.categories;b.treeGrid.mapOfPosToGridNode=c.mapOfPosToGridNode;b.hasNames=!0;b.treeGrid.tree=c.tree;b.series.forEach(function(a){var b=(a.options.data||[]).map(function(b){m(b)&&a.options.keys&&a.options.keys.length&&
|
|
|
+h.forEach(function(a){0<=b.indexOf(a.x)&&0<=b.indexOf(a.x2)&&(b=a)});return f(b,!0)?A(b):b});a.visible&&a.setData(b,!1)});b.treeGrid.mapOptionsToLevel=C({defaults:d,from:1,levels:d&&d.levels,to:b.treeGrid.tree&&b.treeGrid.tree.height});"beforeRender"===a.type&&(b.treeGrid.collapsedNodes=c.collapsedNodes)}})}function g(a,b){var c=this.treeGrid.mapOptionsToLevel||{},d=this.ticks,f=d[b],g;if("treegrid"===this.options.type&&this.treeGrid.mapOfPosToGridNode){var e=this.treeGrid.mapOfPosToGridNode[b];(c=
|
|
|
+c[e.depth])&&(g={labels:c});f?(f.parameters.category=e.name,f.options=g,f.addLabel()):d[b]=new h(this,b,void 0,void 0,{category:e.name,tickmarkOffset:e.tickmarkOffset,options:g})}else a.apply(this,Array.prototype.slice.call(arguments,1))}function c(a){var b=this.options,c=a.apply(this,Array.prototype.slice.call(arguments,1));if("treegrid"===b.type&&this.treeGrid.mapOfPosToGridNode){var d=this.treeGrid.mapOfPosToGridNode[-1].height||0;c.width+=b.labels.indentation*(d-1)}return c}function q(a,b,c){var d=
|
|
|
+this,f="treegrid"===c.type;d.treeGrid||(d.treeGrid=new I(d));f&&(G(b,"beforeRender",n),G(b,"beforeRedraw",n),G(b,"addSeries",function(a){a.options.data&&(a=k(a.options.data,c.uniqueNames||!1,1),d.treeGrid.collapsedNodes=(d.treeGrid.collapsedNodes||[]).concat(a.collapsedNodes))}),G(d,"foundExtremes",function(){d.treeGrid.collapsedNodes&&d.treeGrid.collapsedNodes.forEach(function(a){var b=d.treeGrid.collapse(a);d.brokenAxis&&(d.brokenAxis.setBreaks(b,!1),d.treeGrid.collapsedNodes&&(d.treeGrid.collapsedNodes=
|
|
|
+d.treeGrid.collapsedNodes.filter(function(b){return a.collapseStart!==b.collapseStart||a.collapseEnd!==b.collapseEnd})))})}),G(d,"afterBreaks",function(){"yAxis"===d.coll&&!d.staticScale&&d.chart.options.chart.height&&(d.isDirty=!0)}),c=A({grid:{enabled:!0},labels:{align:"left",levels:[{level:void 0},{level:1,style:{fontWeight:"bold"}}],symbol:{type:"triangle",x:-5,y:-5,height:10,width:10,padding:5}},uniqueNames:!1},c,{reversed:!0,grid:{columns:void 0}}));a.apply(d,[b,c]);f&&(d.hasNames=!0,d.options.showLastLabel=
|
|
|
+!0)}function a(a){var b=this.options;"treegrid"===b.type?(this.min=u(this.userMin,b.min,this.dataMin),this.max=u(this.userMax,b.max,this.dataMax),z(this,"foundExtremes"),this.setAxisTranslation(),this.tickmarkOffset=.5,this.tickInterval=1,this.tickPositions=this.treeGrid.mapOfPosToGridNode?this.treeGrid.getTickPositions():[]):a.apply(this,Array.prototype.slice.call(arguments,1))}var B=!1;e.compose=function(b){B||(l(b.prototype,"generateTick",g),l(b.prototype,"getMaxLabelDimensions",c),l(b.prototype,
|
|
|
+"init",q),l(b.prototype,"setTickInterval",a),y.compose(h),B=!0)};var I=function(){function a(a){this.axis=a}a.prototype.setCollapsedStatus=function(a){var b=this.axis,c=b.chart;b.series.forEach(function(b){var d=b.options.data;if(a.id&&d){var f=c.get(a.id);b=d[b.data.indexOf(f)];f&&b&&(f.collapsed=a.collapsed,b.collapsed=a.collapsed)}})};a.prototype.collapse=function(a){var b=this.axis,c=b.options.breaks||[],f=d(a,b.max);c.push(f);a.collapsed=!0;b.treeGrid.setCollapsedStatus(a);return c};a.prototype.expand=
|
|
|
+function(a){var b=this.axis,c=b.options.breaks||[],f=d(a,b.max);a.collapsed=!1;b.treeGrid.setCollapsedStatus(a);return c.reduce(function(a,b){b.to===f.to&&b.from===f.from||a.push(b);return a},[])};a.prototype.getTickPositions=function(){var a=this.axis,b=Math.floor(a.min/a.tickInterval)*a.tickInterval,c=Math.ceil(a.max/a.tickInterval)*a.tickInterval;return Object.keys(a.treeGrid.mapOfPosToGridNode||{}).reduce(function(d,f){f=+f;!(f>=b&&f<=c)||a.brokenAxis&&a.brokenAxis.isInAnyBreak(f)||d.push(f);
|
|
|
+return d},[])};a.prototype.isCollapsed=function(a){var b=this.axis,c=b.options.breaks||[],f=d(a,b.max);return c.some(function(a){return a.from===f.from&&a.to===f.to})};a.prototype.toggleCollapse=function(a){return this.isCollapsed(a)?this.expand(a):this.collapse(a)};return a}();e.Additions=I})(I||(I={}));e.prototype.utils={getNode:D.getNode};I.compose(e);return I});P(e,"Extensions/CurrentDateIndication.js",[e["Core/Axis/Axis.js"],e["Core/Color/Palette.js"],e["Core/Utilities.js"],e["Core/Axis/PlotLineOrBand.js"]],
|
|
|
+function(e,h,D,y){var F=D.addEvent,E=D.merge;D=D.wrap;var C={color:h.highlightColor20,width:2,label:{format:"%a, %b %d %Y, %H:%M",formatter:function(e,h){return this.axis.chart.time.dateFormat(h||"",e)},rotation:0,style:{fontSize:"10px"}}};F(e,"afterSetOptions",function(){var e=this.options,h=e.currentDateIndicator;h&&(h="object"===typeof h?E(C,h):E(C),h.value=Date.now(),h.className="highcharts-current-date-indicator",e.plotLines||(e.plotLines=[]),e.plotLines.push(h))});F(y,"render",function(){this.label&&
|
|
|
+this.label.attr({text:this.getLabelText(this.options.label)})});D(y.prototype,"getLabelText",function(e,h){var t=this.options;return t&&t.className&&-1!==t.className.indexOf("highcharts-current-date-indicator")&&t.label&&"function"===typeof t.label.formatter?(t.value=Date.now(),t.label.formatter.call(this,t.value,t.label.format)):e.call(this,h)})});P(e,"Extensions/StaticScale.js",[e["Core/Axis/Axis.js"],e["Core/Chart/Chart.js"],e["Core/Utilities.js"]],function(e,h,D){var y=D.addEvent,F=D.defined,
|
|
|
+E=D.isNumber,C=D.pick;y(e,"afterSetOptions",function(){var e=this.chart.options.chart;!this.horiz&&E(this.options.staticScale)&&(!e.height||e.scrollablePlotArea&&e.scrollablePlotArea.minHeight)&&(this.staticScale=this.options.staticScale)});h.prototype.adjustHeight=function(){"adjustHeight"!==this.redrawTrigger&&((this.axes||[]).forEach(function(e){var h=e.chart,z=!!h.initiatedScale&&h.options.animation,m=e.options.staticScale;if(e.staticScale&&F(e.min)){var f=C(e.brokenAxis&&e.brokenAxis.unitLength,
|
|
|
+e.max+e.tickInterval-e.min)*m;f=Math.max(f,m);m=f-h.plotHeight;!h.scrollablePixelsY&&1<=Math.abs(m)&&(h.plotHeight=f,h.redrawTrigger="adjustHeight",h.setSize(void 0,h.chartHeight+m,z));e.series.forEach(function(b){(b=b.sharedClipKey&&h.sharedClips[b.sharedClipKey])&&b.attr(h.inverted?{width:h.plotHeight}:{height:h.plotHeight})})}}),this.initiatedScale=!0);this.redrawTrigger=null};y(h,"render",h.prototype.adjustHeight)});P(e,"Extensions/ArrowSymbols.js",[e["Core/Renderer/SVG/SVGRenderer.js"]],function(e){e.prototype.symbols.arrow=
|
|
|
+function(e,D,y,F){return[["M",e,D+F/2],["L",e+y,D],["L",e,D+F/2],["L",e+y,D+F]]};e.prototype.symbols["arrow-half"]=function(h,D,y,F){return e.prototype.symbols.arrow(h,D,y/2,F)};e.prototype.symbols["triangle-left"]=function(e,D,y,F){return[["M",e+y,D],["L",e,D+F/2],["L",e+y,D+F],["Z"]]};e.prototype.symbols["arrow-filled"]=e.prototype.symbols["triangle-left"];e.prototype.symbols["triangle-left-half"]=function(h,D,y,F){return e.prototype.symbols["triangle-left"](h,D,y/2,F)};e.prototype.symbols["arrow-filled-half"]=
|
|
|
+e.prototype.symbols["triangle-left-half"]});P(e,"Gantt/Connection.js",[e["Core/Globals.js"],e["Core/Options.js"],e["Core/Series/Point.js"],e["Core/Utilities.js"]],function(e,h,D,y){function F(b){var f=b.shapeArgs;return f?{xMin:f.x||0,xMax:(f.x||0)+(f.width||0),yMin:f.y||0,yMax:(f.y||0)+(f.height||0)}:(f=b.graphic&&b.graphic.getBBox())?{xMin:b.plotX-f.width/2,xMax:b.plotX+f.width/2,yMin:b.plotY-f.height/2,yMax:b.plotY+f.height/2}:null}"";var E=y.defined,C=y.error,G=y.extend,t=y.merge,z=y.objectEach,
|
|
|
+m=e.deg2rad,f=Math.max,b=Math.min;G(h.defaultOptions,{connectors:{type:"straight",lineWidth:1,marker:{enabled:!1,align:"center",verticalAlign:"middle",inside:!1,lineWidth:1},startMarker:{symbol:"diamond"},endMarker:{symbol:"arrow-filled"}}});h=function(){function e(b,f,e){this.toPoint=this.pathfinder=this.graphics=this.fromPoint=this.chart=void 0;this.init(b,f,e)}e.prototype.init=function(b,f,e){this.fromPoint=b;this.toPoint=f;this.options=e;this.chart=b.series.chart;this.pathfinder=this.chart.pathfinder};
|
|
|
+e.prototype.renderPath=function(b,f,e){var k=this.chart,d=k.styledMode,h=k.pathfinder,l=!k.options.chart.forExport&&!1!==e,g=this.graphics&&this.graphics.path;h.group||(h.group=k.renderer.g().addClass("highcharts-pathfinder-group").attr({zIndex:-1}).add(k.seriesGroup));h.group.translate(k.plotLeft,k.plotTop);g&&g.renderer||(g=k.renderer.path().add(h.group),d||g.attr({opacity:0}));g.attr(f);b={d:b};d||(b.opacity=1);g[l?"animate":"attr"](b,e);this.graphics=this.graphics||{};this.graphics.path=g};e.prototype.addMarker=
|
|
|
+function(b,f,e){var k=this.fromPoint.series.chart,d=k.pathfinder;k=k.renderer;var h="start"===b?this.fromPoint:this.toPoint,l=h.getPathfinderAnchorPoint(f);if(f.enabled&&((e="start"===b?e[1]:e[e.length-2])&&"M"===e[0]||"L"===e[0])){e={x:e[1],y:e[2]};e=h.getRadiansToVector(e,l);l=h.getMarkerVector(e,f.radius,l);e=-e/m;if(f.width&&f.height){var g=f.width;var c=f.height}else g=c=2*f.radius;this.graphics=this.graphics||{};l={x:l.x-g/2,y:l.y-c/2,width:g,height:c,rotation:e,rotationOriginX:l.x,rotationOriginY:l.y};
|
|
|
+this.graphics[b]?this.graphics[b].animate(l):(this.graphics[b]=k.symbol(f.symbol).addClass("highcharts-point-connecting-path-"+b+"-marker").attr(l).add(d.group),k.styledMode||this.graphics[b].attr({fill:f.color||this.fromPoint.color,stroke:f.lineColor,"stroke-width":f.lineWidth,opacity:0}).animate({opacity:1},h.series.options.animation))}};e.prototype.getPath=function(b){var f=this.pathfinder,e=this.chart,k=f.algorithms[b.type],d=f.chartObstacles;if("function"!==typeof k)return C('"'+b.type+'" is not a Pathfinder algorithm.'),
|
|
|
+{path:[],obstacles:[]};k.requiresObstacles&&!d&&(d=f.chartObstacles=f.getChartObstacles(b),e.options.connectors.algorithmMargin=b.algorithmMargin,f.chartObstacleMetrics=f.getObstacleMetrics(d));return k(this.fromPoint.getPathfinderAnchorPoint(b.startMarker),this.toPoint.getPathfinderAnchorPoint(b.endMarker),t({chartObstacles:d,lineObstacles:f.lineObstacles||[],obstacleMetrics:f.chartObstacleMetrics,hardBounds:{xMin:0,xMax:e.plotWidth,yMin:0,yMax:e.plotHeight},obstacleOptions:{margin:b.algorithmMargin},
|
|
|
+startDirectionX:f.getAlgorithmStartDirection(b.startMarker)},b))};e.prototype.render=function(){var e=this.fromPoint,h=e.series,m=h.chart,k=m.pathfinder,d=t(m.options.connectors,h.options.connectors,e.options.connectors,this.options),w={};m.styledMode||(w.stroke=d.lineColor||e.color,w["stroke-width"]=d.lineWidth,d.dashStyle&&(w.dashstyle=d.dashStyle));w["class"]="highcharts-point-connecting-path highcharts-color-"+e.colorIndex;d=t(w,d);E(d.marker.radius)||(d.marker.radius=b(f(Math.ceil((d.algorithmMargin||
|
|
|
+8)/2)-1,1),5));e=this.getPath(d);m=e.path;e.obstacles&&(k.lineObstacles=k.lineObstacles||[],k.lineObstacles=k.lineObstacles.concat(e.obstacles));this.renderPath(m,w,h.options.animation);this.addMarker("start",t(d.marker,d.startMarker),m);this.addMarker("end",t(d.marker,d.endMarker),m)};e.prototype.destroy=function(){this.graphics&&(z(this.graphics,function(b){b.destroy()}),delete this.graphics)};return e}();e.Connection=h;G(D.prototype,{getPathfinderAnchorPoint:function(b){var f=F(this);switch(b.align){case "right":var e=
|
|
|
+"xMax";break;case "left":e="xMin"}switch(b.verticalAlign){case "top":var h="yMin";break;case "bottom":h="yMax"}return{x:e?f[e]:(f.xMin+f.xMax)/2,y:h?f[h]:(f.yMin+f.yMax)/2}},getRadiansToVector:function(b,f){var e;E(f)||(e=F(this))&&(f={x:(e.xMin+e.xMax)/2,y:(e.yMin+e.yMax)/2});return Math.atan2(f.y-b.y,b.x-f.x)},getMarkerVector:function(b,f,e){var h=2*Math.PI,k=F(this),d=k.xMax-k.xMin,l=k.yMax-k.yMin,m=Math.atan2(l,d),g=!1;d/=2;var c=l/2,q=k.xMin+d;k=k.yMin+c;for(var a=q,t=k,u=1,A=1;b<-Math.PI;)b+=
|
|
|
+h;for(;b>Math.PI;)b-=h;h=Math.tan(b);b>-m&&b<=m?(A=-1,g=!0):b>m&&b<=Math.PI-m?A=-1:b>Math.PI-m||b<=-(Math.PI-m)?(u=-1,g=!0):u=-1;g?(a+=u*d,t+=A*d*h):(a+=l/(2*h)*u,t+=A*c);e.x!==q&&(a=e.x);e.y!==k&&(t=e.y);return{x:a+f*Math.cos(b),y:t-f*Math.sin(b)}}});return h});P(e,"Gantt/PathfinderAlgorithms.js",[e["Core/Utilities.js"]],function(e){function h(e,f,b){b=b||0;var h=e.length-1;f-=1e-7;for(var m,l;b<=h;)if(m=h+b>>1,l=f-e[m].xMin,0<l)b=m+1;else if(0>l)h=m-1;else return m;return 0<b?b-1:0}function D(e,
|
|
|
+f){for(var b=h(e,f.x+1)+1;b--;){var m;if(m=e[b].xMax>=f.x)m=e[b],m=f.x<=m.xMax&&f.x>=m.xMin&&f.y<=m.yMax&&f.y>=m.yMin;if(m)return b}return-1}function y(e){var f=[];if(e.length){f.push(["M",e[0].start.x,e[0].start.y]);for(var b=0;b<e.length;++b)f.push(["L",e[b].end.x,e[b].end.y])}return f}function F(e,f){e.yMin=G(e.yMin,f.yMin);e.yMax=C(e.yMax,f.yMax);e.xMin=G(e.xMin,f.xMin);e.xMax=C(e.xMax,f.xMax)}var E=e.pick,C=Math.min,G=Math.max,t=Math.abs;e=function(e,f,b){function h(b,c,d,a,f){b={x:b.x,y:b.y};
|
|
|
+b[c]=d[a||c]+(f||0);return b}function m(b,c,d){var a=t(c[d]-b[d+"Min"])>t(c[d]-b[d+"Max"]);return h(c,d,b,d+(a?"Max":"Min"),a?1:-1)}var l=[],z=E(b.startDirectionX,t(f.x-e.x)>t(f.y-e.y))?"x":"y",k=b.chartObstacles,d=D(k,e);b=D(k,f);if(-1<b){var w=k[b];b=m(w,f,z);w={start:b,end:f};var n=b}else n=f;-1<d&&(k=k[d],b=m(k,e,z),l.push({start:e,end:b}),b[z]>=e[z]===b[z]>=n[z]&&(z="y"===z?"x":"y",f=e[z]<f[z],l.push({start:b,end:h(b,z,k,z+(f?"Max":"Min"),f?1:-1)}),z="y"===z?"x":"y"));e=l.length?l[l.length-1].end:
|
|
|
+e;b=h(e,z,n);l.push({start:e,end:b});z=h(b,"y"===z?"x":"y",n);l.push({start:b,end:z});l.push(w);return{path:y(l),obstacles:l}};e.requiresObstacles=!0;var z=function(e,f,b){function m(a,b,c){var d,f=a.x<b.x?1:-1;if(a.x<b.x){var e=a;var g=b}else e=b,g=a;if(a.y<b.y){var k=a;var l=b}else k=b,l=a;for(d=0>f?C(h(J,g.x),J.length-1):0;J[d]&&(0<f&&J[d].xMin<=g.x||0>f&&J[d].xMax>=e.x);){if(J[d].xMin<=g.x&&J[d].xMax>=e.x&&J[d].yMin<=l.y&&J[d].yMax>=k.y)return c?{y:a.y,x:a.x<b.x?J[d].xMin-1:J[d].xMax+1,obstacle:J[d]}:
|
|
|
+{x:a.x,y:a.y<b.y?J[d].yMin-1:J[d].yMax+1,obstacle:J[d]};d+=f}return b}function u(a,b,c,d,f){var e=f.soft,g=f.hard,k=d?"x":"y",h={x:b.x,y:b.y},l={x:b.x,y:b.y};f=a[k+"Max"]>=e[k+"Max"];e=a[k+"Min"]<=e[k+"Min"];var p=a[k+"Max"]>=g[k+"Max"];g=a[k+"Min"]<=g[k+"Min"];var n=t(a[k+"Min"]-b[k]),v=t(a[k+"Max"]-b[k]);c=10>t(n-v)?b[k]<c[k]:v<n;l[k]=a[k+"Min"];h[k]=a[k+"Max"];a=m(b,l,d)[k]!==l[k];b=m(b,h,d)[k]!==h[k];c=a?b?c:!0:b?!1:c;c=e?f?c:!0:f?!1:c;return g?p?c:!0:p?!1:c}function l(d,f,e){if(d.x===f.x&&d.y===
|
|
|
+f.y)return[];var g=e?"x":"y",k=b.obstacleOptions.margin;var h={soft:{xMin:c,xMax:q,yMin:a,yMax:B},hard:b.hardBounds};var p=D(J,d);if(-1<p){p=J[p];h=u(p,d,f,e,h);F(p,b.hardBounds);var v=e?{y:d.y,x:p[h?"xMax":"xMin"]+(h?1:-1)}:{x:d.x,y:p[h?"yMax":"yMin"]+(h?1:-1)};var r=D(J,v);-1<r&&(r=J[r],F(r,b.hardBounds),v[g]=h?G(p[g+"Max"]-k+1,(r[g+"Min"]+p[g+"Max"])/2):C(p[g+"Min"]+k-1,(r[g+"Max"]+p[g+"Min"])/2),d.x===v.x&&d.y===v.y?(n&&(v[g]=h?G(p[g+"Max"],r[g+"Max"])+1:C(p[g+"Min"],r[g+"Min"])-1),n=!n):n=!1);
|
|
|
+d=[{start:d,end:v}]}else g=m(d,{x:e?f.x:d.x,y:e?d.y:f.y},e),d=[{start:d,end:{x:g.x,y:g.y}}],g[e?"x":"y"]!==f[e?"x":"y"]&&(h=u(g.obstacle,g,f,!e,h),F(g.obstacle,b.hardBounds),h={x:e?g.x:g.obstacle[h?"xMax":"xMin"]+(h?1:-1),y:e?g.obstacle[h?"yMax":"yMin"]+(h?1:-1):g.y},e=!e,d=d.concat(l({x:g.x,y:g.y},h,e)));return d=d.concat(l(d[d.length-1].end,f,!e))}function z(a,c,d){var f=C(a.xMax-c.x,c.x-a.xMin)<C(a.yMax-c.y,c.y-a.yMin);d=u(a,c,d,f,{soft:b.hardBounds,hard:b.hardBounds});return f?{y:c.y,x:a[d?"xMax":
|
|
|
+"xMin"]+(d?1:-1)}:{x:c.x,y:a[d?"yMax":"yMin"]+(d?1:-1)}}var k=E(b.startDirectionX,t(f.x-e.x)>t(f.y-e.y)),d=k?"x":"y",w=[],n=!1,g=b.obstacleMetrics,c=C(e.x,f.x)-g.maxWidth-10,q=G(e.x,f.x)+g.maxWidth+10,a=C(e.y,f.y)-g.maxHeight-10,B=G(e.y,f.y)+g.maxHeight+10,J=b.chartObstacles;var O=h(J,c);g=h(J,q);J=J.slice(O,g+1);if(-1<(g=D(J,f))){var p=z(J[g],f,e);w.push({end:f,start:p});f=p}for(;-1<(g=D(J,f));)O=0>f[d]-e[d],p={x:f.x,y:f.y},p[d]=J[g][O?d+"Max":d+"Min"]+(O?1:-1),w.push({end:f,start:p}),f=p;e=l(e,
|
|
|
+f,k);e=e.concat(w.reverse());return{path:y(e),obstacles:e}};z.requiresObstacles=!0;return{fastAvoid:z,straight:function(e,f){return{path:[["M",e.x,e.y],["L",f.x,f.y]],obstacles:[{start:e,end:f}]}},simpleConnect:e}});P(e,"Gantt/Pathfinder.js",[e["Gantt/Connection.js"],e["Core/Chart/Chart.js"],e["Core/Globals.js"],e["Core/Options.js"],e["Core/Series/Point.js"],e["Core/Utilities.js"],e["Gantt/PathfinderAlgorithms.js"]],function(e,h,D,y,F,E,C){function G(b){var d=b.shapeArgs;return d?{xMin:d.x||0,xMax:(d.x||
|
|
|
+0)+(d.width||0),yMin:d.y||0,yMax:(d.y||0)+(d.height||0)}:(d=b.graphic&&b.graphic.getBBox())?{xMin:b.plotX-d.width/2,xMax:b.plotX+d.width/2,yMin:b.plotY-d.height/2,yMax:b.plotY+d.height/2}:null}function t(b){for(var f=b.length,c=0,e,a,h=[],m=function(a,b,c){c=l(c,10);var f=a.yMax+c>b.yMin-c&&a.yMin-c<b.yMax+c,e=a.xMax+c>b.xMin-c&&a.xMin-c<b.xMax+c,g=f?a.xMin>b.xMax?a.xMin-b.xMax:b.xMin-a.xMax:Infinity,k=e?a.yMin>b.yMax?a.yMin-b.yMax:b.yMin-a.yMax:Infinity;return e&&f?c?m(a,b,Math.floor(c/2)):Infinity:
|
|
|
+d(g,k)};c<f;++c)for(e=c+1;e<f;++e)a=m(b[c],b[e]),80>a&&h.push(a);h.push(80);return k(Math.floor(h.sort(function(a,b){return a-b})[Math.floor(h.length/10)]/2-1),1)}function z(d){if(d.options.pathfinder||d.series.reduce(function(b,c){c.options&&u(!0,c.options.connectors=c.options.connectors||{},c.options.pathfinder);return b||c.options&&c.options.pathfinder},!1))u(!0,d.options.connectors=d.options.connectors||{},d.options.pathfinder),b('WARNING: Pathfinder options have been renamed. Use "chart.connectors" or "series.connectors" instead.')}
|
|
|
+"";var m=E.addEvent,f=E.defined,b=E.error,A=E.extend,u=E.merge,l=E.pick,I=E.splat,k=Math.max,d=Math.min;A(y.defaultOptions,{connectors:{type:"straight",lineWidth:1,marker:{enabled:!1,align:"center",verticalAlign:"middle",inside:!1,lineWidth:1},startMarker:{symbol:"diamond"},endMarker:{symbol:"arrow-filled"}}});var w=function(){function b(b){this.lineObstacles=this.group=this.connections=this.chartObstacleMetrics=this.chartObstacles=this.chart=void 0;this.init(b)}b.prototype.init=function(b){this.chart=
|
|
|
+b;this.connections=[];m(b,"redraw",function(){this.pathfinder.update()})};b.prototype.update=function(b){var c=this.chart,d=this,a=d.connections;d.connections=[];c.series.forEach(function(a){a.visible&&!a.options.isInternal&&a.points.forEach(function(a){var b=a.options;b&&b.dependency&&(b.connect=b.dependency);var f;b=a.options&&a.options.connect&&I(a.options.connect);a.visible&&!1!==a.isInside&&b&&b.forEach(function(b){f=c.get("string"===typeof b?b:b.to);f instanceof F&&f.series.visible&&f.visible&&
|
|
|
+!1!==f.isInside&&d.connections.push(new e(a,f,"string"===typeof b?{}:b))})})});for(var f=0,g=void 0,k=void 0,h=a.length,l=d.connections.length;f<h;++f){k=!1;for(g=0;g<l;++g)if(a[f].fromPoint===d.connections[g].fromPoint&&a[f].toPoint===d.connections[g].toPoint){d.connections[g].graphics=a[f].graphics;k=!0;break}k||a[f].destroy()}delete this.chartObstacles;delete this.lineObstacles;d.renderConnections(b)};b.prototype.renderConnections=function(b){b?this.chart.series.forEach(function(b){var c=function(){var a=
|
|
|
+b.chart.pathfinder;(a&&a.connections||[]).forEach(function(a){a.fromPoint&&a.fromPoint.series===b&&a.render()});b.pathfinderRemoveRenderEvent&&(b.pathfinderRemoveRenderEvent(),delete b.pathfinderRemoveRenderEvent)};!1===b.options.animation?c():b.pathfinderRemoveRenderEvent=m(b,"afterAnimate",c)}):this.connections.forEach(function(b){b.render()})};b.prototype.getChartObstacles=function(b){for(var c=[],d=this.chart.series,a=l(b.algorithmMargin,0),e,g=0,k=d.length;g<k;++g)if(d[g].visible&&!d[g].options.isInternal){var h=
|
|
|
+0,m=d[g].points.length,n=void 0;for(n=void 0;h<m;++h)n=d[g].points[h],n.visible&&(n=G(n))&&c.push({xMin:n.xMin-a,xMax:n.xMax+a,yMin:n.yMin-a,yMax:n.yMax+a})}c=c.sort(function(a,b){return a.xMin-b.xMin});f(b.algorithmMargin)||(e=b.algorithmMargin=t(c),c.forEach(function(a){a.xMin-=e;a.xMax+=e;a.yMin-=e;a.yMax+=e}));return c};b.prototype.getObstacleMetrics=function(b){for(var c=0,d=0,a,f,e=b.length;e--;)a=b[e].xMax-b[e].xMin,f=b[e].yMax-b[e].yMin,c<a&&(c=a),d<f&&(d=f);return{maxHeight:d,maxWidth:c}};
|
|
|
+b.prototype.getAlgorithmStartDirection=function(b){var c="top"!==b.verticalAlign&&"bottom"!==b.verticalAlign;return"left"!==b.align&&"right"!==b.align?c?void 0:!1:c?!0:void 0};return b}();w.prototype.algorithms=C;D.Pathfinder=w;A(F.prototype,{getPathfinderAnchorPoint:function(b){var d=G(this);switch(b.align){case "right":var c="xMax";break;case "left":c="xMin"}switch(b.verticalAlign){case "top":var f="yMin";break;case "bottom":f="yMax"}return{x:c?d[c]:(d.xMin+d.xMax)/2,y:f?d[f]:(d.yMin+d.yMax)/2}},
|
|
|
+getRadiansToVector:function(b,d){var c;f(d)||(c=G(this))&&(d={x:(c.xMin+c.xMax)/2,y:(c.yMin+c.yMax)/2});return Math.atan2(d.y-b.y,b.x-d.x)},getMarkerVector:function(b,d,c){var f=2*Math.PI,a=G(this),e=a.xMax-a.xMin,g=a.yMax-a.yMin,k=Math.atan2(g,e),h=!1;e/=2;var l=g/2,m=a.xMin+e;a=a.yMin+l;for(var n=m,t=a,u=1,w=1;b<-Math.PI;)b+=f;for(;b>Math.PI;)b-=f;f=Math.tan(b);b>-k&&b<=k?(w=-1,h=!0):b>k&&b<=Math.PI-k?w=-1:b>Math.PI-k||b<=-(Math.PI-k)?(u=-1,h=!0):u=-1;h?(n+=u*e,t+=w*e*f):(n+=g/(2*f)*u,t+=w*l);c.x!==
|
|
|
+m&&(n=c.x);c.y!==a&&(t=c.y);return{x:n+d*Math.cos(b),y:t-d*Math.sin(b)}}});h.prototype.callbacks.push(function(b){!1!==b.options.connectors.enabled&&(z(b),this.pathfinder=new w(this),this.pathfinder.update(!0))});return w});P(e,"Series/Gantt/GanttSeries.js",[e["Series/Gantt/GanttPoint.js"],e["Core/Series/SeriesRegistry.js"],e["Core/Utilities.js"]],function(e,h,D){var y=this&&this.__extends||function(){var e=function(f,b){e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,f){b.__proto__=
|
|
|
+f}||function(b,f){for(var e in f)f.hasOwnProperty(e)&&(b[e]=f[e])};return e(f,b)};return function(f,b){function h(){this.constructor=f}e(f,b);f.prototype=null===b?Object.create(b):(h.prototype=b.prototype,new h)}}(),F=h.series,E=h.seriesTypes.xrange,C=D.extend,G=D.isNumber,t=D.merge,z=D.splat;D=function(e){function f(){var b=null!==e&&e.apply(this,arguments)||this;b.data=void 0;b.options=void 0;b.points=void 0;return b}y(f,e);f.prototype.drawPoint=function(b,f){var e=this.options,h=this.chart.renderer,
|
|
|
+m=b.shapeArgs,k=b.plotY,d=b.graphic,t=b.selected&&"select",n=e.stacking&&!e.borderRadius;if(b.options.milestone)if(G(k)&&null!==b.y&&!1!==b.visible){m=h.symbols.diamond(m.x||0,m.y||0,m.width||0,m.height||0);if(d)d[f]({d:m});else b.graphic=h.path(m).addClass(b.getClassName(),!0).add(b.group||this.group);this.chart.styledMode||b.graphic.attr(this.pointAttribs(b,t)).shadow(e.shadow,null,n)}else d&&(b.graphic=d.destroy());else E.prototype.drawPoint.call(this,b,f)};f.prototype.translatePoint=function(b){E.prototype.translatePoint.call(this,
|
|
|
+b);if(b.options.milestone){var f=b.shapeArgs;var e=f.height||0;b.shapeArgs={x:(f.x||0)-e/2,y:f.y,width:e,height:e}}};f.defaultOptions=t(E.defaultOptions,{grouping:!1,dataLabels:{enabled:!0},tooltip:{headerFormat:'<span style="font-size: 10px">{series.name}</span><br/>',pointFormat:null,pointFormatter:function(){var b=this.series,f=b.chart.tooltip,e=b.xAxis,h=b.tooltipOptions.dateTimeLabelFormats,m=e.options.startOfWeek,k=b.tooltipOptions,d=k.xDateFormat,t=this.options.milestone,n="<b>"+(this.name||
|
|
|
+this.yCategory)+"</b>";if(k.pointFormat)return this.tooltipFormatter(k.pointFormat);d||(d=z(f.getDateFormat(e.closestPointRange,this.start,m,h))[0]);f=b.chart.time.dateFormat(d,this.start);b=b.chart.time.dateFormat(d,this.end);n+="<br/>";return t?n+(f+"<br/>"):n+("Start: "+f+"<br/>End: ")+(b+"<br/>")}},connectors:{type:"simpleConnect",animation:{reversed:!0},startMarker:{enabled:!0,symbol:"arrow-filled",radius:4,fill:"#fa0",align:"left"},endMarker:{enabled:!1,align:"right"}}});return f}(E);C(D.prototype,
|
|
|
+{keyboardMoveVertical:!1,pointArrayMap:["start","end","y"],pointClass:e,setData:F.prototype.setData});h.registerSeriesType("gantt",D);"";return D});P(e,"Core/Chart/GanttChart.js",[e["Core/Chart/Chart.js"],e["Core/Options.js"],e["Core/Utilities.js"]],function(e,h,D){var y=this&&this.__extends||function(){var e=function(h,m){e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,b){f.__proto__=b}||function(f,b){for(var e in b)b.hasOwnProperty(e)&&(f[e]=b[e])};return e(h,m)};return function(h,
|
|
|
+m){function f(){this.constructor=h}e(h,m);h.prototype=null===m?Object.create(m):(f.prototype=m.prototype,new f)}}(),F=h.getOptions,E=D.isArray,C=D.merge,G=D.splat;e=function(e){function h(){return null!==e&&e.apply(this,arguments)||this}y(h,e);h.prototype.init=function(h,f){var b=h.series,m=F(),t;E(h.xAxis)||(h.xAxis=[h.xAxis||{},{}]);h.xAxis=h.xAxis.map(function(b,f){1===f&&(t=0);return C(m.xAxis,{grid:{enabled:!0},opposite:!0,linkedTo:t},b,{type:"datetime"})});h.yAxis=G(h.yAxis||{}).map(function(b){return C(m.yAxis,
|
|
|
+{grid:{enabled:!0},staticScale:50,reversed:!0,type:b.categories?b.type:"treegrid"},b)});delete h.series;h=C(!0,{chart:{type:"gantt"},title:{text:null},legend:{enabled:!1},navigator:{series:{type:"gantt"},yAxis:{type:"category"}}},h,{isGantt:!0});h.series=b;e.prototype.init.call(this,h,f)};return h}(e);(function(e){e.ganttChart=function(h,m,f){return new e(h,m,f)}})(e||(e={}));return e});P(e,"Core/Axis/ScrollbarAxis.js",[e["Core/Utilities.js"]],function(e){var h=e.addEvent,D=e.defined,y=e.pick;return function(){function e(){}
|
|
|
+e.compose=function(e,C){var E=function(e){var h=y(e.options&&e.options.min,e.min),m=y(e.options&&e.options.max,e.max);return{axisMin:h,axisMax:m,scrollMin:D(e.dataMin)?Math.min(h,e.min,e.dataMin,y(e.threshold,Infinity)):h,scrollMax:D(e.dataMax)?Math.max(m,e.max,e.dataMax,y(e.threshold,-Infinity)):m}};h(e,"afterInit",function(){var e=this;e.options&&e.options.scrollbar&&e.options.scrollbar.enabled&&(e.options.scrollbar.vertical=!e.horiz,e.options.startOnTick=e.options.endOnTick=!1,e.scrollbar=new C(e.chart.renderer,
|
|
|
+e.options.scrollbar,e.chart),h(e.scrollbar,"changed",function(h){var m=E(e),f=m.axisMax,b=m.scrollMin,t=m.scrollMax-b;D(m.axisMin)&&D(f)&&(e.horiz&&!e.reversed||!e.horiz&&e.reversed?(m=b+t*this.to,b+=t*this.from):(m=b+t*(1-this.from),b+=t*(1-this.to)),this.shouldUpdateExtremes(h.DOMType)?e.setExtremes(b,m,!0,"mousemove"!==h.DOMType&&"touchmove"!==h.DOMType,h):this.setRange(this.from,this.to))}))});h(e,"afterRender",function(){var e=E(this),h=e.scrollMin,m=e.scrollMax;e=this.scrollbar;var f=this.axisTitleMargin+
|
|
|
+(this.titleOffset||0),b=this.chart.scrollbarsOffsets,y=this.options.margin||0;e&&(this.horiz?(this.opposite||(b[1]+=f),e.position(this.left,this.top+this.height+2+b[1]-(this.opposite?y:0),this.width,this.height),this.opposite||(b[1]+=y),f=1):(this.opposite&&(b[0]+=f),e.position(this.left+this.width+2+b[0]-(this.opposite?0:y),this.top,this.width,this.height),this.opposite&&(b[0]+=y),f=0),b[f]+=e.size+e.options.margin,isNaN(h)||isNaN(m)||!D(this.min)||!D(this.max)||this.min===this.max?e.setRange(0,
|
|
|
+1):(b=(this.min-h)/(m-h),h=(this.max-h)/(m-h),this.horiz&&!this.reversed||!this.horiz&&this.reversed?e.setRange(b,h):e.setRange(1-h,1-b)))});h(e,"afterGetOffset",function(){var e=this.horiz?2:1,h=this.scrollbar;h&&(this.chart.scrollbarsOffsets=[0,0],this.chart.axisOffset[e]+=h.size+h.options.margin)})};return e}()});P(e,"Core/Scrollbar.js",[e["Core/Axis/Axis.js"],e["Core/Globals.js"],e["Core/Color/Palette.js"],e["Core/Axis/ScrollbarAxis.js"],e["Core/Utilities.js"],e["Core/Options.js"]],function(e,
|
|
|
+h,D,y,F,E){var C=F.addEvent,G=F.correctFloat,t=F.defined,z=F.destroyObjectProperties,m=F.fireEvent,f=F.merge,b=F.pick,A=F.removeEvent;F=E.defaultOptions;var u=h.isTouchDevice,l=h.swapXY=function(b,e){e&&b.forEach(function(b){for(var d=b.length,e,f=0;f<d;f+=2)e=b[f+1],"number"===typeof e&&(b[f+1]=b[f+2],b[f+2]=e)});return b};E=function(){function e(b,d,e){this._events=[];this.from=this.chartY=this.chartX=0;this.scrollbar=this.group=void 0;this.scrollbarButtons=[];this.scrollbarGroup=void 0;this.scrollbarLeft=
|
|
|
+0;this.scrollbarRifles=void 0;this.scrollbarStrokeWidth=1;this.to=this.size=this.scrollbarTop=0;this.track=void 0;this.trackBorderWidth=1;this.userOptions={};this.y=this.x=0;this.chart=e;this.options=d;this.renderer=e.renderer;this.init(b,d,e)}e.prototype.addEvents=function(){var b=this.options.inverted?[1,0]:[0,1],d=this.scrollbarButtons,e=this.scrollbarGroup.element,f=this.track.element,g=this.mouseDownHandler.bind(this),c=this.mouseMoveHandler.bind(this),l=this.mouseUpHandler.bind(this);b=[[d[b[0]].element,
|
|
|
+"click",this.buttonToMinClick.bind(this)],[d[b[1]].element,"click",this.buttonToMaxClick.bind(this)],[f,"click",this.trackClick.bind(this)],[e,"mousedown",g],[e.ownerDocument,"mousemove",c],[e.ownerDocument,"mouseup",l]];h.hasTouch&&b.push([e,"touchstart",g],[e.ownerDocument,"touchmove",c],[e.ownerDocument,"touchend",l]);b.forEach(function(a){C.apply(null,a)});this._events=b};e.prototype.buttonToMaxClick=function(e){var d=(this.to-this.from)*b(this.options.step,.2);this.updatePosition(this.from+d,
|
|
|
+this.to+d);m(this,"changed",{from:this.from,to:this.to,trigger:"scrollbar",DOMEvent:e})};e.prototype.buttonToMinClick=function(e){var d=G(this.to-this.from)*b(this.options.step,.2);this.updatePosition(G(this.from-d),G(this.to-d));m(this,"changed",{from:this.from,to:this.to,trigger:"scrollbar",DOMEvent:e})};e.prototype.cursorToScrollbarPosition=function(b){var d=this.options;d=d.minWidth>this.calculatedWidth?d.minWidth:0;return{chartX:(b.chartX-this.x-this.xOffset)/(this.barWidth-d),chartY:(b.chartY-
|
|
|
+this.y-this.yOffset)/(this.barWidth-d)}};e.prototype.destroy=function(){var b=this.chart.scroller;this.removeEvents();["track","scrollbarRifles","scrollbar","scrollbarGroup","group"].forEach(function(b){this[b]&&this[b].destroy&&(this[b]=this[b].destroy())},this);b&&this===b.scrollbar&&(b.scrollbar=null,z(b.scrollbarButtons))};e.prototype.drawScrollbarButton=function(b){var d=this.renderer,e=this.scrollbarButtons,f=this.options,g=this.size;var c=d.g().add(this.group);e.push(c);c=d.rect().addClass("highcharts-scrollbar-button").add(c);
|
|
|
+this.chart.styledMode||c.attr({stroke:f.buttonBorderColor,"stroke-width":f.buttonBorderWidth,fill:f.buttonBackgroundColor});c.attr(c.crisp({x:-.5,y:-.5,width:g+1,height:g+1,r:f.buttonBorderRadius},c.strokeWidth()));c=d.path(l([["M",g/2+(b?-1:1),g/2-3],["L",g/2+(b?-1:1),g/2+3],["L",g/2+(b?2:-2),g/2]],f.vertical)).addClass("highcharts-scrollbar-arrow").add(e[b]);this.chart.styledMode||c.attr({fill:f.buttonArrowColor})};e.prototype.init=function(h,d,l){this.scrollbarButtons=[];this.renderer=h;this.userOptions=
|
|
|
+d;this.options=f(e.defaultOptions,d);this.chart=l;this.size=b(this.options.size,this.options.height);d.enabled&&(this.render(),this.addEvents())};e.prototype.mouseDownHandler=function(b){b=this.chart.pointer.normalize(b);b=this.cursorToScrollbarPosition(b);this.chartX=b.chartX;this.chartY=b.chartY;this.initPositions=[this.from,this.to];this.grabbedCenter=!0};e.prototype.mouseMoveHandler=function(b){var d=this.chart.pointer.normalize(b),e=this.options.vertical?"chartY":"chartX",f=this.initPositions||
|
|
|
+[];!this.grabbedCenter||b.touches&&0===b.touches[0][e]||(d=this.cursorToScrollbarPosition(d)[e],e=this[e],e=d-e,this.hasDragged=!0,this.updatePosition(f[0]+e,f[1]+e),this.hasDragged&&m(this,"changed",{from:this.from,to:this.to,trigger:"scrollbar",DOMType:b.type,DOMEvent:b}))};e.prototype.mouseUpHandler=function(b){this.hasDragged&&m(this,"changed",{from:this.from,to:this.to,trigger:"scrollbar",DOMType:b.type,DOMEvent:b});this.grabbedCenter=this.hasDragged=this.chartX=this.chartY=null};e.prototype.position=
|
|
|
+function(b,d,e,f){var g=this.options.vertical,c=0,h=this.rendered?"animate":"attr";this.x=b;this.y=d+this.trackBorderWidth;this.width=e;this.xOffset=this.height=f;this.yOffset=c;g?(this.width=this.yOffset=e=c=this.size,this.xOffset=d=0,this.barWidth=f-2*e,this.x=b+=this.options.margin):(this.height=this.xOffset=f=d=this.size,this.barWidth=e-2*f,this.y+=this.options.margin);this.group[h]({translateX:b,translateY:this.y});this.track[h]({width:e,height:f});this.scrollbarButtons[1][h]({translateX:g?0:
|
|
|
+e-d,translateY:g?f-c:0})};e.prototype.removeEvents=function(){this._events.forEach(function(b){A.apply(null,b)});this._events.length=0};e.prototype.render=function(){var b=this.renderer,d=this.options,e=this.size,f=this.chart.styledMode,g;this.group=g=b.g("scrollbar").attr({zIndex:d.zIndex,translateY:-99999}).add();this.track=b.rect().addClass("highcharts-scrollbar-track").attr({x:0,r:d.trackBorderRadius||0,height:e,width:e}).add(g);f||this.track.attr({fill:d.trackBackgroundColor,stroke:d.trackBorderColor,
|
|
|
+"stroke-width":d.trackBorderWidth});this.trackBorderWidth=this.track.strokeWidth();this.track.attr({y:-this.trackBorderWidth%2/2});this.scrollbarGroup=b.g().add(g);this.scrollbar=b.rect().addClass("highcharts-scrollbar-thumb").attr({height:e,width:e,r:d.barBorderRadius||0}).add(this.scrollbarGroup);this.scrollbarRifles=b.path(l([["M",-3,e/4],["L",-3,2*e/3],["M",0,e/4],["L",0,2*e/3],["M",3,e/4],["L",3,2*e/3]],d.vertical)).addClass("highcharts-scrollbar-rifles").add(this.scrollbarGroup);f||(this.scrollbar.attr({fill:d.barBackgroundColor,
|
|
|
+stroke:d.barBorderColor,"stroke-width":d.barBorderWidth}),this.scrollbarRifles.attr({stroke:d.rifleColor,"stroke-width":1}));this.scrollbarStrokeWidth=this.scrollbar.strokeWidth();this.scrollbarGroup.translate(-this.scrollbarStrokeWidth%2/2,-this.scrollbarStrokeWidth%2/2);this.drawScrollbarButton(0);this.drawScrollbarButton(1)};e.prototype.setRange=function(b,d){var e=this.options,f=e.vertical,g=e.minWidth,c=this.barWidth,h,a=!this.rendered||this.hasDragged||this.chart.navigator&&this.chart.navigator.hasDragged?
|
|
|
+"attr":"animate";if(t(c)){b=Math.max(b,0);var k=Math.ceil(c*b);this.calculatedWidth=h=G(c*Math.min(d,1)-k);h<g&&(k=(c-g+h)*b,h=g);g=Math.floor(k+this.xOffset+this.yOffset);c=h/2-.5;this.from=b;this.to=d;f?(this.scrollbarGroup[a]({translateY:g}),this.scrollbar[a]({height:h}),this.scrollbarRifles[a]({translateY:c}),this.scrollbarTop=g,this.scrollbarLeft=0):(this.scrollbarGroup[a]({translateX:g}),this.scrollbar[a]({width:h}),this.scrollbarRifles[a]({translateX:c}),this.scrollbarLeft=g,this.scrollbarTop=
|
|
|
+0);12>=h?this.scrollbarRifles.hide():this.scrollbarRifles.show(!0);!1===e.showFull&&(0>=b&&1<=d?this.group.hide():this.group.show());this.rendered=!0}};e.prototype.shouldUpdateExtremes=function(e){return b(this.options.liveRedraw,h.svg&&!h.isTouchDevice&&!this.chart.isBoosting)||"mouseup"===e||"touchend"===e||!t(e)};e.prototype.trackClick=function(b){var d=this.chart.pointer.normalize(b),e=this.to-this.from,f=this.y+this.scrollbarTop,g=this.x+this.scrollbarLeft;this.options.vertical&&d.chartY>f||
|
|
|
+!this.options.vertical&&d.chartX>g?this.updatePosition(this.from+e,this.to+e):this.updatePosition(this.from-e,this.to-e);m(this,"changed",{from:this.from,to:this.to,trigger:"scrollbar",DOMEvent:b})};e.prototype.update=function(b){this.destroy();this.init(this.chart.renderer,f(!0,this.options,b),this.chart)};e.prototype.updatePosition=function(b,d){1<d&&(b=G(1-G(d-b)),d=1);0>b&&(d=G(d-b),b=0);this.from=b;this.to=d};e.defaultOptions={height:u?20:14,barBorderRadius:0,buttonBorderRadius:0,liveRedraw:void 0,
|
|
|
+margin:10,minWidth:6,step:.2,zIndex:3,barBackgroundColor:D.neutralColor20,barBorderWidth:1,barBorderColor:D.neutralColor20,buttonArrowColor:D.neutralColor80,buttonBackgroundColor:D.neutralColor10,buttonBorderColor:D.neutralColor20,buttonBorderWidth:1,rifleColor:D.neutralColor80,trackBackgroundColor:D.neutralColor5,trackBorderColor:D.neutralColor5,trackBorderWidth:1};return e}();h.Scrollbar||(F.scrollbar=f(!0,E.defaultOptions,F.scrollbar),h.Scrollbar=E,y.compose(e,E));return h.Scrollbar});P(e,"Extensions/RangeSelector.js",
|
|
|
+[e["Core/Axis/Axis.js"],e["Core/Chart/Chart.js"],e["Core/Globals.js"],e["Core/Options.js"],e["Core/Color/Palette.js"],e["Core/Renderer/SVG/SVGElement.js"],e["Core/Utilities.js"]],function(e,h,D,y,F,E,C){function G(a){if(-1!==a.indexOf("%L"))return"text";var b="aAdewbBmoyY".split("").some(function(b){return-1!==a.indexOf("%"+b)}),c="HkIlMS".split("").some(function(b){return-1!==a.indexOf("%"+b)});return b&&c?"datetime-local":b?"date":c?"time":"text"}var t=y.defaultOptions,z=C.addEvent,m=C.createElement,
|
|
|
+f=C.css,b=C.defined,A=C.destroyObjectProperties,u=C.discardElement,l=C.extend,I=C.find,k=C.fireEvent,d=C.isNumber,w=C.merge,n=C.objectEach,g=C.pad,c=C.pick,q=C.pInt,a=C.splat;l(t,{rangeSelector:{allButtonsEnabled:!1,buttons:void 0,buttonSpacing:5,dropdown:"responsive",enabled:void 0,verticalAlign:"top",buttonTheme:{width:28,height:18,padding:2,zIndex:7},floating:!1,x:0,y:0,height:void 0,inputBoxBorderColor:"none",inputBoxHeight:17,inputBoxWidth:void 0,inputDateFormat:"%b %e, %Y",inputDateParser:void 0,
|
|
|
+inputEditDateFormat:"%Y-%m-%d",inputEnabled:!0,inputPosition:{align:"right",x:0,y:0},inputSpacing:5,selected:void 0,buttonPosition:{align:"left",x:0,y:0},inputStyle:{color:F.highlightColor80,cursor:"pointer"},labelStyle:{color:F.neutralColor60}}});l(t.lang,{rangeSelectorZoom:"Zoom",rangeSelectorFrom:"",rangeSelectorTo:"\u2192"});var B=function(){function h(a){this.buttons=void 0;this.buttonOptions=h.prototype.defaultButtons;this.initialButtonGroupWidth=0;this.options=void 0;this.chart=a;this.init(a)}
|
|
|
+h.prototype.clickButton=function(f,g){var h=this.chart,l=this.buttonOptions[f],m=h.xAxis[0],p=h.scroller&&h.scroller.getUnionExtremes()||m||{},n=p.dataMin,r=p.dataMax,q=m&&Math.round(Math.min(m.max,c(r,m.max))),t=l.type;p=l._range;var u,w=l.dataGrouping;if(null!==n&&null!==r){h.fixedRange=p;this.setSelected(f);w&&(this.forcedDataGrouping=!0,e.prototype.setDataGrouping.call(m||{chart:this.chart},w,!1),this.frozenStates=l.preserveDataGrouping);if("month"===t||"year"===t)if(m){t={range:l,max:q,chart:h,
|
|
|
+dataMin:n,dataMax:r};var M=m.minFromRange.call(t);d(t.newMax)&&(q=t.newMax)}else p=l;else if(p)M=Math.max(q-p,n),q=Math.min(M+p,r);else if("ytd"===t)if(m)"undefined"===typeof r&&(n=Number.MAX_VALUE,r=Number.MIN_VALUE,h.series.forEach(function(a){a=a.xData;n=Math.min(a[0],n);r=Math.max(a[a.length-1],r)}),g=!1),q=this.getYTDExtremes(r,n,h.time.useUTC),M=u=q.min,q=q.max;else{this.deferredYTDClick=f;return}else"all"===t&&m&&(M=n,q=r);b(M)&&(M+=l._offsetMin);b(q)&&(q+=l._offsetMax);this.dropdown&&(this.dropdown.selectedIndex=
|
|
|
+f+1);if(m)m.setExtremes(M,q,c(g,!0),void 0,{trigger:"rangeSelectorButton",rangeSelectorButton:l});else{var y=a(h.options.xAxis)[0];var A=y.range;y.range=p;var B=y.min;y.min=u;z(h,"load",function(){y.range=A;y.min=B})}k(this,"afterBtnClick")}};h.prototype.setSelected=function(a){this.selected=this.options.selected=a};h.prototype.init=function(a){var b=this,c=a.options.rangeSelector,d=c.buttons||b.defaultButtons.slice(),e=c.selected,f=function(){var a=b.minInput,c=b.maxInput;a&&a.blur&&k(a,"blur");
|
|
|
+c&&c.blur&&k(c,"blur")};b.chart=a;b.options=c;b.buttons=[];b.buttonOptions=d;this.eventsToUnbind=[];this.eventsToUnbind.push(z(a.container,"mousedown",f));this.eventsToUnbind.push(z(a,"resize",f));d.forEach(b.computeButtonRange);"undefined"!==typeof e&&d[e]&&this.clickButton(e,!1);this.eventsToUnbind.push(z(a,"load",function(){a.xAxis&&a.xAxis[0]&&z(a.xAxis[0],"setExtremes",function(c){this.max-this.min!==a.fixedRange&&"rangeSelectorButton"!==c.trigger&&"updatedData"!==c.trigger&&b.forcedDataGrouping&&
|
|
|
+!b.frozenStates&&this.setDataGrouping(!1,!1)})}))};h.prototype.updateButtonStates=function(){var a=this,b=this.chart,c=this.dropdown,e=b.xAxis[0],f=Math.round(e.max-e.min),g=!e.hasVisibleSeries,h=b.scroller&&b.scroller.getUnionExtremes()||e,k=h.dataMin,l=h.dataMax;b=a.getYTDExtremes(l,k,b.time.useUTC);var m=b.min,p=b.max,n=a.selected,q=d(n),t=a.options.allButtonsEnabled,u=a.buttons;a.buttonOptions.forEach(function(b,d){var h=b._range,v=b.type,r=b.count||1,x=u[d],N=0,K=b._offsetMax-b._offsetMin;b=
|
|
|
+d===n;var w=h>l-k,H=h<e.minRange,L=!1,y=!1;h=h===f;("month"===v||"year"===v)&&f+36E5>=864E5*{month:28,year:365}[v]*r-K&&f-36E5<=864E5*{month:31,year:366}[v]*r+K?h=!0:"ytd"===v?(h=p-m+K===f,L=!b):"all"===v&&(h=e.max-e.min>=l-k,y=!b&&q&&h);v=!t&&(w||H||y||g);r=b&&h||h&&!q&&!L||b&&a.frozenStates;v?N=3:r&&(q=!0,N=2);x.state!==N&&(x.setState(N),c&&(c.options[d+1].disabled=v,2===N&&(c.selectedIndex=d+1)),0===N&&n===d&&a.setSelected())})};h.prototype.computeButtonRange=function(a){var b=a.type,d=a.count||
|
|
|
+1,e={millisecond:1,second:1E3,minute:6E4,hour:36E5,day:864E5,week:6048E5};if(e[b])a._range=e[b]*d;else if("month"===b||"year"===b)a._range=864E5*{month:30,year:365}[b]*d;a._offsetMin=c(a.offsetMin,0);a._offsetMax=c(a.offsetMax,0);a._range+=a._offsetMax-a._offsetMin};h.prototype.getInputValue=function(a){a="min"===a?this.minInput:this.maxInput;var b=this.chart.options.rangeSelector,c=this.chart.time;return a?("text"===a.type&&b.inputDateParser||this.defaultInputDateParser)(a.value,c.useUTC,c):0};h.prototype.setInputValue=
|
|
|
+function(a,c){var d=this.options,e=this.chart.time,f="min"===a?this.minInput:this.maxInput;a="min"===a?this.minDateBox:this.maxDateBox;if(f){var g=f.getAttribute("data-hc-time");g=b(g)?Number(g):void 0;b(c)&&(b(g)&&f.setAttribute("data-hc-time-previous",g),f.setAttribute("data-hc-time",c),g=c);f.value=e.dateFormat(this.inputTypeFormats[f.type]||d.inputEditDateFormat,g);a&&a.attr({text:e.dateFormat(d.inputDateFormat,g)})}};h.prototype.setInputExtremes=function(a,b,c){if(a="min"===a?this.minInput:this.maxInput){var d=
|
|
|
+this.inputTypeFormats[a.type],e=this.chart.time;d&&(b=e.dateFormat(d,b),a.min!==b&&(a.min=b),c=e.dateFormat(d,c),a.max!==c&&(a.max=c))}};h.prototype.showInput=function(a){var b="min"===a?this.minDateBox:this.maxDateBox;if((a="min"===a?this.minInput:this.maxInput)&&b&&this.inputGroup){var c="text"===a.type,d=this.inputGroup,e=d.translateX;d=d.translateY;var g=this.options.inputBoxWidth;f(a,{width:c?b.width+(g?-2:20)+"px":"auto",height:c?b.height-2+"px":"auto",border:"2px solid silver"});c&&g?f(a,{left:e+
|
|
|
+b.x+"px",top:d+"px"}):f(a,{left:Math.min(Math.round(b.x+e-(a.offsetWidth-b.width)/2),this.chart.chartWidth-a.offsetWidth)+"px",top:d-1-(a.offsetHeight-b.height)/2+"px"})}};h.prototype.hideInput=function(a){(a="min"===a?this.minInput:this.maxInput)&&f(a,{top:"-9999em",border:0,width:"1px",height:"1px"})};h.prototype.defaultInputDateParser=function(a,b,c){var e=a.split("/").join("-").split(" ").join("T");-1===e.indexOf("T")&&(e+="T00:00");if(b)e+="Z";else{var f;if(f=D.isSafari)f=e,f=!(6<f.length&&(f.lastIndexOf("-")===
|
|
|
+f.length-6||f.lastIndexOf("+")===f.length-6));f&&(f=(new Date(e)).getTimezoneOffset()/60,e+=0>=f?"+"+g(-f)+":00":"-"+g(f)+":00")}e=Date.parse(e);d(e)||(a=a.split("-"),e=Date.UTC(q(a[0]),q(a[1])-1,q(a[2])));c&&b&&d(e)&&(e+=c.getTimezoneOffset(e));return e};h.prototype.drawInput=function(a){function b(){var b=h.getInputValue(a),e=c.xAxis[0],f=c.scroller&&c.scroller.xAxis?c.scroller.xAxis:e,g=f.dataMin;f=f.dataMax;var k=h.maxInput,l=h.minInput;b!==Number(u.getAttribute("data-hc-time-previous"))&&d(b)&&
|
|
|
+(u.setAttribute("data-hc-time-previous",b),r&&k&&d(g)?b>Number(k.getAttribute("data-hc-time"))?b=void 0:b<g&&(b=g):l&&d(f)&&(b<Number(l.getAttribute("data-hc-time"))?b=void 0:b>f&&(b=f)),"undefined"!==typeof b&&e.setExtremes(r?b:e.min,r?e.max:b,void 0,void 0,{trigger:"rangeSelectorInput"}))}var c=this.chart,e=this.div,g=this.inputGroup,h=this,k=c.renderer.style||{},p=c.renderer,n=c.options.rangeSelector,r="min"===a,q=t.lang[r?"rangeSelectorFrom":"rangeSelectorTo"];q=p.label(q,0).addClass("highcharts-range-label").attr({padding:q?
|
|
|
+2:0}).add(g);p=p.label("",0).addClass("highcharts-range-input").attr({padding:2,width:n.inputBoxWidth,height:n.inputBoxHeight,"text-align":"center"}).on("click",function(){h.showInput(a);h[a+"Input"].focus()});c.styledMode||p.attr({stroke:n.inputBoxBorderColor,"stroke-width":1});p.add(g);var u=m("input",{name:a,className:"highcharts-range-selector"},void 0,e);u.setAttribute("type",G(n.inputDateFormat||"%b %e, %Y"));c.styledMode||(q.css(w(k,n.labelStyle)),p.css(w({color:F.neutralColor80},k,n.inputStyle)),
|
|
|
+f(u,l({position:"absolute",border:0,boxShadow:"0 0 15px rgba(0,0,0,0.3)",width:"1px",height:"1px",padding:0,textAlign:"center",fontSize:k.fontSize,fontFamily:k.fontFamily,top:"-9999em"},n.inputStyle)));u.onfocus=function(){h.showInput(a)};u.onblur=function(){u===D.doc.activeElement&&b();h.hideInput(a);h.setInputValue(a);u.blur()};var y=!1;u.onchange=function(){y||(b(),h.hideInput(a),u.blur())};u.onkeypress=function(a){13===a.keyCode&&b()};u.onkeydown=function(a){y=!0;38!==a.keyCode&&40!==a.keyCode||
|
|
|
+b()};u.onkeyup=function(){y=!1};return{dateBox:p,input:u,label:q}};h.prototype.getPosition=function(){var a=this.chart,b=a.options.rangeSelector;a="top"===b.verticalAlign?a.plotTop-a.axisOffset[0]:0;return{buttonTop:a+b.buttonPosition.y,inputTop:a+b.inputPosition.y-10}};h.prototype.getYTDExtremes=function(a,b,c){var d=this.chart.time,e=new d.Date(a),f=d.get("FullYear",e);c=c?d.Date.UTC(f,0,1):+new d.Date(f,0,1);b=Math.max(b,c);e=e.getTime();return{max:Math.min(a||e,e),min:b}};h.prototype.render=function(a,
|
|
|
+d){var e=this.chart,f=e.renderer,g=e.container,h=e.options,k=h.rangeSelector,l=c(h.chart.style&&h.chart.style.zIndex,0)+1;h=k.inputEnabled;if(!1!==k.enabled){this.rendered||(this.group=f.g("range-selector-group").attr({zIndex:7}).add(),this.div=m("div",void 0,{position:"relative",height:0,zIndex:l}),this.buttonOptions.length&&this.renderButtons(),g.parentNode&&g.parentNode.insertBefore(this.div,g),h&&(this.inputGroup=f.g("input-group").add(this.group),f=this.drawInput("min"),this.minDateBox=f.dateBox,
|
|
|
+this.minLabel=f.label,this.minInput=f.input,f=this.drawInput("max"),this.maxDateBox=f.dateBox,this.maxLabel=f.label,this.maxInput=f.input));if(h&&(this.setInputValue("min",a),this.setInputValue("max",d),a=e.scroller&&e.scroller.getUnionExtremes()||e.xAxis[0]||{},b(a.dataMin)&&b(a.dataMax)&&(e=e.xAxis[0].minRange||0,this.setInputExtremes("min",a.dataMin,Math.min(a.dataMax,this.getInputValue("max"))-e),this.setInputExtremes("max",Math.max(a.dataMin,this.getInputValue("min"))+e,a.dataMax)),this.inputGroup)){var p=
|
|
|
+0;[this.minLabel,this.minDateBox,this.maxLabel,this.maxDateBox].forEach(function(a){if(a){var b=a.getBBox().width;b&&(a.attr({x:p}),p+=b+k.inputSpacing)}})}this.alignElements();this.rendered=!0}};h.prototype.renderButtons=function(){var a=this,b=this.buttons,d=this.options,e=t.lang,f=this.chart.renderer,g=w(d.buttonTheme),h=g&&g.states,l=g.width||28;delete g.width;delete g.states;this.buttonGroup=f.g("range-selector-buttons").add(this.group);var p=this.dropdown=m("select",void 0,{position:"absolute",
|
|
|
+width:"1px",height:"1px",padding:0,border:0,top:"-9999em",cursor:"pointer",opacity:.0001},this.div);z(p,"touchstart",function(){p.style.fontSize="16px"});[[D.isMS?"mouseover":"mouseenter"],[D.isMS?"mouseout":"mouseleave"],["change","click"]].forEach(function(c){var d=c[0],e=c[1];z(p,d,function(){var c=b[a.currentButtonIndex()];c&&k(c.element,e||d)})});this.zoomText=f.text(e.rangeSelectorZoom,0,15).add(this.buttonGroup);this.chart.styledMode||(this.zoomText.css(d.labelStyle),g["stroke-width"]=c(g["stroke-width"],
|
|
|
+0));m("option",{textContent:this.zoomText.textStr,disabled:!0},void 0,p);this.buttonOptions.forEach(function(c,d){m("option",{textContent:c.title||c.text},void 0,p);b[d]=f.button(c.text,0,0,function(b){var e=c.events&&c.events.click,f;e&&(f=e.call(c,b));!1!==f&&a.clickButton(d);a.isActive=!0},g,h&&h.hover,h&&h.select,h&&h.disabled).attr({"text-align":"center",width:l}).add(a.buttonGroup);c.title&&b[d].attr("title",c.title)})};h.prototype.alignElements=function(){var a=this,b=this.buttonGroup,d=this.buttons,
|
|
|
+e=this.chart,f=this.group,g=this.inputGroup,h=this.options,k=this.zoomText,l=e.options,m=l.exporting&&!1!==l.exporting.enabled&&l.navigation&&l.navigation.buttonOptions;l=h.buttonPosition;var p=h.inputPosition,n=h.verticalAlign,q=function(b,c){return m&&a.titleCollision(e)&&"top"===n&&"right"===c.align&&c.y-b.getBBox().height-12<(m.y||0)+(m.height||0)+e.spacing[0]?-40:0},u=e.plotLeft;if(f&&l&&p){var t=l.x-e.spacing[3];if(b){this.positionButtons();if(!this.initialButtonGroupWidth){var w=0;k&&(w+=k.getBBox().width+
|
|
|
+5);d.forEach(function(a,b){w+=a.width;b!==d.length-1&&(w+=h.buttonSpacing)});this.initialButtonGroupWidth=w}u-=e.spacing[3];this.updateButtonStates();k=q(b,l);this.alignButtonGroup(k);f.placed=b.placed=e.hasLoaded}b=0;g&&(b=q(g,p),"left"===p.align?t=u:"right"===p.align&&(t=-Math.max(e.axisOffset[1],-b)),g.align({y:p.y,width:g.getBBox().width,align:p.align,x:p.x+t-2},!0,e.spacingBox),g.placed=e.hasLoaded);this.handleCollision(b);f.align({verticalAlign:n},!0,e.spacingBox);g=f.alignAttr.translateY;b=
|
|
|
+f.getBBox().height+20;q=0;"bottom"===n&&(q=(q=e.legend&&e.legend.options)&&"bottom"===q.verticalAlign&&q.enabled&&!q.floating?e.legend.legendHeight+c(q.margin,10):0,b=b+q-20,q=g-b-(h.floating?0:h.y)-(e.titleOffset?e.titleOffset[2]:0)-10);if("top"===n)h.floating&&(q=0),e.titleOffset&&e.titleOffset[0]&&(q=e.titleOffset[0]),q+=e.margin[0]-e.spacing[0]||0;else if("middle"===n)if(p.y===l.y)q=g;else if(p.y||l.y)q=0>p.y||0>l.y?q-Math.min(p.y,l.y):g-b;f.translate(h.x,h.y+Math.floor(q));l=this.minInput;p=
|
|
|
+this.maxInput;g=this.dropdown;h.inputEnabled&&l&&p&&(l.style.marginTop=f.translateY+"px",p.style.marginTop=f.translateY+"px");g&&(g.style.marginTop=f.translateY+"px")}};h.prototype.alignButtonGroup=function(a,b){var d=this.chart,e=this.buttonGroup,f=this.options.buttonPosition,g=d.plotLeft-d.spacing[3],h=f.x-d.spacing[3];"right"===f.align?h+=a-g:"center"===f.align&&(h-=g/2);e&&e.align({y:f.y,width:c(b,this.initialButtonGroupWidth),align:f.align,x:h},!0,d.spacingBox)};h.prototype.positionButtons=function(){var a=
|
|
|
+this.buttons,b=this.chart,d=this.options,e=this.zoomText,f=b.hasLoaded?"animate":"attr",g=d.buttonPosition,h=b.plotLeft,k=h;e&&"hidden"!==e.visibility&&(e[f]({x:c(h+g.x,h)}),k+=g.x+e.getBBox().width+5);this.buttonOptions.forEach(function(b,c){if("hidden"!==a[c].visibility)a[c][f]({x:k}),k+=a[c].width+d.buttonSpacing;else a[c][f]({x:h})})};h.prototype.handleCollision=function(a){var b=this,c=this.chart,d=this.buttonGroup,e=this.inputGroup,f=this.options,g=f.buttonPosition,h=f.dropdown,k=f.inputPosition;
|
|
|
+f=function(){var a=0;b.buttons.forEach(function(b){b=b.getBBox();b.width>a&&(a=b.width)});return a};var l=function(b){if(e&&d){var c=e.alignAttr.translateX+e.alignOptions.x-a+e.getBBox().x+2,f=e.alignOptions.width,h=d.alignAttr.translateX+d.getBBox().x;return h+b>c&&c+f>h&&g.y<k.y+e.getBBox().height}return!1},m=function(){e&&d&&e.attr({translateX:e.alignAttr.translateX+(c.axisOffset[1]>=-a?0:-a),translateY:e.alignAttr.translateY+d.getBBox().height+10})};if(d){if("always"===h){this.collapseButtons(a);
|
|
|
+l(f())&&m();return}"never"===h&&this.expandButtons()}e&&d?k.align===g.align||l(this.initialButtonGroupWidth+20)?"responsive"===h?(this.collapseButtons(a),l(f())&&m()):m():"responsive"===h&&this.expandButtons():d&&"responsive"===h&&(this.initialButtonGroupWidth>c.plotWidth?this.collapseButtons(a):this.expandButtons())};h.prototype.collapseButtons=function(a){var b=this.buttons,c=this.buttonOptions,d=this.dropdown,e=this.options,f=this.zoomText,g=function(a){return{text:a?a+" \u25be":"\u25be",width:"auto",
|
|
|
+paddingLeft:8,paddingRight:8}};f&&f.hide();var h=!1;c.forEach(function(a,c){c=b[c];2!==c.state?c.hide():(c.show(),c.attr(g(a.text)),h=!0)});h||(d&&(d.selectedIndex=0),b[0].show(),b[0].attr(g(this.zoomText&&this.zoomText.textStr)));c=e.buttonPosition.align;this.positionButtons();"right"!==c&&"center"!==c||this.alignButtonGroup(a,b[this.currentButtonIndex()].getBBox().width);this.showDropdown()};h.prototype.expandButtons=function(){var a=this.buttons,b=this.buttonOptions,c=this.options,d=this.zoomText;
|
|
|
+this.hideDropdown();d&&d.show();b.forEach(function(b,d){d=a[d];d.show();d.attr({text:b.text,width:c.buttonTheme.width||28,paddingLeft:"unset",paddingRight:"unset"});2>d.state&&d.setState(0)});this.positionButtons()};h.prototype.currentButtonIndex=function(){var a=this.dropdown;return a&&0<a.selectedIndex?a.selectedIndex-1:0};h.prototype.showDropdown=function(){var a=this.buttonGroup,b=this.buttons,c=this.chart,d=this.dropdown;if(a&&d){var e=a.translateX;a=a.translateY;b=b[this.currentButtonIndex()].getBBox();
|
|
|
+f(d,{left:c.plotLeft+e+"px",top:a+.5+"px",width:b.width+"px",height:b.height+"px"});this.hasVisibleDropdown=!0}};h.prototype.hideDropdown=function(){var a=this.dropdown;a&&(f(a,{top:"-9999em",width:"1px",height:"1px"}),this.hasVisibleDropdown=!1)};h.prototype.getHeight=function(){var a=this.options,b=this.group,c=a.y,d=a.buttonPosition.y,e=a.inputPosition.y;if(a.height)return a.height;this.alignElements();a=b?b.getBBox(!0).height+13+c:0;b=Math.min(e,d);if(0>e&&0>d||0<e&&0<d)a+=Math.abs(b);return a};
|
|
|
+h.prototype.titleCollision=function(a){return!(a.options.title.text||a.options.subtitle.text)};h.prototype.update=function(a){var b=this.chart;w(!0,b.options.rangeSelector,a);this.destroy();this.init(b);this.render()};h.prototype.destroy=function(){var a=this,b=a.minInput,c=a.maxInput;a.eventsToUnbind&&(a.eventsToUnbind.forEach(function(a){return a()}),a.eventsToUnbind=void 0);A(a.buttons);b&&(b.onfocus=b.onblur=b.onchange=null);c&&(c.onfocus=c.onblur=c.onchange=null);n(a,function(b,c){b&&"chart"!==
|
|
|
+c&&(b instanceof E?b.destroy():b instanceof window.HTMLElement&&u(b));b!==h.prototype[c]&&(a[c]=null)},this)};return h}();B.prototype.defaultButtons=[{type:"month",count:1,text:"1m",title:"View 1 month"},{type:"month",count:3,text:"3m",title:"View 3 months"},{type:"month",count:6,text:"6m",title:"View 6 months"},{type:"ytd",text:"YTD",title:"View year to date"},{type:"year",count:1,text:"1y",title:"View 1 year"},{type:"all",text:"All",title:"View all"}];B.prototype.inputTypeFormats={"datetime-local":"%Y-%m-%dT%H:%M:%S",
|
|
|
+date:"%Y-%m-%d",time:"%H:%M:%S"};e.prototype.minFromRange=function(){var a=this.range,b=a.type,e=this.max,f=this.chart.time,g=function(a,c){var d="year"===b?"FullYear":"Month",e=new f.Date(a),g=f.get(d,e);f.set(d,e,g+c);g===f.get(d,e)&&f.set("Date",e,0);return e.getTime()-a};if(d(a)){var h=e-a;var k=a}else h=e+g(e,-a.count),this.chart&&(this.chart.fixedRange=e-h);var l=c(this.dataMin,Number.MIN_VALUE);d(h)||(h=l);h<=l&&(h=l,"undefined"===typeof k&&(k=g(h,a.count)),this.newMax=Math.min(h+k,this.dataMax));
|
|
|
+d(e)||(h=void 0);return h};if(!D.RangeSelector){var J=[],O=function(a){function b(){e&&(c=a.xAxis[0].getExtremes(),f=a.legend,h=e&&e.options.verticalAlign,d(c.min)&&e.render(c.min,c.max),f.display&&"top"===h&&h===f.options.verticalAlign&&(g=w(a.spacingBox),g.y="vertical"===f.options.layout?a.plotTop:g.y+e.getHeight(),f.group.placed=!1,f.align(g)))}var c,e=a.rangeSelector,f,g,h;e&&(I(J,function(b){return b[0]===a})||J.push([a,[z(a.xAxis[0],"afterSetExtremes",function(a){e&&e.render(a.min,a.max)}),
|
|
|
+z(a,"redraw",b)]]),b())};z(h,"afterGetContainer",function(){this.options.rangeSelector&&this.options.rangeSelector.enabled&&(this.rangeSelector=new B(this))});z(h,"beforeRender",function(){var a=this.axes,b=this.rangeSelector;b&&(d(b.deferredYTDClick)&&(b.clickButton(b.deferredYTDClick),delete b.deferredYTDClick),a.forEach(function(a){a.updateNames();a.setScale()}),this.getAxisMargins(),b.render(),a=b.options.verticalAlign,b.options.floating||("bottom"===a?this.extraBottomMargin=!0:"middle"!==a&&
|
|
|
+(this.extraTopMargin=!0)))});z(h,"update",function(a){var c=a.options.rangeSelector;a=this.rangeSelector;var d=this.extraBottomMargin,e=this.extraTopMargin;c&&c.enabled&&!b(a)&&this.options.rangeSelector&&(this.options.rangeSelector.enabled=!0,this.rangeSelector=a=new B(this));this.extraTopMargin=this.extraBottomMargin=!1;a&&(O(this),c=c&&c.verticalAlign||a.options&&a.options.verticalAlign,a.options.floating||("bottom"===c?this.extraBottomMargin=!0:"middle"!==c&&(this.extraTopMargin=!0)),this.extraBottomMargin!==
|
|
|
+d||this.extraTopMargin!==e)&&(this.isDirtyBox=!0)});z(h,"render",function(){var a=this.rangeSelector;a&&!a.options.floating&&(a.render(),a=a.options.verticalAlign,"bottom"===a?this.extraBottomMargin=!0:"middle"!==a&&(this.extraTopMargin=!0))});z(h,"getMargins",function(){var a=this.rangeSelector;a&&(a=a.getHeight(),this.extraTopMargin&&(this.plotTop+=a),this.extraBottomMargin&&(this.marginBottom+=a))});h.prototype.callbacks.push(O);z(h,"destroy",function(){for(var a=0;a<J.length;a++){var b=J[a];if(b[0]===
|
|
|
+this){b[1].forEach(function(a){return a()});J.splice(a,1);break}}});D.RangeSelector=B}return D.RangeSelector});P(e,"Core/Axis/NavigatorAxis.js",[e["Core/Globals.js"],e["Core/Utilities.js"]],function(e,h){var D=e.isTouchDevice,y=h.addEvent,F=h.correctFloat,E=h.defined,C=h.isNumber,G=h.pick,t=function(){function e(e){this.axis=e}e.prototype.destroy=function(){this.axis=void 0};e.prototype.toFixedRange=function(e,f,b,h){var m=this.axis,l=m.chart;l=l&&l.fixedRange;var t=(m.pointRange||0)/2;e=G(b,m.translate(e,
|
|
|
+!0,!m.horiz));f=G(h,m.translate(f,!0,!m.horiz));m=l&&(f-e)/l;E(b)||(e=F(e+t));E(h)||(f=F(f-t));.7<m&&1.3>m&&(h?e=f-l:f=e+l);C(e)&&C(f)||(e=f=void 0);return{min:e,max:f}};return e}();return function(){function e(){}e.compose=function(e){e.keepProps.push("navigatorAxis");y(e,"init",function(){this.navigatorAxis||(this.navigatorAxis=new t(this))});y(e,"zoom",function(e){var b=this.chart.options,f=b.navigator,h=this.navigatorAxis,l=b.chart.pinchType,m=b.rangeSelector;b=b.chart.zoomType;this.isXAxis&&
|
|
|
+(f&&f.enabled||m&&m.enabled)&&("y"===b?e.zoomed=!1:(!D&&"xy"===b||D&&"xy"===l)&&this.options.range&&(f=h.previousZoom,E(e.newMin)?h.previousZoom=[this.min,this.max]:f&&(e.newMin=f[0],e.newMax=f[1],h.previousZoom=void 0)));"undefined"!==typeof e.zoomed&&e.preventDefault()})};e.AdditionsClass=t;return e}()});P(e,"Core/Navigator.js",[e["Core/Axis/Axis.js"],e["Core/Chart/Chart.js"],e["Core/Color/Color.js"],e["Core/Globals.js"],e["Core/Axis/NavigatorAxis.js"],e["Core/Options.js"],e["Core/Color/Palette.js"],
|
|
|
+e["Core/Scrollbar.js"],e["Core/Series/Series.js"],e["Core/Series/SeriesRegistry.js"],e["Core/Utilities.js"]],function(e,h,D,y,F,E,C,G,t,z,m){D=D.parse;var f=y.hasTouch,b=y.isTouchDevice,A=E.defaultOptions,u=m.addEvent,l=m.clamp,I=m.correctFloat,k=m.defined,d=m.destroyObjectProperties,w=m.erase,n=m.extend,g=m.find,c=m.isArray,q=m.isNumber,a=m.merge,B=m.pick,J=m.removeEvent,O=m.splat,p=function(a){for(var b=[],c=1;c<arguments.length;c++)b[c-1]=arguments[c];b=[].filter.call(b,q);if(b.length)return Math[a].apply(0,
|
|
|
+b)};E="undefined"===typeof z.seriesTypes.areaspline?"line":"areaspline";n(A,{navigator:{height:40,margin:25,maskInside:!0,handles:{width:7,height:15,symbols:["navigator-handle","navigator-handle"],enabled:!0,lineWidth:1,backgroundColor:C.neutralColor5,borderColor:C.neutralColor40},maskFill:D(C.highlightColor60).setOpacity(.3).get(),outlineColor:C.neutralColor20,outlineWidth:1,series:{type:E,fillOpacity:.05,lineWidth:1,compare:null,dataGrouping:{approximation:"average",enabled:!0,groupPixelWidth:2,
|
|
|
+firstAnchor:"firstPoint",anchor:"middle",lastAnchor:"lastPoint",units:[["millisecond",[1,2,5,10,20,25,50,100,200,500]],["second",[1,2,5,10,15,30]],["minute",[1,2,5,10,15,30]],["hour",[1,2,3,4,6,8,12]],["day",[1,2,3,4]],["week",[1,2,3]],["month",[1,3,6]],["year",null]]},dataLabels:{enabled:!1,zIndex:2},id:"highcharts-navigator-series",className:"highcharts-navigator-series",lineColor:null,marker:{enabled:!1},threshold:null},xAxis:{overscroll:0,className:"highcharts-navigator-xaxis",tickLength:0,lineWidth:0,
|
|
|
+gridLineColor:C.neutralColor10,gridLineWidth:1,tickPixelInterval:200,labels:{align:"left",style:{color:C.neutralColor40},x:3,y:-4},crosshair:!1},yAxis:{className:"highcharts-navigator-yaxis",gridLineWidth:0,startOnTick:!1,endOnTick:!1,minPadding:.1,maxPadding:.1,labels:{enabled:!1},crosshair:!1,title:{text:null},tickLength:0,tickWidth:0}}});y.Renderer.prototype.symbols["navigator-handle"]=function(a,b,c,d,e){a=(e&&e.width||0)/2;b=Math.round(a/3)+.5;e=e&&e.height||0;return[["M",-a-1,.5],["L",a,.5],
|
|
|
+["L",a,e+.5],["L",-a-1,e+.5],["L",-a-1,.5],["M",-b,4],["L",-b,e-3],["M",b-1,4],["L",b-1,e-3]]};var r=function(){function h(a){this.zoomedMin=this.zoomedMax=this.yAxis=this.xAxis=this.top=this.size=this.shades=this.rendered=this.range=this.outlineHeight=this.outline=this.opposite=this.navigatorSize=this.navigatorSeries=this.navigatorOptions=this.navigatorGroup=this.navigatorEnabled=this.left=this.height=this.handles=this.chart=this.baseSeries=void 0;this.init(a)}h.prototype.drawHandle=function(a,b,
|
|
|
+c,d){var e=this.navigatorOptions.handles.height;this.handles[b][d](c?{translateX:Math.round(this.left+this.height/2),translateY:Math.round(this.top+parseInt(a,10)+.5-e)}:{translateX:Math.round(this.left+parseInt(a,10)),translateY:Math.round(this.top+this.height/2-e/2-1)})};h.prototype.drawOutline=function(a,b,c,d){var e=this.navigatorOptions.maskInside,f=this.outline.strokeWidth(),g=f/2,h=f%2/2;f=this.outlineHeight;var k=this.scrollbarHeight||0,l=this.size,m=this.left-k,n=this.top;c?(m-=g,c=n+b+h,
|
|
|
+b=n+a+h,h=[["M",m+f,n-k-h],["L",m+f,c],["L",m,c],["L",m,b],["L",m+f,b],["L",m+f,n+l+k]],e&&h.push(["M",m+f,c-g],["L",m+f,b+g])):(a+=m+k-h,b+=m+k-h,n+=g,h=[["M",m,n],["L",a,n],["L",a,n+f],["L",b,n+f],["L",b,n],["L",m+l+2*k,n]],e&&h.push(["M",a-g,n],["L",b+g,n]));this.outline[d]({d:h})};h.prototype.drawMasks=function(a,b,c,d){var e=this.left,f=this.top,g=this.height;if(c){var h=[e,e,e];var k=[f,f+a,f+b];var l=[g,g,g];var m=[a,b-a,this.size-b]}else h=[e,e+a,e+b],k=[f,f,f],l=[a,b-a,this.size-b],m=[g,
|
|
|
+g,g];this.shades.forEach(function(a,b){a[d]({x:h[b],y:k[b],width:l[b],height:m[b]})})};h.prototype.renderElements=function(){var a=this,b=a.navigatorOptions,c=b.maskInside,d=a.chart,e=d.renderer,f,g={cursor:d.inverted?"ns-resize":"ew-resize"};a.navigatorGroup=f=e.g("navigator").attr({zIndex:8,visibility:"hidden"}).add();[!c,c,!c].forEach(function(c,h){a.shades[h]=e.rect().addClass("highcharts-navigator-mask"+(1===h?"-inside":"-outside")).add(f);d.styledMode||a.shades[h].attr({fill:c?b.maskFill:"rgba(0,0,0,0)"}).css(1===
|
|
|
+h&&g)});a.outline=e.path().addClass("highcharts-navigator-outline").add(f);d.styledMode||a.outline.attr({"stroke-width":b.outlineWidth,stroke:b.outlineColor});b.handles.enabled&&[0,1].forEach(function(c){b.handles.inverted=d.inverted;a.handles[c]=e.symbol(b.handles.symbols[c],-b.handles.width/2-1,0,b.handles.width,b.handles.height,b.handles);a.handles[c].attr({zIndex:7-c}).addClass("highcharts-navigator-handle highcharts-navigator-handle-"+["left","right"][c]).add(f);if(!d.styledMode){var h=b.handles;
|
|
|
+a.handles[c].attr({fill:h.backgroundColor,stroke:h.borderColor,"stroke-width":h.lineWidth}).css(g)}})};h.prototype.update=function(b){(this.series||[]).forEach(function(a){a.baseSeries&&delete a.baseSeries.navigatorSeries});this.destroy();a(!0,this.chart.options.navigator,this.options,b);this.init(this.chart)};h.prototype.render=function(a,b,c,d){var e=this.chart,f=this.scrollbarHeight,g,h=this.xAxis,m=h.pointRange||0;var n=h.navigatorAxis.fake?e.xAxis[0]:h;var p=this.navigatorEnabled,v,r=this.rendered;
|
|
|
+var t=e.inverted;var u=e.xAxis[0].minRange,w=e.xAxis[0].options.maxRange;if(!this.hasDragged||k(c)){a=I(a-m/2);b=I(b+m/2);if(!q(a)||!q(b))if(r)c=0,d=B(h.width,n.width);else return;this.left=B(h.left,e.plotLeft+f+(t?e.plotWidth:0));this.size=v=g=B(h.len,(t?e.plotHeight:e.plotWidth)-2*f);e=t?f:g+2*f;c=B(c,h.toPixels(a,!0));d=B(d,h.toPixels(b,!0));q(c)&&Infinity!==Math.abs(c)||(c=0,d=e);a=h.toValue(c,!0);b=h.toValue(d,!0);var y=Math.abs(I(b-a));y<u?this.grabbedLeft?c=h.toPixels(b-u-m,!0):this.grabbedRight&&
|
|
|
+(d=h.toPixels(a+u+m,!0)):k(w)&&I(y-m)>w&&(this.grabbedLeft?c=h.toPixels(b-w-m,!0):this.grabbedRight&&(d=h.toPixels(a+w+m,!0)));this.zoomedMax=l(Math.max(c,d),0,v);this.zoomedMin=l(this.fixedWidth?this.zoomedMax-this.fixedWidth:Math.min(c,d),0,v);this.range=this.zoomedMax-this.zoomedMin;v=Math.round(this.zoomedMax);c=Math.round(this.zoomedMin);p&&(this.navigatorGroup.attr({visibility:"visible"}),r=r&&!this.hasDragged?"animate":"attr",this.drawMasks(c,v,t,r),this.drawOutline(c,v,t,r),this.navigatorOptions.handles.enabled&&
|
|
|
+(this.drawHandle(c,0,t,r),this.drawHandle(v,1,t,r)));this.scrollbar&&(t?(t=this.top-f,n=this.left-f+(p||!n.opposite?0:(n.titleOffset||0)+n.axisTitleMargin),f=g+2*f):(t=this.top+(p?this.height:-f),n=this.left-f),this.scrollbar.position(n,t,e,f),this.scrollbar.setRange(this.zoomedMin/(g||1),this.zoomedMax/(g||1)));this.rendered=!0}};h.prototype.addMouseEvents=function(){var a=this,b=a.chart,c=b.container,d=[],e,g;a.mouseMoveHandler=e=function(b){a.onMouseMove(b)};a.mouseUpHandler=g=function(b){a.onMouseUp(b)};
|
|
|
+d=a.getPartsEvents("mousedown");d.push(u(b.renderTo,"mousemove",e),u(c.ownerDocument,"mouseup",g));f&&(d.push(u(b.renderTo,"touchmove",e),u(c.ownerDocument,"touchend",g)),d.concat(a.getPartsEvents("touchstart")));a.eventsToUnbind=d;a.series&&a.series[0]&&d.push(u(a.series[0].xAxis,"foundExtremes",function(){b.navigator.modifyNavigatorAxisExtremes()}))};h.prototype.getPartsEvents=function(a){var b=this,c=[];["shades","handles"].forEach(function(d){b[d].forEach(function(e,f){c.push(u(e.element,a,function(a){b[d+
|
|
|
+"Mousedown"](a,f)}))})});return c};h.prototype.shadesMousedown=function(a,b){a=this.chart.pointer.normalize(a);var c=this.chart,d=this.xAxis,e=this.zoomedMin,f=this.left,g=this.size,h=this.range,l=a.chartX;c.inverted&&(l=a.chartY,f=this.top);if(1===b)this.grabbedCenter=l,this.fixedWidth=h,this.dragOffset=l-e;else{a=l-f-h/2;if(0===b)a=Math.max(0,a);else if(2===b&&a+h>=g)if(a=g-h,this.reversedExtremes){a-=h;var m=this.getUnionExtremes().dataMin}else var n=this.getUnionExtremes().dataMax;a!==e&&(this.fixedWidth=
|
|
|
+h,b=d.navigatorAxis.toFixedRange(a,a+h,m,n),k(b.min)&&c.xAxis[0].setExtremes(Math.min(b.min,b.max),Math.max(b.min,b.max),!0,null,{trigger:"navigator"}))}};h.prototype.handlesMousedown=function(a,b){this.chart.pointer.normalize(a);a=this.chart;var c=a.xAxis[0],d=this.reversedExtremes;0===b?(this.grabbedLeft=!0,this.otherHandlePos=this.zoomedMax,this.fixedExtreme=d?c.min:c.max):(this.grabbedRight=!0,this.otherHandlePos=this.zoomedMin,this.fixedExtreme=d?c.max:c.min);a.fixedRange=null};h.prototype.onMouseMove=
|
|
|
+function(a){var c=this,d=c.chart,e=c.left,f=c.navigatorSize,g=c.range,h=c.dragOffset,k=d.inverted;a.touches&&0===a.touches[0].pageX||(a=d.pointer.normalize(a),d=a.chartX,k&&(e=c.top,d=a.chartY),c.grabbedLeft?(c.hasDragged=!0,c.render(0,0,d-e,c.otherHandlePos)):c.grabbedRight?(c.hasDragged=!0,c.render(0,0,c.otherHandlePos,d-e)):c.grabbedCenter&&(c.hasDragged=!0,d<h?d=h:d>f+h-g&&(d=f+h-g),c.render(0,0,d-h,d-h+g)),c.hasDragged&&c.scrollbar&&B(c.scrollbar.options.liveRedraw,y.svg&&!b&&!this.chart.isBoosting)&&
|
|
|
+(a.DOMType=a.type,setTimeout(function(){c.onMouseUp(a)},0)))};h.prototype.onMouseUp=function(a){var b=this.chart,c=this.xAxis,d=this.scrollbar,e=a.DOMEvent||a,f=b.inverted,g=this.rendered&&!this.hasDragged?"animate":"attr";if(this.hasDragged&&(!d||!d.hasDragged)||"scrollbar"===a.trigger){d=this.getUnionExtremes();if(this.zoomedMin===this.otherHandlePos)var h=this.fixedExtreme;else if(this.zoomedMax===this.otherHandlePos)var l=this.fixedExtreme;this.zoomedMax===this.size&&(l=this.reversedExtremes?
|
|
|
+d.dataMin:d.dataMax);0===this.zoomedMin&&(h=this.reversedExtremes?d.dataMax:d.dataMin);c=c.navigatorAxis.toFixedRange(this.zoomedMin,this.zoomedMax,h,l);k(c.min)&&b.xAxis[0].setExtremes(Math.min(c.min,c.max),Math.max(c.min,c.max),!0,this.hasDragged?!1:null,{trigger:"navigator",triggerOp:"navigator-drag",DOMEvent:e})}"mousemove"!==a.DOMType&&"touchmove"!==a.DOMType&&(this.grabbedLeft=this.grabbedRight=this.grabbedCenter=this.fixedWidth=this.fixedExtreme=this.otherHandlePos=this.hasDragged=this.dragOffset=
|
|
|
+null);this.navigatorEnabled&&q(this.zoomedMin)&&q(this.zoomedMax)&&(b=Math.round(this.zoomedMin),a=Math.round(this.zoomedMax),this.shades&&this.drawMasks(b,a,f,g),this.outline&&this.drawOutline(b,a,f,g),this.navigatorOptions.handles.enabled&&Object.keys(this.handles).length===this.handles.length&&(this.drawHandle(b,0,f,g),this.drawHandle(a,1,f,g)))};h.prototype.removeEvents=function(){this.eventsToUnbind&&(this.eventsToUnbind.forEach(function(a){a()}),this.eventsToUnbind=void 0);this.removeBaseSeriesEvents()};
|
|
|
+h.prototype.removeBaseSeriesEvents=function(){var a=this.baseSeries||[];this.navigatorEnabled&&a[0]&&(!1!==this.navigatorOptions.adaptToUpdatedData&&a.forEach(function(a){J(a,"updatedData",this.updatedDataHandler)},this),a[0].xAxis&&J(a[0].xAxis,"foundExtremes",this.modifyBaseAxisExtremes))};h.prototype.init=function(b){var c=b.options,d=c.navigator,f=d.enabled,g=c.scrollbar,h=g.enabled;c=f?d.height:0;var k=h?g.height:0;this.handles=[];this.shades=[];this.chart=b;this.setBaseSeries();this.height=
|
|
|
+c;this.scrollbarHeight=k;this.scrollbarEnabled=h;this.navigatorEnabled=f;this.navigatorOptions=d;this.scrollbarOptions=g;this.outlineHeight=c+k;this.opposite=B(d.opposite,!(f||!b.inverted));var l=this;f=l.baseSeries;g=b.xAxis.length;h=b.yAxis.length;var m=f&&f[0]&&f[0].xAxis||b.xAxis[0]||{options:{}};b.isDirtyBox=!0;l.navigatorEnabled?(l.xAxis=new e(b,a({breaks:m.options.breaks,ordinal:m.options.ordinal},d.xAxis,{id:"navigator-x-axis",yAxis:"navigator-y-axis",isX:!0,type:"datetime",index:g,isInternal:!0,
|
|
|
+offset:0,keepOrdinalPadding:!0,startOnTick:!1,endOnTick:!1,minPadding:0,maxPadding:0,zoomEnabled:!1},b.inverted?{offsets:[k,0,-k,0],width:c}:{offsets:[0,-k,0,k],height:c})),l.yAxis=new e(b,a(d.yAxis,{id:"navigator-y-axis",alignTicks:!1,offset:0,index:h,isInternal:!0,reversed:B(d.yAxis&&d.yAxis.reversed,b.yAxis[0]&&b.yAxis[0].reversed,!1),zoomEnabled:!1},b.inverted?{width:c}:{height:c})),f||d.series.data?l.updateNavigatorSeries(!1):0===b.series.length&&(l.unbindRedraw=u(b,"beforeRedraw",function(){0<
|
|
|
+b.series.length&&!l.series&&(l.setBaseSeries(),l.unbindRedraw())})),l.reversedExtremes=b.inverted&&!l.xAxis.reversed||!b.inverted&&l.xAxis.reversed,l.renderElements(),l.addMouseEvents()):(l.xAxis={chart:b,navigatorAxis:{fake:!0},translate:function(a,c){var d=b.xAxis[0],e=d.getExtremes(),f=d.len-2*k,g=p("min",d.options.min,e.dataMin);d=p("max",d.options.max,e.dataMax)-g;return c?a*d/f+g:f*(a-g)/d},toPixels:function(a){return this.translate(a)},toValue:function(a){return this.translate(a,!0)}},l.xAxis.navigatorAxis.axis=
|
|
|
+l.xAxis,l.xAxis.navigatorAxis.toFixedRange=F.AdditionsClass.prototype.toFixedRange.bind(l.xAxis.navigatorAxis));b.options.scrollbar.enabled&&(b.scrollbar=l.scrollbar=new G(b.renderer,a(b.options.scrollbar,{margin:l.navigatorEnabled?0:10,vertical:b.inverted}),b),u(l.scrollbar,"changed",function(a){var b=l.size,c=b*this.to;b*=this.from;l.hasDragged=l.scrollbar.hasDragged;l.render(0,0,b,c);this.shouldUpdateExtremes(a.DOMType)&&setTimeout(function(){l.onMouseUp(a)})}));l.addBaseSeriesEvents();l.addChartEvents()};
|
|
|
+h.prototype.getUnionExtremes=function(a){var b=this.chart.xAxis[0],c=this.xAxis,d=c.options,e=b.options,f;a&&null===b.dataMin||(f={dataMin:B(d&&d.min,p("min",e.min,b.dataMin,c.dataMin,c.min)),dataMax:B(d&&d.max,p("max",e.max,b.dataMax,c.dataMax,c.max))});return f};h.prototype.setBaseSeries=function(a,b){var c=this.chart,d=this.baseSeries=[];a=a||c.options&&c.options.navigator.baseSeries||(c.series.length?g(c.series,function(a){return!a.options.isInternal}).index:0);(c.series||[]).forEach(function(b,
|
|
|
+c){b.options.isInternal||!b.options.showInNavigator&&(c!==a&&b.options.id!==a||!1===b.options.showInNavigator)||d.push(b)});this.xAxis&&!this.xAxis.navigatorAxis.fake&&this.updateNavigatorSeries(!0,b)};h.prototype.updateNavigatorSeries=function(b,d){var e=this,f=e.chart,g=e.baseSeries,h,k,l=e.navigatorOptions.series,m,p={enableMouseTracking:!1,index:null,linkedTo:null,group:"nav",padXAxis:!1,xAxis:"navigator-x-axis",yAxis:"navigator-y-axis",showInLegend:!1,stacking:void 0,isInternal:!0,states:{inactive:{opacity:1}}},
|
|
|
+q=e.series=(e.series||[]).filter(function(a){var b=a.baseSeries;return 0>g.indexOf(b)?(b&&(J(b,"updatedData",e.updatedDataHandler),delete b.navigatorSeries),a.chart&&a.destroy(),!1):!0});g&&g.length&&g.forEach(function(b){var r=b.navigatorSeries,t=n({color:b.color,visible:b.visible},c(l)?A.navigator.series:l);r&&!1===e.navigatorOptions.adaptToUpdatedData||(p.name="Navigator "+g.length,h=b.options||{},m=h.navigatorOptions||{},t.dataLabels=O(t.dataLabels),k=a(h,p,t,m),k.pointRange=B(t.pointRange,m.pointRange,
|
|
|
+A.plotOptions[k.type||"line"].pointRange),t=m.data||t.data,e.hasNavigatorData=e.hasNavigatorData||!!t,k.data=t||h.data&&h.data.slice(0),r&&r.options?r.update(k,d):(b.navigatorSeries=f.initSeries(k),b.navigatorSeries.baseSeries=b,q.push(b.navigatorSeries)))});if(l.data&&(!g||!g.length)||c(l))e.hasNavigatorData=!1,l=O(l),l.forEach(function(b,c){p.name="Navigator "+(q.length+1);k=a(A.navigator.series,{color:f.series[c]&&!f.series[c].options.isInternal&&f.series[c].color||f.options.colors[c]||f.options.colors[0]},
|
|
|
+p,b);k.data=b.data;k.data&&(e.hasNavigatorData=!0,q.push(f.initSeries(k)))});b&&this.addBaseSeriesEvents()};h.prototype.addBaseSeriesEvents=function(){var a=this,b=a.baseSeries||[];b[0]&&b[0].xAxis&&b[0].eventsToUnbind.push(u(b[0].xAxis,"foundExtremes",this.modifyBaseAxisExtremes));b.forEach(function(b){b.eventsToUnbind.push(u(b,"show",function(){this.navigatorSeries&&this.navigatorSeries.setVisible(!0,!1)}));b.eventsToUnbind.push(u(b,"hide",function(){this.navigatorSeries&&this.navigatorSeries.setVisible(!1,
|
|
|
+!1)}));!1!==this.navigatorOptions.adaptToUpdatedData&&b.xAxis&&b.eventsToUnbind.push(u(b,"updatedData",this.updatedDataHandler));b.eventsToUnbind.push(u(b,"remove",function(){this.navigatorSeries&&(w(a.series,this.navigatorSeries),k(this.navigatorSeries.options)&&this.navigatorSeries.remove(!1),delete this.navigatorSeries)}))},this)};h.prototype.getBaseSeriesMin=function(a){return this.baseSeries.reduce(function(a,b){return Math.min(a,b.xData?b.xData[0]:a)},a)};h.prototype.modifyNavigatorAxisExtremes=
|
|
|
+function(){var a=this.xAxis,b;"undefined"!==typeof a.getExtremes&&(!(b=this.getUnionExtremes(!0))||b.dataMin===a.min&&b.dataMax===a.max||(a.min=b.dataMin,a.max=b.dataMax))};h.prototype.modifyBaseAxisExtremes=function(){var a=this.chart.navigator,b=this.getExtremes(),c=b.dataMin,d=b.dataMax;b=b.max-b.min;var e=a.stickToMin,f=a.stickToMax,g=B(this.options.overscroll,0),h=a.series&&a.series[0],k=!!this.setExtremes;if(!this.eventArgs||"rangeSelectorButton"!==this.eventArgs.trigger){if(e){var l=c;var m=
|
|
|
+l+b}f&&(m=d+g,e||(l=Math.max(c,m-b,a.getBaseSeriesMin(h&&h.xData?h.xData[0]:-Number.MAX_VALUE))));k&&(e||f)&&q(l)&&(this.min=this.userMin=l,this.max=this.userMax=m)}a.stickToMin=a.stickToMax=null};h.prototype.updatedDataHandler=function(){var a=this.chart.navigator,b=this.navigatorSeries,c=a.getBaseSeriesMin(this.xData[0]);a.stickToMax=a.reversedExtremes?0===Math.round(a.zoomedMin):Math.round(a.zoomedMax)>=Math.round(a.size);a.stickToMin=q(this.xAxis.min)&&this.xAxis.min<=c&&(!this.chart.fixedRange||
|
|
|
+!a.stickToMax);b&&!a.hasNavigatorData&&(b.options.pointStart=this.xData[0],b.setData(this.options.data,!1,null,!1))};h.prototype.addChartEvents=function(){this.eventsToUnbind||(this.eventsToUnbind=[]);this.eventsToUnbind.push(u(this.chart,"redraw",function(){var a=this.navigator,b=a&&(a.baseSeries&&a.baseSeries[0]&&a.baseSeries[0].xAxis||this.xAxis[0]);b&&a.render(b.min,b.max)}),u(this.chart,"getMargins",function(){var a=this.navigator,b=a.opposite?"plotTop":"marginBottom";this.inverted&&(b=a.opposite?
|
|
|
+"marginRight":"plotLeft");this[b]=(this[b]||0)+(a.navigatorEnabled||!this.inverted?a.outlineHeight:0)+a.navigatorOptions.margin}))};h.prototype.destroy=function(){this.removeEvents();this.xAxis&&(w(this.chart.xAxis,this.xAxis),w(this.chart.axes,this.xAxis));this.yAxis&&(w(this.chart.yAxis,this.yAxis),w(this.chart.axes,this.yAxis));(this.series||[]).forEach(function(a){a.destroy&&a.destroy()});"series xAxis yAxis shades outline scrollbarTrack scrollbarRifles scrollbarGroup scrollbar navigatorGroup rendered".split(" ").forEach(function(a){this[a]&&
|
|
|
+this[a].destroy&&this[a].destroy();this[a]=null},this);[this.handles].forEach(function(a){d(a)},this)};return h}();y.Navigator||(y.Navigator=r,F.compose(e),u(h,"beforeShowResetZoom",function(){var a=this.options,c=a.navigator,d=a.rangeSelector;if((c&&c.enabled||d&&d.enabled)&&(!b&&"x"===a.chart.zoomType||b&&"x"===a.chart.pinchType))return!1}),u(h,"beforeRender",function(){var a=this.options;if(a.navigator.enabled||a.scrollbar.enabled)this.scroller=this.navigator=new r(this)}),u(h,"afterSetChartSize",
|
|
|
+function(){var a=this.legend,b=this.navigator;if(b){var c=a&&a.options;var d=b.xAxis;var e=b.yAxis;var f=b.scrollbarHeight;this.inverted?(b.left=b.opposite?this.chartWidth-f-b.height:this.spacing[3]+f,b.top=this.plotTop+f):(b.left=this.plotLeft+f,b.top=b.navigatorOptions.top||this.chartHeight-b.height-f-this.spacing[2]-(this.rangeSelector&&this.extraBottomMargin?this.rangeSelector.getHeight():0)-(c&&"bottom"===c.verticalAlign&&"proximate"!==c.layout&&c.enabled&&!c.floating?a.legendHeight+B(c.margin,
|
|
|
+10):0)-(this.titleOffset?this.titleOffset[2]:0));d&&e&&(this.inverted?d.options.left=e.options.left=b.left:d.options.top=e.options.top=b.top,d.setAxisSize(),e.setAxisSize())}}),u(h,"update",function(b){var c=b.options.navigator||{},d=b.options.scrollbar||{};this.navigator||this.scroller||!c.enabled&&!d.enabled||(a(!0,this.options.navigator,c),a(!0,this.options.scrollbar,d),delete b.options.navigator,delete b.options.scrollbar)}),u(h,"afterUpdate",function(a){this.navigator||this.scroller||!this.options.navigator.enabled&&
|
|
|
+!this.options.scrollbar.enabled||(this.scroller=this.navigator=new r(this),B(a.redraw,!0)&&this.redraw(a.animation))}),u(h,"afterAddSeries",function(){this.navigator&&this.navigator.setBaseSeries(null,!1)}),u(t,"afterUpdate",function(){this.chart.navigator&&!this.options.isInternal&&this.chart.navigator.setBaseSeries(null,!1)}),h.prototype.callbacks.push(function(a){var b=a.navigator;b&&a.xAxis[0]&&(a=a.xAxis[0].getExtremes(),b.render(a.min,a.max))}));y.Navigator=r;return y.Navigator});P(e,"masters/modules/gantt.src.js",
|
|
|
+[e["Core/Globals.js"],e["Core/Chart/GanttChart.js"]],function(e,h){e.GanttChart=h;e.ganttChart=h.ganttChart});P(e,"masters/highcharts-gantt.src.js",[e["masters/highcharts.src.js"]],function(e){e.product="Highcharts Gantt";return e});e["masters/highcharts-gantt.src.js"]._modules=e;return e["masters/highcharts-gantt.src.js"]});
|
|
|
//# sourceMappingURL=highcharts-gantt.js.map
|