@nfdi4plants/arctrl 3.2.3 → 3.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/ts/index.d.ts +44 -7
- package/dist/ts/index.d.ts.map +1 -1
- package/dist/ts/index.js +45 -8
- package/dist/ts/node_modules/@fable-org/fable-library-ts/Array.js +195 -92
- package/dist/ts/node_modules/@fable-org/fable-library-ts/Async.js +251 -30
- package/dist/ts/node_modules/@fable-org/fable-library-ts/AsyncBuilder.js +61 -11
- package/dist/ts/node_modules/@fable-org/fable-library-ts/BigInt.js +15 -5
- package/dist/ts/node_modules/@fable-org/fable-library-ts/BitConverter.js +139 -0
- package/dist/ts/node_modules/@fable-org/fable-library-ts/Date.js +1 -1
- package/dist/ts/node_modules/@fable-org/fable-library-ts/Decimal.js +68 -12
- package/dist/ts/node_modules/@fable-org/fable-library-ts/Double.js +24 -10
- package/dist/ts/node_modules/@fable-org/fable-library-ts/FSharp.Core.js +8 -2
- package/dist/ts/node_modules/@fable-org/fable-library-ts/Global.js +1 -1
- package/dist/ts/node_modules/@fable-org/fable-library-ts/Int32.js +11 -2
- package/dist/ts/node_modules/@fable-org/fable-library-ts/List.js +220 -155
- package/dist/ts/node_modules/@fable-org/fable-library-ts/Long.js +7 -2
- package/dist/ts/node_modules/@fable-org/fable-library-ts/Map.js +46 -39
- package/dist/ts/node_modules/@fable-org/fable-library-ts/MutableMap.js +75 -92
- package/dist/ts/node_modules/@fable-org/fable-library-ts/MutableSet.js +56 -76
- package/dist/ts/node_modules/@fable-org/fable-library-ts/NumberStyles.js +54 -0
- package/dist/ts/node_modules/@fable-org/fable-library-ts/Numeric.js +10 -5
- package/dist/ts/node_modules/@fable-org/fable-library-ts/Random.js +3 -4
- package/dist/ts/node_modules/@fable-org/fable-library-ts/Range.js +4 -3
- package/dist/ts/node_modules/@fable-org/fable-library-ts/RegExp.js +2 -2
- package/dist/ts/node_modules/@fable-org/fable-library-ts/Seq.js +128 -64
- package/dist/ts/node_modules/@fable-org/fable-library-ts/Seq2.js +4 -8
- package/dist/ts/node_modules/@fable-org/fable-library-ts/Set.js +64 -57
- package/dist/ts/node_modules/@fable-org/fable-library-ts/String.js +68 -21
- package/dist/ts/node_modules/@fable-org/fable-library-ts/System.Collections.Generic.js +3 -2
- package/dist/ts/node_modules/@fable-org/fable-library-ts/System.Text.js +2 -2
- package/dist/ts/node_modules/@fable-org/fable-library-ts/System.js +5 -5
- package/dist/ts/node_modules/@fable-org/fable-library-ts/Types.js +23 -12
- package/dist/ts/node_modules/@fable-org/fable-library-ts/Util.js +88 -49
- package/dist/ts/node_modules/@fable-org/fable-library-ts/lib/big.js +121 -74
- package/dist/ts/ts/ARC.d.ts +19 -2
- package/dist/ts/ts/ARC.d.ts.map +1 -1
- package/dist/ts/ts/ARC.js +128 -89
- package/dist/ts/ts/CWL/CWLKnownFieldNames.d.ts +0 -2
- package/dist/ts/ts/CWL/CWLKnownFieldNames.d.ts.map +1 -1
- package/dist/ts/ts/CWL/CWLKnownFieldNames.js +1 -7
- package/dist/ts/ts/CWL/CWLProcessingUnit.d.ts +46 -27
- package/dist/ts/ts/CWL/CWLProcessingUnit.d.ts.map +1 -1
- package/dist/ts/ts/CWL/CWLProcessingUnit.js +312 -123
- package/dist/ts/ts/CWL/CWLTypes.d.ts +481 -148
- package/dist/ts/ts/CWL/CWLTypes.d.ts.map +1 -1
- package/dist/ts/ts/CWL/CWLTypes.js +887 -201
- package/dist/ts/ts/CWL/Decode.d.ts +480 -211
- package/dist/ts/ts/CWL/Decode.d.ts.map +1 -1
- package/dist/ts/ts/CWL/Decode.js +3614 -2462
- package/dist/ts/ts/CWL/DynamicObjHelpers.d.ts +9 -0
- package/dist/ts/ts/CWL/DynamicObjHelpers.d.ts.map +1 -1
- package/dist/ts/ts/CWL/DynamicObjHelpers.js +55 -5
- package/dist/ts/ts/CWL/Encode.d.ts +225 -85
- package/dist/ts/ts/CWL/Encode.d.ts.map +1 -1
- package/dist/ts/ts/CWL/Encode.js +1858 -970
- package/dist/ts/ts/CWL/ExpressionToolDescription.d.ts +42 -28
- package/dist/ts/ts/CWL/ExpressionToolDescription.d.ts.map +1 -1
- package/dist/ts/ts/CWL/ExpressionToolDescription.js +34 -13
- package/dist/ts/ts/CWL/HashHelpers.d.ts +38 -0
- package/dist/ts/ts/CWL/HashHelpers.d.ts.map +1 -1
- package/dist/ts/ts/CWL/HashHelpers.js +255 -6
- package/dist/ts/ts/CWL/Inputs.d.ts +127 -56
- package/dist/ts/ts/CWL/Inputs.d.ts.map +1 -1
- package/dist/ts/ts/CWL/Inputs.js +107 -16
- package/dist/ts/ts/CWL/OperationDescription.d.ts +41 -21
- package/dist/ts/ts/CWL/OperationDescription.d.ts.map +1 -1
- package/dist/ts/ts/CWL/OperationDescription.js +35 -9
- package/dist/ts/ts/CWL/Outputs.d.ts +93 -42
- package/dist/ts/ts/CWL/Outputs.d.ts.map +1 -1
- package/dist/ts/ts/CWL/Outputs.js +101 -19
- package/dist/ts/ts/CWL/ParameterReference.d.ts +11 -8
- package/dist/ts/ts/CWL/ParameterReference.d.ts.map +1 -1
- package/dist/ts/ts/CWL/ParameterReference.js +18 -25
- package/dist/ts/ts/CWL/ParameterValue.d.ts +15 -1
- package/dist/ts/ts/CWL/ParameterValue.d.ts.map +1 -1
- package/dist/ts/ts/CWL/ParameterValue.js +59 -35
- package/dist/ts/ts/CWL/Requirements.d.ts +240 -98
- package/dist/ts/ts/CWL/Requirements.d.ts.map +1 -1
- package/dist/ts/ts/CWL/Requirements.js +462 -89
- package/dist/ts/ts/CWL/ScalarQuoting.d.ts +51 -0
- package/dist/ts/ts/CWL/ScalarQuoting.d.ts.map +1 -0
- package/dist/ts/ts/CWL/ScalarQuoting.js +250 -0
- package/dist/ts/ts/CWL/ToolDescription.d.ts +63 -50
- package/dist/ts/ts/CWL/ToolDescription.d.ts.map +1 -1
- package/dist/ts/ts/CWL/ToolDescription.js +34 -13
- package/dist/ts/ts/CWL/WorkflowDescription.d.ts +45 -26
- package/dist/ts/ts/CWL/WorkflowDescription.d.ts.map +1 -1
- package/dist/ts/ts/CWL/WorkflowDescription.js +38 -11
- package/dist/ts/ts/CWL/WorkflowSteps.d.ts +248 -65
- package/dist/ts/ts/CWL/WorkflowSteps.d.ts.map +1 -1
- package/dist/ts/ts/CWL/WorkflowSteps.js +413 -43
- package/dist/ts/ts/CWLRunResolver.d.ts +30 -12
- package/dist/ts/ts/CWLRunResolver.d.ts.map +1 -1
- package/dist/ts/ts/CWLRunResolver.js +221 -86
- package/dist/ts/ts/Contract/ARC.d.ts.map +1 -1
- package/dist/ts/ts/Contract/ARC.js +13 -14
- package/dist/ts/ts/Contract/ArcAssay.d.ts.map +1 -1
- package/dist/ts/ts/Contract/ArcAssay.js +4 -4
- package/dist/ts/ts/Contract/ArcInvestigation.d.ts.map +1 -1
- package/dist/ts/ts/Contract/ArcInvestigation.js +3 -4
- package/dist/ts/ts/Contract/ArcRun.d.ts +12 -2
- package/dist/ts/ts/Contract/ArcRun.d.ts.map +1 -1
- package/dist/ts/ts/Contract/ArcRun.js +47 -20
- package/dist/ts/ts/Contract/ArcStudy.d.ts.map +1 -1
- package/dist/ts/ts/Contract/ArcStudy.js +4 -4
- package/dist/ts/ts/Contract/ArcWorkflow.d.ts +18 -4
- package/dist/ts/ts/Contract/ArcWorkflow.d.ts.map +1 -1
- package/dist/ts/ts/Contract/ArcWorkflow.js +55 -17
- package/dist/ts/ts/Contract/Datamap.d.ts.map +1 -1
- package/dist/ts/ts/Contract/Datamap.js +16 -17
- package/dist/ts/ts/Contract/Git.js +1 -1
- package/dist/ts/ts/Contract/ValidationPackagesConfig.d.ts.map +1 -1
- package/dist/ts/ts/Contract/ValidationPackagesConfig.js +4 -5
- package/dist/ts/ts/ContractIO/ContractIO.d.ts.map +1 -1
- package/dist/ts/ts/ContractIO/ContractIO.js +15 -16
- package/dist/ts/ts/Conversion/Assay.d.ts.map +1 -1
- package/dist/ts/ts/Conversion/Assay.js +26 -18
- package/dist/ts/ts/Conversion/Basic.d.ts +4 -0
- package/dist/ts/ts/Conversion/Basic.d.ts.map +1 -1
- package/dist/ts/ts/Conversion/Basic.js +55 -31
- package/dist/ts/ts/Conversion/ColumnIndex.d.ts.map +1 -1
- package/dist/ts/ts/Conversion/ColumnIndex.js +2 -4
- package/dist/ts/ts/Conversion/DateTime.d.ts.map +1 -1
- package/dist/ts/ts/Conversion/DateTime.js +1 -2
- package/dist/ts/ts/Conversion/Investigation.js +11 -11
- package/dist/ts/ts/Conversion/Person.js +11 -11
- package/dist/ts/ts/Conversion/Process.d.ts.map +1 -1
- package/dist/ts/ts/Conversion/Process.js +107 -86
- package/dist/ts/ts/Conversion/Run.d.ts +36 -6
- package/dist/ts/ts/Conversion/Run.d.ts.map +1 -1
- package/dist/ts/ts/Conversion/Run.js +320 -136
- package/dist/ts/ts/Conversion/ScholarlyArticle.d.ts.map +1 -1
- package/dist/ts/ts/Conversion/ScholarlyArticle.js +75 -9
- package/dist/ts/ts/Conversion/Study.d.ts.map +1 -1
- package/dist/ts/ts/Conversion/Study.js +23 -12
- package/dist/ts/ts/Conversion/Table.js +5 -5
- package/dist/ts/ts/Conversion/Workflow.d.ts +48 -9
- package/dist/ts/ts/Conversion/Workflow.d.ts.map +1 -1
- package/dist/ts/ts/Conversion/Workflow.js +655 -163
- package/dist/ts/ts/Conversion.js +6 -6
- package/dist/ts/ts/Core/ArcTypes.d.ts +73 -28
- package/dist/ts/ts/Core/ArcTypes.d.ts.map +1 -1
- package/dist/ts/ts/Core/ArcTypes.js +219 -129
- package/dist/ts/ts/Core/Comment.d.ts.map +1 -1
- package/dist/ts/ts/Core/Comment.js +2 -2
- package/dist/ts/ts/Core/CommentList.js +7 -7
- package/dist/ts/ts/Core/Conversion.d.ts.map +1 -1
- package/dist/ts/ts/Core/Conversion.js +41 -41
- package/dist/ts/ts/Core/Data.d.ts.map +1 -1
- package/dist/ts/ts/Core/Data.js +14 -11
- package/dist/ts/ts/Core/DataContext.d.ts +1 -1
- package/dist/ts/ts/Core/DataContext.d.ts.map +1 -1
- package/dist/ts/ts/Core/DataContext.js +4 -4
- package/dist/ts/ts/Core/DataFile.d.ts +11 -8
- package/dist/ts/ts/Core/DataFile.d.ts.map +1 -1
- package/dist/ts/ts/Core/DataFile.js +55 -61
- package/dist/ts/ts/Core/Datamap.d.ts.map +1 -1
- package/dist/ts/ts/Core/Datamap.js +2 -3
- package/dist/ts/ts/Core/Helper/Collections.d.ts.map +1 -1
- package/dist/ts/ts/Core/Helper/Collections.js +2 -4
- package/dist/ts/ts/Core/Helper/Identifier.d.ts.map +1 -1
- package/dist/ts/ts/Core/Helper/Identifier.js +12 -15
- package/dist/ts/ts/Core/Helper/ORCID.d.ts.map +1 -1
- package/dist/ts/ts/Core/Helper/ORCID.js +2 -3
- package/dist/ts/ts/Core/Helper/Regex.d.ts.map +1 -1
- package/dist/ts/ts/Core/Helper/Regex.js +52 -53
- package/dist/ts/ts/Core/Helper/SemVer.d.ts +13 -3
- package/dist/ts/ts/Core/Helper/SemVer.d.ts.map +1 -1
- package/dist/ts/ts/Core/Helper/SemVer.js +96 -6
- package/dist/ts/ts/Core/Helper/Url.d.ts.map +1 -1
- package/dist/ts/ts/Core/Helper/Url.js +1 -1
- package/dist/ts/ts/Core/OntologyAnnotation.js +22 -22
- package/dist/ts/ts/Core/Person.d.ts.map +1 -1
- package/dist/ts/ts/Core/Person.js +2 -2
- package/dist/ts/ts/Core/Process/ColumnIndex.d.ts.map +1 -1
- package/dist/ts/ts/Core/Process/ColumnIndex.js +10 -12
- package/dist/ts/ts/Core/Process/Component.d.ts.map +1 -1
- package/dist/ts/ts/Core/Process/Component.js +22 -22
- package/dist/ts/ts/Core/Process/Factor.d.ts.map +1 -1
- package/dist/ts/ts/Core/Process/Factor.js +7 -7
- package/dist/ts/ts/Core/Process/FactorValue.d.ts.map +1 -1
- package/dist/ts/ts/Core/Process/FactorValue.js +15 -15
- package/dist/ts/ts/Core/Process/Material.d.ts.map +1 -1
- package/dist/ts/ts/Core/Process/Material.js +2 -2
- package/dist/ts/ts/Core/Process/MaterialAttribute.d.ts.map +1 -1
- package/dist/ts/ts/Core/Process/MaterialAttribute.js +6 -6
- package/dist/ts/ts/Core/Process/MaterialAttributeValue.d.ts.map +1 -1
- package/dist/ts/ts/Core/Process/MaterialAttributeValue.js +16 -16
- package/dist/ts/ts/Core/Process/Process.js +21 -21
- package/dist/ts/ts/Core/Process/ProcessInput.d.ts.map +1 -1
- package/dist/ts/ts/Core/Process/ProcessInput.js +2 -2
- package/dist/ts/ts/Core/Process/ProcessOutput.d.ts.map +1 -1
- package/dist/ts/ts/Core/Process/ProcessOutput.js +2 -2
- package/dist/ts/ts/Core/Process/ProcessParameterValue.d.ts.map +1 -1
- package/dist/ts/ts/Core/Process/ProcessParameterValue.js +17 -17
- package/dist/ts/ts/Core/Process/ProcessSequence.js +4 -4
- package/dist/ts/ts/Core/Process/Protocol.d.ts.map +1 -1
- package/dist/ts/ts/Core/Process/Protocol.js +9 -9
- package/dist/ts/ts/Core/Process/ProtocolParameter.d.ts.map +1 -1
- package/dist/ts/ts/Core/Process/ProtocolParameter.js +6 -6
- package/dist/ts/ts/Core/Publication.d.ts.map +1 -1
- package/dist/ts/ts/Core/Publication.js +3 -3
- package/dist/ts/ts/Core/ScalarValue.d.ts.map +1 -1
- package/dist/ts/ts/Core/ScalarValue.js +9 -13
- package/dist/ts/ts/Core/Table/ArcTable.d.ts.map +1 -1
- package/dist/ts/ts/Core/Table/ArcTable.js +18 -18
- package/dist/ts/ts/Core/Table/ArcTableAux.d.ts +1 -1
- package/dist/ts/ts/Core/Table/ArcTableAux.d.ts.map +1 -1
- package/dist/ts/ts/Core/Table/ArcTableAux.js +50 -70
- package/dist/ts/ts/Core/Table/ArcTables.js +16 -16
- package/dist/ts/ts/Core/Table/CompositeHeader.d.ts.map +1 -1
- package/dist/ts/ts/Core/Table/CompositeHeader.js +5 -6
- package/dist/ts/ts/Core/Templates.d.ts.map +1 -1
- package/dist/ts/ts/Core/Templates.js +2 -2
- package/dist/ts/ts/FileSystem/Path.d.ts +13 -2
- package/dist/ts/ts/FileSystem/Path.d.ts.map +1 -1
- package/dist/ts/ts/FileSystem/Path.js +37 -19
- package/dist/ts/ts/Json/Assay.js +22 -22
- package/dist/ts/ts/Json/Comment.js +9 -9
- package/dist/ts/ts/Json/Data.d.ts.map +1 -1
- package/dist/ts/ts/Json/Data.js +11 -11
- package/dist/ts/ts/Json/Datamap/DataContext.js +2 -2
- package/dist/ts/ts/Json/Decode.d.ts.map +1 -1
- package/dist/ts/ts/Json/Decode.js +3 -5
- package/dist/ts/ts/Json/Encode.js +2 -2
- package/dist/ts/ts/Json/Investigation.d.ts.map +1 -1
- package/dist/ts/ts/Json/Investigation.js +20 -20
- package/dist/ts/ts/Json/OntologyAnnotation.d.ts.map +1 -1
- package/dist/ts/ts/Json/OntologyAnnotation.js +18 -18
- package/dist/ts/ts/Json/OntologySourceReference.d.ts.map +1 -1
- package/dist/ts/ts/Json/OntologySourceReference.js +9 -9
- package/dist/ts/ts/Json/Person.d.ts.map +1 -1
- package/dist/ts/ts/Json/Person.js +20 -20
- package/dist/ts/ts/Json/Process/AssayMaterials.d.ts.map +1 -1
- package/dist/ts/ts/Json/Process/AssayMaterials.js +1 -2
- package/dist/ts/ts/Json/Process/Component.d.ts.map +1 -1
- package/dist/ts/ts/Json/Process/Component.js +5 -6
- package/dist/ts/ts/Json/Process/Factor.d.ts.map +1 -1
- package/dist/ts/ts/Json/Process/Factor.js +7 -7
- package/dist/ts/ts/Json/Process/FactorValue.d.ts.map +1 -1
- package/dist/ts/ts/Json/Process/FactorValue.js +2 -3
- package/dist/ts/ts/Json/Process/Material.d.ts.map +1 -1
- package/dist/ts/ts/Json/Process/Material.js +9 -10
- package/dist/ts/ts/Json/Process/MaterialAttribute.d.ts.map +1 -1
- package/dist/ts/ts/Json/Process/MaterialAttribute.js +5 -6
- package/dist/ts/ts/Json/Process/MaterialAttributeValue.d.ts.map +1 -1
- package/dist/ts/ts/Json/Process/MaterialAttributeValue.js +2 -3
- package/dist/ts/ts/Json/Process/Process.d.ts.map +1 -1
- package/dist/ts/ts/Json/Process/Process.js +8 -9
- package/dist/ts/ts/Json/Process/ProcessParameterValue.d.ts.map +1 -1
- package/dist/ts/ts/Json/Process/ProcessParameterValue.js +1 -2
- package/dist/ts/ts/Json/Process/Protocol.d.ts.map +1 -1
- package/dist/ts/ts/Json/Process/Protocol.js +17 -17
- package/dist/ts/ts/Json/Process/ProtocolParameter.d.ts.map +1 -1
- package/dist/ts/ts/Json/Process/ProtocolParameter.js +6 -6
- package/dist/ts/ts/Json/Process/Sample.d.ts.map +1 -1
- package/dist/ts/ts/Json/Process/Sample.js +9 -9
- package/dist/ts/ts/Json/Process/Source.d.ts.map +1 -1
- package/dist/ts/ts/Json/Process/Source.js +10 -11
- package/dist/ts/ts/Json/Process/StudyMaterials.d.ts.map +1 -1
- package/dist/ts/ts/Json/Process/StudyMaterials.js +1 -2
- package/dist/ts/ts/Json/PropertyValue.d.ts.map +1 -1
- package/dist/ts/ts/Json/PropertyValue.js +24 -24
- package/dist/ts/ts/Json/Publication.d.ts.map +1 -1
- package/dist/ts/ts/Json/Publication.js +10 -10
- package/dist/ts/ts/Json/ROCrate/LDContext.js +1 -2
- package/dist/ts/ts/Json/ROCrate/LDGraph.js +2 -2
- package/dist/ts/ts/Json/ROCrate/LDNode.js +5 -5
- package/dist/ts/ts/Json/Run.js +9 -9
- package/dist/ts/ts/Json/StringTable.d.ts.map +1 -1
- package/dist/ts/ts/Json/StringTable.js +4 -7
- package/dist/ts/ts/Json/Study.js +20 -20
- package/dist/ts/ts/Json/Table/CellTable.js +1 -2
- package/dist/ts/ts/Json/Table/OATable.js +1 -2
- package/dist/ts/ts/Json/Workflow.js +9 -9
- package/dist/ts/ts/Json.d.ts +121 -1
- package/dist/ts/ts/Json.d.ts.map +1 -1
- package/dist/ts/ts/Json.js +310 -2
- package/dist/ts/ts/JsonIO/Comment.d.ts +15 -0
- package/dist/ts/ts/JsonIO/Comment.d.ts.map +1 -0
- package/dist/ts/ts/JsonIO/Comment.js +67 -0
- package/dist/ts/ts/JsonIO/Data.d.ts +9 -0
- package/dist/ts/ts/JsonIO/Data.d.ts.map +1 -0
- package/dist/ts/ts/JsonIO/Data.js +49 -0
- package/dist/ts/ts/JsonIO/DataFile.d.ts +9 -0
- package/dist/ts/ts/JsonIO/DataFile.d.ts.map +1 -0
- package/dist/ts/ts/JsonIO/DataFile.js +48 -0
- package/dist/ts/ts/JsonIO/LDObject.d.ts +6 -0
- package/dist/ts/ts/JsonIO/LDObject.d.ts.map +1 -1
- package/dist/ts/ts/JsonIO/LDObject.js +173 -17
- package/dist/ts/ts/JsonIO/OntologySourceReference.d.ts +15 -0
- package/dist/ts/ts/JsonIO/OntologySourceReference.d.ts.map +1 -0
- package/dist/ts/ts/JsonIO/OntologySourceReference.js +67 -0
- package/dist/ts/ts/JsonIO/Publication.d.ts +15 -0
- package/dist/ts/ts/JsonIO/Publication.d.ts.map +1 -0
- package/dist/ts/ts/JsonIO/Publication.js +68 -0
- package/dist/ts/ts/JsonIO/Table/ArcTable.d.ts +9 -0
- package/dist/ts/ts/JsonIO/Table/ArcTable.d.ts.map +1 -0
- package/dist/ts/ts/JsonIO/Table/ArcTable.js +74 -0
- package/dist/ts/ts/JsonIO/Table/CompositeCell.d.ts +6 -0
- package/dist/ts/ts/JsonIO/Table/CompositeCell.d.ts.map +1 -0
- package/dist/ts/ts/JsonIO/Table/CompositeCell.js +29 -0
- package/dist/ts/ts/JsonIO/Table/CompositeHeader.d.ts +6 -0
- package/dist/ts/ts/JsonIO/Table/CompositeHeader.d.ts.map +1 -0
- package/dist/ts/ts/JsonIO/Table/CompositeHeader.js +29 -0
- package/dist/ts/ts/JsonIO/Table/IOType.d.ts +6 -0
- package/dist/ts/ts/JsonIO/Table/IOType.d.ts.map +1 -0
- package/dist/ts/ts/JsonIO/Table/IOType.js +29 -0
- package/dist/ts/ts/License.d.ts.map +1 -1
- package/dist/ts/ts/License.js +6 -6
- package/dist/ts/ts/ROCrate/LDContext.d.ts.map +1 -1
- package/dist/ts/ts/ROCrate/LDContext.js +31 -39
- package/dist/ts/ts/ROCrate/LDObject.d.ts.map +1 -1
- package/dist/ts/ts/ROCrate/LDObject.js +56 -49
- package/dist/ts/ts/ROCrate/LDTypes/Comment.js +2 -2
- package/dist/ts/ts/ROCrate/LDTypes/ComputationalWorkflow.js +3 -3
- package/dist/ts/ts/ROCrate/LDTypes/ComputerLanguage.js +2 -2
- package/dist/ts/ts/ROCrate/LDTypes/CreateAction.js +5 -5
- package/dist/ts/ts/ROCrate/LDTypes/CreativeWork.d.ts +1 -0
- package/dist/ts/ts/ROCrate/LDTypes/CreativeWork.d.ts.map +1 -1
- package/dist/ts/ts/ROCrate/LDTypes/CreativeWork.js +3 -0
- package/dist/ts/ts/ROCrate/LDTypes/Dataset.d.ts.map +1 -1
- package/dist/ts/ts/ROCrate/LDTypes/Dataset.js +22 -17
- package/dist/ts/ts/ROCrate/LDTypes/DefinedTerm.js +2 -2
- package/dist/ts/ts/ROCrate/LDTypes/File.js +5 -5
- package/dist/ts/ts/ROCrate/LDTypes/FormalParameter.js +2 -2
- package/dist/ts/ts/ROCrate/LDTypes/LabProcess.js +9 -9
- package/dist/ts/ts/ROCrate/LDTypes/LabProtocol.js +4 -4
- package/dist/ts/ts/ROCrate/LDTypes/Organization.js +1 -1
- package/dist/ts/ts/ROCrate/LDTypes/Person.js +7 -7
- package/dist/ts/ts/ROCrate/LDTypes/PostalAddress.js +1 -1
- package/dist/ts/ts/ROCrate/LDTypes/PropertyValue.d.ts.map +1 -1
- package/dist/ts/ts/ROCrate/LDTypes/PropertyValue.js +45 -48
- package/dist/ts/ts/ROCrate/LDTypes/Sample.js +3 -3
- package/dist/ts/ts/ROCrate/LDTypes/ScholarlyArticle.js +4 -4
- package/dist/ts/ts/ROCrate/LDTypes/SoftwareSourceCode.js +3 -3
- package/dist/ts/ts/ROCrate/LDTypes/WorkflowInvocation.js +3 -3
- package/dist/ts/ts/ROCrate/LDTypes/WorkflowProtocol.js +2 -2
- package/dist/ts/ts/ROCrateIO.d.ts +18 -4
- package/dist/ts/ts/ROCrateIO.d.ts.map +1 -1
- package/dist/ts/ts/ROCrateIO.js +49 -38
- package/dist/ts/ts/Spreadsheet/AnnotationTable/ArcTable.d.ts.map +1 -1
- package/dist/ts/ts/Spreadsheet/AnnotationTable/ArcTable.js +9 -10
- package/dist/ts/ts/Spreadsheet/AnnotationTable/CompositeCell.d.ts.map +1 -1
- package/dist/ts/ts/Spreadsheet/AnnotationTable/CompositeCell.js +7 -7
- package/dist/ts/ts/Spreadsheet/AnnotationTable/CompositeColumn.d.ts.map +1 -1
- package/dist/ts/ts/Spreadsheet/AnnotationTable/CompositeColumn.js +6 -8
- package/dist/ts/ts/Spreadsheet/AnnotationTable/CompositeHeader.js +20 -20
- package/dist/ts/ts/Spreadsheet/ArcAssay.d.ts.map +1 -1
- package/dist/ts/ts/Spreadsheet/ArcAssay.js +7 -7
- package/dist/ts/ts/Spreadsheet/ArcInvestigation.js +8 -8
- package/dist/ts/ts/Spreadsheet/ArcRun.d.ts.map +1 -1
- package/dist/ts/ts/Spreadsheet/ArcRun.js +5 -6
- package/dist/ts/ts/Spreadsheet/ArcStudy.d.ts.map +1 -1
- package/dist/ts/ts/Spreadsheet/ArcStudy.js +3 -3
- package/dist/ts/ts/Spreadsheet/ArcWorkflow.d.ts.map +1 -1
- package/dist/ts/ts/Spreadsheet/ArcWorkflow.js +5 -6
- package/dist/ts/ts/Spreadsheet/CollectionAux.d.ts.map +1 -1
- package/dist/ts/ts/Spreadsheet/CollectionAux.js +10 -14
- package/dist/ts/ts/Spreadsheet/Datamap.js +1 -2
- package/dist/ts/ts/Spreadsheet/DatamapTable/DatamapColumn.js +3 -3
- package/dist/ts/ts/Spreadsheet/DatamapTable/DatamapHeader.js +10 -10
- package/dist/ts/ts/Spreadsheet/DatamapTable/DatamapTable.d.ts.map +1 -1
- package/dist/ts/ts/Spreadsheet/DatamapTable/DatamapTable.js +9 -10
- package/dist/ts/ts/Spreadsheet/Metadata/Assays.d.ts.map +1 -1
- package/dist/ts/ts/Spreadsheet/Metadata/Assays.js +6 -6
- package/dist/ts/ts/Spreadsheet/Metadata/Comment.d.ts.map +1 -1
- package/dist/ts/ts/Spreadsheet/Metadata/Comment.js +5 -5
- package/dist/ts/ts/Spreadsheet/Metadata/Contacts.d.ts.map +1 -1
- package/dist/ts/ts/Spreadsheet/Metadata/Contacts.js +2 -2
- package/dist/ts/ts/Spreadsheet/Metadata/Factors.d.ts.map +1 -1
- package/dist/ts/ts/Spreadsheet/Metadata/Factors.js +4 -4
- package/dist/ts/ts/Spreadsheet/Metadata/OntologyAnnotation.d.ts.map +1 -1
- package/dist/ts/ts/Spreadsheet/Metadata/OntologyAnnotation.js +3 -3
- package/dist/ts/ts/Spreadsheet/Metadata/Protocols.d.ts.map +1 -1
- package/dist/ts/ts/Spreadsheet/Metadata/Protocols.js +5 -5
- package/dist/ts/ts/Spreadsheet/Metadata/Publication.d.ts.map +1 -1
- package/dist/ts/ts/Spreadsheet/Metadata/Publication.js +4 -4
- package/dist/ts/ts/Spreadsheet/Metadata/Run.d.ts +1 -1
- package/dist/ts/ts/Spreadsheet/Metadata/Run.d.ts.map +1 -1
- package/dist/ts/ts/Spreadsheet/Metadata/Run.js +7 -7
- package/dist/ts/ts/Spreadsheet/Metadata/SparseTable.d.ts.map +1 -1
- package/dist/ts/ts/Spreadsheet/Metadata/SparseTable.js +17 -17
- package/dist/ts/ts/Spreadsheet/Metadata/Study.d.ts.map +1 -1
- package/dist/ts/ts/Spreadsheet/Metadata/Study.js +8 -8
- package/dist/ts/ts/Spreadsheet/Metadata/Workflow.d.ts.map +1 -1
- package/dist/ts/ts/Spreadsheet/Metadata/Workflow.js +5 -5
- package/dist/ts/ts/WorkflowGraph/Adapters.d.ts +1 -1
- package/dist/ts/ts/WorkflowGraph/Adapters.d.ts.map +1 -1
- package/dist/ts/ts/WorkflowGraph/Adapters.js +5 -6
- package/dist/ts/ts/WorkflowGraph/Builder.d.ts +25 -6
- package/dist/ts/ts/WorkflowGraph/Builder.d.ts.map +1 -1
- package/dist/ts/ts/WorkflowGraph/Builder.js +264 -138
- package/dist/ts/ts/WorkflowGraph/GraphTypes.d.ts +6 -0
- package/dist/ts/ts/WorkflowGraph/GraphTypes.d.ts.map +1 -1
- package/dist/ts/ts/WorkflowGraph/GraphTypes.js +4 -1
- package/dist/ts/ts/WorkflowGraph/ReferenceParsing.d.ts +8 -5
- package/dist/ts/ts/WorkflowGraph/ReferenceParsing.d.ts.map +1 -1
- package/dist/ts/ts/WorkflowGraph/ReferenceParsing.js +27 -10
- package/dist/ts/ts/Xlsx.js +3 -3
- package/dist/ts/ts/Yaml/ValidationPackage.d.ts +3 -3
- package/dist/ts/ts/Yaml/ValidationPackage.d.ts.map +1 -1
- package/dist/ts/ts/Yaml/ValidationPackage.js +11 -23
- package/dist/ts/ts/Yaml/ValidationPackagesConfig.d.ts +3 -3
- package/dist/ts/ts/Yaml/ValidationPackagesConfig.d.ts.map +1 -1
- package/dist/ts/ts/Yaml/ValidationPackagesConfig.js +11 -23
- package/dist/ts/ts/fable_modules/DynamicObj.8.0.0/DynamicObj.fs.js +16 -20
- package/dist/ts/ts/fable_modules/DynamicObj.8.0.0/FableJS.fs.js +1 -1
- package/dist/ts/ts/fable_modules/DynamicObj.8.0.0/ReflectionUtils.fs.js +8 -8
- package/dist/ts/ts/fable_modules/Fable.Promise.3.2.0/Promise.fs.js +1 -2
- package/dist/ts/ts/fable_modules/Fable.SimpleHttp.3.6.0/Http.fs.js +4 -4
- package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.1/Cells/FsCell.fs.js +8 -8
- package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.1/Cells/FsCellsCollection.fs.js +18 -18
- package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.1/FsAddress.fs.js +3 -3
- package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.1/FsWorkbook.fs.js +1 -1
- package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.1/FsWorksheet.fs.js +7 -7
- package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.1/Json/Value.fs.js +3 -5
- package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.1/Json/Worksheet.fs.js +7 -7
- package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.1/Ranges/FsRangeBase.fs.js +1 -2
- package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.1/Tables/FsTable.fs.js +7 -7
- package/dist/ts/ts/fable_modules/FsSpreadsheet.Js.7.0.1/Cell.fs.js +2 -2
- package/dist/ts/ts/fable_modules/FsSpreadsheet.Js.7.0.1/Table.fs.js +1 -2
- package/dist/ts/ts/fable_modules/Thoth.Json.Core.0.9.1/Decode.fs.js +49 -71
- package/dist/ts/ts/fable_modules/Thoth.Json.Core.0.9.1/Encode.fs.js +1 -1
- package/dist/ts/ts/fable_modules/Thoth.Json.JavaScript.0.5.0/Decode.fs.js +1 -2
- package/dist/ts/ts/fable_modules/YAMLicious.2.0.0/Compare.fs.js +857 -0
- package/dist/ts/ts/fable_modules/YAMLicious.2.0.0/CoreSchema.fs.js +725 -0
- package/dist/ts/ts/fable_modules/YAMLicious.2.0.0/Decode.fs.js +1175 -0
- package/dist/ts/ts/fable_modules/YAMLicious.2.0.0/Encode.fs.js +123 -0
- package/dist/ts/ts/fable_modules/YAMLicious.2.0.0/Layout.fs.js +282 -0
- package/dist/ts/ts/fable_modules/YAMLicious.2.0.0/Lexeme.fs.js +203 -0
- package/dist/ts/ts/fable_modules/YAMLicious.2.0.0/Lexer.fs.js +1502 -0
- package/dist/ts/ts/fable_modules/YAMLicious.2.0.0/Model.fs.js +564 -0
- package/dist/ts/ts/fable_modules/YAMLicious.2.0.0/Node.fs.js +453 -0
- package/dist/ts/ts/fable_modules/YAMLicious.2.0.0/Parser.fs.js +2622 -0
- package/dist/ts/ts/fable_modules/YAMLicious.2.0.0/Reader.fs.js +108 -0
- package/dist/ts/ts/fable_modules/YAMLicious.2.0.0/Source.fs.js +649 -0
- package/dist/ts/ts/fable_modules/YAMLicious.2.0.0/Tag.fs.js +32 -0
- package/dist/ts/ts/fable_modules/YAMLicious.2.0.0/Validate.fs.js +1084 -0
- package/dist/ts/ts/fable_modules/YAMLicious.2.0.0/Writer.fs.js +2927 -0
- package/package.json +5 -4
- package/dist/ts/ts/fable_modules/YAMLicious.1.0.0/Decode.fs.js +0 -1669
- package/dist/ts/ts/fable_modules/YAMLicious.1.0.0/Encode.fs.js +0 -57
- package/dist/ts/ts/fable_modules/YAMLicious.1.0.0/Escapes.fs.js +0 -320
- package/dist/ts/ts/fable_modules/YAMLicious.1.0.0/Interop/JsInterop.fs.js +0 -10
- package/dist/ts/ts/fable_modules/YAMLicious.1.0.0/Persil.fs.js +0 -414
- package/dist/ts/ts/fable_modules/YAMLicious.1.0.0/Preprocessing.fs.js +0 -319
- package/dist/ts/ts/fable_modules/YAMLicious.1.0.0/Reader.fs.js +0 -1884
- package/dist/ts/ts/fable_modules/YAMLicious.1.0.0/Regex.fs.js +0 -23
- package/dist/ts/ts/fable_modules/YAMLicious.1.0.0/RegexActivePatterns.fs.js +0 -313
- package/dist/ts/ts/fable_modules/YAMLicious.1.0.0/Syntax.fs.js +0 -840
- package/dist/ts/ts/fable_modules/YAMLicious.1.0.0/Writer.fs.js +0 -689
- package/dist/ts/ts/fable_modules/YAMLicious.1.0.0/YAMLiciousTypes.fs.js +0 -359
|
@@ -1,840 +0,0 @@
|
|
|
1
|
-
import { replace, substring, trimEnd, trimStart, isNullOrWhiteSpace, split, join } from '../../../node_modules/@fable-org/fable-library-ts/String.js';
|
|
2
|
-
import { length, takeWhile, forAll } from '../../../node_modules/@fable-org/fable-library-ts/Seq.js';
|
|
3
|
-
import { tryParse, parse } from '../../../node_modules/@fable-org/fable-library-ts/Int32.js';
|
|
4
|
-
import { FSharpRef, Record, toString, Union } from '../../../node_modules/@fable-org/fable-library-ts/Types.js';
|
|
5
|
-
import { value } from '../../../node_modules/@fable-org/fable-library-ts/Option.js';
|
|
6
|
-
import { isDigit, isWhiteSpace } from '../../../node_modules/@fable-org/fable-library-ts/Char.js';
|
|
7
|
-
import { exists, forAll as forAll$1, toArray, map, filter, min as min$1, isEmpty, head, tail, cons, ofArrayWithTail, reverse, empty, ofArray, append, ofSeq } from '../../../node_modules/@fable-org/fable-library-ts/List.js';
|
|
8
|
-
import { BlockScalarStyle_$reflection, ChompingMode_$reflection, BlockScalarStyle, ChompingMode } from './YAMLiciousTypes.fs.js';
|
|
9
|
-
import { equals, comparePrimitives } from '../../../node_modules/@fable-org/fable-library-ts/Util.js';
|
|
10
|
-
import { record_type, option_type, int32_type, union_type, string_type } from '../../../node_modules/@fable-org/fable-library-ts/Reflection.js';
|
|
11
|
-
import { tryHead, item } from '../../../node_modules/@fable-org/fable-library-ts/Array.js';
|
|
12
|
-
import { min } from '../../../node_modules/@fable-org/fable-library-ts/Double.js';
|
|
13
|
-
import { StringBuilder_$ctor, StringBuilder__Append_244C7CD6, StringBuilder__Append_Z721C83C5 } from '../../../node_modules/@fable-org/fable-library-ts/System.Text.js';
|
|
14
|
-
|
|
15
|
-
function Line_normalizeNewlines(s) {
|
|
16
|
-
return replace(replace(s, "\r\n", "\n"), "\r", "\n");
|
|
17
|
-
}
|
|
18
|
-
function Line_countLeadingSpaces(line) {
|
|
19
|
-
return length(takeWhile((c) => c === " ", line.split(""))) | 0;
|
|
20
|
-
}
|
|
21
|
-
function Line_isBlank(line) {
|
|
22
|
-
return line.trim() === "";
|
|
23
|
-
}
|
|
24
|
-
function Placeholder_tryParseInt(s) {
|
|
25
|
-
let matchValue;
|
|
26
|
-
let outArg = 0;
|
|
27
|
-
matchValue = [tryParse(s, 511, false, 32, new FSharpRef(() => outArg | 0, (v) => {
|
|
28
|
-
outArg = v | 0;
|
|
29
|
-
})), outArg];
|
|
30
|
-
if (matchValue[0]) {
|
|
31
|
-
return matchValue[1];
|
|
32
|
-
} else {
|
|
33
|
-
return void 0;
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
function Placeholder_tryParseComment(line) {
|
|
37
|
-
const t = line.trim();
|
|
38
|
-
if (t.startsWith("<c f=") && t.endsWith("/>")) {
|
|
39
|
-
const value = substring(t, 5, t.length - 7);
|
|
40
|
-
if (forAll(isDigit, value.split(""))) {
|
|
41
|
-
return Placeholder_tryParseInt(value);
|
|
42
|
-
} else {
|
|
43
|
-
return void 0;
|
|
44
|
-
}
|
|
45
|
-
} else {
|
|
46
|
-
return void 0;
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
function Placeholder_isCommentOnlyLine(line) {
|
|
50
|
-
return Placeholder_tryParseComment(line) != null;
|
|
51
|
-
}
|
|
52
|
-
function Placeholder_splitTrailingComment(s) {
|
|
53
|
-
const trimmed = trimEnd(s);
|
|
54
|
-
const start = trimmed.lastIndexOf("<c f=") | 0;
|
|
55
|
-
if (start >= 0 && trimmed.endsWith("/>")) {
|
|
56
|
-
const valueStart = start + 5 | 0;
|
|
57
|
-
const valueLength = trimmed.length - valueStart - 2 | 0;
|
|
58
|
-
if (valueLength >= 1) {
|
|
59
|
-
const value = substring(trimmed, valueStart, valueLength);
|
|
60
|
-
if (forAll(isDigit, value.split(""))) {
|
|
61
|
-
return [trimEnd(substring(trimmed, 0, start)), Placeholder_tryParseInt(value)];
|
|
62
|
-
} else {
|
|
63
|
-
return [trimmed, void 0];
|
|
64
|
-
}
|
|
65
|
-
} else {
|
|
66
|
-
return [trimmed, void 0];
|
|
67
|
-
}
|
|
68
|
-
} else {
|
|
69
|
-
return [trimmed, void 0];
|
|
70
|
-
}
|
|
71
|
-
}
|
|
72
|
-
function Document_isMarker(marker, line) {
|
|
73
|
-
const trimmed = trimStart(line);
|
|
74
|
-
if (!trimmed.startsWith(marker)) {
|
|
75
|
-
return false;
|
|
76
|
-
} else if (trimmed.length === marker.length) {
|
|
77
|
-
return true;
|
|
78
|
-
} else {
|
|
79
|
-
return isWhiteSpace(trimmed[marker.length]);
|
|
80
|
-
}
|
|
81
|
-
}
|
|
82
|
-
function Document_isStart(line) {
|
|
83
|
-
return Document_isMarker("---", line);
|
|
84
|
-
}
|
|
85
|
-
function Document_isEnd(line) {
|
|
86
|
-
return Document_isMarker("...", line);
|
|
87
|
-
}
|
|
88
|
-
function Document_isTopLevelMarker(markerCheck, line) {
|
|
89
|
-
if (Line_countLeadingSpaces(line) === 0) {
|
|
90
|
-
return markerCheck(line);
|
|
91
|
-
} else {
|
|
92
|
-
return false;
|
|
93
|
-
}
|
|
94
|
-
}
|
|
95
|
-
function Document_tryInlineContentAfterStartMarker(line) {
|
|
96
|
-
const trimmed = trimStart(line);
|
|
97
|
-
if (!trimmed.startsWith("---")) {
|
|
98
|
-
return void 0;
|
|
99
|
-
} else {
|
|
100
|
-
const rest = trimStart(substring(trimmed, 3));
|
|
101
|
-
if (isNullOrWhiteSpace(rest) ? true : rest.startsWith("#")) {
|
|
102
|
-
return void 0;
|
|
103
|
-
} else {
|
|
104
|
-
return rest;
|
|
105
|
-
}
|
|
106
|
-
}
|
|
107
|
-
}
|
|
108
|
-
function Document_isDirectivePreludeLine(line) {
|
|
109
|
-
const t = trimStart(line);
|
|
110
|
-
if (t === "" ? true : t.startsWith("%")) {
|
|
111
|
-
return true;
|
|
112
|
-
} else {
|
|
113
|
-
return t.startsWith("#");
|
|
114
|
-
}
|
|
115
|
-
}
|
|
116
|
-
function Document_isDirectivePreludeOnly(lines) {
|
|
117
|
-
if (exists((line) => trimStart(line).startsWith("%"), lines)) {
|
|
118
|
-
return forAll$1(Document_isDirectivePreludeLine, lines);
|
|
119
|
-
} else {
|
|
120
|
-
return false;
|
|
121
|
-
}
|
|
122
|
-
}
|
|
123
|
-
class BlockScalar_Header extends Record {
|
|
124
|
-
constructor(Style, Indent, Chomp) {
|
|
125
|
-
super();
|
|
126
|
-
this.Style = Style;
|
|
127
|
-
this.Indent = Indent;
|
|
128
|
-
this.Chomp = Chomp;
|
|
129
|
-
}
|
|
130
|
-
}
|
|
131
|
-
function BlockScalar_Header_$reflection() {
|
|
132
|
-
return record_type("YAMLicious.Syntax.BlockScalar.Header", [], BlockScalar_Header, () => [["Style", BlockScalarStyle_$reflection()], ["Indent", option_type(int32_type)], ["Chomp", ChompingMode_$reflection()]]);
|
|
133
|
-
}
|
|
134
|
-
function BlockScalar_parseHeader(header) {
|
|
135
|
-
const h = header.trim();
|
|
136
|
-
if (isNullOrWhiteSpace(h)) {
|
|
137
|
-
return void 0;
|
|
138
|
-
} else {
|
|
139
|
-
let style;
|
|
140
|
-
const matchValue = h[0];
|
|
141
|
-
style = matchValue === ">" ? BlockScalarStyle.Folded : matchValue === "|" ? BlockScalarStyle.Literal : void 0;
|
|
142
|
-
if (style != null) {
|
|
143
|
-
const style_1 = value(style);
|
|
144
|
-
let indent = void 0;
|
|
145
|
-
let chomp = ChompingMode.Clip;
|
|
146
|
-
let valid = true;
|
|
147
|
-
for (let i = 1; i <= h.length - 1; i++) {
|
|
148
|
-
let c = void 0;
|
|
149
|
-
const matchValue_1 = h[i];
|
|
150
|
-
if (c = matchValue_1, c >= "1" && c <= "9") {
|
|
151
|
-
if (indent != null) {
|
|
152
|
-
valid = false;
|
|
153
|
-
} else {
|
|
154
|
-
indent = parse(matchValue_1, 511, false, 32);
|
|
155
|
-
}
|
|
156
|
-
} else {
|
|
157
|
-
switch (matchValue_1) {
|
|
158
|
-
case "+": {
|
|
159
|
-
if (!equals(chomp, ChompingMode.Clip)) {
|
|
160
|
-
valid = false;
|
|
161
|
-
} else {
|
|
162
|
-
chomp = ChompingMode.Keep;
|
|
163
|
-
}
|
|
164
|
-
break;
|
|
165
|
-
}
|
|
166
|
-
case "-": {
|
|
167
|
-
if (!equals(chomp, ChompingMode.Clip)) {
|
|
168
|
-
valid = false;
|
|
169
|
-
} else {
|
|
170
|
-
chomp = ChompingMode.Strip;
|
|
171
|
-
}
|
|
172
|
-
break;
|
|
173
|
-
}
|
|
174
|
-
default:
|
|
175
|
-
valid = false;
|
|
176
|
-
}
|
|
177
|
-
}
|
|
178
|
-
}
|
|
179
|
-
if (valid) {
|
|
180
|
-
return new BlockScalar_Header(style_1, indent, chomp);
|
|
181
|
-
} else {
|
|
182
|
-
return void 0;
|
|
183
|
-
}
|
|
184
|
-
} else {
|
|
185
|
-
return void 0;
|
|
186
|
-
}
|
|
187
|
-
}
|
|
188
|
-
}
|
|
189
|
-
function BlockScalar_stripProperties(s) {
|
|
190
|
-
const loop = (current_mut) => {
|
|
191
|
-
loop:
|
|
192
|
-
while (true) {
|
|
193
|
-
const current = current_mut;
|
|
194
|
-
const c = trimStart(current);
|
|
195
|
-
if (c.startsWith("&")) {
|
|
196
|
-
const idx = c.indexOf(" ") | 0;
|
|
197
|
-
if (idx < 0) {
|
|
198
|
-
return "";
|
|
199
|
-
} else {
|
|
200
|
-
current_mut = substring(c, idx + 1);
|
|
201
|
-
continue loop;
|
|
202
|
-
}
|
|
203
|
-
} else if (c.startsWith("!<")) {
|
|
204
|
-
const idx_1 = c.indexOf(">") | 0;
|
|
205
|
-
if (idx_1 < 0) {
|
|
206
|
-
return c;
|
|
207
|
-
} else {
|
|
208
|
-
current_mut = substring(c, idx_1 + 1);
|
|
209
|
-
continue loop;
|
|
210
|
-
}
|
|
211
|
-
} else if (c.startsWith("!") && !c.startsWith("|") && !c.startsWith(">")) {
|
|
212
|
-
const idx_2 = c.indexOf(" ") | 0;
|
|
213
|
-
if (idx_2 < 0) {
|
|
214
|
-
return "";
|
|
215
|
-
} else {
|
|
216
|
-
current_mut = substring(c, idx_2 + 1);
|
|
217
|
-
continue loop;
|
|
218
|
-
}
|
|
219
|
-
} else {
|
|
220
|
-
return c;
|
|
221
|
-
}
|
|
222
|
-
break;
|
|
223
|
-
}
|
|
224
|
-
};
|
|
225
|
-
return loop(s);
|
|
226
|
-
}
|
|
227
|
-
function BlockScalar_headerTokenFromLine(line) {
|
|
228
|
-
let idx = void 0;
|
|
229
|
-
const trimmed = trimStart(line);
|
|
230
|
-
const afterDash = trimmed.startsWith("- ") ? trimStart(substring(trimmed, 2)) : trimmed;
|
|
231
|
-
return tryHead(split(BlockScalar_stripProperties((idx = afterDash.indexOf(":") | 0, idx >= 0 ? trimStart(substring(afterDash, idx + 1)) : afterDash)), [" ", " "], void 0, 1));
|
|
232
|
-
}
|
|
233
|
-
function BlockScalar_tryDetectHeaderIndent(line) {
|
|
234
|
-
const matchValue = BlockScalar_headerTokenFromLine(line);
|
|
235
|
-
let matchResult = void 0, token_1 = void 0;
|
|
236
|
-
if (matchValue != null) {
|
|
237
|
-
if (BlockScalar_parseHeader(value(matchValue)) != null) {
|
|
238
|
-
matchResult = 0;
|
|
239
|
-
token_1 = value(matchValue);
|
|
240
|
-
} else {
|
|
241
|
-
matchResult = 1;
|
|
242
|
-
}
|
|
243
|
-
} else {
|
|
244
|
-
matchResult = 1;
|
|
245
|
-
}
|
|
246
|
-
switch (matchResult) {
|
|
247
|
-
case 0:
|
|
248
|
-
return Line_countLeadingSpaces(line);
|
|
249
|
-
default:
|
|
250
|
-
return void 0;
|
|
251
|
-
}
|
|
252
|
-
}
|
|
253
|
-
function BlockScalar_isHeaderLine(line) {
|
|
254
|
-
return BlockScalar_tryDetectHeaderIndent(line) != null;
|
|
255
|
-
}
|
|
256
|
-
function BlockScalar_applyChomping(chomp, content) {
|
|
257
|
-
switch (chomp.tag) {
|
|
258
|
-
case /* Keep */
|
|
259
|
-
2:
|
|
260
|
-
return content;
|
|
261
|
-
case /* Clip */
|
|
262
|
-
1: {
|
|
263
|
-
const trimmed = trimEnd(content, "\r", "\n");
|
|
264
|
-
if (content.length > trimmed.length) {
|
|
265
|
-
return trimmed + "\n";
|
|
266
|
-
} else {
|
|
267
|
-
return trimmed;
|
|
268
|
-
}
|
|
269
|
-
}
|
|
270
|
-
default:
|
|
271
|
-
return trimEnd(content, "\r", "\n");
|
|
272
|
-
}
|
|
273
|
-
}
|
|
274
|
-
function BlockScalar_stripIndent(indent, line) {
|
|
275
|
-
if (line.trim() === "") {
|
|
276
|
-
return "";
|
|
277
|
-
} else {
|
|
278
|
-
return substring(line, min(indent, Line_countLeadingSpaces(line)));
|
|
279
|
-
}
|
|
280
|
-
}
|
|
281
|
-
function BlockScalar_foldLines(lines) {
|
|
282
|
-
const isMoreIndented = (line) => {
|
|
283
|
-
if (line.startsWith(" ")) {
|
|
284
|
-
return true;
|
|
285
|
-
} else {
|
|
286
|
-
return line.startsWith(" ");
|
|
287
|
-
}
|
|
288
|
-
};
|
|
289
|
-
const arr = toArray(lines);
|
|
290
|
-
const sb = StringBuilder_$ctor();
|
|
291
|
-
for (let i = 0; i <= arr.length - 1; i++) {
|
|
292
|
-
const line_1 = item(i, arr);
|
|
293
|
-
if (line_1.trim() === "") {
|
|
294
|
-
StringBuilder__Append_244C7CD6(sb, "\n");
|
|
295
|
-
} else {
|
|
296
|
-
StringBuilder__Append_Z721C83C5(sb, line_1);
|
|
297
|
-
if (i < arr.length - 1) {
|
|
298
|
-
const next = item(i + 1, arr);
|
|
299
|
-
if (next.trim() === "") {
|
|
300
|
-
StringBuilder__Append_244C7CD6(sb, "\n");
|
|
301
|
-
} else if (isMoreIndented(line_1) ? true : isMoreIndented(next)) {
|
|
302
|
-
StringBuilder__Append_244C7CD6(sb, "\n");
|
|
303
|
-
} else {
|
|
304
|
-
StringBuilder__Append_244C7CD6(sb, " ");
|
|
305
|
-
}
|
|
306
|
-
}
|
|
307
|
-
}
|
|
308
|
-
}
|
|
309
|
-
return toString(sb);
|
|
310
|
-
}
|
|
311
|
-
function BlockScalar_deindentLines(headerIndent, explicitIndent, lines) {
|
|
312
|
-
let contentIndent;
|
|
313
|
-
if (explicitIndent == null) {
|
|
314
|
-
const _arg = map((line) => Line_countLeadingSpaces(line) | 0, filter((l) => l.trim() !== "", lines));
|
|
315
|
-
contentIndent = isEmpty(_arg) ? headerIndent : min$1(_arg, {
|
|
316
|
-
Compare: (x, y) => comparePrimitives(x, y) | 0
|
|
317
|
-
});
|
|
318
|
-
} else {
|
|
319
|
-
contentIndent = headerIndent + value(explicitIndent);
|
|
320
|
-
}
|
|
321
|
-
return map((line_1) => BlockScalar_stripIndent(contentIndent, line_1), lines);
|
|
322
|
-
}
|
|
323
|
-
function BlockScalar_buildContent(style, chomp, headerIndent, explicitIndent, lines) {
|
|
324
|
-
let folded = void 0;
|
|
325
|
-
const deindentedLines = BlockScalar_deindentLines(headerIndent, explicitIndent, lines);
|
|
326
|
-
return BlockScalar_applyChomping(chomp, style.tag === /* Folded */
|
|
327
|
-
1 ? (folded = BlockScalar_foldLines(deindentedLines), folded.endsWith("\n") ? folded : folded + "\n") : isEmpty(deindentedLines) ? "" : join("\n", deindentedLines) + "\n");
|
|
328
|
-
}
|
|
329
|
-
function FlowTokens_Token_OpenBrace() {
|
|
330
|
-
return FlowTokens_Token.OpenBrace;
|
|
331
|
-
}
|
|
332
|
-
function FlowTokens_Token_CloseBrace() {
|
|
333
|
-
return FlowTokens_Token.CloseBrace;
|
|
334
|
-
}
|
|
335
|
-
function FlowTokens_Token_OpenBracket() {
|
|
336
|
-
return FlowTokens_Token.OpenBracket;
|
|
337
|
-
}
|
|
338
|
-
function FlowTokens_Token_CloseBracket() {
|
|
339
|
-
return FlowTokens_Token.CloseBracket;
|
|
340
|
-
}
|
|
341
|
-
function FlowTokens_Token_Colon() {
|
|
342
|
-
return FlowTokens_Token.Colon;
|
|
343
|
-
}
|
|
344
|
-
function FlowTokens_Token_Comma() {
|
|
345
|
-
return FlowTokens_Token.Comma;
|
|
346
|
-
}
|
|
347
|
-
function FlowTokens_Token_String$(Item) {
|
|
348
|
-
return new FlowTokens_Token(6, [Item]);
|
|
349
|
-
}
|
|
350
|
-
function FlowTokens_Token_EOF() {
|
|
351
|
-
return FlowTokens_Token.EOF;
|
|
352
|
-
}
|
|
353
|
-
class FlowTokens_Token extends Union {
|
|
354
|
-
constructor(tag, fields) {
|
|
355
|
-
super();
|
|
356
|
-
this.tag = tag;
|
|
357
|
-
this.fields = fields;
|
|
358
|
-
}
|
|
359
|
-
cases() {
|
|
360
|
-
return ["OpenBrace", "CloseBrace", "OpenBracket", "CloseBracket", "Colon", "Comma", "String", "EOF"];
|
|
361
|
-
}
|
|
362
|
-
static {
|
|
363
|
-
this.OpenBrace = new FlowTokens_Token(0, []);
|
|
364
|
-
}
|
|
365
|
-
static {
|
|
366
|
-
this.CloseBrace = new FlowTokens_Token(1, []);
|
|
367
|
-
}
|
|
368
|
-
static {
|
|
369
|
-
this.OpenBracket = new FlowTokens_Token(2, []);
|
|
370
|
-
}
|
|
371
|
-
static {
|
|
372
|
-
this.CloseBracket = new FlowTokens_Token(3, []);
|
|
373
|
-
}
|
|
374
|
-
static {
|
|
375
|
-
this.Colon = new FlowTokens_Token(4, []);
|
|
376
|
-
}
|
|
377
|
-
static {
|
|
378
|
-
this.Comma = new FlowTokens_Token(5, []);
|
|
379
|
-
}
|
|
380
|
-
static {
|
|
381
|
-
this.EOF = new FlowTokens_Token(7, []);
|
|
382
|
-
}
|
|
383
|
-
}
|
|
384
|
-
function FlowTokens_Token_$reflection() {
|
|
385
|
-
return union_type("YAMLicious.Syntax.FlowTokens.Token", [], FlowTokens_Token, () => [[], [], [], [], [], [], [["Item", string_type]], []]);
|
|
386
|
-
}
|
|
387
|
-
function FlowTokens_tokenize(input) {
|
|
388
|
-
const parseString = (chars_mut, acc_mut) => {
|
|
389
|
-
parseString:
|
|
390
|
-
while (true) {
|
|
391
|
-
const chars = chars_mut, acc = acc_mut;
|
|
392
|
-
let matchResult = void 0, rest = void 0, c = void 0, rest_1 = void 0, c_1 = void 0, rest_2 = void 0;
|
|
393
|
-
if (!isEmpty(chars)) {
|
|
394
|
-
switch (head(chars)) {
|
|
395
|
-
case '"': {
|
|
396
|
-
matchResult = 1;
|
|
397
|
-
rest = tail(chars);
|
|
398
|
-
break;
|
|
399
|
-
}
|
|
400
|
-
case "\\": {
|
|
401
|
-
if (!isEmpty(tail(chars))) {
|
|
402
|
-
matchResult = 2;
|
|
403
|
-
c = head(tail(chars));
|
|
404
|
-
rest_1 = tail(tail(chars));
|
|
405
|
-
} else {
|
|
406
|
-
matchResult = 3;
|
|
407
|
-
c_1 = head(chars);
|
|
408
|
-
rest_2 = tail(chars);
|
|
409
|
-
}
|
|
410
|
-
break;
|
|
411
|
-
}
|
|
412
|
-
default: {
|
|
413
|
-
matchResult = 3;
|
|
414
|
-
c_1 = head(chars);
|
|
415
|
-
rest_2 = tail(chars);
|
|
416
|
-
}
|
|
417
|
-
}
|
|
418
|
-
} else {
|
|
419
|
-
matchResult = 0;
|
|
420
|
-
}
|
|
421
|
-
switch (matchResult) {
|
|
422
|
-
case 0:
|
|
423
|
-
return [reverse(acc), empty()];
|
|
424
|
-
case 1:
|
|
425
|
-
return [reverse(acc), rest];
|
|
426
|
-
case 2: {
|
|
427
|
-
chars_mut = rest_1;
|
|
428
|
-
acc_mut = ofArrayWithTail([c, "\\"], acc);
|
|
429
|
-
continue parseString;
|
|
430
|
-
}
|
|
431
|
-
default: {
|
|
432
|
-
chars_mut = rest_2;
|
|
433
|
-
acc_mut = cons(c_1, acc);
|
|
434
|
-
continue parseString;
|
|
435
|
-
}
|
|
436
|
-
}
|
|
437
|
-
break;
|
|
438
|
-
}
|
|
439
|
-
};
|
|
440
|
-
const consumePlaceholder = (cs, acc_1) => {
|
|
441
|
-
const loop = (cs_1_mut, acc_2_mut) => {
|
|
442
|
-
loop:
|
|
443
|
-
while (true) {
|
|
444
|
-
const cs_1 = cs_1_mut, acc_2 = acc_2_mut;
|
|
445
|
-
let matchResult_1 = void 0, rest_3 = void 0, c_2 = void 0, rest_4 = void 0;
|
|
446
|
-
if (isEmpty(cs_1)) {
|
|
447
|
-
matchResult_1 = 2;
|
|
448
|
-
} else if (head(cs_1) === "/") {
|
|
449
|
-
if (!isEmpty(tail(cs_1))) {
|
|
450
|
-
if (head(tail(cs_1)) === ">") {
|
|
451
|
-
matchResult_1 = 0;
|
|
452
|
-
rest_3 = tail(tail(cs_1));
|
|
453
|
-
} else {
|
|
454
|
-
matchResult_1 = 1;
|
|
455
|
-
c_2 = head(cs_1);
|
|
456
|
-
rest_4 = tail(cs_1);
|
|
457
|
-
}
|
|
458
|
-
} else {
|
|
459
|
-
matchResult_1 = 1;
|
|
460
|
-
c_2 = head(cs_1);
|
|
461
|
-
rest_4 = tail(cs_1);
|
|
462
|
-
}
|
|
463
|
-
} else {
|
|
464
|
-
matchResult_1 = 1;
|
|
465
|
-
c_2 = head(cs_1);
|
|
466
|
-
rest_4 = tail(cs_1);
|
|
467
|
-
}
|
|
468
|
-
switch (matchResult_1) {
|
|
469
|
-
case 0:
|
|
470
|
-
return [reverse(ofArrayWithTail([">", "/"], acc_2)), rest_3];
|
|
471
|
-
case 1: {
|
|
472
|
-
cs_1_mut = rest_4;
|
|
473
|
-
acc_2_mut = cons(c_2, acc_2);
|
|
474
|
-
continue loop;
|
|
475
|
-
}
|
|
476
|
-
default:
|
|
477
|
-
return [reverse(acc_2), empty()];
|
|
478
|
-
}
|
|
479
|
-
break;
|
|
480
|
-
}
|
|
481
|
-
};
|
|
482
|
-
return loop(cs, acc_1);
|
|
483
|
-
};
|
|
484
|
-
const tokenizeChars = (chars_1_mut, acc_3_mut) => {
|
|
485
|
-
tokenizeChars:
|
|
486
|
-
while (true) {
|
|
487
|
-
const chars_1 = chars_1_mut, acc_3 = acc_3_mut;
|
|
488
|
-
let matchResult_2 = void 0, rest_5 = void 0, rest_6 = void 0, rest_7 = void 0, rest_8 = void 0, rest_9 = void 0, rest_10 = void 0, rest_11 = void 0, rest_12 = void 0, chars_2 = void 0;
|
|
489
|
-
if (!isEmpty(chars_1)) {
|
|
490
|
-
switch (head(chars_1)) {
|
|
491
|
-
case " ": {
|
|
492
|
-
matchResult_2 = 1;
|
|
493
|
-
rest_5 = tail(chars_1);
|
|
494
|
-
break;
|
|
495
|
-
}
|
|
496
|
-
case "\n": {
|
|
497
|
-
matchResult_2 = 1;
|
|
498
|
-
rest_5 = tail(chars_1);
|
|
499
|
-
break;
|
|
500
|
-
}
|
|
501
|
-
case "\r": {
|
|
502
|
-
matchResult_2 = 1;
|
|
503
|
-
rest_5 = tail(chars_1);
|
|
504
|
-
break;
|
|
505
|
-
}
|
|
506
|
-
case " ": {
|
|
507
|
-
matchResult_2 = 1;
|
|
508
|
-
rest_5 = tail(chars_1);
|
|
509
|
-
break;
|
|
510
|
-
}
|
|
511
|
-
case '"': {
|
|
512
|
-
matchResult_2 = 8;
|
|
513
|
-
rest_12 = tail(chars_1);
|
|
514
|
-
break;
|
|
515
|
-
}
|
|
516
|
-
case ",": {
|
|
517
|
-
matchResult_2 = 7;
|
|
518
|
-
rest_11 = tail(chars_1);
|
|
519
|
-
break;
|
|
520
|
-
}
|
|
521
|
-
case ":": {
|
|
522
|
-
matchResult_2 = 6;
|
|
523
|
-
rest_10 = tail(chars_1);
|
|
524
|
-
break;
|
|
525
|
-
}
|
|
526
|
-
case "[": {
|
|
527
|
-
matchResult_2 = 4;
|
|
528
|
-
rest_8 = tail(chars_1);
|
|
529
|
-
break;
|
|
530
|
-
}
|
|
531
|
-
case "]": {
|
|
532
|
-
matchResult_2 = 5;
|
|
533
|
-
rest_9 = tail(chars_1);
|
|
534
|
-
break;
|
|
535
|
-
}
|
|
536
|
-
case "{": {
|
|
537
|
-
matchResult_2 = 2;
|
|
538
|
-
rest_6 = tail(chars_1);
|
|
539
|
-
break;
|
|
540
|
-
}
|
|
541
|
-
case "}": {
|
|
542
|
-
matchResult_2 = 3;
|
|
543
|
-
rest_7 = tail(chars_1);
|
|
544
|
-
break;
|
|
545
|
-
}
|
|
546
|
-
default: {
|
|
547
|
-
matchResult_2 = 9;
|
|
548
|
-
chars_2 = chars_1;
|
|
549
|
-
}
|
|
550
|
-
}
|
|
551
|
-
} else {
|
|
552
|
-
matchResult_2 = 0;
|
|
553
|
-
}
|
|
554
|
-
switch (matchResult_2) {
|
|
555
|
-
case 0:
|
|
556
|
-
return reverse(cons(FlowTokens_Token.EOF, acc_3));
|
|
557
|
-
case 1: {
|
|
558
|
-
chars_1_mut = rest_5;
|
|
559
|
-
acc_3_mut = acc_3;
|
|
560
|
-
continue tokenizeChars;
|
|
561
|
-
}
|
|
562
|
-
case 2: {
|
|
563
|
-
chars_1_mut = rest_6;
|
|
564
|
-
acc_3_mut = cons(FlowTokens_Token.OpenBrace, acc_3);
|
|
565
|
-
continue tokenizeChars;
|
|
566
|
-
}
|
|
567
|
-
case 3: {
|
|
568
|
-
chars_1_mut = rest_7;
|
|
569
|
-
acc_3_mut = cons(FlowTokens_Token.CloseBrace, acc_3);
|
|
570
|
-
continue tokenizeChars;
|
|
571
|
-
}
|
|
572
|
-
case 4: {
|
|
573
|
-
chars_1_mut = rest_8;
|
|
574
|
-
acc_3_mut = cons(FlowTokens_Token.OpenBracket, acc_3);
|
|
575
|
-
continue tokenizeChars;
|
|
576
|
-
}
|
|
577
|
-
case 5: {
|
|
578
|
-
chars_1_mut = rest_9;
|
|
579
|
-
acc_3_mut = cons(FlowTokens_Token.CloseBracket, acc_3);
|
|
580
|
-
continue tokenizeChars;
|
|
581
|
-
}
|
|
582
|
-
case 6: {
|
|
583
|
-
chars_1_mut = rest_10;
|
|
584
|
-
acc_3_mut = cons(FlowTokens_Token.Colon, acc_3);
|
|
585
|
-
continue tokenizeChars;
|
|
586
|
-
}
|
|
587
|
-
case 7: {
|
|
588
|
-
chars_1_mut = rest_11;
|
|
589
|
-
acc_3_mut = cons(FlowTokens_Token.Comma, acc_3);
|
|
590
|
-
continue tokenizeChars;
|
|
591
|
-
}
|
|
592
|
-
case 8: {
|
|
593
|
-
const patternInput = parseString(rest_12, empty());
|
|
594
|
-
chars_1_mut = patternInput[1];
|
|
595
|
-
acc_3_mut = cons(FlowTokens_Token_String$(toArray(patternInput[0]).join("")), acc_3);
|
|
596
|
-
continue tokenizeChars;
|
|
597
|
-
}
|
|
598
|
-
default: {
|
|
599
|
-
const parseUnquoted = (cs_2_mut, acc_4_mut) => {
|
|
600
|
-
parseUnquoted:
|
|
601
|
-
while (true) {
|
|
602
|
-
const cs_2 = cs_2_mut, acc_4 = acc_4_mut;
|
|
603
|
-
let c_3 = void 0, c_4 = void 0, c_5 = void 0, c_6 = void 0, c_7 = void 0, c_8 = void 0, c_9 = void 0, c_10 = void 0, c_11 = void 0, c_12 = void 0, c_13 = void 0, c_14 = void 0, c_15 = void 0, c_16 = void 0, c_17 = void 0, c_18 = void 0;
|
|
604
|
-
let matchResult_3 = void 0, rest_30 = void 0, rest_31 = void 0, c_19 = void 0, rest_32 = void 0, rest_33 = void 0, c_20 = void 0, rest_34 = void 0;
|
|
605
|
-
if (!isEmpty(cs_2)) {
|
|
606
|
-
switch (head(cs_2)) {
|
|
607
|
-
case " ": {
|
|
608
|
-
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 === " ") {
|
|
609
|
-
matchResult_3 = 3;
|
|
610
|
-
c_19 = head(cs_2);
|
|
611
|
-
rest_32 = tail(cs_2);
|
|
612
|
-
} else if (isEmpty(acc_4)) {
|
|
613
|
-
matchResult_3 = 4;
|
|
614
|
-
rest_33 = tail(cs_2);
|
|
615
|
-
} else {
|
|
616
|
-
matchResult_3 = 5;
|
|
617
|
-
c_20 = head(cs_2);
|
|
618
|
-
rest_34 = tail(cs_2);
|
|
619
|
-
}
|
|
620
|
-
break;
|
|
621
|
-
}
|
|
622
|
-
case "<": {
|
|
623
|
-
if (!isEmpty(tail(cs_2))) {
|
|
624
|
-
switch (head(tail(cs_2))) {
|
|
625
|
-
case "c": {
|
|
626
|
-
if (!isEmpty(tail(tail(cs_2)))) {
|
|
627
|
-
if (head(tail(tail(cs_2))) === " ") {
|
|
628
|
-
if (!isEmpty(tail(tail(tail(cs_2))))) {
|
|
629
|
-
if (head(tail(tail(tail(cs_2)))) === "f") {
|
|
630
|
-
if (!isEmpty(tail(tail(tail(tail(cs_2)))))) {
|
|
631
|
-
if (head(tail(tail(tail(tail(cs_2))))) === "=") {
|
|
632
|
-
matchResult_3 = 2;
|
|
633
|
-
rest_31 = tail(tail(tail(tail(tail(cs_2)))));
|
|
634
|
-
} 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 === " ") {
|
|
635
|
-
matchResult_3 = 3;
|
|
636
|
-
c_19 = head(cs_2);
|
|
637
|
-
rest_32 = tail(cs_2);
|
|
638
|
-
} else {
|
|
639
|
-
matchResult_3 = 5;
|
|
640
|
-
c_20 = head(cs_2);
|
|
641
|
-
rest_34 = tail(cs_2);
|
|
642
|
-
}
|
|
643
|
-
} 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 === " ") {
|
|
644
|
-
matchResult_3 = 3;
|
|
645
|
-
c_19 = head(cs_2);
|
|
646
|
-
rest_32 = tail(cs_2);
|
|
647
|
-
} else {
|
|
648
|
-
matchResult_3 = 5;
|
|
649
|
-
c_20 = head(cs_2);
|
|
650
|
-
rest_34 = tail(cs_2);
|
|
651
|
-
}
|
|
652
|
-
} 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 === " ") {
|
|
653
|
-
matchResult_3 = 3;
|
|
654
|
-
c_19 = head(cs_2);
|
|
655
|
-
rest_32 = tail(cs_2);
|
|
656
|
-
} else {
|
|
657
|
-
matchResult_3 = 5;
|
|
658
|
-
c_20 = head(cs_2);
|
|
659
|
-
rest_34 = tail(cs_2);
|
|
660
|
-
}
|
|
661
|
-
} 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 === " ") {
|
|
662
|
-
matchResult_3 = 3;
|
|
663
|
-
c_19 = head(cs_2);
|
|
664
|
-
rest_32 = tail(cs_2);
|
|
665
|
-
} else {
|
|
666
|
-
matchResult_3 = 5;
|
|
667
|
-
c_20 = head(cs_2);
|
|
668
|
-
rest_34 = tail(cs_2);
|
|
669
|
-
}
|
|
670
|
-
} 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 === " ") {
|
|
671
|
-
matchResult_3 = 3;
|
|
672
|
-
c_19 = head(cs_2);
|
|
673
|
-
rest_32 = tail(cs_2);
|
|
674
|
-
} else {
|
|
675
|
-
matchResult_3 = 5;
|
|
676
|
-
c_20 = head(cs_2);
|
|
677
|
-
rest_34 = tail(cs_2);
|
|
678
|
-
}
|
|
679
|
-
} 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 === " ") {
|
|
680
|
-
matchResult_3 = 3;
|
|
681
|
-
c_19 = head(cs_2);
|
|
682
|
-
rest_32 = tail(cs_2);
|
|
683
|
-
} else {
|
|
684
|
-
matchResult_3 = 5;
|
|
685
|
-
c_20 = head(cs_2);
|
|
686
|
-
rest_34 = tail(cs_2);
|
|
687
|
-
}
|
|
688
|
-
break;
|
|
689
|
-
}
|
|
690
|
-
case "s": {
|
|
691
|
-
if (!isEmpty(tail(tail(cs_2)))) {
|
|
692
|
-
if (head(tail(tail(cs_2))) === " ") {
|
|
693
|
-
if (!isEmpty(tail(tail(tail(cs_2))))) {
|
|
694
|
-
if (head(tail(tail(tail(cs_2)))) === "f") {
|
|
695
|
-
if (!isEmpty(tail(tail(tail(tail(cs_2)))))) {
|
|
696
|
-
if (head(tail(tail(tail(tail(cs_2))))) === "=") {
|
|
697
|
-
matchResult_3 = 1;
|
|
698
|
-
rest_30 = tail(tail(tail(tail(tail(cs_2)))));
|
|
699
|
-
} 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 === " ") {
|
|
700
|
-
matchResult_3 = 3;
|
|
701
|
-
c_19 = head(cs_2);
|
|
702
|
-
rest_32 = tail(cs_2);
|
|
703
|
-
} else {
|
|
704
|
-
matchResult_3 = 5;
|
|
705
|
-
c_20 = head(cs_2);
|
|
706
|
-
rest_34 = tail(cs_2);
|
|
707
|
-
}
|
|
708
|
-
} 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 === " ") {
|
|
709
|
-
matchResult_3 = 3;
|
|
710
|
-
c_19 = head(cs_2);
|
|
711
|
-
rest_32 = tail(cs_2);
|
|
712
|
-
} else {
|
|
713
|
-
matchResult_3 = 5;
|
|
714
|
-
c_20 = head(cs_2);
|
|
715
|
-
rest_34 = tail(cs_2);
|
|
716
|
-
}
|
|
717
|
-
} 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 === " ") {
|
|
718
|
-
matchResult_3 = 3;
|
|
719
|
-
c_19 = head(cs_2);
|
|
720
|
-
rest_32 = tail(cs_2);
|
|
721
|
-
} else {
|
|
722
|
-
matchResult_3 = 5;
|
|
723
|
-
c_20 = head(cs_2);
|
|
724
|
-
rest_34 = tail(cs_2);
|
|
725
|
-
}
|
|
726
|
-
} 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 === " ") {
|
|
727
|
-
matchResult_3 = 3;
|
|
728
|
-
c_19 = head(cs_2);
|
|
729
|
-
rest_32 = tail(cs_2);
|
|
730
|
-
} else {
|
|
731
|
-
matchResult_3 = 5;
|
|
732
|
-
c_20 = head(cs_2);
|
|
733
|
-
rest_34 = tail(cs_2);
|
|
734
|
-
}
|
|
735
|
-
} 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 === " ") {
|
|
736
|
-
matchResult_3 = 3;
|
|
737
|
-
c_19 = head(cs_2);
|
|
738
|
-
rest_32 = tail(cs_2);
|
|
739
|
-
} else {
|
|
740
|
-
matchResult_3 = 5;
|
|
741
|
-
c_20 = head(cs_2);
|
|
742
|
-
rest_34 = tail(cs_2);
|
|
743
|
-
}
|
|
744
|
-
} 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 === " ") {
|
|
745
|
-
matchResult_3 = 3;
|
|
746
|
-
c_19 = head(cs_2);
|
|
747
|
-
rest_32 = tail(cs_2);
|
|
748
|
-
} else {
|
|
749
|
-
matchResult_3 = 5;
|
|
750
|
-
c_20 = head(cs_2);
|
|
751
|
-
rest_34 = tail(cs_2);
|
|
752
|
-
}
|
|
753
|
-
break;
|
|
754
|
-
}
|
|
755
|
-
default:
|
|
756
|
-
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 === " ") {
|
|
757
|
-
matchResult_3 = 3;
|
|
758
|
-
c_19 = head(cs_2);
|
|
759
|
-
rest_32 = tail(cs_2);
|
|
760
|
-
} else {
|
|
761
|
-
matchResult_3 = 5;
|
|
762
|
-
c_20 = head(cs_2);
|
|
763
|
-
rest_34 = tail(cs_2);
|
|
764
|
-
}
|
|
765
|
-
}
|
|
766
|
-
} 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 === " ") {
|
|
767
|
-
matchResult_3 = 3;
|
|
768
|
-
c_19 = head(cs_2);
|
|
769
|
-
rest_32 = tail(cs_2);
|
|
770
|
-
} else {
|
|
771
|
-
matchResult_3 = 5;
|
|
772
|
-
c_20 = head(cs_2);
|
|
773
|
-
rest_34 = tail(cs_2);
|
|
774
|
-
}
|
|
775
|
-
break;
|
|
776
|
-
}
|
|
777
|
-
default:
|
|
778
|
-
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 === " ") {
|
|
779
|
-
matchResult_3 = 3;
|
|
780
|
-
c_19 = head(cs_2);
|
|
781
|
-
rest_32 = tail(cs_2);
|
|
782
|
-
} else {
|
|
783
|
-
matchResult_3 = 5;
|
|
784
|
-
c_20 = head(cs_2);
|
|
785
|
-
rest_34 = tail(cs_2);
|
|
786
|
-
}
|
|
787
|
-
}
|
|
788
|
-
} else {
|
|
789
|
-
matchResult_3 = 0;
|
|
790
|
-
}
|
|
791
|
-
switch (matchResult_3) {
|
|
792
|
-
case 0:
|
|
793
|
-
return [reverse(acc_4), empty()];
|
|
794
|
-
case 1: {
|
|
795
|
-
const patternInput_1 = consumePlaceholder(rest_30, ofArray(["=", "f", " ", "s", "<"]));
|
|
796
|
-
const patternInput_2 = parseUnquoted(patternInput_1[1], empty());
|
|
797
|
-
return [append(patternInput_1[0], patternInput_2[0]), patternInput_2[1]];
|
|
798
|
-
}
|
|
799
|
-
case 2: {
|
|
800
|
-
const patternInput_3 = consumePlaceholder(rest_31, ofArray(["=", "f", " ", "c", "<"]));
|
|
801
|
-
const patternInput_4 = parseUnquoted(patternInput_3[1], empty());
|
|
802
|
-
return [append(patternInput_3[0], patternInput_4[0]), patternInput_4[1]];
|
|
803
|
-
}
|
|
804
|
-
case 3:
|
|
805
|
-
return [reverse(acc_4), cs_2];
|
|
806
|
-
case 4: {
|
|
807
|
-
cs_2_mut = rest_33;
|
|
808
|
-
acc_4_mut = acc_4;
|
|
809
|
-
continue parseUnquoted;
|
|
810
|
-
}
|
|
811
|
-
default: {
|
|
812
|
-
cs_2_mut = rest_34;
|
|
813
|
-
acc_4_mut = cons(c_20, acc_4);
|
|
814
|
-
continue parseUnquoted;
|
|
815
|
-
}
|
|
816
|
-
}
|
|
817
|
-
break;
|
|
818
|
-
}
|
|
819
|
-
};
|
|
820
|
-
const patternInput_5 = parseUnquoted(chars_2, empty());
|
|
821
|
-
const str_1 = patternInput_5[0];
|
|
822
|
-
const remaining_3 = patternInput_5[1];
|
|
823
|
-
if (isEmpty(str_1)) {
|
|
824
|
-
chars_1_mut = remaining_3;
|
|
825
|
-
acc_3_mut = acc_3;
|
|
826
|
-
continue tokenizeChars;
|
|
827
|
-
} else {
|
|
828
|
-
chars_1_mut = remaining_3;
|
|
829
|
-
acc_3_mut = cons(FlowTokens_Token_String$(toArray(str_1).join("")), acc_3);
|
|
830
|
-
continue tokenizeChars;
|
|
831
|
-
}
|
|
832
|
-
}
|
|
833
|
-
}
|
|
834
|
-
break;
|
|
835
|
-
}
|
|
836
|
-
};
|
|
837
|
-
return tokenizeChars(ofSeq(input.split("")), empty());
|
|
838
|
-
}
|
|
839
|
-
|
|
840
|
-
export { BlockScalar_Header, BlockScalar_Header_$reflection, BlockScalar_applyChomping, BlockScalar_buildContent, BlockScalar_deindentLines, BlockScalar_foldLines, BlockScalar_headerTokenFromLine, BlockScalar_isHeaderLine, BlockScalar_parseHeader, BlockScalar_stripIndent, BlockScalar_stripProperties, BlockScalar_tryDetectHeaderIndent, Document_isDirectivePreludeLine, Document_isDirectivePreludeOnly, Document_isEnd, Document_isMarker, Document_isStart, Document_isTopLevelMarker, Document_tryInlineContentAfterStartMarker, FlowTokens_Token, FlowTokens_Token_$reflection, FlowTokens_Token_CloseBrace, FlowTokens_Token_CloseBracket, FlowTokens_Token_Colon, FlowTokens_Token_Comma, FlowTokens_Token_EOF, FlowTokens_Token_OpenBrace, FlowTokens_Token_OpenBracket, FlowTokens_Token_String$, FlowTokens_tokenize, Line_countLeadingSpaces, Line_isBlank, Line_normalizeNewlines, Placeholder_isCommentOnlyLine, Placeholder_splitTrailingComment, Placeholder_tryParseComment };
|