jssm
Version:
A Javascript finite state machine (FSM) with a terse DSL and a simple API. Most FSMs are one-liners. Fast, easy, powerful, well tested, typed with TypeScript, and visualizations. MIT License.
1 lines • 249 kB
JavaScript
"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(expectation){return'"'+literalEscape(expectation.text)+'"'},class:function(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(expectation){return"any character"},end:function(expectation){return"end of input"},other:function(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(e){return e},peg$c1="none",peg$c2=peg$literalExpectation("none",false),peg$c3="default",peg$c4=peg$literalExpectation("default",false),peg$c5="modern",peg$c6=peg$literalExpectation("modern",false),peg$c7="ocean",peg$c8=peg$literalExpectation("ocean",false),peg$c9="box3d",peg$c10=peg$literalExpectation("box3d",false),peg$c11="polygon",peg$c12=peg$literalExpectation("polygon",false),peg$c13="ellipse",peg$c14=peg$literalExpectation("ellipse",false),peg$c15="oval",peg$c16=peg$literalExpectation("oval",false),peg$c17="circle",peg$c18=peg$literalExpectation("circle",false),peg$c19="point",peg$c20=peg$literalExpectation("point",false),peg$c21="egg",peg$c22=peg$literalExpectation("egg",false),peg$c23="triangle",peg$c24=peg$literalExpectation("triangle",false),peg$c25="plaintext",peg$c26=peg$literalExpectation("plaintext",false),peg$c27="plain",peg$c28=peg$literalExpectation("plain",false),peg$c29="diamond",peg$c30=peg$literalExpectation("diamond",false),peg$c31="trapezium",peg$c32=peg$literalExpectation("trapezium",false),peg$c33="parallelogram",peg$c34=peg$literalExpectation("parallelogram",false),peg$c35="house",peg$c36=peg$literalExpectation("house",false),peg$c37="pentagon",peg$c38=peg$literalExpectation("pentagon",false),peg$c39="hexagon",peg$c40=peg$literalExpectation("hexagon",false),peg$c41="septagon",peg$c42=peg$literalExpectation("septagon",false),peg$c43="octagon",peg$c44=peg$literalExpectation("octagon",false),peg$c45="doublecircle",peg$c46=peg$literalExpectation("doublecircle",false),peg$c47="doubleoctagon",peg$c48=peg$literalExpectation("doubleoctagon",false),peg$c49="tripleoctagon",peg$c50=peg$literalExpectation("tripleoctagon",false),peg$c51="invtriangle",peg$c52=peg$literalExpectation("invtriangle",false),peg$c53="invtrapezium",peg$c54=peg$literalExpectation("invtrapezium",false),peg$c55="invhouse",peg$c56=peg$literalExpectation("invhouse",false),peg$c57="Mdiamond",peg$c58=peg$literalExpectation("Mdiamond",false),peg$c59="Msquare",peg$c60=peg$literalExpectation("Msquare",false),peg$c61="Mcircle",peg$c62=peg$literalExpectation("Mcircle",false),peg$c63="rectangle",peg$c64=peg$literalExpectation("rectangle",false),peg$c65="rect",peg$c66=peg$literalExpectation("rect",false),peg$c67="square",peg$c68=peg$literalExpectation("square",false),peg$c69="star",peg$c70=peg$literalExpectation("star",false),peg$c71="underline",peg$c72=peg$literalExpectation("underline",false),peg$c73="cylinder",peg$c74=peg$literalExpectation("cylinder",false),peg$c75="note",peg$c76=peg$literalExpectation("note",false),peg$c77="tab",peg$c78=peg$literalExpectation("tab",false),peg$c79="folder",peg$c80=peg$literalExpectation("folder",false),peg$c81="box",peg$c82=peg$literalExpectation("box",false),peg$c83="component",peg$c84=peg$literalExpectation("component",false),peg$c85="promoter",peg$c86=peg$literalExpectation("promoter",false),peg$c87="cds",peg$c88=peg$literalExpectation("cds",false),peg$c89="terminator",peg$c90=peg$literalExpectation("terminator",false),peg$c91="utr",peg$c92=peg$literalExpectation("utr",false),peg$c93="primersite",peg$c94=peg$literalExpectation("primersite",false),peg$c95="restrictionsite",peg$c96=peg$literalExpectation("restrictionsite",false),peg$c97="fivepoverhang",peg$c98=peg$literalExpectation("fivepoverhang",false),peg$c99="threepoverhang",peg$c100=peg$literalExpectation("threepoverhang",false),peg$c101="noverhang",peg$c102=peg$literalExpectation("noverhang",false),peg$c103="assembly",peg$c104=peg$literalExpectation("assembly",false),peg$c105="signature",peg$c106=peg$literalExpectation("signature",false),peg$c107="insulator",peg$c108=peg$literalExpectation("insulator",false),peg$c109="ribosite",peg$c110=peg$literalExpectation("ribosite",false),peg$c111="rnastab",peg$c112=peg$literalExpectation("rnastab",false),peg$c113="proteasesite",peg$c114=peg$literalExpectation("proteasesite",false),peg$c115="proteinstab",peg$c116=peg$literalExpectation("proteinstab",false),peg$c117="rpromoter",peg$c118=peg$literalExpectation("rpromoter",false),peg$c119="rarrow",peg$c120=peg$literalExpectation("rarrow",false),peg$c121="larrow",peg$c122=peg$literalExpectation("larrow",false),peg$c123="lpromoter",peg$c124=peg$literalExpectation("lpromoter",false),peg$c125="record",peg$c126=peg$literalExpectation("record",false),peg$c127=peg$otherExpectation("forward light arrow ->"),peg$c128="->",peg$c129=peg$literalExpectation("->",false),peg$c130="→",peg$c131=peg$literalExpectation("→",false),peg$c132=function(){return"->"},peg$c133=peg$otherExpectation("two way light arrow <->"),peg$c134="<->",peg$c135=peg$literalExpectation("<->",false),peg$c136="↔",peg$c137=peg$literalExpectation("↔",false),peg$c138=function(){return"<->"},peg$c139=peg$otherExpectation("back light arrow <-"),peg$c140="<-",peg$c141=peg$literalExpectation("<-",false),peg$c142="←",peg$c143=peg$literalExpectation("←",false),peg$c144=function(){return"<-"},peg$c145=peg$otherExpectation("forward fat arrow =>"),peg$c146="=>",peg$c147=peg$literalExpectation("=>",false),peg$c148="⇒",peg$c149=peg$literalExpectation("⇒",false),peg$c150=function(){return"=>"},peg$c151=peg$otherExpectation("two way fat arrow <=>"),peg$c152="<=>",peg$c153=peg$literalExpectation("<=>",false),peg$c154="⇔",peg$c155=peg$literalExpectation("⇔",false),peg$c156=function(){return"<=>"},peg$c157=peg$otherExpectation("back fat arrow <="),peg$c158="<=",peg$c159=peg$literalExpectation("<=",false),peg$c160="⇐",peg$c161=peg$literalExpectation("⇐",false),peg$c162=function(){return"<="},peg$c163=peg$otherExpectation("forward tilde arrow ~>"),peg$c164="~>",peg$c165=peg$literalExpectation("~>",false),peg$c166="↛",peg$c167=peg$literalExpectation("↛",false),peg$c168=function(){return"~>"},peg$c169=peg$otherExpectation("two way tilde arrow <~>"),peg$c170="<~>",peg$c171=peg$literalExpectation("<~>",false),peg$c172="↮",peg$c173=peg$literalExpectation("↮",false),peg$c174=function(){return"<~>"},peg$c175=peg$otherExpectation("back tilde arrow <~"),peg$c176="<~",peg$c177=peg$literalExpectation("<~",false),peg$c178="↚",peg$c179=peg$literalExpectation("↚",false),peg$c180=function(){return"<~"},peg$c181=peg$otherExpectation("light fat arrow <-=>"),peg$c182="<-=>",peg$c183=peg$literalExpectation("<-=>",false),peg$c184="←⇒",peg$c185=peg$literalExpectation("←⇒",false),peg$c186=function(){return"<-=>"},peg$c187=peg$otherExpectation("light tilde arrow <-~>"),peg$c188="<-~>",peg$c189=peg$literalExpectation("<-~>",false),peg$c190="←↛",peg$c191=peg$literalExpectation("←↛",false),peg$c192=function(){return"<-~>"},peg$c193=peg$otherExpectation("fat light arrow <=->"),peg$c194="<=->",peg$c195=peg$literalExpectation("<=->",false),peg$c196="⇐→",peg$c197=peg$literalExpectation("⇐→",false),peg$c198=function(){return"<=->"},peg$c199=peg$otherExpectation("fat tilde arrow <=~>"),peg$c200="<=~>",peg$c201=peg$literalExpectation("<=~>",false),peg$c202="⇐↛",peg$c203=peg$literalExpectation("⇐↛",false),peg$c204=function(){return"<=~>"},peg$c205=peg$otherExpectation("tilde light arrow <~->"),peg$c206="<~->",peg$c207=peg$literalExpectation("<~->",false),peg$c208="↚→",peg$c209=peg$literalExpectation("↚→",false),peg$c210=function(){return"<~->"},peg$c211=peg$otherExpectation("tilde fat arrow <~=>"),peg$c212="<~=>",peg$c213=peg$literalExpectation("<~=>",false),peg$c214="↚⇒",peg$c215=peg$literalExpectation("↚⇒",false),peg$c216=function(){return"<~=>"},peg$c217=peg$otherExpectation("light arrow"),peg$c218=peg$otherExpectation("fat arrow"),peg$c219=peg$otherExpectation("tilde arrow"),peg$c220=peg$otherExpectation("mixed arrow"),peg$c221=peg$otherExpectation("arrow"),peg$c222="true",peg$c223=peg$literalExpectation("true",false),peg$c224=function(){return true},peg$c225="false",peg$c226=peg$literalExpectation("false",false),peg$c227=function(){return false},peg$c228="regular",peg$c229=peg$literalExpectation("regular",false),peg$c230="rounded",peg$c231=peg$literalExpectation("rounded",false),peg$c232="lined",peg$c233=peg$literalExpectation("lined",false),peg$c234="solid",peg$c235=peg$literalExpectation("solid",false),peg$c236="dotted",peg$c237=peg$literalExpectation("dotted",false),peg$c238="dashed",peg$c239=peg$literalExpectation("dashed",false),peg$c240=/^[0-9a-fA-F]/,peg$c241=peg$classExpectation([["0","9"],["a","f"],["A","F"]],false,false),peg$c242='"',peg$c243=peg$literalExpectation('"',false),peg$c244="\\",peg$c245=peg$literalExpectation("\\",false),peg$c246="/",peg$c247=peg$literalExpectation("/",false),peg$c248="b",peg$c249=peg$literalExpectation("b",false),peg$c250=function(){return"\b"},peg$c251="f",peg$c252=peg$literalExpectation("f",false),peg$c253=function(){return"\f"},peg$c254="n",peg$c255=peg$literalExpectation("n",false),peg$c256=function(){return"\n"},peg$c257="r",peg$c258=peg$literalExpectation("r",false),peg$c259=function(){return"\r"},peg$c260="t",peg$c261=peg$literalExpectation("t",false),peg$c262=function(){return"\t"},peg$c263="v",peg$c264=peg$literalExpectation("v",false),peg$c265=function(){return"\v"},peg$c266="u",peg$c267=peg$literalExpectation("u",false),peg$c268=function(digits){return String.fromCharCode(parseInt(digits,16))},peg$c269=function(Sequence){return Sequence},peg$c270=/^[ -!#-[\]-\u10FFFF]/,peg$c271=peg$classExpectation([[" ","!"],["#","["],["]","ჿ"],"F","F"],false,false),peg$c272="'",peg$c273=peg$literalExpectation("'",false),peg$c274=/^[ -&(-[\]-\u10FFFF]/,peg$c275=peg$classExpectation([[" ","&"],["(","["],["]","ჿ"],"F","F"],false,false),peg$c276=peg$otherExpectation("action label"),peg$c277=function(chars){return chars.join("")},peg$c278=/^[\n\r\u2028\u2029]/,peg$c279=peg$classExpectation(["\n","\r","\u2028","\u2029"],false,false),peg$c280=/^[ \t\n\r\x0B]/,peg$c281=peg$classExpectation([" ","\t","\n","\r","\v"],false,false),peg$c282="*/",peg$c283=peg$literalExpectation("*/",false),peg$c284=peg$anyExpectation(),peg$c285=peg$otherExpectation("block comment"),peg$c286="/*",peg$c287=peg$literalExpectation("/*",false),peg$c288=peg$otherExpectation("line comment"),peg$c289="//",peg$c290=peg$literalExpectation("//",false),peg$c291=peg$otherExpectation("whitespace"),peg$c292=/^[ \t\r\n\x0B]/,peg$c293=peg$classExpectation([" ","\t","\r","\n","\v"],false,false),peg$c294=peg$otherExpectation("string"),peg$c295=/^[0-9a-zA-Z._!$\^*!?,\x80-\uFFFF]/,peg$c296=peg$classExpectation([["0","9"],["a","z"],["A","Z"],".","_","!","$","^","*","!","?",",",["",""]],false,false),peg$c297=/^[0-9a-zA-Z.+=_\^()*&$#@!?,\x80-\uFFFF]/,peg$c298=peg$classExpectation([["0","9"],["a","z"],["A","Z"],".","+","=","_","^","(",")","*","&","$","#","@","!","?",",",["",""]],false,false),peg$c299=peg$otherExpectation("atom"),peg$c300=function(firstletter,text){return firstletter+(text||[]).join("")},peg$c301=peg$otherExpectation("label"),peg$c302="0",peg$c303=peg$literalExpectation("0",false),peg$c304=/^[0-9]/,peg$c305=peg$classExpectation([["0","9"]],false,false),peg$c306=/^[1-9]/,peg$c307=peg$classExpectation([["1","9"]],false,false),peg$c308=peg$otherExpectation("nonneg number"),peg$c309=".",peg$c310=peg$literalExpectation(".",false),peg$c311=function(){return parseFloat(text())},peg$c312=function(major,minor,patch){return{major:parseInt(major,10),minor:parseInt(minor,10),patch:parseInt(patch,10),full:text()}},peg$c313="^",peg$c314=peg$literalExpectation("^",false),peg$c315="~",peg$c316=peg$literalExpectation("~",false),peg$c317=">=",peg$c318=peg$literalExpectation(">=",false),peg$c319="<",peg$c320=peg$literalExpectation("<",false),peg$c321=">",peg$c322=peg$literalExpectation(">",false),peg$c323="http://",peg$c324=peg$literalExpectation("http://",false),peg$c325="https://",peg$c326=peg$literalExpectation("https://",false),peg$c327=/^[a-zA-Z0-9!*'():;@&=+$,\/?#[\]_.~\-]/,peg$c328=peg$classExpectation([["a","z"],["A","Z"],["0","9"],"!","*","'","(",")",":",";","@","&","=","+","$",",","/","?","#","[","]","_",".","~","-"],false,false),peg$c329=function(protocol){return text()},peg$c330="aliceblue",peg$c331=peg$literalExpectation("aliceblue",false),peg$c332=function(){return"#f0f8ffff"},peg$c333="AliceBlue",peg$c334=peg$literalExpectation("AliceBlue",false),peg$c335="antiquewhite",peg$c336=peg$literalExpectation("antiquewhite",false),peg$c337=function(){return"#faebd7ff"},peg$c338="AntiqueWhite",peg$c339=peg$literalExpectation("AntiqueWhite",false),peg$c340="aquamarine",peg$c341=peg$literalExpectation("aquamarine",false),peg$c342=function(){return"#7fffd4ff"},peg$c343="Aquamarine",peg$c344=peg$literalExpectation("Aquamarine",false),peg$c345="aqua",peg$c346=peg$literalExpectation("aqua",false),peg$c347=function(){return"#00ffffff"},peg$c348="Aqua",peg$c349=peg$literalExpectation("Aqua",false),peg$c350="azure",peg$c351=peg$literalExpectation("azure",false),peg$c352=function(){return"#f0ffffff"},peg$c353="Azure",peg$c354=peg$literalExpectation("Azure",false),peg$c355="beige",peg$c356=peg$literalExpectation("beige",false),peg$c357=function(){return"#f5f5dcff"},peg$c358="Beige",peg$c359=peg$literalExpectation("Beige",false),peg$c360="bisque",peg$c361=peg$literalExpectation("bisque",false),peg$c362=function(){return"#ffe4c4ff"},peg$c363="Bisque",peg$c364=peg$literalExpectation("Bisque",false),peg$c365="black",peg$c366=peg$literalExpectation("black",false),peg$c367=function(){return"#000000ff"},peg$c368="Black",peg$c369=peg$literalExpectation("Black",false),peg$c370="blanchedalmond",peg$c371=peg$literalExpectation("blanchedalmond",false),peg$c372=function(){return"#ffebcdff"},peg$c373="BlanchedAlmond",peg$c374=peg$literalExpectation("BlanchedAlmond",false),peg$c375="blueviolet",peg$c376=peg$literalExpectation("blueviolet",false),peg$c377=function(){return"#8a2be2ff"},peg$c378="BlueViolet",peg$c379=peg$literalExpectation("BlueViolet",false),peg$c380="blue",peg$c381=peg$literalExpectation("blue",false),peg$c382=function(){return"#0000ffff"},peg$c383="Blue",peg$c384=peg$literalExpectation("Blue",false),peg$c385="brown",peg$c386=peg$literalExpectation("brown",false),peg$c387=function(){return"#a52a2aff"},peg$c388="Brown",peg$c389=peg$literalExpectation("Brown",false),peg$c390="burlywood",peg$c391=peg$literalExpectation("burlywood",false),peg$c392=function(){return"#deb887ff"},peg$c393="BurlyWood",peg$c394=peg$literalExpectation("BurlyWood",false),peg$c395="cadetblue",peg$c396=peg$literalExpectation("cadetblue",false),peg$c397=function(){return"#5f9ea0ff"},peg$c398="CadetBlue",peg$c399=peg$literalExpectation("CadetBlue",false),peg$c400="chartreuse",peg$c401=peg$literalExpectation("chartreuse",false),peg$c402=function(){return"#7fff00ff"},peg$c403="Chartreuse",peg$c404=peg$literalExpectation("Chartreuse",false),peg$c405="chocolate",peg$c406=peg$literalExpectation("chocolate",false),peg$c407=function(){return"#d2691eff"},peg$c408="Chocolate",peg$c409=peg$literalExpectation("Chocolate",false),peg$c410="coral",peg$c411=peg$literalExpectation("coral",false),peg$c412=function(){return"#ff7f50ff"},peg$c413="Coral",peg$c414=peg$literalExpectation("Coral",false),peg$c415="cornflowerblue",peg$c416=peg$literalExpectation("cornflowerblue",false),peg$c417=function(){return"#6495edff"},peg$c418="CornflowerBlue",peg$c419=peg$literalExpectation("CornflowerBlue",false),peg$c420="cornsilk",peg$c421=peg$literalExpectation("cornsilk",false),peg$c422=function(){return"#fff8dcff"},peg$c423="Cornsilk",peg$c424=peg$literalExpectation("Cornsilk",false),peg$c425="crimson",peg$c426=peg$literalExpectation("crimson",false),peg$c427=function(){return"#dc143cff"},peg$c428="Crimson",peg$c429=peg$literalExpectation("Crimson",false),peg$c430="cyan",peg$c431=peg$literalExpectation("cyan",false),peg$c432="Cyan",peg$c433=peg$literalExpectation("Cyan",false),peg$c434="darkblue",peg$c435=peg$literalExpectation("darkblue",false),peg$c436=function(){return"#00008bff"},peg$c437="DarkBlue",peg$c438=peg$literalExpectation("DarkBlue",false),peg$c439="darkcyan",peg$c440=peg$literalExpectation("darkcyan",false),peg$c441=function(){return"#008b8bff"},peg$c442="DarkCyan",peg$c443=peg$literalExpectation("DarkCyan",false),peg$c444="darkgoldenrod",peg$c445=peg$literalExpectation("darkgoldenrod",false),peg$c446=function(){return"#b8860bff"},peg$c447="DarkGoldenRod",peg$c448=peg$literalExpectation("DarkGoldenRod",false),peg$c449="darkgray",peg$c450=peg$literalExpectation("darkgray",false),peg$c451=function(){return"#a9a9a9ff"},peg$c452="DarkGray",peg$c453=peg$literalExpectation("DarkGray",false),peg$c454="darkgrey",peg$c455=peg$literalExpectation("darkgrey",false),peg$c456="DarkGrey",peg$c457=peg$literalExpectation("DarkGrey",false),peg$c458="darkgreen",peg$c459=peg$literalExpectation("darkgreen",false),peg$c460=function(){return"#006400ff"},peg$c461="DarkGreen",peg$c462=peg$literalExpectation("DarkGreen",false),peg$c463="darkkhaki",peg$c464=peg$literalExpectation("darkkhaki",false),peg$c465=function(){return"#bdb76bff"},peg$c466="DarkKhaki",peg$c467=peg$literalExpectation("DarkKhaki",false),peg$c468="darkmagenta",peg$c469=peg$literalExpectation("darkmagenta",false),peg$c470=function(){return"#8b008bff"},peg$c471="DarkMagenta",peg$c472=peg$literalExpectation("DarkMagenta",false),peg$c473="darkolivegreen",peg$c474=peg$literalExpectation("darkolivegreen",false),peg$c475=function(){return"#556b2fff"},peg$c476="DarkOliveGreen",peg$c477=peg$literalExpectation("DarkOliveGreen",false),peg$c478="darkorange",peg$c479=peg$literalExpectation("darkorange",false),peg$c480=function(){return"#ff8c00ff"},peg$c481="Darkorange",peg$c482=peg$literalExpectation("Darkorange",false),peg$c483="darkorchid",peg$c484=peg$literalExpectation("darkorchid",false),peg$c485=function(){return"#9932ccff"},peg$c486="DarkOrchid",peg$c487=peg$literalExpectation("DarkOrchid",false),peg$c488="darkred",peg$c489=peg$literalExpectation("darkred",false),peg$c490=function(){return"#8b0000ff"},peg$c491="DarkRed",peg$c492=peg$literalExpectation("DarkRed",false),peg$c493="darksalmon",peg$c494=peg$literalExpectation("darksalmon",false),peg$c495=function(){return"#e9967aff"},peg$c496="DarkSalmon",peg$c497=peg$literalExpectation("DarkSalmon",false),peg$c498="darkseagreen",peg$c499=peg$literalExpectation("darkseagreen",false),peg$c500=function(){return"#8fbc8fff"},peg$c501="DarkSeaGreen",peg$c502=peg$literalExpectation("DarkSeaGreen",false),peg$c503="darkslateblue",peg$c504=peg$literalExpectation("darkslateblue",false),peg$c505=function(){return"#483d8bff"},peg$c506="DarkSlateBlue",peg$c507=peg$literalExpectation("DarkSlateBlue",false),peg$c508="darkslategray",peg$c509=peg$literalExpectation("darkslategray",false),peg$c510=function(){return"#2f4f4fff"},peg$c511="DarkSlateGray",peg$c512=peg$literalExpectation("DarkSlateGray",false),peg$c513="darkslategrey",peg$c514=peg$literalExpectation("darkslategrey",false),peg$c515="DarkSlateGrey",peg$c516=peg$literalExpectation("DarkSlateGrey",false),peg$c517="darkturquoise",peg$c518=peg$literalExpectation("darkturquoise",false),peg$c519=function(){return"#00ced1ff"},peg$c520="DarkTurquoise",peg$c521=peg$literalExpectation("DarkTurquoise",false),peg$c522="darkviolet",peg$c523=peg$literalExpectation("darkviolet",false),peg$c524=function(){return"#9400d3ff"},peg$c525="DarkViolet",peg$c526=peg$literalExpectation("DarkViolet",false),peg$c527="deeppink",peg$c528=peg$literalExpectation("deeppink",false),peg$c529=function(){return"#ff1493ff"},peg$c530="DeepPink",peg$c531=peg$literalExpectation("DeepPink",false),peg$c532="deepskyblue",peg$c533=peg$literalExpectation("deepskyblue",false),peg$c534=function(){return"#00bfffff"},peg$c535="DeepSkyBlue",peg$c536=peg$literalExpectation("DeepSkyBlue",false),peg$c537="dimgray",peg$c538=peg$literalExpectation("dimgray",false),peg$c539=function(){return"#696969ff"},peg$c540="DimGray",peg$c541=peg$literalExpectation("DimGray",false),peg$c542="dimgrey",peg$c543=peg$literalExpectation("dimgrey",false),peg$c544="DimGrey",peg$c545=peg$literalExpectation("DimGrey",false),peg$c546="dodgerblue",peg$c547=peg$literalExpectation("dodgerblue",false),peg$c548=function(){return"#1e90ffff"},peg$c549="DodgerBlue",peg$c550=peg$literalExpectation("DodgerBlue",false),peg$c551="firebrick",peg$c552=peg$literalExpectation("firebrick",false),peg$c553=function(){return"#b22222ff"},peg$c554="FireBrick",peg$c555=peg$literalExpectation("FireBrick",false),peg$c556="floralwhite",peg$c557=peg$literalExpectation("floralwhite",false),peg$c558=function(){return"#fffaf0ff"},peg$c559="FloralWhite",peg$c560=peg$literalExpectation("FloralWhite",false),peg$c561="forestgreen",peg$c562=peg$literalExpectation("forestgreen",false),peg$c563=function(){return"#228b22ff"},peg$c564="ForestGreen",peg$c565=peg$literalExpectation("ForestGreen",false),peg$c566="fuchsia",peg$c567=peg$literalExpectation("fuchsia",false),peg$c568=function(){return"#ff00ffff"},peg$c569="Fuchsia",peg$c570=peg$literalExpectation("Fuchsia",false),peg$c571="gainsboro",peg$c572=peg$literalExpectation("gainsboro",false),peg$c573=function(){return"#dcdcdcff"},peg$c574="Gainsboro",peg$c575=peg$literalExpectation("Gainsboro",false),peg$c576="ghostwhite",peg$c577=peg$literalExpectation("ghostwhite",false),peg$c578=function(){return"#f8f8ffff"},peg$c579="GhostWhite",peg$c580=peg$literalExpectation("GhostWhite",false),peg$c581="goldenrod",peg$c582=peg$literalExpectation("goldenrod",false),peg$c583=function(){return"#daa520ff"},peg$c584="GoldenRod",peg$c585=peg$literalExpectation("GoldenRod",false),peg$c586="gold",peg$c587=peg$literalExpectation("gold",false),peg$c588=function(){return"#ffd700ff"},peg$c589="Gold",peg$c590=peg$literalExpectation("Gold",false),peg$c591="gray",peg$c592=peg$literalExpectation("gray",false),peg$c593=function(){return"#808080ff"},peg$c594="Gray",peg$c595=peg$literalExpectation("Gray",false),peg$c596="grey",peg$c597=peg$literalExpectation("grey",false),peg$c598="Grey",peg$c599=peg$literalExpectation("Grey",false),peg$c600="greenyellow",peg$c601=peg$literalExpectation("greenyellow",false),peg$c602=function(){return"#adff2fff"},peg$c603="GreenYellow",peg$c604=peg$literalExpectation("GreenYellow",false),peg$c605="green",peg$c606=peg$literalExpectation("green",false),peg$c607=function(){return"#008000ff"},peg$c608="Green",peg$c609=peg$literalExpectation("Green",false),peg$c610="honeydew",peg$c611=peg$literalExpectation("honeydew",false),peg$c612=function(){return"#f0fff0ff"},peg$c613="HoneyDew",peg$c614=peg$literalExpectation("HoneyDew",false),peg$c615="hotpink",peg$c616=peg$literalExpectation("hotpink",false),peg$c617=function(){return"#ff69b4ff"},peg$c618="HotPink",peg$c619=peg$literalExpectation("HotPink",false),peg$c620="indianred",peg$c621=peg$literalExpectation("indianred",false),peg$c622=function(){return"#cd5c5cff"},peg$c623="IndianRed",peg$c624=peg$literalExpectation("IndianRed",false),peg$c625="indigo",peg$c626=peg$literalExpectation("indigo",false),peg$c627=function(){return"#4b0082ff"},peg$c628="Indigo",peg$c629=peg$literalExpectation("Indigo",false),peg$c630="ivory",peg$c631=peg$literalExpectation("ivory",false),peg$c632=function(){return"#fffff0ff"},peg$c633="Ivory",peg$c634=peg$literalExpectation("Ivory",false),peg$c635="khaki",peg$c636=peg$literalExpectation("khaki",false),peg$c637=function(){return"#f0e68cff"},peg$c638="Khaki",peg$c639=peg$literalExpectation("Khaki",false),peg$c640="lavenderblush",peg$c641=peg$literalExpectation("lavenderblush",false),peg$c642=function(){return"#fff0f5ff"},peg$c643="LavenderBlush",peg$c644=peg$literalExpectation("LavenderBlush",false),peg$c645="lavender",peg$c646=peg$literalExpectation("lavender",false),peg$c647=function(){return"#e6e6faff"},peg$c648="Lavender",peg$c649=peg$literalExpectation("Lavender",false),peg$c650="lawngreen",peg$c651=peg$literalExpectation("lawngreen",false),peg$c652=function(){return"#7cfc00ff"},peg$c653="LawnGreen",peg$c654=peg$literalExpectation("LawnGreen",false),peg$c655="lemonchiffon",peg$c656=peg$literalExpectation("lemonchiffon",false),peg$c657=function(){return"#fffacdff"},peg$c658="LemonChiffon",peg$c659=peg$literalExpectation("LemonChiffon",false),peg$c660="lightblue",peg$c661=peg$literalExpectation("lightblue",false),peg$c662=function(){return"#add8e6ff"},peg$c663="LightBlue",peg$c664=peg$literalExpectation("LightBlue",false),peg$c665="lightcoral",peg$c666=peg$literalExpectation("lightcoral",false),peg$c667=function(){return"#f08080ff"},peg$c668="LightCoral",peg$c669=peg$literalExpectation("LightCoral",false),peg$c670="lightcyan",peg$c671=peg$literalExpectation("lightcyan",false),peg$c672=function(){return"#e0ffffff"},peg$c673="LightCyan",peg$c674=peg$literalExpectation("LightCyan",false),peg$c675="lightgoldenrodyellow",peg$c676=peg$literalExpectation("lightgoldenrodyellow",false),peg$c677=function(){return"#fafad2ff"},peg$c678="LightGoldenRodYellow",peg$c679=peg$literalExpectation("LightGoldenRodYellow",false),peg$c680="lightgray",peg$c681=peg$literalExpectation("lightgray",false),peg$c682=function(){return"#d3d3d3ff"},peg$c683="LightGray",peg$c684=peg$literalExpectation("LightGray",false),peg$c685="lightgrey",peg$c686=peg$literalExpectation("lightgrey",false),peg$c687="LightGrey",peg$c688=peg$literalExpectation("LightGrey",false),peg$c689="lightgreen",peg$c690=peg$literalExpectation("lightgreen",false),peg$c691=function(){return"#90ee90ff"},peg$c692="LightGreen",peg$c693=peg$literalExpectation("LightGreen",false),peg$c694="lightpink",peg$c695=peg$literalExpectation("lightpink",false),peg$c696=function(){return"#ffb6c1ff"},peg$c697="LightPink",peg$c698=peg$literalExpectation("LightPink",false),peg$c699="lightsalmon",peg$c700=peg$literalExpectation("lightsalmon",false),peg$c701=function(){return"#ffa07aff"},peg$c702="LightSalmon",peg$c703=peg$literalExpectation("LightSalmon",false),peg$c704="lightseagreen",peg$c705=peg$literalExpectation("lightseagreen",false),peg$c706=function(){return"#20b2aaff"},peg$c707="LightSeaGreen",peg$c708=peg$literalExpectation("LightSeaGreen",false),peg$c709="lightskyblue",peg$c710=peg$literalExpectation("lightskyblue",false),peg$c711=function(){return"#87cefaff"},peg$c712="LightSkyBlue",peg$c713=peg$literalExpectation("LightSkyBlue",false),peg$c714="lightslategray",peg$c715=peg$literalExpectation("lightslategray",false),peg$c716=function(){return"#778899ff"},peg$c717="LightSlateGray",peg$c718=peg$literalExpectation("LightSlateGray",false),peg$c719="lightslategrey",peg$c720=peg$literalExpectation("lightslategrey",false),peg$c721="LightSlateGrey",peg$c722=peg$literalExpectation("LightSlateGrey",false),peg$c723="lightsteelblue",peg$c724=peg$literalExpectation("lightsteelblue",false),peg$c725=function(){return"#b0c4deff"},peg$c726="LightSteelBlue",peg$c727=peg$literalExpectation("LightSteelBlue",false),peg$c728="lightyellow",peg$c729=peg$literalExpectation("lightyellow",false),peg$c730=function(){return"#ffffe0ff"},peg$c731="LightYellow",peg$c732=peg$literalExpectation("LightYellow",false),peg$c733="limegreen",peg$c734=peg$literalExpectation("limegreen",false),peg$c735=function(){return"#32cd32ff"},peg$c736="LimeGreen",peg$c737=peg$literalExpectation("LimeGreen",false),peg$c738="lime",peg$c739=peg$literalExpectation("lime",false),peg$c740=function(){return"#00ff00ff"},peg$c741="Lime",peg$c742=peg$literalExpectation("Lime",false),peg$c743="linen",peg$c744=peg$literalExpectation("linen",false),peg$c745=function(){return"#faf0e6ff"},peg$c746="Linen",peg$c747=peg$literalExpectation("Linen",false),peg$c748="magenta",peg$c749=peg$literalExpectation("magenta",false),peg$c750="Magenta",peg$c751=peg$literalExpectation("Magenta",false),peg$c752="maroon",peg$c753=peg$literalExpectation("maroon",false),peg$c754=function(){return"#800000ff"},peg$c755="Maroon",peg$c756=peg$literalExpectation("Maroon",false),peg$c757="mediumaquamarine",peg$c758=peg$literalExpectation("mediumaquamarine",false),peg$c759=function(){return"#66cdaaff"},peg$c760="MediumAquaMarine",peg$c761=peg$literalExpectation("MediumAquaMarine",false),peg$c762="mediumblue",peg$c763=peg$literalExpectation("mediumblue",false),peg$c764=function(){return"#0000cdff"},peg$c765="MediumBlue",peg$c766=peg$literalExpectation("MediumBlue",false),peg$c767="mediumorchid",peg$c768=peg$literalExpectation("mediumorchid",false),peg$c769=function(){return"#ba55d3ff"},peg$c770="MediumOrchid",peg$c771=peg$literalExpectation("MediumOrchid",false),peg$c772="mediumpurple",peg$c773=peg$literalExpectation("mediumpurple",false),peg$c774=function(){return"#9370d8ff"},peg$c775="MediumPurple",peg$c776=peg$literalExpectation("MediumPurple",false),peg$c777="mediumseagreen",peg$c778=peg$literalExpectation("mediumseagreen",false),peg$c779=function(){return"#3cb371ff"},peg$c780="MediumSeaGreen",peg$c781=peg$literalExpectation("MediumSeaGreen",false),peg$c782="mediumslateblue",peg$c783=peg$literalExpectation("mediumslateblue",false),peg$c784=function(){return"#7b68eeff"},peg$c785="MediumSlateBlue",peg$c786=peg$literalExpectation("MediumSlateBlue",false),peg$c787="mediumspringgreen",peg$c788=peg$literalExpectation("mediumspringgreen",false),peg$c789=function(){return"#00fa9aff"},peg$c790="MediumSpringGreen",peg$c791=peg$literalExpectation("MediumSpringGreen",false),peg$c792="mediumturquoise",peg$c793=peg$literalExpectation("mediumturquoise",false),peg$c794=function(){return"#48d1ccff"},peg$c795="MediumTurquoise",peg$c796=peg$literalExpectation("MediumTurquoise",false),peg$c797="mediumvioletred",peg$c798=peg$literalExpectation("mediumvioletred",false),peg$c799=function(){return"#c71585ff"},peg$c800="MediumVioletRed",peg$c801=peg$literalExpectation("MediumVioletRed",false),peg$c802="midnightblue",peg$c803=peg$literalExpectation("midnightblue",false),peg$c804=function(){return"#191970ff"},peg$c805="MidnightBlue",peg$c806=peg$literalExpectation("MidnightBlue",false),peg$c807="mintcream",peg$c808=peg$literalExpectation("mintcream",false),peg$c809=function(){return"#f5fffaff"},peg$c810="MintCream",peg$c811=peg$literalExpectation("MintCream",false),peg$c812="mistyrose",peg$c813=peg$literalExpectation("mistyrose",false),peg$c814=function(){return"#ffe4e1ff"},peg$c815="MistyRose",peg$c816=peg$literalExpectation("MistyRose",false),peg$c817="moccasin",peg$c818=peg$literalExpectation("moccasin",false),peg$c819=function(){return"#ffe4b5ff"},peg$c820="Moccasin",peg$c821=peg$literalExpectation("Moccasin",false),peg$c822="navajowhite",peg$c823=peg$literalExpectation("navajowhite",false),peg$c824=function(){return"#ffdeadff"},peg$c825="NavajoWhite",peg$c826=peg$literalExpectation("NavajoWhite",false),peg$c827="navy",peg$c828=peg$literalExpectation("navy",false),peg$c829=function(){return"#000080ff"},peg$c830="Navy",peg$c831=peg$literalExpectation("Navy",false),peg$c832="oldlace",peg$c833=peg$literalExpectation("oldlace",false),peg$c834=function(){return"#fdf5e6ff"},peg$c835="OldLace",peg$c836=peg$literalExpectation("OldLace",false),peg$c837="olivedrab",peg$c838=peg$literalExpectation("olivedrab",false),peg$c839=function(){return"#6b8e23ff"},peg$c840="OliveDrab",peg$c841=peg$literalExpectation("OliveDrab",false),peg$c842="olive",peg$c843=peg$literalExpectation("olive",false),peg$c844=function(){return"#808000ff"},peg$c845="Olive",peg$c846=peg$literalExpectation("Olive",false),peg$c847="orangered",peg$c848=peg$literalExpectation("orangered",false),peg$c849=function(){return"#ff4500ff"},peg$c850="OrangeRed",peg$c851=peg$literalExpectation("OrangeRed",false),peg$c852="orange",peg$c853=peg$literalExpectation("orange",false),peg$c854=function(){return"#ffa500ff"},peg$c855="Orange",peg$c856=peg$literalExpectation("Orange",false),peg$c857="orchid",peg$c858=peg$literalExpectation("orchid",false),peg$c859=function(){return"#da70d6ff"},peg$c860="Orchid",peg$c861=peg$literalExpectation("Orchid",false),peg$c862="palegoldenrod",peg$c863=peg$literalExpectation("palegoldenrod",false),peg$c864=function(){return"#eee8aaff"},peg$c865="PaleGoldenRod",peg$c866=peg$literalExpectation("PaleGoldenRod",false),peg$c867="palegreen",peg$c868=peg$literalExpectation("palegreen",false),peg$c869=function(){return"#98fb98ff"},peg$c870="PaleGreen",peg$c871=peg$literalExpectation("PaleGreen",false),peg$c872="paleturquoise",peg$c873=peg$literalExpectation("paleturquoise",false),peg$c874=function(){return"#afeeeeff"},peg$c875="PaleTurquoise",peg$c876=peg$literalExpectation("PaleTurquoise",false),peg$c877="palevioletred",peg$c878=peg$literalExpectation("palevioletred",false),peg$c879=function(){return"#d87093ff"},peg$c880="PaleVioletRed",peg$c881=peg$literalExpectation("PaleVioletRed",false),peg$c882="papayawhip",peg$c883=peg$literalExpectation("papayawhip",false),peg$c884=function(){return"#ffefd5ff"},peg$c885="PapayaWhip",peg$c886=peg$literalExpectation("PapayaWhip",false),peg$c887="peachpuff",peg$c888=peg$literalExpectation("peachpuff",false),peg$c889=function(){return"#ffdab9ff"},peg$c890="PeachPuff",peg$c891=peg$literalExpectation("PeachPuff",false),peg$c892="peru",peg$c893=peg$literalExpectation("peru",false),peg$c894=function(){return"#cd853fff"},peg$c895="Peru",peg$c896=peg$literalExpectation("Peru",false),peg$c897="pink",peg$c898=peg$literalExpectation("pink",false),peg$c899=function(){return"#ffc0cbff"},peg$c900="Pink",peg$c901=peg$literalExpectation("Pink",false),peg$c902="plum",peg$c903=peg$literalExpectation("plum",false),peg$c904=function(){return"#dda0ddff"},peg$c905="Plum",peg$c906=peg$literalExpectation("Plum",false),peg$c907="powderblue",peg$c908=peg$literalExpectation("powderblue",false),peg$c909=function(){return"#b0e0e6ff"},peg$c910="PowderBlue",peg$c911=peg$literalExpectation("PowderBlue",false),peg$c912="purple",peg$c913=peg$literalExpectation("purple",false),peg$c914=function(){return"#800080ff"},peg$c915="Purple",peg$c916=peg$literalExpectation("Purple",false),peg$c917="red",peg$c918=peg$literalExpectation("red",false),peg$c919=function(){return"#ff0000ff"},peg$c920="Red",peg$c921=peg$literalExpectation("Red",false),peg$c922="rosybrown",peg$c923=peg$literalExpectation("rosybrown",false),peg$c924=function(){return"#bc8f8fff"},peg$c925="RosyBrown",peg$c926=peg$literalExpectation("RosyBrown",false),peg$c927="royalblue",peg$c928=peg$literalExpectation("royalblue",false),peg$c929=function(){return"#4169e1ff"},peg$c930="RoyalBlue",peg$c931=peg$literalExpectation("RoyalBlue",false),peg$c932="saddlebrown",peg$c933=peg$literalExpectation("saddlebrown",false),peg$c934=function(){return"#8b4513ff"},peg$c935="SaddleBrown",peg$c936=peg$literalExpectation("SaddleBrown",false),peg$c937="salmon",peg$c938=peg$literalExpectation("salmon",false),peg$c939=function(){return"#fa8072ff"},peg$c940="Salmon",peg$c941=peg$literalExpectation("Salmon",false),peg$c942="sandybrown",peg$c943=peg$literalExpectation("sandybrown",false),peg$c944=function(){return"#f4a460ff"},peg$c945="SandyBrown",peg$c946=peg$literalExpectation("SandyBrown",false),peg$c947="seagreen",peg$c948=peg$literalExpectation("seagreen",false),peg$c949=function(){return"#2e8b57ff"},peg$c950="SeaGreen",peg$c951=peg$literalExpectation("SeaGreen",false),peg$c952="seashell",peg$c953=peg$literalExpectation("seashell",false),peg$c954=function(){return"#fff5eeff"},peg$c955="SeaShell",peg$c956=peg$literalExpectation("SeaShell",false),peg$c957="sienna",peg$c958=peg$literalExpectation("sienna",false),peg$c959=function(){return"#a0522dff"},peg$c960="Sienna",peg$c961=peg$literalExpectation("Sienna",false),peg$c962="silver",peg$c963=peg$literalExpectation("silver",false),peg$c964=function(){return"#c0c0c0ff"},peg$c965="Silver",peg$c966=peg$literalExpectation("Silver",false),peg$c967="skyblue",peg$c968=peg$literalExpectation("skyblue",false),peg$c969=function(){return"#87ceebff"},peg$c970="SkyBlue",peg$c971=peg$literalExpectation("SkyBlue",false),peg$c972="slateblue",peg$c973=peg$literalExpectation("slateblue",false),peg$c974=function(){return"#6a5acdff"},peg$c975="SlateBlue",peg$c976=peg$literalExpectation("SlateBlue",false),peg$c977="slategray",peg$c978=peg$literalExpectation("slategray",false),peg$c979=function(){return"#708090ff"},peg$c980="SlateGray",peg$c981=peg$literalExpectation("SlateGray",false),peg$c982="slategrey",peg$c983=peg$literalExpectation("slategrey",false),peg$c984="SlateGrey",peg$c985=peg$literalExpectation("SlateGrey",false),peg$c986="snow",peg$c987=peg$literalExpectation("snow",false),peg$c988=function(){return"#fffafaff"},peg$c989="Snow",peg$c990=peg$literalExpectation("Snow",false),peg$c991="springgreen",peg$c992=peg$literalExpectation("springgreen",false),peg$c993=function(){return"#00ff7fff"},peg$c994="SpringGreen",peg$c995=peg$literalExpectation("SpringGreen",false),peg$c996="steelblue",peg$c997=peg$literalExpectation("steelblue",false),peg$c998=function(){return"#4682b4ff"},peg$c999="SteelBlue",peg$c1000=peg$literalExpectation("SteelBlue",false),peg$c1001="tan",peg$c1002=peg$literalExpectation("tan",false),peg$c1003=function(){return"#d2b48cff"},peg$c1004="Tan",peg$c1005=peg$literalExpectation("Tan",false),peg$c1006="teal",peg$c1007=peg$literalExpectation("teal",false),peg$c1008=function(){return"#008080ff"},peg$c1009="Teal",peg$c1010=peg$literalExpectation("Teal",false),peg$c1011="thistle",peg$c1012=peg$literalExpectation("thistle",false),peg$c1013=function(){return"#d8bfd8ff"},peg$c1014="Thistle",peg$c1015=peg$literalExpectation("Thistle",false),peg$c1016="tomato",peg$c1017=peg$literalExpectation("tomato",false),peg$c1018=function(){return"#ff6347ff"},peg$c1019="Tomato",peg$c1020=peg$literalExpectation("Tomato",false),peg$c1021="turquoise",peg$c1022=peg$literalExpectation("turquoise",false),peg$c1023=function(){return"#40e0d0ff"},peg$c1024="Turquoise",peg$c1025=peg$literalExpectation("Turquoise",false),peg$c1026="violet",peg$c1027=peg$literalExpectation("violet",false),peg$c1028=function(){return"#ee82eeff"},peg$c1029="Violet",peg$c1030=peg$literalExpectation("Violet",false),peg$c1031="wheat",peg$c1032=peg$literalExpectation("wheat",false),peg$c1033=function(){return"#f5deb3ff"},peg$c1034="Wheat",peg$c1035=peg$literalExpectation("Wheat",false),peg$c1036="whitesmoke",peg$c1037=peg$literalExpectation("whitesmoke",false),peg$c1038=function(){return"#f5f5f5ff"},peg$c1039="WhiteSmoke",peg$c1040=peg$literalExpectation("WhiteSmoke",false),peg$c1041="white",peg$c1042=peg$literalExpectation("white",false),peg$c1043=function(){return"#ffffffff"},peg$c1044="White",peg$c1045=peg$literalExpectation("White",false),peg$c1046="yellowgreen",peg$c1047=peg$literalExpectation("yellowgreen",false),peg$c1048=function(){return"#9acd32ff"},peg$c1049="YellowGreen",peg$c1050=peg$literalExpectation("YellowGreen",false),peg$c1051="yellow",peg$c1052=peg$literalExpectation("yellow",false),peg$c1053=function(){return"#ffff00ff"},peg$c1054="Yellow",peg$c1055=peg$literalExpectation("Yellow",false),peg$c1056=function(lab){return lab},peg$c1057="#",peg$c1058=peg$literalExpectation("#",false),peg$c1059=function(r,g,b){return`#${r}${r}${g}${g}${b}${b}ff`},peg$c1060=function(r1,r2,g1,g2,b1,b2){return`#${r1}${r2}${g1}${g2}${b1}${b2}ff`},peg$c1061=function(r,g,b,a){return`#${r}${r}${g}${g}${b}${b}${a}${a}`},peg$c1062=function(r1,r2,g1,g2,b1,b2,a1,a2){return`#${r1}${r2}${g1}${g2}${b1}${b2}${a1}${a2}`},peg$c1063=peg$otherExpectation("color"),peg$c1064="arc_label",peg$c1065=peg$literalExpectation("arc_label",false),peg$c1066="head_label",peg$c1067=peg$literalExpectation("head_label",false),peg$c1068="tail_label",peg$c1069=peg$literalExpectation("tail_label",false),peg$c1070=":",peg$c1071=peg$literalExpectation(":",false),peg$c1072=";",peg$c1073=peg$literalExpectation(";",false),peg$c1074=function(key,value){return{key:key,value:value}},peg$c1075=peg$otherExpectation("single edge color"),peg$c1076="edge_color",peg$c1077=peg$literalExpectation("edge_color",false),peg$c1078=function(value){return{key:"single_edge_color",value:value}},peg$c1079=peg$otherExpectation("transition line style"),peg$c1080="linestyle",peg$c1081=peg$literalExpectation("linestyle",false),peg$c1082=function(value){return{key:"transition_line_style",value:value}},peg$c1083="{",peg$c1084=peg$literalExpectation("{",false),peg$c1085="}",peg$c1086=peg$literalExpectation("}",false),peg$c1087=function(items){return items},peg$c1088="%",peg$c1089=peg$literalExpectation("%",false),peg$c1090=function(value){return{key:"arrow probability",value:value}},peg$c1091="[",peg$c1092=peg$literalExpectation("[",false),peg$c1093="]",peg$c1094=peg$literalExpectation("]",false),peg$c1095=function(names){return names.map((i=>i[0]))},peg$c1096="+|",peg$c1097=peg$literalExpectation("+|",false),peg$c1098=function(nzd,dd){return{key:"stripe",value:parseInt(`${nzd}${dd}`,10)}},peg$c1099="-|",peg$c1100=peg$literalExpectation("-|",false),peg$c1101=function(nzd,dd){return{key:"stripe",value:-1*parseInt(`${nzd}${dd}`,10)}},peg$c1102="+",peg$c1103=peg$literalExpectation("+",false),peg$c1104=function(nzd,dd){return{key:"cycle",value:parseInt(`${nzd}${dd}`,10)}},peg$c1105="-",peg$c1106=peg$literalExpectation("-",false),peg$c1107=function(nzd,dd){return{key:"cycle",value:-1*parseInt(`${nzd}${dd}`,10)}},peg$c1108="+0",peg$c1109=peg$literalExpectation("+0",false),peg$c1110=function(){return{key:"cycle",value:0}},peg$c1111=function(r_action,r_prob,l_desc,arrow,r_desc,l_prob,l_action,label,tail){const 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$c1112=function(label,se){const base={key:"transition",from:label};if(se&&se!==[]){base.se=se}return base},peg$c1113="whargarbl",peg$c1114=peg$literalExpectation("whargarbl",false),peg$c1115="todo",peg$c1116=peg$literalExpectation("todo",false),peg$c1117=function(validationkey,value){return{key:validationkey,value:value}},peg$c1118="validation",peg$c1119=peg$literalExpectation("validation",false),peg$c1120="};",peg$c1121=peg$literalExpectation("};",false),peg$c1122=function(validation_items){return{config_kind:"validation",config_items:validation_items||[]}},peg$c1123="dot",peg$c1124=peg$literalExpectation("dot",false),peg$c1125="circo",peg$c1126=peg$literalExpectation("circo",false),peg$c1127="fdp",peg$c1128=peg$literalExpectation("fdp",false),peg$c1129="neato",peg$c1130=peg$literalExpectation("neato",false),peg$c1131="shape",peg$c1132=peg$literalExpectation("shape",false),peg$c1133=function(value){return{key:"shape",value:value}},peg$c1134="state",peg$c1135=peg$literalExpectation("state",false),peg$c1136=function(state_items){return{key:"state_config",value:{config_kind:"state",config_items:state_items||[]}}},peg$c1137="start_state",peg$c1138=peg$literalExpectation("start_state",false),peg$c1139=function(state_items){return{key:"state_config",value:{config_kind:"in_state",config_items:state_items||[]}}},peg$c1140="end_state",peg$c1141=peg$literalExpectation("end_state",false),peg$c1142=function(state_items){return{key:"state_config",value:{config_kind:"out_state",config_items:state_items||[]}}},peg$c1143=function(actionkey,value){return{key:actionkey,value:value}},peg$c1144="action",peg$c1145=peg$literalExpectation("action",false),peg$c1146=function(action_items){return{config_kind:"action",config_items:action_items||[]}},peg$c1147=function(transitionkey,value){return{key:transitionkey,value:value}},peg$c1148=peg$otherExpectation("graph default edge color"),peg$c1149=function(value){return{key:"graph_default_edge_color",value:value}},peg$c1150="transition",peg$c1151=peg$literalExpectation("transition",false),peg$c1152=function(transition_items){return{config_kind:"transition",config_items:transition_items||[]}},peg$c1153="graph_layout",peg$c1154=peg$literalExpectation("graph_layout",false),peg$c1155=function(value){return{key:"graph_layout",value:value}},peg$c1156="start_states",peg$c1157=peg$literalExpectation("start_states",false),peg$c1158=function(value){return{key:"start_states",value:value}},peg$c1159="end_states",peg$c1160=peg$literalExpectation("end_states",false),peg$c1161=function(value){return{key:"end_states",value:value}},peg$c1162="graph_bg_color",peg$c1163=peg$literalExpectation("graph_bg_color",false),peg$c1164=function(value){return{key:"graph_bg_color",value:value}},peg$c1165=peg$otherExpectation("configuration"),peg$c1166="MIT",peg$c1167=peg$literalExpectation("MIT",false),peg$c1168="BSD 2-clause",peg$c1169=peg$literalExpectation("BSD 2-clause",false),peg$c1170="BSD 3-clause",peg$c1171=peg$literalExpectation("BSD 3-clause",false),peg$c1172="Apache 2.0",peg$c1173=peg$literalExpectation("Apache 2.0",false),peg$c1174="Mozilla 2.0",peg$c1175=peg$literalExpectation("Mozilla 2.0",false),peg$c1176="Public domain",peg$c1177=peg$literalExpectation("Public domain",false),peg$c1178="GPL v2",peg$c1179=peg$literalExpectation("GPL v2",false),peg$c1180="GPL v3",peg$c1181=peg$literalExpectation("GPL v3",false),peg$c1182="LGPL v2.1",peg$c1183=peg$literalExpectation("LGPL v2.1",false),peg$c1184="LGPL v3.0",peg$c1185=peg$literalExpectation("LGPL v3.0",false),peg$c1186="Unknown",peg$c1187=peg$literalExpectation("Unknown",false),peg$c1188=peg$otherExpectation("direction"),peg$c1189="up",peg$c1190=peg$literalExpectation("up",false),peg$c1191="right",peg$c1192=peg$literalExpectation("right",false),peg$c1193="down",peg$c1194=peg$literalExpectation("down",false),peg$c1195="left",peg$c1196=peg$literalExpectation("left",false),peg$c1197=peg$otherExpectation("hook definition (open/closed)"),peg$c1198="open",peg$c1199=peg$literalExpectation("open",false),peg$c1200="closed",peg$c1201=peg$literalExpectation("closed",false),peg$c1202="machine_author",peg$c1203=peg$literalExpectation("machine_author",false),peg$c1204=function(value){return{key:"machine_author",value:value}},peg$c1205="machine_contributor",peg$c1206=peg$literalExpectation("machine_contributor",false),peg$c1207=function(value){return{key:"machine_contributor",value:value}},peg$c1208="machine_comment",peg$c1209=peg$literalExpectation("machine_comment",false),peg$c1210=function(value){return{key:"machine_comment",value:value}},peg$c1211="machine_definition",peg$c1212=peg$literalExpectation("machine_definition",false),peg$c1213=function(value){return{key:"machine_definition",value:value}},peg$c1214="machine_name",peg$c1215=peg$literalExpectation("machine_name",false),peg$c1216=function(value){return{key:"machine_name",value:value}},peg$c1217="machine_reference",peg$c1218=peg$literalExpectation("machine_reference",false),peg$c1219=function(value){return{key:"machine_reference",value:value}},peg$c1220="machine_version",peg$c1221=peg$literalExpectation("machine_version",false),peg$c1222=function(value){return{key:"machine_version",value:value}},peg$c1223="machine_license",peg$c1224=peg$literalExpectation("machine_license",false),peg$c1225=function(value){return{key:"machine_license",value:value}},peg$c1226="machine_language",peg$c1227=peg$literalExpectation("machine_language",false),peg$c1228=function(value){return{key:"machine_language",value:value}},peg$c1229="fsl_version",peg$c1230=peg$literalExpectation("fsl_version",false),peg$c1231=function(value){return{key:"fsl_version",value:value}},peg$c1232="theme",peg$c1233=peg$literalExpectation("theme",false),peg$c1234=function(value){return{key:"theme",value:value}},peg$c1235="flow",peg$c1236=peg$literalExpectation("flow",false),peg$c1237=function(value){return{key:"flow",value:value}},peg$c1238="hooks",peg$c1239=peg$literalExpectation("hooks",false),peg$c1240=function(value){return{key:"hook_definition",value:value}},peg$c1241="d