var __decorate=this&&this.__decorate||function(t,e,i,n){if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)return Reflect.decorate(t,e,i,n);switch(arguments.length){case 2:return t.reduceRight(function(t,e){return e&&e(t)||t},e);case 3:return t.reduceRight(function(t,n){return void(n&&n(e,i))},void 0);case 4:return t.reduceRight(function(t,n){return n&&n(e,i,t)||t},n)}},BABYLON;!function(t){var e=function(e){function i(i,n,r,o){e.call(this,o),this.name=i,this._text==r,this._font==n,this.wrapU=t.Texture.CLAMP_ADDRESSMODE,this.wrapV=t.Texture.CLAMP_ADDRESSMODE;var a=this.getFontHeight(n),c=this.getFontWidth(n);this._charSize=Math.max(a.height,c);var l=Math.ceil(this._charSize*r.length),s=this._charSize;this._texture=o.getEngine().createDynamicTexture(l,s,!1,t.Texture.NEAREST_SAMPLINGMODE);var f=this.getSize(),h=document.createElement("canvas");h.width=f.width,h.height=f.height;var u=h.getContext("2d");u.textBaseline="top",u.font=n,u.fillStyle="white",u.imageSmoothingEnabled=!1;for(var g=0;g