@duckdb/duckdb-wasm-shell 1.29.1-dev9.0 → 1.30.1-dev2.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-dev9.0",
46
+ version: "1.30.1-dev2.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-dev9.0",
70
+ "@duckdb/duckdb-wasm": "^1.30.1-dev2.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__he8ffd72d0b49a87b(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__h77eb2de66eb57381(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.closure142_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.closure179_externref_shim(arg0, arg1, arg2);
395
364
  }
396
- function __wbg_adapter_210(arg0, arg1, arg2, arg3) {
397
- wasm.wasm_bindgen__convert__closures__invoke2_mut__h31501dd44c1f2ebd(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,580 +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);
449
+ imports.wbg.__wbg_attachCustomKeyEventHandler_5c309ad8c2d6ff9c = function(arg0, arg1) {
450
+ arg0.attachCustomKeyEventHandler(arg1);
480
451
  };
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_exportFileStatistics_6b72eb40ca2eb4d5 = function() {
494
- return handleError(function(arg0, arg1, arg2) {
495
- const ret = getObject(arg0).exportFileStatistics(getStringFromWasm0(arg1, arg2));
496
- return addHeapObject(ret);
497
- }, arguments);
498
- };
499
- imports.wbg.__wbg_construct_e68e1da98af9f9aa = function(arg0) {
500
- const ret = new import_xterm.Terminal(getObject(arg0));
501
- 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);
502
458
  };
