@gmb/bitmark-parser-generator 1.5.23 → 1.5.25

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 (107) 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 +25 -15
  6. package/dist/cjs/ast/Builder.js.map +1 -1
  7. package/dist/cjs/config/raw/bits.js +35 -1
  8. package/dist/cjs/config/raw/bits.js.map +1 -1
  9. package/dist/cjs/config/raw/cardSets.js +8 -0
  10. package/dist/cjs/config/raw/cardSets.js.map +1 -1
  11. package/dist/cjs/config/raw/properties.js +35 -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 +12 -1
  19. package/dist/cjs/generator/bitmark/BitmarkGenerator.js.map +1 -1
  20. package/dist/cjs/generator/json/JsonGenerator.js +66 -9
  21. package/dist/cjs/generator/json/JsonGenerator.js.map +1 -1
  22. package/dist/cjs/model/ast/NodeType.js +11 -0
  23. package/dist/cjs/model/ast/NodeType.js.map +1 -1
  24. package/dist/cjs/model/config/enum/PropertyConfigKey.js +8 -2
  25. package/dist/cjs/model/config/enum/PropertyConfigKey.js.map +1 -1
  26. package/dist/cjs/model/enum/BitType.js +2 -0
  27. package/dist/cjs/model/enum/BitType.js.map +1 -1
  28. package/dist/cjs/model/enum/PropertyTag.js +6 -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 +5 -2
  32. package/dist/cjs/parser/bitmark/peg/contentProcessors/CardContentProcessor.js.map +1 -1
  33. package/dist/cjs/parser/bitmark/peg/contentProcessors/ServingsChainContentProcessor.js +2 -1
  34. package/dist/cjs/parser/bitmark/peg/contentProcessors/ServingsChainContentProcessor.js.map +1 -1
  35. package/dist/cjs/parser/json/JsonParser.js +12 -4
  36. package/dist/cjs/parser/json/JsonParser.js.map +1 -1
  37. package/dist/cjs/utils/ObjectUtils.js +85 -0
  38. package/dist/cjs/utils/ObjectUtils.js.map +1 -1
  39. package/dist/esm/BitmarkParserGenerator.js +1 -1
  40. package/dist/esm/BitmarkParserGenerator.js.map +1 -1
  41. package/dist/esm/ast/Builder.js +25 -15
  42. package/dist/esm/ast/Builder.js.map +1 -1
  43. package/dist/esm/config/raw/bits.js +35 -1
  44. package/dist/esm/config/raw/bits.js.map +1 -1
  45. package/dist/esm/config/raw/cardSets.js +8 -0
  46. package/dist/esm/config/raw/cardSets.js.map +1 -1
  47. package/dist/esm/config/raw/properties.js +35 -0
  48. package/dist/esm/config/raw/properties.js.map +1 -1
  49. package/dist/esm/generated/build-info.js +1 -1
  50. package/dist/esm/generated/parser/bitmark/bitmark-peggy-parser.js +73 -84
  51. package/dist/esm/generated/parser/bitmark/bitmark-peggy-parser.js.map +1 -1
  52. package/dist/esm/generated/parser/text/text-peggy-parser.js +334 -388
  53. package/dist/esm/generated/parser/text/text-peggy-parser.js.map +1 -1
  54. package/dist/esm/generator/bitmark/BitmarkGenerator.js +12 -1
  55. package/dist/esm/generator/bitmark/BitmarkGenerator.js.map +1 -1
  56. package/dist/esm/generator/json/JsonGenerator.js +66 -9
  57. package/dist/esm/generator/json/JsonGenerator.js.map +1 -1
  58. package/dist/esm/model/ast/NodeType.js +11 -0
  59. package/dist/esm/model/ast/NodeType.js.map +1 -1
  60. package/dist/esm/model/config/enum/PropertyConfigKey.js +8 -2
  61. package/dist/esm/model/config/enum/PropertyConfigKey.js.map +1 -1
  62. package/dist/esm/model/enum/BitType.js +2 -0
  63. package/dist/esm/model/enum/BitType.js.map +1 -1
  64. package/dist/esm/model/enum/PropertyTag.js +6 -0
  65. package/dist/esm/model/enum/PropertyTag.js.map +1 -1
  66. package/dist/esm/parser/bitmark/peg/BitmarkPegParserTypes.js.map +1 -1
  67. package/dist/esm/parser/bitmark/peg/contentProcessors/CardContentProcessor.js +5 -2
  68. package/dist/esm/parser/bitmark/peg/contentProcessors/CardContentProcessor.js.map +1 -1
  69. package/dist/esm/parser/bitmark/peg/contentProcessors/ServingsChainContentProcessor.js +2 -1
  70. package/dist/esm/parser/bitmark/peg/contentProcessors/ServingsChainContentProcessor.js.map +1 -1
  71. package/dist/esm/parser/json/JsonParser.js +12 -4
  72. package/dist/esm/parser/json/JsonParser.js.map +1 -1
  73. package/dist/esm/utils/ObjectUtils.js +85 -0
  74. package/dist/esm/utils/ObjectUtils.js.map +1 -1
  75. package/dist/types/ast/Builder.d.ts +9 -0
  76. package/dist/types/ast/Builder.d.ts.map +1 -1
  77. package/dist/types/config/raw/bits.d.ts.map +1 -1
  78. package/dist/types/config/raw/cardSets.d.ts.map +1 -1
  79. package/dist/types/config/raw/properties.d.ts.map +1 -1
  80. package/dist/types/generated/parser/bitmark/bitmark-peggy-parser.d.ts +3 -2
  81. package/dist/types/generated/parser/bitmark/bitmark-peggy-parser.d.ts.map +1 -1
  82. package/dist/types/generated/parser/text/text-peggy-parser.d.ts +3 -2
  83. package/dist/types/generated/parser/text/text-peggy-parser.d.ts.map +1 -1
  84. package/dist/types/generator/bitmark/BitmarkGenerator.d.ts.map +1 -1
  85. package/dist/types/generator/json/JsonGenerator.d.ts.map +1 -1
  86. package/dist/types/model/ast/NodeType.d.ts +22 -0
  87. package/dist/types/model/ast/NodeType.d.ts.map +1 -1
  88. package/dist/types/model/ast/Nodes.d.ts +8 -0
  89. package/dist/types/model/ast/Nodes.d.ts.map +1 -1
  90. package/dist/types/model/config/enum/ConfigKey.d.ts +16 -4
  91. package/dist/types/model/config/enum/ConfigKey.d.ts.map +1 -1
  92. package/dist/types/model/config/enum/PropertyConfigKey.d.ts +24 -6
  93. package/dist/types/model/config/enum/PropertyConfigKey.d.ts.map +1 -1
  94. package/dist/types/model/enum/BitType.d.ts +4 -0
  95. package/dist/types/model/enum/BitType.d.ts.map +1 -1
  96. package/dist/types/model/enum/PropertyTag.d.ts +12 -0
  97. package/dist/types/model/enum/PropertyTag.d.ts.map +1 -1
  98. package/dist/types/model/json/BitJson.d.ts +11 -3
  99. package/dist/types/model/json/BitJson.d.ts.map +1 -1
  100. package/dist/types/parser/bitmark/peg/BitmarkPegParserTypes.d.ts +1 -0
  101. package/dist/types/parser/bitmark/peg/BitmarkPegParserTypes.d.ts.map +1 -1
  102. package/dist/types/parser/bitmark/peg/contentProcessors/CardContentProcessor.d.ts.map +1 -1
  103. package/dist/types/parser/bitmark/peg/contentProcessors/ServingsChainContentProcessor.d.ts.map +1 -1
  104. package/dist/types/parser/json/JsonParser.d.ts.map +1 -1
  105. package/dist/types/utils/ObjectUtils.d.ts +45 -0
  106. package/dist/types/utils/ObjectUtils.d.ts.map +1 -1
  107. package/package.json +8 -8
@@ -1,9 +1,9 @@
1
1
  "use strict";
2
- // Generated by Peggy 3.0.2.
2
+ // @generated by Peggy 4.0.2.
3
3
  //
4
4
  // https://peggyjs.org/
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.parse = exports.SyntaxError = void 0;
6
+ exports.parse = exports.SyntaxError = exports.StartRules = void 0;
7
7
  const Breakscape_1 = require("../../../breakscaping/Breakscape");
8
8
  const VERSION = "8.10.3";
9
9
  //Parser peggy.js
