@dotenvx/dotenvx 2.31.0 → 2.32.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.
Files changed (37) hide show
  1. package/CHANGELOG.md +18 -1
  2. package/README.md +100 -28
  3. package/package.json +3 -3
  4. package/src/cli/actions/check.js +45 -38
  5. package/src/cli/actions/init.js +23 -13
  6. package/src/cli/actions/protectStdin.js +19 -3
  7. package/src/cli/actions/run.js +15 -11
  8. package/src/cli/commands/armor.js +1 -1
  9. package/src/cli/commands/primitives.js +1 -1
  10. package/src/cli/dotenvx.js +8 -7
  11. package/src/lib/custodians/resolveLocalKey.js +68 -0
  12. package/src/lib/{envfile → envspec}/discovery/discoverEnvFiles.js +1 -1
  13. package/src/lib/{envfile → envspec}/discovery/scanSource.js +1 -1
  14. package/src/lib/{envfile/parsing/envfile.peggy → envspec/parsing/envspec.peggy} +17 -10
  15. package/src/lib/{envfile/parsing/envfileParser.js → envspec/parsing/envspecParser.js} +575 -455
  16. package/src/lib/{envfile/parsing/formatEnvfileSyntaxError.js → envspec/parsing/formatEnvspecSyntaxError.js} +1 -1
  17. package/src/lib/{envfile/parsing/readEnvfile.js → envspec/parsing/readEnvspec.js} +38 -27
  18. package/src/lib/{envfile/rendering/normalizeEnvfile.js → envspec/rendering/normalizeEnvspec.js} +7 -10
  19. package/src/lib/envspec/rendering/previewEnvspec.js +51 -0
  20. package/src/lib/envspec/rendering/renderEnvspec.js +30 -0
  21. package/src/lib/envspec/validation/diagnosticLocation.js +29 -0
  22. package/src/lib/envspec/validation/protectEnvspec.js +39 -0
  23. package/src/lib/envspec/validation/validateEnvspec.js +57 -0
  24. package/src/lib/helpers/errors.js +7 -6
  25. package/src/lib/helpers/isPublicKey.js +3 -0
  26. package/src/lib/helpers/plaintextKeys.js +9 -0
  27. package/src/lib/helpers/redactedValues.js +10 -4
  28. package/src/lib/services/armorPush.js +3 -15
  29. package/src/lib/services/armorUp.js +5 -12
  30. package/src/lib/services/init.js +27 -22
  31. package/src/lib/services/validate.js +20 -10
  32. package/src/lib/transforms/encrypt.js +21 -8
  33. package/src/lib/envfile/rendering/renderEnvfile.js +0 -26
  34. package/src/lib/envfile/validation/validateEnvfile.js +0 -24
  35. /package/src/lib/{envfile → envspec}/discovery/extractEnvKeys.js +0 -0
  36. /package/src/lib/{envfile → envspec}/validation/encryptedSources.js +0 -0
  37. /package/src/lib/{envfile → envspec}/validation/validate.js +0 -0
