@nfdi4plants/arctrl 3.2.2 → 3.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (470) hide show
  1. package/README.md +0 -64
  2. package/dist/ts/index.d.ts +44 -7
  3. package/dist/ts/index.d.ts.map +1 -1
  4. package/dist/ts/index.js +45 -8
  5. package/dist/ts/node_modules/@fable-org/fable-library-ts/Array.js +195 -92
  6. package/dist/ts/node_modules/@fable-org/fable-library-ts/Async.js +251 -30
  7. package/dist/ts/node_modules/@fable-org/fable-library-ts/AsyncBuilder.js +61 -11
  8. package/dist/ts/node_modules/@fable-org/fable-library-ts/BigInt.js +15 -5
  9. package/dist/ts/node_modules/@fable-org/fable-library-ts/BitConverter.js +139 -0
  10. package/dist/ts/node_modules/@fable-org/fable-library-ts/Date.js +1 -1
  11. package/dist/ts/node_modules/@fable-org/fable-library-ts/Decimal.js +68 -12
  12. package/dist/ts/node_modules/@fable-org/fable-library-ts/Double.js +24 -10
  13. package/dist/ts/node_modules/@fable-org/fable-library-ts/FSharp.Core.js +8 -2
  14. package/dist/ts/node_modules/@fable-org/fable-library-ts/Global.js +1 -1
  15. package/dist/ts/node_modules/@fable-org/fable-library-ts/Int32.js +11 -2
  16. package/dist/ts/node_modules/@fable-org/fable-library-ts/List.js +220 -155
  17. package/dist/ts/node_modules/@fable-org/fable-library-ts/Long.js +7 -2
  18. package/dist/ts/node_modules/@fable-org/fable-library-ts/Map.js +46 -39
  19. package/dist/ts/node_modules/@fable-org/fable-library-ts/MutableMap.js +75 -92
  20. package/dist/ts/node_modules/@fable-org/fable-library-ts/MutableSet.js +56 -76
  21. package/dist/ts/node_modules/@fable-org/fable-library-ts/NumberStyles.js +54 -0
  22. package/dist/ts/node_modules/@fable-org/fable-library-ts/Numeric.js +10 -5
  23. package/dist/ts/node_modules/@fable-org/fable-library-ts/Random.js +3 -4
  24. package/dist/ts/node_modules/@fable-org/fable-library-ts/Range.js +4 -3
  25. package/dist/ts/node_modules/@fable-org/fable-library-ts/RegExp.js +2 -2
  26. package/dist/ts/node_modules/@fable-org/fable-library-ts/Seq.js +128 -64
  27. package/dist/ts/node_modules/@fable-org/fable-library-ts/Seq2.js +4 -8
  28. package/dist/ts/node_modules/@fable-org/fable-library-ts/Set.js +64 -57
  29. package/dist/ts/node_modules/@fable-org/fable-library-ts/String.js +68 -21
  30. package/dist/ts/node_modules/@fable-org/fable-library-ts/System.Collections.Generic.js +3 -2
  31. package/dist/ts/node_modules/@fable-org/fable-library-ts/System.Text.js +2 -2
  32. package/dist/ts/node_modules/@fable-org/fable-library-ts/System.js +5 -5
  33. package/dist/ts/node_modules/@fable-org/fable-library-ts/Types.js +23 -12
  34. package/dist/ts/node_modules/@fable-org/fable-library-ts/Util.js +88 -49
  35. package/dist/ts/node_modules/@fable-org/fable-library-ts/lib/big.js +121 -74
  36. package/dist/ts/ts/ARC.d.ts +22 -5
  37. package/dist/ts/ts/ARC.d.ts.map +1 -1
  38. package/dist/ts/ts/ARC.js +282 -185
  39. package/dist/ts/ts/CWL/CWLKnownFieldNames.d.ts +0 -2
  40. package/dist/ts/ts/CWL/CWLKnownFieldNames.d.ts.map +1 -1
  41. package/dist/ts/ts/CWL/CWLKnownFieldNames.js +1 -7
  42. package/dist/ts/ts/CWL/CWLProcessingUnit.d.ts +46 -27
  43. package/dist/ts/ts/CWL/CWLProcessingUnit.d.ts.map +1 -1
  44. package/dist/ts/ts/CWL/CWLProcessingUnit.js +312 -123
  45. package/dist/ts/ts/CWL/CWLTypes.d.ts +481 -148
  46. package/dist/ts/ts/CWL/CWLTypes.d.ts.map +1 -1
  47. package/dist/ts/ts/CWL/CWLTypes.js +887 -201
  48. package/dist/ts/ts/CWL/Decode.d.ts +480 -211
  49. package/dist/ts/ts/CWL/Decode.d.ts.map +1 -1
  50. package/dist/ts/ts/CWL/Decode.js +3614 -2462
  51. package/dist/ts/ts/CWL/DynamicObjHelpers.d.ts +9 -0
  52. package/dist/ts/ts/CWL/DynamicObjHelpers.d.ts.map +1 -1
  53. package/dist/ts/ts/CWL/DynamicObjHelpers.js +55 -5
  54. package/dist/ts/ts/CWL/Encode.d.ts +225 -85
  55. package/dist/ts/ts/CWL/Encode.d.ts.map +1 -1
  56. package/dist/ts/ts/CWL/Encode.js +1858 -970
  57. package/dist/ts/ts/CWL/ExpressionToolDescription.d.ts +42 -28
  58. package/dist/ts/ts/CWL/ExpressionToolDescription.d.ts.map +1 -1
  59. package/dist/ts/ts/CWL/ExpressionToolDescription.js +34 -13
  60. package/dist/ts/ts/CWL/HashHelpers.d.ts +38 -0
  61. package/dist/ts/ts/CWL/HashHelpers.d.ts.map +1 -1
  62. package/dist/ts/ts/CWL/HashHelpers.js +255 -6
  63. package/dist/ts/ts/CWL/Inputs.d.ts +127 -56
  64. package/dist/ts/ts/CWL/Inputs.d.ts.map +1 -1
  65. package/dist/ts/ts/CWL/Inputs.js +107 -16
  66. package/dist/ts/ts/CWL/OperationDescription.d.ts +41 -21
  67. package/dist/ts/ts/CWL/OperationDescription.d.ts.map +1 -1
  68. package/dist/ts/ts/CWL/OperationDescription.js +35 -9
  69. package/dist/ts/ts/CWL/Outputs.d.ts +93 -42
  70. package/dist/ts/ts/CWL/Outputs.d.ts.map +1 -1
  71. package/dist/ts/ts/CWL/Outputs.js +101 -19
  72. package/dist/ts/ts/CWL/ParameterReference.d.ts +11 -8
  73. package/dist/ts/ts/CWL/ParameterReference.d.ts.map +1 -1
  74. package/dist/ts/ts/CWL/ParameterReference.js +18 -25
  75. package/dist/ts/ts/CWL/ParameterValue.d.ts +15 -1
  76. package/dist/ts/ts/CWL/ParameterValue.d.ts.map +1 -1
  77. package/dist/ts/ts/CWL/ParameterValue.js +59 -35
  78. package/dist/ts/ts/CWL/Requirements.d.ts +240 -98
  79. package/dist/ts/ts/CWL/Requirements.d.ts.map +1 -1
  80. package/dist/ts/ts/CWL/Requirements.js +462 -89
  81. package/dist/ts/ts/CWL/ScalarQuoting.d.ts +51 -0
  82. package/dist/ts/ts/CWL/ScalarQuoting.d.ts.map +1 -0
  83. package/dist/ts/ts/CWL/ScalarQuoting.js +250 -0
  84. package/dist/ts/ts/CWL/ToolDescription.d.ts +63 -50
  85. package/dist/ts/ts/CWL/ToolDescription.d.ts.map +1 -1
  86. package/dist/ts/ts/CWL/ToolDescription.js +34 -13
  87. package/dist/ts/ts/CWL/WorkflowDescription.d.ts +45 -26
  88. package/dist/ts/ts/CWL/WorkflowDescription.d.ts.map +1 -1
  89. package/dist/ts/ts/CWL/WorkflowDescription.js +38 -11
  90. package/dist/ts/ts/CWL/WorkflowSteps.d.ts +248 -65
  91. package/dist/ts/ts/CWL/WorkflowSteps.d.ts.map +1 -1
  92. package/dist/ts/ts/CWL/WorkflowSteps.js +413 -43
  93. package/dist/ts/ts/CWLRunResolver.d.ts +30 -12
  94. package/dist/ts/ts/CWLRunResolver.d.ts.map +1 -1
  95. package/dist/ts/ts/CWLRunResolver.js +221 -86
  96. package/dist/ts/ts/Contract/ARC.d.ts.map +1 -1
  97. package/dist/ts/ts/Contract/ARC.js +13 -14
  98. package/dist/ts/ts/Contract/ArcAssay.d.ts.map +1 -1
  99. package/dist/ts/ts/Contract/ArcAssay.js +4 -4
  100. package/dist/ts/ts/Contract/ArcInvestigation.d.ts.map +1 -1
  101. package/dist/ts/ts/Contract/ArcInvestigation.js +3 -4
  102. package/dist/ts/ts/Contract/ArcRun.d.ts +12 -2
  103. package/dist/ts/ts/Contract/ArcRun.d.ts.map +1 -1
  104. package/dist/ts/ts/Contract/ArcRun.js +47 -20
  105. package/dist/ts/ts/Contract/ArcStudy.d.ts.map +1 -1
  106. package/dist/ts/ts/Contract/ArcStudy.js +4 -4
  107. package/dist/ts/ts/Contract/ArcWorkflow.d.ts +18 -4
  108. package/dist/ts/ts/Contract/ArcWorkflow.d.ts.map +1 -1
  109. package/dist/ts/ts/Contract/ArcWorkflow.js +55 -17
  110. package/dist/ts/ts/Contract/Datamap.d.ts.map +1 -1
  111. package/dist/ts/ts/Contract/Datamap.js +16 -17
  112. package/dist/ts/ts/Contract/Git.js +1 -1
  113. package/dist/ts/ts/Contract/ValidationPackagesConfig.d.ts.map +1 -1
  114. package/dist/ts/ts/Contract/ValidationPackagesConfig.js +4 -5
  115. package/dist/ts/ts/ContractIO/ContractIO.d.ts +7 -0
  116. package/dist/ts/ts/ContractIO/ContractIO.d.ts.map +1 -1
  117. package/dist/ts/ts/ContractIO/ContractIO.js +95 -18
  118. package/dist/ts/ts/ContractIO/FileSystemHelper.d.ts +1 -0
  119. package/dist/ts/ts/ContractIO/FileSystemHelper.d.ts.map +1 -1
  120. package/dist/ts/ts/ContractIO/FileSystemHelper.js +12 -5
  121. package/dist/ts/ts/Conversion/Assay.d.ts.map +1 -1
  122. package/dist/ts/ts/Conversion/Assay.js +26 -18
  123. package/dist/ts/ts/Conversion/Basic.d.ts +4 -0
  124. package/dist/ts/ts/Conversion/Basic.d.ts.map +1 -1
  125. package/dist/ts/ts/Conversion/Basic.js +55 -31
  126. package/dist/ts/ts/Conversion/ColumnIndex.d.ts.map +1 -1
  127. package/dist/ts/ts/Conversion/ColumnIndex.js +2 -4
  128. package/dist/ts/ts/Conversion/DateTime.d.ts.map +1 -1
  129. package/dist/ts/ts/Conversion/DateTime.js +1 -2
  130. package/dist/ts/ts/Conversion/Investigation.d.ts.map +1 -1
  131. package/dist/ts/ts/Conversion/Investigation.js +15 -14
  132. package/dist/ts/ts/Conversion/Person.js +11 -11
  133. package/dist/ts/ts/Conversion/Process.d.ts +4 -2
  134. package/dist/ts/ts/Conversion/Process.d.ts.map +1 -1
  135. package/dist/ts/ts/Conversion/Process.js +134 -97
  136. package/dist/ts/ts/Conversion/Run.d.ts +36 -6
  137. package/dist/ts/ts/Conversion/Run.d.ts.map +1 -1
  138. package/dist/ts/ts/Conversion/Run.js +320 -136
  139. package/dist/ts/ts/Conversion/ScholarlyArticle.d.ts.map +1 -1
  140. package/dist/ts/ts/Conversion/ScholarlyArticle.js +75 -9
  141. package/dist/ts/ts/Conversion/Study.d.ts.map +1 -1
  142. package/dist/ts/ts/Conversion/Study.js +23 -12
  143. package/dist/ts/ts/Conversion/Table.d.ts +3 -2
  144. package/dist/ts/ts/Conversion/Table.d.ts.map +1 -1
  145. package/dist/ts/ts/Conversion/Table.js +8 -8
  146. package/dist/ts/ts/Conversion/Workflow.d.ts +48 -9
  147. package/dist/ts/ts/Conversion/Workflow.d.ts.map +1 -1
  148. package/dist/ts/ts/Conversion/Workflow.js +655 -163
  149. package/dist/ts/ts/Conversion.js +6 -6
  150. package/dist/ts/ts/Core/ArcTypes.d.ts +73 -28
  151. package/dist/ts/ts/Core/ArcTypes.d.ts.map +1 -1
  152. package/dist/ts/ts/Core/ArcTypes.js +219 -129
  153. package/dist/ts/ts/Core/Comment.d.ts.map +1 -1
  154. package/dist/ts/ts/Core/Comment.js +2 -2
  155. package/dist/ts/ts/Core/CommentList.js +7 -7
  156. package/dist/ts/ts/Core/Conversion.d.ts.map +1 -1
  157. package/dist/ts/ts/Core/Conversion.js +68 -59
  158. package/dist/ts/ts/Core/Data.d.ts +6 -0
  159. package/dist/ts/ts/Core/Data.d.ts.map +1 -1
  160. package/dist/ts/ts/Core/Data.js +32 -12
  161. package/dist/ts/ts/Core/DataContext.d.ts +1 -1
  162. package/dist/ts/ts/Core/DataContext.d.ts.map +1 -1
  163. package/dist/ts/ts/Core/DataContext.js +4 -4
  164. package/dist/ts/ts/Core/DataFile.d.ts +11 -8
  165. package/dist/ts/ts/Core/DataFile.d.ts.map +1 -1
  166. package/dist/ts/ts/Core/DataFile.js +55 -61
  167. package/dist/ts/ts/Core/Datamap.d.ts.map +1 -1
  168. package/dist/ts/ts/Core/Datamap.js +2 -3
  169. package/dist/ts/ts/Core/Helper/Collections.d.ts.map +1 -1
  170. package/dist/ts/ts/Core/Helper/Collections.js +2 -4
  171. package/dist/ts/ts/Core/Helper/Identifier.d.ts.map +1 -1
  172. package/dist/ts/ts/Core/Helper/Identifier.js +12 -15
  173. package/dist/ts/ts/Core/Helper/ORCID.d.ts.map +1 -1
  174. package/dist/ts/ts/Core/Helper/ORCID.js +2 -3
  175. package/dist/ts/ts/Core/Helper/Regex.d.ts.map +1 -1
  176. package/dist/ts/ts/Core/Helper/Regex.js +52 -53
  177. package/dist/ts/ts/Core/Helper/SemVer.d.ts +13 -3
  178. package/dist/ts/ts/Core/Helper/SemVer.d.ts.map +1 -1
  179. package/dist/ts/ts/Core/Helper/SemVer.js +96 -6
  180. package/dist/ts/ts/Core/Helper/Url.d.ts.map +1 -1
  181. package/dist/ts/ts/Core/Helper/Url.js +1 -1
  182. package/dist/ts/ts/Core/OntologyAnnotation.js +22 -22
  183. package/dist/ts/ts/Core/Person.d.ts.map +1 -1
  184. package/dist/ts/ts/Core/Person.js +2 -2
  185. package/dist/ts/ts/Core/Process/ColumnIndex.d.ts.map +1 -1
  186. package/dist/ts/ts/Core/Process/ColumnIndex.js +10 -12
  187. package/dist/ts/ts/Core/Process/Component.d.ts.map +1 -1
  188. package/dist/ts/ts/Core/Process/Component.js +22 -22
  189. package/dist/ts/ts/Core/Process/Factor.d.ts.map +1 -1
  190. package/dist/ts/ts/Core/Process/Factor.js +7 -7
  191. package/dist/ts/ts/Core/Process/FactorValue.d.ts.map +1 -1
  192. package/dist/ts/ts/Core/Process/FactorValue.js +15 -15
  193. package/dist/ts/ts/Core/Process/Material.d.ts.map +1 -1
  194. package/dist/ts/ts/Core/Process/Material.js +2 -2
  195. package/dist/ts/ts/Core/Process/MaterialAttribute.d.ts.map +1 -1
  196. package/dist/ts/ts/Core/Process/MaterialAttribute.js +6 -6
  197. package/dist/ts/ts/Core/Process/MaterialAttributeValue.d.ts.map +1 -1
  198. package/dist/ts/ts/Core/Process/MaterialAttributeValue.js +16 -16
  199. package/dist/ts/ts/Core/Process/Process.js +21 -21
  200. package/dist/ts/ts/Core/Process/ProcessInput.d.ts.map +1 -1
  201. package/dist/ts/ts/Core/Process/ProcessInput.js +2 -2
  202. package/dist/ts/ts/Core/Process/ProcessOutput.d.ts.map +1 -1
  203. package/dist/ts/ts/Core/Process/ProcessOutput.js +2 -2
  204. package/dist/ts/ts/Core/Process/ProcessParameterValue.d.ts.map +1 -1
  205. package/dist/ts/ts/Core/Process/ProcessParameterValue.js +17 -17
  206. package/dist/ts/ts/Core/Process/ProcessSequence.js +4 -4
  207. package/dist/ts/ts/Core/Process/Protocol.d.ts.map +1 -1
  208. package/dist/ts/ts/Core/Process/Protocol.js +9 -9
  209. package/dist/ts/ts/Core/Process/ProtocolParameter.d.ts.map +1 -1
  210. package/dist/ts/ts/Core/Process/ProtocolParameter.js +6 -6
  211. package/dist/ts/ts/Core/Publication.d.ts.map +1 -1
  212. package/dist/ts/ts/Core/Publication.js +3 -3
  213. package/dist/ts/ts/Core/ScalarValue.d.ts.map +1 -1
  214. package/dist/ts/ts/Core/ScalarValue.js +9 -13
  215. package/dist/ts/ts/Core/Table/ArcTable.d.ts.map +1 -1
  216. package/dist/ts/ts/Core/Table/ArcTable.js +18 -18
  217. package/dist/ts/ts/Core/Table/ArcTableAux.d.ts +1 -1
  218. package/dist/ts/ts/Core/Table/ArcTableAux.d.ts.map +1 -1
  219. package/dist/ts/ts/Core/Table/ArcTableAux.js +59 -70
  220. package/dist/ts/ts/Core/Table/ArcTables.js +16 -16
  221. package/dist/ts/ts/Core/Table/CompositeCell.d.ts +4 -0
  222. package/dist/ts/ts/Core/Table/CompositeCell.d.ts.map +1 -1
  223. package/dist/ts/ts/Core/Table/CompositeCell.js +39 -2
  224. package/dist/ts/ts/Core/Table/CompositeHeader.d.ts.map +1 -1
  225. package/dist/ts/ts/Core/Table/CompositeHeader.js +5 -6
  226. package/dist/ts/ts/Core/Templates.d.ts.map +1 -1
  227. package/dist/ts/ts/Core/Templates.js +2 -2
  228. package/dist/ts/ts/FileSystem/Path.d.ts +13 -2
  229. package/dist/ts/ts/FileSystem/Path.d.ts.map +1 -1
  230. package/dist/ts/ts/FileSystem/Path.js +37 -19
  231. package/dist/ts/ts/Json/Assay.js +22 -22
  232. package/dist/ts/ts/Json/Comment.js +9 -9
  233. package/dist/ts/ts/Json/Data.d.ts.map +1 -1
  234. package/dist/ts/ts/Json/Data.js +11 -11
  235. package/dist/ts/ts/Json/Datamap/DataContext.js +2 -2
  236. package/dist/ts/ts/Json/Decode.d.ts.map +1 -1
  237. package/dist/ts/ts/Json/Decode.js +3 -5
  238. package/dist/ts/ts/Json/Encode.js +2 -2
  239. package/dist/ts/ts/Json/Investigation.d.ts.map +1 -1
  240. package/dist/ts/ts/Json/Investigation.js +20 -20
  241. package/dist/ts/ts/Json/OntologyAnnotation.d.ts.map +1 -1
  242. package/dist/ts/ts/Json/OntologyAnnotation.js +18 -18
  243. package/dist/ts/ts/Json/OntologySourceReference.d.ts.map +1 -1
  244. package/dist/ts/ts/Json/OntologySourceReference.js +9 -9
  245. package/dist/ts/ts/Json/Person.d.ts.map +1 -1
  246. package/dist/ts/ts/Json/Person.js +20 -20
  247. package/dist/ts/ts/Json/Process/AssayMaterials.d.ts.map +1 -1
  248. package/dist/ts/ts/Json/Process/AssayMaterials.js +1 -2
  249. package/dist/ts/ts/Json/Process/Component.d.ts.map +1 -1
  250. package/dist/ts/ts/Json/Process/Component.js +5 -6
  251. package/dist/ts/ts/Json/Process/Factor.d.ts.map +1 -1
  252. package/dist/ts/ts/Json/Process/Factor.js +7 -7
  253. package/dist/ts/ts/Json/Process/FactorValue.d.ts.map +1 -1
  254. package/dist/ts/ts/Json/Process/FactorValue.js +2 -3
  255. package/dist/ts/ts/Json/Process/Material.d.ts.map +1 -1
  256. package/dist/ts/ts/Json/Process/Material.js +9 -10
  257. package/dist/ts/ts/Json/Process/MaterialAttribute.d.ts.map +1 -1
  258. package/dist/ts/ts/Json/Process/MaterialAttribute.js +5 -6
  259. package/dist/ts/ts/Json/Process/MaterialAttributeValue.d.ts.map +1 -1
  260. package/dist/ts/ts/Json/Process/MaterialAttributeValue.js +2 -3
  261. package/dist/ts/ts/Json/Process/Process.d.ts.map +1 -1
  262. package/dist/ts/ts/Json/Process/Process.js +8 -9
  263. package/dist/ts/ts/Json/Process/ProcessParameterValue.d.ts.map +1 -1
  264. package/dist/ts/ts/Json/Process/ProcessParameterValue.js +1 -2
  265. package/dist/ts/ts/Json/Process/Protocol.d.ts.map +1 -1
  266. package/dist/ts/ts/Json/Process/Protocol.js +17 -17
  267. package/dist/ts/ts/Json/Process/ProtocolParameter.d.ts.map +1 -1
  268. package/dist/ts/ts/Json/Process/ProtocolParameter.js +6 -6
  269. package/dist/ts/ts/Json/Process/Sample.d.ts.map +1 -1
  270. package/dist/ts/ts/Json/Process/Sample.js +9 -9
  271. package/dist/ts/ts/Json/Process/Source.d.ts.map +1 -1
  272. package/dist/ts/ts/Json/Process/Source.js +10 -11
  273. package/dist/ts/ts/Json/Process/StudyMaterials.d.ts.map +1 -1
  274. package/dist/ts/ts/Json/Process/StudyMaterials.js +1 -2
  275. package/dist/ts/ts/Json/PropertyValue.d.ts.map +1 -1
  276. package/dist/ts/ts/Json/PropertyValue.js +24 -24
  277. package/dist/ts/ts/Json/Publication.d.ts.map +1 -1
  278. package/dist/ts/ts/Json/Publication.js +10 -10
  279. package/dist/ts/ts/Json/ROCrate/LDContext.js +1 -2
  280. package/dist/ts/ts/Json/ROCrate/LDGraph.js +2 -2
  281. package/dist/ts/ts/Json/ROCrate/LDNode.js +5 -5
  282. package/dist/ts/ts/Json/Run.js +9 -9
  283. package/dist/ts/ts/Json/StringTable.d.ts.map +1 -1
  284. package/dist/ts/ts/Json/StringTable.js +4 -7
  285. package/dist/ts/ts/Json/Study.js +20 -20
  286. package/dist/ts/ts/Json/Table/CellTable.js +1 -2
  287. package/dist/ts/ts/Json/Table/OATable.js +1 -2
  288. package/dist/ts/ts/Json/Workflow.js +9 -9
  289. package/dist/ts/ts/Json.d.ts +121 -1
  290. package/dist/ts/ts/Json.d.ts.map +1 -1
  291. package/dist/ts/ts/Json.js +310 -2
  292. package/dist/ts/ts/JsonIO/Comment.d.ts +15 -0
  293. package/dist/ts/ts/JsonIO/Comment.d.ts.map +1 -0
  294. package/dist/ts/ts/JsonIO/Comment.js +67 -0
  295. package/dist/ts/ts/JsonIO/Data.d.ts +9 -0
  296. package/dist/ts/ts/JsonIO/Data.d.ts.map +1 -0
  297. package/dist/ts/ts/JsonIO/Data.js +49 -0
  298. package/dist/ts/ts/JsonIO/DataFile.d.ts +9 -0
  299. package/dist/ts/ts/JsonIO/DataFile.d.ts.map +1 -0
  300. package/dist/ts/ts/JsonIO/DataFile.js +48 -0
  301. package/dist/ts/ts/JsonIO/LDObject.d.ts +6 -0
  302. package/dist/ts/ts/JsonIO/LDObject.d.ts.map +1 -1
  303. package/dist/ts/ts/JsonIO/LDObject.js +173 -17
  304. package/dist/ts/ts/JsonIO/OntologySourceReference.d.ts +15 -0
  305. package/dist/ts/ts/JsonIO/OntologySourceReference.d.ts.map +1 -0
  306. package/dist/ts/ts/JsonIO/OntologySourceReference.js +67 -0
  307. package/dist/ts/ts/JsonIO/Publication.d.ts +15 -0
  308. package/dist/ts/ts/JsonIO/Publication.d.ts.map +1 -0
  309. package/dist/ts/ts/JsonIO/Publication.js +68 -0
  310. package/dist/ts/ts/JsonIO/Table/ArcTable.d.ts +9 -0
  311. package/dist/ts/ts/JsonIO/Table/ArcTable.d.ts.map +1 -0
  312. package/dist/ts/ts/JsonIO/Table/ArcTable.js +74 -0
  313. package/dist/ts/ts/JsonIO/Table/CompositeCell.d.ts +6 -0
  314. package/dist/ts/ts/JsonIO/Table/CompositeCell.d.ts.map +1 -0
  315. package/dist/ts/ts/JsonIO/Table/CompositeCell.js +29 -0
  316. package/dist/ts/ts/JsonIO/Table/CompositeHeader.d.ts +6 -0
  317. package/dist/ts/ts/JsonIO/Table/CompositeHeader.d.ts.map +1 -0
  318. package/dist/ts/ts/JsonIO/Table/CompositeHeader.js +29 -0
  319. package/dist/ts/ts/JsonIO/Table/IOType.d.ts +6 -0
  320. package/dist/ts/ts/JsonIO/Table/IOType.d.ts.map +1 -0
  321. package/dist/ts/ts/JsonIO/Table/IOType.js +29 -0
  322. package/dist/ts/ts/License.d.ts.map +1 -1
  323. package/dist/ts/ts/License.js +6 -6
  324. package/dist/ts/ts/ROCrate/LDContext.d.ts.map +1 -1
  325. package/dist/ts/ts/ROCrate/LDContext.js +31 -39
  326. package/dist/ts/ts/ROCrate/LDObject.d.ts.map +1 -1
  327. package/dist/ts/ts/ROCrate/LDObject.js +56 -49
  328. package/dist/ts/ts/ROCrate/LDTypes/Comment.js +2 -2
  329. package/dist/ts/ts/ROCrate/LDTypes/ComputationalWorkflow.js +3 -3
  330. package/dist/ts/ts/ROCrate/LDTypes/ComputerLanguage.js +2 -2
  331. package/dist/ts/ts/ROCrate/LDTypes/CreateAction.js +5 -5
  332. package/dist/ts/ts/ROCrate/LDTypes/CreativeWork.d.ts +1 -0
  333. package/dist/ts/ts/ROCrate/LDTypes/CreativeWork.d.ts.map +1 -1
  334. package/dist/ts/ts/ROCrate/LDTypes/CreativeWork.js +3 -0
  335. package/dist/ts/ts/ROCrate/LDTypes/Dataset.d.ts.map +1 -1
  336. package/dist/ts/ts/ROCrate/LDTypes/Dataset.js +22 -17
  337. package/dist/ts/ts/ROCrate/LDTypes/DefinedTerm.js +2 -2
  338. package/dist/ts/ts/ROCrate/LDTypes/File.js +5 -5
  339. package/dist/ts/ts/ROCrate/LDTypes/FormalParameter.js +2 -2
  340. package/dist/ts/ts/ROCrate/LDTypes/LabProcess.js +9 -9
  341. package/dist/ts/ts/ROCrate/LDTypes/LabProtocol.js +4 -4
  342. package/dist/ts/ts/ROCrate/LDTypes/Organization.js +1 -1
  343. package/dist/ts/ts/ROCrate/LDTypes/Person.js +7 -7
  344. package/dist/ts/ts/ROCrate/LDTypes/PostalAddress.js +1 -1
  345. package/dist/ts/ts/ROCrate/LDTypes/PropertyValue.d.ts.map +1 -1
  346. package/dist/ts/ts/ROCrate/LDTypes/PropertyValue.js +45 -48
  347. package/dist/ts/ts/ROCrate/LDTypes/Sample.js +3 -3
  348. package/dist/ts/ts/ROCrate/LDTypes/ScholarlyArticle.js +4 -4
  349. package/dist/ts/ts/ROCrate/LDTypes/SoftwareSourceCode.js +3 -3
  350. package/dist/ts/ts/ROCrate/LDTypes/WorkflowInvocation.js +3 -3
  351. package/dist/ts/ts/ROCrate/LDTypes/WorkflowProtocol.js +2 -2
  352. package/dist/ts/ts/ROCrateIO.d.ts +18 -4
  353. package/dist/ts/ts/ROCrateIO.d.ts.map +1 -1
  354. package/dist/ts/ts/ROCrateIO.js +49 -38
  355. package/dist/ts/ts/Spreadsheet/AnnotationTable/ArcTable.d.ts.map +1 -1
  356. package/dist/ts/ts/Spreadsheet/AnnotationTable/ArcTable.js +9 -10
  357. package/dist/ts/ts/Spreadsheet/AnnotationTable/CompositeCell.d.ts.map +1 -1
  358. package/dist/ts/ts/Spreadsheet/AnnotationTable/CompositeCell.js +7 -7
  359. package/dist/ts/ts/Spreadsheet/AnnotationTable/CompositeColumn.d.ts.map +1 -1
  360. package/dist/ts/ts/Spreadsheet/AnnotationTable/CompositeColumn.js +6 -8
  361. package/dist/ts/ts/Spreadsheet/AnnotationTable/CompositeHeader.js +20 -20
  362. package/dist/ts/ts/Spreadsheet/ArcAssay.d.ts.map +1 -1
  363. package/dist/ts/ts/Spreadsheet/ArcAssay.js +7 -7
  364. package/dist/ts/ts/Spreadsheet/ArcInvestigation.d.ts.map +1 -1
  365. package/dist/ts/ts/Spreadsheet/ArcInvestigation.js +10 -12
  366. package/dist/ts/ts/Spreadsheet/ArcRun.d.ts.map +1 -1
  367. package/dist/ts/ts/Spreadsheet/ArcRun.js +5 -6
  368. package/dist/ts/ts/Spreadsheet/ArcStudy.d.ts.map +1 -1
  369. package/dist/ts/ts/Spreadsheet/ArcStudy.js +3 -3
  370. package/dist/ts/ts/Spreadsheet/ArcWorkflow.d.ts.map +1 -1
  371. package/dist/ts/ts/Spreadsheet/ArcWorkflow.js +5 -6
  372. package/dist/ts/ts/Spreadsheet/CollectionAux.d.ts.map +1 -1
  373. package/dist/ts/ts/Spreadsheet/CollectionAux.js +10 -14
  374. package/dist/ts/ts/Spreadsheet/Datamap.js +1 -2
  375. package/dist/ts/ts/Spreadsheet/DatamapTable/DatamapColumn.js +3 -3
  376. package/dist/ts/ts/Spreadsheet/DatamapTable/DatamapHeader.js +10 -10
  377. package/dist/ts/ts/Spreadsheet/DatamapTable/DatamapTable.d.ts.map +1 -1
  378. package/dist/ts/ts/Spreadsheet/DatamapTable/DatamapTable.js +9 -10
  379. package/dist/ts/ts/Spreadsheet/Metadata/Assays.d.ts.map +1 -1
  380. package/dist/ts/ts/Spreadsheet/Metadata/Assays.js +8 -10
  381. package/dist/ts/ts/Spreadsheet/Metadata/Comment.d.ts +8 -0
  382. package/dist/ts/ts/Spreadsheet/Metadata/Comment.d.ts.map +1 -1
  383. package/dist/ts/ts/Spreadsheet/Metadata/Comment.js +18 -7
  384. package/dist/ts/ts/Spreadsheet/Metadata/Contacts.d.ts.map +1 -1
  385. package/dist/ts/ts/Spreadsheet/Metadata/Contacts.js +4 -6
  386. package/dist/ts/ts/Spreadsheet/Metadata/Factors.d.ts.map +1 -1
  387. package/dist/ts/ts/Spreadsheet/Metadata/Factors.js +6 -8
  388. package/dist/ts/ts/Spreadsheet/Metadata/OntologyAnnotation.d.ts.map +1 -1
  389. package/dist/ts/ts/Spreadsheet/Metadata/OntologyAnnotation.js +5 -7
  390. package/dist/ts/ts/Spreadsheet/Metadata/OntologySourceReference.d.ts.map +1 -1
  391. package/dist/ts/ts/Spreadsheet/Metadata/OntologySourceReference.js +2 -4
  392. package/dist/ts/ts/Spreadsheet/Metadata/Protocols.d.ts.map +1 -1
  393. package/dist/ts/ts/Spreadsheet/Metadata/Protocols.js +7 -9
  394. package/dist/ts/ts/Spreadsheet/Metadata/Publication.d.ts.map +1 -1
  395. package/dist/ts/ts/Spreadsheet/Metadata/Publication.js +6 -8
  396. package/dist/ts/ts/Spreadsheet/Metadata/Run.d.ts +1 -1
  397. package/dist/ts/ts/Spreadsheet/Metadata/Run.d.ts.map +1 -1
  398. package/dist/ts/ts/Spreadsheet/Metadata/Run.js +9 -11
  399. package/dist/ts/ts/Spreadsheet/Metadata/SparseTable.d.ts.map +1 -1
  400. package/dist/ts/ts/Spreadsheet/Metadata/SparseTable.js +17 -17
  401. package/dist/ts/ts/Spreadsheet/Metadata/Study.d.ts.map +1 -1
  402. package/dist/ts/ts/Spreadsheet/Metadata/Study.js +10 -12
  403. package/dist/ts/ts/Spreadsheet/Metadata/Workflow.d.ts.map +1 -1
  404. package/dist/ts/ts/Spreadsheet/Metadata/Workflow.js +7 -9
  405. package/dist/ts/ts/WorkflowGraph/Adapters.d.ts +1 -1
  406. package/dist/ts/ts/WorkflowGraph/Adapters.d.ts.map +1 -1
  407. package/dist/ts/ts/WorkflowGraph/Adapters.js +5 -6
  408. package/dist/ts/ts/WorkflowGraph/Builder.d.ts +25 -6
  409. package/dist/ts/ts/WorkflowGraph/Builder.d.ts.map +1 -1
  410. package/dist/ts/ts/WorkflowGraph/Builder.js +264 -138
  411. package/dist/ts/ts/WorkflowGraph/GraphTypes.d.ts +6 -0
  412. package/dist/ts/ts/WorkflowGraph/GraphTypes.d.ts.map +1 -1
  413. package/dist/ts/ts/WorkflowGraph/GraphTypes.js +4 -1
  414. package/dist/ts/ts/WorkflowGraph/ReferenceParsing.d.ts +8 -5
  415. package/dist/ts/ts/WorkflowGraph/ReferenceParsing.d.ts.map +1 -1
  416. package/dist/ts/ts/WorkflowGraph/ReferenceParsing.js +27 -10
  417. package/dist/ts/ts/Xlsx.js +3 -3
  418. package/dist/ts/ts/Yaml/ValidationPackage.d.ts +3 -3
  419. package/dist/ts/ts/Yaml/ValidationPackage.d.ts.map +1 -1
  420. package/dist/ts/ts/Yaml/ValidationPackage.js +11 -23
  421. package/dist/ts/ts/Yaml/ValidationPackagesConfig.d.ts +3 -3
  422. package/dist/ts/ts/Yaml/ValidationPackagesConfig.d.ts.map +1 -1
  423. package/dist/ts/ts/Yaml/ValidationPackagesConfig.js +11 -23
  424. package/dist/ts/ts/fable_modules/DynamicObj.8.0.0/DynamicObj.fs.js +16 -20
  425. package/dist/ts/ts/fable_modules/DynamicObj.8.0.0/FableJS.fs.js +1 -1
  426. package/dist/ts/ts/fable_modules/DynamicObj.8.0.0/ReflectionUtils.fs.js +8 -8
  427. package/dist/ts/ts/fable_modules/Fable.Promise.3.2.0/Promise.fs.js +1 -2
  428. package/dist/ts/ts/fable_modules/Fable.SimpleHttp.3.6.0/Http.fs.js +4 -4
  429. package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.1/Cells/FsCell.fs.js +8 -8
  430. package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.1/Cells/FsCellsCollection.fs.js +18 -18
  431. package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.1/FsAddress.fs.js +3 -3
  432. package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.1/FsWorkbook.fs.js +1 -1
  433. package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.1/FsWorksheet.fs.js +7 -7
  434. package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.1/Json/Value.fs.js +3 -5
  435. package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.1/Json/Worksheet.fs.js +7 -7
  436. package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.1/Ranges/FsRangeBase.fs.js +1 -2
  437. package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.1/Tables/FsTable.fs.js +7 -7
  438. package/dist/ts/ts/fable_modules/FsSpreadsheet.Js.7.0.1/Cell.fs.js +2 -2
  439. package/dist/ts/ts/fable_modules/FsSpreadsheet.Js.7.0.1/Table.fs.js +1 -2
  440. package/dist/ts/ts/fable_modules/Thoth.Json.Core.0.9.1/Decode.fs.js +49 -71
  441. package/dist/ts/ts/fable_modules/Thoth.Json.Core.0.9.1/Encode.fs.js +1 -1
  442. package/dist/ts/ts/fable_modules/Thoth.Json.JavaScript.0.5.0/Decode.fs.js +1 -2
  443. package/dist/ts/ts/fable_modules/YAMLicious.2.0.0/Compare.fs.js +857 -0
  444. package/dist/ts/ts/fable_modules/YAMLicious.2.0.0/CoreSchema.fs.js +725 -0
  445. package/dist/ts/ts/fable_modules/YAMLicious.2.0.0/Decode.fs.js +1175 -0
  446. package/dist/ts/ts/fable_modules/YAMLicious.2.0.0/Encode.fs.js +123 -0
  447. package/dist/ts/ts/fable_modules/YAMLicious.2.0.0/Layout.fs.js +282 -0
  448. package/dist/ts/ts/fable_modules/YAMLicious.2.0.0/Lexeme.fs.js +203 -0
  449. package/dist/ts/ts/fable_modules/YAMLicious.2.0.0/Lexer.fs.js +1502 -0
  450. package/dist/ts/ts/fable_modules/YAMLicious.2.0.0/Model.fs.js +564 -0
  451. package/dist/ts/ts/fable_modules/YAMLicious.2.0.0/Node.fs.js +453 -0
  452. package/dist/ts/ts/fable_modules/YAMLicious.2.0.0/Parser.fs.js +2622 -0
  453. package/dist/ts/ts/fable_modules/YAMLicious.2.0.0/Reader.fs.js +108 -0
  454. package/dist/ts/ts/fable_modules/YAMLicious.2.0.0/Source.fs.js +649 -0
  455. package/dist/ts/ts/fable_modules/YAMLicious.2.0.0/Tag.fs.js +32 -0
  456. package/dist/ts/ts/fable_modules/YAMLicious.2.0.0/Validate.fs.js +1084 -0
  457. package/dist/ts/ts/fable_modules/YAMLicious.2.0.0/Writer.fs.js +2927 -0
  458. package/package.json +5 -4
  459. package/dist/ts/ts/fable_modules/YAMLicious.1.0.0/Decode.fs.js +0 -1669
  460. package/dist/ts/ts/fable_modules/YAMLicious.1.0.0/Encode.fs.js +0 -57
  461. package/dist/ts/ts/fable_modules/YAMLicious.1.0.0/Escapes.fs.js +0 -320
  462. package/dist/ts/ts/fable_modules/YAMLicious.1.0.0/Interop/JsInterop.fs.js +0 -10
  463. package/dist/ts/ts/fable_modules/YAMLicious.1.0.0/Persil.fs.js +0 -414
  464. package/dist/ts/ts/fable_modules/YAMLicious.1.0.0/Preprocessing.fs.js +0 -319
  465. package/dist/ts/ts/fable_modules/YAMLicious.1.0.0/Reader.fs.js +0 -1884
  466. package/dist/ts/ts/fable_modules/YAMLicious.1.0.0/Regex.fs.js +0 -23
  467. package/dist/ts/ts/fable_modules/YAMLicious.1.0.0/RegexActivePatterns.fs.js +0 -313
  468. package/dist/ts/ts/fable_modules/YAMLicious.1.0.0/Syntax.fs.js +0 -840
  469. package/dist/ts/ts/fable_modules/YAMLicious.1.0.0/Writer.fs.js +0 -689
  470. package/dist/ts/ts/fable_modules/YAMLicious.1.0.0/YAMLiciousTypes.fs.js +0 -359
