(function(){var e;null==window.Epoch&&(window.Epoch={});null==(e=window.Epoch).Chart&&(e.Chart={});null==(e=window.Epoch).Time&&(e.Time={});null==(e=window.Epoch).Util&&(e.Util={});null==(e=window.Epoch).Formats&&(e.Formats={});Epoch.warn=function(g){return(console.warn||console.log)(“Epoch Warning: ”+g)};Epoch.exception=function(g){throw“Epoch Error: ”+g;}}).call(this); (function(){Epoch.TestContext=function(){function e(){var c,a,d;this._log=[];a=0;for(d=g.length;ac
“(”+function(){var d, b,h;h=[];d=0;for(b=arguments.length;d,h.push(a.toString());return h}.apply(this,arguments).join(“,”)+“)”)}};e.prototype.getImageData=function(){var c;this._log.push(“getImageData(”+function(){var a,d,b;b=[];a=0;for(d=arguments.length;ac
“]”}};Epoch.isArray=null!=(g=Array.isArray)?g:e(“Array”);Epoch.isObject=e(“Object”);Epoch.isString=e(“String”);Epoch.isFunction=e(“Function”);Epoch.isNumber=e(“Number”);Epoch.isElement=function©{return“undefined”!==typeof HTMLElement&&null!==HTMLElement?c instanceof HTMLElement:null!=c&&Epoch.isObject©&&1===c.nodeType&&Epoch.isString(c.nodeName)};Epoch.Util.copy=function©{var a,d,b;if(null== c)return null;a={};for(d in c)b=c,a=b;return a};Epoch.Util.defaults=function(c,a){var d,b,h,k,f;f=Epoch.Util.copy©;for(h in a)k=c,b=a,d=Epoch.isObject(k)&&Epoch.isObject(b),null!=k&&null!=b?d&&!Epoch.isArray(k)?f=Epoch.Util.defaults(k,b):f=k:f=null!=k?k:b;return f};Epoch.Util.formatSI=function(c,a,d){var b,h,k,f;null==a&&(a=1);null==d&&(d=!1);if(1E3>c){if((c|0)!==c||d)c=c.toFixed(a);return c}f=“KMGTPEZY”.split(“”);for(h in f)if(k=f,b=Math.pow(10,3*((h|0)+1)),c>=b&&c<Math.pow(10, 3*((h|0)+2))){c/=b;if(0!==c%1||d)c=c.toFixed(a);return“”c
“ ”+k}};Epoch.Util.formatBytes=function(c,a,d){var b,h,k,f;null==a&&(a=1);null==d&&(d=!1);if(1024>c){if(0!==c%1||d)c=c.toFixed(a);return“”c
“ B”}f=“KB MB GB TB PB EB ZB YB”.split(“ ”);for(h in f)if(k=f,b=Math.pow(1024,(h|0)+1),c>=b&&c<Math.pow(1024,(h|0)+2)){c/=b;if(0!==c%1||d)c=c.toFixed(a);return“”c
“ ”+k}};Epoch.Util.dasherize=function©{return Epoch.Util.trim©.replace(“n”,“”).replace(/s+/g,“-”).toLowerCase()};Epoch.Util.domain= function(c,a){var d,b,h,k,f,q,u,m;null==a&&(a=“x”);h={};d=[];k=0;for(q=c.length;k,m=b.values,f=0,u=m.length;f,null==h[b]&&(d.push(b),h[b]=!0);return d};Epoch.Util.trim=function©{return Epoch.isString©?c.replace(/^s+/g,“”).replace(/s+$/g,“”):null};Epoch.Util.getComputedStyle=function(c,a){if(Epoch.isFunction(window.getComputedStyle))return window.getComputedStyle(c,a);if(null!=c.currentStyle)return c.currentStyle};Epoch.Util.toRGBA=function(c,a){var d,b, h;if(d=c.match(/^rgba(s*(+)s*,s*([0-9]+)s*,s*([0-9]+)s*,s*[0-9.]+)/))h=d,b=d,d=d,b=“rgba(”
h
“,”b
“,”d
“,”a
“)”;else if(d=d3.rgb©)b=“rgba(”d.r
“,”d.g
“,”d.b
“,”a
“)”;return b};Epoch.Util.getContext=function(c,a){null==a&&(a=“2d”);return null!=c.getContext?c.getContext(a):new Epoch.TestContext}}).call(this); (function(){d3.selection.prototype.width=function(e){return null!=e&&Epoch.isString(e)?this.style(“width”,e):null!=e&&Epoch.isNumber(e)?this.style(“width”,“”e
“px”):+Epoch.Util.getComputedStyle(this.node(),null).width.replace(“px”,“”)};d3.selection.prototype.height=function(e){return null!=e&&Epoch.isString(e)?this.style(“height”,e):null!=e&&Epoch.isNumber(e)?this.style(“height”,“”e
“px”):+Epoch.Util.getComputedStyle(this.node(),null).height.replace(“px”,“”)}}).call(this); (function(){var e;Epoch.Formats.regular=function(g){return g};Epoch.Formats.si=function(g){return Epoch.Util.formatSI(g)};Epoch.Formats.percent=function(g){return(100*g).toFixed(1)+“%”};Epoch.Formats.seconds=function(g){return e(new Date(1E3*g))};e=d3.time.format(“%I:%M:%S %p”);Epoch.Formats.bytes=function(g){return Epoch.Util.formatBytes(g)}}).call(this); (function(){var e={}.hasOwnProperty,g=function(c,a){function d(){this.constructor=c}for(var b in a)e.call(a,b)&&(c=a);d.prototype=a.prototype;c.prototype=new d;c.__super__=a.prototype;return c};Epoch.Events=function(){function c(){this._events={}}c.prototype.on=function(a,d){var b;if(null!=d)return null==(b=this._events)&&(b=[]),this._events.push(d)};c.prototype.onAll=function(a){var d,b,h;if(Epoch.isObject(a)){h=[];for(b in a)d=a,h.push(this.on(b,d));return h}};c.prototype.off= function(a,d){var b,h;if(Epoch.isArray(this._events)){if(null==d)return delete this._events;for(h=[];0<=(b=this._events.indexOf(d));)h.push(this._events.splice(b,1));return h}};c.prototype.offAll=function(a){var d,b,h,k;if(Epoch.isArray(a)){k=[];d=0;for(h=a.length;d,h=null,Epoch.isString(b)?h=this:Epoch.isFunction(b)&&(h=b),null==h&&Epoch.exception(“Callback for event '”
a
“' is not a function or reference to a method.”),m.push(h.apply(this,d));return m}};return c}();Epoch.Chart.Base=function©{function a(h){this.options=null!=h?h:{};a.__super__.constructor.call(this);this.setData(this.options.data|| []);null!=this.options.el&&(this.el=d3.select(this.options.el));this.width=this.options.width;this.height=this.options.height;null!=this.el?(null==this.width&&(this.width=this.el.width()),null==this.height&&(this.height=this.el.height())):(null==this.width&&(this.width=d.width),null==this.height&&(this.height=d.height));this.onAll(b)}var d,b;g(a,c);d={width:320,height:240};b={“option:width”:“dimensionsChanged”,“option:height”:“dimensionsChanged”};a.prototype._getAllOptions=function(){return Epoch.Util.defaults({}, this.options)};a.prototype._getOption=function(a){var k,f;a=a.split(“.”);for(k=this.options;a.length&&null!=k;)f=a.shift(),k=k;return k};a.prototype._setOption=function(a,k){var f,q,b;f=a.split(“.”);for(q=this.options;f.length;){b=f.shift();if(0===f.length){q=k;this.trigger(“option:”+a);break}null==q&&(q={});q=q}};a.prototype._setManyOptions=function(a,k){var f,q,b;null==k&&(k=“”);b=[];for(f in a)q=a,Epoch.isObject(q)?b.push(this._setManyOptions(q,“”+(k+f)+“.”)):b.push(this._setOption(k+ f,q));return b};a.prototype.option=function(){if(0===arguments.length)return this._getAllOptions();if(1===arguments.length&&Epoch.isString(arguments))return this._getOption(arguments);if(2===arguments.length&&Epoch.isString(arguments))return this._setOption(arguments,arguments);if(1===arguments.length&&Epoch.isObject(arguments))return this._setManyOptions(arguments)};a.prototype.setData=function(a){var k,f,b,d,c;k=1;d=0;for(c=a.length;dthis.width
“px”,height:“”this.height
“px”});this.canvas.attr({width:this.getWidth(), height:this.getHeight()});null!=this.el&&this.el.node().appendChild(this.canvas.node());this.ctx=Epoch.Util.getContext(this.canvas.node())}g(a,c);a.prototype.getWidth=function(){return this.width*this.pixelRatio};a.prototype.getHeight=function(){return this.height*this.pixelRatio};a.prototype.clear=function(){return this.ctx.clearRect(0,0,this.getWidth(),this.getHeight())};a.prototype.getStyles=function(a){return Epoch.QueryCSS.getStyles(a,this.el)};a.prototype.dimensionsChanged=function(){a.__super__.dimensionsChanged.call(this); this.canvas.style({width:“”this.width
“px”,height:“”this.height
“px”});return this.canvas.attr({width:this.getWidth(),height:this.getHeight()})};return a}(Epoch.Chart.Base)}).call(this); (function(){var e;e=function(){function g(){}var c,a,d,b,h;a=0;b=function(){return“epoch-container-”a+
};c=/^([^#. ]+)?(#[^. ]+)?(.[^# ]+)?$/;d=!1;h=function(a){var f,b;f=a.match©;if(null==f)return Epoch.error(“Query CSS cannot match given selector: ”+a);b=f;a=f;f=f;b=(null!=b?b:“div”).toUpperCase();b=document.createElement(b);null!=a&&(b.id=a.substr(1));null!=f&&(b.className=f.substr(1).replace(/./g,“ ”));return b};g.log=function(a){return d=a};g.cache={};g.styleList=[“fill”,“stroke”, “stroke-width”];g.container=null;g.purge=function(){return g.cache={}};g.getContainer=function(){var a;if(null!=g.container)return g.container;a=document.createElement(“DIV”);a.id=“_canvas_css_reference”;document.body.appendChild(a);return g.container=d3.select(a)};g.hash=function(a,f){var d;d=f.attr(“data-epoch-container-id”);null==d&&(d=b(),f.attr(“data-epoch-container-id”,d));return“”d
“__”+a};g.getStyles=function(a,f){var b,c,m,l,n,e,r;c=g.hash(a,f);b=g.cache;if(null!=b)return b;m=[];for(b= f.node().parentNode;null!=b&&“body”!==b.nodeName.toLowerCase();)m.unshift(b),b=b.parentNode;m.push(f.node());b=[];e=0;for(r=m.length;ethis.margins.left
“, ”this.margins.top
“)”);this.onAll(h)}var d,b,h;g(a,c);b={domain:null,range:null,axes:,ticks:{top:14,bottom:14,left:5,right:5},tickFormats:{top:Epoch.Formats.regular,bottom:Epoch.Formats.regular,left:Epoch.Formats.si,right:Epoch.Formats.si}};d={top:25,right:50,bottom:25,left:50};h={“option:margins.top”:“marginsChanged”, “option:margins.right”:“marginsChanged”,“option:margins.bottom”:“marginsChanged”,“option:margins.left”:“marginsChanged”,“option:axes”:“axesChanged”,“option:ticks.top”:“ticksChanged”,“option:ticks.right”:“ticksChanged”,“option:ticks.bottom”:“ticksChanged”,“option:ticks.left”:“ticksChanged”,“option:tickFormats.top”:“tickFormatsChanged”,“option:tickFormats.right”:“tickFormatsChanged”,“option:tickFormats.bottom”:“tickFormatsChanged”,“option:tickFormats.left”:“tickFormatsChanged”,“option:domain”:“domainChanged”, “option:range”:“rangeChanged”};a.prototype.setTickFormat=function(a,f){return this.options.tickFormats=f};a.prototype.hasAxis=function(a){return-1<this.options.axes.indexOf(a)};a.prototype.innerWidth=function(){return this.width-(this.margins.left+this.margins.right)};a.prototype.innerHeight=function(){return this.height-(this.margins.top+this.margins.bottom)};a.prototype.x=function(){var a,f;a=null!=(f=this.options.domain)?f:this.extent(function(a){return a.x});return d3.scale.linear().domain(a).range([0, this.innerWidth()])};a.prototype.y=function(){var a,f;a=null!=(f=this.options.range)?f:this.extent(function(a){return a.y});return d3.scale.linear().domain(a).range()};a.prototype.bottomAxis=function(){return d3.svg.axis().scale(this.x()).orient(“bottom”).ticks(this.options.ticks.bottom).tickFormat(this.options.tickFormats.bottom)};a.prototype.topAxis=function(){return d3.svg.axis().scale(this.x()).orient(“top”).ticks(this.options.ticks.top).tickFormat(this.options.tickFormats.top)}; a.prototype.leftAxis=function(){return d3.svg.axis().scale(this.y()).orient(“left”).ticks(this.options.ticks.left).tickFormat(this.options.tickFormats.left)};a.prototype.rightAxis=function(){return d3.svg.axis().scale(this.y()).orient(“right”).ticks(this.options.ticks.right).tickFormat(this.options.tickFormats.right)};a.prototype.draw=function(){this._axesDrawn?this._redrawAxes():this._drawAxes();return a.__super__.draw.call(this)};a.prototype._redrawAxes=function(){this.hasAxis(“bottom”)&&this.g.selectAll(“.x.axis.bottom”).transition().duration(500).ease(“linear”).call(this.bottomAxis()); this.hasAxis(“top”)&&this.g.selectAll(“.x.axis.top”).transition().duration(500).ease(“linear”).call(this.topAxis());this.hasAxis(“left”)&&this.g.selectAll(“.y.axis.left”).transition().duration(500).ease(“linear”).call(this.leftAxis());if(this.hasAxis(“right”))return this.g.selectAll(“.y.axis.right”).transition().duration(500).ease(“linear”).call(this.rightAxis())};a.prototype._drawAxes=function(){this.hasAxis(“bottom”)&&this.g.append(“g”).attr(“class”,“x axis bottom”).attr(“transform”,“translate(0, ”+ this.innerHeight()+“)”).call(this.bottomAxis());this.hasAxis(“top”)&&this.g.append(“g”).attr(“class”,“x axis top”).call(this.topAxis());this.hasAxis(“left”)&&this.g.append(“g”).attr(“class”,“y axis left”).call(this.leftAxis());this.hasAxis(“right”)&&this.g.append(“g”).attr(“class”,“y axis right”).attr(“transform”,“translate(”+this.innerWidth()+“, 0)”).call(this.rightAxis());return this._axesDrawn=!0};a.prototype.dimensionsChanged=function(){a.__super__.dimensionsChanged.call(this);this.g.selectAll(“.axis”).remove(); this._axesDrawn=!1;return this.draw()};a.prototype.marginsChanged=function(){var a,f,b;if(null!=this.options.margins){b=this.options.margins;for(a in b)f=b,this.margins=null==f?6:f;this.g.transition().duration(750).attr(“transform”,“translate(”this.margins.left
“, ”this.margins.top
“)”);return this.draw()}};a.prototype.axesChanged=function(){var a,f,b,c;c=;f=0;for(b=c.length;f,null==this.options.margins||null==this.options.margins)this.hasAxis(a)? this.margins=d:this.margins=6;this.g.transition().duration(750).attr(“transform”,“translate(”this.margins.left
“, ”this.margins.top
“)”);this.g.selectAll(“.axis”).remove();this._axesDrawn=!1;return this.draw()};a.prototype.ticksChanged=function(){return this.draw()};a.prototype.tickFormatsChanged=function(){return this.draw()};a.prototype.domainChanged=function(){return this.draw()};a.prototype.rangeChanged=function(){return this.draw()};return a}(Epoch.Chart.SVG)}).call(this); (function(){var e={}.hasOwnProperty,g=function(c,a){function d(){this.constructor=c}for(var b in a)e.call(a,b)&&(c=a);d.prototype=a.prototype;c.prototype=new d;c.__super__=a.prototype;return c};Epoch.Chart.Area=function©{function a(){return a.__super__.constructor.apply(this,arguments)}g(a,c);a.prototype.y=function(){var a,b,c,k,f,q,u,m;a=[];q=this.data;k=0;for(f=q.length;k<f;k++)for(b in c=q,u=c.values,u)c=u,null!=a&&(a+=c.y),null==a&&(a=c.y);return d3.scale.linear().domain(null!= (m=this.options.range)?m:).range()};a.prototype.draw=function(){var d,b,c,k;b=;c=b;k=b;d=d3.svg.area().x(function(a){return c(a.x)}).y0(function(a){return k(a.y0)}).y1(function(a){return k(a.y0+a.y)});d3.layout.stack().values(function(a){return a.values})(this.data);this.g.selectAll(“.layer”).remove();b=this.g.selectAll(“.layer”).data(this.data,function(a){return a.category});b.select(“.area”).attr(“d”,function(a){return d(a.values)}); b.enter().append(“g”).attr(“class”,function(a){return a.className});b.append(“path”).attr(“class”,“area”).attr(“d”,function(a){return d(a.values)});return a.__super__.draw.call(this)};return a}(Epoch.Chart.Plot)}).call(this); (function(){var e={}.hasOwnProperty,g=function(c,a){function d(){this.constructor=c}for(var b in a)e.call(a,b)&&(c=a);d.prototype=a.prototype;c.prototype=new d;c.__super__=a.prototype;return c};Epoch.Chart.Bar=function©{function a(k){this.options=null!=k?k:{};this.options=“horizontal”===this.options.orientation?Epoch.Util.defaults(this.options,b):Epoch.Util.defaults(this.options,d);a.__super__.constructor.call(this,this.options);this.onAll(h)}var d,b,h;g(a,c);d={style:“grouped”,orientation:“vertical”, padding:{bar:0.08,group:0.1},outerPadding:{bar:0.08,group:0.1}};b=Epoch.Util.defaults({tickFormats:{top:Epoch.Formats.si,bottom:Epoch.Formats.si,left:Epoch.Formats.regular,right:Epoch.Formats.regular}},d);h={“option:orientation”:“orientationChanged”,“option:padding”:“paddingChanged”,“option:outerPadding”:“paddingChanged”,“option:padding:bar”:“paddingChanged”,“option:padding:group”:“paddingChanged”,“option:outerPadding:bar”:“paddingChanged”,“option:outerPadding:group”:“paddingChanged”};a.prototype.x= function(){var a;if(“vertical”===this.options.orientation)return d3.scale.ordinal().domain(Epoch.Util.domain(this.data)).rangeRoundBands(,this.options.padding.group,this.options.outerPadding.group);a=this.extent(function(a){return a.y});a=Math.min(0,a);return d3.scale.linear().domain(a).range()};a.prototype.x1=function(a){var f;return d3.scale.ordinal().domain(function(){var a,k,b,d;b=this.data;d=[];a=0;for(k=b.length;a< k;a++)f=b,d.push(f.category);return d}.call(this)).rangeRoundBands(,this.options.padding.bar,this.options.outerPadding.bar)};a.prototype.y=function(){var a;return“vertical”===this.options.orientation?(a=this.extent(function(a){return a.y}),a=Math.min(0,a),d3.scale.linear().domain(a).range()):d3.scale.ordinal().domain(Epoch.Util.domain(this.data)).rangeRoundBands(,this.options.padding.group,this.options.outerPadding.group)}; a.prototype.y1=function(a){var f;return d3.scale.ordinal().domain(function(){var a,k,b,d;b=this.data;d=[];a=0;for(k=b.length;athis.width/2
“, ”this.height/2
“)”);this.on(“option:margin”,“marginChanged”);this.on(“option:inner”,“innerChanged”)}var d;g(a,c);d={margin:10,inner:0};a.prototype.draw=function(){var b;this.g.selectAll(“.arc”).remove();b=this.g.selectAll(“.arc”).data(this.pie(this.data),function(a){return a.data.category});b.enter().append(“g”).attr(“class”, function(a){return“arc pie ”+a.data.className});b.select(“path”).attr(“d”,this.arc);b.select(“text”).attr(“transform”,function(a){return function(b){return“translate(”+a.arc.centroid(b)+“)”}}(this)).text(function(a){return a.data.label||a.data.category});b.append(“path”).attr(“d”,this.arc).each(function(a){return this._current=a});b.append(“text”).attr(“transform”,function(a){return function(b){return“translate(”+a.arc.centroid(b)+“)”}}(this)).attr(“dy”,“.35em”).style(“text-anchor”,“middle”).text(function(a){return a.data.label|| a.data.category});return a.__super__.draw.call(this)};a.prototype.marginChanged=function(){return this.draw()};a.prototype.innerChanged=function(){return this.draw()};return a}(Epoch.Chart.SVG)}).call(this); (function(){var e={}.hasOwnProperty,g=function(c,a){function d(){this.constructor=c}for(var b in a)e.call(a,b)&&(c=a);d.prototype=a.prototype;c.prototype=new d;c.__super__=a.prototype;return c};Epoch.Chart.Scatter=function©{function a(b){this.options=null!=b?b:{};a.__super__.constructor.call(this,this.options=Epoch.Util.defaults(this.options,d));this.on(“option:radius”,“radiusChanged”)}var d;g(a,c);d={radius:3.5,axes:};a.prototype.draw=function(){var b,c,k,f, d;b=;f=b;d=b;k=this.options.radius;c=this.g.selectAll(“.layer”).data(this.data,function(a){return a.category});c.enter().append(“g”).attr(“class”,function(a){return a.className});b=c.selectAll(“.dot”).data(function(a){return a.values});b.transition().duration(500).attr(“r”,function(a){var b;return null!=(b=a.r)?b:k}).attr(“cx”,function(a){return f(a.x)}).attr(“cy”,function(a){return d(a.y)});b.enter().append(“circle”).attr(“class”,“dot”).attr(“r”,function(a){var b;return null!= (b=a.r)?b:k}).attr(“cx”,function(a){return f(a.x)}).attr(“cy”,function(a){return d(a.y)});b.exit().transition().duration(750).style(“opacity”,0).remove();c.exit().transition().duration(750).style(“opacity”,0).remove();return a.__super__.draw.call(this)};a.prototype.radiusChanged=function(){return this.draw()};return a}(Epoch.Chart.Plot)}).call(this); (function(){var e={}.hasOwnProperty,g=function(c,a){function d(){this.constructor=c}for(var b in a)e.call(a,b)&&(c=a);d.prototype=a.prototype;c.prototype=new d;c.__super__=a.prototype;return c};Epoch.Time.Plot=function©{function a(k){var f,c,u;this.options=k;Epoch.Util.copy(this.options.margins);a.__super__.constructor.call(this,this.options=Epoch.Util.defaults(this.options,b));this._queue=[];this.margins={};u=;f=0;for(c=u.length;fthis.margins.top
“px”,left:“”this.margins.left
“px”})};a.prototype._buildAxes=function(){this.svg.selectAll(“.axis”).remove(); this._prepareTimeAxes();return this._prepareRangeAxes()};a.prototype.setData=function(a){var b,c,d,h,e;this.data=[];e=;for(d in a)h=a,c=Epoch.Util.copy(h),b=Math.max(0,h.values.length-this.options.historySize),c.values=h.values.slice(b),b=,b.push(“category”+((d|0)+1)),null!=h.label&&b.push(Epoch.Util.dasherize(h.label)),c.className=b.join(“ ”),e.push(this.data.push©);return e};a.prototype._offsetX=function(){return 0};a.prototype._prepareTimeAxes=function(){var a;this.hasAxis(“bottom”)&& (a=this.bottomAxis=this.svg.append(“g”).attr(“class”,“x axis bottom canvas”).attr(“transform”,“translate(”+(this.margins.left-1)+“, ”+(this.innerHeight()/this.pixelRatio+this.margins.top)+“)”),a.append(“path”).attr(“class”,“domain”).attr(“d”,“M0,0H”+(this.innerWidth()/this.pixelRatio+1)));this.hasAxis(“top”)&&(a=this.topAxis=this.svg.append(“g”).attr(“class”,“x axis top canvas”).attr(“transform”,“translate(”+(this.margins.left-1)+“, ”this.margins.top
“)”),a.append(“path”).attr(“class”,“domain”).attr(“d”, “M0,0H”+(this.innerWidth()/this.pixelRatio+1)));return this._resetInitialTimeTicks()};a.prototype._resetInitialTimeTicks=function(){var a,b,c,d,h;d=this.options.ticks.time;this._ticks=[];this._tickTimer=d;null!=this.bottomAxis&&this.bottomAxis.selectAll(“.tick”).remove();null!=this.topAxis&&this.topAxis.selectAll(“.tick”).remove();h=this.data;a=0;for(b=h.length;a,null!=c.values&&0<c.values.length){b=;a=b;for(b=b;0<=a&&0<=b;)this._pushTick(a, c.values.time,!1,!0),a-=d,b-=d;break}return[]};a.prototype._prepareRangeAxes=function(){this.hasAxis(“left”)&&this.svg.append(“g”).attr(“class”,“y axis left”).attr(“transform”,“translate(”+(this.margins.left-1)+“, ”this.margins.top
“)”).call(this.leftAxis());if(this.hasAxis(“right”))return this.svg.append(“g”).attr(“class”,“y axis right”).attr(“transform”,“translate(”+(this.width-this.margins.right)+“, ”this.margins.top
“)”).call(this.rightAxis())};a.prototype.leftAxis=function(){var a,b;b=this.options.ticks.left; a=d3.svg.axis().scale(this.ySvg()).orient(“left”).tickFormat(this.options.tickFormats.left);return 2===b?a.tickValues(this.extent(function(a){return a.y})):a.ticks(b)};a.prototype.rightAxis=function(){var a,b;this.extent(function(a){return a.y});b=this.options.ticks.right;a=d3.svg.axis().scale(this.ySvg()).orient(“right”).tickFormat(this.options.tickFormats.left);return 2===b?a.tickValues(this.extent(function(a){return a.y})):a.ticks(b)};a.prototype.hasAxis=function(a){return-1<this.options.axes.indexOf(a)}; a.prototype.innerWidth=function(){return(this.width-(this.margins.left+this.margins.right))*this.pixelRatio};a.prototype.innerHeight=function(){return(this.height-(this.margins.top+this.margins.bottom))*this.pixelRatio};a.prototype._prepareEntry=function(a){return a};a.prototype._prepareLayers=function(a){return a};a.prototype._startTransition=function(){if(!0!==this.animation.active&&0!==this._queue.length)return this.trigger(“transition:start”),this._shift(),this.animation.active=!0,this.animation.interval= setInterval(this.animationCallback,1E3/this.options.fps)};a.prototype._stopTransition=function(){var a,b,c,d;if(this.inTransition()){d=this.data;b=0;for(c=d.length;b,0this.options.opacity
“'”)}else return Epoch.isFunction(this.options.opacity)?this._opacityFn=this.options.opacity:Epoch.exception(“Unknown type for provided coloring function.”)};a.prototype.setData=function(b){var c,d,e,g;a.__super__.setData.call(this,b);e=this.data;g=[];c=0;for(d=e.length;c< d;c++)b=e,g.push(b.values=b.values.map(function(a){return function(b){return a._prepareEntry(b)}}(this)));return g};a.prototype._getBuckets=function(a){var b,c,d,e,g;e=a.time;g=[];b=0;for(d=this.options.buckets;0<=d?b,null!=e.buckets&& (r+=e.buckets);for(g in a)e=a,p=null!=e.buckets?e.buckets|0:0,p/=r,e=d3.lab(e.color),h+=p*e.l,c+=p*e.a,d+=p*e.b;return d3.lab(h,c,d).toString()};a.prototype.draw=function(b){null==b&&(b=0);this.clear();this.ctx.drawImage(this.paint,b,0);return a.__super__.draw.call(this)};a.prototype.bucketsChanged=function(){return this.redraw()};a.prototype.bucketRangeChanged=function(){this._transitionRangeAxes();return this.redraw()};a.prototype.opacityChanged=function(){this._setOpacityFunction(); return this.redraw()};a.prototype.bucketPaddingChanged=function(){return this.redraw()};a.prototype.paintZeroValuesChanged=function(){return this.redraw()};a.prototype.cutOutliersChanged=function(){return this.redraw()};return a}(Epoch.Time.Plot)}).call(this); (function(){var e={}.hasOwnProperty,g=function(c,a){function d(){this.constructor=c}for(var b in a)e.call(a,b)&&(c=a);d.prototype=a.prototype;c.prototype=new d;c.__super__=a.prototype;return c};Epoch.Time.Line=function©{function a(){return a.__super__.constructor.apply(this,arguments)}g(a,c);a.prototype.setStyles=function(a){a=this.getStyles(“g.”+a.replace(/s/g,“.”)+“ path.line”);this.ctx.fillStyle=a.fill;this.ctx.strokeStyle=a.stroke;return this.ctx.lineWidth=this.pixelRatio*a.replace(“px”, “”)};a.prototype.y=function(){return d3.scale.linear().domain(this.extent(function(a){return a.y})).range()};a.prototype.draw=function©{var b,e,g,f,q,u,m,l,n,p;null==c&&(c=0);this.clear();e=;m=e;u=e;p=this.data;l=0;for(n=p.length;le.type
“'”),c.store(“epoch-chart”,g=new g(e)),g.draw());return g})}()}).call(this); (function(){var e;e=function(e){return e.fn.epoch=function©{var a;c.el=this.get(0);null==(a=this.data(“epoch-chart”))&&(a=Epoch._typeMap,null==a&&Epoch.exception(“Unknown chart type '”c.type
“'”),this.data(“epoch-chart”,a=new a©),a.draw());return a}};null!=window.jQuery&&e(jQuery)}).call(this); (function(){var e;e=function(e){var c,a,d;a={};c=0;d=function(){return“epoch-chart-”+ ++c};return e.extend(e.fn,{epoch:function(b){var c,e;if(null!=(c=this.data(“epoch-chart”)))return a;b.el=this.get(0);e=Epoch._typeMap;null==e&&Epoch.exception(“Unknown chart type '”b.type
“'”);this.data(“epoch-chart”,c=d());b=new e(b);a=b;b.draw();return b}})};null!=window.Zepto&&e(Zepto)}).call(this);