@gmb/bitmark-parser-generator 3.34.0 → 3.36.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 (904) hide show
  1. package/README.md +4 -4
  2. package/dist/browser/bitmark-parser-generator.min.js +1 -1
  3. package/dist/browser/bundle-report.html +2 -2
  4. package/dist/index.cjs +33650 -0
  5. package/dist/index.cjs.map +1 -0
  6. package/dist/index.d.cts +7733 -0
  7. package/dist/index.d.ts +7733 -0
  8. package/dist/index.js +33590 -0
  9. package/dist/index.js.map +1 -0
  10. package/package.json +106 -90
  11. package/dist/cjs/BitmarkParserGenerator.js +0 -776
  12. package/dist/cjs/BitmarkParserGenerator.js.map +0 -1
  13. package/dist/cjs/ast/Ast.js +0 -220
  14. package/dist/cjs/ast/Ast.js.map +0 -1
  15. package/dist/cjs/ast/BaseBuilder.js +0 -193
  16. package/dist/cjs/ast/BaseBuilder.js.map +0 -1
  17. package/dist/cjs/ast/Builder.js +0 -1781
  18. package/dist/cjs/ast/Builder.js.map +0 -1
  19. package/dist/cjs/ast/ResourceBuilder.js +0 -963
  20. package/dist/cjs/ast/ResourceBuilder.js.map +0 -1
  21. package/dist/cjs/ast/rules/NodeValidator.js +0 -184
  22. package/dist/cjs/ast/rules/NodeValidator.js.map +0 -1
  23. package/dist/cjs/ast/writer/FileWriter.js +0 -119
  24. package/dist/cjs/ast/writer/FileWriter.js.map +0 -1
  25. package/dist/cjs/ast/writer/StreamWriter.js +0 -89
  26. package/dist/cjs/ast/writer/StreamWriter.js.map +0 -1
  27. package/dist/cjs/ast/writer/StringWriter.js +0 -115
  28. package/dist/cjs/ast/writer/StringWriter.js.map +0 -1
  29. package/dist/cjs/ast/writer/Writer.js +0 -3
  30. package/dist/cjs/ast/writer/Writer.js.map +0 -1
  31. package/dist/cjs/breakscaping/Breakscape.js +0 -80
  32. package/dist/cjs/breakscaping/Breakscape.js.map +0 -1
  33. package/dist/cjs/breakscaping/BreakscapeLoop.js +0 -305
  34. package/dist/cjs/breakscaping/BreakscapeLoop.js.map +0 -1
  35. package/dist/cjs/breakscaping/BreakscapeOptions.js +0 -3
  36. package/dist/cjs/breakscaping/BreakscapeOptions.js.map +0 -1
  37. package/dist/cjs/breakscaping/BreakscapeRegex.js +0 -213
  38. package/dist/cjs/breakscaping/BreakscapeRegex.js.map +0 -1
  39. package/dist/cjs/breakscaping/RegexConfigs.js +0 -38
  40. package/dist/cjs/breakscaping/RegexConfigs.js.map +0 -1
  41. package/dist/cjs/config/Config.js +0 -352
  42. package/dist/cjs/config/Config.js.map +0 -1
  43. package/dist/cjs/config/ConfigHydrator.js +0 -161
  44. package/dist/cjs/config/ConfigHydrator.js.map +0 -1
  45. package/dist/cjs/config/raw/bits.js +0 -2615
  46. package/dist/cjs/config/raw/bits.js.map +0 -1
  47. package/dist/cjs/config/raw/cardSets.js +0 -549
  48. package/dist/cjs/config/raw/cardSets.js.map +0 -1
  49. package/dist/cjs/config/raw/groups.js +0 -1182
  50. package/dist/cjs/config/raw/groups.js.map +0 -1
  51. package/dist/cjs/config/raw/properties.js +0 -1006
  52. package/dist/cjs/config/raw/properties.js.map +0 -1
  53. package/dist/cjs/config/raw/resources.js +0 -103
  54. package/dist/cjs/config/raw/resources.js.map +0 -1
  55. package/dist/cjs/config/raw/tags.js +0 -48
  56. package/dist/cjs/config/raw/tags.js.map +0 -1
  57. package/dist/cjs/generated/build-info.js +0 -13
  58. package/dist/cjs/generated/build-info.js.map +0 -1
  59. package/dist/cjs/generated/parser/bitmark/bitmark-peggy-parser.js +0 -3168
  60. package/dist/cjs/generated/parser/bitmark/bitmark-peggy-parser.js.map +0 -1
  61. package/dist/cjs/generated/parser/text/text-peggy-parser.js +0 -9659
  62. package/dist/cjs/generated/parser/text/text-peggy-parser.js.map +0 -1
  63. package/dist/cjs/generator/AstWalkerGenerator.js +0 -86
  64. package/dist/cjs/generator/AstWalkerGenerator.js.map +0 -1
  65. package/dist/cjs/generator/Generator.js +0 -3
  66. package/dist/cjs/generator/Generator.js.map +0 -1
  67. package/dist/cjs/generator/bitmark/BitmarkFileGenerator.js +0 -49
  68. package/dist/cjs/generator/bitmark/BitmarkFileGenerator.js.map +0 -1
  69. package/dist/cjs/generator/bitmark/BitmarkGenerator.js +0 -2601
  70. package/dist/cjs/generator/bitmark/BitmarkGenerator.js.map +0 -1
  71. package/dist/cjs/generator/bitmark/BitmarkStringGenerator.js +0 -51
  72. package/dist/cjs/generator/bitmark/BitmarkStringGenerator.js.map +0 -1
  73. package/dist/cjs/generator/json/JsonFileGenerator.js +0 -53
  74. package/dist/cjs/generator/json/JsonFileGenerator.js.map +0 -1
  75. package/dist/cjs/generator/json/JsonGenerator.js +0 -1584
  76. package/dist/cjs/generator/json/JsonGenerator.js.map +0 -1
  77. package/dist/cjs/generator/json/JsonObjectGenerator.js +0 -51
  78. package/dist/cjs/generator/json/JsonObjectGenerator.js.map +0 -1
  79. package/dist/cjs/generator/json/JsonStringGenerator.js +0 -50
  80. package/dist/cjs/generator/json/JsonStringGenerator.js.map +0 -1
  81. package/dist/cjs/generator/text/TextGenerator.js +0 -1199
  82. package/dist/cjs/generator/text/TextGenerator.js.map +0 -1
  83. package/dist/cjs/index.js +0 -79
  84. package/dist/cjs/index.js.map +0 -1
  85. package/dist/cjs/info/InfoBuilder.js +0 -43
  86. package/dist/cjs/info/InfoBuilder.js.map +0 -1
  87. package/dist/cjs/init/init.js +0 -15
  88. package/dist/cjs/init/init.js.map +0 -1
  89. package/dist/cjs/model/ast/BreakscapedString.js +0 -3
  90. package/dist/cjs/model/ast/BreakscapedString.js.map +0 -1
  91. package/dist/cjs/model/ast/NodeType.js +0 -557
  92. package/dist/cjs/model/ast/NodeType.js.map +0 -1
  93. package/dist/cjs/model/ast/Nodes.js +0 -3
  94. package/dist/cjs/model/ast/Nodes.js.map +0 -1
  95. package/dist/cjs/model/ast/StardardString.js +0 -3
  96. package/dist/cjs/model/ast/StardardString.js.map +0 -1
  97. package/dist/cjs/model/ast/TextNodes.js +0 -3
  98. package/dist/cjs/model/ast/TextNodes.js.map +0 -1
  99. package/dist/cjs/model/config/AbstractTagConfig.js +0 -18
  100. package/dist/cjs/model/config/AbstractTagConfig.js.map +0 -1
  101. package/dist/cjs/model/config/BitConfig.js +0 -72
  102. package/dist/cjs/model/config/BitConfig.js.map +0 -1
  103. package/dist/cjs/model/config/CardSetConfig.js +0 -26
  104. package/dist/cjs/model/config/CardSetConfig.js.map +0 -1
  105. package/dist/cjs/model/config/CardVariantConfig.js +0 -32
  106. package/dist/cjs/model/config/CardVariantConfig.js.map +0 -1
  107. package/dist/cjs/model/config/MarkupTagConfig.js +0 -41
  108. package/dist/cjs/model/config/MarkupTagConfig.js.map +0 -1
  109. package/dist/cjs/model/config/PropertyTagConfig.js +0 -50
  110. package/dist/cjs/model/config/PropertyTagConfig.js.map +0 -1
  111. package/dist/cjs/model/config/ResourceTagConfig.js +0 -42
  112. package/dist/cjs/model/config/ResourceTagConfig.js.map +0 -1
  113. package/dist/cjs/model/config/ResourcesConfig.js +0 -31
  114. package/dist/cjs/model/config/ResourcesConfig.js.map +0 -1
  115. package/dist/cjs/model/config/TagConfig.js +0 -3
  116. package/dist/cjs/model/config/TagConfig.js.map +0 -1
  117. package/dist/cjs/model/config/TagsConfig.js +0 -3
  118. package/dist/cjs/model/config/TagsConfig.js.map +0 -1
  119. package/dist/cjs/model/config/TagsConfigWithInfo.js +0 -3
  120. package/dist/cjs/model/config/TagsConfigWithInfo.js.map +0 -1
  121. package/dist/cjs/model/config/_Config.js +0 -3
  122. package/dist/cjs/model/config/_Config.js.map +0 -1
  123. package/dist/cjs/model/config/enum/CardSetConfigKey.js +0 -28
  124. package/dist/cjs/model/config/enum/CardSetConfigKey.js.map +0 -1
  125. package/dist/cjs/model/config/enum/ConfigKey.js +0 -29
  126. package/dist/cjs/model/config/enum/ConfigKey.js.map +0 -1
  127. package/dist/cjs/model/config/enum/GroupConfigKey.js +0 -57
  128. package/dist/cjs/model/config/enum/GroupConfigKey.js.map +0 -1
  129. package/dist/cjs/model/config/enum/GroupConfigType.js +0 -14
  130. package/dist/cjs/model/config/enum/GroupConfigType.js.map +0 -1
  131. package/dist/cjs/model/config/enum/PropertyConfigKey.js +0 -215
  132. package/dist/cjs/model/config/enum/PropertyConfigKey.js.map +0 -1
  133. package/dist/cjs/model/config/enum/ResourceConfigKey.js +0 -40
  134. package/dist/cjs/model/config/enum/ResourceConfigKey.js.map +0 -1
  135. package/dist/cjs/model/config/enum/TagConfigKey.js +0 -26
  136. package/dist/cjs/model/config/enum/TagConfigKey.js.map +0 -1
  137. package/dist/cjs/model/enum/BitTagType.js +0 -13
  138. package/dist/cjs/model/enum/BitTagType.js.map +0 -1
  139. package/dist/cjs/model/enum/BitType.js +0 -576
  140. package/dist/cjs/model/enum/BitType.js.map +0 -1
  141. package/dist/cjs/model/enum/BitmarkGeneratorOutput.js +0 -2
  142. package/dist/cjs/model/enum/BitmarkGeneratorOutput.js.map +0 -1
  143. package/dist/cjs/model/enum/BitmarkParserType.js +0 -9
  144. package/dist/cjs/model/enum/BitmarkParserType.js.map +0 -1
  145. package/dist/cjs/model/enum/BitmarkVersion.js +0 -12
  146. package/dist/cjs/model/enum/BitmarkVersion.js.map +0 -1
  147. package/dist/cjs/model/enum/BodyBitType.js +0 -14
  148. package/dist/cjs/model/enum/BodyBitType.js.map +0 -1
  149. package/dist/cjs/model/enum/BodyTextFormat.js +0 -14
  150. package/dist/cjs/model/enum/BodyTextFormat.js.map +0 -1
  151. package/dist/cjs/model/enum/CardSetVersion.js +0 -10
  152. package/dist/cjs/model/enum/CardSetVersion.js.map +0 -1
  153. package/dist/cjs/model/enum/Count.js +0 -9
  154. package/dist/cjs/model/enum/Count.js.map +0 -1
  155. package/dist/cjs/model/enum/DeprecatedTextFormat.js +0 -9
  156. package/dist/cjs/model/enum/DeprecatedTextFormat.js.map +0 -1
  157. package/dist/cjs/model/enum/ExampleType.js +0 -11
  158. package/dist/cjs/model/enum/ExampleType.js.map +0 -1
  159. package/dist/cjs/model/enum/PropertyAstKey.js +0 -18
  160. package/dist/cjs/model/enum/PropertyAstKey.js.map +0 -1
  161. package/dist/cjs/model/enum/PropertyFormat.js +0 -14
  162. package/dist/cjs/model/enum/PropertyFormat.js.map +0 -1
  163. package/dist/cjs/model/enum/PropertyJsonKey.js +0 -14
  164. package/dist/cjs/model/enum/PropertyJsonKey.js.map +0 -1
  165. package/dist/cjs/model/enum/PropertyTag.js +0 -8
  166. package/dist/cjs/model/enum/PropertyTag.js.map +0 -1
  167. package/dist/cjs/model/enum/ResourceJsonKey.js +0 -27
  168. package/dist/cjs/model/enum/ResourceJsonKey.js.map +0 -1
  169. package/dist/cjs/model/enum/ResourceTag.js +0 -37
  170. package/dist/cjs/model/enum/ResourceTag.js.map +0 -1
  171. package/dist/cjs/model/enum/Tag.js +0 -21
  172. package/dist/cjs/model/enum/Tag.js.map +0 -1
  173. package/dist/cjs/model/enum/TextFormat.js +0 -16
  174. package/dist/cjs/model/enum/TextFormat.js.map +0 -1
  175. package/dist/cjs/model/enum/TextLocation.js +0 -15
  176. package/dist/cjs/model/enum/TextLocation.js.map +0 -1
  177. package/dist/cjs/model/enum/TextMarkType.js +0 -54
  178. package/dist/cjs/model/enum/TextMarkType.js.map +0 -1
  179. package/dist/cjs/model/enum/TextNodeType.js +0 -35
  180. package/dist/cjs/model/enum/TextNodeType.js.map +0 -1
  181. package/dist/cjs/model/enum/TextSection.js +0 -18
  182. package/dist/cjs/model/enum/TextSection.js.map +0 -1
  183. package/dist/cjs/model/info/enum/InfoFormat.js +0 -11
  184. package/dist/cjs/model/info/enum/InfoFormat.js.map +0 -1
  185. package/dist/cjs/model/info/enum/InfoType.js +0 -12
  186. package/dist/cjs/model/info/enum/InfoType.js.map +0 -1
  187. package/dist/cjs/model/json/BitJson.js +0 -3
  188. package/dist/cjs/model/json/BitJson.js.map +0 -1
  189. package/dist/cjs/model/json/BitWrapperJson.js +0 -3
  190. package/dist/cjs/model/json/BitWrapperJson.js.map +0 -1
  191. package/dist/cjs/model/json/BodyBitJson.js +0 -3
  192. package/dist/cjs/model/json/BodyBitJson.js.map +0 -1
  193. package/dist/cjs/model/json/ParserJson.js +0 -3
  194. package/dist/cjs/model/json/ParserJson.js.map +0 -1
  195. package/dist/cjs/model/json/ResourceJson.js +0 -3
  196. package/dist/cjs/model/json/ResourceJson.js.map +0 -1
  197. package/dist/cjs/model/parser/ParserData.js +0 -3
  198. package/dist/cjs/model/parser/ParserData.js.map +0 -1
  199. package/dist/cjs/model/parser/ParserError.js +0 -3
  200. package/dist/cjs/model/parser/ParserError.js.map +0 -1
  201. package/dist/cjs/model/parser/ParserInfo.js +0 -3
  202. package/dist/cjs/model/parser/ParserInfo.js.map +0 -1
  203. package/dist/cjs/model/parser/ParserLocation.js +0 -3
  204. package/dist/cjs/model/parser/ParserLocation.js.map +0 -1
  205. package/dist/cjs/model/parser/ParserLocationRange.js +0 -3
  206. package/dist/cjs/model/parser/ParserLocationRange.js.map +0 -1
  207. package/dist/cjs/model/parser/TagValidationData.js +0 -3
  208. package/dist/cjs/model/parser/TagValidationData.js.map +0 -1
  209. package/dist/cjs/parser/bitmark/BitmarkParser.js +0 -25
  210. package/dist/cjs/parser/bitmark/BitmarkParser.js.map +0 -1
  211. package/dist/cjs/parser/bitmark/peg/BitmarkPegParser.js +0 -7
  212. package/dist/cjs/parser/bitmark/peg/BitmarkPegParser.js.map +0 -1
  213. package/dist/cjs/parser/bitmark/peg/BitmarkPegParserHelper.js +0 -614
  214. package/dist/cjs/parser/bitmark/peg/BitmarkPegParserHelper.js.map +0 -1
  215. package/dist/cjs/parser/bitmark/peg/BitmarkPegParserProcessor.js +0 -716
  216. package/dist/cjs/parser/bitmark/peg/BitmarkPegParserProcessor.js.map +0 -1
  217. package/dist/cjs/parser/bitmark/peg/BitmarkPegParserTypes.js +0 -69
  218. package/dist/cjs/parser/bitmark/peg/BitmarkPegParserTypes.js.map +0 -1
  219. package/dist/cjs/parser/bitmark/peg/BitmarkPegParserValidator.js +0 -745
  220. package/dist/cjs/parser/bitmark/peg/BitmarkPegParserValidator.js.map +0 -1
  221. package/dist/cjs/parser/bitmark/peg/PeggyGrammarLocation.js +0 -82
  222. package/dist/cjs/parser/bitmark/peg/PeggyGrammarLocation.js.map +0 -1
  223. package/dist/cjs/parser/bitmark/peg/contentProcessors/BodyContentProcessor.js +0 -260
  224. package/dist/cjs/parser/bitmark/peg/contentProcessors/BodyContentProcessor.js.map +0 -1
  225. package/dist/cjs/parser/bitmark/peg/contentProcessors/BookChainContentProcessor.js +0 -50
  226. package/dist/cjs/parser/bitmark/peg/contentProcessors/BookChainContentProcessor.js.map +0 -1
  227. package/dist/cjs/parser/bitmark/peg/contentProcessors/CardContentProcessor.js +0 -885
  228. package/dist/cjs/parser/bitmark/peg/contentProcessors/CardContentProcessor.js.map +0 -1
  229. package/dist/cjs/parser/bitmark/peg/contentProcessors/ClozeTagContentProcessor.js +0 -27
  230. package/dist/cjs/parser/bitmark/peg/contentProcessors/ClozeTagContentProcessor.js.map +0 -1
  231. package/dist/cjs/parser/bitmark/peg/contentProcessors/ContentProcessorUtils.js +0 -61
  232. package/dist/cjs/parser/bitmark/peg/contentProcessors/ContentProcessorUtils.js.map +0 -1
  233. package/dist/cjs/parser/bitmark/peg/contentProcessors/DefaultTagContentProcessor.js +0 -63
  234. package/dist/cjs/parser/bitmark/peg/contentProcessors/DefaultTagContentProcessor.js.map +0 -1
  235. package/dist/cjs/parser/bitmark/peg/contentProcessors/ExampleTagContentProcessor.js +0 -161
  236. package/dist/cjs/parser/bitmark/peg/contentProcessors/ExampleTagContentProcessor.js.map +0 -1
  237. package/dist/cjs/parser/bitmark/peg/contentProcessors/FooterContentProcessor.js +0 -55
  238. package/dist/cjs/parser/bitmark/peg/contentProcessors/FooterContentProcessor.js.map +0 -1
  239. package/dist/cjs/parser/bitmark/peg/contentProcessors/GapChainContentProcessor.js +0 -31
  240. package/dist/cjs/parser/bitmark/peg/contentProcessors/GapChainContentProcessor.js.map +0 -1
  241. package/dist/cjs/parser/bitmark/peg/contentProcessors/ImageSourceChainContentProcessor.js +0 -59
  242. package/dist/cjs/parser/bitmark/peg/contentProcessors/ImageSourceChainContentProcessor.js.map +0 -1
  243. package/dist/cjs/parser/bitmark/peg/contentProcessors/InternalCommentTagContentProcessor.js +0 -16
  244. package/dist/cjs/parser/bitmark/peg/contentProcessors/InternalCommentTagContentProcessor.js.map +0 -1
  245. package/dist/cjs/parser/bitmark/peg/contentProcessors/ItemLeadChainContentProcessor.js +0 -29
  246. package/dist/cjs/parser/bitmark/peg/contentProcessors/ItemLeadChainContentProcessor.js.map +0 -1
  247. package/dist/cjs/parser/bitmark/peg/contentProcessors/ItemLeadTagContentProcessor.js +0 -20
  248. package/dist/cjs/parser/bitmark/peg/contentProcessors/ItemLeadTagContentProcessor.js.map +0 -1
  249. package/dist/cjs/parser/bitmark/peg/contentProcessors/MarkChainContentProcessor.js +0 -45
  250. package/dist/cjs/parser/bitmark/peg/contentProcessors/MarkChainContentProcessor.js.map +0 -1
  251. package/dist/cjs/parser/bitmark/peg/contentProcessors/MarkConfigChainContentProcessor.js +0 -44
  252. package/dist/cjs/parser/bitmark/peg/contentProcessors/MarkConfigChainContentProcessor.js.map +0 -1
  253. package/dist/cjs/parser/bitmark/peg/contentProcessors/MarkTagContentProcessor.js +0 -11
  254. package/dist/cjs/parser/bitmark/peg/contentProcessors/MarkTagContentProcessor.js.map +0 -1
  255. package/dist/cjs/parser/bitmark/peg/contentProcessors/PersonChainContentProcessor.js +0 -57
  256. package/dist/cjs/parser/bitmark/peg/contentProcessors/PersonChainContentProcessor.js.map +0 -1
  257. package/dist/cjs/parser/bitmark/peg/contentProcessors/PropertyContentProcessor.js +0 -158
  258. package/dist/cjs/parser/bitmark/peg/contentProcessors/PropertyContentProcessor.js.map +0 -1
  259. package/dist/cjs/parser/bitmark/peg/contentProcessors/RatingLevelChainContentProcessor.js +0 -37
  260. package/dist/cjs/parser/bitmark/peg/contentProcessors/RatingLevelChainContentProcessor.js.map +0 -1
  261. package/dist/cjs/parser/bitmark/peg/contentProcessors/ReferenceTagContentProcessor.js +0 -24
  262. package/dist/cjs/parser/bitmark/peg/contentProcessors/ReferenceTagContentProcessor.js.map +0 -1
  263. package/dist/cjs/parser/bitmark/peg/contentProcessors/ResourceContentProcessor.js +0 -163
  264. package/dist/cjs/parser/bitmark/peg/contentProcessors/ResourceContentProcessor.js.map +0 -1
  265. package/dist/cjs/parser/bitmark/peg/contentProcessors/ServingsChainContentProcessor.js +0 -27
  266. package/dist/cjs/parser/bitmark/peg/contentProcessors/ServingsChainContentProcessor.js.map +0 -1
  267. package/dist/cjs/parser/bitmark/peg/contentProcessors/TechnicalTermChainContentProcessor.js +0 -28
  268. package/dist/cjs/parser/bitmark/peg/contentProcessors/TechnicalTermChainContentProcessor.js.map +0 -1
  269. package/dist/cjs/parser/bitmark/peg/contentProcessors/TitleTagContentProcessor.js +0 -53
  270. package/dist/cjs/parser/bitmark/peg/contentProcessors/TitleTagContentProcessor.js.map +0 -1
  271. package/dist/cjs/parser/bitmark/peg/contentProcessors/TrueFalseChainContentProcessor.js +0 -203
  272. package/dist/cjs/parser/bitmark/peg/contentProcessors/TrueFalseChainContentProcessor.js.map +0 -1
  273. package/dist/cjs/parser/bitmark/peg/contentProcessors/TrueFalseTagContentProcessor.js +0 -24
  274. package/dist/cjs/parser/bitmark/peg/contentProcessors/TrueFalseTagContentProcessor.js.map +0 -1
  275. package/dist/cjs/parser/json/JsonParser.js +0 -270
  276. package/dist/cjs/parser/json/JsonParser.js.map +0 -1
  277. package/dist/cjs/parser/text/TextParser.js +0 -148
  278. package/dist/cjs/parser/text/TextParser.js.map +0 -1
  279. package/dist/cjs/parser/text/peg/TextPegParser.js +0 -7
  280. package/dist/cjs/parser/text/peg/TextPegParser.js.map +0 -1
  281. package/dist/cjs/utils/ArrayUtils.js +0 -43
  282. package/dist/cjs/utils/ArrayUtils.js.map +0 -1
  283. package/dist/cjs/utils/BitUtils.js +0 -75
  284. package/dist/cjs/utils/BitUtils.js.map +0 -1
  285. package/dist/cjs/utils/BooleanUtils.js +0 -62
  286. package/dist/cjs/utils/BooleanUtils.js.map +0 -1
  287. package/dist/cjs/utils/FileUtils.js +0 -75
  288. package/dist/cjs/utils/FileUtils.js.map +0 -1
  289. package/dist/cjs/utils/NumberUtils.js +0 -62
  290. package/dist/cjs/utils/NumberUtils.js.map +0 -1
  291. package/dist/cjs/utils/ObjectUtils.js +0 -417
  292. package/dist/cjs/utils/ObjectUtils.js.map +0 -1
  293. package/dist/cjs/utils/StringUtils.js +0 -183
  294. package/dist/cjs/utils/StringUtils.js.map +0 -1
  295. package/dist/cjs/utils/UrlUtils.js +0 -37
  296. package/dist/cjs/utils/UrlUtils.js.map +0 -1
  297. package/dist/cjs/utils/env/Env.js +0 -131
  298. package/dist/cjs/utils/env/Env.js.map +0 -1
  299. package/dist/cjs/utils/env/Environment.js +0 -15
  300. package/dist/cjs/utils/env/Environment.js.map +0 -1
  301. package/dist/cjs/utils/env/Os.js +0 -14
  302. package/dist/cjs/utils/env/Os.js.map +0 -1
  303. package/dist/cjs/utils/env/Version.js +0 -12
  304. package/dist/cjs/utils/env/Version.js.map +0 -1
  305. package/dist/cjs/utils/env/userAgent.js +0 -88
  306. package/dist/cjs/utils/env/userAgent.js.map +0 -1
  307. package/dist/cjs/utils/polyfill/fs.js +0 -14
  308. package/dist/cjs/utils/polyfill/fs.js.map +0 -1
  309. package/dist/esm/BitmarkParserGenerator.js +0 -735
  310. package/dist/esm/BitmarkParserGenerator.js.map +0 -1
  311. package/dist/esm/ast/Ast.js +0 -217
  312. package/dist/esm/ast/Ast.js.map +0 -1
  313. package/dist/esm/ast/BaseBuilder.js +0 -190
  314. package/dist/esm/ast/BaseBuilder.js.map +0 -1
  315. package/dist/esm/ast/Builder.js +0 -1775
  316. package/dist/esm/ast/Builder.js.map +0 -1
  317. package/dist/esm/ast/ResourceBuilder.js +0 -960
  318. package/dist/esm/ast/ResourceBuilder.js.map +0 -1
  319. package/dist/esm/ast/rules/NodeValidator.js +0 -181
  320. package/dist/esm/ast/rules/NodeValidator.js.map +0 -1
  321. package/dist/esm/ast/writer/FileWriter.js +0 -80
  322. package/dist/esm/ast/writer/FileWriter.js.map +0 -1
  323. package/dist/esm/ast/writer/StreamWriter.js +0 -83
  324. package/dist/esm/ast/writer/StreamWriter.js.map +0 -1
  325. package/dist/esm/ast/writer/StringWriter.js +0 -112
  326. package/dist/esm/ast/writer/StringWriter.js.map +0 -1
  327. package/dist/esm/ast/writer/Writer.js +0 -2
  328. package/dist/esm/ast/writer/Writer.js.map +0 -1
  329. package/dist/esm/breakscaping/Breakscape.js +0 -77
  330. package/dist/esm/breakscaping/Breakscape.js.map +0 -1
  331. package/dist/esm/breakscaping/BreakscapeLoop.js +0 -302
  332. package/dist/esm/breakscaping/BreakscapeLoop.js.map +0 -1
  333. package/dist/esm/breakscaping/BreakscapeOptions.js +0 -2
  334. package/dist/esm/breakscaping/BreakscapeOptions.js.map +0 -1
  335. package/dist/esm/breakscaping/BreakscapeRegex.js +0 -177
  336. package/dist/esm/breakscaping/BreakscapeRegex.js.map +0 -1
  337. package/dist/esm/breakscaping/RegexConfigs.js +0 -35
  338. package/dist/esm/breakscaping/RegexConfigs.js.map +0 -1
  339. package/dist/esm/config/Config.js +0 -349
  340. package/dist/esm/config/Config.js.map +0 -1
  341. package/dist/esm/config/ConfigHydrator.js +0 -158
  342. package/dist/esm/config/ConfigHydrator.js.map +0 -1
  343. package/dist/esm/config/raw/bits.js +0 -2612
  344. package/dist/esm/config/raw/bits.js.map +0 -1
  345. package/dist/esm/config/raw/cardSets.js +0 -546
  346. package/dist/esm/config/raw/cardSets.js.map +0 -1
  347. package/dist/esm/config/raw/groups.js +0 -1179
  348. package/dist/esm/config/raw/groups.js.map +0 -1
  349. package/dist/esm/config/raw/properties.js +0 -1003
  350. package/dist/esm/config/raw/properties.js.map +0 -1
  351. package/dist/esm/config/raw/resources.js +0 -100
  352. package/dist/esm/config/raw/resources.js.map +0 -1
  353. package/dist/esm/config/raw/tags.js +0 -45
  354. package/dist/esm/config/raw/tags.js.map +0 -1
  355. package/dist/esm/generated/build-info.js +0 -10
  356. package/dist/esm/generated/build-info.js.map +0 -1
  357. package/dist/esm/generated/parser/bitmark/bitmark-peggy-parser.js +0 -3163
  358. package/dist/esm/generated/parser/bitmark/bitmark-peggy-parser.js.map +0 -1
  359. package/dist/esm/generated/parser/text/text-peggy-parser.js +0 -9654
  360. package/dist/esm/generated/parser/text/text-peggy-parser.js.map +0 -1
  361. package/dist/esm/generator/AstWalkerGenerator.js +0 -83
  362. package/dist/esm/generator/AstWalkerGenerator.js.map +0 -1
  363. package/dist/esm/generator/Generator.js +0 -2
  364. package/dist/esm/generator/Generator.js.map +0 -1
  365. package/dist/esm/generator/bitmark/BitmarkFileGenerator.js +0 -46
  366. package/dist/esm/generator/bitmark/BitmarkFileGenerator.js.map +0 -1
  367. package/dist/esm/generator/bitmark/BitmarkGenerator.js +0 -2598
  368. package/dist/esm/generator/bitmark/BitmarkGenerator.js.map +0 -1
  369. package/dist/esm/generator/bitmark/BitmarkStringGenerator.js +0 -48
  370. package/dist/esm/generator/bitmark/BitmarkStringGenerator.js.map +0 -1
  371. package/dist/esm/generator/json/JsonFileGenerator.js +0 -50
  372. package/dist/esm/generator/json/JsonFileGenerator.js.map +0 -1
  373. package/dist/esm/generator/json/JsonGenerator.js +0 -1578
  374. package/dist/esm/generator/json/JsonGenerator.js.map +0 -1
  375. package/dist/esm/generator/json/JsonObjectGenerator.js +0 -48
  376. package/dist/esm/generator/json/JsonObjectGenerator.js.map +0 -1
  377. package/dist/esm/generator/json/JsonStringGenerator.js +0 -47
  378. package/dist/esm/generator/json/JsonStringGenerator.js.map +0 -1
  379. package/dist/esm/generator/text/TextGenerator.js +0 -1196
  380. package/dist/esm/generator/text/TextGenerator.js.map +0 -1
  381. package/dist/esm/index.js +0 -49
  382. package/dist/esm/index.js.map +0 -1
  383. package/dist/esm/info/InfoBuilder.js +0 -40
  384. package/dist/esm/info/InfoBuilder.js.map +0 -1
  385. package/dist/esm/init/init.js +0 -13
  386. package/dist/esm/init/init.js.map +0 -1
  387. package/dist/esm/model/ast/BreakscapedString.js +0 -2
  388. package/dist/esm/model/ast/BreakscapedString.js.map +0 -1
  389. package/dist/esm/model/ast/NodeType.js +0 -554
  390. package/dist/esm/model/ast/NodeType.js.map +0 -1
  391. package/dist/esm/model/ast/Nodes.js +0 -2
  392. package/dist/esm/model/ast/Nodes.js.map +0 -1
  393. package/dist/esm/model/ast/StardardString.js +0 -2
  394. package/dist/esm/model/ast/StardardString.js.map +0 -1
  395. package/dist/esm/model/ast/TextNodes.js +0 -2
  396. package/dist/esm/model/ast/TextNodes.js.map +0 -1
  397. package/dist/esm/model/config/AbstractTagConfig.js +0 -15
  398. package/dist/esm/model/config/AbstractTagConfig.js.map +0 -1
  399. package/dist/esm/model/config/BitConfig.js +0 -69
  400. package/dist/esm/model/config/BitConfig.js.map +0 -1
  401. package/dist/esm/model/config/CardSetConfig.js +0 -23
  402. package/dist/esm/model/config/CardSetConfig.js.map +0 -1
  403. package/dist/esm/model/config/CardVariantConfig.js +0 -29
  404. package/dist/esm/model/config/CardVariantConfig.js.map +0 -1
  405. package/dist/esm/model/config/MarkupTagConfig.js +0 -38
  406. package/dist/esm/model/config/MarkupTagConfig.js.map +0 -1
  407. package/dist/esm/model/config/PropertyTagConfig.js +0 -47
  408. package/dist/esm/model/config/PropertyTagConfig.js.map +0 -1
  409. package/dist/esm/model/config/ResourceTagConfig.js +0 -39
  410. package/dist/esm/model/config/ResourceTagConfig.js.map +0 -1
  411. package/dist/esm/model/config/ResourcesConfig.js +0 -28
  412. package/dist/esm/model/config/ResourcesConfig.js.map +0 -1
  413. package/dist/esm/model/config/TagConfig.js +0 -2
  414. package/dist/esm/model/config/TagConfig.js.map +0 -1
  415. package/dist/esm/model/config/TagsConfig.js +0 -2
  416. package/dist/esm/model/config/TagsConfig.js.map +0 -1
  417. package/dist/esm/model/config/TagsConfigWithInfo.js +0 -2
  418. package/dist/esm/model/config/TagsConfigWithInfo.js.map +0 -1
  419. package/dist/esm/model/config/_Config.js +0 -2
  420. package/dist/esm/model/config/_Config.js.map +0 -1
  421. package/dist/esm/model/config/enum/CardSetConfigKey.js +0 -25
  422. package/dist/esm/model/config/enum/CardSetConfigKey.js.map +0 -1
  423. package/dist/esm/model/config/enum/ConfigKey.js +0 -26
  424. package/dist/esm/model/config/enum/ConfigKey.js.map +0 -1
  425. package/dist/esm/model/config/enum/GroupConfigKey.js +0 -53
  426. package/dist/esm/model/config/enum/GroupConfigKey.js.map +0 -1
  427. package/dist/esm/model/config/enum/GroupConfigType.js +0 -11
  428. package/dist/esm/model/config/enum/GroupConfigType.js.map +0 -1
  429. package/dist/esm/model/config/enum/PropertyConfigKey.js +0 -211
  430. package/dist/esm/model/config/enum/PropertyConfigKey.js.map +0 -1
  431. package/dist/esm/model/config/enum/ResourceConfigKey.js +0 -36
  432. package/dist/esm/model/config/enum/ResourceConfigKey.js.map +0 -1
  433. package/dist/esm/model/config/enum/TagConfigKey.js +0 -22
  434. package/dist/esm/model/config/enum/TagConfigKey.js.map +0 -1
  435. package/dist/esm/model/enum/BitTagType.js +0 -10
  436. package/dist/esm/model/enum/BitTagType.js.map +0 -1
  437. package/dist/esm/model/enum/BitType.js +0 -573
  438. package/dist/esm/model/enum/BitType.js.map +0 -1
  439. package/dist/esm/model/enum/BitmarkGeneratorOutput.js +0 -2
  440. package/dist/esm/model/enum/BitmarkGeneratorOutput.js.map +0 -1
  441. package/dist/esm/model/enum/BitmarkParserType.js +0 -6
  442. package/dist/esm/model/enum/BitmarkParserType.js.map +0 -1
  443. package/dist/esm/model/enum/BitmarkVersion.js +0 -8
  444. package/dist/esm/model/enum/BitmarkVersion.js.map +0 -1
  445. package/dist/esm/model/enum/BodyBitType.js +0 -11
  446. package/dist/esm/model/enum/BodyBitType.js.map +0 -1
  447. package/dist/esm/model/enum/BodyTextFormat.js +0 -11
  448. package/dist/esm/model/enum/BodyTextFormat.js.map +0 -1
  449. package/dist/esm/model/enum/CardSetVersion.js +0 -7
  450. package/dist/esm/model/enum/CardSetVersion.js.map +0 -1
  451. package/dist/esm/model/enum/Count.js +0 -6
  452. package/dist/esm/model/enum/Count.js.map +0 -1
  453. package/dist/esm/model/enum/DeprecatedTextFormat.js +0 -6
  454. package/dist/esm/model/enum/DeprecatedTextFormat.js.map +0 -1
  455. package/dist/esm/model/enum/ExampleType.js +0 -8
  456. package/dist/esm/model/enum/ExampleType.js.map +0 -1
  457. package/dist/esm/model/enum/PropertyAstKey.js +0 -15
  458. package/dist/esm/model/enum/PropertyAstKey.js.map +0 -1
  459. package/dist/esm/model/enum/PropertyFormat.js +0 -11
  460. package/dist/esm/model/enum/PropertyFormat.js.map +0 -1
  461. package/dist/esm/model/enum/PropertyJsonKey.js +0 -11
  462. package/dist/esm/model/enum/PropertyJsonKey.js.map +0 -1
  463. package/dist/esm/model/enum/PropertyTag.js +0 -5
  464. package/dist/esm/model/enum/PropertyTag.js.map +0 -1
  465. package/dist/esm/model/enum/ResourceJsonKey.js +0 -24
  466. package/dist/esm/model/enum/ResourceJsonKey.js.map +0 -1
  467. package/dist/esm/model/enum/ResourceTag.js +0 -34
  468. package/dist/esm/model/enum/ResourceTag.js.map +0 -1
  469. package/dist/esm/model/enum/Tag.js +0 -18
  470. package/dist/esm/model/enum/Tag.js.map +0 -1
  471. package/dist/esm/model/enum/TextFormat.js +0 -13
  472. package/dist/esm/model/enum/TextFormat.js.map +0 -1
  473. package/dist/esm/model/enum/TextLocation.js +0 -12
  474. package/dist/esm/model/enum/TextLocation.js.map +0 -1
  475. package/dist/esm/model/enum/TextMarkType.js +0 -51
  476. package/dist/esm/model/enum/TextMarkType.js.map +0 -1
  477. package/dist/esm/model/enum/TextNodeType.js +0 -32
  478. package/dist/esm/model/enum/TextNodeType.js.map +0 -1
  479. package/dist/esm/model/enum/TextSection.js +0 -15
  480. package/dist/esm/model/enum/TextSection.js.map +0 -1
  481. package/dist/esm/model/info/enum/InfoFormat.js +0 -8
  482. package/dist/esm/model/info/enum/InfoFormat.js.map +0 -1
  483. package/dist/esm/model/info/enum/InfoType.js +0 -9
  484. package/dist/esm/model/info/enum/InfoType.js.map +0 -1
  485. package/dist/esm/model/json/BitJson.js +0 -2
  486. package/dist/esm/model/json/BitJson.js.map +0 -1
  487. package/dist/esm/model/json/BitWrapperJson.js +0 -2
  488. package/dist/esm/model/json/BitWrapperJson.js.map +0 -1
  489. package/dist/esm/model/json/BodyBitJson.js +0 -2
  490. package/dist/esm/model/json/BodyBitJson.js.map +0 -1
  491. package/dist/esm/model/json/ParserJson.js +0 -2
  492. package/dist/esm/model/json/ParserJson.js.map +0 -1
  493. package/dist/esm/model/json/ResourceJson.js +0 -2
  494. package/dist/esm/model/json/ResourceJson.js.map +0 -1
  495. package/dist/esm/model/parser/ParserData.js +0 -2
  496. package/dist/esm/model/parser/ParserData.js.map +0 -1
  497. package/dist/esm/model/parser/ParserError.js +0 -2
  498. package/dist/esm/model/parser/ParserError.js.map +0 -1
  499. package/dist/esm/model/parser/ParserInfo.js +0 -2
  500. package/dist/esm/model/parser/ParserInfo.js.map +0 -1
  501. package/dist/esm/model/parser/ParserLocation.js +0 -2
  502. package/dist/esm/model/parser/ParserLocation.js.map +0 -1
  503. package/dist/esm/model/parser/ParserLocationRange.js +0 -2
  504. package/dist/esm/model/parser/ParserLocationRange.js.map +0 -1
  505. package/dist/esm/model/parser/TagValidationData.js +0 -2
  506. package/dist/esm/model/parser/TagValidationData.js.map +0 -1
  507. package/dist/esm/parser/bitmark/BitmarkParser.js +0 -22
  508. package/dist/esm/parser/bitmark/BitmarkParser.js.map +0 -1
  509. package/dist/esm/parser/bitmark/peg/BitmarkPegParser.js +0 -4
  510. package/dist/esm/parser/bitmark/peg/BitmarkPegParser.js.map +0 -1
  511. package/dist/esm/parser/bitmark/peg/BitmarkPegParserHelper.js +0 -611
  512. package/dist/esm/parser/bitmark/peg/BitmarkPegParserHelper.js.map +0 -1
  513. package/dist/esm/parser/bitmark/peg/BitmarkPegParserProcessor.js +0 -713
  514. package/dist/esm/parser/bitmark/peg/BitmarkPegParserProcessor.js.map +0 -1
  515. package/dist/esm/parser/bitmark/peg/BitmarkPegParserTypes.js +0 -59
  516. package/dist/esm/parser/bitmark/peg/BitmarkPegParserTypes.js.map +0 -1
  517. package/dist/esm/parser/bitmark/peg/BitmarkPegParserValidator.js +0 -742
  518. package/dist/esm/parser/bitmark/peg/BitmarkPegParserValidator.js.map +0 -1
  519. package/dist/esm/parser/bitmark/peg/PeggyGrammarLocation.js +0 -79
  520. package/dist/esm/parser/bitmark/peg/PeggyGrammarLocation.js.map +0 -1
  521. package/dist/esm/parser/bitmark/peg/contentProcessors/BodyContentProcessor.js +0 -257
  522. package/dist/esm/parser/bitmark/peg/contentProcessors/BodyContentProcessor.js.map +0 -1
  523. package/dist/esm/parser/bitmark/peg/contentProcessors/BookChainContentProcessor.js +0 -48
  524. package/dist/esm/parser/bitmark/peg/contentProcessors/BookChainContentProcessor.js.map +0 -1
  525. package/dist/esm/parser/bitmark/peg/contentProcessors/CardContentProcessor.js +0 -883
  526. package/dist/esm/parser/bitmark/peg/contentProcessors/CardContentProcessor.js.map +0 -1
  527. package/dist/esm/parser/bitmark/peg/contentProcessors/ClozeTagContentProcessor.js +0 -25
  528. package/dist/esm/parser/bitmark/peg/contentProcessors/ClozeTagContentProcessor.js.map +0 -1
  529. package/dist/esm/parser/bitmark/peg/contentProcessors/ContentProcessorUtils.js +0 -58
  530. package/dist/esm/parser/bitmark/peg/contentProcessors/ContentProcessorUtils.js.map +0 -1
  531. package/dist/esm/parser/bitmark/peg/contentProcessors/DefaultTagContentProcessor.js +0 -61
  532. package/dist/esm/parser/bitmark/peg/contentProcessors/DefaultTagContentProcessor.js.map +0 -1
  533. package/dist/esm/parser/bitmark/peg/contentProcessors/ExampleTagContentProcessor.js +0 -159
  534. package/dist/esm/parser/bitmark/peg/contentProcessors/ExampleTagContentProcessor.js.map +0 -1
  535. package/dist/esm/parser/bitmark/peg/contentProcessors/FooterContentProcessor.js +0 -52
  536. package/dist/esm/parser/bitmark/peg/contentProcessors/FooterContentProcessor.js.map +0 -1
  537. package/dist/esm/parser/bitmark/peg/contentProcessors/GapChainContentProcessor.js +0 -29
  538. package/dist/esm/parser/bitmark/peg/contentProcessors/GapChainContentProcessor.js.map +0 -1
  539. package/dist/esm/parser/bitmark/peg/contentProcessors/ImageSourceChainContentProcessor.js +0 -57
  540. package/dist/esm/parser/bitmark/peg/contentProcessors/ImageSourceChainContentProcessor.js.map +0 -1
  541. package/dist/esm/parser/bitmark/peg/contentProcessors/InternalCommentTagContentProcessor.js +0 -14
  542. package/dist/esm/parser/bitmark/peg/contentProcessors/InternalCommentTagContentProcessor.js.map +0 -1
  543. package/dist/esm/parser/bitmark/peg/contentProcessors/ItemLeadChainContentProcessor.js +0 -27
  544. package/dist/esm/parser/bitmark/peg/contentProcessors/ItemLeadChainContentProcessor.js.map +0 -1
  545. package/dist/esm/parser/bitmark/peg/contentProcessors/ItemLeadTagContentProcessor.js +0 -18
  546. package/dist/esm/parser/bitmark/peg/contentProcessors/ItemLeadTagContentProcessor.js.map +0 -1
  547. package/dist/esm/parser/bitmark/peg/contentProcessors/MarkChainContentProcessor.js +0 -43
  548. package/dist/esm/parser/bitmark/peg/contentProcessors/MarkChainContentProcessor.js.map +0 -1
  549. package/dist/esm/parser/bitmark/peg/contentProcessors/MarkConfigChainContentProcessor.js +0 -42
  550. package/dist/esm/parser/bitmark/peg/contentProcessors/MarkConfigChainContentProcessor.js.map +0 -1
  551. package/dist/esm/parser/bitmark/peg/contentProcessors/MarkTagContentProcessor.js +0 -9
  552. package/dist/esm/parser/bitmark/peg/contentProcessors/MarkTagContentProcessor.js.map +0 -1
  553. package/dist/esm/parser/bitmark/peg/contentProcessors/PersonChainContentProcessor.js +0 -55
  554. package/dist/esm/parser/bitmark/peg/contentProcessors/PersonChainContentProcessor.js.map +0 -1
  555. package/dist/esm/parser/bitmark/peg/contentProcessors/PropertyContentProcessor.js +0 -156
  556. package/dist/esm/parser/bitmark/peg/contentProcessors/PropertyContentProcessor.js.map +0 -1
  557. package/dist/esm/parser/bitmark/peg/contentProcessors/RatingLevelChainContentProcessor.js +0 -35
  558. package/dist/esm/parser/bitmark/peg/contentProcessors/RatingLevelChainContentProcessor.js.map +0 -1
  559. package/dist/esm/parser/bitmark/peg/contentProcessors/ReferenceTagContentProcessor.js +0 -22
  560. package/dist/esm/parser/bitmark/peg/contentProcessors/ReferenceTagContentProcessor.js.map +0 -1
  561. package/dist/esm/parser/bitmark/peg/contentProcessors/ResourceContentProcessor.js +0 -160
  562. package/dist/esm/parser/bitmark/peg/contentProcessors/ResourceContentProcessor.js.map +0 -1
  563. package/dist/esm/parser/bitmark/peg/contentProcessors/ServingsChainContentProcessor.js +0 -25
  564. package/dist/esm/parser/bitmark/peg/contentProcessors/ServingsChainContentProcessor.js.map +0 -1
  565. package/dist/esm/parser/bitmark/peg/contentProcessors/TechnicalTermChainContentProcessor.js +0 -26
  566. package/dist/esm/parser/bitmark/peg/contentProcessors/TechnicalTermChainContentProcessor.js.map +0 -1
  567. package/dist/esm/parser/bitmark/peg/contentProcessors/TitleTagContentProcessor.js +0 -50
  568. package/dist/esm/parser/bitmark/peg/contentProcessors/TitleTagContentProcessor.js.map +0 -1
  569. package/dist/esm/parser/bitmark/peg/contentProcessors/TrueFalseChainContentProcessor.js +0 -201
  570. package/dist/esm/parser/bitmark/peg/contentProcessors/TrueFalseChainContentProcessor.js.map +0 -1
  571. package/dist/esm/parser/bitmark/peg/contentProcessors/TrueFalseTagContentProcessor.js +0 -22
  572. package/dist/esm/parser/bitmark/peg/contentProcessors/TrueFalseTagContentProcessor.js.map +0 -1
  573. package/dist/esm/parser/json/JsonParser.js +0 -267
  574. package/dist/esm/parser/json/JsonParser.js.map +0 -1
  575. package/dist/esm/parser/text/TextParser.js +0 -145
  576. package/dist/esm/parser/text/TextParser.js.map +0 -1
  577. package/dist/esm/parser/text/peg/TextPegParser.js +0 -4
  578. package/dist/esm/parser/text/peg/TextPegParser.js.map +0 -1
  579. package/dist/esm/utils/ArrayUtils.js +0 -40
  580. package/dist/esm/utils/ArrayUtils.js.map +0 -1
  581. package/dist/esm/utils/BitUtils.js +0 -72
  582. package/dist/esm/utils/BitUtils.js.map +0 -1
  583. package/dist/esm/utils/BooleanUtils.js +0 -59
  584. package/dist/esm/utils/BooleanUtils.js.map +0 -1
  585. package/dist/esm/utils/FileUtils.js +0 -36
  586. package/dist/esm/utils/FileUtils.js.map +0 -1
  587. package/dist/esm/utils/NumberUtils.js +0 -59
  588. package/dist/esm/utils/NumberUtils.js.map +0 -1
  589. package/dist/esm/utils/ObjectUtils.js +0 -411
  590. package/dist/esm/utils/ObjectUtils.js.map +0 -1
  591. package/dist/esm/utils/StringUtils.js +0 -180
  592. package/dist/esm/utils/StringUtils.js.map +0 -1
  593. package/dist/esm/utils/UrlUtils.js +0 -34
  594. package/dist/esm/utils/UrlUtils.js.map +0 -1
  595. package/dist/esm/utils/env/Env.js +0 -127
  596. package/dist/esm/utils/env/Env.js.map +0 -1
  597. package/dist/esm/utils/env/Environment.js +0 -12
  598. package/dist/esm/utils/env/Environment.js.map +0 -1
  599. package/dist/esm/utils/env/Os.js +0 -11
  600. package/dist/esm/utils/env/Os.js.map +0 -1
  601. package/dist/esm/utils/env/Version.js +0 -9
  602. package/dist/esm/utils/env/Version.js.map +0 -1
  603. package/dist/esm/utils/env/userAgent.js +0 -86
  604. package/dist/esm/utils/env/userAgent.js.map +0 -1
  605. package/dist/esm/utils/polyfill/fs.js +0 -10
  606. package/dist/esm/utils/polyfill/fs.js.map +0 -1
  607. package/dist/types/BitmarkParserGenerator.d.ts +0 -478
  608. package/dist/types/BitmarkParserGenerator.d.ts.map +0 -1
  609. package/dist/types/ast/Ast.d.ts +0 -137
  610. package/dist/types/ast/Ast.d.ts.map +0 -1
  611. package/dist/types/ast/BaseBuilder.d.ts +0 -64
  612. package/dist/types/ast/BaseBuilder.d.ts.map +0 -1
  613. package/dist/types/ast/Builder.d.ts +0 -692
  614. package/dist/types/ast/Builder.d.ts.map +0 -1
  615. package/dist/types/ast/ResourceBuilder.d.ts +0 -384
  616. package/dist/types/ast/ResourceBuilder.d.ts.map +0 -1
  617. package/dist/types/ast/rules/NodeValidator.d.ts +0 -28
  618. package/dist/types/ast/rules/NodeValidator.d.ts.map +0 -1
  619. package/dist/types/ast/writer/FileWriter.d.ts +0 -37
  620. package/dist/types/ast/writer/FileWriter.d.ts.map +0 -1
  621. package/dist/types/ast/writer/StreamWriter.d.ts +0 -29
  622. package/dist/types/ast/writer/StreamWriter.d.ts.map +0 -1
  623. package/dist/types/ast/writer/StringWriter.d.ts +0 -30
  624. package/dist/types/ast/writer/StringWriter.d.ts.map +0 -1
  625. package/dist/types/ast/writer/Writer.d.ts +0 -72
  626. package/dist/types/ast/writer/Writer.d.ts.map +0 -1
  627. package/dist/types/breakscaping/Breakscape.d.ts +0 -44
  628. package/dist/types/breakscaping/Breakscape.d.ts.map +0 -1
  629. package/dist/types/breakscaping/BreakscapeLoop.d.ts +0 -142
  630. package/dist/types/breakscaping/BreakscapeLoop.d.ts.map +0 -1
  631. package/dist/types/breakscaping/BreakscapeOptions.d.ts +0 -30
  632. package/dist/types/breakscaping/BreakscapeOptions.d.ts.map +0 -1
  633. package/dist/types/breakscaping/BreakscapeRegex.d.ts +0 -96
  634. package/dist/types/breakscaping/BreakscapeRegex.d.ts.map +0 -1
  635. package/dist/types/breakscaping/RegexConfigs.d.ts +0 -35
  636. package/dist/types/breakscaping/RegexConfigs.d.ts.map +0 -1
  637. package/dist/types/config/Config.d.ts +0 -115
  638. package/dist/types/config/Config.d.ts.map +0 -1
  639. package/dist/types/config/ConfigHydrator.d.ts +0 -16
  640. package/dist/types/config/ConfigHydrator.d.ts.map +0 -1
  641. package/dist/types/config/raw/bits.d.ts +0 -4
  642. package/dist/types/config/raw/bits.d.ts.map +0 -1
  643. package/dist/types/config/raw/cardSets.d.ts +0 -4
  644. package/dist/types/config/raw/cardSets.d.ts.map +0 -1
  645. package/dist/types/config/raw/groups.d.ts +0 -4
  646. package/dist/types/config/raw/groups.d.ts.map +0 -1
  647. package/dist/types/config/raw/properties.d.ts +0 -4
  648. package/dist/types/config/raw/properties.d.ts.map +0 -1
  649. package/dist/types/config/raw/resources.d.ts +0 -4
  650. package/dist/types/config/raw/resources.d.ts.map +0 -1
  651. package/dist/types/config/raw/tags.d.ts +0 -4
  652. package/dist/types/config/raw/tags.d.ts.map +0 -1
  653. package/dist/types/generated/build-info.d.ts +0 -8
  654. package/dist/types/generated/build-info.d.ts.map +0 -1
  655. package/dist/types/generated/parser/bitmark/bitmark-peggy-parser.d.ts +0 -12
  656. package/dist/types/generated/parser/bitmark/bitmark-peggy-parser.d.ts.map +0 -1
  657. package/dist/types/generated/parser/text/text-peggy-parser.d.ts +0 -12
  658. package/dist/types/generated/parser/text/text-peggy-parser.d.ts.map +0 -1
  659. package/dist/types/generator/AstWalkerGenerator.d.ts +0 -32
  660. package/dist/types/generator/AstWalkerGenerator.d.ts.map +0 -1
  661. package/dist/types/generator/Generator.d.ts +0 -6
  662. package/dist/types/generator/Generator.d.ts.map +0 -1
  663. package/dist/types/generator/bitmark/BitmarkFileGenerator.d.ts +0 -41
  664. package/dist/types/generator/bitmark/BitmarkFileGenerator.d.ts.map +0 -1
  665. package/dist/types/generator/bitmark/BitmarkGenerator.d.ts +0 -401
  666. package/dist/types/generator/bitmark/BitmarkGenerator.d.ts.map +0 -1
  667. package/dist/types/generator/bitmark/BitmarkStringGenerator.d.ts +0 -31
  668. package/dist/types/generator/bitmark/BitmarkStringGenerator.d.ts.map +0 -1
  669. package/dist/types/generator/json/JsonFileGenerator.d.ts +0 -45
  670. package/dist/types/generator/json/JsonFileGenerator.d.ts.map +0 -1
  671. package/dist/types/generator/json/JsonGenerator.d.ts +0 -357
  672. package/dist/types/generator/json/JsonGenerator.d.ts.map +0 -1
  673. package/dist/types/generator/json/JsonObjectGenerator.d.ts +0 -32
  674. package/dist/types/generator/json/JsonObjectGenerator.d.ts.map +0 -1
  675. package/dist/types/generator/json/JsonStringGenerator.d.ts +0 -30
  676. package/dist/types/generator/json/JsonStringGenerator.d.ts.map +0 -1
  677. package/dist/types/generator/text/TextGenerator.d.ts +0 -228
  678. package/dist/types/generator/text/TextGenerator.d.ts.map +0 -1
  679. package/dist/types/index.d.ts +0 -50
  680. package/dist/types/index.d.ts.map +0 -1
  681. package/dist/types/info/InfoBuilder.d.ts +0 -18
  682. package/dist/types/info/InfoBuilder.d.ts.map +0 -1
  683. package/dist/types/init/init.d.ts +0 -4
  684. package/dist/types/init/init.d.ts.map +0 -1
  685. package/dist/types/model/ast/BreakscapedString.d.ts +0 -4
  686. package/dist/types/model/ast/BreakscapedString.d.ts.map +0 -1
  687. package/dist/types/model/ast/NodeType.d.ts +0 -1093
  688. package/dist/types/model/ast/NodeType.d.ts.map +0 -1
  689. package/dist/types/model/ast/Nodes.d.ts +0 -268
  690. package/dist/types/model/ast/Nodes.d.ts.map +0 -1
  691. package/dist/types/model/ast/StardardString.d.ts +0 -4
  692. package/dist/types/model/ast/StardardString.d.ts.map +0 -1
  693. package/dist/types/model/ast/TextNodes.d.ts +0 -130
  694. package/dist/types/model/ast/TextNodes.d.ts.map +0 -1
  695. package/dist/types/model/config/AbstractTagConfig.d.ts +0 -24
  696. package/dist/types/model/config/AbstractTagConfig.d.ts.map +0 -1
  697. package/dist/types/model/config/BitConfig.d.ts +0 -48
  698. package/dist/types/model/config/BitConfig.d.ts.map +0 -1
  699. package/dist/types/model/config/CardSetConfig.d.ts +0 -14
  700. package/dist/types/model/config/CardSetConfig.d.ts.map +0 -1
  701. package/dist/types/model/config/CardVariantConfig.d.ts +0 -16
  702. package/dist/types/model/config/CardVariantConfig.d.ts.map +0 -1
  703. package/dist/types/model/config/MarkupTagConfig.d.ts +0 -17
  704. package/dist/types/model/config/MarkupTagConfig.d.ts.map +0 -1
  705. package/dist/types/model/config/PropertyTagConfig.d.ts +0 -23
  706. package/dist/types/model/config/PropertyTagConfig.d.ts.map +0 -1
  707. package/dist/types/model/config/ResourceTagConfig.d.ts +0 -18
  708. package/dist/types/model/config/ResourceTagConfig.d.ts.map +0 -1
  709. package/dist/types/model/config/ResourcesConfig.d.ts +0 -14
  710. package/dist/types/model/config/ResourcesConfig.d.ts.map +0 -1
  711. package/dist/types/model/config/TagConfig.d.ts +0 -5
  712. package/dist/types/model/config/TagConfig.d.ts.map +0 -1
  713. package/dist/types/model/config/TagsConfig.d.ts +0 -5
  714. package/dist/types/model/config/TagsConfig.d.ts.map +0 -1
  715. package/dist/types/model/config/TagsConfigWithInfo.d.ts +0 -9
  716. package/dist/types/model/config/TagsConfigWithInfo.d.ts.map +0 -1
  717. package/dist/types/model/config/_Config.d.ts +0 -119
  718. package/dist/types/model/config/_Config.d.ts.map +0 -1
  719. package/dist/types/model/config/enum/CardSetConfigKey.d.ts +0 -43
  720. package/dist/types/model/config/enum/CardSetConfigKey.d.ts.map +0 -1
  721. package/dist/types/model/config/enum/ConfigKey.d.ts +0 -578
  722. package/dist/types/model/config/enum/ConfigKey.d.ts.map +0 -1
  723. package/dist/types/model/config/enum/GroupConfigKey.d.ts +0 -144
  724. package/dist/types/model/config/enum/GroupConfigKey.d.ts.map +0 -1
  725. package/dist/types/model/config/enum/GroupConfigType.d.ts +0 -16
  726. package/dist/types/model/config/enum/GroupConfigType.d.ts.map +0 -1
  727. package/dist/types/model/config/enum/PropertyConfigKey.d.ts +0 -618
  728. package/dist/types/model/config/enum/PropertyConfigKey.d.ts.map +0 -1
  729. package/dist/types/model/config/enum/ResourceConfigKey.d.ts +0 -87
  730. package/dist/types/model/config/enum/ResourceConfigKey.d.ts.map +0 -1
  731. package/dist/types/model/config/enum/TagConfigKey.d.ts +0 -51
  732. package/dist/types/model/config/enum/TagConfigKey.d.ts.map +0 -1
  733. package/dist/types/model/enum/BitTagType.d.ts +0 -15
  734. package/dist/types/model/enum/BitTagType.d.ts.map +0 -1
  735. package/dist/types/model/enum/BitType.d.ts +0 -1143
  736. package/dist/types/model/enum/BitType.d.ts.map +0 -1
  737. package/dist/types/model/enum/BitmarkGeneratorOutput.d.ts +0 -1
  738. package/dist/types/model/enum/BitmarkGeneratorOutput.d.ts.map +0 -1
  739. package/dist/types/model/enum/BitmarkParserType.d.ts +0 -7
  740. package/dist/types/model/enum/BitmarkParserType.d.ts.map +0 -1
  741. package/dist/types/model/enum/BitmarkVersion.d.ts +0 -12
  742. package/dist/types/model/enum/BitmarkVersion.d.ts.map +0 -1
  743. package/dist/types/model/enum/BodyBitType.d.ts +0 -25
  744. package/dist/types/model/enum/BodyBitType.d.ts.map +0 -1
  745. package/dist/types/model/enum/BodyTextFormat.d.ts +0 -17
  746. package/dist/types/model/enum/BodyTextFormat.d.ts.map +0 -1
  747. package/dist/types/model/enum/CardSetVersion.d.ts +0 -11
  748. package/dist/types/model/enum/CardSetVersion.d.ts.map +0 -1
  749. package/dist/types/model/enum/Count.d.ts +0 -7
  750. package/dist/types/model/enum/Count.d.ts.map +0 -1
  751. package/dist/types/model/enum/DeprecatedTextFormat.d.ts +0 -7
  752. package/dist/types/model/enum/DeprecatedTextFormat.d.ts.map +0 -1
  753. package/dist/types/model/enum/ExampleType.d.ts +0 -13
  754. package/dist/types/model/enum/ExampleType.d.ts.map +0 -1
  755. package/dist/types/model/enum/PropertyAstKey.d.ts +0 -22
  756. package/dist/types/model/enum/PropertyAstKey.d.ts.map +0 -1
  757. package/dist/types/model/enum/PropertyFormat.d.ts +0 -19
  758. package/dist/types/model/enum/PropertyFormat.d.ts.map +0 -1
  759. package/dist/types/model/enum/PropertyJsonKey.d.ts +0 -10
  760. package/dist/types/model/enum/PropertyJsonKey.d.ts.map +0 -1
  761. package/dist/types/model/enum/PropertyTag.d.ts +0 -419
  762. package/dist/types/model/enum/PropertyTag.d.ts.map +0 -1
  763. package/dist/types/model/enum/ResourceJsonKey.d.ts +0 -45
  764. package/dist/types/model/enum/ResourceJsonKey.d.ts.map +0 -1
  765. package/dist/types/model/enum/ResourceTag.d.ts +0 -63
  766. package/dist/types/model/enum/ResourceTag.d.ts.map +0 -1
  767. package/dist/types/model/enum/Tag.d.ts +0 -33
  768. package/dist/types/model/enum/Tag.d.ts.map +0 -1
  769. package/dist/types/model/enum/TextFormat.d.ts +0 -17
  770. package/dist/types/model/enum/TextFormat.d.ts.map +0 -1
  771. package/dist/types/model/enum/TextLocation.d.ts +0 -16
  772. package/dist/types/model/enum/TextLocation.d.ts.map +0 -1
  773. package/dist/types/model/enum/TextMarkType.d.ts +0 -93
  774. package/dist/types/model/enum/TextMarkType.d.ts.map +0 -1
  775. package/dist/types/model/enum/TextNodeType.d.ts +0 -53
  776. package/dist/types/model/enum/TextNodeType.d.ts.map +0 -1
  777. package/dist/types/model/enum/TextSection.d.ts +0 -27
  778. package/dist/types/model/enum/TextSection.d.ts.map +0 -1
  779. package/dist/types/model/info/enum/InfoFormat.d.ts +0 -13
  780. package/dist/types/model/info/enum/InfoFormat.d.ts.map +0 -1
  781. package/dist/types/model/info/enum/InfoType.d.ts +0 -15
  782. package/dist/types/model/info/enum/InfoType.d.ts.map +0 -1
  783. package/dist/types/model/json/BitJson.d.ts +0 -479
  784. package/dist/types/model/json/BitJson.d.ts.map +0 -1
  785. package/dist/types/model/json/BitWrapperJson.d.ts +0 -8
  786. package/dist/types/model/json/BitWrapperJson.d.ts.map +0 -1
  787. package/dist/types/model/json/BodyBitJson.d.ts +0 -81
  788. package/dist/types/model/json/BodyBitJson.d.ts.map +0 -1
  789. package/dist/types/model/json/ParserJson.d.ts +0 -12
  790. package/dist/types/model/json/ParserJson.d.ts.map +0 -1
  791. package/dist/types/model/json/ResourceJson.d.ts +0 -244
  792. package/dist/types/model/json/ResourceJson.d.ts.map +0 -1
  793. package/dist/types/model/parser/ParserData.d.ts +0 -11
  794. package/dist/types/model/parser/ParserData.d.ts.map +0 -1
  795. package/dist/types/model/parser/ParserError.d.ts +0 -17
  796. package/dist/types/model/parser/ParserError.d.ts.map +0 -1
  797. package/dist/types/model/parser/ParserInfo.d.ts +0 -10
  798. package/dist/types/model/parser/ParserInfo.d.ts.map +0 -1
  799. package/dist/types/model/parser/ParserLocation.d.ts +0 -6
  800. package/dist/types/model/parser/ParserLocation.d.ts.map +0 -1
  801. package/dist/types/model/parser/ParserLocationRange.d.ts +0 -10
  802. package/dist/types/model/parser/ParserLocationRange.d.ts.map +0 -1
  803. package/dist/types/model/parser/TagValidationData.d.ts +0 -24
  804. package/dist/types/model/parser/TagValidationData.d.ts.map +0 -1
  805. package/dist/types/parser/bitmark/BitmarkParser.d.ts +0 -21
  806. package/dist/types/parser/bitmark/BitmarkParser.d.ts.map +0 -1
  807. package/dist/types/parser/bitmark/peg/BitmarkPegParser.d.ts +0 -8
  808. package/dist/types/parser/bitmark/peg/BitmarkPegParser.d.ts.map +0 -1
  809. package/dist/types/parser/bitmark/peg/BitmarkPegParserHelper.d.ts +0 -108
  810. package/dist/types/parser/bitmark/peg/BitmarkPegParserHelper.d.ts.map +0 -1
  811. package/dist/types/parser/bitmark/peg/BitmarkPegParserProcessor.d.ts +0 -137
  812. package/dist/types/parser/bitmark/peg/BitmarkPegParserProcessor.d.ts.map +0 -1
  813. package/dist/types/parser/bitmark/peg/BitmarkPegParserTypes.d.ts +0 -333
  814. package/dist/types/parser/bitmark/peg/BitmarkPegParserTypes.d.ts.map +0 -1
  815. package/dist/types/parser/bitmark/peg/BitmarkPegParserValidator.d.ts +0 -186
  816. package/dist/types/parser/bitmark/peg/BitmarkPegParserValidator.d.ts.map +0 -1
  817. package/dist/types/parser/bitmark/peg/PeggyGrammarLocation.d.ts +0 -61
  818. package/dist/types/parser/bitmark/peg/PeggyGrammarLocation.d.ts.map +0 -1
  819. package/dist/types/parser/bitmark/peg/contentProcessors/BodyContentProcessor.d.ts +0 -37
  820. package/dist/types/parser/bitmark/peg/contentProcessors/BodyContentProcessor.d.ts.map +0 -1
  821. package/dist/types/parser/bitmark/peg/contentProcessors/BookChainContentProcessor.d.ts +0 -5
  822. package/dist/types/parser/bitmark/peg/contentProcessors/BookChainContentProcessor.d.ts.map +0 -1
  823. package/dist/types/parser/bitmark/peg/contentProcessors/CardContentProcessor.d.ts +0 -7
  824. package/dist/types/parser/bitmark/peg/contentProcessors/CardContentProcessor.d.ts.map +0 -1
  825. package/dist/types/parser/bitmark/peg/contentProcessors/ClozeTagContentProcessor.d.ts +0 -5
  826. package/dist/types/parser/bitmark/peg/contentProcessors/ClozeTagContentProcessor.d.ts.map +0 -1
  827. package/dist/types/parser/bitmark/peg/contentProcessors/ContentProcessorUtils.d.ts +0 -15
  828. package/dist/types/parser/bitmark/peg/contentProcessors/ContentProcessorUtils.d.ts.map +0 -1
  829. package/dist/types/parser/bitmark/peg/contentProcessors/DefaultTagContentProcessor.d.ts +0 -5
  830. package/dist/types/parser/bitmark/peg/contentProcessors/DefaultTagContentProcessor.d.ts.map +0 -1
  831. package/dist/types/parser/bitmark/peg/contentProcessors/ExampleTagContentProcessor.d.ts +0 -4
  832. package/dist/types/parser/bitmark/peg/contentProcessors/ExampleTagContentProcessor.d.ts.map +0 -1
  833. package/dist/types/parser/bitmark/peg/contentProcessors/FooterContentProcessor.d.ts +0 -14
  834. package/dist/types/parser/bitmark/peg/contentProcessors/FooterContentProcessor.d.ts.map +0 -1
  835. package/dist/types/parser/bitmark/peg/contentProcessors/GapChainContentProcessor.d.ts +0 -6
  836. package/dist/types/parser/bitmark/peg/contentProcessors/GapChainContentProcessor.d.ts.map +0 -1
  837. package/dist/types/parser/bitmark/peg/contentProcessors/ImageSourceChainContentProcessor.d.ts +0 -5
  838. package/dist/types/parser/bitmark/peg/contentProcessors/ImageSourceChainContentProcessor.d.ts.map +0 -1
  839. package/dist/types/parser/bitmark/peg/contentProcessors/InternalCommentTagContentProcessor.d.ts +0 -4
  840. package/dist/types/parser/bitmark/peg/contentProcessors/InternalCommentTagContentProcessor.d.ts.map +0 -1
  841. package/dist/types/parser/bitmark/peg/contentProcessors/ItemLeadChainContentProcessor.d.ts +0 -5
  842. package/dist/types/parser/bitmark/peg/contentProcessors/ItemLeadChainContentProcessor.d.ts.map +0 -1
  843. package/dist/types/parser/bitmark/peg/contentProcessors/ItemLeadTagContentProcessor.d.ts +0 -5
  844. package/dist/types/parser/bitmark/peg/contentProcessors/ItemLeadTagContentProcessor.d.ts.map +0 -1
  845. package/dist/types/parser/bitmark/peg/contentProcessors/MarkChainContentProcessor.d.ts +0 -6
  846. package/dist/types/parser/bitmark/peg/contentProcessors/MarkChainContentProcessor.d.ts.map +0 -1
  847. package/dist/types/parser/bitmark/peg/contentProcessors/MarkConfigChainContentProcessor.d.ts +0 -5
  848. package/dist/types/parser/bitmark/peg/contentProcessors/MarkConfigChainContentProcessor.d.ts.map +0 -1
  849. package/dist/types/parser/bitmark/peg/contentProcessors/MarkTagContentProcessor.d.ts +0 -4
  850. package/dist/types/parser/bitmark/peg/contentProcessors/MarkTagContentProcessor.d.ts.map +0 -1
  851. package/dist/types/parser/bitmark/peg/contentProcessors/PersonChainContentProcessor.d.ts +0 -5
  852. package/dist/types/parser/bitmark/peg/contentProcessors/PersonChainContentProcessor.d.ts.map +0 -1
  853. package/dist/types/parser/bitmark/peg/contentProcessors/PropertyContentProcessor.d.ts +0 -5
  854. package/dist/types/parser/bitmark/peg/contentProcessors/PropertyContentProcessor.d.ts.map +0 -1
  855. package/dist/types/parser/bitmark/peg/contentProcessors/RatingLevelChainContentProcessor.d.ts +0 -5
  856. package/dist/types/parser/bitmark/peg/contentProcessors/RatingLevelChainContentProcessor.d.ts.map +0 -1
  857. package/dist/types/parser/bitmark/peg/contentProcessors/ReferenceTagContentProcessor.d.ts +0 -5
  858. package/dist/types/parser/bitmark/peg/contentProcessors/ReferenceTagContentProcessor.d.ts.map +0 -1
  859. package/dist/types/parser/bitmark/peg/contentProcessors/ResourceContentProcessor.d.ts +0 -14
  860. package/dist/types/parser/bitmark/peg/contentProcessors/ResourceContentProcessor.d.ts.map +0 -1
  861. package/dist/types/parser/bitmark/peg/contentProcessors/ServingsChainContentProcessor.d.ts +0 -5
  862. package/dist/types/parser/bitmark/peg/contentProcessors/ServingsChainContentProcessor.d.ts.map +0 -1
  863. package/dist/types/parser/bitmark/peg/contentProcessors/TechnicalTermChainContentProcessor.d.ts +0 -5
  864. package/dist/types/parser/bitmark/peg/contentProcessors/TechnicalTermChainContentProcessor.d.ts.map +0 -1
  865. package/dist/types/parser/bitmark/peg/contentProcessors/TitleTagContentProcessor.d.ts +0 -11
  866. package/dist/types/parser/bitmark/peg/contentProcessors/TitleTagContentProcessor.d.ts.map +0 -1
  867. package/dist/types/parser/bitmark/peg/contentProcessors/TrueFalseChainContentProcessor.d.ts +0 -6
  868. package/dist/types/parser/bitmark/peg/contentProcessors/TrueFalseChainContentProcessor.d.ts.map +0 -1
  869. package/dist/types/parser/bitmark/peg/contentProcessors/TrueFalseTagContentProcessor.d.ts +0 -4
  870. package/dist/types/parser/bitmark/peg/contentProcessors/TrueFalseTagContentProcessor.d.ts.map +0 -1
  871. package/dist/types/parser/json/JsonParser.d.ts +0 -59
  872. package/dist/types/parser/json/JsonParser.d.ts.map +0 -1
  873. package/dist/types/parser/text/TextParser.d.ts +0 -55
  874. package/dist/types/parser/text/TextParser.d.ts.map +0 -1
  875. package/dist/types/parser/text/peg/TextPegParser.d.ts +0 -8
  876. package/dist/types/parser/text/peg/TextPegParser.d.ts.map +0 -1
  877. package/dist/types/utils/ArrayUtils.d.ts +0 -25
  878. package/dist/types/utils/ArrayUtils.d.ts.map +0 -1
  879. package/dist/types/utils/BitUtils.d.ts +0 -30
  880. package/dist/types/utils/BitUtils.d.ts.map +0 -1
  881. package/dist/types/utils/BooleanUtils.d.ts +0 -30
  882. package/dist/types/utils/BooleanUtils.d.ts.map +0 -1
  883. package/dist/types/utils/FileUtils.d.ts +0 -12
  884. package/dist/types/utils/FileUtils.d.ts.map +0 -1
  885. package/dist/types/utils/NumberUtils.d.ts +0 -47
  886. package/dist/types/utils/NumberUtils.d.ts.map +0 -1
  887. package/dist/types/utils/ObjectUtils.d.ts +0 -197
  888. package/dist/types/utils/ObjectUtils.d.ts.map +0 -1
  889. package/dist/types/utils/StringUtils.d.ts +0 -77
  890. package/dist/types/utils/StringUtils.d.ts.map +0 -1
  891. package/dist/types/utils/UrlUtils.d.ts +0 -7
  892. package/dist/types/utils/UrlUtils.d.ts.map +0 -1
  893. package/dist/types/utils/env/Env.d.ts +0 -39
  894. package/dist/types/utils/env/Env.d.ts.map +0 -1
  895. package/dist/types/utils/env/Environment.d.ts +0 -21
  896. package/dist/types/utils/env/Environment.d.ts.map +0 -1
  897. package/dist/types/utils/env/Os.d.ts +0 -19
  898. package/dist/types/utils/env/Os.d.ts.map +0 -1
  899. package/dist/types/utils/env/Version.d.ts +0 -10
  900. package/dist/types/utils/env/Version.d.ts.map +0 -1
  901. package/dist/types/utils/env/userAgent.d.ts +0 -11
  902. package/dist/types/utils/env/userAgent.d.ts.map +0 -1
  903. package/dist/types/utils/polyfill/fs.d.ts +0 -6
  904. package/dist/types/utils/polyfill/fs.d.ts.map +0 -1
