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