if (step<scaleSteps){constpc=Math.round(100-(scaleSteps-step)/scaleSteps*90);scaleHor.$fill.style.width=pc+"%";setTimeout(elapseHor,1000,step+1);return;}
constbuf=scaleHor._max;
scaleHor.max(buf*10);
scaleHor.min(buf/10);
scaleHor.step(buf/100);
}
elseif (scaleHor.$fill.style.width=="0%"){
if (step<scaleSteps){constpc=Math.round(step/scaleSteps*10);scaleHor.$fill.style.width=pc+"%";setTimeout(elapseHor,200,step+1);return;}
if (scaleHor._max*1000000==v*1000000&&v<1000000000000&&!scaleSaturated){scaleSaturated=true;setTimeout(elapseSaturated,3000);constbuf=scaleHor._max;scaleHor.max(buf*10);scaleHor.min(buf/10);scaleHor.step(buf/100);}
if (scaleVer._max==v&&v<1000000000000&&!scaleSaturated){scaleSaturated=true;setTimeout(elapseSaturated,3000);constbuf=scaleVer._max;scaleVer.max(buf*10);scaleVer.min(buf/10);scaleVer.step(buf/100);}