@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/cli/main.js
CHANGED
|
@@ -1269,6 +1269,7 @@ var propertyKeys = {
|
|
|
1269
1269
|
property_bubbleTag: "@bubbleTag",
|
|
1270
1270
|
property_extractorTag: "@extractorTag",
|
|
1271
1271
|
property_extractorInternal: "@extractorInternal",
|
|
1272
|
+
property_bitFingerprint: "@bitFingerprint",
|
|
1272
1273
|
property_buttonCaption: "@buttonCaption",
|
|
1273
1274
|
property_callToActionUrl: "@callToActionUrl",
|
|
1274
1275
|
property_caption: "@caption",
|
|
@@ -4552,6 +4553,12 @@ var GROUPS = {
|
|
|
4552
4553
|
format: TagFormat.coordinates,
|
|
4553
4554
|
maxCount: Count.infinity
|
|
4554
4555
|
},
|
|
4556
|
+
{
|
|
4557
|
+
key: ConfigKey.property_bitFingerprint,
|
|
4558
|
+
description: "Fingerprint(s) used by the AI extractor to identify the bit (font, style, color, pixels, etc.)",
|
|
4559
|
+
format: TagFormat.plainText,
|
|
4560
|
+
maxCount: Count.infinity
|
|
4561
|
+
},
|
|
4555
4562
|
{
|
|
4556
4563
|
key: ConfigKey.property_levelCEFRp,
|
|
4557
4564
|
description: "The CEFRp level for the bit",
|
|
@@ -10145,7 +10152,18 @@ var BITS = {
|
|
|
10145
10152
|
since: "5.12.0",
|
|
10146
10153
|
baseBitType: BitType._standard,
|
|
10147
10154
|
description: "Extractor blueprint bit, used to provide blueprint information about extractors",
|
|
10148
|
-
textFormatDefault: TextFormat.json
|
|
10155
|
+
textFormatDefault: TextFormat.json,
|
|
10156
|
+
tags: [
|
|
10157
|
+
{
|
|
10158
|
+
key: ConfigKey.group_resourceBitTags,
|
|
10159
|
+
description: "Resource bit tags for the blueprint reference image"
|
|
10160
|
+
},
|
|
10161
|
+
{
|
|
10162
|
+
key: ConfigKey.group_resourceImage,
|
|
10163
|
+
description: "Optional uncropped reference page image, used so authoring tools can compute crops against the original page dimensions"
|
|
10164
|
+
}
|
|
10165
|
+
],
|
|
10166
|
+
resourceAttachmentAllowed: false
|
|
10149
10167
|
},
|
|
10150
10168
|
[BitType.extractorInformation]: {
|
|
10151
10169
|
since: "3.8.0",
|
|
@@ -13843,7 +13861,7 @@ var instance2 = new Config();
|
|
|
13843
13861
|
// src/generated/package_info.ts
|
|
13844
13862
|
var PACKAGE_INFO = {
|
|
13845
13863
|
"name": "@gmb/bitmark-parser-generator",
|
|
13846
|
-
"version": "5.
|
|
13864
|
+
"version": "5.30.0",
|
|
13847
13865
|
"license": "ISC"};
|
|
13848
13866
|
var Environment = {
|
|
13849
13867
|
unknown: "",
|
|
@@ -14224,6 +14242,8 @@ var NodeType = {
|
|
|
14224
14242
|
// bit
|
|
14225
14243
|
bitType: "bitType",
|
|
14226
14244
|
// bit type
|
|
14245
|
+
bitFingerprint: "bitFingerprint",
|
|
14246
|
+
bitFingerprintValue: "bitFingerprintValue",
|
|
14227
14247
|
blockId: "blockId",
|
|
14228
14248
|
blockIdValue: "blockIdValue",
|
|
14229
14249
|
body: "body",
|
|
@@ -16808,26 +16828,26 @@ function peg$parse(input, options) {
|
|
|
16808
16828
|
bitmarkMinusMinusString: peg$parsebitmarkMinusMinusString
|
|
16809
16829
|
};
|
|
16810
16830
|
let peg$startRuleFunction = peg$parseversion;
|
|
16811
|
-
const peg$c0 = "
|
|
16812
|
-
const peg$c1 = "
|
|
16813
|
-
const peg$c2 = "
|
|
16814
|
-
const peg$c3 = "
|
|
16815
|
-
const peg$c4 = "
|
|
16816
|
-
const peg$c5 = "
|
|
16817
|
-
const peg$c6 = "
|
|
16818
|
-
const peg$c7 = "bitmark
|
|
16819
|
-
const peg$c8 = "
|
|
16820
|
-
const peg$c9 = "
|
|
16821
|
-
const peg$c10 = "\
|
|
16822
|
-
const peg$c11 = "\
|
|
16823
|
-
const peg$c12 = "
|
|
16824
|
-
const peg$c13 = "
|
|
16825
|
-
const peg$c14 = "
|
|
16826
|
-
const peg$c15 = "
|
|
16827
|
-
const peg$c16 = "\
|
|
16828
|
-
const peg$c17 = "\
|
|
16829
|
-
const peg$c18 = "\u2022
|
|
16830
|
-
const peg$c19 = "
|
|
16831
|
+
const peg$c0 = " ";
|
|
16832
|
+
const peg$c1 = "|";
|
|
16833
|
+
const peg$c2 = "### ";
|
|
16834
|
+
const peg$c3 = "## ";
|
|
16835
|
+
const peg$c4 = "# ";
|
|
16836
|
+
const peg$c5 = "code";
|
|
16837
|
+
const peg$c6 = ":";
|
|
16838
|
+
const peg$c7 = "bitmark++";
|
|
16839
|
+
const peg$c8 = "bitmark--";
|
|
16840
|
+
const peg$c9 = "JavaScript";
|
|
16841
|
+
const peg$c10 = "\u2022 ";
|
|
16842
|
+
const peg$c11 = "\u2022_ ";
|
|
16843
|
+
const peg$c12 = "\u2022";
|
|
16844
|
+
const peg$c13 = " ";
|
|
16845
|
+
const peg$c14 = "I ";
|
|
16846
|
+
const peg$c15 = "i ";
|
|
16847
|
+
const peg$c16 = "\u2022A ";
|
|
16848
|
+
const peg$c17 = "\u2022a ";
|
|
16849
|
+
const peg$c18 = "\u2022+ ";
|
|
16850
|
+
const peg$c19 = "\u2022- ";
|
|
16831
16851
|
const peg$c20 = "image";
|
|
16832
16852
|
const peg$c21 = "#";
|
|
16833
16853
|
const peg$c22 = "@";
|
|
@@ -16959,28 +16979,28 @@ function peg$parse(input, options) {
|
|
|
16959
16979
|
const peg$r4 = /^[!#-;=?-[\]-_a-{}-~]/;
|
|
16960
16980
|
const peg$e0 = peg$anyExpectation();
|
|
16961
16981
|
const peg$e1 = peg$otherExpectation("StyledText");
|
|
16962
|
-
const peg$e2 = peg$literalExpectation("
|
|
16963
|
-
const peg$e3 = peg$literalExpectation("
|
|
16964
|
-
const peg$e4 = peg$literalExpectation("
|
|
16965
|
-
const peg$e5 = peg$literalExpectation("
|
|
16966
|
-
const peg$e6 = peg$literalExpectation("
|
|
16967
|
-
const peg$e7 = peg$
|
|
16968
|
-
const peg$e8 = peg$
|
|
16969
|
-
const peg$e9 = peg$literalExpectation("
|
|
16970
|
-
const peg$e10 = peg$literalExpectation("bitmark
|
|
16971
|
-
const peg$e11 = peg$literalExpectation("
|
|
16972
|
-
const peg$e12 = peg$literalExpectation("
|
|
16973
|
-
const peg$e13 = peg$literalExpectation("\
|
|
16974
|
-
const peg$e14 = peg$literalExpectation("\
|
|
16975
|
-
const peg$e15 = peg$
|
|
16976
|
-
const peg$e16 = peg$
|
|
16977
|
-
const peg$e17 = peg$literalExpectation("
|
|
16978
|
-
const peg$e18 = peg$literalExpectation("
|
|
16979
|
-
const peg$e19 = peg$literalExpectation("
|
|
16980
|
-
const peg$e20 = peg$literalExpectation("\
|
|
16981
|
-
const peg$e21 = peg$literalExpectation("\
|
|
16982
|
-
const peg$e22 = peg$literalExpectation("\u2022
|
|
16983
|
-
const peg$e23 = peg$literalExpectation("
|
|
16982
|
+
const peg$e2 = peg$literalExpectation(" ", false);
|
|
16983
|
+
const peg$e3 = peg$literalExpectation("|", false);
|
|
16984
|
+
const peg$e4 = peg$literalExpectation("### ", false);
|
|
16985
|
+
const peg$e5 = peg$literalExpectation("## ", false);
|
|
16986
|
+
const peg$e6 = peg$literalExpectation("# ", false);
|
|
16987
|
+
const peg$e7 = peg$literalExpectation("code", false);
|
|
16988
|
+
const peg$e8 = peg$classExpectation([" ", " "], false, false, false);
|
|
16989
|
+
const peg$e9 = peg$literalExpectation(":", false);
|
|
16990
|
+
const peg$e10 = peg$literalExpectation("bitmark++", false);
|
|
16991
|
+
const peg$e11 = peg$literalExpectation("bitmark--", false);
|
|
16992
|
+
const peg$e12 = peg$literalExpectation("JavaScript", false);
|
|
16993
|
+
const peg$e13 = peg$literalExpectation("\u2022 ", false);
|
|
16994
|
+
const peg$e14 = peg$literalExpectation("\u2022_ ", false);
|
|
16995
|
+
const peg$e15 = peg$literalExpectation("\u2022", false);
|
|
16996
|
+
const peg$e16 = peg$classExpectation([["0", "9"]], false, false, false);
|
|
16997
|
+
const peg$e17 = peg$literalExpectation(" ", false);
|
|
16998
|
+
const peg$e18 = peg$literalExpectation("I ", false);
|
|
16999
|
+
const peg$e19 = peg$literalExpectation("i ", false);
|
|
17000
|
+
const peg$e20 = peg$literalExpectation("\u2022A ", false);
|
|
17001
|
+
const peg$e21 = peg$literalExpectation("\u2022a ", false);
|
|
17002
|
+
const peg$e22 = peg$literalExpectation("\u2022+ ", false);
|
|
17003
|
+
const peg$e23 = peg$literalExpectation("\u2022- ", false);
|
|
16984
17004
|
const peg$e24 = peg$literalExpectation("image", false);
|
|
16985
17005
|
const peg$e25 = peg$literalExpectation("#", false);
|
|
16986
17006
|
const peg$e26 = peg$literalExpectation("@", false);
|
|
@@ -17156,15 +17176,14 @@ function peg$parse(input, options) {
|
|
|
17156
17176
|
function peg$f13(t) {
|
|
17157
17177
|
return t;
|
|
17158
17178
|
}
|
|
17159
|
-
function peg$f14(
|
|
17160
|
-
return
|
|
17179
|
+
function peg$f14(b) {
|
|
17180
|
+
return b;
|
|
17161
17181
|
}
|
|
17162
17182
|
function peg$f15(c, bl) {
|
|
17163
17183
|
return { ...c, content: bl, attrs: {} };
|
|
17164
17184
|
}
|
|
17165
17185
|
function peg$f16(c, bl) {
|
|
17166
|
-
|
|
17167
|
-
return { ...c, attrs: { start }, content: bl };
|
|
17186
|
+
return { ...c, content: bl, attrs: {} };
|
|
17168
17187
|
}
|
|
17169
17188
|
function peg$f17(c, bl) {
|
|
17170
17189
|
let start = bl[0]._tempListStart;
|
|
@@ -17175,7 +17194,8 @@ function peg$parse(input, options) {
|
|
|
17175
17194
|
return { ...c, attrs: { start }, content: bl };
|
|
17176
17195
|
}
|
|
17177
17196
|
function peg$f19(c, bl) {
|
|
17178
|
-
|
|
17197
|
+
let start = bl[0]._tempListStart;
|
|
17198
|
+
return { ...c, attrs: { start }, content: bl };
|
|
17179
17199
|
}
|
|
17180
17200
|
function peg$f20(c, bl) {
|
|
17181
17201
|
return { ...c, content: bl, attrs: {} };
|
|
@@ -17183,34 +17203,41 @@ function peg$parse(input, options) {
|
|
|
17183
17203
|
function peg$f21(c, bl) {
|
|
17184
17204
|
return { ...c, content: bl, attrs: {} };
|
|
17185
17205
|
}
|
|
17186
|
-
function peg$f22() {
|
|
17206
|
+
function peg$f22(c, bl) {
|
|
17207
|
+
return { ...c, content: bl, attrs: {} };
|
|
17208
|
+
}
|
|
17209
|
+
function peg$f23(i) {
|
|
17210
|
+
indentStack = [];
|
|
17211
|
+
indent = i.join("");
|
|
17212
|
+
}
|
|
17213
|
+
function peg$f24() {
|
|
17187
17214
|
return { type: "bulletList" };
|
|
17188
17215
|
}
|
|
17189
|
-
function peg$
|
|
17216
|
+
function peg$f25() {
|
|
17190
17217
|
return { type: "noBulletList" };
|
|
17191
17218
|
}
|
|
17192
|
-
function peg$
|
|
17219
|
+
function peg$f26() {
|
|
17193
17220
|
return { type: "orderedList" };
|
|
17194
17221
|
}
|
|
17195
|
-
function peg$
|
|
17222
|
+
function peg$f27() {
|
|
17196
17223
|
return { type: "orderedListRoman" };
|
|
17197
17224
|
}
|
|
17198
|
-
function peg$
|
|
17225
|
+
function peg$f28() {
|
|
17199
17226
|
return { type: "orderedListRomanLower" };
|
|
17200
17227
|
}
|
|
17201
|
-
function peg$
|
|
17228
|
+
function peg$f29() {
|
|
17202
17229
|
return { type: "letteredList" };
|
|
17203
17230
|
}
|
|
17204
|
-
function peg$
|
|
17231
|
+
function peg$f30() {
|
|
17205
17232
|
return { type: "letteredListLower" };
|
|
17206
17233
|
}
|
|
17207
|
-
function peg$
|
|
17234
|
+
function peg$f31() {
|
|
17208
17235
|
return { type: "taskList" };
|
|
17209
17236
|
}
|
|
17210
|
-
function peg$
|
|
17237
|
+
function peg$f32(lt, listItem, lines, c) {
|
|
17211
17238
|
return c;
|
|
17212
17239
|
}
|
|
17213
|
-
function peg$
|
|
17240
|
+
function peg$f33(lt, listItem, lines, children) {
|
|
17214
17241
|
let _tempParsingParent = "bulletList";
|
|
17215
17242
|
const matchOrdered = lt.match(/•([0-9]+)([Ii]?) /);
|
|
17216
17243
|
let start = 1;
|
|
@@ -17279,36 +17306,36 @@ function peg$parse(input, options) {
|
|
|
17279
17306
|
return { type: t, content, _tempParsingParent, _tempListStart };
|
|
17280
17307
|
}
|
|
17281
17308
|
}
|
|
17282
|
-
function peg$
|
|
17309
|
+
function peg$f34(ll) {
|
|
17283
17310
|
return ll;
|
|
17284
17311
|
}
|
|
17285
|
-
function peg$
|
|
17312
|
+
function peg$f35(i) {
|
|
17286
17313
|
return i.join("") === indent;
|
|
17287
17314
|
}
|
|
17288
|
-
function peg$
|
|
17315
|
+
function peg$f36(i) {
|
|
17289
17316
|
return i.length > indent.length;
|
|
17290
17317
|
}
|
|
17291
|
-
function peg$
|
|
17318
|
+
function peg$f37(i) {
|
|
17292
17319
|
indentStack.push(indent);
|
|
17293
17320
|
indent = i.join("");
|
|
17294
17321
|
}
|
|
17295
|
-
function peg$
|
|
17322
|
+
function peg$f38() {
|
|
17296
17323
|
indent = indentStack.pop();
|
|
17297
17324
|
return true;
|
|
17298
17325
|
}
|
|
17299
|
-
function peg$
|
|
17326
|
+
function peg$f39(body) {
|
|
17300
17327
|
return { type: "paragraph", content: bitmarkPlusString(body.trim()), attrs: {} };
|
|
17301
17328
|
}
|
|
17302
|
-
function peg$
|
|
17329
|
+
function peg$f40(body) {
|
|
17303
17330
|
return { type: "paragraph", content: bitmarkPlusString(body.trim()), attrs: {} };
|
|
17304
17331
|
}
|
|
17305
|
-
function peg$
|
|
17332
|
+
function peg$f41(body) {
|
|
17306
17333
|
return { type: "paragraph", content: bitmarkPlusString(body.trim()), attrs: {} };
|
|
17307
17334
|
}
|
|
17308
|
-
function peg$
|
|
17335
|
+
function peg$f42(t) {
|
|
17309
17336
|
return t;
|
|
17310
17337
|
}
|
|
17311
|
-
function peg$
|
|
17338
|
+
function peg$f43(t, u, ch) {
|
|
17312
17339
|
const chain = Object.assign({}, ...ch);
|
|
17313
17340
|
let imageAlignment_ = chain.alignment || "center";
|
|
17314
17341
|
delete chain.alignment;
|
|
@@ -17337,185 +17364,185 @@ function peg$parse(input, options) {
|
|
|
17337
17364
|
};
|
|
17338
17365
|
return image;
|
|
17339
17366
|
}
|
|
17340
|
-
function peg$
|
|
17367
|
+
function peg$f44(ch) {
|
|
17341
17368
|
return ch;
|
|
17342
17369
|
}
|
|
17343
|
-
function peg$
|
|
17370
|
+
function peg$f45(str) {
|
|
17344
17371
|
return { comment: str.trim() };
|
|
17345
17372
|
}
|
|
17346
|
-
function peg$
|
|
17373
|
+
function peg$f46(p, v) {
|
|
17347
17374
|
return { [p]: parseInt(v) };
|
|
17348
17375
|
}
|
|
17349
|
-
function peg$
|
|
17376
|
+
function peg$f47(p, v) {
|
|
17350
17377
|
return { [p]: v.trim() };
|
|
17351
17378
|
}
|
|
17352
|
-
function peg$
|
|
17379
|
+
function peg$f48(p, v) {
|
|
17353
17380
|
return { [p]: v };
|
|
17354
17381
|
}
|
|
17355
|
-
function peg$
|
|
17382
|
+
function peg$f49(p, v) {
|
|
17356
17383
|
return { [p]: v };
|
|
17357
17384
|
}
|
|
17358
|
-
function peg$
|
|
17385
|
+
function peg$f50(p) {
|
|
17359
17386
|
return { [p]: true };
|
|
17360
17387
|
}
|
|
17361
|
-
function peg$
|
|
17388
|
+
function peg$f51() {
|
|
17362
17389
|
return;
|
|
17363
17390
|
}
|
|
17364
|
-
function peg$
|
|
17391
|
+
function peg$f52(p) {
|
|
17365
17392
|
return { error: "Found unknown property or invalid value: " + p };
|
|
17366
17393
|
}
|
|
17367
|
-
function peg$
|
|
17394
|
+
function peg$f53(bs) {
|
|
17368
17395
|
return [{ type: "paragraph", content: bs, attrs: {} }];
|
|
17369
17396
|
}
|
|
17370
|
-
function peg$
|
|
17397
|
+
function peg$f54(first, more) {
|
|
17371
17398
|
const cleaned_ = cleanEmptyTextNodes(first ? [first, ...more.flat()] : more.flat());
|
|
17372
17399
|
return cleaned_;
|
|
17373
17400
|
}
|
|
17374
|
-
function peg$
|
|
17401
|
+
function peg$f55() {
|
|
17375
17402
|
return { "type": "hardBreak" };
|
|
17376
17403
|
}
|
|
17377
|
-
function peg$
|
|
17404
|
+
function peg$f56(t) {
|
|
17378
17405
|
return { text: unbreakscape(t), type: "text" };
|
|
17379
17406
|
}
|
|
17380
|
-
function peg$
|
|
17407
|
+
function peg$f57(t) {
|
|
17381
17408
|
return { index: +t, type: "bit" };
|
|
17382
17409
|
}
|
|
17383
|
-
function peg$
|
|
17410
|
+
function peg$f58(t) {
|
|
17384
17411
|
return { attrs: { formula: unbreakscape(t) }, type: "latex" };
|
|
17385
17412
|
}
|
|
17386
|
-
function peg$
|
|
17413
|
+
function peg$f59(alt, u, ch) {
|
|
17387
17414
|
return { attrs: { alt, src: (u.pr + u.t).trim(), ...Object.assign({}, ...ch), zoomDisabled: true }, type: "imageInline" };
|
|
17388
17415
|
}
|
|
17389
|
-
function peg$
|
|
17416
|
+
function peg$f60(t, marks) {
|
|
17390
17417
|
if (!marks) marks = [];
|
|
17391
17418
|
return { marks, text: unbreakscape(t), type: "text" };
|
|
17392
17419
|
}
|
|
17393
|
-
function peg$
|
|
17420
|
+
function peg$f61(t) {
|
|
17394
17421
|
return { marks: [{ type: "bold" }], text: unbreakscape(t), type: "text" };
|
|
17395
17422
|
}
|
|
17396
|
-
function peg$
|
|
17423
|
+
function peg$f62(t) {
|
|
17397
17424
|
return { marks: [{ type: "italic" }], text: unbreakscape(t), type: "text" };
|
|
17398
17425
|
}
|
|
17399
|
-
function peg$
|
|
17426
|
+
function peg$f63(t) {
|
|
17400
17427
|
return { marks: [{ type: "light" }], text: unbreakscape(t), type: "text" };
|
|
17401
17428
|
}
|
|
17402
|
-
function peg$
|
|
17429
|
+
function peg$f64(t) {
|
|
17403
17430
|
return { marks: [{ type: "highlight" }], text: unbreakscape(t), type: "text" };
|
|
17404
17431
|
}
|
|
17405
|
-
function peg$
|
|
17432
|
+
function peg$f65(u) {
|
|
17406
17433
|
return { marks: [{ type: "link", attrs: { href: (u.pr + u.t).trim(), target: "_blank" } }], text: u.t, type: "text" };
|
|
17407
17434
|
}
|
|
17408
|
-
function peg$
|
|
17435
|
+
function peg$f66(ch) {
|
|
17409
17436
|
return ch;
|
|
17410
17437
|
}
|
|
17411
|
-
function peg$
|
|
17438
|
+
function peg$f67(ch) {
|
|
17412
17439
|
return ch;
|
|
17413
17440
|
}
|
|
17414
|
-
function peg$
|
|
17441
|
+
function peg$f68(str) {
|
|
17415
17442
|
return { comment: str };
|
|
17416
17443
|
}
|
|
17417
|
-
function peg$
|
|
17444
|
+
function peg$f69(p, v) {
|
|
17418
17445
|
return { [p]: v };
|
|
17419
17446
|
}
|
|
17420
|
-
function peg$
|
|
17447
|
+
function peg$f70(p, v) {
|
|
17421
17448
|
return { [p]: parseInt(v) };
|
|
17422
17449
|
}
|
|
17423
|
-
function peg$
|
|
17450
|
+
function peg$f71(p, v) {
|
|
17424
17451
|
return { type: "error", msg: p + " must be a positive integer.", found: v };
|
|
17425
17452
|
}
|
|
17426
|
-
function peg$
|
|
17453
|
+
function peg$f72(p, v) {
|
|
17427
17454
|
return { [p]: v };
|
|
17428
17455
|
}
|
|
17429
|
-
function peg$
|
|
17456
|
+
function peg$f73(p, v) {
|
|
17430
17457
|
return { [p]: v };
|
|
17431
17458
|
}
|
|
17432
|
-
function peg$
|
|
17459
|
+
function peg$f74(str) {
|
|
17433
17460
|
return { type: "link", attrs: { href: str.trim(), target: "_blank" } };
|
|
17434
17461
|
}
|
|
17435
|
-
function peg$
|
|
17462
|
+
function peg$f75(str, rc, p) {
|
|
17436
17463
|
return { type: "extref", attrs: { extref: str.trim(), references: rc, provider: p.trim() } };
|
|
17437
17464
|
}
|
|
17438
|
-
function peg$
|
|
17465
|
+
function peg$f76(str, str2) {
|
|
17439
17466
|
return { type: "xref", attrs: { xref: str.trim(), reference: str2.trim() } };
|
|
17440
17467
|
}
|
|
17441
|
-
function peg$
|
|
17468
|
+
function peg$f77(str) {
|
|
17442
17469
|
return { type: "xref", attrs: { xref: str.trim(), reference: "" } };
|
|
17443
17470
|
}
|
|
17444
|
-
function peg$
|
|
17471
|
+
function peg$f78(str) {
|
|
17445
17472
|
return { type: "ref", attrs: { reference: str.trim() } };
|
|
17446
17473
|
}
|
|
17447
|
-
function peg$
|
|
17474
|
+
function peg$f79(str, ch) {
|
|
17448
17475
|
const chain = Object.assign({}, ...ch);
|
|
17449
17476
|
return { type: "symbol", attrs: { src: str.trim(), ...chain } };
|
|
17450
17477
|
}
|
|
17451
|
-
function peg$
|
|
17478
|
+
function peg$f80(str) {
|
|
17452
17479
|
return { type: "footnote", attrs: { content: bitmarkPlusString(str.trim()) } };
|
|
17453
17480
|
}
|
|
17454
|
-
function peg$
|
|
17481
|
+
function peg$f81(str) {
|
|
17455
17482
|
return { type: "footnote*", attrs: { content: bitmarkPlusString(str.trim()) } };
|
|
17456
17483
|
}
|
|
17457
|
-
function peg$
|
|
17484
|
+
function peg$f82(str) {
|
|
17458
17485
|
return { type: "var", attrs: { name: str.trim() } };
|
|
17459
17486
|
}
|
|
17460
|
-
function peg$
|
|
17487
|
+
function peg$f83() {
|
|
17461
17488
|
return { type: "code", attrs: { language: "plain text" } };
|
|
17462
17489
|
}
|
|
17463
|
-
function peg$
|
|
17490
|
+
function peg$f84(lang) {
|
|
17464
17491
|
return { type: "code", attrs: { language: lang.trim().toLowerCase() } };
|
|
17465
17492
|
}
|
|
17466
|
-
function peg$
|
|
17493
|
+
function peg$f85() {
|
|
17467
17494
|
return { type: "timer", attrs: { name: "" } };
|
|
17468
17495
|
}
|
|
17469
|
-
function peg$
|
|
17496
|
+
function peg$f86(str) {
|
|
17470
17497
|
return { type: "timer", attrs: { name: str.trim() } };
|
|
17471
17498
|
}
|
|
17472
|
-
function peg$
|
|
17499
|
+
function peg$f87(str) {
|
|
17473
17500
|
return { type: "duration", attrs: { duration: str } };
|
|
17474
17501
|
}
|
|
17475
|
-
function peg$
|
|
17502
|
+
function peg$f88(color) {
|
|
17476
17503
|
return { type: "color", attrs: { color } };
|
|
17477
17504
|
}
|
|
17478
|
-
function peg$
|
|
17505
|
+
function peg$f89(str) {
|
|
17479
17506
|
return { type: "colorPicker", attrs: { propertyRef: str.trim() } };
|
|
17480
17507
|
}
|
|
17481
|
-
function peg$
|
|
17508
|
+
function peg$f90(style) {
|
|
17482
17509
|
return { type: style };
|
|
17483
17510
|
}
|
|
17484
|
-
function peg$
|
|
17511
|
+
function peg$f91(str) {
|
|
17485
17512
|
return { type: "comment", comment: str };
|
|
17486
17513
|
}
|
|
17487
|
-
function peg$
|
|
17514
|
+
function peg$f92(r) {
|
|
17488
17515
|
return r.trim();
|
|
17489
17516
|
}
|
|
17490
|
-
function peg$
|
|
17517
|
+
function peg$f93(bs) {
|
|
17491
17518
|
return [{ type: "paragraph", content: bs, attrs: {} }];
|
|
17492
17519
|
}
|
|
17493
|
-
function peg$
|
|
17520
|
+
function peg$f94(first, more) {
|
|
17494
17521
|
const cleaned_ = cleanEmptyTextNodes(first ? [first, ...more.flat()] : more.flat());
|
|
17495
17522
|
return cleaned_;
|
|
17496
17523
|
}
|
|
17497
|
-
function peg$
|
|
17524
|
+
function peg$f95() {
|
|
17498
17525
|
return { "type": "hardBreak" };
|
|
17499
17526
|
}
|
|
17500
|
-
function peg$
|
|
17527
|
+
function peg$f96(t) {
|
|
17501
17528
|
return { text: unbreakscape(t), type: "text" };
|
|
17502
17529
|
}
|
|
17503
|
-
function peg$
|
|
17530
|
+
function peg$f97(t) {
|
|
17504
17531
|
return { index: +t, type: "bit" };
|
|
17505
17532
|
}
|
|
17506
|
-
function peg$
|
|
17533
|
+
function peg$f98(t) {
|
|
17507
17534
|
return { marks: [{ type: "bold" }], text: unbreakscape(t), type: "text" };
|
|
17508
17535
|
}
|
|
17509
|
-
function peg$
|
|
17536
|
+
function peg$f99(t) {
|
|
17510
17537
|
return { marks: [{ type: "italic" }], text: unbreakscape(t), type: "text" };
|
|
17511
17538
|
}
|
|
17512
|
-
function peg$
|
|
17539
|
+
function peg$f100(t) {
|
|
17513
17540
|
return { marks: [{ type: "light" }], text: unbreakscape(t), type: "text" };
|
|
17514
17541
|
}
|
|
17515
|
-
function peg$
|
|
17542
|
+
function peg$f101(t) {
|
|
17516
17543
|
return { marks: [{ type: "highlight" }], text: unbreakscape(t), type: "text" };
|
|
17517
17544
|
}
|
|
17518
|
-
function peg$
|
|
17545
|
+
function peg$f102(pr, t) {
|
|
17519
17546
|
return { pr, t };
|
|
17520
17547
|
}
|
|
17521
17548
|
let peg$currPos = options.peg$currPos | 0;
|
|
@@ -17716,10 +17743,40 @@ function peg$parse(input, options) {
|
|
|
17716
17743
|
return s0;
|
|
17717
17744
|
}
|
|
17718
17745
|
function peg$parseBlockStart() {
|
|
17719
|
-
let s0;
|
|
17746
|
+
let s0, s1, s2;
|
|
17720
17747
|
s0 = peg$parseTitleTags();
|
|
17721
17748
|
if (s0 === peg$FAILED) {
|
|
17722
|
-
s0 = peg$
|
|
17749
|
+
s0 = peg$currPos;
|
|
17750
|
+
s1 = [];
|
|
17751
|
+
if (input.charCodeAt(peg$currPos) === 9) {
|
|
17752
|
+
s2 = peg$c0;
|
|
17753
|
+
peg$currPos++;
|
|
17754
|
+
} else {
|
|
17755
|
+
s2 = peg$FAILED;
|
|
17756
|
+
if (peg$silentFails === 0) {
|
|
17757
|
+
peg$fail(peg$e2);
|
|
17758
|
+
}
|
|
17759
|
+
}
|
|
17760
|
+
while (s2 !== peg$FAILED) {
|
|
17761
|
+
s1.push(s2);
|
|
17762
|
+
if (input.charCodeAt(peg$currPos) === 9) {
|
|
17763
|
+
s2 = peg$c0;
|
|
17764
|
+
peg$currPos++;
|
|
17765
|
+
} else {
|
|
17766
|
+
s2 = peg$FAILED;
|
|
17767
|
+
if (peg$silentFails === 0) {
|
|
17768
|
+
peg$fail(peg$e2);
|
|
17769
|
+
}
|
|
17770
|
+
}
|
|
17771
|
+
}
|
|
17772
|
+
s2 = peg$parseListTags();
|
|
17773
|
+
if (s2 !== peg$FAILED) {
|
|
17774
|
+
s1 = [s1, s2];
|
|
17775
|
+
s0 = s1;
|
|
17776
|
+
} else {
|
|
17777
|
+
peg$currPos = s0;
|
|
17778
|
+
s0 = peg$FAILED;
|
|
17779
|
+
}
|
|
17723
17780
|
if (s0 === peg$FAILED) {
|
|
17724
17781
|
s0 = peg$parseImageBlock();
|
|
17725
17782
|
if (s0 === peg$FAILED) {
|
|
@@ -17735,12 +17792,12 @@ function peg$parse(input, options) {
|
|
|
17735
17792
|
function peg$parseBlockTag() {
|
|
17736
17793
|
let s0;
|
|
17737
17794
|
if (input.charCodeAt(peg$currPos) === 124) {
|
|
17738
|
-
s0 = peg$
|
|
17795
|
+
s0 = peg$c1;
|
|
17739
17796
|
peg$currPos++;
|
|
17740
17797
|
} else {
|
|
17741
17798
|
s0 = peg$FAILED;
|
|
17742
17799
|
if (peg$silentFails === 0) {
|
|
17743
|
-
peg$fail(peg$
|
|
17800
|
+
peg$fail(peg$e3);
|
|
17744
17801
|
}
|
|
17745
17802
|
}
|
|
17746
17803
|
return s0;
|
|
@@ -17755,33 +17812,33 @@ function peg$parse(input, options) {
|
|
|
17755
17812
|
}
|
|
17756
17813
|
function peg$parseTitleTags() {
|
|
17757
17814
|
let s0;
|
|
17758
|
-
if (input.substr(peg$currPos, 4) === peg$
|
|
17759
|
-
s0 = peg$
|
|
17815
|
+
if (input.substr(peg$currPos, 4) === peg$c2) {
|
|
17816
|
+
s0 = peg$c2;
|
|
17760
17817
|
peg$currPos += 4;
|
|
17761
17818
|
} else {
|
|
17762
17819
|
s0 = peg$FAILED;
|
|
17763
17820
|
if (peg$silentFails === 0) {
|
|
17764
|
-
peg$fail(peg$
|
|
17821
|
+
peg$fail(peg$e4);
|
|
17765
17822
|
}
|
|
17766
17823
|
}
|
|
17767
17824
|
if (s0 === peg$FAILED) {
|
|
17768
|
-
if (input.substr(peg$currPos, 3) === peg$
|
|
17769
|
-
s0 = peg$
|
|
17825
|
+
if (input.substr(peg$currPos, 3) === peg$c3) {
|
|
17826
|
+
s0 = peg$c3;
|
|
17770
17827
|
peg$currPos += 3;
|
|
17771
17828
|
} else {
|
|
17772
17829
|
s0 = peg$FAILED;
|
|
17773
17830
|
if (peg$silentFails === 0) {
|
|
17774
|
-
peg$fail(peg$
|
|
17831
|
+
peg$fail(peg$e5);
|
|
17775
17832
|
}
|
|
17776
17833
|
}
|
|
17777
17834
|
if (s0 === peg$FAILED) {
|
|
17778
|
-
if (input.substr(peg$currPos, 2) === peg$
|
|
17779
|
-
s0 = peg$
|
|
17835
|
+
if (input.substr(peg$currPos, 2) === peg$c4) {
|
|
17836
|
+
s0 = peg$c4;
|
|
17780
17837
|
peg$currPos += 2;
|
|
17781
17838
|
} else {
|
|
17782
17839
|
s0 = peg$FAILED;
|
|
17783
17840
|
if (peg$silentFails === 0) {
|
|
17784
|
-
peg$fail(peg$
|
|
17841
|
+
peg$fail(peg$e6);
|
|
17785
17842
|
}
|
|
17786
17843
|
}
|
|
17787
17844
|
}
|
|
@@ -17820,13 +17877,13 @@ function peg$parse(input, options) {
|
|
|
17820
17877
|
}
|
|
17821
17878
|
function peg$parseCodeType() {
|
|
17822
17879
|
let s0;
|
|
17823
|
-
if (input.substr(peg$currPos, 4) === peg$
|
|
17824
|
-
s0 = peg$
|
|
17880
|
+
if (input.substr(peg$currPos, 4) === peg$c5) {
|
|
17881
|
+
s0 = peg$c5;
|
|
17825
17882
|
peg$currPos += 4;
|
|
17826
17883
|
} else {
|
|
17827
17884
|
s0 = peg$FAILED;
|
|
17828
17885
|
if (peg$silentFails === 0) {
|
|
17829
|
-
peg$fail(peg$
|
|
17886
|
+
peg$fail(peg$e7);
|
|
17830
17887
|
}
|
|
17831
17888
|
}
|
|
17832
17889
|
return s0;
|
|
@@ -17876,7 +17933,7 @@ function peg$parse(input, options) {
|
|
|
17876
17933
|
} else {
|
|
17877
17934
|
s5 = peg$FAILED;
|
|
17878
17935
|
if (peg$silentFails === 0) {
|
|
17879
|
-
peg$fail(peg$
|
|
17936
|
+
peg$fail(peg$e8);
|
|
17880
17937
|
}
|
|
17881
17938
|
}
|
|
17882
17939
|
while (s5 !== peg$FAILED) {
|
|
@@ -17887,7 +17944,7 @@ function peg$parse(input, options) {
|
|
|
17887
17944
|
} else {
|
|
17888
17945
|
s5 = peg$FAILED;
|
|
17889
17946
|
if (peg$silentFails === 0) {
|
|
17890
|
-
peg$fail(peg$
|
|
17947
|
+
peg$fail(peg$e8);
|
|
17891
17948
|
}
|
|
17892
17949
|
}
|
|
17893
17950
|
}
|
|
@@ -17919,12 +17976,12 @@ function peg$parse(input, options) {
|
|
|
17919
17976
|
s1 = peg$parseCodeTag();
|
|
17920
17977
|
if (s1 !== peg$FAILED) {
|
|
17921
17978
|
if (input.charCodeAt(peg$currPos) === 58) {
|
|
17922
|
-
s2 = peg$
|
|
17979
|
+
s2 = peg$c6;
|
|
17923
17980
|
peg$currPos++;
|
|
17924
17981
|
} else {
|
|
17925
17982
|
s2 = peg$FAILED;
|
|
17926
17983
|
if (peg$silentFails === 0) {
|
|
17927
|
-
peg$fail(peg$
|
|
17984
|
+
peg$fail(peg$e9);
|
|
17928
17985
|
}
|
|
17929
17986
|
}
|
|
17930
17987
|
if (s2 !== peg$FAILED) {
|
|
@@ -17939,7 +17996,7 @@ function peg$parse(input, options) {
|
|
|
17939
17996
|
} else {
|
|
17940
17997
|
s7 = peg$FAILED;
|
|
17941
17998
|
if (peg$silentFails === 0) {
|
|
17942
|
-
peg$fail(peg$
|
|
17999
|
+
peg$fail(peg$e8);
|
|
17943
18000
|
}
|
|
17944
18001
|
}
|
|
17945
18002
|
while (s7 !== peg$FAILED) {
|
|
@@ -17950,7 +18007,7 @@ function peg$parse(input, options) {
|
|
|
17950
18007
|
} else {
|
|
17951
18008
|
s7 = peg$FAILED;
|
|
17952
18009
|
if (peg$silentFails === 0) {
|
|
17953
|
-
peg$fail(peg$
|
|
18010
|
+
peg$fail(peg$e8);
|
|
17954
18011
|
}
|
|
17955
18012
|
}
|
|
17956
18013
|
}
|
|
@@ -17990,33 +18047,33 @@ function peg$parse(input, options) {
|
|
|
17990
18047
|
}
|
|
17991
18048
|
function peg$parseCodeLanguage() {
|
|
17992
18049
|
let s0, s1, s2;
|
|
17993
|
-
if (input.substr(peg$currPos, 9) === peg$
|
|
17994
|
-
s0 = peg$
|
|
18050
|
+
if (input.substr(peg$currPos, 9) === peg$c7) {
|
|
18051
|
+
s0 = peg$c7;
|
|
17995
18052
|
peg$currPos += 9;
|
|
17996
18053
|
} else {
|
|
17997
18054
|
s0 = peg$FAILED;
|
|
17998
18055
|
if (peg$silentFails === 0) {
|
|
17999
|
-
peg$fail(peg$
|
|
18056
|
+
peg$fail(peg$e10);
|
|
18000
18057
|
}
|
|
18001
18058
|
}
|
|
18002
18059
|
if (s0 === peg$FAILED) {
|
|
18003
|
-
if (input.substr(peg$currPos, 9) === peg$
|
|
18004
|
-
s0 = peg$
|
|
18060
|
+
if (input.substr(peg$currPos, 9) === peg$c8) {
|
|
18061
|
+
s0 = peg$c8;
|
|
18005
18062
|
peg$currPos += 9;
|
|
18006
18063
|
} else {
|
|
18007
18064
|
s0 = peg$FAILED;
|
|
18008
18065
|
if (peg$silentFails === 0) {
|
|
18009
|
-
peg$fail(peg$
|
|
18066
|
+
peg$fail(peg$e11);
|
|
18010
18067
|
}
|
|
18011
18068
|
}
|
|
18012
18069
|
if (s0 === peg$FAILED) {
|
|
18013
|
-
if (input.substr(peg$currPos, 10) === peg$
|
|
18014
|
-
s0 = peg$
|
|
18070
|
+
if (input.substr(peg$currPos, 10) === peg$c9) {
|
|
18071
|
+
s0 = peg$c9;
|
|
18015
18072
|
peg$currPos += 10;
|
|
18016
18073
|
} else {
|
|
18017
18074
|
s0 = peg$FAILED;
|
|
18018
18075
|
if (peg$silentFails === 0) {
|
|
18019
|
-
peg$fail(peg$
|
|
18076
|
+
peg$fail(peg$e12);
|
|
18020
18077
|
}
|
|
18021
18078
|
}
|
|
18022
18079
|
if (s0 === peg$FAILED) {
|
|
@@ -18120,26 +18177,26 @@ function peg$parse(input, options) {
|
|
|
18120
18177
|
}
|
|
18121
18178
|
function peg$parseBulletListTag() {
|
|
18122
18179
|
let s0;
|
|
18123
|
-
if (input.substr(peg$currPos, 2) === peg$
|
|
18124
|
-
s0 = peg$
|
|
18180
|
+
if (input.substr(peg$currPos, 2) === peg$c10) {
|
|
18181
|
+
s0 = peg$c10;
|
|
18125
18182
|
peg$currPos += 2;
|
|
18126
18183
|
} else {
|
|
18127
18184
|
s0 = peg$FAILED;
|
|
18128
18185
|
if (peg$silentFails === 0) {
|
|
18129
|
-
peg$fail(peg$
|
|
18186
|
+
peg$fail(peg$e13);
|
|
18130
18187
|
}
|
|
18131
18188
|
}
|
|
18132
18189
|
return s0;
|
|
18133
18190
|
}
|
|
18134
18191
|
function peg$parseNoBulletListTag() {
|
|
18135
18192
|
let s0;
|
|
18136
|
-
if (input.substr(peg$currPos, 3) === peg$
|
|
18137
|
-
s0 = peg$
|
|
18193
|
+
if (input.substr(peg$currPos, 3) === peg$c11) {
|
|
18194
|
+
s0 = peg$c11;
|
|
18138
18195
|
peg$currPos += 3;
|
|
18139
18196
|
} else {
|
|
18140
18197
|
s0 = peg$FAILED;
|
|
18141
18198
|
if (peg$silentFails === 0) {
|
|
18142
|
-
peg$fail(peg$
|
|
18199
|
+
peg$fail(peg$e14);
|
|
18143
18200
|
}
|
|
18144
18201
|
}
|
|
18145
18202
|
return s0;
|
|
@@ -18149,12 +18206,12 @@ function peg$parse(input, options) {
|
|
|
18149
18206
|
s0 = peg$currPos;
|
|
18150
18207
|
s1 = peg$currPos;
|
|
18151
18208
|
if (input.charCodeAt(peg$currPos) === 8226) {
|
|
18152
|
-
s2 = peg$
|
|
18209
|
+
s2 = peg$c12;
|
|
18153
18210
|
peg$currPos++;
|
|
18154
18211
|
} else {
|
|
18155
18212
|
s2 = peg$FAILED;
|
|
18156
18213
|
if (peg$silentFails === 0) {
|
|
18157
|
-
peg$fail(peg$
|
|
18214
|
+
peg$fail(peg$e15);
|
|
18158
18215
|
}
|
|
18159
18216
|
}
|
|
18160
18217
|
if (s2 !== peg$FAILED) {
|
|
@@ -18165,7 +18222,7 @@ function peg$parse(input, options) {
|
|
|
18165
18222
|
} else {
|
|
18166
18223
|
s4 = peg$FAILED;
|
|
18167
18224
|
if (peg$silentFails === 0) {
|
|
18168
|
-
peg$fail(peg$
|
|
18225
|
+
peg$fail(peg$e16);
|
|
18169
18226
|
}
|
|
18170
18227
|
}
|
|
18171
18228
|
if (s4 !== peg$FAILED) {
|
|
@@ -18177,7 +18234,7 @@ function peg$parse(input, options) {
|
|
|
18177
18234
|
} else {
|
|
18178
18235
|
s4 = peg$FAILED;
|
|
18179
18236
|
if (peg$silentFails === 0) {
|
|
18180
|
-
peg$fail(peg$
|
|
18237
|
+
peg$fail(peg$e16);
|
|
18181
18238
|
}
|
|
18182
18239
|
}
|
|
18183
18240
|
}
|
|
@@ -18186,12 +18243,12 @@ function peg$parse(input, options) {
|
|
|
18186
18243
|
}
|
|
18187
18244
|
if (s3 !== peg$FAILED) {
|
|
18188
18245
|
if (input.charCodeAt(peg$currPos) === 32) {
|
|
18189
|
-
s4 = peg$
|
|
18246
|
+
s4 = peg$c13;
|
|
18190
18247
|
peg$currPos++;
|
|
18191
18248
|
} else {
|
|
18192
18249
|
s4 = peg$FAILED;
|
|
18193
18250
|
if (peg$silentFails === 0) {
|
|
18194
|
-
peg$fail(peg$
|
|
18251
|
+
peg$fail(peg$e17);
|
|
18195
18252
|
}
|
|
18196
18253
|
}
|
|
18197
18254
|
if (s4 !== peg$FAILED) {
|
|
@@ -18221,12 +18278,12 @@ function peg$parse(input, options) {
|
|
|
18221
18278
|
s0 = peg$currPos;
|
|
18222
18279
|
s1 = peg$currPos;
|
|
18223
18280
|
if (input.charCodeAt(peg$currPos) === 8226) {
|
|
18224
|
-
s2 = peg$
|
|
18281
|
+
s2 = peg$c12;
|
|
18225
18282
|
peg$currPos++;
|
|
18226
18283
|
} else {
|
|
18227
18284
|
s2 = peg$FAILED;
|
|
18228
18285
|
if (peg$silentFails === 0) {
|
|
18229
|
-
peg$fail(peg$
|
|
18286
|
+
peg$fail(peg$e15);
|
|
18230
18287
|
}
|
|
18231
18288
|
}
|
|
18232
18289
|
if (s2 !== peg$FAILED) {
|
|
@@ -18237,7 +18294,7 @@ function peg$parse(input, options) {
|
|
|
18237
18294
|
} else {
|
|
18238
18295
|
s4 = peg$FAILED;
|
|
18239
18296
|
if (peg$silentFails === 0) {
|
|
18240
|
-
peg$fail(peg$
|
|
18297
|
+
peg$fail(peg$e16);
|
|
18241
18298
|
}
|
|
18242
18299
|
}
|
|
18243
18300
|
if (s4 !== peg$FAILED) {
|
|
@@ -18249,7 +18306,7 @@ function peg$parse(input, options) {
|
|
|
18249
18306
|
} else {
|
|
18250
18307
|
s4 = peg$FAILED;
|
|
18251
18308
|
if (peg$silentFails === 0) {
|
|
18252
|
-
peg$fail(peg$
|
|
18309
|
+
peg$fail(peg$e16);
|
|
18253
18310
|
}
|
|
18254
18311
|
}
|
|
18255
18312
|
}
|
|
@@ -18257,13 +18314,13 @@ function peg$parse(input, options) {
|
|
|
18257
18314
|
s3 = peg$FAILED;
|
|
18258
18315
|
}
|
|
18259
18316
|
if (s3 !== peg$FAILED) {
|
|
18260
|
-
if (input.substr(peg$currPos, 2) === peg$
|
|
18261
|
-
s4 = peg$
|
|
18317
|
+
if (input.substr(peg$currPos, 2) === peg$c14) {
|
|
18318
|
+
s4 = peg$c14;
|
|
18262
18319
|
peg$currPos += 2;
|
|
18263
18320
|
} else {
|
|
18264
18321
|
s4 = peg$FAILED;
|
|
18265
18322
|
if (peg$silentFails === 0) {
|
|
18266
|
-
peg$fail(peg$
|
|
18323
|
+
peg$fail(peg$e18);
|
|
18267
18324
|
}
|
|
18268
18325
|
}
|
|
18269
18326
|
if (s4 !== peg$FAILED) {
|
|
@@ -18293,12 +18350,12 @@ function peg$parse(input, options) {
|
|
|
18293
18350
|
s0 = peg$currPos;
|
|
18294
18351
|
s1 = peg$currPos;
|
|
18295
18352
|
if (input.charCodeAt(peg$currPos) === 8226) {
|
|
18296
|
-
s2 = peg$
|
|
18353
|
+
s2 = peg$c12;
|
|
18297
18354
|
peg$currPos++;
|
|
18298
18355
|
} else {
|
|
18299
18356
|
s2 = peg$FAILED;
|
|
18300
18357
|
if (peg$silentFails === 0) {
|
|
18301
|
-
peg$fail(peg$
|
|
18358
|
+
peg$fail(peg$e15);
|
|
18302
18359
|
}
|
|
18303
18360
|
}
|
|
18304
18361
|
if (s2 !== peg$FAILED) {
|
|
@@ -18309,7 +18366,7 @@ function peg$parse(input, options) {
|
|
|
18309
18366
|
} else {
|
|
18310
18367
|
s4 = peg$FAILED;
|
|
18311
18368
|
if (peg$silentFails === 0) {
|
|
18312
|
-
peg$fail(peg$
|
|
18369
|
+
peg$fail(peg$e16);
|
|
18313
18370
|
}
|
|
18314
18371
|
}
|
|
18315
18372
|
if (s4 !== peg$FAILED) {
|
|
@@ -18321,7 +18378,7 @@ function peg$parse(input, options) {
|
|
|
18321
18378
|
} else {
|
|
18322
18379
|
s4 = peg$FAILED;
|
|
18323
18380
|
if (peg$silentFails === 0) {
|
|
18324
|
-
peg$fail(peg$
|
|
18381
|
+
peg$fail(peg$e16);
|
|
18325
18382
|
}
|
|
18326
18383
|
}
|
|
18327
18384
|
}
|
|
@@ -18329,13 +18386,13 @@ function peg$parse(input, options) {
|
|
|
18329
18386
|
s3 = peg$FAILED;
|
|
18330
18387
|
}
|
|
18331
18388
|
if (s3 !== peg$FAILED) {
|
|
18332
|
-
if (input.substr(peg$currPos, 2) === peg$
|
|
18333
|
-
s4 = peg$
|
|
18389
|
+
if (input.substr(peg$currPos, 2) === peg$c15) {
|
|
18390
|
+
s4 = peg$c15;
|
|
18334
18391
|
peg$currPos += 2;
|
|
18335
18392
|
} else {
|
|
18336
18393
|
s4 = peg$FAILED;
|
|
18337
18394
|
if (peg$silentFails === 0) {
|
|
18338
|
-
peg$fail(peg$
|
|
18395
|
+
peg$fail(peg$e19);
|
|
18339
18396
|
}
|
|
18340
18397
|
}
|
|
18341
18398
|
if (s4 !== peg$FAILED) {
|
|
@@ -18362,49 +18419,49 @@ function peg$parse(input, options) {
|
|
|
18362
18419
|
}
|
|
18363
18420
|
function peg$parseLetteredListTag() {
|
|
18364
18421
|
let s0;
|
|
18365
|
-
if (input.substr(peg$currPos, 3) === peg$
|
|
18366
|
-
s0 = peg$
|
|
18422
|
+
if (input.substr(peg$currPos, 3) === peg$c16) {
|
|
18423
|
+
s0 = peg$c16;
|
|
18367
18424
|
peg$currPos += 3;
|
|
18368
18425
|
} else {
|
|
18369
18426
|
s0 = peg$FAILED;
|
|
18370
18427
|
if (peg$silentFails === 0) {
|
|
18371
|
-
peg$fail(peg$
|
|
18428
|
+
peg$fail(peg$e20);
|
|
18372
18429
|
}
|
|
18373
18430
|
}
|
|
18374
18431
|
return s0;
|
|
18375
18432
|
}
|
|
18376
18433
|
function peg$parseLetteredListLowerTag() {
|
|
18377
18434
|
let s0;
|
|
18378
|
-
if (input.substr(peg$currPos, 3) === peg$
|
|
18379
|
-
s0 = peg$
|
|
18435
|
+
if (input.substr(peg$currPos, 3) === peg$c17) {
|
|
18436
|
+
s0 = peg$c17;
|
|
18380
18437
|
peg$currPos += 3;
|
|
18381
18438
|
} else {
|
|
18382
18439
|
s0 = peg$FAILED;
|
|
18383
18440
|
if (peg$silentFails === 0) {
|
|
18384
|
-
peg$fail(peg$
|
|
18441
|
+
peg$fail(peg$e21);
|
|
18385
18442
|
}
|
|
18386
18443
|
}
|
|
18387
18444
|
return s0;
|
|
18388
18445
|
}
|
|
18389
18446
|
function peg$parseTaskListTag() {
|
|
18390
18447
|
let s0;
|
|
18391
|
-
if (input.substr(peg$currPos, 3) === peg$
|
|
18392
|
-
s0 = peg$
|
|
18448
|
+
if (input.substr(peg$currPos, 3) === peg$c18) {
|
|
18449
|
+
s0 = peg$c18;
|
|
18393
18450
|
peg$currPos += 3;
|
|
18394
18451
|
} else {
|
|
18395
18452
|
s0 = peg$FAILED;
|
|
18396
18453
|
if (peg$silentFails === 0) {
|
|
18397
|
-
peg$fail(peg$
|
|
18454
|
+
peg$fail(peg$e22);
|
|
18398
18455
|
}
|
|
18399
18456
|
}
|
|
18400
18457
|
if (s0 === peg$FAILED) {
|
|
18401
|
-
if (input.substr(peg$currPos, 3) === peg$
|
|
18402
|
-
s0 = peg$
|
|
18458
|
+
if (input.substr(peg$currPos, 3) === peg$c19) {
|
|
18459
|
+
s0 = peg$c19;
|
|
18403
18460
|
peg$currPos += 3;
|
|
18404
18461
|
} else {
|
|
18405
18462
|
s0 = peg$FAILED;
|
|
18406
18463
|
if (peg$silentFails === 0) {
|
|
18407
|
-
peg$fail(peg$
|
|
18464
|
+
peg$fail(peg$e23);
|
|
18408
18465
|
}
|
|
18409
18466
|
}
|
|
18410
18467
|
}
|
|
@@ -18437,6 +18494,24 @@ function peg$parse(input, options) {
|
|
|
18437
18494
|
return s0;
|
|
18438
18495
|
}
|
|
18439
18496
|
function peg$parseListBlock() {
|
|
18497
|
+
let s0, s1, s2;
|
|
18498
|
+
s0 = peg$currPos;
|
|
18499
|
+
s1 = peg$parseListBaseIndent();
|
|
18500
|
+
if (s1 !== peg$FAILED) {
|
|
18501
|
+
s2 = peg$parseListBlockInner();
|
|
18502
|
+
if (s2 !== peg$FAILED) {
|
|
18503
|
+
s0 = peg$f14(s2);
|
|
18504
|
+
} else {
|
|
18505
|
+
peg$currPos = s0;
|
|
18506
|
+
s0 = peg$FAILED;
|
|
18507
|
+
}
|
|
18508
|
+
} else {
|
|
18509
|
+
peg$currPos = s0;
|
|
18510
|
+
s0 = peg$FAILED;
|
|
18511
|
+
}
|
|
18512
|
+
return s0;
|
|
18513
|
+
}
|
|
18514
|
+
function peg$parseListBlockInner() {
|
|
18440
18515
|
let s0, s1, s2, s3;
|
|
18441
18516
|
s0 = peg$currPos;
|
|
18442
18517
|
s1 = peg$parseBulletListContainer();
|
|
@@ -18456,7 +18531,7 @@ function peg$parse(input, options) {
|
|
|
18456
18531
|
if (s3 === peg$FAILED) {
|
|
18457
18532
|
s3 = null;
|
|
18458
18533
|
}
|
|
18459
|
-
s0 = peg$
|
|
18534
|
+
s0 = peg$f15(s1, s2);
|
|
18460
18535
|
} else {
|
|
18461
18536
|
peg$currPos = s0;
|
|
18462
18537
|
s0 = peg$FAILED;
|
|
@@ -18484,7 +18559,7 @@ function peg$parse(input, options) {
|
|
|
18484
18559
|
if (s3 === peg$FAILED) {
|
|
18485
18560
|
s3 = null;
|
|
18486
18561
|
}
|
|
18487
|
-
s0 = peg$
|
|
18562
|
+
s0 = peg$f16(s1, s2);
|
|
18488
18563
|
} else {
|
|
18489
18564
|
peg$currPos = s0;
|
|
18490
18565
|
s0 = peg$FAILED;
|
|
@@ -18512,7 +18587,7 @@ function peg$parse(input, options) {
|
|
|
18512
18587
|
if (s3 === peg$FAILED) {
|
|
18513
18588
|
s3 = null;
|
|
18514
18589
|
}
|
|
18515
|
-
s0 = peg$
|
|
18590
|
+
s0 = peg$f17(s1, s2);
|
|
18516
18591
|
} else {
|
|
18517
18592
|
peg$currPos = s0;
|
|
18518
18593
|
s0 = peg$FAILED;
|
|
@@ -18540,7 +18615,7 @@ function peg$parse(input, options) {
|
|
|
18540
18615
|
if (s3 === peg$FAILED) {
|
|
18541
18616
|
s3 = null;
|
|
18542
18617
|
}
|
|
18543
|
-
s0 = peg$
|
|
18618
|
+
s0 = peg$f18(s1, s2);
|
|
18544
18619
|
} else {
|
|
18545
18620
|
peg$currPos = s0;
|
|
18546
18621
|
s0 = peg$FAILED;
|
|
@@ -18568,7 +18643,7 @@ function peg$parse(input, options) {
|
|
|
18568
18643
|
if (s3 === peg$FAILED) {
|
|
18569
18644
|
s3 = null;
|
|
18570
18645
|
}
|
|
18571
|
-
s0 = peg$
|
|
18646
|
+
s0 = peg$f19(s1, s2);
|
|
18572
18647
|
} else {
|
|
18573
18648
|
peg$currPos = s0;
|
|
18574
18649
|
s0 = peg$FAILED;
|
|
@@ -18596,7 +18671,7 @@ function peg$parse(input, options) {
|
|
|
18596
18671
|
if (s3 === peg$FAILED) {
|
|
18597
18672
|
s3 = null;
|
|
18598
18673
|
}
|
|
18599
|
-
s0 = peg$
|
|
18674
|
+
s0 = peg$f20(s1, s2);
|
|
18600
18675
|
} else {
|
|
18601
18676
|
peg$currPos = s0;
|
|
18602
18677
|
s0 = peg$FAILED;
|
|
@@ -18624,7 +18699,7 @@ function peg$parse(input, options) {
|
|
|
18624
18699
|
if (s3 === peg$FAILED) {
|
|
18625
18700
|
s3 = null;
|
|
18626
18701
|
}
|
|
18627
|
-
s0 = peg$
|
|
18702
|
+
s0 = peg$f21(s1, s2);
|
|
18628
18703
|
} else {
|
|
18629
18704
|
peg$currPos = s0;
|
|
18630
18705
|
s0 = peg$FAILED;
|
|
@@ -18652,7 +18727,7 @@ function peg$parse(input, options) {
|
|
|
18652
18727
|
if (s3 === peg$FAILED) {
|
|
18653
18728
|
s3 = null;
|
|
18654
18729
|
}
|
|
18655
|
-
s0 = peg$
|
|
18730
|
+
s0 = peg$f22(s1, s2);
|
|
18656
18731
|
} else {
|
|
18657
18732
|
peg$currPos = s0;
|
|
18658
18733
|
s0 = peg$FAILED;
|
|
@@ -18670,12 +18745,69 @@ function peg$parse(input, options) {
|
|
|
18670
18745
|
}
|
|
18671
18746
|
return s0;
|
|
18672
18747
|
}
|
|
18748
|
+
function peg$parseListBaseIndent() {
|
|
18749
|
+
let s0, s1, s2, s3;
|
|
18750
|
+
s0 = peg$currPos;
|
|
18751
|
+
peg$silentFails++;
|
|
18752
|
+
s1 = peg$currPos;
|
|
18753
|
+
s2 = [];
|
|
18754
|
+
if (input.charCodeAt(peg$currPos) === 9) {
|
|
18755
|
+
s3 = peg$c0;
|
|
18756
|
+
peg$currPos++;
|
|
18757
|
+
} else {
|
|
18758
|
+
s3 = peg$FAILED;
|
|
18759
|
+
if (peg$silentFails === 0) {
|
|
18760
|
+
peg$fail(peg$e2);
|
|
18761
|
+
}
|
|
18762
|
+
}
|
|
18763
|
+
while (s3 !== peg$FAILED) {
|
|
18764
|
+
s2.push(s3);
|
|
18765
|
+
if (input.charCodeAt(peg$currPos) === 9) {
|
|
18766
|
+
s3 = peg$c0;
|
|
18767
|
+
peg$currPos++;
|
|
18768
|
+
} else {
|
|
18769
|
+
s3 = peg$FAILED;
|
|
18770
|
+
if (peg$silentFails === 0) {
|
|
18771
|
+
peg$fail(peg$e2);
|
|
18772
|
+
}
|
|
18773
|
+
}
|
|
18774
|
+
}
|
|
18775
|
+
s3 = peg$parseListTags();
|
|
18776
|
+
if (s3 !== peg$FAILED) {
|
|
18777
|
+
s1 = peg$f23(s2);
|
|
18778
|
+
} else {
|
|
18779
|
+
peg$currPos = s1;
|
|
18780
|
+
s1 = peg$FAILED;
|
|
18781
|
+
}
|
|
18782
|
+
peg$silentFails--;
|
|
18783
|
+
if (s1 !== peg$FAILED) {
|
|
18784
|
+
peg$currPos = s0;
|
|
18785
|
+
s0 = void 0;
|
|
18786
|
+
} else {
|
|
18787
|
+
s0 = peg$FAILED;
|
|
18788
|
+
}
|
|
18789
|
+
return s0;
|
|
18790
|
+
}
|
|
18673
18791
|
function peg$parseBulletListContainer() {
|
|
18674
|
-
let s0, s1, s2;
|
|
18792
|
+
let s0, s1, s2, s3, s4;
|
|
18675
18793
|
s0 = peg$currPos;
|
|
18676
18794
|
s1 = peg$currPos;
|
|
18677
18795
|
peg$silentFails++;
|
|
18678
|
-
s2 = peg$
|
|
18796
|
+
s2 = peg$currPos;
|
|
18797
|
+
s3 = peg$parseSAMEDENT();
|
|
18798
|
+
if (s3 !== peg$FAILED) {
|
|
18799
|
+
s4 = peg$parseBulletListTag();
|
|
18800
|
+
if (s4 !== peg$FAILED) {
|
|
18801
|
+
s3 = [s3, s4];
|
|
18802
|
+
s2 = s3;
|
|
18803
|
+
} else {
|
|
18804
|
+
peg$currPos = s2;
|
|
18805
|
+
s2 = peg$FAILED;
|
|
18806
|
+
}
|
|
18807
|
+
} else {
|
|
18808
|
+
peg$currPos = s2;
|
|
18809
|
+
s2 = peg$FAILED;
|
|
18810
|
+
}
|
|
18679
18811
|
peg$silentFails--;
|
|
18680
18812
|
if (s2 !== peg$FAILED) {
|
|
18681
18813
|
peg$currPos = s1;
|
|
@@ -18684,17 +18816,31 @@ function peg$parse(input, options) {
|
|
|
18684
18816
|
s1 = peg$FAILED;
|
|
18685
18817
|
}
|
|
18686
18818
|
if (s1 !== peg$FAILED) {
|
|
18687
|
-
s1 = peg$
|
|
18819
|
+
s1 = peg$f24();
|
|
18688
18820
|
}
|
|
18689
18821
|
s0 = s1;
|
|
18690
18822
|
return s0;
|
|
18691
18823
|
}
|
|
18692
18824
|
function peg$parseNoBulletListContainer() {
|
|
18693
|
-
let s0, s1, s2;
|
|
18825
|
+
let s0, s1, s2, s3, s4;
|
|
18694
18826
|
s0 = peg$currPos;
|
|
18695
18827
|
s1 = peg$currPos;
|
|
18696
18828
|
peg$silentFails++;
|
|
18697
|
-
s2 = peg$
|
|
18829
|
+
s2 = peg$currPos;
|
|
18830
|
+
s3 = peg$parseSAMEDENT();
|
|
18831
|
+
if (s3 !== peg$FAILED) {
|
|
18832
|
+
s4 = peg$parseNoBulletListTag();
|
|
18833
|
+
if (s4 !== peg$FAILED) {
|
|
18834
|
+
s3 = [s3, s4];
|
|
18835
|
+
s2 = s3;
|
|
18836
|
+
} else {
|
|
18837
|
+
peg$currPos = s2;
|
|
18838
|
+
s2 = peg$FAILED;
|
|
18839
|
+
}
|
|
18840
|
+
} else {
|
|
18841
|
+
peg$currPos = s2;
|
|
18842
|
+
s2 = peg$FAILED;
|
|
18843
|
+
}
|
|
18698
18844
|
peg$silentFails--;
|
|
18699
18845
|
if (s2 !== peg$FAILED) {
|
|
18700
18846
|
peg$currPos = s1;
|
|
@@ -18703,17 +18849,31 @@ function peg$parse(input, options) {
|
|
|
18703
18849
|
s1 = peg$FAILED;
|
|
18704
18850
|
}
|
|
18705
18851
|
if (s1 !== peg$FAILED) {
|
|
18706
|
-
s1 = peg$
|
|
18852
|
+
s1 = peg$f25();
|
|
18707
18853
|
}
|
|
18708
18854
|
s0 = s1;
|
|
18709
18855
|
return s0;
|
|
18710
18856
|
}
|
|
18711
18857
|
function peg$parseOrderedListContainer() {
|
|
18712
|
-
let s0, s1, s2;
|
|
18858
|
+
let s0, s1, s2, s3, s4;
|
|
18713
18859
|
s0 = peg$currPos;
|
|
18714
18860
|
s1 = peg$currPos;
|
|
18715
18861
|
peg$silentFails++;
|
|
18716
|
-
s2 = peg$
|
|
18862
|
+
s2 = peg$currPos;
|
|
18863
|
+
s3 = peg$parseSAMEDENT();
|
|
18864
|
+
if (s3 !== peg$FAILED) {
|
|
18865
|
+
s4 = peg$parseOrderedListTag();
|
|
18866
|
+
if (s4 !== peg$FAILED) {
|
|
18867
|
+
s3 = [s3, s4];
|
|
18868
|
+
s2 = s3;
|
|
18869
|
+
} else {
|
|
18870
|
+
peg$currPos = s2;
|
|
18871
|
+
s2 = peg$FAILED;
|
|
18872
|
+
}
|
|
18873
|
+
} else {
|
|
18874
|
+
peg$currPos = s2;
|
|
18875
|
+
s2 = peg$FAILED;
|
|
18876
|
+
}
|
|
18717
18877
|
peg$silentFails--;
|
|
18718
18878
|
if (s2 !== peg$FAILED) {
|
|
18719
18879
|
peg$currPos = s1;
|
|
@@ -18722,17 +18882,31 @@ function peg$parse(input, options) {
|
|
|
18722
18882
|
s1 = peg$FAILED;
|
|
18723
18883
|
}
|
|
18724
18884
|
if (s1 !== peg$FAILED) {
|
|
18725
|
-
s1 = peg$
|
|
18885
|
+
s1 = peg$f26();
|
|
18726
18886
|
}
|
|
18727
18887
|
s0 = s1;
|
|
18728
18888
|
return s0;
|
|
18729
18889
|
}
|
|
18730
18890
|
function peg$parseOrderedListRomanContainer() {
|
|
18731
|
-
let s0, s1, s2;
|
|
18891
|
+
let s0, s1, s2, s3, s4;
|
|
18732
18892
|
s0 = peg$currPos;
|
|
18733
18893
|
s1 = peg$currPos;
|
|
18734
18894
|
peg$silentFails++;
|
|
18735
|
-
s2 = peg$
|
|
18895
|
+
s2 = peg$currPos;
|
|
18896
|
+
s3 = peg$parseSAMEDENT();
|
|
18897
|
+
if (s3 !== peg$FAILED) {
|
|
18898
|
+
s4 = peg$parseOrderedListRomanTag();
|
|
18899
|
+
if (s4 !== peg$FAILED) {
|
|
18900
|
+
s3 = [s3, s4];
|
|
18901
|
+
s2 = s3;
|
|
18902
|
+
} else {
|
|
18903
|
+
peg$currPos = s2;
|
|
18904
|
+
s2 = peg$FAILED;
|
|
18905
|
+
}
|
|
18906
|
+
} else {
|
|
18907
|
+
peg$currPos = s2;
|
|
18908
|
+
s2 = peg$FAILED;
|
|
18909
|
+
}
|
|
18736
18910
|
peg$silentFails--;
|
|
18737
18911
|
if (s2 !== peg$FAILED) {
|
|
18738
18912
|
peg$currPos = s1;
|
|
@@ -18741,17 +18915,31 @@ function peg$parse(input, options) {
|
|
|
18741
18915
|
s1 = peg$FAILED;
|
|
18742
18916
|
}
|
|
18743
18917
|
if (s1 !== peg$FAILED) {
|
|
18744
|
-
s1 = peg$
|
|
18918
|
+
s1 = peg$f27();
|
|
18745
18919
|
}
|
|
18746
18920
|
s0 = s1;
|
|
18747
18921
|
return s0;
|
|
18748
18922
|
}
|
|
18749
18923
|
function peg$parseOrderedListRomanLowerContainer() {
|
|
18750
|
-
let s0, s1, s2;
|
|
18924
|
+
let s0, s1, s2, s3, s4;
|
|
18751
18925
|
s0 = peg$currPos;
|
|
18752
18926
|
s1 = peg$currPos;
|
|
18753
18927
|
peg$silentFails++;
|
|
18754
|
-
s2 = peg$
|
|
18928
|
+
s2 = peg$currPos;
|
|
18929
|
+
s3 = peg$parseSAMEDENT();
|
|
18930
|
+
if (s3 !== peg$FAILED) {
|
|
18931
|
+
s4 = peg$parseOrderedListRomanLowerTag();
|
|
18932
|
+
if (s4 !== peg$FAILED) {
|
|
18933
|
+
s3 = [s3, s4];
|
|
18934
|
+
s2 = s3;
|
|
18935
|
+
} else {
|
|
18936
|
+
peg$currPos = s2;
|
|
18937
|
+
s2 = peg$FAILED;
|
|
18938
|
+
}
|
|
18939
|
+
} else {
|
|
18940
|
+
peg$currPos = s2;
|
|
18941
|
+
s2 = peg$FAILED;
|
|
18942
|
+
}
|
|
18755
18943
|
peg$silentFails--;
|
|
18756
18944
|
if (s2 !== peg$FAILED) {
|
|
18757
18945
|
peg$currPos = s1;
|
|
@@ -18760,17 +18948,31 @@ function peg$parse(input, options) {
|
|
|
18760
18948
|
s1 = peg$FAILED;
|
|
18761
18949
|
}
|
|
18762
18950
|
if (s1 !== peg$FAILED) {
|
|
18763
|
-
s1 = peg$
|
|
18951
|
+
s1 = peg$f28();
|
|
18764
18952
|
}
|
|
18765
18953
|
s0 = s1;
|
|
18766
18954
|
return s0;
|
|
18767
18955
|
}
|
|
18768
18956
|
function peg$parseLetteredListContainer() {
|
|
18769
|
-
let s0, s1, s2;
|
|
18957
|
+
let s0, s1, s2, s3, s4;
|
|
18770
18958
|
s0 = peg$currPos;
|
|
18771
18959
|
s1 = peg$currPos;
|
|
18772
18960
|
peg$silentFails++;
|
|
18773
|
-
s2 = peg$
|
|
18961
|
+
s2 = peg$currPos;
|
|
18962
|
+
s3 = peg$parseSAMEDENT();
|
|
18963
|
+
if (s3 !== peg$FAILED) {
|
|
18964
|
+
s4 = peg$parseLetteredListTag();
|
|
18965
|
+
if (s4 !== peg$FAILED) {
|
|
18966
|
+
s3 = [s3, s4];
|
|
18967
|
+
s2 = s3;
|
|
18968
|
+
} else {
|
|
18969
|
+
peg$currPos = s2;
|
|
18970
|
+
s2 = peg$FAILED;
|
|
18971
|
+
}
|
|
18972
|
+
} else {
|
|
18973
|
+
peg$currPos = s2;
|
|
18974
|
+
s2 = peg$FAILED;
|
|
18975
|
+
}
|
|
18774
18976
|
peg$silentFails--;
|
|
18775
18977
|
if (s2 !== peg$FAILED) {
|
|
18776
18978
|
peg$currPos = s1;
|
|
@@ -18779,17 +18981,31 @@ function peg$parse(input, options) {
|
|
|
18779
18981
|
s1 = peg$FAILED;
|
|
18780
18982
|
}
|
|
18781
18983
|
if (s1 !== peg$FAILED) {
|
|
18782
|
-
s1 = peg$
|
|
18984
|
+
s1 = peg$f29();
|
|
18783
18985
|
}
|
|
18784
18986
|
s0 = s1;
|
|
18785
18987
|
return s0;
|
|
18786
18988
|
}
|
|
18787
18989
|
function peg$parseLetteredListLowerContainer() {
|
|
18788
|
-
let s0, s1, s2;
|
|
18990
|
+
let s0, s1, s2, s3, s4;
|
|
18789
18991
|
s0 = peg$currPos;
|
|
18790
18992
|
s1 = peg$currPos;
|
|
18791
18993
|
peg$silentFails++;
|
|
18792
|
-
s2 = peg$
|
|
18994
|
+
s2 = peg$currPos;
|
|
18995
|
+
s3 = peg$parseSAMEDENT();
|
|
18996
|
+
if (s3 !== peg$FAILED) {
|
|
18997
|
+
s4 = peg$parseLetteredListLowerTag();
|
|
18998
|
+
if (s4 !== peg$FAILED) {
|
|
18999
|
+
s3 = [s3, s4];
|
|
19000
|
+
s2 = s3;
|
|
19001
|
+
} else {
|
|
19002
|
+
peg$currPos = s2;
|
|
19003
|
+
s2 = peg$FAILED;
|
|
19004
|
+
}
|
|
19005
|
+
} else {
|
|
19006
|
+
peg$currPos = s2;
|
|
19007
|
+
s2 = peg$FAILED;
|
|
19008
|
+
}
|
|
18793
19009
|
peg$silentFails--;
|
|
18794
19010
|
if (s2 !== peg$FAILED) {
|
|
18795
19011
|
peg$currPos = s1;
|
|
@@ -18798,17 +19014,31 @@ function peg$parse(input, options) {
|
|
|
18798
19014
|
s1 = peg$FAILED;
|
|
18799
19015
|
}
|
|
18800
19016
|
if (s1 !== peg$FAILED) {
|
|
18801
|
-
s1 = peg$
|
|
19017
|
+
s1 = peg$f30();
|
|
18802
19018
|
}
|
|
18803
19019
|
s0 = s1;
|
|
18804
19020
|
return s0;
|
|
18805
19021
|
}
|
|
18806
19022
|
function peg$parseTaskListContainer() {
|
|
18807
|
-
let s0, s1, s2;
|
|
19023
|
+
let s0, s1, s2, s3, s4;
|
|
18808
19024
|
s0 = peg$currPos;
|
|
18809
19025
|
s1 = peg$currPos;
|
|
18810
19026
|
peg$silentFails++;
|
|
18811
|
-
s2 = peg$
|
|
19027
|
+
s2 = peg$currPos;
|
|
19028
|
+
s3 = peg$parseSAMEDENT();
|
|
19029
|
+
if (s3 !== peg$FAILED) {
|
|
19030
|
+
s4 = peg$parseTaskListTag();
|
|
19031
|
+
if (s4 !== peg$FAILED) {
|
|
19032
|
+
s3 = [s3, s4];
|
|
19033
|
+
s2 = s3;
|
|
19034
|
+
} else {
|
|
19035
|
+
peg$currPos = s2;
|
|
19036
|
+
s2 = peg$FAILED;
|
|
19037
|
+
}
|
|
19038
|
+
} else {
|
|
19039
|
+
peg$currPos = s2;
|
|
19040
|
+
s2 = peg$FAILED;
|
|
19041
|
+
}
|
|
18812
19042
|
peg$silentFails--;
|
|
18813
19043
|
if (s2 !== peg$FAILED) {
|
|
18814
19044
|
peg$currPos = s1;
|
|
@@ -18817,7 +19047,7 @@ function peg$parse(input, options) {
|
|
|
18817
19047
|
s1 = peg$FAILED;
|
|
18818
19048
|
}
|
|
18819
19049
|
if (s1 !== peg$FAILED) {
|
|
18820
|
-
s1 = peg$
|
|
19050
|
+
s1 = peg$f31();
|
|
18821
19051
|
}
|
|
18822
19052
|
s0 = s1;
|
|
18823
19053
|
return s0;
|
|
@@ -18923,7 +19153,7 @@ function peg$parse(input, options) {
|
|
|
18923
19153
|
}
|
|
18924
19154
|
s8 = peg$parseDEDENT();
|
|
18925
19155
|
if (s8 !== peg$FAILED) {
|
|
18926
|
-
s5 = peg$
|
|
19156
|
+
s5 = peg$f32(s2, s3, s4, s7);
|
|
18927
19157
|
} else {
|
|
18928
19158
|
peg$currPos = s5;
|
|
18929
19159
|
s5 = peg$FAILED;
|
|
@@ -18935,7 +19165,7 @@ function peg$parse(input, options) {
|
|
|
18935
19165
|
if (s5 === peg$FAILED) {
|
|
18936
19166
|
s5 = null;
|
|
18937
19167
|
}
|
|
18938
|
-
s0 = peg$
|
|
19168
|
+
s0 = peg$f33(s2, s3, s4, s5);
|
|
18939
19169
|
} else {
|
|
18940
19170
|
peg$currPos = s0;
|
|
18941
19171
|
s0 = peg$FAILED;
|
|
@@ -19066,7 +19296,7 @@ function peg$parse(input, options) {
|
|
|
19066
19296
|
s4 = s5;
|
|
19067
19297
|
}
|
|
19068
19298
|
if (s4 !== peg$FAILED) {
|
|
19069
|
-
s0 = peg$
|
|
19299
|
+
s0 = peg$f34(s4);
|
|
19070
19300
|
} else {
|
|
19071
19301
|
peg$currPos = s0;
|
|
19072
19302
|
s0 = peg$FAILED;
|
|
@@ -19095,7 +19325,7 @@ function peg$parse(input, options) {
|
|
|
19095
19325
|
} else {
|
|
19096
19326
|
s2 = peg$FAILED;
|
|
19097
19327
|
if (peg$silentFails === 0) {
|
|
19098
|
-
peg$fail(peg$
|
|
19328
|
+
peg$fail(peg$e8);
|
|
19099
19329
|
}
|
|
19100
19330
|
}
|
|
19101
19331
|
while (s2 !== peg$FAILED) {
|
|
@@ -19106,7 +19336,7 @@ function peg$parse(input, options) {
|
|
|
19106
19336
|
} else {
|
|
19107
19337
|
s2 = peg$FAILED;
|
|
19108
19338
|
if (peg$silentFails === 0) {
|
|
19109
|
-
peg$fail(peg$
|
|
19339
|
+
peg$fail(peg$e8);
|
|
19110
19340
|
}
|
|
19111
19341
|
}
|
|
19112
19342
|
}
|
|
@@ -19125,27 +19355,27 @@ function peg$parse(input, options) {
|
|
|
19125
19355
|
s0 = peg$currPos;
|
|
19126
19356
|
s1 = [];
|
|
19127
19357
|
if (input.charCodeAt(peg$currPos) === 9) {
|
|
19128
|
-
s2 = peg$
|
|
19358
|
+
s2 = peg$c0;
|
|
19129
19359
|
peg$currPos++;
|
|
19130
19360
|
} else {
|
|
19131
19361
|
s2 = peg$FAILED;
|
|
19132
19362
|
if (peg$silentFails === 0) {
|
|
19133
|
-
peg$fail(peg$
|
|
19363
|
+
peg$fail(peg$e2);
|
|
19134
19364
|
}
|
|
19135
19365
|
}
|
|
19136
19366
|
while (s2 !== peg$FAILED) {
|
|
19137
19367
|
s1.push(s2);
|
|
19138
19368
|
if (input.charCodeAt(peg$currPos) === 9) {
|
|
19139
|
-
s2 = peg$
|
|
19369
|
+
s2 = peg$c0;
|
|
19140
19370
|
peg$currPos++;
|
|
19141
19371
|
} else {
|
|
19142
19372
|
s2 = peg$FAILED;
|
|
19143
19373
|
if (peg$silentFails === 0) {
|
|
19144
|
-
peg$fail(peg$
|
|
19374
|
+
peg$fail(peg$e2);
|
|
19145
19375
|
}
|
|
19146
19376
|
}
|
|
19147
19377
|
}
|
|
19148
|
-
s2 = peg$
|
|
19378
|
+
s2 = peg$f35(s1);
|
|
19149
19379
|
if (s2) {
|
|
19150
19380
|
s2 = void 0;
|
|
19151
19381
|
} else {
|
|
@@ -19167,24 +19397,24 @@ function peg$parse(input, options) {
|
|
|
19167
19397
|
s1 = peg$currPos;
|
|
19168
19398
|
s2 = [];
|
|
19169
19399
|
if (input.charCodeAt(peg$currPos) === 9) {
|
|
19170
|
-
s3 = peg$
|
|
19400
|
+
s3 = peg$c0;
|
|
19171
19401
|
peg$currPos++;
|
|
19172
19402
|
} else {
|
|
19173
19403
|
s3 = peg$FAILED;
|
|
19174
19404
|
if (peg$silentFails === 0) {
|
|
19175
|
-
peg$fail(peg$
|
|
19405
|
+
peg$fail(peg$e2);
|
|
19176
19406
|
}
|
|
19177
19407
|
}
|
|
19178
19408
|
if (s3 !== peg$FAILED) {
|
|
19179
19409
|
while (s3 !== peg$FAILED) {
|
|
19180
19410
|
s2.push(s3);
|
|
19181
19411
|
if (input.charCodeAt(peg$currPos) === 9) {
|
|
19182
|
-
s3 = peg$
|
|
19412
|
+
s3 = peg$c0;
|
|
19183
19413
|
peg$currPos++;
|
|
19184
19414
|
} else {
|
|
19185
19415
|
s3 = peg$FAILED;
|
|
19186
19416
|
if (peg$silentFails === 0) {
|
|
19187
|
-
peg$fail(peg$
|
|
19417
|
+
peg$fail(peg$e2);
|
|
19188
19418
|
}
|
|
19189
19419
|
}
|
|
19190
19420
|
}
|
|
@@ -19192,14 +19422,14 @@ function peg$parse(input, options) {
|
|
|
19192
19422
|
s2 = peg$FAILED;
|
|
19193
19423
|
}
|
|
19194
19424
|
if (s2 !== peg$FAILED) {
|
|
19195
|
-
s3 = peg$
|
|
19425
|
+
s3 = peg$f36(s2);
|
|
19196
19426
|
if (s3) {
|
|
19197
19427
|
s3 = void 0;
|
|
19198
19428
|
} else {
|
|
19199
19429
|
s3 = peg$FAILED;
|
|
19200
19430
|
}
|
|
19201
19431
|
if (s3 !== peg$FAILED) {
|
|
19202
|
-
s1 = peg$
|
|
19432
|
+
s1 = peg$f37(s2);
|
|
19203
19433
|
} else {
|
|
19204
19434
|
peg$currPos = s1;
|
|
19205
19435
|
s1 = peg$FAILED;
|
|
@@ -19219,7 +19449,7 @@ function peg$parse(input, options) {
|
|
|
19219
19449
|
}
|
|
19220
19450
|
function peg$parseDEDENT() {
|
|
19221
19451
|
let s0;
|
|
19222
|
-
s0 = peg$
|
|
19452
|
+
s0 = peg$f38();
|
|
19223
19453
|
if (s0) {
|
|
19224
19454
|
s0 = void 0;
|
|
19225
19455
|
} else {
|
|
@@ -19243,7 +19473,7 @@ function peg$parse(input, options) {
|
|
|
19243
19473
|
if (s1 !== peg$FAILED) {
|
|
19244
19474
|
s2 = peg$parseParagraphBody();
|
|
19245
19475
|
if (s2 !== peg$FAILED) {
|
|
19246
|
-
s0 = peg$
|
|
19476
|
+
s0 = peg$f39(s2);
|
|
19247
19477
|
} else {
|
|
19248
19478
|
peg$currPos = s0;
|
|
19249
19479
|
s0 = peg$FAILED;
|
|
@@ -19258,7 +19488,7 @@ function peg$parse(input, options) {
|
|
|
19258
19488
|
if (s1 !== peg$FAILED) {
|
|
19259
19489
|
s2 = peg$parseParagraphBody();
|
|
19260
19490
|
if (s2 !== peg$FAILED) {
|
|
19261
|
-
s0 = peg$
|
|
19491
|
+
s0 = peg$f40(s2);
|
|
19262
19492
|
} else {
|
|
19263
19493
|
peg$currPos = s0;
|
|
19264
19494
|
s0 = peg$FAILED;
|
|
@@ -19272,7 +19502,7 @@ function peg$parse(input, options) {
|
|
|
19272
19502
|
s1 = peg$parseExplicitParagraphHeader();
|
|
19273
19503
|
if (s1 !== peg$FAILED) {
|
|
19274
19504
|
s2 = "";
|
|
19275
|
-
s0 = peg$
|
|
19505
|
+
s0 = peg$f41(s2);
|
|
19276
19506
|
} else {
|
|
19277
19507
|
peg$currPos = s0;
|
|
19278
19508
|
s0 = peg$FAILED;
|
|
@@ -19375,7 +19605,7 @@ function peg$parse(input, options) {
|
|
|
19375
19605
|
} else {
|
|
19376
19606
|
s5 = peg$FAILED;
|
|
19377
19607
|
if (peg$silentFails === 0) {
|
|
19378
|
-
peg$fail(peg$
|
|
19608
|
+
peg$fail(peg$e8);
|
|
19379
19609
|
}
|
|
19380
19610
|
}
|
|
19381
19611
|
while (s5 !== peg$FAILED) {
|
|
@@ -19386,7 +19616,7 @@ function peg$parse(input, options) {
|
|
|
19386
19616
|
} else {
|
|
19387
19617
|
s5 = peg$FAILED;
|
|
19388
19618
|
if (peg$silentFails === 0) {
|
|
19389
|
-
peg$fail(peg$
|
|
19619
|
+
peg$fail(peg$e8);
|
|
19390
19620
|
}
|
|
19391
19621
|
}
|
|
19392
19622
|
}
|
|
@@ -19440,7 +19670,7 @@ function peg$parse(input, options) {
|
|
|
19440
19670
|
if (s1 !== peg$FAILED) {
|
|
19441
19671
|
s2 = peg$parseImageType();
|
|
19442
19672
|
if (s2 !== peg$FAILED) {
|
|
19443
|
-
s0 = peg$
|
|
19673
|
+
s0 = peg$f42(s2);
|
|
19444
19674
|
} else {
|
|
19445
19675
|
peg$currPos = s0;
|
|
19446
19676
|
s0 = peg$FAILED;
|
|
@@ -19457,12 +19687,12 @@ function peg$parse(input, options) {
|
|
|
19457
19687
|
s1 = peg$parseImageTag();
|
|
19458
19688
|
if (s1 !== peg$FAILED) {
|
|
19459
19689
|
if (input.charCodeAt(peg$currPos) === 58) {
|
|
19460
|
-
s2 = peg$
|
|
19690
|
+
s2 = peg$c6;
|
|
19461
19691
|
peg$currPos++;
|
|
19462
19692
|
} else {
|
|
19463
19693
|
s2 = peg$FAILED;
|
|
19464
19694
|
if (peg$silentFails === 0) {
|
|
19465
|
-
peg$fail(peg$
|
|
19695
|
+
peg$fail(peg$e9);
|
|
19466
19696
|
}
|
|
19467
19697
|
}
|
|
19468
19698
|
if (s2 !== peg$FAILED) {
|
|
@@ -19470,30 +19700,30 @@ function peg$parse(input, options) {
|
|
|
19470
19700
|
peg$currPos++;
|
|
19471
19701
|
} else {
|
|
19472
19702
|
if (peg$silentFails === 0) {
|
|
19473
|
-
peg$fail(peg$
|
|
19703
|
+
peg$fail(peg$e17);
|
|
19474
19704
|
}
|
|
19475
19705
|
}
|
|
19476
19706
|
s4 = peg$parseUrlHttp();
|
|
19477
19707
|
if (s4 !== peg$FAILED) {
|
|
19478
19708
|
s5 = [];
|
|
19479
19709
|
if (input.charCodeAt(peg$currPos) === 32) {
|
|
19480
|
-
s6 = peg$
|
|
19710
|
+
s6 = peg$c13;
|
|
19481
19711
|
peg$currPos++;
|
|
19482
19712
|
} else {
|
|
19483
19713
|
s6 = peg$FAILED;
|
|
19484
19714
|
if (peg$silentFails === 0) {
|
|
19485
|
-
peg$fail(peg$
|
|
19715
|
+
peg$fail(peg$e17);
|
|
19486
19716
|
}
|
|
19487
19717
|
}
|
|
19488
19718
|
while (s6 !== peg$FAILED) {
|
|
19489
19719
|
s5.push(s6);
|
|
19490
19720
|
if (input.charCodeAt(peg$currPos) === 32) {
|
|
19491
|
-
s6 = peg$
|
|
19721
|
+
s6 = peg$c13;
|
|
19492
19722
|
peg$currPos++;
|
|
19493
19723
|
} else {
|
|
19494
19724
|
s6 = peg$FAILED;
|
|
19495
19725
|
if (peg$silentFails === 0) {
|
|
19496
|
-
peg$fail(peg$
|
|
19726
|
+
peg$fail(peg$e17);
|
|
19497
19727
|
}
|
|
19498
19728
|
}
|
|
19499
19729
|
}
|
|
@@ -19509,7 +19739,7 @@ function peg$parse(input, options) {
|
|
|
19509
19739
|
} else {
|
|
19510
19740
|
s11 = peg$FAILED;
|
|
19511
19741
|
if (peg$silentFails === 0) {
|
|
19512
|
-
peg$fail(peg$
|
|
19742
|
+
peg$fail(peg$e8);
|
|
19513
19743
|
}
|
|
19514
19744
|
}
|
|
19515
19745
|
while (s11 !== peg$FAILED) {
|
|
@@ -19520,7 +19750,7 @@ function peg$parse(input, options) {
|
|
|
19520
19750
|
} else {
|
|
19521
19751
|
s11 = peg$FAILED;
|
|
19522
19752
|
if (peg$silentFails === 0) {
|
|
19523
|
-
peg$fail(peg$
|
|
19753
|
+
peg$fail(peg$e8);
|
|
19524
19754
|
}
|
|
19525
19755
|
}
|
|
19526
19756
|
}
|
|
@@ -19542,7 +19772,7 @@ function peg$parse(input, options) {
|
|
|
19542
19772
|
if (s9 === peg$FAILED) {
|
|
19543
19773
|
s9 = null;
|
|
19544
19774
|
}
|
|
19545
|
-
s0 = peg$
|
|
19775
|
+
s0 = peg$f43(s1, s4, s7);
|
|
19546
19776
|
} else {
|
|
19547
19777
|
peg$currPos = s0;
|
|
19548
19778
|
s0 = peg$FAILED;
|
|
@@ -19574,7 +19804,7 @@ function peg$parse(input, options) {
|
|
|
19574
19804
|
s1.push(s2);
|
|
19575
19805
|
s2 = peg$parseMediaChainItem();
|
|
19576
19806
|
}
|
|
19577
|
-
s1 = peg$
|
|
19807
|
+
s1 = peg$f44(s1);
|
|
19578
19808
|
s0 = s1;
|
|
19579
19809
|
return s0;
|
|
19580
19810
|
}
|
|
@@ -19647,7 +19877,7 @@ function peg$parse(input, options) {
|
|
|
19647
19877
|
s2 = input.substring(s2, peg$currPos);
|
|
19648
19878
|
s3 = peg$parseBlockTag();
|
|
19649
19879
|
if (s3 !== peg$FAILED) {
|
|
19650
|
-
s0 = peg$
|
|
19880
|
+
s0 = peg$f45(s2);
|
|
19651
19881
|
} else {
|
|
19652
19882
|
peg$currPos = s0;
|
|
19653
19883
|
s0 = peg$FAILED;
|
|
@@ -19673,34 +19903,34 @@ function peg$parse(input, options) {
|
|
|
19673
19903
|
s2 = peg$parseMediaSizeTags();
|
|
19674
19904
|
if (s2 !== peg$FAILED) {
|
|
19675
19905
|
if (input.charCodeAt(peg$currPos) === 58) {
|
|
19676
|
-
s3 = peg$
|
|
19906
|
+
s3 = peg$c6;
|
|
19677
19907
|
peg$currPos++;
|
|
19678
19908
|
} else {
|
|
19679
19909
|
s3 = peg$FAILED;
|
|
19680
19910
|
if (peg$silentFails === 0) {
|
|
19681
|
-
peg$fail(peg$
|
|
19911
|
+
peg$fail(peg$e9);
|
|
19682
19912
|
}
|
|
19683
19913
|
}
|
|
19684
19914
|
if (s3 !== peg$FAILED) {
|
|
19685
19915
|
s4 = [];
|
|
19686
19916
|
if (input.charCodeAt(peg$currPos) === 32) {
|
|
19687
|
-
s5 = peg$
|
|
19917
|
+
s5 = peg$c13;
|
|
19688
19918
|
peg$currPos++;
|
|
19689
19919
|
} else {
|
|
19690
19920
|
s5 = peg$FAILED;
|
|
19691
19921
|
if (peg$silentFails === 0) {
|
|
19692
|
-
peg$fail(peg$
|
|
19922
|
+
peg$fail(peg$e17);
|
|
19693
19923
|
}
|
|
19694
19924
|
}
|
|
19695
19925
|
while (s5 !== peg$FAILED) {
|
|
19696
19926
|
s4.push(s5);
|
|
19697
19927
|
if (input.charCodeAt(peg$currPos) === 32) {
|
|
19698
|
-
s5 = peg$
|
|
19928
|
+
s5 = peg$c13;
|
|
19699
19929
|
peg$currPos++;
|
|
19700
19930
|
} else {
|
|
19701
19931
|
s5 = peg$FAILED;
|
|
19702
19932
|
if (peg$silentFails === 0) {
|
|
19703
|
-
peg$fail(peg$
|
|
19933
|
+
peg$fail(peg$e17);
|
|
19704
19934
|
}
|
|
19705
19935
|
}
|
|
19706
19936
|
}
|
|
@@ -19724,7 +19954,7 @@ function peg$parse(input, options) {
|
|
|
19724
19954
|
} else {
|
|
19725
19955
|
s9 = peg$FAILED;
|
|
19726
19956
|
if (peg$silentFails === 0) {
|
|
19727
|
-
peg$fail(peg$
|
|
19957
|
+
peg$fail(peg$e16);
|
|
19728
19958
|
}
|
|
19729
19959
|
}
|
|
19730
19960
|
if (s9 !== peg$FAILED) {
|
|
@@ -19759,7 +19989,7 @@ function peg$parse(input, options) {
|
|
|
19759
19989
|
} else {
|
|
19760
19990
|
s9 = peg$FAILED;
|
|
19761
19991
|
if (peg$silentFails === 0) {
|
|
19762
|
-
peg$fail(peg$
|
|
19992
|
+
peg$fail(peg$e16);
|
|
19763
19993
|
}
|
|
19764
19994
|
}
|
|
19765
19995
|
if (s9 !== peg$FAILED) {
|
|
@@ -19785,29 +20015,29 @@ function peg$parse(input, options) {
|
|
|
19785
20015
|
if (s5 !== peg$FAILED) {
|
|
19786
20016
|
s6 = [];
|
|
19787
20017
|
if (input.charCodeAt(peg$currPos) === 32) {
|
|
19788
|
-
s7 = peg$
|
|
20018
|
+
s7 = peg$c13;
|
|
19789
20019
|
peg$currPos++;
|
|
19790
20020
|
} else {
|
|
19791
20021
|
s7 = peg$FAILED;
|
|
19792
20022
|
if (peg$silentFails === 0) {
|
|
19793
|
-
peg$fail(peg$
|
|
20023
|
+
peg$fail(peg$e17);
|
|
19794
20024
|
}
|
|
19795
20025
|
}
|
|
19796
20026
|
while (s7 !== peg$FAILED) {
|
|
19797
20027
|
s6.push(s7);
|
|
19798
20028
|
if (input.charCodeAt(peg$currPos) === 32) {
|
|
19799
|
-
s7 = peg$
|
|
20029
|
+
s7 = peg$c13;
|
|
19800
20030
|
peg$currPos++;
|
|
19801
20031
|
} else {
|
|
19802
20032
|
s7 = peg$FAILED;
|
|
19803
20033
|
if (peg$silentFails === 0) {
|
|
19804
|
-
peg$fail(peg$
|
|
20034
|
+
peg$fail(peg$e17);
|
|
19805
20035
|
}
|
|
19806
20036
|
}
|
|
19807
20037
|
}
|
|
19808
20038
|
s7 = peg$parseBlockTag();
|
|
19809
20039
|
if (s7 !== peg$FAILED) {
|
|
19810
|
-
s0 = peg$
|
|
20040
|
+
s0 = peg$f46(s2, s5);
|
|
19811
20041
|
} else {
|
|
19812
20042
|
peg$currPos = s0;
|
|
19813
20043
|
s0 = peg$FAILED;
|
|
@@ -19841,34 +20071,34 @@ function peg$parse(input, options) {
|
|
|
19841
20071
|
s2 = peg$parseMediaTextTags();
|
|
19842
20072
|
if (s2 !== peg$FAILED) {
|
|
19843
20073
|
if (input.charCodeAt(peg$currPos) === 58) {
|
|
19844
|
-
s3 = peg$
|
|
20074
|
+
s3 = peg$c6;
|
|
19845
20075
|
peg$currPos++;
|
|
19846
20076
|
} else {
|
|
19847
20077
|
s3 = peg$FAILED;
|
|
19848
20078
|
if (peg$silentFails === 0) {
|
|
19849
|
-
peg$fail(peg$
|
|
20079
|
+
peg$fail(peg$e9);
|
|
19850
20080
|
}
|
|
19851
20081
|
}
|
|
19852
20082
|
if (s3 !== peg$FAILED) {
|
|
19853
20083
|
s4 = [];
|
|
19854
20084
|
if (input.charCodeAt(peg$currPos) === 32) {
|
|
19855
|
-
s5 = peg$
|
|
20085
|
+
s5 = peg$c13;
|
|
19856
20086
|
peg$currPos++;
|
|
19857
20087
|
} else {
|
|
19858
20088
|
s5 = peg$FAILED;
|
|
19859
20089
|
if (peg$silentFails === 0) {
|
|
19860
|
-
peg$fail(peg$
|
|
20090
|
+
peg$fail(peg$e17);
|
|
19861
20091
|
}
|
|
19862
20092
|
}
|
|
19863
20093
|
while (s5 !== peg$FAILED) {
|
|
19864
20094
|
s4.push(s5);
|
|
19865
20095
|
if (input.charCodeAt(peg$currPos) === 32) {
|
|
19866
|
-
s5 = peg$
|
|
20096
|
+
s5 = peg$c13;
|
|
19867
20097
|
peg$currPos++;
|
|
19868
20098
|
} else {
|
|
19869
20099
|
s5 = peg$FAILED;
|
|
19870
20100
|
if (peg$silentFails === 0) {
|
|
19871
|
-
peg$fail(peg$
|
|
20101
|
+
peg$fail(peg$e17);
|
|
19872
20102
|
}
|
|
19873
20103
|
}
|
|
19874
20104
|
}
|
|
@@ -19928,7 +20158,7 @@ function peg$parse(input, options) {
|
|
|
19928
20158
|
s5 = input.substring(s5, peg$currPos);
|
|
19929
20159
|
s6 = peg$parseBlockTag();
|
|
19930
20160
|
if (s6 !== peg$FAILED) {
|
|
19931
|
-
s0 = peg$
|
|
20161
|
+
s0 = peg$f47(s2, s5);
|
|
19932
20162
|
} else {
|
|
19933
20163
|
peg$currPos = s0;
|
|
19934
20164
|
s0 = peg$FAILED;
|
|
@@ -19958,34 +20188,34 @@ function peg$parse(input, options) {
|
|
|
19958
20188
|
s2 = peg$parseMediaAlignmentTags();
|
|
19959
20189
|
if (s2 !== peg$FAILED) {
|
|
19960
20190
|
if (input.charCodeAt(peg$currPos) === 58) {
|
|
19961
|
-
s3 = peg$
|
|
20191
|
+
s3 = peg$c6;
|
|
19962
20192
|
peg$currPos++;
|
|
19963
20193
|
} else {
|
|
19964
20194
|
s3 = peg$FAILED;
|
|
19965
20195
|
if (peg$silentFails === 0) {
|
|
19966
|
-
peg$fail(peg$
|
|
20196
|
+
peg$fail(peg$e9);
|
|
19967
20197
|
}
|
|
19968
20198
|
}
|
|
19969
20199
|
if (s3 !== peg$FAILED) {
|
|
19970
20200
|
s4 = [];
|
|
19971
20201
|
if (input.charCodeAt(peg$currPos) === 32) {
|
|
19972
|
-
s5 = peg$
|
|
20202
|
+
s5 = peg$c13;
|
|
19973
20203
|
peg$currPos++;
|
|
19974
20204
|
} else {
|
|
19975
20205
|
s5 = peg$FAILED;
|
|
19976
20206
|
if (peg$silentFails === 0) {
|
|
19977
|
-
peg$fail(peg$
|
|
20207
|
+
peg$fail(peg$e17);
|
|
19978
20208
|
}
|
|
19979
20209
|
}
|
|
19980
20210
|
while (s5 !== peg$FAILED) {
|
|
19981
20211
|
s4.push(s5);
|
|
19982
20212
|
if (input.charCodeAt(peg$currPos) === 32) {
|
|
19983
|
-
s5 = peg$
|
|
20213
|
+
s5 = peg$c13;
|
|
19984
20214
|
peg$currPos++;
|
|
19985
20215
|
} else {
|
|
19986
20216
|
s5 = peg$FAILED;
|
|
19987
20217
|
if (peg$silentFails === 0) {
|
|
19988
|
-
peg$fail(peg$
|
|
20218
|
+
peg$fail(peg$e17);
|
|
19989
20219
|
}
|
|
19990
20220
|
}
|
|
19991
20221
|
}
|
|
@@ -19993,29 +20223,29 @@ function peg$parse(input, options) {
|
|
|
19993
20223
|
if (s5 !== peg$FAILED) {
|
|
19994
20224
|
s6 = [];
|
|
19995
20225
|
if (input.charCodeAt(peg$currPos) === 32) {
|
|
19996
|
-
s7 = peg$
|
|
20226
|
+
s7 = peg$c13;
|
|
19997
20227
|
peg$currPos++;
|
|
19998
20228
|
} else {
|
|
19999
20229
|
s7 = peg$FAILED;
|
|
20000
20230
|
if (peg$silentFails === 0) {
|
|
20001
|
-
peg$fail(peg$
|
|
20231
|
+
peg$fail(peg$e17);
|
|
20002
20232
|
}
|
|
20003
20233
|
}
|
|
20004
20234
|
while (s7 !== peg$FAILED) {
|
|
20005
20235
|
s6.push(s7);
|
|
20006
20236
|
if (input.charCodeAt(peg$currPos) === 32) {
|
|
20007
|
-
s7 = peg$
|
|
20237
|
+
s7 = peg$c13;
|
|
20008
20238
|
peg$currPos++;
|
|
20009
20239
|
} else {
|
|
20010
20240
|
s7 = peg$FAILED;
|
|
20011
20241
|
if (peg$silentFails === 0) {
|
|
20012
|
-
peg$fail(peg$
|
|
20242
|
+
peg$fail(peg$e17);
|
|
20013
20243
|
}
|
|
20014
20244
|
}
|
|
20015
20245
|
}
|
|
20016
20246
|
s7 = peg$parseBlockTag();
|
|
20017
20247
|
if (s7 !== peg$FAILED) {
|
|
20018
|
-
s0 = peg$
|
|
20248
|
+
s0 = peg$f48(s2, s5);
|
|
20019
20249
|
} else {
|
|
20020
20250
|
peg$currPos = s0;
|
|
20021
20251
|
s0 = peg$FAILED;
|
|
@@ -20049,34 +20279,34 @@ function peg$parse(input, options) {
|
|
|
20049
20279
|
s2 = peg$parseMediaBooleanTags();
|
|
20050
20280
|
if (s2 !== peg$FAILED) {
|
|
20051
20281
|
if (input.charCodeAt(peg$currPos) === 58) {
|
|
20052
|
-
s3 = peg$
|
|
20282
|
+
s3 = peg$c6;
|
|
20053
20283
|
peg$currPos++;
|
|
20054
20284
|
} else {
|
|
20055
20285
|
s3 = peg$FAILED;
|
|
20056
20286
|
if (peg$silentFails === 0) {
|
|
20057
|
-
peg$fail(peg$
|
|
20287
|
+
peg$fail(peg$e9);
|
|
20058
20288
|
}
|
|
20059
20289
|
}
|
|
20060
20290
|
if (s3 !== peg$FAILED) {
|
|
20061
20291
|
s4 = [];
|
|
20062
20292
|
if (input.charCodeAt(peg$currPos) === 32) {
|
|
20063
|
-
s5 = peg$
|
|
20293
|
+
s5 = peg$c13;
|
|
20064
20294
|
peg$currPos++;
|
|
20065
20295
|
} else {
|
|
20066
20296
|
s5 = peg$FAILED;
|
|
20067
20297
|
if (peg$silentFails === 0) {
|
|
20068
|
-
peg$fail(peg$
|
|
20298
|
+
peg$fail(peg$e17);
|
|
20069
20299
|
}
|
|
20070
20300
|
}
|
|
20071
20301
|
while (s5 !== peg$FAILED) {
|
|
20072
20302
|
s4.push(s5);
|
|
20073
20303
|
if (input.charCodeAt(peg$currPos) === 32) {
|
|
20074
|
-
s5 = peg$
|
|
20304
|
+
s5 = peg$c13;
|
|
20075
20305
|
peg$currPos++;
|
|
20076
20306
|
} else {
|
|
20077
20307
|
s5 = peg$FAILED;
|
|
20078
20308
|
if (peg$silentFails === 0) {
|
|
20079
|
-
peg$fail(peg$
|
|
20309
|
+
peg$fail(peg$e17);
|
|
20080
20310
|
}
|
|
20081
20311
|
}
|
|
20082
20312
|
}
|
|
@@ -20084,29 +20314,29 @@ function peg$parse(input, options) {
|
|
|
20084
20314
|
if (s5 !== peg$FAILED) {
|
|
20085
20315
|
s6 = [];
|
|
20086
20316
|
if (input.charCodeAt(peg$currPos) === 32) {
|
|
20087
|
-
s7 = peg$
|
|
20317
|
+
s7 = peg$c13;
|
|
20088
20318
|
peg$currPos++;
|
|
20089
20319
|
} else {
|
|
20090
20320
|
s7 = peg$FAILED;
|
|
20091
20321
|
if (peg$silentFails === 0) {
|
|
20092
|
-
peg$fail(peg$
|
|
20322
|
+
peg$fail(peg$e17);
|
|
20093
20323
|
}
|
|
20094
20324
|
}
|
|
20095
20325
|
while (s7 !== peg$FAILED) {
|
|
20096
20326
|
s6.push(s7);
|
|
20097
20327
|
if (input.charCodeAt(peg$currPos) === 32) {
|
|
20098
|
-
s7 = peg$
|
|
20328
|
+
s7 = peg$c13;
|
|
20099
20329
|
peg$currPos++;
|
|
20100
20330
|
} else {
|
|
20101
20331
|
s7 = peg$FAILED;
|
|
20102
20332
|
if (peg$silentFails === 0) {
|
|
20103
|
-
peg$fail(peg$
|
|
20333
|
+
peg$fail(peg$e17);
|
|
20104
20334
|
}
|
|
20105
20335
|
}
|
|
20106
20336
|
}
|
|
20107
20337
|
s7 = peg$parseBlockTag();
|
|
20108
20338
|
if (s7 !== peg$FAILED) {
|
|
20109
|
-
s0 = peg$
|
|
20339
|
+
s0 = peg$f49(s2, s5);
|
|
20110
20340
|
} else {
|
|
20111
20341
|
peg$currPos = s0;
|
|
20112
20342
|
s0 = peg$FAILED;
|
|
@@ -20141,29 +20371,29 @@ function peg$parse(input, options) {
|
|
|
20141
20371
|
if (s2 !== peg$FAILED) {
|
|
20142
20372
|
s3 = [];
|
|
20143
20373
|
if (input.charCodeAt(peg$currPos) === 32) {
|
|
20144
|
-
s4 = peg$
|
|
20374
|
+
s4 = peg$c13;
|
|
20145
20375
|
peg$currPos++;
|
|
20146
20376
|
} else {
|
|
20147
20377
|
s4 = peg$FAILED;
|
|
20148
20378
|
if (peg$silentFails === 0) {
|
|
20149
|
-
peg$fail(peg$
|
|
20379
|
+
peg$fail(peg$e17);
|
|
20150
20380
|
}
|
|
20151
20381
|
}
|
|
20152
20382
|
while (s4 !== peg$FAILED) {
|
|
20153
20383
|
s3.push(s4);
|
|
20154
20384
|
if (input.charCodeAt(peg$currPos) === 32) {
|
|
20155
|
-
s4 = peg$
|
|
20385
|
+
s4 = peg$c13;
|
|
20156
20386
|
peg$currPos++;
|
|
20157
20387
|
} else {
|
|
20158
20388
|
s4 = peg$FAILED;
|
|
20159
20389
|
if (peg$silentFails === 0) {
|
|
20160
|
-
peg$fail(peg$
|
|
20390
|
+
peg$fail(peg$e17);
|
|
20161
20391
|
}
|
|
20162
20392
|
}
|
|
20163
20393
|
}
|
|
20164
20394
|
s4 = peg$parseBlockTag();
|
|
20165
20395
|
if (s4 !== peg$FAILED) {
|
|
20166
|
-
s0 = peg$
|
|
20396
|
+
s0 = peg$f50(s2);
|
|
20167
20397
|
} else {
|
|
20168
20398
|
peg$currPos = s0;
|
|
20169
20399
|
s0 = peg$FAILED;
|
|
@@ -20188,7 +20418,7 @@ function peg$parse(input, options) {
|
|
|
20188
20418
|
}
|
|
20189
20419
|
s2 = peg$parseBlockTag();
|
|
20190
20420
|
if (s2 !== peg$FAILED) {
|
|
20191
|
-
s0 = peg$
|
|
20421
|
+
s0 = peg$f51();
|
|
20192
20422
|
} else {
|
|
20193
20423
|
peg$currPos = s0;
|
|
20194
20424
|
s0 = peg$FAILED;
|
|
@@ -20263,7 +20493,7 @@ function peg$parse(input, options) {
|
|
|
20263
20493
|
s2 = input.substring(s2, peg$currPos);
|
|
20264
20494
|
s3 = peg$parseBlockTag();
|
|
20265
20495
|
if (s3 !== peg$FAILED) {
|
|
20266
|
-
s0 = peg$
|
|
20496
|
+
s0 = peg$f52(s2);
|
|
20267
20497
|
} else {
|
|
20268
20498
|
peg$currPos = s0;
|
|
20269
20499
|
s0 = peg$FAILED;
|
|
@@ -20426,7 +20656,7 @@ function peg$parse(input, options) {
|
|
|
20426
20656
|
peg$silentFails++;
|
|
20427
20657
|
s0 = peg$currPos;
|
|
20428
20658
|
s1 = peg$parseInlineTags();
|
|
20429
|
-
s1 = peg$
|
|
20659
|
+
s1 = peg$f53(s1);
|
|
20430
20660
|
s0 = s1;
|
|
20431
20661
|
peg$silentFails--;
|
|
20432
20662
|
return s0;
|
|
@@ -20457,7 +20687,7 @@ function peg$parse(input, options) {
|
|
|
20457
20687
|
s3 = peg$parseInlinePlainText();
|
|
20458
20688
|
}
|
|
20459
20689
|
}
|
|
20460
|
-
s0 = peg$
|
|
20690
|
+
s0 = peg$f54(s1, s2);
|
|
20461
20691
|
return s0;
|
|
20462
20692
|
}
|
|
20463
20693
|
function peg$parseInlinePlainText() {
|
|
@@ -20465,7 +20695,7 @@ function peg$parse(input, options) {
|
|
|
20465
20695
|
s0 = peg$currPos;
|
|
20466
20696
|
s1 = peg$parseNL();
|
|
20467
20697
|
if (s1 !== peg$FAILED) {
|
|
20468
|
-
s1 = peg$
|
|
20698
|
+
s1 = peg$f55();
|
|
20469
20699
|
}
|
|
20470
20700
|
s0 = s1;
|
|
20471
20701
|
if (s0 === peg$FAILED) {
|
|
@@ -20593,7 +20823,7 @@ function peg$parse(input, options) {
|
|
|
20593
20823
|
s1 = s2;
|
|
20594
20824
|
}
|
|
20595
20825
|
if (s1 !== peg$FAILED) {
|
|
20596
|
-
s1 = peg$
|
|
20826
|
+
s1 = peg$f56(s1);
|
|
20597
20827
|
}
|
|
20598
20828
|
s0 = s1;
|
|
20599
20829
|
}
|
|
@@ -20644,7 +20874,7 @@ function peg$parse(input, options) {
|
|
|
20644
20874
|
} else {
|
|
20645
20875
|
s4 = peg$FAILED;
|
|
20646
20876
|
if (peg$silentFails === 0) {
|
|
20647
|
-
peg$fail(peg$
|
|
20877
|
+
peg$fail(peg$e16);
|
|
20648
20878
|
}
|
|
20649
20879
|
}
|
|
20650
20880
|
if (s4 !== peg$FAILED) {
|
|
@@ -20656,7 +20886,7 @@ function peg$parse(input, options) {
|
|
|
20656
20886
|
} else {
|
|
20657
20887
|
s4 = peg$FAILED;
|
|
20658
20888
|
if (peg$silentFails === 0) {
|
|
20659
|
-
peg$fail(peg$
|
|
20889
|
+
peg$fail(peg$e16);
|
|
20660
20890
|
}
|
|
20661
20891
|
}
|
|
20662
20892
|
}
|
|
@@ -20671,7 +20901,7 @@ function peg$parse(input, options) {
|
|
|
20671
20901
|
if (s2 !== peg$FAILED) {
|
|
20672
20902
|
s3 = peg$parseBodyBitCloseTag();
|
|
20673
20903
|
if (s3 !== peg$FAILED) {
|
|
20674
|
-
s0 = peg$
|
|
20904
|
+
s0 = peg$f57(s2);
|
|
20675
20905
|
} else {
|
|
20676
20906
|
peg$currPos = s0;
|
|
20677
20907
|
s0 = peg$FAILED;
|
|
@@ -20770,7 +21000,7 @@ function peg$parse(input, options) {
|
|
|
20770
21000
|
}
|
|
20771
21001
|
}
|
|
20772
21002
|
if (s4 !== peg$FAILED) {
|
|
20773
|
-
s0 = peg$
|
|
21003
|
+
s0 = peg$f58(s2);
|
|
20774
21004
|
} else {
|
|
20775
21005
|
peg$currPos = s0;
|
|
20776
21006
|
s0 = peg$FAILED;
|
|
@@ -20872,17 +21102,17 @@ function peg$parse(input, options) {
|
|
|
20872
21102
|
s5 = peg$parseUrl();
|
|
20873
21103
|
if (s5 !== peg$FAILED) {
|
|
20874
21104
|
if (input.charCodeAt(peg$currPos) === 124) {
|
|
20875
|
-
s6 = peg$
|
|
21105
|
+
s6 = peg$c1;
|
|
20876
21106
|
peg$currPos++;
|
|
20877
21107
|
} else {
|
|
20878
21108
|
s6 = peg$FAILED;
|
|
20879
21109
|
if (peg$silentFails === 0) {
|
|
20880
|
-
peg$fail(peg$
|
|
21110
|
+
peg$fail(peg$e3);
|
|
20881
21111
|
}
|
|
20882
21112
|
}
|
|
20883
21113
|
if (s6 !== peg$FAILED) {
|
|
20884
21114
|
s7 = peg$parseInlineMediaChain();
|
|
20885
|
-
s0 = peg$
|
|
21115
|
+
s0 = peg$f59(s2, s5, s7);
|
|
20886
21116
|
} else {
|
|
20887
21117
|
peg$currPos = s0;
|
|
20888
21118
|
s0 = peg$FAILED;
|
|
@@ -20981,7 +21211,7 @@ function peg$parse(input, options) {
|
|
|
20981
21211
|
if (s3 !== peg$FAILED) {
|
|
20982
21212
|
s4 = peg$parseAttrChain();
|
|
20983
21213
|
if (s4 !== peg$FAILED) {
|
|
20984
|
-
s0 = peg$
|
|
21214
|
+
s0 = peg$f60(s2, s4);
|
|
20985
21215
|
} else {
|
|
20986
21216
|
peg$currPos = s0;
|
|
20987
21217
|
s0 = peg$FAILED;
|
|
@@ -21070,7 +21300,7 @@ function peg$parse(input, options) {
|
|
|
21070
21300
|
s2 = input.substring(s2, peg$currPos);
|
|
21071
21301
|
s3 = peg$parseBoldTag();
|
|
21072
21302
|
if (s3 !== peg$FAILED) {
|
|
21073
|
-
s0 = peg$
|
|
21303
|
+
s0 = peg$f61(s2);
|
|
21074
21304
|
} else {
|
|
21075
21305
|
peg$currPos = s0;
|
|
21076
21306
|
s0 = peg$FAILED;
|
|
@@ -21155,7 +21385,7 @@ function peg$parse(input, options) {
|
|
|
21155
21385
|
s2 = input.substring(s2, peg$currPos);
|
|
21156
21386
|
s3 = peg$parseItalicTag();
|
|
21157
21387
|
if (s3 !== peg$FAILED) {
|
|
21158
|
-
s0 = peg$
|
|
21388
|
+
s0 = peg$f62(s2);
|
|
21159
21389
|
} else {
|
|
21160
21390
|
peg$currPos = s0;
|
|
21161
21391
|
s0 = peg$FAILED;
|
|
@@ -21240,7 +21470,7 @@ function peg$parse(input, options) {
|
|
|
21240
21470
|
s2 = input.substring(s2, peg$currPos);
|
|
21241
21471
|
s3 = peg$parseLightTag();
|
|
21242
21472
|
if (s3 !== peg$FAILED) {
|
|
21243
|
-
s0 = peg$
|
|
21473
|
+
s0 = peg$f63(s2);
|
|
21244
21474
|
} else {
|
|
21245
21475
|
peg$currPos = s0;
|
|
21246
21476
|
s0 = peg$FAILED;
|
|
@@ -21325,7 +21555,7 @@ function peg$parse(input, options) {
|
|
|
21325
21555
|
s2 = input.substring(s2, peg$currPos);
|
|
21326
21556
|
s3 = peg$parseHighlightTag();
|
|
21327
21557
|
if (s3 !== peg$FAILED) {
|
|
21328
|
-
s0 = peg$
|
|
21558
|
+
s0 = peg$f64(s2);
|
|
21329
21559
|
} else {
|
|
21330
21560
|
peg$currPos = s0;
|
|
21331
21561
|
s0 = peg$FAILED;
|
|
@@ -21338,7 +21568,7 @@ function peg$parse(input, options) {
|
|
|
21338
21568
|
s0 = peg$currPos;
|
|
21339
21569
|
s1 = peg$parseUrl();
|
|
21340
21570
|
if (s1 !== peg$FAILED) {
|
|
21341
|
-
s1 = peg$
|
|
21571
|
+
s1 = peg$f65(s1);
|
|
21342
21572
|
}
|
|
21343
21573
|
s0 = s1;
|
|
21344
21574
|
}
|
|
@@ -21453,12 +21683,12 @@ function peg$parse(input, options) {
|
|
|
21453
21683
|
let s0, s1, s2, s3;
|
|
21454
21684
|
s0 = peg$currPos;
|
|
21455
21685
|
if (input.charCodeAt(peg$currPos) === 124) {
|
|
21456
|
-
s1 = peg$
|
|
21686
|
+
s1 = peg$c1;
|
|
21457
21687
|
peg$currPos++;
|
|
21458
21688
|
} else {
|
|
21459
21689
|
s1 = peg$FAILED;
|
|
21460
21690
|
if (peg$silentFails === 0) {
|
|
21461
|
-
peg$fail(peg$
|
|
21691
|
+
peg$fail(peg$e3);
|
|
21462
21692
|
}
|
|
21463
21693
|
}
|
|
21464
21694
|
if (s1 !== peg$FAILED) {
|
|
@@ -21473,7 +21703,7 @@ function peg$parse(input, options) {
|
|
|
21473
21703
|
s2 = peg$FAILED;
|
|
21474
21704
|
}
|
|
21475
21705
|
if (s2 !== peg$FAILED) {
|
|
21476
|
-
s0 = peg$
|
|
21706
|
+
s0 = peg$f66(s2);
|
|
21477
21707
|
} else {
|
|
21478
21708
|
peg$currPos = s0;
|
|
21479
21709
|
s0 = peg$FAILED;
|
|
@@ -21493,7 +21723,7 @@ function peg$parse(input, options) {
|
|
|
21493
21723
|
s1.push(s2);
|
|
21494
21724
|
s2 = peg$parseInlineMediaChainItem();
|
|
21495
21725
|
}
|
|
21496
|
-
s1 = peg$
|
|
21726
|
+
s1 = peg$f67(s1);
|
|
21497
21727
|
s0 = s1;
|
|
21498
21728
|
return s0;
|
|
21499
21729
|
}
|
|
@@ -21566,7 +21796,7 @@ function peg$parse(input, options) {
|
|
|
21566
21796
|
s2 = input.substring(s2, peg$currPos);
|
|
21567
21797
|
s3 = peg$parseBlockTag();
|
|
21568
21798
|
if (s3 !== peg$FAILED) {
|
|
21569
|
-
s0 = peg$
|
|
21799
|
+
s0 = peg$f68(s2);
|
|
21570
21800
|
} else {
|
|
21571
21801
|
peg$currPos = s0;
|
|
21572
21802
|
s0 = peg$FAILED;
|
|
@@ -21600,34 +21830,34 @@ function peg$parse(input, options) {
|
|
|
21600
21830
|
}
|
|
21601
21831
|
if (s2 !== peg$FAILED) {
|
|
21602
21832
|
if (input.charCodeAt(peg$currPos) === 58) {
|
|
21603
|
-
s3 = peg$
|
|
21833
|
+
s3 = peg$c6;
|
|
21604
21834
|
peg$currPos++;
|
|
21605
21835
|
} else {
|
|
21606
21836
|
s3 = peg$FAILED;
|
|
21607
21837
|
if (peg$silentFails === 0) {
|
|
21608
|
-
peg$fail(peg$
|
|
21838
|
+
peg$fail(peg$e9);
|
|
21609
21839
|
}
|
|
21610
21840
|
}
|
|
21611
21841
|
if (s3 !== peg$FAILED) {
|
|
21612
21842
|
s4 = [];
|
|
21613
21843
|
if (input.charCodeAt(peg$currPos) === 32) {
|
|
21614
|
-
s5 = peg$
|
|
21844
|
+
s5 = peg$c13;
|
|
21615
21845
|
peg$currPos++;
|
|
21616
21846
|
} else {
|
|
21617
21847
|
s5 = peg$FAILED;
|
|
21618
21848
|
if (peg$silentFails === 0) {
|
|
21619
|
-
peg$fail(peg$
|
|
21849
|
+
peg$fail(peg$e17);
|
|
21620
21850
|
}
|
|
21621
21851
|
}
|
|
21622
21852
|
while (s5 !== peg$FAILED) {
|
|
21623
21853
|
s4.push(s5);
|
|
21624
21854
|
if (input.charCodeAt(peg$currPos) === 32) {
|
|
21625
|
-
s5 = peg$
|
|
21855
|
+
s5 = peg$c13;
|
|
21626
21856
|
peg$currPos++;
|
|
21627
21857
|
} else {
|
|
21628
21858
|
s5 = peg$FAILED;
|
|
21629
21859
|
if (peg$silentFails === 0) {
|
|
21630
|
-
peg$fail(peg$
|
|
21860
|
+
peg$fail(peg$e17);
|
|
21631
21861
|
}
|
|
21632
21862
|
}
|
|
21633
21863
|
}
|
|
@@ -21687,7 +21917,7 @@ function peg$parse(input, options) {
|
|
|
21687
21917
|
s5 = input.substring(s5, peg$currPos);
|
|
21688
21918
|
s6 = peg$parseBlockTag();
|
|
21689
21919
|
if (s6 !== peg$FAILED) {
|
|
21690
|
-
s0 = peg$
|
|
21920
|
+
s0 = peg$f69(s2, s5);
|
|
21691
21921
|
} else {
|
|
21692
21922
|
peg$currPos = s0;
|
|
21693
21923
|
s0 = peg$FAILED;
|
|
@@ -21717,34 +21947,34 @@ function peg$parse(input, options) {
|
|
|
21717
21947
|
s2 = peg$parseMediaSizeTags();
|
|
21718
21948
|
if (s2 !== peg$FAILED) {
|
|
21719
21949
|
if (input.charCodeAt(peg$currPos) === 58) {
|
|
21720
|
-
s3 = peg$
|
|
21950
|
+
s3 = peg$c6;
|
|
21721
21951
|
peg$currPos++;
|
|
21722
21952
|
} else {
|
|
21723
21953
|
s3 = peg$FAILED;
|
|
21724
21954
|
if (peg$silentFails === 0) {
|
|
21725
|
-
peg$fail(peg$
|
|
21955
|
+
peg$fail(peg$e9);
|
|
21726
21956
|
}
|
|
21727
21957
|
}
|
|
21728
21958
|
if (s3 !== peg$FAILED) {
|
|
21729
21959
|
s4 = [];
|
|
21730
21960
|
if (input.charCodeAt(peg$currPos) === 32) {
|
|
21731
|
-
s5 = peg$
|
|
21961
|
+
s5 = peg$c13;
|
|
21732
21962
|
peg$currPos++;
|
|
21733
21963
|
} else {
|
|
21734
21964
|
s5 = peg$FAILED;
|
|
21735
21965
|
if (peg$silentFails === 0) {
|
|
21736
|
-
peg$fail(peg$
|
|
21966
|
+
peg$fail(peg$e17);
|
|
21737
21967
|
}
|
|
21738
21968
|
}
|
|
21739
21969
|
while (s5 !== peg$FAILED) {
|
|
21740
21970
|
s4.push(s5);
|
|
21741
21971
|
if (input.charCodeAt(peg$currPos) === 32) {
|
|
21742
|
-
s5 = peg$
|
|
21972
|
+
s5 = peg$c13;
|
|
21743
21973
|
peg$currPos++;
|
|
21744
21974
|
} else {
|
|
21745
21975
|
s5 = peg$FAILED;
|
|
21746
21976
|
if (peg$silentFails === 0) {
|
|
21747
|
-
peg$fail(peg$
|
|
21977
|
+
peg$fail(peg$e17);
|
|
21748
21978
|
}
|
|
21749
21979
|
}
|
|
21750
21980
|
}
|
|
@@ -21768,7 +21998,7 @@ function peg$parse(input, options) {
|
|
|
21768
21998
|
} else {
|
|
21769
21999
|
s9 = peg$FAILED;
|
|
21770
22000
|
if (peg$silentFails === 0) {
|
|
21771
|
-
peg$fail(peg$
|
|
22001
|
+
peg$fail(peg$e16);
|
|
21772
22002
|
}
|
|
21773
22003
|
}
|
|
21774
22004
|
if (s9 !== peg$FAILED) {
|
|
@@ -21803,7 +22033,7 @@ function peg$parse(input, options) {
|
|
|
21803
22033
|
} else {
|
|
21804
22034
|
s9 = peg$FAILED;
|
|
21805
22035
|
if (peg$silentFails === 0) {
|
|
21806
|
-
peg$fail(peg$
|
|
22036
|
+
peg$fail(peg$e16);
|
|
21807
22037
|
}
|
|
21808
22038
|
}
|
|
21809
22039
|
if (s9 !== peg$FAILED) {
|
|
@@ -21829,7 +22059,7 @@ function peg$parse(input, options) {
|
|
|
21829
22059
|
if (s5 !== peg$FAILED) {
|
|
21830
22060
|
s6 = peg$parseBlockTag();
|
|
21831
22061
|
if (s6 !== peg$FAILED) {
|
|
21832
|
-
s0 = peg$
|
|
22062
|
+
s0 = peg$f70(s2, s5);
|
|
21833
22063
|
} else {
|
|
21834
22064
|
peg$currPos = s0;
|
|
21835
22065
|
s0 = peg$FAILED;
|
|
@@ -21863,34 +22093,34 @@ function peg$parse(input, options) {
|
|
|
21863
22093
|
s2 = peg$parseMediaSizeTags();
|
|
21864
22094
|
if (s2 !== peg$FAILED) {
|
|
21865
22095
|
if (input.charCodeAt(peg$currPos) === 58) {
|
|
21866
|
-
s3 = peg$
|
|
22096
|
+
s3 = peg$c6;
|
|
21867
22097
|
peg$currPos++;
|
|
21868
22098
|
} else {
|
|
21869
22099
|
s3 = peg$FAILED;
|
|
21870
22100
|
if (peg$silentFails === 0) {
|
|
21871
|
-
peg$fail(peg$
|
|
22101
|
+
peg$fail(peg$e9);
|
|
21872
22102
|
}
|
|
21873
22103
|
}
|
|
21874
22104
|
if (s3 !== peg$FAILED) {
|
|
21875
22105
|
s4 = [];
|
|
21876
22106
|
if (input.charCodeAt(peg$currPos) === 32) {
|
|
21877
|
-
s5 = peg$
|
|
22107
|
+
s5 = peg$c13;
|
|
21878
22108
|
peg$currPos++;
|
|
21879
22109
|
} else {
|
|
21880
22110
|
s5 = peg$FAILED;
|
|
21881
22111
|
if (peg$silentFails === 0) {
|
|
21882
|
-
peg$fail(peg$
|
|
22112
|
+
peg$fail(peg$e17);
|
|
21883
22113
|
}
|
|
21884
22114
|
}
|
|
21885
22115
|
while (s5 !== peg$FAILED) {
|
|
21886
22116
|
s4.push(s5);
|
|
21887
22117
|
if (input.charCodeAt(peg$currPos) === 32) {
|
|
21888
|
-
s5 = peg$
|
|
22118
|
+
s5 = peg$c13;
|
|
21889
22119
|
peg$currPos++;
|
|
21890
22120
|
} else {
|
|
21891
22121
|
s5 = peg$FAILED;
|
|
21892
22122
|
if (peg$silentFails === 0) {
|
|
21893
|
-
peg$fail(peg$
|
|
22123
|
+
peg$fail(peg$e17);
|
|
21894
22124
|
}
|
|
21895
22125
|
}
|
|
21896
22126
|
}
|
|
@@ -21950,7 +22180,7 @@ function peg$parse(input, options) {
|
|
|
21950
22180
|
s5 = input.substring(s5, peg$currPos);
|
|
21951
22181
|
s6 = peg$parseBlockTag();
|
|
21952
22182
|
if (s6 !== peg$FAILED) {
|
|
21953
|
-
s0 = peg$
|
|
22183
|
+
s0 = peg$f71(s2, s5);
|
|
21954
22184
|
} else {
|
|
21955
22185
|
peg$currPos = s0;
|
|
21956
22186
|
s0 = peg$FAILED;
|
|
@@ -21988,34 +22218,34 @@ function peg$parse(input, options) {
|
|
|
21988
22218
|
}
|
|
21989
22219
|
if (s2 !== peg$FAILED) {
|
|
21990
22220
|
if (input.charCodeAt(peg$currPos) === 58) {
|
|
21991
|
-
s3 = peg$
|
|
22221
|
+
s3 = peg$c6;
|
|
21992
22222
|
peg$currPos++;
|
|
21993
22223
|
} else {
|
|
21994
22224
|
s3 = peg$FAILED;
|
|
21995
22225
|
if (peg$silentFails === 0) {
|
|
21996
|
-
peg$fail(peg$
|
|
22226
|
+
peg$fail(peg$e9);
|
|
21997
22227
|
}
|
|
21998
22228
|
}
|
|
21999
22229
|
if (s3 !== peg$FAILED) {
|
|
22000
22230
|
s4 = [];
|
|
22001
22231
|
if (input.charCodeAt(peg$currPos) === 32) {
|
|
22002
|
-
s5 = peg$
|
|
22232
|
+
s5 = peg$c13;
|
|
22003
22233
|
peg$currPos++;
|
|
22004
22234
|
} else {
|
|
22005
22235
|
s5 = peg$FAILED;
|
|
22006
22236
|
if (peg$silentFails === 0) {
|
|
22007
|
-
peg$fail(peg$
|
|
22237
|
+
peg$fail(peg$e17);
|
|
22008
22238
|
}
|
|
22009
22239
|
}
|
|
22010
22240
|
while (s5 !== peg$FAILED) {
|
|
22011
22241
|
s4.push(s5);
|
|
22012
22242
|
if (input.charCodeAt(peg$currPos) === 32) {
|
|
22013
|
-
s5 = peg$
|
|
22243
|
+
s5 = peg$c13;
|
|
22014
22244
|
peg$currPos++;
|
|
22015
22245
|
} else {
|
|
22016
22246
|
s5 = peg$FAILED;
|
|
22017
22247
|
if (peg$silentFails === 0) {
|
|
22018
|
-
peg$fail(peg$
|
|
22248
|
+
peg$fail(peg$e17);
|
|
22019
22249
|
}
|
|
22020
22250
|
}
|
|
22021
22251
|
}
|
|
@@ -22023,7 +22253,7 @@ function peg$parse(input, options) {
|
|
|
22023
22253
|
if (s5 !== peg$FAILED) {
|
|
22024
22254
|
s6 = peg$parseBlockTag();
|
|
22025
22255
|
if (s6 !== peg$FAILED) {
|
|
22026
|
-
s0 = peg$
|
|
22256
|
+
s0 = peg$f72(s2, s5);
|
|
22027
22257
|
} else {
|
|
22028
22258
|
peg$currPos = s0;
|
|
22029
22259
|
s0 = peg$FAILED;
|
|
@@ -22065,34 +22295,34 @@ function peg$parse(input, options) {
|
|
|
22065
22295
|
}
|
|
22066
22296
|
if (s2 !== peg$FAILED) {
|
|
22067
22297
|
if (input.charCodeAt(peg$currPos) === 58) {
|
|
22068
|
-
s3 = peg$
|
|
22298
|
+
s3 = peg$c6;
|
|
22069
22299
|
peg$currPos++;
|
|
22070
22300
|
} else {
|
|
22071
22301
|
s3 = peg$FAILED;
|
|
22072
22302
|
if (peg$silentFails === 0) {
|
|
22073
|
-
peg$fail(peg$
|
|
22303
|
+
peg$fail(peg$e9);
|
|
22074
22304
|
}
|
|
22075
22305
|
}
|
|
22076
22306
|
if (s3 !== peg$FAILED) {
|
|
22077
22307
|
s4 = [];
|
|
22078
22308
|
if (input.charCodeAt(peg$currPos) === 32) {
|
|
22079
|
-
s5 = peg$
|
|
22309
|
+
s5 = peg$c13;
|
|
22080
22310
|
peg$currPos++;
|
|
22081
22311
|
} else {
|
|
22082
22312
|
s5 = peg$FAILED;
|
|
22083
22313
|
if (peg$silentFails === 0) {
|
|
22084
|
-
peg$fail(peg$
|
|
22314
|
+
peg$fail(peg$e17);
|
|
22085
22315
|
}
|
|
22086
22316
|
}
|
|
22087
22317
|
while (s5 !== peg$FAILED) {
|
|
22088
22318
|
s4.push(s5);
|
|
22089
22319
|
if (input.charCodeAt(peg$currPos) === 32) {
|
|
22090
|
-
s5 = peg$
|
|
22320
|
+
s5 = peg$c13;
|
|
22091
22321
|
peg$currPos++;
|
|
22092
22322
|
} else {
|
|
22093
22323
|
s5 = peg$FAILED;
|
|
22094
22324
|
if (peg$silentFails === 0) {
|
|
22095
|
-
peg$fail(peg$
|
|
22325
|
+
peg$fail(peg$e17);
|
|
22096
22326
|
}
|
|
22097
22327
|
}
|
|
22098
22328
|
}
|
|
@@ -22100,7 +22330,7 @@ function peg$parse(input, options) {
|
|
|
22100
22330
|
if (s5 !== peg$FAILED) {
|
|
22101
22331
|
s6 = peg$parseBlockTag();
|
|
22102
22332
|
if (s6 !== peg$FAILED) {
|
|
22103
|
-
s0 = peg$
|
|
22333
|
+
s0 = peg$f73(s2, s5);
|
|
22104
22334
|
} else {
|
|
22105
22335
|
peg$currPos = s0;
|
|
22106
22336
|
s0 = peg$FAILED;
|
|
@@ -22340,7 +22570,7 @@ function peg$parse(input, options) {
|
|
|
22340
22570
|
s2 = input.substring(s2, peg$currPos);
|
|
22341
22571
|
s3 = peg$parseBlockTag();
|
|
22342
22572
|
if (s3 !== peg$FAILED) {
|
|
22343
|
-
s0 = peg$
|
|
22573
|
+
s0 = peg$f74(s2);
|
|
22344
22574
|
} else {
|
|
22345
22575
|
peg$currPos = s0;
|
|
22346
22576
|
s0 = peg$FAILED;
|
|
@@ -22484,7 +22714,7 @@ function peg$parse(input, options) {
|
|
|
22484
22714
|
s6 = input.substring(s6, peg$currPos);
|
|
22485
22715
|
s7 = peg$parseBlockTag();
|
|
22486
22716
|
if (s7 !== peg$FAILED) {
|
|
22487
|
-
s0 = peg$
|
|
22717
|
+
s0 = peg$f75(s2, s3, s6);
|
|
22488
22718
|
} else {
|
|
22489
22719
|
peg$currPos = s0;
|
|
22490
22720
|
s0 = peg$FAILED;
|
|
@@ -22635,7 +22865,7 @@ function peg$parse(input, options) {
|
|
|
22635
22865
|
s5 = input.substring(s5, peg$currPos);
|
|
22636
22866
|
s6 = peg$parseBlockTag();
|
|
22637
22867
|
if (s6 !== peg$FAILED) {
|
|
22638
|
-
s0 = peg$
|
|
22868
|
+
s0 = peg$f76(s2, s5);
|
|
22639
22869
|
} else {
|
|
22640
22870
|
peg$currPos = s0;
|
|
22641
22871
|
s0 = peg$FAILED;
|
|
@@ -22720,7 +22950,7 @@ function peg$parse(input, options) {
|
|
|
22720
22950
|
s2 = input.substring(s2, peg$currPos);
|
|
22721
22951
|
s3 = peg$parseBlockTag();
|
|
22722
22952
|
if (s3 !== peg$FAILED) {
|
|
22723
|
-
s0 = peg$
|
|
22953
|
+
s0 = peg$f77(s2);
|
|
22724
22954
|
} else {
|
|
22725
22955
|
peg$currPos = s0;
|
|
22726
22956
|
s0 = peg$FAILED;
|
|
@@ -22797,7 +23027,7 @@ function peg$parse(input, options) {
|
|
|
22797
23027
|
s2 = input.substring(s2, peg$currPos);
|
|
22798
23028
|
s3 = peg$parseBlockTag();
|
|
22799
23029
|
if (s3 !== peg$FAILED) {
|
|
22800
|
-
s0 = peg$
|
|
23030
|
+
s0 = peg$f78(s2);
|
|
22801
23031
|
} else {
|
|
22802
23032
|
peg$currPos = s0;
|
|
22803
23033
|
s0 = peg$FAILED;
|
|
@@ -22875,7 +23105,7 @@ function peg$parse(input, options) {
|
|
|
22875
23105
|
s3 = peg$parseBlockTag();
|
|
22876
23106
|
if (s3 !== peg$FAILED) {
|
|
22877
23107
|
s4 = peg$parseMediaChain();
|
|
22878
|
-
s0 = peg$
|
|
23108
|
+
s0 = peg$f79(s2, s4);
|
|
22879
23109
|
} else {
|
|
22880
23110
|
peg$currPos = s0;
|
|
22881
23111
|
s0 = peg$FAILED;
|
|
@@ -22952,7 +23182,7 @@ function peg$parse(input, options) {
|
|
|
22952
23182
|
s2 = input.substring(s2, peg$currPos);
|
|
22953
23183
|
s3 = peg$parseBlockTag();
|
|
22954
23184
|
if (s3 !== peg$FAILED) {
|
|
22955
|
-
s0 = peg$
|
|
23185
|
+
s0 = peg$f80(s2);
|
|
22956
23186
|
} else {
|
|
22957
23187
|
peg$currPos = s0;
|
|
22958
23188
|
s0 = peg$FAILED;
|
|
@@ -23029,7 +23259,7 @@ function peg$parse(input, options) {
|
|
|
23029
23259
|
s2 = input.substring(s2, peg$currPos);
|
|
23030
23260
|
s3 = peg$parseBlockTag();
|
|
23031
23261
|
if (s3 !== peg$FAILED) {
|
|
23032
|
-
s0 = peg$
|
|
23262
|
+
s0 = peg$f81(s2);
|
|
23033
23263
|
} else {
|
|
23034
23264
|
peg$currPos = s0;
|
|
23035
23265
|
s0 = peg$FAILED;
|
|
@@ -23106,7 +23336,7 @@ function peg$parse(input, options) {
|
|
|
23106
23336
|
s2 = input.substring(s2, peg$currPos);
|
|
23107
23337
|
s3 = peg$parseBlockTag();
|
|
23108
23338
|
if (s3 !== peg$FAILED) {
|
|
23109
|
-
s0 = peg$
|
|
23339
|
+
s0 = peg$f82(s2);
|
|
23110
23340
|
} else {
|
|
23111
23341
|
peg$currPos = s0;
|
|
23112
23342
|
s0 = peg$FAILED;
|
|
@@ -23117,19 +23347,19 @@ function peg$parse(input, options) {
|
|
|
23117
23347
|
}
|
|
23118
23348
|
if (s0 === peg$FAILED) {
|
|
23119
23349
|
s0 = peg$currPos;
|
|
23120
|
-
if (input.substr(peg$currPos, 4) === peg$
|
|
23121
|
-
s1 = peg$
|
|
23350
|
+
if (input.substr(peg$currPos, 4) === peg$c5) {
|
|
23351
|
+
s1 = peg$c5;
|
|
23122
23352
|
peg$currPos += 4;
|
|
23123
23353
|
} else {
|
|
23124
23354
|
s1 = peg$FAILED;
|
|
23125
23355
|
if (peg$silentFails === 0) {
|
|
23126
|
-
peg$fail(peg$
|
|
23356
|
+
peg$fail(peg$e7);
|
|
23127
23357
|
}
|
|
23128
23358
|
}
|
|
23129
23359
|
if (s1 !== peg$FAILED) {
|
|
23130
23360
|
s2 = peg$parseBlockTag();
|
|
23131
23361
|
if (s2 !== peg$FAILED) {
|
|
23132
|
-
s0 = peg$
|
|
23362
|
+
s0 = peg$f83();
|
|
23133
23363
|
} else {
|
|
23134
23364
|
peg$currPos = s0;
|
|
23135
23365
|
s0 = peg$FAILED;
|
|
@@ -23206,7 +23436,7 @@ function peg$parse(input, options) {
|
|
|
23206
23436
|
s2 = input.substring(s2, peg$currPos);
|
|
23207
23437
|
s3 = peg$parseBlockTag();
|
|
23208
23438
|
if (s3 !== peg$FAILED) {
|
|
23209
|
-
s0 = peg$
|
|
23439
|
+
s0 = peg$f84(s2);
|
|
23210
23440
|
} else {
|
|
23211
23441
|
peg$currPos = s0;
|
|
23212
23442
|
s0 = peg$FAILED;
|
|
@@ -23229,7 +23459,7 @@ function peg$parse(input, options) {
|
|
|
23229
23459
|
if (s1 !== peg$FAILED) {
|
|
23230
23460
|
s2 = peg$parseBlockTag();
|
|
23231
23461
|
if (s2 !== peg$FAILED) {
|
|
23232
|
-
s0 = peg$
|
|
23462
|
+
s0 = peg$f85();
|
|
23233
23463
|
} else {
|
|
23234
23464
|
peg$currPos = s0;
|
|
23235
23465
|
s0 = peg$FAILED;
|
|
@@ -23306,7 +23536,7 @@ function peg$parse(input, options) {
|
|
|
23306
23536
|
s2 = input.substring(s2, peg$currPos);
|
|
23307
23537
|
s3 = peg$parseBlockTag();
|
|
23308
23538
|
if (s3 !== peg$FAILED) {
|
|
23309
|
-
s0 = peg$
|
|
23539
|
+
s0 = peg$f86(s2);
|
|
23310
23540
|
} else {
|
|
23311
23541
|
peg$currPos = s0;
|
|
23312
23542
|
s0 = peg$FAILED;
|
|
@@ -23407,7 +23637,7 @@ function peg$parse(input, options) {
|
|
|
23407
23637
|
if (s2 !== peg$FAILED) {
|
|
23408
23638
|
s3 = peg$parseBlockTag();
|
|
23409
23639
|
if (s3 !== peg$FAILED) {
|
|
23410
|
-
s0 = peg$
|
|
23640
|
+
s0 = peg$f87(s2);
|
|
23411
23641
|
} else {
|
|
23412
23642
|
peg$currPos = s0;
|
|
23413
23643
|
s0 = peg$FAILED;
|
|
@@ -23436,7 +23666,7 @@ function peg$parse(input, options) {
|
|
|
23436
23666
|
if (s2 !== peg$FAILED) {
|
|
23437
23667
|
s3 = peg$parseBlockTag();
|
|
23438
23668
|
if (s3 !== peg$FAILED) {
|
|
23439
|
-
s0 = peg$
|
|
23669
|
+
s0 = peg$f88(s2);
|
|
23440
23670
|
} else {
|
|
23441
23671
|
peg$currPos = s0;
|
|
23442
23672
|
s0 = peg$FAILED;
|
|
@@ -23517,7 +23747,7 @@ function peg$parse(input, options) {
|
|
|
23517
23747
|
s2 = input.substring(s2, peg$currPos);
|
|
23518
23748
|
s3 = peg$parseBlockTag();
|
|
23519
23749
|
if (s3 !== peg$FAILED) {
|
|
23520
|
-
s0 = peg$
|
|
23750
|
+
s0 = peg$f89(s2);
|
|
23521
23751
|
} else {
|
|
23522
23752
|
peg$currPos = s0;
|
|
23523
23753
|
s0 = peg$FAILED;
|
|
@@ -23532,7 +23762,7 @@ function peg$parse(input, options) {
|
|
|
23532
23762
|
if (s1 !== peg$FAILED) {
|
|
23533
23763
|
s2 = peg$parseBlockTag();
|
|
23534
23764
|
if (s2 !== peg$FAILED) {
|
|
23535
|
-
s0 = peg$
|
|
23765
|
+
s0 = peg$f90(s1);
|
|
23536
23766
|
} else {
|
|
23537
23767
|
peg$currPos = s0;
|
|
23538
23768
|
s0 = peg$FAILED;
|
|
@@ -23609,7 +23839,7 @@ function peg$parse(input, options) {
|
|
|
23609
23839
|
s2 = input.substring(s2, peg$currPos);
|
|
23610
23840
|
s3 = peg$parseBlockTag();
|
|
23611
23841
|
if (s3 !== peg$FAILED) {
|
|
23612
|
-
s0 = peg$
|
|
23842
|
+
s0 = peg$f91(s2);
|
|
23613
23843
|
} else {
|
|
23614
23844
|
peg$currPos = s0;
|
|
23615
23845
|
s0 = peg$FAILED;
|
|
@@ -23714,7 +23944,7 @@ function peg$parse(input, options) {
|
|
|
23714
23944
|
}
|
|
23715
23945
|
}
|
|
23716
23946
|
s2 = input.substring(s2, peg$currPos);
|
|
23717
|
-
s0 = peg$
|
|
23947
|
+
s0 = peg$f92(s2);
|
|
23718
23948
|
} else {
|
|
23719
23949
|
peg$currPos = s0;
|
|
23720
23950
|
s0 = peg$FAILED;
|
|
@@ -24423,7 +24653,7 @@ function peg$parse(input, options) {
|
|
|
24423
24653
|
peg$silentFails++;
|
|
24424
24654
|
s0 = peg$currPos;
|
|
24425
24655
|
s1 = peg$parsebitmarkMinusMinusString();
|
|
24426
|
-
s1 = peg$
|
|
24656
|
+
s1 = peg$f93(s1);
|
|
24427
24657
|
s0 = s1;
|
|
24428
24658
|
peg$silentFails--;
|
|
24429
24659
|
return s0;
|
|
@@ -24448,7 +24678,7 @@ function peg$parse(input, options) {
|
|
|
24448
24678
|
s3 = peg$parsePlainText();
|
|
24449
24679
|
}
|
|
24450
24680
|
}
|
|
24451
|
-
s0 = peg$
|
|
24681
|
+
s0 = peg$f94(s1, s2);
|
|
24452
24682
|
peg$silentFails--;
|
|
24453
24683
|
return s0;
|
|
24454
24684
|
}
|
|
@@ -24457,7 +24687,7 @@ function peg$parse(input, options) {
|
|
|
24457
24687
|
s0 = peg$currPos;
|
|
24458
24688
|
s1 = peg$parseNL();
|
|
24459
24689
|
if (s1 !== peg$FAILED) {
|
|
24460
|
-
s1 = peg$
|
|
24690
|
+
s1 = peg$f95();
|
|
24461
24691
|
}
|
|
24462
24692
|
s0 = s1;
|
|
24463
24693
|
if (s0 === peg$FAILED) {
|
|
@@ -24585,7 +24815,7 @@ function peg$parse(input, options) {
|
|
|
24585
24815
|
s1 = s2;
|
|
24586
24816
|
}
|
|
24587
24817
|
if (s1 !== peg$FAILED) {
|
|
24588
|
-
s1 = peg$
|
|
24818
|
+
s1 = peg$f96(s1);
|
|
24589
24819
|
}
|
|
24590
24820
|
s0 = s1;
|
|
24591
24821
|
}
|
|
@@ -24758,7 +24988,7 @@ function peg$parse(input, options) {
|
|
|
24758
24988
|
} else {
|
|
24759
24989
|
s4 = peg$FAILED;
|
|
24760
24990
|
if (peg$silentFails === 0) {
|
|
24761
|
-
peg$fail(peg$
|
|
24991
|
+
peg$fail(peg$e16);
|
|
24762
24992
|
}
|
|
24763
24993
|
}
|
|
24764
24994
|
if (s4 !== peg$FAILED) {
|
|
@@ -24770,7 +25000,7 @@ function peg$parse(input, options) {
|
|
|
24770
25000
|
} else {
|
|
24771
25001
|
s4 = peg$FAILED;
|
|
24772
25002
|
if (peg$silentFails === 0) {
|
|
24773
|
-
peg$fail(peg$
|
|
25003
|
+
peg$fail(peg$e16);
|
|
24774
25004
|
}
|
|
24775
25005
|
}
|
|
24776
25006
|
}
|
|
@@ -24785,7 +25015,7 @@ function peg$parse(input, options) {
|
|
|
24785
25015
|
if (s2 !== peg$FAILED) {
|
|
24786
25016
|
s3 = peg$parseBodyBitCloseTag();
|
|
24787
25017
|
if (s3 !== peg$FAILED) {
|
|
24788
|
-
s0 = peg$
|
|
25018
|
+
s0 = peg$f97(s2);
|
|
24789
25019
|
} else {
|
|
24790
25020
|
peg$currPos = s0;
|
|
24791
25021
|
s0 = peg$FAILED;
|
|
@@ -24874,7 +25104,7 @@ function peg$parse(input, options) {
|
|
|
24874
25104
|
s2 = input.substring(s2, peg$currPos);
|
|
24875
25105
|
s3 = peg$parseBoldTag();
|
|
24876
25106
|
if (s3 !== peg$FAILED) {
|
|
24877
|
-
s0 = peg$
|
|
25107
|
+
s0 = peg$f98(s2);
|
|
24878
25108
|
} else {
|
|
24879
25109
|
peg$currPos = s0;
|
|
24880
25110
|
s0 = peg$FAILED;
|
|
@@ -24959,7 +25189,7 @@ function peg$parse(input, options) {
|
|
|
24959
25189
|
s2 = input.substring(s2, peg$currPos);
|
|
24960
25190
|
s3 = peg$parseItalicTag();
|
|
24961
25191
|
if (s3 !== peg$FAILED) {
|
|
24962
|
-
s0 = peg$
|
|
25192
|
+
s0 = peg$f99(s2);
|
|
24963
25193
|
} else {
|
|
24964
25194
|
peg$currPos = s0;
|
|
24965
25195
|
s0 = peg$FAILED;
|
|
@@ -25044,7 +25274,7 @@ function peg$parse(input, options) {
|
|
|
25044
25274
|
s2 = input.substring(s2, peg$currPos);
|
|
25045
25275
|
s3 = peg$parseLightTag();
|
|
25046
25276
|
if (s3 !== peg$FAILED) {
|
|
25047
|
-
s0 = peg$
|
|
25277
|
+
s0 = peg$f100(s2);
|
|
25048
25278
|
} else {
|
|
25049
25279
|
peg$currPos = s0;
|
|
25050
25280
|
s0 = peg$FAILED;
|
|
@@ -25129,7 +25359,7 @@ function peg$parse(input, options) {
|
|
|
25129
25359
|
s2 = input.substring(s2, peg$currPos);
|
|
25130
25360
|
s3 = peg$parseHighlightTag();
|
|
25131
25361
|
if (s3 !== peg$FAILED) {
|
|
25132
|
-
s0 = peg$
|
|
25362
|
+
s0 = peg$f101(s2);
|
|
25133
25363
|
} else {
|
|
25134
25364
|
peg$currPos = s0;
|
|
25135
25365
|
s0 = peg$FAILED;
|
|
@@ -25513,7 +25743,7 @@ function peg$parse(input, options) {
|
|
|
25513
25743
|
}
|
|
25514
25744
|
}
|
|
25515
25745
|
s2 = input.substring(s2, peg$currPos);
|
|
25516
|
-
s0 = peg$
|
|
25746
|
+
s0 = peg$f102(s1, s2);
|
|
25517
25747
|
} else {
|
|
25518
25748
|
peg$currPos = s0;
|
|
25519
25749
|
s0 = peg$FAILED;
|
|
@@ -25534,7 +25764,17 @@ function peg$parse(input, options) {
|
|
|
25534
25764
|
return s0;
|
|
25535
25765
|
}
|
|
25536
25766
|
var indentStack = [], indent = "";
|
|
25537
|
-
input = input.
|
|
25767
|
+
input = input.replace(/\s+$/, "");
|
|
25768
|
+
var _firstNonWs = input.search(/\S/);
|
|
25769
|
+
if (_firstNonWs < 0) {
|
|
25770
|
+
input = "";
|
|
25771
|
+
} else {
|
|
25772
|
+
var _lineStart = input.lastIndexOf("\n", _firstNonWs) + 1;
|
|
25773
|
+
var _lead = input.slice(_lineStart, _firstNonWs);
|
|
25774
|
+
var _rest = input.slice(_firstNonWs);
|
|
25775
|
+
var _isIndentedListItem = /^\t+$/.test(_lead) && /^•([0-9]+[Ii]?|_|[Aa]|\+|-)? /.test(_rest);
|
|
25776
|
+
input = _isIndentedListItem ? _lead + _rest : _rest;
|
|
25777
|
+
}
|
|
25538
25778
|
peg$result = peg$startRuleFunction();
|
|
25539
25779
|
const peg$success = peg$result !== peg$FAILED && peg$currPos === input.length;
|
|
25540
25780
|
function peg$throw() {
|
|
@@ -25628,14 +25868,13 @@ var TextParser = class {
|
|
|
25628
25868
|
*/
|
|
25629
25869
|
toAst(text, options) {
|
|
25630
25870
|
if (Array.isArray(text)) return text;
|
|
25631
|
-
|
|
25871
|
+
const str = text ?? "";
|
|
25632
25872
|
if (!str) return [];
|
|
25633
25873
|
const opts = Object.assign({}, options);
|
|
25634
25874
|
let startRule = "bitmarkPlusPlus";
|
|
25635
25875
|
if (opts.location === TextLocation.tag) {
|
|
25636
25876
|
startRule = "bitmarkPlus";
|
|
25637
25877
|
}
|
|
25638
|
-
str = str.trim();
|
|
25639
25878
|
return parse(str, {
|
|
25640
25879
|
startRule
|
|
25641
25880
|
});
|
|
@@ -27668,6 +27907,12 @@ var Builder = class extends BaseBuilder {
|
|
|
27668
27907
|
options
|
|
27669
27908
|
),
|
|
27670
27909
|
sourceBB: this.normaliseSourceBB(data.sourceBB),
|
|
27910
|
+
bitFingerprint: this.toAstProperty(
|
|
27911
|
+
bitType,
|
|
27912
|
+
ConfigKey.property_bitFingerprint,
|
|
27913
|
+
data.bitFingerprint,
|
|
27914
|
+
options
|
|
27915
|
+
),
|
|
27671
27916
|
levelCEFRp: this.toAstProperty(
|
|
27672
27917
|
bitType,
|
|
27673
27918
|
ConfigKey.property_levelCEFRp,
|
|
@@ -29100,6 +29345,7 @@ var Builder = class extends BaseBuilder {
|
|
|
29100
29345
|
if (!data) return void 0;
|
|
29101
29346
|
let isExample = false;
|
|
29102
29347
|
for (const c of data.cells || []) {
|
|
29348
|
+
if (!c) continue;
|
|
29103
29349
|
if (data.__isDefaultExample && !c.isExample) {
|
|
29104
29350
|
c.isExample = true;
|
|
29105
29351
|
}
|