String.prototype.format||(String.prototype.format=function(){var t=arguments;if(t[0]instanceof Array){var e=t[0];return this.replace(/{(\d+)}/g,function(t,n){return"undefined"!=typeof e[n]?e[n]:t})}return this.replace(/{(\d+)}/g,function(e,n){return"undefined"!=typeof t[n]?t[n]:e})}),function(t){"use strict";jQuery.fn.pieChart=function(e,n){function i(t,e,n){void 0!==t&&void 0!==e&&void 0!==n&&t.setAttributeNS(null,e,n)}function a(t,e,n,a,r){var u=document.createElementNS(x,"text");return i(u,"index",e),i(u,"x",n),i(u,"y",a),i(u,"class",r),u.textContent=t,u}function r(t,e){var n=document.createElementNS(x,"path");return i(n,"d",t),i(n,"class",e),n}function u(t,e){}function c(){M.find(".pieChart").each(function(){var e=t(this),n={cssClass:e.attr("class"),value:e.attr("value"),title:e.text()};E.push(n),j+=parseFloat(e.attr("value"))}),t(E).each(function(){this.percentage=this.value/j*100})}function s(t,e,n,i){var a=(i-90)*Math.PI/180,r=new Array;return r.push(t+n*Math.cos(a)),r.push(e+n*Math.sin(a)),r}function o(t,e,n,i,a){var r=C.format(s(t,e,n,i)),u=s(t,e,n,a),c=a-i>180?1:0;return r+=A.format(n,n,0,c,1,u[0],u[1]),r+=S.format(t,e),r+="Z"}function h(){n&&N.append('