(function(){var O=document,aJ=window,aa=Math,w=aa.round,V=aa.floor,bl=aa.ceil,aV=aa.max,ai=aa.min,bi=aa.abs,a1=aa.cos,G=aa.sin,o=aa.PI,bk=o*2/360,e=navigator.userAgent,ba=/msie/i.test(e)&&!aJ.opera,a4=O.documentMode===8,aF=/AppleWebKit/.test(e),f=/Firefox/.test(e),aj="http://www.w3.org/2000/svg",c=!!O.createElementNS&&!!O.createElementNS(aj,"svg").createSVGRect,aM,a7=O.documentElement.ontouchstart!==undefined,ax={},U=0,R=1,H,aP,aH,n,k,aG,av="div",a9="absolute",m="relative",az="hidden",C="highcharts-",at="visible",aq="px",ao="none",aA="M",aB="L",aL="rgba(192,192,192,"+(c?0.000001:0.002)+")",ac="",W="hover",x="select",a3,P,aW,ap,bd,aX,ar,aN,K,a0,N,B,d=aJ.HighchartsAdapter,F=d||{},bj=F.each,p=F.grep,u=F.map,z=F.merge,ah=F.addEvent,ak=F.removeEvent,aT=F.fireEvent,am=F.animate,aY=F.stop,be={};function aC(M,L){var bn;if(!M){M={}}for(bn in L){M[bn]=L[bn]}return M}function q(L,M){return parseInt(L,M||10)}function a8(L){return typeof L==="string"}function J(L){return typeof L==="object"}function Z(L){return typeof L==="number"}function a5(L){return aa.log(L)/aa.LN10}function aO(L){return aa.pow(10,L)}function aS(L,bn){var M=L.length;while(M--){if(L[M]===bn){L.splice(M,1);break}}}function j(L){return L!==aG&&L!==null}function ag(bn,bq,bp){var M,bo="setAttribute",L;if(a8(bq)){if(j(bp)){bn[bo](bq,bp)}else{if(bn&&bn.getAttribute){L=bn.getAttribute(bq)}}}else{if(j(bq)&&J(bq)){for(M in bq){bn[bo](M,bq[M])}}}return L}function al(L){if(!L||L.constructor!==Array){L=[L]}return L}function b(){var M=arguments,bn,L,bo=M.length;for(bn=0;bn<bo;bn++){L=M[bn];if(typeof L!=="undefined"&&L!==null){return L}}}function aD(L,M){if(ba){if(M&&M.opacity!==aG){M.filter="alpha(opacity="+(M.opacity*100)+")"}}aC(L.style,M)}function ay(L,bq,bp,bo,bn){var M=O.createElement(L);if(bq){aC(M,bq)}if(bn){aD(M,{padding:0,border:ao,margin:0})}if(bp){aD(M,bp)}if(bo){bo.appendChild(M)}return M}function aU(bn,L){var M=function(){};M.prototype=new bn();aC(M.prototype,L);return M}function i(bo,bn,bu,bt){var L=aP.lang,M=bo,bs=isNaN(bn=bi(bn))?2:bn,br=bu===undefined?L.decimalPoint:bu,bv=bt===undefined?L.thousandsSep:bt,bw=M<0?"-":"",bq=String(q(M=bi(+M||0).toFixed(bs))),bp=bq.length>3?bq.length%3:0;return bw+(bp?bq.substr(0,bp)+bv:"")+bq.substr(bp).replace(/(\d{3})(?=\d)/g,"$1"+bv)+(bs?br+bi(M-bq).toFixed(bs).slice(2):"")}aH=function(bw,br,bp){function M(bA){return bA.toString().replace(/^([0-9])$/,"0$1")}if(!j(br)||isNaN(br)){return"Invalid date"}bw=b(bw,"%Y-%m-%d %H:%M:%S");var bn=new Date(br*R),by,bv=bn[aW](),bs=bn[ap](),bx=bn[bd](),bq=bn[aX](),bz=bn[ar](),L=aP.lang,bu=L.weekdays,bt=L.months,bo={a:bu[bs].substr(0,3),A:bu[bs],d:M(bx),e:bx,b:bt[bq].substr(0,3),B:bt[bq],m:M(bq+1),y:bz.toString().substr(2,2),Y:bz,H:M(bv),I:M((bv%12)||12),l:(bv%12)||12,M:M(bn[P]()),p:bv<12?"AM":"PM",P:bv<12?"am":"pm",S:M(bn.getSeconds())};for(by in bo){bw=bw.replace("%"+by,bo[by])}return bp?bw.substr(0,1).toUpperCase()+bw.substr(1):bw};function t(L){var M={left:L.offsetLeft,top:L.offsetTop};L=L.offsetParent;while(L){M.left+=L.offsetLeft;M.top+=L.offsetTop;if(L!==O.body&&L!==O.documentElement){M.left-=L.scrollLeft;M.top-=L.scrollTop}L=L.offsetParent}return M}function D(){this.color=0;this.symbol=0}D.prototype={wrapColor:function(L){if(this.color>=L){this.color=0}},wrapSymbol:function(L){if(this.symbol>=L){this.symbol=0}}};function ab(M,bq,bn,bo,bw,bu,bt){var L=bt.x,bv=bt.y,bs=L-M+bn-25,br=bv-bq+bo+10,bp;if(bs<7){bs=bn+L+15}if((bs+M)>(bn+bw)){bs-=(bs+M)-(bn+bw);br-=bq;bp=true}if(br<5){br=5;if(bp&&bv>=br&&bv<=(br+bq)){br=bv+bq-5}}else{if(br+bq>bo+bu){br=bo+bu-bq-5}}return{x:bs,y:br}}function Q(M,L){var bo=M.length,bn;for(bn=0;bn<bo;bn++){M[bn].ss_i=bn}M.sort(function(br,bp){var bq=L(br,bp);return bq===0?br.ss_i-bp.ss_i:bq});for(bn=0;bn<bo;bn++){delete M[bn].ss_i}}function bh(L){var M;for(M in L){if(L[M]&&L[M].destroy){L[M].destroy()}delete L[M]}}k={init:function(bp,bu,bv){bu=bu||"";var M=bp.shift,bn=bu.indexOf("C")>-1,bo=bn?7:3,bs,bw,br,L=bu.split(" "),bq=[].concat(bv),by,bt,bx=function(bz){br=bz.length;while(br--){if(bz[br]===aA){bz.splice(br+1,0,bz[br+1],bz[br+2],bz[br+1],bz[br+2])}}};if(bn){bx(L);bx(bq)}if(bp.isArea){by=L.splice(L.length-6,6);bt=bq.splice(bq.length-6,6)}if(M){bq=[].concat(bq).splice(0,bo).concat(bq);bp.shift=false}if(L.length){bs=bq.length;while(L.length<bs){bw=[].concat(L).splice(L.length-bo,bo);if(bn){bw[bo-6]=bw[bo-2];bw[bo-5]=bw[bo-1]}L=L.concat(bw)}}if(by){L=L.concat(by);bq=bq.concat(bt)}return[L,bq]},step:function(br,M,bq,L){var bo=[],bp=br.length,bn;if(bq===1){bo=L}else{if(bp===M.length&&bq<1){while(bp--){bn=parseFloat(br[bp]);bo[bp]=isNaN(bn)?br[bp]:bq*(parseFloat(M[bp]-bn))+bn}}else{bo=M}}return bo}};function aE(M,L){n=b(M,L.animation)}if(d&&d.init){d.init(k)}if(!d&&aJ.jQuery){var T=jQuery;bj=function(M,bo){var bn=0,L=M.length;for(;bn<L;bn++){if(bo.call(M[bn],M[bn],bn,M)===false){return bn}}};p=T.grep;u=function(M,bp){var bo=[],bn=0,L=M.length;for(;bn<L;bn++){bo[bn]=bp.call(M[bn],M[bn],bn,M)}return bo};z=function(){var L=arguments;return T.extend(true,null,L[0],L[1],L[2],L[3])};ah=function(M,bn,L){T(M).bind(bn,L)};ak=function(bn,L,M){var bo=O.removeEventListener?"removeEventListener":"detachEvent";if(O[bo]&&!bn[bo]){bn[bo]=function(){}}T(bn).unbind(L,M)};aT=function(bo,bn,M,L){var bq=T.Event(bn),bp="detached"+bn;aC(bq,M);if(bo[bn]){bo[bp]=bo[bn];bo[bn]=null}T(bo).trigger(bq);if(bo[bp]){bo[bn]=bo[bp];bo[bp]=null}if(L&&!bq.isDefaultPrevented()){L(bq)}};am=function(bn,bo,L){var M=T(bn);if(bo.d){bn.toD=bo.d;bo.d=1}M.stop();M.animate(bo,L)};aY=function(L){T(L).stop()};T.extend(T.easing,{easeOutQuad:function(M,bn,L,bp,bo){return -bp*(bn/=bo)*(bn-2)+L}});var aZ=jQuery.fx.step._default,a6=jQuery.fx.prototype.cur;T.fx.step._default=function(M){var L=M.elem;if(L.attr){L.attr(M.prop,M.now)}else{aZ.apply(this,arguments)}};T.fx.step.d=function(bn){var M=bn.elem;if(!bn.started){var L=k.init(M,M.d,M.toD);bn.start=L[0];bn.end=L[1];bn.started=true}M.attr("d",k.step(bn.start,bn.end,bn.pos,M.toD))};T.fx.prototype.cur=function(){var M=this.elem,L;if(M.attr){L=M.attr(this.prop)}else{L=a6.apply(this,arguments)}return L}}function aK(){var L=aP.global.useUTC;a3=L?Date.UTC:function(bp,bq,bn,M,bo,br){return new Date(bp,bq,b(bn,1),b(M,0),b(bo,0),b(br,0)).getTime()};P=L?"getUTCMinutes":"getMinutes";aW=L?"getUTCHours":"getHours";ap=L?"getUTCDay":"getDay";bd=L?"getUTCDate":"getDate";aX=L?"getUTCMonth":"getMonth";ar=L?"getUTCFullYear":"getFullYear";aN=L?"setUTCMinutes":"setMinutes";K=L?"setUTCHours":"setHours";a0=L?"setUTCDate":"setDate";N=L?"setUTCMonth":"setMonth";B=L?"setUTCFullYear":"setFullYear"}function aI(L){aP=z(aP,L);aK();return aP}function I(){return aP}function Y(L){if(!H){H=ay(av)}if(L){H.appendChild(L)}H.innerHTML=""}var ae={enabled:true,align:"center",x:0,y:15,style:{color:"#666",fontSize:"11px",lineHeight:"14px"}};aP={colors:["#4572A7","#AA4643","#89A54E","#80699B","#3D96AE","#DB843D","#92A8CD","#A47D7C","#B5CA92"],symbols:["circle","diamond","square","triangle","triangle-down"],lang:{loading:"Loading...",months:["January","February","March","April","May","June","July","August","September","October","November","December"],weekdays:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],decimalPoint:".",resetZoom:"Reset zoom",resetZoomTitle:"Reset zoom level 1:1",thousandsSep:","},global:{useUTC:true},chart:{borderColor:"#4572A7",borderRadius:5,defaultSeriesType:"line",ignoreHiddenSeries:true,spacingTop:10,spacingRight:10,spacingBottom:15,spacingLeft:10,style:{fontFamily:'"Lucida Grande", "Lucida Sans Unicode", Verdana, Arial, Helvetica, sans-serif',fontSize:"12px"},backgroundColor:"#FFFFFF",plotBorderColor:"#C0C0C0"},title:{text:"Chart title",align:"center",y:15,style:{color:"#3E576F",fontSize:"16px"}},subtitle:{text:"",align:"center",y:30,style:{color:"#6D869F"}},plotOptions:{line:{allowPointSelect:false,showCheckbox:false,animation:{duration:1000},events:{},lineWidth:2,shadow:true,marker:{enabled:true,lineWidth:0,radius:4,lineColor:"#FFFFFF",states:{hover:{},select:{fillColor:"#FFFFFF",lineColor:"#000000",lineWidth:2}}},point:{events:{}},dataLabels:z(ae,{enabled:false,y:-6,formatter:function(){return this.y}}),showInLegend:true,states:{hover:{marker:{}},select:{marker:{}}},stickyTracking:true}},labels:{style:{position:a9,color:"#3E576F"}},legend:{enabled:true,align:"center",layout:"horizontal",labelFormatter:function(){return this.name},borderWidth:1,borderColor:"#909090",borderRadius:5,shadow:false,style:{padding:"5px"},itemStyle:{cursor:"pointer",color:"#3E576F"},itemHoverStyle:{cursor:"pointer",color:"#000000"},itemHiddenStyle:{color:"#C0C0C0"},itemCheckboxStyle:{position:a9,width:"13px",height:"13px"},symbolWidth:16,symbolPadding:5,verticalAlign:"bottom",x:0,y:0},loading:{hideDuration:100,labelStyle:{fontWeight:"bold",position:m,top:"1em"},showDuration:100,style:{position:a9,backgroundColor:"white",opacity:0.5,textAlign:"center"}},tooltip:{enabled:true,backgroundColor:"rgba(255, 255, 255, .85)",borderWidth:2,borderRadius:5,shadow:true,snap:a7?25:10,style:{color:"#333333",fontSize:"12px",padding:"5px",whiteSpace:"nowrap"}},toolbar:{itemStyle:{color:"#4572A7",cursor:"pointer"}},credits:{enabled:true,text:"Highcharts.com",href:"http://www.highcharts.com",position:{align:"right",x:-10,verticalAlign:"bottom",y:-5},style:{cursor:"pointer",color:"#909090",fontSize:"10px"}}};var au={dateTimeLabelFormats:{second:"%H:%M:%S",minute:"%H:%M",hour:"%H:%M",day:"%e. %b",week:"%e. %b",month:"%b '%y",year:"%Y"},endOnTick:false,gridLineColor:"#C0C0C0",labels:ae,lineColor:"#C0D0E0",lineWidth:1,max:null,min:null,minPadding:0.01,maxPadding:0.01,minorGridLineColor:"#E0E0E0",minorGridLineWidth:1,minorTickColor:"#A0A0A0",minorTickLength:2,minorTickPosition:"outside",startOfWeek:1,startOnTick:false,tickColor:"#C0D0E0",tickLength:5,tickmarkPlacement:"between",tickPixelInterval:100,tickPosition:"outside",tickWidth:1,title:{align:"middle",style:{color:"#6D869F",fontWeight:"bold"}},type:"linear"},a2=z(au,{endOnTick:true,gridLineWidth:1,tickPixelInterval:72,showLastLabel:true,labels:{align:"right",x:-8,y:3},lineWidth:0,maxPadding:0.05,minPadding:0.05,startOnTick:true,tickWidth:0,title:{rotation:270,text:"Y-values"},stackLabels:{enabled:false,formatter:function(){return this.total},style:ae.style}}),an={labels:{align:"right",x:-8,y:null},title:{rotation:270}},E={labels:{align:"left",x:8,y:null},title:{rotation:90}},bc={labels:{align:"center",x:0,y:14},title:{rotation:0}},v=z(bc,{labels:{y:-5}});var bm=aP.plotOptions,bf=bm.line;bm.spline=z(bf);bm.scatter=z(bf,{lineWidth:0,states:{hover:{lineWidth:0}}});bm.area=z(bf,{});bm.areaspline=z(bm.area);bm.column=z(bf,{borderColor:"#FFFFFF",borderWidth:1,borderRadius:0,groupPadding:0.2,marker:null,pointPadding:0.1,minPointLength:0,states:{hover:{brightness:0.1,shadow:false},select:{color:"#C0C0C0",borderColor:"#000000",shadow:false}},dataLabels:{y:null,verticalAlign:null}});bm.bar=z(bm.column,{dataLabels:{align:"left",x:5,y:0}});bm.pie=z(bf,{borderColor:"#FFFFFF",borderWidth:1,center:["50%","50%"],colorByPoint:true,dataLabels:{distance:30,enabled:true,formatter:function(){return this.point.name},y:5},legendType:"point",marker:null,size:"75%",showInLegend:false,slicedOffset:10,states:{hover:{brightness:0.1,shadow:false}}});aK();var y=function(M){var bp=[],L;function br(bs){L=/rgba\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]?(?:\.[0-9]+)?)\s*\)/.exec(bs);if(L){bp=[q(L[1]),q(L[2]),q(L[3]),parseFloat(L[4],10)]}else{L=/#([a-fA-F0-9]{2})([a-fA-F0-9]{2})([a-fA-F0-9]{2})/.exec(bs);if(L){bp=[q(L[1],16),q(L[2],16),q(L[3],16),1]}}}function bo(bt){var bs;if(bp&&!isNaN(bp[0])){if(bt==="rgb"){bs="rgb("+bp[0]+","+bp[1]+","+bp[2]+")"}else{if(bt==="a"){bs=bp[3]}else{bs="rgba("+bp.join(",")+")"}}}else{bs=M}return bs}function bq(bt){if(Z(bt)&&bt!==0){var bs;for(bs=0;bs<3;bs++){bp[bs]+=q(bt*255);if(bp[bs]<0){bp[bs]=0}if(bp[bs]>255){bp[bs]=255}}}return this}function bn(bs){bp[3]=bs;return this}br(M);return{get:bo,brighten:bq,setOpacity:bn}};function h(){}h.prototype={init:function(L,M){this.element=O.createElementNS(aj,M);this.renderer=L},animate:function(bo,M,L){var bn=b(M,n,true);if(bn){bn=z(bn);if(L){bn.complete=L}am(this,bo,bn)}else{this.attr(bo);if(L){L()}}},attr:function(bo,M){var by,bx,bp,L,bq=this.element,bw=bq.nodeName,bt=this.renderer,bu,bn=this.shadows,bs,br=this;if(a8(bo)&&j(M)){by=bo;bo={};bo[by]=M}if(a8(bo)){by=bo;if(bw==="circle"){by={x:"cx",y:"cy"}[by]||by}else{if(by==="strokeWidth"){by="stroke-width"}}br=ag(bq,by)||this[by]||0;if(by!=="d"&&by!=="visibility"){br=parseFloat(br)}}else{for(by in bo){bu=false;bx=bo[by];if(by==="d"){if(bx&&bx.join){bx=bx.join(" ")}if(/(NaN| {2}|^$)/.test(bx)){bx="M 0 0"}this.d=bx}else{if(by==="x"&&bw==="text"){for(bp=0;bp<bq.childNodes.length;bp++){L=bq.childNodes[bp];if(ag(L,"x")===ag(bq,"x")){ag(L,"x",bx)}}if(this.rotation){ag(bq,"transform","rotate("+this.rotation+" "+bx+" "+q(bo.y||ag(bq,"y"))+")")}}else{if(by==="fill"){bx=bt.color(bx,bq,by)}else{if(bw==="circle"&&(by==="x"||by==="y")){by={x:"cx",y:"cy"}[by]||by}else{if(by==="translateX"||by==="translateY"||by==="rotation"||by==="verticalAlign"){this[by]=bx;this.updateTransform();bu=true}else{if(by==="stroke"){bx=bt.color(bx,bq,by)}else{if(by==="dashstyle"){by="stroke-dasharray";bx=bx&&bx.toLowerCase();if(bx==="solid"){bx=ao}else{if(bx){bx=bx.replace("shortdashdotdot","3,1,1,1,1,1,").replace("shortdashdot","3,1,1,1").replace("shortdot","1,1,").replace("shortdash","3,1,").replace("longdash","8,3,").replace(/dot/g,"1,3,").replace("dash","4,3,").replace(/,$/,"").split(",");bp=bx.length;while(bp--){bx[bp]=q(bx[bp])*bo["stroke-width"]}bx=bx.join(",")}}}else{if(by==="isTracker"){this[by]=bx}else{if(by==="width"){bx=q(bx)}else{if(by==="align"){by="text-anchor";bx={left:"start",center:"middle",right:"end"}[bx]}else{if(by==="title"){var bv=O.createElementNS(aj,"title");bv.appendChild(O.createTextNode(bx));bq.appendChild(bv)}}}}}}}}}}}if(by==="strokeWidth"){by="stroke-width"}if(aF&&by==="stroke-width"&&bx===0){bx=0.000001}if(this.symbolName&&/^(x|y|r|start|end|innerR)/.test(by)){if(!bs){this.symbolAttr(bo);bs=true}bu=true}if(bn&&/^(width|height|visibility|x|y|d)$/.test(by)){bp=bn.length;while(bp--){ag(bn[bp],by,bx)}}if((by==="width"||by==="height")&&bw==="rect"&&bx<0){bx=0}if(by==="text"){this.textStr=bx;if(this.added){bt.buildText(this)}}else{if(!bu){ag(bq,by,bx)}}}}return br},symbolAttr:function(L){var M=this;bj(["x","y","r","start","end","width","height","innerR"],function(bn){M[bn]=b(L[bn],M[bn])});M.attr({d:M.renderer.symbols[M.symbolName](w(M.x*2)/2,w(M.y*2)/2,M.r,{start:M.start,end:M.end,width:M.width,height:M.height,innerR:M.innerR})})},clip:function(L){return this.attr("clip-path","url("+this.renderer.url+"#"+L.id+")")},crisp:function(bq,br,bp,M,bu){var L=this,bt,bo={},bs={},bn;bq=bq||L.strokeWidth||0;bn=bq%2/2;bs.x=V(br||L.x||0)+bn;bs.y=V(bp||L.y||0)+bn;bs.width=V((M||L.width||0)-2*bn);bs.height=V((bu||L.height||0)-2*bn);bs.strokeWidth=bq;for(bt in bs){if(L[bt]!==bs[bt]){L[bt]=bo[bt]=bs[bt]}}return bo},css:function(bo){var L=this,bn=L.element,bq=bo&&bo.width&&bn.nodeName==="text",br,bp="",M=function(bt,bs){return"-"+bs.toLowerCase()};if(bo&&bo.color){bo.fill=bo.color}bo=aC(L.styles,bo);L.styles=bo;if(ba&&!c){if(bq){delete bo.width}aD(L.element,bo)}else{for(br in bo){bp+=br.replace(/([A-Z])/g,M)+":"+bo[br]+";"}L.attr({style:bp})}if(bq&&L.added){L.renderer.buildText(L)}return L},on:function(L,bn){var M=bn;if(a7&&L==="click"){L="touchstart";M=function(bo){bo.preventDefault();bn()}}this.element["on"+L]=M;return this},translate:function(L,M){return this.attr({translateX:L,translateY:M})},invert:function(){var L=this;L.inverted=true;L.updateTransform();return L},updateTransform:function(){var bq=this,bp=bq.translateX||0,bo=bq.translateY||0,L=bq.inverted,bn=bq.rotation,M=[];if(L){bp+=bq.attr("width");bo+=bq.attr("height")}if(bp||bo){M.push("translate("+bp+","+bo+")")}if(L){M.push("rotate(90) scale(-1,1)")}else{if(bn){M.push("rotate("+bn+" "+bq.x+" "+bq.y+")")}}if(M.length){ag(bq.element,"transform",M.join(" "))}},toFront:function(){var L=this.element;L.parentNode.appendChild(L);return this},align:function(M,bq,bn){var bt=this;if(!M){M=bt.alignOptions;bq=bt.alignByTranslate}else{bt.alignOptions=M;bt.alignByTranslate=bq;if(!bn){bt.renderer.alignedObjects.push(bt)}}bn=b(bn,bt.renderer);var bp=M.align,bo=M.verticalAlign,bs=(bn.x||0)+(M.x||0),br=(bn.y||0)+(M.y||0),L={};if(/^(right|center)$/.test(bp)){bs+=(bn.width-(M.width||0))/{right:1,center:2}[bp]}L[bq?"translateX":"x"]=w(bs);if(/^(bottom|middle)$/.test(bo)){br+=(bn.height-(M.height||0))/({bottom:1,middle:2}[bo]||1)}L[bq?"translateY":"y"]=w(br);bt[bt.placed?"animate":"attr"](L);bt.placed=true;bt.alignAttr=L;return bt},getBBox:function(){var bp,bo,M,bn=this.rotation,L=bn*bk;try{bp=aC({},this.element.getBBox())}catch(bq){bp={width:0,height:0}}bo=bp.width;M=bp.height;if(bn){bp.width=bi(M*G(L))+bi(bo*a1(L));bp.height=bi(M*a1(L))+bi(bo*G(L))}return bp},show:function(){return this.attr({visibility:at})},hide:function(){return this.attr({visibility:az})},add:function(bs){var bq=this.renderer,bp=bs||bq,bo=bp.element||bq.box,bu=bo.childNodes,bn=this.element,br=ag(bn,"zIndex"),bt,L,M;this.parentInverted=bs&&bs.inverted;if(this.textStr!==undefined){bq.buildText(this)}if(br){bp.handleZ=true;br=q(br)}if(bp.handleZ){for(M=0;M<bu.length;M++){bt=bu[M];L=ag(bt,"zIndex");if(bt!==bn&&(q(L)>br||(!j(br)&&j(L)))){bo.insertBefore(bn,bt);return this}}}bo.appendChild(bn);this.added=true;return this},destroy:function(){var bq=this,bo=bq.element||{},bp=bq.shadows,L=bo.parentNode,bn,M;bo.onclick=bo.onmouseout=bo.onmouseover=bo.onmousemove=null;aY(bq);if(bq.clipPath){bq.clipPath=bq.clipPath.destroy()}if(bq.stops){for(M=0;M<bq.stops.length;M++){bq.stops[M]=bq.stops[M].destroy()}bq.stops=null}if(L){L.removeChild(bo)}if(bp){bj(bp,function(br){L=br.parentNode;if(L){L.removeChild(br)}})}aS(bq.renderer.alignedObjects,bq);for(bn in bq){delete bq[bn]}return null},empty:function(){var M=this.element,bn=M.childNodes,L=bn.length;while(L--){M.removeChild(bn[L])}},shadow:function(L,bq){var bp=[],bo,br,bn=this.element,M=this.parentInverted?"(-1,-1)":"(1,1)";if(L){for(bo=1;bo<=3;bo++){br=bn.cloneNode(0);ag(br,{isShadow:"true",stroke:"rgb(0, 0, 0)","stroke-opacity":0.05*bo,"stroke-width":7-2*bo,transform:"translate"+M,fill:ao});if(bq){bq.element.appendChild(br)}else{bn.parentNode.insertBefore(br,bn)}bp.push(br)}this.shadows=bp}return this}};var r=function(){this.init.apply(this,arguments)};r.prototype={Element:h,init:function(bn,bo,M,bq){var bp=this,br=location,L;L=bp.createElement("svg").attr({xmlns:aj,version:"1.1"});bn.appendChild(L.element);bp.box=L.element;bp.boxWrapper=L;bp.alignedObjects=[];bp.url=ba?"":br.href.replace(/#.*?$/,"");bp.defs=this.createElement("defs").add();bp.forExport=bq;bp.gradients=[];bp.setSize(bo,M,false)},destroy:function(){var bn=this,L,M=bn.gradients,bo=bn.defs;bn.box=null;bn.boxWrapper=bn.boxWrapper.destroy();if(M){for(L=0;L<M.length;L++){bn.gradients[L]=M[L].destroy()}bn.gradients=null}if(bo){bn.defs=bo.destroy()}bn.alignedObjects=null;return null},createElement:function(M){var L=new this.Element();L.init(this,M);return L},buildText:function(L){var bo=L.element,bz=b(L.textStr,"").toString().replace(/<(b|strong)>/g,'<span style="font-weight:bold">').replace(/<(i|em)>/g,'<span style="font-style:italic">').replace(/<a/g,"<span").replace(/<\/(b|strong|i|em|a)>/g,"</span>").split(/<br.*?>/g),bw=bo.childNodes,by=/style="([^"]+)"/,bn=/href="([^"]+)"/,bx=ag(bo,"x"),bt=L.styles,bs=f&&bt&&bt.HcDirection==="rtl"&&!this.forExport&&q(e.split("Firefox/")[1])<4,br,M=bt&&q(bt.width),bv=bt&&bt.lineHeight,bu,bp="getComputedStyle",bq=bw.length;while(bq--){bo.removeChild(bw[bq])}if(M&&!L.added){this.box.appendChild(bo)}bj(bz,function(bA,bE){var bC,bB=0,bD;bA=bA.replace(/<span/g,"|||<span").replace(/<\/span>/g,"</span>|||");bC=bA.split("|||");bj(bC,function(bH){if(bH!==""||bC.length===1){var bF={},bJ=O.createElementNS(aj,"tspan");if(by.test(bH)){ag(bJ,"style",bH.match(by)[1].replace(/(;| |^)color([ :])/,"$1fill$2"))}if(bn.test(bH)){ag(bJ,"onclick",'location.href="'+bH.match(bn)[1]+'"');aD(bJ,{cursor:"pointer"})}bH=(bH.replace(/<(.|\n)*?>/g,"")||" ").replace(/&lt;/g,"<").replace(/&gt;/g,">");if(bs){br=[];bq=bH.length;while(bq--){br.push(bH.charAt(bq))}bH=br.join("")}bJ.appendChild(O.createTextNode(bH));if(!bB){bF.x=bx}else{bF.dx=3}if(!bB){if(bE){if(!c&&L.renderer.forExport){aD(bJ,{display:"block"})}bD=aJ[bp]&&q(aJ[bp](bu,null).getPropertyValue("line-height"));if(!bD||isNaN(bD)){bD=bv||bu.offsetHeight||18}ag(bJ,"dy",bD)}bu=bJ}ag(bJ,bF);bo.appendChild(bJ);bB++;if(M){var bK=bH.replace(/-/g,"- ").split(" "),bL,bI,bG=[];while(bK.length||bG.length){bI=bo.getBBox().width;bL=bI>M;if(!bL||bK.length===1){bK=bG;bG=[];if(bK.length){bJ=O.createElementNS(aj,"tspan");ag(bJ,{dy:bv||16,x:bx});bo.appendChild(bJ);if(bI>M){M=bI}}}else{bJ.removeChild(bJ.firstChild);bG.unshift(bK.pop())}if(bK.length){bJ.appendChild(O.createTextNode(bK.join(" ").replace(/- /g,"-")))}}}}})})},crispLine:function(M,L){if(M[1]===M[4]){M[1]=M[4]=w(M[1])+(L%2/2)}if(M[2]===M[5]){M[2]=M[5]=w(M[2])+(L%2/2)}return M},path:function(L){return this.createElement("path").attr({d:L,fill:ao})},circle:function(M,bo,bn){var L=J(M)?M:{x:M,y:bo,r:bn};return this.createElement("circle").attr(L)},arc:function(L,bq,bo,bn,bp,M){if(J(L)){bq=L.y;bo=L.r;bn=L.innerR;bp=L.start;M=L.end;L=L.x}return this.symbol("arc",L||0,bq||0,bo||0,{innerR:bn||0,start:bp||0,end:M||0})},rect:function(M,br,bn,L,bo,bq){if(J(M)){br=M.y;bn=M.width;L=M.height;bo=M.r;bq=M.strokeWidth;M=M.x}var bp=this.createElement("rect").attr({rx:bo,ry:bo,fill:ao});return bp.attr(bp.crisp(bq,M,br,aV(bn,0),aV(L,0)))},setSize:function(bp,L,bn){var bq=this,M=bq.alignedObjects,bo=M.length;bq.width=bp;bq.height=L;bq.boxWrapper[b(bn,true)?"animate":"attr"]({width:bp,height:L});while(bo--){M[bo].align()}},g:function(L){var M=this.createElement("g");return j(L)?M.attr({"class":C+L}):M},image:function(bq,M,br,bo,L){var bp={preserveAspectRatio:ao},bn;if(arguments.length>1){aC(bp,{x:M,y:br,width:bo,height:L})}bn=this.createElement("image").attr(bp);if(bn.element.setAttributeNS){bn.element.setAttributeNS("http://www.w3.org/1999/xlink","href",bq)}else{bn.element.setAttribute("hc-svg-href",bq)}return bn},symbol:function(bn,bu,bs,bq,bw){var bp,M=this.symbols[bn],bv=M&&M(w(bu),w(bs),bq,bw),bo=/^url\((.*?)\)$/,bt,br;if(bv){bp=this.path(bv);aC(bp,{symbolName:bn,x:bu,y:bs,r:bq});if(bw){aC(bp,bw)}}else{if(bo.test(bn)){var L=function(bx,by){bx.attr({width:by[0],height:by[1]}).translate(-w(by[0]/2),-w(by[1]/2))};bt=bn.match(bo)[1];br=ax[bt];bp=this.image(bt).attr({x:bu,y:bs});if(br){L(bp,br)}else{bp.attr({width:0,height:0});ay("img",{onload:function(){var bx=this;L(bp,ax[bt]=[bx.width,bx.height])},src:bt})}}else{bp=this.circle(bu,bs,bq)}}return bp},symbols:{square:function(bn,bo,M){var L=0.707*M;return[aA,bn-L,bo-L,aB,bn+L,bo-L,bn+L,bo+L,bn-L,bo+L,"Z"]},triangle:function(M,bn,L){return[aA,M,bn-1.33*L,aB,M+L,bn+0.67*L,M-L,bn+0.67*L,"Z"]},"triangle-down":function(M,bn,L){return[aA,M,bn+1.33*L,aB,M-L,bn-0.67*L,M+L,bn-0.67*L,"Z"]},diamond:function(M,bn,L){return[aA,M,bn-L,aB,M+L,bn,M,bn+L,M-L,bn,"Z"]},arc:function(bu,bt,br,bw){var bn=bw.start,bo=bw.end-0.000001,bs=bw.innerR,bq=a1(bn),L=G(bn),M=a1(bo),bv=G(bo),bp=bw.end-bn<o?0:1;return[aA,bu+br*bq,bt+br*L,"A",br,br,0,bp,1,bu+br*M,bt+br*bv,aB,bu+bs*M,bt+bs*bv,"A",bs,bs,0,bp,0,bu+bs*bq,bt+bs*L,"Z"]}},clipRect:function(M,br,bn,L){var bq,bp=C+U++,bo=this.createElement("clipPath").attr({id:bp}).add(this.defs);bq=this.rect(M,br,bn,L,0).add(bo);bq.id=bp;bq.clipPath=bo;return bq},color:function(bq,bp,M){var bw,bo=/^rgba/;if(bq&&bq.linearGradient){var bu=this,br="linearGradient",bv=bq[br],bn=C+U++,L,bt,bs;L=bu.createElement(br).attr({id:bn,gradientUnits:"userSpaceOnUse",x1:bv[0],y1:bv[1],x2:bv[2],y2:bv[3]}).add(bu.defs);bu.gradients.push(L);L.stops=[];bj(bq.stops,function(bx){var by;if(bo.test(bx[1])){bw=y(bx[1]);bt=bw.get("rgb");bs=bw.get("a")}else{bt=bx[1];bs=1}by=bu.createElement("stop").attr({offset:bx[0],"stop-color":bt,"stop-opacity":bs}).add(L);L.stops.push(by)});return"url("+this.url+"#"+bn+")"}else{if(bo.test(bq)){bw=y(bq);ag(bp,M+"-opacity",bw.get("a"));return bw.get("rgb")}else{bp.removeAttribute(M+"-opacity");return bq}}},text:function(bn,L,bp){var M=aP.chart.style,bo;L=w(b(L,0));bp=w(b(bp,0));bo=this.createElement("text").attr({x:L,y:bp,text:bn}).css({fontFamily:M.fontFamily,fontSize:M.fontSize});bo.x=L;bo.y=bp;return bo}};aM=r;var bg;if(!c){var aR=aU(h,{init:function(bn,bo){var L=["<",bo,' filled="f" stroked="f"'],M=["position: ",a9,";"];if(bo==="shape"||bo===av){M.push("left:0;top:0;width:10px;height:10px;")}if(a4){M.push("visibility: ",bo===av?az:at)}L.push(' style="',M.join(""),'"/>');if(bo){L=bo===av||bo==="span"||bo==="img"?L.join(""):bn.prepVML(L);this.element=ay(L)}this.renderer=bn},add:function(bo){var br=this,bq=br.renderer,bn=br.element,bp=bq.box,M=bo&&bo.inverted,L=bo?bo.element||bo:bp;if(M){bq.invertChild(bn,L)}if(a4&&L.gVis===az){aD(bn,{visibility:az})}L.appendChild(bn);br.added=true;if(br.alignOnAdd){br.updateTransform()}return br},attr:function(bp,L){var bA,bz,bq,br=this.element||{},M=br.style,by=br.nodeName,bv=this.renderer,bo=this.symbolName,bB,bu,bn=this.shadows,bw,bs=this;if(a8(bp)&&j(L)){bA=bp;bp={};bp[bA]=L}if(a8(bp)){bA=bp;if(bA==="strokeWidth"||bA==="stroke-width"){bs=this.strokeweight}else{bs=this[bA]}}else{for(bA in bp){bz=bp[bA];bw=false;if(bo&&/^(x|y|r|start|end|width|height|innerR)/.test(bA)){if(!bu){this.symbolAttr(bp);bu=true}bw=true}else{if(bA==="d"){bz=bz||[];this.d=bz.join(" ");bq=bz.length;var bt=[];while(bq--){if(Z(bz[bq])){bt[bq]=w(bz[bq]*10)-5}else{if(bz[bq]==="Z"){bt[bq]="x"}else{bt[bq]=bz[bq]}}}bz=bt.join(" ")||"x";br.path=bz;if(bn){bq=bn.length;while(bq--){bn[bq].path=bz}}bw=true}else{if(bA==="zIndex"||bA==="visibility"){if(a4&&bA==="visibility"&&by==="DIV"){br.gVis=bz;bB=br.childNodes;bq=bB.length;while(bq--){aD(bB[bq],{visibility:bz})}if(bz===at){bz=null}}if(bz){M[bA]=bz}bw=true}else{if(/^(width|height)$/.test(bA)){this[bA]=bz;if(this.updateClipping){this[bA]=bz;this.updateClipping()}else{M[bA]=bz}bw=true}else{if(/^(x|y)$/.test(bA)){this[bA]=bz;if(br.tagName==="SPAN"){this.updateTransform()}else{M[{x:"left",y:"top"}[bA]]=bz}}else{if(bA==="class"){br.className=bz}else{if(bA==="stroke"){bz=bv.color(bz,br,bA);bA="strokecolor"}else{if(bA==="stroke-width"||bA==="strokeWidth"){br.stroked=bz?true:false;bA="strokeweight";this[bA]=bz;if(Z(bz)){bz+=aq}}else{if(bA==="dashstyle"){var bx=br.getElementsByTagName("stroke")[0]||ay(bv.prepVML(["<stroke/>"]),null,null,br);bx[bA]=bz||"solid";this.dashstyle=bz;bw=true}else{if(bA==="fill"){if(by==="SPAN"){M.color=bz}else{br.filled=bz!==ao?true:false;bz=bv.color(bz,br,bA);bA="fillcolor"}}else{if(bA==="translateX"||bA==="translateY"||bA==="rotation"||bA==="align"){if(bA==="align"){bA="textAlign"}this[bA]=bz;this.updateTransform();bw=true}else{if(bA==="text"){this.bBox=null;br.innerHTML=bz;bw=true}}}}}}}}}}}}if(bn&&bA==="visibility"){bq=bn.length;while(bq--){bn[bq].style[bA]=bz}}if(!bw){if(a4){br[bA]=bz}else{ag(br,bA,bz)}}}}return bs},clip:function(L){var bn=this,M=L.members;M.push(bn);bn.destroyClip=function(){aS(M,bn)};return bn.css(L.getCSS(bn.inverted))},css:function(M){var bo=this,L=bo.element,bn=M&&L.tagName==="SPAN"&&M.width;if(bn){delete M.width;bo.textWidth=bn;bo.updateTransform()}bo.styles=aC(bo.styles,M);aD(bo.element,M);return bo},destroy:function(){var L=this;if(L.destroyClip){L.destroyClip()}return h.prototype.destroy.apply(L)},empty:function(){var M=this.element,bo=M.childNodes,L=bo.length,bn;while(L--){bn=bo[L];bn.parentNode.removeChild(bn)}},getBBox:function(){var bn=this,L=bn.element,M=bn.bBox;if(!M){if(L.nodeName==="text"){L.style.position=a9}M=bn.bBox={x:L.offsetLeft,y:L.offsetTop,width:L.offsetWidth,height:L.offsetHeight}}return M},on:function(L,M){this.element["on"+L]=function(){var bn=aJ.event;bn.target=bn.srcElement;M(bn)};return this},updateTransform:function(){if(!this.added){this.alignOnAdd=true;return}var bo=this,bC=bo.element,bF=bo.translateX||0,bE=bo.translateY||0,bt=bo.x||0,br=bo.y||0,bA=bo.textAlign||"left",bu={left:0,center:0.5,right:1}[bA],bp=bA&&bA!=="left";if(bF||bE){bo.css({marginLeft:bF,marginTop:bE})}if(bo.inverted){bj(bC.childNodes,function(bG){bo.renderer.invertChild(bG,bC)})}if(bC.tagName==="SPAN"){var by,bw,bz=bo.rotation,M,bD=0,bn=1,bv=0,bs,L=q(bo.textWidth),bB=bo.xCorr||0,bq=bo.yCorr||0,bx=[bz,bA,bC.innerHTML,bo.textWidth].join(",");if(bx!==bo.cTT){if(j(bz)){bD=bz*bk;bn=a1(bD);bv=G(bD);aD(bC,{filter:bz?["progid:DXImageTransform.Microsoft.Matrix(M11=",bn,", M12=",-bv,", M21=",bv,", M22=",bn,", sizingMethod='auto expand')"].join(""):ao})}by=bC.offsetWidth;bw=bC.offsetHeight;if(by>L){aD(bC,{width:L+aq,display:"block",whiteSpace:"normal"});by=L}M=w((q(bC.style.fontSize)||12)*1.2);bB=bn<0&&-by;bq=bv<0&&-bw;bs=bn*bv<0;bB+=bv*M*(bs?1-bu:bu);bq-=bn*M*(bz?(bs?bu:1-bu):1);if(bp){bB-=by*bu*(bn<0?-1:1);if(bz){bq-=bw*bu*(bv<0?-1:1)}aD(bC,{textAlign:bA})}bo.xCorr=bB;bo.yCorr=bq}aD(bC,{left:bt+bB,top:br+bq});bo.cTT=bx}},shadow:function(bs,br){var M=[],bn,bo=this.element,bp=this.renderer,bq,L=bo.style,bt,bu=bo.path;if(bu&&typeof bu.value!=="string"){bu="x"}if(bs){for(bn=1;bn<=3;bn++){bt=['<shape isShadow="true" strokeweight="',(7-2*bn),'" filled="false" path="',bu,'" coordsize="100,100" style="',bo.style.cssText,'" />'];bq=ay(bp.prepVML(bt),null,{left:q(L.left)+1,top:q(L.top)+1});bt=['<stroke color="black" opacity="',(0.05*bn),'"/>'];ay(bp.prepVML(bt),null,null,bq);if(br){br.element.appendChild(bq)}else{bo.parentNode.insertBefore(bq,bo)}M.push(bq)}this.shadows=M}return this}});bg=function(){this.init.apply(this,arguments)};bg.prototype=z(r.prototype,{Element:aR,isIE8:e.indexOf("MSIE 8.0")>-1,init:function(bn,bo,M){var bp=this,L;bp.alignedObjects=[];L=bp.createElement(av);bn.appendChild(L.element);bp.box=L.element;bp.boxWrapper=L;bp.setSize(bo,M,false);if(!O.namespaces.hcv){O.namespaces.add("hcv","urn:schemas-microsoft-com:vml");O.createStyleSheet().cssText="hcv\\:fill, hcv\\:path, hcv\\:shape, hcv\\:stroke{ behavior:url(#default#VML); display: inline-block; } "}},clipRect:function(M,bp,bo,L){var bn=this.createElement();return aC(bn,{members:[],left:M,top:bp,width:bo,height:L,getCSS:function(br){var bu=this,bw=bu.top,bv=bu.left,bt=bv+bu.width,bq=bw+bu.height,bs={clip:"rect("+w(br?bv:bw)+"px,"+w(br?bq:bt)+"px,"+w(br?bt:bq)+"px,"+w(br?bw:bv)+"px)"};if(!br&&a4){aC(bs,{width:bt+aq,height:bq+aq})}return bs},updateClipping:function(){bj(bn.members,function(bq){bq.css(bn.getCSS(bq.inverted))})}})},color:function(bp,bn,L){var bx,M=/^rgba/,bz;if(bp&&bp.linearGradient){var bt,bs,bw=bp.linearGradient,bo,by,br,bv,bq;bj(bp.stops,function(bB,bA){if(M.test(bB[1])){bx=y(bB[1]);bt=bx.get("rgb");bs=bx.get("a")}else{bt=bB[1];bs=1}if(!bA){by=bt;br=bs}else{bv=bt;bq=bs}});bo=90-aa.atan((bw[3]-bw[1])/(bw[2]-bw[0]))*180/o;bz=["<",L,' colors="0% ',by,",100% ",bv,'" angle="',bo,'" opacity="',bq,'" o:opacity2="',br,'" type="gradient" focus="100%" />'];ay(this.prepVML(bz),null,null,bn)}else{if(M.test(bp)&&bn.tagName!=="IMG"){bx=y(bp);bz=["<",L,' opacity="',bx.get("a"),'"/>'];ay(this.prepVML(bz),null,null,bn);return bx.get("rgb")}else{var bu=bn.getElementsByTagName(L);if(bu.length){bu[0].opacity=1}return bp}}},prepVML:function(L){var M="display:inline-block;behavior:url(#default#VML);",bn=this.isIE8;L=L.join("");if(bn){L=L.replace("/>",' xmlns="urn:schemas-microsoft-com:vml" />');if(L.indexOf('style="')===-1){L=L.replace("/>",' style="'+M+'" />')}else{L=L.replace('style="','style="'+M)}}else{L=L.replace("<","<hcv:")}return L},text:function(bn,L,bo){var M=aP.chart.style;return this.createElement("span").attr({text:bn,x:w(L),y:w(bo)}).css({whiteSpace:"nowrap",fontFamily:M.fontFamily,fontSize:M.fontSize})},path:function(L){return this.createElement("shape").attr({coordsize:"100 100",d:L})},circle:function(L,bn,M){return this.symbol("circle").attr({x:L,y:bn,r:M})},g:function(L){var bn,M;if(L){M={className:C+L,"class":C+L}}bn=this.createElement(av).attr(M);return bn},image:function(bp,M,bq,bn,L){var bo=this.createElement("img").attr({src:bp});if(arguments.length>1){bo.css({left:M,top:bq,width:bn,height:L})}return bo},rect:function(M,br,bn,L,bo,bq){if(J(M)){br=M.y;bn=M.width;L=M.height;bo=M.r;bq=M.strokeWidth;M=M.x}var bp=this.symbol("rect");bp.r=bo;return bp.attr(bp.crisp(bq,M,br,aV(bn,0),aV(L,0)))},invertChild:function(M,L){var bn=L.style;aD(M,{flip:"x",left:q(bn.width)-10,top:q(bn.height)-10,rotation:-90})},symbols:{arc:function(bu,bt,br,bx){var bn=bx.start,bo=bx.end,bq=a1(bn),L=G(bn),M=a1(bo),bv=G(bo),bs=bx.innerR,bw=0.07/br,bp=(bs&&0.1/bs)||0;if(bo-bn===0){return["x"]}else{if(2*o-bo+bn<bw){M=-bw}else{if(bo-bn<bp){M=a1(bn+bp)}}}return["wa",bu-br,bt-br,bu+br,bt+br,bu+br*bq,bt+br*L,bu+br*M,bt+br*bv,"at",bu-bs,bt-bs,bu+bs,bt+bs,bu+bs*M,bt+bs*bv,bu+bs*bq,bt+bs*L,"x","e"]},circle:function(L,bn,M){return["wa",L-M,bn-M,L+M,bn+M,L+M,bn,L+M,bn,"e"]},rect:function(bs,br,bq,bn){if(!j(bn)){return[]}var bp=bn.width,L=bn.height,bo=bs+bp,M=br+L;bq=ai(bq,bp,L);return[aA,bs+bq,br,aB,bo-bq,br,"wa",bo-2*bq,br,bo,br+2*bq,bo-bq,br,bo,br+bq,aB,bo,M-bq,"wa",bo-2*bq,M-2*bq,bo,M,bo,M-bq,bo-bq,M,aB,bs+bq,M,"wa",bs,M-2*bq,bs+2*bq,M,bs+bq,M,bs,M-bq,aB,bs,br+bq,"wa",bs,br,bs+2*bq,br+2*bq,bs,br+bq,bs+bq,br,"x","e"]}}});aM=bg}function bb(b8,bM){au=z(au,aP.xAxis);a2=z(a2,aP.yAxis);aP.xAxis=aP.yAxis=null;b8=z(aP,b8);var bN=b8.chart,cm=bN.margin,cz=J(cm)?cm:[cm,cm,cm,cm],bK=b(bN.marginTop,cz[0]),bI=b(bN.marginRight,cz[1]),b1=b(bN.marginBottom,cz[2]),b4=b(bN.marginLeft,cz[3]),cO=bN.spacingTop,bU=bN.spacingRight,bP=bN.spacingBottom,cD=bN.spacingLeft,b2,b5,cn,cr,cx,b3,M,bA,bT,cs,cl,bX,cE,b0,cP,bF,bB,b6,bG,bs,cb,bw,cC=this,bS=bN.events,cQ=bS&&!!bS.click,bJ,bH,by,bO,bp,cA,cN,bx,bn,L,ci,bR,cK,bD,bv,ce,cg=bN.showAxes,bL=0,ct=[],bq,cc=[],bu,b9,cp,ch,bC,cf,cy,bz,cw,bt,br,bW;function bE(dO){var dZ=dO.isX,dH=dO.opposite,cW=bu?!dZ:dZ,d0=cW?(dH?0:2):(dH?1:3),dv={},dx=z(dZ?au:a2,[v,E,bc,an][d0],dO),c2=this,dW,ds=dx.type,dX=ds==="datetime",di=ds==="logarithmic",c6=dx.offset||0,dB=dZ?"x":"y",c9,dD,dl,dC=cW?M:b3,c8,c1,dd,dT,dV,dY,da,dP,cS,df,dc=null,d1=null,dw,dL,c0=dx.minPadding,cT=dx.maxPadding,db=j(dx.linkedTo),d4,dS,dI,dg=dx.events,dk,c3=[],c4,dE,dU,dR,dM={},d6={},c5={},cY,d2,dt,d3,dK=dx.categories,dN=dx.labels.formatter||function(){var d9=this.value,d8;if(d3){d8=aH(d3,d9)}else{if(c4%1000000===0){d8=(d9/1000000)+"M"}else{if(c4%1000===0){d8=(d9/1000)+"k"}else{if(!dK&&d9>=1000){d8=i(d9,0)}else{d8=d9}}}}return d8},dz=cW&&dx.labels.staggerLines,cX=dx.reversed,de=(dK&&dx.tickmarkPlacement==="between")?0.5:0;function dh(ea,d9){var d8=this;d8.pos=ea;d8.minor=d9;d8.isNew=true;if(!d9){d8.addLabel()}}dh.prototype={addLabel:function(){var ef=this.pos,d8=dx.labels,ee,eb=!((ef===d1&&!b(dx.showFirstLabel,1))||(ef===dc&&!b(dx.showLastLabel,0))),ec=(dK&&cW&&dK.length&&!d8.step&&!d8.staggerLines&&!d8.rotation&&bn/dK.length)||(!cW&&bn/2),ea,ed=dK&&j(dK[ef])?dK[ef]:ef,d9=this.label;ee=dN.call({isFirst:ef===dR[0],isLast:ef===dR[dR.length-1],dateTimeLabelFormat:d3,value:di?aO(ed):ed});ea=ec&&{width:aV(1,w(ec-2*(d8.padding||10)))+aq};ea=aC(ea,d8.style);if(d9===aG){this.label=j(ee)&&eb&&d8.enabled?b9.text(ee,0,0).attr({align:d8.align,rotation:d8.rotation}).css(ea).add(dd):null}else{if(d9){d9.attr({text:ee}).css(ea)}}},getLabelSize:function(){var d8=this.label;return d8?((this.labelBBox=d8.getBBox()))[cW?"height":"width"]:0},render:function(ee,d9){var et=this,es=!et.minor,eh=et.label,ed=et.pos,eq=dx.labels,ef=et.gridLine,ep=es?dx.gridLineWidth:dx.minorGridLineWidth,er=es?dx.gridLineColor:dx.minorGridLineColor,eg=es?dx.gridLineDashStyle:dx.minorGridLineDashStyle,eu,ek=et.mark,d8,ea=es?dx.tickLength:dx.minorTickLength,ei=es?dx.tickWidth:(dx.minorTickWidth||0),em=es?dx.tickColor:dx.minorTickColor,en=es?dx.tickPosition:dx.minorTickPosition,ec=eq.step,eb=(d9&&b6)||bF,eo,el,ej;el=cW?c8(ed+de,null,null,d9)+dC:M+c6+(dH?((d9&&bB)||cP)-cx-M:0);ej=cW?eb-b3+c6-(dH?bx:0):eb-c8(ed+de,null,null,d9)-dC;if(ep){eu=c1(ed+de,ep,d9);if(ef===aG){eo={stroke:er,"stroke-width":ep};if(eg){eo.dashstyle=eg}if(es){eo.zIndex=1}et.gridLine=ef=ep?b9.path(eu).attr(eo).add(dT):null}if(!d9&&ef&&eu){ef.animate({d:eu})}}if(ei){if(en==="inside"){ea=-ea}if(dH){ea=-ea}d8=b9.crispLine([aA,el,ej,aB,el+(cW?0:-ea),ej+(cW?ea:0)],ei);if(ek){ek.animate({d:d8})}else{et.mark=b9.path(d8).attr({stroke:em,"stroke-width":ei}).add(dd)}}if(eh&&!isNaN(el)){el=el+eq.x-(de&&cW?de*dD*(cX?-1:1):0);ej=ej+eq.y-(de&&!cW?de*dD*(cX?1:-1):0);if(!j(eq.y)){ej+=q(eh.styles.lineHeight)*0.9-eh.getBBox().height/2}if(dz){ej+=(ee/(ec||1)%dz)*16}if(ec){eh[ee%ec?"hide":"show"]()}eh[et.isNew?"attr":"animate"]({x:el,y:ej})}et.isNew=false},destroy:function(){bh(this)}};function dG(d9){var d8=this;if(d9){d8.options=d9;d8.id=d9.id}return d8}dG.prototype={render:function(){var et=this,eb=et.options,d8=eb.label,ed=et.label,em=eb.width,ea=eb.to,er=eb.from,en=eb.value,ek,ec=eb.dashStyle,ep=et.svgElem,el=[],eo,eh,ee,es,eg,ef,eq=eb.color,ej=eb.zIndex,d9=eb.events,ei;if(di){er=a5(er);ea=a5(ea);en=a5(en)}if(em){el=c1(en,em);ei={stroke:eq,"stroke-width":em};if(ec){ei.dashstyle=ec}}else{if(j(er)&&j(ea)){er=aV(er,d1);ea=ai(ea,dc);ek=c1(ea);el=c1(er);if(el&&ek){el.push(ek[4],ek[5],ek[1],ek[2])}else{el=null}ei={fill:eq}}else{return}}if(j(ej)){ei.zIndex=ej}if(ep){if(el){ep.animate({d:el},null,ep.onGetPath)}else{ep.hide();ep.onGetPath=function(){ep.show()}}}else{if(el&&el.length){et.svgElem=ep=b9.path(el).attr(ei).add();if(d9){eo=function(eu){ep.on(eu,function(ev){d9[eu].apply(et,[ev])})};for(eh in d9){eo(eh)}}}}if(d8&&j(d8.text)&&el&&el.length&&bn>0&&bx>0){d8=z({align:cW&&ek&&"center",x:cW?!ek&&4:10,verticalAlign:!cW&&ek&&"middle",y:cW?ek?16:10:ek?6:-4,rotation:cW&&!ek&&90},d8);if(!ed){et.label=ed=b9.text(d8.text,0,0).attr({align:d8.textAlign||d8.align,rotation:d8.rotation,zIndex:ej}).css(d8.style).add()}ee=[el[1],el[4],b(el[6],el[1])];es=[el[2],el[5],b(el[7],el[2])];eg=ai.apply(aa,ee);ef=ai.apply(aa,es);ed.align(d8,false,{x:eg,y:ef,width:aV.apply(aa,ee)-eg,height:aV.apply(aa,es)-ef});ed.show()}else{if(ed){ed.hide()}}return et},destroy:function(){var d8=this;bh(d8);aS(c3,d8)}};function dm(ea,d9,d8){var eb=this;eb.isNegative=d9;eb.options=ea;eb.x=d8;eb.alignOptions={align:ea.align||(bu?(d9?"left":"right"):"center"),verticalAlign:ea.verticalAlign||(bu?"middle":(d9?"bottom":"top")),y:b(ea.y,bu?4:(d9?14:-6)),x:b(ea.x,bu?(d9?-6:6):0)};eb.textAlign=ea.textAlign||(bu?(d9?"right":"left"):"center")}dm.prototype={destroy:function(){bh(this)},setTotal:function(d8){this.total=d8;this.cum=d8},render:function(d9){var d8=this,ea=d8.options.formatter.call(d8);if(d8.label){d8.label.attr({text:ea,visibility:az})}else{d8.label=cC.renderer.text(ea,0,0).css(d8.options.style).attr({align:d8.textAlign,rotation:d8.options.rotation,visibility:az}).add(d9)}},setOffset:function(eb,ed){var eg=this,d8=eg.isNegative,ee=c2.translate(eg.total),ea=c2.translate(0),d9=bi(ee-ea),ef=cC.xAxis[0].translate(eg.x)+eb,ec=cC.plotHeight,eh={x:bu?(d8?ee:ee-d9):ef,y:bu?ec-ef-ed:(d8?(ec-ee-d9):ec-ee),width:bu?d9:ed,height:bu?ed:d9};if(eg.label){eg.label.align(eg.alignOptions,null,eh).attr({visibility:at})}}};function cV(){var d8=[],d9=[],ea;dY=da=null;dP=[];bj(cc,function(eg){ea=false;bj(["xAxis","yAxis"],function(ei){if(eg.isCartesian&&((ei==="xAxis"&&dZ)||(ei==="yAxis"&&!dZ))&&((eg.options[ei]===dx.index)||(eg.options[ei]===aG&&dx.index===0))){eg[ei]=c2;dP.push(eg);ea=true}});if(!eg.visible&&bN.ignoreHiddenSeries){ea=false}if(ea){var ef,eh,ee,ec,ed;if(!dZ){ef=eg.options.stacking;dI=ef==="percent";if(ef){ec=eg.type+b(eg.options.stack,"");ed="-"+ec;eg.stackKey=ec;eh=d8[ec]||[];d8[ec]=eh;ee=d9[ed]||[];d9[ed]=ee}if(dI){dY=0;da=99}}if(eg.isCartesian){bj(eg.data,function(ei){var ep=ei.x,eo=ei.y,ej=eo<0,el=ej?ee:eh,en=ej?ed:ec,ek,em;if(dY===null){dY=da=ei[dB]}if(dZ){if(ep>da){da=ep}else{if(ep<dY){dY=ep}}}else{if(j(eo)){if(ef){el[ep]=j(el[ep])?el[ep]+eo:eo}ek=el?el[ep]:eo;em=b(ei.low,ek);if(!dI){if(ek>da){da=ek}else{if(em<dY){dY=em}}}if(ef){if(!dv[en]){dv[en]={}}if(!dv[en][ep]){dv[en][ep]=new dm(dx.stackLabels,ej,ep)}dv[en][ep].setTotal(ek)}}}});if(/(area|column|bar)/.test(eg.type)&&!dZ){var eb=0;if(dY>=eb){dY=eb;d4=true}else{if(da<eb){da=eb;dS=true}}}}}})}c8=function(d9,ef,eg,ea,ee){var eb=1,ed=0,ec=ea?dl:dD,eh=ea?dw:d1,d8;if(!ec){ec=dD}if(eg){eb*=-1;ed=c9}if(cX){eb*=-1;ed-=eb*c9}if(ef){if(cX){d9=c9-d9}d8=d9/ec+eh;if(di&&ee){d8=aO(d8)}}else{if(di&&ee){d9=a5(d9)}d8=eb*(d9-eh)*ec+ed}return d8};c1=function(eh,ed,ea){var d9,eg,d8,ef,ec=c8(eh,null,null,ea),ee=(ea&&b6)||bF,eb=(ea&&bB)||cP,ei;d9=d8=w(ec+dC);eg=ef=w(ee-ec-dC);if(isNaN(ec)){ei=true}else{if(cW){eg=cr;ef=ee-b3;if(d9<M||d9>M+bn){ei=true}}else{d9=M;d8=eb-cx;if(eg<cr||eg>cr+bx){ei=true}}}return ei?null:b9.crispLine([aA,d9,eg,aB,d8,ef],ed||0)};function d5(d8,eb){var ea,d9;dU=eb?1:aa.pow(10,V(aa.log(d8)/aa.LN10));ea=d8/dU;if(!eb){eb=[1,2,2.5,5,10];if(dx.allowDecimals===false||di){if(dU===1){eb=[1,2,5,10]}else{if(dU<=0.1){eb=[1/dU]}}}}for(d9=0;d9<eb.length;d9++){d8=eb[d9];if(ea<=(eb[d9]+(eb[d9+1]||eb[d9]))/2){break}}d8*=dU;return d8}function dJ(){dR=[];var em,ef=aP.global.useUTC,ei=1000/R,ec=60000/R,d8=3600000/R,eh=24*3600000/R,eg=7*24*3600000/R,ep=30*24*3600000/R,ed=31556952000/R,ek=[["second",ei,[1,2,5,10,15,30]],["minute",ec,[1,2,5,10,15,30]],["hour",d8,[1,2,3,4,6,8,12]],["day",eh,[1,2]],["week",eg,[1,2]],["month",ep,[1,2,3,4,6]],["year",ed,null]],ee=ek[6],eq=ee[1],d9=ee[2];for(em=0;em<ek.length;em++){ee=ek[em];eq=ee[1];d9=ee[2];if(ek[em+1]){var el=(eq*d9[d9.length-1]+ek[em+1][1])/2;if(c4<=el){break}}}if(eq===ed&&c4<5*eq){d9=[1,2,5]}var eo=d5(c4/eq,d9),er,eb=new Date(d1*R);eb.setMilliseconds(0);if(eq>=ei){eb.setSeconds(eq>=ec?0:eo*V(eb.getSeconds()/eo))}if(eq>=ec){eb[aN](eq>=d8?0:eo*V(eb[P]()/eo))}if(eq>=d8){eb[K](eq>=eh?0:eo*V(eb[aW]()/eo))}if(eq>=eh){eb[a0](eq>=ep?1:eo*V(eb[bd]()/eo))}if(eq>=ep){eb[N](eq>=ed?0:eo*V(eb[aX]()/eo));er=eb[ar]()}if(eq>=ed){er-=er%eo;eb[B](er)}if(eq===eg){eb[a0](eb[bd]()-eb[ap]()+dx.startOfWeek)}em=1;er=eb[ar]();var ea=eb.getTime()/R,en=eb[aX](),ej=eb[bd]();while(ea<dc&&em<bn){dR.push(ea);if(eq===ed){ea=a3(er+em*eo,0)/R}else{if(eq===ep){ea=a3(er,en+em*eo)/R}else{if(!ef&&(eq===eh||eq===eg)){ea=a3(er,en,ej+em*eo*(eq===eh?1:7))}else{ea+=eq*eo}}}em++}dR.push(ea);d3=dx.dateTimeLabelFormats[ee[0]]}function du(d9){var ea,d8=d9;dU=b(dU,aa.pow(10,V(aa.log(c4)/aa.LN10)));if(dU<1){ea=w(1/dU)*10;d8=w(d9*ea)/ea}return d8}function dj(){var d9,ea=du(V(d1/c4)*c4),d8=du(bl(dc/c4)*c4);dR=[];d9=du(ea);while(d9<=d8){dR.push(d9);d9=du(d9+c4)}}function dr(){var d8,eh,d9,ec,ed=dx.tickInterval,eb=dx.tickPixelInterval,ee=dx.maxZoom||(dZ&&!j(dx.min)&&!j(dx.max)?ai(cC.smallestInterval*5,da-dY):null),ef;c9=cW?bn:bx;if(db){d9=cC[dZ?"xAxis":"yAxis"][dx.linkedTo];ec=d9.getExtremes();d1=b(ec.min,ec.dataMin);dc=b(ec.max,ec.dataMax)}else{d1=b(cS,dx.min,dY);dc=b(df,dx.max,da)}if(di){d1=a5(d1);dc=a5(dc)}if(dc-d1<ee){ef=(ee-dc+d1)/2;d1=aV(d1-ef,b(dx.min,d1-ef),dY);dc=ai(d1+ee,b(dx.max,d1+ee),da)}if(!dK&&!dI&&!db&&j(d1)&&j(dc)){d8=(dc-d1)||1;if(!j(dx.min)&&!j(cS)&&c0&&(dY<0||!d4)){d1-=d8*c0}if(!j(dx.max)&&!j(df)&&cT&&(da>0||!dS)){dc+=d8*cT}}if(d1===dc){c4=1}else{if(db&&!ed&&eb===d9.options.tickPixelInterval){c4=d9.tickInterval}else{c4=b(ed,dK?1:(dc-d1)*eb/c9)}}if(!dX&&!j(dx.tickInterval)){c4=d5(c4)}c2.tickInterval=c4;dE=dx.minorTickInterval==="auto"&&c4?c4/5:dx.minorTickInterval;if(dX){dJ()}else{dj()}if(!db){if(dK||(dZ&&cC.hasColumn)){eh=(dK?1:c4)*0.5;if(dK||!j(b(dx.min,cS))){d1-=eh}if(dK||!j(b(dx.max,df))){dc+=eh}}var ea=dR[0],eg=dR[dR.length-1];if(dx.startOnTick){d1=ea}else{if(d1>ea){dR.shift()}}if(dx.endOnTick){dc=eg}else{if(dc<eg){dR.pop()}}if(!bq){bq={x:0,y:0}}if(!dX&&dR.length>bq[dB]){bq[dB]=dR.length}}}function d7(){if(bq&&!dX&&!dK&&!db){var d9=cY,d8=dR.length;cY=bq[dB];if(d8<cY){while(dR.length<cY){dR.push(du(dR[dR.length-1]+c4))}dD*=(d8-1)/(cY-1);dc=dR[dR.length-1]}if(j(d9)&&cY!==d9){c2.isDirty=true}}}function dy(){var d9,d8;dw=d1;dL=dc;cV();dr();dl=dD;dD=c9/((dc-d1)||1);if(!dZ){for(d9 in dv){for(d8 in dv[d9]){dv[d9][d8].cum=dv[d9][d8].total}}}if(!c2.isDirty){c2.isDirty=(d1!==dw||dc!==dL)}}function dF(ea,d8,eb,d9){eb=b(eb,true);aT(c2,"setExtremes",{min:ea,max:d8},function(){cS=ea;df=d8;if(eb){cC.redraw(d9)}})}function cU(){return{min:d1,max:dc,dataMin:dY,dataMax:da,userMin:cS,userMax:df}}function dA(d8){if(d1>d8){d8=d1}else{if(dc<d8){d8=dc}}return c8(d8,0,1)}function c7(d8){var d9=new dG(d8).render();c3.push(d9);return d9}function dQ(){var ea=dP.length&&j(d1)&&j(dc),ed=0,ec=0,eb=dx.title,d9=dx.labels,d8=[-1,1,1,-1][d0],ee;if(!dd){dd=b9.g("axis").attr({zIndex:7}).add();dT=b9.g("grid").attr({zIndex:1}).add()}d2=0;if(ea||db){bj(dR,function(ef){if(!dM[ef]){dM[ef]=new dh(ef)}else{dM[ef].addLabel()}if(d0===0||d0===2||{1:"left",3:"right"}[d0]===d9.align){d2=aV(dM[ef].getLabelSize(),d2)}});if(dz){d2+=(dz-1)*16}}else{for(ee in dM){dM[ee].destroy();delete dM[ee]}}if(eb&&eb.text){if(!dW){dW=c2.axisTitle=b9.text(eb.text,0,0).attr({zIndex:7,rotation:eb.rotation||0,align:eb.textAlign||{low:"left",middle:"center",high:"right"}[eb.align]}).css(eb.style).add();dW.isNew=true}ed=dW.getBBox()[cW?"height":"width"];ec=b(eb.margin,cW?5:10)}c6=d8*(dx.offset||bA[d0]);dt=d2+(d0!==2&&d2&&d8*dx.labels[cW?"y":"x"])+ec;bA[d0]=aV(bA[d0],dt+ed+d8*c6)}function dq(){var eb=dx.title,en=dx.stackLabels,ea=dx.alternateGridColor,d9=dx.lineWidth,eq,ee,eh,ek=cC.hasRendered,ej=ek&&j(dw)&&!isNaN(dw),ep=dP.length&&j(d1)&&j(dc);c9=cW?bn:bx;dD=c9/((dc-d1)||1);dC=cW?M:b3;if(ep||db){if(dE&&!dK){var eg=d1+(dR[0]-d1)%dE;for(;eg<=dc;eg+=dE){if(!d6[eg]){d6[eg]=new dh(eg,true)}if(ej&&d6[eg].isNew){d6[eg].render(null,true)}d6[eg].isActive=true;d6[eg].render()}}bj(dR,function(es,er){if(!db||(es>=d1&&es<=dc)){if(ej&&dM[es].isNew){dM[es].render(er,true)}dM[es].isActive=true;dM[es].render(er)}});if(ea){bj(dR,function(es,er){if(er%2===0&&es<dc){if(!c5[es]){c5[es]=new dG()}c5[es].options={from:es,to:dR[er+1]!==aG?dR[er+1]:dc,color:ea};c5[es].render();c5[es].isActive=true}})}if(!ek){bj((dx.plotLines||[]).concat(dx.plotBands||[]),function(er){c3.push(new dG(er).render())})}}bj([dM,d6,c5],function(er){var es;for(es in er){if(!er[es].isActive){er[es].destroy();delete er[es]}else{er[es].isActive=false}}});if(d9){eq=M+(dH?bn:0)+c6;ee=bF-b3-(dH?bx:0)+c6;eh=b9.crispLine([aA,cW?M:eq,cW?ee:cr,aB,cW?cP-cx:eq,cW?ee:bF-b3],d9);if(!dV){dV=b9.path(eh).attr({stroke:dx.lineColor,"stroke-width":d9,zIndex:7}).add()}else{dV.animate({d:eh})}}if(dW){var el=cW?M:cr,ed=q(eb.style.fontSize||12),ei={low:el+(cW?0:c9),middle:el+c9/2,high:el+(cW?c9:0)}[eb.align],em=(cW?cr+bx:M)+(cW?1:-1)*(dH?-1:1)*dt+(d0===2?ed:0);dW[dW.isNew?"attr":"animate"]({x:cW?ei:em+(dH?bn:0)+c6+(eb.x||0),y:cW?em-(dH?bx:0)+c6:ei+(eb.y||0)});dW.isNew=false}if(en&&en.enabled){var ec,ef,eo,d8=c2.stackTotalGroup;if(!d8){c2.stackTotalGroup=d8=b9.g("stack-labels").attr({visibility:at,zIndex:6}).translate(M,cr).add()}for(ec in dv){ef=dv[ec];for(eo in ef){ef[eo].render(d8)}}}c2.isDirty=false}function cR(d9){var d8=c3.length;while(d8--){if(c3[d8].id===d9){c3[d8].destroy()}}}function dp(){if(L.resetTracker){L.resetTracker()}dq();bj(c3,function(d8){d8.render()});bj(dP,function(d8){d8.isDirty=true})}function dn(d8,d9){c2.categories=dO.categories=dK=d8;bj(dP,function(ea){ea.translate();ea.setTooltipPoints(true)});c2.isDirty=true;if(b(d9,true)){cC.redraw()}}function cZ(){var d8;ak(c2);for(d8 in dv){bh(dv[d8]);dv[d8]=null}if(c2.stackTotalGroup){c2.stackTotalGroup=c2.stackTotalGroup.destroy()}bj([dM,d6,c5,c3],function(d9){bh(d9)});bj([dV,dd,dT,dW],function(d9){if(d9){d9.destroy()}});dV=dd=dT=dW=null}if(bu&&dZ&&cX===aG){cX=true}aC(c2,{addPlotBand:c7,addPlotLine:c7,adjustTickAmount:d7,categories:dK,getExtremes:cU,getPlotLinePath:c1,getThreshold:dA,isXAxis:dZ,options:dx,plotLinesAndBands:c3,getOffset:dQ,render:dq,setCategories:dn,setExtremes:dF,setScale:dy,setTickPositions:dr,translate:c8,redraw:dp,removePlotBand:cR,removePlotLine:cR,reversed:cX,stacks:dv,destroy:cZ});for(dk in dg){ah(c2,dk,dg[dk])}dy()}function cu(){var cS={};function cT(cY,cX,cW,cV){if(!cS[cY]){var cU=b9.text(cX,0,0).css(b8.toolbar.itemStyle).align({align:"right",x:-cx-20,y:cr+30}).on("click",cV).attr({align:"right",zIndex:20}).add();cS[cY]=cU}}function cR(cU){Y(cS[cU].element);cS[cU]=null}return{add:cT,remove:cR}}function cF(cT){var c2,dc=cT.borderWidth,cR=cT.crosshairs,c4=[],da=cT.style,cS=cT.shared,c5=q(da.padding),c6=dc+c5,c3=true,cY,cV,c9=0,c8=0;da.padding=0;var cW=b9.g("tooltip").attr({zIndex:8}).add(),cZ=b9.rect(c6,c6,0,0,cT.borderRadius,dc).attr({fill:cT.backgroundColor,"stroke-width":dc}).add(cW).shadow(cT.shadow),cX=b9.text("",c5+c6,q(da.fontSize)+c5+c6).attr({zIndex:1}).css(da).add(cW);cW.hide();function db(){bj(c4,function(dd){if(dd){dd.destroy()}});bj([cZ,cX,cW],function(dd){if(dd){dd.destroy()}});cZ=cX=cW=null}function c1(){var dj=this,de=dj.points||al(dj),di=de[0].series.xAxis,dd=dj.x,dh=di&&di.options.type==="datetime",dg=a8(dd)||dh,df;df=dg?['<span style="font-size: 10px">'+(dh?aH("%A, %b %e, %Y",dd):dd)+"</span>"]:[];bj(de,function(dk){df.push(dk.point.tooltipFormatter(dg))});return df.join("<br/>")}function c7(de,dd){c9=c3?de:(2*c9+de)/3;c8=c3?dd:(c8+dd)/2;cW.translate(c9,c8);if(bi(de-c9)>1||bi(dd-c8)>1){cp=function(){c7(de,dd)}}else{cp=null}}function c0(){if(!c3){var dd=cC.hoverPoints;cW.hide();bj(c4,function(de){if(de){de.hide()}});if(dd){bj(dd,function(de){de.setState()})}cC.hoverPoints=null;c3=true}}function cU(ds){var dm,dl,dv,dj,dh,dg=0,dk={},dp,di=[],dd=ds.tooltipPos,dt=cT.formatter||c1,dn=cC.hoverPoints,df;if(cS){if(dn){bj(dn,function(dw){dw.setState()})}cC.hoverPoints=ds;bj(ds,function(dw){dw.setState(W);dg+=dw.plotY;di.push(dw.getLabelConfig())});dh=ds[0].plotX;dg=w(dg)/ds.length;dk={x:ds[0].category};dk.points=di;ds=ds[0]}else{dk=ds.getLabelConfig()}dp=dt.call(dk);c2=ds.series;dh=cS?dh:ds.plotX;dg=cS?dg:ds.plotY;dm=w(dd?dd[0]:(bu?bn-dg:dh));dl=w(dd?dd[1]:(bu?bx-dh:dg));dv=cS||!ds.series.isCartesian||bH(dm,dl);if(dp===false||!dv){c0()}else{if(c3){cW.show();c3=false}cX.attr({text:dp});dj=cX.getBBox();cY=dj.width+2*c5;cV=dj.height+2*c5;cZ.attr({width:cY,height:cV,stroke:cT.borderColor||ds.color||c2.color||"#606060"});df=ab(cY,cV,M,cr,bn,bx,{x:dm,y:dl});c7(w(df.x-c6),w(df.y-c6))}if(cR){cR=al(cR);var dr,du=cR.length,dq,de;while(du--){de=ds.series[du?"yAxis":"xAxis"];if(cR[du]&&de){dr=de.getPlotLinePath(ds[du?"y":"x"],1);if(c4[du]){c4[du].attr({d:dr,visibility:at})}else{dq={"stroke-width":cR[du].width||1,stroke:cR[du].color||"#C0C0C0",zIndex:2};if(cR[du].dashStyle){dq.dashstyle=cR[du].dashStyle}c4[du]=b9.path(dr).attr(dq).add()}}}}}return{shared:cS,refresh:cU,hide:c0,destroy:db}}function cB(cT){var c7,c6,c4,cR,c3=bN.zoomType,c2=/x/.test(c3),c1=/y/.test(c3),c5=(c2&&!bu)||(c1&&bu),cS=(c1&&!bu)||(c2&&bu);function cW(dc){var da,df=aF&&O.width/O.body.scrollWidth-1,db,de,c9,dd;dc=dc||aJ.event;if(!dc.target){dc.target=dc.srcElement}da=dc.touches?dc.touches.item(0):dc;if(dc.type!=="mousemove"||aJ.opera||df){ce=t(cl);db=ce.left;de=ce.top}if(ba){c9=dc.x;dd=dc.y}else{if(da.layerX===aG){c9=da.pageX-db;dd=da.pageY-de}else{c9=dc.layerX;dd=dc.layerY}}if(df){c9+=w((df+1)*db-db);dd+=w((df+1)*de-de)}return aC(dc,{chartX:c9,chartY:dd})}function cV(c9){var da={xAxis:[],yAxis:[]};bj(ct,function(db){var de=db.translate,dd=db.isXAxis,dc=bu?!dd:dd;da[dd?"xAxis":"yAxis"].push({axis:db,value:de(dc?c9.chartX-M:bx-c9.chartY+cr,true)})});return da}function cU(de){var dg,dh,c9=cC.hoverPoint,df=cC.hoverSeries,dc,db,da=cP,dd=bu?de.chartY:de.chartX-M;if(by&&cT.shared){dh=[];dc=cc.length;for(db=0;db<dc;db++){if(cc[db].visible&&cc[db].tooltipPoints.length){dg=cc[db].tooltipPoints[dd];dg._dist=bi(dd-dg.plotX);da=ai(da,dg._dist);dh.push(dg)}}dc=dh.length;while(dc--){if(dh[dc]._dist>da){dh.splice(dc,1)}}if(dh.length&&(dh[0].plotX!==bC)){by.refresh(dh);bC=dh[0].plotX}}if(df&&df.tracker){dg=df.tooltipPoints[dd];if(dg&&dg!==c9){dg.onMouseOver()}}}function c0(){var da=cC.hoverSeries,c9=cC.hoverPoint;if(c9){c9.onMouseOut()}if(da){da.onMouseOut()}if(by){by.hide()}bC=null}function cZ(){if(cR){var db={xAxis:[],yAxis:[]},c9=cR.getBBox(),dc=c9.x-M,da=c9.y-cr;if(c4){bj(ct,function(de){var di=de.translate,dh=de.isXAxis,dg=bu?!dh:dh,dd=di(dg?dc:bx-da-c9.height,true,0,0,1),df=di(dg?dc+c9.width:bx-da,true,0,0,1);db[dh?"xAxis":"yAxis"].push({axis:de,min:ai(dd,df),max:aV(dd,df)})});aT(cC,"selection",db,br)}cR=cR.destroy()}cC.mouseIsDown=bO=c4=false;ak(O,a7?"touchend":"mouseup",cZ)}function cY(db){var da=j(db.pageX)?db.pageX:db.page.x,c9=j(db.pageX)?db.pageY:db.page.y;if(ce&&!bH(da-ce.left-M,c9-ce.top-cr)){c0()}}function cX(){var da=true;cl.onmousedown=function(db){db=cW(db);if(!a7&&db.preventDefault){db.preventDefault()}cC.mouseIsDown=bO=true;c7=db.chartX;c6=db.chartY;ah(O,a7?"touchend":"mouseup",cZ)};var c9=function(df){if(df&&df.touches&&df.touches.length>1){return}df=cW(df);if(!a7){df.returnValue=false}var db=df.chartX,dg=df.chartY,dd=!bH(db-M,dg-cr);if(!ce){ce=t(cl)}if(a7&&df.type==="touchstart"){if(ag(df.target,"isTracker")){if(!cC.runTrackerClick){df.preventDefault()}}else{if(!cQ&&!dd){df.preventDefault()}}}if(dd){if(db<M){db=M}else{if(db>M+bn){db=M+bn}}if(dg<cr){dg=cr}else{if(dg>cr+bx){dg=cr+bx}}}if(bO&&df.type!=="touchstart"){c4=Math.sqrt(Math.pow(c7-db,2)+Math.pow(c6-dg,2));if(c4>10){if(cg&&(c2||c1)&&bH(c7-M,c6-cr)){if(!cR){cR=b9.rect(M,cr,c5?1:bn,cS?1:bx,0).attr({fill:bN.selectionMarkerFill||"rgba(69,114,167,0.25)",zIndex:7}).add()}}if(cR&&c5){var de=db-c7;cR.attr({width:bi(de),x:(de>0?0:de)+c7})}if(cR&&cS){var dc=dg-c6;cR.attr({height:bi(dc),y:(dc>0?0:dc)+c6})}}}else{if(!dd){cU(df)}}da=dd;return dd||!cg};cl.onmousemove=c9;ah(cl,"mouseleave",c0);ah(O,"mousemove",cY);cl.ontouchstart=function(db){if(c2||c1){cl.onmousedown(db)}c9(db)};cl.ontouchmove=c9;cl.ontouchend=function(){if(c4){c0()}};cl.onclick=function(de){var dc=cC.hoverPoint;de=cW(de);de.cancelBubble=true;if(!c4){if(dc&&ag(de.target,"isTracker")){var dd=dc.plotX,db=dc.plotY;aC(dc,{pageX:ce.left+M+(bu?bn-db:dd),pageY:ce.top+cr+(bu?bx-dd:db)});aT(dc.series,"click",aC(de,{point:dc}));dc.firePointEvent("click",de)}else{aC(de,cV(de));if(bH(de.chartX-M,de.chartY-cr)){aT(cC,"click",de)}}}c4=false}}function c8(){if(cC.trackerGroup){cC.trackerGroup=ci=cC.trackerGroup.destroy()}ak(O,"mousemove",cY);cl.onclick=cl.onmousedown=cl.onmousemove=cl.ontouchstart=cl.ontouchend=cl.ontouchmove=null}bR=function(){if(!ci){cC.trackerGroup=ci=b9.g("tracker").attr({zIndex:9}).add()}else{ci.translate(M,cr);if(bu){ci.attr({width:cC.plotWidth,height:cC.plotHeight}).invert()}}};bR();if(cT.enabled){cC.tooltip=by=cF(cT)}cX();ch=setInterval(function(){if(cp){cp()}},32);aC(this,{zoomX:c2,zoomY:c1,resetTracker:c0,destroy:c8})}var cG=function(){var cW=cC.options.legend;if(!cW.enabled){return}var di=cW.layout==="horizontal",dj=cW.symbolWidth,cR=cW.symbolPadding,da,dh=cW.style,cZ=cW.itemStyle,c0=cW.itemHoverStyle,cT=cW.itemHiddenStyle,c9=q(dh.padding),c3=18,df=4+c9+dj+cR,cU,cS,db,dd=0,c5,c8=cW.borderWidth,c1=cW.backgroundColor,cX,dc,c7=cW.width,c4=cC.series,de=cW.reversed;function dl(dv,dn){var dp=dv.legendItem,dq=dv.legendLine,dm=dv.legendSymbol,dt=cT.color,ds=dn?cW.itemStyle.color:dt,dr=dn?dv.color:dt,du=dn?dv.pointAttr[ac]:{stroke:dt,fill:dt};if(dp){dp.css({fill:ds})}if(dq){dq.attr({stroke:dr})}if(dm){dm.attr(du)}}function dg(dp,ds,dn){var dm=dp.legendItem,dr=dp.legendLine,dt=dp.legendSymbol,dq=dp.checkbox;if(dm){dm.attr({x:ds,y:dn})}if(dr){dr.translate(ds,dn-4)}if(dt){dt.attr({x:ds+dt.xOff,y:dn+dt.yOff})}if(dq){dq.x=ds;dq.y=dn}}function cY(dm){var dn=dm.checkbox;bj(["legendItem","legendLine","legendSymbol"],function(dp){if(dm[dp]){dm[dp].destroy()}});if(dn){Y(dm.checkbox)}}function dk(){if(c5){c5=c5.destroy()}if(cX){cX=cX.destroy()}}function c2(){bj(da,function(dm){var dn=dm.checkbox,dp=cX.alignAttr;if(dn){aD(dn,{left:(dp.translateX+dm.legendItemWidth+dn.x-40)+aq,top:(dp.translateY+dn.y-11)+aq})}})}function c6(dw){var dx,ds,dm,dp,dn,dr,dv=dw.legendItem,dq=dw.series||dw,dy=dq.options,dt=(dy&&dy.borderWidth)||0;if(!dv){dr=/^(bar|pie|area|column)$/.test(dq.type);dw.legendItem=dv=b9.text(cW.labelFormatter.call(dw),0,0).css(dw.visible?cZ:cT).on("mouseover",function(){dw.setState(W);dv.css(c0)}).on("mouseout",function(){dv.css(dw.visible?cZ:cT);dw.setState()}).on("click",function(){var dA="legendItemClick",dz=function(){dw.setVisible()};if(dw.firePointEvent){dw.firePointEvent(dA,null,dz)}else{aT(dw,dA,null,dz)}}).attr({zIndex:2}).add(cX);if(!dr&&dy&&dy.lineWidth){var du={"stroke-width":dy.lineWidth,zIndex:2};if(dy.dashStyle){du.dashstyle=dy.dashStyle}dw.legendLine=b9.path([aA,-dj-cR,0,aB,-cR,0]).attr(du).add(cX)}if(dr){dm=b9.rect((dp=-dj-cR),(dn=-11),dj,12,2).attr({zIndex:3}).add(cX)}else{if(dy&&dy.marker&&dy.marker.enabled){dm=b9.symbol(dw.symbol,(dp=-dj/2-cR),(dn=-4),dy.marker.radius).attr({zIndex:3}).add(cX)}}if(dm){dm.xOff=dp+(dt%2/2);dm.yOff=dn+(dt%2/2)}dw.legendSymbol=dm;dl(dw,dw.visible);if(dy&&dy.showCheckbox){dw.checkbox=ay("input",{type:"checkbox",checked:dw.selected,defaultChecked:dw.selected},cW.itemCheckboxStyle,cl);ah(dw.checkbox,"click",function(dz){var dA=dz.target;aT(dw,"checkboxClick",{checked:dA.checked},function(){dw.select()})})}}dx=dv.getBBox();ds=dw.legendItemWidth=cW.itemWidth||dj+cR+dx.width+c9;dd=dx.height;if(di&&cU-df+ds>(c7||(cP-2*c9-df))){cU=df;cS+=dd}db=cS;dg(dw,cU,cS);if(di){cU+=ds}else{cS+=dd}dc=c7||aV(di?cU-df:ds,dc)}function cV(){cU=df;cS=c3;dc=0;db=0;if(!cX){cX=b9.g("legend").attr({zIndex:7}).add()}da=[];bj(c4,function(dr){var dq=dr.options;if(!dq.showInLegend){return}da=da.concat(dq.legendType==="point"?dr.data:dr)});Q(da,function(dr,dq){return(dr.options.legendIndex||0)-(dq.options.legendIndex||0)});if(de){da.reverse()}bj(da,c6);bD=c7||dc;bv=db-c3+dd;if(c8||c1){bD+=2*c9;bv+=2*c9;if(!c5){c5=b9.rect(0,0,bD,bv,cW.borderRadius,c8||0).attr({stroke:cW.borderColor,"stroke-width":c8||0,fill:c1||ao}).add(cX).shadow(cW.shadow);c5.isNew=true}else{if(bD>0&&bv>0){c5[c5.isNew?"attr":"animate"](c5.crisp(null,null,null,bD,bv));c5.isNew=false}}c5[da.length?"show":"hide"]()}var dn=["left","right","top","bottom"],dp,dm=4;while(dm--){dp=dn[dm];if(dh[dp]&&dh[dp]!=="auto"){cW[dm<2?"align":"verticalAlign"]=dp;cW[dm<2?"x":"y"]=q(dh[dp])*(dm%2?-1:1)}}if(da.length){cX.align(aC(cW,{width:bD,height:bv}),true,b2)}if(!bL){c2()}}cV();ah(cC,"endResize",c2);return{colorizeItem:dl,destroyItem:cY,renderLegend:cV,destroy:dk}};function cJ(cR){var cS=cR.type||bN.type||bN.defaultSeriesType,cV=be[cS],cT,cU=cC.hasRendered;if(cU){if(bu&&cS==="column"){cV=be.bar}else{if(!bu&&cS==="bar"){cV=be.column}}}cT=new cV();cT.init(cC,cR);if(!cU&&cT.inverted){bu=true}if(cT.isCartesian){cg=cT.isCartesian}cc.push(cT);return cT}function cI(cR,cU,cT){var cS;if(cR){aE(cT,cC);cU=b(cU,true);aT(cC,"addSeries",{options:cR},function(){cS=cJ(cR);cS.isDirty=true;cC.isDirtyLegend=true;if(cU){cC.redraw()}})}return cS}bH=function(cR,cS){return cR>=0&&cR<=bn&&cS>=0&&cS<=bx};function cd(){if(bN.alignTicks!==false){bj(ct,function(cR){cR.adjustTickAmount()})}bq=null}function bV(cY){var cT=cC.isDirtyLegend,cS,cX=cC.isDirtyBox,cR=cc.length,cV=cR,cU=cC.clipRect,cW;aE(cY,cC);while(cV--){cW=cc[cV];if(cW.isDirty&&cW.options.stacking){cS=true;break}}if(cS){cV=cR;while(cV--){cW=cc[cV];if(cW.options.stacking){cW.isDirty=true}}}bj(cc,function(cZ){if(cZ.isDirty){cZ.cleanData();cZ.getSegments();if(cZ.options.legendType==="point"){cT=true}}});if(cT&&cK.renderLegend){cK.renderLegend();cC.isDirtyLegend=false}if(cg){if(!bL){bq=null;bj(ct,function(cZ){cZ.setScale()})}cd();cy();bj(ct,function(cZ){if(cZ.isDirty||cX){cZ.redraw();cX=true}})}if(cX){cf();bR();if(cU){aY(cU);cU.animate({width:cC.plotSizeX,height:cC.plotSizeY})}}bj(cc,function(cZ){if(cZ.isDirty&&cZ.visible&&(!cZ.isCartesian||cZ.xAxis)){cZ.redraw()}});if(L&&L.resetTracker){L.resetTracker()}aT(cC,"redraw")}function bQ(cS){var cR=b8.loading;if(!bp){bp=ay(av,{className:"highcharts-loading"},aC(cR.style,{left:M+aq,top:cr+aq,width:bn+aq,height:bx+aq,zIndex:10,display:ao}),cl);cA=ay("span",null,cR.labelStyle,bp)}cA.innerHTML=cS||b8.lang.loading;if(!cN){aD(bp,{opacity:0,display:""});am(bp,{opacity:cR.style.opacity},{duration:cR.showDuration});cN=true}}function cH(){am(bp,{opacity:0},{duration:b8.loading.hideDuration,complete:function(){aD(bp,{display:ao})}});cN=false}function cq(cU){var cS,cR,cT;for(cS=0;cS<ct.length;cS++){if(ct[cS].options.id===cU){return ct[cS]}}for(cS=0;cS<cc.length;cS++){if(cc[cS].options.id===cU){return cc[cS]}}for(cS=0;cS<cc.length;cS++){cT=cc[cS].data;for(cR=0;cR<cT.length;cR++){if(cT[cR].id===cU){return cT[cR]}}}return null}function bZ(){var cR=b8.xAxis||{},cT=b8.yAxis||{},cS;cR=al(cR);bj(cR,function(cV,cU){cV.index=cU;cV.isX=true});cT=al(cT);bj(cT,function(cV,cU){cV.index=cU});ct=cR.concat(cT);cC.xAxis=[];cC.yAxis=[];ct=u(ct,function(cU){cS=new bE(cU);cC[cS.isXAxis?"xAxis":"yAxis"].push(cS);return cS});cd()}function ca(){var cR=[];bj(cc,function(cS){cR=cR.concat(p(cS.data,function(cT){return cT.selected}))});return cR}function cv(){return p(cc,function(cR){return cR.selected})}bW=function(){aT(cC,"selection",{resetSelection:true},br);cC.toolbar.remove("zoom")};br=function(cS){var cT=aP.lang,cR=cC.pointCount<100;cC.toolbar.add("zoom",cT.resetZoom,cT.resetZoomTitle,bW);if(!cS||cS.resetSelection){bj(ct,function(cU){cU.setExtremes(null,null,false,cR)})}else{bj(cS.xAxis.concat(cS.yAxis),function(cU){var cV=cU.axis;if(cC.tracker[cV.isXAxis?"zoomX":"zoomY"]){cV.setExtremes(cU.min,cU.max,false,cR)}})}bV()};function cM(cS,cR){b5=z(b8.title,cS);cn=z(b8.subtitle,cR);bj([["title",cS,b5],["subtitle",cR,cn]],function(cT){var cU=cT[0],cX=cC[cU],cW=cT[1],cV=cT[2];if(cX&&cW){cX=cX.destroy()}if(cV&&cV.text&&!cX){cC[cU]=b9.text(cV.text,0,0).attr({align:cV.align,"class":"highcharts-"+cU,zIndex:1}).css(cV.style).add().align(cV,false,b2)}})}function cL(){cE=(cs||bT).offsetWidth;b0=(cs||bT).offsetHeight;cC.chartWidth=cP=bN.width||cE||600;cC.chartHeight=bF=bN.height||(b0>19?b0:400)}function b7(){bT=bN.renderTo;bX=C+U++;if(a8(bT)){bT=O.getElementById(bT)}bT.innerHTML="";if(!bT.offsetWidth){cs=bT.cloneNode(0);aD(cs,{position:a9,top:"-9999px",display:""});O.body.appendChild(cs)}cL();cC.container=cl=ay(av,{className:"highcharts-container"+(bN.className?" "+bN.className:""),id:bX},aC({position:m,overflow:az,width:cP+aq,height:bF+aq,textAlign:"left"},bN.style),cs||bT);cC.renderer=b9=bN.forExport?new r(cl,cP,bF,true):new aM(cl,cP,bF);var cR,cS;if(f&&cl.getBoundingClientRect){cR=function(){aD(cl,{left:0,top:0});cS=cl.getBoundingClientRect();aD(cl,{left:(-(cS.left-q(cS.left)))+aq,top:(-(cS.top-q(cS.top)))+aq})};cR();ah(aJ,"resize",cR);ah(cC,"destroy",function(){ak(aJ,"resize",cR)})}}cy=function(){var cR=b8.legend,cV=b(cR.margin,10),cT=cR.x,cS=cR.y,cX=cR.align,cW=cR.verticalAlign,cU;bz();if((cC.title||cC.subtitle)&&!j(bK)){cU=aV((cC.title&&!b5.floating&&!b5.verticalAlign&&b5.y)||0,(cC.subtitle&&!cn.floating&&!cn.verticalAlign&&cn.y)||0);if(cU){cr=aV(cr,cU+b(b5.margin,15)+cO)}}if(cR.enabled&&!cR.floating){if(cX==="right"){if(!j(bI)){cx=aV(cx,bD-cT+cV+bU)}}else{if(cX==="left"){if(!j(b4)){M=aV(M,bD+cT+cV+cD)}}else{if(cW==="top"){if(!j(bK)){cr=aV(cr,bv+cS+cV+cO)}}else{if(cW==="bottom"){if(!j(b1)){b3=aV(b3,bv-cS+cV+bP)}}}}}}if(cg){bj(ct,function(cY){cY.getOffset()})}if(!j(b4)){M+=bA[3]}if(!j(bK)){cr+=bA[0]}if(!j(b1)){b3+=bA[2]}if(!j(bI)){cx+=bA[1]}cw()};function co(){var cS;function cR(){var cU=bN.width||bT.offsetWidth,cT=bN.height||bT.offsetHeight;if(cU&&cT){if(cU!==cE||cT!==b0){clearTimeout(cS);cS=setTimeout(function(){bt(cU,cT,false)},100)}cE=cU;b0=cT}}ah(aJ,"resize",cR);ah(cC,"destroy",function(){ak(aJ,"resize",cR)})}function cj(){aT(cC,"endResize",null,function(){bL-=1})}bt=function(cT,cR,cU){var cV=cC.title,cS=cC.subtitle;bL+=1;aE(cU,cC);b6=bF;bB=cP;cC.chartWidth=cP=w(cT);cC.chartHeight=bF=w(cR);aD(cl,{width:cP+aq,height:bF+aq});b9.setSize(cP,bF,cU);bn=cP-M-cx;bx=bF-cr-b3;bq=null;bj(ct,function(cW){cW.isDirty=true;cW.setScale()});bj(cc,function(cW){cW.isDirty=true});cC.isDirtyLegend=true;cC.isDirtyBox=true;cy();if(cV){cV.align(null,null,b2)}if(cS){cS.align(null,null,b2)}bV(cU);b6=null;aT(cC,"resize");if(n===false){cj()}else{setTimeout(cj,(n&&n.duration)||500)}};cw=function(){cC.plotLeft=M=w(M);cC.plotTop=cr=w(cr);cC.plotWidth=bn=w(cP-M-cx);cC.plotHeight=bx=w(bF-cr-b3);cC.plotSizeX=bu?bx:bn;cC.plotSizeY=bu?bn:bx;b2={x:cD,y:cO,width:cP-cD-bU,height:bF-cO-bP}};bz=function(){cr=b(bK,cO);cx=b(bI,bU);b3=b(b1,bP);M=b(b4,cD);bA=[0,0,0,0]};cf=function(){var cU=bN.borderWidth||0,cS=bN.backgroundColor,cT=bN.plotBackgroundColor,cW=bN.plotBackgroundImage,cR,cV={x:M,y:cr,width:bn,height:bx};cR=cU+(bN.shadow?8:0);if(cU||cS){if(!bG){bG=b9.rect(cR/2,cR/2,cP-cR,bF-cR,bN.borderRadius,cU).attr({stroke:bN.borderColor,"stroke-width":cU,fill:cS||ao}).add().shadow(bN.shadow)}else{bG.animate(bG.crisp(null,null,null,cP-cR,bF-cR))}}if(cT){if(!bs){bs=b9.rect(M,cr,bn,bx,0).attr({fill:cT}).add().shadow(bN.plotShadow)}else{bs.animate(cV)}}if(cW){if(!cb){cb=b9.image(cW,M,cr,bn,bx).add()}else{cb.animate(cV)}}if(bN.plotBorderWidth){if(!bw){bw=b9.rect(M,cr,bn,bx,0,bN.plotBorderWidth).attr({stroke:bN.plotBorderColor,"stroke-width":bN.plotBorderWidth,zIndex:4}).add()}else{bw.animate(bw.crisp(null,M,cr,bn,bx))}}cC.isDirtyBox=false};function bY(){var cT=b8.labels,cR=b8.credits,cS;cM();cK=cC.legend=new cG();cy();bj(ct,function(cU){cU.setTickPositions(true)});cd();cy();cf();if(cg){bj(ct,function(cU){cU.render()})}if(!cC.seriesGroup){cC.seriesGroup=b9.g("series-group").attr({zIndex:3}).add()}bj(cc,function(cU){cU.translate();cU.setTooltipPoints();cU.render()});if(cT.items){bj(cT.items,function(){var cV=aC(cT.style,this.style),cU=q(cV.left)+M,cW=q(cV.top)+cr+12;delete cV.left;delete cV.top;b9.text(this.html,cU,cW).attr({zIndex:2}).css(cV).add()})}if(!cC.toolbar){cC.toolbar=cu()}if(cR.enabled&&!cC.credits){cS=cR.href;cC.credits=b9.text(cR.text,0,0).on("click",function(){if(cS){location.href=cS}}).attr({align:cR.position.align,zIndex:8}).css(cR.style).add().align(cR.position)}bR();cC.hasRendered=true;if(cs){bT.appendChild(cl);Y(cs)}}function bo(){var cS,cR=cl&&cl.parentNode;if(cC===null){return}aT(cC,"destroy");ak(aJ,"unload",bo);ak(cC);cS=ct.length;while(cS--){ct[cS]=ct[cS].destroy()}cS=cc.length;while(cS--){cc[cS]=cc[cS].destroy()}bj(["title","subtitle","seriesGroup","clipRect","credits","tracker"],function(cT){var cU=cC[cT];if(cU){cC[cT]=cU.destroy()}});bj([bG,cK,by,b9,L],function(cT){if(cT){cT.destroy()}});bG=cK=by=b9=L=null;if(cl){cl.innerHTML="";ak(cl);if(cR){cR.removeChild(cl)}cl=null}clearInterval(ch);for(cS in cC){delete cC[cS]}cC=null}function ck(){var cR="onreadystatechange",cS="complete";if(!c&&aJ==aJ.top&&O.readyState!==cS){O.attachEvent(cR,function(){O.detachEvent(cR,ck);if(O.readyState===cS){ck()}});return}b7();bz();cw();bj(b8.series||[],function(cT){cJ(cT)});cC.inverted=bu=b(bu,b8.chart.inverted);bZ();cC.render=bY;cC.tracker=L=new cB(b8.tooltip);bY();aT(cC,"load");if(bM){bM.apply(cC,[cC])}bj(cC.callbacks,function(cT){cT.apply(cC,[cC])})}ah(aJ,"unload",bo);if(bN.reflow!==false){ah(cC,"load",co)}if(bS){for(bJ in bS){ah(cC,bJ,bS[bJ])}}cC.options=b8;cC.series=cc;cC.addSeries=cI;cC.animation=b(bN.animation,true);cC.destroy=bo;cC.get=cq;cC.getSelectedPoints=ca;cC.getSelectedSeries=cv;cC.hideLoading=cH;cC.isInsidePlot=bH;cC.redraw=bV;cC.setSize=bt;cC.setTitle=cM;cC.showLoading=bQ;cC.pointCount=0;cC.counters=new D();ck()}bb.prototype.callbacks=[];var g=function(){};g.prototype={init:function(bn,M){var L=this,bo=bn.chart.counters,bp;L.series=bn;L.applyOptions(M);L.pointAttr={};if(bn.options.colorByPoint){bp=bn.chart.options.colors;if(!L.options){L.options={}}L.color=L.options.color=L.color||bp[bo.color++];bo.wrapColor(bp.length)}bn.chart.pointCount++;return L},applyOptions:function(M){var L=this,bn=L.series;L.config=M;if(Z(M)||M===null){L.y=M}else{if(J(M)&&!Z(M.length)){aC(L,M);L.options=M}else{if(a8(M[0])){L.name=M[0];L.y=M[1]}else{if(Z(M[0])){L.x=M[0];L.y=M[1]}}}}if(L.x===aG){L.x=bn.autoIncrement()}},destroy:function(){var L=this,M=L.series,bn=M.chart.hoverPoints,bo;M.chart.pointCount--;if(bn){L.setState();aS(bn,L)}if(L===M.chart.hoverPoint){L.onMouseOut()}ak(L);bj(["graphic","tracker","group","dataLabel","connector","shadowGroup"],function(bp){if(L[bp]){L[bp].destroy()}});if(L.legendItem){L.series.chart.legend.destroyItem(L)}for(bo in L){L[bo]=null}},getLabelConfig:function(){var L=this;return{x:L.category,y:L.y,series:L.series,point:L,percentage:L.percentage,total:L.total||L.stackTotal}},select:function(bp,M){var L=this,bn=L.series,bo=bn.chart;bp=b(bp,!L.selected);L.firePointEvent(bp?"select":"unselect",{accumulate:M},function(){L.selected=bp;L.setState(bp&&x);if(!M){bj(bo.getSelectedPoints(),function(bq){if(bq.selected&&bq!==L){bq.selected=false;bq.setState(ac);bq.firePointEvent("unselect")}})}})},onMouseOver:function(){var L=this,bn=L.series.chart,bo=bn.tooltip,M=bn.hoverPoint;if(M&&M!==L){M.onMouseOut()}L.firePointEvent("mouseOver");if(bo&&!bo.shared){bo.refresh(L)}L.setState(W);bn.hoverPoint=L},onMouseOut:function(){var L=this;L.firePointEvent("mouseOut");L.setState();L.series.chart.hoverPoint=null},tooltipFormatter:function(bn){var L=this,M=L.series;return['<span style="color:'+M.color+'">',(L.name||M.name),"</span>: ",(!bn?("<b>x = "+(L.name||L.x)+",</b> "):""),"<b>",(!bn?"y = ":""),L.y,"</b>"].join("")},update:function(M,br,bp){var L=this,bn=L.series,bq=L.graphic,bo=bn.chart;br=b(br,true);L.firePointEvent("update",{options:M},function(){L.applyOptions(M);if(J(M)){bn.getAttribs();if(bq){bq.attr(L.pointAttr[bn.state])}}bn.isDirty=true;if(br){bo.redraw(bp)}})},remove:function(bq,bp){var L=this,M=L.series,bn=M.chart,bo=M.data;aE(bp,bn);bq=b(bq,true);L.firePointEvent("remove",null,function(){aS(bo,L);L.destroy();M.isDirty=true;if(bq){bn.redraw()}})},firePointEvent:function(bq,bo,M){var L=this,bp=this.series,bn=bp.options;if(bn.point.events[bq]||(L.options&&L.options.events&&L.options.events[bq])){this.importEvents()}if(bq==="click"&&bn.allowPointSelect){M=function(br){L.select(null,br.ctrlKey||br.metaKey||br.shiftKey)}}aT(this,bq,bo,M)},importEvents:function(){if(!this.hasImportedEvents){var L=this,M=z(L.series.options.point,L.options),bo=M.events,bn;L.events=bo;for(bn in bo){ah(L,bn,bo[bn])}this.hasImportedEvents=true}},setState:function(M){var bu=this,bq=bu.series,bv=bq.options.states,bn=bm[bq.type].marker&&bq.options.marker,bp=bn&&!bn.enabled,bo=bn&&bn.states[M],br=bo&&bo.enabled===false,bt=bq.stateMarkerGraphic,bs=bq.chart,L=bu.pointAttr;M=M||ac;if(M===bu.state||(bu.selected&&M!==x)||(bv[M]&&bv[M].enabled===false)||(M&&(br||(bp&&!bo.enabled)))){return}if(bu.graphic){bu.graphic.attr(L[M])}else{if(M){if(!bt){bq.stateMarkerGraphic=bt=bs.renderer.circle(0,0,L[M].r).attr(L[M]).add(bq.group)}bt.translate(bu.plotX,bu.plotY)}if(bt){bt[M?"show":"hide"]()}}bu.state=M}};var aw=function(){};aw.prototype={isCartesian:true,type:"line",pointClass:g,pointAttrToOptions:{stroke:"lineColor","stroke-width":"lineWidth",fill:"fillColor",r:"radius"},init:function(bq,M){var bp=this,bo,bn,L=bq.series.length;bp.chart=bq;M=bp.setOptions(M);aC(bp,{index:L,options:M,name:M.name||"Series "+(L+1),state:ac,pointAttr:{},visible:M.visible!==false,selected:M.selected===true});bn=M.events;for(bo in bn){ah(bp,bo,bn[bo])}if((bn&&bn.click)||(M.point&&M.point.events&&M.point.events.click)||M.allowPointSelect){bq.runTrackerClick=true}bp.getColor();bp.getSymbol();bp.setData(M.data,false)},autoIncrement:function(){var M=this,L=M.options,bn=M.xIncrement;bn=b(bn,L.pointStart,0);M.pointInterval=b(M.pointInterval,L.pointInterval,1);M.xIncrement=bn+M.pointInterval;return bn},cleanData:function(){var bo=this,bp=bo.chart,bq=bo.data,bs,bn,br=bp.smallestInterval,L,M;Q(bq,function(bu,bt){return(bu.x-bt.x)});if(bo.options.connectNulls){for(M=bq.length-1;M>=0;M--){if(bq[M].y===null&&bq[M-1]&&bq[M+1]){bq.splice(M,1)}}}for(M=bq.length-1;M>=0;M--){if(bq[M-1]){L=bq[M].x-bq[M-1].x;if(L>0&&(bn===aG||L<bn)){bn=L;bs=M}}}if(br===aG||bn<br){bp.smallestInterval=bn}bo.closestPoints=bs},getSegments:function(){var L=-1,M=[],bn=this.data;bj(bn,function(bo,bp){if(bo.y===null){if(bp>L+1){M.push(bn.slice(L+1,bp))}L=bp}else{if(bp===bn.length-1){M.push(bn.slice(L+1,bp+1))}}});this.segments=M},setOptions:function(bn){var L=this.chart.options.plotOptions,M=z(L[this.type],L.series,bn);return M},getColor:function(){var M=this.chart.options.colors,L=this.chart.counters;this.color=this.options.color||M[L.color++]||"#0000ff";L.wrapColor(M.length)},getSymbol:function(){var L=this.chart.options.symbols,M=this.chart.counters;this.symbol=this.options.marker.symbol||L[M.symbol++];M.wrapSymbol(L.length)},addPoint:function(bu,bt,M,bn){var bp=this,bo=bp.data,bs=bp.graph,L=bp.area,bq=bp.chart,br=(new bp.pointClass()).init(bp,bu);aE(bn,bq);if(bs&&M){bs.shift=M}if(L){L.shift=M;L.isArea=true}bt=b(bt,true);bo.push(br);if(M){bo[0].remove(false)}bp.getAttribs();bp.isDirty=true;if(bt){bq.redraw()}},setData:function(bp,br){var M=this,bq=M.data,bo=M.initialColor,bn=M.chart,L=(bq&&bq.length)||0;M.xIncrement=null;if(j(bo)){bn.counters.color=bo}bp=u(al(bp||[]),function(bs){return(new M.pointClass()).init(M,bs)});while(L--){bq[L].destroy()}M.data=bp;M.cleanData();M.getSegments();M.getAttribs();M.isDirty=true;bn.isDirtyBox=true;if(b(br,true)){bn.redraw(false)}},remove:function(bo,bn){var L=this,M=L.chart;bo=b(bo,true);if(!L.isRemoving){L.isRemoving=true;aT(L,"remove",null,function(){L.destroy();M.isDirtyLegend=M.isDirtyBox=true;if(bo){M.redraw(bn)}})}L.isRemoving=false},translate:function(){var bp=this,bt=bp.chart,bs=bp.options.stacking,br=bp.xAxis.categories,L=bp.yAxis,bo=bp.data,bq=bo.length;while(bq--){var bx=bo[bq],M=bx.x,bv=bx.y,bu=bx.low,bw=L.stacks[(bv<0?"-":"")+bp.stackKey],by,bn;bx.plotX=bp.xAxis.translate(M);if(bs&&bp.visible&&bw&&bw[M]){by=bw[M];bn=by.total;by.cum=bu=by.cum-bv;bv=bu+bv;if(bs==="percent"){bu=bn?bu*100/bn:0;bv=bn?bv*100/bn:0}bx.percentage=bn?bx.y*100/bn:0;bx.stackTotal=bn}if(j(bu)){bx.yBottom=L.translate(bu,0,1,0,1)}if(bv!==null){bx.plotY=L.translate(bv,0,1,0,1)}bx.clientX=bt.inverted?bt.plotHeight-bx.plotX:bx.plotX;bx.category=br&&br[bx.x]!==aG?br[bx.x]:bx.x}},setTooltipPoints:function(bo){var bq=this,br=bq.chart,M=br.inverted,bp=[],bt=w((M?br.plotTop:br.plotLeft)+br.plotSizeX),bs,bn,L=[];if(bo){bq.tooltipPoints=null}bj(bq.segments,function(bu){bp=bp.concat(bu)});if(bq.xAxis&&bq.xAxis.reversed){bp=bp.reverse()}bj(bp,function(bu,bv){bs=bp[bv-1]?bp[bv-1]._high+1:0;bn=bu._high=bp[bv+1]?(V((bu.plotX+(bp[bv+1]?bp[bv+1].plotX:bt))/2)):bt;while(bs<=bn){L[M?bt-bs++:bs++]=bu}});bq.tooltipPoints=L},onMouseOver:function(){var M=this,bn=M.chart,L=bn.hoverSeries;if(!a7&&bn.mouseIsDown){return}if(L&&L!==M){L.onMouseOut()}if(M.options.events.mouseOver){aT(M,"mouseOver")}if(M.tracker){M.tracker.toFront()}M.setState(W);bn.hoverSeries=M},onMouseOut:function(){var bn=this,M=bn.options,bo=bn.chart,bp=bo.tooltip,L=bo.hoverPoint;if(L){L.onMouseOut()}if(bn&&M.events.mouseOut){aT(bn,"mouseOut")}if(bp&&!M.stickyTracking){bp.hide()}bn.setState();bo.hoverSeries=null},animate:function(bp){var M=this,bn=M.chart,L=M.clipRect,bo=M.options.animation;if(bo&&!J(bo)){bo={}}if(bp){if(!L.isAnimating){L.attr("width",0);L.isAnimating=true}}else{L.animate({width:bn.plotSizeX},bo);this.animate=null}},drawPoints:function(){var bp=this,L,bo=bp.data,bs=bp.chart,M,bu,bq,bt,br,bn;if(bp.options.marker.enabled){bq=bo.length;while(bq--){bt=bo[bq];M=bt.plotX;bu=bt.plotY;bn=bt.graphic;if(bu!==aG&&!isNaN(bu)){L=bt.pointAttr[bt.selected?x:ac];br=L.r;if(bn){bn.animate({x:M,y:bu,r:br})}else{bt.graphic=bs.renderer.symbol(b(bt.marker&&bt.marker.symbol,bp.symbol),M,bu,br).attr(L).add(bp.group)}}}}},convertAttribs:function(bn,M,bs,br){var bp=this.pointAttrToOptions,L,bo,bq={};bn=bn||{};M=M||{};bs=bs||{};br=br||{};for(L in bp){bo=bp[L];bq[L]=b(bn[bo],M[L],bs[L],br[L])}return bq},getAttribs:function(){var bt=this,bn=bm[bt.type].marker?bt.options.marker:bt.options,bz=bn.states,M=bz[W],bu,bo=bt.color,bv={stroke:bo,fill:bo},bs=bt.data,br,bx,bq=[],L,bp=bt.pointAttrToOptions,bw,by;if(bt.options.marker){M.radius=M.radius||bn.radius+2;M.lineWidth=M.lineWidth||bn.lineWidth+1}else{M.color=M.color||y(M.color||bo).brighten(M.brightness).get()}bq[ac]=bt.convertAttribs(bn,bv);bj([W,x],function(bA){bq[bA]=bt.convertAttribs(bz[bA],bq[ac])});bt.pointAttr=bq;br=bs.length;while(br--){bx=bs[br];bn=(bx.options&&bx.options.marker)||bx.options;if(bn&&bn.enabled===false){bn.radius=0}bw=false;if(bx.options){for(by in bp){if(j(bn[bp[by]])){bw=true}}}if(bw){L=[];bz=bn.states||{};bu=bz[W]=bz[W]||{};if(!bt.options.marker){bu.color=y(bu.color||bx.options.color).brighten(bu.brightness||M.brightness).get()}L[ac]=bt.convertAttribs(bn,bq[ac]);L[W]=bt.convertAttribs(bz[W],bq[W],L[ac]);L[x]=bt.convertAttribs(bz[x],bq[x],L[ac])}else{L=bq}bx.pointAttr=L}},destroy:function(){var bn=this,bo=bn.chart,L=bn.clipRect,bp=/\/5[0-9\.]+ (Safari|Mobile)\//.test(e),M,bq;aT(bn,"destroy");ak(bn);if(bn.legendItem){bn.chart.legend.destroyItem(bn)}bj(bn.data,function(br){br.destroy()});if(L&&L!==bo.clipRect){bn.clipRect=L.destroy()}bj(["area","graph","dataLabelsGroup","group","tracker"],function(br){if(bn[br]){M=bp&&br==="group"?"hide":"destroy";bn[br][M]()}});if(bo.hoverSeries===bn){bo.hoverSeries=null}aS(bo.series,bn);for(bq in bn){delete bn[bq]}},drawDataLabels:function(){if(this.options.dataLabels.enabled){var bq=this,bz,bx,bp=bq.data,L=bq.options,bB=L.dataLabels,bw,bt=bq.dataLabelsGroup,bv=bq.chart,bu=bv.renderer,M=bv.inverted,bo=bq.type,bn,br=L.stacking,by=bo==="column"||bo==="bar",bs=bB.verticalAlign===null,bA=bB.y===null;if(by){if(br){if(bs){bB=z(bB,{verticalAlign:"middle"})}if(bA){bB=z(bB,{y:{top:14,middle:4,bottom:-6}[bB.verticalAlign]})}}else{if(bs){bB=z(bB,{verticalAlign:"top"})}}}if(!bt){bt=bq.dataLabelsGroup=bu.g("data-labels").attr({visibility:bq.visible?at:az,zIndex:6}).translate(bv.plotLeft,bv.plotTop).add()}else{bt.translate(bv.plotLeft,bv.plotTop)}bn=bB.color;if(bn==="auto"){bn=null}bB.style.color=b(bn,bq.color,"black");bj(bp,function(bI){var bC=bI.barX,bD=(bC&&bC+bI.barW/2)||bI.plotX||-999,bL=b(bI.plotY,-999),bK=bI.dataLabel,bF=bB.align,bH=bA?(bI.y>=0?-6:12):bB.y;bw=bB.formatter.call(bI.getLabelConfig());bz=(M?bv.plotWidth-bL:bD)+bB.x;bx=(M?bv.plotHeight-bD:bL)+bH;if(bo==="column"){bz+={left:-1,right:1}[bF]*bI.barW/2||0}if(M&&bI.y<0){bF="right";bz-=10}if(bK){if(M&&!bB.y){bx=bx+q(bK.styles.lineHeight)*0.9-bK.getBBox().height/2}bK.attr({text:bw}).animate({x:bz,y:bx})}else{if(j(bw)){bK=bI.dataLabel=bu.text(bw,bz,bx).attr({align:bF,rotation:bB.rotation,zIndex:1}).css(bB.style).add(bt);if(M&&!bB.y){bK.attr({y:bx+q(bK.styles.lineHeight)*0.9-bK.getBBox().height/2})}}}if(by&&L.stacking&&bK){var bJ=bI.barY,bE=bI.barW,bG=bI.barH;bK.align(bB,null,{x:M?bv.plotWidth-bJ-bG:bC,y:M?bv.plotHeight-bC-bE:bJ,width:M?bG:bE,height:M?bE:bG})}})}},drawGraph:function(){var bs=this,bn=bs.options,bw=bs.chart,M=bs.graph,bt=[],bp,bB=bs.area,br=bs.group,bA=bn.lineColor||bs.color,L=bn.lineWidth,bq=bn.dashStyle,bo,bz=bw.renderer,bu=bs.yAxis.getThreshold(bn.threshold||0),bC=/^area/.test(bs.type),bx=[],by=[],bv;bj(bs.segments,function(bF){bo=[];bj(bF,function(bH,bI){if(bs.getPointSpline){bo.push.apply(bo,bs.getPointSpline(bF,bH,bI))}else{bo.push(bI?aB:aA);if(bI&&bn.step){var bJ=bF[bI-1];bo.push(bH.plotX,bJ.plotY)}bo.push(bH.plotX,bH.plotY)}});if(bF.length>1){bt=bt.concat(bo)}else{bx.push(bF[0])}if(bC){var bG=[],bE,bD=bo.length;for(bE=0;bE<bD;bE++){bG.push(bo[bE])}if(bD===3){bG.push(aB,bo[1],bo[2])}if(bn.stacking&&bs.type!=="areaspline"){for(bE=bF.length-1;bE>=0;bE--){bG.push(bF[bE].plotX,bF[bE].yBottom)}}else{bG.push(aB,bF[bF.length-1].plotX,bu,aB,bF[0].plotX,bu)}by=by.concat(bG)}});bs.graphPath=bt;bs.singlePoints=bx;if(bC){bp=b(bn.fillColor,y(bs.color).setOpacity(bn.fillOpacity||0.75).get());if(bB){bB.animate({d:by})}else{bs.area=bs.chart.renderer.path(by).attr({fill:bp}).add(br)}}if(M){aY(M);M.animate({d:bt})}else{if(L){bv={stroke:bA,"stroke-width":L};if(bq){bv.dashstyle=bq}bs.graph=bz.path(bt).attr(bv).add(br).shadow(bn.shadow)}}},render:function(){var bo=this,bq=bo.chart,br,bs,bu=bo.options,M=bu.animation,bt=M&&bo.animate,L=bt?(M&&M.duration)||500:0,bn=bo.clipRect,bp=bq.renderer;if(!bn){bn=bo.clipRect=!bq.hasRendered&&bq.clipRect?bq.clipRect:bp.clipRect(0,0,bq.plotSizeX,bq.plotSizeY);if(!bq.clipRect){bq.clipRect=bn}}if(!bo.group){br=bo.group=bp.g("series");if(bq.inverted){bs=function(){br.attr({width:bq.plotWidth,height:bq.plotHeight}).invert()};bs();ah(bq,"resize",bs);ah(bo,"destroy",function(){ak(bq,"resize",bs)})}br.clip(bo.clipRect).attr({visibility:bo.visible?at:az,zIndex:bu.zIndex}).translate(bq.plotLeft,bq.plotTop).add(bq.seriesGroup)}bo.drawDataLabels();if(bt){bo.animate(true)}if(bo.drawGraph){bo.drawGraph()}bo.drawPoints();if(bo.options.enableMouseTracking!==false){bo.drawTracker()}if(bt){bo.animate()}setTimeout(function(){bn.isAnimating=false;br=bo.group;if(br&&bn!==bq.clipRect&&bn.renderer){br.clip((bo.clipRect=bq.clipRect));bn.destroy()}},L);bo.isDirty=false},redraw:function(){var L=this,M=L.chart,bn=L.group;if(bn){if(M.inverted){bn.attr({width:M.plotWidth,height:M.plotHeight})}bn.animate({translateX:M.plotLeft,translateY:M.plotTop})}L.translate();L.setTooltipPoints(true);L.render()},setState:function(bp){var bn=this,M=bn.options,bo=bn.graph,bq=M.states,L=M.lineWidth;bp=bp||ac;if(bn.state!==bp){bn.state=bp;if(bq[bp]&&bq[bp].enabled===false){return}if(bp){L=bq[bp].lineWidth||L+1}if(bo&&!bo.dashstyle){bo.attr({"stroke-width":L},bp?0:500)}}},setVisible:function(M,bw){var bp=this,bt=bp.chart,bs=bp.legendItem,bu=bp.group,by=bp.tracker,br=bp.dataLabelsGroup,L,bo,bn=bp.data,bv,bx=bt.options.chart.ignoreHiddenSeries,bq=bp.visible;bp.visible=M=M===aG?!bq:M;L=M?"show":"hide";if(bu){bu[L]()}if(by){by[L]()}else{bo=bn.length;while(bo--){bv=bn[bo];if(bv.tracker){bv.tracker[L]()}}}if(br){br[L]()}if(bs){bt.legend.colorizeItem(bp,M)}bp.isDirty=true;if(bp.options.stacking){bj(bt.series,function(bz){if(bz.options.stacking&&bz.visible){bz.isDirty=true}})}if(bx){bt.isDirtyBox=true}if(bw!==false){bt.redraw()}aT(bp,L)},show:function(){this.setVisible(true)},hide:function(){this.setVisible(false)},select:function(M){var L=this;L.selected=M=(M===aG)?!L.selected:M;if(L.checkbox){L.checkbox.checked=M}aT(L,M?"select":"unselect")},drawTracker:function(){var bq=this,bw=bq.options,L=[].concat(bq.graphPath),bt=L.length,bs=bq.chart,M=bs.options.tooltip.snap,bu=bq.tracker,bv=bw.cursor,br=bv&&{cursor:bv},bp=bq.singlePoints,bn,bo;if(bt){bo=bt+1;while(bo--){if(L[bo]===aA){L.splice(bo+1,0,L[bo+1]-M,L[bo+2],aB)}if((bo&&L[bo]===aA)||bo===bt){L.splice(bo,0,aB,L[bo-2]+M,L[bo-1])}}}for(bo=0;bo<bp.length;bo++){bn=bp[bo];L.push(aA,bn.plotX-M,bn.plotY,aB,bn.plotX+M,bn.plotY)}if(bu){bu.attr({d:L})}else{bq.tracker=bs.renderer.path(L).attr({isTracker:true,stroke:aL,fill:ao,"stroke-width":bw.lineWidth+2*M,visibility:bq.visible?at:az,zIndex:bw.zIndex||1}).on(a7?"touchstart":"mouseover",function(){if(bs.hoverSeries!==bq){bq.onMouseOver()}}).on("mouseout",function(){if(!bw.stickyTracking){bq.onMouseOut()}}).css(br).add(bs.trackerGroup)}}};var S=aU(aw);be.line=S;var s=aU(aw,{type:"area"});be.area=s;var A=aU(aw,{type:"spline",getPointSpline:function(M,by,bz){var bw=1.5,L=bw+1,bp=by.plotX,bn=by.plotY,bo=M[bz-1],bA=M[bz+1],bt,bs,bv,bu,bD;if(bz&&bz<M.length-1){var br=bo.plotX,bq=bo.plotY,bC=bA.plotX,bB=bA.plotY,bx;bt=(bw*bp+br)/L;bs=(bw*bn+bq)/L;bv=(bw*bp+bC)/L;bu=(bw*bn+bB)/L;bx=((bu-bs)*(bv-bp))/(bv-bt)+bn-bu;bs+=bx;bu+=bx;if(bs>bq&&bs>bn){bs=aV(bq,bn);bu=2*bn-bs}else{if(bs<bq&&bs<bn){bs=ai(bq,bn);bu=2*bn-bs}}if(bu>bB&&bu>bn){bu=aV(bB,bn);bs=2*bn-bu}else{if(bu<bB&&bu<bn){bu=ai(bB,bn);bs=2*bn-bu}}by.rightContX=bv;by.rightContY=bu}if(!bz){bD=[aA,bp,bn]}else{bD=["C",bo.rightContX||bo.plotX,bo.rightContY||bo.plotY,bt||bp,bs||bn,bp,bn];bo.rightContX=bo.rightContY=null}return bD}});be.spline=A;var a=aU(A,{type:"areaspline"});be.areaspline=a;var aQ=aU(aw,{type:"column",pointAttrToOptions:{stroke:"borderColor","stroke-width":"borderWidth",fill:"color",r:"borderRadius"},init:function(){aw.prototype.init.apply(this,arguments);var L=this,M=L.chart;M.hasColumn=true;if(M.hasRendered){bj(M.series,function(bn){if(bn.type===L.type){bn.isDirty=true}})}},translate:function(){var bv=this,by=bv.chart,bp=bv.options,bn=bp.stacking,bJ=bp.borderWidth,bF=0,L=bv.xAxis.reversed,bB=bv.xAxis.categories,bH={},M,bG;aw.prototype.translate.apply(bv);bj(by.series,function(bK){if(bK.type===bv.type&&bK.visible){if(bK.options.stacking){M=bK.stackKey;if(bH[M]===aG){bH[M]=bF++}bG=bH[M]}else{bG=bF++}bK.columnIndex=bG}});var bI=bv.data,bq=bv.closestPoints,br=bi(bI[1]?bI[bq].plotX-bI[bq-1].plotX:by.plotSizeX/((bB&&bB.length)||1)),bD=br*bp.groupPadding,bw=br-2*bD,bC=bw/bF,bA=bp.pointWidth,bu=j(bA)?(bC-bA)/2:bC*bp.pointPadding,bs=aV(b(bA,bC-2*bu),1),bz=(L?bF-bv.columnIndex:bv.columnIndex)||0,bE=bu+(bD+bz*bC-(br/2))*(L?-1:1),bo=bp.threshold||0,bx=bv.yAxis.getThreshold(bo),bt=b(bp.minPointLength,5);bj(bI,function(bQ){var bS=bQ.plotY,bN=bQ.yBottom||bx,bK=bQ.plotX+bE,bR=bl(ai(bS,bN)),bO=bl(aV(bS,bN)-bR),bP=bv.yAxis.stacks[(bQ.y<0?"-":"")+bv.stackKey],bM,bL;if(bn&&bv.visible&&bP&&bP[bQ.x]){bP[bQ.x].setOffset(bE,bs)}if(bi(bO)<bt){if(bt){bO=bt;bR=bi(bR-bx)>bt?bN-bt:bx-(bS<=bx?bt:0)}bM=bR-3}aC(bQ,{barX:bK,barY:bR,barW:bs,barH:bO});bQ.shapeType="rect";bL=aC(by.renderer.Element.prototype.crisp.apply({},[bJ,bK,bR,bs,bO]),{r:bp.borderRadius});if(bJ%2){bL.y-=1;bL.height+=1}bQ.shapeArgs=bL;bQ.trackerArgs=j(bM)&&z(bQ.shapeArgs,{height:aV(6,bO+3),y:bM})})},getSymbol:function(){},drawGraph:function(){},drawPoints:function(){var bn=this,L=bn.options,bo=bn.chart.renderer,bp,M;bj(bn.data,function(bq){var br=bq.plotY;if(br!==aG&&!isNaN(br)&&bq.y!==null){bp=bq.graphic;M=bq.shapeArgs;if(bp){aY(bp);bp.animate(M)}else{bq.graphic=bo[bq.shapeType](M).attr(bq.pointAttr[bq.selected?x:ac]).add(bn.group).shadow(L.shadow)}}})},drawTracker:function(){var M=this,bq=M.chart,bp=bq.renderer,L,br,bo=+new Date(),bu=M.options,bs=bu.cursor,bn=bs&&{cursor:bs},bt;bj(M.data,function(bv){br=bv.tracker;L=bv.trackerArgs||bv.shapeArgs;delete L.strokeWidth;if(bv.y!==null){if(br){br.attr(L)}else{bv.tracker=bp[bv.shapeType](L).attr({isTracker:bo,fill:aL,visibility:M.visible?at:az,zIndex:bu.zIndex||1}).on(a7?"touchstart":"mouseover",function(bw){bt=bw.relatedTarget||bw.fromElement;if(bq.hoverSeries!==M&&ag(bt,"isTracker")!==bo){M.onMouseOver()}bv.onMouseOver()}).on("mouseout",function(bw){if(!bu.stickyTracking){bt=bw.relatedTarget||bw.toElement;if(ag(bt,"isTracker")!==bo){M.onMouseOut()}}}).css(bn).add(bv.group||bq.trackerGroup)}}})},animate:function(bn){var L=this,M=L.data;if(!bn){bj(M,function(bo){var bq=bo.graphic,bp=bo.shapeArgs;if(bq){bq.attr({height:0,y:L.yAxis.translate(0,0,1)});bq.animate({height:bp.height,y:bp.y},L.options.animation)}});L.animate=null}},remove:function(){var L=this,M=L.chart;if(M.hasRendered){bj(M.series,function(bn){if(bn.type===L.type){bn.isDirty=true}})}aw.prototype.remove.apply(L,arguments)}});be.column=aQ;var af=aU(aQ,{type:"bar",init:function(L){L.inverted=this.inverted=true;aQ.prototype.init.apply(this,arguments)}});be.bar=af;var X=aU(aw,{type:"scatter",translate:function(){var L=this;aw.prototype.translate.apply(L);bj(L.data,function(M){M.shapeType="circle";M.shapeArgs={x:M.plotX,y:M.plotY,r:L.chart.options.tooltip.snap}})},drawTracker:function(){var M=this,bn=M.options.cursor,L=bn&&{cursor:bn},bo;bj(M.data,function(bp){bo=bp.graphic;if(bo){bo.attr({isTracker:true}).on("mouseover",function(){M.onMouseOver();bp.onMouseOver()}).on("mouseout",function(){if(!M.options.stickyTracking){M.onMouseOut()}}).css(L)}})},cleanData:function(){}});be.scatter=X;var ad=aU(g,{init:function(){g.prototype.init.apply(this,arguments);var L=this,M;aC(L,{visible:L.visible!==false,name:b(L.name,"Slice")});M=function(){L.slice()};ah(L,"select",M);ah(L,"unselect",M);return L},setVisible:function(br){var L=this,bp=L.series.chart,bq=L.tracker,bo=L.dataLabel,M=L.connector,bn=L.shadowGroup,bs;L.visible=br=br===aG?!L.visible:br;bs=br?"show":"hide";L.group[bs]();if(bq){bq[bs]()}if(bo){bo[bs]()}if(M){M[bs]()}if(bn){bn[bs]()}if(L.legendItem){bp.legend.colorizeItem(L,br)}},slice:function(bn,bs,bq){var L=this,bo=L.series,bp=bo.chart,M=L.slicedTranslation,br;aE(bq,bp);bs=b(bs,true);bn=L.sliced=j(bn)?bn:!L.sliced;br={translateX:(bn?M[0]:bp.plotLeft),translateY:(bn?M[1]:bp.plotTop)};L.group.animate(br);if(L.shadowGroup){L.shadowGroup.animate(br)}}});var l=aU(aw,{type:"pie",isCartesian:false,pointClass:ad,pointAttrToOptions:{stroke:"borderColor","stroke-width":"borderWidth",fill:"color"},getColor:function(){this.initialColor=this.chart.counters.color},animate:function(){var L=this,M=L.data;bj(M,function(bo){var bq=bo.graphic,bp=bo.shapeArgs,bn=-o/2;if(bq){bq.attr({r:0,start:bn,end:bn});bq.animate({r:bp.r,start:bp.start,end:bp.end},L.options.animation)}});L.animate=null},translate:function(){var bG=0,bx=this,bA=-0.25,bD=1000,M=bx.options,bo=M.slicedOffset,bw=bo+M.borderWidth,bv=M.center.concat([M.size,M.innerSize||0]),bz=bx.chart,bu=bz.plotWidth,bC=bz.plotHeight,bp,bn,bE,bF=bx.data,by=2*o,bs,bB=ai(bu,bC),L,bt,br,bq=M.dataLabels.distance;bv=u(bv,function(bI,bH){L=/%$/.test(bI);return L?[bu,bC,bB,bB][bH]*q(bI)/100:bI});bx.getX=function(bI,bH){bE=aa.asin((bI-bv[1])/(bv[2]/2+bq));return bv[0]+(bH?-1:1)*(a1(bE)*(bv[2]/2+bq))};bx.center=bv;bj(bF,function(bH){bG+=bH.y});bj(bF,function(bH){bs=bG?bH.y/bG:0;bp=w(bA*by*bD)/bD;bA+=bs;bn=w(bA*by*bD)/bD;bH.shapeType="arc";bH.shapeArgs={x:bv[0],y:bv[1],r:bv[2]/2,innerR:bv[3]/2,start:bp,end:bn};bE=(bn+bp)/2;bH.slicedTranslation=u([a1(bE)*bo+bz.plotLeft,G(bE)*bo+bz.plotTop],w);bt=a1(bE)*bv[2]/2;br=G(bE)*bv[2]/2;bH.tooltipPos=[bv[0]+bt*0.7,bv[1]+br*0.7];bH.labelPos=[bv[0]+bt+a1(bE)*bq,bv[1]+br+G(bE)*bq,bv[0]+bt+a1(bE)*bw,bv[1]+br+G(bE)*bw,bv[0]+bt,bv[1]+br,bq<0?"center":bE<by/4?"left":"right",bE];bH.percentage=bs*100;bH.total=bG});this.setTooltipPoints()},render:function(){var L=this;this.drawPoints();if(L.options.enableMouseTracking!==false){L.drawTracker()}this.drawDataLabels();if(L.options.animation&&L.animate){L.animate()}L.isDirty=false},drawPoints:function(){var bp=this,br=bp.chart,bq=br.renderer,bn,L,bt,bs=bp.options.shadow,M,bo;bj(bp.data,function(bu){L=bu.graphic;bo=bu.shapeArgs;bt=bu.group;M=bu.shadowGroup;if(bs&&!M){M=bu.shadowGroup=bq.g("shadow").attr({zIndex:4}).add()}if(!bt){bt=bu.group=bq.g("point").attr({zIndex:5}).add()}bn=bu.sliced?bu.slicedTranslation:[br.plotLeft,br.plotTop];bt.translate(bn[0],bn[1]);if(M){M.translate(bn[0],bn[1])}if(L){L.animate(bo)}else{bu.graphic=bq.arc(bo).attr(aC(bu.pointAttr[ac],{"stroke-linejoin":"round"})).add(bu.group).shadow(bs,M)}if(bu.visible===false){bu.setVisible(false)}})},drawDataLabels:function(){var br=this,bT=br.data,bJ,bU=br.chart,bG=br.options.dataLabels,bo=b(bG.connectorPadding,10),bE=b(bG.connectorWidth,1),L,bQ,bF=b(bG.softConnector,true),bx=bG.distance,bq=br.center,bO=bq[2]/2,M=bq[1],bv=bx>0,bp,bw,bN,bI=[[],[]],bM,bL,by,bt,bS,bR=2,bP;if(!bG.enabled){return}aw.prototype.drawDataLabels.apply(br);bj(bT,function(bX){if(bX.dataLabel){bI[bX.labelPos[7]<o/2?0:1].push(bX)}});bI[1].reverse();bS=function(bY,bX){return bX.y-bY.y};bN=bI[0][0]&&bI[0][0].dataLabel&&q(bI[0][0].dataLabel.styles.lineHeight);while(bR--){var bV=[],bs,bC=[],bK=bI[bR],bH,bA=bK.length,bW;for(bH=M-bO-bx;bH<=M+bO+bx;bH+=bN){bV.push(bH)}bs=bV.length;if(bA>bs){bt=[].concat(bK);bt.sort(bS);bP=bA;while(bP--){bt[bP].rank=bP}bP=bA;while(bP--){if(bK[bP].rank>=bs){bK.splice(bP,1)}}bA=bK.length}for(bP=0;bP<bA;bP++){bJ=bK[bP];bw=bJ.labelPos;var bz=9999,bD,bB;for(bB=0;bB<bs;bB++){bD=bi(bV[bB]-bw[1]);if(bD<bz){bz=bD;bW=bB}}if(bW<bP&&bV[bP]!==null){bW=bP}else{if(bs<bA-bP+bW&&bV[bP]!==null){bW=bs-bA+bP;while(bV[bW]===null){bW++}}else{while(bV[bW]===null){bW++}}}bC.push({i:bW,y:bV[bW]});bV[bW]=null}bC.sort(bS);for(bP=0;bP<bA;bP++){bJ=bK[bP];bw=bJ.labelPos;bp=bJ.dataLabel;var bu=bC.pop(),bn=bw[1];by=bJ.visible===false?az:at;bW=bu.i;bL=bu.y;if((bn>bL&&bV[bW+1]!==null)||(bn<bL&&bV[bW-1]!==null)){bL=bn}bM=br.getX(bW===0||bW===bV.length-1?bn:bL,bR);bp.attr({visibility:by,align:bw[6]})[bp.moved?"animate":"attr"]({x:bM+bG.x+({left:bo,right:-bo}[bw[6]]||0),y:bL+bG.y});bp.moved=true;if(bv&&bE){L=bJ.connector;bQ=bF?[aA,bM+(bw[6]==="left"?5:-5),bL,"C",bM,bL,2*bw[2]-bw[4],2*bw[3]-bw[5],bw[2],bw[3],aB,bw[4],bw[5]]:[aA,bM+(bw[6]==="left"?5:-5),bL,aB,bw[2],bw[3],aB,bw[4],bw[5]];if(L){L.animate({d:bQ});L.attr("visibility",by)}else{bJ.connector=L=br.chart.renderer.path(bQ).attr({"stroke-width":bE,stroke:bG.connectorColor||bJ.color||"#606060",visibility:by,zIndex:3}).translate(bU.plotLeft,bU.plotTop).add()}}}}},drawTracker:aQ.prototype.drawTracker,getSymbol:function(){}});be.pie=l;aJ.Highcharts={Chart:bb,dateFormat:aH,pathAnim:k,getOptions:I,numberFormat:i,Point:g,Color:y,Renderer:aM,seriesTypes:be,setOptions:aI,Series:aw,addEvent:ah,createElement:ay,discardElement:Y,css:aD,each:bj,extend:aC,map:u,merge:z,pick:b,extendClass:aU,product:"Highcharts",version:"2.1.6"}}());