@@ -1,15 +1,16 @@
1
- import { getEnumerator, disposeSafe, equals, structuralHash, compare, toIterator, defaultOf, Exception, isArrayLike } from './Util.js';
2
- import { Record, toString } from './Types.js';
3
- import { value, some, defaultArg } from './Option.js';
4
- import { record_type, option_type, class_type } from './Reflection.js';
5
- import { SR_inputWasEmpty, SR_indexOutOfBounds, SR_keyNotFoundAlt, SR_differentLengths, SR_notEnoughElements, SR_inputMustBeNonNegative, SR_inputSequenceEmpty, SR_inputSequenceTooLong } from './Global.js';
1
+ import { getEnumerator, disposeSafe, equals, structuralHash, compare, toIterator, defaultOf, isArrayLike } from './Util.js';
2
+ import { toString } from './Types.js';
3
+ import { some, value, defaultArg } from './Option.js';
4
+ import { class_type } from './Reflection.js';
5
+ import { Operators_InvalidOp, Operators_InvalidArg } from './FSharp.Core.js';
6
+ import { SR_inputWasEmpty, SR_indexOutOfBounds, SR_keyNotFoundAlt, SR_inputMustBeNonNegative, SR_inputSequenceEmpty, SR_notEnoughElements, SR_inputSequenceTooLong } from './Global.js';
6
7
  import { KeyNotFoundException_$ctor_Z721C83C5 } from './System.Collections.Generic.js';
