text: (function(){function e(e){for(var t=e.length;t--;)"number"==typeof e[t]&&(e[t]=Math.round(e[t])-.5);return e}var t=Highcharts,n=t.Chart,i=t.addEvent,r=t.removeEvent,o=t.createElement,a=t.discardElement,s=t.css,l=t.merge,c=t.each,u=t.extend,d=Math.max,p=document,h=window,f=void 0!==p.documentElement.ontouchstart,g=t.getOptions();u(g.lang,{downloadPNG:"Download PNG image",downloadJPEG:"Download JPEG image",downloadPDF:"Download PDF document",downloadSVG:"Download SVG vector image",exportButtonTitle:"Export to raster or vector image",printButtonTitle:"Print the chart"}),g.navigation={menuStyle:{border:"1px solid #A0A0A0",background:"#FFFFFF"},menuItemStyle:{padding:"0 5px",background:"none",color:"#303030",fontSize:f?"14px":"11px"},menuItemHoverStyle:{background:"#4572A5",color:"#FFFFFF"},buttonOptions:{align:"right",backgroundColor:{linearGradient:[0,0,0,20],stops:[[.4,"#F7F7F7"],[.6,"#E3E3E3"]]},borderColor:"#B0B0B0",borderRadius:3,borderWidth:1,height:20,hoverBorderColor:"#909090",hoverSymbolFill:"#81A7CF",hoverSymbolStroke:"#4572A5",symbolFill:"#E0E0E0",symbolStroke:"#A0A0A0",symbolX:11.5,symbolY:10.5,verticalAlign:"top",width:24,y:10}},g.exporting={type:"image/png",url:"http://export.highcharts.com/",width:800,buttons:{exportButton:{symbol:"exportIcon",x:-10,symbolFill:"#A8BF77",hoverSymbolFill:"#768F3E",_id:"exportButton",_titleKey:"exportButtonTitle",menuItems:[{textKey:"downloadPNG",onclick:function(){this.exportChart()}},{textKey:"downloadJPEG",onclick:function(){this.exportChart({type:"image/jpeg"})}},{textKey:"downloadPDF",onclick:function(){this.exportChart({type:"application/pdf"})}},{textKey:"downloadSVG",onclick:function(){this.exportChart({type:"image/svg+xml"})}}]},printButton:{symbol:"printIcon",x:-36,symbolFill:"#B5C9DF",hoverSymbolFill:"#779ABF",_id:"printButton",_titleKey:"printButtonTitle",onclick:function(){this.print()}}}},u(n.prototype,{getSVG:function(e){var n,i,r,s=this,d=l(s.options,e);return p.createElementNS||(p.createElementNS=function(e,n){var i=p.createElement(n);return i.getBBox=function(){return t.Renderer.prototype.Element.prototype.getBBox.apply({element:i})},i}),e=o("div",null,{position:"absolute",top:"-9999em",width:s.chartWidth+"px",height:s.chartHeight+"px"},p.body),u(d.chart,{renderTo:e,forExport:!0}),d.exporting.enabled=!1,d.chart.plotBackgroundImage=null,d.series=[],c(s.series,function(e){r=l(e.options,{animation:!1,showCheckbox:!1,visible:e.visible}),r.isInternal||(r&&r.marker&&/^url\(/.test(r.marker.symbol)&&(r.marker.symbol="circle"),d.series.push(r))}),n=new Highcharts.Chart(d),c(["xAxis","yAxis"],function(e){c(s[e],function(t,i){var r=n[e][i],o=t.getExtremes(),a=o.userMin,o=o.userMax;(void 0!==a||void 0!==o)&&r.setExtremes(a,o,!0,!1)})}),i=n.container.innerHTML,d=null,n.destroy(),a(e),i=i.replace(/zIndex="[^"]+"/g,"").replace(/isShadow="[^"]+"/g,"").replace(/symbolName="[^"]+"/g,"").replace(/jQuery[0-9]+="[^"]+"/g,"").replace(/isTracker="[^"]+"/g,"").replace(/url\([^#]+#/g,"url(#").replace(/<svg /,'<svg xmlns:xlink="http://www.w3.org/1999/xlink" ').replace(/ href=/g," xlink:href=").replace(/\n/," ").replace(/<\/svg>.*?$/,"</svg>").replace(/&nbsp;/g," ").replace(/&shy;/g,"­").replace(/<IMG /g,"<image ").replace(/height=([^" ]+)/g,'height="$1"').replace(/width=([^" ]+)/g,'width="$1"').replace(/hc-svg-href="([^"]+)">/g,'xlink:href="$1"/>').replace(/id=([^" >]+)/g,'id="$1"').replace(/class=([^" ]+)/g,'class="$1"').replace(/ transform /g," ").replace(/:(path|rect)/g,"$1").replace(/style="([^"]+)"/g,function(e){return e.toLowerCase()}),i=i.replace(/(url\(#highcharts-[0-9]+)&quot;/g,"$1").replace(/&quot;/g,"'"),2===i.match(/ xmlns="/g).length&&(i=i.replace(/xmlns="[^"]+"/,"")),i},exportChart:function(e,t){var n,i=this.getSVG(l(this.options.exporting.chartOptions,t)),e=l(this.options.exporting,e);n=o("form",{method:"post",action:e.url,enctype:"multipart/form-data"},{display:"none"},p.body),c(["filename","type","width","svg"],function(t){o("input",{type:"hidden",name:t,value:{filename:e.filename||"chart",type:e.type,width:e.width,svg:i}[t]},null,n)}),n.submit(),a(n)},print:function(){var e=this,t=e.container,n=[],i=t.parentNode,r=p.body,o=r.childNodes;e.isPrinting||(e.isPrinting=!0,c(o,function(e,t){1===e.nodeType&&(n[t]=e.style.display,e.style.display="none")}),r.appendChild(t),h.print(),setTimeout(function(){i.appendChild(t),c(o,function(e,t){1===e.nodeType&&(e.style.display=n[t])}),e.isPrinting=!1},1e3))},contextMenu:function(e,t,n,r,a,l){var p,h,g=this,m=g.options.navigation,v=m.menuItemStyle,b=g.chartWidth,y=g.chartHeight,x="cache-"+e,_=g[x],k=d(a,l);_||(g[x]=_=o("div",{className:"highcharts-"+e},{position:"absolute",zIndex:1e3,padding:k+"px"},g.container),p=o("div",null,u({MozBoxShadow:"3px 3px 10px #888",WebkitBoxShadow:"3px 3px 10px #888",boxShadow:"3px 3px 10px #888"},m.menuStyle),_),h=function(){s(_,{display:"none"})},i(_,"mouseleave",h),c(t,function(e){if(e){var t=o("div",{onmouseover:function(){s(this,m.menuItemHoverStyle)},onmouseout:function(){s(this,v)},innerHTML:e.text||g.options.lang[e.textKey]},u({cursor:"pointer"},v),p);t[f?"ontouchstart":"onclick"]=function(){h(),e.onclick.apply(g,arguments)},g.exportDivElements.push(t)}}),g.exportDivElements.push(p,_),g.exportMenuWidth=_.offsetWidth,g.exportMenuHeight=_.offsetHeight),e={display:"block"},n+g.exportMenuWidth>b?e.right=b-n-a-k+"px":e.left=n-k+"px",r+l+g.exportMenuHeight>y?e.bottom=y-r-k+"px":e.top=r+l-k+"px",s(_,e)},addButton:function(e){function t(){i.attr(g),n.attr(f)}var n,i,r,o=this,a=o.renderer,s=l(o.options.navigation.buttonOptions,e),c=s.onclick,d=s.menuItems,p=s.width,h=s.height,e=s.borderWidth,f={stroke:s.borderColor},g={stroke:s.symbolStroke,fill:s.symbolFill},m=s.symbolSize||12;o.exportDivElements||(o.exportDivElements=[],o.exportSVGElements=[]),s.enabled!==!1&&(n=a.rect(0,0,p,h,s.borderRadius,e).align(s,!0).attr(u({fill:s.backgroundColor,"stroke-width":e,zIndex:19},f)).add(),r=a.rect(0,0,p,h,0).align(s).attr({id:s._id,fill:"rgba(255, 255, 255, 0.001)",title:o.options.lang[s._titleKey],zIndex:21}).css({cursor:"pointer"}).on("mouseover",function(){i.attr({stroke:s.hoverSymbolStroke,fill:s.hoverSymbolFill}),n.attr({stroke:s.hoverBorderColor})}).on("mouseout",t).on("click",t).add(),d&&(c=function(){t();var e=r.getBBox();o.contextMenu("export-menu",d,e.x,e.y,p,h)}),r.on("click",function(){c.apply(o,arguments)}),i=a.symbol(s.symbol,s.symbolX-m/2,s.symbolY-m/2,m,m).align(s,!0).attr(u(g,{"stroke-width":s.symbolStrokeWidth||1,zIndex:20})).add(),o.exportSVGElements.push(n,r,i))},destroyExport:function(){var e,t;for(e=0;this.exportSVGElements.length>e;e++)t=this.exportSVGElements[e],t.onclick=t.ontouchstart=null,this.exportSVGElements[e]=t.destroy();for(e=0;this.exportDivElements.length>e;e++)t=this.exportDivElements[e],r(t,"mouseleave"),this.exportDivElements[e]=t.onmouseout=t.onmouseover=t.ontouchstart=t.onclick=null,a(t)}}),t.Renderer.prototype.symbols.exportIcon=function(t,n,i,r){return e(["M",t,n+i,"L",t+i,n+r,t+i,n+.8*r,t,n+.8*r,"Z","M",t+.5*i,n+.8*r,"L",t+.8*i,n+.4*r,t+.4*i,n+.4*r,t+.4*i,n,t+.6*i,n,t+.6*i,n+.4*r,t+.2*i,n+.4*r,"Z"])},t.Renderer.prototype.symbols.printIcon=function(t,n,i,r){return e(["M",t,n+.7*r,"L",t+i,n+.7*r,t+i,n+.4*r,t,n+.4*r,"Z","M",t+.2*i,n+.4*r,"L",t+.2*i,n,t+.8*i,n,t+.8*i,n+.4*r,"Z","M",t+.2*i,n+.7*r,"L",t,n+r,t+i,n+r,t+.8*i,n+.7*r,"Z"])},n.prototype.callbacks.push(function(e){var t,n=e.options.exporting,r=n.buttons;if(n.enabled!==!1){for(t in r)e.addButton(r[t]);i(e,"destroy",e.destroyExport)}})})();