@bytecodealliance/jco 1.17.4 → 1.17.6

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/obj/wasm-tools.js CHANGED
@@ -180,6 +180,8 @@ function promiseWithResolvers() {
180
180
  }
181
181
  }
182
182
 
183
+ const symbolDispose = Symbol.dispose || Symbol.for('dispose');
184
+
183
185
  const _debugLog = (...args) => {
184
186
  if (!globalThis?.process?.env?.JCO_DEBUG) { return; }
185
187
  console.debug(...args);
@@ -2051,10 +2053,52 @@ function _lowerImportBackwardsCompat(args) {
2051
2053
  importFn,
2052
2054
  } = args;
2053
2055
 
2054
- const { taskID } = _getGlobalCurrentTaskMeta(componentIdx);
2056
+ let meta = _getGlobalCurrentTaskMeta(componentIdx);
2057
+ let createdTask;
2058
+
2059
+ // Some components depend on initialization logic (i.e. `_initialize` or some such
2060
+ // core wasm export) that is embedded in the component, but is not executed or wizer'd
2061
+ // away before the transpiled component is attempted to be used.
2062
+ //
2063
+ // These components execut their initialization logic *when they are imported* in the
2064
+ // transpiled context -- so we may get a call to an export that is lowered without going
2065
+ // through `CallWasm` or `CallInterface`.
2066
+ //
2067
+ if (!meta) {
2068
+ if (funcTypeIsAsync || (isAsync && !isManualAsync)) {
2069
+ throw new Error('p3 async wasm exports cannot use backwards compat auto-task init');
2070
+ }
2071
+
2072
+ const [newTask, newTaskID] = createNewCurrentTask({
2073
+ componentIdx,
2074
+ isAsync,
2075
+ isManualAsync,
2076
+ callingWasmExport: false,
2077
+ });
2078
+ createdTask = newTask;
2079
+
2080
+ // Since we're managing the task creation ourselves we must clear ourselves
2081
+ createdTask.registerOnResolveHandler(() => {
2082
+ _clearCurrentTask({
2083
+ taskID: task.id(),
2084
+ componentIdx: task.componentIdx(),
2085
+ });
2086
+ });
2087
+
2088
+ _setGlobalCurrentTaskMeta({
2089
+ componentIdx,
2090
+ taskID: newTaskID,
2091
+ });
2092
+
2093
+ meta = _getGlobalCurrentTaskMeta(componentIdx);
2094
+ }
2095
+
2096
+ const { taskID } = meta;
2055
2097
 
2056
2098
  const taskMeta = getCurrentTask(componentIdx, taskID);
2057
- if (!taskMeta) { throw new Error('invalid/missing async task meta'); }
2099
+ if (!taskMeta) {
2100
+ throw new Error('invalid/missing async task meta');
2101
+ }
2058
2102
 
2059
2103
  const task = taskMeta.task;
2060
2104
  if (!task) { throw new Error('invalid/missing async task'); }
@@ -2098,13 +2142,20 @@ function _lowerImportBackwardsCompat(args) {
2098
2142
  // TODO(breaking): remove once we get rid of manual async import specification,
2099
2143
  // as func types cannot be detected in that case only (and we don't need that w/ p3)
2100
2144
  if (!isManualAsync && !isAsync && !funcTypeIsAsync) {
2145
+ if (createdTask) { createdTask.enterSync(); }
2146
+
2101
2147
  const res = importFn(...params);
2148
+
2102
2149
  // TODO(breaking): remove once we get rid of manual async import specification,
2103
2150
  // as func types cannot be detected in that case only (and we don't need that w/ p3)
2104
2151
  if (!funcTypeIsAsync && !subtask.isReturned()) {
2105
2152
  throw new Error('post-execution subtasks must either be async or returned');
2106
2153
  }
2107
- return subtask.getResult();
2154
+
2155
+ const syncRes = subtask.getResult();
2156
+ if (createdTask) { createdTask.resolve([syncRes]); }
2157
+
2158
+ return syncRes;
2108
2159
  }
2109
2160
 
2110
2161
  // Sync-lowered async functions requires async behavior because the callee *can* block,
@@ -2173,10 +2224,16 @@ function _lowerImportBackwardsCompat(args) {
2173
2224
  queueMicrotask(async () => {
2174
2225
  try {
2175
2226
  _debugLog('[_lowerImportBackwardsCompat()] calling lowered import', { importFn, params });
2176
- const res = await importFn(...params);
2227
+ if (createdTask) { await createdTask.enter(); }
2228
+
2229
+ const asyncRes = await importFn(...params);
2177
2230
  if (requiresManualAsyncResult) {
2178
2231
  manualAsyncResult.resolve(subtask.getResult());
2179
2232
  }
2233
+
2234
+ if (createdTask) { createdTask.resolve([asyncRes]); }
2235
+
2236
+
2180
2237
  } catch (err) {
2181
2238
  _debugLog("[_lowerImportBackwardsCompat()] import fn error:", err);
2182
2239
  if (requiresManualAsyncResult) {
@@ -2495,7 +2552,7 @@ function _liftFlatResult(casesAndLiftFns) {
2495
2552
 
2496
2553
  function _liftFlatBorrow(componentTableIdx, size, memory, vals, storagePtr, storageLen) {
2497
2554
  _debugLog('[_liftFlatBorrow()] args', { size, memory, vals, storagePtr, storageLen });
2498
- throw new Error('flat lift for borrowed resources not yet implemented!');
2555
+ throw new Error('flat lift for borrowed resources is not supported!');
2499
2556
  }
2500
2557
 
2501
2558
  function _lowerFlatU8(ctx) {
@@ -2614,14 +2671,17 @@ function _lowerFlatVariant(lowerMetas) {
2614
2671
 
2615
2672
  ctx.resultPtr = originalPtr + payloadOffset32;
2616
2673
 
2617
- const payloadBytesWritten = lowerFn({
2618
- memory,
2619
- realloc,
2620
- vals: [val],
2621
- storagePtr,
2622
- storageLen,
2623
- componentIdx,
2624
- });
2674
+ let payloadBytesWritten = 0;
2675
+ if (lowerFn) {
2676
+ lowerFn({
2677
+ memory,
2678
+ realloc,
2679
+ vals: [val],
2680
+ storagePtr,
2681
+ storageLen,
2682
+ componentIdx,
2683
+ });
2684
+ }
2625
2685
  let bytesWritten = payloadOffset + payloadBytesWritten;
2626
2686
 
2627
2687
  const rem = ctx.storagePtr % align32;
@@ -3234,8 +3294,6 @@ const symbolRscHandle = Symbol('handle');
3234
3294
 
3235
3295
  const symbolRscRep = Symbol.for('cabiRep');
3236
3296
 
3237
- const symbolDispose = Symbol.dispose || Symbol.for('dispose');
3238
-
3239
3297
  const handleTables = [];
3240
3298
 
3241
3299
  class ComponentError extends Error {
@@ -8538,1510 +8596,346 @@ let postReturn0;
8538
8596
  let postReturn0Async;
8539
8597
  let postReturn1;
8540
8598
  let postReturn1Async;
8541
- function trampoline0(handle) {
8542
- const handleEntry = rscTableRemove(handleTable5, handle);
8543
- if (handleEntry.own) {
8544
-
8545
- const rsc = captureTable5.get(handleEntry.rep);
8546
- if (rsc) {
8547
- if (rsc[symbolDispose]) rsc[symbolDispose]();
8548
- captureTable5.delete(handleEntry.rep);
8549
- } else if (DirectoryEntryStream[symbolCabiDispose]) {
8550
- DirectoryEntryStream[symbolCabiDispose](handleEntry.rep);
8599
+ let toolsParse;
8600
+
8601
+ function parse(arg0) {
8602
+ if (!_initialized) throwUninitialized();
8603
+
8604
+ var encodeRes = _utf8AllocateAndEncode(arg0, realloc1, memory0);
8605
+ var ptr0= encodeRes.ptr;
8606
+ var len0 = encodeRes.len;
8607
+
8608
+ _debugLog('[iface="local:wasm-tools/tools", function="parse"][Instruction::CallWasm] enter', {
8609
+ funcName: 'parse',
8610
+ paramCount: 2,
8611
+ async: false,
8612
+ postReturn: true,
8613
+ });
8614
+ const hostProvided = false;
8615
+
8616
+ const [task, _wasm_call_currentTaskID] = createNewCurrentTask({
8617
+ componentIdx: 0,
8618
+ isAsync: false,
8619
+ isManualAsync: false,
8620
+ entryFnName: 'toolsParse',
8621
+ getCallbackFn: () => null,
8622
+ callbackFnName: 'null',
8623
+ errHandling: 'throw-result-err',
8624
+ callingWasmExport: true,
8625
+ });
8626
+
8627
+ const started = task.enterSync();
8628
+ task.setReturnMemoryIdx(0);
8629
+ task.setReturnMemory(memory0);
8630
+ let ret = _withGlobalCurrentTaskMeta({
8631
+ taskID: task.id(),
8632
+ componentIdx: task.componentIdx(),
8633
+ fn: () => toolsParse(ptr0, len0),
8634
+ });
8635
+
8636
+ let variant3;
8637
+ switch (dataView(memory0).getUint8(ret + 0, true)) {
8638
+ case 0: {
8639
+ var ptr1 = dataView(memory0).getUint32(ret + 4, true);
8640
+ var len1 = dataView(memory0).getUint32(ret + 8, true);
8641
+ var result1 = new Uint8Array(memory0.buffer.slice(ptr1, ptr1 + len1 * 1));
8642
+ variant3= {
8643
+ tag: 'ok',
8644
+ val: result1
8645
+ };
8646
+ break;
8551
8647
  }
8552
- }
8553
- }
8554
- function trampoline1(handle) {
8555
- const handleEntry = rscTableRemove(handleTable2, handle);
8556
- if (handleEntry.own) {
8557
-
8558
- const rsc = captureTable2.get(handleEntry.rep);
8559
- if (rsc) {
8560
- if (rsc[symbolDispose]) rsc[symbolDispose]();
8561
- captureTable2.delete(handleEntry.rep);
8562
- } else if (OutputStream[symbolCabiDispose]) {
8563
- OutputStream[symbolCabiDispose](handleEntry.rep);
8648
+ case 1: {
8649
+ var ptr2 = dataView(memory0).getUint32(ret + 4, true);
8650
+ var len2 = dataView(memory0).getUint32(ret + 8, true);
8651
+ var result2 = TEXT_DECODER_UTF8.decode(new Uint8Array(memory0.buffer, ptr2, len2));
8652
+ variant3= {
8653
+ tag: 'err',
8654
+ val: result2
8655
+ };
8656
+ break;
8564
8657
  }
8565
- }
8566
- }
8567
- function trampoline2(handle) {
8568
- const handleEntry = rscTableRemove(handleTable0, handle);
8569
- if (handleEntry.own) {
8570
-
8571
- const rsc = captureTable0.get(handleEntry.rep);
8572
- if (rsc) {
8573
- if (rsc[symbolDispose]) rsc[symbolDispose]();
8574
- captureTable0.delete(handleEntry.rep);
8575
- } else if (Error$1[symbolCabiDispose]) {
8576
- Error$1[symbolCabiDispose](handleEntry.rep);
8658
+ default: {
8659
+ throw new TypeError('invalid variant discriminant for expected');
8577
8660
  }
8578
8661
  }
8662
+ _debugLog('[iface="local:wasm-tools/tools", function="parse"][Instruction::Return]', {
8663
+ funcName: 'parse',
8664
+ paramCount: 1,
8665
+ async: false,
8666
+ postReturn: true
8667
+ });
8668
+ const retCopy = variant3;
8669
+ task.resolve([retCopy.val]);
8670
+
8671
+ let cstate = getOrCreateAsyncState(0);
8672
+ cstate.mayLeave = false;
8673
+ postReturn0(ret);
8674
+ cstate.mayLeave = true;
8675
+ task.exit();
8676
+
8677
+
8678
+
8679
+ if (typeof retCopy === 'object' && retCopy.tag === 'err') {
8680
+ throw new ComponentError(retCopy.val);
8681
+ }
8682
+ return retCopy.val;
8683
+
8579
8684
  }
8580
- function trampoline3(handle) {
8581
- const handleEntry = rscTableRemove(handleTable1, handle);
8582
- if (handleEntry.own) {
8583
-
8584
- const rsc = captureTable1.get(handleEntry.rep);
8585
- if (rsc) {
8586
- if (rsc[symbolDispose]) rsc[symbolDispose]();
8587
- captureTable1.delete(handleEntry.rep);
8588
- } else if (InputStream[symbolCabiDispose]) {
8589
- InputStream[symbolCabiDispose](handleEntry.rep);
8685
+ let toolsPrint;
8686
+
8687
+ function print(arg0) {
8688
+ if (!_initialized) throwUninitialized();
8689
+ var val0 = arg0;
8690
+ var len0 = Array.isArray(val0) ? val0.length : val0.byteLength;
8691
+ var ptr0 = realloc1(0, 0, 1, len0 * 1);
8692
+
8693
+ let valData0;
8694
+ const valLenBytes0 = len0 * 1;
8695
+ if (Array.isArray(val0)) {
8696
+ // Regular array likely containing numbers, write values to memory
8697
+ let offset = 0;
8698
+ const dv0 = new DataView(memory0.buffer);
8699
+ for (const v of val0) {
8700
+ dv0.setUint8(ptr0+ offset, v, true);
8701
+ offset += 1;
8590
8702
  }
8703
+ } else {
8704
+ // TypedArray / ArrayBuffer-like, direct copy
8705
+ valData0 = new Uint8Array(val0.buffer || val0, val0.byteOffset, valLenBytes0);
8706
+ const out0 = new Uint8Array(memory0.buffer, ptr0,valLenBytes0);
8707
+ out0.set(valData0);
8591
8708
  }
8592
- }
8593
- function trampoline4(handle) {
8594
- const handleEntry = rscTableRemove(handleTable6, handle);
8595
- if (handleEntry.own) {
8596
-
8597
- const rsc = captureTable6.get(handleEntry.rep);
8598
- if (rsc) {
8599
- if (rsc[symbolDispose]) rsc[symbolDispose]();
8600
- captureTable6.delete(handleEntry.rep);
8601
- } else if (Descriptor[symbolCabiDispose]) {
8602
- Descriptor[symbolCabiDispose](handleEntry.rep);
8709
+
8710
+ _debugLog('[iface="local:wasm-tools/tools", function="print"][Instruction::CallWasm] enter', {
8711
+ funcName: 'print',
8712
+ paramCount: 2,
8713
+ async: false,
8714
+ postReturn: true,
8715
+ });
8716
+ const hostProvided = false;
8717
+
8718
+ const [task, _wasm_call_currentTaskID] = createNewCurrentTask({
8719
+ componentIdx: 0,
8720
+ isAsync: false,
8721
+ isManualAsync: false,
8722
+ entryFnName: 'toolsPrint',
8723
+ getCallbackFn: () => null,
8724
+ callbackFnName: 'null',
8725
+ errHandling: 'throw-result-err',
8726
+ callingWasmExport: true,
8727
+ });
8728
+
8729
+ const started = task.enterSync();
8730
+ task.setReturnMemoryIdx(0);
8731
+ task.setReturnMemory(memory0);
8732
+ let ret = _withGlobalCurrentTaskMeta({
8733
+ taskID: task.id(),
8734
+ componentIdx: task.componentIdx(),
8735
+ fn: () => toolsPrint(ptr0, len0),
8736
+ });
8737
+
8738
+ let variant3;
8739
+ switch (dataView(memory0).getUint8(ret + 0, true)) {
8740
+ case 0: {
8741
+ var ptr1 = dataView(memory0).getUint32(ret + 4, true);
8742
+ var len1 = dataView(memory0).getUint32(ret + 8, true);
8743
+ var result1 = TEXT_DECODER_UTF8.decode(new Uint8Array(memory0.buffer, ptr1, len1));
8744
+ variant3= {
8745
+ tag: 'ok',
8746
+ val: result1
8747
+ };
8748
+ break;
8749
+ }
8750
+ case 1: {
8751
+ var ptr2 = dataView(memory0).getUint32(ret + 4, true);
8752
+ var len2 = dataView(memory0).getUint32(ret + 8, true);
8753
+ var result2 = TEXT_DECODER_UTF8.decode(new Uint8Array(memory0.buffer, ptr2, len2));
8754
+ variant3= {
8755
+ tag: 'err',
8756
+ val: result2
8757
+ };
8758
+ break;
8759
+ }
8760
+ default: {
8761
+ throw new TypeError('invalid variant discriminant for expected');
8603
8762
  }
8604
8763
  }
8605
- }
8606
- let trampoline5 = _trampoline5.manuallyAsync ? new WebAssembly.Suspending(_lowerImportBackwardsCompat.bind(
8607
- null,
8608
- {
8609
- trampolineIdx: 5,
8610
- componentIdx: 0,
8611
- isAsync: false,
8612
- isManualAsync: _trampoline5.manuallyAsync,
8613
- paramLiftFns: [],
8614
- resultLowerFns: [_lowerFlatOwn.bind(null, 2)],
8615
- funcTypeIsAsync: false,
8616
- getCallbackFn: () => null,
8617
- getPostReturnFn: () => null,
8618
- isCancellable: false,
8619
- memoryIdx: null,
8620
- getMemoryFn: () => null,
8621
- getReallocFn: () => null,
8622
- importFn: _trampoline5,
8623
- },
8624
- )) : _lowerImportBackwardsCompat.bind(
8625
- null,
8626
- {
8627
- trampolineIdx: 5,
8628
- componentIdx: 0,
8629
- isAsync: false,
8630
- isManualAsync: _trampoline5.manuallyAsync,
8631
- paramLiftFns: [],
8632
- resultLowerFns: [_lowerFlatOwn.bind(null, 2)],
8633
- funcTypeIsAsync: false,
8634
- getCallbackFn: () => null,
8635
- getPostReturnFn: () => null,
8636
- isCancellable: false,
8637
- memoryIdx: null,
8638
- getMemoryFn: () => null,
8639
- getReallocFn: () => null,
8640
- importFn: _trampoline5,
8641
- },
8642
- );
8643
- function trampoline6(handle) {
8644
- const handleEntry = rscTableRemove(handleTable3, handle);
8645
- if (handleEntry.own) {
8646
-
8647
- const rsc = captureTable3.get(handleEntry.rep);
8648
- if (rsc) {
8649
- if (rsc[symbolDispose]) rsc[symbolDispose]();
8650
- captureTable3.delete(handleEntry.rep);
8651
- } else if (TerminalInput[symbolCabiDispose]) {
8652
- TerminalInput[symbolCabiDispose](handleEntry.rep);
8653
- }
8764
+ _debugLog('[iface="local:wasm-tools/tools", function="print"][Instruction::Return]', {
8765
+ funcName: 'print',
8766
+ paramCount: 1,
8767
+ async: false,
8768
+ postReturn: true
8769
+ });
8770
+ const retCopy = variant3;
8771
+ task.resolve([retCopy.val]);
8772
+
8773
+ let cstate = getOrCreateAsyncState(0);
8774
+ cstate.mayLeave = false;
8775
+ postReturn0(ret);
8776
+ cstate.mayLeave = true;
8777
+ task.exit();
8778
+
8779
+
8780
+
8781
+ if (typeof retCopy === 'object' && retCopy.tag === 'err') {
8782
+ throw new ComponentError(retCopy.val);
8654
8783
  }
8784
+ return retCopy.val;
8785
+
8655
8786
  }
8656
- function trampoline7(handle) {
8657
- const handleEntry = rscTableRemove(handleTable4, handle);
8658
- if (handleEntry.own) {
8659
-
8660
- const rsc = captureTable4.get(handleEntry.rep);
8661
- if (rsc) {
8662
- if (rsc[symbolDispose]) rsc[symbolDispose]();
8663
- captureTable4.delete(handleEntry.rep);
8664
- } else if (TerminalOutput[symbolCabiDispose]) {
8665
- TerminalOutput[symbolCabiDispose](handleEntry.rep);
8787
+ let toolsComponentNew;
8788
+
8789
+ function componentNew(arg0, arg1) {
8790
+ if (!_initialized) throwUninitialized();
8791
+ var val0 = arg0;
8792
+ var len0 = Array.isArray(val0) ? val0.length : val0.byteLength;
8793
+ var ptr0 = realloc1(0, 0, 1, len0 * 1);
8794
+
8795
+ let valData0;
8796
+ const valLenBytes0 = len0 * 1;
8797
+ if (Array.isArray(val0)) {
8798
+ // Regular array likely containing numbers, write values to memory
8799
+ let offset = 0;
8800
+ const dv0 = new DataView(memory0.buffer);
8801
+ for (const v of val0) {
8802
+ dv0.setUint8(ptr0+ offset, v, true);
8803
+ offset += 1;
8804
+ }
8805
+ } else {
8806
+ // TypedArray / ArrayBuffer-like, direct copy
8807
+ valData0 = new Uint8Array(val0.buffer || val0, val0.byteOffset, valLenBytes0);
8808
+ const out0 = new Uint8Array(memory0.buffer, ptr0,valLenBytes0);
8809
+ out0.set(valData0);
8810
+ }
8811
+
8812
+ var variant5 = arg1;
8813
+ let variant5_0;
8814
+ let variant5_1;
8815
+ let variant5_2;
8816
+ if (variant5 === null || variant5=== undefined) {
8817
+ variant5_0 = 0;
8818
+ variant5_1 = 0;
8819
+ variant5_2 = 0;
8820
+ } else {
8821
+ const e = variant5;
8822
+ var vec4 = e;
8823
+ var len4 = vec4.length;
8824
+ var result4 = realloc1(0, 0, 4, len4 * 16);
8825
+ for (let i = 0; i < vec4.length; i++) {
8826
+ const e = vec4[i];
8827
+ const base = result4 + i * 16;var [tuple1_0, tuple1_1] = e;
8828
+
8829
+ var encodeRes = _utf8AllocateAndEncode(tuple1_0, realloc1, memory0);
8830
+ var ptr2= encodeRes.ptr;
8831
+ var len2 = encodeRes.len;
8832
+
8833
+ dataView(memory0).setUint32(base + 4, len2, true);
8834
+ dataView(memory0).setUint32(base + 0, ptr2, true);
8835
+ var val3 = tuple1_1;
8836
+ var len3 = Array.isArray(val3) ? val3.length : val3.byteLength;
8837
+ var ptr3 = realloc1(0, 0, 1, len3 * 1);
8838
+
8839
+ let valData3;
8840
+ const valLenBytes3 = len3 * 1;
8841
+ if (Array.isArray(val3)) {
8842
+ // Regular array likely containing numbers, write values to memory
8843
+ let offset = 0;
8844
+ const dv3 = new DataView(memory0.buffer);
8845
+ for (const v of val3) {
8846
+ dv3.setUint8(ptr3+ offset, v, true);
8847
+ offset += 1;
8848
+ }
8849
+ } else {
8850
+ // TypedArray / ArrayBuffer-like, direct copy
8851
+ valData3 = new Uint8Array(val3.buffer || val3, val3.byteOffset, valLenBytes3);
8852
+ const out3 = new Uint8Array(memory0.buffer, ptr3,valLenBytes3);
8853
+ out3.set(valData3);
8854
+ }
8855
+
8856
+ dataView(memory0).setUint32(base + 12, len3, true);
8857
+ dataView(memory0).setUint32(base + 8, ptr3, true);
8858
+ }
8859
+ variant5_0 = 1;
8860
+ variant5_1 = result4;
8861
+ variant5_2 = len4;
8862
+ }
8863
+ _debugLog('[iface="local:wasm-tools/tools", function="component-new"][Instruction::CallWasm] enter', {
8864
+ funcName: 'component-new',
8865
+ paramCount: 5,
8866
+ async: false,
8867
+ postReturn: true,
8868
+ });
8869
+ const hostProvided = false;
8870
+
8871
+ const [task, _wasm_call_currentTaskID] = createNewCurrentTask({
8872
+ componentIdx: 0,
8873
+ isAsync: false,
8874
+ isManualAsync: false,
8875
+ entryFnName: 'toolsComponentNew',
8876
+ getCallbackFn: () => null,
8877
+ callbackFnName: 'null',
8878
+ errHandling: 'throw-result-err',
8879
+ callingWasmExport: true,
8880
+ });
8881
+
8882
+ const started = task.enterSync();
8883
+ task.setReturnMemoryIdx(0);
8884
+ task.setReturnMemory(memory0);
8885
+ let ret = _withGlobalCurrentTaskMeta({
8886
+ taskID: task.id(),
8887
+ componentIdx: task.componentIdx(),
8888
+ fn: () => toolsComponentNew(ptr0, len0, variant5_0, variant5_1, variant5_2),
8889
+ });
8890
+
8891
+ let variant8;
8892
+ switch (dataView(memory0).getUint8(ret + 0, true)) {
8893
+ case 0: {
8894
+ var ptr6 = dataView(memory0).getUint32(ret + 4, true);
8895
+ var len6 = dataView(memory0).getUint32(ret + 8, true);
8896
+ var result6 = new Uint8Array(memory0.buffer.slice(ptr6, ptr6 + len6 * 1));
8897
+ variant8= {
8898
+ tag: 'ok',
8899
+ val: result6
8900
+ };
8901
+ break;
8902
+ }
8903
+ case 1: {
8904
+ var ptr7 = dataView(memory0).getUint32(ret + 4, true);
8905
+ var len7 = dataView(memory0).getUint32(ret + 8, true);
8906
+ var result7 = TEXT_DECODER_UTF8.decode(new Uint8Array(memory0.buffer, ptr7, len7));
8907
+ variant8= {
8908
+ tag: 'err',
8909
+ val: result7
8910
+ };
8911
+ break;
8666
8912
  }
8913
+ default: {
8914
+ throw new TypeError('invalid variant discriminant for expected');
8915
+ }
8916
+ }
8917
+ _debugLog('[iface="local:wasm-tools/tools", function="component-new"][Instruction::Return]', {
8918
+ funcName: 'component-new',
8919
+ paramCount: 1,
8920
+ async: false,
8921
+ postReturn: true
8922
+ });
8923
+ const retCopy = variant8;
8924
+ task.resolve([retCopy.val]);
8925
+
8926
+ let cstate = getOrCreateAsyncState(0);
8927
+ cstate.mayLeave = false;
8928
+ postReturn0(ret);
8929
+ cstate.mayLeave = true;
8930
+ task.exit();
8931
+
8932
+
8933
+
8934
+ if (typeof retCopy === 'object' && retCopy.tag === 'err') {
8935
+ throw new ComponentError(retCopy.val);
8667
8936
  }
8668
- }
8669
- let trampoline8 = _trampoline8.manuallyAsync ? new WebAssembly.Suspending(_lowerImportBackwardsCompat.bind(
8670
- null,
8671
- {
8672
- trampolineIdx: 8,
8673
- componentIdx: 0,
8674
- isAsync: false,
8675
- isManualAsync: _trampoline8.manuallyAsync,
8676
- paramLiftFns: [],
8677
- resultLowerFns: [_lowerFlatOwn.bind(null, 1)],
8678
- funcTypeIsAsync: false,
8679
- getCallbackFn: () => null,
8680
- getPostReturnFn: () => null,
8681
- isCancellable: false,
8682
- memoryIdx: null,
8683
- getMemoryFn: () => null,
8684
- getReallocFn: () => null,
8685
- importFn: _trampoline8,
8686
- },
8687
- )) : _lowerImportBackwardsCompat.bind(
8688
- null,
8689
- {
8690
- trampolineIdx: 8,
8691
- componentIdx: 0,
8692
- isAsync: false,
8693
- isManualAsync: _trampoline8.manuallyAsync,
8694
- paramLiftFns: [],
8695
- resultLowerFns: [_lowerFlatOwn.bind(null, 1)],
8696
- funcTypeIsAsync: false,
8697
- getCallbackFn: () => null,
8698
- getPostReturnFn: () => null,
8699
- isCancellable: false,
8700
- memoryIdx: null,
8701
- getMemoryFn: () => null,
8702
- getReallocFn: () => null,
8703
- importFn: _trampoline8,
8704
- },
8705
- );
8706
- let trampoline9 = _trampoline9.manuallyAsync ? new WebAssembly.Suspending(_lowerImportBackwardsCompat.bind(
8707
- null,
8708
- {
8709
- trampolineIdx: 9,
8710
- componentIdx: 0,
8711
- isAsync: false,
8712
- isManualAsync: _trampoline9.manuallyAsync,
8713
- paramLiftFns: [],
8714
- resultLowerFns: [_lowerFlatOwn.bind(null, 2)],
8715
- funcTypeIsAsync: false,
8716
- getCallbackFn: () => null,
8717
- getPostReturnFn: () => null,
8718
- isCancellable: false,
8719
- memoryIdx: null,
8720
- getMemoryFn: () => null,
8721
- getReallocFn: () => null,
8722
- importFn: _trampoline9,
8723
- },
8724
- )) : _lowerImportBackwardsCompat.bind(
8725
- null,
8726
- {
8727
- trampolineIdx: 9,
8728
- componentIdx: 0,
8729
- isAsync: false,
8730
- isManualAsync: _trampoline9.manuallyAsync,
8731
- paramLiftFns: [],
8732
- resultLowerFns: [_lowerFlatOwn.bind(null, 2)],
8733
- funcTypeIsAsync: false,
8734
- getCallbackFn: () => null,
8735
- getPostReturnFn: () => null,
8736
- isCancellable: false,
8737
- memoryIdx: null,
8738
- getMemoryFn: () => null,
8739
- getReallocFn: () => null,
8740
- importFn: _trampoline9,
8741
- },
8742
- );
8743
- let trampoline10 = _trampoline10.manuallyAsync ? new WebAssembly.Suspending(_lowerImportBackwardsCompat.bind(
8744
- null,
8745
- {
8746
- trampolineIdx: 10,
8747
- componentIdx: 0,
8748
- isAsync: false,
8749
- isManualAsync: _trampoline10.manuallyAsync,
8750
- paramLiftFns: [_liftFlatResult([['ok', null, 0, 0, 0],['err', null, 0, 0, 0],])],
8751
- resultLowerFns: [],
8752
- funcTypeIsAsync: false,
8753
- getCallbackFn: () => null,
8754
- getPostReturnFn: () => null,
8755
- isCancellable: false,
8756
- memoryIdx: null,
8757
- getMemoryFn: () => null,
8758
- getReallocFn: () => null,
8759
- importFn: _trampoline10,
8760
- },
8761
- )) : _lowerImportBackwardsCompat.bind(
8762
- null,
8763
- {
8764
- trampolineIdx: 10,
8765
- componentIdx: 0,
8766
- isAsync: false,
8767
- isManualAsync: _trampoline10.manuallyAsync,
8768
- paramLiftFns: [_liftFlatResult([['ok', null, 0, 0, 0],['err', null, 0, 0, 0],])],
8769
- resultLowerFns: [],
8770
- funcTypeIsAsync: false,
8771
- getCallbackFn: () => null,
8772
- getPostReturnFn: () => null,
8773
- isCancellable: false,
8774
- memoryIdx: null,
8775
- getMemoryFn: () => null,
8776
- getReallocFn: () => null,
8777
- importFn: _trampoline10,
8778
- },
8779
- );
8780
- let trampoline11 = _trampoline11.manuallyAsync ? new WebAssembly.Suspending(_lowerImportBackwardsCompat.bind(
8781
- null,
8782
- {
8783
- trampolineIdx: 11,
8784
- componentIdx: 0,
8785
- isAsync: false,
8786
- isManualAsync: _trampoline11.manuallyAsync,
8787
- paramLiftFns: [],
8788
- resultLowerFns: [_lowerFlatList({ elemLowerFn: _lowerFlatTuple.bind(null, 0), typeIdx: 0 })],
8789
- funcTypeIsAsync: false,
8790
- getCallbackFn: () => null,
8791
- getPostReturnFn: () => null,
8792
- isCancellable: false,
8793
- memoryIdx: 0,
8794
- getMemoryFn: () => memory0,
8795
- getReallocFn: () => realloc0,
8796
- importFn: _trampoline11,
8797
- },
8798
- )) : _lowerImportBackwardsCompat.bind(
8799
- null,
8800
- {
8801
- trampolineIdx: 11,
8802
- componentIdx: 0,
8803
- isAsync: false,
8804
- isManualAsync: _trampoline11.manuallyAsync,
8805
- paramLiftFns: [],
8806
- resultLowerFns: [_lowerFlatList({ elemLowerFn: _lowerFlatTuple.bind(null, 0), typeIdx: 0 })],
8807
- funcTypeIsAsync: false,
8808
- getCallbackFn: () => null,
8809
- getPostReturnFn: () => null,
8810
- isCancellable: false,
8811
- memoryIdx: 0,
8812
- getMemoryFn: () => memory0,
8813
- getReallocFn: () => realloc0,
8814
- importFn: _trampoline11,
8815
- },
8816
- );
8817
- let trampoline12 = _trampoline12.manuallyAsync ? new WebAssembly.Suspending(_lowerImportBackwardsCompat.bind(
8818
- null,
8819
- {
8820
- trampolineIdx: 12,
8821
- componentIdx: 0,
8822
- isAsync: false,
8823
- isManualAsync: _trampoline12.manuallyAsync,
8824
- paramLiftFns: [_liftFlatBorrow.bind(null, 6)],
8825
- resultLowerFns: [_lowerFlatResult([[ 'ok', _lowerFlatFlags.bind(null, 0), 2, 1, 1 ],[ 'err', _lowerFlatEnum.bind(null, 0), 2, 1, 1 ],])],
8826
- funcTypeIsAsync: false,
8827
- getCallbackFn: () => null,
8828
- getPostReturnFn: () => null,
8829
- isCancellable: false,
8830
- memoryIdx: 0,
8831
- getMemoryFn: () => memory0,
8832
- getReallocFn: () => null,
8833
- importFn: _trampoline12,
8834
- },
8835
- )) : _lowerImportBackwardsCompat.bind(
8836
- null,
8837
- {
8838
- trampolineIdx: 12,
8839
- componentIdx: 0,
8840
- isAsync: false,
8841
- isManualAsync: _trampoline12.manuallyAsync,
8842
- paramLiftFns: [_liftFlatBorrow.bind(null, 6)],
8843
- resultLowerFns: [_lowerFlatResult([[ 'ok', _lowerFlatFlags.bind(null, 0), 2, 1, 1 ],[ 'err', _lowerFlatEnum.bind(null, 0), 2, 1, 1 ],])],
8844
- funcTypeIsAsync: false,
8845
- getCallbackFn: () => null,
8846
- getPostReturnFn: () => null,
8847
- isCancellable: false,
8848
- memoryIdx: 0,
8849
- getMemoryFn: () => memory0,
8850
- getReallocFn: () => null,
8851
- importFn: _trampoline12,
8852
- },
8853
- );
8854
- let trampoline13 = _trampoline13.manuallyAsync ? new WebAssembly.Suspending(_lowerImportBackwardsCompat.bind(
8855
- null,
8856
- {
8857
- trampolineIdx: 13,
8858
- componentIdx: 0,
8859
- isAsync: false,
8860
- isManualAsync: _trampoline13.manuallyAsync,
8861
- paramLiftFns: [_liftFlatBorrow.bind(null, 6)],
8862
- resultLowerFns: [_lowerFlatResult([[ 'ok', _lowerFlatEnum.bind(null, 1), 2, 1, 1 ],[ 'err', _lowerFlatEnum.bind(null, 0), 2, 1, 1 ],])],
8863
- funcTypeIsAsync: false,
8864
- getCallbackFn: () => null,
8865
- getPostReturnFn: () => null,
8866
- isCancellable: false,
8867
- memoryIdx: 0,
8868
- getMemoryFn: () => memory0,
8869
- getReallocFn: () => null,
8870
- importFn: _trampoline13,
8871
- },
8872
- )) : _lowerImportBackwardsCompat.bind(
8873
- null,
8874
- {
8875
- trampolineIdx: 13,
8876
- componentIdx: 0,
8877
- isAsync: false,
8878
- isManualAsync: _trampoline13.manuallyAsync,
8879
- paramLiftFns: [_liftFlatBorrow.bind(null, 6)],
8880
- resultLowerFns: [_lowerFlatResult([[ 'ok', _lowerFlatEnum.bind(null, 1), 2, 1, 1 ],[ 'err', _lowerFlatEnum.bind(null, 0), 2, 1, 1 ],])],
8881
- funcTypeIsAsync: false,
8882
- getCallbackFn: () => null,
8883
- getPostReturnFn: () => null,
8884
- isCancellable: false,
8885
- memoryIdx: 0,
8886
- getMemoryFn: () => memory0,
8887
- getReallocFn: () => null,
8888
- importFn: _trampoline13,
8889
- },
8890
- );
8891
- let trampoline14 = _trampoline14.manuallyAsync ? new WebAssembly.Suspending(_lowerImportBackwardsCompat.bind(
8892
- null,
8893
- {
8894
- trampolineIdx: 14,
8895
- componentIdx: 0,
8896
- isAsync: false,
8897
- isManualAsync: _trampoline14.manuallyAsync,
8898
- paramLiftFns: [_liftFlatBorrow.bind(null, 6)],
8899
- resultLowerFns: [_lowerFlatResult([[ 'ok', _lowerFlatRecord.bind(null, [['lower', _lowerFlatU64, 16, 8 ],['upper', _lowerFlatU64, 16, 8 ],]), 24, 8, 8 ],[ 'err', _lowerFlatEnum.bind(null, 0), 24, 8, 8 ],])],
8900
- funcTypeIsAsync: false,
8901
- getCallbackFn: () => null,
8902
- getPostReturnFn: () => null,
8903
- isCancellable: false,
8904
- memoryIdx: 0,
8905
- getMemoryFn: () => memory0,
8906
- getReallocFn: () => null,
8907
- importFn: _trampoline14,
8908
- },
8909
- )) : _lowerImportBackwardsCompat.bind(
8910
- null,
8911
- {
8912
- trampolineIdx: 14,
8913
- componentIdx: 0,
8914
- isAsync: false,
8915
- isManualAsync: _trampoline14.manuallyAsync,
8916
- paramLiftFns: [_liftFlatBorrow.bind(null, 6)],
8917
- resultLowerFns: [_lowerFlatResult([[ 'ok', _lowerFlatRecord.bind(null, [['lower', _lowerFlatU64, 16, 8 ],['upper', _lowerFlatU64, 16, 8 ],]), 24, 8, 8 ],[ 'err', _lowerFlatEnum.bind(null, 0), 24, 8, 8 ],])],
8918
- funcTypeIsAsync: false,
8919
- getCallbackFn: () => null,
8920
- getPostReturnFn: () => null,
8921
- isCancellable: false,
8922
- memoryIdx: 0,
8923
- getMemoryFn: () => memory0,
8924
- getReallocFn: () => null,
8925
- importFn: _trampoline14,
8926
- },
8927
- );
8928
- let trampoline15 = _trampoline15.manuallyAsync ? new WebAssembly.Suspending(_lowerImportBackwardsCompat.bind(
8929
- null,
8930
- {
8931
- trampolineIdx: 15,
8932
- componentIdx: 0,
8933
- isAsync: false,
8934
- isManualAsync: _trampoline15.manuallyAsync,
8935
- paramLiftFns: [_liftFlatBorrow.bind(null, 0)],
8936
- resultLowerFns: [_lowerFlatOption([[ 'some', _lowerFlatEnum.bind(null, 0), 2, 1, 1 ],[ 'none', null, 2, 1, 1 ],])],
8937
- funcTypeIsAsync: false,
8938
- getCallbackFn: () => null,
8939
- getPostReturnFn: () => null,
8940
- isCancellable: false,
8941
- memoryIdx: 0,
8942
- getMemoryFn: () => memory0,
8943
- getReallocFn: () => null,
8944
- importFn: _trampoline15,
8945
- },
8946
- )) : _lowerImportBackwardsCompat.bind(
8947
- null,
8948
- {
8949
- trampolineIdx: 15,
8950
- componentIdx: 0,
8951
- isAsync: false,
8952
- isManualAsync: _trampoline15.manuallyAsync,
8953
- paramLiftFns: [_liftFlatBorrow.bind(null, 0)],
8954
- resultLowerFns: [_lowerFlatOption([[ 'some', _lowerFlatEnum.bind(null, 0), 2, 1, 1 ],[ 'none', null, 2, 1, 1 ],])],
8955
- funcTypeIsAsync: false,
8956
- getCallbackFn: () => null,
8957
- getPostReturnFn: () => null,
8958
- isCancellable: false,
8959
- memoryIdx: 0,
8960
- getMemoryFn: () => memory0,
8961
- getReallocFn: () => null,
8962
- importFn: _trampoline15,
8963
- },
8964
- );
8965
- let trampoline16 = _trampoline16.manuallyAsync ? new WebAssembly.Suspending(_lowerImportBackwardsCompat.bind(
8966
- null,
8967
- {
8968
- trampolineIdx: 16,
8969
- componentIdx: 0,
8970
- isAsync: false,
8971
- isManualAsync: _trampoline16.manuallyAsync,
8972
- paramLiftFns: [_liftFlatBorrow.bind(null, 6),_liftFlatFlags({ names: ['symlink-follow'], size32: 1, align32: 1, intSize: 1 }),_liftFlatStringUTF8],
8973
- resultLowerFns: [_lowerFlatResult([[ 'ok', _lowerFlatRecord.bind(null, [['lower', _lowerFlatU64, 16, 8 ],['upper', _lowerFlatU64, 16, 8 ],]), 24, 8, 8 ],[ 'err', _lowerFlatEnum.bind(null, 0), 24, 8, 8 ],])],
8974
- funcTypeIsAsync: false,
8975
- getCallbackFn: () => null,
8976
- getPostReturnFn: () => null,
8977
- isCancellable: false,
8978
- memoryIdx: 0,
8979
- getMemoryFn: () => memory0,
8980
- getReallocFn: () => null,
8981
- importFn: _trampoline16,
8982
- },
8983
- )) : _lowerImportBackwardsCompat.bind(
8984
- null,
8985
- {
8986
- trampolineIdx: 16,
8987
- componentIdx: 0,
8988
- isAsync: false,
8989
- isManualAsync: _trampoline16.manuallyAsync,
8990
- paramLiftFns: [_liftFlatBorrow.bind(null, 6),_liftFlatFlags({ names: ['symlink-follow'], size32: 1, align32: 1, intSize: 1 }),_liftFlatStringUTF8],
8991
- resultLowerFns: [_lowerFlatResult([[ 'ok', _lowerFlatRecord.bind(null, [['lower', _lowerFlatU64, 16, 8 ],['upper', _lowerFlatU64, 16, 8 ],]), 24, 8, 8 ],[ 'err', _lowerFlatEnum.bind(null, 0), 24, 8, 8 ],])],
8992
- funcTypeIsAsync: false,
8993
- getCallbackFn: () => null,
8994
- getPostReturnFn: () => null,
8995
- isCancellable: false,
8996
- memoryIdx: 0,
8997
- getMemoryFn: () => memory0,
8998
- getReallocFn: () => null,
8999
- importFn: _trampoline16,
9000
- },
9001
- );
9002
- let trampoline17 = _trampoline17.manuallyAsync ? new WebAssembly.Suspending(_lowerImportBackwardsCompat.bind(
9003
- null,
9004
- {
9005
- trampolineIdx: 17,
9006
- componentIdx: 0,
9007
- isAsync: false,
9008
- isManualAsync: _trampoline17.manuallyAsync,
9009
- paramLiftFns: [_liftFlatBorrow.bind(null, 6),_liftFlatU64],
9010
- resultLowerFns: [_lowerFlatResult([[ 'ok', _lowerFlatOwn.bind(null, 1), 8, 4, 4 ],[ 'err', _lowerFlatEnum.bind(null, 0), 8, 4, 4 ],])],
9011
- funcTypeIsAsync: false,
9012
- getCallbackFn: () => null,
9013
- getPostReturnFn: () => null,
9014
- isCancellable: false,
9015
- memoryIdx: 0,
9016
- getMemoryFn: () => memory0,
9017
- getReallocFn: () => null,
9018
- importFn: _trampoline17,
9019
- },
9020
- )) : _lowerImportBackwardsCompat.bind(
9021
- null,
9022
- {
9023
- trampolineIdx: 17,
9024
- componentIdx: 0,
9025
- isAsync: false,
9026
- isManualAsync: _trampoline17.manuallyAsync,
9027
- paramLiftFns: [_liftFlatBorrow.bind(null, 6),_liftFlatU64],
9028
- resultLowerFns: [_lowerFlatResult([[ 'ok', _lowerFlatOwn.bind(null, 1), 8, 4, 4 ],[ 'err', _lowerFlatEnum.bind(null, 0), 8, 4, 4 ],])],
9029
- funcTypeIsAsync: false,
9030
- getCallbackFn: () => null,
9031
- getPostReturnFn: () => null,
9032
- isCancellable: false,
9033
- memoryIdx: 0,
9034
- getMemoryFn: () => memory0,
9035
- getReallocFn: () => null,
9036
- importFn: _trampoline17,
9037
- },
9038
- );
9039
- let trampoline18 = _trampoline18.manuallyAsync ? new WebAssembly.Suspending(_lowerImportBackwardsCompat.bind(
9040
- null,
9041
- {
9042
- trampolineIdx: 18,
9043
- componentIdx: 0,
9044
- isAsync: false,
9045
- isManualAsync: _trampoline18.manuallyAsync,
9046
- paramLiftFns: [_liftFlatBorrow.bind(null, 6),_liftFlatU64],
9047
- resultLowerFns: [_lowerFlatResult([[ 'ok', _lowerFlatOwn.bind(null, 2), 8, 4, 4 ],[ 'err', _lowerFlatEnum.bind(null, 0), 8, 4, 4 ],])],
9048
- funcTypeIsAsync: false,
9049
- getCallbackFn: () => null,
9050
- getPostReturnFn: () => null,
9051
- isCancellable: false,
9052
- memoryIdx: 0,
9053
- getMemoryFn: () => memory0,
9054
- getReallocFn: () => null,
9055
- importFn: _trampoline18,
9056
- },
9057
- )) : _lowerImportBackwardsCompat.bind(
9058
- null,
9059
- {
9060
- trampolineIdx: 18,
9061
- componentIdx: 0,
9062
- isAsync: false,
9063
- isManualAsync: _trampoline18.manuallyAsync,
9064
- paramLiftFns: [_liftFlatBorrow.bind(null, 6),_liftFlatU64],
9065
- resultLowerFns: [_lowerFlatResult([[ 'ok', _lowerFlatOwn.bind(null, 2), 8, 4, 4 ],[ 'err', _lowerFlatEnum.bind(null, 0), 8, 4, 4 ],])],
9066
- funcTypeIsAsync: false,
9067
- getCallbackFn: () => null,
9068
- getPostReturnFn: () => null,
9069
- isCancellable: false,
9070
- memoryIdx: 0,
9071
- getMemoryFn: () => memory0,
9072
- getReallocFn: () => null,
9073
- importFn: _trampoline18,
9074
- },
9075
- );
9076
- let trampoline19 = _trampoline19.manuallyAsync ? new WebAssembly.Suspending(_lowerImportBackwardsCompat.bind(
9077
- null,
9078
- {
9079
- trampolineIdx: 19,
9080
- componentIdx: 0,
9081
- isAsync: false,
9082
- isManualAsync: _trampoline19.manuallyAsync,
9083
- paramLiftFns: [_liftFlatBorrow.bind(null, 6)],
9084
- resultLowerFns: [_lowerFlatResult([[ 'ok', _lowerFlatOwn.bind(null, 2), 8, 4, 4 ],[ 'err', _lowerFlatEnum.bind(null, 0), 8, 4, 4 ],])],
9085
- funcTypeIsAsync: false,
9086
- getCallbackFn: () => null,
9087
- getPostReturnFn: () => null,
9088
- isCancellable: false,
9089
- memoryIdx: 0,
9090
- getMemoryFn: () => memory0,
9091
- getReallocFn: () => null,
9092
- importFn: _trampoline19,
9093
- },
9094
- )) : _lowerImportBackwardsCompat.bind(
9095
- null,
9096
- {
9097
- trampolineIdx: 19,
9098
- componentIdx: 0,
9099
- isAsync: false,
9100
- isManualAsync: _trampoline19.manuallyAsync,
9101
- paramLiftFns: [_liftFlatBorrow.bind(null, 6)],
9102
- resultLowerFns: [_lowerFlatResult([[ 'ok', _lowerFlatOwn.bind(null, 2), 8, 4, 4 ],[ 'err', _lowerFlatEnum.bind(null, 0), 8, 4, 4 ],])],
9103
- funcTypeIsAsync: false,
9104
- getCallbackFn: () => null,
9105
- getPostReturnFn: () => null,
9106
- isCancellable: false,
9107
- memoryIdx: 0,
9108
- getMemoryFn: () => memory0,
9109
- getReallocFn: () => null,
9110
- importFn: _trampoline19,
9111
- },
9112
- );
9113
- let trampoline20 = _trampoline20.manuallyAsync ? new WebAssembly.Suspending(_lowerImportBackwardsCompat.bind(
9114
- null,
9115
- {
9116
- trampolineIdx: 20,
9117
- componentIdx: 0,
9118
- isAsync: false,
9119
- isManualAsync: _trampoline20.manuallyAsync,
9120
- paramLiftFns: [_liftFlatBorrow.bind(null, 6)],
9121
- resultLowerFns: [_lowerFlatResult([[ 'ok', _lowerFlatOwn.bind(null, 5), 8, 4, 4 ],[ 'err', _lowerFlatEnum.bind(null, 0), 8, 4, 4 ],])],
9122
- funcTypeIsAsync: false,
9123
- getCallbackFn: () => null,
9124
- getPostReturnFn: () => null,
9125
- isCancellable: false,
9126
- memoryIdx: 0,
9127
- getMemoryFn: () => memory0,
9128
- getReallocFn: () => null,
9129
- importFn: _trampoline20,
9130
- },
9131
- )) : _lowerImportBackwardsCompat.bind(
9132
- null,
9133
- {
9134
- trampolineIdx: 20,
9135
- componentIdx: 0,
9136
- isAsync: false,
9137
- isManualAsync: _trampoline20.manuallyAsync,
9138
- paramLiftFns: [_liftFlatBorrow.bind(null, 6)],
9139
- resultLowerFns: [_lowerFlatResult([[ 'ok', _lowerFlatOwn.bind(null, 5), 8, 4, 4 ],[ 'err', _lowerFlatEnum.bind(null, 0), 8, 4, 4 ],])],
9140
- funcTypeIsAsync: false,
9141
- getCallbackFn: () => null,
9142
- getPostReturnFn: () => null,
9143
- isCancellable: false,
9144
- memoryIdx: 0,
9145
- getMemoryFn: () => memory0,
9146
- getReallocFn: () => null,
9147
- importFn: _trampoline20,
9148
- },
9149
- );
9150
- let trampoline21 = _trampoline21.manuallyAsync ? new WebAssembly.Suspending(_lowerImportBackwardsCompat.bind(
9151
- null,
9152
- {
9153
- trampolineIdx: 21,
9154
- componentIdx: 0,
9155
- isAsync: false,
9156
- isManualAsync: _trampoline21.manuallyAsync,
9157
- paramLiftFns: [_liftFlatBorrow.bind(null, 6)],
9158
- resultLowerFns: [_lowerFlatResult([[ 'ok', _lowerFlatRecord.bind(null, [['type', _lowerFlatEnum.bind(null, 1), 96, 8 ],['linkCount', _lowerFlatU64, 96, 8 ],['size', _lowerFlatU64, 96, 8 ],['dataAccessTimestamp', _lowerFlatOption([[ 'some', _lowerFlatRecord.bind(null, [['seconds', _lowerFlatU64, 16, 8 ],['nanoseconds', _lowerFlatU32, 16, 8 ],]), 24, 8, 8 ],[ 'none', null, 24, 8, 8 ],]), 96, 8 ],['dataModificationTimestamp', _lowerFlatOption([[ 'some', _lowerFlatRecord.bind(null, [['seconds', _lowerFlatU64, 16, 8 ],['nanoseconds', _lowerFlatU32, 16, 8 ],]), 24, 8, 8 ],[ 'none', null, 24, 8, 8 ],]), 96, 8 ],['statusChangeTimestamp', _lowerFlatOption([[ 'some', _lowerFlatRecord.bind(null, [['seconds', _lowerFlatU64, 16, 8 ],['nanoseconds', _lowerFlatU32, 16, 8 ],]), 24, 8, 8 ],[ 'none', null, 24, 8, 8 ],]), 96, 8 ],]), 104, 8, 8 ],[ 'err', _lowerFlatEnum.bind(null, 0), 104, 8, 8 ],])],
9159
- funcTypeIsAsync: false,
9160
- getCallbackFn: () => null,
9161
- getPostReturnFn: () => null,
9162
- isCancellable: false,
9163
- memoryIdx: 0,
9164
- getMemoryFn: () => memory0,
9165
- getReallocFn: () => null,
9166
- importFn: _trampoline21,
9167
- },
9168
- )) : _lowerImportBackwardsCompat.bind(
9169
- null,
9170
- {
9171
- trampolineIdx: 21,
9172
- componentIdx: 0,
9173
- isAsync: false,
9174
- isManualAsync: _trampoline21.manuallyAsync,
9175
- paramLiftFns: [_liftFlatBorrow.bind(null, 6)],
9176
- resultLowerFns: [_lowerFlatResult([[ 'ok', _lowerFlatRecord.bind(null, [['type', _lowerFlatEnum.bind(null, 1), 96, 8 ],['linkCount', _lowerFlatU64, 96, 8 ],['size', _lowerFlatU64, 96, 8 ],['dataAccessTimestamp', _lowerFlatOption([[ 'some', _lowerFlatRecord.bind(null, [['seconds', _lowerFlatU64, 16, 8 ],['nanoseconds', _lowerFlatU32, 16, 8 ],]), 24, 8, 8 ],[ 'none', null, 24, 8, 8 ],]), 96, 8 ],['dataModificationTimestamp', _lowerFlatOption([[ 'some', _lowerFlatRecord.bind(null, [['seconds', _lowerFlatU64, 16, 8 ],['nanoseconds', _lowerFlatU32, 16, 8 ],]), 24, 8, 8 ],[ 'none', null, 24, 8, 8 ],]), 96, 8 ],['statusChangeTimestamp', _lowerFlatOption([[ 'some', _lowerFlatRecord.bind(null, [['seconds', _lowerFlatU64, 16, 8 ],['nanoseconds', _lowerFlatU32, 16, 8 ],]), 24, 8, 8 ],[ 'none', null, 24, 8, 8 ],]), 96, 8 ],]), 104, 8, 8 ],[ 'err', _lowerFlatEnum.bind(null, 0), 104, 8, 8 ],])],
9177
- funcTypeIsAsync: false,
9178
- getCallbackFn: () => null,
9179
- getPostReturnFn: () => null,
9180
- isCancellable: false,
9181
- memoryIdx: 0,
9182
- getMemoryFn: () => memory0,
9183
- getReallocFn: () => null,
9184
- importFn: _trampoline21,
9185
- },
9186
- );
9187
- let trampoline22 = _trampoline22.manuallyAsync ? new WebAssembly.Suspending(_lowerImportBackwardsCompat.bind(
9188
- null,
9189
- {
9190
- trampolineIdx: 22,
9191
- componentIdx: 0,
9192
- isAsync: false,
9193
- isManualAsync: _trampoline22.manuallyAsync,
9194
- paramLiftFns: [_liftFlatBorrow.bind(null, 6),_liftFlatFlags({ names: ['symlink-follow'], size32: 1, align32: 1, intSize: 1 }),_liftFlatStringUTF8],
9195
- resultLowerFns: [_lowerFlatResult([[ 'ok', _lowerFlatRecord.bind(null, [['type', _lowerFlatEnum.bind(null, 1), 96, 8 ],['linkCount', _lowerFlatU64, 96, 8 ],['size', _lowerFlatU64, 96, 8 ],['dataAccessTimestamp', _lowerFlatOption([[ 'some', _lowerFlatRecord.bind(null, [['seconds', _lowerFlatU64, 16, 8 ],['nanoseconds', _lowerFlatU32, 16, 8 ],]), 24, 8, 8 ],[ 'none', null, 24, 8, 8 ],]), 96, 8 ],['dataModificationTimestamp', _lowerFlatOption([[ 'some', _lowerFlatRecord.bind(null, [['seconds', _lowerFlatU64, 16, 8 ],['nanoseconds', _lowerFlatU32, 16, 8 ],]), 24, 8, 8 ],[ 'none', null, 24, 8, 8 ],]), 96, 8 ],['statusChangeTimestamp', _lowerFlatOption([[ 'some', _lowerFlatRecord.bind(null, [['seconds', _lowerFlatU64, 16, 8 ],['nanoseconds', _lowerFlatU32, 16, 8 ],]), 24, 8, 8 ],[ 'none', null, 24, 8, 8 ],]), 96, 8 ],]), 104, 8, 8 ],[ 'err', _lowerFlatEnum.bind(null, 0), 104, 8, 8 ],])],
9196
- funcTypeIsAsync: false,
9197
- getCallbackFn: () => null,
9198
- getPostReturnFn: () => null,
9199
- isCancellable: false,
9200
- memoryIdx: 0,
9201
- getMemoryFn: () => memory0,
9202
- getReallocFn: () => null,
9203
- importFn: _trampoline22,
9204
- },
9205
- )) : _lowerImportBackwardsCompat.bind(
9206
- null,
9207
- {
9208
- trampolineIdx: 22,
9209
- componentIdx: 0,
9210
- isAsync: false,
9211
- isManualAsync: _trampoline22.manuallyAsync,
9212
- paramLiftFns: [_liftFlatBorrow.bind(null, 6),_liftFlatFlags({ names: ['symlink-follow'], size32: 1, align32: 1, intSize: 1 }),_liftFlatStringUTF8],
9213
- resultLowerFns: [_lowerFlatResult([[ 'ok', _lowerFlatRecord.bind(null, [['type', _lowerFlatEnum.bind(null, 1), 96, 8 ],['linkCount', _lowerFlatU64, 96, 8 ],['size', _lowerFlatU64, 96, 8 ],['dataAccessTimestamp', _lowerFlatOption([[ 'some', _lowerFlatRecord.bind(null, [['seconds', _lowerFlatU64, 16, 8 ],['nanoseconds', _lowerFlatU32, 16, 8 ],]), 24, 8, 8 ],[ 'none', null, 24, 8, 8 ],]), 96, 8 ],['dataModificationTimestamp', _lowerFlatOption([[ 'some', _lowerFlatRecord.bind(null, [['seconds', _lowerFlatU64, 16, 8 ],['nanoseconds', _lowerFlatU32, 16, 8 ],]), 24, 8, 8 ],[ 'none', null, 24, 8, 8 ],]), 96, 8 ],['statusChangeTimestamp', _lowerFlatOption([[ 'some', _lowerFlatRecord.bind(null, [['seconds', _lowerFlatU64, 16, 8 ],['nanoseconds', _lowerFlatU32, 16, 8 ],]), 24, 8, 8 ],[ 'none', null, 24, 8, 8 ],]), 96, 8 ],]), 104, 8, 8 ],[ 'err', _lowerFlatEnum.bind(null, 0), 104, 8, 8 ],])],
9214
- funcTypeIsAsync: false,
9215
- getCallbackFn: () => null,
9216
- getPostReturnFn: () => null,
9217
- isCancellable: false,
9218
- memoryIdx: 0,
9219
- getMemoryFn: () => memory0,
9220
- getReallocFn: () => null,
9221
- importFn: _trampoline22,
9222
- },
9223
- );
9224
- let trampoline23 = _trampoline23.manuallyAsync ? new WebAssembly.Suspending(_lowerImportBackwardsCompat.bind(
9225
- null,
9226
- {
9227
- trampolineIdx: 23,
9228
- componentIdx: 0,
9229
- isAsync: false,
9230
- isManualAsync: _trampoline23.manuallyAsync,
9231
- paramLiftFns: [_liftFlatBorrow.bind(null, 6),_liftFlatFlags({ names: ['symlink-follow'], size32: 1, align32: 1, intSize: 1 }),_liftFlatStringUTF8,_liftFlatFlags({ names: ['create','directory','exclusive','truncate'], size32: 1, align32: 1, intSize: 1 }),_liftFlatFlags({ names: ['read','write','file-integrity-sync','data-integrity-sync','requested-write-sync','mutate-directory'], size32: 1, align32: 1, intSize: 1 })],
9232
- resultLowerFns: [_lowerFlatResult([[ 'ok', _lowerFlatOwn.bind(null, 6), 8, 4, 4 ],[ 'err', _lowerFlatEnum.bind(null, 0), 8, 4, 4 ],])],
9233
- funcTypeIsAsync: false,
9234
- getCallbackFn: () => null,
9235
- getPostReturnFn: () => null,
9236
- isCancellable: false,
9237
- memoryIdx: 0,
9238
- getMemoryFn: () => memory0,
9239
- getReallocFn: () => null,
9240
- importFn: _trampoline23,
9241
- },
9242
- )) : _lowerImportBackwardsCompat.bind(
9243
- null,
9244
- {
9245
- trampolineIdx: 23,
9246
- componentIdx: 0,
9247
- isAsync: false,
9248
- isManualAsync: _trampoline23.manuallyAsync,
9249
- paramLiftFns: [_liftFlatBorrow.bind(null, 6),_liftFlatFlags({ names: ['symlink-follow'], size32: 1, align32: 1, intSize: 1 }),_liftFlatStringUTF8,_liftFlatFlags({ names: ['create','directory','exclusive','truncate'], size32: 1, align32: 1, intSize: 1 }),_liftFlatFlags({ names: ['read','write','file-integrity-sync','data-integrity-sync','requested-write-sync','mutate-directory'], size32: 1, align32: 1, intSize: 1 })],
9250
- resultLowerFns: [_lowerFlatResult([[ 'ok', _lowerFlatOwn.bind(null, 6), 8, 4, 4 ],[ 'err', _lowerFlatEnum.bind(null, 0), 8, 4, 4 ],])],
9251
- funcTypeIsAsync: false,
9252
- getCallbackFn: () => null,
9253
- getPostReturnFn: () => null,
9254
- isCancellable: false,
9255
- memoryIdx: 0,
9256
- getMemoryFn: () => memory0,
9257
- getReallocFn: () => null,
9258
- importFn: _trampoline23,
9259
- },
9260
- );
9261
- let trampoline24 = _trampoline24.manuallyAsync ? new WebAssembly.Suspending(_lowerImportBackwardsCompat.bind(
9262
- null,
9263
- {
9264
- trampolineIdx: 24,
9265
- componentIdx: 0,
9266
- isAsync: false,
9267
- isManualAsync: _trampoline24.manuallyAsync,
9268
- paramLiftFns: [_liftFlatBorrow.bind(null, 5)],
9269
- resultLowerFns: [_lowerFlatResult([[ 'ok', _lowerFlatOption([[ 'some', _lowerFlatRecord.bind(null, [['type', _lowerFlatEnum.bind(null, 1), 12, 4 ],['name', _lowerFlatStringUTF8, 12, 4 ],]), 16, 4, 4 ],[ 'none', null, 16, 4, 4 ],]), 20, 4, 4 ],[ 'err', _lowerFlatEnum.bind(null, 0), 20, 4, 4 ],])],
9270
- funcTypeIsAsync: false,
9271
- getCallbackFn: () => null,
9272
- getPostReturnFn: () => null,
9273
- isCancellable: false,
9274
- memoryIdx: 0,
9275
- getMemoryFn: () => memory0,
9276
- getReallocFn: () => realloc0,
9277
- importFn: _trampoline24,
9278
- },
9279
- )) : _lowerImportBackwardsCompat.bind(
9280
- null,
9281
- {
9282
- trampolineIdx: 24,
9283
- componentIdx: 0,
9284
- isAsync: false,
9285
- isManualAsync: _trampoline24.manuallyAsync,
9286
- paramLiftFns: [_liftFlatBorrow.bind(null, 5)],
9287
- resultLowerFns: [_lowerFlatResult([[ 'ok', _lowerFlatOption([[ 'some', _lowerFlatRecord.bind(null, [['type', _lowerFlatEnum.bind(null, 1), 12, 4 ],['name', _lowerFlatStringUTF8, 12, 4 ],]), 16, 4, 4 ],[ 'none', null, 16, 4, 4 ],]), 20, 4, 4 ],[ 'err', _lowerFlatEnum.bind(null, 0), 20, 4, 4 ],])],
9288
- funcTypeIsAsync: false,
9289
- getCallbackFn: () => null,
9290
- getPostReturnFn: () => null,
9291
- isCancellable: false,
9292
- memoryIdx: 0,
9293
- getMemoryFn: () => memory0,
9294
- getReallocFn: () => realloc0,
9295
- importFn: _trampoline24,
9296
- },
9297
- );
9298
- let trampoline25 = _trampoline25.manuallyAsync ? new WebAssembly.Suspending(_lowerImportBackwardsCompat.bind(
9299
- null,
9300
- {
9301
- trampolineIdx: 25,
9302
- componentIdx: 0,
9303
- isAsync: false,
9304
- isManualAsync: _trampoline25.manuallyAsync,
9305
- paramLiftFns: [_liftFlatBorrow.bind(null, 1),_liftFlatU64],
9306
- resultLowerFns: [_lowerFlatResult([[ 'ok', _lowerFlatList({ elemLowerFn: _lowerFlatU8, typeIdx: 1 }), 12, 4, 4 ],[ 'err', _lowerFlatVariant([[ 'last-operation-failed', _lowerFlatOwn.bind(null, 0), 8, 4, 4 ],[ 'closed', null, 8, 4, 4 ],]), 12, 4, 4 ],])],
9307
- funcTypeIsAsync: false,
9308
- getCallbackFn: () => null,
9309
- getPostReturnFn: () => null,
9310
- isCancellable: false,
9311
- memoryIdx: 0,
9312
- getMemoryFn: () => memory0,
9313
- getReallocFn: () => realloc0,
9314
- importFn: _trampoline25,
9315
- },
9316
- )) : _lowerImportBackwardsCompat.bind(
9317
- null,
9318
- {
9319
- trampolineIdx: 25,
9320
- componentIdx: 0,
9321
- isAsync: false,
9322
- isManualAsync: _trampoline25.manuallyAsync,
9323
- paramLiftFns: [_liftFlatBorrow.bind(null, 1),_liftFlatU64],
9324
- resultLowerFns: [_lowerFlatResult([[ 'ok', _lowerFlatList({ elemLowerFn: _lowerFlatU8, typeIdx: 1 }), 12, 4, 4 ],[ 'err', _lowerFlatVariant([[ 'last-operation-failed', _lowerFlatOwn.bind(null, 0), 8, 4, 4 ],[ 'closed', null, 8, 4, 4 ],]), 12, 4, 4 ],])],
9325
- funcTypeIsAsync: false,
9326
- getCallbackFn: () => null,
9327
- getPostReturnFn: () => null,
9328
- isCancellable: false,
9329
- memoryIdx: 0,
9330
- getMemoryFn: () => memory0,
9331
- getReallocFn: () => realloc0,
9332
- importFn: _trampoline25,
9333
- },
9334
- );
9335
- let trampoline26 = _trampoline26.manuallyAsync ? new WebAssembly.Suspending(_lowerImportBackwardsCompat.bind(
9336
- null,
9337
- {
9338
- trampolineIdx: 26,
9339
- componentIdx: 0,
9340
- isAsync: false,
9341
- isManualAsync: _trampoline26.manuallyAsync,
9342
- paramLiftFns: [_liftFlatBorrow.bind(null, 1),_liftFlatU64],
9343
- resultLowerFns: [_lowerFlatResult([[ 'ok', _lowerFlatList({ elemLowerFn: _lowerFlatU8, typeIdx: 1 }), 12, 4, 4 ],[ 'err', _lowerFlatVariant([[ 'last-operation-failed', _lowerFlatOwn.bind(null, 0), 8, 4, 4 ],[ 'closed', null, 8, 4, 4 ],]), 12, 4, 4 ],])],
9344
- funcTypeIsAsync: false,
9345
- getCallbackFn: () => null,
9346
- getPostReturnFn: () => null,
9347
- isCancellable: false,
9348
- memoryIdx: 0,
9349
- getMemoryFn: () => memory0,
9350
- getReallocFn: () => realloc0,
9351
- importFn: _trampoline26,
9352
- },
9353
- )) : _lowerImportBackwardsCompat.bind(
9354
- null,
9355
- {
9356
- trampolineIdx: 26,
9357
- componentIdx: 0,
9358
- isAsync: false,
9359
- isManualAsync: _trampoline26.manuallyAsync,
9360
- paramLiftFns: [_liftFlatBorrow.bind(null, 1),_liftFlatU64],
9361
- resultLowerFns: [_lowerFlatResult([[ 'ok', _lowerFlatList({ elemLowerFn: _lowerFlatU8, typeIdx: 1 }), 12, 4, 4 ],[ 'err', _lowerFlatVariant([[ 'last-operation-failed', _lowerFlatOwn.bind(null, 0), 8, 4, 4 ],[ 'closed', null, 8, 4, 4 ],]), 12, 4, 4 ],])],
9362
- funcTypeIsAsync: false,
9363
- getCallbackFn: () => null,
9364
- getPostReturnFn: () => null,
9365
- isCancellable: false,
9366
- memoryIdx: 0,
9367
- getMemoryFn: () => memory0,
9368
- getReallocFn: () => realloc0,
9369
- importFn: _trampoline26,
9370
- },
9371
- );
9372
- let trampoline27 = _trampoline27.manuallyAsync ? new WebAssembly.Suspending(_lowerImportBackwardsCompat.bind(
9373
- null,
9374
- {
9375
- trampolineIdx: 27,
9376
- componentIdx: 0,
9377
- isAsync: false,
9378
- isManualAsync: _trampoline27.manuallyAsync,
9379
- paramLiftFns: [_liftFlatBorrow.bind(null, 2)],
9380
- resultLowerFns: [_lowerFlatResult([[ 'ok', _lowerFlatU64, 16, 8, 8 ],[ 'err', _lowerFlatVariant([[ 'last-operation-failed', _lowerFlatOwn.bind(null, 0), 8, 4, 4 ],[ 'closed', null, 8, 4, 4 ],]), 16, 8, 8 ],])],
9381
- funcTypeIsAsync: false,
9382
- getCallbackFn: () => null,
9383
- getPostReturnFn: () => null,
9384
- isCancellable: false,
9385
- memoryIdx: 0,
9386
- getMemoryFn: () => memory0,
9387
- getReallocFn: () => null,
9388
- importFn: _trampoline27,
9389
- },
9390
- )) : _lowerImportBackwardsCompat.bind(
9391
- null,
9392
- {
9393
- trampolineIdx: 27,
9394
- componentIdx: 0,
9395
- isAsync: false,
9396
- isManualAsync: _trampoline27.manuallyAsync,
9397
- paramLiftFns: [_liftFlatBorrow.bind(null, 2)],
9398
- resultLowerFns: [_lowerFlatResult([[ 'ok', _lowerFlatU64, 16, 8, 8 ],[ 'err', _lowerFlatVariant([[ 'last-operation-failed', _lowerFlatOwn.bind(null, 0), 8, 4, 4 ],[ 'closed', null, 8, 4, 4 ],]), 16, 8, 8 ],])],
9399
- funcTypeIsAsync: false,
9400
- getCallbackFn: () => null,
9401
- getPostReturnFn: () => null,
9402
- isCancellable: false,
9403
- memoryIdx: 0,
9404
- getMemoryFn: () => memory0,
9405
- getReallocFn: () => null,
9406
- importFn: _trampoline27,
9407
- },
9408
- );
9409
- let trampoline28 = _trampoline28.manuallyAsync ? new WebAssembly.Suspending(_lowerImportBackwardsCompat.bind(
9410
- null,
9411
- {
9412
- trampolineIdx: 28,
9413
- componentIdx: 0,
9414
- isAsync: false,
9415
- isManualAsync: _trampoline28.manuallyAsync,
9416
- paramLiftFns: [_liftFlatBorrow.bind(null, 2),_liftFlatList({ elemLiftFn: _liftFlatU8, align32: 1, size32: 1 })],
9417
- resultLowerFns: [_lowerFlatResult([[ 'ok', null, 12, 4, 4 ],[ 'err', _lowerFlatVariant([[ 'last-operation-failed', _lowerFlatOwn.bind(null, 0), 8, 4, 4 ],[ 'closed', null, 8, 4, 4 ],]), 12, 4, 4 ],])],
9418
- funcTypeIsAsync: false,
9419
- getCallbackFn: () => null,
9420
- getPostReturnFn: () => null,
9421
- isCancellable: false,
9422
- memoryIdx: 0,
9423
- getMemoryFn: () => memory0,
9424
- getReallocFn: () => null,
9425
- importFn: _trampoline28,
9426
- },
9427
- )) : _lowerImportBackwardsCompat.bind(
9428
- null,
9429
- {
9430
- trampolineIdx: 28,
9431
- componentIdx: 0,
9432
- isAsync: false,
9433
- isManualAsync: _trampoline28.manuallyAsync,
9434
- paramLiftFns: [_liftFlatBorrow.bind(null, 2),_liftFlatList({ elemLiftFn: _liftFlatU8, align32: 1, size32: 1 })],
9435
- resultLowerFns: [_lowerFlatResult([[ 'ok', null, 12, 4, 4 ],[ 'err', _lowerFlatVariant([[ 'last-operation-failed', _lowerFlatOwn.bind(null, 0), 8, 4, 4 ],[ 'closed', null, 8, 4, 4 ],]), 12, 4, 4 ],])],
9436
- funcTypeIsAsync: false,
9437
- getCallbackFn: () => null,
9438
- getPostReturnFn: () => null,
9439
- isCancellable: false,
9440
- memoryIdx: 0,
9441
- getMemoryFn: () => memory0,
9442
- getReallocFn: () => null,
9443
- importFn: _trampoline28,
9444
- },
9445
- );
9446
- let trampoline29 = _trampoline29.manuallyAsync ? new WebAssembly.Suspending(_lowerImportBackwardsCompat.bind(
9447
- null,
9448
- {
9449
- trampolineIdx: 29,
9450
- componentIdx: 0,
9451
- isAsync: false,
9452
- isManualAsync: _trampoline29.manuallyAsync,
9453
- paramLiftFns: [_liftFlatBorrow.bind(null, 2),_liftFlatList({ elemLiftFn: _liftFlatU8, align32: 1, size32: 1 })],
9454
- resultLowerFns: [_lowerFlatResult([[ 'ok', null, 12, 4, 4 ],[ 'err', _lowerFlatVariant([[ 'last-operation-failed', _lowerFlatOwn.bind(null, 0), 8, 4, 4 ],[ 'closed', null, 8, 4, 4 ],]), 12, 4, 4 ],])],
9455
- funcTypeIsAsync: false,
9456
- getCallbackFn: () => null,
9457
- getPostReturnFn: () => null,
9458
- isCancellable: false,
9459
- memoryIdx: 0,
9460
- getMemoryFn: () => memory0,
9461
- getReallocFn: () => null,
9462
- importFn: _trampoline29,
9463
- },
9464
- )) : _lowerImportBackwardsCompat.bind(
9465
- null,
9466
- {
9467
- trampolineIdx: 29,
9468
- componentIdx: 0,
9469
- isAsync: false,
9470
- isManualAsync: _trampoline29.manuallyAsync,
9471
- paramLiftFns: [_liftFlatBorrow.bind(null, 2),_liftFlatList({ elemLiftFn: _liftFlatU8, align32: 1, size32: 1 })],
9472
- resultLowerFns: [_lowerFlatResult([[ 'ok', null, 12, 4, 4 ],[ 'err', _lowerFlatVariant([[ 'last-operation-failed', _lowerFlatOwn.bind(null, 0), 8, 4, 4 ],[ 'closed', null, 8, 4, 4 ],]), 12, 4, 4 ],])],
9473
- funcTypeIsAsync: false,
9474
- getCallbackFn: () => null,
9475
- getPostReturnFn: () => null,
9476
- isCancellable: false,
9477
- memoryIdx: 0,
9478
- getMemoryFn: () => memory0,
9479
- getReallocFn: () => null,
9480
- importFn: _trampoline29,
9481
- },
9482
- );
9483
- let trampoline30 = _trampoline30.manuallyAsync ? new WebAssembly.Suspending(_lowerImportBackwardsCompat.bind(
9484
- null,
9485
- {
9486
- trampolineIdx: 30,
9487
- componentIdx: 0,
9488
- isAsync: false,
9489
- isManualAsync: _trampoline30.manuallyAsync,
9490
- paramLiftFns: [_liftFlatBorrow.bind(null, 2)],
9491
- resultLowerFns: [_lowerFlatResult([[ 'ok', null, 12, 4, 4 ],[ 'err', _lowerFlatVariant([[ 'last-operation-failed', _lowerFlatOwn.bind(null, 0), 8, 4, 4 ],[ 'closed', null, 8, 4, 4 ],]), 12, 4, 4 ],])],
9492
- funcTypeIsAsync: false,
9493
- getCallbackFn: () => null,
9494
- getPostReturnFn: () => null,
9495
- isCancellable: false,
9496
- memoryIdx: 0,
9497
- getMemoryFn: () => memory0,
9498
- getReallocFn: () => null,
9499
- importFn: _trampoline30,
9500
- },
9501
- )) : _lowerImportBackwardsCompat.bind(
9502
- null,
9503
- {
9504
- trampolineIdx: 30,
9505
- componentIdx: 0,
9506
- isAsync: false,
9507
- isManualAsync: _trampoline30.manuallyAsync,
9508
- paramLiftFns: [_liftFlatBorrow.bind(null, 2)],
9509
- resultLowerFns: [_lowerFlatResult([[ 'ok', null, 12, 4, 4 ],[ 'err', _lowerFlatVariant([[ 'last-operation-failed', _lowerFlatOwn.bind(null, 0), 8, 4, 4 ],[ 'closed', null, 8, 4, 4 ],]), 12, 4, 4 ],])],
9510
- funcTypeIsAsync: false,
9511
- getCallbackFn: () => null,
9512
- getPostReturnFn: () => null,
9513
- isCancellable: false,
9514
- memoryIdx: 0,
9515
- getMemoryFn: () => memory0,
9516
- getReallocFn: () => null,
9517
- importFn: _trampoline30,
9518
- },
9519
- );
9520
- let trampoline31 = _trampoline31.manuallyAsync ? new WebAssembly.Suspending(_lowerImportBackwardsCompat.bind(
9521
- null,
9522
- {
9523
- trampolineIdx: 31,
9524
- componentIdx: 0,
9525
- isAsync: false,
9526
- isManualAsync: _trampoline31.manuallyAsync,
9527
- paramLiftFns: [_liftFlatU64],
9528
- resultLowerFns: [_lowerFlatList({ elemLowerFn: _lowerFlatU8, typeIdx: 1 })],
9529
- funcTypeIsAsync: false,
9530
- getCallbackFn: () => null,
9531
- getPostReturnFn: () => null,
9532
- isCancellable: false,
9533
- memoryIdx: 0,
9534
- getMemoryFn: () => memory0,
9535
- getReallocFn: () => realloc0,
9536
- importFn: _trampoline31,
9537
- },
9538
- )) : _lowerImportBackwardsCompat.bind(
9539
- null,
9540
- {
9541
- trampolineIdx: 31,
9542
- componentIdx: 0,
9543
- isAsync: false,
9544
- isManualAsync: _trampoline31.manuallyAsync,
9545
- paramLiftFns: [_liftFlatU64],
9546
- resultLowerFns: [_lowerFlatList({ elemLowerFn: _lowerFlatU8, typeIdx: 1 })],
9547
- funcTypeIsAsync: false,
9548
- getCallbackFn: () => null,
9549
- getPostReturnFn: () => null,
9550
- isCancellable: false,
9551
- memoryIdx: 0,
9552
- getMemoryFn: () => memory0,
9553
- getReallocFn: () => realloc0,
9554
- importFn: _trampoline31,
9555
- },
9556
- );
9557
- let trampoline32 = _trampoline32.manuallyAsync ? new WebAssembly.Suspending(_lowerImportBackwardsCompat.bind(
9558
- null,
9559
- {
9560
- trampolineIdx: 32,
9561
- componentIdx: 0,
9562
- isAsync: false,
9563
- isManualAsync: _trampoline32.manuallyAsync,
9564
- paramLiftFns: [],
9565
- resultLowerFns: [_lowerFlatList({ elemLowerFn: _lowerFlatTuple.bind(null, 30), typeIdx: 2 })],
9566
- funcTypeIsAsync: false,
9567
- getCallbackFn: () => null,
9568
- getPostReturnFn: () => null,
9569
- isCancellable: false,
9570
- memoryIdx: 0,
9571
- getMemoryFn: () => memory0,
9572
- getReallocFn: () => realloc0,
9573
- importFn: _trampoline32,
9574
- },
9575
- )) : _lowerImportBackwardsCompat.bind(
9576
- null,
9577
- {
9578
- trampolineIdx: 32,
9579
- componentIdx: 0,
9580
- isAsync: false,
9581
- isManualAsync: _trampoline32.manuallyAsync,
9582
- paramLiftFns: [],
9583
- resultLowerFns: [_lowerFlatList({ elemLowerFn: _lowerFlatTuple.bind(null, 30), typeIdx: 2 })],
9584
- funcTypeIsAsync: false,
9585
- getCallbackFn: () => null,
9586
- getPostReturnFn: () => null,
9587
- isCancellable: false,
9588
- memoryIdx: 0,
9589
- getMemoryFn: () => memory0,
9590
- getReallocFn: () => realloc0,
9591
- importFn: _trampoline32,
9592
- },
9593
- );
9594
- let trampoline33 = _trampoline33.manuallyAsync ? new WebAssembly.Suspending(_lowerImportBackwardsCompat.bind(
9595
- null,
9596
- {
9597
- trampolineIdx: 33,
9598
- componentIdx: 0,
9599
- isAsync: false,
9600
- isManualAsync: _trampoline33.manuallyAsync,
9601
- paramLiftFns: [],
9602
- resultLowerFns: [_lowerFlatOption([[ 'some', _lowerFlatOwn.bind(null, 3), 8, 4, 4 ],[ 'none', null, 8, 4, 4 ],])],
9603
- funcTypeIsAsync: false,
9604
- getCallbackFn: () => null,
9605
- getPostReturnFn: () => null,
9606
- isCancellable: false,
9607
- memoryIdx: 0,
9608
- getMemoryFn: () => memory0,
9609
- getReallocFn: () => null,
9610
- importFn: _trampoline33,
9611
- },
9612
- )) : _lowerImportBackwardsCompat.bind(
9613
- null,
9614
- {
9615
- trampolineIdx: 33,
9616
- componentIdx: 0,
9617
- isAsync: false,
9618
- isManualAsync: _trampoline33.manuallyAsync,
9619
- paramLiftFns: [],
9620
- resultLowerFns: [_lowerFlatOption([[ 'some', _lowerFlatOwn.bind(null, 3), 8, 4, 4 ],[ 'none', null, 8, 4, 4 ],])],
9621
- funcTypeIsAsync: false,
9622
- getCallbackFn: () => null,
9623
- getPostReturnFn: () => null,
9624
- isCancellable: false,
9625
- memoryIdx: 0,
9626
- getMemoryFn: () => memory0,
9627
- getReallocFn: () => null,
9628
- importFn: _trampoline33,
9629
- },
9630
- );
9631
- let trampoline34 = _trampoline34.manuallyAsync ? new WebAssembly.Suspending(_lowerImportBackwardsCompat.bind(
9632
- null,
9633
- {
9634
- trampolineIdx: 34,
9635
- componentIdx: 0,
9636
- isAsync: false,
9637
- isManualAsync: _trampoline34.manuallyAsync,
9638
- paramLiftFns: [],
9639
- resultLowerFns: [_lowerFlatOption([[ 'some', _lowerFlatOwn.bind(null, 4), 8, 4, 4 ],[ 'none', null, 8, 4, 4 ],])],
9640
- funcTypeIsAsync: false,
9641
- getCallbackFn: () => null,
9642
- getPostReturnFn: () => null,
9643
- isCancellable: false,
9644
- memoryIdx: 0,
9645
- getMemoryFn: () => memory0,
9646
- getReallocFn: () => null,
9647
- importFn: _trampoline34,
9648
- },
9649
- )) : _lowerImportBackwardsCompat.bind(
9650
- null,
9651
- {
9652
- trampolineIdx: 34,
9653
- componentIdx: 0,
9654
- isAsync: false,
9655
- isManualAsync: _trampoline34.manuallyAsync,
9656
- paramLiftFns: [],
9657
- resultLowerFns: [_lowerFlatOption([[ 'some', _lowerFlatOwn.bind(null, 4), 8, 4, 4 ],[ 'none', null, 8, 4, 4 ],])],
9658
- funcTypeIsAsync: false,
9659
- getCallbackFn: () => null,
9660
- getPostReturnFn: () => null,
9661
- isCancellable: false,
9662
- memoryIdx: 0,
9663
- getMemoryFn: () => memory0,
9664
- getReallocFn: () => null,
9665
- importFn: _trampoline34,
9666
- },
9667
- );
9668
- let trampoline35 = _trampoline35.manuallyAsync ? new WebAssembly.Suspending(_lowerImportBackwardsCompat.bind(
9669
- null,
9670
- {
9671
- trampolineIdx: 35,
9672
- componentIdx: 0,
9673
- isAsync: false,
9674
- isManualAsync: _trampoline35.manuallyAsync,
9675
- paramLiftFns: [],
9676
- resultLowerFns: [_lowerFlatOption([[ 'some', _lowerFlatOwn.bind(null, 4), 8, 4, 4 ],[ 'none', null, 8, 4, 4 ],])],
9677
- funcTypeIsAsync: false,
9678
- getCallbackFn: () => null,
9679
- getPostReturnFn: () => null,
9680
- isCancellable: false,
9681
- memoryIdx: 0,
9682
- getMemoryFn: () => memory0,
9683
- getReallocFn: () => null,
9684
- importFn: _trampoline35,
9685
- },
9686
- )) : _lowerImportBackwardsCompat.bind(
9687
- null,
9688
- {
9689
- trampolineIdx: 35,
9690
- componentIdx: 0,
9691
- isAsync: false,
9692
- isManualAsync: _trampoline35.manuallyAsync,
9693
- paramLiftFns: [],
9694
- resultLowerFns: [_lowerFlatOption([[ 'some', _lowerFlatOwn.bind(null, 4), 8, 4, 4 ],[ 'none', null, 8, 4, 4 ],])],
9695
- funcTypeIsAsync: false,
9696
- getCallbackFn: () => null,
9697
- getPostReturnFn: () => null,
9698
- isCancellable: false,
9699
- memoryIdx: 0,
9700
- getMemoryFn: () => memory0,
9701
- getReallocFn: () => null,
9702
- importFn: _trampoline35,
9703
- },
9704
- );
9705
- let toolsParse;
9706
-
9707
- function parse(arg0) {
9708
- if (!_initialized) throwUninitialized();
9709
-
9710
- var encodeRes = _utf8AllocateAndEncode(arg0, realloc1, memory0);
9711
- var ptr0= encodeRes.ptr;
9712
- var len0 = encodeRes.len;
9713
-
9714
- _debugLog('[iface="local:wasm-tools/tools", function="parse"][Instruction::CallWasm] enter', {
9715
- funcName: 'parse',
9716
- paramCount: 2,
9717
- async: false,
9718
- postReturn: true,
9719
- });
9720
- const hostProvided = false;
9721
-
9722
- const [task, _wasm_call_currentTaskID] = createNewCurrentTask({
9723
- componentIdx: 0,
9724
- isAsync: false,
9725
- isManualAsync: false,
9726
- entryFnName: 'toolsParse',
9727
- getCallbackFn: () => null,
9728
- callbackFnName: 'null',
9729
- errHandling: 'throw-result-err',
9730
- callingWasmExport: true,
9731
- });
9732
-
9733
- const started = task.enterSync();
9734
- task.setReturnMemoryIdx(0);
9735
- task.setReturnMemory(memory0);
9736
- let ret = _withGlobalCurrentTaskMeta({
9737
- taskID: task.id(),
9738
- componentIdx: task.componentIdx(),
9739
- fn: () => toolsParse(ptr0, len0),
9740
- });
9741
-
9742
- let variant3;
9743
- switch (dataView(memory0).getUint8(ret + 0, true)) {
9744
- case 0: {
9745
- var ptr1 = dataView(memory0).getUint32(ret + 4, true);
9746
- var len1 = dataView(memory0).getUint32(ret + 8, true);
9747
- var result1 = new Uint8Array(memory0.buffer.slice(ptr1, ptr1 + len1 * 1));
9748
- variant3= {
9749
- tag: 'ok',
9750
- val: result1
9751
- };
9752
- break;
9753
- }
9754
- case 1: {
9755
- var ptr2 = dataView(memory0).getUint32(ret + 4, true);
9756
- var len2 = dataView(memory0).getUint32(ret + 8, true);
9757
- var result2 = TEXT_DECODER_UTF8.decode(new Uint8Array(memory0.buffer, ptr2, len2));
9758
- variant3= {
9759
- tag: 'err',
9760
- val: result2
9761
- };
9762
- break;
9763
- }
9764
- default: {
9765
- throw new TypeError('invalid variant discriminant for expected');
9766
- }
9767
- }
9768
- _debugLog('[iface="local:wasm-tools/tools", function="parse"][Instruction::Return]', {
9769
- funcName: 'parse',
9770
- paramCount: 1,
9771
- async: false,
9772
- postReturn: true
9773
- });
9774
- const retCopy = variant3;
9775
- task.resolve([retCopy.val]);
9776
-
9777
- let cstate = getOrCreateAsyncState(0);
9778
- cstate.mayLeave = false;
9779
- postReturn0(ret);
9780
- cstate.mayLeave = true;
9781
- task.exit();
9782
-
9783
-
9784
-
9785
- if (typeof retCopy === 'object' && retCopy.tag === 'err') {
9786
- throw new ComponentError(retCopy.val);
9787
- }
9788
- return retCopy.val;
9789
-
9790
- }
9791
- let toolsPrint;
9792
-
9793
- function print(arg0) {
9794
- if (!_initialized) throwUninitialized();
9795
- var val0 = arg0;
9796
- var len0 = Array.isArray(val0) ? val0.length : val0.byteLength;
9797
- var ptr0 = realloc1(0, 0, 1, len0 * 1);
9798
-
9799
- let valData0;
9800
- const valLenBytes0 = len0 * 1;
9801
- if (Array.isArray(val0)) {
9802
- // Regular array likely containing numbers, write values to memory
9803
- let offset = 0;
9804
- const dv0 = new DataView(memory0.buffer);
9805
- for (const v of val0) {
9806
- dv0.setUint8(ptr0+ offset, v, true);
9807
- offset += 1;
9808
- }
9809
- } else {
9810
- // TypedArray / ArrayBuffer-like, direct copy
9811
- valData0 = new Uint8Array(val0.buffer || val0, val0.byteOffset, valLenBytes0);
9812
- const out0 = new Uint8Array(memory0.buffer, ptr0,valLenBytes0);
9813
- out0.set(valData0);
9814
- }
9815
-
9816
- _debugLog('[iface="local:wasm-tools/tools", function="print"][Instruction::CallWasm] enter', {
9817
- funcName: 'print',
9818
- paramCount: 2,
9819
- async: false,
9820
- postReturn: true,
9821
- });
9822
- const hostProvided = false;
9823
-
9824
- const [task, _wasm_call_currentTaskID] = createNewCurrentTask({
9825
- componentIdx: 0,
9826
- isAsync: false,
9827
- isManualAsync: false,
9828
- entryFnName: 'toolsPrint',
9829
- getCallbackFn: () => null,
9830
- callbackFnName: 'null',
9831
- errHandling: 'throw-result-err',
9832
- callingWasmExport: true,
9833
- });
9834
-
9835
- const started = task.enterSync();
9836
- task.setReturnMemoryIdx(0);
9837
- task.setReturnMemory(memory0);
9838
- let ret = _withGlobalCurrentTaskMeta({
9839
- taskID: task.id(),
9840
- componentIdx: task.componentIdx(),
9841
- fn: () => toolsPrint(ptr0, len0),
9842
- });
9843
-
9844
- let variant3;
9845
- switch (dataView(memory0).getUint8(ret + 0, true)) {
9846
- case 0: {
9847
- var ptr1 = dataView(memory0).getUint32(ret + 4, true);
9848
- var len1 = dataView(memory0).getUint32(ret + 8, true);
9849
- var result1 = TEXT_DECODER_UTF8.decode(new Uint8Array(memory0.buffer, ptr1, len1));
9850
- variant3= {
9851
- tag: 'ok',
9852
- val: result1
9853
- };
9854
- break;
9855
- }
9856
- case 1: {
9857
- var ptr2 = dataView(memory0).getUint32(ret + 4, true);
9858
- var len2 = dataView(memory0).getUint32(ret + 8, true);
9859
- var result2 = TEXT_DECODER_UTF8.decode(new Uint8Array(memory0.buffer, ptr2, len2));
9860
- variant3= {
9861
- tag: 'err',
9862
- val: result2
9863
- };
9864
- break;
9865
- }
9866
- default: {
9867
- throw new TypeError('invalid variant discriminant for expected');
9868
- }
9869
- }
9870
- _debugLog('[iface="local:wasm-tools/tools", function="print"][Instruction::Return]', {
9871
- funcName: 'print',
9872
- paramCount: 1,
9873
- async: false,
9874
- postReturn: true
9875
- });
9876
- const retCopy = variant3;
9877
- task.resolve([retCopy.val]);
9878
-
9879
- let cstate = getOrCreateAsyncState(0);
9880
- cstate.mayLeave = false;
9881
- postReturn0(ret);
9882
- cstate.mayLeave = true;
9883
- task.exit();
9884
-
9885
-
9886
-
9887
- if (typeof retCopy === 'object' && retCopy.tag === 'err') {
9888
- throw new ComponentError(retCopy.val);
9889
- }
9890
- return retCopy.val;
9891
-
9892
- }
9893
- let toolsComponentNew;
9894
-
9895
- function componentNew(arg0, arg1) {
9896
- if (!_initialized) throwUninitialized();
9897
- var val0 = arg0;
9898
- var len0 = Array.isArray(val0) ? val0.length : val0.byteLength;
9899
- var ptr0 = realloc1(0, 0, 1, len0 * 1);
9900
-
9901
- let valData0;
9902
- const valLenBytes0 = len0 * 1;
9903
- if (Array.isArray(val0)) {
9904
- // Regular array likely containing numbers, write values to memory
9905
- let offset = 0;
9906
- const dv0 = new DataView(memory0.buffer);
9907
- for (const v of val0) {
9908
- dv0.setUint8(ptr0+ offset, v, true);
9909
- offset += 1;
9910
- }
9911
- } else {
9912
- // TypedArray / ArrayBuffer-like, direct copy
9913
- valData0 = new Uint8Array(val0.buffer || val0, val0.byteOffset, valLenBytes0);
9914
- const out0 = new Uint8Array(memory0.buffer, ptr0,valLenBytes0);
9915
- out0.set(valData0);
9916
- }
9917
-
9918
- var variant5 = arg1;
9919
- let variant5_0;
9920
- let variant5_1;
9921
- let variant5_2;
9922
- if (variant5 === null || variant5=== undefined) {
9923
- variant5_0 = 0;
9924
- variant5_1 = 0;
9925
- variant5_2 = 0;
9926
- } else {
9927
- const e = variant5;
9928
- var vec4 = e;
9929
- var len4 = vec4.length;
9930
- var result4 = realloc1(0, 0, 4, len4 * 16);
9931
- for (let i = 0; i < vec4.length; i++) {
9932
- const e = vec4[i];
9933
- const base = result4 + i * 16;var [tuple1_0, tuple1_1] = e;
9934
-
9935
- var encodeRes = _utf8AllocateAndEncode(tuple1_0, realloc1, memory0);
9936
- var ptr2= encodeRes.ptr;
9937
- var len2 = encodeRes.len;
9938
-
9939
- dataView(memory0).setUint32(base + 4, len2, true);
9940
- dataView(memory0).setUint32(base + 0, ptr2, true);
9941
- var val3 = tuple1_1;
9942
- var len3 = Array.isArray(val3) ? val3.length : val3.byteLength;
9943
- var ptr3 = realloc1(0, 0, 1, len3 * 1);
9944
-
9945
- let valData3;
9946
- const valLenBytes3 = len3 * 1;
9947
- if (Array.isArray(val3)) {
9948
- // Regular array likely containing numbers, write values to memory
9949
- let offset = 0;
9950
- const dv3 = new DataView(memory0.buffer);
9951
- for (const v of val3) {
9952
- dv3.setUint8(ptr3+ offset, v, true);
9953
- offset += 1;
9954
- }
9955
- } else {
9956
- // TypedArray / ArrayBuffer-like, direct copy
9957
- valData3 = new Uint8Array(val3.buffer || val3, val3.byteOffset, valLenBytes3);
9958
- const out3 = new Uint8Array(memory0.buffer, ptr3,valLenBytes3);
9959
- out3.set(valData3);
9960
- }
9961
-
9962
- dataView(memory0).setUint32(base + 12, len3, true);
9963
- dataView(memory0).setUint32(base + 8, ptr3, true);
9964
- }
9965
- variant5_0 = 1;
9966
- variant5_1 = result4;
9967
- variant5_2 = len4;
9968
- }
9969
- _debugLog('[iface="local:wasm-tools/tools", function="component-new"][Instruction::CallWasm] enter', {
9970
- funcName: 'component-new',
9971
- paramCount: 5,
9972
- async: false,
9973
- postReturn: true,
9974
- });
9975
- const hostProvided = false;
9976
-
9977
- const [task, _wasm_call_currentTaskID] = createNewCurrentTask({
9978
- componentIdx: 0,
9979
- isAsync: false,
9980
- isManualAsync: false,
9981
- entryFnName: 'toolsComponentNew',
9982
- getCallbackFn: () => null,
9983
- callbackFnName: 'null',
9984
- errHandling: 'throw-result-err',
9985
- callingWasmExport: true,
9986
- });
9987
-
9988
- const started = task.enterSync();
9989
- task.setReturnMemoryIdx(0);
9990
- task.setReturnMemory(memory0);
9991
- let ret = _withGlobalCurrentTaskMeta({
9992
- taskID: task.id(),
9993
- componentIdx: task.componentIdx(),
9994
- fn: () => toolsComponentNew(ptr0, len0, variant5_0, variant5_1, variant5_2),
9995
- });
9996
-
9997
- let variant8;
9998
- switch (dataView(memory0).getUint8(ret + 0, true)) {
9999
- case 0: {
10000
- var ptr6 = dataView(memory0).getUint32(ret + 4, true);
10001
- var len6 = dataView(memory0).getUint32(ret + 8, true);
10002
- var result6 = new Uint8Array(memory0.buffer.slice(ptr6, ptr6 + len6 * 1));
10003
- variant8= {
10004
- tag: 'ok',
10005
- val: result6
10006
- };
10007
- break;
10008
- }
10009
- case 1: {
10010
- var ptr7 = dataView(memory0).getUint32(ret + 4, true);
10011
- var len7 = dataView(memory0).getUint32(ret + 8, true);
10012
- var result7 = TEXT_DECODER_UTF8.decode(new Uint8Array(memory0.buffer, ptr7, len7));
10013
- variant8= {
10014
- tag: 'err',
10015
- val: result7
10016
- };
10017
- break;
10018
- }
10019
- default: {
10020
- throw new TypeError('invalid variant discriminant for expected');
10021
- }
10022
- }
10023
- _debugLog('[iface="local:wasm-tools/tools", function="component-new"][Instruction::Return]', {
10024
- funcName: 'component-new',
10025
- paramCount: 1,
10026
- async: false,
10027
- postReturn: true
10028
- });
10029
- const retCopy = variant8;
10030
- task.resolve([retCopy.val]);
10031
-
10032
- let cstate = getOrCreateAsyncState(0);
10033
- cstate.mayLeave = false;
10034
- postReturn0(ret);
10035
- cstate.mayLeave = true;
10036
- task.exit();
10037
-
10038
-
10039
-
10040
- if (typeof retCopy === 'object' && retCopy.tag === 'err') {
10041
- throw new ComponentError(retCopy.val);
10042
- }
10043
- return retCopy.val;
10044
-
8937
+ return retCopy.val;
8938
+
10045
8939
  }
10046
8940
  let toolsComponentWit;
10047
8941
 
@@ -10746,6 +9640,1170 @@ function metadataAdd(arg0, arg1) {
10746
9640
  return retCopy.val;
10747
9641
 
10748
9642
  }
9643
+ function trampoline0(handle) {
9644
+ const handleEntry = rscTableRemove(handleTable5, handle);
9645
+ if (handleEntry.own) {
9646
+
9647
+ const rsc = captureTable5.get(handleEntry.rep);
9648
+ if (rsc) {
9649
+ if (rsc[symbolDispose]) rsc[symbolDispose]();
9650
+ captureTable5.delete(handleEntry.rep);
9651
+ } else if (DirectoryEntryStream[symbolCabiDispose]) {
9652
+ DirectoryEntryStream[symbolCabiDispose](handleEntry.rep);
9653
+ }
9654
+ }
9655
+ }
9656
+ function trampoline1(handle) {
9657
+ const handleEntry = rscTableRemove(handleTable2, handle);
9658
+ if (handleEntry.own) {
9659
+
9660
+ const rsc = captureTable2.get(handleEntry.rep);
9661
+ if (rsc) {
9662
+ if (rsc[symbolDispose]) rsc[symbolDispose]();
9663
+ captureTable2.delete(handleEntry.rep);
9664
+ } else if (OutputStream[symbolCabiDispose]) {
9665
+ OutputStream[symbolCabiDispose](handleEntry.rep);
9666
+ }
9667
+ }
9668
+ }
9669
+ function trampoline2(handle) {
9670
+ const handleEntry = rscTableRemove(handleTable0, handle);
9671
+ if (handleEntry.own) {
9672
+
9673
+ const rsc = captureTable0.get(handleEntry.rep);
9674
+ if (rsc) {
9675
+ if (rsc[symbolDispose]) rsc[symbolDispose]();
9676
+ captureTable0.delete(handleEntry.rep);
9677
+ } else if (Error$1[symbolCabiDispose]) {
9678
+ Error$1[symbolCabiDispose](handleEntry.rep);
9679
+ }
9680
+ }
9681
+ }
9682
+ function trampoline3(handle) {
9683
+ const handleEntry = rscTableRemove(handleTable1, handle);
9684
+ if (handleEntry.own) {
9685
+
9686
+ const rsc = captureTable1.get(handleEntry.rep);
9687
+ if (rsc) {
9688
+ if (rsc[symbolDispose]) rsc[symbolDispose]();
9689
+ captureTable1.delete(handleEntry.rep);
9690
+ } else if (InputStream[symbolCabiDispose]) {
9691
+ InputStream[symbolCabiDispose](handleEntry.rep);
9692
+ }
9693
+ }
9694
+ }
9695
+ function trampoline4(handle) {
9696
+ const handleEntry = rscTableRemove(handleTable6, handle);
9697
+ if (handleEntry.own) {
9698
+
9699
+ const rsc = captureTable6.get(handleEntry.rep);
9700
+ if (rsc) {
9701
+ if (rsc[symbolDispose]) rsc[symbolDispose]();
9702
+ captureTable6.delete(handleEntry.rep);
9703
+ } else if (Descriptor[symbolCabiDispose]) {
9704
+ Descriptor[symbolCabiDispose](handleEntry.rep);
9705
+ }
9706
+ }
9707
+ }
9708
+ let trampoline5 = _trampoline5.manuallyAsync ? new WebAssembly.Suspending(_lowerImportBackwardsCompat.bind(
9709
+ null,
9710
+ {
9711
+ trampolineIdx: 5,
9712
+ componentIdx: 0,
9713
+ isAsync: false,
9714
+ isManualAsync: _trampoline5.manuallyAsync,
9715
+ paramLiftFns: [],
9716
+ resultLowerFns: [_lowerFlatOwn.bind(null, 2)],
9717
+ funcTypeIsAsync: false,
9718
+ getCallbackFn: () => null,
9719
+ getPostReturnFn: () => null,
9720
+ isCancellable: false,
9721
+ memoryIdx: null,
9722
+ getMemoryFn: () => null,
9723
+ getReallocFn: () => null,
9724
+ importFn: _trampoline5,
9725
+ },
9726
+ )) : _lowerImportBackwardsCompat.bind(
9727
+ null,
9728
+ {
9729
+ trampolineIdx: 5,
9730
+ componentIdx: 0,
9731
+ isAsync: false,
9732
+ isManualAsync: _trampoline5.manuallyAsync,
9733
+ paramLiftFns: [],
9734
+ resultLowerFns: [_lowerFlatOwn.bind(null, 2)],
9735
+ funcTypeIsAsync: false,
9736
+ getCallbackFn: () => null,
9737
+ getPostReturnFn: () => null,
9738
+ isCancellable: false,
9739
+ memoryIdx: null,
9740
+ getMemoryFn: () => null,
9741
+ getReallocFn: () => null,
9742
+ importFn: _trampoline5,
9743
+ },
9744
+ );
9745
+ function trampoline6(handle) {
9746
+ const handleEntry = rscTableRemove(handleTable3, handle);
9747
+ if (handleEntry.own) {
9748
+
9749
+ const rsc = captureTable3.get(handleEntry.rep);
9750
+ if (rsc) {
9751
+ if (rsc[symbolDispose]) rsc[symbolDispose]();
9752
+ captureTable3.delete(handleEntry.rep);
9753
+ } else if (TerminalInput[symbolCabiDispose]) {
9754
+ TerminalInput[symbolCabiDispose](handleEntry.rep);
9755
+ }
9756
+ }
9757
+ }
9758
+ function trampoline7(handle) {
9759
+ const handleEntry = rscTableRemove(handleTable4, handle);
9760
+ if (handleEntry.own) {
9761
+
9762
+ const rsc = captureTable4.get(handleEntry.rep);
9763
+ if (rsc) {
9764
+ if (rsc[symbolDispose]) rsc[symbolDispose]();
9765
+ captureTable4.delete(handleEntry.rep);
9766
+ } else if (TerminalOutput[symbolCabiDispose]) {
9767
+ TerminalOutput[symbolCabiDispose](handleEntry.rep);
9768
+ }
9769
+ }
9770
+ }
9771
+ let trampoline8 = _trampoline8.manuallyAsync ? new WebAssembly.Suspending(_lowerImportBackwardsCompat.bind(
9772
+ null,
9773
+ {
9774
+ trampolineIdx: 8,
9775
+ componentIdx: 0,
9776
+ isAsync: false,
9777
+ isManualAsync: _trampoline8.manuallyAsync,
9778
+ paramLiftFns: [],
9779
+ resultLowerFns: [_lowerFlatOwn.bind(null, 1)],
9780
+ funcTypeIsAsync: false,
9781
+ getCallbackFn: () => null,
9782
+ getPostReturnFn: () => null,
9783
+ isCancellable: false,
9784
+ memoryIdx: null,
9785
+ getMemoryFn: () => null,
9786
+ getReallocFn: () => null,
9787
+ importFn: _trampoline8,
9788
+ },
9789
+ )) : _lowerImportBackwardsCompat.bind(
9790
+ null,
9791
+ {
9792
+ trampolineIdx: 8,
9793
+ componentIdx: 0,
9794
+ isAsync: false,
9795
+ isManualAsync: _trampoline8.manuallyAsync,
9796
+ paramLiftFns: [],
9797
+ resultLowerFns: [_lowerFlatOwn.bind(null, 1)],
9798
+ funcTypeIsAsync: false,
9799
+ getCallbackFn: () => null,
9800
+ getPostReturnFn: () => null,
9801
+ isCancellable: false,
9802
+ memoryIdx: null,
9803
+ getMemoryFn: () => null,
9804
+ getReallocFn: () => null,
9805
+ importFn: _trampoline8,
9806
+ },
9807
+ );
9808
+ let trampoline9 = _trampoline9.manuallyAsync ? new WebAssembly.Suspending(_lowerImportBackwardsCompat.bind(
9809
+ null,
9810
+ {
9811
+ trampolineIdx: 9,
9812
+ componentIdx: 0,
9813
+ isAsync: false,
9814
+ isManualAsync: _trampoline9.manuallyAsync,
9815
+ paramLiftFns: [],
9816
+ resultLowerFns: [_lowerFlatOwn.bind(null, 2)],
9817
+ funcTypeIsAsync: false,
9818
+ getCallbackFn: () => null,
9819
+ getPostReturnFn: () => null,
9820
+ isCancellable: false,
9821
+ memoryIdx: null,
9822
+ getMemoryFn: () => null,
9823
+ getReallocFn: () => null,
9824
+ importFn: _trampoline9,
9825
+ },
9826
+ )) : _lowerImportBackwardsCompat.bind(
9827
+ null,
9828
+ {
9829
+ trampolineIdx: 9,
9830
+ componentIdx: 0,
9831
+ isAsync: false,
9832
+ isManualAsync: _trampoline9.manuallyAsync,
9833
+ paramLiftFns: [],
9834
+ resultLowerFns: [_lowerFlatOwn.bind(null, 2)],
9835
+ funcTypeIsAsync: false,
9836
+ getCallbackFn: () => null,
9837
+ getPostReturnFn: () => null,
9838
+ isCancellable: false,
9839
+ memoryIdx: null,
9840
+ getMemoryFn: () => null,
9841
+ getReallocFn: () => null,
9842
+ importFn: _trampoline9,
9843
+ },
9844
+ );
9845
+ let trampoline10 = _trampoline10.manuallyAsync ? new WebAssembly.Suspending(_lowerImportBackwardsCompat.bind(
9846
+ null,
9847
+ {
9848
+ trampolineIdx: 10,
9849
+ componentIdx: 0,
9850
+ isAsync: false,
9851
+ isManualAsync: _trampoline10.manuallyAsync,
9852
+ paramLiftFns: [_liftFlatResult([['ok', null, 0, 0, 0],['err', null, 0, 0, 0],])],
9853
+ resultLowerFns: [],
9854
+ funcTypeIsAsync: false,
9855
+ getCallbackFn: () => null,
9856
+ getPostReturnFn: () => null,
9857
+ isCancellable: false,
9858
+ memoryIdx: null,
9859
+ getMemoryFn: () => null,
9860
+ getReallocFn: () => null,
9861
+ importFn: _trampoline10,
9862
+ },
9863
+ )) : _lowerImportBackwardsCompat.bind(
9864
+ null,
9865
+ {
9866
+ trampolineIdx: 10,
9867
+ componentIdx: 0,
9868
+ isAsync: false,
9869
+ isManualAsync: _trampoline10.manuallyAsync,
9870
+ paramLiftFns: [_liftFlatResult([['ok', null, 0, 0, 0],['err', null, 0, 0, 0],])],
9871
+ resultLowerFns: [],
9872
+ funcTypeIsAsync: false,
9873
+ getCallbackFn: () => null,
9874
+ getPostReturnFn: () => null,
9875
+ isCancellable: false,
9876
+ memoryIdx: null,
9877
+ getMemoryFn: () => null,
9878
+ getReallocFn: () => null,
9879
+ importFn: _trampoline10,
9880
+ },
9881
+ );
9882
+ let trampoline11 = _trampoline11.manuallyAsync ? new WebAssembly.Suspending(_lowerImportBackwardsCompat.bind(
9883
+ null,
9884
+ {
9885
+ trampolineIdx: 11,
9886
+ componentIdx: 0,
9887
+ isAsync: false,
9888
+ isManualAsync: _trampoline11.manuallyAsync,
9889
+ paramLiftFns: [],
9890
+ resultLowerFns: [_lowerFlatList({ elemLowerFn: _lowerFlatTuple.bind(null, 0), typeIdx: 0 })],
9891
+ funcTypeIsAsync: false,
9892
+ getCallbackFn: () => null,
9893
+ getPostReturnFn: () => null,
9894
+ isCancellable: false,
9895
+ memoryIdx: 0,
9896
+ getMemoryFn: () => memory0,
9897
+ getReallocFn: () => realloc0,
9898
+ importFn: _trampoline11,
9899
+ },
9900
+ )) : _lowerImportBackwardsCompat.bind(
9901
+ null,
9902
+ {
9903
+ trampolineIdx: 11,
9904
+ componentIdx: 0,
9905
+ isAsync: false,
9906
+ isManualAsync: _trampoline11.manuallyAsync,
9907
+ paramLiftFns: [],
9908
+ resultLowerFns: [_lowerFlatList({ elemLowerFn: _lowerFlatTuple.bind(null, 0), typeIdx: 0 })],
9909
+ funcTypeIsAsync: false,
9910
+ getCallbackFn: () => null,
9911
+ getPostReturnFn: () => null,
9912
+ isCancellable: false,
9913
+ memoryIdx: 0,
9914
+ getMemoryFn: () => memory0,
9915
+ getReallocFn: () => realloc0,
9916
+ importFn: _trampoline11,
9917
+ },
9918
+ );
9919
+ let trampoline12 = _trampoline12.manuallyAsync ? new WebAssembly.Suspending(_lowerImportBackwardsCompat.bind(
9920
+ null,
9921
+ {
9922
+ trampolineIdx: 12,
9923
+ componentIdx: 0,
9924
+ isAsync: false,
9925
+ isManualAsync: _trampoline12.manuallyAsync,
9926
+ paramLiftFns: [_liftFlatBorrow.bind(null, 6)],
9927
+ resultLowerFns: [_lowerFlatResult([[ 'ok', _lowerFlatFlags.bind(null, 0), 2, 1, 1 ],[ 'err', _lowerFlatEnum.bind(null, 0), 2, 1, 1 ],])],
9928
+ funcTypeIsAsync: false,
9929
+ getCallbackFn: () => null,
9930
+ getPostReturnFn: () => null,
9931
+ isCancellable: false,
9932
+ memoryIdx: 0,
9933
+ getMemoryFn: () => memory0,
9934
+ getReallocFn: () => null,
9935
+ importFn: _trampoline12,
9936
+ },
9937
+ )) : _lowerImportBackwardsCompat.bind(
9938
+ null,
9939
+ {
9940
+ trampolineIdx: 12,
9941
+ componentIdx: 0,
9942
+ isAsync: false,
9943
+ isManualAsync: _trampoline12.manuallyAsync,
9944
+ paramLiftFns: [_liftFlatBorrow.bind(null, 6)],
9945
+ resultLowerFns: [_lowerFlatResult([[ 'ok', _lowerFlatFlags.bind(null, 0), 2, 1, 1 ],[ 'err', _lowerFlatEnum.bind(null, 0), 2, 1, 1 ],])],
9946
+ funcTypeIsAsync: false,
9947
+ getCallbackFn: () => null,
9948
+ getPostReturnFn: () => null,
9949
+ isCancellable: false,
9950
+ memoryIdx: 0,
9951
+ getMemoryFn: () => memory0,
9952
+ getReallocFn: () => null,
9953
+ importFn: _trampoline12,
9954
+ },
9955
+ );
9956
+ let trampoline13 = _trampoline13.manuallyAsync ? new WebAssembly.Suspending(_lowerImportBackwardsCompat.bind(
9957
+ null,
9958
+ {
9959
+ trampolineIdx: 13,
9960
+ componentIdx: 0,
9961
+ isAsync: false,
9962
+ isManualAsync: _trampoline13.manuallyAsync,
9963
+ paramLiftFns: [_liftFlatBorrow.bind(null, 6)],
9964
+ resultLowerFns: [_lowerFlatResult([[ 'ok', _lowerFlatEnum.bind(null, 1), 2, 1, 1 ],[ 'err', _lowerFlatEnum.bind(null, 0), 2, 1, 1 ],])],
9965
+ funcTypeIsAsync: false,
9966
+ getCallbackFn: () => null,
9967
+ getPostReturnFn: () => null,
9968
+ isCancellable: false,
9969
+ memoryIdx: 0,
9970
+ getMemoryFn: () => memory0,
9971
+ getReallocFn: () => null,
9972
+ importFn: _trampoline13,
9973
+ },
9974
+ )) : _lowerImportBackwardsCompat.bind(
9975
+ null,
9976
+ {
9977
+ trampolineIdx: 13,
9978
+ componentIdx: 0,
9979
+ isAsync: false,
9980
+ isManualAsync: _trampoline13.manuallyAsync,
9981
+ paramLiftFns: [_liftFlatBorrow.bind(null, 6)],
9982
+ resultLowerFns: [_lowerFlatResult([[ 'ok', _lowerFlatEnum.bind(null, 1), 2, 1, 1 ],[ 'err', _lowerFlatEnum.bind(null, 0), 2, 1, 1 ],])],
9983
+ funcTypeIsAsync: false,
9984
+ getCallbackFn: () => null,
9985
+ getPostReturnFn: () => null,
9986
+ isCancellable: false,
9987
+ memoryIdx: 0,
9988
+ getMemoryFn: () => memory0,
9989
+ getReallocFn: () => null,
9990
+ importFn: _trampoline13,
9991
+ },
9992
+ );
9993
+ let trampoline14 = _trampoline14.manuallyAsync ? new WebAssembly.Suspending(_lowerImportBackwardsCompat.bind(
9994
+ null,
9995
+ {
9996
+ trampolineIdx: 14,
9997
+ componentIdx: 0,
9998
+ isAsync: false,
9999
+ isManualAsync: _trampoline14.manuallyAsync,
10000
+ paramLiftFns: [_liftFlatBorrow.bind(null, 6)],
10001
+ resultLowerFns: [_lowerFlatResult([[ 'ok', _lowerFlatRecord.bind(null, [['lower', _lowerFlatU64, 16, 8 ],['upper', _lowerFlatU64, 16, 8 ],]), 24, 8, 8 ],[ 'err', _lowerFlatEnum.bind(null, 0), 24, 8, 8 ],])],
10002
+ funcTypeIsAsync: false,
10003
+ getCallbackFn: () => null,
10004
+ getPostReturnFn: () => null,
10005
+ isCancellable: false,
10006
+ memoryIdx: 0,
10007
+ getMemoryFn: () => memory0,
10008
+ getReallocFn: () => null,
10009
+ importFn: _trampoline14,
10010
+ },
10011
+ )) : _lowerImportBackwardsCompat.bind(
10012
+ null,
10013
+ {
10014
+ trampolineIdx: 14,
10015
+ componentIdx: 0,
10016
+ isAsync: false,
10017
+ isManualAsync: _trampoline14.manuallyAsync,
10018
+ paramLiftFns: [_liftFlatBorrow.bind(null, 6)],
10019
+ resultLowerFns: [_lowerFlatResult([[ 'ok', _lowerFlatRecord.bind(null, [['lower', _lowerFlatU64, 16, 8 ],['upper', _lowerFlatU64, 16, 8 ],]), 24, 8, 8 ],[ 'err', _lowerFlatEnum.bind(null, 0), 24, 8, 8 ],])],
10020
+ funcTypeIsAsync: false,
10021
+ getCallbackFn: () => null,
10022
+ getPostReturnFn: () => null,
10023
+ isCancellable: false,
10024
+ memoryIdx: 0,
10025
+ getMemoryFn: () => memory0,
10026
+ getReallocFn: () => null,
10027
+ importFn: _trampoline14,
10028
+ },
10029
+ );
10030
+ let trampoline15 = _trampoline15.manuallyAsync ? new WebAssembly.Suspending(_lowerImportBackwardsCompat.bind(
10031
+ null,
10032
+ {
10033
+ trampolineIdx: 15,
10034
+ componentIdx: 0,
10035
+ isAsync: false,
10036
+ isManualAsync: _trampoline15.manuallyAsync,
10037
+ paramLiftFns: [_liftFlatBorrow.bind(null, 0)],
10038
+ resultLowerFns: [_lowerFlatOption([[ 'some', _lowerFlatEnum.bind(null, 0), 2, 1, 1 ],[ 'none', null, 2, 1, 1 ],])],
10039
+ funcTypeIsAsync: false,
10040
+ getCallbackFn: () => null,
10041
+ getPostReturnFn: () => null,
10042
+ isCancellable: false,
10043
+ memoryIdx: 0,
10044
+ getMemoryFn: () => memory0,
10045
+ getReallocFn: () => null,
10046
+ importFn: _trampoline15,
10047
+ },
10048
+ )) : _lowerImportBackwardsCompat.bind(
10049
+ null,
10050
+ {
10051
+ trampolineIdx: 15,
10052
+ componentIdx: 0,
10053
+ isAsync: false,
10054
+ isManualAsync: _trampoline15.manuallyAsync,
10055
+ paramLiftFns: [_liftFlatBorrow.bind(null, 0)],
10056
+ resultLowerFns: [_lowerFlatOption([[ 'some', _lowerFlatEnum.bind(null, 0), 2, 1, 1 ],[ 'none', null, 2, 1, 1 ],])],
10057
+ funcTypeIsAsync: false,
10058
+ getCallbackFn: () => null,
10059
+ getPostReturnFn: () => null,
10060
+ isCancellable: false,
10061
+ memoryIdx: 0,
10062
+ getMemoryFn: () => memory0,
10063
+ getReallocFn: () => null,
10064
+ importFn: _trampoline15,
10065
+ },
10066
+ );
10067
+ let trampoline16 = _trampoline16.manuallyAsync ? new WebAssembly.Suspending(_lowerImportBackwardsCompat.bind(
10068
+ null,
10069
+ {
10070
+ trampolineIdx: 16,
10071
+ componentIdx: 0,
10072
+ isAsync: false,
10073
+ isManualAsync: _trampoline16.manuallyAsync,
10074
+ paramLiftFns: [_liftFlatBorrow.bind(null, 6),_liftFlatFlags({ names: ['symlink-follow'], size32: 1, align32: 1, intSize: 1 }),_liftFlatStringUTF8],
10075
+ resultLowerFns: [_lowerFlatResult([[ 'ok', _lowerFlatRecord.bind(null, [['lower', _lowerFlatU64, 16, 8 ],['upper', _lowerFlatU64, 16, 8 ],]), 24, 8, 8 ],[ 'err', _lowerFlatEnum.bind(null, 0), 24, 8, 8 ],])],
10076
+ funcTypeIsAsync: false,
10077
+ getCallbackFn: () => null,
10078
+ getPostReturnFn: () => null,
10079
+ isCancellable: false,
10080
+ memoryIdx: 0,
10081
+ getMemoryFn: () => memory0,
10082
+ getReallocFn: () => null,
10083
+ importFn: _trampoline16,
10084
+ },
10085
+ )) : _lowerImportBackwardsCompat.bind(
10086
+ null,
10087
+ {
10088
+ trampolineIdx: 16,
10089
+ componentIdx: 0,
10090
+ isAsync: false,
10091
+ isManualAsync: _trampoline16.manuallyAsync,
10092
+ paramLiftFns: [_liftFlatBorrow.bind(null, 6),_liftFlatFlags({ names: ['symlink-follow'], size32: 1, align32: 1, intSize: 1 }),_liftFlatStringUTF8],
10093
+ resultLowerFns: [_lowerFlatResult([[ 'ok', _lowerFlatRecord.bind(null, [['lower', _lowerFlatU64, 16, 8 ],['upper', _lowerFlatU64, 16, 8 ],]), 24, 8, 8 ],[ 'err', _lowerFlatEnum.bind(null, 0), 24, 8, 8 ],])],
10094
+ funcTypeIsAsync: false,
10095
+ getCallbackFn: () => null,
10096
+ getPostReturnFn: () => null,
10097
+ isCancellable: false,
10098
+ memoryIdx: 0,
10099
+ getMemoryFn: () => memory0,
10100
+ getReallocFn: () => null,
10101
+ importFn: _trampoline16,
10102
+ },
10103
+ );
10104
+ let trampoline17 = _trampoline17.manuallyAsync ? new WebAssembly.Suspending(_lowerImportBackwardsCompat.bind(
10105
+ null,
10106
+ {
10107
+ trampolineIdx: 17,
10108
+ componentIdx: 0,
10109
+ isAsync: false,
10110
+ isManualAsync: _trampoline17.manuallyAsync,
10111
+ paramLiftFns: [_liftFlatBorrow.bind(null, 6),_liftFlatU64],
10112
+ resultLowerFns: [_lowerFlatResult([[ 'ok', _lowerFlatOwn.bind(null, 1), 8, 4, 4 ],[ 'err', _lowerFlatEnum.bind(null, 0), 8, 4, 4 ],])],
10113
+ funcTypeIsAsync: false,
10114
+ getCallbackFn: () => null,
10115
+ getPostReturnFn: () => null,
10116
+ isCancellable: false,
10117
+ memoryIdx: 0,
10118
+ getMemoryFn: () => memory0,
10119
+ getReallocFn: () => null,
10120
+ importFn: _trampoline17,
10121
+ },
10122
+ )) : _lowerImportBackwardsCompat.bind(
10123
+ null,
10124
+ {
10125
+ trampolineIdx: 17,
10126
+ componentIdx: 0,
10127
+ isAsync: false,
10128
+ isManualAsync: _trampoline17.manuallyAsync,
10129
+ paramLiftFns: [_liftFlatBorrow.bind(null, 6),_liftFlatU64],
10130
+ resultLowerFns: [_lowerFlatResult([[ 'ok', _lowerFlatOwn.bind(null, 1), 8, 4, 4 ],[ 'err', _lowerFlatEnum.bind(null, 0), 8, 4, 4 ],])],
10131
+ funcTypeIsAsync: false,
10132
+ getCallbackFn: () => null,
10133
+ getPostReturnFn: () => null,
10134
+ isCancellable: false,
10135
+ memoryIdx: 0,
10136
+ getMemoryFn: () => memory0,
10137
+ getReallocFn: () => null,
10138
+ importFn: _trampoline17,
10139
+ },
10140
+ );
10141
+ let trampoline18 = _trampoline18.manuallyAsync ? new WebAssembly.Suspending(_lowerImportBackwardsCompat.bind(
10142
+ null,
10143
+ {
10144
+ trampolineIdx: 18,
10145
+ componentIdx: 0,
10146
+ isAsync: false,
10147
+ isManualAsync: _trampoline18.manuallyAsync,
10148
+ paramLiftFns: [_liftFlatBorrow.bind(null, 6),_liftFlatU64],
10149
+ resultLowerFns: [_lowerFlatResult([[ 'ok', _lowerFlatOwn.bind(null, 2), 8, 4, 4 ],[ 'err', _lowerFlatEnum.bind(null, 0), 8, 4, 4 ],])],
10150
+ funcTypeIsAsync: false,
10151
+ getCallbackFn: () => null,
10152
+ getPostReturnFn: () => null,
10153
+ isCancellable: false,
10154
+ memoryIdx: 0,
10155
+ getMemoryFn: () => memory0,
10156
+ getReallocFn: () => null,
10157
+ importFn: _trampoline18,
10158
+ },
10159
+ )) : _lowerImportBackwardsCompat.bind(
10160
+ null,
10161
+ {
10162
+ trampolineIdx: 18,
10163
+ componentIdx: 0,
10164
+ isAsync: false,
10165
+ isManualAsync: _trampoline18.manuallyAsync,
10166
+ paramLiftFns: [_liftFlatBorrow.bind(null, 6),_liftFlatU64],
10167
+ resultLowerFns: [_lowerFlatResult([[ 'ok', _lowerFlatOwn.bind(null, 2), 8, 4, 4 ],[ 'err', _lowerFlatEnum.bind(null, 0), 8, 4, 4 ],])],
10168
+ funcTypeIsAsync: false,
10169
+ getCallbackFn: () => null,
10170
+ getPostReturnFn: () => null,
10171
+ isCancellable: false,
10172
+ memoryIdx: 0,
10173
+ getMemoryFn: () => memory0,
10174
+ getReallocFn: () => null,
10175
+ importFn: _trampoline18,
10176
+ },
10177
+ );
10178
+ let trampoline19 = _trampoline19.manuallyAsync ? new WebAssembly.Suspending(_lowerImportBackwardsCompat.bind(
10179
+ null,
10180
+ {
10181
+ trampolineIdx: 19,
10182
+ componentIdx: 0,
10183
+ isAsync: false,
10184
+ isManualAsync: _trampoline19.manuallyAsync,
10185
+ paramLiftFns: [_liftFlatBorrow.bind(null, 6)],
10186
+ resultLowerFns: [_lowerFlatResult([[ 'ok', _lowerFlatOwn.bind(null, 2), 8, 4, 4 ],[ 'err', _lowerFlatEnum.bind(null, 0), 8, 4, 4 ],])],
10187
+ funcTypeIsAsync: false,
10188
+ getCallbackFn: () => null,
10189
+ getPostReturnFn: () => null,
10190
+ isCancellable: false,
10191
+ memoryIdx: 0,
10192
+ getMemoryFn: () => memory0,
10193
+ getReallocFn: () => null,
10194
+ importFn: _trampoline19,
10195
+ },
10196
+ )) : _lowerImportBackwardsCompat.bind(
10197
+ null,
10198
+ {
10199
+ trampolineIdx: 19,
10200
+ componentIdx: 0,
10201
+ isAsync: false,
10202
+ isManualAsync: _trampoline19.manuallyAsync,
10203
+ paramLiftFns: [_liftFlatBorrow.bind(null, 6)],
10204
+ resultLowerFns: [_lowerFlatResult([[ 'ok', _lowerFlatOwn.bind(null, 2), 8, 4, 4 ],[ 'err', _lowerFlatEnum.bind(null, 0), 8, 4, 4 ],])],
10205
+ funcTypeIsAsync: false,
10206
+ getCallbackFn: () => null,
10207
+ getPostReturnFn: () => null,
10208
+ isCancellable: false,
10209
+ memoryIdx: 0,
10210
+ getMemoryFn: () => memory0,
10211
+ getReallocFn: () => null,
10212
+ importFn: _trampoline19,
10213
+ },
10214
+ );
10215
+ let trampoline20 = _trampoline20.manuallyAsync ? new WebAssembly.Suspending(_lowerImportBackwardsCompat.bind(
10216
+ null,
10217
+ {
10218
+ trampolineIdx: 20,
10219
+ componentIdx: 0,
10220
+ isAsync: false,
10221
+ isManualAsync: _trampoline20.manuallyAsync,
10222
+ paramLiftFns: [_liftFlatBorrow.bind(null, 6)],
10223
+ resultLowerFns: [_lowerFlatResult([[ 'ok', _lowerFlatOwn.bind(null, 5), 8, 4, 4 ],[ 'err', _lowerFlatEnum.bind(null, 0), 8, 4, 4 ],])],
10224
+ funcTypeIsAsync: false,
10225
+ getCallbackFn: () => null,
10226
+ getPostReturnFn: () => null,
10227
+ isCancellable: false,
10228
+ memoryIdx: 0,
10229
+ getMemoryFn: () => memory0,
10230
+ getReallocFn: () => null,
10231
+ importFn: _trampoline20,
10232
+ },
10233
+ )) : _lowerImportBackwardsCompat.bind(
10234
+ null,
10235
+ {
10236
+ trampolineIdx: 20,
10237
+ componentIdx: 0,
10238
+ isAsync: false,
10239
+ isManualAsync: _trampoline20.manuallyAsync,
10240
+ paramLiftFns: [_liftFlatBorrow.bind(null, 6)],
10241
+ resultLowerFns: [_lowerFlatResult([[ 'ok', _lowerFlatOwn.bind(null, 5), 8, 4, 4 ],[ 'err', _lowerFlatEnum.bind(null, 0), 8, 4, 4 ],])],
10242
+ funcTypeIsAsync: false,
10243
+ getCallbackFn: () => null,
10244
+ getPostReturnFn: () => null,
10245
+ isCancellable: false,
10246
+ memoryIdx: 0,
10247
+ getMemoryFn: () => memory0,
10248
+ getReallocFn: () => null,
10249
+ importFn: _trampoline20,
10250
+ },
10251
+ );
10252
+ let trampoline21 = _trampoline21.manuallyAsync ? new WebAssembly.Suspending(_lowerImportBackwardsCompat.bind(
10253
+ null,
10254
+ {
10255
+ trampolineIdx: 21,
10256
+ componentIdx: 0,
10257
+ isAsync: false,
10258
+ isManualAsync: _trampoline21.manuallyAsync,
10259
+ paramLiftFns: [_liftFlatBorrow.bind(null, 6)],
10260
+ resultLowerFns: [_lowerFlatResult([[ 'ok', _lowerFlatRecord.bind(null, [['type', _lowerFlatEnum.bind(null, 1), 96, 8 ],['linkCount', _lowerFlatU64, 96, 8 ],['size', _lowerFlatU64, 96, 8 ],['dataAccessTimestamp', _lowerFlatOption([[ 'some', _lowerFlatRecord.bind(null, [['seconds', _lowerFlatU64, 16, 8 ],['nanoseconds', _lowerFlatU32, 16, 8 ],]), 24, 8, 8 ],[ 'none', null, 24, 8, 8 ],]), 96, 8 ],['dataModificationTimestamp', _lowerFlatOption([[ 'some', _lowerFlatRecord.bind(null, [['seconds', _lowerFlatU64, 16, 8 ],['nanoseconds', _lowerFlatU32, 16, 8 ],]), 24, 8, 8 ],[ 'none', null, 24, 8, 8 ],]), 96, 8 ],['statusChangeTimestamp', _lowerFlatOption([[ 'some', _lowerFlatRecord.bind(null, [['seconds', _lowerFlatU64, 16, 8 ],['nanoseconds', _lowerFlatU32, 16, 8 ],]), 24, 8, 8 ],[ 'none', null, 24, 8, 8 ],]), 96, 8 ],]), 104, 8, 8 ],[ 'err', _lowerFlatEnum.bind(null, 0), 104, 8, 8 ],])],
10261
+ funcTypeIsAsync: false,
10262
+ getCallbackFn: () => null,
10263
+ getPostReturnFn: () => null,
10264
+ isCancellable: false,
10265
+ memoryIdx: 0,
10266
+ getMemoryFn: () => memory0,
10267
+ getReallocFn: () => null,
10268
+ importFn: _trampoline21,
10269
+ },
10270
+ )) : _lowerImportBackwardsCompat.bind(
10271
+ null,
10272
+ {
10273
+ trampolineIdx: 21,
10274
+ componentIdx: 0,
10275
+ isAsync: false,
10276
+ isManualAsync: _trampoline21.manuallyAsync,
10277
+ paramLiftFns: [_liftFlatBorrow.bind(null, 6)],
10278
+ resultLowerFns: [_lowerFlatResult([[ 'ok', _lowerFlatRecord.bind(null, [['type', _lowerFlatEnum.bind(null, 1), 96, 8 ],['linkCount', _lowerFlatU64, 96, 8 ],['size', _lowerFlatU64, 96, 8 ],['dataAccessTimestamp', _lowerFlatOption([[ 'some', _lowerFlatRecord.bind(null, [['seconds', _lowerFlatU64, 16, 8 ],['nanoseconds', _lowerFlatU32, 16, 8 ],]), 24, 8, 8 ],[ 'none', null, 24, 8, 8 ],]), 96, 8 ],['dataModificationTimestamp', _lowerFlatOption([[ 'some', _lowerFlatRecord.bind(null, [['seconds', _lowerFlatU64, 16, 8 ],['nanoseconds', _lowerFlatU32, 16, 8 ],]), 24, 8, 8 ],[ 'none', null, 24, 8, 8 ],]), 96, 8 ],['statusChangeTimestamp', _lowerFlatOption([[ 'some', _lowerFlatRecord.bind(null, [['seconds', _lowerFlatU64, 16, 8 ],['nanoseconds', _lowerFlatU32, 16, 8 ],]), 24, 8, 8 ],[ 'none', null, 24, 8, 8 ],]), 96, 8 ],]), 104, 8, 8 ],[ 'err', _lowerFlatEnum.bind(null, 0), 104, 8, 8 ],])],
10279
+ funcTypeIsAsync: false,
10280
+ getCallbackFn: () => null,
10281
+ getPostReturnFn: () => null,
10282
+ isCancellable: false,
10283
+ memoryIdx: 0,
10284
+ getMemoryFn: () => memory0,
10285
+ getReallocFn: () => null,
10286
+ importFn: _trampoline21,
10287
+ },
10288
+ );
10289
+ let trampoline22 = _trampoline22.manuallyAsync ? new WebAssembly.Suspending(_lowerImportBackwardsCompat.bind(
10290
+ null,
10291
+ {
10292
+ trampolineIdx: 22,
10293
+ componentIdx: 0,
10294
+ isAsync: false,
10295
+ isManualAsync: _trampoline22.manuallyAsync,
10296
+ paramLiftFns: [_liftFlatBorrow.bind(null, 6),_liftFlatFlags({ names: ['symlink-follow'], size32: 1, align32: 1, intSize: 1 }),_liftFlatStringUTF8],
10297
+ resultLowerFns: [_lowerFlatResult([[ 'ok', _lowerFlatRecord.bind(null, [['type', _lowerFlatEnum.bind(null, 1), 96, 8 ],['linkCount', _lowerFlatU64, 96, 8 ],['size', _lowerFlatU64, 96, 8 ],['dataAccessTimestamp', _lowerFlatOption([[ 'some', _lowerFlatRecord.bind(null, [['seconds', _lowerFlatU64, 16, 8 ],['nanoseconds', _lowerFlatU32, 16, 8 ],]), 24, 8, 8 ],[ 'none', null, 24, 8, 8 ],]), 96, 8 ],['dataModificationTimestamp', _lowerFlatOption([[ 'some', _lowerFlatRecord.bind(null, [['seconds', _lowerFlatU64, 16, 8 ],['nanoseconds', _lowerFlatU32, 16, 8 ],]), 24, 8, 8 ],[ 'none', null, 24, 8, 8 ],]), 96, 8 ],['statusChangeTimestamp', _lowerFlatOption([[ 'some', _lowerFlatRecord.bind(null, [['seconds', _lowerFlatU64, 16, 8 ],['nanoseconds', _lowerFlatU32, 16, 8 ],]), 24, 8, 8 ],[ 'none', null, 24, 8, 8 ],]), 96, 8 ],]), 104, 8, 8 ],[ 'err', _lowerFlatEnum.bind(null, 0), 104, 8, 8 ],])],
10298
+ funcTypeIsAsync: false,
10299
+ getCallbackFn: () => null,
10300
+ getPostReturnFn: () => null,
10301
+ isCancellable: false,
10302
+ memoryIdx: 0,
10303
+ getMemoryFn: () => memory0,
10304
+ getReallocFn: () => null,
10305
+ importFn: _trampoline22,
10306
+ },
10307
+ )) : _lowerImportBackwardsCompat.bind(
10308
+ null,
10309
+ {
10310
+ trampolineIdx: 22,
10311
+ componentIdx: 0,
10312
+ isAsync: false,
10313
+ isManualAsync: _trampoline22.manuallyAsync,
10314
+ paramLiftFns: [_liftFlatBorrow.bind(null, 6),_liftFlatFlags({ names: ['symlink-follow'], size32: 1, align32: 1, intSize: 1 }),_liftFlatStringUTF8],
10315
+ resultLowerFns: [_lowerFlatResult([[ 'ok', _lowerFlatRecord.bind(null, [['type', _lowerFlatEnum.bind(null, 1), 96, 8 ],['linkCount', _lowerFlatU64, 96, 8 ],['size', _lowerFlatU64, 96, 8 ],['dataAccessTimestamp', _lowerFlatOption([[ 'some', _lowerFlatRecord.bind(null, [['seconds', _lowerFlatU64, 16, 8 ],['nanoseconds', _lowerFlatU32, 16, 8 ],]), 24, 8, 8 ],[ 'none', null, 24, 8, 8 ],]), 96, 8 ],['dataModificationTimestamp', _lowerFlatOption([[ 'some', _lowerFlatRecord.bind(null, [['seconds', _lowerFlatU64, 16, 8 ],['nanoseconds', _lowerFlatU32, 16, 8 ],]), 24, 8, 8 ],[ 'none', null, 24, 8, 8 ],]), 96, 8 ],['statusChangeTimestamp', _lowerFlatOption([[ 'some', _lowerFlatRecord.bind(null, [['seconds', _lowerFlatU64, 16, 8 ],['nanoseconds', _lowerFlatU32, 16, 8 ],]), 24, 8, 8 ],[ 'none', null, 24, 8, 8 ],]), 96, 8 ],]), 104, 8, 8 ],[ 'err', _lowerFlatEnum.bind(null, 0), 104, 8, 8 ],])],
10316
+ funcTypeIsAsync: false,
10317
+ getCallbackFn: () => null,
10318
+ getPostReturnFn: () => null,
10319
+ isCancellable: false,
10320
+ memoryIdx: 0,
10321
+ getMemoryFn: () => memory0,
10322
+ getReallocFn: () => null,
10323
+ importFn: _trampoline22,
10324
+ },
10325
+ );
10326
+ let trampoline23 = _trampoline23.manuallyAsync ? new WebAssembly.Suspending(_lowerImportBackwardsCompat.bind(
10327
+ null,
10328
+ {
10329
+ trampolineIdx: 23,
10330
+ componentIdx: 0,
10331
+ isAsync: false,
10332
+ isManualAsync: _trampoline23.manuallyAsync,
10333
+ paramLiftFns: [_liftFlatBorrow.bind(null, 6),_liftFlatFlags({ names: ['symlink-follow'], size32: 1, align32: 1, intSize: 1 }),_liftFlatStringUTF8,_liftFlatFlags({ names: ['create','directory','exclusive','truncate'], size32: 1, align32: 1, intSize: 1 }),_liftFlatFlags({ names: ['read','write','file-integrity-sync','data-integrity-sync','requested-write-sync','mutate-directory'], size32: 1, align32: 1, intSize: 1 })],
10334
+ resultLowerFns: [_lowerFlatResult([[ 'ok', _lowerFlatOwn.bind(null, 6), 8, 4, 4 ],[ 'err', _lowerFlatEnum.bind(null, 0), 8, 4, 4 ],])],
10335
+ funcTypeIsAsync: false,
10336
+ getCallbackFn: () => null,
10337
+ getPostReturnFn: () => null,
10338
+ isCancellable: false,
10339
+ memoryIdx: 0,
10340
+ getMemoryFn: () => memory0,
10341
+ getReallocFn: () => null,
10342
+ importFn: _trampoline23,
10343
+ },
10344
+ )) : _lowerImportBackwardsCompat.bind(
10345
+ null,
10346
+ {
10347
+ trampolineIdx: 23,
10348
+ componentIdx: 0,
10349
+ isAsync: false,
10350
+ isManualAsync: _trampoline23.manuallyAsync,
10351
+ paramLiftFns: [_liftFlatBorrow.bind(null, 6),_liftFlatFlags({ names: ['symlink-follow'], size32: 1, align32: 1, intSize: 1 }),_liftFlatStringUTF8,_liftFlatFlags({ names: ['create','directory','exclusive','truncate'], size32: 1, align32: 1, intSize: 1 }),_liftFlatFlags({ names: ['read','write','file-integrity-sync','data-integrity-sync','requested-write-sync','mutate-directory'], size32: 1, align32: 1, intSize: 1 })],
10352
+ resultLowerFns: [_lowerFlatResult([[ 'ok', _lowerFlatOwn.bind(null, 6), 8, 4, 4 ],[ 'err', _lowerFlatEnum.bind(null, 0), 8, 4, 4 ],])],
10353
+ funcTypeIsAsync: false,
10354
+ getCallbackFn: () => null,
10355
+ getPostReturnFn: () => null,
10356
+ isCancellable: false,
10357
+ memoryIdx: 0,
10358
+ getMemoryFn: () => memory0,
10359
+ getReallocFn: () => null,
10360
+ importFn: _trampoline23,
10361
+ },
10362
+ );
10363
+ let trampoline24 = _trampoline24.manuallyAsync ? new WebAssembly.Suspending(_lowerImportBackwardsCompat.bind(
10364
+ null,
10365
+ {
10366
+ trampolineIdx: 24,
10367
+ componentIdx: 0,
10368
+ isAsync: false,
10369
+ isManualAsync: _trampoline24.manuallyAsync,
10370
+ paramLiftFns: [_liftFlatBorrow.bind(null, 5)],
10371
+ resultLowerFns: [_lowerFlatResult([[ 'ok', _lowerFlatOption([[ 'some', _lowerFlatRecord.bind(null, [['type', _lowerFlatEnum.bind(null, 1), 12, 4 ],['name', _lowerFlatStringUTF8, 12, 4 ],]), 16, 4, 4 ],[ 'none', null, 16, 4, 4 ],]), 20, 4, 4 ],[ 'err', _lowerFlatEnum.bind(null, 0), 20, 4, 4 ],])],
10372
+ funcTypeIsAsync: false,
10373
+ getCallbackFn: () => null,
10374
+ getPostReturnFn: () => null,
10375
+ isCancellable: false,
10376
+ memoryIdx: 0,
10377
+ getMemoryFn: () => memory0,
10378
+ getReallocFn: () => realloc0,
10379
+ importFn: _trampoline24,
10380
+ },
10381
+ )) : _lowerImportBackwardsCompat.bind(
10382
+ null,
10383
+ {
10384
+ trampolineIdx: 24,
10385
+ componentIdx: 0,
10386
+ isAsync: false,
10387
+ isManualAsync: _trampoline24.manuallyAsync,
10388
+ paramLiftFns: [_liftFlatBorrow.bind(null, 5)],
10389
+ resultLowerFns: [_lowerFlatResult([[ 'ok', _lowerFlatOption([[ 'some', _lowerFlatRecord.bind(null, [['type', _lowerFlatEnum.bind(null, 1), 12, 4 ],['name', _lowerFlatStringUTF8, 12, 4 ],]), 16, 4, 4 ],[ 'none', null, 16, 4, 4 ],]), 20, 4, 4 ],[ 'err', _lowerFlatEnum.bind(null, 0), 20, 4, 4 ],])],
10390
+ funcTypeIsAsync: false,
10391
+ getCallbackFn: () => null,
10392
+ getPostReturnFn: () => null,
10393
+ isCancellable: false,
10394
+ memoryIdx: 0,
10395
+ getMemoryFn: () => memory0,
10396
+ getReallocFn: () => realloc0,
10397
+ importFn: _trampoline24,
10398
+ },
10399
+ );
10400
+ let trampoline25 = _trampoline25.manuallyAsync ? new WebAssembly.Suspending(_lowerImportBackwardsCompat.bind(
10401
+ null,
10402
+ {
10403
+ trampolineIdx: 25,
10404
+ componentIdx: 0,
10405
+ isAsync: false,
10406
+ isManualAsync: _trampoline25.manuallyAsync,
10407
+ paramLiftFns: [_liftFlatBorrow.bind(null, 1),_liftFlatU64],
10408
+ resultLowerFns: [_lowerFlatResult([[ 'ok', _lowerFlatList({ elemLowerFn: _lowerFlatU8, typeIdx: 1 }), 12, 4, 4 ],[ 'err', _lowerFlatVariant([[ 'last-operation-failed', _lowerFlatOwn.bind(null, 0), 8, 4, 4 ],[ 'closed', null, 8, 4, 4 ],]), 12, 4, 4 ],])],
10409
+ funcTypeIsAsync: false,
10410
+ getCallbackFn: () => null,
10411
+ getPostReturnFn: () => null,
10412
+ isCancellable: false,
10413
+ memoryIdx: 0,
10414
+ getMemoryFn: () => memory0,
10415
+ getReallocFn: () => realloc0,
10416
+ importFn: _trampoline25,
10417
+ },
10418
+ )) : _lowerImportBackwardsCompat.bind(
10419
+ null,
10420
+ {
10421
+ trampolineIdx: 25,
10422
+ componentIdx: 0,
10423
+ isAsync: false,
10424
+ isManualAsync: _trampoline25.manuallyAsync,
10425
+ paramLiftFns: [_liftFlatBorrow.bind(null, 1),_liftFlatU64],
10426
+ resultLowerFns: [_lowerFlatResult([[ 'ok', _lowerFlatList({ elemLowerFn: _lowerFlatU8, typeIdx: 1 }), 12, 4, 4 ],[ 'err', _lowerFlatVariant([[ 'last-operation-failed', _lowerFlatOwn.bind(null, 0), 8, 4, 4 ],[ 'closed', null, 8, 4, 4 ],]), 12, 4, 4 ],])],
10427
+ funcTypeIsAsync: false,
10428
+ getCallbackFn: () => null,
10429
+ getPostReturnFn: () => null,
10430
+ isCancellable: false,
10431
+ memoryIdx: 0,
10432
+ getMemoryFn: () => memory0,
10433
+ getReallocFn: () => realloc0,
10434
+ importFn: _trampoline25,
10435
+ },
10436
+ );
10437
+ let trampoline26 = _trampoline26.manuallyAsync ? new WebAssembly.Suspending(_lowerImportBackwardsCompat.bind(
10438
+ null,
10439
+ {
10440
+ trampolineIdx: 26,
10441
+ componentIdx: 0,
10442
+ isAsync: false,
10443
+ isManualAsync: _trampoline26.manuallyAsync,
10444
+ paramLiftFns: [_liftFlatBorrow.bind(null, 1),_liftFlatU64],
10445
+ resultLowerFns: [_lowerFlatResult([[ 'ok', _lowerFlatList({ elemLowerFn: _lowerFlatU8, typeIdx: 1 }), 12, 4, 4 ],[ 'err', _lowerFlatVariant([[ 'last-operation-failed', _lowerFlatOwn.bind(null, 0), 8, 4, 4 ],[ 'closed', null, 8, 4, 4 ],]), 12, 4, 4 ],])],
10446
+ funcTypeIsAsync: false,
10447
+ getCallbackFn: () => null,
10448
+ getPostReturnFn: () => null,
10449
+ isCancellable: false,
10450
+ memoryIdx: 0,
10451
+ getMemoryFn: () => memory0,
10452
+ getReallocFn: () => realloc0,
10453
+ importFn: _trampoline26,
10454
+ },
10455
+ )) : _lowerImportBackwardsCompat.bind(
10456
+ null,
10457
+ {
10458
+ trampolineIdx: 26,
10459
+ componentIdx: 0,
10460
+ isAsync: false,
10461
+ isManualAsync: _trampoline26.manuallyAsync,
10462
+ paramLiftFns: [_liftFlatBorrow.bind(null, 1),_liftFlatU64],
10463
+ resultLowerFns: [_lowerFlatResult([[ 'ok', _lowerFlatList({ elemLowerFn: _lowerFlatU8, typeIdx: 1 }), 12, 4, 4 ],[ 'err', _lowerFlatVariant([[ 'last-operation-failed', _lowerFlatOwn.bind(null, 0), 8, 4, 4 ],[ 'closed', null, 8, 4, 4 ],]), 12, 4, 4 ],])],
10464
+ funcTypeIsAsync: false,
10465
+ getCallbackFn: () => null,
10466
+ getPostReturnFn: () => null,
10467
+ isCancellable: false,
10468
+ memoryIdx: 0,
10469
+ getMemoryFn: () => memory0,
10470
+ getReallocFn: () => realloc0,
10471
+ importFn: _trampoline26,
10472
+ },
10473
+ );
10474
+ let trampoline27 = _trampoline27.manuallyAsync ? new WebAssembly.Suspending(_lowerImportBackwardsCompat.bind(
10475
+ null,
10476
+ {
10477
+ trampolineIdx: 27,
10478
+ componentIdx: 0,
10479
+ isAsync: false,
10480
+ isManualAsync: _trampoline27.manuallyAsync,
10481
+ paramLiftFns: [_liftFlatBorrow.bind(null, 2)],
10482
+ resultLowerFns: [_lowerFlatResult([[ 'ok', _lowerFlatU64, 16, 8, 8 ],[ 'err', _lowerFlatVariant([[ 'last-operation-failed', _lowerFlatOwn.bind(null, 0), 8, 4, 4 ],[ 'closed', null, 8, 4, 4 ],]), 16, 8, 8 ],])],
10483
+ funcTypeIsAsync: false,
10484
+ getCallbackFn: () => null,
10485
+ getPostReturnFn: () => null,
10486
+ isCancellable: false,
10487
+ memoryIdx: 0,
10488
+ getMemoryFn: () => memory0,
10489
+ getReallocFn: () => null,
10490
+ importFn: _trampoline27,
10491
+ },
10492
+ )) : _lowerImportBackwardsCompat.bind(
10493
+ null,
10494
+ {
10495
+ trampolineIdx: 27,
10496
+ componentIdx: 0,
10497
+ isAsync: false,
10498
+ isManualAsync: _trampoline27.manuallyAsync,
10499
+ paramLiftFns: [_liftFlatBorrow.bind(null, 2)],
10500
+ resultLowerFns: [_lowerFlatResult([[ 'ok', _lowerFlatU64, 16, 8, 8 ],[ 'err', _lowerFlatVariant([[ 'last-operation-failed', _lowerFlatOwn.bind(null, 0), 8, 4, 4 ],[ 'closed', null, 8, 4, 4 ],]), 16, 8, 8 ],])],
10501
+ funcTypeIsAsync: false,
10502
+ getCallbackFn: () => null,
10503
+ getPostReturnFn: () => null,
10504
+ isCancellable: false,
10505
+ memoryIdx: 0,
10506
+ getMemoryFn: () => memory0,
10507
+ getReallocFn: () => null,
10508
+ importFn: _trampoline27,
10509
+ },
10510
+ );
10511
+ let trampoline28 = _trampoline28.manuallyAsync ? new WebAssembly.Suspending(_lowerImportBackwardsCompat.bind(
10512
+ null,
10513
+ {
10514
+ trampolineIdx: 28,
10515
+ componentIdx: 0,
10516
+ isAsync: false,
10517
+ isManualAsync: _trampoline28.manuallyAsync,
10518
+ paramLiftFns: [_liftFlatBorrow.bind(null, 2),_liftFlatList({ elemLiftFn: _liftFlatU8, align32: 1, size32: 1 })],
10519
+ resultLowerFns: [_lowerFlatResult([[ 'ok', null, 12, 4, 4 ],[ 'err', _lowerFlatVariant([[ 'last-operation-failed', _lowerFlatOwn.bind(null, 0), 8, 4, 4 ],[ 'closed', null, 8, 4, 4 ],]), 12, 4, 4 ],])],
10520
+ funcTypeIsAsync: false,
10521
+ getCallbackFn: () => null,
10522
+ getPostReturnFn: () => null,
10523
+ isCancellable: false,
10524
+ memoryIdx: 0,
10525
+ getMemoryFn: () => memory0,
10526
+ getReallocFn: () => null,
10527
+ importFn: _trampoline28,
10528
+ },
10529
+ )) : _lowerImportBackwardsCompat.bind(
10530
+ null,
10531
+ {
10532
+ trampolineIdx: 28,
10533
+ componentIdx: 0,
10534
+ isAsync: false,
10535
+ isManualAsync: _trampoline28.manuallyAsync,
10536
+ paramLiftFns: [_liftFlatBorrow.bind(null, 2),_liftFlatList({ elemLiftFn: _liftFlatU8, align32: 1, size32: 1 })],
10537
+ resultLowerFns: [_lowerFlatResult([[ 'ok', null, 12, 4, 4 ],[ 'err', _lowerFlatVariant([[ 'last-operation-failed', _lowerFlatOwn.bind(null, 0), 8, 4, 4 ],[ 'closed', null, 8, 4, 4 ],]), 12, 4, 4 ],])],
10538
+ funcTypeIsAsync: false,
10539
+ getCallbackFn: () => null,
10540
+ getPostReturnFn: () => null,
10541
+ isCancellable: false,
10542
+ memoryIdx: 0,
10543
+ getMemoryFn: () => memory0,
10544
+ getReallocFn: () => null,
10545
+ importFn: _trampoline28,
10546
+ },
10547
+ );
10548
+ let trampoline29 = _trampoline29.manuallyAsync ? new WebAssembly.Suspending(_lowerImportBackwardsCompat.bind(
10549
+ null,
10550
+ {
10551
+ trampolineIdx: 29,
10552
+ componentIdx: 0,
10553
+ isAsync: false,
10554
+ isManualAsync: _trampoline29.manuallyAsync,
10555
+ paramLiftFns: [_liftFlatBorrow.bind(null, 2),_liftFlatList({ elemLiftFn: _liftFlatU8, align32: 1, size32: 1 })],
10556
+ resultLowerFns: [_lowerFlatResult([[ 'ok', null, 12, 4, 4 ],[ 'err', _lowerFlatVariant([[ 'last-operation-failed', _lowerFlatOwn.bind(null, 0), 8, 4, 4 ],[ 'closed', null, 8, 4, 4 ],]), 12, 4, 4 ],])],
10557
+ funcTypeIsAsync: false,
10558
+ getCallbackFn: () => null,
10559
+ getPostReturnFn: () => null,
10560
+ isCancellable: false,
10561
+ memoryIdx: 0,
10562
+ getMemoryFn: () => memory0,
10563
+ getReallocFn: () => null,
10564
+ importFn: _trampoline29,
10565
+ },
10566
+ )) : _lowerImportBackwardsCompat.bind(
10567
+ null,
10568
+ {
10569
+ trampolineIdx: 29,
10570
+ componentIdx: 0,
10571
+ isAsync: false,
10572
+ isManualAsync: _trampoline29.manuallyAsync,
10573
+ paramLiftFns: [_liftFlatBorrow.bind(null, 2),_liftFlatList({ elemLiftFn: _liftFlatU8, align32: 1, size32: 1 })],
10574
+ resultLowerFns: [_lowerFlatResult([[ 'ok', null, 12, 4, 4 ],[ 'err', _lowerFlatVariant([[ 'last-operation-failed', _lowerFlatOwn.bind(null, 0), 8, 4, 4 ],[ 'closed', null, 8, 4, 4 ],]), 12, 4, 4 ],])],
10575
+ funcTypeIsAsync: false,
10576
+ getCallbackFn: () => null,
10577
+ getPostReturnFn: () => null,
10578
+ isCancellable: false,
10579
+ memoryIdx: 0,
10580
+ getMemoryFn: () => memory0,
10581
+ getReallocFn: () => null,
10582
+ importFn: _trampoline29,
10583
+ },
10584
+ );
10585
+ let trampoline30 = _trampoline30.manuallyAsync ? new WebAssembly.Suspending(_lowerImportBackwardsCompat.bind(
10586
+ null,
10587
+ {
10588
+ trampolineIdx: 30,
10589
+ componentIdx: 0,
10590
+ isAsync: false,
10591
+ isManualAsync: _trampoline30.manuallyAsync,
10592
+ paramLiftFns: [_liftFlatBorrow.bind(null, 2)],
10593
+ resultLowerFns: [_lowerFlatResult([[ 'ok', null, 12, 4, 4 ],[ 'err', _lowerFlatVariant([[ 'last-operation-failed', _lowerFlatOwn.bind(null, 0), 8, 4, 4 ],[ 'closed', null, 8, 4, 4 ],]), 12, 4, 4 ],])],
10594
+ funcTypeIsAsync: false,
10595
+ getCallbackFn: () => null,
10596
+ getPostReturnFn: () => null,
10597
+ isCancellable: false,
10598
+ memoryIdx: 0,
10599
+ getMemoryFn: () => memory0,
10600
+ getReallocFn: () => null,
10601
+ importFn: _trampoline30,
10602
+ },
10603
+ )) : _lowerImportBackwardsCompat.bind(
10604
+ null,
10605
+ {
10606
+ trampolineIdx: 30,
10607
+ componentIdx: 0,
10608
+ isAsync: false,
10609
+ isManualAsync: _trampoline30.manuallyAsync,
10610
+ paramLiftFns: [_liftFlatBorrow.bind(null, 2)],
10611
+ resultLowerFns: [_lowerFlatResult([[ 'ok', null, 12, 4, 4 ],[ 'err', _lowerFlatVariant([[ 'last-operation-failed', _lowerFlatOwn.bind(null, 0), 8, 4, 4 ],[ 'closed', null, 8, 4, 4 ],]), 12, 4, 4 ],])],
10612
+ funcTypeIsAsync: false,
10613
+ getCallbackFn: () => null,
10614
+ getPostReturnFn: () => null,
10615
+ isCancellable: false,
10616
+ memoryIdx: 0,
10617
+ getMemoryFn: () => memory0,
10618
+ getReallocFn: () => null,
10619
+ importFn: _trampoline30,
10620
+ },
10621
+ );
10622
+ let trampoline31 = _trampoline31.manuallyAsync ? new WebAssembly.Suspending(_lowerImportBackwardsCompat.bind(
10623
+ null,
10624
+ {
10625
+ trampolineIdx: 31,
10626
+ componentIdx: 0,
10627
+ isAsync: false,
10628
+ isManualAsync: _trampoline31.manuallyAsync,
10629
+ paramLiftFns: [_liftFlatU64],
10630
+ resultLowerFns: [_lowerFlatList({ elemLowerFn: _lowerFlatU8, typeIdx: 1 })],
10631
+ funcTypeIsAsync: false,
10632
+ getCallbackFn: () => null,
10633
+ getPostReturnFn: () => null,
10634
+ isCancellable: false,
10635
+ memoryIdx: 0,
10636
+ getMemoryFn: () => memory0,
10637
+ getReallocFn: () => realloc0,
10638
+ importFn: _trampoline31,
10639
+ },
10640
+ )) : _lowerImportBackwardsCompat.bind(
10641
+ null,
10642
+ {
10643
+ trampolineIdx: 31,
10644
+ componentIdx: 0,
10645
+ isAsync: false,
10646
+ isManualAsync: _trampoline31.manuallyAsync,
10647
+ paramLiftFns: [_liftFlatU64],
10648
+ resultLowerFns: [_lowerFlatList({ elemLowerFn: _lowerFlatU8, typeIdx: 1 })],
10649
+ funcTypeIsAsync: false,
10650
+ getCallbackFn: () => null,
10651
+ getPostReturnFn: () => null,
10652
+ isCancellable: false,
10653
+ memoryIdx: 0,
10654
+ getMemoryFn: () => memory0,
10655
+ getReallocFn: () => realloc0,
10656
+ importFn: _trampoline31,
10657
+ },
10658
+ );
10659
+ let trampoline32 = _trampoline32.manuallyAsync ? new WebAssembly.Suspending(_lowerImportBackwardsCompat.bind(
10660
+ null,
10661
+ {
10662
+ trampolineIdx: 32,
10663
+ componentIdx: 0,
10664
+ isAsync: false,
10665
+ isManualAsync: _trampoline32.manuallyAsync,
10666
+ paramLiftFns: [],
10667
+ resultLowerFns: [_lowerFlatList({ elemLowerFn: _lowerFlatTuple.bind(null, 30), typeIdx: 2 })],
10668
+ funcTypeIsAsync: false,
10669
+ getCallbackFn: () => null,
10670
+ getPostReturnFn: () => null,
10671
+ isCancellable: false,
10672
+ memoryIdx: 0,
10673
+ getMemoryFn: () => memory0,
10674
+ getReallocFn: () => realloc0,
10675
+ importFn: _trampoline32,
10676
+ },
10677
+ )) : _lowerImportBackwardsCompat.bind(
10678
+ null,
10679
+ {
10680
+ trampolineIdx: 32,
10681
+ componentIdx: 0,
10682
+ isAsync: false,
10683
+ isManualAsync: _trampoline32.manuallyAsync,
10684
+ paramLiftFns: [],
10685
+ resultLowerFns: [_lowerFlatList({ elemLowerFn: _lowerFlatTuple.bind(null, 30), typeIdx: 2 })],
10686
+ funcTypeIsAsync: false,
10687
+ getCallbackFn: () => null,
10688
+ getPostReturnFn: () => null,
10689
+ isCancellable: false,
10690
+ memoryIdx: 0,
10691
+ getMemoryFn: () => memory0,
10692
+ getReallocFn: () => realloc0,
10693
+ importFn: _trampoline32,
10694
+ },
10695
+ );
10696
+ let trampoline33 = _trampoline33.manuallyAsync ? new WebAssembly.Suspending(_lowerImportBackwardsCompat.bind(
10697
+ null,
10698
+ {
10699
+ trampolineIdx: 33,
10700
+ componentIdx: 0,
10701
+ isAsync: false,
10702
+ isManualAsync: _trampoline33.manuallyAsync,
10703
+ paramLiftFns: [],
10704
+ resultLowerFns: [_lowerFlatOption([[ 'some', _lowerFlatOwn.bind(null, 3), 8, 4, 4 ],[ 'none', null, 8, 4, 4 ],])],
10705
+ funcTypeIsAsync: false,
10706
+ getCallbackFn: () => null,
10707
+ getPostReturnFn: () => null,
10708
+ isCancellable: false,
10709
+ memoryIdx: 0,
10710
+ getMemoryFn: () => memory0,
10711
+ getReallocFn: () => null,
10712
+ importFn: _trampoline33,
10713
+ },
10714
+ )) : _lowerImportBackwardsCompat.bind(
10715
+ null,
10716
+ {
10717
+ trampolineIdx: 33,
10718
+ componentIdx: 0,
10719
+ isAsync: false,
10720
+ isManualAsync: _trampoline33.manuallyAsync,
10721
+ paramLiftFns: [],
10722
+ resultLowerFns: [_lowerFlatOption([[ 'some', _lowerFlatOwn.bind(null, 3), 8, 4, 4 ],[ 'none', null, 8, 4, 4 ],])],
10723
+ funcTypeIsAsync: false,
10724
+ getCallbackFn: () => null,
10725
+ getPostReturnFn: () => null,
10726
+ isCancellable: false,
10727
+ memoryIdx: 0,
10728
+ getMemoryFn: () => memory0,
10729
+ getReallocFn: () => null,
10730
+ importFn: _trampoline33,
10731
+ },
10732
+ );
10733
+ let trampoline34 = _trampoline34.manuallyAsync ? new WebAssembly.Suspending(_lowerImportBackwardsCompat.bind(
10734
+ null,
10735
+ {
10736
+ trampolineIdx: 34,
10737
+ componentIdx: 0,
10738
+ isAsync: false,
10739
+ isManualAsync: _trampoline34.manuallyAsync,
10740
+ paramLiftFns: [],
10741
+ resultLowerFns: [_lowerFlatOption([[ 'some', _lowerFlatOwn.bind(null, 4), 8, 4, 4 ],[ 'none', null, 8, 4, 4 ],])],
10742
+ funcTypeIsAsync: false,
10743
+ getCallbackFn: () => null,
10744
+ getPostReturnFn: () => null,
10745
+ isCancellable: false,
10746
+ memoryIdx: 0,
10747
+ getMemoryFn: () => memory0,
10748
+ getReallocFn: () => null,
10749
+ importFn: _trampoline34,
10750
+ },
10751
+ )) : _lowerImportBackwardsCompat.bind(
10752
+ null,
10753
+ {
10754
+ trampolineIdx: 34,
10755
+ componentIdx: 0,
10756
+ isAsync: false,
10757
+ isManualAsync: _trampoline34.manuallyAsync,
10758
+ paramLiftFns: [],
10759
+ resultLowerFns: [_lowerFlatOption([[ 'some', _lowerFlatOwn.bind(null, 4), 8, 4, 4 ],[ 'none', null, 8, 4, 4 ],])],
10760
+ funcTypeIsAsync: false,
10761
+ getCallbackFn: () => null,
10762
+ getPostReturnFn: () => null,
10763
+ isCancellable: false,
10764
+ memoryIdx: 0,
10765
+ getMemoryFn: () => memory0,
10766
+ getReallocFn: () => null,
10767
+ importFn: _trampoline34,
10768
+ },
10769
+ );
10770
+ let trampoline35 = _trampoline35.manuallyAsync ? new WebAssembly.Suspending(_lowerImportBackwardsCompat.bind(
10771
+ null,
10772
+ {
10773
+ trampolineIdx: 35,
10774
+ componentIdx: 0,
10775
+ isAsync: false,
10776
+ isManualAsync: _trampoline35.manuallyAsync,
10777
+ paramLiftFns: [],
10778
+ resultLowerFns: [_lowerFlatOption([[ 'some', _lowerFlatOwn.bind(null, 4), 8, 4, 4 ],[ 'none', null, 8, 4, 4 ],])],
10779
+ funcTypeIsAsync: false,
10780
+ getCallbackFn: () => null,
10781
+ getPostReturnFn: () => null,
10782
+ isCancellable: false,
10783
+ memoryIdx: 0,
10784
+ getMemoryFn: () => memory0,
10785
+ getReallocFn: () => null,
10786
+ importFn: _trampoline35,
10787
+ },
10788
+ )) : _lowerImportBackwardsCompat.bind(
10789
+ null,
10790
+ {
10791
+ trampolineIdx: 35,
10792
+ componentIdx: 0,
10793
+ isAsync: false,
10794
+ isManualAsync: _trampoline35.manuallyAsync,
10795
+ paramLiftFns: [],
10796
+ resultLowerFns: [_lowerFlatOption([[ 'some', _lowerFlatOwn.bind(null, 4), 8, 4, 4 ],[ 'none', null, 8, 4, 4 ],])],
10797
+ funcTypeIsAsync: false,
10798
+ getCallbackFn: () => null,
10799
+ getPostReturnFn: () => null,
10800
+ isCancellable: false,
10801
+ memoryIdx: 0,
10802
+ getMemoryFn: () => memory0,
10803
+ getReallocFn: () => null,
10804
+ importFn: _trampoline35,
10805
+ },
10806
+ );
10749
10807
 
10750
10808
  let _initialized = false;
10751
10809
  export const $init = (() => {