@nfdi4plants/arctrl 3.0.0-beta.3 → 3.0.0-beta.4

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 (380) hide show
  1. package/README.md +2 -0
  2. package/dist/ts/index.js +63 -0
  3. package/dist/ts/node_modules/@fable-org/fable-library-js/Array.js +354 -0
  4. package/dist/ts/node_modules/@fable-org/fable-library-js/Async.js +28 -0
  5. package/dist/ts/node_modules/@fable-org/fable-library-js/AsyncBuilder.js +186 -0
  6. package/dist/ts/node_modules/@fable-org/fable-library-js/BigInt.js +8 -0
  7. package/dist/ts/node_modules/@fable-org/fable-library-js/Boolean.js +24 -0
  8. package/dist/ts/node_modules/@fable-org/fable-library-js/Char.js +73 -0
  9. package/dist/ts/node_modules/@fable-org/fable-library-js/CollectionUtil.js +31 -0
  10. package/dist/ts/node_modules/@fable-org/fable-library-js/Date.js +574 -0
  11. package/dist/ts/node_modules/@fable-org/fable-library-js/DateOffset.js +59 -0
  12. package/dist/ts/node_modules/@fable-org/fable-library-js/Decimal.js +65 -0
  13. package/dist/ts/node_modules/@fable-org/fable-library-js/Double.js +30 -0
  14. package/dist/ts/node_modules/@fable-org/fable-library-js/FSharp.Core.js +5 -0
  15. package/dist/ts/node_modules/@fable-org/fable-library-js/Global.js +5 -0
  16. package/dist/ts/node_modules/@fable-org/fable-library-js/Guid.js +48 -0
  17. package/dist/ts/node_modules/@fable-org/fable-library-js/Int32.js +120 -0
  18. package/dist/ts/node_modules/@fable-org/fable-library-js/List.js +680 -0
  19. package/dist/ts/node_modules/@fable-org/fable-library-js/Long.js +40 -0
  20. package/dist/ts/node_modules/@fable-org/fable-library-js/Map.js +655 -0
  21. package/dist/ts/node_modules/@fable-org/fable-library-js/MapUtil.js +105 -0
  22. package/dist/ts/node_modules/@fable-org/fable-library-js/MutableMap.js +320 -0
  23. package/dist/ts/node_modules/@fable-org/fable-library-js/MutableSet.js +204 -0
  24. package/dist/ts/node_modules/@fable-org/fable-library-js/Native.js +10 -0
  25. package/dist/ts/node_modules/@fable-org/fable-library-js/Numeric.js +73 -0
  26. package/dist/ts/node_modules/@fable-org/fable-library-js/Option.js +65 -0
  27. package/dist/ts/node_modules/@fable-org/fable-library-js/Range.js +23 -0
  28. package/dist/ts/node_modules/@fable-org/fable-library-js/Reflection.js +111 -0
  29. package/dist/ts/node_modules/@fable-org/fable-library-js/RegExp.js +114 -0
  30. package/dist/ts/node_modules/@fable-org/fable-library-js/Result.js +36 -0
  31. package/dist/ts/node_modules/@fable-org/fable-library-js/Seq.js +846 -0
  32. package/dist/ts/node_modules/@fable-org/fable-library-js/Seq2.js +65 -0
  33. package/dist/ts/node_modules/@fable-org/fable-library-js/Set.js +1160 -0
  34. package/dist/ts/node_modules/@fable-org/fable-library-js/String.js +364 -0
  35. package/dist/ts/node_modules/@fable-org/fable-library-js/System.Text.js +40 -0
  36. package/dist/ts/node_modules/@fable-org/fable-library-js/Types.js +193 -0
  37. package/dist/ts/node_modules/@fable-org/fable-library-js/Unicode.13.0.0.js +6 -0
  38. package/dist/ts/node_modules/@fable-org/fable-library-js/Uri.js +160 -0
  39. package/dist/ts/node_modules/@fable-org/fable-library-js/Util.js +367 -0
  40. package/dist/ts/node_modules/@fable-org/fable-library-js/lib/big.js +825 -0
  41. package/dist/ts/ts/ARC.js +914 -0
  42. package/dist/ts/ts/Contract/ARC.js +52 -0
  43. package/dist/ts/ts/Contract/ArcAssay.js +80 -0
  44. package/dist/ts/ts/Contract/ArcInvestigation.js +57 -0
  45. package/dist/ts/ts/Contract/ArcRun.js +76 -0
  46. package/dist/ts/ts/Contract/ArcStudy.js +76 -0
  47. package/dist/ts/ts/Contract/ArcWorkflow.js +77 -0
  48. package/dist/ts/ts/Contract/Contract.js +45 -0
  49. package/dist/ts/ts/Contract/Datamap.js +221 -0
  50. package/dist/ts/ts/Contract/Git.js +57 -0
  51. package/dist/ts/ts/Contract/ValidationPackagesConfig.js +57 -0
  52. package/dist/ts/ts/ContractIO/ContractIO.js +202 -0
  53. package/dist/ts/ts/ContractIO/FileSystemHelper.d.ts +1 -1
  54. package/dist/ts/ts/ContractIO/FileSystemHelper.d.ts.map +1 -1
  55. package/dist/ts/ts/ContractIO/FileSystemHelper.js +273 -0
  56. package/dist/ts/ts/Conversion.js +1247 -0
  57. package/dist/ts/ts/Core/ArcTypes.js +3393 -0
  58. package/dist/ts/ts/Core/Comment.js +91 -0
  59. package/dist/ts/ts/Core/CommentList.js +27 -0
  60. package/dist/ts/ts/Core/Conversion.js +923 -0
  61. package/dist/ts/ts/Core/Data.js +179 -0
  62. package/dist/ts/ts/Core/DataContext.js +108 -0
  63. package/dist/ts/ts/Core/DataFile.js +50 -0
  64. package/dist/ts/ts/Core/DataMap.js +53 -0
  65. package/dist/ts/ts/Core/Helper/Collections.js +323 -0
  66. package/dist/ts/ts/Core/Helper/HashCodes.js +35 -0
  67. package/dist/ts/ts/Core/Helper/Identifier.js +96 -0
  68. package/dist/ts/ts/Core/Helper/ORCID.js +34 -0
  69. package/dist/ts/ts/Core/Helper/Regex.js +296 -0
  70. package/dist/ts/ts/Core/Helper/SemVer.js +31 -0
  71. package/dist/ts/ts/Core/Helper/Url.js +32 -0
  72. package/dist/ts/ts/Core/IdentifierSetters.js +9 -0
  73. package/dist/ts/ts/Core/OntologyAnnotation.js +207 -0
  74. package/dist/ts/ts/Core/OntologySourceReference.js +84 -0
  75. package/dist/ts/ts/Core/Person.js +183 -0
  76. package/dist/ts/ts/Core/Process/ColumnIndex.js +73 -0
  77. package/dist/ts/ts/Core/Process/Component.js +121 -0
  78. package/dist/ts/ts/Core/Process/Factor.js +104 -0
  79. package/dist/ts/ts/Core/Process/FactorValue.js +68 -0
  80. package/dist/ts/ts/Core/Process/Material.js +49 -0
  81. package/dist/ts/ts/Core/Process/MaterialAttribute.js +30 -0
  82. package/dist/ts/ts/Core/Process/MaterialAttributeValue.js +68 -0
  83. package/dist/ts/ts/Core/Process/MaterialType.js +28 -0
  84. package/dist/ts/ts/Core/Process/Process.js +136 -0
  85. package/dist/ts/ts/Core/Process/ProcessInput.js +207 -0
  86. package/dist/ts/ts/Core/Process/ProcessOutput.js +178 -0
  87. package/dist/ts/ts/Core/Process/ProcessParameterValue.js +135 -0
  88. package/dist/ts/ts/Core/Process/ProcessSequence.js +56 -0
  89. package/dist/ts/ts/Core/Process/Protocol.js +54 -0
  90. package/dist/ts/ts/Core/Process/ProtocolParameter.js +69 -0
  91. package/dist/ts/ts/Core/Process/Sample.js +44 -0
  92. package/dist/ts/ts/Core/Process/Source.js +38 -0
  93. package/dist/ts/ts/Core/Publication.js +108 -0
  94. package/dist/ts/ts/Core/Table/ArcTable.js +889 -0
  95. package/dist/ts/ts/Core/Table/ArcTableAux.js +993 -0
  96. package/dist/ts/ts/Core/Table/ArcTables.js +415 -0
  97. package/dist/ts/ts/Core/Table/CompositeCell.js +334 -0
  98. package/dist/ts/ts/Core/Table/CompositeColumn.js +52 -0
  99. package/dist/ts/ts/Core/Table/CompositeHeader.js +792 -0
  100. package/dist/ts/ts/Core/Template.js +180 -0
  101. package/dist/ts/ts/Core/Templates.js +75 -0
  102. package/dist/ts/ts/Core/URI.js +8 -0
  103. package/dist/ts/ts/Core/Value.js +194 -0
  104. package/dist/ts/ts/CrossAsync.js +20 -0
  105. package/dist/ts/ts/FileSystem/DefaultGitattributes.js +3 -0
  106. package/dist/ts/ts/FileSystem/DefaultGitignore.js +3 -0
  107. package/dist/ts/ts/FileSystem/FileSystem.js +48 -0
  108. package/dist/ts/ts/FileSystem/FileSystemTree.js +339 -0
  109. package/dist/ts/ts/FileSystem/Path.js +36 -0
  110. package/dist/ts/ts/Json/Assay.d.ts +1 -1
  111. package/dist/ts/ts/Json/Assay.js +221 -0
  112. package/dist/ts/ts/Json/Comment.d.ts +1 -1
  113. package/dist/ts/ts/Json/Comment.js +112 -0
  114. package/dist/ts/ts/Json/Data.d.ts +1 -1
  115. package/dist/ts/ts/Json/Data.js +138 -0
  116. package/dist/ts/ts/Json/DataFile.d.ts +1 -1
  117. package/dist/ts/ts/Json/DataFile.js +55 -0
  118. package/dist/ts/ts/Json/DataMap/DataContext.d.ts +1 -1
  119. package/dist/ts/ts/Json/DataMap/DataContext.js +39 -0
  120. package/dist/ts/ts/Json/DataMap/DataMap.d.ts +1 -1
  121. package/dist/ts/ts/Json/DataMap/DataMap.js +27 -0
  122. package/dist/ts/ts/Json/Decode.d.ts +2 -2
  123. package/dist/ts/ts/Json/Decode.js +209 -0
  124. package/dist/ts/ts/Json/Encode.d.ts +1 -1
  125. package/dist/ts/ts/Json/Encode.js +65 -0
  126. package/dist/ts/ts/Json/IDTable.d.ts +1 -1
  127. package/dist/ts/ts/Json/IDTable.js +28 -0
  128. package/dist/ts/ts/Json/Investigation.d.ts +1 -1
  129. package/dist/ts/ts/Json/Investigation.js +229 -0
  130. package/dist/ts/ts/Json/OntologyAnnotation.d.ts +1 -1
  131. package/dist/ts/ts/Json/OntologyAnnotation.js +194 -0
  132. package/dist/ts/ts/Json/OntologySourceReference.d.ts +1 -1
  133. package/dist/ts/ts/Json/OntologySourceReference.js +119 -0
  134. package/dist/ts/ts/Json/Person.d.ts +1 -1
  135. package/dist/ts/ts/Json/Person.js +316 -0
  136. package/dist/ts/ts/Json/Process/AssayMaterials.d.ts +1 -1
  137. package/dist/ts/ts/Json/Process/AssayMaterials.js +21 -0
  138. package/dist/ts/ts/Json/Process/Component.d.ts +1 -1
  139. package/dist/ts/ts/Json/Process/Component.js +41 -0
  140. package/dist/ts/ts/Json/Process/Factor.d.ts +1 -1
  141. package/dist/ts/ts/Json/Process/Factor.js +53 -0
  142. package/dist/ts/ts/Json/Process/FactorValue.d.ts +1 -1
  143. package/dist/ts/ts/Json/Process/FactorValue.js +44 -0
  144. package/dist/ts/ts/Json/Process/Material.d.ts +1 -1
  145. package/dist/ts/ts/Json/Process/Material.js +112 -0
  146. package/dist/ts/ts/Json/Process/MaterialAttribute.d.ts +1 -1
  147. package/dist/ts/ts/Json/Process/MaterialAttribute.js +43 -0
  148. package/dist/ts/ts/Json/Process/MaterialAttributeValue.d.ts +1 -1
  149. package/dist/ts/ts/Json/Process/MaterialAttributeValue.js +44 -0
  150. package/dist/ts/ts/Json/Process/MaterialType.d.ts +1 -1
  151. package/dist/ts/ts/Json/Process/MaterialType.js +45 -0
  152. package/dist/ts/ts/Json/Process/Process.d.ts +1 -1
  153. package/dist/ts/ts/Json/Process/Process.js +103 -0
  154. package/dist/ts/ts/Json/Process/ProcessInput.d.ts +1 -1
  155. package/dist/ts/ts/Json/Process/ProcessInput.js +42 -0
  156. package/dist/ts/ts/Json/Process/ProcessOutput.d.ts +1 -1
  157. package/dist/ts/ts/Json/Process/ProcessOutput.js +35 -0
  158. package/dist/ts/ts/Json/Process/ProcessParameterValue.d.ts +1 -1
  159. package/dist/ts/ts/Json/Process/ProcessParameterValue.js +28 -0
  160. package/dist/ts/ts/Json/Process/Protocol.d.ts +1 -1
  161. package/dist/ts/ts/Json/Process/Protocol.js +166 -0
  162. package/dist/ts/ts/Json/Process/ProtocolParameter.d.ts +1 -1
  163. package/dist/ts/ts/Json/Process/ProtocolParameter.js +43 -0
  164. package/dist/ts/ts/Json/Process/Sample.d.ts +1 -1
  165. package/dist/ts/ts/Json/Process/Sample.js +165 -0
  166. package/dist/ts/ts/Json/Process/Source.d.ts +1 -1
  167. package/dist/ts/ts/Json/Process/Source.js +133 -0
  168. package/dist/ts/ts/Json/Process/StudyMaterials.d.ts +1 -1
  169. package/dist/ts/ts/Json/Process/StudyMaterials.js +23 -0
  170. package/dist/ts/ts/Json/Process/Value.d.ts +1 -1
  171. package/dist/ts/ts/Json/Process/Value.js +41 -0
  172. package/dist/ts/ts/Json/PropertyValue.d.ts +1 -1
  173. package/dist/ts/ts/Json/PropertyValue.js +280 -0
  174. package/dist/ts/ts/Json/Publication.d.ts +1 -1
  175. package/dist/ts/ts/Json/Publication.js +123 -0
  176. package/dist/ts/ts/Json/ROCrate/LDContext.d.ts +1 -1
  177. package/dist/ts/ts/Json/ROCrate/LDContext.js +115 -0
  178. package/dist/ts/ts/Json/ROCrate/LDGraph.d.ts +1 -1
  179. package/dist/ts/ts/Json/ROCrate/LDGraph.js +83 -0
  180. package/dist/ts/ts/Json/ROCrate/LDNode.d.ts +1 -1
  181. package/dist/ts/ts/Json/ROCrate/LDNode.js +190 -0
  182. package/dist/ts/ts/Json/ROCrate/LDRef.d.ts +1 -1
  183. package/dist/ts/ts/Json/ROCrate/LDRef.js +24 -0
  184. package/dist/ts/ts/Json/ROCrate/LDValue.d.ts +1 -1
  185. package/dist/ts/ts/Json/ROCrate/LDValue.js +63 -0
  186. package/dist/ts/ts/Json/StringTable.d.ts +1 -1
  187. package/dist/ts/ts/Json/StringTable.js +66 -0
  188. package/dist/ts/ts/Json/Study.d.ts +1 -1
  189. package/dist/ts/ts/Json/Study.js +326 -0
  190. package/dist/ts/ts/Json/Table/ArcTable.d.ts +1 -1
  191. package/dist/ts/ts/Json/Table/ArcTable.js +210 -0
  192. package/dist/ts/ts/Json/Table/CellTable.d.ts +1 -1
  193. package/dist/ts/ts/Json/Table/CellTable.js +53 -0
  194. package/dist/ts/ts/Json/Table/CompositeCell.d.ts +1 -1
  195. package/dist/ts/ts/Json/Table/CompositeCell.js +106 -0
  196. package/dist/ts/ts/Json/Table/CompositeHeader.d.ts +1 -1
  197. package/dist/ts/ts/Json/Table/CompositeHeader.js +121 -0
  198. package/dist/ts/ts/Json/Table/IOType.d.ts +1 -1
  199. package/dist/ts/ts/Json/Table/IOType.js +15 -0
  200. package/dist/ts/ts/Json/Table/OATable.d.ts +1 -1
  201. package/dist/ts/ts/Json/Table/OATable.js +50 -0
  202. package/dist/ts/ts/Json/Table/Templates.d.ts +1 -1
  203. package/dist/ts/ts/Json/Table/Templates.js +15 -0
  204. package/dist/ts/ts/Json/context/rocrate/isa_assay_context.d.ts +1 -1
  205. package/dist/ts/ts/Json/context/rocrate/isa_assay_context.js +61 -0
  206. package/dist/ts/ts/Json/context/rocrate/isa_comment_context.d.ts +1 -1
  207. package/dist/ts/ts/Json/context/rocrate/isa_comment_context.js +29 -0
  208. package/dist/ts/ts/Json/context/rocrate/isa_data_context.d.ts +1 -1
  209. package/dist/ts/ts/Json/context/rocrate/isa_data_context.js +41 -0
  210. package/dist/ts/ts/Json/context/rocrate/isa_investigation_context.d.ts +1 -1
  211. package/dist/ts/ts/Json/context/rocrate/isa_investigation_context.js +69 -0
  212. package/dist/ts/ts/Json/context/rocrate/isa_material_context.d.ts +1 -1
  213. package/dist/ts/ts/Json/context/rocrate/isa_material_context.js +37 -0
  214. package/dist/ts/ts/Json/context/rocrate/isa_ontology_annotation_context.d.ts +1 -1
  215. package/dist/ts/ts/Json/context/rocrate/isa_ontology_annotation_context.js +37 -0
  216. package/dist/ts/ts/Json/context/rocrate/isa_ontology_source_reference_context.d.ts +1 -1
  217. package/dist/ts/ts/Json/context/rocrate/isa_ontology_source_reference_context.js +41 -0
  218. package/dist/ts/ts/Json/context/rocrate/isa_organization_context.d.ts +1 -1
  219. package/dist/ts/ts/Json/context/rocrate/isa_organization_context.js +25 -0
  220. package/dist/ts/ts/Json/context/rocrate/isa_person_context.d.ts +1 -1
  221. package/dist/ts/ts/Json/context/rocrate/isa_person_context.js +86 -0
  222. package/dist/ts/ts/Json/context/rocrate/isa_process_context.d.ts +1 -1
  223. package/dist/ts/ts/Json/context/rocrate/isa_process_context.js +57 -0
  224. package/dist/ts/ts/Json/context/rocrate/isa_protocol_context.d.ts +1 -1
  225. package/dist/ts/ts/Json/context/rocrate/isa_protocol_context.js +61 -0
  226. package/dist/ts/ts/Json/context/rocrate/isa_publication_context.d.ts +1 -1
  227. package/dist/ts/ts/Json/context/rocrate/isa_publication_context.js +45 -0
  228. package/dist/ts/ts/Json/context/rocrate/isa_sample_context.d.ts +1 -1
  229. package/dist/ts/ts/Json/context/rocrate/isa_sample_context.js +33 -0
  230. package/dist/ts/ts/Json/context/rocrate/isa_source_context.d.ts +1 -1
  231. package/dist/ts/ts/Json/context/rocrate/isa_source_context.js +33 -0
  232. package/dist/ts/ts/Json/context/rocrate/isa_study_context.d.ts +1 -1
  233. package/dist/ts/ts/Json/context/rocrate/isa_study_context.js +77 -0
  234. package/dist/ts/ts/Json/context/rocrate/property_value_context.d.ts +1 -1
  235. package/dist/ts/ts/Json/context/rocrate/property_value_context.js +61 -0
  236. package/dist/ts/ts/Json/context/rocrate/rocrate_context.d.ts +1 -1
  237. package/dist/ts/ts/Json.js +171 -0
  238. package/dist/ts/ts/JsonIO/Assay.js +77 -0
  239. package/dist/ts/ts/JsonIO/Investigation.js +77 -0
  240. package/dist/ts/ts/JsonIO/LDObject.js +77 -0
  241. package/dist/ts/ts/JsonIO/OntologyAnnotation.js +56 -0
  242. package/dist/ts/ts/JsonIO/Study.js +77 -0
  243. package/dist/ts/ts/JsonIO/Table/Compression.d.ts +1 -1
  244. package/dist/ts/ts/JsonIO/Table/Compression.js +39 -0
  245. package/dist/ts/ts/JsonIO/Table/Templates.d.ts +1 -1
  246. package/dist/ts/ts/JsonIO/Table/Templates.js +25 -0
  247. package/dist/ts/ts/ROCrate/Generic/Comment.js +103 -0
  248. package/dist/ts/ts/ROCrate/Generic/Dataset.js +624 -0
  249. package/dist/ts/ts/ROCrate/Generic/DefinedTerm.js +103 -0
  250. package/dist/ts/ts/ROCrate/Generic/File.js +184 -0
  251. package/dist/ts/ts/ROCrate/Generic/LabProcess.js +222 -0
  252. package/dist/ts/ts/ROCrate/Generic/LabProtocol.js +257 -0
  253. package/dist/ts/ts/ROCrate/Generic/Organization.js +63 -0
  254. package/dist/ts/ts/ROCrate/Generic/Person.js +377 -0
  255. package/dist/ts/ts/ROCrate/Generic/PostalAddress.js +143 -0
  256. package/dist/ts/ts/ROCrate/Generic/PropertyValue.js +512 -0
  257. package/dist/ts/ts/ROCrate/Generic/Sample.js +131 -0
  258. package/dist/ts/ts/ROCrate/Generic/ScholarlyArticle.js +173 -0
  259. package/dist/ts/ts/ROCrate/Helper.js +7 -0
  260. package/dist/ts/ts/ROCrate/LDContext.js +288 -0
  261. package/dist/ts/ts/ROCrate/LDObject.js +855 -0
  262. package/dist/ts/ts/ROCrate/ROCrateContext.js +39 -0
  263. package/dist/ts/ts/ROCrateIO.d.ts +1 -1
  264. package/dist/ts/ts/ROCrateIO.js +58 -0
  265. package/dist/ts/ts/Spreadsheet/AnnotationTable/ArcTable.d.ts +2 -2
  266. package/dist/ts/ts/Spreadsheet/AnnotationTable/ArcTable.d.ts.map +1 -1
  267. package/dist/ts/ts/Spreadsheet/AnnotationTable/ArcTable.js +149 -0
  268. package/dist/ts/ts/Spreadsheet/AnnotationTable/CompositeCell.js +63 -0
  269. package/dist/ts/ts/Spreadsheet/AnnotationTable/CompositeColumn.d.ts +2 -2
  270. package/dist/ts/ts/Spreadsheet/AnnotationTable/CompositeColumn.d.ts.map +1 -1
  271. package/dist/ts/ts/Spreadsheet/AnnotationTable/CompositeColumn.js +108 -0
  272. package/dist/ts/ts/Spreadsheet/AnnotationTable/CompositeHeader.js +410 -0
  273. package/dist/ts/ts/Spreadsheet/ArcAssay.d.ts +2 -2
  274. package/dist/ts/ts/Spreadsheet/ArcAssay.d.ts.map +1 -1
  275. package/dist/ts/ts/Spreadsheet/ArcAssay.js +169 -0
  276. package/dist/ts/ts/Spreadsheet/ArcInvestigation.d.ts +2 -2
  277. package/dist/ts/ts/Spreadsheet/ArcInvestigation.d.ts.map +1 -1
  278. package/dist/ts/ts/Spreadsheet/ArcInvestigation.js +316 -0
  279. package/dist/ts/ts/Spreadsheet/ArcRun.d.ts +2 -2
  280. package/dist/ts/ts/Spreadsheet/ArcRun.d.ts.map +1 -1
  281. package/dist/ts/ts/Spreadsheet/ArcRun.js +136 -0
  282. package/dist/ts/ts/Spreadsheet/ArcStudy.d.ts +2 -2
  283. package/dist/ts/ts/Spreadsheet/ArcStudy.d.ts.map +1 -1
  284. package/dist/ts/ts/Spreadsheet/ArcStudy.js +92 -0
  285. package/dist/ts/ts/Spreadsheet/ArcWorkflow.d.ts +2 -2
  286. package/dist/ts/ts/Spreadsheet/ArcWorkflow.d.ts.map +1 -1
  287. package/dist/ts/ts/Spreadsheet/ArcWorkflow.js +125 -0
  288. package/dist/ts/ts/Spreadsheet/CollectionAux.js +34 -0
  289. package/dist/ts/ts/Spreadsheet/DataMap.d.ts +1 -1
  290. package/dist/ts/ts/Spreadsheet/DataMap.d.ts.map +1 -1
  291. package/dist/ts/ts/Spreadsheet/DataMap.js +33 -0
  292. package/dist/ts/ts/Spreadsheet/DataMapTable/DataMapColumn.d.ts +2 -2
  293. package/dist/ts/ts/Spreadsheet/DataMapTable/DataMapColumn.d.ts.map +1 -1
  294. package/dist/ts/ts/Spreadsheet/DataMapTable/DataMapColumn.js +41 -0
  295. package/dist/ts/ts/Spreadsheet/DataMapTable/DataMapHeader.d.ts +1 -1
  296. package/dist/ts/ts/Spreadsheet/DataMapTable/DataMapHeader.d.ts.map +1 -1
  297. package/dist/ts/ts/Spreadsheet/DataMapTable/DataMapHeader.js +418 -0
  298. package/dist/ts/ts/Spreadsheet/DataMapTable/DataMapTable.d.ts +3 -3
  299. package/dist/ts/ts/Spreadsheet/DataMapTable/DataMapTable.d.ts.map +1 -1
  300. package/dist/ts/ts/Spreadsheet/DataMapTable/DataMapTable.js +85 -0
  301. package/dist/ts/ts/Spreadsheet/Metadata/Assays.js +90 -0
  302. package/dist/ts/ts/Spreadsheet/Metadata/Comment.js +58 -0
  303. package/dist/ts/ts/Spreadsheet/Metadata/Contacts.js +85 -0
  304. package/dist/ts/ts/Spreadsheet/Metadata/Conversions.js +133 -0
  305. package/dist/ts/ts/Spreadsheet/Metadata/DesignDescriptors.js +15 -0
  306. package/dist/ts/ts/Spreadsheet/Metadata/Factors.js +74 -0
  307. package/dist/ts/ts/Spreadsheet/Metadata/OntologyAnnotation.js +58 -0
  308. package/dist/ts/ts/Spreadsheet/Metadata/OntologySourceReference.js +62 -0
  309. package/dist/ts/ts/Spreadsheet/Metadata/Protocols.js +94 -0
  310. package/dist/ts/ts/Spreadsheet/Metadata/Publication.js +81 -0
  311. package/dist/ts/ts/Spreadsheet/Metadata/Run.js +91 -0
  312. package/dist/ts/ts/Spreadsheet/Metadata/SparseTable.d.ts +3 -3
  313. package/dist/ts/ts/Spreadsheet/Metadata/SparseTable.d.ts.map +1 -1
  314. package/dist/ts/ts/Spreadsheet/Metadata/SparseTable.js +193 -0
  315. package/dist/ts/ts/Spreadsheet/Metadata/Study.js +238 -0
  316. package/dist/ts/ts/Spreadsheet/Metadata/Workflow.js +105 -0
  317. package/dist/ts/ts/Template.Web.js +22 -0
  318. package/dist/ts/ts/ValidationPackages/ValidationPackage.js +53 -0
  319. package/dist/ts/ts/ValidationPackages/ValidationPackagesConfig.js +78 -0
  320. package/dist/ts/ts/WebRequest/WebRequest.Node.js +13 -0
  321. package/dist/ts/ts/WebRequest/WebRequest.js +19 -0
  322. package/dist/ts/ts/Xlsx.d.ts +1 -1
  323. package/dist/ts/ts/Xlsx.d.ts.map +1 -1
  324. package/dist/ts/ts/Xlsx.js +91 -0
  325. package/dist/ts/ts/Yaml/Encode.js +8 -0
  326. package/dist/ts/ts/Yaml/ValidationPackage.js +26 -0
  327. package/dist/ts/ts/Yaml/ValidationPackagesConfig.js +40 -0
  328. package/dist/ts/ts/fable_modules/DynamicObj.7.0.1/DynamicObj.fs.js +344 -0
  329. package/dist/ts/ts/fable_modules/DynamicObj.7.0.1/FableJS.fs.js +103 -0
  330. package/dist/ts/ts/fable_modules/DynamicObj.7.0.1/HashCodes.fs.js +19 -0
  331. package/dist/ts/ts/fable_modules/DynamicObj.7.0.1/PropertyHelper.fs.js +17 -0
  332. package/dist/ts/ts/fable_modules/DynamicObj.7.0.1/ReflectionUtils.fs.js +7 -0
  333. package/dist/ts/ts/fable_modules/Fable.Exceljs.1.6.0/ExcelJs.fs.js +5 -0
  334. package/dist/ts/ts/fable_modules/Fable.Fetch.2.6.0/Fetch.fs.js +18 -0
  335. package/dist/ts/ts/fable_modules/Fable.Promise.3.2.0/Promise.fs.js +44 -0
  336. package/dist/ts/ts/fable_modules/Fable.Promise.3.2.0/PromiseImpl.fs.js +5 -0
  337. package/dist/ts/ts/fable_modules/Fable.SimpleHttp.3.5.0/Http.fs.js +142 -0
  338. package/dist/ts/ts/fable_modules/Fable.SimpleHttp.3.5.0/Types.fs.js +76 -0
  339. package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/Cells/FsCell.fs.js +359 -0
  340. package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/Cells/FsCellsCollection.fs.js +344 -0
  341. package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/FsAddress.fs.js +154 -0
  342. package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/FsColumn.fs.js +116 -0
  343. package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/FsRow.fs.js +126 -0
  344. package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/FsWorkbook.fs.js +135 -0
  345. package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/FsWorksheet.fs.js +422 -0
  346. package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/HashCodes.fs.js +5 -0
  347. package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/Json/Value.fs.js +25 -0
  348. package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/Ranges/FsRange.fs.js +28 -0
  349. package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/Ranges/FsRangeAddress.fs.js +82 -0
  350. package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/Ranges/FsRangeBase.fs.js +69 -0
  351. package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/Ranges/FsRangeColumn.fs.js +42 -0
  352. package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/Ranges/FsRangeRow.fs.js +29 -0
  353. package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/Tables/FsTable.fs.js +348 -0
  354. package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/Tables/FsTableField.fs.js +86 -0
  355. package/dist/ts/ts/fable_modules/FsSpreadsheet.Js.7.0.0-alpha.1/Cell.fs.js +68 -0
  356. package/dist/ts/ts/fable_modules/FsSpreadsheet.Js.7.0.0-alpha.1/FsExtensions.fs.js +12 -0
  357. package/dist/ts/ts/fable_modules/FsSpreadsheet.Js.7.0.0-alpha.1/Table.fs.js +54 -0
  358. package/dist/ts/ts/fable_modules/FsSpreadsheet.Js.7.0.0-alpha.1/Workbook.fs.js +33 -0
  359. package/dist/ts/ts/fable_modules/FsSpreadsheet.Js.7.0.0-alpha.1/Worksheet.fs.js +63 -0
  360. package/dist/ts/ts/fable_modules/FsSpreadsheet.Js.7.0.0-alpha.1/Xlsx.fs.js +66 -0
  361. package/dist/ts/ts/fable_modules/Thoth.Json.Core.0.7.0/Decode.fs.js +544 -0
  362. package/dist/ts/ts/fable_modules/Thoth.Json.Core.0.7.0/Encode.fs.js +31 -0
  363. package/dist/ts/ts/fable_modules/Thoth.Json.Core.0.7.0/Types.fs.js +38 -0
  364. package/dist/ts/ts/fable_modules/Thoth.Json.JavaScript.0.4.1/Decode.fs.js +79 -0
  365. package/dist/ts/ts/fable_modules/Thoth.Json.JavaScript.0.4.1/Encode.fs.js +57 -0
  366. package/dist/ts/ts/fable_modules/YAMLicious.0.0.3/Decode.fs.js +235 -0
  367. package/dist/ts/ts/fable_modules/YAMLicious.0.0.3/Encode.fs.js +16 -0
  368. package/dist/ts/ts/fable_modules/YAMLicious.0.0.3/Persil.fs.js +45 -0
  369. package/dist/ts/ts/fable_modules/YAMLicious.0.0.3/Preprocessing.fs.js +89 -0
  370. package/dist/ts/ts/fable_modules/YAMLicious.0.0.3/Reader.fs.js +480 -0
  371. package/dist/ts/ts/fable_modules/YAMLicious.0.0.3/Regex.fs.js +11 -0
  372. package/dist/ts/ts/fable_modules/YAMLicious.0.0.3/RegexActivePatterns.fs.js +212 -0
  373. package/dist/ts/ts/fable_modules/YAMLicious.0.0.3/Writer.fs.js +164 -0
  374. package/dist/ts/ts/fable_modules/YAMLicious.0.0.3/YAMLiciousTypes.fs.js +136 -0
  375. package/package.json +10 -7
  376. package/dist/ts/__vite-browser-external-2447137e.js +0 -4
  377. package/dist/ts/__vite-browser-external-b3701507.cjs +0 -1
  378. package/dist/ts/arctrl.cjs.js +0 -5691
  379. package/dist/ts/arctrl.es.js +0 -35562
  380. package/dist/ts/arctrl.umd.js +0 -5691
