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