@gmb/bitmark-parser-generator 1.5.24 → 1.5.26

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 (101) hide show
  1. package/dist/browser/bitmark-parser-generator.min.js +1 -1
  2. package/dist/browser/bundle-report.html +2 -2
  3. package/dist/cjs/BitmarkParserGenerator.js +1 -1
  4. package/dist/cjs/BitmarkParserGenerator.js.map +1 -1
  5. package/dist/cjs/ast/Builder.js +5 -2
  6. package/dist/cjs/ast/Builder.js.map +1 -1
  7. package/dist/cjs/config/raw/bits.js +10 -1
  8. package/dist/cjs/config/raw/bits.js.map +1 -1
  9. package/dist/cjs/config/raw/cardSets.js +4 -0
  10. package/dist/cjs/config/raw/cardSets.js.map +1 -1
  11. package/dist/cjs/config/raw/properties.js +6 -0
  12. package/dist/cjs/config/raw/properties.js.map +1 -1
  13. package/dist/cjs/generated/build-info.js +1 -1
  14. package/dist/cjs/generated/parser/bitmark/bitmark-peggy-parser.js +74 -84
  15. package/dist/cjs/generated/parser/bitmark/bitmark-peggy-parser.js.map +1 -1
  16. package/dist/cjs/generated/parser/text/text-peggy-parser.js +335 -388
  17. package/dist/cjs/generated/parser/text/text-peggy-parser.js.map +1 -1
  18. package/dist/cjs/generator/bitmark/BitmarkGenerator.js +6 -1
  19. package/dist/cjs/generator/bitmark/BitmarkGenerator.js.map +1 -1
  20. package/dist/cjs/generator/json/JsonGenerator.js +6 -5
  21. package/dist/cjs/generator/json/JsonGenerator.js.map +1 -1
  22. package/dist/cjs/model/ast/NodeType.js +1 -0
  23. package/dist/cjs/model/ast/NodeType.js.map +1 -1
  24. package/dist/cjs/model/config/enum/PropertyConfigKey.js +1 -0
  25. package/dist/cjs/model/config/enum/PropertyConfigKey.js.map +1 -1
  26. package/dist/cjs/model/enum/BitType.js +1 -0
  27. package/dist/cjs/model/enum/BitType.js.map +1 -1
  28. package/dist/cjs/model/enum/PropertyTag.js +1 -0
  29. package/dist/cjs/model/enum/PropertyTag.js.map +1 -1
  30. package/dist/cjs/parser/bitmark/peg/BitmarkPegParserTypes.js.map +1 -1
  31. package/dist/cjs/parser/bitmark/peg/contentProcessors/CardContentProcessor.js +2 -2
  32. package/dist/cjs/parser/bitmark/peg/contentProcessors/CardContentProcessor.js.map +1 -1
  33. package/dist/cjs/parser/bitmark/peg/contentProcessors/ServingsChainContentProcessor.js +3 -1
  34. package/dist/cjs/parser/bitmark/peg/contentProcessors/ServingsChainContentProcessor.js.map +1 -1
  35. package/dist/cjs/parser/json/JsonParser.js +7 -4
  36. package/dist/cjs/parser/json/JsonParser.js.map +1 -1
  37. package/dist/esm/BitmarkParserGenerator.js +1 -1
  38. package/dist/esm/BitmarkParserGenerator.js.map +1 -1
  39. package/dist/esm/ast/Builder.js +5 -2
  40. package/dist/esm/ast/Builder.js.map +1 -1
  41. package/dist/esm/config/raw/bits.js +10 -1
  42. package/dist/esm/config/raw/bits.js.map +1 -1
  43. package/dist/esm/config/raw/cardSets.js +4 -0
  44. package/dist/esm/config/raw/cardSets.js.map +1 -1
  45. package/dist/esm/config/raw/properties.js +6 -0
  46. package/dist/esm/config/raw/properties.js.map +1 -1
  47. package/dist/esm/generated/build-info.js +1 -1
  48. package/dist/esm/generated/parser/bitmark/bitmark-peggy-parser.js +73 -84
  49. package/dist/esm/generated/parser/bitmark/bitmark-peggy-parser.js.map +1 -1
  50. package/dist/esm/generated/parser/text/text-peggy-parser.js +334 -388
  51. package/dist/esm/generated/parser/text/text-peggy-parser.js.map +1 -1
  52. package/dist/esm/generator/bitmark/BitmarkGenerator.js +6 -1
  53. package/dist/esm/generator/bitmark/BitmarkGenerator.js.map +1 -1
  54. package/dist/esm/generator/json/JsonGenerator.js +6 -5
  55. package/dist/esm/generator/json/JsonGenerator.js.map +1 -1
  56. package/dist/esm/model/ast/NodeType.js +1 -0
  57. package/dist/esm/model/ast/NodeType.js.map +1 -1
  58. package/dist/esm/model/config/enum/PropertyConfigKey.js +1 -0
  59. package/dist/esm/model/config/enum/PropertyConfigKey.js.map +1 -1
  60. package/dist/esm/model/enum/BitType.js +1 -0
  61. package/dist/esm/model/enum/BitType.js.map +1 -1
  62. package/dist/esm/model/enum/PropertyTag.js +1 -0
  63. package/dist/esm/model/enum/PropertyTag.js.map +1 -1
  64. package/dist/esm/parser/bitmark/peg/BitmarkPegParserTypes.js.map +1 -1
  65. package/dist/esm/parser/bitmark/peg/contentProcessors/CardContentProcessor.js +2 -2
  66. package/dist/esm/parser/bitmark/peg/contentProcessors/CardContentProcessor.js.map +1 -1
  67. package/dist/esm/parser/bitmark/peg/contentProcessors/ServingsChainContentProcessor.js +3 -1
  68. package/dist/esm/parser/bitmark/peg/contentProcessors/ServingsChainContentProcessor.js.map +1 -1
  69. package/dist/esm/parser/json/JsonParser.js +7 -4
  70. package/dist/esm/parser/json/JsonParser.js.map +1 -1
  71. package/dist/types/ast/Builder.d.ts +3 -0
  72. package/dist/types/ast/Builder.d.ts.map +1 -1
  73. package/dist/types/config/raw/bits.d.ts.map +1 -1
  74. package/dist/types/config/raw/cardSets.d.ts.map +1 -1
  75. package/dist/types/config/raw/properties.d.ts.map +1 -1
  76. package/dist/types/generated/parser/bitmark/bitmark-peggy-parser.d.ts +3 -2
  77. package/dist/types/generated/parser/bitmark/bitmark-peggy-parser.d.ts.map +1 -1
  78. package/dist/types/generated/parser/text/text-peggy-parser.d.ts +3 -2
  79. package/dist/types/generated/parser/text/text-peggy-parser.d.ts.map +1 -1
  80. package/dist/types/generator/bitmark/BitmarkGenerator.d.ts.map +1 -1
  81. package/dist/types/generator/json/JsonGenerator.d.ts.map +1 -1
  82. package/dist/types/model/ast/NodeType.d.ts +2 -0
  83. package/dist/types/model/ast/NodeType.d.ts.map +1 -1
  84. package/dist/types/model/ast/Nodes.d.ts +3 -0
  85. package/dist/types/model/ast/Nodes.d.ts.map +1 -1
  86. package/dist/types/model/config/enum/ConfigKey.d.ts +2 -0
  87. package/dist/types/model/config/enum/ConfigKey.d.ts.map +1 -1
  88. package/dist/types/model/config/enum/PropertyConfigKey.d.ts +3 -0
  89. package/dist/types/model/config/enum/PropertyConfigKey.d.ts.map +1 -1
  90. package/dist/types/model/enum/BitType.d.ts +2 -0
  91. package/dist/types/model/enum/BitType.d.ts.map +1 -1
  92. package/dist/types/model/enum/PropertyTag.d.ts +2 -0
  93. package/dist/types/model/enum/PropertyTag.d.ts.map +1 -1
  94. package/dist/types/model/json/BitJson.d.ts +6 -3
  95. package/dist/types/model/json/BitJson.d.ts.map +1 -1
  96. package/dist/types/parser/bitmark/peg/BitmarkPegParserTypes.d.ts +1 -0
  97. package/dist/types/parser/bitmark/peg/BitmarkPegParserTypes.d.ts.map +1 -1
  98. package/dist/types/parser/bitmark/peg/contentProcessors/CardContentProcessor.d.ts.map +1 -1
  99. package/dist/types/parser/bitmark/peg/contentProcessors/ServingsChainContentProcessor.d.ts.map +1 -1
  100. package/dist/types/parser/json/JsonParser.d.ts.map +1 -1
  101. package/package.json +8 -8
@@ -1,4 +1,4 @@
1
- // Generated by Peggy 3.0.2.
1
+ // @generated by Peggy 4.0.2.
2
2
  //
3
3
  // https://peggyjs.org/
4
4
  import { Breakscape } from "../../../breakscaping/Breakscape";
