!function(e){jQuery.plot.plugins.push({init:function(e){e.hooks.processDatapoints.push(function(e,n,l){if(null!=n.fillBetween){var i=function(e,n){var l;for(l=0;l<n.length;++l)if(n[l].id==e.fillBetween)return n[l];return"number"==typeof e.fillBetween?(l=e.fillBetween)<0||l>=n.length?null:n[l]:null}(n,e.getData());if(i){for(var t,s,f,o,u,p,r,h=l.pointsize,a=l.points,g=i.datapoints.pointsize,w=i.datapoints.points,c=[],B=n.lines.show,v=h>2&&l.format[2].y,d=B&&n.lines.steps,y=!0,b=0,z=0;!(b>=a.length);){if(r=c.length,null==a[b]){for(m=0;m<h;++m)c.push(a[b+m]);b+=h}else if(z>=w.length){if(!B)for(m=0;m<h;++m)c.push(a[b+m]);b+=h}else if(null==w[z]){for(m=0;m<h;++m)c.push(null);y=!0,z+=g}else{if(t=a[b],s=a[b+1],o=w[z],u=w[z+1],p=0,t==o){for(m=0;m<h;++m)c.push(a[b+m]);p=u,b+=h,z+=g}else if(t>o){if(B&&b>0&&null!=a[b-h]){for(f=s+(a[b-h+1]-s)*(o-t)/(a[b-h]-t),c.push(o),c.push(f),m=2;m<h;++m)c.push(a[b+m]);p=u}z+=g}else{if(y&&B){b+=h;continue}for(m=0;m<h;++m)c.push(a[b+m]);B&&z>0&&null!=w[z-g]&&(p=u+(w[z-g+1]-u)*(t-o)/(w[z-g]-o)),b+=h}y=!1,r!=c.length&&v&&(c[r+2]=p)}if(d&&r!=c.length&&r>0&&null!=c[r]&&c[r]!=c[r-h]&&c[r+1]!=c[r-h+1]){for(m=0;m<h;++m)c[r+h+m]=c[r+m];c[r+1]=c[r-h+1]}}l.points=c}}})},options:{series:{fillBetween:null}},name:"fillbetween",version:"1.0"})}();