(function(){vart,i,e,s,n,o,a,h,r,l,p,c,u,d=[].slice,g={}.hasOwnProperty,m=function(t,i){functione(){this.constructor=t}for(varsini)g.call(i,s)&&(t[s]=i[s]);returne.prototype=i.prototype,t.prototype=newe,t.__super__=i.prototype,t};!function(){vart,i,e,s,n,o,a;for(a=["ms","moz","webkit","o"],e=0,n=a.length;e<n&&(o=a[e],!window.requestAnimationFrame);e++)window.requestAnimationFrame=window[o+"RequestAnimationFrame"],window.cancelAnimationFrame=window[o+"CancelAnimationFrame"]||window[o+"CancelRequestAnimationFrame"];t=null,s=0,i={},requestAnimationFrame?window.cancelAnimationFrame||(t=window.requestAnimationFrame,window.requestAnimationFrame=function(e,n){varo;returno=++s,t(function(){if(!i[o])returne()},n),o},window.cancelAnimationFrame=function(t){returni[t]=!0}):(window.requestAnimationFrame=function(t,i){vare,s,n,o;returne=(newDate).getTime(),o=Math.max(0,16-(e-n)),s=window.setTimeout(function(){returnt(e+o)},o),n=e+o,s},window.cancelAnimationFrame=function(t){returnclearTimeout(t)})}(),u=function(t){vari,e;for(i=Math.floor(t/3600),e=Math.floor((t-3600*i)/60),t-=3600*i+60*e,t+="",e+="";e.length<2;)e="0"+e;for(;t.length<2;)t="0"+t;return(i=i?i+":":"")+e+":"+t},p=function(){vart,i,e;returni=1<=arguments.length?d.call(arguments,0):[],e=i[0],t=i[1],r(e.toFixed(t))},c=function(t,i){vare,s,n;s={};for(eint)g.call(t,e)&&(n=t[e],s[e]=n);for(eini)g.call(i,e)&&(n=i[e],s[e]=n);returns},r=function(t){vari,e,s,n;for(t+="",e=t.split("."),s=e[0],n="",e.length>1&&(n="."+e[1]),i=/(\d+)(\d{3})/;i.test(s);)s=s.replace(i,"$1,$2");returns+n},l=function(t){return"#"===t.charAt(0)?t.substring(1,7):t},h=function(){functiont(t,i){null==t&&(t=!0),this.clear=null==i||i,t&&AnimationUpdater.add(this)}returnt.prototype.animationSpeed=32,t.prototype.update=function(t){vari;returnnull==t&&(t=!1),!(!t&&this.displayedValue===this.value)&&(this.ctx&&this.clear&&this.ctx.clearRect(0,0,this.canvas.width,this.canvas.height),i=this.value-this.displayedValue,Math.abs(i/this.animationSpeed)<=.001?this.displayedValue=this.value:this.displayedValue=this.displayedValue+i/this.animationSpeed,this.render(),!0)},t}(),e=function(t){functioni(){returni.__super__.constructor.apply(this,arguments)}returnm(i,t),i.prototype.displayScale=1,i.prototype.forceUpdate=!0,i.prototype.setTextField=function(t,i){returnthis.textField=tinstanceofa?t:newa(t,i)},i.prototype.setMinValue=function(t,i){vare,s,n,o,a;if(this.minValue=t,null==i&&(i=!0),i){for(this.displayedValue=this.minValue,o=this.gp||[],a=[],s=0,n=o.length;s<n;s++)e=o[s],a.push(e.displayedValue=this.minValue);returna}},i.prototype.setOptions=function(t){returnnull==t&&(t=null),this.options=c(this.options,t),this.textField&&(this.textField.el.style.fontSize=t.fontSize+"px"),this.options.angle>.5&&(this.options.angle=.5),this.configDisplayScale(),this},i.prototype.configDisplayScale=function(){vart,i,e,s,n;returns=this.displayScale,!1===this.options.highDpiSupport?deletethis.displayScale:(i=window.devicePixelRatio||1,t=this.ctx.webkitBackingStorePixelRatio||this.ctx.mozBackingStorePixelRatio||this.ctx.msBackingStorePixelRatio||this.ctx.oBackingStorePixelRatio||this.ctx.backingStorePixelRatio||1,this.displayScale=i/t),this.displayScale!==s&&(n=this.canvas.G__width||this.canvas.width,e=this.canvas.G__height||this.canvas.height,this.canvas.width=n*this.displayScale,this.canvas.height=e*this.displayScale,this.canvas.style.width=n+"px",this.canvas.style.height=e+"px",this.canvas.G__width=n,this.canvas.G__height=e),this},i.prototype.parseValue=function(t){returnt=parseFloat(t)||Number(t),isFinite(t)?t:0},i}(h),a=function(){functiont(t,i){this.el=t,this.fractionDigits=i}returnt.prototype.render=function(t){returnthis.el.innerHTML=p(t.displayedValue,this.fractionDigits)},t}(),t=function(t){functioni(t,e){if(this.elem=t,this.text=null!=e&&e,i.__super__.constructor.call(this),void0===this.elem)thrownewError("The element isn't defined.");this.value=1*this.elem.innerHTML,this.text&&(this.value=0)}returnm(i,t),i.prototype.displayedValue=0,i.prototype.value=0,i.prototype.setVal=funct