@wireweave/core 2.7.1 → 3.0.0-beta.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/parser.cjs CHANGED
@@ -190,27 +190,30 @@ function peg$parse(input, options) {
190
190
  const peg$c51 = "breadcrumb";
191
191
  const peg$c52 = "marker";
192
192
  const peg$c53 = "annotations";
193
- const peg$c54 = "=";
194
- const peg$c55 = "//";
195
- const peg$c56 = "/*";
196
- const peg$c57 = '"';
197
- const peg$c58 = "'";
198
- const peg$c59 = "\\";
199
- const peg$c60 = "n";
200
- const peg$c61 = "r";
201
- const peg$c62 = "t";
202
- const peg$c63 = "-";
203
- const peg$c64 = ".";
204
- const peg$c65 = "px";
205
- const peg$c66 = "%";
206
- const peg$c67 = "em";
207
- const peg$c68 = "rem";
208
- const peg$c69 = "vh";
209
- const peg$c70 = "vw";
210
- const peg$c71 = "true";
211
- const peg$c72 = "false";
212
- const peg$c73 = "\n";
213
- const peg$c74 = "*/";
193
+ const peg$c54 = "at";
194
+ const peg$c55 = "(";
195
+ const peg$c56 = ")";
196
+ const peg$c57 = "=";
197
+ const peg$c58 = "//";
198
+ const peg$c59 = "/*";
199
+ const peg$c60 = '"';
200
+ const peg$c61 = "'";
201
+ const peg$c62 = "\\";
202
+ const peg$c63 = "n";
203
+ const peg$c64 = "r";
204
+ const peg$c65 = "t";
205
+ const peg$c66 = "-";
206
+ const peg$c67 = ".";
207
+ const peg$c68 = "px";
208
+ const peg$c69 = "%";
209
+ const peg$c70 = "em";
210
+ const peg$c71 = "rem";
211
+ const peg$c72 = "vh";
212
+ const peg$c73 = "vw";
213
+ const peg$c74 = "true";
214
+ const peg$c75 = "false";
215
+ const peg$c76 = "\n";
216
+ const peg$c77 = "*/";
214
217
  const peg$r0 = /^[0-9]/;
215
218
  const peg$r1 = /^[=[{}]/;
216
219
  const peg$r2 = /^[a-zA-Z0-9_\-]/;
@@ -273,41 +276,46 @@ function peg$parse(input, options) {
273
276
  const peg$e53 = peg$literalExpectation("annotations", false);
274
277
  const peg$e54 = peg$otherExpectation("integer");
275
278
  const peg$e55 = peg$classExpectation([["0", "9"]], false, false, false);
276
- const peg$e56 = peg$literalExpectation("=", false);
277
- const peg$e57 = peg$classExpectation(["=", "[", "{", "}"], false, false, false);
278
- const peg$e58 = peg$literalExpectation("//", false);
279
- const peg$e59 = peg$literalExpectation("/*", false);
280
- const peg$e60 = peg$anyExpectation();
281
- const peg$e61 = peg$classExpectation([["a", "z"], ["A", "Z"], ["0", "9"], "_", "-"], false, false, false);
282
- const peg$e62 = peg$otherExpectation("string");
283
- const peg$e63 = peg$literalExpectation('"', false);
284
- const peg$e64 = peg$literalExpectation("'", false);
285
- const peg$e65 = peg$literalExpectation("\\", false);
286
- const peg$e66 = peg$literalExpectation("n", false);
287
- const peg$e67 = peg$literalExpectation("r", false);
288
- const peg$e68 = peg$literalExpectation("t", false);
289
- const peg$e69 = peg$otherExpectation("number");
290
- const peg$e70 = peg$literalExpectation("-", false);
291
- const peg$e71 = peg$literalExpectation(".", false);
292
- const peg$e72 = peg$otherExpectation("value with unit");
293
- const peg$e73 = peg$literalExpectation("px", false);
294
- const peg$e74 = peg$literalExpectation("%", false);
295
- const peg$e75 = peg$literalExpectation("em", false);
296
- const peg$e76 = peg$literalExpectation("rem", false);
297
- const peg$e77 = peg$literalExpectation("vh", false);
298
- const peg$e78 = peg$literalExpectation("vw", false);
299
- const peg$e79 = peg$otherExpectation("boolean");
300
- const peg$e80 = peg$literalExpectation("true", false);
301
- const peg$e81 = peg$literalExpectation("false", false);
302
- const peg$e82 = peg$otherExpectation("identifier");
303
- const peg$e83 = peg$classExpectation([["a", "z"], ["A", "Z"], "_"], false, false, false);
304
- const peg$e84 = peg$classExpectation([" ", " ", "\n", "\r"], false, false, false);
305
- const peg$e85 = peg$otherExpectation("comment");
306
- const peg$e86 = peg$classExpectation(["\n"], true, false, false);
307
- const peg$e87 = peg$literalExpectation("\n", false);
308
- const peg$e88 = peg$literalExpectation("*/", false);
279
+ const peg$e56 = peg$literalExpectation("at", false);
280
+ const peg$e57 = peg$literalExpectation("(", false);
281
+ const peg$e58 = peg$literalExpectation(")", false);
282
+ const peg$e59 = peg$literalExpectation("=", false);
283
+ const peg$e60 = peg$classExpectation(["=", "[", "{", "}"], false, false, false);
284
+ const peg$e61 = peg$literalExpectation("//", false);
285
+ const peg$e62 = peg$literalExpectation("/*", false);
286
+ const peg$e63 = peg$anyExpectation();
287
+ const peg$e64 = peg$classExpectation([["a", "z"], ["A", "Z"], ["0", "9"], "_", "-"], false, false, false);
288
+ const peg$e65 = peg$otherExpectation("string");
289
+ const peg$e66 = peg$literalExpectation('"', false);
290
+ const peg$e67 = peg$literalExpectation("'", false);
291
+ const peg$e68 = peg$literalExpectation("\\", false);
292
+ const peg$e69 = peg$literalExpectation("n", false);
293
+ const peg$e70 = peg$literalExpectation("r", false);
294
+ const peg$e71 = peg$literalExpectation("t", false);
295
+ const peg$e72 = peg$otherExpectation("number");
296
+ const peg$e73 = peg$literalExpectation("-", false);
297
+ const peg$e74 = peg$literalExpectation(".", false);
298
+ const peg$e75 = peg$otherExpectation("value with unit");
299
+ const peg$e76 = peg$literalExpectation("px", false);
300
+ const peg$e77 = peg$literalExpectation("%", false);
301
+ const peg$e78 = peg$literalExpectation("em", false);
302
+ const peg$e79 = peg$literalExpectation("rem", false);
303
+ const peg$e80 = peg$literalExpectation("vh", false);
304
+ const peg$e81 = peg$literalExpectation("vw", false);
305
+ const peg$e82 = peg$otherExpectation("boolean");
306
+ const peg$e83 = peg$literalExpectation("true", false);
307
+ const peg$e84 = peg$literalExpectation("false", false);
308
+ const peg$e85 = peg$otherExpectation("identifier");
309
+ const peg$e86 = peg$classExpectation([["a", "z"], ["A", "Z"], "_"], false, false, false);
310
+ const peg$e87 = peg$classExpectation([" ", " ", "\n", "\r"], false, false, false);
311
+ const peg$e88 = peg$otherExpectation("comment");
312
+ const peg$e89 = peg$classExpectation(["\n"], true, false, false);
313
+ const peg$e90 = peg$literalExpectation("\n", false);
314
+ const peg$e91 = peg$literalExpectation("*/", false);
309
315
  function peg$f0(children) {
310
- return createNode("Document", { children: children.filter((c) => c !== null) });
316
+ return createNode("Document", {
317
+ children: children.map((c) => c[0]).filter((c) => c !== null)
318
+ });
311
319
  }
312
320
  function peg$f1() {
313
321
  return null;
@@ -743,75 +751,81 @@ function peg$parse(input, options) {
743
751
  function peg$f78(attrs) {
744
752
  return attrs;
745
753
  }
746
- function peg$f79(name, value) {
754
+ function peg$f79(x, y) {
755
+ return [
756
+ { name: "x", value: x },
757
+ { name: "y", value: y }
758
+ ];
759
+ }
760
+ function peg$f80(name, value) {
747
761
  return { name, value };
748
762
  }
749
- function peg$f80(flag) {
763
+ function peg$f81(flag) {
750
764
  return { name: flag, value: true };
751
765
  }
752
- function peg$f81(name) {
766
+ function peg$f82(name) {
753
767
  return name;
754
768
  }
755
- function peg$f82(chars) {
769
+ function peg$f83(chars) {
756
770
  return chars.join("");
757
771
  }
758
- function peg$f83(chars) {
772
+ function peg$f84(chars) {
759
773
  return chars.join("");
760
774
  }
761
- function peg$f84(char) {
775
+ function peg$f85(char) {
762
776
  return char;
763
777
  }
764
- function peg$f85(seq) {
778
+ function peg$f86(seq) {
765
779
  return seq;
766
780
  }
767
- function peg$f86(char) {
781
+ function peg$f87(char) {
768
782
  return char;
769
783
  }
770
- function peg$f87(seq) {
784
+ function peg$f88(seq) {
771
785
  return seq;
772
786
  }
773
- function peg$f88() {
787
+ function peg$f89() {
774
788
  return "\n";
775
789
  }
776
- function peg$f89() {
790
+ function peg$f90() {
777
791
  return "\r";
778
792
  }
779
- function peg$f90() {
793
+ function peg$f91() {
780
794
  return " ";
781
795
  }
782
- function peg$f91() {
796
+ function peg$f92() {
783
797
  return "\\";
784
798
  }
785
- function peg$f92() {
799
+ function peg$f93() {
786
800
  return '"';
787
801
  }
788
- function peg$f93() {
802
+ function peg$f94() {
789
803
  return "'";
790
804
  }
791
- function peg$f94(sign, digits, decimal) {
805
+ function peg$f95(sign, digits, decimal) {
792
806
  const num = (sign || "") + digits.join("") + (decimal ? "." + decimal[1].join("") : "");
793
807
  return parseFloat(num);
794
808
  }
795
- function peg$f95(sign, digits, decimal, unit) {
809
+ function peg$f96(sign, digits, decimal, unit) {
796
810
  const num = (sign || "") + digits.join("") + (decimal ? "." + decimal[1].join("") : "");
797
811
  return { value: parseFloat(num), unit };
798
812
  }
799
- function peg$f96() {
813
+ function peg$f97() {
800
814
  return true;
801
815
  }
802
- function peg$f97() {
816
+ function peg$f98() {
803
817
  return false;
804
818
  }
805
- function peg$f98(head, tail) {
819
+ function peg$f99(head, tail) {
806
820
  return head + tail.join("");
807
821
  }
808
- function peg$f99(items) {
822
+ function peg$f100(items) {
809
823
  return items || [];
810
824
  }
811
- function peg$f100(head, tail) {
825
+ function peg$f101(head, tail) {
812
826
  return [head, ...tail.map((t) => t[3])];
813
827
  }
814
- function peg$f101(props) {
828
+ function peg$f102(props) {
815
829
  const result = {};
816
830
  if (props) {
817
831
  for (const p of props) {
@@ -820,13 +834,13 @@ function peg$parse(input, options) {
820
834
  }
821
835
  return result;
822
836
  }
823
- function peg$f102(head, tail) {
837
+ function peg$f103(head, tail) {
824
838
  return [head, ...tail.map((t) => t[3])];
825
839
  }
826
- function peg$f103(name, value) {
840
+ function peg$f104(name, value) {
827
841
  return { name, value };
828
842
  }
829
- function peg$f104(name) {
843
+ function peg$f105(name) {
830
844
  return { name, value: true };
831
845
  }
832
846
  let peg$currPos = options.peg$currPos | 0;
@@ -967,16 +981,33 @@ function peg$parse(input, options) {
967
981
  );
968
982
  }
969
983
  function peg$parseDocument() {
970
- let s0, s1, s2, s3;
984
+ let s0, s1, s2, s3, s4, s5;
971
985
  s0 = peg$currPos;
972
986
  s1 = peg$parse_();
973
987
  s2 = [];
974
- s3 = peg$parseTopLevelElement();
988
+ s3 = peg$currPos;
989
+ s4 = peg$parseTopLevelElement();
990
+ if (s4 !== peg$FAILED) {
991
+ s5 = peg$parse_();
992
+ s4 = [s4, s5];
993
+ s3 = s4;
994
+ } else {
995
+ peg$currPos = s3;
996
+ s3 = peg$FAILED;
997
+ }
975
998
  while (s3 !== peg$FAILED) {
976
999
  s2.push(s3);
977
- s3 = peg$parseTopLevelElement();
1000
+ s3 = peg$currPos;
1001
+ s4 = peg$parseTopLevelElement();
1002
+ if (s4 !== peg$FAILED) {
1003
+ s5 = peg$parse_();
1004
+ s4 = [s4, s5];
1005
+ s3 = s4;
1006
+ } else {
1007
+ peg$currPos = s3;
1008
+ s3 = peg$FAILED;
1009
+ }
978
1010
  }
979
- s3 = peg$parse_();
980
1011
  peg$savedPos = s0;
981
1012
  s0 = peg$f0(s2);
982
1013
  return s0;
@@ -4322,27 +4353,87 @@ function peg$parse(input, options) {
4322
4353
  return s0;
4323
4354
  }
4324
4355
  function peg$parseAttribute() {
4325
- let s0, s1, s2, s3, s4, s5, s6, s7;
4356
+ let s0, s1, s2, s3, s4, s5, s6, s7, s8, s9, s10, s11, s12, s13;
4326
4357
  s0 = peg$currPos;
4327
4358
  s1 = peg$parse_();
4328
- s2 = peg$parseAttributeName();
4359
+ if (input.substr(peg$currPos, 2) === peg$c54) {
4360
+ s2 = peg$c54;
4361
+ peg$currPos += 2;
4362
+ } else {
4363
+ s2 = peg$FAILED;
4364
+ if (peg$silentFails === 0) {
4365
+ peg$fail(peg$e56);
4366
+ }
4367
+ }
4329
4368
  if (s2 !== peg$FAILED) {
4330
- s3 = peg$parse_();
4331
- if (input.charCodeAt(peg$currPos) === 61) {
4332
- s4 = peg$c54;
4333
- peg$currPos++;
4369
+ s3 = peg$currPos;
4370
+ peg$silentFails++;
4371
+ s4 = peg$parseIdentifierChar();
4372
+ peg$silentFails--;
4373
+ if (s4 === peg$FAILED) {
4374
+ s3 = void 0;
4334
4375
  } else {
4335
- s4 = peg$FAILED;
4336
- if (peg$silentFails === 0) {
4337
- peg$fail(peg$e56);
4338
- }
4376
+ peg$currPos = s3;
4377
+ s3 = peg$FAILED;
4339
4378
  }
4340
- if (s4 !== peg$FAILED) {
4341
- s5 = peg$parse_();
4342
- s6 = peg$parseAttributeValue();
4343
- if (s6 !== peg$FAILED) {
4344
- peg$savedPos = s0;
4345
- s0 = peg$f79(s2, s6);
4379
+ if (s3 !== peg$FAILED) {
4380
+ s4 = peg$parse_();
4381
+ if (input.charCodeAt(peg$currPos) === 40) {
4382
+ s5 = peg$c55;
4383
+ peg$currPos++;
4384
+ } else {
4385
+ s5 = peg$FAILED;
4386
+ if (peg$silentFails === 0) {
4387
+ peg$fail(peg$e57);
4388
+ }
4389
+ }
4390
+ if (s5 !== peg$FAILED) {
4391
+ s6 = peg$parse_();
4392
+ s7 = peg$parseNumber();
4393
+ if (s7 !== peg$FAILED) {
4394
+ s8 = peg$parse_();
4395
+ if (input.charCodeAt(peg$currPos) === 44) {
4396
+ s9 = peg$c34;
4397
+ peg$currPos++;
4398
+ } else {
4399
+ s9 = peg$FAILED;
4400
+ if (peg$silentFails === 0) {
4401
+ peg$fail(peg$e34);
4402
+ }
4403
+ }
4404
+ if (s9 !== peg$FAILED) {
4405
+ s10 = peg$parse_();
4406
+ s11 = peg$parseNumber();
4407
+ if (s11 !== peg$FAILED) {
4408
+ s12 = peg$parse_();
4409
+ if (input.charCodeAt(peg$currPos) === 41) {
4410
+ s13 = peg$c56;
4411
+ peg$currPos++;
4412
+ } else {
4413
+ s13 = peg$FAILED;
4414
+ if (peg$silentFails === 0) {
4415
+ peg$fail(peg$e58);
4416
+ }
4417
+ }
4418
+ if (s13 !== peg$FAILED) {
4419
+ peg$savedPos = s0;
4420
+ s0 = peg$f79(s7, s11);
4421
+ } else {
4422
+ peg$currPos = s0;
4423
+ s0 = peg$FAILED;
4424
+ }
4425
+ } else {
4426
+ peg$currPos = s0;
4427
+ s0 = peg$FAILED;
4428
+ }
4429
+ } else {
4430
+ peg$currPos = s0;
4431
+ s0 = peg$FAILED;
4432
+ }
4433
+ } else {
4434
+ peg$currPos = s0;
4435
+ s0 = peg$FAILED;
4436
+ }
4346
4437
  } else {
4347
4438
  peg$currPos = s0;
4348
4439
  s0 = peg$FAILED;
@@ -4360,91 +4451,125 @@ function peg$parse(input, options) {
4360
4451
  s1 = peg$parse_();
4361
4452
  s2 = peg$parseAttributeName();
4362
4453
  if (s2 !== peg$FAILED) {
4363
- s3 = peg$currPos;
4364
- peg$silentFails++;
4365
- s4 = peg$currPos;
4366
- s5 = peg$parse_();
4367
- s6 = peg$parseChildKeyword();
4368
- if (s6 === peg$FAILED) {
4369
- s6 = peg$parseAttributeName();
4454
+ s3 = peg$parse_();
4455
+ if (input.charCodeAt(peg$currPos) === 61) {
4456
+ s4 = peg$c57;
4457
+ peg$currPos++;
4458
+ } else {
4459
+ s4 = peg$FAILED;
4460
+ if (peg$silentFails === 0) {
4461
+ peg$fail(peg$e59);
4462
+ }
4463
+ }
4464
+ if (s4 !== peg$FAILED) {
4465
+ s5 = peg$parse_();
4466
+ s6 = peg$parseAttributeValue();
4467
+ if (s6 !== peg$FAILED) {
4468
+ peg$savedPos = s0;
4469
+ s0 = peg$f80(s2, s6);
4470
+ } else {
4471
+ peg$currPos = s0;
4472
+ s0 = peg$FAILED;
4473
+ }
4474
+ } else {
4475
+ peg$currPos = s0;
4476
+ s0 = peg$FAILED;
4477
+ }
4478
+ } else {
4479
+ peg$currPos = s0;
4480
+ s0 = peg$FAILED;
4481
+ }
4482
+ if (s0 === peg$FAILED) {
4483
+ s0 = peg$currPos;
4484
+ s1 = peg$parse_();
4485
+ s2 = peg$parseAttributeName();
4486
+ if (s2 !== peg$FAILED) {
4487
+ s3 = peg$currPos;
4488
+ peg$silentFails++;
4489
+ s4 = peg$currPos;
4490
+ s5 = peg$parse_();
4491
+ s6 = peg$parseChildKeyword();
4370
4492
  if (s6 === peg$FAILED) {
4371
- s6 = input.charAt(peg$currPos);
4372
- if (peg$r1.test(s6)) {
4373
- peg$currPos++;
4374
- } else {
4375
- s6 = peg$FAILED;
4376
- if (peg$silentFails === 0) {
4377
- peg$fail(peg$e57);
4378
- }
4379
- }
4493
+ s6 = peg$parseAttributeName();
4380
4494
  if (s6 === peg$FAILED) {
4381
- if (input.substr(peg$currPos, 2) === peg$c55) {
4382
- s6 = peg$c55;
4383
- peg$currPos += 2;
4495
+ s6 = input.charAt(peg$currPos);
4496
+ if (peg$r1.test(s6)) {
4497
+ peg$currPos++;
4384
4498
  } else {
4385
4499
  s6 = peg$FAILED;
4386
4500
  if (peg$silentFails === 0) {
4387
- peg$fail(peg$e58);
4501
+ peg$fail(peg$e60);
4388
4502
  }
4389
4503
  }
4390
4504
  if (s6 === peg$FAILED) {
4391
- if (input.substr(peg$currPos, 2) === peg$c56) {
4392
- s6 = peg$c56;
4505
+ if (input.substr(peg$currPos, 2) === peg$c58) {
4506
+ s6 = peg$c58;
4393
4507
  peg$currPos += 2;
4394
4508
  } else {
4395
4509
  s6 = peg$FAILED;
4396
4510
  if (peg$silentFails === 0) {
4397
- peg$fail(peg$e59);
4511
+ peg$fail(peg$e61);
4398
4512
  }
4399
4513
  }
4400
4514
  if (s6 === peg$FAILED) {
4401
- s6 = peg$currPos;
4402
- peg$silentFails++;
4403
- if (input.length > peg$currPos) {
4404
- s7 = input.charAt(peg$currPos);
4405
- peg$currPos++;
4515
+ if (input.substr(peg$currPos, 2) === peg$c59) {
4516
+ s6 = peg$c59;
4517
+ peg$currPos += 2;
4406
4518
  } else {
4407
- s7 = peg$FAILED;
4519
+ s6 = peg$FAILED;
4408
4520
  if (peg$silentFails === 0) {
4409
- peg$fail(peg$e60);
4521
+ peg$fail(peg$e62);
4410
4522
  }
4411
4523
  }
4412
- peg$silentFails--;
4413
- if (s7 === peg$FAILED) {
4414
- s6 = void 0;
4415
- } else {
4416
- peg$currPos = s6;
4417
- s6 = peg$FAILED;
4524
+ if (s6 === peg$FAILED) {
4525
+ s6 = peg$currPos;
4526
+ peg$silentFails++;
4527
+ if (input.length > peg$currPos) {
4528
+ s7 = input.charAt(peg$currPos);
4529
+ peg$currPos++;
4530
+ } else {
4531
+ s7 = peg$FAILED;
4532
+ if (peg$silentFails === 0) {
4533
+ peg$fail(peg$e63);
4534
+ }
4535
+ }
4536
+ peg$silentFails--;
4537
+ if (s7 === peg$FAILED) {
4538
+ s6 = void 0;
4539
+ } else {
4540
+ peg$currPos = s6;
4541
+ s6 = peg$FAILED;
4542
+ }
4418
4543
  }
4419
4544
  }
4420
4545
  }
4421
4546
  }
4422
4547
  }
4423
- }
4424
- if (s6 !== peg$FAILED) {
4425
- s5 = [s5, s6];
4426
- s4 = s5;
4427
- } else {
4428
- peg$currPos = s4;
4429
- s4 = peg$FAILED;
4430
- }
4431
- peg$silentFails--;
4432
- if (s4 !== peg$FAILED) {
4433
- peg$currPos = s3;
4434
- s3 = void 0;
4435
- } else {
4436
- s3 = peg$FAILED;
4437
- }
4438
- if (s3 !== peg$FAILED) {
4439
- peg$savedPos = s0;
4440
- s0 = peg$f80(s2);
4548
+ if (s6 !== peg$FAILED) {
4549
+ s5 = [s5, s6];
4550
+ s4 = s5;
4551
+ } else {
4552
+ peg$currPos = s4;
4553
+ s4 = peg$FAILED;
4554
+ }
4555
+ peg$silentFails--;
4556
+ if (s4 !== peg$FAILED) {
4557
+ peg$currPos = s3;
4558
+ s3 = void 0;
4559
+ } else {
4560
+ s3 = peg$FAILED;
4561
+ }
4562
+ if (s3 !== peg$FAILED) {
4563
+ peg$savedPos = s0;
4564
+ s0 = peg$f81(s2);
4565
+ } else {
4566
+ peg$currPos = s0;
4567
+ s0 = peg$FAILED;
4568
+ }
4441
4569
  } else {
4442
4570
  peg$currPos = s0;
4443
4571
  s0 = peg$FAILED;
4444
4572
  }
4445
- } else {
4446
- peg$currPos = s0;
4447
- s0 = peg$FAILED;
4448
4573
  }
4449
4574
  }
4450
4575
  return s0;
@@ -4466,7 +4591,7 @@ function peg$parse(input, options) {
4466
4591
  s2 = peg$parseIdentifier();
4467
4592
  if (s2 !== peg$FAILED) {
4468
4593
  peg$savedPos = s0;
4469
- s0 = peg$f81(s2);
4594
+ s0 = peg$f82(s2);
4470
4595
  } else {
4471
4596
  peg$currPos = s0;
4472
4597
  s0 = peg$FAILED;
@@ -5016,7 +5141,7 @@ function peg$parse(input, options) {
5016
5141
  } else {
5017
5142
  s0 = peg$FAILED;
5018
5143
  if (peg$silentFails === 0) {
5019
- peg$fail(peg$e61);
5144
+ peg$fail(peg$e64);
5020
5145
  }
5021
5146
  }
5022
5147
  return s0;
@@ -5049,12 +5174,12 @@ function peg$parse(input, options) {
5049
5174
  peg$silentFails++;
5050
5175
  s0 = peg$currPos;
5051
5176
  if (input.charCodeAt(peg$currPos) === 34) {
5052
- s1 = peg$c57;
5177
+ s1 = peg$c60;
5053
5178
  peg$currPos++;
5054
5179
  } else {
5055
5180
  s1 = peg$FAILED;
5056
5181
  if (peg$silentFails === 0) {
5057
- peg$fail(peg$e63);
5182
+ peg$fail(peg$e66);
5058
5183
  }
5059
5184
  }
5060
5185
  if (s1 !== peg$FAILED) {
@@ -5065,17 +5190,17 @@ function peg$parse(input, options) {
5065
5190
  s3 = peg$parseDoubleStringChar();
5066
5191
  }
5067
5192
  if (input.charCodeAt(peg$currPos) === 34) {
5068
- s3 = peg$c57;
5193
+ s3 = peg$c60;
5069
5194
  peg$currPos++;
5070
5195
  } else {
5071
5196
  s3 = peg$FAILED;
5072
5197
  if (peg$silentFails === 0) {
5073
- peg$fail(peg$e63);
5198
+ peg$fail(peg$e66);
5074
5199
  }
5075
5200
  }
5076
5201
  if (s3 !== peg$FAILED) {
5077
5202
  peg$savedPos = s0;
5078
- s0 = peg$f82(s2);
5203
+ s0 = peg$f83(s2);
5079
5204
  } else {
5080
5205
  peg$currPos = s0;
5081
5206
  s0 = peg$FAILED;
@@ -5087,12 +5212,12 @@ function peg$parse(input, options) {
5087
5212
  if (s0 === peg$FAILED) {
5088
5213
  s0 = peg$currPos;
5089
5214
  if (input.charCodeAt(peg$currPos) === 39) {
5090
- s1 = peg$c58;
5215
+ s1 = peg$c61;
5091
5216
  peg$currPos++;
5092
5217
  } else {
5093
5218
  s1 = peg$FAILED;
5094
5219
  if (peg$silentFails === 0) {
5095
- peg$fail(peg$e64);
5220
+ peg$fail(peg$e67);
5096
5221
  }
5097
5222
  }
5098
5223
  if (s1 !== peg$FAILED) {
@@ -5103,17 +5228,17 @@ function peg$parse(input, options) {
5103
5228
  s3 = peg$parseSingleStringChar();
5104
5229
  }
5105
5230
  if (input.charCodeAt(peg$currPos) === 39) {
5106
- s3 = peg$c58;
5231
+ s3 = peg$c61;
5107
5232
  peg$currPos++;
5108
5233
  } else {
5109
5234
  s3 = peg$FAILED;
5110
5235
  if (peg$silentFails === 0) {
5111
- peg$fail(peg$e64);
5236
+ peg$fail(peg$e67);
5112
5237
  }
5113
5238
  }
5114
5239
  if (s3 !== peg$FAILED) {
5115
5240
  peg$savedPos = s0;
5116
- s0 = peg$f83(s2);
5241
+ s0 = peg$f84(s2);
5117
5242
  } else {
5118
5243
  peg$currPos = s0;
5119
5244
  s0 = peg$FAILED;
@@ -5127,7 +5252,7 @@ function peg$parse(input, options) {
5127
5252
  if (s0 === peg$FAILED) {
5128
5253
  s1 = peg$FAILED;
5129
5254
  if (peg$silentFails === 0) {
5130
- peg$fail(peg$e62);
5255
+ peg$fail(peg$e65);
5131
5256
  }
5132
5257
  }
5133
5258
  return s0;
@@ -5138,12 +5263,12 @@ function peg$parse(input, options) {
5138
5263
  s1 = peg$currPos;
5139
5264
  peg$silentFails++;
5140
5265
  if (input.charCodeAt(peg$currPos) === 34) {
5141
- s2 = peg$c57;
5266
+ s2 = peg$c60;
5142
5267
  peg$currPos++;
5143
5268
  } else {
5144
5269
  s2 = peg$FAILED;
5145
5270
  if (peg$silentFails === 0) {
5146
- peg$fail(peg$e63);
5271
+ peg$fail(peg$e66);
5147
5272
  }
5148
5273
  }
5149
5274
  peg$silentFails--;
@@ -5157,12 +5282,12 @@ function peg$parse(input, options) {
5157
5282
  s2 = peg$currPos;
5158
5283
  peg$silentFails++;
5159
5284
  if (input.charCodeAt(peg$currPos) === 92) {
5160
- s3 = peg$c59;
5285
+ s3 = peg$c62;
5161
5286
  peg$currPos++;
5162
5287
  } else {
5163
5288
  s3 = peg$FAILED;
5164
5289
  if (peg$silentFails === 0) {
5165
- peg$fail(peg$e65);
5290
+ peg$fail(peg$e68);
5166
5291
  }
5167
5292
  }
5168
5293
  peg$silentFails--;
@@ -5179,12 +5304,12 @@ function peg$parse(input, options) {
5179
5304
  } else {
5180
5305
  s3 = peg$FAILED;
5181
5306
  if (peg$silentFails === 0) {
5182
- peg$fail(peg$e60);
5307
+ peg$fail(peg$e63);
5183
5308
  }
5184
5309
  }
5185
5310
  if (s3 !== peg$FAILED) {
5186
5311
  peg$savedPos = s0;
5187
- s0 = peg$f84(s3);
5312
+ s0 = peg$f85(s3);
5188
5313
  } else {
5189
5314
  peg$currPos = s0;
5190
5315
  s0 = peg$FAILED;
@@ -5200,19 +5325,19 @@ function peg$parse(input, options) {
5200
5325
  if (s0 === peg$FAILED) {
5201
5326
  s0 = peg$currPos;
5202
5327
  if (input.charCodeAt(peg$currPos) === 92) {
5203
- s1 = peg$c59;
5328
+ s1 = peg$c62;
5204
5329
  peg$currPos++;
5205
5330
  } else {
5206
5331
  s1 = peg$FAILED;
5207
5332
  if (peg$silentFails === 0) {
5208
- peg$fail(peg$e65);
5333
+ peg$fail(peg$e68);
5209
5334
  }
5210
5335
  }
5211
5336
  if (s1 !== peg$FAILED) {
5212
5337
  s2 = peg$parseEscapeSequence();
5213
5338
  if (s2 !== peg$FAILED) {
5214
5339
  peg$savedPos = s0;
5215
- s0 = peg$f85(s2);
5340
+ s0 = peg$f86(s2);
5216
5341
  } else {
5217
5342
  peg$currPos = s0;
5218
5343
  s0 = peg$FAILED;
@@ -5230,12 +5355,12 @@ function peg$parse(input, options) {
5230
5355
  s1 = peg$currPos;
5231
5356
  peg$silentFails++;
5232
5357
  if (input.charCodeAt(peg$currPos) === 39) {
5233
- s2 = peg$c58;
5358
+ s2 = peg$c61;
5234
5359
  peg$currPos++;
5235
5360
  } else {
5236
5361
  s2 = peg$FAILED;
5237
5362
  if (peg$silentFails === 0) {
5238
- peg$fail(peg$e64);
5363
+ peg$fail(peg$e67);
5239
5364
  }
5240
5365
  }
5241
5366
  peg$silentFails--;
@@ -5249,12 +5374,12 @@ function peg$parse(input, options) {
5249
5374
  s2 = peg$currPos;
5250
5375
  peg$silentFails++;
5251
5376
  if (input.charCodeAt(peg$currPos) === 92) {
5252
- s3 = peg$c59;
5377
+ s3 = peg$c62;
5253
5378
  peg$currPos++;
5254
5379
  } else {
5255
5380
  s3 = peg$FAILED;
5256
5381
  if (peg$silentFails === 0) {
5257
- peg$fail(peg$e65);
5382
+ peg$fail(peg$e68);
5258
5383
  }
5259
5384
  }
5260
5385
  peg$silentFails--;
@@ -5271,12 +5396,12 @@ function peg$parse(input, options) {
5271
5396
  } else {
5272
5397
  s3 = peg$FAILED;
5273
5398
  if (peg$silentFails === 0) {
5274
- peg$fail(peg$e60);
5399
+ peg$fail(peg$e63);
5275
5400
  }
5276
5401
  }
5277
5402
  if (s3 !== peg$FAILED) {
5278
5403
  peg$savedPos = s0;
5279
- s0 = peg$f86(s3);
5404
+ s0 = peg$f87(s3);
5280
5405
  } else {
5281
5406
  peg$currPos = s0;
5282
5407
  s0 = peg$FAILED;
@@ -5292,19 +5417,19 @@ function peg$parse(input, options) {
5292
5417
  if (s0 === peg$FAILED) {
5293
5418
  s0 = peg$currPos;
5294
5419
  if (input.charCodeAt(peg$currPos) === 92) {
5295
- s1 = peg$c59;
5420
+ s1 = peg$c62;
5296
5421
  peg$currPos++;
5297
5422
  } else {
5298
5423
  s1 = peg$FAILED;
5299
5424
  if (peg$silentFails === 0) {
5300
- peg$fail(peg$e65);
5425
+ peg$fail(peg$e68);
5301
5426
  }
5302
5427
  }
5303
5428
  if (s1 !== peg$FAILED) {
5304
5429
  s2 = peg$parseEscapeSequence();
5305
5430
  if (s2 !== peg$FAILED) {
5306
5431
  peg$savedPos = s0;
5307
- s0 = peg$f87(s2);
5432
+ s0 = peg$f88(s2);
5308
5433
  } else {
5309
5434
  peg$currPos = s0;
5310
5435
  s0 = peg$FAILED;
@@ -5320,97 +5445,97 @@ function peg$parse(input, options) {
5320
5445
  let s0, s1;
5321
5446
  s0 = peg$currPos;
5322
5447
  if (input.charCodeAt(peg$currPos) === 110) {
5323
- s1 = peg$c60;
5448
+ s1 = peg$c63;
5324
5449
  peg$currPos++;
5325
5450
  } else {
5326
5451
  s1 = peg$FAILED;
5327
5452
  if (peg$silentFails === 0) {
5328
- peg$fail(peg$e66);
5453
+ peg$fail(peg$e69);
5329
5454
  }
5330
5455
  }
5331
5456
  if (s1 !== peg$FAILED) {
5332
5457
  peg$savedPos = s0;
5333
- s1 = peg$f88();
5458
+ s1 = peg$f89();
5334
5459
  }
5335
5460
  s0 = s1;
5336
5461
  if (s0 === peg$FAILED) {
5337
5462
  s0 = peg$currPos;
5338
5463
  if (input.charCodeAt(peg$currPos) === 114) {
5339
- s1 = peg$c61;
5464
+ s1 = peg$c64;
5340
5465
  peg$currPos++;
5341
5466
  } else {
5342
5467
  s1 = peg$FAILED;
5343
5468
  if (peg$silentFails === 0) {
5344
- peg$fail(peg$e67);
5469
+ peg$fail(peg$e70);
5345
5470
  }
5346
5471
  }
5347
5472
  if (s1 !== peg$FAILED) {
5348
5473
  peg$savedPos = s0;
5349
- s1 = peg$f89();
5474
+ s1 = peg$f90();
5350
5475
  }
5351
5476
  s0 = s1;
5352
5477
  if (s0 === peg$FAILED) {
5353
5478
  s0 = peg$currPos;
5354
5479
  if (input.charCodeAt(peg$currPos) === 116) {
5355
- s1 = peg$c62;
5480
+ s1 = peg$c65;
5356
5481
  peg$currPos++;
5357
5482
  } else {
5358
5483
  s1 = peg$FAILED;
5359
5484
  if (peg$silentFails === 0) {
5360
- peg$fail(peg$e68);
5485
+ peg$fail(peg$e71);
5361
5486
  }
5362
5487
  }
5363
5488
  if (s1 !== peg$FAILED) {
5364
5489
  peg$savedPos = s0;
5365
- s1 = peg$f90();
5490
+ s1 = peg$f91();
5366
5491
  }
5367
5492
  s0 = s1;
5368
5493
  if (s0 === peg$FAILED) {
5369
5494
  s0 = peg$currPos;
5370
5495
  if (input.charCodeAt(peg$currPos) === 92) {
5371
- s1 = peg$c59;
5496
+ s1 = peg$c62;
5372
5497
  peg$currPos++;
5373
5498
  } else {
5374
5499
  s1 = peg$FAILED;
5375
5500
  if (peg$silentFails === 0) {
5376
- peg$fail(peg$e65);
5501
+ peg$fail(peg$e68);
5377
5502
  }
5378
5503
  }
5379
5504
  if (s1 !== peg$FAILED) {
5380
5505
  peg$savedPos = s0;
5381
- s1 = peg$f91();
5506
+ s1 = peg$f92();
5382
5507
  }
5383
5508
  s0 = s1;
5384
5509
  if (s0 === peg$FAILED) {
5385
5510
  s0 = peg$currPos;
5386
5511
  if (input.charCodeAt(peg$currPos) === 34) {
5387
- s1 = peg$c57;
5512
+ s1 = peg$c60;
5388
5513
  peg$currPos++;
5389
5514
  } else {
5390
5515
  s1 = peg$FAILED;
5391
5516
  if (peg$silentFails === 0) {
5392
- peg$fail(peg$e63);
5517
+ peg$fail(peg$e66);
5393
5518
  }
5394
5519
  }
5395
5520
  if (s1 !== peg$FAILED) {
5396
5521
  peg$savedPos = s0;
5397
- s1 = peg$f92();
5522
+ s1 = peg$f93();
5398
5523
  }
5399
5524
  s0 = s1;
5400
5525
  if (s0 === peg$FAILED) {
5401
5526
  s0 = peg$currPos;
5402
5527
  if (input.charCodeAt(peg$currPos) === 39) {
5403
- s1 = peg$c58;
5528
+ s1 = peg$c61;
5404
5529
  peg$currPos++;
5405
5530
  } else {
5406
5531
  s1 = peg$FAILED;
5407
5532
  if (peg$silentFails === 0) {
5408
- peg$fail(peg$e64);
5533
+ peg$fail(peg$e67);
5409
5534
  }
5410
5535
  }
5411
5536
  if (s1 !== peg$FAILED) {
5412
5537
  peg$savedPos = s0;
5413
- s1 = peg$f93();
5538
+ s1 = peg$f94();
5414
5539
  }
5415
5540
  s0 = s1;
5416
5541
  }
@@ -5425,12 +5550,12 @@ function peg$parse(input, options) {
5425
5550
  peg$silentFails++;
5426
5551
  s0 = peg$currPos;
5427
5552
  if (input.charCodeAt(peg$currPos) === 45) {
5428
- s1 = peg$c63;
5553
+ s1 = peg$c66;
5429
5554
  peg$currPos++;
5430
5555
  } else {
5431
5556
  s1 = peg$FAILED;
5432
5557
  if (peg$silentFails === 0) {
5433
- peg$fail(peg$e70);
5558
+ peg$fail(peg$e73);
5434
5559
  }
5435
5560
  }
5436
5561
  if (s1 === peg$FAILED) {
@@ -5465,12 +5590,12 @@ function peg$parse(input, options) {
5465
5590
  if (s2 !== peg$FAILED) {
5466
5591
  s3 = peg$currPos;
5467
5592
  if (input.charCodeAt(peg$currPos) === 46) {
5468
- s4 = peg$c64;
5593
+ s4 = peg$c67;
5469
5594
  peg$currPos++;
5470
5595
  } else {
5471
5596
  s4 = peg$FAILED;
5472
5597
  if (peg$silentFails === 0) {
5473
- peg$fail(peg$e71);
5598
+ peg$fail(peg$e74);
5474
5599
  }
5475
5600
  }
5476
5601
  if (s4 !== peg$FAILED) {
@@ -5515,7 +5640,7 @@ function peg$parse(input, options) {
5515
5640
  s3 = null;
5516
5641
  }
5517
5642
  peg$savedPos = s0;
5518
- s0 = peg$f94(s1, s2, s3);
5643
+ s0 = peg$f95(s1, s2, s3);
5519
5644
  } else {
5520
5645
  peg$currPos = s0;
5521
5646
  s0 = peg$FAILED;
@@ -5524,7 +5649,7 @@ function peg$parse(input, options) {
5524
5649
  if (s0 === peg$FAILED) {
5525
5650
  s1 = peg$FAILED;
5526
5651
  if (peg$silentFails === 0) {
5527
- peg$fail(peg$e69);
5652
+ peg$fail(peg$e72);
5528
5653
  }
5529
5654
  }
5530
5655
  return s0;
@@ -5534,12 +5659,12 @@ function peg$parse(input, options) {
5534
5659
  peg$silentFails++;
5535
5660
  s0 = peg$currPos;
5536
5661
  if (input.charCodeAt(peg$currPos) === 45) {
5537
- s1 = peg$c63;
5662
+ s1 = peg$c66;
5538
5663
  peg$currPos++;
5539
5664
  } else {
5540
5665
  s1 = peg$FAILED;
5541
5666
  if (peg$silentFails === 0) {
5542
- peg$fail(peg$e70);
5667
+ peg$fail(peg$e73);
5543
5668
  }
5544
5669
  }
5545
5670
  if (s1 === peg$FAILED) {
@@ -5574,12 +5699,12 @@ function peg$parse(input, options) {
5574
5699
  if (s2 !== peg$FAILED) {
5575
5700
  s3 = peg$currPos;
5576
5701
  if (input.charCodeAt(peg$currPos) === 46) {
5577
- s4 = peg$c64;
5702
+ s4 = peg$c67;
5578
5703
  peg$currPos++;
5579
5704
  } else {
5580
5705
  s4 = peg$FAILED;
5581
5706
  if (peg$silentFails === 0) {
5582
- peg$fail(peg$e71);
5707
+ peg$fail(peg$e74);
5583
5708
  }
5584
5709
  }
5585
5710
  if (s4 !== peg$FAILED) {
@@ -5623,63 +5748,63 @@ function peg$parse(input, options) {
5623
5748
  if (s3 === peg$FAILED) {
5624
5749
  s3 = null;
5625
5750
  }
5626
- if (input.substr(peg$currPos, 2) === peg$c65) {
5627
- s4 = peg$c65;
5751
+ if (input.substr(peg$currPos, 2) === peg$c68) {
5752
+ s4 = peg$c68;
5628
5753
  peg$currPos += 2;
5629
5754
  } else {
5630
5755
  s4 = peg$FAILED;
5631
5756
  if (peg$silentFails === 0) {
5632
- peg$fail(peg$e73);
5757
+ peg$fail(peg$e76);
5633
5758
  }
5634
5759
  }
5635
5760
  if (s4 === peg$FAILED) {
5636
5761
  if (input.charCodeAt(peg$currPos) === 37) {
5637
- s4 = peg$c66;
5762
+ s4 = peg$c69;
5638
5763
  peg$currPos++;
5639
5764
  } else {
5640
5765
  s4 = peg$FAILED;
5641
5766
  if (peg$silentFails === 0) {
5642
- peg$fail(peg$e74);
5767
+ peg$fail(peg$e77);
5643
5768
  }
5644
5769
  }
5645
5770
  if (s4 === peg$FAILED) {
5646
- if (input.substr(peg$currPos, 2) === peg$c67) {
5647
- s4 = peg$c67;
5771
+ if (input.substr(peg$currPos, 2) === peg$c70) {
5772
+ s4 = peg$c70;
5648
5773
  peg$currPos += 2;
5649
5774
  } else {
5650
5775
  s4 = peg$FAILED;
5651
5776
  if (peg$silentFails === 0) {
5652
- peg$fail(peg$e75);
5777
+ peg$fail(peg$e78);
5653
5778
  }
5654
5779
  }
5655
5780
  if (s4 === peg$FAILED) {
5656
- if (input.substr(peg$currPos, 3) === peg$c68) {
5657
- s4 = peg$c68;
5781
+ if (input.substr(peg$currPos, 3) === peg$c71) {
5782
+ s4 = peg$c71;
5658
5783
  peg$currPos += 3;
5659
5784
  } else {
5660
5785
  s4 = peg$FAILED;
5661
5786
  if (peg$silentFails === 0) {
5662
- peg$fail(peg$e76);
5787
+ peg$fail(peg$e79);
5663
5788
  }
5664
5789
  }
5665
5790
  if (s4 === peg$FAILED) {
5666
- if (input.substr(peg$currPos, 2) === peg$c69) {
5667
- s4 = peg$c69;
5791
+ if (input.substr(peg$currPos, 2) === peg$c72) {
5792
+ s4 = peg$c72;
5668
5793
  peg$currPos += 2;
5669
5794
  } else {
5670
5795
  s4 = peg$FAILED;
5671
5796
  if (peg$silentFails === 0) {
5672
- peg$fail(peg$e77);
5797
+ peg$fail(peg$e80);
5673
5798
  }
5674
5799
  }
5675
5800
  if (s4 === peg$FAILED) {
5676
- if (input.substr(peg$currPos, 2) === peg$c70) {
5677
- s4 = peg$c70;
5801
+ if (input.substr(peg$currPos, 2) === peg$c73) {
5802
+ s4 = peg$c73;
5678
5803
  peg$currPos += 2;
5679
5804
  } else {
5680
5805
  s4 = peg$FAILED;
5681
5806
  if (peg$silentFails === 0) {
5682
- peg$fail(peg$e78);
5807
+ peg$fail(peg$e81);
5683
5808
  }
5684
5809
  }
5685
5810
  }
@@ -5689,7 +5814,7 @@ function peg$parse(input, options) {
5689
5814
  }
5690
5815
  if (s4 !== peg$FAILED) {
5691
5816
  peg$savedPos = s0;
5692
- s0 = peg$f95(s1, s2, s3, s4);
5817
+ s0 = peg$f96(s1, s2, s3, s4);
5693
5818
  } else {
5694
5819
  peg$currPos = s0;
5695
5820
  s0 = peg$FAILED;
@@ -5702,7 +5827,7 @@ function peg$parse(input, options) {
5702
5827
  if (s0 === peg$FAILED) {
5703
5828
  s1 = peg$FAILED;
5704
5829
  if (peg$silentFails === 0) {
5705
- peg$fail(peg$e72);
5830
+ peg$fail(peg$e75);
5706
5831
  }
5707
5832
  }
5708
5833
  return s0;
@@ -5711,34 +5836,34 @@ function peg$parse(input, options) {
5711
5836
  let s0, s1;
5712
5837
  peg$silentFails++;
5713
5838
  s0 = peg$currPos;
5714
- if (input.substr(peg$currPos, 4) === peg$c71) {
5715
- s1 = peg$c71;
5839
+ if (input.substr(peg$currPos, 4) === peg$c74) {
5840
+ s1 = peg$c74;
5716
5841
  peg$currPos += 4;
5717
5842
  } else {
5718
5843
  s1 = peg$FAILED;
5719
5844
  if (peg$silentFails === 0) {
5720
- peg$fail(peg$e80);
5845
+ peg$fail(peg$e83);
5721
5846
  }
5722
5847
  }
5723
5848
  if (s1 !== peg$FAILED) {
5724
5849
  peg$savedPos = s0;
5725
- s1 = peg$f96();
5850
+ s1 = peg$f97();
5726
5851
  }
5727
5852
  s0 = s1;
5728
5853
  if (s0 === peg$FAILED) {
5729
5854
  s0 = peg$currPos;
5730
- if (input.substr(peg$currPos, 5) === peg$c72) {
5731
- s1 = peg$c72;
5855
+ if (input.substr(peg$currPos, 5) === peg$c75) {
5856
+ s1 = peg$c75;
5732
5857
  peg$currPos += 5;
5733
5858
  } else {
5734
5859
  s1 = peg$FAILED;
5735
5860
  if (peg$silentFails === 0) {
5736
- peg$fail(peg$e81);
5861
+ peg$fail(peg$e84);
5737
5862
  }
5738
5863
  }
5739
5864
  if (s1 !== peg$FAILED) {
5740
5865
  peg$savedPos = s0;
5741
- s1 = peg$f97();
5866
+ s1 = peg$f98();
5742
5867
  }
5743
5868
  s0 = s1;
5744
5869
  }
@@ -5746,7 +5871,7 @@ function peg$parse(input, options) {
5746
5871
  if (s0 === peg$FAILED) {
5747
5872
  s1 = peg$FAILED;
5748
5873
  if (peg$silentFails === 0) {
5749
- peg$fail(peg$e79);
5874
+ peg$fail(peg$e82);
5750
5875
  }
5751
5876
  }
5752
5877
  return s0;
@@ -5761,7 +5886,7 @@ function peg$parse(input, options) {
5761
5886
  } else {
5762
5887
  s1 = peg$FAILED;
5763
5888
  if (peg$silentFails === 0) {
5764
- peg$fail(peg$e83);
5889
+ peg$fail(peg$e86);
5765
5890
  }
5766
5891
  }
5767
5892
  if (s1 !== peg$FAILED) {
@@ -5772,7 +5897,7 @@ function peg$parse(input, options) {
5772
5897
  } else {
5773
5898
  s3 = peg$FAILED;
5774
5899
  if (peg$silentFails === 0) {
5775
- peg$fail(peg$e61);
5900
+ peg$fail(peg$e64);
5776
5901
  }
5777
5902
  }
5778
5903
  while (s3 !== peg$FAILED) {
@@ -5783,12 +5908,12 @@ function peg$parse(input, options) {
5783
5908
  } else {
5784
5909
  s3 = peg$FAILED;
5785
5910
  if (peg$silentFails === 0) {
5786
- peg$fail(peg$e61);
5911
+ peg$fail(peg$e64);
5787
5912
  }
5788
5913
  }
5789
5914
  }
5790
5915
  peg$savedPos = s0;
5791
- s0 = peg$f98(s1, s2);
5916
+ s0 = peg$f99(s1, s2);
5792
5917
  } else {
5793
5918
  peg$currPos = s0;
5794
5919
  s0 = peg$FAILED;
@@ -5797,7 +5922,7 @@ function peg$parse(input, options) {
5797
5922
  if (s0 === peg$FAILED) {
5798
5923
  s1 = peg$FAILED;
5799
5924
  if (peg$silentFails === 0) {
5800
- peg$fail(peg$e82);
5925
+ peg$fail(peg$e85);
5801
5926
  }
5802
5927
  }
5803
5928
  return s0;
@@ -5832,7 +5957,7 @@ function peg$parse(input, options) {
5832
5957
  }
5833
5958
  if (s5 !== peg$FAILED) {
5834
5959
  peg$savedPos = s0;
5835
- s0 = peg$f99(s3);
5960
+ s0 = peg$f100(s3);
5836
5961
  } else {
5837
5962
  peg$currPos = s0;
5838
5963
  s0 = peg$FAILED;
@@ -5920,7 +6045,7 @@ function peg$parse(input, options) {
5920
6045
  s3 = null;
5921
6046
  }
5922
6047
  peg$savedPos = s0;
5923
- s0 = peg$f100(s1, s2);
6048
+ s0 = peg$f101(s1, s2);
5924
6049
  } else {
5925
6050
  peg$currPos = s0;
5926
6051
  s0 = peg$FAILED;
@@ -5974,7 +6099,7 @@ function peg$parse(input, options) {
5974
6099
  }
5975
6100
  if (s5 !== peg$FAILED) {
5976
6101
  peg$savedPos = s0;
5977
- s0 = peg$f101(s3);
6102
+ s0 = peg$f102(s3);
5978
6103
  } else {
5979
6104
  peg$currPos = s0;
5980
6105
  s0 = peg$FAILED;
@@ -6041,7 +6166,7 @@ function peg$parse(input, options) {
6041
6166
  }
6042
6167
  }
6043
6168
  peg$savedPos = s0;
6044
- s0 = peg$f102(s1, s2);
6169
+ s0 = peg$f103(s1, s2);
6045
6170
  } else {
6046
6171
  peg$currPos = s0;
6047
6172
  s0 = peg$FAILED;
@@ -6055,12 +6180,12 @@ function peg$parse(input, options) {
6055
6180
  if (s1 !== peg$FAILED) {
6056
6181
  s2 = peg$parse_();
6057
6182
  if (input.charCodeAt(peg$currPos) === 61) {
6058
- s3 = peg$c54;
6183
+ s3 = peg$c57;
6059
6184
  peg$currPos++;
6060
6185
  } else {
6061
6186
  s3 = peg$FAILED;
6062
6187
  if (peg$silentFails === 0) {
6063
- peg$fail(peg$e56);
6188
+ peg$fail(peg$e59);
6064
6189
  }
6065
6190
  }
6066
6191
  if (s3 !== peg$FAILED) {
@@ -6068,7 +6193,7 @@ function peg$parse(input, options) {
6068
6193
  s5 = peg$parseAttributeValue();
6069
6194
  if (s5 !== peg$FAILED) {
6070
6195
  peg$savedPos = s0;
6071
- s0 = peg$f103(s1, s5);
6196
+ s0 = peg$f104(s1, s5);
6072
6197
  } else {
6073
6198
  peg$currPos = s0;
6074
6199
  s0 = peg$FAILED;
@@ -6086,7 +6211,7 @@ function peg$parse(input, options) {
6086
6211
  s1 = peg$parseIdentifier();
6087
6212
  if (s1 !== peg$FAILED) {
6088
6213
  peg$savedPos = s0;
6089
- s1 = peg$f104(s1);
6214
+ s1 = peg$f105(s1);
6090
6215
  }
6091
6216
  s0 = s1;
6092
6217
  }
@@ -6119,7 +6244,7 @@ function peg$parse(input, options) {
6119
6244
  } else {
6120
6245
  s1 = peg$FAILED;
6121
6246
  if (peg$silentFails === 0) {
6122
- peg$fail(peg$e84);
6247
+ peg$fail(peg$e87);
6123
6248
  }
6124
6249
  }
6125
6250
  if (s1 !== peg$FAILED) {
@@ -6131,7 +6256,7 @@ function peg$parse(input, options) {
6131
6256
  } else {
6132
6257
  s1 = peg$FAILED;
6133
6258
  if (peg$silentFails === 0) {
6134
- peg$fail(peg$e84);
6259
+ peg$fail(peg$e87);
6135
6260
  }
6136
6261
  }
6137
6262
  }
@@ -6151,7 +6276,7 @@ function peg$parse(input, options) {
6151
6276
  if (s0 === peg$FAILED) {
6152
6277
  s1 = peg$FAILED;
6153
6278
  if (peg$silentFails === 0) {
6154
- peg$fail(peg$e85);
6279
+ peg$fail(peg$e88);
6155
6280
  }
6156
6281
  }
6157
6282
  return s0;
@@ -6159,13 +6284,13 @@ function peg$parse(input, options) {
6159
6284
  function peg$parseLineComment() {
6160
6285
  let s0, s1, s2, s3, s4;
6161
6286
  s0 = peg$currPos;
6162
- if (input.substr(peg$currPos, 2) === peg$c55) {
6163
- s1 = peg$c55;
6287
+ if (input.substr(peg$currPos, 2) === peg$c58) {
6288
+ s1 = peg$c58;
6164
6289
  peg$currPos += 2;
6165
6290
  } else {
6166
6291
  s1 = peg$FAILED;
6167
6292
  if (peg$silentFails === 0) {
6168
- peg$fail(peg$e58);
6293
+ peg$fail(peg$e61);
6169
6294
  }
6170
6295
  }
6171
6296
  if (s1 !== peg$FAILED) {
@@ -6176,7 +6301,7 @@ function peg$parse(input, options) {
6176
6301
  } else {
6177
6302
  s3 = peg$FAILED;
6178
6303
  if (peg$silentFails === 0) {
6179
- peg$fail(peg$e86);
6304
+ peg$fail(peg$e89);
6180
6305
  }
6181
6306
  }
6182
6307
  while (s3 !== peg$FAILED) {
@@ -6187,17 +6312,17 @@ function peg$parse(input, options) {
6187
6312
  } else {
6188
6313
  s3 = peg$FAILED;
6189
6314
  if (peg$silentFails === 0) {
6190
- peg$fail(peg$e86);
6315
+ peg$fail(peg$e89);
6191
6316
  }
6192
6317
  }
6193
6318
  }
6194
6319
  if (input.charCodeAt(peg$currPos) === 10) {
6195
- s3 = peg$c73;
6320
+ s3 = peg$c76;
6196
6321
  peg$currPos++;
6197
6322
  } else {
6198
6323
  s3 = peg$FAILED;
6199
6324
  if (peg$silentFails === 0) {
6200
- peg$fail(peg$e87);
6325
+ peg$fail(peg$e90);
6201
6326
  }
6202
6327
  }
6203
6328
  if (s3 === peg$FAILED) {
@@ -6209,7 +6334,7 @@ function peg$parse(input, options) {
6209
6334
  } else {
6210
6335
  s4 = peg$FAILED;
6211
6336
  if (peg$silentFails === 0) {
6212
- peg$fail(peg$e60);
6337
+ peg$fail(peg$e63);
6213
6338
  }
6214
6339
  }
6215
6340
  peg$silentFails--;
@@ -6236,13 +6361,13 @@ function peg$parse(input, options) {
6236
6361
  function peg$parseBlockComment() {
6237
6362
  let s0, s1, s2, s3, s4, s5;
6238
6363
  s0 = peg$currPos;
6239
- if (input.substr(peg$currPos, 2) === peg$c56) {
6240
- s1 = peg$c56;
6364
+ if (input.substr(peg$currPos, 2) === peg$c59) {
6365
+ s1 = peg$c59;
6241
6366
  peg$currPos += 2;
6242
6367
  } else {
6243
6368
  s1 = peg$FAILED;
6244
6369
  if (peg$silentFails === 0) {
6245
- peg$fail(peg$e59);
6370
+ peg$fail(peg$e62);
6246
6371
  }
6247
6372
  }
6248
6373
  if (s1 !== peg$FAILED) {
@@ -6250,13 +6375,13 @@ function peg$parse(input, options) {
6250
6375
  s3 = peg$currPos;
6251
6376
  s4 = peg$currPos;
6252
6377
  peg$silentFails++;
6253
- if (input.substr(peg$currPos, 2) === peg$c74) {
6254
- s5 = peg$c74;
6378
+ if (input.substr(peg$currPos, 2) === peg$c77) {
6379
+ s5 = peg$c77;
6255
6380
  peg$currPos += 2;
6256
6381
  } else {
6257
6382
  s5 = peg$FAILED;
6258
6383
  if (peg$silentFails === 0) {
6259
- peg$fail(peg$e88);
6384
+ peg$fail(peg$e91);
6260
6385
  }
6261
6386
  }
6262
6387
  peg$silentFails--;
@@ -6273,7 +6398,7 @@ function peg$parse(input, options) {
6273
6398
  } else {
6274
6399
  s5 = peg$FAILED;
6275
6400
  if (peg$silentFails === 0) {
6276
- peg$fail(peg$e60);
6401
+ peg$fail(peg$e63);
6277
6402
  }
6278
6403
  }
6279
6404
  if (s5 !== peg$FAILED) {
@@ -6292,13 +6417,13 @@ function peg$parse(input, options) {
6292
6417
  s3 = peg$currPos;
6293
6418
  s4 = peg$currPos;
6294
6419
  peg$silentFails++;
6295
- if (input.substr(peg$currPos, 2) === peg$c74) {
6296
- s5 = peg$c74;
6420
+ if (input.substr(peg$currPos, 2) === peg$c77) {
6421
+ s5 = peg$c77;
6297
6422
  peg$currPos += 2;
6298
6423
  } else {
6299
6424
  s5 = peg$FAILED;
6300
6425
  if (peg$silentFails === 0) {
6301
- peg$fail(peg$e88);
6426
+ peg$fail(peg$e91);
6302
6427
  }
6303
6428
  }
6304
6429
  peg$silentFails--;
@@ -6315,7 +6440,7 @@ function peg$parse(input, options) {
6315
6440
  } else {
6316
6441
  s5 = peg$FAILED;
6317
6442
  if (peg$silentFails === 0) {
6318
- peg$fail(peg$e60);
6443
+ peg$fail(peg$e63);
6319
6444
  }
6320
6445
  }
6321
6446
  if (s5 !== peg$FAILED) {
@@ -6330,13 +6455,13 @@ function peg$parse(input, options) {
6330
6455
  s3 = peg$FAILED;
6331
6456
  }
6332
6457
  }
6333
- if (input.substr(peg$currPos, 2) === peg$c74) {
6334
- s3 = peg$c74;
6458
+ if (input.substr(peg$currPos, 2) === peg$c77) {
6459
+ s3 = peg$c77;
6335
6460
  peg$currPos += 2;
6336
6461
  } else {
6337
6462
  s3 = peg$FAILED;
6338
6463
  if (peg$silentFails === 0) {
6339
- peg$fail(peg$e88);
6464
+ peg$fail(peg$e91);
6340
6465
  }
6341
6466
  }
6342
6467
  if (s3 !== peg$FAILED) {
@@ -6362,7 +6487,7 @@ function peg$parse(input, options) {
6362
6487
  function attrsToObject(attrs) {
6363
6488
  if (!attrs || attrs.length === 0) return {};
6364
6489
  const result = {};
6365
- for (const attr of attrs) {
6490
+ for (const attr of attrs.flat()) {
6366
6491
  result[attr.name] = attr.value;
6367
6492
  }
6368
6493
  return result;