@duckdb/duckdb-wasm-shell 1.29.1-dev23.0 → 1.29.1-dev247.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/shell.cjs CHANGED
@@ -43,7 +43,7 @@ module.exports = __toCommonJS(src_exports);
43
43
  // package.json
44
44
  var package_default = {
45
45
  name: "@duckdb/duckdb-wasm-shell",
46
- version: "1.29.1-dev23.0",
46
+ version: "1.29.1-dev247.0",
47
47
  description: "",
48
48
  author: "Andre Kohn <kohn.a@outlook.com>",
49
49
  license: "MIT",
@@ -67,7 +67,7 @@ var package_default = {
67
67
  "csv"
68
68
  ],
69
69
  dependencies: {
70
- "@duckdb/duckdb-wasm": "^1.29.1-dev23.0",
70
+ "@duckdb/duckdb-wasm": "^1.29.1-dev247.0",
71
71
  xterm: "^5.3.0",
72
72
  "xterm-addon-fit": "^0.8.0",
73
73
  "xterm-addon-web-links": "^0.9.0",
@@ -135,55 +135,13 @@ var import_xterm_addon_web_links = require("xterm-addon-web-links");
135
135
  var import_xterm_addon_webgl = require("xterm-addon-webgl");
136
136
  var import_meta = {};
137
137
  var wasm;
138
- var heap = new Array(128).fill(void 0);
139
- heap.push(void 0, null, true, false);
140
- function getObject(idx) {
141
- return heap[idx];
142
- }
143
- var heap_next = heap.length;
144
- function dropObject(idx) {
145
- if (idx < 132)
146
- return;
147
- heap[idx] = heap_next;
148
- heap_next = idx;
149
- }
150
- function takeObject(idx) {
151
- const ret = getObject(idx);
152
- dropObject(idx);
153
- return ret;
154
- }
155
- function isLikeNone(x) {
156
- return x === void 0 || x === null;
157
- }
158
- var cachedFloat64Memory0 = null;
159
- function getFloat64Memory0() {
160
- if (cachedFloat64Memory0 === null || cachedFloat64Memory0.byteLength === 0) {
161
- cachedFloat64Memory0 = new Float64Array(wasm.memory.buffer);
162
- }
163
- return cachedFloat64Memory0;
164
- }
165
- var cachedInt32Memory0 = null;
166
- function getInt32Memory0() {
167
- if (cachedInt32Memory0 === null || cachedInt32Memory0.byteLength === 0) {
168
- cachedInt32Memory0 = new Int32Array(wasm.memory.buffer);
169
- }
170
- return cachedInt32Memory0;
171
- }
172
- function addHeapObject(obj) {
173
- if (heap_next === heap.length)
174
- heap.push(heap.length + 1);
175
- const idx = heap_next;
176
- heap_next = heap[idx];
177
- heap[idx] = obj;
178
- return idx;
179
- }
180
138
  var WASM_VECTOR_LEN = 0;
181
- var cachedUint8Memory0 = null;
182
- function getUint8Memory0() {
183
- if (cachedUint8Memory0 === null || cachedUint8Memory0.byteLength === 0) {
184
- cachedUint8Memory0 = new Uint8Array(wasm.memory.buffer);
139
+ var cachedUint8ArrayMemory0 = null;
140
+ function getUint8ArrayMemory0() {
141
+ if (cachedUint8ArrayMemory0 === null || cachedUint8ArrayMemory0.byteLength === 0) {
142
+ cachedUint8ArrayMemory0 = new Uint8Array(wasm.memory.buffer);
185
143
  }
186
- return cachedUint8Memory0;
144
+ return cachedUint8ArrayMemory0;
187
145
  }
188
146
  var cachedTextEncoder = typeof TextEncoder !== "undefined" ? new TextEncoder("utf-8") : { encode: () => {
189
147
  throw Error("TextEncoder not available");
@@ -202,13 +160,13 @@ function passStringToWasm0(arg, malloc, realloc) {
202
160
  if (realloc === void 0) {
203
161
  const buf = cachedTextEncoder.encode(arg);
204
162
  const ptr2 = malloc(buf.length, 1) >>> 0;
205
- getUint8Memory0().subarray(ptr2, ptr2 + buf.length).set(buf);
163
+ getUint8ArrayMemory0().subarray(ptr2, ptr2 + buf.length).set(buf);
206
164
  WASM_VECTOR_LEN = buf.length;
207
165
  return ptr2;
208
166
  }
209
167
  let len = arg.length;
210
168
  let ptr = malloc(len, 1) >>> 0;
211
- const mem = getUint8Memory0();
169
+ const mem = getUint8ArrayMemory0();
212
170
  let offset = 0;
213
171
  for (; offset < len; offset++) {
214
172
  const code = arg.charCodeAt(offset);
@@ -221,13 +179,92 @@ function passStringToWasm0(arg, malloc, realloc) {
221
179
  arg = arg.slice(offset);
222
180
  }
223
181
  ptr = realloc(ptr, len, len = offset + arg.length * 3, 1) >>> 0;
224
- const view = getUint8Memory0().subarray(ptr + offset, ptr + len);
182
+ const view = getUint8ArrayMemory0().subarray(ptr + offset, ptr + len);
225
183
  const ret = encodeString(arg, view);
226
184
  offset += ret.written;
185
+ ptr = realloc(ptr, len, offset, 1) >>> 0;
227
186
  }
228
187
  WASM_VECTOR_LEN = offset;
229
188
  return ptr;
230
189
  }
190
+ var cachedDataViewMemory0 = null;
191
+ function getDataViewMemory0() {
192
+ if (cachedDataViewMemory0 === null || cachedDataViewMemory0.buffer.detached === true || cachedDataViewMemory0.buffer.detached === void 0 && cachedDataViewMemory0.buffer !== wasm.memory.buffer) {
193
+ cachedDataViewMemory0 = new DataView(wasm.memory.buffer);
194
+ }
195
+ return cachedDataViewMemory0;
196
+ }
197
+ function addToExternrefTable0(obj) {
198
+ const idx = wasm.__externref_table_alloc();
199
+ wasm.__wbindgen_export_4.set(idx, obj);
200
+ return idx;
201
+ }
202
+ function handleError(f, args) {
203
+ try {
204
+ return f.apply(this, args);
205
+ } catch (e) {
206
+ const idx = addToExternrefTable0(e);
207
+ wasm.__wbindgen_exn_store(idx);
208
+ }
209
+ }
210
+ var cachedTextDecoder = typeof TextDecoder !== "undefined" ? new TextDecoder("utf-8", { ignoreBOM: true, fatal: true }) : { decode: () => {
211
+ throw Error("TextDecoder not available");
212
+ } };
213
+ if (typeof TextDecoder !== "undefined") {
214
+ cachedTextDecoder.decode();
215
+ }
216
+ function getStringFromWasm0(ptr, len) {
217
+ ptr = ptr >>> 0;
218
+ return cachedTextDecoder.decode(getUint8ArrayMemory0().subarray(ptr, ptr + len));
219
+ }
220
+ var cachedUint32ArrayMemory0 = null;
221
+ function getUint32ArrayMemory0() {
222
+ if (cachedUint32ArrayMemory0 === null || cachedUint32ArrayMemory0.byteLength === 0) {
223
+ cachedUint32ArrayMemory0 = new Uint32Array(wasm.memory.buffer);
224
+ }
225
+ return cachedUint32ArrayMemory0;
226
+ }
227
+ function passArray32ToWasm0(arg, malloc) {
228
+ const ptr = malloc(arg.length * 4, 4) >>> 0;
229
+ getUint32ArrayMemory0().set(arg, ptr / 4);
230
+ WASM_VECTOR_LEN = arg.length;
231
+ return ptr;
232
+ }
233
+ function isLikeNone(x) {
234
+ return x === void 0 || x === null;
235
+ }
236
+ function passArray8ToWasm0(arg, malloc) {
237
+ const ptr = malloc(arg.length * 1, 1) >>> 0;
238
+ getUint8ArrayMemory0().set(arg, ptr / 1);
239
+ WASM_VECTOR_LEN = arg.length;
240
+ return ptr;
241
+ }
242
+ var CLOSURE_DTORS = typeof FinalizationRegistry === "undefined" ? { register: () => {
243
+ }, unregister: () => {
244
+ } } : new FinalizationRegistry((state) => {
245
+ wasm.__wbindgen_export_6.get(state.dtor)(state.a, state.b);
246
+ });
247
+ function makeMutClosure(arg0, arg1, dtor, f) {
248
+ const state = { a: arg0, b: arg1, cnt: 1, dtor };
249
+ const real = (...args) => {
250
+ state.cnt++;
251
+ const a = state.a;
252
+ state.a = 0;
253
+ try {
254
+ return f(a, state.b, ...args);
255
+ } finally {
256
+ if (--state.cnt === 0) {
257
+ wasm.__wbindgen_export_6.get(state.dtor)(a, state.b);
258
+ CLOSURE_DTORS.unregister(state);
259
+ } else {
260
+ state.a = a;
261
+ }
262
+ }
263
+ };
264
+ real.original = state;
265
+ CLOSURE_DTORS.register(real, state, state);
266
+ return real;
267
+ }
231
268
  function debugString(val) {
232
269
  const type = typeof val;
233
270
  if (type == "number" || type == "boolean" || val == null) {
@@ -266,7 +303,7 @@ function debugString(val) {
266
303
  }
267
304
  const builtInMatches = /\[object ([^\]]+)\]/.exec(toString.call(val));
268
305
  let className;
269
- if (builtInMatches.length > 1) {
306
+ if (builtInMatches && builtInMatches.length > 1) {
270
307
  className = builtInMatches[1];
271
308
  } else {
272
309
  return toString.call(val);
@@ -283,53 +320,15 @@ function debugString(val) {
283
320
  }
284
321
  return className;
285
322
  }
286
- var cachedTextDecoder = typeof TextDecoder !== "undefined" ? new TextDecoder("utf-8", { ignoreBOM: true, fatal: true }) : { decode: () => {
287
- throw Error("TextDecoder not available");
288
- } };
289
- if (typeof TextDecoder !== "undefined") {
290
- cachedTextDecoder.decode();
291
- }
292
- function getStringFromWasm0(ptr, len) {
293
- ptr = ptr >>> 0;
294
- return cachedTextDecoder.decode(getUint8Memory0().subarray(ptr, ptr + len));
295
- }
296
- function makeMutClosure(arg0, arg1, dtor, f) {
297
- const state = { a: arg0, b: arg1, cnt: 1, dtor };
298
- const real = (...args) => {
299
- state.cnt++;
300
- const a = state.a;
301
- state.a = 0;
302
- try {
303
- return f(a, state.b, ...args);
304
- } finally {
305
- if (--state.cnt === 0) {
306
- wasm.__wbindgen_export_2.get(state.dtor)(a, state.b);
307
- } else {
308
- state.a = a;
309
- }
310
- }
311
- };
312
- real.original = state;
313
- return real;
314
- }
315
- function __wbg_adapter_22(arg0, arg1, arg2) {
316
- const ret = wasm._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__hddb5167cc04b5326(arg0, arg1, addHeapObject(arg2));
317
- return ret !== 0;
318
- }
319
- function __wbg_adapter_25(arg0, arg1, arg2) {
320
- wasm._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h21e86434f3007437(arg0, arg1, addHeapObject(arg2));
323
+ function takeFromExternrefTable0(idx) {
324
+ const value = wasm.__wbindgen_export_4.get(idx);
325
+ wasm.__externref_table_dealloc(idx);
326
+ return value;
321
327
  }
322
328
  function embed(elem, runtime, options) {
323
- try {
324
- const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
325
- wasm.embed(retptr, addHeapObject(elem), addHeapObject(runtime), addHeapObject(options));
326
- var r0 = getInt32Memory0()[retptr / 4 + 0];
327
- var r1 = getInt32Memory0()[retptr / 4 + 1];
328
- if (r1) {
329
- throw takeObject(r0);
330
- }
331
- } finally {
332
- wasm.__wbindgen_add_to_stack_pointer(16);
329
+ const ret = wasm.embed(elem, runtime, options);
330
+ if (ret[1]) {
331
+ throw takeFromExternrefTable0(ret[0]);
333
332
  }
334
333
  }
335
334
  function write(text) {
@@ -345,97 +344,75 @@ function writeln(text) {
345
344
  function resize(_width, _height) {
346
345
  wasm.resize(_width, _height);
347
346
  }
348
- var stack_pointer = 128;
349
- function addBorrowedObject(obj) {
350
- if (stack_pointer == 1)
351
- throw new Error("out of js stack");
352
- heap[--stack_pointer] = obj;
353
- return stack_pointer;
354
- }
355
347
  function loadHistory(history, cursor) {
356
- try {
357
- wasm.loadHistory(addBorrowedObject(history), cursor);
358
- } finally {
359
- heap[stack_pointer++] = void 0;
360
- }
348
+ wasm.loadHistory(history, cursor);
361
349
  }
362
350
  function passInitQueries(queries) {
363
- const ret = wasm.passInitQueries(addHeapObject(queries));
364
- return takeObject(ret);
351
+ const ret = wasm.passInitQueries(queries);
352
+ return ret;
365
353
  }
366
354
  function configureDatabase(db) {
367
- const ret = wasm.configureDatabase(addHeapObject(db));
368
- return takeObject(ret);
369
- }
370
- function handleError(f, args) {
371
- try {
372
- return f.apply(this, args);
373
- } catch (e) {
374
- wasm.__wbindgen_exn_store(addHeapObject(e));
375
- }
376
- }
377
- var cachedUint32Memory0 = null;
378
- function getUint32Memory0() {
379
- if (cachedUint32Memory0 === null || cachedUint32Memory0.byteLength === 0) {
380
- cachedUint32Memory0 = new Uint32Array(wasm.memory.buffer);
381
- }
382
- return cachedUint32Memory0;
355
+ const ret = wasm.configureDatabase(db);
356
+ return ret;
383
357
  }
384
- function passArray32ToWasm0(arg, malloc) {
385
- const ptr = malloc(arg.length * 4, 4) >>> 0;
386
- getUint32Memory0().set(arg, ptr / 4);
387
- WASM_VECTOR_LEN = arg.length;
388
- return ptr;
358
+ function __wbg_adapter_26(arg0, arg1, arg2) {
359
+ const ret = wasm.closure114_externref_shim(arg0, arg1, arg2);
360
+ return ret !== 0;
389
361
  }
390
- function passArray8ToWasm0(arg, malloc) {
391
- const ptr = malloc(arg.length * 1, 1) >>> 0;
392
- getUint8Memory0().set(arg, ptr / 1);
393
- WASM_VECTOR_LEN = arg.length;
394
- return ptr;
362
+ function __wbg_adapter_29(arg0, arg1, arg2) {
363
+ wasm.closure177_externref_shim(arg0, arg1, arg2);
395
364
  }
396
- function __wbg_adapter_213(arg0, arg1, arg2, arg3) {
397
- wasm.wasm_bindgen__convert__closures__invoke2_mut__h6ec9b37957db5671(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
365
+ function __wbg_adapter_221(arg0, arg1, arg2, arg3) {
366
+ wasm.closure1172_externref_shim(arg0, arg1, arg2, arg3);
398
367
  }
399
- var ShellInputContext = Object.freeze({ FileInput: 0, "0": "FileInput" });
400
- var WcWidth = Object.freeze({ Width0: 0, "0": "Width0", Width1: 1, "1": "Width1", Width2: 2, "2": "Width2" });
368
+ var ShellInputContext = Object.freeze({
369
+ FileInput: 0,
370
+ "0": "FileInput"
371
+ });
372
+ var WcWidth = Object.freeze({
373
+ Width0: 0,
374
+ "0": "Width0",
375
+ Width1: 1,
376
+ "1": "Width1",
377
+ Width2: 2,
378
+ "2": "Width2"
379
+ });
380
+ var DuckDBConfigFinalization = typeof FinalizationRegistry === "undefined" ? { register: () => {
381
+ }, unregister: () => {
382
+ } } : new FinalizationRegistry((ptr) => wasm.__wbg_duckdbconfig_free(ptr >>> 0, 1));
401
383
  var DuckDBConfig = class _DuckDBConfig {
402
384
  static __wrap(ptr) {
403
385
  ptr = ptr >>> 0;
404
386
  const obj = Object.create(_DuckDBConfig.prototype);
405
387
  obj.__wbg_ptr = ptr;
388
+ DuckDBConfigFinalization.register(obj, obj.__wbg_ptr, obj);
406
389
  return obj;
407
390
  }
408
391
  __destroy_into_raw() {
409
392
  const ptr = this.__wbg_ptr;
410
393
  this.__wbg_ptr = 0;
394
+ DuckDBConfigFinalization.unregister(this);
411
395
  return ptr;
412
396
  }
413
397
  free() {
414
398
  const ptr = this.__destroy_into_raw();
415
- wasm.__wbg_duckdbconfig_free(ptr);
399
+ wasm.__wbg_duckdbconfig_free(ptr, 0);
416
400
  }
417
401
  /**
418
- * @returns {string | undefined}
419
- */
402
+ * @returns {string | undefined}
403
+ */
420
404
  get path() {
421
- try {
422
- const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
423
- wasm.duckdbconfig_path(retptr, this.__wbg_ptr);
424
- var r0 = getInt32Memory0()[retptr / 4 + 0];
425
- var r1 = getInt32Memory0()[retptr / 4 + 1];
426
- let v1;
427
- if (r0 !== 0) {
428
- v1 = getStringFromWasm0(r0, r1).slice();
429
- wasm.__wbindgen_free(r0, r1 * 1);
430
- }
431
- return v1;
432
- } finally {
433
- wasm.__wbindgen_add_to_stack_pointer(16);
405
+ const ret = wasm.duckdbconfig_path(this.__wbg_ptr);
406
+ let v1;
407
+ if (ret[0] !== 0) {
408
+ v1 = getStringFromWasm0(ret[0], ret[1]).slice();
409
+ wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
434
410
  }
411
+ return v1;
435
412
  }
436
413
  /**
437
- * @param {string | undefined} path
438
- */
414
+ * @param {string | null} [path]
415
+ */
439
416
  set path(path) {
440
417
  var ptr0 = isLikeNone(path) ? 0 : passStringToWasm0(path, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
441
418
  var len0 = WASM_VECTOR_LEN;
@@ -449,7 +426,7 @@ async function __wbg_load(module2, imports) {
449
426
  return await WebAssembly.instantiateStreaming(module2, imports);
450
427
  } catch (e) {
451
428
  if (module2.headers.get("Content-Type") != "application/wasm") {
452
- console.warn("`WebAssembly.instantiateStreaming` failed because your server does not serve wasm with `application/wasm` MIME type. Falling back to `WebAssembly.instantiate` which is slower. Original error:\n", e);
429
+ console.warn("`WebAssembly.instantiateStreaming` failed because your server does not serve Wasm with `application/wasm` MIME type. Falling back to `WebAssembly.instantiate` which is slower. Original error:\n", e);
453
430
  } else {
454
431
  throw e;
455
432
  }
@@ -469,586 +446,598 @@ async function __wbg_load(module2, imports) {
469
446
  function __wbg_get_imports() {
470
447
  const imports = {};
471
448
  imports.wbg = {};
472
- imports.wbg.__wbindgen_object_drop_ref = function(arg0) {
473
- takeObject(arg0);
474
- };
475
- imports.wbg.__wbg_getFeatureFlags_9c3df152bef86fb8 = function() {
476
- return handleError(function(arg0) {
477
- const ret = getObject(arg0).getFeatureFlags();
478
- return addHeapObject(ret);
479
- }, arguments);
480
- };
481
- imports.wbg.__wbindgen_number_get = function(arg0, arg1) {
482
- const obj = getObject(arg1);
483
- const ret = typeof obj === "number" ? obj : void 0;
484
- getFloat64Memory0()[arg0 / 8 + 1] = isLikeNone(ret) ? 0 : ret;
485
- getInt32Memory0()[arg0 / 4 + 0] = !isLikeNone(ret);
486
- };
487
- imports.wbg.__wbg_collectFileStatistics_e921aaaeffb34db1 = function() {
488
- return handleError(function(arg0, arg1, arg2, arg3) {
489
- const ret = getObject(arg0).collectFileStatistics(getStringFromWasm0(arg1, arg2), arg3 !== 0);
490
- return addHeapObject(ret);
491
- }, arguments);
492
- };
493
- imports.wbg.__wbg_registerOPFSFileName_8efb2b5d0df8d9a7 = function() {
494
- return handleError(function(arg0, arg1, arg2) {
495
- const ret = getObject(arg0).registerOPFSFileName(getStringFromWasm0(arg1, arg2));
496
- return addHeapObject(ret);
497
- }, arguments);
449
+ imports.wbg.__wbg_attachCustomKeyEventHandler_5c309ad8c2d6ff9c = function(arg0, arg1) {
450
+ arg0.attachCustomKeyEventHandler(arg1);
498
451
  };
499
- imports.wbg.__wbg_exportFileStatistics_6b72eb40ca2eb4d5 = function() {
500
- return handleError(function(arg0, arg1, arg2) {
501
- const ret = getObject(arg0).exportFileStatistics(getStringFromWasm0(arg1, arg2));
502
- return addHeapObject(ret);
503
- }, arguments);
504
- };
505
- imports.wbg.__wbg_construct_e68e1da98af9f9aa = function(arg0) {
506
- const ret = new import_xterm.Terminal(getObject(arg0));
507
- return addHeapObject(ret);
452
+ imports.wbg.__wbg_backgroundColor_51cf19ee7d4b277a = function(arg0, arg1) {
453
+ const ret = arg1.backgroundColor;
454
+ const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
455
+ const len1 = WASM_VECTOR_LEN;
456
+ getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
457
+ getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
508
458
  };
509
- imports.wbg.__wbg_cols_5c0bdee281fe5dd9 = function(arg0) {
510
- const ret = getObject(arg0).cols;
459
+ imports.wbg.__wbg_bigInt64Array_c64b3751e74d5277 = function(arg0) {
460
+ const ret = arg0.bigInt64Array;
511
461
  return ret;
512
462
  };
513
- imports.wbg.__wbg_withWebGL_03eecbba7b231a0f = function(arg0) {
514
- const ret = getObject(arg0).withWebGL;
463
+ imports.wbg.__wbg_blockSize_cd30a6366d631ae8 = function(arg0) {
464
+ const ret = arg0.blockSize;
515
465
  return ret;
516
466
  };
517
- imports.wbg.__wbg_attachCustomKeyEventHandler_d9201dcf85a52ecb = function(arg0, arg1) {
518
- getObject(arg0).attachCustomKeyEventHandler(getObject(arg1));
467
+ imports.wbg.__wbg_blockStats_7e6019968a50af3b = function(arg0) {
468
+ const ret = arg0.blockStats;
469
+ return ret;
519
470
  };
520
- imports.wbg.__wbindgen_object_clone_ref = function(arg0) {
521
- const ret = getObject(arg0);
522
- return addHeapObject(ret);
471
+ imports.wbg.__wbg_buffer_609cc3eee51ed158 = function(arg0) {
472
+ const ret = arg0.buffer;
473
+ return ret;
523
474
  };
524
- imports.wbg.__wbg_write_d31c366220b675c8 = function(arg0, arg1, arg2) {
525
- getObject(arg0).write(getStringFromWasm0(arg1, arg2));
475
+ imports.wbg.__wbg_call_672a4d21634d4a24 = function() {
476
+ return handleError(function(arg0, arg1) {
477
+ const ret = arg0.call(arg1);
478
+ return ret;
479
+ }, arguments);
526
480
  };
527
- imports.wbg.__wbg_pushInputToHistory_2b5dfdb10ddcc094 = function() {
481
+ imports.wbg.__wbg_call_7cccdd69e0791ae2 = function() {
528
482
  return handleError(function(arg0, arg1, arg2) {
529
- const ret = getObject(arg0).pushInputToHistory(getStringFromWasm0(arg1, arg2));
530
- return addHeapObject(ret);
483
+ const ret = arg0.call(arg1, arg2);
484
+ return ret;
531
485
  }, arguments);
532
486
  };
533
- imports.wbg.__wbg_getPlatformFeatures_0c7441cfa3b5e678 = function() {
534
- return handleError(function() {
535
- const ret = (0, import_duckdb_wasm.getPlatformFeatures)();
536
- return addHeapObject(ret);
487
+ imports.wbg.__wbg_collectFileStatistics_d40af29ff6fc8c95 = function() {
488
+ return handleError(function(arg0, arg1, arg2, arg3) {
489
+ const ret = arg0.collectFileStatistics(getStringFromWasm0(arg1, arg2), arg3 !== 0);
490
+ return ret;
537
491
  }, arguments);
538
492
  };
539
- imports.wbg.__wbg_bigInt64Array_b81766f687b4b0b6 = function(arg0) {
540
- const ret = getObject(arg0).bigInt64Array;
493
+ imports.wbg.__wbg_cols_77a8050235d63c90 = function(arg0) {
494
+ const ret = arg0.cols;
541
495
  return ret;
542
496
  };
543
- imports.wbg.__wbg_crossOriginIsolated_f7f727dc97628776 = function(arg0) {
544
- const ret = getObject(arg0).crossOriginIsolated;
545
- return ret;
497
+ imports.wbg.__wbg_connectInternal_818454f7281c00df = function() {
498
+ return handleError(function(arg0) {
499
+ const ret = arg0.connectInternal();
500
+ return ret;
501
+ }, arguments);
546
502
  };
547
- imports.wbg.__wbg_wasmThreads_cbe2eebf031b26d7 = function(arg0) {
548
- const ret = getObject(arg0).wasmThreads;
503
+ imports.wbg.__wbg_construct_036a353ca42f67b4 = function(arg0) {
504
+ const ret = new import_xterm.Terminal(arg0);
549
505
  return ret;
550
506
  };
551
- imports.wbg.__wbg_wasmSIMD_f2cbc78c82c4d673 = function(arg0) {
552
- const ret = getObject(arg0).wasmSIMD;
553
- return ret;
507
+ imports.wbg.__wbg_copyFileToBuffer_83cb2af8941ca82a = function() {
508
+ return handleError(function(arg0, arg1, arg2) {
509
+ const ret = arg0.copyFileToBuffer(getStringFromWasm0(arg1, arg2));
510
+ return ret;
511
+ }, arguments);
554
512
  };
555
- imports.wbg.__wbg_wasmBulkMemory_51a6e2786de28fdc = function(arg0) {
556
- const ret = getObject(arg0).wasmBulkMemory;
513
+ imports.wbg.__wbg_crossOriginIsolated_0118e2417ec095ee = function(arg0) {
514
+ const ret = arg0.crossOriginIsolated;
557
515
  return ret;
558
516
  };
559
- imports.wbg.__wbg_wasmExceptions_f629aff7d2e90cd3 = function(arg0) {
560
- const ret = getObject(arg0).wasmExceptions;
517
+ imports.wbg.__wbg_ctrlKey_1e826e468105ac11 = function(arg0) {
518
+ const ret = arg0.ctrlKey;
561
519
  return ret;
562
520
  };
563
- imports.wbg.__wbg_dropFile_377dfecd7aafe02e = function() {
564
- return handleError(function(arg0, arg1, arg2) {
565
- const ret = getObject(arg0).dropFile(getStringFromWasm0(arg1, arg2));
566
- return addHeapObject(ret);
521
+ imports.wbg.__wbg_disconnect_92d81f4ec3f107ec = function() {
522
+ return handleError(function(arg0, arg1) {
523
+ const ret = arg0.disconnect(arg1 >>> 0);
524
+ return ret;
567
525
  }, arguments);
568
526
  };
569
- imports.wbg.__wbg_dropFiles_a67bda4902ba5f36 = function() {
570
- return handleError(function(arg0) {
571
- const ret = getObject(arg0).dropFiles();
572
- return addHeapObject(ret);
527
+ imports.wbg.__wbg_downloadFile_d0dec3d05b3a9f19 = function() {
528
+ return handleError(function(arg0, arg1, arg2, arg3) {
529
+ const ret = arg0.downloadFile(getStringFromWasm0(arg1, arg2), arg3);
530
+ return ret;
573
531
  }, arguments);
574
532
  };
575
- imports.wbg.__wbg_copyFileToBuffer_8303548b5434aa38 = function() {
533
+ imports.wbg.__wbg_dropFile_6eb68222192e72fc = function() {
576
534
  return handleError(function(arg0, arg1, arg2) {
577
- const ret = getObject(arg0).copyFileToBuffer(getStringFromWasm0(arg1, arg2));
578
- return addHeapObject(ret);
535
+ const ret = arg0.dropFile(getStringFromWasm0(arg1, arg2));
536
+ return ret;
579
537
  }, arguments);
580
538
  };
581
- imports.wbg.__wbg_open_8d9e16e84b9c860d = function() {
582
- return handleError(function(arg0, arg1) {
583
- const ret = getObject(arg0).open(DuckDBConfig.__wrap(arg1));
584
- return addHeapObject(ret);
585
- }, arguments);
586
- };
587
- imports.wbg.__wbg_getVersion_6fe922c9d7787e50 = function() {
539
+ imports.wbg.__wbg_dropFiles_8bf37b450b4de5ee = function() {
588
540
  return handleError(function(arg0) {
589
- const ret = getObject(arg0).getVersion();
590
- return addHeapObject(ret);
541
+ const ret = arg0.dropFiles();
542
+ return ret;
591
543
  }, arguments);
592
544
  };
593
- imports.wbg.__wbindgen_string_get = function(arg0, arg1) {
594
- const obj = getObject(arg1);
595
- const ret = typeof obj === "string" ? obj : void 0;
596
- var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
597
- var len1 = WASM_VECTOR_LEN;
598
- getInt32Memory0()[arg0 / 4 + 1] = len1;
599
- getInt32Memory0()[arg0 / 4 + 0] = ptr1;
600
- };
601
- imports.wbg.__wbg_connectInternal_21690058186ac42a = function() {
602
- return handleError(function(arg0) {
603
- const ret = getObject(arg0).connectInternal();
604
- return addHeapObject(ret);
605
- }, arguments);
545
+ imports.wbg.__wbg_error_7534b8e9a36f1ab4 = function(arg0, arg1) {
546
+ let deferred0_0;
547
+ let deferred0_1;
548
+ try {
549
+ deferred0_0 = arg0;
550
+ deferred0_1 = arg1;
551
+ console.error(getStringFromWasm0(arg0, arg1));
552
+ } finally {
553
+ wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
554
+ }
606
555
  };
607
- imports.wbg.__wbg_downloadFile_4cc8985e2c240fec = function() {
608
- return handleError(function(arg0, arg1, arg2, arg3) {
609
- const ret = getObject(arg0).downloadFile(getStringFromWasm0(arg1, arg2), takeObject(arg3));
610
- return addHeapObject(ret);
611
- }, arguments);
556
+ imports.wbg.__wbg_error_ebb9ec1bc5af2f31 = function(arg0, arg1) {
557
+ console.error(getStringFromWasm0(arg0, arg1));
612
558
  };
613
- imports.wbg.__wbg_globFiles_7fe5c8e5e369e77b = function() {
559
+ imports.wbg.__wbg_exportFileStatistics_d52b61d6c201da1c = function() {
614
560
  return handleError(function(arg0, arg1, arg2) {
615
- const ret = getObject(arg0).globFiles(getStringFromWasm0(arg1, arg2));
616
- return addHeapObject(ret);
561
+ const ret = arg0.exportFileStatistics(getStringFromWasm0(arg1, arg2));
562
+ return ret;
617
563
  }, arguments);
618
564
  };
619
- imports.wbg.__wbg_pickFiles_cb1fb4d097b8cdab = function() {
620
- return handleError(function(arg0) {
621
- const ret = getObject(arg0).pickFiles();
622
- return addHeapObject(ret);
623
- }, arguments);
565
+ imports.wbg.__wbg_fit_0db5c78a2a85f563 = function(arg0) {
566
+ arg0.fit();
624
567
  };
625
- imports.wbg.__wbg_runQuery_41cfa048b61675e2 = function() {
626
- return handleError(function(arg0, arg1, arg2, arg3) {
627
- const ret = getObject(arg0).runQuery(arg1 >>> 0, getStringFromWasm0(arg2, arg3));
628
- return addHeapObject(ret);
629
- }, arguments);
568
+ imports.wbg.__wbg_focus_dd92db4314c4db81 = function(arg0) {
569
+ arg0.focus();
630
570
  };
631
- imports.wbg.__wbg_tokenize_f167882593146b7d = function() {
632
- return handleError(function(arg0, arg1, arg2) {
633
- const ret = getObject(arg0).tokenize(getStringFromWasm0(arg1, arg2));
634
- return addHeapObject(ret);
635
- }, arguments);
636
- };
637
- imports.wbg.__wbg_offsets_fc2b1a7bf689ba81 = function(arg0, arg1) {
638
- const ret = getObject(arg1).offsets;
639
- const ptr1 = passArray32ToWasm0(ret, wasm.__wbindgen_malloc);
571
+ imports.wbg.__wbg_fontFamily_cac93414dbe897cf = function(arg0, arg1) {
572
+ const ret = arg1.fontFamily;
573
+ const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
640
574
  const len1 = WASM_VECTOR_LEN;
641
- getInt32Memory0()[arg0 / 4 + 1] = len1;
642
- getInt32Memory0()[arg0 / 4 + 0] = ptr1;
575
+ getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
576
+ getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
643
577
  };
644
- imports.wbg.__wbg_types_b5d339a3bb88320b = function(arg0, arg1) {
645
- const ret = getObject(arg1).types;
646
- const ptr1 = passArray8ToWasm0(ret, wasm.__wbindgen_malloc);
647
- const len1 = WASM_VECTOR_LEN;
648
- getInt32Memory0()[arg0 / 4 + 1] = len1;
649
- getInt32Memory0()[arg0 / 4 + 0] = ptr1;
578
+ imports.wbg.__wbg_getFeatureFlags_14afaddbcef26858 = function() {
579
+ return handleError(function(arg0) {
580
+ const ret = arg0.getFeatureFlags();
581
+ return ret;
582
+ }, arguments);
650
583
  };
651
- imports.wbg.__wbg_readClipboardText_f71f3b3a53a23822 = function() {
584
+ imports.wbg.__wbg_getPlatformFeatures_40454c7f78791eb6 = function() {
585
+ return handleError(function() {
586
+ const ret = (0, import_duckdb_wasm.getPlatformFeatures)();
587
+ return ret;
588
+ }, arguments);
589
+ };
590
+ imports.wbg.__wbg_getVersion_32486a199e795762 = function() {
652
591
  return handleError(function(arg0) {
653
- const ret = getObject(arg0).readClipboardText();
654
- return addHeapObject(ret);
592
+ const ret = arg0.getVersion();
593
+ return ret;
655
594
  }, arguments);
656
595
  };
657
- imports.wbg.__wbg_focus_909df7c111b58b83 = function(arg0) {
658
- getObject(arg0).focus();
596
+ imports.wbg.__wbg_get_b9b93047fe3cf45b = function(arg0, arg1) {
597
+ const ret = arg0[arg1 >>> 0];
598
+ return ret;
659
599
  };
660
- imports.wbg.__wbg_fit_cdd1076e3e5970b7 = function(arg0) {
661
- getObject(arg0).fit();
600
+ imports.wbg.__wbg_globFiles_542704d623854358 = function() {
601
+ return handleError(function(arg0, arg1, arg2) {
602
+ const ret = arg0.globFiles(getStringFromWasm0(arg1, arg2));
603
+ return ret;
604
+ }, arguments);
662
605
  };
663
- imports.wbg.__wbindgen_cb_drop = function(arg0) {
664
- const obj = takeObject(arg0).original;
665
- if (obj.cnt-- == 1) {
666
- obj.a = 0;
667
- return true;
606
+ imports.wbg.__wbg_instanceof_WebLinksAddon_3750ea42996e2252 = function(arg0) {
607
+ let result;
608
+ try {
609
+ result = arg0 instanceof import_xterm_addon_web_links.WebLinksAddon;
610
+ } catch (_) {
611
+ result = false;
668
612
  }
669
- const ret = false;
613
+ const ret = result;
670
614
  return ret;
671
615
  };
672
- imports.wbg.__wbg_setrows_6b947e6079c486dc = function(arg0, arg1) {
673
- getObject(arg0).rows = arg1 >>> 0;
674
- };
675
- imports.wbg.__wbg_setcursorBlink_8a3f7244eb29b1f6 = function(arg0, arg1) {
676
- getObject(arg0).cursorBlink = arg1 !== 0;
616
+ imports.wbg.__wbg_instanceof_WebglAddon_d96a60a43cae1674 = function(arg0) {
617
+ let result;
618
+ try {
619
+ result = arg0 instanceof import_xterm_addon_webgl.WebglAddon;
620
+ } catch (_) {
621
+ result = false;
622
+ }
623
+ const ret = result;
624
+ return ret;
677
625
  };
678
- imports.wbg.__wbg_setcursorWidth_55abde268dea1312 = function(arg0, arg1) {
679
- getObject(arg0).cursorWidth = arg1 >>> 0;
626
+ imports.wbg.__wbg_instanceof_Window_def73ea0955fc569 = function(arg0) {
627
+ let result;
628
+ try {
629
+ result = arg0 instanceof Window;
630
+ } catch (_) {
631
+ result = false;
632
+ }
633
+ const ret = result;
634
+ return ret;
680
635
  };
681
- imports.wbg.__wbg_fontFamily_204223b3338f8381 = function(arg0, arg1) {
682
- const ret = getObject(arg1).fontFamily;
636
+ imports.wbg.__wbg_key_7b5c6cb539be8e13 = function(arg0, arg1) {
637
+ const ret = arg1.key;
683
638
  const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
684
639
  const len1 = WASM_VECTOR_LEN;
685
- getInt32Memory0()[arg0 / 4 + 1] = len1;
686
- getInt32Memory0()[arg0 / 4 + 0] = ptr1;
640
+ getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
641
+ getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
687
642
  };
688
- imports.wbg.__wbg_setfontFamily_a0645fa4f7aaaf21 = function(arg0, arg1, arg2) {
689
- getObject(arg0).fontFamily = getStringFromWasm0(arg1, arg2);
643
+ imports.wbg.__wbg_length_a446193dc22c12f8 = function(arg0) {
644
+ const ret = arg0.length;
645
+ return ret;
690
646
  };
691
- imports.wbg.__wbg_setfontSize_11962e753390bde1 = function(arg0, arg1) {
692
- getObject(arg0).fontSize = arg1 >>> 0;
647
+ imports.wbg.__wbg_length_e2d2a49132c1b256 = function(arg0) {
648
+ const ret = arg0.length;
649
+ return ret;
693
650
  };
694
- imports.wbg.__wbg_setdrawBoldTextInBrightColors_4f711243dff6df11 = function(arg0, arg1) {
695
- getObject(arg0).drawBoldTextInBrightColors = arg1 !== 0;
651
+ imports.wbg.__wbg_loadAddon_143d540bb5725490 = function(arg0, arg1) {
652
+ arg0.loadAddon(arg1);
696
653
  };
697
- imports.wbg.__wbg_setrightClickSelectsWord_ede48f0595cd3fed = function(arg0, arg1) {
698
- getObject(arg0).rightClickSelectsWord = arg1 !== 0;
654
+ imports.wbg.__wbg_log_33ef14fd0c9ec1a3 = function(arg0, arg1) {
655
+ console.log(getStringFromWasm0(arg0, arg1));
699
656
  };
700
- imports.wbg.__wbg_setallowProposedApi_0147ac2b5a9906b3 = function(arg0, arg1) {
701
- getObject(arg0).allowProposedApi = arg1 !== 0;
657
+ imports.wbg.__wbg_message_97a2af9b89d693a3 = function(arg0) {
658
+ const ret = arg0.message;
659
+ return ret;
702
660
  };
703
- imports.wbg.__wbg_setbrightYellow_deb3fbc58aa44642 = function(arg0, arg1, arg2) {
704
- getObject(arg0).brightYellow = getStringFromWasm0(arg1, arg2);
661
+ imports.wbg.__wbg_metaKey_e1dd47d709a80ce5 = function(arg0) {
662
+ const ret = arg0.metaKey;
663
+ return ret;
705
664
  };
706
- imports.wbg.__wbg_setforeground_87dc40b78955df05 = function(arg0, arg1, arg2) {
707
- getObject(arg0).foreground = getStringFromWasm0(arg1, arg2);
665
+ imports.wbg.__wbg_new_23a2665fac83c611 = function(arg0, arg1) {
666
+ try {
667
+ var state0 = { a: arg0, b: arg1 };
668
+ var cb0 = (arg02, arg12) => {
669
+ const a = state0.a;
670
+ state0.a = 0;
671
+ try {
672
+ return __wbg_adapter_221(a, state0.b, arg02, arg12);
673
+ } finally {
674
+ state0.a = a;
675
+ }
676
+ };
677
+ const ret = new Promise(cb0);
678
+ return ret;
679
+ } finally {
680
+ state0.a = state0.b = 0;
681
+ }
708
682
  };
709
- imports.wbg.__wbg_backgroundColor_17a9784f0207d5b0 = function(arg0, arg1) {
710
- const ret = getObject(arg1).backgroundColor;
711
- const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
712
- const len1 = WASM_VECTOR_LEN;
713
- getInt32Memory0()[arg0 / 4 + 1] = len1;
714
- getInt32Memory0()[arg0 / 4 + 0] = ptr1;
683
+ imports.wbg.__wbg_new_405e22f390576ce2 = function() {
684
+ const ret = new Object();
685
+ return ret;
715
686
  };
716
- imports.wbg.__wbg_setbackground_550386b829ec5c24 = function(arg0, arg1, arg2) {
717
- getObject(arg0).background = getStringFromWasm0(arg1, arg2);
687
+ imports.wbg.__wbg_new_7890702e2f921af0 = function(arg0) {
688
+ const ret = new import_xterm_addon_webgl.WebglAddon(arg0 === 16777215 ? void 0 : arg0 !== 0);
689
+ return ret;
718
690
  };
719
- imports.wbg.__wbg_settheme_4e67878b7d6cc0fc = function(arg0, arg1) {
720
- getObject(arg0).theme = getObject(arg1);
691
+ imports.wbg.__wbg_new_7c075f00f439f1e0 = function() {
692
+ const ret = new import_xterm_addon_fit.FitAddon();
693
+ return ret;
721
694
  };
722
- imports.wbg.__wbg_open_7d3a0690ea9e5a45 = function(arg0, arg1) {
723
- getObject(arg0).open(takeObject(arg1));
695
+ imports.wbg.__wbg_new_8a6f238a6ece86ea = function() {
696
+ const ret = new Error();
697
+ return ret;
724
698
  };
725
- imports.wbg.__wbg_new_70821bf9dbd17152 = function(arg0) {
726
- const ret = new import_xterm_addon_webgl.WebglAddon(arg0 === 16777215 ? void 0 : arg0 !== 0);
727
- return addHeapObject(ret);
699
+ imports.wbg.__wbg_new_a12002a7f91c75be = function(arg0) {
700
+ const ret = new Uint8Array(arg0);
701
+ return ret;
728
702
  };
729
- imports.wbg.__wbg_instanceof_WebglAddon_c39f68697a31af73 = function(arg0) {
730
- let result;
731
- try {
732
- result = getObject(arg0) instanceof import_xterm_addon_webgl.WebglAddon;
733
- } catch (e) {
734
- result = false;
735
- }
736
- const ret = result;
703
+ imports.wbg.__wbg_new_c2ccb7a35264c397 = function(arg0, arg1, arg2) {
704
+ const ret = new import_xterm_addon_web_links.WebLinksAddon(arg0, arg1, arg2 === 16777215 ? void 0 : arg2 !== 0);
737
705
  return ret;
738
706
  };
739
- imports.wbg.__wbg_loadAddon_1bfe744e6f456990 = function(arg0, arg1) {
740
- getObject(arg0).loadAddon(takeObject(arg1));
707
+ imports.wbg.__wbg_new_c68d7209be747379 = function(arg0, arg1) {
708
+ const ret = new Error(getStringFromWasm0(arg0, arg1));
709
+ return ret;
741
710
  };
742
- imports.wbg.__wbg_new_92aa50f448dac851 = function(arg0, arg1, arg2) {
743
- const ret = new import_xterm_addon_web_links.WebLinksAddon(getObject(arg0), getObject(arg1), arg2 === 16777215 ? void 0 : arg2 !== 0);
744
- return addHeapObject(ret);
711
+ imports.wbg.__wbg_newnoargs_105ed471475aaf50 = function(arg0, arg1) {
712
+ const ret = new Function(getStringFromWasm0(arg0, arg1));
713
+ return ret;
745
714
  };
746
- imports.wbg.__wbg_instanceof_WebLinksAddon_fbcf4efb54881c53 = function(arg0) {
747
- let result;
748
- try {
749
- result = getObject(arg0) instanceof import_xterm_addon_web_links.WebLinksAddon;
750
- } catch (e) {
751
- result = false;
752
- }
753
- const ret = result;
715
+ imports.wbg.__wbg_now_d18023d54d4e5500 = function(arg0) {
716
+ const ret = arg0.now();
754
717
  return ret;
755
718
  };
756
- imports.wbg.__wbg_disconnect_d9855433758f0afc = function() {
719
+ imports.wbg.__wbg_offsets_9a0c43647dfe8174 = function(arg0, arg1) {
720
+ const ret = arg1.offsets;
721
+ const ptr1 = passArray32ToWasm0(ret, wasm.__wbindgen_malloc);
722
+ const len1 = WASM_VECTOR_LEN;
723
+ getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
724
+ getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
725
+ };
726
+ imports.wbg.__wbg_open_89ca330653f2b749 = function() {
757
727
  return handleError(function(arg0, arg1) {
758
- const ret = getObject(arg0).disconnect(arg1 >>> 0);
759
- return addHeapObject(ret);
728
+ const ret = arg0.open(DuckDBConfig.__wrap(arg1));
729
+ return ret;
760
730
  }, arguments);
761
731
  };
762
- imports.wbg.__wbindgen_json_serialize = function(arg0, arg1) {
763
- const obj = getObject(arg1);
764
- const ret = JSON.stringify(obj === void 0 ? null : obj);
765
- const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
766
- const len1 = WASM_VECTOR_LEN;
767
- getInt32Memory0()[arg0 / 4 + 1] = len1;
768
- getInt32Memory0()[arg0 / 4 + 0] = ptr1;
732
+ imports.wbg.__wbg_open_ea472ea5209b0983 = function(arg0, arg1) {
733
+ arg0.open(arg1);
769
734
  };
770
- imports.wbg.__wbg_static_accessor_PACKAGE_NAME_0af717684e189e55 = function(arg0) {
771
- const ret = import_duckdb_wasm.PACKAGE_NAME;
772
- const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
773
- const len1 = WASM_VECTOR_LEN;
774
- getInt32Memory0()[arg0 / 4 + 1] = len1;
775
- getInt32Memory0()[arg0 / 4 + 0] = ptr1;
735
+ imports.wbg.__wbg_performance_c185c0cdc2766575 = function(arg0) {
736
+ const ret = arg0.performance;
737
+ return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
776
738
  };
777
- imports.wbg.__wbg_static_accessor_PACKAGE_VERSION_549ba11794cf5003 = function(arg0) {
778
- const ret = import_duckdb_wasm.PACKAGE_VERSION;
779
- const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
780
- const len1 = WASM_VECTOR_LEN;
781
- getInt32Memory0()[arg0 / 4 + 1] = len1;
782
- getInt32Memory0()[arg0 / 4 + 0] = ptr1;
739
+ imports.wbg.__wbg_pickFiles_c443e685aed27e4f = function() {
740
+ return handleError(function(arg0) {
741
+ const ret = arg0.pickFiles();
742
+ return ret;
743
+ }, arguments);
783
744
  };
784
- imports.wbg.__wbg_new_79cc836771d68198 = function() {
785
- const ret = new import_xterm_addon_fit.FitAddon();
786
- return addHeapObject(ret);
745
+ imports.wbg.__wbg_pushInputToHistory_1549e9c17621ffd1 = function() {
746
+ return handleError(function(arg0, arg1, arg2) {
747
+ const ret = arg0.pushInputToHistory(getStringFromWasm0(arg1, arg2));
748
+ return ret;
749
+ }, arguments);
787
750
  };
788
- imports.wbg.__wbg_blockStats_14f17a14c4573f3d = function(arg0) {
789
- const ret = getObject(arg0).blockStats;
790
- return addHeapObject(ret);
751
+ imports.wbg.__wbg_queueMicrotask_97d92b4fcc8a61c5 = function(arg0) {
752
+ queueMicrotask(arg0);
791
753
  };
792
- imports.wbg.__wbg_totalFileWrites_1b38029d29f47d43 = function(arg0) {
793
- const ret = getObject(arg0).totalFileWrites;
794
- return addHeapObject(ret);
754
+ imports.wbg.__wbg_queueMicrotask_d3219def82552485 = function(arg0) {
755
+ const ret = arg0.queueMicrotask;
756
+ return ret;
795
757
  };
796
- imports.wbg.__wbg_totalFileReadsAhead_02c25545b2f63323 = function(arg0) {
797
- const ret = getObject(arg0).totalFileReadsAhead;
798
- return addHeapObject(ret);
758
+ imports.wbg.__wbg_readClipboardText_731ab326db907631 = function() {
759
+ return handleError(function(arg0) {
760
+ const ret = arg0.readClipboardText();
761
+ return ret;
762
+ }, arguments);
799
763
  };
800
- imports.wbg.__wbg_totalFileReadsCold_304476ed0c49e111 = function(arg0) {
801
- const ret = getObject(arg0).totalFileReadsCold;
802
- return addHeapObject(ret);
764
+ imports.wbg.__wbg_registerOPFSFileName_1ac109036d40476f = function() {
765
+ return handleError(function(arg0, arg1, arg2) {
766
+ const ret = arg0.registerOPFSFileName(getStringFromWasm0(arg1, arg2));
767
+ return ret;
768
+ }, arguments);
803
769
  };
804
- imports.wbg.__wbg_totalFileReadsCached_2e8edfe7dbf14351 = function(arg0) {
805
- const ret = getObject(arg0).totalFileReadsCached;
806
- return addHeapObject(ret);
770
+ imports.wbg.__wbg_resolve_4851785c9c5f573d = function(arg0) {
771
+ const ret = Promise.resolve(arg0);
772
+ return ret;
807
773
  };
808
- imports.wbg.__wbg_totalPageAccesses_2f654448ea273878 = function(arg0) {
809
- const ret = getObject(arg0).totalPageAccesses;
810
- return addHeapObject(ret);
774
+ imports.wbg.__wbg_runQuery_dd923bfcee4eae4d = function() {
775
+ return handleError(function(arg0, arg1, arg2, arg3) {
776
+ const ret = arg0.runQuery(arg1 >>> 0, getStringFromWasm0(arg2, arg3));
777
+ return ret;
778
+ }, arguments);
811
779
  };
812
- imports.wbg.__wbg_totalPageLoads_1ce10deb8828d935 = function(arg0) {
813
- const ret = getObject(arg0).totalPageLoads;
814
- return addHeapObject(ret);
780
+ imports.wbg.__wbg_set_65595bdd868b3009 = function(arg0, arg1, arg2) {
781
+ arg0.set(arg1, arg2 >>> 0);
815
782
  };
816
- imports.wbg.__wbg_blockSize_77bc4e968a2e845a = function(arg0) {
817
- const ret = getObject(arg0).blockSize;
818
- return addHeapObject(ret);
783
+ imports.wbg.__wbg_setallowProposedApi_1e56ae3768e93420 = function(arg0, arg1) {
784
+ arg0.allowProposedApi = arg1 !== 0;
819
785
  };
820
- imports.wbg.__wbg_log_8bb2c010ce15af48 = function(arg0, arg1) {
821
- console.log(getStringFromWasm0(arg0, arg1));
786
+ imports.wbg.__wbg_setbackground_94f13d2866b2e31b = function(arg0, arg1, arg2) {
787
+ arg0.background = getStringFromWasm0(arg1, arg2);
822
788
  };
823
- imports.wbg.__wbg_error_a84695ce32854879 = function(arg0, arg1) {
824
- console.error(getStringFromWasm0(arg0, arg1));
789
+ imports.wbg.__wbg_setbrightYellow_5858b72099992f03 = function(arg0, arg1, arg2) {
790
+ arg0.brightYellow = getStringFromWasm0(arg1, arg2);
825
791
  };
826
- imports.wbg.__wbg_warn_d85b304f0e70f5ac = function(arg0, arg1) {
827
- console.warn(getStringFromWasm0(arg0, arg1));
792
+ imports.wbg.__wbg_setcursorBlink_850e871d6bcda748 = function(arg0, arg1) {
793
+ arg0.cursorBlink = arg1 !== 0;
828
794
  };
829
- imports.wbg.__wbg_new_abda76e883ba8a5f = function() {
830
- const ret = new Error();
831
- return addHeapObject(ret);
795
+ imports.wbg.__wbg_setcursorWidth_7899d7d19308befe = function(arg0, arg1) {
796
+ arg0.cursorWidth = arg1 >>> 0;
832
797
  };
833
- imports.wbg.__wbg_stack_658279fe44541cf6 = function(arg0, arg1) {
834
- const ret = getObject(arg1).stack;
835
- const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
836
- const len1 = WASM_VECTOR_LEN;
837
- getInt32Memory0()[arg0 / 4 + 1] = len1;
838
- getInt32Memory0()[arg0 / 4 + 0] = ptr1;
798
+ imports.wbg.__wbg_setdrawBoldTextInBrightColors_c3276731d7662d87 = function(arg0, arg1) {
799
+ arg0.drawBoldTextInBrightColors = arg1 !== 0;
839
800
  };
840
- imports.wbg.__wbg_error_f851667af71bcfc6 = function(arg0, arg1) {
841
- let deferred0_0;
842
- let deferred0_1;
843
- try {
844
- deferred0_0 = arg0;
845
- deferred0_1 = arg1;
846
- console.error(getStringFromWasm0(arg0, arg1));
847
- } finally {
848
- wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
849
- }
801
+ imports.wbg.__wbg_setfontFamily_f2837e56dcf1e5a4 = function(arg0, arg1, arg2) {
802
+ arg0.fontFamily = getStringFromWasm0(arg1, arg2);
850
803
  };
851
- imports.wbg.__wbg_instanceof_Window_9029196b662bc42a = function(arg0) {
852
- let result;
853
- try {
854
- result = getObject(arg0) instanceof Window;
855
- } catch (e) {
856
- result = false;
857
- }
858
- const ret = result;
859
- return ret;
804
+ imports.wbg.__wbg_setfontSize_7d8e3357cbc2a6ac = function(arg0, arg1) {
805
+ arg0.fontSize = arg1 >>> 0;
860
806
  };
861
- imports.wbg.__wbg_performance_2c295061c8b01e0b = function(arg0) {
862
- const ret = getObject(arg0).performance;
863
- return isLikeNone(ret) ? 0 : addHeapObject(ret);
807
+ imports.wbg.__wbg_setforeground_bbda7a714f8f4254 = function(arg0, arg1, arg2) {
808
+ arg0.foreground = getStringFromWasm0(arg1, arg2);
864
809
  };
865
- imports.wbg.__wbg_ctrlKey_582686fb2263dd3c = function(arg0) {
866
- const ret = getObject(arg0).ctrlKey;
867
- return ret;
810
+ imports.wbg.__wbg_setrightClickSelectsWord_e15e0a6c7e12c2f4 = function(arg0, arg1) {
811
+ arg0.rightClickSelectsWord = arg1 !== 0;
868
812
  };
869
- imports.wbg.__wbg_metaKey_43193b7cc99f8914 = function(arg0) {
870
- const ret = getObject(arg0).metaKey;
871
- return ret;
813
+ imports.wbg.__wbg_setrows_395bb2f6a40be664 = function(arg0, arg1) {
814
+ arg0.rows = arg1 >>> 0;
815
+ };
816
+ imports.wbg.__wbg_settheme_1b783323a8d2b858 = function(arg0, arg1) {
817
+ arg0.theme = arg1;
872
818
  };
873
- imports.wbg.__wbg_key_8aeaa079126a9cc7 = function(arg0, arg1) {
874
- const ret = getObject(arg1).key;
819
+ imports.wbg.__wbg_stack_0ed75d68575b0f3c = function(arg0, arg1) {
820
+ const ret = arg1.stack;
875
821
  const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
876
822
  const len1 = WASM_VECTOR_LEN;
877
- getInt32Memory0()[arg0 / 4 + 1] = len1;
878
- getInt32Memory0()[arg0 / 4 + 0] = ptr1;
823
+ getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
824
+ getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
879
825
  };
880
- imports.wbg.__wbg_type_4197dff653b7d208 = function(arg0, arg1) {
881
- const ret = getObject(arg1).type;
826
+ imports.wbg.__wbg_static_accessor_GLOBAL_88a902d13a557d07 = function() {
827
+ const ret = typeof global === "undefined" ? null : global;
828
+ return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
829
+ };
830
+ imports.wbg.__wbg_static_accessor_GLOBAL_THIS_56578be7e9f832b0 = function() {
831
+ const ret = typeof globalThis === "undefined" ? null : globalThis;
832
+ return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
833
+ };
834
+ imports.wbg.__wbg_static_accessor_PACKAGE_NAME_0af717684e189e55 = function(arg0) {
835
+ const ret = import_duckdb_wasm.PACKAGE_NAME;
882
836
  const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
883
837
  const len1 = WASM_VECTOR_LEN;
884
- getInt32Memory0()[arg0 / 4 + 1] = len1;
885
- getInt32Memory0()[arg0 / 4 + 0] = ptr1;
838
+ getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
839
+ getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
886
840
  };
887
- imports.wbg.__wbg_now_0cfdc90c97d0c24b = function(arg0) {
888
- const ret = getObject(arg0).now();
889
- return ret;
841
+ imports.wbg.__wbg_static_accessor_PACKAGE_VERSION_549ba11794cf5003 = function(arg0) {
842
+ const ret = import_duckdb_wasm.PACKAGE_VERSION;
843
+ const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
844
+ const len1 = WASM_VECTOR_LEN;
845
+ getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
846
+ getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
847
+ };
848
+ imports.wbg.__wbg_static_accessor_SELF_37c5d418e4bf5819 = function() {
849
+ const ret = typeof self === "undefined" ? null : self;
850
+ return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
890
851
  };
891
- imports.wbg.__wbg_get_44be0491f933a435 = function(arg0, arg1) {
892
- const ret = getObject(arg0)[arg1 >>> 0];
893
- return addHeapObject(ret);
852
+ imports.wbg.__wbg_static_accessor_WINDOW_5de37043a91a9c40 = function() {
853
+ const ret = typeof window === "undefined" ? null : window;
854
+ return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
894
855
  };
895
- imports.wbg.__wbg_length_fff51ee6522a1a18 = function(arg0) {
896
- const ret = getObject(arg0).length;
856
+ imports.wbg.__wbg_then_44b73946d2fb3e7d = function(arg0, arg1) {
857
+ const ret = arg0.then(arg1);
897
858
  return ret;
898
859
  };
899
- imports.wbg.__wbg_newnoargs_581967eacc0e2604 = function(arg0, arg1) {
900
- const ret = new Function(getStringFromWasm0(arg0, arg1));
901
- return addHeapObject(ret);
860
+ imports.wbg.__wbg_then_48b406749878a531 = function(arg0, arg1, arg2) {
861
+ const ret = arg0.then(arg1, arg2);
862
+ return ret;
902
863
  };
903
- imports.wbg.__wbg_call_cb65541d95d71282 = function() {
904
- return handleError(function(arg0, arg1) {
905
- const ret = getObject(arg0).call(getObject(arg1));
906
- return addHeapObject(ret);
864
+ imports.wbg.__wbg_toString_c813bbd34d063839 = function(arg0) {
865
+ const ret = arg0.toString();
866
+ return ret;
867
+ };
868
+ imports.wbg.__wbg_tokenize_8a1699f08f37e193 = function() {
869
+ return handleError(function(arg0, arg1, arg2) {
870
+ const ret = arg0.tokenize(getStringFromWasm0(arg1, arg2));
871
+ return ret;
907
872
  }, arguments);
908
873
  };
909
- imports.wbg.__wbg_new_b51585de1b234aff = function() {
910
- const ret = new Object();
911
- return addHeapObject(ret);
874
+ imports.wbg.__wbg_totalFileReadsAhead_a8f3246739715872 = function(arg0) {
875
+ const ret = arg0.totalFileReadsAhead;
876
+ return ret;
912
877
  };
913
- imports.wbg.__wbg_self_1ff1d729e9aae938 = function() {
914
- return handleError(function() {
915
- const ret = self.self;
916
- return addHeapObject(ret);
917
- }, arguments);
878
+ imports.wbg.__wbg_totalFileReadsCached_a9d725246d8113de = function(arg0) {
879
+ const ret = arg0.totalFileReadsCached;
880
+ return ret;
918
881
  };
919
- imports.wbg.__wbg_window_5f4faef6c12b79ec = function() {
920
- return handleError(function() {
921
- const ret = window.window;
922
- return addHeapObject(ret);
923
- }, arguments);
882
+ imports.wbg.__wbg_totalFileReadsCold_969fc4fdc92ba928 = function(arg0) {
883
+ const ret = arg0.totalFileReadsCold;
884
+ return ret;
924
885
  };
925
- imports.wbg.__wbg_globalThis_1d39714405582d3c = function() {
926
- return handleError(function() {
927
- const ret = globalThis.globalThis;
928
- return addHeapObject(ret);
929
- }, arguments);
886
+ imports.wbg.__wbg_totalFileWrites_a1979d03072ca561 = function(arg0) {
887
+ const ret = arg0.totalFileWrites;
888
+ return ret;
930
889
  };
931
- imports.wbg.__wbg_global_651f05c6a0944d1c = function() {
932
- return handleError(function() {
933
- const ret = global.global;
934
- return addHeapObject(ret);
935
- }, arguments);
890
+ imports.wbg.__wbg_totalPageAccesses_d1e0755e7c873650 = function(arg0) {
891
+ const ret = arg0.totalPageAccesses;
892
+ return ret;
936
893
  };
937
- imports.wbg.__wbindgen_is_undefined = function(arg0) {
938
- const ret = getObject(arg0) === void 0;
894
+ imports.wbg.__wbg_totalPageLoads_055280bed199c515 = function(arg0) {
895
+ const ret = arg0.totalPageLoads;
939
896
  return ret;
940
897
  };
941
- imports.wbg.__wbg_new_d258248ed531ff54 = function(arg0, arg1) {
942
- const ret = new Error(getStringFromWasm0(arg0, arg1));
943
- return addHeapObject(ret);
898
+ imports.wbg.__wbg_type_16f2b8031796512f = function(arg0, arg1) {
899
+ const ret = arg1.type;
900
+ const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
901
+ const len1 = WASM_VECTOR_LEN;
902
+ getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
903
+ getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
944
904
  };
945
- imports.wbg.__wbg_message_48bacc5ea57d74ee = function(arg0) {
946
- const ret = getObject(arg0).message;
947
- return addHeapObject(ret);
905
+ imports.wbg.__wbg_types_10068f549973c623 = function(arg0, arg1) {
906
+ const ret = arg1.types;
907
+ const ptr1 = passArray8ToWasm0(ret, wasm.__wbindgen_malloc);
908
+ const len1 = WASM_VECTOR_LEN;
909
+ getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
910
+ getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
948
911
  };
949
- imports.wbg.__wbg_toString_1c056108b87ba68b = function(arg0) {
950
- const ret = getObject(arg0).toString();
951
- return addHeapObject(ret);
912
+ imports.wbg.__wbg_warn_45a3a6612d9f19fe = function(arg0, arg1) {
913
+ console.warn(getStringFromWasm0(arg0, arg1));
952
914
  };
953
- imports.wbg.__wbg_call_01734de55d61e11d = function() {
954
- return handleError(function(arg0, arg1, arg2) {
955
- const ret = getObject(arg0).call(getObject(arg1), getObject(arg2));
956
- return addHeapObject(ret);
957
- }, arguments);
915
+ imports.wbg.__wbg_wasmBulkMemory_551502ede47fbf09 = function(arg0) {
916
+ const ret = arg0.wasmBulkMemory;
917
+ return ret;
958
918
  };
959
- imports.wbg.__wbg_new_43f1b47c28813cbd = function(arg0, arg1) {
960
- try {
961
- var state0 = { a: arg0, b: arg1 };
962
- var cb0 = (arg02, arg12) => {
963
- const a = state0.a;
964
- state0.a = 0;
965
- try {
966
- return __wbg_adapter_213(a, state0.b, arg02, arg12);
967
- } finally {
968
- state0.a = a;
969
- }
970
- };
971
- const ret = new Promise(cb0);
972
- return addHeapObject(ret);
973
- } finally {
974
- state0.a = state0.b = 0;
975
- }
919
+ imports.wbg.__wbg_wasmExceptions_4f3d6bc9c38eccd4 = function(arg0) {
920
+ const ret = arg0.wasmExceptions;
921
+ return ret;
976
922
  };
977
- imports.wbg.__wbg_resolve_53698b95aaf7fcf8 = function(arg0) {
978
- const ret = Promise.resolve(getObject(arg0));
979
- return addHeapObject(ret);
923
+ imports.wbg.__wbg_wasmSIMD_6e524010ac1b3712 = function(arg0) {
924
+ const ret = arg0.wasmSIMD;
925
+ return ret;
980
926
  };
981
- imports.wbg.__wbg_then_f7e06ee3c11698eb = function(arg0, arg1) {
982
- const ret = getObject(arg0).then(getObject(arg1));
983
- return addHeapObject(ret);
927
+ imports.wbg.__wbg_wasmThreads_bb92f1f17739f197 = function(arg0) {
928
+ const ret = arg0.wasmThreads;
929
+ return ret;
984
930
  };
985
- imports.wbg.__wbg_then_b2267541e2a73865 = function(arg0, arg1, arg2) {
986
- const ret = getObject(arg0).then(getObject(arg1), getObject(arg2));
987
- return addHeapObject(ret);
931
+ imports.wbg.__wbg_withWebGL_e7b2f98241b8125a = function(arg0) {
932
+ const ret = arg0.withWebGL;
933
+ return ret;
988
934
  };
989
- imports.wbg.__wbg_buffer_085ec1f694018c4f = function(arg0) {
990
- const ret = getObject(arg0).buffer;
991
- return addHeapObject(ret);
935
+ imports.wbg.__wbg_write_c3295e1c4c88047e = function(arg0, arg1, arg2) {
936
+ arg0.write(getStringFromWasm0(arg1, arg2));
992
937
  };
993
- imports.wbg.__wbg_new_8125e318e6245eed = function(arg0) {
994
- const ret = new Uint8Array(getObject(arg0));
995
- return addHeapObject(ret);
938
+ imports.wbg.__wbindgen_cb_drop = function(arg0) {
939
+ const obj = arg0.original;
940
+ if (obj.cnt-- == 1) {
941
+ obj.a = 0;
942
+ return true;
943
+ }
944
+ const ret = false;
945
+ return ret;
996
946
  };
997
- imports.wbg.__wbg_set_5cf90238115182c3 = function(arg0, arg1, arg2) {
998
- getObject(arg0).set(getObject(arg1), arg2 >>> 0);
947
+ imports.wbg.__wbindgen_closure_wrapper459 = function(arg0, arg1, arg2) {
948
+ const ret = makeMutClosure(arg0, arg1, 115, __wbg_adapter_26);
949
+ return ret;
999
950
  };
1000
- imports.wbg.__wbg_length_72e2208bbc0efc61 = function(arg0) {
1001
- const ret = getObject(arg0).length;
951
+ imports.wbg.__wbindgen_closure_wrapper889 = function(arg0, arg1, arg2) {
952
+ const ret = makeMutClosure(arg0, arg1, 178, __wbg_adapter_29);
1002
953
  return ret;
1003
954
  };
1004
955
  imports.wbg.__wbindgen_debug_string = function(arg0, arg1) {
1005
- const ret = debugString(getObject(arg1));
956
+ const ret = debugString(arg1);
1006
957
  const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1007
958
  const len1 = WASM_VECTOR_LEN;
1008
- getInt32Memory0()[arg0 / 4 + 1] = len1;
1009
- getInt32Memory0()[arg0 / 4 + 0] = ptr1;
959
+ getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
960
+ getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
961
+ };
962
+ imports.wbg.__wbindgen_init_externref_table = function() {
963
+ const table = wasm.__wbindgen_export_4;
964
+ const offset = table.grow(4);
965
+ table.set(0, void 0);
966
+ table.set(offset + 0, void 0);
967
+ table.set(offset + 1, null);
968
+ table.set(offset + 2, true);
969
+ table.set(offset + 3, false);
970
+ ;
971
+ };
972
+ imports.wbg.__wbindgen_is_function = function(arg0) {
973
+ const ret = typeof arg0 === "function";
974
+ return ret;
1010
975
  };
1011
- imports.wbg.__wbindgen_throw = function(arg0, arg1) {
1012
- throw new Error(getStringFromWasm0(arg0, arg1));
976
+ imports.wbg.__wbindgen_is_undefined = function(arg0) {
977
+ const ret = arg0 === void 0;
978
+ return ret;
979
+ };
980
+ imports.wbg.__wbindgen_json_serialize = function(arg0, arg1) {
981
+ const obj = arg1;
982
+ const ret = JSON.stringify(obj === void 0 ? null : obj);
983
+ const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
984
+ const len1 = WASM_VECTOR_LEN;
985
+ getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
986
+ getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
1013
987
  };
1014
988
  imports.wbg.__wbindgen_memory = function() {
1015
989
  const ret = wasm.memory;
1016
- return addHeapObject(ret);
990
+ return ret;
1017
991
  };
1018
- imports.wbg.__wbindgen_closure_wrapper450 = function(arg0, arg1, arg2) {
1019
- const ret = makeMutClosure(arg0, arg1, 135, __wbg_adapter_22);
1020
- return addHeapObject(ret);
992
+ imports.wbg.__wbindgen_number_get = function(arg0, arg1) {
993
+ const obj = arg1;
994
+ const ret = typeof obj === "number" ? obj : void 0;
995
+ getDataViewMemory0().setFloat64(arg0 + 8 * 1, isLikeNone(ret) ? 0 : ret, true);
996
+ getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
997
+ };
998
+ imports.wbg.__wbindgen_string_get = function(arg0, arg1) {
999
+ const obj = arg1;
1000
+ const ret = typeof obj === "string" ? obj : void 0;
1001
+ var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1002
+ var len1 = WASM_VECTOR_LEN;
1003
+ getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
1004
+ getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
1021
1005
  };
1022
- imports.wbg.__wbindgen_closure_wrapper916 = function(arg0, arg1, arg2) {
1023
- const ret = makeMutClosure(arg0, arg1, 188, __wbg_adapter_25);
1024
- return addHeapObject(ret);
1006
+ imports.wbg.__wbindgen_throw = function(arg0, arg1) {
1007
+ throw new Error(getStringFromWasm0(arg0, arg1));
1025
1008
  };
1026
1009
  return imports;
1027
1010
  }
1028
- function __wbg_init_memory(imports, maybe_memory) {
1011
+ function __wbg_init_memory(imports, memory) {
1029
1012
  }
1030
1013
  function __wbg_finalize_init(instance, module2) {
1031
1014
  wasm = instance.exports;
1032
1015
  __wbg_init.__wbindgen_wasm_module = module2;
1033
- cachedFloat64Memory0 = null;
1034
- cachedInt32Memory0 = null;
1035
- cachedUint32Memory0 = null;
1036
- cachedUint8Memory0 = null;
1016
+ cachedDataViewMemory0 = null;
1017
+ cachedUint32ArrayMemory0 = null;
1018
+ cachedUint8ArrayMemory0 = null;
1037
1019
  wasm.__wbindgen_start();
1038
1020
  return wasm;
1039
1021
  }
1040
- async function __wbg_init(input) {
1022
+ async function __wbg_init(module_or_path) {
1041
1023
  if (wasm !== void 0)
1042
1024
  return wasm;
1043
- if (typeof input === "undefined") {
1044
- input = new URL("shell_bg.wasm", import_meta.url);
1025
+ if (typeof module_or_path !== "undefined") {
1026
+ if (Object.getPrototypeOf(module_or_path) === Object.prototype) {
1027
+ ({ module_or_path } = module_or_path);
1028
+ } else {
1029
+ console.warn("using deprecated parameters for the initialization function; pass a single object instead");
1030
+ }
1031
+ }
1032
+ if (typeof module_or_path === "undefined") {
1033
+ module_or_path = new URL("shell_bg.wasm", import_meta.url);
1045
1034
  }
1046
1035
  const imports = __wbg_get_imports();
1047
- if (typeof input === "string" || typeof Request === "function" && input instanceof Request || typeof URL === "function" && input instanceof URL) {
1048
- input = fetch(input);
1036
+ if (typeof module_or_path === "string" || typeof Request === "function" && module_or_path instanceof Request || typeof URL === "function" && module_or_path instanceof URL) {
1037
+ module_or_path = fetch(module_or_path);
1049
1038
  }
1050
1039
  __wbg_init_memory(imports);
1051
- const { instance, module: module2 } = await __wbg_load(await input, imports);
1040
+ const { instance, module: module2 } = await __wbg_load(await module_or_path, imports);
1052
1041
  return __wbg_finalize_init(instance, module2);
1053
1042
  }
1054
1043
  var shell_default = __wbg_init;