@nfdi4plants/arctrl 3.0.0-beta.8 → 3.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (296) hide show
  1. package/README.md +30 -3
  2. package/dist/ts/index.d.ts +54 -16
  3. package/dist/ts/index.d.ts.map +1 -1
  4. package/dist/ts/index.js +56 -18
  5. package/dist/ts/ts/ARC.d.ts +38 -15
  6. package/dist/ts/ts/ARC.d.ts.map +1 -1
  7. package/dist/ts/ts/ARC.js +285 -140
  8. package/dist/ts/ts/CWL/CWLProcessingUnit.d.ts +62 -0
  9. package/dist/ts/ts/CWL/CWLProcessingUnit.d.ts.map +1 -0
  10. package/dist/ts/ts/CWL/CWLProcessingUnit.js +250 -0
  11. package/dist/ts/ts/CWL/CWLTypes.d.ts +148 -0
  12. package/dist/ts/ts/CWL/CWLTypes.d.ts.map +1 -0
  13. package/dist/ts/ts/CWL/CWLTypes.js +384 -0
  14. package/dist/ts/ts/CWL/Decode.d.ts +210 -0
  15. package/dist/ts/ts/CWL/Decode.d.ts.map +1 -0
  16. package/dist/ts/ts/CWL/Decode.js +2617 -0
  17. package/dist/ts/ts/CWL/Encode.d.ts +96 -0
  18. package/dist/ts/ts/CWL/Encode.d.ts.map +1 -0
  19. package/dist/ts/ts/CWL/Encode.js +1509 -0
  20. package/dist/ts/ts/CWL/ExpressionToolDescription.d.ts +50 -0
  21. package/dist/ts/ts/CWL/ExpressionToolDescription.d.ts.map +1 -0
  22. package/dist/ts/ts/CWL/ExpressionToolDescription.js +152 -0
  23. package/dist/ts/ts/CWL/HashHelpers.d.ts +9 -0
  24. package/dist/ts/ts/CWL/HashHelpers.d.ts.map +1 -0
  25. package/dist/ts/ts/CWL/HashHelpers.js +35 -0
  26. package/dist/ts/ts/CWL/Inputs.d.ts +31 -0
  27. package/dist/ts/ts/CWL/Inputs.d.ts.map +1 -0
  28. package/dist/ts/ts/CWL/Inputs.js +86 -0
  29. package/dist/ts/ts/CWL/OperationDescription.d.ts +46 -0
  30. package/dist/ts/ts/CWL/OperationDescription.d.ts.map +1 -0
  31. package/dist/ts/ts/CWL/OperationDescription.js +133 -0
  32. package/dist/ts/ts/CWL/Outputs.d.ts +44 -0
  33. package/dist/ts/ts/CWL/Outputs.d.ts.map +1 -0
  34. package/dist/ts/ts/CWL/Outputs.js +143 -0
  35. package/dist/ts/ts/CWL/ParameterReference.d.ts +23 -0
  36. package/dist/ts/ts/CWL/ParameterReference.d.ts.map +1 -0
  37. package/dist/ts/ts/CWL/ParameterReference.js +60 -0
  38. package/dist/ts/ts/CWL/Requirements.d.ts +206 -0
  39. package/dist/ts/ts/CWL/Requirements.d.ts.map +1 -0
  40. package/dist/ts/ts/CWL/Requirements.js +384 -0
  41. package/dist/ts/ts/CWL/ToolDescription.d.ts +50 -0
  42. package/dist/ts/ts/CWL/ToolDescription.d.ts.map +1 -0
  43. package/dist/ts/ts/CWL/ToolDescription.js +152 -0
  44. package/dist/ts/ts/CWL/WorkflowDescription.d.ts +50 -0
  45. package/dist/ts/ts/CWL/WorkflowDescription.d.ts.map +1 -0
  46. package/dist/ts/ts/CWL/WorkflowDescription.js +142 -0
  47. package/dist/ts/ts/CWL/WorkflowSteps.d.ts +160 -0
  48. package/dist/ts/ts/CWL/WorkflowSteps.d.ts.map +1 -0
  49. package/dist/ts/ts/CWL/WorkflowSteps.js +317 -0
  50. package/dist/ts/ts/CWLRunResolver.d.ts +45 -0
  51. package/dist/ts/ts/CWLRunResolver.d.ts.map +1 -0
  52. package/dist/ts/ts/CWLRunResolver.js +181 -0
  53. package/dist/ts/ts/Contract/ARC.d.ts.map +1 -1
  54. package/dist/ts/ts/Contract/ARC.js +27 -9
  55. package/dist/ts/ts/Contract/ArcRun.d.ts +6 -0
  56. package/dist/ts/ts/Contract/ArcRun.d.ts.map +1 -1
  57. package/dist/ts/ts/Contract/ArcRun.js +131 -4
  58. package/dist/ts/ts/Contract/ArcWorkflow.d.ts +3 -0
  59. package/dist/ts/ts/Contract/ArcWorkflow.d.ts.map +1 -1
  60. package/dist/ts/ts/Contract/ArcWorkflow.js +70 -4
  61. package/dist/ts/ts/Contract/Datamap.d.ts +25 -25
  62. package/dist/ts/ts/Contract/Datamap.d.ts.map +1 -1
  63. package/dist/ts/ts/Contract/Datamap.js +61 -42
  64. package/dist/ts/ts/ContractIO/ContractIO.d.ts.map +1 -1
  65. package/dist/ts/ts/ContractIO/ContractIO.js +3 -1
  66. package/dist/ts/ts/Conversion/Assay.d.ts +13 -0
  67. package/dist/ts/ts/Conversion/Assay.d.ts.map +1 -0
  68. package/dist/ts/ts/Conversion/Assay.js +69 -0
  69. package/dist/ts/ts/Conversion/Basic.d.ts +105 -0
  70. package/dist/ts/ts/Conversion/Basic.d.ts.map +1 -0
  71. package/dist/ts/ts/Conversion/Basic.js +452 -0
  72. package/dist/ts/ts/Conversion/ColumnIndex.d.ts +11 -0
  73. package/dist/ts/ts/Conversion/ColumnIndex.d.ts.map +1 -0
  74. package/dist/ts/ts/Conversion/ColumnIndex.js +71 -0
  75. package/dist/ts/ts/Conversion/Datamap.d.ts +11 -0
  76. package/dist/ts/ts/Conversion/Datamap.d.ts.map +1 -0
  77. package/dist/ts/ts/Conversion/Datamap.js +21 -0
  78. package/dist/ts/ts/Conversion/DateTime.d.ts +4 -0
  79. package/dist/ts/ts/Conversion/DateTime.d.ts.map +1 -0
  80. package/dist/ts/ts/Conversion/DateTime.js +23 -0
  81. package/dist/ts/ts/Conversion/Investigation.d.ts +12 -0
  82. package/dist/ts/ts/Conversion/Investigation.d.ts.map +1 -0
  83. package/dist/ts/ts/Conversion/Investigation.js +79 -0
  84. package/dist/ts/ts/Conversion/Person.d.ts +16 -0
  85. package/dist/ts/ts/Conversion/Person.d.ts.map +1 -0
  86. package/dist/ts/ts/Conversion/Person.js +100 -0
  87. package/dist/ts/ts/Conversion/Process.d.ts +84 -0
  88. package/dist/ts/ts/Conversion/Process.d.ts.map +1 -0
  89. package/dist/ts/ts/Conversion/Process.js +455 -0
  90. package/dist/ts/ts/Conversion/Run.d.ts +35 -0
  91. package/dist/ts/ts/Conversion/Run.d.ts.map +1 -0
  92. package/dist/ts/ts/Conversion/Run.js +254 -0
  93. package/dist/ts/ts/Conversion/ScholarlyArticle.d.ts +16 -0
  94. package/dist/ts/ts/Conversion/ScholarlyArticle.d.ts.map +1 -0
  95. package/dist/ts/ts/Conversion/ScholarlyArticle.js +116 -0
  96. package/dist/ts/ts/Conversion/Study.d.ts +12 -0
  97. package/dist/ts/ts/Conversion/Study.d.ts.map +1 -0
  98. package/dist/ts/ts/Conversion/Study.js +51 -0
  99. package/dist/ts/ts/Conversion/Table.d.ts +45 -0
  100. package/dist/ts/ts/Conversion/Table.d.ts.map +1 -0
  101. package/dist/ts/ts/Conversion/Table.js +203 -0
  102. package/dist/ts/ts/Conversion/Workflow.d.ts +91 -0
  103. package/dist/ts/ts/Conversion/Workflow.d.ts.map +1 -0
  104. package/dist/ts/ts/Conversion/Workflow.js +455 -0
  105. package/dist/ts/ts/Conversion.d.ts +25 -276
  106. package/dist/ts/ts/Conversion.d.ts.map +1 -1
  107. package/dist/ts/ts/Conversion.js +64 -1477
  108. package/dist/ts/ts/Core/ArcTypes.d.ts +69 -59
  109. package/dist/ts/ts/Core/ArcTypes.d.ts.map +1 -1
  110. package/dist/ts/ts/Core/ArcTypes.js +251 -146
  111. package/dist/ts/ts/Core/Datamap.d.ts +53 -0
  112. package/dist/ts/ts/Core/{DataMap.d.ts.map → Datamap.d.ts.map} +1 -1
  113. package/dist/ts/ts/Core/Datamap.js +177 -0
  114. package/dist/ts/ts/Core/Helper/Identifier.d.ts +24 -0
  115. package/dist/ts/ts/Core/Helper/Identifier.d.ts.map +1 -1
  116. package/dist/ts/ts/Core/Helper/Identifier.js +35 -2
  117. package/dist/ts/ts/Core/Table/ArcTable.d.ts +8 -8
  118. package/dist/ts/ts/Core/Table/ArcTable.d.ts.map +1 -1
  119. package/dist/ts/ts/Core/Table/ArcTable.js +20 -20
  120. package/dist/ts/ts/FileSystem/FileSystemTree.d.ts +4 -4
  121. package/dist/ts/ts/FileSystem/FileSystemTree.d.ts.map +1 -1
  122. package/dist/ts/ts/FileSystem/FileSystemTree.js +20 -27
  123. package/dist/ts/ts/FileSystem/Path.d.ts +22 -0
  124. package/dist/ts/ts/FileSystem/Path.d.ts.map +1 -1
  125. package/dist/ts/ts/FileSystem/Path.js +173 -3
  126. package/dist/ts/ts/Json/Assay.js +5 -5
  127. package/dist/ts/ts/Json/{DataMap → Datamap}/DataContext.d.ts.map +1 -1
  128. package/dist/ts/ts/Json/{DataMap/DataMap.d.ts → Datamap/Datamap.d.ts} +6 -6
  129. package/dist/ts/ts/Json/Datamap/Datamap.d.ts.map +1 -0
  130. package/dist/ts/ts/Json/{DataMap/DataMap.js → Datamap/Datamap.js} +3 -3
  131. package/dist/ts/ts/Json/ROCrate/LDContext.d.ts.map +1 -1
  132. package/dist/ts/ts/Json/ROCrate/LDContext.js +21 -11
  133. package/dist/ts/ts/Json/ROCrate/LDNode.d.ts +1 -0
  134. package/dist/ts/ts/Json/ROCrate/LDNode.d.ts.map +1 -1
  135. package/dist/ts/ts/Json/ROCrate/LDNode.js +18 -7
  136. package/dist/ts/ts/Json/Run.js +5 -5
  137. package/dist/ts/ts/Json/Study.js +5 -5
  138. package/dist/ts/ts/Json/Workflow.d.ts.map +1 -1
  139. package/dist/ts/ts/Json/Workflow.js +10 -11
  140. package/dist/ts/ts/Json.d.ts +3 -5
  141. package/dist/ts/ts/Json.d.ts.map +1 -1
  142. package/dist/ts/ts/Json.js +4 -10
  143. package/dist/ts/ts/JsonIO/Datamap.d.ts +4 -4
  144. package/dist/ts/ts/JsonIO/Datamap.js +6 -6
  145. package/dist/ts/ts/JsonIO/Investigation.d.ts +0 -6
  146. package/dist/ts/ts/JsonIO/Investigation.d.ts.map +1 -1
  147. package/dist/ts/ts/JsonIO/Investigation.js +2 -21
  148. package/dist/ts/ts/License.js +1 -1
  149. package/dist/ts/ts/ROCrate/LDContext.d.ts.map +1 -1
  150. package/dist/ts/ts/ROCrate/LDContext.js +35 -31
  151. package/dist/ts/ts/ROCrate/LDObject.d.ts +2 -2
  152. package/dist/ts/ts/ROCrate/LDObject.js +2 -2
  153. package/dist/ts/ts/ROCrate/{Generic → LDTypes}/Comment.d.ts.map +1 -1
  154. package/dist/ts/ts/ROCrate/LDTypes/ComputationalWorkflow.d.ts +63 -0
  155. package/dist/ts/ts/ROCrate/LDTypes/ComputationalWorkflow.d.ts.map +1 -0
  156. package/dist/ts/ts/ROCrate/LDTypes/ComputationalWorkflow.js +361 -0
  157. package/dist/ts/ts/ROCrate/LDTypes/ComputerLanguage.d.ts +39 -0
  158. package/dist/ts/ts/ROCrate/LDTypes/ComputerLanguage.d.ts.map +1 -0
  159. package/dist/ts/ts/ROCrate/LDTypes/ComputerLanguage.js +219 -0
  160. package/dist/ts/ts/ROCrate/LDTypes/CreateAction.d.ts +43 -0
  161. package/dist/ts/ts/ROCrate/LDTypes/CreateAction.d.ts.map +1 -0
  162. package/dist/ts/ts/ROCrate/LDTypes/CreateAction.js +224 -0
  163. package/dist/ts/ts/ROCrate/{Generic → LDTypes}/CreativeWork.d.ts.map +1 -1
  164. package/dist/ts/ts/ROCrate/{Generic → LDTypes}/CreativeWork.js +1 -1
  165. package/dist/ts/ts/ROCrate/{Generic → LDTypes}/Dataset.d.ts +34 -22
  166. package/dist/ts/ts/ROCrate/LDTypes/Dataset.d.ts.map +1 -0
  167. package/dist/ts/ts/ROCrate/{Generic → LDTypes}/Dataset.js +59 -2
  168. package/dist/ts/ts/ROCrate/{Generic → LDTypes}/DefinedTerm.d.ts.map +1 -1
  169. package/dist/ts/ts/ROCrate/{Generic → LDTypes}/File.d.ts +10 -4
  170. package/dist/ts/ts/ROCrate/LDTypes/File.d.ts.map +1 -0
  171. package/dist/ts/ts/ROCrate/{Generic → LDTypes}/File.js +34 -1
  172. package/dist/ts/ts/ROCrate/LDTypes/FormalParameter.d.ts +59 -0
  173. package/dist/ts/ts/ROCrate/LDTypes/FormalParameter.d.ts.map +1 -0
  174. package/dist/ts/ts/ROCrate/LDTypes/FormalParameter.js +344 -0
  175. package/dist/ts/ts/ROCrate/{Generic → LDTypes}/LabProcess.d.ts +2 -0
  176. package/dist/ts/ts/ROCrate/LDTypes/LabProcess.d.ts.map +1 -0
  177. package/dist/ts/ts/ROCrate/{Generic → LDTypes}/LabProcess.js +31 -5
  178. package/dist/ts/ts/ROCrate/{Generic → LDTypes}/LabProtocol.d.ts +6 -2
  179. package/dist/ts/ts/ROCrate/LDTypes/LabProtocol.d.ts.map +1 -0
  180. package/dist/ts/ts/ROCrate/{Generic → LDTypes}/LabProtocol.js +66 -15
  181. package/dist/ts/ts/ROCrate/{Generic → LDTypes}/Organization.d.ts.map +1 -1
  182. package/dist/ts/ts/ROCrate/{Generic → LDTypes}/Person.d.ts.map +1 -1
  183. package/dist/ts/ts/ROCrate/{Generic → LDTypes}/PostalAddress.d.ts.map +1 -1
  184. package/dist/ts/ts/ROCrate/{Generic → LDTypes}/PropertyValue.d.ts +35 -11
  185. package/dist/ts/ts/ROCrate/LDTypes/PropertyValue.d.ts.map +1 -0
  186. package/dist/ts/ts/ROCrate/{Generic → LDTypes}/PropertyValue.js +191 -1
  187. package/dist/ts/ts/ROCrate/{Generic → LDTypes}/Sample.d.ts.map +1 -1
  188. package/dist/ts/ts/ROCrate/{Generic → LDTypes}/ScholarlyArticle.d.ts.map +1 -1
  189. package/dist/ts/ts/ROCrate/LDTypes/SoftwareSourceCode.d.ts +46 -0
  190. package/dist/ts/ts/ROCrate/LDTypes/SoftwareSourceCode.d.ts.map +1 -0
  191. package/dist/ts/ts/ROCrate/LDTypes/SoftwareSourceCode.js +247 -0
  192. package/dist/ts/ts/ROCrate/LDTypes/WorkflowInvocation.d.ts +12 -0
  193. package/dist/ts/ts/ROCrate/LDTypes/WorkflowInvocation.d.ts.map +1 -0
  194. package/dist/ts/ts/ROCrate/LDTypes/WorkflowInvocation.js +40 -0
  195. package/dist/ts/ts/ROCrate/LDTypes/WorkflowProtocol.d.ts +11 -0
  196. package/dist/ts/ts/ROCrate/LDTypes/WorkflowProtocol.d.ts.map +1 -0
  197. package/dist/ts/ts/ROCrate/LDTypes/WorkflowProtocol.js +46 -0
  198. package/dist/ts/ts/ROCrate/ROCrateContext.d.ts +2 -2
  199. package/dist/ts/ts/ROCrate/ROCrateContext.d.ts.map +1 -1
  200. package/dist/ts/ts/ROCrate/ROCrateContext.js +6 -6
  201. package/dist/ts/ts/ROCrateIO.d.ts +7 -3
  202. package/dist/ts/ts/ROCrateIO.d.ts.map +1 -1
  203. package/dist/ts/ts/ROCrateIO.js +82 -13
  204. package/dist/ts/ts/Spreadsheet/ArcAssay.js +3 -3
  205. package/dist/ts/ts/Spreadsheet/ArcRun.js +2 -2
  206. package/dist/ts/ts/Spreadsheet/ArcStudy.js +3 -3
  207. package/dist/ts/ts/Spreadsheet/ArcWorkflow.js +2 -2
  208. package/dist/ts/ts/Spreadsheet/Datamap.d.ts +8 -0
  209. package/dist/ts/ts/Spreadsheet/Datamap.d.ts.map +1 -0
  210. package/dist/ts/ts/Spreadsheet/{DataMap.js → Datamap.js} +9 -9
  211. package/dist/ts/ts/Spreadsheet/{DataMapTable/DataMapColumn.d.ts → DatamapTable/DatamapColumn.d.ts} +1 -1
  212. package/dist/ts/ts/Spreadsheet/{DataMapTable/DataMapColumn.d.ts.map → DatamapTable/DatamapColumn.d.ts.map} +1 -1
  213. package/dist/ts/ts/Spreadsheet/{DataMapTable/DataMapColumn.js → DatamapTable/DatamapColumn.js} +1 -1
  214. package/dist/ts/ts/Spreadsheet/{DataMapTable/DataMapHeader.d.ts → DatamapTable/DatamapHeader.d.ts} +1 -1
  215. package/dist/ts/ts/Spreadsheet/{DataMapTable/DataMapHeader.d.ts.map → DatamapTable/DatamapHeader.d.ts.map} +1 -1
  216. package/dist/ts/ts/Spreadsheet/{DataMapTable/DataMapTable.d.ts → DatamapTable/DatamapTable.d.ts} +5 -5
  217. package/dist/ts/ts/Spreadsheet/DatamapTable/DatamapTable.d.ts.map +1 -0
  218. package/dist/ts/ts/Spreadsheet/{DataMapTable/DataMapTable.js → DatamapTable/DatamapTable.js} +8 -8
  219. package/dist/ts/ts/Spreadsheet/Metadata/Run.js +1 -1
  220. package/dist/ts/ts/Spreadsheet/Metadata/Workflow.d.ts.map +1 -1
  221. package/dist/ts/ts/Spreadsheet/Metadata/Workflow.js +4 -4
  222. package/dist/ts/ts/WorkflowGraph/Adapters.d.ts +36 -0
  223. package/dist/ts/ts/WorkflowGraph/Adapters.d.ts.map +1 -0
  224. package/dist/ts/ts/WorkflowGraph/Adapters.js +94 -0
  225. package/dist/ts/ts/WorkflowGraph/BuildOptions.d.ts +37 -0
  226. package/dist/ts/ts/WorkflowGraph/BuildOptions.d.ts.map +1 -0
  227. package/dist/ts/ts/WorkflowGraph/BuildOptions.js +35 -0
  228. package/dist/ts/ts/WorkflowGraph/Builder.d.ts +160 -0
  229. package/dist/ts/ts/WorkflowGraph/Builder.d.ts.map +1 -0
  230. package/dist/ts/ts/WorkflowGraph/Builder.js +556 -0
  231. package/dist/ts/ts/WorkflowGraph/GraphTypes.d.ts +182 -0
  232. package/dist/ts/ts/WorkflowGraph/GraphTypes.d.ts.map +1 -0
  233. package/dist/ts/ts/WorkflowGraph/GraphTypes.js +281 -0
  234. package/dist/ts/ts/WorkflowGraph/ReferenceParsing.d.ts +27 -0
  235. package/dist/ts/ts/WorkflowGraph/ReferenceParsing.d.ts.map +1 -0
  236. package/dist/ts/ts/WorkflowGraph/ReferenceParsing.js +49 -0
  237. package/dist/ts/ts/Xlsx.d.ts +5 -5
  238. package/dist/ts/ts/Xlsx.js +1 -1
  239. package/dist/ts/ts/Yaml/ValidationPackage.d.ts +1 -1
  240. package/dist/ts/ts/Yaml/ValidationPackage.d.ts.map +1 -1
  241. package/dist/ts/ts/Yaml/ValidationPackage.js +5 -5
  242. package/dist/ts/ts/Yaml/ValidationPackagesConfig.d.ts +1 -1
  243. package/dist/ts/ts/Yaml/ValidationPackagesConfig.d.ts.map +1 -1
  244. package/dist/ts/ts/Yaml/ValidationPackagesConfig.js +5 -5
  245. package/dist/ts/ts/Yaml.d.ts +24 -0
  246. package/dist/ts/ts/Yaml.d.ts.map +1 -0
  247. package/dist/ts/ts/Yaml.js +56 -0
  248. package/dist/ts/ts/fable_modules/DynamicObj.7.1.0/DynObj.fs.js +109 -0
  249. package/dist/ts/ts/fable_modules/{YAMLicious.0.0.3 → YAMLicious.1.0.0-alpha.3}/Encode.fs.js +1 -1
  250. package/dist/ts/ts/fable_modules/YAMLicious.1.0.0-alpha.3/FlowToBlock.fs.js +954 -0
  251. package/dist/ts/ts/fable_modules/YAMLicious.1.0.0-alpha.3/Interop/JsInterop.fs.js +10 -0
  252. package/dist/ts/ts/fable_modules/{YAMLicious.0.0.3 → YAMLicious.1.0.0-alpha.3}/Persil.fs.js +1 -1
  253. package/dist/ts/ts/fable_modules/{YAMLicious.0.0.3 → YAMLicious.1.0.0-alpha.3}/Reader.fs.js +208 -152
  254. package/dist/ts/ts/fable_modules/YAMLicious.1.0.0-alpha.3/Regex.fs.js +15 -0
  255. package/dist/ts/ts/fable_modules/{YAMLicious.0.0.3 → YAMLicious.1.0.0-alpha.3}/RegexActivePatterns.fs.js +14 -10
  256. package/package.json +1 -1
  257. package/dist/ts/ts/Core/DataMap.d.ts +0 -52
  258. package/dist/ts/ts/Core/DataMap.js +0 -159
  259. package/dist/ts/ts/Json/DataMap/DataMap.d.ts.map +0 -1
  260. package/dist/ts/ts/ROCrate/Generic/Dataset.d.ts.map +0 -1
  261. package/dist/ts/ts/ROCrate/Generic/File.d.ts.map +0 -1
  262. package/dist/ts/ts/ROCrate/Generic/LabProcess.d.ts.map +0 -1
  263. package/dist/ts/ts/ROCrate/Generic/LabProtocol.d.ts.map +0 -1
  264. package/dist/ts/ts/ROCrate/Generic/PropertyValue.d.ts.map +0 -1
  265. package/dist/ts/ts/Spreadsheet/DataMap.d.ts +0 -8
  266. package/dist/ts/ts/Spreadsheet/DataMap.d.ts.map +0 -1
  267. package/dist/ts/ts/Spreadsheet/DataMapTable/DataMapTable.d.ts.map +0 -1
  268. package/dist/ts/ts/fable_modules/YAMLicious.0.0.3/Interop/JsInterop.fs.js +0 -10
  269. package/dist/ts/ts/fable_modules/YAMLicious.0.0.3/Regex.fs.js +0 -11
  270. /package/dist/ts/ts/Json/{DataMap → Datamap}/DataContext.d.ts +0 -0
  271. /package/dist/ts/ts/Json/{DataMap → Datamap}/DataContext.js +0 -0
  272. /package/dist/ts/ts/ROCrate/{Generic → LDTypes}/Comment.d.ts +0 -0
  273. /package/dist/ts/ts/ROCrate/{Generic → LDTypes}/Comment.js +0 -0
  274. /package/dist/ts/ts/ROCrate/{Generic → LDTypes}/CreativeWork.d.ts +0 -0
  275. /package/dist/ts/ts/ROCrate/{Generic → LDTypes}/DefinedTerm.d.ts +0 -0
  276. /package/dist/ts/ts/ROCrate/{Generic → LDTypes}/DefinedTerm.js +0 -0
  277. /package/dist/ts/ts/ROCrate/{Generic → LDTypes}/Organization.d.ts +0 -0
  278. /package/dist/ts/ts/ROCrate/{Generic → LDTypes}/Organization.js +0 -0
  279. /package/dist/ts/ts/ROCrate/{Generic → LDTypes}/Person.d.ts +0 -0
  280. /package/dist/ts/ts/ROCrate/{Generic → LDTypes}/Person.js +0 -0
  281. /package/dist/ts/ts/ROCrate/{Generic → LDTypes}/PostalAddress.d.ts +0 -0
  282. /package/dist/ts/ts/ROCrate/{Generic → LDTypes}/PostalAddress.js +0 -0
  283. /package/dist/ts/ts/ROCrate/{Generic → LDTypes}/Sample.d.ts +0 -0
  284. /package/dist/ts/ts/ROCrate/{Generic → LDTypes}/Sample.js +0 -0
  285. /package/dist/ts/ts/ROCrate/{Generic → LDTypes}/ScholarlyArticle.d.ts +0 -0
  286. /package/dist/ts/ts/ROCrate/{Generic → LDTypes}/ScholarlyArticle.js +0 -0
  287. /package/dist/ts/ts/Spreadsheet/{DataMapTable/DataMapHeader.js → DatamapTable/DatamapHeader.js} +0 -0
  288. /package/dist/ts/ts/fable_modules/{DynamicObj.7.0.1 → DynamicObj.7.1.0}/DynamicObj.fs.js +0 -0
  289. /package/dist/ts/ts/fable_modules/{DynamicObj.7.0.1 → DynamicObj.7.1.0}/FableJS.fs.js +0 -0
  290. /package/dist/ts/ts/fable_modules/{DynamicObj.7.0.1 → DynamicObj.7.1.0}/HashCodes.fs.js +0 -0
  291. /package/dist/ts/ts/fable_modules/{DynamicObj.7.0.1 → DynamicObj.7.1.0}/PropertyHelper.fs.js +0 -0
  292. /package/dist/ts/ts/fable_modules/{DynamicObj.7.0.1 → DynamicObj.7.1.0}/ReflectionUtils.fs.js +0 -0
  293. /package/dist/ts/ts/fable_modules/{YAMLicious.0.0.3 → YAMLicious.1.0.0-alpha.3}/Decode.fs.js +0 -0
  294. /package/dist/ts/ts/fable_modules/{YAMLicious.0.0.3 → YAMLicious.1.0.0-alpha.3}/Preprocessing.fs.js +0 -0
  295. /package/dist/ts/ts/fable_modules/{YAMLicious.0.0.3 → YAMLicious.1.0.0-alpha.3}/Writer.fs.js +0 -0
  296. /package/dist/ts/ts/fable_modules/{YAMLicious.0.0.3 → YAMLicious.1.0.0-alpha.3}/YAMLiciousTypes.fs.js +0 -0
