@gmb/bitmark-parser-generator 5.28.0 → 5.30.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/browser/bitmark-parser-generator.min.js +1 -1
- package/dist/browser/bundle-report.html +2 -2
- package/dist/browser/cjs/index.cjs +658 -410
- package/dist/browser/cjs/index.cjs.map +1 -1
- package/dist/browser/cjs/index.d.cts +6 -0
- package/dist/browser/esm/index.d.ts +6 -0
- package/dist/browser/esm/index.js +658 -410
- package/dist/browser/esm/index.js.map +1 -1
- package/dist/cli/main.js +655 -409
- package/dist/cli/main.js.map +1 -1
- package/dist/index.cjs +658 -410
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +6 -0
- package/dist/index.d.ts +6 -0
- package/dist/index.js +658 -410
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -1369,6 +1369,7 @@ var propertyKeys = {
|
|
|
1369
1369
|
property_bubbleTag: "@bubbleTag",
|
|
1370
1370
|
property_extractorTag: "@extractorTag",
|
|
1371
1371
|
property_extractorInternal: "@extractorInternal",
|
|
1372
|
+
property_bitFingerprint: "@bitFingerprint",
|
|
1372
1373
|
property_buttonCaption: "@buttonCaption",
|
|
1373
1374
|
property_callToActionUrl: "@callToActionUrl",
|
|
1374
1375
|
property_caption: "@caption",
|
|
@@ -4661,6 +4662,12 @@ var GROUPS = {
|
|
|
4661
4662
|
format: TagFormat.coordinates,
|
|
4662
4663
|
maxCount: Count.infinity
|
|
4663
4664
|
},
|
|
4665
|
+
{
|
|
4666
|
+
key: ConfigKey.property_bitFingerprint,
|
|
4667
|
+
description: "Fingerprint(s) used by the AI extractor to identify the bit (font, style, color, pixels, etc.)",
|
|
4668
|
+
format: TagFormat.plainText,
|
|
4669
|
+
maxCount: Count.infinity
|
|
4670
|
+
},
|
|
4664
4671
|
{
|
|
4665
4672
|
key: ConfigKey.property_levelCEFRp,
|
|
4666
4673
|
description: "The CEFRp level for the bit",
|
|
@@ -10254,7 +10261,18 @@ var BITS = {
|
|
|
10254
10261
|
since: "5.12.0",
|
|
10255
10262
|
baseBitType: BitType._standard,
|
|
10256
10263
|
description: "Extractor blueprint bit, used to provide blueprint information about extractors",
|
|
10257
|
-
textFormatDefault: TextFormat.json
|
|
10264
|
+
textFormatDefault: TextFormat.json,
|
|
10265
|
+
tags: [
|
|
10266
|
+
{
|
|
10267
|
+
key: ConfigKey.group_resourceBitTags,
|
|
10268
|
+
description: "Resource bit tags for the blueprint reference image"
|
|
10269
|
+
},
|
|
10270
|
+
{
|
|
10271
|
+
key: ConfigKey.group_resourceImage,
|
|
10272
|
+
description: "Optional uncropped reference page image, used so authoring tools can compute crops against the original page dimensions"
|
|
10273
|
+
}
|
|
10274
|
+
],
|
|
10275
|
+
resourceAttachmentAllowed: false
|
|
10258
10276
|
},
|
|
10259
10277
|
[BitType.extractorInformation]: {
|
|
10260
10278
|
since: "3.8.0",
|
|
@@ -13952,7 +13970,7 @@ var instance2 = new Config();
|
|
|
13952
13970
|
// src/generated/package_info.ts
|
|
13953
13971
|
var PACKAGE_INFO = {
|
|
13954
13972
|
"name": "@gmb/bitmark-parser-generator",
|
|
13955
|
-
"version": "5.
|
|
13973
|
+
"version": "5.30.0",
|
|
13956
13974
|
"author": "Get More Brain Ltd",
|
|
13957
13975
|
"license": "ISC",
|
|
13958
13976
|
"description": "A bitmark parser and generator using Peggy.js"
|
|
@@ -14365,6 +14383,8 @@ var NodeType = {
|
|
|
14365
14383
|
// bit
|
|
14366
14384
|
bitType: "bitType",
|
|
14367
14385
|
// bit type
|
|
14386
|
+
bitFingerprint: "bitFingerprint",
|
|
14387
|
+
bitFingerprintValue: "bitFingerprintValue",
|
|
14368
14388
|
blockId: "blockId",
|
|
14369
14389
|
blockIdValue: "blockIdValue",
|
|
14370
14390
|
body: "body",
|
|
@@ -16983,26 +17003,26 @@ function peg$parse(input, options) {
|
|
|
16983
17003
|
bitmarkMinusMinusString: peg$parsebitmarkMinusMinusString
|
|
16984
17004
|
};
|
|
16985
17005
|
let peg$startRuleFunction = peg$parseversion;
|
|
16986
|
-
const peg$c0 = "
|
|
16987
|
-
const peg$c1 = "
|
|
16988
|
-
const peg$c2 = "
|
|
16989
|
-
const peg$c3 = "
|
|
16990
|
-
const peg$c4 = "
|
|
16991
|
-
const peg$c5 = "
|
|
16992
|
-
const peg$c6 = "
|
|
16993
|
-
const peg$c7 = "bitmark
|
|
16994
|
-
const peg$c8 = "
|
|
16995
|
-
const peg$c9 = "
|
|
16996
|
-
const peg$c10 = "\
|
|
16997
|
-
const peg$c11 = "\
|
|
16998
|
-
const peg$c12 = "
|
|
16999
|
-
const peg$c13 = "
|
|
17000
|
-
const peg$c14 = "
|
|
17001
|
-
const peg$c15 = "
|
|
17002
|
-
const peg$c16 = "\
|
|
17003
|
-
const peg$c17 = "\
|
|
17004
|
-
const peg$c18 = "\u2022
|
|
17005
|
-
const peg$c19 = "
|
|
17006
|
+
const peg$c0 = " ";
|
|
17007
|
+
const peg$c1 = "|";
|
|
17008
|
+
const peg$c2 = "### ";
|
|
17009
|
+
const peg$c3 = "## ";
|
|
17010
|
+
const peg$c4 = "# ";
|
|
17011
|
+
const peg$c5 = "code";
|
|
17012
|
+
const peg$c6 = ":";
|
|
17013
|
+
const peg$c7 = "bitmark++";
|
|
17014
|
+
const peg$c8 = "bitmark--";
|
|
17015
|
+
const peg$c9 = "JavaScript";
|
|
17016
|
+
const peg$c10 = "\u2022 ";
|
|
17017
|
+
const peg$c11 = "\u2022_ ";
|
|
17018
|
+
const peg$c12 = "\u2022";
|
|
17019
|
+
const peg$c13 = " ";
|
|
17020
|
+
const peg$c14 = "I ";
|
|
17021
|
+
const peg$c15 = "i ";
|
|
17022
|
+
const peg$c16 = "\u2022A ";
|
|
17023
|
+
const peg$c17 = "\u2022a ";
|
|
17024
|
+
const peg$c18 = "\u2022+ ";
|
|
17025
|
+
const peg$c19 = "\u2022- ";
|
|
17006
17026
|
const peg$c20 = "image";
|
|
17007
17027
|
const peg$c21 = "#";
|
|
17008
17028
|
const peg$c22 = "@";
|
|
@@ -17134,28 +17154,28 @@ function peg$parse(input, options) {
|
|
|
17134
17154
|
const peg$r4 = /^[!#-;=?-[\]-_a-{}-~]/;
|
|
17135
17155
|
const peg$e0 = peg$anyExpectation();
|
|
17136
17156
|
const peg$e1 = peg$otherExpectation("StyledText");
|
|
17137
|
-
const peg$e2 = peg$literalExpectation("
|
|
17138
|
-
const peg$e3 = peg$literalExpectation("
|
|
17139
|
-
const peg$e4 = peg$literalExpectation("
|
|
17140
|
-
const peg$e5 = peg$literalExpectation("
|
|
17141
|
-
const peg$e6 = peg$literalExpectation("
|
|
17142
|
-
const peg$e7 = peg$
|
|
17143
|
-
const peg$e8 = peg$
|
|
17144
|
-
const peg$e9 = peg$literalExpectation("
|
|
17145
|
-
const peg$e10 = peg$literalExpectation("bitmark
|
|
17146
|
-
const peg$e11 = peg$literalExpectation("
|
|
17147
|
-
const peg$e12 = peg$literalExpectation("
|
|
17148
|
-
const peg$e13 = peg$literalExpectation("\
|
|
17149
|
-
const peg$e14 = peg$literalExpectation("\
|
|
17150
|
-
const peg$e15 = peg$
|
|
17151
|
-
const peg$e16 = peg$
|
|
17152
|
-
const peg$e17 = peg$literalExpectation("
|
|
17153
|
-
const peg$e18 = peg$literalExpectation("
|
|
17154
|
-
const peg$e19 = peg$literalExpectation("
|
|
17155
|
-
const peg$e20 = peg$literalExpectation("\
|
|
17156
|
-
const peg$e21 = peg$literalExpectation("\
|
|
17157
|
-
const peg$e22 = peg$literalExpectation("\u2022
|
|
17158
|
-
const peg$e23 = peg$literalExpectation("
|
|
17157
|
+
const peg$e2 = peg$literalExpectation(" ", false);
|
|
17158
|
+
const peg$e3 = peg$literalExpectation("|", false);
|
|
17159
|
+
const peg$e4 = peg$literalExpectation("### ", false);
|
|
17160
|
+
const peg$e5 = peg$literalExpectation("## ", false);
|
|
17161
|
+
const peg$e6 = peg$literalExpectation("# ", false);
|
|
17162
|
+
const peg$e7 = peg$literalExpectation("code", false);
|
|
17163
|
+
const peg$e8 = peg$classExpectation([" ", " "], false, false, false);
|
|
17164
|
+
const peg$e9 = peg$literalExpectation(":", false);
|
|
17165
|
+
const peg$e10 = peg$literalExpectation("bitmark++", false);
|
|
17166
|
+
const peg$e11 = peg$literalExpectation("bitmark--", false);
|
|
17167
|
+
const peg$e12 = peg$literalExpectation("JavaScript", false);
|
|
17168
|
+
const peg$e13 = peg$literalExpectation("\u2022 ", false);
|
|
17169
|
+
const peg$e14 = peg$literalExpectation("\u2022_ ", false);
|
|
17170
|
+
const peg$e15 = peg$literalExpectation("\u2022", false);
|
|
17171
|
+
const peg$e16 = peg$classExpectation([["0", "9"]], false, false, false);
|
|
17172
|
+
const peg$e17 = peg$literalExpectation(" ", false);
|
|
17173
|
+
const peg$e18 = peg$literalExpectation("I ", false);
|
|
17174
|
+
const peg$e19 = peg$literalExpectation("i ", false);
|
|
17175
|
+
const peg$e20 = peg$literalExpectation("\u2022A ", false);
|
|
17176
|
+
const peg$e21 = peg$literalExpectation("\u2022a ", false);
|
|
17177
|
+
const peg$e22 = peg$literalExpectation("\u2022+ ", false);
|
|
17178
|
+
const peg$e23 = peg$literalExpectation("\u2022- ", false);
|
|
17159
17179
|
const peg$e24 = peg$literalExpectation("image", false);
|
|
17160
17180
|
const peg$e25 = peg$literalExpectation("#", false);
|
|
17161
17181
|
const peg$e26 = peg$literalExpectation("@", false);
|
|
@@ -17331,15 +17351,14 @@ function peg$parse(input, options) {
|
|
|
17331
17351
|
function peg$f13(t) {
|
|
17332
17352
|
return t;
|
|
17333
17353
|
}
|
|
17334
|
-
function peg$f14(
|
|
17335
|
-
return
|
|
17354
|
+
function peg$f14(b) {
|
|
17355
|
+
return b;
|
|
17336
17356
|
}
|
|
17337
17357
|
function peg$f15(c, bl) {
|
|
17338
17358
|
return { ...c, content: bl, attrs: {} };
|
|
17339
17359
|
}
|
|
17340
17360
|
function peg$f16(c, bl) {
|
|
17341
|
-
|
|
17342
|
-
return { ...c, attrs: { start }, content: bl };
|
|
17361
|
+
return { ...c, content: bl, attrs: {} };
|
|
17343
17362
|
}
|
|
17344
17363
|
function peg$f17(c, bl) {
|
|
17345
17364
|
let start = bl[0]._tempListStart;
|
|
@@ -17350,7 +17369,8 @@ function peg$parse(input, options) {
|
|
|
17350
17369
|
return { ...c, attrs: { start }, content: bl };
|
|
17351
17370
|
}
|
|
17352
17371
|
function peg$f19(c, bl) {
|
|
17353
|
-
|
|
17372
|
+
let start = bl[0]._tempListStart;
|
|
17373
|
+
return { ...c, attrs: { start }, content: bl };
|
|
17354
17374
|
}
|
|
17355
17375
|
function peg$f20(c, bl) {
|
|
17356
17376
|
return { ...c, content: bl, attrs: {} };
|
|
@@ -17358,34 +17378,41 @@ function peg$parse(input, options) {
|
|
|
17358
17378
|
function peg$f21(c, bl) {
|
|
17359
17379
|
return { ...c, content: bl, attrs: {} };
|
|
17360
17380
|
}
|
|
17361
|
-
function peg$f22() {
|
|
17381
|
+
function peg$f22(c, bl) {
|
|
17382
|
+
return { ...c, content: bl, attrs: {} };
|
|
17383
|
+
}
|
|
17384
|
+
function peg$f23(i) {
|
|
17385
|
+
indentStack = [];
|
|
17386
|
+
indent = i.join("");
|
|
17387
|
+
}
|
|
17388
|
+
function peg$f24() {
|
|
17362
17389
|
return { type: "bulletList" };
|
|
17363
17390
|
}
|
|
17364
|
-
function peg$
|
|
17391
|
+
function peg$f25() {
|
|
17365
17392
|
return { type: "noBulletList" };
|
|
17366
17393
|
}
|
|
17367
|
-
function peg$
|
|
17394
|
+
function peg$f26() {
|
|
17368
17395
|
return { type: "orderedList" };
|
|
17369
17396
|
}
|
|
17370
|
-
function peg$
|
|
17397
|
+
function peg$f27() {
|
|
17371
17398
|
return { type: "orderedListRoman" };
|
|
17372
17399
|
}
|
|
17373
|
-
function peg$
|
|
17400
|
+
function peg$f28() {
|
|
17374
17401
|
return { type: "orderedListRomanLower" };
|
|
17375
17402
|
}
|
|
17376
|
-
function peg$
|
|
17403
|
+
function peg$f29() {
|
|
17377
17404
|
return { type: "letteredList" };
|
|
17378
17405
|
}
|
|
17379
|
-
function peg$
|
|
17406
|
+
function peg$f30() {
|
|
17380
17407
|
return { type: "letteredListLower" };
|
|
17381
17408
|
}
|
|
17382
|
-
function peg$
|
|
17409
|
+
function peg$f31() {
|
|
17383
17410
|
return { type: "taskList" };
|
|
17384
17411
|
}
|
|
17385
|
-
function peg$
|
|
17412
|
+
function peg$f32(lt, listItem, lines, c) {
|
|
17386
17413
|
return c;
|
|
17387
17414
|
}
|
|
17388
|
-
function peg$
|
|
17415
|
+
function peg$f33(lt, listItem, lines, children) {
|
|
17389
17416
|
let _tempParsingParent = "bulletList";
|
|
17390
17417
|
const matchOrdered = lt.match(/•([0-9]+)([Ii]?) /);
|
|
17391
17418
|
let start = 1;
|
|
@@ -17454,36 +17481,36 @@ function peg$parse(input, options) {
|
|
|
17454
17481
|
return { type: t, content, _tempParsingParent, _tempListStart };
|
|
17455
17482
|
}
|
|
17456
17483
|
}
|
|
17457
|
-
function peg$
|
|
17484
|
+
function peg$f34(ll) {
|
|
17458
17485
|
return ll;
|
|
17459
17486
|
}
|
|
17460
|
-
function peg$
|
|
17487
|
+
function peg$f35(i) {
|
|
17461
17488
|
return i.join("") === indent;
|
|
17462
17489
|
}
|
|
17463
|
-
function peg$
|
|
17490
|
+
function peg$f36(i) {
|
|
17464
17491
|
return i.length > indent.length;
|
|
17465
17492
|
}
|
|
17466
|
-
function peg$
|
|
17493
|
+
function peg$f37(i) {
|
|
17467
17494
|
indentStack.push(indent);
|
|
17468
17495
|
indent = i.join("");
|
|
17469
17496
|
}
|
|
17470
|
-
function peg$
|
|
17497
|
+
function peg$f38() {
|
|
17471
17498
|
indent = indentStack.pop();
|
|
17472
17499
|
return true;
|
|
17473
17500
|
}
|
|
17474
|
-
function peg$
|
|
17501
|
+
function peg$f39(body) {
|
|
17475
17502
|
return { type: "paragraph", content: bitmarkPlusString(body.trim()), attrs: {} };
|
|
17476
17503
|
}
|
|
17477
|
-
function peg$
|
|
17504
|
+
function peg$f40(body) {
|
|
17478
17505
|
return { type: "paragraph", content: bitmarkPlusString(body.trim()), attrs: {} };
|
|
17479
17506
|
}
|
|
17480
|
-
function peg$
|
|
17507
|
+
function peg$f41(body) {
|
|
17481
17508
|
return { type: "paragraph", content: bitmarkPlusString(body.trim()), attrs: {} };
|
|
17482
17509
|
}
|
|
17483
|
-
function peg$
|
|
17510
|
+
function peg$f42(t) {
|
|
17484
17511
|
return t;
|
|
17485
17512
|
}
|
|
17486
|
-
function peg$
|
|
17513
|
+
function peg$f43(t, u, ch) {
|
|
17487
17514
|
const chain = Object.assign({}, ...ch);
|
|
17488
17515
|
let imageAlignment_ = chain.alignment || "center";
|
|
17489
17516
|
delete chain.alignment;
|
|
@@ -17512,185 +17539,185 @@ function peg$parse(input, options) {
|
|
|
17512
17539
|
};
|
|
17513
17540
|
return image;
|
|
17514
17541
|
}
|
|
17515
|
-
function peg$
|
|
17542
|
+
function peg$f44(ch) {
|
|
17516
17543
|
return ch;
|
|
17517
17544
|
}
|
|
17518
|
-
function peg$
|
|
17545
|
+
function peg$f45(str) {
|
|
17519
17546
|
return { comment: str.trim() };
|
|
17520
17547
|
}
|
|
17521
|
-
function peg$
|
|
17548
|
+
function peg$f46(p, v) {
|
|
17522
17549
|
return { [p]: parseInt(v) };
|
|
17523
17550
|
}
|
|
17524
|
-
function peg$
|
|
17551
|
+
function peg$f47(p, v) {
|
|
17525
17552
|
return { [p]: v.trim() };
|
|
17526
17553
|
}
|
|
17527
|
-
function peg$
|
|
17554
|
+
function peg$f48(p, v) {
|
|
17528
17555
|
return { [p]: v };
|
|
17529
17556
|
}
|
|
17530
|
-
function peg$
|
|
17557
|
+
function peg$f49(p, v) {
|
|
17531
17558
|
return { [p]: v };
|
|
17532
17559
|
}
|
|
17533
|
-
function peg$
|
|
17560
|
+
function peg$f50(p) {
|
|
17534
17561
|
return { [p]: true };
|
|
17535
17562
|
}
|
|
17536
|
-
function peg$
|
|
17563
|
+
function peg$f51() {
|
|
17537
17564
|
return;
|
|
17538
17565
|
}
|
|
17539
|
-
function peg$
|
|
17566
|
+
function peg$f52(p) {
|
|
17540
17567
|
return { error: "Found unknown property or invalid value: " + p };
|
|
17541
17568
|
}
|
|
17542
|
-
function peg$
|
|
17569
|
+
function peg$f53(bs) {
|
|
17543
17570
|
return [{ type: "paragraph", content: bs, attrs: {} }];
|
|
17544
17571
|
}
|
|
17545
|
-
function peg$
|
|
17572
|
+
function peg$f54(first, more) {
|
|
17546
17573
|
const cleaned_ = cleanEmptyTextNodes(first ? [first, ...more.flat()] : more.flat());
|
|
17547
17574
|
return cleaned_;
|
|
17548
17575
|
}
|
|
17549
|
-
function peg$
|
|
17576
|
+
function peg$f55() {
|
|
17550
17577
|
return { "type": "hardBreak" };
|
|
17551
17578
|
}
|
|
17552
|
-
function peg$
|
|
17579
|
+
function peg$f56(t) {
|
|
17553
17580
|
return { text: unbreakscape(t), type: "text" };
|
|
17554
17581
|
}
|
|
17555
|
-
function peg$
|
|
17582
|
+
function peg$f57(t) {
|
|
17556
17583
|
return { index: +t, type: "bit" };
|
|
17557
17584
|
}
|
|
17558
|
-
function peg$
|
|
17585
|
+
function peg$f58(t) {
|
|
17559
17586
|
return { attrs: { formula: unbreakscape(t) }, type: "latex" };
|
|
17560
17587
|
}
|
|
17561
|
-
function peg$
|
|
17588
|
+
function peg$f59(alt, u, ch) {
|
|
17562
17589
|
return { attrs: { alt, src: (u.pr + u.t).trim(), ...Object.assign({}, ...ch), zoomDisabled: true }, type: "imageInline" };
|
|
17563
17590
|
}
|
|
17564
|
-
function peg$
|
|
17591
|
+
function peg$f60(t, marks) {
|
|
17565
17592
|
if (!marks) marks = [];
|
|
17566
17593
|
return { marks, text: unbreakscape(t), type: "text" };
|
|
17567
17594
|
}
|
|
17568
|
-
function peg$
|
|
17595
|
+
function peg$f61(t) {
|
|
17569
17596
|
return { marks: [{ type: "bold" }], text: unbreakscape(t), type: "text" };
|
|
17570
17597
|
}
|
|
17571
|
-
function peg$
|
|
17598
|
+
function peg$f62(t) {
|
|
17572
17599
|
return { marks: [{ type: "italic" }], text: unbreakscape(t), type: "text" };
|
|
17573
17600
|
}
|
|
17574
|
-
function peg$
|
|
17601
|
+
function peg$f63(t) {
|
|
17575
17602
|
return { marks: [{ type: "light" }], text: unbreakscape(t), type: "text" };
|
|
17576
17603
|
}
|
|
17577
|
-
function peg$
|
|
17604
|
+
function peg$f64(t) {
|
|
17578
17605
|
return { marks: [{ type: "highlight" }], text: unbreakscape(t), type: "text" };
|
|
17579
17606
|
}
|
|
17580
|
-
function peg$
|
|
17607
|
+
function peg$f65(u) {
|
|
17581
17608
|
return { marks: [{ type: "link", attrs: { href: (u.pr + u.t).trim(), target: "_blank" } }], text: u.t, type: "text" };
|
|
17582
17609
|
}
|
|
17583
|
-
function peg$
|
|
17610
|
+
function peg$f66(ch) {
|
|
17584
17611
|
return ch;
|
|
17585
17612
|
}
|
|
17586
|
-
function peg$
|
|
17613
|
+
function peg$f67(ch) {
|
|
17587
17614
|
return ch;
|
|
17588
17615
|
}
|
|
17589
|
-
function peg$
|
|
17616
|
+
function peg$f68(str) {
|
|
17590
17617
|
return { comment: str };
|
|
17591
17618
|
}
|
|
17592
|
-
function peg$
|
|
17619
|
+
function peg$f69(p, v) {
|
|
17593
17620
|
return { [p]: v };
|
|
17594
17621
|
}
|
|
17595
|
-
function peg$
|
|
17622
|
+
function peg$f70(p, v) {
|
|
17596
17623
|
return { [p]: parseInt(v) };
|
|
17597
17624
|
}
|
|
17598
|
-
function peg$
|
|
17625
|
+
function peg$f71(p, v) {
|
|
17599
17626
|
return { type: "error", msg: p + " must be a positive integer.", found: v };
|
|
17600
17627
|
}
|
|
17601
|
-
function peg$
|
|
17628
|
+
function peg$f72(p, v) {
|
|
17602
17629
|
return { [p]: v };
|
|
17603
17630
|
}
|
|
17604
|
-
function peg$
|
|
17631
|
+
function peg$f73(p, v) {
|
|
17605
17632
|
return { [p]: v };
|
|
17606
17633
|
}
|
|
17607
|
-
function peg$
|
|
17634
|
+
function peg$f74(str) {
|
|
17608
17635
|
return { type: "link", attrs: { href: str.trim(), target: "_blank" } };
|
|
17609
17636
|
}
|
|
17610
|
-
function peg$
|
|
17637
|
+
function peg$f75(str, rc, p) {
|
|
17611
17638
|
return { type: "extref", attrs: { extref: str.trim(), references: rc, provider: p.trim() } };
|
|
17612
17639
|
}
|
|
17613
|
-
function peg$
|
|
17640
|
+
function peg$f76(str, str2) {
|
|
17614
17641
|
return { type: "xref", attrs: { xref: str.trim(), reference: str2.trim() } };
|
|
17615
17642
|
}
|
|
17616
|
-
function peg$
|
|
17643
|
+
function peg$f77(str) {
|
|
17617
17644
|
return { type: "xref", attrs: { xref: str.trim(), reference: "" } };
|
|
17618
17645
|
}
|
|
17619
|
-
function peg$
|
|
17646
|
+
function peg$f78(str) {
|
|
17620
17647
|
return { type: "ref", attrs: { reference: str.trim() } };
|
|
17621
17648
|
}
|
|
17622
|
-
function peg$
|
|
17649
|
+
function peg$f79(str, ch) {
|
|
17623
17650
|
const chain = Object.assign({}, ...ch);
|
|
17624
17651
|
return { type: "symbol", attrs: { src: str.trim(), ...chain } };
|
|
17625
17652
|
}
|
|
17626
|
-
function peg$
|
|
17653
|
+
function peg$f80(str) {
|
|
17627
17654
|
return { type: "footnote", attrs: { content: bitmarkPlusString(str.trim()) } };
|
|
17628
17655
|
}
|
|
17629
|
-
function peg$
|
|
17656
|
+
function peg$f81(str) {
|
|
17630
17657
|
return { type: "footnote*", attrs: { content: bitmarkPlusString(str.trim()) } };
|
|
17631
17658
|
}
|
|
17632
|
-
function peg$
|
|
17659
|
+
function peg$f82(str) {
|
|
17633
17660
|
return { type: "var", attrs: { name: str.trim() } };
|
|
17634
17661
|
}
|
|
17635
|
-
function peg$
|
|
17662
|
+
function peg$f83() {
|
|
17636
17663
|
return { type: "code", attrs: { language: "plain text" } };
|
|
17637
17664
|
}
|
|
17638
|
-
function peg$
|
|
17665
|
+
function peg$f84(lang) {
|
|
17639
17666
|
return { type: "code", attrs: { language: lang.trim().toLowerCase() } };
|
|
17640
17667
|
}
|
|
17641
|
-
function peg$
|
|
17668
|
+
function peg$f85() {
|
|
17642
17669
|
return { type: "timer", attrs: { name: "" } };
|
|
17643
17670
|
}
|
|
17644
|
-
function peg$
|
|
17671
|
+
function peg$f86(str) {
|
|
17645
17672
|
return { type: "timer", attrs: { name: str.trim() } };
|
|
17646
17673
|
}
|
|
17647
|
-
function peg$
|
|
17674
|
+
function peg$f87(str) {
|
|
17648
17675
|
return { type: "duration", attrs: { duration: str } };
|
|
17649
17676
|
}
|
|
17650
|
-
function peg$
|
|
17677
|
+
function peg$f88(color) {
|
|
17651
17678
|
return { type: "color", attrs: { color } };
|
|
17652
17679
|
}
|
|
17653
|
-
function peg$
|
|
17680
|
+
function peg$f89(str) {
|
|
17654
17681
|
return { type: "colorPicker", attrs: { propertyRef: str.trim() } };
|
|
17655
17682
|
}
|
|
17656
|
-
function peg$
|
|
17683
|
+
function peg$f90(style) {
|
|
17657
17684
|
return { type: style };
|
|
17658
17685
|
}
|
|
17659
|
-
function peg$
|
|
17686
|
+
function peg$f91(str) {
|
|
17660
17687
|
return { type: "comment", comment: str };
|
|
17661
17688
|
}
|
|
17662
|
-
function peg$
|
|
17689
|
+
function peg$f92(r) {
|
|
17663
17690
|
return r.trim();
|
|
17664
17691
|
}
|
|
17665
|
-
function peg$
|
|
17692
|
+
function peg$f93(bs) {
|
|
17666
17693
|
return [{ type: "paragraph", content: bs, attrs: {} }];
|
|
17667
17694
|
}
|
|
17668
|
-
function peg$
|
|
17695
|
+
function peg$f94(first, more) {
|
|
17669
17696
|
const cleaned_ = cleanEmptyTextNodes(first ? [first, ...more.flat()] : more.flat());
|
|
17670
17697
|
return cleaned_;
|
|
17671
17698
|
}
|
|
17672
|
-
function peg$
|
|
17699
|
+
function peg$f95() {
|
|
17673
17700
|
return { "type": "hardBreak" };
|
|
17674
17701
|
}
|
|
17675
|
-
function peg$
|
|
17702
|
+
function peg$f96(t) {
|
|
17676
17703
|
return { text: unbreakscape(t), type: "text" };
|
|
17677
17704
|
}
|
|
17678
|
-
function peg$
|
|
17705
|
+
function peg$f97(t) {
|
|
17679
17706
|
return { index: +t, type: "bit" };
|
|
17680
17707
|
}
|
|
17681
|
-
function peg$
|
|
17708
|
+
function peg$f98(t) {
|
|
17682
17709
|
return { marks: [{ type: "bold" }], text: unbreakscape(t), type: "text" };
|
|
17683
17710
|
}
|
|
17684
|
-
function peg$
|
|
17711
|
+
function peg$f99(t) {
|
|
17685
17712
|
return { marks: [{ type: "italic" }], text: unbreakscape(t), type: "text" };
|
|
17686
17713
|
}
|
|
17687
|
-
function peg$
|
|
17714
|
+
function peg$f100(t) {
|
|
17688
17715
|
return { marks: [{ type: "light" }], text: unbreakscape(t), type: "text" };
|
|
17689
17716
|
}
|
|
17690
|
-
function peg$
|
|
17717
|
+
function peg$f101(t) {
|
|
17691
17718
|
return { marks: [{ type: "highlight" }], text: unbreakscape(t), type: "text" };
|
|
17692
17719
|
}
|
|
17693
|
-
function peg$
|
|
17720
|
+
function peg$f102(pr, t) {
|
|
17694
17721
|
return { pr, t };
|
|
17695
17722
|
}
|
|
17696
17723
|
let peg$currPos = options.peg$currPos | 0;
|
|
@@ -17933,10 +17960,40 @@ function peg$parse(input, options) {
|
|
|
17933
17960
|
return s0;
|
|
17934
17961
|
}
|
|
17935
17962
|
function peg$parseBlockStart() {
|
|
17936
|
-
let s0;
|
|
17963
|
+
let s0, s1, s2;
|
|
17937
17964
|
s0 = peg$parseTitleTags();
|
|
17938
17965
|
if (s0 === peg$FAILED) {
|
|
17939
|
-
s0 = peg$
|
|
17966
|
+
s0 = peg$currPos;
|
|
17967
|
+
s1 = [];
|
|
17968
|
+
if (input.charCodeAt(peg$currPos) === 9) {
|
|
17969
|
+
s2 = peg$c0;
|
|
17970
|
+
peg$currPos++;
|
|
17971
|
+
} else {
|
|
17972
|
+
s2 = peg$FAILED;
|
|
17973
|
+
if (peg$silentFails === 0) {
|
|
17974
|
+
peg$fail(peg$e2);
|
|
17975
|
+
}
|
|
17976
|
+
}
|
|
17977
|
+
while (s2 !== peg$FAILED) {
|
|
17978
|
+
s1.push(s2);
|
|
17979
|
+
if (input.charCodeAt(peg$currPos) === 9) {
|
|
17980
|
+
s2 = peg$c0;
|
|
17981
|
+
peg$currPos++;
|
|
17982
|
+
} else {
|
|
17983
|
+
s2 = peg$FAILED;
|
|
17984
|
+
if (peg$silentFails === 0) {
|
|
17985
|
+
peg$fail(peg$e2);
|
|
17986
|
+
}
|
|
17987
|
+
}
|
|
17988
|
+
}
|
|
17989
|
+
s2 = peg$parseListTags();
|
|
17990
|
+
if (s2 !== peg$FAILED) {
|
|
17991
|
+
s1 = [s1, s2];
|
|
17992
|
+
s0 = s1;
|
|
17993
|
+
} else {
|
|
17994
|
+
peg$currPos = s0;
|
|
17995
|
+
s0 = peg$FAILED;
|
|
17996
|
+
}
|
|
17940
17997
|
if (s0 === peg$FAILED) {
|
|
17941
17998
|
s0 = peg$parseImageBlock();
|
|
17942
17999
|
if (s0 === peg$FAILED) {
|
|
@@ -17952,12 +18009,12 @@ function peg$parse(input, options) {
|
|
|
17952
18009
|
function peg$parseBlockTag() {
|
|
17953
18010
|
let s0;
|
|
17954
18011
|
if (input.charCodeAt(peg$currPos) === 124) {
|
|
17955
|
-
s0 = peg$
|
|
18012
|
+
s0 = peg$c1;
|
|
17956
18013
|
peg$currPos++;
|
|
17957
18014
|
} else {
|
|
17958
18015
|
s0 = peg$FAILED;
|
|
17959
18016
|
if (peg$silentFails === 0) {
|
|
17960
|
-
peg$fail(peg$
|
|
18017
|
+
peg$fail(peg$e3);
|
|
17961
18018
|
}
|
|
17962
18019
|
}
|
|
17963
18020
|
return s0;
|
|
@@ -17973,33 +18030,33 @@ function peg$parse(input, options) {
|
|
|
17973
18030
|
}
|
|
17974
18031
|
function peg$parseTitleTags() {
|
|
17975
18032
|
let s0;
|
|
17976
|
-
if (input.substr(peg$currPos, 4) === peg$
|
|
17977
|
-
s0 = peg$
|
|
18033
|
+
if (input.substr(peg$currPos, 4) === peg$c2) {
|
|
18034
|
+
s0 = peg$c2;
|
|
17978
18035
|
peg$currPos += 4;
|
|
17979
18036
|
} else {
|
|
17980
18037
|
s0 = peg$FAILED;
|
|
17981
18038
|
if (peg$silentFails === 0) {
|
|
17982
|
-
peg$fail(peg$
|
|
18039
|
+
peg$fail(peg$e4);
|
|
17983
18040
|
}
|
|
17984
18041
|
}
|
|
17985
18042
|
if (s0 === peg$FAILED) {
|
|
17986
|
-
if (input.substr(peg$currPos, 3) === peg$
|
|
17987
|
-
s0 = peg$
|
|
18043
|
+
if (input.substr(peg$currPos, 3) === peg$c3) {
|
|
18044
|
+
s0 = peg$c3;
|
|
17988
18045
|
peg$currPos += 3;
|
|
17989
18046
|
} else {
|
|
17990
18047
|
s0 = peg$FAILED;
|
|
17991
18048
|
if (peg$silentFails === 0) {
|
|
17992
|
-
peg$fail(peg$
|
|
18049
|
+
peg$fail(peg$e5);
|
|
17993
18050
|
}
|
|
17994
18051
|
}
|
|
17995
18052
|
if (s0 === peg$FAILED) {
|
|
17996
|
-
if (input.substr(peg$currPos, 2) === peg$
|
|
17997
|
-
s0 = peg$
|
|
18053
|
+
if (input.substr(peg$currPos, 2) === peg$c4) {
|
|
18054
|
+
s0 = peg$c4;
|
|
17998
18055
|
peg$currPos += 2;
|
|
17999
18056
|
} else {
|
|
18000
18057
|
s0 = peg$FAILED;
|
|
18001
18058
|
if (peg$silentFails === 0) {
|
|
18002
|
-
peg$fail(peg$
|
|
18059
|
+
peg$fail(peg$e6);
|
|
18003
18060
|
}
|
|
18004
18061
|
}
|
|
18005
18062
|
}
|
|
@@ -18039,13 +18096,13 @@ function peg$parse(input, options) {
|
|
|
18039
18096
|
}
|
|
18040
18097
|
function peg$parseCodeType() {
|
|
18041
18098
|
let s0;
|
|
18042
|
-
if (input.substr(peg$currPos, 4) === peg$
|
|
18043
|
-
s0 = peg$
|
|
18099
|
+
if (input.substr(peg$currPos, 4) === peg$c5) {
|
|
18100
|
+
s0 = peg$c5;
|
|
18044
18101
|
peg$currPos += 4;
|
|
18045
18102
|
} else {
|
|
18046
18103
|
s0 = peg$FAILED;
|
|
18047
18104
|
if (peg$silentFails === 0) {
|
|
18048
|
-
peg$fail(peg$
|
|
18105
|
+
peg$fail(peg$e7);
|
|
18049
18106
|
}
|
|
18050
18107
|
}
|
|
18051
18108
|
return s0;
|
|
@@ -18097,7 +18154,7 @@ function peg$parse(input, options) {
|
|
|
18097
18154
|
} else {
|
|
18098
18155
|
s5 = peg$FAILED;
|
|
18099
18156
|
if (peg$silentFails === 0) {
|
|
18100
|
-
peg$fail(peg$
|
|
18157
|
+
peg$fail(peg$e8);
|
|
18101
18158
|
}
|
|
18102
18159
|
}
|
|
18103
18160
|
while (s5 !== peg$FAILED) {
|
|
@@ -18108,7 +18165,7 @@ function peg$parse(input, options) {
|
|
|
18108
18165
|
} else {
|
|
18109
18166
|
s5 = peg$FAILED;
|
|
18110
18167
|
if (peg$silentFails === 0) {
|
|
18111
|
-
peg$fail(peg$
|
|
18168
|
+
peg$fail(peg$e8);
|
|
18112
18169
|
}
|
|
18113
18170
|
}
|
|
18114
18171
|
}
|
|
@@ -18141,12 +18198,12 @@ function peg$parse(input, options) {
|
|
|
18141
18198
|
s1 = peg$parseCodeTag();
|
|
18142
18199
|
if (s1 !== peg$FAILED) {
|
|
18143
18200
|
if (input.charCodeAt(peg$currPos) === 58) {
|
|
18144
|
-
s2 = peg$
|
|
18201
|
+
s2 = peg$c6;
|
|
18145
18202
|
peg$currPos++;
|
|
18146
18203
|
} else {
|
|
18147
18204
|
s2 = peg$FAILED;
|
|
18148
18205
|
if (peg$silentFails === 0) {
|
|
18149
|
-
peg$fail(peg$
|
|
18206
|
+
peg$fail(peg$e9);
|
|
18150
18207
|
}
|
|
18151
18208
|
}
|
|
18152
18209
|
if (s2 !== peg$FAILED) {
|
|
@@ -18161,7 +18218,7 @@ function peg$parse(input, options) {
|
|
|
18161
18218
|
} else {
|
|
18162
18219
|
s7 = peg$FAILED;
|
|
18163
18220
|
if (peg$silentFails === 0) {
|
|
18164
|
-
peg$fail(peg$
|
|
18221
|
+
peg$fail(peg$e8);
|
|
18165
18222
|
}
|
|
18166
18223
|
}
|
|
18167
18224
|
while (s7 !== peg$FAILED) {
|
|
@@ -18172,7 +18229,7 @@ function peg$parse(input, options) {
|
|
|
18172
18229
|
} else {
|
|
18173
18230
|
s7 = peg$FAILED;
|
|
18174
18231
|
if (peg$silentFails === 0) {
|
|
18175
|
-
peg$fail(peg$
|
|
18232
|
+
peg$fail(peg$e8);
|
|
18176
18233
|
}
|
|
18177
18234
|
}
|
|
18178
18235
|
}
|
|
@@ -18213,33 +18270,33 @@ function peg$parse(input, options) {
|
|
|
18213
18270
|
}
|
|
18214
18271
|
function peg$parseCodeLanguage() {
|
|
18215
18272
|
let s0, s1, s2;
|
|
18216
|
-
if (input.substr(peg$currPos, 9) === peg$
|
|
18217
|
-
s0 = peg$
|
|
18273
|
+
if (input.substr(peg$currPos, 9) === peg$c7) {
|
|
18274
|
+
s0 = peg$c7;
|
|
18218
18275
|
peg$currPos += 9;
|
|
18219
18276
|
} else {
|
|
18220
18277
|
s0 = peg$FAILED;
|
|
18221
18278
|
if (peg$silentFails === 0) {
|
|
18222
|
-
peg$fail(peg$
|
|
18279
|
+
peg$fail(peg$e10);
|
|
18223
18280
|
}
|
|
18224
18281
|
}
|
|
18225
18282
|
if (s0 === peg$FAILED) {
|
|
18226
|
-
if (input.substr(peg$currPos, 9) === peg$
|
|
18227
|
-
s0 = peg$
|
|
18283
|
+
if (input.substr(peg$currPos, 9) === peg$c8) {
|
|
18284
|
+
s0 = peg$c8;
|
|
18228
18285
|
peg$currPos += 9;
|
|
18229
18286
|
} else {
|
|
18230
18287
|
s0 = peg$FAILED;
|
|
18231
18288
|
if (peg$silentFails === 0) {
|
|
18232
|
-
peg$fail(peg$
|
|
18289
|
+
peg$fail(peg$e11);
|
|
18233
18290
|
}
|
|
18234
18291
|
}
|
|
18235
18292
|
if (s0 === peg$FAILED) {
|
|
18236
|
-
if (input.substr(peg$currPos, 10) === peg$
|
|
18237
|
-
s0 = peg$
|
|
18293
|
+
if (input.substr(peg$currPos, 10) === peg$c9) {
|
|
18294
|
+
s0 = peg$c9;
|
|
18238
18295
|
peg$currPos += 10;
|
|
18239
18296
|
} else {
|
|
18240
18297
|
s0 = peg$FAILED;
|
|
18241
18298
|
if (peg$silentFails === 0) {
|
|
18242
|
-
peg$fail(peg$
|
|
18299
|
+
peg$fail(peg$e12);
|
|
18243
18300
|
}
|
|
18244
18301
|
}
|
|
18245
18302
|
if (s0 === peg$FAILED) {
|
|
@@ -18345,26 +18402,26 @@ function peg$parse(input, options) {
|
|
|
18345
18402
|
}
|
|
18346
18403
|
function peg$parseBulletListTag() {
|
|
18347
18404
|
let s0;
|
|
18348
|
-
if (input.substr(peg$currPos, 2) === peg$
|
|
18349
|
-
s0 = peg$
|
|
18405
|
+
if (input.substr(peg$currPos, 2) === peg$c10) {
|
|
18406
|
+
s0 = peg$c10;
|
|
18350
18407
|
peg$currPos += 2;
|
|
18351
18408
|
} else {
|
|
18352
18409
|
s0 = peg$FAILED;
|
|
18353
18410
|
if (peg$silentFails === 0) {
|
|
18354
|
-
peg$fail(peg$
|
|
18411
|
+
peg$fail(peg$e13);
|
|
18355
18412
|
}
|
|
18356
18413
|
}
|
|
18357
18414
|
return s0;
|
|
18358
18415
|
}
|
|
18359
18416
|
function peg$parseNoBulletListTag() {
|
|
18360
18417
|
let s0;
|
|
18361
|
-
if (input.substr(peg$currPos, 3) === peg$
|
|
18362
|
-
s0 = peg$
|
|
18418
|
+
if (input.substr(peg$currPos, 3) === peg$c11) {
|
|
18419
|
+
s0 = peg$c11;
|
|
18363
18420
|
peg$currPos += 3;
|
|
18364
18421
|
} else {
|
|
18365
18422
|
s0 = peg$FAILED;
|
|
18366
18423
|
if (peg$silentFails === 0) {
|
|
18367
|
-
peg$fail(peg$
|
|
18424
|
+
peg$fail(peg$e14);
|
|
18368
18425
|
}
|
|
18369
18426
|
}
|
|
18370
18427
|
return s0;
|
|
@@ -18374,12 +18431,12 @@ function peg$parse(input, options) {
|
|
|
18374
18431
|
s0 = peg$currPos;
|
|
18375
18432
|
s1 = peg$currPos;
|
|
18376
18433
|
if (input.charCodeAt(peg$currPos) === 8226) {
|
|
18377
|
-
s2 = peg$
|
|
18434
|
+
s2 = peg$c12;
|
|
18378
18435
|
peg$currPos++;
|
|
18379
18436
|
} else {
|
|
18380
18437
|
s2 = peg$FAILED;
|
|
18381
18438
|
if (peg$silentFails === 0) {
|
|
18382
|
-
peg$fail(peg$
|
|
18439
|
+
peg$fail(peg$e15);
|
|
18383
18440
|
}
|
|
18384
18441
|
}
|
|
18385
18442
|
if (s2 !== peg$FAILED) {
|
|
@@ -18390,7 +18447,7 @@ function peg$parse(input, options) {
|
|
|
18390
18447
|
} else {
|
|
18391
18448
|
s4 = peg$FAILED;
|
|
18392
18449
|
if (peg$silentFails === 0) {
|
|
18393
|
-
peg$fail(peg$
|
|
18450
|
+
peg$fail(peg$e16);
|
|
18394
18451
|
}
|
|
18395
18452
|
}
|
|
18396
18453
|
if (s4 !== peg$FAILED) {
|
|
@@ -18402,7 +18459,7 @@ function peg$parse(input, options) {
|
|
|
18402
18459
|
} else {
|
|
18403
18460
|
s4 = peg$FAILED;
|
|
18404
18461
|
if (peg$silentFails === 0) {
|
|
18405
|
-
peg$fail(peg$
|
|
18462
|
+
peg$fail(peg$e16);
|
|
18406
18463
|
}
|
|
18407
18464
|
}
|
|
18408
18465
|
}
|
|
@@ -18411,12 +18468,12 @@ function peg$parse(input, options) {
|
|
|
18411
18468
|
}
|
|
18412
18469
|
if (s3 !== peg$FAILED) {
|
|
18413
18470
|
if (input.charCodeAt(peg$currPos) === 32) {
|
|
18414
|
-
s4 = peg$
|
|
18471
|
+
s4 = peg$c13;
|
|
18415
18472
|
peg$currPos++;
|
|
18416
18473
|
} else {
|
|
18417
18474
|
s4 = peg$FAILED;
|
|
18418
18475
|
if (peg$silentFails === 0) {
|
|
18419
|
-
peg$fail(peg$
|
|
18476
|
+
peg$fail(peg$e17);
|
|
18420
18477
|
}
|
|
18421
18478
|
}
|
|
18422
18479
|
if (s4 !== peg$FAILED) {
|
|
@@ -18446,12 +18503,12 @@ function peg$parse(input, options) {
|
|
|
18446
18503
|
s0 = peg$currPos;
|
|
18447
18504
|
s1 = peg$currPos;
|
|
18448
18505
|
if (input.charCodeAt(peg$currPos) === 8226) {
|
|
18449
|
-
s2 = peg$
|
|
18506
|
+
s2 = peg$c12;
|
|
18450
18507
|
peg$currPos++;
|
|
18451
18508
|
} else {
|
|
18452
18509
|
s2 = peg$FAILED;
|
|
18453
18510
|
if (peg$silentFails === 0) {
|
|
18454
|
-
peg$fail(peg$
|
|
18511
|
+
peg$fail(peg$e15);
|
|
18455
18512
|
}
|
|
18456
18513
|
}
|
|
18457
18514
|
if (s2 !== peg$FAILED) {
|
|
@@ -18462,7 +18519,7 @@ function peg$parse(input, options) {
|
|
|
18462
18519
|
} else {
|
|
18463
18520
|
s4 = peg$FAILED;
|
|
18464
18521
|
if (peg$silentFails === 0) {
|
|
18465
|
-
peg$fail(peg$
|
|
18522
|
+
peg$fail(peg$e16);
|
|
18466
18523
|
}
|
|
18467
18524
|
}
|
|
18468
18525
|
if (s4 !== peg$FAILED) {
|
|
@@ -18474,7 +18531,7 @@ function peg$parse(input, options) {
|
|
|
18474
18531
|
} else {
|
|
18475
18532
|
s4 = peg$FAILED;
|
|
18476
18533
|
if (peg$silentFails === 0) {
|
|
18477
|
-
peg$fail(peg$
|
|
18534
|
+
peg$fail(peg$e16);
|
|
18478
18535
|
}
|
|
18479
18536
|
}
|
|
18480
18537
|
}
|
|
@@ -18482,13 +18539,13 @@ function peg$parse(input, options) {
|
|
|
18482
18539
|
s3 = peg$FAILED;
|
|
18483
18540
|
}
|
|
18484
18541
|
if (s3 !== peg$FAILED) {
|
|
18485
|
-
if (input.substr(peg$currPos, 2) === peg$
|
|
18486
|
-
s4 = peg$
|
|
18542
|
+
if (input.substr(peg$currPos, 2) === peg$c14) {
|
|
18543
|
+
s4 = peg$c14;
|
|
18487
18544
|
peg$currPos += 2;
|
|
18488
18545
|
} else {
|
|
18489
18546
|
s4 = peg$FAILED;
|
|
18490
18547
|
if (peg$silentFails === 0) {
|
|
18491
|
-
peg$fail(peg$
|
|
18548
|
+
peg$fail(peg$e18);
|
|
18492
18549
|
}
|
|
18493
18550
|
}
|
|
18494
18551
|
if (s4 !== peg$FAILED) {
|
|
@@ -18518,12 +18575,12 @@ function peg$parse(input, options) {
|
|
|
18518
18575
|
s0 = peg$currPos;
|
|
18519
18576
|
s1 = peg$currPos;
|
|
18520
18577
|
if (input.charCodeAt(peg$currPos) === 8226) {
|
|
18521
|
-
s2 = peg$
|
|
18578
|
+
s2 = peg$c12;
|
|
18522
18579
|
peg$currPos++;
|
|
18523
18580
|
} else {
|
|
18524
18581
|
s2 = peg$FAILED;
|
|
18525
18582
|
if (peg$silentFails === 0) {
|
|
18526
|
-
peg$fail(peg$
|
|
18583
|
+
peg$fail(peg$e15);
|
|
18527
18584
|
}
|
|
18528
18585
|
}
|
|
18529
18586
|
if (s2 !== peg$FAILED) {
|
|
@@ -18534,7 +18591,7 @@ function peg$parse(input, options) {
|
|
|
18534
18591
|
} else {
|
|
18535
18592
|
s4 = peg$FAILED;
|
|
18536
18593
|
if (peg$silentFails === 0) {
|
|
18537
|
-
peg$fail(peg$
|
|
18594
|
+
peg$fail(peg$e16);
|
|
18538
18595
|
}
|
|
18539
18596
|
}
|
|
18540
18597
|
if (s4 !== peg$FAILED) {
|
|
@@ -18546,7 +18603,7 @@ function peg$parse(input, options) {
|
|
|
18546
18603
|
} else {
|
|
18547
18604
|
s4 = peg$FAILED;
|
|
18548
18605
|
if (peg$silentFails === 0) {
|
|
18549
|
-
peg$fail(peg$
|
|
18606
|
+
peg$fail(peg$e16);
|
|
18550
18607
|
}
|
|
18551
18608
|
}
|
|
18552
18609
|
}
|
|
@@ -18554,13 +18611,13 @@ function peg$parse(input, options) {
|
|
|
18554
18611
|
s3 = peg$FAILED;
|
|
18555
18612
|
}
|
|
18556
18613
|
if (s3 !== peg$FAILED) {
|
|
18557
|
-
if (input.substr(peg$currPos, 2) === peg$
|
|
18558
|
-
s4 = peg$
|
|
18614
|
+
if (input.substr(peg$currPos, 2) === peg$c15) {
|
|
18615
|
+
s4 = peg$c15;
|
|
18559
18616
|
peg$currPos += 2;
|
|
18560
18617
|
} else {
|
|
18561
18618
|
s4 = peg$FAILED;
|
|
18562
18619
|
if (peg$silentFails === 0) {
|
|
18563
|
-
peg$fail(peg$
|
|
18620
|
+
peg$fail(peg$e19);
|
|
18564
18621
|
}
|
|
18565
18622
|
}
|
|
18566
18623
|
if (s4 !== peg$FAILED) {
|
|
@@ -18587,49 +18644,49 @@ function peg$parse(input, options) {
|
|
|
18587
18644
|
}
|
|
18588
18645
|
function peg$parseLetteredListTag() {
|
|
18589
18646
|
let s0;
|
|
18590
|
-
if (input.substr(peg$currPos, 3) === peg$
|
|
18591
|
-
s0 = peg$
|
|
18647
|
+
if (input.substr(peg$currPos, 3) === peg$c16) {
|
|
18648
|
+
s0 = peg$c16;
|
|
18592
18649
|
peg$currPos += 3;
|
|
18593
18650
|
} else {
|
|
18594
18651
|
s0 = peg$FAILED;
|
|
18595
18652
|
if (peg$silentFails === 0) {
|
|
18596
|
-
peg$fail(peg$
|
|
18653
|
+
peg$fail(peg$e20);
|
|
18597
18654
|
}
|
|
18598
18655
|
}
|
|
18599
18656
|
return s0;
|
|
18600
18657
|
}
|
|
18601
18658
|
function peg$parseLetteredListLowerTag() {
|
|
18602
18659
|
let s0;
|
|
18603
|
-
if (input.substr(peg$currPos, 3) === peg$
|
|
18604
|
-
s0 = peg$
|
|
18660
|
+
if (input.substr(peg$currPos, 3) === peg$c17) {
|
|
18661
|
+
s0 = peg$c17;
|
|
18605
18662
|
peg$currPos += 3;
|
|
18606
18663
|
} else {
|
|
18607
18664
|
s0 = peg$FAILED;
|
|
18608
18665
|
if (peg$silentFails === 0) {
|
|
18609
|
-
peg$fail(peg$
|
|
18666
|
+
peg$fail(peg$e21);
|
|
18610
18667
|
}
|
|
18611
18668
|
}
|
|
18612
18669
|
return s0;
|
|
18613
18670
|
}
|
|
18614
18671
|
function peg$parseTaskListTag() {
|
|
18615
18672
|
let s0;
|
|
18616
|
-
if (input.substr(peg$currPos, 3) === peg$
|
|
18617
|
-
s0 = peg$
|
|
18673
|
+
if (input.substr(peg$currPos, 3) === peg$c18) {
|
|
18674
|
+
s0 = peg$c18;
|
|
18618
18675
|
peg$currPos += 3;
|
|
18619
18676
|
} else {
|
|
18620
18677
|
s0 = peg$FAILED;
|
|
18621
18678
|
if (peg$silentFails === 0) {
|
|
18622
|
-
peg$fail(peg$
|
|
18679
|
+
peg$fail(peg$e22);
|
|
18623
18680
|
}
|
|
18624
18681
|
}
|
|
18625
18682
|
if (s0 === peg$FAILED) {
|
|
18626
|
-
if (input.substr(peg$currPos, 3) === peg$
|
|
18627
|
-
s0 = peg$
|
|
18683
|
+
if (input.substr(peg$currPos, 3) === peg$c19) {
|
|
18684
|
+
s0 = peg$c19;
|
|
18628
18685
|
peg$currPos += 3;
|
|
18629
18686
|
} else {
|
|
18630
18687
|
s0 = peg$FAILED;
|
|
18631
18688
|
if (peg$silentFails === 0) {
|
|
18632
|
-
peg$fail(peg$
|
|
18689
|
+
peg$fail(peg$e23);
|
|
18633
18690
|
}
|
|
18634
18691
|
}
|
|
18635
18692
|
}
|
|
@@ -18662,6 +18719,25 @@ function peg$parse(input, options) {
|
|
|
18662
18719
|
return s0;
|
|
18663
18720
|
}
|
|
18664
18721
|
function peg$parseListBlock() {
|
|
18722
|
+
let s0, s1, s2;
|
|
18723
|
+
s0 = peg$currPos;
|
|
18724
|
+
s1 = peg$parseListBaseIndent();
|
|
18725
|
+
if (s1 !== peg$FAILED) {
|
|
18726
|
+
s2 = peg$parseListBlockInner();
|
|
18727
|
+
if (s2 !== peg$FAILED) {
|
|
18728
|
+
peg$savedPos = s0;
|
|
18729
|
+
s0 = peg$f14(s2);
|
|
18730
|
+
} else {
|
|
18731
|
+
peg$currPos = s0;
|
|
18732
|
+
s0 = peg$FAILED;
|
|
18733
|
+
}
|
|
18734
|
+
} else {
|
|
18735
|
+
peg$currPos = s0;
|
|
18736
|
+
s0 = peg$FAILED;
|
|
18737
|
+
}
|
|
18738
|
+
return s0;
|
|
18739
|
+
}
|
|
18740
|
+
function peg$parseListBlockInner() {
|
|
18665
18741
|
let s0, s1, s2, s3;
|
|
18666
18742
|
s0 = peg$currPos;
|
|
18667
18743
|
s1 = peg$parseBulletListContainer();
|
|
@@ -18682,7 +18758,7 @@ function peg$parse(input, options) {
|
|
|
18682
18758
|
s3 = null;
|
|
18683
18759
|
}
|
|
18684
18760
|
peg$savedPos = s0;
|
|
18685
|
-
s0 = peg$
|
|
18761
|
+
s0 = peg$f15(s1, s2);
|
|
18686
18762
|
} else {
|
|
18687
18763
|
peg$currPos = s0;
|
|
18688
18764
|
s0 = peg$FAILED;
|
|
@@ -18711,7 +18787,7 @@ function peg$parse(input, options) {
|
|
|
18711
18787
|
s3 = null;
|
|
18712
18788
|
}
|
|
18713
18789
|
peg$savedPos = s0;
|
|
18714
|
-
s0 = peg$
|
|
18790
|
+
s0 = peg$f16(s1, s2);
|
|
18715
18791
|
} else {
|
|
18716
18792
|
peg$currPos = s0;
|
|
18717
18793
|
s0 = peg$FAILED;
|
|
@@ -18740,7 +18816,7 @@ function peg$parse(input, options) {
|
|
|
18740
18816
|
s3 = null;
|
|
18741
18817
|
}
|
|
18742
18818
|
peg$savedPos = s0;
|
|
18743
|
-
s0 = peg$
|
|
18819
|
+
s0 = peg$f17(s1, s2);
|
|
18744
18820
|
} else {
|
|
18745
18821
|
peg$currPos = s0;
|
|
18746
18822
|
s0 = peg$FAILED;
|
|
@@ -18769,7 +18845,7 @@ function peg$parse(input, options) {
|
|
|
18769
18845
|
s3 = null;
|
|
18770
18846
|
}
|
|
18771
18847
|
peg$savedPos = s0;
|
|
18772
|
-
s0 = peg$
|
|
18848
|
+
s0 = peg$f18(s1, s2);
|
|
18773
18849
|
} else {
|
|
18774
18850
|
peg$currPos = s0;
|
|
18775
18851
|
s0 = peg$FAILED;
|
|
@@ -18798,7 +18874,7 @@ function peg$parse(input, options) {
|
|
|
18798
18874
|
s3 = null;
|
|
18799
18875
|
}
|
|
18800
18876
|
peg$savedPos = s0;
|
|
18801
|
-
s0 = peg$
|
|
18877
|
+
s0 = peg$f19(s1, s2);
|
|
18802
18878
|
} else {
|
|
18803
18879
|
peg$currPos = s0;
|
|
18804
18880
|
s0 = peg$FAILED;
|
|
@@ -18827,7 +18903,7 @@ function peg$parse(input, options) {
|
|
|
18827
18903
|
s3 = null;
|
|
18828
18904
|
}
|
|
18829
18905
|
peg$savedPos = s0;
|
|
18830
|
-
s0 = peg$
|
|
18906
|
+
s0 = peg$f20(s1, s2);
|
|
18831
18907
|
} else {
|
|
18832
18908
|
peg$currPos = s0;
|
|
18833
18909
|
s0 = peg$FAILED;
|
|
@@ -18856,7 +18932,7 @@ function peg$parse(input, options) {
|
|
|
18856
18932
|
s3 = null;
|
|
18857
18933
|
}
|
|
18858
18934
|
peg$savedPos = s0;
|
|
18859
|
-
s0 = peg$
|
|
18935
|
+
s0 = peg$f21(s1, s2);
|
|
18860
18936
|
} else {
|
|
18861
18937
|
peg$currPos = s0;
|
|
18862
18938
|
s0 = peg$FAILED;
|
|
@@ -18885,7 +18961,7 @@ function peg$parse(input, options) {
|
|
|
18885
18961
|
s3 = null;
|
|
18886
18962
|
}
|
|
18887
18963
|
peg$savedPos = s0;
|
|
18888
|
-
s0 = peg$
|
|
18964
|
+
s0 = peg$f22(s1, s2);
|
|
18889
18965
|
} else {
|
|
18890
18966
|
peg$currPos = s0;
|
|
18891
18967
|
s0 = peg$FAILED;
|
|
@@ -18903,12 +18979,70 @@ function peg$parse(input, options) {
|
|
|
18903
18979
|
}
|
|
18904
18980
|
return s0;
|
|
18905
18981
|
}
|
|
18982
|
+
function peg$parseListBaseIndent() {
|
|
18983
|
+
let s0, s1, s2, s3;
|
|
18984
|
+
s0 = peg$currPos;
|
|
18985
|
+
peg$silentFails++;
|
|
18986
|
+
s1 = peg$currPos;
|
|
18987
|
+
s2 = [];
|
|
18988
|
+
if (input.charCodeAt(peg$currPos) === 9) {
|
|
18989
|
+
s3 = peg$c0;
|
|
18990
|
+
peg$currPos++;
|
|
18991
|
+
} else {
|
|
18992
|
+
s3 = peg$FAILED;
|
|
18993
|
+
if (peg$silentFails === 0) {
|
|
18994
|
+
peg$fail(peg$e2);
|
|
18995
|
+
}
|
|
18996
|
+
}
|
|
18997
|
+
while (s3 !== peg$FAILED) {
|
|
18998
|
+
s2.push(s3);
|
|
18999
|
+
if (input.charCodeAt(peg$currPos) === 9) {
|
|
19000
|
+
s3 = peg$c0;
|
|
19001
|
+
peg$currPos++;
|
|
19002
|
+
} else {
|
|
19003
|
+
s3 = peg$FAILED;
|
|
19004
|
+
if (peg$silentFails === 0) {
|
|
19005
|
+
peg$fail(peg$e2);
|
|
19006
|
+
}
|
|
19007
|
+
}
|
|
19008
|
+
}
|
|
19009
|
+
s3 = peg$parseListTags();
|
|
19010
|
+
if (s3 !== peg$FAILED) {
|
|
19011
|
+
peg$savedPos = s1;
|
|
19012
|
+
s1 = peg$f23(s2);
|
|
19013
|
+
} else {
|
|
19014
|
+
peg$currPos = s1;
|
|
19015
|
+
s1 = peg$FAILED;
|
|
19016
|
+
}
|
|
19017
|
+
peg$silentFails--;
|
|
19018
|
+
if (s1 !== peg$FAILED) {
|
|
19019
|
+
peg$currPos = s0;
|
|
19020
|
+
s0 = void 0;
|
|
19021
|
+
} else {
|
|
19022
|
+
s0 = peg$FAILED;
|
|
19023
|
+
}
|
|
19024
|
+
return s0;
|
|
19025
|
+
}
|
|
18906
19026
|
function peg$parseBulletListContainer() {
|
|
18907
|
-
let s0, s1, s2;
|
|
19027
|
+
let s0, s1, s2, s3, s4;
|
|
18908
19028
|
s0 = peg$currPos;
|
|
18909
19029
|
s1 = peg$currPos;
|
|
18910
19030
|
peg$silentFails++;
|
|
18911
|
-
s2 = peg$
|
|
19031
|
+
s2 = peg$currPos;
|
|
19032
|
+
s3 = peg$parseSAMEDENT();
|
|
19033
|
+
if (s3 !== peg$FAILED) {
|
|
19034
|
+
s4 = peg$parseBulletListTag();
|
|
19035
|
+
if (s4 !== peg$FAILED) {
|
|
19036
|
+
s3 = [s3, s4];
|
|
19037
|
+
s2 = s3;
|
|
19038
|
+
} else {
|
|
19039
|
+
peg$currPos = s2;
|
|
19040
|
+
s2 = peg$FAILED;
|
|
19041
|
+
}
|
|
19042
|
+
} else {
|
|
19043
|
+
peg$currPos = s2;
|
|
19044
|
+
s2 = peg$FAILED;
|
|
19045
|
+
}
|
|
18912
19046
|
peg$silentFails--;
|
|
18913
19047
|
if (s2 !== peg$FAILED) {
|
|
18914
19048
|
peg$currPos = s1;
|
|
@@ -18918,17 +19052,31 @@ function peg$parse(input, options) {
|
|
|
18918
19052
|
}
|
|
18919
19053
|
if (s1 !== peg$FAILED) {
|
|
18920
19054
|
peg$savedPos = s0;
|
|
18921
|
-
s1 = peg$
|
|
19055
|
+
s1 = peg$f24();
|
|
18922
19056
|
}
|
|
18923
19057
|
s0 = s1;
|
|
18924
19058
|
return s0;
|
|
18925
19059
|
}
|
|
18926
19060
|
function peg$parseNoBulletListContainer() {
|
|
18927
|
-
let s0, s1, s2;
|
|
19061
|
+
let s0, s1, s2, s3, s4;
|
|
18928
19062
|
s0 = peg$currPos;
|
|
18929
19063
|
s1 = peg$currPos;
|
|
18930
19064
|
peg$silentFails++;
|
|
18931
|
-
s2 = peg$
|
|
19065
|
+
s2 = peg$currPos;
|
|
19066
|
+
s3 = peg$parseSAMEDENT();
|
|
19067
|
+
if (s3 !== peg$FAILED) {
|
|
19068
|
+
s4 = peg$parseNoBulletListTag();
|
|
19069
|
+
if (s4 !== peg$FAILED) {
|
|
19070
|
+
s3 = [s3, s4];
|
|
19071
|
+
s2 = s3;
|
|
19072
|
+
} else {
|
|
19073
|
+
peg$currPos = s2;
|
|
19074
|
+
s2 = peg$FAILED;
|
|
19075
|
+
}
|
|
19076
|
+
} else {
|
|
19077
|
+
peg$currPos = s2;
|
|
19078
|
+
s2 = peg$FAILED;
|
|
19079
|
+
}
|
|
18932
19080
|
peg$silentFails--;
|
|
18933
19081
|
if (s2 !== peg$FAILED) {
|
|
18934
19082
|
peg$currPos = s1;
|
|
@@ -18938,17 +19086,31 @@ function peg$parse(input, options) {
|
|
|
18938
19086
|
}
|
|
18939
19087
|
if (s1 !== peg$FAILED) {
|
|
18940
19088
|
peg$savedPos = s0;
|
|
18941
|
-
s1 = peg$
|
|
19089
|
+
s1 = peg$f25();
|
|
18942
19090
|
}
|
|
18943
19091
|
s0 = s1;
|
|
18944
19092
|
return s0;
|
|
18945
19093
|
}
|
|
18946
19094
|
function peg$parseOrderedListContainer() {
|
|
18947
|
-
let s0, s1, s2;
|
|
19095
|
+
let s0, s1, s2, s3, s4;
|
|
18948
19096
|
s0 = peg$currPos;
|
|
18949
19097
|
s1 = peg$currPos;
|
|
18950
19098
|
peg$silentFails++;
|
|
18951
|
-
s2 = peg$
|
|
19099
|
+
s2 = peg$currPos;
|
|
19100
|
+
s3 = peg$parseSAMEDENT();
|
|
19101
|
+
if (s3 !== peg$FAILED) {
|
|
19102
|
+
s4 = peg$parseOrderedListTag();
|
|
19103
|
+
if (s4 !== peg$FAILED) {
|
|
19104
|
+
s3 = [s3, s4];
|
|
19105
|
+
s2 = s3;
|
|
19106
|
+
} else {
|
|
19107
|
+
peg$currPos = s2;
|
|
19108
|
+
s2 = peg$FAILED;
|
|
19109
|
+
}
|
|
19110
|
+
} else {
|
|
19111
|
+
peg$currPos = s2;
|
|
19112
|
+
s2 = peg$FAILED;
|
|
19113
|
+
}
|
|
18952
19114
|
peg$silentFails--;
|
|
18953
19115
|
if (s2 !== peg$FAILED) {
|
|
18954
19116
|
peg$currPos = s1;
|
|
@@ -18958,17 +19120,31 @@ function peg$parse(input, options) {
|
|
|
18958
19120
|
}
|
|
18959
19121
|
if (s1 !== peg$FAILED) {
|
|
18960
19122
|
peg$savedPos = s0;
|
|
18961
|
-
s1 = peg$
|
|
19123
|
+
s1 = peg$f26();
|
|
18962
19124
|
}
|
|
18963
19125
|
s0 = s1;
|
|
18964
19126
|
return s0;
|
|
18965
19127
|
}
|
|
18966
19128
|
function peg$parseOrderedListRomanContainer() {
|
|
18967
|
-
let s0, s1, s2;
|
|
19129
|
+
let s0, s1, s2, s3, s4;
|
|
18968
19130
|
s0 = peg$currPos;
|
|
18969
19131
|
s1 = peg$currPos;
|
|
18970
19132
|
peg$silentFails++;
|
|
18971
|
-
s2 = peg$
|
|
19133
|
+
s2 = peg$currPos;
|
|
19134
|
+
s3 = peg$parseSAMEDENT();
|
|
19135
|
+
if (s3 !== peg$FAILED) {
|
|
19136
|
+
s4 = peg$parseOrderedListRomanTag();
|
|
19137
|
+
if (s4 !== peg$FAILED) {
|
|
19138
|
+
s3 = [s3, s4];
|
|
19139
|
+
s2 = s3;
|
|
19140
|
+
} else {
|
|
19141
|
+
peg$currPos = s2;
|
|
19142
|
+
s2 = peg$FAILED;
|
|
19143
|
+
}
|
|
19144
|
+
} else {
|
|
19145
|
+
peg$currPos = s2;
|
|
19146
|
+
s2 = peg$FAILED;
|
|
19147
|
+
}
|
|
18972
19148
|
peg$silentFails--;
|
|
18973
19149
|
if (s2 !== peg$FAILED) {
|
|
18974
19150
|
peg$currPos = s1;
|
|
@@ -18978,17 +19154,31 @@ function peg$parse(input, options) {
|
|
|
18978
19154
|
}
|
|
18979
19155
|
if (s1 !== peg$FAILED) {
|
|
18980
19156
|
peg$savedPos = s0;
|
|
18981
|
-
s1 = peg$
|
|
19157
|
+
s1 = peg$f27();
|
|
18982
19158
|
}
|
|
18983
19159
|
s0 = s1;
|
|
18984
19160
|
return s0;
|
|
18985
19161
|
}
|
|
18986
19162
|
function peg$parseOrderedListRomanLowerContainer() {
|
|
18987
|
-
let s0, s1, s2;
|
|
19163
|
+
let s0, s1, s2, s3, s4;
|
|
18988
19164
|
s0 = peg$currPos;
|
|
18989
19165
|
s1 = peg$currPos;
|
|
18990
19166
|
peg$silentFails++;
|
|
18991
|
-
s2 = peg$
|
|
19167
|
+
s2 = peg$currPos;
|
|
19168
|
+
s3 = peg$parseSAMEDENT();
|
|
19169
|
+
if (s3 !== peg$FAILED) {
|
|
19170
|
+
s4 = peg$parseOrderedListRomanLowerTag();
|
|
19171
|
+
if (s4 !== peg$FAILED) {
|
|
19172
|
+
s3 = [s3, s4];
|
|
19173
|
+
s2 = s3;
|
|
19174
|
+
} else {
|
|
19175
|
+
peg$currPos = s2;
|
|
19176
|
+
s2 = peg$FAILED;
|
|
19177
|
+
}
|
|
19178
|
+
} else {
|
|
19179
|
+
peg$currPos = s2;
|
|
19180
|
+
s2 = peg$FAILED;
|
|
19181
|
+
}
|
|
18992
19182
|
peg$silentFails--;
|
|
18993
19183
|
if (s2 !== peg$FAILED) {
|
|
18994
19184
|
peg$currPos = s1;
|
|
@@ -18998,17 +19188,31 @@ function peg$parse(input, options) {
|
|
|
18998
19188
|
}
|
|
18999
19189
|
if (s1 !== peg$FAILED) {
|
|
19000
19190
|
peg$savedPos = s0;
|
|
19001
|
-
s1 = peg$
|
|
19191
|
+
s1 = peg$f28();
|
|
19002
19192
|
}
|
|
19003
19193
|
s0 = s1;
|
|
19004
19194
|
return s0;
|
|
19005
19195
|
}
|
|
19006
19196
|
function peg$parseLetteredListContainer() {
|
|
19007
|
-
let s0, s1, s2;
|
|
19197
|
+
let s0, s1, s2, s3, s4;
|
|
19008
19198
|
s0 = peg$currPos;
|
|
19009
19199
|
s1 = peg$currPos;
|
|
19010
19200
|
peg$silentFails++;
|
|
19011
|
-
s2 = peg$
|
|
19201
|
+
s2 = peg$currPos;
|
|
19202
|
+
s3 = peg$parseSAMEDENT();
|
|
19203
|
+
if (s3 !== peg$FAILED) {
|
|
19204
|
+
s4 = peg$parseLetteredListTag();
|
|
19205
|
+
if (s4 !== peg$FAILED) {
|
|
19206
|
+
s3 = [s3, s4];
|
|
19207
|
+
s2 = s3;
|
|
19208
|
+
} else {
|
|
19209
|
+
peg$currPos = s2;
|
|
19210
|
+
s2 = peg$FAILED;
|
|
19211
|
+
}
|
|
19212
|
+
} else {
|
|
19213
|
+
peg$currPos = s2;
|
|
19214
|
+
s2 = peg$FAILED;
|
|
19215
|
+
}
|
|
19012
19216
|
peg$silentFails--;
|
|
19013
19217
|
if (s2 !== peg$FAILED) {
|
|
19014
19218
|
peg$currPos = s1;
|
|
@@ -19018,17 +19222,31 @@ function peg$parse(input, options) {
|
|
|
19018
19222
|
}
|
|
19019
19223
|
if (s1 !== peg$FAILED) {
|
|
19020
19224
|
peg$savedPos = s0;
|
|
19021
|
-
s1 = peg$
|
|
19225
|
+
s1 = peg$f29();
|
|
19022
19226
|
}
|
|
19023
19227
|
s0 = s1;
|
|
19024
19228
|
return s0;
|
|
19025
19229
|
}
|
|
19026
19230
|
function peg$parseLetteredListLowerContainer() {
|
|
19027
|
-
let s0, s1, s2;
|
|
19231
|
+
let s0, s1, s2, s3, s4;
|
|
19028
19232
|
s0 = peg$currPos;
|
|
19029
19233
|
s1 = peg$currPos;
|
|
19030
19234
|
peg$silentFails++;
|
|
19031
|
-
s2 = peg$
|
|
19235
|
+
s2 = peg$currPos;
|
|
19236
|
+
s3 = peg$parseSAMEDENT();
|
|
19237
|
+
if (s3 !== peg$FAILED) {
|
|
19238
|
+
s4 = peg$parseLetteredListLowerTag();
|
|
19239
|
+
if (s4 !== peg$FAILED) {
|
|
19240
|
+
s3 = [s3, s4];
|
|
19241
|
+
s2 = s3;
|
|
19242
|
+
} else {
|
|
19243
|
+
peg$currPos = s2;
|
|
19244
|
+
s2 = peg$FAILED;
|
|
19245
|
+
}
|
|
19246
|
+
} else {
|
|
19247
|
+
peg$currPos = s2;
|
|
19248
|
+
s2 = peg$FAILED;
|
|
19249
|
+
}
|
|
19032
19250
|
peg$silentFails--;
|
|
19033
19251
|
if (s2 !== peg$FAILED) {
|
|
19034
19252
|
peg$currPos = s1;
|
|
@@ -19038,17 +19256,31 @@ function peg$parse(input, options) {
|
|
|
19038
19256
|
}
|
|
19039
19257
|
if (s1 !== peg$FAILED) {
|
|
19040
19258
|
peg$savedPos = s0;
|
|
19041
|
-
s1 = peg$
|
|
19259
|
+
s1 = peg$f30();
|
|
19042
19260
|
}
|
|
19043
19261
|
s0 = s1;
|
|
19044
19262
|
return s0;
|
|
19045
19263
|
}
|
|
19046
19264
|
function peg$parseTaskListContainer() {
|
|
19047
|
-
let s0, s1, s2;
|
|
19265
|
+
let s0, s1, s2, s3, s4;
|
|
19048
19266
|
s0 = peg$currPos;
|
|
19049
19267
|
s1 = peg$currPos;
|
|
19050
19268
|
peg$silentFails++;
|
|
19051
|
-
s2 = peg$
|
|
19269
|
+
s2 = peg$currPos;
|
|
19270
|
+
s3 = peg$parseSAMEDENT();
|
|
19271
|
+
if (s3 !== peg$FAILED) {
|
|
19272
|
+
s4 = peg$parseTaskListTag();
|
|
19273
|
+
if (s4 !== peg$FAILED) {
|
|
19274
|
+
s3 = [s3, s4];
|
|
19275
|
+
s2 = s3;
|
|
19276
|
+
} else {
|
|
19277
|
+
peg$currPos = s2;
|
|
19278
|
+
s2 = peg$FAILED;
|
|
19279
|
+
}
|
|
19280
|
+
} else {
|
|
19281
|
+
peg$currPos = s2;
|
|
19282
|
+
s2 = peg$FAILED;
|
|
19283
|
+
}
|
|
19052
19284
|
peg$silentFails--;
|
|
19053
19285
|
if (s2 !== peg$FAILED) {
|
|
19054
19286
|
peg$currPos = s1;
|
|
@@ -19058,7 +19290,7 @@ function peg$parse(input, options) {
|
|
|
19058
19290
|
}
|
|
19059
19291
|
if (s1 !== peg$FAILED) {
|
|
19060
19292
|
peg$savedPos = s0;
|
|
19061
|
-
s1 = peg$
|
|
19293
|
+
s1 = peg$f31();
|
|
19062
19294
|
}
|
|
19063
19295
|
s0 = s1;
|
|
19064
19296
|
return s0;
|
|
@@ -19165,7 +19397,7 @@ function peg$parse(input, options) {
|
|
|
19165
19397
|
s8 = peg$parseDEDENT();
|
|
19166
19398
|
if (s8 !== peg$FAILED) {
|
|
19167
19399
|
peg$savedPos = s5;
|
|
19168
|
-
s5 = peg$
|
|
19400
|
+
s5 = peg$f32(s2, s3, s4, s7);
|
|
19169
19401
|
} else {
|
|
19170
19402
|
peg$currPos = s5;
|
|
19171
19403
|
s5 = peg$FAILED;
|
|
@@ -19178,7 +19410,7 @@ function peg$parse(input, options) {
|
|
|
19178
19410
|
s5 = null;
|
|
19179
19411
|
}
|
|
19180
19412
|
peg$savedPos = s0;
|
|
19181
|
-
s0 = peg$
|
|
19413
|
+
s0 = peg$f33(s2, s3, s4, s5);
|
|
19182
19414
|
} else {
|
|
19183
19415
|
peg$currPos = s0;
|
|
19184
19416
|
s0 = peg$FAILED;
|
|
@@ -19310,7 +19542,7 @@ function peg$parse(input, options) {
|
|
|
19310
19542
|
}
|
|
19311
19543
|
if (s4 !== peg$FAILED) {
|
|
19312
19544
|
peg$savedPos = s0;
|
|
19313
|
-
s0 = peg$
|
|
19545
|
+
s0 = peg$f34(s4);
|
|
19314
19546
|
} else {
|
|
19315
19547
|
peg$currPos = s0;
|
|
19316
19548
|
s0 = peg$FAILED;
|
|
@@ -19339,7 +19571,7 @@ function peg$parse(input, options) {
|
|
|
19339
19571
|
} else {
|
|
19340
19572
|
s2 = peg$FAILED;
|
|
19341
19573
|
if (peg$silentFails === 0) {
|
|
19342
|
-
peg$fail(peg$
|
|
19574
|
+
peg$fail(peg$e8);
|
|
19343
19575
|
}
|
|
19344
19576
|
}
|
|
19345
19577
|
while (s2 !== peg$FAILED) {
|
|
@@ -19350,7 +19582,7 @@ function peg$parse(input, options) {
|
|
|
19350
19582
|
} else {
|
|
19351
19583
|
s2 = peg$FAILED;
|
|
19352
19584
|
if (peg$silentFails === 0) {
|
|
19353
|
-
peg$fail(peg$
|
|
19585
|
+
peg$fail(peg$e8);
|
|
19354
19586
|
}
|
|
19355
19587
|
}
|
|
19356
19588
|
}
|
|
@@ -19369,28 +19601,28 @@ function peg$parse(input, options) {
|
|
|
19369
19601
|
s0 = peg$currPos;
|
|
19370
19602
|
s1 = [];
|
|
19371
19603
|
if (input.charCodeAt(peg$currPos) === 9) {
|
|
19372
|
-
s2 = peg$
|
|
19604
|
+
s2 = peg$c0;
|
|
19373
19605
|
peg$currPos++;
|
|
19374
19606
|
} else {
|
|
19375
19607
|
s2 = peg$FAILED;
|
|
19376
19608
|
if (peg$silentFails === 0) {
|
|
19377
|
-
peg$fail(peg$
|
|
19609
|
+
peg$fail(peg$e2);
|
|
19378
19610
|
}
|
|
19379
19611
|
}
|
|
19380
19612
|
while (s2 !== peg$FAILED) {
|
|
19381
19613
|
s1.push(s2);
|
|
19382
19614
|
if (input.charCodeAt(peg$currPos) === 9) {
|
|
19383
|
-
s2 = peg$
|
|
19615
|
+
s2 = peg$c0;
|
|
19384
19616
|
peg$currPos++;
|
|
19385
19617
|
} else {
|
|
19386
19618
|
s2 = peg$FAILED;
|
|
19387
19619
|
if (peg$silentFails === 0) {
|
|
19388
|
-
peg$fail(peg$
|
|
19620
|
+
peg$fail(peg$e2);
|
|
19389
19621
|
}
|
|
19390
19622
|
}
|
|
19391
19623
|
}
|
|
19392
19624
|
peg$savedPos = peg$currPos;
|
|
19393
|
-
s2 = peg$
|
|
19625
|
+
s2 = peg$f35(s1);
|
|
19394
19626
|
if (s2) {
|
|
19395
19627
|
s2 = void 0;
|
|
19396
19628
|
} else {
|
|
@@ -19412,24 +19644,24 @@ function peg$parse(input, options) {
|
|
|
19412
19644
|
s1 = peg$currPos;
|
|
19413
19645
|
s2 = [];
|
|
19414
19646
|
if (input.charCodeAt(peg$currPos) === 9) {
|
|
19415
|
-
s3 = peg$
|
|
19647
|
+
s3 = peg$c0;
|
|
19416
19648
|
peg$currPos++;
|
|
19417
19649
|
} else {
|
|
19418
19650
|
s3 = peg$FAILED;
|
|
19419
19651
|
if (peg$silentFails === 0) {
|
|
19420
|
-
peg$fail(peg$
|
|
19652
|
+
peg$fail(peg$e2);
|
|
19421
19653
|
}
|
|
19422
19654
|
}
|
|
19423
19655
|
if (s3 !== peg$FAILED) {
|
|
19424
19656
|
while (s3 !== peg$FAILED) {
|
|
19425
19657
|
s2.push(s3);
|
|
19426
19658
|
if (input.charCodeAt(peg$currPos) === 9) {
|
|
19427
|
-
s3 = peg$
|
|
19659
|
+
s3 = peg$c0;
|
|
19428
19660
|
peg$currPos++;
|
|
19429
19661
|
} else {
|
|
19430
19662
|
s3 = peg$FAILED;
|
|
19431
19663
|
if (peg$silentFails === 0) {
|
|
19432
|
-
peg$fail(peg$
|
|
19664
|
+
peg$fail(peg$e2);
|
|
19433
19665
|
}
|
|
19434
19666
|
}
|
|
19435
19667
|
}
|
|
@@ -19438,7 +19670,7 @@ function peg$parse(input, options) {
|
|
|
19438
19670
|
}
|
|
19439
19671
|
if (s2 !== peg$FAILED) {
|
|
19440
19672
|
peg$savedPos = peg$currPos;
|
|
19441
|
-
s3 = peg$
|
|
19673
|
+
s3 = peg$f36(s2);
|
|
19442
19674
|
if (s3) {
|
|
19443
19675
|
s3 = void 0;
|
|
19444
19676
|
} else {
|
|
@@ -19446,7 +19678,7 @@ function peg$parse(input, options) {
|
|
|
19446
19678
|
}
|
|
19447
19679
|
if (s3 !== peg$FAILED) {
|
|
19448
19680
|
peg$savedPos = s1;
|
|
19449
|
-
s1 = peg$
|
|
19681
|
+
s1 = peg$f37(s2);
|
|
19450
19682
|
} else {
|
|
19451
19683
|
peg$currPos = s1;
|
|
19452
19684
|
s1 = peg$FAILED;
|
|
@@ -19467,7 +19699,7 @@ function peg$parse(input, options) {
|
|
|
19467
19699
|
function peg$parseDEDENT() {
|
|
19468
19700
|
let s0;
|
|
19469
19701
|
peg$savedPos = peg$currPos;
|
|
19470
|
-
s0 = peg$
|
|
19702
|
+
s0 = peg$f38();
|
|
19471
19703
|
if (s0) {
|
|
19472
19704
|
s0 = void 0;
|
|
19473
19705
|
} else {
|
|
@@ -19492,7 +19724,7 @@ function peg$parse(input, options) {
|
|
|
19492
19724
|
s2 = peg$parseParagraphBody();
|
|
19493
19725
|
if (s2 !== peg$FAILED) {
|
|
19494
19726
|
peg$savedPos = s0;
|
|
19495
|
-
s0 = peg$
|
|
19727
|
+
s0 = peg$f39(s2);
|
|
19496
19728
|
} else {
|
|
19497
19729
|
peg$currPos = s0;
|
|
19498
19730
|
s0 = peg$FAILED;
|
|
@@ -19508,7 +19740,7 @@ function peg$parse(input, options) {
|
|
|
19508
19740
|
s2 = peg$parseParagraphBody();
|
|
19509
19741
|
if (s2 !== peg$FAILED) {
|
|
19510
19742
|
peg$savedPos = s0;
|
|
19511
|
-
s0 = peg$
|
|
19743
|
+
s0 = peg$f40(s2);
|
|
19512
19744
|
} else {
|
|
19513
19745
|
peg$currPos = s0;
|
|
19514
19746
|
s0 = peg$FAILED;
|
|
@@ -19523,7 +19755,7 @@ function peg$parse(input, options) {
|
|
|
19523
19755
|
if (s1 !== peg$FAILED) {
|
|
19524
19756
|
s2 = "";
|
|
19525
19757
|
peg$savedPos = s0;
|
|
19526
|
-
s0 = peg$
|
|
19758
|
+
s0 = peg$f41(s2);
|
|
19527
19759
|
} else {
|
|
19528
19760
|
peg$currPos = s0;
|
|
19529
19761
|
s0 = peg$FAILED;
|
|
@@ -19626,7 +19858,7 @@ function peg$parse(input, options) {
|
|
|
19626
19858
|
} else {
|
|
19627
19859
|
s5 = peg$FAILED;
|
|
19628
19860
|
if (peg$silentFails === 0) {
|
|
19629
|
-
peg$fail(peg$
|
|
19861
|
+
peg$fail(peg$e8);
|
|
19630
19862
|
}
|
|
19631
19863
|
}
|
|
19632
19864
|
while (s5 !== peg$FAILED) {
|
|
@@ -19637,7 +19869,7 @@ function peg$parse(input, options) {
|
|
|
19637
19869
|
} else {
|
|
19638
19870
|
s5 = peg$FAILED;
|
|
19639
19871
|
if (peg$silentFails === 0) {
|
|
19640
|
-
peg$fail(peg$
|
|
19872
|
+
peg$fail(peg$e8);
|
|
19641
19873
|
}
|
|
19642
19874
|
}
|
|
19643
19875
|
}
|
|
@@ -19692,7 +19924,7 @@ function peg$parse(input, options) {
|
|
|
19692
19924
|
s2 = peg$parseImageType();
|
|
19693
19925
|
if (s2 !== peg$FAILED) {
|
|
19694
19926
|
peg$savedPos = s0;
|
|
19695
|
-
s0 = peg$
|
|
19927
|
+
s0 = peg$f42(s2);
|
|
19696
19928
|
} else {
|
|
19697
19929
|
peg$currPos = s0;
|
|
19698
19930
|
s0 = peg$FAILED;
|
|
@@ -19709,22 +19941,22 @@ function peg$parse(input, options) {
|
|
|
19709
19941
|
s1 = peg$parseImageTag();
|
|
19710
19942
|
if (s1 !== peg$FAILED) {
|
|
19711
19943
|
if (input.charCodeAt(peg$currPos) === 58) {
|
|
19712
|
-
s2 = peg$
|
|
19944
|
+
s2 = peg$c6;
|
|
19713
19945
|
peg$currPos++;
|
|
19714
19946
|
} else {
|
|
19715
19947
|
s2 = peg$FAILED;
|
|
19716
19948
|
if (peg$silentFails === 0) {
|
|
19717
|
-
peg$fail(peg$
|
|
19949
|
+
peg$fail(peg$e9);
|
|
19718
19950
|
}
|
|
19719
19951
|
}
|
|
19720
19952
|
if (s2 !== peg$FAILED) {
|
|
19721
19953
|
if (input.charCodeAt(peg$currPos) === 32) {
|
|
19722
|
-
s3 = peg$
|
|
19954
|
+
s3 = peg$c13;
|
|
19723
19955
|
peg$currPos++;
|
|
19724
19956
|
} else {
|
|
19725
19957
|
s3 = peg$FAILED;
|
|
19726
19958
|
if (peg$silentFails === 0) {
|
|
19727
|
-
peg$fail(peg$
|
|
19959
|
+
peg$fail(peg$e17);
|
|
19728
19960
|
}
|
|
19729
19961
|
}
|
|
19730
19962
|
if (s3 === peg$FAILED) {
|
|
@@ -19734,23 +19966,23 @@ function peg$parse(input, options) {
|
|
|
19734
19966
|
if (s4 !== peg$FAILED) {
|
|
19735
19967
|
s5 = [];
|
|
19736
19968
|
if (input.charCodeAt(peg$currPos) === 32) {
|
|
19737
|
-
s6 = peg$
|
|
19969
|
+
s6 = peg$c13;
|
|
19738
19970
|
peg$currPos++;
|
|
19739
19971
|
} else {
|
|
19740
19972
|
s6 = peg$FAILED;
|
|
19741
19973
|
if (peg$silentFails === 0) {
|
|
19742
|
-
peg$fail(peg$
|
|
19974
|
+
peg$fail(peg$e17);
|
|
19743
19975
|
}
|
|
19744
19976
|
}
|
|
19745
19977
|
while (s6 !== peg$FAILED) {
|
|
19746
19978
|
s5.push(s6);
|
|
19747
19979
|
if (input.charCodeAt(peg$currPos) === 32) {
|
|
19748
|
-
s6 = peg$
|
|
19980
|
+
s6 = peg$c13;
|
|
19749
19981
|
peg$currPos++;
|
|
19750
19982
|
} else {
|
|
19751
19983
|
s6 = peg$FAILED;
|
|
19752
19984
|
if (peg$silentFails === 0) {
|
|
19753
|
-
peg$fail(peg$
|
|
19985
|
+
peg$fail(peg$e17);
|
|
19754
19986
|
}
|
|
19755
19987
|
}
|
|
19756
19988
|
}
|
|
@@ -19766,7 +19998,7 @@ function peg$parse(input, options) {
|
|
|
19766
19998
|
} else {
|
|
19767
19999
|
s11 = peg$FAILED;
|
|
19768
20000
|
if (peg$silentFails === 0) {
|
|
19769
|
-
peg$fail(peg$
|
|
20001
|
+
peg$fail(peg$e8);
|
|
19770
20002
|
}
|
|
19771
20003
|
}
|
|
19772
20004
|
while (s11 !== peg$FAILED) {
|
|
@@ -19777,7 +20009,7 @@ function peg$parse(input, options) {
|
|
|
19777
20009
|
} else {
|
|
19778
20010
|
s11 = peg$FAILED;
|
|
19779
20011
|
if (peg$silentFails === 0) {
|
|
19780
|
-
peg$fail(peg$
|
|
20012
|
+
peg$fail(peg$e8);
|
|
19781
20013
|
}
|
|
19782
20014
|
}
|
|
19783
20015
|
}
|
|
@@ -19800,7 +20032,7 @@ function peg$parse(input, options) {
|
|
|
19800
20032
|
s9 = null;
|
|
19801
20033
|
}
|
|
19802
20034
|
peg$savedPos = s0;
|
|
19803
|
-
s0 = peg$
|
|
20035
|
+
s0 = peg$f43(s1, s4, s7);
|
|
19804
20036
|
} else {
|
|
19805
20037
|
peg$currPos = s0;
|
|
19806
20038
|
s0 = peg$FAILED;
|
|
@@ -19833,7 +20065,7 @@ function peg$parse(input, options) {
|
|
|
19833
20065
|
s2 = peg$parseMediaChainItem();
|
|
19834
20066
|
}
|
|
19835
20067
|
peg$savedPos = s0;
|
|
19836
|
-
s1 = peg$
|
|
20068
|
+
s1 = peg$f44(s1);
|
|
19837
20069
|
s0 = s1;
|
|
19838
20070
|
return s0;
|
|
19839
20071
|
}
|
|
@@ -19907,7 +20139,7 @@ function peg$parse(input, options) {
|
|
|
19907
20139
|
s3 = peg$parseBlockTag();
|
|
19908
20140
|
if (s3 !== peg$FAILED) {
|
|
19909
20141
|
peg$savedPos = s0;
|
|
19910
|
-
s0 = peg$
|
|
20142
|
+
s0 = peg$f45(s2);
|
|
19911
20143
|
} else {
|
|
19912
20144
|
peg$currPos = s0;
|
|
19913
20145
|
s0 = peg$FAILED;
|
|
@@ -19933,34 +20165,34 @@ function peg$parse(input, options) {
|
|
|
19933
20165
|
s2 = peg$parseMediaSizeTags();
|
|
19934
20166
|
if (s2 !== peg$FAILED) {
|
|
19935
20167
|
if (input.charCodeAt(peg$currPos) === 58) {
|
|
19936
|
-
s3 = peg$
|
|
20168
|
+
s3 = peg$c6;
|
|
19937
20169
|
peg$currPos++;
|
|
19938
20170
|
} else {
|
|
19939
20171
|
s3 = peg$FAILED;
|
|
19940
20172
|
if (peg$silentFails === 0) {
|
|
19941
|
-
peg$fail(peg$
|
|
20173
|
+
peg$fail(peg$e9);
|
|
19942
20174
|
}
|
|
19943
20175
|
}
|
|
19944
20176
|
if (s3 !== peg$FAILED) {
|
|
19945
20177
|
s4 = [];
|
|
19946
20178
|
if (input.charCodeAt(peg$currPos) === 32) {
|
|
19947
|
-
s5 = peg$
|
|
20179
|
+
s5 = peg$c13;
|
|
19948
20180
|
peg$currPos++;
|
|
19949
20181
|
} else {
|
|
19950
20182
|
s5 = peg$FAILED;
|
|
19951
20183
|
if (peg$silentFails === 0) {
|
|
19952
|
-
peg$fail(peg$
|
|
20184
|
+
peg$fail(peg$e17);
|
|
19953
20185
|
}
|
|
19954
20186
|
}
|
|
19955
20187
|
while (s5 !== peg$FAILED) {
|
|
19956
20188
|
s4.push(s5);
|
|
19957
20189
|
if (input.charCodeAt(peg$currPos) === 32) {
|
|
19958
|
-
s5 = peg$
|
|
20190
|
+
s5 = peg$c13;
|
|
19959
20191
|
peg$currPos++;
|
|
19960
20192
|
} else {
|
|
19961
20193
|
s5 = peg$FAILED;
|
|
19962
20194
|
if (peg$silentFails === 0) {
|
|
19963
|
-
peg$fail(peg$
|
|
20195
|
+
peg$fail(peg$e17);
|
|
19964
20196
|
}
|
|
19965
20197
|
}
|
|
19966
20198
|
}
|
|
@@ -19984,7 +20216,7 @@ function peg$parse(input, options) {
|
|
|
19984
20216
|
} else {
|
|
19985
20217
|
s9 = peg$FAILED;
|
|
19986
20218
|
if (peg$silentFails === 0) {
|
|
19987
|
-
peg$fail(peg$
|
|
20219
|
+
peg$fail(peg$e16);
|
|
19988
20220
|
}
|
|
19989
20221
|
}
|
|
19990
20222
|
if (s9 !== peg$FAILED) {
|
|
@@ -20019,7 +20251,7 @@ function peg$parse(input, options) {
|
|
|
20019
20251
|
} else {
|
|
20020
20252
|
s9 = peg$FAILED;
|
|
20021
20253
|
if (peg$silentFails === 0) {
|
|
20022
|
-
peg$fail(peg$
|
|
20254
|
+
peg$fail(peg$e16);
|
|
20023
20255
|
}
|
|
20024
20256
|
}
|
|
20025
20257
|
if (s9 !== peg$FAILED) {
|
|
@@ -20045,30 +20277,30 @@ function peg$parse(input, options) {
|
|
|
20045
20277
|
if (s5 !== peg$FAILED) {
|
|
20046
20278
|
s6 = [];
|
|
20047
20279
|
if (input.charCodeAt(peg$currPos) === 32) {
|
|
20048
|
-
s7 = peg$
|
|
20280
|
+
s7 = peg$c13;
|
|
20049
20281
|
peg$currPos++;
|
|
20050
20282
|
} else {
|
|
20051
20283
|
s7 = peg$FAILED;
|
|
20052
20284
|
if (peg$silentFails === 0) {
|
|
20053
|
-
peg$fail(peg$
|
|
20285
|
+
peg$fail(peg$e17);
|
|
20054
20286
|
}
|
|
20055
20287
|
}
|
|
20056
20288
|
while (s7 !== peg$FAILED) {
|
|
20057
20289
|
s6.push(s7);
|
|
20058
20290
|
if (input.charCodeAt(peg$currPos) === 32) {
|
|
20059
|
-
s7 = peg$
|
|
20291
|
+
s7 = peg$c13;
|
|
20060
20292
|
peg$currPos++;
|
|
20061
20293
|
} else {
|
|
20062
20294
|
s7 = peg$FAILED;
|
|
20063
20295
|
if (peg$silentFails === 0) {
|
|
20064
|
-
peg$fail(peg$
|
|
20296
|
+
peg$fail(peg$e17);
|
|
20065
20297
|
}
|
|
20066
20298
|
}
|
|
20067
20299
|
}
|
|
20068
20300
|
s7 = peg$parseBlockTag();
|
|
20069
20301
|
if (s7 !== peg$FAILED) {
|
|
20070
20302
|
peg$savedPos = s0;
|
|
20071
|
-
s0 = peg$
|
|
20303
|
+
s0 = peg$f46(s2, s5);
|
|
20072
20304
|
} else {
|
|
20073
20305
|
peg$currPos = s0;
|
|
20074
20306
|
s0 = peg$FAILED;
|
|
@@ -20102,34 +20334,34 @@ function peg$parse(input, options) {
|
|
|
20102
20334
|
s2 = peg$parseMediaTextTags();
|
|
20103
20335
|
if (s2 !== peg$FAILED) {
|
|
20104
20336
|
if (input.charCodeAt(peg$currPos) === 58) {
|
|
20105
|
-
s3 = peg$
|
|
20337
|
+
s3 = peg$c6;
|
|
20106
20338
|
peg$currPos++;
|
|
20107
20339
|
} else {
|
|
20108
20340
|
s3 = peg$FAILED;
|
|
20109
20341
|
if (peg$silentFails === 0) {
|
|
20110
|
-
peg$fail(peg$
|
|
20342
|
+
peg$fail(peg$e9);
|
|
20111
20343
|
}
|
|
20112
20344
|
}
|
|
20113
20345
|
if (s3 !== peg$FAILED) {
|
|
20114
20346
|
s4 = [];
|
|
20115
20347
|
if (input.charCodeAt(peg$currPos) === 32) {
|
|
20116
|
-
s5 = peg$
|
|
20348
|
+
s5 = peg$c13;
|
|
20117
20349
|
peg$currPos++;
|
|
20118
20350
|
} else {
|
|
20119
20351
|
s5 = peg$FAILED;
|
|
20120
20352
|
if (peg$silentFails === 0) {
|
|
20121
|
-
peg$fail(peg$
|
|
20353
|
+
peg$fail(peg$e17);
|
|
20122
20354
|
}
|
|
20123
20355
|
}
|
|
20124
20356
|
while (s5 !== peg$FAILED) {
|
|
20125
20357
|
s4.push(s5);
|
|
20126
20358
|
if (input.charCodeAt(peg$currPos) === 32) {
|
|
20127
|
-
s5 = peg$
|
|
20359
|
+
s5 = peg$c13;
|
|
20128
20360
|
peg$currPos++;
|
|
20129
20361
|
} else {
|
|
20130
20362
|
s5 = peg$FAILED;
|
|
20131
20363
|
if (peg$silentFails === 0) {
|
|
20132
|
-
peg$fail(peg$
|
|
20364
|
+
peg$fail(peg$e17);
|
|
20133
20365
|
}
|
|
20134
20366
|
}
|
|
20135
20367
|
}
|
|
@@ -20190,7 +20422,7 @@ function peg$parse(input, options) {
|
|
|
20190
20422
|
s6 = peg$parseBlockTag();
|
|
20191
20423
|
if (s6 !== peg$FAILED) {
|
|
20192
20424
|
peg$savedPos = s0;
|
|
20193
|
-
s0 = peg$
|
|
20425
|
+
s0 = peg$f47(s2, s5);
|
|
20194
20426
|
} else {
|
|
20195
20427
|
peg$currPos = s0;
|
|
20196
20428
|
s0 = peg$FAILED;
|
|
@@ -20220,34 +20452,34 @@ function peg$parse(input, options) {
|
|
|
20220
20452
|
s2 = peg$parseMediaAlignmentTags();
|
|
20221
20453
|
if (s2 !== peg$FAILED) {
|
|
20222
20454
|
if (input.charCodeAt(peg$currPos) === 58) {
|
|
20223
|
-
s3 = peg$
|
|
20455
|
+
s3 = peg$c6;
|
|
20224
20456
|
peg$currPos++;
|
|
20225
20457
|
} else {
|
|
20226
20458
|
s3 = peg$FAILED;
|
|
20227
20459
|
if (peg$silentFails === 0) {
|
|
20228
|
-
peg$fail(peg$
|
|
20460
|
+
peg$fail(peg$e9);
|
|
20229
20461
|
}
|
|
20230
20462
|
}
|
|
20231
20463
|
if (s3 !== peg$FAILED) {
|
|
20232
20464
|
s4 = [];
|
|
20233
20465
|
if (input.charCodeAt(peg$currPos) === 32) {
|
|
20234
|
-
s5 = peg$
|
|
20466
|
+
s5 = peg$c13;
|
|
20235
20467
|
peg$currPos++;
|
|
20236
20468
|
} else {
|
|
20237
20469
|
s5 = peg$FAILED;
|
|
20238
20470
|
if (peg$silentFails === 0) {
|
|
20239
|
-
peg$fail(peg$
|
|
20471
|
+
peg$fail(peg$e17);
|
|
20240
20472
|
}
|
|
20241
20473
|
}
|
|
20242
20474
|
while (s5 !== peg$FAILED) {
|
|
20243
20475
|
s4.push(s5);
|
|
20244
20476
|
if (input.charCodeAt(peg$currPos) === 32) {
|
|
20245
|
-
s5 = peg$
|
|
20477
|
+
s5 = peg$c13;
|
|
20246
20478
|
peg$currPos++;
|
|
20247
20479
|
} else {
|
|
20248
20480
|
s5 = peg$FAILED;
|
|
20249
20481
|
if (peg$silentFails === 0) {
|
|
20250
|
-
peg$fail(peg$
|
|
20482
|
+
peg$fail(peg$e17);
|
|
20251
20483
|
}
|
|
20252
20484
|
}
|
|
20253
20485
|
}
|
|
@@ -20255,30 +20487,30 @@ function peg$parse(input, options) {
|
|
|
20255
20487
|
if (s5 !== peg$FAILED) {
|
|
20256
20488
|
s6 = [];
|
|
20257
20489
|
if (input.charCodeAt(peg$currPos) === 32) {
|
|
20258
|
-
s7 = peg$
|
|
20490
|
+
s7 = peg$c13;
|
|
20259
20491
|
peg$currPos++;
|
|
20260
20492
|
} else {
|
|
20261
20493
|
s7 = peg$FAILED;
|
|
20262
20494
|
if (peg$silentFails === 0) {
|
|
20263
|
-
peg$fail(peg$
|
|
20495
|
+
peg$fail(peg$e17);
|
|
20264
20496
|
}
|
|
20265
20497
|
}
|
|
20266
20498
|
while (s7 !== peg$FAILED) {
|
|
20267
20499
|
s6.push(s7);
|
|
20268
20500
|
if (input.charCodeAt(peg$currPos) === 32) {
|
|
20269
|
-
s7 = peg$
|
|
20501
|
+
s7 = peg$c13;
|
|
20270
20502
|
peg$currPos++;
|
|
20271
20503
|
} else {
|
|
20272
20504
|
s7 = peg$FAILED;
|
|
20273
20505
|
if (peg$silentFails === 0) {
|
|
20274
|
-
peg$fail(peg$
|
|
20506
|
+
peg$fail(peg$e17);
|
|
20275
20507
|
}
|
|
20276
20508
|
}
|
|
20277
20509
|
}
|
|
20278
20510
|
s7 = peg$parseBlockTag();
|
|
20279
20511
|
if (s7 !== peg$FAILED) {
|
|
20280
20512
|
peg$savedPos = s0;
|
|
20281
|
-
s0 = peg$
|
|
20513
|
+
s0 = peg$f48(s2, s5);
|
|
20282
20514
|
} else {
|
|
20283
20515
|
peg$currPos = s0;
|
|
20284
20516
|
s0 = peg$FAILED;
|
|
@@ -20312,34 +20544,34 @@ function peg$parse(input, options) {
|
|
|
20312
20544
|
s2 = peg$parseMediaBooleanTags();
|
|
20313
20545
|
if (s2 !== peg$FAILED) {
|
|
20314
20546
|
if (input.charCodeAt(peg$currPos) === 58) {
|
|
20315
|
-
s3 = peg$
|
|
20547
|
+
s3 = peg$c6;
|
|
20316
20548
|
peg$currPos++;
|
|
20317
20549
|
} else {
|
|
20318
20550
|
s3 = peg$FAILED;
|
|
20319
20551
|
if (peg$silentFails === 0) {
|
|
20320
|
-
peg$fail(peg$
|
|
20552
|
+
peg$fail(peg$e9);
|
|
20321
20553
|
}
|
|
20322
20554
|
}
|
|
20323
20555
|
if (s3 !== peg$FAILED) {
|
|
20324
20556
|
s4 = [];
|
|
20325
20557
|
if (input.charCodeAt(peg$currPos) === 32) {
|
|
20326
|
-
s5 = peg$
|
|
20558
|
+
s5 = peg$c13;
|
|
20327
20559
|
peg$currPos++;
|
|
20328
20560
|
} else {
|
|
20329
20561
|
s5 = peg$FAILED;
|
|
20330
20562
|
if (peg$silentFails === 0) {
|
|
20331
|
-
peg$fail(peg$
|
|
20563
|
+
peg$fail(peg$e17);
|
|
20332
20564
|
}
|
|
20333
20565
|
}
|
|
20334
20566
|
while (s5 !== peg$FAILED) {
|
|
20335
20567
|
s4.push(s5);
|
|
20336
20568
|
if (input.charCodeAt(peg$currPos) === 32) {
|
|
20337
|
-
s5 = peg$
|
|
20569
|
+
s5 = peg$c13;
|
|
20338
20570
|
peg$currPos++;
|
|
20339
20571
|
} else {
|
|
20340
20572
|
s5 = peg$FAILED;
|
|
20341
20573
|
if (peg$silentFails === 0) {
|
|
20342
|
-
peg$fail(peg$
|
|
20574
|
+
peg$fail(peg$e17);
|
|
20343
20575
|
}
|
|
20344
20576
|
}
|
|
20345
20577
|
}
|
|
@@ -20347,30 +20579,30 @@ function peg$parse(input, options) {
|
|
|
20347
20579
|
if (s5 !== peg$FAILED) {
|
|
20348
20580
|
s6 = [];
|
|
20349
20581
|
if (input.charCodeAt(peg$currPos) === 32) {
|
|
20350
|
-
s7 = peg$
|
|
20582
|
+
s7 = peg$c13;
|
|
20351
20583
|
peg$currPos++;
|
|
20352
20584
|
} else {
|
|
20353
20585
|
s7 = peg$FAILED;
|
|
20354
20586
|
if (peg$silentFails === 0) {
|
|
20355
|
-
peg$fail(peg$
|
|
20587
|
+
peg$fail(peg$e17);
|
|
20356
20588
|
}
|
|
20357
20589
|
}
|
|
20358
20590
|
while (s7 !== peg$FAILED) {
|
|
20359
20591
|
s6.push(s7);
|
|
20360
20592
|
if (input.charCodeAt(peg$currPos) === 32) {
|
|
20361
|
-
s7 = peg$
|
|
20593
|
+
s7 = peg$c13;
|
|
20362
20594
|
peg$currPos++;
|
|
20363
20595
|
} else {
|
|
20364
20596
|
s7 = peg$FAILED;
|
|
20365
20597
|
if (peg$silentFails === 0) {
|
|
20366
|
-
peg$fail(peg$
|
|
20598
|
+
peg$fail(peg$e17);
|
|
20367
20599
|
}
|
|
20368
20600
|
}
|
|
20369
20601
|
}
|
|
20370
20602
|
s7 = peg$parseBlockTag();
|
|
20371
20603
|
if (s7 !== peg$FAILED) {
|
|
20372
20604
|
peg$savedPos = s0;
|
|
20373
|
-
s0 = peg$
|
|
20605
|
+
s0 = peg$f49(s2, s5);
|
|
20374
20606
|
} else {
|
|
20375
20607
|
peg$currPos = s0;
|
|
20376
20608
|
s0 = peg$FAILED;
|
|
@@ -20405,30 +20637,30 @@ function peg$parse(input, options) {
|
|
|
20405
20637
|
if (s2 !== peg$FAILED) {
|
|
20406
20638
|
s3 = [];
|
|
20407
20639
|
if (input.charCodeAt(peg$currPos) === 32) {
|
|
20408
|
-
s4 = peg$
|
|
20640
|
+
s4 = peg$c13;
|
|
20409
20641
|
peg$currPos++;
|
|
20410
20642
|
} else {
|
|
20411
20643
|
s4 = peg$FAILED;
|
|
20412
20644
|
if (peg$silentFails === 0) {
|
|
20413
|
-
peg$fail(peg$
|
|
20645
|
+
peg$fail(peg$e17);
|
|
20414
20646
|
}
|
|
20415
20647
|
}
|
|
20416
20648
|
while (s4 !== peg$FAILED) {
|
|
20417
20649
|
s3.push(s4);
|
|
20418
20650
|
if (input.charCodeAt(peg$currPos) === 32) {
|
|
20419
|
-
s4 = peg$
|
|
20651
|
+
s4 = peg$c13;
|
|
20420
20652
|
peg$currPos++;
|
|
20421
20653
|
} else {
|
|
20422
20654
|
s4 = peg$FAILED;
|
|
20423
20655
|
if (peg$silentFails === 0) {
|
|
20424
|
-
peg$fail(peg$
|
|
20656
|
+
peg$fail(peg$e17);
|
|
20425
20657
|
}
|
|
20426
20658
|
}
|
|
20427
20659
|
}
|
|
20428
20660
|
s4 = peg$parseBlockTag();
|
|
20429
20661
|
if (s4 !== peg$FAILED) {
|
|
20430
20662
|
peg$savedPos = s0;
|
|
20431
|
-
s0 = peg$
|
|
20663
|
+
s0 = peg$f50(s2);
|
|
20432
20664
|
} else {
|
|
20433
20665
|
peg$currPos = s0;
|
|
20434
20666
|
s0 = peg$FAILED;
|
|
@@ -20454,7 +20686,7 @@ function peg$parse(input, options) {
|
|
|
20454
20686
|
s2 = peg$parseBlockTag();
|
|
20455
20687
|
if (s2 !== peg$FAILED) {
|
|
20456
20688
|
peg$savedPos = s0;
|
|
20457
|
-
s0 = peg$
|
|
20689
|
+
s0 = peg$f51();
|
|
20458
20690
|
} else {
|
|
20459
20691
|
peg$currPos = s0;
|
|
20460
20692
|
s0 = peg$FAILED;
|
|
@@ -20530,7 +20762,7 @@ function peg$parse(input, options) {
|
|
|
20530
20762
|
s3 = peg$parseBlockTag();
|
|
20531
20763
|
if (s3 !== peg$FAILED) {
|
|
20532
20764
|
peg$savedPos = s0;
|
|
20533
|
-
s0 = peg$
|
|
20765
|
+
s0 = peg$f52(s2);
|
|
20534
20766
|
} else {
|
|
20535
20767
|
peg$currPos = s0;
|
|
20536
20768
|
s0 = peg$FAILED;
|
|
@@ -20694,7 +20926,7 @@ function peg$parse(input, options) {
|
|
|
20694
20926
|
s0 = peg$currPos;
|
|
20695
20927
|
s1 = peg$parseInlineTags();
|
|
20696
20928
|
peg$savedPos = s0;
|
|
20697
|
-
s1 = peg$
|
|
20929
|
+
s1 = peg$f53(s1);
|
|
20698
20930
|
s0 = s1;
|
|
20699
20931
|
peg$silentFails--;
|
|
20700
20932
|
return s0;
|
|
@@ -20726,7 +20958,7 @@ function peg$parse(input, options) {
|
|
|
20726
20958
|
}
|
|
20727
20959
|
}
|
|
20728
20960
|
peg$savedPos = s0;
|
|
20729
|
-
s0 = peg$
|
|
20961
|
+
s0 = peg$f54(s1, s2);
|
|
20730
20962
|
return s0;
|
|
20731
20963
|
}
|
|
20732
20964
|
function peg$parseInlinePlainText() {
|
|
@@ -20735,7 +20967,7 @@ function peg$parse(input, options) {
|
|
|
20735
20967
|
s1 = peg$parseNL();
|
|
20736
20968
|
if (s1 !== peg$FAILED) {
|
|
20737
20969
|
peg$savedPos = s0;
|
|
20738
|
-
s1 = peg$
|
|
20970
|
+
s1 = peg$f55();
|
|
20739
20971
|
}
|
|
20740
20972
|
s0 = s1;
|
|
20741
20973
|
if (s0 === peg$FAILED) {
|
|
@@ -20864,7 +21096,7 @@ function peg$parse(input, options) {
|
|
|
20864
21096
|
}
|
|
20865
21097
|
if (s1 !== peg$FAILED) {
|
|
20866
21098
|
peg$savedPos = s0;
|
|
20867
|
-
s1 = peg$
|
|
21099
|
+
s1 = peg$f56(s1);
|
|
20868
21100
|
}
|
|
20869
21101
|
s0 = s1;
|
|
20870
21102
|
}
|
|
@@ -20915,7 +21147,7 @@ function peg$parse(input, options) {
|
|
|
20915
21147
|
} else {
|
|
20916
21148
|
s4 = peg$FAILED;
|
|
20917
21149
|
if (peg$silentFails === 0) {
|
|
20918
|
-
peg$fail(peg$
|
|
21150
|
+
peg$fail(peg$e16);
|
|
20919
21151
|
}
|
|
20920
21152
|
}
|
|
20921
21153
|
if (s4 !== peg$FAILED) {
|
|
@@ -20927,7 +21159,7 @@ function peg$parse(input, options) {
|
|
|
20927
21159
|
} else {
|
|
20928
21160
|
s4 = peg$FAILED;
|
|
20929
21161
|
if (peg$silentFails === 0) {
|
|
20930
|
-
peg$fail(peg$
|
|
21162
|
+
peg$fail(peg$e16);
|
|
20931
21163
|
}
|
|
20932
21164
|
}
|
|
20933
21165
|
}
|
|
@@ -20943,7 +21175,7 @@ function peg$parse(input, options) {
|
|
|
20943
21175
|
s3 = peg$parseBodyBitCloseTag();
|
|
20944
21176
|
if (s3 !== peg$FAILED) {
|
|
20945
21177
|
peg$savedPos = s0;
|
|
20946
|
-
s0 = peg$
|
|
21178
|
+
s0 = peg$f57(s2);
|
|
20947
21179
|
} else {
|
|
20948
21180
|
peg$currPos = s0;
|
|
20949
21181
|
s0 = peg$FAILED;
|
|
@@ -21043,7 +21275,7 @@ function peg$parse(input, options) {
|
|
|
21043
21275
|
}
|
|
21044
21276
|
if (s4 !== peg$FAILED) {
|
|
21045
21277
|
peg$savedPos = s0;
|
|
21046
|
-
s0 = peg$
|
|
21278
|
+
s0 = peg$f58(s2);
|
|
21047
21279
|
} else {
|
|
21048
21280
|
peg$currPos = s0;
|
|
21049
21281
|
s0 = peg$FAILED;
|
|
@@ -21145,18 +21377,18 @@ function peg$parse(input, options) {
|
|
|
21145
21377
|
s5 = peg$parseUrl();
|
|
21146
21378
|
if (s5 !== peg$FAILED) {
|
|
21147
21379
|
if (input.charCodeAt(peg$currPos) === 124) {
|
|
21148
|
-
s6 = peg$
|
|
21380
|
+
s6 = peg$c1;
|
|
21149
21381
|
peg$currPos++;
|
|
21150
21382
|
} else {
|
|
21151
21383
|
s6 = peg$FAILED;
|
|
21152
21384
|
if (peg$silentFails === 0) {
|
|
21153
|
-
peg$fail(peg$
|
|
21385
|
+
peg$fail(peg$e3);
|
|
21154
21386
|
}
|
|
21155
21387
|
}
|
|
21156
21388
|
if (s6 !== peg$FAILED) {
|
|
21157
21389
|
s7 = peg$parseInlineMediaChain();
|
|
21158
21390
|
peg$savedPos = s0;
|
|
21159
|
-
s0 = peg$
|
|
21391
|
+
s0 = peg$f59(s2, s5, s7);
|
|
21160
21392
|
} else {
|
|
21161
21393
|
peg$currPos = s0;
|
|
21162
21394
|
s0 = peg$FAILED;
|
|
@@ -21256,7 +21488,7 @@ function peg$parse(input, options) {
|
|
|
21256
21488
|
s4 = peg$parseAttrChain();
|
|
21257
21489
|
if (s4 !== peg$FAILED) {
|
|
21258
21490
|
peg$savedPos = s0;
|
|
21259
|
-
s0 = peg$
|
|
21491
|
+
s0 = peg$f60(s2, s4);
|
|
21260
21492
|
} else {
|
|
21261
21493
|
peg$currPos = s0;
|
|
21262
21494
|
s0 = peg$FAILED;
|
|
@@ -21346,7 +21578,7 @@ function peg$parse(input, options) {
|
|
|
21346
21578
|
s3 = peg$parseBoldTag();
|
|
21347
21579
|
if (s3 !== peg$FAILED) {
|
|
21348
21580
|
peg$savedPos = s0;
|
|
21349
|
-
s0 = peg$
|
|
21581
|
+
s0 = peg$f61(s2);
|
|
21350
21582
|
} else {
|
|
21351
21583
|
peg$currPos = s0;
|
|
21352
21584
|
s0 = peg$FAILED;
|
|
@@ -21432,7 +21664,7 @@ function peg$parse(input, options) {
|
|
|
21432
21664
|
s3 = peg$parseItalicTag();
|
|
21433
21665
|
if (s3 !== peg$FAILED) {
|
|
21434
21666
|
peg$savedPos = s0;
|
|
21435
|
-
s0 = peg$
|
|
21667
|
+
s0 = peg$f62(s2);
|
|
21436
21668
|
} else {
|
|
21437
21669
|
peg$currPos = s0;
|
|
21438
21670
|
s0 = peg$FAILED;
|
|
@@ -21518,7 +21750,7 @@ function peg$parse(input, options) {
|
|
|
21518
21750
|
s3 = peg$parseLightTag();
|
|
21519
21751
|
if (s3 !== peg$FAILED) {
|
|
21520
21752
|
peg$savedPos = s0;
|
|
21521
|
-
s0 = peg$
|
|
21753
|
+
s0 = peg$f63(s2);
|
|
21522
21754
|
} else {
|
|
21523
21755
|
peg$currPos = s0;
|
|
21524
21756
|
s0 = peg$FAILED;
|
|
@@ -21604,7 +21836,7 @@ function peg$parse(input, options) {
|
|
|
21604
21836
|
s3 = peg$parseHighlightTag();
|
|
21605
21837
|
if (s3 !== peg$FAILED) {
|
|
21606
21838
|
peg$savedPos = s0;
|
|
21607
|
-
s0 = peg$
|
|
21839
|
+
s0 = peg$f64(s2);
|
|
21608
21840
|
} else {
|
|
21609
21841
|
peg$currPos = s0;
|
|
21610
21842
|
s0 = peg$FAILED;
|
|
@@ -21618,7 +21850,7 @@ function peg$parse(input, options) {
|
|
|
21618
21850
|
s1 = peg$parseUrl();
|
|
21619
21851
|
if (s1 !== peg$FAILED) {
|
|
21620
21852
|
peg$savedPos = s0;
|
|
21621
|
-
s1 = peg$
|
|
21853
|
+
s1 = peg$f65(s1);
|
|
21622
21854
|
}
|
|
21623
21855
|
s0 = s1;
|
|
21624
21856
|
}
|
|
@@ -21733,12 +21965,12 @@ function peg$parse(input, options) {
|
|
|
21733
21965
|
let s0, s1, s2, s3;
|
|
21734
21966
|
s0 = peg$currPos;
|
|
21735
21967
|
if (input.charCodeAt(peg$currPos) === 124) {
|
|
21736
|
-
s1 = peg$
|
|
21968
|
+
s1 = peg$c1;
|
|
21737
21969
|
peg$currPos++;
|
|
21738
21970
|
} else {
|
|
21739
21971
|
s1 = peg$FAILED;
|
|
21740
21972
|
if (peg$silentFails === 0) {
|
|
21741
|
-
peg$fail(peg$
|
|
21973
|
+
peg$fail(peg$e3);
|
|
21742
21974
|
}
|
|
21743
21975
|
}
|
|
21744
21976
|
if (s1 !== peg$FAILED) {
|
|
@@ -21754,7 +21986,7 @@ function peg$parse(input, options) {
|
|
|
21754
21986
|
}
|
|
21755
21987
|
if (s2 !== peg$FAILED) {
|
|
21756
21988
|
peg$savedPos = s0;
|
|
21757
|
-
s0 = peg$
|
|
21989
|
+
s0 = peg$f66(s2);
|
|
21758
21990
|
} else {
|
|
21759
21991
|
peg$currPos = s0;
|
|
21760
21992
|
s0 = peg$FAILED;
|
|
@@ -21775,7 +22007,7 @@ function peg$parse(input, options) {
|
|
|
21775
22007
|
s2 = peg$parseInlineMediaChainItem();
|
|
21776
22008
|
}
|
|
21777
22009
|
peg$savedPos = s0;
|
|
21778
|
-
s1 = peg$
|
|
22010
|
+
s1 = peg$f67(s1);
|
|
21779
22011
|
s0 = s1;
|
|
21780
22012
|
return s0;
|
|
21781
22013
|
}
|
|
@@ -21849,7 +22081,7 @@ function peg$parse(input, options) {
|
|
|
21849
22081
|
s3 = peg$parseBlockTag();
|
|
21850
22082
|
if (s3 !== peg$FAILED) {
|
|
21851
22083
|
peg$savedPos = s0;
|
|
21852
|
-
s0 = peg$
|
|
22084
|
+
s0 = peg$f68(s2);
|
|
21853
22085
|
} else {
|
|
21854
22086
|
peg$currPos = s0;
|
|
21855
22087
|
s0 = peg$FAILED;
|
|
@@ -21883,34 +22115,34 @@ function peg$parse(input, options) {
|
|
|
21883
22115
|
}
|
|
21884
22116
|
if (s2 !== peg$FAILED) {
|
|
21885
22117
|
if (input.charCodeAt(peg$currPos) === 58) {
|
|
21886
|
-
s3 = peg$
|
|
22118
|
+
s3 = peg$c6;
|
|
21887
22119
|
peg$currPos++;
|
|
21888
22120
|
} else {
|
|
21889
22121
|
s3 = peg$FAILED;
|
|
21890
22122
|
if (peg$silentFails === 0) {
|
|
21891
|
-
peg$fail(peg$
|
|
22123
|
+
peg$fail(peg$e9);
|
|
21892
22124
|
}
|
|
21893
22125
|
}
|
|
21894
22126
|
if (s3 !== peg$FAILED) {
|
|
21895
22127
|
s4 = [];
|
|
21896
22128
|
if (input.charCodeAt(peg$currPos) === 32) {
|
|
21897
|
-
s5 = peg$
|
|
22129
|
+
s5 = peg$c13;
|
|
21898
22130
|
peg$currPos++;
|
|
21899
22131
|
} else {
|
|
21900
22132
|
s5 = peg$FAILED;
|
|
21901
22133
|
if (peg$silentFails === 0) {
|
|
21902
|
-
peg$fail(peg$
|
|
22134
|
+
peg$fail(peg$e17);
|
|
21903
22135
|
}
|
|
21904
22136
|
}
|
|
21905
22137
|
while (s5 !== peg$FAILED) {
|
|
21906
22138
|
s4.push(s5);
|
|
21907
22139
|
if (input.charCodeAt(peg$currPos) === 32) {
|
|
21908
|
-
s5 = peg$
|
|
22140
|
+
s5 = peg$c13;
|
|
21909
22141
|
peg$currPos++;
|
|
21910
22142
|
} else {
|
|
21911
22143
|
s5 = peg$FAILED;
|
|
21912
22144
|
if (peg$silentFails === 0) {
|
|
21913
|
-
peg$fail(peg$
|
|
22145
|
+
peg$fail(peg$e17);
|
|
21914
22146
|
}
|
|
21915
22147
|
}
|
|
21916
22148
|
}
|
|
@@ -21971,7 +22203,7 @@ function peg$parse(input, options) {
|
|
|
21971
22203
|
s6 = peg$parseBlockTag();
|
|
21972
22204
|
if (s6 !== peg$FAILED) {
|
|
21973
22205
|
peg$savedPos = s0;
|
|
21974
|
-
s0 = peg$
|
|
22206
|
+
s0 = peg$f69(s2, s5);
|
|
21975
22207
|
} else {
|
|
21976
22208
|
peg$currPos = s0;
|
|
21977
22209
|
s0 = peg$FAILED;
|
|
@@ -22001,34 +22233,34 @@ function peg$parse(input, options) {
|
|
|
22001
22233
|
s2 = peg$parseMediaSizeTags();
|
|
22002
22234
|
if (s2 !== peg$FAILED) {
|
|
22003
22235
|
if (input.charCodeAt(peg$currPos) === 58) {
|
|
22004
|
-
s3 = peg$
|
|
22236
|
+
s3 = peg$c6;
|
|
22005
22237
|
peg$currPos++;
|
|
22006
22238
|
} else {
|
|
22007
22239
|
s3 = peg$FAILED;
|
|
22008
22240
|
if (peg$silentFails === 0) {
|
|
22009
|
-
peg$fail(peg$
|
|
22241
|
+
peg$fail(peg$e9);
|
|
22010
22242
|
}
|
|
22011
22243
|
}
|
|
22012
22244
|
if (s3 !== peg$FAILED) {
|
|
22013
22245
|
s4 = [];
|
|
22014
22246
|
if (input.charCodeAt(peg$currPos) === 32) {
|
|
22015
|
-
s5 = peg$
|
|
22247
|
+
s5 = peg$c13;
|
|
22016
22248
|
peg$currPos++;
|
|
22017
22249
|
} else {
|
|
22018
22250
|
s5 = peg$FAILED;
|
|
22019
22251
|
if (peg$silentFails === 0) {
|
|
22020
|
-
peg$fail(peg$
|
|
22252
|
+
peg$fail(peg$e17);
|
|
22021
22253
|
}
|
|
22022
22254
|
}
|
|
22023
22255
|
while (s5 !== peg$FAILED) {
|
|
22024
22256
|
s4.push(s5);
|
|
22025
22257
|
if (input.charCodeAt(peg$currPos) === 32) {
|
|
22026
|
-
s5 = peg$
|
|
22258
|
+
s5 = peg$c13;
|
|
22027
22259
|
peg$currPos++;
|
|
22028
22260
|
} else {
|
|
22029
22261
|
s5 = peg$FAILED;
|
|
22030
22262
|
if (peg$silentFails === 0) {
|
|
22031
|
-
peg$fail(peg$
|
|
22263
|
+
peg$fail(peg$e17);
|
|
22032
22264
|
}
|
|
22033
22265
|
}
|
|
22034
22266
|
}
|
|
@@ -22052,7 +22284,7 @@ function peg$parse(input, options) {
|
|
|
22052
22284
|
} else {
|
|
22053
22285
|
s9 = peg$FAILED;
|
|
22054
22286
|
if (peg$silentFails === 0) {
|
|
22055
|
-
peg$fail(peg$
|
|
22287
|
+
peg$fail(peg$e16);
|
|
22056
22288
|
}
|
|
22057
22289
|
}
|
|
22058
22290
|
if (s9 !== peg$FAILED) {
|
|
@@ -22087,7 +22319,7 @@ function peg$parse(input, options) {
|
|
|
22087
22319
|
} else {
|
|
22088
22320
|
s9 = peg$FAILED;
|
|
22089
22321
|
if (peg$silentFails === 0) {
|
|
22090
|
-
peg$fail(peg$
|
|
22322
|
+
peg$fail(peg$e16);
|
|
22091
22323
|
}
|
|
22092
22324
|
}
|
|
22093
22325
|
if (s9 !== peg$FAILED) {
|
|
@@ -22114,7 +22346,7 @@ function peg$parse(input, options) {
|
|
|
22114
22346
|
s6 = peg$parseBlockTag();
|
|
22115
22347
|
if (s6 !== peg$FAILED) {
|
|
22116
22348
|
peg$savedPos = s0;
|
|
22117
|
-
s0 = peg$
|
|
22349
|
+
s0 = peg$f70(s2, s5);
|
|
22118
22350
|
} else {
|
|
22119
22351
|
peg$currPos = s0;
|
|
22120
22352
|
s0 = peg$FAILED;
|
|
@@ -22148,34 +22380,34 @@ function peg$parse(input, options) {
|
|
|
22148
22380
|
s2 = peg$parseMediaSizeTags();
|
|
22149
22381
|
if (s2 !== peg$FAILED) {
|
|
22150
22382
|
if (input.charCodeAt(peg$currPos) === 58) {
|
|
22151
|
-
s3 = peg$
|
|
22383
|
+
s3 = peg$c6;
|
|
22152
22384
|
peg$currPos++;
|
|
22153
22385
|
} else {
|
|
22154
22386
|
s3 = peg$FAILED;
|
|
22155
22387
|
if (peg$silentFails === 0) {
|
|
22156
|
-
peg$fail(peg$
|
|
22388
|
+
peg$fail(peg$e9);
|
|
22157
22389
|
}
|
|
22158
22390
|
}
|
|
22159
22391
|
if (s3 !== peg$FAILED) {
|
|
22160
22392
|
s4 = [];
|
|
22161
22393
|
if (input.charCodeAt(peg$currPos) === 32) {
|
|
22162
|
-
s5 = peg$
|
|
22394
|
+
s5 = peg$c13;
|
|
22163
22395
|
peg$currPos++;
|
|
22164
22396
|
} else {
|
|
22165
22397
|
s5 = peg$FAILED;
|
|
22166
22398
|
if (peg$silentFails === 0) {
|
|
22167
|
-
peg$fail(peg$
|
|
22399
|
+
peg$fail(peg$e17);
|
|
22168
22400
|
}
|
|
22169
22401
|
}
|
|
22170
22402
|
while (s5 !== peg$FAILED) {
|
|
22171
22403
|
s4.push(s5);
|
|
22172
22404
|
if (input.charCodeAt(peg$currPos) === 32) {
|
|
22173
|
-
s5 = peg$
|
|
22405
|
+
s5 = peg$c13;
|
|
22174
22406
|
peg$currPos++;
|
|
22175
22407
|
} else {
|
|
22176
22408
|
s5 = peg$FAILED;
|
|
22177
22409
|
if (peg$silentFails === 0) {
|
|
22178
|
-
peg$fail(peg$
|
|
22410
|
+
peg$fail(peg$e17);
|
|
22179
22411
|
}
|
|
22180
22412
|
}
|
|
22181
22413
|
}
|
|
@@ -22236,7 +22468,7 @@ function peg$parse(input, options) {
|
|
|
22236
22468
|
s6 = peg$parseBlockTag();
|
|
22237
22469
|
if (s6 !== peg$FAILED) {
|
|
22238
22470
|
peg$savedPos = s0;
|
|
22239
|
-
s0 = peg$
|
|
22471
|
+
s0 = peg$f71(s2, s5);
|
|
22240
22472
|
} else {
|
|
22241
22473
|
peg$currPos = s0;
|
|
22242
22474
|
s0 = peg$FAILED;
|
|
@@ -22274,34 +22506,34 @@ function peg$parse(input, options) {
|
|
|
22274
22506
|
}
|
|
22275
22507
|
if (s2 !== peg$FAILED) {
|
|
22276
22508
|
if (input.charCodeAt(peg$currPos) === 58) {
|
|
22277
|
-
s3 = peg$
|
|
22509
|
+
s3 = peg$c6;
|
|
22278
22510
|
peg$currPos++;
|
|
22279
22511
|
} else {
|
|
22280
22512
|
s3 = peg$FAILED;
|
|
22281
22513
|
if (peg$silentFails === 0) {
|
|
22282
|
-
peg$fail(peg$
|
|
22514
|
+
peg$fail(peg$e9);
|
|
22283
22515
|
}
|
|
22284
22516
|
}
|
|
22285
22517
|
if (s3 !== peg$FAILED) {
|
|
22286
22518
|
s4 = [];
|
|
22287
22519
|
if (input.charCodeAt(peg$currPos) === 32) {
|
|
22288
|
-
s5 = peg$
|
|
22520
|
+
s5 = peg$c13;
|
|
22289
22521
|
peg$currPos++;
|
|
22290
22522
|
} else {
|
|
22291
22523
|
s5 = peg$FAILED;
|
|
22292
22524
|
if (peg$silentFails === 0) {
|
|
22293
|
-
peg$fail(peg$
|
|
22525
|
+
peg$fail(peg$e17);
|
|
22294
22526
|
}
|
|
22295
22527
|
}
|
|
22296
22528
|
while (s5 !== peg$FAILED) {
|
|
22297
22529
|
s4.push(s5);
|
|
22298
22530
|
if (input.charCodeAt(peg$currPos) === 32) {
|
|
22299
|
-
s5 = peg$
|
|
22531
|
+
s5 = peg$c13;
|
|
22300
22532
|
peg$currPos++;
|
|
22301
22533
|
} else {
|
|
22302
22534
|
s5 = peg$FAILED;
|
|
22303
22535
|
if (peg$silentFails === 0) {
|
|
22304
|
-
peg$fail(peg$
|
|
22536
|
+
peg$fail(peg$e17);
|
|
22305
22537
|
}
|
|
22306
22538
|
}
|
|
22307
22539
|
}
|
|
@@ -22310,7 +22542,7 @@ function peg$parse(input, options) {
|
|
|
22310
22542
|
s6 = peg$parseBlockTag();
|
|
22311
22543
|
if (s6 !== peg$FAILED) {
|
|
22312
22544
|
peg$savedPos = s0;
|
|
22313
|
-
s0 = peg$
|
|
22545
|
+
s0 = peg$f72(s2, s5);
|
|
22314
22546
|
} else {
|
|
22315
22547
|
peg$currPos = s0;
|
|
22316
22548
|
s0 = peg$FAILED;
|
|
@@ -22352,34 +22584,34 @@ function peg$parse(input, options) {
|
|
|
22352
22584
|
}
|
|
22353
22585
|
if (s2 !== peg$FAILED) {
|
|
22354
22586
|
if (input.charCodeAt(peg$currPos) === 58) {
|
|
22355
|
-
s3 = peg$
|
|
22587
|
+
s3 = peg$c6;
|
|
22356
22588
|
peg$currPos++;
|
|
22357
22589
|
} else {
|
|
22358
22590
|
s3 = peg$FAILED;
|
|
22359
22591
|
if (peg$silentFails === 0) {
|
|
22360
|
-
peg$fail(peg$
|
|
22592
|
+
peg$fail(peg$e9);
|
|
22361
22593
|
}
|
|
22362
22594
|
}
|
|
22363
22595
|
if (s3 !== peg$FAILED) {
|
|
22364
22596
|
s4 = [];
|
|
22365
22597
|
if (input.charCodeAt(peg$currPos) === 32) {
|
|
22366
|
-
s5 = peg$
|
|
22598
|
+
s5 = peg$c13;
|
|
22367
22599
|
peg$currPos++;
|
|
22368
22600
|
} else {
|
|
22369
22601
|
s5 = peg$FAILED;
|
|
22370
22602
|
if (peg$silentFails === 0) {
|
|
22371
|
-
peg$fail(peg$
|
|
22603
|
+
peg$fail(peg$e17);
|
|
22372
22604
|
}
|
|
22373
22605
|
}
|
|
22374
22606
|
while (s5 !== peg$FAILED) {
|
|
22375
22607
|
s4.push(s5);
|
|
22376
22608
|
if (input.charCodeAt(peg$currPos) === 32) {
|
|
22377
|
-
s5 = peg$
|
|
22609
|
+
s5 = peg$c13;
|
|
22378
22610
|
peg$currPos++;
|
|
22379
22611
|
} else {
|
|
22380
22612
|
s5 = peg$FAILED;
|
|
22381
22613
|
if (peg$silentFails === 0) {
|
|
22382
|
-
peg$fail(peg$
|
|
22614
|
+
peg$fail(peg$e17);
|
|
22383
22615
|
}
|
|
22384
22616
|
}
|
|
22385
22617
|
}
|
|
@@ -22388,7 +22620,7 @@ function peg$parse(input, options) {
|
|
|
22388
22620
|
s6 = peg$parseBlockTag();
|
|
22389
22621
|
if (s6 !== peg$FAILED) {
|
|
22390
22622
|
peg$savedPos = s0;
|
|
22391
|
-
s0 = peg$
|
|
22623
|
+
s0 = peg$f73(s2, s5);
|
|
22392
22624
|
} else {
|
|
22393
22625
|
peg$currPos = s0;
|
|
22394
22626
|
s0 = peg$FAILED;
|
|
@@ -22629,7 +22861,7 @@ function peg$parse(input, options) {
|
|
|
22629
22861
|
s3 = peg$parseBlockTag();
|
|
22630
22862
|
if (s3 !== peg$FAILED) {
|
|
22631
22863
|
peg$savedPos = s0;
|
|
22632
|
-
s0 = peg$
|
|
22864
|
+
s0 = peg$f74(s2);
|
|
22633
22865
|
} else {
|
|
22634
22866
|
peg$currPos = s0;
|
|
22635
22867
|
s0 = peg$FAILED;
|
|
@@ -22774,7 +23006,7 @@ function peg$parse(input, options) {
|
|
|
22774
23006
|
s7 = peg$parseBlockTag();
|
|
22775
23007
|
if (s7 !== peg$FAILED) {
|
|
22776
23008
|
peg$savedPos = s0;
|
|
22777
|
-
s0 = peg$
|
|
23009
|
+
s0 = peg$f75(s2, s3, s6);
|
|
22778
23010
|
} else {
|
|
22779
23011
|
peg$currPos = s0;
|
|
22780
23012
|
s0 = peg$FAILED;
|
|
@@ -22926,7 +23158,7 @@ function peg$parse(input, options) {
|
|
|
22926
23158
|
s6 = peg$parseBlockTag();
|
|
22927
23159
|
if (s6 !== peg$FAILED) {
|
|
22928
23160
|
peg$savedPos = s0;
|
|
22929
|
-
s0 = peg$
|
|
23161
|
+
s0 = peg$f76(s2, s5);
|
|
22930
23162
|
} else {
|
|
22931
23163
|
peg$currPos = s0;
|
|
22932
23164
|
s0 = peg$FAILED;
|
|
@@ -23012,7 +23244,7 @@ function peg$parse(input, options) {
|
|
|
23012
23244
|
s3 = peg$parseBlockTag();
|
|
23013
23245
|
if (s3 !== peg$FAILED) {
|
|
23014
23246
|
peg$savedPos = s0;
|
|
23015
|
-
s0 = peg$
|
|
23247
|
+
s0 = peg$f77(s2);
|
|
23016
23248
|
} else {
|
|
23017
23249
|
peg$currPos = s0;
|
|
23018
23250
|
s0 = peg$FAILED;
|
|
@@ -23090,7 +23322,7 @@ function peg$parse(input, options) {
|
|
|
23090
23322
|
s3 = peg$parseBlockTag();
|
|
23091
23323
|
if (s3 !== peg$FAILED) {
|
|
23092
23324
|
peg$savedPos = s0;
|
|
23093
|
-
s0 = peg$
|
|
23325
|
+
s0 = peg$f78(s2);
|
|
23094
23326
|
} else {
|
|
23095
23327
|
peg$currPos = s0;
|
|
23096
23328
|
s0 = peg$FAILED;
|
|
@@ -23169,7 +23401,7 @@ function peg$parse(input, options) {
|
|
|
23169
23401
|
if (s3 !== peg$FAILED) {
|
|
23170
23402
|
s4 = peg$parseMediaChain();
|
|
23171
23403
|
peg$savedPos = s0;
|
|
23172
|
-
s0 = peg$
|
|
23404
|
+
s0 = peg$f79(s2, s4);
|
|
23173
23405
|
} else {
|
|
23174
23406
|
peg$currPos = s0;
|
|
23175
23407
|
s0 = peg$FAILED;
|
|
@@ -23247,7 +23479,7 @@ function peg$parse(input, options) {
|
|
|
23247
23479
|
s3 = peg$parseBlockTag();
|
|
23248
23480
|
if (s3 !== peg$FAILED) {
|
|
23249
23481
|
peg$savedPos = s0;
|
|
23250
|
-
s0 = peg$
|
|
23482
|
+
s0 = peg$f80(s2);
|
|
23251
23483
|
} else {
|
|
23252
23484
|
peg$currPos = s0;
|
|
23253
23485
|
s0 = peg$FAILED;
|
|
@@ -23325,7 +23557,7 @@ function peg$parse(input, options) {
|
|
|
23325
23557
|
s3 = peg$parseBlockTag();
|
|
23326
23558
|
if (s3 !== peg$FAILED) {
|
|
23327
23559
|
peg$savedPos = s0;
|
|
23328
|
-
s0 = peg$
|
|
23560
|
+
s0 = peg$f81(s2);
|
|
23329
23561
|
} else {
|
|
23330
23562
|
peg$currPos = s0;
|
|
23331
23563
|
s0 = peg$FAILED;
|
|
@@ -23403,7 +23635,7 @@ function peg$parse(input, options) {
|
|
|
23403
23635
|
s3 = peg$parseBlockTag();
|
|
23404
23636
|
if (s3 !== peg$FAILED) {
|
|
23405
23637
|
peg$savedPos = s0;
|
|
23406
|
-
s0 = peg$
|
|
23638
|
+
s0 = peg$f82(s2);
|
|
23407
23639
|
} else {
|
|
23408
23640
|
peg$currPos = s0;
|
|
23409
23641
|
s0 = peg$FAILED;
|
|
@@ -23414,20 +23646,20 @@ function peg$parse(input, options) {
|
|
|
23414
23646
|
}
|
|
23415
23647
|
if (s0 === peg$FAILED) {
|
|
23416
23648
|
s0 = peg$currPos;
|
|
23417
|
-
if (input.substr(peg$currPos, 4) === peg$
|
|
23418
|
-
s1 = peg$
|
|
23649
|
+
if (input.substr(peg$currPos, 4) === peg$c5) {
|
|
23650
|
+
s1 = peg$c5;
|
|
23419
23651
|
peg$currPos += 4;
|
|
23420
23652
|
} else {
|
|
23421
23653
|
s1 = peg$FAILED;
|
|
23422
23654
|
if (peg$silentFails === 0) {
|
|
23423
|
-
peg$fail(peg$
|
|
23655
|
+
peg$fail(peg$e7);
|
|
23424
23656
|
}
|
|
23425
23657
|
}
|
|
23426
23658
|
if (s1 !== peg$FAILED) {
|
|
23427
23659
|
s2 = peg$parseBlockTag();
|
|
23428
23660
|
if (s2 !== peg$FAILED) {
|
|
23429
23661
|
peg$savedPos = s0;
|
|
23430
|
-
s0 = peg$
|
|
23662
|
+
s0 = peg$f83();
|
|
23431
23663
|
} else {
|
|
23432
23664
|
peg$currPos = s0;
|
|
23433
23665
|
s0 = peg$FAILED;
|
|
@@ -23505,7 +23737,7 @@ function peg$parse(input, options) {
|
|
|
23505
23737
|
s3 = peg$parseBlockTag();
|
|
23506
23738
|
if (s3 !== peg$FAILED) {
|
|
23507
23739
|
peg$savedPos = s0;
|
|
23508
|
-
s0 = peg$
|
|
23740
|
+
s0 = peg$f84(s2);
|
|
23509
23741
|
} else {
|
|
23510
23742
|
peg$currPos = s0;
|
|
23511
23743
|
s0 = peg$FAILED;
|
|
@@ -23529,7 +23761,7 @@ function peg$parse(input, options) {
|
|
|
23529
23761
|
s2 = peg$parseBlockTag();
|
|
23530
23762
|
if (s2 !== peg$FAILED) {
|
|
23531
23763
|
peg$savedPos = s0;
|
|
23532
|
-
s0 = peg$
|
|
23764
|
+
s0 = peg$f85();
|
|
23533
23765
|
} else {
|
|
23534
23766
|
peg$currPos = s0;
|
|
23535
23767
|
s0 = peg$FAILED;
|
|
@@ -23607,7 +23839,7 @@ function peg$parse(input, options) {
|
|
|
23607
23839
|
s3 = peg$parseBlockTag();
|
|
23608
23840
|
if (s3 !== peg$FAILED) {
|
|
23609
23841
|
peg$savedPos = s0;
|
|
23610
|
-
s0 = peg$
|
|
23842
|
+
s0 = peg$f86(s2);
|
|
23611
23843
|
} else {
|
|
23612
23844
|
peg$currPos = s0;
|
|
23613
23845
|
s0 = peg$FAILED;
|
|
@@ -23709,7 +23941,7 @@ function peg$parse(input, options) {
|
|
|
23709
23941
|
s3 = peg$parseBlockTag();
|
|
23710
23942
|
if (s3 !== peg$FAILED) {
|
|
23711
23943
|
peg$savedPos = s0;
|
|
23712
|
-
s0 = peg$
|
|
23944
|
+
s0 = peg$f87(s2);
|
|
23713
23945
|
} else {
|
|
23714
23946
|
peg$currPos = s0;
|
|
23715
23947
|
s0 = peg$FAILED;
|
|
@@ -23739,7 +23971,7 @@ function peg$parse(input, options) {
|
|
|
23739
23971
|
s3 = peg$parseBlockTag();
|
|
23740
23972
|
if (s3 !== peg$FAILED) {
|
|
23741
23973
|
peg$savedPos = s0;
|
|
23742
|
-
s0 = peg$
|
|
23974
|
+
s0 = peg$f88(s2);
|
|
23743
23975
|
} else {
|
|
23744
23976
|
peg$currPos = s0;
|
|
23745
23977
|
s0 = peg$FAILED;
|
|
@@ -23821,7 +24053,7 @@ function peg$parse(input, options) {
|
|
|
23821
24053
|
s3 = peg$parseBlockTag();
|
|
23822
24054
|
if (s3 !== peg$FAILED) {
|
|
23823
24055
|
peg$savedPos = s0;
|
|
23824
|
-
s0 = peg$
|
|
24056
|
+
s0 = peg$f89(s2);
|
|
23825
24057
|
} else {
|
|
23826
24058
|
peg$currPos = s0;
|
|
23827
24059
|
s0 = peg$FAILED;
|
|
@@ -23837,7 +24069,7 @@ function peg$parse(input, options) {
|
|
|
23837
24069
|
s2 = peg$parseBlockTag();
|
|
23838
24070
|
if (s2 !== peg$FAILED) {
|
|
23839
24071
|
peg$savedPos = s0;
|
|
23840
|
-
s0 = peg$
|
|
24072
|
+
s0 = peg$f90(s1);
|
|
23841
24073
|
} else {
|
|
23842
24074
|
peg$currPos = s0;
|
|
23843
24075
|
s0 = peg$FAILED;
|
|
@@ -23915,7 +24147,7 @@ function peg$parse(input, options) {
|
|
|
23915
24147
|
s3 = peg$parseBlockTag();
|
|
23916
24148
|
if (s3 !== peg$FAILED) {
|
|
23917
24149
|
peg$savedPos = s0;
|
|
23918
|
-
s0 = peg$
|
|
24150
|
+
s0 = peg$f91(s2);
|
|
23919
24151
|
} else {
|
|
23920
24152
|
peg$currPos = s0;
|
|
23921
24153
|
s0 = peg$FAILED;
|
|
@@ -24021,7 +24253,7 @@ function peg$parse(input, options) {
|
|
|
24021
24253
|
}
|
|
24022
24254
|
s2 = input.substring(s2, peg$currPos);
|
|
24023
24255
|
peg$savedPos = s0;
|
|
24024
|
-
s0 = peg$
|
|
24256
|
+
s0 = peg$f92(s2);
|
|
24025
24257
|
} else {
|
|
24026
24258
|
peg$currPos = s0;
|
|
24027
24259
|
s0 = peg$FAILED;
|
|
@@ -24731,7 +24963,7 @@ function peg$parse(input, options) {
|
|
|
24731
24963
|
s0 = peg$currPos;
|
|
24732
24964
|
s1 = peg$parsebitmarkMinusMinusString();
|
|
24733
24965
|
peg$savedPos = s0;
|
|
24734
|
-
s1 = peg$
|
|
24966
|
+
s1 = peg$f93(s1);
|
|
24735
24967
|
s0 = s1;
|
|
24736
24968
|
peg$silentFails--;
|
|
24737
24969
|
return s0;
|
|
@@ -24757,7 +24989,7 @@ function peg$parse(input, options) {
|
|
|
24757
24989
|
}
|
|
24758
24990
|
}
|
|
24759
24991
|
peg$savedPos = s0;
|
|
24760
|
-
s0 = peg$
|
|
24992
|
+
s0 = peg$f94(s1, s2);
|
|
24761
24993
|
peg$silentFails--;
|
|
24762
24994
|
return s0;
|
|
24763
24995
|
}
|
|
@@ -24767,7 +24999,7 @@ function peg$parse(input, options) {
|
|
|
24767
24999
|
s1 = peg$parseNL();
|
|
24768
25000
|
if (s1 !== peg$FAILED) {
|
|
24769
25001
|
peg$savedPos = s0;
|
|
24770
|
-
s1 = peg$
|
|
25002
|
+
s1 = peg$f95();
|
|
24771
25003
|
}
|
|
24772
25004
|
s0 = s1;
|
|
24773
25005
|
if (s0 === peg$FAILED) {
|
|
@@ -24896,7 +25128,7 @@ function peg$parse(input, options) {
|
|
|
24896
25128
|
}
|
|
24897
25129
|
if (s1 !== peg$FAILED) {
|
|
24898
25130
|
peg$savedPos = s0;
|
|
24899
|
-
s1 = peg$
|
|
25131
|
+
s1 = peg$f96(s1);
|
|
24900
25132
|
}
|
|
24901
25133
|
s0 = s1;
|
|
24902
25134
|
}
|
|
@@ -25069,7 +25301,7 @@ function peg$parse(input, options) {
|
|
|
25069
25301
|
} else {
|
|
25070
25302
|
s4 = peg$FAILED;
|
|
25071
25303
|
if (peg$silentFails === 0) {
|
|
25072
|
-
peg$fail(peg$
|
|
25304
|
+
peg$fail(peg$e16);
|
|
25073
25305
|
}
|
|
25074
25306
|
}
|
|
25075
25307
|
if (s4 !== peg$FAILED) {
|
|
@@ -25081,7 +25313,7 @@ function peg$parse(input, options) {
|
|
|
25081
25313
|
} else {
|
|
25082
25314
|
s4 = peg$FAILED;
|
|
25083
25315
|
if (peg$silentFails === 0) {
|
|
25084
|
-
peg$fail(peg$
|
|
25316
|
+
peg$fail(peg$e16);
|
|
25085
25317
|
}
|
|
25086
25318
|
}
|
|
25087
25319
|
}
|
|
@@ -25097,7 +25329,7 @@ function peg$parse(input, options) {
|
|
|
25097
25329
|
s3 = peg$parseBodyBitCloseTag();
|
|
25098
25330
|
if (s3 !== peg$FAILED) {
|
|
25099
25331
|
peg$savedPos = s0;
|
|
25100
|
-
s0 = peg$
|
|
25332
|
+
s0 = peg$f97(s2);
|
|
25101
25333
|
} else {
|
|
25102
25334
|
peg$currPos = s0;
|
|
25103
25335
|
s0 = peg$FAILED;
|
|
@@ -25187,7 +25419,7 @@ function peg$parse(input, options) {
|
|
|
25187
25419
|
s3 = peg$parseBoldTag();
|
|
25188
25420
|
if (s3 !== peg$FAILED) {
|
|
25189
25421
|
peg$savedPos = s0;
|
|
25190
|
-
s0 = peg$
|
|
25422
|
+
s0 = peg$f98(s2);
|
|
25191
25423
|
} else {
|
|
25192
25424
|
peg$currPos = s0;
|
|
25193
25425
|
s0 = peg$FAILED;
|
|
@@ -25273,7 +25505,7 @@ function peg$parse(input, options) {
|
|
|
25273
25505
|
s3 = peg$parseItalicTag();
|
|
25274
25506
|
if (s3 !== peg$FAILED) {
|
|
25275
25507
|
peg$savedPos = s0;
|
|
25276
|
-
s0 = peg$
|
|
25508
|
+
s0 = peg$f99(s2);
|
|
25277
25509
|
} else {
|
|
25278
25510
|
peg$currPos = s0;
|
|
25279
25511
|
s0 = peg$FAILED;
|
|
@@ -25359,7 +25591,7 @@ function peg$parse(input, options) {
|
|
|
25359
25591
|
s3 = peg$parseLightTag();
|
|
25360
25592
|
if (s3 !== peg$FAILED) {
|
|
25361
25593
|
peg$savedPos = s0;
|
|
25362
|
-
s0 = peg$
|
|
25594
|
+
s0 = peg$f100(s2);
|
|
25363
25595
|
} else {
|
|
25364
25596
|
peg$currPos = s0;
|
|
25365
25597
|
s0 = peg$FAILED;
|
|
@@ -25445,7 +25677,7 @@ function peg$parse(input, options) {
|
|
|
25445
25677
|
s3 = peg$parseHighlightTag();
|
|
25446
25678
|
if (s3 !== peg$FAILED) {
|
|
25447
25679
|
peg$savedPos = s0;
|
|
25448
|
-
s0 = peg$
|
|
25680
|
+
s0 = peg$f101(s2);
|
|
25449
25681
|
} else {
|
|
25450
25682
|
peg$currPos = s0;
|
|
25451
25683
|
s0 = peg$FAILED;
|
|
@@ -25831,7 +26063,7 @@ function peg$parse(input, options) {
|
|
|
25831
26063
|
}
|
|
25832
26064
|
s2 = input.substring(s2, peg$currPos);
|
|
25833
26065
|
peg$savedPos = s0;
|
|
25834
|
-
s0 = peg$
|
|
26066
|
+
s0 = peg$f102(s1, s2);
|
|
25835
26067
|
} else {
|
|
25836
26068
|
peg$currPos = s0;
|
|
25837
26069
|
s0 = peg$FAILED;
|
|
@@ -25852,7 +26084,17 @@ function peg$parse(input, options) {
|
|
|
25852
26084
|
return s0;
|
|
25853
26085
|
}
|
|
25854
26086
|
var indentStack = [], indent = "";
|
|
25855
|
-
input = input.
|
|
26087
|
+
input = input.replace(/\s+$/, "");
|
|
26088
|
+
var _firstNonWs = input.search(/\S/);
|
|
26089
|
+
if (_firstNonWs < 0) {
|
|
26090
|
+
input = "";
|
|
26091
|
+
} else {
|
|
26092
|
+
var _lineStart = input.lastIndexOf("\n", _firstNonWs) + 1;
|
|
26093
|
+
var _lead = input.slice(_lineStart, _firstNonWs);
|
|
26094
|
+
var _rest = input.slice(_firstNonWs);
|
|
26095
|
+
var _isIndentedListItem = /^\t+$/.test(_lead) && /^•([0-9]+[Ii]?|_|[Aa]|\+|-)? /.test(_rest);
|
|
26096
|
+
input = _isIndentedListItem ? _lead + _rest : _rest;
|
|
26097
|
+
}
|
|
25856
26098
|
peg$result = peg$startRuleFunction();
|
|
25857
26099
|
const peg$success = peg$result !== peg$FAILED && peg$currPos === input.length;
|
|
25858
26100
|
function peg$throw() {
|
|
@@ -25946,14 +26188,13 @@ var TextParser = class {
|
|
|
25946
26188
|
*/
|
|
25947
26189
|
toAst(text, options) {
|
|
25948
26190
|
if (Array.isArray(text)) return text;
|
|
25949
|
-
|
|
26191
|
+
const str = text ?? "";
|
|
25950
26192
|
if (!str) return [];
|
|
25951
26193
|
const opts = Object.assign({}, options);
|
|
25952
26194
|
let startRule = "bitmarkPlusPlus";
|
|
25953
26195
|
if (opts.location === TextLocation.tag) {
|
|
25954
26196
|
startRule = "bitmarkPlus";
|
|
25955
26197
|
}
|
|
25956
|
-
str = str.trim();
|
|
25957
26198
|
return parse(str, {
|
|
25958
26199
|
startRule
|
|
25959
26200
|
});
|
|
@@ -27993,6 +28234,12 @@ var Builder = class extends BaseBuilder {
|
|
|
27993
28234
|
options
|
|
27994
28235
|
),
|
|
27995
28236
|
sourceBB: this.normaliseSourceBB(data.sourceBB),
|
|
28237
|
+
bitFingerprint: this.toAstProperty(
|
|
28238
|
+
bitType,
|
|
28239
|
+
ConfigKey.property_bitFingerprint,
|
|
28240
|
+
data.bitFingerprint,
|
|
28241
|
+
options
|
|
28242
|
+
),
|
|
27996
28243
|
levelCEFRp: this.toAstProperty(
|
|
27997
28244
|
bitType,
|
|
27998
28245
|
ConfigKey.property_levelCEFRp,
|
|
@@ -29425,6 +29672,7 @@ var Builder = class extends BaseBuilder {
|
|
|
29425
29672
|
if (!data) return void 0;
|
|
29426
29673
|
let isExample = false;
|
|
29427
29674
|
for (const c of data.cells || []) {
|
|
29675
|
+
if (!c) continue;
|
|
29428
29676
|
if (data.__isDefaultExample && !c.isExample) {
|
|
29429
29677
|
c.isExample = true;
|
|
29430
29678
|
}
|