7
8
  import { fill, setItem, foldBack as foldBack$1, foldBack2 as foldBack2$1, item as item$1, scanBack as scanBack$1, tryFindBack as tryFindBack$1, tryFindIndexBack as tryFindIndexBack$1, permute as permute$1, map as map$1, chunkBySize as chunkBySize$1, pairwise as pairwise$1, windowed as windowed$1, splitInto as splitInto$1, transpose as transpose$1, randomShuffleInPlaceBy, randomChoiceBy as randomChoiceBy$1, randomChoicesBy as randomChoicesBy$1, randomSampleBy as randomSampleBy$1 } from './Array.js';
9
+ import { ArgumentOutOfRangeException_$ctor_Z384F8060 } from './System.js';
8
10
  import { nonSeeded } from './Random.js';
9
11
 
10
- class FSharpList extends Record {
12
+ class FSharpList {
11
13
  constructor(head2, tail2) {
12
- super();
13
14
  this.head = head2;
14
15
  this.tail = tail2;
15
16
  }
@@ -44,8 +45,8 @@ class FSharpList extends Record {
44
45
  const matchValue_1 = ys_1.tail;
45
46
  if (matchValue != null) {
46
47
  if (matchValue_1 != null) {
47
- const xt = value(matchValue);
48
- const yt = value(matchValue_1);
48
+ const xt = matchValue;
49
+ const yt = matchValue_1;
49
50
  if (equals(xs_1.head, ys_1.head)) {
50
51
  xs_1_mut = xt;
51
52
  ys_1_mut = yt;
@@ -77,7 +78,7 @@ class FSharpList extends Record {
77
78
  const i = i_mut, h = h_mut, xs_1 = xs_1_mut;
78
79
  const matchValue = xs_1.tail;
79
80
  if (matchValue != null) {
80
- const t = value(matchValue);
81
+ const t = matchValue;
81
82
  if (i > 18) {
82
83
  return h | 0;
83
84
  } else {
@@ -110,8 +111,8 @@ class FSharpList extends Record {
110
111
  const matchValue_1 = ys_1.tail;
111
112
  if (matchValue != null) {
112
113
  if (matchValue_1 != null) {
113
- const xt = value(matchValue);
114
- const yt = value(matchValue_1);
114
+ const xt = matchValue;
115
+ const yt = matchValue_1;
115
116
  const c = compare(xs_1.head, ys_1.head) | 0;
116
117
  if (c === 0) {
117
118
  xs_1_mut = xt;
@@ -149,7 +150,7 @@ class FSharpList extends Record {
149
150
  }
150
151
  }
151
152
  function FSharpList_$reflection(gen0) {
152
- return record_type("ListModule.FSharpList", [gen0], FSharpList, () => [["head", gen0], ["tail", option_type(FSharpList_$reflection(gen0))]]);
153
+ return class_type("ListModule.FSharpList", [gen0], FSharpList);
153
154
  }
154
155
  class ListEnumerator$1 {
155
156
  constructor(xs) {
@@ -169,7 +170,7 @@ class ListEnumerator$1 {
169
170
  const _ = this;
170
171
  const matchValue = _.it.tail;
171
172
  if (matchValue != null) {
172
- const t = value(matchValue);
173
+ const t = matchValue;
173
174
  _.current = _.it.head;
174
175
  _.it = t;
175
176
  return true;
@@ -191,11 +192,8 @@ function ListEnumerator$1_$reflection(gen0) {
191
192
  function ListEnumerator$1_$ctor_3002E699(xs) {
192
193
  return new ListEnumerator$1(xs);
193
194
  }
194
- function FSharpList_get_Empty() {
195
- return new FSharpList(defaultOf(), void 0);
196
- }
197
- function FSharpList_Cons_305B8EAC(x, xs) {
198
- return new FSharpList(x, xs);
195
+ function FSharpList_$ctor_Z23DD7291(head_1, tail_1) {
196
+ return new FSharpList(head_1, tail_1);
199
197
  }
200
198
  function FSharpList__get_IsEmpty(xs) {
201
199
  return xs.tail == null;
@@ -208,7 +206,7 @@ function FSharpList__get_Length(xs) {
208
206
  const matchValue = xs_1.tail;
209
207
  if (matchValue != null) {
210
208
  i_mut = i + 1;
211
- xs_1_mut = value(matchValue);
209
+ xs_1_mut = matchValue;
212
210
  continue loop;
213
211
  } else {
214
212
  return i | 0;
@@ -223,15 +221,15 @@ function FSharpList__get_Head(xs) {
223
221
  if (matchValue != null) {
224
222
  return xs.head;
225
223
  } else {
226
- throw new Exception(SR_inputWasEmpty + " (Parameter 'list')");
224
+ throw Operators_InvalidOp(SR_inputWasEmpty);
227
225
  }
228
226
  }
229
227
  function FSharpList__get_Tail(xs) {
230
228
  const matchValue = xs.tail;
231
229
  if (matchValue != null) {
232
- return value(matchValue);
230
+ return matchValue;
233
231
  } else {
234
- throw new Exception(SR_inputWasEmpty + " (Parameter 'list')");
232
+ throw Operators_InvalidOp(SR_inputWasEmpty);
235
233
  }
236
234
  }
237
235
  function FSharpList__get_Item_Z524259A4(xs, index) {
@@ -241,7 +239,7 @@ function FSharpList__get_Item_Z524259A4(xs, index) {
241
239
  const i = i_mut, xs_1 = xs_1_mut;
242
240
  const matchValue = xs_1.tail;
243
241
  if (matchValue != null) {
244
- const t = value(matchValue);
242
+ const t = matchValue;
245
243
  if (i === index) {
246
244
  return xs_1.head;
247
245
  } else {
@@ -250,24 +248,28 @@ function FSharpList__get_Item_Z524259A4(xs, index) {
250
248
  continue loop;
251
249
  }
252
250
  } else {
253
- throw new Exception(SR_indexOutOfBounds + " (Parameter 'index')");
251
+ throw Operators_InvalidArg("index", SR_indexOutOfBounds);
254
252
  }
255
253
  break;
256
254
  }
257
255
  };
258
256
  return loop(0, xs);
259
257
  }
258
+ const emptyNode = FSharpList_$ctor_Z23DD7291(defaultOf(), void 0);
259
+ function empty() {
260
+ return emptyNode;
261
+ }
260
262
  function indexNotFound() {
261
263
  throw KeyNotFoundException_$ctor_Z721C83C5(SR_keyNotFoundAlt);
262
264
  }
263
- function empty() {
264
- return FSharpList_get_Empty();
265
+ function differentLengths(paramName) {
266
+ throw Operators_InvalidArg(paramName, "The lists had different lengths.");
265
267
  }
266
268
  function cons(x, xs) {
267
- return FSharpList_Cons_305B8EAC(x, xs);
269
+ return FSharpList_$ctor_Z23DD7291(x, xs);
268
270
  }
269
271
  function singleton(x) {
270
- return FSharpList_Cons_305B8EAC(x, FSharpList_get_Empty());
272
+ return FSharpList_$ctor_Z23DD7291(x, empty());
271
273
  }
272
274
  function isEmpty(xs) {
273
275
  return FSharpList__get_IsEmpty(xs);
@@ -276,7 +278,12 @@ function length(xs) {
276
278
  return FSharpList__get_Length(xs) | 0;
277
279
  }
278
280
  function head(xs) {
279
- return FSharpList__get_Head(xs);
281
+ const matchValue = xs.tail;
282
+ if (matchValue != null) {
283
+ return xs.head;
284
+ } else {
285
+ throw Operators_InvalidArg("list", SR_inputWasEmpty);
286
+ }
280
287
  }
281
288
  function tryHead(xs) {
282
289
  if (FSharpList__get_IsEmpty(xs)) {
@@ -286,7 +293,12 @@ function tryHead(xs) {
286
293
  }
287
294
  }
288
295
  function tail(xs) {
289
- return FSharpList__get_Tail(xs);
296
+ const matchValue = xs.tail;
297
+ if (matchValue != null) {
298
+ return matchValue;
299
+ } else {
300
+ throw Operators_InvalidArg("list", SR_inputWasEmpty);
301
+ }
290
302
  }
291
303
  function tryLast(xs_mut) {
292
304
  tryLast:
@@ -309,7 +321,7 @@ function tryLast(xs_mut) {
309
321
  function last(xs) {
310
322
  const matchValue = tryLast(xs);
311
323
  if (matchValue == null) {
312
- throw new Exception(SR_inputWasEmpty);
324
+ throw Operators_InvalidArg("list", SR_inputWasEmpty);
313
325
  } else {
314
326
  return value(matchValue);
315
327
  }
@@ -373,7 +385,7 @@ function fold(folder, state, xs) {
373
385
  return acc;
374
386
  }
375
387
  function reverse(xs) {
376
- return fold((acc, x) => FSharpList_Cons_305B8EAC(x, acc), FSharpList_get_Empty(), xs);
388
+ return fold((acc, x) => FSharpList_$ctor_Z23DD7291(x, acc), empty(), xs);
377
389
  }
378
390
  function foldBack(folder, xs, state) {
379
391
  return foldBack$1(folder, toArray(xs), state);
@@ -405,10 +417,20 @@ function fold2(folder, state, xs, ys) {
405
417
  xs_1 = FSharpList__get_Tail(xs_1);
406
418
  ys_1 = FSharpList__get_Tail(ys_1);
407
419
  }
420
+ if (!FSharpList__get_IsEmpty(xs_1)) {
421
+ differentLengths("list2");
422
+ } else if (!FSharpList__get_IsEmpty(ys_1)) {
423
+ differentLengths("list1");
424
+ }
408
425
  return acc;
409
426
  }
410
427
  function foldBack2(folder, xs, ys, state) {
411
- return foldBack2$1(folder, toArray(xs), toArray(ys), state);
428
+ const xs_1 = toArray(xs);
429
+ const ys_1 = toArray(ys);
430
+ if (xs_1.length !== ys_1.length) {
431
+ differentLengths(xs_1.length === 0 ? "list1" : ys_1.length === 0 ? "list2" : "list1, list2");
432
+ }
433
+ return foldBack2$1(folder, xs_1, ys_1, state);
412
434
  }
413
435
  function unfold(generator, state) {
414
436
  const loop = (acc_mut, node_mut) => {
@@ -418,8 +440,8 @@ function unfold(generator, state) {
418
440
  let t = void 0;
419
441
  const matchValue = generator(acc);
420
442
  if (matchValue != null) {
421
- acc_mut = value(matchValue)[1];
422
- node_mut = (t = new FSharpList(value(matchValue)[0], void 0), node.tail = t, t);
443
+ acc_mut = matchValue[1];
444
+ node_mut = (t = FSharpList_$ctor_Z23DD7291(matchValue[0], void 0), node.tail = t, t);
423
445
  continue loop;
424
446
  } else {
425
447
  return node;
@@ -427,9 +449,9 @@ function unfold(generator, state) {
427
449
  break;
428
450
  }
429
451
  };
430
- const root = FSharpList_get_Empty();
452
+ const root = FSharpList_$ctor_Z23DD7291(defaultOf(), void 0);
431
453
  const node_1 = loop(state, root);
432
- const t_2 = FSharpList_get_Empty();
454
+ const t_2 = empty();
433
455
  node_1.tail = t_2;
434
456
  return FSharpList__get_Tail(root);
435
457
  }
@@ -461,12 +483,12 @@ function toSeq(xs) {
461
483
  function ofArrayWithTail(xs, tail_1) {
462
484
  let res = tail_1;
463
485
  for (let i = xs.length - 1; i >= 0; i--) {
464
- res = FSharpList_Cons_305B8EAC(item$1(i, xs), res);
486
+ res = FSharpList_$ctor_Z23DD7291(item$1(i, xs), res);
465
487
  }
466
488
  return res;
467
489
  }
468
490
  function ofArray(xs) {
469
- return ofArrayWithTail(xs, FSharpList_get_Empty());
491
+ return ofArrayWithTail(xs, empty());
470
492
  }
471
493
  function ofSeq(xs) {
472
494
  if (isArrayLike(xs)) {
@@ -474,30 +496,30 @@ function ofSeq(xs) {
474
496
  } else if (xs instanceof FSharpList) {
475
497
  return xs;
476
498
  } else {
477
- const root = FSharpList_get_Empty();
499
+ const root = FSharpList_$ctor_Z23DD7291(defaultOf(), void 0);
478
500
  let node = root;
479
501
  const enumerator = getEnumerator(xs);
480
502
  try {
481
503
  while (enumerator["System.Collections.IEnumerator.MoveNext"]()) {
482
504
  let xs_3 = void 0, t = void 0;
483
- const x = enumerator["System.Collections.Generic.IEnumerator`1.get_Current"]();
484
- node = (xs_3 = node, t = new FSharpList(x, void 0), xs_3.tail = t, t);
505
+ const x_1 = enumerator["System.Collections.Generic.IEnumerator`1.get_Current"]();
506
+ node = (xs_3 = node, t = FSharpList_$ctor_Z23DD7291(x_1, void 0), xs_3.tail = t, t);
485
507
  }
486
508
  } finally {
487
509
  disposeSafe(enumerator);
488
510
  }
489
511
  const xs_5 = node;
490
- const t_2 = FSharpList_get_Empty();
512
+ const t_2 = empty();
491
513
  xs_5.tail = t_2;
492
514
  return FSharpList__get_Tail(root);
493
515
  }
494
516
  }
495
517
  function concat(lists) {
496
- const root = FSharpList_get_Empty();
518
+ const root = FSharpList_$ctor_Z23DD7291(defaultOf(), void 0);
497
519
  let node = root;
498
520
  const action = (xs) => {
499
- node = fold((acc, x) => {
500
- const t = new FSharpList(x, void 0);
521
+ node = fold((acc, x_1) => {
522
+ const t = FSharpList_$ctor_Z23DD7291(x_1, void 0);
501
523
  acc.tail = t;
502
524
  return t;
503
525
  }, node, xs);
@@ -518,14 +540,14 @@ function concat(lists) {
518
540
  }
519
541
  }
520
542
  const xs_6 = node;
521
- const t_2 = FSharpList_get_Empty();
543
+ const t_2 = empty();
522
544
  xs_6.tail = t_2;
523
545
  return FSharpList__get_Tail(root);
524
546
  }
525
547
  function scan(folder, state, xs) {
526
- const root = FSharpList_get_Empty();
548
+ const root = FSharpList_$ctor_Z23DD7291(defaultOf(), void 0);
527
549
  let node;
528
- const t = new FSharpList(state, void 0);
550
+ const t = FSharpList_$ctor_Z23DD7291(state, void 0);
529
551
  root.tail = t;
530
552
  node = t;
531
553
  let acc = state;
@@ -533,11 +555,11 @@ function scan(folder, state, xs) {
533
555
  while (!FSharpList__get_IsEmpty(xs_3)) {
534
556
  let xs_4 = void 0, t_2 = void 0;
535
557
  acc = folder(acc, FSharpList__get_Head(xs_3));
536
- node = (xs_4 = node, t_2 = new FSharpList(acc, void 0), xs_4.tail = t_2, t_2);
558
+ node = (xs_4 = node, t_2 = FSharpList_$ctor_Z23DD7291(acc, void 0), xs_4.tail = t_2, t_2);
537
559
  xs_3 = FSharpList__get_Tail(xs_3);
538
560
  }
539
561
  const xs_6 = node;
540
- const t_4 = FSharpList_get_Empty();
562
+ const t_4 = empty();
541
563
  xs_6.tail = t_4;
542
564
  return FSharpList__get_Tail(root);
543
565
  }
@@ -545,45 +567,55 @@ function scanBack(folder, xs, state) {
545
567
  return ofArray(scanBack$1(folder, toArray(xs), state));
546
568
  }
547
569
  function append(xs, ys) {
548
- return fold((acc, x) => FSharpList_Cons_305B8EAC(x, acc), ys, reverse(xs));
570
+ const root = FSharpList_$ctor_Z23DD7291(defaultOf(), void 0);
571
+ let node = root;
572
+ let rest = xs;
573
+ while (rest.tail != null) {
574
+ let xs_1 = void 0, t = void 0;
575
+ node = (xs_1 = node, t = FSharpList_$ctor_Z23DD7291(rest.head, void 0), xs_1.tail = t, t);
576
+ rest = rest.tail;
577
+ }
578
+ const xs_3 = node;
579
+ xs_3.tail = ys;
580
+ return FSharpList__get_Tail(root);
549
581
  }
550
582
  function collect(mapping, xs) {
551
- const root = FSharpList_get_Empty();
583
+ const root = FSharpList_$ctor_Z23DD7291(defaultOf(), void 0);
552
584
  let node = root;
553
585
  let ys = xs;
554
586
  while (!FSharpList__get_IsEmpty(ys)) {
555
587
  let zs = mapping(FSharpList__get_Head(ys));
556
588
  while (!FSharpList__get_IsEmpty(zs)) {
557
589
  let xs_1 = void 0, t = void 0;
558
- node = (xs_1 = node, t = new FSharpList(FSharpList__get_Head(zs), void 0), xs_1.tail = t, t);
590
+ node = (xs_1 = node, t = FSharpList_$ctor_Z23DD7291(FSharpList__get_Head(zs), void 0), xs_1.tail = t, t);
559
591
  zs = FSharpList__get_Tail(zs);
560
592
  }
561
593
  ys = FSharpList__get_Tail(ys);
562
594
  }
563
595
  const xs_3 = node;
564
- const t_2 = FSharpList_get_Empty();
596
+ const t_2 = empty();
565
597
  xs_3.tail = t_2;
566
598
  return FSharpList__get_Tail(root);
567
599
  }
568
600
  function mapIndexed(mapping, xs) {
569
- const root = FSharpList_get_Empty();
570
- const node = foldIndexed((i, acc, x) => {
571
- const t = new FSharpList(mapping(i, x), void 0);
601
+ const root = FSharpList_$ctor_Z23DD7291(defaultOf(), void 0);
602
+ const node = foldIndexed((i, acc, x_1) => {
603
+ const t = FSharpList_$ctor_Z23DD7291(mapping(i, x_1), void 0);
572
604
  acc.tail = t;
573
605
  return t;
574
606
  }, root, xs);
575
- const t_2 = FSharpList_get_Empty();
607
+ const t_2 = empty();
576
608
  node.tail = t_2;
577
609
  return FSharpList__get_Tail(root);
578
610
  }
579
611
  function map(mapping, xs) {
580
- const root = FSharpList_get_Empty();
581
- const node = fold((acc, x) => {
582
- const t = new FSharpList(mapping(x), void 0);
612
+ const root = FSharpList_$ctor_Z23DD7291(defaultOf(), void 0);
613
+ const node = fold((acc, x_1) => {
614
+ const t = FSharpList_$ctor_Z23DD7291(mapping(x_1), void 0);
583
615
  acc.tail = t;
584
616
  return t;
585
617
  }, root, xs);
586
- const t_2 = FSharpList_get_Empty();
618
+ const t_2 = empty();
587
619
  node.tail = t_2;
588
620
  return FSharpList__get_Tail(root);
589
621
  }
@@ -591,13 +623,13 @@ function indexed(xs) {
591
623
  return mapIndexed((i, x) => [i, x], xs);
592
624
  }
593
625
  function map2(mapping, xs, ys) {
594
- const root = FSharpList_get_Empty();
595
- const node = fold2((acc, x, y) => {
596
- const t = new FSharpList(mapping(x, y), void 0);
626
+ const root = FSharpList_$ctor_Z23DD7291(defaultOf(), void 0);
627
+ const node = fold2((acc, x_1, y) => {
628
+ const t = FSharpList_$ctor_Z23DD7291(mapping(x_1, y), void 0);
597
629
  acc.tail = t;
598
630
  return t;
599
631
  }, root, xs, ys);
600
- const t_2 = FSharpList_get_Empty();
632
+ const t_2 = empty();
601
633
  node.tail = t_2;
602
634
  return FSharpList__get_Tail(root);
603
635
  }
@@ -608,10 +640,15 @@ function mapIndexed2(mapping, xs, ys) {
608
640
  const i = i_mut, acc = acc_mut, xs_1 = xs_1_mut, ys_1 = ys_1_mut;
609
641
  let t = void 0;
610
642
  if (FSharpList__get_IsEmpty(xs_1) ? true : FSharpList__get_IsEmpty(ys_1)) {
643
+ if (!FSharpList__get_IsEmpty(xs_1)) {
644
+ differentLengths("list2");
645
+ } else if (!FSharpList__get_IsEmpty(ys_1)) {
646
+ differentLengths("list1");
647
+ }
611
648
  return acc;
612
649
  } else {
613
650
  i_mut = i + 1;
614
- acc_mut = (t = new FSharpList(mapping(i, FSharpList__get_Head(xs_1), FSharpList__get_Head(ys_1)), void 0), acc.tail = t, t);
651
+ acc_mut = (t = FSharpList_$ctor_Z23DD7291(mapping(i, FSharpList__get_Head(xs_1), FSharpList__get_Head(ys_1)), void 0), acc.tail = t, t);
615
652
  xs_1_mut = FSharpList__get_Tail(xs_1);
616
653
  ys_1_mut = FSharpList__get_Tail(ys_1);
617
654
  continue loop;
@@ -619,9 +656,9 @@ function mapIndexed2(mapping, xs, ys) {
619
656
  break;
620
657
  }
621
658
  };
622
- const root = FSharpList_get_Empty();
659
+ const root = FSharpList_$ctor_Z23DD7291(defaultOf(), void 0);
623
660
  const node_1 = loop(0, root, xs, ys);
624
- const t_2 = FSharpList_get_Empty();
661
+ const t_2 = empty();
625
662
  node_1.tail = t_2;
626
663
  return FSharpList__get_Tail(root);
627
664
  }
@@ -632,9 +669,12 @@ function map3(mapping, xs, ys, zs) {
632
669
  const acc = acc_mut, xs_1 = xs_1_mut, ys_1 = ys_1_mut, zs_1 = zs_1_mut;
633
670
  let t = void 0;
634
671
  if ((FSharpList__get_IsEmpty(xs_1) ? true : FSharpList__get_IsEmpty(ys_1)) ? true : FSharpList__get_IsEmpty(zs_1)) {
672
+ if (!(FSharpList__get_IsEmpty(xs_1) && FSharpList__get_IsEmpty(ys_1) && FSharpList__get_IsEmpty(zs_1))) {
673
+ differentLengths("list1, list2, list3");
674
+ }
635
675
  return acc;
636
676
  } else {
637
- acc_mut = (t = new FSharpList(mapping(FSharpList__get_Head(xs_1), FSharpList__get_Head(ys_1), FSharpList__get_Head(zs_1)), void 0), acc.tail = t, t);
677
+ acc_mut = (t = FSharpList_$ctor_Z23DD7291(mapping(FSharpList__get_Head(xs_1), FSharpList__get_Head(ys_1), FSharpList__get_Head(zs_1)), void 0), acc.tail = t, t);
638
678
  xs_1_mut = FSharpList__get_Tail(xs_1);
639
679
  ys_1_mut = FSharpList__get_Tail(ys_1);
640
680
  zs_1_mut = FSharpList__get_Tail(zs_1);
@@ -643,20 +683,20 @@ function map3(mapping, xs, ys, zs) {
643
683
  break;
644
684
  }
645
685
  };
646
- const root = FSharpList_get_Empty();
686
+ const root = FSharpList_$ctor_Z23DD7291(defaultOf(), void 0);
647
687
  const node_1 = loop(root, xs, ys, zs);
648
- const t_2 = FSharpList_get_Empty();
688
+ const t_2 = empty();
649
689
  node_1.tail = t_2;
650
690
  return FSharpList__get_Tail(root);
651
691
  }
652
692
  function mapFold(mapping, state, xs) {
653
- const root = FSharpList_get_Empty();
693
+ const root = FSharpList_$ctor_Z23DD7291(defaultOf(), void 0);
654
694
  const patternInput_1 = fold((tupledArg, x) => {
655
695
  let t = void 0;
656
696
  const patternInput = mapping(tupledArg[1], x);
657
- return [(t = new FSharpList(patternInput[0], void 0), tupledArg[0].tail = t, t), patternInput[1]];
697
+ return [(t = FSharpList_$ctor_Z23DD7291(patternInput[0], void 0), tupledArg[0].tail = t, t), patternInput[1]];
658
698
  }, [root, state], xs);
659
- const t_2 = FSharpList_get_Empty();
699
+ const t_2 = empty();
660
700
  patternInput_1[0].tail = t_2;
661
701
  return [FSharpList__get_Tail(root), patternInput_1[1]];
662
702
  }
@@ -739,7 +779,7 @@ function findIndex(f, xs) {
739
779
  indexNotFound();
740
780
  return -1;
741
781
  } else {
742
- return value(matchValue) | 0;
782
+ return matchValue | 0;
743
783
  }
744
784
  }
745
785
  function tryFindIndexBack(f, xs) {
@@ -751,7 +791,7 @@ function findIndexBack(f, xs) {
751
791
  indexNotFound();
752
792
  return -1;
753
793
  } else {
754
- return value(matchValue) | 0;
794
+ return matchValue | 0;
755
795
  }
756
796
  }
757
797
  function tryItem(n, xs) {
@@ -777,53 +817,53 @@ function item(n, xs) {
777
817
  return FSharpList__get_Item_Z524259A4(xs, n);
778
818
  }
779
819
  function filter(f, xs) {
780
- const root = FSharpList_get_Empty();
781
- const node = fold((acc, x) => {
782
- if (f(x)) {
783
- const t = new FSharpList(x, void 0);
820
+ const root = FSharpList_$ctor_Z23DD7291(defaultOf(), void 0);
821
+ const node = fold((acc, x_1) => {
822
+ if (f(x_1)) {
823
+ const t = FSharpList_$ctor_Z23DD7291(x_1, void 0);
784
824
  acc.tail = t;
785
825
  return t;
786
826
  } else {
787
827
  return acc;
788
828
  }
789
829
  }, root, xs);
790
- const t_2 = FSharpList_get_Empty();
830
+ const t_2 = empty();
791
831
  node.tail = t_2;
792
832
  return FSharpList__get_Tail(root);
793
833
  }
794
834
  function partition(f, xs) {
795
- const matchValue = FSharpList_get_Empty();
796
- const root2 = FSharpList_get_Empty();
835
+ const matchValue = FSharpList_$ctor_Z23DD7291(defaultOf(), void 0);
836
+ const root2 = FSharpList_$ctor_Z23DD7291(defaultOf(), void 0);
797
837
  const root1 = matchValue;
798
- const patternInput_1 = fold((tupledArg, x) => {
838
+ const patternInput_1 = fold((tupledArg, x_2) => {
799
839
  let t = void 0, t_2 = void 0;
800
840
  const lacc = tupledArg[0];
801
841
  const racc = tupledArg[1];
802
- if (f(x)) {
803
- return [(t = new FSharpList(x, void 0), lacc.tail = t, t), racc];
842
+ if (f(x_2)) {
843
+ return [(t = FSharpList_$ctor_Z23DD7291(x_2, void 0), lacc.tail = t, t), racc];
804
844
  } else {
805
- return [lacc, (t_2 = new FSharpList(x, void 0), racc.tail = t_2, t_2)];
845
+ return [lacc, (t_2 = FSharpList_$ctor_Z23DD7291(x_2, void 0), racc.tail = t_2, t_2)];
806
846
  }
807
847
  }, [root1, root2], xs);
808
- const t_4 = FSharpList_get_Empty();
848
+ const t_4 = empty();
809
849
  patternInput_1[0].tail = t_4;
810
- const t_5 = FSharpList_get_Empty();
850
+ const t_5 = empty();
811
851
  patternInput_1[1].tail = t_5;
812
852
  return [FSharpList__get_Tail(root1), FSharpList__get_Tail(root2)];
813
853
  }
814
854
  function choose(f, xs) {
815
- const root = FSharpList_get_Empty();
816
- const node = fold((acc, x) => {
817
- const matchValue = f(x);
855
+ const root = FSharpList_$ctor_Z23DD7291(defaultOf(), void 0);
856
+ const node = fold((acc, x_1) => {
857
+ const matchValue = f(x_1);
818
858
  if (matchValue == null) {
819
859
  return acc;
820
860
  } else {
821
- const t = new FSharpList(value(matchValue), void 0);
861
+ const t = FSharpList_$ctor_Z23DD7291(value(matchValue), void 0);
822
862
  acc.tail = t;
823
863
  return t;
824
864
  }
825
865
  }, root, xs);
826
- const t_2 = FSharpList_get_Empty();
866
+ const t_2 = empty();
827
867
  node.tail = t_2;
828
868
  return FSharpList__get_Tail(root);
829
869
  }
@@ -831,14 +871,17 @@ function contains(value, xs, eq) {
831
871
  return tryFindIndex((v) => eq.Equals(value, v), xs) != null;
832
872
  }
833
873
  function initialize(n, f) {
834
- const root = FSharpList_get_Empty();
874
+ if (n < 0) {
875
+ throw Operators_InvalidArg("count", SR_inputMustBeNonNegative);
876
+ }
877
+ const root = FSharpList_$ctor_Z23DD7291(defaultOf(), void 0);
835
878
  let node = root;
836
879
  for (let i = 0; i <= n - 1; i++) {
837
880
  let xs = void 0, t = void 0;
838
- node = (xs = node, t = new FSharpList(f(i), void 0), xs.tail = t, t);
881
+ node = (xs = node, t = FSharpList_$ctor_Z23DD7291(f(i), void 0), xs.tail = t, t);
839
882
  }
840
883
  const xs_2 = node;
841
- const t_2 = FSharpList_get_Empty();
884
+ const t_2 = empty();
842
885
  xs_2.tail = t_2;
843
886
  return FSharpList__get_Tail(root);
844
887
  }
@@ -847,14 +890,14 @@ function replicate(n, x) {
847
890
  }
848
891
  function reduce(f, xs) {
849
892
  if (FSharpList__get_IsEmpty(xs)) {
850
- throw new Exception(SR_inputWasEmpty);
893
+ throw Operators_InvalidArg("list", SR_inputWasEmpty);
851
894
  } else {
852
895
  return fold(f, head(xs), tail(xs));
853
896
  }
854
897
  }
855
898
  function reduceBack(f, xs) {
856
899
  if (FSharpList__get_IsEmpty(xs)) {
857
- throw new Exception(SR_inputWasEmpty);
900
+ throw Operators_InvalidArg("list", SR_inputWasEmpty);
858
901
  } else {
859
902
  return foldBack(f, tail(xs), head(xs));
860
903
  }
@@ -862,8 +905,30 @@ function reduceBack(f, xs) {
862
905
  function forAll(f, xs) {
863
906
  return fold((acc, x) => acc && f(x), true, xs);
864
907
  }
865
- function forAll2(f, xs, ys) {
866
- return fold2((acc, x, y) => acc && f(x, y), true, xs, ys);
908
+ function forAll2(f_mut, xs_mut, ys_mut) {
909
+ forAll2:
910
+ while (true) {
911
+ const f = f_mut, xs = xs_mut, ys = ys_mut;
912
+ const matchValue = FSharpList__get_IsEmpty(xs);
913
+ const matchValue_1 = FSharpList__get_IsEmpty(ys);
914
+ if (matchValue) {
915
+ if (matchValue_1) {
916
+ return true;
917
+ } else {
918
+ return differentLengths("list1");
919
+ }
920
+ } else if (matchValue_1) {
921
+ return differentLengths("list2");
922
+ } else if (f(FSharpList__get_Head(xs), FSharpList__get_Head(ys))) {
923
+ f_mut = f;
924
+ xs_mut = FSharpList__get_Tail(xs);
925
+ ys_mut = FSharpList__get_Tail(ys);
926
+ continue forAll2;
927
+ } else {
928
+ return false;
929
+ }
930
+ break;
931
+ }
867
932
  }
868
933
  function exists(f, xs) {
869
934
  return tryFindIndex(f, xs) != null;
@@ -899,16 +964,16 @@ function exists2(f_mut, xs_mut, ys_mut) {
899
964
  continue exists2;
900
965
  }
901
966
  default:
902
- throw new Exception(SR_differentLengths + " (Parameter 'list2')");
967
+ return differentLengths("list2");
903
968
  }
904
969
  break;
905
970
  }
906
971
  }
907
972
  function unzip(xs) {
908
- return foldBack((tupledArg, tupledArg_1) => [FSharpList_Cons_305B8EAC(tupledArg[0], tupledArg_1[0]), FSharpList_Cons_305B8EAC(tupledArg[1], tupledArg_1[1])], xs, [FSharpList_get_Empty(), FSharpList_get_Empty()]);
973
+ return foldBack((tupledArg, tupledArg_1) => [FSharpList_$ctor_Z23DD7291(tupledArg[0], tupledArg_1[0]), FSharpList_$ctor_Z23DD7291(tupledArg[1], tupledArg_1[1])], xs, [empty(), empty()]);
909
974
  }
910
975
  function unzip3(xs) {
911
- return foldBack((tupledArg, tupledArg_1) => [FSharpList_Cons_305B8EAC(tupledArg[0], tupledArg_1[0]), FSharpList_Cons_305B8EAC(tupledArg[1], tupledArg_1[1]), FSharpList_Cons_305B8EAC(tupledArg[2], tupledArg_1[2])], xs, [FSharpList_get_Empty(), FSharpList_get_Empty(), FSharpList_get_Empty()]);
976
+ return foldBack((tupledArg, tupledArg_1) => [FSharpList_$ctor_Z23DD7291(tupledArg[0], tupledArg_1[0]), FSharpList_$ctor_Z23DD7291(tupledArg[1], tupledArg_1[1]), FSharpList_$ctor_Z23DD7291(tupledArg[2], tupledArg_1[2])], xs, [empty(), empty(), empty()]);
912
977
  }
913
978
  function zip(xs, ys) {
914
979
  return map2((x, y) => [x, y], xs, ys);
@@ -952,6 +1017,9 @@ function min(xs, comparer) {
952
1017
  return reduce((x, y) => comparer.Compare(y, x) > 0 ? x : y, xs);
953
1018
  }
954
1019
  function average(xs, averager) {
1020
+ if (FSharpList__get_IsEmpty(xs)) {
1021
+ throw Operators_InvalidArg("source", SR_inputSequenceEmpty);
1022
+ }
955
1023
  let count = 0;
956
1024
  const total = fold((acc, x) => {
957
1025
  count = count + 1 | 0;
@@ -960,6 +1028,9 @@ function average(xs, averager) {
960
1028
  return averager.DivideByInt(total, count);
961
1029
  }
962
1030
  function averageBy(f, xs, averager) {
1031
+ if (FSharpList__get_IsEmpty(xs)) {
1032
+ throw Operators_InvalidArg("source", SR_inputSequenceEmpty);
1033
+ }
963
1034
  let count = 0;
964
1035
  const total = fold((acc, x) => {
965
1036
  count = count + 1 | 0;
@@ -974,16 +1045,16 @@ function chunkBySize(chunkSize, xs) {
974
1045
  return ofArray(map$1(ofArray, chunkBySize$1(chunkSize, toArray(xs))));
975
1046
  }
976
1047
  function allPairs(xs, ys) {
977
- const root = FSharpList_get_Empty();
1048
+ const root = FSharpList_$ctor_Z23DD7291(defaultOf(), void 0);
978
1049
  let node = root;
979
- iterate((x) => {
1050
+ iterate((x_1) => {
980
1051
  iterate((y) => {
981
1052
  let xs_1 = void 0, t = void 0;
982
- node = (xs_1 = node, t = new FSharpList([x, y], void 0), xs_1.tail = t, t);
1053
+ node = (xs_1 = node, t = FSharpList_$ctor_Z23DD7291([x_1, y], void 0), xs_1.tail = t, t);
983
1054
  }, ys);
984
1055
  }, xs);
985
1056
  const xs_3 = node;
986
- const t_2 = FSharpList_get_Empty();
1057
+ const t_2 = empty();
987
1058
  xs_3.tail = t_2;
988
1059
  return FSharpList__get_Tail(root);
989
1060
  }
@@ -994,7 +1065,7 @@ function skip(count_mut, xs_mut) {
994
1065
  if (count <= 0) {
995
1066
  return xs;
996
1067
  } else if (FSharpList__get_IsEmpty(xs)) {
997
- throw new Exception(SR_notEnoughElements + " (Parameter 'list')");
1068
+ throw ArgumentOutOfRangeException_$ctor_Z384F8060("count", "The index is outside the legal range.");
998
1069
  } else {
999
1070
  count_mut = count - 1;
1000
1071
  xs_mut = FSharpList__get_Tail(xs);
@@ -1021,7 +1092,7 @@ function skipWhile(predicate_mut, xs_mut) {
1021
1092
  }
1022
1093
  function take(count, xs) {
1023
1094
  if (count < 0) {
1024
- throw new Exception(SR_inputMustBeNonNegative + " (Parameter 'count')");
1095
+ throw Operators_InvalidArg("count", SR_inputMustBeNonNegative);
1025
1096
  }
1026
1097
  const loop = (i_mut, acc_mut, xs_1_mut) => {
1027
1098
  loop:
@@ -1031,19 +1102,19 @@ function take(count, xs) {
1031
1102
  if (i <= 0) {
1032
1103
  return acc;
1033
1104
  } else if (FSharpList__get_IsEmpty(xs_1)) {
1034
- throw new Exception(SR_notEnoughElements + " (Parameter 'list')");
1105
+ throw Operators_InvalidOp(SR_notEnoughElements);
1035
1106
  } else {
1036
1107
  i_mut = i - 1;
1037
- acc_mut = (t = new FSharpList(FSharpList__get_Head(xs_1), void 0), acc.tail = t, t);
1108
+ acc_mut = (t = FSharpList_$ctor_Z23DD7291(FSharpList__get_Head(xs_1), void 0), acc.tail = t, t);
1038
1109
  xs_1_mut = FSharpList__get_Tail(xs_1);
1039
1110
  continue loop;
1040
1111
  }
1041
1112
  break;
1042
1113
  }
1043
1114
  };
1044
- const root = FSharpList_get_Empty();
1115
+ const root = FSharpList_$ctor_Z23DD7291(defaultOf(), void 0);
1045
1116
  const node = loop(count, root, xs);
1046
- const t_2 = FSharpList_get_Empty();
1117
+ const t_2 = empty();
1047
1118
  node.tail = t_2;
1048
1119
  return FSharpList__get_Tail(root);
1049
1120
  }
@@ -1058,16 +1129,16 @@ function takeWhile(predicate, xs) {
1058
1129
  } else if (!predicate(FSharpList__get_Head(xs_1))) {
1059
1130
  return acc;
1060
1131
  } else {
1061
- acc_mut = (t = new FSharpList(FSharpList__get_Head(xs_1), void 0), acc.tail = t, t);
1132
+ acc_mut = (t = FSharpList_$ctor_Z23DD7291(FSharpList__get_Head(xs_1), void 0), acc.tail = t, t);
1062
1133
  xs_1_mut = FSharpList__get_Tail(xs_1);
1063
1134
  continue loop;
1064
1135
  }
1065
1136
  break;
1066
1137
  }
1067
1138
  };
1068
- const root = FSharpList_get_Empty();
1139
+ const root = FSharpList_$ctor_Z23DD7291(defaultOf(), void 0);
1069
1140
  const node = loop(root, xs);
1070
- const t_2 = FSharpList_get_Empty();
1141
+ const t_2 = empty();
1071
1142
  node.tail = t_2;
1072
1143
  return FSharpList__get_Tail(root);
1073
1144
  }
@@ -1083,16 +1154,16 @@ function truncate(count, xs) {
1083
1154
  return acc;
1084
1155
  } else {
1085
1156
  i_mut = i - 1;
1086
- acc_mut = (t = new FSharpList(FSharpList__get_Head(xs_1), void 0), acc.tail = t, t);
1157
+ acc_mut = (t = FSharpList_$ctor_Z23DD7291(FSharpList__get_Head(xs_1), void 0), acc.tail = t, t);
1087
1158
  xs_1_mut = FSharpList__get_Tail(xs_1);
1088
1159
  continue loop;
1089
1160
  }
1090
1161
  break;
1091
1162
  }
1092
1163
  };
1093
- const root = FSharpList_get_Empty();
1164
+ const root = FSharpList_$ctor_Z23DD7291(defaultOf(), void 0);
1094
1165
  const node = loop(count, root, xs);
1095
- const t_2 = FSharpList_get_Empty();
1166
+ const t_2 = empty();
1096
1167
  node.tail = t_2;
1097
1168
  return FSharpList__get_Tail(root);
1098
1169
  }
@@ -1105,27 +1176,27 @@ function getSlice(startIndex, endIndex, xs) {
1105
1176
  const index_1 = defaultArg(endIndex, len - 1) | 0;
1106
1177
  endIndex_1 = index_1 >= len ? len - 1 : index_1;
1107
1178
  if (endIndex_1 < startIndex_1) {
1108
- return FSharpList_get_Empty();
1179
+ return empty();
1109
1180
  } else {
1110
1181
  return take(endIndex_1 - startIndex_1 + 1, skip(startIndex_1, xs));
1111
1182
  }
1112
1183
  }
1113
1184
  function splitAt(index, xs) {
1114
1185
  if (index < 0) {
1115
- throw new Exception(SR_inputMustBeNonNegative + " (Parameter 'index')");
1186
+ throw Operators_InvalidArg("index", SR_inputMustBeNonNegative);
1116
1187
  }
1117
1188
  if (index > FSharpList__get_Length(xs)) {
1118
- throw new Exception(SR_notEnoughElements + " (Parameter 'index')");
1189
+ throw Operators_InvalidOp(SR_notEnoughElements);
1119
1190
  }
1120
1191
  return [take(index, xs), skip(index, xs)];
1121
1192
  }
1122
1193
  function exactlyOne(xs) {
1123
1194
  if (FSharpList__get_IsEmpty(xs)) {
1124
- throw new Exception(SR_inputSequenceEmpty + " (Parameter 'list')");
1195
+ throw Operators_InvalidArg("list", SR_inputSequenceEmpty);
1125
1196
  } else if (FSharpList__get_IsEmpty(FSharpList__get_Tail(xs))) {
1126
1197
  return FSharpList__get_Head(xs);
1127
1198
  } else {
1128
- throw new Exception(SR_inputSequenceTooLong + " (Parameter 'list')");
1199
+ throw Operators_InvalidArg("list", SR_inputSequenceTooLong);
1129
1200
  }
1130
1201
  }
1131
1202
  function tryExactlyOne(xs) {
@@ -1157,13 +1228,13 @@ function insertAt(index, y, xs) {
1157
1228
  i = i + 1 | 0;
1158
1229
  if (i === index) {
1159
1230
  isDone = true;
1160
- return FSharpList_Cons_305B8EAC(x, FSharpList_Cons_305B8EAC(y, acc));
1231
+ return FSharpList_$ctor_Z23DD7291(x, FSharpList_$ctor_Z23DD7291(y, acc));
1161
1232
  } else {
1162
- return FSharpList_Cons_305B8EAC(x, acc);
1233
+ return FSharpList_$ctor_Z23DD7291(x, acc);
1163
1234
  }
1164
- }, FSharpList_get_Empty(), xs);
1165
- return reverse(isDone ? result : i + 1 === index ? FSharpList_Cons_305B8EAC(y, result) : (() => {
1166
- throw new Exception(SR_indexOutOfBounds + " (Parameter 'index')");
1235
+ }, empty(), xs);
1236
+ return reverse(isDone ? result : i + 1 === index ? FSharpList_$ctor_Z23DD7291(y, result) : (() => {
1237
+ throw Operators_InvalidArg("index", SR_indexOutOfBounds);
1167
1238
  })());
1168
1239
  }
1169
1240
  function insertManyAt(index, ys, xs) {
@@ -1174,13 +1245,13 @@ function insertManyAt(index, ys, xs) {
1174
1245
  i = i + 1 | 0;
1175
1246
  if (i === index) {
1176
1247
  isDone = true;
1177
- return FSharpList_Cons_305B8EAC(x, append(ys_1, acc));
1248
+ return FSharpList_$ctor_Z23DD7291(x, append(ys_1, acc));
1178
1249
  } else {
1179
- return FSharpList_Cons_305B8EAC(x, acc);
1250
+ return FSharpList_$ctor_Z23DD7291(x, acc);
1180
1251
  }
1181
- }, FSharpList_get_Empty(), xs);
1252
+ }, empty(), xs);
1182
1253
  return reverse(isDone ? result : i + 1 === index ? append(ys_1, result) : (() => {
1183
- throw new Exception(SR_indexOutOfBounds + " (Parameter 'index')");
1254
+ throw Operators_InvalidArg("index", SR_indexOutOfBounds);
1184
1255
  })());
1185
1256
  }
1186
1257
  function removeAt(index, xs) {
@@ -1196,32 +1267,26 @@ function removeAt(index, xs) {
1196
1267
  }
1197
1268
  }, xs);
1198
1269
  if (!isDone) {
1199
- throw new Exception(SR_indexOutOfBounds + " (Parameter 'index')");
1270
+ throw Operators_InvalidArg("index", SR_indexOutOfBounds);
1200
1271
  }
1201
1272
  return ys;
1202
1273
  }
1203
1274
  function removeManyAt(index, count, xs) {
1275
+ if (index < 0) {
1276
+ throw Operators_InvalidArg("index", "index must be within bounds of the list");
1277
+ }
1278
+ const endIndex = index + count | 0;
1204
1279
  let i = -1;
1205
- let status = -1;
1206
1280
  const ys = filter((_arg) => {
1207
1281
  i = i + 1 | 0;
1208
- if (i === index) {
1209
- status = 0;
1210
- return false;
1211
- } else if (i > index) {
1212
- if (i < index + count) {
1213
- return false;
1214
- } else {
1215
- status = 1;
1216
- return true;
1217
- }
1218
- } else {
1282
+ if (i < index) {
1219
1283
  return true;
1284
+ } else {
1285
+ return i >= endIndex;
1220
1286
  }
1221
1287
  }, xs);
1222
- const status_1 = (status === 0 && i + 1 === index + count ? 1 : status) | 0;
1223
- if (status_1 < 1) {
1224
- throw new Exception(SR_indexOutOfBounds + (" (Parameter '" + (status_1 < 0 ? "index" : "count") + "')"));
1288
+ if (endIndex > i + 1) {
1289
+ throw Operators_InvalidArg("index", "index must be within bounds of the list");
1225
1290
  }
1226
1291
  return ys;
1227
1292
  }
@@ -1236,7 +1301,7 @@ function updateAt(index, y, xs) {
1236
1301
  }
1237
1302
  }, xs);
1238
1303
  if (!isDone) {
1239
- throw new Exception(SR_indexOutOfBounds + " (Parameter 'index')");
1304
+ throw Operators_InvalidArg("index", SR_indexOutOfBounds);
1240
1305
  }
1241
1306
  return ys;
1242
1307
  }
@@ -1279,4 +1344,4 @@ function randomSample(count, xs) {
1279
1344
  return randomSampleWith(nonSeeded(), count, xs);
1280
1345
  }
1281
1346
 
1282
- export { FSharpList, FSharpList_$reflection, FSharpList_Cons_305B8EAC, FSharpList__get_Head, FSharpList__get_IsEmpty, FSharpList__get_Item_Z524259A4, FSharpList__get_Length, FSharpList__get_Tail, FSharpList_get_Empty, ListEnumerator$1, ListEnumerator$1_$ctor_3002E699, ListEnumerator$1_$reflection, allPairs, append, average, averageBy, choose, chunkBySize, collect, compareWith, concat, cons, contains, empty, exactlyOne, exists, exists2, filter, find, findBack, findIndex, findIndexBack, fold, fold2, foldBack, foldBack2, foldIndexed, forAll, forAll2, getSlice, head, indexNotFound, indexed, initialize, insertAt, insertManyAt, isEmpty, item, iterate, iterate2, iterateIndexed, iterateIndexed2, last, length, map, map2, map3, mapFold, mapFoldBack, mapIndexed, mapIndexed2, max, maxBy, min, minBy, ofArray, ofArrayWithTail, ofSeq, pairwise, partition, permute, pick, randomChoice, randomChoiceBy, randomChoiceWith, randomChoices, randomChoicesBy, randomChoicesWith, randomSample, randomSampleBy, randomSampleWith, randomShuffle, randomShuffleBy, randomShuffleWith, reduce, reduceBack, removeAt, removeManyAt, replicate, reverse, scan, scanBack, singleton, skip, skipWhile, sort, sortBy, sortByDescending, sortDescending, sortWith, splitAt, splitInto, sum, sumBy, tail, take, takeWhile, toArray, toSeq, transpose, truncate, tryExactlyOne, tryFind, tryFindBack, tryFindIndex, tryFindIndexBack, tryHead, tryItem, tryLast, tryPick, unfold, unzip, unzip3, updateAt, where, windowed, zip, zip3 };
1347
+ export { FSharpList, FSharpList_$ctor_Z23DD7291, FSharpList_$reflection, FSharpList__get_Head, FSharpList__get_IsEmpty, FSharpList__get_Item_Z524259A4, FSharpList__get_Length, FSharpList__get_Tail, ListEnumerator$1, ListEnumerator$1_$ctor_3002E699, ListEnumerator$1_$reflection, allPairs, append, average, averageBy, choose, chunkBySize, collect, compareWith, concat, cons, contains, empty, exactlyOne, exists, exists2, filter, find, findBack, findIndex, findIndexBack, fold, fold2, foldBack, foldBack2, foldIndexed, forAll, forAll2, getSlice, head, indexNotFound, indexed, initialize, insertAt, insertManyAt, isEmpty, item, iterate, iterate2, iterateIndexed, iterateIndexed2, last, length, map, map2, map3, mapFold, mapFoldBack, mapIndexed, mapIndexed2, max, maxBy, min, minBy, ofArray, ofArrayWithTail, ofSeq, pairwise, partition, permute, pick, randomChoice, randomChoiceBy, randomChoiceWith, randomChoices, randomChoicesBy, randomChoicesWith, randomSample, randomSampleBy, randomSampleWith, randomShuffle, randomShuffleBy, randomShuffleWith, reduce, reduceBack, removeAt, removeManyAt, replicate, reverse, scan, scanBack, singleton, skip, skipWhile, sort, sortBy, sortByDescending, sortDescending, sortWith, splitAt, splitInto, sum, sumBy, tail, take, takeWhile, toArray, toSeq, transpose, truncate, tryExactlyOne, tryFind, tryFindBack, tryFindIndex, tryFindIndexBack, tryHead, tryItem, tryLast, tryPick, unfold, unzip, unzip3, updateAt, where, windowed, zip, zip3 };