!function(s){jQuery.plot.plugins.push({init:function(s){s.hooks.processDatapoints.push(function(s,n,t){if(null!=n.stack&&!1!==n.stack){var i=n.bars.show||n.lines.show&&n.lines.fill,o=t.pointsize>2&&(y?t.format[2].x:t.format[2].y);i&&!o&&function(s,n){for(var t=[],i=0;i<n.points.length;i+=2)t.push(n.points[i]),t.push(n.points[i+1]),t.push(0);n.format.push({x:!1,y:!0,number:!0,required:!1,computeRange:"none"!==s.yaxis.options.autoScale,defaultValue:0}),n.points=t,n.pointsize=3}(n,t);var e=function(s,n){for(var t=null,i=0;i<n.length&&s!==n[i];++i)n[i].stack===s.stack&&(t=n[i]);return t}(n,s.getData());if(e){for(var l,u,p,a,f,r,h,c,g=t.pointsize,k=t.points,m=e.datapoints.pointsize,v=e.datapoints.points,z=[],d=n.lines.show,y=n.bars.horizontal,b=d&&n.lines.steps,w=!0,x=y?1:0,D=y?0:1,j=0,q=0;!(j>=k.length);){if(h=z.length,null==k[j]){for(c=0;c<g;++c)z.push(k[j+c]);j+=g}else if(q>=v.length){if(!d)for(c=0;c<g;++c)z.push(k[j+c]);j+=g}else if(null==v[q]){for(c=0;c<g;++c)z.push(null);w=!0,q+=m}else{if(l=k[j+x],u=k[j+D],a=v[q+x],f=v[q+D],r=0,l===a){for(c=0;c<g;++c)z.push(k[j+c]);z[h+D]+=f,r=f,j+=g,q+=m}else if(l>a){if(d&&j>0&&null!=k[j-g]){for(p=u+(k[j-g+D]-u)*(a-l)/(k[j-g+x]-l),z.push(a),z.push(p+f),c=2;c<g;++c)z.push(k[j+c]);r=f}q+=m}else{if(w&&d){j+=g;continue}for(c=0;c<g;++c)z.push(k[j+c]);d&&q>0&&null!=v[q-m]&&(r=f+(v[q-m+D]-f)*(l-a)/(v[q-m+x]-a)),z[h+D]+=r,j+=g}w=!1,h!==z.length&&i&&(z[h+2]+=r)}if(b&&h!==z.length&&h>0&&null!==z[h]&&z[h]!==z[h-g]&&z[h+1]!==z[h-g+1]){for(c=0;c<g;++c)z[h+g+c]=z[h+c];z[h+1]=z[h-g+1]}}t.points=z}}})},options:{series:{stack:null}},name:"stack",version:"1.2"})}();