UNPKG

jssm

Version:

A Javascript state machine with a simple API. Well tested, and typed with Flowtype. MIT License.

6 lines 215 kB
require=(function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({1:[function(require,module,exports){ /* * Generated by PEG.js 0.10.0. * * http://pegjs.org/ */"use strict";function peg$subclass(child,parent){function ctor(){this.constructor=child;}ctor.prototype=parent.prototype;child.prototype=new ctor();}function peg$SyntaxError(message,expected,found,location){this.message=message;this.expected=expected;this.found=found;this.location=location;this.name="SyntaxError";if(typeof Error.captureStackTrace==="function"){Error.captureStackTrace(this,peg$SyntaxError);}}peg$subclass(peg$SyntaxError,Error);peg$SyntaxError.buildMessage=function(expected,found){var DESCRIBE_EXPECTATION_FNS={literal:function literal(expectation){return"\""+literalEscape(expectation.text)+"\"";},"class":function _class(expectation){var escapedParts="",i;for(i=0;i<expectation.parts.length;i++){escapedParts+=expectation.parts[i]instanceof Array?classEscape(expectation.parts[i][0])+"-"+classEscape(expectation.parts[i][1]):classEscape(expectation.parts[i]);}return"["+(expectation.inverted?"^":"")+escapedParts+"]";},any:function any(expectation){return"any character";},end:function end(expectation){return"end of input";},other:function other(expectation){return expectation.description;}};function hex(ch){return ch.charCodeAt(0).toString(16).toUpperCase();}function literalEscape(s){return s.replace(/\\/g,'\\\\').replace(/"/g,'\\"').replace(/\0/g,'\\0').replace(/\t/g,'\\t').replace(/\n/g,'\\n').replace(/\r/g,'\\r').replace(/[\x00-\x0F]/g,function(ch){return'\\x0'+hex(ch);}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(ch){return'\\x'+hex(ch);});}function classEscape(s){return s.replace(/\\/g,'\\\\').replace(/\]/g,'\\]').replace(/\^/g,'\\^').replace(/-/g,'\\-').replace(/\0/g,'\\0').replace(/\t/g,'\\t').replace(/\n/g,'\\n').replace(/\r/g,'\\r').replace(/[\x00-\x0F]/g,function(ch){return'\\x0'+hex(ch);}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(ch){return'\\x'+hex(ch);});}function describeExpectation(expectation){return DESCRIBE_EXPECTATION_FNS[expectation.type](expectation);}function describeExpected(expected){var descriptions=new Array(expected.length),i,j;for(i=0;i<expected.length;i++){descriptions[i]=describeExpectation(expected[i]);}descriptions.sort();if(descriptions.length>0){for(i=1,j=1;i<descriptions.length;i++){if(descriptions[i-1]!==descriptions[i]){descriptions[j]=descriptions[i];j++;}}descriptions.length=j;}switch(descriptions.length){case 1:return descriptions[0];case 2:return descriptions[0]+" or "+descriptions[1];default:return descriptions.slice(0,-1).join(", ")+", or "+descriptions[descriptions.length-1];}}function describeFound(found){return found?"\""+literalEscape(found)+"\"":"end of input";}return"Expected "+describeExpected(expected)+" but "+describeFound(found)+" found.";};function peg$parse(input,options){options=options!==void 0?options:{};var peg$FAILED={},peg$startRuleFunctions={Document:peg$parseDocument},peg$startRuleFunction=peg$parseDocument,peg$c0=function peg$c0(e){return e;},peg$c1="square",peg$c2=peg$literalExpectation("square",false),peg$c3="rectangle",peg$c4=peg$literalExpectation("rectangle",false),peg$c5="circle",peg$c6=peg$literalExpectation("circle",false),peg$c7=peg$otherExpectation("forward light arrow ->"),peg$c8="->",peg$c9=peg$literalExpectation("->",false),peg$c10=peg$otherExpectation("two way light arrow <->"),peg$c11="<->",peg$c12=peg$literalExpectation("<->",false),peg$c13=peg$otherExpectation("back light arrow <-"),peg$c14="<-",peg$c15=peg$literalExpectation("<-",false),peg$c16=peg$otherExpectation("forward fat arrow =>"),peg$c17="=>",peg$c18=peg$literalExpectation("=>",false),peg$c19=peg$otherExpectation("two way fat arrow <=>"),peg$c20="<=>",peg$c21=peg$literalExpectation("<=>",false),peg$c22=peg$otherExpectation("back fat arrow <="),peg$c23="<=",peg$c24=peg$literalExpectation("<=",false),peg$c25=peg$otherExpectation("forward tilde arrow ~>"),peg$c26="~>",peg$c27=peg$literalExpectation("~>",false),peg$c28=peg$otherExpectation("two way tilde arrow <~>"),peg$c29="<~>",peg$c30=peg$literalExpectation("<~>",false),peg$c31=peg$otherExpectation("back tilde arrow <~"),peg$c32="<~",peg$c33=peg$literalExpectation("<~",false),peg$c34=peg$otherExpectation("light fat arrow <-=>"),peg$c35="<-=>",peg$c36=peg$literalExpectation("<-=>",false),peg$c37=peg$otherExpectation("light tilde arrow <-~>"),peg$c38="<-~>",peg$c39=peg$literalExpectation("<-~>",false),peg$c40=peg$otherExpectation("fat light arrow <=->"),peg$c41="<=->",peg$c42=peg$literalExpectation("<=->",false),peg$c43=peg$otherExpectation("fat tilde arrow <=~>"),peg$c44="<=~>",peg$c45=peg$literalExpectation("<=~>",false),peg$c46=peg$otherExpectation("tilde light arrow <~->"),peg$c47="<~->",peg$c48=peg$literalExpectation("<~->",false),peg$c49=peg$otherExpectation("tilde fat arrow <~=>"),peg$c50="<~=>",peg$c51=peg$literalExpectation("<~=>",false),peg$c52=peg$otherExpectation("light arrow"),peg$c53=peg$otherExpectation("fat arrow"),peg$c54=peg$otherExpectation("tilde arrow"),peg$c55=peg$otherExpectation("mixed arrow"),peg$c56=peg$otherExpectation("arrow"),peg$c57=/^[0-9a-fA-F]/,peg$c58=peg$classExpectation([["0","9"],["a","f"],["A","F"]],false,false),peg$c59="\"",peg$c60=peg$literalExpectation("\"",false),peg$c61="\\",peg$c62=peg$literalExpectation("\\",false),peg$c63="/",peg$c64=peg$literalExpectation("/",false),peg$c65="b",peg$c66=peg$literalExpectation("b",false),peg$c67=function peg$c67(){return"\b";},peg$c68="f",peg$c69=peg$literalExpectation("f",false),peg$c70=function peg$c70(){return"\f";},peg$c71="n",peg$c72=peg$literalExpectation("n",false),peg$c73=function peg$c73(){return"\n";},peg$c74="r",peg$c75=peg$literalExpectation("r",false),peg$c76=function peg$c76(){return"\r";},peg$c77="t",peg$c78=peg$literalExpectation("t",false),peg$c79=function peg$c79(){return"\t";},peg$c80="v",peg$c81=peg$literalExpectation("v",false),peg$c82=function peg$c82(){return"\v";},peg$c83="u",peg$c84=peg$literalExpectation("u",false),peg$c85=function peg$c85(digits){return String.fromCharCode(parseInt(digits,16));},peg$c86=function peg$c86(Sequence){return Sequence;},peg$c87=/^[ -!#-[\]-\u10FFFF]/,peg$c88=peg$classExpectation([[" ","!"],["#","["],["]","\u10FF"],"F","F"],false,false),peg$c89="'",peg$c90=peg$literalExpectation("'",false),peg$c91=/^[ -&(-[\]-\u10FFFF]/,peg$c92=peg$classExpectation([[" ","&"],["(","["],["]","\u10FF"],"F","F"],false,false),peg$c93=peg$otherExpectation("action label"),peg$c94=function peg$c94(chars){return chars.join("");},peg$c95=/^[\n\r\u2028\u2029]/,peg$c96=peg$classExpectation(["\n","\r","\u2028","\u2029"],false,false),peg$c97=peg$otherExpectation("whitespace"),peg$c98=/^[ \t\n\r\x0B]/,peg$c99=peg$classExpectation([" ","\t","\n","\r","\x0B"],false,false),peg$c100=peg$otherExpectation("string"),peg$c101=peg$otherExpectation("atom"),peg$c102=/^[0-9a-zA-Z.+_&()$#@!?,]/,peg$c103=peg$classExpectation([["0","9"],["a","z"],["A","Z"],".","+","_","&","(",")","$","#","@","!","?",","],false,false),peg$c104=function peg$c104(text){return text.join('');},peg$c105=peg$otherExpectation("label"),peg$c106="0",peg$c107=peg$literalExpectation("0",false),peg$c108=/^[0-9]/,peg$c109=peg$classExpectation([["0","9"]],false,false),peg$c110=/^[1-9]/,peg$c111=peg$classExpectation([["1","9"]],false,false),peg$c112=peg$otherExpectation("nonneg number"),peg$c113=".",peg$c114=peg$literalExpectation(".",false),peg$c115=function peg$c115(){return parseFloat(text());},peg$c116=function peg$c116(major,minor,patch){return{major:parseInt(major,10),minor:parseInt(minor,10),patch:parseInt(patch,10),full:text()};},peg$c117="^",peg$c118=peg$literalExpectation("^",false),peg$c119="~",peg$c120=peg$literalExpectation("~",false),peg$c121=">=",peg$c122=peg$literalExpectation(">=",false),peg$c123="<",peg$c124=peg$literalExpectation("<",false),peg$c125=">",peg$c126=peg$literalExpectation(">",false),peg$c127="http://",peg$c128=peg$literalExpectation("http://",false),peg$c129="https://",peg$c130=peg$literalExpectation("https://",false),peg$c131=/^[a-zA-Z0-9!*'():;@&=+$,\/?#[\]_.~\-]/,peg$c132=peg$classExpectation([["a","z"],["A","Z"],["0","9"],"!","*","'","(",")",":",";","@","&","=","+","$",",","/","?","#","[","]","_",".","~","-"],false,false),peg$c133=function peg$c133(protocol){return text();},peg$c134="aliceblue",peg$c135=peg$literalExpectation("aliceblue",false),peg$c136=function peg$c136(){return'#f0f8ffff';},peg$c137="AliceBlue",peg$c138=peg$literalExpectation("AliceBlue",false),peg$c139="antiquewhite",peg$c140=peg$literalExpectation("antiquewhite",false),peg$c141=function peg$c141(){return'#faebd7ff';},peg$c142="AntiqueWhite",peg$c143=peg$literalExpectation("AntiqueWhite",false),peg$c144="aqua",peg$c145=peg$literalExpectation("aqua",false),peg$c146=function peg$c146(){return'#00ffffff';},peg$c147="Aqua",peg$c148=peg$literalExpectation("Aqua",false),peg$c149="aquamarine",peg$c150=peg$literalExpectation("aquamarine",false),peg$c151=function peg$c151(){return'#7fffd4ff';},peg$c152="Aquamarine",peg$c153=peg$literalExpectation("Aquamarine",false),peg$c154="azure",peg$c155=peg$literalExpectation("azure",false),peg$c156=function peg$c156(){return'#f0ffffff';},peg$c157="Azure",peg$c158=peg$literalExpectation("Azure",false),peg$c159="beige",peg$c160=peg$literalExpectation("beige",false),peg$c161=function peg$c161(){return'#f5f5dcff';},peg$c162="Beige",peg$c163=peg$literalExpectation("Beige",false),peg$c164="bisque",peg$c165=peg$literalExpectation("bisque",false),peg$c166=function peg$c166(){return'#ffe4c4ff';},peg$c167="Bisque",peg$c168=peg$literalExpectation("Bisque",false),peg$c169="black",peg$c170=peg$literalExpectation("black",false),peg$c171=function peg$c171(){return'#000000ff';},peg$c172="Black",peg$c173=peg$literalExpectation("Black",false),peg$c174="blanchedalmond",peg$c175=peg$literalExpectation("blanchedalmond",false),peg$c176=function peg$c176(){return'#ffebcdff';},peg$c177="BlanchedAlmond",peg$c178=peg$literalExpectation("BlanchedAlmond",false),peg$c179="blue",peg$c180=peg$literalExpectation("blue",false),peg$c181=function peg$c181(){return'#0000ffff';},peg$c182="Blue",peg$c183=peg$literalExpectation("Blue",false),peg$c184="blueviolet",peg$c185=peg$literalExpectation("blueviolet",false),peg$c186=function peg$c186(){return'#8a2be2ff';},peg$c187="BlueViolet",peg$c188=peg$literalExpectation("BlueViolet",false),peg$c189="brown",peg$c190=peg$literalExpectation("brown",false),peg$c191=function peg$c191(){return'#a52a2aff';},peg$c192="Brown",peg$c193=peg$literalExpectation("Brown",false),peg$c194="burlywood",peg$c195=peg$literalExpectation("burlywood",false),peg$c196=function peg$c196(){return'#deb887ff';},peg$c197="BurlyWood",peg$c198=peg$literalExpectation("BurlyWood",false),peg$c199="cadetblue",peg$c200=peg$literalExpectation("cadetblue",false),peg$c201=function peg$c201(){return'#5f9ea0ff';},peg$c202="CadetBlue",peg$c203=peg$literalExpectation("CadetBlue",false),peg$c204="chartreuse",peg$c205=peg$literalExpectation("chartreuse",false),peg$c206=function peg$c206(){return'#7fff00ff';},peg$c207="Chartreuse",peg$c208=peg$literalExpectation("Chartreuse",false),peg$c209="chocolate",peg$c210=peg$literalExpectation("chocolate",false),peg$c211=function peg$c211(){return'#d2691eff';},peg$c212="Chocolate",peg$c213=peg$literalExpectation("Chocolate",false),peg$c214="coral",peg$c215=peg$literalExpectation("coral",false),peg$c216=function peg$c216(){return'#ff7f50ff';},peg$c217="Coral",peg$c218=peg$literalExpectation("Coral",false),peg$c219="cornflowerblue",peg$c220=peg$literalExpectation("cornflowerblue",false),peg$c221=function peg$c221(){return'#6495edff';},peg$c222="CornflowerBlue",peg$c223=peg$literalExpectation("CornflowerBlue",false),peg$c224="cornsilk",peg$c225=peg$literalExpectation("cornsilk",false),peg$c226=function peg$c226(){return'#fff8dcff';},peg$c227="Cornsilk",peg$c228=peg$literalExpectation("Cornsilk",false),peg$c229="crimson",peg$c230=peg$literalExpectation("crimson",false),peg$c231=function peg$c231(){return'#dc143cff';},peg$c232="Crimson",peg$c233=peg$literalExpectation("Crimson",false),peg$c234="cyan",peg$c235=peg$literalExpectation("cyan",false),peg$c236="Cyan",peg$c237=peg$literalExpectation("Cyan",false),peg$c238="darkblue",peg$c239=peg$literalExpectation("darkblue",false),peg$c240=function peg$c240(){return'#00008bff';},peg$c241="DarkBlue",peg$c242=peg$literalExpectation("DarkBlue",false),peg$c243="darkcyan",peg$c244=peg$literalExpectation("darkcyan",false),peg$c245=function peg$c245(){return'#008b8bff';},peg$c246="DarkCyan",peg$c247=peg$literalExpectation("DarkCyan",false),peg$c248="darkgoldenrod",peg$c249=peg$literalExpectation("darkgoldenrod",false),peg$c250=function peg$c250(){return'#b8860bff';},peg$c251="DarkGoldenRod",peg$c252=peg$literalExpectation("DarkGoldenRod",false),peg$c253="darkgray",peg$c254=peg$literalExpectation("darkgray",false),peg$c255=function peg$c255(){return'#a9a9a9ff';},peg$c256="DarkGray",peg$c257=peg$literalExpectation("DarkGray",false),peg$c258="darkgrey",peg$c259=peg$literalExpectation("darkgrey",false),peg$c260="DarkGrey",peg$c261=peg$literalExpectation("DarkGrey",false),peg$c262="darkgreen",peg$c263=peg$literalExpectation("darkgreen",false),peg$c264=function peg$c264(){return'#006400ff';},peg$c265="DarkGreen",peg$c266=peg$literalExpectation("DarkGreen",false),peg$c267="darkkhaki",peg$c268=peg$literalExpectation("darkkhaki",false),peg$c269=function peg$c269(){return'#bdb76bff';},peg$c270="DarkKhaki",peg$c271=peg$literalExpectation("DarkKhaki",false),peg$c272="darkmagenta",peg$c273=peg$literalExpectation("darkmagenta",false),peg$c274=function peg$c274(){return'#8b008bff';},peg$c275="DarkMagenta",peg$c276=peg$literalExpectation("DarkMagenta",false),peg$c277="darkolivegreen",peg$c278=peg$literalExpectation("darkolivegreen",false),peg$c279=function peg$c279(){return'#556b2fff';},peg$c280="DarkOliveGreen",peg$c281=peg$literalExpectation("DarkOliveGreen",false),peg$c282="darkorange",peg$c283=peg$literalExpectation("darkorange",false),peg$c284=function peg$c284(){return'#ff8c00ff';},peg$c285="Darkorange",peg$c286=peg$literalExpectation("Darkorange",false),peg$c287="darkorchid",peg$c288=peg$literalExpectation("darkorchid",false),peg$c289=function peg$c289(){return'#9932ccff';},peg$c290="DarkOrchid",peg$c291=peg$literalExpectation("DarkOrchid",false),peg$c292="darkred",peg$c293=peg$literalExpectation("darkred",false),peg$c294=function peg$c294(){return'#8b0000ff';},peg$c295="DarkRed",peg$c296=peg$literalExpectation("DarkRed",false),peg$c297="darksalmon",peg$c298=peg$literalExpectation("darksalmon",false),peg$c299=function peg$c299(){return'#e9967aff';},peg$c300="DarkSalmon",peg$c301=peg$literalExpectation("DarkSalmon",false),peg$c302="darkseagreen",peg$c303=peg$literalExpectation("darkseagreen",false),peg$c304=function peg$c304(){return'#8fbc8fff';},peg$c305="DarkSeaGreen",peg$c306=peg$literalExpectation("DarkSeaGreen",false),peg$c307="darkslateblue",peg$c308=peg$literalExpectation("darkslateblue",false),peg$c309=function peg$c309(){return'#483d8bff';},peg$c310="DarkSlateBlue",peg$c311=peg$literalExpectation("DarkSlateBlue",false),peg$c312="darkslategray",peg$c313=peg$literalExpectation("darkslategray",false),peg$c314=function peg$c314(){return'#2f4f4fff';},peg$c315="DarkSlateGray",peg$c316=peg$literalExpectation("DarkSlateGray",false),peg$c317="darkslategrey",peg$c318=peg$literalExpectation("darkslategrey",false),peg$c319="DarkSlateGrey",peg$c320=peg$literalExpectation("DarkSlateGrey",false),peg$c321="darkturquoise",peg$c322=peg$literalExpectation("darkturquoise",false),peg$c323=function peg$c323(){return'#00ced1ff';},peg$c324="DarkTurquoise",peg$c325=peg$literalExpectation("DarkTurquoise",false),peg$c326="darkviolet",peg$c327=peg$literalExpectation("darkviolet",false),peg$c328=function peg$c328(){return'#9400d3ff';},peg$c329="DarkViolet",peg$c330=peg$literalExpectation("DarkViolet",false),peg$c331="deeppink",peg$c332=peg$literalExpectation("deeppink",false),peg$c333=function peg$c333(){return'#ff1493ff';},peg$c334="DeepPink",peg$c335=peg$literalExpectation("DeepPink",false),peg$c336="deepskyblue",peg$c337=peg$literalExpectation("deepskyblue",false),peg$c338=function peg$c338(){return'#00bfffff';},peg$c339="DeepSkyBlue",peg$c340=peg$literalExpectation("DeepSkyBlue",false),peg$c341="dimgray",peg$c342=peg$literalExpectation("dimgray",false),peg$c343=function peg$c343(){return'#696969ff';},peg$c344="DimGray",peg$c345=peg$literalExpectation("DimGray",false),peg$c346="dimgrey",peg$c347=peg$literalExpectation("dimgrey",false),peg$c348="DimGrey",peg$c349=peg$literalExpectation("DimGrey",false),peg$c350="dodgerblue",peg$c351=peg$literalExpectation("dodgerblue",false),peg$c352=function peg$c352(){return'#1e90ffff';},peg$c353="DodgerBlue",peg$c354=peg$literalExpectation("DodgerBlue",false),peg$c355="firebrick",peg$c356=peg$literalExpectation("firebrick",false),peg$c357=function peg$c357(){return'#b22222ff';},peg$c358="FireBrick",peg$c359=peg$literalExpectation("FireBrick",false),peg$c360="floralwhite",peg$c361=peg$literalExpectation("floralwhite",false),peg$c362=function peg$c362(){return'#fffaf0ff';},peg$c363="FloralWhite",peg$c364=peg$literalExpectation("FloralWhite",false),peg$c365="forestgreen",peg$c366=peg$literalExpectation("forestgreen",false),peg$c367=function peg$c367(){return'#228b22ff';},peg$c368="ForestGreen",peg$c369=peg$literalExpectation("ForestGreen",false),peg$c370="fuchsia",peg$c371=peg$literalExpectation("fuchsia",false),peg$c372=function peg$c372(){return'#ff00ffff';},peg$c373="Fuchsia",peg$c374=peg$literalExpectation("Fuchsia",false),peg$c375="gainsboro",peg$c376=peg$literalExpectation("gainsboro",false),peg$c377=function peg$c377(){return'#dcdcdcff';},peg$c378="Gainsboro",peg$c379=peg$literalExpectation("Gainsboro",false),peg$c380="ghostwhite",peg$c381=peg$literalExpectation("ghostwhite",false),peg$c382=function peg$c382(){return'#f8f8ffff';},peg$c383="GhostWhite",peg$c384=peg$literalExpectation("GhostWhite",false),peg$c385="gold",peg$c386=peg$literalExpectation("gold",false),peg$c387=function peg$c387(){return'#ffd700ff';},peg$c388="Gold",peg$c389=peg$literalExpectation("Gold",false),peg$c390="goldenrod",peg$c391=peg$literalExpectation("goldenrod",false),peg$c392=function peg$c392(){return'#daa520ff';},peg$c393="GoldenRod",peg$c394=peg$literalExpectation("GoldenRod",false),peg$c395="gray",peg$c396=peg$literalExpectation("gray",false),peg$c397=function peg$c397(){return'#808080ff';},peg$c398="Gray",peg$c399=peg$literalExpectation("Gray",false),peg$c400="grey",peg$c401=peg$literalExpectation("grey",false),peg$c402="Grey",peg$c403=peg$literalExpectation("Grey",false),peg$c404="green",peg$c405=peg$literalExpectation("green",false),peg$c406=function peg$c406(){return'#008000ff';},peg$c407="Green",peg$c408=peg$literalExpectation("Green",false),peg$c409="greenyellow",peg$c410=peg$literalExpectation("greenyellow",false),peg$c411=function peg$c411(){return'#adff2fff';},peg$c412="GreenYellow",peg$c413=peg$literalExpectation("GreenYellow",false),peg$c414="honeydew",peg$c415=peg$literalExpectation("honeydew",false),peg$c416=function peg$c416(){return'#f0fff0ff';},peg$c417="HoneyDew",peg$c418=peg$literalExpectation("HoneyDew",false),peg$c419="hotpink",peg$c420=peg$literalExpectation("hotpink",false),peg$c421=function peg$c421(){return'#ff69b4ff';},peg$c422="HotPink",peg$c423=peg$literalExpectation("HotPink",false),peg$c424="indianred",peg$c425=peg$literalExpectation("indianred",false),peg$c426=function peg$c426(){return'#cd5c5cff';},peg$c427="IndianRed",peg$c428=peg$literalExpectation("IndianRed",false),peg$c429="indigo",peg$c430=peg$literalExpectation("indigo",false),peg$c431=function peg$c431(){return'#4b0082ff';},peg$c432="Indigo",peg$c433=peg$literalExpectation("Indigo",false),peg$c434="ivory",peg$c435=peg$literalExpectation("ivory",false),peg$c436=function peg$c436(){return'#fffff0ff';},peg$c437="Ivory",peg$c438=peg$literalExpectation("Ivory",false),peg$c439="khaki",peg$c440=peg$literalExpectation("khaki",false),peg$c441=function peg$c441(){return'#f0e68cff';},peg$c442="Khaki",peg$c443=peg$literalExpectation("Khaki",false),peg$c444="lavender",peg$c445=peg$literalExpectation("lavender",false),peg$c446=function peg$c446(){return'#e6e6faff';},peg$c447="Lavender",peg$c448=peg$literalExpectation("Lavender",false),peg$c449="lavenderblush",peg$c450=peg$literalExpectation("lavenderblush",false),peg$c451=function peg$c451(){return'#fff0f5ff';},peg$c452="LavenderBlush",peg$c453=peg$literalExpectation("LavenderBlush",false),peg$c454="lawngreen",peg$c455=peg$literalExpectation("lawngreen",false),peg$c456=function peg$c456(){return'#7cfc00ff';},peg$c457="LawnGreen",peg$c458=peg$literalExpectation("LawnGreen",false),peg$c459="lemonchiffon",peg$c460=peg$literalExpectation("lemonchiffon",false),peg$c461=function peg$c461(){return'#fffacdff';},peg$c462="LemonChiffon",peg$c463=peg$literalExpectation("LemonChiffon",false),peg$c464="lightblue",peg$c465=peg$literalExpectation("lightblue",false),peg$c466=function peg$c466(){return'#add8e6ff';},peg$c467="LightBlue",peg$c468=peg$literalExpectation("LightBlue",false),peg$c469="lightcoral",peg$c470=peg$literalExpectation("lightcoral",false),peg$c471=function peg$c471(){return'#f08080ff';},peg$c472="LightCoral",peg$c473=peg$literalExpectation("LightCoral",false),peg$c474="lightcyan",peg$c475=peg$literalExpectation("lightcyan",false),peg$c476=function peg$c476(){return'#e0ffffff';},peg$c477="LightCyan",peg$c478=peg$literalExpectation("LightCyan",false),peg$c479="lightgoldenrodyellow",peg$c480=peg$literalExpectation("lightgoldenrodyellow",false),peg$c481=function peg$c481(){return'#fafad2ff';},peg$c482="LightGoldenRodYellow",peg$c483=peg$literalExpectation("LightGoldenRodYellow",false),peg$c484="lightgray",peg$c485=peg$literalExpectation("lightgray",false),peg$c486=function peg$c486(){return'#d3d3d3ff';},peg$c487="LightGray",peg$c488=peg$literalExpectation("LightGray",false),peg$c489="lightgrey",peg$c490=peg$literalExpectation("lightgrey",false),peg$c491="LightGrey",peg$c492=peg$literalExpectation("LightGrey",false),peg$c493="lightgreen",peg$c494=peg$literalExpectation("lightgreen",false),peg$c495=function peg$c495(){return'#90ee90ff';},peg$c496="LightGreen",peg$c497=peg$literalExpectation("LightGreen",false),peg$c498="lightpink",peg$c499=peg$literalExpectation("lightpink",false),peg$c500=function peg$c500(){return'#ffb6c1ff';},peg$c501="LightPink",peg$c502=peg$literalExpectation("LightPink",false),peg$c503="lightsalmon",peg$c504=peg$literalExpectation("lightsalmon",false),peg$c505=function peg$c505(){return'#ffa07aff';},peg$c506="LightSalmon",peg$c507=peg$literalExpectation("LightSalmon",false),peg$c508="lightseagreen",peg$c509=peg$literalExpectation("lightseagreen",false),peg$c510=function peg$c510(){return'#20b2aaff';},peg$c511="LightSeaGreen",peg$c512=peg$literalExpectation("LightSeaGreen",false),peg$c513="lightskyblue",peg$c514=peg$literalExpectation("lightskyblue",false),peg$c515=function peg$c515(){return'#87cefaff';},peg$c516="LightSkyBlue",peg$c517=peg$literalExpectation("LightSkyBlue",false),peg$c518="lightslategray",peg$c519=peg$literalExpectation("lightslategray",false),peg$c520=function peg$c520(){return'#778899ff';},peg$c521="LightSlateGray",peg$c522=peg$literalExpectation("LightSlateGray",false),peg$c523="lightslategrey",peg$c524=peg$literalExpectation("lightslategrey",false),peg$c525="LightSlateGrey",peg$c526=peg$literalExpectation("LightSlateGrey",false),peg$c527="lightsteelblue",peg$c528=peg$literalExpectation("lightsteelblue",false),peg$c529=function peg$c529(){return'#b0c4deff';},peg$c530="LightSteelBlue",peg$c531=peg$literalExpectation("LightSteelBlue",false),peg$c532="lightyellow",peg$c533=peg$literalExpectation("lightyellow",false),peg$c534=function peg$c534(){return'#ffffe0ff';},peg$c535="LightYellow",peg$c536=peg$literalExpectation("LightYellow",false),peg$c537="lime",peg$c538=peg$literalExpectation("lime",false),peg$c539=function peg$c539(){return'#00ff00ff';},peg$c540="Lime",peg$c541=peg$literalExpectation("Lime",false),peg$c542="limegreen",peg$c543=peg$literalExpectation("limegreen",false),peg$c544=function peg$c544(){return'#32cd32ff';},peg$c545="LimeGreen",peg$c546=peg$literalExpectation("LimeGreen",false),peg$c547="linen",peg$c548=peg$literalExpectation("linen",false),peg$c549=function peg$c549(){return'#faf0e6ff';},peg$c550="Linen",peg$c551=peg$literalExpectation("Linen",false),peg$c552="magenta",peg$c553=peg$literalExpectation("magenta",false),peg$c554="Magenta",peg$c555=peg$literalExpectation("Magenta",false),peg$c556="maroon",peg$c557=peg$literalExpectation("maroon",false),peg$c558=function peg$c558(){return'#800000ff';},peg$c559="Maroon",peg$c560=peg$literalExpectation("Maroon",false),peg$c561="mediumaquamarine",peg$c562=peg$literalExpectation("mediumaquamarine",false),peg$c563=function peg$c563(){return'#66cdaaff';},peg$c564="MediumAquaMarine",peg$c565=peg$literalExpectation("MediumAquaMarine",false),peg$c566="mediumblue",peg$c567=peg$literalExpectation("mediumblue",false),peg$c568=function peg$c568(){return'#0000cdff';},peg$c569="MediumBlue",peg$c570=peg$literalExpectation("MediumBlue",false),peg$c571="mediumorchid",peg$c572=peg$literalExpectation("mediumorchid",false),peg$c573=function peg$c573(){return'#ba55d3ff';},peg$c574="MediumOrchid",peg$c575=peg$literalExpectation("MediumOrchid",false),peg$c576="mediumpurple",peg$c577=peg$literalExpectation("mediumpurple",false),peg$c578=function peg$c578(){return'#9370d8ff';},peg$c579="MediumPurple",peg$c580=peg$literalExpectation("MediumPurple",false),peg$c581="mediumseagreen",peg$c582=peg$literalExpectation("mediumseagreen",false),peg$c583=function peg$c583(){return'#3cb371ff';},peg$c584="MediumSeaGreen",peg$c585=peg$literalExpectation("MediumSeaGreen",false),peg$c586="mediumslateblue",peg$c587=peg$literalExpectation("mediumslateblue",false),peg$c588=function peg$c588(){return'#7b68eeff';},peg$c589="MediumSlateBlue",peg$c590=peg$literalExpectation("MediumSlateBlue",false),peg$c591="mediumspringgreen",peg$c592=peg$literalExpectation("mediumspringgreen",false),peg$c593=function peg$c593(){return'#00fa9aff';},peg$c594="MediumSpringGreen",peg$c595=peg$literalExpectation("MediumSpringGreen",false),peg$c596="mediumturquoise",peg$c597=peg$literalExpectation("mediumturquoise",false),peg$c598=function peg$c598(){return'#48d1ccff';},peg$c599="MediumTurquoise",peg$c600=peg$literalExpectation("MediumTurquoise",false),peg$c601="mediumvioletred",peg$c602=peg$literalExpectation("mediumvioletred",false),peg$c603=function peg$c603(){return'#c71585ff';},peg$c604="MediumVioletRed",peg$c605=peg$literalExpectation("MediumVioletRed",false),peg$c606="midnightblue",peg$c607=peg$literalExpectation("midnightblue",false),peg$c608=function peg$c608(){return'#191970ff';},peg$c609="MidnightBlue",peg$c610=peg$literalExpectation("MidnightBlue",false),peg$c611="mintcream",peg$c612=peg$literalExpectation("mintcream",false),peg$c613=function peg$c613(){return'#f5fffaff';},peg$c614="MintCream",peg$c615=peg$literalExpectation("MintCream",false),peg$c616="mistyrose",peg$c617=peg$literalExpectation("mistyrose",false),peg$c618=function peg$c618(){return'#ffe4e1ff';},peg$c619="MistyRose",peg$c620=peg$literalExpectation("MistyRose",false),peg$c621="moccasin",peg$c622=peg$literalExpectation("moccasin",false),peg$c623=function peg$c623(){return'#ffe4b5ff';},peg$c624="Moccasin",peg$c625=peg$literalExpectation("Moccasin",false),peg$c626="navajowhite",peg$c627=peg$literalExpectation("navajowhite",false),peg$c628=function peg$c628(){return'#ffdeadff';},peg$c629="NavajoWhite",peg$c630=peg$literalExpectation("NavajoWhite",false),peg$c631="navy",peg$c632=peg$literalExpectation("navy",false),peg$c633=function peg$c633(){return'#000080ff';},peg$c634="Navy",peg$c635=peg$literalExpectation("Navy",false),peg$c636="oldlace",peg$c637=peg$literalExpectation("oldlace",false),peg$c638=function peg$c638(){return'#fdf5e6ff';},peg$c639="OldLace",peg$c640=peg$literalExpectation("OldLace",false),peg$c641="olive",peg$c642=peg$literalExpectation("olive",false),peg$c643=function peg$c643(){return'#808000ff';},peg$c644="Olive",peg$c645=peg$literalExpectation("Olive",false),peg$c646="olivedrab",peg$c647=peg$literalExpectation("olivedrab",false),peg$c648=function peg$c648(){return'#6b8e23ff';},peg$c649="OliveDrab",peg$c650=peg$literalExpectation("OliveDrab",false),peg$c651="orange",peg$c652=peg$literalExpectation("orange",false),peg$c653=function peg$c653(){return'#ffa500ff';},peg$c654="Orange",peg$c655=peg$literalExpectation("Orange",false),peg$c656="orangered",peg$c657=peg$literalExpectation("orangered",false),peg$c658=function peg$c658(){return'#ff4500ff';},peg$c659="OrangeRed",peg$c660=peg$literalExpectation("OrangeRed",false),peg$c661="orchid",peg$c662=peg$literalExpectation("orchid",false),peg$c663=function peg$c663(){return'#da70d6ff';},peg$c664="Orchid",peg$c665=peg$literalExpectation("Orchid",false),peg$c666="palegoldenrod",peg$c667=peg$literalExpectation("palegoldenrod",false),peg$c668=function peg$c668(){return'#eee8aaff';},peg$c669="PaleGoldenRod",peg$c670=peg$literalExpectation("PaleGoldenRod",false),peg$c671="palegreen",peg$c672=peg$literalExpectation("palegreen",false),peg$c673=function peg$c673(){return'#98fb98ff';},peg$c674="PaleGreen",peg$c675=peg$literalExpectation("PaleGreen",false),peg$c676="paleturquoise",peg$c677=peg$literalExpectation("paleturquoise",false),peg$c678=function peg$c678(){return'#afeeeeff';},peg$c679="PaleTurquoise",peg$c680=peg$literalExpectation("PaleTurquoise",false),peg$c681="palevioletred",peg$c682=peg$literalExpectation("palevioletred",false),peg$c683=function peg$c683(){return'#d87093ff';},peg$c684="PaleVioletRed",peg$c685=peg$literalExpectation("PaleVioletRed",false),peg$c686="papayawhip",peg$c687=peg$literalExpectation("papayawhip",false),peg$c688=function peg$c688(){return'#ffefd5ff';},peg$c689="PapayaWhip",peg$c690=peg$literalExpectation("PapayaWhip",false),peg$c691="peachpuff",peg$c692=peg$literalExpectation("peachpuff",false),peg$c693=function peg$c693(){return'#ffdab9ff';},peg$c694="PeachPuff",peg$c695=peg$literalExpectation("PeachPuff",false),peg$c696="peru",peg$c697=peg$literalExpectation("peru",false),peg$c698=function peg$c698(){return'#cd853fff';},peg$c699="Peru",peg$c700=peg$literalExpectation("Peru",false),peg$c701="pink",peg$c702=peg$literalExpectation("pink",false),peg$c703=function peg$c703(){return'#ffc0cbff';},peg$c704="Pink",peg$c705=peg$literalExpectation("Pink",false),peg$c706="plum",peg$c707=peg$literalExpectation("plum",false),peg$c708=function peg$c708(){return'#dda0ddff';},peg$c709="Plum",peg$c710=peg$literalExpectation("Plum",false),peg$c711="powderblue",peg$c712=peg$literalExpectation("powderblue",false),peg$c713=function peg$c713(){return'#b0e0e6ff';},peg$c714="PowderBlue",peg$c715=peg$literalExpectation("PowderBlue",false),peg$c716="purple",peg$c717=peg$literalExpectation("purple",false),peg$c718=function peg$c718(){return'#800080ff';},peg$c719="Purple",peg$c720=peg$literalExpectation("Purple",false),peg$c721="red",peg$c722=peg$literalExpectation("red",false),peg$c723=function peg$c723(){return'#ff0000ff';},peg$c724="Red",peg$c725=peg$literalExpectation("Red",false),peg$c726="rosybrown",peg$c727=peg$literalExpectation("rosybrown",false),peg$c728=function peg$c728(){return'#bc8f8fff';},peg$c729="RosyBrown",peg$c730=peg$literalExpectation("RosyBrown",false),peg$c731="royalblue",peg$c732=peg$literalExpectation("royalblue",false),peg$c733=function peg$c733(){return'#4169e1ff';},peg$c734="RoyalBlue",peg$c735=peg$literalExpectation("RoyalBlue",false),peg$c736="saddlebrown",peg$c737=peg$literalExpectation("saddlebrown",false),peg$c738=function peg$c738(){return'#8b4513ff';},peg$c739="SaddleBrown",peg$c740=peg$literalExpectation("SaddleBrown",false),peg$c741="salmon",peg$c742=peg$literalExpectation("salmon",false),peg$c743=function peg$c743(){return'#fa8072ff';},peg$c744="Salmon",peg$c745=peg$literalExpectation("Salmon",false),peg$c746="sandybrown",peg$c747=peg$literalExpectation("sandybrown",false),peg$c748=function peg$c748(){return'#f4a460ff';},peg$c749="SandyBrown",peg$c750=peg$literalExpectation("SandyBrown",false),peg$c751="seagreen",peg$c752=peg$literalExpectation("seagreen",false),peg$c753=function peg$c753(){return'#2e8b57ff';},peg$c754="SeaGreen",peg$c755=peg$literalExpectation("SeaGreen",false),peg$c756="seashell",peg$c757=peg$literalExpectation("seashell",false),peg$c758=function peg$c758(){return'#fff5eeff';},peg$c759="SeaShell",peg$c760=peg$literalExpectation("SeaShell",false),peg$c761="sienna",peg$c762=peg$literalExpectation("sienna",false),peg$c763=function peg$c763(){return'#a0522dff';},peg$c764="Sienna",peg$c765=peg$literalExpectation("Sienna",false),peg$c766="silver",peg$c767=peg$literalExpectation("silver",false),peg$c768=function peg$c768(){return'#c0c0c0ff';},peg$c769="Silver",peg$c770=peg$literalExpectation("Silver",false),peg$c771="skyblue",peg$c772=peg$literalExpectation("skyblue",false),peg$c773=function peg$c773(){return'#87ceebff';},peg$c774="SkyBlue",peg$c775=peg$literalExpectation("SkyBlue",false),peg$c776="slateblue",peg$c777=peg$literalExpectation("slateblue",false),peg$c778=function peg$c778(){return'#6a5acdff';},peg$c779="SlateBlue",peg$c780=peg$literalExpectation("SlateBlue",false),peg$c781="slategray",peg$c782=peg$literalExpectation("slategray",false),peg$c783=function peg$c783(){return'#708090ff';},peg$c784="SlateGray",peg$c785=peg$literalExpectation("SlateGray",false),peg$c786="slategrey",peg$c787=peg$literalExpectation("slategrey",false),peg$c788="SlateGrey",peg$c789=peg$literalExpectation("SlateGrey",false),peg$c790="snow",peg$c791=peg$literalExpectation("snow",false),peg$c792=function peg$c792(){return'#fffafaff';},peg$c793="Snow",peg$c794=peg$literalExpectation("Snow",false),peg$c795="springgreen",peg$c796=peg$literalExpectation("springgreen",false),peg$c797=function peg$c797(){return'#00ff7fff';},peg$c798="SpringGreen",peg$c799=peg$literalExpectation("SpringGreen",false),peg$c800="steelblue",peg$c801=peg$literalExpectation("steelblue",false),peg$c802=function peg$c802(){return'#4682b4ff';},peg$c803="SteelBlue",peg$c804=peg$literalExpectation("SteelBlue",false),peg$c805="tan",peg$c806=peg$literalExpectation("tan",false),peg$c807=function peg$c807(){return'#d2b48cff';},peg$c808="Tan",peg$c809=peg$literalExpectation("Tan",false),peg$c810="teal",peg$c811=peg$literalExpectation("teal",false),peg$c812=function peg$c812(){return'#008080ff';},peg$c813="Teal",peg$c814=peg$literalExpectation("Teal",false),peg$c815="thistle",peg$c816=peg$literalExpectation("thistle",false),peg$c817=function peg$c817(){return'#d8bfd8ff';},peg$c818="Thistle",peg$c819=peg$literalExpectation("Thistle",false),peg$c820="tomato",peg$c821=peg$literalExpectation("tomato",false),peg$c822=function peg$c822(){return'#ff6347ff';},peg$c823="Tomato",peg$c824=peg$literalExpectation("Tomato",false),peg$c825="turquoise",peg$c826=peg$literalExpectation("turquoise",false),peg$c827=function peg$c827(){return'#40e0d0ff';},peg$c828="Turquoise",peg$c829=peg$literalExpectation("Turquoise",false),peg$c830="violet",peg$c831=peg$literalExpectation("violet",false),peg$c832=function peg$c832(){return'#ee82eeff';},peg$c833="Violet",peg$c834=peg$literalExpectation("Violet",false),peg$c835="wheat",peg$c836=peg$literalExpectation("wheat",false),peg$c837=function peg$c837(){return'#f5deb3ff';},peg$c838="Wheat",peg$c839=peg$literalExpectation("Wheat",false),peg$c840="white",peg$c841=peg$literalExpectation("white",false),peg$c842=function peg$c842(){return'#ffffffff';},peg$c843="White",peg$c844=peg$literalExpectation("White",false),peg$c845="whitesmoke",peg$c846=peg$literalExpectation("whitesmoke",false),peg$c847=function peg$c847(){return'#f5f5f5ff';},peg$c848="WhiteSmoke",peg$c849=peg$literalExpectation("WhiteSmoke",false),peg$c850="yellow",peg$c851=peg$literalExpectation("yellow",false),peg$c852=function peg$c852(){return'#ffff00ff';},peg$c853="Yellow",peg$c854=peg$literalExpectation("Yellow",false),peg$c855="yellowgreen",peg$c856=peg$literalExpectation("yellowgreen",false),peg$c857=function peg$c857(){return'#9acd32ff';},peg$c858="YellowGreen",peg$c859=peg$literalExpectation("YellowGreen",false),peg$c860="#",peg$c861=peg$literalExpectation("#",false),peg$c862=function peg$c862(r,g,b){return""+r+r+g+g+b+b+"ff";},peg$c863=function peg$c863(r1,r2,g1,g2,b1,b2){return""+r1+r2+g1+g2+b1+b2+"ff";},peg$c864=function peg$c864(r,g,b,a){return""+r+r+g+g+b+b+a+a;},peg$c865=function peg$c865(r1,r2,g1,g2,b1,b2,a1,a2){return""+r1+r2+g1+g2+b1+b2+a1+a2;},peg$c866=peg$otherExpectation("color"),peg$c867="arc_label",peg$c868=peg$literalExpectation("arc_label",false),peg$c869="head_label",peg$c870=peg$literalExpectation("head_label",false),peg$c871="tail_label",peg$c872=peg$literalExpectation("tail_label",false),peg$c873=":",peg$c874=peg$literalExpectation(":",false),peg$c875=";",peg$c876=peg$literalExpectation(";",false),peg$c877=function peg$c877(key,value){return{key:key,value:value};},peg$c878=peg$otherExpectation("single edge color"),peg$c879="edge_color",peg$c880=peg$literalExpectation("edge_color",false),peg$c881=function peg$c881(value){return{key:'single_edge_color',value:value};},peg$c882="{",peg$c883=peg$literalExpectation("{",false),peg$c884="}",peg$c885=peg$literalExpectation("}",false),peg$c886=function peg$c886(items){return items;},peg$c887="%",peg$c888=peg$literalExpectation("%",false),peg$c889=function peg$c889(value){return{key:'arrow probability',value:value};},peg$c890="[",peg$c891=peg$literalExpectation("[",false),peg$c892="]",peg$c893=peg$literalExpectation("]",false),peg$c894=function peg$c894(names){return names.map(function(i){return i[0];});},peg$c895=function peg$c895(r_action,r_prob,l_desc,arrow,r_desc,l_prob,l_action,label,tail){var base={kind:arrow,to:label};if(tail&&tail!==[]){base.se=tail;}if(l_desc){base.l_desc=l_desc;}if(r_desc){base.r_desc=r_desc;}if(l_action){base.l_action=l_action;}if(r_action){base.r_action=r_action;}if(l_prob){base.l_probability=l_prob.value;}if(r_prob){base.r_probability=r_prob.value;}return base;},peg$c896=function peg$c896(label,se){var base={key:'transition',from:label};if(se&&se!==[]){base.se=se;}return base;},peg$c897="whargarbl",peg$c898=peg$literalExpectation("whargarbl",false),peg$c899="todo",peg$c900=peg$literalExpectation("todo",false),peg$c901=function peg$c901(validationkey,value){return{key:validationkey,value:value};},peg$c902="validation",peg$c903=peg$literalExpectation("validation",false),peg$c904="};",peg$c905=peg$literalExpectation("};",false),peg$c906=function peg$c906(validation_items){return{config_kind:"validation",config_items:validation_items||[]};},peg$c907="dot",peg$c908=peg$literalExpectation("dot",false),peg$c909="circo",peg$c910=peg$literalExpectation("circo",false),peg$c911="fdp",peg$c912=peg$literalExpectation("fdp",false),peg$c913="neato",peg$c914=peg$literalExpectation("neato",false),peg$c915="in_shape",peg$c916=peg$literalExpectation("in_shape",false),peg$c917="out_shape",peg$c918=peg$literalExpectation("out_shape",false),peg$c919="node_shape",peg$c920=peg$literalExpectation("node_shape",false),peg$c921="state",peg$c922=peg$literalExpectation("state",false),peg$c923=function peg$c923(state_items){return{config_kind:"state",config_items:state_items||[]};},peg$c924=function peg$c924(actionkey,value){return{key:actionkey,value:value};},peg$c925="action",peg$c926=peg$literalExpectation("action",false),peg$c927=function peg$c927(action_items){return{config_kind:"action",config_items:action_items||[]};},peg$c928=function peg$c928(transitionkey,value){return{key:transitionkey,value:value};},peg$c929=peg$otherExpectation("graph default edge color"),peg$c930=function peg$c930(value){return{key:'graph_default_edge_color',value:value};},peg$c931="transition",peg$c932=peg$literalExpectation("transition",false),peg$c933=function peg$c933(transition_items){return{config_kind:"transition",config_items:transition_items||[]};},peg$c934="graph_layout",peg$c935=peg$literalExpectation("graph_layout",false),peg$c936=function peg$c936(value){return{key:"graph_layout",value:value};},peg$c937="start_states",peg$c938=peg$literalExpectation("start_states",false),peg$c939=function peg$c939(value){return{key:"start_states",value:value};},peg$c940="end_states",peg$c941=peg$literalExpectation("end_states",false),peg$c942=function peg$c942(value){return{key:"end_states",value:value};},peg$c943="graph_bg_color",peg$c944=peg$literalExpectation("graph_bg_color",false),peg$c945=function peg$c945(value){return{key:"graph_bg_color",value:value};},peg$c946=peg$otherExpectation("configuration"),peg$c947="MIT",peg$c948=peg$literalExpectation("MIT",false),peg$c949="BSD 2-clause",peg$c950=peg$literalExpectation("BSD 2-clause",false),peg$c951="BSD 3-clause",peg$c952=peg$literalExpectation("BSD 3-clause",false),peg$c953="Apache 2.0",peg$c954=peg$literalExpectation("Apache 2.0",false),peg$c955="Mozilla 2.0",peg$c956=peg$literalExpectation("Mozilla 2.0",false),peg$c957="Public Domain",peg$c958=peg$literalExpectation("Public Domain",false),peg$c959="GPL v2",peg$c960=peg$literalExpectation("GPL v2",false),peg$c961="GPL v3",peg$c962=peg$literalExpectation("GPL v3",false),peg$c963="LGPL v2.1",peg$c964=peg$literalExpectation("LGPL v2.1",false),peg$c965="LGPL v3.0",peg$c966=peg$literalExpectation("LGPL v3.0",false),peg$c967="color",peg$c968=peg$literalExpectation("color",false),peg$c969=function peg$c969(value){return{key:"state color",value:value};},peg$c970=peg$otherExpectation("state quality"),peg$c971=function peg$c971(name,value){return{key:"state quality",name:name,value:value};},peg$c972=peg$otherExpectation("state definition"),peg$c973=function peg$c973(name,sq){return{key:"State qualities",value:sq};},peg$c974="machine_author",peg$c975=peg$literalExpectation("machine_author",false),peg$c976=function peg$c976(author){return{key:"machine_author",value:author};},peg$c977="machine_contributor",peg$c978=peg$literalExpectation("machine_contributor",false),peg$c979=function peg$c979(contributor){return{key:"machine_contributor",value:contributor};},peg$c980="machine_comment",peg$c981=peg$literalExpectation("machine_comment",false),peg$c982=function peg$c982(comment){return{key:"machine_comment",value:comment};},peg$c983="machine_definition",peg$c984=peg$literalExpectation("machine_definition",false),peg$c985=function peg$c985(definition){return{key:"machine_definition",value:definition};},peg$c986="machine_name",peg$c987=peg$literalExpectation("machine_name",false),peg$c988=function peg$c988(name){return{key:"machine_name",value:name};},peg$c989="machine_reference",peg$c990=peg$literalExpectation("machine_reference",false),peg$c991=function peg$c991(reference){return{key:"machine_reference",value:reference};},peg$c992="machine_version",peg$c993=peg$literalExpectation("machine_version",false),peg$c994=function peg$c994(version){return{key:"machine_version",value:version};},peg$c995="machine_license",peg$c996=peg$literalExpectation("machine_license",false),peg$c997=function peg$c997(license){return{key:"machine_license",value:license};},peg$c998="fsl_version",peg$c999=peg$literalExpectation("fsl_version",false),peg$c1000=function peg$c1000(fsl_version){return{key:"fsl_version",value:fsl_version};},peg$c1001="group",peg$c1002=peg$literalExpectation("group",false),peg$c1003=function peg$c1003(name,nl){return{key:"group definition",value:{name:name,list:nl}};},peg$c1004="/*",peg$c1005=peg$literalExpectation("/*",false),peg$c1006="*/",peg$c1007=peg$literalExpectation("*/",false),peg$c1008=peg$anyExpectation(),peg$c1009=function peg$c1009(){return{key:'comment'};},peg$c1010="//",peg$c1011=peg$literalExpectation("//",false),peg$currPos=0,peg$savedPos=0,peg$posDetailsCache=[{line:1,column:1}],peg$maxFailPos=0,peg$maxFailExpected=[],peg$silentFails=0,peg$result;if("startRule"in options){if(!(options.startRule in peg$startRuleFunctions)){throw new Error("Can't start parsing from rule \""+options.startRule+"\".");}peg$startRuleFunction=peg$startRuleFunctions[options.startRule];}function text(){return input.substring(peg$savedPos,peg$currPos);}function location(){return peg$computeLocation(peg$savedPos,peg$currPos);}function expected(description,location){location=location!==void 0?location:peg$computeLocation(peg$savedPos,peg$currPos);throw peg$buildStructuredError([peg$otherExpectation(description)],input.substring(peg$savedPos,peg$currPos),location);}function error(message,location){location=location!==void 0?location:peg$computeLocation(peg$savedPos,peg$currPos);throw peg$buildSimpleError(message,location);}function peg$literalExpectation(text,ignoreCase){return{type:"literal",text:text,ignoreCase:ignoreCase};}function peg$classExpectation(parts,inverted,ignoreCase){return{type:"class",parts:parts,inverted:inverted,ignoreCase:ignoreCase};}function peg$anyExpectation(){return{type:"any"};}function peg$endExpectation(){return{type:"end"};}function peg$otherExpectation(description){return{type:"other",description:description};}function peg$computePosDetails(pos){var details=peg$posDetailsCache[pos],p;if(details){return details;}else{p=pos-1;while(!peg$posDetailsCache[p]){p--;}details=peg$posDetailsCache[p];details={line:details.line,column:details.column};while(p<pos){if(input.charCodeAt(p)===10){details.line++;details.column=1;}else{details.column++;}p++;}peg$posDetailsCache[pos]=details;return details;}}function peg$computeLocation(startPos,endPos){var startPosDetails=peg$computePosDetails(startPos),endPosDetails=peg$computePosDetails(endPos);return{start:{offset:startPos,line:startPosDetails.line,column:startPosDetails.column},end:{offset:endPos,line:endPosDetails.line,column:endPosDetails.column}};}function peg$fail(expected){if(peg$currPos<peg$maxFailPos){return;}if(peg$currPos>peg$maxFailPos){peg$maxFailPos=peg$currPos;peg$maxFailExpected=[];}peg$maxFailExpected.push(expected);}function peg$buildSimpleError(message,location){return new peg$SyntaxError(message,null,null,location);}function peg$buildStructuredError(expected,found,location){return new peg$SyntaxError(peg$SyntaxError.buildMessage(expected,found),expected,found,location);}function peg$parseDocument(){var s0,s1,s2,s3;s0=peg$currPos;s1=peg$parseWhitespace();if(s1!==peg$FAILED){s2=peg$parseTermList();if(s2!==peg$FAILED){s3=peg$parseWhitespace();if(s3!==peg$FAILED){peg$savedPos=s0;s1=peg$c0(s2);s0=s1;}else{peg$currPos=s0;s0=peg$FAILED;}}else{peg$currPos=s0;s0=peg$FAILED;}}else{peg$currPos=s0;s0=peg$FAILED;}return s0;}function peg$parseGvizShape(){var s0;if(input.substr(peg$currPos,6)===peg$c1){s0=peg$c1;peg$currPos+=6;}else{s0=peg$FAILED;if(peg$silentFails===0){peg$fail(peg$c2);}}if(s0===peg$FAILED){if(input.substr(peg$currPos,9)===peg$c3){s0=peg$c3;peg$currPos+=9;}else{s0=peg$FAILED;if(peg$silentFails===0){peg$fail(peg$c4);}}if(s0===peg$FAILED){if(input.substr(peg$currPos,6)===peg$c5){s0=peg$c5;peg$currPos+=6;}else{s0=peg$FAILED;if(peg$silentFails===0){peg$fail(peg$c6);}}}}return s0;}function peg$parseForwardLightArrow(){var s0,s1;peg$silentFails++;if(input.substr(peg$currPos,2)===peg$c8){s0=peg$c8;peg$currPos+=2;}else{s0=peg$FAILED;if(peg$silentFails===0){peg$fail(peg$c9);}}peg$silentFails--;if(s0===peg$FAILED){s1=peg$FAILED;if(peg$silentFails===0){peg$fail(peg$c7);}}return s0;}function peg$parseTwoWayLightArrow(){var s0,s1;peg$silentFails++;if(input.substr(peg$currPos,3)===peg$c11){s0=peg$c11;peg$currPos+=3;}else{s0=peg$FAILED;if(peg$silentFails===0){peg$fail(peg$c12);}}peg$silentFails--;if(s0===peg$FAILED){s1=peg$FAILED;if(peg$silentFails===0){peg$fail(peg$c10);}}return s0;}function peg$parseBackLightArrow(){var s0,s1;peg$silentFails++;if(input.substr(peg$currPos,2)===peg$c14){s0=peg$c14;peg$currPos+=2;}else{s0=peg$FAILED;if(peg$silentFails===0){peg$fail(peg$c15);}}peg$silentFails--;if(s0===peg$FAILED){s1=peg$FAILED;if(peg$silentFails===0){peg$fail(peg$c13);}}return s0;}function peg$parseForwardFatArrow(){var s0,s1;peg$silentFails++;if(input.substr(peg$currPos,2)===peg$c17){s0=peg$c17;peg$currPos+=2;}else{s0=peg$FAILED;if(peg$silentFails===0){peg$fail(peg$c18);}}peg$silentFails--;if(s0===peg$FAILED){s1=peg$FAILED;if(peg$silentFails===0){peg$fail(peg$c16);}}return s0;}function peg$parseTwoWayFatArrow(){var s0,s1;peg$silentFails++;if(input.substr(peg$currPos,3)===peg$c20){s0=peg$c20;peg$currPos+=3;}else{s0=peg$FAILED;if(peg$silentFails===0){peg$fail(peg$c21);}}peg$silentFails--;if(s0===peg$FAILED){s1=peg$FAILED;if(peg$silentFails===0){peg$fail(peg$c19);}}return s0;}function peg$parseBackFatArrow(){var s0,s1;peg$silentFails++;if(input.substr(peg$currPos,2)===peg$c23){s0=peg$c23;peg$currPos+=2;}else{s0=peg$FAILED;if(peg$silentFails===0){peg$fail(peg$c24);}}peg$silentFails--;if(s0===peg$FAILED){s1=peg$FAILED;if(peg$silentFails===0){peg$fail(peg$c22);}}return s0;}function peg$parseForwardTildeArrow(){var s0,s1;peg$silentFails++;if(input.substr(peg$currPos,2)===peg$c26){s0=peg$c26;peg$currPos+=2;}else{s0=peg$FAILED;if(peg$silentFails===0){peg$fail(peg$c27);}}peg$silentFails--;if(s0===peg$FAILED){s1=peg$FAILED;if(peg$silentFails===0){peg$fail(peg$c25);}}return s0;}function peg$parseTwoWayTildeArrow(){var s0,s1;peg$silentFails++;if(input.substr(peg$currPos,3)===peg$c29){s0=peg$c29;peg$currPos+=3;}else{s0=peg$FAILED;if(peg$silentFails===0){peg$fail(peg$c30);}}peg$silentFails--;if(s0===peg$FAILED){s1=peg$FAILED;if(peg$silentFails===0){peg$fail(peg$c28);}}return s0;}function peg$parseBackTildeArrow(){var s0,s1;peg$silentFails++;if(input.substr(peg$currPos,2)===peg$c32){s0=peg$c32;peg$currPos+=2;}else{s0=peg$FAILED;if(peg$silentFails===0){peg$fail(peg$c33);}}peg$silentFails--;if(s0===peg$FAILED){s1=peg$FAILED;if(peg$silentFails===0){peg