@@ -0,0 +1,846 @@
1
+ import { disposeSafe, getEnumerator, toIterator, isArrayLike, isDisposable } from './Util.js';
2
+ import { toString } from './Types.js';
3
+ import { some, value } from './Option.js';
4
+ import { Operators_NullArg } from './FSharp.Core.js';
5
+ import { tryItem as tryItem$1, tryHead as tryHead$1, singleton as singleton$1 } from './Array.js';
6
+ import { FSharpList, toArray as toArray$1, ofArray as ofArray$1, ofSeq as ofSeq$1, length as length$1, isEmpty as isEmpty$1, tryItem as tryItem$2, tryHead as tryHead$2 } from './List.js';
7
+ import { SR_indexOutOfBounds } from './Global.js';
8
+
9
+ const SR_enumerationAlreadyFinished = "Enumeration already finished.";
10
+ const SR_enumerationNotStarted = "Enumeration has not started. Call MoveNext.";
11
+ const SR_inputSequenceEmpty = "The input sequence was empty.";
12
+ const SR_inputSequenceTooLong = "The input sequence contains more than one element.";
13
+ const SR_keyNotFoundAlt = "An index satisfying the predicate was not found in the collection.";
14
+ const SR_notEnoughElements = "The input sequence has an insufficient number of elements.";
15
+ const SR_resetNotSupported = "Reset is not supported on this enumerator.";
16
+ function Enumerator_noReset() {
17
+ throw new Error(SR_resetNotSupported);
18
+ }
19
+ function Enumerator_notStarted() {
20
+ throw new Error(SR_enumerationNotStarted);
21
+ }
22
+ function Enumerator_alreadyFinished() {
23
+ throw new Error(SR_enumerationAlreadyFinished);
24
+ }
25
+ class Enumerator_Seq {
26
+ constructor(f) {
27
+ this.f = f;
28
+ }
29
+ toString() {
30
+ const xs = this;
31
+ let i = 0;
32
+ let str = "seq [";
33
+ const e = getEnumerator(xs);
34
+ try {
35
+ while ((i < 4) && e["System.Collections.IEnumerator.MoveNext"]()) {
36
+ if (i > 0) {
37
+ str = (str + "; ");
38
+ }
39
+ str = (str + toString(e["System.Collections.Generic.IEnumerator`1.get_Current"]()));
40
+ i = ((i + 1) | 0);
41
+ }
42
+ if (i === 4) {
43
+ str = (str + "; ...");
44
+ }
45
+ return str + "]";
46
+ }
47
+ finally {
48
+ disposeSafe(e);
49
+ }
50
+ }
51
+ GetEnumerator() {
52
+ const x = this;
53
+ return x.f();
54
+ }
55
+ [Symbol.iterator]() {
56
+ return toIterator(getEnumerator(this));
57
+ }
58
+ "System.Collections.IEnumerable.GetEnumerator"() {
59
+ const x = this;
60
+ return x.f();
61
+ }
62
+ }
63
+ function Enumerator_Seq_$ctor_673A07F2(f) {
64
+ return new Enumerator_Seq(f);
65
+ }
66
+ class Enumerator_FromFunctions$1 {
67
+ constructor(current, next, dispose) {
68
+ this.current = current;
69
+ this.next = next;
70
+ this.dispose = dispose;
71
+ }
72
+ "System.Collections.Generic.IEnumerator`1.get_Current"() {
73
+ const _ = this;
74
+ return _.current();
75
+ }
76
+ "System.Collections.IEnumerator.get_Current"() {
77
+ const _ = this;
78
+ return _.current();
79
+ }
80
+ "System.Collections.IEnumerator.MoveNext"() {
81
+ const _ = this;
82
+ return _.next();
83
+ }
84
+ "System.Collections.IEnumerator.Reset"() {
85
+ Enumerator_noReset();
86
+ }
87
+ Dispose() {
88
+ const _ = this;
89
+ _.dispose();
90
+ }
91
+ }
92
+ function Enumerator_FromFunctions$1_$ctor_58C54629(current, next, dispose) {
93
+ return new Enumerator_FromFunctions$1(current, next, dispose);
94
+ }
95
+ function Enumerator_concat(sources) {
96
+ let outerOpt = undefined;
97
+ let innerOpt = undefined;
98
+ let started = false;
99
+ let finished = false;
100
+ let curr = undefined;
101
+ const finish = () => {
102
+ finished = true;
103
+ if (innerOpt != null) {
104
+ const inner = value(innerOpt);
105
+ try {
106
+ disposeSafe(inner);
107
+ }
108
+ finally {
109
+ innerOpt = undefined;
110
+ }
111
+ }
112
+ if (outerOpt != null) {
113
+ const outer = value(outerOpt);
114
+ try {
115
+ disposeSafe(outer);
116
+ }
117
+ finally {
118
+ outerOpt = undefined;
119
+ }
120
+ }
121
+ };
122
+ return Enumerator_FromFunctions$1_$ctor_58C54629(() => {
123
+ if (!started) {
124
+ Enumerator_notStarted();
125
+ }
126
+ else if (finished) {
127
+ Enumerator_alreadyFinished();
128
+ }
129
+ if (curr != null) {
130
+ return value(curr);
131
+ }
132
+ else {
133
+ return Enumerator_alreadyFinished();
134
+ }
135
+ }, () => {
136
+ let copyOfStruct;
137
+ if (!started) {
138
+ started = true;
139
+ }
140
+ if (finished) {
141
+ return false;
142
+ }
143
+ else {
144
+ let res = undefined;
145
+ while (res == null) {
146
+ const outerOpt_1 = outerOpt;
147
+ const innerOpt_1 = innerOpt;
148
+ if (outerOpt_1 != null) {
149
+ if (innerOpt_1 != null) {
150
+ const inner_1 = value(innerOpt_1);
151
+ if (inner_1["System.Collections.IEnumerator.MoveNext"]()) {
152
+ curr = some(inner_1["System.Collections.Generic.IEnumerator`1.get_Current"]());
153
+ res = true;
154
+ }
155
+ else {
156
+ try {
157
+ disposeSafe(inner_1);
158
+ }
159
+ finally {
160
+ innerOpt = undefined;
161
+ }
162
+ }
163
+ }
164
+ else {
165
+ const outer_1 = value(outerOpt_1);
166
+ if (outer_1["System.Collections.IEnumerator.MoveNext"]()) {
167
+ const ie = outer_1["System.Collections.Generic.IEnumerator`1.get_Current"]();
168
+ innerOpt = ((copyOfStruct = ie, getEnumerator(copyOfStruct)));
169
+ }
170
+ else {
171
+ finish();
172
+ res = false;
173
+ }
174
+ }
175
+ }
176
+ else {
177
+ outerOpt = getEnumerator(sources);
178
+ }
179
+ }
180
+ return value(res);
181
+ }
182
+ }, () => {
183
+ if (!finished) {
184
+ finish();
185
+ }
186
+ });
187
+ }
188
+ function Enumerator_enumerateThenFinally(f, e) {
189
+ return Enumerator_FromFunctions$1_$ctor_58C54629(() => e["System.Collections.Generic.IEnumerator`1.get_Current"](), () => e["System.Collections.IEnumerator.MoveNext"](), () => {
190
+ try {
191
+ disposeSafe(e);
192
+ }
193
+ finally {
194
+ }
195
+ });
196
+ }
197
+ function Enumerator_generateWhileSome(openf, compute, closef) {
198
+ let started = false;
199
+ let curr = undefined;
200
+ let state = some(openf());
201
+ const dispose = () => {
202
+ if (state != null) {
203
+ const x_1 = value(state);
204
+ try {
205
+ closef(x_1);
206
+ }
207
+ finally {
208
+ state = undefined;
209
+ }
210
+ }
211
+ };
212
+ const finish = () => {
213
+ try {
214
+ dispose();
215
+ }
216
+ finally {
217
+ curr = undefined;
218
+ }
219
+ };
220
+ return Enumerator_FromFunctions$1_$ctor_58C54629(() => {
221
+ if (!started) {
222
+ Enumerator_notStarted();
223
+ }
224
+ if (curr != null) {
225
+ return value(curr);
226
+ }
227
+ else {
228
+ return Enumerator_alreadyFinished();
229
+ }
230
+ }, () => {
231
+ if (!started) {
232
+ started = true;
233
+ }
234
+ if (state != null) {
235
+ const s = value(state);
236
+ let matchValue_1;
237
+ try {
238
+ matchValue_1 = compute(s);
239
+ }
240
+ catch (matchValue) {
241
+ finish();
242
+ throw matchValue;
243
+ }
244
+ if (matchValue_1 != null) {
245
+ curr = matchValue_1;
246
+ return true;
247
+ }
248
+ else {
249
+ finish();
250
+ return false;
251
+ }
252
+ }
253
+ else {
254
+ return false;
255
+ }
256
+ }, dispose);
257
+ }
258
+ function Enumerator_unfold(f, state) {
259
+ let curr = undefined;
260
+ let acc = state;
261
+ return Enumerator_FromFunctions$1_$ctor_58C54629(() => {
262
+ if (curr != null) {
263
+ const x = value(curr)[0];
264
+ value(curr)[1];
265
+ return x;
266
+ }
267
+ else {
268
+ return Enumerator_notStarted();
269
+ }
270
+ }, () => {
271
+ curr = f(acc);
272
+ if (curr != null) {
273
+ value(curr)[0];
274
+ const st_1 = value(curr)[1];
275
+ acc = st_1;
276
+ return true;
277
+ }
278
+ else {
279
+ return false;
280
+ }
281
+ }, () => {
282
+ });
283
+ }
284
+ function indexNotFound() {
285
+ throw new Error(SR_keyNotFoundAlt);
286
+ }
287
+ function checkNonNull(argName, arg) {
288
+ if (arg == null) {
289
+ Operators_NullArg(argName);
290
+ }
291
+ }
292
+ function mkSeq(f) {
293
+ return Enumerator_Seq_$ctor_673A07F2(f);
294
+ }
295
+ function ofSeq(xs) {
296
+ checkNonNull("source", xs);
297
+ return getEnumerator(xs);
298
+ }
299
+ function delay(generator) {
300
+ return mkSeq(() => getEnumerator(generator()));
301
+ }
302
+ function concat(sources) {
303
+ return mkSeq(() => Enumerator_concat(sources));
304
+ }
305
+ function unfold(generator, state) {
306
+ return mkSeq(() => Enumerator_unfold(generator, state));
307
+ }
308
+ function empty() {
309
+ return delay(() => (new Array(0)));
310
+ }
311
+ function singleton(x) {
312
+ return delay(() => singleton$1(x));
313
+ }
314
+ function ofArray(arr) {
315
+ return arr;
316
+ }
317
+ function toArray(xs) {
318
+ if (xs instanceof FSharpList) {
319
+ const a = xs;
320
+ return toArray$1(a);
321
+ }
322
+ else {
323
+ return Array.from(xs);
324
+ }
325
+ }
326
+ function toList(xs) {
327
+ if (isArrayLike(xs)) {
328
+ return ofArray$1(xs);
329
+ }
330
+ else if (xs instanceof FSharpList) {
331
+ return xs;
332
+ }
333
+ else {
334
+ return ofSeq$1(xs);
335
+ }
336
+ }
337
+ function generate(create, compute, dispose) {
338
+ return mkSeq(() => Enumerator_generateWhileSome(create, compute, dispose));
339
+ }
340
+ function generateIndexed(create, compute, dispose) {
341
+ return mkSeq(() => {
342
+ let i = -1;
343
+ return Enumerator_generateWhileSome(create, (x) => {
344
+ i = ((i + 1) | 0);
345
+ return compute(i, x);
346
+ }, dispose);
347
+ });
348
+ }
349
+ function append(xs, ys) {
350
+ return concat([xs, ys]);
351
+ }
352
+ function choose(chooser, xs) {
353
+ return generate(() => ofSeq(xs), (e) => {
354
+ let curr = undefined;
355
+ while ((curr == null) && e["System.Collections.IEnumerator.MoveNext"]()) {
356
+ curr = chooser(e["System.Collections.Generic.IEnumerator`1.get_Current"]());
357
+ }
358
+ return curr;
359
+ }, (e_1) => {
360
+ disposeSafe(e_1);
361
+ });
362
+ }
363
+ function compareWith(comparer, xs, ys) {
364
+ const e1 = ofSeq(xs);
365
+ try {
366
+ const e2 = ofSeq(ys);
367
+ try {
368
+ let c = 0;
369
+ let b1 = e1["System.Collections.IEnumerator.MoveNext"]();
370
+ let b2 = e2["System.Collections.IEnumerator.MoveNext"]();
371
+ while (((c === 0) && b1) && b2) {
372
+ c = (comparer(e1["System.Collections.Generic.IEnumerator`1.get_Current"](), e2["System.Collections.Generic.IEnumerator`1.get_Current"]()) | 0);
373
+ if (c === 0) {
374
+ b1 = e1["System.Collections.IEnumerator.MoveNext"]();
375
+ b2 = e2["System.Collections.IEnumerator.MoveNext"]();
376
+ }
377
+ }
378
+ return ((c !== 0) ? c : (b1 ? 1 : (b2 ? -1 : 0))) | 0;
379
+ }
380
+ finally {
381
+ disposeSafe(e2);
382
+ }
383
+ }
384
+ finally {
385
+ disposeSafe(e1);
386
+ }
387
+ }
388
+ function contains(value, xs, comparer) {
389
+ const e = ofSeq(xs);
390
+ try {
391
+ let found = false;
392
+ while (!found && e["System.Collections.IEnumerator.MoveNext"]()) {
393
+ found = comparer.Equals(value, e["System.Collections.Generic.IEnumerator`1.get_Current"]());
394
+ }
395
+ return found;
396
+ }
397
+ finally {
398
+ disposeSafe(e);
399
+ }
400
+ }
401
+ function enumerateFromFunctions(create, moveNext, current) {
402
+ return generate(create, (x) => (moveNext(x) ? some(current(x)) : undefined), (x_1) => {
403
+ const matchValue = x_1;
404
+ if (isDisposable(matchValue)) {
405
+ const id = matchValue;
406
+ disposeSafe(id);
407
+ }
408
+ });
409
+ }
410
+ function enumerateWhile(guard, xs) {
411
+ return concat(unfold((i) => (guard() ? [xs, i + 1] : undefined), 0));
412
+ }
413
+ function filter(f, xs) {
414
+ return choose((x) => {
415
+ if (f(x)) {
416
+ return some(x);
417
+ }
418
+ else {
419
+ return undefined;
420
+ }
421
+ }, xs);
422
+ }
423
+ function exists(predicate, xs) {
424
+ const e = ofSeq(xs);
425
+ try {
426
+ let found = false;
427
+ while (!found && e["System.Collections.IEnumerator.MoveNext"]()) {
428
+ found = predicate(e["System.Collections.Generic.IEnumerator`1.get_Current"]());
429
+ }
430
+ return found;
431
+ }
432
+ finally {
433
+ disposeSafe(e);
434
+ }
435
+ }
436
+ function exactlyOne(xs) {
437
+ const e = ofSeq(xs);
438
+ try {
439
+ if (e["System.Collections.IEnumerator.MoveNext"]()) {
440
+ const v = e["System.Collections.Generic.IEnumerator`1.get_Current"]();
441
+ if (e["System.Collections.IEnumerator.MoveNext"]()) {
442
+ throw new Error((SR_inputSequenceTooLong + "\\nParameter name: ") + "source");
443
+ }
444
+ else {
445
+ return v;
446
+ }
447
+ }
448
+ else {
449
+ throw new Error((SR_inputSequenceEmpty + "\\nParameter name: ") + "source");
450
+ }
451
+ }
452
+ finally {
453
+ disposeSafe(e);
454
+ }
455
+ }
456
+ function tryFind(predicate, xs) {
457
+ const e = ofSeq(xs);
458
+ try {
459
+ let res = undefined;
460
+ while ((res == null) && e["System.Collections.IEnumerator.MoveNext"]()) {
461
+ const c = e["System.Collections.Generic.IEnumerator`1.get_Current"]();
462
+ if (predicate(c)) {
463
+ res = some(c);
464
+ }
465
+ }
466
+ return res;
467
+ }
468
+ finally {
469
+ disposeSafe(e);
470
+ }
471
+ }
472
+ function find(predicate, xs) {
473
+ const matchValue = tryFind(predicate, xs);
474
+ if (matchValue == null) {
475
+ return indexNotFound();
476
+ }
477
+ else {
478
+ return value(matchValue);
479
+ }
480
+ }
481
+ function tryFindIndex(predicate, xs) {
482
+ const e = ofSeq(xs);
483
+ try {
484
+ const loop = (i_mut) => {
485
+ loop: while (true) {
486
+ const i = i_mut;
487
+ if (e["System.Collections.IEnumerator.MoveNext"]()) {
488
+ if (predicate(e["System.Collections.Generic.IEnumerator`1.get_Current"]())) {
489
+ return i;
490
+ }
491
+ else {
492
+ i_mut = (i + 1);
493
+ continue loop;
494
+ }
495
+ }
496
+ else {
497
+ return undefined;
498
+ }
499
+ break;
500
+ }
501
+ };
502
+ return loop(0);
503
+ }
504
+ finally {
505
+ disposeSafe(e);
506
+ }
507
+ }
508
+ function findIndex(predicate, xs) {
509
+ const matchValue = tryFindIndex(predicate, xs);
510
+ if (matchValue == null) {
511
+ indexNotFound();
512
+ return -1;
513
+ }
514
+ else {
515
+ return value(matchValue) | 0;
516
+ }
517
+ }
518
+ function fold(folder, state, xs) {
519
+ const e = ofSeq(xs);
520
+ try {
521
+ let acc = state;
522
+ while (e["System.Collections.IEnumerator.MoveNext"]()) {
523
+ acc = folder(acc, e["System.Collections.Generic.IEnumerator`1.get_Current"]());
524
+ }
525
+ return acc;
526
+ }
527
+ finally {
528
+ disposeSafe(e);
529
+ }
530
+ }
531
+ function forAll(predicate, xs) {
532
+ return !exists((x) => !predicate(x), xs);
533
+ }
534
+ function tryHead(xs) {
535
+ if (isArrayLike(xs)) {
536
+ return tryHead$1(xs);
537
+ }
538
+ else if (xs instanceof FSharpList) {
539
+ return tryHead$2(xs);
540
+ }
541
+ else {
542
+ const e = ofSeq(xs);
543
+ try {
544
+ return e["System.Collections.IEnumerator.MoveNext"]() ? some(e["System.Collections.Generic.IEnumerator`1.get_Current"]()) : undefined;
545
+ }
546
+ finally {
547
+ disposeSafe(e);
548
+ }
549
+ }
550
+ }
551
+ function head(xs) {
552
+ const matchValue = tryHead(xs);
553
+ if (matchValue == null) {
554
+ throw new Error((SR_inputSequenceEmpty + "\\nParameter name: ") + "source");
555
+ }
556
+ else {
557
+ return value(matchValue);
558
+ }
559
+ }
560
+ function initialize(count, f) {
561
+ return unfold((i) => ((i < count) ? [f(i), i + 1] : undefined), 0);
562
+ }
563
+ function isEmpty(xs) {
564
+ if (isArrayLike(xs)) {
565
+ const a = xs;
566
+ return a.length === 0;
567
+ }
568
+ else if (xs instanceof FSharpList) {
569
+ return isEmpty$1(xs);
570
+ }
571
+ else {
572
+ const e = ofSeq(xs);
573
+ try {
574
+ return !e["System.Collections.IEnumerator.MoveNext"]();
575
+ }
576
+ finally {
577
+ disposeSafe(e);
578
+ }
579
+ }
580
+ }
581
+ function tryItem(index, xs) {
582
+ if (isArrayLike(xs)) {
583
+ return tryItem$1(index, xs);
584
+ }
585
+ else if (xs instanceof FSharpList) {
586
+ return tryItem$2(index, xs);
587
+ }
588
+ else {
589
+ const e = ofSeq(xs);
590
+ try {
591
+ const loop = (index_1_mut) => {
592
+ loop: while (true) {
593
+ const index_1 = index_1_mut;
594
+ if (!e["System.Collections.IEnumerator.MoveNext"]()) {
595
+ return undefined;
596
+ }
597
+ else if (index_1 === 0) {
598
+ return some(e["System.Collections.Generic.IEnumerator`1.get_Current"]());
599
+ }
600
+ else {
601
+ index_1_mut = (index_1 - 1);
602
+ continue loop;
603
+ }
604
+ break;
605
+ }
606
+ };
607
+ return loop(index);
608
+ }
609
+ finally {
610
+ disposeSafe(e);
611
+ }
612
+ }
613
+ }
614
+ function item(index, xs) {
615
+ const matchValue = tryItem(index, xs);
616
+ if (matchValue == null) {
617
+ throw new Error((SR_notEnoughElements + "\\nParameter name: ") + "index");
618
+ }
619
+ else {
620
+ return value(matchValue);
621
+ }
622
+ }
623
+ function iterate(action, xs) {
624
+ fold((unitVar, x) => {
625
+ action(x);
626
+ }, undefined, xs);
627
+ }
628
+ function iterateIndexed(action, xs) {
629
+ fold((i, x) => {
630
+ action(i, x);
631
+ return (i + 1) | 0;
632
+ }, 0, xs);
633
+ }
634
+ function tryLast(xs) {
635
+ const e = ofSeq(xs);
636
+ try {
637
+ const loop = (acc_mut) => {
638
+ loop: while (true) {
639
+ const acc = acc_mut;
640
+ if (!e["System.Collections.IEnumerator.MoveNext"]()) {
641
+ return acc;
642
+ }
643
+ else {
644
+ acc_mut = e["System.Collections.Generic.IEnumerator`1.get_Current"]();
645
+ continue loop;
646
+ }
647
+ break;
648
+ }
649
+ };
650
+ return e["System.Collections.IEnumerator.MoveNext"]() ? some(loop(e["System.Collections.Generic.IEnumerator`1.get_Current"]())) : undefined;
651
+ }
652
+ finally {
653
+ disposeSafe(e);
654
+ }
655
+ }
656
+ function last(xs) {
657
+ const matchValue = tryLast(xs);
658
+ if (matchValue == null) {
659
+ throw new Error((SR_notEnoughElements + "\\nParameter name: ") + "source");
660
+ }
661
+ else {
662
+ return value(matchValue);
663
+ }
664
+ }
665
+ function length(xs) {
666
+ if (isArrayLike(xs)) {
667
+ const a = xs;
668
+ return a.length | 0;
669
+ }
670
+ else if (xs instanceof FSharpList) {
671
+ return length$1(xs) | 0;
672
+ }
673
+ else {
674
+ const e = ofSeq(xs);
675
+ try {
676
+ let count = 0;
677
+ while (e["System.Collections.IEnumerator.MoveNext"]()) {
678
+ count = ((count + 1) | 0);
679
+ }
680
+ return count | 0;
681
+ }
682
+ finally {
683
+ disposeSafe(e);
684
+ }
685
+ }
686
+ }
687
+ function map(mapping, xs) {
688
+ return generate(() => ofSeq(xs), (e) => (e["System.Collections.IEnumerator.MoveNext"]() ? some(mapping(e["System.Collections.Generic.IEnumerator`1.get_Current"]())) : undefined), (e_1) => {
689
+ disposeSafe(e_1);
690
+ });
691
+ }
692
+ function mapIndexed(mapping, xs) {
693
+ return generateIndexed(() => ofSeq(xs), (i, e) => (e["System.Collections.IEnumerator.MoveNext"]() ? some(mapping(i, e["System.Collections.Generic.IEnumerator`1.get_Current"]())) : undefined), (e_1) => {
694
+ disposeSafe(e_1);
695
+ });
696
+ }
697
+ function indexed(xs) {
698
+ return mapIndexed((i, x) => [i, x], xs);
699
+ }
700
+ function map2(mapping, xs, ys) {
701
+ return generate(() => [ofSeq(xs), ofSeq(ys)], (tupledArg) => {
702
+ const e1 = tupledArg[0];
703
+ const e2 = tupledArg[1];
704
+ return (e1["System.Collections.IEnumerator.MoveNext"]() && e2["System.Collections.IEnumerator.MoveNext"]()) ? some(mapping(e1["System.Collections.Generic.IEnumerator`1.get_Current"](), e2["System.Collections.Generic.IEnumerator`1.get_Current"]())) : undefined;
705
+ }, (tupledArg_1) => {
706
+ try {
707
+ disposeSafe(tupledArg_1[0]);
708
+ }
709
+ finally {
710
+ disposeSafe(tupledArg_1[1]);
711
+ }
712
+ });
713
+ }
714
+ function tryPick(chooser, xs) {
715
+ const e = ofSeq(xs);
716
+ try {
717
+ let res = undefined;
718
+ while ((res == null) && e["System.Collections.IEnumerator.MoveNext"]()) {
719
+ res = chooser(e["System.Collections.Generic.IEnumerator`1.get_Current"]());
720
+ }
721
+ return res;
722
+ }
723
+ finally {
724
+ disposeSafe(e);
725
+ }
726
+ }
727
+ function reduce(folder, xs) {
728
+ const e = ofSeq(xs);
729
+ try {
730
+ const loop = (acc_mut) => {
731
+ loop: while (true) {
732
+ const acc = acc_mut;
733
+ if (e["System.Collections.IEnumerator.MoveNext"]()) {
734
+ acc_mut = folder(acc, e["System.Collections.Generic.IEnumerator`1.get_Current"]());
735
+ continue loop;
736
+ }
737
+ else {
738
+ return acc;
739
+ }
740
+ break;
741
+ }
742
+ };
743
+ if (e["System.Collections.IEnumerator.MoveNext"]()) {
744
+ return loop(e["System.Collections.Generic.IEnumerator`1.get_Current"]());
745
+ }
746
+ else {
747
+ throw new Error(SR_inputSequenceEmpty);
748
+ }
749
+ }
750
+ finally {
751
+ disposeSafe(e);
752
+ }
753
+ }
754
+ function skip(count, source) {
755
+ return mkSeq(() => {
756
+ const e = ofSeq(source);
757
+ try {
758
+ for (let _ = 1; _ <= count; _++) {
759
+ if (!e["System.Collections.IEnumerator.MoveNext"]()) {
760
+ throw new Error((SR_notEnoughElements + "\\nParameter name: ") + "source");
761
+ }
762
+ }
763
+ return Enumerator_enumerateThenFinally(() => {
764
+ }, e);
765
+ }
766
+ catch (matchValue) {
767
+ disposeSafe(e);
768
+ throw matchValue;
769
+ }
770
+ });
771
+ }
772
+ function skipWhile(predicate, xs) {
773
+ return delay(() => {
774
+ let skipped = true;
775
+ return filter((x) => {
776
+ if (skipped) {
777
+ skipped = predicate(x);
778
+ }
779
+ return !skipped;
780
+ }, xs);
781
+ });
782
+ }
783
+ function tail(xs) {
784
+ return skip(1, xs);
785
+ }
786
+ function takeWhile(predicate, xs) {
787
+ return generate(() => ofSeq(xs), (e) => ((e["System.Collections.IEnumerator.MoveNext"]() && predicate(e["System.Collections.Generic.IEnumerator`1.get_Current"]())) ? some(e["System.Collections.Generic.IEnumerator`1.get_Current"]()) : undefined), (e_1) => {
788
+ disposeSafe(e_1);
789
+ });
790
+ }
791
+ function zip(xs, ys) {
792
+ return map2((x, y) => [x, y], xs, ys);
793
+ }
794
+ function collect(mapping, xs) {
795
+ return delay(() => concat(map(mapping, xs)));
796
+ }
797
+ function sortWith(comparer, xs) {
798
+ return delay(() => {
799
+ const arr = toArray(xs);
800
+ arr.sort(comparer);
801
+ return ofArray(arr);
802
+ });
803
+ }
804
+ function sort(xs, comparer) {
805
+ return sortWith((x, y) => comparer.Compare(x, y), xs);
806
+ }
807
+ function sortBy(projection, xs, comparer) {
808
+ return sortWith((x, y) => comparer.Compare(projection(x), projection(y)), xs);
809
+ }
810
+ function maxBy(projection, xs, comparer) {
811
+ return reduce((x, y) => ((comparer.Compare(projection(y), projection(x)) > 0) ? y : x), xs);
812
+ }
813
+ function max(xs, comparer) {
814
+ return reduce((x, y) => ((comparer.Compare(y, x) > 0) ? y : x), xs);
815
+ }
816
+ function minBy(projection, xs, comparer) {
817
+ return reduce((x, y) => ((comparer.Compare(projection(y), projection(x)) > 0) ? x : y), xs);
818
+ }
819
+ function min(xs, comparer) {
820
+ return reduce((x, y) => ((comparer.Compare(y, x) > 0) ? x : y), xs);
821
+ }
822
+ function removeAt(index, xs) {
823
+ let isDone = false;
824
+ if (index < 0) {
825
+ throw new Error((SR_indexOutOfBounds + "\\nParameter name: ") + "index");
826
+ }
827
+ return generateIndexed(() => ofSeq(xs), (i, e) => {
828
+ if ((isDone ? true : (i < index)) && e["System.Collections.IEnumerator.MoveNext"]()) {
829
+ return some(e["System.Collections.Generic.IEnumerator`1.get_Current"]());
830
+ }
831
+ else if ((i === index) && e["System.Collections.IEnumerator.MoveNext"]()) {
832
+ isDone = true;
833
+ return e["System.Collections.IEnumerator.MoveNext"]() ? some(e["System.Collections.Generic.IEnumerator`1.get_Current"]()) : undefined;
834
+ }
835
+ else {
836
+ if (!isDone) {
837
+ throw new Error((SR_indexOutOfBounds + "\\nParameter name: ") + "index");
838
+ }
839
+ return undefined;
840
+ }
841
+ }, (e_1) => {
842
+ disposeSafe(e_1);
843
+ });
844
+ }
845
+
846
+ export { Enumerator_FromFunctions$1, Enumerator_FromFunctions$1_$ctor_58C54629, Enumerator_Seq, Enumerator_Seq_$ctor_673A07F2, Enumerator_alreadyFinished, Enumerator_concat, Enumerator_enumerateThenFinally, Enumerator_generateWhileSome, Enumerator_noReset, Enumerator_notStarted, Enumerator_unfold, SR_enumerationAlreadyFinished, SR_enumerationNotStarted, SR_inputSequenceEmpty, SR_inputSequenceTooLong, SR_keyNotFoundAlt, SR_notEnoughElements, SR_resetNotSupported, append, checkNonNull, choose, collect, compareWith, concat, contains, delay, empty, enumerateFromFunctions, enumerateWhile, exactlyOne, exists, filter, find, findIndex, fold, forAll, generate, generateIndexed, head, indexNotFound, indexed, initialize, isEmpty, item, iterate, iterateIndexed, last, length, map, map2, mapIndexed, max, maxBy, min, minBy, mkSeq, ofArray, ofSeq, reduce, removeAt, singleton, skip, skipWhile, sort, sortBy, sortWith, tail, takeWhile, toArray, toList, tryFind, tryFindIndex, tryHead, tryItem, tryLast, tryPick, unfold, zip };