(function(e,t){'object'==typeofexports&&'object'==typeofmodule?module.exports=t(function(){try{returnrequire('assemblyscript')}catch(t){}}(),require('./assemblyscript')):'function'==typeofdefine&&define.amd?define(['assemblyscript'],t):'object'==typeofexports?exports.asc=t(function(){try{returnrequire('assemblyscript')}catch(t){}}(),require('./assemblyscript')):e.asc=t(e._,e[void0])})('undefined'==typeofself?this:self,function(t,e){varr=Math.floor,o=Math.pow,s=Math.min;returnfunction(e){functiont(r){if(i[r])returni[r].exports;vars=i[r]={i:r,l:!1,exports:{}};returne[r].call(s.exports,s,s.exports,t),s.l=!0,s.exports}vari={};returnt.m=e,t.c=i,t.d=function(e,i,r){t.o(e,i)||Object.defineProperty(e,i,{configurable:!1,enumerable:!0,get:r})},t.n=function(e){vari=e&&e.__esModule?function(){returne['default']}:function(){returne};returnt.d(i,'a',i),i},t.o=function(e,t){returnObject.prototype.hasOwnProperty.call(e,t)},t.p='',t(t.s=3)}([function(e,t,i){t.nextTick=function(e){setTimeout(e,0)},t.platform=t.arch=t.execPath=t.title='browser',t.pid=1,t.browser=!0,t.env={},t.argv=[],t.binding=function(){thrownewError('No such module. (Possibly not yet loaded)')},function(){vare,r='/';t.cwd=function(){returnr},t.chdir=function(t){e||(e=i(1)),r=e.resolve(t,r)}}(),t.exit=t.kill=t.umask=t.dlopen=t.uptime=t.memoryUsage=t.uvCounters=function(){},t.features={}},function(e,t,i){(function(e){functionr(e,t){for(varr,s=0,o=e.length-1;0<=o;o--)r=e[o],'.'===r?e.splice(o,1):'..'===r?(e.splice(o,1),s++):s&&(e.splice(o,1),s--);if(t)for(;s--;s)e.unshift('..');returne}functiono(e,t){if(e.filter)returne.filter(t);for(varr=[],s=0;s<e.length;s++)t(e[s],s,e)&&r.push(e[s]);returnr}vari=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/,n=function(e){returni.exec(e).slice(1)};t.resolve=function(){for(vart,s='',n=!1,a=arguments.length-1;-1<=a&&!n;a--){if(t=0<=a?arguments[a]:e.cwd(),'string'!=typeoft)thrownewTypeError('Arguments to path.resolve must be strings');elseif(!t)continue;s=t+'/'+s,n='/'===t.charAt(0)}returns=r(o(s.split('/'),function(e){return!!e}),!n).join('/'),(n?'/':'')+s||'.'},t.normalize=function(e){vari=t.isAbsolute(e),s='/'===a(e,-1);returne=r(o(e.split('/'),function(e){return!!e}),!i).join('/'),e||i||(e='.'),e&&s&&(e+='/'),(i?'/':'')+e},t.isAbsolute=function(e){return'/'===e.charAt(0)},t.join=function(){vare=Array.prototype.slice.call(arguments,0);returnt.normalize(o(e,function(e){if('string'!=typeofe)thrownewTypeError('Arguments to path.join must be strings');returne}).join('/'))},t.relative=function(e,r){functiono(e){for(vart=0;t<e.length&&''===e[t];t++);for(vari=e.length-1;0<=i&&''===e[i];i--);returnt>i?[]:e.slice(t,i-t+1)}e=t.resolve(e).substr(1),r=t.resolve(r).substr(1);for(varn=o(e.split('/')),a=o(r.split('/')),l=s(n.length,a.length),u=l,c=0;c<l;c++)if(n[c]!==a[c]){u=c;break}for(vari=[],c=u;c<n.length;c++)i.push('..');returni=i.concat(a.slice(u)),i.join('/')},t.sep='/',t.delimiter=':',t.dirname=function(e){vart=n(e),i=t[0],r=t[1];returni||r?(r&&(r=r.substr(0,r.length-1)),i+r):'.'},t.basename=function(e,t){vari=n(e)[2];returnt&&i.substr(-1*t.length)===t&&(i=i.substr(0,i.length-t.length)),i},t.extname=function(e){returnn(e)[3]};vara=function(e,t,i){returne.substr(t,i)}}).call(t,i(0))},function(e){vart=function(){returnthis}();try{t=t||Function('return this')()||(1,eval)('this')}catch(i){'object'==typeofwindow&&(t=window)}e.exports=t},function(e,t,i){e.exports=i(4)},function(e,t,i){(function(e,r){functions(e){constr={};returnObject.keys(t.options).forEach((e)=>{consti=t.options[e];i.aliases&&((r.alias||(r.alias={}))[e]=i.aliases),void0!==i.default&&((r.default||(r.default={}))[e]=i.default),'string'===i.type?(r.string||(r.string=[])).push(e):'boolean'===i.type&&(r.boolean||(r.boolean=[])).push(e)}),i(14)(e,r)}functiono(e,t){for(vari,r=!1;null!=(i=d.nextDiagnostic(e));)t.write(d.formatDiagnostic(i,t.isTTY,!0)+f.EOL+f.EOL),d.isError(i)&&(r=!0);returnr}functionn(){return{readTime:0,readCount:0,writeTime:0,writeCount:0,parseTime:0,parseCount:0,compileTime:0,com
*/t.Buffer=l,t.SlowBuffer=function(e){return+e!=e&&(e=0),l.alloc(+e)},t.INSPECT_MAX_BYTES=50,l.TYPED_ARRAY_SUPPORT=e.TYPED_ARRAY_SUPPORT===void 0?function(){try{var e=new Uint8Array(1);return e.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===e.foo()&&'function'==typeof e.subarray&&0===e.subarray(1,1).byteLength}catch(t){return!1}}():e.TYPED_ARRAY_SUPPORT,t.kMaxLength=n(),l.poolSize=8192,l._augment=function(e){return e.__proto__=l.prototype,e},l.from=function(e,t,i){return u(null,e,t,i)},l.TYPED_ARRAY_SUPPORT&&(l.prototype.__proto__=Uint8Array.prototype,l.__proto__=Uint8Array,'undefined'!=typeof Symbol&&Symbol.species&&l[Symbol.species]===l&&Object.defineProperty(l,Symbol.species,{value:null,configurable:!0})),l.alloc=function(e,t,i){return f(null,e,t,i)},l.allocUnsafe=function(e){return d(null,e)},l.allocUnsafeSlow=function(e){return d(null,e)},l.isBuffer=function(e){return!!(null!=e&&e._isBuffer)},l.compare=function(e,t){if(!l.isBuffer(e)||!l.isBuffer(t))throw new TypeError('Arguments must be Buffers');if(e===t)return 0;for(var r=e.length,o=t.length,n=0,i=s(r,o);n<i;++n)if(e[n]!==t[n]){r=e[n],o=t[n];break}return r<o?-1:o<r?1:0},l.isEncoding=function(e){switch((e+'').toLowerCase()){case'hex':case'utf8':case'utf-8':case'ascii':case'latin1':case'binary':case'base64':case'ucs2':case'ucs-2':case'utf16le':case'utf-16le':return!0;default:return!1;}},l.concat=function(e,t){if(!te(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return l.alloc(0);var r;if(t===void 0)for(t=0,r=0;r<e.length;++r)t+=e[r].length;var i=l.allocUnsafe(t),s=0;for(r=0;r<e.length;++r){var o=e[r];if(!l.isBuffer(o))throw new TypeError('"list" argument must be an Array of Buffers');o.copy(i,s),s+=o.length}return i},l.byteLength=y,l.prototype._isBuffer=!0,l.prototype.swap16=function(){var e=this.length;if(0!=e%2)throw new RangeError('Buffer size must be a multiple of 16-bits');for(var t=0;t<e;t+=2)v(this,t,t+1);return this},l.prototype.swap32=function(){var e=this.length;if(0!=e%4)throw new RangeError('Buffer size must be a multiple of 32-bits');for(var t=0;t<e;t+=4)v(this,t,t+3),v(this,t+1,t+2);return this},l.prototype.swap64=function(){var e=this.length;if(0!=e%8)throw new RangeError('Buffer size must be a multiple of 64-bits');for(var t=0;t<e;t+=8)v(this,t,t+7),v(this,t+1,t+6),v(this,t+2,t+5),v(this,t+3,t+4);return this},l.prototype.toString=function(){var e=0|this.length;return 0==e?'':0===arguments.length?w(this,0,e):_.apply(this,arguments)},l.prototype.equals=function(e){if(!l.isBuffer(e))throw new TypeError('Argument must be a Buffer');return this===e||0===l.compare(this,e)},l.prototype.inspect=function(){var e='',i=t.INSPECT_MAX_BYTES;return 0<this.length&&(e=this.toString('hex',0,i).match(/.{2}/g).join(' '),this.length>i&&(e+=' ... ')),'<Buffer '+e+'>'},l.prototype.compare=function(e,t,r,o,n){if(!l.isBuffer(e))thrownewTypeError('Argument must be a Buffer');if(void0===t&&(t=0),void0===r&&(r=e?e.length:0),void0===o&&(o=0),void0===n&&(n=this.length),0>t||r>e.length||0>o||n>this.length)thrownewRangeError('out of range index');if(o>=n&&t>=r)return0;if(o>=n)return-1;if(t>=r)return1;if(t>>>=0,r>>>=0,o>>>=0,n>>>=0,this===e)return0;for(vara=n-o,u=r-t,c=s(a,u),f=this.slice(o,n),d=e.slice(t,r),p=0;p<c;++p)if(f[p]!==d[p]){a=f[p],u=d[p];break}returna<u?-1:u<a?1:0},l.prototype.includes=function(e,t,i){return-1!==this.indexOf(e,t,i)},l.prototype.indexOf=function(e,t,i){returnz(this,e,t,i,!0)},l.prototype.lastIndexOf=function(e,t,i){returnz(this,e,t,i,!1)},l.prototype.write=function(e,t,i,r){if(void0===t)r='utf8',i=this.length,t=0;elseif(void0===i&&'string'==typeoft)r=t,i=this.length,t=0;elseif(isFinite(t))t|=0,isFinite(i)?(i|=0,void0===r&&(r='utf8')):(r=i,i=void0);elsethrownewError('Buffer.write(string, encoding, offset[, length]) is no longer supported');vars=this.length-t;if((void0===i||i>s)&&(i=s),0<e.length&&(0>i||0>t)||t>this.length)thrownewRangeError('Attempt to write outside buffer bounds');r||(r='utf8');for(varo=!1;;)switch(r){case'hex':returnE(this,e,t,i);case'ut