@@ -1,1196 +0,0 @@
1
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
2
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
3
- return new (P || (P = Promise))(function (resolve, reject) {
4
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
5
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
6
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
7
- step((generator = generator.apply(thisArg, _arguments || [])).next());
8
- });
9
- };
10
- import { Ast } from '../../ast/Ast';
11
- import { Breakscape } from '../../breakscaping/Breakscape';
12
- import { NodeType } from '../../model/ast/NodeType';
13
- import { BitmarkVersion, DEFAULT_BITMARK_VERSION } from '../../model/enum/BitmarkVersion';
14
- import { TextFormat } from '../../model/enum/TextFormat';
15
- import { TextLocation } from '../../model/enum/TextLocation';
16
- import { TextMarkType } from '../../model/enum/TextMarkType';
17
- import { TextNodeType } from '../../model/enum/TextNodeType';
18
- import { StringUtils } from '../../utils/StringUtils';
19
- import { AstWalkerGenerator } from '../AstWalkerGenerator';
20
- const DEFAULT_OPTIONS = {
21
- bodyBitCallback: undefined,
22
- debugGenerationInline: false,
23
- };
24
- const FIRST_PARAGRAPH_CONTENT_DEPTH = 3;
25
- const BOLD_HALF_MARK = '*';
26
- const LIGHT_HALF_MARK = '`';
27
- const ITALIC_HALF_MARK = '_';
28
- const HIGHLIGHT_HALF_MARK = '!';
29
- const INLINE_HALF_MARK = '=';
30
- const BOLD_MARK = BOLD_HALF_MARK + BOLD_HALF_MARK;
31
- const LIGHT_MARK = LIGHT_HALF_MARK + LIGHT_HALF_MARK;
32
- const ITALIC_MARK = ITALIC_HALF_MARK + ITALIC_HALF_MARK;
33
- const HIGHLIGHT_MARK = HIGHLIGHT_HALF_MARK + HIGHLIGHT_HALF_MARK;
34
- const INLINE_MARK = INLINE_HALF_MARK + INLINE_HALF_MARK;
35
- const ALL_HALF_MARKS = [BOLD_HALF_MARK, LIGHT_HALF_MARK, ITALIC_HALF_MARK, HIGHLIGHT_HALF_MARK, INLINE_HALF_MARK];
36
- const ALL_TAG_OPENING_ENDS = '@#▼►%!?+-$_=&';
37
- const HEADING_TAG = '#';
38
- const STANDARD_MARKS = {
39
- [TextMarkType.bold]: BOLD_MARK,
40
- [TextMarkType.light]: LIGHT_MARK,
41
- [TextMarkType.italic]: ITALIC_MARK,
42
- [TextMarkType.highlight]: HIGHLIGHT_MARK,
43
- };
44
- const STANDARD_MARK_TYPES = [
45
- TextMarkType.bold,
46
- TextMarkType.light,
47
- TextMarkType.italic,
48
- TextMarkType.highlight,
49
- ];
50
- const INLINE_MARK_TYPES = [
51
- TextMarkType.strike,
52
- TextMarkType.subscript,
53
- TextMarkType.superscript,
54
- TextMarkType.ins,
55
- TextMarkType.del,
56
- TextMarkType.underline,
57
- TextMarkType.doubleUnderline,
58
- TextMarkType.circle,
59
- TextMarkType.languageEmRed,
60
- TextMarkType.languageEmOrange,
61
- TextMarkType.languageEmYellow,
62
- TextMarkType.languageEmGreen,
63
- TextMarkType.languageEmBlue,
64
- TextMarkType.languageEmPurple,
65
- TextMarkType.languageEmPink,
66
- TextMarkType.languageEmBrown,
67
- TextMarkType.languageEmBlack,
68
- TextMarkType.languageEmWhite,
69
- TextMarkType.languageEmGray,
70
- TextMarkType.languageEm,
71
- TextMarkType.userUnderline,
72
- TextMarkType.userDoubleUnderline,
73
- TextMarkType.userStrike,
74
- TextMarkType.userCircle,
75
- TextMarkType.userHighlight,
76
- TextMarkType.notranslate,
77
- //
78
- TextMarkType.link,
79
- TextMarkType.ref,
80
- TextMarkType.xref,
81
- TextMarkType.extref,
82
- TextMarkType.footnote,
83
- TextMarkType.footnoteStar,
84
- TextMarkType.symbol,
85
- TextMarkType.var,
86
- TextMarkType.code,
87
- TextMarkType.timer,
88
- TextMarkType.duration,
89
- TextMarkType.color,
90
- TextMarkType.comment,
91
- ];
92
- // Regex explanation:
93
- // - Match newline or carriage return + newline
94
- const INDENTATION_REGEX = new RegExp(/(\n|\r\n)/, 'g');
95
- const LINK_REGEX = new RegExp(/https?:\/\/|mailto:(.*)/, 'g');
96
- const LINK_BREAKSCAPE_REGEX = new RegExp(/\]/, 'g');
97
- const Stage = {
98
- enter: 'enter',
99
- between: 'between',
100
- exit: 'exit',
101
- };
102
- /**
103
- * Generate text from a bitmark text AST
104
- */
105
- class TextGenerator extends AstWalkerGenerator {
106
- /**
107
- * Generate text from a bitmark text AST
108
- *
109
- * @param bitmarkVersion - bitmark version, use null to use latest version
110
- * @param options - text generation options
111
- */
112
- constructor(bitmarkVersion, options) {
113
- var _a, _b;
114
- super();
115
- this.ast = new Ast();
116
- // State
117
- this.generateOptions = {};
118
- this.textFormat = TextFormat.bitmarkText;
119
- this.textLocation = TextLocation.body;
120
- this.writerText = '';
121
- this.nodeIndex = 0;
122
- this.currentIndent = 0;
123
- this.prevIndent = 0;
124
- this.indentationStringCache = '';
125
- this.inParagraph = false;
126
- this.inHeading = false;
127
- this.inCodeBlock = false;
128
- this.exitedCodeBlock = false;
129
- this.inBulletList = false;
130
- this.inInline = false;
131
- this.textDepth = 0;
132
- this.placeholderIndex = 0;
133
- this.placeholders = {};
134
- // For pre-text
135
- this.rootParagraphNodeContentIndex = 0;
136
- this.previousRootParagraphContextType = TextNodeType.text;
137
- this.inPreText = false;
138
- this.thisNodeIsPreText = false;
139
- this.preTextIndexTemp = -1;
140
- this.havePreText = false;
141
- this.preTextIndex = -1;
142
- this.bitmarkVersion = (_a = BitmarkVersion.fromValue(bitmarkVersion)) !== null && _a !== void 0 ? _a : DEFAULT_BITMARK_VERSION;
143
- this.options = Object.assign(Object.assign({}, DEFAULT_OPTIONS), options);
144
- this.debugGenerationInline = (_b = this.options.debugGenerationInline) !== null && _b !== void 0 ? _b : false;
145
- // Set defaults according to bitmark version
146
- if (this.bitmarkVersion === BitmarkVersion.v2) {
147
- //
148
- }
149
- else {
150
- //
151
- }
152
- this.enter = this.enter.bind(this);
153
- this.between = this.between.bind(this);
154
- this.exit = this.exit.bind(this);
155
- this.leaf = this.leaf.bind(this);
156
- }
157
- /**
158
- * Generate text from a bitmark text AST
159
- *
160
- * @param ast bitmark text AST
161
- */
162
- generate(ast, textFormat, textLocation, options) {
163
- return __awaiter(this, void 0, void 0, function* () {
164
- return this.generateSync(ast, textFormat, textLocation, options);
165
- });
166
- }
167
- /**
168
- * Generate text from a bitmark text AST synchronously
169
- *
170
- * @param ast bitmark text AST
171
- */
172
- generateSync(ast, textFormat, textLocation, options) {
173
- this.generateOptions = Object.assign({}, options);
174
- this.validateGenerateOptions(ast);
175
- if (!this.generateOptions.plainTextDividerAllowed) {
176
- // Normal case with no pre-text - need only walk once
177
- // Reset the state
178
- this.resetState(textFormat, textLocation);
179
- // Walk the text AST - this 1st walk is to determine if there is pre-text
180
- this.walkAndWrite(ast);
181
- }
182
- else {
183
- // Plain text divider is allowed. We need to walk the text AST twice:
184
- // 1. To determine if there is pre-text
185
- // 2. To generate the text
186
- // Save and clear the write callback / body bit callback for the first walk as we don't want to write the text
187
- const writeCallback = this.options.writeCallback;
188
- const bodyBitCallback = this.options.bodyBitCallback;
189
- this.options.writeCallback = undefined;
190
- this.options.bodyBitCallback = undefined;
191
- // Reset the state
192
- this.resetState(textFormat, textLocation);
193
- // Walk the text AST - this 1st walk is to determine if there is pre-text
194
- this.walkAndWrite(ast);
195
- // Restore the write callback
196
- this.options.writeCallback = writeCallback;
197
- this.options.bodyBitCallback = bodyBitCallback;
198
- // Reset the state, preserving havePreText / preTextIndex from the first walk
199
- const havePreText = this.havePreText;
200
- const pti = this.preTextIndex;
201
- this.resetState(textFormat, textLocation);
202
- this.havePreText = havePreText;
203
- this.preTextIndex = pti;
204
- // Walk the text AST - this is the 2nd walk to generate the text
205
- this.walkAndWrite(ast);
206
- }
207
- return this.writerText;
208
- }
209
- getPlaceholders() {
210
- return this.placeholders;
211
- }
212
- resetState(textFormat, textLocation) {
213
- this.printed = false;
214
- this.textFormat = textFormat !== null && textFormat !== void 0 ? textFormat : TextFormat.bitmarkText;
215
- this.textLocation = textLocation;
216
- this.writerText = '';
217
- this.nodeIndex = 0;
218
- this.currentIndent = 0;
219
- this.prevIndent = 0;
220
- this.indentationStringCache = '';
221
- this.inParagraph = false;
222
- this.inHeading = false;
223
- this.inCodeBlock = false;
224
- this.exitedCodeBlock = false;
225
- this.inBulletList = false;
226
- this.inInline = false;
227
- this.textDepth = 0;
228
- this.placeholderIndex = 0;
229
- this.placeholders = {};
230
- // For pre-text
231
- this.rootParagraphNodeContentIndex = 0;
232
- this.previousRootParagraphContextType = TextNodeType.hardBreak;
233
- this.inPreText = false;
234
- this.thisNodeIsPreText = false;
235
- this.preTextIndexTemp = -1;
236
- this.havePreText = false;
237
- this.preTextIndex = -1;
238
- }
239
- walkAndWrite(ast) {
240
- // Walk the bitmark AST
241
- this.ast.walk(ast, NodeType.textAst, this, undefined);
242
- }
243
- //
244
- // NODE HANDLERS
245
- //
246
- // * -> textAstValue
247
- enter_textAstValue(node, route) {
248
- return this.handleEnterNode(node.value, route);
249
- }
250
- between_textAstValue(node, left, right, route) {
251
- return this.handleBetweenNode(node.value, left, right, route);
252
- }
253
- exit_textAstValue(node, route) {
254
- return this.handleExitNode(node.value, route);
255
- }
256
- // * -> contentValue
257
- enter_contentValue(node, route) {
258
- return this.handleEnterContentValueNode(node, route);
259
- }
260
- between_contentValue(node, left, right, route) {
261
- this.handleBetweenContentValueNode(node, left, right, route);
262
- }
263
- exit_contentValue(node, route) {
264
- this.handleExitContentValueNode(node, route);
265
- }
266
- // * -> contentValueValue
267
- enter_contentValueValue(node, route) {
268
- return this.handleEnterNode(node.value, route);
269
- }
270
- between_contentValueValue(node, left, right, route) {
271
- this.handleBetweenNode(node.value, left, right, route);
272
- }
273
- exit_contentValueValue(node, route) {
274
- return this.handleExitNode(node.value, route);
275
- }
276
- // END NODE HANDLERS
277
- handleEnterNode(node, route) {
278
- this.handleEnterNodePreTextCheck(node, route);
279
- this.handleIndent(node);
280
- switch (node.type) {
281
- case TextNodeType.paragraph:
282
- this.inParagraph = true;
283
- this.writeParagraph(node);
284
- break;
285
- case TextNodeType.hardBreak:
286
- this.writeHardBreak(node);
287
- break;
288
- case TextNodeType.text:
289
- this.writeMarks(node, Stage.enter);
290
- this.writeText(node);
291
- this.writeMarks(node, Stage.between);
292
- if (this.textDepth === 0) {
293
- this.inInline = true;
294
- }
295
- this.textDepth++;
296
- break;
297
- case TextNodeType.heading:
298
- this.writeHeading(node);
299
- this.inHeading = true;
300
- break;
301
- case TextNodeType.section:
302
- this.writeSection(node);
303
- break;
304
- case TextNodeType.listItem:
305
- case TextNodeType.taskItem:
306
- this.writeBullet(node, route);
307
- break;
308
- case TextNodeType.image:
309
- this.writeImage(node);
310
- break;
311
- case TextNodeType.imageInline:
312
- this.writeImage(node);
313
- break;
314
- case TextNodeType.codeBlock:
315
- this.inCodeBlock = true;
316
- this.writeCodeBlock(node);
317
- break;
318
- case TextNodeType.latex:
319
- this.writeLatex(node);
320
- break;
321
- case TextNodeType.noBulletList:
322
- case TextNodeType.bulletList:
323
- case TextNodeType.orderedList:
324
- case TextNodeType.orderedListRoman:
325
- case TextNodeType.orderedListRomanLower:
326
- case TextNodeType.letteredList:
327
- case TextNodeType.letteredListLower:
328
- case TextNodeType.taskList:
329
- this.inBulletList = true;
330
- break;
331
- case TextNodeType.gap:
332
- case TextNodeType.select:
333
- case TextNodeType.highlight:
334
- case TextNodeType.mark:
335
- this.writeBodyBit(node, route);
336
- // Stop parsing the body bit
337
- return false;
338
- default:
339
- // Ignore unknown type
340
- }
341
- // Clear exited flags
342
- this.exitedCodeBlock = false;
343
- }
344
- handleBetweenNode(node, _left, _right, _route) {
345
- switch (node.type) {
346
- default:
347
- // Ignore unknown type
348
- }
349
- }
350
- handleExitNode(node, _route) {
351
- switch (node.type) {
352
- case TextNodeType.text:
353
- this.textDepth--;
354
- if (this.textDepth === 0) {
355
- this.inInline = false;
356
- }
357
- this.writeMarks(node, Stage.exit);
358
- break;
359
- case TextNodeType.paragraph:
360
- // if (this.textFormat !== TextFormat.bitmarkText) {
361
- // Paragraph Block type node, write 1x newline
362
- // Except:
363
- // - for bitmark-- where we don't write newlines for the single wrapping block
364
- this.writeNL();
365
- // }
366
- this.inParagraph = false;
367
- break;
368
- case TextNodeType.heading:
369
- this.inHeading = false;
370
- // eslint-disable-next-line no-fallthrough
371
- case TextNodeType.section:
372
- case TextNodeType.image:
373
- if (!this.inParagraph) {
374
- // Block type nodes, write 2x newline
375
- this.writeNL();
376
- this.writeNL();
377
- }
378
- break;
379
- case TextNodeType.codeBlock:
380
- // CodeBlock type node, write 2x newline
381
- this.writeNL();
382
- this.writeNL();
383
- this.inCodeBlock = false;
384
- this.exitedCodeBlock = true;
385
- break;
386
- case TextNodeType.noBulletList:
387
- case TextNodeType.bulletList:
388
- case TextNodeType.orderedList:
389
- case TextNodeType.orderedListRoman:
390
- case TextNodeType.orderedListRomanLower:
391
- case TextNodeType.letteredList:
392
- case TextNodeType.letteredListLower:
393
- case TextNodeType.taskList:
394
- // List Block type nodes, write a newline only if there is no indent
395
- if (this.currentIndent <= 1) {
396
- this.writeNL();
397
- // Exit 'inBulletList' state only if not in a nested list
398
- this.inBulletList = false;
399
- }
400
- break;
401
- default:
402
- // Ignore unknown type
403
- }
404
- this.handleDedent(node);
405
- // Increment the node index for the next node
406
- this.nodeIndex++;
407
- }
408
- handleIndent(node) {
409
- switch (node.type) {
410
- case TextNodeType.noBulletList:
411
- case TextNodeType.bulletList:
412
- case TextNodeType.orderedList:
413
- case TextNodeType.orderedListRoman:
414
- case TextNodeType.orderedListRomanLower:
415
- case TextNodeType.letteredList:
416
- case TextNodeType.letteredListLower:
417
- case TextNodeType.taskList:
418
- this.currentIndent++;
419
- break;
420
- default:
421
- // Ignore unknown type
422
- }
423
- }
424
- handleDedent(node) {
425
- switch (node.type) {
426
- case TextNodeType.noBulletList:
427
- case TextNodeType.bulletList:
428
- case TextNodeType.orderedList:
429
- case TextNodeType.orderedListRoman:
430
- case TextNodeType.orderedListRomanLower:
431
- case TextNodeType.letteredList:
432
- case TextNodeType.letteredListLower:
433
- case TextNodeType.taskList:
434
- this.currentIndent--;
435
- break;
436
- default:
437
- // Ignore unknown type
438
- }
439
- }
440
- handleEnterContentValueNode(_node, route) {
441
- if (route.length === FIRST_PARAGRAPH_CONTENT_DEPTH) {
442
- this.thisNodeIsPreText = true;
443
- this.inPreText = false;
444
- this.previousRootParagraphContextType = TextNodeType.hardBreak;
445
- }
446
- }
447
- handleBetweenContentValueNode(_node, left, _right, route) {
448
- if (route.length === FIRST_PARAGRAPH_CONTENT_DEPTH) {
449
- const leftNode = left.value;
450
- this.updatePreTextState();
451
- this.thisNodeIsPreText = true;
452
- this.previousRootParagraphContextType = leftNode.type;
453
- this.rootParagraphNodeContentIndex++;
454
- }
455
- }
456
- handleExitContentValueNode(_node, route) {
457
- if (route.length === FIRST_PARAGRAPH_CONTENT_DEPTH) {
458
- this.updatePreTextState();
459
- this.thisNodeIsPreText = false;
460
- if (this.generateOptions.plainTextDividerAllowed && this.inPreText) {
461
- this.havePreText = true;
462
- this.preTextIndex = this.preTextIndexTemp;
463
- }
464
- this.inPreText = false;
465
- }
466
- }
467
- updatePreTextState() {
468
- if (!this.inPreText && this.thisNodeIsPreText && this.previousRootParagraphContextType === TextNodeType.hardBreak) {
469
- // Enter pre-text if this node could be pre-text, and the previous node was a hard break
470
- this.inPreText = true;
471
- this.preTextIndexTemp = this.rootParagraphNodeContentIndex;
472
- }
473
- else if (this.inPreText && !this.thisNodeIsPreText) {
474
- this.inPreText = false;
475
- this.preTextIndexTemp = -1;
476
- }
477
- }
478
- handleEnterNodePreTextCheck(node, route) {
479
- const firstParagraphContent = route.length === 4;
480
- // If this is the first paragraph content node, check for pre-text, otherwise cannot be pre-text
481
- if (firstParagraphContent) {
482
- // If in pre-text, and this node is a hard break, stay in pre-text
483
- if (this.inPreText && node.type === TextNodeType.hardBreak)
484
- return;
485
- // If this node is text, then we might be in pre-text
486
- if (node.type === TextNodeType.text)
487
- return;
488
- }
489
- // Any other node and we are not in pre-text any longer
490
- this.thisNodeIsPreText = false;
491
- }
492
- /**
493
- * Check if a text node has a link mark, and if so, return the href
494
- *
495
- * @param node the node to check for a link mark
496
- * @returns the href, or false if no link mark
497
- */
498
- getLinkHref(node) {
499
- if (node.type === TextNodeType.text && node.marks) {
500
- const href = node.marks.reduce((acc, mark) => {
501
- var _a;
502
- if (mark.type === TextMarkType.link) {
503
- const linkMark = mark;
504
- const href = (_a = linkMark.attrs) === null || _a === void 0 ? void 0 : _a.href;
505
- if (href)
506
- return href;
507
- }
508
- return acc;
509
- }, '');
510
- if (href)
511
- return href;
512
- }
513
- return false;
514
- }
515
- /**
516
- * Get the current indentation string
517
- * @returns
518
- */
519
- getIndentationString() {
520
- // Return the cached indent if indent hasn't changed
521
- if (this.currentIndent === this.prevIndent)
522
- return this.indentationStringCache;
523
- let s = '';
524
- for (let i = 1; i < this.currentIndent; i++)
525
- s += '\t';
526
- // for (let i = 1; i < this.currentIndent; i++) s += '_';
527
- this.indentationStringCache = s;
528
- this.prevIndent = this.currentIndent;
529
- return s;
530
- }
531
- //
532
- // WRITE FUNCTIONS
533
- //
534
- writeBodyBit(node, route) {
535
- const placeholder = `[!${this.placeholderIndex}]`;
536
- this.placeholders[placeholder] = node;
537
- if (this.options.bodyBitCallback) {
538
- const bodyBit = this.options.bodyBitCallback(node, this.placeholderIndex, route);
539
- this.write(bodyBit);
540
- }
541
- else {
542
- // Write placeholder to the text
543
- this.write(placeholder);
544
- }
545
- this.placeholderIndex++;
546
- }
547
- writeText(node) {
548
- if (node.text == null)
549
- return;
550
- // Handle normal text
551
- const codeBreakscaping = this.inCodeBlock;
552
- // Get the text
553
- let s = node.text;
554
- // If the node has a single link mark, and the mark is the same (without protocol) as the text, write the link
555
- // instead of the text. This is a special case.
556
- const linkText = this.getLinkText(node);
557
- if (linkText)
558
- s = linkText;
559
- // Breakscape the text
560
- if (linkText) {
561
- // Only breakscape ] in links (done in getLinkText)
562
- s = linkText;
563
- }
564
- else {
565
- if (!codeBreakscaping) {
566
- s = this.breakscape(s, {
567
- format: this.textFormat,
568
- location: this.textLocation,
569
- });
570
- }
571
- else {
572
- s = this.breakscape(s, {
573
- format: this.textFormat,
574
- location: this.textLocation,
575
- });
576
- }
577
- }
578
- // Apply any required indentation
579
- if (this.currentIndent > 1) {
580
- const indentationString = this.getIndentationString();
581
- s = s.replace(INDENTATION_REGEX, `$1${indentationString}`);
582
- }
583
- // If have pre-text, and this is the correct index, write the plain text divider
584
- if (this.havePreText && this.rootParagraphNodeContentIndex === this.preTextIndex) {
585
- // Write the plain text divider
586
- this.writePlainTextDivider();
587
- this.writeNL();
588
- }
589
- if (this.havePreText && this.rootParagraphNodeContentIndex >= this.preTextIndex) {
590
- // Write the text as pre-text
591
- const s = this.breakscape(node.text, {
592
- format: TextFormat.plainText,
593
- location: this.textLocation, // Must be body for pre-text
594
- });
595
- this.write(s);
596
- }
597
- else {
598
- // Write the text
599
- this.write(s);
600
- }
601
- // Handle pre-text check
602
- if (this.currentIndent > 1 || codeBreakscaping) {
603
- this.thisNodeIsPreText = false; // Not pre-text if indented or in code block
604
- }
605
- if (!this.inPreText && node.text === s) {
606
- this.thisNodeIsPreText = false; // No-breakscaping, so don't enter pre-text
607
- }
608
- }
609
- /**
610
- * Check if a node is a link node and if so and the node has only the link mark, and the link without the
611
- * protocol is the same as the text, return true. Otherwise return false.
612
- *
613
- * @param node
614
- * @returns true if a simple link, otherwise false
615
- */
616
- isSimpleLink(node) {
617
- var _a;
618
- if (node.text == null)
619
- return false;
620
- if (((_a = node.marks) === null || _a === void 0 ? void 0 : _a.length) !== 1)
621
- return false;
622
- const href = this.getLinkHref(node);
623
- if (href) {
624
- // Get the text part of the link
625
- const hrefText = href.replace(LINK_REGEX, '$1');
626
- return hrefText === node.text;
627
- }
628
- return false;
629
- }
630
- /**
631
- * Get the link text if the node is a link, otherwise return false
632
- *
633
- * @param node
634
- * @returns
635
- */
636
- getLinkText(node) {
637
- if (node.text == null)
638
- return false;
639
- const href = this.getLinkHref(node);
640
- if (href) {
641
- let res;
642
- // Get the text part of the link
643
- const hrefText = href.replace(LINK_REGEX, '$1');
644
- if (hrefText === node.text) {
645
- // Return the link as the text
646
- res = href;
647
- }
648
- else {
649
- res = node.text;
650
- }
651
- res = (res !== null && res !== void 0 ? res : '').replace(LINK_BREAKSCAPE_REGEX, '^]'); // Link breakscaping
652
- return res;
653
- }
654
- return false;
655
- }
656
- /**
657
- * If the existing written text ends with a half-mark, and the new text starts with the same half-mark, insert a
658
- * breakscape ^ between them to break the sequence.
659
- *
660
- * Only applies to bitmark version > 2
661
- *
662
- * @param s
663
- */
664
- getInterTextBreakscape(s) {
665
- if (this.bitmarkVersion === BitmarkVersion.v2)
666
- return '';
667
- if (this.textFormat === TextFormat.plainText)
668
- return '';
669
- const lastChar = this.writerText.slice(-1);
670
- const firstChar = s.slice(0, 1);
671
- // If the last char is a half-mark, and the first char is the same half-mark, insert a breakscape
672
- if (lastChar === firstChar && ALL_HALF_MARKS.indexOf(lastChar) !== -1) {
673
- return '^';
674
- }
675
- // If in the body and the first char is a bit tag start, and the last char is the second part of the tag,
676
- // insert a breakscape
677
- if (this.textLocation === TextLocation.body) {
678
- if (lastChar === '[' && ALL_TAG_OPENING_ENDS.indexOf(firstChar) !== -1) {
679
- return '^';
680
- }
681
- }
682
- // Normal case, no breakscape
683
- return '';
684
- }
685
- // protected getHrefTextFromHref
686
- validateGenerateOptions(ast) {
687
- // Validate plain text divider allowed
688
- if (this.generateOptions.plainTextDividerAllowed) {
689
- // Check there is only one node in the AST, and that it is a paragraph
690
- if (ast.length !== 1) {
691
- this.generateOptions.plainTextDividerAllowed = false;
692
- }
693
- else if (ast.length === 1 && ast[0].type !== TextNodeType.paragraph) {
694
- this.generateOptions.plainTextDividerAllowed = false;
695
- }
696
- }
697
- }
698
- /**
699
- * Write the marks for the node.
700
- *
701
- * All marks need to be considered at once, because if there are multiple marks, they need to be written in
702
- * a combined manner.
703
- *
704
- * e.g. if there are bold and italic marks, they need to be written as
705
- *
706
- * ==the text==|bold|italic|
707
- * rather than
708
- * **__the text__**
709
- * or
710
- * **__the text**__
711
- *
712
- * @param node the text node
713
- * @param start true if starting (before) the text, false if ending (after) the text
714
- */
715
- writeMarks(node, stage) {
716
- if (node.marks) {
717
- // If this is a mark within inline text, or a heading, only inline marks are allowed
718
- const forceSingleMark = !!(this.inInline || this.inHeading);
719
- // If node has marks, it cannot be a pre-text node
720
- this.thisNodeIsPreText = false;
721
- // Empty marks occur when the inline mark has no attributes - write an inline mark with no attributes
722
- const emptyMarks = node.marks.length === 0;
723
- if (emptyMarks) {
724
- // Write the mark start / end around the text
725
- this.writeMarkTextWrapper(INLINE_MARK);
726
- return;
727
- }
728
- // Single marks are only valid if there is only one mark for this text
729
- // They are only used in inline / heading marks since bitmark-- was dropped.
730
- const singleMark = node.marks.length === 1 && forceSingleMark;
731
- // Get the correct mark start / end
732
- const markStartEnd = node.marks.reduce((acc, mark) => {
733
- if (acc)
734
- return acc;
735
- if (STANDARD_MARK_TYPES.indexOf(mark.type) !== -1) {
736
- if (singleMark)
737
- return STANDARD_MARKS[mark.type];
738
- return INLINE_MARK;
739
- }
740
- else if (INLINE_MARK_TYPES.indexOf(mark.type) !== -1) {
741
- return INLINE_MARK;
742
- }
743
- else {
744
- // Do nothing (NOTE: link is handled in writeText)
745
- }
746
- return acc;
747
- }, undefined);
748
- // Check the special case of a simple link mark
749
- const isSimpleLinkMark = this.isSimpleLink(node);
750
- const haveMark = markStartEnd != null && !isSimpleLinkMark;
751
- if (haveMark) {
752
- // Write the mark start / end around the text (==)
753
- if (stage == Stage.enter || stage == Stage.between) {
754
- this.writeMarkTextWrapper(markStartEnd);
755
- }
756
- // Write the inline/comment mark if not entering (|<mark content>)
757
- if (stage == Stage.between) {
758
- for (const mark of node.marks) {
759
- if (STANDARD_MARK_TYPES.indexOf(mark.type) !== -1) {
760
- if (!singleMark) {
761
- this.writeInlineMarkStartEnd();
762
- this.writeInlineMark(mark);
763
- }
764
- }
765
- else if (TextMarkType.comment === mark.type) {
766
- this.writeInlineMarkStartEnd();
767
- this.writeCommentMark(mark);
768
- }
769
- else if (TextMarkType.link === mark.type) {
770
- this.writeInlineMarkStartEnd();
771
- this.writeLinkMark(mark);
772
- }
773
- else if (TextMarkType.ref === mark.type) {
774
- this.writeInlineMarkStartEnd();
775
- this.writeRefMark(mark);
776
- }
777
- else if (TextMarkType.xref === mark.type) {
778
- this.writeInlineMarkStartEnd();
779
- this.writeXRefMark(mark);
780
- }
781
- else if (TextMarkType.extref === mark.type) {
782
- this.writeInlineMarkStartEnd();
783
- this.writeExtRefMark(mark);
784
- }
785
- else if (TextMarkType.footnote === mark.type) {
786
- this.writeInlineMarkStartEnd();
787
- this.writeFootnoteMark(mark);
788
- }
789
- else if (TextMarkType.footnoteStar === mark.type) {
790
- this.writeInlineMarkStartEnd();
791
- this.writeFootnoteStarMark(mark);
792
- }
793
- else if (TextMarkType.symbol === mark.type) {
794
- this.writeInlineMarkStartEnd();
795
- this.writeSymbolMark(mark);
796
- }
797
- else if (INLINE_MARK_TYPES.indexOf(mark.type) !== -1) {
798
- this.writeInlineMarkStartEnd();
799
- this.writeInlineMark(mark);
800
- }
801
- else {
802
- // Do nothing
803
- }
804
- }
805
- }
806
- // Write the inline/comment mark end when exiting (|)
807
- if (stage == Stage.exit) {
808
- let inlineMarkWritten = false;
809
- for (const mark of node.marks) {
810
- if (STANDARD_MARK_TYPES.indexOf(mark.type) !== -1) {
811
- if (!singleMark) {
812
- inlineMarkWritten = true;
813
- }
814
- }
815
- else if (TextMarkType.comment === mark.type ||
816
- TextMarkType.link === mark.type ||
817
- TextMarkType.ref === mark.type ||
818
- TextMarkType.xref === mark.type ||
819
- TextMarkType.footnote === mark.type ||
820
- TextMarkType.footnoteStar === mark.type ||
821
- INLINE_MARK_TYPES.indexOf(mark.type) !== -1) {
822
- inlineMarkWritten = true;
823
- }
824
- else {
825
- // Do nothing (NOTE: link is handled in writeText)
826
- }
827
- }
828
- // Write the mark end
829
- if (inlineMarkWritten)
830
- this.writeInlineMarkStartEnd();
831
- }
832
- }
833
- }
834
- }
835
- writeParagraph(node) {
836
- var _a, _b, _c, _d, _e;
837
- // Write paragraph marker for bitmark++
838
- if (this.textFormat === TextFormat.bitmarkText) {
839
- // Do not write a paragraph marker when in a bullet list
840
- if (this.inBulletList)
841
- return;
842
- // Do not write a paragraph marker for the first node if it is a paragraph - it is implicit
843
- // (unless it is empty, or an empty string)
844
- // This is a nasty look-ahead but otherwise the entire paragraph block would need to be written before
845
- // determining if it is the first node and if it is empty
846
- const nodeContentLength = (_b = (_a = node.content) === null || _a === void 0 ? void 0 : _a.length) !== null && _b !== void 0 ? _b : 0;
847
- if (this.nodeIndex === 0) {
848
- if (nodeContentLength === 1) {
849
- const isTextNode = ((_c = node.content) === null || _c === void 0 ? void 0 : _c[0].type) === TextNodeType.text;
850
- const text = (_e = (_d = node.content) === null || _d === void 0 ? void 0 : _d[0].text) !== null && _e !== void 0 ? _e : '';
851
- if (!isTextNode || text !== '')
852
- return;
853
- }
854
- if (nodeContentLength > 1)
855
- return;
856
- }
857
- this.write('|');
858
- this.writeNL();
859
- if (this.exitedCodeBlock) {
860
- // Write an extra newline after a code block
861
- this.writeNL();
862
- }
863
- }
864
- }
865
- writeHardBreak(_node) {
866
- this.writeNL();
867
- // Apply any required indentation (when in list)
868
- if (this.currentIndent > 1) {
869
- const indentationString = this.getIndentationString();
870
- this.write(indentationString);
871
- }
872
- }
873
- writeHeading(node) {
874
- var _a, _b;
875
- let s = '';
876
- const level = (_b = (_a = node.attrs) === null || _a === void 0 ? void 0 : _a.level) !== null && _b !== void 0 ? _b : 1;
877
- for (let i = 0; i < +level; i++)
878
- s += HEADING_TAG;
879
- s += ' ';
880
- // Write the heading tag
881
- this.write(s);
882
- }
883
- writeSection(node) {
884
- let s = '';
885
- if (node.section) {
886
- s = `|${node.section}: `;
887
- }
888
- else {
889
- s = '|';
890
- }
891
- // Write the section tag
892
- this.write(s);
893
- }
894
- writeBullet(node, route) {
895
- // if (node.attrs == null || !node.attrs.start) return;
896
- // const attrs = node.attrs;
897
- var _a, _b, _c, _d;
898
- // const s = `|code:${attrs.language}\n`;
899
- // Add indentation
900
- let bullet = this.getIndentationString();
901
- const listParent = this.getParentNode(route, 2);
902
- const listParentNode = listParent === null || listParent === void 0 ? void 0 : listParent.value;
903
- const listType = listParentNode === null || listParentNode === void 0 ? void 0 : listParentNode.type;
904
- const start = (_b = (_a = listParentNode === null || listParentNode === void 0 ? void 0 : listParentNode.attrs) === null || _a === void 0 ? void 0 : _a.start) !== null && _b !== void 0 ? _b : 1;
905
- // Add bullet
906
- if (listType === TextNodeType.bulletList) {
907
- bullet += '• ';
908
- }
909
- else if (listType === TextNodeType.noBulletList) {
910
- bullet += '•_ ';
911
- }
912
- else if (listType === TextNodeType.orderedList) {
913
- bullet += `•${start} `;
914
- }
915
- else if (listType === TextNodeType.orderedListRoman) {
916
- bullet += `•${start}I `;
917
- }
918
- else if (listType === TextNodeType.orderedListRomanLower) {
919
- bullet += `•${start}i `;
920
- }
921
- else if (listType === TextNodeType.letteredList) {
922
- bullet += '•A ';
923
- }
924
- else if (listType === TextNodeType.letteredListLower) {
925
- bullet += '•a ';
926
- }
927
- else if (listType === TextNodeType.taskList) {
928
- const taskList = node;
929
- const checked = (_d = (_c = taskList.attrs) === null || _c === void 0 ? void 0 : _c.checked) !== null && _d !== void 0 ? _d : false;
930
- bullet += checked ? '•+ ' : '•- ';
931
- }
932
- if (bullet)
933
- this.write(bullet);
934
- }
935
- writeImage(node) {
936
- var _a;
937
- if (node.attrs == null || !node.attrs.src)
938
- return;
939
- const attrs = node.attrs;
940
- const inlineImage = node.type === TextNodeType.imageInline;
941
- const mediaAttrs = this.getMediaAttrs(inlineImage ? 'imageInline' : 'image', attrs, {
942
- ignoreAttributes: inlineImage ? new Set(['alt', 'zoomDisabled', 'title']) : undefined,
943
- });
944
- let s = '';
945
- if (inlineImage) {
946
- s = `==${(_a = attrs.alt) !== null && _a !== void 0 ? _a : ''}==`;
947
- }
948
- s += mediaAttrs ? `|${mediaAttrs}|` : '';
949
- // Write the text
950
- this.write(s);
951
- }
952
- writeCodeBlock(node) {
953
- if (node.attrs == null || !node.attrs.language)
954
- return;
955
- const attrs = node.attrs;
956
- const s = `|code:${attrs.language}\n`;
957
- // Write the text
958
- this.write(s);
959
- }
960
- writeLatex(node) {
961
- if (node.attrs == null || !node.attrs.formula)
962
- return;
963
- const attrs = node.attrs;
964
- const formula = this.breakscape(attrs.formula, {
965
- format: this.textFormat,
966
- location: this.textLocation,
967
- });
968
- const s = `==${formula}==|latex|`;
969
- // Write the text
970
- this.write(s);
971
- }
972
- writeMarkTextWrapper(s) {
973
- if (s)
974
- this.write(s);
975
- }
976
- writeInlineMark(mark) {
977
- let s = `${mark.type}`;
978
- if (mark.attrs) {
979
- for (const [k, v] of Object.entries(mark.attrs)) {
980
- if ((k === 'language' && v !== 'plain text') || k === 'color' || k === 'name' || k === 'duration') {
981
- s = `${s}:${v}`;
982
- }
983
- }
984
- }
985
- this.write(s);
986
- }
987
- writeCommentMark(mark) {
988
- const comment = mark.comment || '';
989
- const s = `#${comment}`;
990
- this.write(s);
991
- }
992
- writeLinkMark(mark) {
993
- var _a;
994
- const href = ((_a = mark.attrs) === null || _a === void 0 ? void 0 : _a.href) || '';
995
- // Apply link breakscaping
996
- const linkText = (href !== null && href !== void 0 ? href : '').replace(LINK_BREAKSCAPE_REGEX, '^]');
997
- const s = `link:${linkText}`;
998
- this.write(s);
999
- }
1000
- writeRefMark(mark) {
1001
- var _a, _b;
1002
- const ref = (_b = (_a = mark.attrs) === null || _a === void 0 ? void 0 : _a.reference) !== null && _b !== void 0 ? _b : '';
1003
- const s = `►${ref}`;
1004
- this.write(s);
1005
- }
1006
- writeXRefMark(mark) {
1007
- var _a, _b, _c, _d;
1008
- const xref = (_b = (_a = mark.attrs) === null || _a === void 0 ? void 0 : _a.xref) !== null && _b !== void 0 ? _b : '';
1009
- const ref = (_d = (_c = mark.attrs) === null || _c === void 0 ? void 0 : _c.reference) !== null && _d !== void 0 ? _d : '';
1010
- let s = `xref:${xref}`;
1011
- if (ref)
1012
- s += `|►${ref}`;
1013
- this.write(s);
1014
- }
1015
- writeExtRefMark(mark) {
1016
- var _a, _b, _c, _d, _e, _f;
1017
- const extref = (_b = (_a = mark.attrs) === null || _a === void 0 ? void 0 : _a.extref) !== null && _b !== void 0 ? _b : '';
1018
- const refs = (_d = (_c = mark.attrs) === null || _c === void 0 ? void 0 : _c.references) !== null && _d !== void 0 ? _d : [];
1019
- const provider = (_f = (_e = mark.attrs) === null || _e === void 0 ? void 0 : _e.provider) !== null && _f !== void 0 ? _f : '';
1020
- let s = `extref:${extref}`;
1021
- for (const ref of refs) {
1022
- s += `|►${ref !== null && ref !== void 0 ? ref : ''}`;
1023
- }
1024
- s += `|provider:${provider}`;
1025
- this.write(s);
1026
- }
1027
- writeFootnoteMark(_mark) {
1028
- const s = `footnote:`;
1029
- this.write(s);
1030
- }
1031
- writeFootnoteStarMark(_mark) {
1032
- const s = `footnote*:`;
1033
- this.write(s);
1034
- }
1035
- writeSymbolMark(mark) {
1036
- if (mark.attrs == null)
1037
- return;
1038
- const attrs = mark.attrs;
1039
- const mediaAttrs = this.getMediaAttrs('symbol', attrs);
1040
- const s = mediaAttrs !== null && mediaAttrs !== void 0 ? mediaAttrs : '';
1041
- // Write the text
1042
- this.write(s);
1043
- }
1044
- writeInlineMarkStartEnd() {
1045
- this.write('|');
1046
- }
1047
- writePlainTextDivider() {
1048
- this.write('==== text ====');
1049
- }
1050
- writeString(s) {
1051
- if (s != null)
1052
- this.write(`${s}`);
1053
- }
1054
- writeNL() {
1055
- if (this.options.debugGenerationInline) {
1056
- this.write('\\n');
1057
- return;
1058
- }
1059
- this.write('\n');
1060
- }
1061
- writeInlineDebug(key, state) {
1062
- let tag = key;
1063
- if (state.open) {
1064
- tag = `<${key}>`;
1065
- }
1066
- else if (state.close) {
1067
- tag = `</${key}>`;
1068
- }
1069
- else if (state.single) {
1070
- tag = `<${key} />`;
1071
- }
1072
- this.writeString(tag);
1073
- }
1074
- getMediaAttrs(mediaType, attrs, options) {
1075
- var _a, _b;
1076
- if (!mediaType)
1077
- return undefined;
1078
- const opts = Object.assign({}, options);
1079
- const ignoreAttributes = (_a = opts.ignoreAttributes) !== null && _a !== void 0 ? _a : new Set();
1080
- let s = `${mediaType}:${(_b = attrs === null || attrs === void 0 ? void 0 : attrs.src) !== null && _b !== void 0 ? _b : ''}`;
1081
- // Loop and write the attributes (except src, as written above)
1082
- const entries = Object.entries(attrs).filter(([k, _v]) => k !== 'src');
1083
- for (let i = 0; i < entries.length; i++) {
1084
- const [k, v] = entries[i];
1085
- // Ignore certain attributes
1086
- if (ignoreAttributes.has(k))
1087
- continue;
1088
- switch (k) {
1089
- case 'textAlign':
1090
- if (v !== 'left')
1091
- s += `|captionAlign:${v}`;
1092
- break;
1093
- case 'alignment':
1094
- if (v !== 'center')
1095
- if (v)
1096
- s += `|alignment:${v}`;
1097
- break;
1098
- case 'title':
1099
- if (v)
1100
- s += `|caption:${v}`;
1101
- break;
1102
- case 'class':
1103
- if (v !== 'center')
1104
- if (v)
1105
- s += `|align:${v}`;
1106
- break;
1107
- case 'comment':
1108
- if (v)
1109
- s += `|#${v}`;
1110
- break;
1111
- case '':
1112
- // This case handles reverse of strange behaviour in the text parser when a key is empty
1113
- if (StringUtils.isString(v))
1114
- s += `|:${v}`;
1115
- else
1116
- s += `|`;
1117
- break;
1118
- case 'zoomDisabled':
1119
- if (!v)
1120
- s += '|zoomDisabled:false';
1121
- break;
1122
- case 'alt':
1123
- case 'width':
1124
- case 'height':
1125
- default:
1126
- if (k && v)
1127
- s += `|${k}:${v}`;
1128
- break;
1129
- }
1130
- }
1131
- return s;
1132
- }
1133
- //
1134
- // Helper functions
1135
- //
1136
- breakscape(s, options) {
1137
- if (this.generateOptions.noBreakscaping)
1138
- return s;
1139
- return Breakscape.breakscape(s, options);
1140
- }
1141
- getBitType(route) {
1142
- for (const node of route) {
1143
- if (node.key === NodeType.bitsValue) {
1144
- const n = node.value;
1145
- return n === null || n === void 0 ? void 0 : n.bitType;
1146
- }
1147
- }
1148
- return undefined;
1149
- }
1150
- //
1151
- // Writer interface
1152
- //
1153
- /**
1154
- * Writes a string value to the output.
1155
- * @param value - The string value to be written.
1156
- */
1157
- write(value) {
1158
- // Handle case where the already written text, combined with this text, would create an unwanted control
1159
- // sequence, e.g. old* **new**. In this case, a ^ is inserted to break the sequence.
1160
- value = this.getInterTextBreakscape(value) + value;
1161
- if (this.options.writeCallback) {
1162
- this.options.writeCallback(value);
1163
- }
1164
- this.writerText += value;
1165
- // for debugging console.log(this.writerText);
1166
- return this;
1167
- }
1168
- /**
1169
- * Writes a new line to the output. The line is indented automatically. The line is ended with the endOfLineString.
1170
- * @param value - The line to write. When omitted, only the endOfLineString is written.
1171
- */
1172
- writeLine(value) {
1173
- this.write(`${value}\n`);
1174
- return this;
1175
- }
1176
- /**
1177
- * Writes a collection of lines to the output. Each line is indented automatically and ended with the endOfLineString.
1178
- * @param values - The lines to write.
1179
- * @param delimiter - An optional delimiter to be written at the end of each line, except for the last one.
1180
- */
1181
- writeLines(values, delimiter) {
1182
- for (const value of values) {
1183
- this.write(`${value}${delimiter !== null && delimiter !== void 0 ? delimiter : ''}\n`);
1184
- }
1185
- return this;
1186
- }
1187
- /**
1188
- * Writes a single whitespace character to the output.
1189
- */
1190
- writeWhiteSpace() {
1191
- this.write(' ');
1192
- return this;
1193
- }
1194
- }
1195
- export { TextGenerator };
1196
- //# sourceMappingURL=TextGenerator.js.map