l.exports=function(l,n,e){vart=l.__flags||(l.__flags=Object.create(null));if(3!==arguments.length)returnt[n];t[n]=e}},function(l,n,e){"use strict";vart=e(84),u=e(0).compiler.Session;l.exports=function(l,n){l.use(t);vare=l.Assertion;functionr(l,n,e){vart=n.parse(l);returne.allowedStartRules||(e.allowedStartRules=t.rules.length>0?[t.rules[0].name]:[]),t}e.addMethod("changeAST",function(l,t,o,i){o=void0!==o?o:{},i=void0!==i?i:{reportFailures:!0};vara=newu({grammar:l}),s=r(l,a,o);s.rules=s.rules.map(function(l){returnObject.assign(l,i)}),n.flag(this,"object")(s,a,o),newe(s).like(t)}),e.addMethod("reportError",function(l,t,o){o=void0!==o?o:{};vari,a,s=newu({grammar:l}),c=r(l,s,o);try{n.flag(this,"object")(c,s,o),i=!0}catch(l){a=l,i=!1}this.assert(!i,"expected #{this} to report an error but it didn't","expected #{this} to not report an error but #{act} was reported",null,a),i||void0===t||("string"==typeoft&&(t={message:t}),Object.keys(t).forEach(function(l){newe(a).to.have.property(l).that.is.deep.equal(t[l])}))}),e.addMethod("reportWarning",function(l,e,t){varo=this;e=Array.isArray(e)?e:null==e?[]:[e],t=void0!==t?t:{};vari=[];vara=newu({grammar:l,warn:function(l){i.push(l)}}),s=r(l,a,t);n.flag(this,"object")(s,a,t);varc=i.length,f=e.length;e.length&&this.assert(c===f,"expected #{this} to report ".concat(f," warnings, but it reported ").concat(c," warnings"),"expected #{this} to not report ".concat(f," warnings"),e,i),e.forEach(function(l){o.assert(-1!==i.indexOf(l),"expected #{this} to report the warning #{exp}, but it didn't","expected #{this} to not report the warning #{exp}",l)})})}},function(l,n,e){"use strict";n.visitor=e(10),n.Node=e(12),n.Grammar=e(22)},function(l,n,e){
l.exports=function(l,n,e){vart=l.__flags||(l.__flags=Object.create(null));for(varuinn.__flags||(n.__flags=Object.create(null)),e=3!==arguments.length||e,t)(e||"object"!==u&&"ssfi"!==u&&"lockSsfi"!==u&&"message"!=u)&&(n.__flags[u]=t[u])}},function(l,n){l.exports={includeStack:!1,showDiff:!0,truncateThreshold:40,useProxy:!0,proxyExcludedKeys:["then","catch","inspect","toJSON"]}},function(l,n,e){"use strict";l.exports=functionl(n,e){!function(l,n){if(!(linstanceofn))thrownewTypeError("Cannot call a class as a function")}(this,l),this.name="GrammarError",this.message=n,this.location=e,"function"==typeofError.captureStackTrace&&Error.captureStackTrace(this,l)}},function(l,n,e){"use strict";functiont(l,n){for(vare=0;e<n.length;e++){vart=n[e];t.enumerable=t.enumerable||!1,t.configurable=!0,"value"int&&(t.writable=!0),Object.defineProperty(l,t.key,t)}}varu=e(1),r=function(){functionl(){!function(l,n){if(!(linstanceofn))thrownewTypeError("Cannot call a class as a function")}(this,l)}varn,e,u;returnn=l,(e=[{key:"visit",value:function(l){if(!l)thrownewError("Visitor function called with no arguments or a `falsy` node");varn=this[l.type];if(!n)thrownewError('Visitor function for node type "'.concat(l.type,'" not defined'));returnn.apply(this,arguments)}}])&&t(n.prototype,e),u&&t(n,u),l}();l.exports={ASTVisitor:r,build:function(l){varn=newr;returnu.extend(n,l),(n=u.enforceFastProperties(n)).visit.bind(n)}};varo=r.on={property:function(l){returnfunction(n){for(vare=n[l],t=arguments.length,u=newArray(t>1?t-1:0),r=1;r<t;r++)u[r-1]=arguments[r];u.length?this.visit.apply(this,[e].concat(u)):this.visit(e)}},children:function(l){returnfunction(n){for(vare=arguments.length,t=newArray(e>1?e-1:0),u=1;u<e;u++)t[u-1]=arguments[u];varr=n[l],o=this,i=t.length<1?function(l){o.visit(l)}:function(l){o.visit.apply(o,[l].concat(t))};r.forEach(i)}}},i=u.noop,a=o.property("expression"),s={grammar:function(l){for(varn=this,e=arguments.length,t=newArray(e>1?e-1:0),u=1;u<e;u++)t[u-1]=arguments[u];l.initializer&&this.visit.apply(this,[l.initializer].concat(t)),l.rules.forEach(function(l){n.visit.apply(n,[l].concat(t))})},initializer:i,rule:a,named:a,choice:o.children("alternatives"),action:a,sequence:o.children("elements"),labeled:a,text:a,simple_and:a,simple_not:a,optional:a,zero_or_more:a,one_or_more:a,group:a,semantic_and:i,semantic_not:i,rule_ref:i,literal:i,class:i,any:i};u.each(s,function(l,n){r.prototype[n]=l})},function(l,n,e){"use strict";functiont(l){returnfunction(l){if(Array.isArray(l)){for(varn=0,e=newArray(l.length);n<l.length;n++)e[n]=l[n];returne}}(l)||function(l){if(Symbol.iteratorinObject(l)||"[object Arguments]"===Object.prototype.toString.call(l))returnArray.from(l)}(l)||function(){thrownewTypeError("Invalid attempt to spread non-iterable instance")}()}l.exports={evalModule:function(l,n){vare=Object.keys(n),u=e.map(function(l){returnn[l]}),r={exports:{}};returne.push("module","exports",l),u.push(r,r.exports),Function.apply(void0,t(e)).apply(void0,t(u)),r.exports}}},function(l,n,e){"use strict";l.exports=functionl(n,e){!function(l,n){if(!(linstanceofn))thrownewTypeError("Cannot call a class as a function")}(this,l),this.type=n,this.location=e}},function(l){l.exports={name:"pegjs",version:"0.11.0-dev",description:"Parser generator for JavaScript",keywords:["PEG.js","pegjs","grammar","parser","generator","language","PEG"],homepage:"https://pegjs.org/",repository:"pegjs/pegjs",license:"MIT",contributors:["David Majda <david@majda.cz> (https://majda.cz/)","Futago-za Ryuu <futagoza.ryuu@gmail.com>"],types:"typings/pegjs.d.ts",main:"lib/peg.js",bin:"bin/peg.js",engines:{node:">= 6"}}},function(l,n,e){"use strict";vart=e(5),u=e(1);functionr(l,n,e,t){this.message=l,this.expected=n,this.found=e,this.location=t,this.name="SyntaxError","function"==typeofError.captureStackTrace&&Error.captureStackTrace(this,r)}!function(l,n){functione(){this.constructor=l}e.prototype=n.prototype,l.prototype=newe}(r,Error),r.buildMessage=function(l,n){vare={literal:function(l){return'"'+u(l.text)+'"'},
*/l.exports=function(l,n,t){return e.configurable?(Object.defineProperty(l,"length",{get:function(){if(t)throw Error("Invalid Chai property: "+n+'.length. Due to a compatibility issue, "length" cannot directly follow "'+n+'". Use "'+n+'.lengthOf" instead.');throw Error("Invalid Chai property: "+n+'.length. See docs for proper usage of "'+n+'".')}}),l):l}},function(l,n,e){var t=e(8),u=e(3),r=e(46),o=e(16),i=["__flags","__methods","_obj","assert"];l.exports=function(l,n){return o()?new Proxy(l,{get:function l(e,o){if("string"==typeof o&&-1===t.proxyExcludedKeys.indexOf(o)&&!Reflect.has(e,o)){if(n)throw Error("Invalid Chai property: "+n+"."+o+'. See docs for proper usage of "'+n+'".');var a=null,s=4;throw r(e).forEach(function(l){if(!Object.prototype.hasOwnProperty(l)&&-1===i.indexOf(l)){var n=function(l,n,e){if(Math.abs(l.length-n.length)>=e)return e;for(var t=[],u=0;u<=l.length;u++)t[u]=Array(n.length+1).fill(0),t[u][0]=u;for(var r=0;r<n.length;r++)t[0][r]=r;for(var u=1;u<=l.length;u++)for(var o=l.charCodeAt(u-1),r=1;r<=n.length;r++)Math.abs(u-r)>=e?t[u][r]=e:t[u][r]=Math.min(t[u-1][r]+1,t[u][r-1]+1,t[u-1][r-1]+(o===n.charCodeAt(r-1)?0:1));return t[l.length][n.length]}(o,l,s);n<s&&(a=l,s=n)}}),null!==a?Error("Invalid Chai property: "+o+'. Did you mean "'+a+'"?'):Error("Invalid Chai property: "+o)}return-1!==i.indexOf(o)||u(e,"lockSsfi")||u(e,"ssfi",l),Reflect.get(e,o)}}):l}},function(l,n,e){"use strict";function t(l,n){for(var e=0;e<l.length;++e)if(n(l[e],e))return e;return-1}l.exports={findIndex:t,find:function(l,n){var e=t(l,n);return e<0?void 0:l[e]}}},function(l,n,e){"use strict";function t(l){return l.charCodeAt(0).toString(16).toUpperCase()}function u(l){return l.replace(/\0/g,"\\0").replace(/\x08/g,"\\b").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\v/g,"\\v").replace(/\f/g,"\\f").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,function(l){return"\\x0"+t(l)}).replace(/[\x10-\x1F\x7F-\xFF]/g,function(l){return"\\x"+t(l)}).replace(/[\u0100-\u0FFF]/g,function(l){return"\\u0"+t(l)}).replace(/[\u1000-\uFFFF]/g,function(l){return"\\u"+t(l)})}varr={stringEscape:function(l){returnu(l.replace(/\\/g,"\\\\").replace(/"/g,'\\"'))},regexpEscape:function(l){returnu(l.replace(/\\/g,"\\\\").replace(/\//g,"\\/").replace(/]/g,"\\]").replace(/\^/g,"\\^").replace(/-/g,"\\-"))},reservedWords:["break","case","catch","continue","debugger","default","delete","do","else","finally","for","function","if","in","instanceof","new","return","switch","this","throw","try","typeof","var","void","while","with","class","const","enum","export","extends","implements","import","interface","let","package","private","protected","public","static","super","yield","false","null","true"]};l.exports=r},function(l,n,e){"use strict";functiont(l){return(t="function"==typeofSymbol&&"symbol"==typeofSymbol.iterator?function(l){returntypeofl}:function(l){returnl&&"function"==typeofSymbol&&l.constructor===Symbol&&l!==Symbol.prototype?"symbol":typeofl})(l)}varu=Object.prototype.hasOwnProperty,r={clone:function(l){varn={};for(vareinl)u.call(l,e)&&(n[e]=l[e]);returnn},each:function(l,n){for(vareinl)u.call(l,e)&&n(l[e],e)},extend:function(l,n){for(vareinn)u.call(n,e)&&(u.call(l,e)||(l[e]=n[e]));returnl},map:function(l,n){vare={};for(vartinl)u.call(l,t)&&(e[t]=n(l[t],t));returne},values:function(l,n){vare,t,r=[],o=-1;for(einl)u.call(l,e)&&(t=l[e],r[++o]=n?n(t,e):t);returnr},enforceFastProperties:functionl(n){functione(){}e.prototype=n;varu=newe;functionr(){returnt(u.foo)}returnr(),r(),n}};l.exports=r},function(l,n,e){"use strict";functiont(l){return(t="function"==typeofSymbol&&"symbol"==typeofSymbol.iterator?function(l){returntypeofl}:function(l){returnl&&"function"==typeofSymbol&&l.constructor===Symbol&&l!==Symbol.prototype?"symbol":typeofl})(l)}functionu(l,n){if(!(linstanceofn))thrownewTypeError("Cannot call a class as a function")}functionr(l,n){for(vare=0;e<n.length;e++){vart=n[e];t.enumerable=t.enumerable||!1,t.configurable=!0,"value"int&&(t.writable=!0),Object.defineProperty(l,t.key,t)}}functiono(l,n,e){r
"use strict";vart=l("base64-js"),u=l("ieee754");e.Buffer=i,e.SlowBuffer=function(l){+l!=l&&(l=0);returni.alloc(+l)},e.INSPECT_MAX_BYTES=50;varr=2147483647;functiono(l){if(l>r)thrownewRangeError("Invalid typed array length");varn=newUint8Array(l);returnn.__proto__=i.prototype,n}functioni(l,n,e){if("number"==typeofl){if("string"==typeofn)thrownewError("If encoding is specified then the first argument must be a string");returnc(l)}returna(l,n,e)}functiona(l,n,e){if("number"==typeofl)thrownewTypeError('"value" argument must not be a number');returnI(l)||l&&I(l.buffer)?function(l,n,e){if(n<0||l.byteLength<n)thrownewRangeError('"offset" is outside of buffer bounds');if(l.byteLength<n+(e||0))thrownewRangeError('"length" is outside of buffer bounds');vart;t=void0===n&&void0===e?newUint8Array(l):void0===e?newUint8Array(l,n):newUint8Array(l,n,e);returnt.__proto__=i.prototype,t}(l,n,e):"string"==typeofl?function(l,n){"string"==typeofn&&""!==n||(n="utf8");if(!i.isEncoding(n))thrownewTypeError("Unknown encoding: "+n);vare=0|h(l,n),t=o(e),u=t.write(l,n);u!==e&&(t=t.slice(0,u));returnt}(l,n):function(l){if(i.isBuffer(l)){varn=0|p(l.length),e=o(n);return0===e.length?e:(l.copy(e,0,0,n),e)}if(l){if(ArrayBuffer.isView(l)||"length"inl)return"number"!=typeofl.length||q(l.length)?o(0):f(l);if("Buffer"===l.type&&Array.isArray(l.data))returnf(l.data)}thrownewTypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object.")}(l)}functions(l){if("number"!=typeofl)thrownewTypeError('"size" argument must be of type number');if(l<0)thrownewRangeError('"size" argument must not be negative')}functionc(l){returns(l),o(l<0?0:0|p(l))}functionf(l){for(varn=l.length<0?0:0|p(l.length),e=o(n),t=0;t<n;t+=1)e[t]=255&l[t];returne}functionp(l){if(l>=r)thrownewRangeError("Attempt to allocate Buffer larger than maximum size: 0x"+r.toString(16)+" bytes");return0|l}functionh(l,n){if(i.isBuffer(l))returnl.length;if(ArrayBuffer.isView(l)||I(l))returnl.byteLength;"string"!=typeofl&&(l=""+l);vare=l.length;if(0===e)return0;for(vart=!1;;)switch(n){case"ascii":case"latin1":case"binary":returne;case"utf8":case"utf-8":casevoid0:returnN(l).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return2*e;case"hex":returne>>>1;case"base64":returnM(l).length;default:if(t)returnN(l).length;n=(""+n).toLowerCase(),t=!0}}functiond(l,n,e){vart=l[n];l[n]=l[e],l[e]=t}functiong(l,n,e,t,u){if(0===l.length)return-1;if("string"==typeofe?(t=e,e=0):e>2147483647?e=2147483647:e<-2147483648&&(e=-2147483648),q(e=+e)&&(e=u?0:l.length-1),e<0&&(e=l.length+e),e>=l.length){if(u)return-1;e=l.length-1}elseif(e<0){if(!u)return-1;e=0}if("string"==typeofn&&(n=i.from(n,t)),i.isBuffer(n))return0===n.length?-1:m(l,n,e,t,u);if("number"==typeofn)returnn&=255,"function"==typeofUint8Array.prototype.indexOf?u?Uint8Array.prototype.indexOf.call(l,n,e):Uint8Array.prototype.lastIndexOf.call(l,n,e):m(l,[n],e,t,u);thrownewTypeError("val must be string, number or Buffer")}functionm(l,n,e,t,u){varr,o=1,i=l.length,a=n.length;if(void0!==t&&("ucs2"===(t=String(t).toLowerCase())||"ucs-2"===t||"utf16le"===t||"utf-16le"===t)){if(l.length<2||n.length<2)return-1;o=2,i/=2,a/=2,e/=2}functions(l,n){return1===o?l[n]:l.readUInt16BE(n*o)}if(u){varc=-1;for(r=e;r<i;r++)if(s(l,r)===s(n,-1===c?0:r-c)){if(-1===c&&(c=r),r-c+1===a)returnc*o}else-1!==c&&(r-=r-c),c=-1}elsefor(e+a>i&&(e=i-a),r=e;r>=0;r--){for(varf=!0,p=0;p<a;p++)if(s(l,r+p)!==s(n,p)){f=!1;break}if(f)returnr}return-1}functiony(l,n,e,t){e=Number(e)||0;varu=l.length-e;t?(t=Number(t))>u&&(t=u):t=u;varr=n.length;t>r/2&&(t=r/2);for(varo=0;o<t;++o){vari=parseInt(n.substr(2*o,2),16);if(q(i))returno;l[e+o]=i}returno}functionb(l,n,e,t){returnR(N(n,l.length-e),l,e,t)}functionv(l,n,e,t){returnR(function(l){for(varn=[],e=0;e<l.length;++e)n.push(255&l.charCodeAt(e));returnn}(n),l,e,t)}functionw(l,n,e,t){returnv(l,n,e,t)}functionA(l,n,e,t){returnR(M(n),l,e,t)}functionE(l,n,e,t){returnR(function(l,n){for(vare,t,u,r=[],o=0;o<l.leng
n.exports=function(l){returnnull!=l&&(t(l)||function(l){return"function"==typeofl.readFloatLE&&"function"==typeofl.slice&&t(l.slice(0,0))}(l)||!!l._isBuffer)}},{}],52:[function(l,n,e){vart={}.toString;n.exports=Array.isArray||function(l){return"[object Array]"==t.call(l)}},{}],53:[function(l,n,e){(function(e){vart=l("path"),u=l("fs"),r=parseInt("0777",8);functiono(l,n,i,a){"function"==typeofn?(i=n,n={}):n&&"object"==typeofn||(n={mode:n});vars=n.mode,c=n.fs||u;void0===s&&(s=r&~e.umask()),a||(a=null);varf=i||function(){};l=t.resolve(l),c.mkdir(l,s,function(e){if(!e)returnf(null,a=a||l);switch(e.code){case"ENOENT":o(t.dirname(l),n,function(e,t){e?f(e,t):o(l,n,f,t)});break;default:c.stat(l,function(l,n){l||!n.isDirectory()?f(e,a):f(null,a)})}})}n.exports=o.mkdirp=o.mkdirP=o,o.sync=functionl(n,o,i){o&&"object"==typeofo||(o={mode:o});vara=o.mode,s=o.fs||u;void0===a&&(a=r&~e.umask()),i||(i=null),n=t.resolve(n);try{s.mkdirSync(n,a),i=i||n}catch(e){switch(e.code){case"ENOENT":i=l(t.dirname(n),o,i),l(n,o,i);break;default:varc;try{c=s.statSync(n)}catch(l){throwe}if(!c.isDirectory())throwe}}returni}}).call(this,l("_process"))},{_process:56,fs:40,path:40}],54:[function(l,n,e){vart=1e3,u=60*t,r=60*u,o=24*r,i=365.25*o;functiona(l,n,e){if(!(l<n))returnl<1.5*n?Math.floor(l/n)+" "+e:Math.ceil(l/n)+" "+e+"s"}n.exports=function(l,n){n=n||{};vare,s=typeofl;if("string"===s&&l.length>0)returnfunction(l){if((l=String(l)).length>100)return;varn=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(l);if(!n)return;vare=parseFloat(n[1]);switch((n[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":returne*i;case"days":case"day":case"d":returne*o;case"hours":case"hour":case"hrs":case"hr":case"h":returne*r;case"minutes":case"minute":case"mins":case"min":case"m":returne*u;case"seconds":case"second":case"secs":case"sec":case"s":returne*t;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":returne;default:return}}(l);if("number"===s&&!1===isNaN(l))returnn.long?a(e=l,o,"day")||a(e,r,"hour")||a(e,u,"minute")||a(e,t,"second")||e+" ms":function(l){if(l>=o)returnMath.round(l/o)+"d";if(l>=r)returnMath.round(l/r)+"h";if(l>=u)returnMath.round(l/u)+"m";if(l>=t)returnMath.round(l/t)+"s";returnl+"ms"}(l);thrownewError("val is not a non-empty string or a valid number. val="+JSON.stringify(l))}},{}],55:[function(l,n,e){(function(l){"use strict";!l.version||0===l.version.indexOf("v0.")||0===l.version.indexOf("v1.")&&0!==l.version.indexOf("v1.8.")?n.exports={nextTick:function(n,e,t,u){if("function"!=typeofn)thrownewTypeError('"callback" argument must be a function');varr,o,i=arguments.length;switch(i){case0:case1:returnl.nextTick(n);case2:returnl.nextTick(function(){n.call(null,e)});case3:returnl.nextTick(function(){n.call(null,e,t)});case4:returnl.nextTick(function(){n.call(null,e,t,u)});default:for(r=newArray(i-1),o=0;o<r.length;)r[o++]=arguments[o];returnl.nextTick(function(){n.apply(null,r)})}}}:n.exports=l}).call(this,l("_process"))},{_process:56}],56:[function(l,n,e){vart,u,r=n.exports={};functiono(){thrownewError("setTimeout has not been defined")}functioni(){thrownewError("clearTimeout has not been defined")}functiona(l){if(t===setTimeout)returnsetTimeout(l,0);if((t===o||!t)&&setTimeout)returnt=setTimeout,setTimeout(l,0);try{returnt(l,0)}catch(n){try{returnt.call(null,l,0)}catch(n){returnt.call(this,l,0)}}}!function(){try{t="function"==typeofsetTimeout?setTimeout:o}catch(l){t=o}try{u="function"==typeofclearTimeout?clearTimeout:i}catch(l){u=i}}();vars,c=[],f=!1,p=-1;functionh(){f&&s&&(f=!1,s.length?c=s.concat(c):p=-1,c.length&&d())}functiond(){if(!f){varl=a(h);f=!0;for(varn=c.length;n;){for(s=c,c=[];++p<n;)s&&s[p].run();p=-1,n=c.length}s=null,f=!1,function(l){if(u===clearTimeout)returnclearTimeout(l);if((u===i||!u)&&clearTimeout)returnu=clearTimeout,clearTimeout(l);try{u(l)}catch(n){try{returnu.call(null,l)}catch(n){returnu.call(this,l)}}}(l)}}functiong(l,n){this.fun=l,
vart=e(42),u=e(3),r=e(39);l.exports=function(l,n){vare=u(l,"message"),o=u(l,"ssfi");e=e?e+": ":"",l=u(l,"object"),(n=n.map(function(l){returnl.toLowerCase()})).sort();vari=n.map(function(l,e){vart=~["a","e","i","o","u"].indexOf(l.charAt(0))?"an":"a";return(n.length>1&&e===n.length-1?"or ":"")+t+" "+l}).join(", "),a=r(l).toLowerCase();if(!n.some(function(l){returna===l}))thrownewt(e+"object tested must be "+i+", but "+a+" given",void0,o)}},function(l,n,e){
vart=e(17),u=e(6),r=e(3),o=e(18),i=e(7);l.exports=function(l,n,e){vara=l[n],s=function(){thrownewError(n+" is not a function")};a&&"function"==typeofa&&(s=a);varc=function(){r(this,"lockSsfi")||r(this,"ssfi",c);varl=r(this,"lockSsfi");r(this,"lockSsfi",!0);varn=e(s).apply(this,arguments);if(r(this,"lockSsfi",l),void0!==n)returnn;vart=newu.Assertion;returni(this,t),t};t(c,n,!1),l[n]=o(c,n)}},function(l,n,e){
functionr(l,e,t,o){returnu(this,"ssfi",t||r),u(this,"lockSsfi",o),u(this,"object",l),u(this,"message",e),n.proxify(this)}l.Assertion=r,Object.defineProperty(r,"includeStack",{get:function(){returnconsole.warn("Assertion.includeStack is deprecated, use chai.config.includeStack instead."),t.includeStack},set:function(l){console.warn("Assertion.includeStack is deprecated, use chai.config.includeStack instead."),t.includeStack=l}}),Object.defineProperty(r,"showDiff",{get:function(){returnconsole.warn("Assertion.showDiff is deprecated, use chai.config.showDiff instead."),t.showDiff},set:function(l){console.warn("Assertion.showDiff is deprecated, use chai.config.showDiff instead."),t.showDiff=l}}),r.addProperty=function(l,e){n.addProperty(this.prototype,l,e)},r.addMethod=function(l,e){n.addMethod(this.prototype,l,e)},r.addChainableMethod=function(l,e,t){n.addChainableMethod(this.prototype,l,e,t)},r.overwriteProperty=function(l,e){n.overwriteProperty(this.prototype,l,e)},r.overwriteMethod=function(l,e){n.overwriteMethod(this.prototype,l,e)},r.overwriteChainableMethod=function(l,e,t){n.overwriteChainableMethod(this.prototype,l,e,t)},r.prototype.assert=function(l,r,o,i,a,s){varc=n.test(this,arguments);if(!1!==s&&(s=!0),void0===i&&void0===a&&(s=!1),!0!==t.showDiff&&(s=!1),!c){r=n.getMessage(this,arguments);varf=n.getActual(this,arguments);thrownewe(r,{actual:f,expected:i,showDiff:s},t.includeStack?this.assert:u(this,"ssfi"))}},
l.exports=function(l,n){vare=l.Assertion,t=l.AssertionError,u=n.flag;functionr(l,e){e&&u(this,"message",e),l=l.toLowerCase();vart=u(this,"object"),r=~["a","e","i","o","u"].indexOf(l.charAt(0))?"an ":"a ";this.assert(l===n.type(t).toLowerCase(),"expected #{this} to be "+r+l,"expected #{this} not to be "+r+l)}functiono(l,e){returnn.isNaN(l)&&n.isNaN(e)||l===e}functioni(){u(this,"contains",!0)}functiona(l,r){r&&u(this,"message",r);vari=u(this,"object"),a=n.type(i).toLowerCase(),s=u(this,"message"),c=u(this,"negate"),f=u(this,"ssfi"),p=u(this,"deep"),h=p?"deep ":"";s=s?s+": ":"";vard=!1;switch(a){case"string":d=-1!==i.indexOf(l);break;case"weakset":if(p)thrownewt(s+"unable to use .deep.include with WeakSet",void0,f);d=i.has(l);break;case"map":varg=p?n.eql:o;i.forEach(function(n){d=d||g(n,l)});break;case"set":p?i.forEach(function(e){d=d||n.eql(e,l)}):d=i.has(l);break;case"array":d=p?i.some(function(e){returnn.eql(e,l)}):-1!==i.indexOf(l);break;default:if(l!==Object(l))thrownewt(s+"object tested must be an array, a map, an object, a set, a string, or a weakset, but "+a+" given",void0,f);varm=Object.keys(l),y=null,b=0;if(m.forEach(function(r){varo=newe(i);if(n.transferFlags(this,o,!0),u(o,"lockSsfi",!0),c&&1!==m.length)try{o.property(r,l[r])}catch(l){if(!n.checkError.compatibleConstructor(l,t))throwl;null===y&&(y=l),b++}elseo.property(r,l[r])},this),c&&m.length>1&&b===m.length)throwy;return}this.assert(d,"expected #{this} to "+h+"include "+n.inspect(l),"expected #{this} to not "+h+"include "+n.inspect(l))}functions(){varl=u(this,"object"),e=n.type(l);this.assert("Arguments"===e,"expected #{this} to be arguments but got "+e,"expected #{this} to not be arguments")}functionc(l,n){n&&u(this,"message",n);vare=u(this,"object");if(u(this,"deep")){vart=u(this,"lockSsfi");u(this,"lockSsfi",!0),this.eql(l),u(this,"lockSsfi",t)}elsethis.assert(l===e,"expected #{this} to equal #{exp}","expected #{this} to not equal #{exp}",l,this._obj,!0)}functionf(l,e){e&&u(this,"message",e),this.assert(n.eql(l,u(this,"object")),"expected #{this} to deeply equal #{exp}","expected #{this} to not deeply equal #{exp}",l,this._obj,!0)}functionp(l,r){r&&u(this,"message",r);varo,i=u(this,"object"),a=u(this,"doLength"),s=u(this,"message"),c=s?s+": ":"",f=u(this,"ssfi"),p=n.type(i).toLowerCase(),h=n.type(l).toLowerCase(),d=!0;if(a&&"map"!==p&&"set"!==p&&newe(i,s,f,!0).to.have.property("length"),a||"date"!==p||"date"===h)if("number"===h||!a&&"number"!==p)if(a||"date"===p||"number"===p)d=!1;else{o=c+"expected "+("string"===p?"'"+i+"'":i)+" to be a number or a date"}elseo=c+"the argument to above must be a number";elseo=c+"the argument to above must be a date";if(d)thrownewt(o,void0,f);if(a){varg,m="length";"map"===p||"set"===p?(m="size",g=i.size):g=i.length,this.assert(g>l,"expected #{this} to have a "+m+" above #{exp} but got #{act}","expected #{this} to not have a "+m+" above #{exp}",l,g)}elsethis.assert(i>l,"expected #{this} to be above #{exp}","expected #{this} to be at most #{exp}",l)}functionh(l,r){r&&u(this,"message",r);varo,i=u(this,"object"),a=u(this,"doLength"),s=u(this,"message"),c=s?s+": ":"",f=u(this,"ssfi"),p=n.type(i).toLowerCase(),h=n.type(l).toLowerCase(),d=!0;if(a&&"map"!==p&&"set"!==p&&newe(i,s,f,!0).to.have.property("length"),a||"date"!==p||"date"===h)if("number"===h||!a&&"number"!==p)if(a||"date"===p||"number"===p)d=!1;else{o=c+"expected "+("string"===p?"'"+i+"'":i)+" to be a number or a date"}elseo=c+"the argument to least must be a number";elseo=c+"the argument to least must be a date";if(d)thrownewt(o,void0,f);if(a){varg,m="length";"map"===p||"set"===p?(m="size",g=i.size):g=i.length,this.assert(g>=l,"expected #{this} to have a "+m+" at least #{exp} but got #{act}","expected #{this} to have a "+m+" below #{exp}",l,g)}elsethis.assert(i>=l,"expected #{this} to be at least #{exp}","expected #{this} to be below #{exp}",l)}functiond(l,r){r&&u(this,"message",r);varo,i=u(this,"object"),a=u(this,"doLength"),s=u(this,"message"),c=s?s+": ":"",f=u(this,"ssfi"),p=n.type(i).toLowerCase(),h=n.type(l).toL
functionl(n,e){returnu[e]=u[n],l}("isOk","ok")("isNotOk","notOk")("throws","throw")("throws","Throw")("isExtensible","extensible")("isNotExtensible","notExtensible")("isSealed","sealed")("isNotSealed","notSealed")("isFrozen","frozen")("isNotFrozen","notFrozen")("isEmpty","empty")("isNotEmpty","notEmpty")}},function(module,exports,__webpack_require__){"use strict";varchai=__webpack_require__(2),peg=__webpack_require__(0),sinon=__webpack_require__(41),expect=chai.expect;describe("PEG.js API",function(){describe("generate",function(){it("generates a parser",function(){varl=peg.generate("start = 'a'");expect(l).to.be.an("object"),expect(l.parse("a")).to.equal("a")}),it("throws an exception on syntax error",function(){expect(function(){peg.generate("start = @")}).to.throw()}),it("throws an exception on semantic error",function(){expect(function(){peg.generate("start = undefined")}).to.throw()}),describe("allowed start rules",function(){varl="\n\n a = 'x'\n b = 'x'\n c = 'x'\n\n ";it("throws an error on missing rule",function(){expect(function(){peg.generate(l,{allowedStartRules:["missing"]})}).to.throw()}),describe("when optimizing for parsing speed",function(){describe("when |allowedStartRules| is not set",function(){it("generated parser can start only from the first rule",function(){varn=peg.generate(l,{optimize:"speed"});expect(n.parse("x",{startRule:"a"})).to.equal("x"),expect(function(){n.parse("x",{startRule:"b"})}).to.throw(),expect(function(){n.parse("x",{startRule:"c"})}).to.throw()})}),describe("when |allowedStartRules| is set",function(){it("generated parser can start only from specified rules",function(){varn=peg.generate(l,{optimize:"speed",allowedStartRules:["b","c"]});expect(function(){n.parse("x",{startRule:"a"})}).to.throw(),expect(n.parse("x",{startRule:"b"})).to.equal("x"),expect(n.parse("x",{startRule:"c"})).to.equal("x")})})}),describe("when optimizing for code size",function(){describe("when |allowedStartRules| is not set",function(){it("generated parser can start only from the first rule",function(){varn=peg.generate(l,{optimize:"size"});expect(n.parse("x",{startRule:"a"})).to.equal("x"),expect(function(){n.parse("x",{startRule:"b"})}).to.throw(),expect(function(){n.parse("x",{startRule:"c"})}).to.throw()})}),describe("when |allowedStartRules| is set",function(){it("generated parser can start only from specified rules",function(){varn=peg.generate(l,{optimize:"size",allowedStartRules:["b","c"]});expect(function(){n.parse("x",{startRule:"a"})}).to.throw(),expect(n.parse("x",{startRule:"b"})).to.equal("x"),expect(n.parse("x",{startRule:"c"})).to.equal("x")})})})}),describe("intermediate results caching",function(){varl="\n\n { var n = 0; }\n start = (a 'b') / (a 'c') { return n; }\n a = 'a' { n++; }\n\n ";describe("when |cache| is not set",function(){it("generated parser doesn't cache intermediate parse results",function(){varn=peg.generate(l);expect(n.parse("ac")).to.equal(2)})}),describe("when |cache| is set to |false|",function(){it("generated parser doesn't cache intermediate parse results",function(){varn=peg.generate(l,{cache:!1});expect(n.parse("ac")).to.equal(2)})}),describe("when |cache| is set to |true|",function(){it("generated parser caches intermediate parse results",function(){varn=peg.generate(l,{cache:!0});expect(n.parse("ac")).to.equal(1)})})}),describe("tracing",function(){describe("when |trace| is not set",function(){it("generated parser doesn't trace",function(){varl=peg.generate("start = 'a'"),n={trace:sinon.spy()};l.parse("a",{tracer:n}),expect(n.trace.called).to.equal(!1)})}),describe("when |trace| is set to |false|",function(){it("generated parser doesn't trace",function(){varl=peg.generate("start = 'a'",{trace:!1}),n={trace:sinon.spy()};l.parse("a",{tracer:n}),expect(n.trace.called).to.equal(!1)})}),describe("when |trace| is set to |true|",function(){it("generated parser traces",function(){varl=peg.generate("start = 'a'",{trace:!0}),n={trace:sinon.spy()}