{ "cells": [ { "cell_type": "code", "execution_count": 1, "metadata": {}, "outputs": [ { "data": { "text/plain": [ "true" ] }, "execution_count": 1, "metadata": {}, "output_type": "execute_result" } ], "source": [ "require 'daru/view'" ] }, { "cell_type": "code", "execution_count": 2, "metadata": {}, "outputs": [ { "data": { "application/javascript": [ "\n", " /* BEGIN google_visualr.js */\n", "\n", "if(!window['googleLT_']){window['googleLT_']=(new Date()).getTime();}if (!window['google']) {\n", "window['google'] = {};\n", "}\n", "if (!window['google']['loader']) {\n", "window['google']['loader'] = {};\n", "google.loader.ServiceBase = 'https://www.google.com/uds';\n", "google.loader.GoogleApisBase = 'https://ajax.googleapis.com/ajax';\n", "google.loader.ApiKey = 'notsupplied';\n", "google.loader.KeyVerified = true;\n", "google.loader.LoadFailure = false;\n", "google.loader.Secure = true;\n", "google.loader.GoogleLocale = 'www.google.com';\n", "google.loader.ClientLocation = null;\n", "google.loader.AdditionalParams = '';\n", "(function() {function g(a){return a in l?l[a]:l[a]=-1!=navigator.userAgent.toLowerCase().indexOf(a)}var l={};function m(a,b){var c=function(){};c.prototype=b.prototype;a.ca=b.prototype;a.prototype=new c}function n(a,b,c){var d=Array.prototype.slice.call(arguments,2)||[];return function(){return a.apply(b,d.concat(Array.prototype.slice.call(arguments)))}}function p(a){a=Error(a);a.toString=function(){return this.message};return a}\n", "function q(a,b){a=a.split(/\\./);for(var c=window,d=0;d\\x3c/script>\"):(g(\"safari\")||g(\"konqueror\"))&&window.setTimeout(B,10)),x.push(a)):y(window,\"load\",a)};t(\"google.setOnLoadCallback\",google.ba);\n", "function y(a,b,c){if(a.addEventListener)a.addEventListener(b,c,!1);else if(a.attachEvent)a.attachEvent(\"on\"+b,c);else{var d=a[\"on\"+b];a[\"on\"+b]=null!=d?C([c,d]):c}}function C(a){return function(){for(var b=0;b\\x3c/script>'):\"css\"==a&&document.write('')};\n", "t(\"google.loader.writeLoadTag\",google.loader.f);google.loader.Z=function(a){w=a};t(\"google.loader.rfm\",google.loader.Z);google.loader.aa=function(a){for(var b in a)\"string\"==typeof b&&b&&\":\"==b.charAt(0)&&!v[b]&&(v[b]=new E(b.substring(1),a[b]))};t(\"google.loader.rpl\",google.loader.aa);google.loader.$=function(a){if((a=a.specs)&&a.length)for(var b=0;b\\x3c/script>')},K.Ki=function(b){var c=K.global.document,d=c.createElement(\"script\");d.type=C;d.src=b;d.defer=!1;d.async=!1;c.head.appendChild(d)},\n", "K.Tl=function(b,c){if(K.qg()){var d=K.global.document;if(!K.De&&d.readyState==t){if(/\\bdeps.js$/.test(b))return!1;throw Error('Cannot write \"'+b+'\" after document load');}void 0===c?K.di?(K.$g=!0,c=\" onreadystatechange='goog.onScriptLoad_(this, \"+ ++K.Pg+\")' \",d.write(n+b+'\"'+c+\">\\x3c/script>\")):K.De?K.Ki(b):K.Sl(b):d.write('\n" ], "text/plain": [ "\"\\n
\\n\\n\"" ] }, "execution_count": 4, "metadata": {}, "output_type": "execute_result" } ], "source": [ "options = {\n", " type: :pie,\n", " title:'How Much Pizza Sarah Ate Last Night',\n", " width:400,\n", " height:300}\n", "pizza_sarah = Daru::View::Plot.new(df_sarah, options)\n", "pizza_sarah.show_in_iruby" ] }, { "cell_type": "code", "execution_count": 5, "metadata": {}, "outputs": [ { "data": { "text/html": [ " Daru::DataFrame(5x2) \n", "\n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", "\n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", "\n", " \n", "\n", "
ToppingSlices
0Mushrooms2
1Onions2
2Olives2
3Zucchini0
4Pepperoni3
" ], "text/plain": [ "#\n", " Topping Slices\n", " 0 Mushrooms 2\n", " 1 Onions 2\n", " 2 Olives 2\n", " 3 Zucchini 0\n", " 4 Pepperoni 3" ] }, "execution_count": 5, "metadata": {}, "output_type": "execute_result" } ], "source": [ "idx = Daru::Index.new ['Topping', 'Slices']\n", "data_rows = [\n", " ['Mushrooms', 2],\n", " ['Onions', 2],\n", " ['Olives', 2],\n", " ['Zucchini', 0],\n", " ['Pepperoni', 3]\n", "]\n", "df_anthony = Daru::DataFrame.rows(data_rows)\n", "df_anthony.vectors = idx\n", "df_anthony" ] }, { "cell_type": "code", "execution_count": 6, "metadata": {}, "outputs": [ { "data": { "text/html": [ "\n", "
\n", "\n" ], "text/plain": [ "\"\\n
\\n\\n\"" ] }, "execution_count": 6, "metadata": {}, "output_type": "execute_result" } ], "source": [ "options = {\n", " type: :pie,\n", " title:'How Much Pizza Anthony Ate Last Night',\n", " width:400,\n", " height:300}\n", "pizza_anthony = Daru::View::Plot.new(df_anthony, options)\n", "pizza_anthony.show_in_iruby" ] }, { "cell_type": "code", "execution_count": 7, "metadata": {}, "outputs": [ { "data": { "text/html": [ "\n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", "
\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n" ], "text/plain": [ "\"\\n \\n \\n \\n \\n \\n \\n \\n
\\n\\n\\n\\n\\n\\n\\n\\n\"" ] }, "execution_count": 7, "metadata": {}, "output_type": "execute_result" } ], "source": [ "combined_pizza = Daru::View::PlotList.new([pizza_sarah, pizza_anthony])\n", "combined_pizza.show_in_iruby" ] }, { "cell_type": "code", "execution_count": 8, "metadata": {}, "outputs": [ { "data": { "text/html": [ "\n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", "
\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n" ], "text/plain": [ "\"\\n \\n \\n \\n \\n \\n \\n \\n
\\n\\n\\n\\n\\n\\n\\n\\n\"" ] }, "execution_count": 8, "metadata": {}, "output_type": "execute_result" } ], "source": [ "pizza_sarah_table = Daru::View::Table.new(df_sarah)\n", "combined = Daru::View::PlotList.new([pizza_sarah_table, pizza_sarah])\n", "combined.show_in_iruby" ] }, { "cell_type": "code", "execution_count": 9, "metadata": {}, "outputs": [ { "data": { "text/html": [ "\n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", "
\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n" ], "text/plain": [ "\"\\n \\n \\n \\n \\n \\n \\n \\n
\\n\\n\\n\\n\\n\\n\\n\\n\"" ] }, "execution_count": 9, "metadata": {}, "output_type": "execute_result" } ], "source": [ "pizza_anthony_table = Daru::View::Table.new(df_anthony)\n", "combined = Daru::View::PlotList.new([pizza_anthony_table, pizza_anthony])\n", "combined.show_in_iruby" ] }, { "cell_type": "code", "execution_count": 10, "metadata": {}, "outputs": [ { "data": { "text/html": [ "\n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", "
\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n" ], "text/plain": [ "\"\\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n
\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\"" ] }, "execution_count": 10, "metadata": {}, "output_type": "execute_result" } ], "source": [ "pizza_sarah_table = Daru::View::Table.new(df_sarah)\n", "pizza_anthony_table = Daru::View::Table.new(df_anthony)\n", "combined_table = Daru::View::PlotList.new([pizza_sarah_table, pizza_sarah, pizza_anthony_table, pizza_anthony])\n", "combined_table.show_in_iruby" ] }, { "cell_type": "code", "execution_count": 11, "metadata": {}, "outputs": [ { "data": { "text/html": [ "\n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", "
\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n" ], "text/plain": [ "\"\\n \\n \\n \\n \\n \\n \\n \\n
\\n\\n\\n\\n\\n\\n\\n\\n\"" ] }, "execution_count": 11, "metadata": {}, "output_type": "execute_result" } ], "source": [ "options = {\n", " type: :bar,\n", " title:'How Much Pizza Sarah Ate Last Night',\n", " width:400,\n", " height:300\n", "}\n", "pizza_sarah_bar = Daru::View::Plot.new(df_sarah, options)\n", "combined = Daru::View::PlotList.new([pizza_sarah, pizza_sarah_bar])\n", "combined.show_in_iruby" ] }, { "cell_type": "code", "execution_count": 12, "metadata": {}, "outputs": [ { "data": { "text/html": [ "\n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", "
\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n" ], "text/plain": [ "\"\\n \\n \\n \\n \\n \\n \\n \\n \\n \\n
\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\"" ] }, "execution_count": 12, "metadata": {}, "output_type": "execute_result" } ], "source": [ "options_column = {\n", " type: :column,\n", " title:'How Much Pizza Sarah Ate Last Night',\n", " width:400,\n", " height:300\n", "}\n", "pizza_sarah_column = Daru::View::Plot.new(df_sarah, options_column)\n", "combined = Daru::View::PlotList.new([pizza_sarah, pizza_sarah_column, pizza_sarah_bar])\n", "combined.show_in_iruby" ] }, { "cell_type": "code", "execution_count": 13, "metadata": {}, "outputs": [ { "data": { "application/javascript": [ "\n", " /* BEGIN highstock.js */\n", "\n", "/*\n", " Highstock JS v6.1.1 (2018-06-27)\n", "\n", " (c) 2009-2016 Torstein Honsi\n", "\n", " License: www.highcharts.com/license\n", "*/\n", "(function(W,L){\"object\"===typeof module&&module.exports?module.exports=W.document?L(W):L:W.Highcharts=L(W)})(\"undefined\"!==typeof window?window:this,function(W){var L=function(){var a=\"undefined\"===typeof W?window:W,C=a.document,D=a.navigator&&a.navigator.userAgent||\"\",E=C&&C.createElementNS&&!!C.createElementNS(\"http://www.w3.org/2000/svg\",\"svg\").createSVGRect,q=/(edge|msie|trident)/i.test(D)&&!a.opera,n=-1!==D.indexOf(\"Firefox\"),f=-1!==D.indexOf(\"Chrome\"),r=n&&4>parseInt(D.split(\"Firefox/\")[1],\n", "10);return a.Highcharts?a.Highcharts.error(16,!0):{product:\"Highstock\",version:\"6.1.1\",deg2rad:2*Math.PI/360,doc:C,hasBidiBug:r,hasTouch:C&&void 0!==C.documentElement.ontouchstart,isMS:q,isWebKit:-1!==D.indexOf(\"AppleWebKit\"),isFirefox:n,isChrome:f,isSafari:!f&&-1!==D.indexOf(\"Safari\"),isTouchDevice:/(Mobile|Android|Windows Phone)/.test(D),SVG_NS:\"http://www.w3.org/2000/svg\",chartCount:0,seriesTypes:{},symbolSizes:{},svg:E,win:a,marginNames:[\"plotTop\",\"marginRight\",\"marginBottom\",\"plotLeft\"],noop:function(){},\n", "charts:[]}}();(function(a){a.timers=[];var C=a.charts,D=a.doc,E=a.win;a.error=function(q,n){q=a.isNumber(q)?\"Highcharts error #\"+q+\": www.highcharts.com/errors/\"+q:q;if(n)throw Error(q);E.console&&console.log(q)};a.Fx=function(a,n,f){this.options=n;this.elem=a;this.prop=f};a.Fx.prototype={dSetter:function(){var a=this.paths[0],n=this.paths[1],f=[],r=this.now,A=a.length,w;if(1===r)f=this.toD;else if(A===n.length&&1>r)for(;A--;)w=parseFloat(a[A]),f[A]=isNaN(w)?n[A]:r*parseFloat(n[A]-w)+w;else f=n;this.elem.attr(\"d\",\n", "f,null,!0)},update:function(){var a=this.elem,n=this.prop,f=this.now,r=this.options.step;if(this[n+\"Setter\"])this[n+\"Setter\"]();else a.attr?a.element&&a.attr(n,f,null,!0):a.style[n]=f+this.unit;r&&r.call(a,f,this)},run:function(q,n,f){var r=this,A=r.options,w=function(a){return w.stopped?!1:r.step(a)},y=E.requestAnimationFrame||function(a){setTimeout(a,13)},p=function(){for(var c=0;c=y+this.startTime?(this.now=this.end,this.pos=1,this.update(),f=p[this.prop]=!0,a.objectEach(p,function(a){!0!==\n", "a&&(f=!1)}),f&&w&&w.call(A),q=!1):(this.pos=r.easing((n-this.startTime)/y),this.now=this.start+(this.end-this.start)*this.pos,this.update(),q=!0);return q},initPath:function(q,n,f){function r(a){var b,c;for(e=a.length;e--;)b=\"M\"===a[e]||\"L\"===a[e],c=/[a-zA-Z]/.test(a[e+3]),b&&c&&a.splice(e+1,0,a[e+1],a[e+2],a[e+1],a[e+2])}function A(a,b){for(;a.lengtha&&-Infinity=f&&(n=[1/f])));for(r=0;r=q||\n", "!A&&w<=(n[r]+(n[r+1]||n[r]))/2);r++);return y=a.correctFloat(y*f,-Math.round(Math.log(.001)/Math.LN10))};a.stableSort=function(a,n){var f=a.length,r,A;for(A=0;Af&&(f=a[n]);return f};a.destroyObjectProperties=function(q,n){a.objectEach(q,function(a,\n", "r){a&&a!==n&&a.destroy&&a.destroy();delete q[r]})};a.discardElement=function(q){var n=a.garbageBin;n||(n=a.createElement(\"div\"));q&&n.appendChild(q);n.innerHTML=\"\"};a.correctFloat=function(a,n){return parseFloat(a.toPrecision(n||14))};a.setAnimation=function(q,n){n.renderer.globalAnimation=a.pick(q,n.options.chart.animation,!0)};a.animObject=function(q){return a.isObject(q)?a.merge(q):{duration:q?500:0}};a.timeUnits={millisecond:1,second:1E3,minute:6E4,hour:36E5,day:864E5,week:6048E5,month:24192E5,\n", "year:314496E5};a.numberFormat=function(q,n,f,r){q=+q||0;n=+n;var A=a.defaultOptions.lang,w=(q.toString().split(\".\")[1]||\"\").split(\"e\")[0].length,y,p,c=q.toString().split(\"e\");-1===n?n=Math.min(w,20):a.isNumber(n)?n&&c[1]&&0>c[1]&&(y=n+ +c[1],0<=y?(c[0]=(+c[0]).toExponential(y).split(\"e\")[0],n=y):(c[0]=c[0].split(\".\")[0]||0,q=20>n?(c[0]*Math.pow(10,c[1])).toFixed(n):0,c[1]=0)):n=2;p=(Math.abs(c[1]?c[0]:q)+Math.pow(10,-Math.max(n,w)-1)).toFixed(n);w=String(a.pInt(p));y=3q?\"-\":\"\")+(y?w.substr(0,y)+r:\"\");q+=w.substr(y).replace(/(\\d{3})(?=\\d)/g,\"$1\"+r);n&&(q+=f+p.slice(-n));c[1]&&0!==+q&&(q+=\"e\"+c[1]);return q};Math.easeInOutSine=function(a){return-.5*(Math.cos(Math.PI*a)-1)};a.getStyle=function(q,n,f){if(\"width\"===n)return Math.max(0,Math.min(q.offsetWidth,q.scrollWidth)-a.getStyle(q,\"padding-left\")-a.getStyle(q,\"padding-right\"));if(\"height\"===n)return Math.max(0,Math.min(q.offsetHeight,q.scrollHeight)-a.getStyle(q,\"padding-top\")-\n", "a.getStyle(q,\"padding-bottom\"));E.getComputedStyle||a.error(27,!0);if(q=E.getComputedStyle(q,void 0))q=q.getPropertyValue(n),a.pick(f,\"opacity\"!==n)&&(q=a.pInt(q));return q};a.inArray=function(q,n,f){return(a.indexOfPolyfill||Array.prototype.indexOf).call(n,q,f)};a.grep=function(q,n){return(a.filterPolyfill||Array.prototype.filter).call(q,n)};a.find=Array.prototype.find?function(a,n){return a.find(n)}:function(a,n){var f,r=a.length;for(f=0;f>16,(f&65280)>>8,f&255,1]:4===n&&(A=[(f&3840)>>4|(f&3840)>>8,(f&240)>>4|f&240,(f&15)<<4|f&15,1])),!A)for(w=this.parsers.length;w--&&!A;)y=this.parsers[w],(n=y.regex.exec(f))&&(A=y.parse(n));this.rgba=A||[]},get:function(a){var f=this.input,n=this.rgba,w;this.stops?(w=q(f),w.stops=[].concat(w.stops),C(this.stops,function(f,p){w.stops[p]=[w.stops[p][0],f.get(a)]})):w=n&&D(n[0])?\"rgb\"===a||!a&&1===n[3]?\"rgb(\"+n[0]+\",\"+n[1]+\",\"+n[2]+\")\":\"a\"===a?n[3]:\"rgba(\"+n.join(\",\")+\")\":f;\n", "return w},brighten:function(a){var f,A=this.rgba;if(this.stops)C(this.stops,function(f){f.brighten(a)});else if(D(a)&&0!==a)for(f=0;3>f;f++)A[f]+=n(255*a),0>A[f]&&(A[f]=0),255x.width)x={width:0,height:0}}else x=this.htmlGetBBox();b.isSVG&&(a=x.width,b=x.height,J&&\"11px\"===J.fontSize&&17===Math.round(b)&&(x.height=b=14),g&&(x.width=Math.abs(b*Math.sin(e))+Math.abs(a*Math.cos(e)),x.height=Math.abs(b*Math.cos(e))+Math.abs(a*Math.sin(e))));if(F&&0]*>/g,\"\").replace(/</g,\"\\x3c\").replace(/>/g,\"\\x3e\")))},textSetter:function(a){a!==this.textStr&&(delete this.bBox,this.textStr=a,this.added&&this.renderer.buildText(this))},fillSetter:function(a,g,x){\"string\"===typeof a?x.setAttribute(g,a):a&&this.complexColor(a,g,x)},visibilitySetter:function(a,g,x){\"inherit\"===a?x.removeAttribute(g):this[g]!==a&&x.setAttribute(g,\n", "a);this[g]=a},zIndexSetter:function(a,x){var b=this.renderer,c=this.parentGroup,e=(c||b).element||b.box,h,k=this.element,l,M,b=e===b.box;h=this.added;var B;y(a)?(k.setAttribute(\"data-z-index\",a),a=+a,this[x]===a&&(h=!1)):y(this[x])&&k.removeAttribute(\"data-z-index\");this[x]=a;if(h){(a=this.zIndex)&&c&&(c.handleZ=!0);x=e.childNodes;for(B=x.length-1;0<=B&&!l;B--)if(c=x[B],h=c.getAttribute(\"data-z-index\"),M=!y(h),c!==k)if(0>a&&M&&!b&&!B)e.insertBefore(k,x[B]),l=!0;else if(g(h)<=a||M&&(!y(a)||0<=a))e.insertBefore(k,\n", "x[B+1]||null),l=!0;l||(e.insertBefore(k,x[b?3:0]||null),l=!0)}return l},_defaultSetter:function(a,g,x){x.setAttribute(g,a)}});C.prototype.yGetter=C.prototype.xGetter;C.prototype.translateXSetter=C.prototype.translateYSetter=C.prototype.rotationSetter=C.prototype.verticalAlignSetter=C.prototype.rotationOriginXSetter=C.prototype.rotationOriginYSetter=C.prototype.scaleXSetter=C.prototype.scaleYSetter=C.prototype.matrixSetter=function(a,g){this[g]=a;this.doTransform=!0};C.prototype[\"stroke-widthSetter\"]=\n", "C.prototype.strokeSetter=function(a,g,x){this[g]=a;this.stroke&&this[\"stroke-width\"]?(C.prototype.fillSetter.call(this,this.stroke,\"stroke\",x),x.setAttribute(\"stroke-width\",this[\"stroke-width\"]),this.hasStroke=!0):\"stroke-width\"===g&&0===a&&this.hasStroke&&(x.removeAttribute(\"stroke\"),this.hasStroke=!1)};D=a.SVGRenderer=function(){this.init.apply(this,arguments)};k(D.prototype,{Element:C,SVG_NS:M,init:function(a,g,x,b,c,e){var h;b=this.createElement(\"svg\").attr({version:\"1.1\",\"class\":\"highcharts-root\"}).css(this.getStyle(b));\n", "h=b.element;a.appendChild(h);n(a,\"dir\",\"ltr\");-1===a.innerHTML.indexOf(\"xmlns\")&&n(h,\"xmlns\",this.SVG_NS);this.isSVG=!0;this.box=h;this.boxWrapper=b;this.alignedObjects=[];this.url=(z||l)&&d.getElementsByTagName(\"base\").length?P.location.href.replace(/#.*?$/,\"\").replace(/<[^>]*>/g,\"\").replace(/([\\('\\)])/g,\"\\\\$1\").replace(/ /g,\"%20\"):\"\";this.createElement(\"desc\").add().element.appendChild(d.createTextNode(\"Created with Highstock 6.1.1\"));this.defs=this.createElement(\"defs\").add();this.allowHTML=e;\n", "this.forExport=c;this.gradients={};this.cache={};this.cacheKeys=[];this.imgCount=0;this.setSize(g,x,!1);var k;z&&a.getBoundingClientRect&&(g=function(){A(a,{left:0,top:0});k=a.getBoundingClientRect();A(a,{left:Math.ceil(k.left)-k.left+\"px\",top:Math.ceil(k.top)-k.top+\"px\"})},g(),this.unSubPixelFix=E(P,\"resize\",g))},getStyle:function(a){return this.style=k({fontFamily:'\"Lucida Grande\", \"Lucida Sans Unicode\", Arial, Helvetica, sans-serif',fontSize:\"12px\"},a)},setStyle:function(a){this.boxWrapper.css(this.getStyle(a))},\n", "isHidden:function(){return!this.boxWrapper.getBBox().width},destroy:function(){var a=this.defs;this.box=null;this.boxWrapper=this.boxWrapper.destroy();c(this.gradients||{});this.gradients=null;a&&(this.defs=a.destroy());this.unSubPixelFix&&this.unSubPixelFix();return this.alignedObjects=null},createElement:function(a){var g=new this.Element;g.init(this,a);return g},draw:K,getRadialAttr:function(a,g){return{cx:a[0]-a[2]/2+g.cx*a[2],cy:a[1]-a[2]/2+g.cy*a[2],r:g.r*a[2]}},getSpanWidth:function(a){return a.getBBox(!0).width},\n", "applyEllipsis:function(a,g,x,b){var c=a.rotation,e=x,h,k=0,l=x.length,M=function(a){g.removeChild(g.firstChild);a&&g.appendChild(d.createTextNode(a))},B;a.rotation=0;e=this.getSpanWidth(a,g);if(B=e>b){for(;k<=l;)h=Math.ceil((k+l)/2),e=x.substring(0,h)+\"\\u2026\",M(e),e=this.getSpanWidth(a,g),k===l?k=l+1:e>b?l=h-1:k=h;0===l&&M(\"\")}a.rotation=c;return B},escapes:{\"\\x26\":\"\\x26amp;\",\"\\x3c\":\"\\x26lt;\",\"\\x3e\":\"\\x26gt;\",\"'\":\"\\x26#39;\",'\"':\"\\x26quot;\"},buildText:function(a){var x=a.element,b=this,c=b.forExport,\n", "h=B(a.textStr,\"\").toString(),k=-1!==h.indexOf(\"\\x3c\"),l=x.childNodes,v,z=n(x,\"x\"),t=a.styles,N=a.textWidth,J=t&&t.lineHeight,K=t&&t.textOutline,p=t&&\"ellipsis\"===t.textOverflow,G=t&&\"nowrap\"===t.whiteSpace,H=t&&t.fontSize,I,Q,f=l.length,t=N&&!a.added&&this.box,w=function(a){var c;c=/(px|em)$/.test(a&&a.style.fontSize)?a.style.fontSize:H||b.style.fontSize||12;return J?g(J):b.fontMetrics(c,a.getAttribute(\"style\")?a:x).h},y=function(a,g){F(b.escapes,function(x,b){g&&-1!==u(x,g)||(a=a.toString().replace(new RegExp(x,\n", "\"g\"),b))});return a},P=function(a,g){var x;x=a.indexOf(\"\\x3c\");a=a.substring(x,a.indexOf(\"\\x3e\")-x);x=a.indexOf(g+\"\\x3d\");if(-1!==x&&(x=x+g.length+1,g=a.charAt(x),'\"'===g||\"'\"===g))return a=a.substring(x+1),a.substring(0,a.indexOf(g))};I=[h,p,G,J,K,H,N].join();if(I!==a.textCache){for(a.textCache=I;f--;)x.removeChild(l[f]);k||K||p||N||-1!==h.indexOf(\" \")?(t&&t.appendChild(x),h=k?h.replace(/<(b|strong)>/g,'\\x3cspan style\\x3d\"font-weight:bold\"\\x3e').replace(/<(i|em)>/g,'\\x3cspan style\\x3d\"font-style:italic\"\\x3e').replace(//g,\"\\x3c/span\\x3e\").split(//g):[h],h=e(h,function(a){return\"\"!==a}),m(h,function(g,e){var h,k=0;g=g.replace(/^\\s+|\\s+$/g,\"\").replace(//g,\"\\x3c/span\\x3e|||\");h=g.split(\"|||\");m(h,function(g){if(\"\"!==g||1===h.length){var l={},B=d.createElementNS(b.SVG_NS,\"tspan\"),u,F;(u=P(g,\"class\"))&&n(B,\"class\",u);if(u=P(g,\"style\"))u=u.replace(/(;| |^)color([ :])/,\"$1fill$2\"),n(B,\"style\",u);(F=P(g,\"href\"))&&!c&&(n(B,\"onclick\",\n", "'location.href\\x3d\"'+F+'\"'),n(B,\"class\",\"highcharts-anchor\"),A(B,{cursor:\"pointer\"}));g=y(g.replace(/<[a-zA-Z\\/](.|\\n)*?>/g,\"\")||\" \");if(\" \"!==g){B.appendChild(d.createTextNode(g));k?l.dx=0:e&&null!==z&&(l.x=z);n(B,l);x.appendChild(B);!k&&Q&&(!O&&c&&A(B,{display:\"block\"}),n(B,\"dy\",w(B)));if(N){l=g.replace(/([^\\^])-/g,\"$1- \").split(\" \");F=1N,void 0===v&&(v=g),g&&1!==l.length?(B.removeChild(B.firstChild),t.unshift(l.pop())):(l=t,t=[],l.length&&!G&&(B=d.createElementNS(M,\"tspan\"),n(B,{dy:J,x:z}),u&&n(B,\"style\",u),x.appendChild(B)),m>N&&(N=m+1)),l.length&&B.appendChild(d.createTextNode(l.join(\" \").replace(/- /g,\"-\")));a.rotation=K}k++}}});Q=Q||x.childNodes.length}),p&&v&&a.attr(\"title\",y(a.textStr,[\"\\x26lt;\",\"\\x26gt;\"])),t&&t.removeChild(x),K&&a.applyTextOutline&&a.applyTextOutline(K)):x.appendChild(d.createTextNode(y(h)))}},getContrast:function(a){a=\n", "r(a).rgba;return 510Math.abs(c.end-c.start-2*Math.PI));var M=Math.cos(e),u=Math.sin(e),F=Math.cos(k),k=Math.sin(k);c=.001>c.end-e-Math.PI?0:1;h=[\"M\",a+h*M,g+l*u,\"A\",h,l,0,c,1,a+h*F,g+l*k];y(x)&&h.push(b?\"M\":\"L\",a+x*F,g+x*k,\"A\",x,x,0,c,0,a+x*M,g+x*u);h.push(b?\"\":\"Z\");return h},callout:function(a,\n", "g,x,b,c){var e=Math.min(c&&c.r||0,x,b),h=e+6,l=c&&c.anchorX;c=c&&c.anchorY;var k;k=[\"M\",a+e,g,\"L\",a+x-e,g,\"C\",a+x,g,a+x,g,a+x,g+e,\"L\",a+x,g+b-e,\"C\",a+x,g+b,a+x,g+b,a+x-e,g+b,\"L\",a+e,g+b,\"C\",a,g+b,a,g+b,a,g+b-e,\"L\",a,g+e,\"C\",a,g,a,g,a+e,g];l&&l>x?c>g+h&&cl?c>g+h&&cb&&l>a+h&&lc&&l>a+h&&la?a+3:Math.round(1.2*a);return{h:x,b:Math.round(.8*x),f:a}},rotCorr:function(a,g,x){var b=a;g&&x&&(b=Math.max(b*Math.cos(g*p),\n", "4));return{x:-a/3*Math.sin(g*p),y:b}},label:function(g,b,c,e,h,l,M,B,u){var F=this,d=F.g(\"button\"!==u&&\"label\"),t=d.text=F.text(\"\",0,0,M).attr({zIndex:1}),v,z,N=0,O=3,K=0,p,G,I,Q,f,n={},w,J,P=/^url\\((.*?)\\)$/.test(e),A=P,r,q,T,R;u&&d.addClass(\"highcharts-\"+u);A=P;r=function(){return(w||0)%2/2};q=function(){var a=t.element.style,g={};z=(void 0===p||void 0===G||f)&&y(t.textStr)&&t.getBBox();d.width=(p||z.width||0)+2*O+K;d.height=(G||z.height||0)+2*O;J=O+F.fontMetrics(a&&a.fontSize,t).b;A&&(v||(d.box=\n", "v=F.symbols[e]||P?F.symbol(e):F.rect(),v.addClass((\"button\"===u?\"\":\"highcharts-label-box\")+(u?\" highcharts-\"+u+\"-box\":\"\")),v.add(d),a=r(),g.x=a,g.y=(B?-J:0)+a),g.width=Math.round(d.width),g.height=Math.round(d.height),v.attr(k(g,n)),n={})};T=function(){var a=K+O,g;g=B?0:J;y(p)&&z&&(\"center\"===f||\"right\"===f)&&(a+={center:.5,right:1}[f]*(p-z.width));if(a!==t.x||g!==t.y)t.attr(\"x\",a),t.hasBoxWidthChanged&&(z=t.getBBox(!0),q()),void 0!==g&&t.attr(\"y\",g);t.x=a;t.y=g};R=function(a,g){v?v.attr(a,g):n[a]=\n", "g};d.onAdd=function(){t.add(d);d.attr({text:g||0===g?g:\"\",x:b,y:c});v&&y(h)&&d.attr({anchorX:h,anchorY:l})};d.widthSetter=function(g){p=a.isNumber(g)?g:null};d.heightSetter=function(a){G=a};d[\"text-alignSetter\"]=function(a){f=a};d.paddingSetter=function(a){y(a)&&a!==O&&(O=d.padding=a,T())};d.paddingLeftSetter=function(a){y(a)&&a!==K&&(K=a,T())};d.alignSetter=function(a){a={left:0,center:.5,right:1}[a];a!==N&&(N=a,z&&d.attr({x:I}))};d.textSetter=function(a){void 0!==a&&t.textSetter(a);q();T()};d[\"stroke-widthSetter\"]=\n", "function(a,g){a&&(A=!0);w=this[\"stroke-width\"]=a;R(g,a)};d.strokeSetter=d.fillSetter=d.rSetter=function(a,g){\"r\"!==g&&(\"fill\"===g&&a&&(A=!0),d[g]=a);R(g,a)};d.anchorXSetter=function(a,g){h=d.anchorX=a;R(g,Math.round(a)-r()-I)};d.anchorYSetter=function(a,g){l=d.anchorY=a;R(g,a-Q)};d.xSetter=function(a){d.x=a;N&&(a-=N*((p||z.width)+2*O),d[\"forceAnimate:x\"]=!0);I=Math.round(a);d.attr(\"translateX\",I)};d.ySetter=function(a){Q=d.y=Math.round(a);d.attr(\"translateY\",Q)};var S=d.css;return k(d,{css:function(a){if(a){var g=\n", "{};a=H(a);m(d.textProps,function(x){void 0!==a[x]&&(g[x]=a[x],delete a[x])});t.css(g);\"width\"in g&&q()}return S.call(d,a)},getBBox:function(){return{width:z.width+2*O,height:z.height+2*O,x:z.x-O,y:z.y-O}},shadow:function(a){a&&(q(),v&&v.shadow(a));return d},destroy:function(){x(d.element,\"mouseenter\");x(d.element,\"mouseleave\");t&&(t=t.destroy());v&&(v=v.destroy());C.prototype.destroy.call(d);d=F=q=T=R=null}})}});a.Renderer=D})(L);(function(a){var C=a.attr,D=a.createElement,E=a.css,q=a.defined,n=a.each,\n", "f=a.extend,r=a.isFirefox,A=a.isMS,w=a.isWebKit,y=a.pick,p=a.pInt,c=a.SVGRenderer,d=a.win,m=a.wrap;f(a.SVGElement.prototype,{htmlCss:function(a){var b=this.element;if(b=a&&\"SPAN\"===b.tagName&&a.width)delete a.width,this.textWidth=b,this.htmlUpdateTransform();a&&\"ellipsis\"===a.textOverflow&&(a.whiteSpace=\"nowrap\",a.overflow=\"hidden\");this.styles=f(this.styles,a);E(this.element,a);return this},htmlGetBBox:function(){var a=this.element;return{x:a.offsetLeft,y:a.offsetTop,width:a.offsetWidth,height:a.offsetHeight}},\n", "htmlUpdateTransform:function(){if(this.added){var a=this.renderer,b=this.element,c=this.translateX||0,h=this.translateY||0,d=this.x||0,t=this.y||0,z=this.textAlign||\"left\",m={left:0,center:.5,right:1}[z],v=this.styles,G=v&&v.whiteSpace;E(b,{marginLeft:c,marginTop:h});this.shadows&&n(this.shadows,function(a){E(a,{marginLeft:c+1,marginTop:h+1})});this.inverted&&n(b.childNodes,function(c){a.invertChild(c,b)});if(\"SPAN\"===b.tagName){var v=this.rotation,l=this.textWidth&&p(this.textWidth),H=[v,z,b.innerHTML,\n", "this.textWidth,this.textAlign].join(),K;(K=l!==this.oldTextWidth)&&!(K=l>this.oldTextWidth)&&((K=this.textPxLength)||(E(b,{width:\"\",whiteSpace:G||\"nowrap\"}),K=b.offsetWidth),K=K>l);K&&/[ \\-]/.test(b.textContent||b.innerText)?(E(b,{width:l+\"px\",display:\"block\",whiteSpace:G||\"normal\"}),this.oldTextWidth=l,this.hasBoxWidthChanged=!0):this.hasBoxWidthChanged=!1;H!==this.cTT&&(G=a.fontMetrics(b.style.fontSize).b,q(v)&&v!==(this.oldRotation||0)&&this.setSpanRotation(v,m,G),this.getSpanCorrection(!q(v)&&\n", "this.textPxLength||b.offsetWidth,G,m,v,z));E(b,{left:d+(this.xCorr||0)+\"px\",top:t+(this.yCorr||0)+\"px\"});this.cTT=H;this.oldRotation=v}}else this.alignOnAdd=!0},setSpanRotation:function(a,b,c){var e={},k=this.renderer.getTransformKey();e[k]=e.transform=\"rotate(\"+a+\"deg)\";e[k+(r?\"Origin\":\"-origin\")]=e.transformOrigin=100*b+\"% \"+c+\"px\";E(this.element,e)},getSpanCorrection:function(a,b,c){this.xCorr=-a*c;this.yCorr=-b}});f(c.prototype,{getTransformKey:function(){return A&&!/Edge/.test(d.navigator.userAgent)?\n", "\"-ms-transform\":w?\"-webkit-transform\":r?\"MozTransform\":d.opera?\"-o-transform\":\"\"},html:function(a,b,c){var e=this.createElement(\"span\"),k=e.element,d=e.renderer,z=d.isSVG,p=function(a,b){n([\"opacity\",\"visibility\"],function(c){m(a,c+\"Setter\",function(a,c,e,l){a.call(this,c,e,l);b[e]=c})});a.addedSetters=!0};e.textSetter=function(a){a!==k.innerHTML&&delete this.bBox;this.textStr=a;k.innerHTML=y(a,\"\");e.doTransform=!0};z&&p(e,e.element.style);e.xSetter=e.ySetter=e.alignSetter=e.rotationSetter=function(a,\n", "b){\"align\"===b&&(b=\"textAlign\");e[b]=a;e.doTransform=!0};e.afterSetters=function(){this.doTransform&&(this.htmlUpdateTransform(),this.doTransform=!1)};e.attr({text:a,x:Math.round(b),y:Math.round(c)}).css({fontFamily:this.style.fontFamily,fontSize:this.style.fontSize,position:\"absolute\"});k.style.whiteSpace=\"nowrap\";e.css=e.htmlCss;z&&(e.add=function(a){var b,c=d.box.parentNode,h=[];if(this.parentGroup=a){if(b=a.div,!b){for(;a;)h.push(a),a=a.parentGroup;n(h.reverse(),function(a){function l(g,b){a[b]=\n", "g;\"translateX\"===b?k.left=g+\"px\":k.top=g+\"px\";a.doTransform=!0}var k,g=C(a.element,\"class\");g&&(g={className:g});b=a.div=a.div||D(\"div\",g,{position:\"absolute\",left:(a.translateX||0)+\"px\",top:(a.translateY||0)+\"px\",display:a.display,opacity:a.opacity,pointerEvents:a.styles&&a.styles.pointerEvents},b||c);k=b.style;f(a,{classSetter:function(a){return function(g){this.element.setAttribute(\"class\",g);a.className=g}}(b),on:function(){h[0].div&&e.on.apply({element:h[0].div},arguments);return a},translateXSetter:l,\n", "translateYSetter:l});a.addedSetters||p(a,k)})}}else b=c;b.appendChild(k);e.added=!0;e.alignOnAdd&&e.htmlUpdateTransform();return e});return e}})})(L);(function(a){var C=a.defined,D=a.each,E=a.extend,q=a.merge,n=a.pick,f=a.timeUnits,r=a.win;a.Time=function(a){this.update(a,!1)};a.Time.prototype={defaultOptions:{},update:function(f){var w=n(f&&f.useUTC,!0),y=this;this.options=f=q(!0,this.options||{},f);this.Date=f.Date||r.Date;this.timezoneOffset=(this.useUTC=w)&&f.timezoneOffset;this.getTimezoneOffset=\n", "this.timezoneOffsetFunction();(this.variableTimezone=!(w&&!f.getTimezoneOffset&&!f.timezone))||this.timezoneOffset?(this.get=function(a,c){var d=c.getTime(),m=d-y.getTimezoneOffset(c);c.setTime(m);a=c[\"getUTC\"+a]();c.setTime(d);return a},this.set=function(p,c,d){var m;if(-1!==a.inArray(p,[\"Milliseconds\",\"Seconds\",\"Minutes\"]))c[\"set\"+p](d);else m=y.getTimezoneOffset(c),m=c.getTime()-m,c.setTime(m),c[\"setUTC\"+p](d),p=y.getTimezoneOffset(c),m=c.getTime()+p,c.setTime(m)}):w?(this.get=function(a,c){return c[\"getUTC\"+\n", "a]()},this.set=function(a,c,d){return c[\"setUTC\"+a](d)}):(this.get=function(a,c){return c[\"get\"+a]()},this.set=function(a,c,d){return c[\"set\"+a](d)})},makeTime:function(f,w,y,p,c,d){var m,k,b;this.useUTC?(m=this.Date.UTC.apply(0,arguments),k=this.getTimezoneOffset(m),m+=k,b=this.getTimezoneOffset(m),k!==b?m+=b-k:k-36E5!==this.getTimezoneOffset(m-36E5)||a.isSafari||(m-=36E5)):m=(new this.Date(f,w,n(y,1),n(p,0),n(c,0),n(d,0))).getTime();return m},timezoneOffsetFunction:function(){var f=this,n=this.options,\n", "y=r.moment;if(!this.useUTC)return function(a){return 6E4*(new Date(a)).getTimezoneOffset()};if(n.timezone){if(y)return function(a){return 6E4*-y.tz(a,n.timezone).utcOffset()};a.error(25)}return this.useUTC&&n.getTimezoneOffset?function(a){return 6E4*n.getTimezoneOffset(a)}:function(){return 6E4*(f.timezoneOffset||0)}},dateFormat:function(f,n,y){if(!a.defined(n)||isNaN(n))return a.defaultOptions.lang.invalidDate||\"\";f=a.pick(f,\"%Y-%m-%d %H:%M:%S\");var p=this,c=new this.Date(n),d=this.get(\"Hours\",c),\n", "m=this.get(\"Day\",c),k=this.get(\"Date\",c),b=this.get(\"Month\",c),e=this.get(\"FullYear\",c),h=a.defaultOptions.lang,u=h.weekdays,t=h.shortWeekdays,z=a.pad,c=a.extend({a:t?t[m]:u[m].substr(0,3),A:u[m],d:z(k),e:z(k,2,\" \"),w:m,b:h.shortMonths[b],B:h.months[b],m:z(b+1),o:b+1,y:e.toString().substr(2,2),Y:e,H:z(d),k:d,I:z(d%12||12),l:d%12||12,M:z(p.get(\"Minutes\",c)),p:12>d?\"AM\":\"PM\",P:12>d?\"am\":\"pm\",S:z(c.getSeconds()),L:z(Math.round(n%1E3),3)},a.dateFormats);a.objectEach(c,function(a,b){for(;-1!==f.indexOf(\"%\"+\n", "b);)f=f.replace(\"%\"+b,\"function\"===typeof a?a.call(p,n):a)});return y?f.substr(0,1).toUpperCase()+f.substr(1):f},getTimeTicks:function(a,w,y,p){var c=this,d=[],m={},k,b=new c.Date(w),e=a.unitRange,h=a.count||1,u;if(C(w)){c.set(\"Milliseconds\",b,e>=f.second?0:h*Math.floor(c.get(\"Milliseconds\",b)/h));e>=f.second&&c.set(\"Seconds\",b,e>=f.minute?0:h*Math.floor(c.get(\"Seconds\",b)/h));e>=f.minute&&c.set(\"Minutes\",b,e>=f.hour?0:h*Math.floor(c.get(\"Minutes\",b)/h));e>=f.hour&&c.set(\"Hours\",b,e>=f.day?0:h*Math.floor(c.get(\"Hours\",\n", "b)/h));e>=f.day&&c.set(\"Date\",b,e>=f.month?1:h*Math.floor(c.get(\"Date\",b)/h));e>=f.month&&(c.set(\"Month\",b,e>=f.year?0:h*Math.floor(c.get(\"Month\",b)/h)),k=c.get(\"FullYear\",b));e>=f.year&&c.set(\"FullYear\",b,k-k%h);e===f.week&&c.set(\"Date\",b,c.get(\"Date\",b)-c.get(\"Day\",b)+n(p,1));k=c.get(\"FullYear\",b);p=c.get(\"Month\",b);var t=c.get(\"Date\",b),z=c.get(\"Hours\",b);w=b.getTime();c.variableTimezone&&(u=y-w>4*f.month||c.getTimezoneOffset(w)!==c.getTimezoneOffset(y));b=b.getTime();for(w=1;bd.length&&D(d,function(a){0===a%18E5&&\"000000000\"===c.dateFormat(\"%H%M%S%L\",a)&&(m[a]=\"day\")})}d.info=E(a,{higherRanks:m,totalRange:e*h});return d}}})(L);(function(a){var C=a.color,D=a.merge;a.defaultOptions={colors:\"#7cb5ec #434348 #90ed7d #f7a35c #8085e9 #f15c80 #e4d354 #2b908f #f45b5b #91e8e1\".split(\" \"),\n", "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:a.Time.prototype.defaultOptions,\n", "chart:{borderRadius:0,defaultSeriesType:\"line\",ignoreHiddenSeries:!0,spacing:[10,10,15,10],resetZoomButton:{theme:{zIndex:6},position:{align:\"right\",x:-10,y:10}},width:null,height:null,borderColor:\"#335cad\",backgroundColor:\"#ffffff\",plotBorderColor:\"#cccccc\"},title:{text:\"Chart title\",align:\"center\",margin:15,widthAdjust:-44},subtitle:{text:\"\",align:\"center\",widthAdjust:-44},plotOptions:{},labels:{style:{position:\"absolute\",color:\"#333333\"}},legend:{enabled:!0,align:\"center\",alignColumns:!0,layout:\"horizontal\",\n", "labelFormatter:function(){return this.name},borderColor:\"#999999\",borderRadius:0,navigation:{activeColor:\"#003399\",inactiveColor:\"#cccccc\"},itemStyle:{color:\"#333333\",fontSize:\"12px\",fontWeight:\"bold\",textOverflow:\"ellipsis\"},itemHoverStyle:{color:\"#000000\"},itemHiddenStyle:{color:\"#cccccc\"},shadow:!1,itemCheckboxStyle:{position:\"absolute\",width:\"13px\",height:\"13px\"},squareSymbol:!0,symbolPadding:5,verticalAlign:\"bottom\",x:0,y:0,title:{style:{fontWeight:\"bold\"}}},loading:{labelStyle:{fontWeight:\"bold\",\n", "position:\"relative\",top:\"45%\"},style:{position:\"absolute\",backgroundColor:\"#ffffff\",opacity:.5,textAlign:\"center\"}},tooltip:{enabled:!0,animation:a.svg,borderRadius:3,dateTimeLabelFormats:{millisecond:\"%A, %b %e, %H:%M:%S.%L\",second:\"%A, %b %e, %H:%M:%S\",minute:\"%A, %b %e, %H:%M\",hour:\"%A, %b %e, %H:%M\",day:\"%A, %b %e, %Y\",week:\"Week from %A, %b %e, %Y\",month:\"%B %Y\",year:\"%Y\"},footerFormat:\"\",padding:8,snap:a.isTouchDevice?25:10,backgroundColor:C(\"#f7f7f7\").setOpacity(.85).get(),borderWidth:1,headerFormat:'\\x3cspan style\\x3d\"font-size: 10px\"\\x3e{point.key}\\x3c/span\\x3e\\x3cbr/\\x3e',\n", "pointFormat:'\\x3cspan style\\x3d\"color:{point.color}\"\\x3e\\u25cf\\x3c/span\\x3e {series.name}: \\x3cb\\x3e{point.y}\\x3c/b\\x3e\\x3cbr/\\x3e',shadow:!0,style:{color:\"#333333\",cursor:\"default\",fontSize:\"12px\",pointerEvents:\"none\",whiteSpace:\"nowrap\"}},credits:{enabled:!0,href:\"http://www.highcharts.com\",position:{align:\"right\",x:-10,verticalAlign:\"bottom\",y:-5},style:{cursor:\"pointer\",color:\"#999999\",fontSize:\"9px\"},text:\"Highcharts.com\"}};a.setOptions=function(C){a.defaultOptions=D(!0,a.defaultOptions,C);a.time.update(D(a.defaultOptions.global,\n", "a.defaultOptions.time),!1);return a.defaultOptions};a.getOptions=function(){return a.defaultOptions};a.defaultPlotOptions=a.defaultOptions.plotOptions;a.time=new a.Time(D(a.defaultOptions.global,a.defaultOptions.time));a.dateFormat=function(D,q,n){return a.time.dateFormat(D,q,n)}})(L);(function(a){var C=a.correctFloat,D=a.defined,E=a.destroyObjectProperties,q=a.fireEvent,n=a.isNumber,f=a.merge,r=a.pick,A=a.deg2rad;a.Tick=function(a,f,p,c){this.axis=a;this.pos=f;this.type=p||\"\";this.isNewLabel=this.isNew=\n", "!0;p||c||this.addLabel()};a.Tick.prototype={addLabel:function(){var a=this.axis,n=a.options,p=a.chart,c=a.categories,d=a.names,m=this.pos,k=n.labels,b=a.tickPositions,e=m===b[0],h=m===b[b.length-1],d=c?r(c[m],d[m],m):m,c=this.label,b=b.info,u;a.isDatetimeAxis&&b&&(u=n.dateTimeLabelFormats[b.higherRanks[m]||b.unitName]);this.isFirst=e;this.isLast=h;n=a.labelFormatter.call({axis:a,chart:p,isFirst:e,isLast:h,dateTimeLabelFormat:u,value:a.isLog?C(a.lin2log(d)):d,pos:m});if(D(c))c&&c.attr({text:n});else{if(this.label=\n", "c=D(n)&&k.enabled?p.renderer.text(n,0,0,k.useHTML).css(f(k.style)).add(a.labelGroup):null)c.textPxLength=c.getBBox().width;this.rotation=0}},getLabelSize:function(){return this.label?this.label.getBBox()[this.axis.horiz?\"height\":\"width\"]:0},handleOverflow:function(a){var f=this.axis,p=f.options.labels,c=a.x,d=f.chart.chartWidth,m=f.chart.spacing,k=r(f.labelLeft,Math.min(f.pos,m[3])),m=r(f.labelRight,Math.max(f.isRadial?0:f.pos+f.len,d-m[1])),b=this.label,e=this.rotation,h={left:0,center:.5,right:1}[f.labelAlign||\n", "b.attr(\"align\")],u=b.getBBox().width,t=f.getSlotWidth(this),z=t,I=1,v,G={};if(e||!1===p.overflow)0>e&&c-h*um&&(v=Math.round((d-c)/Math.cos(e*A)));else if(d=c+(1-h)*u,c-h*um&&(z=m-a.x+z*h,I=-1),z=Math.min(t,z),zz||f.autoRotation&&(b.styles||{}).width)v=z;v&&(G.width=v,(p.style||{}).textOverflow||(G.textOverflow=\"ellipsis\"),b.css(G))},getPosition:function(f,n,p,c){var d=\n", "this.axis,m=d.chart,k=c&&m.oldChartHeight||m.chartHeight;f={x:f?a.correctFloat(d.translate(n+p,null,null,c)+d.transB):d.left+d.offset+(d.opposite?(c&&m.oldChartWidth||m.chartWidth)-d.right-d.left:0),y:f?k-d.bottom+d.offset-(d.opposite?d.height:0):a.correctFloat(k-d.translate(n+p,null,null,c)-d.transB)};q(this,\"afterGetPosition\",{pos:f});return f},getLabelPosition:function(a,f,p,c,d,m,k,b){var e=this.axis,h=e.transA,u=e.reversed,t=e.staggerLines,z=e.tickRotCorr||{x:0,y:0},I=d.y,v=c||e.reserveSpaceDefault?\n", "0:-e.labelOffset*(\"center\"===e.labelAlign?.5:1),G={};D(I)||(I=0===e.side?p.rotation?-8:-p.getBBox().height:2===e.side?z.y+8:Math.cos(p.rotation*A)*(z.y-p.getBBox(!1,0).height/2));a=a+d.x+v+z.x-(m&&c?m*h*(u?-1:1):0);f=f+I-(m&&!c?m*h*(u?1:-1):0);t&&(p=k/(b||1)%t,e.opposite&&(p=t-p-1),f+=e.labelOffset/t*p);G.x=a;G.y=Math.round(f);q(this,\"afterGetLabelPosition\",{pos:G});return G},getMarkPath:function(a,f,p,c,d,m){return m.crispLine([\"M\",a,f,\"L\",a+(d?0:-p),f+(d?p:0)],c)},renderGridLine:function(a,f,p){var c=\n", "this.axis,d=c.options,m=this.gridLine,k={},b=this.pos,e=this.type,h=c.tickmarkOffset,u=c.chart.renderer,t=e?e+\"Grid\":\"grid\",z=d[t+\"LineWidth\"],I=d[t+\"LineColor\"],d=d[t+\"LineDashStyle\"];m||(k.stroke=I,k[\"stroke-width\"]=z,d&&(k.dashstyle=d),e||(k.zIndex=1),a&&(k.opacity=0),this.gridLine=m=u.path().attr(k).addClass(\"highcharts-\"+(e?e+\"-\":\"\")+\"grid-line\").add(c.gridGroup));if(!a&&m&&(a=c.getPlotLinePath(b+h,m.strokeWidth()*p,a,!0)))m[this.isNew?\"attr\":\"animate\"]({d:a,opacity:f})},renderMark:function(a,\n", "f,p){var c=this.axis,d=c.options,m=c.chart.renderer,k=this.type,b=k?k+\"Tick\":\"tick\",e=c.tickSize(b),h=this.mark,u=!h,t=a.x;a=a.y;var z=r(d[b+\"Width\"],!k&&c.isXAxis?1:0),d=d[b+\"Color\"];e&&(c.opposite&&(e[0]=-e[0]),u&&(this.mark=h=m.path().addClass(\"highcharts-\"+(k?k+\"-\":\"\")+\"tick\").add(c.axisGroup),h.attr({stroke:d,\"stroke-width\":z})),h[u?\"attr\":\"animate\"]({d:this.getMarkPath(t,a,e[0],h.strokeWidth()*p,c.horiz,m),opacity:f}))},renderLabel:function(a,f,p,c){var d=this.axis,m=d.horiz,k=d.options,b=this.label,\n", "e=k.labels,h=e.step,d=d.tickmarkOffset,u=!0,t=a.x;a=a.y;b&&n(t)&&(b.xy=a=this.getLabelPosition(t,a,b,m,e,d,c,h),this.isFirst&&!this.isLast&&!r(k.showFirstLabel,1)||this.isLast&&!this.isFirst&&!r(k.showLastLabel,1)?u=!1:!m||e.step||e.rotation||f||0===p||this.handleOverflow(a),h&&c%h&&(u=!1),u&&n(a.y)?(a.opacity=p,b[this.isNewLabel?\"attr\":\"animate\"](a),this.isNewLabel=!1):(b.attr(\"y\",-9999),this.isNewLabel=!0))},render:function(f,n,p){var c=this.axis,d=c.horiz,m=this.getPosition(d,this.pos,c.tickmarkOffset,\n", "n),k=m.x,b=m.y,c=d&&k===c.pos+c.len||!d&&b===c.pos?-1:1;p=r(p,1);this.isActive=!0;this.renderGridLine(n,p,c);this.renderMark(m,p,c);this.renderLabel(m,n,p,f);this.isNew=!1;a.fireEvent(this,\"afterRender\")},destroy:function(){E(this,this.axis)}}})(L);var ea=function(a){var C=a.addEvent,D=a.animObject,E=a.arrayMax,q=a.arrayMin,n=a.color,f=a.correctFloat,r=a.defaultOptions,A=a.defined,w=a.deg2rad,y=a.destroyObjectProperties,p=a.each,c=a.extend,d=a.fireEvent,m=a.format,k=a.getMagnitude,b=a.grep,e=a.inArray,\n", "h=a.isArray,u=a.isNumber,t=a.isString,z=a.merge,I=a.normalizeTickInterval,v=a.objectEach,G=a.pick,l=a.removeEvent,H=a.splat,K=a.syncTimeout,F=a.Tick,B=function(){this.init.apply(this,arguments)};a.extend(B.prototype,{defaultOptions:{dateTimeLabelFormats:{millisecond:\"%H:%M:%S.%L\",second:\"%H:%M:%S\",minute:\"%H:%M\",hour:\"%H:%M\",day:\"%e. %b\",week:\"%e. %b\",month:\"%b '%y\",year:\"%Y\"},endOnTick:!1,labels:{enabled:!0,style:{color:\"#666666\",cursor:\"default\",fontSize:\"11px\"},x:0},maxPadding:.01,minorTickLength:2,\n", "minorTickPosition:\"outside\",minPadding:.01,startOfWeek:1,startOnTick:!1,tickLength:10,tickmarkPlacement:\"between\",tickPixelInterval:100,tickPosition:\"outside\",title:{align:\"middle\",style:{color:\"#666666\"}},type:\"linear\",minorGridLineColor:\"#f2f2f2\",minorGridLineWidth:1,minorTickColor:\"#999999\",lineColor:\"#ccd6eb\",lineWidth:1,gridLineColor:\"#e6e6e6\",tickColor:\"#ccd6eb\"},defaultYAxisOptions:{endOnTick:!0,tickPixelInterval:72,showLastLabel:!0,labels:{x:-8},maxPadding:.05,minPadding:.05,startOnTick:!0,\n", "title:{rotation:270,text:\"Values\"},stackLabels:{allowOverlap:!1,enabled:!1,formatter:function(){return a.numberFormat(this.total,-1)},style:{fontSize:\"11px\",fontWeight:\"bold\",color:\"#000000\",textOutline:\"1px contrast\"}},gridLineWidth:1,lineWidth:0},defaultLeftAxisOptions:{labels:{x:-15},title:{rotation:270}},defaultRightAxisOptions:{labels:{x:15},title:{rotation:90}},defaultBottomAxisOptions:{labels:{autoRotation:[-45],x:0},title:{rotation:0}},defaultTopAxisOptions:{labels:{autoRotation:[-45],x:0},\n", "title:{rotation:0}},init:function(a,x){var g=x.isX,b=this;b.chart=a;b.horiz=a.inverted&&!b.isZAxis?!g:g;b.isXAxis=g;b.coll=b.coll||(g?\"xAxis\":\"yAxis\");d(this,\"init\",{userOptions:x});b.opposite=x.opposite;b.side=x.side||(b.horiz?b.opposite?0:2:b.opposite?1:3);b.setOptions(x);var c=this.options,l=c.type;b.labelFormatter=c.labels.formatter||b.defaultLabelFormatter;b.userOptions=x;b.minPixelPadding=0;b.reversed=c.reversed;b.visible=!1!==c.visible;b.zoomEnabled=!1!==c.zoomEnabled;b.hasNames=\"category\"===\n", "l||!0===c.categories;b.categories=c.categories||b.hasNames;b.names||(b.names=[],b.names.keys={});b.plotLinesAndBandsGroups={};b.isLog=\"logarithmic\"===l;b.isDatetimeAxis=\"datetime\"===l;b.positiveValuesOnly=b.isLog&&!b.allowNegativeLog;b.isLinked=A(c.linkedTo);b.ticks={};b.labelEdge=[];b.minorTicks={};b.plotLinesAndBands=[];b.alternateBands={};b.len=0;b.minRange=b.userMinRange=c.minRange||c.maxZoom;b.range=c.range;b.offset=c.offset||0;b.stacks={};b.oldStacks={};b.stacksTouched=0;b.max=null;b.min=null;\n", "b.crosshair=G(c.crosshair,H(a.options.tooltip.crosshairs)[g?0:1],!1);x=b.options.events;-1===e(b,a.axes)&&(g?a.axes.splice(a.xAxis.length,0,b):a.axes.push(b),a[b.coll].push(b));b.series=b.series||[];a.inverted&&!b.isZAxis&&g&&void 0===b.reversed&&(b.reversed=!0);v(x,function(a,g){C(b,g,a)});b.lin2log=c.linearToLogConverter||b.lin2log;b.isLog&&(b.val2lin=b.log2lin,b.lin2val=b.lin2log);d(this,\"afterInit\")},setOptions:function(a){this.options=z(this.defaultOptions,\"yAxis\"===this.coll&&this.defaultYAxisOptions,\n", "[this.defaultTopAxisOptions,this.defaultRightAxisOptions,this.defaultBottomAxisOptions,this.defaultLeftAxisOptions][this.side],z(r[this.coll],a));d(this,\"afterSetOptions\",{userOptions:a})},defaultLabelFormatter:function(){var g=this.axis,b=this.value,c=g.chart.time,e=g.categories,l=this.dateTimeLabelFormat,h=r.lang,k=h.numericSymbols,h=h.numericSymbolMagnitude||1E3,B=k&&k.length,d,u=g.options.labels.format,g=g.isLog?Math.abs(b):g.tickInterval;if(u)d=m(u,this,c);else if(e)d=b;else if(l)d=c.dateFormat(l,\n", "b);else if(B&&1E3<=g)for(;B--&&void 0===d;)c=Math.pow(h,B+1),g>=c&&0===10*b%c&&null!==k[B]&&0!==b&&(d=a.numberFormat(b/c,-1)+k[B]);void 0===d&&(d=1E4<=Math.abs(b)?a.numberFormat(b,-1):a.numberFormat(b,-1,void 0,\"\"));return d},getSeriesExtremes:function(){var a=this,x=a.chart;d(this,\"getSeriesExtremes\",null,function(){a.hasVisibleSeries=!1;a.dataMin=a.dataMax=a.threshold=null;a.softThreshold=!a.isXAxis;a.buildStacks&&a.buildStacks();p(a.series,function(g){if(g.visible||!x.options.chart.ignoreHiddenSeries){var c=\n", "g.options,e=c.threshold,l;a.hasVisibleSeries=!0;a.positiveValuesOnly&&0>=e&&(e=null);if(a.isXAxis)c=g.xData,c.length&&(g=q(c),l=E(c),u(g)||g instanceof Date||(c=b(c,u),g=q(c),l=E(c)),c.length&&(a.dataMin=Math.min(G(a.dataMin,c[0],g),g),a.dataMax=Math.max(G(a.dataMax,c[0],l),l)));else if(g.getExtremes(),l=g.dataMax,g=g.dataMin,A(g)&&A(l)&&(a.dataMin=Math.min(G(a.dataMin,g),g),a.dataMax=Math.max(G(a.dataMax,l),l)),A(e)&&(a.threshold=e),!c.softThreshold||a.positiveValuesOnly)a.softThreshold=!1}})});\n", "d(this,\"afterGetSeriesExtremes\")},translate:function(a,b,c,e,l,h){var g=this.linkedParent||this,x=1,k=0,d=e?g.oldTransA:g.transA;e=e?g.oldMin:g.min;var B=g.minPixelPadding;l=(g.isOrdinal||g.isBroken||g.isLog&&l)&&g.lin2val;d||(d=g.transA);c&&(x*=-1,k=g.len);g.reversed&&(x*=-1,k-=x*(g.sector||g.len));b?(a=(a*x+k-B)/d+e,l&&(a=g.lin2val(a))):(l&&(a=g.val2lin(a)),a=u(e)?x*(a-e)*d+k+x*B+(u(h)?d*h:0):void 0);return a},toPixels:function(a,b){return this.translate(a,!1,!this.horiz,null,!0)+(b?0:this.pos)},\n", "toValue:function(a,b){return this.translate(a-(b?0:this.pos),!0,!this.horiz,null,!0)},getPlotLinePath:function(a,b,c,e,l){var g=this.chart,x=this.left,h=this.top,k,d,B=c&&g.oldChartHeight||g.chartHeight,M=c&&g.oldChartWidth||g.chartWidth,t;k=this.transB;var F=function(a,g,b){if(ab)e?a=Math.min(Math.max(g,a),b):t=!0;return a};l=G(l,this.translate(a,null,null,c));l=Math.min(Math.max(-1E5,l),1E5);a=c=Math.round(l+k);k=d=Math.round(B-l-k);u(l)?this.horiz?(k=h,d=B-this.bottom,a=c=F(a,x,x+this.width)):\n", "(a=x,c=M-this.right,k=d=F(k,h,h+this.height)):(t=!0,e=!1);return t&&!e?null:g.renderer.crispLine([\"M\",a,k,\"L\",c,d],b||1)},getLinearTickPositions:function(a,b,c){var g,x=f(Math.floor(b/a)*a);c=f(Math.ceil(c/a)*a);var e=[],l;f(x+a)===x&&(l=20);if(this.single)return[b];for(b=x;b<=c;){e.push(b);b=f(b+a,l);if(b===g)break;g=b}return e},getMinorTickInterval:function(){var a=this.options;return!0===a.minorTicks?G(a.minorTickInterval,\"auto\"):!1===a.minorTicks?null:a.minorTickInterval},getMinorTickPositions:function(){var a=\n", "this,b=a.options,c=a.tickPositions,e=a.minorTickInterval,l=[],h=a.pointRangePadding||0,k=a.min-h,h=a.max+h,d=h-k;if(d&&d/e=this.minRange,t=this.minRange,e=(t-c+b)/2,e=[b-e,G(a.min,b-e)],l&&(e[2]=this.isLog?this.log2lin(this.dataMin):this.dataMin),b=E(e),c=[b+t,\n", "G(a.max,b+t)],l&&(c[2]=this.isLog?this.log2lin(this.dataMax):this.dataMax),c=q(c),c-b=H?(y=H,z=0):b.dataMax<=H&&(r=H,F=0)),b.min=G(w,y,b.dataMin),b.max=G(q,r,b.dataMax));l&&(b.positiveValuesOnly&&!g&&0>=Math.min(b.min,G(b.dataMin,b.min))&&a.error(10,1),b.min=\n", "f(b.log2lin(b.min),15),b.max=f(b.log2lin(b.max),15));b.range&&A(b.max)&&(b.userMin=b.min=w=Math.max(b.dataMin,b.minFromRange()),b.userMax=q=b.max,b.range=null);d(b,\"foundExtremes\");b.beforePadding&&b.beforePadding();b.adjustForMinRange();!(K||b.axisPointRange||b.usePercentage||t)&&A(b.min)&&A(b.max)&&(c=b.max-b.min)&&(!A(w)&&z&&(b.min-=c*z),!A(q)&&F&&(b.max+=c*F));u(e.softMin)&&!u(b.userMin)&&(b.min=Math.min(b.min,e.softMin));u(e.softMax)&&!u(b.userMax)&&(b.max=Math.max(b.max,e.softMax));u(e.floor)&&\n", "(b.min=Math.max(b.min,e.floor));u(e.ceiling)&&(b.max=Math.min(b.max,e.ceiling));n&&A(b.dataMin)&&(H=H||0,!A(w)&&b.min=H?b.min=H:!A(q)&&b.max>H&&b.dataMax<=H&&(b.max=H));b.tickInterval=b.min===b.max||void 0===b.min||void 0===b.max?1:t&&!v&&m===b.linkedParent.options.tickPixelInterval?v=b.linkedParent.tickInterval:G(v,this.tickAmount?(b.max-b.min)/Math.max(this.tickAmount-1,1):void 0,K?1:(b.max-b.min)*m/Math.max(b.len,m));B&&!g&&p(b.series,function(a){a.processData(b.min!==b.oldMin||b.max!==\n", "b.oldMax)});b.setAxisTranslation(!0);b.beforeSetTickPositions&&b.beforeSetTickPositions();b.postProcessTickInterval&&(b.tickInterval=b.postProcessTickInterval(b.tickInterval));b.pointRange&&!v&&(b.tickInterval=Math.max(b.pointRange,b.tickInterval));g=G(e.minTickInterval,b.isDatetimeAxis&&b.closestPointRange);!v&&b.tickIntervalb.tickInterval&&1E3b.max)),!!this.tickAmount));\n", "this.tickAmount||(b.tickInterval=b.unsquish());this.setTickPositions()},setTickPositions:function(){var a=this.options,b,c=a.tickPositions;b=this.getMinorTickInterval();var e=a.tickPositioner,l=a.startOnTick,h=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&&A(this.min)&&!this.tickAmount&&(parseInt(this.min,10)===this.min||!1!==a.allowDecimals);\n", "this.tickPositions=b=c&&c.slice();!b&&(b=this.isDatetimeAxis?this.getTimeTicks(this.normalizeTimeTickInterval(this.tickInterval,a.units),this.min,this.max,a.startOfWeek,this.ordinalPositions,this.closestPointRange,!0):this.isLog?this.getLogTickPositions(this.tickInterval,this.min,this.max):this.getLinearTickPositions(this.tickInterval,this.min,this.max),b.length>this.len&&(b=[b[0],b.pop()],b[0]===b[1]&&(b.length=1)),this.tickPositions=b,e&&(e=e.apply(this,[this.min,this.max])))&&(this.tickPositions=\n", "b=e);this.paddedTicks=b.slice(0);this.trimTicks(b,l,h);this.isLinked||(this.single&&2>b.length&&(this.min-=.5,this.max+=.5),c||e||this.adjustTickAmount());d(this,\"afterSetTickPositions\")},trimTicks:function(a,b,c){var g=a[0],e=a[a.length-1],l=this.minPointOffset||0;if(!this.isLinked){if(b&&-Infinity!==g)this.min=g;else for(;this.min-l>a[0];)a.shift();if(c)this.max=e;else for(;this.max+lb&&(this.finalTickAmt=b,b=5);this.tickAmount=b},adjustTickAmount:function(){var a=this.tickInterval,b=this.tickPositions,c=this.tickAmount,e=this.finalTickAmt,l=b&&b.length,h=G(this.threshold,this.softThreshold?0:null);if(this.hasData()){if(lc&&(this.tickInterval*=2,this.setTickPositions());if(A(e)){for(a=c=b.length;a--;)(3===e&&\n", "1===a%2||2>=e&&0e&&(a=e)),A(c)&&(be&&(b=e))),this.displayBtn=void 0!==a||void 0!==b,this.setExtremes(a,b,!1,void 0,{trigger:\"zoom\"});return!0},setAxisSize:function(){var b=this.chart,c=this.options,e=c.offsets||[0,0,0,0],l=this.horiz,h=this.width=Math.round(a.relativeLength(G(c.width,b.plotWidth-e[3]+e[1]),b.plotWidth)),k=this.height=Math.round(a.relativeLength(G(c.height,b.plotHeight-\n", "e[0]+e[2]),b.plotHeight)),d=this.top=Math.round(a.relativeLength(G(c.top,b.plotTop+e[0]),b.plotHeight,b.plotTop)),c=this.left=Math.round(a.relativeLength(G(c.left,b.plotLeft+e[3]),b.plotWidth,b.plotLeft));this.bottom=b.chartHeight-k-d;this.right=b.chartWidth-h-c;this.len=Math.max(l?h:k,0);this.pos=l?c:d},getExtremes:function(){var a=this.isLog;return{min:a?f(this.lin2log(this.min)):this.min,max:a?f(this.lin2log(this.max)):this.max,dataMin:this.dataMin,dataMax:this.dataMax,userMin:this.userMin,userMax:this.userMax}},\n", "getThreshold:function(a){var b=this.isLog,g=b?this.lin2log(this.min):this.min,b=b?this.lin2log(this.max):this.max;null===a||-Infinity===a?a=g:Infinity===a?a=b:g>a?a=g:ba?\"right\":195a?\"left\":\"center\"},tickSize:function(a){var b=this.options,g=b[a+\"Length\"],c=G(b[a+\"Width\"],\"tick\"===a&&this.isXAxis?1:0);if(c&&g)return\"inside\"===b[a+\"Position\"]&&(g=-g),[g,c]},labelMetrics:function(){var a=\n", "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)},unsquish:function(){var a=this.options.labels,b=this.horiz,c=this.tickInterval,e=c,l=this.len/(((this.categories?1:0)+this.max-this.min)/c),h,k=a.rotation,d=this.labelMetrics(),B,u=Number.MAX_VALUE,t,F=function(a){a/=l||1;a=1=a)B=F(Math.abs(d.h/Math.sin(w*a))),b=B+Math.abs(a/360),b(c.step||0)&&!c.rotation&&(this.staggerLines||1)*this.len/e||!b&&(c.style&&parseInt(c.style.width,10)||l&&l-a.spacing[3]||\n", ".33*a.chartWidth)},renderUnsquish:function(){var a=this.chart,b=a.renderer,c=this.tickPositions,e=this.ticks,l=this.options.labels,h=l&&l.style||{},k=this.horiz,d=this.getSlotWidth(),B=Math.max(1,Math.round(d-2*(l.padding||5))),u={},F=this.labelMetrics(),z=l.style&&l.style.textOverflow,v,m,K=0,H;t(l.rotation)||(u.rotation=l.rotation||0);p(c,function(a){(a=e[a])&&a.label&&a.label.textPxLength>K&&(K=a.label.textPxLength)});this.maxLabelLength=K;if(this.autoRotation)K>B&&K>F.h?u.rotation=this.labelRotation:\n", "this.labelRotation=0;else if(d&&(v=B,!z))for(m=\"clip\",B=c.length;!k&&B--;)if(H=c[B],H=e[H].label)H.styles&&\"ellipsis\"===H.styles.textOverflow?H.css({textOverflow:\"clip\"}):H.textPxLength>d&&H.css({width:d+\"px\"}),H.getBBox().height>this.len/c.length-(F.h-F.f)&&(H.specificTextOverflow=\"ellipsis\");u.rotation&&(v=K>.5*a.chartHeight?.33*a.chartHeight:a.chartHeight,z||(m=\"ellipsis\"));if(this.labelAlign=l.align||this.autoLabelAlign(this.labelRotation))u.align=this.labelAlign;p(c,function(a){var b=(a=e[a])&&\n", "a.label,g=h.width,c={};b&&(b.attr(u),v&&!g&&\"nowrap\"!==h.whiteSpace&&(v=this.min&&a<=this.max)c[a]||(c[a]=new F(this,a)),e&&c[a].isNew&&c[a].render(b,!0,.1),c[a].render(b)},render:function(){var b=this,c=b.chart,e=b.options,l=b.isLog,h=b.isLinked,k=b.tickPositions,B=b.axisTitle,t=b.ticks,z=b.minorTicks,m=b.alternateBands,H=e.stackLabels,G=e.alternateGridColor,f=b.tickmarkOffset,I=b.axisLine,n=b.showAxis,y=D(c.renderer.globalAnimation),w,r;b.labelEdge.length=0;b.overlap=!1;p([t,z,m],function(a){v(a,function(a){a.isActive=\n", "!1})});if(b.hasData()||h)b.minorTickInterval&&!b.categories&&p(b.getMinorTickPositions(),function(a){b.renderMinorTick(a)}),k.length&&(p(k,function(a,c){b.renderTick(a,c)}),f&&(0===b.min||b.single)&&(t[-1]||(t[-1]=new F(b,-1,null,!0)),t[-1].render(-1))),G&&p(k,function(g,e){r=void 0!==k[e+1]?k[e+1]+f:b.max-f;0===e%2&&gr&&(!w||b<=A)&&void 0!==b&&c.push(b),b>A&&(e=!0),b=k;else r=this.lin2log(r),A=this.lin2log(A),a=w?this.getMinorTickInterval():f.tickInterval,a=n(\"auto\"===a?null:a,this._minorAutoInterval,f.tickPixelInterval/(w?5:1)*(A-r)/((w?p/this.tickPositions.length:p)||1)),a=q(a,null,D(a)),c=E(this.getLinearTickPositions(a,r,A),this.log2lin),w||(this._minorAutoInterval=a/5);w||(this.tickInterval=a);return c};C.prototype.log2lin=function(a){return Math.log(a)/\n", "Math.LN10};C.prototype.lin2log=function(a){return Math.pow(10,a)}})(L);(function(a,C){var D=a.arrayMax,E=a.arrayMin,q=a.defined,n=a.destroyObjectProperties,f=a.each,r=a.erase,A=a.merge,w=a.pick;a.PlotLineOrBand=function(a,p){this.axis=a;p&&(this.options=p,this.id=p.id)};a.PlotLineOrBand.prototype={render:function(){var f=this,p=f.axis,c=p.horiz,d=f.options,m=d.label,k=f.label,b=d.to,e=d.from,h=d.value,u=q(e)&&q(b),t=q(h),z=f.svgElem,I=!z,v=[],G=d.color,l=w(d.zIndex,0),H=d.events,v={\"class\":\"highcharts-plot-\"+\n", "(u?\"band \":\"line \")+(d.className||\"\")},K={},F=p.chart.renderer,B=u?\"bands\":\"lines\";p.isLog&&(e=p.log2lin(e),b=p.log2lin(b),h=p.log2lin(h));t?(v.stroke=G,v[\"stroke-width\"]=d.width,d.dashStyle&&(v.dashstyle=d.dashStyle)):u&&(G&&(v.fill=G),d.borderWidth&&(v.stroke=d.borderColor,v[\"stroke-width\"]=d.borderWidth));K.zIndex=l;B+=\"-\"+l;(G=p.plotLinesAndBandsGroups[B])||(p.plotLinesAndBandsGroups[B]=G=F.g(\"plot-\"+B).attr(K).add());I&&(f.svgElem=z=F.path().attr(v).add(G));if(t)v=p.getPlotLinePath(h,z.strokeWidth());\n", "else if(u)v=p.getPlotBandPath(e,b,d);else return;I&&v&&v.length?(z.attr({d:v}),H&&a.objectEach(H,function(a,b){z.on(b,function(a){H[b].apply(f,[a])})})):z&&(v?(z.show(),z.animate({d:v})):(z.hide(),k&&(f.label=k=k.destroy())));m&&q(m.text)&&v&&v.length&&0this.max&&p>this.max;if(d&&c)for(a&&(e=d.toString()===c.toString(),b=0),a=0;au-h?u:u-h);else if(t)e[a]=Math.max(k,l+h+g>c?l:l+h);else return!1},F=function(a,c,g,l){var h;lc-b?h=!1:e[a]=lc-g/2?c-g-2:l-g/2;return h},B=function(a){var b=G;G=l;l=b;u=a},g=function(){!1!==K.apply(0,G)?!1!==F.apply(0,l)||u||(B(!0),g()):u?e.x=e.y=0:(B(!0),g())};(c.inverted||1H&&(h=!1);a=(c.series&&c.series.yAxis&&c.series.yAxis.pos)+(c.plotY||0);a-=b.plotTop;k.push({target:c.isHeader?b.plotHeight+t:a,rank:c.isHeader?1:0,size:v.tt.getBBox().height+1,point:c,x:H,tt:l})}});this.cleanSplit();\n", "a.distribute(k,b.plotHeight+t);D(k,function(a){var c=a.point,e=c.series;a.tt.attr({visibility:void 0===a.pos?\"hidden\":\"inherit\",x:h||c.isHeader?a.x:c.plotX+b.plotLeft+A(u.distance,16),y:a.pos+b.plotTop,anchorX:c.isHeader?c.plotX+b.plotLeft:c.plotX+e.xAxis.pos,anchorY:c.isHeader?a.pos+b.plotTop-15:c.plotY+e.yAxis.pos})})},updatePosition:function(a){var c=this.chart,m=this.getLabel(),k=(this.options.positioner||this.getPosition).call(this,m.width,m.height,a),b=a.plotX+c.plotLeft;a=a.plotY+c.plotTop;\n", "var e;this.outside&&(e=(this.options.borderWidth||0)+2*this.distance,this.renderer.setSize(m.width+e,m.height+e,!1),b+=c.pointer.chartPosition.left-k.x,a+=c.pointer.chartPosition.top-k.y);this.move(Math.round(k.x),Math.round(k.y||0),b,a)},getDateFormat:function(a,d,m,k){var b=this.chart.time,c=b.dateFormat(\"%m-%d %H:%M:%S.%L\",d),h,u,t={millisecond:15,second:12,minute:9,hour:6,day:3},z=\"millisecond\";for(u in p){if(a===p.week&&+b.dateFormat(\"%w\",d)===m&&\"00:00:00.000\"===c.substr(6)){u=\"week\";break}if(p[u]>\n", "a){u=z;break}if(t[u]&&c.substr(t[u])!==\"01-01 00:00:00.000\".substr(t[u]))break;\"week\"!==u&&(z=u)}u&&(h=k[u]);return h},getXDateFormat:function(a,d,m){d=d.dateTimeLabelFormats;var c=m&&m.closestPointRange;return(c?this.getDateFormat(c,a.x,m.options.startOfWeek,d):d.day)||d.year},tooltipFooterHeaderFormatter:function(a,d){d=d?\"footer\":\"header\";var c=a.series,k=c.tooltipOptions,b=k.xDateFormat,e=c.xAxis,h=e&&\"datetime\"===e.options.type&&n(a.key),u=k[d+\"Format\"];h&&!b&&(b=this.getXDateFormat(a,k,e));\n", "h&&b&&D(a.point&&a.point.tooltipDateKeys||[\"key\"],function(a){u=u.replace(\"{point.\"+a+\"}\",\"{point.\"+a+\":\"+b+\"}\")});return q(u,{point:a,series:c},this.chart.time)},bodyFormatter:function(a){return f(a,function(a){var c=a.series.tooltipOptions;return(c[(a.point.formatPrefix||\"point\")+\"Formatter\"]||a.point.tooltipFormatter).call(a.point,c[(a.point.formatPrefix||\"point\")+\"Format\"])})}}})(L);(function(a){var C=a.addEvent,D=a.attr,E=a.charts,q=a.color,n=a.css,f=a.defined,r=a.each,A=a.extend,w=a.find,y=\n", "a.fireEvent,p=a.isNumber,c=a.isObject,d=a.offset,m=a.pick,k=a.splat,b=a.Tooltip;a.Pointer=function(a,b){this.init(a,b)};a.Pointer.prototype={init:function(a,c){this.options=c;this.chart=a;this.runChartClick=c.chart.events&&!!c.chart.events.click;this.pinchDown=[];this.lastValidTouch={};b&&(a.tooltip=new b(a,c.tooltip),this.followTouchMove=m(c.tooltip.followTouchMove,!0));this.setDOMEvents()},zoomOption:function(a){var b=this.chart,c=b.options.chart,e=c.zoomType||\"\",b=b.inverted;/touch/.test(a.type)&&\n", "(e=m(c.pinchType,e));this.zoomX=a=/x/.test(e);this.zoomY=e=/y/.test(e);this.zoomHor=a&&!b||e&&b;this.zoomVert=e&&!b||a&&b;this.hasZoom=a||e},normalize:function(a,b){var c;c=a.touches?a.touches.length?a.touches.item(0):a.changedTouches[0]:a;b||(this.chartPosition=b=d(this.chart.container));return A(a,{chartX:Math.round(c.pageX-b.left),chartY:Math.round(c.pageY-b.top)})},getCoordinates:function(a){var b={xAxis:[],yAxis:[]};r(this.chart.axes,function(c){b[c.isXAxis?\"xAxis\":\"yAxis\"].push({axis:c,value:c.toValue(a[c.horiz?\n", "\"chartX\":\"chartY\"])})});return b},findNearestKDPoint:function(a,b,k){var e;r(a,function(a){var h=!(a.noSharedTooltip&&b)&&0>a.options.findNearestPointBy.indexOf(\"y\");a=a.searchPoint(k,h);if((h=c(a,!0))&&!(h=!c(e,!0)))var h=e.distX-a.distX,d=e.dist-a.dist,u=(a.series.group&&a.series.group.zIndex)-(e.series.group&&e.series.group.zIndex),h=0<(0!==h&&b?h:0!==d?d:0!==u?u:e.series.index>a.series.index?-1:1);h&&(e=a)});return e},getPointFromEvent:function(a){a=a.target;for(var b;a&&!b;)b=a.point,a=a.parentNode;\n", "return b},getChartCoordinatesFromPoint:function(a,b){var c=a.series,e=c.xAxis,c=c.yAxis,h=m(a.clientX,a.plotX),k=a.shapeArgs;if(e&&c)return b?{chartX:e.len+e.pos-h,chartY:c.len+c.pos-a.plotY}:{chartX:h+e.pos,chartY:a.plotY+c.pos};if(k&&k.x&&k.y)return{chartX:k.x,chartY:k.y}},getHoverData:function(b,h,k,d,z,p,v){var e,l=[],u=v&&v.isBoosting;d=!(!d||!b);v=h&&!h.stickyTracking?[h]:a.grep(k,function(a){return a.visible&&!(!z&&a.directTouch)&&m(a.options.enableMouseTracking,!0)&&a.stickyTracking});h=(e=\n", "d?b:this.findNearestKDPoint(v,z,p))&&e.series;e&&(z&&!h.noSharedTooltip?(v=a.grep(k,function(a){return a.visible&&!(!z&&a.directTouch)&&m(a.options.enableMouseTracking,!0)&&!a.noSharedTooltip}),r(v,function(a){var b=w(a.points,function(a){return a.x===e.x&&!a.isNull});c(b)&&(u&&(b=a.getPoint(b)),l.push(b))})):l.push(e));return{hoverPoint:e,hoverSeries:h,hoverPoints:l}},runPointActions:function(b,c){var e=this.chart,h=e.tooltip&&e.tooltip.options.enabled?e.tooltip:void 0,k=h?h.shared:!1,d=c||e.hoverPoint,\n", "v=d&&d.series||e.hoverSeries,v=this.getHoverData(d,v,e.series,!!c||v&&v.directTouch&&this.isDirectTouch,k,b,{isBoosting:e.isBoosting}),p,d=v.hoverPoint;p=v.hoverPoints;c=(v=v.hoverSeries)&&v.tooltipOptions.followPointer;k=k&&v&&!v.noSharedTooltip;if(d&&(d!==e.hoverPoint||h&&h.isHidden)){r(e.hoverPoints||[],function(b){-1===a.inArray(b,p)&&b.setState()});r(p||[],function(a){a.setState(\"hover\")});if(e.hoverSeries!==v)v.onMouseOver();e.hoverPoint&&e.hoverPoint.firePointEvent(\"mouseOut\");if(!d.series)return;\n", "d.firePointEvent(\"mouseOver\");e.hoverPoints=p;e.hoverPoint=d;h&&h.refresh(k?p:d,b)}else c&&h&&!h.isHidden&&(d=h.getAnchor([{}],b),h.updatePosition({plotX:d[0],plotY:d[1]}));this.unDocMouseMove||(this.unDocMouseMove=C(e.container.ownerDocument,\"mousemove\",function(b){var c=E[a.hoverChartIndex];if(c)c.pointer.onDocumentMouseMove(b)}));r(e.axes,function(c){var e=m(c.crosshair.snap,!0),l=e?a.find(p,function(a){return a.series[c.coll]===c}):void 0;l||!e?c.drawCrosshair(b,l):c.hideCrosshair()})},reset:function(a,\n", "b){var c=this.chart,e=c.hoverSeries,h=c.hoverPoint,d=c.hoverPoints,m=c.tooltip,p=m&&m.shared?d:h;a&&p&&r(k(p),function(b){b.series.isCartesian&&void 0===b.plotX&&(a=!1)});if(a)m&&p&&(m.refresh(p),h&&(h.setState(h.state,!0),r(c.axes,function(a){a.crosshair&&a.drawCrosshair(null,h)})));else{if(h)h.onMouseOut();d&&r(d,function(a){a.setState()});if(e)e.onMouseOut();m&&m.hide(b);this.unDocMouseMove&&(this.unDocMouseMove=this.unDocMouseMove());r(c.axes,function(a){a.hideCrosshair()});this.hoverX=c.hoverPoints=\n", "c.hoverPoint=null}},scaleGroups:function(a,b){var c=this.chart,e;r(c.series,function(h){e=a||h.getPlotBox();h.xAxis&&h.xAxis.zoomEnabled&&h.group&&(h.group.attr(e),h.markerGroup&&(h.markerGroup.attr(e),h.markerGroup.clip(b?c.clipRect:null)),h.dataLabelsGroup&&h.dataLabelsGroup.attr(e))});c.clipRect.attr(b||c.clipBox)},dragStart:function(a){var b=this.chart;b.mouseIsDown=a.type;b.cancelClick=!1;b.mouseDownX=this.mouseDownX=a.chartX;b.mouseDownY=this.mouseDownY=a.chartY},drag:function(a){var b=this.chart,\n", "c=b.options.chart,e=a.chartX,k=a.chartY,d=this.zoomHor,m=this.zoomVert,p=b.plotLeft,l=b.plotTop,H=b.plotWidth,K=b.plotHeight,F,B=this.selectionMarker,g=this.mouseDownX,x=this.mouseDownY,f=c.panKey&&a[c.panKey+\"Key\"];B&&B.touch||(ep+H&&(e=p+H),kl+K&&(k=l+K),this.hasDragged=Math.sqrt(Math.pow(g-e,2)+Math.pow(x-k,2)),10l.max&&(f=l.max-z,x=!0);x?(F-=.8*(F-d[b][0]),H||(g-=.8*(g-d[b][1])),n()):d[b]=[F,g];G||(c[b]=I-t,c[u]=z);c=G?1/v:v;p[u]=\n", "z;p[b]=f;q[G?a?\"scaleY\":\"scaleX\":\"scale\"+e]=v;q[\"translate\"+e]=c*t+(F-c*K)},pinch:function(a){var r=this,w=r.chart,y=r.pinchDown,p=a.touches,c=p.length,d=r.lastValidTouch,m=r.hasZoom,k=r.selectionMarker,b={},e=1===c&&(r.inClass(a.target,\"highcharts-tracker\")&&w.runTrackerClick||r.runChartClick),h={};1b-6&&k\n", "f?this.maxItemWidth:a.itemWidth;d&&this.itemX-c+b>f&&(this.itemX=c,this.itemY+=z+this.lastLineHeight+m,this.lastLineHeight=0);this.lastItemY=z+this.itemY+m;this.lastLineHeight=Math.max(k,this.lastLineHeight);a._legendItemPos=[this.itemX,this.itemY];d?this.itemX+=b:(this.itemY+=z+k+m,this.lastLineHeight=k);this.offsetWidth=v||Math.max((d?this.itemX-c-(a.checkbox?0:p):b)+c,this.offsetWidth)},getAllItems:function(){var a=[];n(this.chart.series,function(b){var c=b&&b.options;b&&y(c.showInLegend,q(c.linkedTo)?\n", "!1:void 0,!0)&&(a=a.concat(b.legendItems||(\"point\"===c.legendType?b.data:b)))});f(this,\"afterGetAllItems\",{allItems:a});return a},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)},adjustMargins:function(a,b){var c=this.chart,d=this.options,k=this.getAlignment();k&&n([/(lth|ct|rth)/,/(rtv|rm|rbv)/,/(rbh|cb|lbh)/,/(lbv|lm|ltv)/],function(e,h){e.test(k)&&!q(a[h])&&(c[A[h]]=Math.max(c[A[h]],\n", "c.legend[(h+1)%2?\"legendHeight\":\"legendWidth\"]+[1,-1,-1,1][h]*d[h%2?\"x\":\"y\"]+y(d.margin,12)+b[h]+(0===h&&void 0!==c.options.title.margin?c.titleOffset+c.options.title.margin:0)))})},proximatePositions:function(){var c=this.chart,b=[],e=\"left\"===this.options.align;n(this.allItems,function(d){var h,k;h=e;d.xAxis&&d.points&&(d.xAxis.options.reversed&&(h=!h),h=a.find(h?d.points:d.points.slice(0).reverse(),function(b){return a.isNumber(b.plotY)}),k=d.legendGroup.getBBox().height,b.push({target:d.visible?\n", "h.plotY-.3*k:c.plotHeight,size:k,item:d}))},this);a.distribute(b,c.plotHeight);n(b,function(a){a.item._legendItemPos[1]=c.plotTop-c.spacing[0]+a.pos})},render:function(){var a=this.chart,b=a.renderer,e=this.group,d,m,t,z=this.box,p=this.options,v=this.padding;this.itemX=v;this.itemY=this.initialItemY;this.lastItemY=this.offsetWidth=0;e||(this.group=e=b.g(\"legend\").attr({zIndex:7}).add(),this.contentGroup=b.g().attr({zIndex:1}).add(e),this.scrollGroup=b.g().add(this.contentGroup));this.renderTitle();\n", "d=this.getAllItems();c(d,function(a,b){return(a.options&&a.options.legendIndex||0)-(b.options&&b.options.legendIndex||0)});p.reversed&&d.reverse();this.allItems=d;this.display=m=!!d.length;this.itemHeight=this.totalItemWidth=this.maxItemWidth=this.lastLineHeight=0;n(d,this.renderItem,this);n(d,this.layoutItem,this);d=(p.width||this.offsetWidth)+v;t=this.lastItemY+this.lastLineHeight+this.titleHeight;t=this.handleOverflow(t);t+=v;z||(this.box=z=b.rect().addClass(\"highcharts-legend-box\").attr({r:p.borderRadius}).add(e),\n", "z.isNew=!0);z.attr({stroke:p.borderColor,\"stroke-width\":p.borderWidth||0,fill:p.backgroundColor||\"none\"}).shadow(p.shadow);0c&&!1!==G.enabled?(this.clipHeight=f=Math.max(c-20-this.titleHeight-p,0),this.currentPage=y(this.currentPage,1),this.fullHeight=a,n(g,function(a,b){var c=a._legendItemPos[1],e=Math.round(a.legendItem.getBBox().height),l=F.length;if(!l||c-F[l-1]>f&&(B||c)!==F[l-1])F.push(B||c),l++;a.pageIx=l-1;B&&(g[b-1].pageIx=l-1);b===g.length-1&&c+e-F[l-1]>f&&(F.push(c),a.pageIx=l);c!==B&&(B=c)}),v||(v=b.clipRect=\n", "d.clipRect(0,p,9999,0),b.contentGroup.clip(v)),x(f),K||(this.nav=K=d.g().attr({zIndex:1}).add(this.group),this.up=d.symbol(\"triangle\",0,0,H,H).on(\"click\",function(){b.scroll(-1,l)}).add(K),this.pager=d.text(\"\",15,10).addClass(\"highcharts-legend-navigation\").css(G.style).add(K),this.down=d.symbol(\"triangle-down\",0,0,H,H).on(\"click\",function(){b.scroll(1,l)}).add(K)),b.scroll(0),a=c):K&&(x(),this.nav=K.destroy(),this.scrollGroup.attr({translateY:1}),this.clipHeight=0);return a},scroll:function(a,b){var c=\n", "this.pages,d=c.length;a=this.currentPage+a;var k=this.clipHeight,m=this.options.navigation,z=this.pager,f=this.padding;a>d&&(a=d);0b&&(d=typeof p[0],\"string\"===d?c.name=p[0]:\"number\"===d&&(c.x=p[0]),e++);h=m.value;)m=c[++d];this.nonZonedColor||(this.nonZonedColor=this.color);this.color=m&&m.color&&!this.options.color?m.color:this.nonZonedColor;return m},destroy:function(){var a=this.series.chart,c=a.hoverPoints,d;a.pointCount--;c&&(this.setState(),q(c,this),c.length||(a.hoverPoints=null));if(this===a.hoverPoint)this.onMouseOut();if(this.graphic||this.dataLabel)y(this),this.destroyElements();this.legendItem&&\n", "a.legend.destroyItem(this);for(d in this)this[d]=null},destroyElements:function(){for(var a=[\"graphic\",\"dataLabel\",\"dataLabelUpper\",\"connector\",\"shadowGroup\"],c,d=6;d--;)c=a[d],this[c]&&(this[c]=this[c].destroy())},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}},tooltipFormatter:function(a){var c=this.series,d=c.tooltipOptions,\n", "m=w(d.valueDecimals,\"\"),k=d.valuePrefix||\"\",b=d.valueSuffix||\"\";D(c.pointArrayMap||[\"y\"],function(c){c=\"{point.\"+c;if(k||b)a=a.replace(RegExp(c+\"}\",\"g\"),k+c+\"}\"+b);a=a.replace(RegExp(c+\"}\",\"g\"),c+\":,.\"+m+\"f}\")});return f(a,{point:this,series:this.series},c.chart.time)},firePointEvent:function(a,c,d){var m=this,k=this.series.options;(k.point.events[a]||m.options&&m.options.events&&m.options.events[a])&&this.importEvents();\"click\"===a&&k.allowPointSelect&&(d=function(a){m.select&&m.select(null,a.ctrlKey||\n", "a.metaKey||a.shiftKey)});n(this,a,c,d)},visible:!0}})(L);(function(a){var C=a.addEvent,D=a.animObject,E=a.arrayMax,q=a.arrayMin,n=a.correctFloat,f=a.defaultOptions,r=a.defaultPlotOptions,A=a.defined,w=a.each,y=a.erase,p=a.extend,c=a.fireEvent,d=a.grep,m=a.isArray,k=a.isNumber,b=a.isString,e=a.merge,h=a.objectEach,u=a.pick,t=a.removeEvent,z=a.splat,I=a.SVGElement,v=a.syncTimeout,G=a.win;a.Series=a.seriesType(\"line\",null,{lineWidth:2,allowPointSelect:!1,showCheckbox:!1,animation:{duration:1E3},events:{},\n", "marker:{lineWidth:0,lineColor:\"#ffffff\",enabledThreshold:2,radius:4,states:{normal:{animation:!0},hover:{animation:{duration:50},enabled:!0,radiusPlus:2,lineWidthPlus:1},select:{fillColor:\"#cccccc\",lineColor:\"#000000\",lineWidth:2}}},point:{events:{}},dataLabels:{align:\"center\",formatter:function(){return null===this.y?\"\":a.numberFormat(this.y,-1)},style:{fontSize:\"11px\",fontWeight:\"bold\",color:\"contrast\",textOutline:\"1px contrast\"},verticalAlign:\"bottom\",x:0,y:0,padding:5},cropThreshold:300,pointRange:0,\n", "softThreshold:!0,states:{normal:{animation:!0},hover:{animation:{duration:50},lineWidthPlus:1,marker:{},halo:{size:10,opacity:.25}},select:{marker:{}}},stickyTracking:!0,turboThreshold:1E3,findNearestPointBy:\"x\"},{isCartesian:!0,pointClass:a.Point,sorted:!0,requireSorting:!0,directTouch:!1,axisTypes:[\"xAxis\",\"yAxis\"],colorCounter:0,parallelArrays:[\"x\",\"y\"],coll:\"series\",init:function(a,b){var l=this,e,d=a.series,g;l.chart=a;l.options=b=l.setOptions(b);l.linkedSeries=[];l.bindAxes();p(l,{name:b.name,\n", "state:\"\",visible:!1!==b.visible,selected:!0===b.selected});e=b.events;h(e,function(a,b){C(l,b,a)});if(e&&e.click||b.point&&b.point.events&&b.point.events.click||b.allowPointSelect)a.runTrackerClick=!0;l.getColor();l.getSymbol();w(l.parallelArrays,function(a){l[a+\"Data\"]=[]});l.setData(b.data,!1);l.isCartesian&&(a.hasCartesianSeries=!0);d.length&&(g=d[d.length-1]);l._i=u(g&&g._i,-1)+1;a.orderSeries(this.insert(d));c(this,\"afterInit\")},insert:function(a){var b=this.options.index,c;if(k(b)){for(c=a.length;c--;)if(b>=\n", "u(a[c].options.index,a[c]._i)){a.splice(c+1,0,this);break}-1===c&&a.unshift(this);c+=1}else a.push(this);return u(c,a.length-1)},bindAxes:function(){var b=this,c=b.options,e=b.chart,d;w(b.axisTypes||[],function(l){w(e[l],function(a){d=a.options;if(c[l]===d.index||void 0!==c[l]&&c[l]===d.id||void 0===c[l]&&0===d.index)b.insert(a.series),b[l]=a,a.isDirty=!0});b[l]||b.optionalAxis===l||a.error(18,!0)})},updateParallelArrays:function(a,b){var c=a.series,l=arguments,e=k(b)?function(g){var l=\"y\"===g&&c.toYData?\n", "c.toYData(a):a[g];c[g+\"Data\"][b]=l}:function(a){Array.prototype[b].apply(c[a+\"Data\"],Array.prototype.slice.call(l,2))};w(c.parallelArrays,e)},autoIncrement:function(){var a=this.options,b=this.xIncrement,c,e=a.pointIntervalUnit,d=this.chart.time,b=u(b,a.pointStart,0);this.pointInterval=c=u(this.pointInterval,a.pointInterval,1);e&&(a=new d.Date(b),\"day\"===e?d.set(\"Date\",a,d.get(\"Date\",a)+c):\"month\"===e?d.set(\"Month\",a,d.get(\"Month\",a)+c):\"year\"===e&&d.set(\"FullYear\",a,d.get(\"FullYear\",a)+c),c=a.getTime()-\n", "b);this.xIncrement=b+c;return b},setOptions:function(a){var b=this.chart,l=b.options,d=l.plotOptions,h=(b.userOptions||{}).plotOptions||{},g=d[this.type];this.userOptions=a;b=e(g,d.series,a);this.tooltipOptions=e(f.tooltip,f.plotOptions.series&&f.plotOptions.series.tooltip,f.plotOptions[this.type].tooltip,l.tooltip.userOptions,d.series&&d.series.tooltip,d[this.type].tooltip,a.tooltip);this.stickyTracking=u(a.stickyTracking,h[this.type]&&h[this.type].stickyTracking,h.series&&h.series.stickyTracking,\n", "this.tooltipOptions.shared&&!this.noSharedTooltip?!0:b.stickyTracking);null===g.marker&&delete b.marker;this.zoneAxis=b.zoneAxis;a=this.zones=(b.zones||[]).slice();!b.negativeColor&&!b.negativeFillColor||b.zones||a.push({value:b[this.zoneAxis+\"Threshold\"]||b.threshold||0,className:\"highcharts-negative\",color:b.negativeColor,fillColor:b.negativeFillColor});a.length&&A(a[a.length-1].value)&&a.push({color:this.color,fillColor:this.fillColor});c(this,\"afterSetOptions\",{options:b});return b},getName:function(){return this.name||\n", "\"Series \"+(this.index+1)},getCyclic:function(a,b,c){var e,l=this.chart,g=this.userOptions,d=a+\"Index\",h=a+\"Counter\",k=c?c.length:u(l.options.chart[a+\"Count\"],l[a+\"Count\"]);b||(e=u(g[d],g[\"_\"+d]),A(e)||(l.series.length||(l[h]=0),g[\"_\"+d]=e=l[h]%k,l[h]+=1),c&&(b=c[e]));void 0!==e&&(this[d]=e);this[a]=b},getColor:function(){this.options.colorByPoint?this.options.color=null:this.getCyclic(\"color\",this.options.color||r[this.type].color,this.chart.options.colors)},getSymbol:function(){this.getCyclic(\"symbol\",\n", "this.options.marker.symbol,this.chart.options.symbols)},drawLegendSymbol:a.LegendSymbolMixin.drawLineMarker,updateData:function(b){var c=this.options,e=this.points,l=[],d,g,h,m=this.requireSorting;w(b,function(b){var g;g=a.defined(b)&&this.pointClass.prototype.optionsToObject.call({series:this},b).x;k(g)&&(g=a.inArray(g,this.xData,h),-1===g?l.push(b):b!==c.data[g]?(e[g].update(b,!1,null,!1),e[g].touched=!0,m&&(h=g)):e[g]&&(e[g].touched=!0),d=!0)},this);if(d)for(b=e.length;b--;)g=e[b],g.touched||g.remove(!1),\n", "g.touched=!1;else if(b.length===e.length)w(b,function(a,b){e[b].update&&a!==c.data[b]&&e[b].update(a,!1,null,!1)});else return!1;w(l,function(a){this.addPoint(a,!1)},this);return!0},setData:function(c,e,d,h){var l=this,g=l.points,F=g&&g.length||0,v,z=l.options,t=l.chart,f=null,p=l.xAxis,n=z.turboThreshold,H=this.xData,G=this.yData,K=(v=l.pointArrayMap)&&v.length,I;c=c||[];v=c.length;e=u(e,!0);!1!==h&&v&&F&&!l.cropped&&!l.hasGroupedData&&l.visible&&(I=this.updateData(c));if(!I){l.xIncrement=null;l.colorCounter=\n", "0;w(this.parallelArrays,function(a){l[a+\"Data\"].length=0});if(n&&v>n){for(d=0;null===f&&dm||this.forceCrop))if(c[l-1]n)c=[],e=[];else if(c[0]n)d=this.cropData(this.xData,this.yData,u,n),c=d.xData,e=d.yData,d=d.start,g=!0;for(m=c.length||1;--m;)l=t?v(c[m])-v(c[m-1]):c[m]-c[m-1],0l&&p&&(a.error(15),p=!1);this.cropped=g;this.cropStart=d;this.processedXData=c;this.processedYData=e;this.closestPointRange=h},cropData:function(a,b,c,e,d){var g=a.length,l=0,h=g,k;d=\n", "u(d,this.cropShoulder,1);for(k=0;k=c){l=Math.max(0,k-d);break}for(c=k;ce){h=c+d;break}return{xData:a.slice(l,h),yData:b.slice(l,h),start:l,end:h}},generatePoints:function(){var a=this.options,b=a.data,c=this.data,e,d=this.processedXData,g=this.processedYData,h=this.pointClass,k=d.length,m=this.cropStart||0,v,f=this.hasGroupedData,a=a.keys,t,p=[],u;c||f||(c=[],c.length=b.length,c=this.data=c);a&&f&&(this.options.keys=!1);for(u=0;u=d&&(c[p-t]||f)<=h,v&&f)if(v=z.length)for(;v--;)\"number\"===typeof z[v]&&(l[g++]=z[v]);else l[g++]=z;this.dataMin=q(l);this.dataMax=E(l)},translate:function(){this.processedXData||this.processData();this.generatePoints();var a=this.options,b=a.stacking,e=this.xAxis,d=e.categories,h=this.yAxis,g=this.points,m=g.length,v=!!this.modifyValue,f=a.pointPlacement,\n", "z=\"between\"===f||k(f),t=a.threshold,p=a.startFromThreshold?t:0,G,I,w,q,r=Number.MAX_VALUE;\"between\"===f&&(f=.5);k(f)&&(f*=u(a.pointRange||e.pointRange));for(a=0;a=C&&(y.isNull=!0);y.plotX=G=n(Math.min(Math.max(-1E5,e.translate(D,0,0,0,1,f,\"flags\"===this.type)),1E5));b&&this.visible&&!y.isNull&&E&&E[D]&&(q=this.getStackIndicator(q,D,this.index),L=E[D],C=L.points[q.key],\n", "I=C[0],C=C[1],I===p&&q.key===E[D].base&&(I=u(k(t)&&t,h.min)),h.positiveValuesOnly&&0>=I&&(I=null),y.total=y.stackTotal=L.total,y.percentage=L.total&&y.y/L.total*100,y.stackY=C,L.setOffset(this.pointXOffset||0,this.barW||0));y.yBottom=A(I)?Math.min(Math.max(-1E5,h.translate(I,0,1,0,1)),1E5):null;v&&(C=this.modifyValue(C,y));y.plotY=I=\"number\"===typeof C&&Infinity!==C?Math.min(Math.max(-1E5,h.translate(C,0,1,0,1)),1E5):void 0;y.isInside=void 0!==I&&0<=I&&I<=h.len&&0<=G&&G<=e.len;y.clientX=z?n(e.translate(D,\n", "0,0,0,1,f)):G;y.negative=y.y<(t||0);y.category=d&&void 0!==d[y.x]?d[y.x]:y.x;y.isNull||(void 0!==w&&(r=Math.min(r,Math.abs(G-w))),w=G);y.zone=this.zones.length&&y.getZone()}this.closestPointRangePx=r;c(this,\"afterTranslate\")},getValidPoints:function(a,b){var c=this.chart;return d(a||this.points||[],function(a){return b&&!c.isInsidePlot(a.plotX,a.plotY,c.inverted)?!1:!a.isNull})},setClip:function(a){var b=this.chart,c=this.options,e=b.renderer,d=b.inverted,g=this.clipBox,l=g||b.clipBox,h=this.sharedClipKey||\n", "[\"_sharedClip\",a&&a.duration,a&&a.easing,l.height,c.xAxis,c.yAxis].join(),k=b[h],m=b[h+\"m\"];k||(a&&(l.width=0,d&&(l.x=b.plotSizeX),b[h+\"m\"]=m=e.clipRect(d?b.plotSizeX+99:-99,d?-b.plotLeft:-b.plotTop,99,d?b.chartWidth:b.chartHeight)),b[h]=k=e.clipRect(l),k.count={length:0});a&&!k.count[this.index]&&(k.count[this.index]=!0,k.count.length+=1);!1!==c.clip&&(this.group.clip(a||g?k:b.clipRect),this.markerGroup.clip(m),this.sharedClipKey=h);a||(k.count[this.index]&&(delete k.count[this.index],--k.count.length),\n", "0===k.count.length&&h&&b[h]&&(g||(b[h]=b[h].destroy()),b[h+\"m\"]&&(b[h+\"m\"]=b[h+\"m\"].destroy())))},animate:function(a){var b=this.chart,c=D(this.options.animation),e;a?this.setClip(c):(e=this.sharedClipKey,(a=b[e])&&a.animate({width:b.plotSizeX,x:0},c),b[e+\"m\"]&&b[e+\"m\"].animate({width:b.plotSizeX+99,x:0},c),this.animate=null)},afterAnimate:function(){this.setClip();c(this,\"afterAnimate\");this.finishedAnimating=!0},drawPoints:function(){var a=this.points,b=this.chart,c,e,d,g,h=this.options.marker,\n", "k,m,v,f=this[this.specialGroup]||this.markerGroup,t,z=u(h.enabled,this.xAxis.isRadial?!0:null,this.closestPointRangePx>=h.enabledThreshold*h.radius);if(!1!==h.enabled||this._hasPointMarkers)for(c=0;cg&&b.shadow));l&&(l.startX=c.xMap,l.isArea=c.isArea)})},getZonesGraphs:function(a){w(this.zones,function(b,c){a.push([\"zone-graph-\"+c,\"highcharts-graph highcharts-zone-graph-\"+c+\" \"+(b.className||\"\"),b.color||this.color,b.dashStyle||this.options.dashStyle])},this);return a},applyZones:function(){var a=this,\n", "b=this.chart,c=b.renderer,e=this.zones,d,g,h=this.clips||[],k,m=this.graph,v=this.area,f=Math.max(b.chartWidth,b.chartHeight),t=this[(this.zoneAxis||\"y\")+\"Axis\"],z,p,n=b.inverted,G,I,q,r,y=!1;e.length&&(m||v)&&t&&void 0!==t.min&&(p=t.reversed,G=t.horiz,m&&!this.showLine&&m.hide(),v&&v.hide(),z=t.getExtremes(),w(e,function(e,l){d=p?G?b.plotWidth:0:G?0:t.toPixels(z.min);d=Math.min(Math.max(u(g,d),0),f);g=Math.min(Math.max(Math.round(t.toPixels(u(e.value,z.max),!0)),0),f);y&&(d=g=t.toPixels(z.max));\n", "I=Math.abs(d-g);q=Math.min(d,g);r=Math.max(d,g);t.isXAxis?(k={x:n?r:q,y:0,width:I,height:f},G||(k.x=b.plotHeight-k.x)):(k={x:0,y:n?r:q,width:f,height:I},G&&(k.y=b.plotWidth-k.y));n&&c.isVML&&(k=t.isXAxis?{x:0,y:p?q:r,height:k.width,width:b.chartWidth}:{x:k.y-b.plotLeft-b.spacingBox.x,y:0,width:k.height,height:b.chartHeight});h[l]?h[l].animate(k):(h[l]=c.clipRect(k),m&&a[\"zone-graph-\"+l].clip(h[l]),v&&a[\"zone-area-\"+l].clip(h[l]));y=e.value>z.max;a.resetZones&&0===g&&(g=void 0)}),this.clips=h)},invertGroups:function(a){function b(){w([\"group\",\n", "\"markerGroup\"],function(b){c[b]&&(e.renderer.isVML&&c[b].attr({width:c.yAxis.len,height:c.xAxis.len}),c[b].width=c.yAxis.len,c[b].height=c.xAxis.len,c[b].invert(a))})}var c=this,e=c.chart,d;c.xAxis&&(d=C(e,\"resize\",b),C(c,\"destroy\",d),b(a),c.invertGroups=b)},plotGroup:function(a,b,c,e,d){var g=this[a],l=!g;l&&(this[a]=g=this.chart.renderer.g().attr({zIndex:e||.1}).add(d));g.addClass(\"highcharts-\"+b+\" highcharts-series-\"+this.index+\" highcharts-\"+this.type+\"-series \"+(A(this.colorIndex)?\"highcharts-color-\"+\n", "this.colorIndex+\" \":\"\")+(this.options.className||\"\")+(g.hasClass(\"highcharts-tracker\")?\" highcharts-tracker\":\"\"),!0);g.attr({visibility:c})[l?\"attr\":\"animate\"](this.getPlotBox());return g},getPlotBox:function(){var a=this.chart,b=this.xAxis,c=this.yAxis;a.inverted&&(b=c,c=this.xAxis);return{translateX:b?b.left:a.plotLeft,translateY:c?c.top:a.plotTop,scaleX:1,scaleY:1}},render:function(){var a=this,b=a.chart,e,d=a.options,h=!!a.animate&&b.renderer.isSVG&&D(d.animation).duration,g=a.visible?\"inherit\":\n", "\"hidden\",k=d.zIndex,m=a.hasRendered,t=b.seriesGroup,f=b.inverted;e=a.plotGroup(\"group\",\"series\",g,k,t);a.markerGroup=a.plotGroup(\"markerGroup\",\"markers\",g,k,t);h&&a.animate(!0);e.inverted=a.isCartesian?f:!1;a.drawGraph&&(a.drawGraph(),a.applyZones());a.drawDataLabels&&a.drawDataLabels();a.visible&&a.drawPoints();a.drawTracker&&!1!==a.options.enableMouseTracking&&a.drawTracker();a.invertGroups(f);!1===d.clip||a.sharedClipKey||m||e.clip(b.clipRect);h&&a.animate();m||(a.animationTimeout=v(function(){a.afterAnimate()},\n", "h));a.isDirty=!1;a.hasRendered=!0;c(a,\"afterRender\")},redraw:function(){var a=this.chart,b=this.isDirty||this.isDirtyData,c=this.group,e=this.xAxis,d=this.yAxis;c&&(a.inverted&&c.attr({width:a.plotWidth,height:a.plotHeight}),c.animate({translateX:u(e&&e.left,a.plotLeft),translateY:u(d&&d.top,a.plotTop)}));this.translate();this.render();b&&delete this.kdTree},kdAxisArray:[\"clientX\",\"plotY\"],searchPoint:function(a,b){var c=this.xAxis,e=this.yAxis,d=this.chart.inverted;return this.searchKDTree({clientX:d?\n", "c.len-a.chartY+c.pos:a.chartX-c.pos,plotY:d?e.len-a.chartX+e.pos:a.chartY-e.pos},b)},buildKDTree:function(){function a(c,e,g){var d,l;if(l=c&&c.length)return d=b.kdAxisArray[e%g],c.sort(function(a,b){return a[d]-b[d]}),l=Math.floor(l/2),{point:c[l],left:a(c.slice(0,l),e+1,g),right:a(c.slice(l+1),e+1,g)}}this.buildingKdTree=!0;var b=this,c=-1v?\"left\":\"right\";f=0>v?\"right\":\"left\";b[t]&&(t=c(a,b[t],h+1,k),B=t[l]u;)z--;this.updateParallelArrays(f,\"splice\",z,0,0);this.updateParallelArrays(f,z);g&&f.name&&(g[u]=f.name);m.splice(z,0,a);t&&(this.data.splice(z,0,null),this.processData());\"point\"===l.legendType&&this.generatePoints();c&&(h[0]&&h[0].remove?h[0].remove(!1):(h.shift(),this.updateParallelArrays(f,\"shift\"),m.shift()));this.isDirtyData=this.isDirty=!0;b&&k.redraw(d)},removePoint:function(a,b,c){var d=this,l=d.data,h=l[a],k=d.points,\n", "g=d.chart,m=function(){k&&k.length===l.length&&k.splice(a,1);l.splice(a,1);d.options.data.splice(a,1);d.updateParallelArrays(h||{series:d},\"splice\",a,1);h&&h.destroy();d.isDirty=!0;d.isDirtyData=!0;b&&g.redraw()};z(c,g);b=e(b,!0);h?h.firePointEvent(\"remove\",null,m):m()},remove:function(a,b,c){function d(){l.destroy();h.isDirtyLegend=h.isDirtyBox=!0;h.linkSeries();e(a,!0)&&h.redraw(b)}var l=this,h=l.chart;!1!==c?y(l,\"remove\",null,d):d()},update:function(b,c){var d=this,h=d.chart,m=d.userOptions,f=\n", "d.oldType||d.type,v=b.type||m.type||h.options.chart.type,g=t[f].prototype,z,u=[\"group\",\"markerGroup\",\"dataLabelsGroup\"],n=[\"navigatorSeries\",\"baseSeries\"],G=d.finishedAnimating&&{animation:!1},I=[\"data\",\"name\",\"turboThreshold\"],q=a.keys(b),A=0a&&w>f?(w=Math.max(a,f),p=2*f-w):wq&&p>f?(p=Math.max(q,f),w=2*f-p):p=Math.abs(c)&&.5a.closestPointRange*a.xAxis.transA,m=a.borderWidth=r(d.borderWidth,m?0:1),k=a.yAxis,b=d.threshold,e=a.translatedThreshold=k.getThreshold(b),h=r(d.minPointLength,5),f=a.getColumnMetrics(),t=f.width,z=a.barW=Math.max(t,1+2*m),n=a.pointXOffset=f.offset;c.inverted&&(e-=.5);d.pointPadding&&(z=Math.ceil(z));A.prototype.translate.apply(a);E(a.points,function(d){var m=r(d.yBottom,e),l=999+Math.abs(m),l=Math.min(Math.max(-l,d.plotY),k.len+l),\n", "f=d.plotX+n,v=z,u=Math.min(l,m),B,g=Math.max(l,m)-u;h&&Math.abs(g)h?m-h:e-(B?h:0));d.barX=f;d.pointWidth=t;d.tooltipPos=c.inverted?[k.len+k.pos-c.plotLeft-l,a.xAxis.len-f-v/2,g]:[f+v/2,l+k.pos-c.plotTop,g];d.shapeType=\"rect\";d.shapeArgs=a.crispCol.apply(a,d.isNull?[f,e,v,0]:[f,u,v,g])})},getSymbol:a.noop,drawLegendSymbol:a.LegendSymbolMixin.drawRectangle,drawGraph:function(){this.group[this.dense?\n", "\"addClass\":\"removeClass\"](\"highcharts-dense-data\")},pointAttribs:function(a,c){var d=this.options,m,k=this.pointAttrToOptions||{};m=k.stroke||\"borderColor\";var b=k[\"stroke-width\"]||\"borderWidth\",e=a&&a.color||this.color,h=a&&a[m]||d[m]||this.color||e,u=a&&a[b]||d[b]||this[b]||0,k=d.dashStyle;a&&this.zones.length&&(e=a.getZone(),e=a.options.color||e&&e.color||this.color);c&&(a=f(d.states[c],a.options.states&&a.options.states[c]||{}),c=a.brightness,e=a.color||void 0!==c&&D(e).brighten(a.brightness).get()||\n", "e,h=a[m]||h,u=a[b]||u,k=a.dashStyle||k);m={fill:e,stroke:h,\"stroke-width\":u};k&&(m.dashstyle=k);return m},drawPoints:function(){var a=this,c=this.chart,d=a.options,m=c.renderer,k=d.animationLimit||250,b;E(a.points,function(e){var h=e.graphic,u=h&&c.pointCountp;++p)c=w[p],a=2>p||2===p&&/%$/.test(c),w[p]=q(c,[A,f,y,w[2]][p])+(a?r:0);w[3]>w[2]&&(w[3]=w[2]);return w},getStartAndEndRadians:function(a,f){a=D(a)?a:0;f=D(f)&&f>a&&360>f-a?f:a+360;return{start:C*(a+-90),end:C*(f+-90)}}}})(L);(function(a){var C=a.addEvent,D=a.CenteredSeriesMixin,E=a.defined,q=a.each,n=a.extend,f=D.getStartAndEndRadians,r=a.inArray,A=a.noop,w=a.pick,y=a.Point,\n", "p=a.Series,c=a.seriesType,d=a.setAnimation;c(\"pie\",\"line\",{center:[null,null],clip:!1,colorByPoint:!0,dataLabels:{allowOverlap:!0,distance:30,enabled:!0,formatter:function(){return this.point.isNull?void 0:this.point.name},x:0},ignoreHiddenPoint:!0,legendType:\"point\",marker:null,size:null,showInLegend:!1,slicedOffset:10,stickyTracking:!1,tooltip:{followPointer:!0},borderColor:\"#ffffff\",borderWidth:1,states:{hover:{brightness:.1}}},{isCartesian:!1,requireSorting:!1,directTouch:!0,noSharedTooltip:!0,\n", "trackerGroups:[\"group\",\"dataLabelsGroup\"],axisTypes:[],pointAttribs:a.seriesTypes.column.prototype.pointAttribs,animate:function(a){var c=this,b=c.points,e=c.startAngleRad;a||(q(b,function(a){var b=a.graphic,d=a.shapeArgs;b&&(b.attr({r:a.startR||c.center[3]/2,start:e,end:e}),b.animate({r:d.r,start:d.start,end:d.end},c.options.animation))}),c.animate=null)},updateTotals:function(){var a,c=0,b=this.points,e=b.length,d,f=this.options.ignoreHiddenPoint;for(a=0;a1.5*Math.PI?\n", "z-=2*Math.PI:z<-Math.PI/2&&(z+=2*Math.PI);B.slicedTranslation={translateX:Math.round(Math.cos(z)*e),translateY:Math.round(Math.sin(z)*e)};t=Math.cos(z)*a[2]/2;l=Math.sin(z)*a[2]/2;B.tooltipPos=[a[0]+.7*t,a[1]+.7*l];B.half=z<-Math.PI/2||z>Math.PI/2?1:0;B.angle=z;m=Math.min(d,B.labelDistance/5);B.labelPos=[a[0]+t+Math.cos(z)*B.labelDistance,a[1]+l+Math.sin(z)*B.labelDistance,a[0]+t+Math.cos(z)*m,a[1]+l+Math.sin(z)*m,a[0]+t,a[1]+l,0>B.labelDistance?\"center\":B.half?\"right\":\"left\",z]}},drawGraph:null,\n", "drawPoints:function(){var a=this,c=a.chart.renderer,b,e,d,f,t=a.options.shadow;t&&!a.shadowGroup&&(a.shadowGroup=c.g(\"shadow\").add(a.group));q(a.points,function(h){e=h.graphic;if(h.isNull)e&&(h.graphic=e.destroy());else{f=h.shapeArgs;b=h.getTranslate();var k=h.shadowGroup;t&&!k&&(k=h.shadowGroup=c.g(\"shadow\").add(a.shadowGroup));k&&k.attr(b);d=a.pointAttribs(h,h.selected&&\"select\");e?e.setRadialReference(a.center).attr(d).animate(n(f,b)):(h.graphic=e=c[h.shapeType](f).setRadialReference(a.center).attr(b).add(a.group),\n", "e.attr(d).attr({\"stroke-linejoin\":\"round\"}).shadow(t,k));e.attr({visibility:h.visible?\"inherit\":\"hidden\"});e.addClass(h.getClassName())}})},searchPoint:A,sortByAngle:function(a,c){a.sort(function(a,e){return void 0!==a.angle&&(e.angle-a.angle)*c})},drawLegendSymbol:a.LegendSymbolMixin.drawRectangle,getCenter:D.getCenter,getSymbol:A},{init:function(){y.prototype.init.apply(this,arguments);var a=this,c;a.name=w(a.name,\"Slice\");c=function(b){a.slice(\"select\"===b.type)};C(a,\"select\",c);C(a,\"unselect\",\n", "c);return a},isValid:function(){return a.isNumber(this.y,!0)&&0<=this.y},setVisible:function(a,c){var b=this,e=b.series,d=e.chart,k=e.options.ignoreHiddenPoint;c=w(c,k);a!==b.visible&&(b.visible=b.options.visible=a=void 0===a?!b.visible:a,e.options.data[r(b,e.data)]=b.options,q([\"graphic\",\"dataLabel\",\"connector\",\"shadowGroup\"],function(c){if(b[c])b[c][a?\"show\":\"hide\"](!0)}),b.legendItem&&d.legend.colorizeItem(b,a),a||\"hover\"!==b.state||b.setState(\"\"),k&&(e.isDirty=!0),c&&d.redraw())},slice:function(a,\n", "c,b){var e=this.series;d(b,e.chart);w(c,!0);this.sliced=this.options.sliced=E(a)?a:!this.sliced;e.options.data[r(this,e.data)]=this.options;this.graphic.animate(this.getTranslate());this.shadowGroup&&this.shadowGroup.animate(this.getTranslate())},getTranslate:function(){return this.sliced?this.slicedTranslation:{translateX:0,translateY:0}},haloPath:function(a){var c=this.shapeArgs;return this.sliced||!this.visible?[]:this.series.chart.renderer.symbols.arc(c.x,c.y,c.r+a,c.r+a,{innerR:this.shapeArgs.r-\n", "1,start:c.start,end:c.end})}})})(L);(function(a){var C=a.addEvent,D=a.arrayMax,E=a.defined,q=a.each,n=a.extend,f=a.format,r=a.map,A=a.merge,w=a.noop,y=a.pick,p=a.relativeLength,c=a.Series,d=a.seriesTypes,m=a.some,k=a.stableSort;a.distribute=function(b,c,d){function e(a,b){return a.target-b.target}var h,f=!0,n=b,v=[],p;p=0;var l=n.reducedLen||c;for(h=b.length;h--;)p+=b[h].size;if(p>l){k(b,function(a,b){return(b.rank||0)-(a.rank||0)});for(p=h=0;p<=l;)p+=b[h].size,h++;v=b.splice(h-1,b.length)}k(b,e);\n", "for(b=r(b,function(a){return{size:a.size,targets:[a.target],align:y(a.align,.5)}});f;){for(h=b.length;h--;)f=b[h],p=(Math.min.apply(0,f.targets)+Math.max.apply(0,f.targets))/2,f.pos=Math.min(Math.max(0,p-f.size*f.align),c-f.size);h=b.length;for(f=!1;h--;)0b[h].pos&&(b[h-1].size+=b[h].size,b[h-1].targets=b[h-1].targets.concat(b[h].targets),b[h-1].align=.5,b[h-1].pos+b[h-1].size>c&&(b[h-1].pos=c-b[h-1].size),b.splice(h,1),f=!0)}n.push.apply(n,v);h=0;m(b,function(b){var e=\n", "0;if(m(b.targets,function(){n[h].pos=b.pos+e;if(Math.abs(n[h].pos-n[h].target)>d)return q(n.slice(0,h+1),function(a){delete a.pos}),n.reducedLen=(n.reducedLen||c)-.1*c,n.reducedLen>.1*c&&a.distribute(n,c,d),!0;e+=n[h].size;h++}))return!0});k(n,e)};c.prototype.drawDataLabels=function(){function b(a,b){var c=b.filter;return c?(b=c.operator,a=a[c.property],c=c.value,\"\\x3e\"===b&&a>c||\"\\x3c\"===b&&a=c||\"\\x3c\\x3d\"===b&&a<=c||\"\\x3d\\x3d\"===b&&a==c||\"\\x3d\\x3d\\x3d\"===b&&a===c?!0:!1):!0}\n", "var c=this,d=c.chart,k=c.options,m=k.dataLabels,z=c.points,n,v,p=c.hasRendered||0,l,r,w=y(m.defer,!!k.animation),F=d.renderer;if(m.enabled||c._hasPointLabels)c.dlProcessOptions&&c.dlProcessOptions(m),r=c.plotGroup(\"dataLabelsGroup\",\"data-labels\",w&&!p?\"hidden\":\"visible\",m.zIndex||6),w&&(r.attr({opacity:+p}),p||C(c,\"afterAnimate\",function(){c.visible&&r.show(!0);r[k.animation?\"animate\":\"attr\"]({opacity:1},{duration:200})})),v=m,q(z,function(e){var g,h=e.dataLabel,z,t,B=e.connector,u=!h,p;n=e.dlOptions||\n", "e.options&&e.options.dataLabels;(g=y(n&&n.enabled,v.enabled)&&!e.isNull)&&(g=!0===b(e,n||m));g&&(m=A(v,n),z=e.getLabelConfig(),p=m[e.formatPrefix+\"Format\"]||m.format,l=E(p)?f(p,z,d.time):(m[e.formatPrefix+\"Formatter\"]||m.formatter).call(z,m),p=m.style,z=m.rotation,p.color=y(m.color,p.color,c.color,\"#000000\"),\"contrast\"===p.color&&(e.contrastColor=F.getContrast(e.color||c.color),p.color=m.inside||0>y(e.labelDistance,m.distance)||k.stacking?e.contrastColor:\"#000000\"),k.cursor&&(p.cursor=k.cursor),t=\n", "{fill:m.backgroundColor,stroke:m.borderColor,\"stroke-width\":m.borderWidth,r:m.borderRadius||0,rotation:z,padding:m.padding,zIndex:1},a.objectEach(t,function(a,b){void 0===a&&delete t[b]}));!h||g&&E(l)?g&&E(l)&&(h?t.text=l:(h=e.dataLabel=z?F.text(l,0,-9999).addClass(\"highcharts-data-label\"):F.label(l,0,-9999,m.shape,null,null,m.useHTML,null,\"data-label\"),h.addClass(\" highcharts-data-label-color-\"+e.colorIndex+\" \"+(m.className||\"\")+(m.useHTML?\" highcharts-tracker\":\"\"))),h.attr(t),h.css(p).shadow(m.shadow),\n", "h.added||h.add(r),c.alignDataLabel(e,h,m,null,u)):(e.dataLabel=h=h.destroy(),B&&(e.connector=B.destroy()))});a.fireEvent(this,\"afterDrawDataLabels\")};c.prototype.alignDataLabel=function(a,c,d,k,m){var b=this.chart,e=b.inverted,h=y(a.dlBox&&a.dlBox.centerX,a.plotX,-9999),f=y(a.plotY,-9999),l=c.getBBox(),t,u=d.rotation,p=d.align,B=this.visible&&(a.series.forceDL||b.isInsidePlot(h,Math.round(f),e)||k&&b.isInsidePlot(h,e?k.x+1:k.y+k.height-1,e)),g=\"justify\"===y(d.overflow,\"justify\");if(B&&(t=d.style.fontSize,\n", "t=b.renderer.fontMetrics(t,c).b,k=n({x:e?this.yAxis.len-f:h,y:Math.round(e?this.xAxis.len-h:f),width:0,height:0},k),n(d,{width:l.width,height:l.height}),u?(g=!1,h=b.renderer.rotCorr(t,u),h={x:k.x+d.x+k.width/2+h.x,y:k.y+d.y+{top:0,middle:.5,bottom:1}[d.verticalAlign]*k.height},c[m?\"attr\":\"animate\"](h).attr({align:p}),f=(u+720)%360,f=180f,\"left\"===p?h.y-=f?l.height:0:\"center\"===p?(h.x-=l.width/2,h.y-=l.height/2):\"right\"===p&&(h.x-=l.width,h.y-=f?0:l.height),c.placed=!0,c.alignAttr=h):(c.align(d,\n", "null,k),h=c.alignAttr),g?a.isLabelJustified=this.justifyDataLabel(c,d,h,l,k,m):y(d.crop,!0)&&(B=b.isInsidePlot(h.x,h.y)&&b.isInsidePlot(h.x+l.width,h.y+l.height)),d.shape&&!u))c[m?\"attr\":\"animate\"]({anchorX:e?b.plotWidth-a.plotY:a.plotX,anchorY:e?b.plotHeight-a.plotX:a.plotY});B||(c.attr({y:-9999}),c.placed=!1)};c.prototype.justifyDataLabel=function(a,c,d,k,f,m){var b=this.chart,e=c.align,h=c.verticalAlign,l,z,t=a.box?0:a.padding||0;l=d.x+t;0>l&&(\"right\"===e?c.align=\"left\":c.x=-l,z=!0);l=d.x+k.width-\n", "t;l>b.plotWidth&&(\"left\"===e?c.align=\"right\":c.x=b.plotWidth-l,z=!0);l=d.y+t;0>l&&(\"bottom\"===h?c.verticalAlign=\"top\":c.y=-l,z=!0);l=d.y+k.height-t;l>b.plotHeight&&(\"top\"===h?c.verticalAlign=\"bottom\":c.y=b.plotHeight-l,z=!0);z&&(a.placed=!m,a.align(c,null,f));return z};d.pie&&(d.pie.prototype.drawDataLabels=function(){var b=this,d=b.data,h,k=b.chart,f=b.options.dataLabels,m=y(f.connectorPadding,10),n=y(f.connectorWidth,1),v=k.plotWidth,p=k.plotHeight,l=Math.round(k.chartWidth/3),r,w=b.center,F=w[2]/\n", "2,B=w[1],g,x,A,O,M=[[],[]],C,P,J,T,S=[0,0,0,0];b.visible&&(f.enabled||b._hasPointLabels)&&(q(d,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(b),q(d,function(a){a.dataLabel&&(a.visible?(M[a.half].push(a),a.dataLabel._pos=null,!E(f.style.width)&&!E(a.options.dataLabels&&a.options.dataLabels.style&&a.options.dataLabels.style.width)&&a.dataLabel.getBBox().width>\n", "l&&(a.dataLabel.css({width:.7*l}),a.dataLabel.shortened=!0)):a.dataLabel=a.dataLabel.destroy())}),q(M,function(c,d){var e,l,z=c.length,t=[],n;if(z)for(b.sortByAngle(c,d-.5),0h.bottom-2?e:P,d,h),g._attr={visibility:J,align:A[6]},g._pos={x:C+f.x+({left:m,right:-m}[A[6]]||0),y:P+f.y-10},A.x=C,A.y=P,y(f.crop,\n", "!0)&&(x=g.getBBox().width,e=null,C-xv-m&&0===d&&(e=Math.round(C+x-v+m),S[1]=Math.max(e,S[1])),0>P-O/2?S[0]=Math.max(Math.round(-P+O/2),S[0]):P+O/2>p&&(S[2]=Math.max(Math.round(P+O/2-p),S[2])),g.sideOverflow=e)}),0===D(S)||this.verifyDataLabelOverflow(S))&&(this.placeDataLabels(),n&&q(this.points,function(a){var c;r=a.connector;if((g=a.dataLabel)&&g._pos&&a.visible&&0y(this.translatedThreshold,e.yAxis.len)),l=y(h.inside,!!this.options.stacking);m&&(k=A(m),0>k.y&&(k.height+=k.y,k.y=0),m=k.y+k.height-e.yAxis.len,0a+b||h+nc+d||f+zthis.pointCount))},pan:function(a,b){var c=this,d=c.hoverPoints,e;d&&r(d,function(a){a.setState()});r(\"xy\"===b?[1,0]:\n", "[1],function(b){b=c[b?\"xAxis\":\"yAxis\"][0];var d=b.horiz,h=a[d?\"chartX\":\"chartY\"],d=d?\"mouseDownX\":\"mouseDownY\",l=c[d],g=(b.pointRange||0)/2,k=b.reversed&&!c.inverted||!b.reversed&&c.inverted?-1:1,f=b.getExtremes(),m=b.toValue(l-h,!0)+g*k,k=b.toValue(l+b.len-h,!0)-g*k,n=k=f(q.minWidth,0)&&this.chartHeight>=f(q.minHeight,0)}).call(this)&&n.push(a._id)};C.prototype.currentOptions=\n", "function(f){function w(f,c,d,m){var k;a.objectEach(f,function(a,e){if(!m&&-1e.length||void 0===f)return a.call(this,d,f,k,b);l=e.length;for(m=0;mk;e[m]5*h||r){if(e[m]>F){for(p=a.call(this,\n", "d,e[c],e[m],b);p.length&&p[0]<=F;)p.shift();p.length&&(F=p[p.length-1]);w=w.concat(p)}c=m+1}if(r)break}a=p.info;if(u&&a.unitRange<=y.hour){m=w.length-1;for(c=1;ck?g-1:g;for(x=void 0;u--;)c=m[u],k=Math.abs(x-c),x&&k<.8*\n", "B&&(null===q||k<.8*q)?(v[w[u]]&&!v[w[u+1]]?(k=u+1,x=c):k=u,w.splice(k,1)):x=c}return w});r(D.prototype,{beforeSetTickPositions:function(){var a,d=[],m,k=!1,b,e=this.getExtremes(),h=e.min,u=e.max,t,p=this.isXAxis&&!!this.options.breaks,e=this.options.ordinal,q=Number.MAX_VALUE,v=this.chart.options.chart.ignoreHiddenSeries;b=\"highcharts-navigator-xaxis\"===this.options.className;!this.options.overscroll||this.max!==this.dataMax||this.chart.mouseIsDown&&!b||this.eventArgs&&(!this.eventArgs||\"navigator\"===\n", "this.eventArgs.trigger)||(this.max+=this.options.overscroll,!b&&n(this.userMin)&&(this.min+=this.options.overscroll));if(e||p){f(this.series,function(b,c){m=[];if(!(v&&!1===b.visible||!1===b.takeOrdinalPosition&&!p)&&(d=d.concat(b.processedXData),a=d.length,d.sort(function(a,b){return a-b}),q=Math.min(q,w(b.closestPointRange,q)),a)){for(c=0;cb||u-d[d.length-1]>b)&&(k=!0)}else this.options.overscroll&&(2===a?q=d[1]-d[0]:1===a?(q=this.options.overscroll,d=[d[0],d[0]+q]):q=this.overscrollPointsRange);k?(this.options.overscroll&&(this.overscrollPointsRange=q,d=d.concat(this.getOverscrollPositions())),this.ordinalPositions=d,b=this.ordinal2lin(Math.max(h,d[0]),!0),t=Math.max(this.ordinal2lin(Math.min(u,d[d.length-1]),!0),1),this.ordinalSlope=u=(u-h)/(t-b),this.ordinalOffset=h-b*u):(this.overscrollPointsRange=w(this.closestPointRange,\n", "this.overscrollPointsRange),this.ordinalPositions=this.ordinalSlope=this.ordinalOffset=void 0)}this.isOrdinal=e&&k;this.groupIntervalFactor=null},val2lin:function(a,d){var c=this.ordinalPositions;if(c){var k=c.length,b,e;for(b=k;b--;)if(c[b]===a){e=b;break}for(b=k-1;b--;)if(a>c[b]||0===b){a=(a-c[b])/(c[b+1]-c[b]);e=b+a;break}d=d?e:this.ordinalSlope*(e||0)+this.ordinalOffset}else d=a;return d},lin2val:function(a,d){var c=this.ordinalPositions;if(c){var k=this.ordinalSlope,b=this.ordinalOffset,e=c.length-\n", "1,h;if(d)0>a?a=c[0]:a>e?a=c[e]:(e=Math.floor(a),h=a-e);else for(;e--;)if(d=k*e+b,a>=d){k=k*(e+1)+b;h=(a-d)/(k-d);break}return void 0!==h&&void 0!==c[e]?c[e]+(h?h*(c[e+1]-c[e]):0):a}return a},getExtendedPositions:function(){var a=this,d=a.chart,m=a.series[0].currentDataGrouping,k=a.ordinalIndex,b=m?m.count+m.unitName:\"raw\",e=a.options.overscroll,h=a.getExtremes(),n,t;k||(k=a.ordinalIndex={});k[b]||(n={series:[],chart:d,getExtremes:function(){return{min:h.dataMin,max:h.dataMax+e}},options:{ordinal:!0},\n", "val2lin:D.prototype.val2lin,ordinal2lin:D.prototype.ordinal2lin},f(a.series,function(b){t={xAxis:n,xData:b.xData.slice(),chart:d,destroyGroupedData:A};t.xData=t.xData.concat(a.getOverscrollPositions());t.options={dataGrouping:m?{enabled:!0,forced:!0,approximation:\"open\",units:[[m.unitName,[m.count]]]}:{enabled:!1}};b.processData.apply(t);n.series.push(t)}),a.beforeSetTickPositions.apply(n),k[b]=n.ordinalPositions);return k[b]},getOverscrollPositions:function(){var c=this.options.overscroll,d=this.overscrollPointsRange,\n", "f=[],k=this.dataMax;if(a.defined(d))for(f.push(k);k<=this.dataMax+c;)k+=d,f.push(k);return f},getGroupIntervalFactor:function(a,d,f){var c;f=f.processedXData;var b=f.length,e=[];c=this.groupIntervalFactor;if(!c){for(c=0;ch?(v=l,A=c.ordinalPositions?c:l):(v=c.ordinalPositions?c:l,A=l),l=A.ordinalPositions,t>l[l.length-1]&&l.push(t),this.fixedRange=r-p,h=c.toFixedRange(null,null,w.apply(v,[y.apply(v,[p,!0])+h,!0]),w.apply(A,[y.apply(A,[r,!0])+h,!0])),h.min>=Math.min(n.dataMin,p)&&h.max<=Math.max(t,r)+k&&c.setExtremes(h.min,h.max,!0,!1,{trigger:\"pan\"}),this.mouseDownX=b,q(this.container,{cursor:\"move\"})):e=!0}else e=!0;e&&(k&&(c.max=c.dataMax+k),a.apply(this,Array.prototype.slice.call(arguments,\n", "1)))})})(L);(function(a){function C(){return Array.prototype.slice.call(arguments,1)}function D(a){a.apply(this);this.drawBreaks(this.xAxis,[\"x\"]);this.drawBreaks(this.yAxis,q(this.pointArrayMap,[\"y\"]))}var E=a.addEvent,q=a.pick,n=a.wrap,f=a.each,r=a.extend,A=a.isArray,w=a.fireEvent,y=a.Axis,p=a.Series;r(y.prototype,{isInBreak:function(a,d){var c=a.repeat||Infinity,f=a.from,b=a.to-a.from;d=d>=f?(d-f)%c:c-(f-d)%c;return a.inclusive?d<=b:d=c)break;else if(a.isInBreak(b,c)){d-=c-b.from;break}return d},a.lin2val=function(c){var d,b;for(b=0;b=c);b++)d.ton;)v-=m;for(;vb.to||e>b.from&&nb.from&&nb.from&&n>b.to&&nc&&(c=d);k--;)f[k+1].x-f[k].x>c&&(d=(f[k].x+f[k+1].x)/2,f.splice(k+1,0,{isNull:!0,x:d}),this.options.stacking&&(d=b.stacks[this.stackKey][d]=new a.StackItem(b,b.options.stackLabels,!1,d,this.stack),d.total=0));return this.getGraphPath(f)};n(a.seriesTypes.column.prototype,\"drawPoints\",D);n(a.Series.prototype,\"drawPoints\",D)})(L);(function(a){var C=a.addEvent,D=a.arrayMax,E=a.arrayMin,q=a.Axis,n=a.defaultPlotOptions,f=a.defined,r=a.each,A=a.extend,w=a.format,y=a.isNumber,\n", "p=a.merge,c=a.pick,d=a.Point,m=a.Series,k=a.Tooltip,b=a.wrap,e=m.prototype,h=e.processData,u=e.generatePoints,t={approximation:\"average\",groupPixelWidth:2,dateTimeLabelFormats:{millisecond:[\"%A, %b %e, %H:%M:%S.%L\",\"%A, %b %e, %H:%M:%S.%L\",\"-%H:%M:%S.%L\"],second:[\"%A, %b %e, %H:%M:%S\",\"%A, %b %e, %H:%M:%S\",\"-%H:%M:%S\"],minute:[\"%A, %b %e, %H:%M\",\"%A, %b %e, %H:%M\",\"-%H:%M\"],hour:[\"%A, %b %e, %H:%M\",\"%A, %b %e, %H:%M\",\"-%H:%M\"],day:[\"%A, %b %e, %Y\",\"%A, %b %e\",\"-%A, %b %e, %Y\"],week:[\"Week from %A, %b %e, %Y\",\n", "\"%A, %b %e\",\"-%A, %b %e, %Y\"],month:[\"%B %Y\",\"%B\",\"-%B %Y\"],year:[\"%Y\",\"%Y\",\"-%Y\"]}},z={line:{},spline:{},area:{},areaspline:{},column:{approximation:\"sum\",groupPixelWidth:10},arearange:{approximation:\"range\"},areasplinerange:{approximation:\"range\"},columnrange:{approximation:\"range\",groupPixelWidth:10},candlestick:{approximation:\"ohlc\",groupPixelWidth:10},ohlc:{approximation:\"ohlc\",groupPixelWidth:5}},I=a.defaultDataGroupingUnits=[[\"millisecond\",[1,2,5,10,20,25,50,100,200,500]],[\"second\",[1,2,5,\n", "10,15,30]],[\"minute\",[1,2,5,10,15,30]],[\"hour\",[1,2,3,4,6,8,12]],[\"day\",[1]],[\"week\",[1]],[\"month\",[1,3,6]],[\"year\",null]],v=a.approximations={sum:function(a){var b=a.length,c;if(!b&&a.hasNulls)c=null;else if(b)for(c=0;b--;)c+=a[b];return c},average:function(a){var b=a.length;a=v.sum(a);y(a)&&b&&(a/=b);return a},averages:function(){var a=[];r(arguments,function(b){a.push(v.average(b))});return void 0===a[0]?void 0:a},open:function(a){return a.length?a[0]:a.hasNulls?null:void 0},high:function(a){return a.length?\n", "D(a):a.hasNulls?null:void 0},low:function(a){return a.length?E(a):a.hasNulls?null:void 0},close:function(a){return a.length?a[a.length-1]:a.hasNulls?null:void 0},ohlc:function(a,b,c,d){a=v.open(a);b=v.high(b);c=v.low(c);d=v.close(d);if(y(a)||y(b)||y(c)||y(d))return[a,b,c,d]},range:function(a,b){a=v.low(a);b=v.high(b);if(y(a)||y(b))return[a,b];if(null===a&&null===b)return null}};e.groupData=function(a,b,c,d){var e=this.data,h=this.options.data,g=[],f=[],k=[],l=a.length,m,n,p=!!b,u=[];d=\"function\"===\n", "typeof d?d:v[d]||z[this.type]&&v[z[this.type].approximation]||v[t.approximation];var q=this.pointArrayMap,w=q&&q.length,A=0;n=0;var G,I;w?r(q,function(){u.push([])}):u.push([]);G=w||1;for(I=0;I<=l&&!(a[I]>=c[0]);I++);for(I;I<=l;I++){for(;void 0!==c[A+1]&&a[I]>=c[A+1]||I===l;){m=c[A];this.dataGroupInfo={start:n,length:u[0].length};n=d.apply(this,u);void 0!==n&&(g.push(m),f.push(n),k.push(this.dataGroupInfo));n=I;for(m=0;mthis.chart.plotSizeX/d||b&&h.forced)&&(e=!0);return e?d:0};q.prototype.setDataGrouping=function(a,b){var d;b=c(b,!0);a||(a={forced:!1,units:null});if(this instanceof q)for(d=this.series.length;d--;)this.series[d].update({dataGrouping:a},!1);else r(this.chart.options.series,function(b){b.dataGrouping=\n", "a},!1);this.ordinalSlope=null;b&&this.chart.redraw()}})(L);(function(a){var C=a.each,D=a.Point,E=a.seriesType,q=a.seriesTypes;E(\"ohlc\",\"column\",{lineWidth:1,tooltip:{pointFormat:'\\x3cspan style\\x3d\"color:{point.color}\"\\x3e\\u25cf\\x3c/span\\x3e \\x3cb\\x3e {series.name}\\x3c/b\\x3e\\x3cbr/\\x3eOpen: {point.open}\\x3cbr/\\x3eHigh: {point.high}\\x3cbr/\\x3eLow: {point.low}\\x3cbr/\\x3eClose: {point.close}\\x3cbr/\\x3e'},threshold:null,states:{hover:{lineWidth:3}},stickyTracking:!0},{directTouch:!1,pointArrayMap:[\"open\",\n", "\"high\",\"low\",\"close\"],toYData:function(a){return[a.open,a.high,a.low,a.close]},pointValKey:\"close\",pointAttrToOptions:{stroke:\"color\",\"stroke-width\":\"lineWidth\"},pointAttribs:function(a,f){f=q.column.prototype.pointAttribs.call(this,a,f);var n=this.options;delete f.fill;!a.options.color&&n.upColor&&a.openA)););C(r,function(a,c){var d;a.plotX+=h;if(void 0===a.plotY||k)0<=a.plotX&&a.plotX<=b.len?k?(a.plotY=b.translate(a.x,0,1,0,1),a.plotX=D(a.y)?e.translate(a.y,0,0,0,1):0):a.plotY=f.chartHeight-b.bottom-(b.opposite?b.height:0)+b.offset-e.top:a.shapeArgs={};(y=r[c-1])&&y.plotX===a.plotX&&(void 0===y.stackIndex&&(y.stackIndex=0),d=y.stackIndex+1);a.stackIndex=d});this.onSeries=p}}}(L);(function(a,C){function D(a){p[a+\"pin\"]=\n", "function(c,f,k,b,e){var d=e&&e.anchorX;e=e&&e.anchorY;\"circle\"===a&&b>k&&(c-=Math.round((b-k)/2),k=b);c=p[a](c,f,k,b);d&&e&&(c.push(\"M\",\"circle\"===a?c[1]-c[4]:c[1]+c[4]/2,f>e?f:f+b,\"L\",d,e),c=c.concat(p.circle(d-1,e-1,2,2)));return c}}var E=a.addEvent,q=a.each,n=a.merge,f=a.noop,r=a.Renderer,A=a.seriesType,w=a.TrackerMixin,y=a.VMLRenderer,p=a.SVGRenderer.prototype.symbols;A(\"flags\",\"column\",{pointRange:0,allowOverlapX:!1,shape:\"flag\",stackDistance:12,textAlign:\"center\",tooltip:{pointFormat:\"{point.text}\\x3cbr/\\x3e\"},\n", "threshold:null,y:-30,fillColor:\"#ffffff\",lineWidth:1,states:{hover:{lineColor:\"#000000\",fillColor:\"#ccd6eb\"}},style:{fontSize:\"11px\",fontWeight:\"bold\"}},{sorted:!1,noSharedTooltip:!0,allowDG:!1,takeOrdinalPosition:!1,trackerGroups:[\"markerGroup\"],forceCrop:!0,init:a.Series.prototype.init,pointAttribs:function(a,d){var c=this.options,f=a&&a.color||this.color,b=c.lineColor,e=a&&a.lineWidth;a=a&&a.fillColor||c.fillColor;d&&(a=c.states[d].fillColor,b=c.states[d].lineColor,e=c.states[d].lineWidth);return{fill:a||\n", "f,stroke:b||f,\"stroke-width\":e||c.lineWidth||0}},translate:C.translate,getPlotBox:C.getPlotBox,drawPoints:function(){var c=this.points,d=this.chart,f=d.renderer,k,b,e=d.inverted,h=this.options,p=h.y,t,z,r,v,w,l,y=this.yAxis,A={},F=[];for(z=c.length;z--;)r=c[z],l=(e?r.plotY:r.plotX)>this.xAxis.len,k=r.plotX,v=r.stackIndex,t=r.options.shape||h.shape,b=r.plotY,void 0!==b&&(b=r.plotY+p-(void 0!==v&&v*h.stackDistance)),r.anchorX=v?void 0:r.plotX,w=v?void 0:r.plotY,v=r.graphic,void 0!==b&&0<=k&&!l?(v||\n", "(v=r.graphic=f.label(\"\",null,null,t,null,null,h.useHTML).attr(this.pointAttribs(r)).css(n(h.style,r.style)).attr({align:\"flag\"===t?\"left\":\"center\",width:h.width,height:h.height,\"text-align\":h.textAlign}).addClass(\"highcharts-point\").add(this.markerGroup),r.graphic.div&&(r.graphic.div.point=r),v.shadow(h.shadow),v.isNew=!0),0=l?this.scrollbarRifles.hide():this.scrollbarRifles.show(!0),!1===c.showFull&&(0>=a&&1<=b?this.group.hide():this.group.show()),this.rendered=!0)},initEvents:function(){var a=this;a.mouseMoveHandler=function(b){var c=a.chart.pointer.normalize(b),d=a.options.vertical?\"chartY\":\"chartX\",e=a.initPositions;!a.grabbedCenter||b.touches&&0===b.touches[0][d]||(c=a.cursorToScrollbarPosition(c)[d],d=a[d],d=c-d,a.hasDragged=!0,a.updatePosition(e[0]+d,e[1]+d),a.hasDragged&&w(a,\"changed\",\n", "{from:a.from,to:a.to,trigger:\"scrollbar\",DOMType:b.type,DOMEvent:b}))};a.mouseUpHandler=function(b){a.hasDragged&&w(a,\"changed\",{from:a.from,to:a.to,trigger:\"scrollbar\",DOMType:b.type,DOMEvent:b});a.grabbedCenter=a.hasDragged=a.chartX=a.chartY=null};a.mouseDownHandler=function(b){b=a.chart.pointer.normalize(b);b=a.cursorToScrollbarPosition(b);a.chartX=b.chartX;a.chartY=b.chartY;a.initPositions=[a.from,a.to];a.grabbedCenter=!0};a.buttonToMinClick=function(b){var c=q(a.to-a.from)*a.options.step;a.updatePosition(q(a.from-\n", "c),q(a.to-c));w(a,\"changed\",{from:a.from,to:a.to,trigger:\"scrollbar\",DOMEvent:b})};a.buttonToMaxClick=function(b){var c=(a.to-a.from)*a.options.step;a.updatePosition(a.from+c,a.to+c);w(a,\"changed\",{from:a.from,to:a.to,trigger:\"scrollbar\",DOMEvent:b})};a.trackClick=function(b){var c=a.chart.pointer.normalize(b),d=a.to-a.from,e=a.y+a.scrollbarTop,f=a.x+a.scrollbarLeft;a.options.vertical&&c.chartY>e||!a.options.vertical&&c.chartX>f?a.updatePosition(a.from+d,a.to+d):a.updatePosition(a.from-d,a.to-d);\n", "w(a,\"changed\",{from:a.from,to:a.to,trigger:\"scrollbar\",DOMEvent:b})}},cursorToScrollbarPosition:function(a){var b=this.options,b=b.minWidth>this.calculatedWidth?b.minWidth:0;return{chartX:(a.chartX-this.x-this.xOffset)/(this.barWidth-b),chartY:(a.chartY-this.y-this.yOffset)/(this.barWidth-b)}},updatePosition:function(a,b){1a&&(b=q(b-a),a=0);this.from=a;this.to=b},update:function(a){this.destroy();this.init(this.chart.renderer,c(!0,this.options,a),this.chart)},addEvents:function(){var a=\n", "this.options.inverted?[1,0]:[0,1],b=this.scrollbarButtons,c=this.scrollbarGroup.element,d=this.mouseDownHandler,e=this.mouseMoveHandler,f=this.mouseUpHandler,a=[[b[a[0]].element,\"click\",this.buttonToMinClick],[b[a[1]].element,\"click\",this.buttonToMaxClick],[this.track.element,\"click\",this.trackClick],[c,\"mousedown\",d],[c.ownerDocument,\"mousemove\",e],[c.ownerDocument,\"mouseup\",f]];y&&a.push([c,\"touchstart\",d],[c.ownerDocument,\"touchmove\",e],[c.ownerDocument,\"touchend\",f]);A(a,function(a){D.apply(null,\n", "a)});this._events=a},removeEvents:function(){A(this._events,function(a){m.apply(null,a)});this._events.length=0},destroy:function(){var a=this.chart.scroller;this.removeEvents();A([\"track\",\"scrollbarRifles\",\"scrollbar\",\"scrollbarGroup\",\"group\"],function(a){this[a]&&this[a].destroy&&(this[a]=this[a].destroy())},this);a&&this===a.scrollbar&&(a.scrollbar=null,r(a.scrollbarButtons))}};k(E.prototype,\"init\",function(a){var b=this;a.apply(b,Array.prototype.slice.call(arguments,1));b.options.scrollbar&&b.options.scrollbar.enabled&&\n", "(b.options.scrollbar.vertical=!b.horiz,b.options.startOnTick=b.options.endOnTick=!1,b.scrollbar=new C(b.chart.renderer,b.options.scrollbar,b.chart),D(b.scrollbar,\"changed\",function(a){var c=Math.min(d(b.options.min,b.min),b.min,b.dataMin),e=Math.max(d(b.options.max,b.max),b.max,b.dataMax)-c,f;b.horiz&&!b.reversed||!b.horiz&&b.reversed?(f=c+e*this.to,c+=e*this.from):(f=c+e*(1-this.from),c+=e*(1-this.to));b.setExtremes(c,f,!0,!1,a)}))});k(E.prototype,\"render\",function(a){var b=Math.min(d(this.options.min,\n", "this.min),this.min,d(this.dataMin,this.min)),c=Math.max(d(this.options.max,this.max),this.max,d(this.dataMax,this.max)),e=this.scrollbar,h=this.titleOffset||0;a.apply(this,Array.prototype.slice.call(arguments,1));if(e){this.horiz?(e.position(this.left,this.top+this.height+2+this.chart.scrollbarsOffsets[1]+(this.opposite?0:h+this.axisTitleMargin+this.offset),this.width,this.height),h=1):(e.position(this.left+this.width+2+this.chart.scrollbarsOffsets[0]+(this.opposite?h+this.axisTitleMargin+this.offset:\n", "0),this.top,this.width,this.height),h=0);if(!this.opposite&&!this.horiz||this.opposite&&this.horiz)this.chart.scrollbarsOffsets[h]+=this.scrollbar.size+this.scrollbar.options.margin;isNaN(b)||isNaN(c)||!f(this.min)||!f(this.max)?e.setRange(0,0):(h=(this.min-b)/(c-b),b=(this.max-b)/(c-b),this.horiz&&!this.reversed||!this.horiz&&this.reversed?e.setRange(h,b):e.setRange(1-b,1-h))}});k(E.prototype,\"getOffset\",function(a){var b=this.horiz?2:1,c=this.scrollbar;a.apply(this,Array.prototype.slice.call(arguments,\n", "1));c&&(this.chart.scrollbarsOffsets=[0,0],this.chart.axisOffset[b]+=c.size+c.options.margin)});k(E.prototype,\"destroy\",function(a){this.scrollbar&&(this.scrollbar=this.scrollbar.destroy());a.apply(this,Array.prototype.slice.call(arguments,1))});a.Scrollbar=C})(L);(function(a){function C(a){this.init(a)}var D=a.addEvent,E=a.Axis,q=a.Chart,n=a.color,f=a.defaultOptions,r=a.defined,A=a.destroyObjectProperties,w=a.each,y=a.erase,p=a.error,c=a.extend,d=a.grep,m=a.hasTouch,k=a.isArray,b=a.isNumber,e=a.isObject,\n", "h=a.isTouchDevice,u=a.merge,t=a.pick,z=a.removeEvent,I=a.Scrollbar,v=a.Series,G=a.seriesTypes,l=a.wrap,H=[].concat(a.defaultDataGroupingUnits),K=function(a){var c=d(arguments,b);if(c.length)return Math[a].apply(0,c)};H[4]=[\"day\",[1,2,3,4]];H[5]=[\"week\",[1,2,3]];G=void 0===G.areaspline?\"line\":\"areaspline\";c(f,{navigator:{height:40,margin:25,maskInside:!0,handles:{width:7,height:15,symbols:[\"navigator-handle\",\"navigator-handle\"],enabled:!0,lineWidth:1,backgroundColor:\"#f2f2f2\",borderColor:\"#999999\"},\n", "maskFill:n(\"#6685c2\").setOpacity(.3).get(),outlineColor:\"#cccccc\",outlineWidth:1,series:{type:G,fillOpacity:.05,lineWidth:1,compare:null,dataGrouping:{approximation:\"average\",enabled:!0,groupPixelWidth:2,smoothed:!0,units:H},dataLabels:{enabled:!1,zIndex:2},id:\"highcharts-navigator-series\",className:\"highcharts-navigator-series\",lineColor:null,marker:{enabled:!1},pointRange:0,threshold:null},xAxis:{overscroll:0,className:\"highcharts-navigator-xaxis\",tickLength:0,lineWidth:0,gridLineColor:\"#e6e6e6\",\n", "gridLineWidth:1,tickPixelInterval:200,labels:{align:\"left\",style:{color:\"#999999\"},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}}});a.Renderer.prototype.symbols[\"navigator-handle\"]=function(a,b,c,d,e){a=e.width/2;b=Math.round(a/3)+.5;e=e.height;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-\n", "3,\"M\",b-1,4,\"L\",b-1,e-3]};C.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)})},drawOutline:function(a,b,c,d){var e=this.navigatorOptions.maskInside,g=this.outline.strokeWidth(),f=g/2,g=g%2/2,h=this.outlineHeight,k=this.scrollbarHeight,l=this.size,\n", "m=this.left-k,n=this.top;c?(m-=f,c=n+b+g,b=n+a+g,a=[\"M\",m+h,n-k-g,\"L\",m+h,c,\"L\",m,c,\"L\",m,b,\"L\",m+h,b,\"L\",m+h,n+l+k].concat(e?[\"M\",m+h,c-f,\"L\",m+h,b+f]:[])):(a+=m+k-g,b+=m+k-g,n+=f,a=[\"M\",m,n,\"L\",a,n,\"L\",a,n+h,\"L\",b,n+h,\"L\",b,n,\"L\",m+l+2*k,n].concat(e?[\"M\",a-f,n,\"L\",b+f,n]:[]));this.outline[d]({d:a})},drawMasks:function(a,b,c,d){var e=this.left,g=this.top,f=this.height,h,k,l,m;c?(l=[e,e,e],m=[g,g+a,g+b],k=[f,f,f],h=[a,b-a,this.size-b]):(l=[e,e+a,e+b],m=[g,g,g],k=[a,b-a,this.size-b],h=[f,f,f]);w(this.shades,\n", "function(a,b){a[d]({x:l[b],y:m[b],width:k[b],height:h[b]})})},renderElements:function(){var a=this,b=a.navigatorOptions,c=b.maskInside,d=a.chart,e=d.inverted,f=d.renderer,h;a.navigatorGroup=h=f.g(\"navigator\").attr({zIndex:8,visibility:\"hidden\"}).add();var k={cursor:e?\"ns-resize\":\"ew-resize\"};w([!c,c,!c],function(c,d){a.shades[d]=f.rect().addClass(\"highcharts-navigator-mask\"+(1===d?\"-inside\":\"-outside\")).attr({fill:c?b.maskFill:\"rgba(0,0,0,0)\"}).css(1===d&&k).add(h)});a.outline=f.path().addClass(\"highcharts-navigator-outline\").attr({\"stroke-width\":b.outlineWidth,\n", "stroke:b.outlineColor}).add(h);b.handles.enabled&&w([0,1],function(c){b.handles.inverted=d.inverted;a.handles[c]=f.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(h);var e=b.handles;a.handles[c].attr({fill:e.backgroundColor,stroke:e.borderColor,\"stroke-width\":e.lineWidth}).css(k)})},update:function(a){w(this.series||[],function(a){a.baseSeries&&\n", "delete a.baseSeries.navigatorSeries});this.destroy();u(!0,this.chart.options.navigator,this.options,a);this.init(this.chart)},render:function(c,d,e,f){var g=this.chart,h,k,l=this.scrollbarHeight,m,n=this.xAxis;h=n.fake?g.xAxis[0]:n;var p=this.navigatorEnabled,q,B=this.rendered;k=g.inverted;var v,x=g.xAxis[0].minRange,F=g.xAxis[0].options.maxRange;if(!this.hasDragged||r(e)){if(!b(c)||!b(d))if(B)e=0,f=t(n.width,h.width);else return;this.left=t(n.left,g.plotLeft+l+(k?g.plotWidth:0));this.size=q=m=t(n.len,\n", "(k?g.plotHeight:g.plotWidth)-2*l);g=k?l:m+2*l;e=t(e,n.toPixels(c,!0));f=t(f,n.toPixels(d,!0));b(e)&&Infinity!==Math.abs(e)||(e=0,f=g);c=n.toValue(e,!0);d=n.toValue(f,!0);v=Math.abs(a.correctFloat(d-c));vF&&(this.grabbedLeft?e=n.toPixels(d-F,!0):this.grabbedRight&&(f=n.toPixels(c+F,!0)));this.zoomedMax=Math.min(Math.max(e,f,0),q);this.zoomedMin=Math.min(Math.max(this.fixedWidth?this.zoomedMax-this.fixedWidth:\n", "Math.min(e,f),0),q);this.range=this.zoomedMax-this.zoomedMin;q=Math.round(this.zoomedMax);e=Math.round(this.zoomedMin);p&&(this.navigatorGroup.attr({visibility:\"visible\"}),B=B&&!this.hasDragged?\"animate\":\"attr\",this.drawMasks(e,q,k,B),this.drawOutline(e,q,k,B),this.navigatorOptions.handles.enabled&&(this.drawHandle(e,0,k,B),this.drawHandle(q,1,k,B)));this.scrollbar&&(k?(k=this.top-l,h=this.left-l+(p||!h.opposite?0:(h.titleOffset||0)+h.axisTitleMargin),l=m+2*l):(k=this.top+(p?this.height:-l),h=this.left-\n", "l),this.scrollbar.position(h,k,g,l),this.scrollbar.setRange(this.zoomedMin/m,this.zoomedMax/m));this.rendered=!0}},addMouseEvents:function(){var a=this,b=a.chart,c=b.container,d=[],e,f;a.mouseMoveHandler=e=function(b){a.onMouseMove(b)};a.mouseUpHandler=f=function(b){a.onMouseUp(b)};d=a.getPartsEvents(\"mousedown\");d.push(D(c,\"mousemove\",e),D(c.ownerDocument,\"mouseup\",f));m&&(d.push(D(c,\"touchmove\",e),D(c.ownerDocument,\"touchend\",f)),d.concat(a.getPartsEvents(\"touchstart\")));a.eventsToUnbind=d;a.series&&\n", "a.series[0]&&d.push(D(a.series[0].xAxis,\"foundExtremes\",function(){b.navigator.modifyNavigatorAxisExtremes()}))},getPartsEvents:function(a){var b=this,c=[];w([\"shades\",\"handles\"],function(d){w(b[d],function(e,g){c.push(D(e.element,a,function(a){b[d+\"Mousedown\"](a,g)}))})});return c},shadesMousedown:function(a,b){a=this.chart.pointer.normalize(a);var c=this.chart,d=this.xAxis,e=this.zoomedMin,f=this.left,h=this.size,k=this.range,l=a.chartX,m,n;c.inverted&&(l=a.chartY,f=this.top);1===b?(this.grabbedCenter=\n", "l,this.fixedWidth=k,this.dragOffset=l-e):(a=l-f-k/2,0===b?a=Math.max(0,a):2===b&&a+k>=h&&(a=h-k,d.reversed?(a-=k,n=this.getUnionExtremes().dataMin):m=this.getUnionExtremes().dataMax),a!==e&&(this.fixedWidth=k,b=d.toFixedRange(a,a+k,n,m),r(b.min)&&c.xAxis[0].setExtremes(Math.min(b.min,b.max),Math.max(b.min,b.max),!0,null,{trigger:\"navigator\"})))},handlesMousedown:function(a,b){this.chart.pointer.normalize(a);a=this.chart;var c=a.xAxis[0],d=a.inverted&&!c.reversed||!a.inverted&&c.reversed;0===b?(this.grabbedLeft=\n", "!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},onMouseMove:function(a){var b=this,c=b.chart,d=b.left,e=b.navigatorSize,f=b.range,h=b.dragOffset,k=c.inverted;a.touches&&0===a.touches[0].pageX||(a=c.pointer.normalize(a),c=a.chartX,k&&(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,\n", "c-d)):b.grabbedCenter&&(b.hasDragged=!0,ce+h-f&&(c=e+h-f),b.render(0,0,c-h,c-h+f)),b.hasDragged&&b.scrollbar&&b.scrollbar.options.liveRedraw&&(a.DOMType=a.type,setTimeout(function(){b.onMouseUp(a)},0)))},onMouseUp:function(a){var b=this.chart,c=this.xAxis,d=c&&c.reversed,e=this.scrollbar,f,h,k=a.DOMEvent||a;(!this.hasDragged||e&&e.hasDragged)&&\"scrollbar\"!==a.trigger||(e=this.getUnionExtremes(),this.zoomedMin===this.otherHandlePos?f=this.fixedExtreme:this.zoomedMax===this.otherHandlePos&&\n", "(h=this.fixedExtreme),this.zoomedMax===this.size&&(h=d?e.dataMin:e.dataMax),0===this.zoomedMin&&(f=d?e.dataMax:e.dataMin),c=c.toFixedRange(this.zoomedMin,this.zoomedMax,f,h),r(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:k}));\"mousemove\"!==a.DOMType&&(this.grabbedLeft=this.grabbedRight=this.grabbedCenter=this.fixedWidth=this.fixedExtreme=this.otherHandlePos=this.hasDragged=this.dragOffset=\n", "null)},removeEvents:function(){this.eventsToUnbind&&(w(this.eventsToUnbind,function(a){a()}),this.eventsToUnbind=void 0);this.removeBaseSeriesEvents()},removeBaseSeriesEvents:function(){var a=this.baseSeries||[];this.navigatorEnabled&&a[0]&&(!1!==this.navigatorOptions.adaptToUpdatedData&&w(a,function(a){z(a,\"updatedData\",this.updatedDataHandler)},this),a[0].xAxis&&z(a[0].xAxis,\"foundExtremes\",this.modifyBaseAxisExtremes))},init:function(a){var b=a.options,c=b.navigator,d=c.enabled,e=b.scrollbar,f=\n", "e.enabled,b=d?c.height:0,h=f?e.height:0;this.handles=[];this.shades=[];this.chart=a;this.setBaseSeries();this.height=b;this.scrollbarHeight=h;this.scrollbarEnabled=f;this.navigatorEnabled=d;this.navigatorOptions=c;this.scrollbarOptions=e;this.outlineHeight=b+h;this.opposite=t(c.opposite,!d&&a.inverted);var k=this,e=k.baseSeries,f=a.xAxis.length,l=a.yAxis.length,m=e&&e[0]&&e[0].xAxis||a.xAxis[0]||{options:{}};D(a,\"getMargins\",function(){var b=k.opposite?\"plotTop\":\"marginBottom\";a.inverted&&(b=k.opposite?\n", "\"marginRight\":\"plotLeft\");a[b]=(a[b]||0)+(d||!a.inverted?k.outlineHeight:0)+c.margin});a.isDirtyBox=!0;k.navigatorEnabled?(k.xAxis=new E(a,u({breaks:m.options.breaks,ordinal:m.options.ordinal},c.xAxis,{id:\"navigator-x-axis\",yAxis:\"navigator-y-axis\",isX:!0,type:\"datetime\",index:f,offset:0,keepOrdinalPadding:!0,startOnTick:!1,endOnTick:!1,minPadding:0,maxPadding:0,zoomEnabled:!1},a.inverted?{offsets:[h,0,-h,0],width:b}:{offsets:[0,-h,0,h],height:b})),k.yAxis=new E(a,u(c.yAxis,{id:\"navigator-y-axis\",\n", "alignTicks:!1,offset:0,index:l,zoomEnabled:!1},a.inverted?{width:b}:{height:b})),e||c.series.data?k.updateNavigatorSeries(!1):0===a.series.length&&(k.unbindRedraw=D(a,\"beforeRedraw\",function(){0a.inArray(c,l)?(c&&(z(c,\"updatedData\",e.updatedDataHandler),\n", "delete c.navigatorSeries),b.destroy(),!1):!0});l&&l.length&&w(l,function(a){var b=a.navigatorSeries,g=c({color:a.color,visible:a.visible},k(p)?f.navigator.series:p);b&&!1===e.navigatorOptions.adaptToUpdatedData||(q.name=\"Navigator \"+l.length,m=a.options||{},t=m.navigatorOptions||{},n=u(m,q,g,t),g=t.data||g.data,e.hasNavigatorData=e.hasNavigatorData||!!g,n.data=g||m.data&&m.data.slice(0),b&&b.options?b.update(n,d):(a.navigatorSeries=h.initSeries(n),a.navigatorSeries.baseSeries=a,v.push(a.navigatorSeries)))});\n", "if(p.data&&(!l||!l.length)||k(p))e.hasNavigatorData=!1,p=a.splat(p),w(p,function(a,b){q.name=\"Navigator \"+(v.length+1);n=u(f.navigator.series,{color:h.series[b]&&!h.series[b].options.isInternal&&h.series[b].color||h.options.colors[b]||h.options.colors[0]},q,a);n.data=a.data;n.data&&(e.hasNavigatorData=!0,v.push(h.initSeries(n)))});b&&this.addBaseSeriesEvents()},addBaseSeriesEvents:function(){var a=this,b=a.baseSeries||[];b[0]&&b[0].xAxis&&D(b[0].xAxis,\"foundExtremes\",this.modifyBaseAxisExtremes);\n", "w(b,function(b){D(b,\"show\",function(){this.navigatorSeries&&this.navigatorSeries.setVisible(!0,!1)});D(b,\"hide\",function(){this.navigatorSeries&&this.navigatorSeries.setVisible(!1,!1)});!1!==this.navigatorOptions.adaptToUpdatedData&&b.xAxis&&D(b,\"updatedData\",this.updatedDataHandler);D(b,\"remove\",function(){this.navigatorSeries&&(y(a.series,this.navigatorSeries),r(this.navigatorSeries.options)&&this.navigatorSeries.remove(!1),delete this.navigatorSeries)})},this)},modifyNavigatorAxisExtremes:function(){var a=\n", "this.xAxis,b;a.getExtremes&&(!(b=this.getUnionExtremes(!0))||b.dataMin===a.min&&b.dataMax===a.max||(a.min=b.dataMin,a.max=b.dataMax))},modifyBaseAxisExtremes:function(){var a=this.chart.navigator,c=this.getExtremes(),d=c.dataMin,e=c.dataMax,c=c.max-c.min,f=a.stickToMin,h=a.stickToMax,k=t(this.options.overscroll,0),l,m,n=a.series&&a.series[0],p=!!this.setExtremes;this.eventArgs&&\"rangeSelectorButton\"===this.eventArgs.trigger||(f&&(m=d,l=m+c),h&&(l=e+k,f||(m=Math.max(l-c,n&&n.xData?n.xData[0]:-Number.MAX_VALUE))),\n", "p&&(f||h)&&b(m)&&(this.min=this.userMin=m,this.max=this.userMax=l));a.stickToMin=a.stickToMax=null},updatedDataHandler:function(){var a=this.chart.navigator,c=this.navigatorSeries;a.stickToMax=a.xAxis.reversed?0===Math.round(a.zoomedMin):Math.round(a.zoomedMax)>=Math.round(a.size);a.stickToMin=b(this.xAxis.min)&&this.xAxis.min<=this.xData[0]&&(!this.chart.fixedRange||!a.stickToMax);c&&!a.hasNavigatorData&&(c.options.pointStart=this.xData[0],c.setData(this.options.data,!1,null,!1))},addChartEvents:function(){D(this.chart,\n", "\"redraw\",function(){var a=this.navigator,b=a&&(a.baseSeries&&a.baseSeries[0]&&a.baseSeries[0].xAxis||a.scrollbar&&this.xAxis[0]);b&&a.render(b.min,b.max)})},destroy:function(){this.removeEvents();this.xAxis&&(y(this.chart.xAxis,this.xAxis),y(this.chart.axes,this.xAxis));this.yAxis&&(y(this.chart.yAxis,this.yAxis),y(this.chart.axes,this.yAxis));w(this.series||[],function(a){a.destroy&&a.destroy()});w(\"series xAxis yAxis shades outline scrollbarTrack scrollbarRifles scrollbarGroup scrollbar navigatorGroup rendered\".split(\" \"),\n", "function(a){this[a]&&this[a].destroy&&this[a].destroy();this[a]=null},this);w([this.handles],function(a){A(a)},this)}};a.Navigator=C;l(E.prototype,\"zoom\",function(a,b,c){var d=this.chart,e=d.options,g=e.chart.zoomType,f=e.chart.pinchType,k=e.navigator,e=e.rangeSelector,l;this.isXAxis&&(k&&k.enabled||e&&e.enabled)&&(!h&&\"x\"===g||h&&\"x\"===f?d.resetZoomButton=\"blocked\":\"y\"===g?l=!1:(!h&&\"xy\"===g||h&&\"xy\"===f)&&this.options.range&&(d=this.previousZoom,r(b)?this.previousZoom=[this.min,this.max]:d&&(b=\n", "d[0],c=d[1],delete this.previousZoom)));return void 0!==l?l:a.call(this,b,c)});D(q,\"beforeRender\",function(){var a=this.options;if(a.navigator.enabled||a.scrollbar.enabled)this.scroller=this.navigator=new C(this)});D(q,\"afterSetChartSize\",function(){var a=this.legend,b=this.navigator,c,d,e,f;b&&(d=a&&a.options,e=b.xAxis,f=b.yAxis,c=b.scrollbarHeight,this.inverted?(b.left=b.opposite?this.chartWidth-c-b.height:this.spacing[3]+c,b.top=this.plotTop+c):(b.left=this.plotLeft+c,b.top=b.navigatorOptions.top||\n", "this.chartHeight-b.height-c-this.spacing[2]-(this.rangeSelector&&this.extraBottomMargin?this.rangeSelector.getHeight():0)-(d&&\"bottom\"===d.verticalAlign&&d.enabled&&!d.floating?a.legendHeight+t(d.margin,10):0)),e&&f&&(this.inverted?e.options.left=f.options.left=b.left:e.options.top=f.options.top=b.top,e.setAxisSize(),f.setAxisSize()))});D(q,\"update\",function(a){var b=a.options.navigator||{},c=a.options.scrollbar||{};this.navigator||this.scroller||!b.enabled&&!c.enabled||(u(!0,this.options.navigator,\n", "b),u(!0,this.options.scrollbar,c),delete a.options.navigator,delete a.options.scrollbar)});D(q,\"afterUpdate\",function(){this.navigator||this.scroller||!this.options.navigator.enabled&&!this.options.scrollbar.enabled||(this.scroller=this.navigator=new C(this))});l(v.prototype,\"addPoint\",function(a,b,c,d,f){var g=this.options.turboThreshold;g&&this.xData.length>g&&e(b,!0)&&this.chart.navigator&&p(20,!0);a.call(this,b,c,d,f)});D(q,\"afterAddSeries\",function(){this.navigator&&this.navigator.setBaseSeries(null,\n", "!1)});D(v,\"afterUpdate\",function(){this.chart.navigator&&!this.options.isInternal&&this.chart.navigator.setBaseSeries(null,!1)});q.prototype.callbacks.push(function(a){var b=a.navigator;b&&a.xAxis[0]&&(a=a.xAxis[0].getExtremes(),b.render(a.min,a.max))})})(L);(function(a){function C(a){this.init(a)}var D=a.addEvent,E=a.Axis,q=a.Chart,n=a.css,f=a.createElement,r=a.defaultOptions,A=a.defined,w=a.destroyObjectProperties,y=a.discardElement,p=a.each,c=a.extend,d=a.fireEvent,m=a.isNumber,k=a.merge,b=a.pick,\n", "e=a.pInt,h=a.splat,u=a.wrap;c(r,{rangeSelector:{verticalAlign:\"top\",buttonTheme:{\"stroke-width\":0,width:28,height:18,padding:2,zIndex:7},floating:!1,x:0,y:0,height:void 0,inputPosition:{align:\"right\",x:0,y:0},buttonPosition:{align:\"left\",x:0,y:0},labelStyle:{color:\"#666666\"}}});r.lang=k(r.lang,{rangeSelectorZoom:\"Zoom\",rangeSelectorFrom:\"From\",rangeSelectorTo:\"To\"});C.prototype={clickButton:function(a,c){var d=this,e=d.chart,f=d.buttonOptions[a],k=e.xAxis[0],n=e.scroller&&e.scroller.getUnionExtremes()||\n", "k||{},t=n.dataMin,q=n.dataMax,r,g=k&&Math.round(Math.min(k.max,b(q,k.max))),u=f.type,z,n=f._range,w,y,A,C=f.dataGrouping;if(null!==t&&null!==q){e.fixedRange=n;C&&(this.forcedDataGrouping=!0,E.prototype.setDataGrouping.call(k||{chart:this.chart},C,!1));if(\"month\"===u||\"year\"===u)k?(u={range:f,max:g,chart:e,dataMin:t,dataMax:q},r=k.minFromRange.call(u),m(u.newMax)&&(g=u.newMax)):n=f;else if(n)r=Math.max(g-n,t),g=Math.min(r+n,q);else if(\"ytd\"===u)if(k)void 0===q&&(t=Number.MAX_VALUE,q=Number.MIN_VALUE,\n", "p(e.series,function(a){a=a.xData;t=Math.min(a[0],t);q=Math.max(a[a.length-1],q)}),c=!1),g=d.getYTDExtremes(q,t,e.time.useUTC),r=w=g.min,g=g.max;else{D(e,\"beforeRender\",function(){d.clickButton(a)});return}else\"all\"===u&&k&&(r=t,g=q);r+=f._offsetMin;g+=f._offsetMax;d.setSelected(a);k?k.setExtremes(r,g,b(c,1),null,{trigger:\"rangeSelectorButton\",rangeSelectorButton:f}):(z=h(e.options.xAxis)[0],A=z.range,z.range=n,y=z.min,z.min=w,D(e,\"load\",function(){z.range=A;z.min=y}))}},setSelected:function(a){this.selected=\n", "this.options.selected=a},defaultButtons:[{type:\"month\",count:1,text:\"1m\"},{type:\"month\",count:3,text:\"3m\"},{type:\"month\",count:6,text:\"6m\"},{type:\"ytd\",text:\"YTD\"},{type:\"year\",count:1,text:\"1y\"},{type:\"all\",text:\"All\"}],init:function(a){var b=this,c=a.options.rangeSelector,e=c.buttons||[].concat(b.defaultButtons),f=c.selected,h=function(){var a=b.minInput,c=b.maxInput;a&&a.blur&&d(a,\"blur\");c&&c.blur&&d(c,\"blur\")};b.chart=a;b.options=c;b.buttons=[];a.extraTopMargin=c.height;b.buttonOptions=e;this.unMouseDown=\n", "D(a.container,\"mousedown\",h);this.unResize=D(a,\"resize\",h);p(e,b.computeButtonRange);void 0!==f&&e[f]&&this.clickButton(f,!1);D(a,\"load\",function(){a.xAxis&&a.xAxis[0]&&D(a.xAxis[0],\"setExtremes\",function(c){this.max-this.min!==a.fixedRange&&\"rangeSelectorButton\"!==c.trigger&&\"updatedData\"!==c.trigger&&b.forcedDataGrouping&&this.setDataGrouping(!1,!1)})})},updateButtonStates:function(){var a=this.chart,b=a.xAxis[0],c=Math.round(b.max-b.min),d=!b.hasVisibleSeries,e=a.scroller&&a.scroller.getUnionExtremes()||\n", "b,f=e.dataMin,h=e.dataMax,a=this.getYTDExtremes(h,f,a.time.useUTC),k=a.min,n=a.max,q=this.selected,g=m(q),r=this.options.allButtonsEnabled,u=this.buttons;p(this.buttonOptions,function(a,e){var l=a._range,m=a.type,p=a.count||1,t=u[e],v=0;a=a._offsetMax-a._offsetMin;e=e===q;var z=l>h-f,w=l=864E5*{month:28,year:365}[m]*p-a&&c-36E5<=864E5*{month:31,year:366}[m]*p+a?l=!0:\"ytd\"===m?(l=n-k+a===c,x=!e):\"all\"===m&&(l=b.max-b.min>=h-f,B=!e&&g&&\n", "l);m=!r&&(z||w||B||d);p=e&&l||l&&!g&&!x;m?v=3:p&&(g=!0,v=2);t.state!==v&&t.setState(v)})},computeButtonRange:function(a){var c=a.type,d=a.count||1,e={millisecond:1,second:1E3,minute:6E4,hour:36E5,day:864E5,week:6048E5};if(e[c])a._range=e[c]*d;else if(\"month\"===c||\"year\"===c)a._range=864E5*{month:30,year:365}[c]*d;a._offsetMin=b(a.offsetMin,0);a._offsetMax=b(a.offsetMax,0);a._range+=a._offsetMax-a._offsetMin},setInputValue:function(a,b){var c=this.chart.options.rangeSelector,d=this.chart.time,e=this[a+\n", "\"Input\"];A(b)&&(e.previousValue=e.HCTime,e.HCTime=b);e.value=d.dateFormat(c.inputEditDateFormat||\"%Y-%m-%d\",e.HCTime);this[a+\"DateBox\"].attr({text:d.dateFormat(c.inputDateFormat||\"%b %e, %Y\",e.HCTime)})},showInput:function(a){var b=this.inputGroup,c=this[a+\"DateBox\"];n(this[a+\"Input\"],{left:b.translateX+c.x+\"px\",top:b.translateY+\"px\",width:c.width-2+\"px\",height:c.height-2+\"px\",border:\"2px solid silver\"})},hideInput:function(a){n(this[a+\"Input\"],{border:0,width:\"1px\",height:\"1px\"});this.setInputValue(a)},\n", "drawInput:function(a){function b(){var a=w.value,b=(q.inputDateParser||Date.parse)(a),c=h.xAxis[0],g=h.scroller&&h.scroller.xAxis?h.scroller.xAxis:c,f=g.dataMin,g=g.dataMax;b!==w.previousValue&&(w.previousValue=b,m(b)||(b=a.split(\"-\"),b=Date.UTC(e(b[0]),e(b[1])-1,e(b[2]))),m(b)&&(h.time.useUTC||(b+=6E4*(new Date).getTimezoneOffset()),u?b>d.maxInput.HCTime?b=void 0:bg&&(b=g),void 0!==b&&c.setExtremes(u?b:c.min,u?c.max:b,void 0,void 0,{trigger:\"rangeSelectorInput\"})))}\n", "var d=this,h=d.chart,p=h.renderer.style||{},l=h.renderer,q=h.options.rangeSelector,t=d.div,u=\"min\"===a,w,g,x=this.inputGroup;this[a+\"Label\"]=g=l.label(r.lang[u?\"rangeSelectorFrom\":\"rangeSelectorTo\"],this.inputGroup.offset).addClass(\"highcharts-range-label\").attr({padding:2}).add(x);x.offset+=g.width+5;this[a+\"DateBox\"]=l=l.label(\"\",x.offset).addClass(\"highcharts-range-input\").attr({padding:2,width:q.inputBoxWidth||90,height:q.inputBoxHeight||17,stroke:q.inputBoxBorderColor||\"#cccccc\",\"stroke-width\":1,\n", "\"text-align\":\"center\"}).on(\"click\",function(){d.showInput(a);d[a+\"Input\"].focus()}).add(x);x.offset+=l.width+(u?10:0);this[a+\"Input\"]=w=f(\"input\",{name:a,className:\"highcharts-range-selector\",type:\"text\"},{top:h.plotTop+\"px\"},t);g.css(k(p,q.labelStyle));l.css(k({color:\"#333333\"},p,q.inputStyle));n(w,c({position:\"absolute\",border:0,width:\"1px\",height:\"1px\",padding:0,textAlign:\"center\",fontSize:p.fontSize,fontFamily:p.fontFamily,top:\"-9999em\"},q.inputStyle));w.onfocus=function(){d.showInput(a)};w.onblur=\n", "function(){d.hideInput(a)};w.onchange=b;w.onkeypress=function(a){13===a.keyCode&&b()}},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}},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||0,c);e=e.getTime();return{max:Math.min(a||e,e),min:b}},render:function(a,c){var d=\n", "this,e=d.chart,h=e.renderer,k=e.container,m=e.options,n=m.exporting&&!1!==m.exporting.enabled&&m.navigation&&m.navigation.buttonOptions,q=r.lang,t=d.div,g=m.rangeSelector,m=g.floating,u=d.buttons,t=d.inputGroup,w=g.buttonTheme,z=g.buttonPosition,y=g.inputPosition,A=g.inputEnabled,C=w&&w.states,D=e.plotLeft,E,L=d.buttonGroup,R;R=d.rendered;var Y=d.options.verticalAlign,aa=e.legend,ba=aa&&aa.options,ca=z.y,Z=y.y,da=R||!1,X=0,U=0,V;if(!1!==g.enabled){R||(d.group=R=h.g(\"range-selector-group\").attr({zIndex:7}).add(),\n", "d.buttonGroup=L=h.g(\"range-selector-buttons\").add(R),d.zoomText=h.text(q.rangeSelectorZoom,b(D+z.x,D),15).css(g.labelStyle).add(L),E=b(D+z.x,D)+d.zoomText.getBBox().width+5,p(d.buttonOptions,function(a,c){u[c]=h.button(a.text,E,0,function(){var b=a.events&&a.events.click,e;b&&(e=b.call(a));!1!==e&&d.clickButton(c);d.isActive=!0},w,C&&C.hover,C&&C.select,C&&C.disabled).attr({\"text-align\":\"center\"}).add(L);E+=u[c].width+b(g.buttonSpacing,5)}),!1!==A&&(d.div=t=f(\"div\",null,{position:\"relative\",height:0,\n", "zIndex:1}),k.parentNode.insertBefore(t,k),d.inputGroup=t=h.g(\"input-group\").add(R),t.offset=0,d.drawInput(\"min\"),d.drawInput(\"max\")));D=e.plotLeft-e.spacing[3];d.updateButtonStates();n&&this.titleCollision(e)&&\"top\"===Y&&\"right\"===z.align&&z.y+L.getBBox().height-12<(n.y||0)+n.height&&(X=-40);\"left\"===z.align?V=z.x-e.spacing[3]:\"right\"===z.align&&(V=z.x+X-e.spacing[1]);L.align({y:z.y,width:L.getBBox().width,align:z.align,x:V},!0,e.spacingBox);d.group.placed=da;d.buttonGroup.placed=da;!1!==A&&(X=n&&\n", "this.titleCollision(e)&&\"top\"===Y&&\"right\"===y.align&&y.y-t.getBBox().height-12<(n.y||0)+n.height+e.spacing[0]?-40:0,\"left\"===y.align?V=D:\"right\"===y.align&&(V=-Math.max(e.axisOffset[1],-X)),t.align({y:y.y,width:t.getBBox().width,align:y.align,x:y.x+V-2},!0,e.spacingBox),k=t.alignAttr.translateX+t.alignOptions.x-X+t.getBBox().x+2,n=t.alignOptions.width,q=L.alignAttr.translateX+L.getBBox().x,V=L.getBBox().width+20,(y.align===z.align||q+V>k&&k+n>q&&ca=-X?0:-X),translateY:t.alignAttr.translateY+L.getBBox().height+10}),d.setInputValue(\"min\",a),d.setInputValue(\"max\",c),d.inputGroup.placed=da);d.group.align({verticalAlign:Y},!0,e.spacingBox);a=d.group.getBBox().height+20;c=d.group.alignAttr.translateY;\"bottom\"===Y&&(aa=ba&&\"bottom\"===ba.verticalAlign&&ba.enabled&&!ba.floating?aa.legendHeight+b(ba.margin,10):0,a=a+aa-20,U=c-a-(m?0:g.y)-10);if(\"top\"===Y)m&&(U=0),e.titleOffset&&(U=e.titleOffset+e.options.title.margin),U+=e.margin[0]-\n", "e.spacing[0]||0;else if(\"middle\"===Y)if(Z===ca)U=0>Z?c+void 0:c;else if(Z||ca)U=0>Z||0>ca?U-Math.min(Z,ca):c-a+NaN;d.group.translate(g.x,g.y+Math.floor(U));!1!==A&&(d.minInput.style.marginTop=d.group.translateY+\"px\",d.maxInput.style.marginTop=d.group.translateY+\"px\");d.rendered=!0}},getHeight:function(){var a=this.options,b=this.group,c=a.y,d=a.buttonPosition.y,a=a.inputPosition.y,b=b?b.getBBox(!0).height+13+c:0,c=Math.min(a,d);if(0>a&&0>d||0d&&(e?a=c-f:c=a+f);m(a)&&m(c)||(a=c=void 0);return{min:a,max:c}};E.prototype.minFromRange=function(){var a=this.range,c={month:\"Month\",year:\"FullYear\"}[a.type],d,e=this.max,f,h,k=function(a,b){var d=new Date(a),e=d[\"get\"+c]();d[\"set\"+c](e+b);e===d[\"get\"+c]()&&d.setDate(0);return d.getTime()-a};m(a)?(d=e-a,h=a):(d=e+k(e,-a.count),this.chart&&(this.chart.fixedRange=\n", "e-d));f=b(this.dataMin,Number.MIN_VALUE);m(d)||(d=f);d<=f&&(d=f,void 0===h&&(h=k(d,a.count)),this.newMax=Math.min(d+h,this.dataMax));m(e)||(d=void 0);return d};D(q,\"afterGetContainer\",function(){this.options.rangeSelector.enabled&&(this.rangeSelector=new C(this))});u(q.prototype,\"render\",function(a,b,c){var d=this.axes,e=this.rangeSelector;e&&(p(d,function(a){a.updateNames();a.setScale()}),this.getAxisMargins(),e.render(),d=e.options.verticalAlign,e.options.floating||(\"bottom\"===d?this.extraBottomMargin=\n", "!0:\"middle\"!==d&&(this.extraTopMargin=!0)));a.call(this,b,c)});D(q,\"update\",function(a){var b=a.options;a=this.rangeSelector;this.extraTopMargin=this.extraBottomMargin=!1;this.isDirtyBox=!0;a&&(a.render(),b=b.rangeSelector&&b.rangeSelector.verticalAlign||a.options&&a.options.verticalAlign,a.options.floating||(\"bottom\"===b?this.extraBottomMargin=!0:\"middle\"!==b&&(this.extraTopMargin=!0)))});u(q.prototype,\"redraw\",function(a,b,c){var d=this.rangeSelector;d&&!d.options.floating&&(d.render(),d=d.options.verticalAlign,\n", "\"bottom\"===d?this.extraBottomMargin=!0:\"middle\"!==d&&(this.extraTopMargin=!0));a.call(this,b,c)});D(q,\"getMargins\",function(){var a=this.rangeSelector;a&&(a=a.getHeight(),this.extraTopMargin&&(this.plotTop+=a),this.extraBottomMargin&&(this.marginBottom+=a))});q.prototype.callbacks.push(function(a){function b(){c=a.xAxis[0].getExtremes();m(c.min)&&d.render(c.min,c.max)}var c,d=a.rangeSelector,e,f;d&&(f=D(a.xAxis[0],\"afterSetExtremes\",function(a){d.render(a.min,a.max)}),e=D(a,\"redraw\",b),b());D(a,\"destroy\",\n", "function(){d&&(e(),f())})});a.RangeSelector=C})(L);(function(a){var C=a.addEvent,D=a.arrayMax,E=a.arrayMin,q=a.Axis,n=a.Chart,f=a.defined,r=a.each,A=a.extend,w=a.format,y=a.grep,p=a.inArray,c=a.isNumber,d=a.isString,m=a.map,k=a.merge,b=a.pick,e=a.Point,h=a.Renderer,u=a.Series,t=a.splat,z=a.SVGRenderer,I=a.VMLRenderer,v=a.wrap,G=u.prototype,l=G.init,H=G.processData,K=e.prototype.tooltipFormatter;a.StockChart=a.stockChart=function(c,e,g){var f=d(c)||c.nodeName,h=arguments[f?1:0],l=h.series,p=a.getOptions(),\n", "q,r=b(h.navigator&&h.navigator.enabled,p.navigator.enabled,!0),u=r?{startOnTick:!1,endOnTick:!1}:null,w={marker:{enabled:!1,radius:2}},v={shadow:!1,borderWidth:0};h.xAxis=m(t(h.xAxis||{}),function(a,b){return k({minPadding:0,maxPadding:0,overscroll:0,ordinal:!0,title:{text:null},labels:{overflow:\"justify\"},showLastLabel:!0},p.xAxis,p.xAxis&&p.xAxis[b],a,{type:\"datetime\",categories:null},u)});h.yAxis=m(t(h.yAxis||{}),function(a,c){q=b(a.opposite,!0);return k({labels:{y:-2},opposite:q,showLastLabel:!(!a.categories&&\n", "\"category\"!==a.type),title:{text:null}},p.yAxis,p.yAxis&&p.yAxis[c],a)});h.series=null;h=k({chart:{panning:!0,pinchType:\"x\"},navigator:{enabled:r},scrollbar:{enabled:b(p.scrollbar.enabled,!0)},rangeSelector:{enabled:b(p.rangeSelector.enabled,!0)},title:{text:null},tooltip:{split:b(p.tooltip.split,!0),crosshairs:!0},legend:{enabled:!1},plotOptions:{line:w,spline:w,area:w,areaspline:w,arearange:w,areasplinerange:w,column:v,columnrange:v,candlestick:v,ohlc:v}},h,{isStock:!0});h.series=l;return f?new n(c,\n", "h,g):new n(h,e)};v(q.prototype,\"autoLabelAlign\",function(a){var b=this.chart,c=this.options,b=b._labelPanes=b._labelPanes||{},d=this.options.labels;return this.chart.options.isStock&&\"yAxis\"===this.coll&&(c=c.top+\",\"+c.height,!b[c]&&d.enabled)?(15===d.x&&(d.x=0),void 0===d.align&&(d.align=\"right\"),b[c]=this,\"right\"):a.apply(this,[].slice.call(arguments,1))});C(q,\"destroy\",function(){var a=this.chart,b=this.options&&this.options.top+\",\"+this.options.height;b&&a._labelPanes&&a._labelPanes[b]===this&&\n", "delete a._labelPanes[b]});v(q.prototype,\"getPlotLinePath\",function(e,h,g,k,l,n){var q=this,u=this.isLinked&&!this.series?this.linkedParent.series:this.series,t=q.chart,w=t.renderer,v=q.left,x=q.top,y,z,B,A,F=[],C=[],D,E;if(\"xAxis\"!==q.coll&&\"yAxis\"!==q.coll)return e.apply(this,[].slice.call(arguments,1));C=function(a){var b=\"xAxis\"===a?\"yAxis\":\"xAxis\";a=q.options[b];return c(a)?[t[b][a]]:d(a)?[t.get(a)]:m(u,function(a){return a[b]})}(q.coll);r(q.isXAxis?t.yAxis:t.xAxis,function(a){if(f(a.options.id)?\n", "-1===a.options.id.indexOf(\"navigator\"):1){var b=a.isXAxis?\"yAxis\":\"xAxis\",b=f(a.options[b])?t[b][a.options[b]]:t[b][0];q===b&&C.push(a)}});D=C.length?[]:[q.isXAxis?t.yAxis[0]:t.xAxis[0]];r(C,function(b){-1!==p(b,D)||a.find(D,function(a){return a.pos===b.pos&&a.len&&b.len})||D.push(b)});E=b(n,q.translate(h,null,null,k));c(E)&&(q.horiz?r(D,function(a){var b;z=a.pos;A=z+a.len;y=B=Math.round(E+q.transB);if(yv+q.width)l?y=B=Math.min(Math.max(v,y),v+q.width):b=!0;b||F.push(\"M\",y,z,\"L\",B,A)}):r(D,\n", "function(a){var b;y=a.pos;B=y+a.len;z=A=Math.round(x+q.height-E);if(zx+q.height)l?z=A=Math.min(Math.max(x,z),q.top+q.height):b=!0;b||F.push(\"M\",y,z,\"L\",B,A)}));return 0this.max?\"hidden\":\"visible\"});h=m.getBBox();if(k){if(q&&!c||!q&&c)l=m.y-h.height}else l=m.y-h.height/2;k?(c=d-h.x,d=d+this.width-\n", "h.x):(c=\"left\"===this.labelAlign?d:0,d=\"right\"===this.labelAlign?d+this.width:e.chartWidth);m.translateX=d&&(t=-(m.translateX+h.width-d));m.attr({x:a+t,y:l,anchorX:k?a:this.opposite?0:e.chartWidth,anchorY:k?this.opposite?e.chartHeight:0:l+h.height/2})}});G.init=function(){l.apply(this,arguments);this.setCompare(this.options.compare)};G.setCompare=function(a){this.modifyValue=\"value\"===a||\"percent\"===a?function(b,c){var d=this.compareValue;if(void 0!==b&&\n", "void 0!==d)return b=\"value\"===a?b-d:b/d*100-(100===this.options.compareBase?0:100),c&&(c.change=b),b}:null;this.userOptions.compare=a;this.chart.hasRendered&&(this.isDirty=!0)};G.processData=function(){var a,b=-1,d,e,f=!0===this.options.compareStart?0:1,h,k;H.apply(this,arguments);if(this.xAxis&&this.processedYData)for(d=this.processedXData,e=this.processedYData,h=e.length,this.pointArrayMap&&(b=p(\"close\",this.pointArrayMap),-1===b&&(b=p(this.pointValKey||\"y\",this.pointArrayMap))),a=0;a=this.xAxis.min&&0!==k){this.compareValue=k;break}};v(G,\"getExtremes\",function(a){var b;a.apply(this,[].slice.call(arguments,1));this.modifyValue&&(b=[this.modifyValue(this.dataMin),this.modifyValue(this.dataMax)],this.dataMin=E(b),this.dataMax=D(b))});q.prototype.setCompare=function(a,c){this.isXAxis||(r(this.series,function(b){b.setCompare(a)}),b(c,!0)&&this.chart.redraw())};e.prototype.tooltipFormatter=function(c){c=c.replace(\"{point.change}\",(0n?this:a,a=(n.max-n.min)*n.transA,n.pixelPadding=n.len-a,n.minPixelPadding=\n", "n.pixelPadding/2,a=n.fixTo)){a=a[1]-n.toValue(a[0],!0);a*=n.transA;if(Math.abs(a)>n.minPixelPadding||n.min===n.dataMin&&n.max===n.dataMax)a=0;n.minPixelPadding-=a}});m(g,\"render\",function(){this.fixTo=null})})(w);(function(a){var m=a.addEvent,g=a.Axis,l=a.Chart,f=a.color,q,n=a.each,u=a.extend,r=a.isNumber,e=a.Legend,b=a.LegendSymbolMixin,d=a.noop,h=a.merge,v=a.pick;a.ColorAxis||(q=a.ColorAxis=function(){this.init.apply(this,arguments)},u(q.prototype,g.prototype),u(q.prototype,{defaultColorAxisOptions:{lineWidth:0,\n", "minPadding:0,maxPadding:0,gridLineWidth:1,tickPixelInterval:72,startOnTick:!0,endOnTick:!0,offset:0,marker:{animation:{duration:50},width:.01,color:\"#999999\"},labels:{overflow:\"justify\",rotation:0},minColor:\"#e6ebf5\",maxColor:\"#003399\",tickLength:5,showInLegend:!0},keepProps:[\"legendGroup\",\"legendItemHeight\",\"legendItemWidth\",\"legendItem\",\"legendSymbol\"].concat(g.prototype.keepProps),init:function(a,c){var k=\"vertical\"!==a.options.legend.layout,b;this.coll=\"colorAxis\";b=h(this.defaultColorAxisOptions,\n", "{side:k?2:1,reversed:!k},c,{opposite:!k,showEmpty:!1,title:null,visible:a.options.legend.enabled});g.prototype.init.call(this,a,b);c.dataClasses&&this.initDataClasses(c);this.initStops();this.horiz=k;this.zoomEnabled=!1;this.defaultLegendLength=200},initDataClasses:function(a){var c=this.chart,k,b=0,p=c.options.chart.colorCount,d=this.options,e=a.dataClasses.length;this.dataClasses=k=[];this.legendItems=[];n(a.dataClasses,function(a,t){a=h(a);k.push(a);a.color||(\"category\"===d.dataClassColor?(t=c.options.colors,\n", "p=t.length,a.color=t[b],a.colorIndex=b,b++,b===p&&(b=0)):a.color=f(d.minColor).tweenTo(f(d.maxColor),2>e?.5:t/(e-1)))})},setTickPositions:function(){if(!this.dataClasses)return g.prototype.setTickPositions.call(this)},initStops:function(){this.stops=this.options.stops||[[0,this.options.minColor],[1,this.options.maxColor]];n(this.stops,function(a){a.color=f(a[1])})},setOptions:function(a){g.prototype.setOptions.call(this,a);this.options.crosshair=this.options.marker},setAxisSize:function(){var a=this.legendSymbol,\n", "c=this.chart,k=c.options.legend||{},b,d;a?(this.left=k=a.attr(\"x\"),this.top=b=a.attr(\"y\"),this.width=d=a.attr(\"width\"),this.height=a=a.attr(\"height\"),this.right=c.chartWidth-k-d,this.bottom=c.chartHeight-b-a,this.len=this.horiz?d:a,this.pos=this.horiz?k:b):this.len=(this.horiz?k.symbolWidth:k.symbolHeight)||this.defaultLegendLength},normalizedValue:function(a){this.isLog&&(a=this.val2lin(a));return 1-(this.max-a)/(this.max-this.min||1)},toColor:function(a,c){var k=this.stops,b,p,d=this.dataClasses,\n", "e,h;if(d)for(h=d.length;h--;){if(e=d[h],b=e.from,k=e.to,(void 0===b||a>=b)&&(void 0===k||a<=k)){p=e.color;c&&(c.dataClass=h,c.colorIndex=e.colorIndex);break}}else{a=this.normalizedValue(a);for(h=k.length;h--&&!(a>k[h][0]););b=k[h]||k[h+1];k=k[h+1]||b;a=1-(k[0]-a)/(k[0]-b[0]||1);p=b.color.tweenTo(k.color,a)}return p},getOffset:function(){var a=this.legendGroup,c=this.chart.axisOffset[this.side];a&&(this.axisParent=a,g.prototype.getOffset.call(this),this.added||(this.added=!0,this.labelLeft=0,this.labelRight=\n", "this.width),this.chart.axisOffset[this.side]=c)},setLegendColor:function(){var a,c=this.reversed;a=c?1:0;c=c?0:1;a=this.horiz?[a,0,c,0]:[0,c,0,a];this.legendColor={linearGradient:{x1:a[0],y1:a[1],x2:a[2],y2:a[3]},stops:this.stops}},drawLegendSymbol:function(a,c){var k=a.padding,b=a.options,d=this.horiz,p=v(b.symbolWidth,d?this.defaultLegendLength:12),e=v(b.symbolHeight,d?12:this.defaultLegendLength),h=v(b.labelPadding,d?16:30),b=v(b.itemDistance,10);this.setLegendColor();c.legendSymbol=this.chart.renderer.rect(0,\n", "a.baseline-11,p,e).attr({zIndex:1}).add(c.legendGroup);this.legendItemWidth=p+k+(d?b:h);this.legendItemHeight=e+k+(d?h:0)},setState:function(a){n(this.series,function(c){c.setState(a)})},visible:!0,setVisible:d,getSeriesExtremes:function(){var a=this.series,c=a.length;this.dataMin=Infinity;for(this.dataMax=-Infinity;c--;)a[c].getExtremes(),void 0!==a[c].valueMin&&(this.dataMin=Math.min(this.dataMin,a[c].valueMin),this.dataMax=Math.max(this.dataMax,a[c].valueMax))},drawCrosshair:function(a,c){var k=\n", "c&&c.plotX,b=c&&c.plotY,d,e=this.pos,p=this.len;c&&(d=this.toPixels(c[c.series.colorKey]),de+p&&(d=e+p+2),c.plotX=d,c.plotY=this.len-d,g.prototype.drawCrosshair.call(this,a,c),c.plotX=k,c.plotY=b,this.cross&&!this.cross.addedToColorAxis&&this.legendGroup&&(this.cross.addClass(\"highcharts-coloraxis-marker\").add(this.legendGroup),this.cross.addedToColorAxis=!0,this.cross.attr({fill:this.crosshair.color})))},getPlotLinePath:function(a,c,k,b,d){return r(d)?this.horiz?[\"M\",d-4,this.top-6,\"L\",\n", "d+4,this.top-6,d,this.top,\"Z\"]:[\"M\",this.left,d,\"L\",this.left-6,d+6,this.left-6,d-6,\"Z\"]:g.prototype.getPlotLinePath.call(this,a,c,k,b)},update:function(a,c){var k=this.chart,b=k.legend;n(this.series,function(a){a.isDirtyData=!0});a.dataClasses&&b.allItems&&(n(b.allItems,function(a){a.isDataClass&&a.legendGroup&&a.legendGroup.destroy()}),k.isDirtyLegend=!0);k.options[this.coll]=h(this.userOptions,a);g.prototype.update.call(this,a,c);this.legendItem&&(this.setLegendColor(),b.colorizeItem(this,!0))},\n", "remove:function(){this.legendItem&&this.chart.legend.destroyItem(this);g.prototype.remove.call(this)},getDataClassLegendSymbols:function(){var e=this,c=this.chart,k=this.legendItems,t=c.options.legend,h=t.valueDecimals,v=t.valueSuffix||\"\",f;k.length||n(this.dataClasses,function(p,t){var q=!0,x=p.from,g=p.to;f=\"\";void 0===x?f=\"\\x3c \":void 0===g&&(f=\"\\x3e \");void 0!==x&&(f+=a.numberFormat(x,h)+v);void 0!==x&&void 0!==g&&(f+=\" - \");void 0!==g&&(f+=a.numberFormat(g,h)+v);k.push(u({chart:c,name:f,options:{},\n", "drawLegendSymbol:b.drawRectangle,visible:!0,setState:d,isDataClass:!0,setVisible:function(){q=this.visible=!q;n(e.series,function(a){n(a.points,function(a){a.dataClass===t&&a.setVisible(q)})});c.legend.colorizeItem(this,q)}},p))});return k},name:\"\"}),n([\"fill\",\"stroke\"],function(b){a.Fx.prototype[b+\"Setter\"]=function(){this.elem.attr(b,f(this.start).tweenTo(f(this.end),this.pos),null,!0)}}),m(l,\"afterGetAxes\",function(){var a=this.options.colorAxis;this.colorAxis=[];a&&new q(this,a)}),m(e,\"afterGetAllItems\",\n", "function(b){var c=[],k=this.chart.colorAxis[0];k&&k.options&&k.options.showInLegend&&(k.options.dataClasses?c=k.getDataClassLegendSymbols():c.push(k),n(k.series,function(c){a.erase(b.allItems,c)}));for(k=c.length;k--;)b.allItems.unshift(c[k])}),m(e,\"afterColorizeItem\",function(a){a.visible&&a.item.legendColor&&a.item.legendSymbol.attr({fill:a.item.legendColor})}),m(e,\"afterUpdate\",function(a,c,b){this.chart.colorAxis[0]&&this.chart.colorAxis[0].update({},b)}))})(w);(function(a){var m=a.defined,g=\n", "a.each,l=a.noop,f=a.seriesTypes;a.colorPointMixin={isValid:function(){return null!==this.value&&Infinity!==this.value&&-Infinity!==this.value},setVisible:function(a){var f=this,q=a?\"show\":\"hide\";g([\"graphic\",\"dataLabel\"],function(a){if(f[a])f[a][q]()})},setState:function(f){a.Point.prototype.setState.call(this,f);this.graphic&&this.graphic.attr({zIndex:\"hover\"===f?1:0})}};a.colorSeriesMixin={pointArrayMap:[\"value\"],axisTypes:[\"xAxis\",\"yAxis\",\"colorAxis\"],optionalAxis:\"colorAxis\",trackerGroups:[\"group\",\n", "\"markerGroup\",\"dataLabelsGroup\"],getSymbol:l,parallelArrays:[\"x\",\"y\",\"value\"],colorKey:\"value\",pointAttribs:f.column.prototype.pointAttribs,translateColors:function(){var a=this,f=this.options.nullColor,l=this.colorAxis,m=this.colorKey;g(this.data,function(e){var b=e[m];if(b=e.options.color||(e.isNull?f:l&&void 0!==b?l.toColor(b,e):e.color||a.color))e.color=b})},colorAttribs:function(a){var f={};m(a.color)&&(f[this.colorProp||\"fill\"]=a.color);return f}}})(w);(function(a){function m(a){a&&(a.preventDefault&&\n", "a.preventDefault(),a.stopPropagation&&a.stopPropagation(),a.cancelBubble=!0)}function g(a){this.init(a)}var l=a.addEvent,f=a.Chart,q=a.doc,n=a.each,u=a.extend,r=a.merge,e=a.pick;g.prototype.init=function(a){this.chart=a;a.mapNavButtons=[]};g.prototype.update=function(b){var d=this.chart,h=d.options.mapNavigation,f,p,c,k,t,x=function(a){this.handler.call(d,a);m(a)},g=d.mapNavButtons;b&&(h=d.options.mapNavigation=r(d.options.mapNavigation,b));for(;g.length;)g.pop().destroy();e(h.enableButtons,h.enabled)&&\n", "!d.renderer.forExport&&a.objectEach(h.buttons,function(a,b){f=r(h.buttonOptions,a);p=f.theme;p.style=r(f.theme.style,f.style);k=(c=p.states)&&c.hover;t=c&&c.select;a=d.renderer.button(f.text,0,0,x,p,k,t,0,\"zoomIn\"===b?\"topbutton\":\"bottombutton\").addClass(\"highcharts-map-navigation\").attr({width:f.width,height:f.height,title:d.options.lang[b],padding:f.padding,zIndex:5}).add();a.handler=f.onclick;a.align(u(f,{width:a.width,height:2*a.height}),null,f.alignTo);l(a.element,\"dblclick\",m);g.push(a)});this.updateEvents(h)};\n", "g.prototype.updateEvents=function(a){var b=this.chart;e(a.enableDoubleClickZoom,a.enabled)||a.enableDoubleClickZoomTo?this.unbindDblClick=this.unbindDblClick||l(b.container,\"dblclick\",function(a){b.pointer.onContainerDblClick(a)}):this.unbindDblClick&&(this.unbindDblClick=this.unbindDblClick());e(a.enableMouseWheelZoom,a.enabled)?this.unbindMouseWheel=this.unbindMouseWheel||l(b.container,void 0===q.onmousewheel?\"DOMMouseScroll\":\"mousewheel\",function(a){b.pointer.onContainerMouseWheel(a);m(a);return!1}):\n", "this.unbindMouseWheel&&(this.unbindMouseWheel=this.unbindMouseWheel())};u(f.prototype,{fitToBox:function(a,d){n([[\"x\",\"width\"],[\"y\",\"height\"]],function(b){var e=b[0];b=b[1];a[e]+a[b]>d[e]+d[b]&&(a[b]>d[b]?(a[b]=d[b],a[e]=d[e]):a[e]=d[e]+d[b]-a[b]);a[b]>d[b]&&(a[b]=d[b]);a[e]=c.dataMax-c.dataMin&&b.y<=k.dataMin&&b.height>=k.dataMax-k.dataMin;g&&(c.fixTo=[g-c.pos,d]);p&&(k.fixTo=[p-k.pos,f]);void 0===a||h?(c.setExtremes(void 0,void 0,!1),k.setExtremes(void 0,void 0,!1)):(c.setExtremes(b.x,b.x+b.width,!1),k.setExtremes(b.y,b.y+b.height,!1));this.redraw()}});l(f,\"beforeRender\",function(){this.mapNavigation=new g(this);this.mapNavigation.update()})})(w);\n", "(function(a){var m=a.extend,g=a.pick,l=a.Pointer;a=a.wrap;m(l.prototype,{onContainerDblClick:function(a){var f=this.chart;a=this.normalize(a);f.options.mapNavigation.enableDoubleClickZoomTo?f.pointer.inClass(a.target,\"highcharts-tracker\")&&f.hoverPoint&&f.hoverPoint.zoomTo():f.isInsidePlot(a.chartX-f.plotLeft,a.chartY-f.plotTop)&&f.mapZoom(.5,f.xAxis[0].toValue(a.chartX),f.yAxis[0].toValue(a.chartY),a.chartX,a.chartY)},onContainerMouseWheel:function(a){var f=this.chart,g;a=this.normalize(a);g=a.detail||\n", "-(a.wheelDelta/120);f.isInsidePlot(a.chartX-f.plotLeft,a.chartY-f.plotTop)&&f.mapZoom(Math.pow(f.options.mapNavigation.mouseWheelSensitivity,g),f.xAxis[0].toValue(a.chartX),f.yAxis[0].toValue(a.chartY),a.chartX,a.chartY)}});a(l.prototype,\"zoomOption\",function(a){var f=this.chart.options.mapNavigation;g(f.enableTouchZoom,f.enabled)&&(this.chart.options.chart.pinchType=\"xy\");a.apply(this,[].slice.call(arguments,1))});a(l.prototype,\"pinchTranslate\",function(a,g,n,l,m,e,b){a.call(this,g,n,l,m,e,b);\"map\"===\n", "this.chart.options.chart.type&&this.hasZoom&&(a=l.scaleX>l.scaleY,this.pinchTranslateDirection(!a,g,n,l,m,e,b,a?l.scaleX:l.scaleY))})})(w);(function(a){var m=a.colorPointMixin,g=a.each,l=a.extend,f=a.isNumber,q=a.map,n=a.merge,u=a.noop,r=a.pick,e=a.isArray,b=a.Point,d=a.Series,h=a.seriesType,v=a.seriesTypes,p=a.splat;h(\"map\",\"scatter\",{allAreas:!0,animation:!1,nullColor:\"#f7f7f7\",borderColor:\"#cccccc\",borderWidth:1,marker:null,stickyTracking:!1,joinBy:\"hc-key\",dataLabels:{formatter:function(){return this.point.value},\n", "inside:!0,verticalAlign:\"middle\",crop:!1,overflow:!1,padding:0},turboThreshold:0,tooltip:{followPointer:!0,pointFormat:\"{point.name}: {point.value}\\x3cbr/\\x3e\"},states:{normal:{animation:!0},hover:{halo:null,brightness:.2},select:{color:\"#cccccc\"}}},n(a.colorSeriesMixin,{type:\"map\",getExtremesFromAll:!0,useMapGeometry:!0,forceDL:!0,searchPoint:u,directTouch:!0,preserveAspectRatio:!0,pointArrayMap:[\"value\"],getBox:function(c){var b=Number.MAX_VALUE,d=-b,e=b,p=-b,h=b,n=b,l=this.xAxis,v=this.yAxis,q;\n", "g(c||[],function(c){if(c.path){\"string\"===typeof c.path&&(c.path=a.splitPath(c.path));var k=c.path||[],t=k.length,g=!1,l=-b,x=b,v=-b,A=b,m=c.properties;if(!c._foundBox){for(;t--;)f(k[t])&&(g?(l=Math.max(l,k[t]),x=Math.min(x,k[t])):(v=Math.max(v,k[t]),A=Math.min(A,k[t])),g=!g);c._midX=x+(l-x)*r(c.middleX,m&&m[\"hc-middle-x\"],.5);c._midY=A+(v-A)*r(c.middleY,m&&m[\"hc-middle-y\"],.5);c._maxX=l;c._minX=x;c._maxY=v;c._minY=A;c.labelrank=r(c.labelrank,(l-x)*(v-A));c._foundBox=!0}d=Math.max(d,c._maxX);e=Math.min(e,\n", "c._minX);p=Math.max(p,c._maxY);h=Math.min(h,c._minY);n=Math.min(c._maxX-c._minX,c._maxY-c._minY,n);q=!0}});q&&(this.minY=Math.min(h,r(this.minY,b)),this.maxY=Math.max(p,r(this.maxY,-b)),this.minX=Math.min(e,r(this.minX,b)),this.maxX=Math.max(d,r(this.maxX,-b)),l&&void 0===l.options.minRange&&(l.minRange=Math.min(5*n,(this.maxX-this.minX)/5,l.minRange||b)),v&&void 0===v.options.minRange&&(v.minRange=Math.min(5*n,(this.maxY-this.minY)/5,v.minRange||b)))},getExtremes:function(){d.prototype.getExtremes.call(this,\n", "this.valueData);this.chart.hasRendered&&this.isDirtyData&&this.getBox(this.options.data);this.valueMin=this.dataMin;this.valueMax=this.dataMax;this.dataMin=this.minY;this.dataMax=this.maxY},translatePath:function(a){var c=!1,b=this.xAxis,d=this.yAxis,e=b.min,p=b.transA,b=b.minPixelPadding,h=d.min,g=d.transA,d=d.minPixelPadding,l,n=[];if(a)for(l=a.length;l--;)f(a[l])?(n[l]=c?(a[l]-e)*p+b:(a[l]-h)*g+d,c=!c):n[l]=a[l];return n},setData:function(c,b,h,l){var k=this.options,t=this.chart.options.chart,\n", "v=t&&t.map,x=k.mapData,m=k.joinBy,r=null===m,u=k.keys||this.pointArrayMap,z=[],w={},y=this.chart.mapTransforms;!x&&v&&(x=\"string\"===typeof v?a.maps[v]:v);r&&(m=\"_i\");m=this.joinBy=p(m);m[1]||(m[1]=m[0]);c&&g(c,function(b,d){var p=0;if(f(b))c[d]={value:b};else if(e(b)){c[d]={};!k.keys&&b.length>u.length&&\"string\"===typeof b[0]&&(c[d][\"hc-key\"]=b[0],++p);for(var t=0;th&&.99l&&(l=h=1,n=Math.round(n),m=Math.round(m)),r=this.transformGroup,p.renderer.globalAnimation?(u=r.attr(\"translateX\"),w=r.attr(\"translateY\"),\n", "E=r.attr(\"scaleX\"),F=r.attr(\"scaleY\"),r.attr({animator:0}).animate({animator:1},{step:function(a,b){r.attr({translateX:u+(n-u)*b.pos,translateY:w+(m-w)*b.pos,scaleX:E+(h-E)*b.pos,scaleY:F+(l-F)*b.pos})}})):r.attr({translateX:n,translateY:m,scaleX:h,scaleY:l}));e.element.setAttribute(\"stroke-width\",(a.options[a.pointAttrToOptions&&a.pointAttrToOptions[\"stroke-width\"]||\"borderWidth\"]||1)/(h||1));this.drawMapDataLabels()},drawMapDataLabels:function(){d.prototype.drawDataLabels.call(this);this.dataLabelsGroup&&\n", "this.dataLabelsGroup.clip(this.chart.clipRect)},render:function(){var a=this,b=d.prototype.render;a.chart.renderer.isVML&&3E3=this.minPxSize/2?(d.marker=a.extend(d.marker,{radius:e,width:2*e,height:2*e}),d.dlBox={x:d.plotX-e,y:d.plotY-e,width:2*e,height:2*e}):d.shapeArgs=d.plotY=d.dlBox=void 0},alignDataLabel:v.column.prototype.alignDataLabel,buildKDTree:u,applyZones:u},{haloPath:function(a){return b.prototype.haloPath.call(this,0===a?0:(this.marker?this.marker.radius||0:0)+a)},ttBelow:!1});l.prototype.beforePadding=function(){var b=this,c=this.len,d=this.chart,h=0,f=c,l=this.isXAxis,\n", "v=l?\"xData\":\"yData\",u=this.min,w={},A=Math.min(d.plotWidth,d.plotHeight),C=Number.MAX_VALUE,D=-Number.MAX_VALUE,z=this.max-u,B=c/z,y=[];q(this.series,function(c){var h=c.options;!c.bubblePadding||!c.visible&&d.options.chart.ignoreHiddenSeries||(b.allowZoomOutside=!0,y.push(c),l&&(q([\"minSize\",\"maxSize\"],function(a){var b=h[a],c=/%$/.test(b),b=e(b);w[a]=c?A*b/100:b}),c.minPxSize=w.minSize,c.maxPxSize=Math.max(w.maxSize,w.minSize),c=a.grep(c.zData,a.isNumber),c.length&&(C=r(h.zMin,Math.min(C,Math.max(g(c),\n", "!1===h.displayNegative?h.zThreshold:-Number.MAX_VALUE))),D=r(h.zMax,Math.max(D,m(c))))))});q(y,function(a){var c=a[v],d=c.length,e;l&&a.getRadii(C,D,a.minPxSize,a.maxPxSize);if(0k,f=b[d][1]>k,e!==f&&c<(b[d][0]-b[a][0])*(k-b[a][1])/(b[d][1]-b[a][1])+b[a][0]&&(g=!g);return g}var g=a.Chart,l=a.each,f=a.extend,q=a.format,n=a.merge,u=a.win,r=a.wrap;g.prototype.transformFromLatLon=function(e,b){if(void 0===u.proj4)return a.error(21),{x:0,y:null};e=u.proj4(b.crs,[e.lon,e.lat]);var d=b.cosAngle||b.rotation&&Math.cos(b.rotation),h=b.sinAngle||b.rotation&&\n", "Math.sin(b.rotation);e=b.rotation?[e[0]*d+e[1]*h,-e[0]*h+e[1]*d]:e;return{x:((e[0]-(b.xoffset||0))*(b.scale||1)+(b.xpan||0))*(b.jsonres||1)+(b.jsonmarginX||0),y:(((b.yoffset||0)-e[1])*(b.scale||1)+(b.ypan||0))*(b.jsonres||1)-(b.jsonmarginY||0)}};g.prototype.transformToLatLon=function(e,b){if(void 0===u.proj4)a.error(21);else{e={x:((e.x-(b.jsonmarginX||0))/(b.jsonres||1)-(b.xpan||0))/(b.scale||1)+(b.xoffset||0),y:((-e.y-(b.jsonmarginY||0))/(b.jsonres||1)+(b.ypan||0))/(b.scale||1)+(b.yoffset||0)};var d=\n", "b.cosAngle||b.rotation&&Math.cos(b.rotation),h=b.sinAngle||b.rotation&&Math.sin(b.rotation);b=u.proj4(b.crs,\"WGS84\",b.rotation?{x:e.x*d+e.y*-h,y:e.x*h+e.y*d}:e);return{lat:b.y,lon:b.x}}};g.prototype.fromPointToLatLon=function(e){var b=this.mapTransforms,d;if(b){for(d in b)if(b.hasOwnProperty(d)&&b[d].hitZone&&m({x:e.x,y:-e.y},b[d].hitZone.coordinates[0]))return this.transformToLatLon(e,b[d]);return this.transformToLatLon(e,b[\"default\"])}a.error(22)};g.prototype.fromLatLonToPoint=function(e){var b=\n", "this.mapTransforms,d,h;if(!b)return a.error(22),{x:0,y:null};for(d in b)if(b.hasOwnProperty(d)&&b[d].hitZone&&(h=this.transformFromLatLon(e,b[d]),m({x:h.x,y:-h.y},b[d].hitZone.coordinates[0])))return h;return this.transformFromLatLon(e,b[\"default\"])};a.geojson=function(a,b,d){var e=[],g=[],m=function(a){var b,c=a.length;g.push(\"M\");for(b=0;b(.*?$)/);e&&e[1]&&(e='\\x3cforeignObject x\\x3d\"0\" y\\x3d\"0\" width\\x3d\"'+b.chart.width+'\" height\\x3d\"'+b.chart.height+'\"\\x3e\\x3cbody xmlns\\x3d\"http://www.w3.org/1999/xhtml\"\\x3e'+e[1]+\"\\x3c/body\\x3e\\x3c/foreignObject\\x3e\",a=a.replace(\"\\x3c/svg\\x3e\",e+\"\\x3c/svg\\x3e\"))}a=a.replace(/zIndex=\"[^\"]+\"/g,\n", "\"\").replace(/isShadow=\"[^\"]+\"/g,\"\").replace(/symbolName=\"[^\"]+\"/g,\"\").replace(/jQuery[0-9]+=\"[^\"]+\"/g,\"\").replace(/url\\((\"|")(\\S+)(\"|")\\)/g,\"url($2)\").replace(/url\\([^#]+#/g,\"url(#\").replace(/.*?$/,\"\\x3c/svg\\x3e\").replace(/(fill|stroke)=\"rgba\\(([ 0-9]+,[ 0-9]+,[ 0-9]+),([ 0-9\\.]+)\\)\"/g,'$1\\x3d\"rgb($2)\" $1-opacity\\x3d\"$3\"').replace(/ /g,\n", "\"\\u00a0\").replace(/­/g,\"\\u00ad\");this.ieSanitizeSVG&&(a=this.ieSanitizeSVG(a));return a},getChartHTML:function(){return this.container.innerHTML},getSVG:function(a){var b,e,c,v,m,g=p(this.options,a);e=r(\"div\",null,{position:\"absolute\",top:\"-9999em\",width:this.chartWidth+\"px\",height:this.chartHeight+\"px\"},z.body);c=this.renderTo.style.width;m=this.renderTo.style.height;c=g.exporting.sourceWidth||g.chart.width||/px$/.test(c)&&parseInt(c,10)||600;m=g.exporting.sourceHeight||g.chart.height||/px$/.test(m)&&\n", "parseInt(m,10)||400;t(g.chart,{animation:!1,renderTo:e,forExport:!0,renderer:\"SVGRenderer\",width:c,height:m});g.exporting.enabled=!1;delete g.data;g.series=[];k(this.series,function(a){v=p(a.userOptions,{animation:!1,enableMouseTracking:!1,showCheckbox:!1,visible:a.visible});v.isInternal||g.series.push(v)});k(this.axes,function(a){a.userOptions.internalKey||(a.userOptions.internalKey=f.uniqueKey())});b=new f.Chart(g,this.callback);a&&k([\"xAxis\",\"yAxis\",\"series\"],function(c){var d={};a[c]&&(d[c]=a[c],\n", "b.update(d))});k(this.axes,function(a){var c=f.find(b.axes,function(b){return b.options.internalKey===a.userOptions.internalKey}),d=a.getExtremes(),e=d.userMin,d=d.userMax;c&&(void 0!==e&&e!==c.min||void 0!==d&&d!==c.max)&&c.setExtremes(e,d,!0,!1)});c=b.getChartHTML();C(this,\"getSVG\",{chartCopy:b});c=this.sanitizeSVG(c,g);g=null;b.destroy();D(e);return c},getSVGForExport:function(a,b){var e=this.options.exporting;return this.getSVG(p({chart:{borderRadius:0}},e.chartOptions,b,{exporting:{sourceWidth:a&&\n", "a.sourceWidth||e.sourceWidth,sourceHeight:a&&a.sourceHeight||e.sourceHeight}}))},exportChart:function(a,b){b=this.getSVGForExport(a,b);a=p(this.options.exporting,a);f.post(a.url,{filename:a.filename||\"chart\",type:a.type,width:a.width||0,scale:a.scale,svg:b},a.formAttributes)},print:function(){var a=this,b=a.container,e=[],c=b.parentNode,f=z.body,m=f.childNodes,g=a.options.exporting.printMaxWidth,d,n;if(!a.isPrinting){a.isPrinting=!0;a.pointer.reset(null,0);C(a,\"beforePrint\");if(n=g&&a.chartWidth>\n", "g)d=[a.options.chart.width,void 0,!1],a.setSize(g,void 0,!1);k(m,function(a,b){1===a.nodeType&&(e[b]=a.style.display,a.style.display=\"none\")});f.appendChild(b);E.focus();E.print();setTimeout(function(){c.appendChild(b);k(m,function(a,b){1===a.nodeType&&(a.style.display=e[b])});a.isPrinting=!1;n&&a.setSize.apply(a,d);C(a,\"afterPrint\")},1E3)}},contextMenu:function(a,b,e,c,v,m,g){var d=this,n=d.options.navigation,h=d.chartWidth,H=d.chartHeight,p=\"cache-\"+a,l=d[p],w=Math.max(v,m),x,y;l||(d[p]=l=r(\"div\",\n", "{className:a},{position:\"absolute\",zIndex:1E3,padding:w+\"px\",pointerEvents:\"auto\"},d.fixedDiv||d.container),x=r(\"div\",{className:\"highcharts-menu\"},null,l),u(x,t({MozBoxShadow:\"3px 3px 10px #888\",WebkitBoxShadow:\"3px 3px 10px #888\",boxShadow:\"3px 3px 10px #888\"},n.menuStyle)),y=function(){u(l,{display:\"none\"});g&&g.setState(0);d.openMenu=!1},d.exportEvents.push(q(l,\"mouseleave\",function(){l.hideTimer=setTimeout(y,500)}),q(l,\"mouseenter\",function(){f.clearTimeout(l.hideTimer)}),q(z,\"mouseup\",function(b){d.pointer.inClass(b.target,\n", "a)||y()}),q(l,\"click\",function(){d.openMenu&&y()})),k(b,function(a){\"string\"===typeof a&&(a=d.options.exporting.menuItemDefinitions[a]);if(f.isObject(a,!0)){var b;a.separator?b=r(\"hr\",null,null,x):(b=r(\"div\",{className:\"highcharts-menu-item\",onclick:function(b){b&&b.stopPropagation();y();a.onclick&&a.onclick.apply(d,arguments)},innerHTML:a.text||d.options.lang[a.textKey]},null,x),b.onmouseover=function(){u(this,n.menuItemHoverStyle)},b.onmouseout=function(){u(this,n.menuItemStyle)},u(b,t({cursor:\"pointer\"},\n", "n.menuItemStyle)));d.exportDivElements.push(b)}}),d.exportDivElements.push(x,l),d.exportMenuWidth=l.offsetWidth,d.exportMenuHeight=l.offsetHeight);b={display:\"block\"};e+d.exportMenuWidth>h?b.right=h-e-v-w+\"px\":b.left=e-w+\"px\";c+m+d.exportMenuHeight>H&&\"top\"!==g.alignOptions.verticalAlign?b.bottom=H-c-w+\"px\":b.top=c+m-w+\"px\";u(l,b);d.openMenu=!0},addButton:function(a){var b=this,e=b.renderer,c=p(b.options.navigation.buttonOptions,a),f=c.onclick,m=c.menuItems,g,d,n=c.symbolSize||12;b.btnCount||(b.btnCount=\n", "0);b.exportDivElements||(b.exportDivElements=[],b.exportSVGElements=[]);if(!1!==c.enabled){var h=c.theme,k=h.states,q=k&&k.hover,k=k&&k.select,l;delete h.states;f?l=function(a){a.stopPropagation();f.call(b,a)}:m&&(l=function(){b.contextMenu(d.menuClassName,m,d.translateX,d.translateY,d.width,d.height,d);d.setState(2)});c.text&&c.symbol?h.paddingLeft=B(h.paddingLeft,25):c.text||t(h,{width:c.width,height:c.height,padding:0});d=e.button(c.text,0,0,l,h,q,k).addClass(a.className).attr({\"stroke-linecap\":\"round\",\n", "title:B(b.options.lang[c._titleKey],\"\")});d.menuClassName=a.menuClassName||\"highcharts-menu-\"+b.btnCount++;c.symbol&&(g=e.symbol(c.symbol,c.symbolX-n/2,c.symbolY-n/2,n,n,{width:n,height:n}).addClass(\"highcharts-button-symbol\").attr({zIndex:1}).add(d),g.attr({stroke:c.symbolStroke,fill:c.symbolFill,\"stroke-width\":c.symbolStrokeWidth||1}));d.add(b.exportingGroup).align(t(c,{width:d.width,x:B(c.x,b.buttonOffset)}),!0,\"spacingBox\");b.buttonOffset+=(d.width+c.buttonSpacing)*(\"right\"===c.align?-1:1);b.exportSVGElements.push(d,\n", "g)}},destroyExport:function(a){var b=a?a.target:this;a=b.exportSVGElements;var e=b.exportDivElements,c=b.exportEvents,h;a&&(k(a,function(a,c){a&&(a.onclick=a.ontouchstart=null,h=\"cache-\"+a.menuClassName,b[h]&&delete b[h],b.exportSVGElements[c]=a.destroy())}),a.length=0);b.exportingGroup&&(b.exportingGroup.destroy(),delete b.exportingGroup);e&&(k(e,function(a,c){f.clearTimeout(a.hideTimer);I(a,\"mouseleave\");b.exportDivElements[c]=a.onmouseout=a.onmouseover=a.ontouchstart=a.onclick=null;D(a)}),e.length=\n", "0);c&&(k(c,function(a){a()}),c.length=0)}});K.menu=function(a,b,e,c){return[\"M\",a,b+2.5,\"L\",a+e,b+2.5,\"M\",a,b+c/2+.5,\"L\",a+e,b+c/2+.5,\"M\",a,b+c-1.5,\"L\",a+e,b+c-1.5]};A.prototype.renderExporting=function(){var a=this,b=a.options.exporting,e=b.buttons,c=a.isDirtyExporting||!a.exportSVGElements;a.buttonOffset=0;a.isDirtyExporting&&a.destroyExport();c&&!1!==b.enabled&&(a.exportEvents=[],a.exportingGroup=a.exportingGroup||a.renderer.g(\"exporting-group\").attr({zIndex:3}).add(),F(e,function(b){a.addButton(b)}),\n", "a.isDirtyExporting=!1);q(a,\"destroy\",a.destroyExport)};q(A,\"init\",function(){var a=this;k([\"exporting\",\"navigation\"],function(b){a[b]={update:function(e,c){a.isDirtyExporting=!0;p(!0,a.options[b],e);B(c,!0)&&a.redraw()}}})});A.prototype.callbacks.push(function(a){a.renderExporting();q(a,\"redraw\",a.renderExporting)})})(h)});\n", "\n", " /* END modules/exporting.js*/\n", "\n", " /* BEGIN highcharts-3d.js */\n", "\n", "/*\n", " Highcharts JS v6.1.1 (2018-06-27)\n", "\n", " 3D features for Highcharts JS\n", "\n", " @license: www.highcharts.com/license\n", "*/\n", "(function(A){\"object\"===typeof module&&module.exports?module.exports=A:A(Highcharts)})(function(A){(function(b){var u=b.deg2rad,z=b.pick;b.perspective3D=function(b,n,x){n=0e&&C-e>Math.PI/2+.0001?(B=B.concat(u(a,c,d,b,e,e+Math.PI/2,k,g)),B=B.concat(u(a,c,d,b,e+Math.PI/2,C,k,g))):CMath.PI/2+.0001?(B=B.concat(u(a,c,d,b,e,e-Math.PI/2,k,g)),B=B.concat(u(a,c,d,b,e-Math.PI/2,C,k,g))):\n", "[\"C\",a+d*Math.cos(e)-d*t*E*Math.sin(e)+k,c+b*Math.sin(e)+b*t*E*Math.cos(e)+g,a+d*Math.cos(C)+d*t*E*Math.sin(C)+k,c+b*Math.sin(C)-b*t*E*Math.cos(C)+g,a+d*Math.cos(C)+k,c+b*Math.sin(C)+g]}var z=Math.cos,p=Math.PI,n=Math.sin,x=b.animObject,y=b.charts,m=b.color,h=b.defined,w=b.deg2rad,v=b.each,l=b.extend,a=b.inArray,e=b.map,f=b.merge,k=b.perspective,g=b.pick,d=b.SVGElement,c=b.SVGRenderer,q=b.wrap,t=4*(Math.sqrt(2)-1)/3/(p/2);c.prototype.toLinePath=function(a,c){var d=[];v(a,function(a){d.push(\"L\",a.x,\n", "a.y)});a.length&&(d[0]=\"M\",c&&d.push(\"Z\"));return d};c.prototype.toLineSegments=function(a){var c=[],d=!0;v(a,function(a){c.push(d?\"M\":\"L\",a.x,a.y);d=!d});return c};c.prototype.face3d=function(a){var c=this,d=this.createElement(\"path\");d.vertexes=[];d.insidePlotArea=!1;d.enabled=!0;q(d,\"attr\",function(a,d){if(\"object\"===typeof d&&(h(d.enabled)||h(d.vertexes)||h(d.insidePlotArea))){this.enabled=g(d.enabled,this.enabled);this.vertexes=g(d.vertexes,this.vertexes);this.insidePlotArea=g(d.insidePlotArea,\n", "this.insidePlotArea);delete d.enabled;delete d.vertexes;delete d.insidePlotArea;var B=k(this.vertexes,y[c.chartIndex],this.insidePlotArea),e=c.toLinePath(B,!0),B=b.shapeArea(B),B=this.enabled&&0b.faces.length;)c.faces.pop().destroy();for(;c.faces.lengthb.faces.length;)c.faces.pop().destroy();for(;c.faces.lengthb.shapeArea(a)?g=[a,0]:0>b.shapeArea(d)&&(g=[d,1]);return g};v=m([3,2,1,0],[7,6,5,4]);a=v[0];l=v[1];v=m([1,6,7,0],[4,5,2,3]);t=v[0];\n", "f=v[1];v=m([1,2,5,6],[0,7,4,3]);m=v[0];v=v[1];1===v?p+=1E4*(1E3-d):v||(p+=1E4*d);p+=10*(!f||0<=n&&180>=n||360>n&&357.5Math.PI&&(a=2*Math.PI-a);return a}var d=a.x,e=a.y,b=a.start,g=a.end-.00001,k=a.r,t=a.innerR,l=a.depth,f=a.alpha,r=a.beta,q=Math.cos(b),v=Math.sin(b);a=Math.cos(g);var m=Math.sin(g),h=k*Math.cos(r),k=k*Math.cos(f),y=t*Math.cos(r),x=t*Math.cos(f),t=l*Math.sin(r),w=l*Math.sin(f),l=[\"M\",d+h*q,e+k*v],l=l.concat(u(d,e,h,k,b,g,0,0)),l=l.concat([\"L\",d+y*a,e+x*m]),l=\n", "l.concat(u(d,e,y,x,g,b,0,0)),l=l.concat([\"Z\"]),A=0-A?b:g>-A?-A:b,D=gF&&bp-r&&bc&&(m=Math.min(m,1-Math.abs((a+g)/(c+g))%1));et&&(m=0>t?Math.min(m,(f+d)/(-t+f+d)):Math.min(m,1-(f+d)/(t+d)%1));ka?-1:0},q=c([{x:e,y:g,z:d},{x:f,y:g,z:d},{x:f,y:g,z:0},{x:e,y:g,z:0}]),t=c([{x:e,y:k,z:0},{x:f,y:k,z:0},{x:f,y:k,z:d},{x:e,y:k,z:d}]),r=c([{x:e,y:k,z:0},{x:e,y:k,z:d},{x:e,y:g,z:d},{x:e,y:g,z:0}]),p=c([{x:f,y:k,z:d},{x:f,y:k,z:0},{x:f,y:g,z:0},{x:f,y:g,z:d}]),x=c([{x:e,y:g,z:0},{x:f,\n", "y:g,z:0},{x:f,y:k,z:0},{x:e,y:k,z:0}]),c=c([{x:e,y:k,z:d},{x:f,y:k,z:d},{x:f,y:g,z:d},{x:e,y:g,z:d}]),w=!1,G=!1,u=!1,z=!1;n([].concat(h.xAxis,h.yAxis,h.zAxis),function(a){a&&(a.horiz?a.opposite?G=!0:w=!0:a.opposite?z=!0:u=!0)});var A=function(a,c,d){for(var b=[\"size\",\"color\",\"visible\"],e={},g=0;gd*e[b][c]?b=g:d*e[g][c]===d*e[b][c]&&e[g].zthis.pos&&(b.isArray(this.start)||b.isArray(this.end))){var l=this.start||[1,0,0,1,0,0],a=this.end||[1,0,0,1,0,0];h=[];for(var e=0;6>e;e++)h.push(this.pos*\n", "a[e]+(1-this.pos)*l[e])}else h=this.end;this.elem.attr(this.prop,h,null,!0)}})(A);(function(b){function u(d,c,b){if(!d.chart.is3d()||\"colorAxis\"===d.coll)return c;var g=d.chart,k=y*g.options.chart.options3d.alpha,f=y*g.options.chart.options3d.beta,l=a(b&&d.options.title.position3d,d.options.labels.position3d);b=a(b&&d.options.title.skew3d,d.options.labels.skew3d);var h=g.frame3d,q=g.plotLeft,m=g.plotWidth+q,n=g.plotTop,p=g.plotHeight+n,g=!1,w=0,x=0,u={x:0,y:1,z:0};c=d.swapZ({x:c.x,y:c.y,z:0});if(d.isZAxis)if(d.opposite){if(null===\n", "h.axes.z.top)return{};x=c.y-n;c.x=h.axes.z.top.x;c.y=h.axes.z.top.y;q=h.axes.z.top.xDir;g=!h.top.frontFacing}else{if(null===h.axes.z.bottom)return{};x=c.y-p;c.x=h.axes.z.bottom.x;c.y=h.axes.z.bottom.y;q=h.axes.z.bottom.xDir;g=!h.bottom.frontFacing}else if(d.horiz)if(d.opposite){if(null===h.axes.x.top)return{};x=c.y-n;c.y=h.axes.x.top.y;c.z=h.axes.x.top.z;q=h.axes.x.top.xDir;g=!h.top.frontFacing}else{if(null===h.axes.x.bottom)return{};x=c.y-p;c.y=h.axes.x.bottom.y;c.z=h.axes.x.bottom.z;q=h.axes.x.bottom.xDir;\n", "g=!h.bottom.frontFacing}else if(d.opposite){if(null===h.axes.y.right)return{};w=c.x-m;c.x=h.axes.y.right.x;c.z=h.axes.y.right.z;q=h.axes.y.right.xDir;q={x:q.z,y:q.y,z:-q.x}}else{if(null===h.axes.y.left)return{};w=c.x-q;c.x=h.axes.y.left.x;c.z=h.axes.y.left.z;q=h.axes.y.left.xDir}\"chart\"!==l&&(\"flap\"===l?d.horiz?(f=Math.sin(k),k=Math.cos(k),d.opposite&&(f=-f),g&&(f=-f),u={x:q.z*f,y:k,z:-q.x*f}):q={x:Math.cos(f),y:0,z:Math.sin(f)}:\"ortho\"===l?d.horiz?(u=Math.cos(k),l=Math.sin(f)*u,k=-Math.sin(k),f=\n", "-u*Math.cos(f),u={x:q.y*f-q.z*k,y:q.z*l-q.x*f,z:q.x*k-q.y*l},k=1/Math.sqrt(u.x*u.x+u.y*u.y+u.z*u.z),g&&(k=-k),u={x:k*u.x,y:k*u.y,z:k*u.z}):q={x:Math.cos(f),y:0,z:Math.sin(f)}:d.horiz?u={x:Math.sin(f)*Math.sin(k),y:Math.cos(k),z:-Math.cos(f)*Math.sin(k)}:q={x:Math.cos(f),y:0,z:Math.sin(f)});c.x+=w*q.x+x*u.x;c.y+=w*q.y+x*u.y;c.z+=w*q.z+x*u.z;g=v([c],d.chart)[0];b&&(0>e(v([c,{x:c.x+q.x,y:c.y+q.y,z:c.z+q.z},{x:c.x+u.x,y:c.y+u.y,z:c.z+u.z}],d.chart))&&(q={x:-q.x,y:-q.y,z:-q.z}),d=v([{x:c.x,y:c.y,z:c.z},\n", "{x:c.x+q.x,y:c.y+q.y,z:c.z+q.z},{x:c.x+u.x,y:c.y+u.y,z:c.z+u.z}],d.chart),g.matrix=[d[1].x-d[0].x,d[1].y-d[0].y,d[2].x-d[0].x,d[2].y-d[0].y,g.x,g.y],g.matrix[4]-=g.x*g.matrix[0]+g.y*g.matrix[2],g.matrix[5]-=g.x*g.matrix[1]+g.y*g.matrix[3]);return g}var z,p=b.addEvent,n=b.Axis,x=b.Chart,y=b.deg2rad,m=b.each,h=b.extend,w=b.merge,v=b.perspective,l=b.perspective3D,a=b.pick,e=b.shapeArea,f=b.splat,k=b.Tick,g=b.wrap;w(!0,n.prototype.defaultOptions,{labels:{position3d:\"offset\",skew3d:!1},title:{position3d:null,\n", "skew3d:null}});p(n,\"afterSetOptions\",function(){var d;this.chart.is3d&&this.chart.is3d()&&\"colorAxis\"!==this.coll&&(d=this.options,d.tickWidth=a(d.tickWidth,0),d.gridLineWidth=a(d.gridLineWidth,1))});g(n.prototype,\"getPlotLinePath\",function(a){var c=a.apply(this,[].slice.call(arguments,1));if(!this.chart.is3d()||\"colorAxis\"===this.coll||null===c)return c;var d=this.chart,b=d.options.chart.options3d,b=this.isZAxis?d.plotWidth:b.depth,d=d.frame3d,c=[this.swapZ({x:c[1],y:c[2],z:0}),this.swapZ({x:c[1],\n", "y:c[2],z:b}),this.swapZ({x:c[4],y:c[5],z:0}),this.swapZ({x:c[4],y:c[5],z:b})],b=[];this.horiz?(this.isZAxis?(d.left.visible&&b.push(c[0],c[2]),d.right.visible&&b.push(c[1],c[3])):(d.front.visible&&b.push(c[0],c[2]),d.back.visible&&b.push(c[1],c[3])),d.top.visible&&b.push(c[0],c[1]),d.bottom.visible&&b.push(c[2],c[3])):(d.front.visible&&b.push(c[0],c[2]),d.back.visible&&b.push(c[1],c[3]),d.left.visible&&b.push(c[0],c[1]),d.right.visible&&b.push(c[2],c[3]));b=v(b,this.chart,!1);return this.chart.renderer.toLineSegments(b)});\n", "g(n.prototype,\"getLinePath\",function(a){return this.chart.is3d()&&\"colorAxis\"!==this.coll?[]:a.apply(this,[].slice.call(arguments,1))});g(n.prototype,\"getPlotBandPath\",function(a){if(!this.chart.is3d()||\"colorAxis\"===this.coll)return a.apply(this,[].slice.call(arguments,1));var c=arguments,d=c[2],b=[],c=this.getPlotLinePath(c[1]),d=this.getPlotLinePath(d);if(c&&d)for(var e=0;e=u.min&&h<=u.max:!1):m.plotZ=0,m.axisXpos=m.plotX,m.axisYpos=m.plotY,m.axisZpos=m.plotZ,y.push({x:m.plotX,y:m.plotY,z:m.plotZ});b=z(y,b,!0);for(w=0;wh&&(c[a[1]]+=c[a[0]]+g,c[a[0]]=-g,h=0);h+c[a[1]]>b[a[0]+\"Axis\"].len&&0!==c[a[1]]&&(c[a[1]]=b[a[0]+\"Axis\"].len-c[a[0]]);if(0!==c[a[1]]&&(c[a[0]]>=b[a[0]+\"Axis\"].len||c[a[0]]+c[a[1]]<=g)){for(var e in c)c[e]=0;d.outside3dPlot=!0}});d.shapeType=\"cuboid\";c.z=k;c.depth=f;c.insidePlotArea=!0;e=n([{x:e[0],y:e[1],z:k}],a,!0)[0];d.tooltipPos=[e.x,e.y]}});b.z=k};v(m.column.prototype,\"animate\",function(b){if(this.chart.is3d()){var a=\n", "arguments[1],e=this.yAxis,f=this,k=this.yAxis.reversed;w&&(a?p(f.data,function(a){null!==a.y&&(a.height=a.shapeArgs.height,a.shapey=a.shapeArgs.y,a.shapeArgs.height=1,k||(a.shapeArgs.y=a.stackY?a.plotY+e.translate(a.stackY):a.plotY+(a.negative?-a.height:a.height)))}):(p(f.data,function(a){null!==a.y&&(a.shapeArgs.height=a.height,a.shapeArgs.y=a.shapey,a.graphic&&a.graphic.animate(a.shapeArgs,f.options.animation))}),this.drawDataLabels(),f.animate=null))}else b.apply(this,[].slice.call(arguments,1))});\n", "v(m.column.prototype,\"plotGroup\",function(b,a,e,f,k,g){this.chart.is3d()&&g&&!this[a]&&(this.chart.columnGroup||(this.chart.columnGroup=this.chart.renderer.g(\"columnGroup\").add(g)),this[a]=this.chart.columnGroup,this.chart.columnGroup.attr(this.getPlotBox()),this[a].survive=!0);return b.apply(this,Array.prototype.slice.call(arguments,1))});v(m.column.prototype,\"setVisible\",function(b,a){var e=this,f;e.chart.is3d()&&p(e.data,function(b){f=(b.visible=b.options.visible=a=void 0===a?!b.visible:a)?\"visible\":\n", "\"hidden\";e.options.data[h(b,e.data)]=b.options;b.graphic&&b.graphic.attr({visibility:f})});b.apply(this,Array.prototype.slice.call(arguments,1))});m.column.prototype.handle3dGrouping=!0;z(y,\"afterInit\",function(){if(this.chart.is3d()&&this.handle3dGrouping){var b=this.options,a=b.grouping,e=b.stacking,f=x(this.yAxis.options.reversedStacks,!0),k=0;if(void 0===a||a){a=this.chart.retrieveStacks(e);k=b.stack||0;for(e=0;eC||C>m?(++C,n=\"\"):(!isNaN(parseFloat(n))&&isFinite(n)?(n=parseFloat(n),f(\"number\")):isNaN(Date.parse(n))?f(\"string\"):(n=n.replace(/\\//g,\"-\"),f(\"date\")),h.lengtht[\",\"]?\";\":\",\";d.decimalPoint||(d.decimalPoint=b>c?\".\":\",\",e.decimalRegex=new RegExp(\"^(-?[0-9]+)\"+d.decimalPoint+\"([0-9]+)$\"));return f}function f(a,b){var c,f,g=0,l=!1,h=[],n=[],k;if(!b||b>a.length)b=a.length;for(;gc[k]?\"YY\":\"YYYY\":12=c[k]?(f[k]=\"dd\",l=!0):f[k].length||(f[k]=\"mm\")));if(l){for(k=0;ka)a=0;if(!g||g>=l.length)g=l.length-1;d.itemDelimiter?\n", "q=d.itemDelimiter:(q=null,q=c(l));for(var G=0,n=a;n<=g;n++)\"#\"===l[n][0]?G++:b(l[n],n-a-G);d.columnTypes&&0!==d.columnTypes.length||!v.length||!v[0].length||\"date\"!==v[0][1]||d.dateFormat||(d.dateFormat=f(h[0]));this.dataFound()}return h},parseTable:function(){var a=this.options,b=a.table,c=this.columns,f=a.startRow||0,e=a.endRow||Number.MAX_VALUE,d=a.startColumn||0,l=a.endColumn||Number.MAX_VALUE;b&&(\"string\"===typeof b&&(b=p.getElementById(b)),u(b.getElementsByTagName(\"tr\"),function(a,b){b>=f&&\n", "b<=e&&u(a.children,function(a,e){(\"TD\"===a.tagName||\"TH\"===a.tagName)&&e>=d&&e<=l&&(c[e-d]||(c[e-d]=[]),c[e-d][b-f]=a.innerHTML)})}),this.dataFound());return c},fetchLiveData:function(){function a(w){function g(g,l,q){function n(){e&&b.liveDataURL===g&&(b.liveDataTimeout=setTimeout(a,d))}if(!g||0!==g.indexOf(\"http\"))return g&&c.error&&c.error(\"Invalid URL\"),!1;w&&(clearTimeout(b.liveDataTimeout),b.liveDataURL=g);h.ajax({url:g,dataType:q||\"json\",success:function(a){b&&b.series&&l(a);n()},error:function(a,\n", "b){3>++f&&n();return c.error&&c.error(b,a)}});return!0}g(l.csvURL,function(a){b.update({data:{csv:a}})},\"text\")||g(l.rowsURL,function(a){b.update({data:{rows:a}})})||g(l.columnsURL,function(a){b.update({data:{columns:a}})})}var b=this.chart,c=this.options,f=0,e=c.enablePolling,d=1E3*(c.dataRefreshRate||2),l=A(c);if(!c||!c.csvURL&&!c.rowsURL&&!c.columnsURL)return!1;1E3>d&&(d=1E3);delete c.csvURL;delete c.rowsURL;delete c.columnsURL;a(!0);return c&&(c.csvURL||c.rowsURL||c.columnsURL)},parseGoogleSpreadsheet:function(){function a(b){var e=\n", "[\"https://spreadsheets.google.com/feeds/cells\",f,d,\"public/values?alt\\x3djson\"].join(\"/\");h.ajax({url:e,dataType:\"json\",success:function(d){b(d);c.enablePolling&&setTimeout(function(){a(b)},c.dataRefreshRate)},error:function(a,b){return c.error&&c.error(b,a)}})}var b=this,c=this.options,f=c.googleSpreadsheetKey,e=this.chart,d=c.googleSpreadsheetWorksheet||1,l=c.startRow||0,w=c.endRow||Number.MAX_VALUE,g=c.startColumn||0,m=c.endColumn||Number.MAX_VALUE,p=1E3*(c.dataRefreshRate||2);4E3>p&&(p=4E3);f&&\n", "(delete c.googleSpreadsheetKey,a(function(a){var c=[];a=a.feed.entry;var d,f=(a||[]).length,h=0,p,q,r;if(!a||0===a.length)return!1;for(r=0;r=g&&r<=m&&(c[r-g]=[]);for(r=0;r=g&&p<=m&&h>=l&&h<=w&&(q=d.gs$cell||d.content,d=null,q.numericValue?d=0<=q.$t.indexOf(\"/\")||0<=q.$t.indexOf(\"-\")?q.$t:0a[e+1])):(h&&h.length&&(q=this.parseDate(d)),p&&F(q)&&\"float\"!==\n", "u?(n[e]=d,a[e]=q,a.isDatetime=!0,void 0!==a[e+1]&&(d=q>a[e+1],d!==t&&void 0!==t&&(this.alternativeFormat?(this.dateFormat=this.alternativeFormat,e=a.length,this.alternativeFormat=this.dateFormats[this.dateFormat].alternative):a.unsorted=!0),t=d)):(a[e]=\"\"===h?null:h,0!==e&&(a.isDatetime||a.isNumeric)&&(a.mixed=!0)));p&&a.mixed&&(f[b]=c[b]);if(p&&t&&this.options.sort)for(b=0;b(new Date).getFullYear()-2E3?b+1900:b+2E3;return Date.UTC(b,\n", "a[2]-1,+a[1])},alternative:\"mm/dd/YY\"},\"mm/dd/YY\":{regex:/^([0-9]{1,2})[\\-\\/\\.]([0-9]{1,2})[\\-\\/\\.]([0-9]{2})$/,parser:function(a){return Date.UTC(+a[3]+2E3,a[1]-1,+a[2])}}},parseDate:function(a){var b=this.options.parseDate,c,f,e=this.options.dateFormat||this.dateFormat,d;if(b)c=b(a);else if(\"string\"===typeof a){if(e)(b=this.dateFormats[e])||(b=this.dateFormats[\"YYYY/mm/dd\"]),(d=a.match(b.regex))&&(c=b.parser(d));else for(f in this.dateFormats)if(b=this.dateFormats[f],d=a.match(b.regex)){this.dateFormat=\n", "f;this.alternativeFormat=b.alternative;c=b.parser(d);break}d||(d=Date.parse(a),\"object\"===typeof d&&null!==d&&d.getTime?c=d.getTime()-6E4*d.getTimezoneOffset():F(d)&&(c=d-6E4*(new Date(d)).getTimezoneOffset()))}return c},rowsToColumns:function(a){var b,c,f,e,d;if(a)for(d=[],c=a.length,b=0;bparseInt(D.split(\\\"Firefox/\\\")[1],\\n10);return a.Highcharts?a.Highcharts.error(16,!0):{product:\\\"Highstock\\\",version:\\\"6.1.1\\\",deg2rad:2*Math.PI/360,doc:C,hasBidiBug:r,hasTouch:C&&void 0!==C.documentElement.ontouchstart,isMS:q,isWebKit:-1!==D.indexOf(\\\"AppleWebKit\\\"),isFirefox:n,isChrome:f,isSafari:!f&&-1!==D.indexOf(\\\"Safari\\\"),isTouchDevice:/(Mobile|Android|Windows Phone)/.test(D),SVG_NS:\\\"http://www.w3.org/2000/svg\\\",chartCount:0,seriesTypes:{},symbolSizes:{},svg:E,win:a,marginNames:[\\\"plotTop\\\",\\\"marginRight\\\",\\\"marginBottom\\\",\\\"plotLeft\\\"],noop:function(){},\\ncharts:[]}}();(function(a){a.timers=[];var C=a.charts,D=a.doc,E=a.win;a.error=function(q,n){q=a.isNumber(q)?\\\"Highcharts error #\\\"+q+\\\": www.highcharts.com/errors/\\\"+q:q;if(n)throw Error(q);E.console&&console.log(q)};a.Fx=function(a,n,f){this.options=n;this.elem=a;this.prop=f};a.Fx.prototype={dSetter:function(){var a=this.paths[0],n=this.paths[1],f=[],r=this.now,A=a.length,w;if(1===r)f=this.toD;else if(A===n.length&&1>r)for(;A--;)w=parseFloat(a[A]),f[A]=isNaN(w)?n[A]:r*parseFloat(n[A]-w)+w;else f=n;this.elem.attr(\\\"d\\\",\\nf,null,!0)},update:function(){var a=this.elem,n=this.prop,f=this.now,r=this.options.step;if(this[n+\\\"Setter\\\"])this[n+\\\"Setter\\\"]();else a.attr?a.element&&a.attr(n,f,null,!0):a.style[n]=f+this.unit;r&&r.call(a,f,this)},run:function(q,n,f){var r=this,A=r.options,w=function(a){return w.stopped?!1:r.step(a)},y=E.requestAnimationFrame||function(a){setTimeout(a,13)},p=function(){for(var c=0;c=y+this.startTime?(this.now=this.end,this.pos=1,this.update(),f=p[this.prop]=!0,a.objectEach(p,function(a){!0!==\\na&&(f=!1)}),f&&w&&w.call(A),q=!1):(this.pos=r.easing((n-this.startTime)/y),this.now=this.start+(this.end-this.start)*this.pos,this.update(),q=!0);return q},initPath:function(q,n,f){function r(a){var b,c;for(e=a.length;e--;)b=\\\"M\\\"===a[e]||\\\"L\\\"===a[e],c=/[a-zA-Z]/.test(a[e+3]),b&&c&&a.splice(e+1,0,a[e+1],a[e+2],a[e+1],a[e+2])}function A(a,b){for(;a.lengtha&&-Infinity=f&&(n=[1/f])));for(r=0;r=q||\\n!A&&w<=(n[r]+(n[r+1]||n[r]))/2);r++);return y=a.correctFloat(y*f,-Math.round(Math.log(.001)/Math.LN10))};a.stableSort=function(a,n){var f=a.length,r,A;for(A=0;Af&&(f=a[n]);return f};a.destroyObjectProperties=function(q,n){a.objectEach(q,function(a,\\nr){a&&a!==n&&a.destroy&&a.destroy();delete q[r]})};a.discardElement=function(q){var n=a.garbageBin;n||(n=a.createElement(\\\"div\\\"));q&&n.appendChild(q);n.innerHTML=\\\"\\\"};a.correctFloat=function(a,n){return parseFloat(a.toPrecision(n||14))};a.setAnimation=function(q,n){n.renderer.globalAnimation=a.pick(q,n.options.chart.animation,!0)};a.animObject=function(q){return a.isObject(q)?a.merge(q):{duration:q?500:0}};a.timeUnits={millisecond:1,second:1E3,minute:6E4,hour:36E5,day:864E5,week:6048E5,month:24192E5,\\nyear:314496E5};a.numberFormat=function(q,n,f,r){q=+q||0;n=+n;var A=a.defaultOptions.lang,w=(q.toString().split(\\\".\\\")[1]||\\\"\\\").split(\\\"e\\\")[0].length,y,p,c=q.toString().split(\\\"e\\\");-1===n?n=Math.min(w,20):a.isNumber(n)?n&&c[1]&&0>c[1]&&(y=n+ +c[1],0<=y?(c[0]=(+c[0]).toExponential(y).split(\\\"e\\\")[0],n=y):(c[0]=c[0].split(\\\".\\\")[0]||0,q=20>n?(c[0]*Math.pow(10,c[1])).toFixed(n):0,c[1]=0)):n=2;p=(Math.abs(c[1]?c[0]:q)+Math.pow(10,-Math.max(n,w)-1)).toFixed(n);w=String(a.pInt(p));y=3q?\\\"-\\\":\\\"\\\")+(y?w.substr(0,y)+r:\\\"\\\");q+=w.substr(y).replace(/(\\\\d{3})(?=\\\\d)/g,\\\"$1\\\"+r);n&&(q+=f+p.slice(-n));c[1]&&0!==+q&&(q+=\\\"e\\\"+c[1]);return q};Math.easeInOutSine=function(a){return-.5*(Math.cos(Math.PI*a)-1)};a.getStyle=function(q,n,f){if(\\\"width\\\"===n)return Math.max(0,Math.min(q.offsetWidth,q.scrollWidth)-a.getStyle(q,\\\"padding-left\\\")-a.getStyle(q,\\\"padding-right\\\"));if(\\\"height\\\"===n)return Math.max(0,Math.min(q.offsetHeight,q.scrollHeight)-a.getStyle(q,\\\"padding-top\\\")-\\na.getStyle(q,\\\"padding-bottom\\\"));E.getComputedStyle||a.error(27,!0);if(q=E.getComputedStyle(q,void 0))q=q.getPropertyValue(n),a.pick(f,\\\"opacity\\\"!==n)&&(q=a.pInt(q));return q};a.inArray=function(q,n,f){return(a.indexOfPolyfill||Array.prototype.indexOf).call(n,q,f)};a.grep=function(q,n){return(a.filterPolyfill||Array.prototype.filter).call(q,n)};a.find=Array.prototype.find?function(a,n){return a.find(n)}:function(a,n){var f,r=a.length;for(f=0;f>16,(f&65280)>>8,f&255,1]:4===n&&(A=[(f&3840)>>4|(f&3840)>>8,(f&240)>>4|f&240,(f&15)<<4|f&15,1])),!A)for(w=this.parsers.length;w--&&!A;)y=this.parsers[w],(n=y.regex.exec(f))&&(A=y.parse(n));this.rgba=A||[]},get:function(a){var f=this.input,n=this.rgba,w;this.stops?(w=q(f),w.stops=[].concat(w.stops),C(this.stops,function(f,p){w.stops[p]=[w.stops[p][0],f.get(a)]})):w=n&&D(n[0])?\\\"rgb\\\"===a||!a&&1===n[3]?\\\"rgb(\\\"+n[0]+\\\",\\\"+n[1]+\\\",\\\"+n[2]+\\\")\\\":\\\"a\\\"===a?n[3]:\\\"rgba(\\\"+n.join(\\\",\\\")+\\\")\\\":f;\\nreturn w},brighten:function(a){var f,A=this.rgba;if(this.stops)C(this.stops,function(f){f.brighten(a)});else if(D(a)&&0!==a)for(f=0;3>f;f++)A[f]+=n(255*a),0>A[f]&&(A[f]=0),255x.width)x={width:0,height:0}}else x=this.htmlGetBBox();b.isSVG&&(a=x.width,b=x.height,J&&\\\"11px\\\"===J.fontSize&&17===Math.round(b)&&(x.height=b=14),g&&(x.width=Math.abs(b*Math.sin(e))+Math.abs(a*Math.cos(e)),x.height=Math.abs(b*Math.cos(e))+Math.abs(a*Math.sin(e))));if(F&&0]*>/g,\\\"\\\").replace(/</g,\\\"\\\\x3c\\\").replace(/>/g,\\\"\\\\x3e\\\")))},textSetter:function(a){a!==this.textStr&&(delete this.bBox,this.textStr=a,this.added&&this.renderer.buildText(this))},fillSetter:function(a,g,x){\\\"string\\\"===typeof a?x.setAttribute(g,a):a&&this.complexColor(a,g,x)},visibilitySetter:function(a,g,x){\\\"inherit\\\"===a?x.removeAttribute(g):this[g]!==a&&x.setAttribute(g,\\na);this[g]=a},zIndexSetter:function(a,x){var b=this.renderer,c=this.parentGroup,e=(c||b).element||b.box,h,k=this.element,l,M,b=e===b.box;h=this.added;var B;y(a)?(k.setAttribute(\\\"data-z-index\\\",a),a=+a,this[x]===a&&(h=!1)):y(this[x])&&k.removeAttribute(\\\"data-z-index\\\");this[x]=a;if(h){(a=this.zIndex)&&c&&(c.handleZ=!0);x=e.childNodes;for(B=x.length-1;0<=B&&!l;B--)if(c=x[B],h=c.getAttribute(\\\"data-z-index\\\"),M=!y(h),c!==k)if(0>a&&M&&!b&&!B)e.insertBefore(k,x[B]),l=!0;else if(g(h)<=a||M&&(!y(a)||0<=a))e.insertBefore(k,\\nx[B+1]||null),l=!0;l||(e.insertBefore(k,x[b?3:0]||null),l=!0)}return l},_defaultSetter:function(a,g,x){x.setAttribute(g,a)}});C.prototype.yGetter=C.prototype.xGetter;C.prototype.translateXSetter=C.prototype.translateYSetter=C.prototype.rotationSetter=C.prototype.verticalAlignSetter=C.prototype.rotationOriginXSetter=C.prototype.rotationOriginYSetter=C.prototype.scaleXSetter=C.prototype.scaleYSetter=C.prototype.matrixSetter=function(a,g){this[g]=a;this.doTransform=!0};C.prototype[\\\"stroke-widthSetter\\\"]=\\nC.prototype.strokeSetter=function(a,g,x){this[g]=a;this.stroke&&this[\\\"stroke-width\\\"]?(C.prototype.fillSetter.call(this,this.stroke,\\\"stroke\\\",x),x.setAttribute(\\\"stroke-width\\\",this[\\\"stroke-width\\\"]),this.hasStroke=!0):\\\"stroke-width\\\"===g&&0===a&&this.hasStroke&&(x.removeAttribute(\\\"stroke\\\"),this.hasStroke=!1)};D=a.SVGRenderer=function(){this.init.apply(this,arguments)};k(D.prototype,{Element:C,SVG_NS:M,init:function(a,g,x,b,c,e){var h;b=this.createElement(\\\"svg\\\").attr({version:\\\"1.1\\\",\\\"class\\\":\\\"highcharts-root\\\"}).css(this.getStyle(b));\\nh=b.element;a.appendChild(h);n(a,\\\"dir\\\",\\\"ltr\\\");-1===a.innerHTML.indexOf(\\\"xmlns\\\")&&n(h,\\\"xmlns\\\",this.SVG_NS);this.isSVG=!0;this.box=h;this.boxWrapper=b;this.alignedObjects=[];this.url=(z||l)&&d.getElementsByTagName(\\\"base\\\").length?P.location.href.replace(/#.*?$/,\\\"\\\").replace(/<[^>]*>/g,\\\"\\\").replace(/([\\\\('\\\\)])/g,\\\"\\\\\\\\$1\\\").replace(/ /g,\\\"%20\\\"):\\\"\\\";this.createElement(\\\"desc\\\").add().element.appendChild(d.createTextNode(\\\"Created with Highstock 6.1.1\\\"));this.defs=this.createElement(\\\"defs\\\").add();this.allowHTML=e;\\nthis.forExport=c;this.gradients={};this.cache={};this.cacheKeys=[];this.imgCount=0;this.setSize(g,x,!1);var k;z&&a.getBoundingClientRect&&(g=function(){A(a,{left:0,top:0});k=a.getBoundingClientRect();A(a,{left:Math.ceil(k.left)-k.left+\\\"px\\\",top:Math.ceil(k.top)-k.top+\\\"px\\\"})},g(),this.unSubPixelFix=E(P,\\\"resize\\\",g))},getStyle:function(a){return this.style=k({fontFamily:'\\\"Lucida Grande\\\", \\\"Lucida Sans Unicode\\\", Arial, Helvetica, sans-serif',fontSize:\\\"12px\\\"},a)},setStyle:function(a){this.boxWrapper.css(this.getStyle(a))},\\nisHidden:function(){return!this.boxWrapper.getBBox().width},destroy:function(){var a=this.defs;this.box=null;this.boxWrapper=this.boxWrapper.destroy();c(this.gradients||{});this.gradients=null;a&&(this.defs=a.destroy());this.unSubPixelFix&&this.unSubPixelFix();return this.alignedObjects=null},createElement:function(a){var g=new this.Element;g.init(this,a);return g},draw:K,getRadialAttr:function(a,g){return{cx:a[0]-a[2]/2+g.cx*a[2],cy:a[1]-a[2]/2+g.cy*a[2],r:g.r*a[2]}},getSpanWidth:function(a){return a.getBBox(!0).width},\\napplyEllipsis:function(a,g,x,b){var c=a.rotation,e=x,h,k=0,l=x.length,M=function(a){g.removeChild(g.firstChild);a&&g.appendChild(d.createTextNode(a))},B;a.rotation=0;e=this.getSpanWidth(a,g);if(B=e>b){for(;k<=l;)h=Math.ceil((k+l)/2),e=x.substring(0,h)+\\\"\\\\u2026\\\",M(e),e=this.getSpanWidth(a,g),k===l?k=l+1:e>b?l=h-1:k=h;0===l&&M(\\\"\\\")}a.rotation=c;return B},escapes:{\\\"\\\\x26\\\":\\\"\\\\x26amp;\\\",\\\"\\\\x3c\\\":\\\"\\\\x26lt;\\\",\\\"\\\\x3e\\\":\\\"\\\\x26gt;\\\",\\\"'\\\":\\\"\\\\x26#39;\\\",'\\\"':\\\"\\\\x26quot;\\\"},buildText:function(a){var x=a.element,b=this,c=b.forExport,\\nh=B(a.textStr,\\\"\\\").toString(),k=-1!==h.indexOf(\\\"\\\\x3c\\\"),l=x.childNodes,v,z=n(x,\\\"x\\\"),t=a.styles,N=a.textWidth,J=t&&t.lineHeight,K=t&&t.textOutline,p=t&&\\\"ellipsis\\\"===t.textOverflow,G=t&&\\\"nowrap\\\"===t.whiteSpace,H=t&&t.fontSize,I,Q,f=l.length,t=N&&!a.added&&this.box,w=function(a){var c;c=/(px|em)$/.test(a&&a.style.fontSize)?a.style.fontSize:H||b.style.fontSize||12;return J?g(J):b.fontMetrics(c,a.getAttribute(\\\"style\\\")?a:x).h},y=function(a,g){F(b.escapes,function(x,b){g&&-1!==u(x,g)||(a=a.toString().replace(new RegExp(x,\\n\\\"g\\\"),b))});return a},P=function(a,g){var x;x=a.indexOf(\\\"\\\\x3c\\\");a=a.substring(x,a.indexOf(\\\"\\\\x3e\\\")-x);x=a.indexOf(g+\\\"\\\\x3d\\\");if(-1!==x&&(x=x+g.length+1,g=a.charAt(x),'\\\"'===g||\\\"'\\\"===g))return a=a.substring(x+1),a.substring(0,a.indexOf(g))};I=[h,p,G,J,K,H,N].join();if(I!==a.textCache){for(a.textCache=I;f--;)x.removeChild(l[f]);k||K||p||N||-1!==h.indexOf(\\\" \\\")?(t&&t.appendChild(x),h=k?h.replace(/<(b|strong)>/g,'\\\\x3cspan style\\\\x3d\\\"font-weight:bold\\\"\\\\x3e').replace(/<(i|em)>/g,'\\\\x3cspan style\\\\x3d\\\"font-style:italic\\\"\\\\x3e').replace(//g,\\\"\\\\x3c/span\\\\x3e\\\").split(//g):[h],h=e(h,function(a){return\\\"\\\"!==a}),m(h,function(g,e){var h,k=0;g=g.replace(/^\\\\s+|\\\\s+$/g,\\\"\\\").replace(//g,\\\"\\\\x3c/span\\\\x3e|||\\\");h=g.split(\\\"|||\\\");m(h,function(g){if(\\\"\\\"!==g||1===h.length){var l={},B=d.createElementNS(b.SVG_NS,\\\"tspan\\\"),u,F;(u=P(g,\\\"class\\\"))&&n(B,\\\"class\\\",u);if(u=P(g,\\\"style\\\"))u=u.replace(/(;| |^)color([ :])/,\\\"$1fill$2\\\"),n(B,\\\"style\\\",u);(F=P(g,\\\"href\\\"))&&!c&&(n(B,\\\"onclick\\\",\\n'location.href\\\\x3d\\\"'+F+'\\\"'),n(B,\\\"class\\\",\\\"highcharts-anchor\\\"),A(B,{cursor:\\\"pointer\\\"}));g=y(g.replace(/<[a-zA-Z\\\\/](.|\\\\n)*?>/g,\\\"\\\")||\\\" \\\");if(\\\" \\\"!==g){B.appendChild(d.createTextNode(g));k?l.dx=0:e&&null!==z&&(l.x=z);n(B,l);x.appendChild(B);!k&&Q&&(!O&&c&&A(B,{display:\\\"block\\\"}),n(B,\\\"dy\\\",w(B)));if(N){l=g.replace(/([^\\\\^])-/g,\\\"$1- \\\").split(\\\" \\\");F=1N,void 0===v&&(v=g),g&&1!==l.length?(B.removeChild(B.firstChild),t.unshift(l.pop())):(l=t,t=[],l.length&&!G&&(B=d.createElementNS(M,\\\"tspan\\\"),n(B,{dy:J,x:z}),u&&n(B,\\\"style\\\",u),x.appendChild(B)),m>N&&(N=m+1)),l.length&&B.appendChild(d.createTextNode(l.join(\\\" \\\").replace(/- /g,\\\"-\\\")));a.rotation=K}k++}}});Q=Q||x.childNodes.length}),p&&v&&a.attr(\\\"title\\\",y(a.textStr,[\\\"\\\\x26lt;\\\",\\\"\\\\x26gt;\\\"])),t&&t.removeChild(x),K&&a.applyTextOutline&&a.applyTextOutline(K)):x.appendChild(d.createTextNode(y(h)))}},getContrast:function(a){a=\\nr(a).rgba;return 510Math.abs(c.end-c.start-2*Math.PI));var M=Math.cos(e),u=Math.sin(e),F=Math.cos(k),k=Math.sin(k);c=.001>c.end-e-Math.PI?0:1;h=[\\\"M\\\",a+h*M,g+l*u,\\\"A\\\",h,l,0,c,1,a+h*F,g+l*k];y(x)&&h.push(b?\\\"M\\\":\\\"L\\\",a+x*F,g+x*k,\\\"A\\\",x,x,0,c,0,a+x*M,g+x*u);h.push(b?\\\"\\\":\\\"Z\\\");return h},callout:function(a,\\ng,x,b,c){var e=Math.min(c&&c.r||0,x,b),h=e+6,l=c&&c.anchorX;c=c&&c.anchorY;var k;k=[\\\"M\\\",a+e,g,\\\"L\\\",a+x-e,g,\\\"C\\\",a+x,g,a+x,g,a+x,g+e,\\\"L\\\",a+x,g+b-e,\\\"C\\\",a+x,g+b,a+x,g+b,a+x-e,g+b,\\\"L\\\",a+e,g+b,\\\"C\\\",a,g+b,a,g+b,a,g+b-e,\\\"L\\\",a,g+e,\\\"C\\\",a,g,a,g,a+e,g];l&&l>x?c>g+h&&cl?c>g+h&&cb&&l>a+h&&lc&&l>a+h&&la?a+3:Math.round(1.2*a);return{h:x,b:Math.round(.8*x),f:a}},rotCorr:function(a,g,x){var b=a;g&&x&&(b=Math.max(b*Math.cos(g*p),\\n4));return{x:-a/3*Math.sin(g*p),y:b}},label:function(g,b,c,e,h,l,M,B,u){var F=this,d=F.g(\\\"button\\\"!==u&&\\\"label\\\"),t=d.text=F.text(\\\"\\\",0,0,M).attr({zIndex:1}),v,z,N=0,O=3,K=0,p,G,I,Q,f,n={},w,J,P=/^url\\\\((.*?)\\\\)$/.test(e),A=P,r,q,T,R;u&&d.addClass(\\\"highcharts-\\\"+u);A=P;r=function(){return(w||0)%2/2};q=function(){var a=t.element.style,g={};z=(void 0===p||void 0===G||f)&&y(t.textStr)&&t.getBBox();d.width=(p||z.width||0)+2*O+K;d.height=(G||z.height||0)+2*O;J=O+F.fontMetrics(a&&a.fontSize,t).b;A&&(v||(d.box=\\nv=F.symbols[e]||P?F.symbol(e):F.rect(),v.addClass((\\\"button\\\"===u?\\\"\\\":\\\"highcharts-label-box\\\")+(u?\\\" highcharts-\\\"+u+\\\"-box\\\":\\\"\\\")),v.add(d),a=r(),g.x=a,g.y=(B?-J:0)+a),g.width=Math.round(d.width),g.height=Math.round(d.height),v.attr(k(g,n)),n={})};T=function(){var a=K+O,g;g=B?0:J;y(p)&&z&&(\\\"center\\\"===f||\\\"right\\\"===f)&&(a+={center:.5,right:1}[f]*(p-z.width));if(a!==t.x||g!==t.y)t.attr(\\\"x\\\",a),t.hasBoxWidthChanged&&(z=t.getBBox(!0),q()),void 0!==g&&t.attr(\\\"y\\\",g);t.x=a;t.y=g};R=function(a,g){v?v.attr(a,g):n[a]=\\ng};d.onAdd=function(){t.add(d);d.attr({text:g||0===g?g:\\\"\\\",x:b,y:c});v&&y(h)&&d.attr({anchorX:h,anchorY:l})};d.widthSetter=function(g){p=a.isNumber(g)?g:null};d.heightSetter=function(a){G=a};d[\\\"text-alignSetter\\\"]=function(a){f=a};d.paddingSetter=function(a){y(a)&&a!==O&&(O=d.padding=a,T())};d.paddingLeftSetter=function(a){y(a)&&a!==K&&(K=a,T())};d.alignSetter=function(a){a={left:0,center:.5,right:1}[a];a!==N&&(N=a,z&&d.attr({x:I}))};d.textSetter=function(a){void 0!==a&&t.textSetter(a);q();T()};d[\\\"stroke-widthSetter\\\"]=\\nfunction(a,g){a&&(A=!0);w=this[\\\"stroke-width\\\"]=a;R(g,a)};d.strokeSetter=d.fillSetter=d.rSetter=function(a,g){\\\"r\\\"!==g&&(\\\"fill\\\"===g&&a&&(A=!0),d[g]=a);R(g,a)};d.anchorXSetter=function(a,g){h=d.anchorX=a;R(g,Math.round(a)-r()-I)};d.anchorYSetter=function(a,g){l=d.anchorY=a;R(g,a-Q)};d.xSetter=function(a){d.x=a;N&&(a-=N*((p||z.width)+2*O),d[\\\"forceAnimate:x\\\"]=!0);I=Math.round(a);d.attr(\\\"translateX\\\",I)};d.ySetter=function(a){Q=d.y=Math.round(a);d.attr(\\\"translateY\\\",Q)};var S=d.css;return k(d,{css:function(a){if(a){var g=\\n{};a=H(a);m(d.textProps,function(x){void 0!==a[x]&&(g[x]=a[x],delete a[x])});t.css(g);\\\"width\\\"in g&&q()}return S.call(d,a)},getBBox:function(){return{width:z.width+2*O,height:z.height+2*O,x:z.x-O,y:z.y-O}},shadow:function(a){a&&(q(),v&&v.shadow(a));return d},destroy:function(){x(d.element,\\\"mouseenter\\\");x(d.element,\\\"mouseleave\\\");t&&(t=t.destroy());v&&(v=v.destroy());C.prototype.destroy.call(d);d=F=q=T=R=null}})}});a.Renderer=D})(L);(function(a){var C=a.attr,D=a.createElement,E=a.css,q=a.defined,n=a.each,\\nf=a.extend,r=a.isFirefox,A=a.isMS,w=a.isWebKit,y=a.pick,p=a.pInt,c=a.SVGRenderer,d=a.win,m=a.wrap;f(a.SVGElement.prototype,{htmlCss:function(a){var b=this.element;if(b=a&&\\\"SPAN\\\"===b.tagName&&a.width)delete a.width,this.textWidth=b,this.htmlUpdateTransform();a&&\\\"ellipsis\\\"===a.textOverflow&&(a.whiteSpace=\\\"nowrap\\\",a.overflow=\\\"hidden\\\");this.styles=f(this.styles,a);E(this.element,a);return this},htmlGetBBox:function(){var a=this.element;return{x:a.offsetLeft,y:a.offsetTop,width:a.offsetWidth,height:a.offsetHeight}},\\nhtmlUpdateTransform:function(){if(this.added){var a=this.renderer,b=this.element,c=this.translateX||0,h=this.translateY||0,d=this.x||0,t=this.y||0,z=this.textAlign||\\\"left\\\",m={left:0,center:.5,right:1}[z],v=this.styles,G=v&&v.whiteSpace;E(b,{marginLeft:c,marginTop:h});this.shadows&&n(this.shadows,function(a){E(a,{marginLeft:c+1,marginTop:h+1})});this.inverted&&n(b.childNodes,function(c){a.invertChild(c,b)});if(\\\"SPAN\\\"===b.tagName){var v=this.rotation,l=this.textWidth&&p(this.textWidth),H=[v,z,b.innerHTML,\\nthis.textWidth,this.textAlign].join(),K;(K=l!==this.oldTextWidth)&&!(K=l>this.oldTextWidth)&&((K=this.textPxLength)||(E(b,{width:\\\"\\\",whiteSpace:G||\\\"nowrap\\\"}),K=b.offsetWidth),K=K>l);K&&/[ \\\\-]/.test(b.textContent||b.innerText)?(E(b,{width:l+\\\"px\\\",display:\\\"block\\\",whiteSpace:G||\\\"normal\\\"}),this.oldTextWidth=l,this.hasBoxWidthChanged=!0):this.hasBoxWidthChanged=!1;H!==this.cTT&&(G=a.fontMetrics(b.style.fontSize).b,q(v)&&v!==(this.oldRotation||0)&&this.setSpanRotation(v,m,G),this.getSpanCorrection(!q(v)&&\\nthis.textPxLength||b.offsetWidth,G,m,v,z));E(b,{left:d+(this.xCorr||0)+\\\"px\\\",top:t+(this.yCorr||0)+\\\"px\\\"});this.cTT=H;this.oldRotation=v}}else this.alignOnAdd=!0},setSpanRotation:function(a,b,c){var e={},k=this.renderer.getTransformKey();e[k]=e.transform=\\\"rotate(\\\"+a+\\\"deg)\\\";e[k+(r?\\\"Origin\\\":\\\"-origin\\\")]=e.transformOrigin=100*b+\\\"% \\\"+c+\\\"px\\\";E(this.element,e)},getSpanCorrection:function(a,b,c){this.xCorr=-a*c;this.yCorr=-b}});f(c.prototype,{getTransformKey:function(){return A&&!/Edge/.test(d.navigator.userAgent)?\\n\\\"-ms-transform\\\":w?\\\"-webkit-transform\\\":r?\\\"MozTransform\\\":d.opera?\\\"-o-transform\\\":\\\"\\\"},html:function(a,b,c){var e=this.createElement(\\\"span\\\"),k=e.element,d=e.renderer,z=d.isSVG,p=function(a,b){n([\\\"opacity\\\",\\\"visibility\\\"],function(c){m(a,c+\\\"Setter\\\",function(a,c,e,l){a.call(this,c,e,l);b[e]=c})});a.addedSetters=!0};e.textSetter=function(a){a!==k.innerHTML&&delete this.bBox;this.textStr=a;k.innerHTML=y(a,\\\"\\\");e.doTransform=!0};z&&p(e,e.element.style);e.xSetter=e.ySetter=e.alignSetter=e.rotationSetter=function(a,\\nb){\\\"align\\\"===b&&(b=\\\"textAlign\\\");e[b]=a;e.doTransform=!0};e.afterSetters=function(){this.doTransform&&(this.htmlUpdateTransform(),this.doTransform=!1)};e.attr({text:a,x:Math.round(b),y:Math.round(c)}).css({fontFamily:this.style.fontFamily,fontSize:this.style.fontSize,position:\\\"absolute\\\"});k.style.whiteSpace=\\\"nowrap\\\";e.css=e.htmlCss;z&&(e.add=function(a){var b,c=d.box.parentNode,h=[];if(this.parentGroup=a){if(b=a.div,!b){for(;a;)h.push(a),a=a.parentGroup;n(h.reverse(),function(a){function l(g,b){a[b]=\\ng;\\\"translateX\\\"===b?k.left=g+\\\"px\\\":k.top=g+\\\"px\\\";a.doTransform=!0}var k,g=C(a.element,\\\"class\\\");g&&(g={className:g});b=a.div=a.div||D(\\\"div\\\",g,{position:\\\"absolute\\\",left:(a.translateX||0)+\\\"px\\\",top:(a.translateY||0)+\\\"px\\\",display:a.display,opacity:a.opacity,pointerEvents:a.styles&&a.styles.pointerEvents},b||c);k=b.style;f(a,{classSetter:function(a){return function(g){this.element.setAttribute(\\\"class\\\",g);a.className=g}}(b),on:function(){h[0].div&&e.on.apply({element:h[0].div},arguments);return a},translateXSetter:l,\\ntranslateYSetter:l});a.addedSetters||p(a,k)})}}else b=c;b.appendChild(k);e.added=!0;e.alignOnAdd&&e.htmlUpdateTransform();return e});return e}})})(L);(function(a){var C=a.defined,D=a.each,E=a.extend,q=a.merge,n=a.pick,f=a.timeUnits,r=a.win;a.Time=function(a){this.update(a,!1)};a.Time.prototype={defaultOptions:{},update:function(f){var w=n(f&&f.useUTC,!0),y=this;this.options=f=q(!0,this.options||{},f);this.Date=f.Date||r.Date;this.timezoneOffset=(this.useUTC=w)&&f.timezoneOffset;this.getTimezoneOffset=\\nthis.timezoneOffsetFunction();(this.variableTimezone=!(w&&!f.getTimezoneOffset&&!f.timezone))||this.timezoneOffset?(this.get=function(a,c){var d=c.getTime(),m=d-y.getTimezoneOffset(c);c.setTime(m);a=c[\\\"getUTC\\\"+a]();c.setTime(d);return a},this.set=function(p,c,d){var m;if(-1!==a.inArray(p,[\\\"Milliseconds\\\",\\\"Seconds\\\",\\\"Minutes\\\"]))c[\\\"set\\\"+p](d);else m=y.getTimezoneOffset(c),m=c.getTime()-m,c.setTime(m),c[\\\"setUTC\\\"+p](d),p=y.getTimezoneOffset(c),m=c.getTime()+p,c.setTime(m)}):w?(this.get=function(a,c){return c[\\\"getUTC\\\"+\\na]()},this.set=function(a,c,d){return c[\\\"setUTC\\\"+a](d)}):(this.get=function(a,c){return c[\\\"get\\\"+a]()},this.set=function(a,c,d){return c[\\\"set\\\"+a](d)})},makeTime:function(f,w,y,p,c,d){var m,k,b;this.useUTC?(m=this.Date.UTC.apply(0,arguments),k=this.getTimezoneOffset(m),m+=k,b=this.getTimezoneOffset(m),k!==b?m+=b-k:k-36E5!==this.getTimezoneOffset(m-36E5)||a.isSafari||(m-=36E5)):m=(new this.Date(f,w,n(y,1),n(p,0),n(c,0),n(d,0))).getTime();return m},timezoneOffsetFunction:function(){var f=this,n=this.options,\\ny=r.moment;if(!this.useUTC)return function(a){return 6E4*(new Date(a)).getTimezoneOffset()};if(n.timezone){if(y)return function(a){return 6E4*-y.tz(a,n.timezone).utcOffset()};a.error(25)}return this.useUTC&&n.getTimezoneOffset?function(a){return 6E4*n.getTimezoneOffset(a)}:function(){return 6E4*(f.timezoneOffset||0)}},dateFormat:function(f,n,y){if(!a.defined(n)||isNaN(n))return a.defaultOptions.lang.invalidDate||\\\"\\\";f=a.pick(f,\\\"%Y-%m-%d %H:%M:%S\\\");var p=this,c=new this.Date(n),d=this.get(\\\"Hours\\\",c),\\nm=this.get(\\\"Day\\\",c),k=this.get(\\\"Date\\\",c),b=this.get(\\\"Month\\\",c),e=this.get(\\\"FullYear\\\",c),h=a.defaultOptions.lang,u=h.weekdays,t=h.shortWeekdays,z=a.pad,c=a.extend({a:t?t[m]:u[m].substr(0,3),A:u[m],d:z(k),e:z(k,2,\\\" \\\"),w:m,b:h.shortMonths[b],B:h.months[b],m:z(b+1),o:b+1,y:e.toString().substr(2,2),Y:e,H:z(d),k:d,I:z(d%12||12),l:d%12||12,M:z(p.get(\\\"Minutes\\\",c)),p:12>d?\\\"AM\\\":\\\"PM\\\",P:12>d?\\\"am\\\":\\\"pm\\\",S:z(c.getSeconds()),L:z(Math.round(n%1E3),3)},a.dateFormats);a.objectEach(c,function(a,b){for(;-1!==f.indexOf(\\\"%\\\"+\\nb);)f=f.replace(\\\"%\\\"+b,\\\"function\\\"===typeof a?a.call(p,n):a)});return y?f.substr(0,1).toUpperCase()+f.substr(1):f},getTimeTicks:function(a,w,y,p){var c=this,d=[],m={},k,b=new c.Date(w),e=a.unitRange,h=a.count||1,u;if(C(w)){c.set(\\\"Milliseconds\\\",b,e>=f.second?0:h*Math.floor(c.get(\\\"Milliseconds\\\",b)/h));e>=f.second&&c.set(\\\"Seconds\\\",b,e>=f.minute?0:h*Math.floor(c.get(\\\"Seconds\\\",b)/h));e>=f.minute&&c.set(\\\"Minutes\\\",b,e>=f.hour?0:h*Math.floor(c.get(\\\"Minutes\\\",b)/h));e>=f.hour&&c.set(\\\"Hours\\\",b,e>=f.day?0:h*Math.floor(c.get(\\\"Hours\\\",\\nb)/h));e>=f.day&&c.set(\\\"Date\\\",b,e>=f.month?1:h*Math.floor(c.get(\\\"Date\\\",b)/h));e>=f.month&&(c.set(\\\"Month\\\",b,e>=f.year?0:h*Math.floor(c.get(\\\"Month\\\",b)/h)),k=c.get(\\\"FullYear\\\",b));e>=f.year&&c.set(\\\"FullYear\\\",b,k-k%h);e===f.week&&c.set(\\\"Date\\\",b,c.get(\\\"Date\\\",b)-c.get(\\\"Day\\\",b)+n(p,1));k=c.get(\\\"FullYear\\\",b);p=c.get(\\\"Month\\\",b);var t=c.get(\\\"Date\\\",b),z=c.get(\\\"Hours\\\",b);w=b.getTime();c.variableTimezone&&(u=y-w>4*f.month||c.getTimezoneOffset(w)!==c.getTimezoneOffset(y));b=b.getTime();for(w=1;bd.length&&D(d,function(a){0===a%18E5&&\\\"000000000\\\"===c.dateFormat(\\\"%H%M%S%L\\\",a)&&(m[a]=\\\"day\\\")})}d.info=E(a,{higherRanks:m,totalRange:e*h});return d}}})(L);(function(a){var C=a.color,D=a.merge;a.defaultOptions={colors:\\\"#7cb5ec #434348 #90ed7d #f7a35c #8085e9 #f15c80 #e4d354 #2b908f #f45b5b #91e8e1\\\".split(\\\" \\\"),\\nsymbols:[\\\"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:a.Time.prototype.defaultOptions,\\nchart:{borderRadius:0,defaultSeriesType:\\\"line\\\",ignoreHiddenSeries:!0,spacing:[10,10,15,10],resetZoomButton:{theme:{zIndex:6},position:{align:\\\"right\\\",x:-10,y:10}},width:null,height:null,borderColor:\\\"#335cad\\\",backgroundColor:\\\"#ffffff\\\",plotBorderColor:\\\"#cccccc\\\"},title:{text:\\\"Chart title\\\",align:\\\"center\\\",margin:15,widthAdjust:-44},subtitle:{text:\\\"\\\",align:\\\"center\\\",widthAdjust:-44},plotOptions:{},labels:{style:{position:\\\"absolute\\\",color:\\\"#333333\\\"}},legend:{enabled:!0,align:\\\"center\\\",alignColumns:!0,layout:\\\"horizontal\\\",\\nlabelFormatter:function(){return this.name},borderColor:\\\"#999999\\\",borderRadius:0,navigation:{activeColor:\\\"#003399\\\",inactiveColor:\\\"#cccccc\\\"},itemStyle:{color:\\\"#333333\\\",fontSize:\\\"12px\\\",fontWeight:\\\"bold\\\",textOverflow:\\\"ellipsis\\\"},itemHoverStyle:{color:\\\"#000000\\\"},itemHiddenStyle:{color:\\\"#cccccc\\\"},shadow:!1,itemCheckboxStyle:{position:\\\"absolute\\\",width:\\\"13px\\\",height:\\\"13px\\\"},squareSymbol:!0,symbolPadding:5,verticalAlign:\\\"bottom\\\",x:0,y:0,title:{style:{fontWeight:\\\"bold\\\"}}},loading:{labelStyle:{fontWeight:\\\"bold\\\",\\nposition:\\\"relative\\\",top:\\\"45%\\\"},style:{position:\\\"absolute\\\",backgroundColor:\\\"#ffffff\\\",opacity:.5,textAlign:\\\"center\\\"}},tooltip:{enabled:!0,animation:a.svg,borderRadius:3,dateTimeLabelFormats:{millisecond:\\\"%A, %b %e, %H:%M:%S.%L\\\",second:\\\"%A, %b %e, %H:%M:%S\\\",minute:\\\"%A, %b %e, %H:%M\\\",hour:\\\"%A, %b %e, %H:%M\\\",day:\\\"%A, %b %e, %Y\\\",week:\\\"Week from %A, %b %e, %Y\\\",month:\\\"%B %Y\\\",year:\\\"%Y\\\"},footerFormat:\\\"\\\",padding:8,snap:a.isTouchDevice?25:10,backgroundColor:C(\\\"#f7f7f7\\\").setOpacity(.85).get(),borderWidth:1,headerFormat:'\\\\x3cspan style\\\\x3d\\\"font-size: 10px\\\"\\\\x3e{point.key}\\\\x3c/span\\\\x3e\\\\x3cbr/\\\\x3e',\\npointFormat:'\\\\x3cspan style\\\\x3d\\\"color:{point.color}\\\"\\\\x3e\\\\u25cf\\\\x3c/span\\\\x3e {series.name}: \\\\x3cb\\\\x3e{point.y}\\\\x3c/b\\\\x3e\\\\x3cbr/\\\\x3e',shadow:!0,style:{color:\\\"#333333\\\",cursor:\\\"default\\\",fontSize:\\\"12px\\\",pointerEvents:\\\"none\\\",whiteSpace:\\\"nowrap\\\"}},credits:{enabled:!0,href:\\\"http://www.highcharts.com\\\",position:{align:\\\"right\\\",x:-10,verticalAlign:\\\"bottom\\\",y:-5},style:{cursor:\\\"pointer\\\",color:\\\"#999999\\\",fontSize:\\\"9px\\\"},text:\\\"Highcharts.com\\\"}};a.setOptions=function(C){a.defaultOptions=D(!0,a.defaultOptions,C);a.time.update(D(a.defaultOptions.global,\\na.defaultOptions.time),!1);return a.defaultOptions};a.getOptions=function(){return a.defaultOptions};a.defaultPlotOptions=a.defaultOptions.plotOptions;a.time=new a.Time(D(a.defaultOptions.global,a.defaultOptions.time));a.dateFormat=function(D,q,n){return a.time.dateFormat(D,q,n)}})(L);(function(a){var C=a.correctFloat,D=a.defined,E=a.destroyObjectProperties,q=a.fireEvent,n=a.isNumber,f=a.merge,r=a.pick,A=a.deg2rad;a.Tick=function(a,f,p,c){this.axis=a;this.pos=f;this.type=p||\\\"\\\";this.isNewLabel=this.isNew=\\n!0;p||c||this.addLabel()};a.Tick.prototype={addLabel:function(){var a=this.axis,n=a.options,p=a.chart,c=a.categories,d=a.names,m=this.pos,k=n.labels,b=a.tickPositions,e=m===b[0],h=m===b[b.length-1],d=c?r(c[m],d[m],m):m,c=this.label,b=b.info,u;a.isDatetimeAxis&&b&&(u=n.dateTimeLabelFormats[b.higherRanks[m]||b.unitName]);this.isFirst=e;this.isLast=h;n=a.labelFormatter.call({axis:a,chart:p,isFirst:e,isLast:h,dateTimeLabelFormat:u,value:a.isLog?C(a.lin2log(d)):d,pos:m});if(D(c))c&&c.attr({text:n});else{if(this.label=\\nc=D(n)&&k.enabled?p.renderer.text(n,0,0,k.useHTML).css(f(k.style)).add(a.labelGroup):null)c.textPxLength=c.getBBox().width;this.rotation=0}},getLabelSize:function(){return this.label?this.label.getBBox()[this.axis.horiz?\\\"height\\\":\\\"width\\\"]:0},handleOverflow:function(a){var f=this.axis,p=f.options.labels,c=a.x,d=f.chart.chartWidth,m=f.chart.spacing,k=r(f.labelLeft,Math.min(f.pos,m[3])),m=r(f.labelRight,Math.max(f.isRadial?0:f.pos+f.len,d-m[1])),b=this.label,e=this.rotation,h={left:0,center:.5,right:1}[f.labelAlign||\\nb.attr(\\\"align\\\")],u=b.getBBox().width,t=f.getSlotWidth(this),z=t,I=1,v,G={};if(e||!1===p.overflow)0>e&&c-h*um&&(v=Math.round((d-c)/Math.cos(e*A)));else if(d=c+(1-h)*u,c-h*um&&(z=m-a.x+z*h,I=-1),z=Math.min(t,z),zz||f.autoRotation&&(b.styles||{}).width)v=z;v&&(G.width=v,(p.style||{}).textOverflow||(G.textOverflow=\\\"ellipsis\\\"),b.css(G))},getPosition:function(f,n,p,c){var d=\\nthis.axis,m=d.chart,k=c&&m.oldChartHeight||m.chartHeight;f={x:f?a.correctFloat(d.translate(n+p,null,null,c)+d.transB):d.left+d.offset+(d.opposite?(c&&m.oldChartWidth||m.chartWidth)-d.right-d.left:0),y:f?k-d.bottom+d.offset-(d.opposite?d.height:0):a.correctFloat(k-d.translate(n+p,null,null,c)-d.transB)};q(this,\\\"afterGetPosition\\\",{pos:f});return f},getLabelPosition:function(a,f,p,c,d,m,k,b){var e=this.axis,h=e.transA,u=e.reversed,t=e.staggerLines,z=e.tickRotCorr||{x:0,y:0},I=d.y,v=c||e.reserveSpaceDefault?\\n0:-e.labelOffset*(\\\"center\\\"===e.labelAlign?.5:1),G={};D(I)||(I=0===e.side?p.rotation?-8:-p.getBBox().height:2===e.side?z.y+8:Math.cos(p.rotation*A)*(z.y-p.getBBox(!1,0).height/2));a=a+d.x+v+z.x-(m&&c?m*h*(u?-1:1):0);f=f+I-(m&&!c?m*h*(u?1:-1):0);t&&(p=k/(b||1)%t,e.opposite&&(p=t-p-1),f+=e.labelOffset/t*p);G.x=a;G.y=Math.round(f);q(this,\\\"afterGetLabelPosition\\\",{pos:G});return G},getMarkPath:function(a,f,p,c,d,m){return m.crispLine([\\\"M\\\",a,f,\\\"L\\\",a+(d?0:-p),f+(d?p:0)],c)},renderGridLine:function(a,f,p){var c=\\nthis.axis,d=c.options,m=this.gridLine,k={},b=this.pos,e=this.type,h=c.tickmarkOffset,u=c.chart.renderer,t=e?e+\\\"Grid\\\":\\\"grid\\\",z=d[t+\\\"LineWidth\\\"],I=d[t+\\\"LineColor\\\"],d=d[t+\\\"LineDashStyle\\\"];m||(k.stroke=I,k[\\\"stroke-width\\\"]=z,d&&(k.dashstyle=d),e||(k.zIndex=1),a&&(k.opacity=0),this.gridLine=m=u.path().attr(k).addClass(\\\"highcharts-\\\"+(e?e+\\\"-\\\":\\\"\\\")+\\\"grid-line\\\").add(c.gridGroup));if(!a&&m&&(a=c.getPlotLinePath(b+h,m.strokeWidth()*p,a,!0)))m[this.isNew?\\\"attr\\\":\\\"animate\\\"]({d:a,opacity:f})},renderMark:function(a,\\nf,p){var c=this.axis,d=c.options,m=c.chart.renderer,k=this.type,b=k?k+\\\"Tick\\\":\\\"tick\\\",e=c.tickSize(b),h=this.mark,u=!h,t=a.x;a=a.y;var z=r(d[b+\\\"Width\\\"],!k&&c.isXAxis?1:0),d=d[b+\\\"Color\\\"];e&&(c.opposite&&(e[0]=-e[0]),u&&(this.mark=h=m.path().addClass(\\\"highcharts-\\\"+(k?k+\\\"-\\\":\\\"\\\")+\\\"tick\\\").add(c.axisGroup),h.attr({stroke:d,\\\"stroke-width\\\":z})),h[u?\\\"attr\\\":\\\"animate\\\"]({d:this.getMarkPath(t,a,e[0],h.strokeWidth()*p,c.horiz,m),opacity:f}))},renderLabel:function(a,f,p,c){var d=this.axis,m=d.horiz,k=d.options,b=this.label,\\ne=k.labels,h=e.step,d=d.tickmarkOffset,u=!0,t=a.x;a=a.y;b&&n(t)&&(b.xy=a=this.getLabelPosition(t,a,b,m,e,d,c,h),this.isFirst&&!this.isLast&&!r(k.showFirstLabel,1)||this.isLast&&!this.isFirst&&!r(k.showLastLabel,1)?u=!1:!m||e.step||e.rotation||f||0===p||this.handleOverflow(a),h&&c%h&&(u=!1),u&&n(a.y)?(a.opacity=p,b[this.isNewLabel?\\\"attr\\\":\\\"animate\\\"](a),this.isNewLabel=!1):(b.attr(\\\"y\\\",-9999),this.isNewLabel=!0))},render:function(f,n,p){var c=this.axis,d=c.horiz,m=this.getPosition(d,this.pos,c.tickmarkOffset,\\nn),k=m.x,b=m.y,c=d&&k===c.pos+c.len||!d&&b===c.pos?-1:1;p=r(p,1);this.isActive=!0;this.renderGridLine(n,p,c);this.renderMark(m,p,c);this.renderLabel(m,n,p,f);this.isNew=!1;a.fireEvent(this,\\\"afterRender\\\")},destroy:function(){E(this,this.axis)}}})(L);var ea=function(a){var C=a.addEvent,D=a.animObject,E=a.arrayMax,q=a.arrayMin,n=a.color,f=a.correctFloat,r=a.defaultOptions,A=a.defined,w=a.deg2rad,y=a.destroyObjectProperties,p=a.each,c=a.extend,d=a.fireEvent,m=a.format,k=a.getMagnitude,b=a.grep,e=a.inArray,\\nh=a.isArray,u=a.isNumber,t=a.isString,z=a.merge,I=a.normalizeTickInterval,v=a.objectEach,G=a.pick,l=a.removeEvent,H=a.splat,K=a.syncTimeout,F=a.Tick,B=function(){this.init.apply(this,arguments)};a.extend(B.prototype,{defaultOptions:{dateTimeLabelFormats:{millisecond:\\\"%H:%M:%S.%L\\\",second:\\\"%H:%M:%S\\\",minute:\\\"%H:%M\\\",hour:\\\"%H:%M\\\",day:\\\"%e. %b\\\",week:\\\"%e. %b\\\",month:\\\"%b '%y\\\",year:\\\"%Y\\\"},endOnTick:!1,labels:{enabled:!0,style:{color:\\\"#666666\\\",cursor:\\\"default\\\",fontSize:\\\"11px\\\"},x:0},maxPadding:.01,minorTickLength:2,\\nminorTickPosition:\\\"outside\\\",minPadding:.01,startOfWeek:1,startOnTick:!1,tickLength:10,tickmarkPlacement:\\\"between\\\",tickPixelInterval:100,tickPosition:\\\"outside\\\",title:{align:\\\"middle\\\",style:{color:\\\"#666666\\\"}},type:\\\"linear\\\",minorGridLineColor:\\\"#f2f2f2\\\",minorGridLineWidth:1,minorTickColor:\\\"#999999\\\",lineColor:\\\"#ccd6eb\\\",lineWidth:1,gridLineColor:\\\"#e6e6e6\\\",tickColor:\\\"#ccd6eb\\\"},defaultYAxisOptions:{endOnTick:!0,tickPixelInterval:72,showLastLabel:!0,labels:{x:-8},maxPadding:.05,minPadding:.05,startOnTick:!0,\\ntitle:{rotation:270,text:\\\"Values\\\"},stackLabels:{allowOverlap:!1,enabled:!1,formatter:function(){return a.numberFormat(this.total,-1)},style:{fontSize:\\\"11px\\\",fontWeight:\\\"bold\\\",color:\\\"#000000\\\",textOutline:\\\"1px contrast\\\"}},gridLineWidth:1,lineWidth:0},defaultLeftAxisOptions:{labels:{x:-15},title:{rotation:270}},defaultRightAxisOptions:{labels:{x:15},title:{rotation:90}},defaultBottomAxisOptions:{labels:{autoRotation:[-45],x:0},title:{rotation:0}},defaultTopAxisOptions:{labels:{autoRotation:[-45],x:0},\\ntitle:{rotation:0}},init:function(a,x){var g=x.isX,b=this;b.chart=a;b.horiz=a.inverted&&!b.isZAxis?!g:g;b.isXAxis=g;b.coll=b.coll||(g?\\\"xAxis\\\":\\\"yAxis\\\");d(this,\\\"init\\\",{userOptions:x});b.opposite=x.opposite;b.side=x.side||(b.horiz?b.opposite?0:2:b.opposite?1:3);b.setOptions(x);var c=this.options,l=c.type;b.labelFormatter=c.labels.formatter||b.defaultLabelFormatter;b.userOptions=x;b.minPixelPadding=0;b.reversed=c.reversed;b.visible=!1!==c.visible;b.zoomEnabled=!1!==c.zoomEnabled;b.hasNames=\\\"category\\\"===\\nl||!0===c.categories;b.categories=c.categories||b.hasNames;b.names||(b.names=[],b.names.keys={});b.plotLinesAndBandsGroups={};b.isLog=\\\"logarithmic\\\"===l;b.isDatetimeAxis=\\\"datetime\\\"===l;b.positiveValuesOnly=b.isLog&&!b.allowNegativeLog;b.isLinked=A(c.linkedTo);b.ticks={};b.labelEdge=[];b.minorTicks={};b.plotLinesAndBands=[];b.alternateBands={};b.len=0;b.minRange=b.userMinRange=c.minRange||c.maxZoom;b.range=c.range;b.offset=c.offset||0;b.stacks={};b.oldStacks={};b.stacksTouched=0;b.max=null;b.min=null;\\nb.crosshair=G(c.crosshair,H(a.options.tooltip.crosshairs)[g?0:1],!1);x=b.options.events;-1===e(b,a.axes)&&(g?a.axes.splice(a.xAxis.length,0,b):a.axes.push(b),a[b.coll].push(b));b.series=b.series||[];a.inverted&&!b.isZAxis&&g&&void 0===b.reversed&&(b.reversed=!0);v(x,function(a,g){C(b,g,a)});b.lin2log=c.linearToLogConverter||b.lin2log;b.isLog&&(b.val2lin=b.log2lin,b.lin2val=b.lin2log);d(this,\\\"afterInit\\\")},setOptions:function(a){this.options=z(this.defaultOptions,\\\"yAxis\\\"===this.coll&&this.defaultYAxisOptions,\\n[this.defaultTopAxisOptions,this.defaultRightAxisOptions,this.defaultBottomAxisOptions,this.defaultLeftAxisOptions][this.side],z(r[this.coll],a));d(this,\\\"afterSetOptions\\\",{userOptions:a})},defaultLabelFormatter:function(){var g=this.axis,b=this.value,c=g.chart.time,e=g.categories,l=this.dateTimeLabelFormat,h=r.lang,k=h.numericSymbols,h=h.numericSymbolMagnitude||1E3,B=k&&k.length,d,u=g.options.labels.format,g=g.isLog?Math.abs(b):g.tickInterval;if(u)d=m(u,this,c);else if(e)d=b;else if(l)d=c.dateFormat(l,\\nb);else if(B&&1E3<=g)for(;B--&&void 0===d;)c=Math.pow(h,B+1),g>=c&&0===10*b%c&&null!==k[B]&&0!==b&&(d=a.numberFormat(b/c,-1)+k[B]);void 0===d&&(d=1E4<=Math.abs(b)?a.numberFormat(b,-1):a.numberFormat(b,-1,void 0,\\\"\\\"));return d},getSeriesExtremes:function(){var a=this,x=a.chart;d(this,\\\"getSeriesExtremes\\\",null,function(){a.hasVisibleSeries=!1;a.dataMin=a.dataMax=a.threshold=null;a.softThreshold=!a.isXAxis;a.buildStacks&&a.buildStacks();p(a.series,function(g){if(g.visible||!x.options.chart.ignoreHiddenSeries){var c=\\ng.options,e=c.threshold,l;a.hasVisibleSeries=!0;a.positiveValuesOnly&&0>=e&&(e=null);if(a.isXAxis)c=g.xData,c.length&&(g=q(c),l=E(c),u(g)||g instanceof Date||(c=b(c,u),g=q(c),l=E(c)),c.length&&(a.dataMin=Math.min(G(a.dataMin,c[0],g),g),a.dataMax=Math.max(G(a.dataMax,c[0],l),l)));else if(g.getExtremes(),l=g.dataMax,g=g.dataMin,A(g)&&A(l)&&(a.dataMin=Math.min(G(a.dataMin,g),g),a.dataMax=Math.max(G(a.dataMax,l),l)),A(e)&&(a.threshold=e),!c.softThreshold||a.positiveValuesOnly)a.softThreshold=!1}})});\\nd(this,\\\"afterGetSeriesExtremes\\\")},translate:function(a,b,c,e,l,h){var g=this.linkedParent||this,x=1,k=0,d=e?g.oldTransA:g.transA;e=e?g.oldMin:g.min;var B=g.minPixelPadding;l=(g.isOrdinal||g.isBroken||g.isLog&&l)&&g.lin2val;d||(d=g.transA);c&&(x*=-1,k=g.len);g.reversed&&(x*=-1,k-=x*(g.sector||g.len));b?(a=(a*x+k-B)/d+e,l&&(a=g.lin2val(a))):(l&&(a=g.val2lin(a)),a=u(e)?x*(a-e)*d+k+x*B+(u(h)?d*h:0):void 0);return a},toPixels:function(a,b){return this.translate(a,!1,!this.horiz,null,!0)+(b?0:this.pos)},\\ntoValue:function(a,b){return this.translate(a-(b?0:this.pos),!0,!this.horiz,null,!0)},getPlotLinePath:function(a,b,c,e,l){var g=this.chart,x=this.left,h=this.top,k,d,B=c&&g.oldChartHeight||g.chartHeight,M=c&&g.oldChartWidth||g.chartWidth,t;k=this.transB;var F=function(a,g,b){if(ab)e?a=Math.min(Math.max(g,a),b):t=!0;return a};l=G(l,this.translate(a,null,null,c));l=Math.min(Math.max(-1E5,l),1E5);a=c=Math.round(l+k);k=d=Math.round(B-l-k);u(l)?this.horiz?(k=h,d=B-this.bottom,a=c=F(a,x,x+this.width)):\\n(a=x,c=M-this.right,k=d=F(k,h,h+this.height)):(t=!0,e=!1);return t&&!e?null:g.renderer.crispLine([\\\"M\\\",a,k,\\\"L\\\",c,d],b||1)},getLinearTickPositions:function(a,b,c){var g,x=f(Math.floor(b/a)*a);c=f(Math.ceil(c/a)*a);var e=[],l;f(x+a)===x&&(l=20);if(this.single)return[b];for(b=x;b<=c;){e.push(b);b=f(b+a,l);if(b===g)break;g=b}return e},getMinorTickInterval:function(){var a=this.options;return!0===a.minorTicks?G(a.minorTickInterval,\\\"auto\\\"):!1===a.minorTicks?null:a.minorTickInterval},getMinorTickPositions:function(){var a=\\nthis,b=a.options,c=a.tickPositions,e=a.minorTickInterval,l=[],h=a.pointRangePadding||0,k=a.min-h,h=a.max+h,d=h-k;if(d&&d/e=this.minRange,t=this.minRange,e=(t-c+b)/2,e=[b-e,G(a.min,b-e)],l&&(e[2]=this.isLog?this.log2lin(this.dataMin):this.dataMin),b=E(e),c=[b+t,\\nG(a.max,b+t)],l&&(c[2]=this.isLog?this.log2lin(this.dataMax):this.dataMax),c=q(c),c-b=H?(y=H,z=0):b.dataMax<=H&&(r=H,F=0)),b.min=G(w,y,b.dataMin),b.max=G(q,r,b.dataMax));l&&(b.positiveValuesOnly&&!g&&0>=Math.min(b.min,G(b.dataMin,b.min))&&a.error(10,1),b.min=\\nf(b.log2lin(b.min),15),b.max=f(b.log2lin(b.max),15));b.range&&A(b.max)&&(b.userMin=b.min=w=Math.max(b.dataMin,b.minFromRange()),b.userMax=q=b.max,b.range=null);d(b,\\\"foundExtremes\\\");b.beforePadding&&b.beforePadding();b.adjustForMinRange();!(K||b.axisPointRange||b.usePercentage||t)&&A(b.min)&&A(b.max)&&(c=b.max-b.min)&&(!A(w)&&z&&(b.min-=c*z),!A(q)&&F&&(b.max+=c*F));u(e.softMin)&&!u(b.userMin)&&(b.min=Math.min(b.min,e.softMin));u(e.softMax)&&!u(b.userMax)&&(b.max=Math.max(b.max,e.softMax));u(e.floor)&&\\n(b.min=Math.max(b.min,e.floor));u(e.ceiling)&&(b.max=Math.min(b.max,e.ceiling));n&&A(b.dataMin)&&(H=H||0,!A(w)&&b.min=H?b.min=H:!A(q)&&b.max>H&&b.dataMax<=H&&(b.max=H));b.tickInterval=b.min===b.max||void 0===b.min||void 0===b.max?1:t&&!v&&m===b.linkedParent.options.tickPixelInterval?v=b.linkedParent.tickInterval:G(v,this.tickAmount?(b.max-b.min)/Math.max(this.tickAmount-1,1):void 0,K?1:(b.max-b.min)*m/Math.max(b.len,m));B&&!g&&p(b.series,function(a){a.processData(b.min!==b.oldMin||b.max!==\\nb.oldMax)});b.setAxisTranslation(!0);b.beforeSetTickPositions&&b.beforeSetTickPositions();b.postProcessTickInterval&&(b.tickInterval=b.postProcessTickInterval(b.tickInterval));b.pointRange&&!v&&(b.tickInterval=Math.max(b.pointRange,b.tickInterval));g=G(e.minTickInterval,b.isDatetimeAxis&&b.closestPointRange);!v&&b.tickIntervalb.tickInterval&&1E3b.max)),!!this.tickAmount));\\nthis.tickAmount||(b.tickInterval=b.unsquish());this.setTickPositions()},setTickPositions:function(){var a=this.options,b,c=a.tickPositions;b=this.getMinorTickInterval();var e=a.tickPositioner,l=a.startOnTick,h=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&&A(this.min)&&!this.tickAmount&&(parseInt(this.min,10)===this.min||!1!==a.allowDecimals);\\nthis.tickPositions=b=c&&c.slice();!b&&(b=this.isDatetimeAxis?this.getTimeTicks(this.normalizeTimeTickInterval(this.tickInterval,a.units),this.min,this.max,a.startOfWeek,this.ordinalPositions,this.closestPointRange,!0):this.isLog?this.getLogTickPositions(this.tickInterval,this.min,this.max):this.getLinearTickPositions(this.tickInterval,this.min,this.max),b.length>this.len&&(b=[b[0],b.pop()],b[0]===b[1]&&(b.length=1)),this.tickPositions=b,e&&(e=e.apply(this,[this.min,this.max])))&&(this.tickPositions=\\nb=e);this.paddedTicks=b.slice(0);this.trimTicks(b,l,h);this.isLinked||(this.single&&2>b.length&&(this.min-=.5,this.max+=.5),c||e||this.adjustTickAmount());d(this,\\\"afterSetTickPositions\\\")},trimTicks:function(a,b,c){var g=a[0],e=a[a.length-1],l=this.minPointOffset||0;if(!this.isLinked){if(b&&-Infinity!==g)this.min=g;else for(;this.min-l>a[0];)a.shift();if(c)this.max=e;else for(;this.max+lb&&(this.finalTickAmt=b,b=5);this.tickAmount=b},adjustTickAmount:function(){var a=this.tickInterval,b=this.tickPositions,c=this.tickAmount,e=this.finalTickAmt,l=b&&b.length,h=G(this.threshold,this.softThreshold?0:null);if(this.hasData()){if(lc&&(this.tickInterval*=2,this.setTickPositions());if(A(e)){for(a=c=b.length;a--;)(3===e&&\\n1===a%2||2>=e&&0e&&(a=e)),A(c)&&(be&&(b=e))),this.displayBtn=void 0!==a||void 0!==b,this.setExtremes(a,b,!1,void 0,{trigger:\\\"zoom\\\"});return!0},setAxisSize:function(){var b=this.chart,c=this.options,e=c.offsets||[0,0,0,0],l=this.horiz,h=this.width=Math.round(a.relativeLength(G(c.width,b.plotWidth-e[3]+e[1]),b.plotWidth)),k=this.height=Math.round(a.relativeLength(G(c.height,b.plotHeight-\\ne[0]+e[2]),b.plotHeight)),d=this.top=Math.round(a.relativeLength(G(c.top,b.plotTop+e[0]),b.plotHeight,b.plotTop)),c=this.left=Math.round(a.relativeLength(G(c.left,b.plotLeft+e[3]),b.plotWidth,b.plotLeft));this.bottom=b.chartHeight-k-d;this.right=b.chartWidth-h-c;this.len=Math.max(l?h:k,0);this.pos=l?c:d},getExtremes:function(){var a=this.isLog;return{min:a?f(this.lin2log(this.min)):this.min,max:a?f(this.lin2log(this.max)):this.max,dataMin:this.dataMin,dataMax:this.dataMax,userMin:this.userMin,userMax:this.userMax}},\\ngetThreshold:function(a){var b=this.isLog,g=b?this.lin2log(this.min):this.min,b=b?this.lin2log(this.max):this.max;null===a||-Infinity===a?a=g:Infinity===a?a=b:g>a?a=g:ba?\\\"right\\\":195a?\\\"left\\\":\\\"center\\\"},tickSize:function(a){var b=this.options,g=b[a+\\\"Length\\\"],c=G(b[a+\\\"Width\\\"],\\\"tick\\\"===a&&this.isXAxis?1:0);if(c&&g)return\\\"inside\\\"===b[a+\\\"Position\\\"]&&(g=-g),[g,c]},labelMetrics:function(){var a=\\nthis.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)},unsquish:function(){var a=this.options.labels,b=this.horiz,c=this.tickInterval,e=c,l=this.len/(((this.categories?1:0)+this.max-this.min)/c),h,k=a.rotation,d=this.labelMetrics(),B,u=Number.MAX_VALUE,t,F=function(a){a/=l||1;a=1=a)B=F(Math.abs(d.h/Math.sin(w*a))),b=B+Math.abs(a/360),b(c.step||0)&&!c.rotation&&(this.staggerLines||1)*this.len/e||!b&&(c.style&&parseInt(c.style.width,10)||l&&l-a.spacing[3]||\\n.33*a.chartWidth)},renderUnsquish:function(){var a=this.chart,b=a.renderer,c=this.tickPositions,e=this.ticks,l=this.options.labels,h=l&&l.style||{},k=this.horiz,d=this.getSlotWidth(),B=Math.max(1,Math.round(d-2*(l.padding||5))),u={},F=this.labelMetrics(),z=l.style&&l.style.textOverflow,v,m,K=0,H;t(l.rotation)||(u.rotation=l.rotation||0);p(c,function(a){(a=e[a])&&a.label&&a.label.textPxLength>K&&(K=a.label.textPxLength)});this.maxLabelLength=K;if(this.autoRotation)K>B&&K>F.h?u.rotation=this.labelRotation:\\nthis.labelRotation=0;else if(d&&(v=B,!z))for(m=\\\"clip\\\",B=c.length;!k&&B--;)if(H=c[B],H=e[H].label)H.styles&&\\\"ellipsis\\\"===H.styles.textOverflow?H.css({textOverflow:\\\"clip\\\"}):H.textPxLength>d&&H.css({width:d+\\\"px\\\"}),H.getBBox().height>this.len/c.length-(F.h-F.f)&&(H.specificTextOverflow=\\\"ellipsis\\\");u.rotation&&(v=K>.5*a.chartHeight?.33*a.chartHeight:a.chartHeight,z||(m=\\\"ellipsis\\\"));if(this.labelAlign=l.align||this.autoLabelAlign(this.labelRotation))u.align=this.labelAlign;p(c,function(a){var b=(a=e[a])&&\\na.label,g=h.width,c={};b&&(b.attr(u),v&&!g&&\\\"nowrap\\\"!==h.whiteSpace&&(v=this.min&&a<=this.max)c[a]||(c[a]=new F(this,a)),e&&c[a].isNew&&c[a].render(b,!0,.1),c[a].render(b)},render:function(){var b=this,c=b.chart,e=b.options,l=b.isLog,h=b.isLinked,k=b.tickPositions,B=b.axisTitle,t=b.ticks,z=b.minorTicks,m=b.alternateBands,H=e.stackLabels,G=e.alternateGridColor,f=b.tickmarkOffset,I=b.axisLine,n=b.showAxis,y=D(c.renderer.globalAnimation),w,r;b.labelEdge.length=0;b.overlap=!1;p([t,z,m],function(a){v(a,function(a){a.isActive=\\n!1})});if(b.hasData()||h)b.minorTickInterval&&!b.categories&&p(b.getMinorTickPositions(),function(a){b.renderMinorTick(a)}),k.length&&(p(k,function(a,c){b.renderTick(a,c)}),f&&(0===b.min||b.single)&&(t[-1]||(t[-1]=new F(b,-1,null,!0)),t[-1].render(-1))),G&&p(k,function(g,e){r=void 0!==k[e+1]?k[e+1]+f:b.max-f;0===e%2&&gr&&(!w||b<=A)&&void 0!==b&&c.push(b),b>A&&(e=!0),b=k;else r=this.lin2log(r),A=this.lin2log(A),a=w?this.getMinorTickInterval():f.tickInterval,a=n(\\\"auto\\\"===a?null:a,this._minorAutoInterval,f.tickPixelInterval/(w?5:1)*(A-r)/((w?p/this.tickPositions.length:p)||1)),a=q(a,null,D(a)),c=E(this.getLinearTickPositions(a,r,A),this.log2lin),w||(this._minorAutoInterval=a/5);w||(this.tickInterval=a);return c};C.prototype.log2lin=function(a){return Math.log(a)/\\nMath.LN10};C.prototype.lin2log=function(a){return Math.pow(10,a)}})(L);(function(a,C){var D=a.arrayMax,E=a.arrayMin,q=a.defined,n=a.destroyObjectProperties,f=a.each,r=a.erase,A=a.merge,w=a.pick;a.PlotLineOrBand=function(a,p){this.axis=a;p&&(this.options=p,this.id=p.id)};a.PlotLineOrBand.prototype={render:function(){var f=this,p=f.axis,c=p.horiz,d=f.options,m=d.label,k=f.label,b=d.to,e=d.from,h=d.value,u=q(e)&&q(b),t=q(h),z=f.svgElem,I=!z,v=[],G=d.color,l=w(d.zIndex,0),H=d.events,v={\\\"class\\\":\\\"highcharts-plot-\\\"+\\n(u?\\\"band \\\":\\\"line \\\")+(d.className||\\\"\\\")},K={},F=p.chart.renderer,B=u?\\\"bands\\\":\\\"lines\\\";p.isLog&&(e=p.log2lin(e),b=p.log2lin(b),h=p.log2lin(h));t?(v.stroke=G,v[\\\"stroke-width\\\"]=d.width,d.dashStyle&&(v.dashstyle=d.dashStyle)):u&&(G&&(v.fill=G),d.borderWidth&&(v.stroke=d.borderColor,v[\\\"stroke-width\\\"]=d.borderWidth));K.zIndex=l;B+=\\\"-\\\"+l;(G=p.plotLinesAndBandsGroups[B])||(p.plotLinesAndBandsGroups[B]=G=F.g(\\\"plot-\\\"+B).attr(K).add());I&&(f.svgElem=z=F.path().attr(v).add(G));if(t)v=p.getPlotLinePath(h,z.strokeWidth());\\nelse if(u)v=p.getPlotBandPath(e,b,d);else return;I&&v&&v.length?(z.attr({d:v}),H&&a.objectEach(H,function(a,b){z.on(b,function(a){H[b].apply(f,[a])})})):z&&(v?(z.show(),z.animate({d:v})):(z.hide(),k&&(f.label=k=k.destroy())));m&&q(m.text)&&v&&v.length&&0this.max&&p>this.max;if(d&&c)for(a&&(e=d.toString()===c.toString(),b=0),a=0;au-h?u:u-h);else if(t)e[a]=Math.max(k,l+h+g>c?l:l+h);else return!1},F=function(a,c,g,l){var h;lc-b?h=!1:e[a]=lc-g/2?c-g-2:l-g/2;return h},B=function(a){var b=G;G=l;l=b;u=a},g=function(){!1!==K.apply(0,G)?!1!==F.apply(0,l)||u||(B(!0),g()):u?e.x=e.y=0:(B(!0),g())};(c.inverted||1H&&(h=!1);a=(c.series&&c.series.yAxis&&c.series.yAxis.pos)+(c.plotY||0);a-=b.plotTop;k.push({target:c.isHeader?b.plotHeight+t:a,rank:c.isHeader?1:0,size:v.tt.getBBox().height+1,point:c,x:H,tt:l})}});this.cleanSplit();\\na.distribute(k,b.plotHeight+t);D(k,function(a){var c=a.point,e=c.series;a.tt.attr({visibility:void 0===a.pos?\\\"hidden\\\":\\\"inherit\\\",x:h||c.isHeader?a.x:c.plotX+b.plotLeft+A(u.distance,16),y:a.pos+b.plotTop,anchorX:c.isHeader?c.plotX+b.plotLeft:c.plotX+e.xAxis.pos,anchorY:c.isHeader?a.pos+b.plotTop-15:c.plotY+e.yAxis.pos})})},updatePosition:function(a){var c=this.chart,m=this.getLabel(),k=(this.options.positioner||this.getPosition).call(this,m.width,m.height,a),b=a.plotX+c.plotLeft;a=a.plotY+c.plotTop;\\nvar e;this.outside&&(e=(this.options.borderWidth||0)+2*this.distance,this.renderer.setSize(m.width+e,m.height+e,!1),b+=c.pointer.chartPosition.left-k.x,a+=c.pointer.chartPosition.top-k.y);this.move(Math.round(k.x),Math.round(k.y||0),b,a)},getDateFormat:function(a,d,m,k){var b=this.chart.time,c=b.dateFormat(\\\"%m-%d %H:%M:%S.%L\\\",d),h,u,t={millisecond:15,second:12,minute:9,hour:6,day:3},z=\\\"millisecond\\\";for(u in p){if(a===p.week&&+b.dateFormat(\\\"%w\\\",d)===m&&\\\"00:00:00.000\\\"===c.substr(6)){u=\\\"week\\\";break}if(p[u]>\\na){u=z;break}if(t[u]&&c.substr(t[u])!==\\\"01-01 00:00:00.000\\\".substr(t[u]))break;\\\"week\\\"!==u&&(z=u)}u&&(h=k[u]);return h},getXDateFormat:function(a,d,m){d=d.dateTimeLabelFormats;var c=m&&m.closestPointRange;return(c?this.getDateFormat(c,a.x,m.options.startOfWeek,d):d.day)||d.year},tooltipFooterHeaderFormatter:function(a,d){d=d?\\\"footer\\\":\\\"header\\\";var c=a.series,k=c.tooltipOptions,b=k.xDateFormat,e=c.xAxis,h=e&&\\\"datetime\\\"===e.options.type&&n(a.key),u=k[d+\\\"Format\\\"];h&&!b&&(b=this.getXDateFormat(a,k,e));\\nh&&b&&D(a.point&&a.point.tooltipDateKeys||[\\\"key\\\"],function(a){u=u.replace(\\\"{point.\\\"+a+\\\"}\\\",\\\"{point.\\\"+a+\\\":\\\"+b+\\\"}\\\")});return q(u,{point:a,series:c},this.chart.time)},bodyFormatter:function(a){return f(a,function(a){var c=a.series.tooltipOptions;return(c[(a.point.formatPrefix||\\\"point\\\")+\\\"Formatter\\\"]||a.point.tooltipFormatter).call(a.point,c[(a.point.formatPrefix||\\\"point\\\")+\\\"Format\\\"])})}}})(L);(function(a){var C=a.addEvent,D=a.attr,E=a.charts,q=a.color,n=a.css,f=a.defined,r=a.each,A=a.extend,w=a.find,y=\\na.fireEvent,p=a.isNumber,c=a.isObject,d=a.offset,m=a.pick,k=a.splat,b=a.Tooltip;a.Pointer=function(a,b){this.init(a,b)};a.Pointer.prototype={init:function(a,c){this.options=c;this.chart=a;this.runChartClick=c.chart.events&&!!c.chart.events.click;this.pinchDown=[];this.lastValidTouch={};b&&(a.tooltip=new b(a,c.tooltip),this.followTouchMove=m(c.tooltip.followTouchMove,!0));this.setDOMEvents()},zoomOption:function(a){var b=this.chart,c=b.options.chart,e=c.zoomType||\\\"\\\",b=b.inverted;/touch/.test(a.type)&&\\n(e=m(c.pinchType,e));this.zoomX=a=/x/.test(e);this.zoomY=e=/y/.test(e);this.zoomHor=a&&!b||e&&b;this.zoomVert=e&&!b||a&&b;this.hasZoom=a||e},normalize:function(a,b){var c;c=a.touches?a.touches.length?a.touches.item(0):a.changedTouches[0]:a;b||(this.chartPosition=b=d(this.chart.container));return A(a,{chartX:Math.round(c.pageX-b.left),chartY:Math.round(c.pageY-b.top)})},getCoordinates:function(a){var b={xAxis:[],yAxis:[]};r(this.chart.axes,function(c){b[c.isXAxis?\\\"xAxis\\\":\\\"yAxis\\\"].push({axis:c,value:c.toValue(a[c.horiz?\\n\\\"chartX\\\":\\\"chartY\\\"])})});return b},findNearestKDPoint:function(a,b,k){var e;r(a,function(a){var h=!(a.noSharedTooltip&&b)&&0>a.options.findNearestPointBy.indexOf(\\\"y\\\");a=a.searchPoint(k,h);if((h=c(a,!0))&&!(h=!c(e,!0)))var h=e.distX-a.distX,d=e.dist-a.dist,u=(a.series.group&&a.series.group.zIndex)-(e.series.group&&e.series.group.zIndex),h=0<(0!==h&&b?h:0!==d?d:0!==u?u:e.series.index>a.series.index?-1:1);h&&(e=a)});return e},getPointFromEvent:function(a){a=a.target;for(var b;a&&!b;)b=a.point,a=a.parentNode;\\nreturn b},getChartCoordinatesFromPoint:function(a,b){var c=a.series,e=c.xAxis,c=c.yAxis,h=m(a.clientX,a.plotX),k=a.shapeArgs;if(e&&c)return b?{chartX:e.len+e.pos-h,chartY:c.len+c.pos-a.plotY}:{chartX:h+e.pos,chartY:a.plotY+c.pos};if(k&&k.x&&k.y)return{chartX:k.x,chartY:k.y}},getHoverData:function(b,h,k,d,z,p,v){var e,l=[],u=v&&v.isBoosting;d=!(!d||!b);v=h&&!h.stickyTracking?[h]:a.grep(k,function(a){return a.visible&&!(!z&&a.directTouch)&&m(a.options.enableMouseTracking,!0)&&a.stickyTracking});h=(e=\\nd?b:this.findNearestKDPoint(v,z,p))&&e.series;e&&(z&&!h.noSharedTooltip?(v=a.grep(k,function(a){return a.visible&&!(!z&&a.directTouch)&&m(a.options.enableMouseTracking,!0)&&!a.noSharedTooltip}),r(v,function(a){var b=w(a.points,function(a){return a.x===e.x&&!a.isNull});c(b)&&(u&&(b=a.getPoint(b)),l.push(b))})):l.push(e));return{hoverPoint:e,hoverSeries:h,hoverPoints:l}},runPointActions:function(b,c){var e=this.chart,h=e.tooltip&&e.tooltip.options.enabled?e.tooltip:void 0,k=h?h.shared:!1,d=c||e.hoverPoint,\\nv=d&&d.series||e.hoverSeries,v=this.getHoverData(d,v,e.series,!!c||v&&v.directTouch&&this.isDirectTouch,k,b,{isBoosting:e.isBoosting}),p,d=v.hoverPoint;p=v.hoverPoints;c=(v=v.hoverSeries)&&v.tooltipOptions.followPointer;k=k&&v&&!v.noSharedTooltip;if(d&&(d!==e.hoverPoint||h&&h.isHidden)){r(e.hoverPoints||[],function(b){-1===a.inArray(b,p)&&b.setState()});r(p||[],function(a){a.setState(\\\"hover\\\")});if(e.hoverSeries!==v)v.onMouseOver();e.hoverPoint&&e.hoverPoint.firePointEvent(\\\"mouseOut\\\");if(!d.series)return;\\nd.firePointEvent(\\\"mouseOver\\\");e.hoverPoints=p;e.hoverPoint=d;h&&h.refresh(k?p:d,b)}else c&&h&&!h.isHidden&&(d=h.getAnchor([{}],b),h.updatePosition({plotX:d[0],plotY:d[1]}));this.unDocMouseMove||(this.unDocMouseMove=C(e.container.ownerDocument,\\\"mousemove\\\",function(b){var c=E[a.hoverChartIndex];if(c)c.pointer.onDocumentMouseMove(b)}));r(e.axes,function(c){var e=m(c.crosshair.snap,!0),l=e?a.find(p,function(a){return a.series[c.coll]===c}):void 0;l||!e?c.drawCrosshair(b,l):c.hideCrosshair()})},reset:function(a,\\nb){var c=this.chart,e=c.hoverSeries,h=c.hoverPoint,d=c.hoverPoints,m=c.tooltip,p=m&&m.shared?d:h;a&&p&&r(k(p),function(b){b.series.isCartesian&&void 0===b.plotX&&(a=!1)});if(a)m&&p&&(m.refresh(p),h&&(h.setState(h.state,!0),r(c.axes,function(a){a.crosshair&&a.drawCrosshair(null,h)})));else{if(h)h.onMouseOut();d&&r(d,function(a){a.setState()});if(e)e.onMouseOut();m&&m.hide(b);this.unDocMouseMove&&(this.unDocMouseMove=this.unDocMouseMove());r(c.axes,function(a){a.hideCrosshair()});this.hoverX=c.hoverPoints=\\nc.hoverPoint=null}},scaleGroups:function(a,b){var c=this.chart,e;r(c.series,function(h){e=a||h.getPlotBox();h.xAxis&&h.xAxis.zoomEnabled&&h.group&&(h.group.attr(e),h.markerGroup&&(h.markerGroup.attr(e),h.markerGroup.clip(b?c.clipRect:null)),h.dataLabelsGroup&&h.dataLabelsGroup.attr(e))});c.clipRect.attr(b||c.clipBox)},dragStart:function(a){var b=this.chart;b.mouseIsDown=a.type;b.cancelClick=!1;b.mouseDownX=this.mouseDownX=a.chartX;b.mouseDownY=this.mouseDownY=a.chartY},drag:function(a){var b=this.chart,\\nc=b.options.chart,e=a.chartX,k=a.chartY,d=this.zoomHor,m=this.zoomVert,p=b.plotLeft,l=b.plotTop,H=b.plotWidth,K=b.plotHeight,F,B=this.selectionMarker,g=this.mouseDownX,x=this.mouseDownY,f=c.panKey&&a[c.panKey+\\\"Key\\\"];B&&B.touch||(ep+H&&(e=p+H),kl+K&&(k=l+K),this.hasDragged=Math.sqrt(Math.pow(g-e,2)+Math.pow(x-k,2)),10l.max&&(f=l.max-z,x=!0);x?(F-=.8*(F-d[b][0]),H||(g-=.8*(g-d[b][1])),n()):d[b]=[F,g];G||(c[b]=I-t,c[u]=z);c=G?1/v:v;p[u]=\\nz;p[b]=f;q[G?a?\\\"scaleY\\\":\\\"scaleX\\\":\\\"scale\\\"+e]=v;q[\\\"translate\\\"+e]=c*t+(F-c*K)},pinch:function(a){var r=this,w=r.chart,y=r.pinchDown,p=a.touches,c=p.length,d=r.lastValidTouch,m=r.hasZoom,k=r.selectionMarker,b={},e=1===c&&(r.inClass(a.target,\\\"highcharts-tracker\\\")&&w.runTrackerClick||r.runChartClick),h={};1b-6&&k\\nf?this.maxItemWidth:a.itemWidth;d&&this.itemX-c+b>f&&(this.itemX=c,this.itemY+=z+this.lastLineHeight+m,this.lastLineHeight=0);this.lastItemY=z+this.itemY+m;this.lastLineHeight=Math.max(k,this.lastLineHeight);a._legendItemPos=[this.itemX,this.itemY];d?this.itemX+=b:(this.itemY+=z+k+m,this.lastLineHeight=k);this.offsetWidth=v||Math.max((d?this.itemX-c-(a.checkbox?0:p):b)+c,this.offsetWidth)},getAllItems:function(){var a=[];n(this.chart.series,function(b){var c=b&&b.options;b&&y(c.showInLegend,q(c.linkedTo)?\\n!1:void 0,!0)&&(a=a.concat(b.legendItems||(\\\"point\\\"===c.legendType?b.data:b)))});f(this,\\\"afterGetAllItems\\\",{allItems:a});return a},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)},adjustMargins:function(a,b){var c=this.chart,d=this.options,k=this.getAlignment();k&&n([/(lth|ct|rth)/,/(rtv|rm|rbv)/,/(rbh|cb|lbh)/,/(lbv|lm|ltv)/],function(e,h){e.test(k)&&!q(a[h])&&(c[A[h]]=Math.max(c[A[h]],\\nc.legend[(h+1)%2?\\\"legendHeight\\\":\\\"legendWidth\\\"]+[1,-1,-1,1][h]*d[h%2?\\\"x\\\":\\\"y\\\"]+y(d.margin,12)+b[h]+(0===h&&void 0!==c.options.title.margin?c.titleOffset+c.options.title.margin:0)))})},proximatePositions:function(){var c=this.chart,b=[],e=\\\"left\\\"===this.options.align;n(this.allItems,function(d){var h,k;h=e;d.xAxis&&d.points&&(d.xAxis.options.reversed&&(h=!h),h=a.find(h?d.points:d.points.slice(0).reverse(),function(b){return a.isNumber(b.plotY)}),k=d.legendGroup.getBBox().height,b.push({target:d.visible?\\nh.plotY-.3*k:c.plotHeight,size:k,item:d}))},this);a.distribute(b,c.plotHeight);n(b,function(a){a.item._legendItemPos[1]=c.plotTop-c.spacing[0]+a.pos})},render:function(){var a=this.chart,b=a.renderer,e=this.group,d,m,t,z=this.box,p=this.options,v=this.padding;this.itemX=v;this.itemY=this.initialItemY;this.lastItemY=this.offsetWidth=0;e||(this.group=e=b.g(\\\"legend\\\").attr({zIndex:7}).add(),this.contentGroup=b.g().attr({zIndex:1}).add(e),this.scrollGroup=b.g().add(this.contentGroup));this.renderTitle();\\nd=this.getAllItems();c(d,function(a,b){return(a.options&&a.options.legendIndex||0)-(b.options&&b.options.legendIndex||0)});p.reversed&&d.reverse();this.allItems=d;this.display=m=!!d.length;this.itemHeight=this.totalItemWidth=this.maxItemWidth=this.lastLineHeight=0;n(d,this.renderItem,this);n(d,this.layoutItem,this);d=(p.width||this.offsetWidth)+v;t=this.lastItemY+this.lastLineHeight+this.titleHeight;t=this.handleOverflow(t);t+=v;z||(this.box=z=b.rect().addClass(\\\"highcharts-legend-box\\\").attr({r:p.borderRadius}).add(e),\\nz.isNew=!0);z.attr({stroke:p.borderColor,\\\"stroke-width\\\":p.borderWidth||0,fill:p.backgroundColor||\\\"none\\\"}).shadow(p.shadow);0c&&!1!==G.enabled?(this.clipHeight=f=Math.max(c-20-this.titleHeight-p,0),this.currentPage=y(this.currentPage,1),this.fullHeight=a,n(g,function(a,b){var c=a._legendItemPos[1],e=Math.round(a.legendItem.getBBox().height),l=F.length;if(!l||c-F[l-1]>f&&(B||c)!==F[l-1])F.push(B||c),l++;a.pageIx=l-1;B&&(g[b-1].pageIx=l-1);b===g.length-1&&c+e-F[l-1]>f&&(F.push(c),a.pageIx=l);c!==B&&(B=c)}),v||(v=b.clipRect=\\nd.clipRect(0,p,9999,0),b.contentGroup.clip(v)),x(f),K||(this.nav=K=d.g().attr({zIndex:1}).add(this.group),this.up=d.symbol(\\\"triangle\\\",0,0,H,H).on(\\\"click\\\",function(){b.scroll(-1,l)}).add(K),this.pager=d.text(\\\"\\\",15,10).addClass(\\\"highcharts-legend-navigation\\\").css(G.style).add(K),this.down=d.symbol(\\\"triangle-down\\\",0,0,H,H).on(\\\"click\\\",function(){b.scroll(1,l)}).add(K)),b.scroll(0),a=c):K&&(x(),this.nav=K.destroy(),this.scrollGroup.attr({translateY:1}),this.clipHeight=0);return a},scroll:function(a,b){var c=\\nthis.pages,d=c.length;a=this.currentPage+a;var k=this.clipHeight,m=this.options.navigation,z=this.pager,f=this.padding;a>d&&(a=d);0b&&(d=typeof p[0],\\\"string\\\"===d?c.name=p[0]:\\\"number\\\"===d&&(c.x=p[0]),e++);h=m.value;)m=c[++d];this.nonZonedColor||(this.nonZonedColor=this.color);this.color=m&&m.color&&!this.options.color?m.color:this.nonZonedColor;return m},destroy:function(){var a=this.series.chart,c=a.hoverPoints,d;a.pointCount--;c&&(this.setState(),q(c,this),c.length||(a.hoverPoints=null));if(this===a.hoverPoint)this.onMouseOut();if(this.graphic||this.dataLabel)y(this),this.destroyElements();this.legendItem&&\\na.legend.destroyItem(this);for(d in this)this[d]=null},destroyElements:function(){for(var a=[\\\"graphic\\\",\\\"dataLabel\\\",\\\"dataLabelUpper\\\",\\\"connector\\\",\\\"shadowGroup\\\"],c,d=6;d--;)c=a[d],this[c]&&(this[c]=this[c].destroy())},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}},tooltipFormatter:function(a){var c=this.series,d=c.tooltipOptions,\\nm=w(d.valueDecimals,\\\"\\\"),k=d.valuePrefix||\\\"\\\",b=d.valueSuffix||\\\"\\\";D(c.pointArrayMap||[\\\"y\\\"],function(c){c=\\\"{point.\\\"+c;if(k||b)a=a.replace(RegExp(c+\\\"}\\\",\\\"g\\\"),k+c+\\\"}\\\"+b);a=a.replace(RegExp(c+\\\"}\\\",\\\"g\\\"),c+\\\":,.\\\"+m+\\\"f}\\\")});return f(a,{point:this,series:this.series},c.chart.time)},firePointEvent:function(a,c,d){var m=this,k=this.series.options;(k.point.events[a]||m.options&&m.options.events&&m.options.events[a])&&this.importEvents();\\\"click\\\"===a&&k.allowPointSelect&&(d=function(a){m.select&&m.select(null,a.ctrlKey||\\na.metaKey||a.shiftKey)});n(this,a,c,d)},visible:!0}})(L);(function(a){var C=a.addEvent,D=a.animObject,E=a.arrayMax,q=a.arrayMin,n=a.correctFloat,f=a.defaultOptions,r=a.defaultPlotOptions,A=a.defined,w=a.each,y=a.erase,p=a.extend,c=a.fireEvent,d=a.grep,m=a.isArray,k=a.isNumber,b=a.isString,e=a.merge,h=a.objectEach,u=a.pick,t=a.removeEvent,z=a.splat,I=a.SVGElement,v=a.syncTimeout,G=a.win;a.Series=a.seriesType(\\\"line\\\",null,{lineWidth:2,allowPointSelect:!1,showCheckbox:!1,animation:{duration:1E3},events:{},\\nmarker:{lineWidth:0,lineColor:\\\"#ffffff\\\",enabledThreshold:2,radius:4,states:{normal:{animation:!0},hover:{animation:{duration:50},enabled:!0,radiusPlus:2,lineWidthPlus:1},select:{fillColor:\\\"#cccccc\\\",lineColor:\\\"#000000\\\",lineWidth:2}}},point:{events:{}},dataLabels:{align:\\\"center\\\",formatter:function(){return null===this.y?\\\"\\\":a.numberFormat(this.y,-1)},style:{fontSize:\\\"11px\\\",fontWeight:\\\"bold\\\",color:\\\"contrast\\\",textOutline:\\\"1px contrast\\\"},verticalAlign:\\\"bottom\\\",x:0,y:0,padding:5},cropThreshold:300,pointRange:0,\\nsoftThreshold:!0,states:{normal:{animation:!0},hover:{animation:{duration:50},lineWidthPlus:1,marker:{},halo:{size:10,opacity:.25}},select:{marker:{}}},stickyTracking:!0,turboThreshold:1E3,findNearestPointBy:\\\"x\\\"},{isCartesian:!0,pointClass:a.Point,sorted:!0,requireSorting:!0,directTouch:!1,axisTypes:[\\\"xAxis\\\",\\\"yAxis\\\"],colorCounter:0,parallelArrays:[\\\"x\\\",\\\"y\\\"],coll:\\\"series\\\",init:function(a,b){var l=this,e,d=a.series,g;l.chart=a;l.options=b=l.setOptions(b);l.linkedSeries=[];l.bindAxes();p(l,{name:b.name,\\nstate:\\\"\\\",visible:!1!==b.visible,selected:!0===b.selected});e=b.events;h(e,function(a,b){C(l,b,a)});if(e&&e.click||b.point&&b.point.events&&b.point.events.click||b.allowPointSelect)a.runTrackerClick=!0;l.getColor();l.getSymbol();w(l.parallelArrays,function(a){l[a+\\\"Data\\\"]=[]});l.setData(b.data,!1);l.isCartesian&&(a.hasCartesianSeries=!0);d.length&&(g=d[d.length-1]);l._i=u(g&&g._i,-1)+1;a.orderSeries(this.insert(d));c(this,\\\"afterInit\\\")},insert:function(a){var b=this.options.index,c;if(k(b)){for(c=a.length;c--;)if(b>=\\nu(a[c].options.index,a[c]._i)){a.splice(c+1,0,this);break}-1===c&&a.unshift(this);c+=1}else a.push(this);return u(c,a.length-1)},bindAxes:function(){var b=this,c=b.options,e=b.chart,d;w(b.axisTypes||[],function(l){w(e[l],function(a){d=a.options;if(c[l]===d.index||void 0!==c[l]&&c[l]===d.id||void 0===c[l]&&0===d.index)b.insert(a.series),b[l]=a,a.isDirty=!0});b[l]||b.optionalAxis===l||a.error(18,!0)})},updateParallelArrays:function(a,b){var c=a.series,l=arguments,e=k(b)?function(g){var l=\\\"y\\\"===g&&c.toYData?\\nc.toYData(a):a[g];c[g+\\\"Data\\\"][b]=l}:function(a){Array.prototype[b].apply(c[a+\\\"Data\\\"],Array.prototype.slice.call(l,2))};w(c.parallelArrays,e)},autoIncrement:function(){var a=this.options,b=this.xIncrement,c,e=a.pointIntervalUnit,d=this.chart.time,b=u(b,a.pointStart,0);this.pointInterval=c=u(this.pointInterval,a.pointInterval,1);e&&(a=new d.Date(b),\\\"day\\\"===e?d.set(\\\"Date\\\",a,d.get(\\\"Date\\\",a)+c):\\\"month\\\"===e?d.set(\\\"Month\\\",a,d.get(\\\"Month\\\",a)+c):\\\"year\\\"===e&&d.set(\\\"FullYear\\\",a,d.get(\\\"FullYear\\\",a)+c),c=a.getTime()-\\nb);this.xIncrement=b+c;return b},setOptions:function(a){var b=this.chart,l=b.options,d=l.plotOptions,h=(b.userOptions||{}).plotOptions||{},g=d[this.type];this.userOptions=a;b=e(g,d.series,a);this.tooltipOptions=e(f.tooltip,f.plotOptions.series&&f.plotOptions.series.tooltip,f.plotOptions[this.type].tooltip,l.tooltip.userOptions,d.series&&d.series.tooltip,d[this.type].tooltip,a.tooltip);this.stickyTracking=u(a.stickyTracking,h[this.type]&&h[this.type].stickyTracking,h.series&&h.series.stickyTracking,\\nthis.tooltipOptions.shared&&!this.noSharedTooltip?!0:b.stickyTracking);null===g.marker&&delete b.marker;this.zoneAxis=b.zoneAxis;a=this.zones=(b.zones||[]).slice();!b.negativeColor&&!b.negativeFillColor||b.zones||a.push({value:b[this.zoneAxis+\\\"Threshold\\\"]||b.threshold||0,className:\\\"highcharts-negative\\\",color:b.negativeColor,fillColor:b.negativeFillColor});a.length&&A(a[a.length-1].value)&&a.push({color:this.color,fillColor:this.fillColor});c(this,\\\"afterSetOptions\\\",{options:b});return b},getName:function(){return this.name||\\n\\\"Series \\\"+(this.index+1)},getCyclic:function(a,b,c){var e,l=this.chart,g=this.userOptions,d=a+\\\"Index\\\",h=a+\\\"Counter\\\",k=c?c.length:u(l.options.chart[a+\\\"Count\\\"],l[a+\\\"Count\\\"]);b||(e=u(g[d],g[\\\"_\\\"+d]),A(e)||(l.series.length||(l[h]=0),g[\\\"_\\\"+d]=e=l[h]%k,l[h]+=1),c&&(b=c[e]));void 0!==e&&(this[d]=e);this[a]=b},getColor:function(){this.options.colorByPoint?this.options.color=null:this.getCyclic(\\\"color\\\",this.options.color||r[this.type].color,this.chart.options.colors)},getSymbol:function(){this.getCyclic(\\\"symbol\\\",\\nthis.options.marker.symbol,this.chart.options.symbols)},drawLegendSymbol:a.LegendSymbolMixin.drawLineMarker,updateData:function(b){var c=this.options,e=this.points,l=[],d,g,h,m=this.requireSorting;w(b,function(b){var g;g=a.defined(b)&&this.pointClass.prototype.optionsToObject.call({series:this},b).x;k(g)&&(g=a.inArray(g,this.xData,h),-1===g?l.push(b):b!==c.data[g]?(e[g].update(b,!1,null,!1),e[g].touched=!0,m&&(h=g)):e[g]&&(e[g].touched=!0),d=!0)},this);if(d)for(b=e.length;b--;)g=e[b],g.touched||g.remove(!1),\\ng.touched=!1;else if(b.length===e.length)w(b,function(a,b){e[b].update&&a!==c.data[b]&&e[b].update(a,!1,null,!1)});else return!1;w(l,function(a){this.addPoint(a,!1)},this);return!0},setData:function(c,e,d,h){var l=this,g=l.points,F=g&&g.length||0,v,z=l.options,t=l.chart,f=null,p=l.xAxis,n=z.turboThreshold,H=this.xData,G=this.yData,K=(v=l.pointArrayMap)&&v.length,I;c=c||[];v=c.length;e=u(e,!0);!1!==h&&v&&F&&!l.cropped&&!l.hasGroupedData&&l.visible&&(I=this.updateData(c));if(!I){l.xIncrement=null;l.colorCounter=\\n0;w(this.parallelArrays,function(a){l[a+\\\"Data\\\"].length=0});if(n&&v>n){for(d=0;null===f&&dm||this.forceCrop))if(c[l-1]n)c=[],e=[];else if(c[0]n)d=this.cropData(this.xData,this.yData,u,n),c=d.xData,e=d.yData,d=d.start,g=!0;for(m=c.length||1;--m;)l=t?v(c[m])-v(c[m-1]):c[m]-c[m-1],0l&&p&&(a.error(15),p=!1);this.cropped=g;this.cropStart=d;this.processedXData=c;this.processedYData=e;this.closestPointRange=h},cropData:function(a,b,c,e,d){var g=a.length,l=0,h=g,k;d=\\nu(d,this.cropShoulder,1);for(k=0;k=c){l=Math.max(0,k-d);break}for(c=k;ce){h=c+d;break}return{xData:a.slice(l,h),yData:b.slice(l,h),start:l,end:h}},generatePoints:function(){var a=this.options,b=a.data,c=this.data,e,d=this.processedXData,g=this.processedYData,h=this.pointClass,k=d.length,m=this.cropStart||0,v,f=this.hasGroupedData,a=a.keys,t,p=[],u;c||f||(c=[],c.length=b.length,c=this.data=c);a&&f&&(this.options.keys=!1);for(u=0;u=d&&(c[p-t]||f)<=h,v&&f)if(v=z.length)for(;v--;)\\\"number\\\"===typeof z[v]&&(l[g++]=z[v]);else l[g++]=z;this.dataMin=q(l);this.dataMax=E(l)},translate:function(){this.processedXData||this.processData();this.generatePoints();var a=this.options,b=a.stacking,e=this.xAxis,d=e.categories,h=this.yAxis,g=this.points,m=g.length,v=!!this.modifyValue,f=a.pointPlacement,\\nz=\\\"between\\\"===f||k(f),t=a.threshold,p=a.startFromThreshold?t:0,G,I,w,q,r=Number.MAX_VALUE;\\\"between\\\"===f&&(f=.5);k(f)&&(f*=u(a.pointRange||e.pointRange));for(a=0;a=C&&(y.isNull=!0);y.plotX=G=n(Math.min(Math.max(-1E5,e.translate(D,0,0,0,1,f,\\\"flags\\\"===this.type)),1E5));b&&this.visible&&!y.isNull&&E&&E[D]&&(q=this.getStackIndicator(q,D,this.index),L=E[D],C=L.points[q.key],\\nI=C[0],C=C[1],I===p&&q.key===E[D].base&&(I=u(k(t)&&t,h.min)),h.positiveValuesOnly&&0>=I&&(I=null),y.total=y.stackTotal=L.total,y.percentage=L.total&&y.y/L.total*100,y.stackY=C,L.setOffset(this.pointXOffset||0,this.barW||0));y.yBottom=A(I)?Math.min(Math.max(-1E5,h.translate(I,0,1,0,1)),1E5):null;v&&(C=this.modifyValue(C,y));y.plotY=I=\\\"number\\\"===typeof C&&Infinity!==C?Math.min(Math.max(-1E5,h.translate(C,0,1,0,1)),1E5):void 0;y.isInside=void 0!==I&&0<=I&&I<=h.len&&0<=G&&G<=e.len;y.clientX=z?n(e.translate(D,\\n0,0,0,1,f)):G;y.negative=y.y<(t||0);y.category=d&&void 0!==d[y.x]?d[y.x]:y.x;y.isNull||(void 0!==w&&(r=Math.min(r,Math.abs(G-w))),w=G);y.zone=this.zones.length&&y.getZone()}this.closestPointRangePx=r;c(this,\\\"afterTranslate\\\")},getValidPoints:function(a,b){var c=this.chart;return d(a||this.points||[],function(a){return b&&!c.isInsidePlot(a.plotX,a.plotY,c.inverted)?!1:!a.isNull})},setClip:function(a){var b=this.chart,c=this.options,e=b.renderer,d=b.inverted,g=this.clipBox,l=g||b.clipBox,h=this.sharedClipKey||\\n[\\\"_sharedClip\\\",a&&a.duration,a&&a.easing,l.height,c.xAxis,c.yAxis].join(),k=b[h],m=b[h+\\\"m\\\"];k||(a&&(l.width=0,d&&(l.x=b.plotSizeX),b[h+\\\"m\\\"]=m=e.clipRect(d?b.plotSizeX+99:-99,d?-b.plotLeft:-b.plotTop,99,d?b.chartWidth:b.chartHeight)),b[h]=k=e.clipRect(l),k.count={length:0});a&&!k.count[this.index]&&(k.count[this.index]=!0,k.count.length+=1);!1!==c.clip&&(this.group.clip(a||g?k:b.clipRect),this.markerGroup.clip(m),this.sharedClipKey=h);a||(k.count[this.index]&&(delete k.count[this.index],--k.count.length),\\n0===k.count.length&&h&&b[h]&&(g||(b[h]=b[h].destroy()),b[h+\\\"m\\\"]&&(b[h+\\\"m\\\"]=b[h+\\\"m\\\"].destroy())))},animate:function(a){var b=this.chart,c=D(this.options.animation),e;a?this.setClip(c):(e=this.sharedClipKey,(a=b[e])&&a.animate({width:b.plotSizeX,x:0},c),b[e+\\\"m\\\"]&&b[e+\\\"m\\\"].animate({width:b.plotSizeX+99,x:0},c),this.animate=null)},afterAnimate:function(){this.setClip();c(this,\\\"afterAnimate\\\");this.finishedAnimating=!0},drawPoints:function(){var a=this.points,b=this.chart,c,e,d,g,h=this.options.marker,\\nk,m,v,f=this[this.specialGroup]||this.markerGroup,t,z=u(h.enabled,this.xAxis.isRadial?!0:null,this.closestPointRangePx>=h.enabledThreshold*h.radius);if(!1!==h.enabled||this._hasPointMarkers)for(c=0;cg&&b.shadow));l&&(l.startX=c.xMap,l.isArea=c.isArea)})},getZonesGraphs:function(a){w(this.zones,function(b,c){a.push([\\\"zone-graph-\\\"+c,\\\"highcharts-graph highcharts-zone-graph-\\\"+c+\\\" \\\"+(b.className||\\\"\\\"),b.color||this.color,b.dashStyle||this.options.dashStyle])},this);return a},applyZones:function(){var a=this,\\nb=this.chart,c=b.renderer,e=this.zones,d,g,h=this.clips||[],k,m=this.graph,v=this.area,f=Math.max(b.chartWidth,b.chartHeight),t=this[(this.zoneAxis||\\\"y\\\")+\\\"Axis\\\"],z,p,n=b.inverted,G,I,q,r,y=!1;e.length&&(m||v)&&t&&void 0!==t.min&&(p=t.reversed,G=t.horiz,m&&!this.showLine&&m.hide(),v&&v.hide(),z=t.getExtremes(),w(e,function(e,l){d=p?G?b.plotWidth:0:G?0:t.toPixels(z.min);d=Math.min(Math.max(u(g,d),0),f);g=Math.min(Math.max(Math.round(t.toPixels(u(e.value,z.max),!0)),0),f);y&&(d=g=t.toPixels(z.max));\\nI=Math.abs(d-g);q=Math.min(d,g);r=Math.max(d,g);t.isXAxis?(k={x:n?r:q,y:0,width:I,height:f},G||(k.x=b.plotHeight-k.x)):(k={x:0,y:n?r:q,width:f,height:I},G&&(k.y=b.plotWidth-k.y));n&&c.isVML&&(k=t.isXAxis?{x:0,y:p?q:r,height:k.width,width:b.chartWidth}:{x:k.y-b.plotLeft-b.spacingBox.x,y:0,width:k.height,height:b.chartHeight});h[l]?h[l].animate(k):(h[l]=c.clipRect(k),m&&a[\\\"zone-graph-\\\"+l].clip(h[l]),v&&a[\\\"zone-area-\\\"+l].clip(h[l]));y=e.value>z.max;a.resetZones&&0===g&&(g=void 0)}),this.clips=h)},invertGroups:function(a){function b(){w([\\\"group\\\",\\n\\\"markerGroup\\\"],function(b){c[b]&&(e.renderer.isVML&&c[b].attr({width:c.yAxis.len,height:c.xAxis.len}),c[b].width=c.yAxis.len,c[b].height=c.xAxis.len,c[b].invert(a))})}var c=this,e=c.chart,d;c.xAxis&&(d=C(e,\\\"resize\\\",b),C(c,\\\"destroy\\\",d),b(a),c.invertGroups=b)},plotGroup:function(a,b,c,e,d){var g=this[a],l=!g;l&&(this[a]=g=this.chart.renderer.g().attr({zIndex:e||.1}).add(d));g.addClass(\\\"highcharts-\\\"+b+\\\" highcharts-series-\\\"+this.index+\\\" highcharts-\\\"+this.type+\\\"-series \\\"+(A(this.colorIndex)?\\\"highcharts-color-\\\"+\\nthis.colorIndex+\\\" \\\":\\\"\\\")+(this.options.className||\\\"\\\")+(g.hasClass(\\\"highcharts-tracker\\\")?\\\" highcharts-tracker\\\":\\\"\\\"),!0);g.attr({visibility:c})[l?\\\"attr\\\":\\\"animate\\\"](this.getPlotBox());return g},getPlotBox:function(){var a=this.chart,b=this.xAxis,c=this.yAxis;a.inverted&&(b=c,c=this.xAxis);return{translateX:b?b.left:a.plotLeft,translateY:c?c.top:a.plotTop,scaleX:1,scaleY:1}},render:function(){var a=this,b=a.chart,e,d=a.options,h=!!a.animate&&b.renderer.isSVG&&D(d.animation).duration,g=a.visible?\\\"inherit\\\":\\n\\\"hidden\\\",k=d.zIndex,m=a.hasRendered,t=b.seriesGroup,f=b.inverted;e=a.plotGroup(\\\"group\\\",\\\"series\\\",g,k,t);a.markerGroup=a.plotGroup(\\\"markerGroup\\\",\\\"markers\\\",g,k,t);h&&a.animate(!0);e.inverted=a.isCartesian?f:!1;a.drawGraph&&(a.drawGraph(),a.applyZones());a.drawDataLabels&&a.drawDataLabels();a.visible&&a.drawPoints();a.drawTracker&&!1!==a.options.enableMouseTracking&&a.drawTracker();a.invertGroups(f);!1===d.clip||a.sharedClipKey||m||e.clip(b.clipRect);h&&a.animate();m||(a.animationTimeout=v(function(){a.afterAnimate()},\\nh));a.isDirty=!1;a.hasRendered=!0;c(a,\\\"afterRender\\\")},redraw:function(){var a=this.chart,b=this.isDirty||this.isDirtyData,c=this.group,e=this.xAxis,d=this.yAxis;c&&(a.inverted&&c.attr({width:a.plotWidth,height:a.plotHeight}),c.animate({translateX:u(e&&e.left,a.plotLeft),translateY:u(d&&d.top,a.plotTop)}));this.translate();this.render();b&&delete this.kdTree},kdAxisArray:[\\\"clientX\\\",\\\"plotY\\\"],searchPoint:function(a,b){var c=this.xAxis,e=this.yAxis,d=this.chart.inverted;return this.searchKDTree({clientX:d?\\nc.len-a.chartY+c.pos:a.chartX-c.pos,plotY:d?e.len-a.chartX+e.pos:a.chartY-e.pos},b)},buildKDTree:function(){function a(c,e,g){var d,l;if(l=c&&c.length)return d=b.kdAxisArray[e%g],c.sort(function(a,b){return a[d]-b[d]}),l=Math.floor(l/2),{point:c[l],left:a(c.slice(0,l),e+1,g),right:a(c.slice(l+1),e+1,g)}}this.buildingKdTree=!0;var b=this,c=-1v?\\\"left\\\":\\\"right\\\";f=0>v?\\\"right\\\":\\\"left\\\";b[t]&&(t=c(a,b[t],h+1,k),B=t[l]u;)z--;this.updateParallelArrays(f,\\\"splice\\\",z,0,0);this.updateParallelArrays(f,z);g&&f.name&&(g[u]=f.name);m.splice(z,0,a);t&&(this.data.splice(z,0,null),this.processData());\\\"point\\\"===l.legendType&&this.generatePoints();c&&(h[0]&&h[0].remove?h[0].remove(!1):(h.shift(),this.updateParallelArrays(f,\\\"shift\\\"),m.shift()));this.isDirtyData=this.isDirty=!0;b&&k.redraw(d)},removePoint:function(a,b,c){var d=this,l=d.data,h=l[a],k=d.points,\\ng=d.chart,m=function(){k&&k.length===l.length&&k.splice(a,1);l.splice(a,1);d.options.data.splice(a,1);d.updateParallelArrays(h||{series:d},\\\"splice\\\",a,1);h&&h.destroy();d.isDirty=!0;d.isDirtyData=!0;b&&g.redraw()};z(c,g);b=e(b,!0);h?h.firePointEvent(\\\"remove\\\",null,m):m()},remove:function(a,b,c){function d(){l.destroy();h.isDirtyLegend=h.isDirtyBox=!0;h.linkSeries();e(a,!0)&&h.redraw(b)}var l=this,h=l.chart;!1!==c?y(l,\\\"remove\\\",null,d):d()},update:function(b,c){var d=this,h=d.chart,m=d.userOptions,f=\\nd.oldType||d.type,v=b.type||m.type||h.options.chart.type,g=t[f].prototype,z,u=[\\\"group\\\",\\\"markerGroup\\\",\\\"dataLabelsGroup\\\"],n=[\\\"navigatorSeries\\\",\\\"baseSeries\\\"],G=d.finishedAnimating&&{animation:!1},I=[\\\"data\\\",\\\"name\\\",\\\"turboThreshold\\\"],q=a.keys(b),A=0a&&w>f?(w=Math.max(a,f),p=2*f-w):wq&&p>f?(p=Math.max(q,f),w=2*f-p):p=Math.abs(c)&&.5a.closestPointRange*a.xAxis.transA,m=a.borderWidth=r(d.borderWidth,m?0:1),k=a.yAxis,b=d.threshold,e=a.translatedThreshold=k.getThreshold(b),h=r(d.minPointLength,5),f=a.getColumnMetrics(),t=f.width,z=a.barW=Math.max(t,1+2*m),n=a.pointXOffset=f.offset;c.inverted&&(e-=.5);d.pointPadding&&(z=Math.ceil(z));A.prototype.translate.apply(a);E(a.points,function(d){var m=r(d.yBottom,e),l=999+Math.abs(m),l=Math.min(Math.max(-l,d.plotY),k.len+l),\\nf=d.plotX+n,v=z,u=Math.min(l,m),B,g=Math.max(l,m)-u;h&&Math.abs(g)h?m-h:e-(B?h:0));d.barX=f;d.pointWidth=t;d.tooltipPos=c.inverted?[k.len+k.pos-c.plotLeft-l,a.xAxis.len-f-v/2,g]:[f+v/2,l+k.pos-c.plotTop,g];d.shapeType=\\\"rect\\\";d.shapeArgs=a.crispCol.apply(a,d.isNull?[f,e,v,0]:[f,u,v,g])})},getSymbol:a.noop,drawLegendSymbol:a.LegendSymbolMixin.drawRectangle,drawGraph:function(){this.group[this.dense?\\n\\\"addClass\\\":\\\"removeClass\\\"](\\\"highcharts-dense-data\\\")},pointAttribs:function(a,c){var d=this.options,m,k=this.pointAttrToOptions||{};m=k.stroke||\\\"borderColor\\\";var b=k[\\\"stroke-width\\\"]||\\\"borderWidth\\\",e=a&&a.color||this.color,h=a&&a[m]||d[m]||this.color||e,u=a&&a[b]||d[b]||this[b]||0,k=d.dashStyle;a&&this.zones.length&&(e=a.getZone(),e=a.options.color||e&&e.color||this.color);c&&(a=f(d.states[c],a.options.states&&a.options.states[c]||{}),c=a.brightness,e=a.color||void 0!==c&&D(e).brighten(a.brightness).get()||\\ne,h=a[m]||h,u=a[b]||u,k=a.dashStyle||k);m={fill:e,stroke:h,\\\"stroke-width\\\":u};k&&(m.dashstyle=k);return m},drawPoints:function(){var a=this,c=this.chart,d=a.options,m=c.renderer,k=d.animationLimit||250,b;E(a.points,function(e){var h=e.graphic,u=h&&c.pointCountp;++p)c=w[p],a=2>p||2===p&&/%$/.test(c),w[p]=q(c,[A,f,y,w[2]][p])+(a?r:0);w[3]>w[2]&&(w[3]=w[2]);return w},getStartAndEndRadians:function(a,f){a=D(a)?a:0;f=D(f)&&f>a&&360>f-a?f:a+360;return{start:C*(a+-90),end:C*(f+-90)}}}})(L);(function(a){var C=a.addEvent,D=a.CenteredSeriesMixin,E=a.defined,q=a.each,n=a.extend,f=D.getStartAndEndRadians,r=a.inArray,A=a.noop,w=a.pick,y=a.Point,\\np=a.Series,c=a.seriesType,d=a.setAnimation;c(\\\"pie\\\",\\\"line\\\",{center:[null,null],clip:!1,colorByPoint:!0,dataLabels:{allowOverlap:!0,distance:30,enabled:!0,formatter:function(){return this.point.isNull?void 0:this.point.name},x:0},ignoreHiddenPoint:!0,legendType:\\\"point\\\",marker:null,size:null,showInLegend:!1,slicedOffset:10,stickyTracking:!1,tooltip:{followPointer:!0},borderColor:\\\"#ffffff\\\",borderWidth:1,states:{hover:{brightness:.1}}},{isCartesian:!1,requireSorting:!1,directTouch:!0,noSharedTooltip:!0,\\ntrackerGroups:[\\\"group\\\",\\\"dataLabelsGroup\\\"],axisTypes:[],pointAttribs:a.seriesTypes.column.prototype.pointAttribs,animate:function(a){var c=this,b=c.points,e=c.startAngleRad;a||(q(b,function(a){var b=a.graphic,d=a.shapeArgs;b&&(b.attr({r:a.startR||c.center[3]/2,start:e,end:e}),b.animate({r:d.r,start:d.start,end:d.end},c.options.animation))}),c.animate=null)},updateTotals:function(){var a,c=0,b=this.points,e=b.length,d,f=this.options.ignoreHiddenPoint;for(a=0;a1.5*Math.PI?\\nz-=2*Math.PI:z<-Math.PI/2&&(z+=2*Math.PI);B.slicedTranslation={translateX:Math.round(Math.cos(z)*e),translateY:Math.round(Math.sin(z)*e)};t=Math.cos(z)*a[2]/2;l=Math.sin(z)*a[2]/2;B.tooltipPos=[a[0]+.7*t,a[1]+.7*l];B.half=z<-Math.PI/2||z>Math.PI/2?1:0;B.angle=z;m=Math.min(d,B.labelDistance/5);B.labelPos=[a[0]+t+Math.cos(z)*B.labelDistance,a[1]+l+Math.sin(z)*B.labelDistance,a[0]+t+Math.cos(z)*m,a[1]+l+Math.sin(z)*m,a[0]+t,a[1]+l,0>B.labelDistance?\\\"center\\\":B.half?\\\"right\\\":\\\"left\\\",z]}},drawGraph:null,\\ndrawPoints:function(){var a=this,c=a.chart.renderer,b,e,d,f,t=a.options.shadow;t&&!a.shadowGroup&&(a.shadowGroup=c.g(\\\"shadow\\\").add(a.group));q(a.points,function(h){e=h.graphic;if(h.isNull)e&&(h.graphic=e.destroy());else{f=h.shapeArgs;b=h.getTranslate();var k=h.shadowGroup;t&&!k&&(k=h.shadowGroup=c.g(\\\"shadow\\\").add(a.shadowGroup));k&&k.attr(b);d=a.pointAttribs(h,h.selected&&\\\"select\\\");e?e.setRadialReference(a.center).attr(d).animate(n(f,b)):(h.graphic=e=c[h.shapeType](f).setRadialReference(a.center).attr(b).add(a.group),\\ne.attr(d).attr({\\\"stroke-linejoin\\\":\\\"round\\\"}).shadow(t,k));e.attr({visibility:h.visible?\\\"inherit\\\":\\\"hidden\\\"});e.addClass(h.getClassName())}})},searchPoint:A,sortByAngle:function(a,c){a.sort(function(a,e){return void 0!==a.angle&&(e.angle-a.angle)*c})},drawLegendSymbol:a.LegendSymbolMixin.drawRectangle,getCenter:D.getCenter,getSymbol:A},{init:function(){y.prototype.init.apply(this,arguments);var a=this,c;a.name=w(a.name,\\\"Slice\\\");c=function(b){a.slice(\\\"select\\\"===b.type)};C(a,\\\"select\\\",c);C(a,\\\"unselect\\\",\\nc);return a},isValid:function(){return a.isNumber(this.y,!0)&&0<=this.y},setVisible:function(a,c){var b=this,e=b.series,d=e.chart,k=e.options.ignoreHiddenPoint;c=w(c,k);a!==b.visible&&(b.visible=b.options.visible=a=void 0===a?!b.visible:a,e.options.data[r(b,e.data)]=b.options,q([\\\"graphic\\\",\\\"dataLabel\\\",\\\"connector\\\",\\\"shadowGroup\\\"],function(c){if(b[c])b[c][a?\\\"show\\\":\\\"hide\\\"](!0)}),b.legendItem&&d.legend.colorizeItem(b,a),a||\\\"hover\\\"!==b.state||b.setState(\\\"\\\"),k&&(e.isDirty=!0),c&&d.redraw())},slice:function(a,\\nc,b){var e=this.series;d(b,e.chart);w(c,!0);this.sliced=this.options.sliced=E(a)?a:!this.sliced;e.options.data[r(this,e.data)]=this.options;this.graphic.animate(this.getTranslate());this.shadowGroup&&this.shadowGroup.animate(this.getTranslate())},getTranslate:function(){return this.sliced?this.slicedTranslation:{translateX:0,translateY:0}},haloPath:function(a){var c=this.shapeArgs;return this.sliced||!this.visible?[]:this.series.chart.renderer.symbols.arc(c.x,c.y,c.r+a,c.r+a,{innerR:this.shapeArgs.r-\\n1,start:c.start,end:c.end})}})})(L);(function(a){var C=a.addEvent,D=a.arrayMax,E=a.defined,q=a.each,n=a.extend,f=a.format,r=a.map,A=a.merge,w=a.noop,y=a.pick,p=a.relativeLength,c=a.Series,d=a.seriesTypes,m=a.some,k=a.stableSort;a.distribute=function(b,c,d){function e(a,b){return a.target-b.target}var h,f=!0,n=b,v=[],p;p=0;var l=n.reducedLen||c;for(h=b.length;h--;)p+=b[h].size;if(p>l){k(b,function(a,b){return(b.rank||0)-(a.rank||0)});for(p=h=0;p<=l;)p+=b[h].size,h++;v=b.splice(h-1,b.length)}k(b,e);\\nfor(b=r(b,function(a){return{size:a.size,targets:[a.target],align:y(a.align,.5)}});f;){for(h=b.length;h--;)f=b[h],p=(Math.min.apply(0,f.targets)+Math.max.apply(0,f.targets))/2,f.pos=Math.min(Math.max(0,p-f.size*f.align),c-f.size);h=b.length;for(f=!1;h--;)0b[h].pos&&(b[h-1].size+=b[h].size,b[h-1].targets=b[h-1].targets.concat(b[h].targets),b[h-1].align=.5,b[h-1].pos+b[h-1].size>c&&(b[h-1].pos=c-b[h-1].size),b.splice(h,1),f=!0)}n.push.apply(n,v);h=0;m(b,function(b){var e=\\n0;if(m(b.targets,function(){n[h].pos=b.pos+e;if(Math.abs(n[h].pos-n[h].target)>d)return q(n.slice(0,h+1),function(a){delete a.pos}),n.reducedLen=(n.reducedLen||c)-.1*c,n.reducedLen>.1*c&&a.distribute(n,c,d),!0;e+=n[h].size;h++}))return!0});k(n,e)};c.prototype.drawDataLabels=function(){function b(a,b){var c=b.filter;return c?(b=c.operator,a=a[c.property],c=c.value,\\\"\\\\x3e\\\"===b&&a>c||\\\"\\\\x3c\\\"===b&&a=c||\\\"\\\\x3c\\\\x3d\\\"===b&&a<=c||\\\"\\\\x3d\\\\x3d\\\"===b&&a==c||\\\"\\\\x3d\\\\x3d\\\\x3d\\\"===b&&a===c?!0:!1):!0}\\nvar c=this,d=c.chart,k=c.options,m=k.dataLabels,z=c.points,n,v,p=c.hasRendered||0,l,r,w=y(m.defer,!!k.animation),F=d.renderer;if(m.enabled||c._hasPointLabels)c.dlProcessOptions&&c.dlProcessOptions(m),r=c.plotGroup(\\\"dataLabelsGroup\\\",\\\"data-labels\\\",w&&!p?\\\"hidden\\\":\\\"visible\\\",m.zIndex||6),w&&(r.attr({opacity:+p}),p||C(c,\\\"afterAnimate\\\",function(){c.visible&&r.show(!0);r[k.animation?\\\"animate\\\":\\\"attr\\\"]({opacity:1},{duration:200})})),v=m,q(z,function(e){var g,h=e.dataLabel,z,t,B=e.connector,u=!h,p;n=e.dlOptions||\\ne.options&&e.options.dataLabels;(g=y(n&&n.enabled,v.enabled)&&!e.isNull)&&(g=!0===b(e,n||m));g&&(m=A(v,n),z=e.getLabelConfig(),p=m[e.formatPrefix+\\\"Format\\\"]||m.format,l=E(p)?f(p,z,d.time):(m[e.formatPrefix+\\\"Formatter\\\"]||m.formatter).call(z,m),p=m.style,z=m.rotation,p.color=y(m.color,p.color,c.color,\\\"#000000\\\"),\\\"contrast\\\"===p.color&&(e.contrastColor=F.getContrast(e.color||c.color),p.color=m.inside||0>y(e.labelDistance,m.distance)||k.stacking?e.contrastColor:\\\"#000000\\\"),k.cursor&&(p.cursor=k.cursor),t=\\n{fill:m.backgroundColor,stroke:m.borderColor,\\\"stroke-width\\\":m.borderWidth,r:m.borderRadius||0,rotation:z,padding:m.padding,zIndex:1},a.objectEach(t,function(a,b){void 0===a&&delete t[b]}));!h||g&&E(l)?g&&E(l)&&(h?t.text=l:(h=e.dataLabel=z?F.text(l,0,-9999).addClass(\\\"highcharts-data-label\\\"):F.label(l,0,-9999,m.shape,null,null,m.useHTML,null,\\\"data-label\\\"),h.addClass(\\\" highcharts-data-label-color-\\\"+e.colorIndex+\\\" \\\"+(m.className||\\\"\\\")+(m.useHTML?\\\" highcharts-tracker\\\":\\\"\\\"))),h.attr(t),h.css(p).shadow(m.shadow),\\nh.added||h.add(r),c.alignDataLabel(e,h,m,null,u)):(e.dataLabel=h=h.destroy(),B&&(e.connector=B.destroy()))});a.fireEvent(this,\\\"afterDrawDataLabels\\\")};c.prototype.alignDataLabel=function(a,c,d,k,m){var b=this.chart,e=b.inverted,h=y(a.dlBox&&a.dlBox.centerX,a.plotX,-9999),f=y(a.plotY,-9999),l=c.getBBox(),t,u=d.rotation,p=d.align,B=this.visible&&(a.series.forceDL||b.isInsidePlot(h,Math.round(f),e)||k&&b.isInsidePlot(h,e?k.x+1:k.y+k.height-1,e)),g=\\\"justify\\\"===y(d.overflow,\\\"justify\\\");if(B&&(t=d.style.fontSize,\\nt=b.renderer.fontMetrics(t,c).b,k=n({x:e?this.yAxis.len-f:h,y:Math.round(e?this.xAxis.len-h:f),width:0,height:0},k),n(d,{width:l.width,height:l.height}),u?(g=!1,h=b.renderer.rotCorr(t,u),h={x:k.x+d.x+k.width/2+h.x,y:k.y+d.y+{top:0,middle:.5,bottom:1}[d.verticalAlign]*k.height},c[m?\\\"attr\\\":\\\"animate\\\"](h).attr({align:p}),f=(u+720)%360,f=180f,\\\"left\\\"===p?h.y-=f?l.height:0:\\\"center\\\"===p?(h.x-=l.width/2,h.y-=l.height/2):\\\"right\\\"===p&&(h.x-=l.width,h.y-=f?0:l.height),c.placed=!0,c.alignAttr=h):(c.align(d,\\nnull,k),h=c.alignAttr),g?a.isLabelJustified=this.justifyDataLabel(c,d,h,l,k,m):y(d.crop,!0)&&(B=b.isInsidePlot(h.x,h.y)&&b.isInsidePlot(h.x+l.width,h.y+l.height)),d.shape&&!u))c[m?\\\"attr\\\":\\\"animate\\\"]({anchorX:e?b.plotWidth-a.plotY:a.plotX,anchorY:e?b.plotHeight-a.plotX:a.plotY});B||(c.attr({y:-9999}),c.placed=!1)};c.prototype.justifyDataLabel=function(a,c,d,k,f,m){var b=this.chart,e=c.align,h=c.verticalAlign,l,z,t=a.box?0:a.padding||0;l=d.x+t;0>l&&(\\\"right\\\"===e?c.align=\\\"left\\\":c.x=-l,z=!0);l=d.x+k.width-\\nt;l>b.plotWidth&&(\\\"left\\\"===e?c.align=\\\"right\\\":c.x=b.plotWidth-l,z=!0);l=d.y+t;0>l&&(\\\"bottom\\\"===h?c.verticalAlign=\\\"top\\\":c.y=-l,z=!0);l=d.y+k.height-t;l>b.plotHeight&&(\\\"top\\\"===h?c.verticalAlign=\\\"bottom\\\":c.y=b.plotHeight-l,z=!0);z&&(a.placed=!m,a.align(c,null,f));return z};d.pie&&(d.pie.prototype.drawDataLabels=function(){var b=this,d=b.data,h,k=b.chart,f=b.options.dataLabels,m=y(f.connectorPadding,10),n=y(f.connectorWidth,1),v=k.plotWidth,p=k.plotHeight,l=Math.round(k.chartWidth/3),r,w=b.center,F=w[2]/\\n2,B=w[1],g,x,A,O,M=[[],[]],C,P,J,T,S=[0,0,0,0];b.visible&&(f.enabled||b._hasPointLabels)&&(q(d,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(b),q(d,function(a){a.dataLabel&&(a.visible?(M[a.half].push(a),a.dataLabel._pos=null,!E(f.style.width)&&!E(a.options.dataLabels&&a.options.dataLabels.style&&a.options.dataLabels.style.width)&&a.dataLabel.getBBox().width>\\nl&&(a.dataLabel.css({width:.7*l}),a.dataLabel.shortened=!0)):a.dataLabel=a.dataLabel.destroy())}),q(M,function(c,d){var e,l,z=c.length,t=[],n;if(z)for(b.sortByAngle(c,d-.5),0h.bottom-2?e:P,d,h),g._attr={visibility:J,align:A[6]},g._pos={x:C+f.x+({left:m,right:-m}[A[6]]||0),y:P+f.y-10},A.x=C,A.y=P,y(f.crop,\\n!0)&&(x=g.getBBox().width,e=null,C-xv-m&&0===d&&(e=Math.round(C+x-v+m),S[1]=Math.max(e,S[1])),0>P-O/2?S[0]=Math.max(Math.round(-P+O/2),S[0]):P+O/2>p&&(S[2]=Math.max(Math.round(P+O/2-p),S[2])),g.sideOverflow=e)}),0===D(S)||this.verifyDataLabelOverflow(S))&&(this.placeDataLabels(),n&&q(this.points,function(a){var c;r=a.connector;if((g=a.dataLabel)&&g._pos&&a.visible&&0y(this.translatedThreshold,e.yAxis.len)),l=y(h.inside,!!this.options.stacking);m&&(k=A(m),0>k.y&&(k.height+=k.y,k.y=0),m=k.y+k.height-e.yAxis.len,0a+b||h+nc+d||f+zthis.pointCount))},pan:function(a,b){var c=this,d=c.hoverPoints,e;d&&r(d,function(a){a.setState()});r(\\\"xy\\\"===b?[1,0]:\\n[1],function(b){b=c[b?\\\"xAxis\\\":\\\"yAxis\\\"][0];var d=b.horiz,h=a[d?\\\"chartX\\\":\\\"chartY\\\"],d=d?\\\"mouseDownX\\\":\\\"mouseDownY\\\",l=c[d],g=(b.pointRange||0)/2,k=b.reversed&&!c.inverted||!b.reversed&&c.inverted?-1:1,f=b.getExtremes(),m=b.toValue(l-h,!0)+g*k,k=b.toValue(l+b.len-h,!0)-g*k,n=k=f(q.minWidth,0)&&this.chartHeight>=f(q.minHeight,0)}).call(this)&&n.push(a._id)};C.prototype.currentOptions=\\nfunction(f){function w(f,c,d,m){var k;a.objectEach(f,function(a,e){if(!m&&-1e.length||void 0===f)return a.call(this,d,f,k,b);l=e.length;for(m=0;mk;e[m]5*h||r){if(e[m]>F){for(p=a.call(this,\\nd,e[c],e[m],b);p.length&&p[0]<=F;)p.shift();p.length&&(F=p[p.length-1]);w=w.concat(p)}c=m+1}if(r)break}a=p.info;if(u&&a.unitRange<=y.hour){m=w.length-1;for(c=1;ck?g-1:g;for(x=void 0;u--;)c=m[u],k=Math.abs(x-c),x&&k<.8*\\nB&&(null===q||k<.8*q)?(v[w[u]]&&!v[w[u+1]]?(k=u+1,x=c):k=u,w.splice(k,1)):x=c}return w});r(D.prototype,{beforeSetTickPositions:function(){var a,d=[],m,k=!1,b,e=this.getExtremes(),h=e.min,u=e.max,t,p=this.isXAxis&&!!this.options.breaks,e=this.options.ordinal,q=Number.MAX_VALUE,v=this.chart.options.chart.ignoreHiddenSeries;b=\\\"highcharts-navigator-xaxis\\\"===this.options.className;!this.options.overscroll||this.max!==this.dataMax||this.chart.mouseIsDown&&!b||this.eventArgs&&(!this.eventArgs||\\\"navigator\\\"===\\nthis.eventArgs.trigger)||(this.max+=this.options.overscroll,!b&&n(this.userMin)&&(this.min+=this.options.overscroll));if(e||p){f(this.series,function(b,c){m=[];if(!(v&&!1===b.visible||!1===b.takeOrdinalPosition&&!p)&&(d=d.concat(b.processedXData),a=d.length,d.sort(function(a,b){return a-b}),q=Math.min(q,w(b.closestPointRange,q)),a)){for(c=0;cb||u-d[d.length-1]>b)&&(k=!0)}else this.options.overscroll&&(2===a?q=d[1]-d[0]:1===a?(q=this.options.overscroll,d=[d[0],d[0]+q]):q=this.overscrollPointsRange);k?(this.options.overscroll&&(this.overscrollPointsRange=q,d=d.concat(this.getOverscrollPositions())),this.ordinalPositions=d,b=this.ordinal2lin(Math.max(h,d[0]),!0),t=Math.max(this.ordinal2lin(Math.min(u,d[d.length-1]),!0),1),this.ordinalSlope=u=(u-h)/(t-b),this.ordinalOffset=h-b*u):(this.overscrollPointsRange=w(this.closestPointRange,\\nthis.overscrollPointsRange),this.ordinalPositions=this.ordinalSlope=this.ordinalOffset=void 0)}this.isOrdinal=e&&k;this.groupIntervalFactor=null},val2lin:function(a,d){var c=this.ordinalPositions;if(c){var k=c.length,b,e;for(b=k;b--;)if(c[b]===a){e=b;break}for(b=k-1;b--;)if(a>c[b]||0===b){a=(a-c[b])/(c[b+1]-c[b]);e=b+a;break}d=d?e:this.ordinalSlope*(e||0)+this.ordinalOffset}else d=a;return d},lin2val:function(a,d){var c=this.ordinalPositions;if(c){var k=this.ordinalSlope,b=this.ordinalOffset,e=c.length-\\n1,h;if(d)0>a?a=c[0]:a>e?a=c[e]:(e=Math.floor(a),h=a-e);else for(;e--;)if(d=k*e+b,a>=d){k=k*(e+1)+b;h=(a-d)/(k-d);break}return void 0!==h&&void 0!==c[e]?c[e]+(h?h*(c[e+1]-c[e]):0):a}return a},getExtendedPositions:function(){var a=this,d=a.chart,m=a.series[0].currentDataGrouping,k=a.ordinalIndex,b=m?m.count+m.unitName:\\\"raw\\\",e=a.options.overscroll,h=a.getExtremes(),n,t;k||(k=a.ordinalIndex={});k[b]||(n={series:[],chart:d,getExtremes:function(){return{min:h.dataMin,max:h.dataMax+e}},options:{ordinal:!0},\\nval2lin:D.prototype.val2lin,ordinal2lin:D.prototype.ordinal2lin},f(a.series,function(b){t={xAxis:n,xData:b.xData.slice(),chart:d,destroyGroupedData:A};t.xData=t.xData.concat(a.getOverscrollPositions());t.options={dataGrouping:m?{enabled:!0,forced:!0,approximation:\\\"open\\\",units:[[m.unitName,[m.count]]]}:{enabled:!1}};b.processData.apply(t);n.series.push(t)}),a.beforeSetTickPositions.apply(n),k[b]=n.ordinalPositions);return k[b]},getOverscrollPositions:function(){var c=this.options.overscroll,d=this.overscrollPointsRange,\\nf=[],k=this.dataMax;if(a.defined(d))for(f.push(k);k<=this.dataMax+c;)k+=d,f.push(k);return f},getGroupIntervalFactor:function(a,d,f){var c;f=f.processedXData;var b=f.length,e=[];c=this.groupIntervalFactor;if(!c){for(c=0;ch?(v=l,A=c.ordinalPositions?c:l):(v=c.ordinalPositions?c:l,A=l),l=A.ordinalPositions,t>l[l.length-1]&&l.push(t),this.fixedRange=r-p,h=c.toFixedRange(null,null,w.apply(v,[y.apply(v,[p,!0])+h,!0]),w.apply(A,[y.apply(A,[r,!0])+h,!0])),h.min>=Math.min(n.dataMin,p)&&h.max<=Math.max(t,r)+k&&c.setExtremes(h.min,h.max,!0,!1,{trigger:\\\"pan\\\"}),this.mouseDownX=b,q(this.container,{cursor:\\\"move\\\"})):e=!0}else e=!0;e&&(k&&(c.max=c.dataMax+k),a.apply(this,Array.prototype.slice.call(arguments,\\n1)))})})(L);(function(a){function C(){return Array.prototype.slice.call(arguments,1)}function D(a){a.apply(this);this.drawBreaks(this.xAxis,[\\\"x\\\"]);this.drawBreaks(this.yAxis,q(this.pointArrayMap,[\\\"y\\\"]))}var E=a.addEvent,q=a.pick,n=a.wrap,f=a.each,r=a.extend,A=a.isArray,w=a.fireEvent,y=a.Axis,p=a.Series;r(y.prototype,{isInBreak:function(a,d){var c=a.repeat||Infinity,f=a.from,b=a.to-a.from;d=d>=f?(d-f)%c:c-(f-d)%c;return a.inclusive?d<=b:d=c)break;else if(a.isInBreak(b,c)){d-=c-b.from;break}return d},a.lin2val=function(c){var d,b;for(b=0;b=c);b++)d.ton;)v-=m;for(;vb.to||e>b.from&&nb.from&&nb.from&&n>b.to&&nc&&(c=d);k--;)f[k+1].x-f[k].x>c&&(d=(f[k].x+f[k+1].x)/2,f.splice(k+1,0,{isNull:!0,x:d}),this.options.stacking&&(d=b.stacks[this.stackKey][d]=new a.StackItem(b,b.options.stackLabels,!1,d,this.stack),d.total=0));return this.getGraphPath(f)};n(a.seriesTypes.column.prototype,\\\"drawPoints\\\",D);n(a.Series.prototype,\\\"drawPoints\\\",D)})(L);(function(a){var C=a.addEvent,D=a.arrayMax,E=a.arrayMin,q=a.Axis,n=a.defaultPlotOptions,f=a.defined,r=a.each,A=a.extend,w=a.format,y=a.isNumber,\\np=a.merge,c=a.pick,d=a.Point,m=a.Series,k=a.Tooltip,b=a.wrap,e=m.prototype,h=e.processData,u=e.generatePoints,t={approximation:\\\"average\\\",groupPixelWidth:2,dateTimeLabelFormats:{millisecond:[\\\"%A, %b %e, %H:%M:%S.%L\\\",\\\"%A, %b %e, %H:%M:%S.%L\\\",\\\"-%H:%M:%S.%L\\\"],second:[\\\"%A, %b %e, %H:%M:%S\\\",\\\"%A, %b %e, %H:%M:%S\\\",\\\"-%H:%M:%S\\\"],minute:[\\\"%A, %b %e, %H:%M\\\",\\\"%A, %b %e, %H:%M\\\",\\\"-%H:%M\\\"],hour:[\\\"%A, %b %e, %H:%M\\\",\\\"%A, %b %e, %H:%M\\\",\\\"-%H:%M\\\"],day:[\\\"%A, %b %e, %Y\\\",\\\"%A, %b %e\\\",\\\"-%A, %b %e, %Y\\\"],week:[\\\"Week from %A, %b %e, %Y\\\",\\n\\\"%A, %b %e\\\",\\\"-%A, %b %e, %Y\\\"],month:[\\\"%B %Y\\\",\\\"%B\\\",\\\"-%B %Y\\\"],year:[\\\"%Y\\\",\\\"%Y\\\",\\\"-%Y\\\"]}},z={line:{},spline:{},area:{},areaspline:{},column:{approximation:\\\"sum\\\",groupPixelWidth:10},arearange:{approximation:\\\"range\\\"},areasplinerange:{approximation:\\\"range\\\"},columnrange:{approximation:\\\"range\\\",groupPixelWidth:10},candlestick:{approximation:\\\"ohlc\\\",groupPixelWidth:10},ohlc:{approximation:\\\"ohlc\\\",groupPixelWidth:5}},I=a.defaultDataGroupingUnits=[[\\\"millisecond\\\",[1,2,5,10,20,25,50,100,200,500]],[\\\"second\\\",[1,2,5,\\n10,15,30]],[\\\"minute\\\",[1,2,5,10,15,30]],[\\\"hour\\\",[1,2,3,4,6,8,12]],[\\\"day\\\",[1]],[\\\"week\\\",[1]],[\\\"month\\\",[1,3,6]],[\\\"year\\\",null]],v=a.approximations={sum:function(a){var b=a.length,c;if(!b&&a.hasNulls)c=null;else if(b)for(c=0;b--;)c+=a[b];return c},average:function(a){var b=a.length;a=v.sum(a);y(a)&&b&&(a/=b);return a},averages:function(){var a=[];r(arguments,function(b){a.push(v.average(b))});return void 0===a[0]?void 0:a},open:function(a){return a.length?a[0]:a.hasNulls?null:void 0},high:function(a){return a.length?\\nD(a):a.hasNulls?null:void 0},low:function(a){return a.length?E(a):a.hasNulls?null:void 0},close:function(a){return a.length?a[a.length-1]:a.hasNulls?null:void 0},ohlc:function(a,b,c,d){a=v.open(a);b=v.high(b);c=v.low(c);d=v.close(d);if(y(a)||y(b)||y(c)||y(d))return[a,b,c,d]},range:function(a,b){a=v.low(a);b=v.high(b);if(y(a)||y(b))return[a,b];if(null===a&&null===b)return null}};e.groupData=function(a,b,c,d){var e=this.data,h=this.options.data,g=[],f=[],k=[],l=a.length,m,n,p=!!b,u=[];d=\\\"function\\\"===\\ntypeof d?d:v[d]||z[this.type]&&v[z[this.type].approximation]||v[t.approximation];var q=this.pointArrayMap,w=q&&q.length,A=0;n=0;var G,I;w?r(q,function(){u.push([])}):u.push([]);G=w||1;for(I=0;I<=l&&!(a[I]>=c[0]);I++);for(I;I<=l;I++){for(;void 0!==c[A+1]&&a[I]>=c[A+1]||I===l;){m=c[A];this.dataGroupInfo={start:n,length:u[0].length};n=d.apply(this,u);void 0!==n&&(g.push(m),f.push(n),k.push(this.dataGroupInfo));n=I;for(m=0;mthis.chart.plotSizeX/d||b&&h.forced)&&(e=!0);return e?d:0};q.prototype.setDataGrouping=function(a,b){var d;b=c(b,!0);a||(a={forced:!1,units:null});if(this instanceof q)for(d=this.series.length;d--;)this.series[d].update({dataGrouping:a},!1);else r(this.chart.options.series,function(b){b.dataGrouping=\\na},!1);this.ordinalSlope=null;b&&this.chart.redraw()}})(L);(function(a){var C=a.each,D=a.Point,E=a.seriesType,q=a.seriesTypes;E(\\\"ohlc\\\",\\\"column\\\",{lineWidth:1,tooltip:{pointFormat:'\\\\x3cspan style\\\\x3d\\\"color:{point.color}\\\"\\\\x3e\\\\u25cf\\\\x3c/span\\\\x3e \\\\x3cb\\\\x3e {series.name}\\\\x3c/b\\\\x3e\\\\x3cbr/\\\\x3eOpen: {point.open}\\\\x3cbr/\\\\x3eHigh: {point.high}\\\\x3cbr/\\\\x3eLow: {point.low}\\\\x3cbr/\\\\x3eClose: {point.close}\\\\x3cbr/\\\\x3e'},threshold:null,states:{hover:{lineWidth:3}},stickyTracking:!0},{directTouch:!1,pointArrayMap:[\\\"open\\\",\\n\\\"high\\\",\\\"low\\\",\\\"close\\\"],toYData:function(a){return[a.open,a.high,a.low,a.close]},pointValKey:\\\"close\\\",pointAttrToOptions:{stroke:\\\"color\\\",\\\"stroke-width\\\":\\\"lineWidth\\\"},pointAttribs:function(a,f){f=q.column.prototype.pointAttribs.call(this,a,f);var n=this.options;delete f.fill;!a.options.color&&n.upColor&&a.openA)););C(r,function(a,c){var d;a.plotX+=h;if(void 0===a.plotY||k)0<=a.plotX&&a.plotX<=b.len?k?(a.plotY=b.translate(a.x,0,1,0,1),a.plotX=D(a.y)?e.translate(a.y,0,0,0,1):0):a.plotY=f.chartHeight-b.bottom-(b.opposite?b.height:0)+b.offset-e.top:a.shapeArgs={};(y=r[c-1])&&y.plotX===a.plotX&&(void 0===y.stackIndex&&(y.stackIndex=0),d=y.stackIndex+1);a.stackIndex=d});this.onSeries=p}}}(L);(function(a,C){function D(a){p[a+\\\"pin\\\"]=\\nfunction(c,f,k,b,e){var d=e&&e.anchorX;e=e&&e.anchorY;\\\"circle\\\"===a&&b>k&&(c-=Math.round((b-k)/2),k=b);c=p[a](c,f,k,b);d&&e&&(c.push(\\\"M\\\",\\\"circle\\\"===a?c[1]-c[4]:c[1]+c[4]/2,f>e?f:f+b,\\\"L\\\",d,e),c=c.concat(p.circle(d-1,e-1,2,2)));return c}}var E=a.addEvent,q=a.each,n=a.merge,f=a.noop,r=a.Renderer,A=a.seriesType,w=a.TrackerMixin,y=a.VMLRenderer,p=a.SVGRenderer.prototype.symbols;A(\\\"flags\\\",\\\"column\\\",{pointRange:0,allowOverlapX:!1,shape:\\\"flag\\\",stackDistance:12,textAlign:\\\"center\\\",tooltip:{pointFormat:\\\"{point.text}\\\\x3cbr/\\\\x3e\\\"},\\nthreshold:null,y:-30,fillColor:\\\"#ffffff\\\",lineWidth:1,states:{hover:{lineColor:\\\"#000000\\\",fillColor:\\\"#ccd6eb\\\"}},style:{fontSize:\\\"11px\\\",fontWeight:\\\"bold\\\"}},{sorted:!1,noSharedTooltip:!0,allowDG:!1,takeOrdinalPosition:!1,trackerGroups:[\\\"markerGroup\\\"],forceCrop:!0,init:a.Series.prototype.init,pointAttribs:function(a,d){var c=this.options,f=a&&a.color||this.color,b=c.lineColor,e=a&&a.lineWidth;a=a&&a.fillColor||c.fillColor;d&&(a=c.states[d].fillColor,b=c.states[d].lineColor,e=c.states[d].lineWidth);return{fill:a||\\nf,stroke:b||f,\\\"stroke-width\\\":e||c.lineWidth||0}},translate:C.translate,getPlotBox:C.getPlotBox,drawPoints:function(){var c=this.points,d=this.chart,f=d.renderer,k,b,e=d.inverted,h=this.options,p=h.y,t,z,r,v,w,l,y=this.yAxis,A={},F=[];for(z=c.length;z--;)r=c[z],l=(e?r.plotY:r.plotX)>this.xAxis.len,k=r.plotX,v=r.stackIndex,t=r.options.shape||h.shape,b=r.plotY,void 0!==b&&(b=r.plotY+p-(void 0!==v&&v*h.stackDistance)),r.anchorX=v?void 0:r.plotX,w=v?void 0:r.plotY,v=r.graphic,void 0!==b&&0<=k&&!l?(v||\\n(v=r.graphic=f.label(\\\"\\\",null,null,t,null,null,h.useHTML).attr(this.pointAttribs(r)).css(n(h.style,r.style)).attr({align:\\\"flag\\\"===t?\\\"left\\\":\\\"center\\\",width:h.width,height:h.height,\\\"text-align\\\":h.textAlign}).addClass(\\\"highcharts-point\\\").add(this.markerGroup),r.graphic.div&&(r.graphic.div.point=r),v.shadow(h.shadow),v.isNew=!0),0=l?this.scrollbarRifles.hide():this.scrollbarRifles.show(!0),!1===c.showFull&&(0>=a&&1<=b?this.group.hide():this.group.show()),this.rendered=!0)},initEvents:function(){var a=this;a.mouseMoveHandler=function(b){var c=a.chart.pointer.normalize(b),d=a.options.vertical?\\\"chartY\\\":\\\"chartX\\\",e=a.initPositions;!a.grabbedCenter||b.touches&&0===b.touches[0][d]||(c=a.cursorToScrollbarPosition(c)[d],d=a[d],d=c-d,a.hasDragged=!0,a.updatePosition(e[0]+d,e[1]+d),a.hasDragged&&w(a,\\\"changed\\\",\\n{from:a.from,to:a.to,trigger:\\\"scrollbar\\\",DOMType:b.type,DOMEvent:b}))};a.mouseUpHandler=function(b){a.hasDragged&&w(a,\\\"changed\\\",{from:a.from,to:a.to,trigger:\\\"scrollbar\\\",DOMType:b.type,DOMEvent:b});a.grabbedCenter=a.hasDragged=a.chartX=a.chartY=null};a.mouseDownHandler=function(b){b=a.chart.pointer.normalize(b);b=a.cursorToScrollbarPosition(b);a.chartX=b.chartX;a.chartY=b.chartY;a.initPositions=[a.from,a.to];a.grabbedCenter=!0};a.buttonToMinClick=function(b){var c=q(a.to-a.from)*a.options.step;a.updatePosition(q(a.from-\\nc),q(a.to-c));w(a,\\\"changed\\\",{from:a.from,to:a.to,trigger:\\\"scrollbar\\\",DOMEvent:b})};a.buttonToMaxClick=function(b){var c=(a.to-a.from)*a.options.step;a.updatePosition(a.from+c,a.to+c);w(a,\\\"changed\\\",{from:a.from,to:a.to,trigger:\\\"scrollbar\\\",DOMEvent:b})};a.trackClick=function(b){var c=a.chart.pointer.normalize(b),d=a.to-a.from,e=a.y+a.scrollbarTop,f=a.x+a.scrollbarLeft;a.options.vertical&&c.chartY>e||!a.options.vertical&&c.chartX>f?a.updatePosition(a.from+d,a.to+d):a.updatePosition(a.from-d,a.to-d);\\nw(a,\\\"changed\\\",{from:a.from,to:a.to,trigger:\\\"scrollbar\\\",DOMEvent:b})}},cursorToScrollbarPosition:function(a){var b=this.options,b=b.minWidth>this.calculatedWidth?b.minWidth:0;return{chartX:(a.chartX-this.x-this.xOffset)/(this.barWidth-b),chartY:(a.chartY-this.y-this.yOffset)/(this.barWidth-b)}},updatePosition:function(a,b){1a&&(b=q(b-a),a=0);this.from=a;this.to=b},update:function(a){this.destroy();this.init(this.chart.renderer,c(!0,this.options,a),this.chart)},addEvents:function(){var a=\\nthis.options.inverted?[1,0]:[0,1],b=this.scrollbarButtons,c=this.scrollbarGroup.element,d=this.mouseDownHandler,e=this.mouseMoveHandler,f=this.mouseUpHandler,a=[[b[a[0]].element,\\\"click\\\",this.buttonToMinClick],[b[a[1]].element,\\\"click\\\",this.buttonToMaxClick],[this.track.element,\\\"click\\\",this.trackClick],[c,\\\"mousedown\\\",d],[c.ownerDocument,\\\"mousemove\\\",e],[c.ownerDocument,\\\"mouseup\\\",f]];y&&a.push([c,\\\"touchstart\\\",d],[c.ownerDocument,\\\"touchmove\\\",e],[c.ownerDocument,\\\"touchend\\\",f]);A(a,function(a){D.apply(null,\\na)});this._events=a},removeEvents:function(){A(this._events,function(a){m.apply(null,a)});this._events.length=0},destroy:function(){var a=this.chart.scroller;this.removeEvents();A([\\\"track\\\",\\\"scrollbarRifles\\\",\\\"scrollbar\\\",\\\"scrollbarGroup\\\",\\\"group\\\"],function(a){this[a]&&this[a].destroy&&(this[a]=this[a].destroy())},this);a&&this===a.scrollbar&&(a.scrollbar=null,r(a.scrollbarButtons))}};k(E.prototype,\\\"init\\\",function(a){var b=this;a.apply(b,Array.prototype.slice.call(arguments,1));b.options.scrollbar&&b.options.scrollbar.enabled&&\\n(b.options.scrollbar.vertical=!b.horiz,b.options.startOnTick=b.options.endOnTick=!1,b.scrollbar=new C(b.chart.renderer,b.options.scrollbar,b.chart),D(b.scrollbar,\\\"changed\\\",function(a){var c=Math.min(d(b.options.min,b.min),b.min,b.dataMin),e=Math.max(d(b.options.max,b.max),b.max,b.dataMax)-c,f;b.horiz&&!b.reversed||!b.horiz&&b.reversed?(f=c+e*this.to,c+=e*this.from):(f=c+e*(1-this.from),c+=e*(1-this.to));b.setExtremes(c,f,!0,!1,a)}))});k(E.prototype,\\\"render\\\",function(a){var b=Math.min(d(this.options.min,\\nthis.min),this.min,d(this.dataMin,this.min)),c=Math.max(d(this.options.max,this.max),this.max,d(this.dataMax,this.max)),e=this.scrollbar,h=this.titleOffset||0;a.apply(this,Array.prototype.slice.call(arguments,1));if(e){this.horiz?(e.position(this.left,this.top+this.height+2+this.chart.scrollbarsOffsets[1]+(this.opposite?0:h+this.axisTitleMargin+this.offset),this.width,this.height),h=1):(e.position(this.left+this.width+2+this.chart.scrollbarsOffsets[0]+(this.opposite?h+this.axisTitleMargin+this.offset:\\n0),this.top,this.width,this.height),h=0);if(!this.opposite&&!this.horiz||this.opposite&&this.horiz)this.chart.scrollbarsOffsets[h]+=this.scrollbar.size+this.scrollbar.options.margin;isNaN(b)||isNaN(c)||!f(this.min)||!f(this.max)?e.setRange(0,0):(h=(this.min-b)/(c-b),b=(this.max-b)/(c-b),this.horiz&&!this.reversed||!this.horiz&&this.reversed?e.setRange(h,b):e.setRange(1-b,1-h))}});k(E.prototype,\\\"getOffset\\\",function(a){var b=this.horiz?2:1,c=this.scrollbar;a.apply(this,Array.prototype.slice.call(arguments,\\n1));c&&(this.chart.scrollbarsOffsets=[0,0],this.chart.axisOffset[b]+=c.size+c.options.margin)});k(E.prototype,\\\"destroy\\\",function(a){this.scrollbar&&(this.scrollbar=this.scrollbar.destroy());a.apply(this,Array.prototype.slice.call(arguments,1))});a.Scrollbar=C})(L);(function(a){function C(a){this.init(a)}var D=a.addEvent,E=a.Axis,q=a.Chart,n=a.color,f=a.defaultOptions,r=a.defined,A=a.destroyObjectProperties,w=a.each,y=a.erase,p=a.error,c=a.extend,d=a.grep,m=a.hasTouch,k=a.isArray,b=a.isNumber,e=a.isObject,\\nh=a.isTouchDevice,u=a.merge,t=a.pick,z=a.removeEvent,I=a.Scrollbar,v=a.Series,G=a.seriesTypes,l=a.wrap,H=[].concat(a.defaultDataGroupingUnits),K=function(a){var c=d(arguments,b);if(c.length)return Math[a].apply(0,c)};H[4]=[\\\"day\\\",[1,2,3,4]];H[5]=[\\\"week\\\",[1,2,3]];G=void 0===G.areaspline?\\\"line\\\":\\\"areaspline\\\";c(f,{navigator:{height:40,margin:25,maskInside:!0,handles:{width:7,height:15,symbols:[\\\"navigator-handle\\\",\\\"navigator-handle\\\"],enabled:!0,lineWidth:1,backgroundColor:\\\"#f2f2f2\\\",borderColor:\\\"#999999\\\"},\\nmaskFill:n(\\\"#6685c2\\\").setOpacity(.3).get(),outlineColor:\\\"#cccccc\\\",outlineWidth:1,series:{type:G,fillOpacity:.05,lineWidth:1,compare:null,dataGrouping:{approximation:\\\"average\\\",enabled:!0,groupPixelWidth:2,smoothed:!0,units:H},dataLabels:{enabled:!1,zIndex:2},id:\\\"highcharts-navigator-series\\\",className:\\\"highcharts-navigator-series\\\",lineColor:null,marker:{enabled:!1},pointRange:0,threshold:null},xAxis:{overscroll:0,className:\\\"highcharts-navigator-xaxis\\\",tickLength:0,lineWidth:0,gridLineColor:\\\"#e6e6e6\\\",\\ngridLineWidth:1,tickPixelInterval:200,labels:{align:\\\"left\\\",style:{color:\\\"#999999\\\"},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}}});a.Renderer.prototype.symbols[\\\"navigator-handle\\\"]=function(a,b,c,d,e){a=e.width/2;b=Math.round(a/3)+.5;e=e.height;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-\\n3,\\\"M\\\",b-1,4,\\\"L\\\",b-1,e-3]};C.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)})},drawOutline:function(a,b,c,d){var e=this.navigatorOptions.maskInside,g=this.outline.strokeWidth(),f=g/2,g=g%2/2,h=this.outlineHeight,k=this.scrollbarHeight,l=this.size,\\nm=this.left-k,n=this.top;c?(m-=f,c=n+b+g,b=n+a+g,a=[\\\"M\\\",m+h,n-k-g,\\\"L\\\",m+h,c,\\\"L\\\",m,c,\\\"L\\\",m,b,\\\"L\\\",m+h,b,\\\"L\\\",m+h,n+l+k].concat(e?[\\\"M\\\",m+h,c-f,\\\"L\\\",m+h,b+f]:[])):(a+=m+k-g,b+=m+k-g,n+=f,a=[\\\"M\\\",m,n,\\\"L\\\",a,n,\\\"L\\\",a,n+h,\\\"L\\\",b,n+h,\\\"L\\\",b,n,\\\"L\\\",m+l+2*k,n].concat(e?[\\\"M\\\",a-f,n,\\\"L\\\",b+f,n]:[]));this.outline[d]({d:a})},drawMasks:function(a,b,c,d){var e=this.left,g=this.top,f=this.height,h,k,l,m;c?(l=[e,e,e],m=[g,g+a,g+b],k=[f,f,f],h=[a,b-a,this.size-b]):(l=[e,e+a,e+b],m=[g,g,g],k=[a,b-a,this.size-b],h=[f,f,f]);w(this.shades,\\nfunction(a,b){a[d]({x:l[b],y:m[b],width:k[b],height:h[b]})})},renderElements:function(){var a=this,b=a.navigatorOptions,c=b.maskInside,d=a.chart,e=d.inverted,f=d.renderer,h;a.navigatorGroup=h=f.g(\\\"navigator\\\").attr({zIndex:8,visibility:\\\"hidden\\\"}).add();var k={cursor:e?\\\"ns-resize\\\":\\\"ew-resize\\\"};w([!c,c,!c],function(c,d){a.shades[d]=f.rect().addClass(\\\"highcharts-navigator-mask\\\"+(1===d?\\\"-inside\\\":\\\"-outside\\\")).attr({fill:c?b.maskFill:\\\"rgba(0,0,0,0)\\\"}).css(1===d&&k).add(h)});a.outline=f.path().addClass(\\\"highcharts-navigator-outline\\\").attr({\\\"stroke-width\\\":b.outlineWidth,\\nstroke:b.outlineColor}).add(h);b.handles.enabled&&w([0,1],function(c){b.handles.inverted=d.inverted;a.handles[c]=f.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(h);var e=b.handles;a.handles[c].attr({fill:e.backgroundColor,stroke:e.borderColor,\\\"stroke-width\\\":e.lineWidth}).css(k)})},update:function(a){w(this.series||[],function(a){a.baseSeries&&\\ndelete a.baseSeries.navigatorSeries});this.destroy();u(!0,this.chart.options.navigator,this.options,a);this.init(this.chart)},render:function(c,d,e,f){var g=this.chart,h,k,l=this.scrollbarHeight,m,n=this.xAxis;h=n.fake?g.xAxis[0]:n;var p=this.navigatorEnabled,q,B=this.rendered;k=g.inverted;var v,x=g.xAxis[0].minRange,F=g.xAxis[0].options.maxRange;if(!this.hasDragged||r(e)){if(!b(c)||!b(d))if(B)e=0,f=t(n.width,h.width);else return;this.left=t(n.left,g.plotLeft+l+(k?g.plotWidth:0));this.size=q=m=t(n.len,\\n(k?g.plotHeight:g.plotWidth)-2*l);g=k?l:m+2*l;e=t(e,n.toPixels(c,!0));f=t(f,n.toPixels(d,!0));b(e)&&Infinity!==Math.abs(e)||(e=0,f=g);c=n.toValue(e,!0);d=n.toValue(f,!0);v=Math.abs(a.correctFloat(d-c));vF&&(this.grabbedLeft?e=n.toPixels(d-F,!0):this.grabbedRight&&(f=n.toPixels(c+F,!0)));this.zoomedMax=Math.min(Math.max(e,f,0),q);this.zoomedMin=Math.min(Math.max(this.fixedWidth?this.zoomedMax-this.fixedWidth:\\nMath.min(e,f),0),q);this.range=this.zoomedMax-this.zoomedMin;q=Math.round(this.zoomedMax);e=Math.round(this.zoomedMin);p&&(this.navigatorGroup.attr({visibility:\\\"visible\\\"}),B=B&&!this.hasDragged?\\\"animate\\\":\\\"attr\\\",this.drawMasks(e,q,k,B),this.drawOutline(e,q,k,B),this.navigatorOptions.handles.enabled&&(this.drawHandle(e,0,k,B),this.drawHandle(q,1,k,B)));this.scrollbar&&(k?(k=this.top-l,h=this.left-l+(p||!h.opposite?0:(h.titleOffset||0)+h.axisTitleMargin),l=m+2*l):(k=this.top+(p?this.height:-l),h=this.left-\\nl),this.scrollbar.position(h,k,g,l),this.scrollbar.setRange(this.zoomedMin/m,this.zoomedMax/m));this.rendered=!0}},addMouseEvents:function(){var a=this,b=a.chart,c=b.container,d=[],e,f;a.mouseMoveHandler=e=function(b){a.onMouseMove(b)};a.mouseUpHandler=f=function(b){a.onMouseUp(b)};d=a.getPartsEvents(\\\"mousedown\\\");d.push(D(c,\\\"mousemove\\\",e),D(c.ownerDocument,\\\"mouseup\\\",f));m&&(d.push(D(c,\\\"touchmove\\\",e),D(c.ownerDocument,\\\"touchend\\\",f)),d.concat(a.getPartsEvents(\\\"touchstart\\\")));a.eventsToUnbind=d;a.series&&\\na.series[0]&&d.push(D(a.series[0].xAxis,\\\"foundExtremes\\\",function(){b.navigator.modifyNavigatorAxisExtremes()}))},getPartsEvents:function(a){var b=this,c=[];w([\\\"shades\\\",\\\"handles\\\"],function(d){w(b[d],function(e,g){c.push(D(e.element,a,function(a){b[d+\\\"Mousedown\\\"](a,g)}))})});return c},shadesMousedown:function(a,b){a=this.chart.pointer.normalize(a);var c=this.chart,d=this.xAxis,e=this.zoomedMin,f=this.left,h=this.size,k=this.range,l=a.chartX,m,n;c.inverted&&(l=a.chartY,f=this.top);1===b?(this.grabbedCenter=\\nl,this.fixedWidth=k,this.dragOffset=l-e):(a=l-f-k/2,0===b?a=Math.max(0,a):2===b&&a+k>=h&&(a=h-k,d.reversed?(a-=k,n=this.getUnionExtremes().dataMin):m=this.getUnionExtremes().dataMax),a!==e&&(this.fixedWidth=k,b=d.toFixedRange(a,a+k,n,m),r(b.min)&&c.xAxis[0].setExtremes(Math.min(b.min,b.max),Math.max(b.min,b.max),!0,null,{trigger:\\\"navigator\\\"})))},handlesMousedown:function(a,b){this.chart.pointer.normalize(a);a=this.chart;var c=a.xAxis[0],d=a.inverted&&!c.reversed||!a.inverted&&c.reversed;0===b?(this.grabbedLeft=\\n!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},onMouseMove:function(a){var b=this,c=b.chart,d=b.left,e=b.navigatorSize,f=b.range,h=b.dragOffset,k=c.inverted;a.touches&&0===a.touches[0].pageX||(a=c.pointer.normalize(a),c=a.chartX,k&&(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,\\nc-d)):b.grabbedCenter&&(b.hasDragged=!0,ce+h-f&&(c=e+h-f),b.render(0,0,c-h,c-h+f)),b.hasDragged&&b.scrollbar&&b.scrollbar.options.liveRedraw&&(a.DOMType=a.type,setTimeout(function(){b.onMouseUp(a)},0)))},onMouseUp:function(a){var b=this.chart,c=this.xAxis,d=c&&c.reversed,e=this.scrollbar,f,h,k=a.DOMEvent||a;(!this.hasDragged||e&&e.hasDragged)&&\\\"scrollbar\\\"!==a.trigger||(e=this.getUnionExtremes(),this.zoomedMin===this.otherHandlePos?f=this.fixedExtreme:this.zoomedMax===this.otherHandlePos&&\\n(h=this.fixedExtreme),this.zoomedMax===this.size&&(h=d?e.dataMin:e.dataMax),0===this.zoomedMin&&(f=d?e.dataMax:e.dataMin),c=c.toFixedRange(this.zoomedMin,this.zoomedMax,f,h),r(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:k}));\\\"mousemove\\\"!==a.DOMType&&(this.grabbedLeft=this.grabbedRight=this.grabbedCenter=this.fixedWidth=this.fixedExtreme=this.otherHandlePos=this.hasDragged=this.dragOffset=\\nnull)},removeEvents:function(){this.eventsToUnbind&&(w(this.eventsToUnbind,function(a){a()}),this.eventsToUnbind=void 0);this.removeBaseSeriesEvents()},removeBaseSeriesEvents:function(){var a=this.baseSeries||[];this.navigatorEnabled&&a[0]&&(!1!==this.navigatorOptions.adaptToUpdatedData&&w(a,function(a){z(a,\\\"updatedData\\\",this.updatedDataHandler)},this),a[0].xAxis&&z(a[0].xAxis,\\\"foundExtremes\\\",this.modifyBaseAxisExtremes))},init:function(a){var b=a.options,c=b.navigator,d=c.enabled,e=b.scrollbar,f=\\ne.enabled,b=d?c.height:0,h=f?e.height:0;this.handles=[];this.shades=[];this.chart=a;this.setBaseSeries();this.height=b;this.scrollbarHeight=h;this.scrollbarEnabled=f;this.navigatorEnabled=d;this.navigatorOptions=c;this.scrollbarOptions=e;this.outlineHeight=b+h;this.opposite=t(c.opposite,!d&&a.inverted);var k=this,e=k.baseSeries,f=a.xAxis.length,l=a.yAxis.length,m=e&&e[0]&&e[0].xAxis||a.xAxis[0]||{options:{}};D(a,\\\"getMargins\\\",function(){var b=k.opposite?\\\"plotTop\\\":\\\"marginBottom\\\";a.inverted&&(b=k.opposite?\\n\\\"marginRight\\\":\\\"plotLeft\\\");a[b]=(a[b]||0)+(d||!a.inverted?k.outlineHeight:0)+c.margin});a.isDirtyBox=!0;k.navigatorEnabled?(k.xAxis=new E(a,u({breaks:m.options.breaks,ordinal:m.options.ordinal},c.xAxis,{id:\\\"navigator-x-axis\\\",yAxis:\\\"navigator-y-axis\\\",isX:!0,type:\\\"datetime\\\",index:f,offset:0,keepOrdinalPadding:!0,startOnTick:!1,endOnTick:!1,minPadding:0,maxPadding:0,zoomEnabled:!1},a.inverted?{offsets:[h,0,-h,0],width:b}:{offsets:[0,-h,0,h],height:b})),k.yAxis=new E(a,u(c.yAxis,{id:\\\"navigator-y-axis\\\",\\nalignTicks:!1,offset:0,index:l,zoomEnabled:!1},a.inverted?{width:b}:{height:b})),e||c.series.data?k.updateNavigatorSeries(!1):0===a.series.length&&(k.unbindRedraw=D(a,\\\"beforeRedraw\\\",function(){0a.inArray(c,l)?(c&&(z(c,\\\"updatedData\\\",e.updatedDataHandler),\\ndelete c.navigatorSeries),b.destroy(),!1):!0});l&&l.length&&w(l,function(a){var b=a.navigatorSeries,g=c({color:a.color,visible:a.visible},k(p)?f.navigator.series:p);b&&!1===e.navigatorOptions.adaptToUpdatedData||(q.name=\\\"Navigator \\\"+l.length,m=a.options||{},t=m.navigatorOptions||{},n=u(m,q,g,t),g=t.data||g.data,e.hasNavigatorData=e.hasNavigatorData||!!g,n.data=g||m.data&&m.data.slice(0),b&&b.options?b.update(n,d):(a.navigatorSeries=h.initSeries(n),a.navigatorSeries.baseSeries=a,v.push(a.navigatorSeries)))});\\nif(p.data&&(!l||!l.length)||k(p))e.hasNavigatorData=!1,p=a.splat(p),w(p,function(a,b){q.name=\\\"Navigator \\\"+(v.length+1);n=u(f.navigator.series,{color:h.series[b]&&!h.series[b].options.isInternal&&h.series[b].color||h.options.colors[b]||h.options.colors[0]},q,a);n.data=a.data;n.data&&(e.hasNavigatorData=!0,v.push(h.initSeries(n)))});b&&this.addBaseSeriesEvents()},addBaseSeriesEvents:function(){var a=this,b=a.baseSeries||[];b[0]&&b[0].xAxis&&D(b[0].xAxis,\\\"foundExtremes\\\",this.modifyBaseAxisExtremes);\\nw(b,function(b){D(b,\\\"show\\\",function(){this.navigatorSeries&&this.navigatorSeries.setVisible(!0,!1)});D(b,\\\"hide\\\",function(){this.navigatorSeries&&this.navigatorSeries.setVisible(!1,!1)});!1!==this.navigatorOptions.adaptToUpdatedData&&b.xAxis&&D(b,\\\"updatedData\\\",this.updatedDataHandler);D(b,\\\"remove\\\",function(){this.navigatorSeries&&(y(a.series,this.navigatorSeries),r(this.navigatorSeries.options)&&this.navigatorSeries.remove(!1),delete this.navigatorSeries)})},this)},modifyNavigatorAxisExtremes:function(){var a=\\nthis.xAxis,b;a.getExtremes&&(!(b=this.getUnionExtremes(!0))||b.dataMin===a.min&&b.dataMax===a.max||(a.min=b.dataMin,a.max=b.dataMax))},modifyBaseAxisExtremes:function(){var a=this.chart.navigator,c=this.getExtremes(),d=c.dataMin,e=c.dataMax,c=c.max-c.min,f=a.stickToMin,h=a.stickToMax,k=t(this.options.overscroll,0),l,m,n=a.series&&a.series[0],p=!!this.setExtremes;this.eventArgs&&\\\"rangeSelectorButton\\\"===this.eventArgs.trigger||(f&&(m=d,l=m+c),h&&(l=e+k,f||(m=Math.max(l-c,n&&n.xData?n.xData[0]:-Number.MAX_VALUE))),\\np&&(f||h)&&b(m)&&(this.min=this.userMin=m,this.max=this.userMax=l));a.stickToMin=a.stickToMax=null},updatedDataHandler:function(){var a=this.chart.navigator,c=this.navigatorSeries;a.stickToMax=a.xAxis.reversed?0===Math.round(a.zoomedMin):Math.round(a.zoomedMax)>=Math.round(a.size);a.stickToMin=b(this.xAxis.min)&&this.xAxis.min<=this.xData[0]&&(!this.chart.fixedRange||!a.stickToMax);c&&!a.hasNavigatorData&&(c.options.pointStart=this.xData[0],c.setData(this.options.data,!1,null,!1))},addChartEvents:function(){D(this.chart,\\n\\\"redraw\\\",function(){var a=this.navigator,b=a&&(a.baseSeries&&a.baseSeries[0]&&a.baseSeries[0].xAxis||a.scrollbar&&this.xAxis[0]);b&&a.render(b.min,b.max)})},destroy:function(){this.removeEvents();this.xAxis&&(y(this.chart.xAxis,this.xAxis),y(this.chart.axes,this.xAxis));this.yAxis&&(y(this.chart.yAxis,this.yAxis),y(this.chart.axes,this.yAxis));w(this.series||[],function(a){a.destroy&&a.destroy()});w(\\\"series xAxis yAxis shades outline scrollbarTrack scrollbarRifles scrollbarGroup scrollbar navigatorGroup rendered\\\".split(\\\" \\\"),\\nfunction(a){this[a]&&this[a].destroy&&this[a].destroy();this[a]=null},this);w([this.handles],function(a){A(a)},this)}};a.Navigator=C;l(E.prototype,\\\"zoom\\\",function(a,b,c){var d=this.chart,e=d.options,g=e.chart.zoomType,f=e.chart.pinchType,k=e.navigator,e=e.rangeSelector,l;this.isXAxis&&(k&&k.enabled||e&&e.enabled)&&(!h&&\\\"x\\\"===g||h&&\\\"x\\\"===f?d.resetZoomButton=\\\"blocked\\\":\\\"y\\\"===g?l=!1:(!h&&\\\"xy\\\"===g||h&&\\\"xy\\\"===f)&&this.options.range&&(d=this.previousZoom,r(b)?this.previousZoom=[this.min,this.max]:d&&(b=\\nd[0],c=d[1],delete this.previousZoom)));return void 0!==l?l:a.call(this,b,c)});D(q,\\\"beforeRender\\\",function(){var a=this.options;if(a.navigator.enabled||a.scrollbar.enabled)this.scroller=this.navigator=new C(this)});D(q,\\\"afterSetChartSize\\\",function(){var a=this.legend,b=this.navigator,c,d,e,f;b&&(d=a&&a.options,e=b.xAxis,f=b.yAxis,c=b.scrollbarHeight,this.inverted?(b.left=b.opposite?this.chartWidth-c-b.height:this.spacing[3]+c,b.top=this.plotTop+c):(b.left=this.plotLeft+c,b.top=b.navigatorOptions.top||\\nthis.chartHeight-b.height-c-this.spacing[2]-(this.rangeSelector&&this.extraBottomMargin?this.rangeSelector.getHeight():0)-(d&&\\\"bottom\\\"===d.verticalAlign&&d.enabled&&!d.floating?a.legendHeight+t(d.margin,10):0)),e&&f&&(this.inverted?e.options.left=f.options.left=b.left:e.options.top=f.options.top=b.top,e.setAxisSize(),f.setAxisSize()))});D(q,\\\"update\\\",function(a){var b=a.options.navigator||{},c=a.options.scrollbar||{};this.navigator||this.scroller||!b.enabled&&!c.enabled||(u(!0,this.options.navigator,\\nb),u(!0,this.options.scrollbar,c),delete a.options.navigator,delete a.options.scrollbar)});D(q,\\\"afterUpdate\\\",function(){this.navigator||this.scroller||!this.options.navigator.enabled&&!this.options.scrollbar.enabled||(this.scroller=this.navigator=new C(this))});l(v.prototype,\\\"addPoint\\\",function(a,b,c,d,f){var g=this.options.turboThreshold;g&&this.xData.length>g&&e(b,!0)&&this.chart.navigator&&p(20,!0);a.call(this,b,c,d,f)});D(q,\\\"afterAddSeries\\\",function(){this.navigator&&this.navigator.setBaseSeries(null,\\n!1)});D(v,\\\"afterUpdate\\\",function(){this.chart.navigator&&!this.options.isInternal&&this.chart.navigator.setBaseSeries(null,!1)});q.prototype.callbacks.push(function(a){var b=a.navigator;b&&a.xAxis[0]&&(a=a.xAxis[0].getExtremes(),b.render(a.min,a.max))})})(L);(function(a){function C(a){this.init(a)}var D=a.addEvent,E=a.Axis,q=a.Chart,n=a.css,f=a.createElement,r=a.defaultOptions,A=a.defined,w=a.destroyObjectProperties,y=a.discardElement,p=a.each,c=a.extend,d=a.fireEvent,m=a.isNumber,k=a.merge,b=a.pick,\\ne=a.pInt,h=a.splat,u=a.wrap;c(r,{rangeSelector:{verticalAlign:\\\"top\\\",buttonTheme:{\\\"stroke-width\\\":0,width:28,height:18,padding:2,zIndex:7},floating:!1,x:0,y:0,height:void 0,inputPosition:{align:\\\"right\\\",x:0,y:0},buttonPosition:{align:\\\"left\\\",x:0,y:0},labelStyle:{color:\\\"#666666\\\"}}});r.lang=k(r.lang,{rangeSelectorZoom:\\\"Zoom\\\",rangeSelectorFrom:\\\"From\\\",rangeSelectorTo:\\\"To\\\"});C.prototype={clickButton:function(a,c){var d=this,e=d.chart,f=d.buttonOptions[a],k=e.xAxis[0],n=e.scroller&&e.scroller.getUnionExtremes()||\\nk||{},t=n.dataMin,q=n.dataMax,r,g=k&&Math.round(Math.min(k.max,b(q,k.max))),u=f.type,z,n=f._range,w,y,A,C=f.dataGrouping;if(null!==t&&null!==q){e.fixedRange=n;C&&(this.forcedDataGrouping=!0,E.prototype.setDataGrouping.call(k||{chart:this.chart},C,!1));if(\\\"month\\\"===u||\\\"year\\\"===u)k?(u={range:f,max:g,chart:e,dataMin:t,dataMax:q},r=k.minFromRange.call(u),m(u.newMax)&&(g=u.newMax)):n=f;else if(n)r=Math.max(g-n,t),g=Math.min(r+n,q);else if(\\\"ytd\\\"===u)if(k)void 0===q&&(t=Number.MAX_VALUE,q=Number.MIN_VALUE,\\np(e.series,function(a){a=a.xData;t=Math.min(a[0],t);q=Math.max(a[a.length-1],q)}),c=!1),g=d.getYTDExtremes(q,t,e.time.useUTC),r=w=g.min,g=g.max;else{D(e,\\\"beforeRender\\\",function(){d.clickButton(a)});return}else\\\"all\\\"===u&&k&&(r=t,g=q);r+=f._offsetMin;g+=f._offsetMax;d.setSelected(a);k?k.setExtremes(r,g,b(c,1),null,{trigger:\\\"rangeSelectorButton\\\",rangeSelectorButton:f}):(z=h(e.options.xAxis)[0],A=z.range,z.range=n,y=z.min,z.min=w,D(e,\\\"load\\\",function(){z.range=A;z.min=y}))}},setSelected:function(a){this.selected=\\nthis.options.selected=a},defaultButtons:[{type:\\\"month\\\",count:1,text:\\\"1m\\\"},{type:\\\"month\\\",count:3,text:\\\"3m\\\"},{type:\\\"month\\\",count:6,text:\\\"6m\\\"},{type:\\\"ytd\\\",text:\\\"YTD\\\"},{type:\\\"year\\\",count:1,text:\\\"1y\\\"},{type:\\\"all\\\",text:\\\"All\\\"}],init:function(a){var b=this,c=a.options.rangeSelector,e=c.buttons||[].concat(b.defaultButtons),f=c.selected,h=function(){var a=b.minInput,c=b.maxInput;a&&a.blur&&d(a,\\\"blur\\\");c&&c.blur&&d(c,\\\"blur\\\")};b.chart=a;b.options=c;b.buttons=[];a.extraTopMargin=c.height;b.buttonOptions=e;this.unMouseDown=\\nD(a.container,\\\"mousedown\\\",h);this.unResize=D(a,\\\"resize\\\",h);p(e,b.computeButtonRange);void 0!==f&&e[f]&&this.clickButton(f,!1);D(a,\\\"load\\\",function(){a.xAxis&&a.xAxis[0]&&D(a.xAxis[0],\\\"setExtremes\\\",function(c){this.max-this.min!==a.fixedRange&&\\\"rangeSelectorButton\\\"!==c.trigger&&\\\"updatedData\\\"!==c.trigger&&b.forcedDataGrouping&&this.setDataGrouping(!1,!1)})})},updateButtonStates:function(){var a=this.chart,b=a.xAxis[0],c=Math.round(b.max-b.min),d=!b.hasVisibleSeries,e=a.scroller&&a.scroller.getUnionExtremes()||\\nb,f=e.dataMin,h=e.dataMax,a=this.getYTDExtremes(h,f,a.time.useUTC),k=a.min,n=a.max,q=this.selected,g=m(q),r=this.options.allButtonsEnabled,u=this.buttons;p(this.buttonOptions,function(a,e){var l=a._range,m=a.type,p=a.count||1,t=u[e],v=0;a=a._offsetMax-a._offsetMin;e=e===q;var z=l>h-f,w=l=864E5*{month:28,year:365}[m]*p-a&&c-36E5<=864E5*{month:31,year:366}[m]*p+a?l=!0:\\\"ytd\\\"===m?(l=n-k+a===c,x=!e):\\\"all\\\"===m&&(l=b.max-b.min>=h-f,B=!e&&g&&\\nl);m=!r&&(z||w||B||d);p=e&&l||l&&!g&&!x;m?v=3:p&&(g=!0,v=2);t.state!==v&&t.setState(v)})},computeButtonRange:function(a){var c=a.type,d=a.count||1,e={millisecond:1,second:1E3,minute:6E4,hour:36E5,day:864E5,week:6048E5};if(e[c])a._range=e[c]*d;else if(\\\"month\\\"===c||\\\"year\\\"===c)a._range=864E5*{month:30,year:365}[c]*d;a._offsetMin=b(a.offsetMin,0);a._offsetMax=b(a.offsetMax,0);a._range+=a._offsetMax-a._offsetMin},setInputValue:function(a,b){var c=this.chart.options.rangeSelector,d=this.chart.time,e=this[a+\\n\\\"Input\\\"];A(b)&&(e.previousValue=e.HCTime,e.HCTime=b);e.value=d.dateFormat(c.inputEditDateFormat||\\\"%Y-%m-%d\\\",e.HCTime);this[a+\\\"DateBox\\\"].attr({text:d.dateFormat(c.inputDateFormat||\\\"%b %e, %Y\\\",e.HCTime)})},showInput:function(a){var b=this.inputGroup,c=this[a+\\\"DateBox\\\"];n(this[a+\\\"Input\\\"],{left:b.translateX+c.x+\\\"px\\\",top:b.translateY+\\\"px\\\",width:c.width-2+\\\"px\\\",height:c.height-2+\\\"px\\\",border:\\\"2px solid silver\\\"})},hideInput:function(a){n(this[a+\\\"Input\\\"],{border:0,width:\\\"1px\\\",height:\\\"1px\\\"});this.setInputValue(a)},\\ndrawInput:function(a){function b(){var a=w.value,b=(q.inputDateParser||Date.parse)(a),c=h.xAxis[0],g=h.scroller&&h.scroller.xAxis?h.scroller.xAxis:c,f=g.dataMin,g=g.dataMax;b!==w.previousValue&&(w.previousValue=b,m(b)||(b=a.split(\\\"-\\\"),b=Date.UTC(e(b[0]),e(b[1])-1,e(b[2]))),m(b)&&(h.time.useUTC||(b+=6E4*(new Date).getTimezoneOffset()),u?b>d.maxInput.HCTime?b=void 0:bg&&(b=g),void 0!==b&&c.setExtremes(u?b:c.min,u?c.max:b,void 0,void 0,{trigger:\\\"rangeSelectorInput\\\"})))}\\nvar d=this,h=d.chart,p=h.renderer.style||{},l=h.renderer,q=h.options.rangeSelector,t=d.div,u=\\\"min\\\"===a,w,g,x=this.inputGroup;this[a+\\\"Label\\\"]=g=l.label(r.lang[u?\\\"rangeSelectorFrom\\\":\\\"rangeSelectorTo\\\"],this.inputGroup.offset).addClass(\\\"highcharts-range-label\\\").attr({padding:2}).add(x);x.offset+=g.width+5;this[a+\\\"DateBox\\\"]=l=l.label(\\\"\\\",x.offset).addClass(\\\"highcharts-range-input\\\").attr({padding:2,width:q.inputBoxWidth||90,height:q.inputBoxHeight||17,stroke:q.inputBoxBorderColor||\\\"#cccccc\\\",\\\"stroke-width\\\":1,\\n\\\"text-align\\\":\\\"center\\\"}).on(\\\"click\\\",function(){d.showInput(a);d[a+\\\"Input\\\"].focus()}).add(x);x.offset+=l.width+(u?10:0);this[a+\\\"Input\\\"]=w=f(\\\"input\\\",{name:a,className:\\\"highcharts-range-selector\\\",type:\\\"text\\\"},{top:h.plotTop+\\\"px\\\"},t);g.css(k(p,q.labelStyle));l.css(k({color:\\\"#333333\\\"},p,q.inputStyle));n(w,c({position:\\\"absolute\\\",border:0,width:\\\"1px\\\",height:\\\"1px\\\",padding:0,textAlign:\\\"center\\\",fontSize:p.fontSize,fontFamily:p.fontFamily,top:\\\"-9999em\\\"},q.inputStyle));w.onfocus=function(){d.showInput(a)};w.onblur=\\nfunction(){d.hideInput(a)};w.onchange=b;w.onkeypress=function(a){13===a.keyCode&&b()}},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}},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||0,c);e=e.getTime();return{max:Math.min(a||e,e),min:b}},render:function(a,c){var d=\\nthis,e=d.chart,h=e.renderer,k=e.container,m=e.options,n=m.exporting&&!1!==m.exporting.enabled&&m.navigation&&m.navigation.buttonOptions,q=r.lang,t=d.div,g=m.rangeSelector,m=g.floating,u=d.buttons,t=d.inputGroup,w=g.buttonTheme,z=g.buttonPosition,y=g.inputPosition,A=g.inputEnabled,C=w&&w.states,D=e.plotLeft,E,L=d.buttonGroup,R;R=d.rendered;var Y=d.options.verticalAlign,aa=e.legend,ba=aa&&aa.options,ca=z.y,Z=y.y,da=R||!1,X=0,U=0,V;if(!1!==g.enabled){R||(d.group=R=h.g(\\\"range-selector-group\\\").attr({zIndex:7}).add(),\\nd.buttonGroup=L=h.g(\\\"range-selector-buttons\\\").add(R),d.zoomText=h.text(q.rangeSelectorZoom,b(D+z.x,D),15).css(g.labelStyle).add(L),E=b(D+z.x,D)+d.zoomText.getBBox().width+5,p(d.buttonOptions,function(a,c){u[c]=h.button(a.text,E,0,function(){var b=a.events&&a.events.click,e;b&&(e=b.call(a));!1!==e&&d.clickButton(c);d.isActive=!0},w,C&&C.hover,C&&C.select,C&&C.disabled).attr({\\\"text-align\\\":\\\"center\\\"}).add(L);E+=u[c].width+b(g.buttonSpacing,5)}),!1!==A&&(d.div=t=f(\\\"div\\\",null,{position:\\\"relative\\\",height:0,\\nzIndex:1}),k.parentNode.insertBefore(t,k),d.inputGroup=t=h.g(\\\"input-group\\\").add(R),t.offset=0,d.drawInput(\\\"min\\\"),d.drawInput(\\\"max\\\")));D=e.plotLeft-e.spacing[3];d.updateButtonStates();n&&this.titleCollision(e)&&\\\"top\\\"===Y&&\\\"right\\\"===z.align&&z.y+L.getBBox().height-12<(n.y||0)+n.height&&(X=-40);\\\"left\\\"===z.align?V=z.x-e.spacing[3]:\\\"right\\\"===z.align&&(V=z.x+X-e.spacing[1]);L.align({y:z.y,width:L.getBBox().width,align:z.align,x:V},!0,e.spacingBox);d.group.placed=da;d.buttonGroup.placed=da;!1!==A&&(X=n&&\\nthis.titleCollision(e)&&\\\"top\\\"===Y&&\\\"right\\\"===y.align&&y.y-t.getBBox().height-12<(n.y||0)+n.height+e.spacing[0]?-40:0,\\\"left\\\"===y.align?V=D:\\\"right\\\"===y.align&&(V=-Math.max(e.axisOffset[1],-X)),t.align({y:y.y,width:t.getBBox().width,align:y.align,x:y.x+V-2},!0,e.spacingBox),k=t.alignAttr.translateX+t.alignOptions.x-X+t.getBBox().x+2,n=t.alignOptions.width,q=L.alignAttr.translateX+L.getBBox().x,V=L.getBBox().width+20,(y.align===z.align||q+V>k&&k+n>q&&ca=-X?0:-X),translateY:t.alignAttr.translateY+L.getBBox().height+10}),d.setInputValue(\\\"min\\\",a),d.setInputValue(\\\"max\\\",c),d.inputGroup.placed=da);d.group.align({verticalAlign:Y},!0,e.spacingBox);a=d.group.getBBox().height+20;c=d.group.alignAttr.translateY;\\\"bottom\\\"===Y&&(aa=ba&&\\\"bottom\\\"===ba.verticalAlign&&ba.enabled&&!ba.floating?aa.legendHeight+b(ba.margin,10):0,a=a+aa-20,U=c-a-(m?0:g.y)-10);if(\\\"top\\\"===Y)m&&(U=0),e.titleOffset&&(U=e.titleOffset+e.options.title.margin),U+=e.margin[0]-\\ne.spacing[0]||0;else if(\\\"middle\\\"===Y)if(Z===ca)U=0>Z?c+void 0:c;else if(Z||ca)U=0>Z||0>ca?U-Math.min(Z,ca):c-a+NaN;d.group.translate(g.x,g.y+Math.floor(U));!1!==A&&(d.minInput.style.marginTop=d.group.translateY+\\\"px\\\",d.maxInput.style.marginTop=d.group.translateY+\\\"px\\\");d.rendered=!0}},getHeight:function(){var a=this.options,b=this.group,c=a.y,d=a.buttonPosition.y,a=a.inputPosition.y,b=b?b.getBBox(!0).height+13+c:0,c=Math.min(a,d);if(0>a&&0>d||0d&&(e?a=c-f:c=a+f);m(a)&&m(c)||(a=c=void 0);return{min:a,max:c}};E.prototype.minFromRange=function(){var a=this.range,c={month:\\\"Month\\\",year:\\\"FullYear\\\"}[a.type],d,e=this.max,f,h,k=function(a,b){var d=new Date(a),e=d[\\\"get\\\"+c]();d[\\\"set\\\"+c](e+b);e===d[\\\"get\\\"+c]()&&d.setDate(0);return d.getTime()-a};m(a)?(d=e-a,h=a):(d=e+k(e,-a.count),this.chart&&(this.chart.fixedRange=\\ne-d));f=b(this.dataMin,Number.MIN_VALUE);m(d)||(d=f);d<=f&&(d=f,void 0===h&&(h=k(d,a.count)),this.newMax=Math.min(d+h,this.dataMax));m(e)||(d=void 0);return d};D(q,\\\"afterGetContainer\\\",function(){this.options.rangeSelector.enabled&&(this.rangeSelector=new C(this))});u(q.prototype,\\\"render\\\",function(a,b,c){var d=this.axes,e=this.rangeSelector;e&&(p(d,function(a){a.updateNames();a.setScale()}),this.getAxisMargins(),e.render(),d=e.options.verticalAlign,e.options.floating||(\\\"bottom\\\"===d?this.extraBottomMargin=\\n!0:\\\"middle\\\"!==d&&(this.extraTopMargin=!0)));a.call(this,b,c)});D(q,\\\"update\\\",function(a){var b=a.options;a=this.rangeSelector;this.extraTopMargin=this.extraBottomMargin=!1;this.isDirtyBox=!0;a&&(a.render(),b=b.rangeSelector&&b.rangeSelector.verticalAlign||a.options&&a.options.verticalAlign,a.options.floating||(\\\"bottom\\\"===b?this.extraBottomMargin=!0:\\\"middle\\\"!==b&&(this.extraTopMargin=!0)))});u(q.prototype,\\\"redraw\\\",function(a,b,c){var d=this.rangeSelector;d&&!d.options.floating&&(d.render(),d=d.options.verticalAlign,\\n\\\"bottom\\\"===d?this.extraBottomMargin=!0:\\\"middle\\\"!==d&&(this.extraTopMargin=!0));a.call(this,b,c)});D(q,\\\"getMargins\\\",function(){var a=this.rangeSelector;a&&(a=a.getHeight(),this.extraTopMargin&&(this.plotTop+=a),this.extraBottomMargin&&(this.marginBottom+=a))});q.prototype.callbacks.push(function(a){function b(){c=a.xAxis[0].getExtremes();m(c.min)&&d.render(c.min,c.max)}var c,d=a.rangeSelector,e,f;d&&(f=D(a.xAxis[0],\\\"afterSetExtremes\\\",function(a){d.render(a.min,a.max)}),e=D(a,\\\"redraw\\\",b),b());D(a,\\\"destroy\\\",\\nfunction(){d&&(e(),f())})});a.RangeSelector=C})(L);(function(a){var C=a.addEvent,D=a.arrayMax,E=a.arrayMin,q=a.Axis,n=a.Chart,f=a.defined,r=a.each,A=a.extend,w=a.format,y=a.grep,p=a.inArray,c=a.isNumber,d=a.isString,m=a.map,k=a.merge,b=a.pick,e=a.Point,h=a.Renderer,u=a.Series,t=a.splat,z=a.SVGRenderer,I=a.VMLRenderer,v=a.wrap,G=u.prototype,l=G.init,H=G.processData,K=e.prototype.tooltipFormatter;a.StockChart=a.stockChart=function(c,e,g){var f=d(c)||c.nodeName,h=arguments[f?1:0],l=h.series,p=a.getOptions(),\\nq,r=b(h.navigator&&h.navigator.enabled,p.navigator.enabled,!0),u=r?{startOnTick:!1,endOnTick:!1}:null,w={marker:{enabled:!1,radius:2}},v={shadow:!1,borderWidth:0};h.xAxis=m(t(h.xAxis||{}),function(a,b){return k({minPadding:0,maxPadding:0,overscroll:0,ordinal:!0,title:{text:null},labels:{overflow:\\\"justify\\\"},showLastLabel:!0},p.xAxis,p.xAxis&&p.xAxis[b],a,{type:\\\"datetime\\\",categories:null},u)});h.yAxis=m(t(h.yAxis||{}),function(a,c){q=b(a.opposite,!0);return k({labels:{y:-2},opposite:q,showLastLabel:!(!a.categories&&\\n\\\"category\\\"!==a.type),title:{text:null}},p.yAxis,p.yAxis&&p.yAxis[c],a)});h.series=null;h=k({chart:{panning:!0,pinchType:\\\"x\\\"},navigator:{enabled:r},scrollbar:{enabled:b(p.scrollbar.enabled,!0)},rangeSelector:{enabled:b(p.rangeSelector.enabled,!0)},title:{text:null},tooltip:{split:b(p.tooltip.split,!0),crosshairs:!0},legend:{enabled:!1},plotOptions:{line:w,spline:w,area:w,areaspline:w,arearange:w,areasplinerange:w,column:v,columnrange:v,candlestick:v,ohlc:v}},h,{isStock:!0});h.series=l;return f?new n(c,\\nh,g):new n(h,e)};v(q.prototype,\\\"autoLabelAlign\\\",function(a){var b=this.chart,c=this.options,b=b._labelPanes=b._labelPanes||{},d=this.options.labels;return this.chart.options.isStock&&\\\"yAxis\\\"===this.coll&&(c=c.top+\\\",\\\"+c.height,!b[c]&&d.enabled)?(15===d.x&&(d.x=0),void 0===d.align&&(d.align=\\\"right\\\"),b[c]=this,\\\"right\\\"):a.apply(this,[].slice.call(arguments,1))});C(q,\\\"destroy\\\",function(){var a=this.chart,b=this.options&&this.options.top+\\\",\\\"+this.options.height;b&&a._labelPanes&&a._labelPanes[b]===this&&\\ndelete a._labelPanes[b]});v(q.prototype,\\\"getPlotLinePath\\\",function(e,h,g,k,l,n){var q=this,u=this.isLinked&&!this.series?this.linkedParent.series:this.series,t=q.chart,w=t.renderer,v=q.left,x=q.top,y,z,B,A,F=[],C=[],D,E;if(\\\"xAxis\\\"!==q.coll&&\\\"yAxis\\\"!==q.coll)return e.apply(this,[].slice.call(arguments,1));C=function(a){var b=\\\"xAxis\\\"===a?\\\"yAxis\\\":\\\"xAxis\\\";a=q.options[b];return c(a)?[t[b][a]]:d(a)?[t.get(a)]:m(u,function(a){return a[b]})}(q.coll);r(q.isXAxis?t.yAxis:t.xAxis,function(a){if(f(a.options.id)?\\n-1===a.options.id.indexOf(\\\"navigator\\\"):1){var b=a.isXAxis?\\\"yAxis\\\":\\\"xAxis\\\",b=f(a.options[b])?t[b][a.options[b]]:t[b][0];q===b&&C.push(a)}});D=C.length?[]:[q.isXAxis?t.yAxis[0]:t.xAxis[0]];r(C,function(b){-1!==p(b,D)||a.find(D,function(a){return a.pos===b.pos&&a.len&&b.len})||D.push(b)});E=b(n,q.translate(h,null,null,k));c(E)&&(q.horiz?r(D,function(a){var b;z=a.pos;A=z+a.len;y=B=Math.round(E+q.transB);if(yv+q.width)l?y=B=Math.min(Math.max(v,y),v+q.width):b=!0;b||F.push(\\\"M\\\",y,z,\\\"L\\\",B,A)}):r(D,\\nfunction(a){var b;y=a.pos;B=y+a.len;z=A=Math.round(x+q.height-E);if(zx+q.height)l?z=A=Math.min(Math.max(x,z),q.top+q.height):b=!0;b||F.push(\\\"M\\\",y,z,\\\"L\\\",B,A)}));return 0this.max?\\\"hidden\\\":\\\"visible\\\"});h=m.getBBox();if(k){if(q&&!c||!q&&c)l=m.y-h.height}else l=m.y-h.height/2;k?(c=d-h.x,d=d+this.width-\\nh.x):(c=\\\"left\\\"===this.labelAlign?d:0,d=\\\"right\\\"===this.labelAlign?d+this.width:e.chartWidth);m.translateX=d&&(t=-(m.translateX+h.width-d));m.attr({x:a+t,y:l,anchorX:k?a:this.opposite?0:e.chartWidth,anchorY:k?this.opposite?e.chartHeight:0:l+h.height/2})}});G.init=function(){l.apply(this,arguments);this.setCompare(this.options.compare)};G.setCompare=function(a){this.modifyValue=\\\"value\\\"===a||\\\"percent\\\"===a?function(b,c){var d=this.compareValue;if(void 0!==b&&\\nvoid 0!==d)return b=\\\"value\\\"===a?b-d:b/d*100-(100===this.options.compareBase?0:100),c&&(c.change=b),b}:null;this.userOptions.compare=a;this.chart.hasRendered&&(this.isDirty=!0)};G.processData=function(){var a,b=-1,d,e,f=!0===this.options.compareStart?0:1,h,k;H.apply(this,arguments);if(this.xAxis&&this.processedYData)for(d=this.processedXData,e=this.processedYData,h=e.length,this.pointArrayMap&&(b=p(\\\"close\\\",this.pointArrayMap),-1===b&&(b=p(this.pointValKey||\\\"y\\\",this.pointArrayMap))),a=0;a=this.xAxis.min&&0!==k){this.compareValue=k;break}};v(G,\\\"getExtremes\\\",function(a){var b;a.apply(this,[].slice.call(arguments,1));this.modifyValue&&(b=[this.modifyValue(this.dataMin),this.modifyValue(this.dataMax)],this.dataMin=E(b),this.dataMax=D(b))});q.prototype.setCompare=function(a,c){this.isXAxis||(r(this.series,function(b){b.setCompare(a)}),b(c,!0)&&this.chart.redraw())};e.prototype.tooltipFormatter=function(c){c=c.replace(\\\"{point.change}\\\",(0n?this:a,a=(n.max-n.min)*n.transA,n.pixelPadding=n.len-a,n.minPixelPadding=\\nn.pixelPadding/2,a=n.fixTo)){a=a[1]-n.toValue(a[0],!0);a*=n.transA;if(Math.abs(a)>n.minPixelPadding||n.min===n.dataMin&&n.max===n.dataMax)a=0;n.minPixelPadding-=a}});m(g,\\\"render\\\",function(){this.fixTo=null})})(w);(function(a){var m=a.addEvent,g=a.Axis,l=a.Chart,f=a.color,q,n=a.each,u=a.extend,r=a.isNumber,e=a.Legend,b=a.LegendSymbolMixin,d=a.noop,h=a.merge,v=a.pick;a.ColorAxis||(q=a.ColorAxis=function(){this.init.apply(this,arguments)},u(q.prototype,g.prototype),u(q.prototype,{defaultColorAxisOptions:{lineWidth:0,\\nminPadding:0,maxPadding:0,gridLineWidth:1,tickPixelInterval:72,startOnTick:!0,endOnTick:!0,offset:0,marker:{animation:{duration:50},width:.01,color:\\\"#999999\\\"},labels:{overflow:\\\"justify\\\",rotation:0},minColor:\\\"#e6ebf5\\\",maxColor:\\\"#003399\\\",tickLength:5,showInLegend:!0},keepProps:[\\\"legendGroup\\\",\\\"legendItemHeight\\\",\\\"legendItemWidth\\\",\\\"legendItem\\\",\\\"legendSymbol\\\"].concat(g.prototype.keepProps),init:function(a,c){var k=\\\"vertical\\\"!==a.options.legend.layout,b;this.coll=\\\"colorAxis\\\";b=h(this.defaultColorAxisOptions,\\n{side:k?2:1,reversed:!k},c,{opposite:!k,showEmpty:!1,title:null,visible:a.options.legend.enabled});g.prototype.init.call(this,a,b);c.dataClasses&&this.initDataClasses(c);this.initStops();this.horiz=k;this.zoomEnabled=!1;this.defaultLegendLength=200},initDataClasses:function(a){var c=this.chart,k,b=0,p=c.options.chart.colorCount,d=this.options,e=a.dataClasses.length;this.dataClasses=k=[];this.legendItems=[];n(a.dataClasses,function(a,t){a=h(a);k.push(a);a.color||(\\\"category\\\"===d.dataClassColor?(t=c.options.colors,\\np=t.length,a.color=t[b],a.colorIndex=b,b++,b===p&&(b=0)):a.color=f(d.minColor).tweenTo(f(d.maxColor),2>e?.5:t/(e-1)))})},setTickPositions:function(){if(!this.dataClasses)return g.prototype.setTickPositions.call(this)},initStops:function(){this.stops=this.options.stops||[[0,this.options.minColor],[1,this.options.maxColor]];n(this.stops,function(a){a.color=f(a[1])})},setOptions:function(a){g.prototype.setOptions.call(this,a);this.options.crosshair=this.options.marker},setAxisSize:function(){var a=this.legendSymbol,\\nc=this.chart,k=c.options.legend||{},b,d;a?(this.left=k=a.attr(\\\"x\\\"),this.top=b=a.attr(\\\"y\\\"),this.width=d=a.attr(\\\"width\\\"),this.height=a=a.attr(\\\"height\\\"),this.right=c.chartWidth-k-d,this.bottom=c.chartHeight-b-a,this.len=this.horiz?d:a,this.pos=this.horiz?k:b):this.len=(this.horiz?k.symbolWidth:k.symbolHeight)||this.defaultLegendLength},normalizedValue:function(a){this.isLog&&(a=this.val2lin(a));return 1-(this.max-a)/(this.max-this.min||1)},toColor:function(a,c){var k=this.stops,b,p,d=this.dataClasses,\\ne,h;if(d)for(h=d.length;h--;){if(e=d[h],b=e.from,k=e.to,(void 0===b||a>=b)&&(void 0===k||a<=k)){p=e.color;c&&(c.dataClass=h,c.colorIndex=e.colorIndex);break}}else{a=this.normalizedValue(a);for(h=k.length;h--&&!(a>k[h][0]););b=k[h]||k[h+1];k=k[h+1]||b;a=1-(k[0]-a)/(k[0]-b[0]||1);p=b.color.tweenTo(k.color,a)}return p},getOffset:function(){var a=this.legendGroup,c=this.chart.axisOffset[this.side];a&&(this.axisParent=a,g.prototype.getOffset.call(this),this.added||(this.added=!0,this.labelLeft=0,this.labelRight=\\nthis.width),this.chart.axisOffset[this.side]=c)},setLegendColor:function(){var a,c=this.reversed;a=c?1:0;c=c?0:1;a=this.horiz?[a,0,c,0]:[0,c,0,a];this.legendColor={linearGradient:{x1:a[0],y1:a[1],x2:a[2],y2:a[3]},stops:this.stops}},drawLegendSymbol:function(a,c){var k=a.padding,b=a.options,d=this.horiz,p=v(b.symbolWidth,d?this.defaultLegendLength:12),e=v(b.symbolHeight,d?12:this.defaultLegendLength),h=v(b.labelPadding,d?16:30),b=v(b.itemDistance,10);this.setLegendColor();c.legendSymbol=this.chart.renderer.rect(0,\\na.baseline-11,p,e).attr({zIndex:1}).add(c.legendGroup);this.legendItemWidth=p+k+(d?b:h);this.legendItemHeight=e+k+(d?h:0)},setState:function(a){n(this.series,function(c){c.setState(a)})},visible:!0,setVisible:d,getSeriesExtremes:function(){var a=this.series,c=a.length;this.dataMin=Infinity;for(this.dataMax=-Infinity;c--;)a[c].getExtremes(),void 0!==a[c].valueMin&&(this.dataMin=Math.min(this.dataMin,a[c].valueMin),this.dataMax=Math.max(this.dataMax,a[c].valueMax))},drawCrosshair:function(a,c){var k=\\nc&&c.plotX,b=c&&c.plotY,d,e=this.pos,p=this.len;c&&(d=this.toPixels(c[c.series.colorKey]),de+p&&(d=e+p+2),c.plotX=d,c.plotY=this.len-d,g.prototype.drawCrosshair.call(this,a,c),c.plotX=k,c.plotY=b,this.cross&&!this.cross.addedToColorAxis&&this.legendGroup&&(this.cross.addClass(\\\"highcharts-coloraxis-marker\\\").add(this.legendGroup),this.cross.addedToColorAxis=!0,this.cross.attr({fill:this.crosshair.color})))},getPlotLinePath:function(a,c,k,b,d){return r(d)?this.horiz?[\\\"M\\\",d-4,this.top-6,\\\"L\\\",\\nd+4,this.top-6,d,this.top,\\\"Z\\\"]:[\\\"M\\\",this.left,d,\\\"L\\\",this.left-6,d+6,this.left-6,d-6,\\\"Z\\\"]:g.prototype.getPlotLinePath.call(this,a,c,k,b)},update:function(a,c){var k=this.chart,b=k.legend;n(this.series,function(a){a.isDirtyData=!0});a.dataClasses&&b.allItems&&(n(b.allItems,function(a){a.isDataClass&&a.legendGroup&&a.legendGroup.destroy()}),k.isDirtyLegend=!0);k.options[this.coll]=h(this.userOptions,a);g.prototype.update.call(this,a,c);this.legendItem&&(this.setLegendColor(),b.colorizeItem(this,!0))},\\nremove:function(){this.legendItem&&this.chart.legend.destroyItem(this);g.prototype.remove.call(this)},getDataClassLegendSymbols:function(){var e=this,c=this.chart,k=this.legendItems,t=c.options.legend,h=t.valueDecimals,v=t.valueSuffix||\\\"\\\",f;k.length||n(this.dataClasses,function(p,t){var q=!0,x=p.from,g=p.to;f=\\\"\\\";void 0===x?f=\\\"\\\\x3c \\\":void 0===g&&(f=\\\"\\\\x3e \\\");void 0!==x&&(f+=a.numberFormat(x,h)+v);void 0!==x&&void 0!==g&&(f+=\\\" - \\\");void 0!==g&&(f+=a.numberFormat(g,h)+v);k.push(u({chart:c,name:f,options:{},\\ndrawLegendSymbol:b.drawRectangle,visible:!0,setState:d,isDataClass:!0,setVisible:function(){q=this.visible=!q;n(e.series,function(a){n(a.points,function(a){a.dataClass===t&&a.setVisible(q)})});c.legend.colorizeItem(this,q)}},p))});return k},name:\\\"\\\"}),n([\\\"fill\\\",\\\"stroke\\\"],function(b){a.Fx.prototype[b+\\\"Setter\\\"]=function(){this.elem.attr(b,f(this.start).tweenTo(f(this.end),this.pos),null,!0)}}),m(l,\\\"afterGetAxes\\\",function(){var a=this.options.colorAxis;this.colorAxis=[];a&&new q(this,a)}),m(e,\\\"afterGetAllItems\\\",\\nfunction(b){var c=[],k=this.chart.colorAxis[0];k&&k.options&&k.options.showInLegend&&(k.options.dataClasses?c=k.getDataClassLegendSymbols():c.push(k),n(k.series,function(c){a.erase(b.allItems,c)}));for(k=c.length;k--;)b.allItems.unshift(c[k])}),m(e,\\\"afterColorizeItem\\\",function(a){a.visible&&a.item.legendColor&&a.item.legendSymbol.attr({fill:a.item.legendColor})}),m(e,\\\"afterUpdate\\\",function(a,c,b){this.chart.colorAxis[0]&&this.chart.colorAxis[0].update({},b)}))})(w);(function(a){var m=a.defined,g=\\na.each,l=a.noop,f=a.seriesTypes;a.colorPointMixin={isValid:function(){return null!==this.value&&Infinity!==this.value&&-Infinity!==this.value},setVisible:function(a){var f=this,q=a?\\\"show\\\":\\\"hide\\\";g([\\\"graphic\\\",\\\"dataLabel\\\"],function(a){if(f[a])f[a][q]()})},setState:function(f){a.Point.prototype.setState.call(this,f);this.graphic&&this.graphic.attr({zIndex:\\\"hover\\\"===f?1:0})}};a.colorSeriesMixin={pointArrayMap:[\\\"value\\\"],axisTypes:[\\\"xAxis\\\",\\\"yAxis\\\",\\\"colorAxis\\\"],optionalAxis:\\\"colorAxis\\\",trackerGroups:[\\\"group\\\",\\n\\\"markerGroup\\\",\\\"dataLabelsGroup\\\"],getSymbol:l,parallelArrays:[\\\"x\\\",\\\"y\\\",\\\"value\\\"],colorKey:\\\"value\\\",pointAttribs:f.column.prototype.pointAttribs,translateColors:function(){var a=this,f=this.options.nullColor,l=this.colorAxis,m=this.colorKey;g(this.data,function(e){var b=e[m];if(b=e.options.color||(e.isNull?f:l&&void 0!==b?l.toColor(b,e):e.color||a.color))e.color=b})},colorAttribs:function(a){var f={};m(a.color)&&(f[this.colorProp||\\\"fill\\\"]=a.color);return f}}})(w);(function(a){function m(a){a&&(a.preventDefault&&\\na.preventDefault(),a.stopPropagation&&a.stopPropagation(),a.cancelBubble=!0)}function g(a){this.init(a)}var l=a.addEvent,f=a.Chart,q=a.doc,n=a.each,u=a.extend,r=a.merge,e=a.pick;g.prototype.init=function(a){this.chart=a;a.mapNavButtons=[]};g.prototype.update=function(b){var d=this.chart,h=d.options.mapNavigation,f,p,c,k,t,x=function(a){this.handler.call(d,a);m(a)},g=d.mapNavButtons;b&&(h=d.options.mapNavigation=r(d.options.mapNavigation,b));for(;g.length;)g.pop().destroy();e(h.enableButtons,h.enabled)&&\\n!d.renderer.forExport&&a.objectEach(h.buttons,function(a,b){f=r(h.buttonOptions,a);p=f.theme;p.style=r(f.theme.style,f.style);k=(c=p.states)&&c.hover;t=c&&c.select;a=d.renderer.button(f.text,0,0,x,p,k,t,0,\\\"zoomIn\\\"===b?\\\"topbutton\\\":\\\"bottombutton\\\").addClass(\\\"highcharts-map-navigation\\\").attr({width:f.width,height:f.height,title:d.options.lang[b],padding:f.padding,zIndex:5}).add();a.handler=f.onclick;a.align(u(f,{width:a.width,height:2*a.height}),null,f.alignTo);l(a.element,\\\"dblclick\\\",m);g.push(a)});this.updateEvents(h)};\\ng.prototype.updateEvents=function(a){var b=this.chart;e(a.enableDoubleClickZoom,a.enabled)||a.enableDoubleClickZoomTo?this.unbindDblClick=this.unbindDblClick||l(b.container,\\\"dblclick\\\",function(a){b.pointer.onContainerDblClick(a)}):this.unbindDblClick&&(this.unbindDblClick=this.unbindDblClick());e(a.enableMouseWheelZoom,a.enabled)?this.unbindMouseWheel=this.unbindMouseWheel||l(b.container,void 0===q.onmousewheel?\\\"DOMMouseScroll\\\":\\\"mousewheel\\\",function(a){b.pointer.onContainerMouseWheel(a);m(a);return!1}):\\nthis.unbindMouseWheel&&(this.unbindMouseWheel=this.unbindMouseWheel())};u(f.prototype,{fitToBox:function(a,d){n([[\\\"x\\\",\\\"width\\\"],[\\\"y\\\",\\\"height\\\"]],function(b){var e=b[0];b=b[1];a[e]+a[b]>d[e]+d[b]&&(a[b]>d[b]?(a[b]=d[b],a[e]=d[e]):a[e]=d[e]+d[b]-a[b]);a[b]>d[b]&&(a[b]=d[b]);a[e]=c.dataMax-c.dataMin&&b.y<=k.dataMin&&b.height>=k.dataMax-k.dataMin;g&&(c.fixTo=[g-c.pos,d]);p&&(k.fixTo=[p-k.pos,f]);void 0===a||h?(c.setExtremes(void 0,void 0,!1),k.setExtremes(void 0,void 0,!1)):(c.setExtremes(b.x,b.x+b.width,!1),k.setExtremes(b.y,b.y+b.height,!1));this.redraw()}});l(f,\\\"beforeRender\\\",function(){this.mapNavigation=new g(this);this.mapNavigation.update()})})(w);\\n(function(a){var m=a.extend,g=a.pick,l=a.Pointer;a=a.wrap;m(l.prototype,{onContainerDblClick:function(a){var f=this.chart;a=this.normalize(a);f.options.mapNavigation.enableDoubleClickZoomTo?f.pointer.inClass(a.target,\\\"highcharts-tracker\\\")&&f.hoverPoint&&f.hoverPoint.zoomTo():f.isInsidePlot(a.chartX-f.plotLeft,a.chartY-f.plotTop)&&f.mapZoom(.5,f.xAxis[0].toValue(a.chartX),f.yAxis[0].toValue(a.chartY),a.chartX,a.chartY)},onContainerMouseWheel:function(a){var f=this.chart,g;a=this.normalize(a);g=a.detail||\\n-(a.wheelDelta/120);f.isInsidePlot(a.chartX-f.plotLeft,a.chartY-f.plotTop)&&f.mapZoom(Math.pow(f.options.mapNavigation.mouseWheelSensitivity,g),f.xAxis[0].toValue(a.chartX),f.yAxis[0].toValue(a.chartY),a.chartX,a.chartY)}});a(l.prototype,\\\"zoomOption\\\",function(a){var f=this.chart.options.mapNavigation;g(f.enableTouchZoom,f.enabled)&&(this.chart.options.chart.pinchType=\\\"xy\\\");a.apply(this,[].slice.call(arguments,1))});a(l.prototype,\\\"pinchTranslate\\\",function(a,g,n,l,m,e,b){a.call(this,g,n,l,m,e,b);\\\"map\\\"===\\nthis.chart.options.chart.type&&this.hasZoom&&(a=l.scaleX>l.scaleY,this.pinchTranslateDirection(!a,g,n,l,m,e,b,a?l.scaleX:l.scaleY))})})(w);(function(a){var m=a.colorPointMixin,g=a.each,l=a.extend,f=a.isNumber,q=a.map,n=a.merge,u=a.noop,r=a.pick,e=a.isArray,b=a.Point,d=a.Series,h=a.seriesType,v=a.seriesTypes,p=a.splat;h(\\\"map\\\",\\\"scatter\\\",{allAreas:!0,animation:!1,nullColor:\\\"#f7f7f7\\\",borderColor:\\\"#cccccc\\\",borderWidth:1,marker:null,stickyTracking:!1,joinBy:\\\"hc-key\\\",dataLabels:{formatter:function(){return this.point.value},\\ninside:!0,verticalAlign:\\\"middle\\\",crop:!1,overflow:!1,padding:0},turboThreshold:0,tooltip:{followPointer:!0,pointFormat:\\\"{point.name}: {point.value}\\\\x3cbr/\\\\x3e\\\"},states:{normal:{animation:!0},hover:{halo:null,brightness:.2},select:{color:\\\"#cccccc\\\"}}},n(a.colorSeriesMixin,{type:\\\"map\\\",getExtremesFromAll:!0,useMapGeometry:!0,forceDL:!0,searchPoint:u,directTouch:!0,preserveAspectRatio:!0,pointArrayMap:[\\\"value\\\"],getBox:function(c){var b=Number.MAX_VALUE,d=-b,e=b,p=-b,h=b,n=b,l=this.xAxis,v=this.yAxis,q;\\ng(c||[],function(c){if(c.path){\\\"string\\\"===typeof c.path&&(c.path=a.splitPath(c.path));var k=c.path||[],t=k.length,g=!1,l=-b,x=b,v=-b,A=b,m=c.properties;if(!c._foundBox){for(;t--;)f(k[t])&&(g?(l=Math.max(l,k[t]),x=Math.min(x,k[t])):(v=Math.max(v,k[t]),A=Math.min(A,k[t])),g=!g);c._midX=x+(l-x)*r(c.middleX,m&&m[\\\"hc-middle-x\\\"],.5);c._midY=A+(v-A)*r(c.middleY,m&&m[\\\"hc-middle-y\\\"],.5);c._maxX=l;c._minX=x;c._maxY=v;c._minY=A;c.labelrank=r(c.labelrank,(l-x)*(v-A));c._foundBox=!0}d=Math.max(d,c._maxX);e=Math.min(e,\\nc._minX);p=Math.max(p,c._maxY);h=Math.min(h,c._minY);n=Math.min(c._maxX-c._minX,c._maxY-c._minY,n);q=!0}});q&&(this.minY=Math.min(h,r(this.minY,b)),this.maxY=Math.max(p,r(this.maxY,-b)),this.minX=Math.min(e,r(this.minX,b)),this.maxX=Math.max(d,r(this.maxX,-b)),l&&void 0===l.options.minRange&&(l.minRange=Math.min(5*n,(this.maxX-this.minX)/5,l.minRange||b)),v&&void 0===v.options.minRange&&(v.minRange=Math.min(5*n,(this.maxY-this.minY)/5,v.minRange||b)))},getExtremes:function(){d.prototype.getExtremes.call(this,\\nthis.valueData);this.chart.hasRendered&&this.isDirtyData&&this.getBox(this.options.data);this.valueMin=this.dataMin;this.valueMax=this.dataMax;this.dataMin=this.minY;this.dataMax=this.maxY},translatePath:function(a){var c=!1,b=this.xAxis,d=this.yAxis,e=b.min,p=b.transA,b=b.minPixelPadding,h=d.min,g=d.transA,d=d.minPixelPadding,l,n=[];if(a)for(l=a.length;l--;)f(a[l])?(n[l]=c?(a[l]-e)*p+b:(a[l]-h)*g+d,c=!c):n[l]=a[l];return n},setData:function(c,b,h,l){var k=this.options,t=this.chart.options.chart,\\nv=t&&t.map,x=k.mapData,m=k.joinBy,r=null===m,u=k.keys||this.pointArrayMap,z=[],w={},y=this.chart.mapTransforms;!x&&v&&(x=\\\"string\\\"===typeof v?a.maps[v]:v);r&&(m=\\\"_i\\\");m=this.joinBy=p(m);m[1]||(m[1]=m[0]);c&&g(c,function(b,d){var p=0;if(f(b))c[d]={value:b};else if(e(b)){c[d]={};!k.keys&&b.length>u.length&&\\\"string\\\"===typeof b[0]&&(c[d][\\\"hc-key\\\"]=b[0],++p);for(var t=0;th&&.99l&&(l=h=1,n=Math.round(n),m=Math.round(m)),r=this.transformGroup,p.renderer.globalAnimation?(u=r.attr(\\\"translateX\\\"),w=r.attr(\\\"translateY\\\"),\\nE=r.attr(\\\"scaleX\\\"),F=r.attr(\\\"scaleY\\\"),r.attr({animator:0}).animate({animator:1},{step:function(a,b){r.attr({translateX:u+(n-u)*b.pos,translateY:w+(m-w)*b.pos,scaleX:E+(h-E)*b.pos,scaleY:F+(l-F)*b.pos})}})):r.attr({translateX:n,translateY:m,scaleX:h,scaleY:l}));e.element.setAttribute(\\\"stroke-width\\\",(a.options[a.pointAttrToOptions&&a.pointAttrToOptions[\\\"stroke-width\\\"]||\\\"borderWidth\\\"]||1)/(h||1));this.drawMapDataLabels()},drawMapDataLabels:function(){d.prototype.drawDataLabels.call(this);this.dataLabelsGroup&&\\nthis.dataLabelsGroup.clip(this.chart.clipRect)},render:function(){var a=this,b=d.prototype.render;a.chart.renderer.isVML&&3E3=this.minPxSize/2?(d.marker=a.extend(d.marker,{radius:e,width:2*e,height:2*e}),d.dlBox={x:d.plotX-e,y:d.plotY-e,width:2*e,height:2*e}):d.shapeArgs=d.plotY=d.dlBox=void 0},alignDataLabel:v.column.prototype.alignDataLabel,buildKDTree:u,applyZones:u},{haloPath:function(a){return b.prototype.haloPath.call(this,0===a?0:(this.marker?this.marker.radius||0:0)+a)},ttBelow:!1});l.prototype.beforePadding=function(){var b=this,c=this.len,d=this.chart,h=0,f=c,l=this.isXAxis,\\nv=l?\\\"xData\\\":\\\"yData\\\",u=this.min,w={},A=Math.min(d.plotWidth,d.plotHeight),C=Number.MAX_VALUE,D=-Number.MAX_VALUE,z=this.max-u,B=c/z,y=[];q(this.series,function(c){var h=c.options;!c.bubblePadding||!c.visible&&d.options.chart.ignoreHiddenSeries||(b.allowZoomOutside=!0,y.push(c),l&&(q([\\\"minSize\\\",\\\"maxSize\\\"],function(a){var b=h[a],c=/%$/.test(b),b=e(b);w[a]=c?A*b/100:b}),c.minPxSize=w.minSize,c.maxPxSize=Math.max(w.maxSize,w.minSize),c=a.grep(c.zData,a.isNumber),c.length&&(C=r(h.zMin,Math.min(C,Math.max(g(c),\\n!1===h.displayNegative?h.zThreshold:-Number.MAX_VALUE))),D=r(h.zMax,Math.max(D,m(c))))))});q(y,function(a){var c=a[v],d=c.length,e;l&&a.getRadii(C,D,a.minPxSize,a.maxPxSize);if(0k,f=b[d][1]>k,e!==f&&c<(b[d][0]-b[a][0])*(k-b[a][1])/(b[d][1]-b[a][1])+b[a][0]&&(g=!g);return g}var g=a.Chart,l=a.each,f=a.extend,q=a.format,n=a.merge,u=a.win,r=a.wrap;g.prototype.transformFromLatLon=function(e,b){if(void 0===u.proj4)return a.error(21),{x:0,y:null};e=u.proj4(b.crs,[e.lon,e.lat]);var d=b.cosAngle||b.rotation&&Math.cos(b.rotation),h=b.sinAngle||b.rotation&&\\nMath.sin(b.rotation);e=b.rotation?[e[0]*d+e[1]*h,-e[0]*h+e[1]*d]:e;return{x:((e[0]-(b.xoffset||0))*(b.scale||1)+(b.xpan||0))*(b.jsonres||1)+(b.jsonmarginX||0),y:(((b.yoffset||0)-e[1])*(b.scale||1)+(b.ypan||0))*(b.jsonres||1)-(b.jsonmarginY||0)}};g.prototype.transformToLatLon=function(e,b){if(void 0===u.proj4)a.error(21);else{e={x:((e.x-(b.jsonmarginX||0))/(b.jsonres||1)-(b.xpan||0))/(b.scale||1)+(b.xoffset||0),y:((-e.y-(b.jsonmarginY||0))/(b.jsonres||1)+(b.ypan||0))/(b.scale||1)+(b.yoffset||0)};var d=\\nb.cosAngle||b.rotation&&Math.cos(b.rotation),h=b.sinAngle||b.rotation&&Math.sin(b.rotation);b=u.proj4(b.crs,\\\"WGS84\\\",b.rotation?{x:e.x*d+e.y*-h,y:e.x*h+e.y*d}:e);return{lat:b.y,lon:b.x}}};g.prototype.fromPointToLatLon=function(e){var b=this.mapTransforms,d;if(b){for(d in b)if(b.hasOwnProperty(d)&&b[d].hitZone&&m({x:e.x,y:-e.y},b[d].hitZone.coordinates[0]))return this.transformToLatLon(e,b[d]);return this.transformToLatLon(e,b[\\\"default\\\"])}a.error(22)};g.prototype.fromLatLonToPoint=function(e){var b=\\nthis.mapTransforms,d,h;if(!b)return a.error(22),{x:0,y:null};for(d in b)if(b.hasOwnProperty(d)&&b[d].hitZone&&(h=this.transformFromLatLon(e,b[d]),m({x:h.x,y:-h.y},b[d].hitZone.coordinates[0])))return h;return this.transformFromLatLon(e,b[\\\"default\\\"])};a.geojson=function(a,b,d){var e=[],g=[],m=function(a){var b,c=a.length;g.push(\\\"M\\\");for(b=0;b(.*?$)/);e&&e[1]&&(e='\\\\x3cforeignObject x\\\\x3d\\\"0\\\" y\\\\x3d\\\"0\\\" width\\\\x3d\\\"'+b.chart.width+'\\\" height\\\\x3d\\\"'+b.chart.height+'\\\"\\\\x3e\\\\x3cbody xmlns\\\\x3d\\\"http://www.w3.org/1999/xhtml\\\"\\\\x3e'+e[1]+\\\"\\\\x3c/body\\\\x3e\\\\x3c/foreignObject\\\\x3e\\\",a=a.replace(\\\"\\\\x3c/svg\\\\x3e\\\",e+\\\"\\\\x3c/svg\\\\x3e\\\"))}a=a.replace(/zIndex=\\\"[^\\\"]+\\\"/g,\\n\\\"\\\").replace(/isShadow=\\\"[^\\\"]+\\\"/g,\\\"\\\").replace(/symbolName=\\\"[^\\\"]+\\\"/g,\\\"\\\").replace(/jQuery[0-9]+=\\\"[^\\\"]+\\\"/g,\\\"\\\").replace(/url\\\\((\\\"|")(\\\\S+)(\\\"|")\\\\)/g,\\\"url($2)\\\").replace(/url\\\\([^#]+#/g,\\\"url(#\\\").replace(/.*?$/,\\\"\\\\x3c/svg\\\\x3e\\\").replace(/(fill|stroke)=\\\"rgba\\\\(([ 0-9]+,[ 0-9]+,[ 0-9]+),([ 0-9\\\\.]+)\\\\)\\\"/g,'$1\\\\x3d\\\"rgb($2)\\\" $1-opacity\\\\x3d\\\"$3\\\"').replace(/ /g,\\n\\\"\\\\u00a0\\\").replace(/­/g,\\\"\\\\u00ad\\\");this.ieSanitizeSVG&&(a=this.ieSanitizeSVG(a));return a},getChartHTML:function(){return this.container.innerHTML},getSVG:function(a){var b,e,c,v,m,g=p(this.options,a);e=r(\\\"div\\\",null,{position:\\\"absolute\\\",top:\\\"-9999em\\\",width:this.chartWidth+\\\"px\\\",height:this.chartHeight+\\\"px\\\"},z.body);c=this.renderTo.style.width;m=this.renderTo.style.height;c=g.exporting.sourceWidth||g.chart.width||/px$/.test(c)&&parseInt(c,10)||600;m=g.exporting.sourceHeight||g.chart.height||/px$/.test(m)&&\\nparseInt(m,10)||400;t(g.chart,{animation:!1,renderTo:e,forExport:!0,renderer:\\\"SVGRenderer\\\",width:c,height:m});g.exporting.enabled=!1;delete g.data;g.series=[];k(this.series,function(a){v=p(a.userOptions,{animation:!1,enableMouseTracking:!1,showCheckbox:!1,visible:a.visible});v.isInternal||g.series.push(v)});k(this.axes,function(a){a.userOptions.internalKey||(a.userOptions.internalKey=f.uniqueKey())});b=new f.Chart(g,this.callback);a&&k([\\\"xAxis\\\",\\\"yAxis\\\",\\\"series\\\"],function(c){var d={};a[c]&&(d[c]=a[c],\\nb.update(d))});k(this.axes,function(a){var c=f.find(b.axes,function(b){return b.options.internalKey===a.userOptions.internalKey}),d=a.getExtremes(),e=d.userMin,d=d.userMax;c&&(void 0!==e&&e!==c.min||void 0!==d&&d!==c.max)&&c.setExtremes(e,d,!0,!1)});c=b.getChartHTML();C(this,\\\"getSVG\\\",{chartCopy:b});c=this.sanitizeSVG(c,g);g=null;b.destroy();D(e);return c},getSVGForExport:function(a,b){var e=this.options.exporting;return this.getSVG(p({chart:{borderRadius:0}},e.chartOptions,b,{exporting:{sourceWidth:a&&\\na.sourceWidth||e.sourceWidth,sourceHeight:a&&a.sourceHeight||e.sourceHeight}}))},exportChart:function(a,b){b=this.getSVGForExport(a,b);a=p(this.options.exporting,a);f.post(a.url,{filename:a.filename||\\\"chart\\\",type:a.type,width:a.width||0,scale:a.scale,svg:b},a.formAttributes)},print:function(){var a=this,b=a.container,e=[],c=b.parentNode,f=z.body,m=f.childNodes,g=a.options.exporting.printMaxWidth,d,n;if(!a.isPrinting){a.isPrinting=!0;a.pointer.reset(null,0);C(a,\\\"beforePrint\\\");if(n=g&&a.chartWidth>\\ng)d=[a.options.chart.width,void 0,!1],a.setSize(g,void 0,!1);k(m,function(a,b){1===a.nodeType&&(e[b]=a.style.display,a.style.display=\\\"none\\\")});f.appendChild(b);E.focus();E.print();setTimeout(function(){c.appendChild(b);k(m,function(a,b){1===a.nodeType&&(a.style.display=e[b])});a.isPrinting=!1;n&&a.setSize.apply(a,d);C(a,\\\"afterPrint\\\")},1E3)}},contextMenu:function(a,b,e,c,v,m,g){var d=this,n=d.options.navigation,h=d.chartWidth,H=d.chartHeight,p=\\\"cache-\\\"+a,l=d[p],w=Math.max(v,m),x,y;l||(d[p]=l=r(\\\"div\\\",\\n{className:a},{position:\\\"absolute\\\",zIndex:1E3,padding:w+\\\"px\\\",pointerEvents:\\\"auto\\\"},d.fixedDiv||d.container),x=r(\\\"div\\\",{className:\\\"highcharts-menu\\\"},null,l),u(x,t({MozBoxShadow:\\\"3px 3px 10px #888\\\",WebkitBoxShadow:\\\"3px 3px 10px #888\\\",boxShadow:\\\"3px 3px 10px #888\\\"},n.menuStyle)),y=function(){u(l,{display:\\\"none\\\"});g&&g.setState(0);d.openMenu=!1},d.exportEvents.push(q(l,\\\"mouseleave\\\",function(){l.hideTimer=setTimeout(y,500)}),q(l,\\\"mouseenter\\\",function(){f.clearTimeout(l.hideTimer)}),q(z,\\\"mouseup\\\",function(b){d.pointer.inClass(b.target,\\na)||y()}),q(l,\\\"click\\\",function(){d.openMenu&&y()})),k(b,function(a){\\\"string\\\"===typeof a&&(a=d.options.exporting.menuItemDefinitions[a]);if(f.isObject(a,!0)){var b;a.separator?b=r(\\\"hr\\\",null,null,x):(b=r(\\\"div\\\",{className:\\\"highcharts-menu-item\\\",onclick:function(b){b&&b.stopPropagation();y();a.onclick&&a.onclick.apply(d,arguments)},innerHTML:a.text||d.options.lang[a.textKey]},null,x),b.onmouseover=function(){u(this,n.menuItemHoverStyle)},b.onmouseout=function(){u(this,n.menuItemStyle)},u(b,t({cursor:\\\"pointer\\\"},\\nn.menuItemStyle)));d.exportDivElements.push(b)}}),d.exportDivElements.push(x,l),d.exportMenuWidth=l.offsetWidth,d.exportMenuHeight=l.offsetHeight);b={display:\\\"block\\\"};e+d.exportMenuWidth>h?b.right=h-e-v-w+\\\"px\\\":b.left=e-w+\\\"px\\\";c+m+d.exportMenuHeight>H&&\\\"top\\\"!==g.alignOptions.verticalAlign?b.bottom=H-c-w+\\\"px\\\":b.top=c+m-w+\\\"px\\\";u(l,b);d.openMenu=!0},addButton:function(a){var b=this,e=b.renderer,c=p(b.options.navigation.buttonOptions,a),f=c.onclick,m=c.menuItems,g,d,n=c.symbolSize||12;b.btnCount||(b.btnCount=\\n0);b.exportDivElements||(b.exportDivElements=[],b.exportSVGElements=[]);if(!1!==c.enabled){var h=c.theme,k=h.states,q=k&&k.hover,k=k&&k.select,l;delete h.states;f?l=function(a){a.stopPropagation();f.call(b,a)}:m&&(l=function(){b.contextMenu(d.menuClassName,m,d.translateX,d.translateY,d.width,d.height,d);d.setState(2)});c.text&&c.symbol?h.paddingLeft=B(h.paddingLeft,25):c.text||t(h,{width:c.width,height:c.height,padding:0});d=e.button(c.text,0,0,l,h,q,k).addClass(a.className).attr({\\\"stroke-linecap\\\":\\\"round\\\",\\ntitle:B(b.options.lang[c._titleKey],\\\"\\\")});d.menuClassName=a.menuClassName||\\\"highcharts-menu-\\\"+b.btnCount++;c.symbol&&(g=e.symbol(c.symbol,c.symbolX-n/2,c.symbolY-n/2,n,n,{width:n,height:n}).addClass(\\\"highcharts-button-symbol\\\").attr({zIndex:1}).add(d),g.attr({stroke:c.symbolStroke,fill:c.symbolFill,\\\"stroke-width\\\":c.symbolStrokeWidth||1}));d.add(b.exportingGroup).align(t(c,{width:d.width,x:B(c.x,b.buttonOffset)}),!0,\\\"spacingBox\\\");b.buttonOffset+=(d.width+c.buttonSpacing)*(\\\"right\\\"===c.align?-1:1);b.exportSVGElements.push(d,\\ng)}},destroyExport:function(a){var b=a?a.target:this;a=b.exportSVGElements;var e=b.exportDivElements,c=b.exportEvents,h;a&&(k(a,function(a,c){a&&(a.onclick=a.ontouchstart=null,h=\\\"cache-\\\"+a.menuClassName,b[h]&&delete b[h],b.exportSVGElements[c]=a.destroy())}),a.length=0);b.exportingGroup&&(b.exportingGroup.destroy(),delete b.exportingGroup);e&&(k(e,function(a,c){f.clearTimeout(a.hideTimer);I(a,\\\"mouseleave\\\");b.exportDivElements[c]=a.onmouseout=a.onmouseover=a.ontouchstart=a.onclick=null;D(a)}),e.length=\\n0);c&&(k(c,function(a){a()}),c.length=0)}});K.menu=function(a,b,e,c){return[\\\"M\\\",a,b+2.5,\\\"L\\\",a+e,b+2.5,\\\"M\\\",a,b+c/2+.5,\\\"L\\\",a+e,b+c/2+.5,\\\"M\\\",a,b+c-1.5,\\\"L\\\",a+e,b+c-1.5]};A.prototype.renderExporting=function(){var a=this,b=a.options.exporting,e=b.buttons,c=a.isDirtyExporting||!a.exportSVGElements;a.buttonOffset=0;a.isDirtyExporting&&a.destroyExport();c&&!1!==b.enabled&&(a.exportEvents=[],a.exportingGroup=a.exportingGroup||a.renderer.g(\\\"exporting-group\\\").attr({zIndex:3}).add(),F(e,function(b){a.addButton(b)}),\\na.isDirtyExporting=!1);q(a,\\\"destroy\\\",a.destroyExport)};q(A,\\\"init\\\",function(){var a=this;k([\\\"exporting\\\",\\\"navigation\\\"],function(b){a[b]={update:function(e,c){a.isDirtyExporting=!0;p(!0,a.options[b],e);B(c,!0)&&a.redraw()}}})});A.prototype.callbacks.push(function(a){a.renderExporting();q(a,\\\"redraw\\\",a.renderExporting)})})(h)});\\n\\n /* END modules/exporting.js*/\\n\\n /* BEGIN highcharts-3d.js */\\n\\n/*\\n Highcharts JS v6.1.1 (2018-06-27)\\n\\n 3D features for Highcharts JS\\n\\n @license: www.highcharts.com/license\\n*/\\n(function(A){\\\"object\\\"===typeof module&&module.exports?module.exports=A:A(Highcharts)})(function(A){(function(b){var u=b.deg2rad,z=b.pick;b.perspective3D=function(b,n,x){n=0e&&C-e>Math.PI/2+.0001?(B=B.concat(u(a,c,d,b,e,e+Math.PI/2,k,g)),B=B.concat(u(a,c,d,b,e+Math.PI/2,C,k,g))):CMath.PI/2+.0001?(B=B.concat(u(a,c,d,b,e,e-Math.PI/2,k,g)),B=B.concat(u(a,c,d,b,e-Math.PI/2,C,k,g))):\\n[\\\"C\\\",a+d*Math.cos(e)-d*t*E*Math.sin(e)+k,c+b*Math.sin(e)+b*t*E*Math.cos(e)+g,a+d*Math.cos(C)+d*t*E*Math.sin(C)+k,c+b*Math.sin(C)-b*t*E*Math.cos(C)+g,a+d*Math.cos(C)+k,c+b*Math.sin(C)+g]}var z=Math.cos,p=Math.PI,n=Math.sin,x=b.animObject,y=b.charts,m=b.color,h=b.defined,w=b.deg2rad,v=b.each,l=b.extend,a=b.inArray,e=b.map,f=b.merge,k=b.perspective,g=b.pick,d=b.SVGElement,c=b.SVGRenderer,q=b.wrap,t=4*(Math.sqrt(2)-1)/3/(p/2);c.prototype.toLinePath=function(a,c){var d=[];v(a,function(a){d.push(\\\"L\\\",a.x,\\na.y)});a.length&&(d[0]=\\\"M\\\",c&&d.push(\\\"Z\\\"));return d};c.prototype.toLineSegments=function(a){var c=[],d=!0;v(a,function(a){c.push(d?\\\"M\\\":\\\"L\\\",a.x,a.y);d=!d});return c};c.prototype.face3d=function(a){var c=this,d=this.createElement(\\\"path\\\");d.vertexes=[];d.insidePlotArea=!1;d.enabled=!0;q(d,\\\"attr\\\",function(a,d){if(\\\"object\\\"===typeof d&&(h(d.enabled)||h(d.vertexes)||h(d.insidePlotArea))){this.enabled=g(d.enabled,this.enabled);this.vertexes=g(d.vertexes,this.vertexes);this.insidePlotArea=g(d.insidePlotArea,\\nthis.insidePlotArea);delete d.enabled;delete d.vertexes;delete d.insidePlotArea;var B=k(this.vertexes,y[c.chartIndex],this.insidePlotArea),e=c.toLinePath(B,!0),B=b.shapeArea(B),B=this.enabled&&0b.faces.length;)c.faces.pop().destroy();for(;c.faces.lengthb.faces.length;)c.faces.pop().destroy();for(;c.faces.lengthb.shapeArea(a)?g=[a,0]:0>b.shapeArea(d)&&(g=[d,1]);return g};v=m([3,2,1,0],[7,6,5,4]);a=v[0];l=v[1];v=m([1,6,7,0],[4,5,2,3]);t=v[0];\\nf=v[1];v=m([1,2,5,6],[0,7,4,3]);m=v[0];v=v[1];1===v?p+=1E4*(1E3-d):v||(p+=1E4*d);p+=10*(!f||0<=n&&180>=n||360>n&&357.5Math.PI&&(a=2*Math.PI-a);return a}var d=a.x,e=a.y,b=a.start,g=a.end-.00001,k=a.r,t=a.innerR,l=a.depth,f=a.alpha,r=a.beta,q=Math.cos(b),v=Math.sin(b);a=Math.cos(g);var m=Math.sin(g),h=k*Math.cos(r),k=k*Math.cos(f),y=t*Math.cos(r),x=t*Math.cos(f),t=l*Math.sin(r),w=l*Math.sin(f),l=[\\\"M\\\",d+h*q,e+k*v],l=l.concat(u(d,e,h,k,b,g,0,0)),l=l.concat([\\\"L\\\",d+y*a,e+x*m]),l=\\nl.concat(u(d,e,y,x,g,b,0,0)),l=l.concat([\\\"Z\\\"]),A=0-A?b:g>-A?-A:b,D=gF&&bp-r&&bc&&(m=Math.min(m,1-Math.abs((a+g)/(c+g))%1));et&&(m=0>t?Math.min(m,(f+d)/(-t+f+d)):Math.min(m,1-(f+d)/(t+d)%1));ka?-1:0},q=c([{x:e,y:g,z:d},{x:f,y:g,z:d},{x:f,y:g,z:0},{x:e,y:g,z:0}]),t=c([{x:e,y:k,z:0},{x:f,y:k,z:0},{x:f,y:k,z:d},{x:e,y:k,z:d}]),r=c([{x:e,y:k,z:0},{x:e,y:k,z:d},{x:e,y:g,z:d},{x:e,y:g,z:0}]),p=c([{x:f,y:k,z:d},{x:f,y:k,z:0},{x:f,y:g,z:0},{x:f,y:g,z:d}]),x=c([{x:e,y:g,z:0},{x:f,\\ny:g,z:0},{x:f,y:k,z:0},{x:e,y:k,z:0}]),c=c([{x:e,y:k,z:d},{x:f,y:k,z:d},{x:f,y:g,z:d},{x:e,y:g,z:d}]),w=!1,G=!1,u=!1,z=!1;n([].concat(h.xAxis,h.yAxis,h.zAxis),function(a){a&&(a.horiz?a.opposite?G=!0:w=!0:a.opposite?z=!0:u=!0)});var A=function(a,c,d){for(var b=[\\\"size\\\",\\\"color\\\",\\\"visible\\\"],e={},g=0;gd*e[b][c]?b=g:d*e[g][c]===d*e[b][c]&&e[g].zthis.pos&&(b.isArray(this.start)||b.isArray(this.end))){var l=this.start||[1,0,0,1,0,0],a=this.end||[1,0,0,1,0,0];h=[];for(var e=0;6>e;e++)h.push(this.pos*\\na[e]+(1-this.pos)*l[e])}else h=this.end;this.elem.attr(this.prop,h,null,!0)}})(A);(function(b){function u(d,c,b){if(!d.chart.is3d()||\\\"colorAxis\\\"===d.coll)return c;var g=d.chart,k=y*g.options.chart.options3d.alpha,f=y*g.options.chart.options3d.beta,l=a(b&&d.options.title.position3d,d.options.labels.position3d);b=a(b&&d.options.title.skew3d,d.options.labels.skew3d);var h=g.frame3d,q=g.plotLeft,m=g.plotWidth+q,n=g.plotTop,p=g.plotHeight+n,g=!1,w=0,x=0,u={x:0,y:1,z:0};c=d.swapZ({x:c.x,y:c.y,z:0});if(d.isZAxis)if(d.opposite){if(null===\\nh.axes.z.top)return{};x=c.y-n;c.x=h.axes.z.top.x;c.y=h.axes.z.top.y;q=h.axes.z.top.xDir;g=!h.top.frontFacing}else{if(null===h.axes.z.bottom)return{};x=c.y-p;c.x=h.axes.z.bottom.x;c.y=h.axes.z.bottom.y;q=h.axes.z.bottom.xDir;g=!h.bottom.frontFacing}else if(d.horiz)if(d.opposite){if(null===h.axes.x.top)return{};x=c.y-n;c.y=h.axes.x.top.y;c.z=h.axes.x.top.z;q=h.axes.x.top.xDir;g=!h.top.frontFacing}else{if(null===h.axes.x.bottom)return{};x=c.y-p;c.y=h.axes.x.bottom.y;c.z=h.axes.x.bottom.z;q=h.axes.x.bottom.xDir;\\ng=!h.bottom.frontFacing}else if(d.opposite){if(null===h.axes.y.right)return{};w=c.x-m;c.x=h.axes.y.right.x;c.z=h.axes.y.right.z;q=h.axes.y.right.xDir;q={x:q.z,y:q.y,z:-q.x}}else{if(null===h.axes.y.left)return{};w=c.x-q;c.x=h.axes.y.left.x;c.z=h.axes.y.left.z;q=h.axes.y.left.xDir}\\\"chart\\\"!==l&&(\\\"flap\\\"===l?d.horiz?(f=Math.sin(k),k=Math.cos(k),d.opposite&&(f=-f),g&&(f=-f),u={x:q.z*f,y:k,z:-q.x*f}):q={x:Math.cos(f),y:0,z:Math.sin(f)}:\\\"ortho\\\"===l?d.horiz?(u=Math.cos(k),l=Math.sin(f)*u,k=-Math.sin(k),f=\\n-u*Math.cos(f),u={x:q.y*f-q.z*k,y:q.z*l-q.x*f,z:q.x*k-q.y*l},k=1/Math.sqrt(u.x*u.x+u.y*u.y+u.z*u.z),g&&(k=-k),u={x:k*u.x,y:k*u.y,z:k*u.z}):q={x:Math.cos(f),y:0,z:Math.sin(f)}:d.horiz?u={x:Math.sin(f)*Math.sin(k),y:Math.cos(k),z:-Math.cos(f)*Math.sin(k)}:q={x:Math.cos(f),y:0,z:Math.sin(f)});c.x+=w*q.x+x*u.x;c.y+=w*q.y+x*u.y;c.z+=w*q.z+x*u.z;g=v([c],d.chart)[0];b&&(0>e(v([c,{x:c.x+q.x,y:c.y+q.y,z:c.z+q.z},{x:c.x+u.x,y:c.y+u.y,z:c.z+u.z}],d.chart))&&(q={x:-q.x,y:-q.y,z:-q.z}),d=v([{x:c.x,y:c.y,z:c.z},\\n{x:c.x+q.x,y:c.y+q.y,z:c.z+q.z},{x:c.x+u.x,y:c.y+u.y,z:c.z+u.z}],d.chart),g.matrix=[d[1].x-d[0].x,d[1].y-d[0].y,d[2].x-d[0].x,d[2].y-d[0].y,g.x,g.y],g.matrix[4]-=g.x*g.matrix[0]+g.y*g.matrix[2],g.matrix[5]-=g.x*g.matrix[1]+g.y*g.matrix[3]);return g}var z,p=b.addEvent,n=b.Axis,x=b.Chart,y=b.deg2rad,m=b.each,h=b.extend,w=b.merge,v=b.perspective,l=b.perspective3D,a=b.pick,e=b.shapeArea,f=b.splat,k=b.Tick,g=b.wrap;w(!0,n.prototype.defaultOptions,{labels:{position3d:\\\"offset\\\",skew3d:!1},title:{position3d:null,\\nskew3d:null}});p(n,\\\"afterSetOptions\\\",function(){var d;this.chart.is3d&&this.chart.is3d()&&\\\"colorAxis\\\"!==this.coll&&(d=this.options,d.tickWidth=a(d.tickWidth,0),d.gridLineWidth=a(d.gridLineWidth,1))});g(n.prototype,\\\"getPlotLinePath\\\",function(a){var c=a.apply(this,[].slice.call(arguments,1));if(!this.chart.is3d()||\\\"colorAxis\\\"===this.coll||null===c)return c;var d=this.chart,b=d.options.chart.options3d,b=this.isZAxis?d.plotWidth:b.depth,d=d.frame3d,c=[this.swapZ({x:c[1],y:c[2],z:0}),this.swapZ({x:c[1],\\ny:c[2],z:b}),this.swapZ({x:c[4],y:c[5],z:0}),this.swapZ({x:c[4],y:c[5],z:b})],b=[];this.horiz?(this.isZAxis?(d.left.visible&&b.push(c[0],c[2]),d.right.visible&&b.push(c[1],c[3])):(d.front.visible&&b.push(c[0],c[2]),d.back.visible&&b.push(c[1],c[3])),d.top.visible&&b.push(c[0],c[1]),d.bottom.visible&&b.push(c[2],c[3])):(d.front.visible&&b.push(c[0],c[2]),d.back.visible&&b.push(c[1],c[3]),d.left.visible&&b.push(c[0],c[1]),d.right.visible&&b.push(c[2],c[3]));b=v(b,this.chart,!1);return this.chart.renderer.toLineSegments(b)});\\ng(n.prototype,\\\"getLinePath\\\",function(a){return this.chart.is3d()&&\\\"colorAxis\\\"!==this.coll?[]:a.apply(this,[].slice.call(arguments,1))});g(n.prototype,\\\"getPlotBandPath\\\",function(a){if(!this.chart.is3d()||\\\"colorAxis\\\"===this.coll)return a.apply(this,[].slice.call(arguments,1));var c=arguments,d=c[2],b=[],c=this.getPlotLinePath(c[1]),d=this.getPlotLinePath(d);if(c&&d)for(var e=0;e=u.min&&h<=u.max:!1):m.plotZ=0,m.axisXpos=m.plotX,m.axisYpos=m.plotY,m.axisZpos=m.plotZ,y.push({x:m.plotX,y:m.plotY,z:m.plotZ});b=z(y,b,!0);for(w=0;wh&&(c[a[1]]+=c[a[0]]+g,c[a[0]]=-g,h=0);h+c[a[1]]>b[a[0]+\\\"Axis\\\"].len&&0!==c[a[1]]&&(c[a[1]]=b[a[0]+\\\"Axis\\\"].len-c[a[0]]);if(0!==c[a[1]]&&(c[a[0]]>=b[a[0]+\\\"Axis\\\"].len||c[a[0]]+c[a[1]]<=g)){for(var e in c)c[e]=0;d.outside3dPlot=!0}});d.shapeType=\\\"cuboid\\\";c.z=k;c.depth=f;c.insidePlotArea=!0;e=n([{x:e[0],y:e[1],z:k}],a,!0)[0];d.tooltipPos=[e.x,e.y]}});b.z=k};v(m.column.prototype,\\\"animate\\\",function(b){if(this.chart.is3d()){var a=\\narguments[1],e=this.yAxis,f=this,k=this.yAxis.reversed;w&&(a?p(f.data,function(a){null!==a.y&&(a.height=a.shapeArgs.height,a.shapey=a.shapeArgs.y,a.shapeArgs.height=1,k||(a.shapeArgs.y=a.stackY?a.plotY+e.translate(a.stackY):a.plotY+(a.negative?-a.height:a.height)))}):(p(f.data,function(a){null!==a.y&&(a.shapeArgs.height=a.height,a.shapeArgs.y=a.shapey,a.graphic&&a.graphic.animate(a.shapeArgs,f.options.animation))}),this.drawDataLabels(),f.animate=null))}else b.apply(this,[].slice.call(arguments,1))});\\nv(m.column.prototype,\\\"plotGroup\\\",function(b,a,e,f,k,g){this.chart.is3d()&&g&&!this[a]&&(this.chart.columnGroup||(this.chart.columnGroup=this.chart.renderer.g(\\\"columnGroup\\\").add(g)),this[a]=this.chart.columnGroup,this.chart.columnGroup.attr(this.getPlotBox()),this[a].survive=!0);return b.apply(this,Array.prototype.slice.call(arguments,1))});v(m.column.prototype,\\\"setVisible\\\",function(b,a){var e=this,f;e.chart.is3d()&&p(e.data,function(b){f=(b.visible=b.options.visible=a=void 0===a?!b.visible:a)?\\\"visible\\\":\\n\\\"hidden\\\";e.options.data[h(b,e.data)]=b.options;b.graphic&&b.graphic.attr({visibility:f})});b.apply(this,Array.prototype.slice.call(arguments,1))});m.column.prototype.handle3dGrouping=!0;z(y,\\\"afterInit\\\",function(){if(this.chart.is3d()&&this.handle3dGrouping){var b=this.options,a=b.grouping,e=b.stacking,f=x(this.yAxis.options.reversedStacks,!0),k=0;if(void 0===a||a){a=this.chart.retrieveStacks(e);k=b.stack||0;for(e=0;eC||C>m?(++C,n=\\\"\\\"):(!isNaN(parseFloat(n))&&isFinite(n)?(n=parseFloat(n),f(\\\"number\\\")):isNaN(Date.parse(n))?f(\\\"string\\\"):(n=n.replace(/\\\\//g,\\\"-\\\"),f(\\\"date\\\")),h.lengtht[\\\",\\\"]?\\\";\\\":\\\",\\\";d.decimalPoint||(d.decimalPoint=b>c?\\\".\\\":\\\",\\\",e.decimalRegex=new RegExp(\\\"^(-?[0-9]+)\\\"+d.decimalPoint+\\\"([0-9]+)$\\\"));return f}function f(a,b){var c,f,g=0,l=!1,h=[],n=[],k;if(!b||b>a.length)b=a.length;for(;gc[k]?\\\"YY\\\":\\\"YYYY\\\":12=c[k]?(f[k]=\\\"dd\\\",l=!0):f[k].length||(f[k]=\\\"mm\\\")));if(l){for(k=0;ka)a=0;if(!g||g>=l.length)g=l.length-1;d.itemDelimiter?\\nq=d.itemDelimiter:(q=null,q=c(l));for(var G=0,n=a;n<=g;n++)\\\"#\\\"===l[n][0]?G++:b(l[n],n-a-G);d.columnTypes&&0!==d.columnTypes.length||!v.length||!v[0].length||\\\"date\\\"!==v[0][1]||d.dateFormat||(d.dateFormat=f(h[0]));this.dataFound()}return h},parseTable:function(){var a=this.options,b=a.table,c=this.columns,f=a.startRow||0,e=a.endRow||Number.MAX_VALUE,d=a.startColumn||0,l=a.endColumn||Number.MAX_VALUE;b&&(\\\"string\\\"===typeof b&&(b=p.getElementById(b)),u(b.getElementsByTagName(\\\"tr\\\"),function(a,b){b>=f&&\\nb<=e&&u(a.children,function(a,e){(\\\"TD\\\"===a.tagName||\\\"TH\\\"===a.tagName)&&e>=d&&e<=l&&(c[e-d]||(c[e-d]=[]),c[e-d][b-f]=a.innerHTML)})}),this.dataFound());return c},fetchLiveData:function(){function a(w){function g(g,l,q){function n(){e&&b.liveDataURL===g&&(b.liveDataTimeout=setTimeout(a,d))}if(!g||0!==g.indexOf(\\\"http\\\"))return g&&c.error&&c.error(\\\"Invalid URL\\\"),!1;w&&(clearTimeout(b.liveDataTimeout),b.liveDataURL=g);h.ajax({url:g,dataType:q||\\\"json\\\",success:function(a){b&&b.series&&l(a);n()},error:function(a,\\nb){3>++f&&n();return c.error&&c.error(b,a)}});return!0}g(l.csvURL,function(a){b.update({data:{csv:a}})},\\\"text\\\")||g(l.rowsURL,function(a){b.update({data:{rows:a}})})||g(l.columnsURL,function(a){b.update({data:{columns:a}})})}var b=this.chart,c=this.options,f=0,e=c.enablePolling,d=1E3*(c.dataRefreshRate||2),l=A(c);if(!c||!c.csvURL&&!c.rowsURL&&!c.columnsURL)return!1;1E3>d&&(d=1E3);delete c.csvURL;delete c.rowsURL;delete c.columnsURL;a(!0);return c&&(c.csvURL||c.rowsURL||c.columnsURL)},parseGoogleSpreadsheet:function(){function a(b){var e=\\n[\\\"https://spreadsheets.google.com/feeds/cells\\\",f,d,\\\"public/values?alt\\\\x3djson\\\"].join(\\\"/\\\");h.ajax({url:e,dataType:\\\"json\\\",success:function(d){b(d);c.enablePolling&&setTimeout(function(){a(b)},c.dataRefreshRate)},error:function(a,b){return c.error&&c.error(b,a)}})}var b=this,c=this.options,f=c.googleSpreadsheetKey,e=this.chart,d=c.googleSpreadsheetWorksheet||1,l=c.startRow||0,w=c.endRow||Number.MAX_VALUE,g=c.startColumn||0,m=c.endColumn||Number.MAX_VALUE,p=1E3*(c.dataRefreshRate||2);4E3>p&&(p=4E3);f&&\\n(delete c.googleSpreadsheetKey,a(function(a){var c=[];a=a.feed.entry;var d,f=(a||[]).length,h=0,p,q,r;if(!a||0===a.length)return!1;for(r=0;r=g&&r<=m&&(c[r-g]=[]);for(r=0;r=g&&p<=m&&h>=l&&h<=w&&(q=d.gs$cell||d.content,d=null,q.numericValue?d=0<=q.$t.indexOf(\\\"/\\\")||0<=q.$t.indexOf(\\\"-\\\")?q.$t:0a[e+1])):(h&&h.length&&(q=this.parseDate(d)),p&&F(q)&&\\\"float\\\"!==\\nu?(n[e]=d,a[e]=q,a.isDatetime=!0,void 0!==a[e+1]&&(d=q>a[e+1],d!==t&&void 0!==t&&(this.alternativeFormat?(this.dateFormat=this.alternativeFormat,e=a.length,this.alternativeFormat=this.dateFormats[this.dateFormat].alternative):a.unsorted=!0),t=d)):(a[e]=\\\"\\\"===h?null:h,0!==e&&(a.isDatetime||a.isNumeric)&&(a.mixed=!0)));p&&a.mixed&&(f[b]=c[b]);if(p&&t&&this.options.sort)for(b=0;b(new Date).getFullYear()-2E3?b+1900:b+2E3;return Date.UTC(b,\\na[2]-1,+a[1])},alternative:\\\"mm/dd/YY\\\"},\\\"mm/dd/YY\\\":{regex:/^([0-9]{1,2})[\\\\-\\\\/\\\\.]([0-9]{1,2})[\\\\-\\\\/\\\\.]([0-9]{2})$/,parser:function(a){return Date.UTC(+a[3]+2E3,a[1]-1,+a[2])}}},parseDate:function(a){var b=this.options.parseDate,c,f,e=this.options.dateFormat||this.dateFormat,d;if(b)c=b(a);else if(\\\"string\\\"===typeof a){if(e)(b=this.dateFormats[e])||(b=this.dateFormats[\\\"YYYY/mm/dd\\\"]),(d=a.match(b.regex))&&(c=b.parser(d));else for(f in this.dateFormats)if(b=this.dateFormats[f],d=a.match(b.regex)){this.dateFormat=\\nf;this.alternativeFormat=b.alternative;c=b.parser(d);break}d||(d=Date.parse(a),\\\"object\\\"===typeof d&&null!==d&&d.getTime?c=d.getTime()-6E4*d.getTimezoneOffset():F(d)&&(c=d-6E4*(new Date(d)).getTimezoneOffset()))}return c},rowsToColumns:function(a){var b,c,f,e,d;if(a)for(d=[],c=a.length,b=0;b\n", "
\n", " \n", "
\n", " \n", "
\n", " \n", " \n", "\n", "\n", "\n", "\n", " \n", "\n", "\n" ], "text/plain": [ "\"\\n \\n \\n \\n \\n \\n \\n \\n
\\n\\n\\n\\n \\n\\n\\n\"" ] }, "execution_count": 13, "metadata": {}, "output_type": "execute_result" } ], "source": [ "options_hc = {\n", " chart: {\n", " type: 'pie'\n", " },\n", " title: {\n", " text: 'How Much Pizza Sarah Ate Last Night'\n", " },\n", " adapter: 'highcharts'\n", "}\n", "pizza_sarah_hc = Daru::View::Plot.new(df_sarah, options_hc)\n", "pizza_sarah_hc.init_iruby\n", "combined = Daru::View::PlotList.new([pizza_sarah, pizza_sarah_hc])\n", "combined.show_in_iruby" ] }, { "cell_type": "code", "execution_count": 14, "metadata": {}, "outputs": [ { "data": { "application/javascript": [ "\n", "\n", "var event = document.createEvent(\"HTMLEvents\");\n", "event.initEvent(\"load_highcharts\", false, false);\n", "window.dispatchEvent(event);\n", "console.log(\"Finish loading highchartsjs\");\n" ], "text/plain": [ "\"\\n\\nvar event = document.createEvent(\\\"HTMLEvents\\\");\\nevent.initEvent(\\\"load_highcharts\\\", false, false);\\nwindow.dispatchEvent(event);\\nconsole.log(\\\"Finish loading highchartsjs\\\");\\n\"" ] }, "metadata": {}, "output_type": "display_data" }, { "data": { "text/html": [ "\n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", "
\n", "\n", "\n", "\n", " \n", "\n", "\n" ], "text/plain": [ "\"\\n \\n \\n \\n \\n \\n \\n \\n
\\n\\n\\n\\n \\n\\n\\n\"" ] }, "execution_count": 14, "metadata": {}, "output_type": "execute_result" } ], "source": [ "options_bar_hc = {\n", " chart: {\n", " type: 'bar'\n", " },\n", " title: {\n", " text: 'How Much Pizza Sarah Ate Last Night'\n", " },\n", " adapter: 'highcharts'\n", "}\n", "pizza_sarah_bar_hc = Daru::View::Plot.new(df_sarah, options_bar_hc)\n", "combined = Daru::View::PlotList.new([pizza_sarah_bar, pizza_sarah_bar_hc])\n", "combined.show_in_iruby" ] }, { "cell_type": "code", "execution_count": 15, "metadata": {}, "outputs": [ { "data": { "application/javascript": [ "\n", "\n", "var event = document.createEvent(\"HTMLEvents\");\n", "event.initEvent(\"load_highcharts\", false, false);\n", "window.dispatchEvent(event);\n", "console.log(\"Finish loading highchartsjs\");\n" ], "text/plain": [ "\"\\n\\nvar event = document.createEvent(\\\"HTMLEvents\\\");\\nevent.initEvent(\\\"load_highcharts\\\", false, false);\\nwindow.dispatchEvent(event);\\nconsole.log(\\\"Finish loading highchartsjs\\\");\\n\"" ] }, "metadata": {}, "output_type": "display_data" }, { "data": { "application/javascript": [ "\n", "\n", "var event = document.createEvent(\"HTMLEvents\");\n", "event.initEvent(\"load_highcharts\", false, false);\n", "window.dispatchEvent(event);\n", "console.log(\"Finish loading highchartsjs\");\n" ], "text/plain": [ "\"\\n\\nvar event = document.createEvent(\\\"HTMLEvents\\\");\\nevent.initEvent(\\\"load_highcharts\\\", false, false);\\nwindow.dispatchEvent(event);\\nconsole.log(\\\"Finish loading highchartsjs\\\");\\n\"" ] }, "metadata": {}, "output_type": "display_data" }, { "data": { "text/html": [ "\n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", "
\n", "\n", "\n", "\n", " \n", "\n", "\n", "\n", "\n", " \n", "\n", "\n" ], "text/plain": [ "\"\\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n
\\n\\n\\n\\n \\n\\n\\n\\n\\n \\n\\n\\n\"" ] }, "execution_count": 15, "metadata": {}, "output_type": "execute_result" } ], "source": [ "combined_pizzas = Daru::View::PlotList.new([pizza_sarah, pizza_sarah_hc, pizza_sarah_bar, pizza_sarah_bar_hc])\n", "combined_pizzas.show_in_iruby" ] }, { "cell_type": "code", "execution_count": 16, "metadata": {}, "outputs": [ { "data": { "application/javascript": [ "if(window['d3'] === undefined ||\n", " window['Nyaplot'] === undefined){\n", " var path = {\"d3\":\"https://cdnjs.cloudflare.com/ajax/libs/d3/3.5.5/d3.min\",\"downloadable\":\"http://cdn.rawgit.com/domitry/d3-downloadable/master/d3-downloadable\"};\n", "\n", "\n", "\n", " var shim = {\"d3\":{\"exports\":\"d3\"},\"downloadable\":{\"exports\":\"downloadable\"}};\n", "\n", " require.config({paths: path, shim:shim});\n", "\n", "\n", "require(['d3'], function(d3){window['d3']=d3;console.log('finished loading d3');require(['downloadable'], function(downloadable){window['downloadable']=downloadable;console.log('finished loading downloadable');\n", "\n", "\tvar script = d3.select(\"head\")\n", "\t .append(\"script\")\n", "\t .attr(\"src\", \"http://cdn.rawgit.com/domitry/Nyaplotjs/master/release/nyaplot.js\")\n", "\t .attr(\"async\", true);\n", "\n", "\tscript[0][0].onload = script[0][0].onreadystatechange = function(){\n", "\n", "\n", "\t var event = document.createEvent(\"HTMLEvents\");\n", "\t event.initEvent(\"load_nyaplot\",false,false);\n", "\t window.dispatchEvent(event);\n", "\t console.log('Finished loading Nyaplotjs');\n", "\n", "\t};\n", "\n", "\n", "});});\n", "}\n" ], "text/plain": [ "\"if(window['d3'] === undefined ||\\n window['Nyaplot'] === undefined){\\n var path = {\\\"d3\\\":\\\"https://cdnjs.cloudflare.com/ajax/libs/d3/3.5.5/d3.min\\\",\\\"downloadable\\\":\\\"http://cdn.rawgit.com/domitry/d3-downloadable/master/d3-downloadable\\\"};\\n\\n\\n\\n var shim = {\\\"d3\\\":{\\\"exports\\\":\\\"d3\\\"},\\\"downloadable\\\":{\\\"exports\\\":\\\"downloadable\\\"}};\\n\\n require.config({paths: path, shim:shim});\\n\\n\\nrequire(['d3'], function(d3){window['d3']=d3;console.log('finished loading d3');require(['downloadable'], function(downloadable){window['downloadable']=downloadable;console.log('finished loading downloadable');\\n\\n\\tvar script = d3.select(\\\"head\\\")\\n\\t .append(\\\"script\\\")\\n\\t .attr(\\\"src\\\", \\\"http://cdn.rawgit.com/domitry/Nyaplotjs/master/release/nyaplot.js\\\")\\n\\t .attr(\\\"async\\\", true);\\n\\n\\tscript[0][0].onload = script[0][0].onreadystatechange = function(){\\n\\n\\n\\t var event = document.createEvent(\\\"HTMLEvents\\\");\\n\\t event.initEvent(\\\"load_nyaplot\\\",false,false);\\n\\t window.dispatchEvent(event);\\n\\t console.log('Finished loading Nyaplotjs');\\n\\n\\t};\\n\\n\\n});});\\n}\\n\"" ] }, "metadata": {}, "output_type": "display_data" }, { "data": { "text/html": [ "\n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", "
\n", "\n", "\n", "\n", "\n", "\n", "\n" ], "text/plain": [ "\"\\n \\n \\n \\n \\n \\n \\n \\n
\\n\\n\\n\\n\\n\\n\\n\"" ] }, "execution_count": 16, "metadata": {}, "output_type": "execute_result" } ], "source": [ "dv = Daru::Vector.new [:a, :a, :a, :b, :b, :c], type: :category\n", "bar_graph1 = Daru::View::Plot.new(dv, type: :bar, adapter: :nyaplot)\n", "bar_graph1.init_iruby\n", "combined = Daru::View::PlotList.new([pizza_sarah, bar_graph1])\n", "combined.show_in_iruby" ] }, { "cell_type": "code", "execution_count": 17, "metadata": {}, "outputs": [ { "data": { "text/html": [ "\n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", "
\n", "\n", "\n", "\n", "\n", "\n" ], "text/plain": [ "\"\\n \\n \\n \\n \\n \\n \\n \\n
\\n\\n\\n\\n\\n\\n\"" ] }, "execution_count": 17, "metadata": {}, "output_type": "execute_result" } ], "source": [ "dv = Daru::Vector.new ['III']*10 + ['II']*5 + ['I']*5, type: :category, categories: ['I', 'II', 'III']\n", "bar_graph2 = Daru::View::Plot.new(dv, type: :bar, adapter: :nyaplot)\n", "bar_combined = Daru::View::PlotList.new([bar_graph1, bar_graph2])\n", "bar_combined.show_in_iruby" ] }, { "cell_type": "code", "execution_count": 18, "metadata": {}, "outputs": [ { "data": { "text/html": [ " Daru::DataFrame(5x2) \n", "\n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", "\n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", "\n", " \n", "\n", "
data1data2
0Website visits15654
1Downloads4064
2Requested price list1987
3Invoice sent976
4Finalized846
" ], "text/plain": [ "#\n", " data1 data2\n", " 0 Website vi 15654\n", " 1 Downloads 4064\n", " 2 Requested 1987\n", " 3 Invoice se 976\n", " 4 Finalized 846" ] }, "execution_count": 18, "metadata": {}, "output_type": "execute_result" } ], "source": [ "df = Daru::DataFrame.new(\n", " {\n", " data1: ['Website visits', 'Downloads', 'Requested price list', 'Invoice sent', 'Finalized'],\n", " data2: [15654, 4064, 1987, 976, 846]\n", " }\n", ")" ] }, { "cell_type": "code", "execution_count": 19, "metadata": {}, "outputs": [ { "data": { "application/javascript": [ "\n", " /* BEGIN modules/funnel.js */\n", "\n", "/*\n", " Highcharts JS v6.1.1 (2018-06-27)\n", " Highcharts funnel module\n", "\n", " (c) 2010-2017 Torstein Honsi\n", "\n", " License: www.highcharts.com/license\n", "*/\n", "(function(e){\"object\"===typeof module&&module.exports?module.exports=e:e(Highcharts)})(function(e){(function(g){var e=g.seriesType,C=g.seriesTypes,H=g.noop,D=g.pick,I=g.each;e(\"funnel\",\"pie\",{animation:!1,center:[\"50%\",\"50%\"],width:\"90%\",neckWidth:\"30%\",height:\"100%\",neckHeight:\"25%\",reversed:!1,size:!0,dataLabels:{connectorWidth:1},states:{select:{color:\"#cccccc\",borderColor:\"#000000\"}}},{animate:H,translate:function(){var b=function(a,b){return/%$/.test(a)?b*parseInt(a,10)/100:parseInt(a,10)},E=\n", "0,c=this.chart,f=this.options,d=f.reversed,e=f.ignoreHiddenPoint,t=c.plotWidth,c=c.plotHeight,q=0,g=f.center,h=b(g[0],t),r=b(g[1],c),C=b(f.width,t),l,v,m=b(f.height,c),w=b(f.neckWidth,t),F=b(f.neckHeight,c),x=r-m/2+m-F,b=this.data,z,A,D=\"left\"===f.dataLabels.position?1:0,B,n,G,u,k,y,p;this.getWidthAt=v=function(a){var b=r-m/2;return a>x||m===F?w:w+(C-w)*(1-(a-b)/(m-F))};this.getX=function(a,b,c){return h+(b?-1:1)*(v(d?2*r-a:a)/2+c.labelDistance)};this.center=[h,r,m];this.centerX=h;I(b,function(a){e&&\n", "!1===a.visible||(E+=a.y)});I(b,function(a){p=null;A=E?a.y/E:0;n=r-m/2+q*m;k=n+A*m;l=v(n);B=h-l/2;G=B+l;l=v(k);u=h-l/2;y=u+l;n>x?(B=u=h-w/2,G=y=h+w/2):k>x&&(p=k,l=v(x),u=h-l/2,y=u+l,k=x);d&&(n=2*r-n,k=2*r-k,null!==p&&(p=2*r-p));z=[\"M\",B,n,\"L\",G,n,y,k];null!==p&&z.push(y,p,u,p);z.push(u,k,\"Z\");a.shapeType=\"path\";a.shapeArgs={d:z};a.percentage=100*A;a.plotX=h;a.plotY=(n+(p||k))/2;a.tooltipPos=[h,a.plotY];a.slice=H;a.half=D;e&&!1===a.visible||(q+=A)})},sortByAngle:function(b){b.sort(function(b,c){return b.plotY-\n", "c.plotY})},drawDataLabels:function(){var b=this.data,e=this.options.dataLabels.distance,c,f,d,g=b.length,t,q;for(this.center[2]-=2*e;g--;)d=b[g],f=(c=d.half)?1:-1,q=d.plotY,d.labelDistance=D(d.options.dataLabels&&d.options.dataLabels.distance,e),this.maxLabelDistance=Math.max(d.labelDistance,this.maxLabelDistance||0),t=this.getX(q,c,d),d.labelPos=[0,q,t+(d.labelDistance-5)*f,q,t+d.labelDistance*f,q,c?\"right\":\"left\",0];C.pie.prototype.drawDataLabels.call(this)}});e(\"pyramid\",\"funnel\",{neckWidth:\"0%\",\n", "neckHeight:\"0%\",reversed:!0})})(e)});\n", "\n", " /* END modules/funnel.js*/\n", "\n", "\n", "var event = document.createEvent(\"HTMLEvents\");\n", "event.initEvent(\"load_highcharts\", false, false);\n", "window.dispatchEvent(event);\n", "console.log(\"Finish loading highchartsjs\");\n" ], "text/plain": [ "\"\\n /* BEGIN modules/funnel.js */\\n\\n/*\\n Highcharts JS v6.1.1 (2018-06-27)\\n Highcharts funnel module\\n\\n (c) 2010-2017 Torstein Honsi\\n\\n License: www.highcharts.com/license\\n*/\\n(function(e){\\\"object\\\"===typeof module&&module.exports?module.exports=e:e(Highcharts)})(function(e){(function(g){var e=g.seriesType,C=g.seriesTypes,H=g.noop,D=g.pick,I=g.each;e(\\\"funnel\\\",\\\"pie\\\",{animation:!1,center:[\\\"50%\\\",\\\"50%\\\"],width:\\\"90%\\\",neckWidth:\\\"30%\\\",height:\\\"100%\\\",neckHeight:\\\"25%\\\",reversed:!1,size:!0,dataLabels:{connectorWidth:1},states:{select:{color:\\\"#cccccc\\\",borderColor:\\\"#000000\\\"}}},{animate:H,translate:function(){var b=function(a,b){return/%$/.test(a)?b*parseInt(a,10)/100:parseInt(a,10)},E=\\n0,c=this.chart,f=this.options,d=f.reversed,e=f.ignoreHiddenPoint,t=c.plotWidth,c=c.plotHeight,q=0,g=f.center,h=b(g[0],t),r=b(g[1],c),C=b(f.width,t),l,v,m=b(f.height,c),w=b(f.neckWidth,t),F=b(f.neckHeight,c),x=r-m/2+m-F,b=this.data,z,A,D=\\\"left\\\"===f.dataLabels.position?1:0,B,n,G,u,k,y,p;this.getWidthAt=v=function(a){var b=r-m/2;return a>x||m===F?w:w+(C-w)*(1-(a-b)/(m-F))};this.getX=function(a,b,c){return h+(b?-1:1)*(v(d?2*r-a:a)/2+c.labelDistance)};this.center=[h,r,m];this.centerX=h;I(b,function(a){e&&\\n!1===a.visible||(E+=a.y)});I(b,function(a){p=null;A=E?a.y/E:0;n=r-m/2+q*m;k=n+A*m;l=v(n);B=h-l/2;G=B+l;l=v(k);u=h-l/2;y=u+l;n>x?(B=u=h-w/2,G=y=h+w/2):k>x&&(p=k,l=v(x),u=h-l/2,y=u+l,k=x);d&&(n=2*r-n,k=2*r-k,null!==p&&(p=2*r-p));z=[\\\"M\\\",B,n,\\\"L\\\",G,n,y,k];null!==p&&z.push(y,p,u,p);z.push(u,k,\\\"Z\\\");a.shapeType=\\\"path\\\";a.shapeArgs={d:z};a.percentage=100*A;a.plotX=h;a.plotY=(n+(p||k))/2;a.tooltipPos=[h,a.plotY];a.slice=H;a.half=D;e&&!1===a.visible||(q+=A)})},sortByAngle:function(b){b.sort(function(b,c){return b.plotY-\\nc.plotY})},drawDataLabels:function(){var b=this.data,e=this.options.dataLabels.distance,c,f,d,g=b.length,t,q;for(this.center[2]-=2*e;g--;)d=b[g],f=(c=d.half)?1:-1,q=d.plotY,d.labelDistance=D(d.options.dataLabels&&d.options.dataLabels.distance,e),this.maxLabelDistance=Math.max(d.labelDistance,this.maxLabelDistance||0),t=this.getX(q,c,d),d.labelPos=[0,q,t+(d.labelDistance-5)*f,q,t+d.labelDistance*f,q,c?\\\"right\\\":\\\"left\\\",0];C.pie.prototype.drawDataLabels.call(this)}});e(\\\"pyramid\\\",\\\"funnel\\\",{neckWidth:\\\"0%\\\",\\nneckHeight:\\\"0%\\\",reversed:!0})})(e)});\\n\\n /* END modules/funnel.js*/\\n\\n\\nvar event = document.createEvent(\\\"HTMLEvents\\\");\\nevent.initEvent(\\\"load_highcharts\\\", false, false);\\nwindow.dispatchEvent(event);\\nconsole.log(\\\"Finish loading highchartsjs\\\");\\n\"" ] }, "metadata": {}, "output_type": "display_data" }, { "data": { "application/javascript": [ "\n", "\n", "var event = document.createEvent(\"HTMLEvents\");\n", "event.initEvent(\"load_highcharts\", false, false);\n", "window.dispatchEvent(event);\n", "console.log(\"Finish loading highchartsjs\");\n" ], "text/plain": [ "\"\\n\\nvar event = document.createEvent(\\\"HTMLEvents\\\");\\nevent.initEvent(\\\"load_highcharts\\\", false, false);\\nwindow.dispatchEvent(event);\\nconsole.log(\\\"Finish loading highchartsjs\\\");\\n\"" ] }, "metadata": {}, "output_type": "display_data" }, { "data": { "text/html": [ "\n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", "
\n", " \n", "\n", " \n", "\n", "\n" ], "text/plain": [ "\"\\n \\n \\n \\n \\n \\n \\n \\n
\\n \\n\\n \\n\\n\\n\"" ] }, "execution_count": 19, "metadata": {}, "output_type": "execute_result" } ], "source": [ "opts_funnel = {\n", " chart: {\n", " type: 'funnel'\n", " },\n", " title: {\n", " text: 'Sales funnel'\n", " },\n", " plotOptions: {\n", " series: {\n", " dataLabels: {\n", " enabled: true,\n", " format: '{point.name} ({point.y:,.0f})',\n", " color: \"(Highcharts.theme && Highcharts.theme.contrastTextColor) || 'black'\".js_code,\n", " softConnector: true\n", " },\n", " center: ['40%', '50%'],\n", " neckWidth: '30%',\n", " neckHeight: '25%',\n", " width: '80%'\n", " }\n", " },\n", " legend: {\n", " enabled: false\n", " },\n", " adapter: 'highcharts'\n", "}\n", "\n", "opts_pyramid = {\n", " chart: {\n", " type: 'pyramid'\n", " },\n", " title: {\n", " text: 'Sales pyramid',\n", " x: -50\n", " },\n", " plotOptions: {\n", " series: {\n", " dataLabels: {\n", " enabled: true,\n", " format: '{point.name} ({point.y:,.0f})',\n", " softConnector: true\n", " },\n", " center: ['40%', '50%'],\n", " width: '80%'\n", " }\n", " },\n", " legend: {\n", " enabled: false\n", " },\n", " adapter: 'highcharts'\n", "}\n", "\n", "funnel_hc = Daru::View::Plot.new(df, opts_funnel, modules: ['modules/funnel'])\n", "pyramid_hc = Daru::View::Plot.new(df, opts_pyramid)\n", "\n", "combined = Daru::View::PlotList.new([funnel_hc, pyramid_hc])\n", "combined.show_in_iruby" ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [] } ], "metadata": { "kernelspec": { "display_name": "Ruby 2.5.3", "language": "ruby", "name": "ruby" }, "language_info": { "file_extension": ".rb", "mimetype": "application/x-ruby", "name": "ruby", "version": "2.5.3" } }, "nbformat": 4, "nbformat_minor": 2 }