import * as wasm from './dwatch_bg.wasm'; const lTextDecoder = typeof TextDecoder === 'undefined' ? (0, module.require)('util').TextDecoder : TextDecoder; let cachedTextDecoder = new lTextDecoder('utf-8', { ignoreBOM: true, fatal: true }); cachedTextDecoder.decode(); let cachegetUint8Memory0 = null; function getUint8Memory0() { if (cachegetUint8Memory0 === null || cachegetUint8Memory0.buffer !== wasm.memory.buffer) { cachegetUint8Memory0 = new Uint8Array(wasm.memory.buffer); } return cachegetUint8Memory0; } function getStringFromWasm0(ptr, len) { return cachedTextDecoder.decode(getUint8Memory0().subarray(ptr, ptr + len)); } /** * @returns {Handle} */ export function init() { var ret = wasm.init(); return Handle.__wrap(ret); } /** */ export class Handle { static __wrap(ptr) { const obj = Object.create(Handle.prototype); obj.ptr = ptr; return obj; } free() { const ptr = this.ptr; this.ptr = 0; wasm.__wbg_handle_free(ptr); } } export const __wbg_alert_f5393de24ed74e50 = function(arg0, arg1) { alert(getStringFromWasm0(arg0, arg1)); }; export const __wbindgen_throw = function(arg0, arg1) { throw new Error(getStringFromWasm0(arg0, arg1)); };