@@ -0,0 +1,954 @@
1
+ import { Record, Union } from '../../../node_modules/@fable-org/fable-library-js/Types.js';
2
+ import { parse } from '../../../node_modules/@fable-org/fable-library-js/Int32.js';
3
+ import { record_type, int32_type, class_type, string_type, union_type } from '../../../node_modules/@fable-org/fable-library-js/Reflection.js';
4
+ import { isEmpty, head, tail, cons, ofArrayWithTail, reverse, empty, ofArray, append, toArray, ofSeq, singleton, collect } from '../../../node_modules/@fable-org/fable-library-js/List.js';
5
+ import { PreprocessorElement_Line, PreprocessorElement_Intendation } from './YAMLiciousTypes.fs.js';
6
+ import { toText, printf, trimEnd, join } from '../../../node_modules/@fable-org/fable-library-js/String.js';
7
+ import { match, create } from '../../../node_modules/@fable-org/fable-library-js/RegExp.js';
8
+ import { FlowStyleObjectPattern, FlowStyleArrayPattern, FlowStyleObjectOpenerPattern, FlowStyleObjectCloserPattern } from './Regex.fs.js';
9
+
10
+ class TransformContext extends Record {
11
+ constructor(BaseIndent, IndentStep, StringDict) {
12
+ super();
13
+ this.BaseIndent = BaseIndent | 0;
14
+ this.IndentStep = IndentStep | 0;
15
+ this.StringDict = StringDict;
16
+ }
17
+ }
18
+ function TransformContext_$reflection() {
19
+ return record_type("YAMLicious.FlowToBlock.TransformContext", [], TransformContext, () => [["BaseIndent", int32_type], ["IndentStep", int32_type], ["StringDict", class_type("System.Collections.Generic.Dictionary`2", [int32_type, string_type])]]);
20
+ }
21
+ function defaultContext(stringDict) {
22
+ return new TransformContext(0, 2, stringDict);
23
+ }
24
+ function Token_OpenBrace() {
25
+ return new Token(0, []);
26
+ }
27
+ function Token_CloseBrace() {
28
+ return new Token(1, []);
29
+ }
30
+ function Token_OpenBracket() {
31
+ return new Token(2, []);
32
+ }
33
+ function Token_CloseBracket() {
34
+ return new Token(3, []);
35
+ }
36
+ function Token_Colon() {
37
+ return new Token(4, []);
38
+ }
39
+ function Token_Comma() {
40
+ return new Token(5, []);
41
+ }
42
+ function Token_String(Item) {
43
+ return new Token(6, [Item]);
44
+ }
45
+ function Token_EOF() {
46
+ return new Token(7, []);
47
+ }
48
+ class Token extends Union {
49
+ constructor(tag, fields) {
50
+ super();
51
+ this.tag = tag;
52
+ this.fields = fields;
53
+ }
54
+ cases() {
55
+ return ["OpenBrace", "CloseBrace", "OpenBracket", "CloseBracket", "Colon", "Comma", "String", "EOF"];
56
+ }
57
+ }
58
+ function Token_$reflection() {
59
+ return union_type("YAMLicious.FlowToBlock.Token", [], Token, () => [[], [], [], [], [], [], [["Item", string_type]], []]);
60
+ }
61
+ function tokenize(input) {
62
+ const parseString = (chars_mut, acc_mut) => {
63
+ parseString:
64
+ while (true) {
65
+ const chars = chars_mut, acc = acc_mut;
66
+ let matchResult, rest, c, rest_1, c_1, rest_2;
67
+ if (!isEmpty(chars)) {
68
+ switch (head(chars)) {
69
+ case '"': {
70
+ matchResult = 1;
71
+ rest = tail(chars);
72
+ break;
73
+ }
74
+ case "\\": {
75
+ if (!isEmpty(tail(chars))) {
76
+ matchResult = 2;
77
+ c = head(tail(chars));
78
+ rest_1 = tail(tail(chars));
79
+ } else {
80
+ matchResult = 3;
81
+ c_1 = head(chars);
82
+ rest_2 = tail(chars);
83
+ }
84
+ break;
85
+ }
86
+ default: {
87
+ matchResult = 3;
88
+ c_1 = head(chars);
89
+ rest_2 = tail(chars);
90
+ }
91
+ }
92
+ } else {
93
+ matchResult = 0;
94
+ }
95
+ switch (matchResult) {
96
+ case 0:
97
+ return [reverse(acc), empty()];
98
+ case 1:
99
+ return [reverse(acc), rest];
100
+ case 2: {
101
+ chars_mut = rest_1;
102
+ acc_mut = ofArrayWithTail([c, "\\"], acc);
103
+ continue parseString;
104
+ }
105
+ default: {
106
+ chars_mut = rest_2;
107
+ acc_mut = cons(c_1, acc);
108
+ continue parseString;
109
+ }
110
+ }
111
+ break;
112
+ }
113
+ };
114
+ const tokenizeChars = (chars_1_mut, acc_1_mut) => {
115
+ tokenizeChars:
116
+ while (true) {
117
+ const chars_1 = chars_1_mut, acc_1 = acc_1_mut;
118
+ let matchResult_1, rest_3, rest_4, rest_5, rest_6, rest_7, rest_8, rest_9, rest_10, chars_2;
119
+ if (!isEmpty(chars_1)) {
120
+ switch (head(chars_1)) {
121
+ case " ": {
122
+ matchResult_1 = 1;
123
+ rest_3 = tail(chars_1);
124
+ break;
125
+ }
126
+ case "\n": {
127
+ matchResult_1 = 1;
128
+ rest_3 = tail(chars_1);
129
+ break;
130
+ }
131
+ case "\r": {
132
+ matchResult_1 = 1;
133
+ rest_3 = tail(chars_1);
134
+ break;
135
+ }
136
+ case " ": {
137
+ matchResult_1 = 1;
138
+ rest_3 = tail(chars_1);
139
+ break;
140
+ }
141
+ case '"': {
142
+ matchResult_1 = 8;
143
+ rest_10 = tail(chars_1);
144
+ break;
145
+ }
146
+ case ",": {
147
+ matchResult_1 = 7;
148
+ rest_9 = tail(chars_1);
149
+ break;
150
+ }
151
+ case ":": {
152
+ matchResult_1 = 6;
153
+ rest_8 = tail(chars_1);
154
+ break;
155
+ }
156
+ case "[": {
157
+ matchResult_1 = 4;
158
+ rest_6 = tail(chars_1);
159
+ break;
160
+ }
161
+ case "]": {
162
+ matchResult_1 = 5;
163
+ rest_7 = tail(chars_1);
164
+ break;
165
+ }
166
+ case "{": {
167
+ matchResult_1 = 2;
168
+ rest_4 = tail(chars_1);
169
+ break;
170
+ }
171
+ case "}": {
172
+ matchResult_1 = 3;
173
+ rest_5 = tail(chars_1);
174
+ break;
175
+ }
176
+ default: {
177
+ matchResult_1 = 9;
178
+ chars_2 = chars_1;
179
+ }
180
+ }
181
+ } else {
182
+ matchResult_1 = 0;
183
+ }
184
+ switch (matchResult_1) {
185
+ case 0:
186
+ return reverse(cons(Token_EOF(), acc_1));
187
+ case 1: {
188
+ chars_1_mut = rest_3;
189
+ acc_1_mut = acc_1;
190
+ continue tokenizeChars;
191
+ }
192
+ case 2: {
193
+ chars_1_mut = rest_4;
194
+ acc_1_mut = cons(Token_OpenBrace(), acc_1);
195
+ continue tokenizeChars;
196
+ }
197
+ case 3: {
198
+ chars_1_mut = rest_5;
199
+ acc_1_mut = cons(Token_CloseBrace(), acc_1);
200
+ continue tokenizeChars;
201
+ }
202
+ case 4: {
203
+ chars_1_mut = rest_6;
204
+ acc_1_mut = cons(Token_OpenBracket(), acc_1);
205
+ continue tokenizeChars;
206
+ }
207
+ case 5: {
208
+ chars_1_mut = rest_7;
209
+ acc_1_mut = cons(Token_CloseBracket(), acc_1);
210
+ continue tokenizeChars;
211
+ }
212
+ case 6: {
213
+ chars_1_mut = rest_8;
214
+ acc_1_mut = cons(Token_Colon(), acc_1);
215
+ continue tokenizeChars;
216
+ }
217
+ case 7: {
218
+ chars_1_mut = rest_9;
219
+ acc_1_mut = cons(Token_Comma(), acc_1);
220
+ continue tokenizeChars;
221
+ }
222
+ case 8: {
223
+ const patternInput = parseString(rest_10, empty());
224
+ chars_1_mut = patternInput[1];
225
+ acc_1_mut = cons(Token_String(toArray(patternInput[0]).join("")), acc_1);
226
+ continue tokenizeChars;
227
+ }
228
+ default: {
229
+ const consumePlaceholder = (cs, acc_2) => {
230
+ const loop = (cs_1_mut, acc_3_mut) => {
231
+ loop:
232
+ while (true) {
233
+ const cs_1 = cs_1_mut, acc_3 = acc_3_mut;
234
+ let matchResult_2, rest_11, c_2, rest_12;
235
+ if (isEmpty(cs_1)) {
236
+ matchResult_2 = 2;
237
+ } else if (head(cs_1) === "/") {
238
+ if (!isEmpty(tail(cs_1))) {
239
+ if (head(tail(cs_1)) === ">") {
240
+ matchResult_2 = 0;
241
+ rest_11 = tail(tail(cs_1));
242
+ } else {
243
+ matchResult_2 = 1;
244
+ c_2 = head(cs_1);
245
+ rest_12 = tail(cs_1);
246
+ }
247
+ } else {
248
+ matchResult_2 = 1;
249
+ c_2 = head(cs_1);
250
+ rest_12 = tail(cs_1);
251
+ }
252
+ } else {
253
+ matchResult_2 = 1;
254
+ c_2 = head(cs_1);
255
+ rest_12 = tail(cs_1);
256
+ }
257
+ switch (matchResult_2) {
258
+ case 0:
259
+ return [reverse(ofArrayWithTail([">", "/"], acc_3)), rest_11];
260
+ case 1: {
261
+ cs_1_mut = rest_12;
262
+ acc_3_mut = cons(c_2, acc_3);
263
+ continue loop;
264
+ }
265
+ default:
266
+ return [reverse(acc_3), empty()];
267
+ }
268
+ break;
269
+ }
270
+ };
271
+ return loop(cs, acc_2);
272
+ };
273
+ const parseUnquoted = (cs_2_mut, acc_4_mut) => {
274
+ let c_3, c_4, c_5, c_6, c_7, c_8, c_9, c_10, c_11, c_12, c_13, c_14, c_15, c_16, c_17, c_18;
275
+ parseUnquoted:
276
+ while (true) {
277
+ const cs_2 = cs_2_mut, acc_4 = acc_4_mut;
278
+ let matchResult_3, rest_30, rest_31, c_19, rest_32, rest_33, c_20, rest_34;
279
+ if (!isEmpty(cs_2)) {
280
+ switch (head(cs_2)) {
281
+ case " ": {
282
+ if (c_3 = head(cs_2), (((((((c_3 === "{" ? true : c_3 === "}") ? true : c_3 === "[") ? true : c_3 === "]") ? true : c_3 === ":") ? true : c_3 === ",") ? true : c_3 === "\n") ? true : c_3 === "\r") ? true : c_3 === " ") {
283
+ matchResult_3 = 3;
284
+ c_19 = head(cs_2);
285
+ rest_32 = tail(cs_2);
286
+ } else if (isEmpty(acc_4)) {
287
+ matchResult_3 = 4;
288
+ rest_33 = tail(cs_2);
289
+ } else {
290
+ matchResult_3 = 5;
291
+ c_20 = head(cs_2);
292
+ rest_34 = tail(cs_2);
293
+ }
294
+ break;
295
+ }
296
+ case "<": {
297
+ if (!isEmpty(tail(cs_2))) {
298
+ switch (head(tail(cs_2))) {
299
+ case "c": {
300
+ if (!isEmpty(tail(tail(cs_2)))) {
301
+ if (head(tail(tail(cs_2))) === " ") {
302
+ if (!isEmpty(tail(tail(tail(cs_2))))) {
303
+ if (head(tail(tail(tail(cs_2)))) === "f") {
304
+ if (!isEmpty(tail(tail(tail(tail(cs_2)))))) {
305
+ if (head(tail(tail(tail(tail(cs_2))))) === "=") {
306
+ matchResult_3 = 2;
307
+ rest_31 = tail(tail(tail(tail(tail(cs_2)))));
308
+ } else if (c_4 = head(cs_2), (((((((c_4 === "{" ? true : c_4 === "}") ? true : c_4 === "[") ? true : c_4 === "]") ? true : c_4 === ":") ? true : c_4 === ",") ? true : c_4 === "\n") ? true : c_4 === "\r") ? true : c_4 === " ") {
309
+ matchResult_3 = 3;
310
+ c_19 = head(cs_2);
311
+ rest_32 = tail(cs_2);
312
+ } else {
313
+ matchResult_3 = 5;
314
+ c_20 = head(cs_2);
315
+ rest_34 = tail(cs_2);
316
+ }
317
+ } else if (c_5 = head(cs_2), (((((((c_5 === "{" ? true : c_5 === "}") ? true : c_5 === "[") ? true : c_5 === "]") ? true : c_5 === ":") ? true : c_5 === ",") ? true : c_5 === "\n") ? true : c_5 === "\r") ? true : c_5 === " ") {
318
+ matchResult_3 = 3;
319
+ c_19 = head(cs_2);
320
+ rest_32 = tail(cs_2);
321
+ } else {
322
+ matchResult_3 = 5;
323
+ c_20 = head(cs_2);
324
+ rest_34 = tail(cs_2);
325
+ }
326
+ } else if (c_6 = head(cs_2), (((((((c_6 === "{" ? true : c_6 === "}") ? true : c_6 === "[") ? true : c_6 === "]") ? true : c_6 === ":") ? true : c_6 === ",") ? true : c_6 === "\n") ? true : c_6 === "\r") ? true : c_6 === " ") {
327
+ matchResult_3 = 3;
328
+ c_19 = head(cs_2);
329
+ rest_32 = tail(cs_2);
330
+ } else {
331
+ matchResult_3 = 5;
332
+ c_20 = head(cs_2);
333
+ rest_34 = tail(cs_2);
334
+ }
335
+ } else if (c_7 = head(cs_2), (((((((c_7 === "{" ? true : c_7 === "}") ? true : c_7 === "[") ? true : c_7 === "]") ? true : c_7 === ":") ? true : c_7 === ",") ? true : c_7 === "\n") ? true : c_7 === "\r") ? true : c_7 === " ") {
336
+ matchResult_3 = 3;
337
+ c_19 = head(cs_2);
338
+ rest_32 = tail(cs_2);
339
+ } else {
340
+ matchResult_3 = 5;
341
+ c_20 = head(cs_2);
342
+ rest_34 = tail(cs_2);
343
+ }
344
+ } else if (c_8 = head(cs_2), (((((((c_8 === "{" ? true : c_8 === "}") ? true : c_8 === "[") ? true : c_8 === "]") ? true : c_8 === ":") ? true : c_8 === ",") ? true : c_8 === "\n") ? true : c_8 === "\r") ? true : c_8 === " ") {
345
+ matchResult_3 = 3;
346
+ c_19 = head(cs_2);
347
+ rest_32 = tail(cs_2);
348
+ } else {
349
+ matchResult_3 = 5;
350
+ c_20 = head(cs_2);
351
+ rest_34 = tail(cs_2);
352
+ }
353
+ } else if (c_9 = head(cs_2), (((((((c_9 === "{" ? true : c_9 === "}") ? true : c_9 === "[") ? true : c_9 === "]") ? true : c_9 === ":") ? true : c_9 === ",") ? true : c_9 === "\n") ? true : c_9 === "\r") ? true : c_9 === " ") {
354
+ matchResult_3 = 3;
355
+ c_19 = head(cs_2);
356
+ rest_32 = tail(cs_2);
357
+ } else {
358
+ matchResult_3 = 5;
359
+ c_20 = head(cs_2);
360
+ rest_34 = tail(cs_2);
361
+ }
362
+ break;
363
+ }
364
+ case "s": {
365
+ if (!isEmpty(tail(tail(cs_2)))) {
366
+ if (head(tail(tail(cs_2))) === " ") {
367
+ if (!isEmpty(tail(tail(tail(cs_2))))) {
368
+ if (head(tail(tail(tail(cs_2)))) === "f") {
369
+ if (!isEmpty(tail(tail(tail(tail(cs_2)))))) {
370
+ if (head(tail(tail(tail(tail(cs_2))))) === "=") {
371
+ matchResult_3 = 1;
372
+ rest_30 = tail(tail(tail(tail(tail(cs_2)))));
373
+ } else if (c_10 = head(cs_2), (((((((c_10 === "{" ? true : c_10 === "}") ? true : c_10 === "[") ? true : c_10 === "]") ? true : c_10 === ":") ? true : c_10 === ",") ? true : c_10 === "\n") ? true : c_10 === "\r") ? true : c_10 === " ") {
374
+ matchResult_3 = 3;
375
+ c_19 = head(cs_2);
376
+ rest_32 = tail(cs_2);
377
+ } else {
378
+ matchResult_3 = 5;
379
+ c_20 = head(cs_2);
380
+ rest_34 = tail(cs_2);
381
+ }
382
+ } else if (c_11 = head(cs_2), (((((((c_11 === "{" ? true : c_11 === "}") ? true : c_11 === "[") ? true : c_11 === "]") ? true : c_11 === ":") ? true : c_11 === ",") ? true : c_11 === "\n") ? true : c_11 === "\r") ? true : c_11 === " ") {
383
+ matchResult_3 = 3;
384
+ c_19 = head(cs_2);
385
+ rest_32 = tail(cs_2);
386
+ } else {
387
+ matchResult_3 = 5;
388
+ c_20 = head(cs_2);
389
+ rest_34 = tail(cs_2);
390
+ }
391
+ } else if (c_12 = head(cs_2), (((((((c_12 === "{" ? true : c_12 === "}") ? true : c_12 === "[") ? true : c_12 === "]") ? true : c_12 === ":") ? true : c_12 === ",") ? true : c_12 === "\n") ? true : c_12 === "\r") ? true : c_12 === " ") {
392
+ matchResult_3 = 3;
393
+ c_19 = head(cs_2);
394
+ rest_32 = tail(cs_2);
395
+ } else {
396
+ matchResult_3 = 5;
397
+ c_20 = head(cs_2);
398
+ rest_34 = tail(cs_2);
399
+ }
400
+ } else if (c_13 = head(cs_2), (((((((c_13 === "{" ? true : c_13 === "}") ? true : c_13 === "[") ? true : c_13 === "]") ? true : c_13 === ":") ? true : c_13 === ",") ? true : c_13 === "\n") ? true : c_13 === "\r") ? true : c_13 === " ") {
401
+ matchResult_3 = 3;
402
+ c_19 = head(cs_2);
403
+ rest_32 = tail(cs_2);
404
+ } else {
405
+ matchResult_3 = 5;
406
+ c_20 = head(cs_2);
407
+ rest_34 = tail(cs_2);
408
+ }
409
+ } else if (c_14 = head(cs_2), (((((((c_14 === "{" ? true : c_14 === "}") ? true : c_14 === "[") ? true : c_14 === "]") ? true : c_14 === ":") ? true : c_14 === ",") ? true : c_14 === "\n") ? true : c_14 === "\r") ? true : c_14 === " ") {
410
+ matchResult_3 = 3;
411
+ c_19 = head(cs_2);
412
+ rest_32 = tail(cs_2);
413
+ } else {
414
+ matchResult_3 = 5;
415
+ c_20 = head(cs_2);
416
+ rest_34 = tail(cs_2);
417
+ }
418
+ } else if (c_15 = head(cs_2), (((((((c_15 === "{" ? true : c_15 === "}") ? true : c_15 === "[") ? true : c_15 === "]") ? true : c_15 === ":") ? true : c_15 === ",") ? true : c_15 === "\n") ? true : c_15 === "\r") ? true : c_15 === " ") {
419
+ matchResult_3 = 3;
420
+ c_19 = head(cs_2);
421
+ rest_32 = tail(cs_2);
422
+ } else {
423
+ matchResult_3 = 5;
424
+ c_20 = head(cs_2);
425
+ rest_34 = tail(cs_2);
426
+ }
427
+ break;
428
+ }
429
+ default:
430
+ if (c_16 = head(cs_2), (((((((c_16 === "{" ? true : c_16 === "}") ? true : c_16 === "[") ? true : c_16 === "]") ? true : c_16 === ":") ? true : c_16 === ",") ? true : c_16 === "\n") ? true : c_16 === "\r") ? true : c_16 === " ") {
431
+ matchResult_3 = 3;
432
+ c_19 = head(cs_2);
433
+ rest_32 = tail(cs_2);
434
+ } else {
435
+ matchResult_3 = 5;
436
+ c_20 = head(cs_2);
437
+ rest_34 = tail(cs_2);
438
+ }
439
+ }
440
+ } else if (c_17 = head(cs_2), (((((((c_17 === "{" ? true : c_17 === "}") ? true : c_17 === "[") ? true : c_17 === "]") ? true : c_17 === ":") ? true : c_17 === ",") ? true : c_17 === "\n") ? true : c_17 === "\r") ? true : c_17 === " ") {
441
+ matchResult_3 = 3;
442
+ c_19 = head(cs_2);
443
+ rest_32 = tail(cs_2);
444
+ } else {
445
+ matchResult_3 = 5;
446
+ c_20 = head(cs_2);
447
+ rest_34 = tail(cs_2);
448
+ }
449
+ break;
450
+ }
451
+ default:
452
+ if (c_18 = head(cs_2), (((((((c_18 === "{" ? true : c_18 === "}") ? true : c_18 === "[") ? true : c_18 === "]") ? true : c_18 === ":") ? true : c_18 === ",") ? true : c_18 === "\n") ? true : c_18 === "\r") ? true : c_18 === " ") {
453
+ matchResult_3 = 3;
454
+ c_19 = head(cs_2);
455
+ rest_32 = tail(cs_2);
456
+ } else {
457
+ matchResult_3 = 5;
458
+ c_20 = head(cs_2);
459
+ rest_34 = tail(cs_2);
460
+ }
461
+ }
462
+ } else {
463
+ matchResult_3 = 0;
464
+ }
465
+ switch (matchResult_3) {
466
+ case 0:
467
+ return [reverse(acc_4), empty()];
468
+ case 1: {
469
+ const patternInput_1 = consumePlaceholder(rest_30, ofArray(["=", "f", " ", "s", "<"]));
470
+ const patternInput_2 = parseUnquoted(patternInput_1[1], empty());
471
+ return [append(patternInput_1[0], patternInput_2[0]), patternInput_2[1]];
472
+ }
473
+ case 2: {
474
+ const patternInput_3 = consumePlaceholder(rest_31, ofArray(["=", "f", " ", "c", "<"]));
475
+ const patternInput_4 = parseUnquoted(patternInput_3[1], empty());
476
+ return [append(patternInput_3[0], patternInput_4[0]), patternInput_4[1]];
477
+ }
478
+ case 3:
479
+ return [reverse(acc_4), cs_2];
480
+ case 4: {
481
+ cs_2_mut = rest_33;
482
+ acc_4_mut = acc_4;
483
+ continue parseUnquoted;
484
+ }
485
+ default: {
486
+ cs_2_mut = rest_34;
487
+ acc_4_mut = cons(c_20, acc_4);
488
+ continue parseUnquoted;
489
+ }
490
+ }
491
+ break;
492
+ }
493
+ };
494
+ const patternInput_5 = parseUnquoted(chars_2, empty());
495
+ const str_1 = patternInput_5[0];
496
+ const remaining_3 = patternInput_5[1];
497
+ if (isEmpty(str_1)) {
498
+ chars_1_mut = remaining_3;
499
+ acc_1_mut = acc_1;
500
+ continue tokenizeChars;
501
+ } else {
502
+ chars_1_mut = remaining_3;
503
+ acc_1_mut = cons(Token_String(toArray(str_1).join("")), acc_1);
504
+ continue tokenizeChars;
505
+ }
506
+ }
507
+ }
508
+ break;
509
+ }
510
+ };
511
+ return tokenizeChars(ofSeq(input.split("")), empty());
512
+ }
513
+ function tokensToBlockElements(ctx, tokens) {
514
+ let simpleValue;
515
+ let matchResult, rest, rest_1, key, rest_2, rest_3, s;
516
+ if (!isEmpty(tokens)) {
517
+ switch (head(tokens).tag) {
518
+ case /* OpenBrace */
519
+ 0: {
520
+ matchResult = 0;
521
+ rest = tail(tokens);
522
+ break;
523
+ }
524
+ case /* OpenBracket */
525
+ 2: {
526
+ matchResult = 1;
527
+ rest_1 = tail(tokens);
528
+ break;
529
+ }
530
+ case /* String */
531
+ 6: {
532
+ if (!isEmpty(tail(tokens))) {
533
+ if (head(tail(tokens)).tag === /* Colon */
534
+ 4) {
535
+ matchResult = 2;
536
+ key = head(tokens).fields[0];
537
+ rest_2 = tail(tail(tokens));
538
+ } else {
539
+ matchResult = 3;
540
+ rest_3 = tail(tokens);
541
+ s = head(tokens).fields[0];
542
+ }
543
+ } else {
544
+ matchResult = 3;
545
+ rest_3 = tail(tokens);
546
+ s = head(tokens).fields[0];
547
+ }
548
+ break;
549
+ }
550
+ case /* EOF */
551
+ 7: {
552
+ matchResult = 4;
553
+ break;
554
+ }
555
+ default:
556
+ matchResult = 5;
557
+ }
558
+ } else {
559
+ matchResult = 5;
560
+ }
561
+ switch (matchResult) {
562
+ case 0:
563
+ return objectToBlockElements(ctx, rest);
564
+ case 1:
565
+ return arrayToBlockElements(ctx, rest_1);
566
+ case 2: {
567
+ const childCtx = new TransformContext(ctx.BaseIndent + ctx.IndentStep, ctx.IndentStep, ctx.StringDict);
568
+ let matchResult_1;
569
+ if (!isEmpty(rest_2)) {
570
+ switch (head(rest_2).tag) {
571
+ case /* OpenBrace */
572
+ 0: {
573
+ matchResult_1 = 0;
574
+ break;
575
+ }
576
+ case /* OpenBracket */
577
+ 2: {
578
+ matchResult_1 = 1;
579
+ break;
580
+ }
581
+ default:
582
+ matchResult_1 = 2;
583
+ }
584
+ } else {
585
+ matchResult_1 = 2;
586
+ }
587
+ switch (matchResult_1) {
588
+ case 0: {
589
+ const patternInput = tokensToBlockElements(childCtx, rest_2);
590
+ return [ofArray([PreprocessorElement_Line(toText(printf("%s:"))(key)), PreprocessorElement_Intendation(patternInput[0])]), patternInput[1]];
591
+ }
592
+ case 1: {
593
+ const patternInput_1 = tokensToBlockElements(childCtx, rest_2);
594
+ return [ofArray([PreprocessorElement_Line(toText(printf("%s:"))(key)), PreprocessorElement_Intendation(patternInput_1[0])]), patternInput_1[1]];
595
+ }
596
+ default: {
597
+ const patternInput_2 = tokensToBlockElements(childCtx, rest_2);
598
+ const valueElements_2 = patternInput_2[0];
599
+ return [isEmpty(valueElements_2) ? singleton(PreprocessorElement_Line(toText(printf("%s: {}"))(key))) : head(valueElements_2).tag === /* Line */
600
+ 2 ? isEmpty(tail(valueElements_2)) ? (simpleValue = head(valueElements_2).fields[0], singleton(PreprocessorElement_Line(toText(printf("%s: %s"))(key)(simpleValue)))) : ofArray([PreprocessorElement_Line(toText(printf("%s:"))(key)), PreprocessorElement_Intendation(valueElements_2)]) : ofArray([PreprocessorElement_Line(toText(printf("%s:"))(key)), PreprocessorElement_Intendation(valueElements_2)]), patternInput_2[1]];
601
+ }
602
+ }
603
+ }
604
+ case 3:
605
+ return [singleton(PreprocessorElement_Line(s)), rest_3];
606
+ case 4:
607
+ return [empty(), tokens];
608
+ default:
609
+ throw new Error(`Unexpected token in tokensToBlockElements: ${tokens}`);
610
+ }
611
+ }
612
+ function objectToBlockElements(ctx, tokens) {
613
+ const childCtx = new TransformContext(ctx.BaseIndent + ctx.IndentStep, ctx.IndentStep, ctx.StringDict);
614
+ const parseKeyValues = (tokens_1_mut, acc_mut) => {
615
+ let simpleValue;
616
+ parseKeyValues:
617
+ while (true) {
618
+ const tokens_1 = tokens_1_mut, acc = acc_mut;
619
+ let matchResult, rest, rest_1, key, rest_2;
620
+ if (!isEmpty(tokens_1)) {
621
+ switch (head(tokens_1).tag) {
622
+ case /* CloseBrace */
623
+ 1: {
624
+ matchResult = 0;
625
+ rest = tail(tokens_1);
626
+ break;
627
+ }
628
+ case /* Comma */
629
+ 5: {
630
+ matchResult = 1;
631
+ rest_1 = tail(tokens_1);
632
+ break;
633
+ }
634
+ case /* EOF */
635
+ 7: {
636
+ matchResult = 2;
637
+ break;
638
+ }
639
+ case /* String */
640
+ 6: {
641
+ if (!isEmpty(tail(tokens_1))) {
642
+ if (head(tail(tokens_1)).tag === /* Colon */
643
+ 4) {
644
+ matchResult = 3;
645
+ key = head(tokens_1).fields[0];
646
+ rest_2 = tail(tail(tokens_1));
647
+ } else {
648
+ matchResult = 4;
649
+ }
650
+ } else {
651
+ matchResult = 4;
652
+ }
653
+ break;
654
+ }
655
+ default:
656
+ matchResult = 4;
657
+ }
658
+ } else {
659
+ matchResult = 4;
660
+ }
661
+ switch (matchResult) {
662
+ case 0:
663
+ return [reverse(acc), rest];
664
+ case 1: {
665
+ tokens_1_mut = rest_1;
666
+ acc_mut = acc;
667
+ continue parseKeyValues;
668
+ }
669
+ case 2:
670
+ return [reverse(acc), tokens_1];
671
+ case 3: {
672
+ let matchResult_1;
673
+ if (!isEmpty(rest_2)) {
674
+ switch (head(rest_2).tag) {
675
+ case /* OpenBrace */
676
+ 0: {
677
+ matchResult_1 = 0;
678
+ break;
679
+ }
680
+ case /* OpenBracket */
681
+ 2: {
682
+ matchResult_1 = 1;
683
+ break;
684
+ }
685
+ default:
686
+ matchResult_1 = 2;
687
+ }
688
+ } else {
689
+ matchResult_1 = 2;
690
+ }
691
+ switch (matchResult_1) {
692
+ case 0: {
693
+ const patternInput = tokensToBlockElements(childCtx, rest_2);
694
+ tokens_1_mut = patternInput[1];
695
+ acc_mut = append(reverse(ofArray([PreprocessorElement_Line(toText(printf("%s:"))(key)), PreprocessorElement_Intendation(patternInput[0])])), acc);
696
+ continue parseKeyValues;
697
+ }
698
+ case 1: {
699
+ const patternInput_1 = tokensToBlockElements(childCtx, rest_2);
700
+ tokens_1_mut = patternInput_1[1];
701
+ acc_mut = append(reverse(ofArray([PreprocessorElement_Line(toText(printf("%s:"))(key)), PreprocessorElement_Intendation(patternInput_1[0])])), acc);
702
+ continue parseKeyValues;
703
+ }
704
+ default: {
705
+ const patternInput_2 = tokensToBlockElements(childCtx, rest_2);
706
+ const valueElements_2 = patternInput_2[0];
707
+ tokens_1_mut = patternInput_2[1];
708
+ acc_mut = append(reverse(isEmpty(valueElements_2) ? singleton(PreprocessorElement_Line(toText(printf("%s: {}"))(key))) : head(valueElements_2).tag === /* Line */
709
+ 2 ? isEmpty(tail(valueElements_2)) ? (simpleValue = head(valueElements_2).fields[0], singleton(PreprocessorElement_Line(toText(printf("%s: %s"))(key)(simpleValue)))) : ofArray([PreprocessorElement_Line(toText(printf("%s:"))(key)), PreprocessorElement_Intendation(valueElements_2)]) : ofArray([PreprocessorElement_Line(toText(printf("%s:"))(key)), PreprocessorElement_Intendation(valueElements_2)])), acc);
710
+ continue parseKeyValues;
711
+ }
712
+ }
713
+ }
714
+ default:
715
+ throw new Error(`Expected key or close brace in object, got: ${tokens_1}`);
716
+ }
717
+ break;
718
+ }
719
+ };
720
+ return parseKeyValues(tokens, empty());
721
+ }
722
+ function arrayToBlockElements(ctx, tokens) {
723
+ const childCtx = new TransformContext(ctx.BaseIndent + ctx.IndentStep, ctx.IndentStep, ctx.StringDict);
724
+ const parseElements = (tokens_1_mut, acc_mut) => {
725
+ let singleValue;
726
+ parseElements:
727
+ while (true) {
728
+ const tokens_1 = tokens_1_mut, acc = acc_mut;
729
+ let matchResult, rest, rest_1;
730
+ if (!isEmpty(tokens_1)) {
731
+ switch (head(tokens_1).tag) {
732
+ case /* CloseBracket */
733
+ 3: {
734
+ matchResult = 0;
735
+ rest = tail(tokens_1);
736
+ break;
737
+ }
738
+ case /* Comma */
739
+ 5: {
740
+ matchResult = 1;
741
+ rest_1 = tail(tokens_1);
742
+ break;
743
+ }
744
+ case /* EOF */
745
+ 7: {
746
+ matchResult = 2;
747
+ break;
748
+ }
749
+ default:
750
+ matchResult = 3;
751
+ }
752
+ } else {
753
+ matchResult = 3;
754
+ }
755
+ switch (matchResult) {
756
+ case 0:
757
+ return [reverse(acc), rest];
758
+ case 1: {
759
+ tokens_1_mut = rest_1;
760
+ acc_mut = acc;
761
+ continue parseElements;
762
+ }
763
+ case 2:
764
+ return [reverse(acc), tokens_1];
765
+ default: {
766
+ const patternInput = tokensToBlockElements(childCtx, tokens_1);
767
+ const elementLines = patternInput[0];
768
+ tokens_1_mut = patternInput[1];
769
+ acc_mut = append(reverse(isEmpty(elementLines) ? singleton(PreprocessorElement_Line("- {}")) : head(elementLines).tag === /* Line */
770
+ 2 ? isEmpty(tail(elementLines)) ? (singleValue = head(elementLines).fields[0], singleton(PreprocessorElement_Line(toText(printf("- %s"))(singleValue)))) : ofArray([PreprocessorElement_Line("-"), PreprocessorElement_Intendation(elementLines)]) : ofArray([PreprocessorElement_Line("-"), PreprocessorElement_Intendation(elementLines)])), acc);
771
+ continue parseElements;
772
+ }
773
+ }
774
+ break;
775
+ }
776
+ };
777
+ return parseElements(tokens, empty());
778
+ }
779
+ function transformFlowContent(ctx, content) {
780
+ return tokensToBlockElements(ctx, tokenize(content))[0];
781
+ }
782
+ function transformElement(ctx, element) {
783
+ let arg_1, arg_4;
784
+ switch (element.tag) {
785
+ case /* Line */
786
+ 2: {
787
+ const s = element.fields[0];
788
+ const keyValueMatch = match(/^(?<key>[^\{{\[]+):\s+(?<value>(.*))$/gu, s);
789
+ if (keyValueMatch != null) {
790
+ const key = keyValueMatch.groups && keyValueMatch.groups.key || "";
791
+ const value = (keyValueMatch.groups && keyValueMatch.groups.value || "").trim();
792
+ if (value.startsWith("{")) {
793
+ const childCtx = new TransformContext(ctx.BaseIndent + ctx.IndentStep, ctx.IndentStep, ctx.StringDict);
794
+ const objCommentMatch = match(/^(\{.*\})\s*(<c f=(\d+)\/>)?$/gu, value);
795
+ if (objCommentMatch != null) {
796
+ const objContent = objCommentMatch[1] || "";
797
+ const commentGroup = objCommentMatch[3];
798
+ const transformedValue = transformFlowContent(childCtx, objContent);
799
+ const keyLine = PreprocessorElement_Line(toText(printf("%s:"))(key));
800
+ if (commentGroup != null) {
801
+ const commentId = parse(commentGroup || "", 511, false, 32) | 0;
802
+ return ofArray([keyLine, PreprocessorElement_Intendation(cons(PreprocessorElement_Line((arg_1 = commentGroup || "", toText(printf("<c f=%s/>"))(arg_1))), transformedValue))]);
803
+ } else {
804
+ return ofArray([keyLine, PreprocessorElement_Intendation(transformedValue)]);
805
+ }
806
+ } else {
807
+ const transformedValue_1 = transformFlowContent(childCtx, value);
808
+ return ofArray([PreprocessorElement_Line(toText(printf("%s:"))(key)), PreprocessorElement_Intendation(transformedValue_1)]);
809
+ }
810
+ } else if (value.startsWith("[")) {
811
+ const childCtx_1 = new TransformContext(ctx.BaseIndent + ctx.IndentStep, ctx.IndentStep, ctx.StringDict);
812
+ const arrCommentMatch = match(/^(\[.*\])\s*(<c f=(\d+)\/>)?$/gu, value);
813
+ if (arrCommentMatch != null) {
814
+ const arrContent = arrCommentMatch[1] || "";
815
+ const commentGroup_1 = arrCommentMatch[3];
816
+ const transformedValue_2 = transformFlowContent(childCtx_1, arrContent);
817
+ const keyLine_1 = PreprocessorElement_Line(toText(printf("%s:"))(key));
818
+ if (commentGroup_1 != null) {
819
+ return ofArray([keyLine_1, PreprocessorElement_Intendation(cons(PreprocessorElement_Line((arg_4 = commentGroup_1 || "", toText(printf("<c f=%s/>"))(arg_4))), transformedValue_2))]);
820
+ } else {
821
+ return ofArray([keyLine_1, PreprocessorElement_Intendation(transformedValue_2)]);
822
+ }
823
+ } else {
824
+ const transformedValue_3 = transformFlowContent(childCtx_1, value);
825
+ return ofArray([PreprocessorElement_Line(toText(printf("%s:"))(key)), PreprocessorElement_Intendation(transformedValue_3)]);
826
+ }
827
+ } else {
828
+ return singleton(element);
829
+ }
830
+ } else {
831
+ const inlineJsonMatch = match(create(FlowStyleObjectPattern), s);
832
+ if (inlineJsonMatch != null) {
833
+ const content = inlineJsonMatch.groups && inlineJsonMatch.groups.inlineSequence || "";
834
+ if (content.trim() === "") {
835
+ return singleton(PreprocessorElement_Line("{}"));
836
+ } else {
837
+ return transformFlowContent(ctx, "{" + content + "}");
838
+ }
839
+ } else {
840
+ const inlineSeqMatch = match(create(FlowStyleArrayPattern), s);
841
+ if (inlineSeqMatch != null) {
842
+ const content_1 = inlineSeqMatch.groups && inlineSeqMatch.groups.inlineSequence || "";
843
+ const commentGroup_2 = inlineSeqMatch.groups && inlineSeqMatch.groups.comment;
844
+ const transformed_1 = transformFlowContent(ctx, "[" + content_1 + "]");
845
+ if (commentGroup_2 != null) {
846
+ const commentId_1 = parse(commentGroup_2 || "", 511, false, 32) | 0;
847
+ return cons(PreprocessorElement_Line(toText(printf("<c f=%d/>"))(commentId_1)), transformed_1);
848
+ } else {
849
+ return transformed_1;
850
+ }
851
+ } else {
852
+ return singleton(element);
853
+ }
854
+ }
855
+ }
856
+ }
857
+ case /* Intendation */
858
+ 1:
859
+ return singleton(PreprocessorElement_Intendation(transformElements(ctx, element.fields[0])));
860
+ default:
861
+ return singleton(element);
862
+ }
863
+ }
864
+ function transformElements(ctx, elements) {
865
+ const processElements = (elems_mut, acc_mut) => {
866
+ processElements:
867
+ while (true) {
868
+ const elems = elems_mut, acc = acc_mut;
869
+ let matchResult, closer, iList, opener, rest, elem, rest_1;
870
+ if (!isEmpty(elems)) {
871
+ if (head(elems).tag === /* Line */
872
+ 2) {
873
+ if (!isEmpty(tail(elems))) {
874
+ if (head(tail(elems)).tag === /* Intendation */
875
+ 1) {
876
+ if (!isEmpty(tail(tail(elems)))) {
877
+ if (head(tail(tail(elems))).tag === /* Line */
878
+ 2) {
879
+ matchResult = 1;
880
+ closer = head(tail(tail(elems))).fields[0];
881
+ iList = head(tail(elems)).fields[0];
882
+ opener = head(elems).fields[0];
883
+ rest = tail(tail(tail(elems)));
884
+ } else {
885
+ matchResult = 2;
886
+ elem = head(elems);
887
+ rest_1 = tail(elems);
888
+ }
889
+ } else {
890
+ matchResult = 2;
891
+ elem = head(elems);
892
+ rest_1 = tail(elems);
893
+ }
894
+ } else {
895
+ matchResult = 2;
896
+ elem = head(elems);
897
+ rest_1 = tail(elems);
898
+ }
899
+ } else {
900
+ matchResult = 2;
901
+ elem = head(elems);
902
+ rest_1 = tail(elems);
903
+ }
904
+ } else {
905
+ matchResult = 2;
906
+ elem = head(elems);
907
+ rest_1 = tail(elems);
908
+ }
909
+ } else {
910
+ matchResult = 0;
911
+ }
912
+ switch (matchResult) {
913
+ case 0:
914
+ return reverse(acc);
915
+ case 1: {
916
+ const jsonOpenerMatch = match(create(FlowStyleObjectOpenerPattern), opener);
917
+ if (jsonOpenerMatch != null && match(create(FlowStyleObjectCloserPattern), closer) != null) {
918
+ const key = jsonOpenerMatch.groups && jsonOpenerMatch.groups.key || "";
919
+ const flattenLines = (eles) => collect((_arg) => {
920
+ switch (_arg.tag) {
921
+ case /* Line */
922
+ 2:
923
+ return singleton(trimEnd(_arg.fields[0], ","));
924
+ case /* Intendation */
925
+ 1:
926
+ return flattenLines(_arg.fields[0]);
927
+ default:
928
+ return empty();
929
+ }
930
+ }, eles);
931
+ elems_mut = rest;
932
+ acc_mut = ofArrayWithTail([PreprocessorElement_Intendation(transformFlowContent(new TransformContext(ctx.BaseIndent + ctx.IndentStep, ctx.IndentStep, ctx.StringDict), "{" + join("\n", flattenLines(iList)) + "}")), PreprocessorElement_Line(toText(printf("%s:"))(key))], acc);
933
+ continue processElements;
934
+ } else {
935
+ const transformed1 = transformElement(ctx, PreprocessorElement_Line(opener));
936
+ const transformed2 = transformElement(ctx, PreprocessorElement_Intendation(iList));
937
+ elems_mut = rest;
938
+ acc_mut = append(reverse(transformElement(ctx, PreprocessorElement_Line(closer))), append(reverse(transformed2), append(reverse(transformed1), acc)));
939
+ continue processElements;
940
+ }
941
+ }
942
+ default: {
943
+ elems_mut = rest_1;
944
+ acc_mut = append(reverse(transformElement(ctx, elem)), acc);
945
+ continue processElements;
946
+ }
947
+ }
948
+ break;
949
+ }
950
+ };
951
+ return processElements(elements, empty());
952
+ }
953
+
954
+ export { Token, Token_$reflection, Token_CloseBrace, Token_CloseBracket, Token_Colon, Token_Comma, Token_EOF, Token_OpenBrace, Token_OpenBracket, Token_String, TransformContext, TransformContext_$reflection, arrayToBlockElements, defaultContext, objectToBlockElements, tokenize, tokensToBlockElements, transformElement, transformElements, transformFlowContent };