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