state-machine-cat 15.0.0 → 15.0.2

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.
@@ -228,13 +228,14 @@ function peg$parse(input, options) {
228
228
  const peg$c45 = "*/";
229
229
  const peg$c46 = "//";
230
230
  const peg$r0 = /^[0-9]/;
231
- const peg$r1 = /^[a-zA-Z0-9_\- ]/;
232
- const peg$r2 = /^[,;{]/;
233
- const peg$r3 = /^[;{]/;
234
- const peg$r4 = /^[^;, "\t\n\r=\-><:{[]/;
235
- const peg$r5 = /^[ \t]/;
236
- const peg$r6 = /^[\r\n]/;
237
- const peg$r7 = /^[^\r\n]/;
231
+ const peg$r1 = /^[a-zA-Z0-9#,.:; ]/;
232
+ const peg$r2 = /^[a-zA-Z0-9_\- ]/;
233
+ const peg$r3 = /^[,;{]/;
234
+ const peg$r4 = /^[;{]/;
235
+ const peg$r5 = /^[^;, "\t\n\r=\-><:{[]/;
236
+ const peg$r6 = /^[ \t]/;
237
+ const peg$r7 = /^[\r\n]/;
238
+ const peg$r8 = /^[^\r\n]/;
238
239
  const peg$e0 = peg$literalExpectation(",", false);
239
240
  const peg$e1 = peg$literalExpectation(";", false);
240
241
  const peg$e2 = peg$otherExpectation("state");
@@ -245,31 +246,31 @@ function peg$parse(input, options) {
245
246
  const peg$e7 = peg$literalExpectation("}", false);
246
247
  const peg$e8 = peg$otherExpectation("extended state attribute");
247
248
  const peg$e9 = peg$literalExpectation("=", false);
248
- const peg$e10 = peg$otherExpectation("state attribute name");
249
+ const peg$e10 = peg$otherExpectation("state attribute label");
249
250
  const peg$e11 = peg$literalExpectation("label", true);
250
- const peg$e12 = peg$literalExpectation("color", true);
251
- const peg$e13 = peg$otherExpectation("class attribute");
252
- const peg$e14 = peg$literalExpectation("class", true);
253
- const peg$e15 = peg$otherExpectation("state flag");
254
- const peg$e16 = peg$literalExpectation("active", true);
255
- const peg$e17 = peg$otherExpectation("state type");
256
- const peg$e18 = peg$literalExpectation("type", true);
257
- const peg$e19 = peg$otherExpectation("state type type");
258
- const peg$e20 = peg$literalExpectation("regular", false);
259
- const peg$e21 = peg$literalExpectation("initial", false);
260
- const peg$e22 = peg$literalExpectation("terminate", false);
261
- const peg$e23 = peg$literalExpectation("final", false);
262
- const peg$e24 = peg$literalExpectation("parallel", false);
263
- const peg$e25 = peg$literalExpectation("history", false);
264
- const peg$e26 = peg$literalExpectation("deephistory", false);
265
- const peg$e27 = peg$literalExpectation("choice", false);
266
- const peg$e28 = peg$literalExpectation("forkjoin", false);
267
- const peg$e29 = peg$literalExpectation("fork", false);
268
- const peg$e30 = peg$literalExpectation("join", false);
269
- const peg$e31 = peg$literalExpectation("junction", false);
270
- const peg$e32 = peg$otherExpectation("transition");
271
- const peg$e33 = peg$otherExpectation("extended transition attribute");
272
- const peg$e34 = peg$otherExpectation("transition attribute name");
251
+ const peg$e12 = peg$otherExpectation("state attribute color");
252
+ const peg$e13 = peg$literalExpectation("color", true);
253
+ const peg$e14 = peg$otherExpectation("class attribute");
254
+ const peg$e15 = peg$literalExpectation("class", true);
255
+ const peg$e16 = peg$otherExpectation("state flag");
256
+ const peg$e17 = peg$literalExpectation("active", true);
257
+ const peg$e18 = peg$otherExpectation("state type");
258
+ const peg$e19 = peg$literalExpectation("type", true);
259
+ const peg$e20 = peg$otherExpectation("state type type");
260
+ const peg$e21 = peg$literalExpectation("regular", false);
261
+ const peg$e22 = peg$literalExpectation("initial", false);
262
+ const peg$e23 = peg$literalExpectation("terminate", false);
263
+ const peg$e24 = peg$literalExpectation("final", false);
264
+ const peg$e25 = peg$literalExpectation("parallel", false);
265
+ const peg$e26 = peg$literalExpectation("history", false);
266
+ const peg$e27 = peg$literalExpectation("deephistory", false);
267
+ const peg$e28 = peg$literalExpectation("choice", false);
268
+ const peg$e29 = peg$literalExpectation("forkjoin", false);
269
+ const peg$e30 = peg$literalExpectation("fork", false);
270
+ const peg$e31 = peg$literalExpectation("join", false);
271
+ const peg$e32 = peg$literalExpectation("junction", false);
272
+ const peg$e33 = peg$otherExpectation("transition");
273
+ const peg$e34 = peg$otherExpectation("extended transition attribute");
273
274
  const peg$e35 = peg$otherExpectation("transition type name");
274
275
  const peg$e36 = peg$otherExpectation("numeric transition attribute name");
275
276
  const peg$e37 = peg$literalExpectation("width", true);
@@ -297,31 +298,38 @@ function peg$parse(input, options) {
297
298
  const peg$e59 = peg$literalExpectation('"', false);
298
299
  const peg$e60 = peg$literalExpectation('\\"', false);
299
300
  const peg$e61 = peg$anyExpectation();
300
- const peg$e62 = peg$otherExpectation("valid class string");
301
+ const peg$e62 = peg$otherExpectation("valid color string");
301
302
  const peg$e63 = peg$classExpectation(
303
+ [["a", "z"], ["A", "Z"], ["0", "9"], "#", ",", ".", ":", ";", " "],
304
+ false,
305
+ false,
306
+ false,
307
+ );
308
+ const peg$e64 = peg$otherExpectation("valid class string");
309
+ const peg$e65 = peg$classExpectation(
302
310
  [["a", "z"], ["A", "Z"], ["0", "9"], "_", "-", " "],
303
311
  false,
304
312
  false,
305
313
  false,
306
314
  );
307
- const peg$e64 = peg$classExpectation([",", ";", "{"], false, false, false);
308
- const peg$e65 = peg$classExpectation([";", "{"], false, false, false);
309
- const peg$e66 = peg$otherExpectation("identifier");
310
- const peg$e67 = peg$classExpectation(
315
+ const peg$e66 = peg$classExpectation([",", ";", "{"], false, false, false);
316
+ const peg$e67 = peg$classExpectation([";", "{"], false, false, false);
317
+ const peg$e68 = peg$otherExpectation("identifier");
318
+ const peg$e69 = peg$classExpectation(
311
319
  [";", ",", " ", '"', "\t", "\n", "\r", "=", "-", ">", "<", ":", "{", "["],
312
320
  true,
313
321
  false,
314
322
  false,
315
323
  );
316
- const peg$e68 = peg$otherExpectation("whitespace");
317
- const peg$e69 = peg$classExpectation([" ", "\t"], false, false, false);
318
- const peg$e70 = peg$otherExpectation("line end");
319
- const peg$e71 = peg$classExpectation(["\r", "\n"], false, false, false);
320
- const peg$e72 = peg$literalExpectation("/*", false);
321
- const peg$e73 = peg$literalExpectation("*/", false);
322
- const peg$e74 = peg$literalExpectation("//", false);
323
- const peg$e75 = peg$classExpectation(["\r", "\n"], true, false, false);
324
- const peg$e76 = peg$otherExpectation("comment");
324
+ const peg$e70 = peg$otherExpectation("whitespace");
325
+ const peg$e71 = peg$classExpectation([" ", "\t"], false, false, false);
326
+ const peg$e72 = peg$otherExpectation("line end");
327
+ const peg$e73 = peg$classExpectation(["\r", "\n"], false, false, false);
328
+ const peg$e74 = peg$literalExpectation("/*", false);
329
+ const peg$e75 = peg$literalExpectation("*/", false);
330
+ const peg$e76 = peg$literalExpectation("//", false);
331
+ const peg$e77 = peg$classExpectation(["\r", "\n"], true, false, false);
332
+ const peg$e78 = peg$otherExpectation("comment");
325
333
  function peg$f0(statemachine) {
326
334
  statemachine.states = extractUndeclaredStates(statemachine);
327
335
  return classifyForkJoins(statemachine);
@@ -375,15 +383,15 @@ function peg$parse(input, options) {
375
383
  function peg$f10(name, value) {
376
384
  return { name, value };
377
385
  }
378
- function peg$f11(name) {
386
+ function peg$f11(name, value) {
387
+ return { name, value };
388
+ }
389
+ function peg$f12(name) {
379
390
  return { name, value: true };
380
391
  }
381
- function peg$f12(name, value) {
392
+ function peg$f13(name, value) {
382
393
  return { name, value, typeExplicitlySet: true };
383
394
  }
384
- function peg$f13(name) {
385
- return name.toLowerCase();
386
- }
387
395
  function peg$f14(name) {
388
396
  return name.toLowerCase();
389
397
  }
@@ -393,13 +401,19 @@ function peg$parse(input, options) {
393
401
  function peg$f16(name) {
394
402
  return name.toLowerCase();
395
403
  }
396
- function peg$f17(notes, trans, attrs) {
404
+ function peg$f17(name) {
405
+ return name.toLowerCase();
406
+ }
407
+ function peg$f18(name) {
408
+ return name.toLowerCase();
409
+ }
410
+ function peg$f19(notes, trans, attrs) {
397
411
  return attrs;
398
412
  }
399
- function peg$f18(notes, trans, extended_attributes, lbl) {
413
+ function peg$f20(notes, trans, extended_attributes, lbl) {
400
414
  return lbl;
401
415
  }
402
- function peg$f19(notes, trans, extended_attributes, label) {
416
+ function peg$f21(notes, trans, extended_attributes, label) {
403
417
  if (label) {
404
418
  trans.label = label;
405
419
  trans = Object.assign(trans, parseTransitionExpression(label));
@@ -411,73 +425,76 @@ function peg$parse(input, options) {
411
425
  trans.id = options.counter.next();
412
426
  return trans;
413
427
  }
414
- function peg$f20(from_, to) {
428
+ function peg$f22(from_, to) {
415
429
  return {
416
430
  from: from_,
417
431
  to: to,
418
432
  };
419
433
  }
420
- function peg$f21(to, from_) {
434
+ function peg$f23(to, from_) {
421
435
  return {
422
436
  from: from_,
423
437
  to: to,
424
438
  };
425
439
  }
426
- function peg$f22(name, value) {
440
+ function peg$f24(name, value) {
427
441
  return { name, value };
428
442
  }
429
- function peg$f23(name, value) {
443
+ function peg$f25(name, value) {
430
444
  return { name, value };
431
445
  }
432
- function peg$f24(name, value) {
446
+ function peg$f26(name, value) {
433
447
  return { name, value };
434
448
  }
435
- function peg$f25(name, value) {
449
+ function peg$f27(name, value) {
436
450
  return { name, value };
437
451
  }
438
- function peg$f26(name) {
439
- return name.toLowerCase();
440
- }
441
- function peg$f27(name) {
452
+ function peg$f28(name) {
442
453
  return name.toLowerCase();
443
454
  }
444
- function peg$f28(name) {
455
+ function peg$f29(name) {
445
456
  return name;
446
457
  }
447
- function peg$f29(com) {
458
+ function peg$f30(com) {
448
459
  return com.join("").trim();
449
460
  }
450
- function peg$f30(digits) {
461
+ function peg$f31(digits) {
451
462
  return parseFloat(digits.join(""));
452
463
  }
453
- function peg$f31(digits) {
464
+ function peg$f32(digits) {
454
465
  return parseInt(digits.join(""), 10);
455
466
  }
456
- function peg$f32(s) {
467
+ function peg$f33(s) {
457
468
  return s.join("").replaceAll(/\\\"/g, '"');
458
469
  }
459
- function peg$f33(c) {
470
+ function peg$f34(c) {
460
471
  return c;
461
472
  }
462
- function peg$f34(s) {
473
+ function peg$f35(s) {
463
474
  return s.join("");
464
475
  }
465
- function peg$f35(c) {
476
+ function peg$f36(c) {
466
477
  return c;
467
478
  }
468
- function peg$f36(s) {
479
+ function peg$f37(s) {
480
+ return s.join("");
481
+ }
482
+ function peg$f38(c) {
483
+ return c;
484
+ }
485
+ function peg$f39(s) {
469
486
  return s.join("").trim();
470
487
  }
471
- function peg$f37(s) {
488
+ function peg$f40(s) {
472
489
  return s.join("").trim();
473
490
  }
474
- function peg$f38(c) {
491
+ function peg$f41(c) {
475
492
  return c;
476
493
  }
477
- function peg$f39(c) {
494
+ function peg$f42(c) {
478
495
  return c;
479
496
  }
480
- function peg$f40(chars) {
497
+ function peg$f43(chars) {
481
498
  return chars.join("");
482
499
  }
483
500
  let peg$currPos = options.peg$currPos | 0;
@@ -898,7 +915,7 @@ function peg$parse(input, options) {
898
915
  peg$silentFails++;
899
916
  s0 = peg$currPos;
900
917
  s1 = peg$parse_();
901
- s2 = peg$parseextended_state_string_attribute_name();
918
+ s2 = peg$parselabel_attribute_name();
902
919
  if (s2 !== peg$FAILED) {
903
920
  s3 = peg$parse_();
904
921
  if (input.charCodeAt(peg$currPos) === 61) {
@@ -932,7 +949,7 @@ function peg$parse(input, options) {
932
949
  if (s0 === peg$FAILED) {
933
950
  s0 = peg$currPos;
934
951
  s1 = peg$parse_();
935
- s2 = peg$parseclass_attribute_name();
952
+ s2 = peg$parsecolor_attribute_name();
936
953
  if (s2 !== peg$FAILED) {
937
954
  s3 = peg$parse_();
938
955
  if (input.charCodeAt(peg$currPos) === 61) {
@@ -946,7 +963,7 @@ function peg$parse(input, options) {
946
963
  }
947
964
  if (s4 !== peg$FAILED) {
948
965
  s5 = peg$parse_();
949
- s6 = peg$parseclass_string();
966
+ s6 = peg$parsecolor_string();
950
967
  if (s6 !== peg$FAILED) {
951
968
  s7 = peg$parse_();
952
969
  peg$savedPos = s0;
@@ -966,11 +983,33 @@ function peg$parse(input, options) {
966
983
  if (s0 === peg$FAILED) {
967
984
  s0 = peg$currPos;
968
985
  s1 = peg$parse_();
969
- s2 = peg$parseextended_state_boolean_attribute_name();
986
+ s2 = peg$parseclass_attribute_name();
970
987
  if (s2 !== peg$FAILED) {
971
988
  s3 = peg$parse_();
972
- peg$savedPos = s0;
973
- s0 = peg$f11(s2);
989
+ if (input.charCodeAt(peg$currPos) === 61) {
990
+ s4 = peg$c7;
991
+ peg$currPos++;
992
+ } else {
993
+ s4 = peg$FAILED;
994
+ if (peg$silentFails === 0) {
995
+ peg$fail(peg$e9);
996
+ }
997
+ }
998
+ if (s4 !== peg$FAILED) {
999
+ s5 = peg$parse_();
1000
+ s6 = peg$parseclass_string();
1001
+ if (s6 !== peg$FAILED) {
1002
+ s7 = peg$parse_();
1003
+ peg$savedPos = s0;
1004
+ s0 = peg$f11(s2, s6);
1005
+ } else {
1006
+ peg$currPos = s0;
1007
+ s0 = peg$FAILED;
1008
+ }
1009
+ } else {
1010
+ peg$currPos = s0;
1011
+ s0 = peg$FAILED;
1012
+ }
974
1013
  } else {
975
1014
  peg$currPos = s0;
976
1015
  s0 = peg$FAILED;
@@ -978,25 +1017,41 @@ function peg$parse(input, options) {
978
1017
  if (s0 === peg$FAILED) {
979
1018
  s0 = peg$currPos;
980
1019
  s1 = peg$parse_();
981
- s2 = peg$parseextended_state_type_attribute_name();
1020
+ s2 = peg$parseboolean_attribute_name();
982
1021
  if (s2 !== peg$FAILED) {
983
1022
  s3 = peg$parse_();
984
- if (input.charCodeAt(peg$currPos) === 61) {
985
- s4 = peg$c7;
986
- peg$currPos++;
987
- } else {
988
- s4 = peg$FAILED;
989
- if (peg$silentFails === 0) {
990
- peg$fail(peg$e9);
1023
+ peg$savedPos = s0;
1024
+ s0 = peg$f12(s2);
1025
+ } else {
1026
+ peg$currPos = s0;
1027
+ s0 = peg$FAILED;
1028
+ }
1029
+ if (s0 === peg$FAILED) {
1030
+ s0 = peg$currPos;
1031
+ s1 = peg$parse_();
1032
+ s2 = peg$parsestate_type_attribute_name();
1033
+ if (s2 !== peg$FAILED) {
1034
+ s3 = peg$parse_();
1035
+ if (input.charCodeAt(peg$currPos) === 61) {
1036
+ s4 = peg$c7;
1037
+ peg$currPos++;
1038
+ } else {
1039
+ s4 = peg$FAILED;
1040
+ if (peg$silentFails === 0) {
1041
+ peg$fail(peg$e9);
1042
+ }
991
1043
  }
992
- }
993
- if (s4 !== peg$FAILED) {
994
- s5 = peg$parse_();
995
- s6 = peg$parseextended_state_type_attribute_type();
996
- if (s6 !== peg$FAILED) {
997
- s7 = peg$parse_();
998
- peg$savedPos = s0;
999
- s0 = peg$f12(s2, s6);
1044
+ if (s4 !== peg$FAILED) {
1045
+ s5 = peg$parse_();
1046
+ s6 = peg$parsestate_type();
1047
+ if (s6 !== peg$FAILED) {
1048
+ s7 = peg$parse_();
1049
+ peg$savedPos = s0;
1050
+ s0 = peg$f13(s2, s6);
1051
+ } else {
1052
+ peg$currPos = s0;
1053
+ s0 = peg$FAILED;
1054
+ }
1000
1055
  } else {
1001
1056
  peg$currPos = s0;
1002
1057
  s0 = peg$FAILED;
@@ -1005,9 +1060,6 @@ function peg$parse(input, options) {
1005
1060
  peg$currPos = s0;
1006
1061
  s0 = peg$FAILED;
1007
1062
  }
1008
- } else {
1009
- peg$currPos = s0;
1010
- s0 = peg$FAILED;
1011
1063
  }
1012
1064
  }
1013
1065
  }
@@ -1021,7 +1073,7 @@ function peg$parse(input, options) {
1021
1073
  }
1022
1074
  return s0;
1023
1075
  }
1024
- function peg$parseextended_state_string_attribute_name() {
1076
+ function peg$parselabel_attribute_name() {
1025
1077
  let s0, s1;
1026
1078
  peg$silentFails++;
1027
1079
  s0 = peg$currPos;
@@ -1034,27 +1086,43 @@ function peg$parse(input, options) {
1034
1086
  peg$fail(peg$e11);
1035
1087
  }
1036
1088
  }
1037
- if (s1 === peg$FAILED) {
1038
- s1 = input.substr(peg$currPos, 5);
1039
- if (s1.toLowerCase() === peg$c9) {
1040
- peg$currPos += 5;
1041
- } else {
1042
- s1 = peg$FAILED;
1043
- if (peg$silentFails === 0) {
1044
- peg$fail(peg$e12);
1045
- }
1089
+ if (s1 !== peg$FAILED) {
1090
+ peg$savedPos = s0;
1091
+ s1 = peg$f14(s1);
1092
+ }
1093
+ s0 = s1;
1094
+ peg$silentFails--;
1095
+ if (s0 === peg$FAILED) {
1096
+ s1 = peg$FAILED;
1097
+ if (peg$silentFails === 0) {
1098
+ peg$fail(peg$e10);
1099
+ }
1100
+ }
1101
+ return s0;
1102
+ }
1103
+ function peg$parsecolor_attribute_name() {
1104
+ let s0, s1;
1105
+ peg$silentFails++;
1106
+ s0 = peg$currPos;
1107
+ s1 = input.substr(peg$currPos, 5);
1108
+ if (s1.toLowerCase() === peg$c9) {
1109
+ peg$currPos += 5;
1110
+ } else {
1111
+ s1 = peg$FAILED;
1112
+ if (peg$silentFails === 0) {
1113
+ peg$fail(peg$e13);
1046
1114
  }
1047
1115
  }
1048
1116
  if (s1 !== peg$FAILED) {
1049
1117
  peg$savedPos = s0;
1050
- s1 = peg$f13(s1);
1118
+ s1 = peg$f15(s1);
1051
1119
  }
1052
1120
  s0 = s1;
1053
1121
  peg$silentFails--;
1054
1122
  if (s0 === peg$FAILED) {
1055
1123
  s1 = peg$FAILED;
1056
1124
  if (peg$silentFails === 0) {
1057
- peg$fail(peg$e10);
1125
+ peg$fail(peg$e12);
1058
1126
  }
1059
1127
  }
1060
1128
  return s0;
@@ -1069,24 +1137,24 @@ function peg$parse(input, options) {
1069
1137
  } else {
1070
1138
  s1 = peg$FAILED;
1071
1139
  if (peg$silentFails === 0) {
1072
- peg$fail(peg$e14);
1140
+ peg$fail(peg$e15);
1073
1141
  }
1074
1142
  }
1075
1143
  if (s1 !== peg$FAILED) {
1076
1144
  peg$savedPos = s0;
1077
- s1 = peg$f14(s1);
1145
+ s1 = peg$f16(s1);
1078
1146
  }
1079
1147
  s0 = s1;
1080
1148
  peg$silentFails--;
1081
1149
  if (s0 === peg$FAILED) {
1082
1150
  s1 = peg$FAILED;
1083
1151
  if (peg$silentFails === 0) {
1084
- peg$fail(peg$e13);
1152
+ peg$fail(peg$e14);
1085
1153
  }
1086
1154
  }
1087
1155
  return s0;
1088
1156
  }
1089
- function peg$parseextended_state_boolean_attribute_name() {
1157
+ function peg$parseboolean_attribute_name() {
1090
1158
  let s0, s1;
1091
1159
  peg$silentFails++;
1092
1160
  s0 = peg$currPos;
@@ -1096,24 +1164,24 @@ function peg$parse(input, options) {
1096
1164
  } else {
1097
1165
  s1 = peg$FAILED;
1098
1166
  if (peg$silentFails === 0) {
1099
- peg$fail(peg$e16);
1167
+ peg$fail(peg$e17);
1100
1168
  }
1101
1169
  }
1102
1170
  if (s1 !== peg$FAILED) {
1103
1171
  peg$savedPos = s0;
1104
- s1 = peg$f15(s1);
1172
+ s1 = peg$f17(s1);
1105
1173
  }
1106
1174
  s0 = s1;
1107
1175
  peg$silentFails--;
1108
1176
  if (s0 === peg$FAILED) {
1109
1177
  s1 = peg$FAILED;
1110
1178
  if (peg$silentFails === 0) {
1111
- peg$fail(peg$e15);
1179
+ peg$fail(peg$e16);
1112
1180
  }
1113
1181
  }
1114
1182
  return s0;
1115
1183
  }
1116
- function peg$parseextended_state_type_attribute_name() {
1184
+ function peg$parsestate_type_attribute_name() {
1117
1185
  let s0, s1;
1118
1186
  peg$silentFails++;
1119
1187
  s0 = peg$currPos;
@@ -1123,24 +1191,24 @@ function peg$parse(input, options) {
1123
1191
  } else {
1124
1192
  s1 = peg$FAILED;
1125
1193
  if (peg$silentFails === 0) {
1126
- peg$fail(peg$e18);
1194
+ peg$fail(peg$e19);
1127
1195
  }
1128
1196
  }
1129
1197
  if (s1 !== peg$FAILED) {
1130
1198
  peg$savedPos = s0;
1131
- s1 = peg$f16(s1);
1199
+ s1 = peg$f18(s1);
1132
1200
  }
1133
1201
  s0 = s1;
1134
1202
  peg$silentFails--;
1135
1203
  if (s0 === peg$FAILED) {
1136
1204
  s1 = peg$FAILED;
1137
1205
  if (peg$silentFails === 0) {
1138
- peg$fail(peg$e17);
1206
+ peg$fail(peg$e18);
1139
1207
  }
1140
1208
  }
1141
1209
  return s0;
1142
1210
  }
1143
- function peg$parseextended_state_type_attribute_type() {
1211
+ function peg$parsestate_type() {
1144
1212
  let s0, s1;
1145
1213
  peg$silentFails++;
1146
1214
  if (input.substr(peg$currPos, 7) === peg$c13) {
@@ -1149,7 +1217,7 @@ function peg$parse(input, options) {
1149
1217
  } else {
1150
1218
  s0 = peg$FAILED;
1151
1219
  if (peg$silentFails === 0) {
1152
- peg$fail(peg$e20);
1220
+ peg$fail(peg$e21);
1153
1221
  }
1154
1222
  }
1155
1223
  if (s0 === peg$FAILED) {
@@ -1159,7 +1227,7 @@ function peg$parse(input, options) {
1159
1227
  } else {
1160
1228
  s0 = peg$FAILED;
1161
1229
  if (peg$silentFails === 0) {
1162
- peg$fail(peg$e21);
1230
+ peg$fail(peg$e22);
1163
1231
  }
1164
1232
  }
1165
1233
  if (s0 === peg$FAILED) {
@@ -1169,7 +1237,7 @@ function peg$parse(input, options) {
1169
1237
  } else {
1170
1238
  s0 = peg$FAILED;
1171
1239
  if (peg$silentFails === 0) {
1172
- peg$fail(peg$e22);
1240
+ peg$fail(peg$e23);
1173
1241
  }
1174
1242
  }
1175
1243
  if (s0 === peg$FAILED) {
@@ -1179,7 +1247,7 @@ function peg$parse(input, options) {
1179
1247
  } else {
1180
1248
  s0 = peg$FAILED;
1181
1249
  if (peg$silentFails === 0) {
1182
- peg$fail(peg$e23);
1250
+ peg$fail(peg$e24);
1183
1251
  }
1184
1252
  }
1185
1253
  if (s0 === peg$FAILED) {
@@ -1189,7 +1257,7 @@ function peg$parse(input, options) {
1189
1257
  } else {
1190
1258
  s0 = peg$FAILED;
1191
1259
  if (peg$silentFails === 0) {
1192
- peg$fail(peg$e24);
1260
+ peg$fail(peg$e25);
1193
1261
  }
1194
1262
  }
1195
1263
  if (s0 === peg$FAILED) {
@@ -1199,7 +1267,7 @@ function peg$parse(input, options) {
1199
1267
  } else {
1200
1268
  s0 = peg$FAILED;
1201
1269
  if (peg$silentFails === 0) {
1202
- peg$fail(peg$e25);
1270
+ peg$fail(peg$e26);
1203
1271
  }
1204
1272
  }
1205
1273
  if (s0 === peg$FAILED) {
@@ -1209,7 +1277,7 @@ function peg$parse(input, options) {
1209
1277
  } else {
1210
1278
  s0 = peg$FAILED;
1211
1279
  if (peg$silentFails === 0) {
1212
- peg$fail(peg$e26);
1280
+ peg$fail(peg$e27);
1213
1281
  }
1214
1282
  }
1215
1283
  if (s0 === peg$FAILED) {
@@ -1219,7 +1287,7 @@ function peg$parse(input, options) {
1219
1287
  } else {
1220
1288
  s0 = peg$FAILED;
1221
1289
  if (peg$silentFails === 0) {
1222
- peg$fail(peg$e27);
1290
+ peg$fail(peg$e28);
1223
1291
  }
1224
1292
  }
1225
1293
  if (s0 === peg$FAILED) {
@@ -1229,7 +1297,7 @@ function peg$parse(input, options) {
1229
1297
  } else {
1230
1298
  s0 = peg$FAILED;
1231
1299
  if (peg$silentFails === 0) {
1232
- peg$fail(peg$e28);
1300
+ peg$fail(peg$e29);
1233
1301
  }
1234
1302
  }
1235
1303
  if (s0 === peg$FAILED) {
@@ -1239,7 +1307,7 @@ function peg$parse(input, options) {
1239
1307
  } else {
1240
1308
  s0 = peg$FAILED;
1241
1309
  if (peg$silentFails === 0) {
1242
- peg$fail(peg$e29);
1310
+ peg$fail(peg$e30);
1243
1311
  }
1244
1312
  }
1245
1313
  if (s0 === peg$FAILED) {
@@ -1249,7 +1317,7 @@ function peg$parse(input, options) {
1249
1317
  } else {
1250
1318
  s0 = peg$FAILED;
1251
1319
  if (peg$silentFails === 0) {
1252
- peg$fail(peg$e30);
1320
+ peg$fail(peg$e31);
1253
1321
  }
1254
1322
  }
1255
1323
  if (s0 === peg$FAILED) {
@@ -1259,7 +1327,7 @@ function peg$parse(input, options) {
1259
1327
  } else {
1260
1328
  s0 = peg$FAILED;
1261
1329
  if (peg$silentFails === 0) {
1262
- peg$fail(peg$e31);
1330
+ peg$fail(peg$e32);
1263
1331
  }
1264
1332
  }
1265
1333
  }
@@ -1277,7 +1345,7 @@ function peg$parse(input, options) {
1277
1345
  if (s0 === peg$FAILED) {
1278
1346
  s1 = peg$FAILED;
1279
1347
  if (peg$silentFails === 0) {
1280
- peg$fail(peg$e19);
1348
+ peg$fail(peg$e20);
1281
1349
  }
1282
1350
  }
1283
1351
  return s0;
@@ -1318,7 +1386,7 @@ function peg$parse(input, options) {
1318
1386
  if (s6 !== peg$FAILED) {
1319
1387
  s7 = peg$parse_();
1320
1388
  peg$savedPos = s3;
1321
- s3 = peg$f17(s1, s2, s5);
1389
+ s3 = peg$f19(s1, s2, s5);
1322
1390
  } else {
1323
1391
  peg$currPos = s3;
1324
1392
  s3 = peg$FAILED;
@@ -1346,7 +1414,7 @@ function peg$parse(input, options) {
1346
1414
  if (s7 !== peg$FAILED) {
1347
1415
  s8 = peg$parse_();
1348
1416
  peg$savedPos = s4;
1349
- s4 = peg$f18(s1, s2, s3, s7);
1417
+ s4 = peg$f20(s1, s2, s3, s7);
1350
1418
  } else {
1351
1419
  peg$currPos = s4;
1352
1420
  s4 = peg$FAILED;
@@ -1369,7 +1437,7 @@ function peg$parse(input, options) {
1369
1437
  }
1370
1438
  if (s5 !== peg$FAILED) {
1371
1439
  peg$savedPos = s0;
1372
- s0 = peg$f19(s1, s2, s3, s4);
1440
+ s0 = peg$f21(s1, s2, s3, s4);
1373
1441
  } else {
1374
1442
  peg$currPos = s0;
1375
1443
  s0 = peg$FAILED;
@@ -1382,7 +1450,7 @@ function peg$parse(input, options) {
1382
1450
  if (s0 === peg$FAILED) {
1383
1451
  s1 = peg$FAILED;
1384
1452
  if (peg$silentFails === 0) {
1385
- peg$fail(peg$e32);
1453
+ peg$fail(peg$e33);
1386
1454
  }
1387
1455
  }
1388
1456
  return s0;
@@ -1401,7 +1469,7 @@ function peg$parse(input, options) {
1401
1469
  if (s6 !== peg$FAILED) {
1402
1470
  s7 = peg$parse_();
1403
1471
  peg$savedPos = s0;
1404
- s0 = peg$f20(s2, s6);
1472
+ s0 = peg$f22(s2, s6);
1405
1473
  } else {
1406
1474
  peg$currPos = s0;
1407
1475
  s0 = peg$FAILED;
@@ -1427,7 +1495,7 @@ function peg$parse(input, options) {
1427
1495
  if (s6 !== peg$FAILED) {
1428
1496
  s7 = peg$parse_();
1429
1497
  peg$savedPos = s0;
1430
- s0 = peg$f21(s2, s6);
1498
+ s0 = peg$f23(s2, s6);
1431
1499
  } else {
1432
1500
  peg$currPos = s0;
1433
1501
  s0 = peg$FAILED;
@@ -1460,7 +1528,7 @@ function peg$parse(input, options) {
1460
1528
  peg$silentFails++;
1461
1529
  s0 = peg$currPos;
1462
1530
  s1 = peg$parse_();
1463
- s2 = peg$parseextended_transition_string_attribute_name();
1531
+ s2 = peg$parsecolor_attribute_name();
1464
1532
  if (s2 !== peg$FAILED) {
1465
1533
  s3 = peg$parse_();
1466
1534
  if (input.charCodeAt(peg$currPos) === 61) {
@@ -1474,11 +1542,11 @@ function peg$parse(input, options) {
1474
1542
  }
1475
1543
  if (s4 !== peg$FAILED) {
1476
1544
  s5 = peg$parse_();
1477
- s6 = peg$parsequotedstring();
1545
+ s6 = peg$parsecolor_string();
1478
1546
  if (s6 !== peg$FAILED) {
1479
1547
  s7 = peg$parse_();
1480
1548
  peg$savedPos = s0;
1481
- s0 = peg$f22(s2, s6);
1549
+ s0 = peg$f24(s2, s6);
1482
1550
  } else {
1483
1551
  peg$currPos = s0;
1484
1552
  s0 = peg$FAILED;
@@ -1512,7 +1580,7 @@ function peg$parse(input, options) {
1512
1580
  if (s6 !== peg$FAILED) {
1513
1581
  s7 = peg$parse_();
1514
1582
  peg$savedPos = s0;
1515
- s0 = peg$f23(s2, s6);
1583
+ s0 = peg$f25(s2, s6);
1516
1584
  } else {
1517
1585
  peg$currPos = s0;
1518
1586
  s0 = peg$FAILED;
@@ -1528,7 +1596,7 @@ function peg$parse(input, options) {
1528
1596
  if (s0 === peg$FAILED) {
1529
1597
  s0 = peg$currPos;
1530
1598
  s1 = peg$parse_();
1531
- s2 = peg$parseextended_transition_type_name();
1599
+ s2 = peg$parsetransition_type_name();
1532
1600
  if (s2 !== peg$FAILED) {
1533
1601
  s3 = peg$parse_();
1534
1602
  if (input.charCodeAt(peg$currPos) === 61) {
@@ -1542,11 +1610,11 @@ function peg$parse(input, options) {
1542
1610
  }
1543
1611
  if (s4 !== peg$FAILED) {
1544
1612
  s5 = peg$parse_();
1545
- s6 = peg$parseextended_transition_type_value();
1613
+ s6 = peg$parsetransition_type_value();
1546
1614
  if (s6 !== peg$FAILED) {
1547
1615
  s7 = peg$parse_();
1548
1616
  peg$savedPos = s0;
1549
- s0 = peg$f24(s2, s6);
1617
+ s0 = peg$f26(s2, s6);
1550
1618
  } else {
1551
1619
  peg$currPos = s0;
1552
1620
  s0 = peg$FAILED;
@@ -1562,7 +1630,7 @@ function peg$parse(input, options) {
1562
1630
  if (s0 === peg$FAILED) {
1563
1631
  s0 = peg$currPos;
1564
1632
  s1 = peg$parse_();
1565
- s2 = peg$parseextended_transition_numeric_attribute_name();
1633
+ s2 = peg$parsenumeric_attribute_name();
1566
1634
  if (s2 !== peg$FAILED) {
1567
1635
  s3 = peg$parse_();
1568
1636
  if (input.charCodeAt(peg$currPos) === 61) {
@@ -1580,7 +1648,7 @@ function peg$parse(input, options) {
1580
1648
  if (s6 !== peg$FAILED) {
1581
1649
  s7 = peg$parse_();
1582
1650
  peg$savedPos = s0;
1583
- s0 = peg$f25(s2, s6);
1651
+ s0 = peg$f27(s2, s6);
1584
1652
  } else {
1585
1653
  peg$currPos = s0;
1586
1654
  s0 = peg$FAILED;
@@ -1597,33 +1665,6 @@ function peg$parse(input, options) {
1597
1665
  }
1598
1666
  }
1599
1667
  peg$silentFails--;
1600
- if (s0 === peg$FAILED) {
1601
- s1 = peg$FAILED;
1602
- if (peg$silentFails === 0) {
1603
- peg$fail(peg$e33);
1604
- }
1605
- }
1606
- return s0;
1607
- }
1608
- function peg$parseextended_transition_string_attribute_name() {
1609
- let s0, s1;
1610
- peg$silentFails++;
1611
- s0 = peg$currPos;
1612
- s1 = input.substr(peg$currPos, 5);
1613
- if (s1.toLowerCase() === peg$c9) {
1614
- peg$currPos += 5;
1615
- } else {
1616
- s1 = peg$FAILED;
1617
- if (peg$silentFails === 0) {
1618
- peg$fail(peg$e12);
1619
- }
1620
- }
1621
- if (s1 !== peg$FAILED) {
1622
- peg$savedPos = s0;
1623
- s1 = peg$f26(s1);
1624
- }
1625
- s0 = s1;
1626
- peg$silentFails--;
1627
1668
  if (s0 === peg$FAILED) {
1628
1669
  s1 = peg$FAILED;
1629
1670
  if (peg$silentFails === 0) {
@@ -1632,7 +1673,7 @@ function peg$parse(input, options) {
1632
1673
  }
1633
1674
  return s0;
1634
1675
  }
1635
- function peg$parseextended_transition_type_name() {
1676
+ function peg$parsetransition_type_name() {
1636
1677
  let s0, s1;
1637
1678
  peg$silentFails++;
1638
1679
  s0 = peg$currPos;
@@ -1642,12 +1683,12 @@ function peg$parse(input, options) {
1642
1683
  } else {
1643
1684
  s1 = peg$FAILED;
1644
1685
  if (peg$silentFails === 0) {
1645
- peg$fail(peg$e18);
1686
+ peg$fail(peg$e19);
1646
1687
  }
1647
1688
  }
1648
1689
  if (s1 !== peg$FAILED) {
1649
1690
  peg$savedPos = s0;
1650
- s1 = peg$f27(s1);
1691
+ s1 = peg$f28(s1);
1651
1692
  }
1652
1693
  s0 = s1;
1653
1694
  peg$silentFails--;
@@ -1659,7 +1700,7 @@ function peg$parse(input, options) {
1659
1700
  }
1660
1701
  return s0;
1661
1702
  }
1662
- function peg$parseextended_transition_numeric_attribute_name() {
1703
+ function peg$parsenumeric_attribute_name() {
1663
1704
  let s0, s1;
1664
1705
  peg$silentFails++;
1665
1706
  s0 = peg$currPos;
@@ -1674,7 +1715,7 @@ function peg$parse(input, options) {
1674
1715
  }
1675
1716
  if (s1 !== peg$FAILED) {
1676
1717
  peg$savedPos = s0;
1677
- s1 = peg$f28(s1);
1718
+ s1 = peg$f29(s1);
1678
1719
  }
1679
1720
  s0 = s1;
1680
1721
  peg$silentFails--;
@@ -1686,7 +1727,7 @@ function peg$parse(input, options) {
1686
1727
  }
1687
1728
  return s0;
1688
1729
  }
1689
- function peg$parseextended_transition_type_value() {
1730
+ function peg$parsetransition_type_value() {
1690
1731
  let s0, s1;
1691
1732
  peg$silentFails++;
1692
1733
  if (input.substr(peg$currPos, 8) === peg$c26) {
@@ -1891,7 +1932,7 @@ function peg$parse(input, options) {
1891
1932
  s4 = peg$parseslcomtok();
1892
1933
  }
1893
1934
  peg$savedPos = s0;
1894
- s0 = peg$f29(s3);
1935
+ s0 = peg$f30(s3);
1895
1936
  } else {
1896
1937
  peg$currPos = s0;
1897
1938
  s0 = peg$FAILED;
@@ -1940,7 +1981,7 @@ function peg$parse(input, options) {
1940
1981
  }
1941
1982
  if (s1 !== peg$FAILED) {
1942
1983
  peg$savedPos = s0;
1943
- s1 = peg$f30(s1);
1984
+ s1 = peg$f31(s1);
1944
1985
  }
1945
1986
  s0 = s1;
1946
1987
  return s0;
@@ -1976,7 +2017,7 @@ function peg$parse(input, options) {
1976
2017
  }
1977
2018
  if (s1 !== peg$FAILED) {
1978
2019
  peg$savedPos = s0;
1979
- s1 = peg$f31(s1);
2020
+ s1 = peg$f32(s1);
1980
2021
  }
1981
2022
  s0 = s1;
1982
2023
  return s0;
@@ -2023,7 +2064,7 @@ function peg$parse(input, options) {
2023
2064
  }
2024
2065
  if (s3 !== peg$FAILED) {
2025
2066
  peg$savedPos = s0;
2026
- s0 = peg$f32(s2);
2067
+ s0 = peg$f33(s2);
2027
2068
  } else {
2028
2069
  peg$currPos = s0;
2029
2070
  s0 = peg$FAILED;
@@ -2086,7 +2127,7 @@ function peg$parse(input, options) {
2086
2127
  }
2087
2128
  if (s3 !== peg$FAILED) {
2088
2129
  peg$savedPos = s1;
2089
- s1 = peg$f33(s3);
2130
+ s1 = peg$f34(s3);
2090
2131
  } else {
2091
2132
  peg$currPos = s1;
2092
2133
  s1 = peg$FAILED;
@@ -2139,7 +2180,7 @@ function peg$parse(input, options) {
2139
2180
  }
2140
2181
  if (s3 !== peg$FAILED) {
2141
2182
  peg$savedPos = s1;
2142
- s1 = peg$f33(s3);
2183
+ s1 = peg$f34(s3);
2143
2184
  } else {
2144
2185
  peg$currPos = s1;
2145
2186
  s1 = peg$FAILED;
@@ -2151,7 +2192,7 @@ function peg$parse(input, options) {
2151
2192
  }
2152
2193
  return s0;
2153
2194
  }
2154
- function peg$parseclass_string() {
2195
+ function peg$parsecolor_string() {
2155
2196
  let s0, s1, s2, s3;
2156
2197
  peg$silentFails++;
2157
2198
  s0 = peg$currPos;
@@ -2165,7 +2206,7 @@ function peg$parse(input, options) {
2165
2206
  }
2166
2207
  }
2167
2208
  if (s1 !== peg$FAILED) {
2168
- s2 = peg$parseclass_stringcontent();
2209
+ s2 = peg$parsecolor_stringcontent();
2169
2210
  if (input.charCodeAt(peg$currPos) === 34) {
2170
2211
  s3 = peg$c42;
2171
2212
  peg$currPos++;
@@ -2177,7 +2218,7 @@ function peg$parse(input, options) {
2177
2218
  }
2178
2219
  if (s3 !== peg$FAILED) {
2179
2220
  peg$savedPos = s0;
2180
- s0 = peg$f34(s2);
2221
+ s0 = peg$f35(s2);
2181
2222
  } else {
2182
2223
  peg$currPos = s0;
2183
2224
  s0 = peg$FAILED;
@@ -2195,7 +2236,7 @@ function peg$parse(input, options) {
2195
2236
  }
2196
2237
  return s0;
2197
2238
  }
2198
- function peg$parseclass_stringcontent() {
2239
+ function peg$parsecolor_stringcontent() {
2199
2240
  let s0, s1, s2, s3;
2200
2241
  s0 = [];
2201
2242
  s1 = peg$currPos;
@@ -2229,7 +2270,7 @@ function peg$parse(input, options) {
2229
2270
  }
2230
2271
  if (s3 !== peg$FAILED) {
2231
2272
  peg$savedPos = s1;
2232
- s1 = peg$f35(s3);
2273
+ s1 = peg$f36(s3);
2233
2274
  } else {
2234
2275
  peg$currPos = s1;
2235
2276
  s1 = peg$FAILED;
@@ -2271,7 +2312,139 @@ function peg$parse(input, options) {
2271
2312
  }
2272
2313
  if (s3 !== peg$FAILED) {
2273
2314
  peg$savedPos = s1;
2274
- s1 = peg$f35(s3);
2315
+ s1 = peg$f36(s3);
2316
+ } else {
2317
+ peg$currPos = s1;
2318
+ s1 = peg$FAILED;
2319
+ }
2320
+ } else {
2321
+ peg$currPos = s1;
2322
+ s1 = peg$FAILED;
2323
+ }
2324
+ }
2325
+ return s0;
2326
+ }
2327
+ function peg$parseclass_string() {
2328
+ let s0, s1, s2, s3;
2329
+ peg$silentFails++;
2330
+ s0 = peg$currPos;
2331
+ if (input.charCodeAt(peg$currPos) === 34) {
2332
+ s1 = peg$c42;
2333
+ peg$currPos++;
2334
+ } else {
2335
+ s1 = peg$FAILED;
2336
+ if (peg$silentFails === 0) {
2337
+ peg$fail(peg$e59);
2338
+ }
2339
+ }
2340
+ if (s1 !== peg$FAILED) {
2341
+ s2 = peg$parseclass_stringcontent();
2342
+ if (input.charCodeAt(peg$currPos) === 34) {
2343
+ s3 = peg$c42;
2344
+ peg$currPos++;
2345
+ } else {
2346
+ s3 = peg$FAILED;
2347
+ if (peg$silentFails === 0) {
2348
+ peg$fail(peg$e59);
2349
+ }
2350
+ }
2351
+ if (s3 !== peg$FAILED) {
2352
+ peg$savedPos = s0;
2353
+ s0 = peg$f37(s2);
2354
+ } else {
2355
+ peg$currPos = s0;
2356
+ s0 = peg$FAILED;
2357
+ }
2358
+ } else {
2359
+ peg$currPos = s0;
2360
+ s0 = peg$FAILED;
2361
+ }
2362
+ peg$silentFails--;
2363
+ if (s0 === peg$FAILED) {
2364
+ s1 = peg$FAILED;
2365
+ if (peg$silentFails === 0) {
2366
+ peg$fail(peg$e64);
2367
+ }
2368
+ }
2369
+ return s0;
2370
+ }
2371
+ function peg$parseclass_stringcontent() {
2372
+ let s0, s1, s2, s3;
2373
+ s0 = [];
2374
+ s1 = peg$currPos;
2375
+ s2 = peg$currPos;
2376
+ peg$silentFails++;
2377
+ if (input.charCodeAt(peg$currPos) === 34) {
2378
+ s3 = peg$c42;
2379
+ peg$currPos++;
2380
+ } else {
2381
+ s3 = peg$FAILED;
2382
+ if (peg$silentFails === 0) {
2383
+ peg$fail(peg$e59);
2384
+ }
2385
+ }
2386
+ peg$silentFails--;
2387
+ if (s3 === peg$FAILED) {
2388
+ s2 = undefined;
2389
+ } else {
2390
+ peg$currPos = s2;
2391
+ s2 = peg$FAILED;
2392
+ }
2393
+ if (s2 !== peg$FAILED) {
2394
+ s3 = input.charAt(peg$currPos);
2395
+ if (peg$r2.test(s3)) {
2396
+ peg$currPos++;
2397
+ } else {
2398
+ s3 = peg$FAILED;
2399
+ if (peg$silentFails === 0) {
2400
+ peg$fail(peg$e65);
2401
+ }
2402
+ }
2403
+ if (s3 !== peg$FAILED) {
2404
+ peg$savedPos = s1;
2405
+ s1 = peg$f38(s3);
2406
+ } else {
2407
+ peg$currPos = s1;
2408
+ s1 = peg$FAILED;
2409
+ }
2410
+ } else {
2411
+ peg$currPos = s1;
2412
+ s1 = peg$FAILED;
2413
+ }
2414
+ while (s1 !== peg$FAILED) {
2415
+ s0.push(s1);
2416
+ s1 = peg$currPos;
2417
+ s2 = peg$currPos;
2418
+ peg$silentFails++;
2419
+ if (input.charCodeAt(peg$currPos) === 34) {
2420
+ s3 = peg$c42;
2421
+ peg$currPos++;
2422
+ } else {
2423
+ s3 = peg$FAILED;
2424
+ if (peg$silentFails === 0) {
2425
+ peg$fail(peg$e59);
2426
+ }
2427
+ }
2428
+ peg$silentFails--;
2429
+ if (s3 === peg$FAILED) {
2430
+ s2 = undefined;
2431
+ } else {
2432
+ peg$currPos = s2;
2433
+ s2 = peg$FAILED;
2434
+ }
2435
+ if (s2 !== peg$FAILED) {
2436
+ s3 = input.charAt(peg$currPos);
2437
+ if (peg$r2.test(s3)) {
2438
+ peg$currPos++;
2439
+ } else {
2440
+ s3 = peg$FAILED;
2441
+ if (peg$silentFails === 0) {
2442
+ peg$fail(peg$e65);
2443
+ }
2444
+ }
2445
+ if (s3 !== peg$FAILED) {
2446
+ peg$savedPos = s1;
2447
+ s1 = peg$f38(s3);
2275
2448
  } else {
2276
2449
  peg$currPos = s1;
2277
2450
  s1 = peg$FAILED;
@@ -2288,7 +2461,7 @@ function peg$parse(input, options) {
2288
2461
  s0 = peg$currPos;
2289
2462
  s1 = peg$parsetransitionnonsep();
2290
2463
  peg$savedPos = s0;
2291
- s1 = peg$f36(s1);
2464
+ s1 = peg$f39(s1);
2292
2465
  s0 = s1;
2293
2466
  return s0;
2294
2467
  }
@@ -2297,7 +2470,7 @@ function peg$parse(input, options) {
2297
2470
  s0 = peg$currPos;
2298
2471
  s1 = peg$parsenonsep();
2299
2472
  peg$savedPos = s0;
2300
- s1 = peg$f37(s1);
2473
+ s1 = peg$f40(s1);
2301
2474
  s0 = s1;
2302
2475
  return s0;
2303
2476
  }
@@ -2308,12 +2481,12 @@ function peg$parse(input, options) {
2308
2481
  s2 = peg$currPos;
2309
2482
  peg$silentFails++;
2310
2483
  s3 = input.charAt(peg$currPos);
2311
- if (peg$r2.test(s3)) {
2484
+ if (peg$r3.test(s3)) {
2312
2485
  peg$currPos++;
2313
2486
  } else {
2314
2487
  s3 = peg$FAILED;
2315
2488
  if (peg$silentFails === 0) {
2316
- peg$fail(peg$e64);
2489
+ peg$fail(peg$e66);
2317
2490
  }
2318
2491
  }
2319
2492
  peg$silentFails--;
@@ -2335,7 +2508,7 @@ function peg$parse(input, options) {
2335
2508
  }
2336
2509
  if (s3 !== peg$FAILED) {
2337
2510
  peg$savedPos = s1;
2338
- s1 = peg$f38(s3);
2511
+ s1 = peg$f41(s3);
2339
2512
  } else {
2340
2513
  peg$currPos = s1;
2341
2514
  s1 = peg$FAILED;
@@ -2350,12 +2523,12 @@ function peg$parse(input, options) {
2350
2523
  s2 = peg$currPos;
2351
2524
  peg$silentFails++;
2352
2525
  s3 = input.charAt(peg$currPos);
2353
- if (peg$r2.test(s3)) {
2526
+ if (peg$r3.test(s3)) {
2354
2527
  peg$currPos++;
2355
2528
  } else {
2356
2529
  s3 = peg$FAILED;
2357
2530
  if (peg$silentFails === 0) {
2358
- peg$fail(peg$e64);
2531
+ peg$fail(peg$e66);
2359
2532
  }
2360
2533
  }
2361
2534
  peg$silentFails--;
@@ -2377,7 +2550,7 @@ function peg$parse(input, options) {
2377
2550
  }
2378
2551
  if (s3 !== peg$FAILED) {
2379
2552
  peg$savedPos = s1;
2380
- s1 = peg$f38(s3);
2553
+ s1 = peg$f41(s3);
2381
2554
  } else {
2382
2555
  peg$currPos = s1;
2383
2556
  s1 = peg$FAILED;
@@ -2396,12 +2569,12 @@ function peg$parse(input, options) {
2396
2569
  s2 = peg$currPos;
2397
2570
  peg$silentFails++;
2398
2571
  s3 = input.charAt(peg$currPos);
2399
- if (peg$r3.test(s3)) {
2572
+ if (peg$r4.test(s3)) {
2400
2573
  peg$currPos++;
2401
2574
  } else {
2402
2575
  s3 = peg$FAILED;
2403
2576
  if (peg$silentFails === 0) {
2404
- peg$fail(peg$e65);
2577
+ peg$fail(peg$e67);
2405
2578
  }
2406
2579
  }
2407
2580
  peg$silentFails--;
@@ -2423,7 +2596,7 @@ function peg$parse(input, options) {
2423
2596
  }
2424
2597
  if (s3 !== peg$FAILED) {
2425
2598
  peg$savedPos = s1;
2426
- s1 = peg$f39(s3);
2599
+ s1 = peg$f42(s3);
2427
2600
  } else {
2428
2601
  peg$currPos = s1;
2429
2602
  s1 = peg$FAILED;
@@ -2438,12 +2611,12 @@ function peg$parse(input, options) {
2438
2611
  s2 = peg$currPos;
2439
2612
  peg$silentFails++;
2440
2613
  s3 = input.charAt(peg$currPos);
2441
- if (peg$r3.test(s3)) {
2614
+ if (peg$r4.test(s3)) {
2442
2615
  peg$currPos++;
2443
2616
  } else {
2444
2617
  s3 = peg$FAILED;
2445
2618
  if (peg$silentFails === 0) {
2446
- peg$fail(peg$e65);
2619
+ peg$fail(peg$e67);
2447
2620
  }
2448
2621
  }
2449
2622
  peg$silentFails--;
@@ -2465,7 +2638,7 @@ function peg$parse(input, options) {
2465
2638
  }
2466
2639
  if (s3 !== peg$FAILED) {
2467
2640
  peg$savedPos = s1;
2468
- s1 = peg$f39(s3);
2641
+ s1 = peg$f42(s3);
2469
2642
  } else {
2470
2643
  peg$currPos = s1;
2471
2644
  s1 = peg$FAILED;
@@ -2483,24 +2656,24 @@ function peg$parse(input, options) {
2483
2656
  s0 = peg$currPos;
2484
2657
  s1 = [];
2485
2658
  s2 = input.charAt(peg$currPos);
2486
- if (peg$r4.test(s2)) {
2659
+ if (peg$r5.test(s2)) {
2487
2660
  peg$currPos++;
2488
2661
  } else {
2489
2662
  s2 = peg$FAILED;
2490
2663
  if (peg$silentFails === 0) {
2491
- peg$fail(peg$e67);
2664
+ peg$fail(peg$e69);
2492
2665
  }
2493
2666
  }
2494
2667
  if (s2 !== peg$FAILED) {
2495
2668
  while (s2 !== peg$FAILED) {
2496
2669
  s1.push(s2);
2497
2670
  s2 = input.charAt(peg$currPos);
2498
- if (peg$r4.test(s2)) {
2671
+ if (peg$r5.test(s2)) {
2499
2672
  peg$currPos++;
2500
2673
  } else {
2501
2674
  s2 = peg$FAILED;
2502
2675
  if (peg$silentFails === 0) {
2503
- peg$fail(peg$e67);
2676
+ peg$fail(peg$e69);
2504
2677
  }
2505
2678
  }
2506
2679
  }
@@ -2509,7 +2682,7 @@ function peg$parse(input, options) {
2509
2682
  }
2510
2683
  if (s1 !== peg$FAILED) {
2511
2684
  peg$savedPos = s0;
2512
- s1 = peg$f40(s1);
2685
+ s1 = peg$f43(s1);
2513
2686
  }
2514
2687
  s0 = s1;
2515
2688
  if (s0 === peg$FAILED) {
@@ -2519,7 +2692,7 @@ function peg$parse(input, options) {
2519
2692
  if (s0 === peg$FAILED) {
2520
2693
  s1 = peg$FAILED;
2521
2694
  if (peg$silentFails === 0) {
2522
- peg$fail(peg$e66);
2695
+ peg$fail(peg$e68);
2523
2696
  }
2524
2697
  }
2525
2698
  return s0;
@@ -2528,19 +2701,19 @@ function peg$parse(input, options) {
2528
2701
  let s0, s1;
2529
2702
  peg$silentFails++;
2530
2703
  s0 = input.charAt(peg$currPos);
2531
- if (peg$r5.test(s0)) {
2704
+ if (peg$r6.test(s0)) {
2532
2705
  peg$currPos++;
2533
2706
  } else {
2534
2707
  s0 = peg$FAILED;
2535
2708
  if (peg$silentFails === 0) {
2536
- peg$fail(peg$e69);
2709
+ peg$fail(peg$e71);
2537
2710
  }
2538
2711
  }
2539
2712
  peg$silentFails--;
2540
2713
  if (s0 === peg$FAILED) {
2541
2714
  s1 = peg$FAILED;
2542
2715
  if (peg$silentFails === 0) {
2543
- peg$fail(peg$e68);
2716
+ peg$fail(peg$e70);
2544
2717
  }
2545
2718
  }
2546
2719
  return s0;
@@ -2549,19 +2722,19 @@ function peg$parse(input, options) {
2549
2722
  let s0, s1;
2550
2723
  peg$silentFails++;
2551
2724
  s0 = input.charAt(peg$currPos);
2552
- if (peg$r6.test(s0)) {
2725
+ if (peg$r7.test(s0)) {
2553
2726
  peg$currPos++;
2554
2727
  } else {
2555
2728
  s0 = peg$FAILED;
2556
2729
  if (peg$silentFails === 0) {
2557
- peg$fail(peg$e71);
2730
+ peg$fail(peg$e73);
2558
2731
  }
2559
2732
  }
2560
2733
  peg$silentFails--;
2561
2734
  if (s0 === peg$FAILED) {
2562
2735
  s1 = peg$FAILED;
2563
2736
  if (peg$silentFails === 0) {
2564
- peg$fail(peg$e70);
2737
+ peg$fail(peg$e72);
2565
2738
  }
2566
2739
  }
2567
2740
  return s0;
@@ -2574,7 +2747,7 @@ function peg$parse(input, options) {
2574
2747
  } else {
2575
2748
  s0 = peg$FAILED;
2576
2749
  if (peg$silentFails === 0) {
2577
- peg$fail(peg$e72);
2750
+ peg$fail(peg$e74);
2578
2751
  }
2579
2752
  }
2580
2753
  return s0;
@@ -2587,7 +2760,7 @@ function peg$parse(input, options) {
2587
2760
  } else {
2588
2761
  s0 = peg$FAILED;
2589
2762
  if (peg$silentFails === 0) {
2590
- peg$fail(peg$e73);
2763
+ peg$fail(peg$e75);
2591
2764
  }
2592
2765
  }
2593
2766
  return s0;
@@ -2603,7 +2776,7 @@ function peg$parse(input, options) {
2603
2776
  } else {
2604
2777
  s2 = peg$FAILED;
2605
2778
  if (peg$silentFails === 0) {
2606
- peg$fail(peg$e73);
2779
+ peg$fail(peg$e75);
2607
2780
  }
2608
2781
  }
2609
2782
  peg$silentFails--;
@@ -2669,7 +2842,7 @@ function peg$parse(input, options) {
2669
2842
  } else {
2670
2843
  s0 = peg$FAILED;
2671
2844
  if (peg$silentFails === 0) {
2672
- peg$fail(peg$e74);
2845
+ peg$fail(peg$e76);
2673
2846
  }
2674
2847
  }
2675
2848
  return s0;
@@ -2677,12 +2850,12 @@ function peg$parse(input, options) {
2677
2850
  function peg$parseslcomtok() {
2678
2851
  let s0;
2679
2852
  s0 = input.charAt(peg$currPos);
2680
- if (peg$r7.test(s0)) {
2853
+ if (peg$r8.test(s0)) {
2681
2854
  peg$currPos++;
2682
2855
  } else {
2683
2856
  s0 = peg$FAILED;
2684
2857
  if (peg$silentFails === 0) {
2685
- peg$fail(peg$e75);
2858
+ peg$fail(peg$e77);
2686
2859
  }
2687
2860
  }
2688
2861
  return s0;
@@ -2717,7 +2890,7 @@ function peg$parse(input, options) {
2717
2890
  if (s0 === peg$FAILED) {
2718
2891
  s1 = peg$FAILED;
2719
2892
  if (peg$silentFails === 0) {
2720
- peg$fail(peg$e76);
2893
+ peg$fail(peg$e78);
2721
2894
  }
2722
2895
  }
2723
2896
  return s0;