@dbml/core 2.4.0 → 2.4.1

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.
@@ -162,7 +162,7 @@ function peg$parse(input, options) {
162
162
  peg$c3 = peg$literalExpectation("(", false),
163
163
  peg$c4 = ")",
164
164
  peg$c5 = peg$literalExpectation(")", false),
165
- peg$c6 = function peg$c6(table_name, body) {
165
+ peg$c6 = function peg$c6(table_name, body, options) {
166
166
  var fields = body.fields;
167
167
  var indexes = body.indexes;
168
168
  var bodyRefs = body.refs;
@@ -191,14 +191,16 @@ function peg$parse(input, options) {
191
191
  ref.endpoints[0].schemaName = table_name.schemaName;
192
192
  ref.endpoints[0].relation = '*';
193
193
  refs.push(ref);
194
- }); // return statement
194
+ });
195
195
 
196
- return indexes ? _objectSpread(_objectSpread({}, table_name), {}, {
197
- fields: fields,
198
- indexes: indexes
199
- }) : _objectSpread(_objectSpread({}, table_name), {}, {
196
+ var res = _objectSpread(_objectSpread({}, table_name), {}, {
200
197
  fields: fields
201
198
  });
199
+
200
+ if (options && options.comment) res.note = options.comment;
201
+ if (indexes) res.indexes = indexes; // return statement
202
+
203
+ return res;
202
204
  },
203
205
  peg$c7 = function peg$c7(lines) {
204
206
  // classify lines into pk, fk, unique, index and fields
@@ -778,56 +780,56 @@ function peg$parse(input, options) {
778
780
  value: type
779
781
  };
780
782
  },
781
- peg$c199 = "insert",
782
- peg$c200 = peg$literalExpectation("INSERT", true),
783
- peg$c201 = ";",
784
- peg$c202 = peg$literalExpectation(";", false),
785
- peg$c203 = peg$anyExpectation(),
786
- peg$c204 = "create",
787
- peg$c205 = peg$literalExpectation("CREATE", true),
788
- peg$c206 = "schema",
789
- peg$c207 = peg$literalExpectation("SCHEMA", true),
790
- peg$c208 = "database",
791
- peg$c209 = peg$literalExpectation("DATABASE", true),
792
- peg$c210 = "use",
793
- peg$c211 = peg$literalExpectation("USE", true),
794
- peg$c212 = "begin",
795
- peg$c213 = peg$literalExpectation("BEGIN", true),
796
- peg$c214 = "commit",
797
- peg$c215 = peg$literalExpectation("COMMIT", true),
798
- peg$c216 = "rollback",
799
- peg$c217 = peg$literalExpectation("ROLLBACK", true),
800
- peg$c218 = function peg$c218(first, rest) {
783
+ peg$c199 = "alter",
784
+ peg$c200 = peg$literalExpectation("ALTER", true),
785
+ peg$c201 = peg$anyExpectation(),
786
+ peg$c202 = "insert",
787
+ peg$c203 = peg$literalExpectation("INSERT", true),
788
+ peg$c204 = ";",
789
+ peg$c205 = peg$literalExpectation(";", false),
790
+ peg$c206 = "create",
791
+ peg$c207 = peg$literalExpectation("CREATE", true),
792
+ peg$c208 = "schema",
793
+ peg$c209 = peg$literalExpectation("SCHEMA", true),
794
+ peg$c210 = "database",
795
+ peg$c211 = peg$literalExpectation("DATABASE", true),
796
+ peg$c212 = "use",
797
+ peg$c213 = peg$literalExpectation("USE", true),
798
+ peg$c214 = "begin",
799
+ peg$c215 = peg$literalExpectation("BEGIN", true),
800
+ peg$c216 = "commit",
801
+ peg$c217 = peg$literalExpectation("COMMIT", true),
802
+ peg$c218 = "rollback",
803
+ peg$c219 = peg$literalExpectation("ROLLBACK", true),
804
+ peg$c220 = function peg$c220(first, rest) {
801
805
  return [first].concat(_toConsumableArray(rest.map(function (n) {
802
806
  return n[2];
803
807
  })));
804
808
  },
805
- peg$c219 = "COMMENT",
806
- peg$c220 = peg$literalExpectation("COMMENT", false),
807
- peg$c221 = "'",
808
- peg$c222 = peg$literalExpectation("'", false),
809
- peg$c223 = /^[^']/,
810
- peg$c224 = peg$classExpectation(["'"], true, false),
811
- peg$c225 = function peg$c225(comment, c) {
809
+ peg$c221 = "COMMENT",
810
+ peg$c222 = peg$literalExpectation("COMMENT", false),
811
+ peg$c223 = "'",
812
+ peg$c224 = peg$literalExpectation("'", false),
813
+ peg$c225 = /^[^']/,
814
+ peg$c226 = peg$classExpectation(["'"], true, false),
815
+ peg$c227 = function peg$c227(comment, c) {
812
816
  return c.join('');
813
817
  },
814
- peg$c226 = "\"",
815
- peg$c227 = peg$literalExpectation("\"", false),
816
- peg$c228 = /^[^"]/,
817
- peg$c229 = peg$classExpectation(["\""], true, false),
818
- peg$c230 = peg$otherExpectation("CREATE TABLE"),
819
- peg$c231 = "temporary",
820
- peg$c232 = peg$literalExpectation("TEMPORARY", true),
821
- peg$c233 = "table",
822
- peg$c234 = peg$literalExpectation("TABLE", true),
823
- peg$c235 = peg$otherExpectation("IF NOT EXISTS"),
824
- peg$c236 = "if",
825
- peg$c237 = peg$literalExpectation("IF", true),
826
- peg$c238 = "exists",
827
- peg$c239 = peg$literalExpectation("EXISTS", true),
828
- peg$c240 = peg$otherExpectation("ALTER TABLE"),
829
- peg$c241 = "alter",
830
- peg$c242 = peg$literalExpectation("ALTER", true),
818
+ peg$c228 = "\"",
819
+ peg$c229 = peg$literalExpectation("\"", false),
820
+ peg$c230 = /^[^"]/,
821
+ peg$c231 = peg$classExpectation(["\""], true, false),
822
+ peg$c232 = peg$otherExpectation("CREATE TABLE"),
823
+ peg$c233 = "temporary",
824
+ peg$c234 = peg$literalExpectation("TEMPORARY", true),
825
+ peg$c235 = "table",
826
+ peg$c236 = peg$literalExpectation("TABLE", true),
827
+ peg$c237 = peg$otherExpectation("IF NOT EXISTS"),
828
+ peg$c238 = "if",
829
+ peg$c239 = peg$literalExpectation("IF", true),
830
+ peg$c240 = "exists",
831
+ peg$c241 = peg$literalExpectation("EXISTS", true),
832
+ peg$c242 = peg$otherExpectation("ALTER TABLE"),
831
833
  peg$c243 = peg$otherExpectation("CREATE INDEX"),
832
834
  peg$c244 = function peg$c244(type) {
833
835
  return type;
@@ -1263,7 +1265,7 @@ function peg$parse(input, options) {
1263
1265
 
1264
1266
  if (s15 !== peg$FAILED) {
1265
1267
  peg$savedPos = s0;
1266
- s1 = peg$c6(s4, s8);
1268
+ s1 = peg$c6(s4, s8, s12);
1267
1269
  s0 = s1;
1268
1270
  } else {
1269
1271
  peg$currPos = s0;
@@ -6582,7 +6584,7 @@ function peg$parse(input, options) {
6582
6584
  }
6583
6585
 
6584
6586
  function peg$parseIgnoreSyntax() {
6585
- var s0, s1, s2, s3;
6587
+ var s0, s1, s2, s3, s4, s5, s6, s7;
6586
6588
  s0 = peg$currPos;
6587
6589
  s1 = peg$parseInsertSyntax();
6588
6590
 
@@ -6606,6 +6608,127 @@ function peg$parse(input, options) {
6606
6608
 
6607
6609
  if (s1 === peg$FAILED) {
6608
6610
  s1 = peg$parseRollbackSyntax();
6611
+
6612
+ if (s1 === peg$FAILED) {
6613
+ s1 = peg$currPos;
6614
+
6615
+ if (input.substr(peg$currPos, 5).toLowerCase() === peg$c199) {
6616
+ s2 = input.substr(peg$currPos, 5);
6617
+ peg$currPos += 5;
6618
+ } else {
6619
+ s2 = peg$FAILED;
6620
+
6621
+ if (peg$silentFails === 0) {
6622
+ peg$fail(peg$c200);
6623
+ }
6624
+ }
6625
+
6626
+ if (s2 !== peg$FAILED) {
6627
+ s3 = peg$parse_();
6628
+
6629
+ if (s3 !== peg$FAILED) {
6630
+ s4 = [];
6631
+ s5 = peg$parsecomment();
6632
+
6633
+ if (s5 === peg$FAILED) {
6634
+ s5 = peg$currPos;
6635
+ s6 = peg$currPos;
6636
+ peg$silentFails++;
6637
+ s7 = peg$parsesemicolon();
6638
+ peg$silentFails--;
6639
+
6640
+ if (s7 === peg$FAILED) {
6641
+ s6 = void 0;
6642
+ } else {
6643
+ peg$currPos = s6;
6644
+ s6 = peg$FAILED;
6645
+ }
6646
+
6647
+ if (s6 !== peg$FAILED) {
6648
+ if (input.length > peg$currPos) {
6649
+ s7 = input.charAt(peg$currPos);
6650
+ peg$currPos++;
6651
+ } else {
6652
+ s7 = peg$FAILED;
6653
+
6654
+ if (peg$silentFails === 0) {
6655
+ peg$fail(peg$c201);
6656
+ }
6657
+ }
6658
+
6659
+ if (s7 !== peg$FAILED) {
6660
+ s6 = [s6, s7];
6661
+ s5 = s6;
6662
+ } else {
6663
+ peg$currPos = s5;
6664
+ s5 = peg$FAILED;
6665
+ }
6666
+ } else {
6667
+ peg$currPos = s5;
6668
+ s5 = peg$FAILED;
6669
+ }
6670
+ }
6671
+
6672
+ while (s5 !== peg$FAILED) {
6673
+ s4.push(s5);
6674
+ s5 = peg$parsecomment();
6675
+
6676
+ if (s5 === peg$FAILED) {
6677
+ s5 = peg$currPos;
6678
+ s6 = peg$currPos;
6679
+ peg$silentFails++;
6680
+ s7 = peg$parsesemicolon();
6681
+ peg$silentFails--;
6682
+
6683
+ if (s7 === peg$FAILED) {
6684
+ s6 = void 0;
6685
+ } else {
6686
+ peg$currPos = s6;
6687
+ s6 = peg$FAILED;
6688
+ }
6689
+
6690
+ if (s6 !== peg$FAILED) {
6691
+ if (input.length > peg$currPos) {
6692
+ s7 = input.charAt(peg$currPos);
6693
+ peg$currPos++;
6694
+ } else {
6695
+ s7 = peg$FAILED;
6696
+
6697
+ if (peg$silentFails === 0) {
6698
+ peg$fail(peg$c201);
6699
+ }
6700
+ }
6701
+
6702
+ if (s7 !== peg$FAILED) {
6703
+ s6 = [s6, s7];
6704
+ s5 = s6;
6705
+ } else {
6706
+ peg$currPos = s5;
6707
+ s5 = peg$FAILED;
6708
+ }
6709
+ } else {
6710
+ peg$currPos = s5;
6711
+ s5 = peg$FAILED;
6712
+ }
6713
+ }
6714
+ }
6715
+
6716
+ if (s4 !== peg$FAILED) {
6717
+ s2 = [s2, s3, s4];
6718
+ s1 = s2;
6719
+ } else {
6720
+ peg$currPos = s1;
6721
+ s1 = peg$FAILED;
6722
+ }
6723
+ } else {
6724
+ peg$currPos = s1;
6725
+ s1 = peg$FAILED;
6726
+ }
6727
+ } else {
6728
+ peg$currPos = s1;
6729
+ s1 = peg$FAILED;
6730
+ }
6731
+ }
6609
6732
  }
6610
6733
  }
6611
6734
  }
@@ -6649,14 +6772,14 @@ function peg$parse(input, options) {
6649
6772
  s1 = peg$parse_();
6650
6773
 
6651
6774
  if (s1 !== peg$FAILED) {
6652
- if (input.substr(peg$currPos, 6).toLowerCase() === peg$c199) {
6775
+ if (input.substr(peg$currPos, 6).toLowerCase() === peg$c202) {
6653
6776
  s2 = input.substr(peg$currPos, 6);
6654
6777
  peg$currPos += 6;
6655
6778
  } else {
6656
6779
  s2 = peg$FAILED;
6657
6780
 
6658
6781
  if (peg$silentFails === 0) {
6659
- peg$fail(peg$c200);
6782
+ peg$fail(peg$c203);
6660
6783
  }
6661
6784
  }
6662
6785
 
@@ -6683,13 +6806,13 @@ function peg$parse(input, options) {
6683
6806
 
6684
6807
  if (s8 !== peg$FAILED) {
6685
6808
  if (input.charCodeAt(peg$currPos) === 59) {
6686
- s9 = peg$c201;
6809
+ s9 = peg$c204;
6687
6810
  peg$currPos++;
6688
6811
  } else {
6689
6812
  s9 = peg$FAILED;
6690
6813
 
6691
6814
  if (peg$silentFails === 0) {
6692
- peg$fail(peg$c202);
6815
+ peg$fail(peg$c205);
6693
6816
  }
6694
6817
  }
6695
6818
 
@@ -6726,7 +6849,7 @@ function peg$parse(input, options) {
6726
6849
  s6 = peg$FAILED;
6727
6850
 
6728
6851
  if (peg$silentFails === 0) {
6729
- peg$fail(peg$c203);
6852
+ peg$fail(peg$c201);
6730
6853
  }
6731
6854
  }
6732
6855
 
@@ -6765,13 +6888,13 @@ function peg$parse(input, options) {
6765
6888
 
6766
6889
  if (s8 !== peg$FAILED) {
6767
6890
  if (input.charCodeAt(peg$currPos) === 59) {
6768
- s9 = peg$c201;
6891
+ s9 = peg$c204;
6769
6892
  peg$currPos++;
6770
6893
  } else {
6771
6894
  s9 = peg$FAILED;
6772
6895
 
6773
6896
  if (peg$silentFails === 0) {
6774
- peg$fail(peg$c202);
6897
+ peg$fail(peg$c205);
6775
6898
  }
6776
6899
  }
6777
6900
 
@@ -6808,7 +6931,7 @@ function peg$parse(input, options) {
6808
6931
  s6 = peg$FAILED;
6809
6932
 
6810
6933
  if (peg$silentFails === 0) {
6811
- peg$fail(peg$c203);
6934
+ peg$fail(peg$c201);
6812
6935
  }
6813
6936
  }
6814
6937
 
@@ -6931,14 +7054,14 @@ function peg$parse(input, options) {
6931
7054
  s1 = peg$parse_();
6932
7055
 
6933
7056
  if (s1 !== peg$FAILED) {
6934
- if (input.substr(peg$currPos, 6).toLowerCase() === peg$c204) {
7057
+ if (input.substr(peg$currPos, 6).toLowerCase() === peg$c206) {
6935
7058
  s2 = input.substr(peg$currPos, 6);
6936
7059
  peg$currPos += 6;
6937
7060
  } else {
6938
7061
  s2 = peg$FAILED;
6939
7062
 
6940
7063
  if (peg$silentFails === 0) {
6941
- peg$fail(peg$c205);
7064
+ peg$fail(peg$c207);
6942
7065
  }
6943
7066
  }
6944
7067
 
@@ -6946,26 +7069,26 @@ function peg$parse(input, options) {
6946
7069
  s3 = peg$parse_();
6947
7070
 
6948
7071
  if (s3 !== peg$FAILED) {
6949
- if (input.substr(peg$currPos, 6).toLowerCase() === peg$c206) {
7072
+ if (input.substr(peg$currPos, 6).toLowerCase() === peg$c208) {
6950
7073
  s4 = input.substr(peg$currPos, 6);
6951
7074
  peg$currPos += 6;
6952
7075
  } else {
6953
7076
  s4 = peg$FAILED;
6954
7077
 
6955
7078
  if (peg$silentFails === 0) {
6956
- peg$fail(peg$c207);
7079
+ peg$fail(peg$c209);
6957
7080
  }
6958
7081
  }
6959
7082
 
6960
7083
  if (s4 === peg$FAILED) {
6961
- if (input.substr(peg$currPos, 8).toLowerCase() === peg$c208) {
7084
+ if (input.substr(peg$currPos, 8).toLowerCase() === peg$c210) {
6962
7085
  s4 = input.substr(peg$currPos, 8);
6963
7086
  peg$currPos += 8;
6964
7087
  } else {
6965
7088
  s4 = peg$FAILED;
6966
7089
 
6967
7090
  if (peg$silentFails === 0) {
6968
- peg$fail(peg$c209);
7091
+ peg$fail(peg$c211);
6969
7092
  }
6970
7093
  }
6971
7094
  }
@@ -7097,14 +7220,14 @@ function peg$parse(input, options) {
7097
7220
  s1 = peg$parse_();
7098
7221
 
7099
7222
  if (s1 !== peg$FAILED) {
7100
- if (input.substr(peg$currPos, 3).toLowerCase() === peg$c210) {
7223
+ if (input.substr(peg$currPos, 3).toLowerCase() === peg$c212) {
7101
7224
  s2 = input.substr(peg$currPos, 3);
7102
7225
  peg$currPos += 3;
7103
7226
  } else {
7104
7227
  s2 = peg$FAILED;
7105
7228
 
7106
7229
  if (peg$silentFails === 0) {
7107
- peg$fail(peg$c211);
7230
+ peg$fail(peg$c213);
7108
7231
  }
7109
7232
  }
7110
7233
 
@@ -7162,14 +7285,14 @@ function peg$parse(input, options) {
7162
7285
  s1 = peg$parse_();
7163
7286
 
7164
7287
  if (s1 !== peg$FAILED) {
7165
- if (input.substr(peg$currPos, 5).toLowerCase() === peg$c212) {
7288
+ if (input.substr(peg$currPos, 5).toLowerCase() === peg$c214) {
7166
7289
  s2 = input.substr(peg$currPos, 5);
7167
7290
  peg$currPos += 5;
7168
7291
  } else {
7169
7292
  s2 = peg$FAILED;
7170
7293
 
7171
7294
  if (peg$silentFails === 0) {
7172
- peg$fail(peg$c213);
7295
+ peg$fail(peg$c215);
7173
7296
  }
7174
7297
  }
7175
7298
 
@@ -7227,14 +7350,14 @@ function peg$parse(input, options) {
7227
7350
  s1 = peg$parse_();
7228
7351
 
7229
7352
  if (s1 !== peg$FAILED) {
7230
- if (input.substr(peg$currPos, 6).toLowerCase() === peg$c214) {
7353
+ if (input.substr(peg$currPos, 6).toLowerCase() === peg$c216) {
7231
7354
  s2 = input.substr(peg$currPos, 6);
7232
7355
  peg$currPos += 6;
7233
7356
  } else {
7234
7357
  s2 = peg$FAILED;
7235
7358
 
7236
7359
  if (peg$silentFails === 0) {
7237
- peg$fail(peg$c215);
7360
+ peg$fail(peg$c217);
7238
7361
  }
7239
7362
  }
7240
7363
 
@@ -7292,14 +7415,14 @@ function peg$parse(input, options) {
7292
7415
  s1 = peg$parse_();
7293
7416
 
7294
7417
  if (s1 !== peg$FAILED) {
7295
- if (input.substr(peg$currPos, 8).toLowerCase() === peg$c216) {
7418
+ if (input.substr(peg$currPos, 8).toLowerCase() === peg$c218) {
7296
7419
  s2 = input.substr(peg$currPos, 8);
7297
7420
  peg$currPos += 8;
7298
7421
  } else {
7299
7422
  s2 = peg$FAILED;
7300
7423
 
7301
7424
  if (peg$silentFails === 0) {
7302
- peg$fail(peg$c217);
7425
+ peg$fail(peg$c219);
7303
7426
  }
7304
7427
  }
7305
7428
 
@@ -7413,7 +7536,7 @@ function peg$parse(input, options) {
7413
7536
 
7414
7537
  if (s2 !== peg$FAILED) {
7415
7538
  peg$savedPos = s0;
7416
- s1 = peg$c218(s1, s2);
7539
+ s1 = peg$c220(s1, s2);
7417
7540
  s0 = s1;
7418
7541
  } else {
7419
7542
  peg$currPos = s0;
@@ -7431,14 +7554,14 @@ function peg$parse(input, options) {
7431
7554
  var s0, s1, s2, s3, s4, s5, s6;
7432
7555
  s0 = peg$currPos;
7433
7556
 
7434
- if (input.substr(peg$currPos, 7) === peg$c219) {
7435
- s1 = peg$c219;
7557
+ if (input.substr(peg$currPos, 7) === peg$c221) {
7558
+ s1 = peg$c221;
7436
7559
  peg$currPos += 7;
7437
7560
  } else {
7438
7561
  s1 = peg$FAILED;
7439
7562
 
7440
7563
  if (peg$silentFails === 0) {
7441
- peg$fail(peg$c220);
7564
+ peg$fail(peg$c222);
7442
7565
  }
7443
7566
  }
7444
7567
 
@@ -7480,60 +7603,60 @@ function peg$parse(input, options) {
7480
7603
 
7481
7604
  if (s3 !== peg$FAILED) {
7482
7605
  if (input.charCodeAt(peg$currPos) === 39) {
7483
- s4 = peg$c221;
7606
+ s4 = peg$c223;
7484
7607
  peg$currPos++;
7485
7608
  } else {
7486
7609
  s4 = peg$FAILED;
7487
7610
 
7488
7611
  if (peg$silentFails === 0) {
7489
- peg$fail(peg$c222);
7612
+ peg$fail(peg$c224);
7490
7613
  }
7491
7614
  }
7492
7615
 
7493
7616
  if (s4 !== peg$FAILED) {
7494
7617
  s5 = [];
7495
7618
 
7496
- if (peg$c223.test(input.charAt(peg$currPos))) {
7619
+ if (peg$c225.test(input.charAt(peg$currPos))) {
7497
7620
  s6 = input.charAt(peg$currPos);
7498
7621
  peg$currPos++;
7499
7622
  } else {
7500
7623
  s6 = peg$FAILED;
7501
7624
 
7502
7625
  if (peg$silentFails === 0) {
7503
- peg$fail(peg$c224);
7626
+ peg$fail(peg$c226);
7504
7627
  }
7505
7628
  }
7506
7629
 
7507
7630
  while (s6 !== peg$FAILED) {
7508
7631
  s5.push(s6);
7509
7632
 
7510
- if (peg$c223.test(input.charAt(peg$currPos))) {
7633
+ if (peg$c225.test(input.charAt(peg$currPos))) {
7511
7634
  s6 = input.charAt(peg$currPos);
7512
7635
  peg$currPos++;
7513
7636
  } else {
7514
7637
  s6 = peg$FAILED;
7515
7638
 
7516
7639
  if (peg$silentFails === 0) {
7517
- peg$fail(peg$c224);
7640
+ peg$fail(peg$c226);
7518
7641
  }
7519
7642
  }
7520
7643
  }
7521
7644
 
7522
7645
  if (s5 !== peg$FAILED) {
7523
7646
  if (input.charCodeAt(peg$currPos) === 39) {
7524
- s6 = peg$c221;
7647
+ s6 = peg$c223;
7525
7648
  peg$currPos++;
7526
7649
  } else {
7527
7650
  s6 = peg$FAILED;
7528
7651
 
7529
7652
  if (peg$silentFails === 0) {
7530
- peg$fail(peg$c222);
7653
+ peg$fail(peg$c224);
7531
7654
  }
7532
7655
  }
7533
7656
 
7534
7657
  if (s6 !== peg$FAILED) {
7535
7658
  peg$savedPos = s0;
7536
- s1 = peg$c225(s4, s5);
7659
+ s1 = peg$c227(s4, s5);
7537
7660
  s0 = s1;
7538
7661
  } else {
7539
7662
  peg$currPos = s0;
@@ -7563,14 +7686,14 @@ function peg$parse(input, options) {
7563
7686
  if (s0 === peg$FAILED) {
7564
7687
  s0 = peg$currPos;
7565
7688
 
7566
- if (input.substr(peg$currPos, 7) === peg$c219) {
7567
- s1 = peg$c219;
7689
+ if (input.substr(peg$currPos, 7) === peg$c221) {
7690
+ s1 = peg$c221;
7568
7691
  peg$currPos += 7;
7569
7692
  } else {
7570
7693
  s1 = peg$FAILED;
7571
7694
 
7572
7695
  if (peg$silentFails === 0) {
7573
- peg$fail(peg$c220);
7696
+ peg$fail(peg$c222);
7574
7697
  }
7575
7698
  }
7576
7699
 
@@ -7612,60 +7735,60 @@ function peg$parse(input, options) {
7612
7735
 
7613
7736
  if (s3 !== peg$FAILED) {
7614
7737
  if (input.charCodeAt(peg$currPos) === 34) {
7615
- s4 = peg$c226;
7738
+ s4 = peg$c228;
7616
7739
  peg$currPos++;
7617
7740
  } else {
7618
7741
  s4 = peg$FAILED;
7619
7742
 
7620
7743
  if (peg$silentFails === 0) {
7621
- peg$fail(peg$c227);
7744
+ peg$fail(peg$c229);
7622
7745
  }
7623
7746
  }
7624
7747
 
7625
7748
  if (s4 !== peg$FAILED) {
7626
7749
  s5 = [];
7627
7750
 
7628
- if (peg$c228.test(input.charAt(peg$currPos))) {
7751
+ if (peg$c230.test(input.charAt(peg$currPos))) {
7629
7752
  s6 = input.charAt(peg$currPos);
7630
7753
  peg$currPos++;
7631
7754
  } else {
7632
7755
  s6 = peg$FAILED;
7633
7756
 
7634
7757
  if (peg$silentFails === 0) {
7635
- peg$fail(peg$c229);
7758
+ peg$fail(peg$c231);
7636
7759
  }
7637
7760
  }
7638
7761
 
7639
7762
  while (s6 !== peg$FAILED) {
7640
7763
  s5.push(s6);
7641
7764
 
7642
- if (peg$c228.test(input.charAt(peg$currPos))) {
7765
+ if (peg$c230.test(input.charAt(peg$currPos))) {
7643
7766
  s6 = input.charAt(peg$currPos);
7644
7767
  peg$currPos++;
7645
7768
  } else {
7646
7769
  s6 = peg$FAILED;
7647
7770
 
7648
7771
  if (peg$silentFails === 0) {
7649
- peg$fail(peg$c229);
7772
+ peg$fail(peg$c231);
7650
7773
  }
7651
7774
  }
7652
7775
  }
7653
7776
 
7654
7777
  if (s5 !== peg$FAILED) {
7655
7778
  if (input.charCodeAt(peg$currPos) === 34) {
7656
- s6 = peg$c226;
7779
+ s6 = peg$c228;
7657
7780
  peg$currPos++;
7658
7781
  } else {
7659
7782
  s6 = peg$FAILED;
7660
7783
 
7661
7784
  if (peg$silentFails === 0) {
7662
- peg$fail(peg$c227);
7785
+ peg$fail(peg$c229);
7663
7786
  }
7664
7787
  }
7665
7788
 
7666
7789
  if (s6 !== peg$FAILED) {
7667
7790
  peg$savedPos = s0;
7668
- s1 = peg$c225(s4, s5);
7791
+ s1 = peg$c227(s4, s5);
7669
7792
  s0 = s1;
7670
7793
  } else {
7671
7794
  peg$currPos = s0;
@@ -7701,14 +7824,14 @@ function peg$parse(input, options) {
7701
7824
  peg$silentFails++;
7702
7825
  s0 = peg$currPos;
7703
7826
 
7704
- if (input.substr(peg$currPos, 6).toLowerCase() === peg$c204) {
7827
+ if (input.substr(peg$currPos, 6).toLowerCase() === peg$c206) {
7705
7828
  s1 = input.substr(peg$currPos, 6);
7706
7829
  peg$currPos += 6;
7707
7830
  } else {
7708
7831
  s1 = peg$FAILED;
7709
7832
 
7710
7833
  if (peg$silentFails === 0) {
7711
- peg$fail(peg$c205);
7834
+ peg$fail(peg$c207);
7712
7835
  }
7713
7836
  }
7714
7837
 
@@ -7716,14 +7839,14 @@ function peg$parse(input, options) {
7716
7839
  s2 = peg$parse_();
7717
7840
 
7718
7841
  if (s2 !== peg$FAILED) {
7719
- if (input.substr(peg$currPos, 9).toLowerCase() === peg$c231) {
7842
+ if (input.substr(peg$currPos, 9).toLowerCase() === peg$c233) {
7720
7843
  s3 = input.substr(peg$currPos, 9);
7721
7844
  peg$currPos += 9;
7722
7845
  } else {
7723
7846
  s3 = peg$FAILED;
7724
7847
 
7725
7848
  if (peg$silentFails === 0) {
7726
- peg$fail(peg$c232);
7849
+ peg$fail(peg$c234);
7727
7850
  }
7728
7851
  }
7729
7852
 
@@ -7735,14 +7858,14 @@ function peg$parse(input, options) {
7735
7858
  s4 = peg$parse_();
7736
7859
 
7737
7860
  if (s4 !== peg$FAILED) {
7738
- if (input.substr(peg$currPos, 5).toLowerCase() === peg$c233) {
7861
+ if (input.substr(peg$currPos, 5).toLowerCase() === peg$c235) {
7739
7862
  s5 = input.substr(peg$currPos, 5);
7740
7863
  peg$currPos += 5;
7741
7864
  } else {
7742
7865
  s5 = peg$FAILED;
7743
7866
 
7744
7867
  if (peg$silentFails === 0) {
7745
- peg$fail(peg$c234);
7868
+ peg$fail(peg$c236);
7746
7869
  }
7747
7870
  }
7748
7871
 
@@ -7776,7 +7899,7 @@ function peg$parse(input, options) {
7776
7899
  s1 = peg$FAILED;
7777
7900
 
7778
7901
  if (peg$silentFails === 0) {
7779
- peg$fail(peg$c230);
7902
+ peg$fail(peg$c232);
7780
7903
  }
7781
7904
  }
7782
7905
 
@@ -7788,14 +7911,14 @@ function peg$parse(input, options) {
7788
7911
  peg$silentFails++;
7789
7912
  s0 = peg$currPos;
7790
7913
 
7791
- if (input.substr(peg$currPos, 2).toLowerCase() === peg$c236) {
7914
+ if (input.substr(peg$currPos, 2).toLowerCase() === peg$c238) {
7792
7915
  s1 = input.substr(peg$currPos, 2);
7793
7916
  peg$currPos += 2;
7794
7917
  } else {
7795
7918
  s1 = peg$FAILED;
7796
7919
 
7797
7920
  if (peg$silentFails === 0) {
7798
- peg$fail(peg$c237);
7921
+ peg$fail(peg$c239);
7799
7922
  }
7800
7923
  }
7801
7924
 
@@ -7818,14 +7941,14 @@ function peg$parse(input, options) {
7818
7941
  s4 = peg$parse_();
7819
7942
 
7820
7943
  if (s4 !== peg$FAILED) {
7821
- if (input.substr(peg$currPos, 6).toLowerCase() === peg$c238) {
7944
+ if (input.substr(peg$currPos, 6).toLowerCase() === peg$c240) {
7822
7945
  s5 = input.substr(peg$currPos, 6);
7823
7946
  peg$currPos += 6;
7824
7947
  } else {
7825
7948
  s5 = peg$FAILED;
7826
7949
 
7827
7950
  if (peg$silentFails === 0) {
7828
- peg$fail(peg$c239);
7951
+ peg$fail(peg$c241);
7829
7952
  }
7830
7953
  }
7831
7954
 
@@ -7859,7 +7982,7 @@ function peg$parse(input, options) {
7859
7982
  s1 = peg$FAILED;
7860
7983
 
7861
7984
  if (peg$silentFails === 0) {
7862
- peg$fail(peg$c235);
7985
+ peg$fail(peg$c237);
7863
7986
  }
7864
7987
  }
7865
7988
 
@@ -7871,14 +7994,14 @@ function peg$parse(input, options) {
7871
7994
  peg$silentFails++;
7872
7995
  s0 = peg$currPos;
7873
7996
 
7874
- if (input.substr(peg$currPos, 5).toLowerCase() === peg$c241) {
7997
+ if (input.substr(peg$currPos, 5).toLowerCase() === peg$c199) {
7875
7998
  s1 = input.substr(peg$currPos, 5);
7876
7999
  peg$currPos += 5;
7877
8000
  } else {
7878
8001
  s1 = peg$FAILED;
7879
8002
 
7880
8003
  if (peg$silentFails === 0) {
7881
- peg$fail(peg$c242);
8004
+ peg$fail(peg$c200);
7882
8005
  }
7883
8006
  }
7884
8007
 
@@ -7886,14 +8009,14 @@ function peg$parse(input, options) {
7886
8009
  s2 = peg$parse_();
7887
8010
 
7888
8011
  if (s2 !== peg$FAILED) {
7889
- if (input.substr(peg$currPos, 5).toLowerCase() === peg$c233) {
8012
+ if (input.substr(peg$currPos, 5).toLowerCase() === peg$c235) {
7890
8013
  s3 = input.substr(peg$currPos, 5);
7891
8014
  peg$currPos += 5;
7892
8015
  } else {
7893
8016
  s3 = peg$FAILED;
7894
8017
 
7895
8018
  if (peg$silentFails === 0) {
7896
- peg$fail(peg$c234);
8019
+ peg$fail(peg$c236);
7897
8020
  }
7898
8021
  }
7899
8022
 
@@ -7919,7 +8042,7 @@ function peg$parse(input, options) {
7919
8042
  s1 = peg$FAILED;
7920
8043
 
7921
8044
  if (peg$silentFails === 0) {
7922
- peg$fail(peg$c240);
8045
+ peg$fail(peg$c242);
7923
8046
  }
7924
8047
  }
7925
8048
 
@@ -7931,14 +8054,14 @@ function peg$parse(input, options) {
7931
8054
  peg$silentFails++;
7932
8055
  s0 = peg$currPos;
7933
8056
 
7934
- if (input.substr(peg$currPos, 6).toLowerCase() === peg$c204) {
8057
+ if (input.substr(peg$currPos, 6).toLowerCase() === peg$c206) {
7935
8058
  s1 = input.substr(peg$currPos, 6);
7936
8059
  peg$currPos += 6;
7937
8060
  } else {
7938
8061
  s1 = peg$FAILED;
7939
8062
 
7940
8063
  if (peg$silentFails === 0) {
7941
- peg$fail(peg$c205);
8064
+ peg$fail(peg$c207);
7942
8065
  }
7943
8066
  }
7944
8067
 
@@ -7991,14 +8114,14 @@ function peg$parse(input, options) {
7991
8114
  if (s0 === peg$FAILED) {
7992
8115
  s0 = peg$currPos;
7993
8116
 
7994
- if (input.substr(peg$currPos, 6).toLowerCase() === peg$c204) {
8117
+ if (input.substr(peg$currPos, 6).toLowerCase() === peg$c206) {
7995
8118
  s1 = input.substr(peg$currPos, 6);
7996
8119
  peg$currPos += 6;
7997
8120
  } else {
7998
8121
  s1 = peg$FAILED;
7999
8122
 
8000
8123
  if (peg$silentFails === 0) {
8001
- peg$fail(peg$c205);
8124
+ peg$fail(peg$c207);
8002
8125
  }
8003
8126
  }
8004
8127
 
@@ -9051,7 +9174,7 @@ function peg$parse(input, options) {
9051
9174
  s4 = peg$FAILED;
9052
9175
 
9053
9176
  if (peg$silentFails === 0) {
9054
- peg$fail(peg$c203);
9177
+ peg$fail(peg$c201);
9055
9178
  }
9056
9179
  }
9057
9180
 
@@ -9195,13 +9318,13 @@ function peg$parse(input, options) {
9195
9318
 
9196
9319
  if (s0 === peg$FAILED) {
9197
9320
  if (input.charCodeAt(peg$currPos) === 34) {
9198
- s0 = peg$c226;
9321
+ s0 = peg$c228;
9199
9322
  peg$currPos++;
9200
9323
  } else {
9201
9324
  s0 = peg$FAILED;
9202
9325
 
9203
9326
  if (peg$silentFails === 0) {
9204
- peg$fail(peg$c227);
9327
+ peg$fail(peg$c229);
9205
9328
  }
9206
9329
  }
9207
9330
  }
@@ -9247,13 +9370,13 @@ function peg$parse(input, options) {
9247
9370
  var s0;
9248
9371
 
9249
9372
  if (input.charCodeAt(peg$currPos) === 59) {
9250
- s0 = peg$c201;
9373
+ s0 = peg$c204;
9251
9374
  peg$currPos++;
9252
9375
  } else {
9253
9376
  s0 = peg$FAILED;
9254
9377
 
9255
9378
  if (peg$silentFails === 0) {
9256
- peg$fail(peg$c202);
9379
+ peg$fail(peg$c205);
9257
9380
  }
9258
9381
  }
9259
9382
 
@@ -9546,7 +9669,7 @@ function peg$parse(input, options) {
9546
9669
  s5 = peg$FAILED;
9547
9670
 
9548
9671
  if (peg$silentFails === 0) {
9549
- peg$fail(peg$c203);
9672
+ peg$fail(peg$c201);
9550
9673
  }
9551
9674
  }
9552
9675
 
@@ -9596,7 +9719,7 @@ function peg$parse(input, options) {
9596
9719
  s5 = peg$FAILED;
9597
9720
 
9598
9721
  if (peg$silentFails === 0) {
9599
- peg$fail(peg$c203);
9722
+ peg$fail(peg$c201);
9600
9723
  }
9601
9724
  }
9602
9725
 
@@ -9672,13 +9795,13 @@ function peg$parse(input, options) {
9672
9795
  s0 = peg$currPos;
9673
9796
 
9674
9797
  if (input.charCodeAt(peg$currPos) === 34) {
9675
- s1 = peg$c226;
9798
+ s1 = peg$c228;
9676
9799
  peg$currPos++;
9677
9800
  } else {
9678
9801
  s1 = peg$FAILED;
9679
9802
 
9680
9803
  if (peg$silentFails === 0) {
9681
- peg$fail(peg$c227);
9804
+ peg$fail(peg$c229);
9682
9805
  }
9683
9806
  }
9684
9807
 
@@ -9693,13 +9816,13 @@ function peg$parse(input, options) {
9693
9816
 
9694
9817
  if (s2 !== peg$FAILED) {
9695
9818
  if (input.charCodeAt(peg$currPos) === 34) {
9696
- s3 = peg$c226;
9819
+ s3 = peg$c228;
9697
9820
  peg$currPos++;
9698
9821
  } else {
9699
9822
  s3 = peg$FAILED;
9700
9823
 
9701
9824
  if (peg$silentFails === 0) {
9702
- peg$fail(peg$c227);
9825
+ peg$fail(peg$c229);
9703
9826
  }
9704
9827
  }
9705
9828
 
@@ -9724,13 +9847,13 @@ function peg$parse(input, options) {
9724
9847
  s0 = peg$currPos;
9725
9848
 
9726
9849
  if (input.charCodeAt(peg$currPos) === 39) {
9727
- s1 = peg$c221;
9850
+ s1 = peg$c223;
9728
9851
  peg$currPos++;
9729
9852
  } else {
9730
9853
  s1 = peg$FAILED;
9731
9854
 
9732
9855
  if (peg$silentFails === 0) {
9733
- peg$fail(peg$c222);
9856
+ peg$fail(peg$c224);
9734
9857
  }
9735
9858
  }
9736
9859
 
@@ -9745,13 +9868,13 @@ function peg$parse(input, options) {
9745
9868
 
9746
9869
  if (s2 !== peg$FAILED) {
9747
9870
  if (input.charCodeAt(peg$currPos) === 39) {
9748
- s3 = peg$c221;
9871
+ s3 = peg$c223;
9749
9872
  peg$currPos++;
9750
9873
  } else {
9751
9874
  s3 = peg$FAILED;
9752
9875
 
9753
9876
  if (peg$silentFails === 0) {
9754
- peg$fail(peg$c222);
9877
+ peg$fail(peg$c224);
9755
9878
  }
9756
9879
  }
9757
9880
 
@@ -9803,13 +9926,13 @@ function peg$parse(input, options) {
9803
9926
 
9804
9927
  if (s1 !== peg$FAILED) {
9805
9928
  if (input.charCodeAt(peg$currPos) === 34) {
9806
- s2 = peg$c226;
9929
+ s2 = peg$c228;
9807
9930
  peg$currPos++;
9808
9931
  } else {
9809
9932
  s2 = peg$FAILED;
9810
9933
 
9811
9934
  if (peg$silentFails === 0) {
9812
- peg$fail(peg$c227);
9935
+ peg$fail(peg$c229);
9813
9936
  }
9814
9937
  }
9815
9938
 
@@ -9832,13 +9955,13 @@ function peg$parse(input, options) {
9832
9955
  peg$silentFails++;
9833
9956
 
9834
9957
  if (input.charCodeAt(peg$currPos) === 34) {
9835
- s2 = peg$c226;
9958
+ s2 = peg$c228;
9836
9959
  peg$currPos++;
9837
9960
  } else {
9838
9961
  s2 = peg$FAILED;
9839
9962
 
9840
9963
  if (peg$silentFails === 0) {
9841
- peg$fail(peg$c227);
9964
+ peg$fail(peg$c229);
9842
9965
  }
9843
9966
  }
9844
9967
 
@@ -9888,13 +10011,13 @@ function peg$parse(input, options) {
9888
10011
 
9889
10012
  if (s1 !== peg$FAILED) {
9890
10013
  if (input.charCodeAt(peg$currPos) === 39) {
9891
- s2 = peg$c221;
10014
+ s2 = peg$c223;
9892
10015
  peg$currPos++;
9893
10016
  } else {
9894
10017
  s2 = peg$FAILED;
9895
10018
 
9896
10019
  if (peg$silentFails === 0) {
9897
- peg$fail(peg$c222);
10020
+ peg$fail(peg$c224);
9898
10021
  }
9899
10022
  }
9900
10023
 
@@ -9917,13 +10040,13 @@ function peg$parse(input, options) {
9917
10040
  peg$silentFails++;
9918
10041
 
9919
10042
  if (input.charCodeAt(peg$currPos) === 39) {
9920
- s2 = peg$c221;
10043
+ s2 = peg$c223;
9921
10044
  peg$currPos++;
9922
10045
  } else {
9923
10046
  s2 = peg$FAILED;
9924
10047
 
9925
10048
  if (peg$silentFails === 0) {
9926
- peg$fail(peg$c222);
10049
+ peg$fail(peg$c224);
9927
10050
  }
9928
10051
  }
9929
10052
 
@@ -9966,7 +10089,7 @@ function peg$parse(input, options) {
9966
10089
  s0 = peg$FAILED;
9967
10090
 
9968
10091
  if (peg$silentFails === 0) {
9969
- peg$fail(peg$c203);
10092
+ peg$fail(peg$c201);
9970
10093
  }
9971
10094
  }
9972
10095