503
- imports.wbg.__wbg_cols_5c0bdee281fe5dd9 = function(arg0) {
504
- const ret = getObject(arg0).cols;
459
+ imports.wbg.__wbg_bigInt64Array_c64b3751e74d5277 = function(arg0) {
460
+ const ret = arg0.bigInt64Array;
505
461
  return ret;
506
462
  };
507
- imports.wbg.__wbg_withWebGL_03eecbba7b231a0f = function(arg0) {
508
- const ret = getObject(arg0).withWebGL;
463
+ imports.wbg.__wbg_blockSize_cd30a6366d631ae8 = function(arg0) {
464
+ const ret = arg0.blockSize;
509
465
  return ret;
510
466
  };
511
- imports.wbg.__wbg_attachCustomKeyEventHandler_d9201dcf85a52ecb = function(arg0, arg1) {
512
- getObject(arg0).attachCustomKeyEventHandler(getObject(arg1));
467
+ imports.wbg.__wbg_blockStats_7e6019968a50af3b = function(arg0) {
468
+ const ret = arg0.blockStats;
469
+ return ret;
513
470
  };
514
- imports.wbg.__wbindgen_object_clone_ref = function(arg0) {
515
- const ret = getObject(arg0);
516
- return addHeapObject(ret);
471
+ imports.wbg.__wbg_buffer_609cc3eee51ed158 = function(arg0) {
472
+ const ret = arg0.buffer;
473
+ return ret;
517
474
  };
518
- imports.wbg.__wbg_write_d31c366220b675c8 = function(arg0, arg1, arg2) {
519
- 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);
520
480
  };
521
- imports.wbg.__wbg_pushInputToHistory_2b5dfdb10ddcc094 = function() {
481
+ imports.wbg.__wbg_call_7cccdd69e0791ae2 = function() {
522
482
  return handleError(function(arg0, arg1, arg2) {
523
- const ret = getObject(arg0).pushInputToHistory(getStringFromWasm0(arg1, arg2));
524
- return addHeapObject(ret);
483
+ const ret = arg0.call(arg1, arg2);
484
+ return ret;
525
485
  }, arguments);
526
486
  };
527
- imports.wbg.__wbg_getPlatformFeatures_0c7441cfa3b5e678 = function() {
528
- return handleError(function() {
529
- const ret = (0, import_duckdb_wasm.getPlatformFeatures)();
530
- 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;
531
491
  }, arguments);
532
492
  };
533
- imports.wbg.__wbg_bigInt64Array_b81766f687b4b0b6 = function(arg0) {
534
- const ret = getObject(arg0).bigInt64Array;
493
+ imports.wbg.__wbg_cols_77a8050235d63c90 = function(arg0) {
494
+ const ret = arg0.cols;
535
495
  return ret;
536
496
  };
537
- imports.wbg.__wbg_crossOriginIsolated_f7f727dc97628776 = function(arg0) {
538
- const ret = getObject(arg0).crossOriginIsolated;
539
- return ret;
497
+ imports.wbg.__wbg_connectInternal_818454f7281c00df = function() {
498
+ return handleError(function(arg0) {
499
+ const ret = arg0.connectInternal();
500
+ return ret;
501
+ }, arguments);
540
502
  };
541
- imports.wbg.__wbg_wasmThreads_cbe2eebf031b26d7 = function(arg0) {
542
- const ret = getObject(arg0).wasmThreads;
503
+ imports.wbg.__wbg_construct_036a353ca42f67b4 = function(arg0) {
504
+ const ret = new import_xterm.Terminal(arg0);
543
505
  return ret;
544
506
  };
545
- imports.wbg.__wbg_wasmSIMD_f2cbc78c82c4d673 = function(arg0) {
546
- const ret = getObject(arg0).wasmSIMD;
547
- 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);
548
512
  };
549
- imports.wbg.__wbg_wasmBulkMemory_51a6e2786de28fdc = function(arg0) {
550
- const ret = getObject(arg0).wasmBulkMemory;
513
+ imports.wbg.__wbg_crossOriginIsolated_0118e2417ec095ee = function(arg0) {
514
+ const ret = arg0.crossOriginIsolated;
551
515
  return ret;
552
516
  };
553
- imports.wbg.__wbg_wasmExceptions_f629aff7d2e90cd3 = function(arg0) {
554
- const ret = getObject(arg0).wasmExceptions;
517
+ imports.wbg.__wbg_ctrlKey_1e826e468105ac11 = function(arg0) {
518
+ const ret = arg0.ctrlKey;
555
519
  return ret;
556
520
  };
557
- imports.wbg.__wbg_dropFile_377dfecd7aafe02e = function() {
558
- return handleError(function(arg0, arg1, arg2) {
559
- const ret = getObject(arg0).dropFile(getStringFromWasm0(arg1, arg2));
560
- 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;
561
525
  }, arguments);
562
526
  };
563
- imports.wbg.__wbg_dropFiles_a67bda4902ba5f36 = function() {
564
- return handleError(function(arg0) {
565
- const ret = getObject(arg0).dropFiles();
566
- 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;
567
531
  }, arguments);
568
532
  };
569
- imports.wbg.__wbg_copyFileToBuffer_8303548b5434aa38 = function() {
533
+ imports.wbg.__wbg_dropFile_6eb68222192e72fc = function() {
570
534
  return handleError(function(arg0, arg1, arg2) {
571
- const ret = getObject(arg0).copyFileToBuffer(getStringFromWasm0(arg1, arg2));
572
- return addHeapObject(ret);
535
+ const ret = arg0.dropFile(getStringFromWasm0(arg1, arg2));
536
+ return ret;
573
537
  }, arguments);
574
538
  };
575
- imports.wbg.__wbg_open_8d9e16e84b9c860d = function() {
576
- return handleError(function(arg0, arg1) {
577
- const ret = getObject(arg0).open(DuckDBConfig.__wrap(arg1));
578
- return addHeapObject(ret);
579
- }, arguments);
580
- };
581
- imports.wbg.__wbg_getVersion_6fe922c9d7787e50 = function() {
539
+ imports.wbg.__wbg_dropFiles_8bf37b450b4de5ee = function() {
582
540
  return handleError(function(arg0) {
583
- const ret = getObject(arg0).getVersion();
584
- return addHeapObject(ret);
541
+ const ret = arg0.dropFiles();
542
+ return ret;
585
543
  }, arguments);
586
544
  };
587
- imports.wbg.__wbindgen_string_get = function(arg0, arg1) {
588
- const obj = getObject(arg1);
589
- const ret = typeof obj === "string" ? obj : void 0;
590
- var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
591
- var len1 = WASM_VECTOR_LEN;
592
- getInt32Memory0()[arg0 / 4 + 1] = len1;
593
- getInt32Memory0()[arg0 / 4 + 0] = ptr1;
594
- };
595
- imports.wbg.__wbg_connectInternal_21690058186ac42a = function() {
596
- return handleError(function(arg0) {
597
- const ret = getObject(arg0).connectInternal();
598
- return addHeapObject(ret);
599
- }, 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
+ }
600
555
  };
601
- imports.wbg.__wbg_downloadFile_4cc8985e2c240fec = function() {
602
- return handleError(function(arg0, arg1, arg2, arg3) {
603
- const ret = getObject(arg0).downloadFile(getStringFromWasm0(arg1, arg2), takeObject(arg3));
604
- return addHeapObject(ret);
605
- }, arguments);
556
+ imports.wbg.__wbg_error_ebb9ec1bc5af2f31 = function(arg0, arg1) {
557
+ console.error(getStringFromWasm0(arg0, arg1));
606
558
  };
607
- imports.wbg.__wbg_globFiles_7fe5c8e5e369e77b = function() {
559
+ imports.wbg.__wbg_exportFileStatistics_d52b61d6c201da1c = function() {
608
560
  return handleError(function(arg0, arg1, arg2) {
609
- const ret = getObject(arg0).globFiles(getStringFromWasm0(arg1, arg2));
610
- return addHeapObject(ret);
561
+ const ret = arg0.exportFileStatistics(getStringFromWasm0(arg1, arg2));
562
+ return ret;
611
563
  }, arguments);
612
564
  };
613
- imports.wbg.__wbg_pickFiles_cb1fb4d097b8cdab = function() {
614
- return handleError(function(arg0) {
615
- const ret = getObject(arg0).pickFiles();
616
- return addHeapObject(ret);
617
- }, arguments);
565
+ imports.wbg.__wbg_fit_0db5c78a2a85f563 = function(arg0) {
566
+ arg0.fit();
618
567
  };
619
- imports.wbg.__wbg_runQuery_41cfa048b61675e2 = function() {
620
- return handleError(function(arg0, arg1, arg2, arg3) {
621
- const ret = getObject(arg0).runQuery(arg1 >>> 0, getStringFromWasm0(arg2, arg3));
622
- return addHeapObject(ret);
623
- }, arguments);
568
+ imports.wbg.__wbg_focus_dd92db4314c4db81 = function(arg0) {
569
+ arg0.focus();
624
570
  };
625
- imports.wbg.__wbg_tokenize_f167882593146b7d = function() {
626
- return handleError(function(arg0, arg1, arg2) {
627
- const ret = getObject(arg0).tokenize(getStringFromWasm0(arg1, arg2));
628
- return addHeapObject(ret);
629
- }, arguments);
630
- };
631
- imports.wbg.__wbg_offsets_fc2b1a7bf689ba81 = function(arg0, arg1) {
632
- const ret = getObject(arg1).offsets;
633
- 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);
634
574
  const len1 = WASM_VECTOR_LEN;
635
- getInt32Memory0()[arg0 / 4 + 1] = len1;
636
- getInt32Memory0()[arg0 / 4 + 0] = ptr1;
575
+ getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
576
+ getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
637
577
  };
638
- imports.wbg.__wbg_types_b5d339a3bb88320b = function(arg0, arg1) {
639
- const ret = getObject(arg1).types;
640
- const ptr1 = passArray8ToWasm0(ret, wasm.__wbindgen_malloc);
641
- const len1 = WASM_VECTOR_LEN;
642
- getInt32Memory0()[arg0 / 4 + 1] = len1;
643
- 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);
644
583
  };
645
- 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() {
646
591
  return handleError(function(arg0) {
647
- const ret = getObject(arg0).readClipboardText();
648
- return addHeapObject(ret);
592
+ const ret = arg0.getVersion();
593
+ return ret;
649
594
  }, arguments);
650
595
  };
651
- imports.wbg.__wbg_focus_909df7c111b58b83 = function(arg0) {
652
- getObject(arg0).focus();
596
+ imports.wbg.__wbg_get_b9b93047fe3cf45b = function(arg0, arg1) {
597
+ const ret = arg0[arg1 >>> 0];
598
+ return ret;
653
599
  };
654
- imports.wbg.__wbg_fit_cdd1076e3e5970b7 = function(arg0) {
655
- 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);
656
605
  };
657
- imports.wbg.__wbindgen_cb_drop = function(arg0) {
658
- const obj = takeObject(arg0).original;
659
- if (obj.cnt-- == 1) {
660
- obj.a = 0;
661
- 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;
662
612
  }
663
- const ret = false;
613
+ const ret = result;
664
614
  return ret;
665
615
  };
666
- imports.wbg.__wbg_setrows_6b947e6079c486dc = function(arg0, arg1) {
667
- getObject(arg0).rows = arg1 >>> 0;
668
- };
669
- imports.wbg.__wbg_setcursorBlink_8a3f7244eb29b1f6 = function(arg0, arg1) {
670
- 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;
671
625
  };
672
- imports.wbg.__wbg_setcursorWidth_55abde268dea1312 = function(arg0, arg1) {
673
- 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;
674
635
  };
675
- imports.wbg.__wbg_fontFamily_204223b3338f8381 = function(arg0, arg1) {
676
- const ret = getObject(arg1).fontFamily;
636
+ imports.wbg.__wbg_key_7b5c6cb539be8e13 = function(arg0, arg1) {
637
+ const ret = arg1.key;
677
638
  const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
678
639
  const len1 = WASM_VECTOR_LEN;
679
- getInt32Memory0()[arg0 / 4 + 1] = len1;
680
- getInt32Memory0()[arg0 / 4 + 0] = ptr1;
640
+ getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
641
+ getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
681
642
  };
682
- imports.wbg.__wbg_setfontFamily_a0645fa4f7aaaf21 = function(arg0, arg1, arg2) {
683
- getObject(arg0).fontFamily = getStringFromWasm0(arg1, arg2);
643
+ imports.wbg.__wbg_length_a446193dc22c12f8 = function(arg0) {
644
+ const ret = arg0.length;
645
+ return ret;
684
646
  };
685
- imports.wbg.__wbg_setfontSize_11962e753390bde1 = function(arg0, arg1) {
686
- getObject(arg0).fontSize = arg1 >>> 0;
647
+ imports.wbg.__wbg_length_e2d2a49132c1b256 = function(arg0) {
648
+ const ret = arg0.length;
649
+ return ret;
687
650
  };
688
- imports.wbg.__wbg_setdrawBoldTextInBrightColors_4f711243dff6df11 = function(arg0, arg1) {
689
- getObject(arg0).drawBoldTextInBrightColors = arg1 !== 0;
651
+ imports.wbg.__wbg_loadAddon_143d540bb5725490 = function(arg0, arg1) {
652
+ arg0.loadAddon(arg1);
690
653
  };
691
- imports.wbg.__wbg_setrightClickSelectsWord_ede48f0595cd3fed = function(arg0, arg1) {
692
- getObject(arg0).rightClickSelectsWord = arg1 !== 0;
654
+ imports.wbg.__wbg_log_33ef14fd0c9ec1a3 = function(arg0, arg1) {
655
+ console.log(getStringFromWasm0(arg0, arg1));
693
656
  };
694
- imports.wbg.__wbg_setallowProposedApi_0147ac2b5a9906b3 = function(arg0, arg1) {
695
- getObject(arg0).allowProposedApi = arg1 !== 0;
657
+ imports.wbg.__wbg_message_97a2af9b89d693a3 = function(arg0) {
658
+ const ret = arg0.message;
659
+ return ret;
696
660
  };
697
- imports.wbg.__wbg_setbrightYellow_deb3fbc58aa44642 = function(arg0, arg1, arg2) {
698
- getObject(arg0).brightYellow = getStringFromWasm0(arg1, arg2);
661
+ imports.wbg.__wbg_metaKey_e1dd47d709a80ce5 = function(arg0) {
662
+ const ret = arg0.metaKey;
663
+ return ret;
699
664
  };
700
- imports.wbg.__wbg_setforeground_87dc40b78955df05 = function(arg0, arg1, arg2) {
701
- 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
+ }
702
682
  };
703
- imports.wbg.__wbg_backgroundColor_17a9784f0207d5b0 = function(arg0, arg1) {
704
- const ret = getObject(arg1).backgroundColor;
705
- const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
706
- const len1 = WASM_VECTOR_LEN;
707
- getInt32Memory0()[arg0 / 4 + 1] = len1;
708
- getInt32Memory0()[arg0 / 4 + 0] = ptr1;
683
+ imports.wbg.__wbg_new_405e22f390576ce2 = function() {
684
+ const ret = new Object();
685
+ return ret;
709
686
  };
710
- imports.wbg.__wbg_setbackground_550386b829ec5c24 = function(arg0, arg1, arg2) {
711
- 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;
712
690
  };
713
- imports.wbg.__wbg_settheme_4e67878b7d6cc0fc = function(arg0, arg1) {
714
- getObject(arg0).theme = getObject(arg1);
691
+ imports.wbg.__wbg_new_7c075f00f439f1e0 = function() {
692
+ const ret = new import_xterm_addon_fit.FitAddon();
693
+ return ret;
715
694
  };
716
- imports.wbg.__wbg_open_7d3a0690ea9e5a45 = function(arg0, arg1) {
717
- getObject(arg0).open(takeObject(arg1));
695
+ imports.wbg.__wbg_new_8a6f238a6ece86ea = function() {
696
+ const ret = new Error();
697
+ return ret;
718
698
  };
719
- imports.wbg.__wbg_new_70821bf9dbd17152 = function(arg0) {
720
- const ret = new import_xterm_addon_webgl.WebglAddon(arg0 === 16777215 ? void 0 : arg0 !== 0);
721
- return addHeapObject(ret);
699
+ imports.wbg.__wbg_new_a12002a7f91c75be = function(arg0) {
700
+ const ret = new Uint8Array(arg0);
701
+ return ret;
722
702
  };
723
- imports.wbg.__wbg_instanceof_WebglAddon_c39f68697a31af73 = function(arg0) {
724
- let result;
725
- try {
726
- result = getObject(arg0) instanceof import_xterm_addon_webgl.WebglAddon;
727
- } catch (e) {
728
- result = false;
729
- }
730
- 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);
731
705
  return ret;
732
706
  };
733
- imports.wbg.__wbg_loadAddon_1bfe744e6f456990 = function(arg0, arg1) {
734
- 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;
735
710
  };
736
- imports.wbg.__wbg_new_92aa50f448dac851 = function(arg0, arg1, arg2) {
737
- const ret = new import_xterm_addon_web_links.WebLinksAddon(getObject(arg0), getObject(arg1), arg2 === 16777215 ? void 0 : arg2 !== 0);
738
- return addHeapObject(ret);
711
+ imports.wbg.__wbg_newnoargs_105ed471475aaf50 = function(arg0, arg1) {
712
+ const ret = new Function(getStringFromWasm0(arg0, arg1));
713
+ return ret;
739
714
  };
740
- imports.wbg.__wbg_instanceof_WebLinksAddon_fbcf4efb54881c53 = function(arg0) {
741
- let result;
742
- try {
743
- result = getObject(arg0) instanceof import_xterm_addon_web_links.WebLinksAddon;
744
- } catch (e) {
745
- result = false;
746
- }
747
- const ret = result;
715
+ imports.wbg.__wbg_now_d18023d54d4e5500 = function(arg0) {
716
+ const ret = arg0.now();
748
717
  return ret;
749
718
  };
750
- 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() {
751
727
  return handleError(function(arg0, arg1) {
752
- const ret = getObject(arg0).disconnect(arg1 >>> 0);
753
- return addHeapObject(ret);
728
+ const ret = arg0.open(DuckDBConfig.__wrap(arg1));
729
+ return ret;
754
730
  }, arguments);
755
731
  };
756
- imports.wbg.__wbg_log_8bb2c010ce15af48 = function(arg0, arg1) {
757
- console.log(getStringFromWasm0(arg0, arg1));
732
+ imports.wbg.__wbg_open_ea472ea5209b0983 = function(arg0, arg1) {
733
+ arg0.open(arg1);
758
734
  };
759
- imports.wbg.__wbg_error_a84695ce32854879 = function(arg0, arg1) {
760
- console.error(getStringFromWasm0(arg0, arg1));
735
+ imports.wbg.__wbg_performance_c185c0cdc2766575 = function(arg0) {
736
+ const ret = arg0.performance;
737
+ return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
761
738
  };
762
- imports.wbg.__wbg_warn_d85b304f0e70f5ac = function(arg0, arg1) {
763
- console.warn(getStringFromWasm0(arg0, arg1));
739
+ imports.wbg.__wbg_pickFiles_c443e685aed27e4f = function() {
740
+ return handleError(function(arg0) {
741
+ const ret = arg0.pickFiles();
742
+ return ret;
743
+ }, arguments);
764
744
  };
765
- imports.wbg.__wbindgen_json_serialize = function(arg0, arg1) {
766
- const obj = getObject(arg1);
767
- const ret = JSON.stringify(obj === void 0 ? null : obj);
768
- const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
769
- const len1 = WASM_VECTOR_LEN;
770
- getInt32Memory0()[arg0 / 4 + 1] = len1;
771
- getInt32Memory0()[arg0 / 4 + 0] = ptr1;
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);
772
750
  };
773
- imports.wbg.__wbg_static_accessor_PACKAGE_NAME_0af717684e189e55 = function(arg0) {
774
- const ret = import_duckdb_wasm.PACKAGE_NAME;
775
- const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
776
- const len1 = WASM_VECTOR_LEN;
777
- getInt32Memory0()[arg0 / 4 + 1] = len1;
778
- getInt32Memory0()[arg0 / 4 + 0] = ptr1;
751
+ imports.wbg.__wbg_queueMicrotask_97d92b4fcc8a61c5 = function(arg0) {
752
+ queueMicrotask(arg0);
779
753
  };
780
- imports.wbg.__wbg_new_79cc836771d68198 = function() {
781
- const ret = new import_xterm_addon_fit.FitAddon();
782
- return addHeapObject(ret);
754
+ imports.wbg.__wbg_queueMicrotask_d3219def82552485 = function(arg0) {
755
+ const ret = arg0.queueMicrotask;
756
+ return ret;
783
757
  };
784
- imports.wbg.__wbg_static_accessor_PACKAGE_VERSION_549ba11794cf5003 = function(arg0) {
785
- const ret = import_duckdb_wasm.PACKAGE_VERSION;
786
- const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
787
- const len1 = WASM_VECTOR_LEN;
788
- getInt32Memory0()[arg0 / 4 + 1] = len1;
789
- getInt32Memory0()[arg0 / 4 + 0] = ptr1;
758
+ imports.wbg.__wbg_readClipboardText_731ab326db907631 = function() {
759
+ return handleError(function(arg0) {
760
+ const ret = arg0.readClipboardText();
761
+ return ret;
762
+ }, arguments);
790
763
  };
791
- imports.wbg.__wbg_blockStats_14f17a14c4573f3d = function(arg0) {
792
- const ret = getObject(arg0).blockStats;
793
- 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);
794
769
  };
795
- imports.wbg.__wbg_totalFileWrites_1b38029d29f47d43 = function(arg0) {
796
- const ret = getObject(arg0).totalFileWrites;
797
- return addHeapObject(ret);
770
+ imports.wbg.__wbg_resolve_4851785c9c5f573d = function(arg0) {
771
+ const ret = Promise.resolve(arg0);
772
+ return ret;
798
773
  };
799
- imports.wbg.__wbg_totalFileReadsAhead_02c25545b2f63323 = function(arg0) {
800
- const ret = getObject(arg0).totalFileReadsAhead;
801
- 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);
802
779
  };
803
- imports.wbg.__wbg_totalFileReadsCold_304476ed0c49e111 = function(arg0) {
804
- const ret = getObject(arg0).totalFileReadsCold;
805
- return addHeapObject(ret);
780
+ imports.wbg.__wbg_set_65595bdd868b3009 = function(arg0, arg1, arg2) {
781
+ arg0.set(arg1, arg2 >>> 0);
806
782
  };
807
- imports.wbg.__wbg_totalFileReadsCached_2e8edfe7dbf14351 = function(arg0) {
808
- const ret = getObject(arg0).totalFileReadsCached;
809
- return addHeapObject(ret);
783
+ imports.wbg.__wbg_setallowProposedApi_1e56ae3768e93420 = function(arg0, arg1) {
784
+ arg0.allowProposedApi = arg1 !== 0;
810
785
  };
811
- imports.wbg.__wbg_totalPageAccesses_2f654448ea273878 = function(arg0) {
812
- const ret = getObject(arg0).totalPageAccesses;
813
- return addHeapObject(ret);
786
+ imports.wbg.__wbg_setbackground_94f13d2866b2e31b = function(arg0, arg1, arg2) {
787
+ arg0.background = getStringFromWasm0(arg1, arg2);
814
788
  };
815
- imports.wbg.__wbg_totalPageLoads_1ce10deb8828d935 = function(arg0) {
816
- const ret = getObject(arg0).totalPageLoads;
817
- return addHeapObject(ret);
789
+ imports.wbg.__wbg_setbrightYellow_5858b72099992f03 = function(arg0, arg1, arg2) {
790
+ arg0.brightYellow = getStringFromWasm0(arg1, arg2);
818
791
  };
819
- imports.wbg.__wbg_blockSize_77bc4e968a2e845a = function(arg0) {
820
- const ret = getObject(arg0).blockSize;
821
- return addHeapObject(ret);
792
+ imports.wbg.__wbg_setcursorBlink_850e871d6bcda748 = function(arg0, arg1) {
793
+ arg0.cursorBlink = arg1 !== 0;
822
794
  };
823
- imports.wbg.__wbg_new_abda76e883ba8a5f = function() {
824
- const ret = new Error();
825
- return addHeapObject(ret);
795
+ imports.wbg.__wbg_setcursorWidth_7899d7d19308befe = function(arg0, arg1) {
796
+ arg0.cursorWidth = arg1 >>> 0;
826
797
  };
827
- imports.wbg.__wbg_stack_658279fe44541cf6 = function(arg0, arg1) {
828
- const ret = getObject(arg1).stack;
829
- const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
830
- const len1 = WASM_VECTOR_LEN;
831
- getInt32Memory0()[arg0 / 4 + 1] = len1;
832
- getInt32Memory0()[arg0 / 4 + 0] = ptr1;
798
+ imports.wbg.__wbg_setdrawBoldTextInBrightColors_c3276731d7662d87 = function(arg0, arg1) {
799
+ arg0.drawBoldTextInBrightColors = arg1 !== 0;
833
800
  };
834
- imports.wbg.__wbg_error_f851667af71bcfc6 = function(arg0, arg1) {
835
- let deferred0_0;
836
- let deferred0_1;
837
- try {
838
- deferred0_0 = arg0;
839
- deferred0_1 = arg1;
840
- console.error(getStringFromWasm0(arg0, arg1));
841
- } finally {
842
- wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
843
- }
801
+ imports.wbg.__wbg_setfontFamily_f2837e56dcf1e5a4 = function(arg0, arg1, arg2) {
802
+ arg0.fontFamily = getStringFromWasm0(arg1, arg2);
844
803
  };
845
- imports.wbg.__wbg_instanceof_Window_9029196b662bc42a = function(arg0) {
846
- let result;
847
- try {
848
- result = getObject(arg0) instanceof Window;
849
- } catch (e) {
850
- result = false;
851
- }
852
- const ret = result;
853
- return ret;
804
+ imports.wbg.__wbg_setfontSize_7d8e3357cbc2a6ac = function(arg0, arg1) {
805
+ arg0.fontSize = arg1 >>> 0;
854
806
  };
855
- imports.wbg.__wbg_performance_2c295061c8b01e0b = function(arg0) {
856
- const ret = getObject(arg0).performance;
857
- return isLikeNone(ret) ? 0 : addHeapObject(ret);
807
+ imports.wbg.__wbg_setforeground_bbda7a714f8f4254 = function(arg0, arg1, arg2) {
808
+ arg0.foreground = getStringFromWasm0(arg1, arg2);
858
809
  };
859
- imports.wbg.__wbg_ctrlKey_582686fb2263dd3c = function(arg0) {
860
- const ret = getObject(arg0).ctrlKey;
861
- return ret;
810
+ imports.wbg.__wbg_setrightClickSelectsWord_e15e0a6c7e12c2f4 = function(arg0, arg1) {
811
+ arg0.rightClickSelectsWord = arg1 !== 0;
862
812
  };
863
- imports.wbg.__wbg_metaKey_43193b7cc99f8914 = function(arg0) {
864
- const ret = getObject(arg0).metaKey;
865
- 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;
866
818
  };
867
- imports.wbg.__wbg_key_8aeaa079126a9cc7 = function(arg0, arg1) {
868
- const ret = getObject(arg1).key;
819
+ imports.wbg.__wbg_stack_0ed75d68575b0f3c = function(arg0, arg1) {
820
+ const ret = arg1.stack;
869
821
  const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
870
822
  const len1 = WASM_VECTOR_LEN;
871
- getInt32Memory0()[arg0 / 4 + 1] = len1;
872
- getInt32Memory0()[arg0 / 4 + 0] = ptr1;
823
+ getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
824
+ getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
873
825
  };
874
- imports.wbg.__wbg_now_0cfdc90c97d0c24b = function(arg0) {
875
- const ret = getObject(arg0).now();
876
- return ret;
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);
877
833
  };
878
- imports.wbg.__wbg_type_4197dff653b7d208 = function(arg0, arg1) {
879
- const ret = getObject(arg1).type;
834
+ imports.wbg.__wbg_static_accessor_PACKAGE_NAME_0af717684e189e55 = function(arg0) {
835
+ const ret = import_duckdb_wasm.PACKAGE_NAME;
880
836
  const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
881
837
  const len1 = WASM_VECTOR_LEN;
882
- getInt32Memory0()[arg0 / 4 + 1] = len1;
883
- getInt32Memory0()[arg0 / 4 + 0] = ptr1;
838
+ getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
839
+ getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
884
840
  };
885
- imports.wbg.__wbg_get_44be0491f933a435 = function(arg0, arg1) {
886
- const ret = getObject(arg0)[arg1 >>> 0];
887
- return addHeapObject(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);
851
+ };
852
+ imports.wbg.__wbg_static_accessor_WINDOW_5de37043a91a9c40 = function() {
853
+ const ret = typeof window === "undefined" ? null : window;
854
+ return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
888
855
  };
889
- imports.wbg.__wbg_length_fff51ee6522a1a18 = function(arg0) {
890
- const ret = getObject(arg0).length;
856
+ imports.wbg.__wbg_then_44b73946d2fb3e7d = function(arg0, arg1) {
857
+ const ret = arg0.then(arg1);
891
858
  return ret;
892
859
  };
893
- imports.wbg.__wbg_newnoargs_581967eacc0e2604 = function(arg0, arg1) {
894
- const ret = new Function(getStringFromWasm0(arg0, arg1));
895
- return addHeapObject(ret);
860
+ imports.wbg.__wbg_then_48b406749878a531 = function(arg0, arg1, arg2) {
861
+ const ret = arg0.then(arg1, arg2);
862
+ return ret;
896
863
  };
897
- imports.wbg.__wbg_call_cb65541d95d71282 = function() {
898
- return handleError(function(arg0, arg1) {
899
- const ret = getObject(arg0).call(getObject(arg1));
900
- 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;
901
872
  }, arguments);
902
873
  };
903
- imports.wbg.__wbg_new_b51585de1b234aff = function() {
904
- const ret = new Object();
905
- return addHeapObject(ret);
874
+ imports.wbg.__wbg_totalFileReadsAhead_a8f3246739715872 = function(arg0) {
875
+ const ret = arg0.totalFileReadsAhead;
876
+ return ret;
906
877
  };
907
- imports.wbg.__wbg_self_1ff1d729e9aae938 = function() {
908
- return handleError(function() {
909
- const ret = self.self;
910
- return addHeapObject(ret);
911
- }, arguments);
878
+ imports.wbg.__wbg_totalFileReadsCached_a9d725246d8113de = function(arg0) {
879
+ const ret = arg0.totalFileReadsCached;
880
+ return ret;
912
881
  };
913
- imports.wbg.__wbg_window_5f4faef6c12b79ec = function() {
914
- return handleError(function() {
915
- const ret = window.window;
916
- return addHeapObject(ret);
917
- }, arguments);
882
+ imports.wbg.__wbg_totalFileReadsCold_969fc4fdc92ba928 = function(arg0) {
883
+ const ret = arg0.totalFileReadsCold;
884
+ return ret;
918
885
  };
919
- imports.wbg.__wbg_globalThis_1d39714405582d3c = function() {
920
- return handleError(function() {
921
- const ret = globalThis.globalThis;
922
- return addHeapObject(ret);
923
- }, arguments);
886
+ imports.wbg.__wbg_totalFileWrites_a1979d03072ca561 = function(arg0) {
887
+ const ret = arg0.totalFileWrites;
888
+ return ret;
924
889
  };
925
- imports.wbg.__wbg_global_651f05c6a0944d1c = function() {
926
- return handleError(function() {
927
- const ret = global.global;
928
- return addHeapObject(ret);
929
- }, arguments);
890
+ imports.wbg.__wbg_totalPageAccesses_d1e0755e7c873650 = function(arg0) {
891
+ const ret = arg0.totalPageAccesses;
892
+ return ret;
930
893
  };
931
- imports.wbg.__wbindgen_is_undefined = function(arg0) {
932
- const ret = getObject(arg0) === void 0;
894
+ imports.wbg.__wbg_totalPageLoads_055280bed199c515 = function(arg0) {
895
+ const ret = arg0.totalPageLoads;
933
896
  return ret;
934
897
  };
935
- imports.wbg.__wbg_new_d258248ed531ff54 = function(arg0, arg1) {
936
- const ret = new Error(getStringFromWasm0(arg0, arg1));
937
- 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);
938
904
  };
939
- imports.wbg.__wbg_message_48bacc5ea57d74ee = function(arg0) {
940
- const ret = getObject(arg0).message;
941
- 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);
942
911
  };
943
- imports.wbg.__wbg_toString_1c056108b87ba68b = function(arg0) {
944
- const ret = getObject(arg0).toString();
945
- return addHeapObject(ret);
912
+ imports.wbg.__wbg_warn_45a3a6612d9f19fe = function(arg0, arg1) {
913
+ console.warn(getStringFromWasm0(arg0, arg1));
946
914
  };
947
- imports.wbg.__wbg_call_01734de55d61e11d = function() {
948
- return handleError(function(arg0, arg1, arg2) {
949
- const ret = getObject(arg0).call(getObject(arg1), getObject(arg2));
950
- return addHeapObject(ret);
951
- }, arguments);
915
+ imports.wbg.__wbg_wasmBulkMemory_551502ede47fbf09 = function(arg0) {
916
+ const ret = arg0.wasmBulkMemory;
917
+ return ret;
952
918
  };
953
- imports.wbg.__wbg_new_43f1b47c28813cbd = function(arg0, arg1) {
954
- try {
955
- var state0 = { a: arg0, b: arg1 };
956
- var cb0 = (arg02, arg12) => {
957
- const a = state0.a;
958
- state0.a = 0;
959
- try {
960
- return __wbg_adapter_210(a, state0.b, arg02, arg12);
961
- } finally {
962
- state0.a = a;
963
- }
964
- };
965
- const ret = new Promise(cb0);
966
- return addHeapObject(ret);
967
- } finally {
968
- state0.a = state0.b = 0;
969
- }
919
+ imports.wbg.__wbg_wasmExceptions_4f3d6bc9c38eccd4 = function(arg0) {
920
+ const ret = arg0.wasmExceptions;
921
+ return ret;
970
922
  };
971
- imports.wbg.__wbg_resolve_53698b95aaf7fcf8 = function(arg0) {
972
- const ret = Promise.resolve(getObject(arg0));
973
- return addHeapObject(ret);
923
+ imports.wbg.__wbg_wasmSIMD_6e524010ac1b3712 = function(arg0) {
924
+ const ret = arg0.wasmSIMD;
925
+ return ret;
974
926
  };
975
- imports.wbg.__wbg_then_f7e06ee3c11698eb = function(arg0, arg1) {
976
- const ret = getObject(arg0).then(getObject(arg1));
977
- return addHeapObject(ret);
927
+ imports.wbg.__wbg_wasmThreads_bb92f1f17739f197 = function(arg0) {
928
+ const ret = arg0.wasmThreads;
929
+ return ret;
978
930
  };
979
- imports.wbg.__wbg_then_b2267541e2a73865 = function(arg0, arg1, arg2) {
980
- const ret = getObject(arg0).then(getObject(arg1), getObject(arg2));
981
- return addHeapObject(ret);
931
+ imports.wbg.__wbg_withWebGL_e7b2f98241b8125a = function(arg0) {
932
+ const ret = arg0.withWebGL;
933
+ return ret;
982
934
  };
983
- imports.wbg.__wbg_buffer_085ec1f694018c4f = function(arg0) {
984
- const ret = getObject(arg0).buffer;
985
- return addHeapObject(ret);
935
+ imports.wbg.__wbg_write_c3295e1c4c88047e = function(arg0, arg1, arg2) {
936
+ arg0.write(getStringFromWasm0(arg1, arg2));
986
937
  };
987
- imports.wbg.__wbg_new_8125e318e6245eed = function(arg0) {
988
- const ret = new Uint8Array(getObject(arg0));
989
- 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;
990
946
  };
991
- imports.wbg.__wbg_set_5cf90238115182c3 = function(arg0, arg1, arg2) {
992
- getObject(arg0).set(getObject(arg1), arg2 >>> 0);
947
+ imports.wbg.__wbindgen_closure_wrapper432 = function(arg0, arg1, arg2) {
948
+ const ret = makeMutClosure(arg0, arg1, 143, __wbg_adapter_26);
949
+ return ret;
993
950
  };
994
- imports.wbg.__wbg_length_72e2208bbc0efc61 = function(arg0) {
995
- const ret = getObject(arg0).length;
951
+ imports.wbg.__wbindgen_closure_wrapper918 = function(arg0, arg1, arg2) {
952
+ const ret = makeMutClosure(arg0, arg1, 180, __wbg_adapter_29);
996
953
  return ret;
997
954
  };
998
955
  imports.wbg.__wbindgen_debug_string = function(arg0, arg1) {
999
- const ret = debugString(getObject(arg1));
956
+ const ret = debugString(arg1);
1000
957
  const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1001
958
  const len1 = WASM_VECTOR_LEN;
1002
- getInt32Memory0()[arg0 / 4 + 1] = len1;
1003
- 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;
1004
975
  };
1005
- imports.wbg.__wbindgen_throw = function(arg0, arg1) {
1006
- 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);
1007
987
  };
1008
988
  imports.wbg.__wbindgen_memory = function() {
1009
989
  const ret = wasm.memory;
1010
- return addHeapObject(ret);
990
+ return ret;
1011
991
  };
1012
- imports.wbg.__wbindgen_closure_wrapper538 = function(arg0, arg1, arg2) {
1013
- const ret = makeMutClosure(arg0, arg1, 164, __wbg_adapter_22);
1014
- 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);
1015
1005
  };
1016
- imports.wbg.__wbindgen_closure_wrapper912 = function(arg0, arg1, arg2) {
1017
- const ret = makeMutClosure(arg0, arg1, 184, __wbg_adapter_25);
1018
- return addHeapObject(ret);
1006
+ imports.wbg.__wbindgen_throw = function(arg0, arg1) {
1007
+ throw new Error(getStringFromWasm0(arg0, arg1));
1019
1008
  };
1020
1009
  return imports;
1021
1010
  }
1022
- function __wbg_init_memory(imports, maybe_memory) {
1011
+ function __wbg_init_memory(imports, memory) {
1023
1012
  }
1024
1013
  function __wbg_finalize_init(instance, module2) {
1025
1014
  wasm = instance.exports;
1026
1015
  __wbg_init.__wbindgen_wasm_module = module2;
1027
- cachedFloat64Memory0 = null;
1028
- cachedInt32Memory0 = null;
1029
- cachedUint32Memory0 = null;
1030
- cachedUint8Memory0 = null;
1016
+ cachedDataViewMemory0 = null;
1017
+ cachedUint32ArrayMemory0 = null;
1018
+ cachedUint8ArrayMemory0 = null;
1031
1019
  wasm.__wbindgen_start();
1032
1020
  return wasm;
1033
1021
  }
1034
- async function __wbg_init(input) {
1022
+ async function __wbg_init(module_or_path) {
1035
1023
  if (wasm !== void 0)
1036
1024
  return wasm;
1037
- if (typeof input === "undefined") {
1038
- 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);
1039
1034
  }
1040
1035
  const imports = __wbg_get_imports();
1041
- if (typeof input === "string" || typeof Request === "function" && input instanceof Request || typeof URL === "function" && input instanceof URL) {
1042
- 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);
1043
1038
  }
1044
1039
  __wbg_init_memory(imports);
1045
- const { instance, module: module2 } = await __wbg_load(await input, imports);
1040
+ const { instance, module: module2 } = await __wbg_load(await module_or_path, imports);
1046
1041
  return __wbg_finalize_init(instance, module2);
1047
1042
  }
1048
1043
  var shell_default = __wbg_init;