qsharp-lang 1.6.1-dev → 1.6.3-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.
Files changed (314) hide show
  1. package/dist/browser.d.ts +7 -11
  2. package/dist/browser.js +6 -6
  3. package/dist/compiler/compiler.d.ts +25 -38
  4. package/dist/compiler/compiler.js +44 -50
  5. package/dist/debug-service/debug-service.d.ts +3 -3
  6. package/dist/debug-service/debug-service.js +4 -3
  7. package/dist/katas-content.generated.js +139 -72
  8. package/dist/katas-content.generated.md.js +139 -72
  9. package/dist/language-service/language-service.d.ts +4 -4
  10. package/dist/language-service/language-service.js +10 -3
  11. package/dist/main.d.ts +3 -6
  12. package/dist/main.js +4 -4
  13. package/dist/samples.generated.js +4 -4
  14. package/docs/Microsoft.Quantum.Arrays/All.md +1 -1
  15. package/docs/Microsoft.Quantum.Arrays/Any.md +1 -1
  16. package/docs/Microsoft.Quantum.Arrays/Chunks.md +1 -1
  17. package/docs/Microsoft.Quantum.Arrays/CircularlyShifted.md +1 -1
  18. package/docs/Microsoft.Quantum.Arrays/ColumnAt.md +1 -1
  19. package/docs/Microsoft.Quantum.Arrays/Count.md +1 -1
  20. package/docs/Microsoft.Quantum.Arrays/Diagonal.md +1 -1
  21. package/docs/Microsoft.Quantum.Arrays/DrawMany.md +1 -1
  22. package/docs/Microsoft.Quantum.Arrays/Enumerated.md +1 -1
  23. package/docs/Microsoft.Quantum.Arrays/Excluding.md +1 -1
  24. package/docs/Microsoft.Quantum.Arrays/Filtered.md +1 -1
  25. package/docs/Microsoft.Quantum.Arrays/FlatMapped.md +1 -1
  26. package/docs/Microsoft.Quantum.Arrays/Flattened.md +1 -1
  27. package/docs/Microsoft.Quantum.Arrays/Fold.md +1 -1
  28. package/docs/Microsoft.Quantum.Arrays/ForEach.md +1 -1
  29. package/docs/Microsoft.Quantum.Arrays/Head.md +1 -1
  30. package/docs/Microsoft.Quantum.Arrays/HeadAndRest.md +1 -1
  31. package/docs/Microsoft.Quantum.Arrays/IndexOf.md +1 -1
  32. package/docs/Microsoft.Quantum.Arrays/IndexRange.md +1 -1
  33. package/docs/Microsoft.Quantum.Arrays/Interleaved.md +1 -1
  34. package/docs/Microsoft.Quantum.Arrays/IsEmpty.md +1 -1
  35. package/docs/Microsoft.Quantum.Arrays/IsRectangularArray.md +1 -1
  36. package/docs/Microsoft.Quantum.Arrays/IsSorted.md +1 -1
  37. package/docs/Microsoft.Quantum.Arrays/IsSquareArray.md +1 -1
  38. package/docs/Microsoft.Quantum.Arrays/Mapped.md +1 -1
  39. package/docs/Microsoft.Quantum.Arrays/MappedByIndex.md +1 -1
  40. package/docs/Microsoft.Quantum.Arrays/MappedOverRange.md +1 -1
  41. package/docs/Microsoft.Quantum.Arrays/Most.md +1 -1
  42. package/docs/Microsoft.Quantum.Arrays/MostAndTail.md +1 -1
  43. package/docs/Microsoft.Quantum.Arrays/Padded.md +1 -1
  44. package/docs/Microsoft.Quantum.Arrays/Partitioned.md +1 -1
  45. package/docs/Microsoft.Quantum.Arrays/Rest.md +1 -1
  46. package/docs/Microsoft.Quantum.Arrays/Reversed.md +1 -1
  47. package/docs/Microsoft.Quantum.Arrays/SequenceI.md +1 -1
  48. package/docs/Microsoft.Quantum.Arrays/SequenceL.md +1 -1
  49. package/docs/Microsoft.Quantum.Arrays/Sorted.md +1 -1
  50. package/docs/Microsoft.Quantum.Arrays/Subarray.md +1 -1
  51. package/docs/Microsoft.Quantum.Arrays/Swapped.md +1 -1
  52. package/docs/Microsoft.Quantum.Arrays/Tail.md +1 -1
  53. package/docs/Microsoft.Quantum.Arrays/Transposed.md +1 -1
  54. package/docs/Microsoft.Quantum.Arrays/Unzipped.md +1 -1
  55. package/docs/Microsoft.Quantum.Arrays/Where.md +1 -1
  56. package/docs/Microsoft.Quantum.Arrays/Windows.md +1 -1
  57. package/docs/Microsoft.Quantum.Arrays/Zipped.md +1 -1
  58. package/docs/Microsoft.Quantum.Canon/ApplyCNOTChain.md +1 -1
  59. package/docs/Microsoft.Quantum.Canon/ApplyControlledOnBitString.md +1 -1
  60. package/docs/Microsoft.Quantum.Canon/ApplyControlledOnInt.md +1 -1
  61. package/docs/Microsoft.Quantum.Canon/ApplyP.md +1 -1
  62. package/docs/Microsoft.Quantum.Canon/ApplyPauli.md +1 -1
  63. package/docs/Microsoft.Quantum.Canon/ApplyPauliFromBitString.md +1 -1
  64. package/docs/Microsoft.Quantum.Canon/ApplyPauliFromInt.md +1 -1
  65. package/docs/Microsoft.Quantum.Canon/ApplyQFT.md +1 -1
  66. package/docs/Microsoft.Quantum.Canon/ApplyToEach.md +1 -1
  67. package/docs/Microsoft.Quantum.Canon/ApplyToEachA.md +1 -1
  68. package/docs/Microsoft.Quantum.Canon/ApplyToEachC.md +1 -1
  69. package/docs/Microsoft.Quantum.Canon/ApplyToEachCA.md +1 -1
  70. package/docs/Microsoft.Quantum.Canon/ApplyXorInPlace.md +1 -1
  71. package/docs/Microsoft.Quantum.Canon/ApplyXorInPlaceL.md +1 -1
  72. package/docs/Microsoft.Quantum.Canon/CX.md +1 -1
  73. package/docs/Microsoft.Quantum.Canon/CY.md +1 -1
  74. package/docs/Microsoft.Quantum.Canon/CZ.md +1 -1
  75. package/docs/Microsoft.Quantum.Canon/Fst.md +1 -1
  76. package/docs/Microsoft.Quantum.Canon/Snd.md +1 -1
  77. package/docs/Microsoft.Quantum.Canon/SwapReverseRegister.md +1 -1
  78. package/docs/Microsoft.Quantum.Convert/BigIntAsBoolArray.md +1 -1
  79. package/docs/Microsoft.Quantum.Convert/BoolArrayAsBigInt.md +1 -1
  80. package/docs/Microsoft.Quantum.Convert/BoolArrayAsInt.md +1 -1
  81. package/docs/Microsoft.Quantum.Convert/BoolArrayAsResultArray.md +1 -1
  82. package/docs/Microsoft.Quantum.Convert/BoolAsResult.md +1 -1
  83. package/docs/Microsoft.Quantum.Convert/ComplexAsComplexPolar.md +1 -1
  84. package/docs/Microsoft.Quantum.Convert/ComplexPolarAsComplex.md +1 -1
  85. package/docs/Microsoft.Quantum.Convert/IntAsBigInt.md +1 -1
  86. package/docs/Microsoft.Quantum.Convert/IntAsBoolArray.md +1 -1
  87. package/docs/Microsoft.Quantum.Convert/IntAsDouble.md +1 -1
  88. package/docs/Microsoft.Quantum.Convert/ResultArrayAsBoolArray.md +1 -1
  89. package/docs/Microsoft.Quantum.Convert/ResultArrayAsInt.md +1 -1
  90. package/docs/Microsoft.Quantum.Convert/ResultAsBool.md +1 -1
  91. package/docs/Microsoft.Quantum.Core/IsRangeEmpty.md +1 -1
  92. package/docs/Microsoft.Quantum.Core/Length.md +1 -1
  93. package/docs/Microsoft.Quantum.Core/RangeEnd.md +1 -1
  94. package/docs/Microsoft.Quantum.Core/RangeReverse.md +1 -1
  95. package/docs/Microsoft.Quantum.Core/RangeStart.md +1 -1
  96. package/docs/Microsoft.Quantum.Core/RangeStep.md +1 -1
  97. package/docs/Microsoft.Quantum.Core/Repeated.md +1 -1
  98. package/docs/Microsoft.Quantum.Diagnostics/DumpMachine.md +1 -1
  99. package/docs/Microsoft.Quantum.Diagnostics/DumpRegister.md +1 -1
  100. package/docs/Microsoft.Quantum.Diagnostics/Fact.md +1 -1
  101. package/docs/Microsoft.Quantum.Intrinsic/AdjustForSingleControl.md +21 -0
  102. package/docs/Microsoft.Quantum.Intrinsic/ApplyGlobalPhase.md +18 -0
  103. package/docs/Microsoft.Quantum.Intrinsic/CCH.md +18 -0
  104. package/docs/Microsoft.Quantum.Intrinsic/CCNOT.md +1 -1
  105. package/docs/Microsoft.Quantum.Intrinsic/CCY.md +18 -0
  106. package/docs/Microsoft.Quantum.Intrinsic/CCZ.md +18 -0
  107. package/docs/Microsoft.Quantum.Intrinsic/CH.md +18 -0
  108. package/docs/Microsoft.Quantum.Intrinsic/CNOT.md +1 -1
  109. package/docs/Microsoft.Quantum.Intrinsic/CRxx.md +18 -0
  110. package/docs/Microsoft.Quantum.Intrinsic/CRyy.md +18 -0
  111. package/docs/Microsoft.Quantum.Intrinsic/CRz.md +18 -0
  112. package/docs/Microsoft.Quantum.Intrinsic/CRzz.md +18 -0
  113. package/docs/Microsoft.Quantum.Intrinsic/CS.md +18 -0
  114. package/docs/Microsoft.Quantum.Intrinsic/CT.md +18 -0
  115. package/docs/Microsoft.Quantum.Intrinsic/CollectControls.md +27 -0
  116. package/docs/Microsoft.Quantum.Intrinsic/ControllableGlobalPhase.md +18 -0
  117. package/docs/Microsoft.Quantum.Intrinsic/EntangleForJointMeasure.md +18 -0
  118. package/docs/Microsoft.Quantum.Intrinsic/Exp.md +1 -1
  119. package/docs/Microsoft.Quantum.Intrinsic/GlobalPhase.md +18 -0
  120. package/docs/Microsoft.Quantum.Intrinsic/H.md +1 -1
  121. package/docs/Microsoft.Quantum.Intrinsic/I.md +1 -1
  122. package/docs/Microsoft.Quantum.Intrinsic/IndicesOfNonIdentity.md +18 -0
  123. package/docs/Microsoft.Quantum.Intrinsic/M.md +1 -1
  124. package/docs/Microsoft.Quantum.Intrinsic/MapPauli.md +18 -0
  125. package/docs/Microsoft.Quantum.Intrinsic/Measure.md +1 -1
  126. package/docs/Microsoft.Quantum.Intrinsic/Message.md +1 -1
  127. package/docs/Microsoft.Quantum.Intrinsic/PhaseCCX.md +18 -0
  128. package/docs/Microsoft.Quantum.Intrinsic/R.md +1 -1
  129. package/docs/Microsoft.Quantum.Intrinsic/R1.md +1 -1
  130. package/docs/Microsoft.Quantum.Intrinsic/R1Frac.md +1 -1
  131. package/docs/Microsoft.Quantum.Intrinsic/RFrac.md +1 -1
  132. package/docs/Microsoft.Quantum.Intrinsic/RemovePauliI.md +18 -0
  133. package/docs/Microsoft.Quantum.Intrinsic/Reset.md +1 -1
  134. package/docs/Microsoft.Quantum.Intrinsic/ResetAll.md +1 -1
  135. package/docs/Microsoft.Quantum.Intrinsic/Rx.md +1 -1
  136. package/docs/Microsoft.Quantum.Intrinsic/Rxx.md +1 -1
  137. package/docs/Microsoft.Quantum.Intrinsic/Ry.md +1 -1
  138. package/docs/Microsoft.Quantum.Intrinsic/Ryy.md +1 -1
  139. package/docs/Microsoft.Quantum.Intrinsic/Rz.md +1 -1
  140. package/docs/Microsoft.Quantum.Intrinsic/Rzz.md +1 -1
  141. package/docs/Microsoft.Quantum.Intrinsic/S.md +1 -1
  142. package/docs/Microsoft.Quantum.Intrinsic/SWAP.md +1 -1
  143. package/docs/Microsoft.Quantum.Intrinsic/SpreadZ.md +18 -0
  144. package/docs/Microsoft.Quantum.Intrinsic/T.md +1 -1
  145. package/docs/Microsoft.Quantum.Intrinsic/X.md +1 -1
  146. package/docs/Microsoft.Quantum.Intrinsic/Y.md +1 -1
  147. package/docs/Microsoft.Quantum.Intrinsic/Z.md +1 -1
  148. package/docs/Microsoft.Quantum.Logical/Xor.md +1 -1
  149. package/docs/Microsoft.Quantum.Math/AbsComplex.md +1 -1
  150. package/docs/Microsoft.Quantum.Math/AbsComplexPolar.md +1 -1
  151. package/docs/Microsoft.Quantum.Math/AbsD.md +1 -1
  152. package/docs/Microsoft.Quantum.Math/AbsI.md +1 -1
  153. package/docs/Microsoft.Quantum.Math/AbsL.md +1 -1
  154. package/docs/Microsoft.Quantum.Math/AbsSquaredComplex.md +1 -1
  155. package/docs/Microsoft.Quantum.Math/AbsSquaredComplexPolar.md +1 -1
  156. package/docs/Microsoft.Quantum.Math/ApproximateFactorial.md +1 -1
  157. package/docs/Microsoft.Quantum.Math/ArcCos.md +1 -1
  158. package/docs/Microsoft.Quantum.Math/ArcCosh.md +1 -1
  159. package/docs/Microsoft.Quantum.Math/ArcSin.md +1 -1
  160. package/docs/Microsoft.Quantum.Math/ArcSinh.md +1 -1
  161. package/docs/Microsoft.Quantum.Math/ArcTan.md +1 -1
  162. package/docs/Microsoft.Quantum.Math/ArcTan2.md +1 -1
  163. package/docs/Microsoft.Quantum.Math/ArcTanh.md +1 -1
  164. package/docs/Microsoft.Quantum.Math/ArgComplex.md +1 -1
  165. package/docs/Microsoft.Quantum.Math/ArgComplexPolar.md +1 -1
  166. package/docs/Microsoft.Quantum.Math/Binom.md +1 -1
  167. package/docs/Microsoft.Quantum.Math/BitSizeI.md +1 -1
  168. package/docs/Microsoft.Quantum.Math/BitSizeL.md +1 -1
  169. package/docs/Microsoft.Quantum.Math/Ceiling.md +1 -1
  170. package/docs/Microsoft.Quantum.Math/Complex.md +1 -1
  171. package/docs/Microsoft.Quantum.Math/ComplexPolar.md +1 -1
  172. package/docs/Microsoft.Quantum.Math/ContinuedFractionConvergentI.md +1 -1
  173. package/docs/Microsoft.Quantum.Math/ContinuedFractionConvergentL.md +1 -1
  174. package/docs/Microsoft.Quantum.Math/Cos.md +1 -1
  175. package/docs/Microsoft.Quantum.Math/Cosh.md +1 -1
  176. package/docs/Microsoft.Quantum.Math/DivRemI.md +1 -1
  177. package/docs/Microsoft.Quantum.Math/DivRemL.md +1 -1
  178. package/docs/Microsoft.Quantum.Math/DividedByC.md +1 -1
  179. package/docs/Microsoft.Quantum.Math/DividedByCP.md +1 -1
  180. package/docs/Microsoft.Quantum.Math/E.md +1 -1
  181. package/docs/Microsoft.Quantum.Math/ExpModI.md +1 -1
  182. package/docs/Microsoft.Quantum.Math/ExpModL.md +1 -1
  183. package/docs/Microsoft.Quantum.Math/ExtendedGreatestCommonDivisorI.md +1 -1
  184. package/docs/Microsoft.Quantum.Math/ExtendedGreatestCommonDivisorL.md +1 -1
  185. package/docs/Microsoft.Quantum.Math/ExtendedTruncation.md +18 -0
  186. package/docs/Microsoft.Quantum.Math/FactorialI.md +1 -1
  187. package/docs/Microsoft.Quantum.Math/FactorialL.md +1 -1
  188. package/docs/Microsoft.Quantum.Math/Floor.md +1 -1
  189. package/docs/Microsoft.Quantum.Math/GreatestCommonDivisorI.md +1 -1
  190. package/docs/Microsoft.Quantum.Math/GreatestCommonDivisorL.md +1 -1
  191. package/docs/Microsoft.Quantum.Math/HammingWeightI.md +1 -1
  192. package/docs/Microsoft.Quantum.Math/InverseModI.md +1 -1
  193. package/docs/Microsoft.Quantum.Math/InverseModL.md +1 -1
  194. package/docs/Microsoft.Quantum.Math/IsCoprimeI.md +1 -1
  195. package/docs/Microsoft.Quantum.Math/IsCoprimeL.md +1 -1
  196. package/docs/Microsoft.Quantum.Math/IsInfinite.md +1 -1
  197. package/docs/Microsoft.Quantum.Math/IsNaN.md +1 -1
  198. package/docs/Microsoft.Quantum.Math/LargestFixedPoint.md +1 -1
  199. package/docs/Microsoft.Quantum.Math/Lg.md +1 -1
  200. package/docs/Microsoft.Quantum.Math/Log.md +1 -1
  201. package/docs/Microsoft.Quantum.Math/Log10.md +1 -1
  202. package/docs/Microsoft.Quantum.Math/LogFactorialD.md +1 -1
  203. package/docs/Microsoft.Quantum.Math/LogGammaD.md +1 -1
  204. package/docs/Microsoft.Quantum.Math/LogOf2.md +1 -1
  205. package/docs/Microsoft.Quantum.Math/Max.md +1 -1
  206. package/docs/Microsoft.Quantum.Math/MaxD.md +1 -1
  207. package/docs/Microsoft.Quantum.Math/MaxI.md +1 -1
  208. package/docs/Microsoft.Quantum.Math/MaxL.md +1 -1
  209. package/docs/Microsoft.Quantum.Math/Min.md +1 -1
  210. package/docs/Microsoft.Quantum.Math/MinD.md +1 -1
  211. package/docs/Microsoft.Quantum.Math/MinI.md +1 -1
  212. package/docs/Microsoft.Quantum.Math/MinL.md +1 -1
  213. package/docs/Microsoft.Quantum.Math/MinusC.md +1 -1
  214. package/docs/Microsoft.Quantum.Math/MinusCP.md +1 -1
  215. package/docs/Microsoft.Quantum.Math/ModulusI.md +1 -1
  216. package/docs/Microsoft.Quantum.Math/ModulusL.md +1 -1
  217. package/docs/Microsoft.Quantum.Math/NegationC.md +1 -1
  218. package/docs/Microsoft.Quantum.Math/NegationCP.md +1 -1
  219. package/docs/Microsoft.Quantum.Math/PI.md +1 -1
  220. package/docs/Microsoft.Quantum.Math/PNorm.md +1 -1
  221. package/docs/Microsoft.Quantum.Math/PNormalized.md +1 -1
  222. package/docs/Microsoft.Quantum.Math/PlusC.md +1 -1
  223. package/docs/Microsoft.Quantum.Math/PlusCP.md +1 -1
  224. package/docs/Microsoft.Quantum.Math/PowC.md +1 -1
  225. package/docs/Microsoft.Quantum.Math/PowCAsCP.md +24 -0
  226. package/docs/Microsoft.Quantum.Math/PowCP.md +1 -1
  227. package/docs/Microsoft.Quantum.Math/RealMod.md +1 -1
  228. package/docs/Microsoft.Quantum.Math/Round.md +1 -1
  229. package/docs/Microsoft.Quantum.Math/SignD.md +1 -1
  230. package/docs/Microsoft.Quantum.Math/SignI.md +1 -1
  231. package/docs/Microsoft.Quantum.Math/SignL.md +1 -1
  232. package/docs/Microsoft.Quantum.Math/Sin.md +1 -1
  233. package/docs/Microsoft.Quantum.Math/Sinh.md +1 -1
  234. package/docs/Microsoft.Quantum.Math/SmallestFixedPoint.md +1 -1
  235. package/docs/Microsoft.Quantum.Math/Sqrt.md +1 -1
  236. package/docs/Microsoft.Quantum.Math/SquaredNorm.md +1 -1
  237. package/docs/Microsoft.Quantum.Math/Tan.md +1 -1
  238. package/docs/Microsoft.Quantum.Math/Tanh.md +1 -1
  239. package/docs/Microsoft.Quantum.Math/TimesC.md +1 -1
  240. package/docs/Microsoft.Quantum.Math/TimesCP.md +1 -1
  241. package/docs/Microsoft.Quantum.Math/TrailingZeroCountI.md +1 -1
  242. package/docs/Microsoft.Quantum.Math/TrailingZeroCountL.md +1 -1
  243. package/docs/Microsoft.Quantum.Math/Truncate.md +1 -1
  244. package/docs/Microsoft.Quantum.Measurement/MResetEachZ.md +1 -1
  245. package/docs/Microsoft.Quantum.Measurement/MResetX.md +1 -1
  246. package/docs/Microsoft.Quantum.Measurement/MResetY.md +1 -1
  247. package/docs/Microsoft.Quantum.Measurement/MResetZ.md +1 -1
  248. package/docs/Microsoft.Quantum.Measurement/MeasureAllZ.md +1 -1
  249. package/docs/Microsoft.Quantum.Measurement/MeasureEachZ.md +1 -1
  250. package/docs/Microsoft.Quantum.Measurement/MeasureInteger.md +1 -1
  251. package/docs/Microsoft.Quantum.ResourceEstimation/AccountForEstimates.md +1 -1
  252. package/docs/Microsoft.Quantum.ResourceEstimation/AuxQubitCount.md +1 -1
  253. package/docs/Microsoft.Quantum.ResourceEstimation/BeginEstimateCaching.md +1 -1
  254. package/docs/Microsoft.Quantum.ResourceEstimation/BeginRepeatEstimates.md +1 -1
  255. package/docs/Microsoft.Quantum.ResourceEstimation/CczCount.md +1 -1
  256. package/docs/Microsoft.Quantum.ResourceEstimation/EndEstimateCaching.md +1 -1
  257. package/docs/Microsoft.Quantum.ResourceEstimation/EndRepeatEstimates.md +1 -1
  258. package/docs/Microsoft.Quantum.ResourceEstimation/MeasurementCount.md +1 -1
  259. package/docs/Microsoft.Quantum.ResourceEstimation/PSSPCLayout.md +1 -1
  260. package/docs/Microsoft.Quantum.ResourceEstimation/RepeatEstimates.md +1 -1
  261. package/docs/Microsoft.Quantum.ResourceEstimation/RotationCount.md +1 -1
  262. package/docs/Microsoft.Quantum.ResourceEstimation/RotationDepth.md +1 -1
  263. package/docs/Microsoft.Quantum.ResourceEstimation/SingleVariant.md +1 -1
  264. package/docs/Microsoft.Quantum.ResourceEstimation/TCount.md +1 -1
  265. package/docs/Microsoft.Quantum.Unstable.Arithmetic/AddLE.md +1 -1
  266. package/docs/Microsoft.Quantum.Unstable.Arithmetic/ApplyActionIfGreaterThanOrEqualConstant.md +23 -0
  267. package/docs/Microsoft.Quantum.Unstable.Arithmetic/ApplyActionIfSumOverflows.md +23 -0
  268. package/docs/Microsoft.Quantum.Unstable.Arithmetic/ApplyAsSinglyControlled.md +24 -0
  269. package/docs/Microsoft.Quantum.Unstable.Arithmetic/ApplyIfEqualL.md +1 -1
  270. package/docs/Microsoft.Quantum.Unstable.Arithmetic/ApplyIfEqualLE.md +1 -1
  271. package/docs/Microsoft.Quantum.Unstable.Arithmetic/ApplyIfGreaterL.md +1 -1
  272. package/docs/Microsoft.Quantum.Unstable.Arithmetic/ApplyIfGreaterLE.md +1 -1
  273. package/docs/Microsoft.Quantum.Unstable.Arithmetic/ApplyIfGreaterOrEqualL.md +1 -1
  274. package/docs/Microsoft.Quantum.Unstable.Arithmetic/ApplyIfGreaterOrEqualLE.md +1 -1
  275. package/docs/Microsoft.Quantum.Unstable.Arithmetic/ApplyIfLessL.md +1 -1
  276. package/docs/Microsoft.Quantum.Unstable.Arithmetic/ApplyIfLessLE.md +1 -1
  277. package/docs/Microsoft.Quantum.Unstable.Arithmetic/ApplyIfLessOrEqualL.md +1 -1
  278. package/docs/Microsoft.Quantum.Unstable.Arithmetic/ApplyIfLessOrEqualLE.md +1 -1
  279. package/docs/Microsoft.Quantum.Unstable.Arithmetic/FourierTDIncByLE.md +1 -1
  280. package/docs/Microsoft.Quantum.Unstable.Arithmetic/IncByI.md +1 -1
  281. package/docs/Microsoft.Quantum.Unstable.Arithmetic/IncByIUsingIncByLE.md +1 -1
  282. package/docs/Microsoft.Quantum.Unstable.Arithmetic/IncByL.md +1 -1
  283. package/docs/Microsoft.Quantum.Unstable.Arithmetic/IncByLE.md +1 -1
  284. package/docs/Microsoft.Quantum.Unstable.Arithmetic/IncByLEUsingAddLE.md +1 -1
  285. package/docs/Microsoft.Quantum.Unstable.Arithmetic/IncByLUsingIncByLE.md +1 -1
  286. package/docs/Microsoft.Quantum.Unstable.Arithmetic/LookAheadDKRSAddLE.md +1 -1
  287. package/docs/Microsoft.Quantum.Unstable.Arithmetic/MAJ.md +1 -1
  288. package/docs/Microsoft.Quantum.Unstable.Arithmetic/PhaseGradient.md +18 -0
  289. package/docs/Microsoft.Quantum.Unstable.Arithmetic/ReflectAboutInteger.md +1 -1
  290. package/docs/Microsoft.Quantum.Unstable.Arithmetic/RippleCarryCGAddLE.md +1 -1
  291. package/docs/Microsoft.Quantum.Unstable.Arithmetic/RippleCarryCGIncByLE.md +1 -1
  292. package/docs/Microsoft.Quantum.Unstable.Arithmetic/RippleCarryTTKIncByLE.md +1 -1
  293. package/docs/Microsoft.Quantum.Unstable.StatePreparation/ApproximatelyPreparePureStateCP.md +1 -1
  294. package/docs/Microsoft.Quantum.Unstable.StatePreparation/PreparePureStateD.md +1 -1
  295. package/docs/Microsoft.Quantum.Unstable.TableLookup/EncodeUnary.md +18 -0
  296. package/docs/Microsoft.Quantum.Unstable.TableLookup/MustBeFixed.md +18 -0
  297. package/docs/Microsoft.Quantum.Unstable.TableLookup/Select.md +1 -1
  298. package/docs/Microsoft.Quantum.Unstable.TableLookup/Unlookup.md +22 -0
  299. package/docs/Microsoft.Quantum.Unstable.TableLookup/WriteMemoryContents.md +18 -0
  300. package/docs/toc.yml +31 -1
  301. package/lib/node/qsc_wasm.cjs +162 -158
  302. package/lib/node/qsc_wasm.d.cts +73 -36
  303. package/lib/node/qsc_wasm_bg.wasm +0 -0
  304. package/lib/web/qsc_wasm.d.ts +82 -45
  305. package/lib/web/qsc_wasm.js +152 -157
  306. package/lib/web/qsc_wasm_bg.wasm +0 -0
  307. package/package.json +1 -1
  308. package/ux/estimatesOverview.tsx +2 -0
  309. package/ux/estimatesPanel.tsx +2 -0
  310. package/ux/qsharp-ux.css +30 -5
  311. package/ux/saveImage.tsx +107 -0
  312. package/ux/saveImageUtil.tsx +72 -0
  313. package/ux/scatterChart.tsx +31 -0
  314. package/docs/Microsoft.Quantum.Intrinsic/AND.md +0 -33
