@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,105 @@
1
+ import { Union } from './Types.js';
2
+
3
+ const CaseRules = {
4
+ None: 0,
5
+ LowerFirst: 1,
6
+ SnakeCase: 2,
7
+ SnakeCaseAllCaps: 3,
8
+ KebabCase: 4,
9
+ };
10
+ function dashify(str, separator) {
11
+ return str.replace(/[a-z]?[A-Z]/g, (m) => m.length === 1
12
+ ? m.toLowerCase()
13
+ : m.charAt(0) + separator + m.charAt(1).toLowerCase());
14
+ }
15
+ function changeCase(str, caseRule) {
16
+ switch (caseRule) {
17
+ case CaseRules.LowerFirst:
18
+ return str.charAt(0).toLowerCase() + str.slice(1);
19
+ case CaseRules.SnakeCase:
20
+ return dashify(str, "_");
21
+ case CaseRules.SnakeCaseAllCaps:
22
+ return dashify(str, "_").toUpperCase();
23
+ case CaseRules.KebabCase:
24
+ return dashify(str, "-");
25
+ case CaseRules.None:
26
+ default:
27
+ return str;
28
+ }
29
+ }
30
+ function keyValueList(fields, caseRule = CaseRules.None) {
31
+ const obj = {};
32
+ const definedCaseRule = caseRule;
33
+ function fail(kvPair) {
34
+ throw new Error("Cannot infer key and value of " + String(kvPair));
35
+ }
36
+ function assign(key, caseRule, value) {
37
+ key = changeCase(key, caseRule);
38
+ obj[key] = value;
39
+ }
40
+ for (let kvPair of fields) {
41
+ let caseRule = CaseRules.None;
42
+ if (kvPair == null) {
43
+ fail(kvPair);
44
+ }
45
+ // Deflate unions and use the defined case rule
46
+ if (kvPair instanceof Union) {
47
+ const name = kvPair.cases()[kvPair.tag];
48
+ kvPair = kvPair.fields.length === 0 ? name : [name].concat(kvPair.fields);
49
+ caseRule = definedCaseRule;
50
+ }
51
+ if (Array.isArray(kvPair)) {
52
+ switch (kvPair.length) {
53
+ case 0:
54
+ fail(kvPair);
55
+ break;
56
+ case 1:
57
+ assign(kvPair[0], caseRule, true);
58
+ break;
59
+ case 2:
60
+ const value = kvPair[1];
61
+ assign(kvPair[0], caseRule, value);
62
+ break;
63
+ default:
64
+ assign(kvPair[0], caseRule, kvPair.slice(1));
65
+ }
66
+ }
67
+ else if (typeof kvPair === "string") {
68
+ assign(kvPair, caseRule, true);
69
+ }
70
+ else {
71
+ fail(kvPair);
72
+ }
73
+ }
74
+ return obj;
75
+ }
76
+ function tryGetValue(map, key, defaultValue) {
77
+ if (map.has(key)) {
78
+ defaultValue.contents = map.get(key);
79
+ return true;
80
+ }
81
+ return false;
82
+ }
83
+ function addToSet(v, set) {
84
+ if (set.has(v)) {
85
+ return false;
86
+ }
87
+ set.add(v);
88
+ return true;
89
+ }
90
+ function addToDict(dict, k, v) {
91
+ if (dict.has(k)) {
92
+ throw new Error("An item with the same key has already been added. Key: " + k);
93
+ }
94
+ dict.set(k, v);
95
+ }
96
+ function getItemFromDict(map, key) {
97
+ if (map.has(key)) {
98
+ return map.get(key);
99
+ }
100
+ else {
101
+ throw new Error(`The given key '${key}' was not present in the dictionary.`);
102
+ }
103
+ }
104
+
105
+ export { addToDict, addToSet, getItemFromDict, keyValueList, tryGetValue };
@@ -0,0 +1,320 @@
1
+ import { getEnumerator, disposeSafe, toIterator, equals, defaultOf } from './Util.js';
2
+ import { concat, iterateIndexed, toArray, map, iterate, delay } from './Seq.js';
3
+ import { value } from './Option.js';
4
+ import { setItem } from './Array.js';
5
+ import { FSharpRef } from './Types.js';
6
+ import { getItemFromDict, tryGetValue } from './MapUtil.js';
7
+ import { format } from './String.js';
8
+
9
+ class Dictionary {
10
+ constructor(pairs, comparer) {
11
+ const this$ = new FSharpRef(defaultOf());
12
+ this.comparer = comparer;
13
+ this$.contents = this;
14
+ this.hashMap = (new Map([]));
15
+ this["init@9"] = 1;
16
+ const enumerator = getEnumerator(pairs);
17
+ try {
18
+ while (enumerator["System.Collections.IEnumerator.MoveNext"]()) {
19
+ const pair = enumerator["System.Collections.Generic.IEnumerator`1.get_Current"]();
20
+ Dictionary__Add_5BDDA1(this$.contents, pair[0], pair[1]);
21
+ }
22
+ }
23
+ finally {
24
+ disposeSafe(enumerator);
25
+ }
26
+ }
27
+ get [Symbol.toStringTag]() {
28
+ return "Dictionary";
29
+ }
30
+ toJSON() {
31
+ const this$ = this;
32
+ return Array.from(this$);
33
+ }
34
+ "System.Collections.IEnumerable.GetEnumerator"() {
35
+ const this$ = this;
36
+ return getEnumerator(this$);
37
+ }
38
+ GetEnumerator() {
39
+ const this$ = this;
40
+ return getEnumerator(concat(this$.hashMap.values()));
41
+ }
42
+ [Symbol.iterator]() {
43
+ return toIterator(getEnumerator(this));
44
+ }
45
+ "System.Collections.Generic.ICollection`1.Add2B595"(item) {
46
+ const this$ = this;
47
+ Dictionary__Add_5BDDA1(this$, item[0], item[1]);
48
+ }
49
+ "System.Collections.Generic.ICollection`1.Clear"() {
50
+ const this$ = this;
51
+ Dictionary__Clear(this$);
52
+ }
53
+ "System.Collections.Generic.ICollection`1.Contains2B595"(item) {
54
+ const this$ = this;
55
+ const matchValue = Dictionary__TryFind_2B595(this$, item[0]);
56
+ let matchResult;
57
+ if (matchValue != null) {
58
+ if (equals(value(matchValue)[1], item[1])) {
59
+ matchResult = 0;
60
+ value(matchValue);
61
+ }
62
+ else {
63
+ matchResult = 1;
64
+ }
65
+ }
66
+ else {
67
+ matchResult = 1;
68
+ }
69
+ switch (matchResult) {
70
+ case 0:
71
+ return true;
72
+ default:
73
+ return false;
74
+ }
75
+ }
76
+ "System.Collections.Generic.ICollection`1.CopyToZ3B4C077E"(array, arrayIndex) {
77
+ const this$ = this;
78
+ iterateIndexed((i, e) => {
79
+ setItem(array, arrayIndex + i, e);
80
+ }, this$);
81
+ }
82
+ "System.Collections.Generic.ICollection`1.get_Count"() {
83
+ const this$ = this;
84
+ return Dictionary__get_Count(this$) | 0;
85
+ }
86
+ "System.Collections.Generic.ICollection`1.get_IsReadOnly"() {
87
+ return false;
88
+ }
89
+ "System.Collections.Generic.ICollection`1.Remove2B595"(item) {
90
+ const this$ = this;
91
+ const matchValue = Dictionary__TryFind_2B595(this$, item[0]);
92
+ if (matchValue != null) {
93
+ if (equals(value(matchValue)[1], item[1])) {
94
+ Dictionary__Remove_2B595(this$, item[0]);
95
+ }
96
+ return true;
97
+ }
98
+ else {
99
+ return false;
100
+ }
101
+ }
102
+ "System.Collections.Generic.IDictionary`2.Add5BDDA1"(key, value) {
103
+ const this$ = this;
104
+ Dictionary__Add_5BDDA1(this$, key, value);
105
+ }
106
+ "System.Collections.Generic.IDictionary`2.ContainsKey2B595"(key) {
107
+ const this$ = this;
108
+ return Dictionary__ContainsKey_2B595(this$, key);
109
+ }
110
+ "System.Collections.Generic.IDictionary`2.get_Item2B595"(key) {
111
+ const this$ = this;
112
+ return Dictionary__get_Item_2B595(this$, key);
113
+ }
114
+ "System.Collections.Generic.IDictionary`2.set_Item5BDDA1"(key, v) {
115
+ const this$ = this;
116
+ Dictionary__set_Item_5BDDA1(this$, key, v);
117
+ }
118
+ "System.Collections.Generic.IDictionary`2.get_Keys"() {
119
+ const this$ = this;
120
+ return toArray(delay(() => map((pair) => pair[0], this$)));
121
+ }
122
+ "System.Collections.Generic.IDictionary`2.Remove2B595"(key) {
123
+ const this$ = this;
124
+ return Dictionary__Remove_2B595(this$, key);
125
+ }
126
+ "System.Collections.Generic.IDictionary`2.TryGetValue6DC89625"(key, value$1) {
127
+ const this$ = this;
128
+ const matchValue = Dictionary__TryFind_2B595(this$, key);
129
+ if (matchValue != null) {
130
+ const pair = value(matchValue);
131
+ value$1.contents = pair[1];
132
+ return true;
133
+ }
134
+ else {
135
+ return false;
136
+ }
137
+ }
138
+ "System.Collections.Generic.IDictionary`2.get_Values"() {
139
+ const this$ = this;
140
+ return toArray(delay(() => map((pair) => pair[1], this$)));
141
+ }
142
+ get size() {
143
+ const this$ = this;
144
+ return Dictionary__get_Count(this$) | 0;
145
+ }
146
+ clear() {
147
+ const this$ = this;
148
+ Dictionary__Clear(this$);
149
+ }
150
+ delete(k) {
151
+ const this$ = this;
152
+ return Dictionary__Remove_2B595(this$, k);
153
+ }
154
+ entries() {
155
+ const this$ = this;
156
+ return map((p) => [p[0], p[1]], this$);
157
+ }
158
+ get(k) {
159
+ const this$ = this;
160
+ return Dictionary__get_Item_2B595(this$, k);
161
+ }
162
+ has(k) {
163
+ const this$ = this;
164
+ return Dictionary__ContainsKey_2B595(this$, k);
165
+ }
166
+ keys() {
167
+ const this$ = this;
168
+ return map((p) => p[0], this$);
169
+ }
170
+ set(k, v) {
171
+ const this$ = this;
172
+ Dictionary__set_Item_5BDDA1(this$, k, v);
173
+ return this$;
174
+ }
175
+ values() {
176
+ const this$ = this;
177
+ return map((p) => p[1], this$);
178
+ }
179
+ forEach(f, thisArg) {
180
+ const this$ = this;
181
+ iterate((p) => {
182
+ f(p[1], p[0], this$);
183
+ }, this$);
184
+ }
185
+ }
186
+ function Dictionary__TryFindIndex_2B595(this$, k) {
187
+ const h = this$.comparer.GetHashCode(k) | 0;
188
+ let matchValue;
189
+ let outArg = defaultOf();
190
+ matchValue = [tryGetValue(this$.hashMap, h, new FSharpRef(() => outArg, (v) => {
191
+ outArg = v;
192
+ })), outArg];
193
+ if (matchValue[0]) {
194
+ return [true, h, matchValue[1].findIndex((pair) => this$.comparer.Equals(k, pair[0]))];
195
+ }
196
+ else {
197
+ return [false, h, -1];
198
+ }
199
+ }
200
+ function Dictionary__TryFind_2B595(this$, k) {
201
+ const matchValue = Dictionary__TryFindIndex_2B595(this$, k);
202
+ let matchResult;
203
+ if (matchValue[0]) {
204
+ if (matchValue[2] > -1) {
205
+ matchResult = 0;
206
+ }
207
+ else {
208
+ matchResult = 1;
209
+ }
210
+ }
211
+ else {
212
+ matchResult = 1;
213
+ }
214
+ switch (matchResult) {
215
+ case 0:
216
+ return getItemFromDict(this$.hashMap, matchValue[1])[matchValue[2]];
217
+ default:
218
+ return undefined;
219
+ }
220
+ }
221
+ function Dictionary__Clear(this$) {
222
+ this$.hashMap.clear();
223
+ }
224
+ function Dictionary__get_Count(this$) {
225
+ let count = 0;
226
+ let enumerator = getEnumerator(this$.hashMap.values());
227
+ try {
228
+ while (enumerator["System.Collections.IEnumerator.MoveNext"]()) {
229
+ const pairs = enumerator["System.Collections.Generic.IEnumerator`1.get_Current"]();
230
+ count = ((count + pairs.length) | 0);
231
+ }
232
+ }
233
+ finally {
234
+ disposeSafe(enumerator);
235
+ }
236
+ return count | 0;
237
+ }
238
+ function Dictionary__get_Item_2B595(this$, k) {
239
+ const matchValue = Dictionary__TryFind_2B595(this$, k);
240
+ if (matchValue != null) {
241
+ return value(matchValue)[1];
242
+ }
243
+ else {
244
+ throw new Error("The item was not found in collection");
245
+ }
246
+ }
247
+ function Dictionary__set_Item_5BDDA1(this$, k, v) {
248
+ const matchValue = Dictionary__TryFindIndex_2B595(this$, k);
249
+ if (matchValue[0]) {
250
+ if (matchValue[2] > -1) {
251
+ getItemFromDict(this$.hashMap, matchValue[1])[matchValue[2]] = [k, v];
252
+ }
253
+ else {
254
+ void (getItemFromDict(this$.hashMap, matchValue[1]).push([k, v]));
255
+ }
256
+ }
257
+ else {
258
+ this$.hashMap.set(matchValue[1], [[k, v]]);
259
+ }
260
+ }
261
+ function Dictionary__Add_5BDDA1(this$, k, v) {
262
+ const matchValue = Dictionary__TryFindIndex_2B595(this$, k);
263
+ if (matchValue[0]) {
264
+ if (matchValue[2] > -1) {
265
+ throw new Error(format("An item with the same key has already been added. Key: {0}", k));
266
+ }
267
+ else {
268
+ void (getItemFromDict(this$.hashMap, matchValue[1]).push([k, v]));
269
+ }
270
+ }
271
+ else {
272
+ this$.hashMap.set(matchValue[1], [[k, v]]);
273
+ }
274
+ }
275
+ function Dictionary__ContainsKey_2B595(this$, k) {
276
+ const matchValue = Dictionary__TryFindIndex_2B595(this$, k);
277
+ let matchResult;
278
+ if (matchValue[0]) {
279
+ if (matchValue[2] > -1) {
280
+ matchResult = 0;
281
+ }
282
+ else {
283
+ matchResult = 1;
284
+ }
285
+ }
286
+ else {
287
+ matchResult = 1;
288
+ }
289
+ switch (matchResult) {
290
+ case 0:
291
+ return true;
292
+ default:
293
+ return false;
294
+ }
295
+ }
296
+ function Dictionary__Remove_2B595(this$, k) {
297
+ const matchValue = Dictionary__TryFindIndex_2B595(this$, k);
298
+ let matchResult;
299
+ if (matchValue[0]) {
300
+ if (matchValue[2] > -1) {
301
+ matchResult = 0;
302
+ }
303
+ else {
304
+ matchResult = 1;
305
+ }
306
+ }
307
+ else {
308
+ matchResult = 1;
309
+ }
310
+ switch (matchResult) {
311
+ case 0: {
312
+ getItemFromDict(this$.hashMap, matchValue[1]).splice(matchValue[2], 1);
313
+ return true;
314
+ }
315
+ default:
316
+ return false;
317
+ }
318
+ }
319
+
320
+ export { Dictionary, Dictionary__Add_5BDDA1, Dictionary__Clear, Dictionary__ContainsKey_2B595, Dictionary__Remove_2B595, Dictionary__TryFind_2B595, Dictionary__get_Count, Dictionary__get_Item_2B595, Dictionary__set_Item_5BDDA1 };
@@ -0,0 +1,204 @@
1
+ import { getEnumerator, disposeSafe, toIterator, defaultOf } from './Util.js';
2
+ import { concat, iterateIndexed, map, iterate } from './Seq.js';
3
+ import { setItem } from './Array.js';
4
+ import { FSharpRef } from './Types.js';
5
+ import { getItemFromDict, tryGetValue } from './MapUtil.js';
6
+
7
+ class HashSet {
8
+ constructor(items, comparer) {
9
+ const this$ = new FSharpRef(defaultOf());
10
+ this.comparer = comparer;
11
+ this$.contents = this;
12
+ this.hashMap = (new Map([]));
13
+ this["init@9"] = 1;
14
+ const enumerator = getEnumerator(items);
15
+ try {
16
+ while (enumerator["System.Collections.IEnumerator.MoveNext"]()) {
17
+ const item = enumerator["System.Collections.Generic.IEnumerator`1.get_Current"]();
18
+ HashSet__Add_2B595(this$.contents, item);
19
+ }
20
+ }
21
+ finally {
22
+ disposeSafe(enumerator);
23
+ }
24
+ }
25
+ get [Symbol.toStringTag]() {
26
+ return "HashSet";
27
+ }
28
+ toJSON() {
29
+ const this$ = this;
30
+ return Array.from(this$);
31
+ }
32
+ "System.Collections.IEnumerable.GetEnumerator"() {
33
+ const this$ = this;
34
+ return getEnumerator(this$);
35
+ }
36
+ GetEnumerator() {
37
+ const this$ = this;
38
+ return getEnumerator(concat(this$.hashMap.values()));
39
+ }
40
+ [Symbol.iterator]() {
41
+ return toIterator(getEnumerator(this));
42
+ }
43
+ "System.Collections.Generic.ICollection`1.Add2B595"(item) {
44
+ const this$ = this;
45
+ HashSet__Add_2B595(this$, item);
46
+ }
47
+ "System.Collections.Generic.ICollection`1.Clear"() {
48
+ const this$ = this;
49
+ HashSet__Clear(this$);
50
+ }
51
+ "System.Collections.Generic.ICollection`1.Contains2B595"(item) {
52
+ const this$ = this;
53
+ return HashSet__Contains_2B595(this$, item);
54
+ }
55
+ "System.Collections.Generic.ICollection`1.CopyToZ3B4C077E"(array, arrayIndex) {
56
+ const this$ = this;
57
+ iterateIndexed((i, e) => {
58
+ setItem(array, arrayIndex + i, e);
59
+ }, this$);
60
+ }
61
+ "System.Collections.Generic.ICollection`1.get_Count"() {
62
+ const this$ = this;
63
+ return HashSet__get_Count(this$) | 0;
64
+ }
65
+ "System.Collections.Generic.ICollection`1.get_IsReadOnly"() {
66
+ return false;
67
+ }
68
+ "System.Collections.Generic.ICollection`1.Remove2B595"(item) {
69
+ const this$ = this;
70
+ return HashSet__Remove_2B595(this$, item);
71
+ }
72
+ get size() {
73
+ const this$ = this;
74
+ return HashSet__get_Count(this$) | 0;
75
+ }
76
+ add(k) {
77
+ const this$ = this;
78
+ HashSet__Add_2B595(this$, k);
79
+ return this$;
80
+ }
81
+ clear() {
82
+ const this$ = this;
83
+ HashSet__Clear(this$);
84
+ }
85
+ delete(k) {
86
+ const this$ = this;
87
+ return HashSet__Remove_2B595(this$, k);
88
+ }
89
+ has(k) {
90
+ const this$ = this;
91
+ return HashSet__Contains_2B595(this$, k);
92
+ }
93
+ keys() {
94
+ const this$ = this;
95
+ return map((x) => x, this$);
96
+ }
97
+ values() {
98
+ const this$ = this;
99
+ return map((x) => x, this$);
100
+ }
101
+ entries() {
102
+ const this$ = this;
103
+ return map((v) => [v, v], this$);
104
+ }
105
+ forEach(f, thisArg) {
106
+ const this$ = this;
107
+ iterate((x) => {
108
+ f(x, x, this$);
109
+ }, this$);
110
+ }
111
+ }
112
+ function HashSet__TryFindIndex_2B595(this$, k) {
113
+ const h = this$.comparer.GetHashCode(k) | 0;
114
+ let matchValue;
115
+ let outArg = defaultOf();
116
+ matchValue = [tryGetValue(this$.hashMap, h, new FSharpRef(() => outArg, (v) => {
117
+ outArg = v;
118
+ })), outArg];
119
+ if (matchValue[0]) {
120
+ return [true, h, matchValue[1].findIndex((v_1) => this$.comparer.Equals(k, v_1))];
121
+ }
122
+ else {
123
+ return [false, h, -1];
124
+ }
125
+ }
126
+ function HashSet__Clear(this$) {
127
+ this$.hashMap.clear();
128
+ }
129
+ function HashSet__get_Count(this$) {
130
+ let count = 0;
131
+ let enumerator = getEnumerator(this$.hashMap.values());
132
+ try {
133
+ while (enumerator["System.Collections.IEnumerator.MoveNext"]()) {
134
+ const items = enumerator["System.Collections.Generic.IEnumerator`1.get_Current"]();
135
+ count = ((count + items.length) | 0);
136
+ }
137
+ }
138
+ finally {
139
+ disposeSafe(enumerator);
140
+ }
141
+ return count | 0;
142
+ }
143
+ function HashSet__Add_2B595(this$, k) {
144
+ const matchValue = HashSet__TryFindIndex_2B595(this$, k);
145
+ if (matchValue[0]) {
146
+ if (matchValue[2] > -1) {
147
+ return false;
148
+ }
149
+ else {
150
+ void (getItemFromDict(this$.hashMap, matchValue[1]).push(k));
151
+ return true;
152
+ }
153
+ }
154
+ else {
155
+ this$.hashMap.set(matchValue[1], [k]);
156
+ return true;
157
+ }
158
+ }
159
+ function HashSet__Contains_2B595(this$, k) {
160
+ const matchValue = HashSet__TryFindIndex_2B595(this$, k);
161
+ let matchResult;
162
+ if (matchValue[0]) {
163
+ if (matchValue[2] > -1) {
164
+ matchResult = 0;
165
+ }
166
+ else {
167
+ matchResult = 1;
168
+ }
169
+ }
170
+ else {
171
+ matchResult = 1;
172
+ }
173
+ switch (matchResult) {
174
+ case 0:
175
+ return true;
176
+ default:
177
+ return false;
178
+ }
179
+ }
180
+ function HashSet__Remove_2B595(this$, k) {
181
+ const matchValue = HashSet__TryFindIndex_2B595(this$, k);
182
+ let matchResult;
183
+ if (matchValue[0]) {
184
+ if (matchValue[2] > -1) {
185
+ matchResult = 0;
186
+ }
187
+ else {
188
+ matchResult = 1;
189
+ }
190
+ }
191
+ else {
192
+ matchResult = 1;
193
+ }
194
+ switch (matchResult) {
195
+ case 0: {
196
+ getItemFromDict(this$.hashMap, matchValue[1]).splice(matchValue[2], 1);
197
+ return true;
198
+ }
199
+ default:
200
+ return false;
201
+ }
202
+ }
203
+
204
+ export { HashSet, HashSet__Add_2B595, HashSet__Clear, HashSet__Contains_2B595, HashSet__Remove_2B595, HashSet__get_Count };
@@ -0,0 +1,10 @@
1
+ function Helpers_allocateArrayFromCons(cons, len) {
2
+ if ((typeof cons) === "function") {
3
+ return new cons(len);
4
+ }
5
+ else {
6
+ return new Array(len);
7
+ }
8
+ }
9
+
10
+ export { Helpers_allocateArrayFromCons };
@@ -0,0 +1,73 @@
1
+ const symbol = Symbol("numeric");
2
+ function isNumeric(x) {
3
+ return typeof x === "number" || typeof x === "bigint" || x?.[symbol];
4
+ }
5
+ function compare(x, y) {
6
+ if (typeof x === "number") {
7
+ return x < y ? -1 : (x > y ? 1 : 0);
8
+ }
9
+ else if (typeof x === "bigint") {
10
+ return x < y ? -1 : (x > y ? 1 : 0);
11
+ }
12
+ else {
13
+ return x.CompareTo(y);
14
+ }
15
+ }
16
+ function multiply(x, y) {
17
+ if (typeof x === "number") {
18
+ return x * y;
19
+ }
20
+ else if (typeof x === "bigint") {
21
+ return x * BigInt(y);
22
+ }
23
+ else {
24
+ return x[symbol]().multiply(y);
25
+ }
26
+ }
27
+ function toFixed(x, dp) {
28
+ if (typeof x === "number") {
29
+ return x.toFixed(dp);
30
+ }
31
+ else if (typeof x === "bigint") {
32
+ return x;
33
+ }
34
+ else {
35
+ return x[symbol]().toFixed(dp);
36
+ }
37
+ }
38
+ function toPrecision(x, sd) {
39
+ if (typeof x === "number") {
40
+ return x.toPrecision(sd);
41
+ }
42
+ else if (typeof x === "bigint") {
43
+ return x;
44
+ }
45
+ else {
46
+ return x[symbol]().toPrecision(sd);
47
+ }
48
+ }
49
+ function toExponential(x, dp) {
50
+ if (typeof x === "number") {
51
+ return x.toExponential(dp);
52
+ }
53
+ else if (typeof x === "bigint") {
54
+ return x;
55
+ }
56
+ else {
57
+ return x[symbol]().toExponential(dp);
58
+ }
59
+ }
60
+ function toHex(x) {
61
+ if (typeof x === "number") {
62
+ return (Number(x) >>> 0).toString(16);
63
+ }
64
+ else if (typeof x === "bigint") {
65
+ // TODO: properly handle other bit sizes
66
+ return BigInt.asUintN(64, x).toString(16);
67
+ }
68
+ else {
69
+ return x[symbol]().toHex();
70
+ }
71
+ }
72
+
73
+ export { compare, isNumeric, multiply, symbol, toExponential, toFixed, toHex, toPrecision };