qsharp-lang 1.8.1-dev → 1.8.2-dev
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/compiler/worker-browser.d.ts +1 -1
- package/dist/debug-service/worker-browser.d.ts +1 -1
- package/dist/katas-content.generated.js +73 -73
- package/dist/katas-content.generated.md.js +80 -80
- package/dist/language-service/worker-browser.d.ts +1 -1
- package/dist/samples.generated.js +3 -3
- package/dist/workers/common.js +1 -2
- package/dist/workers/node.js +1 -1
- package/docs/Microsoft.Quantum.Arrays/All.md +1 -1
- package/docs/Microsoft.Quantum.Arrays/Any.md +1 -1
- package/docs/Microsoft.Quantum.Arrays/Chunks.md +1 -1
- package/docs/Microsoft.Quantum.Arrays/CircularlyShifted.md +1 -1
- package/docs/Microsoft.Quantum.Arrays/ColumnAt.md +1 -1
- package/docs/Microsoft.Quantum.Arrays/Count.md +1 -1
- package/docs/Microsoft.Quantum.Arrays/Diagonal.md +1 -1
- package/docs/Microsoft.Quantum.Arrays/DrawMany.md +1 -1
- package/docs/Microsoft.Quantum.Arrays/Enumerated.md +1 -1
- package/docs/Microsoft.Quantum.Arrays/Excluding.md +1 -1
- package/docs/Microsoft.Quantum.Arrays/Filtered.md +1 -1
- package/docs/Microsoft.Quantum.Arrays/FlatMapped.md +1 -1
- package/docs/Microsoft.Quantum.Arrays/Flattened.md +1 -1
- package/docs/Microsoft.Quantum.Arrays/Fold.md +1 -1
- package/docs/Microsoft.Quantum.Arrays/ForEach.md +1 -1
- package/docs/Microsoft.Quantum.Arrays/Head.md +1 -1
- package/docs/Microsoft.Quantum.Arrays/HeadAndRest.md +1 -1
- package/docs/Microsoft.Quantum.Arrays/IndexOf.md +1 -1
- package/docs/Microsoft.Quantum.Arrays/IndexRange.md +1 -1
- package/docs/Microsoft.Quantum.Arrays/Interleaved.md +1 -1
- package/docs/Microsoft.Quantum.Arrays/IsEmpty.md +1 -1
- package/docs/Microsoft.Quantum.Arrays/IsRectangularArray.md +1 -1
- package/docs/Microsoft.Quantum.Arrays/IsSorted.md +1 -1
- package/docs/Microsoft.Quantum.Arrays/IsSquareArray.md +1 -1
- package/docs/Microsoft.Quantum.Arrays/Mapped.md +1 -1
- package/docs/Microsoft.Quantum.Arrays/MappedByIndex.md +1 -1
- package/docs/Microsoft.Quantum.Arrays/MappedOverRange.md +1 -1
- package/docs/Microsoft.Quantum.Arrays/Most.md +1 -1
- package/docs/Microsoft.Quantum.Arrays/MostAndTail.md +1 -1
- package/docs/Microsoft.Quantum.Arrays/Padded.md +1 -1
- package/docs/Microsoft.Quantum.Arrays/Partitioned.md +1 -1
- package/docs/Microsoft.Quantum.Arrays/Rest.md +1 -1
- package/docs/Microsoft.Quantum.Arrays/Reversed.md +1 -1
- package/docs/Microsoft.Quantum.Arrays/SequenceI.md +1 -1
- package/docs/Microsoft.Quantum.Arrays/SequenceL.md +1 -1
- package/docs/Microsoft.Quantum.Arrays/Sorted.md +1 -1
- package/docs/Microsoft.Quantum.Arrays/Subarray.md +1 -1
- package/docs/Microsoft.Quantum.Arrays/Swapped.md +1 -1
- package/docs/Microsoft.Quantum.Arrays/Tail.md +1 -1
- package/docs/Microsoft.Quantum.Arrays/Transposed.md +1 -1
- package/docs/Microsoft.Quantum.Arrays/Unzipped.md +1 -1
- package/docs/Microsoft.Quantum.Arrays/Where.md +1 -1
- package/docs/Microsoft.Quantum.Arrays/Windows.md +1 -1
- package/docs/Microsoft.Quantum.Arrays/Zipped.md +1 -1
- package/docs/Microsoft.Quantum.Canon/ApplyCNOTChain.md +1 -1
- package/docs/Microsoft.Quantum.Canon/ApplyControlledOnBitString.md +1 -1
- package/docs/Microsoft.Quantum.Canon/ApplyControlledOnInt.md +1 -1
- package/docs/Microsoft.Quantum.Canon/ApplyP.md +1 -1
- package/docs/Microsoft.Quantum.Canon/ApplyPauli.md +1 -1
- package/docs/Microsoft.Quantum.Canon/ApplyPauliFromBitString.md +1 -1
- package/docs/Microsoft.Quantum.Canon/ApplyPauliFromInt.md +1 -1
- package/docs/Microsoft.Quantum.Canon/ApplyQFT.md +1 -1
- package/docs/Microsoft.Quantum.Canon/ApplyToEach.md +1 -1
- package/docs/Microsoft.Quantum.Canon/ApplyToEachA.md +1 -1
- package/docs/Microsoft.Quantum.Canon/ApplyToEachC.md +1 -1
- package/docs/Microsoft.Quantum.Canon/ApplyToEachCA.md +1 -1
- package/docs/Microsoft.Quantum.Canon/ApplyXorInPlace.md +1 -1
- package/docs/Microsoft.Quantum.Canon/ApplyXorInPlaceL.md +1 -1
- package/docs/Microsoft.Quantum.Canon/CX.md +1 -1
- package/docs/Microsoft.Quantum.Canon/CY.md +1 -1
- package/docs/Microsoft.Quantum.Canon/CZ.md +1 -1
- package/docs/Microsoft.Quantum.Canon/Fst.md +1 -1
- package/docs/Microsoft.Quantum.Canon/Snd.md +1 -1
- package/docs/Microsoft.Quantum.Canon/SwapReverseRegister.md +1 -1
- package/docs/Microsoft.Quantum.Convert/BigIntAsBoolArray.md +1 -1
- package/docs/Microsoft.Quantum.Convert/BoolArrayAsBigInt.md +1 -1
- package/docs/Microsoft.Quantum.Convert/BoolArrayAsInt.md +1 -1
- package/docs/Microsoft.Quantum.Convert/BoolArrayAsResultArray.md +1 -1
- package/docs/Microsoft.Quantum.Convert/BoolAsResult.md +1 -1
- package/docs/Microsoft.Quantum.Convert/ComplexAsComplexPolar.md +1 -1
- package/docs/Microsoft.Quantum.Convert/ComplexPolarAsComplex.md +1 -1
- package/docs/Microsoft.Quantum.Convert/DoubleAsStringWithPrecision.md +1 -1
- package/docs/Microsoft.Quantum.Convert/IntAsBigInt.md +1 -1
- package/docs/Microsoft.Quantum.Convert/IntAsBoolArray.md +1 -1
- package/docs/Microsoft.Quantum.Convert/IntAsDouble.md +1 -1
- package/docs/Microsoft.Quantum.Convert/ResultArrayAsBoolArray.md +1 -1
- package/docs/Microsoft.Quantum.Convert/ResultArrayAsInt.md +1 -1
- package/docs/Microsoft.Quantum.Convert/ResultAsBool.md +1 -1
- package/docs/Microsoft.Quantum.Core/IsRangeEmpty.md +1 -1
- package/docs/Microsoft.Quantum.Core/Length.md +1 -1
- package/docs/Microsoft.Quantum.Core/RangeEnd.md +1 -1
- package/docs/Microsoft.Quantum.Core/RangeReverse.md +1 -1
- package/docs/Microsoft.Quantum.Core/RangeStart.md +1 -1
- package/docs/Microsoft.Quantum.Core/RangeStep.md +1 -1
- package/docs/Microsoft.Quantum.Core/Repeated.md +1 -1
- package/docs/Microsoft.Quantum.Diagnostics/DumpMachine.md +1 -1
- package/docs/Microsoft.Quantum.Diagnostics/DumpRegister.md +1 -1
- package/docs/Microsoft.Quantum.Diagnostics/Fact.md +1 -1
- package/docs/Microsoft.Quantum.Intrinsic/AND.md +1 -1
- package/docs/Microsoft.Quantum.Intrinsic/CCNOT.md +1 -1
- package/docs/Microsoft.Quantum.Intrinsic/CNOT.md +1 -1
- package/docs/Microsoft.Quantum.Intrinsic/Exp.md +1 -1
- package/docs/Microsoft.Quantum.Intrinsic/H.md +1 -1
- package/docs/Microsoft.Quantum.Intrinsic/I.md +1 -1
- package/docs/Microsoft.Quantum.Intrinsic/M.md +1 -1
- package/docs/Microsoft.Quantum.Intrinsic/Measure.md +1 -1
- package/docs/Microsoft.Quantum.Intrinsic/Message.md +1 -1
- package/docs/Microsoft.Quantum.Intrinsic/R.md +1 -1
- package/docs/Microsoft.Quantum.Intrinsic/R1.md +1 -1
- package/docs/Microsoft.Quantum.Intrinsic/R1Frac.md +1 -1
- package/docs/Microsoft.Quantum.Intrinsic/RFrac.md +1 -1
- package/docs/Microsoft.Quantum.Intrinsic/Reset.md +1 -1
- package/docs/Microsoft.Quantum.Intrinsic/ResetAll.md +1 -1
- package/docs/Microsoft.Quantum.Intrinsic/Rx.md +1 -1
- package/docs/Microsoft.Quantum.Intrinsic/Rxx.md +1 -1
- package/docs/Microsoft.Quantum.Intrinsic/Ry.md +1 -1
- package/docs/Microsoft.Quantum.Intrinsic/Ryy.md +1 -1
- package/docs/Microsoft.Quantum.Intrinsic/Rz.md +1 -1
- package/docs/Microsoft.Quantum.Intrinsic/Rzz.md +1 -1
- package/docs/Microsoft.Quantum.Intrinsic/S.md +1 -1
- package/docs/Microsoft.Quantum.Intrinsic/SWAP.md +1 -1
- package/docs/Microsoft.Quantum.Intrinsic/T.md +1 -1
- package/docs/Microsoft.Quantum.Intrinsic/X.md +1 -1
- package/docs/Microsoft.Quantum.Intrinsic/Y.md +1 -1
- package/docs/Microsoft.Quantum.Intrinsic/Z.md +1 -1
- package/docs/Microsoft.Quantum.Logical/Xor.md +1 -1
- package/docs/Microsoft.Quantum.Math/AbsComplex.md +1 -1
- package/docs/Microsoft.Quantum.Math/AbsComplexPolar.md +1 -1
- package/docs/Microsoft.Quantum.Math/AbsD.md +1 -1
- package/docs/Microsoft.Quantum.Math/AbsI.md +1 -1
- package/docs/Microsoft.Quantum.Math/AbsL.md +1 -1
- package/docs/Microsoft.Quantum.Math/AbsSquaredComplex.md +1 -1
- package/docs/Microsoft.Quantum.Math/AbsSquaredComplexPolar.md +1 -1
- package/docs/Microsoft.Quantum.Math/ApproximateFactorial.md +1 -1
- package/docs/Microsoft.Quantum.Math/ArcCos.md +1 -1
- package/docs/Microsoft.Quantum.Math/ArcCosh.md +1 -1
- package/docs/Microsoft.Quantum.Math/ArcSin.md +1 -1
- package/docs/Microsoft.Quantum.Math/ArcSinh.md +1 -1
- package/docs/Microsoft.Quantum.Math/ArcTan.md +1 -1
- package/docs/Microsoft.Quantum.Math/ArcTan2.md +1 -1
- package/docs/Microsoft.Quantum.Math/ArcTanh.md +1 -1
- package/docs/Microsoft.Quantum.Math/ArgComplex.md +1 -1
- package/docs/Microsoft.Quantum.Math/ArgComplexPolar.md +1 -1
- package/docs/Microsoft.Quantum.Math/Binom.md +1 -1
- package/docs/Microsoft.Quantum.Math/BitSizeI.md +1 -1
- package/docs/Microsoft.Quantum.Math/BitSizeL.md +1 -1
- package/docs/Microsoft.Quantum.Math/Ceiling.md +1 -1
- package/docs/Microsoft.Quantum.Math/Complex.md +1 -1
- package/docs/Microsoft.Quantum.Math/ComplexPolar.md +1 -1
- package/docs/Microsoft.Quantum.Math/ContinuedFractionConvergentI.md +1 -1
- package/docs/Microsoft.Quantum.Math/ContinuedFractionConvergentL.md +1 -1
- package/docs/Microsoft.Quantum.Math/Cos.md +1 -1
- package/docs/Microsoft.Quantum.Math/Cosh.md +1 -1
- package/docs/Microsoft.Quantum.Math/DivRemI.md +1 -1
- package/docs/Microsoft.Quantum.Math/DivRemL.md +1 -1
- package/docs/Microsoft.Quantum.Math/DividedByC.md +1 -1
- package/docs/Microsoft.Quantum.Math/DividedByCP.md +1 -1
- package/docs/Microsoft.Quantum.Math/E.md +1 -1
- package/docs/Microsoft.Quantum.Math/ExpModI.md +1 -1
- package/docs/Microsoft.Quantum.Math/ExpModL.md +1 -1
- package/docs/Microsoft.Quantum.Math/ExtendedGreatestCommonDivisorI.md +1 -1
- package/docs/Microsoft.Quantum.Math/ExtendedGreatestCommonDivisorL.md +1 -1
- package/docs/Microsoft.Quantum.Math/FactorialI.md +1 -1
- package/docs/Microsoft.Quantum.Math/FactorialL.md +1 -1
- package/docs/Microsoft.Quantum.Math/Floor.md +1 -1
- package/docs/Microsoft.Quantum.Math/GreatestCommonDivisorI.md +1 -1
- package/docs/Microsoft.Quantum.Math/GreatestCommonDivisorL.md +1 -1
- package/docs/Microsoft.Quantum.Math/HammingWeightI.md +1 -1
- package/docs/Microsoft.Quantum.Math/InverseModI.md +1 -1
- package/docs/Microsoft.Quantum.Math/InverseModL.md +1 -1
- package/docs/Microsoft.Quantum.Math/IsCoprimeI.md +1 -1
- package/docs/Microsoft.Quantum.Math/IsCoprimeL.md +1 -1
- package/docs/Microsoft.Quantum.Math/IsInfinite.md +1 -1
- package/docs/Microsoft.Quantum.Math/IsNaN.md +1 -1
- package/docs/Microsoft.Quantum.Math/LargestFixedPoint.md +1 -1
- package/docs/Microsoft.Quantum.Math/Lg.md +1 -1
- package/docs/Microsoft.Quantum.Math/Log.md +1 -1
- package/docs/Microsoft.Quantum.Math/Log10.md +1 -1
- package/docs/Microsoft.Quantum.Math/LogFactorialD.md +1 -1
- package/docs/Microsoft.Quantum.Math/LogGammaD.md +1 -1
- package/docs/Microsoft.Quantum.Math/LogOf2.md +1 -1
- package/docs/Microsoft.Quantum.Math/Max.md +1 -1
- package/docs/Microsoft.Quantum.Math/MaxD.md +1 -1
- package/docs/Microsoft.Quantum.Math/MaxI.md +1 -1
- package/docs/Microsoft.Quantum.Math/MaxL.md +1 -1
- package/docs/Microsoft.Quantum.Math/Min.md +1 -1
- package/docs/Microsoft.Quantum.Math/MinD.md +1 -1
- package/docs/Microsoft.Quantum.Math/MinI.md +1 -1
- package/docs/Microsoft.Quantum.Math/MinL.md +1 -1
- package/docs/Microsoft.Quantum.Math/MinusC.md +1 -1
- package/docs/Microsoft.Quantum.Math/MinusCP.md +1 -1
- package/docs/Microsoft.Quantum.Math/ModulusI.md +1 -1
- package/docs/Microsoft.Quantum.Math/ModulusL.md +1 -1
- package/docs/Microsoft.Quantum.Math/NegationC.md +1 -1
- package/docs/Microsoft.Quantum.Math/NegationCP.md +1 -1
- package/docs/Microsoft.Quantum.Math/PI.md +1 -1
- package/docs/Microsoft.Quantum.Math/PNorm.md +1 -1
- package/docs/Microsoft.Quantum.Math/PNormalized.md +1 -1
- package/docs/Microsoft.Quantum.Math/PlusC.md +1 -1
- package/docs/Microsoft.Quantum.Math/PlusCP.md +1 -1
- package/docs/Microsoft.Quantum.Math/PowC.md +1 -1
- package/docs/Microsoft.Quantum.Math/PowCP.md +1 -1
- package/docs/Microsoft.Quantum.Math/RealMod.md +1 -1
- package/docs/Microsoft.Quantum.Math/Round.md +1 -1
- package/docs/Microsoft.Quantum.Math/SignD.md +1 -1
- package/docs/Microsoft.Quantum.Math/SignI.md +1 -1
- package/docs/Microsoft.Quantum.Math/SignL.md +1 -1
- package/docs/Microsoft.Quantum.Math/Sin.md +1 -1
- package/docs/Microsoft.Quantum.Math/Sinh.md +1 -1
- package/docs/Microsoft.Quantum.Math/SmallestFixedPoint.md +1 -1
- package/docs/Microsoft.Quantum.Math/Sqrt.md +1 -1
- package/docs/Microsoft.Quantum.Math/SquaredNorm.md +1 -1
- package/docs/Microsoft.Quantum.Math/Tan.md +1 -1
- package/docs/Microsoft.Quantum.Math/Tanh.md +1 -1
- package/docs/Microsoft.Quantum.Math/TimesC.md +1 -1
- package/docs/Microsoft.Quantum.Math/TimesCP.md +1 -1
- package/docs/Microsoft.Quantum.Math/TrailingZeroCountI.md +1 -1
- package/docs/Microsoft.Quantum.Math/TrailingZeroCountL.md +1 -1
- package/docs/Microsoft.Quantum.Math/Truncate.md +1 -1
- package/docs/Microsoft.Quantum.Measurement/MResetEachZ.md +1 -1
- package/docs/Microsoft.Quantum.Measurement/MResetX.md +1 -1
- package/docs/Microsoft.Quantum.Measurement/MResetY.md +1 -1
- package/docs/Microsoft.Quantum.Measurement/MResetZ.md +1 -1
- package/docs/Microsoft.Quantum.Measurement/MeasureAllZ.md +1 -1
- package/docs/Microsoft.Quantum.Measurement/MeasureEachZ.md +1 -1
- package/docs/Microsoft.Quantum.Measurement/MeasureInteger.md +1 -1
- package/docs/Microsoft.Quantum.ResourceEstimation/AccountForEstimates.md +1 -1
- package/docs/Microsoft.Quantum.ResourceEstimation/AuxQubitCount.md +1 -1
- package/docs/Microsoft.Quantum.ResourceEstimation/BeginEstimateCaching.md +1 -1
- package/docs/Microsoft.Quantum.ResourceEstimation/BeginRepeatEstimates.md +1 -1
- package/docs/Microsoft.Quantum.ResourceEstimation/CczCount.md +1 -1
- package/docs/Microsoft.Quantum.ResourceEstimation/EndEstimateCaching.md +1 -1
- package/docs/Microsoft.Quantum.ResourceEstimation/EndRepeatEstimates.md +1 -1
- package/docs/Microsoft.Quantum.ResourceEstimation/MeasurementCount.md +1 -1
- package/docs/Microsoft.Quantum.ResourceEstimation/PSSPCLayout.md +1 -1
- package/docs/Microsoft.Quantum.ResourceEstimation/RepeatEstimates.md +1 -1
- package/docs/Microsoft.Quantum.ResourceEstimation/RotationCount.md +1 -1
- package/docs/Microsoft.Quantum.ResourceEstimation/RotationDepth.md +1 -1
- package/docs/Microsoft.Quantum.ResourceEstimation/SingleVariant.md +1 -1
- package/docs/Microsoft.Quantum.ResourceEstimation/TCount.md +1 -1
- package/docs/Microsoft.Quantum.Unstable.Arithmetic/AddLE.md +1 -1
- package/docs/Microsoft.Quantum.Unstable.Arithmetic/ApplyIfEqualL.md +1 -1
- package/docs/Microsoft.Quantum.Unstable.Arithmetic/ApplyIfEqualLE.md +1 -1
- package/docs/Microsoft.Quantum.Unstable.Arithmetic/ApplyIfGreaterL.md +1 -1
- package/docs/Microsoft.Quantum.Unstable.Arithmetic/ApplyIfGreaterLE.md +1 -1
- package/docs/Microsoft.Quantum.Unstable.Arithmetic/ApplyIfGreaterOrEqualL.md +1 -1
- package/docs/Microsoft.Quantum.Unstable.Arithmetic/ApplyIfGreaterOrEqualLE.md +1 -1
- package/docs/Microsoft.Quantum.Unstable.Arithmetic/ApplyIfLessL.md +1 -1
- package/docs/Microsoft.Quantum.Unstable.Arithmetic/ApplyIfLessLE.md +1 -1
- package/docs/Microsoft.Quantum.Unstable.Arithmetic/ApplyIfLessOrEqualL.md +1 -1
- package/docs/Microsoft.Quantum.Unstable.Arithmetic/ApplyIfLessOrEqualLE.md +1 -1
- package/docs/Microsoft.Quantum.Unstable.Arithmetic/FourierTDIncByLE.md +1 -1
- package/docs/Microsoft.Quantum.Unstable.Arithmetic/IncByI.md +1 -1
- package/docs/Microsoft.Quantum.Unstable.Arithmetic/IncByIUsingIncByLE.md +1 -1
- package/docs/Microsoft.Quantum.Unstable.Arithmetic/IncByL.md +1 -1
- package/docs/Microsoft.Quantum.Unstable.Arithmetic/IncByLE.md +1 -1
- package/docs/Microsoft.Quantum.Unstable.Arithmetic/IncByLEUsingAddLE.md +1 -1
- package/docs/Microsoft.Quantum.Unstable.Arithmetic/IncByLUsingIncByLE.md +1 -1
- package/docs/Microsoft.Quantum.Unstable.Arithmetic/LookAheadDKRSAddLE.md +1 -1
- package/docs/Microsoft.Quantum.Unstable.Arithmetic/MAJ.md +1 -1
- package/docs/Microsoft.Quantum.Unstable.Arithmetic/ReflectAboutInteger.md +1 -1
- package/docs/Microsoft.Quantum.Unstable.Arithmetic/RippleCarryCGAddLE.md +1 -1
- package/docs/Microsoft.Quantum.Unstable.Arithmetic/RippleCarryCGIncByLE.md +1 -1
- package/docs/Microsoft.Quantum.Unstable.Arithmetic/RippleCarryTTKIncByLE.md +1 -1
- package/docs/Microsoft.Quantum.Unstable.StatePreparation/ApproximatelyPreparePureStateCP.md +1 -1
- package/docs/Microsoft.Quantum.Unstable.StatePreparation/PreparePureStateD.md +1 -1
- package/docs/Microsoft.Quantum.Unstable.TableLookup/Select.md +1 -1
- package/lib/node/qsc_wasm.cjs +150 -165
- package/lib/node/qsc_wasm_bg.wasm +0 -0
- package/lib/web/qsc_wasm.d.ts +7 -7
- package/lib/web/qsc_wasm.js +173 -178
- package/lib/web/qsc_wasm_bg.wasm +0 -0
- package/package.json +1 -1
- package/ux/histogram.tsx +2 -3
package/lib/web/qsc_wasm.js
CHANGED
|
@@ -8,13 +8,13 @@ function getObject(idx) { return heap[idx]; }
|
|
|
8
8
|
|
|
9
9
|
let WASM_VECTOR_LEN = 0;
|
|
10
10
|
|
|
11
|
-
let
|
|
11
|
+
let cachedUint8ArrayMemory0 = null;
|
|
12
12
|
|
|
13
|
-
function
|
|
14
|
-
if (
|
|
15
|
-
|
|
13
|
+
function getUint8ArrayMemory0() {
|
|
14
|
+
if (cachedUint8ArrayMemory0 === null || cachedUint8ArrayMemory0.byteLength === 0) {
|
|
15
|
+
cachedUint8ArrayMemory0 = new Uint8Array(wasm.memory.buffer);
|
|
16
16
|
}
|
|
17
|
-
return
|
|
17
|
+
return cachedUint8ArrayMemory0;
|
|
18
18
|
}
|
|
19
19
|
|
|
20
20
|
const cachedTextEncoder = (typeof TextEncoder !== 'undefined' ? new TextEncoder('utf-8') : { encode: () => { throw Error('TextEncoder not available') } } );
|
|
@@ -37,7 +37,7 @@ function passStringToWasm0(arg, malloc, realloc) {
|
|
|
37
37
|
if (realloc === undefined) {
|
|
38
38
|
const buf = cachedTextEncoder.encode(arg);
|
|
39
39
|
const ptr = malloc(buf.length, 1) >>> 0;
|
|
40
|
-
|
|
40
|
+
getUint8ArrayMemory0().subarray(ptr, ptr + buf.length).set(buf);
|
|
41
41
|
WASM_VECTOR_LEN = buf.length;
|
|
42
42
|
return ptr;
|
|
43
43
|
}
|
|
@@ -45,7 +45,7 @@ function passStringToWasm0(arg, malloc, realloc) {
|
|
|
45
45
|
let len = arg.length;
|
|
46
46
|
let ptr = malloc(len, 1) >>> 0;
|
|
47
47
|
|
|
48
|
-
const mem =
|
|
48
|
+
const mem = getUint8ArrayMemory0();
|
|
49
49
|
|
|
50
50
|
let offset = 0;
|
|
51
51
|
|
|
@@ -60,7 +60,7 @@ function passStringToWasm0(arg, malloc, realloc) {
|
|
|
60
60
|
arg = arg.slice(offset);
|
|
61
61
|
}
|
|
62
62
|
ptr = realloc(ptr, len, len = offset + arg.length * 3, 1) >>> 0;
|
|
63
|
-
const view =
|
|
63
|
+
const view = getUint8ArrayMemory0().subarray(ptr + offset, ptr + len);
|
|
64
64
|
const ret = encodeString(arg, view);
|
|
65
65
|
|
|
66
66
|
offset += ret.written;
|
|
@@ -75,22 +75,13 @@ function isLikeNone(x) {
|
|
|
75
75
|
return x === undefined || x === null;
|
|
76
76
|
}
|
|
77
77
|
|
|
78
|
-
let
|
|
78
|
+
let cachedDataViewMemory0 = null;
|
|
79
79
|
|
|
80
|
-
function
|
|
81
|
-
if (
|
|
82
|
-
|
|
80
|
+
function getDataViewMemory0() {
|
|
81
|
+
if (cachedDataViewMemory0 === null || cachedDataViewMemory0.buffer.detached === true || (cachedDataViewMemory0.buffer.detached === undefined && cachedDataViewMemory0.buffer !== wasm.memory.buffer)) {
|
|
82
|
+
cachedDataViewMemory0 = new DataView(wasm.memory.buffer);
|
|
83
83
|
}
|
|
84
|
-
return
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
let cachedFloat64Memory0 = null;
|
|
88
|
-
|
|
89
|
-
function getFloat64Memory0() {
|
|
90
|
-
if (cachedFloat64Memory0 === null || cachedFloat64Memory0.byteLength === 0) {
|
|
91
|
-
cachedFloat64Memory0 = new Float64Array(wasm.memory.buffer);
|
|
92
|
-
}
|
|
93
|
-
return cachedFloat64Memory0;
|
|
84
|
+
return cachedDataViewMemory0;
|
|
94
85
|
}
|
|
95
86
|
|
|
96
87
|
let heap_next = heap.length;
|
|
@@ -113,7 +104,7 @@ if (typeof TextDecoder !== 'undefined') { cachedTextDecoder.decode(); };
|
|
|
113
104
|
|
|
114
105
|
function getStringFromWasm0(ptr, len) {
|
|
115
106
|
ptr = ptr >>> 0;
|
|
116
|
-
return cachedTextDecoder.decode(
|
|
107
|
+
return cachedTextDecoder.decode(getUint8ArrayMemory0().subarray(ptr, ptr + len));
|
|
117
108
|
}
|
|
118
109
|
|
|
119
110
|
function addHeapObject(obj) {
|
|
@@ -125,15 +116,6 @@ function addHeapObject(obj) {
|
|
|
125
116
|
return idx;
|
|
126
117
|
}
|
|
127
118
|
|
|
128
|
-
let cachedBigInt64Memory0 = null;
|
|
129
|
-
|
|
130
|
-
function getBigInt64Memory0() {
|
|
131
|
-
if (cachedBigInt64Memory0 === null || cachedBigInt64Memory0.byteLength === 0) {
|
|
132
|
-
cachedBigInt64Memory0 = new BigInt64Array(wasm.memory.buffer);
|
|
133
|
-
}
|
|
134
|
-
return cachedBigInt64Memory0;
|
|
135
|
-
}
|
|
136
|
-
|
|
137
119
|
function debugString(val) {
|
|
138
120
|
// primitive types
|
|
139
121
|
const type = typeof val;
|
|
@@ -241,27 +223,27 @@ function addBorrowedObject(obj) {
|
|
|
241
223
|
return stack_pointer;
|
|
242
224
|
}
|
|
243
225
|
|
|
244
|
-
let
|
|
226
|
+
let cachedUint32ArrayMemory0 = null;
|
|
245
227
|
|
|
246
|
-
function
|
|
247
|
-
if (
|
|
248
|
-
|
|
228
|
+
function getUint32ArrayMemory0() {
|
|
229
|
+
if (cachedUint32ArrayMemory0 === null || cachedUint32ArrayMemory0.byteLength === 0) {
|
|
230
|
+
cachedUint32ArrayMemory0 = new Uint32Array(wasm.memory.buffer);
|
|
249
231
|
}
|
|
250
|
-
return
|
|
232
|
+
return cachedUint32ArrayMemory0;
|
|
251
233
|
}
|
|
252
234
|
|
|
253
235
|
function passArray32ToWasm0(arg, malloc) {
|
|
254
236
|
const ptr = malloc(arg.length * 4, 4) >>> 0;
|
|
255
|
-
|
|
237
|
+
getUint32ArrayMemory0().set(arg, ptr / 4);
|
|
256
238
|
WASM_VECTOR_LEN = arg.length;
|
|
257
239
|
return ptr;
|
|
258
240
|
}
|
|
259
241
|
|
|
260
242
|
function passArrayJsValueToWasm0(array, malloc) {
|
|
261
243
|
const ptr = malloc(array.length * 4, 4) >>> 0;
|
|
262
|
-
const mem =
|
|
244
|
+
const mem = getDataViewMemory0();
|
|
263
245
|
for (let i = 0; i < array.length; i++) {
|
|
264
|
-
mem
|
|
246
|
+
mem.setUint32(ptr + 4 * i, addHeapObject(array[i]), true);
|
|
265
247
|
}
|
|
266
248
|
WASM_VECTOR_LEN = array.length;
|
|
267
249
|
return ptr;
|
|
@@ -269,11 +251,10 @@ function passArrayJsValueToWasm0(array, malloc) {
|
|
|
269
251
|
|
|
270
252
|
function getArrayJsValueFromWasm0(ptr, len) {
|
|
271
253
|
ptr = ptr >>> 0;
|
|
272
|
-
const mem =
|
|
273
|
-
const slice = mem.subarray(ptr / 4, ptr / 4 + len);
|
|
254
|
+
const mem = getDataViewMemory0();
|
|
274
255
|
const result = [];
|
|
275
|
-
for (let i =
|
|
276
|
-
result.push(takeObject(
|
|
256
|
+
for (let i = ptr; i < ptr + 4 * len; i += 4) {
|
|
257
|
+
result.push(takeObject(mem.getUint32(i, true)));
|
|
277
258
|
}
|
|
278
259
|
return result;
|
|
279
260
|
}
|
|
@@ -285,8 +266,8 @@ export function initLogging(callback, level) {
|
|
|
285
266
|
try {
|
|
286
267
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
287
268
|
wasm.initLogging(retptr, addHeapObject(callback), level);
|
|
288
|
-
var r0 =
|
|
289
|
-
var r1 =
|
|
269
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
270
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
290
271
|
if (r1) {
|
|
291
272
|
throw takeObject(r0);
|
|
292
273
|
}
|
|
@@ -318,8 +299,8 @@ export function git_hash() {
|
|
|
318
299
|
try {
|
|
319
300
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
320
301
|
wasm.git_hash(retptr);
|
|
321
|
-
var r0 =
|
|
322
|
-
var r1 =
|
|
302
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
303
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
323
304
|
deferred1_0 = r0;
|
|
324
305
|
deferred1_1 = r1;
|
|
325
306
|
return getStringFromWasm0(r0, r1);
|
|
@@ -339,10 +320,10 @@ export function get_qir(program) {
|
|
|
339
320
|
try {
|
|
340
321
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
341
322
|
wasm.get_qir(retptr, addHeapObject(program));
|
|
342
|
-
var r0 =
|
|
343
|
-
var r1 =
|
|
344
|
-
var r2 =
|
|
345
|
-
var r3 =
|
|
323
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
324
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
325
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
326
|
+
var r3 = getDataViewMemory0().getInt32(retptr + 4 * 3, true);
|
|
346
327
|
var ptr1 = r0;
|
|
347
328
|
var len1 = r1;
|
|
348
329
|
if (r3) {
|
|
@@ -371,10 +352,10 @@ export function get_estimates(program, params) {
|
|
|
371
352
|
const ptr0 = passStringToWasm0(params, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
|
|
372
353
|
const len0 = WASM_VECTOR_LEN;
|
|
373
354
|
wasm.get_estimates(retptr, addHeapObject(program), ptr0, len0);
|
|
374
|
-
var r0 =
|
|
375
|
-
var r1 =
|
|
376
|
-
var r2 =
|
|
377
|
-
var r3 =
|
|
355
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
356
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
357
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
358
|
+
var r3 = getDataViewMemory0().getInt32(retptr + 4 * 3, true);
|
|
378
359
|
var ptr2 = r0;
|
|
379
360
|
var len2 = r1;
|
|
380
361
|
if (r3) {
|
|
@@ -400,9 +381,9 @@ export function get_circuit(program, simulate, operation) {
|
|
|
400
381
|
try {
|
|
401
382
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
402
383
|
wasm.get_circuit(retptr, addHeapObject(program), simulate, isLikeNone(operation) ? 0 : addHeapObject(operation));
|
|
403
|
-
var r0 =
|
|
404
|
-
var r1 =
|
|
405
|
-
var r2 =
|
|
384
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
385
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
386
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
406
387
|
if (r2) {
|
|
407
388
|
throw takeObject(r1);
|
|
408
389
|
}
|
|
@@ -422,8 +403,8 @@ export function get_library_source_content(name) {
|
|
|
422
403
|
const ptr0 = passStringToWasm0(name, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
|
|
423
404
|
const len0 = WASM_VECTOR_LEN;
|
|
424
405
|
wasm.get_library_source_content(retptr, ptr0, len0);
|
|
425
|
-
var r0 =
|
|
426
|
-
var r1 =
|
|
406
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
407
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
427
408
|
let v2;
|
|
428
409
|
if (r0 !== 0) {
|
|
429
410
|
v2 = getStringFromWasm0(r0, r1).slice();
|
|
@@ -453,10 +434,10 @@ export function get_ast(code, language_features, profile) {
|
|
|
453
434
|
const ptr2 = passStringToWasm0(profile, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
|
|
454
435
|
const len2 = WASM_VECTOR_LEN;
|
|
455
436
|
wasm.get_ast(retptr, ptr0, len0, ptr1, len1, ptr2, len2);
|
|
456
|
-
var r0 =
|
|
457
|
-
var r1 =
|
|
458
|
-
var r2 =
|
|
459
|
-
var r3 =
|
|
437
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
438
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
439
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
440
|
+
var r3 = getDataViewMemory0().getInt32(retptr + 4 * 3, true);
|
|
460
441
|
var ptr4 = r0;
|
|
461
442
|
var len4 = r1;
|
|
462
443
|
if (r3) {
|
|
@@ -490,10 +471,10 @@ export function get_hir(code, language_features, profile) {
|
|
|
490
471
|
const ptr2 = passStringToWasm0(profile, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
|
|
491
472
|
const len2 = WASM_VECTOR_LEN;
|
|
492
473
|
wasm.get_hir(retptr, ptr0, len0, ptr1, len1, ptr2, len2);
|
|
493
|
-
var r0 =
|
|
494
|
-
var r1 =
|
|
495
|
-
var r2 =
|
|
496
|
-
var r3 =
|
|
474
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
475
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
476
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
477
|
+
var r3 = getDataViewMemory0().getInt32(retptr + 4 * 3, true);
|
|
497
478
|
var ptr4 = r0;
|
|
498
479
|
var len4 = r1;
|
|
499
480
|
if (r3) {
|
|
@@ -522,9 +503,9 @@ export function run(program, expr, event_cb, shots) {
|
|
|
522
503
|
const ptr0 = passStringToWasm0(expr, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
|
|
523
504
|
const len0 = WASM_VECTOR_LEN;
|
|
524
505
|
wasm.run(retptr, addHeapObject(program), ptr0, len0, addBorrowedObject(event_cb), shots);
|
|
525
|
-
var r0 =
|
|
526
|
-
var r1 =
|
|
527
|
-
var r2 =
|
|
506
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
507
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
508
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
528
509
|
if (r2) {
|
|
529
510
|
throw takeObject(r1);
|
|
530
511
|
}
|
|
@@ -560,8 +541,8 @@ export function generate_docs(additional_program) {
|
|
|
560
541
|
try {
|
|
561
542
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
562
543
|
wasm.generate_docs(retptr, isLikeNone(additional_program) ? 0 : addHeapObject(additional_program));
|
|
563
|
-
var r0 =
|
|
564
|
-
var r1 =
|
|
544
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
545
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
565
546
|
var v1 = getArrayJsValueFromWasm0(r0, r1).slice();
|
|
566
547
|
wasm.__wbindgen_export_4(r0, r1 * 4, 4);
|
|
567
548
|
return v1;
|
|
@@ -580,7 +561,7 @@ export const StepResultId = Object.freeze({ BreakpointHit:0,"0":"BreakpointHit",
|
|
|
580
561
|
|
|
581
562
|
const DebugServiceFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
582
563
|
? { register: () => {}, unregister: () => {} }
|
|
583
|
-
: new FinalizationRegistry(ptr => wasm.__wbg_debugservice_free(ptr >>> 0));
|
|
564
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_debugservice_free(ptr >>> 0, 1));
|
|
584
565
|
/**
|
|
585
566
|
*/
|
|
586
567
|
export class DebugService {
|
|
@@ -594,13 +575,14 @@ export class DebugService {
|
|
|
594
575
|
|
|
595
576
|
free() {
|
|
596
577
|
const ptr = this.__destroy_into_raw();
|
|
597
|
-
wasm.__wbg_debugservice_free(ptr);
|
|
578
|
+
wasm.__wbg_debugservice_free(ptr, 0);
|
|
598
579
|
}
|
|
599
580
|
/**
|
|
600
581
|
*/
|
|
601
582
|
constructor() {
|
|
602
583
|
const ret = wasm.debugservice_new();
|
|
603
584
|
this.__wbg_ptr = ret >>> 0;
|
|
585
|
+
DebugServiceFinalization.register(this, this.__wbg_ptr, this);
|
|
604
586
|
return this;
|
|
605
587
|
}
|
|
606
588
|
/**
|
|
@@ -616,8 +598,8 @@ export class DebugService {
|
|
|
616
598
|
var ptr0 = isLikeNone(entry) ? 0 : passStringToWasm0(entry, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
|
|
617
599
|
var len0 = WASM_VECTOR_LEN;
|
|
618
600
|
wasm.debugservice_load_program(retptr, this.__wbg_ptr, addHeapObject(program), ptr0, len0);
|
|
619
|
-
var r0 =
|
|
620
|
-
var r1 =
|
|
601
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
602
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
621
603
|
deferred2_0 = r0;
|
|
622
604
|
deferred2_1 = r1;
|
|
623
605
|
return getStringFromWasm0(r0, r1);
|
|
@@ -640,9 +622,9 @@ export class DebugService {
|
|
|
640
622
|
try {
|
|
641
623
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
642
624
|
wasm.debugservice_get_circuit(retptr, this.__wbg_ptr);
|
|
643
|
-
var r0 =
|
|
644
|
-
var r1 =
|
|
645
|
-
var r2 =
|
|
625
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
626
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
627
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
646
628
|
if (r2) {
|
|
647
629
|
throw takeObject(r1);
|
|
648
630
|
}
|
|
@@ -669,9 +651,9 @@ export class DebugService {
|
|
|
669
651
|
const ptr0 = passArray32ToWasm0(ids, wasm.__wbindgen_export_0);
|
|
670
652
|
const len0 = WASM_VECTOR_LEN;
|
|
671
653
|
wasm.debugservice_eval_next(retptr, this.__wbg_ptr, addBorrowedObject(event_cb), ptr0, len0);
|
|
672
|
-
var r0 =
|
|
673
|
-
var r1 =
|
|
674
|
-
var r2 =
|
|
654
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
655
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
656
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
675
657
|
if (r2) {
|
|
676
658
|
throw takeObject(r1);
|
|
677
659
|
}
|
|
@@ -692,9 +674,9 @@ export class DebugService {
|
|
|
692
674
|
const ptr0 = passArray32ToWasm0(ids, wasm.__wbindgen_export_0);
|
|
693
675
|
const len0 = WASM_VECTOR_LEN;
|
|
694
676
|
wasm.debugservice_eval_continue(retptr, this.__wbg_ptr, addBorrowedObject(event_cb), ptr0, len0);
|
|
695
|
-
var r0 =
|
|
696
|
-
var r1 =
|
|
697
|
-
var r2 =
|
|
677
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
678
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
679
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
698
680
|
if (r2) {
|
|
699
681
|
throw takeObject(r1);
|
|
700
682
|
}
|
|
@@ -715,9 +697,9 @@ export class DebugService {
|
|
|
715
697
|
const ptr0 = passArray32ToWasm0(ids, wasm.__wbindgen_export_0);
|
|
716
698
|
const len0 = WASM_VECTOR_LEN;
|
|
717
699
|
wasm.debugservice_eval_step_in(retptr, this.__wbg_ptr, addBorrowedObject(event_cb), ptr0, len0);
|
|
718
|
-
var r0 =
|
|
719
|
-
var r1 =
|
|
720
|
-
var r2 =
|
|
700
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
701
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
702
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
721
703
|
if (r2) {
|
|
722
704
|
throw takeObject(r1);
|
|
723
705
|
}
|
|
@@ -738,9 +720,9 @@ export class DebugService {
|
|
|
738
720
|
const ptr0 = passArray32ToWasm0(ids, wasm.__wbindgen_export_0);
|
|
739
721
|
const len0 = WASM_VECTOR_LEN;
|
|
740
722
|
wasm.debugservice_eval_step_out(retptr, this.__wbg_ptr, addBorrowedObject(event_cb), ptr0, len0);
|
|
741
|
-
var r0 =
|
|
742
|
-
var r1 =
|
|
743
|
-
var r2 =
|
|
723
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
724
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
725
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
744
726
|
if (r2) {
|
|
745
727
|
throw takeObject(r1);
|
|
746
728
|
}
|
|
@@ -771,7 +753,7 @@ export class DebugService {
|
|
|
771
753
|
|
|
772
754
|
const LanguageServiceFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
773
755
|
? { register: () => {}, unregister: () => {} }
|
|
774
|
-
: new FinalizationRegistry(ptr => wasm.__wbg_languageservice_free(ptr >>> 0));
|
|
756
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_languageservice_free(ptr >>> 0, 1));
|
|
775
757
|
/**
|
|
776
758
|
*/
|
|
777
759
|
export class LanguageService {
|
|
@@ -785,13 +767,14 @@ export class LanguageService {
|
|
|
785
767
|
|
|
786
768
|
free() {
|
|
787
769
|
const ptr = this.__destroy_into_raw();
|
|
788
|
-
wasm.__wbg_languageservice_free(ptr);
|
|
770
|
+
wasm.__wbg_languageservice_free(ptr, 0);
|
|
789
771
|
}
|
|
790
772
|
/**
|
|
791
773
|
*/
|
|
792
774
|
constructor() {
|
|
793
775
|
const ret = wasm.languageservice_new();
|
|
794
776
|
this.__wbg_ptr = ret >>> 0;
|
|
777
|
+
LanguageServiceFinalization.register(this, this.__wbg_ptr, this);
|
|
795
778
|
return this;
|
|
796
779
|
}
|
|
797
780
|
/**
|
|
@@ -865,8 +848,8 @@ export class LanguageService {
|
|
|
865
848
|
const ptr0 = passStringToWasm0(uri, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
|
|
866
849
|
const len0 = WASM_VECTOR_LEN;
|
|
867
850
|
wasm.languageservice_get_code_actions(retptr, this.__wbg_ptr, ptr0, len0, addHeapObject(range));
|
|
868
|
-
var r0 =
|
|
869
|
-
var r1 =
|
|
851
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
852
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
870
853
|
var v2 = getArrayJsValueFromWasm0(r0, r1).slice();
|
|
871
854
|
wasm.__wbindgen_export_4(r0, r1 * 4, 4);
|
|
872
855
|
return v2;
|
|
@@ -908,8 +891,8 @@ export class LanguageService {
|
|
|
908
891
|
const ptr0 = passStringToWasm0(uri, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
|
|
909
892
|
const len0 = WASM_VECTOR_LEN;
|
|
910
893
|
wasm.languageservice_get_references(retptr, this.__wbg_ptr, ptr0, len0, addHeapObject(position), include_declaration);
|
|
911
|
-
var r0 =
|
|
912
|
-
var r1 =
|
|
894
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
895
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
913
896
|
var v2 = getArrayJsValueFromWasm0(r0, r1).slice();
|
|
914
897
|
wasm.__wbindgen_export_4(r0, r1 * 4, 4);
|
|
915
898
|
return v2;
|
|
@@ -927,8 +910,8 @@ export class LanguageService {
|
|
|
927
910
|
const ptr0 = passStringToWasm0(uri, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
|
|
928
911
|
const len0 = WASM_VECTOR_LEN;
|
|
929
912
|
wasm.languageservice_get_format_changes(retptr, this.__wbg_ptr, ptr0, len0);
|
|
930
|
-
var r0 =
|
|
931
|
-
var r1 =
|
|
913
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
914
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
932
915
|
var v2 = getArrayJsValueFromWasm0(r0, r1).slice();
|
|
933
916
|
wasm.__wbindgen_export_4(r0, r1 * 4, 4);
|
|
934
917
|
return v2;
|
|
@@ -993,8 +976,8 @@ export class LanguageService {
|
|
|
993
976
|
const ptr0 = passStringToWasm0(uri, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
|
|
994
977
|
const len0 = WASM_VECTOR_LEN;
|
|
995
978
|
wasm.languageservice_get_code_lenses(retptr, this.__wbg_ptr, ptr0, len0);
|
|
996
|
-
var r0 =
|
|
997
|
-
var r1 =
|
|
979
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
980
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
998
981
|
var v2 = getArrayJsValueFromWasm0(r0, r1).slice();
|
|
999
982
|
wasm.__wbindgen_export_4(r0, r1 * 4, 4);
|
|
1000
983
|
return v2;
|
|
@@ -1006,7 +989,7 @@ export class LanguageService {
|
|
|
1006
989
|
|
|
1007
990
|
const ProjectLoaderFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
1008
991
|
? { register: () => {}, unregister: () => {} }
|
|
1009
|
-
: new FinalizationRegistry(ptr => wasm.__wbg_projectloader_free(ptr >>> 0));
|
|
992
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_projectloader_free(ptr >>> 0, 1));
|
|
1010
993
|
/**
|
|
1011
994
|
* a minimal implementation for interacting with async JS filesystem callbacks to
|
|
1012
995
|
* load project files
|
|
@@ -1022,7 +1005,7 @@ export class ProjectLoader {
|
|
|
1022
1005
|
|
|
1023
1006
|
free() {
|
|
1024
1007
|
const ptr = this.__destroy_into_raw();
|
|
1025
|
-
wasm.__wbg_projectloader_free(ptr);
|
|
1008
|
+
wasm.__wbg_projectloader_free(ptr, 0);
|
|
1026
1009
|
}
|
|
1027
1010
|
/**
|
|
1028
1011
|
* @param {IProjectHost} project_host
|
|
@@ -1030,6 +1013,7 @@ export class ProjectLoader {
|
|
|
1030
1013
|
constructor(project_host) {
|
|
1031
1014
|
const ret = wasm.projectloader_new(addHeapObject(project_host));
|
|
1032
1015
|
this.__wbg_ptr = ret >>> 0;
|
|
1016
|
+
ProjectLoaderFinalization.register(this, this.__wbg_ptr, this);
|
|
1033
1017
|
return this;
|
|
1034
1018
|
}
|
|
1035
1019
|
/**
|
|
@@ -1083,14 +1067,14 @@ function __wbg_get_imports() {
|
|
|
1083
1067
|
const ret = typeof(obj) === 'string' ? obj : undefined;
|
|
1084
1068
|
var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
|
|
1085
1069
|
var len1 = WASM_VECTOR_LEN;
|
|
1086
|
-
|
|
1087
|
-
|
|
1070
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
1071
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
1088
1072
|
};
|
|
1089
1073
|
imports.wbg.__wbindgen_number_get = function(arg0, arg1) {
|
|
1090
1074
|
const obj = getObject(arg1);
|
|
1091
1075
|
const ret = typeof(obj) === 'number' ? obj : undefined;
|
|
1092
|
-
|
|
1093
|
-
|
|
1076
|
+
getDataViewMemory0().setFloat64(arg0 + 8 * 1, isLikeNone(ret) ? 0 : ret, true);
|
|
1077
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
|
|
1094
1078
|
};
|
|
1095
1079
|
imports.wbg.__wbindgen_object_drop_ref = function(arg0) {
|
|
1096
1080
|
takeObject(arg0);
|
|
@@ -1156,8 +1140,8 @@ function __wbg_get_imports() {
|
|
|
1156
1140
|
};
|
|
1157
1141
|
imports.wbg.__wbg_getstacktracelimit_1795d5c8573c0904 = function(arg0) {
|
|
1158
1142
|
const ret = Error.stackTraceLimit;
|
|
1159
|
-
|
|
1160
|
-
|
|
1143
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, isLikeNone(ret) ? 0 : ret, true);
|
|
1144
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
|
|
1161
1145
|
};
|
|
1162
1146
|
imports.wbg.__wbg_setstacktracelimit_11f38865cc4ff17c = function(arg0) {
|
|
1163
1147
|
Error.stackTraceLimit = arg0 >>> 0;
|
|
@@ -1170,15 +1154,15 @@ function __wbg_get_imports() {
|
|
|
1170
1154
|
const ret = getObject(arg1).stack;
|
|
1171
1155
|
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
|
|
1172
1156
|
const len1 = WASM_VECTOR_LEN;
|
|
1173
|
-
|
|
1174
|
-
|
|
1157
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
1158
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
1175
1159
|
};
|
|
1176
1160
|
imports.wbg.__wbg_profile_431ee5e29ff55ee3 = function(arg0, arg1) {
|
|
1177
1161
|
const ret = getObject(arg1).profile;
|
|
1178
1162
|
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
|
|
1179
1163
|
const len1 = WASM_VECTOR_LEN;
|
|
1180
|
-
|
|
1181
|
-
|
|
1164
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
1165
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
1182
1166
|
};
|
|
1183
1167
|
imports.wbg.__wbg_packageGraphSources_612f292bc2b31ff9 = function(arg0) {
|
|
1184
1168
|
const ret = getObject(arg0).packageGraphSources;
|
|
@@ -1228,8 +1212,8 @@ function __wbg_get_imports() {
|
|
|
1228
1212
|
const ret = String(getObject(arg1));
|
|
1229
1213
|
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
|
|
1230
1214
|
const len1 = WASM_VECTOR_LEN;
|
|
1231
|
-
|
|
1232
|
-
|
|
1215
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
1216
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
1233
1217
|
};
|
|
1234
1218
|
imports.wbg.__wbg_getwithrefkey_edc2c8960f0f1191 = function(arg0, arg1) {
|
|
1235
1219
|
const ret = getObject(arg0)[getObject(arg1)];
|
|
@@ -1238,11 +1222,11 @@ function __wbg_get_imports() {
|
|
|
1238
1222
|
imports.wbg.__wbg_set_f975102236d3c502 = function(arg0, arg1, arg2) {
|
|
1239
1223
|
getObject(arg0)[takeObject(arg1)] = takeObject(arg2);
|
|
1240
1224
|
};
|
|
1241
|
-
imports.wbg.
|
|
1225
|
+
imports.wbg.__wbg_queueMicrotask_48421b3cc9052b68 = function(arg0) {
|
|
1242
1226
|
const ret = getObject(arg0).queueMicrotask;
|
|
1243
1227
|
return addHeapObject(ret);
|
|
1244
1228
|
};
|
|
1245
|
-
imports.wbg.
|
|
1229
|
+
imports.wbg.__wbg_queueMicrotask_12a30234db4045d3 = function(arg0) {
|
|
1246
1230
|
queueMicrotask(getObject(arg0));
|
|
1247
1231
|
};
|
|
1248
1232
|
imports.wbg.__wbg_crypto_1d1f22824a6a080c = function(arg0) {
|
|
@@ -1275,82 +1259,82 @@ function __wbg_get_imports() {
|
|
|
1275
1259
|
imports.wbg.__wbg_getRandomValues_3aa56aa6edec874c = function() { return handleError(function (arg0, arg1) {
|
|
1276
1260
|
getObject(arg0).getRandomValues(getObject(arg1));
|
|
1277
1261
|
}, arguments) };
|
|
1278
|
-
imports.wbg.
|
|
1262
|
+
imports.wbg.__wbg_self_3093d5d1f7bcb682 = function() { return handleError(function () {
|
|
1279
1263
|
const ret = self.self;
|
|
1280
1264
|
return addHeapObject(ret);
|
|
1281
1265
|
}, arguments) };
|
|
1282
|
-
imports.wbg.
|
|
1266
|
+
imports.wbg.__wbg_window_3bcfc4d31bc012f8 = function() { return handleError(function () {
|
|
1283
1267
|
const ret = window.window;
|
|
1284
1268
|
return addHeapObject(ret);
|
|
1285
1269
|
}, arguments) };
|
|
1286
|
-
imports.wbg.
|
|
1270
|
+
imports.wbg.__wbg_globalThis_86b222e13bdf32ed = function() { return handleError(function () {
|
|
1287
1271
|
const ret = globalThis.globalThis;
|
|
1288
1272
|
return addHeapObject(ret);
|
|
1289
1273
|
}, arguments) };
|
|
1290
|
-
imports.wbg.
|
|
1274
|
+
imports.wbg.__wbg_global_e5a3fe56f8be9485 = function() { return handleError(function () {
|
|
1291
1275
|
const ret = global.global;
|
|
1292
1276
|
return addHeapObject(ret);
|
|
1293
1277
|
}, arguments) };
|
|
1294
|
-
imports.wbg.
|
|
1278
|
+
imports.wbg.__wbg_newnoargs_76313bd6ff35d0f2 = function(arg0, arg1) {
|
|
1295
1279
|
const ret = new Function(getStringFromWasm0(arg0, arg1));
|
|
1296
1280
|
return addHeapObject(ret);
|
|
1297
1281
|
};
|
|
1298
|
-
imports.wbg.
|
|
1282
|
+
imports.wbg.__wbg_call_1084a111329e68ce = function() { return handleError(function (arg0, arg1) {
|
|
1299
1283
|
const ret = getObject(arg0).call(getObject(arg1));
|
|
1300
1284
|
return addHeapObject(ret);
|
|
1301
1285
|
}, arguments) };
|
|
1302
|
-
imports.wbg.
|
|
1286
|
+
imports.wbg.__wbg_get_3baa728f9d58d3f6 = function(arg0, arg1) {
|
|
1303
1287
|
const ret = getObject(arg0)[arg1 >>> 0];
|
|
1304
1288
|
return addHeapObject(ret);
|
|
1305
1289
|
};
|
|
1306
|
-
imports.wbg.
|
|
1290
|
+
imports.wbg.__wbg_length_ae22078168b726f5 = function(arg0) {
|
|
1307
1291
|
const ret = getObject(arg0).length;
|
|
1308
1292
|
return ret;
|
|
1309
1293
|
};
|
|
1310
|
-
imports.wbg.
|
|
1294
|
+
imports.wbg.__wbg_new_a220cf903aa02ca2 = function() {
|
|
1311
1295
|
const ret = new Array();
|
|
1312
1296
|
return addHeapObject(ret);
|
|
1313
1297
|
};
|
|
1314
|
-
imports.wbg.
|
|
1298
|
+
imports.wbg.__wbg_new_8608a2b51a5f6737 = function() {
|
|
1315
1299
|
const ret = new Map();
|
|
1316
1300
|
return addHeapObject(ret);
|
|
1317
1301
|
};
|
|
1318
|
-
imports.wbg.
|
|
1302
|
+
imports.wbg.__wbg_next_de3e9db4440638b2 = function(arg0) {
|
|
1319
1303
|
const ret = getObject(arg0).next;
|
|
1320
1304
|
return addHeapObject(ret);
|
|
1321
1305
|
};
|
|
1322
|
-
imports.wbg.
|
|
1306
|
+
imports.wbg.__wbg_next_f9cb570345655b9a = function() { return handleError(function (arg0) {
|
|
1323
1307
|
const ret = getObject(arg0).next();
|
|
1324
1308
|
return addHeapObject(ret);
|
|
1325
1309
|
}, arguments) };
|
|
1326
|
-
imports.wbg.
|
|
1310
|
+
imports.wbg.__wbg_done_bfda7aa8f252b39f = function(arg0) {
|
|
1327
1311
|
const ret = getObject(arg0).done;
|
|
1328
1312
|
return ret;
|
|
1329
1313
|
};
|
|
1330
|
-
imports.wbg.
|
|
1314
|
+
imports.wbg.__wbg_value_6d39332ab4788d86 = function(arg0) {
|
|
1331
1315
|
const ret = getObject(arg0).value;
|
|
1332
1316
|
return addHeapObject(ret);
|
|
1333
1317
|
};
|
|
1334
|
-
imports.wbg.
|
|
1318
|
+
imports.wbg.__wbg_iterator_888179a48810a9fe = function() {
|
|
1335
1319
|
const ret = Symbol.iterator;
|
|
1336
1320
|
return addHeapObject(ret);
|
|
1337
1321
|
};
|
|
1338
|
-
imports.wbg.
|
|
1322
|
+
imports.wbg.__wbg_get_224d16597dbbfd96 = function() { return handleError(function (arg0, arg1) {
|
|
1339
1323
|
const ret = Reflect.get(getObject(arg0), getObject(arg1));
|
|
1340
1324
|
return addHeapObject(ret);
|
|
1341
1325
|
}, arguments) };
|
|
1342
|
-
imports.wbg.
|
|
1326
|
+
imports.wbg.__wbg_new_525245e2b9901204 = function() {
|
|
1343
1327
|
const ret = new Object();
|
|
1344
1328
|
return addHeapObject(ret);
|
|
1345
1329
|
};
|
|
1346
|
-
imports.wbg.
|
|
1330
|
+
imports.wbg.__wbg_set_673dda6c73d19609 = function(arg0, arg1, arg2) {
|
|
1347
1331
|
getObject(arg0)[arg1 >>> 0] = takeObject(arg2);
|
|
1348
1332
|
};
|
|
1349
|
-
imports.wbg.
|
|
1333
|
+
imports.wbg.__wbg_isArray_8364a5371e9737d8 = function(arg0) {
|
|
1350
1334
|
const ret = Array.isArray(getObject(arg0));
|
|
1351
1335
|
return ret;
|
|
1352
1336
|
};
|
|
1353
|
-
imports.wbg.
|
|
1337
|
+
imports.wbg.__wbg_instanceof_ArrayBuffer_61dfc3198373c902 = function(arg0) {
|
|
1354
1338
|
let result;
|
|
1355
1339
|
try {
|
|
1356
1340
|
result = getObject(arg0) instanceof ArrayBuffer;
|
|
@@ -1360,7 +1344,7 @@ function __wbg_get_imports() {
|
|
|
1360
1344
|
const ret = result;
|
|
1361
1345
|
return ret;
|
|
1362
1346
|
};
|
|
1363
|
-
imports.wbg.
|
|
1347
|
+
imports.wbg.__wbg_instanceof_Error_69bde193b0cc95e3 = function(arg0) {
|
|
1364
1348
|
let result;
|
|
1365
1349
|
try {
|
|
1366
1350
|
result = getObject(arg0) instanceof Error;
|
|
@@ -1370,19 +1354,19 @@ function __wbg_get_imports() {
|
|
|
1370
1354
|
const ret = result;
|
|
1371
1355
|
return ret;
|
|
1372
1356
|
};
|
|
1373
|
-
imports.wbg.
|
|
1357
|
+
imports.wbg.__wbg_message_e18bae0a0e2c097a = function(arg0) {
|
|
1374
1358
|
const ret = getObject(arg0).message;
|
|
1375
1359
|
return addHeapObject(ret);
|
|
1376
1360
|
};
|
|
1377
|
-
imports.wbg.
|
|
1361
|
+
imports.wbg.__wbg_call_89af060b4e1523f2 = function() { return handleError(function (arg0, arg1, arg2) {
|
|
1378
1362
|
const ret = getObject(arg0).call(getObject(arg1), getObject(arg2));
|
|
1379
1363
|
return addHeapObject(ret);
|
|
1380
1364
|
}, arguments) };
|
|
1381
|
-
imports.wbg.
|
|
1365
|
+
imports.wbg.__wbg_call_7de908392845a9a5 = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
|
|
1382
1366
|
const ret = getObject(arg0).call(getObject(arg1), getObject(arg2), getObject(arg3), getObject(arg4));
|
|
1383
1367
|
return addHeapObject(ret);
|
|
1384
1368
|
}, arguments) };
|
|
1385
|
-
imports.wbg.
|
|
1369
|
+
imports.wbg.__wbg_instanceof_Map_763ce0e95960d55e = function(arg0) {
|
|
1386
1370
|
let result;
|
|
1387
1371
|
try {
|
|
1388
1372
|
result = getObject(arg0) instanceof Map;
|
|
@@ -1392,23 +1376,23 @@ function __wbg_get_imports() {
|
|
|
1392
1376
|
const ret = result;
|
|
1393
1377
|
return ret;
|
|
1394
1378
|
};
|
|
1395
|
-
imports.wbg.
|
|
1379
|
+
imports.wbg.__wbg_set_49185437f0ab06f8 = function(arg0, arg1, arg2) {
|
|
1396
1380
|
const ret = getObject(arg0).set(getObject(arg1), getObject(arg2));
|
|
1397
1381
|
return addHeapObject(ret);
|
|
1398
1382
|
};
|
|
1399
|
-
imports.wbg.
|
|
1383
|
+
imports.wbg.__wbg_isSafeInteger_7f1ed56200d90674 = function(arg0) {
|
|
1400
1384
|
const ret = Number.isSafeInteger(getObject(arg0));
|
|
1401
1385
|
return ret;
|
|
1402
1386
|
};
|
|
1403
|
-
imports.wbg.
|
|
1387
|
+
imports.wbg.__wbg_entries_7a0e06255456ebcd = function(arg0) {
|
|
1404
1388
|
const ret = Object.entries(getObject(arg0));
|
|
1405
1389
|
return addHeapObject(ret);
|
|
1406
1390
|
};
|
|
1407
|
-
imports.wbg.
|
|
1391
|
+
imports.wbg.__wbg_buffer_b7b08af79b0b0974 = function(arg0) {
|
|
1408
1392
|
const ret = getObject(arg0).buffer;
|
|
1409
1393
|
return addHeapObject(ret);
|
|
1410
1394
|
};
|
|
1411
|
-
imports.wbg.
|
|
1395
|
+
imports.wbg.__wbg_new_b85e72ed1bfd57f9 = function(arg0, arg1) {
|
|
1412
1396
|
try {
|
|
1413
1397
|
var state0 = {a: arg0, b: arg1};
|
|
1414
1398
|
var cb0 = (arg0, arg1) => {
|
|
@@ -1426,34 +1410,34 @@ function __wbg_get_imports() {
|
|
|
1426
1410
|
state0.a = state0.b = 0;
|
|
1427
1411
|
}
|
|
1428
1412
|
};
|
|
1429
|
-
imports.wbg.
|
|
1413
|
+
imports.wbg.__wbg_resolve_570458cb99d56a43 = function(arg0) {
|
|
1430
1414
|
const ret = Promise.resolve(getObject(arg0));
|
|
1431
1415
|
return addHeapObject(ret);
|
|
1432
1416
|
};
|
|
1433
|
-
imports.wbg.
|
|
1417
|
+
imports.wbg.__wbg_then_95e6edc0f89b73b1 = function(arg0, arg1) {
|
|
1434
1418
|
const ret = getObject(arg0).then(getObject(arg1));
|
|
1435
1419
|
return addHeapObject(ret);
|
|
1436
1420
|
};
|
|
1437
|
-
imports.wbg.
|
|
1421
|
+
imports.wbg.__wbg_then_876bb3c633745cc6 = function(arg0, arg1, arg2) {
|
|
1438
1422
|
const ret = getObject(arg0).then(getObject(arg1), getObject(arg2));
|
|
1439
1423
|
return addHeapObject(ret);
|
|
1440
1424
|
};
|
|
1441
|
-
imports.wbg.
|
|
1425
|
+
imports.wbg.__wbg_newwithbyteoffsetandlength_8a2cb9ca96b27ec9 = function(arg0, arg1, arg2) {
|
|
1442
1426
|
const ret = new Uint8Array(getObject(arg0), arg1 >>> 0, arg2 >>> 0);
|
|
1443
1427
|
return addHeapObject(ret);
|
|
1444
1428
|
};
|
|
1445
|
-
imports.wbg.
|
|
1429
|
+
imports.wbg.__wbg_new_ea1883e1e5e86686 = function(arg0) {
|
|
1446
1430
|
const ret = new Uint8Array(getObject(arg0));
|
|
1447
1431
|
return addHeapObject(ret);
|
|
1448
1432
|
};
|
|
1449
|
-
imports.wbg.
|
|
1433
|
+
imports.wbg.__wbg_set_d1e79e2388520f18 = function(arg0, arg1, arg2) {
|
|
1450
1434
|
getObject(arg0).set(getObject(arg1), arg2 >>> 0);
|
|
1451
1435
|
};
|
|
1452
|
-
imports.wbg.
|
|
1436
|
+
imports.wbg.__wbg_length_8339fcf5d8ecd12e = function(arg0) {
|
|
1453
1437
|
const ret = getObject(arg0).length;
|
|
1454
1438
|
return ret;
|
|
1455
1439
|
};
|
|
1456
|
-
imports.wbg.
|
|
1440
|
+
imports.wbg.__wbg_instanceof_Uint8Array_247a91427532499e = function(arg0) {
|
|
1457
1441
|
let result;
|
|
1458
1442
|
try {
|
|
1459
1443
|
result = getObject(arg0) instanceof Uint8Array;
|
|
@@ -1463,26 +1447,26 @@ function __wbg_get_imports() {
|
|
|
1463
1447
|
const ret = result;
|
|
1464
1448
|
return ret;
|
|
1465
1449
|
};
|
|
1466
|
-
imports.wbg.
|
|
1450
|
+
imports.wbg.__wbg_newwithlength_ec548f448387c968 = function(arg0) {
|
|
1467
1451
|
const ret = new Uint8Array(arg0 >>> 0);
|
|
1468
1452
|
return addHeapObject(ret);
|
|
1469
1453
|
};
|
|
1470
|
-
imports.wbg.
|
|
1454
|
+
imports.wbg.__wbg_subarray_7c2e3576afe181d1 = function(arg0, arg1, arg2) {
|
|
1471
1455
|
const ret = getObject(arg0).subarray(arg1 >>> 0, arg2 >>> 0);
|
|
1472
1456
|
return addHeapObject(ret);
|
|
1473
1457
|
};
|
|
1474
1458
|
imports.wbg.__wbindgen_bigint_get_as_i64 = function(arg0, arg1) {
|
|
1475
1459
|
const v = getObject(arg1);
|
|
1476
1460
|
const ret = typeof(v) === 'bigint' ? v : undefined;
|
|
1477
|
-
|
|
1478
|
-
|
|
1461
|
+
getDataViewMemory0().setBigInt64(arg0 + 8 * 1, isLikeNone(ret) ? BigInt(0) : ret, true);
|
|
1462
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
|
|
1479
1463
|
};
|
|
1480
1464
|
imports.wbg.__wbindgen_debug_string = function(arg0, arg1) {
|
|
1481
1465
|
const ret = debugString(getObject(arg1));
|
|
1482
1466
|
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
|
|
1483
1467
|
const len1 = WASM_VECTOR_LEN;
|
|
1484
|
-
|
|
1485
|
-
|
|
1468
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
1469
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
1486
1470
|
};
|
|
1487
1471
|
imports.wbg.__wbindgen_throw = function(arg0, arg1) {
|
|
1488
1472
|
throw new Error(getStringFromWasm0(arg0, arg1));
|
|
@@ -1491,26 +1475,25 @@ function __wbg_get_imports() {
|
|
|
1491
1475
|
const ret = wasm.memory;
|
|
1492
1476
|
return addHeapObject(ret);
|
|
1493
1477
|
};
|
|
1494
|
-
imports.wbg.
|
|
1495
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
1478
|
+
imports.wbg.__wbindgen_closure_wrapper897 = function(arg0, arg1, arg2) {
|
|
1479
|
+
const ret = makeMutClosure(arg0, arg1, 361, __wbg_adapter_52);
|
|
1496
1480
|
return addHeapObject(ret);
|
|
1497
1481
|
};
|
|
1498
1482
|
|
|
1499
1483
|
return imports;
|
|
1500
1484
|
}
|
|
1501
1485
|
|
|
1502
|
-
function __wbg_init_memory(imports,
|
|
1486
|
+
function __wbg_init_memory(imports, memory) {
|
|
1503
1487
|
|
|
1504
1488
|
}
|
|
1505
1489
|
|
|
1506
1490
|
function __wbg_finalize_init(instance, module) {
|
|
1507
1491
|
wasm = instance.exports;
|
|
1508
1492
|
__wbg_init.__wbindgen_wasm_module = module;
|
|
1509
|
-
|
|
1510
|
-
|
|
1511
|
-
|
|
1512
|
-
|
|
1513
|
-
cachedUint8Memory0 = null;
|
|
1493
|
+
cachedDataViewMemory0 = null;
|
|
1494
|
+
cachedUint32ArrayMemory0 = null;
|
|
1495
|
+
cachedUint8ArrayMemory0 = null;
|
|
1496
|
+
|
|
1514
1497
|
|
|
1515
1498
|
|
|
1516
1499
|
return wasm;
|
|
@@ -1519,6 +1502,12 @@ function __wbg_finalize_init(instance, module) {
|
|
|
1519
1502
|
function initSync(module) {
|
|
1520
1503
|
if (wasm !== undefined) return wasm;
|
|
1521
1504
|
|
|
1505
|
+
|
|
1506
|
+
if (typeof module !== 'undefined' && Object.getPrototypeOf(module) === Object.prototype)
|
|
1507
|
+
({module} = module)
|
|
1508
|
+
else
|
|
1509
|
+
console.warn('using deprecated parameters for `initSync()`; pass a single object instead')
|
|
1510
|
+
|
|
1522
1511
|
const imports = __wbg_get_imports();
|
|
1523
1512
|
|
|
1524
1513
|
__wbg_init_memory(imports);
|
|
@@ -1532,24 +1521,30 @@ function initSync(module) {
|
|
|
1532
1521
|
return __wbg_finalize_init(instance, module);
|
|
1533
1522
|
}
|
|
1534
1523
|
|
|
1535
|
-
async function __wbg_init(
|
|
1524
|
+
async function __wbg_init(module_or_path) {
|
|
1536
1525
|
if (wasm !== undefined) return wasm;
|
|
1537
1526
|
|
|
1538
|
-
|
|
1539
|
-
|
|
1527
|
+
|
|
1528
|
+
if (typeof module_or_path !== 'undefined' && Object.getPrototypeOf(module_or_path) === Object.prototype)
|
|
1529
|
+
({module_or_path} = module_or_path)
|
|
1530
|
+
else
|
|
1531
|
+
console.warn('using deprecated parameters for the initialization function; pass a single object instead')
|
|
1532
|
+
|
|
1533
|
+
if (typeof module_or_path === 'undefined') {
|
|
1534
|
+
module_or_path = new URL('qsc_wasm_bg.wasm', import.meta.url);
|
|
1540
1535
|
}
|
|
1541
1536
|
const imports = __wbg_get_imports();
|
|
1542
1537
|
|
|
1543
|
-
if (typeof
|
|
1544
|
-
|
|
1538
|
+
if (typeof module_or_path === 'string' || (typeof Request === 'function' && module_or_path instanceof Request) || (typeof URL === 'function' && module_or_path instanceof URL)) {
|
|
1539
|
+
module_or_path = fetch(module_or_path);
|
|
1545
1540
|
}
|
|
1546
1541
|
|
|
1547
1542
|
__wbg_init_memory(imports);
|
|
1548
1543
|
|
|
1549
|
-
const { instance, module } = await __wbg_load(await
|
|
1544
|
+
const { instance, module } = await __wbg_load(await module_or_path, imports);
|
|
1550
1545
|
|
|
1551
1546
|
return __wbg_finalize_init(instance, module);
|
|
1552
1547
|
}
|
|
1553
1548
|
|
|
1554
|
-
export { initSync }
|
|
1549
|
+
export { initSync };
|
|
1555
1550
|
export default __wbg_init;
|