!function(t){var e={};function u(r){if(e[r])return e[r].exports;var n=e[r]={i:r,l:!1,exports:{}};return t[r].call(n.exports,n,n.exports,u),n.l=!0,n.exports}u.m=t,u.c=e,u.d=function(t,e,r){u.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},u.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},u.t=function(t,e){if(1&e&&(t=u(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(u.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var n in t)u.d(r,n,function(e){return t[e]}.bind(null,n));return r},u.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return u.d(e,"a",e),e},u.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},u.p="",u(u.s=23)}([function(t,e,u){"use strict";(function(t){u.d(e,"e",(function(){return r})),u.d(e,"p",(function(){return n})),u.d(e,"a",(function(){return i})),u.d(e,"c",(function(){return o})),u.d(e,"d",(function(){return a})),u.d(e,"o",(function(){return s})),u.d(e,"q",(function(){return c})),u.d(e,"t",(function(){return l})),u.d(e,"i",(function(){return p})),u.d(e,"r",(function(){return f})),u.d(e,"s",(function(){return h})),u.d(e,"k",(function(){return D})),u.d(e,"m",(function(){return d})),u.d(e,"j",(function(){return m})),u.d(e,"l",(function(){return A})),u.d(e,"g",(function(){return v})),u.d(e,"f",(function(){return g})),u.d(e,"h",(function(){return E})),u.d(e,"n",(function(){return C})),u.d(e,"b",(function(){return F}));var r="1.13.1",n="object"==typeof self&&self.self===self&&self||"object"==typeof t&&t.global===t&&t||Function("return this")()||{},i=Array.prototype,o=Object.prototype,a="undefined"!=typeof Symbol?Symbol.prototype:null,s=i.push,c=i.slice,l=o.toString,p=o.hasOwnProperty,f="undefined"!=typeof ArrayBuffer,h="undefined"!=typeof DataView,D=Array.isArray,d=Object.keys,m=Object.create,A=f&&ArrayBuffer.isView,v=isNaN,g=isFinite,E=!{toString:null}.propertyIsEnumerable("toString"),C=["valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],F=Math.pow(2,53)-1}).call(this,u(16))},function(t,e,u){"use strict";for(var r=u(11),n={},i=0;i<128;i++)n[i]=String.fromCharCode(i);n["'".charCodeAt(0)]="\\'",n['"'.charCodeAt(0)]='\\"',n["\\".charCodeAt(0)]="\\\\",n["\b".charCodeAt(0)]="\\b",n["\f".charCodeAt(0)]="\\f",n["\n".charCodeAt(0)]="\\n",n["\r".charCodeAt(0)]="\\r",n["\t".charCodeAt(0)]="\\t",n["\v".charCodeAt(0)]="\\v",e.abstract=function(t){var e=t||"";return function(){throw new Error("this method "+e+" is abstract! (it has no implementation in class "+this.constructor.name+")")}},e.assert=function(t,e){if(!t)throw new Error(e)},e.defineLazyProperty=function(t,e,u){var r;Object.defineProperty(t,e,{get:function(){return r||(r=u.call(this)),r}})},e.clone=function(t){return t?r({},t):t},e.extend=r,e.repeatFn=function(t,e){for(var u=[];e-- >0;)u.push(t());return u},e.repeatStr=function(t,e){return new Array(e+1).join(t)},e.repeat=function(t,u){return e.repeatFn((function(){return t}),u)},e.getDuplicates=function(t){for(var e=[],u=0;u "+t[1];return 3===t.length?e+" for '"+t[2]+"'":e})).join("\n"),o=n("Missing semantic action for '"+t+"' in "+(u+" '"+e+"'")+"\nAction stack (most recent call last):\n"+(i+="\n "+e+" > "+t));return o.name="missingSemanticAction",o},undeclaredGrammar:function(t,e,u){return n(e?"Grammar "+t+" is not declared in namespace "+r.toString(e):"Undeclared grammar "+t,u)},undeclaredRule:function(t,e,u){return n("Rule "+t+" is not declared in grammar "+e,u)},wrongNumberOfArguments:function(t,e,u,r){return n("Wrong number of arguments for rule "+t+" (expected "+e+", got "+u+")",r.source)},wrongNumberOfParameters:function(t,e,u,r){return n("Wrong number of parameters for rule "+t+" (expected "+e+", got "+u+")",r)},throwErrors:function(t){if(1===t.length)throw t[0];if(t.length>1)throw function(t){var e=t.map((function(t){return t.message}));return n(["Errors:"].concat(e).join("\n- "),t[0].interval)}(t)}}},function(t,e,u){"use strict";var r=u(1);function n(t){var e=0;return t.map((function(t){var u=t.toString();return e=Math.max(e,u.length),u})).map((function(t){return r.padLeft(t,e)}))}function i(t,e,u){var r=t.length;return(t.slice(0,u)+e+t.slice(u+e.length)).substr(0,r)}var o=[];e.awaitBuiltInRules=function(t){o.push(t)},e.announceBuiltInRules=function(t){o.forEach((function(e){e(t)})),o=null},e.getLineAndColumn=function(t,e){for(var u=1,r=1,n=0,i=0,o=null,a=null,s=-1;n=0&&(a=t.slice(s,i).replace(/\r?\n$/,"")),{lineNum:u,colNum:r,line:t.slice(i,l).replace(/\r$/,""),prevLine:a,nextLine:o}},e.getLineAndColumnMessage=function(t,u){var o=r.repeatStr,a=e.getLineAndColumn(t,u),s=new r.StringBuffer;s.append("Line "+a.lineNum+", col "+a.colNum+":\n");var c=n([null==a.prevLine?0:a.lineNum-1,a.lineNum,null==a.nextLine?0:a.lineNum+1]);function l(t,e,u){s.append(u+c[t]+" | "+e+"\n")}null!=a.prevLine&&l(0,a.prevLine," "),l(1,a.line,"> ");for(var p=a.line.length,f=o(" ",p+1),h=Array.prototype.slice.call(arguments,2),D=0;D=0&&d<=m,"range start must be >= 0 and <= end");var A=u-a.colNum+1;d=Math.max(0,d-A),f=i(f,o("~",(m=Math.min(m-A,p))-d),d)}var v=2+c[1].length+3;return s.append(o(" ",v)),f=i(f,"^",a.colNum-1),s.append(f.replace(/ +$/,"")+"\n"),null!=a.nextLine&&l(2,a.nextLine," "),s.contents()}},function(t,e,u){"use strict";var r,n=u(26),i=u(10),o=u(18),a=u(1),s=u(3),c=u(2),l=u(4),p=u(76),f=u(78),h={querySelector:function(t){return document.querySelector(t)},querySelectorAll:function(t){return document.querySelectorAll(t)}};function D(t){return!(!t||1!==t.nodeType)}function d(t){return void 0===t}var m=Math.pow(2,53)-1;function A(t,e,u){var o,c,l,p=new n,f=!1;return(u||r).createSemantics().addOperation("visit",{Grammar:function(t,u,r,n,i){var a=t.visit();o=p.newGrammar(a,e),u.visit(),n.visit();var c=o.build();if(c.source=this.source.trimmed(),a in e)throw s.duplicateGrammarDeclaration(c,e);return e[a]=c,c},SuperGrammar:function(t,u){var r=u.visit();if("null"===r)o.withSuperGrammar(null);else{if(!e||!(r in e))throw s.undeclaredGrammar(r,e,u.source);o.withSuperGrammar(e[r])}},Rule_define:function(t,e,u,r,n){c=t.visit(),l=e.visit()[0]||[],o.defaultStartRule||o.ensureSuperGrammar()===i.ProtoBuiltInRules||o.withDefaultStartRule(c);var a=n.visit(),s=u.visit()[0],p=this.source.trimmed();return o.define(c,l,a,s,p)},Rule_override:function(t,e,u,r){c=t.visit(),l=e.visit()[0]||[],f=!0;var n=r.visit(),i=this.source.trimmed(),a=o.override(c,l,n,null,i);return f=!1,a},Rule_extend:function(t,e,u,r){c=t.visit(),l=e.visit()[0]||[];var n=r.visit(),i=this.source.trimmed();return o.extend(c,l,n,null,i)},RuleBody:function(t,e){var u=e.visit();return p.alt.apply(p,u).withSource(this.source)},Formals:function(t,e,u){return e.visit()},Params:function(t,e,u){return e.visit()},Alt:function(t){var e=t.visit();return p.alt.apply(p,e).withSource(this.source)},TopLevelTerm_inline:function(t,e){var u=c+"_"+e.visit(),r=t.visit(),n=this.source.trimmed(),i=!(o.superGrammar&&o.superGrammar.rules[u]);f&&!i?o.override(u,l,r,null,n):o.define(u,l,r,null,n);var a=l.map((function(t){return p.app(t)}));return p.app(u,a).withSource(r.source)},Seq:function(t){return p.seq.apply(p,t.visit()).withSource(this.source)},Iter_star:function(t,e){return p.star(t.visit()).withSource(this.source)},Iter_plus:function(t,e){return p.plus(t.visit()).withSource(this.source)},Iter_opt:function(t,e){return p.opt(t.visit()).withSource(this.source)},Pred_not:function(t,e){return p.not(e.visit()).withSource(this.source)},Pred_lookahead:function(t,e){return p.lookahead(e.visit()).withSource(this.source)},Lex_lex:function(t,e){return p.lex(e.visit()).withSource(this.source)},Base_application:function(t,e){return p.app(t.visit(),e.visit()[0]||[]).withSource(this.source)},Base_range:function(t,e,u){return p.range(t.visit(),u.visit()).withSource(this.source)},Base_terminal:function(t){return p.terminal(t.visit()).withSource(this.source)},Base_paren:function(t,e,u){return e.visit()},ruleDescr:function(t,e,u){return e.visit()},ruleDescrText:function(t){return this.sourceString.trim()},caseName:function(t,e,u,r,n){return u.visit()},name:function(t,e){return this.sourceString},nameFirst:function(t){},nameRest:function(t){},terminal:function(t,e,u){return e.visit().join("")},oneCharTerminal:function(t,e,u){return e.visit()},terminalChar:function(t){return a.unescapeChar(this.sourceString)},escapeChar:function(t){return this.sourceString},NonemptyListOf:function(t,e,u){return[t.visit()].concat(u.visit())},EmptyListOf:function(){return[]},_terminal:function(){return this.primitiveValue}})(t).visit()}function v(t){if(!D(t))throw new TypeError("Expected a DOM Node, got "+a.unexpectedObjToString(t));if("text/ohm-js"!==t.type)throw new Error('Expected a script tag with type="text/ohm-js", got '+t);return t.getAttribute("src")?function(t){var e=new XMLHttpRequest;e.open("GET",t,!1);try{if(e.send(),0===e.status||200===e.status)return e.responseText}catch(t){}throw new Error("unable to load url "+t)}(t.getAttribute("src")):t.innerHTML}function g(t,e){var u=E(t,e),r=Object.keys(u);if(0===r.length)throw new Error("Missing grammar definition");if(r.length>1){var n=u[r[1]].source;throw new Error(l.getLineAndColumnMessage(n.sourceString,n.startIdx)+"Found more than one grammar definition -- use ohm.grammars() instead.")}return u[r[0]]}function E(t,e){var u=o.extend(o.asNamespace(e));if("string"!=typeof t){if(!f(t))throw new TypeError("Expected string as first argument, got "+a.unexpectedObjToString(t));t=t.toString()}return function(t,e){var u=r.match(t,"Grammars");if(u.failed())throw s.grammarSyntaxError(u);A(u,e)}(t,u),u}t.exports={createNamespace:o.createNamespace,grammar:g,grammars:E,grammarFromScriptElement:function(t){var e=t;if(d(e)){var u=h.querySelectorAll('script[type="text/ohm-js"]');if(1!==u.length)throw new Error('Expected exactly one script tag with type="text/ohm-js", found '+u.length);e=u[0]}return g(v(e))},grammarsFromScriptElements:function(t){if(D(t))return E(t);var e=t;if(d(e))e=h.querySelectorAll('script[type="text/ohm-js"]');else if("string"==typeof e||!D(e)&&!function(t){if(null==t)return!1;var e=t.length;return"number"==typeof e&&e>=0&&e<=m}(e))throw new TypeError("Expected a Node, NodeList, or Array, but got "+e);for(var u=o.createNamespace(),r=0;r1},i.prototype.hasNoChildren=function(){return!this.hasChildren()},i.prototype.onlyChild=function(){if(1!==this.numChildren())throw new Error("cannot get only child of a node of type "+this.ctorName+" (it has "+this.numChildren()+" children)");return this.firstChild()},i.prototype.firstChild=function(){if(this.hasNoChildren())throw new Error("cannot get first child of a "+this.ctorName+" node, which has no children");return this.childAt(0)},i.prototype.lastChild=function(){if(this.hasNoChildren())throw new Error("cannot get last child of a "+this.ctorName+" node, which has no children");return this.childAt(this.numChildren()-1)},i.prototype.childBefore=function(t){var e=this.indexOfChild(t);if(e<0)throw new Error("Node.childBefore() called w/ an argument that is not a child");if(0===e)throw new Error("cannot get child before first child");return this.childAt(e-1)},i.prototype.childAfter=function(t){var e=this.indexOfChild(t);if(e<0)throw new Error("Node.childAfter() called w/ an argument that is not a child");if(e===this.numChildren()-1)throw new Error("cannot get child after last child");return this.childAt(e+1)},i.prototype.isTerminal=function(){return!1},i.prototype.isNonterminal=function(){return!1},i.prototype.isIteration=function(){return!1},i.prototype.isOptional=function(){return!1},i.prototype.toJSON=function(){var t={};return t[this.ctorName]=this.children,t},r(o,i),o.prototype.isTerminal=function(){return!0},o.prototype.toJSON=function(){var t={};return t[this.ctorName]=this.primitiveValue,t},r(a,i),a.prototype.isNonterminal=function(){return!0},a.prototype.isLexical=function(){return n.isLexical(this.ctorName)},a.prototype.isSyntactic=function(){return n.isSyntactic(this.ctorName)},r(s,i),s.prototype.isIteration=function(){return!0},s.prototype.isOptional=function(){return this.optional},t.exports={Node:i,TerminalNode:o,NonterminalNode:a,IterationNode:s}},function(t,e){"function"==typeof Object.create?t.exports=function(t,e){e&&(t.super_=e,t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:t.exports=function(t,e){if(e){t.super_=e;var u=function(){};u.prototype=e.prototype,t.prototype=new u,t.prototype.constructor=t}}},function(t,e,u){"use strict";t.exports=u(52)()?globalThis:u(53)},function(t,e,u){"use strict";var r=u(20),n=u(55),i=u(59),o=u(67),a=u(68);(t.exports=function(t,e){var u,n,s,c,l;return arguments.length<2||"string"!=typeof t?(c=e,e=t,t=null):c=arguments[2],r(t)?(u=a.call(t,"c"),n=a.call(t,"e"),s=a.call(t,"w")):(u=s=!0,n=!1),l={value:e,configurable:u,enumerable:n,writable:s},c?i(o(c),l):l}).gs=function(t,e,u){var s,c,l,p;return"string"!=typeof t?(l=u,u=e,e=t,t=null):l=arguments[3],r(e)?n(e)?r(u)?n(u)||(l=u,u=void 0):u=void 0:(l=e,e=u=void 0):e=void 0,r(t)?(s=a.call(t,"c"),c=a.call(t,"e")):(s=!0,c=!1),p={get:e,set:u,configurable:s,enumerable:c},l?i(o(l),p):p}},function(t,e,u){"use strict";var r,n,i=u(28),o=u(46),a=u(49),s=u(1),c=u(3),l=u(2);function p(t){return Object.keys(t.rules).sort().map((function(e){return t.rules[e]}))}function f(t,e,u,r){if(this.name=t,this.superGrammar=e,this.rules=u,r){if(!(r in u))throw new Error("Invalid start rule: '"+r+"' is not a rule in grammar '"+t+"'");this.defaultStartRule=r}}f.initApplicationParser=function(t,e){r=t,n=e},f.prototype={matcher:function(){return new o(this)},isBuiltIn:function(){return this===f.ProtoBuiltInRules||this===f.BuiltInRules},equals:function(t){if(this===t)return!0;if(null==t||this.name!==t.name||this.defaultStartRule!==t.defaultStartRule||this.superGrammar!==t.superGrammar&&!this.superGrammar.equals(t.superGrammar))return!1;var e=p(this),u=p(t);return e.length===u.length&&e.every((function(t,e){return t.description===u[e].description&&t.formals.join(",")===u[e].formals.join(",")&&t.body.toString()===u[e].body.toString()}))},match:function(t,e){var u=this.matcher();return u.replaceInputRange(0,0,t),u.match(e)},trace:function(t,e){var u=this.matcher();return u.replaceInputRange(0,0,t),u.trace(e)},semantics:function(){throw new Error("semantics() is deprecated -- use createSemantics() instead.")},createSemantics:function(){return a.createSemantics(this)},extendSemantics:function(t){return a.createSemantics(this,t._getSemantics())},_checkTopDownActionDict:function(t,e,u){var r,n=[];for(var i in u){var o=u[i];if("_iter"===(r=i)||"_terminal"===r||"_nonterminal"===r||"_default"===r||i in this.rules)if("function"!=typeof o)n.push("'"+i+"' must be a function in an action dictionary for '"+this.name+"'");else{var a=o.length,s=this._topDownActionArity(i);a!==s&&n.push("Semantic action '"+i+"' has the wrong arity: expected "+s+", got "+a)}else n.push("'"+i+"' is not a valid semantic action for '"+this.name+"'")}if(n.length>0){var c=n.map((function(t){return"- "+t})),l=new Error("Found errors in the action dictionary of the '"+e+"' "+t+":\n"+c.join("\n"));throw l.problems=n,l}},_topDownActionArity:function(t){return"_iter"===t||"_nonterminal"===t||"_default"===t?1:"_terminal"===t?0:this.rules[t].body.getArity()},_inheritsFrom:function(t){for(var e=this.superGrammar;e;){if(e.equals(t,!0))return!0;e=e.superGrammar}return!1},toRecipe:function(t){var e={};this.source&&(e.source=this.source.contents);var u=null;this.superGrammar&&!this.superGrammar.isBuiltIn()&&(u=JSON.parse(this.superGrammar.toRecipe()));var r=null;this.defaultStartRule&&(r=this.defaultStartRule);var n={},i=this;return Object.keys(this.rules).forEach((function(t){var e,u=i.rules[t],r=u.body,o=!i.superGrammar||!i.superGrammar.rules[t];e=o?"define":r instanceof l.Extend?"extend":"override";var a={};if(u.source&&i.source){var s=u.source.relativeTo(i.source);a.sourceInterval=[s.startIdx,s.endIdx]}var c=o?u.description:null,p=r.outputRecipe(u.formals,i.source);n[t]=[e,a,c,u.formals,p]})),JSON.stringify(["grammar",e,this.name,u,r,n])},toOperationActionDictionaryTemplate:function(){return this._toOperationOrAttributeActionDictionaryTemplate()},toAttributeActionDictionaryTemplate:function(){return this._toOperationOrAttributeActionDictionaryTemplate()},_toOperationOrAttributeActionDictionaryTemplate:function(){var t=new s.StringBuffer;t.append("{");var e=!0;for(var u in this.rules){var r=this.rules[u].body;e?e=!1:t.append(","),t.append("\n"),t.append(" "),this.addSemanticActionTemplate(u,r,t)}return t.append("\n}"),t.contents()},addSemanticActionTemplate:function(t,e,u){u.append(t),u.append(": function(");var r=this._topDownActionArity(t);u.append(s.repeat("_",r).join(", ")),u.append(") {\n"),u.append(" }")},parseApplication:function(t){var e;if(-1===t.indexOf("<"))e=new l.Apply(t);else{var u=r.match(t,"Base_application");e=n(u,{})}if(!(e.ruleName in this.rules))throw c.undeclaredRule(e.ruleName,this.name);var i=this.rules[e.ruleName].formals;if(i.length!==e.args.length){var o=this.rules[e.ruleName].source;throw c.wrongNumberOfParameters(e.ruleName,i.length,e.args.length,o)}return e}},f.ProtoBuiltInRules=new f("ProtoBuiltInRules",void 0,{any:{body:l.any,formals:[],description:"any character",primitive:!0},end:{body:l.end,formals:[],description:"end of input",primitive:!0},caseInsensitive:{body:new i(new l.Param(0)),formals:["str"],primitive:!0},lower:{body:new l.UnicodeChar("Ll"),formals:[],description:"a lowercase letter",primitive:!0},upper:{body:new l.UnicodeChar("Lu"),formals:[],description:"an uppercase letter",primitive:!0},unicodeLtmo:{body:new l.UnicodeChar("Ltmo"),formals:[],description:"a Unicode character in Lt, Lm, or Lo",primitive:!0},spaces:{body:new l.Star(new l.Apply("space")),formals:[]},space:{body:new l.Range("\0"," "),formals:[],description:"a space"}}),t.exports=f},function(t,e){t.exports=function(t,e){if(!e||"object"!=typeof e)return t;var u=Object.keys(e),r=u.length;for(;r--;)t[u[r]]=e[u[r]];return t}},function(t,e,u){"use strict";var r=u(1).assert,n=u(3),i=u(4);function o(t,e,u){this.sourceString=t,this.startIdx=e,this.endIdx=u}o.coverage=function(){for(var t=arguments[0].sourceString,e=arguments[0].startIdx,u=arguments[0].endIdx,r=1;r=t.startIdx&&this.endIdx<=t.endIdx,"other interval does not cover this one"),new o(this.sourceString,this.startIdx-t.startIdx,this.endIdx-t.startIdx)},trimmed:function(){var t=this.contents,e=this.startIdx+t.match(/^\s*/)[0].length,u=this.endIdx-t.match(/\s*$/)[0].length;return new o(this.sourceString,e,u)},subInterval:function(t,e){var u=this.startIdx+t;return new o(this.sourceString,u,u+e)}},Object.defineProperties(o.prototype,{contents:{get:function(){return void 0===this._contents&&(this._contents=this.sourceString.slice(this.startIdx,this.endIdx)),this._contents},enumerable:!0},length:{get:function(){return this.endIdx-this.startIdx},enumerable:!0}}),t.exports=o},function(t,e,u){"use strict";var r=u(12);function n(t){this.source=t,this.pos=0,this.examinedLength=0}n.prototype={atEnd:function(){var t=this.pos===this.source.length;return this.examinedLength=Math.max(this.examinedLength,this.pos+1),t},next:function(){var t=this.source[this.pos++];return this.examinedLength=Math.max(this.examinedLength,this.pos),t},matchString:function(t,e){var u;if(e){for(u=0;u0&&(u===e.length-1?t.append(e.length>2?", or ":" or "):t.append(", ")),t.append(e[u].toString());return t.contents()},o.prototype.getInterval=function(){var t=this.getRightmostFailurePosition();return new i(this.input,t,t)},t.exports=o},function(t,e,u){"use strict";var r=u(65)();t.exports=function(t){return t!==r&&null!==t}},function(t,e){var u;u=function(){return this}();try{u=u||new Function("return this")()}catch(t){"object"==typeof window&&(u=window)}t.exports=u},function(t,e,u){"use strict";function r(t,e,u){if(!function(t){return"description"===t||"string"===t||"code"===t}(u))throw new Error("invalid Failure type: "+u);this.pexpr=t,this.text=e,this.type=u,this.fluffy=!1}r.prototype.getPExpr=function(){return this.pexpr},r.prototype.getText=function(){return this.text},r.prototype.getType=function(){return this.type},r.prototype.isDescription=function(){return"description"===this.type},r.prototype.isStringTerminal=function(){return"string"===this.type},r.prototype.isCode=function(){return"code"===this.type},r.prototype.isFluffy=function(){return this.fluffy},r.prototype.makeFluffy=function(){this.fluffy=!0},r.prototype.clearFluffy=function(){this.fluffy=!1},r.prototype.subsumes=function(t){return this.getText()===t.getText()&&this.type===t.type&&(!this.isFluffy()||this.isFluffy()&&t.isFluffy())},r.prototype.toString=function(){return"string"===this.type?JSON.stringify(this.getText()):this.getText()},r.prototype.clone=function(){var t=new r(this.pexpr,this.text,this.type);return this.isFluffy()&&t.makeFluffy(),t},r.prototype.toKey=function(){return this.toString()+"#"+this.type},t.exports=r},function(t,e,u){"use strict";var r=u(11);function n(){}n.prototype=Object.create(null),n.asNamespace=function(t){return t instanceof n?t:n.createNamespace(t)},n.createNamespace=function(t){return n.extend(n.prototype,t)},n.extend=function(t,e){if(t!==n.prototype&&!(t instanceof n))throw new TypeError("not a Namespace object: "+t);var u=Object.create(t,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});return r(u,e)},n.toString=function(t){return Object.prototype.toString.call(t)},t.exports=n},function(t,e,u){"use strict";var r=u(12),n=u(1),i={succeeded:1,isRootNode:2,isImplicitSpaces:4,isMemoized:8,isHeadOfLeftRecursion:16,terminatesLR:32};function o(t){return"string"==typeof t?t.replace(/ /g,"⋅").replace(/\t/g,"␉").replace(/\n/g,"␊").replace(/\r/g,"␍"):String(t)}function a(t,e,u,n,o,a,s){this.input=t,this.pos=this.pos1=e,this.pos2=u,this.source=new r(t,e,u),this.expr=n,this.bindings=a,this.children=s||[],this.terminatingLREntry=null,this._flags=o?i.succeeded:0}a.prototype.SKIP={},Object.defineProperty(a.prototype,"displayString",{get:function(){return this.expr.toDisplayString()}}),Object.keys(i).forEach((function(t){var e=i[t];Object.defineProperty(a.prototype,t,{get:function(){return 0!=(this._flags&e)},set:function(t){t?this._flags|=e:this._flags&=~e}})})),a.prototype.clone=function(){return this.cloneWithExpr(this.expr)},a.prototype.cloneWithExpr=function(t){var e=new a(this.input,this.pos,this.pos2,t,this.succeeded,this.bindings,this.children);return e.isHeadOfLeftRecursion=this.isHeadOfLeftRecursion,e.isImplicitSpaces=this.isImplicitSpaces,e.isMemoized=this.isMemoized,e.isRootNode=this.isRootNode,e.terminatesLR=this.terminatesLR,e.terminatingLREntry=this.terminatingLREntry,e},a.prototype.recordLRTermination=function(t,e){this.terminatingLREntry=new a(this.input,this.pos,this.pos2,this.expr,!1,[e],[t]),this.terminatingLREntry.terminatesLR=!0},a.prototype.walk=function(t,e){var u=t;function r(t,n,i){var o=!0;u.enter&&u.enter.call(e,t,n,i)===a.prototype.SKIP&&(o=!1),o&&(t.children.forEach((function(e){r(e,t,i+1)})),u.exit&&u.exit.call(e,t,n,i))}"function"==typeof u&&(u={enter:u}),this.isRootNode?this.children.forEach((function(t){r(t,null,0)})):r(this,null,0)},a.prototype.toString=function(){var t=new n.StringBuffer;return this.walk(function(e,u,r){if(!e)return this.SKIP;if("Alt"!==e.expr.constructor.name){var i,a,s,c,l;if(t.append((a=e.input,s=e.pos,c=10,((l=o(a.slice(s,s+c))).length"}default:throw new Error("Unknown object type '"+typeof t+"'")}}}(s(t),e,u)}function l(t){return i.highlight(t,i.languages.esquery,"esquery")}function p(t,e,u){return l(c(t,e=e||100,u))}function f(t,e,u){let r,n=e.rightmostFailurePosition,i=t.slice(0,n),o=t.slice(n+1);return r=u?'class="'+u+'"':'style="text-decoration-color: red;-webkit-text-decoration-color: red;color: red;"',i+""+t[n]+""+o}i.languages.esquery={string:{pattern:/(^|[^@\\])("|')(?:\\[\s\S]|(?!\2)[^\\])*\2/,greedy:!0,lookbehind:!0},variable:/@[\w.$]+|@(["'`])(?:\\[\s\S]|(?!\1)[^\\])+\1/,boolean:/\b(?:true|false|null)\b/i,number:/\b0x[\da-f]+\b|\b\d+\.?\d*|\B\.\d+\b/i,operator:/[-+\/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?|\b(?:AND|OR|TO|NOT|_exists_)\b/i,punctuation:/[;[\]{}()`,.]/};let h={prettify:p,prettifyElement:function(t,e,u,r){let n,i=document.getElementById(t),o=i.innerText.trim();try{n=p(o,u)}catch(t){return!!e&&(i.innerHTML=f(o,t,r)+function(t,e){return"

"+t.shortMessage+"

"}(t,r),i)}return i.innerHTML=n,i},format:c,highlight:l,parse:s,extendHighlighter:function(t){let e=t.keywords||[];if(e){let t="\\b(?:"+e.join("|")+")\\b";i.languages.esquery.keyword=new RegExp(t,"i")}},markErrorInQuery:f,prism:i,grammar:o};t.exports=h,"undefined"!=typeof window&&(window.PrettierEs=h)},function(t,e,u){(function(e){var u=function(t){var e=/\blang(?:uage)?-([\w-]+)\b/i,u=0,r={manual:t.Prism&&t.Prism.manual,disableWorkerMessageHandler:t.Prism&&t.Prism.disableWorkerMessageHandler,util:{encode:function t(e){return e instanceof n?new n(e.type,t(e.content),e.alias):Array.isArray(e)?e.map(t):e.replace(/&/g,"&").replace(/=p.reach);y+=F.value.length,F=F.next){var B=F.value;if(u.length>e.length)return;if(!(B instanceof n)){var I,b=1;if(v){if(!(I=i(C,y,e,A)))break;var x=I.index,S=I.index+I[0].length,w=y;for(w+=F.value.length;x>=w;)F=F.next,w+=F.value.length;if(w-=F.value.length,y=w,F.value instanceof n)continue;for(var _=F;_!==u.tail&&(wp.reach&&(p.reach=L);var R=F.prev;k&&(R=a(u,R,k),y+=k.length),s(u,R,b);var j=new n(f,m?r.tokenize(O,m):O,g,O);F=a(u,R,j),N&&a(u,F,N),b>1&&t(e,u,o,F.prev,y,{cause:f+","+D,reach:L})}}}}}(t,l,e,l.head,0),function(t){var e=[],u=t.head.next;for(;u!==t.tail;)e.push(u.value),u=u.next;return e}(l)},hooks:{all:{},add:function(t,e){var u=r.hooks.all;u[t]=u[t]||[],u[t].push(e)},run:function(t,e){var u=r.hooks.all[t];if(u&&u.length)for(var n,i=0;n=u[i++];)n(e)}},Token:n};function n(t,e,u,r){this.type=t,this.content=e,this.alias=u,this.length=0|(r||"").length}function i(t,e,u,r){t.lastIndex=e;var n=t.exec(u);if(n&&r&&n[1]){var i=n[1].length;n.index+=i,n[0]=n[0].slice(i)}return n}function o(){var t={value:null,prev:null,next:null},e={value:null,prev:t,next:null};t.next=e,this.head=t,this.tail=e,this.length=0}function a(t,e,u){var r=e.next,n={value:u,prev:e,next:r};return e.next=n,r.prev=n,t.length++,n}function s(t,e,u){for(var r=e.next,n=0;n"+i.content+""},!t.document)return t.addEventListener?(r.disableWorkerMessageHandler||t.addEventListener("message",(function(e){var u=JSON.parse(e.data),n=u.language,i=u.code,o=u.immediateClose;t.postMessage(r.highlight(i,r.languages[n],n)),o&&t.close()}),!1),r):r;var c=r.util.currentScript();function l(){r.manual||r.highlightAll()}if(c&&(r.filename=c.src,c.hasAttribute("data-manual")&&(r.manual=!0)),!r.manual){var p=document.readyState;"loading"===p||"interactive"===p&&c&&c.defer?document.addEventListener("DOMContentLoaded",l):window.requestAnimationFrame?window.requestAnimationFrame(l):window.setTimeout(l,16)}return r}("undefined"!=typeof window?window:"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope?self:{}); /** * Prism: Lightweight, robust, elegant syntax highlighting * * @license MIT * @author Lea Verou * @namespace * @public */t.exports&&(t.exports=u),void 0!==e&&(e.Prism=u),u.languages.markup={comment://,prolog:/<\?[\s\S]+?\?>/,doctype:{pattern:/"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^$|[[\]]/,"doctype-tag":/^DOCTYPE/,name:/[^\s<>'"]+/}},cdata://i,tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},u.languages.markup.tag.inside["attr-value"].inside.entity=u.languages.markup.entity,u.languages.markup.doctype.inside["internal-subset"].inside=u.languages.markup,u.hooks.add("wrap",(function(t){"entity"===t.type&&(t.attributes.title=t.content.replace(/&/,"&"))})),Object.defineProperty(u.languages.markup.tag,"addInlined",{value:function(t,e){var r={};r["language-"+e]={pattern:/(^$)/i,lookbehind:!0,inside:u.languages[e]},r.cdata=/^$/i;var n={"included-cdata":{pattern://i,inside:r}};n["language-"+e]={pattern:/[\s\S]+/,inside:u.languages[e]};var i={};i[t]={pattern:RegExp(/(<__[^>]*>)(?:))*\]\]>|(?!)/.source.replace(/__/g,(function(){return t})),"i"),lookbehind:!0,greedy:!0,inside:n},u.languages.insertBefore("markup","cdata",i)}}),u.languages.html=u.languages.markup,u.languages.mathml=u.languages.markup,u.languages.svg=u.languages.markup,u.languages.xml=u.languages.extend("markup",{}),u.languages.ssml=u.languages.xml,u.languages.atom=u.languages.xml,u.languages.rss=u.languages.xml,function(t){var e=/("|')(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/;t.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:/@[\w-](?:[^;{\s]|\s+(?![\s{]))*(?:;|(?=\s*\{))/,inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+e.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+e.source+"$"),alias:"url"}}},selector:RegExp("[^{}\\s](?:[^{};\"'\\s]|\\s+(?![\\s{])|"+e.source+")*(?=\\s*\\{)"),string:{pattern:e,greedy:!0},property:/(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,important:/!important\b/i,function:/[-a-z0-9]+(?=\()/i,punctuation:/[(){};:,]/},t.languages.css.atrule.inside.rest=t.languages.css;var u=t.languages.markup;u&&(u.tag.addInlined("style","css"),t.languages.insertBefore("inside","attr-value",{"style-attr":{pattern:/(^|["'\s])style\s*=\s*(?:"[^"]*"|'[^']*')/i,lookbehind:!0,inside:{"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{style:{pattern:/(["'])[\s\S]+(?=["']$)/,lookbehind:!0,alias:"language-css",inside:t.languages.css},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}},"attr-name":/^style/i}}},u.tag))}(u),u.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|interface|extends|implements|trait|instanceof|new)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:if|else|while|do|for|return|in|instanceof|function|new|try|throw|catch|finally|null|break|continue)\b/,boolean:/\b(?:true|false)\b/,function:/\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/},u.languages.javascript=u.languages.extend("clike",{"class-name":[u.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:prototype|constructor))/,lookbehind:!0}],keyword:[{pattern:/((?:^|})\s*)(?:catch|finally)\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|for|from|function|(?:get|set)(?=\s*[\[$\w\xA0-\uFFFF])|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:/\b(?:(?:0[xX](?:[\dA-Fa-f](?:_[\dA-Fa-f])?)+|0[bB](?:[01](?:_[01])?)+|0[oO](?:[0-7](?:_[0-7])?)+)n?|(?:\d(?:_\d)?)+n|NaN|Infinity)\b|(?:\b(?:\d(?:_\d)?)+\.?(?:\d(?:_\d)?)*|\B\.(?:\d(?:_\d)?)+)(?:[Ee][+-]?(?:\d(?:_\d)?)+)?/,operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),u.languages.javascript["class-name"][0].pattern=/(\b(?:class|interface|extends|implements|instanceof|new)\s+)[\w.\\]+/,u.languages.insertBefore("javascript","keyword",{regex:{pattern:/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)\/(?:\[(?:[^\]\\\r\n]|\\.)*]|\\.|[^/\\\[\r\n])+\/[gimyus]{0,6}(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/,lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:u.languages.regex},"regex-flags":/[a-z]+$/,"regex-delimiter":/^\/|\/$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:u.languages.javascript},{pattern:/(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,inside:u.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:u.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:u.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),u.languages.insertBefore("javascript","string",{"template-string":{pattern:/`(?:\\[\s\S]|\${(?:[^{}]|{(?:[^{}]|{[^}]*})*})+}|(?!\${)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\${(?:[^{}]|{(?:[^{}]|{[^}]*})*})+}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\${|}$/,alias:"punctuation"},rest:u.languages.javascript}},string:/[\s\S]+/}}}),u.languages.markup&&u.languages.markup.tag.addInlined("script","javascript"),u.languages.js=u.languages.javascript,function(){if("undefined"!=typeof self&&self.Prism&&self.document){Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector);var t=window.Prism,e={js:"javascript",py:"python",rb:"ruby",ps1:"powershell",psm1:"powershell",sh:"bash",bat:"batch",h:"c",tex:"latex"},u='pre[data-src]:not([data-src-status="loaded"]):not([data-src-status="loading"])',r=/\blang(?:uage)?-([\w-]+)\b/i;t.hooks.add("before-highlightall",(function(t){t.selector+=", "+u})),t.hooks.add("before-sanity-check",(function(r){var n=r.element;if(n.matches(u)){r.code="",n.setAttribute("data-src-status","loading");var o=n.appendChild(document.createElement("CODE"));o.textContent="Loading…";var a=n.getAttribute("data-src"),s=r.language;if("none"===s){var c=(/\.(\w+)$/.exec(a)||[,"none"])[1];s=e[c]||c}i(o,s),i(n,s);var l=t.plugins.autoloader;l&&l.loadLanguages(s);var p=new XMLHttpRequest;p.open("GET",a,!0),p.onreadystatechange=function(){var e,u;4==p.readyState&&(p.status<400&&p.responseText?(n.setAttribute("data-src-status","loaded"),o.textContent=p.responseText,t.highlightElement(o)):(n.setAttribute("data-src-status","failed"),p.status>=400?o.textContent=(e=p.status,u=p.statusText,"✖ Error "+e+" while fetching file: "+u):o.textContent="✖ Error: File does not exist or is empty"))},p.send(null)}})),t.plugins.fileHighlight={highlight:function(e){for(var r,n=(e||document).querySelectorAll(u),i=0;r=n[i++];)t.highlightElement(r)}};var n=!1;t.fileHighlight=function(){n||(console.warn("Prism.fileHighlight is deprecated. Use `Prism.plugins.fileHighlight.highlight` instead."),n=!0),t.plugins.fileHighlight.highlight.apply(this,arguments)}}function i(t,e){var u=t.className;u=u.replace(r," ")+" language-"+e,t.className=u.replace(/\s+/g," ").trim()}}()}).call(this,u(16))},function(t,e,u){var r=u(5);t.exports=r.makeRecipe(["grammar",{source:'ESQueryGrammar {\n ESQuery = query\n\n reservedWord = "AND" | "OR" | "NOT" | "TO"\n boolOperator = "AND" | "OR"\n orSpace = space+\n orLine = "|"\n\n // STRING LITERALS\n sourceCharacter = any\n nonEscapeCharacter = ~(singleEscapeCharacter) sourceCharacter\n characterEscapeSequence = singleEscapeCharacter\n | nonEscapeCharacter\n singleEscapeCharacter = "\\"" | "\\\\"\n doubleStringCharacter = ~("\\"" | "\\\\") sourceCharacter -- nonEscaped\n | "\\\\" characterEscapeSequence -- Escaped\n singleESEscapeCharacter = " " | "+" | "-" | "=" | "!" | "(" | ")" | "{" | "}"\n | "[" | "]" | "^" | "\\"" | "~" | "*" | "?" | ":" | "\\\\" | "/"\n escapedESStringCharacter = "\\\\" singleESEscapeCharacter\n\twildcardCharacter = "*" | "?"\n regexCharacter = "*" | "?" | "[" | "]" | "(" | ")"\n\n unquotedString = ~reservedWord (escapedESStringCharacter | wildcardCharacter | alnum | "_" | "." | "-" | "’")+\n quotedString = "\\"" doubleStringCharacter* "\\""\n\n unquotedFuzzyString = unquotedString "~" alnum*\n quotedFuzzyString = "\\"" doubleStringCharacter* "\\"" "~" alnum*\n\n detachedCond = quotedFuzzyString | unquotedFuzzyString | quotedString | unquotedString\n\n // UTILS\n spaced = space+ x space+\n parented = "(" space* x space* ")"\n\n spacedBool = spaced\n genericBoolOp = spacedBool | orSpace | orLine\n\n // FIELD QUERY\n fieldName = ~reservedWord (alnum | "." | "_")+ &":"\n fieldCond = fieldName ":" subquery\n\n // RANGE QUERY\n rangeValue = ~space ((alnum | "/" | "-" | ":" | "+")+ | "*")\n rangeCond = (("[" | "{") space* rangeValue spaced<"TO"> rangeValue space* ("]" | "}"))\n simpleRangeCond = (">" subquery) | ("<" subquery) | (">=" subquery) | ("<=" subquery)\n\n // REGEX QUERY\n regexCond = "/" (alnum | regexCharacter)+ "/"\n\n // CONDITIONS\n genericCond = fieldCond | rangeCond | simpleRangeCond | regexCond | detachedCond\n cond = parented | genericCond\n\n simpleNegation = "-" subquery\n simpleMust = "+" subquery\n longNegation = "NOT" space+ subquery\n markedCond = longNegation | simpleNegation | simpleMust\n\n queryElement = markedCond | cond\n\tsubquery = parented | queryElement\n query = nonemptyListOf | parented\n}'},"ESQueryGrammar",null,"ESQuery",{ESQuery:["define",{sourceInterval:[21,36]},null,[],["app",{sourceInterval:[31,36]},"query",[]]],reservedWord:["define",{sourceInterval:[42,84]},null,[],["alt",{sourceInterval:[57,84]},["terminal",{sourceInterval:[57,62]},"AND"],["terminal",{sourceInterval:[65,69]},"OR"],["terminal",{sourceInterval:[72,77]},"NOT"],["terminal",{sourceInterval:[80,84]},"TO"]]],boolOperator:["define",{sourceInterval:[89,116]},null,[],["alt",{sourceInterval:[104,116]},["terminal",{sourceInterval:[104,109]},"AND"],["terminal",{sourceInterval:[112,116]},"OR"]]],orSpace:["define",{sourceInterval:[121,137]},null,[],["plus",{sourceInterval:[131,137]},["app",{sourceInterval:[131,136]},"space",[]]]],orLine:["define",{sourceInterval:[142,154]},null,[],["terminal",{sourceInterval:[151,154]},"|"]],sourceCharacter:["define",{sourceInterval:[183,204]},null,[],["app",{sourceInterval:[201,204]},"any",[]]],nonEscapeCharacter:["define",{sourceInterval:[209,270]},null,[],["seq",{sourceInterval:[230,270]},["not",{sourceInterval:[230,254]},["app",{sourceInterval:[232,253]},"singleEscapeCharacter",[]]],["app",{sourceInterval:[255,270]},"sourceCharacter",[]]]],characterEscapeSequence:["define",{sourceInterval:[275,371]},null,[],["alt",{sourceInterval:[301,371]},["app",{sourceInterval:[301,322]},"singleEscapeCharacter",[]],["app",{sourceInterval:[353,371]},"nonEscapeCharacter",[]]]],singleEscapeCharacter:["define",{sourceInterval:[376,411]},null,[],["alt",{sourceInterval:[400,411]},["terminal",{sourceInterval:[400,404]},'"'],["terminal",{sourceInterval:[407,411]},"\\"]]],doubleStringCharacter_nonEscaped:["define",{sourceInterval:[440,484]},null,[],["seq",{sourceInterval:[440,470]},["not",{sourceInterval:[440,454]},["alt",{sourceInterval:[442,453]},["terminal",{sourceInterval:[442,446]},'"'],["terminal",{sourceInterval:[449,453]},"\\"]]],["app",{sourceInterval:[455,470]},"sourceCharacter",[]]]],doubleStringCharacter_Escaped:["define",{sourceInterval:[513,552]},null,[],["seq",{sourceInterval:[513,541]},["terminal",{sourceInterval:[513,517]},"\\"],["app",{sourceInterval:[518,541]},"characterEscapeSequence",[]]]],doubleStringCharacter:["define",{sourceInterval:[416,552]},null,[],["alt",{sourceInterval:[440,552]},["app",{sourceInterval:[440,470]},"doubleStringCharacter_nonEscaped",[]],["app",{sourceInterval:[513,541]},"doubleStringCharacter_Escaped",[]]]],singleESEscapeCharacter:["define",{sourceInterval:[557,724]},null,[],["alt",{sourceInterval:[583,724]},["terminal",{sourceInterval:[583,586]}," "],["terminal",{sourceInterval:[589,592]},"+"],["terminal",{sourceInterval:[595,598]},"-"],["terminal",{sourceInterval:[601,604]},"="],["terminal",{sourceInterval:[607,610]},"!"],["terminal",{sourceInterval:[613,616]},"("],["terminal",{sourceInterval:[619,622]},")"],["terminal",{sourceInterval:[625,628]},"{"],["terminal",{sourceInterval:[631,634]},"}"],["terminal",{sourceInterval:[665,668]},"["],["terminal",{sourceInterval:[671,674]},"]"],["terminal",{sourceInterval:[677,680]},"^"],["terminal",{sourceInterval:[683,687]},'"'],["terminal",{sourceInterval:[690,693]},"~"],["terminal",{sourceInterval:[696,699]},"*"],["terminal",{sourceInterval:[702,705]},"?"],["terminal",{sourceInterval:[708,711]},":"],["terminal",{sourceInterval:[714,718]},"\\"],["terminal",{sourceInterval:[721,724]},"/"]]],escapedESStringCharacter:["define",{sourceInterval:[729,784]},null,[],["seq",{sourceInterval:[756,784]},["terminal",{sourceInterval:[756,760]},"\\"],["app",{sourceInterval:[761,784]},"singleESEscapeCharacter",[]]]],wildcardCharacter:["define",{sourceInterval:[786,815]},null,[],["alt",{sourceInterval:[806,815]},["terminal",{sourceInterval:[806,809]},"*"],["terminal",{sourceInterval:[812,815]},"?"]]],regexCharacter:["define",{sourceInterval:[820,870]},null,[],["alt",{sourceInterval:[837,870]},["terminal",{sourceInterval:[837,840]},"*"],["terminal",{sourceInterval:[843,846]},"?"],["terminal",{sourceInterval:[849,852]},"["],["terminal",{sourceInterval:[855,858]},"]"],["terminal",{sourceInterval:[861,864]},"("],["terminal",{sourceInterval:[867,870]},")"]]],unquotedString:["define",{sourceInterval:[876,986]},null,[],["seq",{sourceInterval:[893,986]},["not",{sourceInterval:[893,906]},["app",{sourceInterval:[894,906]},"reservedWord",[]]],["plus",{sourceInterval:[907,986]},["alt",{sourceInterval:[908,984]},["app",{sourceInterval:[908,932]},"escapedESStringCharacter",[]],["app",{sourceInterval:[935,952]},"wildcardCharacter",[]],["app",{sourceInterval:[955,960]},"alnum",[]],["terminal",{sourceInterval:[963,966]},"_"],["terminal",{sourceInterval:[969,972]},"."],["terminal",{sourceInterval:[975,978]},"-"],["terminal",{sourceInterval:[981,984]},"’"]]]]],quotedString:["define",{sourceInterval:[991,1038]},null,[],["seq",{sourceInterval:[1006,1038]},["terminal",{sourceInterval:[1006,1010]},'"'],["star",{sourceInterval:[1011,1033]},["app",{sourceInterval:[1011,1032]},"doubleStringCharacter",[]]],["terminal",{sourceInterval:[1034,1038]},'"']]],unquotedFuzzyString:["define",{sourceInterval:[1044,1091]},null,[],["seq",{sourceInterval:[1066,1091]},["app",{sourceInterval:[1066,1080]},"unquotedString",[]],["terminal",{sourceInterval:[1081,1084]},"~"],["star",{sourceInterval:[1085,1091]},["app",{sourceInterval:[1085,1090]},"alnum",[]]]]],quotedFuzzyString:["define",{sourceInterval:[1096,1159]},null,[],["seq",{sourceInterval:[1116,1159]},["terminal",{sourceInterval:[1116,1120]},'"'],["star",{sourceInterval:[1121,1143]},["app",{sourceInterval:[1121,1142]},"doubleStringCharacter",[]]],["terminal",{sourceInterval:[1144,1148]},'"'],["terminal",{sourceInterval:[1149,1152]},"~"],["star",{sourceInterval:[1153,1159]},["app",{sourceInterval:[1153,1158]},"alnum",[]]]]],detachedCond:["define",{sourceInterval:[1165,1251]},null,[],["alt",{sourceInterval:[1180,1251]},["app",{sourceInterval:[1180,1197]},"quotedFuzzyString",[]],["app",{sourceInterval:[1200,1219]},"unquotedFuzzyString",[]],["app",{sourceInterval:[1222,1234]},"quotedString",[]],["app",{sourceInterval:[1237,1251]},"unquotedString",[]]]],spaced:["define",{sourceInterval:[1270,1297]},null,["x"],["seq",{sourceInterval:[1282,1297]},["plus",{sourceInterval:[1282,1288]},["app",{sourceInterval:[1282,1287]},"space",[]]],["param",{},0],["plus",{sourceInterval:[1291,1297]},["app",{sourceInterval:[1291,1296]},"space",[]]]]],parented:["define",{sourceInterval:[1302,1339]},null,["x"],["seq",{sourceInterval:[1316,1339]},["terminal",{sourceInterval:[1316,1319]},"("],["star",{sourceInterval:[1320,1326]},["app",{sourceInterval:[1320,1325]},"space",[]]],["param",{},0],["star",{sourceInterval:[1329,1335]},["app",{sourceInterval:[1329,1334]},"space",[]]],["terminal",{sourceInterval:[1336,1339]},")"]]],spacedBool:["define",{sourceInterval:[1345,1378]},null,[],["app",{sourceInterval:[1358,1378]},"spaced",[["app",{sourceInterval:[1365,1377]},"boolOperator",[]]]]],genericBoolOp:["define",{sourceInterval:[1383,1428]},null,[],["alt",{sourceInterval:[1399,1428]},["app",{sourceInterval:[1399,1409]},"spacedBool",[]],["app",{sourceInterval:[1412,1419]},"orSpace",[]],["app",{sourceInterval:[1422,1428]},"orLine",[]]]],fieldName:["define",{sourceInterval:[1453,1504]},null,[],["seq",{sourceInterval:[1465,1504]},["not",{sourceInterval:[1465,1478]},["app",{sourceInterval:[1466,1478]},"reservedWord",[]]],["plus",{sourceInterval:[1479,1499]},["alt",{sourceInterval:[1480,1497]},["app",{sourceInterval:[1480,1485]},"alnum",[]],["terminal",{sourceInterval:[1488,1491]},"."],["terminal",{sourceInterval:[1494,1497]},"_"]]],["lookahead",{sourceInterval:[1500,1504]},["terminal",{sourceInterval:[1501,1504]},":"]]]],fieldCond:["define",{sourceInterval:[1509,1543]},null,[],["seq",{sourceInterval:[1521,1543]},["app",{sourceInterval:[1521,1530]},"fieldName",[]],["terminal",{sourceInterval:[1531,1534]},":"],["app",{sourceInterval:[1535,1543]},"subquery",[]]]],rangeValue:["define",{sourceInterval:[1568,1628]},null,[],["seq",{sourceInterval:[1581,1628]},["not",{sourceInterval:[1581,1587]},["app",{sourceInterval:[1582,1587]},"space",[]]],["alt",{sourceInterval:[1589,1627]},["plus",{sourceInterval:[1589,1621]},["alt",{sourceInterval:[1590,1619]},["app",{sourceInterval:[1590,1595]},"alnum",[]],["terminal",{sourceInterval:[1598,1601]},"/"],["terminal",{sourceInterval:[1604,1607]},"-"],["terminal",{sourceInterval:[1610,1613]},":"],["terminal",{sourceInterval:[1616,1619]},"+"]]],["terminal",{sourceInterval:[1624,1627]},"*"]]]],rangeCond:["define",{sourceInterval:[1633,1719]},null,[],["seq",{sourceInterval:[1645,1719]},["alt",{sourceInterval:[1647,1656]},["terminal",{sourceInterval:[1647,1650]},"["],["terminal",{sourceInterval:[1653,1656]},"{"]],["star",{sourceInterval:[1658,1664]},["app",{sourceInterval:[1658,1663]},"space",[]]],["app",{sourceInterval:[1665,1675]},"rangeValue",[]],["app",{sourceInterval:[1676,1688]},"spaced",[["terminal",{sourceInterval:[1683,1687]},"TO"]]],["app",{sourceInterval:[1689,1699]},"rangeValue",[]],["star",{sourceInterval:[1700,1706]},["app",{sourceInterval:[1700,1705]},"space",[]]],["alt",{sourceInterval:[1708,1717]},["terminal",{sourceInterval:[1708,1711]},"]"],["terminal",{sourceInterval:[1714,1717]},"}"]]]],simpleRangeCond:["define",{sourceInterval:[1724,1809]},null,[],["alt",{sourceInterval:[1742,1809]},["seq",{sourceInterval:[1742,1756]},["terminal",{sourceInterval:[1743,1746]},">"],["app",{sourceInterval:[1747,1755]},"subquery",[]]],["seq",{sourceInterval:[1759,1773]},["terminal",{sourceInterval:[1760,1763]},"<"],["app",{sourceInterval:[1764,1772]},"subquery",[]]],["seq",{sourceInterval:[1776,1791]},["terminal",{sourceInterval:[1777,1781]},">="],["app",{sourceInterval:[1782,1790]},"subquery",[]]],["seq",{sourceInterval:[1794,1809]},["terminal",{sourceInterval:[1795,1799]},"<="],["app",{sourceInterval:[1800,1808]},"subquery",[]]]]],regexCond:["define",{sourceInterval:[1834,1879]},null,[],["seq",{sourceInterval:[1846,1879]},["terminal",{sourceInterval:[1846,1849]},"/"],["plus",{sourceInterval:[1850,1875]},["alt",{sourceInterval:[1851,1873]},["app",{sourceInterval:[1851,1856]},"alnum",[]],["app",{sourceInterval:[1859,1873]},"regexCharacter",[]]]],["terminal",{sourceInterval:[1876,1879]},"/"]]],genericCond:["define",{sourceInterval:[1903,1983]},null,[],["alt",{sourceInterval:[1917,1983]},["app",{sourceInterval:[1917,1926]},"fieldCond",[]],["app",{sourceInterval:[1929,1938]},"rangeCond",[]],["app",{sourceInterval:[1941,1956]},"simpleRangeCond",[]],["app",{sourceInterval:[1959,1968]},"regexCond",[]],["app",{sourceInterval:[1971,1983]},"detachedCond",[]]]],cond:["define",{sourceInterval:[1988,2030]},null,[],["alt",{sourceInterval:[1995,2030]},["app",{sourceInterval:[1995,2016]},"parented",[["app",{sourceInterval:[2004,2015]},"genericCond",[]]]],["app",{sourceInterval:[2019,2030]},"genericCond",[]]]],simpleNegation:["define",{sourceInterval:[2036,2065]},null,[],["seq",{sourceInterval:[2053,2065]},["terminal",{sourceInterval:[2053,2056]},"-"],["app",{sourceInterval:[2057,2065]},"subquery",[]]]],simpleMust:["define",{sourceInterval:[2070,2095]},null,[],["seq",{sourceInterval:[2083,2095]},["terminal",{sourceInterval:[2083,2086]},"+"],["app",{sourceInterval:[2087,2095]},"subquery",[]]]],longNegation:["define",{sourceInterval:[2100,2136]},null,[],["seq",{sourceInterval:[2115,2136]},["terminal",{sourceInterval:[2115,2120]},"NOT"],["plus",{sourceInterval:[2121,2127]},["app",{sourceInterval:[2121,2126]},"space",[]]],["app",{sourceInterval:[2128,2136]},"subquery",[]]]],markedCond:["define",{sourceInterval:[2141,2196]},null,[],["alt",{sourceInterval:[2154,2196]},["app",{sourceInterval:[2154,2166]},"longNegation",[]],["app",{sourceInterval:[2169,2183]},"simpleNegation",[]],["app",{sourceInterval:[2186,2196]},"simpleMust",[]]]],queryElement:["define",{sourceInterval:[2202,2234]},null,[],["alt",{sourceInterval:[2217,2234]},["app",{sourceInterval:[2217,2227]},"markedCond",[]],["app",{sourceInterval:[2230,2234]},"cond",[]]]],subquery:["define",{sourceInterval:[2236,2277]},null,[],["alt",{sourceInterval:[2247,2277]},["app",{sourceInterval:[2247,2262]},"parented",[["app",{sourceInterval:[2256,2261]},"query",[]]]],["app",{sourceInterval:[2265,2277]},"queryElement",[]]]],query:["define",{sourceInterval:[2282,2347]},null,[],["alt",{sourceInterval:[2290,2347]},["app",{sourceInterval:[2290,2329]},"nonemptyListOf",[["app",{sourceInterval:[2305,2313]},"subquery",[]],["app",{sourceInterval:[2315,2328]},"genericBoolOp",[]]]],["app",{sourceInterval:[2332,2347]},"parented",[["app",{sourceInterval:[2341,2346]},"query",[]]]]]]}])},function(t,e,u){"use strict";var r=u(27),n=u(2);function i(){}i.prototype={currentDecl:null,newGrammar:function(t){return new r(t)},grammar:function(t,e,u,n,i){var o=new r(e);u&&o.withSuperGrammar(this.fromRecipe(u)),n&&o.withDefaultStartRule(n),t&&t.source&&o.withSource(t.source);var a=this;return this.currentDecl=o,Object.keys(i).forEach((function(t){var e,u=i[t],r=u[0],n=u[1],s=u[2],c=u[3],l=a.fromRecipe(u[4]);o.source&&n&&n.sourceInterval&&(e=o.source.subInterval(n.sourceInterval[0],n.sourceInterval[1]-n.sourceInterval[0])),o[r](t,c,l,s,e)})),this.currentDecl=null,o.build()},terminal:function(t){return new n.Terminal(t)},range:function(t,e){return new n.Range(t,e)},param:function(t){return new n.Param(t)},alt:function(){for(var t=[],e=0;e0&&(e=e.map((function(t){return t instanceof n.PExpr?t:this.fromRecipe(t)}),this)),new n.Apply(t,e)},fromRecipe:function(t){var e=this[t[0]].apply(this,"grammar"===t[0]?t.slice(1):t.slice(2)),u=t[1];return u&&u.sourceInterval&&this.currentDecl&&e.withSource(this.currentDecl.sourceInterval.apply(this.currentDecl,u.sourceInterval)),e}},t.exports=i},function(t,e,u){"use strict";var r=u(10),n=u(13),i=u(1),o=u(3),a=u(2);function s(t){this.name=t}s.prototype.sourceInterval=function(t,e){return this.source.subInterval(t,e-t)},s.prototype.ensureSuperGrammar=function(){return this.superGrammar||this.withSuperGrammar("BuiltInRules"===this.name?r.ProtoBuiltInRules:r.BuiltInRules),this.superGrammar},s.prototype.installOverriddenOrExtendedRule=function(t,e,u,r){var n=i.getDuplicates(e);if(n.length>0)throw o.duplicateParameterNames(t,n,r);var a=this.ensureSuperGrammar().rules[t],s=a.formals,c=s?s.length:0;if(e.length!==c)throw o.wrongNumberOfParameters(t,c,e.length,r);return this.install(t,e,u,a.description,r)},s.prototype.install=function(t,e,u,r,n){return this.rules[t]={body:u.introduceParams(e),formals:e,description:r,source:n},this},s.prototype.withSuperGrammar=function(t){if(this.superGrammar)throw new Error("the super grammar of a GrammarDecl cannot be set more than once");return this.superGrammar=t,this.rules=Object.create(t.rules),t.isBuiltIn()||(this.defaultStartRule=t.defaultStartRule),this},s.prototype.withDefaultStartRule=function(t){return this.defaultStartRule=t,this},s.prototype.withSource=function(t){return this.source=new n(t).interval(0,t.length),this},s.prototype.build=function(){var t=new r(this.name,this.ensureSuperGrammar(),this.rules,this.defaultStartRule),e=[],u=!1;return Object.keys(t.rules).forEach((function(r){var n=t.rules[r].body;try{n.assertChoicesHaveUniformArity(r)}catch(t){e.push(t)}try{n.assertAllApplicationsAreValid(r,t)}catch(t){e.push(t),u=!0}})),u||Object.keys(t.rules).forEach((function(u){var r=t.rules[u].body;try{r.assertIteratedExprsAreNotNullable(t,u)}catch(t){e.push(t)}})),e.length>0&&o.throwErrors(e),this.source&&(t.source=this.source),t},s.prototype.define=function(t,e,u,r,n){if(this.ensureSuperGrammar(),this.superGrammar.rules[t])throw o.duplicateRuleDeclaration(t,this.name,this.superGrammar.name,n);if(this.rules[t])throw o.duplicateRuleDeclaration(t,this.name,this.name,n);var a=i.getDuplicates(e);if(a.length>0)throw o.duplicateParameterNames(t,a,n);return this.install(t,e,u,r,n)},s.prototype.override=function(t,e,u,r,n){if(!this.ensureSuperGrammar().rules[t])throw o.cannotOverrideUndeclaredRule(t,this.superGrammar.name,n);return this.installOverriddenOrExtendedRule(t,e,u,n),this},s.prototype.extend=function(t,e,u,r,n){if(!this.ensureSuperGrammar().rules[t])throw o.cannotExtendUndeclaredRule(t,this.superGrammar.name,n);var i=new a.Extend(this.superGrammar,t,u);return i.source=u.source,this.installOverriddenOrExtendedRule(t,e,i,n),this},t.exports=s},function(t,e,u){"use strict";var r=u(17),n=u(6).TerminalNode,i=u(1).assert,o=u(7),a=u(2);function s(t){this.obj=t}o(s,a.PExpr),s.prototype={_getString:function(t){var e=t.currentApplication().args[this.obj.index];return i(e instanceof a.Terminal,"expected a Terminal expression"),e.obj},allowsSkippingPrecedingSpace:function(){return!0},eval:function(t){var e=t.inputStream,u=e.pos,r=this._getString(t);return e.matchString(r,!0)?(t.pushBinding(new n(t.grammar,r),u),!0):(t.processFailure(u,this),!1)},generateExample:function(t,e,u,r){for(var n=this.obj.generateExample(t,e,u,r).value,i="",o=0;o0))throw o.applicationOfSyntacticRuleFromLexicalContext(this.ruleName,this);var s=this.args.length,c=u.formals.length;if(s!==c)throw o.wrongNumberOfArguments(this.ruleName,c,s,this.source);var l=this;if(this.args.forEach((function(u){if(u._assertAllApplicationsAreValid(t,e),1!==u.getArity())throw o.invalidParameter(l.ruleName,u)})),r&&u===r.rules.caseInsensitive&&!(this.args[0]instanceof a.Terminal))throw o.incorrectArgumentType('a Terminal (e.g. "abc")',this.args[0])}},function(t,e,u){"use strict";var r=u(1),n=u(3),i=u(2);i.PExpr.prototype.assertChoicesHaveUniformArity=r.abstract("assertChoicesHaveUniformArity"),i.any.assertChoicesHaveUniformArity=i.end.assertChoicesHaveUniformArity=i.Terminal.prototype.assertChoicesHaveUniformArity=i.Range.prototype.assertChoicesHaveUniformArity=i.Param.prototype.assertChoicesHaveUniformArity=i.Lex.prototype.assertChoicesHaveUniformArity=i.UnicodeChar.prototype.assertChoicesHaveUniformArity=function(t){},i.Alt.prototype.assertChoicesHaveUniformArity=function(t){if(0!==this.terms.length)for(var e=this.terms[0].getArity(),u=0;u=1},i.end.check=function(t,e){return e[0]instanceof n.Node&&e[0].isTerminal()&&void 0===e[0].primitiveValue},i.Terminal.prototype.check=function(t,e){return e[0]instanceof n.Node&&e[0].isTerminal()&&e[0].primitiveValue===this.obj},i.Range.prototype.check=function(t,e){return e[0]instanceof n.Node&&e[0].isTerminal()&&typeof e[0].primitiveValue==typeof this.from},i.Param.prototype.check=function(t,e){return e.length>=1},i.Alt.prototype.check=function(t,e){for(var u=0;u0){var h=r[u-1],D=n[u-1];f=D[D.length-1]+h[h.length-1].matchLength-(p=n[0][0])}var d=this instanceof o.Opt;for(i=0;i0){var l=Math.floor(Math.random()*a.length);c.value=a[l]}return o.length>0&&(c.examplesNeeded=o),c.needHelp=s,c},n.Seq.prototype.generateExample=function(t,e,u,r){var n=i(this.factors.map((function(n){return n.generateExample(t,e,u,r)}))),o=n.examplesNeeded,a=n.successfulExamples,s=n.needHelp,c={};return o.length>0||s?(c.examplesNeeded=o,c.needHelp=s):c.value=a.join(u?" ":""),c},n.Iter.prototype.generateExample=function(t,e,u,r){for(var n=Math.min(this.maxNumMatches-this.minNumMatches,3),o=Math.floor(Math.random()*(n+1)+this.minNumMatches),a=[],s=0;s0&&(f.examplesNeeded=l),f},n.Not.prototype.generateExample=function(t,e,u){return{value:""}},n.Lookahead.prototype.generateExample=function(t,e,u){return{value:""}},n.Lex.prototype.generateExample=function(t,e,u,r){return this.expr.generateExample(t,e,!1,r)},n.Apply.prototype.generateExample=function(t,e,u,r){var n={},i=this.substituteParams(r).toString();if(e.hasOwnProperty(i)){var o=e[i],a=Math.floor(Math.random()*o.length);n.value=o[a]}else n.examplesNeeded=[i];return n},n.UnicodeChar.prototype.generateExample=function(t,e,u,r){var n;switch(this.category){case"Lu":n="Á";break;case"Ll":n="ŏ";break;case"Lt":n="Dž";break;case"Lm":n="ˮ";break;case"Lo":n="ƻ";break;case"Nl":n="ↂ";break;case"Nd":n="½";break;case"Mn":n="҇";break;case"Mc":n="ि";break;case"Pc":n="⁀";break;case"Zs":n=" ";break;case"L":n="Á";break;case"Ltmo":n="Dž"}return{value:n}}},function(t,e,u){"use strict";var r=u(1),n=u(2);function i(t,e){var u={};if(t.source&&e){var r=t.source.relativeTo(e);u.sourceInterval=[r.startIdx,r.endIdx]}return u}n.PExpr.prototype.outputRecipe=r.abstract("outputRecipe"),n.any.outputRecipe=function(t,e){return["any",i(this,e)]},n.end.outputRecipe=function(t,e){return["end",i(this,e)]},n.Terminal.prototype.outputRecipe=function(t,e){return["terminal",i(this,e),this.obj]},n.Range.prototype.outputRecipe=function(t,e){return["range",i(this,e),this.from,this.to]},n.Param.prototype.outputRecipe=function(t,e){return["param",i(this,e),this.index]},n.Alt.prototype.outputRecipe=function(t,e){return["alt",i(this,e)].concat(this.terms.map((function(u){return u.outputRecipe(t,e)})))},n.Extend.prototype.outputRecipe=function(t,e){return this.terms[0].outputRecipe(t,e)},n.Seq.prototype.outputRecipe=function(t,e){return["seq",i(this,e)].concat(this.factors.map((function(u){return u.outputRecipe(t,e)})))},n.Star.prototype.outputRecipe=n.Plus.prototype.outputRecipe=n.Opt.prototype.outputRecipe=n.Not.prototype.outputRecipe=n.Lookahead.prototype.outputRecipe=n.Lex.prototype.outputRecipe=function(t,e){return[this.constructor.name.toLowerCase(),i(this,e),this.expr.outputRecipe(t,e)]},n.Apply.prototype.outputRecipe=function(t,e){return["app",i(this,e),this.ruleName,this.args.map((function(u){return u.outputRecipe(t,e)}))]},n.UnicodeChar.prototype.outputRecipe=function(t,e){return["unicodeChar",i(this,e),this.category]}},function(t,e,u){"use strict";var r=u(1),n=u(2);n.PExpr.prototype.introduceParams=r.abstract("introduceParams"),n.any.introduceParams=n.end.introduceParams=n.Terminal.prototype.introduceParams=n.Range.prototype.introduceParams=n.Param.prototype.introduceParams=n.UnicodeChar.prototype.introduceParams=function(t){return this},n.Alt.prototype.introduceParams=function(t){return this.terms.forEach((function(e,u,r){r[u]=e.introduceParams(t)})),this},n.Seq.prototype.introduceParams=function(t){return this.factors.forEach((function(e,u,r){r[u]=e.introduceParams(t)})),this},n.Iter.prototype.introduceParams=n.Not.prototype.introduceParams=n.Lookahead.prototype.introduceParams=n.Lex.prototype.introduceParams=function(t){return this.expr=this.expr.introduceParams(t),this},n.Apply.prototype.introduceParams=function(t){var e=t.indexOf(this.ruleName);if(e>=0){if(this.args.length>0)throw new Error("Parameterized rules cannot be passed as arguments to another rule.");return new n.Param(e)}return this.args.forEach((function(e,u,r){r[u]=e.introduceParams(t)})),this}},function(t,e,u){"use strict";var r=u(1),n=u(2);n.PExpr.prototype.isNullable=function(t){return this._isNullable(t,Object.create(null))},n.PExpr.prototype._isNullable=r.abstract("_isNullable"),n.any._isNullable=n.Range.prototype._isNullable=n.Param.prototype._isNullable=n.Plus.prototype._isNullable=n.UnicodeChar.prototype._isNullable=function(t,e){return!1},n.end._isNullable=function(t,e){return!0},n.Terminal.prototype._isNullable=function(t,e){return"string"==typeof this.obj&&""===this.obj},n.Alt.prototype._isNullable=function(t,e){return 0===this.terms.length||this.terms.some((function(u){return u._isNullable(t,e)}))},n.Seq.prototype._isNullable=function(t,e){return this.factors.every((function(u){return u._isNullable(t,e)}))},n.Star.prototype._isNullable=n.Opt.prototype._isNullable=n.Not.prototype._isNullable=n.Lookahead.prototype._isNullable=function(t,e){return!0},n.Lex.prototype._isNullable=function(t,e){return this.expr._isNullable(t,e)},n.Apply.prototype._isNullable=function(t,e){var u=this.toMemoKey();if(!Object.prototype.hasOwnProperty.call(e,u)){var r=t.rules[this.ruleName].body.substituteParams(this.args);e[u]=!1,e[u]=r._isNullable(t,e)}return e[u]}},function(t,e,u){"use strict";var r=u(1),n=u(2);n.PExpr.prototype.substituteParams=r.abstract("substituteParams"),n.any.substituteParams=n.end.substituteParams=n.Terminal.prototype.substituteParams=n.Range.prototype.substituteParams=n.UnicodeChar.prototype.substituteParams=function(t){return this},n.Param.prototype.substituteParams=function(t){return t[this.index]},n.Alt.prototype.substituteParams=function(t){return new n.Alt(this.terms.map((function(e){return e.substituteParams(t)})))},n.Seq.prototype.substituteParams=function(t){return new n.Seq(this.factors.map((function(e){return e.substituteParams(t)})))},n.Iter.prototype.substituteParams=n.Not.prototype.substituteParams=n.Lookahead.prototype.substituteParams=n.Lex.prototype.substituteParams=function(t){return new this.constructor(this.expr.substituteParams(t))},n.Apply.prototype.substituteParams=function(t){if(0===this.args.length)return this;var e=this.args.map((function(e){return e.substituteParams(t)}));return new n.Apply(this.ruleName,e)}},function(t,e,u){"use strict";var r=u(1),n=u(2);n.PExpr.prototype.toDisplayString=r.abstract("toDisplayString"),n.Alt.prototype.toDisplayString=n.Seq.prototype.toDisplayString=function(){return this.source?this.source.trimmed().contents:"["+this.constructor.name+"]"},n.any.toDisplayString=n.end.toDisplayString=n.Iter.prototype.toDisplayString=n.Not.prototype.toDisplayString=n.Lookahead.prototype.toDisplayString=n.Lex.prototype.toDisplayString=n.Terminal.prototype.toDisplayString=n.Range.prototype.toDisplayString=n.Param.prototype.toDisplayString=function(){return this.toString()},n.Apply.prototype.toDisplayString=function(){if(this.args.length>0){var t=this.args.map((function(t){return t.toDisplayString()}));return this.ruleName+"<"+t.join(",")+">"}return this.ruleName},n.UnicodeChar.prototype.toDisplayString=function(){return"Unicode ["+this.category+"] character"}},function(t,e,u){"use strict";var r=u(1),n=u(2),i=r.copyWithoutDuplicates;function o(t){return/^[a-zA-Z_$][0-9a-zA-Z_$]*$/.test(t)}function a(t){var e=Object.create(null);t.forEach((function(t){e[t]=(e[t]||0)+1})),Object.keys(e).forEach((function(u){if(!(e[u]<=1)){var r=1;t.forEach((function(e,n){e===u&&(t[n]=e+"_"+r++)}))}}))}n.PExpr.prototype.toArgumentNameList=r.abstract("toArgumentNameList"),n.any.toArgumentNameList=function(t,e){return["any"]},n.end.toArgumentNameList=function(t,e){return["end"]},n.Terminal.prototype.toArgumentNameList=function(t,e){return"string"==typeof this.obj&&/^[_a-zA-Z0-9]+$/.test(this.obj)?["_"+this.obj]:["$"+t]},n.Range.prototype.toArgumentNameList=function(t,e){var u=this.from+"_to_"+this.to;return o(u)||(u="_"+u),o(u)||(u="$"+t),[u]},n.Alt.prototype.toArgumentNameList=function(t,e){for(var u=this.terms.map((function(e){return e.toArgumentNameList(t,!0)})),r=[],n=u[0].length,o=0;o0){var t=this.args.map((function(t){return t.toString()}));return this.ruleName+"<"+t.join(",")+">"}return this.ruleName},n.UnicodeChar.prototype.toString=function(){return"\\p{"+this.category+"}"}},function(t,e,u){"use strict";var r=u(47),n=u(2);function i(t){this.grammar=t,this.memoTable=[],this.input=""}i.prototype.getInput=function(){return this.input},i.prototype.setInput=function(t){return this.input!==t&&this.replaceInputRange(0,this.input.length,t),this},i.prototype.replaceInputRange=function(t,e,u){var r=this.input;if(t<0||t>r.length||e<0||e>r.length||t>e)throw new Error("Invalid indices: "+t+" and "+e);this.input=r.slice(0,t)+u+r.slice(e);var n=this.memoTable.slice(e);this.memoTable.length=t;for(var i=0;it;)this.popBinding()},getCurrentPosInfo:function(){return this.getPosInfo(this.inputStream.pos)},getPosInfo:function(t){var e=this.memoTable[t];return e||(e=this.memoTable[t]=new i),e},processFailure:function(t,e){if(this.rightmostFailurePosition=Math.max(this.rightmostFailurePosition,t),this.recordedFailures&&t===this.positionToRecordFailures){var u=this.currentApplication();u&&(e=e.substituteParams(u.args)),this.recordFailure(e.toFailure(this.grammar),!1)}},recordFailure:function(t,e){var u=t.toKey();this.recordedFailures[u]?this.recordedFailures[u].isFluffy()&&!t.isFluffy()&&this.recordedFailures[u].clearFluffy():this.recordedFailures[u]=e?t.clone():t},recordFailures:function(t,e){var u=this;Object.keys(t).forEach((function(r){u.recordFailure(t[r],e)}))},cloneRecordedFailures:function(){if(this.recordedFailures){var t=Object.create(null),e=this;return Object.keys(this.recordedFailures).forEach((function(u){t[u]=e.recordedFailures[u].clone()})),t}},getRightmostFailurePosition:function(){return this.rightmostFailurePosition},_getRightmostFailureOffset:function(){return this.rightmostFailurePosition>=0?this.posToOffset(this.rightmostFailurePosition):-1},getMemoizedTraceEntry:function(t,e){var u=this.memoTable[t];if(u&&e.ruleName){var r=u.memo[e.toMemoKey()];if(r&&r.traceEntry){var n=r.traceEntry.cloneWithExpr(e);return n.isMemoized=!0,n}}return null},getTraceEntry:function(t,e,u,r){if(e instanceof a.Apply){var n=this.currentApplication(),i=n?n.args:[];e=e.substituteParams(i)}return this.getMemoizedTraceEntry(t,e)||new o(this.input,t,this.inputStream.pos,e,u,r,this.trace)},isTracing:function(){return!!this.trace},hasNecessaryInfo:function(t){return!(this.trace&&!t.traceEntry)&&(!this.recordedFailures||this.inputStream.pos+t.rightmostFailureOffset!==this.positionToRecordFailures||!!t.failuresAtRightmostPosition)},useMemoizedResult:function(t,e){this.trace&&this.trace.push(e.traceEntry);var u=this.inputStream.pos+e.rightmostFailureOffset;return this.rightmostFailurePosition=Math.max(this.rightmostFailurePosition,u),this.recordedFailures&&this.positionToRecordFailures===u&&e.failuresAtRightmostPosition&&this.recordFailures(e.failuresAtRightmostPosition,!0),this.inputStream.examinedLength=Math.max(this.inputStream.examinedLength,e.examinedLength+t),!!e.value&&(this.inputStream.pos+=e.matchLength,this.pushBinding(e.value,t),!0)},eval:function(t){var e,u=this.inputStream,r=this._bindings.length;this.recordedFailures&&(e=this.recordedFailures,this.recordedFailures=Object.create(null));var n,i=u.pos,o=this.maybeSkipSpacesBefore(t);this.trace&&(n=this.trace,this.trace=[]);var a=t.eval(this);if(this.trace){var c=this._bindings.slice(r),l=this.getTraceEntry(o,t,a,c);l.isImplicitSpaces=t===s,l.isRootNode=t===this.startExpr,n.push(l),this.trace=n}if(a){if(this.recordedFailures&&u.pos===this.positionToRecordFailures){var p=this;Object.keys(this.recordedFailures).forEach((function(t){p.recordedFailures[t].makeFluffy()}))}}else u.pos=i,this.truncateBindings(r);return this.recordedFailures&&this.recordFailures(e,!1),a},getMatchResult:function(){var t;if(this.eval(this.startExpr),this.recordedFailures){var e=this;t=Object.keys(this.recordedFailures).map((function(t){return e.recordedFailures[t]}))}return new n(this.matcher,this.input,this.startExpr,this._bindings[0],this._bindingOffsets[0],this.rightmostFailurePosition,t)},getTrace:function(){this.trace=[];var t=this.getMatchResult(),e=this.trace[this.trace.length-1];return e.result=t,e},pushFailuresInfo:function(){this._rightmostFailurePositionStack.push(this.rightmostFailurePosition),this._recordedFailuresStack.push(this.recordedFailures)},popFailuresInfo:function(){this.rightmostFailurePosition=this._rightmostFailurePositionStack.pop(),this.recordedFailures=this._recordedFailuresStack.pop()}},t.exports=c},function(t,e,u){"use strict";function r(){this.applicationMemoKeyStack=[],this.memo={},this.maxExaminedLength=0,this.maxRightmostFailureOffset=-1,this.currentLeftRecursion=void 0}r.prototype={isActive:function(t){return this.applicationMemoKeyStack.indexOf(t.toMemoKey())>=0},enter:function(t){this.applicationMemoKeyStack.push(t.toMemoKey())},exit:function(){this.applicationMemoKeyStack.pop()},startLeftRecursion:function(t,e){e.isLeftRecursion=!0,e.headApplication=t,e.nextLeftRecursion=this.currentLeftRecursion,this.currentLeftRecursion=e;var u=this.applicationMemoKeyStack,r=u.indexOf(t.toMemoKey())+1,n=u.slice(r);e.isInvolved=function(t){return n.indexOf(t)>=0},e.updateInvolvedApplicationMemoKeys=function(){for(var t=r;te?delete u[n]:(r.maxExaminedLength=Math.max(r.maxExaminedLength,i.examinedLength),r.maxRightmostFailureOffset=Math.max(r.maxRightmostFailureOffset,i.rightmostFailureOffset))}))}}},t.exports=r},function(t,e,u){"use strict";var r,n,i=u(50),o=u(7),a=u(13),s=u(6).IterationNode,c=u(14),l=u(1),p=u(3),f=u(4),h=[];function D(){}function d(t,e){var u=this;if(this.grammar=t,this.checkedActionDicts=!1,this.Wrapper=function(t,e,r){u.checkActionDictsIfHaventAlready(),this._semantics=u,this._node=t,this.source=e,this._baseInterval=r,t.isNonterminal()&&l.assert(e===r),this._childWrappers=[]},this.super=e,e){if(!t.equals(this.super.grammar)&&!t._inheritsFrom(this.super.grammar))throw new Error("Cannot extend a semantics for grammar '"+this.super.grammar.name+"' for use with grammar '"+t.name+"' (not a sub-grammar)");for(var r in o(this.Wrapper,this.super.Wrapper),this.operations=Object.create(this.super.operations),this.attributes=Object.create(this.super.attributes),this.attributeKeys=Object.create(null),this.attributes)this.attributeKeys[r]=i()}else o(this.Wrapper,D),this.operations=Object.create(null),this.attributes=Object.create(null),this.attributeKeys=Object.create(null)}function m(t,e){if(!r)return l.assert(-1===t.indexOf("(")),{name:t,formals:[]};var u=r.match(t,"operation"===e?"OperationSignature":"AttributeSignature");if(u.failed())throw new Error(u.message);return n(u).parse()}function A(t,e,u,r){this.name=t,this.formals=e,this.actionDict=u,this.builtInDefault=r}function v(t,e,u){this.name=t,this.formals=[],this.actionDict=e,this.builtInDefault=u}D.prototype.toString=function(){return"[semantics wrapper for "+this._node.grammar.name+"]"},D.prototype.toJSON=function(){return this.toString()},D.prototype._forgetMemoizedResultFor=function(t){delete this._node[this._semantics.attributeKeys[t]],this.children.forEach((function(e){e._forgetMemoizedResultFor(t)}))},D.prototype.child=function(t){if(0<=t&&t0&&(o+="("+r[n].formals.join(", ")+")"),i=e(this)&&this.super[t.toLowerCase()+"s"][n]?"extend"+t:"add"+t,u+="\n ."+i+"("+JSON.stringify(o)+", {";var a=r[n].actionDict,s=[];Object.keys(a).forEach((function(t){r[n].builtInDefault!==a[t]&&s.push("\n "+JSON.stringify(t)+": "+a[t].toString())})),u+=s.join(","),u+="\n })"}),this)}),this),u+=";\n })",t||(u="(function() {\n var grammar = this.fromRecipe("+function(t){return t.replace(/[\u2028\u2029]/g,(function(t,e,u){var r=t.codePointAt(0).toString(16);return"\\u"+"0000".slice(r.length)+r}))}(this.grammar.toRecipe())+");\n var semantics = "+u+"(grammar);\n return semantics;\n});\n"),u},d.prototype.addOperationOrAttribute=function(t,e,u){var r=t+"s",n=m(e,t),o=n.name,a=n.formals;this.assertNewName(o,t);var s=function(t,e,u){return function(r){var n=this,i=(this._semantics.operations[e]||this._semantics.attributes[e]).formals.map((function(t){return n.args[t]}));if(this.isIteration())return r.map((function(t){return u.apply(t,i)}));if(1===r.length)return u.apply(r[0],i);throw p.missingSemanticAction(this.ctorName,e,t,h)}}(t,o,f),c={_default:s};Object.keys(u).forEach((function(t){c[t]=u[t]}));var l="operation"===t?new A(o,a,c,s):new v(o,c,s);function f(){var e=this._semantics[r][o];if(arguments.length!==e.formals.length)throw new Error("Invalid number of arguments passed to "+o+" "+t+" (expected "+e.formals.length+", got "+arguments.length+")");for(var u=Object.create(null),n=0;n-1}},function(t,e,u){"use strict";t.exports=function(t){return!!t&&("symbol"==typeof t||!!t.constructor&&("Symbol"===t.constructor.name&&"Symbol"===t[t.constructor.toStringTag]))}},function(t,e,u){"use strict";var r=u(9),n=Object.create,i=Object.defineProperty,o=Object.prototype,a=n(null);t.exports=function(t){for(var e,u,n=0;a[t+(n||"")];)++n;return a[t+=n||""]=!0,i(o,e="@@"+t,r.gs(null,(function(t){u||(u=!0,i(this,e,r(t)),u=!1)}))),e}},function(t,e,u){"use strict";var r=u(9),n=u(8).Symbol;t.exports=function(t){return Object.defineProperties(t,{hasInstance:r("",n&&n.hasInstance||t("hasInstance")),isConcatSpreadable:r("",n&&n.isConcatSpreadable||t("isConcatSpreadable")),iterator:r("",n&&n.iterator||t("iterator")),match:r("",n&&n.match||t("match")),replace:r("",n&&n.replace||t("replace")),search:r("",n&&n.search||t("search")),species:r("",n&&n.species||t("species")),split:r("",n&&n.split||t("split")),toPrimitive:r("",n&&n.toPrimitive||t("toPrimitive")),toStringTag:r("",n&&n.toStringTag||t("toStringTag")),unscopables:r("",n&&n.unscopables||t("unscopables"))})}},function(t,e,u){"use strict";var r=u(9),n=u(21),i=Object.create(null);t.exports=function(t){return Object.defineProperties(t,{for:r((function(e){return i[e]?i[e]:i[e]=t(String(e))})),keyFor:r((function(t){var e;for(e in n(t),i)if(i[e]===t)return e}))})}},function(t,e,u){var r=u(5);t.exports=r.makeRecipe(["grammar",{source:'OperationsAndAttributes {\n\n AttributeSignature =\n name\n\n OperationSignature =\n name Formals?\n\n Formals\n = "(" ListOf ")"\n\n name (a name)\n = nameFirst nameRest*\n\n nameFirst\n = "_"\n | letter\n\n nameRest\n = "_"\n | alnum\n\n}'},"OperationsAndAttributes",null,"AttributeSignature",{AttributeSignature:["define",{sourceInterval:[29,58]},null,[],["app",{sourceInterval:[54,58]},"name",[]]],OperationSignature:["define",{sourceInterval:[62,100]},null,[],["seq",{sourceInterval:[87,100]},["app",{sourceInterval:[87,91]},"name",[]],["opt",{sourceInterval:[92,100]},["app",{sourceInterval:[92,99]},"Formals",[]]]]],Formals:["define",{sourceInterval:[104,143]},null,[],["seq",{sourceInterval:[118,143]},["terminal",{sourceInterval:[118,121]},"("],["app",{sourceInterval:[122,139]},"ListOf",[["app",{sourceInterval:[129,133]},"name",[]],["terminal",{sourceInterval:[135,138]},","]]],["terminal",{sourceInterval:[140,143]},")"]]],name:["define",{sourceInterval:[147,187]},"a name",[],["seq",{sourceInterval:[168,187]},["app",{sourceInterval:[168,177]},"nameFirst",[]],["star",{sourceInterval:[178,187]},["app",{sourceInterval:[178,186]},"nameRest",[]]]]],nameFirst:["define",{sourceInterval:[191,223]},null,[],["alt",{sourceInterval:[207,223]},["terminal",{sourceInterval:[207,210]},"_"],["app",{sourceInterval:[217,223]},"letter",[]]]],nameRest:["define",{sourceInterval:[227,257]},null,[],["alt",{sourceInterval:[242,257]},["terminal",{sourceInterval:[242,245]},"_"],["app",{sourceInterval:[252,257]},"alnum",[]]]]}])},function(t,e,u){"use strict";t.exports="string"==typeof browserifyGlobalOhmVersion?browserifyGlobalOhmVersion:u(77).version},function(t){t.exports=JSON.parse('{"name":"ohm-js","version":"0.14.0","description":"An object-oriented language for parsing and pattern matching","repository":"https://github.com/harc/ohm","keywords":["parser","compiler","pattern matching","pattern-matching","ometa","ometa/js","ometa-js","ometajs","rapid","prototyping"],"homepage":"https://ohmlang.github.io/","bugs":"https://github.com/harc/ohm/issues","main":"src/main.js","bin":"src/ohm-cmd.js","types":"index.d.ts","scripts":{"prebootstrap":"bash bin/prebootstrap","bootstrap":"bash bin/bootstrap --test || (echo \'Bootstrap failed.\' && mv -v dist/ohm-grammar.js.old dist/ohm-grammar.js && mv -v dist/built-in-rules.js.old dist/built-in-rules.js && mv -v dist/operations-and-attributes.js.old dist/operations-and-attributes.js)","build":"node bin/build-debug.js && uglifyjs dist/ohm.js > dist/ohm.min.js","prebuild-debug":"bash bin/update-env.sh","build-debug":"bash bin/build-debug.sh","ci-test":"npm run lint && npm test && ts-node test/test-typings.ts","clean":"rm -f dist/ohm.js dist/ohm.min.js","deploy-gh-pages":"bin/deploy-gh-pages.sh","lint":"eslint .","pretest":"bash bin/update-env.sh","test":"tape \'test/**/*.js\' | tap-spec","test-watch":"bash bin/test-watch","postinstall":"node bin/dev-setup.js","precommit":"npm run prepublishOnly","prepublishOnly":"npm run lint && npm run build && npm run bootstrap","unsafe-bootstrap":"bash bin/bootstrap","visualizer":"bash bin/ohm-visualizer","watch":"bash bin/watch.sh"},"license":"MIT","author":"Alex Warth (http://tinlizzie.org/~awarth)","contributors":["Patrick Dubroy ","Meixian Li ","Marko Röder ","Tony Garnock-Jones ","Saketh Kasibatla ","Lionel Landwerlin ","Jason Merrill ","Yoshiki Ohshima ","Ray Toal ","Jonathan Edwards ","Neil Jewers ","sfinnie ","Arthur Carabott ","Daniel Tomlinson ","Justin Chase ","Leslie Ying ","Luca Guzzon ","Mike Niebling <(none)>","Milan Lajtoš ","Stephan Seidt ","acslk ","codeZeilen ","owch "],"dependencies":{"es6-symbol":"^3.1.0","inherits":"^2.0.3","is-buffer":"^1.1.4","util-extend":"^1.0.3"},"devDependencies":{"@types/tape":"^4.2.29","browserify":"^13.1.1","eslint":"~3.13.1","eslint-config-google":"~0.7.1","eslint-plugin-camelcase-ohm":"~0.2.1","eslint-plugin-no-extension-in-require":"~0.2.0","eslint-plugin-tape":"~1.1.0","husky":"^0.14.3","jsdom":"^9.9.1","json":"^9.0.4","markscript":"^0.5.0","node-static":"^0.7.9","nodemon":"^1.11.0","tap-spec":"^4.1.1","tape":"^4.6.3","tape-catch":"^1.0.6","ts-node":"^2.1.0","typescript":"2.2.1","uglify-js":"^2.7.5","walk-sync":"^0.3.1","watchify":"^3.8.0"},"engines":{"node":">=0.12.1"}}')},function(t,e){function u(t){return!!t.constructor&&"function"==typeof t.constructor.isBuffer&&t.constructor.isBuffer(t)} /*! * Determine if an object is a Buffer * * @author Feross Aboukhadijeh * @license MIT */ t.exports=function(t){return null!=t&&(u(t)||function(t){return"function"==typeof t.readFloatLE&&"function"==typeof t.slice&&u(t.slice(0,0))}(t)||!!t._isBuffer)}},function(t,e,u){"use strict";t.exports={VisitorFamily:u(80),semanticsForToAST:u(22).semantics,toAST:u(22).helper}},function(t,e,u){"use strict";var r=u(1).assert;function n(t,e,u){return u(e[t])}function i(t,e,u){return e[t].map(u)}function o(t){var e=t.split(/ ?\[\]/);return 2===e.length?i.bind(null,e[0]):n.bind(null,t)}function a(t,e,u){return t.map((function(t){return t(e,u)}))}function s(t){return/^[a-zA-Z_][0-9a-zA-Z_]*$/.test(t)}function c(t){return t.trim()}function l(t){this._shapes=t.shapes,this._getTag=t.getTag,this.Adapter=function(t,e){this._adaptee=t,this._family=e},this.Adapter.prototype.valueOf=function(){throw new Error("heeey!")},this.operations={},this._arities=Object.create(null),this._getChildren=Object.create(null);var e=this;Object.keys(this._shapes).forEach((function(t){var u=e._shapes[t];e._getChildren[t]=function(t){return"string"==typeof t?a.bind(null,[o(t)]):Array.isArray(t)?a.bind(null,t.map(o)):(r("function"==typeof t,"Expected a string, Array, or function"),r(2===t.length,"Expected a function of arity 2, got "+t.length),t)}(u),"function"!=typeof u&&(e._arities[t]=Array.isArray(u)?u.length:1)})),this._wrap=function(t){return new e.Adapter(t,e)}}l.prototype.wrap=function(t){return this._wrap(t)},l.prototype._checkActionDict=function(t){var e=this;Object.keys(t).forEach((function(u){r(u in e._getChildren,"Unrecognized action name '"+u+"'");var n=t[u];if(r("function"==typeof n,"Key '"+u+"': expected function, got "+n),u in e._arities){var i=e._arities[u],o=t[u].length;r(o===i,"Action '"+u+"' has the wrong arity: expected "+i+", got "+o)}}))},l.prototype.addOperation=function(t,e){var u=function(t){var e=t.split(/[()]/).map(c);if(3===e.length&&""===e[2]){var u=e[0],r=[];if(e[1].length>0&&(r=e[1].split(",").map(c)),s(u)&&r.every(s))return{name:u,formals:r}}throw new Error("Invalid operation signature: "+t)}(t),n=u.name;this._checkActionDict(e),this.operations[n]={name:n,formals:u.formals,actions:e};var i=this;return this.Adapter.prototype[n]=function(){var t=i._getTag(this._adaptee);r(t in i._getChildren,"getTag returned unrecognized tag '"+t+"'"),r(t in e,"No action for '"+t+"' in operation '"+n+"'");for(var o=Object.create(null),a=0;a\n = NonemptyListOf\n | EmptyListOf\n\n NonemptyListOf\n = elem (sep elem)*\n\n EmptyListOf\n = /* nothing */\n\n listOf\n = nonemptyListOf\n | emptyListOf\n\n nonemptyListOf\n = elem (sep elem)*\n\n emptyListOf\n = /* nothing */\n\n}'},"BuiltInRules",null,null,{alnum:["define",{sourceInterval:[18,78]},"an alpha-numeric character",[],["alt",{sourceInterval:[60,78]},["app",{sourceInterval:[60,66]},"letter",[]],["app",{sourceInterval:[73,78]},"digit",[]]]],letter:["define",{sourceInterval:[82,142]},"a letter",[],["alt",{sourceInterval:[107,142]},["app",{sourceInterval:[107,112]},"lower",[]],["app",{sourceInterval:[119,124]},"upper",[]],["app",{sourceInterval:[131,142]},"unicodeLtmo",[]]]],digit:["define",{sourceInterval:[146,177]},"a digit",[],["range",{sourceInterval:[169,177]},"0","9"]],hexDigit:["define",{sourceInterval:[181,254]},"a hexadecimal digit",[],["alt",{sourceInterval:[219,254]},["app",{sourceInterval:[219,224]},"digit",[]],["range",{sourceInterval:[231,239]},"a","f"],["range",{sourceInterval:[246,254]},"A","F"]]],ListOf:["define",{sourceInterval:[258,336]},null,["elem","sep"],["alt",{sourceInterval:[282,336]},["app",{sourceInterval:[282,307]},"NonemptyListOf",[["param",{},0],["param",{},1]]],["app",{sourceInterval:[314,336]},"EmptyListOf",[["param",{},0],["param",{},1]]]]],NonemptyListOf:["define",{sourceInterval:[340,388]},null,["elem","sep"],["seq",{sourceInterval:[372,388]},["param",{},0],["star",{sourceInterval:[377,388]},["seq",{sourceInterval:[378,386]},["param",{},1],["param",{},0]]]]],EmptyListOf:["define",{sourceInterval:[392,434]},null,["elem","sep"],["seq",{sourceInterval:[438,438]}]],listOf:["define",{sourceInterval:[438,516]},null,["elem","sep"],["alt",{sourceInterval:[462,516]},["app",{sourceInterval:[462,487]},"nonemptyListOf",[["param",{},0],["param",{},1]]],["app",{sourceInterval:[494,516]},"emptyListOf",[["param",{},0],["param",{},1]]]]],nonemptyListOf:["define",{sourceInterval:[520,568]},null,["elem","sep"],["seq",{sourceInterval:[552,568]},["param",{},0],["star",{sourceInterval:[557,568]},["seq",{sourceInterval:[558,566]},["param",{},1],["param",{},0]]]]],emptyListOf:["define",{sourceInterval:[572,614]},null,["elem","sep"],["seq",{sourceInterval:[616,616]}]]}])},function(t,e,u){var r=u(5);t.exports=r.makeRecipe(["grammar",{source:'Ohm {\n\n Grammars\n = Grammar*\n\n Grammar\n = ident SuperGrammar? "{" Rule* "}"\n\n SuperGrammar\n = "<:" ident\n\n Rule\n = ident Formals? ruleDescr? "=" RuleBody -- define\n | ident Formals? ":=" RuleBody -- override\n | ident Formals? "+=" RuleBody -- extend\n\n RuleBody\n = "|"? NonemptyListOf\n\n TopLevelTerm\n = Seq caseName -- inline\n | Seq\n\n Formals\n = "<" ListOf ">"\n\n Params\n = "<" ListOf ">"\n\n Alt\n = NonemptyListOf\n\n Seq\n = Iter*\n\n Iter\n = Pred "*" -- star\n | Pred "+" -- plus\n | Pred "?" -- opt\n | Pred\n\n Pred\n = "~" Lex -- not\n | "&" Lex -- lookahead\n | Lex\n\n Lex\n = "#" Base -- lex\n | Base\n\n Base\n = ident Params? ~(ruleDescr? "=" | ":=" | "+=") -- application\n | oneCharTerminal ".." oneCharTerminal -- range\n | terminal -- terminal\n | "(" Alt ")" -- paren\n\n ruleDescr (a rule description)\n = "(" ruleDescrText ")"\n\n ruleDescrText\n = (~")" any)*\n\n caseName\n = "--" (~"\\n" space)* name (~"\\n" space)* ("\\n" | &"}")\n\n name (a name)\n = nameFirst nameRest*\n\n nameFirst\n = "_"\n | letter\n\n nameRest\n = "_"\n | alnum\n\n ident (an identifier)\n = name\n\n terminal\n = "\\"" terminalChar* "\\""\n\n oneCharTerminal\n = "\\"" terminalChar "\\""\n\n terminalChar\n = escapeChar\n | ~"\\\\" ~"\\"" ~"\\n" any\n\n escapeChar (an escape sequence)\n = "\\\\\\\\" -- backslash\n | "\\\\\\"" -- doubleQuote\n | "\\\\\\\'" -- singleQuote\n | "\\\\b" -- backspace\n | "\\\\n" -- lineFeed\n | "\\\\r" -- carriageReturn\n | "\\\\t" -- tab\n | "\\\\u" hexDigit hexDigit hexDigit hexDigit -- unicodeEscape\n | "\\\\x" hexDigit hexDigit -- hexEscape\n\n space\n += comment\n\n comment\n = "//" (~"\\n" any)* "\\n" -- singleLine\n | "/*" (~"*/" any)* "*/" -- multiLine\n\n tokens = token*\n\n token = caseName | comment | ident | operator | punctuation | terminal | any\n\n operator = "<:" | "=" | ":=" | "+=" | "*" | "+" | "?" | "~" | "&"\n\n punctuation = "<" | ">" | "," | "--"\n}'},"Ohm",null,"Grammars",{Grammars:["define",{sourceInterval:[9,32]},null,[],["star",{sourceInterval:[24,32]},["app",{sourceInterval:[24,31]},"Grammar",[]]]],Grammar:["define",{sourceInterval:[36,83]},null,[],["seq",{sourceInterval:[50,83]},["app",{sourceInterval:[50,55]},"ident",[]],["opt",{sourceInterval:[56,69]},["app",{sourceInterval:[56,68]},"SuperGrammar",[]]],["terminal",{sourceInterval:[70,73]},"{"],["star",{sourceInterval:[74,79]},["app",{sourceInterval:[74,78]},"Rule",[]]],["terminal",{sourceInterval:[80,83]},"}"]]],SuperGrammar:["define",{sourceInterval:[87,116]},null,[],["seq",{sourceInterval:[106,116]},["terminal",{sourceInterval:[106,110]},"<:"],["app",{sourceInterval:[111,116]},"ident",[]]]],Rule_define:["define",{sourceInterval:[131,181]},null,[],["seq",{sourceInterval:[131,170]},["app",{sourceInterval:[131,136]},"ident",[]],["opt",{sourceInterval:[137,145]},["app",{sourceInterval:[137,144]},"Formals",[]]],["opt",{sourceInterval:[146,156]},["app",{sourceInterval:[146,155]},"ruleDescr",[]]],["terminal",{sourceInterval:[157,160]},"="],["app",{sourceInterval:[162,170]},"RuleBody",[]]]],Rule_override:["define",{sourceInterval:[188,240]},null,[],["seq",{sourceInterval:[188,227]},["app",{sourceInterval:[188,193]},"ident",[]],["opt",{sourceInterval:[194,202]},["app",{sourceInterval:[194,201]},"Formals",[]]],["terminal",{sourceInterval:[214,218]},":="],["app",{sourceInterval:[219,227]},"RuleBody",[]]]],Rule_extend:["define",{sourceInterval:[247,297]},null,[],["seq",{sourceInterval:[247,286]},["app",{sourceInterval:[247,252]},"ident",[]],["opt",{sourceInterval:[253,261]},["app",{sourceInterval:[253,260]},"Formals",[]]],["terminal",{sourceInterval:[273,277]},"+="],["app",{sourceInterval:[278,286]},"RuleBody",[]]]],Rule:["define",{sourceInterval:[120,297]},null,[],["alt",{sourceInterval:[131,297]},["app",{sourceInterval:[131,170]},"Rule_define",[]],["app",{sourceInterval:[188,227]},"Rule_override",[]],["app",{sourceInterval:[247,286]},"Rule_extend",[]]]],RuleBody:["define",{sourceInterval:[301,354]},null,[],["seq",{sourceInterval:[316,354]},["opt",{sourceInterval:[316,320]},["terminal",{sourceInterval:[316,319]},"|"]],["app",{sourceInterval:[321,354]},"NonemptyListOf",[["app",{sourceInterval:[336,348]},"TopLevelTerm",[]],["terminal",{sourceInterval:[350,353]},"|"]]]]],TopLevelTerm_inline:["define",{sourceInterval:[377,400]},null,[],["seq",{sourceInterval:[377,389]},["app",{sourceInterval:[377,380]},"Seq",[]],["app",{sourceInterval:[381,389]},"caseName",[]]]],TopLevelTerm:["define",{sourceInterval:[358,410]},null,[],["alt",{sourceInterval:[377,410]},["app",{sourceInterval:[377,389]},"TopLevelTerm_inline",[]],["app",{sourceInterval:[407,410]},"Seq",[]]]],Formals:["define",{sourceInterval:[414,454]},null,[],["seq",{sourceInterval:[428,454]},["terminal",{sourceInterval:[428,431]},"<"],["app",{sourceInterval:[432,450]},"ListOf",[["app",{sourceInterval:[439,444]},"ident",[]],["terminal",{sourceInterval:[446,449]},","]]],["terminal",{sourceInterval:[451,454]},">"]]],Params:["define",{sourceInterval:[458,495]},null,[],["seq",{sourceInterval:[471,495]},["terminal",{sourceInterval:[471,474]},"<"],["app",{sourceInterval:[475,491]},"ListOf",[["app",{sourceInterval:[482,485]},"Seq",[]],["terminal",{sourceInterval:[487,490]},","]]],["terminal",{sourceInterval:[492,495]},">"]]],Alt:["define",{sourceInterval:[499,533]},null,[],["app",{sourceInterval:[509,533]},"NonemptyListOf",[["app",{sourceInterval:[524,527]},"Seq",[]],["terminal",{sourceInterval:[529,532]},"|"]]]],Seq:["define",{sourceInterval:[537,552]},null,[],["star",{sourceInterval:[547,552]},["app",{sourceInterval:[547,551]},"Iter",[]]]],Iter_star:["define",{sourceInterval:[567,584]},null,[],["seq",{sourceInterval:[567,575]},["app",{sourceInterval:[567,571]},"Pred",[]],["terminal",{sourceInterval:[572,575]},"*"]]],Iter_plus:["define",{sourceInterval:[591,608]},null,[],["seq",{sourceInterval:[591,599]},["app",{sourceInterval:[591,595]},"Pred",[]],["terminal",{sourceInterval:[596,599]},"+"]]],Iter_opt:["define",{sourceInterval:[615,631]},null,[],["seq",{sourceInterval:[615,623]},["app",{sourceInterval:[615,619]},"Pred",[]],["terminal",{sourceInterval:[620,623]},"?"]]],Iter:["define",{sourceInterval:[556,642]},null,[],["alt",{sourceInterval:[567,642]},["app",{sourceInterval:[567,575]},"Iter_star",[]],["app",{sourceInterval:[591,599]},"Iter_plus",[]],["app",{sourceInterval:[615,623]},"Iter_opt",[]],["app",{sourceInterval:[638,642]},"Pred",[]]]],Pred_not:["define",{sourceInterval:[657,672]},null,[],["seq",{sourceInterval:[657,664]},["terminal",{sourceInterval:[657,660]},"~"],["app",{sourceInterval:[661,664]},"Lex",[]]]],Pred_lookahead:["define",{sourceInterval:[679,700]},null,[],["seq",{sourceInterval:[679,686]},["terminal",{sourceInterval:[679,682]},"&"],["app",{sourceInterval:[683,686]},"Lex",[]]]],Pred:["define",{sourceInterval:[646,710]},null,[],["alt",{sourceInterval:[657,710]},["app",{sourceInterval:[657,664]},"Pred_not",[]],["app",{sourceInterval:[679,686]},"Pred_lookahead",[]],["app",{sourceInterval:[707,710]},"Lex",[]]]],Lex_lex:["define",{sourceInterval:[724,740]},null,[],["seq",{sourceInterval:[724,732]},["terminal",{sourceInterval:[724,727]},"#"],["app",{sourceInterval:[728,732]},"Base",[]]]],Lex:["define",{sourceInterval:[714,751]},null,[],["alt",{sourceInterval:[724,751]},["app",{sourceInterval:[724,732]},"Lex_lex",[]],["app",{sourceInterval:[747,751]},"Base",[]]]],Base_application:["define",{sourceInterval:[766,827]},null,[],["seq",{sourceInterval:[766,811]},["app",{sourceInterval:[766,771]},"ident",[]],["opt",{sourceInterval:[772,779]},["app",{sourceInterval:[772,778]},"Params",[]]],["not",{sourceInterval:[780,811]},["alt",{sourceInterval:[782,810]},["seq",{sourceInterval:[782,796]},["opt",{sourceInterval:[782,792]},["app",{sourceInterval:[782,791]},"ruleDescr",[]]],["terminal",{sourceInterval:[793,796]},"="]],["terminal",{sourceInterval:[799,803]},":="],["terminal",{sourceInterval:[806,810]},"+="]]]]],Base_range:["define",{sourceInterval:[834,889]},null,[],["seq",{sourceInterval:[834,870]},["app",{sourceInterval:[834,849]},"oneCharTerminal",[]],["terminal",{sourceInterval:[850,854]},".."],["app",{sourceInterval:[855,870]},"oneCharTerminal",[]]]],Base_terminal:["define",{sourceInterval:[896,954]},null,[],["app",{sourceInterval:[896,904]},"terminal",[]]],Base_paren:["define",{sourceInterval:[961,1016]},null,[],["seq",{sourceInterval:[961,972]},["terminal",{sourceInterval:[961,964]},"("],["app",{sourceInterval:[965,968]},"Alt",[]],["terminal",{sourceInterval:[969,972]},")"]]],Base:["define",{sourceInterval:[755,1016]},null,[],["alt",{sourceInterval:[766,1016]},["app",{sourceInterval:[766,811]},"Base_application",[]],["app",{sourceInterval:[834,870]},"Base_range",[]],["app",{sourceInterval:[896,904]},"Base_terminal",[]],["app",{sourceInterval:[961,972]},"Base_paren",[]]]],ruleDescr:["define",{sourceInterval:[1020,1079]},"a rule description",[],["seq",{sourceInterval:[1058,1079]},["terminal",{sourceInterval:[1058,1061]},"("],["app",{sourceInterval:[1062,1075]},"ruleDescrText",[]],["terminal",{sourceInterval:[1076,1079]},")"]]],ruleDescrText:["define",{sourceInterval:[1083,1114]},null,[],["star",{sourceInterval:[1103,1114]},["seq",{sourceInterval:[1104,1112]},["not",{sourceInterval:[1104,1108]},["terminal",{sourceInterval:[1105,1108]},")"]],["app",{sourceInterval:[1109,1112]},"any",[]]]]],caseName:["define",{sourceInterval:[1118,1186]},null,[],["seq",{sourceInterval:[1133,1186]},["terminal",{sourceInterval:[1133,1137]},"--"],["star",{sourceInterval:[1138,1152]},["seq",{sourceInterval:[1139,1150]},["not",{sourceInterval:[1139,1144]},["terminal",{sourceInterval:[1140,1144]},"\n"]],["app",{sourceInterval:[1145,1150]},"space",[]]]],["app",{sourceInterval:[1153,1157]},"name",[]],["star",{sourceInterval:[1158,1172]},["seq",{sourceInterval:[1159,1170]},["not",{sourceInterval:[1159,1164]},["terminal",{sourceInterval:[1160,1164]},"\n"]],["app",{sourceInterval:[1165,1170]},"space",[]]]],["alt",{sourceInterval:[1174,1185]},["terminal",{sourceInterval:[1174,1178]},"\n"],["lookahead",{sourceInterval:[1181,1185]},["terminal",{sourceInterval:[1182,1185]},"}"]]]]],name:["define",{sourceInterval:[1190,1230]},"a name",[],["seq",{sourceInterval:[1211,1230]},["app",{sourceInterval:[1211,1220]},"nameFirst",[]],["star",{sourceInterval:[1221,1230]},["app",{sourceInterval:[1221,1229]},"nameRest",[]]]]],nameFirst:["define",{sourceInterval:[1234,1266]},null,[],["alt",{sourceInterval:[1250,1266]},["terminal",{sourceInterval:[1250,1253]},"_"],["app",{sourceInterval:[1260,1266]},"letter",[]]]],nameRest:["define",{sourceInterval:[1270,1300]},null,[],["alt",{sourceInterval:[1285,1300]},["terminal",{sourceInterval:[1285,1288]},"_"],["app",{sourceInterval:[1295,1300]},"alnum",[]]]],ident:["define",{sourceInterval:[1304,1337]},"an identifier",[],["app",{sourceInterval:[1333,1337]},"name",[]]],terminal:["define",{sourceInterval:[1341,1379]},null,[],["seq",{sourceInterval:[1356,1379]},["terminal",{sourceInterval:[1356,1360]},'"'],["star",{sourceInterval:[1361,1374]},["app",{sourceInterval:[1361,1373]},"terminalChar",[]]],["terminal",{sourceInterval:[1375,1379]},'"']]],oneCharTerminal:["define",{sourceInterval:[1383,1427]},null,[],["seq",{sourceInterval:[1405,1427]},["terminal",{sourceInterval:[1405,1409]},'"'],["app",{sourceInterval:[1410,1422]},"terminalChar",[]],["terminal",{sourceInterval:[1423,1427]},'"']]],terminalChar:["define",{sourceInterval:[1431,1488]},null,[],["alt",{sourceInterval:[1450,1488]},["app",{sourceInterval:[1450,1460]},"escapeChar",[]],["seq",{sourceInterval:[1467,1488]},["not",{sourceInterval:[1467,1472]},["terminal",{sourceInterval:[1468,1472]},"\\"]],["not",{sourceInterval:[1473,1478]},["terminal",{sourceInterval:[1474,1478]},'"']],["not",{sourceInterval:[1479,1484]},["terminal",{sourceInterval:[1480,1484]},"\n"]],["app",{sourceInterval:[1485,1488]},"any",[]]]]],escapeChar_backslash:["define",{sourceInterval:[1531,1586]},null,[],["terminal",{sourceInterval:[1531,1537]},"\\\\"]],escapeChar_doubleQuote:["define",{sourceInterval:[1593,1650]},null,[],["terminal",{sourceInterval:[1593,1599]},'\\"']],escapeChar_singleQuote:["define",{sourceInterval:[1657,1714]},null,[],["terminal",{sourceInterval:[1657,1663]},"\\'"]],escapeChar_backspace:["define",{sourceInterval:[1721,1776]},null,[],["terminal",{sourceInterval:[1721,1726]},"\\b"]],escapeChar_lineFeed:["define",{sourceInterval:[1783,1837]},null,[],["terminal",{sourceInterval:[1783,1788]},"\\n"]],escapeChar_carriageReturn:["define",{sourceInterval:[1844,1904]},null,[],["terminal",{sourceInterval:[1844,1849]},"\\r"]],escapeChar_tab:["define",{sourceInterval:[1911,1960]},null,[],["terminal",{sourceInterval:[1911,1916]},"\\t"]],escapeChar_unicodeEscape:["define",{sourceInterval:[1967,2026]},null,[],["seq",{sourceInterval:[1967,2008]},["terminal",{sourceInterval:[1967,1972]},"\\u"],["app",{sourceInterval:[1973,1981]},"hexDigit",[]],["app",{sourceInterval:[1982,1990]},"hexDigit",[]],["app",{sourceInterval:[1991,1999]},"hexDigit",[]],["app",{sourceInterval:[2e3,2008]},"hexDigit",[]]]],escapeChar_hexEscape:["define",{sourceInterval:[2033,2088]},null,[],["seq",{sourceInterval:[2033,2056]},["terminal",{sourceInterval:[2033,2038]},"\\x"],["app",{sourceInterval:[2039,2047]},"hexDigit",[]],["app",{sourceInterval:[2048,2056]},"hexDigit",[]]]],escapeChar:["define",{sourceInterval:[1492,2088]},"an escape sequence",[],["alt",{sourceInterval:[1531,2088]},["app",{sourceInterval:[1531,1537]},"escapeChar_backslash",[]],["app",{sourceInterval:[1593,1599]},"escapeChar_doubleQuote",[]],["app",{sourceInterval:[1657,1663]},"escapeChar_singleQuote",[]],["app",{sourceInterval:[1721,1726]},"escapeChar_backspace",[]],["app",{sourceInterval:[1783,1788]},"escapeChar_lineFeed",[]],["app",{sourceInterval:[1844,1849]},"escapeChar_carriageReturn",[]],["app",{sourceInterval:[1911,1916]},"escapeChar_tab",[]],["app",{sourceInterval:[1967,2008]},"escapeChar_unicodeEscape",[]],["app",{sourceInterval:[2033,2056]},"escapeChar_hexEscape",[]]]],space:["extend",{sourceInterval:[2092,2111]},null,[],["app",{sourceInterval:[2104,2111]},"comment",[]]],comment_singleLine:["define",{sourceInterval:[2129,2166]},null,[],["seq",{sourceInterval:[2129,2151]},["terminal",{sourceInterval:[2129,2133]},"//"],["star",{sourceInterval:[2134,2146]},["seq",{sourceInterval:[2135,2144]},["not",{sourceInterval:[2135,2140]},["terminal",{sourceInterval:[2136,2140]},"\n"]],["app",{sourceInterval:[2141,2144]},"any",[]]]],["terminal",{sourceInterval:[2147,2151]},"\n"]]],comment_multiLine:["define",{sourceInterval:[2173,2209]},null,[],["seq",{sourceInterval:[2173,2195]},["terminal",{sourceInterval:[2173,2177]},"/*"],["star",{sourceInterval:[2178,2190]},["seq",{sourceInterval:[2179,2188]},["not",{sourceInterval:[2179,2184]},["terminal",{sourceInterval:[2180,2184]},"*/"]],["app",{sourceInterval:[2185,2188]},"any",[]]]],["terminal",{sourceInterval:[2191,2195]},"*/"]]],comment:["define",{sourceInterval:[2115,2209]},null,[],["alt",{sourceInterval:[2129,2209]},["app",{sourceInterval:[2129,2151]},"comment_singleLine",[]],["app",{sourceInterval:[2173,2195]},"comment_multiLine",[]]]],tokens:["define",{sourceInterval:[2213,2228]},null,[],["star",{sourceInterval:[2222,2228]},["app",{sourceInterval:[2222,2227]},"token",[]]]],token:["define",{sourceInterval:[2232,2308]},null,[],["alt",{sourceInterval:[2240,2308]},["app",{sourceInterval:[2240,2248]},"caseName",[]],["app",{sourceInterval:[2251,2258]},"comment",[]],["app",{sourceInterval:[2261,2266]},"ident",[]],["app",{sourceInterval:[2269,2277]},"operator",[]],["app",{sourceInterval:[2280,2291]},"punctuation",[]],["app",{sourceInterval:[2294,2302]},"terminal",[]],["app",{sourceInterval:[2305,2308]},"any",[]]]],operator:["define",{sourceInterval:[2312,2377]},null,[],["alt",{sourceInterval:[2323,2377]},["terminal",{sourceInterval:[2323,2327]},"<:"],["terminal",{sourceInterval:[2330,2333]},"="],["terminal",{sourceInterval:[2336,2340]},":="],["terminal",{sourceInterval:[2343,2347]},"+="],["terminal",{sourceInterval:[2350,2353]},"*"],["terminal",{sourceInterval:[2356,2359]},"+"],["terminal",{sourceInterval:[2362,2365]},"?"],["terminal",{sourceInterval:[2368,2371]},"~"],["terminal",{sourceInterval:[2374,2377]},"&"]]],punctuation:["define",{sourceInterval:[2381,2417]},null,[],["alt",{sourceInterval:[2395,2417]},["terminal",{sourceInterval:[2395,2398]},"<"],["terminal",{sourceInterval:[2401,2404]},">"],["terminal",{sourceInterval:[2407,2410]},","],["terminal",{sourceInterval:[2413,2417]},"--"]]]}])},function(t,e,u){var r=u(84);"string"==typeof r&&(r=[[t.i,r,""]]);var n={hmr:!0,transform:void 0,insertInto:void 0};u(86)(r,n);r.locals&&(t.exports=r.locals)},function(t,e,u){(t.exports=u(85)(!1)).push([t.i,'/**\n * prism.js default theme for JavaScript, CSS and HTML\n * Based on dabblet (http://dabblet.com)\n * @author Lea Verou\n */\n\ncode[class*="language-"],\npre[class*="language-"] {\n\tcolor: black;\n\tbackground: none;\n\ttext-shadow: 0 1px white;\n\tfont-family: Consolas, Monaco, \'Andale Mono\', \'Ubuntu Mono\', monospace;\n\tfont-size: 1em;\n\ttext-align: left;\n\twhite-space: pre;\n\tword-spacing: normal;\n\tword-break: normal;\n\tword-wrap: normal;\n\tline-height: 1.5;\n\n\t-moz-tab-size: 4;\n\t-o-tab-size: 4;\n\ttab-size: 4;\n\n\t-webkit-hyphens: none;\n\t-moz-hyphens: none;\n\t-ms-hyphens: none;\n\thyphens: none;\n}\n\npre[class*="language-"]::-moz-selection, pre[class*="language-"] ::-moz-selection,\ncode[class*="language-"]::-moz-selection, code[class*="language-"] ::-moz-selection {\n\ttext-shadow: none;\n\tbackground: #b3d4fc;\n}\n\npre[class*="language-"]::selection, pre[class*="language-"] ::selection,\ncode[class*="language-"]::selection, code[class*="language-"] ::selection {\n\ttext-shadow: none;\n\tbackground: #b3d4fc;\n}\n\n@media print {\n\tcode[class*="language-"],\n\tpre[class*="language-"] {\n\t\ttext-shadow: none;\n\t}\n}\n\n/* Code blocks */\npre[class*="language-"] {\n\tpadding: 1em;\n\tmargin: .5em 0;\n\toverflow: auto;\n}\n\n:not(pre) > code[class*="language-"],\npre[class*="language-"] {\n\tbackground: #f5f2f0;\n}\n\n/* Inline code */\n:not(pre) > code[class*="language-"] {\n\tpadding: .1em;\n\tborder-radius: .3em;\n\twhite-space: normal;\n}\n\n.token.comment,\n.token.prolog,\n.token.doctype,\n.token.cdata {\n\tcolor: slategray;\n}\n\n.token.punctuation {\n\tcolor: #999;\n}\n\n.token.namespace {\n\topacity: .7;\n}\n\n.token.property,\n.token.tag,\n.token.boolean,\n.token.number,\n.token.constant,\n.token.symbol,\n.token.deleted {\n\tcolor: #905;\n}\n\n.token.selector,\n.token.attr-name,\n.token.string,\n.token.char,\n.token.builtin,\n.token.inserted {\n\tcolor: #690;\n}\n\n.token.operator,\n.token.entity,\n.token.url,\n.language-css .token.string,\n.style .token.string {\n\tcolor: #9a6e3a;\n\t/* This background color was intended by the author of this theme. */\n\tbackground: hsla(0, 0%, 100%, .5);\n}\n\n.token.atrule,\n.token.attr-value,\n.token.keyword {\n\tcolor: #07a;\n}\n\n.token.function,\n.token.class-name {\n\tcolor: #DD4A68;\n}\n\n.token.regex,\n.token.important,\n.token.variable {\n\tcolor: #e90;\n}\n\n.token.important,\n.token.bold {\n\tfont-weight: bold;\n}\n.token.italic {\n\tfont-style: italic;\n}\n\n.token.entity {\n\tcursor: help;\n}\n',""])},function(t,e,u){"use strict";t.exports=function(t){var e=[];return e.toString=function(){return this.map((function(e){var u=function(t,e){var u=t[1]||"",r=t[3];if(!r)return u;if(e&&"function"==typeof btoa){var n=(o=r,"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(o))))+" */"),i=r.sources.map((function(t){return"/*# sourceURL="+r.sourceRoot+t+" */"}));return[u].concat(i).concat([n]).join("\n")}var o;return[u].join("\n")}(e,t);return e[2]?"@media "+e[2]+"{"+u+"}":u})).join("")},e.i=function(t,u){"string"==typeof t&&(t=[[null,t,""]]);for(var r={},n=0;n=0&&p.splice(e,1)}function A(t){var e=document.createElement("style");if(void 0===t.attrs.type&&(t.attrs.type="text/css"),void 0===t.attrs.nonce){var r=function(){0;return u.nc}();r&&(t.attrs.nonce=r)}return v(e,t.attrs),d(t,e),e}function v(t,e){Object.keys(e).forEach((function(u){t.setAttribute(u,e[u])}))}function g(t,e){var u,r,n,i;if(e.transform&&t.css){if(!(i="function"==typeof e.transform?e.transform(t.css):e.transform.default(t.css)))return function(){};t.css=i}if(e.singleton){var o=l++;u=c||(c=A(e)),r=F.bind(null,u,o,!1),n=F.bind(null,u,o,!0)}else t.sourceMap&&"function"==typeof URL&&"function"==typeof URL.createObjectURL&&"function"==typeof URL.revokeObjectURL&&"function"==typeof Blob&&"function"==typeof btoa?(u=function(t){var e=document.createElement("link");return void 0===t.attrs.type&&(t.attrs.type="text/css"),t.attrs.rel="stylesheet",v(e,t.attrs),d(t,e),e}(e),r=B.bind(null,u,e),n=function(){m(u),u.href&&URL.revokeObjectURL(u.href)}):(u=A(e),r=y.bind(null,u),n=function(){m(u)});return r(t),function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap)return;r(t=e)}else n()}}t.exports=function(t,e){if("undefined"!=typeof DEBUG&&DEBUG&&"object"!=typeof document)throw new Error("The style-loader cannot be used in a non-browser environment");(e=e||{}).attrs="object"==typeof e.attrs?e.attrs:{},e.singleton||"boolean"==typeof e.singleton||(e.singleton=o()),e.insertInto||(e.insertInto="head"),e.insertAt||(e.insertAt="bottom");var u=D(t,e);return h(u,e),function(t){for(var r=[],n=0;n=0&&u<=n.b}}function R(t){return function(e){return null==e?void 0:e[t]}}var j=R("byteLength"),P=L(j),T=/\[object ((I|Ui)nt(8|16|32)|Float(32|64)|Uint8Clamped|Big(I|Ui)nt64)Array\]/;var q=n.r?function(t){return n.l?Object(n.l)(t)&&!b(t):P(t)&&T.test(n.t.call(t))}:N(!1),M=R("length");function U(t,e){e=function(t){for(var e={},u=t.length,r=0;r":">",'"':""","'":"'","`":"`"},qt=Pt(Tt),Mt=Pt(ct(Tt)),Ut=V.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g},zt=/(.)^/,Gt={"'":"'","\\":"\\","\r":"r","\n":"n","\u2028":"u2028","\u2029":"u2029"},$t=/\\|'|\r|\n|\u2028|\u2029/g;function Vt(t){return"\\"+Gt[t]}var Ht=/^\s*(\w|\$)+\s*$/;function Wt(t,e,u){!e&&u&&(e=u),e=Dt({},e,V.templateSettings);var r=RegExp([(e.escape||zt).source,(e.interpolate||zt).source,(e.evaluate||zt).source].join("|")+"|$","g"),n=0,i="__p+='";t.replace(r,(function(e,u,r,o,a){return i+=t.slice(n,a).replace($t,Vt),n=a+e.length,u?i+="'+\n((__t=("+u+"))==null?'':_.escape(__t))+\n'":r?i+="'+\n((__t=("+r+"))==null?'':__t)+\n'":o&&(i+="';\n"+o+"\n__p+='"),e})),i+="';\n";var o,a=e.variable;if(a){if(!Ht.test(a))throw new Error("variable is not a bare identifier: "+a)}else i="with(obj||{}){\n"+i+"}\n",a="obj";i="var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');};\n"+i+"return __p;\n";try{o=new Function(a,"_",i)}catch(t){throw t.source=i,t}var s=function(t){return o.call(this,t,V)};return s.source="function("+a+"){\n"+i+"}",s}function Kt(t,e,u){var r=(e=Et(e)).length;if(!r)return C(u)?u.call(t):u;for(var n=0;n1)re(a,e-1,u,r),n=r.length;else for(var s=0,c=a.length;se?(r&&(clearTimeout(r),r=null),a=c,o=t.apply(n,i),r||(n=i=null)):r||!1===u.trailing||(r=setTimeout(s,l)),o};return c.cancel=function(){clearTimeout(r),a=0,r=n=i=null},c}function ce(t,e,u){var r,n,o,a,s,c=function(){var i=jt()-n;e>i?r=setTimeout(c,e-i):(r=null,u||(a=t.apply(s,o)),r||(o=s=null))},l=i((function(i){return s=this,o=i,n=jt(),r||(r=setTimeout(c,e),u&&(a=t.apply(s,o))),a}));return l.cancel=function(){clearTimeout(r),r=o=s=null},l}function le(t,e){return te(e,t)}function pe(t){return function(){return!t.apply(this,arguments)}}function fe(){var t=arguments,e=t.length-1;return function(){for(var u=e,r=t[e].apply(this,arguments);u--;)r=t[u].call(this,r);return r}}function he(t,e){return function(){if(--t<1)return e.apply(this,arguments)}}function De(t,e){var u;return function(){return--t>0&&(u=e.apply(this,arguments)),t<=1&&(e=null),u}}var de=te(De,2);function me(t,e,u){e=_t(e,u);for(var r,n=z(t),i=0,o=n.length;i0?0:n-1;i>=0&&i0?a=o>=0?o:Math.max(o+s,a):s=o>=0?Math.min(o+1,s):o+s+1;else if(u&&o&&s)return r[o=u(r,i)]===i?o:-1;if(i!=i)return(o=e(n.q.call(r,a,s),k))>=0?o+a:-1;for(o=t>0?a:s-1;o>=0&&o0?0:o-1;for(n||(r=e[i?i[a]:a],a+=t);a>=0&&a=3;return e(t,xt(u,n,4),r,i)}}var we=Se(1),_e=Se(-1);function Oe(t,e,u){var r=[];return e=_t(e,u),be(t,(function(t,u,n){e(t,u,n)&&r.push(t)})),r}function ke(t,e,u){return Oe(t,pe(_t(e)),u)}function Ne(t,e,u){e=_t(e,u);for(var r=!ue(t)&&z(t),n=(r||t).length,i=0;i=0}var je=i((function(t,e,u){var r,n;return C(e)?n=e:(e=Et(e),r=e.slice(0,-1),e=e[e.length-1]),xe(t,(function(t){var i=n;if(!i){if(r&&r.length&&(t=Ct(t,r)),null==t)return;i=t[e]}return null==i?i:i.apply(t,u)}))}));function Pe(t,e){return xe(t,bt(e))}function Te(t,e){return Oe(t,It(e))}function qe(t,e,u){var r,n,i=-1/0,o=-1/0;if(null==e||"number"==typeof e&&"object"!=typeof t[0]&&null!=t)for(var a=0,s=(t=ue(t)?t:at(t)).length;ai&&(i=r);else e=_t(e,u),be(t,(function(t,u,r){((n=e(t,u,r))>o||n===-1/0&&i===-1/0)&&(i=t,o=n)}));return i}function Me(t,e,u){var r,n,i=1/0,o=1/0;if(null==e||"number"==typeof e&&"object"!=typeof t[0]&&null!=t)for(var a=0,s=(t=ue(t)?t:at(t)).length;ar||void 0===u)return 1;if(u1&&(r=xt(r,e[1])),e=J(t)):(r=Ye,e=re(e,!1,!1),t=Object(t));for(var n=0,i=e.length;n1&&(u=e[1])):(e=xe(re(e,!1,!1),String),r=function(t,u){return!Re(e,u)}),Xe(t,r,u)}));function eu(t,e,u){return n.q.call(t,0,Math.max(0,t.length-(null==e||u?1:e)))}function uu(t,e,u){return null==t||t.length<1?null==e||u?void 0:[]:null==e||u?t[0]:eu(t,t.length-e)}function ru(t,e,u){return n.q.call(t,null==e||u?1:e)}function nu(t,e,u){return null==t||t.length<1?null==e||u?void 0:[]:null==e||u?t[t.length-1]:ru(t,Math.max(0,t.length-e))}function iu(t){return Oe(t,Boolean)}function ou(t,e){return re(t,e,!1)}var au=i((function(t,e){return e=re(e,!0,!0),Oe(t,(function(t){return!Re(e,t)}))})),su=i((function(t,e){return au(t,e)}));function cu(t,e,u,r){c(e)||(r=u,u=e,e=!1),null!=u&&(u=_t(u,r));for(var n=[],i=[],o=0,a=M(t);o"),et=Y("{","}"),ut=Y("[","]"),rt=X('"'),nt=X("\r"),it=X("\n"),ot=Y("(",")"),at=X(" "),st=X("'"),ct=g((function(t,e){return[t[0],e,t[1]]})),lt=g((function(t,e){return T(U(t),e)})),pt=function(t){return lt(t,t)},ft=g(P),ht=function(t){return q((function(e){return t(e)}))},Dt=function(t){return q((function(e,u){return t(_(u))}))},dt=function(t){return q((function(e,u){return P(e-_(u),t)}))},mt=g((function(t,e){return dt(P(t,e))})),At=g((function(t,e){return mt(t,[N(t),e])})),vt=g((function(t,e,u,r){return function(t,e,u){for(var r=t.text,n=t.line;;)switch((u=j(u))[0]){case 0:return e;case 1:e=r(n(e),u[1]),u=u[2];break;default:e=r(e,u[1]),u=u[2]}}(t,e,R($(u,0,["",r,void 0])))})),gt=vt({line:function(t){return t+"\n"},text:function(t,e){return t+e}},""),Et=function(t){return t},Ct=Et(gt),Ft=Et(vt),yt=Et("\n"),Bt=Et("\r"),It=Et(V),bt=Et(H),xt=Et(K),St=Et(W),wt=Et(J),_t=Et(Z),Ot=Et(Q),kt=Et(ct),Nt=Et(tt),Lt=Et(et),Rt=Et(ut),jt=Et(rt),Pt=Et(nt),Tt=Et(it),qt=Et(ot),Mt=Et(at),Ut=Et(st),zt=Et(lt),Gt=Et(pt),$t=Et(ft),Vt=Et(ht),Ht=Et(Dt),Wt=Et(dt),Kt=Et(mt),Jt=Et(At)}]);