@@ -371,23 +371,19 @@ function peg$parse(input, options) {
371
371
  var peg$c81 = "]";
372
372
  var peg$c82 = "\n";
373
373
  var peg$c83 = "\r\n";
374
- var peg$c84 = "\r";
375
- var peg$c85 = "\u2028";
376
- var peg$c86 = "\u2029";
377
- var peg$c87 = "http";
378
- var peg$c88 = "s";
379
- var peg$c89 = "://";
380
- var peg$c90 = "mailto:";
381
- var peg$c91 = "~";
382
- var peg$c92 = "^";
383
- var peg$c93 = "'";
374
+ var peg$c84 = "http";
375
+ var peg$c85 = "s";
376
+ var peg$c86 = "://";
377
+ var peg$c87 = "mailto:";
384
378
  var peg$r0 = /^[ \t]/;
385
379
  var peg$r1 = /^[0-9]/;
386
- var peg$r2 = /^[\t\v\f \xA0\uFEFF \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/;
387
- var peg$r3 = /^[\n\r\u2028\u2029]/;
388
- var peg$r4 = /^[^\n\r\u2028\u2029]/;
389
- var peg$r5 = /^[^\n\r\u2028\u2029\t\v\f \xA0\uFEFF \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/;
390
- var peg$r6 = /^[a-zA-Z0-9!*'()=+-\/._?#@[\]$&(),;%:{}]/;
380
+ var peg$r2 = /^[:|]/;
381
+ var peg$r3 = /^[\r\u2028-\u2029]/;
382
+ var peg$r4 = /^[\t\v\f \xA0\uFEFF \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/;
383
+ var peg$r5 = /^[\n\r\u2028\u2029]/;
384
+ var peg$r6 = /^[^\n\r\u2028\u2029]/;
385
+ var peg$r7 = /^[^\n\r\u2028\u2029\t\v\f \xA0\uFEFF \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/;
386
+ var peg$r8 = /^[!#-;=?-[\]-_a-{}-~]/;
391
387
  var peg$e0 = peg$anyExpectation();
392
388
  var peg$e1 = peg$otherExpectation("StyledText");
393
389
  var peg$e2 = peg$literalExpectation("|", false);
@@ -411,94 +407,90 @@ function peg$parse(input, options) {
411
407
  var peg$e20 = peg$literalExpectation("image", false);
412
408
  var peg$e21 = peg$literalExpectation("#", false);
413
409
  var peg$e22 = peg$literalExpectation("@", false);
414
- var peg$e23 = peg$literalExpectation("width", false);
415
- var peg$e24 = peg$literalExpectation("height", false);
416
- var peg$e25 = peg$literalExpectation("alignment", false);
417
- var peg$e26 = peg$literalExpectation("captionAlign", false);
418
- var peg$e27 = peg$literalExpectation("left", false);
419
- var peg$e28 = peg$literalExpectation("center", false);
420
- var peg$e29 = peg$literalExpectation("right", false);
421
- var peg$e30 = peg$otherExpectation("StyledString");
422
- var peg$e31 = peg$literalExpectation("=", false);
423
- var peg$e32 = peg$literalExpectation("\uD835\uDC53", false);
424
- var peg$e33 = peg$literalExpectation("link:", false);
425
- var peg$e34 = peg$literalExpectation("var:", false);
426
- var peg$e35 = peg$literalExpectation("code:", false);
427
- var peg$e36 = peg$literalExpectation("timer", false);
428
- var peg$e37 = peg$literalExpectation("timer:", false);
429
- var peg$e38 = peg$literalExpectation("duration:", false);
430
- var peg$e39 = peg$literalExpectation("P", false);
431
- var peg$e40 = peg$literalExpectation("color:", false);
432
- var peg$e41 = peg$literalExpectation("bold", false);
433
- var peg$e42 = peg$literalExpectation("italic", false);
434
- var peg$e43 = peg$literalExpectation("light", false);
435
- var peg$e44 = peg$literalExpectation("highlight", false);
436
- var peg$e45 = peg$literalExpectation("strike", false);
437
- var peg$e46 = peg$literalExpectation("subscript", false);
438
- var peg$e47 = peg$literalExpectation("superscript", false);
439
- var peg$e48 = peg$literalExpectation("ins", false);
440
- var peg$e49 = peg$literalExpectation("del", false);
441
- var peg$e50 = peg$literalExpectation("underline", false);
442
- var peg$e51 = peg$literalExpectation("doubleUnderline", false);
443
- var peg$e52 = peg$literalExpectation("circle", false);
444
- var peg$e53 = peg$literalExpectation("languageEm", false);
445
- var peg$e54 = peg$literalExpectation("userUnderline", false);
446
- var peg$e55 = peg$literalExpectation("userDoubleUnderline", false);
447
- var peg$e56 = peg$literalExpectation("userStrike", false);
448
- var peg$e57 = peg$literalExpectation("userCircle", false);
449
- var peg$e58 = peg$literalExpectation("userHighlight", false);
450
- var peg$e59 = peg$literalExpectation("aqua", false);
451
- var peg$e60 = peg$literalExpectation("black", false);
452
- var peg$e61 = peg$literalExpectation("blue", false);
453
- var peg$e62 = peg$literalExpectation("pink", false);
454
- var peg$e63 = peg$literalExpectation("fuchsia", false);
455
- var peg$e64 = peg$literalExpectation("lightgrey", false);
456
- var peg$e65 = peg$literalExpectation("gray", false);
457
- var peg$e66 = peg$literalExpectation("darkgray", false);
458
- var peg$e67 = peg$literalExpectation("green", false);
459
- var peg$e68 = peg$literalExpectation("lime", false);
460
- var peg$e69 = peg$literalExpectation("magenta", false);
461
- var peg$e70 = peg$literalExpectation("maroon", false);
462
- var peg$e71 = peg$literalExpectation("navy", false);
463
- var peg$e72 = peg$literalExpectation("olive", false);
464
- var peg$e73 = peg$literalExpectation("orange", false);
465
- var peg$e74 = peg$literalExpectation("purple", false);
466
- var peg$e75 = peg$literalExpectation("red", false);
467
- var peg$e76 = peg$literalExpectation("silver", false);
468
- var peg$e77 = peg$literalExpectation("teal", false);
469
- var peg$e78 = peg$literalExpectation("violet", false);
470
- var peg$e79 = peg$literalExpectation("white", false);
471
- var peg$e80 = peg$literalExpectation("yellow", false);
472
- var peg$e81 = peg$otherExpectation("MinimalStyledText");
473
- var peg$e82 = peg$otherExpectation("MinimalStyledString");
474
- var peg$e83 = peg$literalExpectation("*", false);
475
- var peg$e84 = peg$literalExpectation("_", false);
476
- var peg$e85 = peg$literalExpectation("`", false);
477
- var peg$e86 = peg$literalExpectation("!", false);
478
- var peg$e87 = peg$literalExpectation("[!", false);
479
- var peg$e88 = peg$literalExpectation("]", false);
480
- var peg$e89 = peg$otherExpectation("Line Terminator");
481
- var peg$e90 = peg$literalExpectation("\n", false);
482
- var peg$e91 = peg$literalExpectation("\r\n", false);
483
- var peg$e92 = peg$literalExpectation("\r", false);
484
- var peg$e93 = peg$literalExpectation("\u2028", false);
485
- var peg$e94 = peg$literalExpectation("\u2029", false);
486
- var peg$e95 = peg$otherExpectation("whitespace in line");
487
- var peg$e96 = peg$otherExpectation("space");
488
- var peg$e97 = peg$otherExpectation("language tag separator");
489
- var peg$e98 = peg$otherExpectation("white space, separator");
490
- var peg$e99 = peg$classExpectation(["\t", "\v", "\f", " ", "\xA0", "\uFEFF", " ", "\xA0", "\u1680", ["\u2000", "\u200A"], "\u202F", "\u205F", "\u3000"], false, false);
491
- var peg$e100 = peg$classExpectation(["\n", "\r", "\u2028", "\u2029"], false, false);
492
- var peg$e101 = peg$classExpectation(["\n", "\r", "\u2028", "\u2029"], true, false);
493
- var peg$e102 = peg$classExpectation(["\n", "\r", "\u2028", "\u2029", "\t", "\v", "\f", " ", "\xA0", "\uFEFF", " ", "\xA0", "\u1680", ["\u2000", "\u200A"], "\u202F", "\u205F", "\u3000"], true, false);
494
- var peg$e103 = peg$literalExpectation("http", false);
495
- var peg$e104 = peg$literalExpectation("s", false);
496
- var peg$e105 = peg$literalExpectation("://", false);
497
- var peg$e106 = peg$literalExpectation("mailto:", false);
498
- var peg$e107 = peg$classExpectation([["a", "z"], ["A", "Z"], ["0", "9"], "!", "*", "'", "(", ")", "=", ["+", "/"], ".", "_", "?", "#", "@", "[", "]", "$", "&", "(", ")", ",", ";", "%", ":", "{", "}"], false, false);
499
- var peg$e108 = peg$literalExpectation("~", false);
500
- var peg$e109 = peg$literalExpectation("^", false);
501
- var peg$e110 = peg$literalExpectation("'", false);
410
+ var peg$e23 = peg$classExpectation([":", "|"], false, false);
411
+ var peg$e24 = peg$literalExpectation("width", false);
412
+ var peg$e25 = peg$literalExpectation("height", false);
413
+ var peg$e26 = peg$literalExpectation("alignment", false);
414
+ var peg$e27 = peg$literalExpectation("captionAlign", false);
415
+ var peg$e28 = peg$literalExpectation("left", false);
416
+ var peg$e29 = peg$literalExpectation("center", false);
417
+ var peg$e30 = peg$literalExpectation("right", false);
418
+ var peg$e31 = peg$otherExpectation("StyledString");
419
+ var peg$e32 = peg$literalExpectation("=", false);
420
+ var peg$e33 = peg$literalExpectation("\uD835\uDC53", false);
421
+ var peg$e34 = peg$literalExpectation("link:", false);
422
+ var peg$e35 = peg$literalExpectation("var:", false);
423
+ var peg$e36 = peg$literalExpectation("code:", false);
424
+ var peg$e37 = peg$literalExpectation("timer", false);
425
+ var peg$e38 = peg$literalExpectation("timer:", false);
426
+ var peg$e39 = peg$literalExpectation("duration:", false);
427
+ var peg$e40 = peg$literalExpectation("P", false);
428
+ var peg$e41 = peg$literalExpectation("color:", false);
429
+ var peg$e42 = peg$literalExpectation("bold", false);
430
+ var peg$e43 = peg$literalExpectation("italic", false);
431
+ var peg$e44 = peg$literalExpectation("light", false);
432
+ var peg$e45 = peg$literalExpectation("highlight", false);
433
+ var peg$e46 = peg$literalExpectation("strike", false);
434
+ var peg$e47 = peg$literalExpectation("subscript", false);
435
+ var peg$e48 = peg$literalExpectation("superscript", false);
436
+ var peg$e49 = peg$literalExpectation("ins", false);
437
+ var peg$e50 = peg$literalExpectation("del", false);
438
+ var peg$e51 = peg$literalExpectation("underline", false);
439
+ var peg$e52 = peg$literalExpectation("doubleUnderline", false);
440
+ var peg$e53 = peg$literalExpectation("circle", false);
441
+ var peg$e54 = peg$literalExpectation("languageEm", false);
442
+ var peg$e55 = peg$literalExpectation("userUnderline", false);
443
+ var peg$e56 = peg$literalExpectation("userDoubleUnderline", false);
444
+ var peg$e57 = peg$literalExpectation("userStrike", false);
445
+ var peg$e58 = peg$literalExpectation("userCircle", false);
446
+ var peg$e59 = peg$literalExpectation("userHighlight", false);
447
+ var peg$e60 = peg$literalExpectation("aqua", false);
448
+ var peg$e61 = peg$literalExpectation("black", false);
449
+ var peg$e62 = peg$literalExpectation("blue", false);
450
+ var peg$e63 = peg$literalExpectation("pink", false);
451
+ var peg$e64 = peg$literalExpectation("fuchsia", false);
452
+ var peg$e65 = peg$literalExpectation("lightgrey", false);
453
+ var peg$e66 = peg$literalExpectation("gray", false);
454
+ var peg$e67 = peg$literalExpectation("darkgray", false);
455
+ var peg$e68 = peg$literalExpectation("green", false);
456
+ var peg$e69 = peg$literalExpectation("lime", false);
457
+ var peg$e70 = peg$literalExpectation("magenta", false);
458
+ var peg$e71 = peg$literalExpectation("maroon", false);
459
+ var peg$e72 = peg$literalExpectation("navy", false);
460
+ var peg$e73 = peg$literalExpectation("olive", false);
461
+ var peg$e74 = peg$literalExpectation("orange", false);
462
+ var peg$e75 = peg$literalExpectation("purple", false);
463
+ var peg$e76 = peg$literalExpectation("red", false);
464
+ var peg$e77 = peg$literalExpectation("silver", false);
465
+ var peg$e78 = peg$literalExpectation("teal", false);
466
+ var peg$e79 = peg$literalExpectation("violet", false);
467
+ var peg$e80 = peg$literalExpectation("white", false);
468
+ var peg$e81 = peg$literalExpectation("yellow", false);
469
+ var peg$e82 = peg$otherExpectation("MinimalStyledText");
470
+ var peg$e83 = peg$otherExpectation("MinimalStyledString");
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$literalExpectation("]", false);
477
+ var peg$e90 = peg$otherExpectation("Line Terminator");
478
+ var peg$e91 = peg$literalExpectation("\n", false);
479
+ var peg$e92 = peg$literalExpectation("\r\n", false);
480
+ var peg$e93 = peg$classExpectation(["\r", ["\u2028", "\u2029"]], false, false);
481
+ var peg$e94 = peg$otherExpectation("whitespace in line");
482
+ var peg$e95 = peg$otherExpectation("space");
483
+ var peg$e96 = peg$otherExpectation("language tag separator");
484
+ var peg$e97 = peg$otherExpectation("white space, separator");
485
+ var peg$e98 = peg$classExpectation(["\t", "\v", "\f", " ", "\xA0", "\uFEFF", " ", "\xA0", "\u1680", ["\u2000", "\u200A"], "\u202F", "\u205F", "\u3000"], false, false);
486
+ var peg$e99 = peg$classExpectation(["\n", "\r", "\u2028", "\u2029"], false, false);
487
+ var peg$e100 = peg$classExpectation(["\n", "\r", "\u2028", "\u2029"], true, false);
488
+ var peg$e101 = peg$classExpectation(["\n", "\r", "\u2028", "\u2029", "\t", "\v", "\f", " ", "\xA0", "\uFEFF", " ", "\xA0", "\u1680", ["\u2000", "\u200A"], "\u202F", "\u205F", "\u3000"], true, false);
489
+ var peg$e102 = peg$literalExpectation("http", false);
490
+ var peg$e103 = peg$literalExpectation("s", false);
491
+ var peg$e104 = peg$literalExpectation("://", false);
492
+ var peg$e105 = peg$literalExpectation("mailto:", false);
493
+ var peg$e106 = peg$classExpectation(["!", ["#", ";"], "=", ["?", "["], ["]", "_"], ["a", "{"], ["}", "~"]], false, false);
502
494
  var peg$f0 = function () { return VERSION; };
503
495
  var peg$f1 = function (b) { return Object.assign({}, b); };
504
496
  var peg$f2 = function (b) { let lb_ = Object.assign({}, b); removeTempParsingParent(lb_); return lb_; };
@@ -648,14 +640,14 @@ function peg$parse(input, options) {
648
640
  var peg$f71 = function (t) { return { marks: [{ type: "light" }], text: unbreakscape(t), type: "text" }; };
649
641
  var peg$f72 = function (t) { return { marks: [{ type: "highlight" }], text: unbreakscape(t), type: "text" }; };
650
642
  var peg$f73 = function (pr, t) { return { pr, t }; };
651
- var peg$currPos = 0;
652
- var peg$savedPos = 0;
643
+ var peg$currPos = options.peg$currPos | 0;
644
+ var peg$savedPos = peg$currPos;
653
645
  var peg$posDetailsCache = [{ line: 1, column: 1 }];
654
- var peg$maxFailPos = 0;
655
- var peg$maxFailExpected = [];
656
- var peg$silentFails = 0;
646
+ var peg$maxFailPos = peg$currPos;
647
+ var peg$maxFailExpected = options.peg$maxFailExpected || [];
648
+ var peg$silentFails = options.peg$silentFails | 0;
657
649
  var peg$result;
658
- if ("startRule" in options) {
650
+ if (options.startRule) {
659
651
  if (!(options.startRule in peg$startRuleFunctions)) {
660
652
  throw new Error("Can't start parsing from rule \"" + options.startRule + "\".");
661
653
  }
@@ -711,9 +703,12 @@ function peg$parse(input, options) {
711
703
  return details;
712
704
  }
713
705
  else {
714
- p = pos - 1;
715
- while (!peg$posDetailsCache[p]) {
716
- p--;
706
+ if (pos >= peg$posDetailsCache.length) {
707
+ p = peg$posDetailsCache.length - 1;
708
+ }
709
+ else {
710
+ p = pos;
711
+ while (!peg$posDetailsCache[--p]) { }
717
712
  }
718
713
  details = peg$posDetailsCache[p];
719
714
  details = {
@@ -1101,8 +1096,8 @@ function peg$parse(input, options) {
1101
1096
  s2 = peg$currPos;
1102
1097
  s3 = peg$currPos;
1103
1098
  s4 = [];
1104
- if (peg$r0.test(input.charAt(peg$currPos))) {
1105
- s5 = input.charAt(peg$currPos);
1099
+ s5 = input.charAt(peg$currPos);
1100
+ if (peg$r0.test(s5)) {
1106
1101
  peg$currPos++;
1107
1102
  }
1108
1103
  else {
@@ -1113,8 +1108,8 @@ function peg$parse(input, options) {
1113
1108
  }
1114
1109
  while (s5 !== peg$FAILED) {
1115
1110
  s4.push(s5);
1116
- if (peg$r0.test(input.charAt(peg$currPos))) {
1117
- s5 = input.charAt(peg$currPos);
1111
+ s5 = input.charAt(peg$currPos);
1112
+ if (peg$r0.test(s5)) {
1118
1113
  peg$currPos++;
1119
1114
  }
1120
1115
  else {
@@ -1172,8 +1167,8 @@ function peg$parse(input, options) {
1172
1167
  s4 = peg$currPos;
1173
1168
  s5 = peg$currPos;
1174
1169
  s6 = [];
1175
- if (peg$r0.test(input.charAt(peg$currPos))) {
1176
- s7 = input.charAt(peg$currPos);
1170
+ s7 = input.charAt(peg$currPos);
1171
+ if (peg$r0.test(s7)) {
1177
1172
  peg$currPos++;
1178
1173
  }
1179
1174
  else {
@@ -1184,8 +1179,8 @@ function peg$parse(input, options) {
1184
1179
  }
1185
1180
  while (s7 !== peg$FAILED) {
1186
1181
  s6.push(s7);
1187
- if (peg$r0.test(input.charAt(peg$currPos))) {
1188
- s7 = input.charAt(peg$currPos);
1182
+ s7 = input.charAt(peg$currPos);
1183
+ if (peg$r0.test(s7)) {
1189
1184
  peg$currPos++;
1190
1185
  }
1191
1186
  else {
@@ -1410,8 +1405,8 @@ function peg$parse(input, options) {
1410
1405
  }
1411
1406
  if (s2 !== peg$FAILED) {
1412
1407
  s3 = [];
1413
- if (peg$r1.test(input.charAt(peg$currPos))) {
1414
- s4 = input.charAt(peg$currPos);
1408
+ s4 = input.charAt(peg$currPos);
1409
+ if (peg$r1.test(s4)) {
1415
1410
  peg$currPos++;
1416
1411
  }
1417
1412
  else {
@@ -1422,8 +1417,8 @@ function peg$parse(input, options) {
1422
1417
  }
1423
1418
  while (s4 !== peg$FAILED) {
1424
1419
  s3.push(s4);
1425
- if (peg$r1.test(input.charAt(peg$currPos))) {
1426
- s4 = input.charAt(peg$currPos);
1420
+ s4 = input.charAt(peg$currPos);
1421
+ if (peg$r1.test(s4)) {
1427
1422
  peg$currPos++;
1428
1423
  }
1429
1424
  else {
@@ -2036,8 +2031,8 @@ function peg$parse(input, options) {
2036
2031
  var s0, s1, s2;
2037
2032
  s0 = peg$currPos;
2038
2033
  s1 = [];
2039
- if (peg$r0.test(input.charAt(peg$currPos))) {
2040
- s2 = input.charAt(peg$currPos);
2034
+ s2 = input.charAt(peg$currPos);
2035
+ if (peg$r0.test(s2)) {
2041
2036
  peg$currPos++;
2042
2037
  }
2043
2038
  else {
@@ -2048,8 +2043,8 @@ function peg$parse(input, options) {
2048
2043
  }
2049
2044
  while (s2 !== peg$FAILED) {
2050
2045
  s1.push(s2);
2051
- if (peg$r0.test(input.charAt(peg$currPos))) {
2052
- s2 = input.charAt(peg$currPos);
2046
+ s2 = input.charAt(peg$currPos);
2047
+ if (peg$r0.test(s2)) {
2053
2048
  peg$currPos++;
2054
2049
  }
2055
2050
  else {
@@ -2353,8 +2348,8 @@ function peg$parse(input, options) {
2353
2348
  s2 = peg$currPos;
2354
2349
  s3 = peg$currPos;
2355
2350
  s4 = [];
2356
- if (peg$r0.test(input.charAt(peg$currPos))) {
2357
- s5 = input.charAt(peg$currPos);
2351
+ s5 = input.charAt(peg$currPos);
2352
+ if (peg$r0.test(s5)) {
2358
2353
  peg$currPos++;
2359
2354
  }
2360
2355
  else {
@@ -2365,8 +2360,8 @@ function peg$parse(input, options) {
2365
2360
  }
2366
2361
  while (s5 !== peg$FAILED) {
2367
2362
  s4.push(s5);
2368
- if (peg$r0.test(input.charAt(peg$currPos))) {
2369
- s5 = input.charAt(peg$currPos);
2363
+ s5 = input.charAt(peg$currPos);
2364
+ if (peg$r0.test(s5)) {
2370
2365
  peg$currPos++;
2371
2366
  }
2372
2367
  else {
@@ -2482,8 +2477,8 @@ function peg$parse(input, options) {
2482
2477
  s7 = peg$currPos;
2483
2478
  s8 = peg$currPos;
2484
2479
  s9 = [];
2485
- if (peg$r0.test(input.charAt(peg$currPos))) {
2486
- s10 = input.charAt(peg$currPos);
2480
+ s10 = input.charAt(peg$currPos);
2481
+ if (peg$r0.test(s10)) {
2487
2482
  peg$currPos++;
2488
2483
  }
2489
2484
  else {
@@ -2494,8 +2489,8 @@ function peg$parse(input, options) {
2494
2489
  }
2495
2490
  while (s10 !== peg$FAILED) {
2496
2491
  s9.push(s10);
2497
- if (peg$r0.test(input.charAt(peg$currPos))) {
2498
- s10 = input.charAt(peg$currPos);
2492
+ s10 = input.charAt(peg$currPos);
2493
+ if (peg$r0.test(s10)) {
2499
2494
  peg$currPos++;
2500
2495
  }
2501
2496
  else {
@@ -2723,8 +2718,8 @@ function peg$parse(input, options) {
2723
2718
  s8 = peg$FAILED;
2724
2719
  }
2725
2720
  if (s8 !== peg$FAILED) {
2726
- if (peg$r1.test(input.charAt(peg$currPos))) {
2727
- s9 = input.charAt(peg$currPos);
2721
+ s9 = input.charAt(peg$currPos);
2722
+ if (peg$r1.test(s9)) {
2728
2723
  peg$currPos++;
2729
2724
  }
2730
2725
  else {
@@ -2762,8 +2757,8 @@ function peg$parse(input, options) {
2762
2757
  s8 = peg$FAILED;
2763
2758
  }
2764
2759
  if (s8 !== peg$FAILED) {
2765
- if (peg$r1.test(input.charAt(peg$currPos))) {
2766
- s9 = input.charAt(peg$currPos);
2760
+ s9 = input.charAt(peg$currPos);
2761
+ if (peg$r1.test(s9)) {
2767
2762
  peg$currPos++;
2768
2763
  }
2769
2764
  else {
@@ -3050,46 +3045,43 @@ function peg$parse(input, options) {
3050
3045
  s4 = peg$currPos;
3051
3046
  s5 = peg$currPos;
3052
3047
  peg$silentFails++;
3053
- s6 = peg$parseBlockTag();
3054
- if (s6 === peg$FAILED) {
3055
- if (input.charCodeAt(peg$currPos) === 58) {
3056
- s6 = peg$c1;
3057
- peg$currPos++;
3048
+ s6 = input.charAt(peg$currPos);
3049
+ if (peg$r2.test(s6)) {
3050
+ peg$currPos++;
3051
+ }
3052
+ else {
3053
+ s6 = peg$FAILED;
3054
+ if (peg$silentFails === 0) {
3055
+ peg$fail(peg$e23);
3058
3056
  }
3059
- else {
3060
- s6 = peg$FAILED;
3061
- if (peg$silentFails === 0) {
3062
- peg$fail(peg$e3);
3057
+ }
3058
+ if (s6 === peg$FAILED) {
3059
+ s6 = peg$currPos;
3060
+ s7 = peg$parseAlignmentTags();
3061
+ if (s7 !== peg$FAILED) {
3062
+ if (input.charCodeAt(peg$currPos) === 58) {
3063
+ s8 = peg$c1;
3064
+ peg$currPos++;
3063
3065
  }
3064
- }
3065
- if (s6 === peg$FAILED) {
3066
- s6 = peg$currPos;
3067
- s7 = peg$parseAlignmentTags();
3068
- if (s7 !== peg$FAILED) {
3069
- if (input.charCodeAt(peg$currPos) === 58) {
3070
- s8 = peg$c1;
3071
- peg$currPos++;
3072
- }
3073
- else {
3074
- s8 = peg$FAILED;
3075
- if (peg$silentFails === 0) {
3076
- peg$fail(peg$e3);
3077
- }
3078
- }
3079
- if (s8 !== peg$FAILED) {
3080
- s7 = [s7, s8];
3081
- s6 = s7;
3082
- }
3083
- else {
3084
- peg$currPos = s6;
3085
- s6 = peg$FAILED;
3066
+ else {
3067
+ s8 = peg$FAILED;
3068
+ if (peg$silentFails === 0) {
3069
+ peg$fail(peg$e3);
3086
3070
  }
3087
3071
  }
3072
+ if (s8 !== peg$FAILED) {
3073
+ s7 = [s7, s8];
3074
+ s6 = s7;
3075
+ }
3088
3076
  else {
3089
3077
  peg$currPos = s6;
3090
3078
  s6 = peg$FAILED;
3091
3079
  }
3092
3080
  }
3081
+ else {
3082
+ peg$currPos = s6;
3083
+ s6 = peg$FAILED;
3084
+ }
3093
3085
  }
3094
3086
  peg$silentFails--;
3095
3087
  if (s6 === peg$FAILED) {
@@ -3119,46 +3111,43 @@ function peg$parse(input, options) {
3119
3111
  s4 = peg$currPos;
3120
3112
  s5 = peg$currPos;
3121
3113
  peg$silentFails++;
3122
- s6 = peg$parseBlockTag();
3123
- if (s6 === peg$FAILED) {
3124
- if (input.charCodeAt(peg$currPos) === 58) {
3125
- s6 = peg$c1;
3126
- peg$currPos++;
3114
+ s6 = input.charAt(peg$currPos);
3115
+ if (peg$r2.test(s6)) {
3116
+ peg$currPos++;
3117
+ }
3118
+ else {
3119
+ s6 = peg$FAILED;
3120
+ if (peg$silentFails === 0) {
3121
+ peg$fail(peg$e23);
3127
3122
  }
3128
- else {
3129
- s6 = peg$FAILED;
3130
- if (peg$silentFails === 0) {
3131
- peg$fail(peg$e3);
3123
+ }
3124
+ if (s6 === peg$FAILED) {
3125
+ s6 = peg$currPos;
3126
+ s7 = peg$parseAlignmentTags();
3127
+ if (s7 !== peg$FAILED) {
3128
+ if (input.charCodeAt(peg$currPos) === 58) {
3129
+ s8 = peg$c1;
3130
+ peg$currPos++;
3132
3131
  }
3133
- }
3134
- if (s6 === peg$FAILED) {
3135
- s6 = peg$currPos;
3136
- s7 = peg$parseAlignmentTags();
3137
- if (s7 !== peg$FAILED) {
3138
- if (input.charCodeAt(peg$currPos) === 58) {
3139
- s8 = peg$c1;
3140
- peg$currPos++;
3141
- }
3142
- else {
3143
- s8 = peg$FAILED;
3144
- if (peg$silentFails === 0) {
3145
- peg$fail(peg$e3);
3146
- }
3147
- }
3148
- if (s8 !== peg$FAILED) {
3149
- s7 = [s7, s8];
3150
- s6 = s7;
3151
- }
3152
- else {
3153
- peg$currPos = s6;
3154
- s6 = peg$FAILED;
3132
+ else {
3133
+ s8 = peg$FAILED;
3134
+ if (peg$silentFails === 0) {
3135
+ peg$fail(peg$e3);
3155
3136
  }
3156
3137
  }
3138
+ if (s8 !== peg$FAILED) {
3139
+ s7 = [s7, s8];
3140
+ s6 = s7;
3141
+ }
3157
3142
  else {
3158
3143
  peg$currPos = s6;
3159
3144
  s6 = peg$FAILED;
3160
3145
  }
3161
3146
  }
3147
+ else {
3148
+ peg$currPos = s6;
3149
+ s6 = peg$FAILED;
3150
+ }
3162
3151
  }
3163
3152
  peg$silentFails--;
3164
3153
  if (s6 === peg$FAILED) {
@@ -3439,7 +3428,7 @@ function peg$parse(input, options) {
3439
3428
  else {
3440
3429
  s0 = peg$FAILED;
3441
3430
  if (peg$silentFails === 0) {
3442
- peg$fail(peg$e23);
3431
+ peg$fail(peg$e24);
3443
3432
  }
3444
3433
  }
3445
3434
  if (s0 === peg$FAILED) {
@@ -3450,7 +3439,7 @@ function peg$parse(input, options) {
3450
3439
  else {
3451
3440
  s0 = peg$FAILED;
3452
3441
  if (peg$silentFails === 0) {
3453
- peg$fail(peg$e24);
3442
+ peg$fail(peg$e25);
3454
3443
  }
3455
3444
  }
3456
3445
  }
@@ -3465,7 +3454,7 @@ function peg$parse(input, options) {
3465
3454
  else {
3466
3455
  s0 = peg$FAILED;
3467
3456
  if (peg$silentFails === 0) {
3468
- peg$fail(peg$e25);
3457
+ peg$fail(peg$e26);
3469
3458
  }
3470
3459
  }
3471
3460
  if (s0 === peg$FAILED) {
@@ -3476,7 +3465,7 @@ function peg$parse(input, options) {
3476
3465
  else {
3477
3466
  s0 = peg$FAILED;
3478
3467
  if (peg$silentFails === 0) {
3479
- peg$fail(peg$e26);
3468
+ peg$fail(peg$e27);
3480
3469
  }
3481
3470
  }
3482
3471
  }
@@ -3491,7 +3480,7 @@ function peg$parse(input, options) {
3491
3480
  else {
3492
3481
  s0 = peg$FAILED;
3493
3482
  if (peg$silentFails === 0) {
3494
- peg$fail(peg$e27);
3483
+ peg$fail(peg$e28);
3495
3484
  }
3496
3485
  }
3497
3486
  if (s0 === peg$FAILED) {
@@ -3502,7 +3491,7 @@ function peg$parse(input, options) {
3502
3491
  else {
3503
3492
  s0 = peg$FAILED;
3504
3493
  if (peg$silentFails === 0) {
3505
- peg$fail(peg$e28);
3494
+ peg$fail(peg$e29);
3506
3495
  }
3507
3496
  }
3508
3497
  if (s0 === peg$FAILED) {
@@ -3513,7 +3502,7 @@ function peg$parse(input, options) {
3513
3502
  else {
3514
3503
  s0 = peg$FAILED;
3515
3504
  if (peg$silentFails === 0) {
3516
- peg$fail(peg$e29);
3505
+ peg$fail(peg$e30);
3517
3506
  }
3518
3507
  }
3519
3508
  }
@@ -3542,7 +3531,7 @@ function peg$parse(input, options) {
3542
3531
  peg$silentFails--;
3543
3532
  s1 = peg$FAILED;
3544
3533
  if (peg$silentFails === 0) {
3545
- peg$fail(peg$e30);
3534
+ peg$fail(peg$e31);
3546
3535
  }
3547
3536
  return s0;
3548
3537
  }
@@ -3733,7 +3722,7 @@ function peg$parse(input, options) {
3733
3722
  else {
3734
3723
  s0 = peg$FAILED;
3735
3724
  if (peg$silentFails === 0) {
3736
- peg$fail(peg$e31);
3725
+ peg$fail(peg$e32);
3737
3726
  }
3738
3727
  }
3739
3728
  return s0;
@@ -3747,7 +3736,7 @@ function peg$parse(input, options) {
3747
3736
  else {
3748
3737
  s0 = peg$FAILED;
3749
3738
  if (peg$silentFails === 0) {
3750
- peg$fail(peg$e32);
3739
+ peg$fail(peg$e33);
3751
3740
  }
3752
3741
  }
3753
3742
  return s0;
@@ -3801,8 +3790,8 @@ function peg$parse(input, options) {
3801
3790
  if (s1 !== peg$FAILED) {
3802
3791
  s2 = peg$currPos;
3803
3792
  s3 = [];
3804
- if (peg$r1.test(input.charAt(peg$currPos))) {
3805
- s4 = input.charAt(peg$currPos);
3793
+ s4 = input.charAt(peg$currPos);
3794
+ if (peg$r1.test(s4)) {
3806
3795
  peg$currPos++;
3807
3796
  }
3808
3797
  else {
@@ -3814,8 +3803,8 @@ function peg$parse(input, options) {
3814
3803
  if (s4 !== peg$FAILED) {
3815
3804
  while (s4 !== peg$FAILED) {
3816
3805
  s3.push(s4);
3817
- if (peg$r1.test(input.charAt(peg$currPos))) {
3818
- s4 = input.charAt(peg$currPos);
3806
+ s4 = input.charAt(peg$currPos);
3807
+ if (peg$r1.test(s4)) {
3819
3808
  peg$currPos++;
3820
3809
  }
3821
3810
  else {
@@ -4904,7 +4893,7 @@ function peg$parse(input, options) {
4904
4893
  else {
4905
4894
  s1 = peg$FAILED;
4906
4895
  if (peg$silentFails === 0) {
4907
- peg$fail(peg$e33);
4896
+ peg$fail(peg$e34);
4908
4897
  }
4909
4898
  }
4910
4899
  if (s1 !== peg$FAILED) {
@@ -4991,7 +4980,7 @@ function peg$parse(input, options) {
4991
4980
  else {
4992
4981
  s1 = peg$FAILED;
4993
4982
  if (peg$silentFails === 0) {
4994
- peg$fail(peg$e34);
4983
+ peg$fail(peg$e35);
4995
4984
  }
4996
4985
  }
4997
4986
  if (s1 !== peg$FAILED) {
@@ -5105,7 +5094,7 @@ function peg$parse(input, options) {
5105
5094
  else {
5106
5095
  s1 = peg$FAILED;
5107
5096
  if (peg$silentFails === 0) {
5108
- peg$fail(peg$e35);
5097
+ peg$fail(peg$e36);
5109
5098
  }
5110
5099
  }
5111
5100
  if (s1 !== peg$FAILED) {
@@ -5192,7 +5181,7 @@ function peg$parse(input, options) {
5192
5181
  else {
5193
5182
  s1 = peg$FAILED;
5194
5183
  if (peg$silentFails === 0) {
5195
- peg$fail(peg$e36);
5184
+ peg$fail(peg$e37);
5196
5185
  }
5197
5186
  }
5198
5187
  if (s1 !== peg$FAILED) {
@@ -5219,7 +5208,7 @@ function peg$parse(input, options) {
5219
5208
  else {
5220
5209
  s1 = peg$FAILED;
5221
5210
  if (peg$silentFails === 0) {
5222
- peg$fail(peg$e37);
5211
+ peg$fail(peg$e38);
5223
5212
  }
5224
5213
  }
5225
5214
  if (s1 !== peg$FAILED) {
@@ -5306,7 +5295,7 @@ function peg$parse(input, options) {
5306
5295
  else {
5307
5296
  s1 = peg$FAILED;
5308
5297
  if (peg$silentFails === 0) {
5309
- peg$fail(peg$e38);
5298
+ peg$fail(peg$e39);
5310
5299
  }
5311
5300
  }
5312
5301
  if (s1 !== peg$FAILED) {
@@ -5319,7 +5308,7 @@ function peg$parse(input, options) {
5319
5308
  else {
5320
5309
  s4 = peg$FAILED;
5321
5310
  if (peg$silentFails === 0) {
5322
- peg$fail(peg$e39);
5311
+ peg$fail(peg$e40);
5323
5312
  }
5324
5313
  }
5325
5314
  if (s4 !== peg$FAILED) {
@@ -5425,7 +5414,7 @@ function peg$parse(input, options) {
5425
5414
  else {
5426
5415
  s1 = peg$FAILED;
5427
5416
  if (peg$silentFails === 0) {
5428
- peg$fail(peg$e40);
5417
+ peg$fail(peg$e41);
5429
5418
  }
5430
5419
  }
5431
5420
  if (s1 !== peg$FAILED) {
@@ -5575,7 +5564,7 @@ function peg$parse(input, options) {
5575
5564
  else {
5576
5565
  s0 = peg$FAILED;
5577
5566
  if (peg$silentFails === 0) {
5578
- peg$fail(peg$e41);
5567
+ peg$fail(peg$e42);
5579
5568
  }
5580
5569
  }
5581
5570
  if (s0 === peg$FAILED) {
@@ -5586,7 +5575,7 @@ function peg$parse(input, options) {
5586
5575
  else {
5587
5576
  s0 = peg$FAILED;
5588
5577
  if (peg$silentFails === 0) {
5589
- peg$fail(peg$e42);
5578
+ peg$fail(peg$e43);
5590
5579
  }
5591
5580
  }
5592
5581
  if (s0 === peg$FAILED) {
@@ -5597,7 +5586,7 @@ function peg$parse(input, options) {
5597
5586
  else {
5598
5587
  s0 = peg$FAILED;
5599
5588
  if (peg$silentFails === 0) {
5600
- peg$fail(peg$e43);
5589
+ peg$fail(peg$e44);
5601
5590
  }
5602
5591
  }
5603
5592
  if (s0 === peg$FAILED) {
@@ -5608,7 +5597,7 @@ function peg$parse(input, options) {
5608
5597
  else {
5609
5598
  s0 = peg$FAILED;
5610
5599
  if (peg$silentFails === 0) {
5611
- peg$fail(peg$e44);
5600
+ peg$fail(peg$e45);
5612
5601
  }
5613
5602
  }
5614
5603
  if (s0 === peg$FAILED) {
@@ -5619,7 +5608,7 @@ function peg$parse(input, options) {
5619
5608
  else {
5620
5609
  s0 = peg$FAILED;
5621
5610
  if (peg$silentFails === 0) {
5622
- peg$fail(peg$e45);
5611
+ peg$fail(peg$e46);
5623
5612
  }
5624
5613
  }
5625
5614
  if (s0 === peg$FAILED) {
@@ -5630,7 +5619,7 @@ function peg$parse(input, options) {
5630
5619
  else {
5631
5620
  s0 = peg$FAILED;
5632
5621
  if (peg$silentFails === 0) {
5633
- peg$fail(peg$e46);
5622
+ peg$fail(peg$e47);
5634
5623
  }
5635
5624
  }
5636
5625
  if (s0 === peg$FAILED) {
@@ -5641,7 +5630,7 @@ function peg$parse(input, options) {
5641
5630
  else {
5642
5631
  s0 = peg$FAILED;
5643
5632
  if (peg$silentFails === 0) {
5644
- peg$fail(peg$e47);
5633
+ peg$fail(peg$e48);
5645
5634
  }
5646
5635
  }
5647
5636
  if (s0 === peg$FAILED) {
@@ -5652,7 +5641,7 @@ function peg$parse(input, options) {
5652
5641
  else {
5653
5642
  s0 = peg$FAILED;
5654
5643
  if (peg$silentFails === 0) {
5655
- peg$fail(peg$e48);
5644
+ peg$fail(peg$e49);
5656
5645
  }
5657
5646
  }
5658
5647
  if (s0 === peg$FAILED) {
@@ -5663,7 +5652,7 @@ function peg$parse(input, options) {
5663
5652
  else {
5664
5653
  s0 = peg$FAILED;
5665
5654
  if (peg$silentFails === 0) {
5666
- peg$fail(peg$e49);
5655
+ peg$fail(peg$e50);
5667
5656
  }
5668
5657
  }
5669
5658
  if (s0 === peg$FAILED) {
@@ -5674,7 +5663,7 @@ function peg$parse(input, options) {
5674
5663
  else {
5675
5664
  s0 = peg$FAILED;
5676
5665
  if (peg$silentFails === 0) {
5677
- peg$fail(peg$e50);
5666
+ peg$fail(peg$e51);
5678
5667
  }
5679
5668
  }
5680
5669
  if (s0 === peg$FAILED) {
@@ -5685,7 +5674,7 @@ function peg$parse(input, options) {
5685
5674
  else {
5686
5675
  s0 = peg$FAILED;
5687
5676
  if (peg$silentFails === 0) {
5688
- peg$fail(peg$e51);
5677
+ peg$fail(peg$e52);
5689
5678
  }
5690
5679
  }
5691
5680
  if (s0 === peg$FAILED) {
@@ -5696,7 +5685,7 @@ function peg$parse(input, options) {
5696
5685
  else {
5697
5686
  s0 = peg$FAILED;
5698
5687
  if (peg$silentFails === 0) {
5699
- peg$fail(peg$e52);
5688
+ peg$fail(peg$e53);
5700
5689
  }
5701
5690
  }
5702
5691
  if (s0 === peg$FAILED) {
@@ -5707,7 +5696,7 @@ function peg$parse(input, options) {
5707
5696
  else {
5708
5697
  s0 = peg$FAILED;
5709
5698
  if (peg$silentFails === 0) {
5710
- peg$fail(peg$e53);
5699
+ peg$fail(peg$e54);
5711
5700
  }
5712
5701
  }
5713
5702
  if (s0 === peg$FAILED) {
@@ -5718,7 +5707,7 @@ function peg$parse(input, options) {
5718
5707
  else {
5719
5708
  s0 = peg$FAILED;
5720
5709
  if (peg$silentFails === 0) {
5721
- peg$fail(peg$e54);
5710
+ peg$fail(peg$e55);
5722
5711
  }
5723
5712
  }
5724
5713
  if (s0 === peg$FAILED) {
@@ -5729,7 +5718,7 @@ function peg$parse(input, options) {
5729
5718
  else {
5730
5719
  s0 = peg$FAILED;
5731
5720
  if (peg$silentFails === 0) {
5732
- peg$fail(peg$e55);
5721
+ peg$fail(peg$e56);
5733
5722
  }
5734
5723
  }
5735
5724
  if (s0 === peg$FAILED) {
@@ -5740,7 +5729,7 @@ function peg$parse(input, options) {
5740
5729
  else {
5741
5730
  s0 = peg$FAILED;
5742
5731
  if (peg$silentFails === 0) {
5743
- peg$fail(peg$e56);
5732
+ peg$fail(peg$e57);
5744
5733
  }
5745
5734
  }
5746
5735
  if (s0 === peg$FAILED) {
@@ -5751,7 +5740,7 @@ function peg$parse(input, options) {
5751
5740
  else {
5752
5741
  s0 = peg$FAILED;
5753
5742
  if (peg$silentFails === 0) {
5754
- peg$fail(peg$e57);
5743
+ peg$fail(peg$e58);
5755
5744
  }
5756
5745
  }
5757
5746
  if (s0 === peg$FAILED) {
@@ -5762,7 +5751,7 @@ function peg$parse(input, options) {
5762
5751
  else {
5763
5752
  s0 = peg$FAILED;
5764
5753
  if (peg$silentFails === 0) {
5765
- peg$fail(peg$e58);
5754
+ peg$fail(peg$e59);
5766
5755
  }
5767
5756
  }
5768
5757
  }
@@ -5793,7 +5782,7 @@ function peg$parse(input, options) {
5793
5782
  else {
5794
5783
  s0 = peg$FAILED;
5795
5784
  if (peg$silentFails === 0) {
5796
- peg$fail(peg$e59);
5785
+ peg$fail(peg$e60);
5797
5786
  }
5798
5787
  }
5799
5788
  if (s0 === peg$FAILED) {
@@ -5804,7 +5793,7 @@ function peg$parse(input, options) {
5804
5793
  else {
5805
5794
  s0 = peg$FAILED;
5806
5795
  if (peg$silentFails === 0) {
5807
- peg$fail(peg$e60);
5796
+ peg$fail(peg$e61);
5808
5797
  }
5809
5798
  }
5810
5799
  if (s0 === peg$FAILED) {
@@ -5815,7 +5804,7 @@ function peg$parse(input, options) {
5815
5804
  else {
5816
5805
  s0 = peg$FAILED;
5817
5806
  if (peg$silentFails === 0) {
5818
- peg$fail(peg$e61);
5807
+ peg$fail(peg$e62);
5819
5808
  }
5820
5809
  }
5821
5810
  if (s0 === peg$FAILED) {
@@ -5826,7 +5815,7 @@ function peg$parse(input, options) {
5826
5815
  else {
5827
5816
  s0 = peg$FAILED;
5828
5817
  if (peg$silentFails === 0) {
5829
- peg$fail(peg$e62);
5818
+ peg$fail(peg$e63);
5830
5819
  }
5831
5820
  }
5832
5821
  if (s0 === peg$FAILED) {
@@ -5837,7 +5826,7 @@ function peg$parse(input, options) {
5837
5826
  else {
5838
5827
  s0 = peg$FAILED;
5839
5828
  if (peg$silentFails === 0) {
5840
- peg$fail(peg$e63);
5829
+ peg$fail(peg$e64);
5841
5830
  }
5842
5831
  }
5843
5832
  if (s0 === peg$FAILED) {
@@ -5848,7 +5837,7 @@ function peg$parse(input, options) {
5848
5837
  else {
5849
5838
  s0 = peg$FAILED;
5850
5839
  if (peg$silentFails === 0) {
5851
- peg$fail(peg$e64);
5840
+ peg$fail(peg$e65);
5852
5841
  }
5853
5842
  }
5854
5843
  if (s0 === peg$FAILED) {
@@ -5859,7 +5848,7 @@ function peg$parse(input, options) {
5859
5848
  else {
5860
5849
  s0 = peg$FAILED;
5861
5850
  if (peg$silentFails === 0) {
5862
- peg$fail(peg$e65);
5851
+ peg$fail(peg$e66);
5863
5852
  }
5864
5853
  }
5865
5854
  if (s0 === peg$FAILED) {
@@ -5870,7 +5859,7 @@ function peg$parse(input, options) {
5870
5859
  else {
5871
5860
  s0 = peg$FAILED;
5872
5861
  if (peg$silentFails === 0) {
5873
- peg$fail(peg$e66);
5862
+ peg$fail(peg$e67);
5874
5863
  }
5875
5864
  }
5876
5865
  if (s0 === peg$FAILED) {
@@ -5881,7 +5870,7 @@ function peg$parse(input, options) {
5881
5870
  else {
5882
5871
  s0 = peg$FAILED;
5883
5872
  if (peg$silentFails === 0) {
5884
- peg$fail(peg$e67);
5873
+ peg$fail(peg$e68);
5885
5874
  }
5886
5875
  }
5887
5876
  if (s0 === peg$FAILED) {
@@ -5892,7 +5881,7 @@ function peg$parse(input, options) {
5892
5881
  else {
5893
5882
  s0 = peg$FAILED;
5894
5883
  if (peg$silentFails === 0) {
5895
- peg$fail(peg$e68);
5884
+ peg$fail(peg$e69);
5896
5885
  }
5897
5886
  }
5898
5887
  if (s0 === peg$FAILED) {
@@ -5903,7 +5892,7 @@ function peg$parse(input, options) {
5903
5892
  else {
5904
5893
  s0 = peg$FAILED;
5905
5894
  if (peg$silentFails === 0) {
5906
- peg$fail(peg$e69);
5895
+ peg$fail(peg$e70);
5907
5896
  }
5908
5897
  }
5909
5898
  if (s0 === peg$FAILED) {
@@ -5914,7 +5903,7 @@ function peg$parse(input, options) {
5914
5903
  else {
5915
5904
  s0 = peg$FAILED;
5916
5905
  if (peg$silentFails === 0) {
5917
- peg$fail(peg$e70);
5906
+ peg$fail(peg$e71);
5918
5907
  }
5919
5908
  }
5920
5909
  if (s0 === peg$FAILED) {
@@ -5925,7 +5914,7 @@ function peg$parse(input, options) {
5925
5914
  else {
5926
5915
  s0 = peg$FAILED;
5927
5916
  if (peg$silentFails === 0) {
5928
- peg$fail(peg$e71);
5917
+ peg$fail(peg$e72);
5929
5918
  }
5930
5919
  }
5931
5920
  if (s0 === peg$FAILED) {
@@ -5936,7 +5925,7 @@ function peg$parse(input, options) {
5936
5925
  else {
5937
5926
  s0 = peg$FAILED;
5938
5927
  if (peg$silentFails === 0) {
5939
- peg$fail(peg$e72);
5928
+ peg$fail(peg$e73);
5940
5929
  }
5941
5930
  }
5942
5931
  if (s0 === peg$FAILED) {
@@ -5947,7 +5936,7 @@ function peg$parse(input, options) {
5947
5936
  else {
5948
5937
  s0 = peg$FAILED;
5949
5938
  if (peg$silentFails === 0) {
5950
- peg$fail(peg$e73);
5939
+ peg$fail(peg$e74);
5951
5940
  }
5952
5941
  }
5953
5942
  if (s0 === peg$FAILED) {
@@ -5958,7 +5947,7 @@ function peg$parse(input, options) {
5958
5947
  else {
5959
5948
  s0 = peg$FAILED;
5960
5949
  if (peg$silentFails === 0) {
5961
- peg$fail(peg$e74);
5950
+ peg$fail(peg$e75);
5962
5951
  }
5963
5952
  }
5964
5953
  if (s0 === peg$FAILED) {
@@ -5969,7 +5958,7 @@ function peg$parse(input, options) {
5969
5958
  else {
5970
5959
  s0 = peg$FAILED;
5971
5960
  if (peg$silentFails === 0) {
5972
- peg$fail(peg$e75);
5961
+ peg$fail(peg$e76);
5973
5962
  }
5974
5963
  }
5975
5964
  if (s0 === peg$FAILED) {
@@ -5980,7 +5969,7 @@ function peg$parse(input, options) {
5980
5969
  else {
5981
5970
  s0 = peg$FAILED;
5982
5971
  if (peg$silentFails === 0) {
5983
- peg$fail(peg$e76);
5972
+ peg$fail(peg$e77);
5984
5973
  }
5985
5974
  }
5986
5975
  if (s0 === peg$FAILED) {
@@ -5991,7 +5980,7 @@ function peg$parse(input, options) {
5991
5980
  else {
5992
5981
  s0 = peg$FAILED;
5993
5982
  if (peg$silentFails === 0) {
5994
- peg$fail(peg$e77);
5983
+ peg$fail(peg$e78);
5995
5984
  }
5996
5985
  }
5997
5986
  if (s0 === peg$FAILED) {
@@ -6002,7 +5991,7 @@ function peg$parse(input, options) {
6002
5991
  else {
6003
5992
  s0 = peg$FAILED;
6004
5993
  if (peg$silentFails === 0) {
6005
- peg$fail(peg$e78);
5994
+ peg$fail(peg$e79);
6006
5995
  }
6007
5996
  }
6008
5997
  if (s0 === peg$FAILED) {
@@ -6013,7 +6002,7 @@ function peg$parse(input, options) {
6013
6002
  else {
6014
6003
  s0 = peg$FAILED;
6015
6004
  if (peg$silentFails === 0) {
6016
- peg$fail(peg$e79);
6005
+ peg$fail(peg$e80);
6017
6006
  }
6018
6007
  }
6019
6008
  if (s0 === peg$FAILED) {
@@ -6024,7 +6013,7 @@ function peg$parse(input, options) {
6024
6013
  else {
6025
6014
  s0 = peg$FAILED;
6026
6015
  if (peg$silentFails === 0) {
6027
- peg$fail(peg$e80);
6016
+ peg$fail(peg$e81);
6028
6017
  }
6029
6018
  }
6030
6019
  }
@@ -6061,7 +6050,7 @@ function peg$parse(input, options) {
6061
6050
  peg$silentFails--;
6062
6051
  s1 = peg$FAILED;
6063
6052
  if (peg$silentFails === 0) {
6064
- peg$fail(peg$e81);
6053
+ peg$fail(peg$e82);
6065
6054
  }
6066
6055
  return s0;
6067
6056
  }
@@ -6090,7 +6079,7 @@ function peg$parse(input, options) {
6090
6079
  peg$silentFails--;
6091
6080
  s1 = peg$FAILED;
6092
6081
  if (peg$silentFails === 0) {
6093
- peg$fail(peg$e82);
6082
+ peg$fail(peg$e83);
6094
6083
  }
6095
6084
  return s0;
6096
6085
  }
@@ -6212,7 +6201,7 @@ function peg$parse(input, options) {
6212
6201
  else {
6213
6202
  s0 = peg$FAILED;
6214
6203
  if (peg$silentFails === 0) {
6215
- peg$fail(peg$e83);
6204
+ peg$fail(peg$e84);
6216
6205
  }
6217
6206
  }
6218
6207
  return s0;
@@ -6226,7 +6215,7 @@ function peg$parse(input, options) {
6226
6215
  else {
6227
6216
  s0 = peg$FAILED;
6228
6217
  if (peg$silentFails === 0) {
6229
- peg$fail(peg$e84);
6218
+ peg$fail(peg$e85);
6230
6219
  }
6231
6220
  }
6232
6221
  return s0;
@@ -6240,7 +6229,7 @@ function peg$parse(input, options) {
6240
6229
  else {
6241
6230
  s0 = peg$FAILED;
6242
6231
  if (peg$silentFails === 0) {
6243
- peg$fail(peg$e85);
6232
+ peg$fail(peg$e86);
6244
6233
  }
6245
6234
  }
6246
6235
  return s0;
@@ -6254,7 +6243,7 @@ function peg$parse(input, options) {
6254
6243
  else {
6255
6244
  s0 = peg$FAILED;
6256
6245
  if (peg$silentFails === 0) {
6257
- peg$fail(peg$e86);
6246
+ peg$fail(peg$e87);
6258
6247
  }
6259
6248
  }
6260
6249
  return s0;
@@ -6352,7 +6341,7 @@ function peg$parse(input, options) {
6352
6341
  else {
6353
6342
  s0 = peg$FAILED;
6354
6343
  if (peg$silentFails === 0) {
6355
- peg$fail(peg$e87);
6344
+ peg$fail(peg$e88);
6356
6345
  }
6357
6346
  }
6358
6347
  return s0;
@@ -6366,7 +6355,7 @@ function peg$parse(input, options) {
6366
6355
  else {
6367
6356
  s0 = peg$FAILED;
6368
6357
  if (peg$silentFails === 0) {
6369
- peg$fail(peg$e88);
6358
+ peg$fail(peg$e89);
6370
6359
  }
6371
6360
  }
6372
6361
  return s0;
@@ -6378,8 +6367,8 @@ function peg$parse(input, options) {
6378
6367
  if (s1 !== peg$FAILED) {
6379
6368
  s2 = peg$currPos;
6380
6369
  s3 = [];
6381
- if (peg$r1.test(input.charAt(peg$currPos))) {
6382
- s4 = input.charAt(peg$currPos);
6370
+ s4 = input.charAt(peg$currPos);
6371
+ if (peg$r1.test(s4)) {
6383
6372
  peg$currPos++;
6384
6373
  }
6385
6374
  else {
@@ -6391,8 +6380,8 @@ function peg$parse(input, options) {
6391
6380
  if (s4 !== peg$FAILED) {
6392
6381
  while (s4 !== peg$FAILED) {
6393
6382
  s3.push(s4);
6394
- if (peg$r1.test(input.charAt(peg$currPos))) {
6395
- s4 = input.charAt(peg$currPos);
6383
+ s4 = input.charAt(peg$currPos);
6384
+ if (peg$r1.test(s4)) {
6396
6385
  peg$currPos++;
6397
6386
  }
6398
6387
  else {
@@ -7258,7 +7247,7 @@ function peg$parse(input, options) {
7258
7247
  else {
7259
7248
  s0 = peg$FAILED;
7260
7249
  if (peg$silentFails === 0) {
7261
- peg$fail(peg$e90);
7250
+ peg$fail(peg$e91);
7262
7251
  }
7263
7252
  }
7264
7253
  if (s0 === peg$FAILED) {
@@ -7269,42 +7258,18 @@ function peg$parse(input, options) {
7269
7258
  else {
7270
7259
  s0 = peg$FAILED;
7271
7260
  if (peg$silentFails === 0) {
7272
- peg$fail(peg$e91);
7261
+ peg$fail(peg$e92);
7273
7262
  }
7274
7263
  }
7275
7264
  if (s0 === peg$FAILED) {
7276
- if (input.charCodeAt(peg$currPos) === 13) {
7277
- s0 = peg$c84;
7265
+ s0 = input.charAt(peg$currPos);
7266
+ if (peg$r3.test(s0)) {
7278
7267
  peg$currPos++;
7279
7268
  }
7280
7269
  else {
7281
7270
  s0 = peg$FAILED;
7282
7271
  if (peg$silentFails === 0) {
7283
- peg$fail(peg$e92);
7284
- }
7285
- }
7286
- if (s0 === peg$FAILED) {
7287
- if (input.charCodeAt(peg$currPos) === 8232) {
7288
- s0 = peg$c85;
7289
- peg$currPos++;
7290
- }
7291
- else {
7292
- s0 = peg$FAILED;
7293
- if (peg$silentFails === 0) {
7294
- peg$fail(peg$e93);
7295
- }
7296
- }
7297
- if (s0 === peg$FAILED) {
7298
- if (input.charCodeAt(peg$currPos) === 8233) {
7299
- s0 = peg$c86;
7300
- peg$currPos++;
7301
- }
7302
- else {
7303
- s0 = peg$FAILED;
7304
- if (peg$silentFails === 0) {
7305
- peg$fail(peg$e94);
7306
- }
7307
- }
7272
+ peg$fail(peg$e93);
7308
7273
  }
7309
7274
  }
7310
7275
  }
@@ -7313,7 +7278,7 @@ function peg$parse(input, options) {
7313
7278
  if (s0 === peg$FAILED) {
7314
7279
  s1 = peg$FAILED;
7315
7280
  if (peg$silentFails === 0) {
7316
- peg$fail(peg$e89);
7281
+ peg$fail(peg$e90);
7317
7282
  }
7318
7283
  }
7319
7284
  return s0;
@@ -7322,8 +7287,8 @@ function peg$parse(input, options) {
7322
7287
  var s0, s1;
7323
7288
  peg$silentFails++;
7324
7289
  s0 = [];
7325
- if (peg$r0.test(input.charAt(peg$currPos))) {
7326
- s1 = input.charAt(peg$currPos);
7290
+ s1 = input.charAt(peg$currPos);
7291
+ if (peg$r0.test(s1)) {
7327
7292
  peg$currPos++;
7328
7293
  }
7329
7294
  else {
@@ -7334,8 +7299,8 @@ function peg$parse(input, options) {
7334
7299
  }
7335
7300
  while (s1 !== peg$FAILED) {
7336
7301
  s0.push(s1);
7337
- if (peg$r0.test(input.charAt(peg$currPos))) {
7338
- s1 = input.charAt(peg$currPos);
7302
+ s1 = input.charAt(peg$currPos);
7303
+ if (peg$r0.test(s1)) {
7339
7304
  peg$currPos++;
7340
7305
  }
7341
7306
  else {
@@ -7348,7 +7313,7 @@ function peg$parse(input, options) {
7348
7313
  peg$silentFails--;
7349
7314
  s1 = peg$FAILED;
7350
7315
  if (peg$silentFails === 0) {
7351
- peg$fail(peg$e95);
7316
+ peg$fail(peg$e94);
7352
7317
  }
7353
7318
  return s0;
7354
7319
  }
@@ -7372,15 +7337,15 @@ function peg$parse(input, options) {
7372
7337
  peg$silentFails--;
7373
7338
  s1 = peg$FAILED;
7374
7339
  if (peg$silentFails === 0) {
7375
- peg$fail(peg$e96);
7340
+ peg$fail(peg$e95);
7376
7341
  }
7377
7342
  return s0;
7378
7343
  }
7379
7344
  function peg$parseHTS() {
7380
7345
  var s0, s1;
7381
7346
  peg$silentFails++;
7382
- if (peg$r0.test(input.charAt(peg$currPos))) {
7383
- s0 = input.charAt(peg$currPos);
7347
+ s0 = input.charAt(peg$currPos);
7348
+ if (peg$r0.test(s0)) {
7384
7349
  peg$currPos++;
7385
7350
  }
7386
7351
  else {
@@ -7396,7 +7361,7 @@ function peg$parse(input, options) {
7396
7361
  if (s0 === peg$FAILED) {
7397
7362
  s1 = peg$FAILED;
7398
7363
  if (peg$silentFails === 0) {
7399
- peg$fail(peg$e97);
7364
+ peg$fail(peg$e96);
7400
7365
  }
7401
7366
  }
7402
7367
  return s0;
@@ -7404,63 +7369,63 @@ function peg$parse(input, options) {
7404
7369
  function peg$parseWhiteSpace() {
7405
7370
  var s0, s1;
7406
7371
  peg$silentFails++;
7407
- if (peg$r2.test(input.charAt(peg$currPos))) {
7408
- s0 = input.charAt(peg$currPos);
7372
+ s0 = input.charAt(peg$currPos);
7373
+ if (peg$r4.test(s0)) {
7409
7374
  peg$currPos++;
7410
7375
  }
7411
7376
  else {
7412
7377
  s0 = peg$FAILED;
7413
7378
  if (peg$silentFails === 0) {
7414
- peg$fail(peg$e99);
7379
+ peg$fail(peg$e98);
7415
7380
  }
7416
7381
  }
7417
7382
  peg$silentFails--;
7418
7383
  if (s0 === peg$FAILED) {
7419
7384
  s1 = peg$FAILED;
7420
7385
  if (peg$silentFails === 0) {
7421
- peg$fail(peg$e98);
7386
+ peg$fail(peg$e97);
7422
7387
  }
7423
7388
  }
7424
7389
  return s0;
7425
7390
  }
7426
7391
  function peg$parseLineTerminator() {
7427
7392
  var s0;
7428
- if (peg$r3.test(input.charAt(peg$currPos))) {
7429
- s0 = input.charAt(peg$currPos);
7393
+ s0 = input.charAt(peg$currPos);
7394
+ if (peg$r5.test(s0)) {
7430
7395
  peg$currPos++;
7431
7396
  }
7432
7397
  else {
7433
7398
  s0 = peg$FAILED;
7434
7399
  if (peg$silentFails === 0) {
7435
- peg$fail(peg$e100);
7400
+ peg$fail(peg$e99);
7436
7401
  }
7437
7402
  }
7438
7403
  return s0;
7439
7404
  }
7440
7405
  function peg$parsechar() {
7441
7406
  var s0;
7442
- if (peg$r4.test(input.charAt(peg$currPos))) {
7443
- s0 = input.charAt(peg$currPos);
7407
+ s0 = input.charAt(peg$currPos);
7408
+ if (peg$r6.test(s0)) {
7444
7409
  peg$currPos++;
7445
7410
  }
7446
7411
  else {
7447
7412
  s0 = peg$FAILED;
7448
7413
  if (peg$silentFails === 0) {
7449
- peg$fail(peg$e101);
7414
+ peg$fail(peg$e100);
7450
7415
  }
7451
7416
  }
7452
7417
  return s0;
7453
7418
  }
7454
7419
  function peg$parseword() {
7455
7420
  var s0;
7456
- if (peg$r5.test(input.charAt(peg$currPos))) {
7457
- s0 = input.charAt(peg$currPos);
7421
+ s0 = input.charAt(peg$currPos);
7422
+ if (peg$r7.test(s0)) {
7458
7423
  peg$currPos++;
7459
7424
  }
7460
7425
  else {
7461
7426
  s0 = peg$FAILED;
7462
7427
  if (peg$silentFails === 0) {
7463
- peg$fail(peg$e102);
7428
+ peg$fail(peg$e101);
7464
7429
  }
7465
7430
  }
7466
7431
  return s0;
@@ -7496,38 +7461,38 @@ function peg$parse(input, options) {
7496
7461
  var s0, s1, s2, s3, s4, s5, s6, s7, s8;
7497
7462
  s0 = peg$currPos;
7498
7463
  s1 = peg$currPos;
7499
- if (input.substr(peg$currPos, 4) === peg$c87) {
7500
- s2 = peg$c87;
7464
+ if (input.substr(peg$currPos, 4) === peg$c84) {
7465
+ s2 = peg$c84;
7501
7466
  peg$currPos += 4;
7502
7467
  }
7503
7468
  else {
7504
7469
  s2 = peg$FAILED;
7505
7470
  if (peg$silentFails === 0) {
7506
- peg$fail(peg$e103);
7471
+ peg$fail(peg$e102);
7507
7472
  }
7508
7473
  }
7509
7474
  if (s2 !== peg$FAILED) {
7510
7475
  if (input.charCodeAt(peg$currPos) === 115) {
7511
- s3 = peg$c88;
7476
+ s3 = peg$c85;
7512
7477
  peg$currPos++;
7513
7478
  }
7514
7479
  else {
7515
7480
  s3 = peg$FAILED;
7516
7481
  if (peg$silentFails === 0) {
7517
- peg$fail(peg$e104);
7482
+ peg$fail(peg$e103);
7518
7483
  }
7519
7484
  }
7520
7485
  if (s3 === peg$FAILED) {
7521
7486
  s3 = null;
7522
7487
  }
7523
- if (input.substr(peg$currPos, 3) === peg$c89) {
7524
- s4 = peg$c89;
7488
+ if (input.substr(peg$currPos, 3) === peg$c86) {
7489
+ s4 = peg$c86;
7525
7490
  peg$currPos += 3;
7526
7491
  }
7527
7492
  else {
7528
7493
  s4 = peg$FAILED;
7529
7494
  if (peg$silentFails === 0) {
7530
- peg$fail(peg$e105);
7495
+ peg$fail(peg$e104);
7531
7496
  }
7532
7497
  }
7533
7498
  if (s4 !== peg$FAILED) {
@@ -7614,38 +7579,38 @@ function peg$parse(input, options) {
7614
7579
  s0 = peg$currPos;
7615
7580
  s1 = peg$currPos;
7616
7581
  s2 = peg$currPos;
7617
- if (input.substr(peg$currPos, 4) === peg$c87) {
7618
- s3 = peg$c87;
7582
+ if (input.substr(peg$currPos, 4) === peg$c84) {
7583
+ s3 = peg$c84;
7619
7584
  peg$currPos += 4;
7620
7585
  }
7621
7586
  else {
7622
7587
  s3 = peg$FAILED;
7623
7588
  if (peg$silentFails === 0) {
7624
- peg$fail(peg$e103);
7589
+ peg$fail(peg$e102);
7625
7590
  }
7626
7591
  }
7627
7592
  if (s3 !== peg$FAILED) {
7628
7593
  if (input.charCodeAt(peg$currPos) === 115) {
7629
- s4 = peg$c88;
7594
+ s4 = peg$c85;
7630
7595
  peg$currPos++;
7631
7596
  }
7632
7597
  else {
7633
7598
  s4 = peg$FAILED;
7634
7599
  if (peg$silentFails === 0) {
7635
- peg$fail(peg$e104);
7600
+ peg$fail(peg$e103);
7636
7601
  }
7637
7602
  }
7638
7603
  if (s4 === peg$FAILED) {
7639
7604
  s4 = null;
7640
7605
  }
7641
- if (input.substr(peg$currPos, 3) === peg$c89) {
7642
- s5 = peg$c89;
7606
+ if (input.substr(peg$currPos, 3) === peg$c86) {
7607
+ s5 = peg$c86;
7643
7608
  peg$currPos += 3;
7644
7609
  }
7645
7610
  else {
7646
7611
  s5 = peg$FAILED;
7647
7612
  if (peg$silentFails === 0) {
7648
- peg$fail(peg$e105);
7613
+ peg$fail(peg$e104);
7649
7614
  }
7650
7615
  }
7651
7616
  if (s5 !== peg$FAILED) {
@@ -7662,14 +7627,14 @@ function peg$parse(input, options) {
7662
7627
  s2 = peg$FAILED;
7663
7628
  }
7664
7629
  if (s2 === peg$FAILED) {
7665
- if (input.substr(peg$currPos, 7) === peg$c90) {
7666
- s2 = peg$c90;
7630
+ if (input.substr(peg$currPos, 7) === peg$c87) {
7631
+ s2 = peg$c87;
7667
7632
  peg$currPos += 7;
7668
7633
  }
7669
7634
  else {
7670
7635
  s2 = peg$FAILED;
7671
7636
  if (peg$silentFails === 0) {
7672
- peg$fail(peg$e106);
7637
+ peg$fail(peg$e105);
7673
7638
  }
7674
7639
  }
7675
7640
  }
@@ -7751,50 +7716,14 @@ function peg$parse(input, options) {
7751
7716
  }
7752
7717
  function peg$parseUrlChars() {
7753
7718
  var s0;
7754
- if (peg$r6.test(input.charAt(peg$currPos))) {
7755
- s0 = input.charAt(peg$currPos);
7719
+ s0 = input.charAt(peg$currPos);
7720
+ if (peg$r8.test(s0)) {
7756
7721
  peg$currPos++;
7757
7722
  }
7758
7723
  else {
7759
7724
  s0 = peg$FAILED;
7760
7725
  if (peg$silentFails === 0) {
7761
- peg$fail(peg$e107);
7762
- }
7763
- }
7764
- if (s0 === peg$FAILED) {
7765
- if (input.charCodeAt(peg$currPos) === 126) {
7766
- s0 = peg$c91;
7767
- peg$currPos++;
7768
- }
7769
- else {
7770
- s0 = peg$FAILED;
7771
- if (peg$silentFails === 0) {
7772
- peg$fail(peg$e108);
7773
- }
7774
- }
7775
- if (s0 === peg$FAILED) {
7776
- if (input.charCodeAt(peg$currPos) === 94) {
7777
- s0 = peg$c92;
7778
- peg$currPos++;
7779
- }
7780
- else {
7781
- s0 = peg$FAILED;
7782
- if (peg$silentFails === 0) {
7783
- peg$fail(peg$e109);
7784
- }
7785
- }
7786
- if (s0 === peg$FAILED) {
7787
- if (input.charCodeAt(peg$currPos) === 39) {
7788
- s0 = peg$c93;
7789
- peg$currPos++;
7790
- }
7791
- else {
7792
- s0 = peg$FAILED;
7793
- if (peg$silentFails === 0) {
7794
- peg$fail(peg$e110);
7795
- }
7796
- }
7797
- }
7726
+ peg$fail(peg$e106);
7798
7727
  }
7799
7728
  }
7800
7729
  return s0;
@@ -7802,6 +7731,15 @@ function peg$parse(input, options) {
7802
7731
  var indentStack = [], indent = "";
7803
7732
  input = input.trimStart();
7804
7733
  peg$result = peg$startRuleFunction();
7734
+ if (options.peg$library) {
7735
+ return /** @type {any} */ ({
7736
+ peg$result,
7737
+ peg$currPos,
7738
+ peg$FAILED,
7739
+ peg$maxFailExpected,
7740
+ peg$maxFailPos
7741
+ });
7742
+ }
7805
7743
  if (peg$result !== peg$FAILED && peg$currPos === input.length) {
7806
7744
  return peg$result;
7807
7745
  }
@@ -7815,4 +7753,13 @@ function peg$parse(input, options) {
7815
7753
  }
7816
7754
  }
7817
7755
  exports.parse = peg$parse;
7756
+ const peg$allowedStartRules = [
7757
+ "version",
7758
+ "bitmarkPlusPlus",
7759
+ "bitmarkPlus",
7760
+ "bitmarkMinusMinus",
7761
+ "bitmarkPlusString",
7762
+ "bitmarkMinusMinusString"
7763
+ ];
7764
+ exports.StartRules = peg$allowedStartRules;
7818
7765
  //# sourceMappingURL=text-peggy-parser.js.map