gluesql 0.15.0 → 0.16.3

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.
@@ -1,50 +1,40 @@
1
1
  let wasm;
2
2
 
3
+ function addToExternrefTable0(obj) {
4
+ const idx = wasm.__externref_table_alloc();
5
+ wasm.__wbindgen_export_2.set(idx, obj);
6
+ return idx;
7
+ }
8
+
9
+ function handleError(f, args) {
10
+ try {
11
+ return f.apply(this, args);
12
+ } catch (e) {
13
+ const idx = addToExternrefTable0(e);
14
+ wasm.__wbindgen_exn_store(idx);
15
+ }
16
+ }
17
+
3
18
  const cachedTextDecoder = (typeof TextDecoder !== 'undefined' ? new TextDecoder('utf-8', { ignoreBOM: true, fatal: true }) : { decode: () => { throw Error('TextDecoder not available') } } );
4
19
 
5
20
  if (typeof TextDecoder !== 'undefined') { cachedTextDecoder.decode(); };
6
21
 
7
- let cachedUint8Memory0 = null;
22
+ let cachedUint8ArrayMemory0 = null;
8
23
 
9
- function getUint8Memory0() {
10
- if (cachedUint8Memory0 === null || cachedUint8Memory0.byteLength === 0) {
11
- cachedUint8Memory0 = new Uint8Array(wasm.memory.buffer);
24
+ function getUint8ArrayMemory0() {
25
+ if (cachedUint8ArrayMemory0 === null || cachedUint8ArrayMemory0.byteLength === 0) {
26
+ cachedUint8ArrayMemory0 = new Uint8Array(wasm.memory.buffer);
12
27
  }
13
- return cachedUint8Memory0;
28
+ return cachedUint8ArrayMemory0;
14
29
  }
15
30
 
16
31
  function getStringFromWasm0(ptr, len) {
17
32
  ptr = ptr >>> 0;
18
- return cachedTextDecoder.decode(getUint8Memory0().subarray(ptr, ptr + len));
19
- }
20
-
21
- const heap = new Array(128).fill(undefined);
22
-
23
- heap.push(undefined, null, true, false);
24
-
25
- let heap_next = heap.length;
26
-
27
- function addHeapObject(obj) {
28
- if (heap_next === heap.length) heap.push(heap.length + 1);
29
- const idx = heap_next;
30
- heap_next = heap[idx];
31
-
32
- heap[idx] = obj;
33
- return idx;
34
- }
35
-
36
- function getObject(idx) { return heap[idx]; }
37
-
38
- function dropObject(idx) {
39
- if (idx < 132) return;
40
- heap[idx] = heap_next;
41
- heap_next = idx;
33
+ return cachedTextDecoder.decode(getUint8ArrayMemory0().subarray(ptr, ptr + len));
42
34
  }
43
35
 
44
- function takeObject(idx) {
45
- const ret = getObject(idx);
46
- dropObject(idx);
47
- return ret;
36
+ function isLikeNone(x) {
37
+ return x === undefined || x === null;
48
38
  }
49
39
 
50
40
  let WASM_VECTOR_LEN = 0;
@@ -69,7 +59,7 @@ function passStringToWasm0(arg, malloc, realloc) {
69
59
  if (realloc === undefined) {
70
60
  const buf = cachedTextEncoder.encode(arg);
71
61
  const ptr = malloc(buf.length, 1) >>> 0;
72
- getUint8Memory0().subarray(ptr, ptr + buf.length).set(buf);
62
+ getUint8ArrayMemory0().subarray(ptr, ptr + buf.length).set(buf);
73
63
  WASM_VECTOR_LEN = buf.length;
74
64
  return ptr;
75
65
  }
@@ -77,7 +67,7 @@ function passStringToWasm0(arg, malloc, realloc) {
77
67
  let len = arg.length;
78
68
  let ptr = malloc(len, 1) >>> 0;
79
69
 
80
- const mem = getUint8Memory0();
70
+ const mem = getUint8ArrayMemory0();
81
71
 
82
72
  let offset = 0;
83
73
 
@@ -92,29 +82,32 @@ function passStringToWasm0(arg, malloc, realloc) {
92
82
  arg = arg.slice(offset);
93
83
  }
94
84
  ptr = realloc(ptr, len, len = offset + arg.length * 3, 1) >>> 0;
95
- const view = getUint8Memory0().subarray(ptr + offset, ptr + len);
85
+ const view = getUint8ArrayMemory0().subarray(ptr + offset, ptr + len);
96
86
  const ret = encodeString(arg, view);
97
87
 
98
88
  offset += ret.written;
89
+ ptr = realloc(ptr, len, offset, 1) >>> 0;
99
90
  }
100
91
 
101
92
  WASM_VECTOR_LEN = offset;
102
93
  return ptr;
103
94
  }
104
95
 
105
- function isLikeNone(x) {
106
- return x === undefined || x === null;
107
- }
108
-
109
- let cachedInt32Memory0 = null;
96
+ let cachedDataViewMemory0 = null;
110
97
 
111
- function getInt32Memory0() {
112
- if (cachedInt32Memory0 === null || cachedInt32Memory0.byteLength === 0) {
113
- cachedInt32Memory0 = new Int32Array(wasm.memory.buffer);
98
+ function getDataViewMemory0() {
99
+ if (cachedDataViewMemory0 === null || cachedDataViewMemory0.buffer.detached === true || (cachedDataViewMemory0.buffer.detached === undefined && cachedDataViewMemory0.buffer !== wasm.memory.buffer)) {
100
+ cachedDataViewMemory0 = new DataView(wasm.memory.buffer);
114
101
  }
115
- return cachedInt32Memory0;
102
+ return cachedDataViewMemory0;
116
103
  }
117
104
 
105
+ const CLOSURE_DTORS = (typeof FinalizationRegistry === 'undefined')
106
+ ? { register: () => {}, unregister: () => {} }
107
+ : new FinalizationRegistry(state => {
108
+ wasm.__wbindgen_export_6.get(state.dtor)(state.a, state.b)
109
+ });
110
+
118
111
  function makeMutClosure(arg0, arg1, dtor, f) {
119
112
  const state = { a: arg0, b: arg1, cnt: 1, dtor };
120
113
  const real = (...args) => {
@@ -128,110 +121,96 @@ function makeMutClosure(arg0, arg1, dtor, f) {
128
121
  return f(a, state.b, ...args);
129
122
  } finally {
130
123
  if (--state.cnt === 0) {
131
- wasm.__wbindgen_export_2.get(state.dtor)(a, state.b);
132
-
124
+ wasm.__wbindgen_export_6.get(state.dtor)(a, state.b);
125
+ CLOSURE_DTORS.unregister(state);
133
126
  } else {
134
127
  state.a = a;
135
128
  }
136
129
  }
137
130
  };
138
131
  real.original = state;
139
-
132
+ CLOSURE_DTORS.register(real, state, state);
140
133
  return real;
141
134
  }
142
- function __wbg_adapter_26(arg0, arg1, arg2) {
143
- wasm._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h088d0bcdeae0bc7f(arg0, arg1, addHeapObject(arg2));
135
+
136
+ function takeFromExternrefTable0(idx) {
137
+ const value = wasm.__wbindgen_export_2.get(idx);
138
+ wasm.__externref_table_dealloc(idx);
139
+ return value;
140
+ }
141
+ function __wbg_adapter_28(arg0, arg1, arg2) {
142
+ wasm.closure568_externref_shim(arg0, arg1, arg2);
144
143
  }
145
144
 
146
- function __wbg_adapter_29(arg0, arg1, arg2) {
147
- wasm.__wbindgen_export_4(arg0, arg1, addHeapObject(arg2));
145
+ function __wbg_adapter_31(arg0, arg1, arg2) {
146
+ wasm.closure609_externref_shim(arg0, arg1, arg2);
148
147
  }
149
148
 
150
149
  function __wbg_adapter_34(arg0, arg1, arg2) {
151
- wasm.__wbindgen_export_5(arg0, arg1, addHeapObject(arg2));
150
+ wasm.closure658_externref_shim(arg0, arg1, arg2);
152
151
  }
153
152
 
154
- function __wbg_adapter_37(arg0, arg1, arg2) {
155
- wasm.__wbindgen_export_6(arg0, arg1, addHeapObject(arg2));
153
+ function __wbg_adapter_201(arg0, arg1, arg2, arg3) {
154
+ wasm.closure3116_externref_shim(arg0, arg1, arg2, arg3);
156
155
  }
157
156
 
158
- function handleError(f, args) {
159
- try {
160
- return f.apply(this, args);
161
- } catch (e) {
162
- wasm.__wbindgen_export_8(addHeapObject(e));
163
- }
164
- }
165
- function __wbg_adapter_196(arg0, arg1, arg2, arg3) {
166
- wasm.__wbindgen_export_9(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
167
- }
157
+ const __wbindgen_enum_IdbCursorDirection = ["next", "nextunique", "prev", "prevunique"];
168
158
 
169
- /**
170
- */
171
- export class Glue {
159
+ const __wbindgen_enum_IdbTransactionMode = ["readonly", "readwrite", "versionchange", "readwriteflush", "cleanup"];
172
160
 
173
- static __wrap(ptr) {
174
- ptr = ptr >>> 0;
175
- const obj = Object.create(Glue.prototype);
176
- obj.__wbg_ptr = ptr;
161
+ const GlueFinalization = (typeof FinalizationRegistry === 'undefined')
162
+ ? { register: () => {}, unregister: () => {} }
163
+ : new FinalizationRegistry(ptr => wasm.__wbg_glue_free(ptr >>> 0, 1));
177
164
 
178
- return obj;
179
- }
165
+ export class Glue {
180
166
 
181
167
  __destroy_into_raw() {
182
168
  const ptr = this.__wbg_ptr;
183
169
  this.__wbg_ptr = 0;
184
-
170
+ GlueFinalization.unregister(this);
185
171
  return ptr;
186
172
  }
187
173
 
188
174
  free() {
189
175
  const ptr = this.__destroy_into_raw();
190
- wasm.__wbg_glue_free(ptr);
176
+ wasm.__wbg_glue_free(ptr, 0);
191
177
  }
192
- /**
193
- */
194
178
  constructor() {
195
179
  const ret = wasm.glue_new();
196
- return Glue.__wrap(ret);
180
+ this.__wbg_ptr = ret >>> 0;
181
+ GlueFinalization.register(this, this.__wbg_ptr, this);
182
+ return this;
197
183
  }
198
184
  /**
199
- * @param {string | undefined} namespace
200
- * @returns {Promise<any>}
201
- */
185
+ * @param {string | null} [namespace]
186
+ * @returns {Promise<any>}
187
+ */
202
188
  loadIndexedDB(namespace) {
203
- var ptr0 = isLikeNone(namespace) ? 0 : passStringToWasm0(namespace, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
189
+ var ptr0 = isLikeNone(namespace) ? 0 : passStringToWasm0(namespace, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
204
190
  var len0 = WASM_VECTOR_LEN;
205
191
  const ret = wasm.glue_loadIndexedDB(this.__wbg_ptr, ptr0, len0);
206
- return takeObject(ret);
192
+ return ret;
207
193
  }
208
194
  /**
209
- * @param {string} default_engine
210
- */
195
+ * @param {string} default_engine
196
+ */
211
197
  setDefaultEngine(default_engine) {
212
- try {
213
- const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
214
- const ptr0 = passStringToWasm0(default_engine, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
215
- const len0 = WASM_VECTOR_LEN;
216
- wasm.glue_setDefaultEngine(retptr, this.__wbg_ptr, ptr0, len0);
217
- var r0 = getInt32Memory0()[retptr / 4 + 0];
218
- var r1 = getInt32Memory0()[retptr / 4 + 1];
219
- if (r1) {
220
- throw takeObject(r0);
221
- }
222
- } finally {
223
- wasm.__wbindgen_add_to_stack_pointer(16);
198
+ const ptr0 = passStringToWasm0(default_engine, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
199
+ const len0 = WASM_VECTOR_LEN;
200
+ const ret = wasm.glue_setDefaultEngine(this.__wbg_ptr, ptr0, len0);
201
+ if (ret[1]) {
202
+ throw takeFromExternrefTable0(ret[0]);
224
203
  }
225
204
  }
226
205
  /**
227
- * @param {string} sql
228
- * @returns {Promise<any>}
229
- */
206
+ * @param {string} sql
207
+ * @returns {Promise<any>}
208
+ */
230
209
  query(sql) {
231
- const ptr0 = passStringToWasm0(sql, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
210
+ const ptr0 = passStringToWasm0(sql, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
232
211
  const len0 = WASM_VECTOR_LEN;
233
212
  const ret = wasm.glue_query(this.__wbg_ptr, ptr0, len0);
234
- return takeObject(ret);
213
+ return ret;
235
214
  }
236
215
  }
237
216
 
@@ -243,7 +222,7 @@ async function __wbg_load(module, imports) {
243
222
 
244
223
  } catch (e) {
245
224
  if (module.headers.get('Content-Type') != 'application/wasm') {
246
- 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);
225
+ 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);
247
226
 
248
227
  } else {
249
228
  throw e;
@@ -269,37 +248,54 @@ async function __wbg_load(module, imports) {
269
248
  function __wbg_get_imports() {
270
249
  const imports = {};
271
250
  imports.wbg = {};
272
- imports.wbg.__wbindgen_string_new = function(arg0, arg1) {
273
- const ret = getStringFromWasm0(arg0, arg1);
274
- return addHeapObject(ret);
275
- };
276
- imports.wbg.__wbindgen_object_drop_ref = function(arg0) {
277
- takeObject(arg0);
278
- };
279
- imports.wbg.__wbg_debug_48a424355767756a = function(arg0, arg1) {
280
- console.debug(getStringFromWasm0(arg0, arg1));
251
+ imports.wbg.__wbg_add_4315fd553d714c24 = function() { return handleError(function (arg0, arg1) {
252
+ const ret = arg0.add(arg1);
253
+ return ret;
254
+ }, arguments) };
255
+ imports.wbg.__wbg_add_9338901b80183e0f = function() { return handleError(function (arg0, arg1, arg2) {
256
+ const ret = arg0.add(arg1, arg2);
257
+ return ret;
258
+ }, arguments) };
259
+ imports.wbg.__wbg_advance_b3ccc91b80962d79 = function() { return handleError(function (arg0, arg1) {
260
+ arg0.advance(arg1 >>> 0);
261
+ }, arguments) };
262
+ imports.wbg.__wbg_buffer_609cc3eee51ed158 = function(arg0) {
263
+ const ret = arg0.buffer;
264
+ return ret;
281
265
  };
282
- imports.wbg.__wbindgen_cb_drop = function(arg0) {
283
- const obj = takeObject(arg0).original;
284
- if (obj.cnt-- == 1) {
285
- obj.a = 0;
286
- return true;
287
- }
288
- const ret = false;
266
+ imports.wbg.__wbg_call_672a4d21634d4a24 = function() { return handleError(function (arg0, arg1) {
267
+ const ret = arg0.call(arg1);
289
268
  return ret;
269
+ }, arguments) };
270
+ imports.wbg.__wbg_call_7cccdd69e0791ae2 = function() { return handleError(function (arg0, arg1, arg2) {
271
+ const ret = arg0.call(arg1, arg2);
272
+ return ret;
273
+ }, arguments) };
274
+ imports.wbg.__wbg_close_26fc2e6856d8567a = function(arg0) {
275
+ arg0.close();
290
276
  };
291
- imports.wbg.__wbg_new_abda76e883ba8a5f = function() {
292
- const ret = new Error();
293
- return addHeapObject(ret);
277
+ imports.wbg.__wbg_commit_ee33ba79d75a9134 = function() { return handleError(function (arg0) {
278
+ arg0.commit();
279
+ }, arguments) };
280
+ imports.wbg.__wbg_createObjectStore_d2f9e1016f4d81b9 = function() { return handleError(function (arg0, arg1, arg2, arg3) {
281
+ const ret = arg0.createObjectStore(getStringFromWasm0(arg1, arg2), arg3);
282
+ return ret;
283
+ }, arguments) };
284
+ imports.wbg.__wbg_crypto_ed58b8e10a292839 = function(arg0) {
285
+ const ret = arg0.crypto;
286
+ return ret;
294
287
  };
295
- imports.wbg.__wbg_stack_658279fe44541cf6 = function(arg0, arg1) {
296
- const ret = getObject(arg1).stack;
297
- const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
298
- const len1 = WASM_VECTOR_LEN;
299
- getInt32Memory0()[arg0 / 4 + 1] = len1;
300
- getInt32Memory0()[arg0 / 4 + 0] = ptr1;
288
+ imports.wbg.__wbg_debug_92859dac05840d3a = function(arg0, arg1) {
289
+ console.debug(getStringFromWasm0(arg0, arg1));
301
290
  };
302
- imports.wbg.__wbg_error_f851667af71bcfc6 = function(arg0, arg1) {
291
+ imports.wbg.__wbg_deleteObjectStore_3f08ae00cd288224 = function() { return handleError(function (arg0, arg1, arg2) {
292
+ arg0.deleteObjectStore(getStringFromWasm0(arg1, arg2));
293
+ }, arguments) };
294
+ imports.wbg.__wbg_delete_200677093b4cf756 = function() { return handleError(function (arg0, arg1) {
295
+ const ret = arg0.delete(arg1);
296
+ return ret;
297
+ }, arguments) };
298
+ imports.wbg.__wbg_error_7534b8e9a36f1ab4 = function(arg0, arg1) {
303
299
  let deferred0_0;
304
300
  let deferred0_1;
305
301
  try {
@@ -307,503 +303,501 @@ function __wbg_get_imports() {
307
303
  deferred0_1 = arg1;
308
304
  console.error(getStringFromWasm0(arg0, arg1));
309
305
  } finally {
310
- wasm.__wbindgen_export_7(deferred0_0, deferred0_1, 1);
306
+ wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
311
307
  }
312
308
  };
313
- imports.wbg.__wbindgen_string_get = function(arg0, arg1) {
314
- const obj = getObject(arg1);
315
- const ret = typeof(obj) === 'string' ? obj : undefined;
316
- var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
317
- var len1 = WASM_VECTOR_LEN;
318
- getInt32Memory0()[arg0 / 4 + 1] = len1;
319
- getInt32Memory0()[arg0 / 4 + 0] = ptr1;
309
+ imports.wbg.__wbg_error_e9332df4e7a14612 = function(arg0) {
310
+ const ret = arg0.error;
311
+ return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
320
312
  };
321
- imports.wbg.__wbindgen_is_null = function(arg0) {
322
- const ret = getObject(arg0) === null;
313
+ imports.wbg.__wbg_error_ff4ddaabdfc5dbb3 = function() { return handleError(function (arg0) {
314
+ const ret = arg0.error;
315
+ return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
316
+ }, arguments) };
317
+ imports.wbg.__wbg_getAll_1de5635a99f2dae8 = function() { return handleError(function (arg0) {
318
+ const ret = arg0.getAll();
323
319
  return ret;
324
- };
325
- imports.wbg.__wbindgen_is_undefined = function(arg0) {
326
- const ret = getObject(arg0) === undefined;
320
+ }, arguments) };
321
+ imports.wbg.__wbg_getAll_e1f497a121218ab5 = function() { return handleError(function (arg0, arg1, arg2) {
322
+ const ret = arg0.getAll(arg1, arg2 >>> 0);
327
323
  return ret;
328
- };
329
- imports.wbg.__wbindgen_is_string = function(arg0) {
330
- const ret = typeof(getObject(arg0)) === 'string';
324
+ }, arguments) };
325
+ imports.wbg.__wbg_getAll_e6903c610babcd42 = function() { return handleError(function (arg0, arg1) {
326
+ const ret = arg0.getAll(arg1);
331
327
  return ret;
332
- };
333
- imports.wbg.__wbg_crypto_c48a774b022d20ac = function(arg0) {
334
- const ret = getObject(arg0).crypto;
335
- return addHeapObject(ret);
336
- };
337
- imports.wbg.__wbindgen_is_object = function(arg0) {
338
- const val = getObject(arg0);
339
- const ret = typeof(val) === 'object' && val !== null;
328
+ }, arguments) };
329
+ imports.wbg.__wbg_getItem_17f98dee3b43fa7e = function() { return handleError(function (arg0, arg1, arg2, arg3) {
330
+ const ret = arg1.getItem(getStringFromWasm0(arg2, arg3));
331
+ var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
332
+ var len1 = WASM_VECTOR_LEN;
333
+ getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
334
+ getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
335
+ }, arguments) };
336
+ imports.wbg.__wbg_getRandomValues_bcb4912f16000dc4 = function() { return handleError(function (arg0, arg1) {
337
+ arg0.getRandomValues(arg1);
338
+ }, arguments) };
339
+ imports.wbg.__wbg_getTime_46267b1c24877e30 = function(arg0) {
340
+ const ret = arg0.getTime();
340
341
  return ret;
341
342
  };
342
- imports.wbg.__wbg_process_298734cf255a885d = function(arg0) {
343
- const ret = getObject(arg0).process;
344
- return addHeapObject(ret);
345
- };
346
- imports.wbg.__wbg_versions_e2e78e134e3e5d01 = function(arg0) {
347
- const ret = getObject(arg0).versions;
348
- return addHeapObject(ret);
349
- };
350
- imports.wbg.__wbg_node_1cd7a5d853dbea79 = function(arg0) {
351
- const ret = getObject(arg0).node;
352
- return addHeapObject(ret);
353
- };
354
- imports.wbg.__wbg_msCrypto_bcb970640f50a1e8 = function(arg0) {
355
- const ret = getObject(arg0).msCrypto;
356
- return addHeapObject(ret);
343
+ imports.wbg.__wbg_get_4f73335ab78445db = function(arg0, arg1, arg2) {
344
+ const ret = arg1[arg2 >>> 0];
345
+ var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
346
+ var len1 = WASM_VECTOR_LEN;
347
+ getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
348
+ getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
357
349
  };
358
- imports.wbg.__wbg_require_8f08ceecec0f4fee = function() { return handleError(function () {
359
- const ret = module.require;
360
- return addHeapObject(ret);
361
- }, arguments) };
362
- imports.wbg.__wbindgen_is_function = function(arg0) {
363
- const ret = typeof(getObject(arg0)) === 'function';
350
+ imports.wbg.__wbg_get_67b2ba62fc30de12 = function() { return handleError(function (arg0, arg1) {
351
+ const ret = Reflect.get(arg0, arg1);
364
352
  return ret;
365
- };
366
- imports.wbg.__wbg_getRandomValues_37fa2ca9e4e07fab = function() { return handleError(function (arg0, arg1) {
367
- getObject(arg0).getRandomValues(getObject(arg1));
368
353
  }, arguments) };
369
- imports.wbg.__wbg_randomFillSync_dc1e9a60c158336d = function() { return handleError(function (arg0, arg1) {
370
- getObject(arg0).randomFillSync(takeObject(arg1));
354
+ imports.wbg.__wbg_get_8da03f81f6a1111e = function() { return handleError(function (arg0, arg1) {
355
+ const ret = arg0.get(arg1);
356
+ return ret;
371
357
  }, arguments) };
372
- imports.wbg.__wbindgen_object_clone_ref = function(arg0) {
373
- const ret = getObject(arg0);
374
- return addHeapObject(ret);
358
+ imports.wbg.__wbg_get_b9b93047fe3cf45b = function(arg0, arg1) {
359
+ const ret = arg0[arg1 >>> 0];
360
+ return ret;
375
361
  };
376
- imports.wbg.__wbg_instanceof_Window_9029196b662bc42a = function(arg0) {
362
+ imports.wbg.__wbg_instanceof_Error_4d54113b22d20306 = function(arg0) {
377
363
  let result;
378
364
  try {
379
- result = getObject(arg0) instanceof Window;
380
- } catch {
365
+ result = arg0 instanceof Error;
366
+ } catch (_) {
381
367
  result = false;
382
368
  }
383
369
  const ret = result;
384
370
  return ret;
385
371
  };
386
- imports.wbg.__wbg_localStorage_dbac11bd189e9fa0 = function() { return handleError(function (arg0) {
387
- const ret = getObject(arg0).localStorage;
388
- return isLikeNone(ret) ? 0 : addHeapObject(ret);
389
- }, arguments) };
390
- imports.wbg.__wbg_sessionStorage_3b863b6e15dd2bdc = function() { return handleError(function (arg0) {
391
- const ret = getObject(arg0).sessionStorage;
392
- return isLikeNone(ret) ? 0 : addHeapObject(ret);
393
- }, arguments) };
394
- imports.wbg.__wbg_error_788ae33f81d3b84b = function(arg0) {
395
- console.error(getObject(arg0));
396
- };
397
- imports.wbg.__wbg_instanceof_IdbFactory_737b6a04b9fa9269 = function(arg0) {
372
+ imports.wbg.__wbg_instanceof_IdbCursorWithValue_18f39d69ed298f6f = function(arg0) {
398
373
  let result;
399
374
  try {
400
- result = getObject(arg0) instanceof IDBFactory;
401
- } catch {
375
+ result = arg0 instanceof IDBCursorWithValue;
376
+ } catch (_) {
402
377
  result = false;
403
378
  }
404
379
  const ret = result;
405
380
  return ret;
406
381
  };
407
- imports.wbg.__wbg_open_6a08b03c958d4ad0 = function() { return handleError(function (arg0, arg1, arg2, arg3) {
408
- const ret = getObject(arg0).open(getStringFromWasm0(arg1, arg2), arg3 >>> 0);
409
- return addHeapObject(ret);
410
- }, arguments) };
411
- imports.wbg.__wbg_open_11c83d2d4f1b9255 = function() { return handleError(function (arg0, arg1, arg2) {
412
- const ret = getObject(arg0).open(getStringFromWasm0(arg1, arg2));
413
- return addHeapObject(ret);
414
- }, arguments) };
415
- imports.wbg.__wbg_instanceof_IdbOpenDbRequest_bcc586153af3267f = function(arg0) {
382
+ imports.wbg.__wbg_instanceof_IdbDatabase_a3ef009ca00059f9 = function(arg0) {
416
383
  let result;
417
384
  try {
418
- result = getObject(arg0) instanceof IDBOpenDBRequest;
419
- } catch {
385
+ result = arg0 instanceof IDBDatabase;
386
+ } catch (_) {
420
387
  result = false;
421
388
  }
422
389
  const ret = result;
423
390
  return ret;
424
391
  };
425
- imports.wbg.__wbg_setonupgradeneeded_5a39a65558c323b2 = function(arg0, arg1) {
426
- getObject(arg0).onupgradeneeded = getObject(arg1);
427
- };
428
- imports.wbg.__wbg_add_f5fa2e59ca4a337c = function() { return handleError(function (arg0, arg1) {
429
- const ret = getObject(arg0).add(getObject(arg1));
430
- return addHeapObject(ret);
431
- }, arguments) };
432
- imports.wbg.__wbg_add_3d093f228bbbc9d7 = function() { return handleError(function (arg0, arg1, arg2) {
433
- const ret = getObject(arg0).add(getObject(arg1), getObject(arg2));
434
- return addHeapObject(ret);
435
- }, arguments) };
436
- imports.wbg.__wbg_delete_ca1cfc48f1f7981c = function() { return handleError(function (arg0, arg1) {
437
- const ret = getObject(arg0).delete(getObject(arg1));
438
- return addHeapObject(ret);
439
- }, arguments) };
440
- imports.wbg.__wbg_get_fc26906e5ae1ea85 = function() { return handleError(function (arg0, arg1) {
441
- const ret = getObject(arg0).get(getObject(arg1));
442
- return addHeapObject(ret);
443
- }, arguments) };
444
- imports.wbg.__wbg_getAll_0d58829abb4c5e2e = function() { return handleError(function (arg0) {
445
- const ret = getObject(arg0).getAll();
446
- return addHeapObject(ret);
447
- }, arguments) };
448
- imports.wbg.__wbg_getAll_9cfd2e60d1c2f3b6 = function() { return handleError(function (arg0, arg1) {
449
- const ret = getObject(arg0).getAll(getObject(arg1));
450
- return addHeapObject(ret);
451
- }, arguments) };
452
- imports.wbg.__wbg_getAll_1c22e627d19c580a = function() { return handleError(function (arg0, arg1, arg2) {
453
- const ret = getObject(arg0).getAll(getObject(arg1), arg2 >>> 0);
454
- return addHeapObject(ret);
455
- }, arguments) };
456
- imports.wbg.__wbg_openCursor_4d6f62b69b34be26 = function() { return handleError(function (arg0) {
457
- const ret = getObject(arg0).openCursor();
458
- return addHeapObject(ret);
459
- }, arguments) };
460
- imports.wbg.__wbg_openCursor_555d508ba71b21cc = function() { return handleError(function (arg0, arg1) {
461
- const ret = getObject(arg0).openCursor(getObject(arg1));
462
- return addHeapObject(ret);
463
- }, arguments) };
464
- imports.wbg.__wbg_openCursor_3204283d52f4c9ba = function() { return handleError(function (arg0, arg1, arg2) {
465
- const ret = getObject(arg0).openCursor(getObject(arg1), takeObject(arg2));
466
- return addHeapObject(ret);
467
- }, arguments) };
468
- imports.wbg.__wbg_put_d6937bc51f51a398 = function() { return handleError(function (arg0, arg1) {
469
- const ret = getObject(arg0).put(getObject(arg1));
470
- return addHeapObject(ret);
471
- }, arguments) };
472
- imports.wbg.__wbg_put_fb32824d87feec5c = function() { return handleError(function (arg0, arg1, arg2) {
473
- const ret = getObject(arg0).put(getObject(arg1), getObject(arg2));
474
- return addHeapObject(ret);
475
- }, arguments) };
476
- imports.wbg.__wbg_length_de272fc97200ec95 = function(arg0) {
477
- const ret = getObject(arg0).length;
392
+ imports.wbg.__wbg_instanceof_IdbFactory_12eaba3366f4302f = function(arg0) {
393
+ let result;
394
+ try {
395
+ result = arg0 instanceof IDBFactory;
396
+ } catch (_) {
397
+ result = false;
398
+ }
399
+ const ret = result;
478
400
  return ret;
479
401
  };
480
- imports.wbg.__wbg_get_fca5c2e9985ebaff = function(arg0, arg1, arg2) {
481
- const ret = getObject(arg1)[arg2 >>> 0];
482
- var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
483
- var len1 = WASM_VECTOR_LEN;
484
- getInt32Memory0()[arg0 / 4 + 1] = len1;
485
- getInt32Memory0()[arg0 / 4 + 0] = ptr1;
486
- };
487
- imports.wbg.__wbg_key_1a7b60df5fef1cb0 = function() { return handleError(function (arg0) {
488
- const ret = getObject(arg0).key;
489
- return addHeapObject(ret);
490
- }, arguments) };
491
- imports.wbg.__wbg_request_57d86710b6f53577 = function(arg0) {
492
- const ret = getObject(arg0).request;
493
- return addHeapObject(ret);
494
- };
495
- imports.wbg.__wbg_advance_c7e5fd8d69236e91 = function() { return handleError(function (arg0, arg1) {
496
- getObject(arg0).advance(arg1 >>> 0);
497
- }, arguments) };
498
- imports.wbg.__wbg_instanceof_IdbCursorWithValue_ce4b87159cd63444 = function(arg0) {
402
+ imports.wbg.__wbg_instanceof_IdbOpenDbRequest_a3416e156c9db893 = function(arg0) {
499
403
  let result;
500
404
  try {
501
- result = getObject(arg0) instanceof IDBCursorWithValue;
502
- } catch {
405
+ result = arg0 instanceof IDBOpenDBRequest;
406
+ } catch (_) {
503
407
  result = false;
504
408
  }
505
409
  const ret = result;
506
410
  return ret;
507
411
  };
508
- imports.wbg.__wbg_value_c49deffceeea3d79 = function() { return handleError(function (arg0) {
509
- const ret = getObject(arg0).value;
510
- return addHeapObject(ret);
511
- }, arguments) };
512
- imports.wbg.__wbg_instanceof_IdbRequest_3a6ba410e62b59d8 = function(arg0) {
412
+ imports.wbg.__wbg_instanceof_IdbRequest_4813c3f207666aa4 = function(arg0) {
513
413
  let result;
514
414
  try {
515
- result = getObject(arg0) instanceof IDBRequest;
516
- } catch {
415
+ result = arg0 instanceof IDBRequest;
416
+ } catch (_) {
517
417
  result = false;
518
418
  }
519
419
  const ret = result;
520
420
  return ret;
521
421
  };
522
- imports.wbg.__wbg_result_edff16ff107d6acb = function() { return handleError(function (arg0) {
523
- const ret = getObject(arg0).result;
524
- return addHeapObject(ret);
525
- }, arguments) };
526
- imports.wbg.__wbg_error_8a79f35fe9368563 = function() { return handleError(function (arg0) {
527
- const ret = getObject(arg0).error;
528
- return isLikeNone(ret) ? 0 : addHeapObject(ret);
529
- }, arguments) };
530
- imports.wbg.__wbg_setonsuccess_f518a37d8228a576 = function(arg0, arg1) {
531
- getObject(arg0).onsuccess = getObject(arg1);
532
- };
533
- imports.wbg.__wbg_setonerror_7bf21979c5219792 = function(arg0, arg1) {
534
- getObject(arg0).onerror = getObject(arg1);
535
- };
536
- imports.wbg.__wbg_getItem_ed8e218e51f1efeb = function() { return handleError(function (arg0, arg1, arg2, arg3) {
537
- const ret = getObject(arg1).getItem(getStringFromWasm0(arg2, arg3));
538
- var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
539
- var len1 = WASM_VECTOR_LEN;
540
- getInt32Memory0()[arg0 / 4 + 1] = len1;
541
- getInt32Memory0()[arg0 / 4 + 0] = ptr1;
542
- }, arguments) };
543
- imports.wbg.__wbg_removeItem_02359267b311cb85 = function() { return handleError(function (arg0, arg1, arg2) {
544
- getObject(arg0).removeItem(getStringFromWasm0(arg1, arg2));
545
- }, arguments) };
546
- imports.wbg.__wbg_setItem_d002ee486462bfff = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
547
- getObject(arg0).setItem(getStringFromWasm0(arg1, arg2), getStringFromWasm0(arg3, arg4));
548
- }, arguments) };
549
- imports.wbg.__wbg_target_f171e89c61e2bccf = function(arg0) {
550
- const ret = getObject(arg0).target;
551
- return isLikeNone(ret) ? 0 : addHeapObject(ret);
552
- };
553
- imports.wbg.__wbg_instanceof_IdbTransaction_7aab3969edd3c8a0 = function(arg0) {
422
+ imports.wbg.__wbg_instanceof_IdbTransaction_746ea660d347650d = function(arg0) {
554
423
  let result;
555
424
  try {
556
- result = getObject(arg0) instanceof IDBTransaction;
557
- } catch {
425
+ result = arg0 instanceof IDBTransaction;
426
+ } catch (_) {
558
427
  result = false;
559
428
  }
560
429
  const ret = result;
561
430
  return ret;
562
431
  };
563
- imports.wbg.__wbg_error_bf0bdb988fb7637a = function(arg0) {
564
- const ret = getObject(arg0).error;
565
- return isLikeNone(ret) ? 0 : addHeapObject(ret);
566
- };
567
- imports.wbg.__wbg_setoncomplete_97a83c9bfeb56eaf = function(arg0, arg1) {
568
- getObject(arg0).oncomplete = getObject(arg1);
569
- };
570
- imports.wbg.__wbg_setonerror_b7a755ab0647ce3e = function(arg0, arg1) {
571
- getObject(arg0).onerror = getObject(arg1);
572
- };
573
- imports.wbg.__wbg_commit_9b973ff3183215a6 = function() { return handleError(function (arg0) {
574
- getObject(arg0).commit();
575
- }, arguments) };
576
- imports.wbg.__wbg_objectStore_5a858a654147f96f = function() { return handleError(function (arg0, arg1, arg2) {
577
- const ret = getObject(arg0).objectStore(getStringFromWasm0(arg1, arg2));
578
- return addHeapObject(ret);
579
- }, arguments) };
580
- imports.wbg.__wbg_instanceof_IdbDatabase_5d2aec935a1835ee = function(arg0) {
432
+ imports.wbg.__wbg_instanceof_Window_def73ea0955fc569 = function(arg0) {
581
433
  let result;
582
434
  try {
583
- result = getObject(arg0) instanceof IDBDatabase;
584
- } catch {
435
+ result = arg0 instanceof Window;
436
+ } catch (_) {
585
437
  result = false;
586
438
  }
587
439
  const ret = result;
588
440
  return ret;
589
441
  };
590
- imports.wbg.__wbg_version_a93d938cc062ab3a = function(arg0) {
591
- const ret = getObject(arg0).version;
442
+ imports.wbg.__wbg_isArray_a1eab7e0d067391b = function(arg0) {
443
+ const ret = Array.isArray(arg0);
592
444
  return ret;
593
445
  };
594
- imports.wbg.__wbg_objectStoreNames_774e47f8818de433 = function(arg0) {
595
- const ret = getObject(arg0).objectStoreNames;
596
- return addHeapObject(ret);
597
- };
598
- imports.wbg.__wbg_close_29232080ee4839b2 = function(arg0) {
599
- getObject(arg0).close();
600
- };
601
- imports.wbg.__wbg_createObjectStore_4394a46abe4d85f5 = function() { return handleError(function (arg0, arg1, arg2, arg3) {
602
- const ret = getObject(arg0).createObjectStore(getStringFromWasm0(arg1, arg2), getObject(arg3));
603
- return addHeapObject(ret);
604
- }, arguments) };
605
- imports.wbg.__wbg_deleteObjectStore_6598d1cfff53e9b0 = function() { return handleError(function (arg0, arg1, arg2) {
606
- getObject(arg0).deleteObjectStore(getStringFromWasm0(arg1, arg2));
607
- }, arguments) };
608
- imports.wbg.__wbg_transaction_64ded2617f47f79a = function() { return handleError(function (arg0, arg1, arg2) {
609
- const ret = getObject(arg0).transaction(getObject(arg1), takeObject(arg2));
610
- return addHeapObject(ret);
446
+ imports.wbg.__wbg_key_29fefecef430db96 = function() { return handleError(function (arg0) {
447
+ const ret = arg0.key;
448
+ return ret;
611
449
  }, arguments) };
612
- imports.wbg.__wbg_get_44be0491f933a435 = function(arg0, arg1) {
613
- const ret = getObject(arg0)[arg1 >>> 0];
614
- return addHeapObject(ret);
615
- };
616
- imports.wbg.__wbg_length_fff51ee6522a1a18 = function(arg0) {
617
- const ret = getObject(arg0).length;
450
+ imports.wbg.__wbg_length_52b6c4580c5ec934 = function(arg0) {
451
+ const ret = arg0.length;
618
452
  return ret;
619
453
  };
620
- imports.wbg.__wbg_new_898a68150f225f2e = function() {
621
- const ret = new Array();
622
- return addHeapObject(ret);
623
- };
624
- imports.wbg.__wbg_newnoargs_581967eacc0e2604 = function(arg0, arg1) {
625
- const ret = new Function(getStringFromWasm0(arg0, arg1));
626
- return addHeapObject(ret);
627
- };
628
- imports.wbg.__wbg_get_97b561fb56f034b5 = function() { return handleError(function (arg0, arg1) {
629
- const ret = Reflect.get(getObject(arg0), getObject(arg1));
630
- return addHeapObject(ret);
631
- }, arguments) };
632
- imports.wbg.__wbg_call_cb65541d95d71282 = function() { return handleError(function (arg0, arg1) {
633
- const ret = getObject(arg0).call(getObject(arg1));
634
- return addHeapObject(ret);
635
- }, arguments) };
636
- imports.wbg.__wbg_new_b51585de1b234aff = function() {
637
- const ret = new Object();
638
- return addHeapObject(ret);
454
+ imports.wbg.__wbg_length_e2d2a49132c1b256 = function(arg0) {
455
+ const ret = arg0.length;
456
+ return ret;
639
457
  };
640
- imports.wbg.__wbg_self_1ff1d729e9aae938 = function() { return handleError(function () {
641
- const ret = self.self;
642
- return addHeapObject(ret);
643
- }, arguments) };
644
- imports.wbg.__wbg_window_5f4faef6c12b79ec = function() { return handleError(function () {
645
- const ret = window.window;
646
- return addHeapObject(ret);
458
+ imports.wbg.__wbg_localStorage_1406c99c39728187 = function() { return handleError(function (arg0) {
459
+ const ret = arg0.localStorage;
460
+ return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
647
461
  }, arguments) };
648
- imports.wbg.__wbg_globalThis_1d39714405582d3c = function() { return handleError(function () {
649
- const ret = globalThis.globalThis;
650
- return addHeapObject(ret);
651
- }, arguments) };
652
- imports.wbg.__wbg_global_651f05c6a0944d1c = function() { return handleError(function () {
653
- const ret = global.global;
654
- return addHeapObject(ret);
655
- }, arguments) };
656
- imports.wbg.__wbg_push_ca1c26067ef907ac = function(arg0, arg1) {
657
- const ret = getObject(arg0).push(getObject(arg1));
462
+ imports.wbg.__wbg_message_97a2af9b89d693a3 = function(arg0) {
463
+ const ret = arg0.message;
658
464
  return ret;
659
465
  };
660
- imports.wbg.__wbg_instanceof_Error_ab19e20608ea43c7 = function(arg0) {
661
- let result;
662
- try {
663
- result = getObject(arg0) instanceof Error;
664
- } catch {
665
- result = false;
666
- }
667
- const ret = result;
466
+ imports.wbg.__wbg_msCrypto_0a36e2ec3a343d26 = function(arg0) {
467
+ const ret = arg0.msCrypto;
668
468
  return ret;
669
469
  };
670
- imports.wbg.__wbg_message_48bacc5ea57d74ee = function(arg0) {
671
- const ret = getObject(arg0).message;
672
- return addHeapObject(ret);
673
- };
674
- imports.wbg.__wbg_name_8f734cbbd6194153 = function(arg0) {
675
- const ret = getObject(arg0).name;
676
- return addHeapObject(ret);
677
- };
678
- imports.wbg.__wbg_toString_1c056108b87ba68b = function(arg0) {
679
- const ret = getObject(arg0).toString();
680
- return addHeapObject(ret);
681
- };
682
- imports.wbg.__wbg_call_01734de55d61e11d = function() { return handleError(function (arg0, arg1, arg2) {
683
- const ret = getObject(arg0).call(getObject(arg1), getObject(arg2));
684
- return addHeapObject(ret);
685
- }, arguments) };
686
- imports.wbg.__wbg_getTime_5e2054f832d82ec9 = function(arg0) {
687
- const ret = getObject(arg0).getTime();
470
+ imports.wbg.__wbg_name_0b327d569f00ebee = function(arg0) {
471
+ const ret = arg0.name;
688
472
  return ret;
689
473
  };
690
- imports.wbg.__wbg_new0_c0be7df4b6bd481f = function() {
474
+ imports.wbg.__wbg_new0_f788a2397c7ca929 = function() {
691
475
  const ret = new Date();
692
- return addHeapObject(ret);
693
- };
694
- imports.wbg.__wbg_toString_a8e343996af880e9 = function(arg0) {
695
- const ret = getObject(arg0).toString();
696
- return addHeapObject(ret);
476
+ return ret;
697
477
  };
698
- imports.wbg.__wbg_new_43f1b47c28813cbd = function(arg0, arg1) {
478
+ imports.wbg.__wbg_new_23a2665fac83c611 = function(arg0, arg1) {
699
479
  try {
700
480
  var state0 = {a: arg0, b: arg1};
701
481
  var cb0 = (arg0, arg1) => {
702
482
  const a = state0.a;
703
483
  state0.a = 0;
704
484
  try {
705
- return __wbg_adapter_196(a, state0.b, arg0, arg1);
485
+ return __wbg_adapter_201(a, state0.b, arg0, arg1);
706
486
  } finally {
707
487
  state0.a = a;
708
488
  }
709
489
  };
710
490
  const ret = new Promise(cb0);
711
- return addHeapObject(ret);
491
+ return ret;
712
492
  } finally {
713
493
  state0.a = state0.b = 0;
714
494
  }
715
495
  };
716
- imports.wbg.__wbg_resolve_53698b95aaf7fcf8 = function(arg0) {
717
- const ret = Promise.resolve(getObject(arg0));
718
- return addHeapObject(ret);
496
+ imports.wbg.__wbg_new_405e22f390576ce2 = function() {
497
+ const ret = new Object();
498
+ return ret;
719
499
  };
720
- imports.wbg.__wbg_then_f7e06ee3c11698eb = function(arg0, arg1) {
721
- const ret = getObject(arg0).then(getObject(arg1));
722
- return addHeapObject(ret);
500
+ imports.wbg.__wbg_new_78feb108b6472713 = function() {
501
+ const ret = new Array();
502
+ return ret;
723
503
  };
724
- imports.wbg.__wbg_buffer_085ec1f694018c4f = function(arg0) {
725
- const ret = getObject(arg0).buffer;
726
- return addHeapObject(ret);
504
+ imports.wbg.__wbg_new_8a6f238a6ece86ea = function() {
505
+ const ret = new Error();
506
+ return ret;
727
507
  };
728
- imports.wbg.__wbg_newwithbyteoffsetandlength_6da8e527659b86aa = function(arg0, arg1, arg2) {
729
- const ret = new Uint8Array(getObject(arg0), arg1 >>> 0, arg2 >>> 0);
730
- return addHeapObject(ret);
508
+ imports.wbg.__wbg_new_a12002a7f91c75be = function(arg0) {
509
+ const ret = new Uint8Array(arg0);
510
+ return ret;
731
511
  };
732
- imports.wbg.__wbg_new_8125e318e6245eed = function(arg0) {
733
- const ret = new Uint8Array(getObject(arg0));
734
- return addHeapObject(ret);
512
+ imports.wbg.__wbg_newnoargs_105ed471475aaf50 = function(arg0, arg1) {
513
+ const ret = new Function(getStringFromWasm0(arg0, arg1));
514
+ return ret;
735
515
  };
736
- imports.wbg.__wbg_set_5cf90238115182c3 = function(arg0, arg1, arg2) {
737
- getObject(arg0).set(getObject(arg1), arg2 >>> 0);
516
+ imports.wbg.__wbg_newwithbyteoffsetandlength_d97e637ebe145a9a = function(arg0, arg1, arg2) {
517
+ const ret = new Uint8Array(arg0, arg1 >>> 0, arg2 >>> 0);
518
+ return ret;
738
519
  };
739
- imports.wbg.__wbg_newwithlength_e5d69174d6984cd7 = function(arg0) {
520
+ imports.wbg.__wbg_newwithlength_a381634e90c276d4 = function(arg0) {
740
521
  const ret = new Uint8Array(arg0 >>> 0);
741
- return addHeapObject(ret);
522
+ return ret;
523
+ };
524
+ imports.wbg.__wbg_node_02999533c4ea02e3 = function(arg0) {
525
+ const ret = arg0.node;
526
+ return ret;
742
527
  };
743
- imports.wbg.__wbg_subarray_13db269f57aa838d = function(arg0, arg1, arg2) {
744
- const ret = getObject(arg0).subarray(arg1 >>> 0, arg2 >>> 0);
745
- return addHeapObject(ret);
528
+ imports.wbg.__wbg_objectStoreNames_9bb1ab04a7012aaf = function(arg0) {
529
+ const ret = arg0.objectStoreNames;
530
+ return ret;
746
531
  };
747
- imports.wbg.__wbg_parse_670c19d4e984792e = function() { return handleError(function (arg0, arg1) {
532
+ imports.wbg.__wbg_objectStore_21878d46d25b64b6 = function() { return handleError(function (arg0, arg1, arg2) {
533
+ const ret = arg0.objectStore(getStringFromWasm0(arg1, arg2));
534
+ return ret;
535
+ }, arguments) };
536
+ imports.wbg.__wbg_openCursor_238e247d18bde2cd = function() { return handleError(function (arg0) {
537
+ const ret = arg0.openCursor();
538
+ return ret;
539
+ }, arguments) };
540
+ imports.wbg.__wbg_openCursor_6fd4dab51810d238 = function() { return handleError(function (arg0, arg1, arg2) {
541
+ const ret = arg0.openCursor(arg1, __wbindgen_enum_IdbCursorDirection[arg2]);
542
+ return ret;
543
+ }, arguments) };
544
+ imports.wbg.__wbg_openCursor_f4b061aa6d804b93 = function() { return handleError(function (arg0, arg1) {
545
+ const ret = arg0.openCursor(arg1);
546
+ return ret;
547
+ }, arguments) };
548
+ imports.wbg.__wbg_open_88b1390d99a7c691 = function() { return handleError(function (arg0, arg1, arg2) {
549
+ const ret = arg0.open(getStringFromWasm0(arg1, arg2));
550
+ return ret;
551
+ }, arguments) };
552
+ imports.wbg.__wbg_open_e0c0b2993eb596e1 = function() { return handleError(function (arg0, arg1, arg2, arg3) {
553
+ const ret = arg0.open(getStringFromWasm0(arg1, arg2), arg3 >>> 0);
554
+ return ret;
555
+ }, arguments) };
556
+ imports.wbg.__wbg_parse_def2e24ef1252aff = function() { return handleError(function (arg0, arg1) {
748
557
  const ret = JSON.parse(getStringFromWasm0(arg0, arg1));
749
- return addHeapObject(ret);
558
+ return ret;
750
559
  }, arguments) };
751
- imports.wbg.__wbg_stringify_e25465938f3f611f = function() { return handleError(function (arg0) {
752
- const ret = JSON.stringify(getObject(arg0));
753
- return addHeapObject(ret);
560
+ imports.wbg.__wbg_process_5c1d670bc53614b8 = function(arg0) {
561
+ const ret = arg0.process;
562
+ return ret;
563
+ };
564
+ imports.wbg.__wbg_push_737cfc8c1432c2c6 = function(arg0, arg1) {
565
+ const ret = arg0.push(arg1);
566
+ return ret;
567
+ };
568
+ imports.wbg.__wbg_put_066faa31a6a88f5b = function() { return handleError(function (arg0, arg1, arg2) {
569
+ const ret = arg0.put(arg1, arg2);
570
+ return ret;
754
571
  }, arguments) };
755
- imports.wbg.__wbg_set_092e06b0f9d71865 = function() { return handleError(function (arg0, arg1, arg2) {
756
- const ret = Reflect.set(getObject(arg0), getObject(arg1), getObject(arg2));
572
+ imports.wbg.__wbg_put_9ef5363941008835 = function() { return handleError(function (arg0, arg1) {
573
+ const ret = arg0.put(arg1);
757
574
  return ret;
758
575
  }, arguments) };
759
- imports.wbg.__wbindgen_throw = function(arg0, arg1) {
760
- throw new Error(getStringFromWasm0(arg0, arg1));
576
+ imports.wbg.__wbg_queueMicrotask_97d92b4fcc8a61c5 = function(arg0) {
577
+ queueMicrotask(arg0);
761
578
  };
762
- imports.wbg.__wbindgen_memory = function() {
763
- const ret = wasm.memory;
764
- return addHeapObject(ret);
579
+ imports.wbg.__wbg_queueMicrotask_d3219def82552485 = function(arg0) {
580
+ const ret = arg0.queueMicrotask;
581
+ return ret;
765
582
  };
766
- imports.wbg.__wbindgen_closure_wrapper705 = function(arg0, arg1, arg2) {
767
- const ret = makeMutClosure(arg0, arg1, 173, __wbg_adapter_26);
768
- return addHeapObject(ret);
583
+ imports.wbg.__wbg_randomFillSync_ab2cfe79ebbf2740 = function() { return handleError(function (arg0, arg1) {
584
+ arg0.randomFillSync(arg1);
585
+ }, arguments) };
586
+ imports.wbg.__wbg_removeItem_9d2669ee3bba6f7d = function() { return handleError(function (arg0, arg1, arg2) {
587
+ arg0.removeItem(getStringFromWasm0(arg1, arg2));
588
+ }, arguments) };
589
+ imports.wbg.__wbg_request_695d684a1f4bb96e = function(arg0) {
590
+ const ret = arg0.request;
591
+ return ret;
769
592
  };
770
- imports.wbg.__wbindgen_closure_wrapper1957 = function(arg0, arg1, arg2) {
771
- const ret = makeMutClosure(arg0, arg1, 482, __wbg_adapter_29);
772
- return addHeapObject(ret);
593
+ imports.wbg.__wbg_require_79b1e9274cde3c87 = function() { return handleError(function () {
594
+ const ret = module.require;
595
+ return ret;
596
+ }, arguments) };
597
+ imports.wbg.__wbg_resolve_4851785c9c5f573d = function(arg0) {
598
+ const ret = Promise.resolve(arg0);
599
+ return ret;
773
600
  };
774
- imports.wbg.__wbindgen_closure_wrapper1959 = function(arg0, arg1, arg2) {
775
- const ret = makeMutClosure(arg0, arg1, 482, __wbg_adapter_29);
776
- return addHeapObject(ret);
601
+ imports.wbg.__wbg_result_f29afabdf2c05826 = function() { return handleError(function (arg0) {
602
+ const ret = arg0.result;
603
+ return ret;
604
+ }, arguments) };
605
+ imports.wbg.__wbg_sessionStorage_06138fc301bf45ca = function() { return handleError(function (arg0) {
606
+ const ret = arg0.sessionStorage;
607
+ return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
608
+ }, arguments) };
609
+ imports.wbg.__wbg_setItem_212ecc915942ab0a = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
610
+ arg0.setItem(getStringFromWasm0(arg1, arg2), getStringFromWasm0(arg3, arg4));
611
+ }, arguments) };
612
+ imports.wbg.__wbg_set_65595bdd868b3009 = function(arg0, arg1, arg2) {
613
+ arg0.set(arg1, arg2 >>> 0);
614
+ };
615
+ imports.wbg.__wbg_setautoincrement_8b4327709e9ee7d9 = function(arg0, arg1) {
616
+ arg0.autoIncrement = arg1 !== 0;
617
+ };
618
+ imports.wbg.__wbg_setonabort_3bf4db6614fa98e9 = function(arg0, arg1) {
619
+ arg0.onabort = arg1;
620
+ };
621
+ imports.wbg.__wbg_setoncomplete_4d19df0dadb7c4d4 = function(arg0, arg1) {
622
+ arg0.oncomplete = arg1;
623
+ };
624
+ imports.wbg.__wbg_setonerror_b0d9d723b8fddbbb = function(arg0, arg1) {
625
+ arg0.onerror = arg1;
777
626
  };
778
- imports.wbg.__wbindgen_closure_wrapper1988 = function(arg0, arg1, arg2) {
779
- const ret = makeMutClosure(arg0, arg1, 507, __wbg_adapter_34);
780
- return addHeapObject(ret);
627
+ imports.wbg.__wbg_setonerror_d7e3056cc6e56085 = function(arg0, arg1) {
628
+ arg0.onerror = arg1;
629
+ };
630
+ imports.wbg.__wbg_setonsuccess_afa464ee777a396d = function(arg0, arg1) {
631
+ arg0.onsuccess = arg1;
632
+ };
633
+ imports.wbg.__wbg_setonupgradeneeded_fcf7ce4f2eb0cb5f = function(arg0, arg1) {
634
+ arg0.onupgradeneeded = arg1;
635
+ };
636
+ imports.wbg.__wbg_stack_0ed75d68575b0f3c = function(arg0, arg1) {
637
+ const ret = arg1.stack;
638
+ const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
639
+ const len1 = WASM_VECTOR_LEN;
640
+ getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
641
+ getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
781
642
  };
782
- imports.wbg.__wbindgen_closure_wrapper2185 = function(arg0, arg1, arg2) {
783
- const ret = makeMutClosure(arg0, arg1, 562, __wbg_adapter_37);
784
- return addHeapObject(ret);
643
+ imports.wbg.__wbg_static_accessor_GLOBAL_88a902d13a557d07 = function() {
644
+ const ret = typeof global === 'undefined' ? null : global;
645
+ return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
646
+ };
647
+ imports.wbg.__wbg_static_accessor_GLOBAL_THIS_56578be7e9f832b0 = function() {
648
+ const ret = typeof globalThis === 'undefined' ? null : globalThis;
649
+ return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
650
+ };
651
+ imports.wbg.__wbg_static_accessor_SELF_37c5d418e4bf5819 = function() {
652
+ const ret = typeof self === 'undefined' ? null : self;
653
+ return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
654
+ };
655
+ imports.wbg.__wbg_static_accessor_WINDOW_5de37043a91a9c40 = function() {
656
+ const ret = typeof window === 'undefined' ? null : window;
657
+ return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
658
+ };
659
+ imports.wbg.__wbg_stringify_f7ed6987935b4a24 = function() { return handleError(function (arg0) {
660
+ const ret = JSON.stringify(arg0);
661
+ return ret;
662
+ }, arguments) };
663
+ imports.wbg.__wbg_subarray_aa9065fa9dc5df96 = function(arg0, arg1, arg2) {
664
+ const ret = arg0.subarray(arg1 >>> 0, arg2 >>> 0);
665
+ return ret;
666
+ };
667
+ imports.wbg.__wbg_target_0a62d9d79a2a1ede = function(arg0) {
668
+ const ret = arg0.target;
669
+ return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
670
+ };
671
+ imports.wbg.__wbg_then_44b73946d2fb3e7d = function(arg0, arg1) {
672
+ const ret = arg0.then(arg1);
673
+ return ret;
674
+ };
675
+ imports.wbg.__wbg_toString_5285597960676b7b = function(arg0) {
676
+ const ret = arg0.toString();
677
+ return ret;
678
+ };
679
+ imports.wbg.__wbg_toString_c813bbd34d063839 = function(arg0) {
680
+ const ret = arg0.toString();
681
+ return ret;
682
+ };
683
+ imports.wbg.__wbg_transaction_d6d07c3c9963c49e = function() { return handleError(function (arg0, arg1, arg2) {
684
+ const ret = arg0.transaction(arg1, __wbindgen_enum_IdbTransactionMode[arg2]);
685
+ return ret;
686
+ }, arguments) };
687
+ imports.wbg.__wbg_value_68c4e9a54bb7fd5e = function() { return handleError(function (arg0) {
688
+ const ret = arg0.value;
689
+ return ret;
690
+ }, arguments) };
691
+ imports.wbg.__wbg_version_a70a33e5bbc6d6db = function(arg0) {
692
+ const ret = arg0.version;
693
+ return ret;
694
+ };
695
+ imports.wbg.__wbg_versions_c71aa1626a93e0a1 = function(arg0) {
696
+ const ret = arg0.versions;
697
+ return ret;
698
+ };
699
+ imports.wbg.__wbindgen_cb_drop = function(arg0) {
700
+ const obj = arg0.original;
701
+ if (obj.cnt-- == 1) {
702
+ obj.a = 0;
703
+ return true;
704
+ }
705
+ const ret = false;
706
+ return ret;
707
+ };
708
+ imports.wbg.__wbindgen_closure_wrapper2427 = function(arg0, arg1, arg2) {
709
+ const ret = makeMutClosure(arg0, arg1, 569, __wbg_adapter_28);
710
+ return ret;
711
+ };
712
+ imports.wbg.__wbindgen_closure_wrapper2612 = function(arg0, arg1, arg2) {
713
+ const ret = makeMutClosure(arg0, arg1, 610, __wbg_adapter_31);
714
+ return ret;
715
+ };
716
+ imports.wbg.__wbindgen_closure_wrapper2815 = function(arg0, arg1, arg2) {
717
+ const ret = makeMutClosure(arg0, arg1, 659, __wbg_adapter_34);
718
+ return ret;
719
+ };
720
+ imports.wbg.__wbindgen_init_externref_table = function() {
721
+ const table = wasm.__wbindgen_export_2;
722
+ const offset = table.grow(4);
723
+ table.set(0, undefined);
724
+ table.set(offset + 0, undefined);
725
+ table.set(offset + 1, null);
726
+ table.set(offset + 2, true);
727
+ table.set(offset + 3, false);
728
+ ;
729
+ };
730
+ imports.wbg.__wbindgen_is_function = function(arg0) {
731
+ const ret = typeof(arg0) === 'function';
732
+ return ret;
733
+ };
734
+ imports.wbg.__wbindgen_is_null = function(arg0) {
735
+ const ret = arg0 === null;
736
+ return ret;
737
+ };
738
+ imports.wbg.__wbindgen_is_object = function(arg0) {
739
+ const val = arg0;
740
+ const ret = typeof(val) === 'object' && val !== null;
741
+ return ret;
742
+ };
743
+ imports.wbg.__wbindgen_is_string = function(arg0) {
744
+ const ret = typeof(arg0) === 'string';
745
+ return ret;
746
+ };
747
+ imports.wbg.__wbindgen_is_undefined = function(arg0) {
748
+ const ret = arg0 === undefined;
749
+ return ret;
750
+ };
751
+ imports.wbg.__wbindgen_memory = function() {
752
+ const ret = wasm.memory;
753
+ return ret;
754
+ };
755
+ imports.wbg.__wbindgen_string_get = function(arg0, arg1) {
756
+ const obj = arg1;
757
+ const ret = typeof(obj) === 'string' ? obj : undefined;
758
+ var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
759
+ var len1 = WASM_VECTOR_LEN;
760
+ getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
761
+ getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
762
+ };
763
+ imports.wbg.__wbindgen_string_new = function(arg0, arg1) {
764
+ const ret = getStringFromWasm0(arg0, arg1);
765
+ return ret;
766
+ };
767
+ imports.wbg.__wbindgen_throw = function(arg0, arg1) {
768
+ throw new Error(getStringFromWasm0(arg0, arg1));
785
769
  };
786
770
 
787
771
  return imports;
788
772
  }
789
773
 
790
- function __wbg_init_memory(imports, maybe_memory) {
774
+ function __wbg_init_memory(imports, memory) {
791
775
 
792
776
  }
793
777
 
794
778
  function __wbg_finalize_init(instance, module) {
795
779
  wasm = instance.exports;
796
780
  __wbg_init.__wbindgen_wasm_module = module;
797
- cachedInt32Memory0 = null;
798
- cachedUint8Memory0 = null;
781
+ cachedDataViewMemory0 = null;
782
+ cachedUint8ArrayMemory0 = null;
799
783
 
800
784
 
785
+ wasm.__wbindgen_start();
801
786
  return wasm;
802
787
  }
803
788
 
804
789
  function initSync(module) {
805
790
  if (wasm !== undefined) return wasm;
806
791
 
792
+
793
+ if (typeof module !== 'undefined') {
794
+ if (Object.getPrototypeOf(module) === Object.prototype) {
795
+ ({module} = module)
796
+ } else {
797
+ console.warn('using deprecated parameters for `initSync()`; pass a single object instead')
798
+ }
799
+ }
800
+
807
801
  const imports = __wbg_get_imports();
808
802
 
809
803
  __wbg_init_memory(imports);
@@ -817,24 +811,33 @@ function initSync(module) {
817
811
  return __wbg_finalize_init(instance, module);
818
812
  }
819
813
 
820
- async function __wbg_init(input) {
814
+ async function __wbg_init(module_or_path) {
821
815
  if (wasm !== undefined) return wasm;
822
816
 
823
- if (typeof input === 'undefined') {
824
- input = new URL('gluesql_js_bg.wasm', import.meta.url);
817
+
818
+ if (typeof module_or_path !== 'undefined') {
819
+ if (Object.getPrototypeOf(module_or_path) === Object.prototype) {
820
+ ({module_or_path} = module_or_path)
821
+ } else {
822
+ console.warn('using deprecated parameters for the initialization function; pass a single object instead')
823
+ }
824
+ }
825
+
826
+ if (typeof module_or_path === 'undefined') {
827
+ module_or_path = new URL('gluesql_js_bg.wasm', import.meta.url);
825
828
  }
826
829
  const imports = __wbg_get_imports();
827
830
 
828
- if (typeof input === 'string' || (typeof Request === 'function' && input instanceof Request) || (typeof URL === 'function' && input instanceof URL)) {
829
- input = fetch(input);
831
+ if (typeof module_or_path === 'string' || (typeof Request === 'function' && module_or_path instanceof Request) || (typeof URL === 'function' && module_or_path instanceof URL)) {
832
+ module_or_path = fetch(module_or_path);
830
833
  }
831
834
 
832
835
  __wbg_init_memory(imports);
833
836
 
834
- const { instance, module } = await __wbg_load(await input, imports);
837
+ const { instance, module } = await __wbg_load(await module_or_path, imports);
835
838
 
836
839
  return __wbg_finalize_init(instance, module);
837
840
  }
838
841
 
839
- export { initSync }
842
+ export { initSync };
840
843
  export default __wbg_init;