@@ -168,41 +168,45 @@ function peg$parse(input, options) {
168
168
  const peg$c0 = "file";
169
169
  const peg$c1 = "do";
170
170
  const peg$c2 = "end";
171
- const peg$c3 = "\"";
172
- const peg$c4 = "'";
173
- const peg$c5 = "encrypted";
171
+ const peg$c3 = "strict";
172
+ const peg$c4 = "\"";
173
+ const peg$c5 = "'";
174
174
  const peg$c6 = "env";
175
175
  const peg$c7 = ",";
176
176
  const peg$c8 = "proxy";
177
177
  const peg$c9 = ":";
178
178
  const peg$c10 = "required";
179
179
  const peg$c11 = "optional";
180
- const peg$c12 = "type";
181
- const peg$c13 = "enum";
182
- const peg$c14 = "min";
183
- const peg$c15 = "max";
184
- const peg$c16 = "[";
185
- const peg$c17 = "]";
186
- const peg$c18 = "\\";
187
- const peg$c19 = "\"integer\"";
188
- const peg$c20 = "'integer'";
189
- const peg$c21 = "\"boolean\"";
190
- const peg$c22 = "'boolean'";
191
- const peg$c23 = "\"port\"";
192
- const peg$c24 = "'port'";
193
- const peg$c25 = "\"url\"";
194
- const peg$c26 = "'url'";
195
- const peg$c27 = "\"email\"";
196
- const peg$c28 = "'email'";
197
- const peg$c29 = "\"ip\"";
198
- const peg$c30 = "'ip'";
199
- const peg$c31 = "true";
200
- const peg$c32 = "{";
201
- const peg$c33 = "domain";
202
- const peg$c34 = "}";
203
- const peg$c35 = "false";
204
- const peg$c36 = "#";
205
- const peg$c37 = "\r\n";
180
+ const peg$c12 = "redacted";
181
+ const peg$c13 = "redact";
182
+ const peg$c14 = "encrypted";
183
+ const peg$c15 = "encrypt";
184
+ const peg$c16 = "type";
185
+ const peg$c17 = "enum";
186
+ const peg$c18 = "min";
187
+ const peg$c19 = "max";
188
+ const peg$c20 = "[";
189
+ const peg$c21 = "]";
190
+ const peg$c22 = "\\";
191
+ const peg$c23 = "\"integer\"";
192
+ const peg$c24 = "'integer'";
193
+ const peg$c25 = "\"boolean\"";
194
+ const peg$c26 = "'boolean'";
195
+ const peg$c27 = "\"port\"";
196
+ const peg$c28 = "'port'";
197
+ const peg$c29 = "\"url\"";
198
+ const peg$c30 = "'url'";
199
+ const peg$c31 = "\"email\"";
200
+ const peg$c32 = "'email'";
201
+ const peg$c33 = "\"ip\"";
202
+ const peg$c34 = "'ip'";
203
+ const peg$c35 = "true";
204
+ const peg$c36 = "{";
205
+ const peg$c37 = "domain";
206
+ const peg$c38 = "}";
207
+ const peg$c39 = "false";
208
+ const peg$c40 = "#";
209
+ const peg$c41 = "\r\n";
206
210
 
207
211
  const peg$r0 = /^[ \t]/;
208
212
  const peg$r1 = /^[^"\r\n\0]/;
@@ -223,77 +227,87 @@ function peg$parse(input, options) {
223
227
  const peg$e2 = peg$literalExpectation("do", false);
224
228
  const peg$e3 = peg$literalExpectation("end", false);
225
229
  const peg$e4 = peg$anyExpectation();
226
- const peg$e5 = peg$otherExpectation("a quoted filename");
227
- const peg$e6 = peg$literalExpectation("\"", false);
228
- const peg$e7 = peg$classExpectation(["\"", "\r", "\n", "\0"], true, false, false);
229
- const peg$e8 = peg$literalExpectation("'", false);
230
- const peg$e9 = peg$classExpectation(["'", "\r", "\n", "\0"], true, false, false);
231
- const peg$e10 = peg$literalExpectation("encrypted", false);
230
+ const peg$e5 = peg$literalExpectation("strict", false);
231
+ const peg$e6 = peg$otherExpectation("a quoted filename");
232
+ const peg$e7 = peg$literalExpectation("\"", false);
233
+ const peg$e8 = peg$classExpectation(["\"", "\r", "\n", "\0"], true, false, false);
234
+ const peg$e9 = peg$literalExpectation("'", false);
235
+ const peg$e10 = peg$classExpectation(["'", "\r", "\n", "\0"], true, false, false);
232
236
  const peg$e11 = peg$literalExpectation("env", false);
233
237
  const peg$e12 = peg$literalExpectation(",", false);
234
238
  const peg$e13 = peg$literalExpectation("proxy", false);
235
239
  const peg$e14 = peg$literalExpectation(":", false);
236
240
  const peg$e15 = peg$literalExpectation("required", false);
237
241
  const peg$e16 = peg$literalExpectation("optional", false);
238
- const peg$e17 = peg$literalExpectation("type", false);
239
- const peg$e18 = peg$literalExpectation("enum", false);
240
- const peg$e19 = peg$literalExpectation("min", false);
241
- const peg$e20 = peg$literalExpectation("max", false);
242
- const peg$e21 = peg$otherExpectation("an integer");
243
- const peg$e22 = peg$classExpectation(["+", "-"], false, false, false);
244
- const peg$e23 = peg$classExpectation([["0", "9"]], false, false, false);
245
- const peg$e24 = peg$literalExpectation("[", false);
246
- const peg$e25 = peg$literalExpectation("]", false);
247
- const peg$e26 = peg$classExpectation(["\"", "\\", "\r", "\n"], true, false, false);
248
- const peg$e27 = peg$classExpectation(["'", "\\", "\r", "\n"], true, false, false);
249
- const peg$e28 = peg$literalExpectation("\\", false);
250
- const peg$e29 = peg$classExpectation(["\"", "'", "\\", "n", "r", "t"], false, false, false);
251
- const peg$e30 = peg$otherExpectation("a supported type (integer, boolean, port, url, email, or ip)");
252
- const peg$e31 = peg$literalExpectation("\"integer\"", false);
253
- const peg$e32 = peg$literalExpectation("'integer'", false);
254
- const peg$e33 = peg$literalExpectation("\"boolean\"", false);
255
- const peg$e34 = peg$literalExpectation("'boolean'", false);
256
- const peg$e35 = peg$literalExpectation("\"port\"", false);
257
- const peg$e36 = peg$literalExpectation("'port'", false);
258
- const peg$e37 = peg$literalExpectation("\"url\"", false);
259
- const peg$e38 = peg$literalExpectation("'url'", false);
260
- const peg$e39 = peg$literalExpectation("\"email\"", false);
261
- const peg$e40 = peg$literalExpectation("'email'", false);
262
- const peg$e41 = peg$literalExpectation("\"ip\"", false);
263
- const peg$e42 = peg$literalExpectation("'ip'", false);
264
- const peg$e43 = peg$otherExpectation("true or false");
265
- const peg$e44 = peg$literalExpectation("true", false);
266
- const peg$e45 = peg$literalExpectation("{", false);
267
- const peg$e46 = peg$literalExpectation("domain", false);
268
- const peg$e47 = peg$literalExpectation("}", false);
269
- const peg$e48 = peg$literalExpectation("false", false);
270
- const peg$e49 = peg$otherExpectation("a quoted domain");
271
- const peg$e50 = peg$classExpectation([["A", "Z"], ["a", "z"], ["0", "9"], ".", "-"], false, false, false);
272
- const peg$e51 = peg$otherExpectation("a quoted variable name");
273
- const peg$e52 = peg$classExpectation([["A", "Z"], ["a", "z"], "_"], false, false, false);
274
- const peg$e53 = peg$classExpectation([["A", "Z"], ["a", "z"], ["0", "9"], "_"], false, false, false);
275
- const peg$e54 = peg$literalExpectation("#", false);
276
- const peg$e55 = peg$classExpectation(["\r", "\n"], true, false, false);
277
- const peg$e56 = peg$literalExpectation("\r\n", false);
278
- const peg$e57 = peg$classExpectation(["\n", "\r"], false, false, false);
279
-
280
- function peg$f0(encrypted, entries) {
281
- return { encrypted: encrypted === true, declarations: entries.map(item => item[0]).filter(item => !item.file), files: entries.map(item => item[0]).filter(item => item.file) };
242
+ const peg$e17 = peg$literalExpectation("redacted", false);
243
+ const peg$e18 = peg$literalExpectation("redact", false);
244
+ const peg$e19 = peg$literalExpectation("encrypted", false);
245
+ const peg$e20 = peg$literalExpectation("encrypt", false);
246
+ const peg$e21 = peg$literalExpectation("type", false);
247
+ const peg$e22 = peg$literalExpectation("enum", false);
248
+ const peg$e23 = peg$literalExpectation("min", false);
249
+ const peg$e24 = peg$literalExpectation("max", false);
250
+ const peg$e25 = peg$otherExpectation("an integer");
251
+ const peg$e26 = peg$classExpectation(["+", "-"], false, false, false);
252
+ const peg$e27 = peg$classExpectation([["0", "9"]], false, false, false);
253
+ const peg$e28 = peg$literalExpectation("[", false);
254
+ const peg$e29 = peg$literalExpectation("]", false);
255
+ const peg$e30 = peg$classExpectation(["\"", "\\", "\r", "\n"], true, false, false);
256
+ const peg$e31 = peg$classExpectation(["'", "\\", "\r", "\n"], true, false, false);
257
+ const peg$e32 = peg$literalExpectation("\\", false);
258
+ const peg$e33 = peg$classExpectation(["\"", "'", "\\", "n", "r", "t"], false, false, false);
259
+ const peg$e34 = peg$otherExpectation("a supported type (integer, boolean, port, url, email, or ip)");
260
+ const peg$e35 = peg$literalExpectation("\"integer\"", false);
261
+ const peg$e36 = peg$literalExpectation("'integer'", false);
262
+ const peg$e37 = peg$literalExpectation("\"boolean\"", false);
263
+ const peg$e38 = peg$literalExpectation("'boolean'", false);
264
+ const peg$e39 = peg$literalExpectation("\"port\"", false);
265
+ const peg$e40 = peg$literalExpectation("'port'", false);
266
+ const peg$e41 = peg$literalExpectation("\"url\"", false);
267
+ const peg$e42 = peg$literalExpectation("'url'", false);
268
+ const peg$e43 = peg$literalExpectation("\"email\"", false);
269
+ const peg$e44 = peg$literalExpectation("'email'", false);
270
+ const peg$e45 = peg$literalExpectation("\"ip\"", false);
271
+ const peg$e46 = peg$literalExpectation("'ip'", false);
272
+ const peg$e47 = peg$otherExpectation("true or false");
273
+ const peg$e48 = peg$literalExpectation("true", false);
274
+ const peg$e49 = peg$literalExpectation("{", false);
275
+ const peg$e50 = peg$literalExpectation("domain", false);
276
+ const peg$e51 = peg$literalExpectation("}", false);
277
+ const peg$e52 = peg$literalExpectation("false", false);
278
+ const peg$e53 = peg$otherExpectation("a quoted domain");
279
+ const peg$e54 = peg$classExpectation([["A", "Z"], ["a", "z"], ["0", "9"], ".", "-"], false, false, false);
280
+ const peg$e55 = peg$otherExpectation("a quoted variable name");
281
+ const peg$e56 = peg$classExpectation([["A", "Z"], ["a", "z"], "_"], false, false, false);
282
+ const peg$e57 = peg$classExpectation([["A", "Z"], ["a", "z"], ["0", "9"], "_"], false, false, false);
283
+ const peg$e58 = peg$literalExpectation("#", false);
284
+ const peg$e59 = peg$classExpectation(["\r", "\n"], true, false, false);
285
+ const peg$e60 = peg$literalExpectation("\r\n", false);
286
+ const peg$e61 = peg$classExpectation(["\n", "\r"], false, false, false);
287
+
288
+ function peg$f0(entries) {
289
+ const items = entries.map(item => item[0]);
290
+ const settings = items.filter(item => item.strict !== undefined && !item.file);
291
+ if (settings.length > 1) error("Duplicate Envspec setting: strict");
292
+ return { ...settings[0], declarations: items.filter(item => item.name), files: items.filter(item => item.file) };
282
293
  }
283
- function peg$f1(file, encrypted, declarations) {
284
- return { file, encrypted, declarations: declarations.map(item => item[0]) };
294
+ function peg$f1(file, entries) {
295
+ const items = entries.map(item => item[0]);
296
+ const settings = items.filter(item => item.strict !== undefined);
297
+ if (settings.length > 1) error("Duplicate Envspec setting: strict");
298
+ return { file, ...settings[0], declarations: items.filter(item => item.name) };
285
299
  }
286
- function peg$f2(value) { return value; }
300
+ function peg$f2(value) { return { strict: value }; }
287
301
  function peg$f3(value) { return value; }
288
302
  function peg$f4(value) { return value; }
289
303
  function peg$f5(name, options) {
290
304
  const declaration = { name };
291
305
  const seen = new Set();
292
306
  for (const option of options) {
293
- if (seen.has(option.key)) error(`Duplicate Envfile option: ${option.key}`);
307
+ if (seen.has(option.key)) error(`Duplicate Envspec option: ${option.key}`);
294
308
  if ((option.key === "optional" && seen.has("required")) ||
295
309
  (option.key === "required" && seen.has("optional"))) {
296
- error("Cannot combine required and optional in an Envfile declaration");
310
+ error("Cannot combine required and optional in an Envspec declaration");
297
311
  }
298
312
  seen.add(option.key);
299
313
  if (option.key === "optional") declaration.required = !option.value;
@@ -304,33 +318,34 @@ function peg$parse(input, options) {
304
318
  function peg$f6(value) { return { key: "proxy", value }; }
305
319
  function peg$f7(value) { return { key: "required", value }; }
306
320
  function peg$f8(value) { return { key: "optional", value }; }
307
- function peg$f9(value) { return { key: "encrypted", value }; }
308
- function peg$f10(value) { return { key: "type", value }; }
309
- function peg$f11(value) { return { key: "enum", value }; }
310
- function peg$f12(key, value) { return { key, value }; }
311
- function peg$f13(value) { return value; }
312
- function peg$f14(first, value) { return value; }
313
- function peg$f15(first, rest) {
321
+ function peg$f9(value) { return { key: "redacted", value }; }
322
+ function peg$f10(value) { return { key: "encrypted", value }; }
323
+ function peg$f11(value) { return { key: "type", value }; }
324
+ function peg$f12(value) { return { key: "enum", value }; }
325
+ function peg$f13(key, value) { return { key, value }; }
326
+ function peg$f14(value) { return value; }
327
+ function peg$f15(first, value) { return value; }
328
+ function peg$f16(first, rest) {
314
329
  return [first, ...rest];
315
330
  }
316
- function peg$f16(chars) { return chars.join(""); }
317
331
  function peg$f17(chars) { return chars.join(""); }
318
- function peg$f18(char) {
332
+ function peg$f18(chars) { return chars.join(""); }
333
+ function peg$f19(char) {
319
334
  return ({ n: "\n", r: "\r", t: "\t" })[char] || char;
320
335
  }
321
- function peg$f19() { return "integer"; }
322
- function peg$f20() { return "boolean"; }
323
- function peg$f21() { return "port"; }
324
- function peg$f22() { return "url"; }
325
- function peg$f23() { return "email"; }
326
- function peg$f24() { return "ip"; }
327
- function peg$f25() { return true; }
328
- function peg$f26(domain) { return { domain }; }
329
- function peg$f27() { return false; }
330
- function peg$f28(host) { return host; }
336
+ function peg$f20() { return "integer"; }
337
+ function peg$f21() { return "boolean"; }
338
+ function peg$f22() { return "port"; }
339
+ function peg$f23() { return "url"; }
340
+ function peg$f24() { return "email"; }
341
+ function peg$f25() { return "ip"; }
342
+ function peg$f26() { return true; }
343
+ function peg$f27(domain) { return { domain }; }
344
+ function peg$f28() { return false; }
331
345
  function peg$f29(host) { return host; }
332
- function peg$f30(name) { return name; }
346
+ function peg$f30(host) { return host; }
333
347
  function peg$f31(name) { return name; }
348
+ function peg$f32(name) { return name; }
334
349
  let peg$currPos = options.peg$currPos | 0;
335
350
  let peg$savedPos = peg$currPos;
336
351
  const peg$posDetailsCache = [{ line: 1, column: 1 }];
@@ -502,53 +517,54 @@ function peg$parse(input, options) {
502
517
  }
503
518
 
504
519
  function peg$parseDocument() {
505
- let s0, s1, s2, s3, s4, s5, s6, s7;
520
+ let s0, s1, s2, s3, s4, s5;
506
521
 
507
522
  s0 = peg$currPos;
508
523
  s1 = peg$parse_();
509
- s2 = peg$parseEncryptedDefault();
510
- if (s2 === peg$FAILED) {
511
- s2 = null;
524
+ s2 = [];
525
+ s3 = peg$currPos;
526
+ s4 = peg$parseFileBlock();
527
+ if (s4 === peg$FAILED) {
528
+ s4 = peg$parseDeclaration();
529
+ if (s4 === peg$FAILED) {
530
+ s4 = peg$parseStrict();
531
+ }
512
532
  }
513
- s3 = peg$parse_();
514
- s4 = [];
515
- s5 = peg$currPos;
516
- s6 = peg$parseFileBlock();
517
- if (s6 === peg$FAILED) {
518
- s6 = peg$parseDeclaration();
519
- }
520
- if (s6 !== peg$FAILED) {
521
- s7 = peg$parse_();
522
- s6 = [s6, s7];
523
- s5 = s6;
533
+ if (s4 !== peg$FAILED) {
534
+ s5 = peg$parse_();
535
+ s4 = [s4, s5];
536
+ s3 = s4;
524
537
  } else {
525
- peg$currPos = s5;
526
- s5 = peg$FAILED;
538
+ peg$currPos = s3;
539
+ s3 = peg$FAILED;
527
540
  }
528
- while (s5 !== peg$FAILED) {
529
- s4.push(s5);
530
- s5 = peg$currPos;
531
- s6 = peg$parseFileBlock();
532
- if (s6 === peg$FAILED) {
533
- s6 = peg$parseDeclaration();
541
+ while (s3 !== peg$FAILED) {
542
+ s2.push(s3);
543
+ s3 = peg$currPos;
544
+ s4 = peg$parseFileBlock();
545
+ if (s4 === peg$FAILED) {
546
+ s4 = peg$parseDeclaration();
547
+ if (s4 === peg$FAILED) {
548
+ s4 = peg$parseStrict();
549
+ }
534
550
  }
535
- if (s6 !== peg$FAILED) {
536
- s7 = peg$parse_();
537
- s6 = [s6, s7];
538
- s5 = s6;
551
+ if (s4 !== peg$FAILED) {
552
+ s5 = peg$parse_();
553
+ s4 = [s4, s5];
554
+ s3 = s4;
539
555
  } else {
540
- peg$currPos = s5;
541
- s5 = peg$FAILED;
556
+ peg$currPos = s3;
557
+ s3 = peg$FAILED;
542
558
  }
543
559
  }
544
560
  peg$savedPos = s0;
545
- s0 = peg$f0(s2, s4);
561
+ s0 = peg$f0(s2);
546
562
 
547
563
  return s0;
548
564
  }
549
565
 
550
566
  function peg$parseFileBlock() {
551
- let s0, s1, s2, s3, s4, s5, s6, s7, s8, s9, s10, s11, s12, s13, s14, s15, s16, s17;
567
+ let s0, s1, s2, s3, s4, s5, s6, s7, s8, s9, s10, s11, s12, s13, s14, s15;
552
568
 
553
569
  s0 = peg$currPos;
554
570
  if (input.substr(peg$currPos, 4) === peg$c0) {
@@ -640,87 +656,88 @@ function peg$parse(input, options) {
640
656
  s8 = peg$parseNewline();
641
657
  if (s8 !== peg$FAILED) {
642
658
  s9 = peg$parse_();
643
- s10 = peg$parseEncryptedDefault();
644
- if (s10 === peg$FAILED) {
645
- s10 = null;
659
+ s10 = [];
660
+ s11 = peg$currPos;
661
+ s12 = peg$parseDeclaration();
662
+ if (s12 === peg$FAILED) {
663
+ s12 = peg$parseStrict();
646
664
  }
647
- s11 = peg$parse_();
648
- s12 = [];
649
- s13 = peg$currPos;
650
- s14 = peg$parseDeclaration();
651
- if (s14 !== peg$FAILED) {
652
- s15 = peg$parse_();
653
- s14 = [s14, s15];
654
- s13 = s14;
665
+ if (s12 !== peg$FAILED) {
666
+ s13 = peg$parse_();
667
+ s12 = [s12, s13];
668
+ s11 = s12;
655
669
  } else {
656
- peg$currPos = s13;
657
- s13 = peg$FAILED;
670
+ peg$currPos = s11;
671
+ s11 = peg$FAILED;
658
672
  }
659
- while (s13 !== peg$FAILED) {
660
- s12.push(s13);
661
- s13 = peg$currPos;
662
- s14 = peg$parseDeclaration();
663
- if (s14 !== peg$FAILED) {
664
- s15 = peg$parse_();
665
- s14 = [s14, s15];
666
- s13 = s14;
673
+ while (s11 !== peg$FAILED) {
674
+ s10.push(s11);
675
+ s11 = peg$currPos;
676
+ s12 = peg$parseDeclaration();
677
+ if (s12 === peg$FAILED) {
678
+ s12 = peg$parseStrict();
679
+ }
680
+ if (s12 !== peg$FAILED) {
681
+ s13 = peg$parse_();
682
+ s12 = [s12, s13];
683
+ s11 = s12;
667
684
  } else {
668
- peg$currPos = s13;
669
- s13 = peg$FAILED;
685
+ peg$currPos = s11;
686
+ s11 = peg$FAILED;
670
687
  }
671
688
  }
672
689
  if (input.substr(peg$currPos, 3) === peg$c2) {
673
- s13 = peg$c2;
690
+ s11 = peg$c2;
674
691
  peg$currPos += 3;
675
692
  } else {
676
- s13 = peg$FAILED;
693
+ s11 = peg$FAILED;
677
694
  if (peg$silentFails === 0) { peg$fail(peg$e3); }
678
695
  }
679
- if (s13 !== peg$FAILED) {
680
- s14 = [];
681
- s15 = input.charAt(peg$currPos);
682
- if (peg$r0.test(s15)) {
696
+ if (s11 !== peg$FAILED) {
697
+ s12 = [];
698
+ s13 = input.charAt(peg$currPos);
699
+ if (peg$r0.test(s13)) {
683
700
  peg$currPos++;
684
701
  } else {
685
- s15 = peg$FAILED;
702
+ s13 = peg$FAILED;
686
703
  if (peg$silentFails === 0) { peg$fail(peg$e1); }
687
704
  }
688
- while (s15 !== peg$FAILED) {
689
- s14.push(s15);
690
- s15 = input.charAt(peg$currPos);
691
- if (peg$r0.test(s15)) {
705
+ while (s13 !== peg$FAILED) {
706
+ s12.push(s13);
707
+ s13 = input.charAt(peg$currPos);
708
+ if (peg$r0.test(s13)) {
692
709
  peg$currPos++;
693
710
  } else {
694
- s15 = peg$FAILED;
711
+ s13 = peg$FAILED;
695
712
  if (peg$silentFails === 0) { peg$fail(peg$e1); }
696
713
  }
697
714
  }
698
- s15 = peg$parseComment();
699
- if (s15 === peg$FAILED) {
700
- s15 = null;
715
+ s13 = peg$parseComment();
716
+ if (s13 === peg$FAILED) {
717
+ s13 = null;
701
718
  }
702
- s16 = peg$parseNewline();
703
- if (s16 === peg$FAILED) {
704
- s16 = peg$currPos;
719
+ s14 = peg$parseNewline();
720
+ if (s14 === peg$FAILED) {
721
+ s14 = peg$currPos;
705
722
  peg$silentFails++;
706
723
  if (input.length > peg$currPos) {
707
- s17 = input.charAt(peg$currPos);
724
+ s15 = input.charAt(peg$currPos);
708
725
  peg$currPos++;
709
726
  } else {
710
- s17 = peg$FAILED;
727
+ s15 = peg$FAILED;
711
728
  if (peg$silentFails === 0) { peg$fail(peg$e4); }
712
729
  }
713
730
  peg$silentFails--;
714
- if (s17 === peg$FAILED) {
715
- s16 = undefined;
731
+ if (s15 === peg$FAILED) {
732
+ s14 = undefined;
716
733
  } else {
717
- peg$currPos = s16;
718
- s16 = peg$FAILED;
734
+ peg$currPos = s14;
735
+ s14 = peg$FAILED;
719
736
  }
720
737
  }
721
- if (s16 !== peg$FAILED) {
738
+ if (s14 !== peg$FAILED) {
722
739
  peg$savedPos = s0;
723
- s0 = peg$f1(s3, s10, s12);
740
+ s0 = peg$f1(s3, s10);
724
741
  } else {
725
742
  peg$currPos = s0;
726
743
  s0 = peg$FAILED;
@@ -757,17 +774,118 @@ function peg$parse(input, options) {
757
774
  return s0;
758
775
  }
759
776
 
777
+ function peg$parseStrict() {
778
+ let s0, s1, s2, s3, s4, s5, s6, s7;
779
+
780
+ s0 = peg$currPos;
781
+ if (input.substr(peg$currPos, 6) === peg$c3) {
782
+ s1 = peg$c3;
783
+ peg$currPos += 6;
784
+ } else {
785
+ s1 = peg$FAILED;
786
+ if (peg$silentFails === 0) { peg$fail(peg$e5); }
787
+ }
788
+ if (s1 !== peg$FAILED) {
789
+ s2 = [];
790
+ s3 = input.charAt(peg$currPos);
791
+ if (peg$r0.test(s3)) {
792
+ peg$currPos++;
793
+ } else {
794
+ s3 = peg$FAILED;
795
+ if (peg$silentFails === 0) { peg$fail(peg$e1); }
796
+ }
797
+ if (s3 !== peg$FAILED) {
798
+ while (s3 !== peg$FAILED) {
799
+ s2.push(s3);
800
+ s3 = input.charAt(peg$currPos);
801
+ if (peg$r0.test(s3)) {
802
+ peg$currPos++;
803
+ } else {
804
+ s3 = peg$FAILED;
805
+ if (peg$silentFails === 0) { peg$fail(peg$e1); }
806
+ }
807
+ }
808
+ } else {
809
+ s2 = peg$FAILED;
810
+ }
811
+ if (s2 !== peg$FAILED) {
812
+ s3 = peg$parseBoolean();
813
+ if (s3 !== peg$FAILED) {
814
+ s4 = [];
815
+ s5 = input.charAt(peg$currPos);
816
+ if (peg$r0.test(s5)) {
817
+ peg$currPos++;
818
+ } else {
819
+ s5 = peg$FAILED;
820
+ if (peg$silentFails === 0) { peg$fail(peg$e1); }
821
+ }
822
+ while (s5 !== peg$FAILED) {
823
+ s4.push(s5);
824
+ s5 = input.charAt(peg$currPos);
825
+ if (peg$r0.test(s5)) {
826
+ peg$currPos++;
827
+ } else {
828
+ s5 = peg$FAILED;
829
+ if (peg$silentFails === 0) { peg$fail(peg$e1); }
830
+ }
831
+ }
832
+ s5 = peg$parseComment();
833
+ if (s5 === peg$FAILED) {
834
+ s5 = null;
835
+ }
836
+ s6 = peg$parseNewline();
837
+ if (s6 === peg$FAILED) {
838
+ s6 = peg$currPos;
839
+ peg$silentFails++;
840
+ if (input.length > peg$currPos) {
841
+ s7 = input.charAt(peg$currPos);
842
+ peg$currPos++;
843
+ } else {
844
+ s7 = peg$FAILED;
845
+ if (peg$silentFails === 0) { peg$fail(peg$e4); }
846
+ }
847
+ peg$silentFails--;
848
+ if (s7 === peg$FAILED) {
849
+ s6 = undefined;
850
+ } else {
851
+ peg$currPos = s6;
852
+ s6 = peg$FAILED;
853
+ }
854
+ }
855
+ if (s6 !== peg$FAILED) {
856
+ peg$savedPos = s0;
857
+ s0 = peg$f2(s3);
858
+ } else {
859
+ peg$currPos = s0;
860
+ s0 = peg$FAILED;
861
+ }
862
+ } else {
863
+ peg$currPos = s0;
864
+ s0 = peg$FAILED;
865
+ }
866
+ } else {
867
+ peg$currPos = s0;
868
+ s0 = peg$FAILED;
869
+ }
870
+ } else {
871
+ peg$currPos = s0;
872
+ s0 = peg$FAILED;
873
+ }
874
+
875
+ return s0;
876
+ }
877
+
760
878
  function peg$parseFilename() {
761
879
  let s0, s1, s2, s3, s4;
762
880
 
763
881
  peg$silentFails++;
764
882
  s0 = peg$currPos;
765
883
  if (input.charCodeAt(peg$currPos) === 34) {
766
- s1 = peg$c3;
884
+ s1 = peg$c4;
767
885
  peg$currPos++;
768
886
  } else {
769
887
  s1 = peg$FAILED;
770
- if (peg$silentFails === 0) { peg$fail(peg$e6); }
888
+ if (peg$silentFails === 0) { peg$fail(peg$e7); }
771
889
  }
772
890
  if (s1 !== peg$FAILED) {
773
891
  s2 = peg$currPos;
@@ -777,7 +895,7 @@ function peg$parse(input, options) {
777
895
  peg$currPos++;
778
896
  } else {
779
897
  s4 = peg$FAILED;
780
- if (peg$silentFails === 0) { peg$fail(peg$e7); }
898
+ if (peg$silentFails === 0) { peg$fail(peg$e8); }
781
899
  }
782
900
  if (s4 !== peg$FAILED) {
783
901
  while (s4 !== peg$FAILED) {
@@ -787,7 +905,7 @@ function peg$parse(input, options) {
787
905
  peg$currPos++;
788
906
  } else {
789
907
  s4 = peg$FAILED;
790
- if (peg$silentFails === 0) { peg$fail(peg$e7); }
908
+ if (peg$silentFails === 0) { peg$fail(peg$e8); }
791
909
  }
792
910
  }
793
911
  } else {
@@ -800,15 +918,15 @@ function peg$parse(input, options) {
800
918
  }
801
919
  if (s2 !== peg$FAILED) {
802
920
  if (input.charCodeAt(peg$currPos) === 34) {
803
- s3 = peg$c3;
921
+ s3 = peg$c4;
804
922
  peg$currPos++;
805
923
  } else {
806
924
  s3 = peg$FAILED;
807
- if (peg$silentFails === 0) { peg$fail(peg$e6); }
925
+ if (peg$silentFails === 0) { peg$fail(peg$e7); }
808
926
  }
809
927
  if (s3 !== peg$FAILED) {
810
928
  peg$savedPos = s0;
811
- s0 = peg$f2(s2);
929
+ s0 = peg$f3(s2);
812
930
  } else {
813
931
  peg$currPos = s0;
814
932
  s0 = peg$FAILED;
@@ -824,11 +942,11 @@ function peg$parse(input, options) {
824
942
  if (s0 === peg$FAILED) {
825
943
  s0 = peg$currPos;
826
944
  if (input.charCodeAt(peg$currPos) === 39) {
827
- s1 = peg$c4;
945
+ s1 = peg$c5;
828
946
  peg$currPos++;
829
947
  } else {
830
948
  s1 = peg$FAILED;
831
- if (peg$silentFails === 0) { peg$fail(peg$e8); }
949
+ if (peg$silentFails === 0) { peg$fail(peg$e9); }
832
950
  }
833
951
  if (s1 !== peg$FAILED) {
834
952
  s2 = peg$currPos;
@@ -838,7 +956,7 @@ function peg$parse(input, options) {
838
956
  peg$currPos++;
839
957
  } else {
840
958
  s4 = peg$FAILED;
841
- if (peg$silentFails === 0) { peg$fail(peg$e9); }
959
+ if (peg$silentFails === 0) { peg$fail(peg$e10); }
842
960
  }
843
961
  if (s4 !== peg$FAILED) {
844
962
  while (s4 !== peg$FAILED) {
@@ -848,7 +966,7 @@ function peg$parse(input, options) {
848
966
  peg$currPos++;
849
967
  } else {
850
968
  s4 = peg$FAILED;
851
- if (peg$silentFails === 0) { peg$fail(peg$e9); }
969
+ if (peg$silentFails === 0) { peg$fail(peg$e10); }
852
970
  }
853
971
  }
854
972
  } else {
@@ -861,15 +979,15 @@ function peg$parse(input, options) {
861
979
  }
862
980
  if (s2 !== peg$FAILED) {
863
981
  if (input.charCodeAt(peg$currPos) === 39) {
864
- s3 = peg$c4;
982
+ s3 = peg$c5;
865
983
  peg$currPos++;
866
984
  } else {
867
985
  s3 = peg$FAILED;
868
- if (peg$silentFails === 0) { peg$fail(peg$e8); }
986
+ if (peg$silentFails === 0) { peg$fail(peg$e9); }
869
987
  }
870
988
  if (s3 !== peg$FAILED) {
871
989
  peg$savedPos = s0;
872
- s0 = peg$f3(s2);
990
+ s0 = peg$f4(s2);
873
991
  } else {
874
992
  peg$currPos = s0;
875
993
  s0 = peg$FAILED;
@@ -886,108 +1004,7 @@ function peg$parse(input, options) {
886
1004
  peg$silentFails--;
887
1005
  if (s0 === peg$FAILED) {
888
1006
  s1 = peg$FAILED;
889
- if (peg$silentFails === 0) { peg$fail(peg$e5); }
890
- }
891
-
892
- return s0;
893
- }
894
-
895
- function peg$parseEncryptedDefault() {
896
- let s0, s1, s2, s3, s4, s5, s6, s7;
897
-
898
- s0 = peg$currPos;
899
- if (input.substr(peg$currPos, 9) === peg$c5) {
900
- s1 = peg$c5;
901
- peg$currPos += 9;
902
- } else {
903
- s1 = peg$FAILED;
904
- if (peg$silentFails === 0) { peg$fail(peg$e10); }
905
- }
906
- if (s1 !== peg$FAILED) {
907
- s2 = [];
908
- s3 = input.charAt(peg$currPos);
909
- if (peg$r0.test(s3)) {
910
- peg$currPos++;
911
- } else {
912
- s3 = peg$FAILED;
913
- if (peg$silentFails === 0) { peg$fail(peg$e1); }
914
- }
915
- if (s3 !== peg$FAILED) {
916
- while (s3 !== peg$FAILED) {
917
- s2.push(s3);
918
- s3 = input.charAt(peg$currPos);
919
- if (peg$r0.test(s3)) {
920
- peg$currPos++;
921
- } else {
922
- s3 = peg$FAILED;
923
- if (peg$silentFails === 0) { peg$fail(peg$e1); }
924
- }
925
- }
926
- } else {
927
- s2 = peg$FAILED;
928
- }
929
- if (s2 !== peg$FAILED) {
930
- s3 = peg$parseBoolean();
931
- if (s3 !== peg$FAILED) {
932
- s4 = [];
933
- s5 = input.charAt(peg$currPos);
934
- if (peg$r0.test(s5)) {
935
- peg$currPos++;
936
- } else {
937
- s5 = peg$FAILED;
938
- if (peg$silentFails === 0) { peg$fail(peg$e1); }
939
- }
940
- while (s5 !== peg$FAILED) {
941
- s4.push(s5);
942
- s5 = input.charAt(peg$currPos);
943
- if (peg$r0.test(s5)) {
944
- peg$currPos++;
945
- } else {
946
- s5 = peg$FAILED;
947
- if (peg$silentFails === 0) { peg$fail(peg$e1); }
948
- }
949
- }
950
- s5 = peg$parseComment();
951
- if (s5 === peg$FAILED) {
952
- s5 = null;
953
- }
954
- s6 = peg$parseNewline();
955
- if (s6 === peg$FAILED) {
956
- s6 = peg$currPos;
957
- peg$silentFails++;
958
- if (input.length > peg$currPos) {
959
- s7 = input.charAt(peg$currPos);
960
- peg$currPos++;
961
- } else {
962
- s7 = peg$FAILED;
963
- if (peg$silentFails === 0) { peg$fail(peg$e4); }
964
- }
965
- peg$silentFails--;
966
- if (s7 === peg$FAILED) {
967
- s6 = undefined;
968
- } else {
969
- peg$currPos = s6;
970
- s6 = peg$FAILED;
971
- }
972
- }
973
- if (s6 !== peg$FAILED) {
974
- peg$savedPos = s0;
975
- s0 = peg$f4(s3);
976
- } else {
977
- peg$currPos = s0;
978
- s0 = peg$FAILED;
979
- }
980
- } else {
981
- peg$currPos = s0;
982
- s0 = peg$FAILED;
983
- }
984
- } else {
985
- peg$currPos = s0;
986
- s0 = peg$FAILED;
987
- }
988
- } else {
989
- peg$currPos = s0;
990
- s0 = peg$FAILED;
1007
+ if (peg$silentFails === 0) { peg$fail(peg$e6); }
991
1008
  }
992
1009
 
993
1010
  return s0;
@@ -1386,12 +1403,21 @@ function peg$parse(input, options) {
1386
1403
  }
1387
1404
  if (s2 !== peg$FAILED) {
1388
1405
  s3 = peg$parse_();
1389
- if (input.substr(peg$currPos, 9) === peg$c5) {
1390
- s4 = peg$c5;
1391
- peg$currPos += 9;
1406
+ if (input.substr(peg$currPos, 8) === peg$c12) {
1407
+ s4 = peg$c12;
1408
+ peg$currPos += 8;
1392
1409
  } else {
1393
1410
  s4 = peg$FAILED;
1394
- if (peg$silentFails === 0) { peg$fail(peg$e10); }
1411
+ if (peg$silentFails === 0) { peg$fail(peg$e17); }
1412
+ }
1413
+ if (s4 === peg$FAILED) {
1414
+ if (input.substr(peg$currPos, 6) === peg$c13) {
1415
+ s4 = peg$c13;
1416
+ peg$currPos += 6;
1417
+ } else {
1418
+ s4 = peg$FAILED;
1419
+ if (peg$silentFails === 0) { peg$fail(peg$e18); }
1420
+ }
1395
1421
  }
1396
1422
  if (s4 !== peg$FAILED) {
1397
1423
  s5 = [];
@@ -1470,12 +1496,21 @@ function peg$parse(input, options) {
1470
1496
  }
1471
1497
  if (s2 !== peg$FAILED) {
1472
1498
  s3 = peg$parse_();
1473
- if (input.substr(peg$currPos, 4) === peg$c12) {
1474
- s4 = peg$c12;
1475
- peg$currPos += 4;
1499
+ if (input.substr(peg$currPos, 9) === peg$c14) {
1500
+ s4 = peg$c14;
1501
+ peg$currPos += 9;
1476
1502
  } else {
1477
1503
  s4 = peg$FAILED;
1478
- if (peg$silentFails === 0) { peg$fail(peg$e17); }
1504
+ if (peg$silentFails === 0) { peg$fail(peg$e19); }
1505
+ }
1506
+ if (s4 === peg$FAILED) {
1507
+ if (input.substr(peg$currPos, 7) === peg$c15) {
1508
+ s4 = peg$c15;
1509
+ peg$currPos += 7;
1510
+ } else {
1511
+ s4 = peg$FAILED;
1512
+ if (peg$silentFails === 0) { peg$fail(peg$e20); }
1513
+ }
1479
1514
  }
1480
1515
  if (s4 !== peg$FAILED) {
1481
1516
  s5 = [];
@@ -1505,7 +1540,7 @@ function peg$parse(input, options) {
1505
1540
  }
1506
1541
  if (s6 !== peg$FAILED) {
1507
1542
  s7 = peg$parse_();
1508
- s8 = peg$parseType();
1543
+ s8 = peg$parseBoolean();
1509
1544
  if (s8 !== peg$FAILED) {
1510
1545
  peg$savedPos = s0;
1511
1546
  s0 = peg$f10(s8);
@@ -1554,12 +1589,12 @@ function peg$parse(input, options) {
1554
1589
  }
1555
1590
  if (s2 !== peg$FAILED) {
1556
1591
  s3 = peg$parse_();
1557
- if (input.substr(peg$currPos, 4) === peg$c13) {
1558
- s4 = peg$c13;
1592
+ if (input.substr(peg$currPos, 4) === peg$c16) {
1593
+ s4 = peg$c16;
1559
1594
  peg$currPos += 4;
1560
1595
  } else {
1561
1596
  s4 = peg$FAILED;
1562
- if (peg$silentFails === 0) { peg$fail(peg$e18); }
1597
+ if (peg$silentFails === 0) { peg$fail(peg$e21); }
1563
1598
  }
1564
1599
  if (s4 !== peg$FAILED) {
1565
1600
  s5 = [];
@@ -1589,7 +1624,7 @@ function peg$parse(input, options) {
1589
1624
  }
1590
1625
  if (s6 !== peg$FAILED) {
1591
1626
  s7 = peg$parse_();
1592
- s8 = peg$parseEnum();
1627
+ s8 = peg$parseType();
1593
1628
  if (s8 !== peg$FAILED) {
1594
1629
  peg$savedPos = s0;
1595
1630
  s0 = peg$f11(s8);
@@ -1638,21 +1673,12 @@ function peg$parse(input, options) {
1638
1673
  }
1639
1674
  if (s2 !== peg$FAILED) {
1640
1675
  s3 = peg$parse_();
1641
- if (input.substr(peg$currPos, 3) === peg$c14) {
1642
- s4 = peg$c14;
1643
- peg$currPos += 3;
1676
+ if (input.substr(peg$currPos, 4) === peg$c17) {
1677
+ s4 = peg$c17;
1678
+ peg$currPos += 4;
1644
1679
  } else {
1645
1680
  s4 = peg$FAILED;
1646
- if (peg$silentFails === 0) { peg$fail(peg$e19); }
1647
- }
1648
- if (s4 === peg$FAILED) {
1649
- if (input.substr(peg$currPos, 3) === peg$c15) {
1650
- s4 = peg$c15;
1651
- peg$currPos += 3;
1652
- } else {
1653
- s4 = peg$FAILED;
1654
- if (peg$silentFails === 0) { peg$fail(peg$e20); }
1655
- }
1681
+ if (peg$silentFails === 0) { peg$fail(peg$e22); }
1656
1682
  }
1657
1683
  if (s4 !== peg$FAILED) {
1658
1684
  s5 = [];
@@ -1682,10 +1708,10 @@ function peg$parse(input, options) {
1682
1708
  }
1683
1709
  if (s6 !== peg$FAILED) {
1684
1710
  s7 = peg$parse_();
1685
- s8 = peg$parseInteger();
1711
+ s8 = peg$parseEnum();
1686
1712
  if (s8 !== peg$FAILED) {
1687
1713
  peg$savedPos = s0;
1688
- s0 = peg$f12(s4, s8);
1714
+ s0 = peg$f12(s8);
1689
1715
  } else {
1690
1716
  peg$currPos = s0;
1691
1717
  s0 = peg$FAILED;
@@ -1702,6 +1728,100 @@ function peg$parse(input, options) {
1702
1728
  peg$currPos = s0;
1703
1729
  s0 = peg$FAILED;
1704
1730
  }
1731
+ if (s0 === peg$FAILED) {
1732
+ s0 = peg$currPos;
1733
+ s1 = [];
1734
+ s2 = input.charAt(peg$currPos);
1735
+ if (peg$r0.test(s2)) {
1736
+ peg$currPos++;
1737
+ } else {
1738
+ s2 = peg$FAILED;
1739
+ if (peg$silentFails === 0) { peg$fail(peg$e1); }
1740
+ }
1741
+ while (s2 !== peg$FAILED) {
1742
+ s1.push(s2);
1743
+ s2 = input.charAt(peg$currPos);
1744
+ if (peg$r0.test(s2)) {
1745
+ peg$currPos++;
1746
+ } else {
1747
+ s2 = peg$FAILED;
1748
+ if (peg$silentFails === 0) { peg$fail(peg$e1); }
1749
+ }
1750
+ }
1751
+ if (input.charCodeAt(peg$currPos) === 44) {
1752
+ s2 = peg$c7;
1753
+ peg$currPos++;
1754
+ } else {
1755
+ s2 = peg$FAILED;
1756
+ if (peg$silentFails === 0) { peg$fail(peg$e12); }
1757
+ }
1758
+ if (s2 !== peg$FAILED) {
1759
+ s3 = peg$parse_();
1760
+ if (input.substr(peg$currPos, 3) === peg$c18) {
1761
+ s4 = peg$c18;
1762
+ peg$currPos += 3;
1763
+ } else {
1764
+ s4 = peg$FAILED;
1765
+ if (peg$silentFails === 0) { peg$fail(peg$e23); }
1766
+ }
1767
+ if (s4 === peg$FAILED) {
1768
+ if (input.substr(peg$currPos, 3) === peg$c19) {
1769
+ s4 = peg$c19;
1770
+ peg$currPos += 3;
1771
+ } else {
1772
+ s4 = peg$FAILED;
1773
+ if (peg$silentFails === 0) { peg$fail(peg$e24); }
1774
+ }
1775
+ }
1776
+ if (s4 !== peg$FAILED) {
1777
+ s5 = [];
1778
+ s6 = input.charAt(peg$currPos);
1779
+ if (peg$r0.test(s6)) {
1780
+ peg$currPos++;
1781
+ } else {
1782
+ s6 = peg$FAILED;
1783
+ if (peg$silentFails === 0) { peg$fail(peg$e1); }
1784
+ }
1785
+ while (s6 !== peg$FAILED) {
1786
+ s5.push(s6);
1787
+ s6 = input.charAt(peg$currPos);
1788
+ if (peg$r0.test(s6)) {
1789
+ peg$currPos++;
1790
+ } else {
1791
+ s6 = peg$FAILED;
1792
+ if (peg$silentFails === 0) { peg$fail(peg$e1); }
1793
+ }
1794
+ }
1795
+ if (input.charCodeAt(peg$currPos) === 58) {
1796
+ s6 = peg$c9;
1797
+ peg$currPos++;
1798
+ } else {
1799
+ s6 = peg$FAILED;
1800
+ if (peg$silentFails === 0) { peg$fail(peg$e14); }
1801
+ }
1802
+ if (s6 !== peg$FAILED) {
1803
+ s7 = peg$parse_();
1804
+ s8 = peg$parseInteger();
1805
+ if (s8 !== peg$FAILED) {
1806
+ peg$savedPos = s0;
1807
+ s0 = peg$f13(s4, s8);
1808
+ } else {
1809
+ peg$currPos = s0;
1810
+ s0 = peg$FAILED;
1811
+ }
1812
+ } else {
1813
+ peg$currPos = s0;
1814
+ s0 = peg$FAILED;
1815
+ }
1816
+ } else {
1817
+ peg$currPos = s0;
1818
+ s0 = peg$FAILED;
1819
+ }
1820
+ } else {
1821
+ peg$currPos = s0;
1822
+ s0 = peg$FAILED;
1823
+ }
1824
+ }
1705
1825
  }
1706
1826
  }
1707
1827
  }
@@ -1724,7 +1844,7 @@ function peg$parse(input, options) {
1724
1844
  peg$currPos++;
1725
1845
  } else {
1726
1846
  s3 = peg$FAILED;
1727
- if (peg$silentFails === 0) { peg$fail(peg$e22); }
1847
+ if (peg$silentFails === 0) { peg$fail(peg$e26); }
1728
1848
  }
1729
1849
  if (s3 === peg$FAILED) {
1730
1850
  s3 = null;
@@ -1735,7 +1855,7 @@ function peg$parse(input, options) {
1735
1855
  peg$currPos++;
1736
1856
  } else {
1737
1857
  s5 = peg$FAILED;
1738
- if (peg$silentFails === 0) { peg$fail(peg$e23); }
1858
+ if (peg$silentFails === 0) { peg$fail(peg$e27); }
1739
1859
  }
1740
1860
  if (s5 !== peg$FAILED) {
1741
1861
  while (s5 !== peg$FAILED) {
@@ -1745,7 +1865,7 @@ function peg$parse(input, options) {
1745
1865
  peg$currPos++;
1746
1866
  } else {
1747
1867
  s5 = peg$FAILED;
1748
- if (peg$silentFails === 0) { peg$fail(peg$e23); }
1868
+ if (peg$silentFails === 0) { peg$fail(peg$e27); }
1749
1869
  }
1750
1870
  }
1751
1871
  } else {
@@ -1765,13 +1885,13 @@ function peg$parse(input, options) {
1765
1885
  }
1766
1886
  if (s1 !== peg$FAILED) {
1767
1887
  peg$savedPos = s0;
1768
- s1 = peg$f13(s1);
1888
+ s1 = peg$f14(s1);
1769
1889
  }
1770
1890
  s0 = s1;
1771
1891
  peg$silentFails--;
1772
1892
  if (s0 === peg$FAILED) {
1773
1893
  s1 = peg$FAILED;
1774
- if (peg$silentFails === 0) { peg$fail(peg$e21); }
1894
+ if (peg$silentFails === 0) { peg$fail(peg$e25); }
1775
1895
  }
1776
1896
 
1777
1897
  return s0;
@@ -1782,11 +1902,11 @@ function peg$parse(input, options) {
1782
1902
 
1783
1903
  s0 = peg$currPos;
1784
1904
  if (input.charCodeAt(peg$currPos) === 91) {
1785
- s1 = peg$c16;
1905
+ s1 = peg$c20;
1786
1906
  peg$currPos++;
1787
1907
  } else {
1788
1908
  s1 = peg$FAILED;
1789
- if (peg$silentFails === 0) { peg$fail(peg$e24); }
1909
+ if (peg$silentFails === 0) { peg$fail(peg$e28); }
1790
1910
  }
1791
1911
  if (s1 !== peg$FAILED) {
1792
1912
  s2 = peg$parse_();
@@ -1807,7 +1927,7 @@ function peg$parse(input, options) {
1807
1927
  s9 = peg$parseEnumValue();
1808
1928
  if (s9 !== peg$FAILED) {
1809
1929
  peg$savedPos = s5;
1810
- s5 = peg$f14(s3, s9);
1930
+ s5 = peg$f15(s3, s9);
1811
1931
  } else {
1812
1932
  peg$currPos = s5;
1813
1933
  s5 = peg$FAILED;
@@ -1832,7 +1952,7 @@ function peg$parse(input, options) {
1832
1952
  s9 = peg$parseEnumValue();
1833
1953
  if (s9 !== peg$FAILED) {
1834
1954
  peg$savedPos = s5;
1835
- s5 = peg$f14(s3, s9);
1955
+ s5 = peg$f15(s3, s9);
1836
1956
  } else {
1837
1957
  peg$currPos = s5;
1838
1958
  s5 = peg$FAILED;
@@ -1855,15 +1975,15 @@ function peg$parse(input, options) {
1855
1975
  }
1856
1976
  s7 = peg$parse_();
1857
1977
  if (input.charCodeAt(peg$currPos) === 93) {
1858
- s8 = peg$c17;
1978
+ s8 = peg$c21;
1859
1979
  peg$currPos++;
1860
1980
  } else {
1861
1981
  s8 = peg$FAILED;
1862
- if (peg$silentFails === 0) { peg$fail(peg$e25); }
1982
+ if (peg$silentFails === 0) { peg$fail(peg$e29); }
1863
1983
  }
1864
1984
  if (s8 !== peg$FAILED) {
1865
1985
  peg$savedPos = s0;
1866
- s0 = peg$f15(s3, s4);
1986
+ s0 = peg$f16(s3, s4);
1867
1987
  } else {
1868
1988
  peg$currPos = s0;
1869
1989
  s0 = peg$FAILED;
@@ -1885,11 +2005,11 @@ function peg$parse(input, options) {
1885
2005
 
1886
2006
  s0 = peg$currPos;
1887
2007
  if (input.charCodeAt(peg$currPos) === 34) {
1888
- s1 = peg$c3;
2008
+ s1 = peg$c4;
1889
2009
  peg$currPos++;
1890
2010
  } else {
1891
2011
  s1 = peg$FAILED;
1892
- if (peg$silentFails === 0) { peg$fail(peg$e6); }
2012
+ if (peg$silentFails === 0) { peg$fail(peg$e7); }
1893
2013
  }
1894
2014
  if (s1 !== peg$FAILED) {
1895
2015
  s2 = [];
@@ -1900,7 +2020,7 @@ function peg$parse(input, options) {
1900
2020
  peg$currPos++;
1901
2021
  } else {
1902
2022
  s3 = peg$FAILED;
1903
- if (peg$silentFails === 0) { peg$fail(peg$e26); }
2023
+ if (peg$silentFails === 0) { peg$fail(peg$e30); }
1904
2024
  }
1905
2025
  }
1906
2026
  while (s3 !== peg$FAILED) {
@@ -1912,20 +2032,20 @@ function peg$parse(input, options) {
1912
2032
  peg$currPos++;
1913
2033
  } else {
1914
2034
  s3 = peg$FAILED;
1915
- if (peg$silentFails === 0) { peg$fail(peg$e26); }
2035
+ if (peg$silentFails === 0) { peg$fail(peg$e30); }
1916
2036
  }
1917
2037
  }
1918
2038
  }
1919
2039
  if (input.charCodeAt(peg$currPos) === 34) {
1920
- s3 = peg$c3;
2040
+ s3 = peg$c4;
1921
2041
  peg$currPos++;
1922
2042
  } else {
1923
2043
  s3 = peg$FAILED;
1924
- if (peg$silentFails === 0) { peg$fail(peg$e6); }
2044
+ if (peg$silentFails === 0) { peg$fail(peg$e7); }
1925
2045
  }
1926
2046
  if (s3 !== peg$FAILED) {
1927
2047
  peg$savedPos = s0;
1928
- s0 = peg$f16(s2);
2048
+ s0 = peg$f17(s2);
1929
2049
  } else {
1930
2050
  peg$currPos = s0;
1931
2051
  s0 = peg$FAILED;
@@ -1937,11 +2057,11 @@ function peg$parse(input, options) {
1937
2057
  if (s0 === peg$FAILED) {
1938
2058
  s0 = peg$currPos;
1939
2059
  if (input.charCodeAt(peg$currPos) === 39) {
1940
- s1 = peg$c4;
2060
+ s1 = peg$c5;
1941
2061
  peg$currPos++;
1942
2062
  } else {
1943
2063
  s1 = peg$FAILED;
1944
- if (peg$silentFails === 0) { peg$fail(peg$e8); }
2064
+ if (peg$silentFails === 0) { peg$fail(peg$e9); }
1945
2065
  }
1946
2066
  if (s1 !== peg$FAILED) {
1947
2067
  s2 = [];
@@ -1952,7 +2072,7 @@ function peg$parse(input, options) {
1952
2072
  peg$currPos++;
1953
2073
  } else {
1954
2074
  s3 = peg$FAILED;
1955
- if (peg$silentFails === 0) { peg$fail(peg$e27); }
2075
+ if (peg$silentFails === 0) { peg$fail(peg$e31); }
1956
2076
  }
1957
2077
  }
1958
2078
  while (s3 !== peg$FAILED) {
@@ -1964,20 +2084,20 @@ function peg$parse(input, options) {
1964
2084
  peg$currPos++;
1965
2085
  } else {
1966
2086
  s3 = peg$FAILED;
1967
- if (peg$silentFails === 0) { peg$fail(peg$e27); }
2087
+ if (peg$silentFails === 0) { peg$fail(peg$e31); }
1968
2088
  }
1969
2089
  }
1970
2090
  }
1971
2091
  if (input.charCodeAt(peg$currPos) === 39) {
1972
- s3 = peg$c4;
2092
+ s3 = peg$c5;
1973
2093
  peg$currPos++;
1974
2094
  } else {
1975
2095
  s3 = peg$FAILED;
1976
- if (peg$silentFails === 0) { peg$fail(peg$e8); }
2096
+ if (peg$silentFails === 0) { peg$fail(peg$e9); }
1977
2097
  }
1978
2098
  if (s3 !== peg$FAILED) {
1979
2099
  peg$savedPos = s0;
1980
- s0 = peg$f17(s2);
2100
+ s0 = peg$f18(s2);
1981
2101
  } else {
1982
2102
  peg$currPos = s0;
1983
2103
  s0 = peg$FAILED;
@@ -1999,11 +2119,11 @@ function peg$parse(input, options) {
1999
2119
 
2000
2120
  s0 = peg$currPos;
2001
2121
  if (input.charCodeAt(peg$currPos) === 92) {
2002
- s1 = peg$c18;
2122
+ s1 = peg$c22;
2003
2123
  peg$currPos++;
2004
2124
  } else {
2005
2125
  s1 = peg$FAILED;
2006
- if (peg$silentFails === 0) { peg$fail(peg$e28); }
2126
+ if (peg$silentFails === 0) { peg$fail(peg$e32); }
2007
2127
  }
2008
2128
  if (s1 !== peg$FAILED) {
2009
2129
  s2 = input.charAt(peg$currPos);
@@ -2011,11 +2131,11 @@ function peg$parse(input, options) {
2011
2131
  peg$currPos++;
2012
2132
  } else {
2013
2133
  s2 = peg$FAILED;
2014
- if (peg$silentFails === 0) { peg$fail(peg$e29); }
2134
+ if (peg$silentFails === 0) { peg$fail(peg$e33); }
2015
2135
  }
2016
2136
  if (s2 !== peg$FAILED) {
2017
2137
  peg$savedPos = s0;
2018
- s0 = peg$f18(s2);
2138
+ s0 = peg$f19(s2);
2019
2139
  } else {
2020
2140
  peg$currPos = s0;
2021
2141
  s0 = peg$FAILED;
@@ -2033,140 +2153,140 @@ function peg$parse(input, options) {
2033
2153
 
2034
2154
  peg$silentFails++;
2035
2155
  s0 = peg$currPos;
2036
- if (input.substr(peg$currPos, 9) === peg$c19) {
2037
- s1 = peg$c19;
2156
+ if (input.substr(peg$currPos, 9) === peg$c23) {
2157
+ s1 = peg$c23;
2038
2158
  peg$currPos += 9;
2039
2159
  } else {
2040
2160
  s1 = peg$FAILED;
2041
- if (peg$silentFails === 0) { peg$fail(peg$e31); }
2161
+ if (peg$silentFails === 0) { peg$fail(peg$e35); }
2042
2162
  }
2043
2163
  if (s1 === peg$FAILED) {
2044
- if (input.substr(peg$currPos, 9) === peg$c20) {
2045
- s1 = peg$c20;
2164
+ if (input.substr(peg$currPos, 9) === peg$c24) {
2165
+ s1 = peg$c24;
2046
2166
  peg$currPos += 9;
2047
2167
  } else {
2048
2168
  s1 = peg$FAILED;
2049
- if (peg$silentFails === 0) { peg$fail(peg$e32); }
2169
+ if (peg$silentFails === 0) { peg$fail(peg$e36); }
2050
2170
  }
2051
2171
  }
2052
2172
  if (s1 !== peg$FAILED) {
2053
2173
  peg$savedPos = s0;
2054
- s1 = peg$f19();
2174
+ s1 = peg$f20();
2055
2175
  }
2056
2176
  s0 = s1;
2057
2177
  if (s0 === peg$FAILED) {
2058
2178
  s0 = peg$currPos;
2059
- if (input.substr(peg$currPos, 9) === peg$c21) {
2060
- s1 = peg$c21;
2179
+ if (input.substr(peg$currPos, 9) === peg$c25) {
2180
+ s1 = peg$c25;
2061
2181
  peg$currPos += 9;
2062
2182
  } else {
2063
2183
  s1 = peg$FAILED;
2064
- if (peg$silentFails === 0) { peg$fail(peg$e33); }
2184
+ if (peg$silentFails === 0) { peg$fail(peg$e37); }
2065
2185
  }
2066
2186
  if (s1 === peg$FAILED) {
2067
- if (input.substr(peg$currPos, 9) === peg$c22) {
2068
- s1 = peg$c22;
2187
+ if (input.substr(peg$currPos, 9) === peg$c26) {
2188
+ s1 = peg$c26;
2069
2189
  peg$currPos += 9;
2070
2190
  } else {
2071
2191
  s1 = peg$FAILED;
2072
- if (peg$silentFails === 0) { peg$fail(peg$e34); }
2192
+ if (peg$silentFails === 0) { peg$fail(peg$e38); }
2073
2193
  }
2074
2194
  }
2075
2195
  if (s1 !== peg$FAILED) {
2076
2196
  peg$savedPos = s0;
2077
- s1 = peg$f20();
2197
+ s1 = peg$f21();
2078
2198
  }
2079
2199
  s0 = s1;
2080
2200
  if (s0 === peg$FAILED) {
2081
2201
  s0 = peg$currPos;
2082
- if (input.substr(peg$currPos, 6) === peg$c23) {
2083
- s1 = peg$c23;
2202
+ if (input.substr(peg$currPos, 6) === peg$c27) {
2203
+ s1 = peg$c27;
2084
2204
  peg$currPos += 6;
2085
2205
  } else {
2086
2206
  s1 = peg$FAILED;
2087
- if (peg$silentFails === 0) { peg$fail(peg$e35); }
2207
+ if (peg$silentFails === 0) { peg$fail(peg$e39); }
2088
2208
  }
2089
2209
  if (s1 === peg$FAILED) {
2090
- if (input.substr(peg$currPos, 6) === peg$c24) {
2091
- s1 = peg$c24;
2210
+ if (input.substr(peg$currPos, 6) === peg$c28) {
2211
+ s1 = peg$c28;
2092
2212
  peg$currPos += 6;
2093
2213
  } else {
2094
2214
  s1 = peg$FAILED;
2095
- if (peg$silentFails === 0) { peg$fail(peg$e36); }
2215
+ if (peg$silentFails === 0) { peg$fail(peg$e40); }
2096
2216
  }
2097
2217
  }
2098
2218
  if (s1 !== peg$FAILED) {
2099
2219
  peg$savedPos = s0;
2100
- s1 = peg$f21();
2220
+ s1 = peg$f22();
2101
2221
  }
2102
2222
  s0 = s1;
2103
2223
  if (s0 === peg$FAILED) {
2104
2224
  s0 = peg$currPos;
2105
- if (input.substr(peg$currPos, 5) === peg$c25) {
2106
- s1 = peg$c25;
2225
+ if (input.substr(peg$currPos, 5) === peg$c29) {
2226
+ s1 = peg$c29;
2107
2227
  peg$currPos += 5;
2108
2228
  } else {
2109
2229
  s1 = peg$FAILED;
2110
- if (peg$silentFails === 0) { peg$fail(peg$e37); }
2230
+ if (peg$silentFails === 0) { peg$fail(peg$e41); }
2111
2231
  }
2112
2232
  if (s1 === peg$FAILED) {
2113
- if (input.substr(peg$currPos, 5) === peg$c26) {
2114
- s1 = peg$c26;
2233
+ if (input.substr(peg$currPos, 5) === peg$c30) {
2234
+ s1 = peg$c30;
2115
2235
  peg$currPos += 5;
2116
2236
  } else {
2117
2237
  s1 = peg$FAILED;
2118
- if (peg$silentFails === 0) { peg$fail(peg$e38); }
2238
+ if (peg$silentFails === 0) { peg$fail(peg$e42); }
2119
2239
  }
2120
2240
  }
2121
2241
  if (s1 !== peg$FAILED) {
2122
2242
  peg$savedPos = s0;
2123
- s1 = peg$f22();
2243
+ s1 = peg$f23();
2124
2244
  }
2125
2245
  s0 = s1;
2126
2246
  if (s0 === peg$FAILED) {
2127
2247
  s0 = peg$currPos;
2128
- if (input.substr(peg$currPos, 7) === peg$c27) {
2129
- s1 = peg$c27;
2248
+ if (input.substr(peg$currPos, 7) === peg$c31) {
2249
+ s1 = peg$c31;
2130
2250
  peg$currPos += 7;
2131
2251
  } else {
2132
2252
  s1 = peg$FAILED;
2133
- if (peg$silentFails === 0) { peg$fail(peg$e39); }
2253
+ if (peg$silentFails === 0) { peg$fail(peg$e43); }
2134
2254
  }
2135
2255
  if (s1 === peg$FAILED) {
2136
- if (input.substr(peg$currPos, 7) === peg$c28) {
2137
- s1 = peg$c28;
2256
+ if (input.substr(peg$currPos, 7) === peg$c32) {
2257
+ s1 = peg$c32;
2138
2258
  peg$currPos += 7;
2139
2259
  } else {
2140
2260
  s1 = peg$FAILED;
2141
- if (peg$silentFails === 0) { peg$fail(peg$e40); }
2261
+ if (peg$silentFails === 0) { peg$fail(peg$e44); }
2142
2262
  }
2143
2263
  }
2144
2264
  if (s1 !== peg$FAILED) {
2145
2265
  peg$savedPos = s0;
2146
- s1 = peg$f23();
2266
+ s1 = peg$f24();
2147
2267
  }
2148
2268
  s0 = s1;
2149
2269
  if (s0 === peg$FAILED) {
2150
2270
  s0 = peg$currPos;
2151
- if (input.substr(peg$currPos, 4) === peg$c29) {
2152
- s1 = peg$c29;
2271
+ if (input.substr(peg$currPos, 4) === peg$c33) {
2272
+ s1 = peg$c33;
2153
2273
  peg$currPos += 4;
2154
2274
  } else {
2155
2275
  s1 = peg$FAILED;
2156
- if (peg$silentFails === 0) { peg$fail(peg$e41); }
2276
+ if (peg$silentFails === 0) { peg$fail(peg$e45); }
2157
2277
  }
2158
2278
  if (s1 === peg$FAILED) {
2159
- if (input.substr(peg$currPos, 4) === peg$c30) {
2160
- s1 = peg$c30;
2279
+ if (input.substr(peg$currPos, 4) === peg$c34) {
2280
+ s1 = peg$c34;
2161
2281
  peg$currPos += 4;
2162
2282
  } else {
2163
2283
  s1 = peg$FAILED;
2164
- if (peg$silentFails === 0) { peg$fail(peg$e42); }
2284
+ if (peg$silentFails === 0) { peg$fail(peg$e46); }
2165
2285
  }
2166
2286
  }
2167
2287
  if (s1 !== peg$FAILED) {
2168
2288
  peg$savedPos = s0;
2169
- s1 = peg$f24();
2289
+ s1 = peg$f25();
2170
2290
  }
2171
2291
  s0 = s1;
2172
2292
  }
@@ -2177,7 +2297,7 @@ function peg$parse(input, options) {
2177
2297
  peg$silentFails--;
2178
2298
  if (s0 === peg$FAILED) {
2179
2299
  s1 = peg$FAILED;
2180
- if (peg$silentFails === 0) { peg$fail(peg$e30); }
2300
+ if (peg$silentFails === 0) { peg$fail(peg$e34); }
2181
2301
  }
2182
2302
 
2183
2303
  return s0;
@@ -2188,16 +2308,16 @@ function peg$parse(input, options) {
2188
2308
 
2189
2309
  peg$silentFails++;
2190
2310
  s0 = peg$currPos;
2191
- if (input.substr(peg$currPos, 4) === peg$c31) {
2192
- s1 = peg$c31;
2311
+ if (input.substr(peg$currPos, 4) === peg$c35) {
2312
+ s1 = peg$c35;
2193
2313
  peg$currPos += 4;
2194
2314
  } else {
2195
2315
  s1 = peg$FAILED;
2196
- if (peg$silentFails === 0) { peg$fail(peg$e44); }
2316
+ if (peg$silentFails === 0) { peg$fail(peg$e48); }
2197
2317
  }
2198
2318
  if (s1 !== peg$FAILED) {
2199
2319
  peg$savedPos = s0;
2200
- s1 = peg$f25();
2320
+ s1 = peg$f26();
2201
2321
  }
2202
2322
  s0 = s1;
2203
2323
  if (s0 === peg$FAILED) {
@@ -2206,7 +2326,7 @@ function peg$parse(input, options) {
2206
2326
  peg$silentFails--;
2207
2327
  if (s0 === peg$FAILED) {
2208
2328
  s1 = peg$FAILED;
2209
- if (peg$silentFails === 0) { peg$fail(peg$e43); }
2329
+ if (peg$silentFails === 0) { peg$fail(peg$e47); }
2210
2330
  }
2211
2331
 
2212
2332
  return s0;
@@ -2217,20 +2337,20 @@ function peg$parse(input, options) {
2217
2337
 
2218
2338
  s0 = peg$currPos;
2219
2339
  if (input.charCodeAt(peg$currPos) === 123) {
2220
- s1 = peg$c32;
2340
+ s1 = peg$c36;
2221
2341
  peg$currPos++;
2222
2342
  } else {
2223
2343
  s1 = peg$FAILED;
2224
- if (peg$silentFails === 0) { peg$fail(peg$e45); }
2344
+ if (peg$silentFails === 0) { peg$fail(peg$e49); }
2225
2345
  }
2226
2346
  if (s1 !== peg$FAILED) {
2227
2347
  s2 = peg$parse_();
2228
- if (input.substr(peg$currPos, 6) === peg$c33) {
2229
- s3 = peg$c33;
2348
+ if (input.substr(peg$currPos, 6) === peg$c37) {
2349
+ s3 = peg$c37;
2230
2350
  peg$currPos += 6;
2231
2351
  } else {
2232
2352
  s3 = peg$FAILED;
2233
- if (peg$silentFails === 0) { peg$fail(peg$e46); }
2353
+ if (peg$silentFails === 0) { peg$fail(peg$e50); }
2234
2354
  }
2235
2355
  if (s3 !== peg$FAILED) {
2236
2356
  s4 = [];
@@ -2275,15 +2395,15 @@ function peg$parse(input, options) {
2275
2395
  }
2276
2396
  s10 = peg$parse_();
2277
2397
  if (input.charCodeAt(peg$currPos) === 125) {
2278
- s11 = peg$c34;
2398
+ s11 = peg$c38;
2279
2399
  peg$currPos++;
2280
2400
  } else {
2281
2401
  s11 = peg$FAILED;
2282
- if (peg$silentFails === 0) { peg$fail(peg$e47); }
2402
+ if (peg$silentFails === 0) { peg$fail(peg$e51); }
2283
2403
  }
2284
2404
  if (s11 !== peg$FAILED) {
2285
2405
  peg$savedPos = s0;
2286
- s0 = peg$f26(s7);
2406
+ s0 = peg$f27(s7);
2287
2407
  } else {
2288
2408
  peg$currPos = s0;
2289
2409
  s0 = peg$FAILED;
@@ -2312,16 +2432,16 @@ function peg$parse(input, options) {
2312
2432
  let s0, s1;
2313
2433
 
2314
2434
  s0 = peg$currPos;
2315
- if (input.substr(peg$currPos, 5) === peg$c35) {
2316
- s1 = peg$c35;
2435
+ if (input.substr(peg$currPos, 5) === peg$c39) {
2436
+ s1 = peg$c39;
2317
2437
  peg$currPos += 5;
2318
2438
  } else {
2319
2439
  s1 = peg$FAILED;
2320
- if (peg$silentFails === 0) { peg$fail(peg$e48); }
2440
+ if (peg$silentFails === 0) { peg$fail(peg$e52); }
2321
2441
  }
2322
2442
  if (s1 !== peg$FAILED) {
2323
2443
  peg$savedPos = s0;
2324
- s1 = peg$f27();
2444
+ s1 = peg$f28();
2325
2445
  }
2326
2446
  s0 = s1;
2327
2447
 
@@ -2334,11 +2454,11 @@ function peg$parse(input, options) {
2334
2454
  peg$silentFails++;
2335
2455
  s0 = peg$currPos;
2336
2456
  if (input.charCodeAt(peg$currPos) === 34) {
2337
- s1 = peg$c3;
2457
+ s1 = peg$c4;
2338
2458
  peg$currPos++;
2339
2459
  } else {
2340
2460
  s1 = peg$FAILED;
2341
- if (peg$silentFails === 0) { peg$fail(peg$e6); }
2461
+ if (peg$silentFails === 0) { peg$fail(peg$e7); }
2342
2462
  }
2343
2463
  if (s1 !== peg$FAILED) {
2344
2464
  s2 = peg$currPos;
@@ -2348,7 +2468,7 @@ function peg$parse(input, options) {
2348
2468
  peg$currPos++;
2349
2469
  } else {
2350
2470
  s4 = peg$FAILED;
2351
- if (peg$silentFails === 0) { peg$fail(peg$e50); }
2471
+ if (peg$silentFails === 0) { peg$fail(peg$e54); }
2352
2472
  }
2353
2473
  if (s4 !== peg$FAILED) {
2354
2474
  while (s4 !== peg$FAILED) {
@@ -2358,7 +2478,7 @@ function peg$parse(input, options) {
2358
2478
  peg$currPos++;
2359
2479
  } else {
2360
2480
  s4 = peg$FAILED;
2361
- if (peg$silentFails === 0) { peg$fail(peg$e50); }
2481
+ if (peg$silentFails === 0) { peg$fail(peg$e54); }
2362
2482
  }
2363
2483
  }
2364
2484
  } else {
@@ -2371,15 +2491,15 @@ function peg$parse(input, options) {
2371
2491
  }
2372
2492
  if (s2 !== peg$FAILED) {
2373
2493
  if (input.charCodeAt(peg$currPos) === 34) {
2374
- s3 = peg$c3;
2494
+ s3 = peg$c4;
2375
2495
  peg$currPos++;
2376
2496
  } else {
2377
2497
  s3 = peg$FAILED;
2378
- if (peg$silentFails === 0) { peg$fail(peg$e6); }
2498
+ if (peg$silentFails === 0) { peg$fail(peg$e7); }
2379
2499
  }
2380
2500
  if (s3 !== peg$FAILED) {
2381
2501
  peg$savedPos = s0;
2382
- s0 = peg$f28(s2);
2502
+ s0 = peg$f29(s2);
2383
2503
  } else {
2384
2504
  peg$currPos = s0;
2385
2505
  s0 = peg$FAILED;
@@ -2395,11 +2515,11 @@ function peg$parse(input, options) {
2395
2515
  if (s0 === peg$FAILED) {
2396
2516
  s0 = peg$currPos;
2397
2517
  if (input.charCodeAt(peg$currPos) === 39) {
2398
- s1 = peg$c4;
2518
+ s1 = peg$c5;
2399
2519
  peg$currPos++;
2400
2520
  } else {
2401
2521
  s1 = peg$FAILED;
2402
- if (peg$silentFails === 0) { peg$fail(peg$e8); }
2522
+ if (peg$silentFails === 0) { peg$fail(peg$e9); }
2403
2523
  }
2404
2524
  if (s1 !== peg$FAILED) {
2405
2525
  s2 = peg$currPos;
@@ -2409,7 +2529,7 @@ function peg$parse(input, options) {
2409
2529
  peg$currPos++;
2410
2530
  } else {
2411
2531
  s4 = peg$FAILED;
2412
- if (peg$silentFails === 0) { peg$fail(peg$e50); }
2532
+ if (peg$silentFails === 0) { peg$fail(peg$e54); }
2413
2533
  }
2414
2534
  if (s4 !== peg$FAILED) {
2415
2535
  while (s4 !== peg$FAILED) {
@@ -2419,7 +2539,7 @@ function peg$parse(input, options) {
2419
2539
  peg$currPos++;
2420
2540
  } else {
2421
2541
  s4 = peg$FAILED;
2422
- if (peg$silentFails === 0) { peg$fail(peg$e50); }
2542
+ if (peg$silentFails === 0) { peg$fail(peg$e54); }
2423
2543
  }
2424
2544
  }
2425
2545
  } else {
@@ -2432,15 +2552,15 @@ function peg$parse(input, options) {
2432
2552
  }
2433
2553
  if (s2 !== peg$FAILED) {
2434
2554
  if (input.charCodeAt(peg$currPos) === 39) {
2435
- s3 = peg$c4;
2555
+ s3 = peg$c5;
2436
2556
  peg$currPos++;
2437
2557
  } else {
2438
2558
  s3 = peg$FAILED;
2439
- if (peg$silentFails === 0) { peg$fail(peg$e8); }
2559
+ if (peg$silentFails === 0) { peg$fail(peg$e9); }
2440
2560
  }
2441
2561
  if (s3 !== peg$FAILED) {
2442
2562
  peg$savedPos = s0;
2443
- s0 = peg$f29(s2);
2563
+ s0 = peg$f30(s2);
2444
2564
  } else {
2445
2565
  peg$currPos = s0;
2446
2566
  s0 = peg$FAILED;
@@ -2457,7 +2577,7 @@ function peg$parse(input, options) {
2457
2577
  peg$silentFails--;
2458
2578
  if (s0 === peg$FAILED) {
2459
2579
  s1 = peg$FAILED;
2460
- if (peg$silentFails === 0) { peg$fail(peg$e49); }
2580
+ if (peg$silentFails === 0) { peg$fail(peg$e53); }
2461
2581
  }
2462
2582
 
2463
2583
  return s0;
@@ -2469,25 +2589,25 @@ function peg$parse(input, options) {
2469
2589
  peg$silentFails++;
2470
2590
  s0 = peg$currPos;
2471
2591
  if (input.charCodeAt(peg$currPos) === 34) {
2472
- s1 = peg$c3;
2592
+ s1 = peg$c4;
2473
2593
  peg$currPos++;
2474
2594
  } else {
2475
2595
  s1 = peg$FAILED;
2476
- if (peg$silentFails === 0) { peg$fail(peg$e6); }
2596
+ if (peg$silentFails === 0) { peg$fail(peg$e7); }
2477
2597
  }
2478
2598
  if (s1 !== peg$FAILED) {
2479
2599
  s2 = peg$parseIdentifier();
2480
2600
  if (s2 !== peg$FAILED) {
2481
2601
  if (input.charCodeAt(peg$currPos) === 34) {
2482
- s3 = peg$c3;
2602
+ s3 = peg$c4;
2483
2603
  peg$currPos++;
2484
2604
  } else {
2485
2605
  s3 = peg$FAILED;
2486
- if (peg$silentFails === 0) { peg$fail(peg$e6); }
2606
+ if (peg$silentFails === 0) { peg$fail(peg$e7); }
2487
2607
  }
2488
2608
  if (s3 !== peg$FAILED) {
2489
2609
  peg$savedPos = s0;
2490
- s0 = peg$f30(s2);
2610
+ s0 = peg$f31(s2);
2491
2611
  } else {
2492
2612
  peg$currPos = s0;
2493
2613
  s0 = peg$FAILED;
@@ -2503,25 +2623,25 @@ function peg$parse(input, options) {
2503
2623
  if (s0 === peg$FAILED) {
2504
2624
  s0 = peg$currPos;
2505
2625
  if (input.charCodeAt(peg$currPos) === 39) {
2506
- s1 = peg$c4;
2626
+ s1 = peg$c5;
2507
2627
  peg$currPos++;
2508
2628
  } else {
2509
2629
  s1 = peg$FAILED;
2510
- if (peg$silentFails === 0) { peg$fail(peg$e8); }
2630
+ if (peg$silentFails === 0) { peg$fail(peg$e9); }
2511
2631
  }
2512
2632
  if (s1 !== peg$FAILED) {
2513
2633
  s2 = peg$parseIdentifier();
2514
2634
  if (s2 !== peg$FAILED) {
2515
2635
  if (input.charCodeAt(peg$currPos) === 39) {
2516
- s3 = peg$c4;
2636
+ s3 = peg$c5;
2517
2637
  peg$currPos++;
2518
2638
  } else {
2519
2639
  s3 = peg$FAILED;
2520
- if (peg$silentFails === 0) { peg$fail(peg$e8); }
2640
+ if (peg$silentFails === 0) { peg$fail(peg$e9); }
2521
2641
  }
2522
2642
  if (s3 !== peg$FAILED) {
2523
2643
  peg$savedPos = s0;
2524
- s0 = peg$f31(s2);
2644
+ s0 = peg$f32(s2);
2525
2645
  } else {
2526
2646
  peg$currPos = s0;
2527
2647
  s0 = peg$FAILED;
@@ -2538,7 +2658,7 @@ function peg$parse(input, options) {
2538
2658
  peg$silentFails--;
2539
2659
  if (s0 === peg$FAILED) {
2540
2660
  s1 = peg$FAILED;
2541
- if (peg$silentFails === 0) { peg$fail(peg$e51); }
2661
+ if (peg$silentFails === 0) { peg$fail(peg$e55); }
2542
2662
  }
2543
2663
 
2544
2664
  return s0;
@@ -2554,7 +2674,7 @@ function peg$parse(input, options) {
2554
2674
  peg$currPos++;
2555
2675
  } else {
2556
2676
  s2 = peg$FAILED;
2557
- if (peg$silentFails === 0) { peg$fail(peg$e52); }
2677
+ if (peg$silentFails === 0) { peg$fail(peg$e56); }
2558
2678
  }
2559
2679
  if (s2 !== peg$FAILED) {
2560
2680
  s3 = [];
@@ -2563,7 +2683,7 @@ function peg$parse(input, options) {
2563
2683
  peg$currPos++;
2564
2684
  } else {
2565
2685
  s4 = peg$FAILED;
2566
- if (peg$silentFails === 0) { peg$fail(peg$e53); }
2686
+ if (peg$silentFails === 0) { peg$fail(peg$e57); }
2567
2687
  }
2568
2688
  while (s4 !== peg$FAILED) {
2569
2689
  s3.push(s4);
@@ -2572,7 +2692,7 @@ function peg$parse(input, options) {
2572
2692
  peg$currPos++;
2573
2693
  } else {
2574
2694
  s4 = peg$FAILED;
2575
- if (peg$silentFails === 0) { peg$fail(peg$e53); }
2695
+ if (peg$silentFails === 0) { peg$fail(peg$e57); }
2576
2696
  }
2577
2697
  }
2578
2698
  s2 = [s2, s3];
@@ -2595,11 +2715,11 @@ function peg$parse(input, options) {
2595
2715
 
2596
2716
  s0 = peg$currPos;
2597
2717
  if (input.charCodeAt(peg$currPos) === 35) {
2598
- s1 = peg$c36;
2718
+ s1 = peg$c40;
2599
2719
  peg$currPos++;
2600
2720
  } else {
2601
2721
  s1 = peg$FAILED;
2602
- if (peg$silentFails === 0) { peg$fail(peg$e54); }
2722
+ if (peg$silentFails === 0) { peg$fail(peg$e58); }
2603
2723
  }
2604
2724
  if (s1 !== peg$FAILED) {
2605
2725
  s2 = [];
@@ -2608,7 +2728,7 @@ function peg$parse(input, options) {
2608
2728
  peg$currPos++;
2609
2729
  } else {
2610
2730
  s3 = peg$FAILED;
2611
- if (peg$silentFails === 0) { peg$fail(peg$e55); }
2731
+ if (peg$silentFails === 0) { peg$fail(peg$e59); }
2612
2732
  }
2613
2733
  while (s3 !== peg$FAILED) {
2614
2734
  s2.push(s3);
@@ -2617,7 +2737,7 @@ function peg$parse(input, options) {
2617
2737
  peg$currPos++;
2618
2738
  } else {
2619
2739
  s3 = peg$FAILED;
2620
- if (peg$silentFails === 0) { peg$fail(peg$e55); }
2740
+ if (peg$silentFails === 0) { peg$fail(peg$e59); }
2621
2741
  }
2622
2742
  }
2623
2743
  s1 = [s1, s2];
@@ -2633,12 +2753,12 @@ function peg$parse(input, options) {
2633
2753
  function peg$parseNewline() {
2634
2754
  let s0;
2635
2755
 
2636
- if (input.substr(peg$currPos, 2) === peg$c37) {
2637
- s0 = peg$c37;
2756
+ if (input.substr(peg$currPos, 2) === peg$c41) {
2757
+ s0 = peg$c41;
2638
2758
  peg$currPos += 2;
2639
2759
  } else {
2640
2760
  s0 = peg$FAILED;
2641
- if (peg$silentFails === 0) { peg$fail(peg$e56); }
2761
+ if (peg$silentFails === 0) { peg$fail(peg$e60); }
2642
2762
  }
2643
2763
  if (s0 === peg$FAILED) {
2644
2764
  s0 = input.charAt(peg$currPos);
@@ -2646,7 +2766,7 @@ function peg$parse(input, options) {
2646
2766
  peg$currPos++;
2647
2767
  } else {
2648
2768
  s0 = peg$FAILED;
2649
- if (peg$silentFails === 0) { peg$fail(peg$e57); }
2769
+ if (peg$silentFails === 0) { peg$fail(peg$e61); }
2650
2770
  }
2651
2771
  }
2652
2772