/* nvd3 version 1.8.1 (https://github.com/novus/nvd3) 2015-06-17 */
!function(){vara={};a.dev=!1,a.tooltip=a.tooltip||{},a.utils=a.utils||{},a.models=a.models||{},a.charts={},a.logs={},a.dom={},a.dispatch=d3.dispatch("render_start","render_end"),Function.prototype.bind||(Function.prototype.bind=function(a){if("function"!=typeofthis)thrownewTypeError("Function.prototype.bind - what is trying to be bound is not callable");varb=Array.prototype.slice.call(arguments,1),c=this,d=function(){},e=function(){returnc.apply(thisinstanceofd&&a?this:a,b.concat(Array.prototype.slice.call(arguments)))};returnd.prototype=this.prototype,e.prototype=newd,e}),a.dev&&(a.dispatch.on("render_start",function(){a.logs.startTime=+newDate}),a.dispatch.on("render_end",function(){a.logs.endTime=+newDate,a.logs.totalTime=a.logs.endTime-a.logs.startTime,a.log("total",a.logs.totalTime)})),a.log=function(){if(a.dev&&window.console&&console.log&&console.log.apply)console.log.apply(console,arguments);elseif(a.dev&&window.console&&"function"==typeofconsole.log&&Function.prototype.bind){varb=Function.prototype.bind.call(console.log,console);b.apply(console,arguments)}returnarguments[arguments.length-1]},a.deprecated=function(a,b){console&&console.warn&&console.warn("nvd3 warning: `"+a+"` has been deprecated. ",b||"")},a.render=function(b){b=b||1,a.render.active=!0,a.dispatch.render_start();varc=function(){for(vard,e,f=0;b>f&&(e=a.render.queue[f]);f++)d=e.generate(),typeofe.callback==typeofFunction&&e.callback(d);a.render.queue.splice(0,f),a.render.queue.length?setTimeout(c):(a.dispatch.render_end(),a.render.active=!1)};setTimeout(c)},a.render.active=!1,a.render.queue=[],a.addGraph=function(b){typeofarguments[0]==typeofFunction&&(b={generate:arguments[0],callback:arguments[1]}),a.render.queue.push(b),a.render.active||a.render()},"undefined"!=typeofmodule&&"undefined"!=typeofexports&&(module.exports=a),"undefined"!=typeofwindow&&(window.nv=a),a.dom.write=function(a){returnvoid0!==window.fastdom?fastdom.write(a):a()},a.dom.read=function(a){returnvoid0!==window.fastdom?fastdom.read(a):a()},a.interactiveGuideline=function(){"use strict";functionb(l){l.each(function(l){functionm(){vara=d3.mouse(this),d=a[0],e=a[1],i=!0,j=!1;if(k&&(d=d3.event.offsetX,e=d3.event.offsetY,"svg"!==d3.event.target.tagName&&(i=!1),d3.event.target.className.baseVal.match("nv-legend")&&(j=!0)),i&&(d-=f.left,e-=f.top),0>d||0>e||d>o||e>p||d3.event.relatedTarget&&void0===d3.event.relatedTarget.ownerSVGElement||j){if(k&&d3.event.relatedTarget&&void0===d3.event.relatedTarget.ownerSVGElement&&(void0===d3.event.relatedTarget.className||d3.event.relatedTarget.className.match(c.nvPointerEventsClass)))return;returnh.elementMouseout({mouseX:d,mouseY:e}),b.renderGuideLine(null),voidc.hidden(!0)}c.hidden(!1);varl=g.invert(d);h.elementMousemove({mouseX:d,mouseY:e,pointXValue:l}),"dblclick"===d3.event.type&&h.elementDblclick({mouseX:d,mouseY:e,pointXValue:l}),"click"===d3.event.type&&h.elementClick({mouseX:d,mouseY:e,pointXValue:l})}varn=d3.select(this),o=d||960,p=e||400,q=n.selectAll("g.nv-wrap.nv-interactiveLineLayer").data([l]),r=q.enter().append("g").attr("class"," nv-wrap nv-interactiveLineLayer");r.append("g").attr("class","nv-interactiveGuideLine"),j&&(j.on("touchmove",m).on("mousemove",m,!0).on("mouseout",m,!0).on("dblclick",m).on("click",m),b.guideLine=null,b.renderGuideLine=function(c){i&&(b.guideLine&&b.guideLine.attr("x1")===c||a.dom.write(function(){varb=q.select(".nv-interactiveGuideLine").selectAll("line").data(null!=c?[a.utils.NaNtoZero(c)]:[],String);b.enter().append("line").attr("class","nv-guideline").attr("x1",function(a){returna}).attr("x2",function(a){returna}).attr("y1",p).attr("y2",0),b.exit().remove()}))})})}varc=a.models.tooltip();c.duration(0).hideDelay(0)._isInteractiveLayer(!0).hidden(!1);vard=null,e=null,f={left:0,top:0},g=d3.scale.linear(),h=d3.dispatch("elementMousemove","elementMouseout","elementClick","elementDblclick"),i=!0,j=null,k="ActiveXObject"inwindow;returnb.dispatch=h,b.tooltip=c,b.margin=function(a){returnarguments.length?(f.top="undefined"!=typeofa.top?a.top:f.top,f.left="undefi
}).filter(function(a,b){return!z[b].disabled})),L.select(".nv-distWrap").append("g").attr("class","nv-distributionY"),M.select(".nv-distributionY").attr("transform","translate("+(v?G:-h.size())+",0)").datum(z.filter(function(a){return!a.disabled})).call(h)),f.dispatch.on("stateChange",function(a){for(varcina)w[c]=a[c];y.stateChange(w),b.update()}),y.on("changeState",function(a){"undefined"!=typeofa.disabled&&(z.forEach(function(b,c){b.disabled=a.disabled[c]}),w.disabled=a.disabled),b.update()}),c.dispatch.on("elementMouseout.tooltip",function(a){i.hidden(!0),m.select(".nv-chart-"+c.id()+" .nv-series-"+a.seriesIndex+" .nv-distx-"+a.pointIndex).attr("y1",0),m.select(".nv-chart-"+c.id()+" .nv-series-"+a.seriesIndex+" .nv-disty-"+a.pointIndex).attr("x2",h.size())}),c.dispatch.on("elementMouseover.tooltip",function(a){m.select(".nv-series-"+a.seriesIndex+" .nv-distx-"+a.pointIndex).attr("y1",a.pos.top-H-j.top),m.select(".nv-series-"+a.seriesIndex+" .nv-disty-"+a.pointIndex).attr("x2",a.pos.left+g.size()-j.left),i.position(a.pos).data(a).hidden(!1)}),B=o.copy(),C=p.copy()}),D.renderEnd("scatter with line immediate"),b}varc=a.models.scatter(),d=a.models.axis(),e=a.models.axis(),f=a.models.legend(),g=a.models.distribution(),h=a.models.distribution(),i=a.models.tooltip(),j={top:30,right:20,bottom:50,left:75},k=null,l=null,m=null,n=a.utils.defaultColor(),o=c.xScale(),p=c.yScale(),q=!1,r=!1,s=!0,t=!0,u=!0,v=!1,w=a.utils.state(),x=null,y=d3.dispatch("stateChange","changeState","renderEnd"),z=null,A=250;c.xScale(o).yScale(p),d.orient("bottom").tickPadding(10),e.orient(v?"right":"left").tickPadding(10),g.axis("x"),h.axis("y"),i.headerFormatter(function(a,b){returnd.tickFormat()(a,b)}).valueFormatter(function(a,b){returne.tickFormat()(a,b)});varB,C,D=a.utils.renderWatch(y,A),E=function(a){returnfunction(){return{active:a.map(function(a){return!a.disabled})}}},F=function(a){returnfunction(b){void0!==b.active&&a.forEach(function(a,c){a.disabled=!b.active[c]})}};returnb.dispatch=y,b.scatter=c,b.legend=f,b.xAxis=d,b.yAxis=e,b.distX=g,b.distY=h,b.tooltip=i,b.options=a.utils.optionsFunc.bind(b),b._options=Object.create({},{width:{get:function(){returnk},set:function(a){k=a}},height:{get:function(){returnl},set:function(a){l=a}},container:{get:function(){returnm},set:function(a){m=a}},showDistX:{get:function(){returnq},set:function(a){q=a}},showDistY:{get:function(){returnr},set:function(a){r=a}},showLegend:{get:function(){returns},set:function(a){s=a}},showXAxis:{get:function(){returnt},set:function(a){t=a}},showYAxis:{get:function(){returnu},set:function(a){u=a}},defaultState:{get:function(){returnx},set:function(a){x=a}},noData:{get:function(){returnz},set:function(a){z=a}},duration:{get:function(){returnA},set:function(a){A=a}},tooltips:{get:function(){returni.enabled()},set:function(b){a.deprecated("tooltips","use chart.tooltip.enabled() instead"),i.enabled(!!b)}},tooltipContent:{get:function(){returni.contentGenerator()},set:function(b){a.deprecated("tooltipContent","use chart.tooltip.contentGenerator() instead"),i.contentGenerator(b)}},tooltipXContent:{get:function(){returni.contentGenerator()},set:function(){a.deprecated("tooltipContent","This option is removed, put values into main tooltip.")}},tooltipYContent:{get:function(){returni.contentGenerator()},set:function(){a.deprecated("tooltipContent","This option is removed, put values into main tooltip.")}},margin:{get:function(){returnj},set:function(a){j.top=void0!==a.top?a.top:j.top,j.right=void0!==a.right?a.right:j.right,j.bottom=void0!==a.bottom?a.bottom:j.bottom,j.left=void0!==a.left?a.left:j.left}},rightAlignYAxis:{get:function(){returnv},set:function(a){v=a,e.orient(a?"right":"left")}},color:{get:function(){returnn},set:function(b){n=a.utils.getColor(b),f.color(n),g.color(n),h.color(n)}}}),a.utils.inheritOptions(b,c),a.utils.initOptions(b),b},a.models.sparkline=function(){"use strict";functionb(k){returnk.each(function(b){vark=h-g.left-g.right,q=i-g.top-g.bottom;j=d3.select(this),a.utils.initSVG(j),l.domain(c||d3.extent(b,n)).range(e||[0,k]