@@ -110,15 +110,6 @@ function takeObject(idx) {
110
110
  return ret;
111
111
  }
112
112
 
113
- function addHeapObject(obj) {
114
- if (heap_next === heap.length) heap.push(heap.length + 1);
115
- const idx = heap_next;
116
- heap_next = heap[idx];
117
-
118
- heap[idx] = obj;
119
- return idx;
120
- }
121
-
122
113
  let cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
123
114
 
124
115
  cachedTextDecoder.decode();
@@ -128,6 +119,15 @@ function getStringFromWasm0(ptr, len) {
128
119
  return cachedTextDecoder.decode(getUint8Memory0().subarray(ptr, ptr + len));
129
120
  }
130
121
 
122
+ function addHeapObject(obj) {
123
+ if (heap_next === heap.length) heap.push(heap.length + 1);
124
+ const idx = heap_next;
125
+ heap_next = heap[idx];
126
+
127
+ heap[idx] = obj;
128
+ return idx;
129
+ }
130
+
131
131
  let cachedBigInt64Memory0 = null;
132
132
 
133
133
  function getBigInt64Memory0() {
@@ -232,10 +232,18 @@ function makeMutClosure(arg0, arg1, dtor, f) {
232
232
  CLOSURE_DTORS.register(real, state, state);
233
233
  return real;
234
234
  }
235
- function __wbg_adapter_54(arg0, arg1, arg2) {
235
+ function __wbg_adapter_52(arg0, arg1, arg2) {
236
236
  wasm.__wbindgen_export_3(arg0, arg1, addHeapObject(arg2));
237
237
  }
238
238
 
239
+ let stack_pointer = 128;
240
+
241
+ function addBorrowedObject(obj) {
242
+ if (stack_pointer == 1) throw new Error('out of js stack');
243
+ heap[--stack_pointer] = obj;
244
+ return stack_pointer;
245
+ }
246
+
239
247
  let cachedUint32Memory0 = null;
240
248
 
241
249
  function getUint32Memory0() {
@@ -245,6 +253,13 @@ function getUint32Memory0() {
245
253
  return cachedUint32Memory0;
246
254
  }
247
255
 
256
+ function passArray32ToWasm0(arg, malloc) {
257
+ const ptr = malloc(arg.length * 4, 4) >>> 0;
258
+ getUint32Memory0().set(arg, ptr / 4);
259
+ WASM_VECTOR_LEN = arg.length;
260
+ return ptr;
261
+ }
262
+
248
263
  function passArrayJsValueToWasm0(array, malloc) {
249
264
  const ptr = malloc(array.length * 4, 4) >>> 0;
250
265
  const mem = getUint32Memory0();
@@ -255,21 +270,6 @@ function passArrayJsValueToWasm0(array, malloc) {
255
270
  return ptr;
256
271
  }
257
272
 
258
- let stack_pointer = 128;
259
-
260
- function addBorrowedObject(obj) {
261
- if (stack_pointer == 1) throw new Error('out of js stack');
262
- heap[--stack_pointer] = obj;
263
- return stack_pointer;
264
- }
265
-
266
- function passArray32ToWasm0(arg, malloc) {
267
- const ptr = malloc(arg.length * 4, 4) >>> 0;
268
- getUint32Memory0().set(arg, ptr / 4);
269
- WASM_VECTOR_LEN = arg.length;
270
- return ptr;
271
- }
272
-
273
273
  function getArrayJsValueFromWasm0(ptr, len) {
274
274
  ptr = ptr >>> 0;
275
275
  const mem = getUint32Memory0();
@@ -305,6 +305,13 @@ module.exports.setLogLevel = function(level) {
305
305
  wasm.setLogLevel(level);
306
306
  };
307
307
 
308
+ function handleError(f, args) {
309
+ try {
310
+ return f.apply(this, args);
311
+ } catch (e) {
312
+ wasm.__wbindgen_export_5(addHeapObject(e));
313
+ }
314
+ }
308
315
  /**
309
316
  * @returns {string}
310
317
  */
@@ -326,100 +333,76 @@ module.exports.git_hash = function() {
326
333
  };
327
334
 
328
335
  /**
329
- * @param {(Array<any>)[]} sources
330
- * @param {(string)[]} language_features
331
- * @param {string} profile
336
+ * @param {IProgramConfig} program
332
337
  * @returns {string}
333
338
  */
334
- module.exports.get_qir = function(sources, language_features, profile) {
335
- let deferred5_0;
336
- let deferred5_1;
339
+ module.exports.get_qir = function(program) {
340
+ let deferred2_0;
341
+ let deferred2_1;
337
342
  try {
338
343
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
339
- const ptr0 = passArrayJsValueToWasm0(sources, wasm.__wbindgen_export_0);
340
- const len0 = WASM_VECTOR_LEN;
341
- const ptr1 = passArrayJsValueToWasm0(language_features, wasm.__wbindgen_export_0);
342
- const len1 = WASM_VECTOR_LEN;
343
- const ptr2 = passStringToWasm0(profile, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
344
- const len2 = WASM_VECTOR_LEN;
345
- wasm.get_qir(retptr, ptr0, len0, ptr1, len1, ptr2, len2);
344
+ wasm.get_qir(retptr, addHeapObject(program));
346
345
  var r0 = getInt32Memory0()[retptr / 4 + 0];
347
346
  var r1 = getInt32Memory0()[retptr / 4 + 1];
348
347
  var r2 = getInt32Memory0()[retptr / 4 + 2];
349
348
  var r3 = getInt32Memory0()[retptr / 4 + 3];
350
- var ptr4 = r0;
351
- var len4 = r1;
349
+ var ptr1 = r0;
350
+ var len1 = r1;
352
351
  if (r3) {
353
- ptr4 = 0; len4 = 0;
352
+ ptr1 = 0; len1 = 0;
354
353
  throw takeObject(r2);
355
354
  }
356
- deferred5_0 = ptr4;
357
- deferred5_1 = len4;
358
- return getStringFromWasm0(ptr4, len4);
355
+ deferred2_0 = ptr1;
356
+ deferred2_1 = len1;
357
+ return getStringFromWasm0(ptr1, len1);
359
358
  } finally {
360
359
  wasm.__wbindgen_add_to_stack_pointer(16);
361
- wasm.__wbindgen_export_4(deferred5_0, deferred5_1, 1);
360
+ wasm.__wbindgen_export_4(deferred2_0, deferred2_1, 1);
362
361
  }
363
362
  };
364
363
 
365
364
  /**
366
- * @param {(Array<any>)[]} sources
365
+ * @param {IProgramConfig} program
367
366
  * @param {string} params
368
- * @param {(string)[]} language_features
369
- * @param {string} targetProfile
370
367
  * @returns {string}
371
368
  */
372
- module.exports.get_estimates = function(sources, params, language_features, targetProfile) {
373
- let deferred6_0;
374
- let deferred6_1;
369
+ module.exports.get_estimates = function(program, params) {
370
+ let deferred3_0;
371
+ let deferred3_1;
375
372
  try {
376
373
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
377
- const ptr0 = passArrayJsValueToWasm0(sources, wasm.__wbindgen_export_0);
374
+ const ptr0 = passStringToWasm0(params, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
378
375
  const len0 = WASM_VECTOR_LEN;
379
- const ptr1 = passStringToWasm0(params, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
380
- const len1 = WASM_VECTOR_LEN;
381
- const ptr2 = passArrayJsValueToWasm0(language_features, wasm.__wbindgen_export_0);
382
- const len2 = WASM_VECTOR_LEN;
383
- const ptr3 = passStringToWasm0(targetProfile, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
384
- const len3 = WASM_VECTOR_LEN;
385
- wasm.get_estimates(retptr, ptr0, len0, ptr1, len1, ptr2, len2, ptr3, len3);
376
+ wasm.get_estimates(retptr, addHeapObject(program), ptr0, len0);
386
377
  var r0 = getInt32Memory0()[retptr / 4 + 0];
387
378
  var r1 = getInt32Memory0()[retptr / 4 + 1];
388
379
  var r2 = getInt32Memory0()[retptr / 4 + 2];
389
380
  var r3 = getInt32Memory0()[retptr / 4 + 3];
390
- var ptr5 = r0;
391
- var len5 = r1;
381
+ var ptr2 = r0;
382
+ var len2 = r1;
392
383
  if (r3) {
393
- ptr5 = 0; len5 = 0;
384
+ ptr2 = 0; len2 = 0;
394
385
  throw takeObject(r2);
395
386
  }
396
- deferred6_0 = ptr5;
397
- deferred6_1 = len5;
398
- return getStringFromWasm0(ptr5, len5);
387
+ deferred3_0 = ptr2;
388
+ deferred3_1 = len2;
389
+ return getStringFromWasm0(ptr2, len2);
399
390
  } finally {
400
391
  wasm.__wbindgen_add_to_stack_pointer(16);
401
- wasm.__wbindgen_export_4(deferred6_0, deferred6_1, 1);
392
+ wasm.__wbindgen_export_4(deferred3_0, deferred3_1, 1);
402
393
  }
403
394
  };
404
395
 
405
396
  /**
406
- * @param {(Array<any>)[]} sources
407
- * @param {string} targetProfile
408
- * @param {(string)[]} language_features
397
+ * @param {IProgramConfig} program
409
398
  * @param {boolean} simulate
410
399
  * @param {IOperationInfo | undefined} [operation]
411
400
  * @returns {any}
412
401
  */
413
- module.exports.get_circuit = function(sources, targetProfile, language_features, simulate, operation) {
402
+ module.exports.get_circuit = function(program, simulate, operation) {
414
403
  try {
415
404
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
416
- const ptr0 = passArrayJsValueToWasm0(sources, wasm.__wbindgen_export_0);
417
- const len0 = WASM_VECTOR_LEN;
418
- const ptr1 = passStringToWasm0(targetProfile, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
419
- const len1 = WASM_VECTOR_LEN;
420
- const ptr2 = passArrayJsValueToWasm0(language_features, wasm.__wbindgen_export_0);
421
- const len2 = WASM_VECTOR_LEN;
422
- wasm.get_circuit(retptr, ptr0, len0, ptr1, len1, ptr2, len2, simulate, isLikeNone(operation) ? 0 : addHeapObject(operation));
405
+ wasm.get_circuit(retptr, addHeapObject(program), simulate, isLikeNone(operation) ? 0 : addHeapObject(operation));
423
406
  var r0 = getInt32Memory0()[retptr / 4 + 0];
424
407
  var r1 = getInt32Memory0()[retptr / 4 + 1];
425
408
  var r2 = getInt32Memory0()[retptr / 4 + 2];
@@ -530,26 +513,18 @@ module.exports.get_hir = function(code, language_features, profile) {
530
513
  };
531
514
 
532
515
  /**
533
- * @param {(Array<any>)[]} sources
516
+ * @param {IProgramConfig} program
534
517
  * @param {string} expr
535
518
  * @param {Function} event_cb
536
519
  * @param {number} shots
537
- * @param {(string)[]} language_features
538
- * @param {string} profile
539
520
  * @returns {boolean}
540
521
  */
541
- module.exports.run = function(sources, expr, event_cb, shots, language_features, profile) {
522
+ module.exports.run = function(program, expr, event_cb, shots) {
542
523
  try {
543
524
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
544
- const ptr0 = passArrayJsValueToWasm0(sources, wasm.__wbindgen_export_0);
525
+ const ptr0 = passStringToWasm0(expr, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
545
526
  const len0 = WASM_VECTOR_LEN;
546
- const ptr1 = passStringToWasm0(expr, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
547
- const len1 = WASM_VECTOR_LEN;
548
- const ptr2 = passArrayJsValueToWasm0(language_features, wasm.__wbindgen_export_0);
549
- const len2 = WASM_VECTOR_LEN;
550
- const ptr3 = passStringToWasm0(profile, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
551
- const len3 = WASM_VECTOR_LEN;
552
- wasm.run(retptr, ptr0, len0, ptr1, len1, addBorrowedObject(event_cb), shots, ptr2, len2, ptr3, len3);
527
+ wasm.run(retptr, addHeapObject(program), ptr0, len0, addBorrowedObject(event_cb), shots);
553
528
  var r0 = getInt32Memory0()[retptr / 4 + 0];
554
529
  var r1 = getInt32Memory0()[retptr / 4 + 1];
555
530
  var r2 = getInt32Memory0()[retptr / 4 + 2];
@@ -581,39 +556,24 @@ module.exports.check_exercise_solution = function(solution_code, exercise_source
581
556
  };
582
557
 
583
558
  /**
584
- * @param {(Array<any>)[] | undefined} [additionalSources]
585
- * @param {string | undefined} [targetProfile]
586
- * @param {(string)[] | undefined} [languageFeatures]
559
+ * @param {IProgramConfig | undefined} [additional_program]
587
560
  * @returns {(IDocFile)[]}
588
561
  */
589
- module.exports.generate_docs = function(additionalSources, targetProfile, languageFeatures) {
562
+ module.exports.generate_docs = function(additional_program) {
590
563
  try {
591
564
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
592
- var ptr0 = isLikeNone(additionalSources) ? 0 : passArrayJsValueToWasm0(additionalSources, wasm.__wbindgen_export_0);
593
- var len0 = WASM_VECTOR_LEN;
594
- var ptr1 = isLikeNone(targetProfile) ? 0 : passStringToWasm0(targetProfile, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
595
- var len1 = WASM_VECTOR_LEN;
596
- var ptr2 = isLikeNone(languageFeatures) ? 0 : passArrayJsValueToWasm0(languageFeatures, wasm.__wbindgen_export_0);
597
- var len2 = WASM_VECTOR_LEN;
598
- wasm.generate_docs(retptr, ptr0, len0, ptr1, len1, ptr2, len2);
565
+ wasm.generate_docs(retptr, isLikeNone(additional_program) ? 0 : addHeapObject(additional_program));
599
566
  var r0 = getInt32Memory0()[retptr / 4 + 0];
600
567
  var r1 = getInt32Memory0()[retptr / 4 + 1];
601
- var v4 = getArrayJsValueFromWasm0(r0, r1).slice();
568
+ var v1 = getArrayJsValueFromWasm0(r0, r1).slice();
602
569
  wasm.__wbindgen_export_4(r0, r1 * 4, 4);
603
- return v4;
570
+ return v1;
604
571
  } finally {
605
572
  wasm.__wbindgen_add_to_stack_pointer(16);
606
573
  }
607
574
  };
608
575
 
609
- function handleError(f, args) {
610
- try {
611
- return f.apply(this, args);
612
- } catch (e) {
613
- wasm.__wbindgen_export_5(addHeapObject(e));
614
- }
615
- }
616
- function __wbg_adapter_176(arg0, arg1, arg2, arg3) {
576
+ function __wbg_adapter_194(arg0, arg1, arg2, arg3) {
617
577
  wasm.__wbindgen_export_6(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
618
578
  }
619
579
 
@@ -647,34 +607,26 @@ class DebugService {
647
607
  return this;
648
608
  }
649
609
  /**
650
- * @param {(Array<any>)[]} sources
651
- * @param {string} target_profile
652
- * @param {string | undefined} entry
653
- * @param {(string)[]} language_features
610
+ * @param {IProgramConfig} program
611
+ * @param {string | undefined} [entry]
654
612
  * @returns {string}
655
613
  */
656
- load_source(sources, target_profile, entry, language_features) {
657
- let deferred5_0;
658
- let deferred5_1;
614
+ load_program(program, entry) {
615
+ let deferred2_0;
616
+ let deferred2_1;
659
617
  try {
660
618
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
661
- const ptr0 = passArrayJsValueToWasm0(sources, wasm.__wbindgen_export_0);
662
- const len0 = WASM_VECTOR_LEN;
663
- const ptr1 = passStringToWasm0(target_profile, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
664
- const len1 = WASM_VECTOR_LEN;
665
- var ptr2 = isLikeNone(entry) ? 0 : passStringToWasm0(entry, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
666
- var len2 = WASM_VECTOR_LEN;
667
- const ptr3 = passArrayJsValueToWasm0(language_features, wasm.__wbindgen_export_0);
668
- const len3 = WASM_VECTOR_LEN;
669
- wasm.debugservice_load_source(retptr, this.__wbg_ptr, ptr0, len0, ptr1, len1, ptr2, len2, ptr3, len3);
619
+ var ptr0 = isLikeNone(entry) ? 0 : passStringToWasm0(entry, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
620
+ var len0 = WASM_VECTOR_LEN;
621
+ wasm.debugservice_load_program(retptr, this.__wbg_ptr, addHeapObject(program), ptr0, len0);
670
622
  var r0 = getInt32Memory0()[retptr / 4 + 0];
671
623
  var r1 = getInt32Memory0()[retptr / 4 + 1];
672
- deferred5_0 = r0;
673
- deferred5_1 = r1;
624
+ deferred2_0 = r0;
625
+ deferred2_1 = r1;
674
626
  return getStringFromWasm0(r0, r1);
675
627
  } finally {
676
628
  wasm.__wbindgen_add_to_stack_pointer(16);
677
- wasm.__wbindgen_export_4(deferred5_0, deferred5_1, 1);
629
+ wasm.__wbindgen_export_4(deferred2_0, deferred2_1, 1);
678
630
  }
679
631
  }
680
632
  /**
@@ -848,13 +800,11 @@ class LanguageService {
848
800
  }
849
801
  /**
850
802
  * @param {(uri: string, version: number | undefined, diagnostics: VSDiagnostic[]) => void} diagnostics_callback
851
- * @param {(uri: string) => Promise<string | null>} read_file
852
- * @param {(uri: string) => Promise<[string, number][]>} list_directory
853
- * @param {(uri: string) => Promise<{ manifestDirectory: string }| null>} get_manifest
803
+ * @param {IProjectHost} host
854
804
  * @returns {Promise<any>}
855
805
  */
856
- start_background_work(diagnostics_callback, read_file, list_directory, get_manifest) {
857
- const ret = wasm.languageservice_start_background_work(this.__wbg_ptr, addHeapObject(diagnostics_callback), addHeapObject(read_file), addHeapObject(list_directory), addHeapObject(get_manifest));
806
+ start_background_work(diagnostics_callback, host) {
807
+ const ret = wasm.languageservice_start_background_work(this.__wbg_ptr, addHeapObject(diagnostics_callback), addHeapObject(host));
858
808
  return takeObject(ret);
859
809
  }
860
810
  /**
@@ -1080,21 +1030,21 @@ class ProjectLoader {
1080
1030
  wasm.__wbg_projectloader_free(ptr);
1081
1031
  }
1082
1032
  /**
1083
- * @param {(uri: string) => Promise<string | null>} read_file
1084
- * @param {(uri: string) => Promise<[string, number][]>} list_directory
1085
- * @param {(uri: string) => Promise<{ manifestDirectory: string }| null>} get_manifest
1033
+ * @param {IProjectHost} project_host
1086
1034
  */
1087
- constructor(read_file, list_directory, get_manifest) {
1088
- const ret = wasm.projectloader_new(addHeapObject(read_file), addHeapObject(list_directory), addHeapObject(get_manifest));
1035
+ constructor(project_host) {
1036
+ const ret = wasm.projectloader_new(addHeapObject(project_host));
1089
1037
  this.__wbg_ptr = ret >>> 0;
1090
1038
  return this;
1091
1039
  }
1092
1040
  /**
1093
- * @param {{ manifestDirectory: string }} manifest
1094
- * @returns {Promise<[string, string][]>}
1041
+ * @param {string} directory
1042
+ * @returns {Promise<IProjectConfig>}
1095
1043
  */
1096
- load_project(manifest) {
1097
- const ret = wasm.projectloader_load_project(this.__wbg_ptr, addHeapObject(manifest));
1044
+ load_project_with_deps(directory) {
1045
+ const ptr0 = passStringToWasm0(directory, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
1046
+ const len0 = WASM_VECTOR_LEN;
1047
+ const ret = wasm.projectloader_load_project_with_deps(this.__wbg_ptr, ptr0, len0);
1098
1048
  return takeObject(ret);
1099
1049
  }
1100
1050
  }
@@ -1120,6 +1070,11 @@ module.exports.__wbindgen_object_drop_ref = function(arg0) {
1120
1070
  takeObject(arg0);
1121
1071
  };
1122
1072
 
1073
+ module.exports.__wbindgen_string_new = function(arg0, arg1) {
1074
+ const ret = getStringFromWasm0(arg0, arg1);
1075
+ return addHeapObject(ret);
1076
+ };
1077
+
1123
1078
  module.exports.__wbindgen_cb_drop = function(arg0) {
1124
1079
  const obj = takeObject(arg0).original;
1125
1080
  if (obj.cnt-- == 1) {
@@ -1187,11 +1142,6 @@ module.exports.__wbindgen_number_new = function(arg0) {
1187
1142
  return addHeapObject(ret);
1188
1143
  };
1189
1144
 
1190
- module.exports.__wbindgen_string_new = function(arg0, arg1) {
1191
- const ret = getStringFromWasm0(arg0, arg1);
1192
- return addHeapObject(ret);
1193
- };
1194
-
1195
1145
  module.exports.__wbg_getstacktracelimit_1795d5c8573c0904 = function(arg0) {
1196
1146
  const ret = Error.stackTraceLimit;
1197
1147
  getInt32Memory0()[arg0 / 4 + 1] = isLikeNone(ret) ? 0 : ret;
@@ -1215,9 +1165,17 @@ module.exports.__wbg_stack_3090cd8fd3702c6e = function(arg0, arg1) {
1215
1165
  getInt32Memory0()[arg0 / 4 + 0] = ptr1;
1216
1166
  };
1217
1167
 
1218
- module.exports.__wbindgen_is_null = function(arg0) {
1219
- const ret = getObject(arg0) === null;
1220
- return ret;
1168
+ module.exports.__wbg_profile_431ee5e29ff55ee3 = function(arg0, arg1) {
1169
+ const ret = getObject(arg1).profile;
1170
+ const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
1171
+ const len1 = WASM_VECTOR_LEN;
1172
+ getInt32Memory0()[arg0 / 4 + 1] = len1;
1173
+ getInt32Memory0()[arg0 / 4 + 0] = ptr1;
1174
+ };
1175
+
1176
+ module.exports.__wbg_packageGraphSources_612f292bc2b31ff9 = function(arg0) {
1177
+ const ret = getObject(arg0).packageGraphSources;
1178
+ return addHeapObject(ret);
1221
1179
  };
1222
1180
 
1223
1181
  module.exports.__wbindgen_is_function = function(arg0) {
@@ -1235,6 +1193,31 @@ module.exports.__wbindgen_object_clone_ref = function(arg0) {
1235
1193
  return addHeapObject(ret);
1236
1194
  };
1237
1195
 
1196
+ module.exports.__wbg_readFile_3776aacd85682587 = function() { return handleError(function (arg0, arg1, arg2) {
1197
+ const ret = getObject(arg0).readFile(getStringFromWasm0(arg1, arg2));
1198
+ return addHeapObject(ret);
1199
+ }, arguments) };
1200
+
1201
+ module.exports.__wbg_listDirectory_271976dbfbb2dc9f = function(arg0, arg1, arg2) {
1202
+ const ret = getObject(arg0).listDirectory(getStringFromWasm0(arg1, arg2));
1203
+ return addHeapObject(ret);
1204
+ };
1205
+
1206
+ module.exports.__wbg_resolvePath_674360b3ad1067f3 = function(arg0, arg1, arg2, arg3, arg4) {
1207
+ const ret = getObject(arg0).resolvePath(getStringFromWasm0(arg1, arg2), getStringFromWasm0(arg3, arg4));
1208
+ return addHeapObject(ret);
1209
+ };
1210
+
1211
+ module.exports.__wbg_fetchGithub_67eddbdd1e277279 = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8) {
1212
+ const ret = getObject(arg0).fetchGithub(getStringFromWasm0(arg1, arg2), getStringFromWasm0(arg3, arg4), getStringFromWasm0(arg5, arg6), getStringFromWasm0(arg7, arg8));
1213
+ return addHeapObject(ret);
1214
+ }, arguments) };
1215
+
1216
+ module.exports.__wbg_findManifestDirectory_1e22fa316acdbeff = function(arg0, arg1, arg2) {
1217
+ const ret = getObject(arg0).findManifestDirectory(getStringFromWasm0(arg1, arg2));
1218
+ return addHeapObject(ret);
1219
+ };
1220
+
1238
1221
  module.exports.__wbindgen_jsval_loose_eq = function(arg0, arg1) {
1239
1222
  const ret = getObject(arg0) == getObject(arg1);
1240
1223
  return ret;
@@ -1329,6 +1312,11 @@ module.exports.__wbg_newnoargs_e258087cd0daa0ea = function(arg0, arg1) {
1329
1312
  return addHeapObject(ret);
1330
1313
  };
1331
1314
 
1315
+ module.exports.__wbg_new_d9bc3a0147634640 = function() {
1316
+ const ret = new Map();
1317
+ return addHeapObject(ret);
1318
+ };
1319
+
1332
1320
  module.exports.__wbg_next_40fc327bfc8770e6 = function(arg0) {
1333
1321
  const ret = getObject(arg0).next;
1334
1322
  return addHeapObject(ret);
@@ -1378,15 +1366,21 @@ module.exports.__wbg_isArray_2ab64d95e09ea0ae = function(arg0) {
1378
1366
  return ret;
1379
1367
  };
1380
1368
 
1381
- module.exports.__wbg_push_a5b05aedc7234f9f = function(arg0, arg1) {
1382
- const ret = getObject(arg0).push(getObject(arg1));
1369
+ module.exports.__wbg_instanceof_ArrayBuffer_836825be07d4c9d2 = function(arg0) {
1370
+ let result;
1371
+ try {
1372
+ result = getObject(arg0) instanceof ArrayBuffer;
1373
+ } catch (_) {
1374
+ result = false;
1375
+ }
1376
+ const ret = result;
1383
1377
  return ret;
1384
1378
  };
1385
1379
 
1386
- module.exports.__wbg_instanceof_ArrayBuffer_836825be07d4c9d2 = function(arg0) {
1380
+ module.exports.__wbg_instanceof_Error_e20bb56fd5591a93 = function(arg0) {
1387
1381
  let result;
1388
1382
  try {
1389
- result = getObject(arg0) instanceof ArrayBuffer;
1383
+ result = getObject(arg0) instanceof Error;
1390
1384
  } catch (_) {
1391
1385
  result = false;
1392
1386
  }
@@ -1394,6 +1388,11 @@ module.exports.__wbg_instanceof_ArrayBuffer_836825be07d4c9d2 = function(arg0) {
1394
1388
  return ret;
1395
1389
  };
1396
1390
 
1391
+ module.exports.__wbg_message_5bf28016c2b49cfb = function(arg0) {
1392
+ const ret = getObject(arg0).message;
1393
+ return addHeapObject(ret);
1394
+ };
1395
+
1397
1396
  module.exports.__wbg_call_b3ca7c6051f9bec1 = function() { return handleError(function (arg0, arg1, arg2) {
1398
1397
  const ret = getObject(arg0).call(getObject(arg1), getObject(arg2));
1399
1398
  return addHeapObject(ret);
@@ -1415,6 +1414,11 @@ module.exports.__wbg_instanceof_Map_87917e0a7aaf4012 = function(arg0) {
1415
1414
  return ret;
1416
1415
  };
1417
1416
 
1417
+ module.exports.__wbg_set_8417257aaedc936b = function(arg0, arg1, arg2) {
1418
+ const ret = getObject(arg0).set(getObject(arg1), getObject(arg2));
1419
+ return addHeapObject(ret);
1420
+ };
1421
+
1418
1422
  module.exports.__wbg_isSafeInteger_f7b04ef02296c4d2 = function(arg0) {
1419
1423
  const ret = Number.isSafeInteger(getObject(arg0));
1420
1424
  return ret;
@@ -1437,7 +1441,7 @@ module.exports.__wbg_new_81740750da40724f = function(arg0, arg1) {
1437
1441
  const a = state0.a;
1438
1442
  state0.a = 0;
1439
1443
  try {
1440
- return __wbg_adapter_176(a, state0.b, arg0, arg1);
1444
+ return __wbg_adapter_194(a, state0.b, arg0, arg1);
1441
1445
  } finally {
1442
1446
  state0.a = a;
1443
1447
  }
@@ -1548,8 +1552,8 @@ module.exports.__wbindgen_memory = function() {
1548
1552
  return addHeapObject(ret);
1549
1553
  };
1550
1554
 
1551
- module.exports.__wbindgen_closure_wrapper759 = function(arg0, arg1, arg2) {
1552
- const ret = makeMutClosure(arg0, arg1, 308, __wbg_adapter_54);
1555
+ module.exports.__wbindgen_closure_wrapper908 = function(arg0, arg1, arg2) {
1556
+ const ret = makeMutClosure(arg0, arg1, 380, __wbg_adapter_52);
1553
1557
  return addHeapObject(ret);
1554
1558
  };
1555
1559