@@ -367,23 +367,19 @@ function peg$parse(input, options) {
367
367
  var peg$c81 = "]";
368
368
  var peg$c82 = "\n";
369
369
  var peg$c83 = "\r\n";
370
- var peg$c84 = "\r";
371
- var peg$c85 = "\u2028";
372
- var peg$c86 = "\u2029";
373
- var peg$c87 = "http";
374
- var peg$c88 = "s";
375
- var peg$c89 = "://";
376
- var peg$c90 = "mailto:";
377
- var peg$c91 = "~";
378
- var peg$c92 = "^";
379
- var peg$c93 = "'";
370
+ var peg$c84 = "http";
371
+ var peg$c85 = "s";
372
+ var peg$c86 = "://";
373
+ var peg$c87 = "mailto:";
380
374
  var peg$r0 = /^[ \t]/;
381
375
  var peg$r1 = /^[0-9]/;
382
- var peg$r2 = /^[\t\v\f \xA0\uFEFF \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/;
383
- var peg$r3 = /^[\n\r\u2028\u2029]/;
384
- var peg$r4 = /^[^\n\r\u2028\u2029]/;
385
- var peg$r5 = /^[^\n\r\u2028\u2029\t\v\f \xA0\uFEFF \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/;
386
- var peg$r6 = /^[a-zA-Z0-9!*'()=+-\/._?#@[\]$&(),;%:{}]/;
376
+ var peg$r2 = /^[:|]/;
377
+ var peg$r3 = /^[\r\u2028-\u2029]/;
378
+ var peg$r4 = /^[\t\v\f \xA0\uFEFF \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/;
379
+ var peg$r5 = /^[\n\r\u2028\u2029]/;
380
+ var peg$r6 = /^[^\n\r\u2028\u2029]/;
381
+ var peg$r7 = /^[^\n\r\u2028\u2029\t\v\f \xA0\uFEFF \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/;
382
+ var peg$r8 = /^[!#-;=?-[\]-_a-{}-~]/;
387
383
  var peg$e0 = peg$anyExpectation();
388
384
  var peg$e1 = peg$otherExpectation("StyledText");
389
385
  var peg$e2 = peg$literalExpectation("|", false);
@@ -407,94 +403,90 @@ function peg$parse(input, options) {
407
403
  var peg$e20 = peg$literalExpectation("image", false);
408
404
  var peg$e21 = peg$literalExpectation("#", false);
409
405
  var peg$e22 = peg$literalExpectation("@", false);
410
- var peg$e23 = peg$literalExpectation("width", false);
411
- var peg$e24 = peg$literalExpectation("height", false);
412
- var peg$e25 = peg$literalExpectation("alignment", false);
413
- var peg$e26 = peg$literalExpectation("captionAlign", false);
414
- var peg$e27 = peg$literalExpectation("left", false);
415
- var peg$e28 = peg$literalExpectation("center", false);
416
- var peg$e29 = peg$literalExpectation("right", false);
417
- var peg$e30 = peg$otherExpectation("StyledString");
418
- var peg$e31 = peg$literalExpectation("=", false);
419
- var peg$e32 = peg$literalExpectation("\uD835\uDC53", false);
420
- var peg$e33 = peg$literalExpectation("link:", false);
421
- var peg$e34 = peg$literalExpectation("var:", false);
422
- var peg$e35 = peg$literalExpectation("code:", false);
423
- var peg$e36 = peg$literalExpectation("timer", false);
424
- var peg$e37 = peg$literalExpectation("timer:", false);
425
- var peg$e38 = peg$literalExpectation("duration:", false);
426
- var peg$e39 = peg$literalExpectation("P", false);
427
- var peg$e40 = peg$literalExpectation("color:", false);
428
- var peg$e41 = peg$literalExpectation("bold", false);
429
- var peg$e42 = peg$literalExpectation("italic", false);
430
- var peg$e43 = peg$literalExpectation("light", false);
431
- var peg$e44 = peg$literalExpectation("highlight", false);
432
- var peg$e45 = peg$literalExpectation("strike", false);
433
- var peg$e46 = peg$literalExpectation("subscript", false);
434
- var peg$e47 = peg$literalExpectation("superscript", false);
435
- var peg$e48 = peg$literalExpectation("ins", false);
436
- var peg$e49 = peg$literalExpectation("del", false);
437
- var peg$e50 = peg$literalExpectation("underline", false);
438
- var peg$e51 = peg$literalExpectation("doubleUnderline", false);
439
- var peg$e52 = peg$literalExpectation("circle", false);
440
- var peg$e53 = peg$literalExpectation("languageEm", false);
441
- var peg$e54 = peg$literalExpectation("userUnderline", false);
442
- var peg$e55 = peg$literalExpectation("userDoubleUnderline", false);
443
- var peg$e56 = peg$literalExpectation("userStrike", false);
444
- var peg$e57 = peg$literalExpectation("userCircle", false);
445
- var peg$e58 = peg$literalExpectation("userHighlight", false);
446
- var peg$e59 = peg$literalExpectation("aqua", false);
447
- var peg$e60 = peg$literalExpectation("black", false);
448
- var peg$e61 = peg$literalExpectation("blue", false);
449
- var peg$e62 = peg$literalExpectation("pink", false);
450
- var peg$e63 = peg$literalExpectation("fuchsia", false);
451
- var peg$e64 = peg$literalExpectation("lightgrey", false);
452
- var peg$e65 = peg$literalExpectation("gray", false);
453
- var peg$e66 = peg$literalExpectation("darkgray", false);
454
- var peg$e67 = peg$literalExpectation("green", false);
455
- var peg$e68 = peg$literalExpectation("lime", false);
456
- var peg$e69 = peg$literalExpectation("magenta", false);
457
- var peg$e70 = peg$literalExpectation("maroon", false);
458
- var peg$e71 = peg$literalExpectation("navy", false);
459
- var peg$e72 = peg$literalExpectation("olive", false);
460
- var peg$e73 = peg$literalExpectation("orange", false);
461
- var peg$e74 = peg$literalExpectation("purple", false);
462
- var peg$e75 = peg$literalExpectation("red", false);
463
- var peg$e76 = peg$literalExpectation("silver", false);
464
- var peg$e77 = peg$literalExpectation("teal", false);
465
- var peg$e78 = peg$literalExpectation("violet", false);
466
- var peg$e79 = peg$literalExpectation("white", false);
467
- var peg$e80 = peg$literalExpectation("yellow", false);
468
- var peg$e81 = peg$otherExpectation("MinimalStyledText");
469
- var peg$e82 = peg$otherExpectation("MinimalStyledString");
470
- var peg$e83 = peg$literalExpectation("*", false);
471
- var peg$e84 = peg$literalExpectation("_", false);
472
- var peg$e85 = peg$literalExpectation("`", false);
473
- var peg$e86 = peg$literalExpectation("!", false);
474
- var peg$e87 = peg$literalExpectation("[!", false);
475
- var peg$e88 = peg$literalExpectation("]", false);
476
- var peg$e89 = peg$otherExpectation("Line Terminator");
477
- var peg$e90 = peg$literalExpectation("\n", false);
478
- var peg$e91 = peg$literalExpectation("\r\n", false);
479
- var peg$e92 = peg$literalExpectation("\r", false);
480
- var peg$e93 = peg$literalExpectation("\u2028", false);
481
- var peg$e94 = peg$literalExpectation("\u2029", false);
482
- var peg$e95 = peg$otherExpectation("whitespace in line");
483
- var peg$e96 = peg$otherExpectation("space");
484
- var peg$e97 = peg$otherExpectation("language tag separator");
485
- var peg$e98 = peg$otherExpectation("white space, separator");
486
- var peg$e99 = peg$classExpectation(["\t", "\v", "\f", " ", "\xA0", "\uFEFF", " ", "\xA0", "\u1680", ["\u2000", "\u200A"], "\u202F", "\u205F", "\u3000"], false, false);
487
- var peg$e100 = peg$classExpectation(["\n", "\r", "\u2028", "\u2029"], false, false);
488
- var peg$e101 = peg$classExpectation(["\n", "\r", "\u2028", "\u2029"], true, false);
489
- var peg$e102 = peg$classExpectation(["\n", "\r", "\u2028", "\u2029", "\t", "\v", "\f", " ", "\xA0", "\uFEFF", " ", "\xA0", "\u1680", ["\u2000", "\u200A"], "\u202F", "\u205F", "\u3000"], true, false);
490
- var peg$e103 = peg$literalExpectation("http", false);
491
- var peg$e104 = peg$literalExpectation("s", false);
492
- var peg$e105 = peg$literalExpectation("://", false);
493
- var peg$e106 = peg$literalExpectation("mailto:", false);
494
- var peg$e107 = peg$classExpectation([["a", "z"], ["A", "Z"], ["0", "9"], "!", "*", "'", "(", ")", "=", ["+", "/"], ".", "_", "?", "#", "@", "[", "]", "$", "&", "(", ")", ",", ";", "%", ":", "{", "}"], false, false);
495
- var peg$e108 = peg$literalExpectation("~", false);
496
- var peg$e109 = peg$literalExpectation("^", false);
497
- var peg$e110 = peg$literalExpectation("'", false);
406
+ var peg$e23 = peg$classExpectation([":", "|"], false, false);
407
+ var peg$e24 = peg$literalExpectation("width", false);
408
+ var peg$e25 = peg$literalExpectation("height", false);
409
+ var peg$e26 = peg$literalExpectation("alignment", false);
410
+ var peg$e27 = peg$literalExpectation("captionAlign", false);
411
+ var peg$e28 = peg$literalExpectation("left", false);
412
+ var peg$e29 = peg$literalExpectation("center", false);
413
+ var peg$e30 = peg$literalExpectation("right", false);
414
+ var peg$e31 = peg$otherExpectation("StyledString");
415
+ var peg$e32 = peg$literalExpectation("=", false);
416
+ var peg$e33 = peg$literalExpectation("\uD835\uDC53", false);
417
+ var peg$e34 = peg$literalExpectation("link:", false);
418
+ var peg$e35 = peg$literalExpectation("var:", false);
419
+ var peg$e36 = peg$literalExpectation("code:", false);
420
+ var peg$e37 = peg$literalExpectation("timer", false);
421
+ var peg$e38 = peg$literalExpectation("timer:", false);
422
+ var peg$e39 = peg$literalExpectation("duration:", false);
423
+ var peg$e40 = peg$literalExpectation("P", false);
424
+ var peg$e41 = peg$literalExpectation("color:", false);
425
+ var peg$e42 = peg$literalExpectation("bold", false);
426
+ var peg$e43 = peg$literalExpectation("italic", false);
427
+ var peg$e44 = peg$literalExpectation("light", false);
428
+ var peg$e45 = peg$literalExpectation("highlight", false);
429
+ var peg$e46 = peg$literalExpectation("strike", false);
430
+ var peg$e47 = peg$literalExpectation("subscript", false);
431
+ var peg$e48 = peg$literalExpectation("superscript", false);
432
+ var peg$e49 = peg$literalExpectation("ins", false);
433
+ var peg$e50 = peg$literalExpectation("del", false);
434
+ var peg$e51 = peg$literalExpectation("underline", false);
435
+ var peg$e52 = peg$literalExpectation("doubleUnderline", false);
436
+ var peg$e53 = peg$literalExpectation("circle", false);
437
+ var peg$e54 = peg$literalExpectation("languageEm", false);
438
+ var peg$e55 = peg$literalExpectation("userUnderline", false);
439
+ var peg$e56 = peg$literalExpectation("userDoubleUnderline", false);
440
+ var peg$e57 = peg$literalExpectation("userStrike", false);
441
+ var peg$e58 = peg$literalExpectation("userCircle", false);
442
+ var peg$e59 = peg$literalExpectation("userHighlight", false);
443
+ var peg$e60 = peg$literalExpectation("aqua", false);
444
+ var peg$e61 = peg$literalExpectation("black", false);
445
+ var peg$e62 = peg$literalExpectation("blue", false);
446
+ var peg$e63 = peg$literalExpectation("pink", false);
447
+ var peg$e64 = peg$literalExpectation("fuchsia", false);
448
+ var peg$e65 = peg$literalExpectation("lightgrey", false);
449
+ var peg$e66 = peg$literalExpectation("gray", false);
450
+ var peg$e67 = peg$literalExpectation("darkgray", false);
451
+ var peg$e68 = peg$literalExpectation("green", false);
452
+ var peg$e69 = peg$literalExpectation("lime", false);
453
+ var peg$e70 = peg$literalExpectation("magenta", false);
454
+ var peg$e71 = peg$literalExpectation("maroon", false);
455
+ var peg$e72 = peg$literalExpectation("navy", false);
456
+ var peg$e73 = peg$literalExpectation("olive", false);
457
+ var peg$e74 = peg$literalExpectation("orange", false);
458
+ var peg$e75 = peg$literalExpectation("purple", false);
459
+ var peg$e76 = peg$literalExpectation("red", false);
460
+ var peg$e77 = peg$literalExpectation("silver", false);
461
+ var peg$e78 = peg$literalExpectation("teal", false);
462
+ var peg$e79 = peg$literalExpectation("violet", false);
463
+ var peg$e80 = peg$literalExpectation("white", false);
464
+ var peg$e81 = peg$literalExpectation("yellow", false);
465
+ var peg$e82 = peg$otherExpectation("MinimalStyledText");
466
+ var peg$e83 = peg$otherExpectation("MinimalStyledString");
467
+ var peg$e84 = peg$literalExpectation("*", false);
468
+ var peg$e85 = peg$literalExpectation("_", false);
469
+ var peg$e86 = peg$literalExpectation("`", false);
470
+ var peg$e87 = peg$literalExpectation("!", false);
471
+ var peg$e88 = peg$literalExpectation("[!", false);
472
+ var peg$e89 = peg$literalExpectation("]", false);
473
+ var peg$e90 = peg$otherExpectation("Line Terminator");
474
+ var peg$e91 = peg$literalExpectation("\n", false);
475
+ var peg$e92 = peg$literalExpectation("\r\n", false);
476
+ var peg$e93 = peg$classExpectation(["\r", ["\u2028", "\u2029"]], false, false);
477
+ var peg$e94 = peg$otherExpectation("whitespace in line");
478
+ var peg$e95 = peg$otherExpectation("space");
479
+ var peg$e96 = peg$otherExpectation("language tag separator");
480
+ var peg$e97 = peg$otherExpectation("white space, separator");
481
+ var peg$e98 = peg$classExpectation(["\t", "\v", "\f", " ", "\xA0", "\uFEFF", " ", "\xA0", "\u1680", ["\u2000", "\u200A"], "\u202F", "\u205F", "\u3000"], false, false);
482
+ var peg$e99 = peg$classExpectation(["\n", "\r", "\u2028", "\u2029"], false, false);
483
+ var peg$e100 = peg$classExpectation(["\n", "\r", "\u2028", "\u2029"], true, false);
484
+ var peg$e101 = peg$classExpectation(["\n", "\r", "\u2028", "\u2029", "\t", "\v", "\f", " ", "\xA0", "\uFEFF", " ", "\xA0", "\u1680", ["\u2000", "\u200A"], "\u202F", "\u205F", "\u3000"], true, false);
485
+ var peg$e102 = peg$literalExpectation("http", false);
486
+ var peg$e103 = peg$literalExpectation("s", false);
487
+ var peg$e104 = peg$literalExpectation("://", false);
488
+ var peg$e105 = peg$literalExpectation("mailto:", false);
489
+ var peg$e106 = peg$classExpectation(["!", ["#", ";"], "=", ["?", "["], ["]", "_"], ["a", "{"], ["}", "~"]], false, false);
498
490
  var peg$f0 = function () { return VERSION; };
499
491
  var peg$f1 = function (b) { return Object.assign({}, b); };
500
492
  var peg$f2 = function (b) { let lb_ = Object.assign({}, b); removeTempParsingParent(lb_); return lb_; };
@@ -644,14 +636,14 @@ function peg$parse(input, options) {
644
636
  var peg$f71 = function (t) { return { marks: [{ type: "light" }], text: unbreakscape(t), type: "text" }; };
645
637
  var peg$f72 = function (t) { return { marks: [{ type: "highlight" }], text: unbreakscape(t), type: "text" }; };
646
638
  var peg$f73 = function (pr, t) { return { pr, t }; };
647
- var peg$currPos = 0;
648
- var peg$savedPos = 0;
639
+ var peg$currPos = options.peg$currPos | 0;
640
+ var peg$savedPos = peg$currPos;
649
641
  var peg$posDetailsCache = [{ line: 1, column: 1 }];
650
- var peg$maxFailPos = 0;
651
- var peg$maxFailExpected = [];
652
- var peg$silentFails = 0;
642
+ var peg$maxFailPos = peg$currPos;
643
+ var peg$maxFailExpected = options.peg$maxFailExpected || [];
644
+ var peg$silentFails = options.peg$silentFails | 0;
653
645
  var peg$result;
654
- if ("startRule" in options) {
646
+ if (options.startRule) {
655
647
  if (!(options.startRule in peg$startRuleFunctions)) {
656
648
  throw new Error("Can't start parsing from rule \"" + options.startRule + "\".");
657
649
  }
@@ -707,9 +699,12 @@ function peg$parse(input, options) {
707
699
  return details;
708
700
  }
709
701
  else {
710
- p = pos - 1;
711
- while (!peg$posDetailsCache[p]) {
712
- p--;
702
+ if (pos >= peg$posDetailsCache.length) {
703
+ p = peg$posDetailsCache.length - 1;
704
+ }
705
+ else {
706
+ p = pos;
707
+ while (!peg$posDetailsCache[--p]) { }
713
708
  }
714
709
  details = peg$posDetailsCache[p];
715
710
  details = {
@@ -1097,8 +1092,8 @@ function peg$parse(input, options) {
1097
1092
  s2 = peg$currPos;
1098
1093
  s3 = peg$currPos;
1099
1094
  s4 = [];
1100
- if (peg$r0.test(input.charAt(peg$currPos))) {
1101
- s5 = input.charAt(peg$currPos);
1095
+ s5 = input.charAt(peg$currPos);
1096
+ if (peg$r0.test(s5)) {
1102
1097
  peg$currPos++;
1103
1098
  }
1104
1099
  else {
@@ -1109,8 +1104,8 @@ function peg$parse(input, options) {
1109
1104
  }
1110
1105
  while (s5 !== peg$FAILED) {
1111
1106
  s4.push(s5);
1112
- if (peg$r0.test(input.charAt(peg$currPos))) {
1113
- s5 = input.charAt(peg$currPos);
1107
+ s5 = input.charAt(peg$currPos);
1108
+ if (peg$r0.test(s5)) {
1114
1109
  peg$currPos++;
1115
1110
  }
1116
1111
  else {
@@ -1168,8 +1163,8 @@ function peg$parse(input, options) {
1168
1163
  s4 = peg$currPos;
1169
1164
  s5 = peg$currPos;
1170
1165
  s6 = [];
1171
- if (peg$r0.test(input.charAt(peg$currPos))) {
1172
- s7 = input.charAt(peg$currPos);
1166
+ s7 = input.charAt(peg$currPos);
1167
+ if (peg$r0.test(s7)) {
1173
1168
  peg$currPos++;
1174
1169
  }
1175
1170
  else {
@@ -1180,8 +1175,8 @@ function peg$parse(input, options) {
1180
1175
  }
1181
1176
  while (s7 !== peg$FAILED) {
1182
1177
  s6.push(s7);
1183
- if (peg$r0.test(input.charAt(peg$currPos))) {
1184
- s7 = input.charAt(peg$currPos);
1178
+ s7 = input.charAt(peg$currPos);
1179
+ if (peg$r0.test(s7)) {
1185
1180
  peg$currPos++;
1186
1181
  }
1187
1182
  else {
@@ -1406,8 +1401,8 @@ function peg$parse(input, options) {
1406
1401
  }
1407
1402
  if (s2 !== peg$FAILED) {
1408
1403
  s3 = [];
1409
- if (peg$r1.test(input.charAt(peg$currPos))) {
1410
- s4 = input.charAt(peg$currPos);
1404
+ s4 = input.charAt(peg$currPos);
1405
+ if (peg$r1.test(s4)) {
1411
1406
  peg$currPos++;
1412
1407
  }
1413
1408
  else {
@@ -1418,8 +1413,8 @@ function peg$parse(input, options) {
1418
1413
  }
1419
1414
  while (s4 !== peg$FAILED) {
1420
1415
  s3.push(s4);
1421
- if (peg$r1.test(input.charAt(peg$currPos))) {
1422
- s4 = input.charAt(peg$currPos);
1416
+ s4 = input.charAt(peg$currPos);
1417
+ if (peg$r1.test(s4)) {
1423
1418
  peg$currPos++;
1424
1419
  }
1425
1420
  else {
@@ -2032,8 +2027,8 @@ function peg$parse(input, options) {
2032
2027
  var s0, s1, s2;
2033
2028
  s0 = peg$currPos;
2034
2029
  s1 = [];
2035
- if (peg$r0.test(input.charAt(peg$currPos))) {
2036
- s2 = input.charAt(peg$currPos);
2030
+ s2 = input.charAt(peg$currPos);
2031
+ if (peg$r0.test(s2)) {
2037
2032
  peg$currPos++;
2038
2033
  }
2039
2034
  else {
@@ -2044,8 +2039,8 @@ function peg$parse(input, options) {
2044
2039
  }
2045
2040
  while (s2 !== peg$FAILED) {
2046
2041
  s1.push(s2);
2047
- if (peg$r0.test(input.charAt(peg$currPos))) {
2048
- s2 = input.charAt(peg$currPos);
2042
+ s2 = input.charAt(peg$currPos);
2043
+ if (peg$r0.test(s2)) {
2049
2044
  peg$currPos++;
2050
2045
  }
2051
2046
  else {
@@ -2349,8 +2344,8 @@ function peg$parse(input, options) {
2349
2344
  s2 = peg$currPos;
2350
2345
  s3 = peg$currPos;
2351
2346
  s4 = [];
2352
- if (peg$r0.test(input.charAt(peg$currPos))) {
2353
- s5 = input.charAt(peg$currPos);
2347
+ s5 = input.charAt(peg$currPos);
2348
+ if (peg$r0.test(s5)) {
2354
2349
  peg$currPos++;
2355
2350
  }
2356
2351
  else {
@@ -2361,8 +2356,8 @@ function peg$parse(input, options) {
2361
2356
  }
2362
2357
  while (s5 !== peg$FAILED) {
2363
2358
  s4.push(s5);
2364
- if (peg$r0.test(input.charAt(peg$currPos))) {
2365
- s5 = input.charAt(peg$currPos);
2359
+ s5 = input.charAt(peg$currPos);
2360
+ if (peg$r0.test(s5)) {
2366
2361
  peg$currPos++;
2367
2362
  }
2368
2363
  else {
@@ -2478,8 +2473,8 @@ function peg$parse(input, options) {
2478
2473
  s7 = peg$currPos;
2479
2474
  s8 = peg$currPos;
2480
2475
  s9 = [];
2481
- if (peg$r0.test(input.charAt(peg$currPos))) {
2482
- s10 = input.charAt(peg$currPos);
2476
+ s10 = input.charAt(peg$currPos);
2477
+ if (peg$r0.test(s10)) {
2483
2478
  peg$currPos++;
2484
2479
  }
2485
2480
  else {
@@ -2490,8 +2485,8 @@ function peg$parse(input, options) {
2490
2485
  }
2491
2486
  while (s10 !== peg$FAILED) {
2492
2487
  s9.push(s10);
2493
- if (peg$r0.test(input.charAt(peg$currPos))) {
2494
- s10 = input.charAt(peg$currPos);
2488
+ s10 = input.charAt(peg$currPos);
2489
+ if (peg$r0.test(s10)) {
2495
2490
  peg$currPos++;
2496
2491
  }
2497
2492
  else {
@@ -2719,8 +2714,8 @@ function peg$parse(input, options) {
2719
2714
  s8 = peg$FAILED;
2720
2715
  }
2721
2716
  if (s8 !== peg$FAILED) {
2722
- if (peg$r1.test(input.charAt(peg$currPos))) {
2723
- s9 = input.charAt(peg$currPos);
2717
+ s9 = input.charAt(peg$currPos);
2718
+ if (peg$r1.test(s9)) {
2724
2719
  peg$currPos++;
2725
2720
  }
2726
2721
  else {
@@ -2758,8 +2753,8 @@ function peg$parse(input, options) {
2758
2753
  s8 = peg$FAILED;
2759
2754
  }
2760
2755
  if (s8 !== peg$FAILED) {
2761
- if (peg$r1.test(input.charAt(peg$currPos))) {
2762
- s9 = input.charAt(peg$currPos);
2756
+ s9 = input.charAt(peg$currPos);
2757
+ if (peg$r1.test(s9)) {
2763
2758
  peg$currPos++;
2764
2759
  }
2765
2760
  else {
@@ -3046,46 +3041,43 @@ function peg$parse(input, options) {
3046
3041
  s4 = peg$currPos;
3047
3042
  s5 = peg$currPos;
3048
3043
  peg$silentFails++;
3049
- s6 = peg$parseBlockTag();
3050
- if (s6 === peg$FAILED) {
3051
- if (input.charCodeAt(peg$currPos) === 58) {
3052
- s6 = peg$c1;
3053
- peg$currPos++;
3044
+ s6 = input.charAt(peg$currPos);
3045
+ if (peg$r2.test(s6)) {
3046
+ peg$currPos++;
3047
+ }
3048
+ else {
3049
+ s6 = peg$FAILED;
3050
+ if (peg$silentFails === 0) {
3051
+ peg$fail(peg$e23);
3054
3052
  }
3055
- else {
3056
- s6 = peg$FAILED;
3057
- if (peg$silentFails === 0) {
3058
- peg$fail(peg$e3);
3053
+ }
3054
+ if (s6 === peg$FAILED) {
3055
+ s6 = peg$currPos;
3056
+ s7 = peg$parseAlignmentTags();
3057
+ if (s7 !== peg$FAILED) {
3058
+ if (input.charCodeAt(peg$currPos) === 58) {
3059
+ s8 = peg$c1;
3060
+ peg$currPos++;
3059
3061
  }
3060
- }
3061
- if (s6 === peg$FAILED) {
3062
- s6 = peg$currPos;
3063
- s7 = peg$parseAlignmentTags();
3064
- if (s7 !== peg$FAILED) {
3065
- if (input.charCodeAt(peg$currPos) === 58) {
3066
- s8 = peg$c1;
3067
- peg$currPos++;
3068
- }
3069
- else {
3070
- s8 = peg$FAILED;
3071
- if (peg$silentFails === 0) {
3072
- peg$fail(peg$e3);
3073
- }
3074
- }
3075
- if (s8 !== peg$FAILED) {
3076
- s7 = [s7, s8];
3077
- s6 = s7;
3078
- }
3079
- else {
3080
- peg$currPos = s6;
3081
- s6 = peg$FAILED;
3062
+ else {
3063
+ s8 = peg$FAILED;
3064
+ if (peg$silentFails === 0) {
3065
+ peg$fail(peg$e3);
3082
3066
  }
3083
3067
  }
3068
+ if (s8 !== peg$FAILED) {
3069
+ s7 = [s7, s8];
3070
+ s6 = s7;
3071
+ }
3084
3072
  else {
3085
3073
  peg$currPos = s6;
3086
3074
  s6 = peg$FAILED;
3087
3075
  }
3088
3076
  }
3077
+ else {
3078
+ peg$currPos = s6;
3079
+ s6 = peg$FAILED;
3080
+ }
3089
3081
  }
3090
3082
  peg$silentFails--;
3091
3083
  if (s6 === peg$FAILED) {
@@ -3115,46 +3107,43 @@ function peg$parse(input, options) {
3115
3107
  s4 = peg$currPos;
3116
3108
  s5 = peg$currPos;
3117
3109
  peg$silentFails++;
3118
- s6 = peg$parseBlockTag();
3119
- if (s6 === peg$FAILED) {
3120
- if (input.charCodeAt(peg$currPos) === 58) {
3121
- s6 = peg$c1;
3122
- peg$currPos++;
3110
+ s6 = input.charAt(peg$currPos);
3111
+ if (peg$r2.test(s6)) {
3112
+ peg$currPos++;
3113
+ }
3114
+ else {
3115
+ s6 = peg$FAILED;
3116
+ if (peg$silentFails === 0) {
3117
+ peg$fail(peg$e23);
3123
3118
  }
3124
- else {
3125
- s6 = peg$FAILED;
3126
- if (peg$silentFails === 0) {
3127
- peg$fail(peg$e3);
3119
+ }
3120
+ if (s6 === peg$FAILED) {
3121
+ s6 = peg$currPos;
3122
+ s7 = peg$parseAlignmentTags();
3123
+ if (s7 !== peg$FAILED) {
3124
+ if (input.charCodeAt(peg$currPos) === 58) {
3125
+ s8 = peg$c1;
3126
+ peg$currPos++;
3128
3127
  }
3129
- }
3130
- if (s6 === peg$FAILED) {
3131
- s6 = peg$currPos;
3132
- s7 = peg$parseAlignmentTags();
3133
- if (s7 !== peg$FAILED) {
3134
- if (input.charCodeAt(peg$currPos) === 58) {
3135
- s8 = peg$c1;
3136
- peg$currPos++;
3137
- }
3138
- else {
3139
- s8 = peg$FAILED;
3140
- if (peg$silentFails === 0) {
3141
- peg$fail(peg$e3);
3142
- }
3143
- }
3144
- if (s8 !== peg$FAILED) {
3145
- s7 = [s7, s8];
3146
- s6 = s7;
3147
- }
3148
- else {
3149
- peg$currPos = s6;
3150
- s6 = peg$FAILED;
3128
+ else {
3129
+ s8 = peg$FAILED;
3130
+ if (peg$silentFails === 0) {
3131
+ peg$fail(peg$e3);
3151
3132
  }
3152
3133
  }
3134
+ if (s8 !== peg$FAILED) {
3135
+ s7 = [s7, s8];
3136
+ s6 = s7;
3137
+ }
3153
3138
  else {
3154
3139
  peg$currPos = s6;
3155
3140
  s6 = peg$FAILED;
3156
3141
  }
3157
3142
  }
3143
+ else {
3144
+ peg$currPos = s6;
3145
+ s6 = peg$FAILED;
3146
+ }
3158
3147
  }
3159
3148
  peg$silentFails--;
3160
3149
  if (s6 === peg$FAILED) {
@@ -3435,7 +3424,7 @@ function peg$parse(input, options) {
3435
3424
  else {
3436
3425
  s0 = peg$FAILED;
3437
3426
  if (peg$silentFails === 0) {
3438
- peg$fail(peg$e23);
3427
+ peg$fail(peg$e24);
3439
3428
  }
3440
3429
  }
3441
3430
  if (s0 === peg$FAILED) {
@@ -3446,7 +3435,7 @@ function peg$parse(input, options) {
3446
3435
  else {
3447
3436
  s0 = peg$FAILED;
3448
3437
  if (peg$silentFails === 0) {
3449
- peg$fail(peg$e24);
3438
+ peg$fail(peg$e25);
3450
3439
  }
3451
3440
  }
3452
3441
  }
@@ -3461,7 +3450,7 @@ function peg$parse(input, options) {
3461
3450
  else {
3462
3451
  s0 = peg$FAILED;
3463
3452
  if (peg$silentFails === 0) {
3464
- peg$fail(peg$e25);
3453
+ peg$fail(peg$e26);
3465
3454
  }
3466
3455
  }
3467
3456
  if (s0 === peg$FAILED) {
@@ -3472,7 +3461,7 @@ function peg$parse(input, options) {
3472
3461
  else {
3473
3462
  s0 = peg$FAILED;
3474
3463
  if (peg$silentFails === 0) {
3475
- peg$fail(peg$e26);
3464
+ peg$fail(peg$e27);
3476
3465
  }
3477
3466
  }
3478
3467
  }
@@ -3487,7 +3476,7 @@ function peg$parse(input, options) {
3487
3476
  else {
3488
3477
  s0 = peg$FAILED;
3489
3478
  if (peg$silentFails === 0) {
3490
- peg$fail(peg$e27);
3479
+ peg$fail(peg$e28);
3491
3480
  }
3492
3481
  }
3493
3482
  if (s0 === peg$FAILED) {
@@ -3498,7 +3487,7 @@ function peg$parse(input, options) {
3498
3487
  else {
3499
3488
  s0 = peg$FAILED;
3500
3489
  if (peg$silentFails === 0) {
3501
- peg$fail(peg$e28);
3490
+ peg$fail(peg$e29);
3502
3491
  }
3503
3492
  }
3504
3493
  if (s0 === peg$FAILED) {
@@ -3509,7 +3498,7 @@ function peg$parse(input, options) {
3509
3498
  else {
3510
3499
  s0 = peg$FAILED;
3511
3500
  if (peg$silentFails === 0) {
3512
- peg$fail(peg$e29);
3501
+ peg$fail(peg$e30);
3513
3502
  }
3514
3503
  }
3515
3504
  }
@@ -3538,7 +3527,7 @@ function peg$parse(input, options) {
3538
3527
  peg$silentFails--;
3539
3528
  s1 = peg$FAILED;
3540
3529
  if (peg$silentFails === 0) {
3541
- peg$fail(peg$e30);
3530
+ peg$fail(peg$e31);
3542
3531
  }
3543
3532
  return s0;
3544
3533
  }
@@ -3729,7 +3718,7 @@ function peg$parse(input, options) {
3729
3718
  else {
3730
3719
  s0 = peg$FAILED;
3731
3720
  if (peg$silentFails === 0) {
3732
- peg$fail(peg$e31);
3721
+ peg$fail(peg$e32);
3733
3722
  }
3734
3723
  }
3735
3724
  return s0;
@@ -3743,7 +3732,7 @@ function peg$parse(input, options) {
3743
3732
  else {
3744
3733
  s0 = peg$FAILED;
3745
3734
  if (peg$silentFails === 0) {
3746
- peg$fail(peg$e32);
3735
+ peg$fail(peg$e33);
3747
3736
  }
3748
3737
  }
3749
3738
  return s0;
@@ -3797,8 +3786,8 @@ function peg$parse(input, options) {
3797
3786
  if (s1 !== peg$FAILED) {
3798
3787
  s2 = peg$currPos;
3799
3788
  s3 = [];
3800
- if (peg$r1.test(input.charAt(peg$currPos))) {
3801
- s4 = input.charAt(peg$currPos);
3789
+ s4 = input.charAt(peg$currPos);
3790
+ if (peg$r1.test(s4)) {
3802
3791
  peg$currPos++;
3803
3792
  }
3804
3793
  else {
@@ -3810,8 +3799,8 @@ function peg$parse(input, options) {
3810
3799
  if (s4 !== peg$FAILED) {
3811
3800
  while (s4 !== peg$FAILED) {
3812
3801
  s3.push(s4);
3813
- if (peg$r1.test(input.charAt(peg$currPos))) {
3814
- s4 = input.charAt(peg$currPos);
3802
+ s4 = input.charAt(peg$currPos);
3803
+ if (peg$r1.test(s4)) {
3815
3804
  peg$currPos++;
3816
3805
  }
3817
3806
  else {
@@ -4900,7 +4889,7 @@ function peg$parse(input, options) {
4900
4889
  else {
4901
4890
  s1 = peg$FAILED;
4902
4891
  if (peg$silentFails === 0) {
4903
- peg$fail(peg$e33);
4892
+ peg$fail(peg$e34);
4904
4893
  }
4905
4894
  }
4906
4895
  if (s1 !== peg$FAILED) {
@@ -4987,7 +4976,7 @@ function peg$parse(input, options) {
4987
4976
  else {
4988
4977
  s1 = peg$FAILED;
4989
4978
  if (peg$silentFails === 0) {
4990
- peg$fail(peg$e34);
4979
+ peg$fail(peg$e35);
4991
4980
  }
4992
4981
  }
4993
4982
  if (s1 !== peg$FAILED) {
@@ -5101,7 +5090,7 @@ function peg$parse(input, options) {
5101
5090
  else {
5102
5091
  s1 = peg$FAILED;
5103
5092
  if (peg$silentFails === 0) {
5104
- peg$fail(peg$e35);
5093
+ peg$fail(peg$e36);
5105
5094
  }
5106
5095
  }
5107
5096
  if (s1 !== peg$FAILED) {
@@ -5188,7 +5177,7 @@ function peg$parse(input, options) {
5188
5177
  else {
5189
5178
  s1 = peg$FAILED;
5190
5179
  if (peg$silentFails === 0) {
5191
- peg$fail(peg$e36);
5180
+ peg$fail(peg$e37);
5192
5181
  }
5193
5182
  }
5194
5183
  if (s1 !== peg$FAILED) {
@@ -5215,7 +5204,7 @@ function peg$parse(input, options) {
5215
5204
  else {
5216
5205
  s1 = peg$FAILED;
5217
5206
  if (peg$silentFails === 0) {
5218
- peg$fail(peg$e37);
5207
+ peg$fail(peg$e38);
5219
5208
  }
5220
5209
  }
5221
5210
  if (s1 !== peg$FAILED) {
@@ -5302,7 +5291,7 @@ function peg$parse(input, options) {
5302
5291
  else {
5303
5292
  s1 = peg$FAILED;
5304
5293
  if (peg$silentFails === 0) {
5305
- peg$fail(peg$e38);
5294
+ peg$fail(peg$e39);
5306
5295
  }
5307
5296
  }
5308
5297
  if (s1 !== peg$FAILED) {
@@ -5315,7 +5304,7 @@ function peg$parse(input, options) {
5315
5304
  else {
5316
5305
  s4 = peg$FAILED;
5317
5306
  if (peg$silentFails === 0) {
5318
- peg$fail(peg$e39);
5307
+ peg$fail(peg$e40);
5319
5308
  }
5320
5309
  }
5321
5310
  if (s4 !== peg$FAILED) {
@@ -5421,7 +5410,7 @@ function peg$parse(input, options) {
5421
5410
  else {
5422
5411
  s1 = peg$FAILED;
5423
5412
  if (peg$silentFails === 0) {
5424
- peg$fail(peg$e40);
5413
+ peg$fail(peg$e41);
5425
5414
  }
5426
5415
  }
5427
5416
  if (s1 !== peg$FAILED) {
@@ -5571,7 +5560,7 @@ function peg$parse(input, options) {
5571
5560
  else {
5572
5561
  s0 = peg$FAILED;
5573
5562
  if (peg$silentFails === 0) {
5574
- peg$fail(peg$e41);
5563
+ peg$fail(peg$e42);
5575
5564
  }
5576
5565
  }
5577
5566
  if (s0 === peg$FAILED) {
@@ -5582,7 +5571,7 @@ function peg$parse(input, options) {
5582
5571
  else {
5583
5572
  s0 = peg$FAILED;
5584
5573
  if (peg$silentFails === 0) {
5585
- peg$fail(peg$e42);
5574
+ peg$fail(peg$e43);
5586
5575
  }
5587
5576
  }
5588
5577
  if (s0 === peg$FAILED) {
@@ -5593,7 +5582,7 @@ function peg$parse(input, options) {
5593
5582
  else {
5594
5583
  s0 = peg$FAILED;
5595
5584
  if (peg$silentFails === 0) {
5596
- peg$fail(peg$e43);
5585
+ peg$fail(peg$e44);
5597
5586
  }
5598
5587
  }
5599
5588
  if (s0 === peg$FAILED) {
@@ -5604,7 +5593,7 @@ function peg$parse(input, options) {
5604
5593
  else {
5605
5594
  s0 = peg$FAILED;
5606
5595
  if (peg$silentFails === 0) {
5607
- peg$fail(peg$e44);
5596
+ peg$fail(peg$e45);
5608
5597
  }
5609
5598
  }
5610
5599
  if (s0 === peg$FAILED) {
@@ -5615,7 +5604,7 @@ function peg$parse(input, options) {
5615
5604
  else {
5616
5605
  s0 = peg$FAILED;
5617
5606
  if (peg$silentFails === 0) {
5618
- peg$fail(peg$e45);
5607
+ peg$fail(peg$e46);
5619
5608
  }
5620
5609
  }
5621
5610
  if (s0 === peg$FAILED) {
@@ -5626,7 +5615,7 @@ function peg$parse(input, options) {
5626
5615
  else {
5627
5616
  s0 = peg$FAILED;
5628
5617
  if (peg$silentFails === 0) {
5629
- peg$fail(peg$e46);
5618
+ peg$fail(peg$e47);
5630
5619
  }
5631
5620
  }
5632
5621
  if (s0 === peg$FAILED) {
@@ -5637,7 +5626,7 @@ function peg$parse(input, options) {
5637
5626
  else {
5638
5627
  s0 = peg$FAILED;
5639
5628
  if (peg$silentFails === 0) {
5640
- peg$fail(peg$e47);
5629
+ peg$fail(peg$e48);
5641
5630
  }
5642
5631
  }
5643
5632
  if (s0 === peg$FAILED) {
@@ -5648,7 +5637,7 @@ function peg$parse(input, options) {
5648
5637
  else {
5649
5638
  s0 = peg$FAILED;
5650
5639
  if (peg$silentFails === 0) {
5651
- peg$fail(peg$e48);
5640
+ peg$fail(peg$e49);
5652
5641
  }
5653
5642
  }
5654
5643
  if (s0 === peg$FAILED) {
@@ -5659,7 +5648,7 @@ function peg$parse(input, options) {
5659
5648
  else {
5660
5649
  s0 = peg$FAILED;
5661
5650
  if (peg$silentFails === 0) {
5662
- peg$fail(peg$e49);
5651
+ peg$fail(peg$e50);
5663
5652
  }
5664
5653
  }
5665
5654
  if (s0 === peg$FAILED) {
@@ -5670,7 +5659,7 @@ function peg$parse(input, options) {
5670
5659
  else {
5671
5660
  s0 = peg$FAILED;
5672
5661
  if (peg$silentFails === 0) {
5673
- peg$fail(peg$e50);
5662
+ peg$fail(peg$e51);
5674
5663
  }
5675
5664
  }
5676
5665
  if (s0 === peg$FAILED) {
@@ -5681,7 +5670,7 @@ function peg$parse(input, options) {
5681
5670
  else {
5682
5671
  s0 = peg$FAILED;
5683
5672
  if (peg$silentFails === 0) {
5684
- peg$fail(peg$e51);
5673
+ peg$fail(peg$e52);
5685
5674
  }
5686
5675
  }
5687
5676
  if (s0 === peg$FAILED) {
@@ -5692,7 +5681,7 @@ function peg$parse(input, options) {
5692
5681
  else {
5693
5682
  s0 = peg$FAILED;
5694
5683
  if (peg$silentFails === 0) {
5695
- peg$fail(peg$e52);
5684
+ peg$fail(peg$e53);
5696
5685
  }
5697
5686
  }
5698
5687
  if (s0 === peg$FAILED) {
@@ -5703,7 +5692,7 @@ function peg$parse(input, options) {
5703
5692
  else {
5704
5693
  s0 = peg$FAILED;
5705
5694
  if (peg$silentFails === 0) {
5706
- peg$fail(peg$e53);
5695
+ peg$fail(peg$e54);
5707
5696
  }
5708
5697
  }
5709
5698
  if (s0 === peg$FAILED) {
@@ -5714,7 +5703,7 @@ function peg$parse(input, options) {
5714
5703
  else {
5715
5704
  s0 = peg$FAILED;
5716
5705
  if (peg$silentFails === 0) {
5717
- peg$fail(peg$e54);
5706
+ peg$fail(peg$e55);
5718
5707
  }
5719
5708
  }
5720
5709
  if (s0 === peg$FAILED) {
@@ -5725,7 +5714,7 @@ function peg$parse(input, options) {
5725
5714
  else {
5726
5715
  s0 = peg$FAILED;
5727
5716
  if (peg$silentFails === 0) {
5728
- peg$fail(peg$e55);
5717
+ peg$fail(peg$e56);
5729
5718
  }
5730
5719
  }
5731
5720
  if (s0 === peg$FAILED) {
@@ -5736,7 +5725,7 @@ function peg$parse(input, options) {
5736
5725
  else {
5737
5726
  s0 = peg$FAILED;
5738
5727
  if (peg$silentFails === 0) {
5739
- peg$fail(peg$e56);
5728
+ peg$fail(peg$e57);
5740
5729
  }
5741
5730
  }
5742
5731
  if (s0 === peg$FAILED) {
@@ -5747,7 +5736,7 @@ function peg$parse(input, options) {
5747
5736
  else {
5748
5737
  s0 = peg$FAILED;
5749
5738
  if (peg$silentFails === 0) {
5750
- peg$fail(peg$e57);
5739
+ peg$fail(peg$e58);
5751
5740
  }
5752
5741
  }
5753
5742
  if (s0 === peg$FAILED) {
@@ -5758,7 +5747,7 @@ function peg$parse(input, options) {
5758
5747
  else {
5759
5748
  s0 = peg$FAILED;
5760
5749
  if (peg$silentFails === 0) {
5761
- peg$fail(peg$e58);
5750
+ peg$fail(peg$e59);
5762
5751
  }
5763
5752
  }
5764
5753
  }
@@ -5789,7 +5778,7 @@ function peg$parse(input, options) {
5789
5778
  else {
5790
5779
  s0 = peg$FAILED;
5791
5780
  if (peg$silentFails === 0) {
5792
- peg$fail(peg$e59);
5781
+ peg$fail(peg$e60);
5793
5782
  }
5794
5783
  }
5795
5784
  if (s0 === peg$FAILED) {
@@ -5800,7 +5789,7 @@ function peg$parse(input, options) {
5800
5789
  else {
5801
5790
  s0 = peg$FAILED;
5802
5791
  if (peg$silentFails === 0) {
5803
- peg$fail(peg$e60);
5792
+ peg$fail(peg$e61);
5804
5793
  }
5805
5794
  }
5806
5795
  if (s0 === peg$FAILED) {
@@ -5811,7 +5800,7 @@ function peg$parse(input, options) {
5811
5800
  else {
5812
5801
  s0 = peg$FAILED;
5813
5802
  if (peg$silentFails === 0) {
5814
- peg$fail(peg$e61);
5803
+ peg$fail(peg$e62);
5815
5804
  }
5816
5805
  }
5817
5806
  if (s0 === peg$FAILED) {
@@ -5822,7 +5811,7 @@ function peg$parse(input, options) {
5822
5811
  else {
5823
5812
  s0 = peg$FAILED;
5824
5813
  if (peg$silentFails === 0) {
5825
- peg$fail(peg$e62);
5814
+ peg$fail(peg$e63);
5826
5815
  }
5827
5816
  }
5828
5817
  if (s0 === peg$FAILED) {
@@ -5833,7 +5822,7 @@ function peg$parse(input, options) {
5833
5822
  else {
5834
5823
  s0 = peg$FAILED;
5835
5824
  if (peg$silentFails === 0) {
5836
- peg$fail(peg$e63);
5825
+ peg$fail(peg$e64);
5837
5826
  }
5838
5827
  }
5839
5828
  if (s0 === peg$FAILED) {
@@ -5844,7 +5833,7 @@ function peg$parse(input, options) {
5844
5833
  else {
5845
5834
  s0 = peg$FAILED;
5846
5835
  if (peg$silentFails === 0) {
5847
- peg$fail(peg$e64);
5836
+ peg$fail(peg$e65);
5848
5837
  }
5849
5838
  }
5850
5839
  if (s0 === peg$FAILED) {
@@ -5855,7 +5844,7 @@ function peg$parse(input, options) {
5855
5844
  else {
5856
5845
  s0 = peg$FAILED;
5857
5846
  if (peg$silentFails === 0) {
5858
- peg$fail(peg$e65);
5847
+ peg$fail(peg$e66);
5859
5848
  }
5860
5849
  }
5861
5850
  if (s0 === peg$FAILED) {
@@ -5866,7 +5855,7 @@ function peg$parse(input, options) {
5866
5855
  else {
5867
5856
  s0 = peg$FAILED;
5868
5857
  if (peg$silentFails === 0) {
5869
- peg$fail(peg$e66);
5858
+ peg$fail(peg$e67);
5870
5859
  }
5871
5860
  }
5872
5861
  if (s0 === peg$FAILED) {
@@ -5877,7 +5866,7 @@ function peg$parse(input, options) {
5877
5866
  else {
5878
5867
  s0 = peg$FAILED;
5879
5868
  if (peg$silentFails === 0) {
5880
- peg$fail(peg$e67);
5869
+ peg$fail(peg$e68);
5881
5870
  }
5882
5871
  }
5883
5872
  if (s0 === peg$FAILED) {
@@ -5888,7 +5877,7 @@ function peg$parse(input, options) {
5888
5877
  else {
5889
5878
  s0 = peg$FAILED;
5890
5879
  if (peg$silentFails === 0) {
5891
- peg$fail(peg$e68);
5880
+ peg$fail(peg$e69);
5892
5881
  }
5893
5882
  }
5894
5883
  if (s0 === peg$FAILED) {
@@ -5899,7 +5888,7 @@ function peg$parse(input, options) {
5899
5888
  else {
5900
5889
  s0 = peg$FAILED;
5901
5890
  if (peg$silentFails === 0) {
5902
- peg$fail(peg$e69);
5891
+ peg$fail(peg$e70);
5903
5892
  }
5904
5893
  }
5905
5894
  if (s0 === peg$FAILED) {
@@ -5910,7 +5899,7 @@ function peg$parse(input, options) {
5910
5899
  else {
5911
5900
  s0 = peg$FAILED;
5912
5901
  if (peg$silentFails === 0) {
5913
- peg$fail(peg$e70);
5902
+ peg$fail(peg$e71);
5914
5903
  }
5915
5904
  }
5916
5905
  if (s0 === peg$FAILED) {
@@ -5921,7 +5910,7 @@ function peg$parse(input, options) {
5921
5910
  else {
5922
5911
  s0 = peg$FAILED;
5923
5912
  if (peg$silentFails === 0) {
5924
- peg$fail(peg$e71);
5913
+ peg$fail(peg$e72);
5925
5914
  }
5926
5915
  }
5927
5916
  if (s0 === peg$FAILED) {
@@ -5932,7 +5921,7 @@ function peg$parse(input, options) {
5932
5921
  else {
5933
5922
  s0 = peg$FAILED;
5934
5923
  if (peg$silentFails === 0) {
5935
- peg$fail(peg$e72);
5924
+ peg$fail(peg$e73);
5936
5925
  }
5937
5926
  }
5938
5927
  if (s0 === peg$FAILED) {
@@ -5943,7 +5932,7 @@ function peg$parse(input, options) {
5943
5932
  else {
5944
5933
  s0 = peg$FAILED;
5945
5934
  if (peg$silentFails === 0) {
5946
- peg$fail(peg$e73);
5935
+ peg$fail(peg$e74);
5947
5936
  }
5948
5937
  }
5949
5938
  if (s0 === peg$FAILED) {
@@ -5954,7 +5943,7 @@ function peg$parse(input, options) {
5954
5943
  else {
5955
5944
  s0 = peg$FAILED;
5956
5945
  if (peg$silentFails === 0) {
5957
- peg$fail(peg$e74);
5946
+ peg$fail(peg$e75);
5958
5947
  }
5959
5948
  }
5960
5949
  if (s0 === peg$FAILED) {
@@ -5965,7 +5954,7 @@ function peg$parse(input, options) {
5965
5954
  else {
5966
5955
  s0 = peg$FAILED;
5967
5956
  if (peg$silentFails === 0) {
5968
- peg$fail(peg$e75);
5957
+ peg$fail(peg$e76);
5969
5958
  }
5970
5959
  }
5971
5960
  if (s0 === peg$FAILED) {
@@ -5976,7 +5965,7 @@ function peg$parse(input, options) {
5976
5965
  else {
5977
5966
  s0 = peg$FAILED;
5978
5967
  if (peg$silentFails === 0) {
5979
- peg$fail(peg$e76);
5968
+ peg$fail(peg$e77);
5980
5969
  }
5981
5970
  }
5982
5971
  if (s0 === peg$FAILED) {
@@ -5987,7 +5976,7 @@ function peg$parse(input, options) {
5987
5976
  else {
5988
5977
  s0 = peg$FAILED;
5989
5978
  if (peg$silentFails === 0) {
5990
- peg$fail(peg$e77);
5979
+ peg$fail(peg$e78);
5991
5980
  }
5992
5981
  }
5993
5982
  if (s0 === peg$FAILED) {
@@ -5998,7 +5987,7 @@ function peg$parse(input, options) {
5998
5987
  else {
5999
5988
  s0 = peg$FAILED;
6000
5989
  if (peg$silentFails === 0) {
6001
- peg$fail(peg$e78);
5990
+ peg$fail(peg$e79);
6002
5991
  }
6003
5992
  }
6004
5993
  if (s0 === peg$FAILED) {
@@ -6009,7 +5998,7 @@ function peg$parse(input, options) {
6009
5998
  else {
6010
5999
  s0 = peg$FAILED;
6011
6000
  if (peg$silentFails === 0) {
6012
- peg$fail(peg$e79);
6001
+ peg$fail(peg$e80);
6013
6002
  }
6014
6003
  }
6015
6004
  if (s0 === peg$FAILED) {
@@ -6020,7 +6009,7 @@ function peg$parse(input, options) {
6020
6009
  else {
6021
6010
  s0 = peg$FAILED;
6022
6011
  if (peg$silentFails === 0) {
6023
- peg$fail(peg$e80);
6012
+ peg$fail(peg$e81);
6024
6013
  }
6025
6014
  }
6026
6015
  }
@@ -6057,7 +6046,7 @@ function peg$parse(input, options) {
6057
6046
  peg$silentFails--;
6058
6047
  s1 = peg$FAILED;
6059
6048
  if (peg$silentFails === 0) {
6060
- peg$fail(peg$e81);
6049
+ peg$fail(peg$e82);
6061
6050
  }
6062
6051
  return s0;
6063
6052
  }
@@ -6086,7 +6075,7 @@ function peg$parse(input, options) {
6086
6075
  peg$silentFails--;
6087
6076
  s1 = peg$FAILED;
6088
6077
  if (peg$silentFails === 0) {
6089
- peg$fail(peg$e82);
6078
+ peg$fail(peg$e83);
6090
6079
  }
6091
6080
  return s0;
6092
6081
  }
@@ -6208,7 +6197,7 @@ function peg$parse(input, options) {
6208
6197
  else {
6209
6198
  s0 = peg$FAILED;
6210
6199
  if (peg$silentFails === 0) {
6211
- peg$fail(peg$e83);
6200
+ peg$fail(peg$e84);
6212
6201
  }
6213
6202
  }
6214
6203
  return s0;
@@ -6222,7 +6211,7 @@ function peg$parse(input, options) {
6222
6211
  else {
6223
6212
  s0 = peg$FAILED;
6224
6213
  if (peg$silentFails === 0) {
6225
- peg$fail(peg$e84);
6214
+ peg$fail(peg$e85);
6226
6215
  }
6227
6216
  }
6228
6217
  return s0;
@@ -6236,7 +6225,7 @@ function peg$parse(input, options) {
6236
6225
  else {
6237
6226
  s0 = peg$FAILED;
6238
6227
  if (peg$silentFails === 0) {
6239
- peg$fail(peg$e85);
6228
+ peg$fail(peg$e86);
6240
6229
  }
6241
6230
  }
6242
6231
  return s0;
@@ -6250,7 +6239,7 @@ function peg$parse(input, options) {
6250
6239
  else {
6251
6240
  s0 = peg$FAILED;
6252
6241
  if (peg$silentFails === 0) {
6253
- peg$fail(peg$e86);
6242
+ peg$fail(peg$e87);
6254
6243
  }
6255
6244
  }
6256
6245
  return s0;
@@ -6348,7 +6337,7 @@ function peg$parse(input, options) {
6348
6337
  else {
6349
6338
  s0 = peg$FAILED;
6350
6339
  if (peg$silentFails === 0) {
6351
- peg$fail(peg$e87);
6340
+ peg$fail(peg$e88);
6352
6341
  }
6353
6342
  }
6354
6343
  return s0;
@@ -6362,7 +6351,7 @@ function peg$parse(input, options) {
6362
6351
  else {
6363
6352
  s0 = peg$FAILED;
6364
6353
  if (peg$silentFails === 0) {
6365
- peg$fail(peg$e88);
6354
+ peg$fail(peg$e89);
6366
6355
  }
6367
6356
  }
6368
6357
  return s0;
@@ -6374,8 +6363,8 @@ function peg$parse(input, options) {
6374
6363
  if (s1 !== peg$FAILED) {
6375
6364
  s2 = peg$currPos;
6376
6365
  s3 = [];
6377
- if (peg$r1.test(input.charAt(peg$currPos))) {
6378
- s4 = input.charAt(peg$currPos);
6366
+ s4 = input.charAt(peg$currPos);
6367
+ if (peg$r1.test(s4)) {
6379
6368
  peg$currPos++;
6380
6369
  }
6381
6370
  else {
@@ -6387,8 +6376,8 @@ function peg$parse(input, options) {
6387
6376
  if (s4 !== peg$FAILED) {
6388
6377
  while (s4 !== peg$FAILED) {
6389
6378
  s3.push(s4);
6390
- if (peg$r1.test(input.charAt(peg$currPos))) {
6391
- s4 = input.charAt(peg$currPos);
6379
+ s4 = input.charAt(peg$currPos);
6380
+ if (peg$r1.test(s4)) {
6392
6381
  peg$currPos++;
6393
6382
  }
6394
6383
  else {
@@ -7254,7 +7243,7 @@ function peg$parse(input, options) {
7254
7243
  else {
7255
7244
  s0 = peg$FAILED;
7256
7245
  if (peg$silentFails === 0) {
7257
- peg$fail(peg$e90);
7246
+ peg$fail(peg$e91);
7258
7247
  }
7259
7248
  }
7260
7249
  if (s0 === peg$FAILED) {
@@ -7265,42 +7254,18 @@ function peg$parse(input, options) {
7265
7254
  else {
7266
7255
  s0 = peg$FAILED;
7267
7256
  if (peg$silentFails === 0) {
7268
- peg$fail(peg$e91);
7257
+ peg$fail(peg$e92);
7269
7258
  }
7270
7259
  }
7271
7260
  if (s0 === peg$FAILED) {
7272
- if (input.charCodeAt(peg$currPos) === 13) {
7273
- s0 = peg$c84;
7261
+ s0 = input.charAt(peg$currPos);
7262
+ if (peg$r3.test(s0)) {
7274
7263
  peg$currPos++;
7275
7264
  }
7276
7265
  else {
7277
7266
  s0 = peg$FAILED;
7278
7267
  if (peg$silentFails === 0) {
7279
- peg$fail(peg$e92);
7280
- }
7281
- }
7282
- if (s0 === peg$FAILED) {
7283
- if (input.charCodeAt(peg$currPos) === 8232) {
7284
- s0 = peg$c85;
7285
- peg$currPos++;
7286
- }
7287
- else {
7288
- s0 = peg$FAILED;
7289
- if (peg$silentFails === 0) {
7290
- peg$fail(peg$e93);
7291
- }
7292
- }
7293
- if (s0 === peg$FAILED) {
7294
- if (input.charCodeAt(peg$currPos) === 8233) {
7295
- s0 = peg$c86;
7296
- peg$currPos++;
7297
- }
7298
- else {
7299
- s0 = peg$FAILED;
7300
- if (peg$silentFails === 0) {
7301
- peg$fail(peg$e94);
7302
- }
7303
- }
7268
+ peg$fail(peg$e93);
7304
7269
  }
7305
7270
  }
7306
7271
  }
@@ -7309,7 +7274,7 @@ function peg$parse(input, options) {
7309
7274
  if (s0 === peg$FAILED) {
7310
7275
  s1 = peg$FAILED;
7311
7276
  if (peg$silentFails === 0) {
7312
- peg$fail(peg$e89);
7277
+ peg$fail(peg$e90);
7313
7278
  }
7314
7279
  }
7315
7280
  return s0;
@@ -7318,8 +7283,8 @@ function peg$parse(input, options) {
7318
7283
  var s0, s1;
7319
7284
  peg$silentFails++;
7320
7285
  s0 = [];
7321
- if (peg$r0.test(input.charAt(peg$currPos))) {
7322
- s1 = input.charAt(peg$currPos);
7286
+ s1 = input.charAt(peg$currPos);
7287
+ if (peg$r0.test(s1)) {
7323
7288
  peg$currPos++;
7324
7289
  }
7325
7290
  else {
@@ -7330,8 +7295,8 @@ function peg$parse(input, options) {
7330
7295
  }
7331
7296
  while (s1 !== peg$FAILED) {
7332
7297
  s0.push(s1);
7333
- if (peg$r0.test(input.charAt(peg$currPos))) {
7334
- s1 = input.charAt(peg$currPos);
7298
+ s1 = input.charAt(peg$currPos);
7299
+ if (peg$r0.test(s1)) {
7335
7300
  peg$currPos++;
7336
7301
  }
7337
7302
  else {
@@ -7344,7 +7309,7 @@ function peg$parse(input, options) {
7344
7309
  peg$silentFails--;
7345
7310
  s1 = peg$FAILED;
7346
7311
  if (peg$silentFails === 0) {
7347
- peg$fail(peg$e95);
7312
+ peg$fail(peg$e94);
7348
7313
  }
7349
7314
  return s0;
7350
7315
  }
@@ -7368,15 +7333,15 @@ function peg$parse(input, options) {
7368
7333
  peg$silentFails--;
7369
7334
  s1 = peg$FAILED;
7370
7335
  if (peg$silentFails === 0) {
7371
- peg$fail(peg$e96);
7336
+ peg$fail(peg$e95);
7372
7337
  }
7373
7338
  return s0;
7374
7339
  }
7375
7340
  function peg$parseHTS() {
7376
7341
  var s0, s1;
7377
7342
  peg$silentFails++;
7378
- if (peg$r0.test(input.charAt(peg$currPos))) {
7379
- s0 = input.charAt(peg$currPos);
7343
+ s0 = input.charAt(peg$currPos);
7344
+ if (peg$r0.test(s0)) {
7380
7345
  peg$currPos++;
7381
7346
  }
7382
7347
  else {
@@ -7392,7 +7357,7 @@ function peg$parse(input, options) {
7392
7357
  if (s0 === peg$FAILED) {
7393
7358
  s1 = peg$FAILED;
7394
7359
  if (peg$silentFails === 0) {
7395
- peg$fail(peg$e97);
7360
+ peg$fail(peg$e96);
7396
7361
  }
7397
7362
  }
7398
7363
  return s0;
@@ -7400,63 +7365,63 @@ function peg$parse(input, options) {
7400
7365
  function peg$parseWhiteSpace() {
7401
7366
  var s0, s1;
7402
7367
  peg$silentFails++;
7403
- if (peg$r2.test(input.charAt(peg$currPos))) {
7404
- s0 = input.charAt(peg$currPos);
7368
+ s0 = input.charAt(peg$currPos);
7369
+ if (peg$r4.test(s0)) {
7405
7370
  peg$currPos++;
7406
7371
  }
7407
7372
  else {
7408
7373
  s0 = peg$FAILED;
7409
7374
  if (peg$silentFails === 0) {
7410
- peg$fail(peg$e99);
7375
+ peg$fail(peg$e98);
7411
7376
  }
7412
7377
  }
7413
7378
  peg$silentFails--;
7414
7379
  if (s0 === peg$FAILED) {
7415
7380
  s1 = peg$FAILED;
7416
7381
  if (peg$silentFails === 0) {
7417
- peg$fail(peg$e98);
7382
+ peg$fail(peg$e97);
7418
7383
  }
7419
7384
  }
7420
7385
  return s0;
7421
7386
  }
7422
7387
  function peg$parseLineTerminator() {
7423
7388
  var s0;
7424
- if (peg$r3.test(input.charAt(peg$currPos))) {
7425
- s0 = input.charAt(peg$currPos);
7389
+ s0 = input.charAt(peg$currPos);
7390
+ if (peg$r5.test(s0)) {
7426
7391
  peg$currPos++;
7427
7392
  }
7428
7393
  else {
7429
7394
  s0 = peg$FAILED;
7430
7395
  if (peg$silentFails === 0) {
7431
- peg$fail(peg$e100);
7396
+ peg$fail(peg$e99);
7432
7397
  }
7433
7398
  }
7434
7399
  return s0;
7435
7400
  }
7436
7401
  function peg$parsechar() {
7437
7402
  var s0;
7438
- if (peg$r4.test(input.charAt(peg$currPos))) {
7439
- s0 = input.charAt(peg$currPos);
7403
+ s0 = input.charAt(peg$currPos);
7404
+ if (peg$r6.test(s0)) {
7440
7405
  peg$currPos++;
7441
7406
  }
7442
7407
  else {
7443
7408
  s0 = peg$FAILED;
7444
7409
  if (peg$silentFails === 0) {
7445
- peg$fail(peg$e101);
7410
+ peg$fail(peg$e100);
7446
7411
  }
7447
7412
  }
7448
7413
  return s0;
7449
7414
  }
7450
7415
  function peg$parseword() {
7451
7416
  var s0;
7452
- if (peg$r5.test(input.charAt(peg$currPos))) {
7453
- s0 = input.charAt(peg$currPos);
7417
+ s0 = input.charAt(peg$currPos);
7418
+ if (peg$r7.test(s0)) {
7454
7419
  peg$currPos++;
7455
7420
  }
7456
7421
  else {
7457
7422
  s0 = peg$FAILED;
7458
7423
  if (peg$silentFails === 0) {
7459
- peg$fail(peg$e102);
7424
+ peg$fail(peg$e101);
7460
7425
  }
7461
7426
  }
7462
7427
  return s0;
@@ -7492,38 +7457,38 @@ function peg$parse(input, options) {
7492
7457
  var s0, s1, s2, s3, s4, s5, s6, s7, s8;
7493
7458
  s0 = peg$currPos;
7494
7459
  s1 = peg$currPos;
7495
- if (input.substr(peg$currPos, 4) === peg$c87) {
7496
- s2 = peg$c87;
7460
+ if (input.substr(peg$currPos, 4) === peg$c84) {
7461
+ s2 = peg$c84;
7497
7462
  peg$currPos += 4;
7498
7463
  }
7499
7464
  else {
7500
7465
  s2 = peg$FAILED;
7501
7466
  if (peg$silentFails === 0) {
7502
- peg$fail(peg$e103);
7467
+ peg$fail(peg$e102);
7503
7468
  }
7504
7469
  }
7505
7470
  if (s2 !== peg$FAILED) {
7506
7471
  if (input.charCodeAt(peg$currPos) === 115) {
7507
- s3 = peg$c88;
7472
+ s3 = peg$c85;
7508
7473
  peg$currPos++;
7509
7474
  }
7510
7475
  else {
7511
7476
  s3 = peg$FAILED;
7512
7477
  if (peg$silentFails === 0) {
7513
- peg$fail(peg$e104);
7478
+ peg$fail(peg$e103);
7514
7479
  }
7515
7480
  }
7516
7481
  if (s3 === peg$FAILED) {
7517
7482
  s3 = null;
7518
7483
  }
7519
- if (input.substr(peg$currPos, 3) === peg$c89) {
7520
- s4 = peg$c89;
7484
+ if (input.substr(peg$currPos, 3) === peg$c86) {
7485
+ s4 = peg$c86;
7521
7486
  peg$currPos += 3;
7522
7487
  }
7523
7488
  else {
7524
7489
  s4 = peg$FAILED;
7525
7490
  if (peg$silentFails === 0) {
7526
- peg$fail(peg$e105);
7491
+ peg$fail(peg$e104);
7527
7492
  }
7528
7493
  }
7529
7494
  if (s4 !== peg$FAILED) {
@@ -7610,38 +7575,38 @@ function peg$parse(input, options) {
7610
7575
  s0 = peg$currPos;
7611
7576
  s1 = peg$currPos;
7612
7577
  s2 = peg$currPos;
7613
- if (input.substr(peg$currPos, 4) === peg$c87) {
7614
- s3 = peg$c87;
7578
+ if (input.substr(peg$currPos, 4) === peg$c84) {
7579
+ s3 = peg$c84;
7615
7580
  peg$currPos += 4;
7616
7581
  }
7617
7582
  else {
7618
7583
  s3 = peg$FAILED;
7619
7584
  if (peg$silentFails === 0) {
7620
- peg$fail(peg$e103);
7585
+ peg$fail(peg$e102);
7621
7586
  }
7622
7587
  }
7623
7588
  if (s3 !== peg$FAILED) {
7624
7589
  if (input.charCodeAt(peg$currPos) === 115) {
7625
- s4 = peg$c88;
7590
+ s4 = peg$c85;
7626
7591
  peg$currPos++;
7627
7592
  }
7628
7593
  else {
7629
7594
  s4 = peg$FAILED;
7630
7595
  if (peg$silentFails === 0) {
7631
- peg$fail(peg$e104);
7596
+ peg$fail(peg$e103);
7632
7597
  }
7633
7598
  }
7634
7599
  if (s4 === peg$FAILED) {
7635
7600
  s4 = null;
7636
7601
  }
7637
- if (input.substr(peg$currPos, 3) === peg$c89) {
7638
- s5 = peg$c89;
7602
+ if (input.substr(peg$currPos, 3) === peg$c86) {
7603
+ s5 = peg$c86;
7639
7604
  peg$currPos += 3;
7640
7605
  }
7641
7606
  else {
7642
7607
  s5 = peg$FAILED;
7643
7608
  if (peg$silentFails === 0) {
7644
- peg$fail(peg$e105);
7609
+ peg$fail(peg$e104);
7645
7610
  }
7646
7611
  }
7647
7612
  if (s5 !== peg$FAILED) {
@@ -7658,14 +7623,14 @@ function peg$parse(input, options) {
7658
7623
  s2 = peg$FAILED;
7659
7624
  }
7660
7625
  if (s2 === peg$FAILED) {
7661
- if (input.substr(peg$currPos, 7) === peg$c90) {
7662
- s2 = peg$c90;
7626
+ if (input.substr(peg$currPos, 7) === peg$c87) {
7627
+ s2 = peg$c87;
7663
7628
  peg$currPos += 7;
7664
7629
  }
7665
7630
  else {
7666
7631
  s2 = peg$FAILED;
7667
7632
  if (peg$silentFails === 0) {
7668
- peg$fail(peg$e106);
7633
+ peg$fail(peg$e105);
7669
7634
  }
7670
7635
  }
7671
7636
  }
@@ -7747,50 +7712,14 @@ function peg$parse(input, options) {
7747
7712
  }
7748
7713
  function peg$parseUrlChars() {
7749
7714
  var s0;
7750
- if (peg$r6.test(input.charAt(peg$currPos))) {
7751
- s0 = input.charAt(peg$currPos);
7715
+ s0 = input.charAt(peg$currPos);
7716
+ if (peg$r8.test(s0)) {
7752
7717
  peg$currPos++;
7753
7718
  }
7754
7719
  else {
7755
7720
  s0 = peg$FAILED;
7756
7721
  if (peg$silentFails === 0) {
7757
- peg$fail(peg$e107);
7758
- }
7759
- }
7760
- if (s0 === peg$FAILED) {
7761
- if (input.charCodeAt(peg$currPos) === 126) {
7762
- s0 = peg$c91;
7763
- peg$currPos++;
7764
- }
7765
- else {
7766
- s0 = peg$FAILED;
7767
- if (peg$silentFails === 0) {
7768
- peg$fail(peg$e108);
7769
- }
7770
- }
7771
- if (s0 === peg$FAILED) {
7772
- if (input.charCodeAt(peg$currPos) === 94) {
7773
- s0 = peg$c92;
7774
- peg$currPos++;
7775
- }
7776
- else {
7777
- s0 = peg$FAILED;
7778
- if (peg$silentFails === 0) {
7779
- peg$fail(peg$e109);
7780
- }
7781
- }
7782
- if (s0 === peg$FAILED) {
7783
- if (input.charCodeAt(peg$currPos) === 39) {
7784
- s0 = peg$c93;
7785
- peg$currPos++;
7786
- }
7787
- else {
7788
- s0 = peg$FAILED;
7789
- if (peg$silentFails === 0) {
7790
- peg$fail(peg$e110);
7791
- }
7792
- }
7793
- }
7722
+ peg$fail(peg$e106);
7794
7723
  }
7795
7724
  }
7796
7725
  return s0;
@@ -7798,6 +7727,15 @@ function peg$parse(input, options) {
7798
7727
  var indentStack = [], indent = "";
7799
7728
  input = input.trimStart();
7800
7729
  peg$result = peg$startRuleFunction();
7730
+ if (options.peg$library) {
7731
+ return /** @type {any} */ ({
7732
+ peg$result,
7733
+ peg$currPos,
7734
+ peg$FAILED,
7735
+ peg$maxFailExpected,
7736
+ peg$maxFailPos
7737
+ });
7738
+ }
7801
7739
  if (peg$result !== peg$FAILED && peg$currPos === input.length) {
7802
7740
  return peg$result;
7803
7741
  }
@@ -7810,5 +7748,13 @@ function peg$parse(input, options) {
7810
7748
  : peg$computeLocation(peg$maxFailPos, peg$maxFailPos));
7811
7749
  }
7812
7750
  }
7813
- export { peg$SyntaxError as SyntaxError, peg$parse as parse };
7751
+ const peg$allowedStartRules = [
7752
+ "version",
7753
+ "bitmarkPlusPlus",
7754
+ "bitmarkPlus",
7755
+ "bitmarkMinusMinus",
7756
+ "bitmarkPlusString",
7757
+ "bitmarkMinusMinusString"
7758
+ ];
7759
+ export { peg$allowedStartRules as StartRules, peg$SyntaxError as SyntaxError, peg$parse as parse };
7814
7760
  //# sourceMappingURL=text-peggy-parser.js.map