!function(A){var e={series:{pie:{show:!1,radius:"auto",innerRadius:0,startAngle:1.5,tilt:1,shadow:{left:5,top:15,alpha:.02},offset:{top:0,left:"auto"},stroke:{color:"#fff",width:1},label:{show:"auto",formatter:function(e,i){return"
"+e+"
"+Math.round(i.percent)+"%
"},radius:1,background:{color:null,opacity:0},threshold:0},combine:{threshold:-1,color:null,label:"Other"},highlight:{opacity:.5}}}};A.plot.plugins.push({init:function(h){var a=null,w=null,k=null,g=null,M=null,P=null,o=!1,c=null,u=[];function p(e){if(0k.series.pie.combine.threshold)&&a.push(A.extend(e[l],{data:[[1,n]],color:e[l].color,label:e[l].label,angle:n*Math.PI*2/i,percent:n/(i/100)}))}return 1Could not draw pie with labels contained inside canvas")),e.setSeries&&e.insertLegend&&(e.setSeries(l),e.insertLegend())}function r(){c.clearRect(0,0,v,b),w.children().filter(".pieLabel, .pieLabelBackground").remove()}function a(){var e=k.series.pie.shadow.left,i=k.series.pie.shadow.top,s=k.series.pie.shadow.alpha,t=1=b/2-i||t<=10)){c.save(),c.translate(e,i),c.globalAlpha=s,c.fillStyle="#000",c.translate(M,P),c.scale(1,k.series.pie.tilt);for(var r=1;r<=10;r++)c.beginPath(),c.arc(0,0,t,0,2*Math.PI,!1),c.fill(),t-=r;c.restore()}}function n(){var t=Math.PI*k.series.pie.startAngle,r=1=100*k.series.pie.label.threshold&&!s(l[i],e,i))return!1;e+=l[i].angle}return!0;function s(e,i,s){if(0==e.data[0][1])return!0;var t,r=k.legend.labelFormatter,a=k.series.pie.label.formatter;t=r?r(e.label,e):e.label,a&&(t=a(t,e));var l=(i+e.angle+i)/2,n=M+Math.round(Math.cos(l)*f),o=P+Math.round(Math.sin(l)*f)*k.series.pie.tilt,p=""+t+"";w.append(p);var h=w.children("#pieLabel"+s),g=o-h.height()/2,c=n-h.width()/2;if(h.css("top",g),h.css("left",c),0<0-g||0<0-c||b-(g+h.height())<0||v-(c+h.width())<0)return!1;if(0!=k.series.pie.label.background.opacity){var u=k.series.pie.label.background.color;null==u&&(u=e.color);var d="top:"+g+"px;left:"+c+"px;";A("").css("opacity",k.series.pie.label.background.opacity).insertBefore(h)}return!0}}();function i(e,i,s){e<=0||isNaN(e)||(s?c.fillStyle=i:(c.strokeStyle=i,c.lineJoin="round"),c.beginPath(),1e-9